/** 
 * 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] */
function da(f){var k=0;return function(){return k<f.length?{done:!1,value:f[k++]}:{done:!0}}}function ja(f){var k="undefined"!=typeof Symbol&&Symbol.iterator&&f[Symbol.iterator];return k?k.call(f):{next:da(f)}}function ka(f){if(!(f instanceof Array)){f=ja(f);for(var k,h=[];!(k=f.next()).done;)h.push(k.value);f=h}return f}var ma="function"==typeof Object.create?Object.create:function(f){function k(){}k.prototype=f;return new k};
function na(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<f.length;++k){var h=f[k];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");}var q=na(this),oa;
if("function"==typeof Object.setPrototypeOf)oa=Object.setPrototypeOf;else{var pa;a:{var qa={a:!0},ra={};try{ra.__proto__=qa;pa=ra.a;break a}catch(f){}pa=!1}oa=pa?function(f,k){f.__proto__=k;if(f.__proto__!==k)throw new TypeError(f+" is not extensible");return f}:null}var ta=oa;
function u(f,k){f.prototype=ma(k.prototype);f.prototype.constructor=f;if(ta)ta(f,k);else for(var h in k)if("prototype"!=h)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(k,h);d&&Object.defineProperty(f,h,d)}else f[h]=k[h];f.GNa=k.prototype}function ua(){this.VL=!1;this.vz=null;this.qia=void 0;this.U1=1;this.Eba=this.Xsa=0;this.OJ=null}function va(f){if(f.VL)throw new TypeError("Generator is already running");f.VL=!0}ua.prototype.lM=function(f){this.qia=f};
ua.prototype.hN=function(f){this.OJ={Fwa:f,VAa:!0};this.U1=this.Xsa||this.Eba};ua.prototype.return=function(f){this.OJ={return:f};this.U1=this.Eba};function wa(f){this.mg=new ua;this.VGa=f}wa.prototype.lM=function(f){va(this.mg);if(this.mg.vz)return xa(this,this.mg.vz.next,f,this.mg.lM);this.mg.lM(f);return ya(this)};function Aa(f,k){va(f.mg);var h=f.mg.vz;if(h)return xa(f,"return"in h?h["return"]:function(d){return{value:d,done:!0}},k,f.mg.return);f.mg.return(k);return ya(f)}
wa.prototype.hN=function(f){va(this.mg);if(this.mg.vz)return xa(this,this.mg.vz["throw"],f,this.mg.lM);this.mg.hN(f);return ya(this)};function xa(f,k,h,d){try{var b=k.call(f.mg.vz,h);if(!(b instanceof Object))throw new TypeError("Iterator result "+b+" is not an object");if(!b.done)return f.mg.VL=!1,b;var a=b.value}catch(c){return f.mg.vz=null,f.mg.hN(c),ya(f)}f.mg.vz=null;d.call(f.mg,a);return ya(f)}
function ya(f){for(;f.mg.U1;)try{var k=f.VGa(f.mg);if(k)return f.mg.VL=!1,{value:k.value,done:!1}}catch(h){f.mg.qia=void 0,f.mg.hN(h)}f.mg.VL=!1;if(f.mg.OJ){k=f.mg.OJ;f.mg.OJ=null;if(k.VAa)throw k.Fwa;return{value:k.return,done:!0}}return{value:void 0,done:!0}}function Ba(f){this.next=function(k){return f.lM(k)};this.throw=function(k){return f.hN(k)};this.return=function(k){return Aa(f,k)};this[Symbol.iterator]=function(){return this}}
function Ca(f){function k(d){return f.next(d)}function h(d){return f.throw(d)}return new Promise(function(d,b){function a(c){c.done?d(c.value):Promise.resolve(c.value).then(k,h).then(a,b)}a(f.next())})}var w;
(function(f){function k(){}function h(d){return"undefined"===typeof d||null===d}k.fR=function(d,b){if(d==b)return 0;d=d.split(".");b=b.split(".");if(d.length<b.length)return-1;if(d.length>b.length)return 1;for(var a=0;a<d.length;a++){var c=parseInt(d[a]),e=parseInt(b[a]);if(c<e)return-1;if(c>e)return 1}return 0};k.Rc=function(d){return void 0!==d&&null!==d&&("true"==d.toLowerCase()||"on"==d.toLowerCase())};k.aL=function(){var d=(new Date).getTime()-(new Date(2012,2,8)).getTime()*Math.round(123456789*
Math.random());if(k.MBa==d)return d.toString(35)+(k.hea++).toString();k.MBa=d;k.hea=0;return d.toString(35)};k.bind=function(d,b){for(var a=[],c=1;c<arguments.length;++c)a[c-1]=arguments[c];if(h(d))return d;for(c=0;c<a.length;c++)d=d.replace(new RegExp("\\{"+c+"\\}","gi"),null==a[c]?"":a[c].toString());return d};k.Hw=function(d,b){return isNaN(d)?f.model.A.j.cn:x.gh.nxa(d,void 0===b?null:b)};k.Gw=function(d,b,a){void 0===b&&(b="dd/MM/yyyy");if(isNaN(d)||0===d)return f.model.A.j.cn;d=new Date(d);return isNaN(d.getTime())?
"":x.gh.format(d,b,a)};k.jN=function(d,b,a){void 0===b&&(b="dd/MM/yyyy HH:mm:ss");return k.Gw(d,b,a)};k.dT=function(d){return Date.parse(d)&&this.rCa(d)};k.rCa=function(d){return this.EBa.test(d)};k.Kn=function(d){if(h(d))return 0;if("#"===d.substr(0,1))return parseInt(d.substr(1),16);"transparent"==d&&(d="rgb(255,255,255)");d=d.replace(/[^\d,]/g,"");d=d.split(",");var b=parseInt(d[0]),a=parseInt(d[1]),c=parseInt(d[2]);0===parseInt(d[3])&&(b=a=c=255);return c|a<<8|b<<16};k.v4=function(d){for(var b=
new Uint8Array(d.length),a=0,c=d.length;a<c;++a)b[a]=d.charCodeAt(a);return b};k.Baa=function(d){d=-1!==d.split(",")[0].indexOf("base64")?atob(d.split(",")[1]):decodeURI(d.split(",")[1]);return k.v4(d)};k.Cva=function(d){for(var b=d.length,a=Array(b);b--;)a[b]=String.fromCharCode(d[b]);return a.join("")};k.contains=function(d,b){return h(d)?!1:-1<d.toLowerCase().indexOf(b)};k.C4=function(d){if(null==d)return NaN;if("number"===typeof d)return d;"string"!==typeof d&&(d=d.toString());","==f.model.Zb.Ni.oS().thousandsSeparator&&
(d=d.replace(/,/gi,""));d=d.replace(",",".");d=d.replace(/[^[,|\.|\-|\d|e]]*/gi,"");return parseFloat(d)};k.trim=function(d,b){b=void 0===b?null:b;if(null==d)return"";for(var a=0;k.s1(d.charAt(a),b);)++a;for(var c=d.length-1;k.s1(d.charAt(c),b);)--c;return c>=a?d.slice(a,c+1):""};k.trimLeft=function(d,b){b=void 0===b?null:b;if(null==d)return"";for(var a=0;k.s1(d.charAt(a),b);)++a;b=d.length-1;return b>=a?d.slice(a,b+1):""};k.s1=function(d,b){b=void 0===b?null:b;if(null!=b&&d==b)return!1;switch(d){case " ":case "\t":case "\r":case "\n":case "\f":return!0}return!1};
k.SAa=function(d){for(var b in k.QK)if(k.QK[b]==d)return!0;return!1};k.WF=function(d){return"string"!==typeof d||"="!=d.charAt(0)&&"@"!=d.charAt(0)?d:"'"+d};k.Cwa=function(d){return d.replace(/[\s]{2,}/g,function(b){var a="",c=0;for(b=b.length;c<b;c++)a+="&nbsp;";return a})};k.In=function(d,b,a){b=void 0===b?!1:b;a=void 0===a?!1:a;if(h(d))return"";a&&(d=k.Cwa(""+d));return b?d.replace(/[<>"'\/]/g,function(c){return k.QK[c]}):d.replace(/[&<>"'\/]/g,function(c){return k.QK[c]})};k.Dwa=function(d){if(h(d))return"";
d=d.replace(/[&<>"']/g,function(b){return k.QK[b]});return d.replace(/[\s]{2,}/g,function(b){var a="",c=0;for(b=b.length;c<b;c++)a+=" ";return a})};k.hya=function(){return new Uint8Array([239,187,191])};k.Eaa=function(d){k.Faa.innerHTML=d;return k.Faa.value};k.hea=0;k.EBa=/^(?:[\+-]?\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)?)?)?)?$/;
k.QK={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&sol;"};k.Faa=document.createElement("textarea");f.O=k;f.v=h;f.pg=function(d){return"function"===typeof d};f.ha=function(d){if(h(d))return!0;"string"!==typeof d&&(d=""+d);return 0===d.trim().length};f.FNa=function(d){return d.replace(/\|/g,"{%7C}")};f.ENa=function(d){return d.replace(/{%7C}/g,"|")};f.SJ=function(d,b){var a=new Date(d.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(d.getUTCFullYear()+1),a;if("quarter"==c||"q"==c)return a.setUTCMonth(d.getUTCMonth()+3),a;if("month"==c||"M"==c)return a.setUTCMonth(d.getUTCMonth()+1),a;if("week"==c||"w"==c)return a.setUTCDate(d.getUTCDate()+7),a;if("day"==c||"d"==c)return a.setUTCDate(d.getUTCDate()+1),a;b=parseInt(b)||1;if("hour"==c||"h"==c)return a.setUTCHours(d.getUTCHours()+b),a;if("minute"==c||"m"==c)return a.setUTCMinutes(d.getUTCMinutes()+b),a;"second"!=c&&"s"!=c||a.setUTCSeconds(d.getUTCSeconds()+
b);return a};f.BGa=function(d){var b=document.createElement("a");b.href=d;d={protocol:b.protocol,host:b.host,hostname:b.hostname,port:b.port,pathname:b.pathname,search:b.search,hash:b.hash};-1<d.protocol.indexOf(":")&&(d.protocol=d.protocol.substr(0,d.protocol.length-1));return d}})(w||(w={}));
(function(f){function k(h,d){d=void 0===d?{}:d;this.Ii=0;this.bi=this.Gh=!1;var b=void 0===d.yx?!0:d.yx;h instanceof Date?h=h.getTime():void 0===h&&b?h=f.v(window.flexmonster_test_now)?Date.now():(new Date(window.flexmonster_test_now)).getTime():f.ha(h)||"null"===h?(b?this.bi=!0:this.Gh=!0,h=NaN):"number"===typeof h?isNaN(h)&&(this.Gh=!0):"string"===typeof h?(f.ha(d.format)?this.fBa(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.XFa(h,d.format),isNaN(h)&&(this.Gh=!0)):(this.bi=!0,h=NaN);this.zc=isNaN(h)?new Date(NaN):new Date(h);this.dj(this.zc.getTimezoneOffset())}k.prototype.fBa=function(h){return 4==h.length||7==h.length&&"-"==h.charAt(4)||10==h.length&&"-"==h.charAt(4)&&"-"==h.charAt(7)?!0:!1};k.prototype.round=function(h){if(!f.ha(h)){var d=h.match(/[s|M|m|w|q|h|d|y]$/);h=parseFloat(h.substr(0,h.length-1));if(!isNaN(h)&&null!==d){switch(d[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.Pha();break;case "M":this.xH();break;case "q":this.Oha();break;case "y":this.Qha()}void 0!==b&&(b*=1E3,this.zc.setTime(Math.floor(this.zc.getTime()/b)*b))}}};k.prototype.getDate=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCDate()};k.prototype.setDate=function(h){if(!this.bi&&!this.Gh)return this.zc.setUTCDate(h),this};k.prototype.getDay=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCDay()};k.prototype.getFullYear=function(){if(!this.bi&&
!this.Gh)return this.zc.getUTCFullYear()};k.prototype.setFullYear=function(h,d,b){d=void 0===d?null:d;b=void 0===b?null:b;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCFullYear(h):f.v(b)?this.zc.setUTCFullYear(h,d):this.zc.setUTCFullYear(h,d,b),this};k.prototype.getHours=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCHours()};k.prototype.setHours=function(h,d,b,a){d=void 0===d?null:d;b=void 0===b?null:b;a=void 0===a?null:a;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCHours(h):f.v(b)?
this.zc.setUTCHours(h,d):f.v(a)?this.zc.setUTCHours(h,d,b):this.zc.setUTCHours(h,d,b,a),this};k.prototype.getMilliseconds=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCMilliseconds()};k.prototype.setMilliseconds=function(h){if(!this.bi&&!this.Gh)return this.zc.setUTCMilliseconds(h),this};k.prototype.getMinutes=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCMinutes()};k.prototype.setMinutes=function(h,d,b){d=void 0===d?null:d;b=void 0===b?null:b;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCMinutes(h):
f.v(b)?this.zc.setUTCMinutes(h,d):this.zc.setUTCMinutes(h,d,b),this};k.prototype.getMonth=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCMonth()};k.prototype.setMonth=function(h,d){d=void 0===d?null:d;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCMonth(h):this.zc.setUTCMonth(h,d),this};k.prototype.getSeconds=function(){if(!this.bi&&!this.Gh)return this.zc.getUTCSeconds()};k.prototype.setSeconds=function(h,d){d=void 0===d?null:d;if(!this.bi&&!this.Gh)return f.v(d)?this.zc.setUTCSeconds(h):
this.zc.setUTCSeconds(h,d),this};k.prototype.getTimezoneOffset=function(){if(!this.bi&&!this.Gh)return this.Ii};k.prototype.dj=function(h,d){d=void 0===d?!0:d;if(!this.bi&&!this.Gh){if(isNaN(h)||f.v(h))return this;0!=h&&60>Math.abs(h)&&(h*=-60);h!==this.Ii&&(d&&this.zc.setUTCMinutes(this.zc.getUTCMinutes()+(this.Ii-h)),this.Ii=h);return this}};k.prototype.getTime=function(){return this.bi||this.Gh?NaN:this.zc.getTime()+6E4*this.Ii};k.prototype.GY=function(h){this.setDate(this.getDate()+h);return this};
k.prototype.Kra=function(h){this.setMonth(this.getMonth()+h)};k.prototype.Qha=function(){this.setMonth(0,1);this.Xm()};k.prototype.Oha=function(){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.Xm()};k.prototype.xH=function(){this.setDate(1);this.Xm();return this};k.prototype.Pha=function(h){this.setDate(this.getDate()-(this.getDay()-(void 0===h?1:h)+7)%7);this.Xm()};k.prototype.Xm=function(){this.setHours(0,
0,0,0);return this};k.prototype.F4=function(h,d){d=void 0===d?1:d;"day"==h?this.Xm():"week"==h?this.Pha(d):"month"==h?this.xH():"quarter"==h?this.Oha():"year"==h&&this.Qha()};k.prototype.zJa=function(){this.setMonth(11,31);this.mz();return this};k.prototype.xJa=function(){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(k.YZ(this.getMonth(),this.getFullYear()));this.mz();return this};
k.prototype.wJa=function(){this.setDate(k.YZ(this.getMonth(),this.getFullYear()));this.mz();return this};k.prototype.yJa=function(h){this.setDate(this.getDate()+(6-this.getDay()+(void 0===h?1:h))%7);this.mz();return this};k.prototype.mz=function(){this.setHours(23,59,59,999);return this};k.prototype.B4=function(h,d){d=void 0===d?1:d;return"day"==h?this.mz():"week"==h?this.yJa(d):"month"==h?this.wJa():"quarter"==h?this.xJa():"year"==h?this.zJa():this};k.prototype.Cg=function(){return this.bi||this.Gh?
!1:!isNaN(this.zc.getTime())};k.prototype.format=function(h){return this.Gh?f.model.A.j.cn:this.bi?"":this.rBa(h)?x.gh.format(this.Gw(),h):x.gh.format(this.zc,"UTC:"+h)};k.prototype.rBa=function(h){return null!==x.gh.Sf(h)};k.prototype.toString=function(){return this.format("yyyy-MM-dd HH:mm:ss")};k.prototype.Gw=function(){return new Date(this.getTime())};k.prototype.clone=function(){var h=new k;this.Gh||this.bi||(h.zc=new Date(this.zc.getTime()));h.Ii=this.Ii;return h};k.prototype.XFa=function(h,
d){var b=NaN,a="UTC"===d.slice(0,3);if("UTC"===d.slice(0,3)||"GMT"===d.slice(0,3))d=d.split(":")[1];"dd/MM/yyyy"===d?(d=h.split("/"),b=a?Date.UTC(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0])):(new Date(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0]))).getTime()):"dd-MM-yyyy"===d?(d=h.split("-"),b=a?Date.UTC(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0])):(new Date(parseInt(d[2]),parseInt(d[1])-1,parseInt(d[0]))).getTime()):"dd/MM/yyyy HH:mm:ss"===d&&(d=h.split(" "),h=d[0].split("/"),f.ha(d[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():(d=f.ha(d[1])?[]:d[1].split(":"),b=a?Date.UTC(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(d[0]),parseInt(d[1]),parseInt(d[2])):(new Date(parseInt(h[2]),parseInt(h[1])-1,parseInt(h[0]),parseInt(d[0]),parseInt(d[1]),parseInt(d[2]))).getTime()));return b};k.YZ=function(h,d){return k.iqa[h]+(1==h&&0==d%4?1:0)};k.u_=function(h,d){return h&&d?h.getTime()==d.getTime():
h==d};k.iqa={0:31,1:28,2:31,3:30,4:31,5:30,6:31,7:31,8:30,9:31,10:30,11:31};f.Gg=k})(w||(w={}));
(function(f){function k(){(this.isNative=f.pg(Set))?this.ZA=new Set:this.jx=[]}k.prototype.add=function(h){if(this.isNative)return this.ZA.add(h),this;0>this.jx.indexOf(h)&&this.jx.push(h);return this};k.prototype.clear=function(){if(this.isNative)return this.ZA.clear();this.jx.length=0};k.prototype.delete=function(h){if(this.isNative)return this.ZA.delete(h);h=this.jx.indexOf(h);if(0>h)return!1;this.jx.splice(h,1);return!0};k.prototype.has=function(h){return this.isNative?this.ZA.has(h):0<=this.jx.indexOf(h)};
k.prototype.Ic=function(){if(this.isNative){if(f.pg(Array.from))return Array.from(this.ZA);var h=[];this.ZA.forEach(function(d){return h.push(d)});return h}return this.jx};q.Object.defineProperties(k.prototype,{size:{configurable:!0,enumerable:!0,get:function(){return this.isNative?this.ZA.size:this.jx.length}}});f.aE=k})(w||(w={}));
(function(f){function k(){}function h(){return a.apply(this,arguments)||this}function d(){return a.apply(this,arguments)||this}function b(){return a.apply(this,arguments)||this}function a(){this.xk={}}a.prototype.lF=function(c,e){return c.type===e.type&&c.Eb===e.Eb&&c.Q4===e.Q4};a.prototype.H0=function(c,e){if(f.v(this.xk[c]))return!1;for(var g=0;g<this.xk[c].length;g++)if(this.lF(this.xk[c][g],e))return!0;return!1};a.prototype.addEventListener=function(c,e,g){var l={type:c,Eb:e,Q4:g};this.H0(c,l)||
(f.v(this.xk[c])&&(this.xk[c]=[]),this.xk[c].push(l),this.target.addEventListener(c,e,g))};a.prototype.removeEventListener=function(c,e,g){e={type:c,Eb:e,Q4:g};for(c in this.xk){for(var l=[],m=0;m<this.xk[c].length;m++)this.lF(this.xk[c][m],e)?"boolean"===typeof g?this.target.removeEventListener(c,this.xk[c][m].Eb,g):this.target.removeEventListener(c,this.xk[c][m].Eb):l.push(this.xk[c][m]);this.xk[c]=l}};a.prototype.dispose=function(){for(var c in this.xk)for(var e=0;e<this.xk[c].length;e++)this.target.removeEventListener(c,
this.xk[c][e].Eb,!0),this.target.removeEventListener(c,this.xk[c][e].Eb,!1);this.xk={}};q.Object.defineProperties(a.prototype,{target:{configurable:!0,enumerable:!0,get:function(){return null}}});u(b,a);b.U=function(){null===b.instance&&(b.instance=new b);return b.instance};q.Object.defineProperties(b.prototype,{target:{configurable:!0,enumerable:!0,get:function(){return document.body}}});b.instance=null;u(d,a);d.U=function(){null===d.instance&&(d.instance=new d);return d.instance};q.Object.defineProperties(d.prototype,
{target:{configurable:!0,enumerable:!0,get:function(){return document}}});d.instance=null;u(h,a);h.U=function(){null===h.instance&&(h.instance=new h);return h.instance};q.Object.defineProperties(h.prototype,{target:{configurable:!0,enumerable:!0,get:function(){return window}}});h.instance=null;k.dispose=function(){for(;0<k.iN.length;)clearTimeout(k.iN.pop());for(;0<k.ML.length;)clearInterval(k.ML.pop())};k.iN=[];k.ML=[];f.opa=k;f.pe=function(c,e){c=setTimeout(c,e);k.iN.push(c);return c};f.Dr=function(c){clearTimeout(c);
k.iN.splice(k.iN.indexOf(c),1)};f.Lba=function(c,e){c=setInterval(c,e);k.ML.push(c);return c};f.I_=function(c){clearInterval(c);k.ML.splice(k.ML.indexOf(c),1)};f.Im=b.U();f.Pj=d.U();f.XK=h.U()})(w||(w={}));var x;
(function(f){function k(){}k.dBa=function(h){return null!=h&&(0==h.indexOf("http://")||0==h.indexOf("https://"))};k.EAa=function(h){return null!=h&&0==h.indexOf("blob:http")};k.AG=function(h,d){d=void 0===d?!1:d;if(!h)return"()";h=h.trim();if(0==h.length)return"()";if(k.EAa(h))return h;d&&(h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600));if(k.dBa(h)||0==h.indexOf("file")||"/"==h.substr(0,1)||"./"==h.substr(0,2))return h;if(-1!=h.indexOf("..")){d=k.BZ.split("/");""==d[d.length-1]&&d.pop();
for(h=h.split("/");".."==h[0]&&(0<h.length&&h.shift(),0<d.length&&d.pop(),0!=d.length););h=d.join("/")+"/"+h.join("/");"/"==h.substr(0,1)&&(h=h.substring(1));return h}return k.BZ+h};k.Ura=function(h){return h+=(-1<h.indexOf("?")?"&":"?")+Math.round(Date.now()/3600)};k.BZ="";f.hx=k})(x||(x={}));
(function(f){function k(){}k.format=function(h,d,b){var a=!1,c=this.Sf(d);"UTC:"==d.slice(0,4)?(d=d.slice(4),a=!0):w.v(c)?w.v(b)||(h=new Date(h.getTime()+36E5*(b+h.getTimezoneOffset()/60))):(d=d.slice(d.indexOf(":")+1),h=new Date(h.getTime()+36E5*(c+h.getTimezoneOffset()/60)));var e=a?"getUTC":"get";b=h[e+"Date"]();c=h[e+"Day"]();var g=h[e+"Month"](),l=h[e+"FullYear"](),m=h[e+"Hours"](),n=h[e+"Minutes"](),p=h[e+"Seconds"]();e=h[e+"Milliseconds"]();var t=a?0:h.getTimezoneOffset(),r={d:b,dd:k.Rm(b),
ddd:k.Tt.GF[c],dddd:k.Tt.GF[c+7],D:b,DD:k.Rm(b),DDD:k.Tt.GF[c],DDDD:k.Tt.GF[c+7],M:g+1,MM:k.Rm(g+1),MMM:k.Tt.YT[g],MMMM:k.Tt.YT[g+12],yy:String(l).slice(2),yyyy:l,YY:String(l).slice(2),YYYY:l,h:m%12||12,hh:k.Rm(m%12||12),H:m,HH:k.Rm(m),k:0==m?24:m,kk:0==m?24:k.Rm(m),m:n,mm:k.Rm(n),s:p,ss:k.Rm(p),l:k.Rm(e,3),L:k.Rm(Math.round(e/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(k.rJa)||[""]).pop().replace(k.sJa,""),o:(0<t?"-":"+")+k.Rm(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 d.replace(k.Uha,function(v){return v in r?r[v]:v.slice(1,v.length-1)})};k.nxa=function(h,d){var b=0>h;0>h&&(h*=-1);var a=Math.floor(h/86400);d=null==d||""==d?0<a&&null==w.model.B.C.Cp?"d'd' "+this.Laa:this.Laa:d;h=Math.round(h);var c=h%60;h=(h-c)/60;var e=h%60;h=(h-e)/60;var g=h%24;b&&(d="-"+d);var l={d:a,dd:k.Rm(a),H:g,HH:k.Rm(g),HHH:h,m:e,mm:k.Rm(e),s:c,ss:k.Rm(c)};return d.replace(k.Uha,function(m){return m in
l?l[m]:m.slice(1,m.length-1)})};k.Sf=function(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.wH.hasOwnProperty(h.slice(0,2))?this.wH[h.slice(0,2)]:this.wH.hasOwnProperty(h.slice(0,3))?this.wH[h.slice(0,3)]:this.wH.hasOwnProperty(h.slice(0,4))?this.wH[h.slice(0,4)]:null};k.Rm=function(h,d){h=""+h;for(d=d||2;h.length<d;)h="0"+h;return h};k.nIa=function(h,d){k.Tt.GF=d.concat(h)};k.zIa=function(h,d){k.Tt.YT=d.concat(h)};k.Hya=
function(){var h=void 0===h?!1:h;return k.Tt.GF.slice(h?0:7,h?7:14)};k.jza=function(){var h=void 0===h?!1:h;return k.Tt.YT.slice(h?0:12,h?12:24)};k.Laa="HH:mm:ss";k.wH={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};k.Uha=/d{1,4}|D{1,4}|m{1,4}|M{1,4}|yy(?:yy)?|YY(?:YY)?|H{1,3}|([HhkMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g;k.rJa=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
k.sJa=/[^-+\dA-Z]/g;k.Tt={GF:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),YT:"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(" ")};f.gh=k})(x||(x={}));
(function(f){function k(){}k.sort=function(h,d,b){d=void 0===d?0:d;var a=1===d%2;d>>=1;var c=1===d%2;d=d>>1>>1;var e=1===(d>>1)%2?function(g,l){if(void 0!==b){if(f.v(l))return-1;if(f.v(g))return 1;g=b(g);l=b(l)}return isNaN(l)||null===l?-1:isNaN(g)||null===g?1:g-l}:a?function(g,l){if(f.ha(l))return-1;if(f.ha(g))return 1;if(void 0!==b){g=b(g);l=b(l);if(f.ha(l))return-1;if(f.ha(g))return 1}return k.localeCompare(g,l)}:function(g,l){if(f.ha(l))return-1;if(f.ha(g))return 1;if(void 0!==b){g=b(g);l=b(l);
if(f.ha(l))return-1;if(f.ha(g))return 1}return k.localeCompare(g.toLocaleLowerCase(),l.toLocaleLowerCase())};if(1===d%2){d=[];for(a=0;a<h.length;a++)d[a]=a;d.sort(function(g,l){return e(h[g],h[l])});c&&d.reverse();return d}h.sort(e);c&&h.reverse();return h};k.localeCompare=function(h,d){return h&&h.localeCompare?h.localeCompare(d):h===d?0:h>d?1:-1};k.insert=function(h,d,b){for(var a=0;a<d.length;a++)h.splice(b+a,0,d[a])};k.Hq=function(h,d){if(void 0!==h.push)return h.push(d),h;var b=new h.constructor(h.length+
1);b.set(h,0);b.set([d],h.length);return b};k.ge=function(h,d,b){if(b>=h.length)return k.Hq(h,d);if(Array.isArray(h))return h.splice(b,0,d),h;var a=new h.constructor(h.length+1);a.set(h.subarray(0,b));a.set([d],b);a.set(h.subarray(b),b+1);return a};k.Iq=function(h,d){if(Array.isArray(h))return h.splice(d,1),h;if(h instanceof Uint8Array||h instanceof Int8Array||h instanceof Uint16Array||h instanceof Uint32Array){var b=h.length-1,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,d),0);a.set(h.subarray(d+1,h.length),d);return a}return h};k.S1=function(h,d,b){h.splice(b,0,h.splice(d,1)[0])};k.Pw=1;k.ko=2;k.Ru=8;k.mi=16;f.Ha=k})(w||(w={}));
void 0===Array.prototype.findIndex&&(Array.prototype.findIndex=function(f,k){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),d=h.length>>>0,b=0;b<d;b++)if(f.call(k,h[b],b,h))return b;return-1});void 0===Array.prototype.find&&(Array.prototype.find=function(f,k){if(null==this)throw new TypeError("Array is null or undefined");for(var h=Object(this),d=h.length>>>0,b=0;b<d;b++){var a=h[b];if(f.call(k,a,b,h))return a}});
void 0===Uint16Array.prototype.slice&&Object.defineProperty(Uint16Array.prototype,"slice",{value:function(f,k){return new Uint16Array(Array.prototype.slice.call(this,f,k))}});
(function(f){function k(){this.values=new Map;this.keys=[]}k.prototype.Pa=function(h,d){this.values.has(h)||this.keys.push(h);this.values.set(h,d)};k.prototype.Cra=function(h){if(null!=h)for(var d in h)h.hasOwnProperty(d)&&this.Pa(d,h[d])};k.prototype.unshift=function(h,d){this.keys.unshift(h);this.values.set(h,d)};k.prototype.TJ=function(h,d,b){null!=this.getItem(h)&&this.removeItem(h);this.keys.splice(b,0,h);this.values.set(h,d)};k.prototype.removeItem=function(h){null!=this.getItem(h)&&(this.keys.splice(this.indexOf(h),
1),this.values.delete(h))};k.prototype.A3=function(h){var d=this.keys[h];null!=d&&(this.keys.splice(h,1),this.values.delete(d))};k.prototype.indexOf=function(h){return this.keys.indexOf(h)};k.prototype.Bb=function(h){return this.values.has(h)};k.prototype.getItem=function(h){return this.values.get(h)};k.prototype.ea=function(h){return this.values.get(this.keys[h])};k.prototype.qh=function(h){return this.keys[h]};k.prototype.vS=function(){return this.values.get(this.keys[this.keys.length-1])};k.prototype.T1=
function(h,d){this.keys.splice(d,0,this.keys.splice(h,1)[0])};k.prototype.slice=function(h,d){h=void 0===h?0:h;d=void 0===d?0:d;0==d&&(d=this.length-h);for(var b=new k,a=0;a<d;a++)this.length>a+h&&(f.v(this.ea(a+h))||b.Pa(this.qh(a+h),this.ea(a+h)));return b};k.prototype.concat=function(h,d){if(void 0!==d&&!d)return this.fqa(h),null;var b=new k;for(d=0;d<this.length;d++)b.Pa(this.qh(d),this.ea(d));for(d=0;d<h.length;d++)b.Pa(h.qh(d),h.ea(d));return b};k.prototype.fqa=function(h){var d,b=h.length;
for(d=0;d<b;d++)this.Pa(h.qh(d),h.ea(d))};k.prototype.splice=function(h,d){d=void 0===d?0:d;var b=new k;h+d>this.length&&(d=this.length-h);1>d&&(d=this.length);for(var a=0;a<this.length;a++)(a<h||a>=h+d)&&b.Pa(this.qh(a),this.ea(a));return b};k.prototype.reverse=function(){var h,d=new k;for(h=this.length-1;-1<h;h--)d.Pa(this.qh(h),this.ea(h));return d};k.prototype.Ic=function(h){if(void 0===h?0:h)return this.keys.slice(0);h=[];for(var d=0;d<this.length;d++)h.push(this.ea(d));return h};k.prototype.toString=
function(){var h=[],d;for(d in this.keys){var b="{"+d+": "+this.getItem(d)+"}";h.push(b)}return h.join(", ")};k.prototype.La=function(){for(var h={},d=0;d<this.keys.length;d++){var b=this.keys[d];h[b]=this.getItem(b)}return h};k.prototype.clear=function(){this.values=new Map;this.keys.length=0};q.Object.defineProperties(k.prototype,{length:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.keys.length}}});f.nb=k})(w||(w={}));
(function(f){function k(){this.quotes=[]}k.prototype.parse=function(h){try{this.quotes=[];for(var d=[],b=!1,a="",c=0;c<h.length;c++){var e=h.charAt(c);'"'==e||"'"==e?(b&&(this.quotes.push(a),d.push(e),a=""),b=!b):b&&(a+=e)}h="  "+h;for(c=0;c<this.quotes.length;c++)if("truestyle"!=this.quotes[c].toLowerCase()){var g=d[c]+this.quotes[c]+d[c],l=h.substring(0,h.indexOf(g)+g.length+2);var m=/(\w\w\w\()['|"][^'|^"]*['|"]/i;if(m.test(l))h=h.replace(g,"@"+c);else{m=/(\W)['|"][^'|^"]*['|"]/i;var n=(-1!=l.indexOf("#value")||
-1!=l.indexOf("#updateDifference")||-1!=l.indexOf("#updatePercent"))&&-1!=l.indexOf("if(");m.test(l)&&!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.B9(h);p=p[1][0]}catch(t){return null}return p};k.prototype.B9=function(h){for(var d=[],b="",a=h.length,c=0;c<h.length;c++){var e=h.charAt(c);
if("("==e)b+="$"+d.length+";",e=this.B9(h.slice(c+1)),d.push(e[1]),c=c+e[0]+1;else if(")"==e){a=c;break}else b+=e}h=[];b=b.split(",");for(c=0;c<b.length;c++)h.push(this.kY(b[c],d));return[a,h]};k.prototype.kY=function(h,d){for(var b=[[" or "," and "],"== != >= <= = > <".split(" "),["-","+"],["/","*"],["^"]],a=0;a<b.length;a++){var c=Number.MIN_VALUE,e=b[a][0];if(3==a){c=h.indexOf(b[a][0]);var g=h.indexOf(b[a][1]);-1!=c&&-1!=g?e=c<g?b[a][1]:b[a][0]:-1!=c?e=b[a][0]:-1!=g&&(e=b[a][1])}else for(g=0;g<
b[a].length;g++){var l=h.indexOf(b[a][g]);-1!=l&&(l>=c||2==a)&&(e=b[a][g],c=l+e.length)}c=h.split(e);2<c.length&&(g=c[c.length-1],c.pop(),c=[c.join(e),g]);if(2==c.length)return[e.trim(),[this.kY(c[0],d),this.kY(c[1],d)],!0]}return this.Sqa(h,d)};k.prototype.Sqa=function(h,d){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 d[b][0];("min"==h||"max"==h)&&1<d[b].length&&(a=!0,"string"==typeof d[b][0]&&(d[b][0]=["sum",[d[b][0]],!1]),"string"==
typeof d[b][1]&&(d[b][1]=["sum",[d[b][1]],!1]));if("value"===h||"updatedifference"===h||"updatepercent"===h)a=!0;return[h,d[b],a]}return d[b][0]}if(-1!=h.indexOf("@"))return d=parseInt(h.slice(1)),this.quotes[d];if("truestyle"==h.toLowerCase()||"truestyle"==h.substring(1,h.length-1).toLowerCase())return"truestyle";d=parseFloat(h);return isNaN(d)?h:d};f.BI=k})(x||(x={}));
(function(f){function k(){}q.Object.defineProperties(k,{Qn:{configurable:!0,enumerable:!0,get:function(){return/Mac/i.test(navigator.platform)}},wC:{configurable:!0,enumerable:!0,get:function(){return/(iPhone|iPod|iPad)/i.test(navigator.platform)||/(iPhone|iPod|iPad)/i.test(navigator.userAgent)}}});f.Oi=k})(x||(x={}));
(function(f){function k(d){this.Ag=[];this.prefix=d}function h(d){d=void 0===d?!0:d;this.values=[];this.GQ=[];this.root=new k("");this.LQ=d}h.prototype.add=function(d,b){if(w.v(d)||0===d.length)return void 0===this.ey&&(this.ey=this.values.length,this.values.push(d)),this.ey;d=""+d;if(this.LQ){var a=/[^\u0000-\u007F]+/.test(d)?d.toLocaleLowerCase():d.toLowerCase();return this.root.U9(d,a,a===d,this.values,this.GQ,b)}return this.root.V9(d,this.values,b)};h.prototype.get=function(d){return this.LQ?
this.GQ[d]||this.values[d]:this.values[d]};h.prototype.find=function(d){if(w.v(d)||0===d.length)return void 0!==this.ey?this.ey:-1;d=""+d;var b=/[^\u0000-\u007F]+/.test(d);this.LQ&&(d=b?d.toLocaleLowerCase():d.toLowerCase());return this.root.find(d,0,this.values,b)};h.prototype.sort=function(){var d=this.root.sort(h.yZ);void 0!==this.ey&&d.unshift(this.ey);return d};h.prototype.clone=function(){var d=new h(this.LQ);d.values=this.values.slice();d.GQ=this.GQ.slice();d.ey=this.ey;d.root=this.root.clone();
return d};h.yZ=function(d,b){return d&&d.localeCompare?d.localeCompare(b):d==b?0:d>b?1:-1};q.Object.defineProperties(h.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.values.length}}});f.dP=h;k.prototype.V9=function(d,b,a){var c=this.prefix.length;if(void 0!==this.children&&d.length>c)return c=d[c],this.children.has(c)||this.children.set(c,new k(this.prefix+c)),this.children.get(c).V9(d,b,a);for(var e=0;e<this.Ag.length;e++){c=b[this.Ag[e]];if(d<c)return this.sP(d,b,a,
e);if(d===c){if(void 0===a)return this.Ag[e];b[a]=d;this.Ag.splice(e,0,a);return a}}return this.sP(d,b,a)};k.prototype.U9=function(d,b,a,c,e,g){var l=this.prefix.length;if(void 0!==this.children&&b.length>l)return l=b[l],this.children.has(l)||this.children.set(l,new k(this.prefix+l)),this.children.get(l).U9(d,b,a,c,e,g);for(var m=0;m<this.Ag.length;m++){l=c[this.Ag[m]];if(b<l)return a?this.sP(d,c,g,m):this.A8(d,b,c,e,g,m);if(b===l){if(void 0===g)return this.Ag[m];c[g]=b;a||(e[g]=d);this.Ag.splice(m,
0,g);return g}}return a?this.sP(d,c,g):this.A8(d,b,c,e,g)};k.prototype.A8=function(d,b,a,c,e,g){g=void 0===g?-1:g;void 0===e?(e=a.length,a.push(b),c[e]=d):(a[e]=b,c[e]=d);-1===g?this.Ag.push(e):this.Ag.splice(g,0,e);this.Ag.length>k.k7&&this.O9(a);return e};k.prototype.sP=function(d,b,a,c){c=void 0===c?-1:c;void 0===a?(a=b.length,b.push(d)):b[a]=d;-1===c?this.Ag.push(a):this.Ag.splice(c,0,a);this.Ag.length>k.k7&&this.O9(b);return a};k.prototype.O9=function(d){if(!this.children){this.children=new Map;
for(var b,a=this.prefix.length,c=-1,e=0,g=0;g<this.Ag.length;g++)b=d[this.Ag[g]],b.length===a?c=this.Ag[g]:(b=b[a],this.children.has(b)||(this.children.set(b,new k(this.prefix+b)),e++),this.children.get(b).Ag.push(this.Ag[g]));this.Ag=-1===c?[]:[c]}};k.prototype.sort=function(d){var b=0<this.Ag.length?this.Ag.slice():[];if(void 0!==this.children){for(var a=[],c=ja(this.children.keys()),e=c.next();!e.done;e=c.next())a.push(e.value);a=a.sort(d);for(c=0;c<a.length;c++)e=this.children.get(a[c]).sort(d),
b=b.concat(e)}return b};k.prototype.find=function(d,b,a,c){if(void 0!==this.children&&d.length!==this.prefix.length){var e=d[b];return this.children.has(e)?this.children.get(e).find(d,b+1,a,c):-1}return this.tqa(d,a,c)};k.prototype.tqa=function(d,b,a){for(var c,e=0;e<this.Ag.length;e++)if(c=b[this.Ag[e]],a){if(c=c.localeCompare(d),0===c)return this.Ag[e]}else if(d===c)return this.Ag[e];return-1};k.prototype.clone=function(){var d=new k(this.prefix);d.Ag=this.Ag.slice();void 0!==this.children&&(d.children=
new Map(this.children));return d};k.k7=16})(x||(x={}));
(function(f){function k(){}k.og=function(h){for(var d in h)if(!w.v(h[d]))return!1;return!0};k.DF=function(h){var d={},b;for(b in h)d[b]=h[b];return d};k.Vi=function(h,d){if(w.v(h))return null;if(Array.isArray(h))return k.Dva(h);var b={},a;for(a in h)b[a]="object"!=typeof h[a]||null==h[a]||null!=d&&-1<d.indexOf(a)?h[a]:k.Vi(h[a]);return b};k.Dva=function(h){for(var d=[],b=0;b<h.length;b++)d[b]="object"!=typeof h[b]?h[b]:k.Vi(h[b]);return d};k.resolve=function(h,d){return w.v(d)?null:d.hasOwnProperty(h)?
d[h]:h.split(".").reduce(function(b,a){return b&&b[a]},d)};f.Mc=k})(x||(x={}));var y;
(function(f){function k(){this.DR=!1;this.Vg=[];this.pm=[];this.Ls=[]}function h(d,b,a){this.n9=!1;this.type=d;this.target=void 0===b?null:b;this.data=void 0===a?null:a}h.Pda=function(d){return-1<"fullscreenchange mozfullscreenchange webkitfullscreenchange MSFullscreenChange focusin focusout touchstart touchmove touchend touchenter touchleave touchcancel".split(" ").indexOf(d)};h.prototype.stopPropagation=function(){this.n9=!0};q.Object.defineProperties(h.prototype,{sBa:{configurable:!0,enumerable:!0,
get:function(){return this.n9}}});h.Jc="event_complete";h.Fz="event_connected";h.je="event_progress";h.to="event_select";h.Qd="event_change";h.ya="event_error";h.OPENED="event_opened";h.CLOSED="event_closed";h.SV="event_cancel";h.OPEN="event_open";h.x5="event_close";h.ZW="event_resize";h.jo="event_clear";f.da=h;k.prototype.lF=function(d,b){return d.type==b.type&&d.Eb==b.Eb};k.prototype.G0=function(d){return!w.v(this.Vg[d])};k.prototype.H0=function(d,b){if(w.v(this.Vg[d]))return!1;for(var a=0;a<this.Vg[d].length;a++)if(this.lF(this.Vg[d][a],
b))return!0;return!1};k.prototype.N=function(d,b,a){a=void 0===a?0:a;b={type:d,Eb:b,priority:a};if(!this.H0(d,b))if(this.DR)w.v(this.pm[d])&&(this.pm[d]=[]),this.pm[d].push(b);else if(w.v(this.Vg[d])&&(this.Vg[d]=[]),0==this.Vg[d].length)this.Vg[d].push(b);else{this.Vg[d][this.Vg[d].length-1].priority>=a&&this.Vg[d].push(b);for(var c=0;c<this.Vg[d].length;c++)if(this.Vg[d][c].priority<a){this.Vg[d].splice(c,0,b);break}}};k.prototype.mb=function(d,b){if(!w.v(this.Vg[d])){b={type:d,Eb:b};for(var a=
this.Vg[d].slice(0),c=[],e=0;e<a.length;e++)this.lF(a[e],b)?this.DR&&(w.v(this.Ls[d])&&(this.Ls[d]=[]),this.Ls[d].push(a[e])):c.push(a[e]);this.Vg[d]=c}};k.prototype.Od=function(d){void 0===d?(this.Vg=[],this.pm=[],this.Ls=[]):(w.v(this.Vg)||(this.Vg[d]=[]),w.v(this.pm)||(this.pm[d]=[]),w.v(this.Ls)||(this.Ls[d]=[]))};k.prototype.Da=function(d){if(!w.v(this.Vg[d.type])){this.DR=!0;for(var b=this.Vg[d.type].slice(0),a=0;a<b.length;a++){if(!w.v(this.Ls[d.type])){var c=!1,e;for(e in this.Ls[d.type])this.lF(b[a],
this.Ls[d.type][e])&&(c=!0);if(c)continue}d instanceof w.model.Xc?b[a].Eb.call(this,d.data):d instanceof h&&d.sBa||b[a].Eb.call(this,d)}delete this.Ls[d.type];for(var g in this.pm){if(w.v(this.Vg[g]))b=[];else if(Array.isArray(this.Vg[g]))b=this.Vg[g].slice(0);else continue;if(!w.v(this.pm[g]))for(a=0;a<this.pm[g].length;a++)if(0==b.length)b.push(this.pm[g][a]);else for(b[b.length-1].priority==this.pm[g][a].priority&&b.push(this.pm[g][a]),d=0;d<b.length;d++)if(b[d].priority<this.pm[g][a].priority){b.splice(d,
0,this.pm[g][a]);break}this.Vg[g]=b;this.pm[g]=[]}this.DR=!1}};k.prototype.Wa=function(d,b,a){d=new f.da(d,null==b?this:b,a);this.Da(d)};f.Fc=k})(y||(y={}));
(function(f){function k(){throw Error("Singleton");}f.requestIdleCallback=function(h,d,b){d=void 0===d?null:d;if(window.requestIdleCallback&&(void 0===b||!b))return window.requestIdleCallback(h,d);var a,c=f.xf(),e;return w.pe(function(){h({didTimeout:!1,timeRemaining:function(){return void 0===a?(a=f.xf(),e=Math.min(350,f.xf()-c+50)):Math.max(0,e-(f.xf()-a))}})},1)};f.cancelIdleCallback=function(h){if(window.cancelIdleCallback)return window.cancelIdleCallback(h);w.Dr(h)};k.sn=function(h){k.iH.push(h);
k.Wf()};k.Wf=function(){w.v(k.jK)&&0<k.iH.length&&(3<k.Q0&&(k.hda=!1),k.jK=f.requestIdleCallback(k.KHa,{timeout:100},!k.hda))};k.KHa=function(h){if(h.didTimeout)k.Q0++,k.rga();else for(k.Q0=0;0<h.timeRemaining()&&0<k.iH.length&&!k.rga(););k.jK=null;k.Wf()};k.rga=function(){var h=k.iH.shift(),d=h.ao(h.eZ);d?h&&h.Ne&&w.pe(h.Ne,1):k.iH.push(h);return d};k.cancel=function(){null!=k.jK&&(f.cancelIdleCallback(k.jK),k.jK=null);k.iH=[]};k.iH=[];k.hda=!0;k.Q0=0;f.Pk=k})(x||(x={}));
(function(f){function k(){var h=navigator.userAgent.toLowerCase(),d={};d.QL=/mozilla/.test(h)&&/firefox/.test(h);d.$S=/webkit/.test(h)&&/chrome/.test(h)&&!/edge/.test(h);d.Y0=/edge/.test(h);d.yBa=/applewebkit/.test(h)&&/safari/.test(h)&&!/chrome/.test(h);d.Rda=/opera/.test(h);d.Di=/msie/.test(h);d.uBa=/ReactNative/i.test(navigator.product);d.Vl=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(h)||/iPad|iPhone|iPod|BlackBerry/i.test(navigator.platform)||d.uBa;d.version=NaN;d.Di||d.QL||
d.$S||d.yBa||d.Rda||!/trident/.test(h)||(d.Di=!0,d.version=11);if(isNaN(d.version))for(var b=["chrome","firefox","msie","safari","opera"],a=0;a<b.length;a++)try{d.version=parseInt(h.match(new RegExp("("+b[a]+")( |/)([0-9]+)"))[3]);break}catch(c){}return d}f.Bd=function(){return k()};f.BR=k;f.jT=function(){return null!=document.fullscreenElement||null!=document.mozFullScreenElement||null!=document.webkitFullscreenElement||null!=document.msFullscreenElement};f.e1=function(){return window!=top};f.Bda=
function(){try{return!w.v(window.process.versions.electron)}catch(h){return!1}};f.aBa=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}};
f.vNa=function(h){var d=document.cookie,b=d.indexOf(" "+h+"=");-1==b&&(b=d.indexOf(h+"="));-1==b?d=null:(b=d.indexOf("=",b)+1,h=d.indexOf(";",b),-1==h&&(h=d.length),d=decodeURI(d.substring(b,h)));return d};f.ANa=function(h,d){var b=new Date;b.setDate(b.getDate()+1825);d=encodeURI(d)+"; expires="+b.toUTCString();document.cookie=h+"="+d};f.wNa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("landscape")};f.xNa=function(){return screen.orientation&&-1<screen.orientation.type.indexOf("portrait")};
f.INa=function(){return Math.max(document.documentElement.clientWidth)};f.HNa=function(){return Math.max(document.documentElement.clientHeight)}})(x||(x={}));
(function(f){function k(){}function h(d,b){b=void 0===b?0:b;var a=y.Fc.call(this)||this;a.DP=0;a.EJ=!1;a.kqa=d;a.I9=b;return a}u(h,y.Fc);h.prototype.EFa=function(){this.DP++;this.Da(new y.da(k.Nk));0<this.I9&&this.DP>=this.I9&&(this.stop(),this.Da(new y.da(k.Ok)))};h.prototype.start=function(){var d=this;this.EJ||(this.j9=w.Lba(function(){return d.EFa()},this.kqa),this.EJ=!0)};h.prototype.stop=function(){this.EJ&&!w.v(this.j9)&&(w.I_(this.j9),this.EJ=!1)};h.prototype.reset=function(){this.DP=0;this.stop()};
q.Object.defineProperties(h.prototype,{Qx:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.DP}},sl:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.EJ}}});f.Es=h;k.Nk="timer";k.Ok="complete";f.Ze=k;f.xf=function(){return"undefined"!==typeof performance&&"function"===typeof window.performance.now?performance.now():(new Date).getTime()}})(x||(x={}));
(function(f){function k(d,b){this.eK=null;this.Wi=!1;this.total=this.loaded=0;this.errors=[];this.C1=this.KM=null;this.url=d;this.baseURI=b;this.total="string"==typeof this.url?1:this.url.length}function h(){}h.load=function(d,b,a){if(PivotApi.libsIncluded)return b();d=new k(d,h.gZ);this.SG.push(d);d.Eb=b;d.Xa=a;d.load()};h.D1=function(d,b,a){null==b&&(b={});d=new k(d,h.gZ);this.SG.push(d);d.eK=b.eK;d.Wi=b.Wi;d.Eb=a;d.Xa=void 0;d.load()};h.PJa=function(){var d=document.querySelector("link[data-fm-hc-theme]");
d&&(d.disabled=!0)};h.dispose=function(){for(var d=0;d<this.SG.length;d++)this.SG[d].dispose();this.SG.length=0;this.SG=null};h.gZ="";h.SG=[];f.mn=h;k.prototype.load=function(){0==this.total&&this.aj();if("string"==typeof this.url)this.xJ(this.url,this.eK);else for(var d=this.url,b=0;b<d.length;b++)this.xJ(d[b],this.eK)};k.prototype.aj=function(){this.loaded++;if(this.loaded==this.total||0==this.total)0==this.errors.length?this.Eb&&this.Eb():this.Xa&&this.Xa(this.errors),this.Xa=this.Eb=null};k.prototype.xJ=
function(d,b){d=this.baseURI+d;d.lastIndexOf(".js")==d.length-3?this.$Ba(d):d.lastIndexOf(".css")==d.length-4?this.D1(d,b):this.aj()};k.prototype.$Ba=function(d){var b=this;if(null==this.Gba(d)){var a=this.KM=document.createElement("script");a.type="text/javascript";a.src=d+"?"+w.Ug.qs;a.async=!0;var c=function(){a.readystate="loaded";b.aj();if(a.onloadedlisteners){for(var e=0;e<a.onloadedlisteners.length;e++)a.onloadedlisteners[e]();delete a.onloadedlisteners}};a.onreadystatechange=c;a.onload=c;
a.onerror=function(){a.readystate="error";b.errors.push(d);b.aj()};document.head.appendChild(a)}else c=this.KM=this.Gba(d),"error"==c.readystate?(this.errors.push(d),this.aj()):!0===c.async&&"loaded"!=c.readystate?(null==c.onloadedlisteners&&(c.onloadedlisteners=[]),c.onloadedlisteners.push(function(){return b.aj()})):this.aj()};k.prototype.D1=function(d,b){var a=this;b=void 0===b?null:b;var c=this.C1=document.createElement("link");c.href=d+"?"+w.Ug.qs;c.rel="stylesheet";c.type="text/css";if(null!=
b)for(var e in b)b.hasOwnProperty(e)&&c.setAttribute(e,b[e]);c.onerror=function(){return a.Mb(d)};c.onreadystatechange=function(){return a.aj()};c.onload=function(){return a.aj()};this.Wi?document.body.appendChild(c):document.head.appendChild(c)};k.prototype.Gba=function(d){for(var b=0;b<document.head.children.length;b++){var a=document.head.children.item(b);if(a.src&&-1<a.src.indexOf(d))return a}return null};k.prototype.Mb=function(d){this.errors.push(d);this.aj()};k.prototype.dispose=function(){this.Xa=
this.Eb=this.C1=this.KM=null}})(x||(x={}));
(function(f){function k(d){return y.da.call(this,d)||this}function h(d){var b=y.Fc.call(this)||this;b.VX=!1;b.Eqa=function(a){return b.kp(a)};b.Fqa=function(a){return b.B2(a)};b.KBa=1E3;b.buffer=[];b.kda=function(){return b.oEa()};b.rP=null;if(null!=h.ne)throw Error("KeyboardListener is singleton");f.Bd().Vl||(w.Pj.addEventListener("keydown",b.Eqa),w.Pj.addEventListener("keyup",b.Fqa),b.ME=new A.Aa("div"),b.ME.P("position","fixed").P("left","0px").P("top","0px").P("opacity","0").P("width","0px").P("height",
"0px"),b.ME.$a(),b.$p=new A.Xu,b.$p.F.P("width","1px").P("height","1px").P("padding","0px"),b.$p.N("focusin",function(){b.VX=!0}),b.$p.N("focusout",function(){b.VX=!1}),b.ME.append(b.$p.F),d.append(b.ME));return b}u(h,y.Fc);h.U=function(){null==h.ne&&(h.ne=new h(w.K.Hb.zb.F));return h.ne};h.prototype.B2=function(d){this.f$(d.key,d.type)};h.prototype.kp=function(d){var b=new k(k.rO);b.keyCode=d.keyCode;b.altKey=d.altKey;b.ctrlKey=d.ctrlKey;b.metaKey=d.metaKey;b.shiftKey=d.shiftKey;b.np=d;this.Da(b);
this.f$(d.key,d.type)};h.prototype.f$=function(d,b){d=d.toLowerCase();var a=Date.now();a-this.NBa>this.KBa&&(this.buffer.length=0);20<this.buffer.length&&this.buffer.splice(0,this.buffer.length-6);this.buffer.push({key:d,type:b});this.NBa=a;this.nta()&&(this.buffer.length=0,this.Wa(k.n8))};h.prototype.nta=function(){if(6>this.buffer.length)return!1;for(var d=0,b=0,a=ja(this.buffer),c=a.next();!c.done;c=a.next())c=c.value,"shift"==c.key&&("keydown"==c.type?d++:"keyup"==c.type&&b++);return 3<=d&&3<=
b};h.prototype.oEa=function(){this.ME.$a();this.$p.cj("");this.$p.F.blur();this.$p.mb("keyup",this.kda);null!=this.rP&&(this.rP.focus({preventScroll:!0}),this.rP=null)};h.prototype.DF=function(d){this.rP=document.activeElement;this.ME.show();this.$p.cj(d);this.$p.F.focus({preventScroll:!0});this.$p.selectAll();this.$p.F.focus({preventScroll:!0});this.$p.N("keyup",this.kda)};h.dispose=function(){h.ne=null};q.Object.defineProperties(h.prototype,{Fda:{configurable:!0,enumerable:!0,get:function(){return this.VX}}});
f.sO=h;u(k,y.da);k.rO="event_keydown";k.n8="event_tripple_shift";f.KeyboardEvent=k;(function(d){d[d.sKa=8]="BACKSPACE";d[d.gNa=9]="TAB";d[d.dLa=13]="ENTER";d[d.aNa=16]="SHIFT";d[d.UKa=17]="CTRL";d[d.pKa=18]="ALT";d[d.QMa=19]="PAUSE";d[d.PKa=20]="CAPS_LOCK";d[d.fLa=27]="ESCAPE";d[d.cNa=32]="SPACE";d[d.PMa=33]="PAGE_UP";d[d.OMa=34]="PAGE_DOWN";d[d.Mz=35]="END";d[d.HLa=36]="HOME";d[d.tMa=37]="LEFT_ARROW";d[d.pNa=38]="UP_ARROW";d[d.TMa=39]="RIGHT_ARROW";d[d.bLa=40]="DOWN_ARROW";d[d.ILa=45]="INSERT";d[d.V5=
46]="DELETE";d[d.KLa=48]="KEY_0";d[d.LLa=49]="KEY_1";d[d.MLa=50]="KEY_2";d[d.NLa=51]="KEY_3";d[d.OLa=52]="KEY_4";d[d.PLa=53]="KEY_5";d[d.QLa=54]="KEY_6";d[d.RLa=55]="KEY_7";d[d.SLa=56]="KEY_8";d[d.TLa=57]="KEY_9";d[d.ULa=65]="KEY_A";d[d.VLa=66]="KEY_B";d[d.WLa=67]="KEY_C";d[d.XLa=68]="KEY_D";d[d.YLa=69]="KEY_E";d[d.ZLa=70]="KEY_F";d[d.$La=71]="KEY_G";d[d.aMa=72]="KEY_H";d[d.bMa=73]="KEY_I";d[d.cMa=74]="KEY_J";d[d.dMa=75]="KEY_K";d[d.eMa=76]="KEY_L";d[d.fMa=77]="KEY_M";d[d.gMa=78]="KEY_N";d[d.hMa=
79]="KEY_O";d[d.iMa=80]="KEY_P";d[d.jMa=81]="KEY_Q";d[d.kMa=82]="KEY_R";d[d.lMa=83]="KEY_S";d[d.mMa=84]="KEY_T";d[d.nMa=85]="KEY_U";d[d.oMa=86]="KEY_V";d[d.pMa=87]="KEY_W";d[d.qMa=88]="KEY_X";d[d.rMa=89]="KEY_Y";d[d.sMa=90]="KEY_Z";d[d.uMa=91]="LEFT_META";d[d.UMa=92]="RIGHT_META";d[d.to=93]="SELECT";d[d.CMa=96]="NUMPAD_0";d[d.DMa=97]="NUMPAD_1";d[d.EMa=98]="NUMPAD_2";d[d.FMa=99]="NUMPAD_3";d[d.GMa=100]="NUMPAD_4";d[d.HMa=101]="NUMPAD_5";d[d.IMa=102]="NUMPAD_6";d[d.JMa=103]="NUMPAD_7";d[d.KMa=104]=
"NUMPAD_8";d[d.LMa=105]="NUMPAD_9";d[d.JO=106]="MULTIPLY";d[d.AN=107]="ADD";d[d.aP=109]="SUBTRACT";d[d.ZKa=110]="DECIMAL";d[d.dI=111]="DIVIDE";d[d.hLa=112]="F1";d[d.lLa=113]="F2";d[d.mLa=114]="F3";d[d.nLa=115]="F4";d[d.oLa=116]="F5";d[d.pLa=117]="F6";d[d.qLa=118]="F7";d[d.rLa=119]="F8";d[d.sLa=120]="F9";d[d.iLa=121]="F10";d[d.jLa=122]="F11";d[d.kLa=123]="F12";d[d.MMa=144]="NUM_LOCK";d[d.WMa=145]="SCROLL_LOCK";d[d.ZMa=186]="SEMICOLON";d[d.eLa=187]="EQUALS";d[d.SKa=188]="COMMA";d[d.YKa=189]="DASH";
d[d.RMa=190]="PERIOD";d[d.CLa=191]="FORWARD_SLASH";d[d.GLa=192]="GRAVE_ACCENT";d[d.NMa=219]="OPEN_BRACKET";d[d.tKa=220]="BACK_SLASH";d[d.RKa=221]="CLOSE_BRACKET";d[d.bNa=222]="SINGLE_QUOTE"})(f.ima||(f.ima={}))})(x||(x={}));
(function(f){function k(d,b){this.oY="__resizeLast__";this.K9="__resizeListeners__";this.BJ="__resizeTriggers__";this.qQ="__resizeRAF__";this.oqa="__resizeTrigger";this.SC=d;this.t4=b;this.JR=this.Yxa();w.v(this.SC)||this.sAa(this.t4)}function h(d){var b=y.Fc.call(this)||this;b.rY=function(){return b.SHa()};b.IP=function(){return b.IP()};b.UE="__FMResizeTriggersStorage__";b.Tk=d;b.uAa();b.eq=new k(b.Tk.element,b.UE);b.kJa(b.Tk.element);return b}u(h,y.Fc);h.prototype.uAa=function(){!w.v(this.Tk)&&
w.v(this.Tk.element[this.UE])&&(this.Tk.element[this.UE]={})};h.prototype.refresh=function(){this.C3(this.eq)};h.prototype.C3=function(d){var b=d.H3;d=b.firstElementChild;b=b.lastElementChild;var a=d.firstElementChild;b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;a.style.width=d.offsetWidth+1+"px";a.style.height=d.offsetHeight+"px";d.scrollLeft=d.scrollWidth;d.scrollTop=d.scrollHeight};h.prototype.mta=function(d){return d.offsetWidth!=this.eq.E3.width||d.offsetHeight!=this.eq.E3.height};h.prototype.SHa=
function(){var d=this;if(this.Tk&&this.Tk.element&&!w.v(this.Tk.element[this.UE])){var b=this.Tk.element,a=this.eq.E3;this.C3(this.eq);this.eq.F3&&this.Tk.cancelAnimationFrame(this.eq.F3);this.eq.F3=this.Tk.requestAnimationFrame(function(){w.v(a.width)&&(a.width=b.offsetWidth);w.v(a.height)&&(a.height=b.offsetHeight);d.mta(b)&&(a.width=b.offsetWidth,a.height=b.offsetHeight,d.Rva())})}};h.prototype.Rva=function(){this.Wa(y.da.ZW)};h.prototype.kJa=function(d){d.attachEvent?d.attachEvent("onresize",
this.IP):w.v(d)||("static"==getComputedStyle(d).position&&(d.style.position="relative"),d.appendChild(this.eq.H3),this.C3(this.eq),d.addEventListener("scroll",this.rY,!0))};h.prototype.mJa=function(d){d.detachEvent?d.detachEvent("onresize",this.IP):d.removeEventListener("scroll",this.rY,!0)};h.prototype.Bta=function(){for(var d=this.Tk.element[this.UE],b=Object.keys(d),a=0;a<b.length;a++)if(!w.v(d[b[a]]))return;this.Tk.element[this.UE]=null};h.prototype.dispose=function(){this.Tk&&this.Tk.element&&
(this.mJa(this.Tk.element),this.eq.dispose(),this.eq=null,this.Bta());this.IP=this.rY=this.Tk=null};f.xoa=h;k.prototype.Yxa=function(){return this.oqa+w.K.Hb.zb.Ue.id};k.prototype.sAa=function(d){this.SC[d][this.JR]={};d=this.SC[d][this.JR];d[this.oY]={};d[this.K9]=[];d[this.BJ]=document.createElement("div");d[this.BJ].className="fm-resize-triggers";d[this.BJ].innerHTML='<div class="fm-expand-trigger"><div></div></div><div class="fm-contract-trigger"></div>';d[this.qQ]=null};k.prototype.sL=function(){return this.SC[this.t4][this.JR]};
k.prototype.dispose=function(){if(!w.v(this.SC)){this.SC.removeChild(this.H3);var d=this.sL();d[this.oY]=null;d[this.K9]=null;d[this.qQ]=null;d[this.BJ]=null;this.SC[this.t4][this.JR]=null}};q.Object.defineProperties(k.prototype,{H3:{configurable:!0,enumerable:!0,get:function(){return this.sL()[this.BJ]}},E3:{configurable:!0,enumerable:!0,get:function(){return this.sL()[this.oY]}},F3:{configurable:!0,enumerable:!0,get:function(){return this.sL()[this.qQ]},set:function(d){this.sL()[this.qQ]=d}}});
f.VMa=k})(x||(x={}));(function(f){function k(){this.z4=[]}k.prototype.add=function(h,d){for(var b=[],a=1;a<arguments.length;++a)b[a-1]=arguments[a];this.z4.push({Eb:h,eZ:b})};k.prototype.Wf=function(h){function d(){if(0==b.z4.length)h();else{var a=b.z4.shift();f.requestIdleCallback(function(){return a.Eb.apply(a,[d].concat(ka(a.eZ)))},{timeout:100})}}var b=this;d()};f.YI=k})(x||(x={}));
(function(f){function k(){}function h(H,G,F){var I=0,N=[],L=0,O,T,M,V=!1,P=[],W=[],ca=!1;F=F||{};var X=F.encoding||"UTF8";var ea=F.yNa||1;if(ea!==parseInt(ea,10)||1>ea)throw Error("numRounds must a integer >= 1");if(0===H.lastIndexOf("SHA-",0))if(O=function(R,S){return J(R,S,H)},T=function(R,S,Y,ba){if("SHA-224"===H||"SHA-256"===H){var Z=(S+65>>>9<<4)+15;var ha=16}else throw Error("Unexpected error in SHA-2 implementation");for(;R.length<=Z;)R.push(0);R[S>>>5]|=128<<24-S%32;S+=Y;R[Z]=S&4294967295;
R[Z-1]=S/4294967296|0;Y=R.length;for(S=0;S<Y;S+=ha)ba=J(R.slice(S,S+ha),ba,H);if("SHA-224"===H)R=[ba[0],ba[1],ba[2],ba[3],ba[4],ba[5],ba[6]];else if("SHA-256"===H)R=ba;else throw Error("Unexpected error in SHA-2 implementation");return R},M=function(R){return R.slice()},"SHA-224"===H){var fa=512;var Q=224}else if("SHA-256"===H)fa=512,Q=256;else throw Error("Chosen SHA variant is not supported");else throw Error("Chosen SHA variant is not supported");var la=l(G,X);var ia=K(H);this.setHMACKey=function(R,
S,Y){if(!0===V)throw Error("HMAC key already set");if(!0===ca)throw Error("Cannot set HMAC key after calling update");X=(Y||{}).encoding||"UTF8";S=l(S,X)(R);R=S.nF;S=S.value;var ba=fa>>>3;Y=ba/4-1;if(ba<R/8){for(S=T(S,R,0,K(H));S.length<=Y;)S.push(0);S[Y]&=4294967040}else if(ba>R/8){for(;S.length<=Y;)S.push(0);S[Y]&=4294967040}for(R=0;R<=Y;R+=1)P[R]=S[R]^909522486,W[R]=S[R]^1549556828;ia=O(P,ia);I=fa;V=!0};this.update=function(R){var S,Y=0,ba=fa>>>5;var Z=la(R,N,L);R=Z.nF;var ha=Z.value;Z=R>>>5;for(S=
0;S<Z;S+=ba)Y+fa<=R&&(ia=O(ha.slice(S,S+ba),ia),Y+=fa);I+=Y;N=ha.slice(Y>>>5);L=R%fa;ca=!0};this.getHash=function(R,S){if(!0===V)throw Error("Cannot call getHash after setting HMAC key");var Y=g(S);switch(R){case "HEX":R=function(Z){return b(Z,Q,Y)};break;case "B64":R=function(Z){return a(Z,Q,Y)};break;case "BYTES":R=function(Z){return c(Z,Q)};break;case "ARRAYBUFFER":try{S=new ArrayBuffer(0)}catch(Z){throw Error("ARRAYBUFFER not supported by this environment");}R=function(Z){return e(Z,Q)};break;
default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER");}var ba=T(N.slice(),L,I,M(ia));for(S=1;S<ea;S+=1)ba=T(ba,Q,0,K(H));return R(ba)};this.getHMAC=function(R,S){if(!1===V)throw Error("Cannot call getHMAC without first setting HMAC key");var Y=g(S);switch(R){case "HEX":R=function(Z){return b(Z,Q,Y)};break;case "B64":R=function(Z){return a(Z,Q,Y)};break;case "BYTES":R=function(Z){return c(Z,Q)};break;case "ARRAYBUFFER":try{R=new ArrayBuffer(0)}catch(Z){throw Error("ARRAYBUFFER not supported by this environment");
}R=function(Z){return e(Z,Q)};break;default:throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER");}S=T(N.slice(),L,I,M(ia));var ba=O(W,K(H));ba=T(S,Q,fa,ba);return R(ba)}}function d(){}function b(H,G,F){var I="";G/=8;var N;for(N=0;N<G;N+=1){var L=H[N>>>2]>>>8*(3+N%4*-1);I+="0123456789abcdef".charAt(L>>>4&15)+"0123456789abcdef".charAt(L&15)}return F.uU?I.toUpperCase():I}function a(H,G,F){var I="",N=G/8,L;for(L=0;L<N;L+=3){var O=L+1<N?H[L+1>>>2]:0;var T=L+2<N?H[L+2>>>2]:0;T=(H[L>>>2]>>>
8*(3+L%4*-1)&255)<<16|(O>>>8*(3+(L+1)%4*-1)&255)<<8|T>>>8*(3+(L+2)%4*-1)&255;for(O=0;4>O;O+=1)8*L+6*O<=G?I+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T>>>6*(3-O)&63):I+=F.JQ}return I}function c(H,G){var F="";G/=8;var I;for(I=0;I<G;I+=1){var N=H[I>>>2]>>>8*(3+I%4*-1)&255;F+=String.fromCharCode(N)}return F}function e(H,G){G/=8;var F,I=new ArrayBuffer(G);var N=new Uint8Array(I);for(F=0;F<G;F+=1)N[F]=H[F>>>2]>>>8*(3+F%4*-1)&255;return I}function g(H){var G={uU:!1,JQ:"=",
BNa:-1};H=H||{};G.uU=H.uU||!1;!0===H.hasOwnProperty("b64Pad")&&(G.JQ=H.JQ);if("boolean"!==typeof G.uU)throw Error("Invalid outputUpper formatting option");if("string"!==typeof G.JQ)throw Error("Invalid b64Pad formatting option");return G}function l(H,G){switch(G){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE");}switch(H){case "HEX":H=function(F,I,N){var L=F.length,O,T;if(0!==L%2)throw Error("String of HEX type must be in byte increments");
I=I||[0];N=N||0;var M=N>>>3;for(O=0;O<L;O+=2){var V=parseInt(F.substr(O,2),16);if(isNaN(V))throw Error("String of HEX type contains invalid characters");var P=(O>>>1)+M;for(T=P>>>2;I.length<=T;)I.push(0);I[T]|=V<<8*(3+P%4*-1)}return{value:I,nF:4*L+N}};break;case "TEXT":H=function(F,I,N){var L=0,O,T,M;I=I||[0];N=N||0;var V=N>>>3;if("UTF8"===G){var P=3;for(O=0;O<F.length;O+=1){var W=F.charCodeAt(O);var ca=[];128>W?ca.push(W):2048>W?(ca.push(192|W>>>6),ca.push(128|W&63)):55296>W||57344<=W?ca.push(224|
W>>>12,128|W>>>6&63,128|W&63):(O+=1,W=65536+((W&1023)<<10|F.charCodeAt(O)&1023),ca.push(240|W>>>18,128|W>>>12&63,128|W>>>6&63,128|W&63));for(T=0;T<ca.length;T+=1){var X=L+V;for(M=X>>>2;I.length<=M;)I.push(0);I[M]|=ca[T]<<8*(P+X%4*-1);L+=1}}}else if("UTF16BE"===G||"UTF16LE"===G)for(P=2,ca="UTF16LE"===G&&!0||"UTF16LE"!==G&&!1,O=0;O<F.length;O+=1){W=F.charCodeAt(O);!0===ca&&(T=W&255,W=T<<8|W>>>8);X=L+V;for(M=X>>>2;I.length<=M;)I.push(0);I[M]|=W<<8*(P+X%4*-1);L+=2}return{value:I,nF:8*L+N}};break;case "B64":H=
function(F,I,N){var L=0,O,T;if(-1===F.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");var M=F.indexOf("=");F=F.replace(/=/g,"");if(-1!==M&&M<F.length)throw Error("Invalid '=' found in base-64 string");I=I||[0];N=N||0;var V=N>>>3;for(M=0;M<F.length;M+=4){var P=F.substr(M,4);for(O=T=0;O<P.length;O+=1){var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(P[O]);T|=W<<18-6*O}for(O=0;O<P.length-1;O+=1){var ca=L+V;for(W=ca>>>2;I.length<=W;)I.push(0);
I[W]|=(T>>>16-8*O&255)<<8*(3+ca%4*-1);L+=1}}return{value:I,nF:8*L+N}};break;case "BYTES":H=function(F,I,N){var L;I=I||[0];N=N||0;var O=N>>>3;for(L=0;L<F.length;L+=1){var T=F.charCodeAt(L);var M=L+O;var V=M>>>2;I.length<=V&&I.push(0);I[V]|=T<<8*(3+M%4*-1)}return{value:I,nF:8*F.length+N}};break;case "ARRAYBUFFER":try{H=new ArrayBuffer(0)}catch(F){throw Error("ARRAYBUFFER not supported by this environment");}H=function(F,I,N){var L;I=I||[0];N=N||0;var O=N>>>3;var T=new Uint8Array(F);for(L=0;L<F.byteLength;L+=
1){var M=L+O;var V=M>>>2;I.length<=V&&I.push(0);I[V]|=T[L]<<8*(3+M%4*-1)}return{value:I,nF:8*F.byteLength+N}};break;default:throw Error("format must be HEX, TEXT, B64, BYTES, or ARRAYBUFFER");}return H}function m(H,G){return H>>>G|H<<32-G}function n(H,G,F){return H&G^~H&F}function p(H,G,F){return H&G^H&F^G&F}function t(H){return m(H,2)^m(H,13)^m(H,22)}function r(H){return m(H,6)^m(H,11)^m(H,25)}function v(H){return m(H,7)^m(H,18)^H>>>3}function z(H){return m(H,17)^m(H,19)^H>>>10}function B(H,G){var F=
(H&65535)+(G&65535);return((H>>>16)+(G>>>16)+(F>>>16)&65535)<<16|F&65535}function C(H,G,F,I){var N=(H&65535)+(G&65535)+(F&65535)+(I&65535);return((H>>>16)+(G>>>16)+(F>>>16)+(I>>>16)+(N>>>16)&65535)<<16|N&65535}function E(H,G,F,I,N){var L=(H&65535)+(G&65535)+(F&65535)+(I&65535)+(N&65535);return((H>>>16)+(G>>>16)+(F>>>16)+(I>>>16)+(N>>>16)+(L>>>16)&65535)<<16|L&65535}function K(H){var G,F;if(0===H.lastIndexOf("SHA-",0))switch(G=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,
3204075428],F=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],H){case "SHA-224":break;case "SHA-256":G=F;break;case "SHA-384":G=[new d,new d,new d,new d,new d,new d,new d,new d];break;case "SHA-512":G=[new d,new d,new d,new d,new d,new d,new d,new d];break;default:throw Error("Unknown SHA variant");}else throw Error("No SHA variants supported");return G}function J(H,G,F){var I,N,L,O=[];if("SHA-224"===F||"SHA-256"===F){var T=64;var M=1;var V=Number;var P=B;
var W=C;var ca=E;var X=v;var ea=z;var fa=t;var Q=r;var la=p;var ia=n;var R=aa}else throw Error("Unexpected error in SHA-2 implementation");F=G[0];var S=G[1];var Y=G[2];var ba=G[3];var Z=G[4];var ha=G[5];var sa=G[6];var za=G[7];for(L=0;L<T;L+=1)16>L?(N=L*M,I=H.length<=N?0:H[N],N=H.length<=N+1?0:H[N+1],O[L]=new V(I,N)):O[L]=W(ea(O[L-2]),O[L-7],X(O[L-15]),O[L-16]),I=ca(za,Q(Z),ia(Z,ha,sa),R[L],O[L]),N=P(fa(F),la(F,S,Y)),za=sa,sa=ha,ha=Z,Z=P(ba,I),ba=Y,Y=S,S=F,F=P(I,N);G[0]=P(F,G[0]);G[1]=P(S,G[1]);G[2]=
P(Y,G[2]);G[3]=P(ba,G[3]);G[4]=P(Z,G[4]);G[5]=P(ha,G[5]);G[6]=P(sa,G[6]);G[7]=P(za,G[7]);return G}k.hash=function(H){var G=new h("SHA-256","TEXT");G.update(H);return G.getHash("HEX")};f.Coa=k;var aa=[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]})(w||(w={}));
(function(f){function k(h){this.vAa=h;this.EK=new f.nb;this.mGa(this.vAa)}k.prototype.get=function(h){return this.has(h)?this.EK.getItem(h)[0]:null};k.prototype.has=function(h){return this.EK.Bb(h)};k.prototype.mGa=function(h){0===h.indexOf("?")&&(h=h.slice(1));h=h.split("&");for(var d=0;d<h.length;d++){var b=h[d],a=b.indexOf("=");-1<a?this.Wfa(this.decode(b.slice(0,a)),this.decode(b.slice(a+1))):b&&this.Wfa(this.decode(b),"")}};k.prototype.Wfa=function(h,d){this.EK.Bb(h)?this.EK.getItem(h).push(d):
this.EK.Pa(h,[d])};k.prototype.decode=function(h){return h.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/ig,function(d){return decodeURIComponent(d)})};f.Bla=k})(w||(w={}));(function(f){function k(){}k.eca=function(){return getComputedStyle(document.documentElement).getPropertyValue("--fm-version").trim().replace(/"/g,"")};k.bta=function(h){return k.eca()===h};f.K5=k})(x||(x={}));var A;
(function(f){(function(k){function h(){var d=this;this.distance=15;this.$P=!1;this.LA=null;this.vD=!0;w.Pj.addEventListener("mousemove",function(b){return d.sw(b)});w.Pj.addEventListener("touchmove",function(b){return d.Y2(b)},!1);w.Pj.addEventListener("mouseup",function(b){return d.zq(b)});w.Pj.addEventListener("touchend",function(b){return d.sU(b)});w.Pj.addEventListener("touchcancel",function(b){return d.sU(b)})}h.U=function(){h.instance||(h.instance=new h);return h.instance};h.dispose=function(){h.instance=
null};h.prototype.lCa=function(d,b){function a(e){b.JS&&!e.target.matches(b.JS)||c.Gd==d||(null!=c.Gd&&c.s4(b,e),c.Gd=d,c.Fn=b,c.xha=c.x0(e),c.yha=c.y0(e),c.U4=!1)}var c=this;d.Y("fm-draggable");d.N("mousedown",a);d.N("touchstart",a)};h.prototype.x0=function(d){return d instanceof MouseEvent?d.clientX:d.changedTouches[0].clientX};h.prototype.y0=function(d){return d instanceof MouseEvent?d.clientY:d.changedTouches[0].clientY};h.prototype.sw=function(d){1==d.which&&this.Gd&&(this.wg&&this.Gd.Lc("fm-dragging")?
(this.aV(d.clientX,d.clientY),this.Fn.d2&&this.Fn.d2(this.Gd,d),d.preventDefault(),window.getSelection().removeAllRanges()):w.v(this.Fn.qw)||this.Fn.qw(this.Gd,d)?(this.$P=!0,this.wg=this.Fn.Bn(this.Gd),this.wg.P("opacity",0),w.K.Hb.zb.F.V(this.wg),this.aV(d.clientX,d.clientY,!0),this.Gd.Y("fm-dragging")):(this.Gd=null,w.v(this.wg)||(this.wg.sg(!0),this.wg=null)))};h.prototype.xda=function(d,b){return Math.abs(this.xha-d)>this.distance||Math.abs(this.yha-b)>this.distance?!0:!1};h.prototype.aV=function(d,
b,a){a=void 0===a?!1:a;if(null!=this.wg){var c=w.K.Hb.zb.F.Sf();this.wg.P("margin-left");this.wg.P("margin-top");if(a&&null!=this.Gd){var e=this.Gd.Sf();a=Math.max(0,Math.min(this.Gd.height,b-e.top));e=Math.max(0,Math.min(this.Gd.width,this.wg.width,d-e.left));this.wg.P("margin-top",-a+"px");this.wg.P("margin-left",-e+"px")}this.wg.position({top:b-c.top,left:d-c.left});this.xda(d,b)&&(this.wg.P("opacity",1),this.Gd.Y("fm-dragging-move"),!this.U4&&w.pg(this.Fn.eU)&&this.Fn.eU(this.Gd),this.U4=!0)}};
h.prototype.Y2=function(d){if(this.Gd){var b=d.touches[0];if(this.wg&&this.Gd.Lc("fm-dragging")){this.aV(b.clientX,b.clientY);this.Fn.d2&&this.Fn.d2(this.Gd,d);d.preventDefault();b=d.changedTouches[0];var a=f.Aa.Pb(document.elementFromPoint(b.clientX,b.clientY));if(a){var c=a.closest(".fm-droppable");c&&!0===c.zt.scroll&&this.Uca(c,b.clientY);c&&c.zt&&c.zt.Wl&&(c.zt.Wl(this.Gd,this.wg,c,d),this.LA=c)}(null==a||null==c)&&null!=this.LA&&this.LA.zt&&this.LA.zt.ml&&this.LA.zt.ml(this.Gd,this.wg,this.LA,
d)}else w.v(this.Fn.qw)||this.Fn.qw(this.Gd,d)?(this.$P=!0,this.wg=this.Fn.Bn(this.Gd),this.wg.P("opacity",0),w.K.Hb.zb.F.V(this.wg),this.aV(b.clientX,b.clientY,!0),this.Gd.Y("fm-dragging")):(this.Gd=null,this.wg.sg(!0),this.wg=null)}};h.prototype.zq=function(d){this.s4(this.Fn,d)};h.prototype.sU=function(d){for(var b=d.changedTouches[0],a=b=f.Aa.Pb(document.elementFromPoint(b.clientX,b.clientY));b;){if(b.Lc("fm-droppable")){w.ha(b.zt.Fy)||(a=a.closest(b.zt.Fy));b.zt.Xl(this.Gd,b,a,d);break}b=b.parent}this.s4(this.Fn,
d)};h.prototype.s4=function(d,b){this.$P=!1;null!=this.wg&&(this.wg.sg(!0),this.wg=null);if(null!=this.Gd){this.Gd.ud("fm-dragging");this.Gd.ud("fm-dragging-move");if(this.U4&&this.Gd&&this.Gd.element){var a=this.Gd,c=function(e){w.v(a)||(a.mb("click",c),a=null,e.stopImmediatePropagation())};this.Gd.N("click",c)}d.ju&&this.xda(this.x0(b),this.y0(b))&&d.ju(this.Gd,b);this.Gd=null}this.LA=null;this.yha=this.xha=NaN;this.vD=!0;clearTimeout(this.xga)};h.prototype.mCa=function(d,b,a){var c=this;d.Lc("fm-droppable")||
(d.Y("fm-droppable"),d.N("mouseenter",function(e){null!=c.Gd&&1==e.which&&a.e2&&a.e2(c.Gd,c.wg,b,e)}),d.N("mouseleave",function(e){c.vD=!0;null!=c.Gd&&1==e.which&&a.ml&&a.ml(c.Gd,c.wg,b,e)}),d.N("mouseover",function(e){c.vD=!0;null!=c.Gd&&1==e.which&&(!0===a.scroll&&c.Uca(d,e.clientY),a.Wl&&a.Wl(c.Gd,c.wg,b,e))}),d.N("mouseup",function(e){c.vD=!0;if(null!=c.Gd&&1==e.which){var g=f.Aa.Pb(e.target);w.ha(a.Fy)||(g=g.closest(a.Fy));a.Xl(c.Gd,d,g,e)}}))};h.prototype.Uca=function(d,b){var a=d.element.getBoundingClientRect(),
c=Math.max(0,a.bottom-b);b=Math.max(0,b-a.top);30>c?(this.vD=!1,this.N3(d,Math.min(30/c,4))):30>b&&(this.vD=!1,this.N3(d,Math.min(-30/b,4)))};h.prototype.N3=function(d,b){var a=this;clearTimeout(this.xga);w.v(d)||(d.Dw(d.element.scrollTop+b),0==this.vD&&(this.xga=setTimeout(function(){return a.N3(d,b)},20)))};q.Object.defineProperties(h.prototype,{QAa:{configurable:!0,enumerable:!0,get:function(){return this.$P}}});k.VN=h})(f.IK||(f.IK={}))})(A||(A={}));
(function(f){function k(h,d){h=void 0===h?"div":h;d=void 0===d?"":d;var b=y.Fc.call(this)||this;b.F=new f.Aa(h);b.F.Y("fm-ui "+d);x.Bd().Vl&&b.F.Y("fm-ui-mobile");b.validate();return b}u(k,y.Fc);k.prototype.validate=function(){this.S0={}};k.prototype.be=function(h){this.S0[void 0===h?"all":h]=!0;this.gb()};k.prototype.Kr=function(h){for(var d=[],b=0;b<arguments.length;++b)d[b-0]=arguments[b];if(this.S0.all)return!0;for(b=0;b<d.length;b++)if(this.S0[d[b]])return!0;return!1};k.prototype.gb=function(){this.validate()};
k.prototype.Lq=function(){this.be()};k.prototype.show=function(){this.F.show()};k.prototype.$a=function(){this.F.$a()};k.prototype.i0=function(){return this.F.attr("id")};k.prototype.Uga=function(h){this.F.attr("id",h)};k.prototype.bha=function(){this.Uga("fm-"+Math.random().toString(36).substr(2,9))};k.prototype.cC=function(){return this.name};k.prototype.ue=function(h){this.F.ue(void 0===h?0:h)};k.prototype.$j=function(h){this.F.$j(h)};k.prototype.html=function(h){if(void 0===h)return this.F.html();
this.F.html(h);return this};k.prototype.Mh=function(h){this.F.attr("title",h)};k.prototype.xp=function(h){this.Csa(!h);this.F.Ua("fm-ui-disabled",!h)};k.prototype.jL=function(){return!this.F.Lc("fm-ui-disabled")};k.prototype.Y=function(h){this.F.Y(void 0===h?"":h)};k.prototype.ud=function(h){this.F.ud(h)};k.prototype.Ua=function(h,d){this.F.Ua(h,d)};k.prototype.Lc=function(h){return this.F.Lc(h)};k.prototype.cf=function(h){return this.F.cf(h)};k.prototype.tj=function(h){this.cf()!==h&&(this.F.tj(h),
this.be("size"))};k.prototype.qd=function(h){return this.F.qd(void 0===h?!1:h)};k.prototype.yp=function(h){this.qd()!==h&&(this.F.yp(h),this.be("size"))};k.prototype.isVisible=function(h){void 0!==h&&(h?this.show():this.$a());return this.F.visible};k.prototype.position=function(){return this.F.position()};k.prototype.V=function(h,d){(void 0===d?0:d)?this.F.prepend(h.F):this.F.append(h.F)};k.prototype.sg=function(h){(void 0===h?0:h)?this.F.remove():this.F.detach()};k.prototype.x0=function(){return this.F.left};
k.prototype.y0=function(){return this.F.top};k.prototype.N=function(h,d){this.F.N(h,d)};k.prototype.mb=function(h,d){this.F.mb(h,d)};k.prototype.Da=function(h){this.F.Da(h)};k.prototype.Wa=function(h,d,b){this.F.Wa(h,d,b)};k.prototype.eB=function(h){h=(void 0===h?0:h)?this.cf(!0):w.K.Hb.tu;this.F.Ua("fm-layout-tablet",768>h);this.F.Ua("fm-layout-mobile",580>h);this.F.Ua("fm-layout-mobile-small",460>h)};k.prototype.focus=function(h){this.F.focus(void 0===h?null:h)};k.prototype.blur=function(){this.F.blur()};
k.prototype.jg=function(h,d){return this.F.jg(h,d)};k.prototype.hc=function(h){return this.F.jg("label",h)};k.prototype.Cm=function(){this.F.jg("hidden","true")};k.prototype.Csa=function(h){this.F.jg("disabled",void 0===h?void 0:""+h)};k.prototype.A$=function(h){this.F.jg("selected",void 0===h?void 0:""+h)};k.prototype.Bsa=function(h){this.F.jg("checked",void 0===h?void 0:""+h)};k.prototype.z$=function(h){this.F.jg("expanded",void 0===h?void 0:""+h)};k.prototype.Dsa=function(h){this.F.jg("haspopup ",
void 0===h?void 0:""+h)};q.Object.defineProperties(k.prototype,{Nm:{configurable:!0,enumerable:!0,get:function(){return this.F.Nm}},C0:{configurable:!0,enumerable:!0,get:function(){return this.F.C0}},padding:{configurable:!0,enumerable:!0,get:function(){return this.F.padding},set:function(){}}});f.Ca=k})(A||(A={}));
(function(f){function k(h,d,b){h=void 0===h?"div":h;d=void 0===d?"":d;b=void 0===b?!0:b;var a=y.Fc.call(this)||this;a.display="block";a.frames=[];a.Wp={};a.element="string"==typeof h?document.createElement(h):h;b&&a.Y("fm-ui-element");a.Y(d);return a}u(k,y.Fc);k.prototype.V=function(h){this.element.appendChild(h.element)};k.prototype.children=function(){for(var h=this.element.firstElementChild,d=[];h;)d.push(k.Pb(h)),h=h.nextElementSibling;return d};k.prototype.contains=function(h){return this.element.contains(h.element)};
k.prototype.iR=function(h){var d=this.JZ(h.target);!d&&h.path&&(d=this.JZ(h.path[0]));!d&&h.composedPath&&(h=h.composedPath())&&(d=this.JZ(h[0]));return d};k.prototype.JZ=function(h){if(null==h)return!1;for(;h!=this.element&&(h=h.parentElement,null!=h););return null!=h};k.prototype.append=function(h){h&&this.V(h);return this};k.prototype.prepend=function(h){this.element.insertBefore(h.element,this.element.firstChild);return this};k.prototype.before=function(h){this.element.parentNode&&this.element.parentNode.insertBefore(h.element,
this.element);return this};k.prototype.after=function(h){this.element.parentNode&&(this.element.nextElementSibling?this.element.parentNode.insertBefore(h.element,this.element.nextElementSibling):this.element.parentNode.appendChild(h.element));return this};k.prototype.cB=function(h){this.element.appendChild(h.F.element)};k.prototype.sg=function(h){void 0===h||h?this.remove():this.detach()};k.prototype.remove=function(){null!=this.element&&(this.element.parentNode&&this.element.parentNode.removeChild(this.element),
this.dispose())};k.prototype.detach=function(){if(null!=this.element&&this.element.parentNode){var h=this.element.cloneNode(!0);this.element.parentNode.removeChild(this.element);this.element=h}};k.prototype.ww=function(){for(;this.element&&this.element.firstChild;){var h=k.Pb(this.element.firstChild);h&&h.dispose&&h.dispose();this.element.removeChild(this.element.firstChild)}};k.prototype.clone=function(){return k.Pb(this.element.cloneNode(!0))};k.Pb=function(h){return h&&h.nodeType==Node.ELEMENT_NODE?
w.v(h.uielement)?new k(h,"",!1):h.uielement:null};k.prototype.get=function(h){var d=this.children();return 0<d.length?d[h]:null};k.prototype.find=function(h,d){if(void 0===d||0==d)return k.Pb(this.element.querySelector(h));h=this.element.querySelectorAll(h);d=[];for(var b=0;b<h.length;b++)d.push(k.Pb(h[b]));return d};k.prototype.closest=function(h){if(!this.element)return null;for(var d=this.element;null!=d;){if(d.matches){if(d.matches(h))return d==this.element?this:k.Pb(d)}else if(d.msMatchesSelector&&
d.msMatchesSelector(h))return d==this.element?this:k.Pb(d);d=d.parentElement}return null};k.prototype.Y=function(h){if(!this.element)return this;h=h.trim();for(var d=h.split(" "),b=0;b<d.length;b++)0<d[b].length&&(x.BR().Di?(h=this.element.getAttribute("class"),w.v(h)?this.element.setAttribute("class",d[b]):-1==h.split(" ").indexOf(d[b])&&this.element.setAttribute("class",h+" "+d[b])):0==this.element.classList.contains(d[b])&&this.element.classList.add(d[b]));return this};k.prototype.ud=function(h){if(this.element&&
(h=h.trim(),0<h.length))if(x.BR().Di){var d=this.element.getAttribute("class");w.v(d)||(d=d.split(" "),h=d.indexOf(h),-1<h&&(d.splice(h,1),this.element.setAttribute("class",d.join(" "))))}else this.element.classList.contains(h)&&this.element.classList.remove(h)};k.prototype.Ua=function(h,d){d?this.Y(h):this.ud(h)};k.prototype.Lc=function(h){return this.element.classList.contains(h)};k.prototype.$k=function(){this.Y("fm-noselect")};k.prototype.zwa=function(){this.Y("fm-selectable")};k.prototype.cf=
function(h){if(!this.element)return 0;var d=this.zB;return this.element.clientWidth-((void 0===h?0:h)?0:(parseFloat(d.paddingLeft)||0)+(parseFloat(d.paddingRight)||0))};k.prototype.tj=function(h){"number"===typeof h?this.element.style.width=h+"px":"string"===typeof h&&(this.element.style.width=h);return this};k.prototype.qd=function(h){if(!this.element)return 0;var d=this.zB;h=(void 0===h?0:h)?0:(parseFloat(d.paddingTop)||0)+(parseFloat(d.paddingBottom)||0);return 0>this.element.clientHeight-h?0:
this.element.clientHeight-h};k.prototype.yp=function(h){"number"===typeof h?this.element.style.height=h+"px":"string"===typeof h&&(this.element.style.height=h)};k.prototype.html=function(h){if(void 0===h)return this.element.innerHTML;this.element.innerHTML=h;return this};k.prototype.empty=function(){this.html("")};k.prototype.clear=function(){this.empty()};k.prototype.text=function(h){if(void 0===h)return this.element.textContent;"input"==this.element.tagName.toLowerCase()?this.element.value=h:this.element.textContent=
h;return this};k.prototype.focus=function(h){this.element.focus(void 0===h?null:h);return this};k.prototype.blur=function(){this.element.blur();return this};k.prototype.show=function(){this.element.style.display=this.display};k.prototype.$a=function(){this.element.style.display="none"};k.prototype.offset=function(h){if(void 0===h)return this.Sf();this.P("left",h.left+"px");this.P("top",h.top+"px")};k.prototype.getBoundingClientRect=function(){return this.element.getBoundingClientRect()};k.prototype.position=
function(h){if(void 0===h)return{top:this.y,left:this.x};this.offset(h)};k.prototype.attr=function(h,d){if(void 0===d)return this.element.getAttribute(h);try{this.element.setAttribute(h,d)}catch(b){this.element&&this.element.attributes&&(this.element.attributes[h]=d)}return this};k.prototype.w3=function(h){this.element.removeAttribute(h)};k.prototype.P=function(h,d){if(void 0===d)return this.zB[k.Jha(h)];this.element.style[k.Jha(h)]=d;return this};k.prototype.jg=function(h,d){if(void 0===d)return this.attr("aria-"+
h);this.attr("aria-"+h,d)};k.Jha=function(h){var d=h.split("-");if(1<d.length){for(h=1;h<d.length;h++)d[h]=d[h].charAt(0).toUpperCase()+d[h].substr(1);return d.join("")}return h};k.prototype.sN=function(){return"input"==this.element.tagName.toLowerCase()||"textarea"==this.element.tagName.toLowerCase()?this.element.value:this.element.textContent};k.prototype.requestAnimationFrame=function(h){var d=0;this.zB=null;window.requestAnimationFrame?d=window.requestAnimationFrame(h):window.msRequestAnimationFrame?
d=window.msRequestAnimationFrame(h):window.mozRequestAnimationFrame?d=window.mozRequestAnimationFrame(h):window.webkitRequestAnimationFrame?d=window.webkitRequestAnimationFrame(h):h.call(null);this.frames.push(d);return d};k.prototype.cancelAnimationFrame=function(h){this.zB=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))};k.prototype.Sf=function(h){h=void 0===h?null:h;if(null==h)return h=this.element.getBoundingClientRect(),{top:h.top,left:h.left};for(var d=0,b=0,a=this.element;a&&a!=h&&!isNaN(a.offsetLeft)&&!isNaN(a.offsetTop);)d+=a.offsetLeft-a.scrollLeft,b+=a.offsetTop-a.scrollTop,a=a.offsetParent;return{top:b,left:d}};k.prototype.Dw=function(h){this.element.scrollTop=h};k.prototype.BIa=function(){this.element.scrollLeft=
0};k.prototype.N=function(h,d,b){"undefined"!==typeof this.element["on"+h]||y.da.Pda(h)?(w.v(this.Wp[h])&&(this.Wp[h]=[]),this.Wp[h][d.toString()]=function(a){d(a)},this.element.addEventListener(h,this.Wp[h][d.toString()],b)):y.Fc.prototype.N.call(this,h,d,b)};k.prototype.mb=function(h,d){"undefined"!==typeof this.element["on"+h]||y.da.Pda(h)?this.Wp[h]&&this.element.removeEventListener(h,this.Wp[h][d.toString()],void 0):y.Fc.prototype.mb.call(this,h,d)};k.prototype.Da=function(h){y.Fc.prototype.Da.call(this,
h)};k.prototype.Od=function(h){for(var d in this.Wp)if(void 0===h||h==d)for(var b in this.Wp[d])if(this.Wp[d].hasOwnProperty(b))try{this.element.removeEventListener(d,this.Wp[d][b],!0),this.element.removeEventListener(d,this.Wp[d][b],!1)}catch(a){console.error(a)}this.Wp={};y.Fc.prototype.Od.call(this,d)};k.prototype.dispose=function(){this.Od();this.ww();this.GE&&(this.GE=this.GE.uielement=null);for(var h=0;h<this.frames.length;h++)this.cancelAnimationFrame(this.frames[h]);this.frames.length=0;this.J9&&
this.J9.dispose()};k.prototype.refresh=function(){this.html(this.html())};k.prototype.draggable=function(h){f.IK.VN.U().lCa(this,h)};k.prototype.Ar=function(h,d){this.mqa=h;f.IK.VN.U().mCa(this,d?d:this,h)};k.prototype.index=function(){for(var h=0,d=this.element;d=d.previousElementSibling;)h++;return h};k.prototype.Fi=function(h){this.J9=new f.Fi.woa(this,h)};k.prototype.ue=function(h){this.attr("tabindex",void 0===h?0:h)};k.prototype.$j=function(h){this.attr("role",h)};q.Object.defineProperties(k.prototype,
{element:{configurable:!0,enumerable:!0,set:function(h){(this.GE=h)&&(this.GE.uielement=this)},get:function(){return this.GE}},id:{configurable:!0,enumerable:!0,get:function(){return this.element.id},set:function(h){this.element.id=h}},parent:{configurable:!0,enumerable:!0,get:function(){return k.Pb(this.element.parentElement)}},nodeName:{configurable:!0,enumerable:!0,get:function(){return this.GE.nodeName.toLowerCase()}},width:{configurable:!0,enumerable:!0,get:function(){return this.cf()},set:function(h){this.tj(h)}},
padding:{configurable:!0,enumerable:!0,get:function(){var h=this.zB;return{left:parseFloat(h.paddingLeft)||0,right:parseFloat(h.paddingRight)||0,top:parseFloat(h.paddingTop)||0,bottom:parseFloat(h.paddingBottom)||0}},set:function(){}},borderWidth:{configurable:!0,enumerable:!0,get:function(){var h=this.zB;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}}},height:{configurable:!0,enumerable:!0,get:function(){return this.qd()},set:function(h){this.yp(h)}},left:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().left},set:function(h){this.element.style.left=h+"px"}},top:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().top},set:function(h){this.element.style.top=h+"px"}},right:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().right},
set:function(h){this.element.style.right=h+"px"}},bottom:{configurable:!0,enumerable:!0,get:function(){return this.element.getBoundingClientRect().bottom},set:function(h){this.element.style.bottom=h+"px"}},x:{configurable:!0,enumerable:!0,get:function(){return this.element.offsetLeft}},y:{configurable:!0,enumerable:!0,get:function(){return this.element.offsetTop}},zB:{configurable:!0,enumerable:!0,get:function(){w.v(this.yX)&&(this.yX=window.getComputedStyle(this.element));return this.yX},set:function(h){this.yX=
h}},visible:{configurable:!0,enumerable:!0,set:function(h){h?this.show():this.$a()},get:function(){return this.element&&"none"!=this.P("display")}},zt:{configurable:!0,enumerable:!0,get:function(){return this.mqa}},Nm:{configurable:!0,enumerable:!0,get:function(){return document.activeElement==this.element}},C0:{configurable:!0,enumerable:!0,get:function(){for(var h=document.activeElement;null!=h;){if(h==this.element)return!0;h=h.parentElement}return!1}}});f.Aa=k})(A||(A={}));
(function(f){function k(h,d){h=void 0===h?"":h;var b=f.Ca.call(this,void 0===d?"a":d,"fm-ui-btn")||this;b.R1=0;b.pHa=50;b.Y(h);b.F.N("click",function(a){return b.Wj(a)});b.F.N("mousedown",function(){return b.rw()});b.F.N("mouseup",function(){return b.zq()});b.F.N("mouseout",function(){return b.REa()});b.F.N("keydown",function(a){return b.kp(a)});b.F.display="inline-block";b.$j("button");b.ue(0);return b}u(k,f.Ca);k.prototype.Wj=function(h){this.jL()&&this.Wa(k.Xe,this,h);h instanceof MouseEvent&&
h.stopImmediatePropagation()};k.prototype.kp=function(h){if(13==h.keyCode||32==h.keyCode)this.Wj(h),h.preventDefault()};k.prototype.rw=function(){var h=this;this.F.Ua("fm-ui-pressed",!0);this.R1=w.Lba(function(){return h.Pva()},this.pHa)};k.prototype.Pva=function(){this.Da(new y.da(k.una,this))};k.prototype.zq=function(){this.F.Ua("fm-ui-pressed",!1);w.I_(this.R1)};k.prototype.REa=function(){this.F.Ua("fm-ui-pressed",!1);w.I_(this.R1)};k.prototype.J=function(){return this.label};k.prototype.Za=function(h){this.label!=
h&&(this.label=h,this.F.text(this.label))};k.una="buttonmousedown";k.Xe="buttonclick";f.sd=k})(A||(A={}));(function(f){function k(h){h=f.sd.call(this,void 0===h?"":h,"button")||this;h.F.attr("type","button");return h}u(k,f.sd);f.Jf=k})(A||(A={}));
(function(f){function k(h){h=void 0===h?"":h;var d=f.Ca.call(this,"span","fm-ui fm-ui-label")||this;d.F.display="inline-block";d.Za(h);return d}u(k,f.Ca);k.prototype.J=function(){return this.label};k.prototype.Za=function(h,d){this.label!=h&&(this.label=h,(void 0===d?0:d)?this.F.html(this.label):this.F.text(this.label))};k.prototype.gV=function(h){h?this.F.zwa():this.F.$k()};f.Oc=k})(A||(A={}));
(function(f){function k(){var h=f.Ca.call(this,"textarea","fm-ui-text-area")||this;h.F.N("keypress",function(d){return h.A2(d)});h.F.N("keyup",function(d){return h.B2(d)});h.F.N("paste",function(){return h.v2()});h.F.N("blur",function(){return h.Zza()});return h}u(k,f.Ca);k.prototype.B2=function(){this.GK()};k.prototype.v2=function(){this.GK()};k.prototype.Zza=function(){this.Wa(k.fW)};k.prototype.GK=function(){this.Da(new y.da(f.Pi.Qw,this))};k.prototype.yi=function(){return this.F.sN()};k.prototype.cj=
function(h){this.yi()!=h&&(this.F.element.value=h,this.GK())};k.prototype.clear=function(){this.cj("")};k.prototype.zy=function(h){var d=this.F.element.selectionStart,b=this.F.element.selectionEnd,a=this.yi();this.cj(a.substr(0,d)+h+a.substr(d));this.jf(d+h.length,b+h.length)};k.prototype.jf=function(h,d){d=void 0===d?-1:d;this.F.element.focus();this.F.element.setSelectionRange(h,0>d?h:d)};k.prototype.selectAll=function(){this.jf(0,this.yi().length)};k.prototype.A2=function(h){h.ctrlKey?(this.Wa(k.eW),
h.preventDefault()):13==h.keyCode&&(this.Wa(k.Nz),h.preventDefault())};k.fW="focus_off";k.Nz="ntr";k.eW="ntl";f.Xu=k})(A||(A={}));
(function(f){function k(){var h=f.Ca.call(this,"input","fm-ui-text-input")||this;h.text="";h.prompt="";h.jZ=0;h.kZ=!0;h.F.display="inline-block";h.F.attr("type","text");h.F.attr("data-placeholder","");h.F.N("change",function(){return h.IFa()});h.F.N("focusin",function(){return h.l2()});h.F.N("focusout",function(){return h.$Da()});h.F.N("input",function(){return h.JFa()});h.F.N("keypress",function(d){return h.A2(d)});h.F.N("paste",function(){return h.v2()});return h}u(k,f.Ca);k.kya=function(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};k.prototype.A2=function(h){13==h.keyCode&&this.Wa(k.Nz);if(!(w.v(this.kga)||h.ctrlKey||h.altKey||h.metaKey)){var d=k.kya(h);null!=d&&!1===this.kga.test(d)&&h.preventDefault()}};k.prototype.B0=function(){this.F.sN()!==this.text&&(this.text=this.F.sN(),this.GK())};k.prototype.IFa=function(){this.B0()};k.prototype.JFa=function(){this.B0()};k.prototype.v2=function(){this.B0()};
k.prototype.GK=function(){var h=this;0<this.jZ?this.kZ&&(this.kZ=!1,w.pe(function(){return h.EX()},this.jZ)):this.EX()};k.prototype.EX=function(){this.kZ=!0;this.Da(new y.da(k.Qw,this,this.text))};k.prototype.l2=function(){0==this.text.length&&(this.F.text(""),this.At(!1))};k.prototype.$Da=function(){this.At(0==this.text.length)};k.prototype.yi=function(){return this.text=this.F.sN()==this.prompt?this.text:this.F.sN()};k.prototype.cj=function(h){this.text!=h&&(this.text=h,this.F.text(this.text),this.At(0==
this.text.length))};k.prototype.clear=function(h){h=void 0===h?!0:h;this.cj("");h&&this.EX();this.Wa(k.h6)};k.prototype.lD=function(h){h!=this.prompt&&(this.prompt=h,this.F.attr("data-placeholder",this.prompt),this.At(0==this.text.length))};k.prototype.At=function(h){this.F.text(h?this.prompt:this.text);this.F.Ua("fm-ui-prompt",h)};k.prototype.mD=function(h){this.kga=h};k.prototype.VU=function(h){this.jZ=h};k.prototype.FIa=function(){this.F.attr("type","number")};k.Qw="_";k.Nz="ntr";k.h6="clr";f.Pi=
k})(A||(A={}));(function(f){function k(){var h=f.Pi.call(this)||this;h.mD(k.ooa);h.FIa();return h}u(k,f.Pi);k.prototype.Fa=function(){return parseFloat(this.yi())};k.prototype.Nh=function(h){this.cj(h.toString())};k.ooa=/^\d+$/;k.sE=/[-\.\d]/;f.Vp=k})(A||(A={}));
(function(f){function k(){var h=f.sd.call(this)||this;h.F.display="inline-block";h.F.Lc("fm-ui-btn")&&h.F.ud("fm-ui-btn");h.F.Y("fm-ui-toggle-btn");h.selected=0;return h}(function(h){h[h.XMa=1]="SELECTED";h[h.oNa=0]="UNSELECTED";h[h.$Ma=-1]="SEMI_SELECTED"})(f.tpa||(f.tpa={}));u(k,f.sd);k.prototype.Wj=function(h){this.jL()&&(this.toggle(),this.Wa(y.da.Qd,this,h));h instanceof MouseEvent&&h.stopImmediatePropagation()};k.prototype.toggle=function(){this.jf(1==this.selected?0:1)};k.prototype.jf=function(h){!0===
h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.F.Ua("fm-selected",1==this.selected),1==this.selected?this.jg("checked","true"):-1==this.selected?this.jg("checked","mixed"):this.jg("checked","false"))};k.prototype.getSelection=function(){return this.selected};f.nA=k})(A||(A={}));
(function(f){function k(){var h=f.Jf.call(this)||this;h.$j("switch");h.F.display="inline-block";h.F.Lc("fm-ui-btn")&&h.F.ud("fm-ui-btn");h.F.Y("fm-ui-toggle-btn");h.jf(0);return h}u(k,f.Jf);k.prototype.Wj=function(h){this.jL()&&(this.toggle(),this.Wa(y.da.Qd,this,h))};k.prototype.toggle=function(){this.jf(1==this.selected?0:1)};k.prototype.jf=function(h){!0===h&&(h=1);!1===h&&(h=0);this.selected==h||1<h||-1>h||(this.selected=h,this.F.Ua("fm-selected",1==this.selected),this.Bsa(1==this.selected))};
k.prototype.getSelection=function(){return this.selected};f.jP=k})(A||(A={}));
(function(f){function k(){var h=f.nA.call(this)||this;h.F.display="inline-block";h.F.Lc("fm-ui-toggle-btn")&&h.F.ud("fm-ui-toggle-btn");h.F.Y("fm-ui-checkbox");h.MG=new f.Oc("Label");h.F.append(h.MG.F);h.$j("checkbox");return h}u(k,f.nA);k.prototype.toggle=function(){f.nA.prototype.toggle.call(this);this.F.Ua("fm-ui-semi-selected",-1==this.getSelection())};k.prototype.Za=function(h,d){null!=this.MG&&this.MG.Za(h,void 0===d?!1:d)};k.prototype.J=function(){return null!=this.MG?this.MG.J():""};k.prototype.jf=
function(h){!0===h&&(h=1);!1===h&&(h=0);this.getSelection()==h||1<h||-1>h||(f.nA.prototype.jf.call(this,h),this.F.Ua("fm-ui-semi-selected",-1==this.getSelection()))};k.prototype.Mh=function(h){this.MG.Mh(h)};q.Object.defineProperties(k.prototype,{checked:{configurable:!0,enumerable:!0,get:function(){return 1==this.getSelection()},set:function(h){this.jf(h?1:0)}}});f.$I=k})(A||(A={}));
(function(f){function k(){var h=f.Ca.call(this,"div","fm-ui-divider")||this;h.Nea=function(d){return h.sw(d)};h.HCa=function(d){return h.rw(d)};h.ICa=function(d){return h.zq(d)};h.direction=k.vI;h.N("mousedown",h.HCa);w.Pj.addEventListener("mouseup",h.ICa);h.F.$k();return h}u(k,f.Ca);k.prototype.rw=function(h){this.Ps=this.direction==k.vI?this.qd():this.cf();this.tA=this.F.parent.Sf();w.Pj.addEventListener("mousemove",this.Nea);h.preventDefault();h.stopImmediatePropagation()};k.prototype.sw=function(h){if(this.direction==
k.vI){var d=h.clientY-this.tA.top;if(this.DE&&(d<this.DE[1]||d>this.DE[3]))return;this.F.P("top",d-this.Ps/2+"px");this.Wa(k.gW,this,{top:d})}this.direction==k.pX&&(h=h.clientX-this.tA.left,this.DE&&(h<this.DE[0]||h>this.DE[2])||(this.F.P("left",h-this.Ps/2+"px"),this.Wa(k.gW,this,{left:h})))};k.prototype.zq=function(){w.Pj.removeEventListener("mousemove",this.Nea)};q.Object.defineProperties(k.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this.DX},set:function(h){this.DX=
h;this.F.Ua("fm-ui-horizontal",this.DX==k.vI);this.F.Ua("fm-ui-vertical",this.DX==k.pX);this.F.P("position","absolute")}},Aua:{configurable:!0,enumerable:!0,set:function(h){this.DE=h}}});k.vI=0;k.pX=1;k.gW="divider_moved_event";f.iP=k})(A||(A={}));(function(f){function k(){return f.Ca.call(this,"div","fm-ui-modal-overlay")||this}u(k,f.Ca);k.prototype.AIa=function(h){this.F.Ua("fm-ui-transparent",!1);this.F.Ua("fm-ui-opaque",h)};f.spa=k})(A||(A={}));
(function(f){(function(k){function h(d){return f.Ca.call(this,"div",void 0===d?"fm-ui-container":d)||this}u(h,f.Ca);h.prototype.removeChild=function(d){this.contains(d)&&d.F.detach()};h.prototype.contains=function(d){return w.v(d)?!1:this.F.contains(d.F)};h.prototype.cf=function(){return this.F.width};h.prototype.qd=function(){return this.F.height};h.prototype.ww=function(){for(var d=this.F.children(),b=d.length-1;0<=b;b--)d[b].sg()};k.ye=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-border-container")||this}u(h,k.ye);k.ZI=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){var d=k.ye.call(this)||this;d.F.Y("fm-ui-window");d.$a();return d}u(h,k.ye);h.prototype.setPosition=function(d,b){this.F.offset({left:Math.floor(d),top:Math.floor(b)});this.F.P("position","absolute")};k.kP=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-hgroup")||this}u(h,k.ye);k.jNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-vgroup")||this}u(h,k.ye);k.nNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-panel")||this}u(h,k.ye);k.kNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(d){var b=k.kP.call(this)||this;b.lv=!1;b.z9=function(){return b.L2()};b.iga=function(a){return b.Z2(a)};b.h1=!1;b.cF=!1;b.eY=d;b.F.Y("fm-ui-popup");b.$j("dialog");b.$a();b.bq=new f.spa;b.bq.Cm();b.bq.N("click",b.z9);b.bq.$a();b.eY&&b.eY.V(b.bq.F);b.Xqa=new f.gF.O6;b.Xpa=new f.gF.O6;return b}u(h,k.kP);h.prototype.Z2=function(d){var b=this;d.target===window&&(this.F.requestAnimationFrame(function(){return b.Go()}),this.eB())};h.prototype.L2=function(){this.close()};
h.prototype.open=function(){w.XK.addEventListener("resize",this.iga);this.bq.F.Ua("fm-ui-opaque",this.h1);this.show();this.Go();this.Wa(y.da.OPENED);this.eB();this.lv=!0;this.ov=document.activeElement;this.F.prepend(this.Xqa);this.F.append(this.Xpa)};h.prototype.show=function(){k.kP.prototype.show.call(this);this.bq&&this.bq.show()};h.prototype.$a=function(){k.kP.prototype.$a.call(this);this.bq&&this.bq.$a()};h.prototype.close=function(){w.XK.removeEventListener("resize",this.iga);this.$a();this.Wa(y.da.CLOSED);
this.lv=!1;this.ov&&(this.ov.focus(),this.ov=null)};h.prototype.Go=function(){var d=this.eY,b=w.K.Hb.zb.F.borderWidth,a=b?Math.round(b.left):0;b=b?Math.round(b.top):0;if(d){var c=Math.max(a,(d.cf(!0)-this.F.cf(!0))/2);d=Math.max(b,(d.qd(!0)-this.F.qd(!0))/2);this.setPosition(c==a?-1*c:c,d==b?-1*d:d)}};q.Object.defineProperties(h.prototype,{Zt:{configurable:!0,enumerable:!0,get:function(){return this.lv}},lN:{configurable:!0,enumerable:!0,get:function(){return this.cF},set:function(d){this.cF=d;this.F.P("opacity",
d?0:null);this.bq&&this.bq.F.P("opacity",d?0:null)}},QC:{configurable:!0,enumerable:!0,get:function(){return this.bq}}});k.mh=h})(f.Vb||(f.Vb={}))})(A||(A={}));(function(f){(function(k){function h(){return k.ye.call(this,"fm-ui-toolbar")||this}u(h,k.ye);k.lNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=k.ye.call(this,"fm-ui-toolbar-mobile")||this;d.J0=new f.Oc;d.J0.Y("fm-ui-header-display");d.V(d.J0);return d}u(h,k.ye);h.prototype.tIa=function(d){this.zi!=d&&(this.zi=d,this.J0.Za(d))};k.mNa=h})(f.Vb||(f.Vb={}))})(A||(A={}));
(function(f){(function(k){function h(){this.items=[];this.ZJ=[]}h.prototype.cV=function(d){this.ZJ=d};h.prototype.l0=function(d,b){if(0>d||b>this.ZJ.length+1)return[];for(this.items.length=0;d<b;d++)this.items.push(this.ZJ[d]);return this.items};h.prototype.getItem=function(d){return this.ZJ[d]};h.prototype.rG=function(){return this.ZJ.length};k.fNa=h})(f.xva||(f.xva={}))})(A||(A={}));
(function(f){(function(k){function h(){return y.da.call(this,y.da.Qd)||this}function d(){var b=f.Ca.call(this,"ul","fm-ui-list")||this;b.PU=NaN;b.$Z=x.Bd().Vl?d.aka:d.$ja;b.nH=[];b.iD=[];b.Th=0;b.zk=!1;b.useCache=!0;b.yE=!1;b.G=[];b.eea=[];b.Rg=[];b.Re="label";b.bu=b.Hva;b.yQ=b.F;b.$j("list");b.Fk=null;b.selectedIndex=-1;b.V3();return b}u(d,f.Ca);d.prototype.V3=function(){var b=this;this.F.N("click",function(a){return b.lU(a)});this.F.N("mousedown",function(a){return b.mU(a)});this.F.N("keydown",
function(a){return b.KC(a)})};d.prototype.Nd=function(){isNaN(this.PU)&&0<this.Rg.length&&(this.PU=this.Rg[0].qd(!0)+parseInt(this.Rg[0].F.P("border-top-width"))+parseInt(this.Rg[0].F.P("border-bottom-width")));return isNaN(this.PU)?this.$Z:this.PU};d.prototype.oIa=function(){this.$Z=37};d.prototype.Xv=function(){return 0};d.prototype.uG=function(){return this.G.length};d.prototype.gb=function(){this.Kr("data")&&this.fwa();this.validate()};d.prototype.fwa=function(){var b=this;this.fHa();for(var a,
c=this.uc(),e=0;e<c.length;e++)a=this.getItem(c[e],e),e==this.Th&&(this.yQ.jg("activedescendant",a.i0()),a.F.Y("fm-ui-active")),this.Pa(a);this.Ua("fm-ui-empty",0==c.length);this.ixa&&this.F.prepend(this.ixa);this.hxa&&this.F.append(this.hxa);this.F.requestAnimationFrame(function(){0<b.Rg.length&&(b.$Z=b.Rg[0].qd())})};d.prototype.getItem=function(b,a){if(this.useCache&&0<this.eea.length){var c=this.eea.pop();c.setData(b);c.am(a)}else c=this.bu(b,a),this.Re&&c.Xf(this.Re),this.hw&&c.dV(this.hw),this.Do&&
c.PM(this.Do);c.bha();return c};d.prototype.Pa=function(b){this.Rg.push(b);this.V(b)};d.prototype.fHa=function(){for(;0<this.Rg.length;)this.G9(this.Rg.pop())};d.prototype.removeItem=function(b){for(var a=0;a<this.Rg.length;a++)if(this.Rg[a]===b){this.Rg.splice(a,1);break}this.G9(b)};d.prototype.G9=function(b){null!=this.F.find(b.F.element.nodeName)&&b.F.remove()};d.prototype.KC=function(b){if(32==b.keyCode||13==b.keyCode)this.nU(this.Th,b),b.preventDefault();40==b.keyCode&&(this.gi(this.Th+1),b.preventDefault());
38==b.keyCode&&(this.gi(this.Th-1),b.preventDefault())};d.prototype.gi=function(b){this.Th=Math.max(0,Math.min(this.Rg.length-1,b));b=ja(this.Rg);for(var a=b.next();!a.done;a=b.next())a.value.ud("fm-ui-active");this.yQ.jg("activedescendant","");if(b=this.Rg[this.Th]){this.yQ.jg("activedescendant",b.i0());b.Y("fm-ui-active");a=this.F.parent.getBoundingClientRect();var c=b.F.getBoundingClientRect().top+this.F.parent.element.scrollTop,e=c+b.qd();c<a.top?b.F.element.scrollIntoView(!0):e>a.bottom&&b.F.element.scrollIntoView(!1)}};
d.prototype.MB=function(b){if(b=f.Aa.Pb(b).closest("li")){var a=parseInt(b.attr("data-index"));return isNaN(a)?null:{element:b,index:a,data:this.uc()[a]}}return null};d.prototype.Mt=function(){var b=this.Xv()+this.Th;return 0<=b?w.v(this.uc()[b])||w.v(this.Rg[b])?null:{index:b,data:this.uc()[b],element:this.Rg[b].F}:null};d.prototype.mU=function(b){(b=this.MB(b.target))&&this.gi(b.index)};d.prototype.lU=function(b){var a=this.MB(b.target);a&&this.nU(a.index,b)};d.prototype.nU=function(b,a){if(!(0>
b)){var c=this.Xv()+b,e=this.Fk,g=this.selectedIndex;this.ak(b);var l=new h;l.data={Fk:this.Fk,selectedIndex:this.selectedIndex,eIa:this.Rg[b].F,np:a,ZGa:c,PGa:e,OGa:g};this.Da(l)}};d.prototype.uc=function(){return this.G};d.prototype.Cf=function(b,a){this.G=b;this.Th=0;(void 0===a||a)&&this.be("data")};d.prototype.dV=function(b){this.hw!=b&&(this.hw=b,this.be("data"))};d.prototype.rq=function(){return this.Re};d.prototype.Xf=function(b){this.Re!=b&&(this.Re=b,this.be("data"))};d.prototype.eG=function(){return this.Do};
d.prototype.PM=function(b){this.Do!=b&&(this.Do=b,this.be("data"))};d.prototype.Lh=function(b){this.bu=b;this.be("data")};d.prototype.ls=function(b){-1<b&&b<this.Rg.length&&this.Rg[b].Lq()};d.prototype.Kq=function(b){for(var a,c=0;c<this.Rg.length;c++)if(a=this.Rg[c].getData(),w.pg(b)){if(b(a)){this.Rg[c].Lq();break}}else if(a===b){this.Rg[c].Lq();break}};d.prototype.yG=function(){return this.selectedIndex};d.prototype.ak=function(b){var a=this.uc();-1<b&&b<a.length?this.DV(a[b],b):this.DV(null,-1)};
d.prototype.rh=function(){return this.Fk};d.prototype.gs=function(b){var a=this.uc();if(w.pg(b))for(var c=0;c<a.length;c++){if(!w.v(a[c])&&b(a[c])){this.DV(a[c],c);break}}else a=a.indexOf(b),-1<a&&this.DV(b,a)};d.prototype.DV=function(b,a){if(this.qr){var c=-1<this.iD.indexOf(a);!(c=!c)&&2>this.iD.length||(c?(this.iD.push(a),this.nH.push(b)):(this.iD.splice(this.iD.indexOf(a),1),this.nH.splice(this.nH.indexOf(b),1)),this.zk&&(b.isSelected=c,this.ls(a)))}else this.zk&&null!=this.Fk&&(this.Fk.isSelected=
!1,this.ls(this.selectedIndex)),this.Fk=b,this.selectedIndex=a,this.zk&&null!=this.Fk&&(this.Fk.isSelected=!0,this.ls(this.selectedIndex))};d.prototype.Hva=function(b,a){var c=new f.Vf.vo;c.setData(b);c.am(a);return c};d.prototype.nL=function(){return this.Nd()*this.uc().length};d.prototype.TM=function(b){this.iD=b;this.nH.length=0;b=this.uc();for(var a=0;a<b.length;a++)-1<this.iD.indexOf(a)?(this.nH.push(b[a]),this.zk&&(b[a].isSelected=!0,this.ls(a))):this.zk&&(b[a].isSelected=!1,this.ls(a))};d.prototype.vL=
function(){return this.nH};d.prototype.Ar=function(b){this.F.Ar(b,this)};d.prototype.NM=function(b){var a=this.Nd();b*=a;a=b+a;var c=this.F.element.scrollTop,e=this.F.qd();c>b?this.F.Dw(b):c+e<a&&this.F.Dw(a-e)};q.Object.defineProperties(d.prototype,{qr:{configurable:!0,enumerable:!0,set:function(b){this.yE=b},get:function(){return this.yE}}});d.$ja=21;d.aka=31;k.zh=d;u(h,y.da);k.rpa=h})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(b,a){var c=k.zh.call(this)||this;c.parent=b;c.bl=a;c.yQ=c.bl.F;c.V3();c.$j("listbox");return c}function d(){var b=f.Ca.call(this,"div","fm-ui-dropdown")||this;b.prompt="Choose item";b.lv=!1;b.ZX=!1;b.yE=!1;b.F.display="inline-block";b.bl=new k.qpa;b.bl.N("click",function(){return b.Zt?b.close():b.open()});b.bl.N("keydown",function(a){return b.YCa(a)});b.bl.N("blur",function(){return b.close()});b.LK=new f.Ca("div","fm-ui-dropdown-list");b.LK.$a();b.Oe=new h(b,
b.bl);b.Oe.bha();b.Oe.zk=!0;b.Oe.Lh(b.bu);b.Oe.N(y.da.Qd,function(a){return b.ku(a)});b.LK.V(b.Oe);b.bl.jg("controls",b.Oe.i0());b.V(b.bl);b.V(b.LK);return b}u(d,f.Ca);d.prototype.bu=function(b,a){var c=new f.Vf.XI;c.setData(b);c.am(a);return c};d.prototype.ku=function(b){this.At(null==b.data.Fk);this.Wa(y.da.Qd,this,b.data);this.bl.focus({preventScroll:!0});this.qr||this.close()};d.prototype.YCa=function(b){27==b.keyCode&&(this.close(),b.stopImmediatePropagation())};d.prototype.At=function(b){var a=
this.Oe.rh(),c=b||this.qr||null==a?this.prompt:a[this.rq()];a=b||this.qr||null==a||w.ha(this.Oe.eG())||w.v(a[this.eG()])?"":a[this.eG()];this.bl.Za(c);w.ha(a)||(this.bl.YL.hc(a),this.bl.YL.Mh(a));this.F.Ua("fm-ui-prompt",b)};d.prototype.lD=function(b){this.prompt!==b&&(this.prompt=b,this.At(!0))};d.prototype.open=function(){!this.lv&&this.jL()&&(this.lv=!0,this.LK.show(),this.bl.jf(1))};d.prototype.close=function(){0!=this.lv&&this.jL()&&(this.lv=!1,this.LK.$a(),this.bl.jf(0))};d.prototype.uc=function(){return this.Oe.uc()};
d.prototype.Cf=function(b){var a=this.Mt();this.Oe.Cf(b);this.ZX&&a&&this.gi(a.index)};d.prototype.rq=function(){return this.Oe.rq()};d.prototype.Xf=function(b){this.Oe.Xf(b)};d.prototype.eG=function(){return this.Oe.eG()};d.prototype.PM=function(b){this.Oe.PM(b)};d.prototype.Lh=function(b){this.Oe.Lh(b)};d.prototype.Lq=function(){this.Oe.Lq()};d.prototype.ls=function(b){this.Oe.ls(b)};d.prototype.yG=function(){return this.Oe.yG()};d.prototype.ak=function(b){this.Oe.ak(b);this.At(null==this.Oe.rh())};
d.prototype.TM=function(b){this.Oe.TM(b);this.At(!0)};d.prototype.rh=function(){return this.Oe.rh()};d.prototype.gs=function(b){this.Oe.gs(b);this.At(null==this.Oe.rh())};d.prototype.vL=function(){return this.Oe.vL()};d.prototype.show=function(){f.Ca.prototype.show.call(this)};d.prototype.Nd=function(){return this.Oe.Nd()};d.prototype.uG=function(){return this.Oe.uG()};d.prototype.Kq=function(){};d.prototype.nL=function(){return 0};d.prototype.Mt=function(){return this.Oe.Mt()};d.prototype.gi=function(b){this.Oe.gi(b)};
d.prototype.hc=function(b){return this.bl.hc(b)};q.Object.defineProperties(d.prototype,{Zt:{configurable:!0,enumerable:!0,get:function(){return this.lv}},qr:{configurable:!0,enumerable:!0,set:function(b){this.yE=b;this.Oe.qr=b;this.yE?this.Oe.F.Y("fm-ui-dropdown-multiple-selection-list"):this.Oe.F.ud("fm-ui-dropdown-multiple-selection-list")},get:function(){return this.yE}},zk:{configurable:!0,enumerable:!0,set:function(b){this.Oe.zk=b}},GBa:{configurable:!0,enumerable:!0,get:function(){return this.ZX},
set:function(b){this.ZX=b}}});k.$q=d;u(h,k.zh);h.prototype.V3=function(){var b=this;this.bl&&(this.N("mousedown",function(a){return b.lU(a)}),this.bl.N("keydown",function(a){return b.KC(a)}))};h.prototype.KC=function(b){if(this.parent.Zt)k.zh.prototype.KC.call(this,b);else if(13==b.keyCode||32==b.keyCode)this.parent.open(),b.preventDefault()}})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(){var b=k.zh.call(this)||this;b.Th=-1;return b}function d(){var b=f.Ca.call(this)||this;b.Th=0;b.Y("fm-ui-vlist");b.Sh=new h;b.Sh.oIa();b.Sh.N(y.da.Qd,function(a){return b.ku(a)});b.V(b.Sh);b.Ss=new f.Ca("div","fm-ui-vlist-placeholder");b.V(b.Ss);b.N("scroll",function(){return b.U2()});b.N("mousedown",function(a){return b.mU(a)});b.N("keydown",function(a){return b.KC(a)});return b}u(d,f.Ca);d.prototype.mU=function(b){(b=this.Sh.MB(b.target))&&this.gi(this.Xv()+
b.index)};d.prototype.KC=function(b){if(32==b.keyCode||13==b.keyCode)this.nU(this.Th,b),b.preventDefault();40==b.keyCode&&(this.gi(this.Th+1),this.NM(this.Th),b.preventDefault());38==b.keyCode&&(this.gi(this.Th-1),this.NM(this.Th),b.preventDefault())};d.prototype.NM=function(b){var a=this.Nd();b*=a;a=b+a;var c=this.F.element.scrollTop,e=this.F.qd();c>b?this.F.Dw(b):c+e<a&&this.F.Dw(a-e)};d.prototype.gi=function(b){this.Th=Math.max(0,Math.min(this.Og().rG()-1,b));this.Th>=this.Xv()&&this.Th<this.sca()&&
this.Sh.gi(this.Th-this.Xv())};d.prototype.Mt=function(){return this.Sh.Mt()};d.prototype.nU=function(b,a){if(!(0>b)){var c=this.rh(),e=this.yG();this.ak(b);var g=new k.rpa;g.data={Fk:this.rh(),selectedIndex:this.yG(),np:a,ZGa:b,PGa:c,OGa:e};this.Da(g)}};d.prototype.ku=function(b){this.Da(b)};d.prototype.U2=function(){this.be("data")};d.prototype.gb=function(){this.Ss.yp(Math.min(this.nL(),d.yO));if(this.Kr("data")){this.Sh.Cf(this.uc());var b=this.Xv()*this.Nd()*this.wG()-this.Kca();this.Sh.F.top=
Math.min(b,this.Ss.qd()-this.Sh.F.height);this.gi(this.Th)}this.validate()};d.prototype.wG=function(){return this.nL()>d.yO?d.yO/this.nL():1};d.prototype.Xv=function(){return 1!=this.wG()?Math.floor((this.F.element.scrollTop+this.Kca())/this.wG()/this.Nd()):Math.max(0,Math.floor(this.F.element.scrollTop/this.Nd())-1)};d.prototype.sca=function(){return this.Xv()+this.uG()};d.prototype.Kca=function(){return 1!=this.wG()?(this.qd()/this.wG()-this.qd())*(this.F.element.scrollTop/d.yO)*this.wG():0};d.prototype.rq=
function(){return this.Sh.rq()};d.prototype.Xf=function(b){this.Sh.Xf(b)};d.prototype.Lh=function(b){this.Sh.Lh(b)};d.prototype.ls=function(b){this.Sh.ls(b)};d.prototype.Kq=function(b){this.Sh.Kq(b)};d.prototype.Nd=function(){return this.Sh.Nd()};d.prototype.uG=function(){return 0<this.Nd()?Math.ceil(this.qd()/this.Nd())+3:0};d.prototype.yG=function(){return this.Sh.yG()};d.prototype.ak=function(b){this.Sh.ak(b)};d.prototype.TM=function(b){this.Sh.TM(b)};d.prototype.rh=function(){return this.Sh.rh()};
d.prototype.gs=function(b){this.Sh.gs(b)};d.prototype.vL=function(){return this.Sh.vL()};d.prototype.nL=function(){return this.Nd()*this.Og().rG()};d.prototype.Og=function(){return this.ZIa};d.prototype.X3=function(b){this.ZIa=b};d.prototype.CIa=function(){this.F.Dw(0)};d.prototype.Cf=function(b){this.Og()&&(this.Og().cV(b),this.CIa(),this.be("data"))};d.prototype.uc=function(){return this.Og()?this.Og().l0(this.Xv(),this.sca()):[]};q.Object.defineProperties(d.prototype,{qr:{configurable:!0,enumerable:!0,
get:function(){return this.Sh.qr},set:function(b){this.Sh.qr=b}}});d.yO=1E6;k.nX=d;u(h,k.zh);h.prototype.mU=function(){};h.prototype.KC=function(){};h.prototype.Cf=function(b,a){this.G=b;this.Th=-1;(void 0===a||a)&&this.be("data")};h.prototype.gi=function(b){this.Th=Math.max(0,Math.min(this.Rg.length-1,b));b=ja(this.Rg);for(var a=b.next();!a.done;a=b.next())a.value.ud("fm-ui-active");(b=this.Rg[this.Th])&&b.Y("fm-ui-active")}})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=f.nA.call(this)||this;d.Y("fm-ui-dropdown-btn");d.YL=new f.Oc;d.V(d.YL);d.F.Od();d.$j("combobox");d.jg("haspopup","listbox");d.z$(!1);return d}u(h,f.nA);h.prototype.Za=function(d){this.YL.Za(d,!0);this.YL.Mh(d)};k.qpa=h})(f.hd||(f.hd={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=f.Ca.call(this,"li")||this;d.Re="label";d.$j("option");return d}u(h,f.Ca);h.prototype.getData=function(){return this.data};h.prototype.setData=function(d){null!=d&&(this.data=d,this.be("data"))};h.prototype.am=function(d){this.F.attr("data-index",d)};h.prototype.rq=function(){return this.Re};h.prototype.Xf=function(d){this.Re!=d&&(this.Re=d,this.be("data"))};h.prototype.eG=function(){return this.Do};h.prototype.PM=function(d){this.Do!=d&&(this.Do=d,this.be("data"))};
h.prototype.dV=function(d){this.hw!=d&&(this.hw=d,this.be("data"))};h.prototype.J=function(){return this.hw?this.hw(this.data):this.data[this.Re]};h.prototype.gb=function(){this.Kr("data")&&(this.F.text(this.data[this.Re]),w.ha(this.Do)||w.v(this.data[this.Do])||this.hc(this.data[this.Do]));this.validate()};k.vo=h})(f.Vf||(f.Vf={}))})(A||(A={}));
(function(f){(function(k){function h(){return k.vo.apply(this,arguments)||this}u(h,k.vo);h.prototype.gb=function(){var d=this.getData();null==this.label&&(this.label=new f.Oc,this.label.Y("fm-text-display"),this.F.append(this.label.F));this.label.Za(d[this.rq()],!0);this.A$(!0===d.isSelected);this.F.Ua("fm-selected",!0===d.isSelected);this.F.Ua("fm-not-selected",!0!==d.isSelected);w.ha(this.Do)||w.v(this.data[this.Do])||this.label.hc(this.data[this.Do])};k.XI=h})(f.Vf||(f.Vf={}))})(A||(A={}));
var Da=A||(A={}),Ea=Da.Fi||(Da.Fi={}),Fa=Ea.Ph||(Ea.Ph={});Fa.Bj="top";Fa.ji="bottom";Fa.bE="left";Fa.tE="right";
(function(f){(function(k){function h(d,b){var a=this;this.zJ=function(c){return a.rw(c)};this.Qs=function(c){return a.zq(c)};this.RA=function(c){return a.sw(c)};this.target=d;this.options=b;this.ava()}h.prototype.ava=function(){for(var d=0;d<this.options.lV.length;d++)this.st(this.options.lV[d])};h.prototype.st=function(d){var b=new f.Aa("div","fm-resizable-handle");b.Y("fm-"+d);b.N("mousedown",this.zJ);this.target.V(b);return b};h.prototype.rw=function(d){d=f.Aa.Pb(d.target);d.Lc("fm-left")?this.mx=
k.Ph.bE:d.Lc("fm-right")?this.mx=k.Ph.tE:d.Lc("fm-top")?this.mx=k.Ph.Bj:d.Lc("fm-bottom")&&(this.mx=k.Ph.ji);this.eN()};h.prototype.zq=function(d){this.kfa(d.clientX,d.clientY);this.fN()};h.prototype.sw=function(d){this.kfa(d.clientX,d.clientY)};h.prototype.kfa=function(d,b){this.kJ&&(d=Math.min(Math.max(this.kJ.left,d),this.kJ.right),b=Math.max(this.kJ.top,b),!0!==this.options.WY&&(b=Math.min(this.kJ.bottom,b)));var a={left:this.TA.left,top:this.TA.top},c={width:this.hY.width,height:this.hY.height};
this.mx==k.Ph.bE&&(a.left=d,c.width+=this.TA.left-a.left);this.mx==k.Ph.tE&&(c.width=d-this.TA.left);this.mx==k.Ph.Bj&&(a.top=b,c.height+=this.TA.top-a.top);this.mx==k.Ph.ji&&(c.height=b-this.TA.top);this.options.resize&&this.options.resize({rD:this.mx,zNa:this.TA,c3:this.hY,position:a,size:c})};h.prototype.eN=function(){document.addEventListener("mousemove",this.RA);document.addEventListener("mouseup",this.Qs);this.hY={width:this.target.cf(!0),height:this.target.qd(!0)};this.TA={left:this.target.Sf().left,
top:this.target.Sf().top};this.kJ=this.options.jR?this.options.jR.getBoundingClientRect():null};h.prototype.fN=function(){document.removeEventListener("mousemove",this.RA);document.removeEventListener("mouseup",this.Qs);this.options.complete&&this.options.complete()};h.prototype.dispose=function(){document.removeEventListener("mousemove",this.RA);document.removeEventListener("mouseup",this.Qs)};k.woa=h})(f.Fi||(f.Fi={}))})(A||(A={}));
(function(f){(function(k){function h(){return f.Vf.XI.apply(this,arguments)||this}u(h,f.Vf.XI);h.prototype.gb=function(){f.Vf.XI.prototype.gb.call(this);var d=this.data.submenu&&0<this.data.submenu.length;this.F.Ua("fm-has-submenu",d);this.Dsa(d)};k.o8=h})(f.No||(f.No={}))})(A||(A={}));
(function(f){(function(k){function h(b){var a=f.Vb.ZI.call(this)||this;a.parent=b;a.Y("fm-ui-context-submenu");a.N("keydown",function(c){return a.kp(c)});a.list=new f.hd.zh;a.list.Lh(function(c,e){return a.oJa(c,e)});a.list.Xf("caption");a.list.ue();a.V(a.list);return a}function d(b){var a=f.Vb.ZI.call(this)||this;a.sV=function(c){return a.BFa(c)};a.parent=b;a.Y("fm-ui-context-menu");a.list=new f.hd.zh;a.list.Lh(function(c,e){return a.bu(c,e)});a.list.Xf("caption");a.list.ue();a.list.N(y.da.Qd,function(c){return a.ku(c)});
a.V(a.list);a.lz=new h(a);a.lz.list.N(y.da.Qd,function(c){return a.ku(c)});a.lz.$a();a.V(a.lz);a.F.$k();a.F.N("mouseleave",function(){a.Q$=setTimeout(function(){return a.close()},500)});a.F.N("mouseover",function(){clearTimeout(a.Q$)});a.F.N("keydown",function(c){27==c.keyCode&&(a.close(),c.stopImmediatePropagation())});return a}u(d,f.Vb.ZI);d.prototype.Xn=function(b,a,c,e,g){var l=this;e=void 0===e?null:e;0!=a.length&&(this.YJ=void 0===g?null:g,this.setData(a),this.show(),this.ov=document.activeElement,
this.list.focus({preventScroll:!0}),b=b.Sf(),c.top-=b.top,c.top+=e&&!isNaN(e.top)?e.top:-5,c.left-=b.left,c.left+=e&&!isNaN(e.left)?e.left:-5,this.F.offset(c),e=this.F.getBoundingClientRect(),b=!1,e.right>window.innerWidth&&(c.left-=e.width-10,b=!0),e.bottom>window.innerHeight&&(c.top-=e.height-10,b=!0),b&&(c.top=Math.max(-this.F.parent.top,c.top),c.left=Math.max(-this.F.parent.left,c.left),this.F.offset(c)),x.Bd().Vl?w.K.Hb.zb.N("touchstart",this.sV):w.K.Hb.zb.N("mousedown",this.sV),this.ida=!0,
w.pe(function(){l.ida=!1},100))};d.prototype.BFa=function(b){this.F.iR(b)||this.close()};d.prototype.close=function(b){b=void 0===b?null:b;clearTimeout(this.Q$);if(this.F.visible){this.$a();this.lz.$a();w.K.Hb.zb.mb("mousedown",this.sV);w.K.Hb.zb.mb("touchstart",this.sV);var a=b&&!0===b.preventFocusRestore?!1:!0;this.YJ&&(a=this.YJ(b),this.YJ=null);this.ov&&!1!==a&&this.ov.focus({preventScroll:!0})}};d.prototype.setData=function(b){this.list.Cf(b.slice())};d.prototype.ku=function(b){var a=b.data.Fk;
a.submenu&&0<a.submenu.length?(this.lz.Xn(b.data.eIa,a),this.lz.list.focus()):(null!=a.handler&&a.handler(a.data),b.data.np&&b.data.np.stopImmediatePropagation(),this.close(a))};d.prototype.bu=function(b,a){var c=this,e=new k.o8;e.setData(b);e.am(a);w.ha(b["class"])||e.Y(b["class"]);e.N("mouseover",function(){return c.SEa(e,b)});return e};d.prototype.SEa=function(b,a){this.ida||(a.submenu&&0<a.submenu.length?this.lz.Xn(b.F,a):this.lz.$a())};d.prototype.focus=function(b){this.list.focus(void 0===b?
null:b)};k.wE=d;u(h,f.Vb.ZI);h.prototype.kp=function(b){27==b.keyCode&&(this.parent&&this.parent.focus(),this.$a(),b.stopImmediatePropagation())};h.prototype.oJa=function(b,a){var c=new k.o8;c.setData(b);c.am(a);w.ha(b["class"])||c.Y(b["class"]);return c};h.prototype.Xn=function(b,a){if(a!=this.rfa){this.rfa=a;this.list.Cf(a.submenu.slice());a=b.Sf(this.parent.F.element);this.F.top=a.top-1;this.F.left=b.cf(!0)-5;this.show();var c=this.F.getBoundingClientRect();c.right>window.innerWidth&&(this.F.left=
-c.width,0>this.F.left&&(this.F.left=-this.F.left));c.bottom>window.innerHeight&&(this.F.top=a.top-c.height+b.qd(!0)+1,0>this.F.top&&(this.F.top=-this.F.top))}};h.prototype.$a=function(){f.Vb.ZI.prototype.$a.call(this);this.rfa=null}})(f.No||(f.No={}))})(A||(A={}));
(function(f){(function(k){function h(d){var b=this;this.target=d;x.Bd().Vl?(new f.gF.uma(this.target)).VBa(function(a,c){return b.H2(a,c)}):w.Pj.addEventListener("contextmenu",function(a){return b.Oqa(a)})}h.prototype.H2=function(){};h.prototype.T2=function(){};h.prototype.Oqa=function(d){this.target.iR(d)&&this.T2(d)};k.a8=h})(f.No||(f.No={}))})(A||(A={}));
(function(f){(function(k){function h(){var d=f.Ca.call(this,"div","fm-ui-datepicker-input")||this;d.Zb="dd/MM/yyyy";d.Iqa=1900;d.Gqa=2100;d.nfa=function(a){return d.XEa(a)};d.Tx=new f.Pi;d.Tx.F.N("click",function(){return d.open()});d.Tx.N(f.Pi.Qw,function(a){return d.mEa(a)});d.Tx.N(f.Pi.Nz,function(){return d.nEa()});d.V(d.Tx);var b=new f.Aa("i","fm-ui-datepicker-icon");b.N("click",function(){return d.lEa()});d.F.V(b);d.eba=new f.Aa("div","fm-ui-datepicker-dropdown");d.F.V(d.eba);d.Qo=new k.ppa;
d.Qo.N(y.da.Qd,function(){return d.IDa()});d.eba.V(d.Qo.F);d.be();return d}u(h,f.Ca);h.prototype.gb=function(){this.Kr("all","date")&&(this.Qo.mH?this.Tx.cj(this.Qo.mH.format(this.Zb)):this.Tx.cj(""));this.Kr("timezone")&&this.Tx.lD(this.Xya());f.Ca.prototype.gb.call(this)};h.prototype.open=function(){this.F.Ua("fm-opened",!0);this.Qo.reset();document.body.addEventListener("mousedown",this.nfa)};h.prototype.close=function(){this.F.Ua("fm-opened",!1);document.body.removeEventListener("mousedown",this.nfa);
this.be("date")};h.prototype.EIa=function(){this.zc=(new w.Gg).dj(this.Ii)};h.prototype.bGa=function(d){var b="MM/dd/yyyy"==this.Zb,a=d.split("/");d=parseInt(a[2]);isNaN(d)||(d=Math.min(this.Gqa,Math.max(this.Iqa,d)));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(w.Gg.YZ(c,d),Math.max(1,b)));b=(new w.Gg).dj(this.Ii).setFullYear(d,c,b);return b.Cg()?b:null};h.prototype.lEa=function(){this.F.Lc("fm-opened")?this.close():this.open()};h.prototype.mEa=
function(d){d=this.bGa(d.data);w.v(d)||(this.Qo.mH=d,this.Wa(y.da.Qd,this,this.zc))};h.prototype.nEa=function(){this.be("date");this.close()};h.prototype.XEa=function(d){this.F.iR(d)||this.close()};h.prototype.IDa=function(){this.Wa(y.da.Qd,this,this.zc);this.be("date");this.close()};h.prototype.Xya=function(){var d=new w.Gg;d.dj(this.Ii);return d.format(this.Zb)};h.prototype.hc=function(d){return this.Tx.hc(d)};q.Object.defineProperties(h.prototype,{zc:{configurable:!0,enumerable:!0,get:function(){return this.Qo.mH},
set:function(d){this.Qo.mH=d;this.be("date")}},CD:{configurable:!0,enumerable:!0,get:function(){return this.Qo.CD},set:function(d){this.Qo.CD=d}},Ii:{configurable:!0,enumerable:!0,get:function(){return this.Qo.Ii},set:function(d){this.Qo.Ii=d;this.be("timezone")}},KQ:{configurable:!0,enumerable:!0,set:function(d){this.Qo.KQ=d}},Caa:{configurable:!0,enumerable:!0,get:function(){return this.Zb},set:function(d){"dd/MM/yyyy"!=d&&"MM/dd/yyyy"!=d||this.Zb==d||(this.Zb=d,this.Lq())}}});k.p8=h})(f.DK||(f.DK=
{}))})(A||(A={}));
(function(f){(function(k){function h(){var b=f.Ca.call(this)||this;b.gKa=x.gh.Hya();b.Lea=x.gh.jza();b.rm=null;b.fq=null;b.NJ=0;b.K=d.Rq;b.BY=1;b.zY=null;b.Y("fm-ui-datepicker");b.Y("fm-noselect");b.rm=(new w.Gg).dj(b.Ii).xH();var a=new f.Aa("div","fm-ui-dp-header");b.F.V(a);b.H$=new f.Jf("fm-prev-btn");b.H$.N(f.sd.Xe,function(){return b.Uea(-1)});a.V(b.H$.F);b.kM=new f.Oc;b.kM.Y("fm-ui-dp-month");b.kM.N("click",function(){return b.QEa()});a.V(b.kM.F);b.GH=new f.Oc;b.GH.Y("fm-ui-dp-year");b.GH.N("click",
function(){return b.PFa()});a.V(b.GH.F);b.G$=new f.Jf("fm-next-btn");b.G$.N(f.sd.Xe,function(){return b.Uea(1)});a.V(b.G$.F);b.V4=new f.Aa("div","fm-ui-dp-week");b.F.V(b.V4);b.Ux=new f.Aa("div","fm-ui-dp-dates");b.Ux.N("click",function(c){return b.FDa(c)});b.F.V(b.Ux);a=new f.Aa("div","fm-ui-dp-footer");b.F.V(a);b.ze=new f.sd("fm-ui-link-btn");b.ze.Y("fm-cancel-btn");b.ze.Y("fm-muted");b.ze.ud("fm-ui-btn");b.ze.Za("Cancel");b.ze.N(f.sd.Xe,function(){return b.Sr()});a.V(b.ze.F);b.be();return b}function d(){}
d.Rq=0;d.FI=1;d.gJ=2;u(h,f.Ca);h.prototype.gb=function(){this.Kr("all")&&this.owa();this.Kr("date","view")&&this.iwa();this.Kr("date","view")&&this.K==d.Rq&&this.Yva();this.Kr("view")&&this.K==d.FI&&this.jwa();this.Kr("view")&&this.K==d.gJ&&this.pwa();f.Ca.prototype.gb.call(this)};h.prototype.reset=function(){this.rm=this.fq?this.fq.clone().xH():(new w.Gg).dj(this.Ii).xH();this.NJ=0;this.view=d.Rq;this.be("view")};h.prototype.iwa=function(){if(this.view==d.Rq||this.view==d.FI)this.kM.Za(this.Lea[this.rm.getMonth()]),
this.GH.Za(this.rm.getFullYear().toString());if(this.view==d.gJ){var b=this.Sca();this.GH.Za(b+" \u2013 "+(b+19))}this.GH.F.Ua("fm-disabled",this.view!=d.Rq);this.kM.F.Ua("fm-disabled",this.view!=d.Rq)};h.prototype.Sca=function(){for(var b=this.rm.getFullYear()-10;0!=b%10;)b++;return b+=20*this.NJ};h.prototype.owa=function(){this.V4.empty();for(var b=0;7>b;b++){var a=new f.Oc(this.gKa[(b+this.CD)%7].substr(0,2));a.Y("fm-ui-dp-day-title");a.Y("fm-ui-dp-col-7");this.V4.V(a.F)}};h.prototype.pwa=function(){var b=
this.Sca();this.Ux.empty();for(var a=0;20>a;a++){var c=new f.Oc(b.toString());c.Y("fm-ui-dp-date-label");c.Y("fm-ui-dp-col-5");this.fq?this.fq.getFullYear()==b&&c.Y("fm-selected"):this.rm.getFullYear()==b&&c.Y("fm-highlighted");c.F.attr("data-year",b);this.Ux.V(c.F);b++}};h.prototype.jwa=function(){var b=this;this.Ux.empty();this.Lea.forEach(function(a,c){a=new f.Oc(a);a.Y("fm-ui-dp-date-label");a.Y("fm-ui-dp-col-3");b.fq?b.fq.getMonth()==c&&a.Y("fm-selected"):b.rm.getMonth()==c&&a.Y("fm-highlighted");
a.F.attr("data-month",c);b.Ux.V(a.F)})};h.prototype.Yva=function(){var b=this.rm.getDay()-this.CD;0>b&&(b+=7);b=this.rm.clone().GY(-b);var a=(new w.Gg).dj(this.Ii);this.Ux.empty();for(var c=0;42>c;c++){var e=new f.Oc(b.getDate().toString());e.Y("fm-ui-dp-date-label");e.Y("fm-ui-dp-col-7");b.getMonth()!=this.rm.getMonth()&&e.Y("fm-muted");this.W0(this.fq,b)&&e.Y("fm-selected");this.W0(a,b)&&e.Y("fm-highlighted");e.F.attr("data-date",b.getTime()/1E3);this.Ux.V(e.F);b.GY(1)}};h.prototype.W0=function(b,
a){return w.v(b)||w.v(a)?!1:b.getFullYear()==a.getFullYear()&&b.getMonth()==a.getMonth()&&b.getDate()==a.getDate()?!0:!1};h.prototype.QEa=function(){this.view=d.FI};h.prototype.PFa=function(){this.view!=d.FI&&(this.view=d.gJ)};h.prototype.FDa=function(b){b=f.Aa.Pb(b.target);var a=b.attr("data-date");w.v(a)||(this.mH=new w.Gg(1E3*parseInt(a)),this.Wa(y.da.Qd));a=b.attr("data-month");w.v(a)||(this.rm.setMonth(parseInt(a),1),this.view=d.Rq);b=b.attr("data-year");w.v(b)||(this.rm.setFullYear(parseInt(b),
this.rm.getMonth(),1),this.view=d.Rq,this.NJ=0)};h.prototype.Uea=function(b){this.view==d.Rq?this.rm.Kra(b):this.view==d.gJ&&(this.NJ+=b);this.be("view")};h.prototype.Sr=function(){this.view=d.Rq};q.Object.defineProperties(h.prototype,{mH:{configurable:!0,enumerable:!0,get:function(){return this.fq},set:function(b){w.v(b)?null!=this.fq&&(this.fq=null,this.be("date")):(b.dj(this.Ii),b.setHours(0,0,0,0),this.W0(this.fq,b)||(this.fq=b,this.rm=b.clone().xH(),this.be("date")))}},view:{configurable:!0,
enumerable:!0,get:function(){return this.K},set:function(b){this.K!=b&&(this.K=b,this.F.Ua("fm-ui-dp-view-dates",this.view==d.Rq),this.F.Ua("fm-ui-dp-view-months",this.view==d.FI),this.F.Ua("fm-ui-dp-view-years",this.view==d.gJ),this.be("view"))}},CD:{configurable:!0,enumerable:!0,get:function(){return this.BY},set:function(b){this.BY!=b&&(this.BY=b,this.be("all"))}},Ii:{configurable:!0,enumerable:!0,get:function(){return this.zY},set:function(b){this.zY!=b&&(this.zY=b,this.be("all"))}},KQ:{configurable:!0,
enumerable:!0,set:function(b){this.ze.Za(b)}}});k.ppa=h})(f.DK||(f.DK={}))})(A||(A={}));
(function(f){(function(k){function h(d,b){var a=this;this.Wha=function(c){return a.GFa(c)};this.Vha=function(c){return a.sU(c)};this.target=d;this.delay=void 0===b?1E3:b}h.prototype.VBa=function(d){this.Eb=d;this.target.N("touchstart",this.Wha);this.target.N("touchend",this.Vha)};h.prototype.stop=function(){this.target.mb("touchstart",this.Wha);this.target.mb("touchend",this.Vha)};h.prototype.GFa=function(d){var b=this;this.timer=w.pe(function(){return b.Vsa(d)},this.delay)};h.prototype.sU=function(){this.timer&&
w.Dr(this.timer)};h.prototype.Vsa=function(d){f.Aa.Pb(d.target).Lc("fm-dragging")||this.Eb(d,d&&0<d.changedTouches.length?d.changedTouches[0]:null)};k.uma=h})(f.gF||(f.gF={}))})(A||(A={}));(function(f){(function(k){function h(){var d=f.Aa.call(this)||this;d.ue();d.jg("hidden","true");d.element.addEventListener("focus",function(b){return d.j2(b)});return d}u(h,f.Aa);h.prototype.j2=function(d){d.relatedTarget&&d.relatedTarget.focus()};k.O6=h})(f.gF||(f.gF={}))})(A||(A={}));
(function(f){function k(){this.qv=""}function h(m){this.pl=0;this.jm=-1;this.qv=m;this.NZ=this.yya(this.qv)}function d(m){this.Tq=-1;this.pl=0;this.iB=m}function b(m){this.Tq=-1;this.pl=0;this.iB=m}function a(){this.jm=this.Tq=-1}function c(){this.jm=this.Tq=-1;this.EH=this.DH=this.Kw=this.wu=0}function e(){}function g(){}function l(m,n,p){p=void 0===p?l.lma:p;this.nqa=!0;this.kx=0;this.vA=void 0===n?0:n;this.buffer=m;this.position=0;this.Awa=p}l.prototype.seek=function(m){m=Math.max(0,Math.min(this.byteLength,
m));this.position=isNaN(m)||!isFinite(m)?0:m};l.prototype.jKa=function(m){this.lKa(g.encode(m))};l.prototype.kKa=function(m){this.mY(1);this.BX.setUint8(this.position,m);this.position+=1};l.prototype.lKa=function(m){this.mY(1*m.length);if(m instanceof Uint8Array&&0==this.byteOffset+this.position%m.BYTES_PER_ELEMENT)this.zCa(this.Xp,this.byteOffset+this.position,m.buffer,m.byteLength),this.Bea(m.length);else for(var n=0;n<m.length;n++)this.kKa(m[n])};l.prototype.IU=function(m){return e.decode(this.Bea(m))};
l.prototype.Zfa=function(){var m=this.BX.getUint32(this.position,this.Awa);this.position+=4;return m};l.prototype.Bea=function(m){this.mY(1*m);var n=new Uint8Array(this.Xp,this.byteOffset+this.position,m);this.position+=1*m;return n};l.prototype.mY=function(m){if(this.nqa){m=this.vA+this.position+m;var n=this.Xp.byteLength;if(m<=n)m>this.kx&&(this.kx=m);else{for(1>n&&(n=1);m>n;)n*=2;n=new ArrayBuffer(n);var p=new Uint8Array(this.Xp);(new Uint8Array(n,0,p.length)).set(p);this.buffer=n;this.kx=m}}};
l.prototype.Zqa=function(){if(this.kx!=this.Xp.byteLength){var m=new ArrayBuffer(this.kx),n=new Uint8Array(m),p=new Uint8Array(this.Xp,0,n.length);n.set(p);this.buffer=m}};l.prototype.zCa=function(m,n,p,t){m=new Uint8Array(m,n,t);p=new Uint8Array(p,0,t);m.set(p)};q.Object.defineProperties(l.prototype,{byteOffset:{configurable:!0,enumerable:!0,get:function(){return this.vA},set:function(m){this.vA=m;this.BX=new DataView(this.Xp,this.vA);this.kx=this.Xp.byteLength}},byteLength:{configurable:!0,enumerable:!0,
get:function(){return this.kx-this.vA}},buffer:{configurable:!0,enumerable:!0,get:function(){this.Zqa();return this.Xp},set:function(m){this.Xp=m;this.BX=0==this.vA?new DataView(this.Xp):new DataView(this.Xp,this.vA);this.kx=this.Xp.byteLength}}});l.RH=!1;l.lma=!0;f.Sq=l;g.encode=function(m){m=m?String(m):"";var n=[],p=new d(n);m=new h(m);null==g.t_&&(g.t_=new a);for(;m.get()!==g.jm;)g.t_.encode(p,m);do var t=g.t_.encode(p,m);while(t!==g.Tq);return new Uint8Array(n)};g.Tq=-1;g.jm=-1;f.TextEncoder=
g;e.decode=function(m){m||(m=new Uint8Array(0));m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength);m=new b(m);var n=new k;null==e.ZZ&&(e.ZZ=new c);for(;m.get()!==e.Tq;){var p=e.ZZ.decode(m);null!==p&&p!==e.jm&&n.UF(p)}do p=e.ZZ.decode(m),null!==p&&p!==e.jm&&n.UF(p);while(p!==e.jm);return n.qv};e.Tq=-1;e.jm=-1;f.TextDecoder=e;c.prototype.decode=function(m){var n=m.get();if(n===this.Tq)return this.jm;m.offset(1);if(0===this.Kw){if(this.inRange(n,0,127))return n;if(this.inRange(n,194,223))this.Kw=
1,this.EH=128,this.wu=n-192;else if(this.inRange(n,224,239))this.Kw=2,this.EH=2048,this.wu=n-224;else if(this.inRange(n,240,244))this.Kw=3,this.EH=65536,this.wu=n-240;else return this.jm;this.wu*=Math.pow(64,this.Kw);return null}if(!this.inRange(n,128,191))return this.EH=this.DH=this.Kw=this.wu=0,m.offset(-1),this.jm;this.DH+=1;this.wu+=(n-128)*Math.pow(64,this.Kw-this.DH);if(this.DH!==this.Kw)return null;m=this.wu;n=this.EH;this.EH=this.DH=this.Kw=this.wu=0;return this.inRange(m,n,1114111)&&!this.inRange(m,
55296,57343)?m:this.jm};c.prototype.inRange=function(m,n,p){return n<=m&&m<=p};f.qNa=c;a.prototype.inRange=function(m,n,p){return n<=m&&m<=p};a.prototype.Vaa=function(m,n){return Math.floor(m/n)};a.prototype.encode=function(m,n){var p=n.get();if(p===this.jm)return this.Tq;n.offset(1);if(this.inRange(p,55296,57343))return this.jm;if(this.inRange(p,0,127))return m.UF(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.UF(this.Vaa(p,Math.pow(64,t))+r);0<t;)n=m.UF(128+this.Vaa(p,Math.pow(64,t-1))%64),--t;return n};f.rNa=a;b.prototype.get=function(){return this.pl>=this.iB.length?this.Tq:Number(this.iB[this.pl])};b.prototype.offset=function(m){this.pl+=m;if(0>this.pl)throw Error("Seeking past start of the buffer");if(this.pl>this.iB.length)throw Error("Seeking past EOF");};b.prototype.match=function(m){if(m.length>this.pl+this.iB.length)return!1;var n;for(n=0;n<m.length;n+=1)if(Number(this.iB[this.pl+n])!==
m[n])return!1;return!0};f.uKa=b;d.prototype.UF=function(m){var n=this.Tq,p;for(p=0;p<arguments.length;++p)n=Number(arguments[p]),this.iB[this.pl++]=n;return n};f.vKa=d;h.prototype.yya=function(m){for(var n=[],p=0,t=m.length;p<m.length;){var r=m.charCodeAt(p);if(this.inRange(r,55296,57343))if(this.inRange(r,56320,57343))n.push(65533);else if(p===t-1)n.push(65533);else{var v=m.charCodeAt(p+1);this.inRange(v,56320,57343)?(r&=1023,v&=1023,p+=1,n.push(65536+(r<<10)+v)):n.push(65533)}else n.push(r);p+=
1}return n};h.prototype.inRange=function(m,n,p){return n<=m&&m<=p};h.prototype.offset=function(m){this.pl+=m;if(0>this.pl)throw Error("Seeking past start of the buffer");if(this.pl>this.NZ.length)throw Error("Seeking past EOF");};h.prototype.get=function(){return this.pl>=this.NZ.length?this.jm:this.NZ[this.pl]};f.VKa=h;k.prototype.UF=function(m){65535>=m?this.qv+=String.fromCharCode(m):(m-=65536,this.qv+=String.fromCharCode(55296+(m>>10&1023)),this.qv+=String.fromCharCode(56320+(m&1023)))};f.WKa=
k})(w||(w={}));var D;
(function(f){function k(){var h=y.Fc.apply(this,arguments)||this;h.responseType="arraybuffer";h.connected=!1;h.requestHeaders=[];return h}u(k,y.Fc);k.prototype.load=function(h){var d=this;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=function(b){return d.lp(b)};this.xhr.onerror=function(b){return d.Mb(b)};this.xhr.onreadystatechange=function(b){return d.lu(b)};this.dK();this.xhr.send()};k.prototype.vya=
function(){if(void 0!==this.xhr){var h=this.xhr.getResponseHeader("Content-Type"),d=/charset=([^()<>@,;:"/[\]?.=\s]*)/i;return d.test(h)?d.exec(h)[1]:"UTF-8"}};k.prototype.yq=function(){this.response=this.xhr.response;this.Wa(y.da.Jc)};k.prototype.lp=function(h){this.Wa(y.da.je,this,h)};k.prototype.Mb=function(){w.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Da(new y.da(y.da.ya,this))};k.prototype.lu=function(){null!=this.xhr&&4===this.xhr.readyState&&
(200===this.xhr.status?this.yq():this.Wa(y.da.ya,this,this.xhr.statusText));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Wa(y.da.Fz))};k.prototype.dK=function(){if(!w.v(this.requestHeaders))for(var h=0;h<this.requestHeaders.length;h++)try{this.xhr.setRequestHeader(this.requestHeaders[h].zi,this.requestHeaders[h].value)}catch(d){console.error("Request headers error:",d),w.Va(d.message||d,w.model.A.j.ya,w.rb.ya)}};k.prototype.close=function(){null!=this.xhr&&this.xhr.abort()};
k.prototype.dispose=function(){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.requestHeaders=this.xhr=null};f.r8=k})(D||(D={}));
(function(f){function k(){this.data={}}function h(){}function d(){}function b(){}function a(){var c=y.Fc.call(this)||this;c.dataType=b.lA;c.contentType=d.$oa;c.Dq=h.tW;c.connected=!1;c.R9=!1;c.aY=0;c.MA=null;c.Sfa=0;c.requestHeaders=[];c.data={};c.si=0;return c}u(a,y.Fc);a.prototype.load=function(c){var e=this;w.ha(c)||(this.url=c);this.si=0;this.connected=!1;this.close();this.xhr=new XMLHttpRequest;try{this.xhr.open(this.Dq,this.url,!0)}catch(g){this.Mb(g);return}this.xhr.withCredentials=this.R9;
this.xhr.onerror=function(g){return e.Mb(g)};this.xhr.onreadystatechange=function(g){return e.lu(g)};this.xhr.onprogress=function(g){return e.lp(g)};this.Dq==h.Pu&&!1!==this.contentType&&this.xhr.setRequestHeader("Content-type",this.contentType);this.dK();this.xhr.send(this.data)};a.prototype.retry=function(){this.load(this.url)};a.prototype.dK=function(){if(!w.v(this.requestHeaders))for(var c=0;c<this.requestHeaders.length;c++)try{this.xhr.setRequestHeader(this.requestHeaders[c].zi,this.requestHeaders[c].value)}catch(e){console.error("Request headers error:",
e),w.Va(e.message||e,w.model.A.j.ya,w.rb.ya)}};a.prototype.vh=function(c){if(!w.v(c)){this.requestHeaders=[];for(var e in c)c.hasOwnProperty(e)&&this.requestHeaders.push(new f.s8(e,c[e]))}};a.prototype.vH=function(){this.response=this.xhr.response||this.xhr.responseText;this.si=this.MA?this.MA.loaded:this.response.length;null!=this.MA&&this.Wa(y.da.je,this,this.MA);this.Da(new y.da(y.da.Jc,this))};a.prototype.lu=function(c){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.vH():
this.Mb(c));null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Da(new y.da(y.da.Fz)))};a.prototype.lp=function(c){x.xf()-this.aY>this.Sfa?(this.response=this.xhr.response||this.xhr.responseText,this.si=c.loaded,this.Wa(y.da.je,this,c),this.aY=x.xf(),this.MA=null):this.MA=c};a.prototype.Mb=function(){w.v(this.xhr)||(this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText);this.Da(new y.da(y.da.ya,this))};a.prototype.close=function(){null!=this.xhr&&
(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())};a.prototype.dispose=function(){this.data=this.response=null;this.requestHeaders=[];null!=this.xhr&&(this.xhr.abort(),this.xhr.onprogress=null,this.xhr.onreadystatechange=null);this.aY=this.MA=this.xhr=null};q.Object.defineProperties(a.prototype,{withCredentials:{configurable:!0,enumerable:!0,set:function(c){this.R9=c}}});f.Qi=a;b.lA="text";b.aa="xml";b.Lu="html";b.JSON="json";f.Jz=b;d.$oa="text/plain";d.eP="text/xml";d.c5=
"application/json";d.Gia="application/x-www-form-urlencoded";f.Iz=d;h.Pu="POST";h.tW="GET";f.Fs=h;f.s8=function(c,e){this.zi=c;this.value=e};k.prototype.toString=function(){var c=[],e;for(e in this.data)this.data.hasOwnProperty(e)&&c.push(e+"="+this.data[e]);return c.join("&")};f.wpa=k})(D||(D={}));
(function(f){function k(){}function h(){var d=y.Fc.call(this)||this;d.CR=!1;d.oia=function(){return d.j2()};d.t3=!1;return d}u(h,y.Fc);h.prototype.E$=function(d){var b=this;d=void 0===d?[]:d;this.input=document.createElement("input");this.input.setAttribute("type","file");this.input.style.display="none";document.body.appendChild(this.input);this.input.setAttribute("accept",d.join(","));this.input.addEventListener("change",function(){return b.cDa()});this.CR=!0;this.t3=window.location!==window.parent.location;
w.XK.addEventListener("focus",this.oia);this.input.click()};h.prototype.cDa=function(){this.CR=!1;w.v(this.input.files)||w.v(this.input.files[0])||(this.file=this.input.files[0],this.Wa(y.da.to))};h.prototype.j2=function(){var d=this;this.t3?this.t3=!1:this.CR&&w.pe(function(){(w.v(d.input.files)||w.v(d.input.files[0]))&&d.Wa(y.da.SV);d.CR=!1},500)};h.prototype.load=function(d){var b=this;d=void 0===d?k.lA:d;null!=this.file&&(this.ZC=new FileReader,this.ZC.onload=function(){return b.wEa()},this.ZC.onprogress=
function(a){return b.lp(a)},this.ZC.onerror=function(a){return b.Mb(a)},d==k.ARRAY_BUFFER?this.ZC.readAsArrayBuffer(this.file):this.ZC.readAsText(this.file))};h.prototype.wEa=function(){this.response=this.ZC.result;this.Da(new y.da(y.da.Jc,this))};h.prototype.lp=function(d){this.Wa(y.da.je,this,d)};h.prototype.Mb=function(d){this.Da(d)};h.prototype.dispose=function(){this.ZC=this.file=this.response=null;w.XK.removeEventListener("focus",this.oia)};f.L6=h;k.lA="TEXT";k.ARRAY_BUFFER="ARRAY_BUFFER";f.uoa=
k;f.uga=function(d,b){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(d,b);else{var a=document.createElement("a"),c=window.URL.createObjectURL(d);a.href=c;a.download=b;a.target="_blank";document.body.appendChild(a);a.click();w.pe(function(){document.body.removeChild(a);window.URL.revokeObjectURL(c)},0)}}})(D||(D={}));
(function(f){function k(){throw Error("Singleton");}function h(){return Element.apply(this,arguments)||this}function d(){}d.prototype.find=function(b){return void 0===this.item?this:this.item.find(b)};d.prototype.text=function(){return void 0===this.item?"":this.item.text()};d.prototype.attr=function(b,a){if(void 0!==this.item)return a?this.item.attr(b,a):this.item.attr(b)};d.prototype.children=function(){for(var b=new d,a=0;void 0!==this[a];)b[a]=h.Pb(this[a]),a++;return b};d.prototype.push=function(b){this[this.length]=
b;return this};q.Object.defineProperties(d.prototype,{item:{configurable:!0,enumerable:!0,get:function(){return this[0]}},length:{configurable:!0,enumerable:!0,get:function(){for(var b=0;void 0!==this[b];)b++;return b}}});f.sNa=d;u(h,Element);h.prototype.text=function(b){return b||!1===b?(this.textContent=b.toString(),this):b=w.v(this.textContent)?"":this.textContent};h.prototype.append=function(b){if(w.v(b)||"string"==typeof b&&w.ha(b))return this;(b instanceof CDATASection||""!=b.textContent)&&
this.appendChild(b);return this};h.prototype.ob=function(){return""==this.text()};h.prototype.find=function(b){b=this.querySelectorAll(b);for(var a=new d,c=0;c<b.length;c++)a[c]=h.Pb(b[c]);return a};h.prototype.attr=function(b,a){if(a||!1===a)return this.setAttribute(b,a),this;a=this.getAttribute(b);null==a&&(a=void 0);return a};h.prototype.mya=function(){for(var b=new d,a=this.firstElementChild;a;)a.nodeType===Node.ELEMENT_NODE&&b.push(h.Pb(a)),a=a.nextElementSibling;return b};h.Pb=function(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.ob;b.getChildren=h.prototype.mya;return b};q.Object.defineProperties(h.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.childNodes.length}}});f.qX=h;k.create=function(b){if(null==b.firstChild){b=(new DOMParser).parseFromString(b,"text/xml");if(k.qBa(b))return null;b=b.firstElementChild?b.firstElementChild:b.firstChild}else b=b.firstChild;return h.Pb(b)};k.qBa=
function(b){return b.getElementsByTagName("parsererror")&&b.getElementsByTagName("parsererror")[0]?0<b.getElementsByTagNameNS(b.getElementsByTagName("parsererror")[0].namespaceURI,"parsererror").length:!1};k.Bh=function(b){return k.Tva.createCDATASection(b)};k.Cc=function(b,a){a=void 0===a?!1:a;null==k.Hga&&(k.Hga=new XMLSerializer);b=k.Hga.serializeToString(b);1==a&&(b=k.format(b));return b.trim()};k.format=function(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,e=0,g="",l,m=["\n"];for(l=0;20>l;l++)m.push(m[l]+"    ");for(l=0;l<a;l++)if(-1<b[l].search(/<!/)){if(g+=m[e]+b[l],c=!0,-1<b[l].search(/--\x3e/)||-1<b[l].search(/\]>/)||-1<b[l].search(/!DOCTYPE/))c=!1}else-1<b[l].search(/--\x3e/)||-1<b[l].search(/\]>/)?(g+=b[l],c=!1):/^<\w/.exec(b[l-1])&&/^<\/\w/.exec(b[l])&&/^<[\w:\-\.,]+/.exec(b[l-1])[0]==/^<\/[\w:\-\.,]+/.exec(b[l])[0].replace("/","")?(g+=b[l],c||e--):g=-1<b[l].search(/<\w/)&&-1==b[l].search(/<\//)&&
-1==b[l].search(/\/>/)?c?g+=b[l]:g+=m[e++]+b[l]:-1<b[l].search(/<\w/)&&-1<b[l].search(/<\//)?c?g+=b[l]:g+=m[e]+b[l]:-1<b[l].search(/<\//)?c?g+=b[l]:g+=m[--e]+b[l]:-1<b[l].search(/\/>/)?c?g+=b[l]:g+=m[e]+b[l]:-1<b[l].search(/<\?/)?g+(m[e]+b[l]):-1<b[l].search(/xmlns:/)||-1<b[l].search(/xmlns=/)?g+(m[e]+b[l]):g+b[l];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")};k.Tva=(new DOMParser).parseFromString("<tmp/>","text/xml");f.aa=k})(D||
(D={}));
(function(f){function k(){}k.print=function(h,d,b){d=void 0===d?"":d;b=void 0===b?"":b;var a="printer-"+(new Date).getTime(),c=(new A.Aa("iframe")).attr("name",a);c.P("width","1px").P("height","1px").P("position","absolute").P("left","-9999px");w.K.Hb.zb.F.append(c);a=window.frames[a];var e=a.document;e.open();e.write("<!DOCTYPE html>");e.write("<html>");e.write("<head>");e.write("<title>");e.write(b);e.write("</title>");e.write("<style>");e.write(d+"body{-webkit-print-color-adjust:exact;}");e.write("</style>");
e.write("</head>");e.write("<body>");e.write(h);e.write("</body>");e.write("</html>");e.close();a.focus();a.print();w.pe(function(){c.remove()},2E3)};f.R7=k})(D||(D={}));
(function(f){function k(d){this.data=new Uint8Array(d);this.index=0}function h(){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]}h.prototype.uua=function(d){var b=[],a=0,c=0,e;for(e in d)if(d.hasOwnProperty(e)){var g=d[e],l=this.w4(g);g=this.MJa(l);g={OJa:l.length,OZ:this.OZ(l),$$:g.length,vua:g,xua:"\x00\x00",zc:new Date};
l=this.Zxa(e,g,a);a+=l.vba.length+g.$$;c+=l.Saa.length;b.push(l)}d=h.$ia+"\x00\x00\x00\x00"+this.Pl(b.length,2)+this.Pl(b.length,2)+this.Pl(c,4)+this.Pl(a,4)+this.Pl(0,2);a=new k(a+c+d.length);for(c=0;c<b.length;c++)a.append(b[c].vba),a.append(b[c].wua.vua);for(c=0;c<b.length;c++)a.append(b[c].Saa);a.append(d);return a.getData()};h.prototype.OZ=function(d){var b=-1;for(var a=0,c=d.length;a<c;a++){var e=d[a];e=(b^e)&255;e=this.table[e];b=b>>>8^e}return b^-1};h.prototype.Pl=function(d,b){for(var a=
"",c=0;c<b;c++)a+=String.fromCharCode(d&255),d>>>=8;return a};h.prototype.Zxa=function(d,b,a){var c=b.zc,e=c.getHours();e=e<<6|c.getMinutes();e=e<<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.xua;c+=this.Pl(e,2);c+=this.Pl(g,2);c+=this.Pl(b.OZ,4);c+=this.Pl(b.$$,4);c+=this.Pl(b.OJa,4);c+=this.Pl(d.length,2);c+=this.Pl(0,2);return{vba:h.mma+c+d,Saa:h.aja+this.Pl(20,2)+c+this.Pl(0,2)+"\x00\x00\x00\x00"+this.Pl(0,4)+this.Pl(a,4)+d,wua:b}};
h.prototype.w4=function(d){var b=this.Nua(d),a=d.length,c=new Uint8Array(b),e,g=0;for(e=0;g<b;e++){var l=d.charCodeAt(e);if(55296===(l&64512)&&e+1<a){var m=d.charCodeAt(e+1);56320===(m&64512)&&(l=65536+(l-55296<<10)+(m-56320),e++)}128>l?c[g++]=l:(2048>l?c[g++]=192|l>>>6:(65536>l?c[g++]=224|l>>>12:(c[g++]=240|l>>>18,c[g++]=128|l>>>12&63),c[g++]=128|l>>>6&63),c[g++]=128|l&63)}return c};h.prototype.Nua=function(d){for(var b=0,a=d.length,c,e,g=0;g<a;g++)c=d.charCodeAt(g),55296===(c&64512)&&g+1<a&&(e=
d.charCodeAt(g+1),56320===(e&64512)&&(c=65536+(c-55296<<10)+(e-56320),g++)),b+=128>c?1:2048>c?2:65536>c?3:4;return b};h.prototype.MJa=function(d){var b=[],a=d.length,c=0;for(new Uint8Array(0);c<a;)b.push(String.fromCharCode.apply(null,d.subarray(c,Math.min(c+65536,a)))),c+=65536;return b.join("")};h.mma="PK\u0003\u0004";h.aja="PK\u0001\u0002";h.$ia="PK\u0005\u0006";f.Ela=h;k.prototype.append=function(d){0!==d.length&&(d=this.w4(d),this.data.set(d,this.index),this.index+=d.length)};k.prototype.getData=
function(){return this.data};k.prototype.w4=function(d){for(var b=new Uint8Array(d.length),a=0;a<d.length;++a)b[a]=d.charCodeAt(a)&255;return b}})(D||(D={}));
(function(f){function k(){!1!==f.X0&&(a&&f.Dr(a),a=f.pe(h,1E3))}function h(){!1!==f.X0&&(0!==b.length&&b.forEach(function(c){var e=c.values[0];"string"===typeof e&&"[!]"===e.substr(0,3)&&(e=JSON.parse(e.substr(3)));d(e);if(1<c.values.length)for(var g=1;g<c.values.length;g++)e=c.values[g],"string"===typeof e&&"[!]"===e.substr(0,3)&&(e=JSON.parse(e.substr(3))),d(e)}),b=[],k())}function d(c){return"string"===typeof c&&"[Stack trace]"===c.substr(0,13)}f.X0=!1;var b=[],a;k();f.debug=function(c){for(var e=
[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];if(!1!==f.X0){g=[];for(var l=0;l<e.length;l++)if("object"===typeof e[l])try{g[l]="[!]"+JSON.stringify(e[l])}catch(m){g[l]="[Object]"}else g[l]=e[l];b.push({time:x.xf(),values:g})}};f.uNa=h;f.DNa=function(){var c=Error();return c&&c.stack?"[Stack trace] "+c.stack.substr(79):""}})(w||(w={}));
(function(f){function k(){}f.Va=function(h,d,b,a,c,e){d=void 0===d?"":d;b=void 0===b?k.Ik:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?!1:e;f.K.GN.U().Xr(h,d,b,a,c,e)};k.Ik="alert";k.fm="confirmation";k.ya="error";k.pO="info";f.rb=k})(w||(w={}));(function(f){f.NJa=function(k){var h="Please enter group name:";h=void 0===h?"":h;k=void 0===k?null:k;f.K.joa.U().Xr(h,k)}})(w||(w={}));(function(f){f.za=function(k,h,d,b,a){k=void 0===k?!0:k;f.K.ioa.U().show(k,h,d,b,a)}})(w||(w={}));
(function(f){(function(k){function h(){var d=y.Fc.call(this)||this;if(null!=h.instance)throw Error("Singleton");d.ga=f.u.Na.U();d.Ga=new k.cc.Voa;d.FH=f.u.external.yb.eh.v8.U();d.t$=f.u.external.kc.Y4.U();return d}u(h,y.Fc);h.U=function(){null==this.instance&&(this.instance=new h);return this.instance};h.prototype.qC=function(d){var b=this;this.Fb=d;h.id=d.id?d.id:"";k.Qa.sIa(d);k.A.Xz.U().reset();f.K.X.W.Yd.Mv=d.customizeCell;f.K.td.Du.BB=d.customizeChartElement;f.K.X.WH.CK=d.customizeContextMenu;
f.u.external.kc.zz.BK=d.customizeAPIRequest;f.K.Vc.mo.PR=d.sortFieldsList;var a=new f.Bla(location.search);if(a.has("flexmonsterreport")){var c=this.d9(d);c?this.t$.eCa("string"===typeof c?{url:c.toLowerCase(),singleEndpoint:!1}:c,a.get("flexmonsterreport"),function(e){void 0!==e&&(d.report=e);b.Ga.qC(d)}):(f.Va(f.O.bind(k.A.j.r7,"The URL to the server hasn't been found."),k.A.j.ya,f.rb.ya),console.error("Can't load the shared file. The URL to the server hasn't been found."),this.Ga.qC(d))}else this.Ga.qC(d)};
h.prototype.d9=function(d){return d.shareReportConnection||d.report&&(d.report.shareReportConnection||d.report.dataSource&&d.report.dataSource.url||d.report.url)||d.url||void 0};h.prototype.open=function(){this.Ga.open()};h.prototype.load=function(d,b){this.Ga.load(d,b)};h.prototype.save=function(d,b,a,c,e){return this.Ga.save(d,void 0===b?null:b,a,c,void 0===e?!1:e)};h.prototype.Bw=function(d){this.Ga.Bw(d)};h.prototype.Gr=function(d){d=void 0===d?{}:d;return this.Ga.Gr(d)};h.prototype.hV=function(d){d=
k.bb.Wu.tb(k.bb.Wu.wl(d));k.size.nd.clear();k.size.nd.cZ(d);this.refresh();this.Ya()};h.prototype.zG=function(){return k.size.nd.zG().La(this.ga.sa.G4())};h.prototype.clear=function(d){this.Ga&&this.Ga.clear(void 0===d?!1:d)};h.prototype.L$=function(d){var b={};f.v(d.dataSourceType)||(b.dataSourceType=d.dataSourceType);f.v(d.type)||(b.dataSourceType=d.type);f.v(d.proxyUrl)||(b.proxyUrl=d.proxyUrl);f.v(d.dataSourceInfo)||(b.dataSourceInfo=d.dataSourceInfo);f.v(d.catalog)||(b.catalog=d.catalog);f.v(d.cube)||
(b.cube=d.cube);f.v(d.subquery)||(b.subquery=d.subquery);f.v(d.localeIdentifier)||(b.localeIdentifier=d.localeIdentifier);f.v(d.effectiveUserName)||(b.effectiveUserName=d.effectiveUserName);f.v(d.customData)||(b.customData=d.customData);f.v(d.filename)||(b.filename=d.filename);f.v(d.requestHeader)||(b.requestHeaders=d.requestHeader);f.v(d.requestHeaders)||(b.requestHeaders=d.requestHeaders);f.v(d.fieldSeparator)||(b.fieldSeparator=d.fieldSeparator);f.v(d.thousandSeparator)||(b.thousandsSeparator=
d.thousandSeparator);f.v(d.thousandsSeparator)||(b.thousandsSeparator=d.thousandsSeparator);f.v(d.recordsetDelimiter)||(b.recordsetDelimiter=d.recordsetDelimiter);f.v(d.browseForFile)||(b.browseForFile=d.browseForFile);f.v(d.data)||(b.data=d.data);f.v(d.binary)||(b.binary=d.binary);f.v(d.ignoreQuotedLineBreaks)||(b.ignoreQuotedLineBreaks=d.ignoreQuotedLineBreaks);f.v(d.roles)||(b.roles=d.roles);f.v(d.hash)||(b.hash=d.hash);f.v(d.username)||(b.username=d.username);f.v(d.password)||(b.password=d.password);
f.v(d.host)||(b.host=d.host);f.v(d.node)||(b.node=d.node);f.v(d.index)||(b.index=d.index);f.v(d.mapping)||(b.mapping=d.mapping);f.v(d.useStreamLoader)||(b.useStreamLoader=d.useStreamLoader);f.v(d.url)||(b.url=d.url);f.v(d.withCredentials)||(b.withCredentials=d.withCredentials);return b};h.prototype.AF=function(d){this.Ga.AF(this.L$(d))};h.prototype.Jd=function(d,b){b.partial?this.Ga.TJa(d.data,b):this.Ga.Jd(this.L$(d),b)};h.prototype.getData=function(d,b,a){if(k.Ea.pc.Ro||k.Ea.pc.pp||k.Ea.pc.Cx)if(null!=
a&&(f.Ug.instance.on("update",function(){f.Ug.instance.getData(d,a)}),this.N(k.Zb.Q6.K6,function(){f.Ug.instance.getData(d,a)})),null!=d&&null!=d.slice){var c=d.slice instanceof k.bb.SliceValueObject?d.slice:k.bb.SliceValueObject.tb(d.slice);k.rC.qO.U().aIa(c,b)}else c=k.rC.qO.U().getData(),k.rC.qO.U().Uaa(b,c);else f.Va(k.Ea.na.J(k.Ea.na.mZ),k.Ea.na.J(k.Ea.na.FC))};h.prototype.U_=function(){return k.ta.gm.oza()};h.prototype.Y_=function(d){return(d=k.ta.gm.get(d))?d.La():null};h.prototype.zQ=function(d){k.ta.gm.add(k.ta.W.Q5.tb(d))};
h.prototype.KU=function(d){k.ta.gm.remove(d)};h.prototype.JU=function(){k.ta.gm.v3()};h.prototype.ct=function(d){this.ga.ct(d)};h.prototype.Xy=function(d){this.ga.Xy(d)};h.prototype.$C=function(){this.ga.$C()};h.prototype.LR=function(d){this.ga.expandAll(!0,void 0===d?!0:d);f.u.bf.ij.dispose();this.refresh();this.Ya()};h.prototype.$Q=function(){this.ga.expandAll(!1,!1);f.u.bf.ij.dispose();this.refresh();this.Wa("reset_grid");this.Ya()};h.prototype.zp=function(d){null!=d.chartActiveMeasure&&delete d.chartActiveMeasure;
null!=d.chartActiveTupleIndex&&delete d.chartActiveTupleIndex;null!=d.zoom&&delete d.zoom;d.flatView&&this.Ga.fa.Hc&&this.Ga.fa.Ba!==f.u.i.oa.API&&delete d.flatView;if(!f.v(d.useOlapFormatting)&&this.Ga.fa.Hc&&k.B.C.Jq!=d.useOlapFormatting){var b=this.Gr({withDefaults:!0});b.options.IC(d);this.Bw({report:b})}else{b=k.B.C.oc;var a=k.B.C.ru,c=k.B.C.he;k.B.C.zp(k.B.Qp.tb(d),!1);a!=k.B.C.ru&&this.Ga&&this.Ga.fa&&!this.Ga.fa.Hc&&this.G.load();!f.v(this.Ga)&&this.Ga.fa.Ba==f.u.i.oa.API&&(b!=k.B.C.oc||k.B.C.oc&&
c!=k.B.C.he)&&(b=this.Gr({withDefaults:!0}),b.options.IC(d),f.v(this.Ga.fa.requestHeaders)||(b.connectionInfo.requestHeaders=this.Ga.fa.requestHeaders),this.clear(!0),this.Bw({report:b}))}};h.prototype.print=function(d){k.$r.nE.U().print(d)};h.prototype.Nj=function(d,b,a){k.vc.en.Nj(d,void 0===b?null:b,void 0===a?null:a)};h.prototype.iC=function(d,b){return this.FH.iC(d,b)};h.prototype.BG=function(d,b){this.FH.ica(d,b)};h.prototype.zL=function(d,b,a){this.FH.iya(d,b,a)};h.prototype.AL=function(d,
b,a,c){this.FH.zya(d,b,a,c)};h.prototype.WQ=function(d,b,a,c,e){this.FH.UQ(d,b,a,c,e)};h.prototype.UM=function(d){var b=this;return Ca(new Ba(new wa(function(a){return a.return(new Promise(function(c,e){function g(l){var m;f.v(l)?b.Ga.fa&&b.Ga.fa.Ba==f.u.i.oa.API&&(m=b.Ga.fa.Tv()):m=new f.u.external.kc.zz(l);f.v(m)&&(l=b.d9(b.Fb),f.v(l)||("string"===typeof l&&(l={url:l}),m=new f.u.external.kc.zz(l)));m?b.t$.UM(m,b.Gr()).then(function(n){c(n)}):(f.Va(f.O.bind(k.A.j.s7,"Can't find the valid connection options"),
k.A.j.ya,f.rb.ya),e("Can't find the valid connection options"))}null==b.ga||null==b.ga.I?b.Ga.N(k.cc.fd.Oh,function(){return g(d)}):g(d)}))})))};h.prototype.Sl=function(d){return null==this.ga||null==this.ga.I?[]:(d=this.ga.I.rc(!1).getItem(d))&&d.filter.$g?d.filter.La():null};h.prototype.tl=function(d,b){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d)){d.nt();d.filter=k.bb.Tz.tb(b,d);if(d.filter.ai&&(d.filter.query.ta==f.u.i.tc.Bj||d.filter.query.ta==f.u.i.tc.ji))if(k.B.C.oc)this.ga.sa.flatSort=
[{sort:d.filter.query.ta==f.u.i.tc.Bj?f.u.i.xa.Ec:f.u.i.xa.bc,measure:this.ga.I.$c(d.filter.measure.uniqueName)}];else{b=this.ga.sa.Cd(f.u.i.ia.Ia);var a=this.ga.sa.Cd(f.u.i.ia.Sa);b=-1!=b.Ma.indexOf(d.uniqueName)?a:b;b.Vm=[];b.$f=d.filter.query.ta==f.u.i.tc.Bj?f.u.i.xa.Ec:f.u.i.xa.bc;b.Ff=this.ga.sa.Zh(d.filter.measure)}this.Wa("reset_grid");this.ga.filter();this.Ya()}};h.prototype.nt=function(d){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d))d.nt(),this.ga.select(),this.Ya()};h.prototype.vG=function(){if(null==
this.ga||null==this.ga.sa)return[];for(var d=[],b=this.ga.sa.rows,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.kG=function(){if(null==this.ga||null==this.ga.sa)return[];for(var d=[],b=this.ga.sa.columns,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.dC=function(){if(null==this.ga||null==this.ga.sa)return[];for(var d=[],b=this.ga.sa.pages,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.ad=function(){if(null==this.ga||null==this.ga.sa)return[];var d=[];
if(k.B.C.oc){for(var b=this.ga.sa.flatten(),a,c=0;c<b.length;c++)a=b.ea(c),(a=this.ga.I.Ee(a.uniqueName))&&d.push(a.Ji());b=this.ga.sa.ad();for(c=0;c<b.length;c++)b[c].Ka&&d.push(b[c].Ji())}else for(b=this.ga.sa.ad(),c=0;c<b.length;c++)d.push(b[c].Ji());return d};h.prototype.Er=function(){if(null==this.ga||null==this.ga.I)return[];for(var d=[],b=this.ga.I.measures,a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.NU=function(d){this.ga.I.rc(!1).getItem(d.name).label=d.caption};h.prototype.dG=
function(){if(null==this.ga||null==this.ga.I)return[];for(var d=[],b=this.ga.I.rc(!1),a=0;a<b.length;a++)d.push(b.ea(a).Ji());return d};h.prototype.qV=function(d,b,a,c){c="string"==typeof c?new k.bb.Ig(f.u.me.zg(c)):k.bb.Ig.tb(c);d=this.ga.sa.axes.getItem(d);if(null!=d){if(b==f.u.i.xa.Zc)d.rB();else if(c=this.ga.sa.Zh(c))d.$f=b,d.Vm=a,d.Ff=c;this.ga.sort();this.Ya()}};h.prototype.oD=function(d,b){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d)){var a=this.ga.sa.axes.getItem(f.u.i.ia.Sa),c=this.ga.sa.axes.getItem(f.u.i.ia.Ia);
-1!=a.Ma.indexOf(d.uniqueName)?c.rB():-1!=c.Ma.indexOf(d.uniqueName)&&a.rB();d.Zf=b;k.B.C.oc&&(this.ga.sa.flatSort=[{sort:b,measure:this.ga.I.Ee(d.uniqueName)}]);this.Ya()}this.ga.select()};h.prototype.$U=function(d){this.ga.sa.flatSort=f.u.I.Zq.Iba(d,this.ga.sa.Wc);this.Ya();this.ga.select()};h.prototype.Ya=function(){k.Qa.U().Da(new k.Xc(k.Qa.RI))};h.prototype.oV=function(d){f.K.Vc.mo.PR=d};h.prototype.rV=function(d,b){d=f.u.me.zg(d);if(d=this.ga.I.rc(!1).getItem(d))d.Ly=b;this.Ga.dc&&this.ga.select()};
h.prototype.s0=function(d){if(null==this.ga||null==this.ga.I)return"";d=this.ga.I.rc(!1).getItem(d);return null!=d?d.Zf:""};h.prototype.g0=function(){return null==this.ga||null==this.ga.I?null:this.ga.sa.Jba()};h.prototype.pj=function(d,b,a){var c=this;if(null==this.ga||null==this.ga.I)return[];var e=[],g=this.ga.I.rc(!1).getItem(d);null==b&&(b="");g&&(this.Ga.fa.Hc?(d=""==b?g.yd:g.Db(b),null==a||null==d&&""!=b||(d&&d.children&&0<d.children.length&&!d.yf?(e=this.fS(g,b),a(e)):this.ga.Uj(g,d,function(){e=
c.fS(g,b);a(e)}))):(e=this.T_(g.yd),null!=a&&a(e)));return e};h.prototype.p0=function(d,b){var a=this;return new Promise(function(c,e){function g(l,m){var n=[],p=a.ga.I.rc(!1).getItem(l);f.v(m)&&(m="");if(p){if(a.Ga.fa.Hc)if(l=""===m?p.yd:p.Db(m),null!=l)if(l&&l.children&&0<l.children.length&&!l.yf)n=a.fS(p,m),c(n);else{a.ga.Uj(p,l,function(){n=a.fS(p,m);c(n)});return}else e('Member "'+m+'" is not found!');else n=a.T_(p.yd);c(n)}else e('Hierarchy "'+l+'" is not found!')}null==a.ga||null==a.ga.I?a.Ga.N(k.cc.fd.Oh,
function(){return g(d,b)}):g(d,b)})};h.prototype.fS=function(d,b){var a=[];b=""==b?d.yd.children:d.Db(b).children;for(var c=0;c<b.length;c++){var e=d.va(b[c]),g=e.La();g.isLeaf=e.level.sb==e.hierarchy.ra.length-1;g.parentMember=e.parent.Wb?e.hierarchy.yd.Xi:e.parent.Xi;e.uniqueName!=d.tn&&a.push(g)}return a};h.prototype.T_=function(d){for(var b=[],a=d.hierarchy.uj(d,!1),c=0;c<a.length;c++){var e=d.hierarchy.va(a[c]),g=e.La();g.isLeaf=e.level.sb==e.hierarchy.ra.length-1;g.uniqueName=e.Xi;g.parentMember=
e.parent.Wb?e.hierarchy.yd.Xi:e.parent.Xi;if(1!=e.children.length||e.hierarchy.va(e.children[0]).caption!=k.A.j.Mk)g.children=this.T_(e);b.push(g)}return b};h.prototype.IM=function(d){this.Ga.ae(f.u.I.Zq.tb(d,f.u.Na.U().I))};h.prototype.ae=function(d){this.Ga.ae(d)};h.prototype.Vv=function(){var d=k.B.C.Vv(!0,!0).La();null!=d.chartActiveMeasure&&delete d.chartActiveMeasure;null!=d.chartActiveTupleIndex&&delete d.chartActiveTupleIndex;return d};h.prototype.Dh=function(d,b){var a=this.ga&&this.ga.I?
this.ga.I.$c(d):null;b=a&&void 0===b?a.Ll:b;var c=a&&k.B.C.oc&&f.u.i.Ja.sc==a.type;return(a?a.Dh(d,b,c):k.Zb.Ni.oS()).La(!0)};h.prototype.kD=function(d,b,a){d.hasOwnProperty("name")||(d.name=f.O.aL());try{k.Zb.Ni.kD(d)}catch(l){f.Va("Can't add format. Component's configuration requires more parameters.");return}try{var c=this.ga.I.$c(b);c&&void 0===a&&k.Zb.Ni.lH(d.name,c.uniqueName,"");c&&c.$===a&&(c.format=d.name,k.Zb.Ni.lH(d.name,c.uniqueName,a),d.label&&(c.label=d.label));if(""!=d.name&&(""==b||
null==b))for(var e=0;e<this.ga.I.measures.length;e++)c=this.ga.I.measures.ea(e),k.Zb.Ni.lH(d.name,c.uniqueName,""),c.format=d.name;var g=this.ga.sa.ad();for(e=0;e<g.length;e++)if(b===g[e].uniqueName&&a===g[e].$||void 0===a&&b===g[e].uniqueName)g[e].format=d.name,k.Zb.Ni.lH(d.name,g[e].uniqueName,g[e].$),d.label&&(c.label=d.label)}catch(l){f.Va("List of measures is empty. There is nothing to format.");return}this.Da(new y.da(k.Zb.Q6.K6));this.Ya()};h.prototype.refresh=function(){this.ga.filter()};
h.prototype.u3=function(){var d=f.Ug.instance.Gr();f.Ug.instance.clear();f.Ug.instance.Bw(d)};h.prototype.dispose=function(){f.u.bf.ij.dispose();f.K.X.W.Yd.Mv=null;f.K.td.Du.BB=null;f.K.X.WH.CK=null;f.u.external.kc.zz.BK=null;f.u.Na.dispose();this.Ga&&this.Ga.dispose();this.FH=this.G=this.Ga=this.ga=null;h.instance=null};h.prototype.d0=function(d,b){f.u.external.De.xka.U().j0(d,function(a,c){f.pg(b)&&b(a,c)})};h.id="flexmonster";k.Ta=h})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){function h(){var d=y.Fc.call(this)||this;if(null!=h.instance)throw Error("Singleton");return d}k.Xc=function(d,b){this.type=d;this.data=void 0===b?null:b};u(h,y.Fc);h.U=function(){null==h.instance&&(h.instance=new h);return h.instance};h.dispose=function(){h.instance=null};h.Rha=function(d){return h.p1(d)?d:""};h.p1=function(d){return-1<h.types.indexOf(d)};h.prototype.N=function(d,b,a){d=h.Rha(d);h.p1(d)&&y.Fc.prototype.N.call(this,d,b,void 0===a?0:a)};h.prototype.mb=function(d,
b){d=h.Rha(d);h.p1(d)&&y.Fc.prototype.mb.call(this,d,b)};h.sIa=function(d){for(var b=0;b<h.types.length;b++){var a=h.types[b];h.rIa(a,d[a])}};h.rIa=function(d,b){if(b){"string"==typeof b&&(b=h.xca(b));var a=b;d!=h.MV&&d!=h.Nw&&d!=h.fo&&d!=h.LV&&(a=function(c){for(var e=[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];f.pe(function(){b.apply(null,e)},1)});h.U().N(d,a)}};h.xca=function(d){var b=void 0===b?window:b;d=d.split(".");for(var a=d.pop(),c=0;c<d.length;c++){if(null==b)return null;b=b[d[c]]}return b[a]};
h.lE="openingreportfile";h.Xw="loadingreportfile";h.kn="reportfileloaded";h.SI="reportfileerror";h.Yq="reportfilecancelled";h.cE="loadingdata";h.$H="dataloaded";h.YH="dataerror";h.ZH="datafilecancelled";h.S5="datachanged";h.f7="loadingolapstructure";h.L7="olapstructureloaded";h.K7="olapstructureerror";h.aJ="unauthorizederror";h.hA="runningquery";h.hk="querycomplete";h.Ds="queryerror";h.dE="loadinglocalization";h.eE="localizationloaded";h.AI="localizationerror";h.Oh="reportcomplete";h.RI="reportchange";
h.k6="exportstart";h.Tg="exportcomplete";h.O7="printstart";h.fA="printcomplete";h.U7="ready";h.q8="update";h.Nw="beforegriddraw";h.fo="aftergriddraw";h.LV="afterchartdraw";h.v5="chartclick";h.u5="cellclick";h.KN="celldoubleclick";h.Uw="filteropen";h.oW="filterclose";h.ZD="fieldslistopen";h.hI="fieldslistclose";h.G7="numberformatting";h.B5="conditionalformatting";h.MV="beforetoolbarcreated";h.b6="drillthroughopen";h.Z5="drillthroughclose";h.types=[h.U7,h.lE,h.Xw,h.kn,h.SI,h.Yq,h.cE,h.$H,h.YH,h.ZH,
h.S5,h.f7,h.L7,h.K7,h.aJ,h.hA,h.hk,h.Ds,h.dE,h.eE,h.AI,h.Oh,h.RI,h.O7,h.fA,h.k6,h.Tg,h.q8,h.Nw,h.fo,h.LV,h.v5,h.u5,h.KN,h.Uw,h.oW,h.ZD,h.hI,h.G7,h.B5,h.MV,h.b6,h.Z5];k.Qa=h})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.valid=function(d){if(f.v(d)||"number"===typeof d)return!0;d=d.toLowerCase();return-1===d.indexOf("<script")&&-1===d.indexOf("<svg")&&-1===d.indexOf("javascript:")&&-1===d.indexOf("<iframe")&&-1===d.indexOf("<object")&&-1===d.indexOf("expression(")&&-1===d.indexOf("onmouseover")&&-1===d.indexOf("onload=")&&-1===d.indexOf("onerror")};h.validate=function(d,b){return f.O.In(d,void 0===b?!1:b)};k.Nb=h})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){d.instance=null};d.prototype.getData=function(){if(k.Ea.pc.Ro||k.Ea.pc.pp||k.Ea.pc.Cx){var b=f.u.bf.ij.W_(k.B.C.lZ);return this.gR(b)}f.Va(k.Ea.na.J(k.Ea.na.mZ),k.Ea.na.J(k.Ea.na.FC))};d.prototype.aIa=function(b,a){if(k.Ea.pc.Ro||k.Ea.pc.pp||k.Ea.pc.Cx){var c=f.u.Na.U();if(void 0!=c.fa&&!c.fa.Hc){b=f.u.I.Zq.tb(b,c.I,!0);var e=f.u.local.xO.clone(c.qa);e.slice=
b;e.select();c=new f.u.bf.Jka;c.reset();c.qa=e;c.slice=b;c.load();b=this.gR(c);this.Uaa(a,b);c.reset()}}else f.Va(k.Ea.na.J(k.Ea.na.mZ),k.Ea.na.J(k.Ea.na.FC))};d.prototype.Uaa=function(b,a){a.UAa()?b({},a.errorDataObject.La()):b(a.La())};d.prototype.gR=function(b){var a=new h.OutputDataValueObject;if(void 0==b.slice)return a;a.slice=b.slice.La();a.meta={caption:k.B.C.Dm,vAmount:b.slice.ad().length,formats:[]};var c=0,e=0;if(b.mj&&!b.ob){var g="on"==k.B.C.Ef||"rows"==k.B.C.Ef?b.Fd-1:b.Fd;var l="on"==
k.B.C.Ef||"columns"==k.B.C.Ef?b.Ed-1:b.Ed;a.data=[];var m=[];var n=[];var p={};for(var t=0;t<b.measures.length;t++){var r=b.measures[t];a.meta["v"+t+"Name"]=r.caption;var v=k.Ta.U().Dh(r.uniqueName,r.$);a.meta.formats.push(v);r=b.Fa(m,n,r);p["v"+t]=r}a.data.push(p);for(v=0;v<l;v++)if(m=b.Lm(v),!f.v(m)&&0!=m.length){p={};c=Math.max(c,m.length);n=[];t=b.vb;for(r=0;r<m.length;r++){var z=r;var B=t.ea(z);var C=m[r];C=B.va(C);a.meta["r"+z+"Name"]=B.caption;var E=this.eS(C);p["r"+z]=E;p["r"+z+"_full"]=C.Xi}for(t=
0;t<b.measures.length;t++)r=b.measures[t],r=b.Fa(m,n,r),p["v"+t]=r;a.data.push(p)}for(var K=0;K<g;K++)if(n=b.nj(K),!f.v(n)&&0!=n.length){p={};m=[];e=Math.max(e,n.length);t=b.Cb;for(r=0;r<n.length;r++)E=r,B=t.ea(E),C=n[r],C=B.va(C),a.meta["c"+E+"Name"]=B.caption,B=this.eS(C),p["c"+E]=B,p["c"+E+"_full"]=C.Xi;for(t=0;t<b.measures.length;t++)r=b.measures[t],r=b.Fa(m,n,r),p["v"+t]=r;a.data.push(p)}var J=!1,aa=x.xf();if(0<b.Cb.length&&0<b.vb.length)for(v=0;v<l;v++){m=b.Lm(v);c=Math.max(c,m.length);for(K=
0;K<g;K++){if(1E4<x.xf()-aa){J=!0;break}n=b.nj(K);e=Math.max(e,n.length);p={};t=b.vb;for(r=0;r<m.length;r++)z=r,B=t.ea(z),C=m[r],C=B.va(C),E=this.eS(C),p["r"+z]=E,p["r"+z+"_full"]=C.Xi;t=b.Cb;for(r=0;r<n.length;r++)E=r,B=t.ea(E),C=n[r],C=B.va(C),B=this.eS(C),p["c"+E]=B,p["c"+z+"_full"]=C.Xi;for(t=0;t<b.measures.length;t++)r=b.measures[t],r=b.Fa(m,n,r),p["v"+t]=r;a.data.push(p)}if(J)break}}J?(a.data=[],a.meta={},a.errorDataObject=new h.Ika,a.errorDataObject.Ed=l,a.errorDataObject.Fd=g,a.errorDataObject.errorMessage=
k.A.j.q7+". "+k.A.j.p7):(a.meta.rAmount=c,a.meta.cAmount=e);return a};d.prototype.eS=function(b){return b.level.type==f.u.i.eb.fb||b.level.type==f.u.i.eb.Yb?b.ec:b.level.type==f.u.i.eb.Dc?b.ec:b.level.type==f.u.i.eb.hm?isNaN(parseFloat(b.caption))?b.caption:parseFloat(b.caption):b.caption};h.qO=d})(k.rC||(k.rC={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.errorMessage=null}function b(){this.slice={};this.meta={};this.data=[];this.errorDataObject=null}b.prototype.La=function(){var a={};a.meta=this.meta;a.data=this.data;return a};b.prototype.UAa=function(){return null!=this.errorDataObject};h.OutputDataValueObject=b;d.prototype.La=function(){var a={};a.errorMessage=this.errorMessage;a.dataH=this.Ed;a.dataW=this.Fd;return a};h.Ika=d})(k.rC||(k.rC={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.YV="Flexmonster Pivot Table";h.j=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.prototype.load=function(b,a,c){var e=this;this.Ib=a;this.Xa=c;this.xhr=new XMLHttpRequest;this.xhr.open("GET",b,!0);this.xhr.onerror=function(g){return e.Mb(g)};this.xhr.onreadystatechange=function(g){return e.lu(g)};this.xhr.send()};d.prototype.lu=function(){null!=this.xhr&&4===this.xhr.readyState&&(200===this.xhr.status?this.vH():this.Xa())};d.prototype.vH=function(){this.xhr.response&&null==this.xhr.response.error?null!=this.Ib&&this.aj(this.xhr.response):
this.Xa&&this.Xa()};d.prototype.Mb=function(){null!=this.Xa&&this.Xa()};d.prototype.aj=function(b){try{var a=JSON.parse(b);this.Ib(h.wO.tb(a))}catch(c){console.error(c),this.Xa()}};d.prototype.close=function(){null!=this.xhr&&(this.xhr.onprogress=null,this.xhr.onreadystatechange=null,this.xhr.abort())};h.oma=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){if(null!=d.instance)throw Error("Singleton");this.yt=new h.wO;this.yt.jD()}d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){null!==this.Gy&&(this.Gy.close(),this.Gy=null);h.j.Vq=null;h.j.Zw=null;h.j.oA=null;h.j.pA=null;h.j.T7=null;d.instance.yt=null;d.instance.IS=null;d.instance.TG=null;d.instance=null};d.prototype.updateLabels=function(){h.j.y6=this.J("fieldsList/flatHierarchyBox");h.j.Rz=this.J("fieldsList/values");
h.j.Qz=this.J("fieldsList/addCalculatedMeasure");h.j.Nka=this.J("fieldsList/expandAll");h.j.x6=this.J("fieldsList/collapseAll");h.j.z6=this.J("fieldsList/formulasGroupName");h.j.Hu=this.J("fieldsList/allFields");h.j.$D=this.J("fieldsList/rows");h.j.YD=this.J("fieldsList/columns");h.j.Uq=this.J("fieldsList/filters");h.j.Rw=this.J("fieldsList/dropField");h.j.Sw=this.J("fieldsList/title");h.j.B6=this.J("fieldsList/subtitle");h.j.$N=this.J("fieldsList/search");h.j.A6=this.J("fieldsList/searchClose");
h.j.hI=this.J("fieldsList/close");h.j.ZD=this.J("fieldsList/open");h.j.Mka=this.J("fieldsList/actions/select");h.j.lW=this.J("fieldsList/actions/deselect");h.j.Lka=this.J("fieldsList/actions/expand");h.j.Kka=this.J("fieldsList/actions/collapse");h.j.u6=this.J("fieldsList/actions/move_to_rows");h.j.s6=this.J("fieldsList/actions/move_to_columns");h.j.t6=this.J("fieldsList/actions/move_to_filters");h.j.v6=this.J("fieldsList/actions/move_to_values");h.j.w6=this.J("fieldsList/actions/move_up");h.j.r6=
this.J("fieldsList/actions/move_down");h.j.mW=this.J("fieldsList/actions/edit_calculated_value");h.j.kW=this.J("fieldsList/actions/aggregation");h.j.kI=this.J("filter/all");h.j.qI=this.J("filter/multipleItems");h.j.Ju=this.J("filter/selectAll");h.j.rla=this.J("filter/selectAllResults");h.j.kla=this.J("filter/top");h.j.bla=this.J("filter/bottom");h.j.C6=this.J("filter/ascSort");h.j.D6=this.J("filter/ascSortTooltip");h.j.F6=this.J("filter/descSort");h.j.G6=this.J("filter/descSortTooltip");h.j.pW=this.J("filter/search");
h.j.Pka=this.J("filter/amountSelected");h.j.Oka=this.J("filter/amountFound");h.j.sla=this.J("filter/sort");h.j.Sz=this.J("filter/filterBy");h.j.hO=this.J("filter/labelsFilter");h.j.H6=this.J("filter/numbersFilter");h.j.J6=this.J("filter/valuesFilter");h.j.E6=this.J("filter/datesFilter");h.j.I6=this.J("filter/timeFilter");h.j.mI=this.J("filter/equal");h.j.oI=this.J("filter/notEqual");h.j.Zka=this.J("filter/before");h.j.$ka=this.J("filter/beforeEqual");h.j.Xka=this.J("filter/after");h.j.Yka=this.J("filter/afterEqual");
h.j.lI=this.J("filter/between");h.j.nI=this.J("filter/notBetween");h.j.fla=this.J("filter/last");h.j.dla=this.J("filter/current");h.j.gla=this.J("filter/next");h.j.ala=this.J("filter/begin");h.j.hla=this.J("filter/notBegin");h.j.ela=this.J("filter/end");h.j.jla=this.J("filter/notEnd");h.j.cla=this.J("filter/contain");h.j.ila=this.J("filter/notContain");h.j.dO=this.J("filter/greater");h.j.eO=this.J("filter/greaterEqual");h.j.fO=this.J("filter/less");h.j.gO=this.J("filter/lessEqual");h.j.zla=this.J("filter/seconds");
h.j.xla=this.J("filter/minutes");h.j.vla=this.J("filter/hours");h.j.tla=this.J("filter/days");h.j.Ala=this.J("filter/secondsFull");h.j.yla=this.J("filter/minutesFull");h.j.wla=this.J("filter/hoursFull");h.j.ula=this.J("filter/daysFull");h.j.mla=this.J("filter/day");h.j.pla=this.J("filter/week");h.j.nla=this.J("filter/month");h.j.ola=this.J("filter/quarter");h.j.qla=this.J("filter/year");h.j.Qka=this.J("filter/clearDateFilter");h.j.Rka=this.J("filter/clearLabelFilter");h.j.Ska=this.J("filter/clearNumberFilter");
h.j.Tka=this.J("filter/clearTimeFilter");h.j.Uka=this.J("filter/clearValueFilter");h.j.lla=this.J("filter/noAvailableValues");h.j.cO=this.J("filter/condition");h.j.Tw=this.J("filter/conditionValue");h.j.Vka=this.J("filter/conditionMeasure");h.j.Wka=this.J("filter/conditionTimeInterval");h.j.mka=this.J("drillThrough/title");h.j.lka=this.J("drillThrough/row");h.j.kka=this.J("drillThrough/column");h.j.nka=this.J("drillThrough/value");h.j.RV=this.J("calculatedView/title");h.j.r5=this.J("calculatedView/measureBox");
h.j.QV=this.J("calculatedView/measureName");h.j.JN=this.J("calculatedView/formula");h.j.q5=this.J("calculatedView/formulaPrompt");h.j.p5=this.J("calculatedView/calculateIndividualValues");h.j.t5=this.J("calculatedView/removeValue");h.j.Zia=this.J("calculatedView/removeValueTitle");h.j.Yia=this.J("calculatedView/removeValueMessage");h.j.Xia=this.J("calculatedView/allValues");h.j.Wia=this.J("calculatedView/actions/add_to_formula");h.j.xKa=this.J("calculatedView/func/add");h.j.OKa=this.J("calculatedView/func/subtract");
h.j.IKa=this.J("calculatedView/func/multiply");h.j.zKa=this.J("calculatedView/func/divide");h.j.LKa=this.J("calculatedView/func/power");h.j.AKa=this.J("calculatedView/func/equal");h.j.EKa=this.J("calculatedView/func/less");h.j.FKa=this.J("calculatedView/func/less_equal");h.j.BKa=this.J("calculatedView/func/greater");h.j.CKa=this.J("calculatedView/func/greater_equal");h.j.NKa=this.J("calculatedView/func/strict_equal");h.j.JKa=this.J("calculatedView/func/not_equal");h.j.KKa=this.J("calculatedView/func/or");
h.j.yKa=this.J("calculatedView/func/and");h.j.DKa=this.J("calculatedView/func/if");h.j.wKa=this.J("calculatedView/func/abs");h.j.MKa=this.J("calculatedView/func/round");h.j.HKa=this.J("calculatedView/func/min");h.j.GKa=this.J("calculatedView/func/max");h.j.vW=this.J("grid/total");h.j.Pla=this.J("grid/totals");h.j.uW=this.J("grid/grandTotal");h.j.Mk=this.J("grid/blankMember");h.j.XV=this.J("grid/dateNullCaption");h.j.cn=this.J("grid/dateInvalidCaption");h.j.Gka=this.J("grid/reportInformation");h.j.dja=
this.J("charts/showLegend");h.j.bja=this.J("charts/hideLegend");h.j.cja=this.J("charts/selectMeasures");h.j.w5=this.J("charts/noDataTitle");h.j.eja=this.J("charts/noMeasuresTitle");h.j.fja=this.J("charts/bigDataSetWarning");h.j.hP=this.J("tooltips/fieldList");h.j.m8=this.J("tooltips/selectAggregation");h.j.k8=this.J("tooltips/editCalculatedMeasure");h.j.gpa=this.J("tooltips/row");h.j.fpa=this.J("tooltips/headerResize");h.j.l8=this.J("tooltips/headerFit");h.j.mA=this.J("tooltips/filterIcon");h.j.mX=
this.J("tooltips/filtered");h.j.gP=this.J("tooltips/expandIcon");h.j.fP=this.J("tooltips/collapseIcon");h.j.dpa=this.J("tooltips/drillDown");h.j.epa=this.J("tooltips/drillUp");h.j.jpa=this.J("tooltips/sortIcon");h.j.ipa=this.J("tooltips/sortedDescIcon");h.j.hpa=this.J("tooltips/sortedAscIcon");h.j.kpa=this.J("tooltips/unsortedIcon");h.j.cpa=this.J("tooltips/close");h.j.f8=this.J("aggregations/sum/caption");h.j.WI=this.J("aggregations/sum/totalCaption");h.j.Noa=this.J("aggregations/sum/grandTotalCaption");
h.j.I5=this.J("aggregations/count/caption");h.j.LN=this.J("aggregations/count/totalCaption");h.j.Ija=this.J("aggregations/count/grandTotalCaption");h.j.gka=this.J("aggregations/distinctCount/caption");h.j.SN=this.J("aggregations/distinctCount/totalCaption");h.j.hka=this.J("aggregations/distinctCount/grandTotalCaption");h.j.poa=this.J("aggregations/runningTotalsOfColumn/caption");h.j.RO=this.J("aggregations/runningTotalsOfColumn/totalCaption");h.j.qoa=this.J("aggregations/runningTotalsOfColumn/grandTotalCaption");
h.j.roa=this.J("aggregations/runningTotalsOfRow/caption");h.j.TO=this.J("aggregations/runningTotalsOfRow/totalCaption");h.j.soa=this.J("aggregations/runningTotalsOfRow/grandTotalCaption");h.j.cka=this.J("aggregations/differenceOfColumn/caption");h.j.bI=this.J("aggregations/differenceOfColumn/totalCaption");h.j.dka=this.J("aggregations/differenceOfColumn/grandTotalCaption");h.j.eka=this.J("aggregations/differenceOfRow/caption");h.j.cI=this.J("aggregations/differenceOfRow/totalCaption");h.j.fka=this.J("aggregations/differenceOfRow/grandTotalCaption");
h.j.Sna=this.J("aggregations/percentDifferenceOfColumn/caption");h.j.KI=this.J("aggregations/percentDifferenceOfColumn/totalCaption");h.j.Tna=this.J("aggregations/percentDifferenceOfColumn/grandTotalCaption");h.j.Una=this.J("aggregations/percentDifferenceOfRow/caption");h.j.LI=this.J("aggregations/percentDifferenceOfRow/totalCaption");h.j.Vna=this.J("aggregations/percentDifferenceOfRow/grandTotalCaption");h.j.f5=this.J("aggregations/average/caption");h.j.FN=this.J("aggregations/average/totalCaption");
h.j.Mia=this.J("aggregations/average/grandTotalCaption");h.j.Rma=this.J("aggregations/median/caption");h.j.HW=this.J("aggregations/median/totalCaption");h.j.Sma=this.J("aggregations/median/grandTotalCaption");h.j.Ioa=this.J("aggregations/stdevp/caption");h.j.ZO=this.J("aggregations/stdevp/totalCaption");h.j.Joa=this.J("aggregations/stdevp/grandTotalCaption");h.j.Koa=this.J("aggregations/stdevs/caption");h.j.$O=this.J("aggregations/stdevs/totalCaption");h.j.Loa=this.J("aggregations/stdevs/grandTotalCaption");
h.j.coa=this.J("aggregations/product/caption");h.j.QO=this.J("aggregations/product/totalCaption");h.j.doa=this.J("aggregations/product/grandTotalCaption");h.j.sna=this.J("aggregations/min/caption");h.j.IO=this.J("aggregations/min/totalCaption");h.j.tna=this.J("aggregations/min/grandTotalCaption");h.j.wma=this.J("aggregations/max/caption");h.j.zO=this.J("aggregations/max/totalCaption");h.j.xma=this.J("aggregations/max/grandTotalCaption");h.j.Pna=this.J("aggregations/percent/caption");h.j.QI=this.J("aggregations/percent/totalCaption");
h.j.Wna=this.J("aggregations/percent/grandTotalCaption");h.j.Qna=this.J("aggregations/percentOfColumn/caption");h.j.JI=this.J("aggregations/percentOfColumn/totalCaption");h.j.Rna=this.J("aggregations/percentOfColumn/grandTotalCaption");h.j.aoa=this.J("aggregations/percentOfRow/caption");h.j.OI=this.J("aggregations/percentOfRow/totalCaption");h.j.boa=this.J("aggregations/percentOfRow/grandTotalCaption");h.j.Xna=this.J("aggregations/percentOfParentColumnTotal/caption");h.j.MI=this.J("aggregations/percentOfParentColumnTotal/totalCaption");
h.j.Yna=this.J("aggregations/percentOfParentColumnTotal/grandTotalCaption");h.j.Zna=this.J("aggregations/percentOfParentRowTotal/caption");h.j.NI=this.J("aggregations/percentOfParentRowTotal/totalCaption");h.j.$na=this.J("aggregations/percentOfParentRowTotal/grandTotalCaption");h.j.Vla=this.J("aggregations/index/caption");h.j.wI=this.J("aggregations/index/totalCaption");h.j.Wla=this.J("aggregations/index/grandTotalCaption");h.j.Dna=this.J("aggregations/none/caption");h.j.ya=this.J("messages/error");
h.j.t8=this.J("messages/warning");h.j.uO=this.J("messages/limitation");h.j.Sia=this.J("messages/browse");h.j.fm=this.J("messages/confirmation");h.j.ana=this.J("messages/api/incorrectUrl");h.j.$ma=this.J("messages/api/errorZeroStatus");h.j.Vma=this.J("messages/api/error404Status");h.j.Uma=this.J("messages/api/error400Status");h.j.Wma=this.J("messages/api/error500Status");h.j.o7=this.J("messages/api/selectRequestError");h.j.Xma=this.J("messages/api/selectDrillThroughError");h.j.vMa=this.J("messages/api/clientOutdated");
h.j.Zma=this.J("messages/api/serverOutdated");h.j.Yma=this.J("messages/api/fieldsRequestError");h.j.n7=this.J("messages/api/membersRequestError");h.j.IW=this.J("messages/api/noGridChartsMode");h.j.iE=this.J("messages/loading");h.j.Hf=this.J("messages/loadingData");h.j.NW=this.J("messages/loadingMapping");h.j.zs=this.J("messages/waiting");h.j.OW=this.J("messages/progress");h.j.jE=this.J("messages/progressKnown");h.j.Al=this.J("messages/progressUnknown");h.j.mna=this.J("messages/sortingMembers");h.j.BO=
this.J("messages/analyzing");h.j.CO=this.J("messages/analyzingProgress");h.j.m7=this.J("messages/analyzingRecords");h.j.Tma=this.J("messages/analyzingRecordsWithAmount");h.j.z7=this.J("messages/saving");h.j.DI=this.J("messages/loadingDimensions");h.j.LW=this.J("messages/loadingHierarchies");h.j.FO=this.J("messages/loadingMeasures");h.j.w7=this.J("messages/loadingKPIs");h.j.gn=this.J("messages/loadingMembers");h.j.MW=this.J("messages/loadingLevels");h.j.x7=this.J("messages/loadingProperties");h.j.Yw=
this.J("messages/exportProgress");h.j.ys=this.J("messages/exportError");h.j.kE=this.J("messages/pleaseWait");h.j.y7=this.J("messages/pagesWereGenerated");h.j.A7=this.J("messages/uploading");h.j.DO=this.J("messages/cantSaveFile");h.j.JW=this.J("messages/cantSaveFileNoDetails");h.j.kna=this.J("messages/saveReportToFile");h.j.jna=this.J("messages/saveReportForSharing");h.j.s7=this.J("messages/cantSaveReportForSharing");h.j.r7=this.J("messages/cantLoadSharedReport");h.j.hE=this.J("messages/invalidDataSource");
h.j.cna=this.J("messages/dataStreamError");h.j.EI=this.J("messages/unableToOpenFile");h.j.EO=this.J("messages/errorTextMessage");h.j.hna=this.J("messages/inappropriateFileFormat");h.j.CI=this.J("messages/invalidJSONdata");h.j.pna=this.J("messages/wrongFormulaEmpty");h.j.B7=this.J("messages/wrongFormulaFormat");h.j.rna=this.J("messages/wrongUniqueName");h.j.ona=this.J("messages/wrongFormulaAggregation");h.j.qna=this.J("messages/wrongFormulaRecursive");h.j.ena=this.J("messages/excelCsvChartsExportError");
h.j.Nu=this.J("messages/noDataAvailable");h.j.KW=this.J("messages/dataWasUpdated");h.j.bna=this.J("messages/cantConnectToAccelerator");h.j.ina=this.J("messages/ocsvIncompatible");h.j.GO=this.J("messages/unknownError");h.j.u7=this.J("messages/invalidReportFormat");h.j.v7=this.J("messages/invalidReportFormat2");h.j.t7=this.J("messages/csvHeaderParsingError");h.j.nna=this.J("messages/tooManyColumnsInClassicMode");h.j.p7=this.J("messages/cantExpand");h.j.q7=this.J("messages/cantExpandTitle");h.j.lna=
this.J("messages/selectFile");h.j.gna=this.J("messages/flatTableIsNotSupported");h.j.fna=this.J("messages/exportFontLoadingError");h.j.dna=this.J("messages/elastic/errorConnection");h.j.Ww=this.J("kpis/kpis");h.j.a7=this.J("kpis/value");h.j.W6=this.J("kpis/goal");h.j.Z6=this.J("kpis/trend");h.j.Y6=this.J("kpis/status");h.j.OV=this.J("buttons/ok");h.j.l5=this.J("buttons/copy");h.j.Ow=this.J("buttons/apply");h.j.Jk=this.J("buttons/cancel");h.j.n5=this.J("buttons/save");h.j.Tia=this.J("buttons/select");
h.j.MD=this.J("buttons/yes");h.j.m5=this.J("buttons/no");h.j.D5=this.J("contextMenu/clearSorting");h.j.kja=this.J("contextMenu/collapse");h.j.E5=this.J("contextMenu/drillThrough");h.j.pja=this.J("contextMenu/expand");h.j.nja=this.J("contextMenu/drillUp");h.j.mja=this.J("contextMenu/drillDown");h.j.G5=this.J("contextMenu/openFilter");h.j.qja=this.J("contextMenu/filterBy");h.j.H5=this.J("contextMenu/removeField");h.j.zja=this.J("contextMenu/removeMeasure");h.j.Cja=this.J("contextMenu/sortColumnAsc");
h.j.Dja=this.J("contextMenu/sortColumnDesc");h.j.Eja=this.J("contextMenu/sortRowAsc");h.j.Fja=this.J("contextMenu/sortRowDesc");h.j.C5=this.J("contextMenu/aggregation");h.j.yja=this.J("contextMenu/properties");h.j.oja=this.J("contextMenu/editFormula");h.j.wja=this.J("contextMenu/moveToRows");h.j.uja=this.J("contextMenu/moveToColumns");h.j.vja=this.J("contextMenu/moveToReportFilters");h.j.xja=this.J("contextMenu/numberFormatting");h.j.lja=this.J("contextMenu/conditionalFormatting");h.j.Aja=this.J("contextMenu/showProperty");
h.j.sja=this.J("contextMenu/hideProperty");h.j.rja=this.J("contextMenu/groupMembers");h.j.Gja=this.J("contextMenu/ungroupMembers");h.j.Bja=this.J("contextMenu/showSubtotals");h.j.tja=this.J("contextMenu/hideSubtotals");h.j.Qk=this.J("date/year");h.j.Cs=this.J("date/quarter");h.j.Hg=this.J("date/month");h.j.hm=this.J("date/day");h.j.T7=[this.J("quarters/q1"),this.J("quarters/q2"),this.J("quarters/q3"),this.J("quarters/q4")];h.j.Vq=[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.Zw=[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.oA=[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.pA=[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")];x.gh.nIa(h.j.oA,h.j.pA);x.gh.zIa(h.j.Vq,
h.j.Zw)};d.prototype.J=function(b){if(!f.v(this.TG)){var a=this.TG.J(b);if(!f.v(a))return a}return f.v(this.IS)||(a=this.IS.J(b),f.v(a))?this.yt.J(b):a};d.prototype.reset=function(){this.TG=null;this.updateLabels()};d.prototype.load=function(b,a,c){var e=this;c=void 0===c?!1:c;"string"!==typeof b||f.ha(b)?(b instanceof Object?this.dfa(h.wO.tb(b),c):this.reset(),null!=a&&a(!0)):(null!==d.Gy&&(d.Gy.close(),d.Gy=null),d.Gy=new h.oma,d.Gy.load(x.hx.AG(b,!0),function(g){e.dfa(g,c);null!=a&&a(!0)},function(){null!=
a&&a(!1)}))};d.prototype.dfa=function(b,a){(void 0===a?0:a)?this.IS=b:this.TG=b;this.updateLabels()};d.prototype.fca=function(){var b=new h.wO;b.jD();b.merge(this.IS);this.TG&&b.merge(this.TG);return b.La().toolbar};d.Gy=null;h.Xz=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.labels={}}d.prototype.J=function(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};d.prototype.Za=function(b,a){var c=this.labels;b=b.split("/");for(var e=0;e<b.length-1;e++)c=c[b[e]];c[b[b.length-1]]=a};d.prototype.jD=function(){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"};d.prototype.merge=function(b){f.v(b)||(this.Qea(b.labels,this.labels),this.validate())};d.prototype.La=function(){return this.labels};d.tb=function(b){var a=new d;a.labels=b;return a};d.prototype.Qea=function(b,a){if(!f.v(b)&&!f.v(a)&&b instanceof Object)for(var c in b){var e=b[c];f.v(e)||"function"!==typeof e&&("string"===typeof e?a[c]=e:e instanceof
Object&&this.Qea(e,a[c]))}};d.prototype.validate=function(){f.v(this.labels)||(f.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),f.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),f.v(this.labels.toolbar.charts_bar)||(this.labels.toolbar.charts_column=this.labels.toolbar.charts_bar,
delete this.labels.toolbar.charts_bar),f.v(this.labels.toolbar.add_condition)||(f.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.wO=d})(k.A||(k.A={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(c,e){e=void 0===e?"":e;var g=y.da.call(this,a.Qu)||this;g.errorMessage="";g.message=c;g.errorMessage=e;return g}function b(c){var e=y.da.call(this,a.kn)||this;e.bb=c;return e}function a(){}a.kn="load";a.TI="loading_report";a.Qu="fail";a.Yq="cancel";h.lh=a;u(b,y.da);h.Y7=b;u(d,y.da);h.VO=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.JSON="json";b.aa="xml";b.Fva="report.";b.SU=null;return b}u(d,y.Fc);d.prototype.open=function(){var b=this;this.uq=new h.tma;this.uq.N(h.lh.TI,function(){return b.Q2()});this.uq.N(h.lh.kn,function(a){return b.OC(a)});this.uq.N(h.lh.Qu,function(a){return b.rM(a)});this.uq.N(h.lh.Yq,function(){return b.qM()});this.uq.load()};d.prototype.load=function(b,a){var c=this;f.za(!0,k.A.j.iE);this.vu=new h.xpa;this.vu.N(h.lh.kn,
function(e){return c.OC(e)});this.vu.N(h.lh.Qu,function(e){return c.rM(e)});this.vu.load(x.hx.Ura(b),a)};d.prototype.cancel=function(){this.uq&&(this.uq.Od(h.lh.kn),this.uq.Od(h.lh.Qu),this.uq=null);this.vu&&(this.vu.Od(h.lh.kn),this.vu.Od(h.lh.Qu),this.vu=null);this.Od(h.lh.kn);this.Od(h.lh.Qu);this.Od(h.lh.TI);this.Od(h.lh.Yq)};d.prototype.OC=function(b){this.Da(new h.Y7(b.bb))};d.prototype.rM=function(b){f.Va(b.message+b.errorMessage,k.A.j.ya,f.rb.ya);this.Wa(h.lh.Qu)};d.prototype.Q2=function(){this.Wa(h.lh.TI)};
d.prototype.qM=function(){this.Wa(h.lh.Yq)};d.prototype.save=function(b,a,c,e,g,l){var m=this;this.SU=c;c=!1;var n="string"==typeof b?b:null;a=void 0===a?null:a;var p=e,t=this.JSON;e=void 0===g?!1:g;var r=null;b instanceof Object&&(b.hasOwnProperty("filename")&&(n=b.filename),b.hasOwnProperty("destination")&&(a=b.destination),b.hasOwnProperty("url")&&(p=b.url),b.hasOwnProperty("reportType")&&(t=b.reportType),b.hasOwnProperty("embedData")&&(e=b.embedData),b.hasOwnProperty("requestHeaders")&&(r=b.requestHeaders));
if(null==n||""==n)n=this.Fva,n=t==this.aa?n+this.aa:n+this.JSON;l.connectionInfo.Ba!=f.u.i.oa.xh&&l.connectionInfo.Ba!=f.u.i.oa.Pp||!(l.connectionInfo instanceof f.u.local.LocalConnectionInfo&&l.connectionInfo.browseForFile||l.connectionInfo instanceof f.u.local.csv.OCSVConnectionInfo&&l.connectionInfo.embedded||e)||l.options.R("gridType")==f.K.X.ie.ih||(b=new f.u.local.json.JSONConnectionInfo,l.connectionInfo=b,c=!0);a=null==a?h.lo.aO:a.toLowerCase();switch(a){case h.lo.eX:c?(new f.u.local.json.BW).getData(function(v){l.connectionInfo.data=
v;m.UU(p,n,l,t,r)}):this.UU(p,n,l,t,r);break;case h.lo.eA:c?(new f.u.local.json.BW).getData(function(v){l.connectionInfo.data=v;m.FB(l.La())}):this.FB(l.La());break;default:c?(new f.u.local.json.BW).getData(function(v){l.connectionInfo.data=v;m.JM(n,l,t)}):this.JM(n,l,t)}};d.prototype.FB=function(b,a){null!==this.SU&&this.SU(void 0===b?null:b,void 0===a?null:a)};d.prototype.Naa=function(b,a,c){c=void 0===c?!1:c;switch(b){case this.JSON:b=JSON.stringify(a.La(),null,4);break;case this.aa:b=D.aa.Cc(a.co(),
!0);break;default:b=JSON.stringify(a.La(),null,4)}c&&(b=encodeURIComponent(b));return b};d.prototype.JM=function(b,a,c){var e=[this.Naa(c,a)];try{var g=this;f.Va(k.A.j.kna,k.A.j.fm,f.rb.fm,[k.A.j.n5,k.A.j.Jk],[function(){D.uga(new Blob(e,{type:"text/js;charset=utf-8"}),b);g.FB({report:a.La()})},function(){g.FB(null,{message:k.A.j.JW})}])}catch(l){f.Va(k.A.j.JW,k.A.j.ya,f.rb.ya),this.FB(null,{message:k.A.j.JW})}};d.prototype.UU=function(b,a,c,e,g){var l=this;f.ha(b)&&f.Va("Report cannot be saved. Save report url is empty.",
k.A.j.t8,f.rb.ya);var m=new D.wpa;m.data.name=a;m.data.report=this.Naa(e,c,!0);m.data.type=e;a=new D.Qi;a.data=m.toString();a.contentType=D.Iz.Gia;a.Dq=D.Fs.Pu;a.N(y.da.Jc,function(n){return l.oFa(n,c.La())});a.N(y.da.ya,function(n){return l.Mb(n)});a.vh(g);this.E4=a;a.load(b);f.za(!0,k.A.j.A7)};d.Ofa=function(b,a){a=void 0===a?null:a;var 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==
y.da.ya&&(c.message=k.A.j.DO);b.type!=y.da.ya&&null!=a&&(c.report=a);return c};d.prototype.oFa=function(b,a){f.za(!1);this.FB(d.Ofa(b,a))};d.prototype.Mb=function(b){f.za(!1);b=d.Ofa(b);var a=b.hasOwnProperty("response")?k.Nb.validate(b.response):"";a=700<a.length?a.substr(0,700):a;f.Va(f.O.bind(b.message,a),k.A.j.ya,f.rb.ya);this.FB(null,b)};d.prototype.dispose=function(){this.SU=null;this.uq&&this.uq.dispose();this.vu&&this.vu.dispose();this.E4&&this.E4.dispose();this.E4=this.vu=this.uq=null};h.voa=
d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){this.withDefaults=!1;this.connectionInfo=new f.u.I.Pz;this.slice=new h.SliceValueObject;this.options=new k.B.Qp;this.formats=[];this.conditions=[];this.customFields=[];this.Fw=new h.Wu;this.labels={};this.localization=null;this.creationDate=this.version=""}b.tb=function(a){if(null==a)return null;a=b.wl(a);var c=new b;c.connectionInfo=f.u.I.ConnectionInfo.tb(a.connectionInfo?a.connectionInfo:a);c.options=k.B.Qp.tb(a.options?a.options:
a);c.slice=h.SliceValueObject.tb(a.slice?a.slice:a,c.connectionInfo,c.options.R("gridType")==f.K.X.ie.ih);null!=a.formats&&a.formats.length&&(c.formats=a.formats);null!=a.conditions&&a.conditions.length&&(c.conditions=a.conditions);null!=a.customFields&&(c.customFields=a.customFields);c.Fw=h.Wu.tb(a.tableSizes);null!=a.localization&&(c.localization=a.localization);null!=c.localization&&null!=c.localization.toolbar&&(null!=c.localization.toolbar.charts_bar_stack&&(c.localization.toolbar.charts_stacked_column=
c.localization.toolbar.charts_bar_stack,delete c.localization.toolbar.charts_bar_stack),null!=c.localization.toolbar.charts_bar_line&&(c.localization.toolbar.charts_column_line=c.localization.toolbar.charts_bar_line,delete c.localization.toolbar.charts_bar_line),null!=c.localization.toolbar.charts_bar&&(c.localization.toolbar.charts_column=c.localization.toolbar.charts_bar,delete c.localization.toolbar.charts_bar));null!=a.version&&0<a.version.length&&(c.version=a.version);null!=a.creationDate&&0<
a.creationDate.length&&(c.creationDate=a.creationDate);return c};b.Qj=function(a){var c=new b;if(null==a)return c;c.connectionInfo=f.u.I.ConnectionInfo.Qj(a);c.slice=h.SliceValueObject.Qj(a);c.options=k.B.Qp.Qj(a);c.formats=b.oxa(a.find("format"));c.conditions=b.zua(a.find("conditions condition"));c.Fw=h.Wu.Qj(a);c.customFields=b.pva(a.find("customFields").children());c.labels=b.LBa(a.find("labels"));c.localization=b.hCa(a.find("params"));return c};b.pva=function(a){for(var c=[],e=0;e<a.length;e++){var g=
{};g.name=a[e].attr("name");g.value=a[e].attr("value");c.push(g)}return c};b.oxa=function(a){for(var c=[],e=0;e<a.length;e++){var g=b.lxa(a[e]);c.push(g)}return c};b.lxa=function(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=f.O.Rc(a.find("param[name=isPercent]").text()));
return c};b.LBa=function(a){var c={};if(0<a.length){for(var e=a.find("hierarchies").children(),g=0;g<e.length;g++){var l=e[g].attr("name");c[l]=e[g].text()}a=a.find("measures").children();for(g=0;g<a.length;g++)l=a[g].attr("name"),c[l]=a[g].text()}return c};b.zua=function(a){for(var c=[],e=0;e<a.length;e++){var g=b.yua(a[e]);c.push(g)}return c};b.yua=function(a){var c={};c.id=f.O.aL();for(var e=0;e<a.childNodes.length;e++)if(a.childNodes[e]instanceof CDATASection){c.formula=a.childNodes[e].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=f.O.Rc(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};b.hCa=function(a){if(0!=
a.find("param[name=localization]").length)return a.find("param[name=localization]").text()};b.prototype.iua=function(){for(var a=D.aa.create("<labels/>"),c=f.u.Na.U().I,e,g=D.aa.create("<hierarchies/>"),l=c.rc(),m=0;m<l.length;m++){var n=l.ea(m);n.I0&&(e=D.aa.create("<label/>").text(n.label),e.attr("name",n.uniqueName),g.append(e))}0==g.ob()&&a.append(g);g=D.aa.create("<measures/>");c=c.measures;for(m=0;m<c.length;m++)l=c.ea(m),l.I0&&(e=D.aa.create("<label/>").text(l.label),e.attr("name",l.uniqueName),
g.append(e));0==g.ob()&&a.append(g);return a};b.prototype.Qta=function(){for(var a=D.aa.create("<conditions/>"),c=0;c<this.conditions.length;c++){var e=this.conditions[c],g=D.aa.create("<condition/>");g.append(D.aa.Bh(e.formula));-1<e.row&&g.attr("row",e.row);-1<e.column&&g.attr("column",e.column);-1<e.isTotal&&g.attr("isTotal",1==e.isTotal?"true":"false");e.measure&&0<e.measure.length&&g.attr("measure",e.measure);e.hierarchy&&0<e.hierarchy.length&&g.attr("hierarchy",e.hierarchy);e.member&&0<e.member.length&&
g.attr("member",e.member);if(e.format&&!x.Mc.og(e.format)){var l=D.aa.create("<trueStyle/>");l.append(D.aa.Bh(JSON.stringify(e.format)));g.append(l)}a.append(g)}return a};b.prototype.cua=function(a){var c=D.aa.create("<format/>");c.attr("name",a.name);a.hasOwnProperty("decimalPlaces")&&c.append(D.aa.create("<param/>").attr("name","decimalPlaces").text(a.decimalPlaces));a.hasOwnProperty("maxDecimalPlaces")&&c.append(D.aa.create("<param/>").attr("name","maxDecimalPlaces").text(a.maxDecimalPlaces));
a.hasOwnProperty("maxSymbols")&&c.append(D.aa.create("<param/>").attr("name","maxSymbols").text(a.maxSymbols));a.hasOwnProperty("currencySymbolAlign")&&c.append(D.aa.create("<param/>").attr("name","currencySymbolAlign").text(a.currencySymbolAlign));a.hasOwnProperty("thousandsSeparator")&&c.append(D.aa.create("<param/>").attr("name","thousandsSeparator").append(D.aa.Bh(a.thousandsSeparator)));a.hasOwnProperty("decimalSeparator")&&c.append(D.aa.create("<param/>").attr("name","decimalSeparator").append(D.aa.Bh(a.decimalSeparator)));
a.hasOwnProperty("currencySymbol")&&c.append(D.aa.create("<param/>").attr("name","currencySymbol").append(D.aa.Bh(a.currencySymbol)));a.hasOwnProperty("nullValue")&&c.append(D.aa.create("<param/>").attr("name","nullValue").append(D.aa.Bh(a.nullValue)));a.hasOwnProperty("infinityValue")&&c.append(D.aa.create("<param/>").attr("name","infinityValue").append(D.aa.Bh(a.infinityValue)));a.hasOwnProperty("divideByZeroValue")&&c.append(D.aa.create("<param/>").attr("name","divideByZeroValue").append(D.aa.Bh(a.divideByZeroValue)));
a.hasOwnProperty("textAlign")&&c.append(D.aa.create("<param/>").attr("name","textAlign").text(a.textAlign));a.hasOwnProperty("isPercent")&&c.append(D.aa.create("<param/>").attr("name","isPercent").text(a.isPercent));return c};b.prototype.co=function(){var a=D.aa.create("<config/>"),c=this.connectionInfo.co(this.withDefaults);0==c.ob()&&a.append(c);c=this.slice.co(this.withDefaults);0==c.ob()&&a.append(c);c=this.Fw.co();0==c.ob()&&a.append(c);c=this.iua();0==c.ob()&&a.append(c);c=this.options.co();
"string"==typeof this.localization&&c.append(D.aa.create("<param/>").attr("name","localization").append(D.aa.Bh(this.localization)));a.append(c);c=this.Qta();0==c.ob()&&a.append(c);if(null!=this.formats){c=!k.B.C.L3&&20<this.formats.length;for(var e=0;e<this.formats.length;e++){var g=this.formats[e];(""==g.name||this.slice.Jm.Bb(g.name)&&(!c||this.slice.Jm.getItem(g.name)))&&a.append(this.cua(g))}}return a};b.prototype.La=function(){var a={},c=this.connectionInfo.La(this.withDefaults);x.Mc.og(c)||
(a.dataSource=c);c=this.slice.La(this.withDefaults,this.connectionInfo.mapping);x.Mc.og(c)||(a.slice=c);c=this.options.La();x.Mc.og(c)||(a.options=c);c=this.Pta();0<c.length&&(a.conditions=c);if(null!=this.formats&&0!=this.formats.length){c=[];for(var e=!k.B.C.L3&&20<this.formats.length,g=0;g<this.formats.length;g++){var l=this.formats[g];(""==l.name||this.slice.Jm.Bb(l.name)&&(!e||this.slice.Jm.getItem(l.name)))&&c.push(l)}a.formats=c}c=this.Fw.La(this.slice);x.Mc.og(c)||(a.tableSizes=c);null!=this.customFields&&
0!=this.customFields.length&&(a.customFields=this.customFields);null!=this.localization&&""!=this.localization&&(a.localization=this.localization);null!=this.version&&0<this.version.length&&(a.version=this.version);null!=this.creationDate&&0<this.creationDate.length&&(a.creationDate=this.creationDate);return a};b.prototype.Pta=function(){for(var a=[],c=0;c<this.conditions.length;c++){var e=this.conditions[c],g={};g.formula=e.formula;-1<e.row&&(g.row=e.row);-1<e.column&&(g.column=e.column);-1<e.isTotal&&
(g.isTotal=1==e.isTotal?!0:!1);e.measure&&0<e.measure.length&&(g.measure=e.measure);e.aggregation&&0<e.aggregation.length&&"none"!==e.aggregation&&(g.aggregation=e.aggregation);e.hierarchy&&0<e.hierarchy.length&&(g.hierarchy=e.hierarchy);e.member&&0<e.member.length&&(g.member=e.member);e.format&&!x.Mc.og(e.format)&&(g.format=e.format);a.push(g)}return a};b.wl=function(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=f.u.I.ConnectionInfo.wl(a.connectionInfo?a.connectionInfo:a);c.slice=h.SliceValueObject.wl(a.slice?a.slice:a);c.options=k.B.Qp.wl(a.options?a.options:a);c.tableSizes=h.Wu.wl(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};b.prototype.merge=function(a){if(f.v(a))return this;a=b.wl(a);var c=b.wl(this),e;for(e in a)a.hasOwnProperty(e)&&("connectionInfo"==e?f.u.I.ConnectionInfo.tb(a.connectionInfo).ob||(c[e]=a[e]):"options"==e?(this.options.IC(a[e]),
c[e]=k.B.Qp.wl(this.options)):c[e]=a[e]);return b.tb(c)};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return f.v(this.connectionInfo)||this.connectionInfo.ob}}});h.ReportValueObject=b;d.customFields=[];h.XH=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return y.Fc.apply(this,arguments)||this}u(d,y.Fc);d.prototype.Taa=function(b){b?this.Da(new h.Y7(b)):this.Da(new h.VO(k.A.j.u7))};d.prototype.zfa=function(b){try{var a=-1;if(-1<(a=b.indexOf("</config>"))){var c=D.aa.create(b.substring(0,a+9));return c?h.ReportValueObject.Qj(c):null}a=b.indexOf("/**----**");return JSON.parse(-1<a?b.substring(0,a):b)}catch(e){return console.error(e),null}};d.prototype.ES=function(b){var a=new f.Sq(new ArrayBuffer(0),
0,f.Sq.RH);a.jKa(b);return a.byteLength};h.WO=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.type=f.u.i.kb.NONE;this.Ida=!1;this.Mf=[];this.lk=[];this.IA=[];this.l9=this.HE=this.QE=!1;this.xc=b}d.prototype.clear=function(){this.pB();this.yta()};d.prototype.pB=function(){this.type=f.u.i.kb.NONE;this.query=this.measure=null;this.IA=[]};d.prototype.yta=function(){this.Mf=[];this.lk=[];this.HE=this.QE=!1;this.UA=[];this.mQ=!1};d.prototype.pj=function(b){if(void 0===b?0:b)return this.QE&&(this.lk=[],0<this.Mf.length&&(this.lk=this.oaa(this.Mf)),
this.QE=!1),this.lk;this.HE&&(this.Mf=[],0<this.lk.length&&(this.Mf=this.oaa(this.lk)),this.HE=!1);return this.Mf};d.prototype.yIa=function(b,a){a=void 0===a?!1:a;var c=this.xc.ra.ea(1);c=this.xc.du(c.uniqueName);a?(this.j1(b,c)&&(b=[]),this.HE=!0,this.lk=b,this.Mf=[]):(this.j1(b,c)&&(b=[]),this.QE=!0,this.Mf=b,this.lk=[])};d.prototype.clone=function(){var b=new d(this.xc);b.type=this.type;b.measure=this.measure;b.query=this.query&&this.query.clone?this.query.clone():x.Mc.Vi(this.query);f.v(this.Mf)||
(b.Mf=this.Mf.slice());b.QE=this.QE;f.v(this.lk)||(b.lk=this.lk.slice());b.HE=this.HE;f.v(this.UA)||(b.UA=this.UA.slice());b.mQ=this.mQ;return b};d.prototype.La=function(){var b={};this.$h&&(this.vda?this.b1?b.exclude=this.xc.Fr(this.pj(!0)):b.members=this.xc.Fr(this.pj()):this.pj().length<this.xc.vi/2?b.members=this.xc.Fr(this.pj()):b.exclude=this.xc.Fr(this.pj(!0)));!f.v(this.measure)&&this.ai&&(b.measure=this.measure.La());!f.v(this.query)&&this.wy&&(b.query=this.query.La());0<this.IA.length&&
this.wy&&(b.include=this.xc.Fr(this.IA));return b};d.tb=function(b,a,c){c=void 0===c?!1:c;if(f.v(b))return null;d.Jsa(b);var e=new d(a);e.vda=c;e.type=d.Mva(b,a);e.type==f.u.i.kb.nn?d.CGa(b,e):e.type==f.u.i.kb.Oa?d.cGa(b,e,a.getTimezoneOffset()):e.type==f.u.i.kb.gk?d.oGa(b,e):e.type==f.u.i.kb.fb?d.vGa(b,e):e.type==f.u.i.kb.Yb&&d.AGa(b,e);d.uGa(b,e,a);!f.v(b.include)&&e.wy&&(e.IA=d.f3(b.include,a));return e};d.Jsa=function(b){if("top"==b.type||"bottom"==b.type){var a={};b.query=(a[b.type]=b.quantity,
a);b.type=f.u.i.kb.nn;delete b.quantity}!f.v(b.members)&&b.negation&&(b.exclude=b.members,delete b.members,delete b.negation)};d.Mva=function(b,a){return f.v(b.type)?f.v(b.query)?f.u.i.kb.NONE:f.v(b.measure)?d.tS(a):f.u.i.kb.nn:f.u.i.kb.validate(b.type)};d.f3=function(b,a){if(f.v(b))return null;for(var c=[],e=0;e<b.length;e++)if("number"==typeof b[e]&&-1<b[e])c.push(b[e]);else{var g="string"==typeof b[e]?b[e]:b[e].uniqueName;g=f.u.me.Or(g);g=a.qy(g);-1<g&&c.push(g)}return c};d.tS=function(b){if(f.u.Na.U().fa.Hc&&
f.u.Na.U().fa.Ba!==f.u.i.oa.Nc&&f.u.Na.U().fa.Ba!==f.u.i.oa.API&&f.u.Na.U().fa.Ba!==f.u.i.oa.Gf)return f.u.i.kb.NONE;if(f.u.Na.U().fa.Ba===f.u.i.oa.API||f.u.Na.U().fa.Ba===f.u.i.oa.Gf)return b.type===f.u.i.Gc.Op?f.u.i.kb.fb:b.type===f.u.i.Gc.Oa?f.u.i.kb.Oa:f.u.i.kb.gk;var a=b.ra.ea(1).type;return b.type===f.u.i.Gc.Oa?2!=b.ra.length||a!==f.u.i.eb.Qk&&a!==f.u.i.eb.Hg&&a!==f.u.i.eb.om?f.u.i.kb.Oa:f.u.i.kb.NONE:a===f.u.i.eb.Sc||f.u.Na.U().fa.Hc?f.u.i.kb.gk:a===f.u.i.eb.fb?f.u.i.kb.fb:a===f.u.i.eb.Yb?
f.u.i.kb.Yb:f.u.i.kb.NONE};d.uGa=function(b,a,c){var e=b.members||b.exclude;if(!f.v(e)){var g=[],l=[];b=f.v(b.members);for(var m={},n=0;n<e.length;m={KH:m.KH},n++)if("number"==typeof e[n]&&-1<e[n])g.push(e[n]);else{var p="string"===typeof e[n]?e[n]:e[n].uniqueName;p=f.u.me.Or(p);l.push(p);m.KH=c.jga(p);-1<m.KH&&!g.some(function(t){return function(r){return r==t.KH}}(m))?g.push(m.KH):c.ce&&(c.ce=!1,console.warn("Error in predefined filter or members have not been loaded yet: "+p))}f.u.Na.U().fa.Hc&&
(a.zM=b,a.Zl=l.length>g.length?l:[]);a.yIa(g,b)}};d.CGa=function(b,a){a.query=h.zl.tb(b.query,f.u.i.kb.nn);a.measure="string"==typeof b.measure?new h.Ig(f.u.me.zg(b.measure)):h.Ig.tb(b.measure);if(f.v(a.query)||f.v(a.measure))a.type=f.u.i.kb.NONE,a.measure=null};d.cGa=function(b,a,c){a.query=h.zl.tb(b.query,f.u.i.kb.Oa,c);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.oGa=function(b,a){a.query=h.zl.tb(b.query,f.u.i.kb.gk);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.vGa=function(b,a){a.query=h.zl.tb(b.query,
f.u.i.kb.fb);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.AGa=function(b,a){a.query=h.zl.tb(b.query,f.u.i.kb.Yb);f.v(a.query)&&(a.type=f.u.i.kb.NONE)};d.prototype.j1=function(b,a){var c=this;return 0==a.length?!1:a.reduce(function(e,g){if(b.some(function(m){return m==g}))return e;var l=c.xc.va(g).children;return e&&c.j1(b,l)},!0)};d.prototype.oaa=function(b){for(var a=new f.aE,c=1;c<this.xc.Un;c++)a.add(c);for(c=0;c<b.length;c++){var e=this.xc.va(b[c]);a.delete(e.ordinal);this.MU(a,e);this.ega(a,e.parent)}this.M$(a,
this.xc.yd);this.xc.$t&&this.jHa(a);return a.Ic()};d.prototype.jHa=function(b){for(var a=b.size-1;0<=a;a--){var c=this.xc.va(b[a]);c.parent||b.delete(c.ordinal)}};d.prototype.M$=function(b,a){for(var c=0;c<a.children.length;c++){var e=this.xc.va(a.children[c]);0<e.children.length&&(b.has(e.ordinal)?b.has(e.children[0])&&this.MU(b,e):this.M$(b,e))}};d.prototype.MU=function(b,a){if(a){a=a.children;for(var c=0;c<a.length;c++)b.delete(a[c]),this.MU(b,this.xc.va(a[c]))}};d.prototype.ega=function(b,a){a&&
!a.Wb&&(b.delete(a.ordinal),a.parent&&this.ega(b,a.parent))};d.prototype.Swa=function(){var b=null;this.uy&&(b=this.Pwa(this.query));this.$v&&(b=this.Vwa(this.query));this.IL&&(b=this.Twa(this.query));this.SS&&(b=this.Wwa(this.query));if(!f.v(b)&&0<this.IA.length)for(var a=0;a<this.IA.length;a++)b.add(this.IA[a]);if(!f.v(b)&&0<this.lk.length)for(a=0;a<this.lk.length;a++)b.delete(this.lk[a]),this.MU(b,this.xc.va(this.lk[a]));return b.Ic()};d.prototype.Pwa=function(b){b=b.kR(this.xc.getTimezoneOffset());
var a=new f.aE,c=0<this.Mf.length,e=2<this.xc.ra.length,g=c?this.Mf:null;c&&e&&(g=this.Dca(g));for(var l=c?g.length:this.xc.vi,m=0;m<l;m++){var n=c?g[m]:m;if(e){var p=this.xc.va(n);if(p.level.type===f.u.i.eb.Qk||p.level.type===f.u.i.eb.Cs||p.level.type===f.u.i.eb.Hg)continue}b.ta===f.u.i.wb.an?this.N1(this.xc.aC(n).toLowerCase(),b)&&a.add(n):this.yCa(this.xc.qL(n),b)&&a.add(n)}return a};d.prototype.Vwa=function(b){var a=new f.aE,c=this.xc.nc?this.xc.nc.sb:1,e=0<this.Mf.length,g=2<this.xc.ra.length,
l=e?this.Mf:null;e&&g&&(l=this.Dca(l));for(var m=e?l.length:this.xc.vi,n=0;n<m;n++){var p=e?l[n]:n;1<c&&g&&this.xc.va(e?l[n]:n).level.sb<c||this.N1(this.xc.aC(p).toLowerCase(),b)&&a.add(p)}return a};d.prototype.Twa=function(b){for(var a=new f.aE,c=0<this.Mf.length,e=c?this.Mf:null,g=c?e.length:this.xc.vi,l=0;l<g;l++){var m=c?e[l]:l;this.WT(this.xc.qL(m),b)&&a.add(m)}return a};d.prototype.Wwa=function(b){b=b.Dua();for(var a=new f.aE,c=0<this.Mf.length,e=c?this.Mf:null,g=c?e.length:this.xc.vi,l=0;l<
g;l++){var m=c?e[l]:l;b.ta==f.u.i.wb.an?this.N1(this.xc.aC(m).toLowerCase(),b)&&a.add(m):this.WT(this.xc.qL(m),b)&&a.add(m)}return a};d.prototype.N1=function(b,a){if(f.v(a.value))return!1;if(a.ta===f.u.i.wb.EQUAL)return b===a.value.toLowerCase();if(a.ta===f.u.i.wb.If)return b!==a.value.toLowerCase();if(a.ta===f.u.i.wb.LD)return 0==b.indexOf(a.value.toLowerCase());if(a.ta===f.u.i.wb.$z)return 0!=b.indexOf(a.value.toLowerCase());if(a.ta===f.u.i.wb.Mz){var c=b.lastIndexOf(a.value.toLowerCase());return 0<=
c&&c+a.value.length==b.length}if(a.ta===f.u.i.wb.bA)return c=b.lastIndexOf(a.value.toLowerCase()),0>c||c+a.value.length!=b.length;if(a.ta===f.u.i.wb.an)return c=b.indexOf(a.value.toLowerCase()),0<=c;if(a.ta===f.u.i.wb.aA)return c=b.indexOf(a.value.toLowerCase()),0>c;if(a.ta===f.u.i.wb.GREATER)return b>a.value.toLowerCase();if(a.ta===f.u.i.wb.Kk)return b>=a.value.toLowerCase();if(a.ta===f.u.i.wb.LESS)return b<a.value.toLowerCase();if(a.ta===f.u.i.wb.Lk)return b<=a.value.toLowerCase();if(a.ta===f.u.i.wb.Sg)return c=
a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b>=c&&b<=a:b>=a&&b<=c;if(a.ta===f.u.i.wb.Jg)return c=a.value[0].toLowerCase(),a=a.value[1].toLowerCase(),c<a?b<c||b>a:b<a||b>c};d.prototype.WT=function(b,a){if(f.v(a.value))return!1;if(a.ta===f.u.i.vg.EQUAL)return b===a.value;if(a.ta===f.u.i.vg.If)return b!==a.value;if(a.ta===f.u.i.vg.GREATER)return b>a.value;if(a.ta===f.u.i.vg.Kk)return b>=a.value;if(a.ta===f.u.i.vg.LESS)return b<a.value;if(a.ta===f.u.i.vg.Lk)return b<=a.value;if(a.ta===f.u.i.vg.Sg){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.ta===f.u.i.vg.Jg)return c=Math.min(a.value[0],a.value[1]),a=Math.max(a.value[0],a.value[1]),b<c||b>a};d.prototype.yCa=function(b,a){if(f.v(a.value))return!1;if(a.ta===f.u.i.Ub.JD){var c=a.value.getTime();return b<c}if(a.ta===f.u.i.Ub.KD)return c=a.value.getTime(),b<c+864E5;if(a.ta===f.u.i.Ub.FD)return c=a.value.getTime(),b>=c+864E5;if(a.ta===f.u.i.Ub.GD)return c=a.value.getTime(),b>=c;if(a.ta===f.u.i.Ub.Sg)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.ta===f.u.i.Ub.Jg)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};d.prototype.Iv=function(){if(0<this.Zl.length){for(var b,a=0;a<this.Zl.length;a++){if(this.xc.type!==f.u.i.Gc.Oa||this.xc.ra.ea(1).type!==f.u.i.eb.Oa&&this.xc.ra.ea(1).type!==f.u.i.eb.Dc)b=this.xc.Db(this.Zl[a]);else{if(k.B.C.zr&&"null"===
this.Zl[a])b=null;else if(8>this.Zl[a].length||/\D+/.test(this.Zl[a].slice(1))){b=this.xc.ra.ea(1).type===f.u.i.eb.Dc?k.B.C.Yk:k.B.C.mq;b=this.xc.mapping.Fa(this.xc.uniqueName,"format",b);var c=new f.Gg(this.Zl[a],{yx:!1,format:b});c.dj(x.gh.Sf(b));b=c.getTime()}else b=parseInt(this.Zl[a]);b=this.xc.Ht(b)}null!=b&&(this.zM?this.lk.push(b.ordinal):this.Mf.push(b.ordinal))}this.Zl=[]}};d.prototype.Dca=function(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c]),this.Vfa(a,this.xc.va(b[c]));return a};d.prototype.Vfa=
function(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.Vfa(b,this.xc.va(a[c]))}};q.Object.defineProperties(d.prototype,{b1:{configurable:!0,enumerable:!0,get:function(){return 0<this.lk.length}},$g:{configurable:!0,enumerable:!0,get:function(){return this.$h||this.ai||this.uy||this.$v||this.IL||this.SS}},$h:{configurable:!0,enumerable:!0,get:function(){return 0<this.Mf.length||0<this.lk.length}},wy:{configurable:!0,enumerable:!0,get:function(){return this.ai||
this.uy||this.$v||this.IL||this.SS}},ai:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.nn}},uy:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.Oa}},$v:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.gk}},IL:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.fb}},SS:{configurable:!0,enumerable:!0,get:function(){return this.type===f.u.i.kb.Yb}},vda:{configurable:!0,enumerable:!0,get:function(){return this.l9},
set:function(b){this.l9=b}},Zl:{configurable:!0,enumerable:!0,set:function(b){this.UA=b},get:function(){null==this.UA&&(this.UA=[]);return this.UA}},zM:{configurable:!0,enumerable:!0,get:function(){return this.mQ},set:function(b){this.mQ=b}}});h.Tz=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){this.ta=void 0===b?null:b;this.value=void 0===a?null:a}d.prototype.clone=function(){return new d(this.ta,this.value)};d.tb=function(b,a,c){c=void 0===c?null:c;if(f.v(b))return null;var e=null;a==f.u.i.kb.nn?(f.u.i.tc.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,parseFloat(b[g])),!0}),f.u.i.tc.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==f.u.i.kb.Oa?(f.u.i.Ub.Qh.some(function(g){if(!f.v(b[g])){var l=
new f.Gg(b[g]);l.dj(c,!1);e=new d(g,l);return!0}}),f.u.i.Ub.rf.some(function(g){if(!f.v(b[g])){var l=new f.Gg(b[g][0]);l.dj(c,!1);var m=new f.Gg(b[g][1]);m.dj(c,!1);if(l&&m)return e=new d(g,l.getTime()<m.getTime()?[l,m]:[m,l]),e.value[1]=e.value[1].B4("day",k.B.C.iy),!0}}),f.u.i.Ub.$w.some(function(g){if(f.u.i.Kz.Cg(b[g]))return e=new d(g,b[g].toLowerCase()),!0}),f.v(b[f.u.i.wb.an])||(e=new d(f.u.i.wb.an,b[f.u.i.wb.an]))):a==f.u.i.kb.gk?(f.u.i.wb.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,
b[g]),!0}),f.u.i.wb.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[b[g][0],b[g][1]]),!0})):a==f.u.i.kb.fb?(f.u.i.vg.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,parseFloat(b[g])),!0}),f.u.i.vg.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[parseFloat(b[g][0]),parseFloat(b[g][1])]),!0})):a==f.u.i.kb.Yb&&(f.u.i.ik.Qh.some(function(g){if(!f.v(b[g]))return e=new d(g,b[g]),!0}),f.u.i.ik.rf.some(function(g){if(!f.v(b[g]))return e=new d(g,[b[g][0],b[g][1]]),!0}),f.v(b[f.u.i.wb.an])||(e=new d(f.u.i.wb.an,
b[f.u.i.wb.an])));return e};d.prototype.La=function(){var b=this.value;b instanceof f.Gg&&(b=b.format("yyyy-MM-dd"));Array.isArray(b)&&b[0]instanceof f.Gg&&(b=[b[0].format("yyyy-MM-dd"),b[1].format("yyyy-MM-dd")]);var a={};return a[this.ta]=b,a};d.prototype.kR=function(b){if(this.ta==f.u.i.Ub.EQUAL||this.ta==f.u.i.Ub.If){b=this.value.clone().Xm();var a=this.value.clone().mz();return new d(this.ta==f.u.i.Ub.If?f.u.i.Ub.Jg:f.u.i.Ub.Sg,[b,a])}return 0<=f.u.i.Ub.$w.indexOf(this.ta)&&f.u.i.Kz.Cg(this.value)?
(b=(new f.Gg).dj(b),this.ta==f.u.i.Ub.MN?b.F4(this.value,k.B.C.iy):this.ta==f.u.i.Ub.KO?(b.B4(this.value,k.B.C.iy),b.setMilliseconds(1E3)):this.ta==f.u.i.Ub.tO&&(b.F4(this.value,k.B.C.iy),b.setMilliseconds(-1),b.F4(this.value,k.B.C.iy)),a=b.clone().B4(this.value,k.B.C.iy),new d(f.u.i.Ub.Sg,[b,a])):this};d.prototype.Dua=function(){return 0<=f.u.i.ik.Qh.indexOf(this.ta)?new d(this.ta,this.D4(this.value)):0<=f.u.i.ik.rf.indexOf(this.ta)?new d(this.ta,[this.D4(this.value[0]),this.D4(this.value[1])]):
this};d.prototype.D4=function(b){var a=b.match(/[s|m|h|d]$/);if(!f.v(a)){var 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.zl=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.WO.call(this)||this;b.r_="\x3c!--";b.gba="/**----**";return b}u(d,h.WO);d.prototype.load=function(b,a){var c=this;this.url=b;this.ma=new D.Qi;this.ma.dataType=D.Jz.lA;this.ma.N(y.da.je,function(e){return c.lp(e)});this.ma.N(y.da.Jc,function(){return c.aj()});this.ma.N(y.da.ya,function(){return c.Mb()});this.ma.vh(a);this.ma.load(b)};d.prototype.lp=function(){var b=0;null!=this.ma&&-1<(b=this.ma.response.indexOf("</config>"))&&b+this.gba.length+
1<this.ma.response.length&&this.aj()};d.prototype.aj=function(){if(null!=this.ma){this.ma.Od(y.da.Jc);var b=this.zfa(this.ma.response);if(b instanceof h.ReportValueObject){if(b.connectionInfo instanceof f.u.local.csv.OCSVConnectionInfo&&1==b.connectionInfo.embedded){var a=b.connectionInfo;a.filename=this.ma.url;a.embeddedDataOffset=this.ES(this.ma.response.substring(0,this.ma.response.indexOf("</config>")+9)+"\n");var c=this.ma.response.indexOf(this.r_);a.isOCSV2Data=this.ma.response.substring(c,
c+this.r_.length)==this.r_;b.connectionInfo=a}}else f.v(b)||f.v(b.dataSource)?k.B.C.kia&&this.Mb(k.A.j.v7):1==b.dataSource.embedded&&(b.dataSource.filename=this.ma.url,b.dataSource.embeddedDataOffset=this.ES(this.ma.response.substring(0,this.ma.response.indexOf(this.gba))),b.dataSource.isOCSV2Data=!0);this.Taa(b);this.dispose()}};d.prototype.Mb=function(b){b=void 0===b?"":b;this.ma.Od(y.da.je);this.ma.Od(y.da.Jc);this.ma.Od(y.da.ya);if(f.ha(b)){var a="";null!=this.ma&&null!=this.ma.response&&""!=
this.ma.response&&(a=k.Nb.validate(this.ma.response),a=700<a.length?a.substr(0,700):a,a=f.O.bind(k.A.j.EO,a).replace(/'/g,""));b=k.Nb.valid(this.url)?this.url:k.Nb.validate(this.url);b=f.O.bind(k.A.j.EI,b);this.Da(new h.VO(b,a))}else this.Da(new h.VO(b));this.dispose()};d.prototype.dispose=function(){null!=this.ma&&(this.ma.Od(),this.ma.dispose(),this.ma=null)};h.xpa=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.WO.call(this)||this}u(d,h.WO);d.prototype.load=function(){var b=this;this.file=new D.L6;this.file.N(y.da.to,function(){return b.vFa()});this.file.N(y.da.Jc,function(){return b.aj()});this.file.N(y.da.SV,function(){return b.bU()});this.file.N(y.da.ya,function(){return b.Mb()});this.file.E$([".json",".js",".xml"])};d.prototype.vFa=function(){null!=this.file&&this.file.load(D.uoa.ARRAY_BUFFER)};d.prototype.aj=function(){try{this.Qva();var b=
new f.Sq(this.file.response,0,f.Sq.RH),a=b.IU(b.byteLength),c=this.zfa(a);if(c instanceof h.ReportValueObject){if(c.connectionInfo instanceof f.u.local.csv.OCSVConnectionInfo&&1==c.connectionInfo.embedded){var e=c.connectionInfo;e.embeddedDataToLoad=this.file.response;e.embeddedDataOffset=this.ES(a.substring(0,a.indexOf("</config>")+9)+"\n");c.connectionInfo=e}}else f.v(c)||f.v(c.dataSource)?k.B.C.kia&&this.Mb(k.A.j.v7):1==c.dataSource.embedded&&(c.dataSource.embeddedDataToLoad=this.file.response,
c.dataSource.embeddedDataOffset=this.ES(a.substring(0,a.indexOf("/**----**"))));this.Taa(c);this.dispose()}catch(g){console.error(g),this.Mb()}};d.prototype.Mb=function(b){b=void 0===b?"":b;f.ha(b)&&(b=f.O.bind(k.A.j.EI,""));this.Da(new h.VO(b));this.dispose()};d.prototype.Qva=function(){this.Wa(h.lh.TI)};d.prototype.bU=function(){this.Wa(h.lh.Yq);this.dispose()};d.prototype.dispose=function(){null!=this.file&&(this.file.Od(),this.file.dispose(),this.file=null)};h.tma=d})(k.bb||(k.bb={}))})(f.model||
(f.model={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.rz=function(b){return b==d.aO||b==d.eX||b==d.k5||b==d.eA};d.aO="file";d.eX="server";d.k5="binary";d.eA="plain";h.lo=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.rows=[];this.columns=[];this.pages=[];this.measures=[];this.rowSorting={};this.columnSorting={};this.expandedRows=[];this.expandedColumns=[];this.drilledRows=[];this.drilledColumns=[];this.drillAll=this.expandAll=!1;this.flatOrder=[];this.flatSort=null;this.drillThrough=[];this.memberProperties=[];this.Jm=new f.nb}function b(a,c,e){this.Cj=this.uniqueName="";this.index=-1;this.label="";void 0!=a&&(this.uniqueName=a);void 0!=c&&(this.$=c);void 0!=
e&&(this.index=e)}b.tb=function(a){if(null==a)return null;var c=new b;void 0!=a.uniqueName&&(c.uniqueName=a.uniqueName);void 0!=a.aggregation&&(c.$=a.aggregation);void 0!=a.index&&(c.index=a.index);void 0!=a.label&&(c.label=a.label);return c};b.prototype.La=function(){var a={};a.uniqueName=this.uniqueName;""!==this.$&&(a.aggregation=this.$);return a};q.Object.defineProperties(b.prototype,{$:{configurable:!0,enumerable:!0,get:function(){return this.Cj},set:function(a){f.u.i.ca.rz(a)&&(this.Cj=a)}}});
h.Ig=b;d.Rea=function(a){if(0<=d.$c(a.rows)){var c=d.$c(a.columns);0<=c&&(a.columns[c]=a.columns[0],a.columns.shift())}};d.$c=function(a){for(var c=0;c<a.length;c++)if("[Measures]"==a[c].uniqueName)return c;return-1};d.HU=function(a){for(var c=[],e,g=0;g<a.length;g++){e=[];e.push(null!=a[g].measure?a[g].measure:"");if(null!=a[g].tuple)for(var l=0;l<a[g].tuple.length;l++)e.push(a[g].tuple[l]);c.push(e)}return c};d.GU=function(a){for(var c=[],e,g=0;g<a.length;g++){e=[];e.push(null!=a[g].level?a[g].level:
"");e.push(null!=a[g].measure?a[g].measure:-1);if(null!=a[g].tuple){e.push(a[g].tuple[a[g].tuple.length-1]);for(var l=0;l<a[g].tuple.length;l++)e.push(a[g].tuple[l])}c.push(e)}return c};d.VQ=function(a,c){if(!f.v(c)&&!c.ob)for(var e=0;e<a.length;e++){var g=a[e].uniqueName,l=c.Fa(g,"caption");f.v(l)||delete a[e].caption;g=c.Fa(g,"aggregations");f.v(g)||delete a[e].availableAggregations}};d.tb=function(a,c){c=void 0===c?null:c;if(null==a)return null;a instanceof d||(a=d.wl(a));var e=new d;null!=a.measures&&
a.measures.length&&(e.measures=a.measures);null==c&&(c=k.Ta.U().Ga.fa);null!=a.pages&&a.pages.length&&(e.pages=d.L0(a.pages));null!=a.columns&&a.columns.length&&(e.columns=d.L0(a.columns));null!=a.rows&&a.rows.length&&(e.rows=d.L0(a.rows));null!=a.flatOrder&&a.flatOrder.length&&(e.flatOrder=a.flatOrder);null!=a.flatSort&&a.flatSort.length&&(e.flatSort=a.flatSort);null!=a.drillThrough&&a.drillThrough.length&&(e.drillThrough=a.drillThrough);if(void 0!==a.memberProperties&&Array.isArray(a.memberProperties))for(var g=
0;g<a.memberProperties.length;g++){var l=a.memberProperties[g];null!=l&&(f.v(e.memberProperties)&&(e.memberProperties={}),e.memberProperties[l.levelName]=l.properties)}d.Rea(e);d.VQ(e.measures,c.mapping);d.VQ(e.pages,c.mapping);d.VQ(e.columns,c.mapping);d.VQ(e.rows,c.mapping);null!=a.rowSorting&&(e.rowSorting=a.rowSorting);null!=a.columnSorting&&(e.columnSorting=a.columnSorting);null!=a.expandAll&&(e.expandAll=a.expandAll);null!=a.expandedRows&&a.expandedRows.length&&(e.expandedRows=a.expandedRows);
null!=a.expandedColumns&&a.expandedColumns.length&&(e.expandedColumns=a.expandedColumns);null!=a.drillAll&&(e.drillAll=a.drillAll);null!=a.drilledRows&&a.drilledRows.length&&(e.drilledRows=a.drilledRows);null!=a.drilledColumns&&a.drilledColumns.length&&(e.drilledColumns=a.drilledColumns);return e};d.L0=function(a){for(var c=[],e=0;e<a.length;e++){c[e]={};for(var g in a[e])"sort"==g?c[e].sortName=a[e].sort:c[e][g]=a[e][g]}return c};d.Qj=function(a){var c=new d,e=a.find("defaultSlice axes axis[name=rows]");
c.rows=d.M0(e.find("hierarchy"));c.rowSorting=d.tha(e.find("sort"));c.expandedRows=d.oba(e.find("expanded tuple"));c.drilledRows=d.cba(e.find("drilled tuple"));e=a.find("defaultSlice axes axis[name=columns]");c.columns=d.M0(e.find("hierarchy"));c.columnSorting=d.tha(e.find("sort"));c.expandedColumns=d.oba(e.find("expanded tuple"));c.drilledColumns=d.cba(e.find("drilled tuple"));d.Rea(c);e=a.find("defaultSlice axes axis[name=pages]");c.pages=d.M0(e.find("hierarchy"));c.measures=d.xCa(a.find("defaultSlice measures measure"));
c.flatOrder=d.exa(a.find("defaultSlice flatOrder hierarchyName"));e=a.find("params");0!=e.find("param[name=expandAll]").length&&(c.expandAll=f.O.Rc(e.find("param[name=expandAll]").text()));0!=e.find("param[name=drillAll]").length&&(c.drillAll=f.O.Rc(e.find("param[name=drillAll]").text()));a=a.find("defaultSlice");0!=a.find("expandAll").length&&(c.expandAll=f.O.Rc(a.find("expandAll").text()));0!=a.find("drillAll").length&&(c.drillAll=f.O.Rc(a.find("drillAll").text()));return c};d.M0=function(a){for(var c=
[],e=0;e<a.length;e++){var g=d.lAa(a[e]);c.push(g)}return c};d.lAa=function(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 e=a.find("filter");if(0<e.length){for(var g=[],l=e.find("member"),m=0;m<l.length;m++){var n=l[m].text().trim();g.push(n)}m=
void 0!==e.attr("negation")?f.O.Rc(e.attr("negation")):!1;l=void 0!==e.attr("type")?e.attr("type"):f.u.i.kb.NONE;n=void 0!==e.attr("quantity")?parseInt(e.attr("quantity")):-1;var p=void 0!==e.attr("measure")?e.attr("measure"):"";if(l!=f.u.i.kb.NONE||0<g.length)c.filter={};0<g.length&&(c.filter.members=g,c.filter.negation=m);l!=f.u.i.kb.NONE&&(c.filter.type=l,c.filter.quantity=n,c.filter.measure=p)}m=e.find("properties");if(0<m.length)for(e=m.find("property"),c.predefinedProperties=[],m=0;m<e.length;m++)g=
e[m].find("propertyName").text(),l=e[m].find("levelName").text(),null==c.predefinedProperties[l]&&(c.predefinedProperties[l]=[]),c.predefinedProperties[l].push(g);e=[];l=a.find("sort member");for(m=0;m<l.length;m++)e.push(l[m].text());c.customSorting=e;void 0!==a.attr("filterEnabled")&&(c.filterEnabled="false"!=a.attr("filterEnabled"));e={};a=a.find("group");for(m=0;m<a.length;m++)for(g=a[m].attr("name"),e[g]=[],l=a[m].find("member"),n=0;n<l.length;n++)e[g].push(l[m].text());c.groups=e;return c};
d.tha=function(a){var c={};0<a.length&&(c.type=a.text(),c.tuple=void 0!==a.attr("tuple")?a.attr("tuple").split(","):[],c.measure=new b(a.attr("measure")),void 0!==a.attr("measureAggregation")&&(c.measure.$=a.attr("measureAggregation")));return c};d.oba=function(a){var c=[];if(0<a.length)for(var e=0;e<a.length;e++){var g=a[e],l=g.text().split(",");if(isNaN(parseInt(l[0]))){var m=void 0!==g.attr("measure")?new b(g.attr("measure")):null;void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation"));
l.unshift(m)}else m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),l.unshift(m);c.push(l)}return c};d.cba=function(a){var c=[];if(0<a.length)for(var e=0;e<a.length;e++){var g=a[e],l=d.CJa(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")));l.unshift(m);isNaN(parseInt(l[0]))?(m=void 0!==g.attr("measure")?new b(g.attr("measure")):null,void 0!==g.attr("measureAggregation")&&(m.$=g.attr("measureAggregation")),
l.unshift(m)):(m=void 0!==g.attr("measure")?parseInt(g.attr("measure")):-1,isNaN(m)&&(m=-1),l.unshift(m));void 0!==g.attr("levelName")&&(g=g.attr("levelName"),l.unshift(g));c.push(l)}return c};d.CJa=function(a){for(var c=0;c<a.length;c++)a[c]=parseInt(a[c]);return a};d.xCa=function(a){for(var c=[],e=0;e<a.length;e++){var g=d.tCa(a[e]);c.push(g)}return c};d.exa=function(a){for(var c=[],e=0;e<a.length;e++)c.push(a[e].text());return c};d.tCa=function(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")?f.O.Rc(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")?f.O.Rc(a.attr("active")):!0;return c};d.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<defaultSlice/>"),e=D.aa.create("<axes/>"),g=D.aa.create("<axis/>");g.attr("name","rows");for(var l=0;l<this.rows.length;l++)g.append(this.P0(this.rows[l],a));null!=this.rowSorting&&null!=this.rowSorting.type&&this.rowSorting.type!=f.u.i.xa.Zc&&(l=D.aa.create("<sort/>").text(this.rowSorting.type),l.attr("tuple",this.rowSorting.tuple.join(",")),
l.attr("measure",this.rowSorting.measure.uniqueName),""!=this.rowSorting.measure.$&&l.attr("measureAggregation",this.rowSorting.measure.$),g.append(l));if(0<this.expandedRows.length){var m=D.aa.create("<expanded/>");for(l=0;l<this.expandedRows.length;l++){var n=this.expandedRows[l].slice(0);var p=n.shift();0!=n.length&&(n=D.aa.create("<tuple/>").append(D.aa.Bh(n.toString())),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),m.append(n))}g.append(m)}if(0<this.drilledRows.length){var t=
D.aa.create("<drilled/>");for(l=0;l<this.drilledRows.length;l++){n=this.drilledRows[l].slice(0);m="string"==typeof n[0]?n.shift():"";p=n.shift();var r=n.shift();null!=r&&0!=n.length&&(n=D.aa.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&n.attr("memberName",r),0<m.length&&n.attr("levelName",m),t.append(n))}g.append(t)}m=D.aa.create("<axis/>");m.attr("name","columns");for(l=0;l<this.columns.length;l++)m.append(this.P0(this.columns[l],
a));null!=this.columnSorting&&this.columnSorting.type&&this.columnSorting.type!=f.u.i.xa.Zc&&(l=D.aa.create("<sort/>").text(this.columnSorting.type),l.attr("tuple",this.columnSorting.tuple.join(",")),l.attr("measure",this.columnSorting.measure.uniqueName),""!=this.columnSorting.measure.$&&l.attr("measureAggregation",this.columnSorting.measure.$),m.append(l));if(0<this.expandedColumns.length){r=D.aa.create("<expanded/>");for(l=0;l<this.expandedColumns.length;l++)n=this.expandedColumns[l].slice(0),
p=n.shift(),0!=n.length&&(n=D.aa.create("<tuple/>").append(D.aa.Bh(n.toString())),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),r.append(n));m.append(r)}if(0<this.drilledColumns.length){t=D.aa.create("<drilled/>");for(l=0;l<this.drilledColumns.length;l++)n=this.drilledColumns[l].slice(0),p=n.shift(),r=n.shift(),null!=r&&0!=n.length&&(n=D.aa.create("<tuple/>").text(n.toString()),p&&(n.attr("measure",p.uniqueName),""!=p.$&&n.attr("measureAggregation",p.$)),0<r.length&&
n.attr("memberName",r),t.append(n));m.append(t)}p=D.aa.create("<axis/>");p.attr("name","pages");for(l=0;l<this.pages.length;l++)p.append(this.P0(this.pages[l],a));this.Jm.clear();n=D.aa.create("<measures/>");for(l=0;l<this.measures.length;l++)r=this.measures[l],t=D.aa.create("<measure/>").text(r.uniqueName),null!=r.qe&&""!=r.qe?(t=D.aa.create("<measure/>").append(D.aa.Bh(r.qe)),r.gl&&t.attr("individual","true"),t.attr("caption",r.caption)):(a||r.$!=f.u.i.ca.NONE)&&t.attr("aggregation",r.$),(a||0==
r.active)&&t.attr("active",r.active),null!=r.format&&""!=r.format&&(t.attr("format",r.format),r.active?this.Jm.Pa(r.format,!0):this.Jm.Bb(r.format)&&!0===this.Jm.getItem(r.format)||this.Jm.Pa(r.format,!1)),null!=r.Tc&&0<r.Tc.length&&t.attr("availableAggregations",r.Tc.join(",")),n.append(t);0==g.ob()&&e.append(g);0==m.ob()&&e.append(m);0==p.ob()&&e.append(p);0==e.ob()&&c.append(e);0==n.ob()&&c.append(n);if(0<this.flatOrder.length){e=D.aa.create("<flatOrder/>");for(l=0;l<this.flatOrder.length;l++)e.append(D.aa.create("<hierarchyName/>").text(this.flatOrder[l]));
c.append(e)}(a||this.expandAll)&&c.append(D.aa.create("<expandAll/>").text(this.expandAll));(a||this.drillAll)&&c.append(D.aa.create("<drillAll/>").text(this.drillAll));return c};d.prototype.La=function(a,c){a=void 0===a?!1:a;c=void 0===c?null:c;var e={},g,l=[];for(g=0;g<this.pages.length;g++)l.push(this.O0(this.pages[g],a,c));0<l.length&&(e.reportFilters=l);l=[];for(g=0;g<this.rows.length;g++)l.push(this.O0(this.rows[g],a,c));0<l.length&&(e.rows=l);l=[];for(g=0;g<this.columns.length;g++)l.push(this.O0(this.columns[g],
a,c));0<l.length&&(e.columns=l);l=[];var m=new f.nb,n=k.Zb.Ni.Tya();this.Jm.clear();for(g=0;g<this.measures.length;g++){var p=this.Dea(this.measures[g],a,c);m.Bb(p.uniqueName)||m.Pa(p.uniqueName,new Map);m.getItem(p.uniqueName).set(p.aggregation,!0);l.push(p)}for(g=0;g<n.length;g++){var t=n.ea(g);p=n.qh(g);t=t.keys();t=ja(t);for(var r=t.next();!r.done;r=t.next()){r=r.value;var v=n.getItem(p).get(r);(!m.Bb(p)||m.Bb(p)&&!m.getItem(p).has(r))&&k.B.C.L3&&(l.push({uniqueName:p,aggregation:r,active:!1,
format:v}),this.Jm.Pa(v,!1))}}0<l.length&&(e.measures=l);if(null!=this.rowSorting&&null!=this.rowSorting.type&&this.rowSorting.type!=f.u.i.xa.Zc||null!=this.columnSorting&&this.columnSorting.type&&this.columnSorting.type!=f.u.i.xa.Zc)e.sorting={},null!=this.rowSorting&&null!=this.rowSorting.type&&this.rowSorting.type!=f.u.i.xa.Zc&&(e.sorting.row=this.rowSorting),null!=this.columnSorting&&this.columnSorting.type&&this.columnSorting.type!=f.u.i.xa.Zc&&(e.sorting.column=this.columnSorting);l={};if(a||
this.expandAll)l.expandAll=this.expandAll;if(f.u.Na.U().sa){var z=f.u.Na.U().sa.vb;var B=f.u.Na.U().sa.Cb}0<this.expandedRows.length&&z&&(l.rows=this.nba(this.expandedRows,z,a,c));0<this.expandedColumns.length&&B&&(l.columns=this.nba(this.expandedColumns,B,a,c));x.Mc.og(l)||(e.expands=l);c={};if(a||this.drillAll)c.drillAll=this.drillAll;0<this.drilledRows.length&&(c.rows=this.bba(this.drilledRows,z));0<this.drilledColumns.length&&(c.columns=this.bba(this.drilledColumns,B));x.Mc.og(c)||(e.drills=c);
0<this.flatOrder.length&&(e.flatOrder=this.flatOrder);this.flatSort&&0<this.flatSort.length&&(e.flatSort=this.flatSort);0<this.drillThrough.length&&(e.drillThrough=this.drillThrough);if(this.memberProperties){a=[];for(var C in this.memberProperties)a.push({levelName:C,properties:this.memberProperties[C]});0<a.length&&(e.memberProperties=a)}return e};d.prototype.nba=function(a,c,e,g){e=void 0===e?!1:e;g=void 0===g?null:g;for(var l=[],m,n,p,t=0;t<a.length;t++)if(m={},n=a[t].slice(0),p=n.shift(),0!=
n.length){for(var r=[],v=0;v<n.length;v++){var z=c.ea(v).Db(n[v]);r.push(z.Xi)}m.tuple=r;p&&(m.measure=this.Dea(p.uniqueName?p:p.La(),e,g));l.push(m)}return l};d.prototype.bba=function(a,c){var e=[],g=0;a:for(;g<a.length;g++){var l={};var m=a[g].slice(0);var n=m.shift();var p=m.shift();m.shift();if(0!=m.length){for(var t=[],r=0;r<m.length;r++){var v=c.ea(r).Db(m[r]);if(v)t.push(v.Xi);else continue a}l.tuple=t;p&&(l.measure=p.uniqueName?p:p.La());""!==n&&(l.level=n);e.push(l)}}return e};d.prototype.jBa=
function(a){return f.u.Na.U().fa.Ba===f.u.i.oa.Nc||f.u.Na.U().fa.Ba===f.u.i.oa.Zd?"[Measures].["+a.name+"]"!=a.uniqueName:f.u.Na.U().I instanceof f.u.local.I.fE&&void 0!==f.u.Na.U().I.Ty[a.uniqueName]?!1:a.name!=a.uniqueName};d.prototype.CAa=function(a){if(f.u.Na.U().fa.Ba==f.u.i.oa.API)return!1;if(a.bm.length!==a.Tc.length)return!0;for(var c=0;c<a.Tc.length;c++)if(a.Tc[c]!==a.bm[c])return!0;return!1};d.prototype.Dea=function(a,c,e){e=void 0===e?null:e;var g={};g.uniqueName=a.uniqueName;if(f.ha(a.formula)){if(c||
a.aggregation!=f.u.i.ca.NONE)g.aggregation=a.aggregation;var l=f.u.Na.U().I.nw(a);if(c||this.CAa(l))f.v(e)||e.ob?g.availableAggregations=a.availableAggregations:null==e.Fa(a.uniqueName,"aggregations")&&e.Nh(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.jBa(a)&&(f.v(e)||e.ob?g.caption=a.name:null==e.Fa(a.uniqueName,
"caption")&&void 0===a.formula&&e.Nh(a.uniqueName,"caption",a.name));f.u.I.ek.h0(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.Jm.Pa(a.format,!0):this.Jm.Bb(a.format)&&!0===this.Jm.getItem(a.format)||this.Jm.Pa(a.format,!1));a.filter&&(g.filter=a.filter);return g};d.prototype.bBa=function(a){return"[Measures]"==a.uniqueName?
!1:f.u.Na.U().fa.Ba==f.u.i.oa.Nc||f.u.Na.U().fa.Ba==f.u.i.oa.Zd?a.dimensionName+".["+a.caption+"]"!=a.uniqueName:f.u.Na.U().I instanceof f.u.local.I.fE&&void 0!==f.u.Na.U().I.Ty[a.uniqueName]?!1:a.uniqueName!=a.caption};d.prototype.O0=function(a,c,e){e=void 0===e?null:e;var g={};g.uniqueName=a.uniqueName;this.bBa(a)&&(f.v(e)||e.ob?g.caption=a.caption:null==e.Fa(a.uniqueName,"caption")&&e.Nh(a.uniqueName,"caption",a.caption));null!=a.activeLevelName&&(g.levelName=a.activeLevelName);f.v(a.filter)||
(g.filter={},f.v(a.filter.measure)||(g.filter.measure=a.filter.measure),f.v(a.filter.query)||(g.filter.query=a.filter.query),f.v(a.filter.members)||(g.filter.members=a.filter.members),f.v(a.filter.exclude)||(g.filter.exclude=a.filter.exclude));a.filterEnabled||(g.filterEnabled=!0);x.Mc.og(a.groups)||(g.groups=a.groups);"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=f.u.I.nf.aI)&&(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};d.prototype.P0=function(a,c){var e=D.aa.create("<hierarchy/>");e.append(D.aa.create("<dimensionName/>").text(a.dimensionName));e.append(D.aa.create("<hierarchyName/>").text(a.uniqueName));null!=a.activeLevelName&&e.append(D.aa.create("<levelName/>").text(a.activeLevelName));if(null!=a.filter&&(null!=a.filter.type&&a.filter.type!=f.u.i.kb.NONE&&e.append(this.Xwa(a.filter)),null!=a.filter.members)){var g="string"==
typeof a.filter.members?a.filter.members.split(","):a.filter.members;0<g.length&&(0<e.find("filter").length?this.Dba(g,e.find("filter")[0]):e.append(this.Dba(g)),!0===a.filter.negation&&e.find("filter").attr("negation",a.filter.negation))}a.customSorting&&0<a.customSorting.length&&e.append(this.sva(a.customSorting));a.groups&&this.aAa(a.groups,e);a.filterEnabled||e.attr("filterEnabled","true");"[Measures]"!=a.uniqueName&&a.sortName&&(c||a.sortName!=f.u.I.nf.aI)&&e.attr("sort",a.sortName);"[Measures]"!=
a.uniqueName&&a.sortAs&&e.attr("sortAs",a.sortAs);return e};d.prototype.Xwa=function(a){var c=void 0===c?null:c;null==c&&(c=D.aa.create("<filter/>"));c.attr("type",a.type);c.attr("quantity",a.quantity);c.attr("measure",a.measure);return c};d.prototype.Dba=function(a,c){c=void 0===c?null:c;null==c&&(c=D.aa.create("<filter/>"));for(var e=0;e<a.length;e++){var g=a[e];c.append(D.aa.create("<member/>").append(D.aa.Bh(g)))}return c};d.prototype.sva=function(a){for(var c=D.aa.create("<sort/>"),e=0;e<a.length;e++){var g=
a[e];c.append(D.aa.create("<member/>").append(D.aa.Bh(g)))}return c};d.prototype.aAa=function(a,c){if(null!=a)for(var e in a){var g=D.aa.create("<group/>");g.attr("name",e);for(var l=0;l<a[e].length;l++){var m=a[e][l];g.append(D.aa.create("<member/>").append(D.aa.Bh(m)))}c.append(g)}};d.wl=function(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=d.HU(a.expands.rows)),null!=a.expands.columns&&(c.expandedColumns=d.HU(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=d.GU(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=d.GU(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=d.HU(a.expands.rows)),
null!=a.expands.columns&&(c.expandedColumns=d.HU(a.expands.columns))),null!=a.drills&&(null!=a.drills.drillAll&&(c.drillAll=a.drills.drillAll),null!=a.drills.rows&&(c.drilledRows=d.GU(a.drills.rows)),null!=a.drills.columns&&(c.drilledColumns=d.GU(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};d.prototype.cBa=function(a){for(var c=0;c<this.pages.length;c++)if(this.pages[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.columns.length;c++)if(this.columns[c].uniqueName==a)return!0;return!1};h.SliceValueObject=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.rowSizes={};this.columnSizes={};this.rowHeaderSizes=[];this.columnHeaderSizes=[];this.rowSizesByIdx={};this.columnSizesByIdx={};this.rowFilterSizes=[];this.tD=0}d.tb=function(b){var a=new d;if(null==b)return a;null!=b.columnSizes&&"string"!=typeof b.columnSizes&&(a.columnSizes=b.columnSizes);null!=b.rowSizes&&"string"!=typeof b.rowSizes&&(a.rowSizes=b.rowSizes);null!=b.columnHeaderSizes&&"string"!=typeof b.columnHeaderSizes&&(a.columnHeaderSizes=
b.columnHeaderSizes);null!=b.rowHeaderSizes&&"string"!=typeof b.rowHeaderSizes&&(a.rowHeaderSizes=b.rowHeaderSizes);null!=b.rowFilterSizes&&"string"!=typeof b.rowFilterSizes&&(a.rowFilterSizes=b.rowFilterSizes);null!=b.columnSizesByIdx&&(a.columnSizesByIdx=b.columnSizesByIdx);null!=b.rowSizesByIdx&&(a.rowSizesByIdx=b.rowSizesByIdx);return a};d.wl=function(b){var a={};if(void 0==b)return a;var c;if(null!=b.columns){var e=b.columns;for(c=0;c<e.length;c++)if(null!=e[c].idx&&(null==a.columnSizesByIdx&&
(a.columnSizesByIdx={}),a.columnSizesByIdx[parseInt(e[c].idx)]=parseInt(e[c].width)),null!=e[c].tuple||null!=e[c].measure){null==a.columnSizes&&(a.columnSizes={});var g=null==e[c].tuple?[]:e[c].tuple.slice();null!=e[c].measure&&("string"==typeof e[c].measure?(g.push(e[c].measure),g.push("")):(g.push(e[c].measure.uniqueName?e[c].measure.uniqueName:""),g.push(e[c].measure.aggregation?e[c].measure.aggregation:"")));a.columnSizes[g.join(",")]=parseInt(e[c].width)}}if(null!=b.rows)for(e=b.rows,c=0;c<e.length;c++)if(null!=
e[c].idx&&(null==a.rowSizesByIdx&&(a.rowSizesByIdx={}),a.rowSizesByIdx[parseInt(e[c].idx)]=parseInt(e[c].height)),null!=e[c].tuple||null!=e[c].measure)null==a.rowSizes&&(a.rowSizes={}),g=null==e[c].tuple?[]:e[c].tuple.slice(),null!=e[c].measure&&("string"==typeof e[c].measure?(g.push(e[c].measure),g.push("")):(g.push(e[c].measure.uniqueName?e[c].measure.uniqueName:""),g.push(e[c].measure.aggregation?e[c].measure.aggregation:""))),a.rowSizes[g.join(",")]=parseInt(e[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};d.prototype.La=function(b){var a={};if(null!=this.columnHeaderSizes&&!x.Mc.og(this.columnHeaderSizes)||null!=
this.columnSizes&&!x.Mc.og(this.columnSizes)){a.columns=[];if(null!=this.columnHeaderSizes&&!x.Mc.og(this.columnHeaderSizes))for(var c=0;c<this.columnHeaderSizes.length;c++)null!=this.columnHeaderSizes[c]&&a.columns.push({idx:c,width:this.columnHeaderSizes[c]});if(null!=this.columnSizesByIdx&&!x.Mc.og(this.columnSizesByIdx))for(var e in this.columnSizesByIdx)c=parseInt(e),this.columnSizesByIdx.hasOwnProperty(e)&&!isNaN(c)&&a.columns.push({idx:c,width:this.columnSizesByIdx[e]});e=h.SliceValueObject.$c(b.columns);
if(null!=this.columnSizes&&!x.Mc.og(this.columnSizes))for(var g in this.columnSizes)if(c=g.split(","),0<=e&&1<c.length){var l=c.pop(),m=c.pop();a.columns.push({tuple:c,measure:(new h.Ig(m,l)).La(),width:this.columnSizes[g]})}else a.columns.push({tuple:c,width:this.columnSizes[g]})}if(null!=this.rowFilterSizes&&!x.Mc.og(this.rowFilterSizes)||null!=this.rowHeaderSizes&&!x.Mc.og(this.rowHeaderSizes)||null!=this.rowSizes&&!x.Mc.og(this.rowSizes)){a.rows=[];if(null!=this.rowFilterSizes&&!x.Mc.og(this.rowFilterSizes))for(g=
0;g<this.rowFilterSizes.length;g++)null!=this.rowFilterSizes[g]&&a.rows.push({idx:g,height:this.rowFilterSizes[g]});if(null!=this.rowHeaderSizes&&!x.Mc.og(this.rowHeaderSizes))for(g=0;g<this.rowHeaderSizes.length;g++)null!=this.rowHeaderSizes[g]&&a.rows.push({idx:g,height:this.rowHeaderSizes[g]});if(null!=this.rowSizesByIdx&&!x.Mc.og(this.rowSizesByIdx))for(var n in this.rowSizesByIdx)g=parseInt(n),this.rowSizesByIdx.hasOwnProperty(n)&&!isNaN(g)&&a.rows.push({idx:g,width:this.rowSizesByIdx[n]});b=
h.SliceValueObject.$c(b.rows);if(null!=this.rowSizes&&!x.Mc.og(this.rowSizes))for(var p in this.rowSizes)n=p.split(","),0<=b&&1<n.length?(g=n.pop(),e=n.pop(),a.rows.push({tuple:n,measure:(new h.Ig(e,g)).La(),height:this.rowSizes[p]})):a.rows.push({tuple:n,height:this.rowSizes[p]})}return a};d.prototype.co=function(){var b=D.aa.create("<view/>"),a;if(null!=this.columnHeaderSizes)for(a in this.columnHeaderSizes)if(null!=this.columnHeaderSizes[a]){var c=D.aa.create("<column/>").text(this.columnHeaderSizes[a]);
c.attr("headerIdx",a);b.append(c)}if(null!=this.columnSizes)for(a in this.columnSizes)null!=this.columnSizes[a]&&(c=D.aa.create("<column/>").append(D.aa.Bh(this.columnSizes[a])),b.append(c));if(null!=this.rowFilterSizes)for(a in this.rowFilterSizes)null!=this.rowFilterSizes[a]&&(c=D.aa.create("<row/>").text(this.rowFilterSizes[a]),c.attr("filterIdx",a),b.append(c));if(null!=this.rowHeaderSizes)for(a in this.rowHeaderSizes)null!=this.rowHeaderSizes[a]&&(c=D.aa.create("<row/>").text(this.rowHeaderSizes[a]),
c.attr("headerIdx",a),b.append(c));if(null!=this.rowSizes)for(a in this.rowSizes)null!=this.rowSizes[a]&&(c=D.aa.create("<row/>").append(D.aa.Bh(this.rowSizes[a])),b.append(c));return b};d.prototype.clone=function(){var b=new d,a={},c;for(c in this.columnSizes)a[c]=this.columnSizes[c];b.columnSizes=a;a={};for(var e in this.columnSizesByIdx)a[e]=this.columnSizesByIdx[e];b.columnSizesByIdx=a;e=[];for(var g in this.columnHeaderSizes)e[parseInt(g)]=this.columnHeaderSizes[g];b.columnHeaderSizes=e;g={};
for(var l in this.rowSizes)g[l]=this.rowSizes[l];b.rowSizes=g;l={};for(var m in this.rowSizesByIdx)l[m]=this.rowSizesByIdx[m];b.rowSizesByIdx=l;m=[];for(var n in this.rowHeaderSizes)m[parseInt(n)+this.tD]=this.rowHeaderSizes[n];b.rowHeaderSizes=m;n=[];if(0!=this.tD)for(var p in this.rowFilterSizes)n[parseInt(p)]=this.rowFilterSizes[p];b.rowFilterSizes=n;return b};d.Qj=function(b){var a=new d;a.columnHeaderSizes=d.cda(b.find("view column[headerIdx]"));a.columnSizes=d.oha(b.find("view column"));a.rowHeaderSizes=
d.cda(b.find("view row[headerIdx]"));a.rowSizes=d.oha(b.find("view row"));a.rowFilterSizes=d.Uwa(b.find("view row[filterIdx]"));return a};d.cda=function(b){for(var a=[],c=0;c<b.length;c++){var e=b[c];a[parseInt(e.attr("headerIdx"))]=parseInt(e.text())}return a};d.Uwa=function(b){for(var a=[],c=0;c<b.length;c++){var e=b[c];a[parseInt(e.attr("filterIdx"))]=parseInt(e.text())}return a};d.oha=function(b){for(var a=[],c=0;c<b.length;c++){var e=b[c];f.v(e.attr("headerIdx"))&&f.v(e.attr("filterIdx"))&&0<
e.text().length&&a.push(e.text().split(","))}return a};h.Wu=d})(k.bb||(k.bb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.formats=new f.nb;this.conditions=new f.nb;this.Fw=new k.bb.Wu;this.localization=null;this.labels={};this.iKa=this.withDefaults=!1;this.customFields=[]}b.FJa=function(a){if(null===a)return null;var c=new k.bb.ReportValueObject;c.withDefaults=a.withDefaults;c.connectionInfo=a.ub.clone();a.Lb&&(c.slice=a.Lb.G4());c.options=a.B;for(var e=[],g=0;g<a.formats.length;g++)e[g]=a.formats.ea(g).La();c.formats=e;e=[];for(g=0;g<a.conditions.length;g++)e[g]=
a.conditions.ea(g).La();c.conditions=e;c.customFields=a.customFields;c.labels=a.labels;c.Fw=a.Fw.clone();c.localization=a.localization;c.version=f.Ug.qs;c.creationDate=(new Date).toISOString();return c};d.i8=b})(h.W||(h.W={}))})(k.cc||(k.cc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=this;this.vma=35;this.pQ=!1;this.Qqa="a4";this.Pfa=function(){return b.jfa()};this.J_=this.K0=0}d.U=function(){null==d.ne&&(d.ne=new d);return d.ne};d.dispose=function(){d.ne=null};d.prototype.print=function(b){this.pQ||(this.pQ=!0,this.B=(void 0===b?null:b)||new k.$r.S7,k.Ta.U().N(f.eg.fA,this.Pfa),k.Ta.U().Wa(f.eg.UW))};d.prototype.jfa=function(){k.Ta.U().mb(f.eg.fA,this.Pfa);this.pQ=!1};d.prototype.Wf=function(b,a){this.X=b;this.ka=null!=
b?b.ka:null;this.$sa=(void 0===a?"":a)||"";this.start()};d.prototype.start=function(){var b=this;this.Ck=0;var a=k.vc.ax.tG(this.Qqa);this.jQ=a.Sza();this.iY=a.Uya();this.pages=new A.Aa("div");this.js=[];this.kH=this.xn=0;x.Pk.sn({ao:function(){return b.bya()},Ne:function(){return b.finish()}})};d.prototype.clear=function(){this.pQ=!1;this.xn=this.Ck=this.kH=0;this.pages=this.Zr=null;this.J_=this.K0=0};d.prototype.bya=function(){return this.jra()};d.prototype.jra=function(){if(null==this.Zr)this.Zr=
this.paa(),this.CU=this.Zr.find("table");else if(!(this.Zr.cf(!0)<=this.jQ&&0!=this.xn)&&(this.Zr.cf(!0)>this.jQ&&(this.xn--,this.kHa(this.Zr)),this.i$(),this.Zr=this.paa(),this.CU=this.Zr.find("table"),0==this.X.Ai)){var b=this.xn;0!=this.xn&&0<this.X.uo&&(this.xn=0,this.X9(),this.xn=b,this.xn+1<=this.ka.coords.Wk&&(this.xn+=1))}this.X9();if(1==this.shift())this.i$();else return!1;return!0};d.prototype.kHa=function(b){b=b.find("td:last-child",!0);for(var a=0;a<b.length;a++)b[a].remove()};d.prototype.paa=
function(){var b=(new A.Aa("div")).Y("page");b.P("position","absolute").P("left","-9999px");if(null!=this.B.zi){var a=this.yK(this.B.zi);b.append(a)}var c=new A.Aa("table");0==this.Ck&&0<k.B.C.tq.length&&c.append((new A.Aa("caption")).text(k.B.C.tq));b.append(c);if(null!=this.B.Wi){var e=this.yK(this.B.Wi);b.append(e)}this.X.F.append(b);this.K0=null!=a?a.qd():0;this.J_=null!=e?e.qd():0;return b};d.prototype.yK=function(b){var a=new A.Aa("div");b=b.replace(/##PAGE-NUMBER##/gi,(this.Ck+1).toString());
b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());a.html(b);return a};d.prototype.i$=function(){this.Ck++;f.za(!0,k.A.j.kE,this.Ck+" "+k.A.j.y7,!0);this.Zr.detach();this.Zr.P("position","").P("left","").P("padding-top",this.vma.toString()+"px");this.pages.append(this.Zr)};d.prototype.shift=function(){++this.xn;this.xn>=this.X.dg+this.ka.coords.Wk&&(this.xn=0,this.kH+=this.sf-this.X.Ye+1);return 1E3<=this.Ck||this.kH>=this.ka.coords.Po?!0:!1};d.prototype.X9=function(){this.QU=0;var b=this.X.uo+
this.xn;if(!this.ka.coords.On(NaN,b)){var a=this.iY-this.K0-this.J_;for(this.sf=this.X.oi;this.QU<=a&&this.sf<this.ka.coords.Po+this.X.Ye-this.kH;this.sf++)if(this.rowIndex=this.sf<this.X.Ye?this.sf:this.sf+this.kH,!this.ka.coords.On(this.rowIndex,b)){var c=this.ka.Rf(this.rowIndex,b,!0);this.QU+=this.ira(this.sf,c);if(this.QU>=a)break}}};d.prototype.ira=function(b,a){var c=f.K.X.sheet.jh.ts,e=this.CU.find("tr",!0);for(e=0<e.length?e[b]:null;null==e;)this.CU.append(new A.Aa("tr")),e=this.CU.find("tr",
!0)[b];e.height=f.K.X.sheet.jh.Bu;b="<td {0}>"+(a?a.J(!0):"")+"</td>";if(null==a)b=f.O.bind(b,"class='cell' style='width:"+c+"'");else{var g="",l="";a.Wt&&null!=a.style&&(l=a.style.FS(),g=a.style.mS(),this.aZ(a.style.AB));g=a.ci?g+(" rowHeaderCell level"+a.level):a.th?g+" columnHeaderCell":a.wk?g+" filterHeaderCell":a.By&&a.Tj&&""!=a.J(!0)?g+" grandTotalCell":a.Tj&&""!=a.J(!0)?g+" totalCell":g+" cell";""!=g.trim()&&(g="class='"+g.trim()+"'");l=""!=l.trim()?"style='"+l.trim()+"max-width:200px'":"style='width:"+
c+"px;'";b=f.O.bind(b,g+" "+l)}e.element.innerHTML+=b;return e.qd(!0)};d.prototype.aZ=function(b){for(var a=0;a<b.length;a++)0>this.js.indexOf(b[a])&&this.js.push(b[a])};d.prototype.finish=function(){f.za(!0,k.A.j.kE,"Sending pages to printer...",!1,!0);D.R7.print(this.$sa+this.pages.html(),this.R_(),k.B.C.tq);f.za(!1);k.Ta.U().Wa(f.eg.fA);this.clear()};d.prototype.R_=function(){var b="",a=A.Aa.Pb(this.ka.element),c=a.find(".fm-data-sheet");b+=f.O.bind("table{width:100%;border-collapse:collapse;{0}}\n",
f.K.X.W.Yc.ly(a,["font-family","font-size"]));b+=f.O.bind("caption{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.lX,a));b+=f.O.bind("td{white-space:nowrap;{0}}\n",x.Bd().$S?"":"border: 1px solid #eee;");b+=f.O.bind(".cell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we,c));b+=f.O.bind(".totalCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,c));b+=f.O.bind(".grandTotalCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,c));b+=f.O.bind(".rowHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+
f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,a));b+=f.O.bind(".columnHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,a));b+=f.O.bind(".filterHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,a));for(c=1;20>=c;c++)b+=f.O.bind(".level{0}{{1}}\n",c,f.K.X.W.Yc.vk(f.K.X.W.ua.Ku+" "+f.K.X.W.ua.qf+c,a,["padding-left"]));for(c=0;c<this.js.length;c++)b+=f.O.bind(".{0}{{1}}\n",this.js[c],f.K.X.W.Yc.vk(this.js[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.nE=d})(k.$r||(k.$r={}))})(f.model||(f.model={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.tb=function(b){var a=new d;null!=b&&(null!=b.header&&(a.zi=b.header),null!=b.footer&&(a.Wi=b.footer));return a};h.S7=d})(k.$r||(k.$r={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;d.Ld=new h.Qp;d.Ld.jD();d.B=new h.Qp;if(d.instance)throw Error("Singleton");return b}u(d,y.Fc);d.U=function(){f.v(d.instance)&&(d.instance=new d);return d.instance};d.dispose=function(){d.DA&&(d.DA.Ld=null);d.DA=null;d.B=null;d.Ld=null;d.instance=null};d.qIa=function(b){d.DA=b};d.Vv=function(b,a){b=void 0===b?!1:b;a=void 0===a?!1:a;var c=void 0===c?!0:c;var e=new h.Qp;b&&e.IC(d.Ld);a&&e.IC(d.DA);e.IC(d.B);!b&&c&&e.qta();
return e};d.clear=function(){this.B=new h.Qp};d.zp=function(b,a,c){a=void 0===a?!0:a;c=void 0===c?!0:c;if(f.v(d.B)||a)a=d.An,d.B=new h.Qp,d.B.la("configuratorOpened",a);b=h.Qp.wl(b);a=!1;d.e_=!0;var e=d.Vv(!0,!0),g;for(g in b)if(void 0!=e[g]&&b[g]!=e[g]&&(a=!0,d.Sy(g))){d.mu=!0;break}d.B.IC(b);f.u.I.nf.aI=d.Gva;d.e_=!1;a&&c&&d.Ya()};d.Sy=function(b){return-1<d.Pqa.indexOf(b)};d.R=function(b){return d.B&&null!=d.B[b]?d.B[b]:d.DA&&null!=d.DA[b]?d.DA[b]:d.Ld?d.Ld[b]:null};d.Ya=function(){d.e_||d.U().Da(new y.da(k.cc.fd.lm))};
q.Object.defineProperties(d,{An:{configurable:!0,enumerable:!0,get:function(){return d.B.R("configuratorOpened")},set:function(b){d.B.la("configuratorOpened",b)}},zF:{configurable:!0,enumerable:!0,get:function(){return d.R("configuratorActive")},set:function(b){if(d.B.R("configuratorActive")!=b){var a=!f.v(d.B.R("configuratorActive"));d.B.la("configuratorOpened",b);d.B.la("configuratorActive",b);a&&d.Ya()}}},IZ:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.configuratorButton:
d.R("configuratorButton")},set:function(b){if(d.B.R("configuratorButton")!=b){var a=!f.v(d.B.R("configuratorButton"));d.B.la("configuratorButton",b);a&&d.Ya()}}},he:{configurable:!0,enumerable:!0,get:function(){return d.R("viewType")},set:function(b){if(d.B.R("viewType")!=b){b=f.K.xd.Cg(b)?b:d.Ld.R("viewType");var a=!(f.v(d.B.R("viewType"))&&d.Ld.R("viewType")==b);d.B.la("viewType",b);a&&d.Ya()}}},Dm:{configurable:!0,enumerable:!0,get:function(){return d.R("chartTitle")},set:function(b){if(d.B.R("chartTitle")!=
b){var a=!f.v(d.B.R("chartTitle"));d.B.la("chartTitle",b);a&&d.Ya()}}},qk:{configurable:!0,enumerable:!0,get:function(){return d.R("gridType")==f.K.X.ie.Cu},set:function(){if(d.B.R("gridType")!=f.K.X.ie.Cu){var b=!f.v(d.B.R("gridType"));d.B.la("gridType",f.K.X.ie.Cu);d.mu=d.Sy("gridType");b&&d.Ya()}}},oc:{configurable:!0,enumerable:!0,get:function(){return d.R("gridType")==f.K.X.ie.ih},set:function(b){if(1==b&&d.B.R("gridType")!=f.K.X.ie.ih){var a=!f.v(d.B.R("gridType"));d.B.la("gridType",f.K.X.ie.ih);
d.mu=d.Sy("gridType");a&&d.Ya()}0==b&&d.B.R("gridType")==f.K.X.ie.ih&&(d.B.la("gridType",f.K.X.ie.Ez),d.mu=d.Sy("gridType"),d.Ya())}},DG:{configurable:!0,enumerable:!0,get:function(){return d.R("gridType")},set:function(b){if(d.B.R("gridType")!=b){var a=!f.v(d.B.R("gridType"));d.B.la("gridType",b);a&&d.Ya()}}},tq:{configurable:!0,enumerable:!0,get:function(){return d.R("gridTitle")},set:function(b){if(d.B.R("gridTitle")!=b){var a=!f.v(d.B.R("gridTitle"));d.B.la("gridTitle",b);a&&d.Ya()}}},OQ:{configurable:!0,
enumerable:!0,get:function(){return d.R("chartType")},set:function(b){b=f.K.td.xe.validate(b);if(d.B.R("chartType")!=b){var a=!f.v(d.B.R("chartType"));d.B.la("chartType",b);a&&d.Ya()}}},Io:{configurable:!0,enumerable:!0,get:function(){return d.R("chartOneLevel")},set:function(b){if(d.B.R("chartOneLevel")!=b){var a=!f.v(d.B.R("chartOneLevel"));d.B.la("chartOneLevel",b);a&&d.Ya()}}},Cv:{configurable:!0,enumerable:!0,get:function(){return d.R("chartOneLevelTuple")},set:function(b){if(d.B.R("chartOneLevelTuple")!=
b){var a=!f.v(d.B.R("chartOneLevelTuple"));d.B.la("chartOneLevelTuple",b);a&&d.Ya()}}},sF:{configurable:!0,enumerable:!0,get:function(){return d.R("chartOneLevelColumnTuple")},set:function(b){if(d.B.R("chartOneLevelColumnTuple")!=b){var a=!f.v(d.B.R("chartOneLevelColumnTuple"));d.B.la("chartOneLevelColumnTuple",b);a&&d.Ya()}}},lK:{configurable:!0,enumerable:!0,get:function(){return d.R("chartMultipleMeasures")},set:function(b){if(d.B.R("chartMultipleMeasures")!=b){var a=!f.v(d.B.R("chartMultipleMeasures"));
d.B.la("chartMultipleMeasures",b);a&&d.Ya()}}},kK:{configurable:!0,enumerable:!0,get:function(){return d.R("chartActiveMeasures")},set:function(b){if(d.B.R("chartActiveMeasures")!=b){var a=!f.v(d.B.R("chartActiveMeasures"));d.B.la("chartActiveMeasures",b);a&&d.Ya()}}},Ho:{configurable:!0,enumerable:!0,get:function(){return d.R("chartActiveMeasure")},set:function(b){if(d.B.R("chartActiveMeasure")!=b){var a=!f.v(d.B.R("chartActiveMeasures"));d.B.la("chartActiveMeasure",b);a&&d.Ya()}}},NQ:{configurable:!0,
enumerable:!0,get:function(){return d.R("chartActiveTupleIndex")},set:function(b){if(d.B.R("chartActiveTupleIndex")!=b){var a=!f.v(d.B.R("chartActiveTupleIndex"));d.B.la("chartActiveTupleIndex",b);a&&d.Ya()}}},nB:{configurable:!0,enumerable:!0,get:function(){return d.R("chartPosition")},set:function(b){if(d.B.R("chartPosition")!=b){var a=!f.v(d.B.R("chartPosition"));d.B.la("chartPosition",b);a&&d.Ya()}}},lZ:{configurable:!0,enumerable:!0,get:function(){return d.R("chartReversedAxes")},set:function(b){if(d.B.R("chartReversedAxes")!=
b){var a=!f.v(d.B.R("chartReversedAxes"));d.B.la("chartReversedAxes",b);a&&d.Ya()}}},Bv:{configurable:!0,enumerable:!0,get:function(){return d.R("chartAutoRange")},set:function(b){if(d.B.R("chartAutoRange")!=b){var a=!f.v(d.B.R("chartAutoRange"));d.B.la("chartAutoRange",b);a&&d.Ya()}}},rF:{configurable:!0,enumerable:!0,get:function(){return d.R("chartAxisShortNumberFormat")},set:function(b){if(d.B.R("chartAxisShortNumberFormat")!=b){var a=!f.v(d.B.R("chartAxisShortNumberFormat"));d.B.la("chartAxisShortNumberFormat",
b);a&&d.Ya()}}},jz:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.showFilter:d.R("showFilter")},set:function(b){if(d.B.R("showFilter")!=b){var a=!f.v(d.B.R("showFilter"));d.B.la("showFilter",b);a&&d.Ya()}}},QIa:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.showFilterInCharts:d.R("showFilterInCharts")},set:function(b){if(d.B.R("showFilterInCharts")!=b){var a=!f.v(d.B.R("showFilterInCharts"));d.B.la("showFilterInCharts",b);a&&d.Ya()}}},hha:{configurable:!0,
enumerable:!0,get:function(){return d.R("showDefaultSlice")},set:function(b){if(d.B.R("showDefaultSlice")!=b){var a=!f.v(d.B.R("showDefaultSlice"));d.B.la("showDefaultSlice",b);a&&d.Ya()}}},Jq:{configurable:!0,enumerable:!0,get:function(){return d.R("useOlapFormatting")},set:function(b){if(d.B.R("useOlapFormatting")!=b){var a=!f.v(d.B.R("useOlapFormatting"));d.B.la("useOlapFormatting",b);a&&d.Ya()}}},YM:{configurable:!0,enumerable:!0,get:function(){return d.R("showMemberProperties")},set:function(b){if(d.B.R("showMemberProperties")!=
b){var a=!f.v(d.B.R("showMemberProperties"));d.B.la("showMemberProperties",b);a&&d.Ya()}}},qH:{configurable:!0,enumerable:!0,get:function(){return d.R("showEmptyData")},set:function(b){if(d.B.R("showEmptyData")!=b){var a=!f.v(d.B.R("showEmptyData"));d.B.la("showEmptyData",b);a&&d.Ya()}}},LIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartDataLabels")},set:function(b){if(d.B.R("showChartDataLabels")!=b){var a=!f.v(d.B.R("showChartDataLabels"));d.B.la("showChartDataLabels",b);a&&
d.Ya()}}},JIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showAllChartLabels")},set:function(b){if(d.B.R("showAllChartLabels")!=b){var a=!f.v(d.B.R("showAllChartLabels"));d.B.la("showAllChartLabels",b);a&&d.Ya()}}},ul:{configurable:!0,enumerable:!0,get:function(){return d.R("showAggregations")},set:function(b){if(d.B.R("showAggregations")!=b){var a=!f.v(d.B.R("showAggregations"));d.B.la("showAggregations",b);a&&d.Ya()}}},su:{configurable:!0,enumerable:!0,get:function(){return d.R("showHierarchyCaptions")},
set:function(b){if(d.B.R("showHierarchyCaptions")!=b){var a=!f.v(d.B.R("showHierarchyCaptions"));d.B.la("showHierarchyCaptions",b);a&&d.Ya()}}},KK:{configurable:!0,enumerable:!0,get:function(){return d.R("drillthroughMaxRows")},set:function(b){if(d.B.R("drillthroughMaxRows")!=b){var a=!f.v(d.B.R("drillthroughMaxRows"));d.B.la("drillthroughMaxRows",b);a&&d.Ya()}}},dha:{configurable:!0,enumerable:!0,get:function(){return d.R("showAllFieldsDrillThrough")},set:function(b){if(d.B.R("showAllFieldsDrillThrough")!=
b){var a=!f.v(d.B.R("showAllFieldsDrillThrough"));d.B.la("showAllFieldsDrillThrough",b);a&&d.Ya()}}},jha:{configurable:!0,enumerable:!0,get:function(){return d.R("showFieldListSearch")},set:function(b){if(d.B.R("showFieldListSearch")!=b){var a=!f.v(d.B.R("showFieldListSearch"));d.B.la("showFieldListSearch",b);a&&d.Ya()}}},XM:{configurable:!0,enumerable:!0,get:function(){return d.R("showExtraTotalLabels")},set:function(b){if(d.B.R("showExtraTotalLabels")!=b){var a=!f.v(d.B.R("showExtraTotalLabels"));
d.B.la("showExtraTotalLabels",b);a&&d.Ya()}}},vl:{configurable:!0,enumerable:!0,get:function(){return d.R("showHeaders")},set:function(b){if(d.B.R("showHeaders")!=b){var a=!f.v(d.B.R("showHeaders"));d.B.la("showHeaders",b);a&&d.Ya()}}},vj:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.sorting:d.R("sorting")},set:function(b){if(d.B.R("sorting")!=b){var a=!f.v(d.B.R("sorting"));d.B.la("sorting",b);a&&d.Ya()}}},A0:{configurable:!0,enumerable:!0,get:function(){return f.u.Na.U().fa.Ba===
f.u.i.oa.API||f.u.Na.U().fa.Hc?!1:d.R("grouping")},set:function(b){if(d.B.R("grouping")!=b){var a=!f.v(d.B.R("grouping"));d.B.la("grouping",b);a&&d.Ya()}}},TF:{configurable:!0,enumerable:!0,get:function(){return d.R("editing")},set:function(b){if(d.B.R("editing")!=b){var a=!f.v(d.B.R("editing"));d.B.la("editing",b);a&&d.Ya()}}},drillThrough:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.drillThrough:d.R("drillThrough")},set:function(b){if(d.B.R("drillThrough")!=b){var a=
!f.v(d.B.R("drillThrough"));d.B.la("drillThrough",b);a&&d.Ya()}}},PIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showDrillThroughConfigurator")},set:function(b){if(d.B.R("showDrillThroughConfigurator")!=b){var a=!f.v(d.B.R("showDrillThroughConfigurator"));d.B.la("showDrillThroughConfigurator",b);a&&d.Ya()}}},rH:{configurable:!0,enumerable:!0,get:function(){return d.R("showHierarchies")},set:function(b){if(d.B.R("showHierarchies")!=b){var a=!f.v(d.B.R("showHierarchies"));d.B.la("showHierarchies",
b);a&&d.Ya()}}},OIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartsWarning")},set:function(b){if(d.B.R("showChartsWarning")!=b){var a=!f.v(d.B.R("showChartsWarning"));d.B.la("showChartsWarning",b);a&&d.Ya()}}},MIa:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartLegend")},set:function(b){if(d.B.R("showChartLegend")!=b){var a=!f.v(d.B.R("showChartLegend"));d.B.la("showChartLegend",b);a&&d.Ya()}}},fha:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartLegendButton")},
set:function(b){if(d.B.R("showChartLegendButton")!=b){var a=!f.v(d.B.R("showChartLegendButton"));d.B.la("showChartLegendButton",b);a&&d.Ya()}}},L3:{configurable:!0,enumerable:!0,get:function(){return d.R("saveAllFormats")},set:function(b){if(d.B.R("saveAllFormats")!=b){var a=!f.v(d.B.R("saveAllFormats"));d.B.la("saveAllFormats",b);a&&d.Ya()}}},zv:{configurable:!0,enumerable:!0,get:function(){return d.R("calculatedValuesOLAP")},set:function(b){if(d.B.R("calculatedValuesOLAP")!=b){var a=!f.v(d.B.R("calculatedValuesOLAP"));
d.B.la("calculatedValuesOLAP",b);a&&d.Ya()}}},jda:{configurable:!0,enumerable:!0,get:function(){return d.R("includeEmptySubtotalsOLAP")},set:function(b){if(d.B.R("includeEmptySubtotalsOLAP")!=b){var a=!f.v(d.B.R("includeEmptySubtotalsOLAP"));d.B.la("includeEmptySubtotalsOLAP",b);a&&d.Ya()}}},gha:{configurable:!0,enumerable:!0,get:function(){return d.R("showChartOneMeasureSelection")},set:function(b){if(d.B.R("showChartOneMeasureSelection")!=b){var a=!f.v(d.B.R("showChartOneMeasureSelection"));d.B.la("showChartOneMeasureSelection",
b);a&&d.Ya()}}},NIa:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.showChartMeasures:d.R("showChartMeasures")},set:function(b){if(d.B.R("showChartMeasures")!=b){var a=!f.v(d.B.R("showChartMeasures"));d.B.la("showChartMeasures",b);a&&d.Ya()}}},Yf:{configurable:!0,enumerable:!0,get:function(){return d.R("showTotals")},set:function(b){if(d.B.R("showTotals")!=b){var a=!f.v(d.B.R("showTotals"));d.B.la("showTotals",b);d.mu=d.Sy("showTotals");a&&d.Ya()}}},KIa:{configurable:!0,
enumerable:!0,get:function(){return d.R("showAutoCalculationBar")},set:function(b){if(d.B.R("showAutoCalculationBar")!=b){var a=!f.v(d.B.R("showAutoCalculationBar"));d.B.la("showAutoCalculationBar",b);a&&d.Ya()}}},Ef:{configurable:!0,enumerable:!0,get:function(){return d.R("showGrandTotals")},set:function(b){if(d.B.R("showGrandTotals")!=b){var a=!f.v(d.B.R("showGrandTotals"));d.B.la("showGrandTotals",b);d.mu=d.Sy("showGrandTotals");a&&d.Ya()}}},Je:{configurable:!0,enumerable:!0,get:function(){return d.R("strictDataTypes")},
set:function(b){if(d.B.R("strictDataTypes")!==b){var a=!f.v(d.B.R("strictDataTypes"));d.B.la("strictDataTypes",b);a&&d.Ya()}}},yR:{configurable:!0,enumerable:!0,get:function(){return d.R("defaultDateType")},set:function(b){if(d.B.R("defaultDateType")!=b&&f.u.i.input.pa.valid(b)){var a=!f.v(d.B.R("defaultDateType"));d.B.la("defaultDateType",b);a&&d.Ya()}}},mq:{configurable:!0,enumerable:!0,get:function(){return d.R("datePattern")},set:function(b){if(d.B.R("datePattern")!=b){var a=!f.v(d.B.R("datePattern"));
d.B.la("datePattern",b);a&&d.Ya()}}},Yk:{configurable:!0,enumerable:!0,get:function(){return d.R("dateTimePattern")},set:function(b){if(d.B.R("dateTimePattern")!=b){var a=!f.v(d.B.R("dateTimePattern"));d.B.la("dateTimePattern",b);a&&d.Ya()}}},Cp:{configurable:!0,enumerable:!0,get:function(){return d.R("timePattern")},set:function(b){if(d.B.R("timePattern")!=b){var a=!f.v(d.B.R("timePattern"));d.B.la("timePattern",b);a&&d.Ya()}}},Mj:{configurable:!0,enumerable:!0,get:function(){return d.R("dateTimezoneOffset")},
set:function(b){if(d.B.R("dateTimezoneOffset")!=b){var a=!f.v(d.B.R("dateTimezoneOffset"));d.B.la("dateTimezoneOffset",b);a&&d.Ya()}}},eha:{configurable:!0,enumerable:!0,get:function(){return d.R("showCalculatedValuesButton")},set:function(b){if(d.B.R("showCalculatedValuesButton")!=b){var a=!f.v(d.B.R("showCalculatedValuesButton"));d.B.la("showCalculatedValuesButton",b);a&&d.Ya()}}},f4:{configurable:!0,enumerable:!0,get:function(){return d.R("showOutdatedDataAlert")},set:function(b){if(d.B.R("showOutdatedDataAlert")!=
b){var a=!f.v(d.B.R("showOutdatedDataAlert"));d.B.la("showOutdatedDataAlert",b);a&&d.Ya()}}},Gva:{configurable:!0,enumerable:!0,get:function(){return d.R("defaultHierarchySortName")},set:function(b){if(d.B.R("defaultHierarchySortName")!=b){var a=!f.v(d.B.R("defaultHierarchySortName"));d.B.la("defaultHierarchySortName",b);a&&d.Ya()}}},iz:{configurable:!0,enumerable:!0,get:function(){return d.R("showAggregationLabels")},set:function(b){if(d.B.R("showAggregationLabels")!=b){var a=!f.v(d.B.R("showAggregationLabels"));
d.B.la("showAggregationLabels",b);a&&d.Ya()}}},CL:{configurable:!0,enumerable:!0,get:function(){return d.R("grandTotalsPosition")},set:function(b){if(d.B.R("grandTotalsPosition")!=b){var a=!f.v(d.B.R("grandTotalsPosition"));d.B.la("grandTotalsPosition",b);d.mu=d.Sy("grandTotalsPosition");a&&d.Ya()}}},eR:{configurable:!0,enumerable:!0,get:function(){return d.R("columnTotalsPosition")},set:function(b){if(d.B.R("columnTotalsPosition")!=b){var a=!f.v(d.B.R("columnTotalsPosition"));d.B.la("columnTotalsPosition",
b);d.mu=d.Sy("columnTotalsPosition");a&&d.Ya()}}},ZM:{configurable:!0,enumerable:!0,get:function(){return d.R("showReportFiltersArea")},set:function(b){if(d.B.R("showReportFiltersArea")!=b){var a=!f.v(d.B.R("showReportFiltersArea"));d.B.la("showReportFiltersArea",b);a&&d.Ya()}}},GB:{configurable:!0,enumerable:!0,get:function(){return this.readOnly?this.VA.dragging:d.R("dragging")},set:function(b){if(d.B.R("dragging")!=b){var a=!f.v(d.B.R("dragging"));d.B.la("dragging",b);a&&d.Ya()}}},iy:{configurable:!0,
enumerable:!0,get:function(){return d.R("filterWeekOffset")},set:function(b){if(d.B.R("filterWeekOffset")!=b){var a=!f.v(d.B.R("filterWeekOffset"));d.B.la("filterWeekOffset",b);a&&d.Ya()}}},Cba:{configurable:!0,enumerable:!0,get:function(){return d.R("filterDateFormat")},set:function(b){if(d.B.R("filterDateFormat")!=b){var a=!f.v(d.B.R("filterDateFormat"));d.B.la("filterDateFormat",b);a&&d.Ya()}}},G_:{configurable:!0,enumerable:!0,get:function(){return d.R("filterLiveSearch")},set:function(b){if(d.B.R("filterLiveSearch")!=
b){var a=!f.v(d.B.R("filterLiveSearch"));d.B.la("filterLiveSearch",b);a&&d.Ya()}}},Qm:{configurable:!0,enumerable:!0,get:function(){return d.R("liveFiltering")},set:function(b){if(d.B.R("liveFiltering")!=b){var a=!f.v(d.B.R("liveFiltering"));d.B.la("liveFiltering",b);a&&d.Ya()}}},$F:{configurable:!0,enumerable:!0,get:function(){return d.R("fieldListPosition")},set:function(b){if(d.B.R("fieldListPosition")!=b){var a=!f.v(d.B.R("fieldListPosition"));d.B.la("fieldListPosition",b);a&&d.Ya()}}},GV:{configurable:!0,
enumerable:!0,get:function(){return d.R("validateFormulas")},set:function(b){if(d.B.R("validateFormulas")!=b){var a=!f.v(d.B.R("validateFormulas"));d.B.la("validateFormulas",b);a&&d.Ya()}}},Jx:{configurable:!0,enumerable:!0,get:function(){return d.R("caseSensitiveMembers")},set:function(b){if(d.B.R("caseSensitiveMembers")!=b){var a=!f.v(d.B.R("caseSensitiveMembers"));d.B.la("caseSensitiveMembers",b);a&&d.Ya()}}},XIa:{configurable:!0,enumerable:!0,get:function(){return d.R("simplifyFieldListFolders")},
set:function(b){if(d.B.R("simplifyFieldListFolders")!=b){var a=!f.v(d.B.R("simplifyFieldListFolders"));d.B.la("simplifyFieldListFolders",b);a&&d.Ya()}}},kia:{configurable:!0,enumerable:!0,get:function(){return d.R("validateReportFiles")},set:function(b){if(d.B.R("validateReportFiles")!=b){var a=!f.v(d.B.R("validateReportFiles"));d.B.la("validateReportFiles",b);a&&d.Ya()}}},XY:{configurable:!0,enumerable:!0,get:function(){return d.R("allowBrowsersCache")},set:function(b){if(d.B.R("allowBrowsersCache")!=
b){var a=!f.v(d.B.R("allowBrowsersCache"));d.B.la("allowBrowsersCache",b);a&&d.Ya()}}},ru:{configurable:!0,enumerable:!0,get:function(){return d.R("showEmptyValues")},set:function(b){if(d.B.R("showEmptyValues")!=b){var a=!f.v(d.B.R("showEmptyValues"));d.B.la("showEmptyValues",b);a&&d.Ya()}}},zr:{configurable:!0,enumerable:!0,get:function(){return d.R("distinguishNullUndefinedEmpty")},set:function(b){if(d.B.R("distinguishNullUndefinedEmpty")!=b){var a=!f.v(d.B.R("distinguishNullUndefinedEmpty"));d.B.la("distinguishNullUndefinedEmpty",
b);a&&d.Ya()}}},P4:{configurable:!0,enumerable:!0,get:function(){return d.R("useCaptionsInCalculatedValueEditor")},set:function(b){if(d.B.R("useCaptionsInCalculatedValueEditor")!=b){var a=!f.v(d.B.R("useCaptionsInCalculatedValueEditor"));d.B.la("useCaptionsInCalculatedValueEditor",b);a&&d.Ya()}}},y_:{configurable:!0,enumerable:!0,get:function(){return d.R("expandExecutionTimeout")},set:function(b){if(d.B.R("expandExecutionTimeout")!=b){var a=!f.v(d.B.R("expandExecutionTimeout"));d.B.la("expandExecutionTimeout",
b);a&&d.Ya()}}},readOnly:{configurable:!0,enumerable:!0,get:function(){return d.R("readOnly")},set:function(b){if(d.B.R("readOnly")!=b){var a=!f.v(d.B.R("readOnly"));d.B.la("readOnly",b);a&&d.Ya()}}}});d.mu=!1;d.e_=!1;d.Pqa=["gridType","showTotals","showGrandTotals","grandTotalsPosition","columnTotalsPosition"];d.VA={showFilter:!1,dragging:!1,showFilterInCharts:!1,showChartMeasures:!1,configuratorButton:!1,sorting:"off",drillThrough:!1};h.C=d})(k.B||(k.B={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.Ld={configuratorActive:!1,configuratorOpened:!1,configuratorButton:!0,viewType:f.K.xd.xs,chartTitle:"",gridType:f.K.X.ie.Ez,gridTitle:"",chartType:f.K.td.xe.Dz,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:f.u.i.input.pa.Oa,datePattern:"dd/MM/yyyy",dateTimePattern:"dd/MM/yyyy HH:mm:ss",dateTimezoneOffset:null,timePattern:null,showCalculatedValuesButton:!0,showOutdatedDataAlert:!1,defaultHierarchySortName:f.u.i.xa.bc,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}}d.prototype.la=function(b,a){this[b]=a};d.prototype.R=function(b){return this[b]};d.prototype.jD=function(){for(var b in this.Ld)this[b]=this.Ld[b]};d.prototype.qta=
function(){if(!f.v(void 0))for(var b=0;b<(void 0).length;b++){var a=(void 0)[b];void 0!=this[a]&&(this[a]==this.Ld[a]||"object"==typeof this[a]&&x.Mc.og(this[a])&&x.Mc.og(this.Ld[a]))&&(this[a]=void 0)}else for(a in this.Ld)if(this[a]==this.Ld[a]||"object"==typeof this[a]&&x.Mc.og(this[a])&&x.Mc.og(this.Ld[a]))this[a]=void 0};d.tb=function(b){var a=new d;if(void 0==b)return a;null!=b.options&&(b=b.options);b instanceof d||(b=d.wl(b));null!=b.configuratorActive&&a.la("configuratorActive",b.configuratorActive);
null!=b.configuratorButton&&a.la("configuratorButton",b.configuratorButton);null!=b.viewType&&f.K.xd.Cg(b.viewType)&&a.la("viewType",b.viewType);null!=b.chartTitle&&a.la("chartTitle",b.chartTitle);null!=b.gridTitle&&a.la("gridTitle",b.gridTitle);null!=b.chartType&&a.la("chartType",f.K.td.xe.validate(b.chartType));null!=b.chartOneLevel&&a.la("chartOneLevel",b.chartOneLevel);null!=b.chartOneLevelTuple&&a.la("chartOneLevelTuple",b.chartOneLevelTuple);null!=b.chartOneLevelColumnTuple&&a.la("chartOneLevelColumnTuple",
b.chartOneLevelColumnTuple);null!=b.chartActiveMeasure&&a.la("chartActiveMeasure",b.chartActiveMeasure);null!=b.chartActiveMeasures&&a.la("chartActiveMeasures",b.chartActiveMeasures);null!=b.chartActiveTupleIndex&&a.la("chartActiveTupleIndex",b.chartActiveTupleIndex);null!=b.chartAutoRange&&a.la("chartAutoRange",b.chartAutoRange);null!=b.chartReversedAxes&&a.la("chartReversedAxes",b.chartReversedAxes);null!=b.chartPosition&&a.la("chartPosition",b.chartPosition);null!=b.chartAxisShortNumberFormat&&
a.la("chartAxisShortNumberFormat",b.chartAxisShortNumberFormat);null!=b.classicView&&1==b.classicView&&a.la("gridType",f.K.X.ie.Cu);null!=b.tableType&&b.tableType==f.K.X.ie.ih&&a.la("gridType",f.K.X.ie.ih);null!=b.flatView&&1==b.flatView&&a.la("gridType",f.K.X.ie.ih);null!=b.gridType&&a.la("gridType",b.gridType);null!=b.showAutoCalculationBar&&a.la("showAutoCalculationBar",b.showAutoCalculationBar);null!=b.liveFiltering&&a.la("liveFiltering",b.liveFiltering);null!=b.fieldListPosition&&a.la("fieldListPosition",
b.fieldListPosition);null!=b.showFilter&&a.la("showFilter",b.showFilter);null!=b.showDefaultSlice&&a.la("showDefaultSlice",b.showDefaultSlice);null!=b.useOlapFormatting&&a.la("useOlapFormatting",b.useOlapFormatting);null!=b.showMemberProperties&&a.la("showMemberProperties",b.showMemberProperties);null!=b.showEmptyData&&a.la("showEmptyData",b.showEmptyData);null!=b.showFilterInCharts&&a.la("showFilterInCharts",b.showFilterInCharts);null!=b.showAggregations&&a.la("showAggregations",b.showAggregations);
null!=b.showHierarchyCaptions&&a.la("showHierarchyCaptions",b.showHierarchyCaptions);null!=b.drillthroughMaxRows&&a.la("drillthroughMaxRows",b.drillthroughMaxRows);null!=b.showAllFieldsDrillThrough&&a.la("showAllFieldsDrillThrough",b.showAllFieldsDrillThrough);null!=b.showFieldListSearch&&a.la("showFieldListSearch",b.showFieldListSearch);null!=b.showChartDataLabels&&a.la("showChartDataLabels",b.showChartDataLabels);null!=b.showAllChartLabels&&a.la("showAllChartLabels",b.showAllChartLabels);null!=
b.chartMultipleMeasures&&a.la("chartMultipleMeasures",b.chartMultipleMeasures);null!=b.showHeaders&&a.la("showHeaders",b.showHeaders);null!=b.showReportFiltersArea&&a.la("showReportFiltersArea",b.showReportFiltersArea);null!=b.showExtraTotalLabels&&a.la("showExtraTotalLabels",b.showExtraTotalLabels);null!=b.grouping&&a.la("grouping",b.grouping);null!=b.editing&&a.la("editing",b.editing);null!=b.drillThrough&&a.la("drillThrough",b.drillThrough);null!=b.showDrillThroughConfigurator&&a.la("showDrillThroughConfigurator",
b.showDrillThroughConfigurator);null!=b.sorting&&(a.la("sorting",b.sorting),"true"==a.R("sorting").toString().toLowerCase()&&a.la("sorting","on"),"false"==a.R("sorting").toString().toLowerCase()&&a.la("sorting","off"));null!=b.dragging&&a.la("dragging",b.dragging);null!=b.showHierarchies&&a.la("showHierarchies",b.showHierarchies);null!=b.showChartsWarning&&a.la("showChartsWarning",b.showChartsWarning);null!=b.showChartLegend&&a.la("showChartLegend",b.showChartLegend);null!=b.showChartLegendButton&&
a.la("showChartLegendButton",b.showChartLegendButton);null!=b.saveAllFormats&&a.la("saveAllFormats",b.saveAllFormats);null!=b.calculatedValuesOLAP&&a.la("calculatedValuesOLAP",b.calculatedValuesOLAP);null!=b.includeEmptySubtotalsOLAP&&a.la("includeEmptySubtotalsOLAP",b.includeEmptySubtotalsOLAP);null!=b.showChartOneMeasureSelection&&a.la("showChartOneMeasureSelection",b.showChartOneMeasureSelection);null!=b.showChartMeasures&&a.la("showChartMeasures",b.showChartMeasures);null!=b.showTotals&&(a.la("showTotals",
b.showTotals),"true"==a.R("showTotals").toString().toLowerCase()&&a.la("showTotals","on"),"false"==a.R("showTotals").toString().toLowerCase()&&a.la("showTotals","off"));null!=b.showGrandTotals&&(a.la("showGrandTotals",b.showGrandTotals),"true"==a.R("showGrandTotals").toString().toLowerCase()&&a.la("showGrandTotals","on"),"false"==a.R("showGrandTotals").toString().toLowerCase()&&a.la("showGrandTotals","off"));null!=b.defaultDateType&&a.la("defaultDateType",b.defaultDateType);null!=b.strictDataTypes&&
a.la("strictDataTypes",b.strictDataTypes);null!=b.datePattern&&a.la("datePattern",b.datePattern);null!=b.dateTimePattern&&a.la("dateTimePattern",b.dateTimePattern);null!=b.dateTimezoneOffset&&a.la("dateTimezoneOffset",b.dateTimezoneOffset);null!=b.timePattern&&a.la("timePattern",b.timePattern);null!=b.showCalculatedValuesButton&&a.la("showCalculatedValuesButton",b.showCalculatedValuesButton);null!=b.showOutdatedDataAlert&&a.la("showOutdatedDataAlert",b.showOutdatedDataAlert);null!=b.defaultHierarchySortName&&
a.la("defaultHierarchySortName",b.defaultHierarchySortName);null!=b.showAggregationLabels&&a.la("showAggregationLabels",b.showAggregationLabels);null!=b.grandTotalsPosition&&a.la("grandTotalsPosition",b.grandTotalsPosition);null!=b.columnTotalsPosition&&a.la("columnTotalsPosition",b.columnTotalsPosition);f.v(b.filterWeekOffset)||a.la("filterWeekOffset",b.filterWeekOffset);f.v(b.filterDateFormat)||a.la("filterDateFormat",b.filterDateFormat);f.v(b.filterLiveSearch)||a.la("filterLiveSearch",b.filterLiveSearch);
f.v(b.caseSensitiveMembers)||a.la("caseSensitiveMembers",b.caseSensitiveMembers);f.v(b.validateFormulas)||a.la("validateFormulas",b.validateFormulas);f.v(b.simplifyFieldListFolders)||a.la("simplifyFieldListFolders",b.simplifyFieldListFolders);f.v(b.validateReportFiles)||a.la("validateReportFiles",b.validateReportFiles);f.v(b.allowBrowsersCache)||a.la("allowBrowsersCache",b.allowBrowsersCache);f.v(b.showEmptyValues)||a.la("showEmptyValues",b.showEmptyValues);f.v(b.distinguishNullUndefinedEmpty)||a.la("distinguishNullUndefinedEmpty",
b.distinguishNullUndefinedEmpty);f.v(b.useCaptionsInCalculatedValueEditor)||a.la("useCaptionsInCalculatedValueEditor",b.useCaptionsInCalculatedValueEditor);!f.v(b.expandExecutionTimeout)&&b.expandExecutionTimeout>a.Ld.expandExecutionTimeout&&a.la("expandExecutionTimeout",parseInt(b.expandExecutionTimeout));f.v(b.readOnly)||a.la("readOnly",b.readOnly);return a};d.wl=function(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);f.v(b.filterWeekOffset)||(a.filterWeekOffset=b.filterWeekOffset);f.v(b.filterDateFormat)||(a.filterDateFormat=b.filterDateFormat);
f.v(b.filterLiveSearch)||(a.filterLiveSearch=b.filterLiveSearch);f.v(b.validateFormulas)||(a.validateFormulas=b.validateFormulas);f.v(b.caseSensitiveMembers)||(a.caseSensitiveMembers=b.caseSensitiveMembers);f.v(b.simplifyFieldListFolders)||(a.simplifyFieldListFolders=b.simplifyFieldListFolders);f.v(b.validateReportFiles)||(a.validateReportFiles=b.validateReportFiles);f.v(b.allowBrowsersCache)||(a.allowBrowsersCache=b.allowBrowsersCache);f.v(b.showEmptyValues)||(a.showEmptyValues=b.showEmptyValues);
f.v(b.distinguishNullUndefinedEmpty)||(a.distinguishNullUndefinedEmpty=b.distinguishNullUndefinedEmpty);f.v(b.useCaptionsInCalculatedValueEditor)||(a.useCaptionsInCalculatedValueEditor=b.useCaptionsInCalculatedValueEditor);f.v(b.expandExecutionTimeout)||(a.expandExecutionTimeout=b.expandExecutionTimeout);f.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=[];var e;Array.isArray(c.activeMeasure)?e=c.activeMeasure:"object"===typeof c.activeMeasure?e=[c.activeMeasure]:"string"===typeof c.activeMeasure&&
(e=c.activeMeasure.split(","));if(!f.v(e))for(var g=0;g<e.length;g++)if(null!=e[g].uniqueName){var l=new k.bb.Ig(e[g].uniqueName);null!=e[g].aggregation&&(l.$=e[g].aggregation);a.chartActiveMeasures.push(l)}else a.chartActiveMeasures.push(new k.bb.Ig(e[g]))}else a.chartActiveMeasure=new k.bb.Ig,null!=c.activeMeasure.uniqueName?(a.chartActiveMeasure.uniqueName=c.activeMeasure.uniqueName,null!=c.activeMeasure.aggregation&&(a.chartActiveMeasure.$=c.activeMeasure.aggregation)):a.chartActiveMeasure.uniqueName=
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)}f.v(b.filter)||(b=b.filter,f.v(b.weekOffset)||(a.filterWeekOffset=b.weekOffset),f.v(b.dateFormat)||(a.filterDateFormat=b.dateFormat),f.v(b.liveSearch)||(a.filterLiveSearch=b.liveSearch));return a};d.prototype.La=function(){var b={};null!=this.viewType&&
(b.viewType=this.viewType);var a={};this.gridType===f.K.X.ie.Ez?a.type=f.K.X.ie.Ez:this.gridType===f.K.X.ie.Cu?a.type=f.K.X.ie.Cu:this.gridType===f.K.X.ie.ih&&(a.type=f.K.X.ie.ih);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);x.Mc.og(a)||(b.grid=a);a={};null!=this.chartType&&(a.type=this.chartType);null!=this.chartTitle&&(a.title=this.chartTitle);null!=this.showFilterInCharts&&(a.showFilter=this.showFilterInCharts);null!=this.chartMultipleMeasures&&(a.multipleMeasures=this.chartMultipleMeasures);null!=this.chartOneLevel&&(a.oneLevel=this.chartOneLevel);null!=this.chartAutoRange&&(a.autoRange=
this.chartAutoRange);null!=this.chartReversedAxes&&(a.reversedAxes=this.chartReversedAxes);null!=this.showChartLegend&&(a.showLegend=this.showChartLegend);null!=this.showChartLegendButton&&(a.showLegendButton=this.showChartLegendButton);null!=this.showChartDataLabels&&(a.showDataLabels=this.showChartDataLabels);null!=this.showAllChartLabels&&(a.showAllLabels=this.showAllChartLabels);null!=this.showChartMeasures&&(a.showMeasures=this.showChartMeasures);null!=this.showChartOneMeasureSelection&&(a.showOneMeasureSelection=
this.showChartOneMeasureSelection);null!=this.showChartsWarning&&(a.showWarning=this.showChartsWarning);null!=this.chartAxisShortNumberFormat&&(a.axisShortNumberFormat=this.chartAxisShortNumberFormat);this.viewType==f.K.xd.fn&&null!=this.chartPosition&&(a.position=this.chartPosition);this.chartType==f.K.td.xe.Ou&&null!=this.chartActiveTupleIndex&&(a.pieDataIndex=this.chartActiveTupleIndex.toString());if(1==this.chartMultipleMeasures){if(null!=this.chartActiveMeasures){for(var c=[],e=0;e<this.chartActiveMeasures.length;e++){var g=
{};g.uniqueName=this.chartActiveMeasures[e].uniqueName;null!=this.chartActiveMeasures[e].$&&""!==this.chartActiveMeasures[e].$&&(g.aggregation=this.chartActiveMeasures[e].$);c.push(g)}0<c.length&&(a.activeMeasure=c)}}else null!=this.chartActiveMeasure&&(g={},g.uniqueName=this.chartActiveMeasure.uniqueName,null!=this.chartActiveMeasure.$&&""!=this.chartActiveMeasure.$&&(g.aggregation=this.chartActiveMeasure.$),a.activeMeasure=g);!0===this.chartOneLevel&&null!=this.chartOneLevelTuple&&0<this.chartOneLevelTuple.length&&
(a.oneLevelTuple=this.chartOneLevelTuple.join(","));!0===this.chartOneLevel&&null!=this.chartOneLevelColumnTuple&&0<this.chartOneLevelColumnTuple.length&&(a.oneLevelColumnTuple=this.chartOneLevelColumnTuple.join(","));x.Mc.og(a)||(b.chart=a);a={};f.v(this.filterWeekOffset)||(a.weekOffset=this.filterWeekOffset);f.v(this.filterDateFormat)||(a.dateFormat=this.filterDateFormat);f.v(this.filterLiveSearch)||(a.liveSearch=this.filterLiveSearch);x.Mc.og(a)||(b.filter=a);null!=this.configuratorActive&&(b.configuratorActive=
this.configuratorActive);null!=this.configuratorButton&&(b.configuratorButton=this.configuratorButton);null!=this.showAggregations&&(b.showAggregations=this.showAggregations);null!=this.showCalculatedValuesButton&&(b.showCalculatedValuesButton=this.showCalculatedValuesButton);null!=this.grouping&&(b.grouping=this.grouping);null!=this.editing&&(b.editing=this.editing);null!=this.drillThrough&&(b.drillThrough=this.drillThrough);null!=this.showDrillThroughConfigurator&&(b.showDrillThroughConfigurator=
this.showDrillThroughConfigurator);null!=this.sorting&&(b.sorting=this.sorting);null!=this.defaultDateType&&(b.defaultDateType=this.defaultDateType);null!=this.strictDataTypes&&(b.strictDataTypes=this.strictDataTypes);null!=this.datePattern&&(b.datePattern=this.datePattern);null!=this.dateTimePattern&&(b.dateTimePattern=this.dateTimePattern);null!=this.dateTimezoneOffset&&(b.dateTimezoneOffset=this.dateTimezoneOffset);null!=this.timePattern&&(b.timePattern=this.timePattern);null!=this.saveAllFormats&&
(b.saveAllFormats=this.saveAllFormats);null!=this.showDefaultSlice&&(b.showDefaultSlice=this.showDefaultSlice);null!=this.useOlapFormatting&&(b.useOlapFormatting=this.useOlapFormatting);null!=this.showMemberProperties&&(b.showMemberProperties=this.showMemberProperties);null!=this.showEmptyData&&(b.showEmptyData=this.showEmptyData);null!=this.defaultHierarchySortName&&(b.defaultHierarchySortName=this.defaultHierarchySortName);!0===this.calculatedValuesOLAP&&(b.calculatedValuesOLAP=this.calculatedValuesOLAP);
!0===this.includeEmptySubtotalsOLAP&&(b.includeEmptySubtotalsOLAP=this.includeEmptySubtotalsOLAP);null!=this.showOutdatedDataAlert&&(b.showOutdatedDataAlert=this.showOutdatedDataAlert);null!=this.showAggregationLabels&&(b.showAggregationLabels=this.showAggregationLabels);null!=this.showAllFieldsDrillThrough&&(b.showAllFieldsDrillThrough=this.showAllFieldsDrillThrough);null!=this.liveFiltering&&(b.liveFiltering=this.liveFiltering);null!=this.fieldListPosition&&(b.fieldListPosition=this.fieldListPosition);
null!=this.showFieldListSearch&&(b.showFieldListSearch=this.showFieldListSearch);f.v(this.validateFormulas)||(b.validateFormulas=this.validateFormulas);f.v(this.caseSensitiveMembers)||(b.caseSensitiveMembers=this.caseSensitiveMembers);f.v(this.simplifyFieldListFolders)||(b.simplifyFieldListFolders=this.simplifyFieldListFolders);f.v(this.validateReportFiles)||(b.validateReportFiles=this.validateReportFiles);f.v(this.allowBrowsersCache)||(b.allowBrowsersCache=this.allowBrowsersCache);f.v(this.showEmptyValues)||
(b.showEmptyValues=this.showEmptyValues);f.v(this.distinguishNullUndefinedEmpty)||(b.distinguishNullUndefinedEmpty=this.distinguishNullUndefinedEmpty);f.v(this.useCaptionsInCalculatedValueEditor)||(b.useCaptionsInCalculatedValueEditor=this.useCaptionsInCalculatedValueEditor);!f.v(this.expandExecutionTimeout)&&this.expandExecutionTimeout>this.Ld.expandExecutionTimeout&&(b.expandExecutionTimeout=this.expandExecutionTimeout);f.v(this.readOnly)||(b.readOnly=this.readOnly);return b};d.Qj=function(b){var a=
b.find("params"),c=new d;0!=a.find("param[name=configuratorActive]").length&&c.la("configuratorActive",f.O.Rc(a.find("param[name=configuratorActive]").text()));0!=a.find("param[name=configuratorButton]").length&&c.la("configuratorButton",f.O.Rc(a.find("param[name=configuratorButton]").text()));0!=a.find("param[name=viewType]").length&&c.la("viewType",a.find("param[name=viewType]").text());0!=a.find("param[name=gridTitle]").length&&c.la("gridTitle",a.find("param[name=gridTitle]").text());0!=a.find("param[name=showFilter]").length&&
c.la("showFilter",f.O.Rc(a.find("param[name=showFilter]").text()));0!=a.find("param[name=showFilterInCharts]").length&&c.la("showFilterInCharts",f.O.Rc(a.find("param[name=showFilterInCharts]").text()));0!=a.find("param[name=showAggregations]").length&&c.la("showAggregations",f.O.Rc(a.find("param[name=showAggregations]").text()));0!=a.find("param[name=showHierarchyCaptions]").length&&c.la("showHierarchyCaptions",f.O.Rc(a.find("param[name=showHierarchyCaptions]").text()));0!=a.find("param[name=showHeaders]").length&&
c.la("showHeaders",f.O.Rc(a.find("param[name=showHeaders]").text()));0!=a.find("param[name=showReportFiltersArea]").length&&c.la("showReportFiltersArea",f.O.Rc(a.find("param[name=showReportFiltersArea]").text()));0!=a.find("param[name=showExtraTotalLabels]").length&&c.la("showExtraTotalLabels",f.O.Rc(a.find("param[name=showExtraTotalLabels]").text()));0!=a.find("param[name=editing]").length&&c.la("editing",f.O.Rc(a.find("param[name=editing]").text()));0!=a.find("param[name=grouping]").length&&c.la("grouping",
f.O.Rc(a.find("param[name=grouping]").text()));0!=a.find("param[name=drillThrough]").length&&c.la("drillThrough",f.O.Rc(a.find("param[name=drillThrough]").text()));0!=a.find("param[name=showDrillThroughConfigurator]").length&&c.la("showDrillThroughConfigurator",f.O.Rc(a.find("param[name=showDrillThroughConfigurator]").text()));0!=a.find("param[name=sorting]").length&&c.la("sorting",a.find("param[name=sorting]").text());0!=a.find("param[name=showHierarchies]").length&&c.la("showHierarchies",f.O.Rc(a.find("param[name=showHierarchies]").text()));
0!=a.find("param[name=showTotals]").length&&(c.la("showTotals",a.find("param[name=showTotals]").text()),"true"==c.R("showTotals").toString().toLowerCase()&&c.la("showTotals","on"),"false"==c.R("showTotals").toString().toLowerCase()&&c.la("showTotals","off"));0!=a.find("param[name=showGrandTotals]").length&&(c.la("showGrandTotals",a.find("param[name=showGrandTotals]").text()),"true"==c.R("showGrandTotals").toString().toLowerCase()&&c.la("showGrandTotals","on"),"false"==c.R("showGrandTotals").toString().toLowerCase()&&
c.la("showGrandTotals","off"));0!=a.find("param[name=showDefaultSlice]").length&&c.la("showDefaultSlice",f.O.Rc(a.find("param[name=showDefaultSlice]").text()));0!=a.find("param[name=useOlapFormatting]").length&&c.la("useOlapFormatting",f.O.Rc(a.find("param[name=useOlapFormatting]").text()));0!=a.find("param[name=showMemberProperties]").length&&c.la("showMemberProperties",f.O.Rc(a.find("param[name=showMemberProperties]").text()));0!=a.find("param[name=showEmptyData]").length&&c.la("showEmptyData",
f.O.Rc(a.find("param[name=showEmptyData]").text()));0!=a.find("param[name=showChartDataLabels]").length&&c.la("showChartDataLabels",f.O.Rc(a.find("param[name=showChartDataLabels]").text()));0!=a.find("param[name=showAllChartLabels]").length&&c.la("showAllChartLabels",f.O.Rc(a.find("param[name=showAllChartLabels]").text()));0!=a.find("param[name=strictDataTypes]").length&&c.la("strictDataTypes",f.O.Rc(a.find("param[name=strictDataTypes]").text()));0!=a.find("param[name=defaultDateType]").length&&c.la("defaultDateType",
a.find("param[name = defaultDateType]").text());0!=a.find("param[name=datePattern]").length&&c.la("datePattern",a.find("param[name = datePattern]").text());0!=a.find("param[name=dateTimePattern]").length&&c.la("dateTimePattern",a.find("param[name = dateTimePattern]").text());0!=a.find("param[name=classicView]").length&&1==f.O.Rc(a.find("param[name=classicView]").text())&&c.la("gridType",f.K.X.ie.Cu);b=b.find("dataSource");void 0!==b.attr("tableType")&&b.attr("tableType")==f.K.X.ie.ih&&c.la("gridType",
f.K.X.ie.ih);0!=a.find("param[name=flatView]").length&&1==f.O.Rc(a.find("param[name=flatView]").text())&&c.la("gridType",f.K.X.ie.ih);0!=a.find("param[name=defaultHierarchySortName]").length?c.la("defaultHierarchySortName",f.u.i.xa.Cg(a.find("param[name = defaultHierarchySortName]").text())?a.find("param[name=defaultHierarchySortName]").text():f.u.i.xa.bc):c.la("defaultHierarchySortName",c.R("gridType")==f.K.X.ie.ih?f.u.i.xa.Zc:f.u.i.xa.bc);0!=a.find("param[name=showCalculatedValuesButton]").length&&
c.la("showCalculatedValuesButton",f.O.Rc(a.find("param[name = showCalculatedValuesButton]").text()));0!=a.find("param[name=showOutdatedDataAlert]").length&&c.la("showOutdatedDataAlert",f.O.Rc(a.find("param[name = showOutdatedDataAlert]").text()));if(0!=a.find("param[name=chartType]").length){var e=a.find("param[name=chartType]");c.la("chartType",e.text());if(void 0!==e.attr("activeMeasure")){c.la("chartActiveMeasure",new k.bb.Ig(e.attr("activeMeasure")));void 0!==e.attr("activeMeasureAggregation")&&
c.la("chartActiveMeasure.aggregation",e.attr("activeMeasureAggregation"));var g=[],l=e.attr("activeMeasure").split(","),m=void 0!==e.attr("activeMeasureAggregation")?e.attr("activeMeasureAggregation").split(","):[];for(b=0;b<l.length;b++){var n=new k.bb.Ig(l[b]);m[b]&&(n.$=m[b]);g.push(n)}0<g.length&&c.la("chartActiveMeasures",g)}void 0!==e.attr("pieDataIndex")&&c.la("chartActiveTupleIndex",parseInt(e.attr("pieDataIndex")));void 0!==e.attr("position")&&c.la("chartPosition",e.attr("position"));if(void 0!==
e.attr("chartOneLevelTuple")){e=e.attr("chartOneLevelTuple").split(",");c.la("chartOneLevelTuple",[]);g=[];for(b=0;b<e.length;b++)g[b]=parseInt(e[b]);c.la("chartOneLevelTuple",g)}}0!=a.find("param[name=chartOneLevel]").length&&c.la("chartOneLevel",f.O.Rc(a.find("param[name=chartOneLevel]").text()));0!=a.find("param[name=chartTitle]").length&&c.la("chartTitle",a.find("param[name=chartTitle]").text());0!=a.find("param[name=chartMultipleMeasures]").length&&c.la("chartMultipleMeasures",f.O.Rc(a.find("param[name=chartMultipleMeasures]").text()));
0!=a.find("param[name=chartAutoRange]").length&&c.la("chartAutoRange",f.O.Rc(a.find("param[name=chartAutoRange]").text()));0!=a.find("param[name=chartReversedAxes]").length&&c.la("chartReversedAxes",f.O.Rc(a.find("param[name=chartReversedAxes]").text()));0!=a.find("param[name=showChartsWarning]").length&&c.la("showChartsWarning",f.O.Rc(a.find("param[name=showChartsWarning]").text()));0!=a.find("param[name=showChartOneMeasureSelection]").length&&c.la("showChartOneMeasureSelection",f.O.Rc(a.find("param[name=showChartOneMeasureSelection]").text()));
0!=a.find("param[name=showChartMeasures]").length&&c.la("showChartMeasures",f.O.Rc(a.find("param[name=showChartMeasures]").text()));0!=a.find("param[name=showChartLegendButton]").length&&c.la("showChartLegendButton",f.O.Rc(a.find("param[name=showChartLegendButton]").text()));0!=a.find("param[name=saveAllFormats]").length&&c.la("saveAllFormats",f.O.Rc(a.find("param[name=saveAllFormats]").text()));0!=a.find("param[name=calculatedValuesOLAP]").length&&c.la("calculatedValuesOLAP",f.O.Rc(a.find("param[name=calculatedValuesOLAP]").text()));
0!=a.find("param[name=includeEmptySubtotalsOLAP]").length&&c.la("includeEmptySubtotalsOLAP",f.O.Rc(a.find("param[name=includeEmptySubtotalsOLAP]").text()));return c};d.prototype.co=function(){var b=D.aa.create("<params/>");null!=this.R("configuratorActive")&&b.append(D.aa.create("<param/>").attr("name","configuratorActive").text(this.R("configuratorActive")));null!=this.R("configuratorButton")&&b.append(D.aa.create("<param/>").attr("name","configuratorButton").text(this.R("configuratorButton")));
null!=this.R("viewType")&&b.append(D.aa.create("<param/>").attr("name","viewType").text(this.R("viewType")));null!=this.R("gridTitle")&&b.append(D.aa.create("<param/>").attr("name","gridTitle").text(this.R("gridTitle")));null!=this.R("chartTitle")&&b.append(D.aa.create("<param/>").attr("name","chartTitle").text(this.R("chartTitle")));null!=this.R("showFilter")&&b.append(D.aa.create("<param/>").attr("name","showFilter").text(this.R("showFilter")));null!=this.R("showFilterInCharts")&&b.append(D.aa.create("<param/>").attr("name",
"showFilterInCharts").text(this.R("showFilterInCharts")));null!=this.R("showAggregations")&&b.append(D.aa.create("<param/>").attr("name","showAggregations").text(this.R("showAggregations")));null!=this.R("showHierarchyCaptions")&&b.append(D.aa.create("<param/>").attr("name","showHierarchyCaptions").text(this.R("showHierarchyCaptions")));null!=this.R("chartOneLevel")&&b.append(D.aa.create("<param/>").attr("name","chartOneLevel").text(this.R("chartOneLevel")));null!=this.R("chartAutoRange")&&b.append(D.aa.create("<param/>").attr("name",
"chartAutoRange").text(this.R("chartAutoRange")));null!=this.R("chartReversedAxes")&&b.append(D.aa.create("<param/>").attr("name","chartReversedAxes").text(this.R("chartReversedAxes")));null!=this.R("chartMultipleMeasures")&&b.append(D.aa.create("<param/>").attr("name","chartMultipleMeasures").text(this.R("chartMultipleMeasures")));null!=this.R("showHeaders")&&b.append(D.aa.create("<param/>").attr("name","showHeaders").text(this.R("showHeaders")));null!=this.R("showReportFiltersArea")&&b.append(D.aa.create("<param/>").attr("name",
"showReportFiltersArea").text(this.R("showReportFiltersArea")));null!=this.R("showExtraTotalLabels")&&b.append(D.aa.create("<param/>").attr("name","showExtraTotalLabels").text(this.R("showExtraTotalLabels")));null!=this.R("editing")&&b.append(D.aa.create("<param/>").attr("name","editing").text(this.R("editing")));null!=this.R("grouping")&&b.append(D.aa.create("<param/>").attr("name","grouping").text(this.R("grouping")));null!=this.R("drillThrough")&&b.append(D.aa.create("<param/>").attr("name","drillThrough").text(this.R("drillThrough")));
null!=this.R("showDrillThroughConfigurator")&&b.append(D.aa.create("<param/>").attr("name","showDrillThroughConfigurator").text(this.R("showDrillThroughConfigurator")));null!=this.R("sorting")&&b.append(D.aa.create("<param/>").attr("name","sorting").text(this.R("sorting")));null!=this.R("showTotals")&&b.append(D.aa.create("<param/>").attr("name","showTotals").text(this.R("showTotals")));null!=this.R("showHierarchies")&&b.append(D.aa.create("<param/>").attr("name","showHierarchies").text(this.R("showHierarchies")));
null!=this.R("showGrandTotals")&&b.append(D.aa.create("<param/>").attr("name","showGrandTotals").text(this.R("showGrandTotals")));null!=this.R("defaultDateType")&&b.append(D.aa.create("<param/>").attr("name","defaultDateType").text(this.R("defaultDateType")));null!=this.R("strictDataTypes")&&b.append(D.aa.create("<param/>").attr("name","strictDataTypes").text(this.R("strictDataTypes")));null!=this.R("datePattern")&&b.append(D.aa.create("<param/>").attr("name","datePattern").text(this.R("datePattern")));
null!=this.R("dateTimePattern")&&b.append(D.aa.create("<param/>").attr("name","dateTimePattern").text(this.R("dateTimePattern")));null!=this.R("showChartsWarning")&&b.append(D.aa.create("<param/>").attr("name","showChartsWarning").text(this.R("showChartsWarning")));null!=this.R("showChartOneMeasureSelection")&&b.append(D.aa.create("<param/>").attr("name","showChartOneMeasureSelection").text(this.R("showChartOneMeasureSelection")));null!=this.R("showChartMeasures")&&b.append(D.aa.create("<param/>").attr("name",
"showChartMeasures").text(this.R("showChartMeasures")));null!=this.R("showChartLegendButton")&&b.append(D.aa.create("<param/>").attr("name","showChartLegendButton").text(this.R("showChartLegendButton")));null!=this.R("saveAllFormats")&&b.append(D.aa.create("<param/>").attr("name","saveAllFormats").text(this.R("saveAllFormats")));1==this.R("calculatedValuesOLAP")&&b.append(D.aa.create("<param/>").attr("name","calculatedValuesOLAP").text(this.R("calculatedValuesOLAP")));1==this.R("includeEmptySubtotalsOLAP")&&
b.append(D.aa.create("<param/>").attr("name","includeEmptySubtotalsOLAP").text(this.R("includeEmptySubtotalsOLAP")));null!=this.R("defaultHierarchySortName")&&b.append(D.aa.create("<param/>").attr("name","defaultHierarchySortName").text(this.R("defaultHierarchySortName")));null!=this.R("gridType")&&this.R("gridType")==f.K.X.ie.Cu&&b.append(D.aa.create("<param/>").attr("name","classicView").text(!0));null!=this.R("gridType")&&this.R("gridType")==f.K.X.ie.ih&&b.append(D.aa.create("<param/>").attr("name",
"flatView").text(!0));null!=this.R("showDefaultSlice")&&b.append(D.aa.create("<param/>").attr("name","showDefaultSlice").text(this.R("showDefaultSlice")));null!=this.R("showEmptyData")&&b.append(D.aa.create("<param/>").attr("name","showEmptyData").text(this.R("showEmptyData")));null!=this.R("showMemberProperties")&&b.append(D.aa.create("<param/>").attr("name","showMemberProperties").text(this.R("showMemberProperties")));null!=this.R("useOlapFormatting")&&b.append(D.aa.create("<param/>").attr("name",
"useOlapFormatting").text(this.R("useOlapFormatting")));null!=this.R("showChartDataLabels")&&b.append(D.aa.create("<param/>").attr("name","showChartDataLabels").text(this.R("showChartDataLabels")));null!=this.R("showAllChartLabels")&&b.append(D.aa.create("<param/>").attr("name","showAllChartLabels").text(this.R("showAllChartLabels")));null!=this.R("showCalculatedValuesButton")&&b.append(D.aa.create("<param/>").attr("name","showCalculatedValuesButton").text(this.R("showCalculatedValuesButton")));null!=
this.R("showOutdatedDataAlert")&&b.append(D.aa.create("<param/>").attr("name","showOutdatedDataAlert").text(this.R("showOutdatedDataAlert")));var a=D.aa.create("<param/>").attr("name","chartType").text(null!=this.R("chartType")?this.R("chartType"):this.Ld.chartType);null!=this.R("chartActiveTupleIndex")&&a.attr("pieDataIndex",this.R("chartActiveTupleIndex").toString());a.attr("position",this.R("chartPosition"));if(this.R("chartMultipleMeasures")&&null!=this.R("chartActiveMeasures")){for(var c=[],
e=[],g=0;g<this.R("chartActiveMeasures").length;g++)c.push(this.R("chartActiveMeasures")[g].uniqueName),e.push(this.R("chartActiveMeasures")[g].$);0<c.length&&a.attr("activeMeasure",c.join(","));0<e.length&&a.attr("activeMeasureAggregation",e.join(","))}else null!=this.R("chartActiveMeasure")&&(a.attr("activeMeasure",this.R("chartActiveMeasure").uniqueName),null!=this.R("chartActiveMeasure").$&&""!=this.R("chartActiveMeasure").$&&a.attr("activeMeasureAggregation",this.R("chartActiveMeasure").$));
this.R("chartOneLevel")&&0<this.R("chartOneLevelTuple").length&&a.attr("chartOneLevelTuple",this.R("chartOneLevelTuple").join(","));b.append(a);return b};d.prototype.IC=function(b){for(var a in b)this.Ld.hasOwnProperty(a)&&void 0!=b[a]&&(this[a]=b[a])};h.Qp=d})(k.B||(k.B={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;if(null!=d.instance)throw Error("Singleton");return b}u(d,y.Fc);d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){d.conditions=null;d.instance=null};d.add=function(b){null!=b&&(d.conditions.Pa(b.id,b),this.Ya())};d.get=function(b){return d.conditions.getItem(b)};d.remove=function(b){d.conditions.removeItem(b);this.Ya()};d.v3=function(){d.conditions=new f.nb;this.Ya()};d.oza=function(){for(var b=
[],a=0;a<d.conditions.length;a++){var c=d.conditions.ea(a);c.n1||b.push(c.La())}return b};d.Ya=function(){d.U().Wa(k.cc.fd.lm)};d.conditions=new f.nb;h.gm=d})(k.ta||(k.ta={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){this.id="";this.qt=this.bs=-1;this.qe=this.hierarchy=this.Xb=this.$=this.measure="";this.Sd=[];this.ZF=null}a.prototype.La=function(){var c={};c.id=this.id;c.row=this.bs;c.column=this.qt;void 0!==this.Tj&&(c.isTotal=this.Tj);c.measure=this.measure;c.aggregation=this.$;c.member=this.Xb;c.hierarchy=this.hierarchy;c.formula=this.qe;null!=this.format&&(c.format=this.format.La(),c.formatCSS=this.format.toString());return c};
a.tb=function(c){var e=new a;e.id=null!=c.id?c.id:f.O.aL();null!=c.row&&(e.bs=c.row);null!=c.column&&(e.qt=c.column);if(null!=c.isTotal){if(1==c.isTotal||1==c.isTotal)e.Tj=!0;if(0==c.isTotal||0==c.isTotal)e.Tj=!1}null!=c.measure&&(e.measure=c.measure);null!=c.aggregation&&(e.$=c.aggregation);null!=c.member&&(e.Xb=f.u.me.Or(c.member));null!=c.hierarchy&&(e.hierarchy=f.u.me.zg(c.hierarchy));e.qe=c.formula;null!=c.format&&(e.format="string"===typeof c.format?b.aS(c.format):b.tb(c.format));c=new x.BI;
e.Sd=c.parse(e.qe);return null==e.Sd?null:e};q.Object.defineProperties(a.prototype,{n1:{configurable:!0,enumerable:!0,get:function(){return-1<this.qe.toLowerCase().indexOf(f.u.i.jc.lP)||-1<this.qe.toLowerCase().indexOf(f.u.i.jc.mP)}}});d.Q5=a;b.tb=function(c){var e=new b;if(null==c)return e;null!=c.backgroundColor&&(e.backgroundColor=b.color(c.backgroundColor));null!=c.color&&(e.color=b.color(c.color));null!=c.fontFamily&&(e.fontFamily=c.fontFamily);null!=c.fontSize&&(e.fontSize=b.size(c.fontSize));
null!=c.italic&&c.italic&&(e.fontStyle="italic");null!=c.fontStyle&&(e.fontStyle=c.fontStyle);null!=c.bold&&c.bold&&(e.fontWeight="bold");null!=c.fontWeight&&(e.fontWeight=c.fontWeight);null!=c.padding&&(e.padding=b.size(Math.round(1.5*c.padding)));null!=c.textAlign&&(e.textAlign=c.textAlign);null!=c.textIndent&&(e.textIndent=b.size(c.textIndent));return e};b.aS=function(c){var e={};c=c.split(";");if(null!=c)for(var g=0;g<c.length;g++){var l=c[g].split(":")[0];""!=l&&(e[l]=c[g].split(":")[1])}return b.tb(e)};
b.prototype.La=function(){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};
b.prototype.Iha=function(){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};b.prototype.toString=function(){var c="",e=this.Iha(),g;for(g in e)c+=g+":"+e[g]+";";return c};b.color=function(c){return c.replace("0x","#")};b.size=function(c){return"number"==typeof c?c+"px":"string"==typeof c&&0>c.indexOf("px")?c.trim()+"px":c};d.TKa=b})(h.W||(h.W={}))})(k.ta||(k.ta={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){var h;(function(d){function b(){var a=y.Fc.call(this)||this;if(null!=b.instance)throw Error("Singleton");return a}u(b,y.Fc);b.U=function(){null==b.instance&&(b.instance=new b);return b.instance};b.dispose=function(){b.rowFilterSizes=null;b.rowHeaderSizes=null;b.rowSizes=null;b.rowSizesByIdx=null;b.sQ=null;b.XE=null;b.columnHeaderSizes=null;b.columnSizes=null;b.columnSizesByIdx=null;b.AP=null;b.CE=null;b.instance=null};b.clear=function(){b.rowSizes={};b.columnSizes={};b.XE=
{};b.sQ={};b.CE={};b.AP={};b.rowSizesByIdx={};b.columnSizesByIdx={};b.rowHeaderSizes=[];b.columnHeaderSizes=[];b.rowFilterSizes=[]};b.cZ=function(a){if(b.C$(a.rowSizes)||b.C$(a.columnSizes))b.XE=b.daa(a.rowSizes),b.CE=b.daa(a.columnSizes),b.Qfa();else if(b.D$(a.rowSizes)||b.D$(a.columnSizes))b.XE=a.rowSizes,b.CE=a.columnSizes,b.Qfa();b.rowSizesByIdx=a.rowSizesByIdx;b.columnSizesByIdx=a.columnSizesByIdx;b.rowHeaderSizes=a.rowHeaderSizes;b.columnHeaderSizes=a.columnHeaderSizes;b.rowFilterSizes=a.rowFilterSizes};
b.Qfa=function(){k.Ta.U().Ga.cD==k.cc.fd.Oh?this.ip():f.u.Na.U().N(f.u.cg.hk,b.ip,1)};b.C$=function(a){var c=/[A-Za-z]+/,e;for(e in a)if(-1<a[e].toString().search(c))return!0;return!1};b.D$=function(a){var c=/[A-Za-z]+/,e;for(e in a)if(-1<e.toString().search(c))return!0;return!1};b.daa=function(a){var c={};if(null!=a)for(var e in a){var g=a[e];if(Array.isArray(g)&&0<g.length){var l=parseInt(g.pop());c[g.toString()]=l}}return c};b.ip=function(){f.u.Na.U().mb(f.u.cg.hk,b.ip);b.rowSizes=b.tb(f.u.i.ia.Ia);
b.XE={};b.columnSizes=b.tb(f.u.i.ia.Sa);b.CE={}};b.tb=function(a){var c={},e=a==f.u.i.ia.Ia?b.XE:b.CE,g=f.u.Na.U().sa.ad(),l;for(l in e){var m=l.split(","),n=e[l],p=f.u.Na.U().sa.axes.getItem(a).Ra;if(p&&!k.B.C.oc)if(f.u.i.ca.rz(m[m.length-1])||""==m[m.length-1]&&(""==m[m.length-2]||null!=g.find(function(E){return E.uniqueName===m[m.length-2]}))){var t=new k.bb.Ig(m[m.length-2],m[m.length-1]);m.splice(m.length-2,2)}else t=new k.bb.Ig(m[m.length-1]),m.splice(m.length-1,1);for(var r=!1,v=[],z=0;z<m.length;z++)if(k.B.C.oc)if(a==
f.u.i.ia.Ia)v.push(m[z]);else{var B=m[z];B=f.u.Na.U().qa.le.indexOf(B);if(-1==B){r=!0;break}v.push(B)}else{B=f.u.me.Or(m[z]);var C=a==f.u.i.ia.Ia?f.u.Na.U().sa.vb.ea(z):f.u.Na.U().sa.Cb.ea(z);if(void 0==C){r=!0;break}B=C.Db(B);if(null==B){r=!0;break}B.Wb?v.push(""):v.push(B.ordinal.toString())}if(!r){if(p&&!k.B.C.oc){p=(p=f.u.Na.U().sa.Zh(t))?p.index:-1;if(-1==p&&""!=t.uniqueName)continue;v.push(p)}c[v.toString()]=n}}return c};b.La=function(a){var c={},e=a==f.u.i.ia.Ia?b.rowSizes:b.columnSizes,g=
f.v(f.u.Na.U().sa)?[]:f.u.Na.U().sa.ad(),l;for(l in e){var m=l.split(","),n=e[l],p=f.u.Na.U().sa.axes.getItem(a).Ra;if(p&&!k.B.C.oc){var t=parseInt(m[m.length-1]);m.splice(m.length-1,1)}for(var r=!1,v=[],z=0;z<m.length;z++)if(k.B.C.oc)if(a==f.u.i.ia.Ia)v.push(m[z]);else{var B=""===m[z]?0:parseInt(m[z]);B=f.u.Na.U().qa.le[B];if(null==B){r=!0;break}v.push(B)}else{B=""===m[z]?0:parseInt(m[z]);var C=a==f.u.i.ia.Ia?f.u.Na.U().sa.vb.ea(z):f.u.Na.U().sa.Cb.ea(z);if(null==C){r=!0;break}B=C.va(B);if(null==
B){r=!0;break}v.push(B.Xi)}if(!r){if(p&&!k.B.C.oc){if(t>=g.length)continue;-1==t&&1==g.length&&(t=0);m=g[t];v.push(m?m.uniqueName:"");v.push(m?m.$:"")}c[v.toString()]=n}}return c};b.zG=function(){var a=new k.bb.Wu;a.rowSizes=h.nd.mga;a.columnSizes=h.nd.U$;a.rowHeaderSizes=h.nd.rowHeaderSizes;a.columnHeaderSizes=h.nd.columnHeaderSizes;a.rowSizesByIdx=h.nd.rowSizesByIdx;a.columnSizesByIdx=h.nd.columnSizesByIdx;a.rowFilterSizes=h.nd.rowFilterSizes;a.tD=h.nd.tD;return a};q.Object.defineProperties(b,{mga:{configurable:!0,
enumerable:!0,get:function(){return this.sQ=b.La(f.u.i.ia.Ia)}},U$:{configurable:!0,enumerable:!0,get:function(){return this.AP=b.La(f.u.i.ia.Sa)}}});b.rowSizes={};b.columnSizes={};b.tD=0;b.rowSizesByIdx={};b.columnSizesByIdx={};b.rowHeaderSizes=[];b.columnHeaderSizes=[];b.rowFilterSizes=[];b.XE={};b.sQ={};b.CE={};b.AP={};d.nd=b})(h=k.size||(k.size={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.load=function(b,a){if(!f.v(d.XR[b]))return a(null,d.XR[b]);var c=new D.r8;c.N(y.da.Jc,function(){try{var e=f.O.Cva(new Uint8Array(c.response)),g=window.btoa(e);d.XR[b]={name:b.substring(b.lastIndexOf("/")+1,b.lastIndexOf(".")),filename:b.substr(b.lastIndexOf("/")+1),content:g};a(null,d.XR[b])}catch(l){a(l)}});c.N(y.da.ya,function(){a({message:k.A.j.fna,name:null})});c.load(b)};d.XR={};h.P6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w=
{}));
(function(f){(function(k){(function(h){function d(b,a){this.jQ=b;this.iY=a}d.prototype.Sza=function(){var b=void 0===b?d.N8:b;return Math.round(this.Yj*b/d.y9)};d.prototype.Uya=function(){var b=void 0===b?d.N8:b;return Math.round(this.bh*b/d.y9)};d.jia=function(b){return void 0!=b&&d.A9.hasOwnProperty(b.toLocaleLowerCase())?b.toLocaleLowerCase():d.Iva};d.tG=function(b){return this.A9[b]};q.Object.defineProperties(d.prototype,{Yj:{configurable:!0,enumerable:!0,get:function(){return this.jQ}},bh:{configurable:!0,
enumerable:!0,get:function(){return this.iY}}});q.Object.defineProperties(d,{Iva:{configurable:!0,enumerable:!0,get:function(){return d.jqa}}});d.y9=25.4;d.jqa="a4";d.N8=72;d.A9={a0:new d(841,1189),a1:new d(594,841),a2:new d(420,594),a3:new d(297,420),a4:new d(210,297),a5:new d(148,210)};h.ax=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e){c=void 0===c?!1:c;e=void 0===e?null:e;switch(a.type){case h.Li.Lu:d.NR(b,a,c,e);break;case h.Li.Vz:d.sba(b,a,c,e);break;case h.Li.dA:d.Jwa(b,a,c,e)}};d.MZ=function(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 e=f.K.X.W.Yc.ly(a[c],["fill","stroke","shape-rendering","stroke-width"]);x.Bd().Di&&(e+="stroke-width: 1px");
a[c].attr("style",e);a[c].attr("class","")}a=b.find("text",!0);for(c=0;c<a.length;c++)b=parseInt(a[c].P("font-size")),a[c].attr("style",f.K.X.W.Yc.ly(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","")};d.bZ=function(b,a){b.P("font-family",a.P("font-family"));b.P("font-size",a.P("font-size"));b.P("color",a.P("color"));b.P("border-top",a.P("border-top"));b.P("background",a.P("background"));b.P("padding-top",
a.P("padding-top"));b.P("padding-left",a.P("padding-left"));b.P("padding-right",a.P("padding-right"));b.P("padding-bottom",a.P("padding-bottom"));b.P("overflow","auto");for(var c=a.find(".fm-icon-display"),e=b.find(".fm-icon-display",!0),g=0;g<e.length;g++)e[g].P("display",c.P("display")),e[g].P("width",c.P("width")),e[g].P("height",c.P("height")),e[g].P("margin-right",c.P("margin-right")),e[g].P("vertical-align",c.P("vertical-align")),e[g].P("border-radius",c.P("border-radius")),e[g].text("");c=
a.find(".fm-text-display");e=b.find(".fm-text-display",!0);for(g=0;g<e.length;g++)e[g].P("color",c.P("color")),e[g].P("font-family",c.P("font-family")),e[g].P("font-size",c.P("font-size")),e[g].P("vertical-align",c.P("vertical-align")),e[g].P("margin-bottom",c.P("margin-bottom")||0);c=a.find("ul");e=b.find("ul",!0);for(g=0;g<e.length;g++)e[g].P("list-style-type",c.P("list-style-type")),e[g].P("padding-top",c.P("padding-top")||0),e[g].P("padding-right",c.P("padding-right")||0),e[g].P("padding-bottom",
c.P("padding-bottom")||0),e[g].P("padding-left",c.P("padding-left")||0),e[g].P("margin-top",c.P("margin-top")||0),e[g].P("margin-right",c.P("margin-right")||0),e[g].P("margin-bottom",c.P("margin-bottom")||0),e[g].P("margin-left",c.P("margin-left")||0);c=a.find("td");e=b.find("td",!0);for(g=0;g<e.length;g++)e[g].P("padding-top",c.P("padding-top")),e[g].P("padding-right",c.P("padding-right")),e[g].P("padding-bottom",c.P("padding-bottom")),e[g].P("padding-left",c.P("padding-left")),e[g].P("vertical-align",
c.P("vertical-align"));a=a.find("li",!0);e=b.find("li",!0);for(g=0;g<e.length;g++)e[g].P("padding-left",a[g].P("padding-left")),e[g].P("padding-top",a[g].P("padding-top")),e[g].P("padding-bottom",a[g].P("padding-bottom")),e[g].P("white-space","nowrap");b.find("table").P("width","initial")};d.yK=function(b){var a="";f.ha(b)||(a=b.replace(/##PAGE-NUMBER##/gi,d.Ck++ +""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));return a};d.NR=function(b,a,c,e){c=void 0===c?!1:c;e=void 0===e?null:
e;var g=b.Nl.sr.F.find("svg").clone();try{c||d.wx(k.B.C.Dm,g,b.Nl.Dp.F);c&&(g.attr("viewBox","0 0 "+g.attr("width")+" "+g.attr("height")),g.P("width","100%"));b.F.append(g);d.MZ(g);g.w3("class");var l=D.aa.Cc(D.qX.Pb(g.element));g.remove();if(b.Nl.Te){var m=b.Nl.Te.F.clone();d.bZ(m,b.Nl.Te.F);c&&(m.P("max-width",""),m.P("padding-bottom","20px"));l+=m.element.outerHTML}if(c)return null!=e&&e(l),l;b="<!DOCTYPE html><html><head><meta charset='UTF-8'/><title>{0}</title></head><body>{1}{2}{3}</body></html>";
m="";f.ha(a.zi)||(m=a.zi,m=m.replace(/##PAGE-NUMBER##/gi,""),m=m.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));var n="";f.ha(a.Wi)||(n=a.Wi,n=n.replace(/##PAGE-NUMBER##/gi,""),n=n.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()));b=f.O.bind(b,f.ha(k.B.C.Dm)?k.A.j.YV:k.B.C.Dm,m,l,n);b=D.aa.format(b);0==a.filename.length&&(a.filename="pivotchart.html");h.en.save(b,a);k.Ta.U().Da(new y.da(f.eg.Tg))}catch(p){console.error("Export Charts error:",p);g.remove();f.Va(k.A.j.ys,k.A.j.ya,
f.rb.ya);if(c)return null!=e&&e(""),"";k.Ta.U().Da(new y.da(f.eg.Tg))}};d.pR=function(b){if(null==b)return null;b=b.replace(/##PAGE-NUMBER##/gi,"");b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());return(new A.Aa("div")).P("background","white").P("text-align","left").P("z-index",-1).html(b)};d.sba=function(b,a,c,e){var g=this;c=void 0===c?!1:c;e=void 0===e?null:e;var l=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];x.Bd().Di&&l.unshift("lib/promise.min.js");x.mn.load(l,function(){var m=
document.createElement("canvas"),n=b.Nl.sr.F.find("svg").clone();try{d.wx(k.B.C.Dm,n,b.Nl.Dp.F);n.prepend((new A.Aa("rect")).P("width","100%").P("height","100%").P("fill","white"));d.bga(n);b.F.append(n);d.MZ(n);canvg(m,D.aa.Cc(D.qX.Pb(n.element)));n.remove();var p=(new A.Aa("img")).attr("src",m.toDataURL());c&&p.P("max-width","100%");var t=new A.Aa("div");f.ha(a.zi)||t.append(g.pR(a.zi));t.append(p);t.P("padding-top","10px");t.P("padding-bottom","10px");if(b.Nl.Te){var r=b.Nl.Te.F.clone();r.width=
b.Nl.width;d.bZ(r,b.Nl.Te.F);c&&(r.tj("100%"),r.P("max-width",""));t.append(r)}f.ha(a.Wi)||t.append(g.pR(a.Wi));if(c)return null!=e&&(t.P("position",b.F.P("position")),t.P("top",b.F.P("top")),t.P("bottom",b.F.P("bottom")),t.P("left",b.F.P("left")),t.P("right",b.F.P("right")),t.width=b.cf(),e(t)),t.html();t.P("position","absolute").P("top",0).P("left",0).P("overflow","hidden").P("text-align","center").P("background","white").P("z-index",-1).tj(f.K.Hb.tu);f.K.Hb.zb.F.prepend(t);t.P("left",-t.left-t.width+
"px");html2canvasV1(t.element).then(function(v){t.remove();a.EB==k.bb.lo.eA?h.en.save(v,a):(v=f.O.Baa(v.toDataURL()),0==a.filename.length&&(a.filename="pivotchart.png"),h.en.save(v,a));k.Ta.U().Da(new y.da(f.eg.Tg))})}catch(v){console.error("Export Charts error:",v),n.remove(),null!=t&&t.remove(),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),c&&null!=e?e(""):k.Ta.U().Da(new y.da(f.eg.Tg))}})};d.wx=function(b,a,c){if(0<b.length){var e=f.K.X.W.Yc.ly(c,["font-family","font-size","font-weight","color"]);b=(new A.Aa("text")).attr("x",
"50%").attr("style","text-anchor:middle;"+e).text(b);a.prepend(b);b.attr("y",c.height);b=a.find("g");e=d3v3.transform(b.attr("transform"));e.translate[1]+=c.height;b.attr("transform",e.toString());a.attr("height",parseInt(a.attr("height"))+c.height)}};d.Jwa=function(b,a,c,e){var g=this;c=void 0===c?!1:c;e=void 0===e?null:e;f.za(!0,k.A.j.kE,"...",!0,!0);var l=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];x.Bd().Di&&l.unshift("lib/promise.min.js");x.mn.load(l,function(){d.lb=a;d.Bq=h.ax.jia(a.Bq);
d.Dd=new jspdf.jsPDF(a.RC,"mm",d.Bq,!x.Bd().Di);d.Ne=e;d.sr=b;d.p3=c;d.bh=d.PB-2*d.yh;d.Yj=d.QB-2*d.yh;d.Pf=d.yh;try{d.I1(function(){d.rR(g.lb.zi,g.lb.Wi,function(){return g.o2()})})}catch(m){console.error("Export PDF error:",m),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}})};d.I1=function(b){f.v(d.lb.WR)?b():h.P6.load(d.lb.WR,function(a,c){f.v(a)?f.v(c)||(d.font=c,d.Dd.addFileToVFS(c.filename,c.content),d.Dd.addFont(c.filename,c.name,"normal")):f.Va(a.message,
k.A.j.ya,f.rb.ya);b()})};d.rR=function(b,a,c){var e=null==b,g=null==a;if(e&&g)c();else{if(!e){b=b.replace(/##PAGE-NUMBER##/gi,(d.Ck+1).toString());b=b.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString());var l=new A.Aa("div");l.P("position","absolute");l.P("background","white");l.tj(h.Ke.My(d.QB-2*d.ki));l.html(b);f.K.Hb.zb.F.prepend(l);html2canvasV1(l.element,{scale:h.Ke.kh}).then(function(n){l.remove();d.Tl=n;e=!0;g&&c()})}if(!g){a=a.replace(/##PAGE-NUMBER##/gi,(d.Ck+1).toString());a=a.replace(/##CURRENT-DATE##/gi,
(new Date).toLocaleString());var m=new A.Aa("div");m.P("position","absolute");m.P("background","white");m.tj(h.Ke.My(d.QB-2*d.ki));m.html(a);f.K.Hb.zb.F.prepend(m);html2canvasV1(m.element,{scale:h.Ke.kh}).then(function(n){m.remove();d.Wo=n;g=!0;e&&c()})}}};d.KY=function(b,a){b.addImage(a,"JPEG",d.ki,d.ki,h.Ke.Bf(a.width/h.Ke.kh),h.Ke.Bf(a.height/h.Ke.kh))};d.JY=function(b,a){b.addImage(a,"JPEG",d.ki,d.PB-h.Ke.Bf(d.Wo.height/h.Ke.kh)-d.ki,h.Ke.Bf(a.width/h.Ke.kh),h.Ke.Bf(a.height/h.Ke.kh))};d.CQ=function(){null!=
d.Tl&&d.KY(d.Dd,d.Tl);null!=d.Wo&&d.JY(d.Dd,d.Wo);d.bh=d.PB;d.bh-=f.v(d.Tl)?d.yh:h.Ke.Bf(d.Tl.height/h.Ke.kh)+2*d.ki;d.bh-=f.v(d.Wo)?d.yh:h.Ke.Bf(d.Wo.height/h.Ke.kh)+2*d.ki;d.Pf=f.v(d.Tl)?d.yh:h.Ke.Bf(d.Tl.height/h.Ke.kh)+2*d.ki};d.o2=function(){d.CQ();d.IHa()};d.Zsa=function(b){var a=d.sr.Nl.sr.F.find("svg").clone(),c=document.createElement("canvas");a.prepend((new A.Aa("rect")).P("width","100%").P("height","100%").P("fill","white"));d.bga(a);a.attr("width",parseInt(a.attr("width"))*h.Ke.kh);a.attr("height",
parseInt(a.attr("height"))*h.Ke.kh);d.sr.F.append(a);d.MZ(a);canvg(c,D.aa.Cc(D.qX.Pb(a.element)),{scaleWidth:a.width*h.Ke.kh,scaleHeight:a.height*h.Ke.kh});a.detach();b(c)};d.OBa=function(b){if(f.v(d.sr.Nl.Te))b(null);else{var a=d.sr.Nl.Te.F.clone();a.width=d.sr.Nl.width;d.bZ(a,d.sr.Nl.Te.F);a.P("border","none").P("position","absolute").P("top",0).P("left",0).P("overflow","hidden").P("background","white").P("z-index",-1);d.p3&&a.P("width","100%").P("max-width","");f.K.Hb.zb.F.prepend(a);html2canvasV1(a.element,
{scale:h.Ke.kh}).then(function(c){a.remove();b(c)})}};d.IHa=function(){var b=["lib/html2canvas.v1.min.js","lib/canvg.min.js"];x.Bd().Di&&b.unshift("lib/promise.min.js");x.mn.load(b,function(){try{d.Zsa(function(a){d.OBa(function(c){var e=document.createElement("canvas");e.width=a.width;e.height=a.height+(c?h.Ke.My(d.yh)/2+c.height:0);var g=e.getContext("2d");g.fillStyle="#FFFFFF";g.fillRect(0,0,e.width,e.height);g.drawImage(a,0,0);c&&g.drawImage(c,0,e.height-c.height);d.p3&&null!=d.Ne?(k.B.C.he==
f.K.xd.Ki&&0==d.lb.filename.length&&(d.lb.filename="pivotcharts.pdf"),d.Ne(e)):(d.Pf+=h.Ke.wx(k.B.C.Dm,d.Dd,d.Pf,d.font),c=d.wga(h.Ke.Bf(e.width),h.Ke.Bf(e.height),d.Yj,d.bh),d.Dd.addImage(e,"JPEG",d.yh+c.x,d.Pf,c.width,c.height),0==d.lb.filename.length&&(d.lb.filename="pivotcharts.pdf"),d.lb.EB==k.bb.lo.eA?h.en.save(d.Dd,d.lb):h.en.save(f.O.v4(d.Dd.output()),d.lb),d.clear(),k.Ta.U().Da(new y.da(f.eg.Tg)))})})}catch(a){console.error("Export Charts error:",a),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),d.p3&&
null!=d.Ne?d.Ne(null):k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}})};d.clear=function(){d.sr=null;d.lb=null;d.Dd=null;d.Pf=0;d.bh=0;d.Yj=0;d.Ck=0;d.Tl=null;d.Wo=null};d.bga=function(b){b=b.find("title",!0);for(var a=0;a<b.length;a++)b[a].remove()};d.wga=function(b,a,c,e){var g=0;g=void 0===g?0:g;var l={x:0,y:0,width:0,height:0};if(b>c-2*g||a>e-2*g)e=Math.min((c-2*g)/b,(e-2*g)/a),b*=e,a*=e;l.x=g+(c-2*g-b)/2;l.y=g;l.width=b;l.height=a;return l};q.Object.defineProperties(d,{PB:{configurable:!0,enumerable:!0,
get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.bh:b.Yj}},QB:{configurable:!0,enumerable:!0,get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.Yj:b.bh}}});d.font=null;d.Ne=null;d.ki=5;d.yh=15;d.Bq="a4";d.Ck=0;h.Hz=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c){var e=this;c=void 0===c?null:c;var g=["lib/html2canvas.v1.min.js"];x.Bd().Di&&g.unshift("lib/promise.min.js");x.mn.load(g,function(){d.lb=a;e.Yua();var l=b.F.clone(),m=e.pR(l,c);f.K.Hb.zb.F.prepend(m);null==c?m.yp(l.height+e.yca()):m.yp(f.K.Hb.zb.op()+e.yca());m.P("left",-m.left-m.width+"px");try{html2canvasV1(m.element).then(function(n){d.$Ca(n);m.sg()})}catch(n){console.error("Export Image error:",
n),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),m.sg(),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}},function(){k.Ta.U().Da(new y.da(f.eg.Tg));d.clear()})};d.pR=function(b,a){a=(new A.Aa("div")).P("position","absolute").P("top","0px").P("left","0px").P("overflow","hidden").P("text-align","center").P("background","white").tj(f.K.Hb.tu).P("z-index",-1).append(a);null!=d.Rt&&a.append(d.Rt);a.append(b.P("position","relative"));null!=d.It&&a.append(d.It);return a};d.yca=function(){return(null==this.Rt?0:this.Rt.height)+
(null==this.It?0:this.It.height)};d.Yua=function(){var b=h.ax.tG("a4"),a=this.lb.zi,c=this.lb.Wi,e=null==a,g=null==c;e&&g||(e||(a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.Rt=new A.Aa("div"),this.Rt.P("background","white"),this.Rt.P("text-align","left"),this.Rt.P("z-index",-1),this.Rt.tj(h.Ke.My(b.Yj-2*this.ki)),this.Rt.html(a)),g||(c=c.replace(/##PAGE-NUMBER##/gi,""),c=c.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),this.It=new A.Aa("div"),
this.It.P("background","white"),this.It.P("text-align","left"),this.It.P("z-index",-1),this.It.tj(h.Ke.My(b.Yj-2*this.ki)),this.It.html(c)))};d.$Ca=function(b){if(d.lb.EB==k.bb.lo.eA)h.en.save(b,d.lb);else try{var a=f.O.Baa(b.toDataURL());0==d.lb.filename.length&&(d.lb.filename="pivotgrid.png");f.v(a)||h.en.save(a,d.lb)}catch(c){f.Va("Due to security reason export to image cannot be completed when you run the component from the local folder.",k.A.j.ya,f.rb.ya)}k.Ta.U().Da(new y.da(f.eg.Tg));d.clear()};
d.clear=function(){d.lb=null;d.Rt=null;d.It=null};d.ki=5;h.n6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Wf=function(b,a,c,e,g){var l=this;g=void 0===g?null:g;f.za(!0,k.A.j.kE,"...",!0,!0);var m=["lib/html2canvas.v1.min.js","lib/jspdf.min.js"];x.Bd().Di&&m.unshift("lib/promise.min.js");x.mn.load(m,function(){d.clear();d.JG=k.B.C.oc;d.hT=b instanceof f.K.vf.WD;d.X=b;d.Ed=e;d.Fd=c;d.coords=b.ka.coords;d.lb=a;d.Bq=h.ax.jia(a.Bq);d.Dd=new jspdf.jsPDF(a.RC,"mm",d.Bq,!x.Bd().Di);d.Dv=g;d.b3=null!=g&&k.B.C.he==f.K.xd.Ki;d.bh=d.PB-2*d.yh;d.Yj=d.QB-2*d.yh;
d.J4=d.X.dg+c;d.K4=d.X.Ye+e;d.uz={};d.Pf=d.yh;try{d.I$(),d.t0(),d.I1(function(){d.rR(d.lb.zi,d.lb.Wi,function(){return l.o2()})})}catch(n){console.error("Export PDF error:",n),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}})};d.I1=function(b){f.v(d.lb.WR)?b():h.P6.load(d.lb.WR,function(a,c){f.v(a)?f.v(c)||(d.font=c,d.Dd.addFileToVFS(c.filename,c.content),d.Dd.addFont(c.filename,c.name,"normal")):f.Va(a.message,k.A.j.ya,f.rb.ya);b()})};d.rR=function(b,a,c){var e=
null==b||null!=d.Tl&&-1==b.search(d.NO),g=null==a||null!=d.Wo&&-1==a.search(d.NO);if(e&&g)c();else{if(!e){b=b.replace(d.NO,(d.Ck+1).toString());b=b.replace(d.L5,(new Date).toLocaleString());var l=new A.Aa("div");l.P("position","absolute");l.P("background","white");l.tj(d.My(d.QB-2*d.ki));l.html(b);f.K.Hb.zb.F.prepend(l);html2canvasV1(l.element,{scale:d.kh}).then(function(n){l.remove();d.Tl=n;e=!0;g&&c()})}if(!g){a=a.replace(d.NO,(d.Ck+1).toString());a=a.replace(d.L5,(new Date).toLocaleString());var m=
new A.Aa("div");m.P("position","absolute");m.P("background","white");m.tj(d.My(d.QB-2*d.ki));m.html(a);f.K.Hb.zb.F.prepend(m);html2canvasV1(m.element,{scale:d.kh}).then(function(n){m.remove();d.Wo=n;g=!0;e&&c()})}}};d.KY=function(b,a){b.addImage(a,"JPEG",d.ki,d.ki,d.Bf(a.width/d.kh),d.Bf(a.height/d.kh))};d.JY=function(b,a){b.addImage(a,"JPEG",d.ki,d.PB-d.Bf(a.height/d.kh)-d.ki,d.Bf(a.width/d.kh),d.Bf(a.height/d.kh))};d.CQ=function(){null!=d.Tl&&d.KY(d.Dd,d.Tl);null!=d.Wo&&d.JY(d.Dd,d.Wo);d.bh=d.PB;
d.bh-=f.v(d.Tl)?d.yh:d.Bf(d.Tl.height/d.kh)+2*d.ki;d.bh-=f.v(d.Wo)?d.yh:d.Bf(d.Wo.height/d.kh)+2*d.ki;d.Pf=f.v(d.Tl)?d.yh:d.Bf(d.Tl.height/d.kh)+2*d.ki};d.o2=function(){d.CQ();if(null!=d.Dv){d.Pf+=d.wx(k.B.C.Dm,d.Dd,d.Pf,d.font);var b=h.Hz.wga(d.Bf(d.Dv.width),d.Bf(d.Dv.height),d.Yj,d.bh),a=f.ha(k.B.C.Dm)?d.Pf:d.Pf+5;d.Dd.addImage(d.Dv,"JPEG",d.yh,a,b.width,b.height);d.b3||this.h$()}d.b3?d.ifa():(d.Pf+=d.wx(k.B.C.tq,d.Dd,d.Pf,d.font),d.MGa(),k.B.C.ZM&&d.$K(),x.Pk.sn({ao:function(){return d.Q_()},
Ne:function(){return d.ifa()}}))};d.wx=function(b,a,c,e){if(f.ha(b))return 0;f.v(e)?(e=a.getFont(),a.setFont(e.jxa,"bold")):a.setFont(e.name,"normal");a.setTextColor(0,0,0);a.setFontSize(12);e=12*a.getStringUnitWidth(b)/a.internal.scaleFactor;e=(a.internal.pageSize.getWidth()-e)/2;a.text(b,e,c);return d.Bf(12)};d.W$=function(b,a,c){var e=.8*Math.max(d.Bf(30),6),g=.9*d.fH(d.Iaa);b=d.Dd.splitTextToSize(b,g,d.Ot(c));a=d.Dd.splitTextToSize(a,g,d.Ot(c));c=1<b.length?d.Bf(b.length*(11+2*d.ni)-2*d.ni):d.Bf(11*
b.length-d.ni);a=1<a.length?d.Bf(a.length*(11+2*d.ni)-2*d.ni):d.Bf(11*a.length-d.ni);a=(c>a?c:a)/e;return 1>a?e:(a+1)*e};d.$K=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length)){var b=k.Ta.U().ga.sa.rc(),a=f.u.Na.U().sa.pages,c=d.yh,e=.9*d.fH(d.Iaa);var g=!0;var l=d.X.ka.Rf(0,0,!0),m=d.SR.clone();m=d.cz(l,m);for(var n=m.fontSize,p=0;p<b.length;p++){var t=b.ea(p);if(a.Bb(t.uniqueName)&&t.filter.$g){var r=d.oy(t);g&&(g=d.W$("",k.A.j.Uq,m),d.ZK(d.Dd.splitTextToSize("",e,d.Ot(m)),
l,m,c,e,g),c+=e,m.fontSize=n,d.ZK(d.Dd.splitTextToSize(k.A.j.Uq,e,d.Ot(m)),l,m,c,e,g),m.fontSize=n,c=d.yh,d.Pf+=g,d.ds+=g);g=d.W$(t.caption,r,m);d.ZK(d.Dd.splitTextToSize(d.S4(t.caption),e,d.Ot(m)),l,m,c,e,g);c+=e;m.fontSize=n;d.ZK(d.Dd.splitTextToSize(d.S4(r),e,d.Ot(m)),l,m,c,e,g);m.fontSize=n;c=d.yh;d.Pf+=g;d.ds+=g;g=!1}}d.Pf=d.Pf>d.yh?d.Pf+2*d.fH(d.Haa):d.Pf;d.ds=d.Pf>d.yh?d.ds+2*d.fH(d.Haa):d.ds}};d.S4=function(b){b=b.replace(/<(?:.|\n)*?>/gi,"");var a=b.match(/&#(\d{3,4});/gi);if(a)for(var c,
e=0;e<a.length;e++)c=parseInt(a[e].substring(2,a[e].length-1)),b=b.replace(a[e],String.fromCharCode(c));return b};d.ZK=function(b,a,c,e,g,l){var m=b.length,n=1<m?d.Bf(b.length*(c.fontSize+2*d.ni)-2*d.ni):d.Bf(b.length*c.fontSize-d.ni);n>d.bh/2&&(n=(d.bh-20)/2,m=Math.floor(d.My(n)/(c.fontSize+2*d.ni)));c.fontSize*=.7;var p=f.K.X.W.Yc.h3(c.backgroundColor);d.Dd.setFillColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=f.K.X.W.Yc.h3(c.borderColor);d.Dd.setDrawColor(p[0],p[1],p[2],0!=p[3]?void 0:0);p=f.K.X.W.Yc.h3(c.color);
d.Dd.setTextColor(p[0],p[1],p[2]);f.v(d.font)?(p=d.Dd.getFont(),d.Dd.setFont(p.jxa,"bold"===c.fontWeight?"bold":"normal")):d.Dd.setFont(d.font.name,"normal");d.Dd.setFontSize(c.fontSize);d.Dd.rect(e,d.Pf,g,l,"FD");l=d.Pf+(l-n)/2+d.ni;if("right"==c.textAlign)if(1<b.length)for(c=0;c<m;c++)d.Dd.text(b[c],e+g-d.ni,l,{align:"right"}),l+=2*d.ni;else d.Dd.text(b[0],e+g-d.ni+("("==b[0].charAt(0)&&")"==b[0].charAt(b[0].length-1)?1.5:0),l,{align:"right"});else if(1<b.length)for(c=0;c<m;c++)g=!k.B.C.qk&&null!=
a&&0<a.level?(a.level+1)*d.ni:d.ni,d.Dd.text(b[c],e+g,l),l+=2*d.ni;else g=!k.B.C.qk&&null!=a&&0<a.level?(a.level+1)*d.ni:d.ni,d.Dd.text(b[0],e+g,l)};d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.t0=function(){var b=d.X.ka,a=b.find(".fm-data-sheet");d.MQ=f.K.X.W.Yc.dl(f.K.X.W.ua.we,a);d.I4=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,a);d.z0=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,a);d.I3=f.K.X.W.Yc.dl(f.K.X.W.ua.we+
" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,A.Aa.Pb(b.element));d.xZ=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,A.Aa.Pb(b.element));d.SR=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,A.Aa.Pb(b.element))};d.jG=function(b){b=d.fH(d.X.ka.coords.Zg(b));b=b<d.Yj?b:d.Yj-1;return.9*b};d.cz=function(b,a){null!=b&&b.Wt&&null!=b.style&&(b=0<b.style.AB.length?f.K.X.W.Yc.dl(b.style.mS()):f.K.X.W.Yc.aS(b.style.FS()),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};d.Ot=function(b){return{fontSize:.85*b.fontSize,fontName:null==b.fontFamily?d.Cla:b.fontFamily,fontStyle:f.K.X.W.Mla.Rya(parseFloat(b.fontWeight))}};d.MGa=function(){d.TS=Array(d.K4);for(var b,a=0,c,e;a<d.K4;){d.X.ka.coords.On(a,NaN)&&(d.TS[a]=0,a++);c=b=0;for(var g=.8*Math.max(d.Bf(d.coords.Nd(a)),6);b<d.J4;){d.X.ka.coords.On(NaN,
b)&&(d.uz[b]=0,b++);e=d.X.ka.Rf(a,b,!0);new f.K.X.W.Yc;var l=d.MQ.clone();l=d.cz(e,l);if(null!=e){var m=e.J();"number"===typeof m&&(e.value=m,m+="",e.numeric=!0);m=m.replace(/<(?:.|\n)*?>/gi,"");e=d.Dd.splitTextToSize(m,null!=d.uz&&null!=d.uz[b]?d.uz[b]:d.jG(b),d.Ot(l));e=(1<e.length?d.Bf(e.length*(11+2*d.ni)-2*d.ni):d.Bf(11*e.length-d.ni))/g;e=1>e?g:(e+1)*g;e=e>d.bh/2?(d.bh-1)/2:e;c=e>c?e:c}b++}d.TS[a]=c;a++}};d.Q_=function(){if(d.tP)return!1;for(var b=0;b<d.Nq;b++){if(d.wM&&(d.h$(),d.tP))return!1;
var a,c=d.yh,e=d.wr-d.uR<d.X.Ye&&d.wr>d.X.uo?d.wr-d.uR:d.wr;if(d.X.ka.coords.On(e,NaN))d.wr++;else{var g=d.TS[e];for(d.ut=d.xr;d.ut<d.Px+d.xr;){var l=(a=d.JG||d.hT?!1:d.ut==d.xr&&d.ut>d.X.uo)?d.X.uo:d.ut;if(d.X.ka.coords.On(NaN,l))d.ut++;else if(!d.$J()&&d.ds+g<=d.bh){a=null!=d.uz&&null!=d.uz[l]?d.uz[l]:d.jG(l);if(.9*(c+a)>d.Yj)break;l=d.X.ka.Rf(e,l,!0);var m=f.v(l)?"":l.J();"number"===typeof m&&(l.value=m,m+="",l.numeric=!0);m=d.S4(m);var n=[m];new f.K.X.W.Yc;if(null!=l&&l.ci){var p=d.I3.clone();
p=d.cz(l,p);n=d.Dd.splitTextToSize(m,a,d.Ot(p))}else null!=l&&l.th?(p=d.xZ.clone(),p=d.cz(l,p),n=d.Dd.splitTextToSize(m,a,d.Ot(p))):null!=l&&l.wk?(p=d.SR.clone(),p=d.cz(l,p)):null!=l&&l.By&&l.Tj&&""!=l.J()?(p=d.z0.clone(),p=d.cz(l,p)):null!=l&&l.Tj&&""!=l.J()?(p=d.I4.clone(),p=d.cz(l,p)):(p=d.MQ.clone(),p=d.cz(l,p),n=d.Dd.splitTextToSize(m,a,d.Ot(p)));d.ZK(n,l,p,c,a,g);d.ut++;c+=a}else{d.wM=!0;break}}d.wM||(d.Pf+=g,d.ds+=g,d.wr++);if(d.FQ()&&d.$J())break}}return d.FQ()&&d.$J()};d.FQ=function(){return d.xr+
d.Px>=d.Fd+d.X.dg};d.$J=function(){return d.wr>=d.Ed+d.X.Ye};d.h$=function(){d.Dd.addPage();d.Ck++;d.wM=!1;d.tP=!0;d.rR(d.lb.zi,d.lb.Wi,function(){d.tP=!1;d.CQ()});d.ds=0;if(null==d.Dv||1<d.Ck)d.HIa(),d.GIa();f.za(!0,k.A.j.kE,d.Ck+1+" "+k.A.j.y7,!0)};d.HIa=function(){d.FQ()&&!d.$J()?(d.wr-=d.X.Ye,d.uR=d.wr):d.wr=d.uR};d.GIa=function(){d.FQ()?d.$J()||(d.xr=0,d.ut=0):(d.xr+=d.Px,d.ut=d.xr);d.I$()};d.I$=function(){d.Px=0;var b=d.xr,a=0;if(d.JG||d.hT?0:d.xr>=d.X.dg){var c=d.jG(d.X.uo);a+=c;d.Px++;d.xr--;
d.ut--}for(;b<d.J4;)if(c=d.jG(b),c>d.Yj/2-d.yh&&(c=(d.Yj+d.yh)/2,d.uz[b]=c),a+=c,a<=d.Yj)d.Px++,b++;else{0==d.Px&&(d.Px=1);break}};d.ifa=function(){0==d.lb.filename.length&&(d.lb.filename="pivot.pdf");if(d.lb.EB==k.bb.lo.eA)h.en.save(d.Dd,d.lb);else{var b=d.Dd.output();b=f.O.v4(b);h.en.save(b,d.lb)}d.clear();k.Ta.U().Da(new y.da(f.eg.Tg))};d.clear=function(){d.X=null;d.lb=null;d.Dd=null;d.font=null;d.Fd=0;d.Ed=0;d.J4=0;d.K4=0;d.Px=0;d.ut=0;d.xr=0;d.wr=0;d.uR=0;d.ds=0;d.Pf=0;d.wM=!1;d.Ck=0;d.bh=0;
d.Yj=0;d.Tl=null;d.Wo=null;d.TS=null;d.JG=!1;d.hT=!1};d.fH=function(b){return.264*b};d.My=function(b){return 3.779*b};d.Bf=function(b){return b/3.779};q.Object.defineProperties(d,{PB:{configurable:!0,enumerable:!0,get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.bh:b.Yj}},QB:{configurable:!0,enumerable:!0,get:function(){var b=h.ax.tG(d.Bq);return"portrait"===d.lb.RC?b.Yj:b.bh}}});d.yh=15;d.wM=!1;d.Ck=0;d.b3=!1;d.Cla="Helvetica";d.font=null;d.Bq="a4";d.Iaa=100;d.Haa=30;d.NO=/##PAGE-NUMBER##/gi;
d.L5=/##CURRENT-DATE##/gi;d.JG=!1;d.hT=!1;d.kh=4;d.ki=5;d.tP=!1;d.Nq=5;d.ni=d.fH(8);h.Ke=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e,g){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;d.Dv=(void 0===g?"":g)||"";try{d.NR()}catch(l){console.error("Export HTML error:",l),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}};d.NR=function(){f.za(!0,k.A.j.Yw);d.Rl=x.xf();d.St="";d.hb=d.X.oi;d.js=[];k.B.C.ZM&&d.$K();x.Pk.sn({ao:function(){return d.Q_()},Ne:function(){return d.hEa()}})};d.R_=function(){var b="",a=d.X.ka,c=a.find(".fm-data-sheet");
b+=f.O.bind("body{{0}}\n",f.K.X.W.Yc.ly(A.Aa.Pb(a.element),["font-family"]));b+=f.O.bind(".grid{border-collapse:collapse;{0}border-top:1px solid #e9e9e9;border-left:1px solid #e9e9e9;}\n",f.K.X.W.Yc.ly(A.Aa.Pb(a.element),["font-family","font-size","color"]));b+=f.O.bind(".title{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.lX,A.Aa.Pb(a.element)));b+=f.O.bind(".cell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we,c));b+=f.O.bind(".totalCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,c));b+=f.O.bind(".grandTotalCell{{0}}\n",
f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,c));b+=f.O.bind(".rowHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,A.Aa.Pb(a.element)));b+=f.O.bind(".columnHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,A.Aa.Pb(a.element)));b+=f.O.bind(".filterHeaderCell{{0}}\n",f.K.X.W.Yc.vk(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,A.Aa.Pb(a.element)));for(c=1;20>=c;c++)b+=f.O.bind(".level{0}{{1}}\n",c,f.K.X.W.Yc.vk(f.K.X.W.ua.Ku+
" "+f.K.X.W.ua.qf+c,A.Aa.Pb(a.element),["padding-left"]));for(c=0;c<d.js.length;c++)b+=f.O.bind(".{0}{{1}}\n",d.js[c],f.K.X.W.Yc.vk(d.js[c],A.Aa.Pb(a.element)));return b};d.aZ=function(b){for(var a=0;a<b.length;a++)0>d.js.indexOf(b[a])&&d.js.push(b[a])};d.$K=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length))for(var b=k.Ta.U().ga.sa.rc(),a=f.u.Na.U().sa.pages,c,e,g=!0,l,m="style='min-width:"+d.ECa+"px;'",n=0;n<b.length;n++)e=b.ea(n),l="",a.Bb(e.uniqueName)&&e.filter.$g&&(c=d.oy(e),
g&&(l+="<td {0}></td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),l+="<td {0}>"+k.A.j.Uq+"</td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),d.LB+="<tr>"+l+"</tr>",l=""),l+="<td {0}>"+e.caption+"</td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),l+="<td {0}>"+c+"</td>",l=f.O.bind(l,"class='filterHeaderCell' "+m),d.LB+="<tr>"+l+"</tr>",g=!1)};d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.Q_=function(){var b="";if(d.X.ka.coords.On(d.hb,NaN))return d.hb++>=
d.Ed+d.X.Ye;for(var a=d.X.uo;a<d.Fd+d.X.dg;a++)if(!d.X.ka.coords.On(NaN,a)){var c=d.X.ka.Rf(d.hb,a,!0);b+="<td {0}>"+(c?c.J(!0):"")+"</td>";if(null==c)b=f.O.bind(b,"class='cell'");else{var e="",g="";c.Wt&&null!=c.style&&(g=c.style.FS(),e=c.style.mS(),d.aZ(c.style.AB));e=c.ci?e+(" rowHeaderCell level"+c.level):c.th?e+" columnHeaderCell":c.wk?e+" filterHeaderCell":c.By&&c.Tj&&""!=c.J(!0)?e+" grandTotalCell":c.Tj&&""!=c.J(!0)?e+" totalCell":e+" cell";null!=c&&c.wk&&(e+=" level"+c.level);""!=e.trim()&&
(e="class='"+e.trim()+"'");g+="width:"+d.X.ka.coords.Zg(a)+"px;";""!=g.trim()&&(g="style='"+g.trim()+"'");b=f.O.bind(b,e+" "+g)}}d.GM+="<tr>"+b+"</tr>";200<x.xf()-d.Rl&&(f.za(!0,k.A.j.Yw,f.O.bind("{0}%",(d.hb/(d.Ed+d.X.Ye)*100).toFixed(0))),d.Rl=x.xf());return++d.hb>=d.Ed+d.X.Ye};d.hEa=function(){f.za(!1);d.NHa();d.clear()};d.NHa=function(){0==d.lb.filename.length&&(d.lb.filename="pivotgrid.html");var b="";if(!f.ha(d.lb.zi)){var a=d.lb.zi;a=a.replace(/##PAGE-NUMBER##/gi,"");a=a.replace(/##CURRENT-DATE##/gi,
(new Date).toLocaleString());b+=a}f.ha(d.Dv)||(f.ha(k.B.C.Dm)||(b+="<div class='title'>"+k.B.C.Dm+"</div>"),b+=d.Dv);b+="<div class='title'>"+k.B.C.tq+"</div>";b+=0<d.LB.length?"<table class='grid'>"+d.LB+"</table><br><br><table class='grid'>"+d.GM+"</table>":"<table class='grid'>"+d.GM+"</table>";f.ha(d.lb.Wi)||(a=d.lb.Wi,a=a.replace(/##PAGE-NUMBER##/gi,""),a=a.replace(/##CURRENT-DATE##/gi,(new Date).toLocaleString()),b+=a);d.St="<!DOCTYPE html><html><head><meta charset='UTF-8'/>";d.St+="<title>"+
(f.ha(k.B.C.tq)?k.A.j.YV:k.B.C.tq)+"</title>";d.St+="<style>"+d.R_()+"</style></head>";d.St+="<body>"+b+"</body></html>";h.en.save(d.St,d.lb);k.Ta.U().Da(new y.da(f.eg.Tg))};d.clear=function(){d.hb=0;d.St="";d.LB="";d.GM="";d.Fd=0;d.Ed=0;d.X=null;d.lb=null;d.Dv=""};d.hb=0;d.Rl=0;d.St="";d.LB="";d.GM="";d.ECa=100;d.Nq=10;h.m6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;try{d.Kwa()}catch(g){console.error("Export XLS error:",g),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg))}};d.Kwa=function(){f.za(!0,k.A.j.Yw);d.hb=d.X.oi;d.ve=0;d.Rl=x.xf();d.HM=[];d.mf=new U.Ipa;var b=k.A.j.YV;f.ha(d.lb.v_)?f.ha(k.B.C.tq)||(b=k.B.C.tq):b=d.lb.v_;b=new U.Jpa(b);d.mf.Fg.push(b);d.t0();this.lb.zi?d.d$(this.lb.zi):d.Wra();d.wx();k.B.C.ZM&&
d.wra();x.Pk.sn({ao:function(){return d.cya()},Ne:function(){return d.OFa()}})};d.t0=function(){var b=d.X.ka.element;d.MQ=f.K.X.W.Yc.dl(f.K.X.W.ua.we,A.Aa.Pb(b),!1);d.I4=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu,A.Aa.Pb(b),!1);d.z0=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.Vu+" "+f.K.X.W.ua.tI,A.Aa.Pb(b),!1);d.I3=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku,A.Aa.Pb(b),!1);d.xZ=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Uz,A.Aa.Pb(b),!1);d.SR=f.K.X.W.Yc.dl(f.K.X.W.ua.we+
" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Lp,A.Aa.Pb(b),!1);for(var a=1;20>=a;a++)d.J3[a]=f.K.X.W.Yc.dl(f.K.X.W.ua.we+" "+f.K.X.W.ua.zj+" "+f.K.X.W.ua.Ku+" "+f.K.X.W.ua.qf+a,A.Aa.Pb(b),!1)};d.OFa=function(){d.d$(this.lb.Wi,!0);d.DCa();f.za(!1);d.RHa()};d.RHa=function(){d.hb=d.X.oi;0==d.lb.filename.length&&(d.lb.filename="pivot.xlsx");h.en.save(d.mf.IJa(),d.lb);d.mf=null;d.lb=null;k.Ta.U().Da(new y.da(f.eg.Tg))};d.aKa=function(b){return f.v(b)||f.v(b.measure)||b.measure.type!=f.u.i.Ja.Oa?!1:f.u.i.ca.AD(b.measure.$)||
k.B.C.DG==f.K.X.ie.ih&&!b.Tj?!0:!1};d.AD=function(b){return f.v(b)||f.v(b.measure)||b.measure.type!=f.u.i.Ja.Dc?!1:f.u.i.ca.AD(b.measure.$)||k.B.C.DG==f.K.X.ie.ih&&!b.Tj?!0:!1};d.eo=function(b){return f.v(b)||f.v(b.measure)||b.measure.type!=f.u.i.Ja.Yb?!1:f.u.i.ca.eo(b.measure.$)||k.B.C.DG==f.K.X.ie.ih&&!b.Tj?!0:!1};d.cya=function(){for(var b=d.Ed+d.X.Ye,a=d.X.uo;a<d.Fd+d.X.dg;a++){var c=d.X.ka.Rf(d.hb,a,!0),e=f.v(c)?"":c.J();e=e?e:"";var g=void 0,l=d.aKa(c),m=d.AD(c),n=d.eo(c);f.v(c)||isNaN(c.value)||
(l?g=d.Fua(c.value,c.hierarchy.getTimezoneOffset()):m?g=d.Gua(c.value,c.hierarchy.getTimezoneOffset()):n&&(g=d.Hua(c.value)));"number"===typeof e&&(c.value=e,e+="",c.numeric=!0);var p=null!=c&&(c.ci||c.th);d.lb.kba&&""==e&&null!=c&&null!=c.Xb&&(e=c.Xb.caption);if(""!=e.trim()||p){new f.K.X.W.Yc;p=null!=c&&c.ci?0<c.level&&d.J3[c.level]?d.J3[c.level].clone():d.I3.clone():null!=c&&c.th?d.xZ.clone():null!=c&&c.wk?d.SR.clone():null!=c&&c.By&&c.Tj&&""!=c.J()?d.z0.clone():null!=c&&c.Tj&&""!=c.J()?d.I4.clone():
d.MQ.clone();if(null!=c&&c.Wt&&null!=c.style){var t=0<c.style.AB.length?f.K.X.W.Yc.dl(c.style.mS()):f.K.X.W.Yc.aS(c.style.FS());t.merge(p);p=t}p.color=p.color||"rgb(0,0,0)";"rgb(33, 33, 33)"==p.backgroundColor&&(p.color="rgb(242, 242, 242)");p.backgroundColor=p.backgroundColor||"rgb(255,255,255)";p.fontSize=p.fontSize?d.YGa(p.fontSize):8;var r=new U.md.fonts.Yu(f.v(p.fontFamily)?"Tahoma":p.fontFamily,p.fontSize,f.O.Kn(p.color));r.bold="bold"==p.fontWeight||700<=parseInt(p.fontWeight);r.DC=!1;var v=
null,z=t=!1;if(c.numeric){if(null!=c.measure){v=c.measure.Dh(c.measure.uniqueName,c.measure.$);z=""!=v.YG?!0:z;t=f.u.i.ca.Xd(c.measure.$)||c.measure.Ka&&-1<c.measure.qe.indexOf("percent");var B=v.Sha();if(t||v.Xd)v=v.clone(),v.pd="%",B=v.Sha();v=new U.md.format.Gs(""==B?0:-1,B)}}else l||m?v=c.measure.type==f.u.i.Ja.Dc?new U.md.format.Gs(164,"dd.mm.yyyy h:mm:ss"):new U.md.format.Gs(14,""):n&&(0<=g?v=new U.md.format.Gs(165,d.Cp):(g=Math.abs(g),v=new U.md.format.Gs(166,"-"+d.Cp)));v&&d.mf.styleSheet.xra(v);
r=new U.md.qA(r,f.O.Kn(p.backgroundColor),v,c.Wt&&void 0==p.textAlign&&c.Jh?"right":p.textAlign);!k.B.C.qk&&c&&c.ci&&0<c.level&&(r.textIndent=c.level);d.mf.styleSheet.tv(r);v=null!=c.measure?c.measure.Dh(c.measure.uniqueName,c.measure.$):null;e=f.O.WF(e);c.numeric?null==v||c.label!=v.GG&&c.label!=v.OF?c.Wt&&d.KAa()&&d.lb.hia?(g=c.J(),d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,!isNaN(c.value)&&c.label==g&&c.numeric?d.Pba(c.value,v,t):f.O.WF(g),r)):(g=d.Pba(c.value,v,t),d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,isNaN(c.value)&&
z?c.J():g,r)):d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,c.J(),r):d.lb.qz||!c.Jh||null==c.measure||c.measure.type!=f.u.i.Ja.Oa&&c.measure.type!=f.u.i.Ja.Dc?!d.lb.qz&&c.Jh&&null!=c.measure&&c.measure.$==f.u.i.ca.NONE?d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,c.value,r):!d.lb.qz&&c.Jh&&null!=c.measure&&c.measure.type==f.u.i.Ja.Yb?n?d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,g,r):d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,c.value,r):d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,e,r):l||m?d.mf.Fg[0].hi(d.hb-d.X.oi+d.ve,a,g,r):d.mf.Fg[0].hi(d.hb-d.X.oi+
d.ve,a,c.value,r);null!=c&&(0==d.mf.Fg[0].jG(a)&&d.mf.Fg[0].Lga(a,d.Eua(d.X.ka.coords.Zg(a))),a!=d.X.uo||d.X.ka.coords.xBa(d.hb)||(c=d.wK(d.X.ka.coords.Nd(d.hb)),d.mf.Fg[0].Cw(d.hb+d.ve,c)),e.length>p.width&&d.mf.Fg[0].Lga(a,d.wK(e.length+d.cellPadding)>d.wK(d.T5)?d.wK(d.T5):d.wK(e.length+d.cellPadding)))}}200<x.xf()-d.Rl&&(f.za(!0,k.A.j.Yw,f.O.bind("{1}% ("+k.A.j.OW+")",d.hb.toString(),(d.hb/b*100).toFixed(0))),d.Rl=x.xf());return d.hb++>=b};d.Pba=function(b,a,c){return null==a||!c&&"%"!=a.pd?b:
b/100};d.Fua=function(b,a){b=-d.Zba(b,a)+b;return Math.floor(b/864E5)};d.Gua=function(b,a){return(-d.Zba(b,a)+b)/864E5};d.Zba=function(b,a){return null!=a?Date.parse("1899-12-30")-36E5*a:Date.parse("1899-12-30")+36E5*((new Date(b)).getTimezoneOffset()/60)};d.Hua=function(b){return 1E3*b/864E5};d.YGa=function(b){return.75*b};d.wK=function(b){return 0>=b?0:d.Eva/d.Gaa*b*(d.Gaa/f.K.X.sheet.jh.Bu)};d.Eua=function(b){return 0>=b?0:((b-5)/7*100+.5)/100};d.Wra=function(){var b=k.bb.XH.customFields;if(0<
b.length){var a=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.Uz).element),c=new U.md.fonts.Yu(a.fontFamily,parseInt(a.fontSize)-2,f.O.Kn(a.color));c.bold="bold"===a.fontWeight;c.DC="italic"===a.fontStyle;c=new U.md.qA(c,f.O.Kn(a.backgroundColor));c.textAlign=a.textAlign;d.mf.styleSheet.tv(c);d.mf.Fg[0].hi(d.ve,0,k.A.j.Gka,c);d.mf.Fg[0].hi(d.ve,1,"",c);a=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.we).element);var e=new U.md.fonts.Yu(a.fontFamily,parseInt(a.fontSize)-2,f.O.Kn(a.color));e.bold=
"bold"===a.fontWeight;e.DC="italic"===a.fontStyle;e=new U.md.qA(e,f.O.Kn(a.backgroundColor));e.textAlign=a.textAlign;d.mf.styleSheet.tv(e);for(a=0;a<b.length;a++)d.mf.Fg[0].hi(a+1+d.ve,0,f.O.WF(String(b[a].name)),c),d.mf.Fg[0].hi(a+1+d.ve,1,f.O.WF(String(b[a].value)),c)}d.ve+=0==b.length?0:b.length+2};d.d$=function(b,a){a=void 0===a?!1:a;if(null!=b&&0!=b.length){var c=0;a&&(d.ve+=1,c=d.Ed+d.X.Ye);b=b.split("\n");var e=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.Uz).element),g=new U.md.fonts.Yu(e.fontFamily,
parseInt(e.fontSize)-2,f.O.Kn(e.color));g.bold="bold"===e.fontWeight;g.DC="italic"===e.fontStyle;g=new U.md.qA(g,f.O.Kn(e.backgroundColor));g.textAlign=e.textAlign;d.mf.styleSheet.tv(g);e=d.mf.Fg[0];for(var l=0;l<b.length;l++){var m=c+l+d.ve;e.hi(m,0,f.O.WF(String(b[l])),g);d.HM.push(m)}d.ve+=b.length+(a?0:1)}};d.wx=function(){var b=k.B.C.tq;if(0!=b.length){var a=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.lX).element),c=new U.md.fonts.Yu(a.fontFamily,parseInt(a.fontSize)-2,f.O.Kn(a.color));
c.bold="bold"===a.fontWeight;c.DC="italic"===a.fontStyle;a=new U.md.qA(c,f.O.Kn(a.backgroundColor));a.textAlign="center";d.mf.styleSheet.tv(a);c=d.ve;d.mf.Fg[0].hi(c,0,b,a);d.HM.push(c);d.ve+=1}};d.DCa=function(){for(var b=d.mf.Fg[0],a=0;a<d.HM.length;a++)b.Hea(d.HM[a],0,Math.min(b.Kta,10))};d.KAa=function(){return!f.v(f.K.X.W.Yd.Mv)};d.wra=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length)){var b=k.Ta.U().ga.sa.rc(),a=f.u.Na.U().sa.pages,c=!0,e=getComputedStyle(f.K.Hb.zb.F.find("."+
f.K.X.W.ua.zj).element),g=new U.md.fonts.Yu(e.fontFamily,parseInt(e.fontSize)-2,f.O.Kn(e.color));g.bold="bold"===e.fontWeight;g.DC="italic"===e.fontStyle;g=new U.md.qA(g,f.O.Kn(e.backgroundColor));g.textAlign=e.textAlign;d.mf.styleSheet.tv(g);e=getComputedStyle(f.K.Hb.zb.F.find("."+f.K.X.W.ua.we).element);var l=new U.md.fonts.Yu(e.fontFamily,parseInt(e.fontSize)-2,f.O.Kn("rgb(0,0,0)"));l.bold="bold"===e.fontWeight;l.DC="italic"===e.fontStyle;e=new U.md.qA(l,f.O.Kn(e.backgroundColor));e.textAlign=
"left";d.mf.styleSheet.tv(e);l=d.mf.Fg[0];for(var m=0,n=0;n<b.length;n++){var p=b.ea(n);var t=p.wi.type==f.u.i.Lz.Zz;(a.Bb(p.uniqueName)||d.lb.iV)&&p.filter.$g&&(t=t?d.Wta(p):d.lb.iV?d.uca(p):d.oy(p),c&&(l.hi(m+d.ve,0,"",g),l.hi(m+d.ve,1,k.A.j.Uq,g),m++),l.hi(m+d.ve,0,p.caption,g),l.hi(m+d.ve,1,t,e),m++,c=!1)}if(k.B.C.DG==f.K.X.ie.ih)for(b=k.Ta.U().ga.sa.Of,a=0;a<b.length;a++)(p=k.Ta.U().ga.sa.Vj(b[a].uniqueName))&&p.filter.$g&&(t=d.lb.iV?d.uca(p):d.oy(p),c&&(l.hi(m+d.ve,0,"",g),l.hi(m+d.ve,1,"Filters",
g),m++),l.hi(m+d.ve,0,p.caption,g),l.hi(m+d.ve,1,t,e),m++,c=!1);d.ve+=c?0:m+1}};d.uca=function(b){for(var a=[],c=0;c<b.cb.length;c++)a.push(b.aC(b.cb[c]));return a.join(", ")};d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.Wta=function(b){var a,c=[];null!=d.kz&&(d.kz.length=0);d.sha(b.yd);for(var e=d.aua(b),g=!1,l=0;l<d.kz.length;l++){var m=b.va(d.kz[l]);var n=l==d.kz.length-1;if(!g&&-1<b.cb.indexOf(m.ordinal)){g=!0;var p=m}g&&(-1<b.cb.indexOf(m.ordinal)&&
(a=m),-1<e.indexOf(m.ordinal)&&!n||(a=null!=a?a:p,m=d.Y$(p),n=a.uniqueName!=p.uniqueName?":"+d.Y$(a,!0):"",a=p=null,g=!1,c.push(m+n)))}return c.join(", ")};d.sha=function(b){null==d.kz&&(d.kz=[]);b.Wb||d.kz.push(b.ordinal);for(var a=b.hierarchy.uj(b,!1,f.u.i.xa.bc),c=a.length,e,g=0;g<c;g++)e=b.hierarchy.va(a[g]),0<e.children.length?d.sha(e):d.kz.push(e.ordinal)};d.Y$=function(b,a){a=void 0===a?!1:a;var c=b,e=[];for(e.push(b.caption);c&&c.uniqueName!=b.uniqueName&&!c.level.cw&&0<c.children.length;)e.push(c.caption),
c=c.hierarchy.uj(c,!1,f.u.i.xa.bc),c=b.hierarchy.va(a?c[c.length-1]:c[0]);for(c=b.parent;c&&!c.Wb;)e.unshift(c.caption),c=c.parent;return e.join("-")};d.aua=function(b){for(var a=[],c=b.cb,e,g=0;g<c.length;g++)if(e=b.va(c[g]),a.push(e.ordinal),a=a.concat(e.Wx),!(e.parent&&!e.parent.Wb&&-1<a.indexOf(e.parent.ordinal)))for(;e.parent&&!e.parent.Wb;)e=e.parent,a.push(e.ordinal);return a};d.hb=0;d.ve=0;d.cellPadding=3;d.T5=100;d.Cp="[h]:mm:ss";d.J3=[];d.Eva=14.3;d.Gaa=38;d.HM=[];h.q6=d})(k.vc||(k.vc={}))})(f.model||
(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(c,e,g){var l=y.da.call(this,f.eg.jW)||this;l.Dt=c;l.lb=e;l.Fo=g;return l}function a(){}a.Nj=function(c,e,g){e=void 0===e?null:e;g=void 0===g?null:g;a.LX?this.d_.push({type:c,options:e,Ne:g}):(c=c.toLowerCase(),c=d.rz(c)?c:d.xh,k.B.C.he==f.K.xd.Ki&&c==d.JSON?(f.Va(k.A.j.ena,k.A.j.ya),this.Aha()):(k.Ta.U().N(f.eg.Tg,a.qba),a.LX=!0,a.Fo=g,f.v(e)&&(e=new h.p6),e.type=c,c=new b(c,e,g),k.Ta.U().Da(c)))};a.Aha=function(){f.za(!1);k.Ta.U().mb(f.eg.Tg,
a.qba);a.LX=!1};a.SDa=function(){a.Aha();if(0<a.d_.length){var c=a.d_.shift();this.Nj(c.type,c.options,c.Ne)}};a.save=function(c,e){switch(e.EB.toLowerCase()){case k.bb.lo.aO:a.JM(c,e);break;case k.bb.lo.eX:a.UU(c,e);break;case k.bb.lo.k5:break;case k.bb.lo.eA:a.PHa(c,e);break;default:a.JM(c,e)}};a.UU=function(c,e){switch(e.type){case d.Lu:case d.XD:case d.dA:case d.Vz:case d.JSON:case d.xh:a.QHa(c,e);break;default:c=k.Nb.validate(e.type),f.Va("Unknown type of export: '"+c+"'",k.A.j.ya)}};a.JM=function(c,
e){switch(e.type){case d.Lu:var g="text/html;charset=utf-8";e.filename=a.bK(e.filename,".html");break;case d.XD:g="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";e.filename=a.bK(e.filename,".xlsx");break;case d.dA:g="application/pdf";e.filename=a.bK(e.filename,".pdf");break;case d.Vz:g="image/png";e.filename=a.bK(e.filename,".png");break;case d.xh:g="text/csv;charset=utf-8";e.filename=a.bK(e.filename,".csv");break;default:g="text/plain;charset=utf-8"}var l=[c];e.type==d.xh&&l.unshift(f.O.hya());
try{D.uga(new Blob(l,{type:g}),e.filename),a.mN({data:c,filename:e.filename,type:e.type})}catch(m){f.Va(k.A.j.DO,k.A.j.ya,f.rb.ya),a.mN(null,{message:k.A.j.DO})}};a.bK=function(c,e){c.indexOf(e)!=c.length-e.length&&(c+=e);return c};a.KGa=function(c){var e={};null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&null!=c.target.xhr&&(e.response=c.target.response,e.status=c.target.xhr.status);e.message=k.A.j.DO;return e};a.QHa=function(c,e){var g=new x.Es(500);g.N(x.Ze.Nk,function(){f.za(!0,
k.A.j.A7,(g.Qx/10).toString()+" sec")});var l=new D.Qi;l.N(y.da.ya,function(t){t=a.KGa(t);var r=t.hasOwnProperty("response")?k.Nb.validate(t.response):"";r=700<r.length?r.substr(0,700):r;f.Va(f.O.bind(t.message,r),k.A.j.ya,f.rb.ya);g.stop();f.za(!1);a.mN(null,t)});l.N(y.da.Jc,function(){g.stop();f.za(!1);a.mN({data:c,filename:e.filename,type:e.type,response:l.response})});var m=new Blob([c],{type:"application/octet-binary"}),n=new FormData;n.append("filedata",m,e.filename);for(var p in e.C_)n.append(p,
e.C_[p]);l.Dq=D.Fs.Pu;l.data=n;l.contentType=!1;l.vh(e.requestHeaders);l.load(e.url);g.start()};a.PHa=function(c,e){a.mN({data:c,filename:e.filename,type:e.type})};a.mN=function(c,e){null!=a.Fo&&a.Fo.call(null,void 0===c?null:c,void 0===e?null:e)};a.LX=!1;a.d_=[];a.qba=function(){return a.SDa()};h.en=a;u(b,y.da);h.gLa=b;d.rz=function(c){return c===d.Vz||c===d.XD||c===d.Lu||c===d.xh||c===d.JSON||c===d.dA};d.Vz="image";d.XD="excel";d.Lu="html";d.xh="csv";d.JSON="json";d.dA="pdf";h.Li=d})(k.vc||(k.vc=
{}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.vl=!0;this.EB=f.model.bb.lo.aO;this.filename="";this.url="()";this.requestHeaders=null;this.type=h.Li.Lu;this.RC="portrait";this.v_="";this.iV=this.kba=!1;this.qz=!0;this.C_={};this.fieldSeparator=",";this.hia=!0;this.s$=!1;this.EB=void 0===b?"file":b}d.tb=function(b){var a=new d;if(f.v(b))return a;f.v(b.showHeaders)||(a.vl="true"===b.showHeaders||!0===b.showHeaders);f.v(b.filename)||(a.filename=b.filename);f.v(b.url)||(a.url=b.url);f.v(b.excelSheetName)||
(a.v_=b.excelSheetName);f.v(b.excelExportAll)||(a.kba=b.excelExportAll);f.v(b.pageOrientation)||"portrait"!==b.pageOrientation.toLowerCase()&&"landscape"!==b.pageOrientation.toLowerCase()||(a.RC=b.pageOrientation.toLowerCase());!f.v(b.destinationType)&&f.model.bb.lo.rz(b.destinationType.toString().toLowerCase())&&(a.EB=b.destinationType.toString().toLowerCase());f.ha(b.pageFormat)||(a.Bq=b.pageFormat);f.ha(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator);f.v(b.showFilters)||(a.iV=b.showFilters);
f.v(b.useOlapFormattingInExcel)||(a.qz=b.useOlapFormattingInExcel);f.v(b.extendedParameters)||(a.C_=b.extendedParameters);f.v(b.header)||(a.zi=b.header);f.v(b.footer)||(a.Wi=b.footer);f.v(b.fontUrl)||(a.WR=b.fontUrl);f.v(b.useCustomizeCellForData)||(a.hia=b.useCustomizeCellForData);f.v(b.requestHeader)||(a.requestHeaders=b.requestHeader);f.v(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);f.v(b.alwaysEnclose)||(a.s$=b.alwaysEnclose);return a};h.p6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||
(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e,g){g=void 0===g?null:g;if(!f.v(b)){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;d.Fo=g;try{d.Hwa()}catch(l){console.error("Export CSV error:",l),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}}};d.Vba=function(b,a){if(null!=b&&0!=b.length){0<d.lq.length&&d.lq.push([].join(d.lb.fieldSeparator));b=b.split("\n");for(var c,e=0;e<b.length;e++)c=[],c.push('"'+b[e]+'"'),d.lq.push(c.join(d.lb.fieldSeparator));0<
d.lq.length&&!a&&d.lq.push([].join(d.lb.fieldSeparator))}};d.$K=function(){if(!(d.X instanceof f.K.vf.WD||0==f.u.Na.U().sa.pages.length)){for(var b,a=k.Ta.U().ga.sa.rc(),c=f.u.Na.U().sa.pages,e,g,l=!0,m=0;m<a.length;m++)g=a.ea(m),b=[],c.Bb(g.uniqueName)&&g.filter.$g&&(e=d.oy(g),l&&(b.push('""'),b.push('"'+k.A.j.Uq+'"'),d.lq.push(b.join(d.lb.fieldSeparator)),b=[]),b.push('"'+g.caption+'"'),b.push('"'+e+'"'),d.lq.push(b.join(d.lb.fieldSeparator)),l=!1);0<d.lq.length&&d.lq.push([].join(d.lb.fieldSeparator))}};
d.oy=function(b){var a=k.A.j.kI;b.filter.$g&&(a=1==b.cb.length?b.va(b.cb[0]).caption:k.A.j.qI);return a};d.Hwa=function(){f.za(!0,k.A.j.Yw);d.hb=0;d.Rl=x.xf();d.Vba(this.lb.zi);k.B.C.ZM&&d.$K();x.Pk.sn({ao:function(){return d.Wxa()},Ne:function(){return d.ZCa()}})};d.Wxa=function(){if(d.X.ka.coords.On(d.hb,NaN))return d.hb>=d.Ed+d.X.Ye;var b=[];for(var a=0;a<d.Fd+d.X.dg;a++)if(!d.X.ka.coords.On(NaN,a))for(b=[],a=0;a<d.Fd+d.X.dg;a++)if(!d.X.ka.coords.On(NaN,a)){var c="",e=d.X.ka.Rf(d.hb,a,!0);e&&(c=
e.J());"number"===typeof c&&(e.value=c,c+="",e.numeric=!0);c=f.O.WF(c);0<=c.indexOf(d.lb.fieldSeparator)||this.lb.s$||-1<c.search(/\n|\r/gi)?(c=c.replace(/["]/gi,'""'),b.push('"'+c+'"')):b.push(c)}d.lq.push(b.join(d.lb.fieldSeparator));200<x.xf()-d.Rl&&(b=d.hb/(d.Ed+d.X.Ye)*100,100<b&&(b=100),f.za(!0,k.A.j.Yw,f.O.bind("{1}% ("+k.A.j.OW+")",d.hb.toString(),b.toFixed(0))),d.Rl=x.xf());return++d.hb>=d.Ed+d.X.Ye};d.LHa=function(){var b=d.lq.join("\r\n");0==d.lb.filename.length&&(d.lb.filename="pivot.csv");
h.en.save(b,d.lb);k.Ta.U().Da(new y.da(f.eg.Tg));d.clear()};d.ZCa=function(){f.za(!1);d.Vba(this.lb.Wi,!0);d.LHa()};d.clear=function(){d.X=null;d.hb=0;d.Rl=0;d.lq=[];d.lb=null;d.Fo=null;d.Fd=0;d.Ed=0};d.hb=0;d.Rl=0;d.lq=[];h.l6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){throw Error("Singleton");}d.Wf=function(b,a,c,e,g){g=void 0===g?null:g;if(!f.v(b)){d.X=b;d.Fd=c;d.Ed=e;d.lb=a;d.Fo=g;try{d.Iwa()}catch(l){console.error("Export JSON error:",l),f.Va(k.A.j.ys,k.A.j.ya,f.rb.ya),f.za(!1),k.Ta.U().Da(new y.da(f.eg.Tg)),d.clear()}}};d.Iwa=function(){f.za(!0,k.A.j.Yw);d.lc=0;d.Rl=d.startTime=x.xf();x.Pk.sn({ao:function(){return d.$xa()},Ne:function(){return function(){return d.pEa()}}})};d.$xa=function(){for(var b=Math.min(d.lc+
d.Nq,d.Fd+d.X.dg),a;d.lc<b;d.lc++){a=[];for(var c=0;c<d.Ed+d.X.Ye;c++){var e="",g=d.X.ka.Rf(c,d.lc,!0);g&&(e=g.label);a.push(e)}d.t1.push(JSON.stringify(a))}if(50<x.xf()-d.Rl){b=d.lc/(d.Fd+d.X.dg)*100;if(100<b)return!0;d.SIa(b);d.Rl=x.xf()}return d.lc>=d.Fd+d.X.dg};d.SIa=function(b){f.za(!0,k.A.j.Yw,f.O.bind("{0}% ({1} rows)",b.toFixed(0),d.lc.toString()))};d.OHa=function(){var b="["+d.t1.join(",\n")+"]";0==d.lb.filename.length&&(d.lb.filename="pivot.json");h.en.save(b,d.lb);k.Ta.U().Da(new y.da(f.eg.Tg));
d.clear()};d.pEa=function(){f.za(!1);d.OHa()};d.clear=function(){d.X=null;d.lc=0;d.startTime=0;d.Rl=0;d.Fd=0;d.Ed=0;d.t1=[];d.cells=[];d.lb=null;d.Fo=null};d.lc=0;d.startTime=0;d.Rl=0;d.cells=[];d.t1=[];d.Nq=10;h.o6=d})(k.vc||(k.vc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){}b.K6="formatchange";h.Q6=b;d.Dh=function(a,c){a=d.Lt.Bb(a)?d.Lt.getItem(a).get(c):void 0;return d.c9(a)};d.lH=function(a,c,e){d.Lt.Bb(c)||d.Lt.Pa(c,new Map);d.Lt.getItem(c).set(e,a)};d.kD=function(a){var c=h.W.pf.tb(a);d.TQ.Pa(c.name,c);if(null!=d.JF&&""!=c.name)c.Iea(d.JF);else if(""==c.name)for(d.JF=a,a=0;a<d.formats.length;a++)d.formats.ea(a).Iea(d.JF);d.formats.Pa(c.name,c)};d.c9=function(a){return d.formats.Bb(a)?d.formats.getItem(a):
""!=a&&d.formats.Bb("")?d.formats.getItem(""):d.$ba()};d.eya=function(){return d.TQ.slice()};d.clear=function(){d.formats=new f.nb;d.TQ=new f.nb;d.JF=null;d.Lt=new f.nb};d.oS=function(){return d.c9("")};d.$ba=function(){return new h.W.pf};d.kxa=function(a,c){return d.Lt.Bb(a)&&d.Lt.getItem(a).has(c)};d.Tya=function(){return d.Lt};d.dispose=function(){d.formats=null;d.TQ=null;d.JF=null;d.Lt=null};d.formats=new f.nb;d.TQ=new f.nb;d.Lt=new f.nb;d.JF=null;h.Ni=d})(k.Zb||(k.Zb={}))})(f.model||(f.model=
{}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.name="";this.Fb={};this.Ld={thousandsSeparator:" ",decimalSeparator:".",decimalPlaces:-1,maxDecimalPlaces:-1,maxSymbols:20,currencySymbol:"",positiveCurrencyFormat:b.Uy.$1,negativeCurrencyFormat:b.Rr["-$1"],negativeNumberFormat:b.gu["-1"],nullValue:"",infinityValue:"Infinity",divideByZeroValue:"Infinity",textAlign:b.textAlign.RIGHT,isPercent:!1,isCount:!1,beautifyFloatingPoint:!0};this.name=void 0===a?"":a}b.prototype.Sha=function(){var a,
c="";if(-1==this.Ql&&""==this.pd){if(this.xq==b.gu["- 1"]||this.xq==b.gu["1-"]||this.xq==b.gu["1 -"]||this.xq==b.gu["(1)"])c=""!=this.thousandsSeparator?"#,##0.0#########":"###0.0#########",c=c+";"+x.Tb.ZR(c,this.xq);return c}if("%"==this.pd){var e=-1==this.Ql?0:this.Ql;c=0<e?"0.":"0";for(a=0;a<e;a++)c+="0";return c+=this.pd}c=""!=this.thousandsSeparator?"#,##0":"###0";if(0<this.Ql)for(c+=".",a=0;a<this.Ql;a++)c+="0";""!=this.pd?(a=this.pd,c=1<a.length?this.ou==b.Uy.$1?"[$"+a+"]\\ "+c+";"+x.Tb.YK(c,
"[$"+a+"]",this.fu):c+"\\ [$"+a+"];"+x.Tb.YK(c,"[$"+a+"]",this.fu):this.ou==b.Uy.$1?"\\"+this.pd+c+";"+x.Tb.YK(c,this.pd,this.fu):c+"\\"+this.pd+";"+x.Tb.YK(c,this.pd,this.fu)):""==this.pd&&(c=c+";"+x.Tb.ZR(c,this.xq));return c};b.prototype.La=function(a){var c={};c.name=this.name;if(void 0===a?0:a)c.thousandsSeparator=this.thousandsSeparator,c.decimalSeparator=this.HF,c.decimalPlaces=this.Ql,c.maxDecimalPlaces=this.mw,c.maxSymbols=this.Jy,c.currencySymbol=this.pd,c.positiveCurrencyFormat=this.ou,
c.negativeCurrencyFormat=this.fu,c.negativeNumberFormat=this.xq,c.nullValue=this.YG,c.infinityValue=this.GG,c.divideByZeroValue=this.OF,c.textAlign=""!==this.textAlign?this.textAlign:b.textAlign.RIGHT,c.isPercent=this.Xd,c.isCount=this.Tf,c.beautifyFloatingPoint=this.gK;else for(var e in this.Fb)c[e]="textAlign"===e?""===this.textAlign?b.textAlign.RIGHT:this.textAlign:this.Fb[e];return c};b.tb=function(a){var c=new b;null!=a.name&&(c.name=a.name);null!=a.thousandsSeparator&&k.Nb.valid(a.thousandsSeparator)&&
(c.thousandsSeparator=k.Nb.validate(a.thousandsSeparator,!0));null!=a.decimalSeparator&&k.Nb.valid(a.decimalSeparator)&&(c.HF=k.Nb.validate(a.decimalSeparator,!0));null!=a.decimalPlaces&&-1<=parseInt(a.decimalPlaces)&&(c.Ql=isNaN(parseInt(a.decimalPlaces))?-1:parseInt(a.decimalPlaces));null!=a.maxDecimalPlaces&&-1<=parseInt(a.maxDecimalPlaces)&&(c.mw=isNaN(parseInt(a.maxDecimalPlaces))?-1:parseInt(a.maxDecimalPlaces));null!=a.maxSymbols&&1<=parseInt(a.maxSymbols)&&(c.Jy=a.maxSymbols);null!=a.currencySymbol&&
k.Nb.valid(a.currencySymbol)&&(c.pd=k.Nb.validate(a.currencySymbol,!0));if(null!=a.currencySymbolAlign&&k.Nb.valid(a.currencySymbolAlign)){var e=k.Nb.validate(a.currencySymbolAlign);e==b.vaa.LEFT?c.ou=b.Uy.$1:e==b.vaa.RIGHT&&(c.ou=b.Uy["1$"])}null!=a.positiveCurrencyFormat&&k.Nb.valid(a.positiveCurrencyFormat)&&(c.ou=k.Nb.validate(a.positiveCurrencyFormat,!0));null!=a.negativeCurrencyFormat&&k.Nb.valid(a.negativeCurrencyFormat)&&(c.fu=k.Nb.validate(a.negativeCurrencyFormat,!0));null!=a.negativeNumberFormat&&
k.Nb.valid(a.negativeNumberFormat)&&(c.xq=k.Nb.validate(a.negativeNumberFormat));null!=a.nullValue&&k.Nb.valid(a.nullValue)&&(c.YG=k.Nb.validate(a.nullValue,!0));null!=a.infinityValue&&k.Nb.valid(a.infinityValue)&&(c.GG=k.Nb.validate(a.infinityValue,!0));null!=a.divideByZeroValue&&k.Nb.valid(a.divideByZeroValue)&&(c.OF=k.Nb.validate(a.divideByZeroValue,!0));null!=a.textAlign&&k.Nb.valid(a.textAlign)&&(c.textAlign=k.Nb.validate(a.textAlign));null!=a.isPercent&&(c.Xd=1==a.isPercent);null!=a.isCount&&
(c.Tf=1==a.isCount);null!=a.beautifyFloatingPoint&&(c.gK=1==a.beautifyFloatingPoint);return c};b.prototype.clone=function(){var a=new b;a.name=this.name;this.Fb.hasOwnProperty("thousandsSeparator")&&(a.thousandsSeparator=this.thousandsSeparator);this.Fb.hasOwnProperty("decimalSeparator")&&(a.HF=this.HF);this.Fb.hasOwnProperty("decimalPlaces")&&(a.Ql=this.Ql);this.Fb.hasOwnProperty("maxDecimalPlaces")&&(a.mw=this.mw);this.Fb.hasOwnProperty("maxSymbols")&&(a.Jy=this.Jy);this.Fb.hasOwnProperty("currencySymbol")&&
(a.pd=this.pd);this.Fb.hasOwnProperty("positiveCurrencyFormat")&&(a.ou=this.ou);this.Fb.hasOwnProperty("negativeCurrencyFormat")&&(a.fu=this.fu);this.Fb.hasOwnProperty("negativeNumberFormat")&&(a.xq=this.xq);this.Fb.hasOwnProperty("nullValue")&&(a.YG=this.YG);this.Fb.hasOwnProperty("infinityValue")&&(a.GG=this.GG);this.Fb.hasOwnProperty("divideByZeroValue")&&(a.OF=this.OF);this.Fb.hasOwnProperty("textAlign")&&(a.textAlign=this.textAlign);this.Fb.hasOwnProperty("isPercent")&&(a.Xd=this.Xd);this.Fb.hasOwnProperty("isPercent")&&
(a.Tf=this.Tf);this.Fb.hasOwnProperty("beautifyFloatingPoint")&&(a.gK=this.gK);var c={},e;for(e in this.Ld)c[e]=this.Ld[e];a.Ld=c;return a};b.prototype.Iea=function(a){for(var c in a)this.Ld[c]=a[c]};q.Object.defineProperties(b.prototype,{Sd:{configurable:!0,enumerable:!0,get:function(){return this.Fb}},thousandsSeparator:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.thousandsSeparator?this.Fb.thousandsSeparator:this.Ld.thousandsSeparator},set:function(a){this.Fb.thousandsSeparator=
a}},HF:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.decimalSeparator?this.Fb.decimalSeparator:this.Ld.decimalSeparator},set:function(a){this.Fb.decimalSeparator=a}},Ql:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.decimalPlaces?this.Fb.decimalPlaces:this.Ld.decimalPlaces},set:function(a){this.Fb.decimalPlaces=a}},mw:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.maxDecimalPlaces?this.Fb.maxDecimalPlaces:this.Ld.maxDecimalPlaces},
set:function(a){this.Fb.maxDecimalPlaces=a}},Jy:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.maxSymbols?this.Fb.maxSymbols:this.Ld.maxSymbols},set:function(a){this.Fb.maxSymbols=a}},pd:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.currencySymbol?this.Fb.currencySymbol:this.Ld.currencySymbol},set:function(a){this.Fb.currencySymbol=a}},ou:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.positiveCurrencyFormat?this.Fb.positiveCurrencyFormat:
this.Ld.positiveCurrencyFormat},set:function(a){this.Fb.positiveCurrencyFormat=a}},fu:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.negativeCurrencyFormat?this.Fb.negativeCurrencyFormat:this.Ld.negativeCurrencyFormat},set:function(a){this.Fb.negativeCurrencyFormat=a}},xq:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.negativeNumberFormat?this.Fb.negativeNumberFormat:this.Ld.negativeNumberFormat},set:function(a){this.Fb.negativeNumberFormat=a}},YG:{configurable:!0,
enumerable:!0,get:function(){return void 0!=this.Fb.nullValue?this.Fb.nullValue:this.Ld.nullValue},set:function(a){this.Fb.nullValue=a}},GG:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.infinityValue?this.Fb.infinityValue:this.Ld.infinityValue},set:function(a){this.Fb.infinityValue=a}},OF:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.divideByZeroValue?this.Fb.divideByZeroValue:this.Ld.divideByZeroValue},set:function(a){this.Fb.divideByZeroValue=a}},textAlign:{configurable:!0,
enumerable:!0,get:function(){return void 0!=this.Fb.textAlign?this.Fb.textAlign:this.Ld.textAlign},set:function(a){this.Fb.textAlign=a}},Xd:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.isPercent?this.Fb.isPercent:this.Ld.isPercent},set:function(a){this.Fb.isPercent=a}},Tf:{configurable:!0,enumerable:!0,get:function(){return void 0!=this.Fb.isCount?this.Fb.isCount:this.Ld.isCount},set:function(a){this.Fb.isCount=a}},gK:{configurable:!0,enumerable:!0,get:function(){return void 0!=
this.Fb.beautifyFloatingPoint?this.Fb.beautifyFloatingPoint:this.Ld.beautifyFloatingPoint},set:function(a){this.Fb.beautifyFloatingPoint=a}},waa:{configurable:!0,enumerable:!0,set:function(){},get:function(){return 1<this.pd.length&&"&"==this.pd.charAt(0)&&";"==this.pd.charAt(this.pd.length-1)?1:this.pd.length}}});b.vaa={LEFT:"left",RIGHT:"right"};b.Rr={"-$1":"-$1","-1$":"-1$","$-1":"$-1","$1-":"$1-","1-$":"1-$","1$-":"1$-","($1)":"($1)","(1$)":"(1$)"};b.Uy={$1:"$1","1$":"1$"};b.gu={"-1":"-1","- 1":"- 1",
"1-":"1-","1 -":"1 -","(1)":"(1)"};b.textAlign={LEFT:"left",CENTER:"center",RIGHT:"right"};d.pf=b})(h.W||(h.W={}))})(k.Zb||(k.Zb={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.valid=function(b){return b==d.Gf||b==d.Nc||b==d.Zd||b==d.API||b==d.JSON||b==d.xh||b==d.Pp||b==d.EMPTY};d.Hc=function(b){return this.valid(b)&&(b==d.Zd||b==d.Nc||b==d.Gf||b==d.API)};d.J=function(b){return b==d.xh?"CSV":b==d.Pp?"OCSV":b==d.JSON?"JSON":b==d.Nc?"Microsoft Analysis Services":b==d.Zd?"Mondrian":b==d.Gf?"Elasticsearch":b==d.API?"Flexmonster Custom API":""};d.Nc="microsoft analysis services";d.Zd="mondrian";d.xh="csv";d.Pp="ocsv";d.JSON=
"json";d.Gf="elasticsearch";d.API="api";d.EMPTY="";h.oa=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return g.apply(this,arguments)||this}function b(){}function a(){}function c(){}function e(){return g.apply(this,arguments)||this}function g(){}function l(){}l.validate=function(m){if(f.ha(m))return l.NONE;m=m.toLowerCase();return 0<=l.types.indexOf(m)?m:l.NONE};l.pda=function(m,n){switch(m){case h.eb.Sc:return c.Cg(n);case h.eb.fb:return g.Cg(n);case h.eb.Oa:return a.Cg(n)}return!1};l.NONE="none";l.gk="label";l.Oa="date";l.fb="number";l.nn="value";
l.Yb="time";l.types=[l.NONE,l.gk,l.Oa,l.fb,l.nn,l.Yb];h.kb=l;g.Cg=function(m){return f.v(m)?!1:0<=g.Gp.indexOf(m.toLowerCase())};g.EQUAL="equal";g.If="not_equal";g.GREATER="greater";g.Kk="greater_equal";g.LESS="less";g.Lk="less_equal";g.Sg="between";g.Jg="not_between";g.Qh=[g.EQUAL,g.If,g.GREATER,g.Kk,g.LESS,g.Lk];g.rf=[g.Sg,g.Jg];g.Gp=[g.EQUAL,g.If,g.GREATER,g.Kk,g.LESS,g.Lk,g.Sg,g.Jg];h.vg=g;u(e,g);h.ik=e;c.Cg=function(m){return f.v(m)?!1:0<=c.Gp.indexOf(m.toLowerCase())};c.EQUAL="equal";c.If="not_equal";
c.LD="begin";c.$z="not_begin";c.Mz="end";c.bA="not_end";c.an="contain";c.aA="not_contain";c.GREATER="greater";c.Kk="greater_equal";c.LESS="less";c.Lk="less_equal";c.Sg="between";c.Jg="not_between";c.Qh=[c.EQUAL,c.If,c.LD,c.$z,c.Mz,c.bA,c.an,c.aA,c.GREATER,c.Kk,c.LESS,c.Lk];c.rf=[c.Sg,c.Jg];c.Gp=[c.EQUAL,c.If,c.LD,c.$z,c.Mz,c.bA,c.an,c.aA,c.GREATER,c.Kk,c.LESS,c.Lk,c.Sg,c.Jg];h.wb=c;a.Cg=function(m){return f.v(m)?!1:0<=a.Gp.indexOf(m.toLowerCase())};a.EQUAL="equal";a.If="not_equal";a.JD="before";a.KD=
"before_equal";a.FD="after";a.GD="after_equal";a.Sg="between";a.Jg="not_between";a.tO="last";a.MN="current";a.KO="next";a.Qh=[a.EQUAL,a.If,a.JD,a.KD,a.FD,a.GD];a.rf=[a.Sg,a.Jg];a.$w=[a.tO,a.MN,a.KO];a.Gp=[a.EQUAL,a.If,a.JD,a.KD,a.FD,a.GD,a.Sg,a.Jg,a.tO,a.MN,a.KO];h.Ub=a;b.Cg=function(m){return f.v(m)?!1:0<=b.types.indexOf(m.toLowerCase())};b.hm="day";b.eJ="week";b.Hg="month";b.Cs="quarter";b.Qk="year";b.types=[b.hm,b.eJ,b.Hg,b.Cs,b.Qk];h.Kz=b;u(d,g);d.Cg=function(m){return f.v(m)?!1:0<=d.Gp.indexOf(m.toLowerCase())};
d.Bj="top";d.ji="bottom";d.Qh=[d.Bj,d.ji,d.EQUAL,d.If,d.GREATER,d.Kk,d.LESS,d.Lk];d.rf=[d.Sg,d.Jg];d.Gp=[d.Bj,d.ji,d.EQUAL,d.If,d.GREATER,d.Kk,d.LESS,d.Lk,d.Sg,d.Jg];h.tc=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Cg=function(b){return b==d.Zc||b==d.bc||b==d.Ec};d.xS=function(b,a,c){b=void 0===b?"":b;a=void 0===a?!1:a;return(void 0===c?0:c)?b==k.i.xa.bc?a?k.i.xa.Zc:k.i.xa.Ec:b==k.i.xa.Ec?a?k.i.xa.bc:k.i.xa.Zc:a?k.i.xa.Ec:k.i.xa.bc:b==k.i.xa.Ec?k.i.xa.bc:k.i.xa.Ec};d.Zc="unsorted";d.bc="asc";d.Ec="desc";d.Gna="numericRange";h.xa=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Ia="rows";d.Sa="columns";d.As="pages";h.ia=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.Zz=1;d.AO=2;h.Lz=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.NB=function(b){var a=d.Eu;switch(b){case h.input.ff.V6.AO:a=d.Op;break;case h.input.ff.V6.Zz:a=d.Oa}return a};d.N_=function(b){return 0<=h.Ja.NK.indexOf(b)?d.Op:"date"==b?d.Oa:d.Eu};d.M_=function(b){var a=d.Eu;switch(b){case h.input.pa.fb:case h.input.pa.Yb:a=d.Op;break;case h.input.pa.gj:case h.input.pa.Np:case h.input.pa.oo:case h.input.pa.Dc:case h.input.pa.Oa:a=d.Oa}return a};d.wD=function(b){var a=h.input.pa.Sc;switch(b){case d.Op:a=h.input.pa.fb;
break;case d.Oa:a=h.input.pa.Oa}return a};d.Eu=0;d.Oa=1;d.Op=2;d.NK=["keyword","date","boolean"];h.Gc=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.NB=function(b){switch(b){case h.input.ff.Wz.Sc:case h.input.ff.Wz.ypa:return d.Sc;case h.input.ff.Wz.io:return d.io;case h.input.ff.Wz.Oa:return d.Oa;case h.input.ff.Wz.Dc:return d.Dc;case h.input.ff.Wz.bpa:return d.Yb;case h.input.ff.Wz.sc:return d.sc}return d.fb};d.xxa=function(b){b=b.toLowerCase();switch(b){case "string":return d.Oa;case "integer":case "number":case "double":return d.fb;default:return d.fb}};d.uxa=function(b){switch(b){case 13:return d.Yb;
case 15:return d.Dc;case 3:return d.io;case 12:return d.fb}return d.sc};d.wxa=function(b){var a=d.sc;switch(b){case "number":a=d.fb;break;case "string":a=d.Sc;break;case "boolean":a=d.io;break;case "date":a=d.Oa;break;case "timestamp":a=d.Yb;break;case "count":a=d.sc}return a};d.N_=function(b){return 0<=h.Gc.NK.indexOf(b)?d.sc:d.fb};d.wD=function(b){switch(b){case d.Sc:return h.input.pa.Sc;case d.io:return h.input.pa.io;case d.Oa:return h.input.pa.Oa;case d.Dc:return h.input.pa.Dc;case d.Yb:return h.input.pa.Yb;
case d.sc:return h.input.pa.Sc}return h.input.pa.fb};d.fb=1;d.Sc=2;d.io=3;d.Oa=4;d.Yb=5;d.Dc=6;d.sc=7;d.NK="long integer short byte double float half_float scaled_float".split(" ");h.Ja=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.oT=function(b){return b===d.fb||b===d.Qk||b===d.hm||b===d.nO||b===d.HO||b===d.dX||b===d.C7||b===d.Dc||b===d.Yb||b===d.Oa};d.MAa=function(b){return b===d.Oa||b===d.Dc||b===d.gj};d.vxa=function(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 d.fb}return d.Sc};d.NB=function(b,a,c){if(void 0===a?0:a)return d.vxa(void 0===c?0:c);switch(b){case h.input.ff.fk.yma:return d.yia;case h.input.ff.fk.zma:case 4178:case 4561:case 4562:return d.fb;
case h.input.ff.fk.Ama:case h.input.ff.fk.Mma:return d.Yb;case h.input.ff.fk.Ema:case h.input.ff.fk.Dma:case h.input.ff.fk.Fma:return d.hm;case h.input.ff.fk.Gma:case 4385:case 4328:case 4329:return d.xW;case h.input.ff.fk.Hma:return d.nO;case h.input.ff.fk.Ima:return d.HO;case h.input.ff.fk.Jma:return d.Hg;case h.input.ff.fk.Kma:case 4336:case 4337:case 4578:return d.Cs;case h.input.ff.fk.Lma:return d.dX;case h.input.ff.fk.Nma:case 4345:case h.input.ff.fk.Oma:case 4344:return d.eJ;case h.input.ff.fk.Pma:case 4759:case 4345:case 4346:return d.Qk;
case h.input.ff.fk.Cma:case h.input.ff.fk.Bma:case 4657:case 4659:case 4292:case 4294:return d.Oa}return d.Sc};d.wD=function(b){switch(b){case d.fb:case d.nO:case d.HO:case d.dX:case d.C7:return h.input.pa.fb;case d.Oa:case d.Qk:case d.Qk:case d.hm:return h.input.pa.Oa;case d.io:return h.input.pa.io;case d.Hg:return h.input.pa.Hg;case d.om:return h.input.pa.om;case d.Yb:return h.input.pa.Yb;case d.Dc:return h.input.pa.Dc;case d.gj:return h.input.pa.gj;default:return h.input.pa.Sc}};d.M_=function(b){switch(b){case h.input.pa.Sc:return d.Sc;
case h.input.pa.fb:return d.fb;case h.input.pa.io:return d.io;case h.input.pa.Hg:return d.Hg;case h.input.pa.om:return d.om;case h.input.pa.Oa:case h.input.pa.Np:case h.input.pa.oo:return d.Oa;case h.input.pa.gj:return d.gj;case h.input.pa.Yb:return d.Yb;case h.input.pa.Dc:return d.Dc;default:return d.Sc}};d.yia=0;d.Sc=1;d.fb=2;d.io=3;d.Oa=4;d.Yb=5;d.Qk=6;d.xW=7;d.Cs=8;d.Hg=9;d.eJ=10;d.om=11;d.hm=12;d.nO=13;d.HO=14;d.dX=15;d.C7=16;d.Dc=17;d.gj=18;h.eb=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.Zz=1;a.AO=2;b.V6=a})(d.ff||(d.ff={}))})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.fb=1;a.Sc=2;a.io=3;a.Oa=4;a.ypa=5;a.bpa=6;a.sc=7;a.Dc=8;b.Wz=a})(d.ff||(d.ff={}))})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.yma=1;a.zma=2;a.Ama=4;a.Cma=516;a.Gma=36;a.Hma=772;a.Ima=1028;a.Jma=132;a.Kma=68;a.Lma=2052;a.Mma=4100;a.Nma=260;a.Pma=20;a.Bma=4289;a.Dma=4296;a.Ema=4301;a.Fma=4302;a.Oma=4759;b.fk=a})(d.ff||(d.ff={}))})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}b.valid=function(a){return-1<b.aK.indexOf(a)};b.M4=function(a){return""===a?b.Sc:"number"!=typeof a&&isNaN(Number(a))?f.O.dT(a)?f.model.B.C.yR:b.Sc:b.fb};b.sxa=function(a){a=a.trim();var c=b.Sc;"+"==a.charAt(0)?c=b.Sc:"t+"==a.substr(0,2)?c=b.Yb:"dt+"==a.substr(0,3)?c=b.Dc:"n+"==a.substr(0,2)?c=b.fb:"-"==a.charAt(0)?c=b.fb:"ds+"==a.substr(0,3)?c=b.gj:"d+"==a.substr(0,2)?c=b.Oa:"m+"==a.substr(0,2)?c=b.Hg:"w+"==a.substr(0,2)?c=b.om:"D+"==
a.substr(0,2)?c=b.Np:"D4+"==a.substr(0,3)?c=b.oo:"id+"==a.substr(0,3)&&(c=b.Vw);return c};b.fb="number";b.Sc="string";b.io="boolean";b.qf="level";b.Hg="month";b.om="weekday";b.Oa="date";b.gj="date string";b.Np="year/month/day";b.oo="year/quarter/month/day";b.Yb="time";b.Dc="datetime";b.Vw="id";b.V5="delete";b.U6="hidden";b.mE="property";b.NH="any";b.aK="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(";");
d.pa=b})(h.input||(h.input={}))})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.jF=function(b){return b===d.Up?f.model.A.j.f8:b===d.sc?f.model.A.j.I5:b===d.hj||b===d.RN?f.model.A.j.gka:b===d.Hp?f.model.A.j.f5:b===d.Mu?f.model.A.j.Rma:b===d.Su?f.model.A.j.Ioa:b===d.Tu?f.model.A.j.Koa:b===d.Bs?f.model.A.j.coa:b===d.MIN?f.model.A.j.sna:b===d.MAX?f.model.A.j.wma:b===d.Wq?f.model.A.j.Pna:b===d.ro||b===d.OO?f.model.A.j.Qna:b===d.Tp?f.model.A.j.aoa:b===d.Rp?f.model.A.j.Xna:b===d.Sp?f.model.A.j.Zna:b===d.li?f.model.A.j.Vla:b===d.dn||
b===d.QN?f.model.A.j.cka:b===d.im?f.model.A.j.eka:b===d.jn||b===d.PO?f.model.A.j.Sna:b===d.km?f.model.A.j.Una:b===d.nm||b===d.SO?f.model.A.j.poa:b===d.ln?f.model.A.j.roa:b===d.NONE?f.model.A.j.Dna:b};d.UY=function(b){b=void 0===b?null:b;var a=[];b=b?b:d.MH;for(var c=0;c<b.length;c++)a.push(d.jF(b[c]));return a};d.q$=function(b){b=void 0===b?null:b;var a=[];b=b?b:d.MH;for(var c=0;c<b.length;c++)b[c]===d.Up?a.push(f.model.A.j.WI):b[c]===d.sc?a.push(f.model.A.j.LN):b[c]===d.hj||b[c]===d.RN?a.push(f.model.A.j.SN):
b[c]===d.Hp?a.push(f.model.A.j.FN):b[c]===d.Mu?a.push(f.model.A.j.HW):b[c]===d.Su?a.push(f.model.A.j.ZO):b[c]===d.Tu?a.push(f.model.A.j.$O):b[c]===d.Bs?a.push(f.model.A.j.QO):b[c]===d.MIN?a.push(f.model.A.j.IO):b[c]===d.MAX?a.push(f.model.A.j.zO):b[c]===d.Wq?a.push(f.model.A.j.QI):b[c]===d.ro||b[c]===d.OO?a.push(f.model.A.j.JI):b[c]===d.Tp?a.push(f.model.A.j.OI):b[c]===d.Rp?a.push(f.model.A.j.MI):b[c]===d.Sp?a.push(f.model.A.j.NI):b[c]===d.li?a.push(f.model.A.j.wI):b[c]===d.dn||b[c]===d.QN?a.push(f.model.A.j.bI):
b[c]===d.im?a.push(f.model.A.j.cI):b[c]===d.jn||b[c]===d.PO?a.push(f.model.A.j.KI):b[c]===d.km?a.push(f.model.A.j.LI):b[c]===d.nm||b[c]===d.SO?a.push(f.model.A.j.RO):b[c]===d.ln?a.push(f.model.A.j.TO):b[c]===d.NONE?a.push("{0}"):-1<d.xz.indexOf(b[c])&&a.push("{0} ("+b[c]+")");return a};d.rz=function(b){return-1!==d.MH.indexOf(b)||b===d.NONE};d.bKa=function(b){return-1!==d.e5.indexOf(b)};d.AD=function(b){return-1!==d.sia.indexOf(b)||b===d.NONE};d.eo=function(b){return-1!==d.tia.indexOf(b)||b===d.NONE};
d.Tf=function(b){return-1!==d.wia.indexOf(b)};d.Xd=function(b){return-1!==d.xia.indexOf(b)};d.OL=function(b){return b===d.dn||b===d.im||b===d.jn||b===d.km};d.UL=function(b){return b===d.nm||b===d.ln};d.Vx=function(b){return b===d.RN||b===d.OO||b===d.QN||b===d.PO||b===d.SO};d.ky=function(b){switch(b){case d.RN:return d.hj;case d.OO:return d.ro;case d.QN:return d.dn;case d.PO:return d.jn;case d.SO:return d.nm;default:return""}};d.YS=function(b){return-1!==d.xz.indexOf(b)||b===d.NONE};q.Object.defineProperties(d,
{MH:{configurable:!0,enumerable:!0,get:function(){return d.xz.concat(d.yz)}},Lia:{configurable:!0,enumerable:!0,get:function(){0===d.vX.length&&(d.vX=d.via.concat(d.yz));return d.vX}},Iia:{configurable:!0,enumerable:!0,get:function(){0===d.uX.length&&(d.uX=d.uia);return d.uX}},e5:{configurable:!0,enumerable:!0,get:function(){0===d.tX.length&&(d.tX=[d.NONE].concat(d.yz));return d.tX}}});d.Up="sum";d.sc="count";d.hj="distinctcount";d.RN="distinct count";d.Hp="average";d.Mu="median";d.Su="stdevp";d.Tu=
"stdevs";d.Wq="percent";d.ro="percentofcolumn";d.Tp="percentofrow";d.Rp="percentofparentcolumntotal";d.Sp="percentofparentrowtotal";d.OO="percent of column";d.Bs="product";d.li="index";d.nm="runningtotalsofcolumn";d.ln="runningtotalsofrow";d.SO="runningtotals";d.MIN="min";d.MAX="max";d.NONE="none";d.dn="differenceofcolumn";d.im="differenceofrow";d.QN="difference";d.jn="%differenceofcolumn";d.km="%differenceofrow";d.PO="%difference";d.xz=[d.Up,d.sc,d.hj,d.Hp,d.Mu,d.Bs,d.MIN,d.MAX,d.Su,d.Tu];d.yz=[d.Wq,
d.ro,d.Tp,d.Rp,d.Sp,d.li,d.dn,d.im,d.jn,d.km,d.nm,d.ln];d.NN=[];d.via=[d.sc,d.hj];d.vX=[];d.uia=[d.MAX,d.MIN,d.sc,d.hj];d.uX=[];d.tX=[];d.Jia=[d.Up,d.sc,d.hj,d.Hp,d.MIN,d.MAX];d.Kia=[d.sc,d.hj];d.wia=[d.sc,d.hj];d.xia=[d.Wq,d.ro,d.Tp,d.Rp,d.Sp,d.jn,d.km];d.sia=[d.Up,d.Hp,d.Mu,d.Bs,d.MIN,d.MAX];d.tia=[d.Up,d.Hp,d.Mu,d.Bs,d.MIN,d.MAX,d.Su,d.Tu,d.dn,d.im,d.nm,d.ln];h.ca=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.AN="+";d.aP="-";d.JO="*";d.dI="/";d.TW="^";d.LESS="<";d.GREATER=">";d.EQUAL="=";d.wka="==";d.If="!=";d.d7="<=";d.R6=">=";d.N7="or";d.X4="and";d.oO="if";d.KV="abs";d.$W="round";d.MIN="min";d.MAX="max";d.Qia="isnan";d.Fna="!isnan";d.nn="value";d.lP="updatedifference";d.mP="updatepercent";h.jc=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.to="select";d.Oz="expand";d.y5="collapse";d.aW="drillUp";d.Fu="drillDown";d.ZV="drillDownTo";d.eI="drillThrough";d.bO="filter";d.cX="search";h.Kd=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){}d.TN=Number.NEGATIVE_INFINITY;h.UN=d})(k.i||(k.i={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=this;this.Gk=function(){return b.Vr()};this.ej=function(){return b.mp()}}d.prototype.aCa=function(b,a,c){try{this.dispose(),this.Ib=c,this.DB=this.Jj=0,this.lw=x.hx.AG(b),this.dN(this.lw,a)}catch(e){this.Mb(e)}};d.prototype.yq=function(){f.za(!1);try{var b=JSON.parse(this.ma.response)}catch(a){b=null}null!=this.Ib&&(this.Ib(b),this.dispose())};d.prototype.sDa=function(){f.za(!0,f.model.A.j.NW,"")};d.prototype.lp=function(b){var a=b.data;if(404==
a.target.status)this.Mb(b);else if(!f.v(this.ma))try{var c=this.ma.response;if(null!=c&&0!=c.length&&(this.Jj!=a.loaded||this.DB!=c.length)){this.Jj=a.loaded;this.DB=c.length;var e=0==a.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(a.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(a.loaded),x.Tb.xg(a.total),(a.loaded/a.total*100).toFixed(0));f.za(!0,f.model.A.j.NW,e)}}catch(g){console.error(g.stack),this.Mb(g)}};d.prototype.Mb=function(){f.za(!1);null!=this.Ib&&(this.Ib(null),this.dispose())};d.prototype.dN=function(b,
a){var c=this;this.timer=new x.Es(100,1E5);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start();var e=new D.Qi;e.dataType=D.Jz.lA;e.N(y.da.Jc,function(){return c.yq()});e.N(y.da.Fz,function(){return c.sDa()});e.N(y.da.je,function(g){return c.lp(g)});e.N(y.da.ya,function(g){return c.Mb(g)});e.vh(a);e.load(b);this.ma=e};d.prototype.Vr=function(){0<this.Jj?this.ag():null!=this.timer&&this.timer.sl&&f.za(!0,f.model.A.j.NW,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/10,
new f.model.Zb.W.pf,!1,!1,1)))};d.prototype.mp=function(){this.timer.sl&&this.ag()};d.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};d.prototype.dispose=function(){this.ag();null!=this.ma&&(this.ma.Od(),this.ma.dispose(),this.ma=null);this.Ib=null};h.vna=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){b=void 0===b?null:b;this.lw=this.mapping=null;this.yt={};this.RT=null;"string"==typeof b?this.lw=b:(this.mapping=b,this.HV());this.yt.filters=!0}(function(b){b.ALa="visible";b.uLa="caption";b.TYPE="type";b.yW="hierarchy";b.qf="level";b.yLa="parent";b.tLa="aggregations";b.vLa="format";b.wLa="interval";b.zLa="time_zone";b.xLa="min_doc_count";b.JLa="isMeasure";b.BLa="filters"})(h.wna||(h.wna={}));d.prototype.HV=function(){for(var b in this.mapping)if("aggregations"===
b)this.Ao=this.mapping[b],delete this.mapping[b];else if(!f.v(this.mapping[b])&&"object"!==typeof this.mapping[b]){var a=k.i.input.pa.M4(this.mapping[b]);this.mapping[b]={uniqueName:b,caption:b,type:a}}};d.prototype.Fa=function(b,a,c){c=void 0===c?null:c;b=x.Mc.resolve(b,this.mapping);var e=null;f.v(b)||(e=b[a]);f.v(e)&&(e=c);f.v(e)&&(e=this.yt[a]);return e};d.prototype.Nh=function(b,a,c){var e=void 0===e?!0:e;var g=x.Mc.resolve(b,this.mapping);e&&f.v(g)&&(this.mapping[b]={},g=this.mapping[b]);f.v(g)||
(g[a]=c)};d.prototype.La=function(b){if((b=void 0===b?!1:b)&&this.Sn)return this.lw;b&&this.Ao&&(this.mapping.aggregations=this.Ao);return this.mapping};d.prototype.nCa=function(b){switch(b){case k.i.oa.API:b=new k.external.kc.DN;break;case k.i.oa.Gf:b=new k.external.De.XN;break;case k.i.oa.Zd:case k.i.oa.Nc:new k.external.yb.MO;default:b=new d}return b};d.prototype.clone=function(b){b=this.nCa(void 0===b?"":b);b.mapping=x.Mc.Vi(this.mapping);b.lw=this.lw;b.Ao=this.Ao;return b};d.prototype.isEqual=
function(b){return JSON.stringify(this.La(!0))===JSON.stringify(b.La(!0))&&b.Sn||JSON.stringify(this.mapping)===JSON.stringify(b.La())};d.prototype.bCa=function(b,a){var c=this;this.Ne=a;this.Sn&&this.ob?(this.RT=new h.vna,this.RT.aCa(this.lw,b,function(e){return c.BEa(e)})):(this.Ne(),this.Ne=null)};d.prototype.BEa=function(b){null!==b&&(this.mapping=b,this.HV());this.Ne();this.Ne=null;this.RT.dispose();this.RT=null};d.nT=function(b){if(f.v(b))return!1;if(!f.v(b.aggregations))return!0;for(var a in b)if(!f.v(b[a])&&
(Array.isArray(b[a])&&d.nT(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};d.prototype.O1=function(b,a){var c=x.Mc.resolve(b,this.mapping);f.v(a)&&(a={});if(Array.isArray(c)){for(var e=
[],g=[],l=[],m,n=0;n<c.length;n++)m=this.v9(c[n],a),f.ha(m.uniqueName)&&(m.uniqueName=b),f.ha(m.caption)&&(m.caption=b),-1!==g.indexOf(m.uniqueName)&&(m.uniqueName=b+"."+n),-1!==l.indexOf(m.caption)&&(m.caption=m.caption+" "+n),g.push(m.uniqueName),l.push(m.caption),e.push(m);return e}return this.v9(c,a)};d.prototype.v9=function(b,a){a=x.Mc.Vi(a);for(var c in b)a[c]=b[c],"aggregations"===c&&(a.availableAggregations=b[c]);return a};q.Object.defineProperties(d.prototype,{ob:{configurable:!0,enumerable:!0,
get:function(){return!this.Dda&&f.v(this.Ao)}},Dda:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.mapping)&&0<Object.keys(this.mapping).length}},Sn:{configurable:!0,enumerable:!0,get:function(){return null!==this.lw&&0<this.lw.length}}});h.Aj=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.requestHeaders=null;this.withCredentials=!1;this.pn=k.i.oa.EMPTY;this.CBa=!1}d.prototype.isEqual=function(b){return b&&this.Ba==b.Ba&&this.withCredentials==b.withCredentials};d.tb=function(b){if(void 0==b||f.model.Ea.pc.oj()==f.model.Ea.po.Bl)return new h.Pz;f.v(b.connectionInfo)||(b=b.connectionInfo);b instanceof d||b instanceof k.local.csv.CSVConnectionInfo||b instanceof k.local.csv.OCSVConnectionInfo||b instanceof k.local.json.JSONConnectionInfo||
b instanceof k.external.yb.OLAPConnectionInfo||b instanceof k.external.De.ESConnectionInfo||b instanceof k.external.kc.APIConnectionInfo||(b=d.wl(b));f.v(b.dataSourceType)||(b.dataSourceType=b.dataSourceType.toLowerCase());b.dataSourceType&&-1<b.dataSourceType.indexOf("pentaho")&&(b.dataSourceType=k.i.oa.Zd);"msolap"==b.dataSourceType&&(b.dataSourceType=k.i.oa.Nc);!k.i.oa.valid(b.dataSourceType)&&b.proxyUrl&&(b.dataSourceType=k.i.oa.Nc);if("es"==b.dataSourceType||"elastic"==b.dataSourceType)b.dataSourceType=
k.i.oa.Gf;!k.i.oa.valid(b.dataSourceType)&&(b.host||b.node)&&b.index&&(b.dataSourceType=k.i.oa.Gf);!k.i.oa.valid(b.dataSourceType)&&(b.url||b.discover&&b.select)&&(b.dataSourceType=k.i.oa.API);if(!f.v(b.filename)&&f.v(b.dataSourceType)){var a=b.filename.split("?")[0].toLowerCase();b.dataSourceType=".csv"==a.substr(-4)?k.i.oa.xh:".ocsv"==a.substr(-5)?k.i.oa.Pp:".json"==a.substr(-5)||".js"==a.substr(-3)?k.i.oa.JSON:k.i.oa.xh}!f.v(b.data)&&Array.isArray(b.data)&&(b.dataSourceType=k.i.oa.JSON,b.data=
b.data.slice());if(b.dataSourceType==k.i.oa.Gf&&f.model.Ea.pc.oj()!=f.model.Ea.po.Gf&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.Ewa),f.model.Ea.na.J(f.model.Ea.na.FC)),new h.Pz;if(b.dataSourceType==k.i.oa.Nc&&f.model.Ea.pc.oj()!=f.model.Ea.po.zia&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.OCa),f.model.Ea.na.J(f.model.Ea.na.FC)),new h.Pz;if(b.dataSourceType==
k.i.oa.Zd&&f.model.Ea.pc.oj()!=f.model.Ea.po.Zd&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.GCa),f.model.Ea.na.J(f.model.Ea.na.FC)),new h.Pz;if((b.dataSourceType==k.i.oa.xh||b.dataSourceType==k.i.oa.Pp||b.dataSourceType==k.i.oa.JSON)&&f.model.Ea.pc.oj()!=f.model.Ea.po.Jja&&f.model.Ea.pc.oj()!=f.model.Ea.po.WN)return f.model.Ea.pc.oj()!=f.model.Ea.po.Bl&&f.Va(f.model.Ea.na.J(f.model.Ea.na.SCa),f.model.Ea.na.J(f.model.Ea.na.FC)),
new h.Pz;switch(b.dataSourceType){case k.i.oa.Pp:return k.local.csv.OCSVConnectionInfo.tb(b);case k.i.oa.xh:return k.local.csv.CSVConnectionInfo.tb(b);case k.i.oa.JSON:return k.local.json.JSONConnectionInfo.tb(b);case k.i.oa.Nc:case k.i.oa.Zd:return k.external.yb.OLAPConnectionInfo.tb(b);case k.i.oa.Gf:return k.external.De.ESConnectionInfo.tb(b);case k.i.oa.API:return k.external.kc.APIConnectionInfo.tb(b);default:return new h.Pz}};d.wl=function(b){var a={};f.ha(b.type)||(a.dataSourceType=b.type);
f.ha(b.dataSourceType)||(a.dataSourceType=b.dataSourceType);f.ha(b.filename)||(a.filename=b.filename);f.ha(b.requestHeader)||(a.requestHeaders=b.requestHeader);f.ha(b.requestHeaders)||(a.requestHeaders=b.requestHeaders);f.ha(b.browseForFile)||(a.browseForFile=b.browseForFile);f.ha(b.requestPermission)||(a.requestPermission=b.requestPermission);f.ha(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator);f.ha(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator);f.ha(b.fieldSeparator)||
(a.fieldSeparator=b.fieldSeparator);f.ha(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter);f.ha(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks);f.ha(b.embedded)||(a.embedded=b.embedded);f.ha(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset);f.ha(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad);f.ha(b.isOCSV2Data)||(a.isOCSV2Data=b.isOCSV2Data);f.v(b.data)||(a.data=b.data);f.ha(b.checkUpdates)||(a.checkUpdates=b.checkUpdates);
f.ha(b.proxyUrl)||(a.proxyUrl=b.proxyUrl);f.ha(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo);f.ha(b.catalog)||(a.catalog=b.catalog);f.ha(b.cube)||(a.cube=b.cube);f.ha(b.subquery)||(a.subquery=b.subquery);f.ha(b.binary)||(a.binary=b.binary);f.ha(b.withCredentials)||(a.withCredentials=b.withCredentials);f.ha(b.roles)||(a.roles=b.roles);f.ha(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier);f.ha(b.effectiveUserName)||(a.effectiveUserName=b.effectiveUserName);f.ha(b.customData)||(a.customData=
b.customData);f.ha(b.url)||(a.url=b.url);f.ha(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl);f.ha(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl);f.ha(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl);f.ha(b.levelsUrl)||(a.levelsUrl=b.levelsUrl);f.ha(b.measuresUrl)||(a.measuresUrl=b.measuresUrl);f.ha(b.membersUrl)||(a.membersUrl=b.membersUrl);f.ha(b.dataUrl)||(a.dataUrl=b.dataUrl);f.ha(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl);f.ha(b.host)||(a.host=b.host);f.ha(b.node)||
(a.node=b.node);f.ha(b.connection)||(a.connection=b.connection);f.ha(b.index)||(a.index=b.index);f.ha(b.mapping)||(a.mapping=b.mapping);f.ha(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint);f.ha(b.useSockets)||(a.useSockets=b.useSockets);f.ha(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader);f.ha(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters);f.ha(b.hash)||(a.hash=b.hash);f.ha(b.username)||(a.username=b.username);f.ha(b.password)||
(a.password=b.password);f.ha(b.dataSource)||(b=b.dataSource,f.ha(b.type)||(a.dataSourceType=b.type),f.ha(b.dataSourceType)||(a.dataSourceType=b.dataSourceType),f.ha(b.filename)||(a.filename=b.filename),f.ha(b.requestHeader)||(a.requestHeaders=b.requestHeader),f.ha(b.requestHeaders)||(a.requestHeaders=b.requestHeaders),f.ha(b.browseForFile)||(a.browseForFile=b.browseForFile),f.ha(b.requestPermission)||(a.requestPermission=b.requestPermission),f.ha(b.fieldSeparator)||(a.fieldSeparator=b.fieldSeparator),
f.ha(b.thousandSeparator)||(a.thousandsSeparator=b.thousandSeparator),f.ha(b.thousandsSeparator)||(a.thousandsSeparator=b.thousandsSeparator),f.ha(b.recordsetDelimiter)||(a.recordsetDelimiter=b.recordsetDelimiter),f.ha(b.ignoreQuotedLineBreaks)||(a.ignoreQuotedLineBreaks=b.ignoreQuotedLineBreaks),f.ha(b.embedded)||(a.embedded=b.embedded),f.ha(b.embeddedDataOffset)||(a.embeddedDataOffset=b.embeddedDataOffset),f.ha(b.embeddedDataToLoad)||(a.embeddedDataToLoad=b.embeddedDataToLoad),f.ha(b.isOCSV2Data)||
(a.isOCSV2Data=b.isOCSV2Data),f.v(b.data)||(a.data=b.data),f.ha(b.proxyUrl)||(a.proxyUrl=b.proxyUrl),f.ha(b.dataSourceInfo)||(a.dataSourceInfo=b.dataSourceInfo),f.ha(b.catalog)||(a.catalog=b.catalog),f.ha(b.cube)||(a.cube=b.cube),f.ha(b.subquery)||(a.subquery=b.subquery),f.ha(b.binary)||(a.binary=b.binary),f.ha(b.withCredentials)||(a.withCredentials=b.withCredentials),f.ha(b.roles)||(a.roles=b.roles),f.ha(b.localeIdentifier)||(a.localeIdentifier=b.localeIdentifier),f.ha(b.effectiveUserName)||(a.effectiveUserName=
b.effectiveUserName),f.ha(b.customData)||(a.customData=b.customData),f.ha(b.url)||(a.url=b.url),f.ha(b.handshakingUrl)||(a.handshakingUrl=b.handshakingUrl),f.ha(b.dimensionsUrl)||(a.dimensionsUrl=b.dimensionsUrl),f.ha(b.hierarchiesUrl)||(a.hierarchiesUrl=b.hierarchiesUrl),f.ha(b.levelsUrl)||(a.levelsUrl=b.levelsUrl),f.ha(b.measuresUrl)||(a.measuresUrl=b.measuresUrl),f.ha(b.membersUrl)||(a.membersUrl=b.membersUrl),f.ha(b.dataUrl)||(a.dataUrl=b.dataUrl),f.ha(b.drillThroughUrl)||(a.drillThroughUrl=b.drillThroughUrl),
f.ha(b.host)||(a.host=b.host),f.ha(b.node)||(a.node=b.node),f.ha(b.connection)||(a.connection=b.connection),f.ha(b.index)||(a.index=b.index),f.ha(b.mapping)||(a.mapping=b.mapping),f.ha(b.singleEndpoint)||(a.singleEndpoint=b.singleEndpoint),f.ha(b.useStreamLoader)||(a.useStreamLoader=b.useStreamLoader),f.ha(b.useGranularityNamesForDateFilters)||(a.useGranularityNamesForDateFilters=b.useGranularityNamesForDateFilters),b=b.credentials,null!=b&&(f.ha(b.hash)||(a.hash=b.hash),f.ha(b.username)||(a.username=
b.username),f.ha(b.password)||(a.password=b.password)));return a};d.Qj=function(b){var a=b.find("dataSource"),c=a.attr("type");void 0!==c&&(c=c.toLowerCase());"msolap"==c&&(c=k.i.oa.Nc);c&&-1<c.indexOf("pentaho")&&(c=k.i.oa.Zd);var e=a.find("filename");if(!k.i.oa.valid(c)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(c=k.i.oa.Nc);0<e.length&&0<e.text().length&&(c=k.i.oa.xh)}0<e.length&&0<e.text().length&&".ocsv"==e.text().toLocaleLowerCase().substr(-5)&&(c=k.i.oa.Pp);0<e.length&&0<e.text().length&&
".json"==e.text().toLocaleLowerCase().substr(-5)&&(c=k.i.oa.JSON);0<e.length&&0<e.text().length&&".csv"==e.text().toLocaleLowerCase().substr(-4)&&(c=k.i.oa.xh);switch(c){case k.i.oa.Pp:return k.local.csv.OCSVConnectionInfo.Qj(a[0]);case k.i.oa.xh:return k.local.csv.CSVConnectionInfo.Qj(b);case k.i.oa.JSON:return k.local.json.JSONConnectionInfo.Qj(a[0]);case k.i.oa.Nc:case k.i.oa.Zd:return k.external.yb.OLAPConnectionInfo.Qj(b);default:return k.local.csv.CSVConnectionInfo.Qj(b)}};d.prototype.co=function(){var b=
D.aa.create("<dataSource/>");this.Ba!=k.i.oa.EMPTY&&b.attr("type",this.Ba);return b};q.Object.defineProperties(d.prototype,{Ba:{configurable:!0,enumerable:!0,get:function(){return this.pn},set:function(b){this.pn=b.toLowerCase()}},Hc:{configurable:!0,enumerable:!0,get:function(){return k.i.oa.Hc(this.pn)},set:function(){}},rT:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},ob:{configurable:!0,enumerable:!0,get:function(){return this.pn==k.i.oa.EMPTY},set:function(){}},NL:{configurable:!0,
enumerable:!0,get:function(){return this.pn===k.i.oa.xh&&"this"===this.filename}},RL:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},KG:{configurable:!0,enumerable:!0,get:function(){return!0}},gT:{configurable:!0,enumerable:!0,get:function(){return!0}},fT:{configurable:!0,enumerable:!0,get:function(){return!0}}});h.ConnectionInfo=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(d){this.pb=[];this.Ac=[];this.Wg=[];this.cb=[];this.vd=[];this.Md=[];this.le=[];this.ra=[];this.al=[];this.Yg=[];this.bg=[];this.Ao=[];this.Fx=[];this.pC=[];this.Mm=[];this.Hna=0;this.ofa=[];this.Ti=[];this.uh=[];this.sizes=[];this.filters=[];this.Ew=[];this.Et=[];this.values=[];this.SP=[];this.wa=d}h.prototype.vF=function(){this.Mm=[];this.cb=[];this.pb=[];this.Ac=[];this.al=[];this.ra=[];this.values=[];this.Wg=[];this.filters=[]};h.prototype.uZ=function(){this.le=
[];this.Yg=[];this.bg=[];this.Ao=[];this.Fx=[];this.pC=[]};h.prototype.tr=function(){this.vF();this.uZ();this.vd=[];this.Md=[];this.sizes=[];this.Wg=[]};h.prototype.Pxa=function(d){return isNaN(d[0])};h.prototype.Rxa=function(d){return!isNaN(d[0])};h.prototype.Dxa=function(d){return void 0===d[0]||"string"===typeof d[0]||void 0===d[1]||"string"===typeof d[1]?(null==d[0]||"number"===typeof d[0]&&isNaN(d[0])?"":d[0])+(null==d[1]||"number"===typeof d[1]&&isNaN(d[1])?"":d[1]):d[0]+d[1]};h.prototype.Vxa=
function(d){return d[0]-d[1]};h.prototype.Oxa=function(d){return d[0]*d[1]};h.prototype.Fxa=function(d){return 0==d[1]||isNaN(d[1])?k.i.UN.TN:d[0]/d[1]};h.prototype.Txa=function(d){return Math.pow(d[0],d[1])};h.prototype.Kxa=function(d){return d[0]<d[1]};h.prototype.Hxa=function(d){return d[0]>d[1]};h.prototype.Gxa=function(d){return d[0]==d[1]};h.prototype.Qxa=function(d){return d[0]!=d[1]};h.prototype.Lxa=function(d){return d[0]<=d[1]};h.prototype.Ixa=function(d){return d[0]>=d[1]};h.prototype.Sxa=
function(d){return d[0]||d[1]};h.prototype.Exa=function(d){return d[0]&&d[1]};h.prototype.Jxa=function(d){return d[0]?d[1]:d[2]};h.prototype.Cxa=function(d){return Math.abs(d[0])};h.prototype.Uxa=function(d){return Math.round(d[0])};h.prototype.Nxa=function(d){return Math.min(d[0],d[1])};h.prototype.Mxa=function(d){return Math.max(d[0],d[1])};h.prototype.rr=function(d,b){for(var a=1,c=0,e,g,l=this.Ti.length-1;0<=l;l--)g=this.sizes[this.uh.length+l],0<g&&(e=void 0===b[l]?0:b[l],c+=e*a,a*=g);for(b=
this.uh.length-1;0<=b;b--)g=this.sizes[b],0<g&&(e=d&&void 0!==d[b]?d[b]:0,Math.abs(e*a)>9007199254740991-c&&(a=-a%1E6,0==a&&(a=-g)),c+=e*a,a*=g);return c};h.prototype.u0=function(d,b){for(var a=0,c=!0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(a+=g,c=!1)}return c?NaN:a};h.prototype.iza=function(d,b){for(var a=Number.MAX_VALUE,c=!0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(g<a&&(a=g),c=!1)}return c?NaN:a};h.prototype.bza=function(d,b){for(var a=Number.NEGATIVE_INFINITY,c=!0,
e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(g>a&&(a=g),c=!1)}return c?NaN:a};h.prototype.xza=function(d,b){for(var a=1,c=!0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(a*=g,c=!1)}return c?NaN:a};h.prototype.Yba=function(d,b){for(var a=0,c=0,e=0;e<d.length;e++){var g=this.Ac[b][d[e]];isNaN(g)||(a+=g,c++)}return 0==c?NaN:a/c};h.prototype.fza=function(d,b){for(var a=[],c=0;c<d.length;c++){var e=this.Ac[b][d[c]];isNaN(e)||a.push(e)}if(0===a.length)return NaN;f.Ha.sort(a,f.Ha.mi);if(1===
a.length%2)return a[Math.floor(a.length/2)];d=a.length/2;return(a[d]+a[d-1])/2};h.prototype.lca=function(d,b){for(var a=this.Yba(d,b),c=0,e=0,g=0;g<d.length;g++){var l=this.Ac[b][d[g]];isNaN(l)||(c+=Math.pow(l-a,2),e++)}return{Paa:c,count:e}};h.prototype.Nza=function(d,b){d=this.lca(d,b);return 0==d.count?NaN:Math.sqrt(d.Paa/d.count)};h.prototype.Oza=function(d,b){d=this.lca(d,b);return 0==d.count?NaN:1==d.count?0:Math.sqrt(d.Paa/(d.count-1))};h.prototype.tza=function(d,b){null==this.SP[b]&&(this.SP[b]=
this.u0(this.cb,b));return Math.abs(100*this.u0(d,b)/this.SP[b])};h.prototype.xya=function(d,b){for(var a=0,c=0;c<d.length;c++){var e=this.Ac[b][d[c]];isNaN(e)||this.Ac[b]instanceof Uint8Array&&0==e||a++}return a};h.prototype.Iya=function(d,b,a){return k.bf.ij.uc("",!1).Fa(d,b,a)};h.prototype.uza=function(d,b,a){return k.bf.ij.uc("",!1).Fa(d,b,a)};h.prototype.cd=function(d,b){for(var a=0;a<d.length;a++){if(void 0===b)return;b=b[d[a]]}return b};h.prototype.YU=function(d,b){for(var a=0;a<d.length;a++)void 0===
b[d[a]]&&(b[d[a]]=[[[]],[],[],void 0,void 0,!1]),b=b[d[a]];return b};h.prototype.Ih=function(d,b){if(0===d.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?-1===b?-1:this.Et[b]:this.Eh(b));d=this.cd(d,this.vd);return void 0===d||void 0===d[0]||void 0===d[0][3]?!1:-1===a||void 0===d[0][3][a]?d[0][3][this.bg.length]:d[0][3][a]};h.prototype.Eh=function(d,b,a){"string"!==typeof d&&(b=d.$,d=d.uniqueName);if(f.model.B.C.oc&&!a||void 0===b||b===k.i.ca.NONE)for(a=0;a<this.bg.length;a++){if(this.bg[a]===
d)return a}else for(a=0;a<this.bg.length;a++)if(this.bg[a]===d&&(void 0===this.Ao[a]||this.Ao[a]===b))return a;return-1};h.prototype.Sj=function(d,b){if(0===d.length)return!0;var a=-1;void 0!==b&&(a="number"===typeof b?this.Et[b]:this.Eh(b));d=this.cd(d,this.Md);return void 0===d||void 0===d[0]||void 0===d[0][3]?!1:-1===a||void 0===d[0][3][a]?d[0][3][this.bg.length]:d[0][3][a]};h.prototype.collapse=function(d,b,a){0===this.vd.length&&(this.vd=[[this.cb,[],[],void 0,void 0]]);0===this.Md.length&&(this.Md=
[[this.cb,[],[],void 0,void 0]]);1===this.Et.length&&(a=void 0);b===k.i.ia.Ia&&this.Ita(d,a);b===k.i.ia.Sa&&this.Gta(d,a)};h.prototype.Ita=function(d,b){this.J8(this.cd(d,this.vd),b)};h.prototype.Gta=function(d,b){this.J8(this.cd(d,this.Md),b)};h.prototype.J8=function(d,b){void 0!==d&&(void 0===d[0][3]&&(d[0][3]=[]),void 0!==b?d[0][3][this.Eh(b)]=!1:d[0][3][this.bg.length]=!1)};h.prototype.expand=function(d,b,a){0!==this.cb.length&&(1===this.Et.length&&(a=void 0),0===this.vd.length&&(this.vd=[[this.cb,
[],[],void 0,void 0]],this.A_([],a)),0===this.Md.length&&(this.Md=[[this.cb,[],[],void 0,void 0]],this.w_([],a)),b===k.i.ia.Ia&&this.A_(d,a),b===k.i.ia.Sa&&this.w_(d,a))};h.prototype.A_=function(d,b){var a=this.cd(d,this.vd);void 0===a&&this.fB()&&(a=this.YU(d,this.vd));if(void 0!==a){var c=this.uh[d.length];d.length<this.uh.length&&this.yA(a,c,b)}};h.prototype.w_=function(d,b){var a=this.cd(d,this.Md);void 0===a&&this.kF()&&(a=this.YU(d,this.Md));if(void 0!==a){var c=this.Ti[d.length];d.length<this.Ti.length&&
this.yA(a,c,b)}};h.prototype.yA=function(d,b,a){if(void 0!==d){var c=d[0][0];if(0<c.length&&!isNaN(b))for(var e=0;e<c.length;e++){var g=this.ra[b][1]<this.pb.length?this.pb[this.ra[b][1]][c[e]]:0;0!==g&&void 0!==g&&(void 0===d[g]?(d[g]=[[[c[e]],[],[],void 0,void 0,!1]],d[0][1].push(g)):d[0][5]||d[g][0][0].push(c[e]))}void 0===d[0][3]&&(d[0][3]=[]);void 0===a?d[0][3][this.bg.length]=!0:d[0][3][this.Eh(a)]=!0;d[0][5]=!0}};h.prototype.To=function(d,b,a,c){1===this.Et.length&&(c=void 0);a===k.i.ia.Ia&&
this.wwa(d,c);a===k.i.ia.Sa&&this.vwa(d,c)};h.prototype.wwa=function(d,b){var a=this.cd(d,this.vd);d=d.slice(0,-1);this.HX(this.cd(d,this.vd),a,b)};h.prototype.vwa=function(d,b){var a=this.cd(d,this.Md);d=d.slice(0,-1);this.HX(this.cd(d,this.Md),a,b)};h.prototype.tf=function(d,b,a,c){0!==b.children.length&&(1===this.Et.length&&(c=void 0),0===this.vd.length&&(this.vd=[[this.cb,[],[],void 0,void 0]],this.A_([],c)),0===this.Md.length&&(this.Md=[[this.cb,[],[],void 0,void 0]],this.w_([],c)),a===k.i.ia.Ia&&
this.swa(d,b,c),a===k.i.ia.Sa&&this.qwa(d,b,c))};h.prototype.swa=function(d,b,a){var c=this.cd(d,this.vd);void 0===c&&this.fB()&&(c=this.YU(d,this.vd));if(void 0!==c){d=d.slice(0,-1);var e=this.uh[d.length];this.JP(this.cd(d,this.vd),c,e,this.ra[e][b.level.sb+1],a)}};h.prototype.JP=function(d,b,a,c,e){if(void 0!==b&&void 0!==b[0]){var g=b[0][0];if(0<g.length&&!isNaN(c)){void 0===d.indiciesMap&&(d.indiciesMap={});for(var l=0;l<g.length;l++){var m=this.pb[c][g[l]];if(0!==m&&void 0!==m)if(void 0===d[m]){d[m]=
[[[g[l]],[],[],void 0,void 0]];b[0][2].push(m);this.al[a][m]=c;var n={};d.indiciesMap[m]=(n[g[l]]=1,n)}else 1!==d.indiciesMap[m][g[l]]&&(d[m][0][0].push(g[l]),d.indiciesMap[m][g[l]]=1)}}void 0===b[0][4]&&(b[0][4]=[]);void 0===e?b[0][4][this.bg.length]=!0:b[0][4][this.Eh(e)]=!0}};h.prototype.qwa=function(d,b,a){var c=this.cd(d,this.Md);void 0===c&&this.kF()&&(c=this.YU(d,this.Md));d=d.slice(0,-1);var e=this.Ti[d.length];this.JP(this.cd(d,this.Md),c,e,this.ra[e][b.level.sb+1],a)};h.prototype.HX=function(d,
b,a){var c=b[0][2];if(void 0!==c&&0<c.length)for(var e=0;e<c.length;e++){var g=c[e];void 0!==d[g][0][4]&&this.HX(d,d[g],a);d[g]=void 0}b[0][2]=[];b[0][4][this.bg.length]=!1;void 0!==a&&(b[0][4][this.Eh(a)]=!1)};h.prototype.Hh=function(d,b,a){b=this.bg.length;void 0!==a&&(b="number"===typeof a?-1===a?-1:this.Et[a]:this.Eh(a));-1===b&&(b=this.bg.length);d=this.cd(d,this.vd);return void 0!==d&&void 0!==d[0]&&void 0!==d[0][4]&&(d[0][4][b]||d[0][4][this.bg.length])};h.prototype.Rj=function(d,b,a){b=this.bg.length;
void 0!==a&&(b="number"===typeof a?-1===a?-1:this.Et[a]:this.Eh(a));-1===b&&(b=this.bg.length);d=this.cd(d,this.Md);return void 0!==d&&void 0!==d[0]&&void 0!==d[0][4]&&(d[0][4][b]||d[0][4][this.bg.length])};h.prototype.LL=function(d,b,a){var c=this.le.indexOf(b.hierarchy.uniqueName),e=b.Wb?d.slice(0,-1):d.slice(0),g=a===k.i.ia.Ia?this.cd(e,this.vd):this.cd(e,this.Md);1<d.length?(e=d.slice(0,-1),d=(a===k.i.ia.Ia?this.cd(e,this.vd):this.cd(e,this.Md))[0][0]):d=this.cb;c=this.ra[c][b.level.sb+1];a={};
for(e=0;e<g[0][0].length;e++)a[g[0][0][e]]=1;e=[];for(var l=0;l<b.children.length;l++)for(var m=this.Jn(d,[b.children[l]],[c]),n=0;n<m.length;n++)1!==a[m[n]]&&(e.push(m[n]),a[m[n]]=1);for(b=0;b<e.length;b++)g[0][0].push(e[b])};h.prototype.Jn=function(d,b,a){for(var c=0;c<b.length;c++){var e=b[c],g=a[c];if(f.model.B.C.A0){var l=this.slice.rc().getItem(this.le[g]),m=l.va(e);f.v(l.kC)||f.v(this.ra)||f.v(a[c])||f.v(this.ra[a[c]])||(g=this.ra[a[c]][m.level.sb])}g=f.v(this.al[g])||f.v(this.al[g][e])?g:
this.al[g][e];l=[];for(m=0;m<d.length;m++)f.v(this.pb[g])||this.pb[g][d[m]]!==e||l.push(d[m]);d=l}return d};h.prototype.Jca=function(d,b,a){return a.$===k.i.ca.nm?this.Hza(d,b,a):a.$===k.i.ca.ln?this.Iza(d,b,a):NaN};h.prototype.Hza=function(d,b,a){var c=a.Ka?this.slice.ad().findIndex(function(r){return r.uniqueName===a.uniqueName})+this.bg.length:this.Eh(a);null==this.values[c]&&(this.values[c]=[]);var e=this.rr(d,b);if(null==this.values[c][e]){a.$=a.Ll;if(d&&0!=d.length){var g=this.slice.vb.ea(d.length-
1),l=g.va(d[d.length-1]);if(null==l||null==l.parent)return null;g=null==g.nc||l.level.sb>g.nc.sb?g.uj(l.parent,!0):g.du(g.ig);d=d.slice(0,-1);l=this.cd(d,this.vd);if(l[0]&&l[0][1])for(var m=0,n=0;n<g.length;n++){var p=g[n];if(null!=l[p]){d.push(p);p=this.rr(d,b);if(null==this.values[c][p]){var t=this.Fa(d,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];d.pop()}}}else this.values[c][e]=this.Fa(d,b,a);a.$=k.i.ca.nm}return this.values[c][e]};h.prototype.Iza=function(d,b,a){var c=a.Ka?
this.slice.ad().findIndex(function(r){return r.uniqueName===a.uniqueName})+this.bg.length:this.Eh(a);null==this.values[c]&&(this.values[c]=[]);var e=this.rr(d,b);if(null==this.values[c][e]){a.$=a.Ll;if(0===b.length)this.values[c][e]=this.Fa(d,b,a);else{var g=this.slice.Cb.ea(b.length-1),l=g.va(b[b.length-1]);if(null===l||null===l.parent)return null;g=null===g.nc||l.level.sb>g.nc.sb?g.uj(l.parent,!0):g.du(g.ig);b=b.slice(0,-1);l=this.cd(b,this.Md);if(l[0]&&l[0][1])for(var m=0,n=0;n<g.length;n++){var p=
g[n];if(void 0!==l[p]){b.push(p);p=this.rr(d,b);if(null==this.values[c][p]){var t=this.Fa(d,b,a);isNaN(t)||(m+=t);this.values[c][p]=m}else m=this.values[c][p];b.pop()}}}a.$=k.i.ca.ln}return this.values[c][e]};h.prototype.pca=function(d,b,a,c,e,g){if(!f.v(d)&&0!=d.length)if(this.uh.length==b.length)this.b0(d,a,c,e,g);else{for(var l=[],m=[],n=this.uh[b.length],p=0;p<d.length;p++){var t=this.pb[n][d[p]];m[t]||0==t||(l.push(t),m[t]=!0)}for(p=0;p<l.length;p++)m=b.slice(0),m.push(l[p]),n=this.Jn(d,m,this.uh),
this.pca(n,m,a,c,e,g)}};h.prototype.oca=function(d,b,a,c){var e=[];this.pca(d,b,a,c,e,[]);return e.length};h.prototype.pS=function(d,b){if(f.v(d)||0==d.length)return 0;var a=this.wa.I.Vj(b.uniqueName);a=this.le.indexOf(2<a.ra.length?a.ra.qh(a.ra.length-1):a.uniqueName);b=this.Yg.indexOf(b.uniqueName);for(var c=[],e=[],g,l=0;l<d.length;l++)g=this.pb[a][d[l]],e[g]||(e[g]=!0,this.Ac[b]&&isNaN(this.Ac[b][d[l]])||this.Ac[b]instanceof Uint8Array&&0==this.Ac[b][d[l]]||c.push(g));return c.length};h.prototype.xv=
function(d,b,a,c){var e=this.cd(d,this.vd),g=this.cd(b,this.Md),l=[];e&&0<e.length&&g&&0<g.length&&(l=d.length*g[0][0].length<b.length*e[0][0].length?this.Jn(g[0][0],d,this.uh):this.Jn(e[0][0],b,this.Ti));return this.qq(l,a,!1,c)};h.prototype.Psa=function(d,b,a){return this.qq([this.cb[d[0]]],b,!1,a)};h.prototype.Wya=function(d,b,a,c,e){a=void 0===a?0:a;c=void 0===c?null:c;e=void 0===e?null:e;var g=void 0===g?!0:g;for(var l=0,m=!0,n=0;n<d.length;n++)a=this.qq([d[n]],b,!1,a,c,e,g),isNaN(a)||(l+=a,
m=!1);return m?NaN:l};h.prototype.qq=function(d,b,a,c,e,g,l){a=void 0===a?!1:a;c=void 0===c?0:c;e=void 0===e?null:e;g=void 0===g?null:g;l=void 0===l?!0:l;if(a)return this.Wya(d,b,c,e,g);if(b[2]){var m=[],n;for(n in b[1]){var p=b[1][n],t=p;Array.isArray(p)&&(t=this.qq(d,p,a,c,e,g,l),t=isNaN(t)&&l&&(b[0]===k.i.jc.AN||b[0]===k.i.jc.aP||b[0]===k.i.jc.JO||b[0]===k.i.jc.TW||b[0]===k.i.jc.dI)?this.Hna:t);m.push(t)}if(b[0]===k.i.jc.nn||b[0]===k.i.jc.mP||b[0]===k.i.jc.lP)return c;if(b[0]===k.i.jc.Qia)return this.Pxa(m);
if(b[0]===k.i.jc.Fna)return this.Rxa(m);if(b[0]===k.i.jc.AN)return this.Dxa(m);if(b[0]===k.i.jc.aP)return this.Vxa(m);if(b[0]===k.i.jc.JO)return this.Oxa(m);if(b[0]===k.i.jc.TW)return this.Txa(m);if(b[0]===k.i.jc.dI)return this.Fxa(m);if(b[0]===k.i.jc.LESS)return this.Kxa(m);if(b[0]===k.i.jc.GREATER)return this.Hxa(m);if(b[0]===k.i.jc.EQUAL||b[0]==k.i.jc.wka)return this.Gxa(m);if(b[0]===k.i.jc.If)return this.Qxa(m);if(b[0]===k.i.jc.d7)return this.Lxa(m);if(b[0]===k.i.jc.R6)return this.Ixa(m);if(b[0]===
k.i.jc.X4)return this.Exa(m);if(b[0]===k.i.jc.N7)return this.Sxa(m);if(b[0]===k.i.jc.oO)return this.Jxa(m);if(b[0]===k.i.jc.$W)return this.Uxa(m);if(b[0]===k.i.jc.KV)return this.Cxa(m);if(b[0]===k.i.jc.MIN)return this.Nxa(m);if(b[0]===k.i.jc.MAX)return this.Mxa(m)}else{a=this.e0(b[1][0],b[0]);if(void 0!==this.Fx[a])return this.qq(d,this.Fx[a],this.pC[a],0,e,g,l);l=b[0];k.i.ca.Vx(l)&&(l=k.i.ca.ky(l));switch(l){case k.i.ca.ro:if(null!=g)return c=this.wa.I.$c(b[1][0]),d=this.Fa([],g,c),c=this.Fa(e,g,
c),100*c/d;break;case k.i.ca.Tp:if(null!=e)return c=this.wa.I.$c(b[1][0]),d=this.Fa(e,[],c),c=this.Fa(e,g,c),100*c/d;break;case k.i.ca.li:if(null!=e&&null!=g)return c=this.wa.I.$c(b[1][0]),d=this.Fa([],[],c),b=this.Fa(e,[],c),l=this.Fa([],g,c),c=this.Fa(e,g,c),Math.abs(d*c/(l*b));break;case k.i.ca.nm:case k.i.ca.ln:return c=this.wa.I.$c(b[1][0]),d=c.$,c.$=l,e=this.Jca(e,g,c),c.$=d,e;case k.i.ca.hj:c=this.wa.I.$c(b[1][0]);if(c.type==k.i.Ja.sc)return this.pS(d,c);break;case k.i.ca.dn:case k.i.ca.im:case k.i.ca.jn:case k.i.ca.km:return c=
this.wa.I.$c(b[1][0]),d=c.$,c.$=l,e=this.Iya(e,g,c),c.$=d,e;case k.i.ca.Rp:case k.i.ca.Sp:return c=this.wa.I.$c(b[1][0]),d=c.$,c.$=l,e=this.uza(e,g,c),c.$=d,e}return this.CA(d,a,l)}};h.prototype.e0=function(d){var b=this.Yg.indexOf(d);-1===b&&-1!=d.indexOf("[Measures]")&&(d=d.slice(12,-1),b=this.Yg.indexOf(d));return b};h.prototype.filter=function(){};h.prototype.select=function(d){d=void 0===d?!0:d;this.gH();this.filter();var b;this.ofa=[];this.uh=[];this.Ti=[];this.sizes=[];this.al=[];this.Et=[];
this.dH=this.slice.axes.getItem(k.i.ia.As);this.ic=this.slice.axes.getItem(k.i.ia.Ia);this.Sb=this.slice.axes.getItem(k.i.ia.Sa);for(b=0;b<this.ic.Ma.length;b++){var a=this.ic.Ma.ea(b);if(!a.Qe){var c=this.le.indexOf(a.uniqueName);this.uh.push(c);this.sizes.push(a.Un);this.al[c]=[]}}this.Sm=this.uh.length;for(b=0;b<this.Sb.Ma.length;b++)a=this.Sb.Ma.ea(b),a.Qe||(c=this.le.indexOf(a.uniqueName),this.Ti.push(c),this.sizes.push(a.Un),this.al[c]=[]);this.Em=this.Ti.length;if(d)for(b=0;b<this.dH.Ma.length;b++)a=
this.dH.Ma.ea(b),c=this.le.indexOf(a.uniqueName),this.ofa.push(c);else this.cb=this.Wg;d=this.slice.ad();for(b=0;b<d.length;b++)c=this.Eh(d[b]),this.Et.push(c)};h.prototype.FE=function(d,b,a,c){try{if(0===b.children.length||1===b.children.length&&(b.hierarchy.va(b.children[0]).caption===f.model.A.j.Mk||b.hierarchy.va(b.children[0]).caption===f.model.A.j.cn))return;this.LL(d,b,c);this.tf(d,b,c,void 0)}catch(p){}for(var e=this.cd(d,this.vd),g=0;g<b.children.length;g++){var l=b.hierarchy.va(b.children[g]);
try{if(l.Bi){d.length<this.uh.length&&this.yA(e,this.uh[a],void 0);var m=d.slice(0);m[m.length-1]=l.ordinal;this.KX(m,a+1,!0)}else{var n=d.slice(0,-1);n.push(l.ordinal);this.FE(n,l,a,c)}}catch(p){}}};h.prototype.expandAll=function(d){if(0===this.vd.length||0<this.vd.length&&this.vd[0][0].length!==this.cb.length)this.vd=[[this.cb,[],[],void 0,void 0]];if(0===this.Md.length||0<this.Md.length&&this.Md[0][0].length!==this.cb.length)this.Md=[[this.cb,[],[],void 0,void 0]];this.V8([],0,d);this.KX([],0,
d)};h.prototype.KX=function(d,b,a){if(void 0!==this.uh[b]){var c=this.uh[b],e=this.cd(d,this.vd),g;d.length<this.uh.length&&this.yA(e,c,void 0);a&&(g=this.ic.Ma.getItem(this.le[c]));if(a&&g&&g.qg){var l=g.yd.children;for(e=0;e<l.length;e++)a=g.va(l[e]),c=d.slice(0),c.push(a.ordinal),this.FE(c,a,b,k.i.ia.Ia)}else for(g=e[0][1],e=0;e<g.length;e++)c=d.slice(0),c.push(g[e]),this.KX(c,b+1,a)}};h.prototype.V8=function(d,b,a){if(void 0!==this.Ti[b]){var c=this.Ti[b],e=this.cd(d,this.Md),g;d.length<this.Ti.length&&
this.yA(e,c,void 0);a&&(g=this.Sb.Ma.getItem(this.le[c]));if(a&&g.qg)for(c=0;c<g.yd.children.length;c++)a=g.va(g.yd.children[c]),e=d.slice(0),e.push(a.ordinal),this.FE(e,a,b,k.i.ia.Sa);else for(g=e[0][1],c=0;c<g.length;c++)e=d.slice(0),e.push(g[c]),this.V8(e,b+1,a)}};h.prototype.Gn=function(d,b,a,c){0===this.vd.length&&(this.expand([],k.i.ia.Ia,void 0),this.expand([],k.i.ia.Sa,void 0));try{if(0!=b.children.length&&(1!=b.children.length||b.hierarchy.va(b.children[0]).caption!=f.model.A.j.Mk&&b.hierarchy.va(b.children[0]).caption!=
f.model.A.j.cn)){this.LL(d,b,a);b.Wb||this.tf(d,b,a,void 0);for(var e=b.hierarchy.ra.getItem(c),g=0;g<b.children.length;g++){var l=b.hierarchy.va(b.children[g]);if(!l.Bi&&l.level.sb<e.sb){var m=d.slice(0,-1);m.push(l.ordinal);var n=this.cd(m,a===k.i.ia.Sa?this.Md:this.vd);void 0!==n&&void 0!==n[0]&&this.Gn(m,l,a,c)}}}}catch(p){}};h.prototype.Fa=function(){return 0};h.prototype.CA=function(d,b){return this.values&&this.values[d[0]]?this.values[d[0]][b]:NaN};h.prototype.b0=function(){};h.prototype.uG=
function(){return this.cb.length};h.prototype.Jl=function(d,b){if(-1!==this.le.indexOf(d))return this.le.indexOf(d);if(void 0===b)this.ra[this.le.length]=[-1,this.le.length];else{var a=this.le.indexOf(b);if(-1===a)return this.Jl(b),this.Jl(d,b);this.ra[a]?this.ra[a].push(this.le.length):this.ra[this.le.length]=[-1,this.le.length]}this.le.push(d);return this.le.length-1};h.prototype.RJ=function(d){-1===this.Yg.indexOf(d.uniqueName)&&this.Yg.push(d.uniqueName)};h.prototype.xx=function(d,b){var a=!1;
if("string"===typeof d)var c=d;else if(c=d.uniqueName,b=d.$,a=d.Ka){var e=d.Sd;var g=d.gl}d=this.bg.indexOf(c);if(-1!==d){if(void 0!==b&&b!==k.i.ca.NONE){if(this.Ao[d]===b)return;d=this.bg.length;this.Ao[d]=b;this.bg[d]=c}}else d=this.bg.length,void 0!==b&&b!==k.i.ca.NONE&&(this.Ao[d]=b),this.bg.push(c);a&&(this.Fx[d]=e,this.pC[d]=g)};h.prototype.fB=function(){return!0===f.model.B.C.ru||"rows"===f.model.B.C.ru};h.prototype.kF=function(){return!0===f.model.B.C.ru||"columns"===f.model.B.C.ru};q.Object.defineProperties(h.prototype,
{slice:{configurable:!0,enumerable:!0,get:function(){return null!=this.Lb?this.Lb:this.wa.sa},set:function(d){this.Lb=d}},result:{configurable:!0,enumerable:!0,get:function(){return[this.vd,this.Md]},set:function(){}},Iw:{configurable:!0,enumerable:!0,get:function(){return this.pb&&this.pb[0]?this.pb[0].length:this.pb[1]?this.pb[1].length:0}}});k.ND=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.Rza=function(d){var b=null;switch(d.Ba){case k.i.oa.Nc:b=d.binary?new k.external.yb.zo.h5(d):new k.external.yb.sD.Goa(d);break;case k.i.oa.Zd:b=d.binary?new k.external.yb.zo.h5(d):new k.external.yb.gp.Cna(d);break;case k.i.oa.xh:b=new k.local.csv.UH;break;case k.i.oa.Pp:b=new k.local.csv.Jna;break;case k.i.oa.JSON:b=!d.CH||d.RL||d.browseForFile?new k.local.json.Xla:new k.local.json.Yla;break;case k.i.oa.Gf:b=new k.external.De.Fka(d);break;case k.i.oa.API:b=
new k.external.kc.Fia(d)}return b};k.Xoa=h})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){k.oE=function(h){this.type=void 0===h?"":h;this.ft=k.i.ia.Ia;this.We=[]}})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.YB=function(d,b){switch(b.Ba){case k.i.oa.Gf:d=new k.external.De.Dka(d,b);break;case k.i.oa.API:d=new k.external.kc.Eia(d,b);break;case k.i.oa.Zd:d=new k.external.yb.gp.GW(d,b);break;default:d=new k.external.yb.sD.GW(d,b)}return d};k.gA=h})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){function h(){}h.gE="members";h.d5="ascendants";h.bka="descendants";h.d8="siblings";h.cX="search";k.qo=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.$_=function(d){var b=null;switch(d.Ba){case k.i.oa.Gf:b=new k.external.De.yka;break;case k.i.oa.API:b=new k.external.kc.Aia;break;case k.i.oa.Nc:b=d.binary?new k.external.yb.zo.g5:new k.external.yb.eh.x8;break;case k.i.oa.Zd:b=d.binary?new k.external.yb.zo.g5:new k.external.yb.eh.x8}return b};k.cW=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){this.values=[];this.values.push("");if(null!=h.instance)throw Error("Singleton");}h.U=function(){null==h.instance&&(h.instance=new h);return h.instance};h.dispose=function(){h.instance=null};h.prototype.Nh=function(d){var b=this.values.indexOf(d);-1==b&&(b=this.values.push(d)-1);return b};h.prototype.Fa=function(d){return d>=this.values.length?"out of bounce: "+d+" of "+this.values.length:this.values[d]};k.kX=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(a){var c=y.da.call(this,b.hk)||this;c.rp=a;return c}function d(a){var c=y.da.call(this,b.QH)||this;c.rp=a;return c}function b(){}b.iX="STRUCTURE_CONNECTED";b.Uu="STRUCTURE_LOADED";b.hX="STRUCTURE_CANCELLED";b.jX="STRUCTURE_LOADING_FAILED";b.QH="BEFORE_QUERY";b.hk="QUERY_COMPLETE";b.Ds="QUERY_ERROR";k.cg=b;u(d,y.da);k.PD=d;u(h,y.da);k.WW=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){this.ZT=[NaN];this.tH=[""];if(null!=h.instance)throw Error("Singleton");}h.U=function(){null==h.instance&&(h.instance=new h);return h.instance};h.dispose=function(){h.instance=null};h.prototype.hz=function(d,b){var a=this.tH.indexOf(d);-1==a&&(this.tH.push(d),a=this.ZT.push(b)-1);return a};h.prototype.Pza=function(d){return isNaN(d)||d>=this.tH.length||void 0==this.tH[d]?"":this.tH[d]};h.prototype.nza=function(d){return isNaN(d)||d>=this.ZT.length?NaN:this.ZT[d]};
h.prototype.clear=function(){this.ZT.length=1;this.tH.length=1};k.HI=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){}h.zg=function(d,b){if(d===b)return d;if(h.yD&&"["===d.slice(0,1)&&"]"===d.slice(-1)){b=d.split("].");1<b.length&&b.shift();d="";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)));d=""==d?c:d+"."+c}}return d};h.Nr=function(d){if("["==d.slice(0,1)&&"]"==d.slice(-1)&&h.yD){var b=d.split("].");if(2>b.length)return h.BH&&!f.model.B.C.Jx?d.toLocaleLowerCase():d;1<b.length&&
b.shift();d="";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)));d=""==d?c:d+"."+c}d=d+"."+b[b.length-1]}return h.BH&&!f.model.B.C.Jx?d.toLocaleLowerCase():d};h.Or=function(d){if("[Measures]"==d.slice(0,10))return h.Nr(d,void 0);h.yD&&(d=d.split(".["),2<d.length?(d.shift(),d="["+d.join(".[")):(d=d.pop(),"]"==d.slice(-1)&&(d=d.slice(0,d.length-1))));return h.BH&&!f.model.B.C.Jx?d.toLocaleLowerCase():d};
h.type=function(d){return k.i.input.pa.valid(d)?d:"hierarchical date"===d?k.i.input.pa.Np:"measure"===d?k.i.input.pa.fb:k.i.input.pa.Sc};h.yD=!1;h.BH=!1;k.me=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.Gb=[];b.gg=[];b.Uc=[];b.Lf=[];b.Bc=[];b.wc=[];b.fi=[];b.yc=[];b.ay=[];b.RU=[];b.ZQ=[];b.SA="";b.se=!1;b.EM=[];b.pv=[];b.pK=[];b.Js=[];b.Wy=function(a){return b.NC(a)};b.hK=function(a){return b.Z1(a)};b.gN=function(){return b.Aq()};b.xm=new f.nb;b.rQ=[];b.zP=[];b.Dl=new f.nb;b.kQ=new f.nb;b.ib=[];b.lj=0;b.EE=!1;b.VE=0;b.lx=0;b.PA=0;b.rp=k.i.Kd.to;b.uQ=!1;b.NX=0;d.counter++;b.ga=k.Na.U();return b}u(d,y.Fc);d.U=function(){null==
d.instance&&(d.instance=new d,d.instance.SA="grid"+d.counter);return d.instance};d.prototype.BQ=function(){this.ga.N(k.cg.hk,this.Wy,1);this.ga.N(k.cg.QH,this.hK);this.ga.N(k.cg.Uu,this.gN,1)};d.prototype.Yy=function(){this.ga.mb(k.cg.hk,this.Wy);this.ga.mb(k.cg.QH,this.hK);this.ga.mb(k.cg.Uu,this.gN)};d.prototype.lL=function(){return this.Kb&&!this.slice.expandAll?this.Kb.zd:[]};d.prototype.Tga=function(b){this.Kb&&!this.slice.expandAll&&(this.Kb.zd=b)};d.prototype.kL=function(){return this.Jb&&
!this.slice.expandAll?this.Jb.zd:[]};d.prototype.Sga=function(b){this.Jb&&!this.slice.expandAll&&(this.Jb.zd=b)};d.prototype.hG=function(){return this.Kb&&this.slice.expandAll?this.Kb.zd:[]};d.prototype.Q3=function(b){this.Kb&&this.slice.expandAll&&(this.Kb.zd=b)};d.prototype.TB=function(){return this.Jb&&this.slice.expandAll?this.Jb.zd:[]};d.prototype.Kga=function(b){this.Jb&&this.slice.expandAll&&(this.Jb.zd=b)};d.prototype.oG=function(){return this.Kb&&!this.slice.drillAll?this.Kb.uf:[]};d.prototype.U3=
function(b){this.Kb&&!this.slice.drillAll&&(this.Kb.uf=b)};d.prototype.nG=function(){return this.Jb&&!this.slice.drillAll?this.Jb.uf:[]};d.prototype.T3=function(b){this.Jb&&!this.slice.drillAll&&(this.Jb.uf=b)};d.prototype.hL=function(){return this.Kb&&this.slice.drillAll?this.Kb.uf:[]};d.prototype.Qga=function(b){this.Kb&&this.slice.drillAll&&(this.Kb.uf=b)};d.prototype.gL=function(){return this.Jb&&this.slice.drillAll?this.Jb.uf:[]};d.prototype.Pga=function(b){this.Jb&&this.slice.drillAll&&(this.Jb.uf=
b)};d.prototype.jS=function(){return null};d.prototype.reset=function(b){b=void 0===b?!0:b;this.se=this.mj=!1;this.ib=[];this.xm=new f.nb;this.Dl=new f.nb;this.kQ=new f.nb;this.rQ=[];this.zP=[];this.gg=[];this.Lf=[];this.Gb=[];this.Uc=[];this.Bc=[];this.wc=[];this.yc=[];this.lx=this.VE=0;this.fi=[];this.ay=[];this.RU=[];this.ZQ=[];b&&(this.Jb&&(this.Jb.zd=[]),this.Kb&&(this.Kb.zd=[]),this.Jb&&(this.Jb.uf=[]),this.Kb&&(this.Kb.uf=[]))};d.prototype.Z1=function(b){b.rp!=k.i.Kd.eI&&(this.rp=b.rp,this.mj=
!1,b.rp==k.i.Kd.to&&this.reset(),b.rp!=k.i.Kd.aW&&b.rp!=k.i.Kd.Fu||this.reset(!1))};d.prototype.NC=function(b){b.rp!=k.i.Kd.eI&&this.load()};d.prototype.Aq=function(){this.mj=!1;this.se||this.reset()};d.prototype.load=function(){if(null==this.qa&&(this.qa=this.ga.qa,null==this.qa))return;if(this.slice){this.Jb=this.slice.Cd(k.i.ia.Sa);this.Kb=this.slice.Cd(k.i.ia.Ia);if(0==this.Uc.length&&0==this.Gb.length||this.rp==k.i.Kd.bO)this.slice.expandAll?this.qa.expandAll(this.slice.drillAll):(this.qa.expand([],
k.i.ia.Ia,void 0),this.qa.expand([],k.i.ia.Sa,void 0)),(0<this.oG().length||0<this.hL().length)&&this.Q8(),(0<this.nG().length||0<this.gL().length)&&this.P8(),(0<this.lL().length||0<this.hG().length||0<this.kL().length||0<this.TB().length)&&this.W8(),(0<this.oG().length||0<this.hL().length)&&this.Q8(),(0<this.nG().length||0<this.gL().length)&&this.P8(),(0<this.lL().length||0<this.hG().length||0<this.kL().length||0<this.TB().length)&&this.W8();this.BU();this.mj=!0}else this.Kb=this.Jb=null};d.prototype.W8=
function(){var b=this.slice.ad();if(this.rp==k.i.Kd.bO)if(this.slice.expandAll){var a=this.hG();if(0<a.length)for(var c=0;c<a.length;c++)try{var e=b[a[c][0]];var g=a[c].slice(1);this.qa.collapse(g,k.i.ia.Ia,e)}catch(l){}a=this.TB();if(0<this.TB().length)for(c=0;c<this.TB().length;c++)try{e=b[a[c][0]],g=a[c].slice(1),this.qa.collapse(g,k.i.ia.Sa,e)}catch(l){}}else{a=this.lL();if(0<a.length)for(c=0;c<a.length;c++)try{e=b[a[c][0]],g=a[c].slice(1),this.qa.expand(g,k.i.ia.Ia,e)}catch(l){}a=this.kL();if(0<
a.length)for(c=0;c<a.length;c++)try{e=b[a[c][0]],g=a[c].slice(1),this.qa.expand(g,k.i.ia.Sa,e)}catch(l){}}};d.prototype.Q8=function(){var b=this.ic.Ma.slice();b.removeItem("[Measures]");var a=this.slice.ad();if(this.slice.drillAll)for(var c=this.hL(),e=0;e<c.length;e++)try{var g=a[c[e][0]];var l=c[e].slice(2);var m=b.ea(l.length-1);var n=m.Db(c[e][1]);this.qa.Hh(l,n,g)&&this.qa.To(l,n,k.i.ia.Ia,g)}catch(r){}else for(c=this.oG(),e=0;e<c.length;e++)try{if("string"==typeof c[e][0]){var p=c[e][0];g=a[c[e][1]];
l=c[e].slice(3);m=b.ea(l.length-1);n=m.Db(c[e][2])}else g=a[c[e][0]],l=c[e].slice(2),m=b.ea(l.length-1),n=m.Db(c[e][1]);if(void 0!==p)if(m.Gt(p).sb<n.level.sb){var t=this.Fsa(n,p);l[l.length-1]=t.ordinal;m.q_(t);this.qa.To(l,t,k.i.ia.Ia,g)}else this.qa.Hh(l,n,g)||(this.qa.LL(l,n,k.i.ia.Ia),this.qa.tf(l,n,k.i.ia.Ia,g));else n.hierarchy.nc&&n.hierarchy.yd&&this.qa.Gn(l.slice(0,-1),n.hierarchy.yd,k.i.ia.Ia,n.hierarchy.ig),this.qa.Hh(l,n,g)||(this.qa.LL(l,n,k.i.ia.Ia),this.qa.tf(l,n,k.i.ia.Ia,g))}catch(r){}};
d.prototype.P8=function(){var b=this.Sb.Ma.slice();b.removeItem("[Measures]");var a=this.slice.ad();if(this.slice.drillAll)for(var c=this.gL(),e=0;e<c.length;e++)try{var g=a[c[e][0]];var l=c[e].slice(2);var m=b.ea(l.length-1);var n=m.Db(c[e][1]);this.qa.Rj(l,n,g)&&this.qa.To(l,n,k.i.ia.Sa,g)}catch(p){}else for(c=this.nG(),e=0;e<c.length;e++)try{g=a[c[e][0]],l=c[e].slice(2),m=b.ea(l.length-1),n=m.Db(c[e][1]),n.hierarchy.nc&&n.hierarchy.yd&&this.qa.Gn(l.slice(0,-1),n.hierarchy.yd,k.i.ia.Sa,n.hierarchy.ig),
this.qa.Rj(l,n,g)||(this.qa.LL(l,n,k.i.ia.Sa),this.qa.tf(l,n,k.i.ia.Sa,g))}catch(p){}};d.prototype.OAa=function(b){if(!b.Ka)return!1;b=x.ws.pL(b.Sd,this.ga.I.measures);for(var a=new Map,c=0;c<b.length;c++)a.set(b[c].$,!0);return a.has(k.i.ca.im)||a.has(k.i.ca.km)};d.prototype.BU=function(){this.uQ=!1;this.slice?(this.ib=this.slice.ad(),this.lj=this.Kb.Ra?this.Kb.He:this.Jb.He,this.xm=this.slice.rows,this.Dl=this.slice.columns,this.kQ=this.slice.pages):(this.ib=[],this.lj=0,this.xm=new f.nb,this.Dl=
new f.nb,this.kQ=new f.nb);this.rQ=[];this.zP=[];this.se?(this.QJa(),this.pv=this.hq(this.gg),this.EM=this.hq(this.Gb),this.Js=this.hq(this.Lf),this.pK=this.hq(this.Uc)):(this.gg=[],this.Gb=[],this.Lf=[],this.Uc=[],this.Bc=[],this.wc=[],this.fi=[],this.yc=[]);this.ay=[];this.lx=this.VE=0;this.RU=[];this.ZQ=[];if(!f.v(this.slice)&&!this.slice.ob){this.PA=-1;f.v(this.Jb.Ff)||this.Jb.Ff.$!==k.i.ca.im&&this.Jb.Ff.$!==k.i.ca.km&&!this.OAa(this.Sb.Ff)?(this.Nfa(),this.Jfa()):(this.Jfa(),this.Nfa());for(var b=
0;b<this.wc.length;b++)this.wc[b]>this.VE&&(this.VE=this.wc[b]);this.VE++;for(b=0;b<this.yc.length;b++)this.yc[b]>this.lx&&(this.lx=this.yc[b]);0<this.Uc.length&&this.lx++;!this.ob&&0<this.slice.Cb.length&&this.Jb.Ra&&this.Tn&&this.lx++;-1==this.PA?this.PA=0==this.He?0:this.lx:this.PA++;this.se&&(this.iHa(),this.hHa(),this.pv=[],this.EM=[],this.Js=[],this.pK=[]);this.se||this.pack();this.uQ&&f.Va(f.model.A.j.p7,f.model.A.j.q7,f.rb.Ik)}};d.prototype.hHa=function(){if(this.Jb.Ra)for(var b=this.Lf[0].length-
1;0<=b;b--){var a=this.nj(b,!0);if(null!==a&&0!=a.length){var c=this.Fa([],a,this.ib[0]);isNaN(c)&&(a=this.VK(this.Uc,a),0<=a&&this.Zy(this.Uc,a),this.Zy(this.Lf,b),this.yc=f.Ha.Iq(this.yc,b),this.Bc=f.Ha.Iq(this.Bc,b))}}else for(b=this.Uc[0].length-1;0<=b;b--)a=this.nj(b),null!==a&&0!=a.length&&(a=this.Fa([],a,this.ib[0]),isNaN(a)&&(this.Zy(this.Uc,b),this.yc=f.Ha.Iq(this.yc,b)))};d.prototype.iHa=function(){if(this.Jb.Ra)for(var b=this.Gb[0].length-1;0<=b;b--){var a=this.Lm(b);null!==a&&0!=a.length&&
(a=this.Fa(a,[],this.ib[0]),isNaN(a)&&(this.Zy(this.Gb,b),this.wc=f.Ha.Iq(this.wc,b),this.fi.splice(b,1)))}else for(b=this.gg[0].length-1;0<=b;b--)if(a=this.Lm(b,!0),null!==a&&0!=a.length){var c=this.Fa(a,[],this.ib[0]);isNaN(c)&&(a=this.VK(this.Gb,a),0<=a&&this.Zy(this.Gb,a),this.Zy(this.gg,b),this.wc=f.Ha.Iq(this.wc,b),this.Bc=f.Ha.Iq(this.Bc,b),this.fi.splice(b,1))}};d.prototype.Zy=function(b,a){for(var c=0;c<b.length;c++)b[c]=f.Ha.Iq(b[c],a)};d.prototype.Nfa=function(){var b=this.qa.result[0];
if(!this.Kb.Ra||1<this.xm.length||this.hl)this.E_(b,[],0),this.se&&this.oHa(this.Gb);if(this.Z3||this.Kb.Ra&&1==this.xm.length){var a=this.vb.ea(0);if(!a||a.Fh)if(0==this.Gb.length&&(this.Gb[0]=[]),!this.se){for(a=0;a<this.Gb.length;a++)this.Gb[a].push(0);this.wc.push(0)}}if(!this.hl)if(this.Kb.Ra&&this.Tn){this.se||(this.wc=[],this.fi=[]);if(1<this.xm.length)for(0!=this.He&&this.UK(b,[],-1,0),a=0;a<this.ib.length;a++){if(this.Z3)if(this.se){var c=this.Yi(this.gg,[],this.pv);0<=c&&(this.wc=f.Ha.ge(this.wc,
0,c),this.Bc=f.Ha.ge(this.Bc,a,c))}else this.Si(this.gg,[],a),this.wc.push(0);else 0!=this.lj||"off"!=f.model.B.C.Ef&&"rows"!=f.model.B.C.Ef||(this.se?(c=this.Yi(this.gg,[],this.pv),0<=c&&(this.wc=f.Ha.ge(this.wc,0,c),this.Bc=f.Ha.ge(this.Bc,a,c))):(this.Si(this.gg,[],a),this.wc.push(0)));0==this.He&&this.UK(b,[],a,1)}if(0==this.He&&(this.Z3||this.Kb.Ra&&1==this.xm.length))for(b=0;b<this.ib.length;b++)this.se?(a=this.Yi(this.gg,[],this.pv),0<=a&&(this.wc=f.Ha.ge(this.wc,0,a),this.Bc=f.Ha.ge(this.Bc,
b,a))):(this.Si(this.gg,[],b),this.wc.push(0))}else this.gg=this.Gb};d.prototype.Jfa=function(){var b=this.qa.result[1];(!this.Jb.Ra||1<this.Dl.length)&&this.xba(b,[],0);if(this.g4||this.Jb.Ra&&1==this.Dl.length){var a=this.Cb.ea(0);if(!a||a.Fh)if(0==this.Uc.length&&(this.Uc[0]=[]),!this.se){for(a=0;a<this.Uc.length;a++)this.Uc[a].push(0);this.yc.push(0)}}if(this.Jb.Ra&&this.Tn){this.se||(this.yc=[]);if(1<this.Dl.length)for(this.ay=[],0!=this.lj&&this.SK(b,[],-1,0),a=0;a<this.ib.length;a++){if(this.g4)if(this.se){var c=
this.Yi(this.Lf,[],this.Js);0<=c&&(this.yc=f.Ha.ge(this.yc,0,c),this.Bc=f.Ha.ge(this.Bc,a,c))}else this.Si(this.Lf,[],a),this.yc.push(0);else 0!=this.lj||"off"!=f.model.B.C.Ef&&"columns"!=f.model.B.C.Ef||(this.se?(c=this.Yi(this.Lf,[],this.Js),0<=c&&(this.yc=f.Ha.ge(this.yc,0,c),this.Bc=f.Ha.ge(this.Bc,a,c))):(this.Si(this.Lf,[],a),this.yc.push(0)));0==this.lj&&this.SK(b,[],a,0)}if(0==this.lj&&(this.g4||this.Jb.Ra&&1==this.Dl.length))for(b=0;b<this.ib.length;b++)this.se?(a=this.Yi(this.Lf,[],this.Js),
0<=a&&(this.yc=f.Ha.ge(this.yc,0,a),this.Bc=f.Ha.ge(this.Bc,b,a))):(this.Si(this.Lf,[],b),this.yc.push(0))}else this.Lf=this.Uc};d.prototype.QJa=function(){this.CV(this.Gb);this.CV(this.gg);this.CV(this.Uc);this.CV(this.Lf);Array.isArray(this.Bc)||(this.Bc=Array.from(this.Bc));Array.isArray(this.wc)||(this.wc=Array.from(this.wc));Array.isArray(this.yc)||(this.yc=Array.from(this.yc))};d.prototype.CV=function(b){for(var a=0;a<b.length;a++)Array.isArray(b[a])||(b[a]=Array.from(b[a]))};d.prototype.pack=
function(){this.vU(this.Gb);this.vU(this.gg);this.vU(this.Uc);this.vU(this.Lf);15<this.Bc.length&&(this.Bc=new Int8Array(this.Bc));15<this.wc.length&&(this.wc=new Uint8Array(this.wc));15<this.yc.length&&"after"!==f.model.B.C.eR&&(this.yc=new Uint8Array(this.yc))};d.prototype.hq=function(b){b=b.slice();for(var a=0;a<b.length;a++)b[a]=b[a].slice();return b};d.prototype.vU=function(b){for(var a=0;a<b.length;a++)if(15<b[a].length){for(var c=0,e=0;e<b[a].length;e++)c=b[a][e]>c?b[a][e]: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]))}};d.prototype.E_=function(b,a,c){var e=a.length;if(e=this.Kb.Ra&&a.length>=this.lj?this.xm.ea(e+1):this.xm.ea(e))0==c&&(this.NX=Date.now()),this.hl?this.Y8(e,e.yd,b,a,c):this.zba(e,e.yd,b,a,c)};d.prototype.Kda=function(b){if(0==b.hierarchy.cb.length)return!0;for(var a=b;!f.v(a);){if(0<=b.hierarchy.cb.indexOf(a.ordinal))return!0;a=a.parent}a=ja(b.hierarchy.cb);for(var c=a.next();!c.done;c=a.next())if(0<=b.Wx.indexOf(c.value))return!0;
return!1};d.prototype.$0=function(b,a,c,e){if(this.ga.fa.Hc&&this.ga.fa.Ba!==k.i.oa.API||this.ga.fa.NL)return!1;if(!0===f.model.B.C.ru||"rows"===f.model.B.C.ru)return!this.Kda(a);if(void 0!==c&&void 0!==e&&!k.i.ca.OL(e.$)&&(e=e.clone(),e.$=c.measure.$,a=this.Fa(b,[],e),!c.WT(a,c.query)))return!0;for(c=0;c<this.measures.length;c++)if(0===c&&this.measures[c].Ka||!isNaN(this.Fa(b,[],this.measures[c]))||k.i.ca.OL(this.measures[c].$))return!1;return!0};d.prototype.Cda=function(b,a,c,e){if(this.ga.fa.Hc&&
this.ga.fa.Ba!==k.i.oa.API||this.ga.fa.NL)return!1;if(!0===f.model.B.C.ru||"columns"===f.model.B.C.ru)return!this.Kda(a);if(void 0!==c&&void 0!==e&&!k.i.ca.OL(e.$)&&(e=e.clone(),e.$=c.measure.$,a=this.Fa([],b,e),!c.WT(a,c.query)))return!0;for(c=0;c<this.measures.length;c++)if(0===c&&this.measures[c].Ka||!isNaN(this.Fa([],b,this.measures[c]))||k.i.ca.OL(this.measures[c].$))return!1;return!0};d.prototype.zba=function(b,a,c,e,g){if(null!=a){if(null!=b.nc&&!this.qa.Hh(e,a)){if(0<e.length){var l=e.slice(0);
l.push(a.ordinal)}else l=e.slice(0);this.qa.Gn(l,a,k.i.ia.Ia,b.ig)}a=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);a=this.o4(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var m=b.filter;var n=this.slice.$c(m.measure.uniqueName)}l=this.vb.indexOf(b.uniqueName)<this.vb.length-1;for(var p=this.qa.fB(b),t=0;t<a.length;t++){var r=b.va(a[t]);0===t&&this.Aba(r);if((void 0!==c[r.ordinal]||p)&&!r.Wb){var v=e.slice(0);v.push(r.ordinal);if(!this.$0(v,r,m,n)){var z=
l&&this.qa.Ih(v),B=!r.Bi&&this.qa.Hh(v,r);if(this.se){var C=this.Yi(this.Gb,v,this.EM);0<=C&&!this.ic.Ra&&(this.wc=f.Ha.ge(this.wc,g,C));z||this.ic.Ra||this.z3(this.Gb,v)}else this.Si(this.Gb,v),this.wc.push(g);if(Date.now()-this.NX<f.model.B.C.y_)B?this.zba(b,r,c,e,g+1):z&&this.E_(c[r.ordinal],v,g+1);else if(B||z)this.uQ=!0}}}}};d.prototype.z3=function(b,a){for(var c=b[0].length-1;0<=c;c--){for(var e=!0,g=0;g<a.length;g++)if(b[g][c]!=a[g]){e=!1;break}if(e){e=!0;for(g=a.length;g<b.length;g++)if(0!=
b[g][c]){e=!1;break}e?this.hl&&2==this.fi[c]&&(this.fi[c]=3):(this.Zy(b,c),this.wc=f.Ha.Iq(this.wc,c),this.fi.splice(c,1),this.Kb.Ra&&(this.Bc=f.Ha.Iq(this.Bc,c)))}}if(this.hl)for(b=b[0].length,a=0;a<b;a++)3==this.fi[a]&&(this.fi[a]=1,this.wc[a]=this.cca(this.Gb,a))};d.prototype.oHa=function(b){if(b&&0!=b.length)for(var a=b[0].length,c=b.length-1;0<=c;c--){for(var e=0;e<a;e++)if(0!=b[c][e])return;--b.length}};d.prototype.cga=function(b,a){for(var c=b[0].length-1;0<=c;c--){for(var e=!0,g=0;g<a.length;g++)if(b[g][c]!=
a[g]){e=!1;break}if(e){e=!0;for(g=a.length;g<b.length;g++)if(0!=b[g][c]){e=!1;break}e||(this.Zy(b,c),this.yc=f.Ha.Iq(this.yc,c),this.Jb.Ra&&(this.Bc=f.Ha.Iq(this.Bc,c)))}}};d.prototype.Si=function(b,a,c){0===b.length&&(b[0]=[]);if(a.length>b.length)for(var e=b.length;e<a.length;e++){b[e]=[];for(var g=0;g<b[0].length;g++)b[e].push(0)}for(e=0;e<a.length;e++)b[e].push(a[e]);if(b.length>a.length)for(a=a.length;a<b.length;a++)b[a].push(0);void 0!==c&&this.Bc.push(c)};d.prototype.Yi=function(b,a,c,e){c=
void 0===c?null:c;e=void 0===e?0:e;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(var l=0;l<b[0].length;l++)b[g].push(0)}return this.baa(null!==c?c:b,a)?-1:(c=this.bxa(b,a)+e,this.xAa(b,a,c),c)};d.prototype.bxa=function(b,a){var c=0,e=b[0].indexOf(0);0>e&&(e=b[0].length-1);for(var g=0;g<b.length;g++){c=b[g].indexOf(a[g],c);if(-1===c)break;if(c<e)e=b[g].lastIndexOf(a[g],e-1)+1;else break}return e};d.prototype.xAa=
function(b,a,c){for(var e=0;e<b.length;e++)b[e]=f.Ha.ge(b[e],void 0!==a[e]?a[e]:0,c)};d.prototype.baa=function(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(var e=b.length;e<a.length;e++)if(0!=a[e]){c=!1;break}if(!c)return!1;a=a.slice(0,b.length)}return 0<=this.VK(b,a)};d.prototype.VK=function(b,a,c){c=void 0===c?!0:c;for(var e=b[0].length;!c&&a.length<e;)a.push(0);for(c=0;c<e;c++){for(var g=!0,l=0;l<b.length;l++)if(b[l][c]!=a[l]){g=
!1;break}if(g)return c}return-1};d.prototype.gC=function(b,a){if(0==b.length||void 0==b[0][a])return null;for(var c=[],e=0;e<b.length;e++)0!=b[e][a]&&c.push(b[e][a]);return c};d.prototype.UK=function(b,a,c,e){if(!this.hl){var g=a.length;(g=this.Kb.Ra&&a.length>=this.lj?this.xm.ea(g+1):this.xm.ea(g))&&this.RR(g,g.yd,b,a,c,e)}};d.prototype.RR=function(b,a,c,e,g,l){if(null!=a){if(null!=b.nc&&!this.qa.Hh(e,a)){if(0<e.length){var m=e.slice(0,-1);m.push(a.ordinal)}else m=e.slice(0);this.qa.Gn(m,a,k.i.ia.Ia,
b.ig)}m=e.length;a=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);a=this.o4(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var n=b.filter;var p=this.slice.$c(n.measure.uniqueName)}for(var t,r,v=this.qa.fB(b),z=0;z<a.length;z++)if(t=b.va(a[z]),(null!=c[t.ordinal]||v)&&!t.Wb){var B=e.slice(0);B.push(t.ordinal);if(!this.$0(B,t,n,p)){var C=this.qa.Ih(B,g),E=this.qa.Hh(B,t);if(m<this.lj)if(this.se?(r=this.Yi(this.gg,B,this.pv),0<=r&&(this.wc=f.Ha.ge(this.wc,
l,r),this.Bc=f.Ha.ge(this.Bc,-1,r))):(this.Si(this.gg,B,-1),this.wc.push(l)),m==this.lj-1&&C)for(r=0;r<this.ib.length;r++)this.qa.Hh(B,t,r)?this.RR(b,t,c,e,r,l+2):(this.se?(C=this.Yi(this.gg,B,this.pv),0<=C&&(this.wc=f.Ha.ge(this.wc,l+1,C),this.Bc=f.Ha.ge(this.Bc,r,C))):(this.Si(this.gg,B,r),this.wc.push(l+1)),this.qa.Ih(B)&&this.UK(c[t.ordinal],B,r,l+2));else{for(r=0;r<this.ib.length;r++)if(this.nha(b)||!C&&!E||this.Jt)if(this.se){var K=this.Yi(this.gg,B,this.pv);0<=K&&(this.wc=f.Ha.ge(this.wc,l+
1,K),this.Bc=f.Ha.ge(this.Bc,r,K));C||this.z3(this.gg,B)}else this.Si(this.gg,B,r),this.wc.push(l+1);this.qa.Hh(B,t,g)?this.RR(b,t,c,e,g,l+2):this.qa.Ih(B,g)&&this.UK(c[t.ordinal],B,g,l+2)}else this.se?(r=this.Yi(this.gg,B,this.pv),0<=r&&(this.wc=f.Ha.ge(this.wc,l,r),this.Bc=f.Ha.ge(this.Bc,g,r))):(this.Si(this.gg,B,g),this.wc.push(l)),this.qa.Hh(B,t,g)?this.RR(b,t,c,e,g,l+1):C&&this.UK(c[t.ordinal],B,g,l+1)}}}};d.prototype.Y8=function(b,a,c,e,g){if(null!=a){if(null!=b.nc&&!this.qa.Hh(e,a)){if(0<
e.length){var l=e.slice(0);l.push(a.ordinal)}else l=e.slice(0);this.qa.Gn(l,a,k.i.ia.Ia,b.ig)}a=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(a.hierarchy.ig);a=this.o4(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var m=b.filter;var n=this.slice.$c(m.measure.uniqueName)}l=this.qa.fB(b);for(var p=!1,t=0;t<a.length;t++){var r=b.va(a[t]);0===t&&this.Aba(r);if((null!=c[r.ordinal]||l)&&!r.Wb){var v=e.slice(0);v.push(r.ordinal);if(!this.$0(v,r,m,n)){var z=this.qa.Hh(v,
r),B=this.qa.Ih(v);r.ah&&B&&!z&&(B=!1);var C=0<this.Gb.length?this.Gb[0].length:0;!this.se&&this.Sm>v.length&&(this.fi[C]=1,void 0==this.wc[C]&&(this.wc[C]=g));var E=Date.now()-this.NX;if(E<f.model.B.C.y_||E>=f.model.B.C.y_&&0<g)z?this.Y8(b,r,c,e,g+1):B&&this.E_(c[r.ordinal],v,g+1);else if(z||B)this.uQ=!0,0===g&&B&&(this.FHa(v,C),B=!1);z||B?(this.nha(b)&&(this.se?(B=this.Yi(this.Gb,v,this.EM),0<=B?(this.fi.splice(B,0,2),this.wc=f.Ha.ge(this.wc,g,B)):(v=this.VK(this.Gb,v,!1),0<=v&&(this.fi[v]=2))):
(this.Si(this.Gb,v),this.wc[this.Gb[0].length-1]=g,this.fi[this.Gb[0].length-1]=2)),z&&this.wc[C]>g&&(this.wc[C]=g,this.fi[C]=0)):this.se?(z=1<v.length&&this.Bua(this.Gb,e),z=this.Yi(this.Gb,v,this.EM,z?-1:0),0<=z&&(this.fi.splice(z,0,g==this.Sm-1?0:1),this.wc=f.Ha.ge(this.wc,g,z),1<v.length&&(0==t&&(this.fi[z]=1,this.wc[z]=this.cca(this.Gb,z)),0==p&&(z=e.slice(0),z.push(0),z=this.VK(this.Gb,z),0<=z&&2!=this.fi[z]&&(p=!0,this.fi[z]=2,this.wc[z]=g-1)))),B||this.ic.Ra||this.z3(this.Gb,v)):(this.Si(this.Gb,
v),void 0==this.fi[this.Gb[0].length-1]&&(this.fi[this.Gb[0].length-1]=0,this.wc[this.Gb[0].length-1]=g))}}}}};d.prototype.cca=function(b,a){if(0==a)return 0;for(var c=0,e=0;e<b.length&&b[e][a]==b[e][a-1];e++)c++;return c};d.prototype.Bua=function(b,a){a=a.slice(0);a.push(0);for(var c=1;c<a.length;){if(this.baa(b,a))return!0;c++;a[a.length-c]=0}return!1};d.prototype.FHa=function(b,a){this.wc[a]=0;this.qa.collapse(b,this.Kb.uniqueName,void 0);b=[-1,b[0]];a=this.hG().slice(0);a.push(b);this.Q3(a)};
d.prototype.Aba=function(b){this.yba(this.rQ,b)};d.prototype.Mwa=function(b){this.yba(this.zP,b)};d.prototype.yba=function(b,a){-1===b.indexOf(a.level.uniqueName)&&(1>=(null!=a.hierarchy.nc?a.level.sb-a.hierarchy.nc.sb+1:a.level.sb)?b.push(a.level.uniqueName):b.splice(b.indexOf(a.parent.level.uniqueName)+1,0,a.level.uniqueName))};d.prototype.aea=function(b,a){for(var c=0;c<b.length;c++){var e=a.ea(c),g=this.Vya(e,b[c]);if(e.filter.$g){for(var l=-1,m=0;m<g.length;m++){if(0>e.cb.indexOf(g[m])&&1===
g.length)return!1;var n=e.cb.indexOf(g[m]);l=n>l?n:l}if(-1===l)return!1}}return!0};d.prototype.Vya=function(b,a){var c=[];for(b=b.va(a);0!==b.ordinal;)c.push(b.ordinal),b=b.parent;return c};d.prototype.o4=function(b,a,c,e){if(!this.HL)return a;var g=this.wn;if(!this.aea(g,this.Cb))return a;for(var l=[],m=[],n=[],p=[],t,r=this.qa.fB(b),v=0;v<a.length;v++)if(t=b.va(a[v]),(null!=c[t.ordinal]||r)&&!t.Wb){var z=e.slice(0);z.push(t.ordinal);z=this.Fa(z,g,this.Hv);isNaN(z)?n.push(t.ordinal):(l.push(z),m.push(t.ordinal))}b=
this.ui!==k.i.xa.Ec?f.Ha.sort(l,f.Ha.mi|f.Ha.Ru):f.Ha.sort(l,f.Ha.mi|f.Ha.ko|f.Ha.Ru);for(v=0;v<b.length;v++)a=m[b[v]],null!=a&&p.push(a);for(v=0;v<n.length;v++)a=n[v],this.ui==k.i.xa.Ec?p.push(a):p.splice(v,0,a);return p};d.prototype.rha=function(b,a,c,e){if(!this.RS)return a;var g=this.Ek;if(!this.aea(g,this.vb))return a;for(var l=[],m=[],n=[],p=[],t,r=this.qa.kF(b),v=0;v<a.length;v++)if(t=b.va(a[v]),(null!=c[t.ordinal]||r)&&!t.Wb){var z=e.slice(0);z.push(t.ordinal);z=this.Fa(g,z,this.cs);isNaN(z)?
n.push(t.ordinal):(l.push(z),m.push(t.ordinal))}b=this.rl!==k.i.xa.Ec?f.Ha.sort(l,f.Ha.mi|f.Ha.Ru):f.Ha.sort(l,f.Ha.mi|f.Ha.ko|f.Ha.Ru);for(v=0;v<b.length;v++)a=m[b[v]],null!=a&&p.push(a);for(v=0;v<n.length;v++)a=n[v],this.rl==k.i.xa.Ec?p.push(a):p.splice(v,0,a);return p};d.prototype.xba=function(b,a,c){var e=a.length;(e=this.Jb.Ra&&a.length>=this.lj?this.Dl.ea(e+1):this.Dl.ea(e))&&this.wba(e,e.yd,b,a,c)};d.prototype.wba=function(b,a,c,e,g){if(null!=b.nc&&!this.qa.Rj(e,a)){if(0<e.length){var l=e.slice(0);
l.push(a.ordinal)}else l=e.slice(0);this.qa.Gn(l,a,k.i.ia.Sa,b.ig)}a=null==a.hierarchy.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);a=this.rha(b,a,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var m=b.filter;var n=this.slice.$c(m.measure.uniqueName)}l=this.qa.kF(b);for(var p=0;p<a.length;p++){var t=b.va(a[p]);0==p&&this.Mwa(t);if((null!=c[t.ordinal]||l)&&!t.Wb){var r=e.slice(0);r.push(t.ordinal);if(!this.Cda(r,t,m,n)){var v=this.qa.Sj(r),z=this.qa.Rj(r,t);if(this.pH(v,
z)&&!z)this.dB(e.length);else if(this.hs(b)||!v||this.Jt)if(this.se){var B=this.Yi(this.Uc,r,this.pK);0<=B&&!this.Sb.Ra&&(this.yc=f.Ha.ge(this.yc,g,B));v||this.Sb.Ra||this.cga(this.Uc,r)}else this.Si(this.Uc,r),this.yc.push(g);else this.hs(b)||this.dB(e.length);z?this.wba(b,t,c,e,g+1):v&&this.xba(c[t.ordinal],r,g+1);this.pH(v,z)&&(this.hs(b)||!v||this.Jt)&&(this.se?(t=this.Yi(this.Uc,r,this.pK),0<=t&&(this.yc=f.Ha.ge(this.yc,-1,t))):(this.Si(this.Uc,r),this.yc.push(-1)))}}}};d.prototype.SK=function(b,
a,c,e){var g=a.length;(g=this.Jb.Ra&&a.length>=this.lj?this.Dl.ea(g+1):this.Dl.ea(g))&&this.QR(g,g.yd,b,a,c,e)};d.prototype.hs=function(b){return f.model.B.C.qk&&void 0!==b&&void 0!==b.Yf?b.Yf:"on"===f.model.B.C.Yf||"columns"===f.model.B.C.Yf};d.prototype.pH=function(b,a){return!b&&!a||this.Jt?!1:"after"===f.model.B.C.eR};d.prototype.nha=function(b){return f.model.B.C.qk&&void 0!==b&&void 0!==b.Yf?b.Yf:"on"===f.model.B.C.Yf||"rows"===f.model.B.C.Yf};d.prototype.QR=function(b,a,c,e,g,l){if(null!=b.nc&&
!this.qa.Rj(e,a)){if(0<e.length){var m=e.slice(0,-1);m.push(a.ordinal)}else m=e.slice(0);this.qa.Gn(m,a,k.i.ia.Sa,b.ig)}m=e.length;var n=null==b.nc||a.level.sb>=b.nc.sb?b.uj(a,!1,""):b.du(b.ig);n=this.rha(a.hierarchy,n,c,e);if(b.filter.ai&&b.filter.query.ta!=k.i.tc.Bj&&b.filter.query.ta!=k.i.tc.ji){var p=a.hierarchy.filter;var t=this.slice.$c(p.measure.uniqueName)}var r;a=this.qa.kF(b);for(var v=0;v<n.length;v++){var z=b.va(n[v]);if((null!=c[z.ordinal]||a)&&!z.Wb){var B=e.slice(0);B.push(z.ordinal);
if(!this.Cda(B,z,p,t)){var C=this.qa.Sj(B,g),E=this.qa.Rj(B,z);if(m<this.lj)if(this.Jb.Ra&&this.PA<l+1&&(this.PA=l+1),m==this.lj-1&&C)if(E){for(r=0;r<this.ib.length;r++)this.se?(C=this.Yi(this.Lf,B,this.Js),0<=C&&(this.yc=f.Ha.ge(this.yc,l,C),this.Bc=f.Ha.ge(this.Bc,g,C))):(this.Si(this.Lf,B,r),this.yc.push(l));this.QR(b,z,c,e,g,l+1)}else for(r=0;r<this.ib.length;r++)this.hs(b)||!C||this.Jt?this.se?(E=this.Yi(this.Lf,B,this.Js),0<=E&&(this.yc=f.Ha.ge(this.yc,l,E),this.Bc=f.Ha.ge(this.Bc,r,E))):(this.Si(this.Lf,
B,r),this.yc.push(l)):this.hs(b)||this.dB(m),this.qa.Sj(B,r)&&this.SK(c[z.ordinal],B,r,l+1);else{if(this.pH(C,E)&&!E)this.dB(m);else if(this.hs(b)||!C||this.Jt)for(r=0;r<this.ib.length;r++)if(this.se){var K=this.Yi(this.Lf,B,this.Js);0<=K&&(this.yc=f.Ha.ge(this.yc,l,K),this.Bc=f.Ha.ge(this.Bc,r,K));C||this.cga(this.Lf,B)}else this.Si(this.Lf,B,r),this.yc.push(l);else this.hs(b)||this.dB(m);this.qa.Rj(B,z,g)?this.QR(b,z,c,e,g,l+1):C&&this.SK(c[z.ordinal],B,g,l+1);if(this.pH(C,E)&&(this.hs(b)||!C||
this.Jt))for(r=0;r<this.ib.length;r++)this.se?(z=this.Yi(this.Lf,B,this.Js),0<=z&&(this.yc=f.Ha.ge(this.yc,-1,z),this.Bc=f.Ha.ge(this.Bc,r,z))):(this.Si(this.Lf,B,r),this.yc.push(-1))}else this.pH(C,E)&&!E?this.dB(m):this.hs(b)||!C||this.Jt?this.se?(r=this.Yi(this.Lf,B,this.Js),0<=r&&(this.yc=f.Ha.ge(this.yc,l,r),this.Bc=f.Ha.ge(this.Bc,g,r))):(this.Si(this.Lf,B,g),this.yc.push(l)):this.hs(b)||this.dB(m),this.qa.Rj(B,z,g)?this.QR(b,z,c,e,g,l+1):C&&this.SK(c[z.ordinal],B,g,l+1),this.pH(C,E)&&(this.hs(b)||
!C||this.Jt)&&(this.se?(B=this.Yi(this.Uc,B,this.pK),0<=B&&(this.yc=f.Ha.ge(this.yc,-1,B))):(this.Si(this.Uc,B),this.yc.push(-1)))}}}};d.prototype.dB=function(b){void 0===this.ay[this.yc.length]&&(this.ay[this.yc.length]=[]);-1==this.ay[this.yc.length].indexOf(b)&&this.ay[this.yc.length].push(b)};d.prototype.yS=function(b){return this.hl?this.wc[this.Kb.Ra?Math.floor(b/this.ib.length):b]:this.wc[b]};d.prototype.DS=function(b){return this.hl?this.fi[this.Kb.Ra?Math.floor(b/this.ib.length):b]:this.fi[b]};
d.prototype.Sv=function(){return 1};d.prototype.eL=function(b){return this.yc[b]};d.prototype.Z0=function(b){return this.ay[b]};d.prototype.AS=function(b){return this.Kb.Ra&&(b.length>this.lj||0==this.lj)?b.length:b.length-1};d.prototype.zS=function(b){return this.xm.ea(this.AS(b))};d.prototype.hS=function(b){return this.Jb.Ra&&(b.length>this.lj||0==this.lj)?b.length:b.length-1};d.prototype.iG=function(b){return this.Dl.ea(this.hS(b))};d.prototype.Ih=function(b,a){return this.qa.Ih(b,a)};d.prototype.Sj=
function(b,a){return this.qa.Sj(b,a)};d.prototype.Hh=function(b,a,c){return this.qa.Hh(b,a,c)};d.prototype.Rj=function(b,a,c){return this.qa.Rj(b,a,c)};d.prototype.UB=function(b,a){a=void 0===a?!0:a;b=b.slice(0);var c=(a=a&&this.Jb.Ra)?b.pop():-1,e=this.Lf;if(0<e.length)for(var g=0;g<e[0].length;g++){var l=!0;if(!a||!this.Tn||c==this.Bc[g]){var m=this.gC(e,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){l=!1;break}if(l)return g}}}return-1};d.prototype.eC=function(b,a){a=void 0===
a?!0:a;b=b.slice(0);var c=(a=a&&this.Kb.Ra)?b.pop():-1,e=this.hl?this.Gb:this.gg;if(0<e.length)for(var g=0;g<e[0].length;g++){var l=!0;if(!a||!this.Tn||c==this.Bc[g]){var m=this.gC(e,g);if(m.length==b.length){for(var n=0;n<m.length;n++)if(m[n]!=b[n]){l=!1;break}if(l)return g}}}return-1};d.prototype.Lm=function(b,a){return 0>b||null==this.Kb||null==this.ib?null:(void 0===a?0:a)&&this.Kb.Ra&&this.Tn?this.hl?(b=Math.floor(b/this.ib.length),void 0==this.Gb[0][b]?null:this.gC(this.Gb,b)):void 0==this.gg[0][b]?
null:this.gC(this.gg,b):f.v(this.Gb[0])||f.v(this.Gb[0][b])?null:this.gC(this.Gb,b)};d.prototype.nj=function(b,a){return 0>b||null==this.Jb||null==this.ib?null:(void 0===a?0:a)&&this.Jb.Ra&&this.Tn?void 0==this.Lf[0][b]?null:this.gC(this.Lf,b):void 0==this.Uc[0]?[0]:void 0==this.Uc[0][b]?null:this.gC(this.Uc,b)};d.prototype.X_=function(){return null};d.prototype.CS=function(b){return this.hl&&this.Kb.Ra?void 0==this.Gb[0][Math.floor(b/this.measures.length)]?-1:b%this.ib.length:void 0==this.Bc[b]?
-1:this.Kb.Ra&&this.Tn?this.Bc[b]:-1};d.prototype.iS=function(b){return void 0===this.Bc[b]?-1:this.Jb.Ra&&this.Tn?this.Bc[b]:-1};d.prototype.Zh=function(b,a){if(void 0!==this.ib&&void 0!==this.Kb&&void 0!==this.Jb)return this.Tn?this.Kb.Ra?this.hl?(a=b%this.ib.length,void 0==this.Gb[0][Math.floor(b/this.measures.length)]?this.ib[0]:this.ib[a]):void 0===this.Bc[b]?this.ib[0]:this.ib[this.Bc[b]]:void 0===this.Bc[a]?this.ib[0]:this.ib[this.Bc[a]]:this.ib[0]};d.prototype.drillThrough=function(b,a,c){return this.qa.drillThrough(b,
a,c)};d.prototype.save=function(b,a,c,e,g){return this.qa.save(b,a,c,e,g)};d.prototype.hC=function(b,a,c){return this.qa.hC(b,a,c)};d.prototype.Pt=function(b,a){return this.ga.fa.Hc?null:null==b&&null==a?null:this.qa.zza(b,a)};d.prototype.Fa=function(b,a,c){if(c.$===k.i.ca.Wq)return b=this.qa.Fa(b,a,c),c=this.qa.Fa([],[],c),isNaN(b)&&!isNaN(c)?0:Math.abs(100*b/c);if(c.$===k.i.ca.ro)return b=this.qa.Fa(b,a,c),c=this.qa.Fa([],a,c),isNaN(b)&&!isNaN(c)?0:100*b/c;if(c.$===k.i.ca.Tp)return a=this.qa.Fa(b,
a,c),c=this.qa.Fa(b,[],c),isNaN(a)&&!isNaN(c)?0:100*a/c;if(c.$===k.i.ca.Sp){var e=this.qa.Fa(b,a,c);b=b.slice(0,b.length-1);c=this.qa.Fa(b,a,c);return isNaN(e)&&!isNaN(c)?0:100*e/c}if(c.$===k.i.ca.Rp)return e=this.qa.Fa(b,a,c),a=a.slice(0,a.length-1),c=this.qa.Fa(b,a,c),isNaN(e)&&!isNaN(c)?0:100*e/c;if(c.$===k.i.ca.li){e=this.qa.Fa([],[],c);var g=this.qa.Fa(b,[],c),l=this.qa.Fa([],a,c);c=this.qa.Fa(b,a,c);return Math.abs(e*c/(l*g))}return c.$===k.i.ca.dn?this.mca(b,a,c,!1):c.$===k.i.ca.im?this.nca(b,
a,c,!1):c.$===k.i.ca.jn?this.mca(b,a,c,!0):c.$===k.i.ca.km?this.nca(b,a,c,!0):c.$===k.i.ca.nm||c.$===k.i.ca.ln?this.qa.Jca(b,a,c):this.ga.fa.Ba!==k.i.oa.Nc&&this.ga.fa.Ba!==k.i.oa.Zd||!f.model.B.C.Jq||c.$!==k.i.ca.NONE?this.qa.Fa(b,a,c):(c=this.qa.Fa(b,a,c),k.HI.U().nza(c))};d.prototype.nca=function(b,a,c,e){var g=-1;if(0<this.columns.length){var l=this.Jb.Ra&&1<this.ib.length;g=a.slice();l&&g.push(0);g=this.UB(g,l);if(0==g||0==a.length)return NaN;if(0>g)return 0;l=this.nj(l&&a.length<=this.Jb.He?
g-this.ib.length:g-1,l);if(null==l||a.length!=l.length&&1!=a.length)return NaN;a.length!=l.length&&1==a.length&&(l=this.vza(g,a.length));if(null==l)return NaN;l=this.qa.Fa(b,l,c);isNaN(l)&&!e&&(l=0)}b=this.qa.Fa(b,a,c);isNaN(b)&&0<g&&!e&&(b=0);return e?(b-l)/l*100:b-l};d.prototype.mca=function(b,a,c,e){var g=-1;if(0<this.rows.length){var l=this.Kb.Ra&&1<this.ib.length;g=b.slice();l&&g.push(0);g=this.eC(g,l);if(0==g||0==b.length)return NaN;if(0>g)return 0;l=this.Lm(l&&b.length<=this.Kb.He?g-(this.ib.length+
1):g-1,l);if(null==l||b.length!=l.length&&1!=b.length)return NaN;b.length!=l.length&&1==b.length&&(l=this.wza(g,b.length));if(null==l)return NaN;l=this.qa.Fa(l,a,c);isNaN(l)&&!e&&(l=0)}b=this.qa.Fa(b,a,c);isNaN(b)&&0<g&&!e&&(b=0);return e?(b-l)/l*100:b-l};d.prototype.wza=function(b,a){if(0>b||null==this.Kb||null==this.ib||f.v(this.Gb[0])||f.v(this.Gb[0][b]))return null;b=this.zga(this.Gb,a,b);return 0<=b&&0==this.Gb[a][b]?this.Hca(b,a,this.Gb):null};d.prototype.vza=function(b,a){if(0>b||null==this.Kb||
null==this.ib)return null;if(void 0==this.Uc[0])return[0];if(void 0==this.Uc[0][b])return null;b=this.zga(this.Uc,a,b);return 0<=b&&0==this.Uc[a][b]?this.Hca(b,a,this.Uc):null};d.prototype.Hca=function(b,a,c){for(var e=[],g=0;g<a;g++)e.push(c[g][b]);return e};d.prototype.zga=function(b,a,c){if(b[a]&&0==b[a][c]){for(c--;0!=b[a][c]&&0<=c;)c--;return c}return-1};d.prototype.Yo=function(b,a,c){b=this.qa.Fa(b,a,c);return k.HI.U().Pza(b)};d.prototype.xv=function(b,a,c,e){return this.qa.xv(b,a,c,e)};d.prototype.Qv=
function(b){this.mj&&(this.ga.fa.Hc||this.Gwa(b))};d.prototype.Gwa=function(b){var a=this.slice.rows.Bb(b.uniqueName)?k.i.ia.Ia:k.i.ia.Sa;b=a==k.i.ia.Ia?this.slice.vb.indexOf(b.uniqueName):this.slice.Cb.indexOf(b.uniqueName);if(b+1!=(a==k.i.ia.Ia?this.slice.vb.length:this.slice.Cb.length)){var c=[],e=(a==k.i.ia.Ia?this.slice.vb:this.slice.Cb).slice(0,b+1);this.yL([],e,c);e=a==this.slice.ht.uniqueName?this.slice.ht.He:-1;for(var g=this.slice.ad(),l=0;l<c.length;l++)if(0<=e&&e<=b&&1<g.length)for(var m=
0;m<g.length;m++){var n=g[m];c[l].length>e?this.expand(c[l],a,n,!1):this.expand(c[l],a,void 0,!1)}else this.expand(c[l],a,void 0,!1);this.ga.Da(new k.WW(k.i.Kd.Oz));this.ga.Wa(f.model.cc.fd.lm)}};d.prototype.yL=function(b,a,c,e){e=void 0===e?!0:e;if(0!=a.length){var g=a.ea(0);var l=g.filter.$h?g.cb.length:g.vi;for(var m=0;m<l;m++){var n=g.filter.$h?g.va(g.cb[m]):g.va(m);if(!n.Wb){var p=b.slice(0);p.push(n.ordinal);(e||!e&&1==a.length)&&c.push(p.slice(0));this.yL(p.slice(0),a.slice(1),c,e)}}}};d.prototype.Gv=
function(b){this.mj&&(this.ga.fa.Hc||this.Hta(b))};d.prototype.Hta=function(b){var a=this.slice.rows.Bb(b.uniqueName)?k.i.ia.Ia:k.i.ia.Sa;b=a==k.i.ia.Ia?this.slice.vb.indexOf(b.uniqueName):this.slice.Cb.indexOf(b.uniqueName);if(b+1!=(a==k.i.ia.Ia?this.slice.vb.length:this.slice.Cb.length)){var c=[],e=(a==k.i.ia.Ia?this.slice.vb:this.slice.Cb).slice(0,b+1);this.yL([],e,c,!1);e=a==this.slice.ht.uniqueName?this.slice.ht.He:-1;for(var g=this.slice.ad(),l=0;l<c.length;l++)if(0<=e&&e<=b&&1<g.length)for(var m=
0;m<g.length;m++){var n=g[m];c[l].length>e?this.collapse(c[l],a,n,!1):this.collapse(c[l],a,void 0,!1)}else this.collapse(c[l],a,void 0,!1);this.ga.Da(new k.WW(k.i.Kd.y5));this.ga.Wa(f.model.cc.fd.lm)}};d.prototype.expandAll=function(){this.mj&&(this.ga.fa.Hc?this.ga.select():(this.reset(),this.slice.expandAll?this.qa.expandAll(this.slice.drillAll):this.ga.select()))};d.prototype.sort=function(){this.se=!1;this.BU();this.ga.Wa(f.model.cc.fd.lm)};d.prototype.expand=function(b,a,c,e){e=void 0===e?!0:
e;a==k.i.ia.Ia&&(this.t9=b);a==k.i.ia.Sa&&(this.s9=b);var g=this.slice.Cd(a),l=b.slice(0);l.unshift(c&&g.Ra?c.index:-1);if(this.slice.expandAll)if(a==k.i.ia.Ia){g=this.hG();l=l.toString().toLocaleLowerCase();for(var m=-1,n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Q3(g)}else{g=this.TB();l=l.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Kga(g)}else a==k.i.ia.Ia?
(g=this.lL().slice(0),g.push(l),this.Tga(g)):(g=this.kL().slice(0),g.push(l),this.Sga(g));this.ga.expand(b,a,c,e)};d.prototype.collapse=function(b,a,c,e){e=void 0===e?!0:e;a==k.i.ia.Ia&&(this.t9=b.slice(0,b.length-1));a==k.i.ia.Sa&&(this.s9=b.slice(0,b.length-1));var g=this.slice.Cd(a),l=b.slice(0);l.unshift(c&&g.Ra?c.index:-1);if(this.slice.expandAll)a==k.i.ia.Ia?(g=this.hG().slice(0),g.push(l),this.Q3(g)):(g=this.TB().slice(0),g.push(l),this.Kga(g));else if(a==k.i.ia.Ia){g=this.lL();l=l.toString().toLocaleLowerCase();
for(var m=-1,n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Tga(g)}else{g=this.kL();l=l.toString().toLocaleLowerCase();m=-1;for(n=0;n<g.length;n++)if(l===g[n].toString().toLocaleLowerCase()){m=n;break}0<=m&&g.splice(m,1);this.Sga(g)}this.ga.collapse(b,a,c,e);e&&this.ga.Wa(f.model.cc.fd.lm)};d.prototype.To=function(b,a,c,e){var g=this.slice.Cd(c),l=[],m=b.slice(0);m.unshift(a.uniqueName);m.unshift(e&&g.Ra?e.index:-1);if(this.slice.drillAll)c==k.i.ia.Ia?
(l=this.hL().slice(0),l.push(m),this.Qga(l)):(l=this.gL().slice(0),l.push(m),this.Pga(l));else if(c==k.i.ia.Ia){var n=this.oG(),p;for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.U3(l)}else{n=this.nG();for(p in n)g=n[p],"string"==typeof g[0]&&(g=g.slice(1)),g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.T3(l)}this.ga.To(b,a,c,e);this.ga.Wa(f.model.cc.fd.lm)};d.prototype.Fsa=
function(b,a){for(;void 0!==b&&b.level.uniqueName!=a;)b=b.parent;return b};d.prototype.tf=function(b,a,c,e){var g=this.slice.Cd(c),l=[],m=b.slice(0);m.unshift(a.uniqueName);m.unshift(e&&g.Ra?e.index:-1);if(this.slice.drillAll)if(c==k.i.ia.Ia){var n=this.hL(),p;for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.Qga(l)}else{n=this.gL();for(p in n)g=n[p],g.toString().toLocaleLowerCase()!=m.toString().toLocaleLowerCase()&&l.push(g);this.Pga(l)}else c==
k.i.ia.Ia?(l=this.oG().slice(0),l.push(m),this.U3(l)):(l=this.nG().slice(0),l.push(m),this.T3(l));this.ga.tf(b,a,c,e);this.ga.Wa(f.model.cc.fd.lm)};d.prototype.Gn=function(b,a,c,e,g){var l=this.slice.Cd(c),m=b.slice(0);m.unshift(a.uniqueName);m.unshift(e&&l.Ra?e.index:-1);m.unshift(g);c==k.i.ia.Ia?(l=this.oG().slice(0),l.push(m),this.U3(l)):(l=this.nG().slice(0),l.push(m),this.T3(l));this.ga.Gn(b,a,c,e,g)};d.prototype.l1=function(b){return!0===this.RU[b]};d.prototype.fV=function(b){this.RU[b]=!0};
d.prototype.V0=function(b){return!0===this.ZQ[b]};d.prototype.R3=function(b){this.ZQ[b]=!0};d.dispose=function(){d.instance&&(d.instance.Yy(),d.instance.Od());d.instance=null};q.Object.defineProperties(d.prototype,{qa:{configurable:!0,enumerable:!0,get:function(){return null!=this.qJ?this.qJ:this.ga.qa},set:function(b){this.qJ=b}},slice:{configurable:!0,enumerable:!0,get:function(){return null!=this.Lb?this.Lb:this.ga.sa},set:function(b){this.Lb=b}},hl:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.qk},
set:function(){}},rows:{configurable:!0,enumerable:!0,get:function(){return this.xm},set:function(){}},vb:{configurable:!0,enumerable:!0,get:function(){return this.slice.vb},set:function(){}},Tm:{configurable:!0,enumerable:!0,get:function(){return this.rQ},set:function(){}},cR:{configurable:!0,enumerable:!0,get:function(){return this.zP},set:function(){}},columns:{configurable:!0,enumerable:!0,get:function(){return this.Dl},set:function(){}},Cb:{configurable:!0,enumerable:!0,get:function(){return this.slice.Cb},
set:function(){}},pages:{configurable:!0,enumerable:!0,get:function(){return this.kQ},set:function(){}},measures:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(){}},He:{configurable:!0,enumerable:!0,get:function(){return this.lj},set:function(){}},mj:{configurable:!0,enumerable:!0,get:function(){return this.slice&&this.EE},set:function(b){this.EE=b}},K3:{configurable:!0,enumerable:!0,get:function(){return this.VE},set:function(){}},kq:{configurable:!0,enumerable:!0,get:function(){return this.lx},
set:function(){}},gM:{configurable:!0,enumerable:!0,get:function(){return this.PA},set:function(){}},ic:{configurable:!0,enumerable:!0,get:function(){return this.Kb},set:function(){}},Sb:{configurable:!0,enumerable:!0,get:function(){return this.Jb},set:function(){}},Sm:{configurable:!0,enumerable:!0,get:function(){return this.Kb?this.Kb.Ra?this.Kb.Ma.length-1:this.Kb.Ma.length:0},set:function(){}},Em:{configurable:!0,enumerable:!0,get:function(){return this.Jb?this.Jb.Ra?this.Jb.Ma.length-1:this.Jb.Ma.length:
0},set:function(){}},Tn:{configurable:!0,enumerable:!0,get:function(){return 1<this.ib.length||this.Jb.Ra&&f.model.B.C.XM},set:function(){}},rl:{configurable:!0,enumerable:!0,set:function(b){this.Kb&&(this.Kb.$f=b)},get:function(){var b=k.i.xa.Zc;this.Kb&&(b=this.Kb.$f,b==k.i.xa.Zc&&this.Kb.ks&&this.Kb.Gq!=k.i.xa.Zc&&(b=this.Kb.Gq));return b}},Ek:{configurable:!0,enumerable:!0,set:function(b){this.Kb&&(this.Kb.Vm=b)},get:function(){if(this.Kb){var b=this.Kb.Vm;this.Kb.$f==k.i.xa.Zc&&this.Kb.ks&&this.Kb.Gq!=
k.i.xa.Zc&&(b=[])}return b}},cs:{configurable:!0,enumerable:!0,set:function(b){this.Kb&&(this.Kb.Ff=b)},get:function(){if(this.Kb){var b=this.Kb.Ff;this.Kb.$f==k.i.xa.Zc&&this.Kb.ks&&this.Kb.Gq!=k.i.xa.Zc&&(b=this.Kb.ks)}return b}},RS:{configurable:!0,enumerable:!0,get:function(){if(this.rl==k.i.xa.Zc||null==this.Ek)return!1;if(1>this.Ek.length)return!0;var b=!1;try{b=this.Ih(this.Ek.slice(0,this.Ek.length-1),this.cs)}catch(a){}return b},set:function(){}},ui:{configurable:!0,enumerable:!0,set:function(b){this.Jb&&
(this.Jb.$f=b)},get:function(){var b=k.i.xa.Zc;this.Jb&&(b=this.Jb.$f,b==k.i.xa.Zc&&this.Jb.ks&&this.Jb.Gq!=k.i.xa.Zc&&(b=this.Jb.Gq));return b}},wn:{configurable:!0,enumerable:!0,set:function(b){this.Jb&&(this.Jb.Vm=b)},get:function(){if(this.Jb){var b=this.Jb.Vm;this.Jb.$f==k.i.xa.Zc&&this.Jb.ks&&this.Jb.Gq!=k.i.xa.Zc&&(b=[])}return b}},Hv:{configurable:!0,enumerable:!0,set:function(b){this.Jb&&(this.Jb.Ff=b)},get:function(){if(this.Jb){var b=this.Jb.Ff;this.Jb.$f==k.i.xa.Zc&&this.Jb.ks&&this.Jb.Gq!=
k.i.xa.Zc&&(b=this.Jb.ks)}return b}},HL:{configurable:!0,enumerable:!0,get:function(){if(this.ui==k.i.xa.Zc||null==this.wn)return!1;if(1>this.wn.length)return!0;var b=!1;try{b=this.Sj(this.wn.slice(0,this.wn.length-1),this.Hv)}catch(a){}return b},set:function(){}},Wh:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},Z3:{configurable:!0,enumerable:!0,get:function(){return"on"===f.model.B.C.Ef||"columns"===f.model.B.C.Ef||0===this.rows.length}},g4:{configurable:!0,enumerable:!0,
get:function(){return"on"===f.model.B.C.Ef||"rows"===f.model.B.C.Ef||0===this.columns.length}},Jt:{configurable:!0,enumerable:!0,get:function(){return!1}},ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.Uc.length&&0==this.Gb.length},set:function(){}},Fd:{configurable:!0,enumerable:!0,get:function(){return 0<this.Uc.length?this.Uc[0].length:0},set:function(){}},Ed:{configurable:!0,enumerable:!0,get:function(){return 0<this.Gb.length?this.Gb[0].length:0},set:function(){}},oq:{configurable:!0,
enumerable:!0,get:function(){return 0<this.Lf.length?this.Lf[0].length:0},set:function(){}},nq:{configurable:!0,enumerable:!0,get:function(){return this.hl?(this.ic&&this.ic.Ra?this.ib.length:1)*(0<this.Gb.length?this.Gb[0].length:0):this.gg&&0<this.gg.length?this.gg[0].length:0},set:function(){}},DT:{configurable:!0,enumerable:!0,get:function(){return this.t9}},BT:{configurable:!0,enumerable:!0,get:function(){return this.s9}}});d.counter=0;h.dJ=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.vJa=function(b){var a=b.R("gridType");return b.R("viewType")===f.K.xd.Ki?"chart":a===f.K.X.ie.ih?"flat":"pivot"};d.uc=function(b,a){b=void 0===b?"":b;a=void 0===a?!0:a;""==b&&(b=f.model.B.C.he==f.K.xd.Ki?"chart":f.model.B.C.oc?"flat":"pivot");b="flat"==b?h.sW.U():"chart"==b?h.VH.U():h.dJ.U();b.BQ();d.G!=b?(d.G&&d.G.Yy(),b.load()):a&&f.model.B.C.mu&&(b.load(),f.model.B.C.mu=!1);d.G=b;return d.G};d.W_=function(b){d.uc("chart");return b?h.Z7.U(d.G):
d.G};d.dispose=function(){h.sW.dispose();h.VH.dispose();h.dJ.dispose();h.Z7.dispose();d.G=null};q.Object.defineProperties(d,{wva:{configurable:!0,enumerable:!0,get:function(){if(d.G)return d.G instanceof h.sW?"flat":d.G instanceof h.VH?"chart":"pivot"}}});d.G=null;h.ij=d;(function(b){b.SMa="pivot";b.ih="flat";b.QKa="chart"})(h.oka||(h.oka={}))})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.ib=[];b.EE=!1;b.Wy=function(){return b.NC()};b.Ut=[];b.sk=[];b.wa=k.Na.U();return b}u(d,y.Fc);d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.prototype.BQ=function(){this.wa.N(k.cg.hk,this.Wy,1)};d.prototype.Yy=function(){this.wa.mb(k.cg.hk,this.Wy)};d.prototype.load=function(){if(null==this.qa&&(this.qa=this.wa.qa,null==this.qa))return;this.slice&&(this.wa.fa.Hc||(this.qa.expand([],k.i.ia.Ia,
void 0),this.qa.expand([],k.i.ia.Sa,void 0)),this.BU(),this.EE=!0)};d.prototype.NC=function(){this.reset();this.load()};d.prototype.BU=function(){var b,a=this.slice?this.slice.flatten(!0,!0):new f.nb;this.sk.length=0;this.oK=new f.nb;this.rc=this.wa.I.rc();this.ib=[];for(b=0;b<a.length;b++){var c=a.ea(b);var e=a.ea(b)instanceof k.I.nf?this.wa.I.Ee(c.uniqueName):a.ea(b);void 0===e&&(e=this.wa.I.mt.getItem(c.uniqueName));e&&this.ib.push(e);e=this.qa.Yg.indexOf(c.uniqueName);if(c.qg)for(var g=1;g<c.ra.length;g++)this.sk.push([e,
g]),this.oK.Pa(c.uniqueName,this.sk.length-1);else this.sk.push(e),this.oK.Pa(c.uniqueName,this.sk.length-1);this.Wh=this.slice.flatSort}this.sort()};d.prototype.jS=function(b){if(f.v(this.Wh))return null;for(var a=0;a<this.Wh.length;a++){var c=this.Wh[a];if(c.measure.uniqueName==b)return c}};d.prototype.reset=function(){this.EE=!1;this.ib=[];this.Ut.length=0;this.sk.length=0;this.oK=new f.nb;this.rc=null};d.prototype.Z0=function(){return null};d.prototype.yS=function(){return 0};d.prototype.DS=function(){return 0};
d.prototype.Sv=function(){return 0};d.prototype.eL=function(){return 1};d.prototype.AS=function(){return 0};d.prototype.zS=function(b){return this.iG(b)};d.prototype.hS=function(){return 0};d.prototype.iG=function(b){f.v(this.rc)&&(this.rc=this.wa.I.rc());return this.rc.getItem(this.qa.Yg[b[0]])};d.prototype.Ih=function(){return!1};d.prototype.Sj=function(){return!1};d.prototype.Hh=function(){return!1};d.prototype.Rj=function(){return!1};d.prototype.UB=function(b){for(var a=0;a<this.sk.length;a++)if(this.sk[a]instanceof
Array){if(this.sk[a][0].toString()==b.toString())return a}else if(this.sk[a].toString()==b.toString())return a;return-1};d.prototype.eC=function(b){if(0<this.Ut.length&&b[0]<this.Ut.length)for(var a=0;a<this.Ut.length;a++){if(this.Ut[a].toString()==b.toString())return a}else return b[0];return-1};d.prototype.Lm=function(b){return 0>b?null:0<this.Ut.length&&b<this.Ut.length?[this.Ut[b]]:[b]};d.prototype.nj=function(b,a,c){return 0>b?null:0<this.sk.length&&b<this.sk.length?(void 0===c||!c)&&this.sk[b]instanceof
Array?[this.sk[b][0]]:[this.sk[b]]:[b]};d.prototype.X_=function(b){var a=void 0===a?!1:a;b=this.oK.getItem(b);return this.nj(b,a)};d.prototype.CS=function(){return 0};d.prototype.iS=function(){return 0};d.prototype.Zh=function(b,a){b=this.nj(a);var c=this.qa.Yg[b[0]];return this.ib.find(function(e){return e.uniqueName===c})};d.prototype.hC=function(b,a,c){return null==b?this.qa.vca(null,c):this.qa.vca(b[0],c)};d.prototype.Fa=function(b,a,c,e){if(null==a&&null==b)return this.qa.Fa([],[],c,!0);if(this.qa instanceof
k.local.xO||this.qa instanceof k.external.kc.Z4)return this.qa.rS(b[0],a[0],c,c.type!=k.i.Ja.sc,e)};d.prototype.Pt=function(b,a){return(null!=b||null!=a)&&this.qa instanceof k.local.xO?this.qa.Pt(b[0]):null};d.prototype.sort=function(){this.uY();this.wa.Wa(f.model.cc.fd.lm)};d.prototype.uY=function(){var b=this;if(this.HL){for(var a=[],c=null,e=null,g=0;g<this.Wh.length;g++){var l=this.Wh[g];l.hierarchy=this.wa.I.Vj(l.measure.uniqueName);e=void 0!==l.hierarchy?l.hierarchy.uniqueName:l.measure.uniqueName;
c=void 0!==l.hierarchy?l.hierarchy.D0:!1;if(-1!=this.oK.indexOf(e)){l.We=this.X_(e);if(l.measure.type==k.i.Ja.sc||c)l.vR=this.Fya(l.hierarchy);a.push(l)}}this.Wh=a;a=[];for(c=0;c<this.nq;c++){e=[];for(g=0;g<this.Wh.length;g++)l=this.Wh[g],e[g]=this.Fza(c,l.We,l.measure,l.hierarchy,!f.v(l.vR));a[c]=[e,c]}a.sort(function(m,n){return b.cJa(m[0],n[0])});this.Ut=a.map(function(m){return m[1]})}else this.Ut.length=0};d.prototype.Fya=function(b){var a=!1;b.type==k.i.Gc.Oa&&2<b.ra.length&&(a=!0);if(b.D0||
!a){a={};for(var c=b.uj(b.yd,!1,k.i.xa.bc),e=0;e<c.length;e++){var g=b.va(c[e]);a[g.uniqueName]=e}return a}return null};d.prototype.Fza=function(b,a,c,e,g){if(null!=e&&e.type==k.i.Gc.Oa&&2<e.ra.length)return g=this.Fa([b],a,c,e.ra.length-1),e.va(g).ec;b=this.Fa([b],a,c);if(c.type!=k.i.Ja.sc)return isNaN(b)?Number.NEGATIVE_INFINITY:b;e=e.va(b);return g?e.uniqueName:e.caption};d.prototype.cJa=function(b,a){for(var c=0,e=0;e<this.Wh.length;e++){var g=this.Wh[e];if(b[e]!=a[e]){c=f.v(g.vR)?"number"==typeof b[e]&&
"number"==typeof a[e]?b[e]-a[e]:f.Ha.localeCompare(b[e],a[e]):g.vR[b[e]]-g.vR[a[e]];g.sort==k.i.xa.Ec&&(c*=-1);break}}return c};d.prototype.xv=function(b,a,c,e){return this.qa.Psa(b,c,e)};d.prototype.Yo=function(){return null};d.prototype.Qv=function(){};d.prototype.Gv=function(){};d.prototype.expandAll=function(){};d.prototype.expand=function(){};d.prototype.collapse=function(){};d.prototype.To=function(){};d.prototype.tf=function(){};d.prototype.drillThrough=function(){return[]};d.prototype.save=
function(b,a,c,e){return this.qa.MHa(b,a,c,e)};d.dispose=function(){d.instance&&(d.instance.Od(),d.instance.Yy());d.instance=null};d.prototype.l1=function(){return!1};d.prototype.fV=function(){};d.prototype.V0=function(){return!1};d.prototype.R3=function(){};q.Object.defineProperties(d.prototype,{qa:{configurable:!0,enumerable:!0,get:function(){return null!=this.qJ?this.qJ:this.wa.qa},set:function(b){this.qJ=b}},slice:{configurable:!0,enumerable:!0,get:function(){return null!=this.Lb?this.Lb:this.wa.sa},
set:function(b){this.Lb=b}},measures:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(){}},Tn:{configurable:!0,enumerable:!0,get:function(){return 1<this.ib.length},set:function(){}},mj:{configurable:!0,enumerable:!0,get:function(){return this.slice&&this.EE},set:function(){}},He:{configurable:!0,enumerable:!0,get:function(){return 0},set:function(){}},K3:{configurable:!0,enumerable:!0,get:function(){return 0},set:function(){}},kq:{configurable:!0,enumerable:!0,get:function(){return 0},
set:function(){}},gM:{configurable:!0,enumerable:!0,get:function(){return 0},set:function(){}},rows:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},vb:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},Tm:{configurable:!0,enumerable:!0,get:function(){return[]},set:function(){}},cR:{configurable:!0,enumerable:!0,get:function(){return[]},set:function(){}},columns:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},
Cb:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},pages:{configurable:!0,enumerable:!0,get:function(){return new f.nb},set:function(){}},ic:{configurable:!0,enumerable:!0,get:function(){return new k.I.Mq(k.i.ia.Ia)},set:function(){}},Sb:{configurable:!0,enumerable:!0,get:function(){return new k.I.Mq(k.i.ia.Sa)},set:function(){}},Sm:{configurable:!0,enumerable:!0,get:function(){return 1},set:function(){}},Em:{configurable:!0,enumerable:!0,get:function(){return 0},
set:function(){}},rl:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},Ek:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},cs:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},RS:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},ui:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},wn:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},Hv:{configurable:!0,
enumerable:!0,set:function(){},get:function(){return null}},HL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.Wh)&&0<this.Wh.length},set:function(){}},Wh:{configurable:!0,enumerable:!0,set:function(b){this.slice.flatSort=b},get:function(){return this.slice.flatSort}},ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.sk.length},set:function(){}},Fd:{configurable:!0,enumerable:!0,get:function(){return this.sk.length},set:function(){}},Ed:{configurable:!0,enumerable:!0,get:function(){return this.qa?
this.qa.result[0]:0},set:function(){}},oq:{configurable:!0,enumerable:!0,get:function(){return this.sk.length},set:function(){}},nq:{configurable:!0,enumerable:!0,get:function(){return this.qa.uG()},set:function(){}},DT:{configurable:!0,enumerable:!0,get:function(){return null}},BT:{configurable:!0,enumerable:!0,get:function(){return null}},hl:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}}});h.sW=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.dJ.call(this)||this}u(d,h.dJ);d.U=function(){null==d.ne&&(d.ne=new d,d.ne.SA="chart"+h.dJ.counter);return d.ne};d.dispose=function(){d.ne&&(d.ne.Yy(),d.ne.Od());d.ne=null};q.Object.defineProperties(d.prototype,{hl:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},Jt:{configurable:!0,enumerable:!0,get:function(){return!0}}});h.VH=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=y.Fc.call(this)||this;a.G=b;return a}u(d,y.Fc);d.U=function(b){null==d.instance&&(d.instance=new d(b));return d.instance};d.dispose=function(){d.instance&&(d.instance.Od(),d.instance.Yy());d.instance=null};d.prototype.BQ=function(){this.G.BQ()};d.prototype.Yy=function(){this.G.Yy()};d.prototype.load=function(){this.G.load()};d.prototype.jS=function(){return null};d.prototype.reset=function(){};d.prototype.Z0=function(){return null};d.prototype.yS=
function(b){return this.G.eL(b)};d.prototype.DS=function(b){return this.G.Sv(b)};d.prototype.eL=function(b){return this.G.yS(b)};d.prototype.Sv=function(b){return this.G.DS(b)};d.prototype.AS=function(b){return this.G.AS(b)};d.prototype.zS=function(b){return this.G.zS(b)};d.prototype.hS=function(b){return this.G.hS(b)};d.prototype.iG=function(b){return this.G.iG(b)};d.prototype.Ih=function(b,a){return this.G.Sj(b,a)};d.prototype.Sj=function(b,a){return this.G.Ih(b,a)};d.prototype.Hh=function(b,a,
c){return this.G.Rj(b,a,c)};d.prototype.Rj=function(b,a,c){return this.G.Hh(b,a,c)};d.prototype.UB=function(b){return this.G.eC(b)};d.prototype.eC=function(b){return this.G.UB(b)};d.prototype.Lm=function(b,a){return this.G.nj(b,void 0===a?!1:a)};d.prototype.nj=function(b,a){return this.G.Lm(b,void 0===a?!1:a)};d.prototype.CS=function(b){return this.G.iS(b)};d.prototype.iS=function(b){return this.G.CS(b)};d.prototype.Zh=function(b,a){return this.G.Zh(b,a)};d.prototype.hC=function(b,a,c){return this.G.hC(b,
a,c)};d.prototype.Pt=function(){return null};d.prototype.Fa=function(b,a,c){return this.G.Fa(a,b,c)};d.prototype.sort=function(){return this.G.sort()};d.prototype.xv=function(b,a,c,e){return this.G.xv(b,a,c,e)};d.prototype.Yo=function(b,a,c){return this.G.Yo(b,a,c)};d.prototype.Qv=function(b){this.G.Qv(b)};d.prototype.Gv=function(b){this.G.Gv(b)};d.prototype.expandAll=function(){};d.prototype.expand=function(b,a,c,e){a=a==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.expand(b,a,c,void 0===e?!0:e)};d.prototype.collapse=
function(b,a,c,e){a=a==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.collapse(b,a,c,void 0===e?!0:e)};d.prototype.To=function(b,a,c,e){c=c==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.To(b,a,c,e)};d.prototype.tf=function(b,a,c,e){c=c==k.i.ia.Sa?k.i.ia.Ia:k.i.ia.Sa;this.G.tf(b,a,c,e)};d.prototype.drillThrough=function(b,a,c){return this.G.drillThrough(b,a,c)};d.prototype.save=function(b,a,c,e,g){return this.G.save(b,a,c,e,g)};d.prototype.X_=function(){return null};d.prototype.l1=function(){return!1};d.prototype.fV=
function(){};d.prototype.V0=function(){return!1};d.prototype.R3=function(){};q.Object.defineProperties(d.prototype,{qa:{configurable:!0,enumerable:!0,get:function(){return this.G.qa},set:function(b){this.G.qa=b}},slice:{configurable:!0,enumerable:!0,get:function(){return this.G.slice},set:function(b){this.G.slice=b}},measures:{configurable:!0,enumerable:!0,get:function(){return this.G.measures},set:function(){}},mj:{configurable:!0,enumerable:!0,get:function(){return this.G.mj},set:function(){}},
He:{configurable:!0,enumerable:!0,get:function(){return this.G.He},set:function(){}},K3:{configurable:!0,enumerable:!0,get:function(){return this.G.kq},set:function(){}},Tn:{configurable:!0,enumerable:!0,get:function(){return 1<this.measures.length},set:function(){}},kq:{configurable:!0,enumerable:!0,get:function(){return this.G.K3},set:function(){}},gM:{configurable:!0,enumerable:!0,get:function(){return this.G.gM},set:function(){}},rows:{configurable:!0,enumerable:!0,get:function(){return this.G.columns},
set:function(){}},vb:{configurable:!0,enumerable:!0,get:function(){return this.G.Cb},set:function(){}},Tm:{configurable:!0,enumerable:!0,get:function(){return this.G.cR},set:function(){}},cR:{configurable:!0,enumerable:!0,get:function(){return this.G.Tm},set:function(){}},columns:{configurable:!0,enumerable:!0,get:function(){return this.G.rows},set:function(){}},Cb:{configurable:!0,enumerable:!0,get:function(){return this.G.vb},set:function(){}},pages:{configurable:!0,enumerable:!0,get:function(){return this.G.pages},
set:function(){}},ic:{configurable:!0,enumerable:!0,get:function(){return this.G.Sb},set:function(){}},Sb:{configurable:!0,enumerable:!0,get:function(){return this.G.ic},set:function(){}},Sm:{configurable:!0,enumerable:!0,get:function(){return this.G.Em},set:function(){}},Em:{configurable:!0,enumerable:!0,get:function(){return this.G.Sm},set:function(){}},rl:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.ui}},Ek:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.wn}},
cs:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.Hv}},RS:{configurable:!0,enumerable:!0,get:function(){return this.G.HL},set:function(){}},ui:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.rl}},wn:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.Ek}},Hv:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.G.cs}},HL:{configurable:!0,enumerable:!0,get:function(){return this.G.RS},set:function(){}},
Wh:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null}},ob:{configurable:!0,enumerable:!0,get:function(){return this.G.ob},set:function(){}},Fd:{configurable:!0,enumerable:!0,get:function(){return this.G.Ed},set:function(){}},Ed:{configurable:!0,enumerable:!0,get:function(){return this.G.Fd},set:function(){}},oq:{configurable:!0,enumerable:!0,get:function(){return this.G.nq},set:function(){}},nq:{configurable:!0,enumerable:!0,get:function(){return this.G.oq},set:function(){}},
DT:{configurable:!0,enumerable:!0,get:function(){return null}},BT:{configurable:!0,enumerable:!0,get:function(){return null}},hl:{configurable:!0,enumerable:!0,get:function(){return this.G.hl},set:function(){}}});h.Z7=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){function d(){return h.VH.call(this)||this}u(d,h.VH);h.Jka=d})(k.bf||(k.bf={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){void 0!==b.uniqueName&&(this.uniqueName=b.uniqueName);void 0!==b.caption&&(this.caption=b.caption);void 0!==b.ei&&(this.ei=b.ei);void 0!==b.parent&&(this.parent=b.parent);void 0!==b.ec&&(this.ec=b.ec);void 0!==b.level&&(this.level=b.level);void 0!==b.ordinal&&(this.ordinal=b.ordinal);void 0!==b.ah&&(this.ah=b.ah);void 0!==b.Wb&&(this.Wb=b.Wb);void 0!==b.yf&&(this.yf=b.yf);void 0!==b.value&&(this.value=b.value);void 0!==b.gf&&(this.gf=b.gf)}d.prototype.clone=
function(){return new d(this)};q.Object.defineProperties(d.prototype,{m1:{configurable:!0,enumerable:!0,get:function(){return void 0!==this.parent||void 0!==this.Wb||void 0!==this.gf||void 0!==this.Pg||void 0!==this.yf||void 0!==this.ah?!1:!0}}});h.Rd=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.prototype.BA=function(b){if(this.Ej(b))return this.data[b]};d.prototype.Ws=function(b,a){this.data||(this.data={});this.data[b]=a};d.prototype.eqa=function(){this.data&&delete this.data._descendants_};d.prototype.Ej=function(b){return this.data&&this.data.hasOwnProperty(b)};d.prototype.tb=function(b){for(var a in b)null!=this[a]&&(this[a]=b[a])};h.cJ=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){var c=h.cJ.call(this)||this;c.uniqueName=b;c.caption=a;return c}u(d,h.cJ);d.prototype.toString=function(){return'{uniqueName: "'+this.uniqueName+'", caption: "'+this.caption+'"'};d.prototype.La=function(){var b={};b.uniqueName=this.uniqueName;b.caption=this.caption;return b};q.Object.defineProperties(d.prototype,{uniqueName:{configurable:!0,enumerable:!0,set:function(b){this.KJ=b},get:function(){return this.KJ}},caption:{configurable:!0,enumerable:!0,
set:function(b){f.v(b)&&(b="");b=""+b;""===b.trim()?this.qc=f.model.A.j.Mk:this.qc=b},get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},label:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_label")?this.BA("_label"):this.caption},set:function(b){""!=b.trim()&&this.Ws("_label",b)}},I0:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_label")}}});h.Ip=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a,c){b=h.Ip.call(this,b,a)||this;b.z8=!1;b.FV=c;return b}u(d,h.Ip);q.Object.defineProperties(d.prototype,{FV:{configurable:!0,enumerable:!0,get:function(){return this.ara},set:function(b){this.ara=b}},active:{configurable:!0,enumerable:!0,get:function(){return this.z8},set:function(b){this.z8=b}}});h.PV=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.hg=k.i.Gc.Eu;b.iQ=0;b.Os="";b.HP="";b.br="";b.FA=!0;b.oh=d.aI;b.vQ=null;b.Mf=[];b.Rk=new x.dP(!f.model.B.C.Jx);b.Zu=new x.dP(!f.model.B.C.Jx);b.$s=[];b.cq=[];b.JA=!1;b.nx={};b.vm=new f.nb;b.XX=!1;b.OP=!0;b.cQ=!1;b.dQ=!1;b.oQ=[];b.FP=[];b.tx=[];b.EA={};b.nQ={};b.kj=null;b.cache=[];b.pk=[];b.JE=[];return b}u(d,h.Ip);d.prototype.ph=function(b){b.hierarchy=this;this.FA||b.sb++;this.vm.Pa(b.uniqueName,b);
this.nx[b.uniqueName]=[]};d.prototype.Era=function(b){b.hierarchy=this;this.FA||b.sb++;this.vm.TJ(b.uniqueName,b,1);for(var a=2;a<this.vm.length;a++){var c=this.vm.ea(a);c&&c.sb++}this.nx[b.uniqueName]=[]};d.prototype.Gt=function(b){return this.vm.getItem(b)};d.prototype.$x=function(b){null!=b&&(b.Pg=!0,this.nx[b.level.uniqueName].push(b.ordinal))};d.prototype.q_=function(b){b.Pg=!1;this.nx[b.level.uniqueName].splice(b.ordinal,1);b=b.Wx;for(var a=0;a<b.length;a++){var c=this.va(b[a]);c.Pg&&this.q_(c)}};
d.prototype.JB=function(b){return this.nx[b.uniqueName]};d.prototype.Pra=function(b){var a=void 0===b.ordinal?this.Rk.add(b.uniqueName):this.Rk.add(b.uniqueName,b.ordinal);if(f.v(b.parent))if(f.v(b.ei))var c=this.yd;else c=this.Db(b.ei),null!==c?this.cq[a]=c.ordinal:c=this.yd;else c=b.parent,this.cq[a]=c.ordinal;void 0!==b.ec&&(this.$s[a]=b.ec);void 0!==b.caption&&b.caption!==b.uniqueName&&this.Zu.add(b.caption,a);c.V(a);this.TU(c);this.cache=[];this.pk=[];return a};d.prototype.bC=function(){return new h.Pq(this)};
d.prototype.fc=function(b){if(b.m1){var a=this.Pra(b);return this.va(a)}var c=this.bC();void 0!==b.parent&&(c.parent=b.parent);void 0===b.Wb&&void 0===c.parent&&(c.parent=f.ha(b.ei)?this.yd:this.Db(b.ei));c.parent&&(f.v(c.level)||c.level.sb<=c.parent.level.sb)&&(a=c.parent.level.sb+1,a=new h.$m(c.parent.level.uniqueName+" "+a,this.caption+" "+a,a),this.ph(a),this.$t=!0);void 0!==b.ordinal?(this.Rk.add(b.uniqueName,b.ordinal),c.ordinal=b.ordinal):(a=this.Rk.add(b.uniqueName),c.ordinal=a);void 0!==
b.ec&&(this.$s[c.ordinal]=b.ec,c.ec=b.ec);this.Mf[c.ordinal]=c;void 0!==b.caption&&this.Zu.add(b.caption,c.ordinal);null!=c.parent&&(c.parent.V(c),this.cq[c.ordinal]=c.parent.ordinal,this.TU(c.parent));f.v(b.ah)||(c.ah=b.ah);this.cache=[];this.pk=[];return c};d.prototype.TU=function(b){this.Mf[b.ordinal]=b};d.prototype.vga=function(b){null!=b&&void 0!==b.ordinal&&(void 0!==b.ec&&(this.$s[b.ordinal]=b.ec),void 0!==b.caption&&this.Zu.add(b.caption,b.ordinal),void 0!==b.uniqueName&&this.Rk.add(b.uniqueName,
b.ordinal))};d.prototype.UR=function(b){b=this.Zu.find(b);return-1===b?null:this.va(b)};d.prototype.Db=function(b){b=this.qy(""+b);return-1<b?this.va(b):null};d.prototype.qy=function(b){var a=this.Rk.find(b);-1===a&&this.qg&&(a=this.Rk.find("["+b+"]"));return a};d.prototype.va=function(b){if(void 0===this.Mf[b]){var a=this.bC();a.ordinal=b;a.ec=this.$s[b];a.parent=this.cq[b]?this.va(this.cq[b]):this.yd;return a}return this.Mf[b]};d.prototype.qL=function(b){return this.$s[b]};d.prototype.Ht=function(b){if(f.model.B.C.zr&&
(null===b||"null"===b))return b=this.qy("null"),0<=b?this.va(b):null;"number"!==typeof b&&(b=parseFloat(b));if(isNaN(b))for(var a=1;a<this.$s.length;a++)if(isNaN(this.$s[a]))return this.va(a);b=this.$s.indexOf(b);return 0<=b?this.va(b):null};d.prototype.Fr=function(b){for(var a=[],c,e=0;e<b.length;e++)c=this.va(b[e]),f.v(c)||f.ha(c.Xi)||a.push(c.Xi);return a};d.prototype.o0=function(b){return this.Rk.get(b)};d.prototype.aC=function(b){var a=this.Zu.get(b);void 0===a&&(a=this.Rk.get(b));f.model.Nb.valid(a)||
(a=f.model.Nb.validate(a));return a};d.prototype.jga=function(b){var a=this.type!==k.i.Gc.Oa||this.ra.ea(1).type!==k.i.eb.Oa&&this.ra.ea(1).type!==k.i.eb.Dc?this.ra.ea(1).type===k.i.eb.Yb?this.DHa(b):this.qy(b):this.CHa(b);-1===a&&!f.v(b)&&0<b.indexOf(".")&&(b=b.substring(b.lastIndexOf(".")+1),a=this.qy(b));return a};d.prototype.CHa=function(b){if(f.model.B.C.zr&&"null"===b)b=null;else if(8>b.length||/\D+/.test(b.slice(1))){var a=this.ra.ea(1).type===k.i.eb.Dc?f.model.B.C.Yk:f.model.B.C.mq;a=this.mapping.Fa(this.uniqueName,
"format",a);b=new f.Gg(b,{yx:!1,format:a});b.dj(x.gh.Sf(a));b=b.getTime()}else b=parseInt(b);b=this.Ht(b);return null===b?-1:b.ordinal};d.prototype.DHa=function(b){if(f.model.B.C.zr&&"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"),e=parseInt(c[0]);isNaN(e)||(a+=86400*e);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.Ht(a);return null===b?-1:b.ordinal};d.prototype.rZ=function(){this.Zf=d.aI;this.IJ=null};d.prototype.sZ=function(){this.cache=[]};d.prototype.sort=function(){return this.uj(this.yd)};d.prototype.uj=function(b,a,c){a=void 0===a?!0:a;c=void 0===c?"":c;if(null==b)return[];k.i.xa.Cg(c)||(c=this.oh);if(a){if(null!=this.pk[b.ordinal]){if(null!=this.pk[b.ordinal][c])return this.pk[b.ordinal][c];if(!this.qg){if(c==k.i.xa.Ec&&null!=this.pk[b.ordinal][k.i.xa.bc])return a=
this.pk[b.ordinal][k.i.xa.bc].slice(),this.pk[b.ordinal][k.i.xa.Ec]=a.reverse(),this.pk[b.ordinal][k.i.xa.Ec];if(c==k.i.xa.bc&&null!=this.pk[b.ordinal][k.i.xa.Ec])return a=this.pk[b.ordinal][k.i.xa.Ec].slice(),this.pk[b.ordinal][k.i.xa.bc]=a.reverse(),this.pk[b.ordinal][k.i.xa.bc]}}}else if(null!=this.cache[b.ordinal]){if(null!=this.cache[b.ordinal][c])return this.cache[b.ordinal][c];if(!this.qg){if(c==k.i.xa.Ec&&null!=this.cache[b.ordinal][k.i.xa.bc])return a=this.cache[b.ordinal][k.i.xa.bc].slice(),
this.cache[b.ordinal][k.i.xa.Ec]=a.reverse(),this.cache[b.ordinal][k.i.xa.Ec];if(c==k.i.xa.bc&&null!=this.cache[b.ordinal][k.i.xa.Ec])return a=this.cache[b.ordinal][k.i.xa.Ec].slice(),this.cache[b.ordinal][k.i.xa.bc]=a.reverse(),this.cache[b.ordinal][k.i.xa.bc]}}var e=this.oh;this.oh=c;if(this.oh==k.i.xa.Zc){var g=a?b.Wx:b.children;g=g.slice();0<g.length&&this.va(g[0]).Wb&&g.splice(0,1)}else g=this.nV(b,a);a?(null==this.pk[b.ordinal]&&(this.pk[b.ordinal]=[]),this.pk[b.ordinal][c]=g):(null==this.cache[b.ordinal]&&
(this.cache[b.ordinal]=[]),this.cache[b.ordinal][c]=g);this.oh=e;return g};d.prototype.yqa=function(b){for(var a=[[]],c,e=0;e<b.length;e++)0!==b[e]&&(c=this.cq[b[e]],void 0===c?a[0].push(b[e]):(void 0===a[c]&&(a[c]=[]),a[c].push(b[e])));return a};d.prototype.Vqa=function(b,a){if(f.v(this.IJ)||void 0===this.IJ[b.ordinal]||b.children.length!=this.IJ[b.ordinal].length){var c=this.Rk.sort();this.IJ=this.yqa(c)}b=this.IJ[b.ordinal];c=[];for(var e=0;e<b.length;e++){var g=this.va(b[e]);c.push(g.ordinal);
a&&!g.Bi&&(g=this.uj(g),0<g.length&&(c=c.concat(g)))}return c};d.prototype.hta=function(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.va(b.children[a]).caption.split(" ")[0];if(-1===f.model.A.j.Vq.indexOf(c)&&-1===f.model.A.j.Zw.indexOf(c))return!1}var e=b.hierarchy.ra.indexOf(b.level.uniqueName);if(b.hierarchy.ra.length<e+2)return!1;b.hierarchy.ra.ea(e+1).type=k.i.eb.Hg;return!0}catch(g){}return!1};d.prototype.nV=
function(b,a){var c=this,e=this.ra.ea(b.level.sb+1),g=e&&e.type===k.i.eb.Qk,l=e&&e.type===k.i.eb.xW,m=e&&e.type===k.i.eb.Cs,n=e&&e.type===k.i.eb.Hg,p=e&&e.type===k.i.eb.eJ,t=e&&(e.type===k.i.eb.hm||e.type===k.i.eb.om),r=e&&e.type===k.i.eb.nO,v=e&&e.type===k.i.eb.HO,z=e&&e.type===k.i.eb.fb,B=e&&e.type===k.i.eb.Yb||e&&e.type===k.i.eb.Oa,C=e&&e.type===k.i.eb.Dc,E=this.j4===k.i.xa.Gna;if(!(m||n||p||B||t||r||v||z||C||0!==this.Oo.length||f.pg(this.Ly))){if(1E3<b.children.length)return this.Vqa(b,a);this.hta(b)&&
(n=!0)}var K=this.Mha(b.children);f.pg(this.Ly)?K=this.qha(K):m||n||p||t||r||v||C||l||g?K=this.eJa(K,e?e.type:-1):B?0<this.Oo.length?K.sort(function(J,aa){return c.rva(J,aa)}):K=this.bJa(K):0<this.Oo.length?K.sort(function(J,aa){return c.qva(J,aa)}):z?(this.oh===k.i.xa.bc&&f.Ha.sort(K,f.Ha.mi,function(J){return J.ec}),this.oh===k.i.xa.Ec&&f.Ha.sort(K,f.Ha.ko|f.Ha.mi,function(J){return J.ec})):E?K.sort(this.RCa):(this.oh===k.i.xa.bc&&f.Ha.sort(K,f.Ha.Pw,function(J){return J.caption}),this.oh===k.i.xa.Ec&&
f.Ha.sort(K,f.Ha.ko|f.Ha.Pw,function(J){return J.caption}));e=[];l=K.length;for(m=0;m<l;m++)e.push(K[m].ordinal),a&&!b.Bi&&(g=this.uj(K[m],a),0<g.length&&(e=e.concat(g)));return e};d.prototype.Mha=function(b){for(var a=[],c=0;c<b.length;c++)a.push(this.va(b[c]));return a};d.prototype.eJa=function(b,a){a===k.i.eb.Hg?b=this.dJa(b):a===k.i.eb.hm||a===k.i.eb.om?b=this.fJa(b):a===k.i.eb.Cs||a===k.i.eb.xW||a===k.i.eb.Qk?(this.Zf===k.i.xa.bc&&f.Ha.sort(b,f.Ha.Pw,function(c){return c.caption}),this.Zf===
k.i.xa.Ec&&f.Ha.sort(b,f.Ha.ko|f.Ha.Pw,function(c){return c.caption})):(this.Zf===k.i.xa.bc&&f.Ha.sort(b,f.Ha.mi,function(c){return c.ec}),this.Zf===k.i.xa.Ec&&f.Ha.sort(b,f.Ha.ko|f.Ha.mi,function(c){return c.ec}));return b};d.prototype.dJa=function(b){for(var a=this,c=[],e=[],g=0;g<b.length;++g)this.bqa(b[g].caption)?e.push(b[g]):c.push(b[g]);this.Zf===k.i.xa.bc&&f.Ha.sort(c,f.Ha.Pw,function(l){return l.caption});this.Zf===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.Pw,function(l){return l.caption});e.sort(function(l,
m){return a.Ava(l,m)});return e.concat(c)};d.prototype.fJa=function(b){for(var a=this,c=[],e=[],g=0;g<b.length;++g)this.cqa(b[g].caption)?e.push(b[g]):c.push(b[g]);this.Zf===k.i.xa.bc&&f.Ha.sort(c,f.Ha.Pw|f.Ha.mi,function(l){return l.caption});this.Zf===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.Pw|f.Ha.mi,function(l){return l.caption});e.sort(function(l,m){return a.fKa(l,m)});return e.concat(c)};d.prototype.bqa=function(b){return-1!==f.model.A.j.Vq.indexOf(b)||-1!==f.model.A.j.Zw.indexOf(b)};d.prototype.cqa=
function(b){return-1!==f.model.A.j.oA.indexOf(b)||-1!==f.model.A.j.pA.indexOf(b)};d.prototype.Ava=function(b,a){var c=this.Zf===k.i.xa.bc?f.model.A.j.Vq.indexOf(b.caption):f.model.A.j.Vq.indexOf(a.caption);-1===c&&(c=this.Zf==k.i.xa.bc?f.model.A.j.Zw.indexOf(b.caption):f.model.A.j.Zw.indexOf(a.caption));var e=this.Zf===k.i.xa.bc?f.model.A.j.Vq.indexOf(a.caption):f.model.A.j.Vq.indexOf(b.caption);-1===e&&(e=this.Zf===k.i.xa.bc?f.model.A.j.Zw.indexOf(a.caption):f.model.A.j.Zw.indexOf(b.caption));return c>
e?1:c<e?-1:0};d.prototype.fKa=function(b,a){var c=this.Zf===k.i.xa.bc?f.model.A.j.oA.indexOf(b.caption):f.model.A.j.oA.indexOf(a.caption);-1===c&&(c=this.Zf===k.i.xa.bc?f.model.A.j.pA.indexOf(b.caption):f.model.A.j.pA.indexOf(a.caption));var e=this.Zf===k.i.xa.bc?f.model.A.j.oA.indexOf(a.caption):f.model.A.j.oA.indexOf(b.caption);-1===e&&(e=this.Zf===k.i.xa.bc?f.model.A.j.pA.indexOf(a.caption):f.model.A.j.pA.indexOf(b.caption));return c>e?1:c<e?-1:0};d.prototype.bJa=function(b){this.oh===k.i.xa.bc&&
f.Ha.sort(b,f.Ha.mi,function(a){return a.ec});this.oh===k.i.xa.Ec&&f.Ha.sort(b,f.Ha.mi|f.Ha.ko,function(a){return a.ec});return b};d.prototype.uS=function(b){return f.model.B.C.Jx?this.Oo.indexOf(b):this.Oo.indexOf(b.toLocaleLowerCase())};d.prototype.qva=function(b,a){var c=this.oh===k.i.xa.bc?this.uS(b.caption):this.uS(a.caption);b=this.oh===k.i.xa.bc?this.uS(a.caption):this.uS(b.caption);return c>b?1:c<b?-1:0};d.prototype.rva=function(b,a){var c=this.oh===k.i.xa.bc?this.Oo.indexOf(b.ec.toString()):
this.Oo.indexOf(a.ec.toString());b=this.oh===k.i.xa.bc?this.Oo.indexOf(a.ec.toString()):this.Oo.indexOf(b.ec.toString());return c>b?1:c<b?-1:0};d.prototype.qha=function(b){var a=this;if(f.pg(this.Ly)){var c=this.oh===k.i.xa.Ec?-1:1;b.sort(function(e,g){return a.Ly(e.caption,g.caption)*c})}return b};d.prototype.RCa=function(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};d.prototype.du=function(b){b=this.vm.getItem(b).sb;for(var a=[],c=this.sort(),e=0;e<c.length;e++){var g=this.va(c[e]);g&&g.level.sb===b&&a.push(c[e])}return a};d.prototype.nt=function(){this.filter.clear();this.cb=[]};d.prototype.pB=function(){this.filter.pB();this.cb=[]};d.prototype.Nwa=function(){for(var b=[],a=this.cb,c=0;c<a.length;c++){var e=this.va(a[c]);1===e.level.sb&&b.push(e.ordinal)}return b};d.prototype.Kl=function(b){return void 0===b?"(Total)":b};d.prototype.Iv=
function(){this.u$(this.Gfa);this.filter.Iv()};d.prototype.X$=function(){if(0<this.tx.length){for(var b=0;b<this.tx.length;b++){var a=this.va(parseInt(this.tx[b]));null==a||a.Pg||this.$x(a)}this.tx=[]}};d.prototype.u$=function(b){if(this.groups)for(var a in this.groups)this.oN(a);for(a in b)this.c$(a,b[a])};d.prototype.oN=function(b){var a=this.Db(this.Kl("Others"));if((b="string"==typeof b?this.Db(this.Kl(b)):b)&&a){var c,e=b.children;for(c=0;c<e.length;c++){var g=this.va(e[c]);a.V(g);this.cq[g.ordinal]=
a.ordinal}this.yd.removeChild(b.ordinal);this.Mf[b.ordinal]=null;delete this.EA[b.caption];if(1==this.du(this.kC.uniqueName).length){e=a.children;for(c=0;c<e.length;c++)g=this.va(e[c]),this.yd.V(g),this.cq[g.ordinal]=this.yd.ordinal;this.yd.removeChild(a.ordinal);this.Mf[a.ordinal]=null;this.vm=this.vm.splice(1,1);for(c=1;c<this.vm.length;c++)this.vm.ea(c).sb--}this.cache=[];this.pk=[]}};d.prototype.c$=function(b,a){null!=this.groups[b]&&this.oN(b);if(null==this.kC){var c=new h.$m(this.caption+".groups",
"Groups",1);c.ah=!0;this.Era(c);var e=this.yd.children.slice(0),g=this.fc(new h.Rd({uniqueName:"others",caption:"Others"}));for(c=0;c<e.length;c++){var l=this.va(e[c]);this.yd.removeChild(l.ordinal);g.V(l.ordinal);l.parent=g;this.cq[l.ordinal]=g.ordinal}}else this.ra.ea(1);e=this.fc(new h.Rd({uniqueName:b,ah:!0}));this.EA[b]=[];for(c=0;c<this.Rk.length;c++)g=this.va(c),g.hierarchy=this,!g.Wb&&-1<a.indexOf(g.ordinal)&&(g.ah?this.oN(g):(g.parent&&g.parent.removeChild(g.ordinal),e.V(g),this.EA[b].push(g.ordinal),
this.cq[g.ordinal]=e.ordinal));for(var m in this.groups)this.groups.hasOwnProperty(m)||(g=this.Db(this.Kl(m)))&&0==g.children.length&&this.oN(g);this.$x(e);this.cache=[];this.pk=[]};d.prototype.La=function(){var b={};b.uniqueName=this.uniqueName;b.dimensionName=this.wi.uniqueName;b.activeLevelName=this.ig;b.caption=this.caption;b.filterEnabled=this.F_;b.sortName=this.Zf;b.sortAs=this.j4;b.type=this.type;b.groups=this.groups;b.customSorting=this.Oo;this.filter.$g&&!this.filter.Ida&&(b.filter=this.filter.La());
void 0!==this.Yf&&(b.showTotals=this.Yf);return b};d.prototype.Ji=function(){var b={};b.caption=this.caption;b.dimensionCaption=this.wi.caption;b.dimensionUniqueName=this.wi.uniqueName;b.folder=this.Qc;b.label=this.label;if(2<this.ra.length){b.levels=[];for(var a=1;a<this.ra.length;a++)b.levels.push(this.ra.ea(a).La())}b.sort=this.oh;b.uniqueName=this.uniqueName;return b};d.tb=function(b,a){a=void 0===a?null:a;var c=b.uniqueName;c=k.me.zg(c,b.caption);null==a&&(a=new k.local.I.Yz(c));b.hasOwnProperty("caption")&&
(a.caption=b.caption);b.hasOwnProperty("groups")&&d.$za(b.groups,a);b.hasOwnProperty("sortName")&&(a.Zf=b.sortName);b.hasOwnProperty("sortAs")&&(a.j4=b.sortAs);b.hasOwnProperty("filterEnabled")&&(a.F_=b.filterEnabled);b.hasOwnProperty("type")&&(a.type=b.type);b.hasOwnProperty("origin")&&(a.origin=b.origin);b.hasOwnProperty("folder")&&(a.Qc=b.folder);b.hasOwnProperty("filter")&&(a.filter=f.model.bb.Tz.tb(b.filter,a,!0));b.hasOwnProperty("defaultMemberName")&&(a.xt=b.defaultMemberName);b.hasOwnProperty("allMemberName")&&
(a.tn=b.allMemberName);b.hasOwnProperty("activeLevelName")&&(a.ig=b.activeLevelName);b.hasOwnProperty("predefinedProperties")&&(a.GGa=b.predefinedProperties);b.hasOwnProperty("customSorting")&&d.xaa(b.customSorting,a);b.hasOwnProperty("sortOrder")&&d.xaa(b.sortOrder,a);b.hasOwnProperty("showTotals")&&(a.Yf=!0===b.showTotals);return a};d.$za=function(b,a){var c={},e;for(e in b){var g=b[e];c[e]=[];for(var l=0;l<g.length;l++){var m=k.me.Or(g[l]);(m=a.Db(m))&&c[e].push(m.ordinal)}}a.ce?a.u$(c):a.Gfa=
c};d.xaa=function(b,a){a.Oo=[];for(var c=0;c<b.length;c++)a.Oo.push(k.me.Or(b[c]))};d.prototype.clone=function(){var b=new d(this.uniqueName);b.data=this.data;b.KJ=this.KJ;b.CX=this.CX;b.hg=this.hg;b.iQ=this.iQ;b.Os=this.Os;b.HP=this.HP;b.br=this.br;b.FA=this.FA;b.oh=this.oh;b.vQ=this.vQ;f.v(this.dv)||(b.dv=this.dv.clone());b.Mf=this.Mf.slice();b.Rk=this.Rk.clone();b.Zu=this.Zu.clone();b.$s=this.$s.slice();b.cq=this.cq.slice();var a={},c;for(c in this.nx)a[c]=this.nx[c].slice();b.nx=a;b.vm=this.vm.slice();
b.XX=this.XX;b.OP=this.OP;b.ce=this.ce;b.cQ=this.cQ;b.dQ=this.dQ;b.oQ=this.oQ.slice();b.FP=this.FP.slice();b.tx=this.tx.slice();b.hJ=this.hJ;b.EA=this.EA;b.nQ=this.nQ;b.tY=this.tY;return b};d.prototype.getTimezoneOffset=function(){return null};q.Object.defineProperties(d.prototype,{wi:{configurable:!0,enumerable:!0,set:function(b){this.CX=b},get:function(){return this.CX}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(b){this.hg=b}},origin:{configurable:!0,enumerable:!0,
get:function(){return this.iQ},set:function(b){this.iQ=b;this.XX=1==(b&1)}},Un:{configurable:!0,enumerable:!0,get:function(){return this.Rk.length},set:function(){}},vi:{configurable:!0,enumerable:!0,get:function(){return this.Rk.length}},ce:{configurable:!0,enumerable:!0,get:function(){return this.JA},set:function(b){this.JA=b}},Qc:{configurable:!0,enumerable:!0,get:function(){return this.Os},set:function(b){"undefined"==b?this.Os="":this.Os=b}},Fh:{configurable:!0,enumerable:!0,get:function(){return this.FA},
set:function(){}},mapping:{configurable:!0,enumerable:!0,get:function(){return k.Na.U().fa.mapping}},ra:{configurable:!0,enumerable:!0,get:function(){return this.vm},set:function(){}},Yf:{configurable:!0,enumerable:!0,get:function(){return this.tY},set:function(b){this.tY=b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}},WL:{configurable:!0,enumerable:!0,get:function(){var b=2<this.ra.length&&this.type!==k.i.Gc.Oa?this.ra.ea(1).uniqueName:this.wi.type===
k.i.Lz.Zz?this.wi.uniqueName:this.uniqueName;return f.model.Ta.U().ga.fa.mapping.Fa(b,"filters")}},qg:{configurable:!0,enumerable:!0,get:function(){return this.$t||(this.Fh?2<this.ra.length:1<this.ra.length)},set:function(){}},Qe:{configurable:!0,enumerable:!0,get:function(){return"[Measures]"==this.uniqueName},set:function(){}},$t:{configurable:!0,enumerable:!0,get:function(){return this.cQ},set:function(b){this.cQ=b}},sT:{configurable:!0,enumerable:!0,get:function(){return this.dQ},set:function(b){this.dQ=
b}},F_:{configurable:!0,enumerable:!0,get:function(){return this.OP},set:function(b){this.OP=b}},rwa:{configurable:!0,enumerable:!0,get:function(){for(var b=1;b<this.ra.length;b++){var a=this.ra.ea(b);if(!(this.nc&&a.sb<this.nc.sb)&&0===this.JB(a).length)return b}return 1},set:function(){}},Zf:{configurable:!0,enumerable:!0,get:function(){return this.oh},set:function(b){this.oh=b}},j4:{configurable:!0,enumerable:!0,get:function(){return this.vQ},set:function(b){this.vQ=b}},filter:{configurable:!0,
enumerable:!0,get:function(){f.v(this.dv)&&(this.dv=new f.model.bb.Tz(this));return this.dv},set:function(b){this.dv=b;this.JE=[]}},cb:{configurable:!0,enumerable:!0,get:function(){return 0<this.JE.length?this.JE:this.JE=this.filter.uy||this.filter.$v||this.filter.IL||this.filter.SS?this.filter.Swa():this.filter.pj()},set:function(b){this.JE=b}},tn:{configurable:!0,enumerable:!0,set:function(b){""!==b&&!f.v(b)||this.Qe?this.br=b:(this.br=this.uniqueName+".[(All)]",this.ph(new h.$m(this.uniqueName,
this.caption+" (All)")),this.fc(new h.Rd({uniqueName:this.caption+" (All)",Wb:!0})),this.FA=!1)},get:function(){return this.br}},yd:{configurable:!0,enumerable:!0,get:function(){this.sX||(this.sX=this.Db(this.br),this.$x(this.sX));return this.sX},set:function(){}},xt:{configurable:!0,enumerable:!0,get:function(){return this.HP},set:function(b){this.HP=b}},Gfa:{configurable:!0,enumerable:!0,set:function(b){this.nQ=b},get:function(){return this.nQ}},GGa:{configurable:!0,enumerable:!0,set:function(b){this.oQ=
b},get:function(){return this.oQ}},Oo:{configurable:!0,enumerable:!0,set:function(b){this.sZ();this.FP=b},get:function(){return this.FP}},vw:{configurable:!0,enumerable:!0,set:function(b){this.tx=b},get:function(){return this.tx}},groups:{configurable:!0,enumerable:!0,set:function(b){this.EA=b},get:function(){return this.EA}},kC:{configurable:!0,enumerable:!0,get:function(){for(var b=0;b<this.ra.length;b++)if(this.ra.ea(b).ah)return this.ra.ea(b);return null},set:function(){}},z1:{configurable:!0,
enumerable:!0,get:function(){for(var b=new f.nb,a=0;a<this.vm.length;a++){var c=this.vm.ea(a).gf;b=b.concat(c)}return b},set:function(){}},ig:{configurable:!0,enumerable:!0,set:function(b){this.hJ=b},get:function(){return this.hJ}},nc:{configurable:!0,enumerable:!0,set:function(){},get:function(){return null!=this.hJ?this.Gt(this.hJ):null}},Ly:{configurable:!0,enumerable:!0,get:function(){return this.Hqa},set:function(b){this.sZ();this.Hqa=b}},D0:{configurable:!0,enumerable:!0,get:function(){return f.pg(this.Ly)||
0<this.Oo.length}},pr:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a=0;a<this.vi;a++)b.push(a);return b}}});d.aI="asc";h.nf=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a,c){c=void 0===c?0:c;b=h.Ip.call(this,b,void 0===a?"":a)||this;b.hg=k.i.eb.Sc;b.D9=new f.nb;b.kj=null;b.fY=c;return b}u(d,h.Ip);d.prototype.PY=function(b){this.D9.Pa(b.uniqueName,b)};q.Object.defineProperties(d.prototype,{sb:{configurable:!0,enumerable:!0,set:function(b){this.fY=b},get:function(){return this.fY}},type:{configurable:!0,enumerable:!0,set:function(b){this.hg=b},get:function(){return this.hg}},ah:{configurable:!0,enumerable:!0,set:function(b){this.Aqa=
b},get:function(){return this.Aqa}},cw:{configurable:!0,enumerable:!0,get:function(){return this.xc.ra.length-1==this.fY},set:function(){}},hierarchy:{configurable:!0,enumerable:!0,set:function(b){this.xc=b},get:function(){return this.xc}},gf:{configurable:!0,enumerable:!0,get:function(){return this.D9},set:function(){}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}}});h.$m=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=h.cJ.call(this)||this;a.gY=1;a.u9=0;a.hQ=-1;a.xc=b;return a}u(d,h.cJ);d.prototype.cC=function(){return this.xc.o0(this.ordinal)};d.prototype.pZ=function(){this.Ej("_descendants_")&&this.eqa();this.parent&&this.parent.pZ()};d.prototype.V=function(b){var a=this.children;b.constructor===Number?a.push(b):a.push(b.ordinal);this.Ws("_children_",a);b.constructor!==Number&&(b.parent=this);this.hQ=-1;this.pZ()};d.prototype.removeChild=function(b){var a=
this.children.indexOf(b);-1<a&&this.children.splice(a,1);this.Ws("_children_",this.children);this.hierarchy.va(b).parent=null;this.pZ()};d.prototype.toString=function(){return this.uniqueName+" : "+this.gY};d.prototype.setProperty=function(b,a){this.gf.Pa(b,a)};d.prototype.yza=function(b){return this.gf.getItem(b)};d.prototype.Ws=function(b,a){h.cJ.prototype.Ws.call(this,b,a);this.m1||f.v(this.hierarchy)||this.hierarchy.TU(this)};d.prototype.La=function(){var b={};b.uniqueName=this.uniqueName;b.caption=
this.caption;b.dimensionName=this.hierarchy.wi.uniqueName;b.hierarchyName=this.hierarchy.uniqueName;b.hierarchyCaption=this.hierarchy.caption;this.parent&&(b.parentMember=this.parent.uniqueName);0<this.gf.length&&(b.properties=this.gf.La());return b};d.prototype.VF=function(b){return f.v(b)?!1:f.model.B.C.Jx?this.uniqueName==b:this.uniqueName.toLocaleLowerCase()==b.toLocaleLowerCase()};q.Object.defineProperties(d.prototype,{ordinal:{configurable:!0,enumerable:!0,get:function(){return this.gY},set:function(b){this.gY=
b}},ec:{configurable:!0,enumerable:!0,get:function(){return this.u9},set:function(b){this.u9=b}},hierarchy:{configurable:!0,enumerable:!0,get:function(){return this.xc},set:function(){}},parent:{configurable:!0,enumerable:!0,get:function(){return this.Rqa},set:function(b){this.Rqa=b}},root:{configurable:!0,enumerable:!0,get:function(){if(2>this.level.sb)return this;var b=this;do b=b.parent;while(1<b.level.sb);return b},set:function(){}},caption:{configurable:!0,enumerable:!0,set:function(){},get:function(){var b=
this.xc.aC(this.ordinal);if(this.level.type===k.i.eb.Oa||this.level.type===k.i.eb.gj||this.level.type===k.i.eb.Dc||this.level.type===k.i.eb.Yb){var a=this.xc.qL(this.ordinal);f.v(a)?b=f.model.A.j.XV:this.level.type===k.i.eb.Oa||this.level.type===k.i.eb.gj?(b=this.hierarchy.Yk||this.hierarchy.mapping.Fa(this.hierarchy.uniqueName,"format",f.model.B.C.mq),b=f.O.Gw(a,b,f.model.B.C.Mj)):this.level.type===k.i.eb.Dc?(b=this.hierarchy.Yk||this.hierarchy.mapping.Fa(this.hierarchy.uniqueName,"format",f.model.B.C.Yk),
b=f.O.jN(a,b,f.model.B.C.Mj)):this.level.type===k.i.eb.Yb&&(b=this.hierarchy.Yk||this.hierarchy.mapping.Fa(this.hierarchy.uniqueName,"format",f.model.B.C.Cp),b=f.O.Hw(a,b))}return b}},uniqueName:{configurable:!0,enumerable:!0,get:function(){return this.cC()},set:function(){}},Xi:{configurable:!0,enumerable:!0,get:function(){var b=this.xc.qg?2>this.level.sb?"["+this.cC()+"]":this.cC():"["+this.cC()+"]";return f.model.B.C.Jx?this.hierarchy.uniqueName+"."+b:(this.hierarchy.uniqueName+"."+b).toLocaleLowerCase()}},
level:{configurable:!0,enumerable:!0,get:function(){return f.v(this.parent)?this.hierarchy.ra.ea(0):this.hierarchy.ra.ea(this.parent.level.sb+1)},set:function(){}},Wb:{configurable:!0,enumerable:!0,get:function(){return null!=this.hierarchy.yd&&this.hierarchy.yd.ordinal==this.ordinal},set:function(){}},Pg:{configurable:!0,enumerable:!0,set:function(b){this.Ws("_isDrilledDown_",b)},get:function(){return this.Ej("_isDrilledDown_")?this.BA("_isDrilledDown_"):!1}},ah:{configurable:!0,enumerable:!0,set:function(b){this.Ws("_isGroup_",
b)},get:function(){return this.Ej("_isGroup_")?this.BA("_isGroup_"):!1}},children:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_children_")?this.BA("_children_"):[]},set:function(){}},Wx:{configurable:!0,enumerable:!0,set:function(){},get:function(){if(this.Ej("_descendants_"))return this.BA("_descendants_");var b=[];b.push(this.ordinal);if(0==this.V1)return b;for(var a=this.children.length,c,e=0;e<a;e++)c=this.hierarchy.va(this.children[e]),c.Bi?b.push(c.ordinal):0<c.V1?b=b.concat(c.Wx):
b.push(c.ordinal);0<b.length&&this.Ws("_descendants_",b);return b}},V1:{configurable:!0,enumerable:!0,set:function(){},get:function(){if(-1<this.hQ)return this.hQ;if(!this.Ej("_children_"))return this.hQ=0;for(var b=this.children.length,a=b,c=0;c<b;c++){var e=this.hierarchy.va(this.children[c]);a+=e.V1}return a}},gf:{configurable:!0,enumerable:!0,set:function(b){this.Ws("_properties_",b)},get:function(){this.Ej("_properties_")||(this.gf=new f.nb);return this.BA("_properties_")}},Bi:{configurable:!0,
enumerable:!0,get:function(){return!this.Ej("_children_")||0==this.children.length},set:function(){}},yf:{configurable:!0,enumerable:!0,get:function(){return this.Ej("_hasMissingChildren_")?this.BA("_hasMissingChildren_"):!1},set:function(b){this.Ws("_hasMissingChildren_",b)}},Yra:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.hierarchy.$t?this.uniqueName:this.uniqueName+".[(Total"+(0==this.ordinal?"":this.ordinal)+")]"}},m1:{configurable:!0,enumerable:!0,get:function(){if(this.Ej("_children_")||
this.Ej("_descendants_")||this.Ej("_caption_")||this.Ej("_isDrilledDown_")||this.Ej("_hasMissingChildren_")||this.Ej("_properties_")||this.Ej("_isGroup_"))return!1}}});h.Pq=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.VP="";b.Os="";b.Zb="";b.hg=k.i.Ja.fb;b.fv="";b.zE="";b.Cj="";b.Fb=[];b.RP="";b.XP=!1;b.WP=!1;b.PE="";b.i9=-1;b.aQ=!1;b.bQ=!1;b.uP=!0;b.kv=null;b.kj=null;b.qm=[];return b}u(d,h.Ip);d.h0=function(b,a){switch(b){case k.i.ca.Up:return f.O.bind(f.model.A.j.Noa,a);case k.i.ca.sc:return f.O.bind(f.model.A.j.Ija,a);case k.i.ca.Bs:return f.O.bind(f.model.A.j.doa,a);case k.i.ca.hj:return f.O.bind(f.model.A.j.hka,
a);case k.i.ca.Hp:return f.O.bind(f.model.A.j.Mia,a);case k.i.ca.Mu:return f.O.bind(f.model.A.j.Sma,a);case k.i.ca.Su:return f.O.bind(f.model.A.j.Joa,a);case k.i.ca.Tu:return f.O.bind(f.model.A.j.Loa,a);case k.i.ca.MAX:return f.O.bind(f.model.A.j.xma,a);case k.i.ca.MIN:return f.O.bind(f.model.A.j.tna,a);case k.i.ca.Wq:return f.O.bind(f.model.A.j.Wna,a);case k.i.ca.ro:return f.O.bind(f.model.A.j.Rna,a);case k.i.ca.Tp:return f.O.bind(f.model.A.j.boa,a);case k.i.ca.Rp:return f.O.bind(f.model.A.j.Yna,
a);case k.i.ca.Sp:return f.O.bind(f.model.A.j.$na,a);case k.i.ca.li:return f.O.bind(f.model.A.j.Wla,a);case k.i.ca.nm:return f.O.bind(f.model.A.j.qoa,a);case k.i.ca.ln:return f.O.bind(f.model.A.j.soa,a);case k.i.ca.dn:return f.O.bind(f.model.A.j.dka,a);case k.i.ca.im:return f.O.bind(f.model.A.j.fka,a);case k.i.ca.jn:return f.O.bind(f.model.A.j.Tna,a);case k.i.ca.km:return f.O.bind(f.model.A.j.Vna,a)}return a};d.prototype.OU=function(){this.fv=void 0;this.Cj=this.Tc[0]};d.prototype.La=function(){var b=
{};b.uniqueName=this.uniqueName;b.name=this.Yl;this.Ka&&(b.formula=this.qe.trim());b.format=this.format;b.individual=this.gl;b.supportedAggregations=this.bm;b.availableAggregations=this.Tc;b.aggregation=this.$;b.caption=this.caption;b.label=this.label;b.originalCaption=this.Yl;b.grandTotalCaption=this.Ir;b.groupName=this.yg;b.folder=this.Qc;b.type=this.type;b.kpi=this.Lr;b.calculated=this.Ka;b.calculateNaN=this.Eo;b.hidden=this.hidden;return b};d.prototype.F0=function(){var b=new d("","");return this.gl!==
b.gl||this.qe!==b.qe||this.format!==b.format||!1===this.Nm||""!==this.$&&(this.Ir!==d.h0(this.$,this.qc)&&f.model.B.C.iz||!f.model.B.C.iz&&this.Ir!==this.caption)?!1:!0};d.prototype.Dh=function(b,a,c){c=void 0===c?!1:c;var e=f.model.Zb.Ni.Dh(b,a);f.model.Zb.Ni.kxa(b,a)||(e=f.model.Zb.Ni.Dh(b,""));c&&f.v(e.Sd.textAlign)&&this.type!=k.i.Ja.fb&&this.type!=k.i.Ja.Yb&&this.type!=k.i.Ja.Dc&&(e=e.clone(),e.textAlign=f.model.Zb.W.pf.textAlign.LEFT);return e};d.prototype.clone=function(){var b=new d(this.uniqueName);
this.xK(b);return b};d.prototype.xK=function(b){b.data=this.data;b.qc=this.qc;b.VP=this.VP;b.Os=this.Os;b.Zb=this.Zb;b.hg=this.hg;void 0!=this.fv&&(b.fv=this.fv);b.Cj=this.Cj;b.qm=this.qm.slice();b.Fb=this.Fb.slice();b.RP=this.RP;b.XP=this.XP;b.WP=this.WP;b.PE=this.PE;b.aQ=this.aQ;b.bQ=this.bQ;b.uP=this.uP;b.kj=this.kj};d.prototype.dw=function(){return 0<this.Tc.length||this.Ka||this.Bg};d.prototype.Ji=function(){var b={};b.aggregation=this.$;b.availableAggregations=this.Tc;b.availableAggregationsCaptions=
k.i.ca.UY(this.Tc);b.caption=this.caption;if(b.calculated=this.Ka)b.calculateNaN=this.Eo,b.formula=this.qe.trim(),b.individual=this.gl;b.folder=this.Qc;b.format=this.format;b.grandTotalCaption=this.Ir;b.label=this.label;b.name=this.Yl;b.uniqueName=this.uniqueName;b.groupName=this.yg;return b};q.Object.defineProperties(d.prototype,{Yl:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(){}},yg:{configurable:!0,enumerable:!0,get:function(){return this.VP},set:function(b){this.VP=
b}},Qc:{configurable:!0,enumerable:!0,get:function(){return this.Os},set:function(b){this.Os=b}},mapping:{configurable:!0,enumerable:!0,get:function(){return k.Na.U().fa.mapping}},format:{configurable:!0,enumerable:!0,get:function(){return this.Dh(this.uniqueName,this.$).name},set:function(b){this.Zb=b}},gl:{configurable:!0,enumerable:!0,get:function(){return this.XP},set:function(b){this.XP=b}},hidden:{configurable:!0,enumerable:!0,get:function(){return this.WP},set:function(b){this.WP=b}},index:{configurable:!0,
enumerable:!0,get:function(){return this.i9},set:function(b){this.i9=b}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(b){this.hg=b}},Nm:{configurable:!0,enumerable:!0,get:function(){return this.kv},set:function(b){this.kv=b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}},bm:{configurable:!0,enumerable:!0,get:function(){if(this.Ka||this.Bg)return[];var b=this.mapping.Ao;if(f.v(b))return this.hg!=k.i.Ja.fb&&this.hg!=
k.i.Ja.Yb?this.hg==k.i.Ja.Oa||this.hg==k.i.Ja.Dc?k.i.ca.Iia:k.i.ca.Lia:k.i.ca.MH;var a=k.i.Ja.wD(this.hg);return void 0!==b[a]?b[a]:void 0!==b.any?b.any:Array.isArray(b)?b:k.i.ca.MH},set:function(){}},Ir:{configurable:!0,enumerable:!0,set:function(b){this.fv=b},get:function(){return this.fv?this.fv:0==f.model.B.C.iz?this.qc:k.i.ca.NONE===this.Cj?this.qc:d.h0(this.$,this.qc)}},Ll:{configurable:!0,enumerable:!0,get:function(){if(""==this.zE)if(k.i.ca.YS(this.$))this.zE=this.$;else if(-1!=this.Tc.indexOf(k.i.ca.Up))this.zE=
k.i.ca.Up;else for(var b=0;b<this.Tc.length;b++)if(k.i.ca.YS(this.Tc[b])){this.zE=this.Tc[b];break}return this.zE}},$:{configurable:!0,enumerable:!0,get:function(){return""===this.Cj?this.Tc[0]:this.Cj},set:function(b){b&&b.toLowerCase()!==this.Cj?(b=b.toLowerCase(),k.i.ca.Vx(b)&&(b=k.i.ca.ky(b)),k.i.ca.rz(b)||this.Ka&&b==k.i.ca.NONE?(this.zE="",this.Cj=b,this.Ka||-1!=this.Tc.indexOf(b)||(this.Cj=this.Tc[0])):this.OU()):""==b&&this.OU()}},Tc:{configurable:!0,enumerable:!0,set:function(b){if(f.v(b))this.qm=
this.bm;else{for(var a=[],c=0;c<b.length;c++){var e=b[c].trim().toLowerCase();k.i.ca.Vx(e)&&(e=k.i.ca.ky(e));-1!==this.bm.indexOf(e)&&a.push(e)}this.qm=0<a.length?a:this.bm}},get:function(){return 0<this.qm.length?this.qm:this.bm}},Sd:{configurable:!0,enumerable:!0,get:function(){return this.Fb},set:function(b){this.Fb=b}},Ka:{configurable:!0,enumerable:!0,get:function(){return!f.ha(this.qe)},set:function(){}},qe:{configurable:!0,enumerable:!0,get:function(){return this.RP},set:function(b){this.RP=
b}},Lr:{configurable:!0,enumerable:!0,get:function(){return this.PE},set:function(b){this.PE=b}},Bg:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.PE)&&""!=this.PE}},xC:{configurable:!0,enumerable:!0,get:function(){return this.aQ},set:function(b){this.aQ=b}},yC:{configurable:!0,enumerable:!0,get:function(){return this.bQ},set:function(b){this.bQ=b}},Eo:{configurable:!0,enumerable:!0,get:function(){return this.uP},set:function(b){this.uP=b}}});h.ek=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||
(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.kj=null;return b}u(d,h.Ip);q.Object.defineProperties(d.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.MJ},set:function(b){this.MJ=b}},status:{configurable:!0,enumerable:!0,get:function(){return this.Wqa},set:function(b){this.Wqa=b}},ty:{configurable:!0,enumerable:!0,get:function(){return this.xqa},set:function(b){this.xqa=b}},oz:{configurable:!0,enumerable:!0,get:function(){return this.Yqa},set:function(b){this.Yqa=
b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}}});h.o5=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b,a){b=h.Ip.call(this,b,void 0===a?"":a)||this;b.kj=null;b.Ma=new f.nb;return b}u(d,h.Ip);d.prototype.Uh=function(b){b.wi=this;this.qb.Pa(b.uniqueName,b)};d.prototype.Mg=function(b){return this.qb.getItem(b)};d.tb=function(b,a){a=void 0===a?null:a;var c=b.uniqueName;c=k.me.zg(c,b.caption);null==a&&(a=new k.local.I.h7(c));f.ha(b.caption)?a.caption=b.uniqueName:a.caption=b.caption;return a};q.Object.defineProperties(d.prototype,{Ma:{configurable:!0,
enumerable:!0,set:function(b){this.qb=b},get:function(){return this.qb}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(b){this.hg=b}},CG:{configurable:!0,enumerable:!0,set:function(b){this.f9=b},get:function(){return this.f9?this.f9:[]}},Wc:{configurable:!0,enumerable:!0,get:function(){return this.I},set:function(b){this.I=b}},description:{configurable:!0,enumerable:!0,get:function(){return this.kj},set:function(b){this.kj=b}}});h.Oq=d})(k.I||(k.I={}))})(f.u||(f.u=
{}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.o9=this.JA=!1;this.O8=new f.nb;this.ib=new f.nb;this.$X=new f.nb;this.cG=new h.OD}d.prototype.NY=function(){var b=new h.nf("[Measures]","Measures"),a=new h.Oq("[Measures]","Measures");a.type=k.i.Lz.AO;a.Uh(b);this.dt(a);return a};d.prototype.dt=function(b){null==this.Vo(b.uniqueName)&&(b.Wc=this,this.Xx.Pa(b.uniqueName,b))};d.prototype.Vo=function(b){return this.Xx.getItem(b)};d.prototype.rc=function(b){b=void 0===b?!1:b;for(var a=new f.nb,
c=0;c<this.Xx.length;c++){var e=this.Xx.ea(c);if(b||e.type!=k.i.Lz.AO)a=a.concat(e.Ma)}return a};d.prototype.Mg=function(b){for(var a=0;a<this.Xx.length;a++){var c=this.Xx.ea(a);if(c.Ma.Bb(b))return c.Ma.getItem(b)}};d.prototype.Hj=function(b){this.measures.Pa(b.uniqueName,b)};d.prototype.$c=function(b){return this.measures.getItem(b)};d.prototype.aD=function(b){this.measures.removeItem(b)};d.prototype.clear=function(){this.O8=new f.nb;this.ib=new f.nb;this.$X=new f.nb;this.ce=!1};d.prototype.Vj=
function(){return null};d.prototype.Ee=function(){return null};d.prototype.UJ=function(){};d.prototype.LY=function(b,a){this.$X.Pa(b.uniqueName,b);if(0==f.ha(b.value)){var c=new h.ek(b.value,this.py(b.value,b.caption,f.model.A.j.a7,a));c.yg=f.model.A.j.Ww;c.Qc=b.caption;c.type=k.i.Ja.fb;c.Lr=b.uniqueName;this.Hj(c)}0==f.ha(b.ty)&&(c=new h.ek(b.ty,this.py(b.ty,b.caption,f.model.A.j.W6,a)),c.yg=f.model.A.j.Ww,c.Qc=b.caption,c.type=k.i.Ja.fb,c.Lr=b.uniqueName,this.Hj(c));0==f.ha(b.status)&&(c=new h.ek(b.status,
this.py(b.status,b.caption,f.model.A.j.Y6,a)),c.yg=f.model.A.j.Ww,c.Qc=b.caption,c.type=k.i.Ja.fb,c.Lr=b.uniqueName,c.xC=!0,this.Hj(c));0==f.ha(b.oz)&&(a=new h.ek(b.oz,this.py(b.oz,b.caption,f.model.A.j.Z6,a)),a.yg=f.model.A.j.Ww,a.Qc=b.caption,a.type=k.i.Ja.fb,a.Lr=b.uniqueName,a.yC=!0,this.Hj(a))};d.prototype.py=function(b,a,c,e){e=e.Fa(b,"caption");return f.v(e)?0==b.indexOf("[Measures]")?b.substring(12,b.length-1):a+" "+c:e};d.prototype.nw=function(b,a,c){a=void 0===a?null:a;c=void 0===c?!1:c;
c=f.v(a)||c;var e=b.uniqueName;f.ha(b.formula)&&(e=k.me.zg(e,b.caption));f.v(a)&&(a=new k.local.I.i7(e));b.hasOwnProperty("type")&&(a.type="string"===typeof b.type?k.i.Ja.uxa(parseInt(b.type)):b.type);if(c||a.Ka)b.hasOwnProperty("formula")&&(a.qe=b.formula),b.hasOwnProperty("individual")&&(a.gl=b.individual),b.hasOwnProperty("calculateNaN")&&(a.Eo=b.calculateNaN);b.hasOwnProperty("supportedAggregations")&&(a.bm=b.supportedAggregations);b.hasOwnProperty("availableAggregations")&&(a.Tc=b.availableAggregations);
if(b.hasOwnProperty("aggregation")){if(b.aggregation!==k.i.ca.NONE||k.Na.U().fa.Hc||a.Ka)a.$=b.aggregation}else a.$=a.Ka?k.i.ca.NONE:"";b.hasOwnProperty("format")&&(a.format=b.format,f.model.Zb.Ni.lH(b.format,a.uniqueName,a.$));b.hasOwnProperty("caption")&&(a.caption=b.caption);b.hasOwnProperty("name")&&(a.caption=b.name);b.hasOwnProperty("grandTotalCaption")&&(a.Ir=b.grandTotalCaption);b.hasOwnProperty("groupName")&&(a.yg=b.groupName);b.hasOwnProperty("folder")&&(a.Qc=b.folder);b.hasOwnProperty("active")?
a.Nm=b.active:b.hasOwnProperty("uniqueName")&&b.hasOwnProperty("caption")&&b.uniqueName!=b.caption&&!b.hasOwnProperty("formula")&&(a.Nm=!1);a.Ka&&(!b.hasOwnProperty("caption")&&c&&(a.caption=a.uniqueName),b=new x.BI,a.Sd=b.parse(a.qe));return a};d.prototype.xIa=function(b){this.mapping=b};q.Object.defineProperties(d.prototype,{ce:{configurable:!0,enumerable:!0,get:function(){return this.JA},set:function(b){this.JA=b}},ew:{configurable:!0,enumerable:!0,get:function(){return this.o9},set:function(b){this.o9=
b}},ob:{configurable:!0,enumerable:!0,get:function(){return 0<this.Xx.length-(this.Xx.Bb("[Measures]")?1:0)||0<this.measures.length||0<this.fea.length?!1:!0}},Xx:{configurable:!0,enumerable:!0,get:function(){return this.O8},set:function(){}},measures:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(){}},mt:{configurable:!0,enumerable:!0,set:function(){},get:function(){for(var b=new f.nb,a=0;a<this.ib.length;a++){var c=this.ib.ea(a);c.Ka&&b.Pa(c.uniqueName,c)}return b}},pu:{configurable:!0,
enumerable:!0,set:function(){},get:function(){for(var b=[],a=0;a<this.ib.length;a++){var c=this.ib.ea(a);c.Ka||b.push(c)}return b}},VT:{configurable:!0,enumerable:!0,set:function(){},get:function(){var b=this.Vo("[Measures]");null==b&&(b=this.NY());return b.Mg("[Measures]")}},fea:{configurable:!0,enumerable:!0,get:function(){return this.$X},set:function(){}}});h.rs=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.Qza=function(b){switch(b){case k.i.oa.Nc:case k.i.oa.Zd:return new k.external.yb.I.Ona;case k.i.oa.Gf:return new k.external.De.I.Eka;case k.i.oa.API:return new k.external.kc.I.OH}return new k.local.I.fE};h.Woa=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.qb=new f.nb;this.Gq=k.i.xa.Zc;this.Xs=this.qP=null;this.tJ=[];this.NP=[];this.LP=[];this.xA=[];this.vY=k.i.xa.Zc;this.SA=b}d.prototype.wfa=function(b){for(var a=[],c,e,g,l,m,n,p=0;p<b.length;p++){c=b[p].slice(0);e=[];l=-1;g=c.shift();g="string"==typeof g?new f.model.bb.Ig(g):f.model.bb.Ig.tb(g);m=0;if(0<this.Ma.length)for(var t=0;t<c.length;t++){n=this.Ma.ea(m);if(f.v(n))return[];if(!n.ce&&!n.Qe)return this.NP=b.slice(0),[];n.Qe&&(l=(l=this.Zh(g))?
l.index:-1,m++,n=this.Ma.ea(m));if(n)if(n=n.jga(c[t]),0>n){e=null;break}else e.push(n);m++}null!==e&&(e.unshift(l),a.push(e))}return a};d.prototype.e3=function(){0<this.NP.length&&(this.zd=this.wfa(this.NP),this.NP=[]);0<this.LP.length&&(this.uf=this.vfa(this.LP),this.LP=[])};d.prototype.l4=function(b){b.sort(function(a,c){if(a.length!==c.length)return 0;var e=a.length-1;a=a[e];c=c[e];return-1===a?1:-1===c||a<c?-1:a>c?1:0})};d.prototype.Wga=function(b){var a=this.qb.slice();a.removeItem("[Measures]");
for(var c,e=0;e<b.length;e++){var g=b[e].slice(0);"string"===typeof g[0]&&(c=g.shift());var l=a.ea(g.length-3);if(null==l)break;var m=g[1];if("string"===typeof g[1]){var n=l.Db(m);!n&&!isNaN(parseInt(g[1]))&&8>g[1].length&&(m=parseInt(g[1]))}"number"===typeof m&&(n=l.va(m),null==n||n.Wb||(m=n.uniqueName));-1==l.vw.indexOf(m)&&l.vw.push([c,m])}};d.prototype.vfa=function(b){for(var a=[],c,e,g,l,m,n,p,t,r=0;r<b.length;r++){c=b[r].slice(0);e=[];l=-1;g=c.shift();n=c.shift();m="string"==typeof n?new f.model.bb.Ig(n):
f.model.bb.Ig.tb(n);n=c.shift();p=0;if(0<this.Ma.length)for(var v=0;v<c.length;v++){t=this.Ma.ea(p);if(f.v(t))return[];t.Qe&&(l=(l=this.Zh(m))?l.index:-1,p++,t=this.Ma.ea(p));if(!t.ce&&!t.Qe)return this.LP=b.slice(0),this.Wga(b),[];if(t){if(t.type!==k.i.Gc.Oa||t.ra.ea(1).type!==k.i.eb.Oa&&t.ra.ea(1).type!==k.i.eb.Dc)t=t.Db(c[v]);else{if(f.model.B.C.zr&&"null"===c[v])var z=null;else if(8>c[v].length||/\D+/.test(c[v].slice(1))){z=t.ra.ea(1).type===k.i.eb.Dc?f.model.B.C.Yk:f.model.B.C.mq;z=t.mapping.Fa(t.uniqueName,
"format",z);var B=new f.Gg(c[v],{yx:!1,format:z});B.dj(x.gh.Sf(z));z=B.getTime()}else z=parseInt(c[v]);t=t.Ht(z)}t?e.push(t.ordinal):e.push(-1)}p++}if((t=this.Ma.ea(c.length-1))&&t.ce&&null!==t.nc&&null==t.Db(n))for(c=n.slice(1,-1).split("].[");1<c.length;){c.pop();var C=1<c.length?"["+c.join("].[")+"]":c[0];null==b.find(function(E){return E[e.length+2]===C})&&(m=e.slice(0,-1),p=t.Db(C),null!=p&&(m.push(p.ordinal),m.unshift(C),m.unshift(l),""!=g&&m.unshift(g),a.push(m)))}e.unshift(n);e.unshift(l);
""!=g&&e.unshift(g);a.push(e)}return a};d.prototype.toString=function(){return"[Axis:"+this.SA+" ]"};d.iCa=function(b,a,c){"[Measures]"!==b.uniqueName&&(c=c.measures.getItem(b.uniqueName),void 0===c||c.qc===b.caption&&!a.hasOwnProperty("caption")||(c.qc!==b.caption?a.caption=c.qc:a.hasOwnProperty("caption")&&a.caption!==c.qc&&(c.qc=a.caption)))};d.tb=function(b,a,c,e,g,l,m,n){m=void 0===m?null:m;n=void 0===n?!1:n;b=new d(b);m&&(b.Zh=function(z){return m(z)});b.Ma=new f.nb;if(a)for(var p=0;p<a.length;p++)if(null!=
a[p].uniqueName){a[p].uniqueName=k.me.zg(a[p].uniqueName,a[p].caption);var t=l.Mg(a[p].uniqueName);if(null!=t&&(n&&(t=t.clone(),t.sZ(),t.filter.clear()),this.iCa(t,a[p],l),h.nf.tb(a[p],t),!t.Qe||b.uniqueName!==k.i.ia.As)){var r=f.v(a[p].levelName)?f.v(a[p].activeLevelName)?null:a[p].activeLevelName:a[p].levelName;t.ig=r;b.Ma.Pa(t.uniqueName,t)}}if(c){if(null!=c.measure){a="string"===typeof c.measure?new f.model.bb.Ig(k.me.zg(c.measure)):f.model.bb.Ig.tb(c.measure);var v=b.Zh(a)}null!=v&&null!=c.tuple?
b.oD(v,c.tuple,c.type):b.CNa=c}if(e&&0<e.length){c=[];for(a=0;a<e.length;a++){l=e[a];n=[];0<l.length&&n.push(d.fda(l[0]));for(v=1;v<l.length;v++)n.push(d.Gea(l[v]));c.push(n)}e=c}b.zd=e?b.wfa(e):[];if(g&&0<g.length){e=[];for(c=0;c<g.length;c++){a=g[c];l=[];0<a.length&&l.push(d.fda(a[0]));for(n=1;n<a.length;n++)l.push(d.Gea(a[n]));e.push(l)}g=e}b.uf=g?b.vfa(g):[];return b};d.fda=function(b){if("string"===typeof b){var a=parseInt(b);if(isNaN(a)||a.toString()!==b)return k.me.zg(b)}return b};d.Gea=function(b){if("string"===
typeof b){var a=parseInt(b);if(isNaN(a)||a.toString()!==b)return k.me.Or(b)}return b};d.prototype.La=function(){for(var b={},a=[],c=0;c<this.Ma.length;c++){var e=this.Ma.ea(c).La();a.push(e)}b.hierarchies=a;this.$f==k.i.xa.Zc||f.v(this.Vm)||f.v(this.Ff)||(b.sort={type:this.$f,tuple:this.m4,measure:{uniqueName:this.Ff.uniqueName,aggregation:this.Ff.$}});return b};d.prototype.oD=function(b,a,c){this.Ff=b;this.Vm=a;this.$f=c;0==a.length&&(this.Gq=this.$f,this.ks=this.Ff)};d.prototype.rB=function(){this.Vm=
this.Ff=null;this.Gq=this.$f=k.i.xa.Zc;this.ks=null};d.prototype.clone=function(){var b=new d(this.SA);b.caption=this.caption;b.Ma=this.Ma.slice(0);b.ks=this.ks;b.Gq=this.Gq;b.Ff=this.Ff;b.Vm=this.Vm;b.$f=this.$f;b.zd=this.hq(this.zd);b.uf=this.hq(this.uf);return b};d.prototype.hq=function(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a};q.Object.defineProperties(d.prototype,{Vm:{configurable:!0,enumerable:!0,set:function(b){this.Xs=b;this.qP=null},get:function(){if(null!=this.qP)return this.qP;
var b=null;if(null!=this.Xs){var a=0;b=[];for(var c=0;c<this.qb.length;c++){var e=this.Ma.ea(c);if(!e.Qe){if(!this.Xs[a])break;if("number"==typeof this.Xs[a]){b=this.Xs;break}else{var g=this.Xs[a].toString().trim();if(!/\D/.test(g)){b=this.Xs;break}}e=e.Db(k.me.Or(this.Xs[a].toString().trim()));if(null!=e)b.push(e.ordinal);else if(this.Xs[a]){b=null;break}a++}}}return this.qP=b}},m4:{configurable:!0,enumerable:!0,set:function(b){this.Vm=b},get:function(){var b=null,a=this.Vm;if(null!=a){var c=0;b=
[];for(var e=0;e<this.qb.length;e++){var g=this.Ma.ea(e);if(!g.Qe){if(!a[c])break;g=g.va(""===a[c]?0:parseInt(a[c]));if(null!=g)b.push(g.Xi);else if(a[c]){b=null;break}c++}}}return b}},zd:{configurable:!0,enumerable:!0,get:function(){return this.tJ},set:function(b){if(null==b)this.tJ=[];else if(this.Ra)this.tJ=b;else{this.tJ=[];for(var a=0;a<b.length;a++){var c=b[a];c[0]=-1;this.tJ.push(c)}}}},pba:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a,c,e,g,l,m=0;m<this.zd.length;m++){a=this.zd[m].slice(0);
c=[];e=a.shift();g=null;-1<e&&(g=(g=this.Zh(e))?g.La():null);for(var n=e=0;n<a.length;n++)l=this.Ma.ea(e),l.Qe&&(e++,l=this.Ma.ea(e)),l&&l.va(a[n])&&c.push(l.va(a[n]).uniqueName),e++;c.unshift(g);b.push(c)}return b}},uf:{configurable:!0,enumerable:!0,get:function(){return this.xA},set:function(b){if(f.v(b)||0===b.length)this.xA=[];else{if(this.Ra)this.xA=b;else{this.xA=[];for(var a=0;a<b.length;a++){var c=b[a];"string"===typeof c[0]?c[1]=-1:c[0]=-1;this.xA.push(c)}}this.l4(this.xA);this.Wga(this.xA)}}},
dba:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a,c,e,g,l,m,n,p=0;p<this.uf.length;p++){a=this.uf[p].slice(0);c=[];e="";l=null;"string"==typeof a[0]&&(e=a.shift());g=a.shift();m=a.shift();-1<g&&(l=(l=this.Zh(g))?l.La():null);for(var t=g=0;t<a.length;t++)n=this.Ma.ea(g),n.Qe&&(g++,n=this.Ma.ea(g)),(n=n.va(a[t]))&&c.push(n.uniqueName),g++;c.unshift(m);c.unshift(l);c.unshift(e);b.push(c)}return b}},$f:{configurable:!0,enumerable:!0,set:function(b){b=b.toLowerCase();this.vY=b==k.i.xa.bc||
b==k.i.xa.Ec?b:k.i.xa.Zc},get:function(){return this.vY}},uniqueName:{configurable:!0,enumerable:!0,get:function(){return this.SA},set:function(b){this.SA=b}},caption:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(b){this.qc=b}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.qb},set:function(b){this.zd=[];this.uf=[];this.Xs=null;this.vY=k.i.xa.Zc;this.Ff=null;this.qb=b}},He:{configurable:!0,enumerable:!0,get:function(){return this.qb.indexOf("[Measures]")},
set:function(){}},VT:{configurable:!0,enumerable:!0,get:function(){return this.qb.getItem("[Measures]")},set:function(){}},Ra:{configurable:!0,enumerable:!0,get:function(){return-1<this.He},set:function(){}},depth:{configurable:!0,enumerable:!0,get:function(){for(var b=0,a=0;a<this.qb.length;a++){var c=this.qb.ea(a);b+=c.rwa}return b},set:function(){}}});h.Mq=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){this.cr=new f.nb;this.ib=[];this.FE=this.U8=!1;this.AA=[];this.PP=[];this.KP=[];this.memberProperties={};this.M1=!0;this.Wc=b;this.bt(new k.I.Mq(k.i.ia.Ia));this.bt(new k.I.Mq(k.i.ia.Sa));this.bt(new k.I.Mq(k.i.ia.As))}d.prototype.bt=function(b){this.cr.Pa(b.uniqueName,b);b.Ra&&(this.sA=b)};d.prototype.Cd=function(b){return this.cr.getItem(b)};d.prototype.Ywa=function(b){if(-1!=this.ic.Ma.indexOf(b))return this.ic;if(-1!=this.Sb.Ma.indexOf(b))return this.Sb;
if(-1!=this.dH.Ma.indexOf(b))return this.dH};d.prototype.iia=function(){if(null==this.sA){for(var b=0;b<this.cr.length;b++){var a=this.cr.ea(b);if(a.Ra){this.sA=a;break}}null==this.sA&&(this.sA=this.Cd(k.i.ia.Sa))}this.sA.Ra||(b=this.Wc.VT)&&this.sA.Ma.Pa(b.uniqueName,b)};d.prototype.ad=function(){for(var b=[],a=0;a<this.ib.length;a++){var c=this.ib[a];c.hidden||b.push(c)}return b};d.prototype.fz=function(b){this.ib=b};d.prototype.Zh=function(b){for(var a=0;a<this.ib.length;a++)if(b.uniqueName==this.ib[a].uniqueName&&
(""==b.$||b.$===this.ib[a].$))return this.ib[a];return null};d.prototype.$B=function(b){return b instanceof f.model.bb.Ig?this.Zh(b):isNaN(b)?null:this.ib[b]};d.prototype.zca=function(b,a){for(var c=0;c<this.ib.length;c++)if(b==this.ib[c].uniqueName&&(void 0==a||a==this.ib[c].$))return c;return-1};d.prototype.rc=function(b,a,c,e){b=void 0===b?!0:b;a=void 0===a?!0:a;c=void 0===c?!1:c;e=void 0===e?!1:e;for(var g=new f.nb,l=0;l<this.cr.length;l++){var m=this.cr.ea(l);g=g.concat(m.Ma)}b||g.removeItem(this.Wc.VT.uniqueName);
if(!a)for(b=0;b<this.pages.length;b++)g.removeItem(this.pages.qh(b));if(c)for(c=0;c<this.ib.length;c++)b=this.ib[c],b.Ka||b.hidden&&!e||(b=this.Wc.Vj(b.uniqueName),f.v(b)||g.Pa(b.uniqueName,b));return g};d.prototype.clear=function(){for(var b=0;b<this.cr.length;b++)this.cr.ea(b).Ma=new f.nb;this.ib=[]};d.prototype.clone=function(){var b=this,a=new d(this.Wc);a.rows=this.rows.slice();a.columns=this.columns.slice();a.pages=this.pages.slice();a.fz(this.ad());a.flatOrder=this.flatOrder.slice(0);a.flatSort=
this.flatSort.slice(0);a.drillThrough=this.drillThrough.slice(0);a.bt(this.ic.clone());a.ic.Zh=function(c){return b.$B(c)};a.bt(this.Sb.clone());a.Sb.Zh=function(c){return b.$B(c)};a.expandAll=this.expandAll;a.drillAll=this.drillAll;return a};d.y$=function(b,a){var c=!1;c=void 0===c?!0:c;if(null==a)return!0;var e=b.rows.length!=a.rows.length;if(!e)for(var g=0;g<b.rows.length;g++)if(b.rows.ea(g).uniqueName!=a.rows.ea(g).uniqueName){e=!0;break}!e&&c&&b.Cd(k.i.ia.Ia).Ra&&a.Cd(k.i.ia.Ia).Ra&&(e=d.dZ(b,
a));return e};d.x$=function(b,a){var c=!1;c=void 0===c?!0:c;if(null==a)return!0;var e=b.columns.length!=a.columns.length;if(!e)for(var g=0;g<b.columns.length;g++)if(b.columns.ea(g).uniqueName!=a.columns.ea(g).uniqueName){e=!0;break}!e&&c&&b.Cd(k.i.ia.Sa).Ra&&a.Cd(k.i.ia.Sa).Ra&&(e=d.dZ(b,a));return e};d.dZ=function(b,a){if(null==a)return!0;b=b.ad();a=a.ad();var c=b.length!=a.length;if(!c)for(var e=0;e<b.length;e++)if(b[e].uniqueName!=a[e].uniqueName){c=!0;break}return c};d.usa=function(b,a){void 0!==
a.caption&&null!=b&&(b.caption=a.caption)};d.kBa=function(b){return void 0===b.formula?!0:f.model.B.C.zv&&k.Na.U().fa.Ba===k.i.oa.Nc||!k.Na.U().fa.Hc||k.Na.U().fa.Ba===k.i.oa.API};d.tb=function(b,a,c,e){c=void 0===c?!1:c;e=void 0===e?!1:e;for(var g=new d(a),l=[],m=a.rc(),n=b.measures.map(function(r){return r.uniqueName}),p=0;p<b.measures.length;p++)if(void 0!==b.measures[p].uniqueName&&this.kBa(b.measures[p])){f.ha(b.measures[p].formula)&&(a.$c(b.measures[p].uniqueName)||(b.measures[p].uniqueName=
k.me.zg(b.measures[p].uniqueName)));var t=a.measures.getItem(b.measures[p].uniqueName);if(null!=t||!f.ha(b.measures[p].formula)){this.usa(m.getItem(b.measures[p].uniqueName),b.measures[p]);t=a.nw(b.measures[p],t);t.hidden=!1;if(t.Ka&&!a.measures.Bb(t.uniqueName)){if(f.model.B.C.GV&&!g.cKa(t,n))continue;a.Hj(t)}if(null==b.measures[p].active||b.measures[p].active)t=t.clone(),t.index=l.length,l.push(t)}f.model.B.C.oc&&!f.v(b.measures[p].filter)&&(t=m.getItem(b.measures[p].uniqueName),f.v(t)||(t.filter=
f.model.bb.Tz.tb(b.measures[p].filter,t)))}g.T4(l);l=k.I.Mq.tb(k.i.ia.Ia,b.rows,b.rowSorting,b.expandedRows,b.drilledRows,a,function(r){return g.$B(r)},c);m=k.I.Mq.tb(k.i.ia.Sa,b.columns,b.columnSorting,b.expandedColumns,b.drilledColumns,a,function(r){return g.$B(r)},c);c=k.I.Mq.tb(k.i.ia.As,b.pages,null,[],[],a,null,c);g.rows=l.Ma;g.columns=m.Ma;g.pages=c.Ma;g.expandAll=b.expandAll;g.drillAll=b.drillAll;if(k.Na.U().fa&&k.Na.U().fa.KG)if(g.flatOrder=b.flatOrder,f.v(b.flatSort))if(m.$f!=k.i.xa.Zc)g.flatSort=
[{sort:m.$f,measure:m.Ff}];else for(c=b.rows.concat(b.columns.concat(b.pages)),n=0;n<c.length;n++){if(p=c[n],!f.v(p.sortName)&&k.i.xa.Cg(p.sortName)&&p.sortName!=k.i.xa.Zc){g.flatSort=[{sort:p.sortName,measure:a.$c(p.uniqueName)}];break}}else g.flatSort=d.Iba(b.flatSort,a);g.drillThrough=b.drillThrough;g.memberProperties=b.memberProperties;g.bt(l);g.bt(m);g.iia();g.lia();e||g.EHa(g);return g};d.Iba=function(b,a){if(f.v(b))return null;for(var c=[],e=0;e<b.length;e++){var g=b[e],l=a.$c(g&&g.uniqueName?
g.uniqueName:g.measure.uniqueName);g=String(g.sort).toLowerCase();!f.v(l)&&k.i.xa.Cg(g)&&c.push({measure:l,sort:g})}return c};d.prototype.lia=function(){for(var b=f.model.B.C.oc,a=this.ib.filter(function(l){return-1<k.i.ca.yz.indexOf(l.$)}),c=0;c<this.rows.length;c++){var e=this.rows.ea(c),g=e.filter.measure;b&&e.filter.ai&&!f.v(this.Wc.$c(g.uniqueName))||this.cea(e,g,a)||e.filter.pB()}for(c=0;c<this.columns.length;c++)e=this.columns.ea(c),g=e.filter.measure,b&&e.filter.ai&&!f.v(this.Wc.$c(g.uniqueName))||
this.cea(e,g,a)||e.filter.pB()};d.prototype.cea=function(b,a,c){c=c.find(function(e){return a&&e.uniqueName===a.uniqueName});return!(b.filter.ai&&null==this.$c(b.filter.measure.uniqueName)||a&&k.Na.U().fa.Hc&&void 0!==c)};d.prototype.cKa=function(b,a){b=x.mO.PQ(b.qe,b.uniqueName,a);return 0==b.bw?(f.Va(b.errorMessage),!1):!0};d.prototype.EHa=function(b){if(null!=k.Na.U().sa){var a=k.Na.U().sa.ht,c=b.ht;null!=a&&null!=c&&a.uniqueName!=c.uniqueName||null==a.Ff||null==b.Zh(new f.model.bb.Ig(a.Ff.uniqueName,
a.Ff.$,a.Ff.index))||null!=c.Ff||(c.Ff=a.Ff,c.m4=a.m4,c.Vm=a.Vm,c.$f=a.$f)}};d.prototype.G4=function(){var b=new f.model.bb.SliceValueObject,a=this.Cd(k.i.ia.Ia).La(),c=this.Cd(k.i.ia.Sa).La(),e=this.Cd(k.i.ia.As).La();b.rows=a.hierarchies;b.columns=c.hierarchies;b.pages=e.hierarchies;b.measures=[];e=this.Wc.measures;for(var g=this.ad(),l=0;l<g.length;l++){var m=g[l],n=m.La();n.caption=m.Yl;n.active=!0;f.model.B.C.oc&&(m=this.Wc.Vj(m.uniqueName))&&m.filter.$g&&!b.cBa(m.uniqueName)&&(n.filter=m.filter.La());
b.measures.push(n)}l={};for(n=0;n<e.length;l={wz:l.wz},n++)l.wz=e.ea(n),l.wz.hidden&&!l.wz.Ka||l.wz.F0()||g.find(function(p){return function(t){return t.uniqueName===p.wz.uniqueName}}(l))||(m=l.wz.La(),m.active=!1,b.measures.push(m));b.rowSorting=a.sort;b.columnSorting=c.sort;b.expandAll=this.expandAll;b.expandedRows=this.axes.getItem(k.i.ia.Ia).pba;b.expandedColumns=this.axes.getItem(k.i.ia.Sa).pba;b.drillAll=this.drillAll;b.drilledRows=this.axes.getItem(k.i.ia.Ia).dba;b.drilledColumns=this.axes.getItem(k.i.ia.Sa).dba;
b.flatOrder=this.flatOrder;b.flatSort=this.Jba();b.drillThrough=this.drillThrough;b.memberProperties=this.memberProperties;return b};d.prototype.Jba=function(){if(f.v(this.flatSort))return null;for(var b=[],a=0;a<this.flatSort.length;a++){var c=this.flatSort[a];b.push({uniqueName:c.measure.uniqueName,sort:c.sort})}return b};d.prototype.La=function(){var b={};b.rows=[];for(var a=0;a<this.rows.length;a++){var c=this.rows.ea(a).La();b.rows[a]=c}b.columns=[];for(a=0;a<this.columns.length;a++)c=this.columns.ea(a).La(),
b.columns[a]=c;b.pages=[];for(a=0;a<this.pages.length;a++)c=this.pages.ea(a).La(),b.pages[a]=c;b.measures=[];for(a=0;a<this.ib.length;a++)this.ib[a].hidden||(c=this.ib[a].La(),b.measures[a]=c);return b};d.prototype.e3=function(){for(var b=0;b<this.cr.length;b++)this.cr.ea(b).e3()};d.prototype.flatten=function(b,a){b=void 0===b?!1:b;a=void 0===a?!1:a;for(var c=this.rc(!1),e=0;e<this.ib.length;e++)if(!this.ib[e].hidden){var g=this.ib[e];if(a)g.type===k.i.Ja.sc?c.Bb(g.uniqueName)||c.Pa(g.uniqueName,
g):c.Pa(g.uniqueName,g);else{var l=this.Vj(g.uniqueName);null!=l&&c.Pa(l.uniqueName,l);g.Ka&&b&&(l=new h.nf(g.uniqueName,g.caption),c.Pa(g.uniqueName,l))}}return this.msa(c,this.flatOrder)};d.prototype.msa=function(b,a){for(var c=new f.nb,e=0;e<a.length;e++){var g=a[e];b.Bb(g)&&(c.Pa(g,b.getItem(g)),b.removeItem(g))}for(a=0;a<b.length;a++)c.Pa(b.qh(a),b.ea(a));return c};d.prototype.isEqual=function(b){if(null==b)return!1;var a=this.ad(),c=b.ad();if(this.pages.length!=b.pages.length||this.rows.length!=
b.rows.length||this.columns.length!=b.columns.length||a.length!=c.length)return!1;for(var e=0;e<this.pages.length;e++)if(this.pages.qh(e)!=b.pages.qh(e))return!1;for(e=0;e<this.rows.length;e++)if(this.rows.qh(e)!=b.rows.qh(e))return!1;for(e=0;e<this.columns.length;e++)if(this.columns.qh(e)!=b.columns.qh(e))return!1;for(e=0;e<a.length;e++)if(a[e].uniqueName!=c[e].uniqueName||a[e].$!=c[e].$)return!1;return!0};d.prototype.Vj=function(b){return this.Wc.Vj(b)};d.prototype.Ee=function(b){return this.Wc.Ee(b)};
d.prototype.kCa=function(){if(f.model.B.C.oc){this.rows=new f.nb;this.columns=new f.nb;this.pages=new f.nb;for(var b=[],a=[],c=0;c<this.Wc.measures.length;c++){var e=this.Wc.measures.ea(c);a.push(e.uniqueName);e.type==k.i.Ja.sc?(e=this.Wc.Vj(e.uniqueName))&&this.rows.Pa(e.uniqueName,e):(e.index=0,b.push(e))}if(f.v(this.AA)||0==this.AA.length)this.AA=a;this.ib=b}else{for(c=0;c<this.Wc.measures.length&&(e=this.Wc.measures.ea(c),e.type!=k.i.Ja.fb?null==a&&(a=this.Wc.Vj(e.uniqueName)):null==b&&(b=e),
null==a||null==b);c++);null==b?b=this.Wc.measures.ea(0):null==a?(e=this.Wc.measures.ea(0),a=this.Wc.Vj(e.uniqueName)):null==a&&null==b&&0<this.Wc.measures.length&&(b=this.Wc.measures.ea(0),a=this.Wc.Vj(b.uniqueName));null!=a&&null!=b&&(this.pages=new f.nb,this.rows=new f.nb,this.columns=new f.nb,this.rows.Pa(a.uniqueName,a),c=[],b.index=0,c.push(b),this.ib=c)}};d.prototype.xta=function(){this.ic.zd=[];this.Sb.zd=[]};d.prototype.wta=function(){this.ic.uf=[];this.Sb.uf=[]};d.prototype.T4=function(b){void 0===
b&&(b=this.ib);var a=[];if(this.Wc instanceof k.external.kc.I.OH&&0<f.model.ta.gm.conditions.length)for(var c=0;c<f.model.ta.gm.conditions.length;c++){var e=f.model.ta.gm.conditions.ea(c);if((e=x.ws.pL(e.Sd,this.Wc.measures))&&0<e.length)for(var g={},l=0;l<e.length;g={JH:g.JH},l++){var m=e[l];g.JH=this.Wc.measures.getItem(m.uniqueName);if(null!=g.JH){var n=b.find(function(t){return function(r){return r.uniqueName===t.JH.uniqueName}}(g));if(null==n||!n.Ka&&n.$!=m.$)n=g.JH.clone(),n.$=m.$,n.hidden=
!0,a.push(n)}}}c=null;for(e=0;e<b.length;e++)if(c=b[e],c.format=this.Wc.measures.getItem(c.uniqueName).format,a.push(c),c.Ka){if((g=x.ws.pL(c.Sd,this.Wc.measures))&&0<g.length)for(l={},m=0;m<g.length;l={IH:l.IH},m++)if(n=g[m],l.IH=this.Wc.measures.getItem(n.uniqueName),null!=l.IH){var p=b.find(function(t){return function(r){return r.uniqueName===t.IH.uniqueName}}(l));if(null==p||!p.Ka&&p.$!=n.$)p=l.IH.clone(),p.$=n.$,p.hidden=!0,a.push(p)}this.Wc instanceof k.external.kc.I.OH&&(c.Sd=x.ws.pG(c.Sd,
this.Wc.measures))}this.fz(a)};d.prototype.BCa=function(b){f.v(b)||(this.expandAll=b.expandAll,this.drillAll=b.drillAll,d.y$(this,b)?(this.ic.zd=this.xR(b.ic.zd,this.lS(this.ic.Ma,b.ic.Ma)),this.ic.uf=this.xR(b.ic.uf,this.lS(this.ic.Ma,b.ic.Ma)+2)):(this.ic.zd=this.hq(b.ic.zd),this.ic.uf=this.hq(b.ic.uf)),d.x$(this,b)?(this.Sb.zd=this.xR(b.Sb.zd,this.lS(this.Sb.Ma,b.Sb.Ma)),this.Sb.uf=this.xR(b.Sb.uf,this.lS(this.Sb.Ma,b.Sb.Ma)+2)):(this.Sb.zd=this.hq(b.Sb.zd),this.Sb.uf=this.hq(b.Sb.uf)))};d.prototype.aD=
function(b,a){for(var c=[],e=0;e<this.ib.length;e++)(this.ib[e].uniqueName!==b||this.ib[e].$!==a&&void 0!==a)&&c.push(this.ib[e]);this.ib=c};d.prototype.dga=function(b){this.ib[b.index].uniqueName===b.uniqueName&&this.ib[b.index].$===b.$?this.ib.splice(b.index,1):this.aD(b.uniqueName,b.$)};d.prototype.$c=function(b){for(var a=0;a<this.ib.length;a++)if(this.ib[a].uniqueName==b)return this.ib[a]};d.prototype.lS=function(b,a){for(var c=0,e=Math.min(b.length,a.length),g=0;g<e;g++){var l=b.ea(g),m=a.ea(g);
if(l.uniqueName!=m.uniqueName)break;l.Qe||c++}return c};d.prototype.xR=function(b,a){var c=[];if(1<a)for(var e=0;e<b.length;e++){var g=b[e];g.length<=a&&c.push(g.slice())}return c};d.prototype.hq=function(b){for(var a=[],c=0;c<b.length;c++)a.push(b[c].slice());return a};d.prototype.LZ=function(b){return this.eaa(b,this.vb)};d.prototype.KZ=function(b){return this.eaa(b,this.Cb)};d.prototype.eaa=function(b,a){var c=[];if(f.v(b))return c;for(var e=0;e<b.length;e++){var g=a.ea(e);f.v(g)||(g=g.va(b[e]),
f.v(g)||c.push(g.La()))}return c};d.prototype.gAa=function(){for(var b=this.rc(),a=0;a<b.length;a++)if(b.ea(a).qg)return!0;return!1};q.Object.defineProperties(d.prototype,{axes:{configurable:!0,enumerable:!0,get:function(){return this.cr},set:function(){}},ht:{configurable:!0,enumerable:!0,set:function(){},get:function(){this.iia();return this.sA}},pu:{configurable:!0,enumerable:!0,get:function(){for(var b=[],a={},c=0;c<this.ib.length;c++){var e=this.ib[c];e.Ka||void 0!==a[e.uniqueName]||(b.push(e),
a[e.uniqueName]=1)}return b},set:function(){}},mt:{configurable:!0,enumerable:!0,get:function(){for(var b=new f.nb,a=0;a<this.ib.length;a++){var c=this.ib[a];c.Ka&&b.Pa(c.uniqueName,c)}return b},set:function(){}},Of:{configurable:!0,enumerable:!0,get:function(){return this.ib},set:function(b){this.fz(b)}},rows:{configurable:!0,enumerable:!0,get:function(){return this.Cd(k.i.ia.Ia).Ma},set:function(b){var a=this,c=this.Cd(k.i.ia.Ia);null==c&&(c=new h.Mq(k.i.ia.Ia));c.Ma=b;null==b&&(c.Ma=new f.nb);
c.Zh=function(e){return a.$B(e)};this.bt(c)}},columns:{configurable:!0,enumerable:!0,get:function(){return this.Cd(k.i.ia.Sa).Ma},set:function(b){var a=this,c=this.Cd(k.i.ia.Sa);null==c&&(c=new h.Mq(k.i.ia.Sa));c.Ma=b;null==b&&(c.Ma=new f.nb);c.Zh=function(e){return a.$B(e)};this.bt(c)}},pages:{configurable:!0,enumerable:!0,get:function(){return this.Cd(k.i.ia.As).Ma},set:function(b){var a=this.Cd(k.i.ia.As);null==a&&(a=new h.Mq(k.i.ia.As));a.Ma=b;null==b&&(a.Ma=new f.nb);this.bt(a)}},vb:{configurable:!0,
enumerable:!0,set:function(){},get:function(){return this.ht.uniqueName==k.i.ia.Ia?this.rows.splice(this.ht.He,1):this.rows}},Cb:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.ht.uniqueName==k.i.ia.Sa?this.columns.splice(this.ht.He,1):this.columns}},ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.rc(!1).length&&0==this.ib.length}},expandAll:{configurable:!0,enumerable:!0,get:function(){return this.U8},set:function(b){this.U8=b}},drillAll:{configurable:!0,
enumerable:!0,get:function(){return this.FE},set:function(b){this.FE=b}},flatOrder:{configurable:!0,enumerable:!0,get:function(){null==this.AA&&(this.AA=[]);return this.AA},set:function(b){this.AA=b}},flatSort:{configurable:!0,enumerable:!0,get:function(){null==this.PP&&(this.PP=[]);return this.PP},set:function(b){this.PP=b}},drillThrough:{configurable:!0,enumerable:!0,get:function(){null==this.KP&&(this.KP=[]);return this.KP},set:function(b){this.KP=b}},ic:{configurable:!0,enumerable:!0,get:function(){return this.axes.getItem(k.i.ia.Ia)}},
Sb:{configurable:!0,enumerable:!0,get:function(){return this.axes.getItem(k.i.ia.Sa)}},dH:{configurable:!0,enumerable:!0,get:function(){return this.axes.getItem(k.i.ia.As)}}});h.Zq=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){}b.prototype.m$=function(){throw"Not Implemented";};b.prototype.Ara=function(a,c){f.v(this.ox)&&(this.ox=new f.nb);this.ox.Pa(a,c)};b.prototype.Nca=function(a,c){return!f.v(this.ox)&&this.ox.Bb(a.uniqueName)?this.nR(this.ox.getItem(a.uniqueName),c):this.mG(c)};b.prototype.nR=function(a,c){if("boolean"===typeof a)return!0===a?this.mG(c):null;var e=new d;c=this.mG(c);f.v(a.ed)||(e.ed=a.ed);f.v(a.query)||(e.query="boolean"===typeof a.query?
!0===a.query?c.query:[]:a.query.slice());f.v(a.xl)||(e.xl="boolean"===typeof a.xl?!0===a.xl?c.xl:[]:a.xl.slice());return e};b.prototype.mG=function(a){var c=new d;c.ed=!0;c.xl=k.i.tc.Gp;switch(a){case k.i.kb.gk:c.query=k.i.wb.Gp;break;case k.i.kb.Oa:c.query=k.i.Ub.Gp;break;case k.i.kb.fb:c.query=k.i.vg.Gp;break;case k.i.kb.Yb:c.query=k.i.ik.Gp}return c};q.Object.defineProperties(b.prototype,{VY:{configurable:!0,enumerable:!0,get:function(){return!0},set:function(){}}});h.OD=b;h.Zoa=function(){};d.prototype.merge=
function(a){void 0===this.ed&&(this.ed=a.ed);void 0===this.query&&(this.query=a.query);void 0===this.xl&&(this.xl=a.xl)};q.Object.defineProperties(d.prototype,{Mda:{configurable:!0,enumerable:!0,get:function(){return 1==this.ed}},TL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.query)&&0<this.query.length}},dea:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.xl)&&0<this.xl.length}}});h.Yoa=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.ConnectionInfo.apply(this,arguments)||this}u(d,h.ConnectionInfo);d.prototype.isEqual=function(b){return b.Ba==k.i.oa.EMPTY};d.prototype.clone=function(){return new d};d.prototype.La=function(){return{}};h.Pz=d})(k.I||(k.I={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=k.I.ConnectionInfo.apply(this,arguments)||this;b.browseForFile=!1;b.requestPermission=!1;b.mapping=new k.I.Aj;return b}u(d,k.I.ConnectionInfo);d.prototype.isEqual=function(b){return k.I.ConnectionInfo.prototype.isEqual.call(this,b)&&this.filename===b.filename&&!1===this.browseForFile&&!1===b.browseForFile&&this.mapping.isEqual(b.mapping)};h.LocalConnectionInfo=d})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=k.ND.apply(this,arguments)||this;b.dh=[];b.Ym=[];b.rX=[{value:"Chrome",BM:.76},{value:"Firefox",BM:.11},{value:"Safari",BM:.05},{value:"Edge/IE",BM:.06},{value:"Opera",BM:.02}];return b}u(d,k.ND);d.prototype.vF=function(){k.ND.prototype.vF.call(this);this.dh=[];this.Ym=[]};d.prototype.Cta=function(){this.dh=[];this.Ym=[];this.values=[]};d.clone=function(b){var a=new d(b.wa);a.Wg=b.Wg.slice(0);a.Mm=b.Mm.slice(0);a.pb=b.pb.slice(0);a.Ac=b.Ac.slice(0);
a.ra=b.ra.slice(0);a.le=b.le.slice(0);a.Yg=b.Yg.slice(0);a.bg=b.bg.slice(0);a.Fx=b.Fx.slice(0);a.pC=b.pC.slice(0);return a};d.prototype.Lva=function(b){var a=this.Mm.indexOf(b);if(!f.v(b)&&-1<a){for(b=0;b<this.Yg.length;b++)void 0===this.dh[b]&&(this.dh[b]=[]),void 0!==this.Ac[b]?(this.Ac[b][a]=NaN,this.dh[b][a]={So:-this.Ac[b][a],Yr:-1}):this.dh[b][a]={So:0,Yr:0};this.Wg=f.Ha.Iq(this.Wg,this.Wg.indexOf(a));this.Mm[a]=null}};d.prototype.update=function(b,a,c){var e=this.Mm.indexOf(c);if(!f.v(c)&&
-1<e){for(c=0;c<this.Yg.length;c++)if(this.Ac[c]&&this.Ac[c][e]!==a[c]){var g=a[c]-this.Ac[c][e];isNaN(g)||(null==this.dh[c]&&(this.dh[c]=[]),this.dh[c][e]={So:g,Yr:g/this.Ac[c][e]})}for(c=0;c<a.length;c++)this.Ac[c][e]=a[c];for(c=0;c<b.length;c++)this.pb[c][e]=b[c]}else{e=this.Iw;f.v(c)||(this.Mm[e]=c);for(c=0;c<this.Yg.length;c++)g=a[c],isNaN(g)||(null==this.dh[c]&&(this.dh[c]=[]),this.dh[c][e]={So:g,Yr:1});this.Wg=f.Ha.Hq(this.Wg,e);for(c=0;c<b.length;c++)this.pb[c]=f.Ha.Hq(this.pb[c],b[c]);for(c=
0;c<a.length;c++)this.Ac[c]=f.Ha.Hq(this.Ac[c],a[c])}};d.prototype.insert=function(b,a,c){if(!(-1<b.indexOf(0))){var e;if(0===this.pb.length)for(e=0;e<b.length;e++)this.pb[e]=[];this.Wg=f.Ha.Hq(this.Wg,this.Iw);f.v(c)||(this.Mm[this.Iw]=c);for(e=0;e<b.length;e++)this.pb[e]=f.Ha.Hq(this.pb[e],b[e]);if(0===this.Ac.length)for(e=0;e<a.length;e++)this.Ac[e]=[];for(e=0;e<a.length;e++)this.Ac[e]=f.Ha.Hq(this.Ac[e],a[e])}};d.prototype.b0=function(b,a,c,e,g){if(0!=b.length){var l;for(l=0;l<b.length;l++){var m=
this.Ac[c][b[l]];isNaN(m)||this.Ac[c]instanceof Uint8Array&&0==m||g[m]||(e.push(m),g[m]=!0)}if(this.Ti.length!=a.length)for(l=0;l<e.length;l++){m=a.slice(0);m.push(e[l]);var n=this.Jn(b,m,this.Ti);this.b0(n,m,c,e,g)}}};d.prototype.MHa=function(b,a,c,e){b=this.cb[b[0]];a=a[0];var g=[];this.dh=[];this.dh[b]=[];this.values=[];this.Ym=[];if(null!=c){var l=c.UR(e);var m=this.Fca(c.va(this.pb[a][b]),"string"==typeof e);if(null==l)if(1==this.haa(a,this.pb[a][b])){l=c.va(this.pb[a][b]);var n=this.c0(c,e);
n.ordinal=l.ordinal;c.vga(n)}else l=null!=c.Db(e)?c.fc(new k.I.Rd({uniqueName:f.O.aL(),caption:e})):c.fc(new k.I.Rd({uniqueName:e,caption:e}));this.pb[a][b]=l.ordinal;n=null!=this.Mm[b]?this.Mm[b]:b;g.push({id:n,field:c.uniqueName,value:e,oldValue:m});c=parseFloat(e)-this.Ac[a][b];this.dh[b][a]={So:c,Yr:c/this.Ac[a][b]};this.Ac[a][b]=parseFloat(e);0<g.length&&this.wa.Gga(g);return l.ordinal}};d.prototype.Fca=function(b,a){return null==b?"":a?b.caption:b.ec};d.prototype.save=function(b,a,c,e,g){var l=
this.cd(b,this.vd),m=this.cd(a,this.Md);g=(b.length*m[0][0].length<a.length*l[0][0].length?this.Jn(m[0][0],b,this.uh):this.Jn(l[0][0],a,this.Ti))[g];b=[];a=this.Yg.indexOf(this.wa.I.Ee(c.uniqueName).uniqueName);this.dh=[];this.dh[a]=[];l=parseFloat(e)-this.Ac[a][g];this.dh[a][g]={So:l,Yr:l/this.Ac[a][g]};this.Ac[a][g]=parseFloat(e);this.values=[];this.Ym=[];if(null!=c){m=this.le.indexOf(c.uniqueName);var n=this.haa(m,this.pb[m][g]);l=c.UR(e);l=null===l?c.Db(e):l;a=this.Fca(c.va(this.pb[m][g]),"string"==
typeof e);null==l&&(1==n?(l=c.va(this.pb[m][g]),n=this.c0(c,e),n.ordinal=l.ordinal,c.vga(n)):l=c.fc(this.c0(c,e)));l.ec=e;this.pb[m][g]=l.ordinal;g=null!=this.Mm[g]?this.Mm[g]:g;b.push({id:g,field:c.uniqueName,value:e,oldValue:a});0<b.length&&this.wa.Gga(b);return l.ordinal}};d.prototype.c0=function(b,a){b=this.wa.I.Ee(b.uniqueName);k.i.Ja.Oa==b.type?(b=f.O.Gw(a,f.model.B.C.mq,f.model.B.C.Mj),a=new k.I.Rd({uniqueName:b,caption:b,ec:a})):k.i.Ja.sc==b.type?a=new k.I.Rd({uniqueName:a.toString(),caption:a.toString()}):
k.i.Ja.Yb==b.type?(b=f.O.Hw(a,f.model.B.C.Cp),a=new k.I.Rd({uniqueName:b,ec:a})):a=new k.I.Rd({uniqueName:a.toString(),caption:a.toString(),ec:a});return a};d.prototype.haa=function(b,a){for(var c=0,e=0;e<this.Iw;e++)this.pb[b][e]==a&&c++;return c};d.prototype.drillThrough=function(b,a){var c=[];c.push(this.le);var e=this.cd(b,this.vd);if(f.v(e)||f.v(e[0])||f.v(e[0][0]))return c;var g=this.cd(a,this.Md);if(f.v(g)||f.v(g[0])||f.v(g[0][0]))return c;b=b.length*g[0][0].length<a.length*e[0][0].length?
this.Jn(g[0][0],b,this.uh):this.Jn(e[0][0],a,this.Ti);for(a=0;a<b.length;a++){e=[];for(g=0;g<this.pb.length;g++)e.push(this.pb[g][b[a]]);c.push(e)}return c};d.prototype.hC=function(b,a,c){b=this.rr(b,a);a=c.Ka?this.slice.ad().findIndex(function(e){return e.uniqueName===c.uniqueName})+this.Yg.length:this.Yg.indexOf(c.uniqueName);return void 0==this.Ym[b]?null:this.Ym[b][a]};d.prototype.vca=function(b,a){if(a.Ka)return null;a=this.Yg.indexOf(a.uniqueName);return null==b?this.nZ(this.cb,a):void 0==this.Ym[b]?
null:this.Ym[b][a]};d.prototype.Pt=function(b){return null==this.cb[b]||null==this.pb[0][this.cb[b]]||""==this.wa.I.id?null:this.Mm[this.cb[b]]};d.prototype.zza=function(b,a){if(0==this.Mm.length)return null;var c=this.cd(b,this.vd);if(f.v(c)||f.v(c[0])||f.v(c[0][0]))return null;var e=this.cd(a,this.Md);if(f.v(e)||f.v(e[0])||f.v(e[0][0]))return null;b=b.length*e[0][0].length<a.length*c[0][0].length?this.Jn(e[0][0],b,this.uh):this.Jn(c[0][0],a,this.Ti);a=[];for(c=0;c<b.length;c++)a.push(this.Mm[b[c]]);
return 0==a.length?null:a};d.prototype.rS=function(b,a,c,e,g){if(this.wa.fa.NL)return 0===this.pb[0][b]&&this.Xxa(b),this.pb[a][b];if(null==this.cb[b]||null==this.pb[0][this.cb[b]])return NaN;if(e)return!c.Ka&&this.dh.length&&(e=this.Yg.indexOf(c.uniqueName),null==this.Ym[b]&&(this.Ym[b]=[]),this.Ym[b][e]=this.nZ([this.cb[b]],e)),c.Ka?this.qq([this.cb[b]],c.Sd,c.gl,0,null,null,c.Eo):this.Ac[a][this.cb[b]];this.Ac.length!=this.pb.length&&(a=this.le.indexOf(this.Yg[a]),void 0!==g&&(a=this.ra[a][g]));
return this.pb[a][this.cb[b]]};d.prototype.Fa=function(b,a,c){var e=this.rr(b,a),g=this.Eh(c);if(f.v(this.values[g])||-1==g)this.values[g]=[];g=this.values[g];if(!g[e]){var l=this.cd(b,this.vd),m=this.cd(a,this.Md);if(null==l||null==l[0]||null==m||null==m[0])return NaN;var n=[],p=this.Yg.indexOf(c.uniqueName);0<m.length&&0<l.length&&b.length*m[0][0].length<a.length*l[0][0].length?n=this.Jn(m[0][0],b,this.uh):0<l.length&&(n=this.Jn(l[0][0],a,this.Ti));if(c.Ka){if(b=this.qq(n,c.Sd,c.gl,0,b,a,c.Eo),
!0===b||!1===b)b=!0===b?1:0}else b=c.$==k.i.ca.hj?c.type==k.i.Ja.sc?this.pS(n,c):this.oca(n,b,a,p):this.CA(n,p,c.$);g[e]=b;0<this.dh.length&&(null==this.Ym[e]&&(this.Ym[e]=[]),this.Ym[e][p]=this.nZ(n,p));return b}return g[e]};d.prototype.nZ=function(b,a){if(void 0==this.dh[a])return null;for(var c=!1,e={So:0,Yr:0},g=0;g<b.length;g++)this.dh[a][b[g]]&&0!=this.dh[a][b[g]].So&&!isNaN(this.dh[a][b[g]].So)&&(e.So+=this.dh[a][b[g]].So,e.Yr+=this.dh[a][b[g]].Yr,c=!0);return c?e:null};d.prototype.pack=function(){if(!this.wa.fa.NL){var b=
this.wa.I.rc(!1);65536>this.Wg.length?this.Wg=new Uint16Array(this.Wg):4294967296>this.Wg.length&&(this.Wg=new Uint32Array(this.Wg));var a;for(a=0;a<b.length;a++){var c=b.ea(a),e=this.le.indexOf(c.uniqueName);-1===e&&(e=this.le.indexOf(c.caption));for(var g=1;g<this.ra[e].length;g++)256>c.vi&&this.pb.hasOwnProperty(this.ra[e][g])?this.pb[this.ra[e][g]]=new Uint8Array(this.pb[this.ra[e][g]]):65536>c.vi&&this.pb.hasOwnProperty(this.ra[e][g])?this.pb[this.ra[e][g]]=new Uint16Array(this.pb[this.ra[e][g]]):
4294967296>c.vi&&this.pb.hasOwnProperty(this.ra[e][g])&&(this.pb[this.ra[e][g]]=new Uint32Array(this.pb[this.ra[e][g]]))}for(a=0;a<this.Yg.length;a++)c=b.getItem(this.Yg[a]),null!=c&&(c=this.wa.I.XB(c.uniqueName),c!==k.i.input.pa.fb&&c!==k.i.input.pa.gj&&c!==k.i.input.pa.Dc&&c!==k.i.input.pa.Yb&&(this.Ac[a]=new Uint8Array(this.Ac[a])))}};d.prototype.filter=function(){this.Md=[];this.vd=[];this.values=[];this.SP=[];this.al=[];this.Ym=[];this.rsa();this.pack();var b=f.model.B.C.oc&&f.model.B.C.he!=
f.K.xd.Ki,a=this.slice.rc(!1,!0,b),c=new f.nb,e=new f.nb,g,l,m=this.slice.ad();for(g=0;g<a.length;g++)(l=a.ea(g))&&l.filter.$g&&(l.filter.ai?(b?e.Pa(l.uniqueName,l):m.find(function(n){return n.uniqueName===l.filter.measure.uniqueName})&&!this.slice.pages.Bb(l.uniqueName)&&e.Pa(l.uniqueName,l),l.filter.$h&&c.Pa(l.uniqueName,l)):c.Pa(l.uniqueName,l));this.dv(c,this.Wg);for(g=0;g<e.length;g++)l=e.ea(g),!b||l.filter.wy&&l.filter.measure&&this.wa.I.mt.Bb(l.filter.measure.uniqueName)?this.zsa(l):this.osa(l);
this.dv(e,this.cb)};d.prototype.dv=function(b,a){for(var c=[],e=[],g=0;g<b.length;g++){var l=b.ea(g),m=this.le.indexOf(l.uniqueName);if(l.filter.$g){c.push(m);e.push(l.Nwa().length/l.yd.children.length);this.filters[m]=[];this.Ew[m]=[];for(var n=0;n<l.cb.length;n++){var p=l.va(l.cb[n]);1===p.level.sb?this.filters[m][p.ordinal]=!0:(void 0===this.Ew[m][p.root.ordinal]&&(this.Ew[m][p.root.ordinal]=[]),void 0===this.Ew[m][p.root.ordinal][p.level.sb]&&(this.Ew[m][p.root.ordinal][p.level.sb]=[]),this.Ew[m][p.root.ordinal][p.level.sb][p.ordinal]=
!0)}}}e=f.Ha.sort(e,f.Ha.Ru|f.Ha.mi);if(0<c.length)for(g=0;g<c.length;g++){b=c[e[g]];l=[];for(m=0;m<a.length;m++)if(n=this.pb[this.ra[b][1]][a[m]],!0===this.filters[b][n])l.push(a[m]);else if(void 0!==this.Ew[b][n])for(p=2;p<this.ra[b].length;p++)if(void 0!==this.Ew[b][n][p]&&!0===this.Ew[b][n][p][this.pb[this.ra[b][p]][a[m]]]){l.push(a[m]);break}a=l}this.cb=a};d.prototype.Wpa=function(b){var a=this.le.indexOf(b.kC.uniqueName),c=this.le.indexOf(b.uniqueName);-1===a&&(a=this.Jl(b.kC.uniqueName,b.uniqueName),
this.ra[c].pop(),this.ra[c].splice(1,0,a));var e=[],g;for(g in b.groups)for(var l=b.Db(b.Kl(g)),m=0;m<b.groups[g].length;m++){var n=b.va(b.groups[g][m]);null!==n&&(e[n.ordinal]=l.ordinal)}b=b.Db(b.Kl("Others"));void 0===this.pb[a]&&(this.pb[a]=[]);for(g=0;g<this.Iw;g++)n=this.pb[c][g],this.pb[a][g]=void 0!==e[n]?e[n]:b.ordinal};d.prototype.dqa=function(b){var a=this.le.indexOf(b.uniqueName);if(this.ra[a]&&this.ra[a].length>b.ra.length)for(var c=0;c<this.ra[a].length;c++)if(!b.ra.Bb(this.le[this.ra[a][c]])){this.ra[a].splice(c,
1);break}};d.prototype.rsa=function(){var b,a,c=this.slice.rc(!1);for(b=0;b<c.length;b++)(a=c.ea(b))&&(null!=a.kC?this.Wpa(a):this.dqa(a))};d.prototype.osa=function(b){if(b.filter.ai){var a=this.wa.I.measures.getItem(b.filter.measure.uniqueName);if(void 0!==a){for(var c=[],e=[],g=this.Yg.indexOf(a.uniqueName),l=0;l<this.cb.length;l++)c.push(this.rS(l,g,a,!0)),e.push(this.rS(l,g,a,!1));b.filter.query.ta==k.i.tc.Bj?b.cb=this.nsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.ji?b.cb=this.esa(c,
e,b.filter.query.value):b.filter.query.ta==k.i.tc.EQUAL?b.cb=this.fsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.If?b.cb=this.lsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.GREATER?b.cb=this.hsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Kk?b.cb=this.gsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.LESS?b.cb=this.jsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Lk?b.cb=this.isa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Sg?b.cb=this.dsa(c,e,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.ta==k.i.tc.Jg&&(b.cb=this.ksa(c,e,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],b.filter.query.value[1])))}}};d.prototype.nsa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.ko|f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.esa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=
0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.fsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]==c&&e.push(a[l]);return e};d.prototype.lsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]!=c&&e.push(a[l]);return e};d.prototype.hsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>c&&e.push(a[l]);return e};d.prototype.gsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>=c&&e.push(a[l]);return e};d.prototype.jsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<
c&&e.push(a[l]);return e};d.prototype.isa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<=c&&e.push(a[l]);return e};d.prototype.dsa=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)b[m]>=c&&b[m]<=e&&g.push(a[m]);return g};d.prototype.ksa=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)(b[m]<c||b[m]>e)&&g.push(a[m]);return g};d.prototype.zsa=function(b){if(b.filter.ai){var a=this.slice.Zh(b.filter.measure);if(void 0!==a){var c=[],e=[],g=[],l=this.le.indexOf(b.uniqueName);l=this.ra[l][b.nc?
b.nc.sb:1];if(this.al[l])for(var m in this.al[l])g.push(this.al[l][m]);else g=[l];l=[];for(m=0;m<g.length;m++)for(var n=0;n<this.cb.length;n++){var p=this.pb[g[m]][this.cb[n]];null==l[p]&&(l[p]=[]);l[p].push(this.cb[n])}g=this.Yg.indexOf(a.uniqueName);n=b.filter.$h?b.filter.pj():b.pr;p=a.Ka;var t=b.nc?b.nc.sb:1;for(m=0;m<n.length;m++){var r=b.va(n[m]);if(!r.Wb&&r.level.sb==t&&void 0!==l[r.ordinal]){if(p){var v=f.v(this.Fx[g])?a.Sd:this.Fx[g];var z=f.v(this.pC[g])?a.gl:this.pC[g];v=this.qq(l[r.ordinal],
v,z,0,null,null,a.Eo)}else v=l[r.ordinal],v=a.$==k.i.ca.hj?this.pS(v,a):this.CA(v,g,a.$);isNaN(v)&&(v=Number.MIN_VALUE);c.push(v);e.push(r.ordinal)}}b.filter.query.ta==k.i.tc.Bj?b.cb=this.ysa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.ji?b.cb=this.asa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.EQUAL?b.cb=this.bsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.If?b.cb=this.wsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.GREATER?b.cb=this.qsa(c,e,b.filter.query.value):
b.filter.query.ta==k.i.tc.Kk?b.cb=this.psa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.LESS?b.cb=this.tsa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Lk?b.cb=this.ssa(c,e,b.filter.query.value):b.filter.query.ta==k.i.tc.Sg?b.cb=this.$ra(c,e,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.ta==k.i.tc.Jg&&(b.cb=this.vsa(c,e,Math.min(b.filter.query.value[0],b.filter.query.value[1]),Math.max(b.filter.query.value[0],
b.filter.query.value[1])))}}};d.prototype.ysa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.ko|f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.asa=function(b,a,c){var e=[];b=f.Ha.sort(b,f.Ha.Ru|f.Ha.mi);c=Math.min(c,a.length);for(var g=0;g<c;g++)e.push(a[b[g]]);return e};d.prototype.bsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]==c&&e.push(a[l]);return e};d.prototype.wsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]!=c&&e.push(a[l]);
return e};d.prototype.qsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>c&&e.push(a[l]);return e};d.prototype.psa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]>=c&&e.push(a[l]);return e};d.prototype.tsa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<c&&e.push(a[l]);return e};d.prototype.ssa=function(b,a,c){for(var e=[],g=a.length,l=0;l<g;l++)b[l]<=c&&e.push(a[l]);return e};d.prototype.$ra=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)b[m]>=c&&b[m]<=e&&g.push(a[m]);
return g};d.prototype.vsa=function(b,a,c,e){for(var g=[],l=a.length,m=0;m<l;m++)(b[m]<c||b[m]>e)&&g.push(a[m]);return g};d.prototype.CA=function(b,a,c){return null===b||-1===a?NaN:0===b.length?c===k.i.ca.sc?0:NaN:c===k.i.ca.NONE?this.Ac[a][b[0]]:c===k.i.ca.sc?this.xya(b,a):c===k.i.ca.hj?this.oca(b,[],[],a):c===k.i.ca.Wq?this.tza(b,a):c===k.i.ca.Su?this.Nza(b,a):c===k.i.ca.Tu?this.Oza(b,a):1===b.length?this.Ac&&this.Ac[a]?this.Ac[a][b[0]]:NaN:c===k.i.ca.Up||c===k.i.ca.ro||c===k.i.ca.Tp||c===k.i.ca.Rp||
c===k.i.ca.Sp||c===k.i.ca.li||c===k.i.ca.dn||c===k.i.ca.im||c===k.i.ca.jn||c===k.i.ca.km||c===k.i.ca.nm||c===k.i.ca.ln?this.u0(b,a):c===k.i.ca.Bs?this.xza(b,a):c===k.i.ca.Hp?this.Yba(b,a):c===k.i.ca.Mu?this.fza(b,a):c===k.i.ca.MAX?this.bza(b,a):c===k.i.ca.MIN?this.iza(b,a):0};d.prototype.yL=function(){return this.pb};d.prototype.gH=function(){this.uZ();for(var b,a=this.wa.I.Z_(),c=0;c<a.length;c++){var e=a[c];b=this.wa.I.VB(e);if(b instanceof h.I.h7)k.i.Lz.Zz==b.type?(this.Jl(e+".Year"),this.Bm(this.wa.I.Ee(e+
".Year")),this.Jl(e+".Month"),this.Bm(this.wa.I.Ee(e+".Month")),this.Jl(e+".Day"),this.Bm(this.wa.I.Ee(e+".Day"))):b.Ma.Bb(e)&&(this.Jl(e),this.Bm(this.wa.I.Ee(e)));else if(b instanceof h.I.Yz)for(this.Jl(e),this.Bm(this.wa.I.Ee(e)),e=2;e<b.ra.length;e++){var g=b.ra.ea(e);this.Jl(g.uniqueName,b.uniqueName)}else b instanceof h.I.FW&&(1===b.sb?(this.Jl(b.hierarchy.uniqueName),this.Bm(this.wa.I.Ee(b.hierarchy.uniqueName))):this.Jl(b.uniqueName,b.hierarchy.uniqueName))}if(this.slice){for(c=0;c<this.wa.I.measures.length;c++)b=
this.wa.I.measures.ea(c),this.Jl(b.uniqueName),this.Bm(b);for(c=0;c<this.slice.Of.length;c++)b=this.slice.Of[c],this.Jl(b.uniqueName),this.Bm(b)}};d.prototype.Bm=function(b){b&&(this.RJ(b),this.xx(b))};d.prototype.b$=function(b){for(var a=this.wa.I.VB("Browser"),c=0;c<b.length;c++)a.fc(new k.I.Rd({uniqueName:b[c].value}))};d.prototype.Xxa=function(b){var a=this.Cfa(b,{from:0,Ep:500,ow:30})+1,c=this.Cfa(b,{from:0,Ep:30,ow:0})+1,e=.3>Math.abs(Math.sin(7*b))?1:0;this.pb[0][b]=this.EGa(5*b,this.rX)+1;
this.pb[1][b]=a*(4>c?c:10>c?Math.round(c/3):Math.round(c/7));this.pb[2][b]=c;this.pb[3][b]=e};d.prototype.P_=function(b){this.b$(this.rX);var a=x.Bd().Vl?5E5:1E6;this.pb=[];this.pb[0]=new Uint8Array(a);this.pb[1]=new Uint16Array(a);this.pb[2]=new Uint8Array(a);this.pb[3]=new Uint8Array(a);this.Wg[a-1]=a;this.vd=[];this.vd=[[this.cb,[],[],void 0,void 0]];this.Md=[[this.cb,[],[],void 0,void 0]];this.b$(this.rX);b()};d.prototype.Cfa=function(b,a){b=Math.abs(Math.sin(1.17*b))*(a.Ep-a.from)+a.from;if(b>=
a.ow){var c=(b-a.ow)/(5*(a.Ep-a.ow));a=(b-a.ow)*c+a.ow}else c=(a.ow-b)/(5*(a.ow-a.from)),a=(a.ow-b)*c+a.from;return Math.round(a)};d.prototype.EGa=function(b,a){b=Math.abs(Math.sin(b));for(var c=0,e=0;e<a.length;e++)if(c+=a[e].BM,c>b)return e;return a.length-1};h.xO=d})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){c=k.I.nf.call(this,a,void 0===c?"":c)||this;c.Je=f.model.B.C.Je;a=new d.FW(a+".[(all)]","All",0);c.ph(a);c.tn="(all member)";c.xt="(all member)";a=new k.I.Rd({uniqueName:"(all member)",caption:"All",Wb:!0});k.I.nf.prototype.fc.call(c,a);return c}u(b,k.I.nf);b.prototype.fc=function(a,c){if(void 0===c)return k.I.nf.prototype.fc.call(this,a);if(f.ha(a.value)||"null"===a.value||"undefined"===a.value)f.model.B.C.zr?a.uniqueName=a.value+
"":(a.uniqueName=void 0===a.parent?"":("["===a.parent.uniqueName.substr(0,1)?a.parent.uniqueName:"["+a.parent.uniqueName+"]")+".[]",a.caption=a.value=""),""===a.caption&&(a.caption=f.model.A.j.Mk);if(c===k.i.input.pa.fb)c=this.Mra(a);else if(c===k.i.input.pa.Sc||c===k.i.input.pa.om||c===k.i.input.pa.Hg)c=this.l$(a);else if(c===k.i.input.pa.Oa)c=this.ora(a);else if(c===k.i.input.pa.qf)c=this.Fra(a,a.level);else if(c===k.i.input.pa.Np)c=this.e$(a,!1);else if(c===k.i.input.pa.oo)c=this.e$(a,!0);else if(c===
k.i.input.pa.gj)c=this.qra(a);else if(c===k.i.input.pa.Dc)c=this.sra(a);else if(c===k.i.input.pa.Yb)c=this.Tra(a);else{if(c===k.i.input.pa.Vw||c===k.i.input.pa.U6||c===k.i.input.pa.mE)return null;c=this.l$(a)}void 0!==a.gf&&c.gf.Cra(a.gf);return c};b.prototype.bC=function(){return new d.sma(this)};b.prototype.Kl=function(a){return(void 0===a?"(Total)":a).toLocaleLowerCase()};b.prototype.getTimezoneOffset=function(){if(this.type!==k.i.Gc.Oa)return null;if(!f.v(this.Yk))return x.gh.Sf(this.Yk);var a=
this.mapping.Fa(this.uniqueName,"format");if(!f.v(a))return x.gh.Sf(a);a=this.ra.ea(1);if(a.type===k.i.eb.Oa||a.type===k.i.eb.gj){if(a=x.gh.Sf(f.model.B.C.mq),null!==a)return a}else if(a.type===k.i.eb.Dc&&(a=x.gh.Sf(f.model.B.C.Yk),null!==a))return a;return f.v(f.model.B.C.Mj)||isNaN(f.model.B.C.Mj)?null:f.model.B.C.Mj};b.prototype.l$=function(a){var c=void 0===a.uniqueName?a.value+"":a.uniqueName,e=this.Db(c);null===e&&(a.uniqueName=c,void 0===a.caption&&(a.caption=a.value+""),e=k.I.nf.prototype.fc.call(this,
a));return e};b.prototype.Mra=function(a){var c=void 0===a.uniqueName?a.value+"":a.uniqueName;if(!this.Je){var e=this.Db(c);null===e&&(a.uniqueName=c,void 0===a.caption&&(a.caption=a.value+""),a.ec=f.model.B.C.zr&&f.v(a.value)?a.value:f.O.C4(a.value),e=k.I.nf.prototype.fc.call(this,a))}return e};b.prototype.sra=function(a){var c=new f.Gg(a.value,{yx:!1});c.dj(this.getTimezoneOffset());this instanceof k.external.kc.I.CN||c.round(this.interval);c=c.getTime();var e=a.uniqueName;if(void 0===a.uniqueName||
f.v(a.parent)&&f.v(a.ei))e=isNaN(c)?f.model.A.j.cn:""+c;var g=this.Db(e);null===g&&(a.uniqueName=e,a.ec=c,g=k.I.nf.prototype.fc.call(this,a));return g};b.prototype.Tra=function(a){var c=parseFloat(a.value),e=this.mapping.Fa(this.uniqueName,"format",f.model.B.C.Cp),g=isNaN(c)||""===String(a.value).trim()||c.toString()!==a.value.toString();e=g?"":f.O.Hw(c,e);g=g?"":""+c;var l=this.Db(g);null===l&&(a.uniqueName=g,a.caption=e,a.ec=c,l=k.I.nf.prototype.fc.call(this,a));return l};b.prototype.qra=function(a){var c=
new f.Gg(a.value,{yx:!1});c.dj(this.getTimezoneOffset());this instanceof k.external.kc.I.CN||c.round(this.interval);var e=c.getTime();c=e;var g=a.uniqueName;if(void 0===a.uniqueName||f.v(a.parent)&&f.v(a.ei))g=isNaN(e)?f.model.A.j.cn:""+e;!f.model.B.C.zr||null!==a.value&&"null"!==a.value||(g="null",c=null);e=this.Db(g);null===e&&(a.uniqueName=g,a.ec=c,e=k.I.nf.prototype.fc.call(this,a));return e};b.prototype.e$=function(a,c){var e=new f.Gg(a.value,{yx:!1});f.v(f.model.B.C.Mj)||e.dj(f.model.B.C.Mj);
var g="";if(null!=e&&!isNaN(e.getTime())&&e.Cg()){var l=f.model.A.j.T7[Math.floor(e.getMonth()/3)];var m=f.model.A.j.Vq[e.getMonth()];var n=e.getDate().toString();var p=e.getFullYear().toString();e=e.getTime()}else return n=f.model.A.j.cn,p=this.Db(n),null===p&&(a.uniqueName=n,a.caption=n,p=k.I.nf.prototype.fc.call(this,a)),p;var t=""+p,r=p;p=this.Db(t);null===p&&(a.uniqueName=t,a.caption=r,p=k.I.nf.prototype.fc.call(this,a));c&&(c="["+t+"].["+l+"]",r=l,g=p,p=this.Db(c),null===p&&(a.uniqueName=c,
a.caption=r,a.parent=g,p=k.I.nf.prototype.fc.call(this,a)),g=".["+l+"]");l=m;m="["+t+"]"+g+".["+m+"]";g=p;p=this.Db(m);null===p&&(a.uniqueName=m,a.caption=l,a.parent=g,p=k.I.nf.prototype.fc.call(this,a));l=n;n=m+".["+n+"]";g=p;p=this.Db(n);null===p&&(a.uniqueName=n,a.caption=l,a.parent=g,a.ec=e,p=k.I.nf.prototype.fc.call(this,a));return p};b.prototype.ora=function(a){var c=[],e=new f.Gg(a.value,{yx:!1});f.v(f.model.B.C.Mj)||e.dj(f.model.B.C.Mj);if(null!==e&&!isNaN(e.getTime())&&e.Cg()){var g=f.model.A.j.Vq[e.getMonth()];
var l=e.getDate().toString();var m=e.getFullYear().toString();var n=e.getTime()}else{l=f.model.A.j.cn;for(n=0;3>n;n++){a=this.wi.Ma.ea(n);var p=a.Db(l);null===p&&(p=a.fc(new k.I.Rd({uniqueName:l})));c.push(p)}return c}a=this.wi.Ma.ea(0);var t=this.wV(m);p=a.Db(t);null===p&&(p=a.fc(new k.I.Rd({uniqueName:m,caption:t,ec:e.getFullYear()})));c.push(p);a=this.wi.Ma.ea(1);m=this.wV(g);p=a.Db(m);null===p&&(p=a.fc(new k.I.Rd({uniqueName:g,caption:m})));c.push(p);a=this.wi.Ma.ea(2);g=this.wV(l);p=a.Db(g);
null===p&&(p=a.fc(new k.I.Rd({uniqueName:l,caption:g,ec:n})));c.push(p);return c};b.prototype.wV=function(a){return a&&0<a.length&&"NaN"!=a?a:f.model.A.j.cn};b.prototype.Fra=function(a,c){var e=void 0===a.parent?this.Db(a.ei):a.parent;null===e&&void 0!==a.ei&&(e=this.UR(a.ei));var g=f.v(a.uniqueName)||!f.v(a.ei)&&"["===a.ei.substr(0,1)||!f.v(a.uniqueName)&&"["===a.uniqueName.substr(0,1)?a.value+"":a.uniqueName;if(1<c.sb){var l=c.hierarchy.ra.ea(c.sb-1);null===e&&(e=c.hierarchy.Db(f.model.A.j.Mk),
null===e&&(e=l.hierarchy.fc(new k.I.Rd({uniqueName:f.model.A.j.Mk,caption:f.model.A.j.Mk}))));g=1===l.sb?"["+e.uniqueName+"].["+g+"]":e.uniqueName+".["+g+"]"}l=c.hierarchy.Db(g);null===l&&(a.uniqueName=g,a.caption=f.v(a.caption)?a.value:a.caption,a.parent=1<c.sb?e:void 0,l=this.fc(a,k.i.eb.wD(c.type)));return l};b.prototype.Ji=function(){var a=k.I.nf.prototype.Ji.call(this);a.type=this.inputType;return a};b.prototype.clone=function(){var a=k.I.nf.prototype.clone.call(this);a.ZP=this.ZP;return a};
q.Object.defineProperties(b.prototype,{interval:{configurable:!0,enumerable:!0,get:function(){return this.type===k.i.Gc.Oa?this.ZP:null},set:function(a){if(this.type===k.i.Gc.Oa){var c=a.substr(-1);if("y"===c||"q"===c||"M"===c||"w"===c)a="1"+c;this.ZP=a}else this.ZP=null}},Yk:{configurable:!0,enumerable:!0,get:function(){return this.hqa},set:function(a){this.hqa=a}},inputType:{configurable:!0,enumerable:!0,get:function(){return this.YP},set:function(a){this.YP=a}},ce:{configurable:!0,enumerable:!0,
get:function(){return!0},set:function(){}}});d.Yz=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(a,c,e){return k.I.$m.call(this,a,void 0===c?"":c,void 0===e?0:e)||this}u(b,k.I.$m);d.FW=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return k.I.Pq.apply(this,arguments)||this}u(b,k.I.Pq);b.prototype.La=function(){var a=k.I.Pq.prototype.La.call(this);a.uniqueName=this.Xi;this.parent&&(a.parentMember=this.parent.Xi);return a};d.sma=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){return k.I.ek.call(this,a,void 0===c?"":c)||this}u(b,k.I.ek);b.prototype.clone=function(){var a=new b(this.uniqueName);this.xK(a);return a};b.prototype.Ji=function(){var a=k.I.ek.prototype.Ji.call(this),c=k.Na.U().I.Vj(this.uniqueName);f.v(c)?a.type=k.i.input.pa.fb:a.type=c.inputType;return a};q.Object.defineProperties(b.prototype,{ac:{configurable:!0,enumerable:!0,get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},
caption:{configurable:!0,enumerable:!0,get:function(){if(!1===f.model.B.C.iz||this.Ka)return this.ac;switch(this.$){case k.i.ca.sc:return f.O.bind(f.model.A.j.LN,this.ac);case k.i.ca.Bs:return f.O.bind(f.model.A.j.QO,this.ac);case k.i.ca.hj:return f.O.bind(f.model.A.j.SN,this.ac);case k.i.ca.Hp:return f.O.bind(f.model.A.j.FN,this.ac);case k.i.ca.Mu:return f.O.bind(f.model.A.j.HW,this.ac);case k.i.ca.Su:return f.O.bind(f.model.A.j.ZO,this.ac);case k.i.ca.Tu:return f.O.bind(f.model.A.j.$O,this.ac);
case k.i.ca.MAX:return f.O.bind(f.model.A.j.zO,this.ac);case k.i.ca.MIN:return f.O.bind(f.model.A.j.IO,this.ac);case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.ac);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.ac);case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.ac);case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.ac);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.ac);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.ac);case k.i.ca.nm:return f.O.bind(f.model.A.j.RO,this.ac);case k.i.ca.ln:return f.O.bind(f.model.A.j.TO,
this.ac);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.ac);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.ac);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.ac);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.ac);case k.i.ca.NONE:return this.ac}return f.O.bind(f.model.A.j.WI,this.ac)},set:function(a){this.qc=a}},Yl:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(){}}});d.i7=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){return k.I.Oq.call(this,a,void 0===c?"":c)||this}u(b,k.I.Oq);d.h7=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.rs.call(this)||this;a.AR="";a.id="";a.ra=[];a.E0=!1;a.QA={};a.GA={};a.NY();a.Pe=new f.nb;a.yv={};a.Ty={};a.mk=new f.nb;a.types={};a.gf=[];a.AR="";a.id="";a.Je=f.model.B.C.Je;return a}u(b,k.I.rs);b.prototype.clear=function(){this.QA={};this.GA={};this.Pe=new f.nb;this.yv={};this.Ty={};this.mk=new f.nb;this.types={};this.id=this.AR="";k.I.rs.prototype.clear.call(this)};b.prototype.Mn=function(a,c){return new d.Yz(a,c)};b.prototype.Cca=
function(a,c){return new d.i7(a,c)};b.prototype.el=function(a,c,e){return new d.FW(a,c,e)};b.prototype.Vj=function(a){return this.QA[a]};b.prototype.Ee=function(a){return this.GA[a]};b.prototype.XB=function(a){if(void 0!==this.types[a])return this.types[a];a=this.Ty[a];if(!f.v(a))return this.types[a]};b.prototype.hca=function(a){return this.gf[a]};b.prototype.VB=function(a){var c=this.Pe.getItem(a);if(f.v(c)){if(a=this.yv[a],Array.isArray(a)){for(var e=[],g=0;g<a.length;g++)c=this.Pe.getItem(a[g]),
f.v(c)||e.push(c);return e}}else return c};b.prototype.Z_=function(a){a=void 0===a?!0:a;var c=this.Pe.Ic(!0);if(a||0===Object.keys(this.yv).length)return c;a=[];for(var e=0;e<c.length;e++)void 0!==this.Ty[c[e]]?-1===a.indexOf(this.Ty[c[e]])&&a.push(this.Ty[c[e]]):a.push(c[e]);return a};b.prototype.UJ=function(a,c){this.Je||(this.QA[a]=this.Mg(c),this.GA[c]=this.$c(a))};b.prototype.wo=function(a,c,e,g){c=this.Cca(a,c);c.type=e;g.hasOwnProperty("supportedAggregations")&&(c.bm=g.supportedAggregations);
c.Tc=g.availableAggregations;this.Hj(c);this.UJ(c.uniqueName,a);return c};b.prototype.k$=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Eu;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(m.caption==f.model.A.j.Mk?g+".[]":g,m.caption,1);a.type=k.i.eb.Sc;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.yra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption;a.type=k.i.Lz.Zz;var m=
this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);var n=g+".Year";a=this.el(n,f.model.A.j.Qk,m.ra.length);a.type=k.i.eb.Qk;m.ph(a);this.mk.Pa(n,a);c.type==k.i.input.pa.oo&&(n=g+".Quarter",a=this.el(n,f.model.A.j.Cs,m.ra.length),a.type=k.i.eb.Cs,m.ph(a),this.mk.Pa(n,a));n=g+".Month";a=this.el(n,f.model.A.j.Hg,m.ra.length);a.type=k.i.eb.Hg;m.ph(a);this.mk.Pa(n,a);n=g+".Day";a=this.el(n,f.model.A.j.hm,m.ra.length);a.type=k.i.eb.hm;m.ph(a);this.mk.Pa(n,a);this.Je||this.wo(g,l,k.i.Ja.sc,
c);f.v(c.interval)?m.interval=this.mapping.Fa(g,"interval","1d"):m.interval=c.interval;this.Pe.Pa(e,m);m.inputType=c.type};b.prototype.g$=function(a,c,e){var g=c.hasOwnProperty("hierarchy")?c.hierarchy:c.uniqueName,l=a.Mg(g);void 0===l&&(l=this.Mn(g,g),void 0!==c.folder&&(l.Qc=c.folder),a.Uh(l));var m=0;if(c.hasOwnProperty("parent")){m=l.Gt(c.parent);void 0===m&&(m=l.Gt(c.parent.toLowerCase()));if(void 0===m){void 0===this.ra[l.uniqueName]&&(this.ra[l.uniqueName]=[]);this.ra[l.uniqueName][c.parent]=
[c,e];return}m=l.ra.indexOf(m.uniqueName)}else l.type=k.i.Gc.M_(c.levelType);var n=c.hasOwnProperty("caption")?c.caption:c.hasOwnProperty("level")?c.level:e;m=this.el(e,n,m+1);m.type=k.i.eb.M_(c.levelType);l.ph(m);this.Je||f.v(this.$c(g))&&this.wo(g,g,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);this.ra[l.uniqueName]&&this.ra[l.uniqueName][e]&&this.g$(a,this.ra[l.uniqueName][e][0],this.ra[l.uniqueName][e][1]);f.v(l.inputType)&&(l.inputType=c.type)};b.prototype.nra=function(a,c,e){var g=c.uniqueName,
l=f.ha(c.caption)?e:c.caption;a.type=k.i.Lz.Zz;var m=g+".Year",n=l+"."+f.model.A.j.Qk;var p=this.Mn(m,n);p.type=k.i.Gc.Oa;void 0!==c.folder&&(p.Qc=c.folder);f.v(c.interval)?p.interval=this.mapping.Fa(g,"interval","1d"):p.interval=c.interval;a.Uh(p);var t=this.el(m+"."+n,n,1);t.type=k.i.eb.Qk;p.ph(t);this.mk.Pa(m,t);this.Je||this.wo(m,n,k.i.Ja.sc,c);p.inputType=c.type;m=g+".Month";n=l+"."+f.model.A.j.Hg;p=this.Mn(m,n);void 0!==c.folder&&(p.Qc=c.folder);f.v(c.interval)?p.interval=this.mapping.Fa(g,
"interval","1d"):p.interval=c.interval;a.Uh(p);var r=this.el(m+"."+n,n,1);r.type=k.i.eb.Hg;p.ph(r);this.mk.Pa(m,t);this.Je||this.wo(m,n,k.i.Ja.sc,c);p.inputType=c.type;m=g+".Day";l=l+"."+f.model.A.j.hm;p=this.Mn(m,l);void 0!==c.folder&&(p.Qc=c.folder);f.v(c.interval)?p.interval=this.mapping.Fa(g,"interval","1d"):p.interval=c.interval;a.Uh(p);g=this.el(m+"."+l,l,1);g.type=k.i.eb.hm;p.ph(g);this.mk.Pa(m,t);this.Je||this.wo(m,l,k.i.Ja.sc,c);p.inputType=c.type;this.Pe.Pa(e,a)};b.prototype.Lra=function(a,
c,e,g){var l=c.uniqueName,m=f.ha(c.caption)?e:c.caption;this.Je?g?(l=this.wo(l,m,k.i.Ja.fb,c),f.ha(c.folder)?f.ha(c.dimensionCaption)?f.ha(c.dimensionUniqueName)||(l.yg=c.dimensionUniqueName):l.yg=c.dimensionCaption:l.yg=c.folder,this.Pe.Pa(e,l)):(g=this.Mn(l,m),g.type=k.i.Gc.Op,void 0!==c.folder&&(g.Qc=c.folder),a.Uh(g),l=this.el(l,m,1),l.type=k.i.eb.fb,g.ph(l),this.Pe.Pa(e,g),this.mk.Pa(e,g),g.inputType=c.type):(g=this.Mn(l,m),g.type=k.i.Gc.Op,void 0!==c.folder&&(g.Qc=c.folder),a.Uh(g),a=this.el(l,
m,1),a.type=k.i.eb.fb,g.ph(a),this.wo(l,m,k.i.Ja.fb,c),this.Pe.Pa(e,g),this.mk.Pa(e,g),g.inputType=c.type)};b.prototype.Jra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.Hg;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.Vra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Eu;
void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.hm;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.sc,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.pra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.Oa;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.Oa,c);f.v(c.interval)?m.interval=this.mapping.Fa(g,"interval","1d"):m.interval=c.interval;f.v(c.format)||
(m.Yk=c.format);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.Sra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Op;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);a=this.el(g,l,1);a.type=k.i.eb.Yb;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.Yb,c);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.rra=function(a,c,e){var g=c.uniqueName,l=f.ha(c.caption)?e:c.caption,m=this.Mn(g,l);m.type=k.i.Gc.Oa;void 0!==c.folder&&(m.Qc=c.folder);a.Uh(m);
a=this.el(g,l,1);a.type=k.i.eb.Dc;m.ph(a);this.Je||this.wo(g,l,k.i.Ja.Dc,c);f.v(c.interval)?m.interval=this.mapping.Fa(g,"interval","1s"):m.interval=c.interval;f.v(c.format)||(m.Yk=c.format);this.Pe.Pa(e,m);this.mk.Pa(e,m);m.inputType=c.type};b.prototype.aqa=function(a,c){for(var e=0;e<a.length;e++)if("string"!==typeof a[e])return!1;for(var g in c)if(-1===a.indexOf(g))return!1;return!0};b.prototype.AQ=function(a,c){if(a instanceof k.I.Aj){var e=a;a=a.mapping}else!f.v(c)&&k.I.Aj.nT(a)&&(e=new k.I.Aj(a));
if(void 0!==e){var g={};if(Array.isArray(c)){if(this.aqa(c,a))for(var l=0;l<c.length;l++){var m=c[l];g[m]=e.O1(m,a[m])}for(var n in a)void 0===g[n]&&(g[n]=a[n])}else{for(n in a)g[n]=a[n];for(n in c)g[n]="object"!==typeof a[n]?{uniqueName:n,caption:n,type:k.i.input.pa.M4(c[n])}:a[n]}}void 0===g&&(g=a);for(n in g)if(void 0!==e||"string"!==typeof g[n]&&"number"!==typeof g[n])if(void 0===e&&f.v(g[n]))this.EY(n,k.i.input.pa.Sc);else if(void 0===e&&g[n]instanceof Date)this.EY(n,f.model.B.C.yR);else if(void 0===
e&&Array.isArray(g[n]))this.ux(a[n],n);else if(g[n].hasOwnProperty("formula"))f.ha(g[n].formula)||this.ct(g[n],n);else if(Array.isArray(g[n]))this.ux(g[n],n);else{l=k.i.input.pa.Sc;g[n].hasOwnProperty("type")&&(c=String(g[n].type).trim().toLowerCase(),k.i.input.pa.valid(c),l=k.me.type(c));l!==k.i.input.pa.fb&&(a[n]&&delete a[n].isMeasure,delete g[n].isMeasure);g[n].hasOwnProperty("isMeasure")&&String(g[n].isMeasure).trim();c={};for(var p in g[n])c[p]=g[n][p];c.type=l;this.ux(c,n)}else c=k.i.input.pa.M4(g[n]),
this.EY(n,c);this.ce=!0};b.prototype.ct=function(a,c){c=new k.I.ek(c,void 0==a.caption?c:a.caption);c.qe=a.formula;c.Eo=void 0==a.calculateNaN?c.Eo:a.calculateNaN;a.hasOwnProperty("grandTotalCaption")&&(c.Ir=a.grandTotalCaption);f.model.B.C.GV&&(a=x.mO.PQ(c.qe,c.uniqueName),0==a.bw&&f.Va(a.errorMessage));f.model.Ta.U().ct(c)};b.prototype.EY=function(a,c){this.ux({uniqueName:a,caption:a,FK:a,type:c},a)};b.prototype.ux=function(a,c){c=void 0===c?"":c;if(!Array.isArray(a)){var e={},g;for(g in a)e[g]=
a[g];e.hasOwnProperty("uniqueName")||(e.uniqueName=c);a=this.mapping.O1(c,e)}if(!a.hasOwnProperty("visible")||!1!==a.visible)if(Array.isArray(a))for(this.yv[c]=[],e=0;e<a.length;e++)void 0===a[e].uniqueName&&(a[e].uniqueName=c+"."+e),this.B8(a[e]),this.yv[c].push(a[e].uniqueName),this.Ty[a[e].uniqueName]=c;else this.B8(a)};b.prototype.B8=function(a){var c=a.uniqueName;"[Measures]"===c.substr(0,10)&&(k.me.yD=!1);f.v(a.hierarchy)||a.type===k.i.input.pa.mE||(a.levelType=a.type===k.i.input.pa.qf?k.i.input.pa.Sc:
a.type,a.type=k.i.input.pa.qf);a.type===k.i.input.pa.qf&&!1===k.external.kc.I.ho.GL&&(a.type=k.i.input.pa.Sc,a.hasOwnProperty("level")&&(a.caption=a.level),delete a.hierarchy,delete a.level,delete a.parent);var e=k.i.input.pa.Sc;k.i.input.pa.valid(a.type)&&(e=a.type);var g;a.hasOwnProperty("dimensionUniqueName")?g=this.Vo(a.dimensionUniqueName):e===k.i.input.pa.qf&&a.hasOwnProperty("hierarchy")&&(g=this.Vo(a.hierarchy));var l=!1;a.hasOwnProperty("isMeasure")&&(l=f.O.Rc(String(a.isMeasure).trim()));
this.Je&&l||void 0!==g||(g=k.I.Oq.tb(a),a.uniqueName=k.me.zg(a.uniqueName,a.caption),a.hasOwnProperty("dimensionUniqueName")&&(g.caption=g.uniqueName=a.dimensionUniqueName),a.hasOwnProperty("dimensionCaption")&&(g.caption=a.dimensionCaption),e===k.i.input.pa.qf&&a.hasOwnProperty("hierarchy")&&!a.hasOwnProperty("dimensionUniqueName")&&(g.uniqueName=a.hierarchy),this.dt(g));this.types[c]=e;switch(e){case k.i.input.pa.Sc:this.k$(g,a,c);break;case k.i.input.pa.fb:this.Lra(g,a,c,l);break;case k.i.input.pa.Hg:this.Jra(g,
a,c);break;case k.i.input.pa.om:this.Vra(g,a,c);break;case k.i.input.pa.Oa:this.nra(g,a,c);break;case k.i.input.pa.Dc:this.rra(g,a,c);break;case k.i.input.pa.Yb:this.Sra(g,a,c);break;case k.i.input.pa.qf:this.g$(g,a,c);break;case k.i.input.pa.Np:case k.i.input.pa.oo:this.yra(g,a,c);break;case k.i.input.pa.gj:this.pra(g,a,c);break;case k.i.input.pa.Vw:this.id=c;this.Pe.Pa(c,null);break;case k.i.input.pa.V5:this.AR=c;break;case k.i.input.pa.U6:break;case k.i.input.pa.mE:this.mra(a,c);break;default:this.k$(g,
a,c)}};b.prototype.fc=function(a,c,e,g,l){if(Array.isArray(this.yv[c]))for(e=0;e<this.yv[c].length;e++)this.C8(a,this.yv[c][e],this.XB(this.yv[c][e]),g,l);else return this.C8(a,c,e,g,l)};b.prototype.C8=function(a,c,e,g,l){a=a.clone();if(this.Je&&e===k.i.input.pa.fb)l.push(f.O.C4(a.value));else{var m=c=this.VB(c);if(!f.v(m)){switch(e){case k.i.input.pa.Oa:m=c.Ma.ea(0);var n=m.fc(a,e);break;case k.i.input.pa.qf:var p=c.hierarchy.ra.ea(c.sb-1);0<p.sb&&f.v(a.parent)&&f.v(a.ei)&&(a.parent=c.hierarchy.va(g[this.mk.indexOf(p.uniqueName)]));
a.level=c;p=c.hierarchy.fc(a,e);break;default:p=m.fc(a,e)}switch(e){case k.i.input.pa.fb:this.Je||g.push(p.ordinal);l.push(f.O.C4(a.value));break;case k.i.input.pa.Dc:case k.i.input.pa.gj:g.push(p.ordinal);this.Je||l.push(p.ec);break;case k.i.input.pa.Np:1===p.level.sb?(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||l.push(1);break;case k.i.input.pa.oo:1===p.level.sb?(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||l.push(1);break;case k.i.input.pa.Oa:for(e=0;e<n.length;e++)g.push(n[e].ordinal),this.Je||l.push(1);break;case k.i.input.pa.Yb:g.push(p.ordinal);this.Je||l.push(p.ec);break;case k.i.input.pa.qf:g.push(p.ordinal);this.Je||1===p.level.sb&&l.push(1);break;default:g.push(p.ordinal),this.Je||(f.ha(a.value)?l.push(NaN):l.push(1))}return p}}};b.prototype.mra=function(a,c){this.E0=
!0;a=a.hierarchy;f.v(this.gf[a])&&(this.gf[a]=[]);this.Pe.Pa(c,null);this.gf[a].push(c)};d.fE=b})(h.I||(h.I={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=this;this.TH=1048576;this.vBa=this.mT=!1;this.jB=this.Jj=this.iK=0;this.encoding="UTF-8";this.Hha=function(){return b.FFa()};this.ej=function(){return b.mp()}}d.prototype.dN=function(b,a){var c=this;this.timer=new x.Es(100,1E5);this.timer.N(x.Ze.Nk,this.Hha);this.timer.N(x.Ze.Ok,this.ej);this.timer.start();this.ma=new D.r8;this.ma.responseType="blob";this.ma.N(y.da.Fz,function(){return c.tDa()});this.ma.N(y.da.je,function(e){return c.Mqa(e)});
this.ma.N(y.da.Jc,function(){return c.Kqa()});this.ma.N(y.da.ya,function(e){return c.Lqa(e)});this.vh(this.ma,a);this.ma.load(b)};d.prototype.Mqa=function(b){var a=b.data;404==a.target.status?this.F2(b):(this.Jj=a.loaded,this.iK=a.total,this.zEa(a))};d.prototype.Kqa=function(){var b=this;if(!f.v(this.ma)&&!f.v(this.ma.response)){this.mT=!0;this.jB=0;this.iK=this.ma.response.size;this.encoding=this.ma.vya();var a=new FileReader;a.addEventListener("loadend",function(){return e()});var c=null,e=function(){b.gFa(a.result,
function(){b.jB+=c.size;g()},c.size==b.iK)},g=function(){b.jB>=b.iK?(b.vBa=!0,b.fFa()):(c=b.ma.response.slice(b.jB,b.jB+b.TH),a.readAsText(c,b.encoding))};g()}};d.prototype.Lqa=function(b){this.ag();this.F2(b)};d.prototype.vh=function(b,a){if(!f.v(a))for(var c in a)a.hasOwnProperty(c)&&b.requestHeaders.push(new D.s8(c,a[c]))};d.prototype.FFa=function(){0<this.Jj||this.mT?this.ag():null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/10,new f.model.Zb.W.pf,!1,
!1,1)))};d.prototype.mp=function(){this.timer.sl&&this.ag()};d.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Hha),this.timer.mb(x.Ze.Ok,this.ej))};h.j8=d})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.LocalConnectionInfo.call(this)||this;a.fieldSeparator=null;a.thousandsSeparator="";a.recordsetDelimiter="\n";a.ignoreQuotedLineBreaks=!0;a.Ba=k.i.oa.xh;return a}u(b,h.LocalConnectionInfo);b.prototype.isEqual=function(a){return a==this?!0:h.LocalConnectionInfo.prototype.isEqual.call(this,a)};b.tb=function(a){var c=new b;f.v(a.browseForFile)||(c.browseForFile=a.browseForFile);f.v(a.requestPermission)||(c.requestPermission=a.requestPermission);
f.v(a.filename)||""==a.filename||(c.filename=a.filename);f.v(a.fieldSeparator)||(c.fieldSeparator=a.fieldSeparator);f.v(a.thousandSeparator)||(c.thousandsSeparator=a.thousandSeparator);f.v(a.thousandsSeparator)||(c.thousandsSeparator=a.thousandsSeparator);f.v(a.recordsetDelimiter)||(c.recordsetDelimiter=a.recordsetDelimiter);f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.ignoreQuotedLineBreaks)||(c.ignoreQuotedLineBreaks=a.ignoreQuotedLineBreaks);f.v(a.mapping)||(c.mapping=a.mapping instanceof
k.I.Aj?a.mapping:new k.I.Aj(a.mapping));f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.Qj=function(a){var c=new b,e=a.find("params");0!=e.find("param[name=ignoreQuotedLineBreaks]").length&&(c.ignoreQuotedLineBreaks=f.O.Rc(e.find("param[name=ignoreQuotedLineBreaks]").text()));a=a.find("dataSource");0!=a.find("browseForFile").length&&(c.browseForFile=f.O.Rc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("fieldSeparator").length&&
(c.fieldSeparator=a.find("fieldSeparator").text());0!=a.find("thousandSeparator").length&&(c.thousandsSeparator=a.find("thousandSeparator").text());0!=a.find("thousandsSeparator").length&&(c.thousandsSeparator=a.find("thousandsSeparator").text());0!=a.find("recordsetDelimiter").length&&(c.recordsetDelimiter=a.find("recordsetDelimiter").text());0!=a.find("ignoreQuotedLineBreaks").length&&(c.ignoreQuotedLineBreaks=f.O.Rc(a.find("ignoreQuotedLineBreaks").text()));return c};b.prototype.co=function(a){a=
void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);(a||this.browseForFile)&&c.append(D.aa.create("<browseForFile/>").text(this.browseForFile));this.filename&&c.append(D.aa.create("<filename/>").append(D.aa.Bh(this.filename)));this.fieldSeparator&&c.append(D.aa.create("<fieldSeparator/>").append(D.aa.Bh(this.fieldSeparator)));this.thousandsSeparator&&c.append(D.aa.create("<thousandsSeparator/>").append(D.aa.Bh(this.thousandsSeparator)));this.recordsetDelimiter&&"\n"!=this.recordsetDelimiter&&
c.append(D.aa.create("<recordsetDelimiter/>").append(D.aa.Bh(this.recordsetDelimiter)));(a||0==this.ignoreQuotedLineBreaks)&&c.append(D.aa.create("<ignoreQuotedLineBreaks/>").text(this.ignoreQuotedLineBreaks));return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;if(a||this.browseForFile)c.browseForFile=this.browseForFile;this.filename&&(c.filename=this.filename);this.fieldSeparator&&(c.fieldSeparator=this.fieldSeparator);this.thousandsSeparator&&(c.thousandsSeparator=this.thousandsSeparator);
this.recordsetDelimiter&&"\n"!=this.recordsetDelimiter&&(c.recordsetDelimiter=this.recordsetDelimiter);if(a||0==this.ignoreQuotedLineBreaks)c.ignoreQuotedLineBreaks=this.ignoreQuotedLineBreaks;if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;this.browseForFile&&(a.browseForFile=this.browseForFile);this.filename&&(a.filename=this.filename);this.fieldSeparator&&
(a.fieldSeparator=this.fieldSeparator);this.thousandsSeparator&&(a.thousandsSeparator=this.thousandsSeparator);this.recordsetDelimiter&&"\n"!=this.recordsetDelimiter&&(a.recordsetDelimiter=this.recordsetDelimiter);0==this.ignoreQuotedLineBreaks&&(a.ignoreQuotedLineBreaks=this.ignoreQuotedLineBreaks);if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);this.withCredentials&&(a.withCredentials=this.withCredentials);return a};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,
enumerable:!0,get:function(){return f.ha(this.filename)&&(null==this.browseForFile||0==this.browseForFile)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.data)},set:function(){}}});d.CSVConnectionInfo=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.LocalConnectionInfo.call(this)||this;a.embedded=!1;a.isOCSV2Data=!1;a.embeddedDataOffset=0;a.Ba=k.i.oa.Pp;return a}u(b,h.LocalConnectionInfo);b.prototype.isEqual=function(a){return h.LocalConnectionInfo.prototype.isEqual.call(this,a)&&0==this.embedded&&0==a.embedded};b.tb=function(a){var c=new b;f.v(a.browseForFile)||(c.browseForFile=a.browseForFile);f.v(a.filename)||""==a.filename||(c.filename=a.filename);f.v(a.requestHeaders)||
(c.requestHeaders=a.requestHeaders);f.v(a.embedded)||(c.embedded=a.embedded);f.v(a.embeddedDataOffset)||(c.embeddedDataOffset=a.embeddedDataOffset);f.v(a.embeddedDataToLoad)||(c.embeddedDataToLoad=a.embeddedDataToLoad);f.v(a.isOCSV2Data)||(c.isOCSV2Data=a.isOCSV2Data);f.v(a.mapping)||(c.mapping=a.mapping instanceof k.I.Aj?a.mapping:new k.I.Aj(a.mapping));return c};b.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);(a||this.browseForFile)&&c.append(D.aa.create("<browseForFile/>").text(this.browseForFile));
this.filename&&c.append(D.aa.create("<filename/>").append(D.aa.Bh(this.filename)));this.embedded&&c.append(D.aa.create("<embedded/>").text(this.embedded));return c};b.Qj=function(a){var c=new b;0!=a.find("browseForFile").length&&(c.browseForFile=f.O.Rc(a.find("browseForFile").text()));0!=a.find("filename").length&&(c.filename=a.find("filename").text());0!=a.find("embedded").length&&(c.embedded=f.O.Rc(a.find("embedded").text()));return c};b.prototype.La=function(a){var c={};c.type=this.Ba;if((void 0===
a?0:a)||this.browseForFile)c.browseForFile=this.browseForFile;this.filename&&(c.filename=this.filename);this.embedded&&(c.embedded=this.embedded);return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;this.browseForFile&&(a.browseForFile=this.browseForFile);this.filename&&(a.filename=this.filename);this.embedded&&(a.embedded=this.embedded);return a};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return f.ha(this.filename)&&(null==this.browseForFile||
0==this.browseForFile)&&(null==this.embedded||0==this.embedded)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return this.embedded},set:function(){}}});d.OCSVConnectionInfo=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){var c=this;this.thousandsSeparator="";this.D_=[".csv"];this.Wva=RegExp('""',"g");this.Vda=!1;this.Ksa=function(){return c.F8()};this.Gk=function(){return c.Vr()};this.ej=function(){return c.mp()};this.Kh=0;this.au=!1;this.A4=null;this.Ifa=0;this.wa=k.Na.U();this.D_=[".csv"]}a.prototype.clear=function(){this.data=[];this.Ev=this.Kh=this.DB=this.Jj=0;this.recordsetDelimiter="\n";this.OR='"';this.tB=[];this.Qe=[];this.JL=
this.PL=this.Pn=this.kT=!1;this.de="";this.hb=0;this.Nq=100;null!=this.ma&&(this.ma.Od(),this.ma.dispose(),this.ma=null);this.ag();f.za(!1)};a.prototype.load=function(c,e,g,l,m){try{this.clear(),this.filename=c.filename,this.Ib=e,this.Xa=g,this.Be=l,this.qF=m,this.fieldSeparator=c.fieldSeparator,this.thousandsSeparator=c.thousandsSeparator,this.ignoreQuotedLineBreaks=c.ignoreQuotedLineBreaks,c.NL?this.P_():(void 0!==this.filename&&""!=this.filename&&"()"!=this.filename.substr(-2)||!1!==c.browseForFile?
this.filename=x.hx.AG(this.filename,!f.model.B.C.XY):this.nl(),!0===c.browseForFile?this.F$(c):(f.za(!0,f.model.A.j.Hf),this.H1(this.filename,c.requestHeaders,c.withCredentials)))}catch(n){console.error(n.stack),this.nl()}};a.prototype.P_=function(){var c=this;this.fs();this.fieldSeparator=",";this.TC("Browser, Duration, Page Views, New Session","Chrome, 100, 3, true",new k.I.Aj({Browser:{type:"string"},Duration:{type:"time"},"Page Views":{type:"number"},"New Session":{type:"number"}}));this.kT=!0;
this.wa.qa.P_(function(){c.Py()})};a.prototype.requestPermission=function(){f.Va(f.model.A.j.lna,f.model.A.j.Sia,f.rb.pO,[f.model.A.j.Jk,f.model.A.j.Tia],[this.Ksa])};a.prototype.F$=function(c){!0===c.requestPermission?this.requestPermission():this.F8()};a.prototype.F8=function(){var c=this;this.Rv=new D.L6;this.Rv.N(y.da.to,function(){return c.WDa()});this.Rv.N(y.da.Jc,function(){return c.nM()});this.Rv.N(y.da.je,function(e){return c.oM(e)});this.Rv.N(y.da.SV,function(){return c.UDa()});this.Rv.N(y.da.ya,
function(){return c.nl()});this.Rv.E$(this.D_)};a.prototype.WDa=function(){f.za(!0,f.model.A.j.Hf,"",!0,!0);this.ma=this.Rv;this.Rv.load();this.Rv=null};a.prototype.H1=function(c,e,g){var l=this;e=void 0===e?null:e;g=void 0===g?!1:g;this.timer=new x.Es(100,1E5);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start();var m=new D.Qi;m.dataType=D.Jz.lA;m.N(y.da.Jc,function(){return l.nM()});m.N(y.da.Fz,function(){return l.i2()});m.N(y.da.je,function(n){return l.oM(n)});m.N(y.da.ya,
function(n){return l.nl(n)});m.vh(e);m.withCredentials=g;m.load(c);this.ma=m};a.prototype.Vr=function(){0<this.Jj||this.Pn||this.PL?this.ag():null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/10,new f.model.Zb.W.pf,!1,!1,1)))};a.prototype.mp=function(){this.timer.sl&&this.ag()};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.UDa=function(){null!=this.qF&&(this.qF(),
this.qF=null);this.clear()};a.prototype.nl=function(c){c=void 0===c?null:c;f.za(!1);var e="",g="";null!=c&&null!=c.target&&null!=c.target.response&&""!=c.target.response&&(g=f.model.Nb.validate(c.target.response),e=g=700<g.length?g.substr(0,700):g,g=f.O.bind(f.model.A.j.EO,g).replace(/'/g,""));0==this.PL&&(this.PL=!0,c=f.model.Nb.valid(this.filename)?this.filename:f.model.Nb.validate(this.filename),f.Va(f.O.bind(f.model.A.j.EI,c)+g,f.model.A.j.ya,f.rb.ya));null!=this.Xa&&(this.Xa(e),this.Xa=null);
this.ag()};a.prototype.p2=function(){f.za(!1);f.Va(f.O.bind(f.model.A.j.t7),f.model.A.j.ya,f.rb.ya)};a.prototype.oM=function(c){var e=c.data;if(404==e.target.status)this.nl(c);else if(!f.v(this.ma))try{var g=this.ma.response;if(null!=g&&0!=g.length&&(this.Jj!=e.loaded||this.DB!=g.length)&&(this.JL=0<e.total&&e.lengthComputable,this.DB=g.length,this.Jj=e.loaded,1E4<g.length-this.Kh||e.loaded==e.total)){this.Pn=e.loaded==e.total&&e.loaded>=this.ma.response.length;void 0===g||x.Bd().Di||this.Cq(g.substring(this.Kh,
g.length));this.Kh=g.length;var l=0==e.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(e.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(e.loaded),x.Tb.xg(e.total),(e.loaded/e.total*100).toFixed(0));f.za(!0,f.model.A.j.Hf,l)}}catch(m){console.error(m.stack),this.nl()}};a.prototype.i2=function(){f.za(!0,f.model.A.j.Hf,"")};a.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};a.prototype.nM=function(){if(!f.v(this.ma)){try{if(0==this.Kh||!this.JL||x.Bd().Di||this.Kh<=this.ma.response.length){var c=this.ma.response;
f.ha(c)&&!this.au?this.Py():(this.Pn=!0,this.au)?this.JL||(this.Kh<c.length?(this.Cq(c.substring(this.Kh,c.length)),this.Kh=c.length):this.data.push(this.de)):this.Cq(c)}}catch(e){console.error(e.stack),this.nl()}this.ma=null}};a.qda=function(c){c=c.toLowerCase();return-1!=c.indexOf("<html>")||-1!=c.indexOf("<config>")||0==c.trim().length||-1!=c.indexOf("<!doctype")?(f.Va(f.model.A.j.hna,f.model.A.j.ya,f.rb.ya),!1):!0};a.prototype.Cq=function(c){var e=this;this.au=!0;this.fs();0===this.Ev&&-1===c.indexOf("\n")&&
-1!==c.indexOf("\r")&&(this.recordsetDelimiter="\r");f.v(this.fieldSeparator)&&(this.fieldSeparator=this.pta(-1==c.indexOf("\n")&&-1==c.indexOf("\r")?c:c.substring(0,c.indexOf(this.recordsetDelimiter))));this.appendData(c);!1===this.kT&&(1<this.data.length||f.model.B.C.qH)&&(this.Vda&&this.data.shift(),this.TC(this.data.shift(),this.data[0],this.wa.fa.mapping),this.wa.qa.gH(),this.kT=!0);0!==this.Kh&&!x.Bd().Di||this.PL||x.Pk.sn({ao:function(){return e.nu()},Ne:function(){return e.Py()}})};a.prototype.Py=
function(){f.za(!1);this.kT?null!=this.Ib&&this.Ib():(f.model.B.C.qH||f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik),null!=this.Xa&&(this.Xa(f.model.A.j.Nu),this.Xa=null));this.clear()};a.prototype.TC=function(c,e,g){if("string"==typeof c&&!a.qda(c)||"object"==typeof c&&!a.qda(c.toString()))this.nl();else try{f.v(this.fieldSeparator)&&(this.fieldSeparator=",");var l="string"==typeof c?a.uha(c,this.fieldSeparator):c,m="string"==typeof e?a.uha(e,this.fieldSeparator):f.v(e)?[]:e;this.Ol=[];for(c=0;c<l.length;c++){var n=
this.kS(m[c]),p=this.Sv(l[c],n,0==m.length),t=this.k0(l[c],n,0==m.length),r=this.fL(l[c]),v=this.dL(r),z={type:p,uniqueName:r,caption:this.rya(l[c])||v,isMeasure:t};void 0!==g&&(z=g.O1(r,z),f.v(g.Fa(r,"hierarchy"))||z.type===k.i.input.pa.mE||(z.type="level"));if(!z.hasOwnProperty("visible")||!1!==z.visible){this.tB[c]=z.type;this.Qe[c]=z.isMeasure;this.Ol[c]=r;if(p===k.i.input.pa.qf){var B=r.split(":");z.hierarchy=B[0];z.level=B.pop();z.parent=B.join(":")}this.wa.I.ux(z,r)}}}catch(C){console.error(C.stack),
this.p2()}};a.prototype.kS=function(c){void 0!==c&&null!==c&&"string"==typeof c&&(this.thousandsSeparator&&0<this.thousandsSeparator.length&&(f.v(this.A4)&&(this.A4=new RegExp(this.thousandsSeparator,"g")),c=c.replace(this.A4,"")),c=c.replace(",","."));return c};a.prototype.dL=function(c){var e=c.split(b.LH);if(1<e.length)return e[1];this.vy(c)&&(e=c.split(":"));return e[e.length-1]};a.prototype.fL=function(c){c=c.trim().split(b.LH)[0];c=this.x3(c);if(-1<this.Ol.indexOf(c)){for(var e=1,g=c;-1<this.Ol.indexOf(g);)g=
c+e,e++;c=g}return c};a.prototype.rya=function(c){c=c.split(b.LH);return 1<c.length?c[1]:null};a.prototype.x3=function(c){return c.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")};a.prototype.Sv=function(c,e,g){var l=k.i.input.pa.fb;c=c.trim();if(f.v(e)&&!g)return k.i.input.pa.Sc;"+"===c.charAt(0)?l=k.i.input.pa.Sc:"t+"===c.substr(0,2)?l=k.i.input.pa.Yb:"dt+"===c.substr(0,3)?l=k.i.input.pa.Dc:"n+"===c.substr(0,2)?l=k.i.input.pa.fb:"-"===c.charAt(0)?l=k.i.input.pa.fb:
"ds+"===c.substr(0,3)?l=k.i.input.pa.gj:"d+"===c.substr(0,2)?l=k.i.input.pa.Oa:"m+"===c.substr(0,2)?l=k.i.input.pa.Hg:"w+"===c.substr(0,2)?l=k.i.input.pa.om:"D+"===c.substr(0,2)?l=k.i.input.pa.Np:"D4+"===c.substr(0,3)?l=k.i.input.pa.oo:"id+"===c.substr(0,3)?l=k.i.input.pa.Vw:""===e||void 0===e?l=k.i.input.pa.Sc:isNaN(Number(e))&&(l=f.O.dT(e)?f.model.B.C.yR:k.i.input.pa.Sc);l===k.i.input.pa.Sc&&this.vy(c)&&(l=k.i.input.pa.qf);return l};a.prototype.k0=function(c,e,g){return!f.model.B.C.Je||f.v(e)&&
!g?!1:"-"===c.trim().charAt(0)};a.prototype.vy=function(c){"+"===c.charAt(0)&&(c=c.substr(1));return 1<c.split(":").length&&-1<this.Ol.indexOf(c.split(":")[0].trim())};a.prototype.nu=function(){if(this.hb>=this.data.length)return this.Pn;var c=this.data[this.hb];if(!f.ha(c)&&this.Ol){for(var e=!1,g="",l=0,m=[],n=[],p,t=0;t<c.length;t++){var r=c.charAt(t);if(t===c.length-1||r===this.fieldSeparator&&!e){if(t===c.length-1&&r!==this.fieldSeparator&&(g+=r),g=g.trim(),g=g.replace("\r",""),g.charAt(0)===
this.OR&&g.charAt(g.length-1)===this.OR&&(g=g.slice(1,g.length-1),g=g.replace(this.Wva,'"')),this.tB[l]===k.i.input.pa.Vw&&(p=g),void 0!==this.Ol[l]&&(this.tB[l]===k.i.input.pa.fb&&(g=this.kS(g)),e=new k.I.Rd({value:g}),this.wa.I.fc(e,this.Ol[l],this.tB[l],m,n)),e=!1,g="",l++,l>=this.Ol.length)break}else r===this.OR?(g+=r,e=!e):g+=r}if(l<this.Ol.length)for(c=l;c<this.Ol.length;c++)e=new k.I.Rd({value:void 0}),this.wa.I.fc(e,this.Ol[c],this.tB[c],m,n);this.wa.qa.insert(m,n,p);0===this.hb%1E3&&this.Pn&&
200<x.xf()-this.Ifa&&(m=f.model.A.j.BO,n=(this.hb/this.data.length*100).toFixed(0),n=f.O.bind(f.model.A.j.CO,x.Tb.jy(this.hb.toFixed(0)),x.Tb.jy(this.data.length.toFixed(0)),n),f.za(!0,m,n),this.Ifa=x.xf())}this.hb++;return this.Pn&&this.hb>=this.data.length};a.prototype.appendData=function(c){void 0!==this.de&&0<this.de.length&&(c=this.de+c);c=this.gJa(c);for(var e=0;e<c.length;e++)this.data.push(c[e]);1!=this.Pn&&(this.de=this.data.pop())};a.prototype.gJa=function(c){var e=!1;c=c.split(this.recordsetDelimiter);
if(0==this.ignoreQuotedLineBreaks)for(var g=0;g<c.length;g++)e?(this.Uda(c[g])&&(e=!1),c[g-1]+="<br/>"+c[g],c.splice(g,1),g--):this.Uda(c[g])&&(e=!0);return c};a.prototype.Uda=function(c){return 1==this.Lua(c,this.OR)%2};a.prototype.Lua=function(c,e){var g=0;if(c)for(var l=0;l<c.length;l++)c.charAt(l)==e&&g++;return g};a.prototype.pta=function(c){if(void 0==this.fieldSeparator){var e=c.indexOf("sep=");if(-1<e){var g='"'===c[0];c=c.trim();c=c.substring(e+4,g?c.length-1:c.length);this.Vda=!0;return c.trim()}return c.split(",").length>
c.split(";").length?",":";"}};a.uha=function(c,e){var g=void 0===g?'"':g;if(null===c)return[];for(var l="",m=!1,n=!1,p=[],t=0;t<c.length;t++){var r=c.charAt(t);t===c.length-1||r===e&&!m?(t===c.length-1&&r===e?(p.push(l),l=""):t===c.length-1&&(l+=r),l=l.trim(),l.charAt(0)===g&&l.charAt(l.length-1)===g&&(l=l.slice(1,l.length-1)),m=n=!1,p.push(l),l=""):r===g?(n||(l+=r),m=!m,n=!0):(l+=r,n=!1)}return p};a.wV=function(c){return c&&0<c.length?c:f.model.A.j.cn};a.prototype.yk=function(){};a.prototype.Uj=
function(){};a.prototype.Iy=function(){};a.prototype.vp=function(){};a.prototype.kB=function(){return!1};a.prototype.cancel=function(){this.clear();this.Be=this.Xa=this.Ib=null};d.UH=a;b.FLOAT="F";b.LH="+T+";d.R5=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=this;this.IX=!1;this.L8=0;this.iI=",";this.XW="\n";this.af=k.Na.U();this.aq=0;this.q9=this.p9=!1;this.qqa="\x3c!--";this.rqa="--\x3e";this.JX="/**----**";this.pqa="**--!--**/";this.EP=this.gr="";this.C9=0;this.Gk=function(){return a.Vr()};this.ej=function(){return a.mp()};this.cHa=RegExp("%d%","g");this.eHa=RegExp("%q%","g");this.dHa=RegExp("%n%","g")}b.prototype.load=function(a,c,e,g,l){try{this.clear(),this.ub=a,this.yY=c,this.Be=
g,this.qF=l,this.MP=e,this.IE=this.ub.filename,this.IX=this.ub.embedded,this.L8=this.ub.embeddedDataOffset,this.M8=this.ub.embeddedDataToLoad,this.T8=!1,0==this.IX&&(this.IE=x.hx.AG(this.IE,!f.model.B.C.XY)),this.IX&&null!=this.M8?this.ZBa(this.M8):(f.za(!0,f.model.A.j.Hf),this.H1(this.IE,this.ub.requestHeaders))}catch(m){console.error(m.stack),this.nl(null,m.message?"Error: "+m.message:"")}};b.prototype.H1=function(a,c){var e=this;this.Hl=new x.Es(100,1E5);this.Hl.N(x.Ze.Nk,this.Gk);this.Hl.N(x.Ze.Ok,
this.ej);this.Hl.start();var g=new D.Qi;g.dataType=D.Jz.lA;g.N(y.da.Jc,function(){return e.nM()});g.N(y.da.Fz,function(){return e.i2()});g.N(y.da.je,function(l){return e.oM(l)});g.N(y.da.ya,function(l){return e.nl(l)});g.vh(c);g.load(a);this.Fl=g};b.prototype.mp=function(){this.Hl.sl&&this.ag()};b.prototype.ag=function(){this.Hl&&this.Hl.sl&&(this.Hl.stop(),this.Hl.mb(x.Ze.Nk,this.Gk),this.Hl.mb(x.Ze.Ok,this.ej))};b.prototype.Maa=function(a){this.gr=-1<a.indexOf(this.JX)?this.JX:this.qqa;this.EP=
this.gr==this.JX?this.pqa:this.rqa};b.prototype.ZBa=function(a){var c=this;this.Nq=100;this.si=0;try{var e=new f.Sq(a,this.L8,f.Sq.RH),g=e.byteLength>this.Nq?this.Nq:e.byteLength,l=e.IU(g);this.Maa(l);l.substr(0,this.gr.length)==this.gr&&(this.rJ="",this.rJ+=l.substring(this.gr.length),this.si+=g,this.mJ=e.byteLength,this.si<this.mJ?x.Pk.sn({ao:function(){return c.XBa(e)},Ne:function(){return c.yq()},eZ:e}):this.yq())}catch(m){console.error(m.stack),this.nl(null,m.message?"Parsing error: "+m.message:
"")}};b.prototype.XBa=function(a){var c=this.mJ-this.si>this.Nq?this.Nq:this.mJ-this.si;a=a.IU(c);this.si+=c;this.rJ+=a;this.e4(this.si,this.mJ);return this.si>=this.mJ};b.prototype.e4=function(a,c){a=f.O.bind(f.model.A.j.m7,(a/c*100).toFixed(0));f.za(!0,f.model.A.j.iE,a)};b.prototype.yq=function(){f.za(!1);this.qx=!0;this.UGa(this.rJ)};b.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};b.prototype.UGa=function(a){a=f.O.trimLeft(a);this.O$(a)||this.Cq(a)};b.prototype.Vr=function(){if(0<
this.si||this.qx||this.UX)this.ag();else{var a=this.Hl.Qx/10;this.SX?(196<a&&(a=196),a=x.Tb.format(a/2,new f.model.Zb.W.pf,!1,!1,1)+"%"):a=f.O.bind(f.model.A.j.zs,x.Tb.format(a,new f.model.Zb.W.pf,!1,!1,1));f.za(!0,f.model.A.j.Hf,a)}};b.prototype.nl=function(a,c){a=void 0===a?null:a;c=void 0===c?"":c;f.za(!1);var e="";""==c&&null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(e=f.model.Nb.validate(a.target.response),c=e=700<e.length?e.substr(0,700):e,e=f.O.bind(f.model.A.j.EO,
e).replace(/'/g,""));0==this.UX&&(this.UX=!0,a=f.model.Nb.valid(this.IE)?this.IE:f.model.Nb.validate(this.IE),f.Va(f.O.bind(f.model.A.j.EI,a)+e,f.model.A.j.ya,f.rb.ya));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.clear()};b.prototype.O$=function(a){if(0==this.q9&&22<a.length){if(this.nBa(a)){if(0==this.IAa(a.substr(0,a.indexOf(this.XW))))return this.rDa(),!0;this.q9=!0;return!1}this.DAa(a)?(x.Pk.cancel(),null!=this.Fl&&(this.Fl.Od(),this.Fl.dispose(),this.Fl=null),f.Va("OCSV data format is deprecated. Please contact the support team for more information."),
this.clear()):(this.clear(),(new d.UH).load(this.ub,this.yY,this.MP,this.Be,null));return!0}return!1};b.prototype.oM=function(a){if(null!=this.Fl&&!(null!=a.data&&a.data.target&&400<=a.data.target.status)){a=a.data;try{var c=this.Fl.response;if(this.si!=a.loaded&&null!=c&&0!=c.length){this.RX=0<a.total&&a.lengthComputable;this.si=a.loaded;""==this.gr&&this.Maa(c);var e=0;if(-1<(e=c.indexOf(this.gr)))c=c.substring(e+this.gr.length+1),this.T8=!0;else if(this.ub.isOCSV2Data&&!this.T8)return;c=f.O.trimLeft(c);
if(!this.O$(c)&&(1E4<c.length-this.aq||a.loaded==a.total)){this.qx=a.loaded==a.total&&a.loaded>=this.Fl.response.length;void 0===c||x.Bd().Y0||this.Cq(c.substring(this.aq,c.length));this.aq=c.length;var g=0==a.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(a.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(a.loaded),x.Tb.xg(a.total));f.za(!0,f.model.A.j.Hf,g)}}}catch(l){console.error(l.stack),this.nl(null,l.message?"File loading error: "+l.message:"")}}};b.prototype.i2=function(){this.SX=!0;f.za(!0,f.model.A.j.Hf,
"")};b.prototype.nM=function(){if(null!=this.Fl)try{if(0==this.aq||!this.RX||x.Bd().Y0||this.aq<=this.Fl.response.length){var a=this.Fl.response,c=0;-1<(c=a.indexOf(this.gr))&&(a=a.substring(c+this.gr.length+1));if(this.Fl.response instanceof ArrayBuffer){var e=new f.Sq(this.Fl.response,0,f.Sq.RH);a=e.IU(e.byteLength)}this.qx=this.SX=!0;this.p9?this.RX?this.aq<a.length&&(this.Cq(a.substring(this.aq,a.length)),this.aq=a.length):this.aq<a.length?(this.Cq(a.substring(this.aq,a.length)),this.aq=a.length):
this.jk.push(this.sx):this.Cq(a)}}catch(g){console.error(g.stack),this.nl(null,g.message?"ERROR: "+g.message:"")}};b.prototype.Cq=function(a){var c=this;this.p9=!0;this.fs();this.appendData(a);0==this.WX&&1<this.jk.length&&(this.jk.shift(),this.TC(this.jk.shift()),this.WX=!0,x.Pk.sn({ao:function(){return c.nu()},Ne:function(){return c.Py()}}))};b.prototype.nBa=function(a){return"string"==typeof a&&"___ocsv2___"==a.substr(0,11)};b.prototype.DAa=function(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 f.Sq(a,0,f.Sq.RH)).Zfa();if(a instanceof f.Sq)return 1600085871!=a.Zfa()}catch(e){}return!1};b.prototype.appendData=function(a){void 0!==this.sx&&0<this.sx.length&&(a=this.sx+a);a=0<=a.indexOf(this.XW)?a.split(this.XW):[];for(var c=0;c<a.length;c++)f.ha(a[c])||this.jk.push(a[c]);1!=this.qx&&(this.sx=f.ha(a[a.length-1])?a.pop():this.jk.pop(),this.sx=this.sx==this.EP?this.jk.pop():this.sx)};
b.prototype.IAa=function(a){this.xX=a.replace("___ocsv2___","").split("/")[1];return void 0!=this.xX&&1==f.O.fR(this.xX,f.Ug.qs)?!1:!0};b.prototype.TC=function(a){a=a.split(this.iI);this.fr=[];for(var c=0;c<a.length;c++){var e=this.Sv(a[c]),g=this.fL(a[c]),l=this.dL(g);this.Ks[c]=e;this.fr.push(g);l={type:e,caption:l,uniqueName:g};e===k.i.input.pa.qf&&(e=g.split(":"),l.hierarchy=e[0],l.level=e.pop(),l.parent=e.join(":"));this.af.I.ux(l,g)}this.af.qa.gH()};b.prototype.Sv=function(a){var c=k.i.input.pa.sxa(a);
c===k.i.input.pa.Sc&&this.vy(a)&&(c=k.i.input.pa.qf);return c};b.prototype.dL=function(a){var c=a.split(d.R5.LH);if(1<c.length)return c[1];this.vy(a)&&(c=a.split(":"));return c[c.length-1]};b.prototype.vy=function(a){"+"==a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.fr.indexOf(a.split(":")[0].trim())};b.prototype.fL=function(a){a=a.trim().split(d.R5.LH)[0];a=this.x3(a);a=this.Daa(a);if(-1<this.fr.indexOf(a)){for(var c=1,e=a;-1<this.fr.indexOf(e);)e=a+c,c++;a=e}return a};b.prototype.x3=
function(a){return a.replace(/^(\+|dt\+|t\+|n\+|-|ds\+|d\+|m\+|w\+|D\+|D4\+|url\+|img\+|id\+)/,"")};b.prototype.nu=function(){if(this.sf>=this.jk.length)return this.qx;var a=this.jk[this.sf];if(!f.ha(a)&&void 0!==this.fr){if(a==this.EP)return!0;if(a.split(this.iI).length<this.fr.length)for(var c=a.split(this.iI).length;c<this.fr.length;c++)a=a.concat(this.iI);var e=[],g=[];a=a.split(this.iI);for(c=0;c<this.fr.length;c++)this.aGa(a[c],c,e,g);this.af.qa.insert(e,g)}this.qx&&200<x.xf()-this.C9&&(c=f.model.A.j.BO,
e=(this.sf/this.jk.length*100).toFixed(0),e=f.O.bind(f.model.A.j.CO,x.Tb.jy(this.sf.toFixed(0)),x.Tb.jy(this.jk.length.toFixed(0)),e),f.za(!0,c,e),this.C9=x.xf());this.jk[this.sf]="";this.sf++;return this.qx&&this.sf>=this.jk.length};b.prototype.aGa=function(a,c,e,g){var l=!0,m=this.af.I.VB(this.fr[c]);if(null!==this.fr[c]){if(this.Ks[c]===k.i.input.pa.Sc||this.Ks[c]===k.i.input.pa.om||this.Ks[c]===k.i.input.pa.Hg){if("^"===a.charAt(0)){var n=parseInt(a.substring(1));!1===isNaN(n)&&(m=m.va(n+1),null!=
m&&(a=m.caption==f.model.A.j.Mk?"":m.caption,l=!1))}}else if(this.Ks[c]==k.i.input.pa.qf)"^"===a.charAt(0)&&(n=parseInt(a.substring(1)),!1===isNaN(n)&&(m=m.hierarchy.va(n+1),null!=m&&(a=m.caption==f.model.A.j.Mk?"":m.caption,l=!1)));else if(this.Ks[c]===k.i.input.pa.Oa||this.Ks[c]===k.i.input.pa.gj||this.Ks[c]===k.i.input.pa.Np||this.Ks[c]===k.i.input.pa.oo)a=1E3*parseInt(a),l=!1;l&&(a=this.Daa(a));a=new k.I.Rd({value:a});this.af.I.fc(a,this.fr[c],this.Ks[c],e,g)}};b.prototype.Daa=function(a){return a.replace(this.cHa,
",").replace(this.eHa,'"').replace(this.dHa,"\n")};b.prototype.Py=function(){f.za(!1);this.WX?this.Ib():(f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik),this.Xa(),this.MP=null);this.clear()};b.prototype.rDa=function(){f.za(!1);f.Va(f.O.bind(f.model.A.j.ina,this.xX),f.model.A.j.ya,f.rb.ya);this.Xa();this.clear()};b.prototype.clear=function(){f.za(!1);this.jk=[];this.EP=this.gr="";this.si=0;this.SX=!1;this.aq=0;this.Ks=[];this.RX=this.UX=this.qx=this.WX=!1;this.sx="";this.sf=0;this.Nq=100;null!=this.Fl&&
(this.Fl.Od(),this.Fl.dispose(),this.Fl=null);this.ag()};b.prototype.Ib=function(){null!=this.yY&&this.yY()};b.prototype.Xa=function(a){null!=this.MP&&this.MP(a)};b.prototype.yk=function(){};b.prototype.Uj=function(){};b.prototype.Iy=function(){};b.prototype.vp=function(){};b.prototype.kB=function(){return!1};b.prototype.cancel=function(){this.clear();this.Be=this.Xa=this.Ib=null};d.Jna=b})(h.csv||(h.csv={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.LocalConnectionInfo.call(this)||this;a.checkUpdates=!1;a.CH=!1;a.Ba=k.i.oa.JSON;return a}u(b,h.LocalConnectionInfo);b.prototype.isEqual=function(a){return a==this?!0:h.LocalConnectionInfo.prototype.isEqual.call(this,a)&&f.v(a.data)};b.tb=function(a){var c=new b;f.v(a.browseForFile)||(c.browseForFile=a.browseForFile);f.v(a.requestPermission)||(c.requestPermission=a.requestPermission);f.ha(a.filename)||(c.filename=a.filename);
f.v(a.data)||(c.data=a.data);f.v(a.checkUpdates)||(c.checkUpdates=a.checkUpdates);f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.mapping)||(c.mapping=a.mapping instanceof k.I.Aj?a.mapping:new k.I.Aj(a.mapping));f.v(a.useStreamLoader)||(c.CH=a.useStreamLoader);f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.Qj=function(a){var c=new b;0!=a.find("browseForFile").length&&(c.browseForFile=f.O.Rc(a.find("browseForFile").text()));0!=a.find("filename").length&&
(c.filename=a.find("filename").text());return c};b.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);(a||this.browseForFile)&&c.append(D.aa.create("<browseForFile/>").text(this.browseForFile));this.filename&&c.append(D.aa.create("<filename/>").append(D.aa.Bh(this.filename)));return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;if(a||this.browseForFile)c.browseForFile=this.browseForFile;this.filename&&(c.filename=this.filename);
f.v(this.data)||(c.data=this.data);if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);if(a||this.CH)c.useStreamLoader=this.CH;if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;this.browseForFile&&(a.browseForFile=this.browseForFile);this.filename&&(a.filename=this.filename);f.v(this.data)||(a.data=this.data);if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);this.withCredentials&&
(a.withCredentials=this.withCredentials);a.CH=this.CH;return a};q.Object.defineProperties(b.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return f.ha(this.filename)&&(null==this.browseForFile||0==this.browseForFile)&&f.v(this.data)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.data)},set:function(){}}});d.JSONConnectionInfo=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.csv.UH.call(this)||this;a.TH=6553600;a.Dy=!0;a.j3=function(){return a.YEa()};a.isArray=!1;a.xM=0;a.bj=0;a.DGa=0;a.D_=[".js",".json"];return a}u(b,h.csv.UH);b.prototype.load=function(a,c,e,g,l){this.clear();this.CB=this.FF=this.Dn=null;this.DGa=this.bj=0;this.Dy=!0;this.Ib=c;this.Xa=e;this.Be=g;this.qF=l;!0===a.browseForFile?this.F$(a):void 0!==a.filename&&""!=a.filename&&"()"!=a.filename.substr(-2)?h.csv.UH.prototype.load.call(this,
a,c,e,g,l):(this.Pn=!0,this.QJ(a.data))};b.prototype.YEa=function(){if(!(f.v(this.ma)||f.v(this.ma.response)||!this.Dy&&this.ma.response.length<this.TH/100)){var a=this.ma.response.substr(this.Kh,this.TH);this.Cq(a);this.Kh+=a.length}};b.prototype.oM=function(a){var c=a.data;if(404==c.target.status)this.nl(a);else if(!f.v(this.ma)&&!f.v(this.ma.response))try{if(0!==this.ma.response.length&&(this.Jj!=c.loaded||this.DB!=this.ma.response.length)){this.JL=0<c.total&&c.lengthComputable;this.DB=this.ma.response.length;
this.Jj=c.loaded;this.Pn=c.loaded==c.total;var e=0==c.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(c.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(c.loaded),x.Tb.xg(c.total),(c.loaded/c.total*100).toFixed(0));f.za(!0,f.model.A.j.Hf,e);this.JL&&c.total<5*this.TH||x.Bd().Di?this.Dy=!0:this.au||(this.Dy=!1,this.j3())}}catch(g){console.error(g.stack),this.nl()}};b.prototype.nM=function(){if(!f.v(this.ma)&&!f.v(this.ma.response))try{if(this.Pn=!0,0==this.Kh||!this.au||this.Dy){var a=this.ma.response;f.ha(a)&&!this.au?
this.fU():this.Cq(a);this.ma=null}}catch(c){console.error(c.stack),this.nl()}};b.prototype.Cq=function(a){try{if(!this.Dy){if(0==a.length){this.Pn?this.QJ([]):f.pe(this.j3,100);return}a=this.$Y(a)}var c=JSON.parse(a);f.v(c.items)||(c=c.items);if(f.v(c.length)){this.pM();return}}catch(e){this.pM();return}this.QJ(c)};b.prototype.$Y=function(a){void 0!==this.de&&0<this.de.length&&(a=this.de+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 e=a.lastIndexOf("],");f.ha(this.de)&&-1===c&&-1===e?a="["+a:(c=c<e?e:c,this.de=a.substr(c+2),a="["+a.substr(0,c+1)+"]");return a};b.prototype.QJ=function(a){var c=this;f.v(a.items)||(a=a.items);(f.v(a)||1>a.length)&&!f.model.B.C.qH?!this.au&&this.Pn&&this.fU():Array.isArray(a)?(this.au?this.data=this.data.concat(a.slice()):(this.au=!0,this.fs(),(this.isArray=!f.v(a[1])&&Array.isArray(a[1]))&&
this.mIa(a[0]),a[0]&&Array.isArray(a[0])?this.TC(a[0],a[1],this.wa.fa.mapping):this.wa.fa.mapping.Dda?this.wa.I.AQ(this.wa.fa.mapping,a[0]):this.wa.I.AQ(a[0],a[1]),this.data=a.slice(),(k.I.Aj.nT(a[0])||this.isArray)&&this.data.shift()),0==this.data.length?this.Dy?this.aH():this.Py(!0):this.Dy?x.Pk.sn({ao:function(){return c.nu()},Ne:function(){return c.aH()}}):this.PL||x.Pk.sn({ao:function(){return c.nu()},Ne:function(){return c.Py()}})):f.Va(f.model.A.j.CI,f.model.A.j.ya)};b.prototype.Py=function(a){(void 0===
a?0:a)||f.v(this.ma)||!(this.ma.response.length>this.Kh)&&this.Pn?(this.au?(f.ha(this.de)||("]"==this.de.substr(-1)&&(this.de=this.de.substr(0,this.de.length-1).trim(),a=this.de.substr(this.de.length-1),this.de="]"!=a&&"}"!=a?this.de+"]":this.de),a=JSON.parse(this.de),this.data.push(a),this.nu()),null!=this.Ib&&(this.clear(),this.Ib())):(f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik),null!=this.Xa&&(this.Xa(f.model.A.j.Nu),this.Xa=null)),this.clear()):f.pe(this.j3,1)};b.prototype.Jd=function(a){if(!(f.v(a)||
1>a.length)){this.wa.qa.Cta();for(var c=1<a.length?a[1]&&Array.isArray(a[1]):a[0]&&Array.isArray(a[0]),e=0;e<a.length;e++)this.insertData(a[e],!0,c)}};b.prototype.aH=function(){this.data=null;f.za(!1);f.pg(this.Ib)&&this.Ib();this.clear()};b.prototype.q0=function(){return x.Bd().Di?0==this.data.length?f.O.bind(f.model.A.j.OW,this.bj):f.O.bind(f.model.A.j.CO,this.bj,this.data.length,(this.bj/this.data.length*100).toFixed(0)):0!=this.Jj?f.O.bind(f.model.A.j.jE,x.Tb.xg(this.Kh),x.Tb.xg(this.Jj),(this.Kh/
this.Jj*100).toFixed(0)):0==this.Jj&&0<this.data.length?f.O.bind(f.model.A.j.CO,this.bj,this.data.length,(this.bj/this.data.length*100).toFixed(0)):f.O.bind(f.model.A.j.Al,x.Tb.xg(this.Kh))};b.prototype.nu=function(){if(0===this.bj%100&&200<x.xf()-this.xM){var a=f.model.A.j.BO,c=this.q0();1==this.Pn&&f.za(!0,a,c);this.xM=x.xf()}if(this.bj>=this.data.length)return!0;f.v(this.data[this.bj])||this.insertData(this.data[this.bj],!1,this.isArray);this.bj++;return this.bj>=this.data.length};b.prototype.S3=
function(){this.Dn=this.wa.I.Z_(!1);this.FF=[];for(var a=0;a<this.Dn.length;a++)this.FF[a]=this.wa.I.XB(this.Dn[a]);this.wa.qa.gH()};b.prototype.mIa=function(a){this.CB=new f.nb;if(Array.isArray(a))for(var c=0;c<a.length;c++)this.CB.Pa(a[c],c);else{c=0;for(var e in a)a.hasOwnProperty(e)&&(f.v(a[e])||f.ha(a[e].uniqueName)?this.CB.Pa(e,c):this.CB.Pa(a[e].uniqueName,c),c++)}};b.prototype.insertData=function(a,c,e){null===this.Dn&&this.S3();var g=[],l=[],m=!1,n=new Map;if(c){var p=this.wa.I.AR;""!==p&&
(e?(m=this.CB.getItem(p),m=!f.v(a[m])):m=!f.v(a[p]))}for(var t=0;t<this.Dn.length;t++){p=this.Dn[t];var r=this.FF[t];if(e){var v=this.CB.getItem(p);var z=a.hasOwnProperty(""+v);v=a[v]}else z=a.hasOwnProperty(p),v=a[p];if(r!==k.i.input.pa.mE)if(r===k.i.input.pa.Vw)var B=v;else if(!m){var C=void 0;this.wa.I.E0&&(C=this.f0(a,p,e));z=z?new k.I.Rd({gf:C,value:v,caption:""+v}):new k.I.Rd({gf:C});r===k.i.input.pa.qf&&(v=this.wa.I.VB(p),v=v.hierarchy.ra.ea(v.sb-1).uniqueName,n.has(v)?z.parent=n.get(v):void 0!==
a[v]&&(z.ei=a[v]));n.set(p,this.wa.I.fc(z,p,r,g,l))}}c?m?this.wa.qa.Lva(B):this.wa.qa.update(g,l,B):this.wa.qa.insert(g,l,B)};b.prototype.f0=function(a,c,e){var g=this;e=void 0===e?!1:e;var l=void 0;(c=this.wa.I.hca(c))&&0<c.length&&c.forEach(function(m){if(e){var n=g.CB.getItem(m);n=a[n]}else n=a[m];f.v(n)||(f.v(l)&&(l={}),l[m]=n)});return l};b.prototype.pM=function(){f.Va(f.model.A.j.CI,f.model.A.j.ya);f.za(!1);f.pg(this.Xa)&&this.Xa(f.model.A.j.CI);this.Ib=this.Xa=null;this.clear()};b.prototype.fU=
function(){f.model.B.C.qH||f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik);f.za(!1);f.pg(this.Xa)&&this.Xa(f.model.A.j.Nu);this.Ib=this.Xa=null;this.clear()};d.Xla=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){this.dY=null;this.sf=0;this.ar=this.GP=this.jk=null;this.$e=0}a.prototype.getData=function(c){this.G8=c;f.za(!0,f.model.A.j.z7);this.NGa();this.gR()};a.prototype.NGa=function(){this.ar=k.Na.U().I.rc();this.dY={};this.El=[];for(this.$e=0;this.$e<this.ar.length;){var c=this.ar.ea(this.$e);var e=k.Na.U().I.Ee(c.uniqueName).type;e!=k.i.Ja.sc&&e!=k.i.Ja.Oa?this.TGa(k.Na.U().I.Ee(c.uniqueName)):this.RGa(c);this.$e++}this.Lta(this.El)};
a.prototype.Lta=function(c){for(var e,g=0;g<c.length;g++)e={},c[g].type!=k.i.input.pa.qf&&(e.caption=c[g].caption),e.type=c[g].type,c[g].type==k.i.input.pa.qf&&this.pGa(c[g],e),this.dY[c[g].uniqueName]=e};a.prototype.pGa=function(c,e){var g=c.uniqueName.split(":");1==g.length?(e.hierarchy=g[0],e.level=g[0]):(e.hierarchy=g[0],e.level=g[g.length-1],e.parent=g[g.length-2],c.uniqueName=e.level)};a.prototype.gR=function(){var c=this;this.sf=0;this.jk=[];this.jk.push(this.dY);this.rn=k.Na.U().qa.yL();x.Pk.sn({ao:function(){return c.kua()},
Ne:function(){return c.ADa()}})};a.prototype.kua=function(){var c=x.xf();this.GP=[];this.Dj=this.$e=0;for(var e=this.rn&&this.rn[0]?this.rn[0].length:0;this.sf<e;){for(this.GP=[];this.$e+this.Dj<this.rn.length&&this.$e<this.El.length;)this.fc(this.mua()),this.$e++;this.sf++;this.jk.push(this.GP);this.Dj=this.$e=0;if(100<x.xf()-c)break}this.UIa(this.sf,e);return this.sf>=e};a.prototype.RGa=function(c){var e=c.inputType;(e==k.i.input.pa.qf||2<c.ra.length)&&e!=k.i.input.pa.Np&&e!=k.i.input.pa.oo?this.SGa(c):
e==k.i.input.pa.Oa?(this.El.push(this.oR(e,c.wi.caption,!1,c.wi.uniqueName)),this.$e+=2):this.El.push(this.oR(e,c.caption,!1,c.uniqueName))};a.prototype.SGa=function(c){c=c.ra;for(var e,g,l,m=1;m<c.length;m++){l=m;e=c.getItem(c.qh(m));for(g=e.caption;1<l;)l--,g=c.getItem(c.qh(l)).uniqueName+":"+g;this.El.push(this.oR(k.i.input.pa.qf,e.caption,!1,g))}};a.prototype.fc=function(c){this.GP.push(c)};a.prototype.mua=function(){var c=this.El[this.$e].type;if(c!=k.i.input.pa.Oa)var e=this.ar.getItem(this.El[this.$e].uniqueName).va(this.rn[this.$e+
this.Dj][this.sf]).caption;if(c==k.i.input.pa.fb)return null!=e?parseFloat(e):"";if(c==k.i.input.pa.Sc||c==k.i.input.pa.om||c==k.i.input.pa.Hg)return null!=e&&e!=f.model.A.j.Mk?e.toString():"";if(c==k.i.input.pa.qf){c=this.ar.getItem(this.El[this.$e].caption);for(var g=0;g<c.ra.length-2;g++)this.fc(e),this.El[this.$e],this.$e++,e=null==this.rn[this.$e+this.Dj][this.sf]||""==this.rn[this.$e+this.Dj][this.sf]+""?"":c.va(this.rn[this.$e+this.Dj][this.sf]).caption}else{if(c==k.i.input.pa.gj)return this.ar.getItem(this.El[this.$e].caption).va(this.rn[this.$e+
this.Dj][this.sf]).ec;if(c==k.i.input.pa.Oa)return e="",c=this.ar.getItem(this.El[this.$e].caption+".Year").va(this.rn[this.$e+this.Dj][this.sf]),e+=c.caption+"-",this.Dj++,c=this.ar.getItem(this.El[this.$e].caption+".Month").va(this.rn[this.$e+this.Dj][this.sf]),e+=f.model.A.j.Vq.indexOf(c.caption)+1+"-",this.Dj++,c=this.ar.getItem(this.El[this.$e].caption+".Day").va(this.rn[this.$e+this.Dj][this.sf]),e+=c.caption;if(c==k.i.input.pa.Np||c==k.i.input.pa.oo)return this.dua(c);if(c==k.i.input.pa.Dc||
c==k.i.input.pa.Yb)return this.ar.getItem(this.El[this.$e].uniqueName).va(this.rn[this.$e+this.Dj][this.sf]).ec}return e};a.prototype.ADa=function(){f.za(!1);null!=this.G8&&this.G8(this.jk)};a.prototype.dua=function(c){this.Dj+=2;this.Dj=c==k.i.input.pa.oo?this.Dj+1:this.Dj;return this.ar.getItem(this.El[this.$e].caption).qL(this.rn[this.$e+this.Dj][this.sf])};a.prototype.TGa=function(c){this.El.push(this.oR(k.i.Ja.wD(c.type),c.Yl,!0,c.uniqueName))};a.prototype.UIa=function(c,e){c=f.O.bind(f.model.A.j.m7,
(c/e*100).toFixed(0));f.za(!0,f.model.A.j.z7,c)};a.prototype.oR=function(c,e,g,l){g=void 0===g?!1:g;var m=new b;m.caption=e;m.type=c;m.rg=g;m.uniqueName=l;return m};d.BW=a;q.Object.defineProperties(b.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.hg},set:function(c){this.hg=c}},caption:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(c){this.qc=c}},rg:{configurable:!0,enumerable:!0,get:function(){return this.Bqa},set:function(c){this.Bqa=c}},uniqueName:{configurable:!0,
enumerable:!0,get:function(){return this.KJ},set:function(c){this.KJ=c}}});d.XKa=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.j8.apply(this,arguments)||this;a.xM=0;a.bj=0;a.Dn=null;a.qT=!1;a.g1=!1;a.isArray=!1;return a}u(b,h.j8);b.prototype.load=function(a,c,e,g,l){this.clear();this.Ib=c;this.Xa=e;this.Be=g;this.qF=l;this.connectionInfo=a;this.filename=a.filename;!f.ha(this.filename)&&"()"!=this.filename.substr(-2)||!1!==a.browseForFile?(this.filename=x.hx.AG(this.filename,!f.model.B.C.XY),f.za(!0,f.model.A.j.Hf),this.dN(this.filename,a.requestHeaders)):
this.F2()};b.prototype.tDa=function(){f.za(!0,f.model.A.j.Hf,"")};b.prototype.zEa=function(a){a=0==a.total?f.O.bind(f.model.A.j.Al,x.Tb.xg(a.loaded)):f.O.bind(f.model.A.j.jE,x.Tb.xg(a.loaded),x.Tb.xg(a.total),(a.loaded/a.total*100).toFixed(0));f.za(!0,f.model.A.j.Hf,a)};b.prototype.F2=function(a){a=void 0===a?null:a;f.za(!1);var c="",e="";null!=a&&null!=a.target&&null!=a.target.response&&""!=a.target.response&&(e=f.model.Nb.validate(a.target.response),c=e=700<e.length?e.substr(0,700):e,e=f.O.bind(f.model.A.j.EO,
e).replace(/'/g,""));0==this.g1&&(this.g1=!0,a=f.model.Nb.valid(this.filename)?this.filename:f.model.Nb.validate(this.filename),f.Va(f.O.bind(f.model.A.j.EI,a)+e,f.model.A.j.ya,f.rb.ya));null!=this.Xa&&(this.Xa(c),this.Xa=null);this.ag()};b.prototype.gFa=function(a,c,e){var g=this;try{var l=e?JSON.parse(a):JSON.parse(this.$Y(a));Array.isArray(l)?(this.QJ(l),x.Pk.sn({ao:function(){return g.nu()},Ne:c})):this.pM()}catch(m){this.pM()}};b.prototype.$Y=function(a){void 0!==this.de&&0<this.de.length&&(a=
this.de+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 e=a.lastIndexOf("],");c=c<e?e:c;this.de=a.substr(c+2);return a="["+a.substr(0,c+1)+"]"};b.prototype.QJ=function(a){f.v(a.items)||(a=a.items);(f.v(a)||1>a.length)&&!f.model.B.C.qH?!this.qT&&this.mT&&this.fU():Array.isArray(a)?
(this.qT?this.data=this.data.concat(a.slice()):(this.qT=!0,this.fs(),this.Ud=k.Na.U().I,this.qa=k.Na.U().qa,this.isArray=a[1]&&Array.isArray(a[1]),this.connectionInfo.mapping.ob?a[0]&&Array.isArray(a[0])?this.TC(a[0],a[1]):this.Ud.AQ(a[0]):this.Ud.AQ(this.connectionInfo.mapping.La()),this.data=a.slice(),(k.I.Aj.nT(a[0])||this.isArray)&&this.data.shift()),0==this.data.length&&this.aH()):f.Va(f.model.A.j.CI,f.model.A.j.ya)};b.prototype.TC=function(a,c){try{var e=f.v(c)?[]:c;this.Ol=[];for(c=0;c<a.length;c++){var g=
this.kS(e[c]),l=this.Sv(a[c],g,0==e.length),m=this.k0(a[c],g,0==e.length),n=this.fL(a[c]),p=this.dL(n),t={type:l,uniqueName:n,caption:p,isMeasure:m};if(!t.hasOwnProperty("visible")||!1!==t.visible){this.tB[c]=t.type;this.Qe[c]=t.isMeasure;this.Ol[c]=n;if(l===k.i.input.pa.qf){var r=n.split(":");t.hierarchy=r[0];t.level=r.pop();t.parent=r.join(":")}this.Ud.ux(t,n)}}}catch(v){console.error(v.stack),this.p2()}};b.prototype.p2=function(){f.za(!1);f.Va(f.O.bind(f.model.A.j.t7),f.model.A.j.ya,f.rb.ya)};
b.prototype.kS=function(a){void 0!==a&&null!==a&&"string"==typeof a&&(a=a.replace(",","."));return a};b.prototype.fL=function(a){a=a.trim();if(-1<this.Ol.indexOf(a)){for(var c=1,e=a;-1<this.Ol.indexOf(e);)e=a+c,c++;a=e}return a};b.prototype.dL=function(a){return this.vy(a)?(a=a.split(":"),a[a.length-1]):a};b.prototype.k0=function(a,c,e){return!f.model.B.C.Je||f.v(c)&&!e?!1:"-"===a.trim().charAt(0)};b.prototype.Sv=function(a,c,e){var g=k.i.input.pa.fb;a=a.trim();if(f.v(c)&&!e)return k.i.input.pa.Sc;
"+"===a.charAt(0)?g=k.i.input.pa.Sc:"t+"===a.substr(0,2)?g=k.i.input.pa.Yb:"dt+"===a.substr(0,3)?g=k.i.input.pa.Dc:"n+"===a.substr(0,2)?g=k.i.input.pa.fb:"-"===a.charAt(0)?g=k.i.input.pa.fb:"ds+"===a.substr(0,3)?g=k.i.input.pa.gj:"d+"===a.substr(0,2)?g=k.i.input.pa.Oa:"m+"===a.substr(0,2)?g=k.i.input.pa.Hg:"w+"===a.substr(0,2)?g=k.i.input.pa.om:"D+"===a.substr(0,2)?g=k.i.input.pa.Np:"D4+"===a.substr(0,3)?g=k.i.input.pa.oo:"id+"===a.substr(0,3)?g=k.i.input.pa.Vw:""==c||void 0===c?g=k.i.input.pa.Sc:
isNaN(Number(c))&&(g=f.O.dT(c)?f.model.B.C.yR:k.i.input.pa.Sc);g===k.i.input.pa.Sc&&this.vy(a)&&(g=k.i.input.pa.qf);return g};b.prototype.vy=function(a){"+"===a.charAt(0)&&(a=a.substr(1));return 1<a.split(":").length&&-1<this.Ol.indexOf(a.split(":")[0].trim())};b.prototype.nu=function(){if(0===this.bj%100&&200<x.xf()-this.xM){var a=f.model.A.j.BO,c=this.q0();1==this.mT&&f.za(!0,a,c);this.xM=x.xf()}if(this.bj>=this.data.length)return!0;f.v(this.data[this.bj])||this.insertData(this.data[this.bj],this.isArray);
this.data[this.bj]=void 0;this.bj++;return this.bj>=this.data.length};b.prototype.S3=function(){this.Dn=this.Ud.Z_(!1);this.FF=[];for(var a=0;a<this.Dn.length;a++)this.FF[a]=this.Ud.XB(this.Dn[a]);this.qa.gH()};b.prototype.insertData=function(a,c){null===this.Dn&&this.S3();for(var e,g,l=[],m=[],n,p,t,r=0;r<this.Dn.length;r++)if(e=this.Dn[r],g=this.FF[r],c?(t=a.hasOwnProperty(""+r),p=a[r]):(t=a.hasOwnProperty(e),p=a[e]),g!==k.i.input.pa.mE)if(g===k.i.input.pa.Vw)n=p;else{var v=void 0;this.Ud.E0&&(v=
this.f0(a,e,c));p=t?new k.I.Rd({gf:v,value:p,caption:String(p)}):new k.I.Rd({gf:v});g===k.i.input.pa.qf&&(t=this.Ud.VB(e),t=t.hierarchy.ra.ea(t.sb-1).uniqueName,p.ei=a[t]);this.Ud.fc(p,e,g,l,m)}this.qa.insert(l,m,n)};b.prototype.f0=function(a,c,e){var g=this;e=void 0===e?!1:e;var l=void 0;(c=this.Ud.hca(c))&&0<c.length&&c.forEach(function(m){var n=e?a[g.Dn.indexOf(m)]:a[m];f.v(n)||(f.v(l)&&(l={}),l[m]=n)});return l};b.prototype.q0=function(){return f.O.bind(f.model.A.j.Tma,x.Tb.jy(this.bj.toString()),
(this.jB/this.iK*100).toFixed(0))};b.prototype.aH=function(){this.data=null;f.za(!1);f.pg(this.Ib)&&this.Ib();this.clear()};b.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};b.prototype.fFa=function(){f.za(!1);if(this.qT){if(!f.ha(this.de)){if("]"==this.de.substr(-1)){this.de=this.de.substr(0,this.de.length-1).trim();var a=this.de.substr(this.de.length-1);this.de="]"!=a&&"}"!=a?this.de+"]":this.de}a=JSON.parse(this.de);this.data.push(a);this.nu()}null!=this.Ib&&(this.clear(),this.Ib())}else f.Va(f.model.A.j.Nu,
f.model.A.j.ya,f.rb.Ik),null!=this.Xa&&(this.Xa(),this.Xa=null);this.clear()};b.prototype.pM=function(){f.Va(f.model.A.j.CI,f.model.A.j.ya);f.za(!1);f.pg(this.Xa)&&this.Xa();this.Ib=this.Xa=null;this.clear()};b.prototype.fU=function(){f.model.B.C.qH||f.Va(f.model.A.j.Nu,f.model.A.j.ya,f.rb.Ik);f.za(!1);f.pg(this.Xa)&&this.Xa();this.Ib=this.Xa=null;this.clear()};b.prototype.clear=function(){this.data=[];this.Jj=0;this.tB=[];this.Qe=[];this.g1=!1;this.de="";null!=this.ma&&(this.ma.Od(),this.ma.dispose(),
this.ma=null);this.ag()};b.prototype.cancel=function(){this.clear();this.Be=this.Xa=this.Ib=null};b.prototype.yk=function(){throw Error("Method not implemented.");};b.prototype.Uj=function(){throw Error("Method not implemented.");};b.prototype.Iy=function(){throw Error("Method not implemented.");};b.prototype.vp=function(){throw Error("Method not implemented.");};b.prototype.kB=function(){throw Error("Method not implemented.");};d.Yla=b})(h.json||(h.json={}))})(k.local||(k.local={}))})(f.u||(f.u=
{}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return k.ND.apply(this,arguments)||this}u(d,k.ND);d.prototype.gH=function(){this.uZ();for(var b=[],a=this.slice.rc(!1),c=0;c<a.length;c++){var e=a.ea(c);this.Jl(e.uniqueName,e.uniqueName);f.model.B.C.oc&&this.Bm(this.wa.I.Ee(e.uniqueName));for(var g=1;g<e.ra.length;g++){var l=e.ra.ea(g);this.Jl(l.uniqueName,e.uniqueName)}}a=f.u.i.oa.Nc===this.wa.fa.Ba?this.Rwa(this.slice.Of):this.slice.Of;for(c=0;c<a.length;c++)this.Bm(a[c],b);if(f.u.i.oa.Nc===this.wa.fa.Ba)for(c=
0;c<a.length;c++)e=a[c],e.Ka&&(this.xx(e.uniqueName,e.Ll),this.RJ(e));this.slice.fz(b)};d.prototype.Rwa=function(b){var a=[],c={};if(void 0!==b)for(var e,g,l,m,n=0;n<b.length;n++)e=b[n].$,g=b[n].uniqueName,l=b[n].hidden,void 0===c[g+"_"+e]?(m=a.length,c[g+"_"+e]={HC:m,Gda:l},a.push(b[n])):(e=c[g+"_"+e],e.Gda&&!l&&(a.splice(e.HC,1),e.HC=a.length,e.Gda=b[n].hidden,a.push(b[n])));return a};d.prototype.Eh=function(b,a,c){if("string"!==typeof b){var e=b.uniqueName;var g=k.i.ca.UL(b.$)?b.$:b.Ll}else e=
b;f.v(a)||(g=a);return k.ND.prototype.Eh.call(this,e,g,c)};d.prototype.Bm=function(b,a){b&&(f.u.i.oa.Nc===this.wa.fa.Ba&&b.Ka||(this.xx(b.uniqueName,b.Ll),k.i.ca.UL(b.$)&&this.xx(b.uniqueName,b.$),this.RJ(b)),b.Ka&&this.T9(b,this.slice.Wc.measures,a),void 0!==a&&a.push(b))};d.prototype.T9=function(b,a,c){if((a=x.ws.pL(b.Sd,a))&&0<a.length)for(var e=0;e<a.length;e++){var g=a[e],l=this.wa.I.$c(g.uniqueName);if(null!=l){var m=this.slice.Zh(g);if(null==m){m=l.clone();m.$=g.$;g=m.hidden=!0;if(void 0!==
c)for(l=0;l<c.length;l++)c[l].uniqueName===m.uniqueName&&(m.$===k.i.ca.NONE||c[l].$===b.$&&c[l].Ll===b.Ll)&&(g=!1);g&&(c.push(m),this.RJ(m),this.xx(m.uniqueName,m.Ll),k.i.ca.UL(m.$)&&this.xx(m.uniqueName,m.$))}}}};d.prototype.fB=function(b){return this.wa.fa.Ba==k.i.oa.Gf&&b&&0==this.wa.fa.mapping.Fa(b.uniqueName,"min_doc_count")};d.prototype.kF=function(b){return this.wa.fa.Ba==k.i.oa.Gf&&b&&0==this.wa.fa.mapping.Fa(b.uniqueName,"min_doc_count")};h.Gu=d})(k.external||(k.external={}))})(f.u||(f.u=
{}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(){}b.NONE=0;b.VV=1;b.aX=2;b.gX=3;b.SH=4;b.bW=5;d.jj=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(a){return k.I.Aj.call(this,void 0===a?null:a)||this}u(b,k.I.Aj);d.MO=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.ConnectionInfo.apply(this,arguments)||this;a.binary=!1;a.dataSourceInfo="";a.H8="";a.af="";a.subquery="";a.proxyUrl="";a.roles="";a.localeIdentifier="";a.effectiveUserName="";a.mapping=new d.MO;a.Jw=!0;a.av="";a.version=0;return a}u(b,k.I.ConnectionInfo);b.prototype.isEqual=function(a){return k.I.ConnectionInfo.prototype.isEqual.call(this,a)&&this.proxyUrl===a.proxyUrl&&this.Ae===a.Ae&&this.wa===a.wa&&this.dataSourceInfo===
a.dataSourceInfo&&this.binary===a.binary&&this.subquery===a.subquery&&this.mapping.isEqual(a.mapping)&&this.Jw===a.Jw&&(this.Ba!=k.i.oa.Zd?this.subquery===a.subquery:!0)&&(this.Ba===k.i.oa.Nc?this.localeIdentifier===a.localeIdentifier:!0)&&(this.Ba===k.i.oa.Nc?this.effectiveUserName===a.effectiveUserName:!0)&&(this.Ba===k.i.oa.Nc?this.Fm===a.Fm:!0)};b.tb=function(a){var c=new b;f.v(a.dataSourceType)||(c.Ba=a.dataSourceType);f.v(a.dataSourceInfo)||(c.dataSourceInfo=a.dataSourceInfo);f.v(a.catalog)||
(c.Ae=a.catalog);f.v(a.cube)||(c.wa=a.cube);f.v(a.roles)||(c.roles=a.roles);f.v(a.proxyUrl)||(c.proxyUrl=a.proxyUrl);f.v(a.localeIdentifier)||(c.localeIdentifier=a.localeIdentifier);f.v(a.subquery)||(c.subquery=a.subquery);f.v(a.effectiveUserName)||(c.effectiveUserName=a.effectiveUserName);f.v(a.customData)||(c.Fm=a.customData);f.v(a.binary)||(c.binary=a.binary);f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.mapping)||(c.mapping=a.mapping instanceof d.MO?a.mapping:new d.MO(a.mapping));
f.v(a.useGranularityNamesForDateFilters)||(c.Jw=a.useGranularityNamesForDateFilters);c.credentials=d.eh.w8.tb(a);f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.Qj=function(a){var c=new b;a=a.find("dataSource");var e=a.attr("type");void 0!==e&&(e=e.toLowerCase());"msolap"==e&&(e=k.i.oa.Nc);e&&-1<e.indexOf("pentaho")&&(e=k.i.oa.Zd);if(!k.i.oa.valid(e)){var g=a.find("proxyUrl");0<g.length&&0<g.text().length&&(e=k.i.oa.Nc)}c.Ba=e;0!=a.find("dataSourceInfo").length&&(c.dataSourceInfo=
a.find("dataSourceInfo").text());0!=a.find("catalog").length&&(c.Ae=a.find("catalog").text());0!=a.find("cube").length&&(c.wa=a.find("cube").text());0!=a.find("subquery").length&&(c.subquery=a.find("subquery").text());0!=a.find("roles").length&&(c.roles=a.find("roles").text());0!=a.find("proxyUrl").length&&(c.proxyUrl=a.find("proxyUrl").text());0!=a.find("localeIdentifier").length&&(c.localeIdentifier=a.find("localeIdentifier").text());0!=a.find("effectiveUserName").length&&(c.effectiveUserName=a.find("effectiveUserName").text());
0!=a.find("customData").length&&(c.Fm=a.find("customData").text());0!=a.find("binary").length&&(c.binary=f.O.Rc(a.find("binary").text()));0!=a.find("credentials").length&&(e={},0!=a.find("credentials").find("hash").length&&(e.hash=a.find("credentials").find("hash").text()),0!=a.find("credentials").find("username").length&&(e.username=a.find("credentials").find("username").text()),0!=a.find("credentials").find("password").length&&(e.password=a.find("credentials").find("password").text()),c.credentials=
d.eh.w8.tb(e));return c};b.prototype.co=function(a){a=void 0===a?!1:a;var c=D.aa.create("<dataSource/>");c.attr("type",this.Ba);switch(this.Ba){case k.i.oa.Nc:(a||""!=this.localeIdentifier)&&c.append(D.aa.create("<localeIdentifier/>").text(this.localeIdentifier)),(a||""!=this.effectiveUserName)&&c.append(D.aa.create("<effectiveUserName/>").text(this.effectiveUserName)),(a||""!=this.av)&&c.append(D.aa.create("<customData/>").text(this.av));case k.i.oa.Zd:c.append(D.aa.create("<proxyUrl/>").append(D.aa.Bh(this.proxyUrl))),
(a||""!=this.dataSourceInfo)&&c.append(D.aa.create("<dataSourceInfo/>").text(this.dataSourceInfo)),c.append(D.aa.create("<catalog/>").text(this.Ae)),c.append(D.aa.create("<cube/>").text(this.wa)),c.append(D.aa.create("<binary/>").text(this.binary)),(a||""!=this.roles)&&c.append(D.aa.create("<roles/>").text(this.roles)),this.credentials&&this.credentials.Om&&(a=D.aa.create("<hash/>").text(this.credentials.hash),c.append(D.aa.create("<credentials/>").append(a)))}return c};b.prototype.La=function(a){a=
void 0===a?!1:a;var c={};c.type=this.Ba;switch(this.Ba){case k.i.oa.Nc:if(a||""!=this.localeIdentifier)c.localeIdentifier=this.localeIdentifier;if(a||""!=this.effectiveUserName)c.effectiveUserName=this.effectiveUserName;if(a||""!=this.av)c.customData=this.av;if(a||this.withCredentials)c.withCredentials=this.withCredentials;if(a||1!=this.Jw)c.useGranularityNamesForDateFilters=this.Jw;case k.i.oa.Zd:c.proxyUrl=this.proxyUrl;if(a||""!=this.dataSourceInfo)c.dataSourceInfo=this.dataSourceInfo;c.catalog=
this.Ae;c.cube=this.wa;c.binary=this.binary;if(a||""!=this.roles)c.roles=this.roles;this.credentials&&this.credentials.Om&&(c.credentials={hash:this.credentials.hash})}if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);return c};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;switch(this.Ba){case k.i.oa.Nc:""!==this.localeIdentifier&&(a.localeIdentifier=this.localeIdentifier),""!==this.effectiveUserName&&(a.effectiveUserName=this.effectiveUserName),""!==this.av&&(a.Fm=this.av),
this.withCredentials&&(a.withCredentials=this.withCredentials),1!=this.Jw&&(a.Jw=this.Jw);case k.i.oa.Zd:a.proxyUrl=this.proxyUrl,""!==this.dataSourceInfo&&(a.dataSourceInfo=this.dataSourceInfo),a.Ae=this.Ae,a.wa=this.wa,a.binary=this.binary,""!==this.roles&&(a.roles=this.roles),this.credentials&&this.credentials.Om&&(a.credentials={hash:this.credentials.hash})}if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);return a};q.Object.defineProperties(b.prototype,{Ae:{configurable:!0,
enumerable:!0,get:function(){return this.H8},set:function(a){a=a.replace("[","");this.H8=a=a.replace("]","")}},wa:{configurable:!0,enumerable:!0,get:function(){return this.af},set:function(a){a=a.replace("[","");this.af=a=a.replace("]","")}},Fm:{configurable:!0,enumerable:!0,get:function(){return this.Ba!=k.i.oa.Nc?"":""==this.av&&null!=this.credentials&&this.credentials.Om?"credentials="+this.credentials.hash:this.av},set:function(a){this.av=a}},rT:{configurable:!0,enumerable:!0,get:function(){return this.binary}},
ob:{configurable:!0,enumerable:!0,get:function(){return f.ha(this.proxyUrl)},set:function(){}},RL:{configurable:!0,enumerable:!0,get:function(){return!1},set:function(){}},KG:{configurable:!0,enumerable:!0,get:function(){return!1}},gT:{configurable:!0,enumerable:!0,get:function(){return this.Ba!=k.i.oa.Zd||this.rT?!0:!1}},fT:{configurable:!0,enumerable:!0,get:function(){return this.Ba==k.i.oa.Nc&&this.rT}}});b.sessionId=0;d.OLAPConnectionInfo=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||
(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return h.Gu.apply(this,arguments)||this}u(b,h.Gu);b.prototype.XS=function(a,c,e,g,l,m){for(var n=[],p=[],t=0;t<a.length;t++){if(-1===a[t][1])return;p[t]=a[t][1];n[this.ra[this.uh[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.ra[this.Ti[t]][c[t][0]]]=a[t]}c=this.rr(p,a);p=this.pb.length;void 0!==this.values[c]?p=this.axa(n):(this.Wg.push(p),this.pb.push(n));0<g.length&&(n=l===k.i.ia.Ia?this.cd(g,
this.vd):this.cd(g,this.Md),-1===n[0][0].indexOf(p)&&n[0][0].push(p),m===k.i.Kd.ZV&&(g=g.slice(0,-1),l=l===k.i.ia.Ia?this.cd(g,this.vd):this.cd(g,this.Md),-1===l[0][0].indexOf(p)&&l[0][0].push(p)));this.values[c]=e};b.prototype.axa=function(a){for(var c,e=0;e<this.pb.length;e++)if(a.length===this.pb[e].length){c=!0;for(var g=0;g<a.length;g++)if(a[g]!==this.pb[e][g]){c=!1;break}if(c)return e}return this.pb.length};b.prototype.Fa=function(a,c,e){var g=this.rr(a,c),l=this.Eh(e);void 0===this.values[g]&&
(this.values[g]=[]);if(!f.model.B.C.zv||!e.Ka)return f.v(this.values[g][l])?NaN:this.values[g][l];if(void 0==this.values[g][l]){var m=this.cd(a,this.vd),n=this.cd(c,this.Md);if(void 0===m||void 0===m[0]||void 0===n||void 0===n[0])return NaN;a=this.qq([g],e.Sd,e.gl,0,a,c,e.Eo);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][l]=a}return f.v(this.values[g][l])?NaN:this.values[g][l]};b.prototype.yA=function(a,c,e){if(void 0!==a){var g=a[0][0];if(0<g.length&&!isNaN(c))for(var l=0;l<g.length;l++){var m=this.pb[g[l]][this.ra[c][1]];
0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[l]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[l]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===e?a[0][3][this.bg.length]=!0:a[0][3][this.Eh(e)]=!0;a[0][5]=!0}};b.prototype.JP=function(a,c,e,g,l){var m=c[0][0];if(0<m.length&&!isNaN(g))for(var n=0;n<m.length;n++){var p=this.pb[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.al[e][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===l?c[0][4][this.bg.length]=!0:c[0][4][this.Eh(l)]=!0};b.prototype.Jn=function(a,c,e){for(var g=0;g<c.length;g++){var l=c[g],m=e[g];if(f.model.B.C.A0){var n=this.slice.rc().getItem(this.le[m]),p=n.va(l);f.v(n.kC)||f.v(this.ra)||f.v(e[g])||f.v(this.ra[e[g]])||(m=this.ra[e[g]][p.level.sb])}m=f.v(this.al[m])||f.v(this.al[m][l])?m:this.al[m][l];n=[];for(p=0;p<a.length;p++)this.pb[a[p]][m]===l&&n.push(a[p]);a=n}return a};b.prototype.Bm=function(a,c){a&&h.Gu.prototype.Bm.call(this,
a,c)};b.prototype.T9=function(a,c,e){a=x.ws.pL(a.Sd,c);for(var g=0;g<a.length;g++){var l=this.wa.I.$c(a[g].uniqueName);null==l||c.Bb(l.uniqueName)||(l.hidden=!0,e.push(l),this.RJ(l),this.xx(l.uniqueName,l.Ll),k.i.ca.UL(l.$)&&this.xx(l.uniqueName,l.$))}};d.Kna=b})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.o5.call(this,c,e)||this}u(a,k.I.o5);b.H7=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.ek.call(this,c,void 0===e?"":e)||this}u(a,k.I.ek);a.prototype.clone=function(){var c=new a(this.uniqueName);this.xK(c);return c};q.Object.defineProperties(a.prototype,{bm:{configurable:!0,enumerable:!0,get:function(){return this.Ka||this.Bg?[]:k.i.ca.e5},set:function(){}},$:{configurable:!0,enumerable:!0,get:function(){return""==this.Cj?this.Tc[0]:this.Cj},set:function(c){c&&c.toLowerCase()!=this.Cj?(c=c.toLowerCase(),
k.i.ca.Vx(c)&&(c=k.i.ca.ky(c)),k.i.ca.bKa(c)||this.Ka&&c==k.i.ca.NONE?(this.fv=void 0,this.Cj=c,-1==this.Tc.indexOf(c)&&(this.Cj=this.Tc[0])):this.OU()):""==c&&this.OU()}},ac:{configurable:!0,enumerable:!0,get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},caption:{configurable:!0,enumerable:!0,get:function(){if(0==f.model.B.C.iz)return this.ac;switch(this.$){case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.ac);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.ac);
case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.ac);case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.ac);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.ac);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.ac);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.ac);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.ac);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.ac);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.ac)}return this.ac},set:function(c){""==c.trim()?this.qc=f.model.A.j.Mk:
this.qc=c}},Yl:{configurable:!0,enumerable:!0,get:function(){return this.ac},set:function(){}}});b.cA=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){return k.I.Pq.apply(this,arguments)||this}u(a,k.I.Pq);q.Object.defineProperties(a.prototype,{caption:{configurable:!0,enumerable:!0,get:function(){return this.hierarchy.aC(this.ordinal)},set:function(){}},Bi:{configurable:!0,enumerable:!0,get:function(){return this.level.cw?!0:this.hierarchy.sT||this.hierarchy.$t||this.level.cw?(this.Pg||!this.yf)&&0==this.children.length:!1},set:function(){}},Xi:{configurable:!0,enumerable:!0,
get:function(){return this.uniqueName}}});b.SW=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g){return k.I.$m.call(this,c,void 0===e?"":e,void 0===g?0:g)||this}u(a,k.I.$m);b.Nna=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){c=k.I.nf.call(this,c,void 0===e?"":e)||this;c.F9=0;return c}u(a,k.I.nf);a.prototype.fc=function(c){c.uniqueName==this.br&&(c.Wb=!0);return k.I.nf.prototype.fc.call(this,c)};a.prototype.Kl=function(c){c=void 0===c?"(Total)":c;if(this.Fh)return this.tn+".["+c+"]";var e=this.xt.split("].");e.pop();e.push("["+c+"]");return e.join("].")};a.prototype.nV=function(c,e){var g=this.Mha(c.children);g=f.pg(this.Ly)?this.qha(g):this.uY(g);
for(var l=[],m=0;m<g.length;m++)if(l.push(g[m].ordinal),e&&!c.Bi){var n=this.uj(g[m],e);0<n.length&&(l=l.concat(n))}return l};a.prototype.uY=function(c){this.Zf===k.i.xa.bc&&f.Ha.sort(c,f.Ha.mi,function(e){return e.ec});this.Zf===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.mi,function(e){return e.ec});return c};a.prototype.UR=function(c){c=this.Zu.find(c);return this.va(c)};a.prototype.bC=function(){return new b.SW(this)};q.Object.defineProperties(a.prototype,{Un:{configurable:!0,enumerable:!0,get:function(){return this.F9},
set:function(c){this.Fh||(c+=1);this.F9=c}},tn:{configurable:!0,enumerable:!0,set:function(c){""!=c&&!f.v(c)||this.Qe?this.br=c:(this.br=this.uniqueName+".[(All)]",this.ph(new k.I.$m(this.uniqueName,this.caption+" (All)")),this.fc(new k.I.Rd({uniqueName:this.br,caption:this.caption+" (All)",Wb:!0})),this.FA=!1)},get:function(){return this.br}}});b.LO=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.Oq.call(this,c,void 0===e?"":e)||this}u(a,k.I.Oq);b.Lna=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.rs.call(this)||this;c.cG=new b.Mna;return c}u(a,k.I.rs);a.prototype.LY=function(c,e){this.fea.Pa(c.uniqueName,c);if(0==f.ha(c.value)){var g=new b.cA(c.value,this.py(c.value,c.caption,f.model.A.j.a7,e));g.yg=f.model.A.j.Ww;g.Qc=c.caption;g.type=k.i.Ja.fb;g.Lr=c.uniqueName;this.Hj(g)}0==f.ha(c.ty)&&(g=new b.cA(c.ty,this.py(c.ty,c.caption,f.model.A.j.W6,e)),g.yg=f.model.A.j.Ww,g.Qc=c.caption,g.type=k.i.Ja.fb,g.Lr=
c.uniqueName,this.Hj(g));0==f.ha(c.status)&&(g=new b.cA(c.status,this.py(c.status,c.caption,f.model.A.j.Y6,e)),g.yg=f.model.A.j.Ww,g.Qc=c.caption,g.type=k.i.Ja.fb,g.Lr=c.uniqueName,g.xC=!0,this.Hj(g));0==f.ha(c.oz)&&(e=new b.cA(c.oz,this.py(c.oz,c.caption,f.model.A.j.Z6,e)),e.yg=f.model.A.j.Ww,e.Qc=c.caption,e.type=k.i.Ja.fb,e.Lr=c.uniqueName,e.yC=!0,this.Hj(e))};a.prototype.nw=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;var l=e?e:new b.cA(c.uniqueName);return k.I.rs.prototype.nw.call(this,
c,l,f.v(e)||g)};b.Ona=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){(function(b){function a(){return k.I.OD.apply(this,arguments)||this}u(a,k.I.OD);a.prototype.mG=function(c){var e=k.I.OD.prototype.mG.call(this,c);c!=k.i.kb.NONE&&(e.xl=[k.i.tc.Bj,k.i.tc.ji]);return e};b.Mna=a})(d.I||(d.I={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=this;this.gx=20;this.moa=RegExp("<Tuple>(.|\n|\r)*?</Tuple>","gi");this.koa=RegExp("<Cell (.|\n|\r)*?</Cell>","gi");this.loa=RegExp("<row>(.|\n|\r)*?</row>","g");this.W7=RegExp("<soap:Fault(.|\n|\r)*?</soap:Fault>","gi");this.V7=RegExp("<SOAP-ENV:Fault(.|\n|\r)*?</SOAP-ENV:Fault>","gi");this.ga=k.Na.U();this.O4=!0;this.KA=!1;this.Gk=function(){return c.Vr()};this.ej=function(){return c.mp()};this.uba=function(){return c.VDa()};
this.Vy=function(e){return c.lp(e)};this.Xa=function(){return c.Mb()}}a.prototype.load=function(c,e,g){this.fa=c;this.Fj=e;this.Eb=g;this.KA=!1;this.kw()};a.prototype.drillThrough=function(c,e,g,l,m,n){this.fa=c;this.Fj=e;this.Eb=n;this.KA=!0;this.kw()};a.prototype.kw=function(){f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,"0.5"));this.vh();this.qC();b.Kf.ub=this.fa;this.ma.data=D.aa.Cc(b.Kf.Jv(this.Fj.body));this.ma.load(this.fa.proxyUrl);this.timer=new x.Es(500,1E5);this.timer.N(x.Ze.Nk,this.Gk);
this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.OK=function(){f.v(this.fa.withCredentials)||(this.ma.withCredentials=this.fa.withCredentials)};a.prototype.vh=function(){this.ma=new D.Qi;this.ma.Sfa=100;this.ma.contentType=D.Iz.eP;this.ma.dataType=D.Jz.aa;this.ma.Dq=D.Fs.Pu;var c=JSON.parse(JSON.stringify(f.v(this.fa.requestHeaders)?{}:this.fa.requestHeaders));this.O4&&(c.Accept="application/xml");this.OK();this.fa.credentials&&this.fa.credentials.Om&&(c.Authorization="Basic "+this.fa.credentials.hash,
this.ma.withCredentials=!0);this.ma.vh(c)};a.prototype.Vr=function(){null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/2,new f.model.Zb.W.pf,!1,!1,1)))};a.prototype.mp=function(){this.timer.sl&&f.Va("Can't connect to data source!",f.model.A.j.ya)};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.qC=function(){this.ma.N(y.da.Jc,this.uba);this.ma.N(y.da.je,this.Vy);
this.ma.N(y.da.ya,this.Xa);this.sj=d.jj.NONE;this.Uc=[];this.Gb=[];this.mB=[];this.IB=[];this.HB=[];this.SF=[];this.bY="";this.gQ=0;this.columns=[];this.rows=[];this.measures=[];this.rc=this.ga.I.rc();this.Of=this.ga.sa.pu;this.MX=this.$E=!1;this.XC=this.WC=-1;this.Ac=[]};a.prototype.VDa=function(){var c=D.aa.Cc(D.aa.create(this.ma.response));this.MX=!0;this.Nqa(c)};a.prototype.lp=function(c){c=c.data;c.loaded!==this.Jj&&(this.ag(),this.Jj=c.loaded,this.e4(c.loaded))};a.prototype.Nqa=function(c){this.Jd(c);
!this.$E&&this.sj>d.jj.NONE&&this.lJa()};a.prototype.Jd=function(c){if(0!=c.length&&this.gQ!=c.length){var e=this.bY+c.substring(this.gQ);if(this.sj===d.jj.NONE){if(this.fa.Ba==k.i.oa.Nc){if(this.W7.test(e)){this.hGa(e.match(this.W7)[0]);this.yq();return}}else if(this.fa.Ba==k.i.oa.Zd&&this.V7.test(e)){this.iGa(e.match(this.V7)[0]);this.yq();return}var g=this.EV(e);-1<g&&(e=e.substr(g))}this.sj==d.jj.bW&&(g=this.EV(e),0>g&&(g=e.lastIndexOf("</row>")+6),5!=g&&(this.UJa(e.substring(0,g),this.IB),e=
e.substr(g)));this.sj==d.jj.VV&&(g=this.EV(e),0>g&&(g=e.lastIndexOf("</Tuple>")+8),7!=g&&(this.fia(e.substring(0,g),this.Uc),e=e.substr(g)));this.sj==d.jj.aX&&(g=this.EV(e),0>g&&(g=e.lastIndexOf("</Tuple>")+8),7!=g&&(this.fia(e.substring(0,g),this.Gb),e=e.substr(g)));this.sj==d.jj.gX&&(g=e.indexOf("<CellData>"),-1<g&&(this.sj=d.jj.SH,e=e.substr(g)));this.sj==d.jj.SH&&(g=e.indexOf("</CellData>"),0>g&&(g=e.lastIndexOf("</Cell>")+7),6!=g&&(this.SJa(e.substring(0,g),this.mB),e=e.substr(g)));this.gQ=c.length;
this.bY=e}};a.prototype.iGa=function(c){c=c.replace(/SOAP-ENV:Fault/gi,"Fault");c=c.replace(/XA:error/gi,"error");c=D.aa.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),f.Va(c,f.model.A.j.ya,f.rb.ya))};a.prototype.hGa=function(c){c=c.replace(/soap:Fault/gi,"Fault");c=D.aa.create(c);null!=c.find("faultstring")&&(c=c.find("faultstring").text(),f.Va(c,f.model.A.j.ya,f.rb.ya))};a.prototype.EV=function(c){var e=-1;if(this.KA&&this.sj<d.jj.bW){e=c.indexOf("<row>");this.sj=d.jj.bW;
if(-1<e)return e;f.Va("No data received from the server.",f.model.A.j.ya)}if(this.sj<d.jj.VV&&(e=c.indexOf('<Axis name="Axis0">'),-1<e))return this.sj=d.jj.VV,e;if(this.sj<d.jj.aX&&(e=c.indexOf('<Axis name="Axis1">'),-1<e))return this.sj=d.jj.aX,e;if(this.sj<d.jj.gX&&(e=c.indexOf('<Axis name="SlicerAxis">'),-1<e))return this.sj=d.jj.gX,e;this.sj<d.jj.SH&&(e=c.indexOf("<CellData>"),-1<e&&(this.sj=d.jj.SH));return e};a.prototype.UJa=function(c,e){c=c.match(this.loa);for(var g=0;g<c.length;g++){var l=
c[g].replace(/xsi:/g,"");l=l.replace(/xsd:/g,"");e.push(D.aa.create(l))}};a.prototype.fia=function(c,e){c=c.match(this.moa);if(!f.v(e)&&!f.v(c))for(var g=0;g<c.length;g++){var l=c[g].replace(/xsi:/g,"");e.push(D.aa.create(l))}};a.prototype.SJa=function(c,e){c=c.match(this.koa);if(!f.v(c)&&!f.v(e))for(var g=0;g<c.length;g++)f.v(c[g])||f.ha(c[g])||e.push(c[g])};a.prototype.lJa=function(){var c=this;this.$E=!0;x.Pk.sn({ao:function(){return c.parse()},Ne:function(){return c.yq()}})};a.prototype.parse=
function(){0<this.Uc.length&&this.xU();0<this.Gb.length&&this.zU();this.sj==d.jj.SH&&(0==this.columns.length&&(this.columns=[[[0,0]]]),0==this.rows.length&&(this.rows=[[]]));0<this.mB.length&&this.YFa();0<this.IB.length&&this.dGa();return this.MX&&0==this.Uc.length&&0==this.Gb.length&&0==this.mB.length&&0==this.IB.length};a.prototype.YFa=function(){for(var c,e,g,l,m,n=this.gx>this.mB.length?this.mB.length:this.gx,p=this.mB.splice(0,n),t=f.model.B.C.Jq&&this.fa.Ba===k.i.oa.Nc,r=0;r<n;r++)c=p[r],g=
null===c.match(/<Value.*>(.*)<\/Value>/)?0:parseFloat(c.match(/<Value.*>(.*)<\/Value>/)[1]),t&&(l=c.match(/<FmtValue.*>(.*)<\/FmtValue>/),l=null!=l&&1<l.length?l[1]:""),e=parseInt(c.match(/CellOrdinal="(.*)"/)[1]),c=this.eC(e),e=this.UB(e),m=this.measures[e],c==this.XC&&this.columns[this.WC].toString()==this.columns[e].toString()||-1==this.XC||-1==this.WC||(this.ga.qa.XS(this.rows[this.XC],this.columns[this.WC],this.Ac,this.Fj.We,this.Fj.ft,this.Fj.type),this.Ac=[]),this.Ac[m]=t&&this.Of[m].$==k.i.ca.NONE?
k.HI.U().hz(l,g):g,this.XC=c,this.WC=e;-1!=this.XC&&-1!=this.WC&&this.ga.qa.XS(this.rows[this.XC],this.columns[this.WC],this.Ac,this.Fj.We,this.Fj.ft,this.Fj.type)};a.prototype.dGa=function(){for(var c,e,g=this.gx>this.IB.length?this.IB.length:this.gx;0<g;){c=this.IB.shift();e=[];for(var l=0;l<c.getChildren().length;l++)this.fGa(c.getChildren()[l],e,l);this.HB.push(e);g--}};a.prototype.fGa=function(c,e,g){e[c.localName]=c.text();0>this.SF.indexOf(c.localName)&&this.SF.splice(g,0,c.localName)};a.prototype.FGa=
function(){for(var c=this,e=[],g=0;g<this.SF.length;g++)e[this.SF[g]]=g;for(g=0;g<this.HB.length;g++){var l=this.HB[g],m=[],n;for(n in l)m[e[n]]=l[n];this.HB[g]=m}e=this.SF.map(function(p){return c.eGa(p)});this.HB.unshift(e)};a.prototype.eGa=function(c){c=c.replace(/_x005B_/g,"[");c=c.replace(/_x005D_/g,"]");c=c.replace(/_x0020_/g," ");c=c.replace(/_x0024_/g,"");var e=this.rc.getItem(c);if(null!=e)return e.caption;e=this.Of.find(function(g){return g.uniqueName===c});if(null!=e)return e.caption;e=
c.split("].[");1<e.length&&(c=e[e.length-1].substr(0,e[e.length-1].length-1));return c};a.prototype.UB=function(c){return c%this.columns.length};a.prototype.eC=function(c){return Math.floor(c/this.columns.length)};a.prototype.zU=function(){for(var c,e,g=this.gx>this.Gb.length?this.Gb.length:this.gx;0<g;){this.rowIndex=0;e=[];c=this.Gb.shift();var l=c.find("Member");for(c=0;c<l.length;c++)this.xGa(l[c],e);this.rows.push(e);g--}};a.prototype.xGa=function(c,e){var g=c.find("HIERARCHY_UNIQUE_NAME").text();
g=this.rc.getItem(g);null!=g&&(c=this.Db(c,g),e.push([c.level.sb,c.ordinal]),this.rowIndex++)};a.prototype.xU=function(){for(var c,e,g=this.gx>this.Uc.length?this.Uc.length:this.gx;0<g;){this.Jta=0;c=[];e=this.Uc.shift();e=e.find("Member");for(var l=0;l<e.length;l++)this.$Fa(e[l],c);this.columns.push(c);g--}};a.prototype.$Fa=function(c,e){var g=c.find("HIERARCHY_UNIQUE_NAME").text();if("Measures"!=g&&"[Measures]"!=g){var l=this.rc.getItem(g);null==l&&(l=this.rc.getItem("["+g+"]"));null!=l&&(c=this.Db(c,
l),e.push([c.level.sb,c.ordinal]),this.Jta++)}else{var m=c.find("UName").text();e=this.Of.findIndex(function(n){return n.uniqueName===m});this.measures.push(e)}};a.prototype.Db=function(c,e){var g=c.find("UName").text(),l=e.Db(g);if(f.v(l)){var m=c.find("Caption").text();-1<m.indexOf("(Total")&&(e.Fh?g=g.substring(0,g.lastIndexOf(".[(")):(g=g.substring(0,g.lastIndexOf(".[("))+".[(All)]",null==e.Db(g)&&(g=g.substring(0,g.length-8))),l=e.Db(g))}f.v(l)&&(m=c.find("Caption").text(),c=c.find("PARENT_UNIQUE_NAME").text(),
l=e.fc(new k.I.Rd({uniqueName:g,caption:m,yf:!0,ei:c})));return l};a.prototype.e4=function(c){c=x.Tb.xg(c);f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.Al,c))};a.prototype.yq=function(){f.za(!1);this.Eb&&(this.KA?(this.FGa(),this.Eb(this.HB)):this.Eb());this.clear()};a.prototype.Mb=function(){};a.prototype.clear=function(){this.ma&&(this.ma.mb(y.da.Jc,this.uba),this.ma.mb(y.da.je,this.Vy),this.ma.mb(y.da.ya,this.Xa),this.ma.close(),this.ma=null);this.timer&&this.timer.sl&&this.timer.stop();this.sj=
0;this.Uc=[];this.Gb=[];this.mB=[];this.IB=[];this.HB=[];this.SF=[];this.gQ=0;this.bY="";this.columns=[];this.rows=[];this.measures=[];this.Of=this.rc=null;this.MX=this.$E=!1;this.XC=this.WC=-1;this.Ac=[]};a.prototype.cancel=function(){this.clear();this.Eb=null};b.x8=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=this;this.kl=this.Bk=this.ZG=0;this.gq=5E3;this.Kea=1E3;this.state=k.qo.gE;this.ld="";this.eu=!1;this.kea="";this.faa=function(){return e.vDa()};this.iaa=function(){return e.xDa()};this.yea=function(){return e.aj()};this.Vy=function(g){return e.lp(g)};this.Aga=function(){return e.tFa()};this.Bga=function(g){return e.uFa(g)};this.yga=function(){return e.pFa()};this.gaa=function(g){return e.wDa(g)};this.Xh=function(g){return e.Mb(g)};
b.Kf.ub=this.fa=c}a.prototype.Ul=function(){this.ma=new D.Qi;this.ma.contentType=D.Iz.eP;this.ma.dataType=D.Jz.aa;this.ma.Dq=D.Fs.Pu;this.OK();var c=JSON.parse(JSON.stringify(f.v(this.fa.requestHeaders)?{}:this.fa.requestHeaders));this.fa.credentials&&this.fa.credentials.Om&&(c.Authorization="Basic "+this.fa.credentials.hash,this.ma.withCredentials=!0);this.ma.vh(c)};a.prototype.OK=function(){f.v(this.fa.withCredentials)||(this.ma.withCredentials=this.fa.withCredentials)};a.prototype.LG=function(){return f.ha(this.hierarchy.ig)?
this.hierarchy.Un<this.Kea:this.hierarchy.Un<10*this.Kea};a.prototype.yn=function(){return f.ha(this.fa.subquery)?"["+this.fa.wa+"]":"("+this.fa.subquery+")"};a.prototype.Kua=function(c,e){this.Mua=c;this.Xa=e;c=this.yn();c=f.O.bind("with member [Measures].[CountAllMembers] as Count({0}.allmembers) select NON EMPTY {[Measures].[CountAllMembers]} ON columns FROM {1}",this.hierarchy.uniqueName,c);this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,this.faa);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};
a.prototype.vDa=function(){var c=D.aa.create(this.ma.response);this.sz(c)&&(this.hierarchy.Un=parseInt(c.find("root CellData Cell Value").text()));this.Mua()};a.prototype.sz=function(c){return 0==c.length?(f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1),!1):0<c.find("root Fault").length?(f.Va(D.aa.Cc(c.find("root Fault faultstring")),"Query error!",f.rb.ya),!1):!0};a.prototype.load=function(c,e,g){this.ld="";this.fD&&(this.fD.length=0);this.kl=this.Bk=this.ZG=0;this.Eb=e;this.Xa=g;this.Xb=c;this.LG()?this.yk():
this.count()};a.prototype.count=function(){var c=this.yn();c=null==this.Xb?f.O.bind("with member [Measures].[CountMembers] as Count({0}.levels(1).allmembers) select  NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.hierarchy.uniqueName,c):f.O.bind("with member [Measures].[CountMembers] as Count({0}.children) select NON EMPTY {[Measures].[CountMembers]} ON columns FROM {1}",this.Xb.uniqueName,c);this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,this.iaa);this.ma.N(y.da.ya,
this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.xDa=function(){var c=D.aa.create(this.ma.response);this.sz(c)&&(this.ZG=parseInt(c.find("root CellData Cell Value").text()),this.yk())};a.prototype.wB=function(){return""};a.prototype.EZ=function(){return""};a.prototype.yk=function(){var c=this.EZ();this.state=k.qo.gE;this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,this.yea);this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.aj=function(){this.kl+=
this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;this.sz(c)&&this.UC(c);this.Bk+=this.gq;this.Bk<this.ZG&&!this.LG()?this.yk():this.aU()};a.prototype.UC=function(c){var e=c.find("root");if(0<e.find("Fault").length)f.Va(D.aa.Cc(e.find("Fault faultstring")),"Query error!",f.rb.ya);else{c=[];e=e.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var g=this.hierarchy.vi,l=0;l<e.length;l++)c.push(this.yU(e[l],l+g));return c}};a.prototype.yU=function(){return null};a.prototype.aU=
function(){f.za(!1);this.Eb(this.hierarchy)};a.prototype.lp=function(c){c=x.Tb.xg(c.data.loaded+this.kl);f.za(!0,f.model.A.j.gn,this.hierarchy.caption+", "+f.O.bind(f.model.A.j.Al,c))};a.prototype.Mb=function(c){f.Va(c.message,"Error",f.rb.ya);null!=this.Xa&&(this.Xa(c.message),this.Xa=null)};a.prototype.fZ=function(c,e,g,l,m){var n=this;this.Eb=l;this.Xa=m;this.eu=g;this.hierarchy=c;this.state=k.qo.d5;c=[];for(g=0;g<e.length;g++)c.push(f.O.bind("Ascendants({0})",e[g]));e="{"+c.join(", ")+"}";this.kl=
0;this.Ul();c=this.yn();e=f.O.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",e,c);this.ma.data=D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,function(){return n.Y1()});this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.Y1=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;if(this.sz(c)){c=this.UC(c);for(var e=0;e<c.length;e++)this.hierarchy.va(c[e]).yf=!0;this.eu?
this.h4(c,this.Xa):this.hierarchy.Iv()}this.eu||this.Eb(this.hierarchy)};a.prototype.Wx=function(c,e,g,l,m){var n=this;this.Eb=l;this.Xa=m;this.hierarchy=c;this.kea=g;this.state=k.qo.bka;this.kl=0;this.Ul();c=this.yn();e=f.O.bind("SELECT Hierarchize(Distinct(Descendants({0}, {1}, SELF_AND_BEFORE))) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {2}",e.uniqueName,g,c);this.ma.data=D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,function(){return n.JDa()});this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,
this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.JDa=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;if(this.sz(c)){c=this.UC(c);for(var e=0;e<c.length;e++){var g=this.hierarchy.va(c[e]);g.level.uniqueName==this.kea?g.yf=!0:this.hierarchy.$x(g)}}this.Eb(this.hierarchy)};a.prototype.h4=function(c,e){var g=this;this.Xa=e;e=[];for(var l=0;l<c.length;l++)e.push(f.O.bind("{0}.Siblings",this.hierarchy.va(c[l]).uniqueName));c="{"+e.join(", ")+"}";this.state=
k.qo.d8;this.kl=0;this.Ul();e=this.yn();c=f.O.bind("SELECT Hierarchize(Distinct({0})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",c,e);this.ma.data=D.aa.Cc(b.Kf.Jv(c));this.ma.N(y.da.Jc,function(){return g.X2()});this.ma.N(y.da.je,this.Vy);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.X2=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;this.eu=!1;if(this.sz(c)){c=this.UC(c);for(var e=0;e<c.length;e++)this.hierarchy.va(c[e]).yf=
!0;this.hierarchy.Iv()}this.Eb(this.hierarchy)};a.prototype.search=function(c,e,g){this.ld=c.toLowerCase().replace(RegExp('"',"g"),'""').replace(RegExp("'","g"),"''");this.Eb=e;this.Xa=g;this.kl=this.Bk=this.ZG=0;this.state=k.qo.cX;this.fD&&0<this.fD.length?this.fD.length=0:this.fD=[];this.Pua()};a.prototype.HZ=function(){var c=f.O.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.allmembers, {1}), (INSTR(1, {0}.CurrentMember.member_caption, {2}) > 0))'",this.hierarchy.uniqueName,this.hierarchy.tn,
'"'+this.ld+'"');var e=f.O.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.tn);return c+"\n"+e+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"};a.prototype.Pua=function(){var c=this.yn(),e="MEMBER [Measures].[CountSearchSet] AS 'COUNT([SearchSet])'\nSELECT NON EMPTY {[Measures].[CountSearchSet]} ON COLUMNS FROM {0}";e="WITH "+this.HZ()+"\n"+f.O.bind(e,c);this.Ul();this.ma.data=
D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,this.yga);this.ma.N(y.da.je,this.gaa);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.pFa=function(){var c=D.aa.create(this.ma.response);this.sz(c)&&(this.ZG=parseInt(c.find("root CellData Cell Value").text()),this.vp())};a.prototype.wDa=function(c){f.za(!0,"Counting members...",this.hierarchy.caption+", "+Math.round(c.data.loaded/1E3)+"K loaded")};a.prototype.vp=function(){var c=this.yn(),e="SELECT SUBSET([SearchSet], {0}, {1}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM {2}";
e="WITH "+this.HZ()+"\n"+f.O.bind(e,this.Bk,this.gq,c);this.Ul();this.ma.data=D.aa.Cc(b.Kf.Jv(e));this.ma.N(y.da.Jc,this.Aga);this.ma.N(y.da.je,this.Bga);this.ma.N(y.da.ya,this.Xh);this.ma.load(this.fa.proxyUrl)};a.prototype.uFa=function(c){c=x.Tb.xg(c.data.loaded+this.kl);f.za(!0,f.model.A.j.gn,this.hierarchy.caption+", "+f.O.bind(f.model.A.j.Al,c))};a.prototype.tFa=function(){this.kl+=this.ma.si;var c=D.aa.create(this.ma.response);this.ma.close();this.ma=null;this.sz(c)&&this.zGa(c);this.Bk+=this.gq;
this.Bk<this.ZG?this.vp():this.PC()};a.prototype.zGa=function(c){c=c.find("root");if(0<c.find("Fault").length)f.Va(D.aa.Cc(c.find("Fault faultstring")),"Query error!",f.rb.ya);else{c=c.find('Axes Axis[name="Axis0"] Tuples Tuple Member');for(var e=0;e<c.length;e++)this.yGa(c[e])}};a.prototype.yGa=function(c){var e=c.find("PARENT_UNIQUE_NAME").text();var g=c.find("Caption").text(),l=c.find("UName").text(),m=parseInt(c.find("MEMBER_ORDINAL").text()),n=this.hierarchy.Db(l);if(null==n&&(n=this.hierarchy.fc(new k.I.Rd({uniqueName:l,
caption:g,ec:m,ei:e})),n.level&&0<n.level.gf.length))for(g=0;g<n.level.gf.length;g++)e=n.level.gf.ea(g),n.setProperty(e.uniqueName,c.find(e.FV).text());n.parent&&!n.parent.Wb&&(n.parent.yf=!0);this.fD.push(n.ordinal)};a.prototype.PC=function(){f.za(!1);this.Eb(this.fD)};a.prototype.cancel=function(){this.ma&&(this.ma.mb(y.da.Jc,this.faa),this.ma.mb(y.da.Jc,this.iaa),this.ma.mb(y.da.Jc,this.yea),this.ma.mb(y.da.je,this.Vy),this.ma.mb(y.da.Jc,this.Aga),this.ma.mb(y.da.je,this.Bga),this.ma.mb(y.da.Jc,
this.yga),this.ma.mb(y.da.je,this.gaa),this.ma.mb(y.da.ya,this.Xh),this.ma.close());this.Xa=this.ma=null};b.oP=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=this;this.wa=k.Na.U();this.O4=!0;this.Qaa=function(){return e.cU()};this.Raa=function(g){return e.KDa(g)};this.uCa=function(){return e.HEa()};this.wCa=function(g){return e.JEa(g)};this.Xh=function(g){return e.Mb(g)};this.dda=function(){return e.s2()};this.eda=function(g){return e.kEa(g)};this.mea=function(){return e.C2()};this.nea=function(g){return e.uEa(g)};this.Tfa=function(){return e.cFa()};this.Ufa=function(g){return e.eFa(g)};
this.Eea=function(){return e.I2()};this.Fea=function(g){return e.LEa(g)};this.b7=function(){return e.w2()};this.c7=function(g){return e.qEa(g)};this.fa=c;this.Zk=new D.Qi;this.GC=new D.Qi;this.Zo=new D.Qi;this.ep=new D.Qi;this.$o=new D.Qi;this.cp=new D.Qi;this.qp=new D.Qi}a.prototype.Xo=function(c){return c.find("row")};a.prototype.load=function(c,e,g,l){this.Ib=e;this.Xa=g;this.Be=l;this.F1(this.c2)};a.prototype.Ul=function(c){this.OK(c);this.vh(c)};a.prototype.OK=function(c){f.v(this.fa.withCredentials)||
(c.withCredentials=this.fa.withCredentials)};a.prototype.vh=function(c){c.contentType=D.Iz.eP;c.dataType=D.Jz.aa;c.Dq=D.Fs.Pu;var e=JSON.parse(JSON.stringify(f.v(this.fa.requestHeaders)?{}:this.fa.requestHeaders));this.O4&&(e.Accept="application/xml");this.fa.credentials&&this.fa.credentials.Om&&(e.Authorization="Basic "+this.fa.credentials.hash,c.withCredentials=!0);c.vh(e);return c};a.prototype.Mb=function(c){this.Zk.Od(y.da.ya);this.Zk.Od(y.da.Jc);this.Zk.Od(y.da.je);c=c.target.url.trim();c=f.model.A.j.cna.replace("{0}",
'<u><a href="'+c+'">'+c+"</a></u>");f.Va(c,"",f.rb.ya);this.Xa(c)};a.prototype.fs=function(){null!=this.Be&&(this.Be(),this.Be=null)};a.prototype.F1=function(c){f.za(!0,f.model.A.j.DI);this.MF=c;this.Ul(this.Zk);b.Kf.ub=this.fa;this.Zk.data=D.aa.Cc(b.Kf.Xta());this.Zk.N(y.da.Jc,this.Qaa);this.Zk.N(y.da.je,this.Raa);this.Zk.N(y.da.ya,this.Xh);this.Zk.load(this.fa.proxyUrl)};a.prototype.KDa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.DI,f.O.bind(f.model.A.j.Al,c))};a.prototype.cU=function(){this.fs();
var c=D.aa.create(this.Zk.response);c=this.Xo(c);if(0<c.length){for(var e=0;e<c.length;e++)this.ufa(c[e]);this.MF()}else f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1)};a.prototype.ufa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=this.fa.mapping.Fa(e,"caption",c.find("DIMENSION_CAPTION").text());c=parseInt(c.find("DIMENSION_TYPE").text());e=new k.I.Oq(e,g);e.type=c;this.wa.I.dt(e)};a.prototype.c2=function(){this.fa.Ba==k.i.oa.Nc?this.cCa(this.IEa):this.LT(this.kU)};a.prototype.cCa=function(c){f.za(!0,
f.model.A.j.DI);this.vCa=c;this.Ul(this.GC);b.Kf.ub=this.fa;this.GC.data=D.aa.Cc(b.Kf.lua());this.GC.N(y.da.Jc,this.uCa);this.GC.N(y.da.je,this.wCa);this.GC.N(y.da.ya,this.Xh);this.GC.load(this.fa.proxyUrl)};a.prototype.JEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.DI,f.O.bind(f.model.A.j.Al,c))};a.prototype.HEa=function(){this.fs();var c=D.aa.create(this.GC.response);c=this.Xo(c);for(var e=0;e<c.length;e++)this.rGa(c[e]);this.vCa()};a.prototype.rGa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),
g=c.find("MEASUREGROUP_NAME").text();c=c.find("DIMENSION_GRANULARITY").text();e=this.wa.I.Vo(e);if(null!=e){e.CG||(e.CG=[]);var l=e.CG;l[g]=c;e.CG=l}};a.prototype.IEa=function(){this.LT(this.kU)};a.prototype.LT=function(c){f.za(!0,f.model.A.j.LW);this.KL=c;this.Ul(this.Zo);this.Zo.data=D.aa.Cc(b.Kf.Kv());this.Zo.N(y.da.Jc,this.dda);this.Zo.N(y.da.je,this.eda);this.Zo.N(y.da.ya,this.Xh);this.Zo.load(this.fa.proxyUrl)};a.prototype.s2=function(){var c=D.aa.create(this.Zo.response);c=this.Xo(c);if(0==
c.length)f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1);else{for(var e=0;e<c.length;e++)this.lGa(c[e]);this.KL()}};a.prototype.lGa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=this.fa.mapping.Fa(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());e=this.wa.I.Vo(e);
null!=e&&(g=this.fa.Ba==k.i.oa.Nc?new d.I.LO(g,l):new d.gp.I.E7(g,l),g.origin=1,g.Qc=n,g.type=k.i.Gc.NB(m),g.tn=p,g.xt=t,1==c&&(g.sT=!0),2==c&&(g.$t=!0),e.Uh(g))};a.prototype.kEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.LW,f.O.bind(f.model.A.j.Al,c))};a.prototype.kU=function(){this.fM(this.D2)};a.prototype.fM=function(c){f.za(!0,f.model.A.j.MW);this.dM=c;this.Ul(this.cp);this.cp.data=D.aa.Cc(b.Kf.jua());this.cp.N(y.da.Jc,this.mea);this.cp.N(y.da.je,this.nea);this.cp.N(y.da.ya,this.Xh);
this.cp.load(this.fa.proxyUrl)};a.prototype.uEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.MW,f.O.bind(f.model.A.j.Al,c))};a.prototype.C2=function(){var c=D.aa.create(this.cp.response);c=this.Xo(c);if(0==c.length)f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1);else{for(var e=0;e<c.length;e++)this.yfa(c[e]);this.dM()}};a.prototype.D2=function(){f.model.B.C.YM?this.dCa(this.dFa):this.OT(this.qU)};a.prototype.yfa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),
l=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());e=this.wa.I.Vo(e);null!=e&&(g=e.Mg(g),null!=g&&(l=new k.I.$m(n,l,c),l.type=k.i.eb.NB(m),g.ph(l),e.Uh(g)))};a.prototype.dCa=function(c){f.za(!0,f.model.A.j.x7);this.WGa=c;this.Ul(this.qp);this.qp.data=D.aa.Cc(b.Kf.oua());this.qp.N(y.da.Jc,this.Tfa);this.qp.N(y.da.je,this.Ufa);this.qp.N(y.da.ya,this.Xh);this.qp.load(this.fa.proxyUrl)};a.prototype.eFa=
function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.x7,f.O.bind(f.model.A.j.Al,c))};a.prototype.cFa=function(){var c=D.aa.create(this.qp.response);c=this.Xo(c);if(0!=c.length)for(var e=0;e<c.length;e++)this.g3(c[e]);this.WGa()};a.prototype.g3=function(){};a.prototype.dFa=function(){this.OT(this.qU)};a.prototype.OT=function(c){f.za(!0,f.model.A.j.FO);this.hM=c;this.Ul(this.ep);this.ep.data=D.aa.Cc(b.Kf.zn());this.ep.N(y.da.Jc,this.Eea);this.ep.N(y.da.je,this.Fea);this.ep.N(y.da.ya,this.Xh);this.ep.load(this.fa.proxyUrl)};
a.prototype.LEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.FO,f.O.bind(f.model.A.j.Al,c))};a.prototype.I2=function(){var c=D.aa.create(this.ep.response);c=this.Xo(c);if(0==c.length)f.Va(f.model.A.j.hE,"",f.rb.ya),f.za(!1);else{for(var e=0;e<c.length;e++)this.sGa(c[e]);this.hM()}};a.prototype.sGa=function(c){var e=c.find("MEASURE_UNIQUE_NAME").text(),g=this.fa.mapping.Fa(e,"caption",c.find("MEASURE_CAPTION").text()),l=c.find("MEASUREGROUP_NAME").text();c=c.find("MEASURE_DISPLAY_FOLDER").text()||
"";g=new d.I.cA(e,g);g.type=1;g.yg=l;g.Qc=c;g.Tc=this.fa.mapping.Fa(e,"aggregations");this.wa.I.Hj(g)};a.prototype.qU=function(){this.MT(this.z2)};a.prototype.MT=function(c){f.za(!0,f.model.A.j.w7);this.XL=c;this.Ul(this.$o);this.$o.data=D.aa.Cc(b.Kf.fua());this.$o.N(y.da.Jc,this.b7);this.$o.N(y.da.je,this.c7);this.$o.N(y.da.ya,this.Xh);this.$o.load(this.fa.proxyUrl)};a.prototype.qEa=function(c){c=x.Tb.xg(c.data.loaded);f.za(!0,f.model.A.j.FO,f.O.bind(f.model.A.j.Al,c))};a.prototype.w2=function(){var c=
D.aa.create(this.$o.response);c=this.Xo(c);if(0!=c.length)for(var e=0;e<c.length;e++)this.nGa(c[e]);this.XL()};a.prototype.nGa=function(c){var e=c.find("KPI_NAME").text(),g=this.fa.mapping.Fa(e,"caption",c.find("KPI_CAPTION").text()),l=c.find("KPI_VALUE").text(),m=c.find("KPI_STATUS").text(),n=c.find("KPI_GOAL").text();c=c.find("KPI_TREND").text();e=new d.I.H7(e,g);e.value=l;e.status=m;e.ty=n;e.oz=c;this.wa.I.LY(e,this.fa.mapping)};a.prototype.z2=function(){f.za(!1);null!=this.Ib&&this.Ib()};a.prototype.yk=
function(c,e,g){var l=this;f.za(!0,f.model.A.j.gn,c.caption);this.Ib=e;this.Xa=g;this.ll.hierarchy=c;this.ll.Kua(function(){l.Uj(c,null,function(m){return l.rj(m)},g)},this.Xa)};a.prototype.rj=function(c){var e=this,g=c.vw;if(0<c.filter.Zl.length)this.eM(c,c.filter.Zl,c.filter.zM,function(m){return e.rj(m)},this.Xa);else if(0<g.length){var l=g.shift();c.vw=g;g=c.Db(l[1]);c.$x(g);null!=l[0]&&""!=l[0]?this.Iy(g,l[0],function(m){return e.rj(m)},this.Xa):this.Uj(c,g,function(m){return e.rj(m)},this.Xa)}else this.Ib(c)};
a.prototype.Uj=function(c,e,g,l){f.za(!0,f.model.A.j.gn,c.caption);this.ll.hierarchy=c;this.ll.load(e,g,l)};a.prototype.eM=function(c,e,g,l,m){this.ll.hierarchy=c;this.ll.fZ(c,e,g,l,m)};a.prototype.Iy=function(c,e,g,l){this.ll.hierarchy=c.hierarchy;this.ll.Wx(c.hierarchy,c,e,g,l)};a.prototype.vp=function(c,e,g,l){this.ll.hierarchy=c;this.ll.search(e,g,l)};a.prototype.kB=function(){return!0};a.prototype.cancel=function(){this.Zk&&(this.Zk.mb(y.da.Jc,this.Qaa),this.Zk.mb(y.da.je,this.Raa),this.Zk.mb(y.da.ya,
this.Xh),this.Zk.close(),this.Zk=null);this.Zo&&(this.Zo.mb(y.da.Jc,this.dda),this.Zo.mb(y.da.je,this.eda),this.Zo.mb(y.da.ya,this.Xh),this.Zo.close(),this.Zo=null);this.cp&&(this.cp.mb(y.da.Jc,this.mea),this.cp.mb(y.da.je,this.nea),this.cp.mb(y.da.ya,this.Xh),this.cp.close(),this.cp=null);this.qp&&(this.qp.mb(y.da.Jc,this.Tfa),this.qp.mb(y.da.je,this.Ufa),this.qp.mb(y.da.ya,this.Xh),this.qp.close(),this.qp=null);this.ep&&(this.ep.mb(y.da.Jc,this.Eea),this.ep.mb(y.da.je,this.Fea),this.ep.mb(y.da.ya,
this.Xh),this.ep.close(),this.ep=null);this.$o&&(this.$o.mb(y.da.Jc,this.b7),this.$o.mb(y.da.je,this.c7),this.$o.mb(y.da.ya,this.Xh),this.$o.close(),this.$o=null);this.ll&&(this.ll.cancel(),this.ll=null);this.Be=this.Xa=this.Ib=null};b.pP=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.Jv=function(c){var e=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),g=D.aa.create("<Catalog/>").text(this.ub.Ae),l=D.aa.create("<AxisFormat/>").text("TupleFormat"),m=D.aa.create("<Content/>").text("Data"),n=D.aa.create("<Format/>").text("Multidimensional");e=a.vr([e,g,l,m,n]);c=D.aa.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement><![CDATA['+c+"]]\x3e</Statement></Command>"+
D.aa.Cc(e)+"</Execute>");return a.Uo(c)};a.Tta=function(){return a.Uo(a.ur(D.aa.create("<RequestType/>").text("DISCOVER_DATASOURCES"),D.aa.create("<Restrictions/>"),D.aa.create("<Properties/>")))};a.rua=function(){var c=D.aa.create("<Content/>").text("Data"),e=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo);c=a.vr([c,e]);return a.Uo(a.ur(D.aa.create("<RequestType/>").text("DISCOVER_PROPERTIES"),D.aa.create("<Restrictions/>").append(D.aa.create("<RestrictionList/>").append(D.aa.create("<PropertyName/>").text("DBMSVersion"))),
c))};a.Nta=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e]);e=D.aa.create("<RequestType/>").text("DBSCHEMA_CATALOGS");var g=D.aa.create("<Restrictions/>");return a.Uo(a.ur(e,g,c))};a.Sta=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);
e=a.Nx([e]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_CUBES");return a.Uo(a.ur(g,e,c))};a.Xta=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_DIMENSIONS");return a.Uo(a.ur(g,e,c))};a.lua=function(){var c=
D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_MEASUREGROUP_DIMENSIONS");return a.Uo(a.ur(g,e,c))};a.Kv=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),
g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_HIERARCHIES");return a.Uo(a.ur(g,e,c))};a.jua=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");
c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_LEVELS");return a.Uo(a.ur(g,e,c))};a.oua=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);
e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_PROPERTIES");return a.Uo(a.ur(g,e,c))};a.fua=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_KPIS");return a.Uo(a.ur(g,
e,c))};a.zn=function(){var c=D.aa.create("<DataSourceInfo/>").text(this.ub.dataSourceInfo),e=D.aa.create("<Catalog/>").text(this.ub.Ae),g=D.aa.create("<Cube/>").text(this.ub.wa),l=D.aa.create("<Format/>").text("Tabular");c=a.vr([c,e,g,l]);e=D.aa.create("<CATALOG_NAME/>").text(this.ub.Ae);g=D.aa.create("<CUBE_NAME/>").text(this.ub.wa);e=a.Nx([e,g]);g=D.aa.create("<RequestType/>").text("MDSCHEMA_MEASURES");return a.Uo(a.ur(g,e,c))};a.Uo=function(c){var e=D.aa.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>');
e.firstElementChild.appendChild(c);return e};a.vr=function(c){var e=D.aa.create("<PropertyList/>").attr("flexmonster","true"),g=D.aa.create("<Properties/>");if(""!=a.ub.roles){var l=D.aa.create("<Roles/>").text(a.ub.roles);c.push(l)}""!=a.ub.effectiveUserName&&(l=D.aa.create("<EffectiveUserName/>").text(a.ub.effectiveUserName),c.push(l));""!=a.ub.localeIdentifier&&(l=D.aa.create("<LocaleIdentifier/>").text(a.ub.localeIdentifier),c.push(l));""!=a.ub.Fm&&(l=D.aa.create("<CustomData/>").text(a.ub.Fm),
c.push(l));for(l=0;l<c.length;l++)e.append(c[l]);g.append(e);return g};a.Nx=function(c){for(var e=D.aa.create("<RestrictionList/>"),g=D.aa.create("<Restrictions/>"),l=0;l<c.length;l++)e.append(c[l]);g.append(e);return g};a.ur=function(c,e,g){return D.aa.create('<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">'+D.aa.Cc(c)+D.aa.Cc(e)+D.aa.Cc(g)+"</Discover>")};a.Ota=function(c,e,g){var l=D.aa.create('<ClearCache xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"/>'),m=D.aa.create("<Object/>");
null!=c&&m.append(D.aa.create("<DatabaseID/>").text(c));null!=e&&m.append(D.aa.create("<CubeID/>").text(e));null!=g&&m.append(D.aa.create("<MeasureGroupID/>").text(g));l.append(m);return a.Uo(D.aa.create('<Execute xmlns="urn:schemas-microsoft-com:xml-analysis"/>').append(D.aa.create("<Command/>").append(l)).append(D.aa.create("<Properties/>")))};b.Kf=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){this.CM=this.DU="";if(null!=a.instance)throw Error("Singleton");}a.U=function(){null==a.instance&&(a.instance=new a);return a.instance};a.dispose=function(){a.instance=null};a.prototype.Xo=function(c){return c.find("row")};a.prototype.eV=function(){this.ma=new D.Qi;this.ma.contentType=D.Iz.eP;this.ma.Dq=D.Fs.Pu};a.prototype.iC=function(c,e){this.Eb=e;this.CM!=c?this.ica(c,function(){return function(){e(this.DU)}}):this.Eb&&
this.Eb(this.DU);return this.DU};a.prototype.ica=function(c,e){var g=this;this.Eb=e;this.CM=c;this.eV();this.ma.data=D.aa.Cc(b.Kf.Tta());this.ma.N(y.da.Jc,function(){return g.DDa()});this.ma.N(y.da.ya,function(){return g.EDa()});this.ma.load(c)};a.prototype.DDa=function(){if(!f.ha(this.ma.response)){var c=D.aa.create(this.ma.response);c=this.Xo(c);for(var e=[],g=0;g<c.length;g++){var l=c[g].find("DataSourceName").text();this.DU=c[g].find("ProviderName").text();e.push(l)}this.Eb&&this.Eb(e)}};a.prototype.EDa=
function(){var c=f.model.Nb.valid(this.CM)?this.CM:f.model.Nb.validate(this.CM);f.Va("Error opening URL <u>"+c+"</u><br/>Please check your Internet connection.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#url-error' target='_blank'>Read more info about this error</a></u>",f.model.A.j.ya,f.rb.ya);this.Eb&&this.Eb([])};a.prototype.iya=function(c,e,g){var l=this;this.Eb=g;b.Kf.ub=new d.OLAPConnectionInfo;b.Kf.ub.dataSourceInfo=e;this.eV();this.ma.data=D.aa.Cc(b.Kf.Nta());this.ma.N(y.da.Jc,
function(){return l.aDa()});this.ma.N(y.da.ya,function(){return l.bDa()});this.ma.load(c)};a.prototype.aDa=function(){var c=D.aa.create(this.ma.response);c=this.Xo(c);for(var e=[],g=0;g<c.length;g++){var l=c[g].find("CATALOG_NAME").text();e.push(l)}this.Eb&&this.Eb(e)};a.prototype.bDa=function(){f.Va("Error discovering catalogs",f.model.A.j.ya,f.rb.ya);this.Eb&&this.Eb([])};a.prototype.zya=function(c,e,g,l){var m=this;this.Eb=l;b.Kf.ub=new d.OLAPConnectionInfo;b.Kf.ub.dataSourceInfo=e;b.Kf.ub.Ae=
g;this.eV();this.ma.data=D.aa.Cc(b.Kf.Sta());this.ma.N(y.da.Jc,function(){return m.yDa()});this.ma.N(y.da.ya,function(){return m.zDa()});this.ma.load(c)};a.prototype.yDa=function(){var c=D.aa.create(this.ma.response);c=this.Xo(c);for(var e=[],g=0;g<c.length;g++){var l=c[g].find("CUBE_NAME").text();e.push(l)}this.Eb&&this.Eb(e)};a.prototype.zDa=function(){f.Va("Error discovering cubes",f.model.A.j.ya,f.rb.ya);this.Eb&&this.Eb([])};a.prototype.UQ=function(c,e,g,l,m){var n=this;this.eV();this.ma.data=
D.aa.Cc(b.Kf.Ota(e,g,l));this.ma.N(y.da.Jc,function(){return n.hDa(m)});this.ma.N(y.da.ya,function(){return n.iDa(m)});this.ma.load(c)};a.prototype.hDa=function(c){null!=c&&c({complete:!0,response:this.ma.response})};a.prototype.iDa=function(c){null!=c&&c({complete:!1})};b.v8=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){e=void 0===e?null:e;this.lY=this.LJ=this.KE="";null==e?this.KE=c:(this.LJ=c,this.lY=e)}a.tb=function(c){var e=new a("");c.hasOwnProperty("hash")&&(e.KE=c.hash?c.hash:"");c.hasOwnProperty("username")&&(e.LJ=c.username?c.username:"");c.hasOwnProperty("password")&&(e.lY=c.password?c.password:"");return e};q.Object.defineProperties(a.prototype,{hash:{configurable:!0,enumerable:!0,set:function(){},get:function(){return 0<
this.KE.length?this.KE:x.Via.encode(this.LJ+":"+this.lY)}},Om:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.KE&&0<this.KE.length||this.LJ&&0<this.LJ.length}}});b.w8=a})(d.eh||(d.eh={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){}a.prototype.ol=function(c){var e=this;if(f.model.Qa.U().G0(f.model.Qa.aJ)){var g=new f.model.Xc(f.model.Qa.aJ,function(l){if(!f.v(l)&&!f.v(l.requestHeaders)){var m=e.connectionInfo.requestHeaders||{},n;for(n in l.requestHeaders)l.requestHeaders.hasOwnProperty(n)&&(m[n]=l.requestHeaders[n]);e.connectionInfo.requestHeaders=m;e.Ve.requestHeaders=m}c(!0)});f.model.Qa.U().Da(g)}else c(!1)};b.HD=a})(d.zo||(d.zo={}))})(h.yb||
(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=b.HD.call(this)||this;e.wa=k.Na.U();e.connectionInfo=c;e.ma=new b.Nia(c);return e}u(a,b.HD);a.prototype.load=function(c,e,g,l){var m=this;this.connectionInfo=c;this.Ib=e;this.Be=l;this.Xa=g;this.Ve=new b.UO(this.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,this.connectionInfo.requestHeaders,this.connectionInfo.withCredentials);this.Wca=function(){return m.dN()};this.cAa()};a.prototype.cAa=function(){var c=
this;f.za(!0,f.model.A.j.iE);null!=this.Ve&&this.Ve.call("Handshaking",{componentVersion:f.Ug.qs,acceleratorMinVersion:a.ria},function(){return c.Wca()},function(e){return c.Mb(e)},function(e){return c.ol(e)})};a.prototype.dN=function(){var c=this;null!=this.Be&&(this.Be(),this.Be=null);this.MF=function(){return c.c2()};this.F1()};a.prototype.F1=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.DI),this.Ve.call("DiscoverDimensions",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,
credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e,g){return c.cU(e,g)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.cU=function(c,e){if(null!=this.MF){null!=e&&0<e.sessionId&&(d.OLAPConnectionInfo.sessionId=e.sessionId);
for(e=0;e<c.length;e++){var g=c[e];var l=g.uniqueName;var m=this.connectionInfo.mapping.Fa(l,"caption",g.caption),n=g.type;l=new d.I.Lna(l,m);l.type=n;l.CG=g.granularityNames;l.description=g.description;this.wa.I.dt(l)}this.MF()}};a.prototype.c2=function(){var c=this;this.KL=function(){return c.kU()};this.LT()};a.prototype.LT=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.LW),this.Ve.call("DiscoverHierarchies",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&
this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.s2(e)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.s2=function(c){if(null!=this.KL){for(var e=0;e<c.length;e++){var g=c[e],l=g.dimensionUniqueName,m=g.uniqueName,
n=this.connectionInfo.mapping.Fa(m,"caption",g.caption),p=g.type,t=g.allMemberName,r=g.defaultMemberName,v=g.displayFolder||"",z=g.isParentChild||!1,B=g.isRagged||!1;l=this.wa.I.Vo(l);null!=l&&(m=this.connectionInfo.Ba==k.i.oa.Nc?new d.I.LO(m,n):new d.gp.I.E7(m,n),m.origin=1,m.type=k.i.Gc.NB(p),m.tn=t,m.xt=r,m.Qc=v,m.$t=z,m.sT=B,m.description=g.description,l.Uh(m))}this.KL()}};a.prototype.kU=function(){var c=this;this.dM=function(){return c.D2()};this.fM()};a.prototype.fM=function(){var c=this;null!=
this.Ve&&(f.za(!0,f.model.A.j.MW),this.Ve.call("DiscoverLevels",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.C2(e)},
function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.C2=function(c){if(null!=this.dM){for(var e=0;e<c.length;e++){var g=c[e],l=g.hierarchyUniqueName,m=g.caption,n=g.type,p=g.dbType,t=g.uniqueName,r=g.levelNumber,v=g.properties,z=this.wa.I.Vo(g.dimensionUniqueName);if(null!=z&&(l=z.Mg(l),null!=l&&(m=new d.I.Nna(t,m,r),m.type=f.v(n)?k.i.eb.Sc:k.i.eb.NB(n,!f.v(p)&&0==n,p),m.description=g.description,l.ph(m),z.Uh(l),f.model.B.C.YM&&null!=v&&0<v.length)))for(n=0;n<v.length;n++)g=f.v(v[n].item)?
v[n]:v[n].item,g=new k.I.PV(g[0],g[1]),m.PY(g)}this.dM()}};a.prototype.D2=function(){var c=this;this.hM=function(){return c.qU()};this.OT()};a.prototype.OT=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.FO),this.Ve.call("DiscoverMeasures",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,
localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.I2(e)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.I2=function(c){if(null!=this.hM){for(var e,g=0;g<c.length;g++){var l=c[g],m=l.uniqueName;e=this.connectionInfo.mapping.Fa(m,"caption",l.caption);var n="String"==typeof l.type?k.i.Ja.xxa(l.type):k.i.Ja.fb,p=l.groupCaption||l.groupName||"",t=l.displayFolder||"";
e=new d.I.cA(m,e);e.type=n;e.yg=p;e.Qc=t;e.Tc=this.connectionInfo.mapping.Fa(m,"aggregations");e.description=l.description;this.wa.I.Hj(e)}this.hM()}};a.prototype.qU=function(){var c=this;this.connectionInfo.Ba==k.i.oa.Nc?(this.XL=function(){return c.z2()},this.MT()):this.Aq()};a.prototype.MT=function(){var c=this;null!=this.Ve&&(f.za(!0,f.model.A.j.w7),this.Ve.call("DiscoverKpis",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?
this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(e){return c.w2(e)},function(e){return c.Mb(e)},function(e){return c.ol(e)}))};a.prototype.w2=function(c){if(null!=this.XL){for(var e=0;e<c.length;e++){var g=c[e],l=g.uniqueName,m=this.connectionInfo.mapping.Fa(l,"caption",g.caption),
n=g.value,p=g.status,t=g.goal,r=g.trend;l=new d.I.H7(l,m);l.value=n;l.status=p;l.ty=t;l.oz=r;l.description=g.description;this.wa.I.LY(l,this.connectionInfo.mapping)}this.XL()}};a.prototype.z2=function(){this.Aq()};a.prototype.yk=function(c,e){var g=this;f.za(!0,f.model.A.j.gn,c.caption);this.Ib=e;this.Uj(c,null,function(l){return g.rj(l)})};a.prototype.Uj=function(c,e,g){this.ma.hierarchy=c;this.ma.expandAll=this.wa.sa.expandAll;this.ma.drillAll=this.wa.sa.drillAll;this.ma.children(c,e,g,this.Xa)};
a.prototype.rj=function(c){var e=this;if(null!=this.Ib){var g=c.vw;if(0<c.filter.Zl.length)c.vi<c.Un?this.eM(c,c.filter.Zl,c.filter.zM,function(m){return e.rj(m)}):(c.Iv(),this.rj(c));else if(0<g.length){var l=g.shift();0==g.length&&c.X$();c.vw=g;g=c.Db(l[1]);c.$x(g);this.Uj(c,g,function(m){return e.rj(m)})}else c.ce=!0,this.Ib(c)}};a.prototype.eM=function(c,e,g,l){this.ma.hierarchy=c;this.ma.expandAll=this.wa.sa.expandAll;this.ma.drillAll=this.wa.sa.drillAll;this.ma.fZ(c,e,g,l)};a.prototype.Iy=function(){};
a.prototype.vp=function(c,e,g){this.ma.hierarchy=c;this.ma.expandAll=this.wa.sa.expandAll;this.ma.drillAll=this.wa.sa.drillAll;this.ma.search(e,g)};a.prototype.kB=function(){return!0};a.prototype.cancel=function(){this.XL=this.hM=this.dM=this.KL=this.MF=this.Wca=null;null!=this.Ve&&this.Ve.cancel();this.Ve=null;null!=this.ll&&this.ll.cancel();this.ll=null;null!=this.ma&&this.ma.cancel();this.Be=this.Xa=this.Ib=this.ma=null};a.prototype.Aq=function(){f.za(!1);null!=this.Ib&&this.Ib()};a.prototype.Mb=
function(c){var e=this;f.za(!1);var g=null;f.v(c)?(g="Cannot connect to "+(f.model.Nb.valid(this.connectionInfo.proxyUrl)?this.connectionInfo.proxyUrl:f.model.Nb.validate(this.connectionInfo.proxyUrl)),f.Va(g,f.model.A.j.ya)):(g=f.ha(c.message)?f.model.A.j.GO:c.message,"Unknown error."==g?f.Va(f.model.A.j.bna,f.model.A.j.ya):"ERROR_SESSION_EXPIRED"==g?f.model.B.C.f4?f.Va(f.model.A.j.KW,f.model.A.j.fm,f.rb.fm,[f.model.A.j.MD,f.model.A.j.Jk],[function(){return e.Qy()},null]):this.Qy():-1<g.indexOf("2.416")||
-1<g.indexOf("2.400")?f.Va("Your current version of Flexmonster Pivot Table & Charts is not compatible with Flexmonster Accelerator. Please update both products to the latest available version.",f.model.A.j.ya):f.Va(g,f.model.A.j.ya));null!=this.Xa&&this.Xa(g)};a.prototype.Qy=function(){f.model.Ta.U().u3()};a.ria="2.7.11";b.h5=a})(d.zo||(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=b.HD.call(this)||this;e.WG=0;e.Ev=0;e.ld="";e.state=k.qo.gE;e.Gk=function(){return e.Vr()};e.ej=function(){return e.mp()};e.jM=[];e.Ky=[];e.iM=0;e.connectionInfo=c;e.Ve=new b.UO(e.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,e.connectionInfo.requestHeaders,e.connectionInfo.withCredentials);return e}u(a,b.HD);a.prototype.reset=function(){this.ld="";this.Ev=this.iM=this.WG=0;this.Ky=[];this.Xa=this.eu=
this.HJ=this.iJ=this.Xb=this.zZ=this.Eb=null;this.state=""};a.prototype.search=function(c,e){var g=this;this.reset();this.state=k.qo.cX;this.Eb=e;this.ld=c.toLowerCase();this.load(function(){return g.PC()})};a.prototype.PC=function(){for(var c=[],e=0;e<this.Ky.length;e++){var g=this.Ky[e];g.yf=!0;c.push(g.ordinal)}f.za(!1);this.Eb(c)};a.prototype.children=function(c,e,g,l){var m=this;this.reset();this.state=k.qo.gE;this.Eb=g;this.Xa=l;this.Xb=e;this.hierarchy=c;null==this.Xb||this.Xb.yf?this.load(function(){return m.rj()}):
g(this.hierarchy)};a.prototype.rj=function(){null!=this.Xb&&(this.Xb.yf=!1);this.Eb(this.hierarchy)};a.prototype.fZ=function(c,e,g,l){var m=this;this.reset();this.state=k.qo.d5;this.Eb=l;this.iJ=e;this.eu=g;this.hierarchy=c;this.load(function(){return m.Y1()})};a.prototype.Y1=function(){for(var c=[],e=0;e<this.Ky.length;e++){var g=this.Ky[e];g.yf=!0;c.push(g.uniqueName)}this.eu?this.h4(c,this.Eb):(this.hierarchy.Iv(),this.Eb(this.hierarchy))};a.prototype.h4=function(c,e){var g=this;this.reset();this.state=
k.qo.d8;this.Eb=e;this.HJ=c;this.load(function(){return g.X2()})};a.prototype.X2=function(){for(var c=this.Ky,e=0;e<c.length;e++)this.hierarchy.va(c[e]).yf=!0;this.hierarchy.Iv();this.Eb(this.hierarchy)};a.prototype.load=function(c){this.zZ=c;f.za(!0,f.model.A.j.gn);this.yk();this.timer=new x.Es(500,1E4);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.wB=function(){for(var c=this.hierarchy.z1,e=[],g=0;g<c.length;g++)e.push(this.hierarchy.uniqueName+".["+
c.ea(g).uniqueName+"]");return 0<e.length?", "+e.join(","):""};a.prototype.yk=function(){var c=this;if(null!=this.Ve){var e=this.wB(this.hierarchy);this.Ve.call("DiscoverMembers",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,subquery:this.connectionInfo.subquery,hierarchyUniqueName:this.hierarchy.uniqueName,properties:e,memberUniqueName:this.Xb?this.Xb.uniqueName:"",allMemberName:this.hierarchy.tn,hasAllMember:this.hierarchy.Fh,loadAll:this.drillAll,searchPhrase:this.ld,chunkIndex:this.Ev,
ascendants:null==this.iJ?"":this.iJ.join(",,"),siblings:null==this.HJ?"":this.HJ.join(",,"),activeLevel:null==this.hierarchy.ig?"":this.hierarchy.ig,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles},function(g){return c.aj(g)},
function(g){return c.Mb(g)},function(g){return c.ol(g)});this.Ev++}};a.prototype.Vr=function(){if(null!=this.timer){var c=this.timer.Qx/2;2<c&&f.za(!0,f.model.A.j.gn,f.O.bind(f.model.A.j.zs,x.Tb.format(c,new f.model.Zb.W.pf,!1,!1,1)))}};a.prototype.mp=function(){this.timer.sl&&f.Va("Can't connect to data source!",f.model.A.j.ya)};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.aj=function(c){var e=
this;null!=this.Ve&&(this.ag(),1==this.Ev&&(this.WG=c.count),1>this.hierarchy.Un&&(this.hierarchy.Un=c.all),this.UC(c.members,function(){return e.aH()}))};a.prototype.UC=function(c,e){if(f.v(c))e();else if(this.jM=c,0==this.jM.length)this.aU();else{for(c=this.hierarchy.vi;!this.tGa(c);)c++;e()}};a.prototype.tGa=function(c){var e=this.jM.shift();if(null!=e){var g=e.parentUniqueName,l=e.caption,m=e.uniqueName,n=e.ordinal,p=e.properties;var t=this.hierarchy.Db(m);if(null==t&&(e=new k.I.Rd({uniqueName:m,
caption:l,ei:g,ordinal:n}),""===this.ld&&null==this.iJ&&null==this.HJ&&(e.ec=c),t=this.hierarchy.fc(e),null!=p&&0<p.length))for(g=0;g<p.length;g++)e=f.v(p[g].item)?p[g]:p[g].item,t.setProperty(e[0],e[1]);""!=this.ld||null!=this.iJ||null!=this.HJ?this.Ky.push(t):t.ec=c;null!=t&&!t.Wb&&1E3<this.hierarchy.Un&&!this.drillAll&&(t.yf=!0);this.iM++}return 0>=this.jM.length};a.prototype.aH=function(){var c=0==this.WG?100:Math.round(this.iM/this.WG*100);100<c&&(c=100);f.za(!0,f.model.A.j.gn,this.hierarchy.caption+
" - "+c+"% ("+this.iM+" of "+this.WG+")");this.iM>=this.WG?this.aU():this.yk()};a.prototype.aU=function(){f.za(!1);this.ag();this.zZ();this.jM=[];this.Ky=[]};a.prototype.Mb=function(c){var e=this;this.ag();f.za(!1);c=f.ha(c.message)?f.model.A.j.GO:c.message;"ERROR_SESSION_EXPIRED"==c?f.model.B.C.f4?f.Va(f.model.A.j.KW,f.model.A.j.fm,f.rb.fm,[f.model.A.j.MD,f.model.A.j.Jk],[function(){return e.Qy()},null]):this.Qy():(f.Va(c,f.model.A.j.ya),null!=this.Xa&&(this.Xa(c),this.Xa=null))};a.prototype.Qy=
function(){f.model.Ta.U().u3()};a.prototype.LG=function(){return!1};a.prototype.cancel=function(){null!=this.Ve&&this.Ve.cancel();this.Ve=null;null!=this.timer&&this.ag();this.zZ=this.Xa=this.Eb=this.timer=null};b.Nia=a})(d.zo||(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=b.HD.apply(this,arguments)||this;c.af=k.Na.U();c.Gb=[];c.Uc=[];c.Bva=!1;c.Gk=function(){return c.Vr()};c.ej=function(){return c.mp()};return c}u(a,b.HD);a.prototype.load=function(c,e,g){f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,"0.5"));this.connectionInfo=c;this.Fj=e;this.Eb=g;this.mj=this.Ev=0;this.Of=this.af.sa.pu;this.Ve=new b.UO(this.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,this.connectionInfo.requestHeaders,
this.connectionInfo.withCredentials);this.requestId=f.O.aL();this.kw();this.timer=new x.Es(500,1E4);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.kw=function(){var c=this;if(null!=this.Ve){for(var e=[],g=this.af.sa.pu,l=0;l<g.length;l++)e.push(g[l].uniqueName);this.Ve.call("Execute",{catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,subquery:this.connectionInfo.subquery,queryString:this.Fj.body,columns:this.af.sa.Cb.Ic(!0),rows:this.af.sa.vb.Ic(!0),
measures:e,chunkIndex:this.Ev,credentials:this.connectionInfo.credentials&&this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles,expandAll:this.Fj.type==k.i.Kd.to&&this.af.sa.expandAll,formatted:f.model.B.C.Jq,requestId:this.requestId},function(m){return c.ip(m)},
function(m){return c.Mb(m)},function(m){return c.ol(m)});this.Ev++}};a.prototype.Vr=function(){null!=this.timer&&f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,x.Tb.format(this.timer.Qx/2,new f.model.Zb.W.pf,!1,!1,1)))};a.prototype.mp=function(){this.timer.sl&&f.Va("Can't connect to data source!",f.model.A.j.ya)};a.prototype.ag=function(){this.timer&&this.timer.sl&&(this.timer.stop(),this.timer.mb(x.Ze.Nk,this.Gk),this.timer.mb(x.Ze.Ok,this.ej))};a.prototype.drillThrough=function(c,e,g,l,m,n){var p=
this;f.za(!0,f.model.A.j.Hf,f.O.bind(f.model.A.j.zs,"0.5"));this.connectionInfo=c;this.Fj=e;this.Eb=n;this.Of=this.af.sa.pu;this.Ve=new b.UO(this.connectionInfo.proxyUrl,f.model.Ea.na.J(f.model.Ea.na.EU),!0,this.connectionInfo.requestHeaders,this.connectionInfo.withCredentials);c=this.Kya(this.af.sa,g,l);m={catalog:this.connectionInfo.Ae,cubeUniqueName:this.connectionInfo.wa,subquery:this.connectionInfo.subquery,measureUniqueName:m.uniqueName,members:c,credentials:this.connectionInfo.credentials&&
this.connectionInfo.credentials.Om?this.connectionInfo.credentials.hash:null,sessionId:d.OLAPConnectionInfo.sessionId,customData:this.connectionInfo.Fm,localeIdentifier:this.connectionInfo.localeIdentifier,effectiveUserName:this.connectionInfo.effectiveUserName,roles:this.connectionInfo.roles};this.connectionInfo.Ba==k.i.oa.Nc&&(m.drillThroughMaxRows=f.model.B.C.KK);this.Ve.call("DrillThrough",m,function(t){return p.LDa(t)},function(t){return p.Mb(t)},function(t){return p.ol(t)});this.timer=new x.Es(500,
1E4);this.timer.N(x.Ze.Nk,this.Gk);this.timer.N(x.Ze.Ok,this.ej);this.timer.start()};a.prototype.Kya=function(c,e,g){for(var l=[],m,n,p=0;p<c.Cb.length;p++){var t=c.Cb.ea(p);m=[];n=!1;if(!t.Qe){if(null!=g[p]){var r=t.va(g[p]);f.v(r)||f.ha(r.uniqueName)||(m.push(r.uniqueName),n=!0)}if(t.filter.$h&&!n)for(n=0;n<t.cb.length;n++)r=t.va(t.cb[n]),f.v(r)||f.ha(r.uniqueName)||-1==m.indexOf(r.uniqueName)&&m.push(r.uniqueName);0<m.length&&(this.connectionInfo.Ba==k.i.oa.Zd?l.push(m.join(",")):l.push("{"+m.join(",")+
"}"))}}for(p=0;p<c.vb.length;p++)if(t=c.vb.ea(p),n=!1,m=[],!t.Qe){null!=e[p]&&(r=t.va(e[p]),f.v(r)||f.ha(r.uniqueName)||(m.push(r.uniqueName),n=!0));if(t.filter.$h&&!n)for(n=0;n<t.cb.length;n++)r=t.va(t.cb[n]),f.v(r)||f.ha(r.uniqueName)||-1==m.indexOf(r.uniqueName)&&m.push(r.uniqueName);0<m.length&&(this.connectionInfo.Ba==k.i.oa.Zd?l.push(m.join(",")):l.push("{"+m.join(",")+"}"))}for(p=0;p<c.pages.length;p++){t=c.pages.ea(p);m=[];if(t.filter.$h)for(n=0;n<t.cb.length;n++)r=t.va(t.cb[n]),f.v(r)||f.ha(r.uniqueName)||
-1==m.indexOf(r.uniqueName)&&m.push(r.uniqueName);0<m.length&&(this.connectionInfo.Ba==k.i.oa.Zd?l.push(m.join(",")):l.push("{"+m.join(",")+"}"))}return l};a.prototype.LDa=function(c){if(null!=this.Ve){c=c.cellData;if(null!=c&&0<c.length&&null!=c[0].item)for(var e=0;e<c.length;e++)c[e]=c[e].item;this.ag();f.za(!1);this.Eb(c)}};a.prototype.cancel=function(){this.connectionInfo=this.af=null;this.Gb=[];this.Uc=[];this.Bva=!1;this.Eb=this.Fj=null;null!=this.Ve&&this.Ve.cancel();this.Ve=null;this.ag();
this.timer=null};a.prototype.ip=function(c){null!=this.Ve&&(c.isComplete||this.kw(),this.ag(),this.connectionInfo.Ba==k.i.oa.Zd?(this.xU(c.columnsList?JSON.parse(c.columnsList):[]),this.zU(c.rowsList?JSON.parse(c.rowsList):[]),this.sfa(c.cellData?JSON.parse(c.cellData):[],c.cellDataFmt?JSON.parse(c.cellDataFmt):[])):(this.xU(c.columnsList),this.zU(c.rowsList),this.sfa(c.cellData,c.cellDataFmt)),this.mj+=this.Gb.length*this.Uc.length,c.isComplete?(f.za(!1),this.Eb()):(c=null!=c.percent?Math.round(1E4*
c.percent)/100:NaN,f.za(!0,f.model.A.j.Hf,this.mj+" items "+(isNaN(c)||0>=c?"":"("+(100<c?100:c)+"%)"))))};a.prototype.xU=function(c){this.Uc=c;if(f.v(c)||0==this.Uc.length)this.Uc=[[[0,0]]]};a.prototype.zU=function(c){this.Gb=[[]];f.v(c)?this.Gb=[[]]:(this.Gb=c,0==this.Gb.length&&(this.Gb=[[]]))};a.prototype.TAa=function(c,e){if(c.length!=e.length)return!1;for(var g=0;g<c.length;g++)if(1<c[g].length&&c[g][1]!=e[g][1])return!1;return!0};a.prototype.sfa=function(c,e){e=void 0===e?null:e;f.v(c)&&(c=
[]);var g=this.Gb.length,l=this.Uc.length;var m=this.af.sa.pu;for(var n=[],p=0;p<m.length;p++)n[p]=m[p].type;var t=k.kX.U();this.af.sa.rows.ea(1);for(p=0;p<g;p++)if(void 0!=c[p]&&null!=this.Gb[p]){m=[];for(var r=[],v,z,B=!1,C=0;C<l;C++)null!=this.Uc[C]&&(v=r,r=this.Uc[C].slice(0),z=r.pop()[0],this.TAa(r,v)||(B&&this.af.qa.XS(this.Gb[p],v,m,this.Fj.We,this.Fj.ft,this.Fj.type),B=!1,m=[]),void 0!=c[p][C]&&(B=!0),f.model.B.C.Jq&&null!=e&&this.Of[z].$==k.i.ca.NONE?m[z]=k.HI.U().hz(e[p][C],c[p][C]):n[z]==
k.i.Ja.fb?m[z]=c[p][C]:n[z]==k.i.Ja.Oa&&(v=c[p][C]?t.Nh(c[p][C].toString()):0,m[z]=v));B&&this.af.qa.XS(this.Gb[p],r,m,this.Fj.We,this.Fj.ft,this.Fj.type)}};a.prototype.Mb=function(c){var e=this;this.ag();f.za(!1);c=f.ha(c.message)?f.model.A.j.GO:c.message;"ERROR_SESSION_EXPIRED"==c?f.model.B.C.f4?f.Va(f.model.A.j.KW,f.model.A.j.fm,f.rb.fm,[f.model.A.j.MD,f.model.A.j.Jk],[function(){return e.Qy()},null]):this.Qy():f.Va(c,f.model.A.j.ya)};a.prototype.Qy=function(){f.model.Ta.U().u3()};b.g5=a})(d.zo||
(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g,l,m){this.qu=null;this.withCredentials=!1;this.requestHeaders=null;this.url=c;this.url.lastIndexOf("/")==this.url.length-1&&(this.url=this.url.substr(0,this.url.length-1));(void 0===g||g)&&0>this.url.indexOf("/FlexmonsterProxy")&&this.url.lastIndexOf(":")>this.url.lastIndexOf("/")&&(this.url+="/FlexmonsterProxy");this.requestHeaders=void 0===l?null:l;this.qu=void 0===e?null:e;this.withCredentials=void 0===m?!1:m}a.prototype.call=
function(c,e,g,l,m){var n=this;e=void 0===e?null:e;this.action=c;this.Ib=void 0===g?null:g;this.Xa=void 0===l?null:l;this.nN=void 0===m?null:m;this.Sd=e;x.mn.load("lib/sha1.min.js",function(){n.xhr=new XMLHttpRequest;n.xhr.open("POST",n.url+"/"+c,!0);n.xhr.withCredentials=n.withCredentials;n.xhr.onreadystatechange=function(p){return n.lu(p)};n.xhr.setRequestHeader("Content-type","application/json; charset=UTF-8");n.xhr.setRequestHeader("Accept","application/json");n.dK(n.requestHeaders);n.xhr.send(n.WIa(e))})};
a.prototype.dK=function(c){if(!f.v(c))for(var e in c)c.hasOwnProperty(e)&&this.xhr.setRequestHeader(e,c[e])};a.prototype.WIa=function(c){if(null!=this.qu){delete c.signature;var e=this.getHash(c);e=e.replace(/[^a-zA-Z0-9]/gm,"");var g=new jsSHA("SHA-1","TEXT");g.setHMACKey(this.qu,"TEXT");g.update(e);c.signature=g.getHMAC("B64")}return JSON.stringify(c)};a.prototype.getHash=function(c){var e=[];for(g in c)e.push(g);e.sort();var g="";for(var l=0;l<e.length;l++){var m=c[e[l]];f.v(m)||"string"==typeof m&&
f.ha(m)||Array.isArray(m)&&0==m.length||("sessionId"!=e[l]||0!=m)&&"customData"!=e[l]&&"localeIdentifier"!=e[l]&&"effectiveUserName"!=e[l]&&(g+=e[l]+":"+m)}return g.toLowerCase()};a.prototype.lu=function(){var c=this;if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.vH();if(401===this.xhr.status&&f.pg(this.nN))return this.nN(function(e){e?c.call(c.action,c.Sd,c.Ib,c.Xa):c.Xa({message:c.xhr.statusText})});this.Xa({message:this.xhr.statusText})}};a.prototype.vH=function(){var c=
JSON.parse(this.xhr.response);c&&null==c.error?null!=this.Ib&&this.Ib(c.data,c):this.Xa&&c&&this.Xa(c.error)};a.prototype.cancel=function(){null!=this.xhr&&(this.xhr.onerror=null,this.xhr.onreadystatechange=null,this.xhr.abort());this.qu=this.url=this.Ib=this.xhr=this.requestHeaders=null};b.UO=a})(d.zo||(d.zo={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){return d.eh.oP.call(this,c)||this}u(a,d.eh.oP);a.prototype.wB=function(){for(var c=this.hierarchy.z1,e=[],g=0;g<c.length;g++)e.push(this.hierarchy.uniqueName+".["+c.ea(g).uniqueName+"]");return 0<e.length?", "+e.join(","):""};a.prototype.EZ=function(){var c=this.wB(this.hierarchy),e=this.yn();return null==this.Xb?this.LG()?f.O.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{1} on columns FROM {2}",
this.hierarchy.uniqueName,c,e):this.hierarchy.Fh?f.O.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.uniqueName,e,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME{2} on 0 FROM {1}",this.hierarchy.uniqueName,e,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset({0}.children, {3}, {4}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME {2} on columns FROM {1}",
this.Xb.uniqueName,e,c,this.Bk.toString(),this.gq.toString(),this.hierarchy.uniqueName)};a.prototype.yU=function(c,e){var g=c.find("PARENT_UNIQUE_NAME").text();var l=c.find("Caption").text(),m=c.find("UName").text(),n=parseInt(c.find("MEMBER_ORDINAL").text());var p=this.hierarchy.Db(m);if(null==p){p=this.hierarchy.fc(new k.I.Rd({uniqueName:m,caption:l,ei:g}));if(p.level&&0<p.level.gf.length)for(l=0;l<p.level.gf.length;l++){g=p.level.gf.ea(l);p.setProperty(g.uniqueName,c.find(g.FV).text());m=c.getChildren();
for(var t=0;t<m.length;t++){var r=m[t];r.nodeName.toLowerCase()==g.FV.toLowerCase()&&(r=r.text(),p.setProperty(g.uniqueName,r))}}p.ec=isNaN(n)?e:n}else this.state==k.qo.gE&&(p.ec=isNaN(n)?e:n);null==p||p.Wb||(p.yf=!0);p.parent&&!p.parent.Wb&&(p.parent.yf=!1);return p.ordinal};b.Foa=a})(d.sD||(d.sD={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=d.eh.pP.call(this,c)||this;e.ll=new b.Foa(c);return e}u(a,d.eh.pP);a.prototype.cU=function(){var c=D.aa.create(this.Zk.response);c=this.Xo(c);if(0<c.length){this.fs();for(var e=0;e<c.length;e++)this.ufa(c[e]);this.gCa();this.MF()}else c=f.model.A.j.hE,f.Va(c,"",f.rb.ya),f.za(!1),this.Xa(c)};a.prototype.gCa=function(){var c=this;this.BD=new D.Qi;this.BD=this.vh(this.BD);this.BD.data=D.aa.Cc(d.eh.Kf.rua());this.BD.N(y.da.Jc,
function(){return c.MFa()});this.BD.N(y.da.ya,function(e){return c.Mb(e)});this.BD.load(this.fa.proxyUrl)};a.prototype.MFa=function(){var c=D.aa.create(this.BD.response);c=this.Xo(c);this.fa.version=parseFloat(c.find("Value").text().substr(0,5))};a.prototype.yfa=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=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());
e=this.wa.I.Vo(e);null!=e&&(g=e.Mg(g),null!=g&&(l=new k.I.$m(m,l,n),l.type=k.i.eb.NB(c),g.ph(l),e.Uh(g)))};a.prototype.g3=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=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&&(e=this.wa.I.Vo(e),null!=e&&(g=e.Mg(g),null!=g&&(l=g.Gt(l),null!=l&&(m=new k.I.PV(c,m,n),l.PY(m)))))};b.Goa=a})(d.sD||(d.sD={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){this.slice=c;this.fa=e}a.prototype.dS=function(c){return c.$t?"members":"allmembers"};a.prototype.cS=function(c){return c.Fh?c.tn:f.O.bind("{0}.levels(0).{1}",c.uniqueName,this.dS(c))};a.prototype.MS=function(){return 0<this.slice.Cd(k.i.ia.Sa).zd.length};a.prototype.NS=function(){return 0<this.slice.Cd(k.i.ia.Ia).zd.length};a.prototype.zn=function(){for(var c=[],e=this.slice.pu,g=0;g<e.length;g++)c.push(e[g].uniqueName);
return"{"+c.join(", ")+"}"};a.prototype.uB=function(){var c=this.zn();if(0<this.slice.Cb.length){var e=this.qK(this.slice.Cb),g="";this.MS()&&(g=this.Mx(this.slice.Cd(k.i.ia.Sa).zd,this.slice.Cb));return"Crossjoin("+(0<g.length?"Union("+e+", "+g+")":e)+", "+c+")"}return c};a.prototype.xB=function(){if(0<this.slice.vb.length){var c=this.qK(this.slice.vb),e="";this.NS()&&(e=this.Mx(this.slice.Cd(k.i.ia.Ia).zd,this.slice.vb));return 0<e.length?"Union("+c+", "+e+")":c}return""};a.prototype.qK=function(c){for(var e=
[],g=0;g<c.length;g++){var l=c.ea(g);l=this.DZ(l,this.slice.expandAll||0==g,this.slice.drillAll);0<l.length&&e.push(l)}if(1<e.length){c=this.zn();l=e[0];for(g=1;g<e.length;g++)l=f.model.B.C.jda?f.O.bind("Crossjoin({0}, {1})",l,e[g]):f.O.bind("NonEmpty(Crossjoin({0}, {1}), {2})",l,e[g],c);return l}return e[0]};a.prototype.DZ=function(c,e,g){var l=this.cS(c);if(g)e="Hierarchize({"+c.uniqueName+"."+this.dS(c)+"})";else if(e)for(e=null!=c.nc?"Hierarchize({Descendants({"+c.uniqueName+".levels(0)."+this.dS(c)+
"}, "+c.nc.uniqueName+", SELF_AND_BEFORE)})":c.Fh?"Hierarchize({DrilldownLevel({"+l+"})})":"{{"+c.Kl()+","+l+"}}",g=1;g<c.ra.length;g++)l=c.ra.ea(g),l=c.JB(l),0!=l.length&&(l=c.Fr(l).join(","),e=10.5<this.fa.version?"DrilldownMember({{"+e+"}}, {"+l+"},,INCLUDE_CALC_MEMBERS)":"DrilldownMember({{"+e+"}}, {"+l+"})");else{if(c.Fh)return l;e="{{"+c.Kl()+","+l+"}}"}return e};a.prototype.mV=function(c){return c=c.replace(/[\]|\[]/g,"")};a.prototype.Mo=function(c,e,g){for(var l=[],m,n=0;n<e.length;n++){var p=
e.ea(n);if(n==c.length-1)m=p.va(c[n]),m.Wb?(this.DZ(p,!0,!1),l.push(this.DZ(p,!0,!1))):void 0!==g&&null!=p.Gt(g)?l.push("Descendants("+m.uniqueName+", "+g+", SELF_AND_BEFORE)"):m.Pg?l.push(m.uniqueName+".CHILDREN"):l.push(m.uniqueName);else if(n<c.length){m=p.va(c[n]);if(null==m)return"";p=p.Fr(m.children);m=m.ah?"{"+p.join(",")+"}":m.uniqueName;l.push(m)}else l.push(this.cS(p))}return 1<l.length?"Crossjoin({"+l.join("}, {")+"})":l[0]};a.prototype.Mx=function(c,e){for(var g,l=0;l<c.length;l++){var m=
c[l].slice(1);m.push(0);m=this.Mo(m,e);g=g&&!f.ha(m)?f.O.bind("Union({0}, {1})",m,g):m}return g};a.prototype.m_=function(c,e){return 0<this.slice.vb.length?this.Mo(c,this.slice.vb,e):""};a.prototype.l_=function(c,e){var g=this.zn();return 0<this.slice.Cb.length?"Crossjoin("+this.Mo(c,this.slice.Cb,e)+", "+g+")":g};a.prototype.x_=function(c){var e=this.zn();return 0<this.slice.Cb.length?(c=c.slice(0),c.push(0),"Crossjoin("+this.Mo(c,this.slice.Cb)+", "+e+")"):e};a.prototype.B_=function(c){return 0<
this.slice.vb.length?(c=c.slice(0),c.push(0),this.Mo(c,this.slice.vb)):""};a.prototype.Uta=function(c,e){0<=k.i.Ub.$w.indexOf(e.ta)&&(e=e.kR(c.getTimezoneOffset()));if(e.ta==k.i.Ub.EQUAL){var g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<CDate('{2}')))";var l=e.value.clone().Xm();var m=l.clone().GY(1).Xm()}e.ta==k.i.Ub.If&&(g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))",
l=e.value.clone().Xm(),m=l.clone());e.ta==k.i.Ub.JD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}')))");e.ta==k.i.Ub.KD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<=CDate('{1}')))");e.ta==k.i.Ub.FD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>CDate('{1}')))");e.ta==k.i.Ub.GD&&(l=e.value.clone().Xm(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}')))");
e.ta==k.i.Ub.Sg&&(l=e.value[0].clone().Xm(),m=e.value[1].clone().mz(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue>=CDate('{1}') AND {0}.CurrentMember.MemberValue<=CDate('{2}')))");e.ta==k.i.Ub.Jg&&(l=e.value[0].clone().Xm(),m=e.value[1].clone().mz(),g="Filter({0}.levels({3}), ({0}.CurrentMember.MemberValue<CDate('{1}') OR {0}.CurrentMember.MemberValue>CDate('{2}')))");e=this.slice.pu[0].yg;var n;this.fa.Jw&&(n=c.wi.CG[e]);f.ha(n)&&(n=c.uniqueName);g=f.O.bind(g,n,l.format("yyyy-MM-dd"),
m?m.format("yyyy-MM-dd"):"",c.Fh?1:0);return[g]};a.prototype.gua=function(c,e){var g,l=e.value,m=l.length;e.ta==k.i.wb.EQUAL&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption='{2}'))");e.ta==k.i.wb.If&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<>'{2}'))");e.ta==k.i.wb.LD&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})='{2}'))");e.ta==k.i.wb.$z&&(g="Filter({0}.levels({1}), (Left({0}.CurrentMember.member_caption,{3})<>'{2}'))");e.ta==k.i.wb.Mz&&
(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})='{2}'))");e.ta==k.i.wb.bA&&(g="Filter({0}.levels({1}), (Right({0}.CurrentMember.member_caption,{3})<>'{2}'))");e.ta==k.i.wb.an&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')>0))");e.ta==k.i.wb.aA&&(g="Filter({0}.levels({1}), (InStr(1, {0}.CurrentMember.member_caption,'{2}')=0))");e.ta==k.i.wb.GREATER&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>'{2}'))");e.ta==k.i.wb.Kk&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'))");
e.ta==k.i.wb.LESS&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<'{2}'))");e.ta==k.i.wb.Lk&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'))");if(e.ta==k.i.wb.Sg){g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption>='{2}'  AND {0}.CurrentMember.member_caption<='{4}'))";l=e.value[0];var n=e.value[1]}e.ta==k.i.wb.Jg&&(g="Filter({0}.levels({1}), ({0}.CurrentMember.member_caption<='{2}'  OR {0}.CurrentMember.member_caption>='{4}'))",l=e.value[0],n=e.value[1]);
g=f.O.bind(g,c.uniqueName,c.Fh?1:0,l,m,n);return[g]};a.prototype.Lo=function(c){for(var e=[],g="",l=0;l<c.length;l++){var m=c.ea(l),n=[];m.filter.$h&&(n=m.Fr(m.cb));m.filter.uy&&(n=this.Uta(m,m.filter.query));m.filter.$v&&(n=this.gua(m,m.filter.query));if(!m.Fh){var p=m.Kl();this.ed.Bb(p)||this.ed.Pa(p,this.cS(m))}0<n.length&&e.push("{"+n.join(",")+"}")}0<e.length&&(g="("+e.join(", ")+")");return g};a.prototype.qua=function(c,e,g){for(var l=[],m=c.indexOf(e.uniqueName),n=0;n<m;n++){var p=c.ea(n);
l.push("Hierarchize("+p.uniqueName+".levels("+(p.Fh?1:0)+")."+this.dS(e)+")")}c="Hierarchize({"+this.cS(e)+"})";0<l.length&&(c="CrossJoin("+l.join(",")+", "+c+")");return f.O.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,"["+e.caption+"___0___0]","["+e.caption+"_1_1_1]",e.filter.measure.uniqueName,e.filter.query.value,""+m,g,e.filter.query.ta==k.i.tc.Bj?"TopCount":"BottomCount",", INCLUDE_CALC_MEMBERS")};
a.prototype.Z$=function(c,e){for(var g=0;g<c.length;g++){var l=c.ea(g);l.filter.ai&&this.slice.Of.find(function(m){return m.uniqueName===l.filter.measure.uniqueName})&&(e=this.qua(c,l,e))}return e};a.prototype.yB=function(){if(0==this.ed.length)return"";for(var c="with",e=0;e<this.ed.length;e++)c+=f.O.bind(" member {0} as IIF(IsError(Aggregate({{1}})), null, Aggregate({{1}}))",this.YC(this.ed.qh(e)),this.YC(this.ed.ea(e)));return c};a.prototype.yn=function(c){c=void 0===c?!0:c;var e=f.ha(this.fa.subquery)?
"["+this.fa.wa+"]":"("+this.fa.subquery+")";var g=this.Lo(this.slice.Cb),l=this.Lo(this.slice.vb),m="",n="";if(0!==this.slice.pages.length)for(var p=0;p<this.slice.pages.length;p++){var t=this.slice.pages.ea(p);if(t.filter&&t.filter.$h){var r=t.filter.pj();1==r.length&&c?n=0===n.length?" WHERE ("+t.o0(r[0])+")":n.substring(0,n.length-1)+(", "+t.o0(r[0])+")"):1<r.length&&c&&(n=0===n.length?" WHERE ("+(t.uniqueName+".CurrentMember)"):n.substring(0,n.length-1)+(", "+(t.uniqueName+".CurrentMember)")))}}0<
this.slice.pages.length&&(m=this.Lo(this.slice.pages));0==g.length&&0==l.length&&0==m.length?c=e:(0<g.length&&(g+=" ON COLUMNS"),0<l.length&&(0<g.length?l=", "+l+" ON ROWS":(g=l+" ON COLUMNS",l="")),0<m.length&&(m="SELECT "+m+" ON COLUMNS FROM "+e),0<g.length||0<l.length?(c="SELECT "+g+l+" FROM ",c=0<m.length?c+("("+m+")"):c+e):c=m,c="("+c+")");c=this.Z$(this.slice.vb,c);c=this.Z$(this.slice.Cb,c);0<n.length&&(c+=n);return c};a.prototype.YC=function(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),
"''"));return c};a.prototype.expand=function(c,e){this.ed=new f.nb;c==k.i.ia.Ia?(c=this.uB(),e=this.B_(e)):(c=this.x_(e),e=this.xB());var g=this.yn();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";e=this.zD?0<e.length?", NON EMPTY _ROWS_TOKEN_START_"+e+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":0<e.length?", NON EMPTY "+e+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"";var l=this.yB();return f.O.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,e,g,this.CZ(),l)};a.prototype.tf=function(c,e,g,l){this.ed=new f.nb;c==k.i.ia.Ia?(c=this.uB(),e=this.m_(e,l)):(c=this.l_(e,l),e=this.xB());l=this.yn();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";e=this.zD?0<e.length?", NON EMPTY _ROWS_TOKEN_START_"+e+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":0<e.length?", NON EMPTY "+e+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.yB();return f.O.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,e,l,this.CZ(),g)};a.prototype.select=function(){this.ed=new f.nb;var c=this.uB(),e=this.xB(),g=this.yn();c="NON EMPTY "+c+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS";e=this.zD?0<e.length?", NON EMPTY _ROWS_TOKEN_START_"+e+"_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":0<e.length?", NON EMPTY "+e+" DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var l=this.yB();return f.O.bind("{4} Select {0} {1} FROM {2} CELL PROPERTIES {3}",c,e,g,this.CZ(),l)};a.prototype.CZ=function(){return 0==f.model.B.C.Jq||this.fa.Ba!=k.i.oa.Nc?"VALUE":"VALUE, FORMATTED_VALUE"};a.prototype.drillThrough=function(c,e,g){this.ed=new f.nb;for(var l="DRILLTHROUGH MAXROWS "+f.model.B.C.KK+" SELECT {0} ON 0 FROM {1} {2}",m,n=[],p=0;p<this.slice.Cb.length;p++)m=
this.slice.Cb.ea(p),m.Qe||null==e[p]||(m=m.va(e[p]),null!=m&&n.push(m.uniqueName));for(p=0;p<this.slice.vb.length;p++)m=this.slice.vb.ea(p),m.Qe||null==c[p]||(m=m.va(c[p]),null!=m&&n.push(m.uniqueName));c=0<n.length?"where ("+n.join(",")+")":"";e=this.yn(!1);return f.O.bind(l,g.uniqueName,e,c)};q.Object.defineProperties(a.prototype,{zD:{configurable:!0,enumerable:!0,get:function(){return this.fa&&this.fa.binary&&!f.model.B.C.jda?!0:!1}}});b.GW=a})(d.sD||(d.sD={}))})(h.yb||(h.yb={}))})(k.external||
(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){c=d.eh.oP.call(this,c)||this;c.hH=[];return c}u(a,d.eh.oP);a.prototype.HZ=function(){var c=f.O.bind("SET [SearchMembersSet] AS 'FILTER(EXCEPT({0}.members, {1}), (INSTR(1, lcase({0}.CurrentMember.Caption), {2}) > 0))'",this.hierarchy.uniqueName,this.hierarchy.xt,'"'+this.ld+'"');var e=f.O.bind("SET [SearchParentsSet] AS 'EXCEPT(GENERATE([SearchMembersSet], ASCENDANTS([SearchMembersSet].Current)), {0})'",this.hierarchy.xt);
return c+"\n"+e+"\nSET [SearchSet] AS 'HIERARCHIZE(DISTINCT({[SearchMembersSet], [SearchParentsSet]}))'"};a.prototype.EZ=function(){var c=this.hierarchy.z1,e=[],g=[];if(0<c.length)for(var l=0;l<c.length;l++){var m=c.ea(l).uniqueName;g.push("[Measures].["+m+"]");e.push(f.O.bind('member [Measures].[{0}] as {1}.CurrentMember.Properties("{0}")',m,this.hierarchy.uniqueName))}c=this.yn();0<g.length?(g=0<g.length?g.join(", "):"",e=0<e.length?"with "+e.join(" "):"",e=null==this.Xb?this.LG()?f.O.bind("{3} SELECT crossjoin(DISTINCT({{0}.allmembers}), {{2}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",
this.hierarchy.uniqueName,c,g,e):this.hierarchy.Fh?f.O.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.uniqueName,c,this.Bk.toString(),this.gq.toString(),g,e):f.O.bind("{5} SELECT crossjoin(Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.uniqueName,c,this.Bk.toString(),
this.gq.toString(),g,e):f.O.bind("{5} SELECT crossjoin(Subset({0}.children, {2}, {3}), {{4}}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.Xb.uniqueName,c,this.Bk.toString(),this.gq.toString(),g,e)):e=null==this.Xb?this.LG()?f.O.bind("SELECT DISTINCT({{0}.allmembers}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.uniqueName,c):this.hierarchy.Fh?f.O.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.uniqueName,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset(DISTINCT({{0}.levels(0).allmembers}), {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.hierarchy.uniqueName,c,this.Bk.toString(),this.gq.toString()):f.O.bind("SELECT Subset({0}.children, {2}, {3}) DIMENSION PROPERTIES PARENT_UNIQUE_NAME on columns FROM {1}",this.Xb.uniqueName,c,this.Bk.toString(),this.gq.toString());return e};a.prototype.UC=function(c){var e=c.find("root");if(0<e.find("Fault").length)f.Va(D.aa.Cc(e.find("Fault faultstring")),
"Query error!",f.rb.ya);else{this.hH=[];c=[];for(var g=e.find('Axes Axis[name="Axis0"] Tuples Tuple Member'),l=this.hierarchy.vi,m=0;m<g.length;m++)c.push(this.yU(g[m],m+l));e=e.find("CellData Cell");for(m=0;m<e.length;m++)if(l=e[m],g=parseInt(l.attr("CellOrdinal")),l=l.find("Value").text(),0>l.indexOf("MondrianEvaluationException")&&!f.v(this.hH)&&!f.v(this.hH[g])){var n=this.hH[g][1];g=this.hierarchy.Db(this.hH[g][0]);null!=g&&g.setProperty(n,l)}return c}};a.prototype.yU=function(c,e){var g=c.find("PARENT_UNIQUE_NAME").text();
var l=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]"==l)null!=this.iea&&this.hH.push([this.iea.uniqueName,m]);else return l=this.hierarchy.Db(n),null==l?(l=this.hierarchy.fc(new k.I.Rd({uniqueName:n,caption:m,ei:g})),l.ec=isNaN(c)?e:c):this.state==k.qo.gE&&(l.ec=isNaN(c)?e:c),this.iea=l,null==l||l.Wb||(l.yf=!0),l.parent&&!l.parent.Wb&&(l.parent.yf=!1),l.ordinal};b.Bna=a})(d.gp||(d.gp={}))})(h.yb||
(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){var e=d.eh.pP.call(this,c)||this;e.ll=new b.Bna(c);return e}u(a,d.eh.pP);a.prototype.MT=function(){f.za(!1);null!=this.Ib&&this.Ib()};a.prototype.g3=function(c){var e=c.find("DIMENSION_UNIQUE_NAME").text(),g=c.find("HIERARCHY_UNIQUE_NAME").text(),l=c.find("LEVEL_UNIQUE_NAME").text(),m=c.find("PROPERTY_CAPTION").text();c.find("PROPERTY_TYPE").text();c=c.find("PROPERTY_NAME").text();e=this.wa.I.Vo(e);null!=e&&(g=e.Mg(g),
null!=g&&(l=g.Gt(l),null!=l&&(m=new k.I.PV(c,m),l.PY(m))))};b.Cna=a})(d.gp||(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){this.slice=c;this.ub=e}a.prototype.MS=function(){return 0<this.slice.Cd(k.i.ia.Sa).zd.length};a.prototype.NS=function(){return 0<this.slice.Cd(k.i.ia.Ia).zd.length};a.prototype.mV=function(c){return c=c.replace(/[\]|\[]/g,"")};a.prototype.YC=function(c){-1<c.indexOf("'")&&(c=c.replace(RegExp("'","g"),"''"));return c};a.prototype.sK=function(c,e){e=void 0===e?!1:e;var g=[];var l=0!=c.cb.length||c.Fh?c.cb:c.du(c.ra.ea(1).uniqueName);
for(var m=c.Fr(l),n=[],p,t=0;t<l.length;t++)if(p=c.va(l[t]),!f.ha(p.uniqueName)){g.push(p.uniqueName);if(p.Pg||this.slice.drillAll)e?g.push(f.O.bind("Descendants({0})",p.uniqueName)):g.push(f.O.bind("{0}.CHILDREN",p.uniqueName));for(;null!=p.parent;){p=p.parent;for(var r=p.Wx,v=[],z=0;z<r.length;z++){var B=c.va(r[z]).uniqueName;-1<m.indexOf(B)&&v.push(B)}r=!c.Fh&&p.Wb?c.Kl():p.Yra;if(c.type==k.i.Gc.Oa&&!c.Fh){if(p.Wb)continue;r=p.uniqueName}-1==n.indexOf(r)&&n.push(r);this.ed.Bb(r)||c.$t||this.ed.Pa(r,
v.join(","))}}e=this.mV(c.uniqueName)+"FilterSet";this.tg.Pa(e,g.join(", "));c=this.mV(c.uniqueName)+"CalculatedSet";this.tg.Pa(c,n.join(", "));return["["+e+"]","["+c+"]"]};a.prototype.tK=function(c,e,g){if(g)if(c.filter.$h){var l=this.sK(c,!0);g=l[0];l=l[1];e=f.O.bind("Hierarchize(Distinct(Union({0}, {1})))",g,l)}else e="Hierarchize({"+c.uniqueName+".AllMembers})";else{var m=c.Fh?f.O.bind("Union({{0}}, {1}.levels(1).AllMembers)",c.tn,c.uniqueName):c.type==k.i.Gc.Oa?f.O.bind("{0}.levels(0).AllMembers",
c.uniqueName):f.O.bind("Union({{0}}, {1}.levels(0).AllMembers)",c.Kl(),c.uniqueName);var n=this.$ta(c);c.filter.$h||!c.Fh&&c.type!=k.i.Gc.Oa?(l=this.sK(c,e&&0<n.length),g=l[0],l=l[1],e=e?0<n.length?f.O.bind("Hierarchize(Distinct(Union(Intersect({0}, Union({1}, {3})), {2})))",g,n,l,m):f.O.bind("Hierarchize(Distinct(Union({0}, {1})))",g,l):c.Kl()):e=e?0<n.length?f.O.bind("Hierarchize(Distinct(Union({0}, {1})))",m,n):m:f.O.bind("{0}.levels(0).AllMembers",c.uniqueName)}c="set_"+this.slice.rc().indexOf(c.uniqueName)+
"_set";this.tg.Pa(c,e);return"["+c+"]"};a.prototype.$ta=function(c){for(var e=[],g=1;g<c.ra.length;g++){var l=c.ra.ea(g);c.nc&&c.nc.uniqueName==l.uniqueName&&e.push(f.O.bind("Descendants({{0}}, {1}, SELF_AND_BEFORE)",c.xt,c.nc.uniqueName));l=c.JB(l);if(0!=l.length)for(var m=0;m<l.length;m++){var n=c.va(l[m]);c.type!=k.i.Gc.Oa||c.Fh?e.push(f.O.bind("{0}.CHILDREN",n.uniqueName)):(n=c.Fr(n.children),e.push(f.O.bind("{"+n.join(","))+"}"))}}return 0<e.length?(c=this.mV(c.uniqueName)+"DrilledSet",this.tg.Pa(c,
e.join(",")),"["+c+"]"):""};a.prototype.Mx=function(c,e){for(var g="",l=0;l<c.length;l++){var m=c[l].slice(1);m=this.Mo(m,e);""!=m&&(g=g?f.O.bind("Union({0}, {1})",m,g):m)}return g};a.prototype.Mo=function(c,e){for(var g="",l=e.length-1;0<=l;l--){var m=e.ea(l);if(null!=c[l]){var n=m.va(c[l]);if(null==n){g="";break}m.filter.$h?(m=this.sK(m,!0),n=f.O.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",n.uniqueName,m[0],m[1])):n="{"+n.uniqueName+"}"}else n=c.length==l?this.tK(m,!0,!1):this.tK(m,
!1,!1);g=l==e.length-1?n:f.O.bind("CrossJoin({{0}}, {{1}})",n,g)}return g};a.prototype.qK=function(c){var e=[];for(var g=this.slice.ad(),l=0;l<g.length;l++)e.push("isEmpty("+g[l].uniqueName+")");e=e.join(" and ");g="";for(l=0;l<c.length;l++){var m=c.ea(l);m=this.tK(m,this.slice.expandAll||0==l,this.slice.drillAll);m="Filter("+m+", not ("+e+"))";g=0<l?"Crossjoin("+g+","+m+")":m}return g};a.prototype.uB=function(){if(0<this.slice.Cb.length){var c=this.qK(this.slice.Cb);this.tg.Pa("columnHierarchiesSet",
c);c="";this.MS()&&(c=this.Mx(this.slice.Cd(k.i.ia.Sa).zd,this.slice.Cb),0<c.length&&this.tg.Pa("columnExpandedSet",c));this.tg.Pa("columnSet","Crossjoin("+(0<c.length?"Union([columnHierarchiesSet], [columnExpandedSet])":"[columnHierarchiesSet]")+", [measureSet])")}else this.tg.Pa("columnSet","[measureSet]")};a.prototype.xB=function(){if(0<this.slice.vb.length){var c=this.qK(this.slice.vb);this.tg.Pa("rowHierarchiesSet",c);c="";this.NS()&&(c=this.Mx(this.slice.Cd(k.i.ia.Ia).zd,this.slice.vb),0<c.length&&
this.tg.Pa("rowExpandedSet",c));this.tg.Pa("rowSet",0<c.length?"Union([rowHierarchiesSet], [rowExpandedSet])":"[rowHierarchiesSet]")}};a.prototype.x_=function(c){0<this.slice.Cb.length?(c=this.Mo(c,this.slice.Cb),this.tg.Pa("columnSet","Crossjoin("+c+", [measureSet])")):this.tg.Pa("columnSet","[measureSet]")};a.prototype.B_=function(c){0<this.slice.vb.length&&(c=this.Mo(c,this.slice.vb),this.tg.Pa("rowSet",c))};a.prototype.l_=function(c,e){0<this.slice.Cb.length?(c=this.aba(c,e,this.slice.Cb),this.tg.Pa("columnSet",
"Crossjoin("+c+", [measureSet])")):this.tg.Pa("columnSet","[measureSet]")};a.prototype.m_=function(c,e){0<this.slice.vb.length&&(c=this.aba(c,e,this.slice.vb),this.tg.Pa("rowSet",c))};a.prototype.aba=function(c,e,g){var l=[];for(var m=this.slice.ad(),n=0;n<m.length;n++)l.push("isEmpty("+m[n].uniqueName+")");l=l.join(" and ");m="";for(n=g.length-1;0<=n;n--){var p=g.ea(n);if(e.hierarchy.uniqueName==p.uniqueName)if(p.filter.$h){var t=this.sK(p,!0);p=t[0];t=t[1];var r=f.O.bind("Hierarchize(Distinct(Union(Intersect({0}.CHILDREN, {1}), {2})))",
e.uniqueName,p,t)}else r=this.tK(p,!0,!1),r=f.O.bind("Intersect({0}.CHILDREN, {{1}})",e.uniqueName,r);else if(null!=c[n]){r=p.va(c[n]);if(null==r){m="";break}p.filter.$h?(t=this.sK(p,!0),p=t[0],t=t[1],r=f.O.bind("Hierarchize(Distinct(Union(Intersect({{0}}, {1}), {2})))",r.uniqueName,p,t)):r="{"+r.uniqueName+"}"}else r=this.tK(p,!1,!1);r="Filter("+r+", not ("+l+"))";m=n==g.length-1?r:f.O.bind("CrossJoin({{0}}, {{1}})",r,m)}return m};a.prototype.FZ=function(){for(var c="",e=[],g=0;g<this.slice.pages.length;g++){var l=
this.slice.pages.ea(g);l.filter.$h&&(this.ed.Pa(l.Kl(),l.Fr(l.cb).join(",")),e.push(l.Kl()))}0<e.length&&(c=f.O.bind("where ({0})",e.join(", ")));return c};a.prototype.zn=function(){for(var c=[],e=0;e<this.slice.pu.length;e++)c.push(this.slice.pu[e].uniqueName);this.tg.Pa("measureSet",c.join(", "))};a.prototype.yB=function(){for(var c="with",e=0;e<this.tg.length;e++)c+=f.O.bind(" set [{0}] as '{{1}}'",this.YC(this.tg.qh(e)),this.YC(this.tg.ea(e)));for(e=0;e<this.ed.length;e++)c+=f.O.bind(" member {0} as 'Aggregate({{1}})'",
this.YC(this.ed.qh(e)),this.YC(this.ed.ea(e)));return c};a.prototype.select=function(){this.tg=new f.nb;this.ed=new f.nb;this.zn();this.uB();this.xB();var c=this.FZ();var e=this.zD?this.tg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.tg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";var g=this.yB();return f.O.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",e,this.ub.wa,c)};a.prototype.expand=function(c,e){this.tg=new f.nb;this.ed=new f.nb;this.zn();c==k.i.ia.Ia?(this.uB(),this.B_(e)):(this.x_(e),this.xB());c=this.FZ();e=this.zD?this.tg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"":this.tg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"";var g=this.yB();return f.O.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",e,this.ub.wa,c)};a.prototype.tf=function(c,e,g){this.tg=new f.nb;this.ed=new f.nb;this.zn();c==k.i.ia.Ia?(this.uB(),this.m_(e,g)):(this.l_(e,g),this.xB());c=this.FZ();e=this.zD?this.tg.Bb("rowSet")?", NON EMPTY _ROWS_TOKEN_START_[rowSet]_ROWS_TOKEN_END_ DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":
"":this.tg.Bb("rowSet")?", NON EMPTY [rowSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON ROWS":"";g=this.yB();return f.O.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",e,this.ub.wa,c)};a.prototype.drillThrough=function(){return""};q.Object.defineProperties(a.prototype,{zD:{configurable:!0,enumerable:!0,get:function(){return this.ub&&this.ub.binary?
!0:!1}}});b.GW=a})(d.gp||(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){(function(a){function c(){var e=d.I.LO.apply(this,arguments)||this;e.Rk=new x.dP(!1);e.Zu=new x.dP;return e}u(c,d.I.LO);c.prototype.Kl=function(e){e=void 0===e?"(Total)":e;if(this.Fh)return this.tn+".["+e+"]";var g=this.xt.split("].");g.pop();g.push("["+e+"]");return g.join("].")};c.prototype.bC=function(){return new a.Ana(this)};c.prototype.Db=function(e){e=this.Rk.find(e);return-1==e?null:this.va(e)};a.E7=c})(b.I||(b.I={}))})(d.gp||
(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){(function(a){function c(){return d.I.SW.apply(this,arguments)||this}u(c,d.I.SW);q.Object.defineProperties(c.prototype,{Bi:{configurable:!0,enumerable:!0,get:function(){return this.level.cw?!0:this.hierarchy.sT||this.hierarchy.$t||this.level.cw?(this.Pg||!this.yf)&&0==this.children.length:!1},set:function(){}}});a.Ana=c})(b.I||(b.I={}))})(d.gp||(d.gp={}))})(h.yb||(h.yb={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.Oq.call(this,c,void 0===e?"":e)||this}u(a,k.I.Oq);b.Aka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){e=k.I.nf.call(this,c,void 0===e?"":e)||this;e.Nda=!1;e.qfa="";e.YP="";c=new b.f6(c+".[(all)]","All",0);e.ph(c);e.tn="(all member)";e.xt="(all member)";c=new k.I.Rd({uniqueName:"(all member)",caption:"All",Wb:!0});e.fc(c);return e}u(a,k.I.nf);a.prototype.bC=function(){return new b.Cka(this)};a.prototype.fc=function(c){void 0!==c.caption&&f.ha(c.caption)?c.caption=f.model.A.j.Mk:f.ha(c.uniqueName)&&(c.caption=f.model.A.j.Mk);
return k.I.nf.prototype.fc.call(this,c)};a.prototype.va=function(c){return k.I.nf.prototype.va.call(this,c)};a.prototype.Ji=function(){var c=k.I.nf.prototype.Ji.call(this);c.type=this.inputType;return c};q.Object.defineProperties(a.prototype,{inputType:{configurable:!0,enumerable:!0,get:function(){return this.YP},set:function(c){this.YP=c}}});b.Bka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g){return k.I.$m.call(this,c,void 0===e?"":e,void 0===g?0:g)||this}u(a,k.I.$m);b.f6=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.ek.call(this,c,void 0===e?"":e)||this}u(a,k.I.ek);a.prototype.F0=function(){var c=new a("","");return this.format!=c.format||0==this.Nm?!1:!0};a.prototype.clone=function(){var c=new a(this.uniqueName);this.xK(c);return c};a.prototype.Ji=function(){var c=k.I.ek.prototype.Ji.call(this),e=k.Na.U().I.Vj(this.uniqueName);f.v(e)?c.type=k.i.input.pa.fb:c.type=e.inputType;return c};q.Object.defineProperties(a.prototype,
{bm:{configurable:!0,enumerable:!0,get:function(){return this.Ka?[]:this.type==k.i.Ja.fb?k.i.ca.Jia:k.i.ca.Kia},set:function(){}},caption:{configurable:!0,enumerable:!0,get:function(){if(0==f.model.B.C.iz)return this.qc;switch(this.$){case k.i.ca.sc:return f.O.bind(f.model.A.j.LN,this.qc);case k.i.ca.Bs:return f.O.bind(f.model.A.j.QO,this.qc);case k.i.ca.hj:return f.O.bind(f.model.A.j.SN,this.qc);case k.i.ca.Hp:return f.O.bind(f.model.A.j.FN,this.qc);case k.i.ca.Su:return f.O.bind(f.model.A.j.ZO,
this.qc);case k.i.ca.Tu:return f.O.bind(f.model.A.j.$O,this.qc);case k.i.ca.MAX:return f.O.bind(f.model.A.j.zO,this.qc);case k.i.ca.MIN:return f.O.bind(f.model.A.j.IO,this.qc);case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.qc);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.qc);case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.qc);case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.qc);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.qc);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.qc);
case k.i.ca.nm:return f.O.bind(f.model.A.j.RO,this.qc);case k.i.ca.ln:return f.O.bind(f.model.A.j.TO,this.qc);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.qc);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.qc);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.qc);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.qc);case k.i.ca.NONE:return this.qc}return f.O.bind(f.model.A.j.WI,this.qc)},set:function(c){""==c.trim()?this.qc=f.model.A.j.Mk:this.qc=c}},Yl:{configurable:!0,enumerable:!0,
get:function(){return this.qc},set:function(){}}});b.g6=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){return k.I.Pq.apply(this,arguments)||this}u(a,k.I.Pq);a.prototype.La=function(){var c=k.I.Pq.prototype.La.call(this);c.uniqueName=this.Xi;this.parent&&(c.parentMember=this.parent.Xi);return c};q.Object.defineProperties(a.prototype,{caption:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.hierarchy.aC(this.ordinal)}}});b.Cka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||
(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.rs.call(this)||this;c.QA={};c.GA={};c.NY();return c}u(a,k.I.rs);a.prototype.UJ=function(c,e){this.QA[c]=this.Mg(e);this.GA[e]=this.$c(c)};a.prototype.Vj=function(c){return this.QA[c]};a.prototype.Ee=function(c){return this.GA[c]};a.prototype.nw=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;var l=e?e:new b.g6(c.uniqueName);return k.I.rs.prototype.nw.call(this,c,l,f.v(e)||g)};a.prototype.clear=function(){this.QA=
{};this.GA={};k.I.rs.prototype.clear.call(this)};b.Eka=a})(d.I||(d.I={}))})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.ConnectionInfo.call(this)||this;a.node=null;a.index="";a.mapping=new d.XN;a.subquery=null;a.Ba=k.i.oa.Gf;return a}u(b,k.I.ConnectionInfo);b.prototype.isEqual=function(a){return a.connection&&a.connection===this.connection&&this.index==a.index?!0:k.I.ConnectionInfo.prototype.isEqual.call(this,a)&&JSON.stringify(this.node)==JSON.stringify(a.node)&&this.index==a.index&&this.mapping.isEqual(a.mapping)&&JSON.stringify(this.subquery)==
JSON.stringify(a.subquery)};b.prototype.Tv=function(a){if(!f.v(this.connection))return a(this.connection);var c=new Ga.O5({host:this.node,headers:this.requestHeaders,withCredentials:this.withCredentials});a(c)};b.tb=function(a){var c=new b;f.v(a.host)||(c.node=a.host);f.v(a.node)||(c.node=a.node);f.v(a.index)||(c.index=a.index);f.v(a.mapping)||(c.mapping=a.mapping instanceof d.XN?a.mapping:new d.XN(a.mapping));f.v(a.subquery)||(c.subquery=a.subquery);f.v(a.connection)||(c.connection=a.connection);
f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;f.v(this.node)||(c.node=this.node);f.v(this.index)||(c.index=this.index);if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);f.v(this.subquery)||(c.subquery=this.subquery);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.clone=function(){var a=new b;
a.Ba=this.Ba;f.v(this.node)||(a.node=this.node);f.v(this.index)||(a.index=this.index);if(!this.mapping.ob||this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);f.v(this.subquery)||(a.subquery=this.subquery);f.v(this.withCredentials)||(a.withCredentials=this.withCredentials);return a};q.Object.defineProperties(b.prototype,{KG:{configurable:!0,enumerable:!0,get:function(){return!1}}});d.ESConnectionInfo=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){this.slice=a;this.connectionInfo=c}b.prototype.select=function(){var a={size:0};f.v(this.connectionInfo.subquery)||(a.query=x.Mc.Vi(this.connectionInfo.subquery));var c=this.slice.vb.Ic(),e=this.slice.Cb.Ic();this.slice.expandAll||(c=c.slice(0,1),e=e.slice(0,1));this.Lo(a);0==c.length&&0==e.length?this.zn(a,this.slice.ad(),!0):this.Kv(a,c.concat(e));0<e.length&&this.Kv(a,e.concat(c),!0);return a};b.prototype.expand=function(a,c){var e=
{size:0};f.v(this.connectionInfo.subquery)||(e.query=x.Mc.Vi(this.connectionInfo.subquery));var g=a==k.i.ia.Ia;a=this.slice.vb.Ic();var l=this.slice.Cb.Ic();this.Lo(e);this.Mo(e,c,g?a:l);if(this.slice.expandAll)return this.Kv(e,a.concat(l)),0<l.length&&this.Kv(e,l.concat(a),!0),e;var m=[];if(g){c=c.length+1;var n=this.tca(k.i.ia.Sa),p=this.Tca(this.slice.Cd(k.i.ia.Sa).zd);for(g=1;g<=n;g++)if(!f.v(p[g])||1==g){var t=x.Mc.Vi(e);1!=g&&this.Mx(t,p[g],l);var r=a.slice(0,c),v=l.slice(0,g);this.Kv(t,r.concat(v));
m.push(t)}}else for(g=c.length+1,n=this.tca(k.i.ia.Ia),p=this.Tca(this.slice.Cd(k.i.ia.Ia).zd),c=1;c<=n;c++)f.v(p[c])&&1!=c||(t=x.Mc.Vi(e),1!=c&&this.Mx(t,p[c],a),r=a.slice(0,c),v=l.slice(0,g),this.Kv(t,r.concat(v)),0<v.length&&this.Kv(t,v.concat(r),!0),m.push(t));return m};b.prototype.Tca=function(a){for(var c={},e=0;e<a.length;e++){var g=a[e].length;f.v(c[g])&&(c[g]=[]);c[g].push(a[e])}return c};b.prototype.drillThrough=function(a,c,e,g){var l=this;g=void 0===g?null:g;e={size:f.model.B.C.KK};f.v(this.connectionInfo.subquery)||
(e.query=x.Mc.Vi(this.connectionInfo.subquery));e._source=g.map(function(m){var n=l.slice.Wc.Mg(m);return n&&n.Nda?n.qfa:m});this.Lo(e);this.Mo(e,a,this.slice.vb.Ic());this.Mo(e,c,this.slice.Cb.Ic());return e};b.prototype.VZ=function(a){f.v(a.query)&&(a.query={});f.v(a.query.bool)&&(a.query.bool={});f.v(a.query.bool.must)?a.query.bool.must=[]:Array.isArray(a.query.bool.must)||(a.query.bool.must=[a.query.bool.must]);f.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])};b.prototype.Mo=function(a,c,e){var g=this;this.VZ(a);c.forEach(function(l,m){m=e[m];l=m.va(l);a.query.bool.must.push(g.uK(m,l))})};b.prototype.tf=function(){return null};b.prototype.tca=function(a){a=this.slice.Cd(a).zd;return 0<a.length?Math.max.apply(Math,a.map(function(c){return c.length})):1};b.prototype.Mx=function(a,c,e){var g=this,l={bool:{should:[]}};c.forEach(function(m){m=m.slice(1);e.forEach(function(n,p){null!=m[p]&&(p=n.va(m[p]),l.bool.should.push(g.uK(n,
p)))})});a.query.bool.must.push(l)};b.prototype.MS=function(){return 0<this.slice.Cd(k.i.ia.Sa).zd.length};b.prototype.NS=function(){return 0<this.slice.Cd(k.i.ia.Ia).zd.length};b.prototype.Kv=function(a,c,e){e=void 0===e?!1:e;for(var g=this.slice.ad(),l=0;l<c.length;l++)if(this.zn(a,g,!0),!e||l!=c.length-1){var m=c[l];this.eua(a,m);a=a.aggs[m.uniqueName]}e||this.zn(a,g)};b.prototype.eua=function(a,c){f.v(a.aggs)&&(a.aggs={});f.v(a.aggs[c.uniqueName])&&(a.aggs[c.uniqueName]={});c.type==k.i.Gc.Oa?
a.aggs[c.uniqueName].date_histogram={field:c.uniqueName,min_doc_count:this.connectionInfo.mapping.Fa(c.uniqueName,"min_doc_count"),interval:this.connectionInfo.mapping.Fa(c.uniqueName,"interval"),time_zone:this.connectionInfo.mapping.Fa(c.uniqueName,"time_zone"),format:this.connectionInfo.mapping.Fa(c.uniqueName,"format",f.model.B.C.mq)}:a.aggs[c.uniqueName].terms={field:c.uniqueName,size:c.Un}};b.prototype.zn=function(a,c,e){var g=this;e=void 0===e?!1:e;f.v(a.aggs)&&(a.aggs={});c.forEach(function(l){var m=
{};a.aggs[(e?"total_":"")+(l.$+"_")+l.uniqueName]=(m[g.dya(l)]={field:l.uniqueName},m)})};b.prototype.dya=function(a){if(a.$!=k.i.ca.Up){if(a.$==k.i.ca.Hp)return"avg";if(a.$==k.i.ca.sc)return"value_count";if(a.$==k.i.ca.hj)return"cardinality";if(a.$==k.i.ca.MIN)return"min";if(a.$==k.i.ca.MAX)return"max"}return"sum"};b.prototype.Lo=function(a){var c=this;this.slice.pages.Ic().forEach(function(e){return c.rK(a,e)});this.slice.Cb.Ic().forEach(function(e){return c.rK(a,e)});this.slice.vb.Ic().forEach(function(e){return c.rK(a,
e)})};b.prototype.rK=function(a,c){if(c.filter.$h){this.VZ(a);for(var e={bool:{should:[]}},g=c.filter.pj(c.filter.b1),l=0;l<g.length;l++){var m=c.va(g[l]);e.bool.should.push(this.uK(c,m))}a.query.bool[c.filter.b1?"must_not":"must"].push(e)}else if(c.filter.$v||c.filter.IL||c.filter.uy)this.VZ(a),e={bool:{should:[]}},c=c.filter.uy?this.Vta(c):this.hua(c),e.bool.should.push(c),a.query.bool[c.isExclude?"must_not":"must"].push(e),delete c.isExclude};b.prototype.Vta=function(a){var c={},e=0<=k.i.Ub.$w.indexOf(a.filter.query.ta)?
a.filter.query.kR(a.getTimezoneOffset()):a.filter.query;if(k.i.Ub.EQUAL===e.ta||k.i.Ub.If===e.ta){var g=e.value,l={};c.range=(l[a.uniqueName]={gte:g.format("yyyy-MM-dd"),lt:g.format("yyyy-MM-dd")+"||+1d/d"},l);c.isExclude=k.i.Ub.If===e.ta}else if(k.i.Ub.JD===e.ta)g={},c.range=(g[a.uniqueName]={lt:e.value.format("yyyy-MM-dd")},g),c.isExclude=!1;else if(k.i.Ub.KD===e.ta)g={},c.range=(g[a.uniqueName]={lt:e.value.format("yyyy-MM-dd")+"||+1d/d"},g),c.isExclude=!1;else if(k.i.Ub.FD===e.ta)g={},c.range=
(g[a.uniqueName]={gte:e.value.format("yyyy-MM-dd")+"||+1d/d"},g),c.isExclude=!1;else if(k.i.Ub.GD===e.ta)g={},c.range=(g[a.uniqueName]={gte:e.value.format("yyyy-MM-dd")},g),c.isExclude=!1;else if(k.i.Ub.Sg===e.ta||k.i.Ub.Jg===e.ta)g=e.value[1],l={},c.range=(l[a.uniqueName]={gte:e.value[0].format("yyyy-MM-dd"),lte:g.format("yyyy-MM-dd")},l),c.isExclude=k.i.Ub.Jg===e.ta;return c};b.prototype.hua=function(a){var c={},e=a.filter.query;if(k.i.wb.LD===e.ta||k.i.wb.$z===e.ta){var g={};c.prefix=(g[a.uniqueName]=
e.value,g);c.isExclude=k.i.wb.$z===e.ta}else if(k.i.wb.EQUAL===e.ta||k.i.wb.If===e.ta)g={},c.match=(g[a.uniqueName]=e.value,g),c.isExclude=k.i.wb.If===e.ta;else if(k.i.wb.Mz===e.ta||k.i.wb.bA===e.ta)g={},c.wildcard=(g[a.uniqueName]="*"+e.value,g),c.isExclude=k.i.wb.bA===e.ta;else if(k.i.wb.an===e.ta||k.i.wb.aA===e.ta)g={},c.wildcard=(g[a.uniqueName]="*"+e.value+"*",g),c.isExclude=k.i.wb.aA===e.ta;else if(k.i.wb.GREATER===e.ta)g={},c.range=(g[a.uniqueName]={gt:e.value},g),c.isExclude=!1;else if(k.i.wb.Kk===
e.ta)g={},c.range=(g[a.uniqueName]={gte:e.value},g),c.isExclude=!1;else if(k.i.wb.LESS===e.ta)g={},c.range=(g[a.uniqueName]={lt:e.value},g),c.isExclude=!1;else if(k.i.wb.Lk===e.ta)g={},c.range=(g[a.uniqueName]={lte:e.value},g),c.isExclude=!1;else if(k.i.wb.Sg===e.ta||k.i.wb.Jg===e.ta)g={},c.range=(g[a.uniqueName]={gte:e.value[0],lte:e.value[1]},g),c.isExclude=k.i.wb.Jg===e.ta;return c};b.prototype.uK=function(a,c){if(a.type==k.i.Gc.Oa){var e={};return{range:(e[a.uniqueName]={gte:c.ec,lt:f.SJ(new Date(c.ec),
this.connectionInfo.mapping.Fa(a.uniqueName,"interval")).getTime()},e)}}e={};return{term:(e[a.uniqueName]=c.caption,e)}};d.Dka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));var Ga;
(function(f){function k(d){w.ha(d)||this.Tba(d)}function h(d){var b=D.Qi.call(this)||this;d||(d={host:"http://localhost:9200"});b.host="string"===typeof d.host?new k(d.host):k.tb(d.host);d.headers&&(b.host.headers=d.headers);b.contentType=D.Iz.c5;b.withCredentials=d.withCredentials;return b}u(h,D.Qi);h.prototype.DY=function(d,b){var a=this;b=void 0===b?w.model.A.j.GO:b;this.Dha=function(){a.mb(y.da.Jc,a.Dha);d(null,JSON.parse(a.response))};this.N(y.da.Jc,this.Dha);this.jba=function(){a.mb(y.da.ya,
a.jba);var c=b;try{var e=JSON.parse(a.response);e&&e.message?c=e.message:e&&e.error&&e.error.reason&&(c=e.error.reason)}catch(g){}c=w.model.Nb.valid(c)?c:w.model.Nb.validate(c);d({message:c},null)};this.N(y.da.ya,this.jba)};h.prototype.search=function(d,b){this.DY(b);this.Dq=D.Fs.Pu;this.vh(this.host.headers);this.data="string"===typeof d.body?d.body:JSON.stringify(d.body);this.load(this.host.QT("/"+d.index+"/_search"));this.data=null};h.prototype.j0=function(d){this.DY(d,this.dca());this.Dq=D.Fs.tW;
this.vh(this.host.headers);this.load(this.host.QT("/_cat/indices?format=json"))};h.prototype.aza=function(d,b){this.DY(b,this.dca());this.Dq=D.Fs.tW;this.vh(this.host.headers);this.load(this.host.QT("/"+d+"/_mapping"))};h.prototype.dca=function(){var d=w.model.A.j.dna,b=this.host.QT();b=w.model.Nb.valid(b)?b:w.model.Nb.validate(b);return w.O.bind(d,b)};f.O5=h;k.prototype.Tba=function(d){d=w.BGa(d);this.host=d.hostname;this.protocol=d.protocol;this.port=d.port;this.path=d.pathname};k.prototype.QT=
function(d){d=void 0===d?"":d;this.host&&-1<this.host.indexOf("http")&&this.Tba(this.host);var b="";this.port!==k.Jva[this.protocol]&&(b=":"+this.port);var a=w.ha(this.path)?"":this.path;"/"!==a.charAt(0)&&(a="/"+a);var c=w.ha(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+d};k.tb=function(d){var b=new k;b.headers=d.headers;b.host=d.host;b.path=d.path;b.port=d.port;b.protocol=d.protocol;return b};k.Jva={http:80,
https:443}})(Ga||(Ga={}));
(function(f){(function(k){(function(h){(function(d){function b(){if(null!=b.instance)throw Error("Singleton");}b.U=function(){null==b.instance&&(b.instance=new b);return b.instance};b.dispose=function(){b.instance=null};b.prototype.j0=function(a,c){(new Ga.O5(a)).j0(function(e,g){if(e)return f.Va(e.message,f.model.A.j.ya,f.rb.ya),c(e,g);if(f.v(g))return console.warn("ESConnector: empty response"),c(e,g);e=g.map(function(l){return l.index}).filter(function(l){return 0>l.indexOf(".kibana")&&0>l.indexOf(".security")});
c(null,e)})};d.xka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.wa=k.Na.U();this.qa=this.wa.qa}b.prototype.load=function(a,c,e,g){var l=this;this.connectionInfo=a;this.query=c;this.Ib=e;this.Xa=g;this.connectionInfo.Tv(function(m){l.Hn=m;l.kw()})};b.prototype.r4=function(a,c,e,g){g=void 0===g?!1:g;for(var l in c){var m=this.wa.I.Mg(l),n=Math.ceil(m.Un/b.II);if(1==n)m=x.Mc.DF(c),delete m[l],this.r4(a,m,e);else for(var p=0;p<n;p++)c[l].forEach(function(t){t.include={partition:p,num_partitions:n}}),
e.push(JSON.stringify(a)),m=x.Mc.DF(c),delete m[l],this.r4(a,m,e);if(g)break}return e};b.prototype.Hba=function(a,c){for(var e in a){var g=this.wa.I.Mg(e);f.v(g)||(f.v(a[e].terms)||(f.v(c[e])&&(c[e]=[]),c[e].push(a[e].terms)),a[e].aggs&&this.Hba(a[e].aggs,c))}return c};b.prototype.kw=function(){var a=this;f.za(!0,f.model.A.j.Hf);if(this.query.type==k.i.Kd.to){var c=this.Hba(this.query.body.aggs,{}),e=this.r4(this.query.body,c,[],!0);0==e.length&&e.push(JSON.stringify(this.query.body));var g=new x.YI;
e.forEach(function(l,m){g.add(function(n){return a.E1(l,m,e.length,n)})});g.Wf(function(){null!=a.Ib&&a.Ib();f.za(!1)})}else Array.isArray(this.query.body)?(g=new x.YI,this.query.body.forEach(function(l){g.add(function(m){return a.E1(l,0,0,m)})}),g.Wf(function(){null!=a.Ib&&a.Ib();f.za(!1)})):this.E1(this.query.body,0,0,function(){null!=a.Ib&&a.Ib();f.za(!1)})};b.prototype.E1=function(a,c,e,g){var l=this;0<c&&f.za(!0,f.model.A.j.Hf,(c/e*100).toFixed(0)+"%");this.Hn.search({index:this.connectionInfo.index,
body:a},function(m,n){if(m)return l.Mb(m.message,l.Xa),g();m=l.wa.sa.vb.Ic();var p=l.wa.sa.Cb.Ic();l.query.type!=k.i.Kd.to||l.wa.sa.expandAll||(m=m.slice(0,1),p=p.slice(0,1));var t=l.wa.sa.ad();l.d3(n.aggregations,m.concat(p),t,0,[],[]);0<p.length&&l.tfa(n.aggregations,p.concat(m),t,0,[],[]);g()})};b.prototype.d3=function(a,c,e,g,l,m){var n=this,p=c[g];if(p&&a.hasOwnProperty(p.uniqueName))a[p.uniqueName].buckets.forEach(function(v){var z=null;p.type==k.i.Gc.Oa&&(z=p.Ht(v.key));f.v(z)&&(z=p.Db(v.key_as_string||
""+v.key));var B=l.slice(),C=m.slice();z&&n.wa.sa.rows.Bb(p.uniqueName)?B.push(z.ordinal):z&&C.push(z.ordinal);n.bda(v,e)?(z=e.map(function(E){return n.i3(v,E)}),n.qa.insert(B,C,z)):n.d3(v,c,e,g+1,B,C)});else if(g<c.length){var t=l.slice(),r=m.slice();this.wa.sa.rows.Bb(p.uniqueName)?t.push(null):r.push(null);this.d3(a,c,e,g+1,t,r)}t=e.map(function(v){return n.i3(a,v,!0)});this.qa.hz(l,m,t)};b.prototype.i3=function(a,c,e){if(0==a.doc_count)return c.$==k.i.ca.sc||c.$==k.i.ca.hj?0:NaN;c=((void 0===
e?0:e)?"total_":"")+c.$+"_"+c.uniqueName;return f.v(a[c])?NaN:a[c].value};b.prototype.tfa=function(a,c,e,g,l,m){var n=this,p=c[g];f.v(a[p.uniqueName])||a[p.uniqueName].buckets.forEach(function(t){var r=k.i.Gc.Oa==p.type?p.Db(""+t.key):p.Db(t.key_as_string||""+t.key),v=l.slice(),z=m.slice();n.wa.sa.rows.Bb(p.uniqueName)?v.push(r.ordinal):z.push(r.ordinal);var B;n.bda(t,e,!0)&&(B=e.map(function(C){return n.i3(t,C,!0)}));n.qa.hz(v,z,B);g<c.length-2&&n.tfa(t,c,e,g+1,v,z)})};b.prototype.OS=function(a,
c){return c&&a.hasOwnProperty(c.uniqueName)};b.prototype.bda=function(a,c,e){return(c=c[0])&&a.hasOwnProperty(((void 0===e?0:e)?"total_":"")+c.$+"_"+c.uniqueName)};b.prototype.drillThrough=function(a,c,e,g,l,m,n){var p=this;f.za(!0,f.model.A.j.Hf,f.model.A.j.Hf);a.Tv(function(t){p.Hn=t;p.Hn.search({index:a.index,body:c.body},function(r,v){if(r)return p.Mb(r.message,n);var z=v.hits.hits.map(function(C){return C._source}),B=c.body._source;z.forEach(function(C,E){z[E]=B.map(function(K){return x.Mc.resolve(K,
C)})});z.unshift(B);m(z)})})};b.prototype.cancel=function(){this.Hn&&this.connectionInfo&&!this.connectionInfo.connection&&this.Hn.close();this.Xa=this.Ib=this.connectionInfo=this.wa=this.Hn=null};b.prototype.Mb=function(a,c){console.error(a);f.za(!1);f.Va(a,f.model.A.j.ya,f.rb.ya);f.pg(c)&&c(a)};b.II=5E4;d.yka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return h.Gu.apply(this,arguments)||this}u(b,h.Gu);b.prototype.Fa=function(a,c,e){a=this.rr(a,c);e=this.Eh(e);return f.v(this.values[a])?NaN:f.v(this.values[a][e])?NaN:this.values[a][e]};b.prototype.hz=function(a,c,e){a=this.rr(a,c);f.v(this.values[a])&&(this.values[a]=e)};b.prototype.CA=function(a,c){return null==a||0==a.length?NaN:this.Ac[c][a[0]]};b.prototype.Gca=function(a,c){var e=a.slice(0);a=a.indexOf(null);0<a&&(e.length=a);e[e.length-
1]=0;return this.cd(e,c)};b.prototype.insert=function(a,c,e){for(;a.length<this.uh.length;)a.push(null);for(;c.length<this.Ti.length;)c.push(null);var g=a.concat(c);if(!(-1<g.indexOf(0))){if(0==this.pb.length)for(var l=0;l<g.length;l++)this.pb[l]=[];(l=this.Gca(a,this.vd))&&l[0]&&l[0].push(this.Iw);(l=this.Gca(c,this.Md))&&l[0]&&l[0].push(this.Iw);this.Wg=f.Ha.Hq(this.Wg,this.Iw);for(l=0;l<g.length;l++)this.pb[l]=f.Ha.Hq(this.pb[l],g[l]);if(0==this.Ac.length)for(l=0;l<e.length;l++)this.Ac[l]=[];for(l=
0;l<e.length;l++)this.Ac[l]=f.Ha.Hq(this.Ac[l],e[l]);this.values[this.rr(a,c)]=e}};b.prototype.filter=function(){};d.zka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(a){a=k.I.Aj.call(this,void 0===a?null:a)||this;a.yt={};a.yt.interval="day";a.yt.min_doc_count=1;a.yt.filters=!0;return a}u(b,k.I.Aj);d.XN=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.wa=k.Na.U();this.II=1E5;this.connectionInfo=a}b.prototype.load=function(a,c,e,g){var l=this;this.Ib=c;this.Be=g;this.Xa=e;f.za(!0,f.model.A.j.iE);a.Tv(function(m){l.Hn=m;l.L1()})};b.prototype.L1=function(){var a=this;this.Hn.aza(this.connectionInfo.index,function(c,e){if(c)return a.Mb(c.message,a.Xa);f.pg(a.Be)&&a.Be();for(var g in e){c=e[g].mappings;for(var l in c)"properties"==l?a.eH(c[l]):a.eH(c[l].properties)}a.Aq()})};b.prototype.eH=
function(a,c,e,g,l){c=void 0===c?null:c;e=void 0===e?"":e;g=void 0===g?"":g;l=void 0===l?"":l;for(var m in a)if(this.connectionInfo.mapping.Fa(e+m,"visible",!0)){var n=a[m];if(this.PAa(n)){var p=c?c:this.dt(m,m);this.eH(n.properties,p,e+m+".",g,l+m+"/")}else if(this.rg(n)){p=c?c:this.dt(m,m);p=this.Uh(p,e+m,m,n,l);var t=this.Hj(e+m,m,n);this.wa.I.UJ(t.uniqueName,p.uniqueName)}else if(this.qg(n)){p=c?c:this.dt(m,m);t=m;var r=!f.ha(g);r&&(t="keyword"==m?g:g+" ("+m+")");p=this.Uh(p,e+m,t,n,l);r&&(p.Nda=
!0,p.qfa=e.substr(0,e.length-1));t=this.Hj(e+m,t,n);this.wa.I.UJ(t.uniqueName,p.uniqueName)}f.v(n.fields)||(p=c?c:this.dt(m,m),this.eH(n.fields,p,e+m+".",m,l+m+"/"))}};b.prototype.dt=function(a,c){var e=this.wa.I.Vo(a);f.v(e)&&(c=this.connectionInfo.mapping.Fa(a,"caption",c),e=new d.I.Aka(a,c),this.wa.I.dt(e));return e};b.prototype.Uh=function(a,c,e,g,l){l=void 0===l?null:l;var m=a.Mg(c);f.v(m)&&(e=this.connectionInfo.mapping.Fa(c,"caption",e),m=new d.I.Bka(c,e),m.type=k.i.Gc.N_(g.type),m.inputType=
g.type,a.Uh(m),f.ha(l)?m.Qc=a.caption:("/"==l.charAt(l.length-1)&&(l=l.substr(0,l.length-1)),m.Qc=l),a=new d.I.f6(c,c,1),m.type==k.i.Gc.Oa?a.type=k.i.eb.Dc:m.type==k.i.Gc.Op&&(a.type=k.i.eb.fb),m.ph(a));return m};b.prototype.Hj=function(a,c,e){var g=this.wa.I.$c(a);f.v(g)&&(c=this.connectionInfo.mapping.Fa(a,"caption",c),g=new d.I.g6(a,c),g.type=k.i.Ja.N_(e.type),g.Tc=this.connectionInfo.mapping.Fa(a,"aggregations"),this.wa.I.Hj(g));return g};b.prototype.rg=function(a){return 0<=k.i.Ja.NK.indexOf(a.type)};
b.prototype.PAa=function(a){return!f.v(a.properties)};b.prototype.qg=function(a){return 0<=k.i.Gc.NK.indexOf(a.type)};b.prototype.Aq=function(){f.za(!1);null!=this.Ib&&this.Ib()};b.prototype.yk=function(a,c,e){var g=this;f.za(!0,f.model.A.j.gn,a.caption);a.type==k.i.Gc.Oa?this.YBa(a,function(l){if(l)return g.Mb(l,e);a.ce=!0;f.za(!1);c(a)}):this.Oua(a,function(l,m){if(l)return g.Mb(l,e);0==m?(a.ce=!0,c(a)):g.xea(a,0,Math.ceil(m/g.II),m,function(n){if(n)return g.Mb(n,e);a.ce=!0;f.za(!1);c(a)})})};b.prototype.Oua=
function(a,c){a={size:0,aggs:{count:{cardinality:{field:a.uniqueName}}}};f.v(this.connectionInfo.subquery)||(a.query=x.Mc.Vi(this.connectionInfo.subquery));this.Hn.search({index:this.connectionInfo.index,body:a},function(e,g){if(e)return c(e.message);c(null,g.aggregations.count.value)})};b.prototype.xea=function(a,c,e,g,l){var m=this,n={};n={size:0,aggs:(n[a.uniqueName]={terms:{field:a.uniqueName,include:{partition:c,num_partitions:e},size:2*this.II}},n)};f.v(this.connectionInfo.subquery)||(n.query=
x.Mc.Vi(this.connectionInfo.subquery));this.Hn.search({index:this.connectionInfo.index,body:n},function(p,t){if(p)return l(p.message);p=t.aggregations[a.uniqueName].buckets;for(t=0;t<p.length;t++)m.fc(a,p[t].key_as_string||p[t].key,p[t].key);c<e-1?(f.za(!0,f.model.A.j.gn,f.O.bind("{0}: {1} of {2} loaded",a.caption,(c+1)*m.II,g)),m.xea(a,c+1,e,g,l)):l()})};b.prototype.YBa=function(a,c){var e=this,g={};g={size:0,aggs:(g[a.uniqueName]={date_histogram:{field:a.uniqueName,min_doc_count:this.connectionInfo.mapping.Fa(a.uniqueName,
"min_doc_count"),interval:this.connectionInfo.mapping.Fa(a.uniqueName,"interval"),time_zone:this.connectionInfo.mapping.Fa(a.uniqueName,"time_zone"),format:this.connectionInfo.mapping.Fa(a.uniqueName,"format",f.model.B.C.mq)}},g)};f.v(this.connectionInfo.subquery)||(g.query=x.Mc.Vi(this.connectionInfo.subquery));this.Hn.search({index:this.connectionInfo.index,body:g},function(l,m){if(l)return c(l.message);l=m.aggregations[a.uniqueName].buckets;for(m=0;m<l.length;m++)e.fc(a,l[m].key_as_string,l[m].key);
c()})};b.prototype.fc=function(a,c,e){"string"!=typeof c&&(c=""+c);var g="number"===typeof e?e:null,l=a.type!==k.i.Gc.Oa?a.Db(c):a.Ht(g);null==l?(c=a.type==k.i.Gc.Oa?new k.I.Rd({uniqueName:String(g),caption:c,ec:g}):new k.I.Rd({uniqueName:c,ec:g}),l=a.fc(c)):l.ec!=e&&a.type==k.i.Gc.Oa&&(l=a.fc(new k.I.Rd({uniqueName:c+"-"+e,caption:c,ec:g})));return l};b.prototype.Uj=function(a,c,e,g){this.yk(a,e,g)};b.prototype.Iy=function(){throw"Not Implemented";};b.prototype.vp=function(){throw"Not Implemented";
};b.prototype.kB=function(){return!1};b.prototype.cancel=function(){this.Hn&&this.connectionInfo&&!this.connectionInfo.connection&&this.Hn.close();this.Be=this.Xa=this.Ib=this.connectionInfo=this.wa=this.Hn=null};b.prototype.Mb=function(a,c){console.error(a);f.za(!1);f.Va(a,f.model.A.j.ya,f.rb.ya);f.pg(c)&&c(a)};d.Fka=b})(h.De||(h.De={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=k.I.ConnectionInfo.call(this)||this;a.url=null;a.index=null;a.singleEndpoint=!1;a.mapping=new d.DN;a.Iga="2.8.5";a.Ba=k.i.oa.API;return a}u(b,k.I.ConnectionInfo);b.prototype.isEqual=function(a){return k.I.ConnectionInfo.prototype.isEqual.call(this,a)&&this.url==a.url&&this.index==a.index&&this.singleEndpoint==a.singleEndpoint&&this.mapping.isEqual(a.mapping)};b.tb=function(a){var c=new b;f.v(a.url)||""==a.url||(c.url=a.url);f.v(a.index)||
(c.index=a.index.toString());f.v(a.requestHeaders)||(c.requestHeaders=a.requestHeaders);f.v(a.mapping)||(c.mapping=a.mapping instanceof d.DN?a.mapping:new d.DN(a.mapping));f.v(a.withCredentials)||(c.withCredentials=a.withCredentials);f.v(a.singleEndpoint)||(c.singleEndpoint=a.singleEndpoint);return c};b.prototype.La=function(a){a=void 0===a?!1:a;var c={};c.type=this.Ba;f.v(this.url)||(c.url=this.url);f.v(this.index)||(c.index=this.index);if(a||this.singleEndpoint)c.singleEndpoint=this.singleEndpoint;
if(!this.mapping.ob||this.mapping.Sn)c.mapping=this.mapping.La(!0);if(a||this.withCredentials)c.withCredentials=this.withCredentials;return c};b.prototype.Tv=function(){return new d.zz({url:this.url,singleEndpoint:this.singleEndpoint,requestHeaders:this.requestHeaders,withCredentials:this.withCredentials})};b.prototype.clone=function(){var a=new b;a.Ba=this.Ba;f.v(this.url)||(a.url=this.url);f.v(this.index)||(a.index=this.index);f.v(this.singleEndpoint)||(a.singleEndpoint=this.singleEndpoint);if(!this.mapping.ob||
this.mapping.Sn)a.mapping=this.mapping.clone(this.Ba);this.withCredentials&&(a.withCredentials=this.withCredentials);return a};q.Object.defineProperties(b.prototype,{KG:{configurable:!0,enumerable:!0,get:function(){return!0}}});d.APIConnectionInfo=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){return k.I.Oq.call(this,c,void 0===e?"":e)||this}u(a,k.I.Oq);b.qKa=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){c=k.local.I.Yz.call(this,c,void 0===e?"":e)||this;c.ew=!1;return c}u(a,k.local.I.Yz);a.prototype.bC=function(){return new b.Dia(this)};a.prototype.nV=function(c,e){return this.ew?0<c.oZ.length?this.$Ia(c.oZ.slice()):this.aJa(c.children):k.local.I.Yz.prototype.nV.call(this,c,e)};a.prototype.$Ia=function(c){return this.oh===k.i.xa.bc?c:this.oh===k.i.xa.Ec?c.reverse():c};a.prototype.aJa=function(c){this.oh===k.i.xa.bc&&
f.Ha.sort(c,f.Ha.mi);this.oh===k.i.xa.Ec&&f.Ha.sort(c,f.Ha.ko|f.Ha.mi);return c};a.prototype.clone=function(){var c=k.local.I.Yz.prototype.clone.call(this);c.ew=this.ew;return c};q.Object.defineProperties(a.prototype,{D0:{configurable:!0,enumerable:!0,get:function(){return f.pg(this.Ly)||this.ew}},ce:{configurable:!0,enumerable:!0,get:function(){return this.JA},set:function(c){this.JA=c}}});b.CN=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e,g){return k.I.$m.call(this,c,void 0===e?"":e,void 0===g?0:g)||this}u(a,k.I.$m);b.Cia=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){c=k.I.ek.call(this,c,void 0===e?"":e)||this;c.aF=[];c.hv=void 0;return c}u(a,k.I.ek);a.prototype.dAa=function(c){if(void 0===this.hv){this.hv=!1;for(var e=0;e<c.length;e++)if(k.i.ca.YS(c[e])){this.hv=!0;break}}return this.hv};a.prototype.F0=function(){var c=new a("","");return this.qe!=c.qe||this.format!=c.format||0==this.Nm?!1:!0};a.prototype.clone=function(){var c=new a(this.uniqueName);this.xK(c);void 0!=this.aF&&
(c.aF=this.aF.slice());void 0!=this.hv&&(c.hv=this.hv);return c};q.Object.defineProperties(a.prototype,{ac:{configurable:!0,enumerable:!0,get:function(){return f.model.Nb.valid(this.qc)?this.qc:f.model.Nb.validate(this.qc)}},caption:{configurable:!0,enumerable:!0,get:function(){if(0==f.model.B.C.iz)return this.ac;switch(this.$){case k.i.ca.Up:return f.O.bind(f.model.A.j.WI,this.ac);case k.i.ca.sc:return f.O.bind(f.model.A.j.LN,this.ac);case k.i.ca.Bs:return f.O.bind(f.model.A.j.QO,this.ac);case k.i.ca.hj:return f.O.bind(f.model.A.j.SN,
this.ac);case k.i.ca.Hp:return f.O.bind(f.model.A.j.FN,this.ac);case k.i.ca.Mu:return f.O.bind(f.model.A.j.HW,this.ac);case k.i.ca.Su:return f.O.bind(f.model.A.j.ZO,this.ac);case k.i.ca.Tu:return f.O.bind(f.model.A.j.$O,this.ac);case k.i.ca.MAX:return f.O.bind(f.model.A.j.zO,this.ac);case k.i.ca.MIN:return f.O.bind(f.model.A.j.IO,this.ac);case k.i.ca.Wq:return f.O.bind(f.model.A.j.QI,this.ac);case k.i.ca.ro:return f.O.bind(f.model.A.j.JI,this.ac);case k.i.ca.Tp:return f.O.bind(f.model.A.j.OI,this.ac);
case k.i.ca.Rp:return f.O.bind(f.model.A.j.MI,this.ac);case k.i.ca.Sp:return f.O.bind(f.model.A.j.NI,this.ac);case k.i.ca.li:return f.O.bind(f.model.A.j.wI,this.ac);case k.i.ca.nm:return f.O.bind(f.model.A.j.RO,this.ac);case k.i.ca.ln:return f.O.bind(f.model.A.j.TO,this.ac);case k.i.ca.dn:return f.O.bind(f.model.A.j.bI,this.ac);case k.i.ca.im:return f.O.bind(f.model.A.j.cI,this.ac);case k.i.ca.jn:return f.O.bind(f.model.A.j.KI,this.ac);case k.i.ca.km:return f.O.bind(f.model.A.j.LI,this.ac);case k.i.ca.NONE:return this.ac}return-1<
k.i.ca.NN.indexOf(this.$)?this.ac+" ("+this.$+")":f.O.bind(f.model.A.j.WI,this.ac)},set:function(c){this.qc=c}},Ir:{configurable:!0,enumerable:!0,set:function(c){this.fv=c},get:function(){return-1<k.i.ca.NN.indexOf(this.Cj)?this.ac+" ("+this.Cj+")":k.I.ek.prototype.Ir}},Yl:{configurable:!0,enumerable:!0,get:function(){return this.qc},set:function(){}},bm:{configurable:!0,enumerable:!0,get:function(){return this.aF},set:function(c){this.aF=[];if(!f.v(c))for(var e=0;e<c.length;e++)if("string"==typeof c[e]){var g=
c[e].trim().toLowerCase();k.i.ca.Vx(g)&&(g=k.i.ca.ky(g));k.i.ca.rz(g)&&this.aF.push(g)}}},Tc:{configurable:!0,enumerable:!0,set:function(c){if(f.v(c))this.qm=this.bm,this.type==k.i.Ja.fb&&0<this.qm.length&&(this.qm=this.qm.concat(k.i.ca.yz));else{for(var e=[],g=0;g<c.length;g++){var l=c[g].trim().toLowerCase();k.i.ca.Vx(l)&&(l=k.i.ca.ky(l));(-1!==this.bm.indexOf(l)||this.type==k.i.Ja.fb&&-1!==k.i.ca.yz.indexOf(l))&&e.push(l)}this.qm=0<e.length?e:this.bm}this.hv=void 0;this.dAa(this.qm)||(this.qm=
[])},get:function(){return!1===this.hv||0<this.qm.length?this.qm:this.bm}}});b.b5=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.Pq.apply(this,arguments)||this;c.oZ=[];return c}u(a,k.I.Pq);q.Object.defineProperties(a.prototype,{Bi:{configurable:!0,enumerable:!0,get:function(){return this.level.cw?!0:!(this.Pg||this.yf)&&0===this.children.length}}});b.Dia=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.local.I.fE.call(this)||this;c.cG=new b.ho;return c}u(a,k.local.I.fE);a.prototype.Mn=function(c,e){return new b.CN(c,e)};a.prototype.Cca=function(c,e){return new b.b5(c,e)};a.prototype.el=function(c,e,g){return new b.Cia(c,e,g)};a.prototype.nw=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;var l=e?e:new b.b5(c.uniqueName);return k.local.I.fE.prototype.nw.call(this,c,l,f.v(e)||g)};b.OH=a})(d.I||(d.I={}))})(h.kc||
(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=k.I.OD.apply(this,arguments)||this;c.D8=!1;return c}u(a,k.I.OD);a.prototype.m$=function(c,e){f.v(this.zA)&&(this.zA=new f.nb);this.zA.Pa(c,e)};a.prototype.Nca=function(c,e){var g=void 0;if(!f.v(this.zA)){var l=k.i.Gc.wD(c.type);this.zA.Bb(l)?g=this.nR(this.zA.getItem(l),e):this.zA.Bb(k.i.input.pa.NH)&&(g=this.nR(this.zA.getItem(k.i.input.pa.NH),e))}return!f.v(this.ox)&&this.ox.Bb(c.uniqueName)?(c=this.nR(this.ox.getItem(c.uniqueName),
e),void 0!==g&&c.merge(g),c):g?g:this.VY?this.mG(e):null};q.Object.defineProperties(a.prototype,{VY:{configurable:!0,enumerable:!0,get:function(){return this.D8},set:function(c){this.D8=c}}});a.FG=!1;b.ho=a})(d.I||(d.I={}))})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.rows={};this.columns={};this.values={};this.filters={};this.slice=a}d.APIFieldObject=function(){this.interval=this.uniqueName=void 0};d.APIValueObject=function(){this.func=void 0;this.field=null};b.prototype.select=function(){var a=this.vB(k.i.ia.Ia),c=this.vB(k.i.ia.Sa),e=this.hR(),g=this.Lo(),l={aggs:{}};!g||Array.isArray(g)&&0===g.length||(l.filter=g);if(0<a.length||0<c.length)l.aggs={by:{}},0<a.length&&(l.aggs.by.rows=a),0<
c.length&&(l.aggs.by.cols=c);l.aggs.values=e;return l};b.prototype.bIa=function(){var a=this.vB(k.i.ia.Ia),c=this.hR(),e=this.Lo(),g={aggs:{}};!e||Array.isArray(e)&&0===e.length||(g.filter=e);g.fields=a;g.aggs.values=c;return g};b.prototype.tf=function(a){var c=this.vB(k.i.ia.Ia),e=this.vB(k.i.ia.Sa),g=this.hR(),l=this.Lo();a={type:k.i.Kd.Fu,axisName:a,aggs:{}};!l||Array.isArray(l)&&0===l.length||(a.filter=l);if(0<c.length||0<e.length)a.aggs={by:{}},0<c.length&&(a.aggs.by.rows=c),0<e.length&&(a.aggs.by.cols=
e);0<g.length&&(a.aggs.values=g);return a};b.prototype.expand=function(a){var c=this.vB(k.i.ia.Ia),e=this.vB(k.i.ia.Sa),g=this.hR(),l=this.Lo();a={type:k.i.Kd.Oz,axisName:a,aggs:{}};!l||Array.isArray(l)&&0===l.length||(a.filter=l);if(0<c.length||0<e.length)a.aggs={by:{}},0<c.length&&(a.aggs.by.rows=c),0<e.length&&(a.aggs.by.cols=e);0<g.length&&(a.aggs.values=g);return a};b.prototype.drillThrough=function(a,c,e){return void 0===e||e?this.uwa(a):this.o_(a,c)};b.prototype.uwa=function(a){a=this.Yta(a);
var c=this.Lo(),e={};e.limit=f.model.B.C.KK;!c||Array.isArray(c)&&0===c.length||(e.filter=c);e.fields=a;return e};b.prototype.o_=function(a,c){for(var e=[],g=this.slice.rc(!1,!0,!0,!0).Ic(),l=[],m={xu:0};m.xu<a.length;m={xu:m.xu},m.xu++){var n={uniqueName:a[m.xu]},p=g.find(function(r){return function(v){return v.uniqueName===a[r.xu]}}(m));if(p){var t=p.ra.ea(1);this.SJ(t,p.interval,n)}e.push(n);void 0!==c[a[m.xu]]&&(n={},n.field={uniqueName:a[m.xu]},p=c[a[m.xu]],k.i.eb.oT(t.type)&&!isNaN(p)&&null!==
p?p=+p:t.type===k.i.eb.Sc&&(p=""+p),n.include=[{member:p}],l.push(n))}f.v(this.filters)||l.push.apply(l,ka(this.Zta()));c={};c.limit=f.model.B.C.KK;0<l.length&&(c.filter=l);c.fields=e;return c};b.prototype.Yta=function(a){for(var c=[],e=this.slice.Wc.rc(!1).Ic(),g=0;g<a.length;g++){var l={uniqueName:a[g]},m=e.find(function(n){return n.uniqueName===a[g]});m&&this.SJ(m.ra.ea(1),m.interval,l);c.push(l)}return c};b.prototype.vB=function(a){var c=[],e=this.slice.rc(!1,!0,!0,!0).Ic();a=a===k.i.ia.Ia?this.rows:
this.columns;for(var g=0;g<e.length;g++){var l=e[g].uniqueName;if(void 0!==a[l])if(0===a[l].length)l={uniqueName:l},this.SJ(e[g].ra.ea(1),e[g].interval,l),c.push(l);else for(var m=0;m<e[g].ra.length;m++){var n=e[g].ra.ea(m).uniqueName;-1!==a[l].indexOf(n)&&c.push({uniqueName:n})}}return c};b.prototype.SJ=function(a,c,e){if(a.type===k.i.eb.Oa||a.type===k.i.eb.Dc)e.interval=c};b.prototype.hR=function(){var a=[],c;for(c in this.values)for(var e=0;e<this.values[c].length;e++)a.push({func:this.values[c][e],
field:{uniqueName:c}});return a};b.prototype.rK=function(a){var c=a.uniqueName,e=a.qg?a.ra.ea(1).uniqueName:c,g={};g.field={uniqueName:e};if(void 0!==this.filters[c].query)if(d.I.ho.FG)Array.isArray(this.filters[c].query)?g={type:"or",value:this.filters[c].query}:g.query=this.filters[c].query;else if(a.qg){var l=Object.keys(this.filters[c].query)[0];k.i.kb.pda(a.ra.ea(1).type,l)&&(g.query=this.filters[c].query)}else g.query=this.filters[c].query;void 0!==this.filters[c].value&&(g.value=this.filters[c].value);
if(void 0!==this.filters[c].include)for(g.include=[],l=0;l<this.filters[c].include.length;l++)g.include.push(this.filters[c].include[l]);if(void 0!==this.filters[c].exclude)for(g.exclude=[],l=0;l<this.filters[c].exclude.length;l++)g.exclude.push(this.filters[c].exclude[l]);if(void 0!==this.filters[c].intersect)if(d.I.ho.FG)void 0!==g.include?g={type:"and",value:[{field:{uniqueName:e},include:this.filters[c].intersect},{field:{uniqueName:e},include:this.filters[c].include}]}:void 0!==g.query||void 0!==
g.exclude||void 0===g.field?g={type:"and",value:[{field:{uniqueName:e},include:this.filters[c].intersect},g]}:g.include=this.filters[c].intersect;else{e={};e.field={uniqueName:a.qg?a.ra.ea(1).uniqueName:c};e.include=[this.filters[c].intersect[0]];if(void 0!==g.include||void 0!==g.exclude||void 0!==g.query)e.include[0].filter=g;g=e}return g};b.prototype.Zta=function(){for(var a=[],c=this.slice.rc(!1,!0,!0).Ic(),e=0;e<c.length;e++)if(void 0!==this.filters[c[e].uniqueName]){var g={};if(this.filters[c[e].uniqueName].intersect)g.include=
this.filters[c[e].uniqueName].intersect;else if(this.filters[c[e].uniqueName]){var l=Object.keys(this.filters[c[e].uniqueName]),m=l[0];g[m]=this.filters[c[e].uniqueName][m];l[1]&&(m=l[1],g[m]=this.filters[c[e].uniqueName][m])}else continue;g.field={uniqueName:c[e].qg?c[e].ra.ea(1).uniqueName:c[e].uniqueName};a.push(g)}return a};b.prototype.Lo=function(){for(var a=[],c=this.slice.rc(!1,!0,!0).Ic(),e=0;e<c.length;e++){var g=c[e];this.HY(g);void 0!==this.filters[g.uniqueName]&&a.push(this.rK(g))}if(!d.I.ho.FG)return a;
if(0<a.length)return{type:"and",value:a}};b.prototype.nk=function(a,c){this.vx(this.rows,a,c)};b.prototype.Il=function(a,c){this.vx(this.columns,a,c)};b.prototype.vx=function(a,c,e){var g=c.uniqueName;void 0===a[g]&&(a[g]=[]);if(void 0===e&&c.qg){if(null!=c.nc||this.slice.drillAll){for(e=1;e<c.ra.length;e++){var l=c.ra.ea(e);-1===a[g].indexOf(l.uniqueName)&&a[g].push(l.uniqueName);if(l==c.nc&&!this.slice.drillAll)break}return}e=c.ra.ea(1)}void 0!==e&&(c=e.uniqueName,-1===a[g].indexOf(c)&&a[g].push(c))};
b.prototype.j$=function(a){var c=this;a.forEach(function(e){c.nk(e)})};b.prototype.W9=function(a){var c=this;a.forEach(function(e){c.Il(e)})};b.prototype.VJ=function(a){if(""!==a.Ll){var c=a.uniqueName,e=a.Ll;void 0===this.values[c]&&(this.values[c]=[]);a.Ka||-1!==this.values[c].indexOf(e)||this.values[c].push(e)}};b.prototype.ura=function(a,c){void 0===this.filters[a.uniqueName]&&(this.filters[a.uniqueName]={});a.filter.uy&&(c=c.kR(a.getTimezoneOffset()));c=this.Yfa(c);if(a.qg&&d.I.ho.FG){for(var e=
[],g=1;g<a.ra.length;g++){var l=Object.keys(c)[0],m=a.ra.ea(g);k.i.kb.pda(m.type,l)&&e.push({field:{uniqueName:m.uniqueName},query:c})}this.filters[a.uniqueName].query=e}else this.filters[a.uniqueName].query=c};b.prototype.vra=function(a,c,e){a=a.uniqueName;void 0===this.filters[a]&&(this.filters[a]={});this.filters[a].query=this.Yfa(c);this.filters[a].value={field:{uniqueName:e.uniqueName},func:e.$}};b.prototype.Yfa=function(a){var c=a.value;c instanceof f.Gg&&(c=c.getTime());Array.isArray(c)&&c[0]instanceof
f.Gg&&(c=[c[0].getTime(),c[1].getTime()]);var e={};return e[a.ta]=c,e};b.prototype.nr=function(a,c,e,g){var l=a.uniqueName;d.I.ho.GL||"intersect"!==e||(e="include");void 0===this.filters[l]&&(this.filters[l]={});void 0===this.filters[l][e]&&(this.filters[l][e]=[]);for(var m,n,p;!c.Wb&&void 0!==c.parent;){var t=c.level.uniqueName;n=c.uniqueName;f.model.B.C.zr&&("null"===n&&(n=null),"undefined"===n&&(n=void 0),"(blank)"===n&&(n=""));f.ha(n)||(n=k.i.eb.oT(c.level.type)&&!isNaN(c.ec)?c.ec:1<c.level.sb?
c.uniqueName.substr(1,c.uniqueName.length-2).split("].[").pop():c.uniqueName);p={};c.parent.Wb?(p.member=n,void 0!==m&&(p.filter=m)):(g?this.nk(a,c.level):this.Il(a,c.level),p.field={uniqueName:t},p.include=[{member:n}],void 0!==m&&(p.include[0].filter=m));m=p;c=c.parent}this.filters[l][e].push(m)};b.prototype.HY=function(a,c,e){c=void 0===c?!1:c;var g=a.filter.clone();if(g.$h&&!c){var l=g.pj().length<a.vi/2;c=l?g.pj():g.pj(!0);for(var m=0;m<c.length;m++){var n=a.va(c[m]);this.nr(a,n,l?"include":
"exclude",e)}}!f.v(g.query)&&g.wy&&(!f.v(g.measure)&&g.ai?(e=this.slice.Wc.$c(g.measure.uniqueName))&&!0!==e.Ka&&(k.i.ca.YS(g.measure.$)||(g.measure.$=e.Ll),this.vra(a,g.query,g.measure)):this.ura(a,g.query))};b.prototype.clone=function(){var a=new b(this.slice);a.rows=x.Mc.Vi(this.rows);a.columns=x.Mc.Vi(this.columns);a.values=x.Mc.Vi(this.values);a.filters=x.Mc.Vi(this.filters);return a};b.AW=["type","axisName"];d.yu=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.slice=a}b.prototype.select=function(){return f.model.B.C.oc&&f.model.B.C.he!==f.K.xd.Ki?this.bua():this.nua()};b.prototype.bua=function(){for(var a=new d.yu(this.slice),c=this.slice.rc(!1,!0,!0,!0),e=0;e<c.length;e++){var g=this.slice.Ee(c.ea(e).uniqueName);this.Jda(g)&&a.VJ(g);g=c.ea(e);if(g.qg)for(var l=1;l<g.ra.length;l++)a.nk(g,g.ra.ea(l));else a.nk(g)}for(e=0;e<this.slice.Of.length;e++)c=this.slice.Of[e],this.Jda(c)&&a.VJ(c);
return a.bIa()};b.prototype.Jda=function(a){return a.type!==k.i.Ja.sc&&a.type!==k.i.Ja.Oa};b.prototype.nua=function(){var a=new d.yu(this.slice),c=this.slice.vb.Ic(),e=this.slice.Cb.Ic();this.slice.expandAll?(0<c.length&&a.j$(c),0<e.length&&a.W9(e)):(0<c.length&&a.nk(c[0]),0<e.length&&a.Il(e[0]));for(c=0;c<this.slice.Of.length;c++)e=this.slice.Of[c],e.Ka||a.VJ(e);return a.select()};b.prototype.Y9=function(a,c){c(a);if(2<a.ra.length){var e=1,g=a.ra.ea(e);for(g=a.JB(g);g&&0<g.length;)g=a.ra.ea(++e),
c(a,g),g=a.JB(g)}};b.prototype.expand=function(a,c){var e=new d.yu(this.slice),g=a==k.i.ia.Ia,l=this.slice.vb.Ic(),m=this.slice.Cb.Ic();if(g){0<m.length&&this.Y9(m[0],function(p,t){return e.Il(p,t)});for(m=0;m<c.length;m++)for(var n=l[m].va(c[m]);!n.Wb;)e.nk(n.hierarchy,n.level),e.nr(l[m],n,"intersect",!0),n=n.parent;n=l[c.length];if(null==n.nc)e.nk(n,n.ra.ea(1));else for(c=1;c<n.ra.length&&(l=n.ra.ea(c),e.nk(n,l),l!=n.nc);c++);}else{0<l.length&&this.Y9(l[0],function(p,t){return e.nk(p,t)});for(l=
0;l<c.length;l++)for(n=m[l].va(c[l]);!n.Wb;)e.Il(n.hierarchy,n.level),e.nr(m[l],n,"intersect",!1),n=n.parent;n=m[c.length];if(null==n.nc)e.Il(n,n.ra.ea(1));else for(c=1;c<n.ra.length&&(l=n.ra.ea(c),e.Il(n,l),l!=n.nc);c++);}for(c=0;c<this.slice.Of.length;c++)n=this.slice.Of[c],n.Ka||e.VJ(n);g=this.S9(e,g?k.i.ia.Sa:k.i.ia.Ia);g.unshift(e.expand(a));return g};b.prototype.tf=function(a,c,e){var g=new d.yu(this.slice),l=a==k.i.ia.Ia,m=this.slice.vb.Ic(),n=this.slice.Cb.Ic();if(l)for(g.j$(m.slice(0,c.length)),
0<n.length&&g.Il(n[0]),n=0;n<c.length-1;n++)g.nr(m[n],m[n].va(c[n]),"intersect",!0);else for(g.W9(n.slice(0,c.length)),0<m.length&&g.nk(m[0]),m=0;m<c.length-1;m++)g.nr(n[m],n[m].va(c[m]),"intersect",!1);c=e;m=c.hierarchy.ra.ea(c.level.sb+1);if(l)for(g.nk(c.hierarchy,m);!c.Wb;)g.nk(c.hierarchy,c.level),c=c.parent;else for(g.Il(c.hierarchy,m);!c.Wb;)g.Il(c.hierarchy,c.level),c=c.parent;g.nr(e.hierarchy,e,"intersect",l);for(e=0;e<this.slice.Of.length;e++)c=this.slice.Of[e],c.Ka||g.VJ(c);e=this.S9(g,
l?k.i.ia.Sa:k.i.ia.Ia);l=this.dra(g,l?k.i.ia.Sa:k.i.ia.Ia);e.concat(l);e.unshift(g.tf(a));return e};b.prototype.S9=function(a,c){for(var e=[],g=c===k.i.ia.Ia,l=this.slice.vb.Ic(),m=this.slice.Cb.Ic(),n=g?this.slice.ic.zd:this.slice.Sb.zd,p=0;p<n.length;p++){var t=n[p],r=a.clone();if(g){for(var v=0;v<t.length-1;v++)r.nk(l[v]),r.nr(l[v],l[v].va(t[v+1]),"intersect",!0);r.nk(l[t.length-1])}else{for(v=0;v<t.length-1;v++)r.Il(m[v]),r.nr(m[v],m[v].va(t[v+1]),"intersect",!1);r.Il(m[t.length-1])}e.push(r.expand(c))}return e};
b.prototype.dra=function(a,c){for(var e=[],g=c===k.i.ia.Ia,l=this.slice.vb.Ic(),m=this.slice.Cb.Ic(),n=g?this.slice.ic.uf:this.slice.Sb.uf,p=0;p<n.length;p++){var t=n[p].slice(),r=a.clone(),v=t.pop();t.shift();if(g){for(var z=0;z<t.length;z++)r.nk(l[z]),r.nr(l[z],l[z].va(t[z+1]),"intersect",!0);t=l[t.length-1];r.nk(t)}else{for(z=0;z<t.length;z++)r.Il(m[z]),r.nr(m[z],m[z].va(t[z+1]),"intersect",!1);t=m[t.length-1];r.Il(t)}v=z=t.va(v);z=t.ra.ea(z.level.sb+1);if(g)for(a.nk(t,z);!v.Wb;)a.nk(t,v.level),
v=v.parent;else for(a.Il(t,z);!v.Wb;)a.Il(t,v.level),v=v.parent;e.push(r.tf(c))}return e};b.prototype.drillThrough=function(a,c,e,g){g=void 0===g?null:g;return this.yAa?this.twa(a,c,g):this.o_(a,c,g)};b.prototype.twa=function(a,c,e){e=void 0===e?null:e;var g=new d.yu(this.slice),l=this.slice.pages.Ic(),m=this.slice.vb.Ic(),n=this.slice.Cb.Ic(),p=this.slice.Of;this.n_(l,[],g,e,!1);this.n_(m,a,g,e,!0);this.n_(n,c,g,e,!1);for(a=0;a<p.length;a++)-1===e.indexOf(p[a].uniqueName)&&e.push(p[a].uniqueName);
return g.drillThrough(e,!0)};b.prototype.n_=function(a,c,e,g,l){for(var m,n=0;n<a.length;n++)if(e.HY(a[n],!f.v(c[n]),l),c[n]&&(m=a[n].va(c[n]))&&e.nr(a[n],m,"intersect",l),a[n].qg){m=g.indexOf(a[n].uniqueName);-1!==m&&g.splice(m,1);for(var p=1;p<a[n].ra.length;p++){var t=a[n].ra.ea(p);-1===g.indexOf(t.uniqueName)&&(-1===m?g.push(t.uniqueName):g.splice(m++,0,t.uniqueName))}}else-1===g.indexOf(a[n].uniqueName)&&g.push(a[n].uniqueName)};b.prototype.o_=function(a,c,e){e=void 0===e?null:e;var g=new d.yu(this.slice),
l=this.slice.pages.Ic(),m=this.slice.vb.Ic(),n=this.slice.Cb.Ic(),p=this.slice.Of,t={};this.p_(l,[],t,g,e);this.p_(m,a,t,g,e);this.p_(n,c,t,g,e);for(a=0;a<p.length;a++)-1===e.indexOf(p[a].uniqueName)&&e.push(p[a].uniqueName);return g.drillThrough(e,t,!1)};b.prototype.p_=function(a,c,e,g,l){for(var m,n,p=0;p<a.length;p++)n=a[p].uniqueName,g.HY(a[p],!f.v(c[p])),c[p]&&(m=a[p].va(c[p]))&&(e[n]=k.i.eb.oT(m.level.type)?m.ec:m.uniqueName),-1===l.indexOf(n)&&l.push(n)};q.Object.defineProperties(b.prototype,
{yAa:{configurable:!0,enumerable:!0,get:function(){return h.kc.I.ho.GL}}});d.Eia=b;d.em=function(a){var c=this;this.page=0;this.tw=null;this.cK=function(e){null!=c.tw?e.pageToken=c.tw:e.page=c.page};f.v(a.tw)||(this.tw=a.tw);f.v(a.page)||(this.page=a.page)}})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return D.Qi.apply(this,arguments)||this}function a(c){this.QG=[];this.withCredentials=this.closed=!1;"string"===typeof c.url?this.url=c.url:f.pg(c.url)&&(this.gia=function(e,g,l){return c.url(e,g,l)});this.singleEndpoint=c.singleEndpoint;this.requestHeaders=c.requestHeaders;this.withCredentials=c.withCredentials}a.prototype.vh=function(c){this.requestHeaders=c;c=ja(this.QG);for(var e=c.next();!e.done;e=c.next())e.value.vh(this.requestHeaders)};
a.prototype.uw=function(c,e,g,l){var m=this;l=void 0===l?null:l;if(f.v(this.url))f.v(this.gia)?f.pe(function(){g(f.model.A.j.ana,null)},1):f.pe(function(){e=m.yaa(e);m.gia(JSON.stringify(e),function(p){if(!m.closed)if("object"==typeof p)g(null,p);else if("string"==typeof p)try{var t=JSON.parse(p);g(null,t)}catch(r){g(r,null)}},function(p){if(!m.closed)if("object"==typeof p)g(p.message||p,null);else if("string"==typeof p)try{var t=JSON.parse(p);g(t.message||t,null)}catch(r){g(r,null)}})},1);else{var n=
this.hva();n.Ne=g;n.nN=l;e=this.yaa(e,n);n.data=JSON.stringify(e);n.load(this.singleEndpoint?this.url:this.url+"/"+c)}};a.prototype.hva=function(){var c=D.Fs.Pu,e=this,g=new b;g.contentType=D.Iz.c5;g.Dq=c;g.withCredentials=this.withCredentials;g.vh(this.requestHeaders);g.N(y.da.Jc,function(){return e.yq(g)});g.N(y.da.ya,function(l){return e.Mb(l,g)});this.QG.push(g);return g};a.prototype.yaa=function(c,e){if(!f.v(a.BK)){var g=JSON.parse(JSON.stringify(c));g.requestHeaders=f.v(this.requestHeaders)?
{}:this.requestHeaders;g=a.BK(g);f.v(g)||(f.v(g.requestHeaders)||(f.v(e)||e.vh(g.requestHeaders),delete g.requestHeaders),c=g)}return c};a.prototype.vZ=function(c){c.close();this.QG.splice(this.QG.indexOf(c),1)};a.prototype.yq=function(c){if("object"==typeof c.response)c.Ne(null,c.response);else if("string"==typeof c.response)try{var e=JSON.parse(c.response);c.Ne(null,e)}catch(g){c.Ne(g,null)}this.vZ(c)};a.prototype.Mb=function(c,e){e.Ne(this.parseError(c.data,e),null);this.vZ(e)};a.prototype.parseError=
function(c,e){var g=f.v(c)?"":c;if("object"==typeof e.response)g+=e.response.message||e.response;else if("string"==typeof e.response)try{var l=JSON.parse(e.response);g+=l.message||l}catch(m){g=f.v(c)?m:c}return g};a.prototype.close=function(){for(this.closed=!0;0<this.QG.length;)this.vZ(this.QG[0])};a.BK=null;d.zz=a;u(b,D.Qi);b.prototype.lu=function(c){var e=this;if(null!=this.xhr&&4===this.xhr.readyState){if(200===this.xhr.status)return this.vH();if(401===this.xhr.status&&f.pg(this.nN))return this.nN(function(g){g?
e.retry():e.Mb(c)});this.Mb(c)}null!=this.xhr&&3>this.xhr.readyState&&!this.connected&&(this.connected=!0,this.Da(new y.da(y.da.Fz)))};b.prototype.Mb=function(){var c;0===this.xhr.status?c=f.O.bind(f.model.A.j.$ma,this.url):404===this.xhr.status?c=f.O.bind(f.model.A.j.Vma,this.url):400===this.xhr.status?c=f.O.bind(f.model.A.j.Uma,this.url):500===this.xhr.status&&(c=f.O.bind(f.model.A.j.Wma,this.url));this.response=this.xhr.response||this.xhr.responseText||this.xhr.statusText;this.Da(new y.da(y.da.ya,
this,c))}})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}b.prototype.ol=function(a){var c=this;if(f.model.Qa.U().G0(f.model.Qa.aJ)){var e=new f.model.Xc(f.model.Qa.aJ,function(g){if(!f.v(g)&&!f.v(g.requestHeaders)){var l=c.connectionInfo.requestHeaders||{},m;for(m in g.requestHeaders)g.requestHeaders.hasOwnProperty(m)&&(l[m]=g.requestHeaders[m]);c.connectionInfo.requestHeaders=l;c.client.vh(l)}a(!0)});f.model.Qa.U().Da(e)}else a(!1)};d.BN=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||
(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.BN.call(this)||this;c.wa=k.Na.U();c.connectionInfo=a;c.client=c.connectionInfo.Tv();return c}u(b,d.BN);b.prototype.load=function(a,c,e,g){this.Ib=c;this.Xa=e;this.Be=g;this.Bha=!1;this.bAa()};b.prototype.bAa=function(){var a=this;this.client.uw("handshake",{type:"handshake",version:f.Ug.qs},function(c,e){c=!0;if(!f.v(e)){a.client.close();var g=e.version;c=a.ota(g);a.connectionInfo.Iga=g;a.client=a.connectionInfo.Tv()}if(c&&!a.Bha)a.L1();
else if(!f.v(g)&&a.zBa(g))return a.Mb(f.O.bind(f.model.A.j.Zma,a.connectionInfo.url,b.fX))},function(c){return a.ol(c)});f.za(!0,f.model.A.j.iE)};b.prototype.ota=function(a){return f.ha(a)?!0:-1!=f.O.fR(a,b.fX)};b.prototype.zBa=function(a){return-1==f.O.fR(a,b.fX)};b.prototype.L1=function(){var a=this;this.Bha=!0;this.client.uw("fields",{index:this.connectionInfo.index,type:"fields"},function(c,e){if(c)return a.Mb(c);a.Aq(e)},function(c){return a.ol(c)});f.za(!0,f.model.A.j.iE)};b.prototype.Aq=function(a){f.za(!1);
null!=this.Be&&this.Be();if(f.v(a)||f.v(a.fields))return this.Mb(f.O.bind(f.model.A.j.Yma,this.connectionInfo.url));a.sorted&&(this.wa.I.ew=!0);var c;f.v(a.aggregations)||(c=this.VFa(a.aggregations));f.v(a.filters)||this.jGa(a.filters);this.eH(a.fields,c);null!=this.Ib&&this.Ib()};b.prototype.VFa=function(a){var c={};if(Array.isArray(a))c[k.i.input.pa.NH]=a.map(function(n){return n.toString()});else for(var e=0;e<k.i.input.pa.aK.length;e++){var g=k.i.input.pa.aK[e];if(!f.v(a[g])&&Array.isArray(a[g])){f.v(c[g])&&
(c[g]=[]);for(var l=0;l<a[g].length;l++){var m=a[g][l].toLowerCase();c[g].push(m);-1===k.i.ca.xz.indexOf(m)&&m!==k.i.ca.NONE&&(k.i.ca.xz.push(m),k.i.ca.NN.push(m))}}}return c};b.prototype.zva=function(a){switch(a){case k.i.input.pa.Sc:var c=k.i.kb.gk;break;case k.i.input.pa.fb:c=k.i.kb.fb;break;case k.i.input.pa.Oa:c=k.i.kb.Oa}return c};b.prototype.jGa=function(a){if(!0===a||!1===a)this.wa.I.cG.VY=a;else{for(var c=0;c<k.i.input.pa.aK.length;c++){var e=k.i.input.pa.aK[c];if(!f.v(a[e])){var g=this.xfa(a[e],
this.zva(e));this.wa.I.cG.m$(e,g)}}d.I.ho.GL=!0===a.advanced;d.I.ho.GL&&(d.I.ho.FG=1==f.O.fR(this.connectionInfo.Iga,"2.8.21"))}};b.prototype.xfa=function(a,c){if(!0===a||!1===a)return a;var e=new k.I.Zoa;f.v(a.members)||(e.ed=!0===a.members);if(!f.v(a.query))if("boolean"===typeof a.query)e.query=a.query;else if(Array.isArray(a.query))for(var g=ja(a.query),l=g.next();!l.done;l=g.next())if(l=l.value,c==k.i.kb.gk&&k.i.wb.Cg(l)||c==k.i.kb.fb&&k.i.vg.Cg(l)||c==k.i.kb.Oa&&k.i.Ub.Cg(l)||f.v(c)&&k.i.wb.Cg(l)&&
k.i.vg.Cg(l)&&k.i.Ub.Cg(l))f.v(e.query)&&(e.query=[]),e.query.push(l);if(!f.v(a.valueQuery))if("boolean"===typeof a.valueQuery)e.xl=a.valueQuery;else if(Array.isArray(a.valueQuery))for(a=ja(a.valueQuery),l=a.next();!l.done;l=a.next())c=l.value,k.i.tc.Cg(c)&&(f.v(e.xl)&&(e.xl=[]),e.xl.push(c));return e};b.prototype.eH=function(a,c){for(var e=0;e<a.length;e++){var g=a[e],l=g.type;if(g.hasOwnProperty("uniqueName")&&!f.v(g.uniqueName)&&"string"===typeof g.uniqueName){var m=g.uniqueName,n=void 0;if(!f.v(g.aggregations)&&
Array.isArray(g.aggregations)){var p=g.aggregations;n=[];for(var t=0;t<p.length;t++){var r=p[t].toLowerCase();n.push(r);-1===k.i.ca.xz.indexOf(r)&&r!==k.i.ca.NONE&&(k.i.ca.xz.push(r),k.i.ca.NN.push(r))}}void 0!==n&&0<n.length?g.supportedAggregations=n:f.v(c)||(f.v(c[l])?f.v(c[k.i.input.pa.NH])||(g.supportedAggregations=c[k.i.input.pa.NH]):g.supportedAggregations=c[l]);g.type===k.i.input.pa.Oa&&(g.type=k.i.input.pa.gj);this.wa.I.ux(g,m);l=this.wa.I.VB(m);l instanceof d.I.CN&&!f.v(g.filters)&&(m=f.model.bb.Tz.tS(l),
g=this.xfa(g.filters,m),this.wa.I.cG.Ara(l.uniqueName,g))}}};b.prototype.Mb=function(a){console.error(a);f.za(!1);a=a.message||a;f.Va(a,f.model.A.j.ya,f.rb.ya);this.Xa&&f.pg(this.Xa)&&(this.Xa(a),this.Xa=null)};b.prototype.yk=function(a,c,e){var g=this,l=this.wa.fa.mapping.Fa(a.uniqueName,"filters");!1===l||!1===l.members?setTimeout(c,1,a):(this.Xa=e,f.za(!0,f.model.A.j.gn,a.caption),a.qg?null!==a.nc||this.wa.sa.drillAll?this.fM(a,function(m){return g.rj(m,c)}):this.Uj(a,a.yd,function(m){return g.rj(m,
c)}):this.K1(a,new d.em({page:0}),function(m){return g.rj(m,c)}))};b.prototype.K1=function(a,c,e){var g=this,l={};if(a.ra.ea(1).type===k.i.eb.Oa||a.ra.ea(1).type===k.i.eb.Dc)l.interval=a.interval;l.uniqueName=a.uniqueName;l={index:this.connectionInfo.index,type:"members",field:l};c.cK(l);this.client.uw("members",l,function(m,n){if(m)return g.Mb(m);if(!g.f3(a,n))return g.Mb(f.O.bind(f.model.A.j.n7,g.connectionInfo.url));f.v(n.nextPageToken)?!f.v(n.pageTotal)&&c.page+1<n.pageTotal?(f.za(!0,f.model.A.j.gn,
a.caption+" - "+Math.round((c.page+1)/n.pageTotal*100)+"%"),g.K1(a,new d.em({page:c.page+1}),e)):(a.ce=!0,e(a)):(f.za(!0,f.model.A.j.gn,a.caption),g.K1(a,new d.em({tw:n.nextPageToken}),e))},function(m){return g.ol(m)})};b.prototype.uK=function(a){for(var c;!a.Wb;){var e={};if(a.level.type===k.i.eb.Oa||a.level.type===k.i.eb.Dc)e.interval=a.level.hierarchy.interval;e.uniqueName=a.level.uniqueName;var g=a.uniqueName;k.i.eb.oT(a.level.type)&&!isNaN(a.ec)?g=a.ec:1<a.level.sb&&(g=a.uniqueName.substr(1,
a.uniqueName.length-2).split("].[").pop());var l=c;c={field:e,include:[{member:g}]};l&&(c.include[0].filter=l);a=a.parent}return c};b.prototype.wea=function(a,c,e,g){var l=this,m={};if(a.type===k.i.eb.Oa||a.type===k.i.eb.Dc)m.interval=a.hierarchy.interval;m.uniqueName=a.uniqueName;m={index:this.connectionInfo.index,type:"members",field:m};var n=this.uK(c);n&&(m.filter=d.I.ho.FG?{type:"and",value:[n]}:n);e.cK(m);this.client.uw("members",m,function(p,t){if(p)return l.Mb(p);if(!l.ZFa(c,t))return l.Mb(f.O.bind(f.model.A.j.n7,
l.connectionInfo.url));!f.v(t.pageTotal)&&e.page+1<t.pageTotal?(f.za(!0,f.model.A.j.gn,a.caption+" - "+(e.page+1)+"/"+t.pageTotal),l.wea(a,c,new d.em({page:e.page+1}),g)):(c.yf=!1,g(a.hierarchy))},function(p){return l.ol(p)})};b.prototype.rj=function(a,c){var e=this,g=a.vw;this.l4(g);if(0<a.filter.Zl.length)this.eM(a,a.filter.Zl,a.filter.zM,function(m){m.Iv();e.rj(m,c)});else if(0<g.length){var l=g.shift();0==g.length&&a.X$();a.vw=g;g=a.Db(l[1]);a.$x(g);this.Uj(a,g,function(m){return e.rj(m,c)})}else a.ce=
!0,c(a)};b.prototype.l4=function(a){a.sort(function(c,e){if(c.length!==e.length)return 0;var g=c.length-1;c=c[g];e=e[g];return f.v(e)||void 0===e.indexOf?1:f.v(c)||void 0===c.indexOf||-1!==e.indexOf(c)?-1:-1!==c.indexOf(e)?1:0})};b.prototype.ZFa=function(a,c){if(f.v(c)||f.v(c.members))return!1;if(0===c.members.length||1===c.members.length&&f.ha(c.members[0].value))return a.yf=!1,a.Pg=!1,!0;for(var e=c.members,g=0;g<e.length;g++){var l=this.fc(a.hierarchy,a,e[g]);c.sorted&&a.oZ.push(l.ordinal);l.yf=
!l.level.cw}c.sorted&&(a.hierarchy.ew=!0);return!0};b.prototype.f3=function(a,c){if(f.v(c)||f.v(c.members))return!1;for(var e=c.members,g=0;g<e.length;g++)this.fc(a,null,e[g]);c.sorted&&(a.ew=!0);return!0};b.prototype.fc=function(a,c,e){var g=String(e.value);var l=a.type===k.i.Gc.Eu&&void 0!==e.id?String(e.id):null===c||c.Wb?g:("["===c.uniqueName.substr(0,1)?c.uniqueName:"["+c.uniqueName+"]")+".["+g+"]";var m=a.Db(l);f.v(m)&&(g=new k.I.Rd({uniqueName:l,caption:g}),f.v(c)||(g.parent=c),g.value=e.value,
a.qg?(c=a.ra.ea(c.level.sb+1),e=c.uniqueName,g.level=c,c=this.wa.I.XB(e)):c=this.wa.I.XB(a.uniqueName),m=a.fc(g,c));a.TU(m);return m};b.prototype.Uj=function(a,c,e){null==c||!c.Wb&&!c.yf||c.Bi?e(a):this.wea(a.ra.ea(c.level.sb+1),c,new d.em({page:0}),function(){c.yf=!1;e(a)})};b.prototype.fM=function(a,c){this.J1(a,new d.em({page:0}),function(){c(a)})};b.prototype.J1=function(a,c,e){for(var g=this,l=[],m=1;m<a.ra.length;m++){var n=a.ra.ea(m);l.push({uniqueName:n.uniqueName});if(n==a.nc)break}n=[];
for(m=0;m<l.length;m++)n.push({field:l[m],func:"count"});l={type:"select",index:this.connectionInfo.index,query:{aggs:{by:{rows:l},values:n}}};c.cK(l);this.client.uw("select",l,function(p,t){p?(g.Mb(p),e(a)):g.qGa(t,a)?f.v(t.nextPageToken)?!f.v(t.pageTotal)&&c.page+1<t.pageTotal?g.J1(a,new d.em({page:c.page+1}),e):e(a):g.J1(a,new d.em({tw:t.nextPageToken}),e):(g.Mb(f.O.bind(f.model.A.j.o7,g.connectionInfo.url)),e(a))},function(p){return g.ol(p)})};b.prototype.qGa=function(a,c){if(f.v(a)||f.v(a.aggs))return!1;
a=a.aggs;for(var e,g,l,m,n,p,t=0;t<a.length;t++){e=a[t].keys;n=void 0;g=[];for(var r in e)m=e[r],g.push(m),l=1===g.length?m:"["+g.join("].[")+"]",p=c.Db(l),null==p&&(l=new k.I.Rd({uniqueName:l,caption:m,parent:n}),p=c.fc(l),p.yf=!p.level.cw),n=p}return!0};b.prototype.eM=function(a,c,e,g){this.Nba(a,c,0,g)};b.prototype.Nba=function(a,c,e,g){var l=this;e===c.length?g(a):this.Oba(a,"["===c[e].substr(0,1)?c[e].substr(1,c[e].length-2).split("].["):[c[e]],0,function(){return l.Nba(a,c,e+1,g)})};b.prototype.Oba=
function(a,c,e,g){var l=this;if(e===c.length)g(a);else{var m="";if(0<e){m=[];for(var n=0;n<=e;n++)m.push("["+c[n]+"]");m=m.join(".")}else m=c[0];a.type===k.i.Gc.Oa?(m=(new f.Gg(m)).getTime(),m=a.Ht(m)):m=a.Db(m);this.Uj(a,m,function(){return l.Oba(a,c,e+1,g)})}};b.prototype.Iy=function(){};b.prototype.vp=function(a,c,e,g){e&&(this.Ib=e);g&&(this.Xa=g);throw"Not Implemented";};b.prototype.kB=function(){return!1};b.prototype.cancel=function(){this.Be=this.Xa=this.Ib=this.connectionInfo=this.wa=null;
this.client&&(this.client.close(),this.client=null)};b.fX="2.8.5";d.Fia=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=d.BN.apply(this,arguments)||this;a.wa=k.Na.U();a.qa=a.wa.qa;return a}u(b,d.BN);b.prototype.load=function(a,c,e,g){this.connectionInfo=a;this.query=c;this.Ib=e;this.Xa=g;this.client=this.connectionInfo.Tv();this.kw()};b.prototype.kw=function(){var a=this;f.za(!0,f.model.A.j.Hf);this.o3=0;if(Array.isArray(this.query.body)){var c=new x.YI;this.query.body.forEach(function(e){c.add(function(g){return a.PT(e,a.query.type,new d.em({page:0}),
g)})});c.Wf(function(){null!=a.Ib&&a.Ib();f.za(!1)})}else this.PT(this.query.body,this.query.type,new d.em({page:0}),function(){null!=a.Ib&&a.Ib();f.za(!1)})};b.prototype.PT=function(a,c,e,g){var l=this,m=this.rta(a);a={type:"select",index:this.connectionInfo.index,query:m};f.model.B.C.oc||(a.querytype=c);e.cK(a);this.client.uw("select",a,function(n,p){if(n)return l.Mb(n,l.Xa),g();if(!l.wGa(p))return l.Mb(f.O.bind(f.model.A.j.o7,l.connectionInfo.url),l.Xa),g();f.v(p.nextPageToken)?!f.v(p.pageTotal)&&
e.page+1<p.pageTotal?(f.za(!0,f.model.A.j.Hf,Math.round((e.page+1)/p.pageTotal*100)+"%"),l.PT(m,c,new d.em({page:e.page+1}),g)):g():l.PT(m,c,new d.em({tw:p.nextPageToken}),g)},function(n){return l.ol(n)})};b.prototype.rta=function(a){a=x.Mc.Vi(a);for(var c=0;c<d.yu.AW.length;c++)a[d.yu.AW[c]]&&delete a[d.yu.AW[c]];return a};b.prototype.wGa=function(a){if(f.v(a))return!1;a.aggs&&(this.WFa(a.aggs,this.JG()),(f.v(a.nextPageToken)&&f.v(a.pageTotal)||1>=a.pageTotal-a.page)&&this.o3++);a.hits&&this.kGa(a.fields,
a.hits);return!0};b.prototype.JG=function(){return f.model.B.C.oc&&f.model.B.C.he!==f.K.xd.Ki};b.prototype.kGa=function(a,c){for(var e=this.m0(this.wa.sa.rc(!1,!0,!0,!0)),g=0;g<c.length;g++){for(var l=[],m=[],n,p=0;p<a.length;p++){n=a[p].uniqueName;var t=this.qa.Eh(n),r=c[g][p];n=e.getItem(n);var v=n.hierarchy;if(v.type===k.i.Gc.Oa){var z=v.Ht(r);z=f.v(z)?-1:z.ordinal}else v.type!==k.i.Gc.Eu?(z=v.Ht(parseFloat(r)),z=null!==z?z.ordinal:-1):z=v.qy(f.ha(r)?"":""+r);if(-1===z)if(v.qg){var B=n.wU;z=[];
for(var C=1;C<v.ra.length;C++){var E=v.ra.ea(C),K=a.findIndex(function(J){return J.uniqueName===E.uniqueName});z.push(c[g][K]);if(B===E.uniqueName)break}B="["+z.join("].[")+"]";C=B+".["+r+"]";1===z.length&&(B=z[0]);z=v.qy(C);-1===z&&(E=n.level,B=v.fc(new k.I.Rd({uniqueName:C,caption:r,value:r,level:E,ei:B}),k.i.eb.wD(E.type)),null!=B&&(z=B.ordinal))}else B=this.wa.I.XB(v.uniqueName),B=v.fc(new k.I.Rd({uniqueName:String(r),caption:String(r),value:r}),B),null!=B&&(z=B.ordinal);l[n.ec]=z;m[t]=v.type===
k.i.Gc.Op?"number"===typeof r?r:NaN:v.type===k.i.Gc.Oa?!f.model.B.C.zr||null!==r&&"null"!==r?"number"===typeof r?r:NaN:null:1}this.qa.wAa(l,m)}};b.prototype.m0=function(a){for(var c,e=new f.nb,g=0,l=0,m=0;m<a.length;m++){c=a.ea(m);if(c.qg){l++;for(var n=1;n<c.ra.length;n++)e.Pa(c.ra.ea(n).uniqueName,{hierarchy:c,ordinal:g,level:c.ra.ea(n),wU:c.ra.ea(n-1).uniqueName,nc:c.nc,ec:l++})}else n=this.wa.fa.mapping.Fa(c.uniqueName,"filters"),e.Pa(c.uniqueName,{hierarchy:c,ordinal:g,level:c.ra.ea(1),ec:l++,
$h:!1!==n&&!1!==n.members});g++}return e};b.prototype.Qsa=function(a){for(var c=0,e=0;e<this.query.We.length;e++){var g=a.ea(e).va(this.query.We[e]);c+=g.level.sb}return c};b.prototype.WFa=function(a,c){var e=this.m0(this.wa.sa.vb),g=this.m0(this.wa.sa.Cb),l=!1;if(Array.isArray(this.query.body)){var m=this.query.body[this.o3];0<this.o3&&(l=!0)}else m=this.query.body;var n=m.type,p=m.axisName;m=0;p!=this.query.ft||n!==k.i.Kd.Oz&&n!==k.i.Kd.Fu||(m=this.Qsa(p===k.i.ia.Ia?this.wa.sa.vb:this.wa.sa.Cb));
for(p=0;p<a.length;p++)if(c){var t=this.Bfa(a[p].values);this.qa.hz(t)}else{t=this.Bfa(a[p].values);var r=this.Afa(a[p].keys,e),v=this.Afa(a[p].keys,g);if(this.bea(r)&&this.bea(v)){if(n===k.i.Kd.Oz||n===k.i.Kd.Fu)if(f.v(a[p].keys)||Object.keys(a[p].keys).length<=m)continue;this.qa.insert(r,v,t,this.query.We,this.query.ft,!l)}}};b.prototype.bea=function(a){for(var c=0;c<a.length;c++)if(f.v(a[c]))return!1;return!0};b.prototype.Bfa=function(a){var c=[],e;for(e in a)if(a.hasOwnProperty(e))for(var g in a[e])if(a[e].hasOwnProperty(g)){var l=
this.qa.Eh(e,g,!0);c[l]=a[e][g]}return c};b.prototype.Afa=function(a,c){var e=[];if(f.v(a))return e;for(var g=c.length,l=0;l<g;l++){var m=c.qh(l);if(void 0!==a[m]){var n=a[m];"string"!==typeof n&&(n=""+n);var p=c.getItem(m),t=[];if(p.level){var r=p.wU;for(1<p.level.sb&&(n="["+n+"]");void 0!==a[r];)n="["+a[r]+"]."+n,r=c.getItem(r).wU}p.hierarchy.type===k.i.Gc.Eu||p.level.type!==k.i.eb.Oa&&p.level.type!==k.i.eb.Dc&&p.level.type!==k.i.eb.Yb&&p.level.type!==k.i.eb.Qk?r=p.hierarchy.qy(n):(r=p.hierarchy.Ht(a[m]),
r=f.v(r)?-1:r.ordinal);var v=c.getItem(p.hierarchy.ra.ea(1).uniqueName).ordinal;if(p.nc||this.wa.sa.drillAll){if(-1===r){var z=p.wU;n=[];for(var B=1;B<p.hierarchy.ra.length;B++){var C=p.hierarchy.ra.ea(B);n.push(a[C.uniqueName]);if(z===C.uniqueName)break}z="["+n.join("].[")+"]";B=z+".["+a[m]+"]";1===n.length&&(z=n[0]);m=p.hierarchy.fc(new k.I.Rd({uniqueName:B,caption:a[m],level:p.level,ei:z}));null!=m&&(r=m.ordinal)}t.push(p.level.sb);t.push(r);void 0===e[v]&&(e[v]=[p.nc?p.hierarchy.ra.length-p.nc.sb:
0]);e[v].push(t)}else p.level?(-1===r&&!1===p.$h&&(m=p.hierarchy.fc(new k.I.Rd({uniqueName:n,caption:a[m]})),null!=m&&(r=m.ordinal)),t.push(p.level.sb),t.push(r),e[v]=t):(-1===r&&!1===p.$h&&(p=p.hierarchy.fc(new k.I.Rd({uniqueName:n,caption:a[m]})),null!=p&&(r=p.ordinal)),t.push(1),t.push(r),e.push(t))}}return e};b.prototype.Mb=function(a,c){console.error(a);f.za(!1);f.Va(a.message||a,f.model.A.j.ya,f.rb.ya);f.pg(c)&&c()};b.prototype.drillThrough=function(a,c,e,g,l,m){f.za(!0,f.model.A.j.Hf);this.connectionInfo=
a;f.v(this.client)&&(this.client=this.connectionInfo.Tv());this.KB=[];this.G1(c,new d.em({page:0}),m)};b.prototype.G1=function(a,c,e){var g=this,l={type:"select",index:this.connectionInfo.index,query:a.body};c.cK(l);this.client.uw("select",l,function(m,n){if(m)return g.Mb(m,e);if(!g.gGa(n))return g.Mb(f.O.bind(f.model.A.j.Xma,g.connectionInfo.url),e);f.v(n.nextPageToken)?!f.v(n.pageTotal)&&c.page+1<n.pageTotal?g.G1(a,new d.em({page:c.page+1}),e):e(g.KB):g.G1(a,new d.em({tw:n.nextPageToken}),e)},function(m){return g.ol(m)})};
b.prototype.gGa=function(a){if(f.v(a))return!1;if(a.fields&&0==this.KB.length){var c=a.fields.map(function(e){return e.uniqueName});this.KB.push(c)}if(a.hits)for(c=0;c<a.hits.length;c++)this.KB.push(a.hits[c]);return!0};b.prototype.cancel=function(){this.Xa=this.query=this.Ib=this.connectionInfo=this.qa=this.wa=null;this.client&&(this.client.close(),this.client=null);this.KB&&(this.KB.length=0,this.KB=null)};d.Aia=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=h.Gu.apply(this,arguments)||this;a.L4=new f.nb;return a}u(b,h.Gu);b.prototype.vF=function(){this.L4.clear();h.Gu.prototype.vF.call(this)};b.prototype.Fa=function(a,c,e,g){g=(void 0===g?0:g)?0:this.OX(a,c);var l=this.Eh(e);if(f.v(this.values[g]))return k.i.ca.Tf(e.$)?0:NaN;if(e.Ka){this.NE=!1;a=this.qq([g],e.Sd,e.gl,0,a,c,e.Eo);if(!0===a||!1===a)a=!0===a?1:0;this.values[g][l]=a}return f.v(this.values[g][l])?k.i.ca.Tf(e.$)?0:NaN:
this.values[g][l]};b.prototype.xv=function(a,c,e,g){return this.qq([this.OX(a,c)],e,!1,g)};b.prototype.OX=function(a,c){return a+" "+c};b.prototype.hz=function(a){this.values[0]=a};b.prototype.CA=function(a,c){return null===a||0===a.length?NaN:this.values[a[0]]?this.values[a[0]][c]:NaN};b.prototype.e0=function(a,c){var e=this.slice.Zh(new f.model.bb.Ig(a,c));null!=e&&(c=k.i.ca.UL(e.$)?e.$:e.Ll);return this.Eh(a,c,!this.NE)};b.prototype.pS=function(a,c){var e=k.i.ca.hj;c=this.e0(c.uniqueName,e);return this.CA(a,
c,e)};b.prototype.Bm=function(a,c){h.Gu.prototype.Bm.call(this,a,c);this.Jl(a.uniqueName)};b.prototype.insert=function(a,c,e,g,l,m){for(var n=[],p=[],t=[],r=0;r<a.length;r++)if(Array.isArray(a[r][1])){p[r]=a[r][a[r].length-1][1];if(a[r].length>a[r][0]){var v=[];g&&(v=g.slice());v.concat(n.slice());0<v.length&&t.push(v)}for(v=1;v<a[r].length;v++)n[this.ra[this.uh[r]][a[r][v][0]]]=a[r][v][1]}else{if(-1===a[r][1])return;p[r]=a[r][1];n[this.ra[this.uh[r]][a[r][0]]]=p[r]}a=[];for(r=0;r<c.length;r++)if(Array.isArray(c[r][1]))for(a[r]=
c[r][c[r].length-1][1],v=[],g&&(v=g.slice()),v.concat(n.slice()),0<v.length&&t.push(v),v=1;v<c[r].length;v++)n[this.ra[this.Ti[r]][c[r][v][0]]]=c[r][v][1];else{if(-1===c[r][1])return;a[r]=c[r][1];n[this.ra[this.Ti[r]][c[r][0]]]=a[r]}p=this.OX(p,a);c=this.pb.length;void 0!==this.values[p]?(n=this.L4.getItem(n.join("-")),void 0!==n&&(c=n),m&&(this.values[p]=e)):(this.Wg.push(c),this.pb.push(n),this.L4.Pa(n.join("-"),this.pb.length-1),this.values[p]=e);0<g.length&&(0===this.vd.length&&(this.expand([],
k.i.ia.Ia,void 0),this.expand([],k.i.ia.Sa,void 0)),e=l===k.i.ia.Ia?this.cd(g,this.vd):this.cd(g,this.Md),void 0!=e&&-1===e[0][0].indexOf(c)&&e[0][0].push(c));if(0<t.length)for(e=0;e<t.length;e++){g=l===k.i.ia.Ia?this.cd(t[e],this.vd):this.cd(t[e],this.Md);if(void 0===g){g=[];m=void 0;for(n=0;n<t[e].length;n++)g.push(t[e][n]),m=l===k.i.ia.Ia?this.cd(g,this.vd):this.cd(g,this.Md),void 0!==m&&void 0!==m[0]&&void 0!==m[0][0]&&(p=t[e][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)}};b.prototype.wAa=function(a,c){var e;if(0===this.pb.length)for(e=0;e<a.length;e++)this.pb[e]=[];this.Wg=f.Ha.Hq(this.Wg,this.Iw);for(e=0;e<a.length;e++)this.pb[e]=f.Ha.Hq(this.pb[e],a[e]);0===this.values.length&&this.hz([]);this.values.push(c)};b.prototype.rS=function(a,c,e,g,l){if(void 0===this.cb[a])return NaN;if(g)return this.NE=!0,e.Ka?this.qq([this.cb[a]+1],e.Sd,e.gl,0,null,null,e.Eo):this.values[this.cb[a]+1][c];c=this.le.indexOf(this.Yg[c]);
void 0!==l&&(c=this.ra[c][l+1]);return void 0===this.pb[c]?NaN:this.pb[c][this.cb[a]]};b.prototype.filter=function(){};b.prototype.yA=function(a,c,e){if(null!==a){var g=a[0][0];if(0<g.length&&!isNaN(c)){for(var l=0;l<g.length;l++){var m=this.pb[g[l]][this.ra[c][1]];0!==m&&void 0!==m&&(void 0===a[m]?(a[m]=[[[g[l]],[],[],void 0,void 0,!1]],a[0][1].push(m)):a[0][5]||a[m][0][0].push(g[l]))}void 0===a[0][3]&&(a[0][3]=[]);void 0===e?a[0][3][this.bg.length]=!0:a[0][3][this.Eh(e)]=!0;a[0][5]=!0}}};b.prototype.JP=
function(a,c,e,g,l){if(void 0!==c&&void 0!==c[0]){var m=c[0][0];if(0<m.length&&!isNaN(g)){for(var n=0;n<m.length;n++){var p=this.pb[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.al[e][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===l?c[0][4][this.bg.length]=!0:c[0][4][this.Eh(l)]=!0}}};d.Z4=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(c){c=k.I.Aj.call(this,void 0===c?null:c)||this;c.HV();return c}function a(){}a.g8={date:"date string","year/month/day":"date string","year/quarter/month/day":"date string"};u(b,k.I.Aj);b.prototype.HV=function(){this.cra();this.bra()};b.prototype.bra=function(){for(var c in this.mapping)Array.isArray(this.mapping[c])&&(this.mapping[c]=this.mapping[c][0])};b.prototype.cra=function(){var c=this.mapping,e;for(e in c)c=this.Fa(e,"type"),null!=
c&&a.g8.hasOwnProperty(c)&&this.Nh(e,"type",a.g8[c])};d.DN=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){if(null!=b.instance)throw Error("Singleton");}b.U=function(){null==b.instance&&(b.instance=new b);return b.instance};b.dispose=function(){b.instance=null};b.prototype.UM=function(a,c){return Ca(new Ba(new wa(function(e){return e.return(new Promise(function(g,l){x.mn.load("lib/sha1.min.js",function(){var m=f.model.Ea.na.J(f.model.Ea.na.sHa);if(null!=m){var n=JSON.stringify(c.La());var p=new jsSHA("SHA-1","TEXT");p.setHMACKey(m,"TEXT");
p.update(n);n=p.getHMAC("B64")}a.vh({"x-flexmonster":n});a.uw("save",null!==c?c.La():{},function(t,r){if(f.v(r))t&&(f.Va(f.O.bind(f.model.A.j.s7,t),f.model.A.j.ya,f.rb.ya),a.close(),l(t));else{t=new URL(location.href);t.searchParams.set("flexmonsterreport",r);var v=t.href;f.Va(f.O.bind(f.model.A.j.jna,v),f.model.A.j.fm,f.rb.fm,[f.model.A.j.l5,f.model.A.j.Jk],[function(){var z=document.createElement("textarea");z.value=v;z.setAttribute("readonly","");z.style.position="fixed";z.style.left="-9999px";
document.body.appendChild(z);z.select();document.execCommand("copy");document.body.removeChild(z)},function(){}]);a.close();g(v)}})})}))})))};b.prototype.eCa=function(a,c,e){var g=new d.zz(a);g.uw("load",c,function(l,m){f.v(m)||e&&e(m);l&&(f.Va(f.O.bind(f.model.A.j.r7,l),f.model.A.j.ya,f.rb.ya),console.error("Can't load the shared file. The URL to the server hasn't been found. "+l),e&&e());g.close()})};d.Y4=b})(h.kc||(h.kc={}))})(k.external||(k.external={}))})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(d,b){var a=A.Vb.ye.call(this)||this;a.f1=!1;a.lT=!1;a.gda="theme/accessible/flexmonster.min.css";a.Zda=!1;a.ja=f.model.Ta.U();a.YF=null;a.width=0;a.height=0;a.w1=0;a.v1=0;a.kN=!1;a.X8=0;a.KF=[];a.Sea=0;a.$aa=!1;a.Gx=function(g){return a.hu(g)};a.Hx=function(g){return a.iu(g)};a.Ix=function(){return a.mM()};a.Ex=null;a.rba=function(){h.zb.mb(k.pi.fo,a.rba);a.Qb.Nj(a.YF.Dt,a.YF.lb,function(g){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];a.Qb.G=null;
a.ja.G=f.u.bf.ij.uc("chart");null!=a.YF.Fo&&a.YF.Fo.apply(null,l);a.YF=null})};a.Uga("fm-pivot-view");null!=a.Ue&&a.Ue.dispose();d.empty();a.Ue=d;h.zb=a;var c=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%";d=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 e=/\d+(?=px|%)/;c=c.match(e)?c:"100%";d=d.match(e)?
d:"500px";a.Ue.P("width",c);a.Ue.P("height",d);a.F.P("width",c);a.F.P("height",d);a.Ue.append(a.F);d=[];b.toolbar?(d=["toolbar/flexmonster.toolbar.js"],a.kN=!0):a.kN=!1;x.K5.eca()||(e=new A.Aa("div","fm-csscheck"),a.Ue.append(e),"flexmonster"!=window.getComputedStyle(e.element).getPropertyValue("font-family")&&'"flexmonster"'!=window.getComputedStyle(e.element).getPropertyValue("font-family")&&d.unshift("flexmonster.css"),e.remove());x.mn.load(d,function(){a.F.requestAnimationFrame(function(){x.Bd().Di||
x.K5.bta(f.Ug.qs)||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/).");a.toolbar=b.toolbar?new FlexmonsterToolbar(a.Ue.element,f.Ug.instance.kc,"html5",c,f.model.A.Xz.U().fca(),
f.model.Ea.pc.oj()):null;f.Ug.instance.kc.toolbar=a.toolbar;a.ada&&(f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.MV,a.toolbar)),a.toolbar.create());a.kN=!1;a.te();a.gb()})},function(){a.kN=!1});a.ja.Ga.N(f.model.cc.fd.Xw,function(){return a.G2()});a.ja.Ga.N(f.model.cc.fd.DW,function(){return a.TEa()});a.ja.Ga.N(f.model.cc.fd.dW,function(){return a.f2()});a.ja.Ga.N(f.model.cc.fd.cE,function(){return a.E2()});a.ja.Ga.N(f.model.cc.fd.hA,function(){});a.ja.Ga.N(f.model.cc.fd.hk,function(g){return a.BDa(g)});
a.ja.Ga.N(f.model.cc.fd.Oh,function(){return a.O2()});a.ja.Ga.N(f.model.cc.fd.pE,function(){return a.P2()});a.ja.Ga.N(f.model.cc.fd.eE,function(){return a.$G()});a.ja.N(f.eg.jW,function(g){return a.QDa(g)});a.ja.N(f.eg.UW,function(){return a.$Ea()});a.ja.N(k.Ka.yj.s5,function(g){return a.UEa(g)});a.ja.N(k.pi.F5,function(g){return a.VEa(g)});a.N(k.pi.fo,function(){return a.UCa()});f.Pj.addEventListener("fullscreenchange",function(){return a.dU()},!1);f.Pj.addEventListener("mozfullscreenchange",function(){return a.dU()},
!1);f.Pj.addEventListener("webkitfullscreenchange",function(){return a.dU()},!1);f.Pj.addEventListener("MSFullscreenChange",function(){return a.dU()},!1);a.Ue.N("fullscreenchange",function(g){return a.jU(g)},!1);a.Ue.N("mozfullscreenchange",function(g){return a.jU(g)},!1);a.Ue.N("webkitfullscreenchange",function(g){return a.jU(g)},!1);a.Ue.N("MSFullscreenChange",function(g){return a.jU(g)},!1);x.sO.U().N(x.KeyboardEvent.n8,function(){return a.HFa()});return a}u(h,A.Vb.ye);h.prototype.HFa=function(){this.Vga(!this.f1)};
h.prototype.Vga=function(d){this.f1=d;this.Ue.Ua("fm-keyboard-mode",this.f1)};h.prototype.op=function(){return this.KS()&&null!=this.Ml?h.wha-(this.Ml.qd()+this.Ml.F.borderWidth.top)-h.zb.xD:h.wha-h.zb.xD};h.prototype.Eq=function(d){this.Qb&&this.Qb.ka&&this.Qb.ka.Eq(d)};h.prototype.es=function(d){this.Qb&&this.Qb.ka&&this.Qb.ka.es(d)};h.prototype.gb=function(d){var b=this;d=void 0===d?!1:d;this.P$();if(this.$aa||this.Zda&&(f.model.Ea.pc.error||!f.ha(f.model.Ea.pc.Rx))){var a=this.F.requestAnimationFrame(function(){b.P$();
b.FX(d)});this.KF.push(a)}else 500>this.Sea++||(this.kN||f.ha(f.model.Ea.pc.Rx))&&5E3>this.Sea?this.QCa=f.pe(function(){b.gb(d)},10):this.Ue.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&&
(f.model.Ea.pc.pp||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/)")))};h.prototype.P$=function(){for(;0<this.KF.length;)this.F.cancelAnimationFrame(this.KF.pop());this.KF=[];f.Dr(this.QCa);f.Dr(this.fga)};h.prototype.$ha=function(){if(!this.Ue)return!1;
var d=x.jT(),b=this.Ue.cf(),a=this.Ue.qd();a-=this.xD;if(this.w1!==b||this.v1!==a)this.F.P("width",b+"px"),d?this.F.P("height","calc(100% - "+this.xD+"px)"):this.F.P("height",a+"px");return this.w1!==b||this.v1!==a};h.prototype.Z2=function(){this.toolbar&&null!=this.toolbar.applyToolbarLayoutClasses&&this.toolbar.applyToolbarLayoutClasses();this.gb(!0)};h.prototype.G2=function(){this.ja.Ga.hf==f.model.cc.so.INIT&&this.PF()};h.prototype.f2=function(){null!=this.Qb&&this.Qb.ot();this.gb()};h.prototype.E2=
function(){this.ja.Ga.hf!=f.model.cc.so.bJ&&this.ja.Ga.hf!=f.model.cc.so.Gz&&this.PF()};h.prototype.TEa=function(){this.PF()};h.prototype.hfa=function(){this.ja.Ga.fa.Hc&&(null!=this.Qb&&this.Qb.ot(),this.gb())};h.prototype.gfa=function(){this.ja.Ga.hf!=f.model.cc.so.bJ&&this.ja.Ga.hf!=f.model.cc.so.Gz&&this.PF()};h.prototype.Wea=function(){this.ja.Ga.hf!=f.model.cc.so.bJ&&this.ja.Ga.hf!=f.model.cc.so.Gz&&this.PF()};h.prototype.BDa=function(d){this.ja.Ga.hf==f.model.cc.so.INIT||this.ja.Ga.hf==f.model.cc.so.e7||
null==this.Qb||d.data!=f.u.i.Kd.to&&d.data!=f.u.i.Kd.bO||(this.Qb.ot(),this.gb())};h.prototype.$G=function(){null!=this.toolbar&&this.toolbar.updateLabels(f.model.A.Xz.U().fca());null!=this.Yh&&this.Yh.updateLabels()};h.prototype.Qv=function(d){d=this.ja.ga.sa.rc().getItem(d);null!=d&&this.Hda(d)&&(this.Qb.ot(),this.ja.G.Qv(d))};h.prototype.wQ=function(d,b){d=this.ja.ga.sa.Cd(d);for(var a=[],c=0,e=0;e<b.length;e++){var g=d.Ma.ea(c);g.Qe&&(c++,g=d.Ma.ea(c));var l=g.Db(b[e]);f.v(l)&&(l=g.Db(f.u.me.Or(b[e])));
if(f.v(l))return[];a.push(l.ordinal);c++}return a};h.prototype.MR=function(d,b,a){this.Qb.ot();this.ja.G.expand(this.wQ(d,b),d,this.ja.ga.sa.$c(a))};h.prototype.aR=function(d,b,a){this.Qb.ot();this.ja.G.collapse(this.wQ(d,b),d,this.ja.ga.sa.$c(a))};h.prototype.IR=function(d,b,a,c){this.Qb.ot();var e=this.ja.ga.sa.Cd(d),g=e.Ra&&e.He<=b.length?e.Ma.ea(b.length+1):e.Ma.ea(b.length);e=g.Db(c);f.v(e)&&(c=f.u.me.Or(c),e=g.Db(c));f.v(e)||(b=this.wQ(d,b),b.push(e.ordinal),this.ja.G.To(b,e,d,this.ja.ga.sa.$c(a)))};
h.prototype.HR=function(d,b,a,c){this.Qb.ot();var e=this.ja.ga.sa.Cd(d),g=e.Ra&&e.He<=b.length?e.Ma.ea(b.length+1):e.Ma.ea(b.length);e=g.Db(c);f.v(e)&&(c=f.u.me.Or(c),e=g.Db(c));f.v(e)||(b=this.wQ(d,b),b.push(e.ordinal),this.ja.G.tf(b,e,d,this.ja.ga.sa.$c(a)))};h.prototype.Gv=function(d){d=this.ja.ga.sa.rc().getItem(d);null!=d&&this.Hda(d)&&(this.Qb.ot(),this.ja.G.Gv(d))};h.prototype.Hda=function(d){var b=this.ja.ga.sa,a=b.rows.Bb(d.uniqueName)?f.u.i.ia.Ia:f.u.i.ia.Sa;return(a==f.u.i.ia.Ia?b.vb.indexOf(d.uniqueName):
b.Cb.indexOf(d.uniqueName))+1<(a==f.u.i.ia.Ia?b.vb.length:b.Cb.length)};h.prototype.O2=function(){this.ja.Ga.hf==f.model.cc.so.jo?this.PF():this.Ue&&this.gb()};h.prototype.P2=function(){this.Eta()};h.prototype.dU=function(){this.Vca()};h.prototype.jU=function(d){d.stopPropagation();this.Vca()};h.prototype.Vca=function(){function d(){b.Ue.qd()!=parseInt(b.Ue.element.style.height)&&5>c?(c++,b.Ue.requestAnimationFrame(d)):b.$ha()&&b.gb(!0)}var b=this,a=x.jT();null!=f.model.Qa.jsFullScreenHandler&&f.model.Qa.jsFullScreenHandler.call(null,
a);var c=0;this.Ue.requestAnimationFrame(d)};h.prototype.te=function(){var d=this;this.toolbar&&(this.F.height-=this.xD);this.Qb=new k.X.Qla;this.Qb.N(k.pi.Uw,function(b){return d.ZDa(b)});this.Qb.N(k.pi.$V,function(b){return d.Xea(b)});this.V(this.Qb);this.Yh=new k.Vc.mo;this.Yh.N(y.da.OPENED,function(){});this.Yh.N(y.da.CLOSED,function(){});this.Yh.N(k.Vc.mo.ZN,function(){return d.h2()});this.Yh.N(k.Vc.mo.fI,function(b){return d.g2(b)});this.V(this.Yh);f.Pj.addEventListener("keydown",function(b){return d.kp(b)});
this.TE=new x.xoa(this.Ue.parent);this.TE.N(y.da.ZW,function(b){return d.Z2(b)});this.Zda=!0};h.prototype.bHa=function(){k.GN.U().Zt&&k.GN.U().Go()};h.prototype.FX=function(d){d=void 0===d?!1:d;null==this.ja||0==this.Ue.width||d&&A.IK.VN.U().QAa||(this.$ha(),this.bHa(),1>f.model.Ea.pc.oj()||(this.$aa=!0,this.TE.refresh(),this.KS()&&this.Xva(),this.iAa()&&(this.V(this.IV),this.IV.gb()),f.model.B.C.oc&&this.ja.ga.fa&&!this.ja.ga.fa.KG&&(f.model.B.C.oc=!1,f.Va(f.O.bind(f.model.A.j.gna,f.u.i.oa.J(this.ja.ga.fa.Ba)),
f.model.A.j.uO)),f.model.B.C.oc&&f.model.B.C.he==k.xd.fn&&this.ja.ga.fa&&this.ja.ga.fa.Ba==f.u.i.oa.API&&(f.model.B.C.he=k.xd.xs,f.Va(f.O.bind(f.model.A.j.IW),f.model.A.j.uO,f.rb.Ik)),null!=this.Oj&&this.Oj.gb(),f.v(this.ja.Ga.fa)||this.ja.Ga.fa.ob||!f.model.B.C.IZ?this.Yh.$a():this.Yh.show(),d||f.model.B.C.zF||k.Ka.UD.WJ||(f.model.B.C.An=!1),f.v(this.ja.ga.sa)||f.v(this.ja.ga.I)||this.ja.ga.I.ob||!this.ja.ga.sa.ob||(f.model.B.C.An=!0),f.model.B.C.An&&null!=this.ja.Ga.fa&&!this.ja.Ga.fa.ob?this.Yh.open(this.ja.ga.I,
this.ja.ga.sa,this.ja.Ga.fa.Ba):this.Yh.close(),f.model.B.C.he==k.xd.Ki?this.g_(d):f.model.B.C.he==k.xd.fn?this.i_(d):this.h_(d),null!=this.tk&&this.tk.isVisible()&&(f.model.B.C.oc&&f.model.B.C.he===k.xd.xs?this.tk.close():this.tk.r3()),this.w1=this.cf(),this.v1=this.qd()))};h.prototype.PF=function(){f.model.B.C.he==k.xd.Ki?this.g_(!1,!0):f.model.B.C.he==k.xd.fn?this.i_(!1):this.h_(!1,!0);f.v(this.Yh)||(this.Yh.close(),this.Yh.$a())};h.prototype.jV=function(){if(this.ja.Ga.fa.Ba==f.u.i.oa.API&&f.model.B.C.oc&&
f.model.B.C.he==k.xd.Ki){var d=f.model.B.C.Vv(!1,!0);d.la("viewType",k.xd.xs);this.ja.zp(d.La())}else f.model.B.C.he=k.xd.xs,f.model.B.C.oc&&this.Yh&&this.Yh.Zt&&this.Yh.open(this.ja.ga.I,this.ja.ga.sa,this.ja.Ga.fa.Ba),this.h_()};h.prototype.h_=function(d,b){d=void 0===d?!1:d;b=void 0===b?!1:b;null!=this.Qb&&(null!=this.bd&&this.bd.$a(),null!=this.dk&&this.dk.$a(),d||null==this.Oj||this.Oj.close(),this.Qb.G=b?null:this.ja.G=f.u.bf.ij.uc(),this.Qb.F.P("top","").P("left","").P("right","").P("bottom",
""),this.Qb.F.P("position","absolute"),this.Qb.show(),this.Qb.F.P("height",h.jC+"px"),this.Qb.F.P("width",h.tu+"px"),b&&this.Qb.ot(),this.Qb.gb())};h.prototype.WM=function(d,b){d=void 0===d?"":d;b=void 0===b?!1:b;if(this.ja.Ga.fa.Ba==f.u.i.oa.API&&f.model.B.C.oc&&f.model.B.C.he==k.xd.xs){var a=f.model.B.C.Vv(!1,!0);a.la("viewType",k.xd.Ki);a.la("chartType",d);a.la("chartMultipleMeasures",k.td.xe.Oda(d)?b:!1);this.ja.zp(a.La())}else f.model.B.C.he=k.xd.Ki,f.model.B.C.OQ=d,f.model.B.C.lK=k.td.xe.Oda(d)?
b:!1,this.g_()};h.prototype.g_=function(d,b){var a=this;d=void 0===d?!1:d;b=void 0===b?!1:b;x.mn.load("lib/d3.v3.min.js",function(){d||null==a.Oj||a.Oj.close();null!=a.Qb&&a.Qb.$a();null!=a.dk&&a.dk.$a();null==a.bd&&a.hF();a.bd.F.P("top","").P("left","").P("right","").P("bottom","");a.bd.F.P("position","absolute");a.bd.show();a.bd.F.P("height",h.un+"px");a.bd.F.P("width",h.vn+"px");a.bd.G=b?null:a.ja.G=f.u.bf.ij.W_(f.model.B.C.lZ);a.bd.gb();f.model.B.C.oc&&a.Yh&&a.Yh.Zt&&a.Yh.open(a.ja.ga.I,a.ja.ga.sa,
a.ja.Ga.fa.Ba);b||0!=a.KF.length||(a.fga=f.pe(function(){a.Wa(k.pi.YW)},1))})};h.prototype.kV=function(d,b,a){d=void 0===d?"":d;b=void 0===b?"bottom":b;a=void 0===a?!1:a;this.ja.Ga.fa.Ba==f.u.i.oa.API&&f.model.B.C.oc?f.Va(f.O.bind(f.model.A.j.IW),f.model.A.j.uO,f.rb.Ik):(f.model.B.C.he=k.xd.fn,f.model.B.C.OQ=d,f.model.B.C.nB=b,f.model.B.C.lK=a,this.i_())};h.prototype.i_=function(d){var b=this;d=void 0===d?!1:d;x.mn.load("lib/d3.v3.min.js",function(){d||null==b.Oj||b.Oj.close();null!=b.Qb&&(b.Qb.show(),
b.Qb.G=b.ja.G=f.u.bf.ij.uc(),null==b.bd&&b.hF(),b.bd.show(),b.bd.G=f.u.bf.ij.W_(f.model.B.C.lZ),null==b.dk&&b.Rra(),b.dk.show(),b.dk.direction="left"==f.model.B.C.nB||"right"==f.model.B.C.nB?A.iP.pX:A.iP.vI,b.dk.Aua=[150,150,h.tu-150,b.op()-150],b.Zaa(f.model.B.C.nB))})};h.prototype.AFa=function(d){var b=f.model.B.C.nB;this.Zaa(b,"left"==b||"right"==b?d.data.left:d.data.top)};h.prototype.Zaa=function(d,b){d=void 0===d?"bottom":d;b=void 0===b?NaN:b;var a=h.tu-h.zb.aG;isNaN(b)&&(b="left"==d||"right"==
d?Math.round(a/2):Math.round(this.op()/2));switch(d){case "bottom":h.UP=a;h.TP=b;this.Qb.F.P("width",h.FL+"px");this.Qb.F.P("height",h.jC+"px");this.Qb.F.P("top",0).P("left",0).P("right","").P("bottom","");h.wP=a;h.nJ=this.op()-this.Qb.F.qd()-this.dk.qd();this.bd.F.P("width",h.vn+"px");this.bd.F.P("height",h.nJ+"px");this.bd.F.P("bottom",this.KS()&&!f.v(this.Ml)?this.Ml.qd()+"px":0).P("left",0).P("right","").P("top","");this.dk.F.P("top",b+"px").P("left","").P("right","").P("bottom","");break;case "top":h.wP=
a;h.nJ=b;this.bd.F.P("width",h.vn+"px");this.bd.F.P("height",h.un+"px");this.bd.F.P("top",0).P("left",0).P("right","").P("bottom","");h.UP=a;h.TP=this.op()-this.bd.F.qd()-this.dk.qd();this.Qb.F.P("width",h.FL+"px");this.Qb.F.P("height",h.jC+"px");this.Qb.F.P("bottom",this.KS()&&!f.v(this.Ml)?this.Ml.qd()+"px":0).P("left",0).P("right","").P("top","");this.dk.F.P("top",b+"px").P("left","").P("right","").P("bottom","");break;case "left":h.wP=b;h.nJ=this.op();this.bd.F.P("width",h.vn+"px");this.bd.F.P("height",
h.un+"px");this.bd.F.P("top",0).P("left",0).P("right","").P("bottom","");h.UP=a-this.bd.F.cf()-this.dk.cf();h.TP=this.op();this.Qb.F.P("width",h.FL+"px");this.Qb.F.P("height",h.jC+"px");this.Qb.F.P("top",0).P("right",h.zb.aG+"px").P("left","").P("bottom","");this.dk.F.P("left",b+"px").P("top","").P("right","").P("bottom","");break;case "right":h.UP=b,h.TP=this.op(),this.Qb.F.P("width",h.FL+"px"),this.Qb.F.P("height",h.jC+"px"),this.Qb.F.P("top",0).P("left",0).P("right","").P("bottom",""),h.wP=a-this.Qb.F.cf()-
this.dk.cf(),h.nJ=this.op(),this.bd.F.P("width",h.vn+"px"),this.bd.F.P("height",h.un+"px"),this.bd.F.P("top",0).P("right",h.zb.aG+"px").P("left","").P("bottom",""),this.dk.F.P("left",b+"px").P("top","").P("right","").P("bottom","")}this.Qb.F.P("position","absolute");this.bd.F.P("position","absolute");this.Qb.gb();this.bd.gb()};h.prototype.Xea=function(d){null==this.tk&&this.tra();for(var b,a=this.ja.ga.sa.ad(),c=0;c<a.length;c++){var e=a[c];e.uniqueName==d.measure.uniqueName&&e.$==d.measure.$&&(b=
e)}this.tk.Xr(this.ja.G,this.ja.ga.sa,d.lg,d.Qg,b,d.cell)};h.prototype.SFa=function(d){if(null!=this.ja.ga&&null!=this.ja.ga.I){var b=this.ja.ga.I.rc(!1).getItem(d),a=this.ja.ga.sa;null!=b&&(a.pages.Bb(d)||a.rows.Bb(d)||a.columns.Bb(d))&&(d={hierarchy:b.Ji()},f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Uw,d)),this.cH(b))}};h.prototype.tU=function(){f.v(this.ja.Ga.fa)||this.ja.Ga.fa.ob||("right"==f.model.B.C.$F?(f.model.B.C.zF=!0,f.model.B.C.An=!0,this.gb()):this.Yh.open(this.ja.ga.I,this.ja.ga.sa,
this.ja.Ga.fa.Ba))};h.prototype.nK=function(){"right"==f.model.B.C.$F?(f.model.B.C.zF=!1,f.model.B.C.An=!1,this.gb()):this.Yh.close()};h.prototype.g2=function(d){if(!x.Mc.og(this.ja.ga.sa.memberProperties)){var b=new f.model.bb.SliceValueObject;b.memberProperties=this.ja.ga.sa.memberProperties;d.data.memberProperties=b.memberProperties}this.ja.ae(d.data)};h.prototype.FAa=function(){return!f.v(this.ja.Ga.fa)&&(!this.ja.Ga.fa.Hc||this.ja.Ga.fa.Ba===f.u.i.oa.API)&&!this.ja.ga.I.ob||f.model.B.C.zv&&this.ja.Ga.fa.Ba===
f.u.i.oa.Nc};h.prototype.vM=function(d,b){d=void 0===d?null:d;b=void 0===b?null:b;f.v(this.ja.Ga.fa)||this.ja.Ga.fa.ob||!this.FAa()||(f.v(b)||(this.Ex="string"==typeof b?f.model.Qa.xca(b):b),f.ha(d)||f.model.Ta.U().N(k.Ka.yj.Bz,this.Hx),f.model.Ta.U().Da(new k.Ka.WV(d)),f.model.Ta.U().N(k.Ka.yj.Az,this.Gx),f.model.Ta.U().N(k.Ka.yj.Cz,this.Ix))};h.prototype.hu=function(d){f.model.Ta.U().mb(k.Ka.yj.Az,this.Gx);f.v(this.Ex)||this.Ex({uniqueName:d.Nr,isRemoved:!1});this.Ex=null};h.prototype.iu=function(d){f.model.Ta.U().mb(k.Ka.yj.Bz,
this.Hx);f.v(this.Ex)||this.Ex({uniqueName:d.Nr,isRemoved:!0});this.Ex=null};h.prototype.mM=function(){f.model.Ta.U().mb(k.Ka.yj.Cz,this.Ix);this.Ex=null};h.prototype.YDa=function(d){null==this.Oj&&this.IY();this.Oj.F.Ua("fm-charts-filter",!0);this.iU(d)};h.prototype.ZDa=function(d){null==this.Oj&&this.IY();this.Oj.F.Ua("fm-charts-filter",!1);this.iU(d)};h.prototype.iU=function(d){var b={hierarchy:d.hierarchy.Ji()};f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Uw,b));this.cH(d.hierarchy)};h.prototype.cH=
function(d){null==this.Oj&&this.IY();this.Oj.Xr(d)};h.prototype.Eta=function(){null!=this.tk&&this.tk.close()};h.prototype.Xva=function(){null!=this.Ml&&null!=this.BV||this.fra();this.V(this.Ml);this.Ml.Ua("fm-layout-660",660>this.Ml.cf());this.Ml.Ua("fm-layout-520",520>this.Ml.cf());var d="";f.model.Ea.pc.uu&&(d=f.model.Ea.na.J(f.model.Ea.na.Xha)+"("+x.gh.format(f.model.Ea.pc.XF,"MM/dd/yyyy")+")",new Date(Date.now()+432E6)>f.model.Ea.pc.XF&&(d+=f.model.Ea.na.J(f.model.Ea.na.Lwa)));f.model.Ea.pc.Ro&&
(x.Bda()||f.model.Ea.pc.Oaa||(d=f.model.Ea.na.J(f.model.Ea.na.Ova)+f.model.Ea.pc.B1+")"));this.BV.Za(d,!0)};h.prototype.h2=function(){this.tU()};h.prototype.kp=function(d){if(this.Nm||this.C0)73===d.keyCode&&(d.ctrlKey||d.metaKey)&&d.altKey&&this.mha(),72===d.keyCode&&(d.ctrlKey||d.metaKey)&&d.altKey&&this.uIa(!this.lT),27===d.keyCode&&(null!=this.Oj&&this.Oj.close(),null!=this.tk&&(this.tk.Ms.Zt?this.tk.Ms.close():this.tk.close()),null!=this.oF&&this.oF.isVisible()?this.oF.close():this.Yh.close())};
h.prototype.uIa=function(d){var b=this;d?(d=document.querySelector("link[data-fm-hc-theme]"))?(d.disabled=!1,this.lT=!0,this.gb()):x.mn.D1(this.gda,{eK:{"data-fm-hc-theme":""},Wi:!0},function(){b.lT=!0;b.gb()}):(x.mn.PJa(),this.gb(),this.lT=!1)};h.prototype.vIa=function(d){this.gda=d};h.prototype.QDa=function(d){var b=this;this.tk&&this.tk.isVisible()?this.tk.Nj(d.Dt,d.lb,d.Fo):f.model.B.C.he==k.xd.xs?(this.Qb.G=f.u.bf.ij.uc(f.model.B.C.DG==k.X.ie.ih?"flat":"pivot"),this.Qb.Nj(d.Dt,d.lb,d.Fo)):f.model.B.C.he!=
k.xd.Ki||d.Dt!=f.model.vc.Li.xh&&d.Dt!=f.model.vc.Li.XD?f.model.B.C.he==k.xd.Ki?(null==this.bd&&this.hF(),this.bd.Nj(d.lb)):f.model.B.C.he==k.xd.fn&&(d.Dt==f.model.vc.Li.Vz||d.Dt==f.model.vc.Li.Lu||d.Dt==f.model.vc.Li.dA?(null==this.bd&&this.hF(),this.bd.Nj(d.lb,!0,function(a){b.Qb.Nj(d.Dt,d.lb,d.Fo,a)})):this.Qb.Nj(d.Dt,d.lb,d.Fo)):(this.Qb.G=f.u.bf.ij.uc(f.model.B.C.DG==k.X.ie.ih?"flat":"pivot"),this.YF=d,h.zb.N(k.pi.fo,this.rba),this.Qb.gb())};h.prototype.$Ea=function(){var d=this;f.model.B.C.he==
k.xd.xs?this.Qb.print():f.model.B.C.he==k.xd.Ki?(null==this.bd&&this.hF(),this.bd.print()):f.model.B.C.he==k.xd.fn&&(null==this.bd&&this.hF(),this.bd.print(function(b){return d.gDa(b)}))};h.prototype.gDa=function(d){this.Qb.print(d)};h.prototype.KS=function(){f.model.Ea.pc.oj();return f.model.Ea.pc.Cx||f.model.Ea.pc.pp?!1:!0};h.prototype.iAa=function(){return!f.model.Ea.pc.pp&&!f.model.Ea.pc.Ro&&!f.model.Ea.pc.Cx};h.prototype.mha=function(){var d=new Date(parseFloat(f.Ug.NV)/61),b=x.gh.format(d,"MMMM yyyy")+
" (v. "+f.Ug.qs+")";b+=f.model.Ea.na.J(f.model.Ea.na.gB);b+=f.O.bind(f.model.Ea.na.J(f.model.Ea.na.Msa),x.gh.format(d,"MM/dd/yyyy HH:mm:ss"));b+=f.model.Ea.na.J(f.model.Ea.na.gB);b+=f.model.Ea.na.J(f.model.Ea.na.yva)+f.model.Ea.pc.UBa();f.model.Ea.pc.Ro?b+=f.model.Ea.na.J(f.model.Ea.na.UFa)+f.model.Ea.pc.B1:f.model.Ea.pc.pp&&(b+=f.model.Ea.na.J(f.model.Ea.na.Uva)+f.model.Ea.pc.oea);d=!1;f.model.Ea.pc.uu?f.model.Ea.pc.Ro||f.model.Ea.pc.pp?b+=f.model.Ea.na.J(f.model.Ea.na.QBa)+x.gh.format(f.model.Ea.pc.XF,
"MM/dd/yyyy"):(d=!0,b+=f.model.Ea.na.J(f.model.Ea.na.JJa)+x.gh.format(f.model.Ea.pc.XF,"MM/dd/yyyy")):b+=f.model.Ea.na.J(f.model.Ea.na.RBa);d||(b+=f.model.Ea.na.J(f.model.Ea.na.Eha)+x.gh.format(f.model.Ea.pc.vV,"MM/dd/yyyy"));b+=f.model.Ea.na.J(f.model.Ea.na.TBa)+f.model.Ea.pc.Rx;b+=f.model.Ea.na.J(f.model.Ea.na.info);f.Va(b,f.model.Ea.na.J(f.model.Ea.na.Mta),f.rb.pO)};h.prototype.Rf=function(d,b){return this.Qb.Rf(d,b)};h.prototype.sS=function(d,b){return this.Qb.sS(d,b)};h.prototype.xG=function(){return this.Qb.xG()};
h.prototype.gz=function(d,b){this.Qb.gz(d,b)};h.prototype.bD=function(){this.Qb.bD()};h.prototype.UEa=function(d){null==this.oF&&this.hra();this.oF.Xr(d.Nr)};h.prototype.VEa=function(d){null==this.contextMenu&&this.kra();var b=d.data.ACa;b&&0<b.length&&this.contextMenu.Xn(this.F,b,d.data.coords,null,d.data.YJ)};h.prototype.UCa=function(){var d=this;0==this.KF.length&&(this.fga=f.pe(function(){d.Wa(k.pi.YW)},1))};h.prototype.hra=function(){this.oF=new k.Ka.UD;this.V(this.oF)};h.prototype.hF=function(){var d=
this;this.bd=new k.td.Du;this.bd.N(k.pi.Uw,function(b){return d.YDa(b)});this.bd.N(k.pi.$V,function(b){return d.Xea(b)});this.V(this.bd)};h.prototype.tra=function(){this.tk=new k.vf.WD;this.V(this.tk)};h.prototype.IY=function(){this.Oj=new k.filter.Hla;this.Oj.N(y.da.OPENED,function(){});this.Oj.N(y.da.CLOSED,function(){});this.V(this.Oj)};h.prototype.Rra=function(){var d=this;this.dk=new A.iP;this.dk.$a();this.dk.N(A.iP.gW,function(b){return d.AFa(b)});this.V(this.dk)};h.prototype.kra=function(){this.contextMenu=
new A.No.wE(h.zb.F);this.contextMenu.Y("fm-context-menu");this.contextMenu.$a();this.V(this.contextMenu)};h.prototype.fra=function(){var d=this;this.Ml=new A.Vb.ye;this.Ml.Y("fm-branding-bar");this.BV=new A.Oc;this.BV.Y("fm-version-label");this.Ml.V(this.BV);this.AV=new A.Oc;this.AV.Y("fm-link");this.AV.Za(f.model.Ea.na.J(f.model.Ea.na.Dfa),!0);this.Ml.V(this.AV);var b=new A.Aa("span","fm-info-icon");b.N("click",function(){return d.mha()});this.AV.F.append(b);this.IV=new k.Hpa};h.prototype.dispose=
function(){this.ja=null;this.Qb&&this.Qb.dispose();this.bd&&this.bd.dispose();this.tk&&this.tk.dispose();this.F.dispose();this.Ue.dispose();k.GN.dispose();k.filter.M6.dispose();k.VW.dispose();A.IK.VN.dispose();x.sO.dispose();h.zb=null;this.toolbar&&(this.toolbar.dispose&&this.toolbar.dispose(),this.toolbar=null);this.TE&&(this.TE.Od(y.da.ZW),this.TE.dispose(),this.TE=null)};q.Object.defineProperties(h.prototype,{ada:{configurable:!0,enumerable:!0,get:function(){return this.toolbar&&null!=this.toolbar.create}},
xD:{configurable:!0,enumerable:!0,get:function(){if(this.toolbar){var d=A.Aa.Pb(this.Ue.element.querySelector("#fm-toolbar-wrapper"));return null==d?0:d.height}return 0}},aG:{configurable:!0,enumerable:!0,get:function(){return"right"==f.model.B.C.$F&&f.model.B.C.An?this.X8:0},set:function(d){this.X8=d}},EL:{configurable:!0,enumerable:!0,get:function(){return this.Qb.EL}},DL:{configurable:!0,enumerable:!0,get:function(){return this.Qb.DL}}});q.Object.defineProperties(h,{tu:{configurable:!0,enumerable:!0,
get:function(){var d=h.zb.F.borderWidth;return h.zb.Ue.cf(x.jT())-d.left-d.right}},wha:{configurable:!0,enumerable:!0,get:function(){var d=h.zb.F.borderWidth;return h.zb.Ue.qd(x.jT())-d.top-d.bottom}},vn:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.wP:h.tu-h.zb.aG}},un:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.nJ:h.zb.op()}},FL:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.UP:h.tu-h.zb.aG}},jC:{configurable:!0,
enumerable:!0,get:function(){return f.model.B.C.he==k.xd.fn?h.TP:h.zb.op()}}});k.Hb=h})(f.K||(f.K={}))})(w||(w={}));(function(f){(function(k){function h(){}h.Cg=function(d){if(f.v(d)||"string"!=typeof d)return!1;d=d.toLowerCase();return d==h.xs||d==h.Ki||d==h.fn};h.xs="grid";h.Ki="charts";h.fn="grid_charts";k.xd=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){this.Hl=0;this.ZE=!1;this.sJ=this.RE="";this.cF=!1}h.prototype.show=function(d,b,a,c,e){var g=this;c=void 0===c?!0:c;e=void 0===e?!1:e;d?(e&&this.b4(d,b,a,c),0==this.ZE?(this.ZE=d,this.RE=b,this.sJ=a,this.cF=c,this.Hl=f.pe(function(){return g.Gha()},h.U5)):0==this.Hl?this.b4(d,b,a,c):(this.ZE=d,this.RE=b,this.sJ=a,this.cF=c)):(e&&this.b4(d,b,a,c),1==this.ZE&&(this.ZE=d,this.Hl=f.pe(function(){return g.Gha()},h.U5)))};h.prototype.b4=function(d,b,a,c){this.hga();
this.Hfa(d,b,a,c)};h.prototype.Gha=function(){this.hga();this.Hfa(this.ZE,this.RE,this.sJ,this.cF)};h.prototype.hga=function(){f.Dr(this.Hl);this.Hl=0};h.prototype.Hfa=function(d,b,a,c){k.VW.U()&&k.VW.U().Xr(d,b,a,c)};h.U=function(){null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};h.U5=250;k.ioa=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){if(null!=h.ne)throw Error("Singleton");var d=A.Vb.mh.call(this,k.Hb.zb.F)||this;d.Y("fm-preloader-view");d.$j("status");d.te();return d}u(h,A.Vb.mh);h.prototype.Xr=function(d,b,a,c){this.RE=void 0===b?"":b;this.sJ=void 0===a?"":a;this.Dqa=void 0===c?!0:c;void 0===d||d?this.open():this.close()};h.prototype.open=function(){A.Vb.mh.prototype.open.call(this);this.gb()};h.prototype.te=function(){this.QC.Y("fm-overlay-preloader");this.QC.mb("click",this.z9);this.h9=
new A.Ca("div","fm-spinner");this.h9.Cm();this.V(this.h9);this.lr=new A.Oc;this.lr.Cm();this.lr.Y("fm-message-label");this.V(this.lr);this.xQ=new A.Oc;this.xQ.Cm();this.xQ.Y("fm-details-label");this.V(this.xQ);this.$a();k.Hb.zb.V(this)};h.prototype.gb=function(){this.QC.AIa(!this.Dqa);this.oH(this.RE);this.pIa(this.sJ);this.hc(this.RE);this.validate()};h.prototype.oH=function(d){this.lr.Za(d)};h.prototype.pIa=function(d){this.xQ.Za(d)};h.prototype.close=function(){A.Vb.mh.prototype.close.call(this);
this.clear()};h.prototype.clear=function(){this.oH("");this.oH("")};h.U=function(){if(null==k.Hb.zb)return null;null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};k.VW=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return A.Vf.vo.apply(this,arguments)||this}function b(){var a=A.Aa.call(this,"div","fm-charts-layout")||this;a.d4=!0;a.gea=f.u.i.ia.Ia;a.$k();a.te();return a}u(b,A.Aa);b.prototype.te=function(){this.WZ();this.bva()};b.prototype.WZ=function(){this.yo=new A.Oc;this.yo.F.display="block";this.yo.Y("fm-chart-title");this.yo.Y("fm-pivot-title");this.yo.gV(!0);this.yo.F.P("position","relative");this.yo.$a();this.cB(this.yo)};b.prototype.bva=function(){var a=
this;this.hr=new A.Ca("div","fm-ui-row fm-header-toolbar");this.cB(this.hr);this.mv=new A.Ca("div","fm-ui-col-2");this.mv.F.display="inline-block";this.hr.V(this.mv);this.Gl=new A.hd.$q;this.Gl.Y("fm-chart-measures-dropdown");this.Gl.N(y.da.Qd,function(c){return a.CEa(c)});this.Gl.$a();this.mv.V(this.Gl);this.nv=new A.hd.$q;this.nv.Y("fm-chart-pie-dropdown");this.nv.N(y.da.Qd,function(c){return a.ZEa(c)});this.nv.$a();this.mv.V(this.nv);this.Ts=new A.Ca("div","fm-ui-col-2 fm-charts-filters-container");
this.Ts.F.display="inline-block";this.hr.V(this.Ts);this.ev=new A.hd.$q;this.ev.zk=!1;this.ev.Y("fm-charts-filters-btn");this.ev.Mh(f.model.A.j.mA);this.ev.N(y.da.Qd,function(c){return a.Zea(c)});this.ev.Lh(this.Qwa);this.hr.V(this.ev)};b.prototype.Qwa=function(a,c){var e=new d;e.setData(a);e.am(c);e.Y("fm-charts-filter");e.F.attr("title",f.model.A.j.mA);return e};b.prototype.resize=function(a,c){this.OA=a;this.NA=c};b.prototype.gb=function(){this.width=this.OA;this.height=this.NA;f.v(this.G)||this.G.ob?
this.RIa&&this.nwa():(f.ha(f.model.B.C.Dm)||this.k_(),null!=this.xb&&(this.hr.F.Ua("fm-fields-list-padding",this.fAa),f.model.B.C.jz&&f.model.B.C.QIa&&this.$va(),this.xb.type!=h.xe.TD&&f.model.B.C.NIa&&this.gwa(),this.xb.type==h.xe.Ou&&1<this.xb.Hk.length&&this.kwa(),f.model.B.C.MIa&&this.xb.Te&&0<this.xb.Te.length&&this.Yaa(),this.Waa(),f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.LV))))};b.prototype.clear=function(){this.yo.$a();this.hr.$a();this.Gl.$a();this.nv.$a();this.Ts.$a();this.ev.$a();this.mv.ud("fm-wide");
this.xo&&(this.xo.sg(!0),this.xo=null);this.um&&(this.um.sg(!0),this.um=null);this.$A&&this.$A.$a()};b.prototype.nwa=function(){null==this.$A&&(this.$A=new A.Oc(f.model.A.j.w5),this.$A.Y("fm-charts-msg"),this.cB(this.$A));this.$A.Za(f.model.A.j.w5);this.$A.show()};b.prototype.k_=function(){this.yo.Za(f.model.B.C.Dm);this.yo.show()};b.prototype.gwa=function(){for(var a=[],c=this.G.measures,e=this.xb.PJ,g=0;g<c.length;g++){var l=c[g],m=new f.model.bb.Ig(l.uniqueName,l.$,l.index);m.label=f.O.In(l.label,
!0,!0);a.push(m)}if(f.model.B.C.gha||!f.model.B.C.gha&&1<a.length){this.Gl.lD(f.model.A.j.cja);this.Gl.GBa=this.Gl.qr&&this.xb.Ny;this.Gl.qr=this.xb.Ny;this.Gl.Cf(a);if(this.xb.Ny){c=[];for(g=0;g<a.length;g++)for(l=a[g],m=0;m<e.length;m++)if(l.uniqueName==e[m].uniqueName&&(l.$==e[m].$||f.ha(e[m].$))&&(l.index==e[m].index||-1==e[m].index)){c.push(g);break}this.Gl.TM(c)}else{a=e[0];var n=new f.model.bb.Ig(a.uniqueName,a.$,a.index);this.Gl.gs(function(p){return p.index===n.index})}this.Gl.show();this.hr.show();
this.xb.type==h.xe.Ou&&1<this.xb.Hk.length?this.Gl.tj(this.mv.cf()/2-10):this.Gl.tj(this.mv.cf()-10)}};b.prototype.kwa=function(){for(var a=[],c=0;c<this.xb.Hk.length;c++)a.push({label:f.O.In(this.xb.Hk[c].label,!0,!0)});this.nv.Cf(a);this.nv.ak(f.model.B.C.NQ);this.nv.show();this.hr.show();this.nv.tj(this.mv.cf()/2-10)};b.prototype.$va=function(){this.Ts.F.ww();if(null!=f.u.Na.U().sa){for(var a=f.u.Na.U().sa.rc(!1),c=0;c<a.length;c++)this.Ts.V(this.Zua(a.ea(c)));this.Ts.show();this.hr.show();for(c=
a=0;c<this.Ts.F.element.children.length;c++){var e=this.Ts.F.element.children.item(c);a+=e.offsetWidth}a>this.Ts.cf()&&this.awa()}};b.prototype.awa=function(){for(var a=[],c=f.u.Na.U().sa.rc(!1),e=0;e<c.length;e++){var g=c.ea(e);a.push({label:g.caption,uniqueName:g.uniqueName,d1:g.filter.$g})}this.ev.Cf(a);this.ev.show();this.Ts.$a();this.mv.Y("fm-wide")};b.prototype.Zua=function(a){var c=this,e=new A.Jf;e.Y("fm-ui-btn-superlight");e.Y("fm-charts-filter");e.F.Ua("fm-filtered",a.filter.$g);e.N(A.sd.Xe,
function(g){return c.Zea(g)});e.Za(a.label);e.F.attr("data-hierarchy",a.uniqueName);e.F.attr("title",f.model.A.j.mA);return e};b.prototype.Waa=function(){var a=this;null!=this.xo&&this.xo.sg(!0);this.xo=h.Qja.lya(this.xb.type);this.cB(this.xo);this.xo.Y3(function(e,g,l){return a.NFa(e,g,l)});var c=this.NA-this.yo.qd(!0)-this.hr.qd(!0)-this.xo.padding.top-this.xo.padding.bottom;this.um&&(c-=this.um.F.element.offsetHeight);this.xo.Jd(this.xb,this.OA-20,c);this.xo.F.P("max-width",this.OA+"px");this.xo.F.P("max-height",
c+"px")};b.prototype.Yaa=function(){var a=this;null!=this.um&&this.um.sg(!0);this.um=new h.Te.Rja(this.d4);this.um.Y("fm-chart-legend");this.um.kIa(function(c,e,g){return a.tEa(c,e,g)});this.um.N(y.da.Qd,function(){return a.sEa()});this.um.lIa(this.xb.Ko);this.um.Jd(this.xb.Te);this.um.OG.P("max-height",(this.NA-this.yo.qd(!0)-this.hr.qd())/2+"px");this.cB(this.um)};b.prototype.sEa=function(){this.d4=!this.d4;this.Yaa();this.Waa()};b.prototype.Zx=function(a,c,e){null==e||e.Wb||e.Bi||((a==f.u.i.ia.Ia?
this.G.Hh(c,e):this.G.Rj(c,e))?this.G.To(c,e,a):this.G.tf(c,e,a))};b.prototype.Ct=function(a,c){a==f.u.i.ia.Ia?this.G.Ih(c)?this.G.collapse(c,f.u.i.ia.Ia):this.G.expand(c,f.u.i.ia.Ia):this.G.Sj(c)?this.G.collapse(c,f.u.i.ia.Sa):this.G.expand(c,f.u.i.ia.Sa)};b.prototype.lba=function(a,c){a==f.u.i.ia.Ia?c.length<=f.model.B.C.Cv.length?this.G.collapse(c,f.u.i.ia.Ia):this.G.expand(c,f.u.i.ia.Ia):c.length<=f.model.B.C.sF.length?this.G.collapse(c,f.u.i.ia.Sa):this.G.expand(c,f.u.i.ia.Sa)};b.prototype.Zea=
function(a){a=a.type==y.da.Qd?a.data.Fk.uniqueName:a.target.F.attr("data-hierarchy");a=f.u.Na.U().I.Mg(a);this.Da(new k.kO(a))};b.prototype.tEa=function(a,c,e){this.gea=this.xb.EC;f.model.B.C.Io?"expand"==a?this.lba(this.xb.EC,c):"drill"==a&&this.Zx(this.xb.EC,c,e):"expand"==a?this.Ct(this.xb.EC,c):"drill"==a&&this.Zx(this.xb.EC,c,e)};b.prototype.NFa=function(a,c,e){var g=this.xb.EC==f.u.i.ia.Sa?f.u.i.ia.Ia:f.u.i.ia.Sa;this.gea=g;f.model.B.C.Io?"expand"==a?this.lba(g,c):"drill"==a&&this.Zx(g,c,e):
"expand"==a?this.Ct(g,c):"drill"==a&&this.Zx(g,c,e)};b.prototype.CEa=function(a){if(this.xb.Ny){for(var c=[],e=this.Gl.vL().slice(),g=0;g<e.length;g++)(a=e[g])&&c.push(a);f.model.B.C.kK=c}else f.model.B.C.Ho=a.data.Fk;this.Wa("chart_changed")};b.prototype.ZEa=function(a){f.model.B.C.NQ=a.data.selectedIndex;this.Wa("chart_changed")};q.Object.defineProperties(b.prototype,{Dp:{configurable:!0,enumerable:!0,get:function(){return this.yo}},Te:{configurable:!0,enumerable:!0,get:function(){return this.um}},
sr:{configurable:!0,enumerable:!0,get:function(){return this.xo}},fAa:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.IZ&&!(f.model.B.C.An&&"right"==f.model.B.C.$F)&&!(f.model.B.C.he==k.xd.fn&&("bottom"==f.model.B.C.nB||"left"==f.model.B.C.nB))}},RIa:{configurable:!0,enumerable:!0,get:function(){return f.model.Ta.U().Ga.cD==f.model.cc.fd.Oh&&(f.v(this.G)||this.G.ob&&!f.model.B.C.hha)}}});h.Uja=b;u(d,A.Vf.vo);d.prototype.gb=function(){var a=this.getData();null==this.label&&(this.label=
new A.Oc,this.label.Y("fm-text-display"),this.F.append(this.label.F));this.label.Za(a[this.rq()],!0);this.F.Ua("fm-filtered",!0===a.d1);this.F.attr("data-hierarchy",a.uniqueName)}})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}function b(){}b.validate=function(a){return a==b.Dz||a==b.ID||a==b.xI||a==b.Ou||a==b.VI||a==b.kA||a==b.TD?a:a==b.Hoa?b.kA:a==b.gja?b.TD:a==b.j5?b.ID:b.Dz};b.Oda=function(a){if("string"!=typeof a||f.ha(a))return!1;a=a.toLowerCase();return a==b.Dz||a==b.ID||a==b.j5||a==b.xI||a==b.VI?!0:!1};b.Dz="column";b.ID="bar_h";b.j5="bar_horizontal";b.xI="line";b.Ou="pie";b.VI="scatter";b.kA="stacked_column";b.Hoa="bar_stack";b.TD="column_line";b.gja="bar_line";
h.xe=b;d.iA="series";d.uE="series_label";d.kma="legend";h.bn=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){if(!f.v(a))for(var c in a)a.hasOwnProperty(c)&&(this[c]=a[c])}b.prototype.La=function(){var a={};f.v(this.label)||(a.label=this.label);f.v(this.color)||(a.color=this.color);f.v(this.Xb)||(a.member=this.Xb.La());f.v(this.We)||(a.tuple=this.LJa==f.u.i.ia.Ia?f.model.Ta.U().ga.sa.LZ(this.We):f.model.Ta.U().ga.sa.KZ(this.We));f.v(this.measure)||(a.measure={uniqueName:this.measure.uniqueName,caption:this.measure.caption,aggregation:this.measure.$});
f.v(this.level)||(a.level=this.level);f.v(this.zf)||(a.isExpanded=this.zf);f.v(this.isCollapsed)||(a.isCollapsed=this.isCollapsed);f.v(this.Pg)||(a.isDrilledDown=this.Pg);f.v(this.IG)||(a.isDrilledUp=this.IG);return a};d.g7=b;d.Sja=function(){this.Ny=!1;this.Lw=this.ps=this.os="";this.Hk=[];this.ii=[];this.EC=f.u.i.ia.Sa;this.Zv=[];this.data=[];this.Nv=[];this.pD=this.Bv=this.Yda=this.Sda=this.uda=this.fw=this.Xd=this.Tf=!1}})(h.W||(h.W={}))})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.vn=600;b.un=400;b.Jea=15;b.P1=3;b.Y("fm-chart");return b}u(d,A.Vb.ye);d.prototype.Jd=function(b,a,c){this.vn=a;this.un=c;this.xb=b;this.tAa(this.vn,this.un)};d.prototype.tAa=function(b,a){d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").selectAll("svg").remove();this.svg=d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").append("svg").attr("width",b).attr("height",a).append("g")};d.prototype.Y3=function(){};d.prototype.s_=
function(b){this.F.P("overflow-y","auto");d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").selectAll("svg").attr("height",b)};d.prototype.hba=function(b){this.F.P("overflow-x","auto");d3v3.select(k.Hb.zb.Ue.element).select(".fm-chart").selectAll("svg").attr("width",b)};d.prototype.Vk=function(b,a){if(f.pg(h.Du.BB)){var c=h.Du.BB,e=h.Du.K$,g=this.xb.type;b.each(function(l){l=e(l.data?l.data:l);l.type=a;l.chartType=g;c(this,l)})}};d.prototype.xP=function(b){var a=this;b.forEach(function(c){Infinity===
Math.abs(c.value)&&(c.value=0);c.wh&&a.xP(c.wh)})};h.Au=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.Au.call(this)||this;b.os="";b.ps="";b.Lw="";b.vN=0;b.pia=0;b.vha=!1;b.nz=10;b.mF=200;b.ZY=[0,15,30,45,60,75,90];return b}u(d,h.Au);d.prototype.Jd=function(b,a,c){h.Au.prototype.Jd.call(this,b,a,c);this.os=b.os;this.ps=b.ps;this.Lw=b.Lw};d.prototype.Ij=function(b,a){this.rv=this.vn;this.Ps=this.un;this.nz=this.xb.pD?20:10;this.mF=this.rv/5;this.xP(b);this.CY(b,a);this.svg.attr("transform","translate("+this.JV+", "+this.nz+")")};d.prototype.oL=
function(b){return d3v3.max(b,function(a){return d3v3.max(a.wh,function(c){return c.value})})};d.prototype.rL=function(b){return d3v3.min(b,function(a){return d3v3.min(a.wh,function(c){return c.value})})};d.prototype.Y3=function(b){this.pt=b};d.prototype.Ct=function(b){if(!f.v(b)&&this.pt){var a=b.data,c=b.Nv,e=b.Lg||b.ng;b.collapsed||b.wf?this.pt("expand",a,c):e&&this.pt("drill",a,c)}};d.prototype.CY=function(b,a){var c=this.vn,e=this.un,g=this.oL(b),l=this.rL(b);g=0>g&&(!this.xb.Bv||l==g)?0:g;l=
0>l||this.xb.Bv&&l!=g?l:0;this.yl=d3v3.scale.linear().range([e,0]).domain([l,g]).nice();var m=this.xb.Kt,n=this.xb.Tf,p=this.xb.Xd,t=this.xb.fw,r=!0===f.model.B.C.rF||null===f.model.B.C.rF&&1E7<g,v=this.xb.Rba,z=d3v3.svg.axis().scale(this.yl).orient("left").tickFormat(function(Q){return f.O.Eaa(v(Q,m,n,p,t,r))}),B=0,C=0,E=0;b=this.svg.append("g").attr("class","fm-y fm-axis").call(z).each(function(){B=this.getBBox().width});b.append("text").attr("class","fm-y fm-axis fm-axis-label fm-title").text(this.ps).each(function(){C=
this.getBBox().width}).style("text-anchor","end").attr("dy","-0.5em").attr("transform","translate(-"+B+", 0) rotate(-90)");b.each(function(){B=this.getBBox().width;c-=B});this.JV=B;var K=!f.v(a)&&0<a.length;if(K){var J=this.oL(a),aa=this.rL(a);J=0>J&&(!this.xb.Bv||aa==J)?0:J;aa=0>aa||this.xb.Bv&&aa!=J?aa:0;var H=!0===f.model.B.C.rF||null===f.model.B.C.rF&&1E7<J;this.uN=d3v3.scale.linear().range([e,0]).domain([aa,J]).nice();var G=this.xb.L_,F=this.xb.uda,I=this.xb.Sda,N=this.xb.Yda,L=d3v3.svg.axis().scale(this.uN).orient("right").tickFormat(function(Q){return f.O.Eaa(v(Q,
G,F,I,N,H))}),O=0,T=this.svg.append("g").attr("class","fm-y fm-axis fm-axis-2").call(L).each(function(){O=this.getBBox().width});T.append("text").attr("class","fm-y fm-axis fm-axis-label-2 fm-title").text(this.Lw).each(function(){E=this.getBBox().width}).attr("dy","1.3em").attr("transform","translate("+(O+20)+", 0) rotate(90)");T.each(function(){O=this.getBBox().width+2;c-=O}).attr("transform","translate("+c+", 0)")}var M=this.xb.Hk,V=Math.max(M.length*Math.max(this.vha?this.P1:this.xb.Zv.length*
this.P1,this.Jea),c);K&&T.attr("transform","translate("+V+", 0)");a=V>c;this.wj=d3v3.scale.ordinal().rangeRoundBands([0,V],a?0:.1).domain(M.map(function(Q){return Q.id}));M=d3v3.svg.axis().scale(this.wj).tickFormat(function(){return""}).orient("bottom");M=this.svg.append("g").attr("class","fm-x fm-axis").call(M);this.SY(M);var P,W=M.each(function(){P=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.os).attr("transform",
"translate("+(a?0:V/2)+", "+P+")"),ca=this.os;W.each(function(){this.getBBox().width>=V&&W.append("svg:title").text(ca)});e-=this.nz;e=a?e-16:e;var X=!1;M.each(function(){P=this.getBBox().height;e=(X=P>4*e/5)?1*e/5:e-P}).attr("transform","translate(0,"+e+")");b.select(".fm-y.fm-axis-label").style("text-anchor",C<e?"middle":"end").attr("transform","translate(-"+(B-20)+","+(C<e?e/2:0)+") rotate(-90)");K&&T.select(".fm-y.fm-axis-label-2").style("text-anchor",E<e?"middle":"start").attr("transform","translate("+
(O+5)+","+(E<e?e/2:0)+") rotate(90)");X&&this.s_(e+P+this.nz);var ea=Math.min(60,e/2);b.select(".tick").each(function(){var Q=this.getBBox().height;ea=Math.max(ea,Q)});M=Math.floor(e/ea);n&&1>(g-l)/M&&(M=g-l);z.ticks(M);this.yl.range([e,0]);b.call(z);K&&(L.ticks(M),this.uN.range([e,0]),T.call(L));this.vN=0<l&&0<g?this.yl.domain()[0]:0>l&&0>g?this.yl.domain()[1]:0;K&&(this.pia=0<aa&&0<J?this.uN.domain()[0]:0>aa&&0>J?this.uN.domain()[1]:0);this.rv=c;this.Ps=e;var fa=this.yl;g=fa.ticks(M);g.shift();
b.selectAll(".refline").data(g).enter().append("line").attr("class","fm-refline").attr("x1",0).attr("x2",V).attr("y1",function(Q){return fa(Q)}).attr("y2",function(Q){return fa(Q)});a&&this.hba(K?B+V+O:B+V)};d.prototype.SY=function(b){var a=this,c=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.xb.ii).enter().append("g").attr("class","fm-level");var e=b.selectAll("text").data(function(C){return C}).enter().append("text").on("click",function(C){return a.Ct(C)}).attr("class",
"fm-label").style("text-anchor","middle").text(function(C){return C.wf||C.ng?"- "+C.label:C.collapsed||C.Lg?"+ "+C.label:C.label}).style("cursor",function(C){return C.collapsed||C.wf||C.ng||C.Lg?"pointer":"auto"});b.selectAll("text").filter(function(C){return C.kf&&0<C.kf.length||C.collapsed||C.wf||C.ng||C.Lg}).append("svg:title").text(function(C){return C.kf&&0<C.kf.length?C.kf:C.collapsed||C.Lg?f.model.A.j.gP:C.wf||C.ng?f.model.A.j.fP:""});var g=0;for(g=0;g<e.length;g++)this.yM(e[g],0);var l=Math.floor(this.wj.rangeBand()),
m=[],n=0;for(g=0;g<e.length;g++){var p=this.Zya(e[g],l);m.push(p);n=Math.max(n,p)}for(g=0;g<e.length;g++)0!=m[g]&&this.yM(e[g],-n);for(g=0;g<e.length;g++)0!=m[g]&&this.yM(e[g],-n);var t=[],r=6;b.each(function(){r+=this.getBBox().height+6;t.push(this.getBBox().height)});b.attr("transform",function(C,E){r-=t[E]+6;return"translate(0, "+r+")"});t=t.reverse();for(var v=this.wj,z=1<v.range().length?(v.range()[1]-v.range()[0]-v.rangeBand())/2:0,B=0;B<this.xb.ii.length;B++)c.selectAll(".refline").data(this.xb.ii[B].slice(1)).enter().append("line").attr("class",
"fm-refline").attr("x1",function(C){return v(C.id)-z}).attr("x2",function(C){return v(C.id)-z}).attr("y1",function(){return 0}).attr("y2",function(){for(var C=0,E=t.length-B,K=0;K<E;K++)C+=t[K]+6;return C})};d.prototype.yM=function(b,a){for(var c=0;c<b.length;c++)A.Aa.Pb(b[c]).P("text-anchor","middle"),A.Aa.Pb(b[c]).attr("dy","0.38em"),A.Aa.Pb(b[c]).attr("transform",this.v0(b[c])+(0!=a?" rotate("+a+")":""))};d.prototype.v0=function(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;var c=1<
this.wj.range().length?(this.wj.range()[1]-this.wj.range()[0]-this.wj.rangeBand())/2:0;return"translate("+(this.wj(b.id)+this.wj.rangeBand()*b.sB/2+c*(b.sB-1))+", "+a+")"};d.prototype.Zya=function(b,a){var c=0,e=0;b.forEach(function(g){g=g.getBBox();c<g.width&&(c=g.width,e=g.height)});return this.Osa(a,Math.sqrt(c*c+e*e),this.Kha(Math.atan(e/c)))};d.prototype.Osa=function(b,a,c){b=Math.min(90,this.Kha(Math.acos(b/a))+c||0);if(0==b)return 0;for(a=0;a<this.ZY.length;a++)if(this.ZY[a]>b)return this.ZY[a];
return b};d.prototype.Kha=function(b){return 180*b/Math.PI};d.prototype.GR=function(b,a){var c=this.xb.Ko,e=this.wj,g=0;if(0<this.xb.Zv.length){var l=this.xb.Zv;var m=d3v3.scale.ordinal().rangeRoundBands([0,e.rangeBand()],.1).domain(l);l=m.rangeBand();var n=Math.min(l,this.mF);g=l!=n?(l-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",function(r){return"translate("+(e(r.id)+g)+",0)"});var p=this.vN;l=b.selectAll("rect").data(function(r){return r.wh}).enter().append("rect");
l.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 f.v(r.jq)?c(r.id):c(r.jq)}).append("title").text(function(r){return r.kf});this.Vk(l,h.bn.iA);if(this.xb.pD){var t=0;b=b.selectAll("text").data(function(r){return r.wh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Br}).each(function(){t=
Math.max(t,this.getBBox().width)});t>n?b.attr("y",function(r){return m(r.id)+n/2}).attr("x",function(r){var v=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;this.getBBox().width+3>Math.abs(v)&&(v-=Math.min(this.getBBox().width,Math.floor(100*Math.abs(a(p)-a(r.value)))/100));return v}).attr("dx",function(r){var v=0<r.value?-Math.floor(100*a(r.value))/100:-Math.floor(100*a(p))/100;return this.getBBox().width+3>Math.abs(v)&&this.getBBox().width+3<Math.floor(100*Math.abs(a(p)-a(r.value)))/
100?"-3px":"3px"}).attr("dy","0.38em").attr("transform","rotate(-90)"):b.style("text-anchor","middle").attr("x",function(r){return m(r.id)+n/2}).attr("y",function(r){return 0<r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("dy","-3px");b.append("title").text(function(r){return r.kf});this.Vk(b,h.bn.uE)}};d.prototype.j_=function(b,a){for(var c=this.wj,e=d3v3.svg.line().interpolate("linear").x(function(p){return c(p.id)+c.rangeBand()/2}).y(function(p){return a(p.value)}),g=0;g<
b.length;g++){var l=f.v(b[g].jq)?this.xb.Ko(b[g].id):this.xb.Ko(b[g].jq),m=this.svg.append("g"),n=m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",l).attr("d",function(p){return e(p.wh)});this.Vk(n,h.bn.iA);l=m.selectAll("circle").data(b[g].wh).enter().append("circle").attr("class","fm-circle").style("stroke",l).attr("cx",function(p){return c(p.id)+c.rangeBand()/2}).attr("cy",function(p){return a(p.value)}).attr("r",4);l.append("title").text(function(p){return p.kf});this.Vk(l,
h.bn.iA);this.xb.pD&&(m=m.selectAll("text").data(b[g].wh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Br}),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.kf}),this.Vk(m,h.bn.uE))}};h.fj=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.Au.call(this)||this;b.os="";b.ps="";b.Lw="";b.vN=0;b.pia=0;b.nz=10;b.mF=200;return b}u(d,h.Au);d.prototype.Jd=function(b,a,c){h.Au.prototype.Jd.call(this,b,a,c);this.os=b.os;this.ps=b.ps;this.Lw=b.Lw};d.prototype.Ij=function(b,a){this.rv=this.vn;this.Ps=this.un;this.mF=this.rv/5;this.xP(b);this.CY(b,a);this.svg.attr("transform","translate("+this.JV+", "+this.nz+")")};d.prototype.oL=function(b){return d3v3.max(b,function(a){return d3v3.max(a.wh,
function(c){return c.value})})};d.prototype.rL=function(b){return d3v3.min(b,function(a){return d3v3.min(a.wh,function(c){return c.value})})};d.prototype.Y3=function(b){this.pt=b};d.prototype.Ct=function(b){if(!f.v(b)&&this.pt){var a=b.data,c=b.Nv,e=b.Lg||b.ng;b.collapsed||b.wf?this.pt("expand",a,c):e&&this.pt("drill",a,c)}};d.prototype.CY=function(b){var a=this.vn,c=this.un,e=this.oL(b),g=this.rL(b);e=0>e&&(!this.xb.Bv||g==e)?0:e;g=0>g||this.xb.Bv&&g!=e?g:0;this.yl=d3v3.scale.linear().range([0,a]).domain([g,
e]).nice();var l=this.xb.Kt,m=this.xb.Tf,n=this.xb.Xd,p=this.xb.fw,t=!0===f.model.B.C.rF||null===f.model.B.C.rF&&1E7<e,r=this.xb.Rba,v=d3v3.svg.axis().scale(this.yl).orient("bottom").tickFormat(function(L){return r(L,l,m,n,p,t)}),z=this.svg.append("g").attr("class","fm-y fm-axis").call(v),B,C;z.each(function(){C=B=this.getBBox().height}).append("text").attr("class","fm-x fm-axis fm-title").attr("dy","1.2em").style("text-anchor","middle").text(this.ps).attr("transform","translate("+a/2+", "+C+")");
c-=this.nz;z.each(function(){B=this.getBBox().height;c-=B});var E=this.xb.Hk,K=Math.max(E.length*Math.max(this.xb.Zv.length*this.P1,this.Jea),c);z.attr("transform","translate(0,"+K+")");b=K>c;this.wj=d3v3.scale.ordinal().rangeRoundBands([0,K],b?0:.1).domain(E.map(function(L){return L.id}));E=d3v3.svg.axis().scale(this.wj).orient("left").tickFormat(function(){return""});var J=0;E=this.svg.append("g").attr("class","fm-x fm-axis").call(E).each(function(){J=this.getBBox().width;a-=J});this.JV=J;this.SY(E);
E.each(function(){J=this.getBBox().width});var aa=E.append("text").attr("class","fm-x fm-axis fm-axis-label fm-title").text(this.os).style("text-anchor",b?"end":"middle").attr("dy","-0.5em").attr("transform","translate(-"+J+", "+(b?0:K/2)+") rotate(-90)"),H=this.os;aa.each(function(){this.getBBox().width>=K&&aa.append("svg:title").text(H)});a=b?a-16:a;var G=!1;E.each(function(){J=this.getBBox().width;a=(G=J>4*a/5)?1*a/5:a-J});G&&this.hba(a+J);this.JV=J;E=10;var F=20,I=0;z.selectAll(".tick").each(function(){F=
this.getBBox().width;I=Math.max(I,F)});a-=F/2;I*=1.8;a/E<I&&(E=Math.floor(a/I));m&&1>(e-g)/E&&(E=e-g);v.ticks(E);this.yl.range([0,a]);z.call(v);z.select(".fm-title").attr("transform","translate("+a/2+", "+C+")");this.vN=0<g&&0<e?this.yl.domain()[0]:0>g&&0>e?this.yl.domain()[1]:0;this.rv=a;this.Ps=c;var N=this.yl;e=N.ticks(E);e.shift();z.selectAll(".refline").data(e).enter().append("line").attr("class","fm-refline").attr("y1",0).attr("y2",-K).attr("x1",function(L){return N(L)}).attr("x2",function(L){return N(L)});
e=B+K+this.nz;b&&this.s_(e)};d.prototype.SY=function(b){var a=this,c=b.append("g").attr("class","fm-axis-dividers");b=b.selectAll(".level").data(this.xb.ii).enter().append("g").attr("class","fm-level");var e=b.selectAll("text").data(function(r){return r}).enter().append("text").on("click",function(r){return a.Ct(r)}).attr("class","fm-label").style("text-anchor","middle").text(function(r){return r.wf||r.ng?"- "+r.label:r.collapsed||r.Lg?"+ "+r.label:r.label}).style("cursor",function(r){return r.collapsed||
r.wf||r.ng||r.Lg?"pointer":"auto"});b.selectAll("text").filter(function(r){return r.kf&&0<r.kf.length||r.collapsed||r.wf||r.ng||r.Lg}).append("svg:title").text(function(r){return r.kf&&0<r.kf.length?r.kf:r.collapsed||r.Lg?f.model.A.j.gP:r.wf||r.ng?f.model.A.j.fP:""});var g=0;for(g=0;g<e.length;g++)this.yM(e[g],0);var l=[],m=6;b.each(function(){m+=this.getBBox().width+6;l.push(this.getBBox().width)});b.attr("transform",function(r,v){m-=l[v];r="translate("+-m+", 0)";m-=6;return r});l=l.reverse();for(var n=
this.wj,p=1<n.range().length?(n.range()[1]-n.range()[0]-n.rangeBand())/2:0,t=0;t<this.xb.ii.length;t++)c.selectAll(".refline").data(this.xb.ii[t].slice(1)).enter().append("line").attr("class","fm-refline").attr("y1",function(r){return n(r.id)-p}).attr("y2",function(r){return n(r.id)-p}).attr("x1",function(){return 0}).attr("x2",function(){for(var r=0,v=l.length-t,z=0;z<v;z++)r+=l[z]+6;return-r})};d.prototype.yM=function(b,a){for(var c=0;c<b.length;c++)A.Aa.Pb(b[c]).P("text-anchor","end"),A.Aa.Pb(b[c]).attr("dy",
"0.38em"),A.Aa.Pb(b[c]).attr("transform",this.v0(b[c])+(0!=a?" rotate("+a+")":""))};d.prototype.v0=function(b){var a=b.getBoundingClientRect().height/2;b=b.__data__;b=this.wj(b.id)+this.wj.rangeBand()*b.sB/2;return"translate("+a+", "+b+")"};d.prototype.GR=function(b,a){var c=this.xb.Ko,e=this.wj,g=0;if(0<this.xb.Zv.length){var l=this.xb.Zv;var m=d3v3.scale.ordinal().rangeRoundBands([0,e.rangeBand()],.1).domain(l);l=m.rangeBand();var n=Math.min(l,this.mF);g=l!=n?(l-n)/2:0}b=this.svg.selectAll(".state").data(b).enter().append("g").attr("transform",
function(r){return"translate(0,"+(e(r.id)+g)+")"});var p=this.vN;l=b.selectAll("rect").data(function(r){return r.wh}).enter().append("rect").attr("class","fm-bar").attr("y",function(r){return m(r.id)}).attr("height",n).attr("x",function(r){return 0>r.value?Math.floor(100*a(r.value))/100:Math.floor(100*a(p))/100}).attr("width",function(r){return Math.floor(100*Math.abs(a(p)-a(r.value)))/100}).style("fill",function(r){return f.v(r.jq)?c(r.id):c(r.jq)});l.append("title").text(function(r){return r.kf});
this.Vk(l,h.bn.iA);if(this.xb.pD){var t=this.F.find("svg").getBoundingClientRect();b=b.selectAll("text").data(function(r){return r.wh}).enter().append("text").attr("class","fm-data-label").text(function(r){return r.Br}).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(){var 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.kf});this.Vk(b,
h.bn.uE)}};d.prototype.j_=function(b,a){for(var c=this.wj,e=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 l=f.v(b[g].jq)?this.xb.Ko(b[g].id):this.xb.Ko(b[g].jq),m=this.svg.append("g");m.append("path").datum(b[g]).attr("class","fm-line").style("stroke",l).attr("d",function(n){return e(n.wh)});m.selectAll("circle").data(b[g].wh).enter().append("circle").attr("class","fm-circle").style("stroke",l).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.kf})}};h.IN=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.fj.prototype.Ij.call(this,b);this.GR(b,this.yl)};h.P5=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.fj.prototype.Ij.call(this,b);this.j_(b,this.yl)};h.qma=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.fj.prototype.Ij.call(this,b);for(var a=this.wj,c=this.yl,e="triangle-up cross circle square triangle-down diamond".split(" "),g=0;g<b.length;g++){var l=f.v(b[g].jq)?this.xb.Ko(b[g].id):this.xb.Ko(b[g].jq),m=e[g%e.length],n=this.svg.append("g");m=d3v3.svg.symbol().type(m);m=n.selectAll(".scatter-point").data(b[g].wh).enter().append("path").attr("class",
"fm-scatter-point").attr("d",m).style("stroke",function(){return l}).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.kf});this.Vk(m,h.bn.iA);this.xb.pD&&(n=n.selectAll("text").data(b[g].wh).enter().append("text").attr("class","fm-data-label").text(function(p){return p.Br}),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.kf}),this.Vk(n,h.bn.uE))}};h.Ooa=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.Au.call(this)||this}u(d,h.Au);d.prototype.Jd=function(b,a,c){h.Au.prototype.Jd.call(this,b,a,c);this.update(b.data)};d.prototype.update=function(b){if(0!=b.length){var a=this.vn,c=Math.max(this.un,70),e=Math.min(a,c)/2;c>this.un&&this.s_(c);var g=this.xb.Ko,l=d3v3.svg.arc().outerRadius(e-20).innerRadius(0),m=d3v3.layout.pie().sort(null).value(function(z){return Math.abs(z.value)});this.svg.attr("transform","translate("+a/2+","+c/2+")");
b=this.svg.selectAll(".arc").data(m(b[0].wh)).enter().append("g").attr("class","fm-arc");b.append("path").attr("d",l).style("fill",function(z){return g(z.data.id)}).append("title").text(function(z){return z.data.kf});var n=d3v3.svg.arc().outerRadius(e-20).innerRadius(e),p=0;e=this.svg.append("g").attr("class","fm-pie-label");e.append("text").text("Test").each(function(){p=this.getBBox().height});e.remove();var t=[],r=[],v=[];b.each(function(z){var B=n.centroid(z);if(f.model.B.C.JIa||0==r.length||
2==r.length&&Math.abs(B[1]-r[1])>p||0<=r[0]&&0>=B[0])v.push(z),t.push(B),r=B});e=this.svg.selectAll(".pie-label").data(v).enter().append("g").attr("class","fm-pie-label");e.append("text").text(function(z){return z.data.label+" ("+z.data.Br+")"}).attr("transform",function(z,B){return"translate("+t[B]+")"}).attr("dy",".35em").style("text-anchor",function(z,B){return 0<t[B][0]?"start":"end"});e.selectAll("text").filter(function(z){return z.data.u1&&0<z.data.u1.length}).append("svg:title").text(function(z){return z.data.u1});
this.Vk(b,h.bn.iA);this.Vk(e,h.bn.uE);b=this.svg[0][0].getBBox();if(b.x+b.width>a/2||b.x<-a/2)e=A.Aa.Pb(this.svg[0][0]),l=d3v3.transform(e.attr("transform")),a=a/2/(a/2+Math.max(-a/2-b.x,b.x+b.width-a/2)),l.scale=[a,a],e.attr("transform",l.toString())}};h.foa=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=h.fj.call(this)||this;b.vha=!0;return b}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.oL=function(b){return d3v3.max(b,function(a){return a.oKa})};d.prototype.rL=function(b){return d3v3.min(b,function(a){return a.nKa})};d.prototype.Ij=function(b){this.xP(b);b.forEach(function(p){var t=0,r=0;p.wh.forEach(function(v){0<=v.value?(v.W4=t,t+=v.value,v.y1=t):(v.y1=r,r+=v.value,v.W4=r)});
p.nKa=r;p.oKa=t});h.fj.prototype.Ij.call(this,b);var a=this.xb.Ko,c=this.wj,e=this.yl;var g=c.rangeBand();0<this.xb.Zv.length&&(g=this.xb.Zv,g=d3v3.scale.ordinal().rangeRoundBands([0,c.rangeBand()],.1).domain([g[0]]),g=g.rangeBand());var l=Math.min(g,this.mF),m=g!=l?(g-l)/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.wh}).enter().append("rect").attr("width",
l).attr("y",function(p){return Math.round(100*e(p.y1))/100}).attr("height",function(p){return Math.round(100*Math.abs(e(p.W4)-e(p.y1)))/100}).style("fill",function(p){return a(p.id)});g.append("title").text(function(p){return p.kf});b.selectAll("path").data(function(p){return p.wh}).enter().append("path").attr("d",function(p){return"M0 "+Math.round(100*e(p.y1))/100+" l"+l+" 0"});this.Vk(g,h.bn.iA);if(this.xb.pD){var n=0;b=b.selectAll("text").data(function(p){return p.wh}).enter().append("text").attr("class",
"fm-data-label").text(function(p){return p.Br}).each(function(){n=Math.max(n,this.getBBox().height)});b.text(function(p){return n+1>Math.round(100*Math.abs(e(p.W4)-e(p.y1)))/100?"":p.Br});g=Math.floor(n);b.style("text-anchor","middle").attr("x",function(){return l/2}).attr("y",function(p){return Math.round(100*e(p.y1))/100}).attr("dy",g+"px");b.append("title").text(function(p){return p.kf});this.Vk(b,h.bn.uE)}};h.Uoa=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.fj.call(this)||this}u(d,h.fj);d.prototype.Jd=function(b,a,c){h.fj.prototype.Jd.call(this,b,a,c);this.Ij(b.data,b.Nv)};d.prototype.Ij=function(b,a){h.fj.prototype.Ij.call(this,b,a);this.GR(b,this.yl);this.j_(a,this.uN)};h.Wja=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return h.IN.call(this)||this}u(d,h.IN);d.prototype.Jd=function(b,a,c){h.IN.prototype.Jd.call(this,b,a,c);this.Ij(b.data)};d.prototype.Ij=function(b){h.IN.prototype.Ij.call(this,b);this.GR(b,this.yl)};h.Uia=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vf.vo.call(this)||this;a.UZ();a.zK();return a}u(b,A.Vf.vo);b.prototype.UZ=function(){null==this.oC&&(this.oC=new A.Aa("span","fm-icon-display"))};b.prototype.zK=function(){null==this.bo&&(this.bo=new A.Aa("span","fm-text-display"))};b.prototype.gb=function(){var a=this.getData();this.F.empty();0==a.zf&&this.oC.P("background-color",a.color);this.F.append(this.oC);this.bo.html(a[this.rq()]);var c=a.kf;c&&0<c.length&&this.bo.attr("title",
c);a.isCollapsed||a.IG?this.F.attr("title",f.model.A.j.gP):(a.zf||a.Pg)&&this.F.attr("title",f.model.A.j.fP);this.F.Y("fm-level-"+a.level);this.F.append(this.bo);f.v(a.measure)||isNaN(a.measure.index)||this.F.attr("data-measure-index",a.measure.index);this.F.Ua(k.X.W.ua.UV,a.isCollapsed||a.IG);this.F.Ua(k.X.W.ua.iW,a.zf||a.Pg);this.Vk(this.F.element,h.bn.kma)};b.prototype.Vk=function(a,c){if(f.pg(h.Du.BB)){var e=this.getData().La();e.type=c;e.chartType=f.model.B.C.OQ;h.Du.BB(a,e)}};d.pma=b})(h.Te||
(h.Te={}))})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=A.Vb.ye.call(this)||this;c.$M=!0;c.$M=a;c.F.$k();c.color=d3v3.scale.category20c();f.model.B.C.fha&&(c.VM=new A.Jf,c.$M?c.VM.Y("fm-chart-legend-btn fm-hide"):c.VM.Y("fm-chart-legend-btn fm-show"),c.VM.F.attr("title",c.$M?f.model.A.j.bja:f.model.A.j.dja),c.VM.N(A.sd.Xe,function(){return c.xFa()}),c.V(c.VM));c.OG=new A.Aa("div");c.OG.Y("fm-chart-legend-container");c.$M&&c.F.append(c.OG);return c}u(b,A.Vb.ye);b.prototype.xFa=function(){this.Wa(y.da.Qd)};
b.prototype.lIa=function(a){this.color=a};b.prototype.Jd=function(a){var c=this;if(this.$M){this.OG.ww();this.OG.Ua("fm-legend-btn-shown",f.model.B.C.fha);for(var e=new A.Aa("table"),g=new A.Aa("tr"),l=0;l<a.length;l++){for(var m=0;m<a[l].length;m++)a[l][m].zf||a[l][m].Pg||(a[l][m].color=this.color(a[l][m].id));m=new A.Aa("td");var n=new A.hd.zh;n.Y("fm-legend-lst-"+l);n.Lh(this.bu);n.Xf("label");n.useCache=!1;n.Cf(a[l]);n.N(y.da.Qd,function(p){return c.lU(p)});m.append(n.F);g.append(m)}e.append(g);
this.OG.append(e)}};b.prototype.kIa=function(a){this.pt=a};b.prototype.bu=function(a,c){var e=new d.pma;e.setData(a);e.am(c);return e};b.prototype.lU=function(a){a=a.data.Fk;var c=a.IG||a.Pg;a.isCollapsed||a.zf?this.pt("expand",a.We,a.Xb):c&&this.pt("drill",a.We,a.Xb)};d.Rja=b})(h.Te||(h.Te={}))})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.lya=function(b){switch(b){case h.xe.Dz:b=new h.P5;break;case h.xe.ID:b=new h.Uia;break;case h.xe.xI:b=new h.qma;break;case h.xe.VI:b=new h.Ooa;break;case h.xe.Ou:b=new h.foa;break;case h.xe.kA:b=new h.Uoa;break;case h.xe.TD:b=new h.Wja;break;default:b=new h.P5}return b};h.Qja=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.j7=50;b.model=f.model.Ta.U();b.Y("fm-charts-view");b.ue();b.K8=new h.Tja(b);return b}u(d,A.Vb.ye);d.prototype.dispose=function(){this.model=this.G=null;this.Zp&&this.Zp.dispose();this.Zp=null};d.prototype.gb=function(){if(!(1>f.model.Ea.pc.oj())){null==this.Zp&&(this.Zp=this.Sua(),this.F.V(this.Zp));this.Zp.clear();this.Zp.G=this.G;this.Zp.resize(k.Hb.vn,k.Hb.un);this.Zp.xb=null;if(this.G&&this.G.mj){if(null==this.S_()){f.Va(f.model.A.j.eja,
f.model.A.j.ya);return}this.Zp.xb=this.Rua()}this.Zp.gb()}};d.prototype.Sua=function(){var b=this,a=new h.Uja;a.N("chart_changed",function(){return b.dDa()});a.N(k.pi.Uw,function(c){return b.iU(c)});a.N("dblclick",function(c){return b.fDa(c)});a.N("click",function(c){return b.eDa(c)});return a};d.prototype.dDa=function(){this.gb()};d.prototype.iU=function(b){this.Da(b)};d.prototype.YAa=function(b){b=A.Aa.Pb(b);return b.closest(".fm-charts-filters-container")||b.closest(".fm-charts-filters-btn")?!0:
!1};d.prototype.cH=function(b){b=A.Aa.Pb(b).closest(".fm-charts-filter");null!=b&&(b=f.u.Na.U().I.Mg(b.attr("data-hierarchy")),null!=b&&this.Da(new k.kO(b)))};d.prototype.Nj=function(b,a,c){f.model.vc.Hz.Wf(this,b,void 0===a?!1:a,void 0===c?null:c)};d.prototype.print=function(b){b=void 0===b?null:b;if(this.Xda){var a=f.model.vc.Hz.NR(this,null,!0);a=f.model.vc.Hz.yK(f.model.$r.nE.U().B.zi)+a+f.model.vc.Hz.yK(f.model.$r.nE.U().B.Wi)}else a=f.model.vc.Hz.sba(this,null,!0);!f.ha(f.model.B.C.Dm)&&this.Xda&&
(a="<center><div style='"+k.X.W.Yc.ly(this.F.find(".fm-chart-title"))+"'>"+f.model.B.C.Dm+"</div></center>"+a);null!=b?b(a):(D.R7.print(a,"",f.model.B.C.Dm),f.model.$r.nE.U().jfa());f.model.vc.Hz.clear()};d.prototype.Rua=function(){var b=new h.W.Sja;b.type=f.model.B.C.OQ;b.Bv=f.model.B.C.Bv;b.pD=f.model.B.C.LIa;b.at=this.S_();b.Ny=f.model.B.C.lK&&(b.type==h.xe.Dz||b.type==h.xe.ID||b.type==h.xe.xI||b.type==h.xe.VI);b.Kt=b.at.Dh(b.at.uniqueName,b.at.$).clone();b.Tf=f.u.i.ca.Tf(b.at.$);b.Xd=f.u.i.ca.Xd(b.at.$);
b.Kt.pd=b.at.$==f.u.i.ca.li?"":b.Kt.pd;b.fw=b.at.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(b.at.$);b.Rba=this.Qba;var a="on"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef?this.G.Fd-1:this.G.Fd,c="on"==f.model.B.C.Ef||"columns"==f.model.B.C.Ef?this.G.Ed-1:this.G.Ed;0==a&&(a=1);0==c&&(c=1);var e=3E3<c*a?3E3:-1;b.PJ=b.Ny?this.Xba():[b.at];f.model.B.C.Io&&(null!=this.G.DT&&(f.model.B.C.Cv=this.G.DT),null!=this.G.BT&&(f.model.B.C.sF=this.G.BT),0==this.pza(f.model.B.C.Cv)&&(f.model.B.C.Cv=[]),0==this.qza(f.model.B.C.sF)&&
(f.model.B.C.sF=[]));var g=!1;switch(b.type){case h.xe.Dz:case h.xe.ID:case h.xe.kA:g=this.Kfa(b,a,c,b.PJ,b.data,b.Ny&&1<b.PJ.length,void 0,e);break;case h.xe.xI:case h.xe.VI:g=this.Lfa(b,a,c,b.PJ,b.data,b.Ny&&1<b.PJ.length,void 0,e);break;case h.xe.Ou:g=this.JGa(b,a,c,b.at,e);break;case h.xe.TD:g=0<this.G.measures.length?this.G.measures[0]:null;var l=1<this.G.measures.length?this.G.measures[1]:null;b.Kt=g.Dh(g.uniqueName,g.$).clone();b.Tf=f.u.i.ca.Tf(g.$);b.Xd=f.u.i.ca.Xd(g.$);b.Kt.pd=g.$==f.u.i.ca.li?
"":b.Kt.pd;b.fw=g.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(g.$);f.v(l)||(b.L_=l.Dh(l.uniqueName,l.$).clone(),b.uda=f.u.i.ca.Tf(l.$),b.Sda=f.u.i.ca.Xd(l.$),b.L_.pd=l.$==f.u.i.ca.li?"":b.L_.pd,b.Yda=l.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(l.$));g=this.IGa(b,a,c,g,l,e)}f.model.B.C.OIa&&g&&f.Va(f.model.A.j.fja,f.model.A.j.t8,f.rb.Ik);this.HGa(b);b.type!=h.xe.Ou&&(b.os=this.Uza(),b.type==h.xe.TD?(g=0<this.G.measures.length?this.G.measures[0]:null,l=1<this.G.measures.length?this.G.measures[1]:null,b.ps=null!=g?g.label:
"",b.Lw=null!=l?l.label:""):(f.model.B.C.lK?(a=this.Xba(),b.ps=1==a.length?a[0].label:""):b.ps=this.S_().label,b.Lw=""));return b};d.prototype.HGa=function(b){if(f.v(this.i4)||0==this.i4.length)this.i4=this.qya();b.Ko=d3v3.scale.ordinal().range(this.i4);if(b.Te&&0<b.Te.length){var a=[],c=[],e,g;for(e=0;e<b.Te.length;e++){var l=b.Te[e][0].id;var m=b.Ko(l);b.Te[e][0].zf||(a.push(l),c.push(m));l=[];for(g=1;g<b.Te[e].length;g++)b.Te[e][g].zf||l.push(b.Te[e][g].id);a=a.concat(l);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,l.length+1]).range([g,m]);g=1;for(l=0;g<b.Te[e].length;g++)b.Te[e][g].zf||(c.push(m(l).toString()),l++)}b.Ko=d3v3.scale.ordinal().domain(a).range(c)}};d.prototype.qya=function(){var b=[],a=1,c=new A.Aa("div");c.$a();for(k.Hb.zb.F.V(c);100>a;){c.w3("class");c.Y("fm-charts-color-"+a);var e=window.getComputedStyle(c.element).fill;f.ha(e)&&(e="#000");if("none"!=e)b.push(e);else break;a++}c.remove();return b};d.prototype.S_=function(){var b=
this.G.measures.find(function(l){return l.uniqueName===f.model.B.C.Ho.uniqueName});if(null!=b&&(""!=f.model.B.C.Ho.$||f.model.B.C.Ho.index)){var a=!0,c=!0;for(g=0;g<this.G.measures.length;g++){var e=this.G.measures[g];if(e.uniqueName==f.model.B.C.Ho.uniqueName)if(""==f.model.B.C.Ho.$){b=e;break}else if(e.$==f.model.B.C.Ho.$)if(a=!1,null==f.model.B.C.Ho.index||-1==f.model.B.C.Ho.index){b=e;break}else if(e.index==f.model.B.C.Ho.index){b=e;c=!1;break}}a&&(f.model.B.C.Ho.$="");c&&(f.model.B.C.Ho.index=
-1)}if(null==b)if(f.model.B.C.oc)for(var g=0;g<this.G.measures.length&&(b=this.G.measures[g],b.type==f.u.i.Ja.sc||b.type==f.u.i.Ja.Oa);g++);else b=this.G.measures[0];return b};d.prototype.Xba=function(){var b=[],a=f.model.B.C.kK;if(0<a.length)for(var c=[],e=0;e<a.length;e++){for(var g=a[e],l,m=!0,n=!0,p=0;p<this.G.measures.length;p++){var t=this.G.measures[p];if(t.uniqueName==g.uniqueName)if(-1==c.indexOf(t.index)&&(l=t),""==g.$)break;else if(t.$==g.$)if(m=!1,null==g.index||-1==g.index){if(-1==c.indexOf(t.index)){l=
t;break}}else if(t.index==g.index){l=t;n=!1;break}}m&&(f.model.B.C.kK[e].$="");n&&(f.model.B.C.kK[e].index=-1);null!=l&&(c.push(l.index),b.push(l))}else b=this.G.measures.slice();0==b.length&&(b=this.G.measures.slice(),f.model.B.C.kK=[]);return b};d.prototype.pza=function(b){for(var a=0,c,e=0;e<this.G.Ed;e++)c=this.G.Lm(e),this.RQ(b,c)&&a++;return a};d.prototype.qza=function(b){for(var a=0,c,e=0;e<this.G.Fd;e++)c=this.G.nj(e),this.SQ(b,c)&&a++;return a};d.prototype.RQ=function(b,a){return a.length!=
b.length+1||0!=b.length&&0!=a.join(",").indexOf(b.join(",")+",")?!1:!0};d.prototype.SQ=function(b,a){return a.join()==b.join()||a.length==b.length+1&&(0==b.length||0==a.join(",").indexOf(b.join(",")+","))?!0:!1};d.prototype.Uza=function(){for(var b=[],a=0;a<this.G.rows.length;a++)b.push(this.G.rows.ea(a).label);return b.join(" / ")};d.prototype.wca=function(b){for(var a=[],c,e=0;e<b.length;e++)c=b[e],c=c.Dh(c.uniqueName,c.$).clone(),a.push(c);return a};d.prototype.xL=function(b,a,c,e,g,l){l=void 0===
l?"":l;a=c+": "+a;b.type==h.xe.Ou&&0<l.length&&(a+=" of "+l);c=this.G.Sb.Ra&&1==this.G.columns.length;e=this.G.ic.Ra&&1==this.G.rows.length?"":this.w0(e,f.u.i.ia.Ia,!1,null,!0);g=c?"":this.w0(g,f.u.i.ia.Sa,!1,null,!0);e=this.Wv(e);g=this.Wv(g);0<e.length&&(a=a+"\n"+e);0<g.length&&(a=a+"\n"+g);b.type!=h.xe.Ou&&0<l.length&&(a=a+"\nTotal: "+l);return a};d.prototype.w0=function(b,a,c,e,g){e=void 0===e?null:e;g=void 0===g?!1:g;if((void 0===c?0:c)&&a==f.u.i.ia.Ia)return null!=e?e.hierarchy.label+": "+e.caption:
f.model.A.j.gpa+" "+(b[0]+1).toString();c=[];a=a==f.u.i.ia.Sa?this.G.Cb:this.G.vb;for(var l,m=0;m<b.length;m++)e=a.ea(m),null!=e&&(l=b[m],c.push(this.Aea(e.va(l),g)));return c.join(" - ")};d.prototype.fDa=function(b){this.yda(b.target)&&this.drillThrough(b.target)};d.prototype.eDa=function(b){b=this.nS(b.target,!0);f.v(b)||f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.v5,b))};d.prototype.yda=function(b){if(f.v(f.u.Na.U().fa)||!f.u.Na.U().fa.gT||!f.model.B.C.drillThrough)return!1;b=b.__data__;null!=
b&&b.data&&(b=b.data);return b&&b.measure&&null==this.model.ga.I.$c(b.measure.uniqueName)?!1:b&&b.measure&&b.lg&&b.Qg};d.prototype.drillThrough=function(b){var a=b.__data__;null!=a&&a.data&&(a=a.data);b=new k.d6(a.measure,a.lg,a.Qg,this.nS(b,!0));this.Da(b)};d.prototype.Aea=function(b,a){a=void 0===a?!1:a;var c="";if(!f.v(b)){for(var e=[];!f.v(b.parent);)e.unshift(b.caption),b=b.parent;c=a?b.hierarchy.label+": ":"";c+=e.join("/")}return c};d.prototype.Wv=function(b){return b=b.length<=this.j7?b:b.substr(0,
this.j7)+"..."};d.prototype.Pg=function(b,a){if(0==b.length)return!1;var c=a==f.u.i.ia.Sa?this.G.columns:this.G.rows;if(0==c.length)return!1;c=c.ea((a==f.u.i.ia.Sa?this.G.Sb:this.G.ic).Ra&&(0==b.length||b.length>this.G.He)?b.length:b.length-1).va(b[b.length-1]);return a==f.u.i.ia.Sa?this.G.Rj(b,c):this.G.Hh(b,c)};d.prototype.MY=function(b,a,c){if(0!=a.length){var e=c==f.u.i.ia.Sa?this.G.Sb:this.G.ic,g=c==f.u.i.ia.Sa?this.G.columns:this.G.rows;if(0!=g.length){var l=e.Ra&&1==g.length,m=g.ea(e.Ra&&a.length>
this.G.He?a.length:a.length-1);e=m.va(a[a.length-1]);var n=g=l?m.label:e.caption;g=this.Wv(g);n=g!=n?n:"";g=f.O.In(g,!0,!0);l=l?"":e.level.uniqueName;l=c==f.u.i.ia.Sa?this.G.cR.indexOf(l):this.G.Tm.indexOf(l);var p=this.sq(a),t=c==f.u.i.ia.Sa?this.G.Sj(a):this.G.Ih(a),r=c==f.u.i.ia.Sa?this.G.Rj(a,e):this.G.Hh(a,e),v=a.length<(c==f.u.i.ia.Sa?this.G.Em:this.G.Sm)&&!t&&!r;m=m.qg&&!e.Bi&&!e.Wb&&!e.ah&&!t&&!r;0!=l&&0!=b.length||b.push([]);b[b.length-1].push(new h.W.g7({label:g,id:p,We:a,LJa:c,Xb:e,level:l,
zf:t,isCollapsed:v,Pg:r,IG:m,kf:n}))}}};d.prototype.sq=function(b){return b.join("-")};d.prototype.RY=function(b,a,c,e,g,l){e=void 0===e?!1:e;g=void 0===g?null:g;l=void 0===l?null:l;var m=c==f.u.i.ia.Sa?this.G.Sb:this.G.ic,n=c==f.u.i.ia.Sa?this.G.Cb:this.G.vb,p=m.Ra&&1==n.length,t=a.length-1,r=n.ea(t);if(null==r)return b.Hk.push({label:"",id:this.sq(a)}),"";t=a[a.length-1];t=r.va(t);var v="";if(0<a.length)if(e)v=null!=g?g.caption:(a[0]+1).toString();else if(0<n.length){v=p?r.label:t.caption;var z=
p?"":t.level.uniqueName}g=this.sq(a);var B=this.Wv(p?"":v);b.Hk.push({label:B,id:g});z=this.G.Tm.indexOf(z);null==b.ii[z]&&(b.ii[z]=[]);var C=f.model.B.C.Io?a.length<=f.model.B.C.Cv.length:p?!1:c==f.u.i.ia.Sa?this.G.Sj(a):this.G.Ih(a);var E=c==f.u.i.ia.Sa?this.G.Em:this.G.Sm;b.ii[z].push({label:B,id:g,data:a,Nv:t,wf:C,collapsed:p?!1:!C&&a.length<E,ng:!1,Lg:p?!1:r.qg&&!t.Bi&&!t.Wb&&!t.ah,sB:1,kf:B!=v?v:""});this.QY(b,a,t,c,g);for(e=e?0:a.length-1;0<e;)e--,t=m.Ra&&e+1>this.G.He?e+1:e,r=n.ea(t),t=a[e],
t=r.va(t),z=t.level.uniqueName,z=this.G.Tm.indexOf(z),null==b.ii[z]&&(b.ii[z]=[]),r=p?r.label:t.caption,B=this.Wv(r),r=B!=r?r:"",C=l.pop(),void 0===C?b.ii[z][b.ii[z].length-1].sB++:b.ii[z].push({label:B,id:g,data:C,Nv:t,wf:!0,collapsed:!1,ng:!1,Lg:!1,sB:1,kf:r}),this.QY(b,a,t,c,g);return v};d.prototype.QY=function(b,a,c,e,g){try{c.level.sb}catch(r){c.level.sb}if(c&&1<c.level.sb){var l=this.G.Tm.indexOf(c.parent.level.uniqueName);null==b.ii[l]&&(b.ii[l]=[]);var m=c.parent.caption,n=m;m=this.Wv(m);
n=m!=n?n:"";if(m===(0<b.ii[l].length?b.ii[l][b.ii[l].length-1].label:""))b.ii[l][b.ii[l].length-1].sB++;else{var p=(e==f.u.i.ia.Sa?this.G.Cb:this.G.vb).indexOf(c.hierarchy.uniqueName),t=a.slice(0,p);t[p]=c.parent.ordinal;b.ii[l].push({label:m,id:g,data:t,Nv:c.parent,wf:!1,collapsed:!1,ng:!0,Lg:!1,sB:1,kf:n})}this.QY(b,a,c.parent,e,g)}};d.prototype.J=function(b,a){if(0==b.length)return"";var c=a==f.u.i.ia.Sa?this.G.Sb:this.G.ic,e=a==f.u.i.ia.Sa?this.G.columns:this.G.rows;if(0==e.length)return"";a=
c.Ra&&1==e.length;c=e.ea(c.Ra&&(0==b.length||b.length>this.G.He)?b.length:b.length-1);b=b[b.length-1];return a?c.label:this.Aea(c.va(b))};d.prototype.DQ=function(b,a,c){b.push([]);b[b.length-1].push(new h.W.g7({label:a.label,id:c,measure:a,level:0,zf:!1,isCollapsed:!1,Pg:!1,IG:!1,kf:""}))};d.prototype.Yo=function(b,a,c,e,g,l,m,n){return this.model.Ga.fa.Ba!=f.u.i.oa.Nc&&this.model.Ga.fa.Ba!=f.u.i.oa.Zd||!f.model.B.C.Jq||e.$!=f.u.i.ca.NONE?this.Qba(b,g,l,m,n):this.G.Yo(a,c,e)};d.prototype.Qba=function(b,
a,c,e,g,l){l=void 0===l?!1:l;return g?f.O.Hw(b,f.model.B.C.Cp):e?x.Tb.format(b,a,c,e):l?x.Tb.IIa(b,a,c,e):x.Tb.format(b,a,c,e)};d.prototype.Lfa=function(b,a,c,e,g,l,m,n){var p=!1;l=void 0===l?!1:l;p=void 0===p?!1:p;m=void 0===m?null:m;n=void 0===n?-1:n;var t=!0,r=!p,v=[],z=this.G.Sb.Ra&&1==this.G.columns.length,B=this.G.ic.Ra&&1==this.G.rows.length;var C="";var E=NaN,K,J=e[0],aa=this.wca(e),H=aa[0],G=f.u.i.ca.Tf(J.$),F=f.u.i.ca.Xd(J.$);H.pd=J.$==f.u.i.ca.li?"":H.pd;var I=J.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(J.$);
if(null!=m)var N=this.G.nj(this.model.ga.sa.rows.indexOf(m.uniqueName)),L=this.model.ga.I.Ee(m.uniqueName);var O=!1,T=c;for(c=0;c<a;c++){var M=c;M=this.G.nj(M);if(!f.model.B.C.Io||this.SQ(f.model.B.C.sF,M)||z||0==this.G.columns.length){var V=p?!1:this.Pg(M,f.u.i.ia.Sa);l||p||z||this.MY(v,M,f.u.i.ia.Sa);if(!V){if(!p&&0<this.G.columns.length&&0<M.length){var P=[];if(!l&&(E=this.G.Fa(P,M,J),!this.Ey(E)))continue;C=this.G.Sb.Ra&&(0==M.length||M.length>this.G.He)?M.length:M.length-1;C=this.G.columns.ea(C);
var W=M[M.length-1];C=z?C.label:C.va(W).caption}V=0==M.length?!1:this.G.Sj(M);if(!V){W=[];var ca=[];if(l){for(var X=0;X<e.length;X++){J=e[X];G=f.u.i.ca.Tf(J.$);F=f.u.i.ca.Xd(J.$);aa[X].pd=J.$==f.u.i.ca.li?"":aa[X].pd;I=J.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(J.$);r&&this.DQ(v,J,X.toString());W=[];for(K=0;K<T;K++){P=this.G.Lm(K);var ea=this.sq(P);if(V=0==P.length?!1:this.G.Ih(P))if(ca.push(P),!f.model.B.C.Io)continue;V=this.Pg(P,f.u.i.ia.Ia);if(!V&&(!f.model.B.C.Io||this.RQ(f.model.B.C.Cv,P)||B||0==this.G.rows.length)){V=
t?this.RY(b,P,f.u.i.ia.Ia,null,null,ca.splice(0)):this.J(P,f.u.i.ia.Ia);ca=[];var fa=this.G.Fa(P,M,J);if(this.Ey(fa)){var Q=this.Yo(fa,P,M,J,aa[X],G,F,I);var la=this.xL(b,Q,J.label,P,M);W.push({label:V,value:fa,Br:Q,id:ea,kf:la,measure:{uniqueName:J.uniqueName,$:J.$,index:J.index},Qg:P,lg:M})}if(t&&0<b.Hk.length&&(ea=b.Hk.length,-1<n&&ea>=n)){T=K+1;O=!0;break}}}t=!1;ea=this.sq(M)+"-"+X;K=X.toString();g.push({label:C,value:E,id:ea,jq:K,wh:W})}r=!1}else{for(K=0;K<T;K++){P=this.G.Lm(K)||[];ea=this.sq(P);
if(V=0==P.length?!1:this.G.Ih(P))if(ca.push(P),!f.model.B.C.Io)continue;V=p?!1:this.Pg(P,f.u.i.ia.Ia);if(!V&&(!f.model.B.C.Io||this.RQ(f.model.B.C.Cv,P)||B||0==this.G.rows.length)){if(t){if(null!=m){var ia=this.G.Fa(P,N,L);ia=m.va(ia)}V=this.RY(b,P,f.u.i.ia.Ia,p,ia,ca.slice(0))}else V=this.J(P,f.u.i.ia.Ia);ca=[];fa=this.G.Fa(P,M,J);this.Ey(fa)&&(Q=this.Yo(fa,P,M,J,H,G,F,I),la=this.xL(b,Q,p?J.Yl:J.label,P,M,""),W.push({label:V,value:fa,Br:Q,id:ea,kf:la,measure:{uniqueName:J.uniqueName,$:J.$,index:J.index},
Qg:P,lg:M}));if(t&&0<b.Hk.length&&(ea=b.Hk.length,-1<n&&ea>=n)){T=K+1;O=!0;break}}}t=!1;ea=this.sq(M);g.push({label:C,value:E,id:ea,lg:M,wh:W})}}}}}b.Te=v;return O};d.prototype.Kfa=function(b,a,c,e,g,l,m,n){var p=!1;l=void 0===l?!1:l;p=void 0===p?!1:p;m=void 0===m?null:m;n=void 0===n?-1:n;var t=!p,r=!0,v=[],z=[],B=this.G.ic.Ra&&1==this.G.rows.length,C=this.G.Sb.Ra&&1==this.G.columns.length;var E="";var K=NaN,J,aa,H,G,F=e[0],I=this.wca(e),N=I[0],L=f.u.i.ca.Tf(F.$),O=f.u.i.ca.Xd(F.$);N.pd=F.$==f.u.i.ca.li?
"":N.pd;var T=F.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(F.$);if(null!=m)var M=this.G.nj(this.model.ga.sa.rows.indexOf(m.uniqueName)),V=this.model.ga.I.Ee(m.uniqueName);var P=!1,W=a,ca=[];for(H=0;H<c;H++){var X=this.G.Lm(H)||[];if(!p){if(aa=0==X.length?!1:this.G.Ih(X))if(ca.push(X),!f.model.B.C.Io)continue;if(J=this.Pg(X,f.u.i.ia.Ia))continue}if(!f.model.B.C.Io||this.RQ(f.model.B.C.Cv,X)||B||0==this.G.rows.length){if(null!=m){J=this.G.Fa(X,M,V);var ea=m.va(J)}var fa=this.RY(b,X,f.u.i.ia.Ia,p,ea,ca.slice(0));
ca=[];if(!p){var Q=[];if(!l&&(K=this.G.Fa(X,Q,F),!this.Ey(K)&&!f.u.i.ca.OL(F.$)))continue}var la=[];var ia=this.Yo(K,X,Q,F,b.Kt,b.Tf,b.Xd,b.fw);for(G=0;G<W;G++)if(Q=G,Q=this.G.nj(Q),!f.model.B.C.Io||this.SQ(f.model.B.C.sF,Q)||C||0==this.G.columns.length){var R=this.sq(Q);aa=0==Q.length?!1:this.G.Sj(Q);J=p?!1:this.Pg(Q,f.u.i.ia.Sa);l||(t&&!C&&this.MY(v,Q,f.u.i.ia.Sa),r&&(aa||J||z.push(R)));if(!J&&(!p&&0<this.G.columns.length&&0<Q.length&&(E=this.G.Sb.Ra&&(0==Q.length||Q.length>this.G.He)?Q.length:
Q.length-1,E=this.G.columns.ea(E),J=Q[Q.length-1],E=C?E.label:E.va(J).caption),!aa))if(l){for(var S,Y=0;Y<e.length;Y++){F=e[Y];L=f.u.i.ca.Tf(F.$);O=f.u.i.ca.Xd(F.$);I[Y].pd=F.$==f.u.i.ca.li?"":I[Y].pd;T=F.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(F.$);S=R+"-"+Y;var ba=Y.toString();t&&this.DQ(v,F,Y.toString());r&&(aa||z.push(S));J=this.G.Fa(X,Q,F);if(this.Ey(J)){var Z=this.Yo(J,X,Q,F,I[Y],L,O,T);var ha=b.type==h.xe.kA?ia:"";ha=this.xL(b,Z,F.label,X,Q,ha);la.push({label:E,value:J,Br:Z,id:S,jq:ba,kf:ha,measure:{uniqueName:F.uniqueName,
$:F.$,index:F.index},Qg:X,lg:Q})}if(-1<n&&z.length>=n){W=G+1;break}}t=!1}else if(J=this.G.Fa(X,Q,F),this.Ey(J)&&(Z=this.Yo(J,X,Q,F,N,L,O,T),ha=b.type==h.xe.kA?ia:"",ha=this.xL(b,Z,p?F.Yl:F.label,X,Q,ha),la.push({label:E,value:J,Br:Z,id:R,kf:ha,measure:{uniqueName:F.uniqueName,$:F.$,index:F.index},Qg:X,lg:Q})),-1<n&&z.length>=n){W=G+1;break}}r=t=!1;R=this.sq(X);g.push({label:fa,value:K,id:R,wh:la});X=b.type==h.xe.kA?b.Hk.length:b.Hk.length*a;if(-1<n&&X>=n){P=!0;break}}}b.Te=v;b.Zv=z;return P};d.prototype.JGa=
function(b,a,c,e,g){var l=!1,m=void 0;l=void 0===l?!1:l;m=void 0===m?null:m;g=void 0===g?-1:g;b.EC=f.u.i.ia.Ia;var n=!l,p=[],t=this.G.Sb.Ra&&1==this.G.columns.length,r;var v=r="";var z=NaN,B,C,E=f.model.B.C.NQ;if(E>=a||-1==E)E=f.model.B.C.NQ=0;if(null!=m)var K=this.G.nj(this.model.ga.sa.rows.indexOf(m.uniqueName)),J=this.model.ga.I.Ee(m.uniqueName);var aa=!1;for(C=0;C<a;C++){var H=C;H=this.G.nj(H);if(!l){var G=[];z=this.G.Fa(G,H,e);if(0<this.G.columns.length&&0<H.length){var F=this.G.Sb.Ra&&(0==H.length||
H.length>this.G.He)?H.length:H.length-1;v=this.G.columns.ea(F);F=H[H.length-1];v=t?v.label:v.va(F).caption;v=this.Wv(v)}var I=t?"":this.w0(H,f.u.i.ia.Sa);I=this.Wv(I);b.Hk.push({label:I,id:this.sq(H)});if(!this.Ey(z))continue;if(b.Hk.length-1!=E&&1!=a)continue}var N=[];var L=this.Yo(z,G,H,e,b.Kt,b.Tf,b.Xd,b.fw);I=this.G.ic.Ra&&1==this.G.rows.length;for(B=0;B<c;B++)if(G=this.G.Lm(B)||[],!f.model.B.C.Io||this.SQ(f.model.B.C.Cv,G)||I||0==this.G.rows.length){var O=this.G.Fa(G,H,e);if(this.Ey(O)&&(F=l?
!1:this.Pg(G,f.u.i.ia.Ia),n&&!I&&this.MY(p,G,f.u.i.ia.Ia),!F&&(F=0==G.length?!1:this.G.Ih(G),!F))){if(l){if(null!=m){var T=this.G.Fa(G,K,J);T=m.va(T)}r=null!=T?T.caption:(B+1).toString()}else 0<this.G.rows.length&&(F=this.G.ic.Ra&&(0==G.length||G.length>this.G.He)?G.length:G.length-1,r=this.G.rows.ea(F),F=G[G.length-1],r=I?r.label:r.va(F).caption);F=this.sq(G);var M=this.Yo(O,G,H,e,b.Kt,b.Tf,b.Xd,b.fw);var V=this.xL(b,M,l?e.Yl:e.label,G,H,L);var P=r;r=this.Wv(r);P=I||P==r?"":P;N.push({label:I?"":
r,value:O,Br:M,id:F,kf:V,measure:{uniqueName:e.uniqueName,$:e.$,index:e.index},Qg:G,lg:H,u1:P});O=N.length;if(-1<g&&O>=g){aa=!0;break}}}n=!1;F=this.sq(H);b.data.push({label:v,value:z,id:F,lg:H,wh:N})}b.Te=p;return aa};d.prototype.IGa=function(b,a,c,e,g,l){l=this.Kfa(b,a,c,[e],b.data,!1,null,void 0===l?-1:l);if(!f.v(g)){var m=-1;l&&(m=b.Hk.length);b.Hk=[];b.ii=[];var n=b.Te;b.Te=[];this.Lfa(b,a,c,[g],b.Nv,!1,null,m);0==n.length&&(this.DQ(n,e,"0"),this.DQ(n,g,"1"));b.Te=n;1==b.Nv.length&&(b.Nv[0].jq=
"2")}return l};d.prototype.nS=function(b,a){a=void 0===a?!1:a;var c=b.__data__;null!=c&&c.data&&(c=c.data);if(f.v(c)&&f.model.B.C.lK){var e=A.Aa.Pb(b).closest("li.fm-ui-element");!f.v(e)&&e.attr("data-measure-index")&&(c={HC:parseInt(e.attr("data-measure-index"))})}e=c;a&&(e=d.K$(c),f.v(e)||(e.element=b));return e};d.prototype.Ey=function(b){return!isNaN(b)&&f.u.i.UN.TN!=b};d.K$=function(b){if(f.v(b))return null;var a={};f.v(b.id)||(a.id=b.id);f.v(b.label)||(a.label=b.label);f.v(b.value)||(a.value=
b.value);f.v(b.measure)||(a.measure=f.model.Ta.U().ga.sa.$c(b.measure.uniqueName).Ji());f.v(b.HC)||(a.measureIndex=b.HC);f.v(b.Qg)||(a.rows=f.model.Ta.U().ga.sa.LZ(b.Qg));f.v(b.lg)||(a.columns=f.model.Ta.U().ga.sa.KZ(b.lg));return a};q.Object.defineProperties(d.prototype,{Nl:{configurable:!0,enumerable:!0,get:function(){return this.Zp}},Xda:{configurable:!0,enumerable:!0,get:function(){var b=new A.Aa("div");b.text("FM");b.P("font-size","10px");b.$a();document.body.appendChild(b.element);var a="10px"==
b.P("font-size");b.remove();return a}}});d.BB=null;h.Du=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(a){var c=b.call(this,a.F)||this;c.K=a;c.K.N(h.mc.uI,function(){return c.fEa()});c.K.N(h.mc.vs,function(e){return c.XDa(e)});return c}function b(a){a=A.No.a8.call(this,a)||this;a.Ab=f.model.Ta.U();return a}u(b,A.No.a8);b.prototype.my=function(a){var c=this,e=[];a.Tc.forEach(function(g){e.push({id:"aggregation_"+g,label:f.u.i.ca.jF(g),isSelected:g==a.$,handler:function(){return c.Vea(a,g)}})});return e};b.prototype.Vea=function(a,c){var e=this.Ab.ga.sa.clone();
a=e.ad()[a.index];f.v(a)||(a.$=c,this.Ab.ae(e))};b.prototype.wR=function(a,c,e){f.pg(b.CK)&&(a=b.CK(a.slice(),c,e)||a);return a};b.prototype.ER=function(a,c,e){this.Ab.Wa(f.K.pi.F5,this,{ACa:a,coords:c,YJ:void 0===e?null:e})};b.CK=null;h.WH=b;u(d,b);d.prototype.fEa=function(){var a=this.K.ka.Fq;if(0!=a.length){var c=a[0],e=this.K.F.Sf(),g=e.left+this.K.ka.coords.fl(c.lc,this.K.ka.$b)+this.K.ka.coords.Zg(c.lc);c=e.top+this.K.ka.coords.Nn(c.hb,this.K.ka.$b)+this.K.ka.coords.Nd(c.hb);1==a.length?this.show(a[0],
{left:g,top:c}):this.kha(a,{left:g,top:c})}};d.prototype.XDa=function(a){if(a.B3){var c=this.K.ka.Nt(a.B3.F.element);a=a.B3.F.getBoundingClientRect();this.show(c,{left:a.right,top:a.bottom})}else{c=this.K.ka.Rf(a.hb,a.lc,!0);c.hb=a.hb;c.lc=a.lc;var e=this.K.F.Sf();a=e.left+this.K.ka.coords.fl(c.lc,this.K.ka.$b)+this.K.ka.coords.Zg(c.lc);e=e.top+this.K.ka.coords.Nn(c.hb,this.K.ka.$b)+this.K.ka.coords.Nd(c.hb);this.show(c,{left:a,top:e})}};d.prototype.H2=function(a,c){a=this.K.ka.Nt(a.target)||this.K.ka.bca(c.clientX,
c.clientY);null==a||f.ha(a.label)&&isNaN(a.value)||(this.show(a,{left:c.clientX,top:c.clientY}),this.K.ka.yr())};d.prototype.T2=function(a){var c=this.K.F.Sf(),e=a.clientX-c.left,g=a.clientY-c.top,l=a.clientX,m=a.clientY;if(!(0>e||0>g||e>this.K.cf()||g>this.K.qd())){e=this.K.ka.Nt(a.target)||this.K.ka.bca(a.clientX,a.clientY);g=this.K.ka.Fq;0==a.which&&0!=g.length&&(e=g[0],l=c.left+this.K.ka.coords.fl(e.lc,this.K.ka.$b)+this.K.ka.coords.Zg(e.lc),m=c.top+this.K.ka.coords.Nn(e.hb,this.K.ka.$b)+this.K.ka.coords.Nd(e.hb));
c=!1;if(1<g.length)for(var n=0;n<g.length;n++)if(g[n].hb==e.hb&&g[n].lc==e.lc){c=!0;break}(1<g.length&&c?this.kha(g,{left:l,top:m}):this.show(e,{left:l,top:m}))&&a.preventDefault()}};d.prototype.kha=function(a,c){var e=this;if(f.model.B.C.readOnly)return!1;var g=[],l=this.K;if(this.$Aa(a)){var m=a[0].hierarchy,n=a.map(function(p){return p.Xb.ordinal});g.push({id:"group",label:f.model.A.j.rja,handler:function(){f.NJa({lfa:function(p){m.c$(p,n);e.Ab.ga.select();e.K.ka.yr()},bU:function(){e.K.ka.yr()}})}})}g=
this.wR(g,a.map(function(p){return p.La()}),l.Ai?"flat":"pivot");return 0<g.length?(this.ER(g,c),!0):!1};d.prototype.$Aa=function(a){if(!f.model.B.C.A0)return!1;var c=a[0].hierarchy;if(f.v(c))return!1;for(var e=0;e<a.length;e++){var g=a[e];if(g.hierarchy!=c||f.v(g.Xb))return!1}return!0};d.prototype.show=function(a,c){var e=this;if(f.model.B.C.readOnly)return!1;var g=[],l=this.K,m=f.v(a)||f.ha(a.label)&&isNaN(a.value);!m&&a.Jh&&!isNaN(a.value)&&f.model.B.C.drillThrough&&!f.model.B.C.oc&&f.u.Na.U().fa&&
f.u.Na.U().fa.gT&&g.push({id:"drillthrough",label:f.model.A.j.E5,handler:function(){l.drillThrough(a)}});var n=this.Ab.ga.sa;if(!f.v(n)){!m&&a.wk&&f.model.B.C.jz&&g.push({id:"open_filter",label:f.model.A.j.G5,handler:function(){e.K.Da(new k.kO(a.hierarchy))}});if(!m&&a.wk&&!f.model.B.C.oc){var p=n.Ywa(a.hierarchy.uniqueName);f.v(p)||(p.uniqueName!=f.u.i.ia.Ia&&g.push({id:"move_to_rows",label:f.model.A.j.wja,handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);n.ic.Ma.Pa(a.hierarchy.uniqueName,
a.hierarchy);e.Ab.ae(n)}}),p.uniqueName!=f.u.i.ia.Sa&&g.push({id:"move_to_columns",label:f.model.A.j.uja,handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);n.Sb.Ma.Pa(a.hierarchy.uniqueName,a.hierarchy);e.Ab.ae(n)}}),p.uniqueName!=f.u.i.ia.As&&g.push({id:"move_to_report_filters",label:f.model.A.j.vja,handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);n.dH.Ma.Pa(a.hierarchy.uniqueName,a.hierarchy);e.Ab.ae(n)}}),g.push({id:"remove_field",label:f.O.bind(f.model.A.j.H5,a.hierarchy.caption),
handler:function(){p.Ma.removeItem(a.hierarchy.uniqueName);e.Ab.ae(n)}}))}m||!a.ci&&!a.th||(a.wf&&g.push({id:"collapse",label:f.model.A.j.kja,handler:function(){l.Ct(a)}}),a.collapsed&&g.push({id:"expand",label:f.model.A.j.pja,handler:function(){l.Ct(a)}}),a.hierarchy&&2<a.hierarchy.ra.length&&!n.drillAll&&(a.ng||a.Lg)&&g.push({id:a.ng?"drill_up":"drill_down",label:a.ng?f.model.A.j.nja:f.model.A.j.mja,handler:function(){l.Zx(a)}}));!m&&(a.ci||a.th)&&a.Xb&&a.Xb.ah&&g.push({id:"ungroup",label:f.model.A.j.Gja,
handler:function(){a.hierarchy.oN(a.Xb);e.Ab.ga.select()}});!m&&a.ci&&!a.wk&&a.Wm&&(a.Zn||g.push({id:"sort_row_desc",label:f.model.A.j.Fja,handler:function(){l.n4(a,f.u.i.xa.Ec)}}),a.Yn||g.push({id:"sort_row_asc",label:f.model.A.j.Eja,handler:function(){l.n4(a,f.u.i.xa.bc)}}),(a.Yn||a.Zn)&&g.push({id:"clear_sorting",label:f.model.A.j.D5,handler:function(){l.Ata()}}));!m&&a.th&&!a.wk&&a.Wm&&(a.Zn||g.push({id:"sort_column_desc",label:f.model.A.j.Dja,handler:function(){l.bN(a,f.u.i.xa.Ec)}}),a.Yn||g.push({id:"sort_column_asc",
label:f.model.A.j.Cja,handler:function(){l.bN(a,f.u.i.xa.bc)}}),(a.Yn||a.Zn)&&g.push({id:"clear_sorting",label:f.model.A.j.D5,handler:function(){l.vta()}}));if(!m&&(a.ci||a.th)){if(f.model.B.C.YM&&a.hierarchy&&a.Xb&&0<a.Xb.level.gf.length){var t=this.hza(a.Xb.level.gf,a.Xb.level.uniqueName);0<t.length&&g.push({id:"member_properties",label:f.model.A.j.yja,submenu:t})}a.Xb&&f.model.B.C.jz&&1!==a.Xb.hierarchy.cb.length&&g.push({id:"filter_by",label:f.O.bind(f.model.A.j.qja,a.Xb.caption),handler:function(){a.hierarchy.filter;
e.Ab.tl(a.hierarchy.uniqueName,{members:[a.Xb.Xi]})}})}m||!this.AAa(a)&&!this.zAa(a)||(t=this.my(a.measure),0<t.length&&g.push({id:"aggregation",label:f.model.A.j.C5,submenu:t}));!m&&a.measure&&k.Hb.zb.ada&&(g.push({id:"number_formatting",label:f.model.A.j.xja,handler:function(){e.TFa(a.measure)}}),g.push({id:"conditional_formatting",label:f.model.A.j.lja,handler:function(){e.RFa(a.measure)}}));!m&&a.measure&&a.measure.Ka&&g.push({id:"edit_calculated_value",label:f.O.bind(f.model.A.j.oja,a.measure.caption),
handler:function(){k.Hb.zb.vM(a.measure.uniqueName)}});var r=n.ad();!m&&a.measure&&1<r.length&&!f.model.B.C.oc&&g.push({id:"remove_measure",label:f.model.A.j.zja,handler:function(){n.dga(a.measure);e.Ab.IM(n.G4())}});!m&&a.wk&&f.model.B.C.oc&&(f.v(a.measure)&&f.v(a.hierarchy)||g.push({id:"remove_field",label:f.O.bind(f.model.A.j.H5,a.hierarchy?a.hierarchy.caption:a.measure.caption),handler:function(){a.hierarchy&&n.columns.Bb(a.hierarchy.uniqueName)?n.columns.removeItem(a.hierarchy.uniqueName):a.hierarchy&&
n.rows.Bb(a.hierarchy.uniqueName)?n.rows.removeItem(a.hierarchy.uniqueName):a.hierarchy&&n.pages.Bb(a.hierarchy.uniqueName)&&n.pages.removeItem(a.hierarchy.uniqueName);a.measure&&r.find(function(z){return z.uniqueName===a.measure.uniqueName})&&n.dga(a.measure);e.Ab.ae(n)}}));if(!m&&a.wk&&!f.v(a.hierarchy)&&f.model.B.C.qk&&(m=n.rows.Bb(a.hierarchy.uniqueName),t=n.columns.Bb(a.hierarchy.uniqueName),(m?n.vb.indexOf(a.hierarchy.uniqueName)!=n.vb.length-1:n.Cb.indexOf(a.hierarchy.uniqueName)!=n.Cb.length-
1)&&(m||t))){var v=!0===a.hierarchy.Yf;void 0===a.hierarchy.Yf&&(!m||"on"!=f.model.B.C.Yf&&"rows"!=f.model.B.C.Yf||(v=!0),!t||"on"!=f.model.B.C.Yf&&"columns"!=f.model.B.C.Yf||(v=!0));g.push({id:v?"hide_hierarchy_totals":"show_hierarchy_totals",label:v?f.model.A.j.tja:f.model.A.j.Bja,handler:function(){a.hierarchy.Yf=!v;e.Ab.ae(n)}})}g=this.wR(g,a?a.La():null,l.Ai?"flat":"pivot");return 0<g.length?(this.ER(g,c,function(z){return e.Xra(z,a)}),!0):!1}};d.prototype.Xra=function(a,c){var e=["open_filter",
"drillthrough","number_formatting","conditional_formatting","edit_calculated_value"];if(a&&0<=e.indexOf(a.id))return!1;e=["move_to_rows","move_to_columns","move_to_report_filters","remove_field"];if(a&&0<=e.indexOf(a.id))return!0;this.K.gz(c.hb,c.lc);return!1};d.prototype.TFa=function(a){a=void 0===a?null:a;f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.G7,{measureName:a.uniqueName,aggregation:a.$}))};d.prototype.RFa=function(a){a=void 0===a?null:a;f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.B5,{measureName:a.uniqueName}))};
d.prototype.AAa=function(a){return!f.model.B.C.oc&&f.model.B.C.ul&&a.measure&&!a.measure.Ka&&!a.measure.Bg};d.prototype.zAa=function(a){return f.model.B.C.oc&&f.model.B.C.ul&&a.measure&&!a.measure.Ka&&a.By&&a.Jr&&0<=a.measure.index};d.prototype.hza=function(a,c){for(var e=this,g=[],l=0;l<a.length;l++){var m=a.ea(l);if(m){var n=this.Ab.ga.sa.memberProperties;n&&n[c]&&-1<n[c].indexOf(m.uniqueName)?g.push({id:"hide_member_property",label:f.O.bind(f.model.A.j.sja,m.caption),data:{levelName:c,propertyName:m.uniqueName},
handler:function(p){e.K.lha(p,!1)}}):g.push({id:"show_member_property",label:f.O.bind(f.model.A.j.Aja,m.caption),data:{levelName:c,propertyName:m.uniqueName},handler:function(p){e.K.lha(p,!0)}})}}return g};h.wW=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.oi=0;b.ex=0;b.uo=0;b.Ye=0;b.dg=0;b.Ab=f.model.Ta.U();b.conditions=[];b.g9=function(){return b.gEa()};b.zT=function(a){return b.kp(a)};b.Y("fm-grid-view");b.ue();b.$j("grid");b.K8=new h.wW(b);b.Ab.N("reset_grid",b.g9);b.cu=x.sO.U();b.cu.N(x.KeyboardEvent.rO,b.zT);return b}u(d,A.Vb.ye);d.prototype.dispose=function(){this.G=null;this.Ab.mb("reset_grid",this.g9);this.Ab=null;this.ka&&this.ka.dispose();this.Me=null};d.prototype.kp=
function(b){if(this.Nm&&null!=this.cu&&null!=this.Me){var a=b.ctrlKey||b.metaKey;switch(b.keyCode){case 37:this.scroll("left",a);b.np.preventDefault();break;case 38:this.scroll("up",a);b.np.preventDefault();break;case 39:this.scroll("right",a);b.np.preventDefault();break;case 40:this.scroll("down",a);b.np.preventDefault();break;case 13:case 32:null!=this.xG()?this.ka.focus():this.gz(this.ka.coords.Ng,this.ka.coords.Qf),b.stopPropagation()}}};d.prototype.scroll=function(b,a){a=void 0===a?!1:a;switch(b){case "up":a?
this.Me.WHa():this.Me.Eq(this.Me.coords.Ng-1);break;case "down":a?this.Me.THa():this.Me.Eq(this.Me.coords.Ng+1);break;case "left":a?this.Me.UHa():this.Me.es(this.Me.coords.Qf-1);break;case "right":a?this.Me.VHa():this.Me.es(this.Me.coords.Qf+1)}};d.prototype.Wua=function(){var b=this,a=new h.sheet.VD;a.WB=function(c,e){return b.getData(c,e)};a.N(h.mc.hn,function(c){return b.JC(c)});a.N(h.mc.GI,function(c){return b.n2(c)});a.N(h.mc.Iu,function(c){return b.jp(c)});a.N(h.mc.qE,function(c){return b.R2(c)});
a.N(h.mc.rE,function(c){return b.S2(c)});a.N(h.mc.uI,function(c){return b.Da(c)});a.N(h.mc.vs,function(c){return b.Da(c)});this.F.append(a);return a};d.prototype.Tua=function(){var b=this,a=new h.sheet.oB.ON;a.WB=function(c,e){return b.getData(c,e)};a.N(h.mc.hn,function(c){return b.JC(c)});a.N(h.mc.GI,function(c){return b.n2(c)});a.N(h.mc.Iu,function(c){return b.jp(c)});a.N(h.mc.qE,function(c){return b.R2(c)});a.N(h.mc.rE,function(c){return b.S2(c)});a.N(h.mc.uI,function(c){return b.Da(c)});a.N(h.mc.vs,
function(c){return b.Da(c)});this.F.append(a);return a};d.prototype.$ua=function(){var b=this,a=new h.sheet.flat.sI;a.WB=function(c,e){return b.getData(c,e)};a.N(h.mc.hn,function(c){return b.JC(c)});a.N(h.mc.GI,function(c){return b.n2(c)});a.N(h.mc.Iu,function(c){return b.jp(c)});a.N(h.mc.qE,function(c){return b.R2(c)});a.N(h.mc.rE,function(c){return b.S2(c)});a.N(h.mc.uI,function(c){return b.Da(c)});a.N(h.mc.vs,function(c){return b.Da(c)});this.F.append(a);return a};d.prototype.Cya=function(){if(f.model.B.C.qk){if(this.ka&&
this.ka.type==h.sheet.oB.ON.TYPE)return this.ka;null!=this.ka&&this.ka.sg(!0);return this.Tua()}if(f.model.B.C.oc){if(this.ka&&this.ka.type==h.sheet.flat.sI.TYPE)return this.ka;null!=this.ka&&this.ka.sg(!0);return this.$ua()}if(this.ka&&this.ka.type==h.sheet.VD.TYPE)return this.ka;null!=this.ka&&this.ka.sg(!0);return this.Wua()};d.prototype.gb=function(){var b=this;if(!(1>f.model.Ea.pc.oj())&&(this.Me=this.Cya(),null!=this.ka)){this.Me.slice=f.u.Na.U().sa;this.ka.pha=this.Ab.Ga.zH?100:1E3;if(this.G&&
this.G.mj){this.ka.clearData();this.ex=this.uo=this.oi=0;var a=this.G.kq,c=f.model.B.C.qk?0<this.G.vb.length?1:0:this.G.Sm;if(c>=a+1){var e=0;var g=e+c;var l=e+(c-a)-1}else l=0,e=0<this.G.Em?l+(a-c)+1:l,0==this.G.Cb.length&&0==this.G.vb.length&&(e+=1),g=e+c;var m=l;this.oi=Math.min(e,m);this.ex=m;this.uo=0;this.Ye=g;this.dg=this.Ai?0:f.model.B.C.qk?this.G.ic.Ra&&this.G.Tn?this.G.Tm.length+1:this.G.Tm.length:0==this.G.rows.length?0:1;f.model.B.C.su||(this.ex=1==c&&0==this.G.Em?0:-1,this.Ye=a);this.Ai&&
(this.ka.MK.tga=function(n,p,t){return b.saveData(n,p,t)},this.ka.MK.Rga(f.model.B.C.TF));this.Ai&&"on"==f.model.B.C.Ef&&"top"==f.model.B.C.CL&&this.Ye++;g=this.G.nq;this.Ai&&"on"==f.model.B.C.Ef&&"bottom"==f.model.B.C.CL&&(g+=1);m=this.G.oq;0==m&&(m=this.G.columns.length-(this.G.Sb.Ra?1:0));this.ka.Oga(g,m);this.ka.rxa(this.dg);this.ka.Sba(this.Ye);if(this.ka instanceof h.sheet.VD&&(this.ka.coords.wF=this.Ye-this.G.kq-1,this.ka.bR.rowIndex=this.ka.coords.wF,this.ka.bR.dz(this.G.Cb),this.ka.nga.dz(this.G.vb),
this.ka.pfa.dz(this.G.pages),f.model.B.C.Qm)){g=this.G.vb.length;for(m=1;m<=g;m++)this.ka.coords.Cw(this.ka.coords.Vd-m,52);this.ka.coords.Cw(this.ka.coords.wF,52)}this.ka instanceof h.sheet.oB.ON&&(this.ka.coords.wF=this.Ye-this.G.kq-1,this.ka.bR.rowIndex=this.ka.coords.wF,this.ka.bR.dz(this.G.Cb),this.ka.nga.dz(this.G.vb),this.ka.pfa.dz(this.G.pages));(1<this.G.columns.length||!this.G.Sb.Ra)&&f.model.B.C.su&&this.a$(l,this.dg,f.u.i.ia.Sa);(1<this.G.rows.length||!this.G.ic.Ra)&&f.model.B.C.su&&(f.model.B.C.qk?
this.Upa(e):this.a$(e,0,f.u.i.ia.Ia));this.xHa();this.yHa();this.wHa();this.BHa();this.zHa();this.AHa();this.F.jg("rowcount",""+this.ka.coords.Ak);this.F.jg("colcount",""+this.ka.coords.$i)}else this.ka.tr();this.conditions=f.model.ta.gm.conditions.Ic();this.ka.resize(k.Hb.FL,k.Hb.jC);this.ka.gb()}};d.prototype.ot=function(){f.v(this.ka)||(this.ka.uF(0),this.ka.qB(0))};d.prototype.getData=function(b,a,c){c=void 0===c?!1:c;if(null==this.G||!this.G.mj||b<this.ex||a<this.uo)return null;var e=b-this.Ye,
g=a-this.dg;if((e>this.G.nq-1||g>this.G.oq-1)&&!(this.Ai&&"on"==f.model.B.C.Ef&&"bottom"==f.model.B.C.CL&&e==this.G.nq&&g<=this.G.oq-1))return null;var l=this.G.Lm(e,!0),m=this.G.nj(g,!0);if(null==l&&null==m)return null;var n=this.G.Zh(e,g),p;if(this.Ai){var t=this.G.nj(g,!0,!0);t instanceof Array&&(p=t[0][1])}if(this.Ai&&"on"==f.model.B.C.Ef&&"top"==f.model.B.C.CL&&(f.model.B.C.su&&1==b||!f.model.B.C.su&&0==b)||this.Ai&&"on"==f.model.B.C.Ef&&"bottom"==f.model.B.C.CL&&(f.model.B.C.su&&b==this.G.nq+
1||!f.model.B.C.su&&b==this.G.nq))return this.Pya(l,m,n);if(null==l)return c=1==(f.model.B.C.qk?1:this.G.vb.length)&&0==this.G.Em?b-this.ex:b-this.ex-1,0==this.G.vb.length&&0==this.G.Cb.length&&(c=b-this.ex),g=this.G.eL(g),this.sya(m,n,g,c,a,p);t=this.G.yS(e);e=this.G.DS(e);g=this.G.eL(g);return null==m?f.model.B.C.qk?this.wqa(l,n,t,b,a,e):this.Bza(l,n,t,b):this.lG(l,m,n,b,a,c,t,g,e,p)};d.prototype.lG=function(b,a,c,e,g,l,m,n,p,t){l=void 0===l?!1:l;m=void 0===m?NaN:m;n=void 0===n?NaN:n;p=void 0===
p?-1:p;if(f.v(c)){var r=new h.W.Yd;r.Jh=!0;r.lg=a;r.Qg=b;r.jl=this.G.Sm>b.length;r.gw=this.G.Em>a.length;r.vC=0==a.length;r.Jr=0==b.length;return r}var v=c.Dh(c.uniqueName,c.$).clone();c.$==f.u.i.ca.li?v.pd="":f.u.i.ca.Tf(c.$)?v.Tf=!0:f.u.i.ca.Xd(c.$)&&(v.Xd=!0,v.pd="%");r=new h.W.Yd;r.Jh=!0;r.lg=a;r.measure=c;r.hierarchy=this.Ab.ga.I.Vj(c.uniqueName);r.Qg=b;f.model.B.C.qk?0==b.length?r.level=0:(m=this.n0(b),-1<m&&(r.level=m)):f.model.B.C.oc||(r.level=m);t=this.G.Fa(b,a,c,t);r.value=t;this.Ai?(v=
c.type!=f.u.i.Ja.sc?c.Dh(c.uniqueName,c.$).clone():c.Dh(c.uniqueName,c.$,!0).clone(),c.type==f.u.i.Ja.sc?(m=this.G.iG(a).va(t),null!=m&&(r.Xb=m,r.label=m.caption)):c.type==f.u.i.Ja.fb?"string"===typeof t?r.label=t:(r.label=x.Tb.format(t,v),r.numeric=!0):c.type==f.u.i.Ja.Oa?null===t?r.label=f.model.A.j.XV:(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.mq),r.label=f.O.Gw(t,m,f.model.B.C.Mj)):c.type==f.u.i.Ja.Yb?isNaN(t)||(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Cp),
r.label=f.O.Hw(t,m)):c.type!=f.u.i.Ja.Dc||isNaN(t)||(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Yk),r.label=f.O.jN(t,m,f.model.B.C.Mj))):(m=(this.Ab.Ga.fa.Ba==f.u.i.oa.Nc||this.Ab.Ga.fa.Ba==f.u.i.oa.Zd)&&f.model.B.C.Jq&&c.$==f.u.i.ca.NONE,m||c.type!=f.u.i.Ja.fb&&c.type!=f.u.i.Ja.sc)?m||c.type!=f.u.i.Ja.Oa?m||c.type!=f.u.i.Ja.Yb?m||c.type!=f.u.i.Ja.Dc?(r.label=m?this.G.Yo(b,a,c):f.u.kX.U().Fa(t),r.numeric=m&&f.u.i.Ja.fb===c.type):isNaN(r.value)||(f.u.i.ca.AD(c.$)?(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,
"format",f.model.B.C.Yk),r.label=f.O.jN(t,m,f.model.B.C.Mj)):r.label=x.Tb.format(t,v)):isNaN(t)||(f.u.i.ca.eo(c.$)?(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Cp),r.label=f.O.Hw(t,m)):r.label=x.Tb.format(t,v)):isNaN(t)||(f.u.i.ca.AD(c.$)?(m=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.mq),r.label=f.O.Gw(r.value,m,f.model.B.C.Mj)):r.label=x.Tb.format(t,v)):"string"===typeof t?r.label=t:(r.label=x.Tb.format(t,v),r.numeric=!0);r.DM=this.G.Pt(b,a);m=!1;var z=this.G.Hh(b,
void 0,c);if(this.G.Sm>b.length||z||this.G.Em>a.length){m=!0;r.jl=this.G.Sm>b.length||z;r.gw=this.G.Em>a.length;if("on"!=f.model.B.C.Yf&&!f.model.B.C.qk){var B=this.G.gM;if(0!=b.length&&(this.G.Ih(b)||this.G.Ih(b,c)||z)&&("off"==f.model.B.C.Yf||"columns"==f.model.B.C.Yf)||0!=a.length&&(this.G.Sj(a)||this.G.Sj(a,c))&&("off"==f.model.B.C.Yf||"rows"==f.model.B.C.Yf))return null;if(0==B&&1<this.G.measures.length)if(this.G.ic.Ra&&("off"==f.model.B.C.Yf||"columns"==f.model.B.C.Yf)){if(e<("on"==f.model.B.C.Ef||
"columns"==f.model.B.C.Ef?this.Ye+this.G.nq-this.G.measures.length:this.Ye+this.G.nq)&&this.G.Ih(b,c))return null}else if(this.G.Sb.Ra&&("off"==f.model.B.C.Yf||"rows"==f.model.B.C.Yf)&&g<("on"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef?this.dg+this.G.oq-this.G.measures.length:this.dg+this.G.oq)&&this.G.Sj(a,c))return null}r.Jr=0==b.length;r.vC=0==a.length;r.aT=r.jl&&2==p&&!r.Jr;if(f.model.B.C.qk&&r.By&&"on"!=f.model.B.C.Ef&&("off"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef&&r.Jr||"columns"==f.model.B.C.Ef&&
r.vC))return null}this.G.l1(e)&&(m=!0,r.jl=!0);this.G.V0(g)&&(m=!0,r.gw=!0);r.measure&&(r.measure.yC||r.measure.xC)&&!isNaN(r.value)&&(r.label="",r.yC=r.measure.yC,r.xC=r.measure.xC);if(l)return r;""!=v.textAlign&&r.Sx({"text-align":v.textAlign});if(0<this.conditions.length&&r.measure)for(l=0;l<this.conditions.length;l++)(p=this.conditions[l],p.bs!=e&&-1!=p.bs||p.qt!=g&&-1!=p.qt||!(p.measure==c.uniqueName&&""===p.$||""==p.measure&&r.numeric||p.measure=="[Measures].["+c.uniqueName+"]"||p.measure==
c.uniqueName&&p.$===r.measure.$)||p.Tj!==m&&void 0!==p.Tj||""!=p.hierarchy&&!this.fta(b,a,p.hierarchy,p.Xb))||((this.Ab.Ga.fa.Ba==f.u.i.oa.API?(f.v(p.ZF)&&(p.ZF=x.ws.pG(p.Sd,this.Ab.ga.I.measures)),v=p.ZF.slice(0)):v=p.Sd.slice(0),p.n1)?this.Ab.Ga.zH&&(z=this.G.hC(b,a,c))&&(-1<p.qe.toLowerCase().indexOf(f.u.i.jc.lP)?t=z.So:-1<p.qe.toLowerCase().indexOf(f.u.i.jc.mP)&&(t=100*z.Yr),v=this.G.xv(b,a,v,t),null!=v&&r.zaa(v)):(v=this.G.xv(b,a,v,t),f.v(p.format)||!0!==v&&"truestyle"!==v||(r.Sx(p.format.Iha()),
r.conditions.push(p.id)),r.VIa=!0));"after"===f.model.B.C.eR&&this.G.Rj(a,void 0,c)&&-1!==n&&(r.label="");return r};d.prototype.Pya=function(b,a,c){if(f.v(c))return null;var e=new h.W.Yd;e.Jh=!0;e.lg=a;e.measure=c;e.hierarchy=this.Ab.ga.I.Vj(c.uniqueName);e.Qg=b;if(c.type==f.u.i.Ja.fb||c.type==f.u.i.Ja.Yb||c.type==f.u.i.Ja.Dc){var g=c.Dh(c.uniqueName,c.$).clone();if(c.$==f.u.i.ca.li)g.pd="";else if(f.u.i.ca.Tf(c.$))g.Tf=!0;else if(f.u.i.ca.Xd(c.$)||c.Ka&&-1<c.qe.indexOf("percent"))g.Xd=!0,g.pd="%";
e.value=this.G.Fa(null,null,c);if(c.type==f.u.i.Ja.fb)e.label=x.Tb.format(e.value,g),e.numeric=!0;else if(c.type==f.u.i.Ja.Yb)isNaN(e.value)||(e.label=f.u.i.ca.eo(c.$)?f.O.Hw(e.value,f.model.B.C.Cp):x.Tb.format(e.value,g));else if(c.type==f.u.i.Ja.Dc&&!isNaN(e.value)){var l=this.Ab.ga.fa.mapping.Fa(c.uniqueName,"format",f.model.B.C.Yk);e.label=f.u.i.ca.AD(c.$)?f.O.jN(e.value,l,f.model.B.C.Mj):x.Tb.format(e.value,g)}e.Jr=!0;e.jl=!0;""!=g.textAlign&&e.Sx({"text-align":g.textAlign});if(0<this.conditions.length)for(g=
0;g<this.conditions.length;g++){l=this.conditions[g];if(this.Ab.Ga.fa.Ba==f.u.i.oa.API){f.v(l.ZF)&&(l.ZF=x.ws.pG(l.Sd,this.Ab.ga.I.measures));var m=l.ZF.slice(0)}else m=l.Sd.slice(0);if(l.measure==c.uniqueName&&l.n1&&this.Ab.Ga.zH){var n=this.G.hC(b,a,c);if(n){var p;-1<l.qe.toLowerCase().indexOf(f.u.i.jc.lP)?p=n.So:-1<l.qe.toLowerCase().indexOf(f.u.i.jc.mP)&&(p=100*n.Yr);l=this.G.xv(b,a,m,p);null!=l&&e.zaa(l)}}}}return e};d.prototype.fta=function(b,a,c,e){var g=this.G.columns.indexOf(c);if(-1<g){if(g<
a.length)return b=this.G.columns.getItem(c),a[g]&&b.va(a[g]).VF(e)}else if(a=this.G.rows.indexOf(c),-1<a&&a<b.length)return c=this.G.rows.getItem(c),b[a]&&c.va(b[a]).VF(e);return!1};d.prototype.sya=function(b,a,c,e,g,l){return this.Ai?this.vqa(b,a,l):this.uqa(b,a,c,e,g)};d.prototype.yP=function(b){if(b.Bi)return!0;if(1<b.children.length)return!1;b=b.hierarchy.va(b.children[0]);return b.caption!==f.model.A.j.Mk&&b.caption!==f.model.A.j.cn?!1:this.yP(b)};d.prototype.uqa=function(b,a,c,e,g){if(0==b.length){if(this.G.ic.Ra&&
e==this.G.kq-1)return this.qG(a,f.u.i.ia.Sa);b=this.G.oq-this.G.measures.length+1;if(this.G.Sb.Ra&&e==this.G.kq-1&&g>=b&&1==this.G.measures.length)return this.qG(a,f.u.i.ia.Sa);b="on"==f.model.B.C.Ef||"rows"==f.model.B.C.Ef?this.dg+this.G.oq-this.G.measures.length:this.dg+this.G.oq;if(this.G.Sb.Ra&&0==e&&g>=b&&1<this.G.kq){if(g==b){var l=this.ZB();l.label=f.model.A.j.Pla;return l}return this.iL()}return this.G.Sb.Ra&&0==e&&1<this.G.kq?this.qG(a,f.u.i.ia.Sa):this.G.Sb.Ra&&e==this.G.kq-1?g>=b||1==this.G.Sb.Ma.length?
this.qG(a,f.u.i.ia.Sa):this.ZB():this.G.Sb.Ra&&0<e&&g<=b?this.ZB():0<=e?this.iL():null}var m=this.G.Sb.Ra&&(b.length>this.G.He||0==this.G.He)?b.length:b.length-1,n=this.G.columns.ea(m),p,t=this.G.Z0(g-this.dg);void 0!==t&&-1<e&&(m=p=e,this.G.Sb.Ra&&m>=this.G.He&&1<this.G.measures.length&&(p--,m++),p<t[0]&&(t=void 0));this.G.Sb.Ra&&m>this.G.He&&(1==this.G.measures.length?m--:c++);if(c>e&&void 0===t||0>e)return 0<=e?this.iL():null;l=new h.W.Yd;l.th=!0;l.measure=this.G.Sb.Ra&&(1<this.G.measures.length||
f.model.B.C.XM)?a:void 0;var r=!1,v=this.G.gM;if(void 0!==t)if(f.v(b[p]))if(e==v-1)l.label=void 0!==a?a.caption:f.model.A.j.vW,l.SL=!0;else return this.iL();else{var z=b[p];n=this.G.Cb.ea(p)}else z=b[b.length-1];z=n.va(z);l.DM=this.G.Pt([],b);if(this.G.Sb.Ra&&1<this.G.measures.length&&e==v-1||this.G.Sb.Ra&&f.model.B.C.XM&&e==v-1&&1!=v||this.G.Sb.Ra&&f.model.B.C.XM&&e==v&&1==v&&2>this.G.measures.length)l.label=a.label,l.SL=!0,z=null;else{if(this.G.Sb.Ra&&0<a.index&&e<v)return this.iL();c<e?m==e?(r=
b.length-1!=this.G.Em-1&&!z.Wb,l.label=z.caption):(l.label=this.G.kq-1==e&&f.model.B.C.XM?void 0!==a?a.caption:f.model.A.j.vW:"",z=null):(r=b.length-1!=this.G.Em-1&&!z.Wb,l.label=z.caption,this.G.Sb.Ra&&e<v&&1<this.G.measures.length&&(l.measure=a=void 0));void 0!==t&&(t[t.length-1]>=p&&(r=!0),f.v(b[p])&&(r=!1))}e=null==z?!1:this.G.Rj(b,z,a);!z||this.yP(z)||z.Wb||z.Bi||!z.hierarchy.qg||z.level.cw||(r||f.model.B.C.rH?e?l.ng=!0:l.Lg=!0:e?l.wf=!0:l.collapsed=!0);r&&!e&&(this.G.Sj(b,a)||void 0!==t&&-1<
t.indexOf(p)?l.wf=!0:l.collapsed=!0);if("on"==f.model.B.C.vj||"columns"==f.model.B.C.vj){l.Wm=!0;if(f.ha(l.label)||f.v(a))l.Wm=!1;"off"!=f.model.B.C.Yf&&"rows"!=f.model.B.C.Yf||!l.wf||(l.Wm=!1);l.Wm&&this.G.wn&&this.G.wn.toString()==b.toString()&&this.G.Hv==a&&(this.G.ui==f.u.i.xa.Ec?l.Zn=!0:this.G.ui==f.u.i.xa.bc&&(l.Yn=!0))}l.gw=this.G.Em>b.length||l.Lg||l.ng||!f.model.B.C.rH&&(l.wf||l.collapsed);l.gw&&this.G.R3(g);"after"!==f.model.B.C.eR||-1!==c||l.SL||(l.Wm=!1,l.label="",l.wf=!1,l.collapsed=
!1,l.ng=!1,l.Lg=!1);l.We=void 0!==t?b.slice(0,p+1):b;l.hierarchy=n;l.Xb=z;return l};d.prototype.vqa=function(b,a,c){var e=this.G.iG(b);if(void 0===e){if(f.v(a))return null;b=new h.W.Yd;b.th=!0;b.label=a.caption;b.measure=a;this.w$(b,a);return b}var g;void 0!==c&&(g=e.ra.ea(c));var l=new h.W.Yd;l.th=!0;l.wk=!0;l.PS=e.F_;l.cb=e.filter.$g;l.label=void 0===g?e.label:e.label+"."+g.caption;l.We=b;l.hierarchy=e;l.level=c;l.Xb=null;l.measure=a;l.draggable=!0;this.w$(l,a);return l};d.prototype.w$=function(b,
a){if("on"===f.model.B.C.vj||"columns"===f.model.B.C.vj){b.Wm=!0;var c=this.G.jS(a.uniqueName);!f.v(c)&&c.measure&&c.measure.uniqueName==a.uniqueName&&(c.sort==f.u.i.xa.Ec?b.Zn=!0:c.sort==f.u.i.xa.bc&&(b.Yn=!0),1<this.G.Wh.length&&(b.p4=this.G.Wh.indexOf(c)))}};d.prototype.ZB=function(){var b=new h.W.Yd;b.th=!0;return b};d.prototype.iL=function(){var b=this.ZB();b.ob=!0;return b};d.prototype.qG=function(b,a){var c=new h.W.Yd;c.label=void 0===b?f.model.A.j.uW:b.Ir;c.SL=void 0!==b;void 0!==b&&b.I0&&
(c.label=b.label);if(a==f.u.i.ia.Sa){c.th=!0;c.gw=c.vC=!0;if("on"===f.model.B.C.vj||"columns"===f.model.B.C.vj)c.Wm=!0,!this.G.wn||""!==this.G.wn.toString()||void 0!==b&&this.G.Hv!==b||(this.G.ui===f.u.i.xa.Ec?c.Zn=!0:this.G.ui===f.u.i.xa.bc&&(c.Yn=!0));this.G.Sb.Ra?c.measure=b:c.label=f.model.A.j.uW}else{c.ci=!0;c.jl=c.Jr=!0;if("on"===f.model.B.C.vj||"rows"===f.model.B.C.vj)c.Wm=!0,!this.G.Ek||""!==this.G.Ek.toString()||void 0!==b&&this.G.cs!==b||(this.G.rl===f.u.i.xa.Ec?c.Zn=!0:this.G.rl===f.u.i.xa.bc&&
(c.Yn=!0));this.G.ic.Ra?c.measure=b:c.label=f.model.A.j.uW;c.level=0}c.We=[];return c};d.prototype.Bza=function(b,a,c,e){if(0==b.length)return this.qG(a,f.u.i.ia.Ia);var g=this.G.ic.Ra&&b.length>this.G.He?b.length:b.length-1,l=b[b.length-1],m=this.G.rows.ea(g),n=new h.W.Yd;n.ci=!0;var p=!1;l=m.va(l);n.level=c;void 0!==a&&this.G.ic.Ra&&this.G.Tn&&g<=this.G.He?(n.label=a.label,l=null):l&&(p=this.wB(l),n.QS=""!=p,n.label=l.caption+p,p=b.length!=this.G.Sm&&!l.Wb&&!l.ah);c=null==l?!1:this.G.Hh(b,l,a);
!l||l.Wb||!l.hierarchy.qg||l.Bi||this.yP(l)||(f.model.B.C.rH?c?n.ng=!0:n.Lg=!0:c?n.wf=!0:n.collapsed=!0);p&&!c&&(this.G.Ih(b,a)?n.wf=!0:n.collapsed=!0);if("on"==f.model.B.C.vj||"rows"==f.model.B.C.vj)if(!(this.G.ic.Ra&&1<this.G.measures.length&&this.G.He>=b.length)||a&&n.label==a.caption)n.Wm=!0,this.G.Ek&&this.G.Ek.toString()==b.toString()&&this.G.cs==a&&(this.G.rl==f.u.i.xa.Ec?n.Zn=!0:this.G.rl==f.u.i.xa.bc&&(n.Yn=!0));n.jl=this.G.Sm>b.length||n.ng||n.Lg||!f.model.B.C.rH&&(n.wf||n.collapsed);n.We=
b;n.hierarchy=m;n.Xb=l;n.measure=this.G.ic.Ra&&1<this.G.measures.length?a:void 0;n.jl&&this.G.fV(e);return n};d.prototype.wqa=function(b,a,c,e,g,l){if(0===b.length){if(0===g)return this.qG(a,f.u.i.ia.Ia);var m=new h.W.Yd;m.ci=!0;m.jl=m.Jr=!0;m.ob=!0;m.level=c;return m}var n=g;m=this.G.Tm[g];for(var p,t,r=0;r<this.G.vb.length;r++){var v=this.G.vb.ea(r);p=v.Gt(m);if(null!=p){var z=v;n=r;break}}r=null==b[n]?0:b[n];m=new h.W.Yd;m.ci=!0;m.jl=this.G.Sm>b.length;m.aT=m.jl&&2==l;p=!1;c>g&&(p=!0);c>g&&2==
l&&(p=!0);c+1<g&&2==l&&(p=!0);m.level=Math.min(b.length-1,g);var B=b.slice(0);v=!1;if(g==this.G.Tm.length)m.label=a.label,v=!0;else{var C=!1;B=void 0===a?0:a.index;var E=z.va(r);t=this.G.Tm.indexOf(E.level.uniqueName)-g;var K=null!=E&&(E.ah||2!=l);if(0>t)if(E.Wb)v=!0;else return m;else if(0<t)for(r=0;r<t;r++)E=E.parent;E&&(r=this.G.Tm.indexOf(E.level.uniqueName),-1<r&&(m.level=r));m.Xb=E;if(2==l)E&&c==g&&(m.label=this.G.ic.Ra&&1<this.G.measures.length?E.caption+" "+a.label:E.caption+" "+f.model.A.j.vW,
v=!0);else{if(0>t)return f.ha(m.label)&&(m.ob=!0),r=this.n0(b),-1<r&&(m.level=r),m;0<B&&(E=null);E&&0!=E.ordinal&&(r=this.wB(E),m.QS=""!=r,m.label=E.caption+r);C=1==l&&n<this.G.vb.length-1&&0>=B&&!E.ah}m.DM=this.G.Pt(b,[]);B=b.slice(0,n+1);if(K&&E){B[n]=E.ordinal;var J=this.G.Hh(B,E,a);E.Wb||!E.hierarchy.qg||E.Bi||2==l&&(!E.ah||J)||this.yP(E)||(f.model.B.C.rH?J?m.ng=!0:(m.Lg=!0,m.jl=!0):J?m.wf=!0:(m.collapsed=!0,m.jl=!0))}C&&!J&&(this.G.Ih(B,a)?m.wf=!0:m.collapsed=!0)}if(p)m.label="",m.Yn=m.Zn=m.collapsed=
m.wf=m.ng=m.Lg=!1;else if(m.We=B,m.hierarchy=z,m.measure=this.G.ic.Ra&&1<this.G.measures.length?a:void 0,"on"==f.model.B.C.vj||"rows"==f.model.B.C.vj)m.Wm=!0,!this.G.Ek||this.G.Ek.toString()!=B.toString()||this.G.cs!=a||m.wf||m.ng||this.G.ic.Ra&&1<this.G.measures.length&&(!(this.G.ic.Ra&&1<this.G.measures.length)||null!=m.Xb&&!m.aT)||(this.G.rl==f.u.i.xa.Ec?m.Zn=!0:this.G.rl==f.u.i.xa.bc&&(m.Yn=!0));v&&(r=this.n0(b),-1<r&&(m.level=r));f.ha(m.label)&&(m.ob=!0,m.WAa=2==l&&E&&g-1>c?!1:!0);m.jl&&this.G.fV(e);
return m};d.prototype.n0=function(b){return(b=this.G.zS(b).va(b[b.length-1]))?this.G.Tm.indexOf(b.level.uniqueName):-1};d.prototype.wB=function(b){if(this.Ab.Ga.fa.Ba!==f.u.i.oa.Nc&&this.Ab.Ga.fa.Ba!==f.u.i.oa.Zd||!f.model.B.C.YM)return"";var a=this.Ab.ga.sa.memberProperties[b.level.uniqueName];if(void 0===a||0===a.length)return"";for(var c=[],e=0;e<a.length;e++){var g=b.level.gf.getItem(a[e]),l=b.yza(a[e]);f.ha(l)||null==g||c.push('<br/><span class="fm-member-property-label">'+g.caption+':</span> <span class="fm-member-property-value">'+
l+"</span>")}return 0<c.length?c.join("")+"<br/>":""};d.prototype.JC=function(b){f.v(b.cell)||f.model.B.C.readOnly||!b.cell.th&&!b.cell.ci||(b.cell.bB==h.W.Mp.Y5?this.Zx(b.cell):b.cell.bB==h.W.Mp.vO&&b.cell.hBa||(f.v(b.cell.Xb)||b.cell.bB==h.W.Mp.UI?b.cell.bB==h.W.Mp.UI&&(b.cell.th&&this.bN(b.cell,null,!x.Oi.Qn&&b.np.ctrlKey||x.Oi.Qn&&b.np.metaKey),b.cell.ci&&this.n4(b.cell)):f.model.B.C.rH||b.cell.Xb.Bi?this.Ct(b.cell):this.Zx(b.cell)))};d.prototype.jp=function(b){f.model.B.C.jz&&b.hierarchy.WL&&
this.Da(new k.kO(b.hierarchy))};d.prototype.Zx=function(b){if(b.Lg||b.ng||b.wf||b.collapsed){var a=b.We,c=f.model.B.C.qk?void 0:b.measure,e=b.Xb;if(null!=e&&!e.Wb&&!e.Bi){if(b.ci){b=f.u.i.ia.Ia;var g=this.G.Hh(a,e,c)}else b=f.u.i.ia.Sa,g=this.G.Rj(a,e,c);g?this.G.To(a,e,b,c):this.G.tf(a,e,b,c)}}};d.prototype.Ct=function(b){if(!f.v(this.ka)&&(b.wf||b.collapsed)){var a=b.We,c=b.th?f.u.i.ia.Sa:f.u.i.ia.Ia,e=f.model.B.C.qk&&c==f.u.i.ia.Ia?void 0:b.measure;b.wf?(this.ka.clearData(),this.G.collapse(a,c,
e)):b.collapsed&&(this.ka.clearData(),this.G.expand(a,c,e));b.th?this.ka.uF(b.lc+1):this.ka.qB(b.hb+1)}};d.prototype.n2=function(b){b.Wda?this.YIa(b.cell):(f.model.B.C.drillThrough&&!f.model.B.C.oc&&this.Ab.ga.fa&&this.Ab.ga.fa.gT&&this.drillThrough(b.cell),this.Vva(b.cell))};d.prototype.drillThrough=function(b){b.Jh&&void 0!==b.measure&&(b=new k.d6({uniqueName:b.measure.uniqueName,$:b.measure.$},b.lg,b.Qg,b.La()),this.Da(b))};d.prototype.YIa=function(b){var a=b.La();this.WU(a,b.lc,b.hb);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.u5,
a))};d.prototype.Vva=function(b){var a=b.La();this.WU(a,b.lc,b.hb);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.KN,a))};d.prototype.WU=function(b,a,c){b.x=this.ka.coords.fl(a,this.ka.$b);b.y=this.ka.coords.Nn(c,this.ka.$b);b.width=this.ka.coords.Zg(a);b.height=this.ka.coords.Nd(c)};d.prototype.n4=function(b,a){a=void 0===a?"":a;var c=b.We;b=b.measure;void 0===b&&(b=this.G.measures[0]);this.G.Ek&&this.G.Ek.toString()==c.toString()&&this.G.cs==b?this.G.rl=this.G.rl==f.u.i.xa.Ec?f.u.i.xa.bc:f.u.i.xa.Ec:
(this.G.rl=f.u.i.xa.Ec,this.G.Ek=c,this.G.cs=b);""!=a&&(this.G.rl=a);this.G.sort();this.ka.uF(0);this.gb()};d.prototype.bN=function(b,a,c){a=void 0===a?"":a;c=void 0===c?!1:c;f.model.B.C.oc?(a=this.G.jS(b.measure.uniqueName),f.v(a)?(b={measure:b.measure,sort:f.u.i.xa.xS("",b.measure.type!=f.u.i.Ja.sc,!0)},!f.v(this.G.Wh)&&c?this.G.Wh.push(b):this.G.Wh=[b]):(a.sort=f.u.i.xa.xS(a.sort,b.measure.type!=f.u.i.Ja.sc,!0),a.sort==f.u.i.xa.Zc?this.G.Wh.splice(this.G.Wh.indexOf(a),1):c||(this.G.Wh=[a]))):(this.G.wn=
b.We,this.G.Hv=f.v(b.measure)?this.G.measures[0]:b.measure,this.G.ui=f.ha(a)?f.u.i.xa.xS(this.G.ui):a);this.G.sort();this.ka.qB(0);this.gb()};d.prototype.vta=function(){this.G.ui=f.u.i.xa.Zc;this.G.wn=null;this.G.Hv=void 0;this.G.Sb.rB();this.G.sort();this.ka.qB(0);this.gb()};d.prototype.Ata=function(){this.G.rl=f.u.i.xa.Zc;this.G.Ek=null;this.G.cs=void 0;this.G.ic.rB();this.G.sort();this.ka.uF(0);this.gb()};d.prototype.lha=function(b,a){var c=this.Ab.ga.sa.memberProperties;c||(c={});c[b.levelName]||
(c[b.levelName]=[]);var e=c[b.levelName].indexOf(b.propertyName);a?-1==e&&(c[b.levelName].push(b.propertyName),this.Ab.ga.sa.memberProperties=c):-1<e&&c[b.levelName].splice(e,1);this.ka.clearData();this.ka.qB(0);this.gb()};d.prototype.saveData=function(b,a,c){b=this.getData(b,a);b.label!=c&&b.value!=c&&(this.G.save(b.Qg,b.lg,b.hierarchy,c),this.Ai&&this.gb())};d.prototype.a$=function(b,a,c){for(var e=c==f.u.i.ia.Sa?this.G.Cb:this.G.vb,g,l=0,m=0;m<e.length;m++){var n=e.ea(m);n.Qe||(g=new h.W.Yd,g.label=
n.label,g.wk=!0,g.draggable=!0,g.PS=!0,g.cb=n.filter.$g,g.level=l,g.hierarchy=n,c==f.u.i.ia.Sa?(g.isFrozen=!this.Ai,this.ka.G.XU(b,a+m,g)):(g.ci=!0,this.ka.G.XU(b+l,a,g),l++))}};d.prototype.Upa=function(b){for(var a=this.G.vb,c,e=0,g=this.G.ic.Ra&&1<this.G.measures.length?this.dg-1:this.dg,l=0;l<a.length;l++){var m=a.ea(l);c=new h.W.Yd;c.label=m.label;c.wk=!0;c.draggable=!0;c.PS=!0;c.cb=m.filter.$g;c.hierarchy=m;this.ka.G.XU(b,0+e,c);e++;if(2<m.ra.length)for(var n=null==m.nc?2:m.nc.sb+1;n<m.ra.length;n++){var p=
m.ra.ea(n);-1!=this.G.Tm.indexOf(p.uniqueName)&&(c=new h.W.Yd,c.label=p.caption,c.ci=!0,c.PS=!0,this.ka.G.XU(b,0+e,c),e++);if(e>=g)break}if(e>=g)break}};d.prototype.Nj=function(b,a,c,e){c=void 0===c?null:c;e=void 0===e?null:e;b==f.model.vc.Li.Vz&&f.model.vc.n6.Wf(this,a,e);b==f.model.vc.Li.Lu&&f.model.vc.m6.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po,e);b==f.model.vc.Li.xh&&f.model.vc.l6.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po,c);b==f.model.vc.Li.JSON&&f.model.vc.o6.Wf(this,a,this.ka.coords.Wk,
this.ka.coords.Po,c);b==f.model.vc.Li.dA&&f.model.vc.Ke.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po,e);b==f.model.vc.Li.XD&&(a.qz=a.qz&&(this.Ab.Ga.fa.Ba==f.u.i.oa.Nc||this.Ab.Ga.fa.Ba==f.u.i.oa.Zd)&&f.model.B.C.Jq,f.model.vc.q6.Wf(this,a,this.ka.coords.Wk,this.ka.coords.Po))};d.prototype.print=function(b){b=void 0===b?"":b;f.model.$r.nE.U().Wf(this,b)};d.prototype.Rf=function(b,a){b=this.sS(b,a);a=b.La();this.WU(a,b.lc,b.hb);return a};d.prototype.sS=function(b,a){var c=null;this.ka&&(c=this.ka.Rf(b,
a,!0));if(null==c){c=new h.W.Yd;c.hb=b;c.lc=a;var e=this.getData(b,a,!0);c.value=e?e.value:NaN;isNaN(c.value)||(c.label=x.Tb.format(c.value))}-1==c.hb&&(c.hb=b);-1==c.lc&&(c.lc=a);return c};d.prototype.xG=function(){if(f.v(this.ka))return null;var b=this.ka.Fq.map(function(a){return a.La()});if(0==b.length)return null;if(1<b.length)return b;b=b[0];this.WU(b,b.columnIndex,b.rowIndex);return b};d.prototype.gz=function(b,a){f.v(this.ka)||this.ka.select(b,a,b,a)};d.prototype.bD=function(){f.v(this.ka)||
this.ka.yr()};d.prototype.R2=function(b){this.w9(b.data.lc,b.data.width)};d.prototype.S2=function(b){this.x9(b.data.hb,b.data.height)};d.prototype.w9=function(b,a){if(b<this.dg)0<a?f.model.size.nd.columnHeaderSizes[b]=a:delete f.model.size.nd.columnHeaderSizes[b];else{var c=this.G.nj(b-this.dg,!0);null!=c&&(b=this.G.iS(b-this.dg),this.G.Sb.Ra&&c.push(b),0<a?f.model.size.nd.columnSizes[c.join(",")]=a:delete f.model.size.nd.columnSizes[c.join(",")])}};d.prototype.xHa=function(){var b=f.model.size.nd.columnSizesByIdx;
f.model.size.nd.columnSizesByIdx={};var a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)]=b[c]);for(var e in a)this.ka.D3(parseInt(e),a[e]),this.w9(parseInt(e),a[e])};d.prototype.yHa=function(){var b=f.model.size.nd.columnHeaderSizes,a=[],c;for(c in b)isNaN(b[c])||(a[c]=b[c]);for(var e in a)b=parseInt(e),b<this.dg&&this.ka.D3(b,a[b])};d.prototype.wHa=function(){var b=f.model.size.nd.columnSizes,a=[],c;for(c in b)if(!isNaN(b[c])){var e=this.G.UB(""==c?[]:c.split(","));-1!=e&&(e+=this.dg,a[e]=b[c])}for(var g in a)this.ka.D3(parseInt(g),
a[g])};d.prototype.BHa=function(){var b=f.model.size.nd.rowSizesByIdx;f.model.size.nd.rowSizesByIdx={};var a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)]=b[c]);for(var e in a)this.ka.G3(parseInt(e),a[e]),this.x9(parseInt(e),a[e])};d.prototype.zHa=function(){f.model.size.nd.tD=this.oi;var b=f.model.size.nd.rowHeaderSizes,a=[],c;for(c in b)isNaN(b[c])||(a[parseInt(c)+this.oi]=b[c]);for(var e in a)parseInt(e)<this.Ye&&this.ka.G3(parseInt(e),a[e])};d.prototype.AHa=function(){var b=f.model.size.nd.rowSizes,
a=[],c;for(c in b)if(!isNaN(b[c])){var e=this.G.eC(""==c?[]:c.split(","));-1!=e&&(e+=this.Ye,a[e]=b[c])}for(var g in a)this.ka.G3(parseInt(g),a[g])};d.prototype.x9=function(b,a){f.model.size.nd.tD=this.oi;if(b<this.oi)0<a?f.model.size.nd.rowFilterSizes[b]=a:delete f.model.size.nd.rowFilterSizes[b];else if(b<this.Ye)0<a?f.model.size.nd.rowHeaderSizes[b-this.oi]=a:delete f.model.size.nd.rowHeaderSizes[b-this.oi];else{var c=this.G.Lm(b-this.Ye,!0);null!=c&&(b=this.G.CS(b-this.Ye),this.G.ic.Ra&&c.push(b),
0<a?f.model.size.nd.rowSizes[c.join(",")]=a:delete f.model.size.nd.rowSizes[c.join(",")])}};d.prototype.gEa=function(){this.ka&&(this.ka.Eq(0),this.ka.es(0),this.ka.yr())};q.Object.defineProperties(d.prototype,{Ai:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.oc}},ka:{configurable:!0,enumerable:!0,get:function(){return this.Me}},EL:{configurable:!0,enumerable:!0,get:function(){return this.G.mj?this.G.nq+this.Ye:0}},DL:{configurable:!0,enumerable:!0,get:function(){return this.G.mj?
this.G.oq+this.dg:0}}});h.Qla=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(l,m){var n=y.da.call(this,g.zI)||this;n.zg=l;n.value=m;return n}function b(l,m,n){n=void 0===n?null:n;var p=y.da.call(this,g.vs)||this;p.hb=l;p.lc=m;p.B3=n;return p}function a(l,m,n){n=void 0===n?null:n;var p=y.da.call(this,g.Iu)||this;p.hierarchy=l;p.cell=m;p.element=n;return p}function c(l,m,n){n=void 0===n?null:n;var p=y.da.call(this,g.GI)||this;p.cell=l;p.Wda=m;p.element=n;return p}function e(l,m,n){m=void 0===m?null:m;n=void 0===n?null:n;var p=
y.da.call(this,g.hn)||this;p.cell=l;p.element=m;p.np=n;return p}function g(){}g.hn="mclick";g.GI="singledoubleclick";g.a6="dthclosed";g.Iu="filter_click";g.zI="live_filter_change";g.qE="resize_c";g.rE="resize_r";g.noa="request_data_doubleclick";g.X5="dragndrop_remove";g.W5="dragndrop_move";g.vs="filter_keyboard_select";g.uI="grid_keyboard_select";h.mc=g;u(e,y.da);h.S6=e;u(c,y.da);h.T6=c;u(a,y.da);h.iO=a;u(b,y.da);h.jO=b;u(d,y.da);h.rma=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){}d.validate=function(b){return b==d.Ez||b==d.Cu||b==d.ih?b:d.Ez};d.Ez="compact";d.Cu="classic";d.ih="flat";h.ie=d})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){if(null!=h.ne)throw Error("Singleton");var d=A.Vb.mh.call(this,k.Hb.zb.F)||this;d.Y("fm-alert-view");d.$j("alertdialog");d.te();return d}u(h,A.Vb.mh);h.U=function(){null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};h.prototype.te=function(){var d=this;this.QC.Y("fm-overlay-alert");this.lJ=[];var b=new A.Ca("div","fm-content");this.V(b);this.mr=new A.Oc;this.mr.Y("fm-popup-title");b.V(this.mr);this.lr=new A.Oc;b.V(this.lr);this.Zs=new A.Ca("div",
"fm-ui-btns-row");b.V(this.Zs);this.HA=new A.Ca("div","fm-alert-icon");this.HA.Cm();this.V(this.HA);f.Pj.addEventListener("keydown",function(a){return d.kp(a)})};h.prototype.Xr=function(d,b,a,c,e,g){d=void 0===d?"":d;b=void 0===b?"":b;a=void 0===a?f.rb.Ik:a;c=void 0===c?null:c;e=void 0===e?null:e;g=void 0===g?!1:g;this.clear();this.aha(b);this.oH(d);this.wIa(a);this.iIa(c,e);k.Hb.zb.V(this);this.h1=g;this.open();this.fxa();this.Go()};h.prototype.fxa=function(){var d=this.Zs.F.find(".fm-ui-btn-dark");
null==d&&(d=this.Zs.F.find(".fm-ui-btn"));d&&d.focus({preventScroll:!0})};h.prototype.clear=function(){this.aha("");for(this.oH("");0<this.lJ.length;)this.lJ.pop().sg();this.F.Ua("fm-alert",!1);this.F.Ua("fm-confirmation",!1);this.F.Ua("fm-error",!1);this.F.Ua("fm-info",!1);this.F.Ua("fm-question",!1)};h.prototype.aha=function(d){this.mr.gV(!1);this.mr.Za(d)};h.prototype.oH=function(d){this.lr.Za(d,!0)};h.prototype.iIa=function(d,b){var a=this;null==d&&(d=[f.model.A.j.OV]);d.reverse();null!=b&&b.reverse();
this.QX=b;for(var c=0;c<d.length;c++)b=new A.Jf,b.Za(d[c]),b.N(A.sd.Xe,function(e){return a.Nsa(e)}),this.lJ.push(b),this.isPrimary(d[c])&&b.Y("fm-ui-btn-dark"),this.isPrimary(d[c])&&(x.Oi.Qn||x.Oi.wC)?this.Zs.V(b):this.isPrimary(d[c])?this.Zs.F.prepend(b.F):this.Zs.V(b)};h.prototype.isPrimary=function(d){switch(d){case f.model.A.j.OV:case f.model.A.j.n5:case f.model.A.j.l5:case f.model.A.j.MD:return!0}return!1};h.prototype.Nsa=function(d){d=d.target;for(var b=-1,a=0;a<this.lJ.length;a++)if(this.lJ[a]==
d){b=a;break}if(!(0>b)&&(this.close(),null!=this.QX&&null!=this.QX[b]))this.QX[b]()};h.prototype.wIa=function(d){this.HA.F.ww();d==f.rb.Ik?this.HA.F.V(this.cva()):d==f.rb.fm?this.HA.F.V(this.dva()):d==f.rb.ya?this.HA.F.V(this.eva()):d==f.rb.pO&&this.HA.F.V(this.fva())};h.prototype.dva=function(){var d=new A.Aa("span","fm-circle");d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_confirm"));return d};h.prototype.fva=function(){var d=new A.Aa("span","fm-circle");d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_info"));
return d};h.prototype.cva=function(){var d=new A.Aa("span","fm-triangle-wrap");d.V(new A.Aa("span","fm-triangle"));d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_warning"));return d};h.prototype.eva=function(){var d=new A.Aa("span","fm-hexagon");d.V(new A.Aa("span","fm-ui-icon fm-icon-notif_arrow"));return d};h.prototype.close=function(){A.Vb.mh.prototype.close.call(this);this.clear()};h.prototype.L2=function(){this.h1||A.Vb.mh.prototype.L2.call(this)};h.prototype.kp=function(d){27===d.keyCode&&(A.Vb.mh.prototype.close.call(this),
this.clear())};k.GN=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(){if(null!=h.ne)throw Error("Singleton");var d=A.Vb.mh.call(this,k.Hb.zb.F)||this;d.Y("fm-prompt-view");d.te();return d}u(h,A.Vb.mh);h.U=function(){null==h.ne&&(h.ne=new h);return h.ne};h.dispose=function(){h.ne=null};h.prototype.te=function(){var d=this;this.QC.Y("fm-overlay-alert");var b=new A.Ca("div","fm-content");this.V(b);this.lr=new A.Oc;this.lr.Y("fm-message-label");b.V(this.lr);this.JJ=new A.Pi;this.JJ.Y("fm-prompt-input");b.V(this.JJ);this.Zs=new A.Ca("div",
"fm-ui-btns-row");b.V(this.Zs);b=new A.Jf("fm-ui-btn-dark");b.Za(f.model.A.j.OV);b.N(A.sd.Xe,function(){return d.MC()});this.Zs.V(b);b=new A.Jf;b.Za(f.model.A.j.Jk);b.N(A.sd.Xe,function(){return d.Sr()});this.Zs.V(b,x.Oi.Qn||x.Oi.wC)};h.prototype.Xr=function(d,b){this.B=b=void 0===b?null:b;this.lr.Za(void 0===d?"":d);this.JJ.cj(b&&b.defaultValue?b.defaultValue:"");k.Hb.zb.V(this);this.open();this.Go();this.JJ.F.element.focus()};h.prototype.MC=function(){this.B&&this.B.lfa&&this.B.lfa(this.JJ.yi());
this.close()};h.prototype.Sr=function(){this.B&&this.B.bU&&this.B.bU();this.close()};k.joa=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.value=NaN;this.label="";this.level=NaN;this.Zn=this.Yn=this.Wm=this.ng=this.Lg=this.draggable=this.collapsed=this.wf=this.cb=this.QS=this.PS=this.VIa=this.hBa=this.Jh=this.aT=this.vC=this.Jr=this.gw=this.jl=this.SL=this.th=this.ci=this.isFrozen=this.wk=this.Wt=this.numeric=!1;this.lc=this.hb=this.p4=-1;this.DM=null;this.il=this.WAa=this.ob=!1;this.conditions=[];this.xC=this.yC=!1;this.bB=d.Mp.i5}b.prototype.Jya=function(){return this.ng||
this.Lg?this.hierarchy.ra.ea(this.Xb.level.sb+1).caption:""};b.prototype.J=function(a){a=void 0===a?!1:a;if(null!=b.Mv){var c=new Ha;c.clear();c.tag="div";c.text+=this.KR;b.Mv(c.node,this.La());var e=c.text;e=f.model.Nb.valid(e)?e:f.model.Nb.validate(e);this.Wt=e!=this.label?!0:this.Wt;c.clear();c=document.createElement("div");c.innerHTML=e;e=c.textContent&&"number"!=typeof e?c.textContent.trim():e;a&&!this.QS&&(e=f.O.In(e,!0,!0));return e}return a?this.KR:this.label};b.prototype.Sx=function(a){this.Wt=
!0;null==this.style&&(this.style=new d.M5);this.style.gra(a)};b.prototype.zaa=function(a){this.Wt=!0;null==this.style&&(this.style=new d.M5);this.style.tv(a);this.style.lra(a)};b.prototype.La=function(){if(this.Tea)return this.Tea;var a=f.model.Ta.U().ga.sa,c=[];f.model.B.C.oc||f.v(a)||(c=a.KZ(this.th&&this.We?this.We:this.lg));var e=[];f.model.B.C.oc||f.v(a)||(e=a.LZ(this.ci&&this.We?this.We:this.Qg));a={columnIndex:this.lc,columns:c,label:this.label,escapedLabel:this.KR,measure:this.measure?this.measure.Ji():
null,hierarchy:this.hierarchy?this.hierarchy.Ji():null,member:this.Xb?this.Xb.La():null,rowIndex:this.hb,rows:e,type:this.th||this.ci||this.wk?"header":"value",value:this.value,expanded:this.wf,collapsed:this.collapsed,drilledUp:this.Lg,drilledDown:this.ng,recordId:this.DM,isTotal:this.Tj,isTotalRow:this.jl,isTotalColumn:this.gw,isClassicTotalRow:this.aT,isGrandTotal:this.By,isGrandTotalRow:this.Jr,isGrandTotalColumn:this.vC,isDrillThrough:this.il};isNaN(this.level)||(a.level=this.level);0<this.conditions.length&&
(a.conditions=this.conditions);return this.Tea=a};q.Object.defineProperties(b.prototype,{KR:{configurable:!0,enumerable:!0,get:function(){return this.QS?this.label:f.O.In(this.label,!0,!0)}},Tj:{configurable:!0,enumerable:!0,get:function(){return this.jl||this.gw}},By:{configurable:!0,enumerable:!0,get:function(){return this.Jr||this.vC}}});b.Mv=null;d.Yd=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.tV=[];this.AB=[];this.P={}}b.prototype.tv=function(a){-1==this.tV.indexOf(a)&&this.tV.push(a)};b.prototype.lra=function(a){-1==this.AB.indexOf(a)&&this.AB.push(a)};b.prototype.gra=function(a){for(var c in a)this.P[c]=a[c]};b.prototype.mS=function(){return this.AB.join(" ")};b.prototype.FS=function(){var a="",c;for(c in this.P)a+=c+":"+this.P[c]+";";return a};d.M5=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){}a.Rya=function(c){return 500<c?a.Ria:a.Ena};a.Ena="";a.Ria="Bold";d.Mla=a;b.prototype.merge=function(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};b.prototype.clone=function(){var c=new b;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};b.Axa=function(c,e){e=void 0===e?null:e;var g=new b;if(null==e||null!=e&&e.P("color")!=c.P("color"))g.color=c.P("color");if(null==e||null!=e&&e.P("background-color")!=c.P("background-color"))g.backgroundColor=c.P("background-color");if(null==e||null!=e&&e.P("background-image")!=c.P("background-image"))g.backgroundImage=
c.P("background-image");if(null==e||null!=e&&e.P("border-color")!=c.P("border-color"))g.borderColor=c.P("border-color");if(null==e||null!=e&&e.P("font-size")!=c.P("font-size"))g.fontSize=parseInt(c.P("font-size"));if(null==e||null!=e&&e.P("font-weight")!=c.P("font-weight"))g.fontWeight=c.P("font-weight");if(null==e||null!=e&&e.P("fill")!=c.P("fill"))g.fill=c.P("fill");if(null==e||null!=e&&e.P("text-align")!=c.P("text-align"))g.textAlign=c.P("text-align");if(null==e||null!=e&&e.P("font-family")!=c.P("font-family"))g.fontFamily=
c.P("font-family");if(null==e||null!=e&&e.P("width")!=c.P("width"))g.width=parseInt(c.P("width"));if(null==e||null!=e&&e.P("max-width")!=c.P("max-width"))g.maxWidth=parseInt(c.P("max-width"));if(null==e||null!=e&&e.P("min-width")!=c.P("min-width"))g.minWidth=parseInt(c.P("min-width"));if(null==e||null!=e&&e.P("height")!=c.P("height"))g.height=parseInt(c.P("height"));if(null==e||null!=e&&e.P("max-height")!=c.P("max-height"))g.maxHeight=parseInt(c.P("max-height"));if(null==e||null!=e&&e.P("min-height")!=
c.P("min-height"))g.minHeight=parseInt(c.P("min-height"));return g};b.dl=function(c,e,g){e=void 0===e?null:e;g=void 0===g?!0:g;var l=new A.Aa("div");l.Y(c).$a();c=new A.Aa("div");null==e?k.Hb.zb.F.append(l).append(c):e.append(l).append(c);e=b.Axa(l,g?c:null);l.remove();c.remove();return e};b.aS=function(c){var e=new b,g;for(c=c.replace(/ /g,";");-1<(g=c.indexOf(";"));)this.Kva(c.substring(0,g),e),c=c.substring(g+1);return e};b.VS=function(c){c=c.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,
g,l,m){return g+g+l+l+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)+")"};b.Kva=function(c,e){-1<c.indexOf("background-color")?e.backgroundColor=this.VS(c.substring(17,c.length)):-1<c.indexOf("background-image")?e.backgroundImage=c.substring(17,c.length):-1<c.indexOf("border-color")?e.borderColor=this.VS(c.substring(13,c.length)):-1<c.indexOf("color")?e.color=this.VS(c.substring(6,c.length)):-1<c.indexOf("font-size")?
e.fontSize=parseInt(c.substring(10,c.length)):-1<c.indexOf("fill")?e.fill=this.VS(c.substring(5,c.length)):-1<c.indexOf("text-align")?e.textAlign=c.substring(11,c.length):-1<c.indexOf("max-width")?e.maxWidth=parseInt(c.substring(10,c.length)):-1<c.indexOf("max-height")?e.maxHeight=parseInt(c.substring(11,c.length)):-1<c.indexOf("width")&&(e.width=parseInt(c.substring(6,c.length)))};b.ly=function(c,e,g){e=void 0===e?null:e;g=void 0===g?null:g;var l="";null==e&&(e=b.Zja);for(var m=0;m<e.length;m++)if(null==
g||null!=g&&c.P(e[m])!=g.P(e[m]))l+=e[m]+":"+c.P(e[m])+";";return l};b.vk=function(c,e,g){e=void 0===e?null:e;g=void 0===g?null:g;var l=new A.Aa("div");l.Y(c).$a();if(void 0===m){var m=new A.Aa("div");m.$a()}null==e?k.Hb.zb.F.append(l).append(m):e.append(l).append(m);c=b.ly(l,g,m);l.remove();null!=m&&m.remove();return c};b.h3=function(c){var e=[],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++)e[g]=parseInt(c[g]);void 0==e[3]&&(e[3]=1);return e};
b.Zja="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(" ");d.Yc=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}b.lX="fm-pivot-title";b.we="fm-cell";b.TV="fm-empty";b.YO="fm-sheet-header";b.zj="fm-header";b.Uz="fm-header-c";b.Ku="fm-header-r";b.Qma="fm-measure-header";b.Lp="fm-filter-header";b.yI="fm-live-filtering-header";b.pI="fm-filter-icon";b.nW="fm-filtered";b.jI="fm-filtered-icon";b.Vu="fm-total";b.mpa="fm-total-r";b.lpa="fm-total-c";b.tI="fm-grand-total";b.Ola="fm-grand-total-r";b.Nla="fm-grand-total-c";b.yW="fm-hierarchy-link";b.vO="fm-link";
b.zpa="fm-v-sort";b.Cpa="fm-v-sort-icon";b.Apa="fm-v-sort-asc";b.Bpa="fm-v-sort-desc";b.Rla="fm-h-sort";b.Ula="fm-h-sort-icon";b.Sla="fm-h-sort-asc";b.Tla="fm-h-sort-desc";b.jA="fm-sort-icon";b.e8="fm-with-order";b.iW="fm-expanded";b.j6="fm-expanded-icon";b.UV="fm-collapsed";b.z5="fm-collapsed-icon";b.qf="fm-level-";b.jka="fm-drilled-up";b.ika="fm-drilled-down";b.zW="fm-icon";b.X6="fm-kpi";b.Zla="fm-kpi-status-bad-icon";b.cma="fm-kpi-status-risk-icon";b.ama="fm-kpi-status-ok-icon";b.bma="fm-kpi-status-rising-icon";
b.$la="fm-kpi-status-good-icon";b.dma="fm-kpi-trend-bad-icon";b.hma="fm-kpi-trend-risk-icon";b.fma="fm-kpi-trend-ok-icon";b.gma="fm-kpi-trend-rising-icon";b.ema="fm-kpi-trend-good-icon";d.ua=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(){}b.jma="left icon";b.UI="right icon";b.gk="label";b.Y5="drill";b.vO="link";b.i5="backgroud";d.Mp=b})(h.W||(h.W={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=k.X.WH.call(this,b.F)||this;a.bd=b;return a}u(d,k.X.WH);d.prototype.H2=function(b,a){this.show(b.target,{left:a.clientX,top:a.clientY},b)};d.prototype.T2=function(b){this.show(b.target,{left:b.clientX,top:b.clientY},b)};d.prototype.cza=function(b){b=this.bd.nS(b);var a=this.Ab.ga.sa.ad();if(b&&!isNaN(b.HC))return a[b.HC];if(b&&b.measure)for(var c=0;c<a.length;c++)if(a[c].uniqueName==b.measure.uniqueName&&a[c].$==b.measure.$&&a[c].index==b.measure.index)return a[c];
return null};d.prototype.show=function(b,a,c){var e=this;if(!f.model.B.C.readOnly){var g=[];this.bd.yda(c.target)&&g.push({id:"drillthrough",label:f.model.A.j.E5,handler:function(){e.bd.drillThrough(c.target)}});this.bd.YAa(c.target)&&g.push({id:"open_filter",label:f.model.A.j.G5,handler:function(){e.bd.cH(c.target)}});var l=this.cza(b);l&&!l.Ka&&!l.Bg&&f.model.B.C.ul&&(l=this.my(l),0<l.length&&g.push({id:"aggregation",label:f.model.A.j.C5,submenu:l}));g=this.wR(g,this.bd.nS(b,!0),"charts");0<g.length&&
c.preventDefault();this.ER(g,a)}};d.prototype.Vea=function(b,a){var c=this.Ab.ga.sa.clone();b=c.ad()[b.index];b.$=a;f.model.B.C.Ho.$=b.$;this.Ab.ae(c)};h.Tja=d})(k.td||(k.td={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.rows=[];this.columns=[]}function a(){this.bv=this.cv=-1;this.wF=this.H_=this.xV=this.aN=this.scrollLeft=this.scrollTop=this.Qf=this.Ng=this.Vd=this.Hd=this.Po=this.Wk=this.sY=this.tQ=0;this.WA=15E5;this.YA=this.XA=1;this.Ri=[];this.Is=[];this.Us=[];this.er=[];this.Vs=[];this.BE=[];this.YE=[];this.WA=this.Jza();this.tQ=a.c8;this.sY=a.b8;this.jD();this.Yga()}a.prototype.Yga=function(){if(void 0===this.qY||void 0===this.pY){var c=
this.Kza();c&&(this.qY=c.width,this.pY=c.height)}};a.prototype.Kza=function(){return x.Bd().Vl?this.J$():x.Bd().Y0?{width:15,height:15}:x.Oi.Qn||x.Bd().$S||x.Bd().Rda?this.J$():{width:17,height:17}};a.prototype.J$=function(){if(null==k.Hb.zb.F.element.offsetParent)return null;var c=document.createElement("div");c.style.width="100%";c.style.height="100px";var e=document.createElement("div");x.Oi.Qn&&e.classList.add("fm-scrollbars");e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.style.visibility=
"hidden";e.style.width="50px";e.style.height="50px";e.style.overflow="hidden";e.appendChild(c);k.Hb.zb.F.element.appendChild(e);var g=c.offsetWidth;e.style.overflow="scroll";var l=c.offsetWidth;g==l&&(l=e.clientWidth);c.style.width="100px";c.style.height="100%";e.style.overflow="hidden";var m=c.offsetHeight;e.style.overflow="scroll";c=c.offsetHeight;m==c&&(c=e.clientHeight);k.Hb.zb.F.element.removeChild(e);e=g-l;m-=c;x.Bd().QL&&(m=e);return{width:e,height:m}};a.prototype.Jza=function(){return x.BR().$S||
x.BR().QL?1E7:15E5};a.prototype.uF=function(c){this.Is.length-1>=c&&(this.Is.length=c);this.er.length-1>=c&&(this.er.length=c);this.BE.length-1>=c&&(this.BE.length=c);for(var e in this.Ri)this.Ri.hasOwnProperty(e)&&!f.v(this.Ri[e])&&this.Ri[e].length-1>=c&&(this.Ri[e].length=c);this.cv=-1};a.prototype.qB=function(c){this.Us.length-1>=c&&(this.Us.length=c);this.Vs.length-1>=c&&(this.Vs.length=c);this.YE.length-1>=c&&(this.YE.length=c);this.Ri.length-1>=c&&(this.Ri.length=c);this.bv=-1};a.prototype.reset=
function(){this.Is.length=0;this.Us.length=0;this.er.length=0;this.Vs.length=0;this.BE.length=0;this.YE.length=0;this.bv=this.cv=-1;this.H_=this.xV=this.scrollLeft=this.scrollTop=this.Qf=this.Ng=this.Vd=this.Hd=this.Po=this.Wk=0;this.tQ=a.c8;this.sY=a.b8;this.YA=this.XA=1;this.aN=this.Ri.length=0;this.jD()};a.prototype.jD=function(){var c=k.X.W.Yc.dl(x.Bd().Vl?"fm-grid-column-mobile":"fm-grid-column");isNaN(c.minWidth)||(a.SD=c.minWidth);isNaN(c.width)||(a.ts=Math.max(a.SD,c.width));isNaN(c.maxWidth)||
(a.Kp=0>=c.maxWidth?0:Math.max(a.SD,c.maxWidth));var e=k.X.W.Yc.dl(x.Bd().Vl?"fm-grid-row-mobile":"fm-grid-row");isNaN(e.minHeight)||(a.RD=e.minHeight);isNaN(e.height)||(a.Bu=Math.max(a.RD,e.height));isNaN(e.maxHeight)||(a.Qq=0>=c.maxHeight?0:Math.max(a.RD,e.maxHeight))};a.prototype.setScale=function(){var c=this.jt(this.Vd,this.Vd+this.Po);this.YA=c>this.WA?this.WA/c:1;c=this.kt(this.Hd,this.Hd+this.Wk);this.XA=c>this.WA?this.WA/c:1};a.prototype.resize=function(c,e){this.OA=c;this.NA=e};a.prototype.Nd=
function(c){var e=isNaN(this.Us[c])?a.Bu:this.Us[c];return 0<a.Qq&&!this.BC(c)?Math.min(a.Qq,e):e};a.prototype.Cw=function(c,e,g,l){0!=e&&(e=Math.max(e,a.RD));if(void 0===g?0:g){if(isNaN(this.Vs[c])||e>this.Vs[c])this.Vs[c]=e}else this.Us[c]=e,this.bv=-1;(void 0===l?0:l)&&(this.YE[c]=!0)};a.prototype.vHa=function(c){if(this.BC(c)){delete this.Us[c];delete this.Vs[c];delete this.YE[c];this.bv=-1;for(var e in this.Ri)this.Ri.hasOwnProperty(e)&&delete this.Ri[e]}};a.prototype.Zg=function(c){if(-1==c)return this.Hr();
if(c>=this.$i)return Math.max(100,a.ts);var e=isNaN(this.Is[c])?a.ts:this.Is[c];return 0<a.Kp&&!this.tC(c)?Math.min(a.Kp,e):e};a.prototype.WK=function(c,e,g){return 0>=g?Math.max(e,c):Math.min(g,Math.max(e,c))};a.prototype.QM=function(c,e,g,l){0!=e&&(e=this.WK(e,a.SD,a.Kp));if(void 0===g?0:g){if(isNaN(this.er[c])||e>this.er[c])this.er[c]=e}else-1==c?this.tQ=e:this.Is[c]=e,this.cv=-1;(void 0===l?0:l)&&(this.BE[c]=!0)};a.prototype.tHa=function(c){if(this.tC(c)){delete this.Is[c];delete this.er[c];delete this.BE[c];
this.cv=-1;for(var e in this.Ri)this.Ri.hasOwnProperty(e)&&(f.v(this.Ri[e])||delete this.Ri[e][c])}};a.prototype.tC=function(c){return!0===this.BE[c]};a.prototype.BC=function(c){return!0===this.YE[c]};a.prototype.IQ=function(){var c=new b;for(m in this.Vs){var e=parseInt(m);if(!isNaN(e)&&!this.BC(e)){var g=this.Vs[e];!isNaN(g)&&g>this.Nd(e)&&(this.Cw(e,g),c.rows.push(e))}}this.Vs.length=0;for(var l in this.er){var m=parseInt(l);isNaN(m)||this.tC(m)||(e=this.er[m],!isNaN(e)&&e>this.Zg(m)&&(this.QM(m,
e),c.columns.push(m)))}this.er.length=0;return c};a.prototype.uL=function(c,e){e=void 0===e?!1:e;var g=c/this.vt*(this.Mr/this.YA-this.Mr)*this.YA;if(1!=this.YA&&c+g>=this.vt-this.Mr){e=this.Ak;for(g=this.vt;g>c;)g-=this.Nd(e),e--;return e+1}e=e?0:this.Vd;for(var l=0;l<c+g;)l+=this.Nd(e)*this.YA,e++;return e};a.prototype.cL=function(c,e){var g=c/this.wt*(this.bp/this.XA-this.bp)*this.XA;if(1!=this.XA&&c+g>=this.wt-this.bp){e=this.$i;for(g=this.wt;g>c;)g-=this.Zg(e),e--;return e+1}e=(void 0===e?0:
e)?0:this.Hd;for(var l=0;l<c+g;)l+=this.Zg(e)*this.XA,e++;return e};a.prototype.Qca=function(c){for(var e=0,g=0,l=this.Ed;g<l;)g+=this.Nd(c+e),e++;return e};a.prototype.Pca=function(c){for(var e=0,g=0,l=this.Fd;g<l;)g+=this.Zg(c+e),e++;return e};a.prototype.kt=function(c,e){if(c>=e)return 0;var g=0,l=0,m;for(m in this.Is){var n=parseInt(m);!isNaN(n)&&!isNaN(this.Is[n])&&n>=c&&n<e&&(l++,g+=this.Zg(n))}g+=(Math.min(e,this.$i)-c-l)*(0<a.Kp?Math.min(a.Kp,a.ts):a.ts);e>=this.$i&&(g+=(e-this.$i)*this.Zg(e));
return g};a.prototype.jt=function(c,e){if(c>=e)return 0;var g=0,l=0,m;for(m in this.Us){var n=parseInt(m);!isNaN(n)&&!isNaN(this.Us[n])&&n>=c&&n<e&&(l++,g+=this.Nd(n))}return g+=(e-c-l)*(0<a.Qq?Math.min(a.Qq,a.Bu):a.Bu)};a.prototype.uta=function(){this.Ri.length=0};a.prototype.rda=function(c,e){return f.v(this.Ri[c])?!1:!0===this.Ri[c][e]};a.prototype.jIa=function(c,e){f.v(this.Ri[c])&&(this.Ri[c]=[]);this.Ri[c][e]=!0};a.prototype.UQ=function(){this.cv=this.bv=-1};a.prototype.Hr=function(){return f.model.B.C.vl?
this.tQ:0};a.prototype.Qt=function(){return f.model.B.C.vl?this.sY:0};a.prototype.oya=function(){for(var c=[],e=this.Hd;e<this.Wk&&(this.sda(e)||(c.push(e),!(50<=c.length)));e++);return c};a.prototype.pya=function(c){var e=[];c.bottom=Math.min(c.bottom,this.Ak);for(var g=c.left;g<=c.right;g++)for(var l=c.top;l<=c.bottom;l++)if(!this.rda(l,g)){e.push(g);break}return e};a.prototype.sda=function(c,e){return!isNaN(this.Is[c])||(void 0===e||e?!isNaN(this.er[c]):!1)};a.prototype.fC=function(c,e){e=void 0===
e?!1:e;var g=f.model.B.C.vl&&e?this.Qt():0;return g+=this.jt(e?0:this.Vd,c)};a.prototype.SB=function(c,e){e=void 0===e?!1:e;var g=f.model.B.C.vl&&e?this.Hr():0;return g+=this.kt(e?0:this.Hd,c)};a.prototype.Ln=function(c){c=void 0===c?!1:c;return new d.QD(this.fG(c),this.gG(c),this.RB(c),this.ny(c))};a.prototype.gG=function(c){return this.Av?this.Vd:(void 0===c?0:c)?Math.max(this.Vd,this.Ng-a.X7):Math.max(this.Vd,this.Ng)};a.prototype.fG=function(c){return this.Av?this.Hd:(void 0===c?0:c)?Math.max(this.Hd,
this.Qf-a.A5):Math.max(this.Hd,this.Qf)};a.prototype.ny=function(c){c=void 0===c?!1:c;var e=this.Qca(this.Ng);return this.Av?this.mC?this.Ak:this.Ng+e:c?Math.min(this.Ng+e+(this.mC?a.X7:0),this.mC?this.Ak:Number.MAX_VALUE):this.Ng+e};a.prototype.RB=function(c){var e=this.Pca(this.Qf);return this.Av?this.lC?this.$i:this.Qf+e:(void 0===c?0:c)?Math.min(this.Qf+e+(this.lC?a.A5:0),this.lC?this.$i:Number.MAX_VALUE):this.Qf+e};a.prototype.zC=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.RB());return 0<
this.scrollLeft&&c>=this.$i};a.prototype.AC=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.ny());return 0<this.scrollTop&&c>=this.Ak};a.prototype.bL=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.Qf);return this.zC()?this.wt-this.scrollLeft-this.kt(c,this.$i):0};a.prototype.tL=function(c){c=void 0===c?NaN:c;isNaN(c)&&(c=this.Ng);return this.AC()?this.vt-this.scrollTop-this.jt(c,this.Ak):0};a.prototype.BS=function(c,e){if(c<this.ke)return NaN;if(f.model.B.C.vl&&c<this.ke+this.Qt())return-1;var g=
0,l=this.ke+this.Qt();c>this.iq&&(g=this.Ng,l=this.ke+this.iq,e&&g>this.Vd?(e=this.scrollTop-this.fC(g-1),0<e&&(l-=e,g--)):e||(c-=this.tL()));for(;l<c;)l+=this.Nd(g),g++;return g-1};a.prototype.gS=function(c,e){if(f.model.B.C.vl&&c<this.Hr())return-1;var g=0,l=this.Hr();c>this.tp&&(g=this.Qf,l=this.tp,e&&g>this.Hd?(e=this.scrollLeft-this.SB(g-1)+this.aN,0<e&&(l-=e,g--)):e||(c-=this.bL()));for(;l<c;)l+=this.Zg(g),g++;return g-1};a.prototype.Nn=function(c,e,g){g=void 0===g?!0:g;var l=0,m=(g?this.ke:
0)+this.Qt();c>this.Vd&&(l=this.Ng,m=(g?this.ke:0)+this.iq,l<=c&&(m+=e?this.fC(this.Ng)-this.scrollTop:this.tL()));return m+=this.jt(l,c)};a.prototype.fl=function(c,e){var g=0,l=this.Hr();c>this.Hd&&(g=this.Qf,l=this.tp,g<=c&&(l+=e?this.SB(this.Qf)-this.scrollLeft-this.aN:this.bL()));return l+=this.kt(g,c)};a.prototype.xBa=function(c){return isNaN(this.Us[c])};a.prototype.On=function(c,e){return!isNaN(c)&&0==this.Nd(c)||!isNaN(e)&&0==this.Zg(e)?!0:!1};q.Object.defineProperties(a.prototype,{ke:{configurable:!0,
enumerable:!0,get:function(){return this.xV+this.H_}},eD:{configurable:!0,enumerable:!0,get:function(){return this.mC?this.qY:0}},dD:{configurable:!0,enumerable:!0,get:function(){return this.lC?this.pY:0}},bp:{configurable:!0,enumerable:!0,get:function(){return this.OA}},Mr:{configurable:!0,enumerable:!0,get:function(){return this.NA}},Ax:{configurable:!0,enumerable:!0,get:function(){return this.NA-this.dD-this.ke}},et:{configurable:!0,enumerable:!0,get:function(){return this.OA-this.eD}},Fd:{configurable:!0,
enumerable:!0,get:function(){return this.OA-this.tp}},Ed:{configurable:!0,enumerable:!0,get:function(){return this.NA-this.iq-this.ke}},$i:{configurable:!0,enumerable:!0,get:function(){return this.Hd+this.Wk}},Ak:{configurable:!0,enumerable:!0,get:function(){return this.Vd+this.Po}},wt:{configurable:!0,enumerable:!0,get:function(){return 0<=this.cv?this.cv:this.cv=1>this.XA?this.WA:this.kt(this.Hd,this.Hd+this.Wk)}},vt:{configurable:!0,enumerable:!0,get:function(){return 0<=this.bv?this.bv:this.bv=
1>this.YA?this.WA:this.jt(this.Vd,this.Vd+this.Po)}},FCa:{configurable:!0,enumerable:!0,get:function(){for(var c=0,e=this.Hd+this.Wk,g=this.Hd;g<e;g++)if(c+=this.Zg(g),c>a.D7)return a.D7;return c}},tp:{configurable:!0,enumerable:!0,get:function(){for(var c=this.Hr(),e=0;e<this.Hd;e++)c+=this.Zg(e);return c}},iq:{configurable:!0,enumerable:!0,get:function(){for(var c=this.Qt(),e=0;e<this.Vd;e++)c+=this.Nd(e);return c}},lC:{configurable:!0,enumerable:!0,get:function(){return this.wt+(this.vt>this.Ed?
this.qY:0)>this.Fd}},mC:{configurable:!0,enumerable:!0,get:function(){return this.vt+(this.wt>this.Fd?this.pY:0)>this.Ed}},Av:{configurable:!0,enumerable:!0,get:function(){return x.Bd().Di?!1:500>Math.max(this.$i,this.et/a.ts)*Math.max(this.Ak,this.Ax/a.Bu)}},Wsa:{configurable:!0,enumerable:!0,get:function(){return x.Bd().Di?!1:(this.mC||this.lC)&&1E5>this.$i*this.Ak}},qxa:{configurable:!0,enumerable:!0,get:function(){return this.scrollLeft+this.Fd-this.wt-this.eD}},pxa:{configurable:!0,enumerable:!0,
get:function(){return this.scrollTop+this.Ed-this.vt-this.dD}}});a.X7=5;a.A5=5;a.ts=100;a.SD=50;a.Kp=480;a.Bu=30;a.RD=30;a.Qq=100;a.b8=25;a.c8=25;a.D7=200;d.jh=a;d.eNa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=A.Aa.call(this,"div")||this;e.TX=!1;e.cell=new Ha;e.ba=a;e.tm=c;e.element.addEventListener("click",function(g){return e.rU(g)});return e}u(b,A.Aa);b.prototype.Dx=function(a){a=void 0===a?!1:a;for(var c=!1,e=this.element.children,g=0;g<e.length;g++){var l=e.item(g);c=this.dia(l,!0)||c;l=l.children;for(var m=0;m<l.length;m++){var n=l.item(m);c=this.pN(n,a)||c}}this.TX=c};b.prototype.dia=function(a,c){c=void 0===c?!1:c;if(null!=
this.ba){var e=!1,g=parseInt(a.getAttribute("data-r"));if(isNaN(g)||this.ba.BC(g))return!1;var l=a.clientHeight;a=a.offsetHeight;var m=a-l;a-this.ba.Nd(g)>m?(this.ba.Cw(g,Math.ceil(a),c),e=!0):l<=d.jh.Bu&&this.ba.Cw(g,d.jh.Bu,c);return e}};b.prototype.pN=function(a,c,e){c=void 0===c?!1:c;e=void 0===e?!1:e;if(null!=this.ba){var g=!1,l=parseInt(a.getAttribute("data-c")),m=parseInt(a.getAttribute("data-r"));if(isNaN(l)||a.classList.contains(h.W.ua.YO)&&0<=l||this.ba.tC(l)||this.ba.rda(m,l)&&!e)return!1;
a=a.offsetWidth;if(a>this.ba.Zg(l)){if(1<a-this.ba.Zg(l)||1==window.devicePixelRatio||1!=window.devicePixelRatio&&this.ba.Zg(l)==d.jh.ts)this.ba.QM(l,Math.ceil(a+3),c),g=!0}else-1!=l&&a<=d.jh.ts&&!this.ba.sda(l,!0)&&this.ba.QM(l,d.jh.ts,c);this.ba.jIa(m,l);return g}};b.prototype.Ox=function(a,c){var e=this.tm?this.tm(a,c):null;this.cell.clear();this.cell.tag="div";if(this.ba.On(a,c))return this.cell.style.display="none",this.cell;this.cell.Y(h.W.ua.we);var g=a>=this.ba.Ak||c>=this.ba.$i;!e&&g?this.cell.Y(h.W.ua.TV):
(this.cell.attr.role="gridcell",this.cell.attr["aria-rowindex"]=a+1,this.cell.attr["aria-colindex"]=c+1);e&&!isNaN(e.level)&&this.cell.Y(h.W.ua.qf+e.level);e&&e.ci&&(this.cell.Y(h.W.ua.zj),this.cell.Y(h.W.ua.Ku),this.cell.Y(h.W.ua.qf+e.level),this.cell.attr.role="rowheader");e&&e.th&&(this.cell.Y(h.W.ua.zj),this.cell.Y(h.W.ua.Uz),this.cell.attr.role="columnheader");e&&e.SL&&this.cell.Y(h.W.ua.Qma);e&&e.Tj&&this.cell.Y(h.W.ua.Vu);e&&e.gw&&this.cell.Y(h.W.ua.lpa);e&&e.jl&&this.cell.Y(h.W.ua.mpa);e&&
e.By&&this.cell.Y(h.W.ua.tI);e&&e.vC&&this.cell.Y(h.W.ua.Nla);e&&e.Jr&&this.cell.Y(h.W.ua.Ola);e&&e.wf&&(this.cell.Y(h.W.ua.iW),this.cell.text+=this.Cn(h.W.ua.j6,f.model.A.j.fP));e&&e.collapsed&&(this.cell.Y(h.W.ua.UV),this.cell.text+=this.Cn(h.W.ua.z5,f.model.A.j.gP));e&&e.yC&&(this.cell.Y(h.W.ua.X6),-.75>=e.value?this.cell.Y(h.W.ua.dma):-.25>=e.value?this.cell.Y(h.W.ua.hma):.25>e.value?this.cell.Y(h.W.ua.fma):.75>e.value?this.cell.Y(h.W.ua.gma):1>=e.value&&this.cell.Y(h.W.ua.ema));e&&e.xC&&(this.cell.Y(h.W.ua.X6),
-.75>=e.value?this.cell.Y(h.W.ua.Zla):-.25>=e.value?this.cell.Y(h.W.ua.cma):.25>e.value?this.cell.Y(h.W.ua.ama):.75>e.value?this.cell.Y(h.W.ua.bma):1>=e.value&&this.cell.Y(h.W.ua.$la));this.cell.text+=e?e.KR:"";e&&(e.Lg||e.ng)&&(this.cell.text+='<span class="'+h.W.ua.yW+'" title="'+(e.Lg?f.model.A.j.dpa:f.model.A.j.epa)+'">'+e.Jya()+"</span>",e.Lg&&this.cell.Y(h.W.ua.jka),e.ng&&this.cell.Y(h.W.ua.ika));if(e&&e.th){if(e.Wm&&!e.ob){var l="";0<=e.p4&&(l="<span>"+(e.p4+1)+"</span>");var m=f.v(e.measure)||
e.measure.type!=f.u.i.Ja.sc;this.cell.text=e.Yn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Apa,f.ha(l)?"":h.W.ua.e8],this.sG(f.u.i.xa.bc,m,f.model.B.C.oc),l):e.Zn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Bpa,f.ha(l)?"":h.W.ua.e8],this.sG(f.u.i.xa.Ec,m,f.model.B.C.oc),l):this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Cpa],this.sG(f.u.i.xa.Zc,m,f.model.B.C.oc))}e.ob&&this.cell.Y(h.W.ua.TV);e.ob||this.cell.Y(h.W.ua.zpa)}e&&e.ci&&(e.Wm&&!e.ob&&(this.cell.text=e.Yn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Sla],
this.sG(f.u.i.xa.bc)):e.Zn?this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Tla],this.sG(f.u.i.xa.Ec)):this.cell.text+this.Cn([h.W.ua.jA,h.W.ua.Ula],this.sG(f.u.i.xa.Zc))),this.cell.Y(h.W.ua.Rla));this.cell.attr["data-c"]=c;this.cell.attr["data-r"]=a;this.cell.attr["data-n"]=0==a%2?"even":"odd";0!=c||f.model.B.C.vl||(this.cell.style.height=this.ba.Nd(a)+"px");if(e&&e.style){for(l=0;l<e.style.tV.length;l++)this.cell.Y(e.style.tV[l]);l=e.style.P;for(var n in l)this.cell.style[n]=l[n]}this.Jga(this.cell,a,c,
e&&e.Jh);null==h.W.Yd.Mv||g||(null==e&&(e=new h.W.Yd,e.hb=a,e.lc=c),h.W.Yd.Mv(this.cell.node,e.La()));return this.cell};b.prototype.sG=function(a,c,e){a=f.u.i.xa.xS(a,void 0===c?!0:c,void 0===e?!1:e);return a==f.u.i.xa.bc?f.model.A.j.hpa:a==f.u.i.xa.Ec?f.model.A.j.ipa:a==f.u.i.xa.Zc?f.model.A.j.kpa:f.model.A.j.jpa};b.prototype.T0=function(a,c){return this.tm?(a=this.tm(a,c),f.v(a)||f.ha(a.label)):!0};b.prototype.Jga=function(a,c,e,g){g=void 0===g?!1:g;this.ba.tC(e)||this.ba.BC(c)?(a.style.width=this.ba.Zg(e)+
"px",a.style.height=this.ba.Nd(c)+"px"):(a.style["min-width"]=this.ba.Zg(e)+"px",a.style[g?"height":"min-height"]=this.ba.Nd(c)+"px");!this.ba.tC(e)&&0<d.jh.Kp&&(a.style["max-width"]=d.jh.Kp+"px");!this.ba.BC(c)&&0<d.jh.Qq&&(a.style["max-height"]=d.jh.Qq+"px")};b.prototype.Cn=function(a,c,e){c=void 0===c?null:c;e=void 0===e?"":e;Array.isArray(a)&&(a=a.join(" "));a='<i aria-hidden="true" class="'+h.W.ua.zW+" "+a+'"';c&&(a+='title="'+c+'"');return a+(">"+e+"</i>")};b.prototype.mva=function(){this.cell.clear();
this.cell.tag="div";this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.YO);this.cell.style.width=this.ba.Hr()+"px";this.cell.style.height=this.ba.Qt()+"px";this.cell.attr["aria-hidden"]="true";return this.cell};b.prototype.maa=function(a){this.cell.clear();this.cell.tag="div";if(this.ba.On(-1,a))return this.cell.style.display="none",this.cell;this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.YO);this.cell.text+=a+1;this.cell.style.width=this.ba.Zg(a)+"px";0<d.jh.Kp&&!this.ba.tC(a)&&(this.cell.style["max-width"]=d.jh.Kp+
"px");this.cell.style.height=this.ba.Qt()+"px";this.cell.attr["data-r"]=-1;this.cell.attr["data-c"]=a;this.cell.attr["aria-hidden"]="true";return this.cell};b.prototype.tR=function(a){this.cell.clear();this.cell.tag="div";if(this.ba.On(a,-1))return this.cell.style.display="none",this.cell;this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.YO);this.cell.text+=a+1;this.cell.style["min-width"]=this.ba.Hr()+"px";this.cell.style.height=this.ba.Nd(a)+"px";this.cell.style["line-height"]=this.ba.Nd(a)-2+"px";0<d.jh.Qq&&
!this.ba.BC(a)&&(this.cell.style["max-height"]=d.jh.Qq+"px");this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=-1;this.cell.attr["aria-hidden"]="true";return this.cell};b.prototype.V_=function(a,c){a=this.ba.cL(a)-1;c=this.ba.uL(c)-1;var e=null;null!=this.tm&&(e=this.tm(c,a));null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.Nt=function(a){for(;!a.Lc(h.W.ua.we);)if(a=a.parent,null==a)return null;var c=parseInt(a.attr("data-c"));a=parseInt(a.attr("data-r"));var e=null!=this.tm?this.tm(a,
c):k.Hb.zb.sS(a,c);null==e&&(e=new h.W.Yd,e.hb=a,e.lc=c);return e};b.prototype.rU=function(a){var c=A.Aa.Pb(a.target),e=this.Nt(c)||this.V_(a.offsetX,a.offsetY);switch(a.type){case "click":var g=new h.S6(e,c,a)}g&&this.Da(g)};b.prototype.dispose=function(){A.Aa.prototype.dispose.call(this);this.ba=this.tm=null};q.Object.defineProperties(b.prototype,{uC:{configurable:!0,enumerable:!0,get:function(){return this.TX}}});d.zu=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){a=d.zu.call(this,a,c)||this;a.dNa=1E3;a.fQ=!1;a.Y("fm-sheet-canvas");a.Sk=new Ia;a.V(a.Sk);a.Cl=new d.QD;a.Rh=new d.QD;return a}u(b,d.zu);b.prototype.gb=function(){};b.prototype.Yx=function(){};b.prototype.Fha=function(){0!=this.$b&&(this.Cl.reset(),this.Rh.reset(),this.gb())};b.prototype.tF=function(){this.Cl.reset()};b.prototype.sta=function(){this.Rh.reset()};b.prototype.Fv=function(){this.tF();this.sta()};b.prototype.Dx=function(a){a=
void 0===a?!1:a;for(var c=!1,e=this.Sk.content.element.children,g=0;g<e.length;g++){var l=e.item(g);c=this.dia(l,a)||c;l=l.children;for(var m=0;m<l.length;m++){var n=l.item(m);c=this.pN(n,a)||c}}this.TX=c};b.prototype.bz=function(){this.Sk.content.width=this.rv-this.ba.eD;this.Sk.content.height=this.Ps-this.ba.dD};b.prototype.jya=function(a,c){a=this.ba.gS(a,this.$b);c=this.ba.BS(c,this.$b);var e=null;null!=this.tm&&(e=this.tm(c,a));null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.rU=function(a){var c=
this.parent.Sf();var e=a.clientX-c.left;var g=a.clientY-c.top;c=a.target;c==this.jb.placeholder.element&&(this.jb.placeholder.P("pointer-events","none"),c=document.elementFromPoint(a.clientX,a.clientY),this.jb.placeholder.P("pointer-events",""));c=A.Aa.Pb(c);e=this.Nt(c)||this.jya(e,g);null!=e&&null!=c&&(g=h.W.Mp.i5,c.Lc(h.W.ua.yW)?g=h.W.Mp.Y5:c.Lc(h.W.ua.j6)||c.Lc(h.W.ua.z5)?g=h.W.Mp.jma:c.Lc(h.W.ua.jA)?g=h.W.Mp.UI:c.Lc(h.W.ua.vO)&&(g=h.W.Mp.vO),e.bB=g);switch(a.type){case "click":var l=new h.S6(e,
c,a)}l&&this.Da(l)};b.prototype.EF=function(a,c,e){c=void 0===c?!1:c;e=void 0===e?!1:e;var g=[],l=new Ha;e&&g.push(this.Uua(a));for(e=a.top;e<a.bottom;e++){l.tag="div";l.Y("fm-row");l.attr["data-r"]=e;e<this.ba.Ak&&this instanceof d.c6&&(l.attr.role="row");c&&(l.text+=Ja(this.tR(e)));for(var m=a.left;m<a.right;++m)l.text+=Ja(this.Ox(e,m));g.push(Ja(l))}return g.join("")};b.prototype.Uua=function(a){for(var c="",e=a.left;e<a.right;++e)c+=Ja(this.maa(e));a=new Ha;a.tag="div";a.Y("fm-row");a.text=c;
return c=Ja(a)};b.prototype.Mca=function(){var a=this.ba.gG();return this.$b?this.ba.jt(this.Rh.top,a)-this.jb.BF:this.ba.tL(a)};b.prototype.Lca=function(){var a=this.ba.fG();return this.$b?this.ba.kt(this.Rh.left,a)-this.jb.rt:this.ba.bL(a)};b.prototype.dispose=function(){this.jb.dispose();d.zu.prototype.dispose.call(this)};q.Object.defineProperties(b.prototype,{$b:{configurable:!0,enumerable:!0,get:function(){return this.fQ},set:function(a){this.fQ!=a&&(this.fQ=a,this.Wa(this.$b?b.i6:b.hW))}},jb:{configurable:!0,
enumerable:!0,get:function(){return this.Sk}},width:{configurable:!0,enumerable:!0,get:function(){return this.rv},set:function(a){this.rv!=a&&(this.element.style.minWidth=a+"px",this.rv=a,this.Sk.width=a)}},height:{configurable:!0,enumerable:!0,get:function(){return this.Ps},set:function(a){this.Ps!=a&&(this.element.style.height=a+"px",this.Ps=a,this.Sk.height=a)}}});b.i6="switched_to_smooth";b.hW="switched_to_simple";d.Jp=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c,e,g){this.left=void 0===a?0:a;this.top=void 0===c?0:c;this.right=void 0===e?0:e;this.bottom=void 0===g?0:g}b.prototype.set=function(a){this.left=a.left;this.top=a.top;this.right=a.right;this.bottom=a.bottom};b.prototype.reset=function(){this.bottom=this.right=this.top=this.left=0};b.prototype.contains=function(a){return this.left<=a.left&&this.top<=a.top&&this.right>=a.right&&this.bottom>=a.bottom};b.prototype.clone=function(){return new b(this.left,
this.top,this.right,this.bottom)};d.QD=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.OB=[];this.data=[];this.coords=a}b.prototype.reset=function(){this.data=[];this.OB=[]};b.prototype.setData=function(a,c,e,g){e.hb=a;e.lc=c;if(c<this.coords.Hd||(void 0===g?0:g))null==this.data[a]&&(this.data[a]=[]),this.data[a][c]=e};b.prototype.XU=function(a,c,e){null==this.OB[a]&&(this.OB[a]=[]);this.OB[a][c]=e};b.prototype.Ysa=function(a,c){void 0===this.data[a]&&(this.data[a]=[]);return void 0!==this.data[a][c]};b.prototype.getData=
function(a,c,e){e=void 0===e?!0:e;if(0==this.Ysa(a,c)){var g=this.WB(a,c);null!=g&&(g.hb=a,g.lc=c);if(e)this.data[a][c]=g;else return g}if(null!==this.data[a][c])return this.data[a][c]};b.prototype.Gya=function(a,c){return this.OB[a]&&this.OB[a][c]?this.OB[a][c]:null};b.prototype.tta=function(a,c){null!=this.data[a]&&(this.data[a][c]=this.getData(a,c))};b.prototype.dispose=function(){this.reset();this.WB=null};d.Roa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(c,e){this.x=void 0===c?0:c;this.y=void 0===e?0:e}function a(c){var e=this;this.bF=this.px=null;this.Zi=new f.nb;this.DJ={};this.pJ={};this.zT=function(g){return e.kp(g)};this.ka=c;this.coords=this.ka.coords;this.$l=new d.Poa(this,this.ka);this.dIa=new d.Pia;this.cu=x.sO.U();this.cu.N(x.KeyboardEvent.rO,this.zT)}a.prototype.dispose=function(){null!=this.Zi&&0<this.Zi.length&&this.qZ();this.cu.mb(x.KeyboardEvent.rO,this.zT);this.cu=this.ka=
null;this.$l.dispose()};a.prototype.gb=function(){this.$l.r3()};a.prototype.Efa=function(c,e){this.$l.uT?this.JHa(c,e):this.sga(c,e);this.gb()};a.prototype.Ffa=function(c,e){this.$l.cT||(null==this.$l.wp&&(this.$l.wp=new d.h8(this.ka)),this.$l.wp.Kx=c.toString()+"|"+e.toString(),this.gb())};a.prototype.select=function(c,e){this.yr();this.px=c;this.bF=e;this.Efa(c,e)};a.prototype.JHa=function(c,e){this.tda(c,e)&&!this.Zi.Bb(this.xF(c,e))&&(this.qZ(),this.sga(c,e))};a.prototype.sga=function(c,e){null!=
this.$l.wp&&(this.$l.wp.remove(),this.$l.wp=null);if(!this.$l.cT||this.tda(c,e))if(this.Zi.Bb(this.xF(c,e)))g=this.Zi.getItem(this.xF(c,e)),null!=g.up&&delete this.DJ[c.y.toString()],null!=g.Jo&&delete this.pJ[c.x.toString()],g.remove(),this.Zi.removeItem(this.xF(c,e));else if(null!=c&&null!=e){var g=new d.h8(this.ka);g.Kx=this.xF(c,e);this.Zi.Pa(g.Kx,g)}};a.prototype.qZ=function(){for(;0<this.Zi.length;)this.Zi.ea(0).remove(),this.Zi.A3(0);this.DJ={};this.pJ={}};a.prototype.xF=function(c,e){return c.x.toString()+
"|"+c.y.toString()+"|"+e.x.toString()+"|"+e.y.toString()};a.prototype.IF=function(c){c=c.split("|");var e={};4==c.length?(e.from=new f.K.X.sheet.Xq(parseInt(c[0]),parseInt(c[1])),e.Ep=new f.K.X.sheet.Xq(parseInt(c[2]),parseInt(c[3]))):2==c.length&&(e.bs=parseInt(c[0]),e.qt=parseInt(c[1]));return e};a.prototype.Tda=function(c){return this.DJ.hasOwnProperty(c.y.toString())&&this.pJ.hasOwnProperty(c.x.toString())&&this.DJ[c.y.toString()]==d.N5.EN&&this.pJ[c.x.toString()]==d.N5.EN};a.prototype.tda=function(c,
e){return null==c||null==e||!c.VF(e)||this.Tda(c)||this.Tda(e)||0>c.x*c.y||0>e.x*e.y?!1:!0};a.prototype.selectAll=function(){this.select(new b(0,0),new b(this.coords.Wk+this.coords.Hd-1,this.coords.Po+this.coords.Vd-1))};a.prototype.Fga=function(c){if(!(null==this.px||this.px.VF(c)&&this.Zi.Bb(this.xF(this.px,c)))){var e=this.px;this.yr();this.px=e;this.bF=c;this.Efa(e,c)}};a.prototype.cIa=function(c){this.yr();this.Ffa(c,-1)};a.prototype.$Ha=function(c){this.yr();this.Ffa(-1,c)};a.prototype.yr=function(){!this.$l.cT&&
0<this.Zi.length&&!this.$l.uT&&this.qZ();null!=this.$l.wp&&(this.$l.wp.remove(),this.$l.wp=null);this.bF=this.px=null};a.prototype.clear=function(){this.yr();this.gb()};a.prototype.GAa=function(c){return c.Jh&&!isNaN(c.value)||c.il&&c.Jh&&""!=c.label};a.prototype.Asa=function(c){if(null==c)return!1;for(var e=0,g=0;g<c.length;g++)if(this.GAa(c[g])&&e++,2<=e)return!0;return!1};a.prototype.txa=function(c,e){return c&&e?Math.min(c.x,e.x):-1};a.prototype.uJa=function(c,e){return c&&e?Math.max(c.x,e.x):
-1};a.prototype.Bxa=function(c,e){return c&&e?Math.min(c.y,e.y):-1};a.prototype.GJa=function(c,e){return c&&e?Math.max(c.y,e.y):-1};a.prototype.move=function(c,e,g){g=void 0===g?!1:g;switch(c){case 37:this.KCa(g);break;case 38:this.NCa(g);break;case 39:this.LCa(g);break;case 40:this.JCa(g)}};a.prototype.KCa=function(c){this.Oea(-1,void 0===c?!1:c)};a.prototype.LCa=function(c){this.Oea(1,void 0===c?!1:c)};a.prototype.NCa=function(c){this.Pea(-1,void 0===c?!1:c)};a.prototype.JCa=function(c){this.Pea(1,
void 0===c?!1:c)};a.prototype.Oea=function(c,e){e=void 0===e?!1:e;if(1==this.Zi.length){var g=this.IF(this.Zi.ea(0).Kx),l=g.from,m=g.Ep;g=e?m.x:l.x;var n=e?m.x:l.x;g=this.cxa(g+c,e?m.y:l.y);g<this.coords.Qf?(c=Math.max(g,this.coords.Hd),this.ka.es(c)):g>=this.coords.Pca(this.coords.Qf)+this.coords.Qf-1&&(c=this.coords.Qf+(g-n),this.ka.es(c+1));c=e?m.y:l.y;m=g;this.select(new b(e?l.x:g,l.y),new b(m,c))}};a.prototype.Pea=function(c,e){e=void 0===e?!1:e;if(1==this.Zi.length){var g=this.IF(this.Zi.ea(0).Kx),
l=g.from,m=g.Ep;g=e?m.y:l.y;var n=e?m.y:l.y;g=this.dxa(g+c,e?m.x:l.x);g<this.coords.Ng?(c=Math.max(g,this.coords.Vd),this.ka.Eq(c)):g>=this.coords.Qca(this.coords.Ng)+this.coords.Ng-1&&(c=this.coords.Ng+(g-n),this.ka.Eq(c+1));c=g;m=e?m.x:l.x;this.select(new b(l.x,e?l.y:g),new b(m,c))}};a.prototype.dxa=function(c,e){return Math.max(e<this.coords.Hd?this.coords.Vd:this.coords.wF+1,Math.min(c,this.coords.Ak-1))};a.prototype.cxa=function(c,e){return Math.max(e<this.coords.Vd?this.coords.Hd:this.coords.Hd-
1,Math.min(c,this.coords.$i-1))};a.prototype.kp=function(c){if(null!=this.cu&&(this.ka.Nm||this.cu.Fda)){var e=c.ctrlKey||c.metaKey;switch(c.keyCode){case 13:case 32:e||this.ka.Wa(h.mc.uI);break;case 65:e&&(this.selectAll(),c.np.preventDefault());break;case 37:case 39:case 38:case 40:this.move(c.keyCode,c.ctrlKey,c.shiftKey),c.np.preventDefault()}!e||c.altKey||c.shiftKey||this.cu.Fda||67!==c.keyCode||this.DF()}};a.prototype.DF=function(){var c="";if(0<this.Zi.length)for(var e,g=0;g<this.Zi.length;g++)e=
this.Zi.ea(g),null!=e.Kj&&(e=this.IF(e.Kx),c+=this.Iua(e.from,e.Ep),g<this.Zi.length-1&&(c+="\n"));0<c.length&&this.cu.DF(c)};a.prototype.Iua=function(c,e){var g="";if(null==c||null==e)return g;var l=Math.min(c.x,e.x),m=Math.max(c.x,e.x),n=Math.max(c.y,e.y);for(e=Math.min(c.y,e.y);e<=n;e++){for(var p=l;p<=m;p++){p>l&&(g+="\t");c=this.ka.Rf(e,p,!0);if(null==c&&(c=e<this.coords.Ng&&p>=this.coords.Qf?this.ka.Rf(e,p-this.coords.Qf+this.coords.Hd,!0):null,null==c))continue;g+=null==c?"":c.J()}e<n&&(g+=
"\n")}return g};q.Object.defineProperties(a.prototype,{Fq:{configurable:!0,enumerable:!0,get:function(){return this.Zi}},Ep:{configurable:!0,enumerable:!0,get:function(){return this.bF},set:function(c){this.bF=c}},from:{configurable:!0,enumerable:!0,get:function(){return this.bF},set:function(c){this.px=c}},oga:{configurable:!0,enumerable:!0,get:function(){return this.DJ}},V$:{configurable:!0,enumerable:!0,get:function(){return this.pJ}},Hsa:{configurable:!0,enumerable:!0,get:function(){return this.dIa}}});
d.Qoa=a;b.prototype.VF=function(c){return c.x==this.x&&c.y==this.y};d.Xq=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(e){this.ka=this.CJ=this.oJ=this.WE=this.AE=this.vP=null;this.ka=e;this.vP=this.AK()}function a(){}function c(e,g){var l=this;this.$E=this.cT=!1;this.Yp=this.N9=null;this.B$=5;this.XHa=17;this.uT=!1;this.XG=function(m){return l.rU(m)};this.Mea=function(m){return l.J2(m)};this.di=e;this.ka=g;this.coords=this.ka.coords;this.Yp=new d.Oia;this.Yp.$a();this.ka.V(this.Yp);this.ka.element.addEventListener("mousedown",this.XG);this.ka.element.addEventListener("mouseup",
this.XG)}c.prototype.rU=function(e){if(1==e.which||3==e.which){var g=A.Aa.Pb(e.target);if("mousedown"!=e.type||!(g.Lc(h.W.ua.Lp)||g.Lc(h.W.ua.pI)||g.Lc(h.W.ua.jI)||null!=g.closest(".fm-filters")||null!=g.closest("."+h.W.ua.yI))){var l=this.ka.Sf();g=e.clientX-l.left;l=e.clientY-l.top;if(!(g>this.coords.et||l>this.coords.ke+this.coords.Ax||(l=this.coords.BS(l,this.ka.$b),g=this.coords.gS(g,this.ka.$b),isNaN(l)||isNaN(g))))switch(this.cT=!x.Oi.Qn&&e.ctrlKey||x.Oi.Qn&&e.metaKey,this.uT=3==e.which,e.type){case "mousedown":this.rw(l,
g);break;case "mousemove":this.sw(l,g);break;case "mouseup":this.zq(l,g)}}}};c.prototype.J2=function(e){var g=A.Aa.Pb(this.ka.element),l=e.clientX;e=e.clientY;(l<g.left||e<g.top||l>g.left+this.ka.width||e>g.top+this.ka.height)&&this.nJa()};c.prototype.select=function(e,g,l,m){this.uD=!1;this.di.select(new d.Xq(g,e),new d.Xq(m,l))};c.prototype.nJa=function(){this.uD=!1};c.prototype.rw=function(e,g){this.uD=!0;this.di.select(new d.Xq(g,e),new d.Xq(g,e));this.ka.element.addEventListener("mousemove",
this.XG);f.Pj.addEventListener("mousemove",this.Mea)};c.prototype.zq=function(e,g){this.uD&&(this.uD=!1,this.uT||(-1==e?this.di.$Ha(g):-1==g?this.di.cIa(e):this.di.from&&!this.di.from.VF(new d.Xq(g,e))&&this.di.Fga(new d.Xq(g,e))))};c.prototype.sw=function(e,g){this.uD&&(!this.di.Ep||this.di.Ep.x==g&&this.di.Ep.y==e||this.di.Fga(new d.Xq(g,e)))};c.prototype.dispose=function(){this.ka.element&&this.ka.element.removeEventListener("mousedown",this.XG);this.ka.element&&this.ka.element.removeEventListener("mouseup",
this.XG);this.Yp.dispose();this.coords=this.ka=this.di=null;null!=this.wp&&(this.wp.remove(),this.wp=null)};c.prototype.r3=function(){this.Yp.uHa();for(var e=0;e<this.di.Fq.length;e++){var g=this.di.Fq.ea(e);var l=this.di.IF(this.di.Fq.qh(e));this.Tqa(g,l.from,l.Ep)}this.Uqa(this.Yp);this.bwa(this.wp)};c.prototype.bwa=function(e){if(null!=e){e.$a();var g=this.di.IF(e.Kx);-1!=g.bs&&this.mwa(g.bs,e);-1!=g.qt&&this.lwa(g.qt,e)}};c.prototype.Uqa=function(e){e.$a();if(f.model.B.C.KIa&&e.JAa()&&null!=f.u.Na.U()&&
null!=f.u.Na.U().I){var g=this.ka.Fq;if(this.di.Asa(g)&&(e.jCa(),this.RJa(e,g),!e.BAa())){e.show();e.sv.tj("auto");e.top=e.Uk.bottom;g=this.coords.fl(this.coords.Hd,this.ka.$b);for(var l=0,m=0;m<e.Bo.length;m++)l+=e.Bo.ea(m).width;l=l+2*this.B$+2*(e.Bo.length-1)*this.B$;e.sv.width=l;g-e.Uk.right+l>this.coords.scrollLeft?e.Uk.right=e.Uk.left+l:g>e.Uk.right-l?(e.sv.P("left","auto"),e.sv.right=0,l=e.Uk.right-g):e.Uk.lga>=this.coords.et&&(e.sv.P("left","right"),e.sv.left=0,l=l-(e.Uk.lga-this.coords.et)-
1,l=0>l?0:l);this.coords.ke+this.coords.Ax<=e.Uk.bottom+e.height&&(e.top=e.Uk.bottom-this.XHa);e.left=e.Uk.right-l;e.$fa.width=l;e.width=l}}};c.prototype.RJa=function(e,g){this.di.Hsa.aHa(e,g)};c.prototype.Tqa=function(e,g,l){e.$a();var m=Math.min(g.x,l.x),n=Math.min(g.y,l.y),p=Math.max(g.x,l.x);g=Math.max(g.y,l.y);this.QGa(m,p,n,g,e);f.model.B.C.vl&&this.ewa(m,p,n,g,e);l=this.coords.et;var t=this.coords.ke+this.coords.Ax,r=Math.max(this.coords.ke,this.coords.Nn(n,this.ka.$b)-1),v=this.coords.Nn(g+
1,this.ka.$b),z=Math.min(t,v),B=Math.max(0,this.coords.fl(m,this.ka.$b)-1),C=this.coords.fl(p+1,this.ka.$b),E=Math.min(l,C),K=z-r,J=E-B;2>=J||2>=K?null!=e.Kj&&e.Kj.$a():B<l&&r<t?(null!=e.Kj&&(e.Kj.show(),e.Kj.top=r,e.Kj.left=B,e.Kj.width=J,e.Kj.height=K,this.Yp.Uk.bottom*this.Yp.Uk.right<=E*z&&(this.Yp.Uk.left=B,this.Yp.Uk.right=E,this.Yp.Uk.bottom=z,this.Yp.Uk.lga=C)),n<this.coords.Vd&&C>E&&(e.jaa(),e.rk.top=r,e.rk.left=E,e.rk.width=Math.min(C,this.coords.bp)-E,e.rk.height=Math.min(z,this.coords.ke+
this.coords.iq)-r,e.rk.Ua("fm-clear-border-bottom",g>this.coords.Vd),e.rk.Ua("fm-clear-border-right",C>this.coords.bp),e.rk.ud("fm-clear-border"),e.rk.show()),m<this.coords.Hd&&v>z&&(e.qaa(),e.Dk.top=z,e.Dk.left=B,e.Dk.width=Math.min(E,this.coords.tp)-B,e.Dk.height=Math.min(v,this.coords.Mr)-z,e.Dk.Ua("fm-clear-border-bottom",v>this.coords.Mr),e.Dk.Ua("fm-clear-border-right",p>this.coords.Hd),e.Dk.ud("fm-clear-border"),e.Dk.show()),null!=e.Kj&&(e.Kj.Ua("fm-clear-border-right",C>E),e.Kj.Ua("fm-clear-border-bottom",
v>z))):null!=e.Kj&&e.Kj.$a()};c.prototype.mwa=function(e,g){if(!isNaN(e)){null==g.up&&g.raa();var l=this.coords.Nn(e,this.ka.$b);e=this.coords.Nn(e+1,this.ka.$b);var m=Math.min(this.coords.ke+this.coords.Ax,e);l<this.coords.ke+this.coords.Ax?(g.up.left=0,g.up.top=l,g.up.width=this.coords.et,g.up.height=m-l,g.up.show(),e>m&&(g.qaa(),g.Dk.top=m,g.Dk.left=0,g.Dk.width=this.coords.tp,g.Dk.height=Math.min(e,this.coords.Mr)-m,g.Dk.Y("fm-clear-border"),g.Dk.show())):g.up.$a()}};c.prototype.lwa=function(e,
g){if(!isNaN(e)){null==g.Jo&&g.kaa();var l=this.coords.fl(e,this.ka.$b);e=this.coords.fl(e+1,this.ka.$b);var m=Math.min(this.coords.et,e);l<this.coords.et?(g.Jo.left=l,g.Jo.top=this.coords.ke,g.Jo.width=m-l,g.Jo.height=this.coords.Ax,g.Jo.show(),e>m&&(g.jaa(),g.rk.top=this.coords.ke,g.rk.left=m,g.rk.width=Math.min(e,this.coords.bp)-m,g.rk.height=this.coords.iq,g.rk.Y("fm-clear-border"),g.rk.show())):g.Jo.$a()}};c.prototype.ewa=function(e,g,l,m,n){this.cwa(n.Jo,e,g);this.dwa(n.up,l,m)};c.prototype.QGa=
function(e,g,l,m,n){if(!this.di.oga.hasOwnProperty(l.toString())){n.raa();for(var p=l;p<=m;p++)this.di.oga[p.toString()]=l==m&&e==g?a.M7:a.EN}if(!this.di.V$.hasOwnProperty(e.toString()))for(n.kaa(),p=e;p<=g;p++)this.di.V$[p.toString()]=l==m&&e==g?a.M7:a.EN};c.prototype.cwa=function(e,g,l){null!=e&&(g=this.coords.fl(g,this.ka.$b),l=Math.min(this.coords.bp,this.coords.fl(l+1,this.ka.$b)),g<this.coords.bp?(e.left=g,e.top=this.coords.ke,e.width=l-g,e.height=this.coords.Qt(),e.show()):e.$a())};c.prototype.dwa=
function(e,g,l){null!=e&&(g=this.coords.Nn(g,this.ka.$b),l=Math.min(this.coords.Mr,this.coords.Nn(l+1,this.ka.$b)),e.left=0,e.top=g,e.width=this.coords.Hr(),e.height=l-g,e.show())};q.Object.defineProperties(c.prototype,{uD:{configurable:!0,enumerable:!0,get:function(){return this.$E},set:function(e){this.$E=e;this.uD||(this.ka.element.removeEventListener("mousemove",this.XG),document.removeEventListener("mousemove",this.Mea))}},wp:{configurable:!0,enumerable:!0,get:function(){return this.N9},set:function(e){this.N9=
e}}});d.Poa=c;a.M7=1;a.EN=2;d.N5=a;b.prototype.AK=function(){var e=new A.Aa("div","fm-sheet-selection-canvas");e.$a();this.ka.V(e);return e};b.prototype.kaa=function(){null==this.AE&&(this.AE=this.AK(),this.AE.Y("fm-sheet-selection-header"))};b.prototype.raa=function(){null==this.WE&&(this.WE=this.AK(),this.WE.Y("fm-sheet-selection-header"))};b.prototype.qaa=function(){null==this.CJ&&(this.CJ=this.AK(),this.CJ.Y("fm-clear-border-top"))};b.prototype.jaa=function(){null==this.oJ&&(this.oJ=this.AK(),
this.oJ.Y("fm-clear-border-left"))};b.prototype.$a=function(){this.Jo&&this.Jo.$a();this.up&&this.up.$a();this.rk&&this.rk.$a();this.Dk&&this.Dk.$a();this.Kj&&this.Kj.$a()};b.prototype.remove=function(){null!=this.Kj&&(this.Kj.remove(),this.vP=null);null!=this.Jo&&(this.Jo.remove(),this.AE=null);null!=this.up&&(this.up.remove(),this.WE=null);null!=this.rk&&(this.rk.remove(),this.oJ=null);null!=this.Dk&&(this.Dk.remove(),this.CJ=null);this.ka=null};q.Object.defineProperties(b.prototype,{Kx:{configurable:!0,
enumerable:!0,get:function(){return this.Ypa},set:function(e){this.Ypa=e}},Dk:{configurable:!0,enumerable:!0,get:function(){return this.CJ}},rk:{configurable:!0,enumerable:!0,get:function(){return this.oJ}},up:{configurable:!0,enumerable:!0,get:function(){return this.WE},set:function(e){this.WE=e}},Jo:{configurable:!0,enumerable:!0,get:function(){return this.AE},set:function(e){this.AE=e}},Kj:{configurable:!0,enumerable:!0,get:function(){return this.vP},set:function(e){this.vP=e}}});d.h8=b})(h.sheet||
(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.b9=null}b.prototype.aHa=function(a,c){this.Km=this.$wa(c);var e=null==this.Km?f.model.Zb.Ni.oS().clone():this.Km.Dh(this.Km.uniqueName,this.Km.$).clone();e.Ql=e.Ql==f.model.Zb.Ni.$ba().Ql?2:e.Ql;for(var g=0;g<a.Hy.length;g++){var l=this.Rsa(a.Hy[g],c);0!=l?a.Nh(a.Hy[g],this.Sya(l,a.Hy[g],e.clone())):a.jAa(a.Hy[g])}this.Km=null};b.prototype.Sya=function(a,c,e){var g="count"==c||null!=this.Km&&f.u.i.ca.Tf(this.Km.$),l="count"!=c&&
null!=this.Km&&f.u.i.ca.Xd(this.Km.$),m=null!=this.Km&&this.Km.type==f.u.i.Ja.Yb&&f.u.i.ca.eo(this.Km.$);e.Xd="count"==c?!1:e.Xd;e.pd=null!=this.Km&&this.Km.$==f.u.i.ca.li?"":e.pd;return m&&!isNaN(a)&&"count"!=c?f.O.Hw(a,f.model.B.C.Cp):x.Tb.format(a,e,g,l)};b.prototype.Rsa=function(a,c){switch(a){case "sum":return this.Usa(c);case "average":return this.Ssa(c);case "count":return this.Tsa(c)}return 0};b.prototype.Usa=function(a){for(var c=0,e=0;e<a.length;e++)c+=a[e].Jh&&!isNaN(a[e].value)&&this.pT(a[e])?
a[e].value:0;return c};b.prototype.Ssa=function(a){for(var c=0,e=0,g=0;g<a.length;g++)a[g].Jh&&!isNaN(a[g].value)&&this.pT(a[g])&&(c+=a[g].value,e++);return 0==e?0:c/e};b.prototype.Tsa=function(a){for(var c=0,e=0;e<a.length;e++)(a[e].Jh&&!isNaN(a[e].value)||a[e].il&&a[e].Jh&&""!=a[e].label)&&c++;return c};b.prototype.$wa=function(a){for(var c=null,e=0;e<a.length;e++)if(this.pT(a[e])&&null==c&&!f.v(a[e].measure))c=a[e].measure;else if(this.pT(a[e])&&null!=c&&c.uniqueName!=a[e].measure.uniqueName){c=
null;break}return c};b.prototype.pT=function(a){return a.il&&a.Jh&&!isNaN(a.value)||a.Jh&&null!=a.measure&&!isNaN(a.value)&&f.u.i.Ja.sc!=a.measure.type&&f.u.i.Ja.Oa!=a.measure.type&&f.u.i.Ja.Dc!=a.measure.type};q.Object.defineProperties(b.prototype,{Km:{configurable:!0,enumerable:!0,get:function(){return this.b9},set:function(a){this.b9=a}}});d.Pia=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var c=A.Aa.call(this,"div","fm-auto-calculation-bar-content")||this;c.display="inline-block";c.te();return c}function a(c){c=void 0===c?null:c;var e=A.Aa.call(this,"div","fm-auto-calculation-bar")||this;e.cY=["average","count","sum"];e.EQ={};e.CP={right:-1E3,bottom:1E3};e.Vpa=new f.nb;e.cY=null==c?e.cY:c;e.rAa();e.te();return e}u(a,A.Aa);a.prototype.rAa=function(){this.EQ.average=f.model.A.j.f5;this.EQ.sum=f.model.A.j.f8;this.EQ.count=
f.model.A.j.I5};a.prototype.te=function(){this.nY=new A.Aa("div");this.nY.P("position","relative");this.V(this.$fa);this.Tpa=new A.Aa("div","fm-auto-calculation-bar-conainer");this.sv.P("position","absolute");this.nY.V(this.sv);for(var c,e=0;e<this.Hy.length;e++)c=new b,c.fIa(this.EQ[this.Hy[e]]),this.sv.V(c),this.Bo.Pa(this.Hy[e],c)};a.prototype.JAa=function(){return-1E3!=this.CP.right&&1E3!=this.CP.bottom};a.prototype.Nh=function(c,e){this.Bo.getItem(c).gIa(e)};a.prototype.jAa=function(c){this.Bo.getItem(c).$a()};
a.prototype.jCa=function(){for(var c,e=0;e<this.Bo.length;e++)c=this.Bo.ea(e),c.visible||c.show()};a.prototype.BAa=function(){for(var c=0;c<this.Bo.length;c++)if(this.Bo.ea(c).visible)return!1;return!0};a.prototype.uHa=function(){this.CP={right:-1E3,bottom:1E3}};a.prototype.clear=function(){for(;0<this.Bo.length;)this.Bo.ea(0).dispose(),this.Bo.A3(0);this.dispose()};q.Object.defineProperties(a.prototype,{Bo:{configurable:!0,enumerable:!0,get:function(){return this.Vpa}},sv:{configurable:!0,enumerable:!0,
get:function(){return this.Tpa}},$fa:{configurable:!0,enumerable:!0,get:function(){return this.nY}},Uk:{configurable:!0,enumerable:!0,get:function(){return this.CP}},Hy:{configurable:!0,enumerable:!0,get:function(){return this.cY}}});d.Oia=a;u(b,A.Aa);b.prototype.te=function(){this.o$=new A.Aa("div","fm-auto-calculation-bar-content-text");this.V(this.o$);this.p$=new A.Aa("div","fm-auto-calculation-bar-content-results");this.V(this.p$)};b.prototype.show=function(){this.element.style.display=this.display};
b.prototype.fIa=function(c){this.o$.text(c+":")};b.prototype.gIa=function(c){this.p$.text(c)};d.rKa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));function Ia(){var f=A.Aa.call(this,"div","fm-scroll-pane")||this;f.M9=function(){return f.U2()};f.SE=!1;f.zX=0;f.AX=0;x.Oi.Qn&&f.Y("fm-scrollbars");f.Ss=new A.Aa("div","fm-scroll-placeholder");f.BP=new A.Aa("div","fm-scroll-content");f.V(f.Ss);f.V(f.BP);f.element.addEventListener("scroll",f.M9,!0);return f}u(Ia,A.Aa);
Ia.prototype.U2=function(){if(this.SE)return this.SE=!1;this.Wa(Ka)};Ia.prototype.dispose=function(){this.element&&this.element.removeEventListener("scroll",this.M9);A.Aa.prototype.dispose.call(this)};
q.Object.defineProperties(Ia.prototype,{CF:{configurable:!0,enumerable:!0,get:function(){return this.Ss.width},set:function(f){this.Ss.width=f}},caa:{configurable:!0,enumerable:!0,get:function(){return this.Ss.height},set:function(f){this.Ss.height=f}},scrollLeft:{configurable:!0,enumerable:!0,get:function(){return this.element.scrollLeft},set:function(f){this.SE=!1;this.element.scrollLeft=Math.max(0,f)}},LM:{configurable:!0,enumerable:!0,set:function(f){this.SE=!0;this.element.scrollLeft=Math.max(0,
f)}},scrollTop:{configurable:!0,enumerable:!0,get:function(){return this.element.scrollTop},set:function(f){this.SE=!1;this.element.scrollTop=Math.max(0,f)}},OM:{configurable:!0,enumerable:!0,set:function(f){this.SE=!0;this.element.scrollTop=Math.max(0,f)}},placeholder:{configurable:!0,enumerable:!0,get:function(){return this.Ss}},content:{configurable:!0,enumerable:!0,get:function(){return this.BP}},rt:{configurable:!0,enumerable:!0,get:function(){return this.zX},set:function(f){this.zX=f;this.BP.left=
-this.zX}},BF:{configurable:!0,enumerable:!0,get:function(){return this.AX},set:function(f){this.AX=f;this.BP.top=-this.AX}},mAa:{configurable:!0,enumerable:!0,set:function(f){this.element.style.overflowX=f?"scroll":"hidden"}},dKa:{configurable:!0,enumerable:!0,set:function(f){this.element.style.overflowY=f?"scroll":"hidden"}}});var Ka="fm_scroll_event";
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.zu.call(this,a,null)||this;c.ba=a;return c}u(b,d.zu);b.prototype.gb=function(){var a=[],c=new Ha;if(f.model.B.C.vl){c.tag="div";c.Y("fm-row");c.text+=Ja(this.mva());for(var e=0;e<this.ba.Hd;e++)c.text+=Ja(this.maa(e));a.push(Ja(c));for(e=0;e<this.ba.Vd;e++)c.text=Ja(this.tR(e)),a.push(Ja(c))}a=a.join("");this.element.innerHTML!=a&&this.html(a)};b.prototype.clear=function(){};d.Soa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||
(f.K={}))})(w||(w={}));
function La(){this.text=this.tag="";this.style={};this.attr={};this.classes=[];this.addClass=function(f){0>this.classes.indexOf(f)&&this.classes.push(f)};this.toHtml=function(){var f="<"+this.tag,k=[],h;for(h in this.style)k.push(h+":"+this.style[h]);0<k.length&&(f+=' style="'+k.join(";")+';"');0<this.classes.length&&(f+=' class="'+this.classes.join(" ")+'"');for(var d in this.attr)f+=" "+d+'="'+this.attr[d]+'"';return f+=">"+(this.text||"")+"</"+this.tag+">"};this.tag="div"}
function Ha(f){f=void 0===f?"div":f;this.Jqa=new La;this.clear();this.tag=f}Ha.prototype.Y=function(f){this.node.addClass(f)};Ha.prototype.clear=function(){this.tag="div";this.text="";this.style={};this.attr={};this.node.classes=[]};function Ja(f,k){k=void 0===k?!0:k;var h=f.node.toHtml();k&&f.clear();null!=w.K.X.W.Yd.Mv&&(h=w.model.Nb.valid(h)?h:w.model.Nb.validate(h));return h}
q.Object.defineProperties(Ha.prototype,{node:{configurable:!0,enumerable:!0,get:function(){return this.Jqa}},tag:{configurable:!0,enumerable:!0,get:function(){return this.node.tag},set:function(f){this.node.tag=f}},text:{configurable:!0,enumerable:!0,get:function(){return this.node.text},set:function(f){this.node.text=f}},style:{configurable:!0,enumerable:!0,get:function(){return this.node.style},set:function(f){this.node.style=f}},attr:{configurable:!0,enumerable:!0,get:function(){return this.node.attr},
set:function(f){this.node.attr=f}}});
(function(f){(function(k){(function(h){(function(d){function b(){return d.Jp.apply(this,arguments)||this}u(b,d.Jp);b.prototype.gb=function(){this.bz();var a=this.Ln();if(this.$b||this.ba.AC(a.bottom)||this.ba.zC(a.right)||!this.Cl.contains(a)){var c=a.clone();0!=this.ba.$i&&(c.right=Math.min(c.right,this.ba.$i));0!=this.ba.Ak&&(c.bottom=Math.min(c.bottom,this.ba.Ak));if(!this.$b||!this.Rh.contains(c)||!this.ba.Av&&(a.left>this.ba.Hd&&a.left<=this.Rh.left||a.top>this.ba.Vd&&a.top<=this.Rh.top))this.ba.zC(a.right)&&
(a.left=Math.max(a.left-1,this.ba.Hd)),this.ba.AC(a.bottom)&&(a.top=Math.max(a.top-1,this.ba.Vd)),this.jb.content.html(this.EF(a)),this.$b=!1,this.Cl.set(a)}};b.prototype.XJ=function(){this.$b?(this.jb.BF=this.ba.scrollTop-this.ba.jt(this.ba.Vd,this.Rh.top),this.jb.rt=this.ba.scrollLeft-this.ba.kt(this.ba.Hd,this.Rh.left)):(this.jb.BF=-this.ba.tL(this.Cl.top),this.jb.rt=-this.ba.bL(this.Cl.left))};b.prototype.Yx=function(){var a=this.jb.CF;this.bz();a=this.jb.CF-a;var c=this.Ln(!0);if(!(this.$b&&
this.ba.Av&&this.Rh.contains(c))){var e=this.Mca(),g=this.Lca(),l=this.Ln();this.Rh=c;this.jb.content.html(this.EF(c));this.jb.BF=this.ba.jt(this.Rh.top,l.top)-e;this.jb.rt=this.ba.kt(this.Rh.left,l.left)-g;this.$b||this.ba.AC(this.Cl.bottom)||(this.jb.OM=this.ba.fC(this.ba.Ng,!1));this.$b||(this.ba.zC(this.Cl.right)?(this.ba.aN=a,this.jb.rt+=a):this.jb.LM=this.ba.SB(this.ba.Qf,!1));this.$b=!0}};b.prototype.Ln=function(a){a=void 0===a?!1:a;var c=new d.QD;c.top=this.ba.gG(a);c.left=this.ba.fG(a);c.bottom=
this.ba.ny(a);c.right=this.ba.RB(a);return c};b.prototype.bz=function(){this.jb.CF=Math.max(this.ba.wt,this.ba.Fd-this.ba.eD);this.jb.caa=Math.max(this.ba.vt,this.ba.Ed-this.ba.dD);this.jb.content.right=this.ba.eD;this.jb.content.bottom=this.ba.dD;this.jb.mAa=this.ba.lC;this.jb.dKa=this.ba.mC};b.prototype.AM=function(a,c){for(var e=this,g=[],l=this.Ln(!0),m=l.top;m<l.bottom;m++)for(var n=0;n<a.length;n++){var p=a[n];this.T0(m,p)||(p=this.Ox(m,p),delete p.attr.tabindex,g.push(Ja(p)))}var t=this.Sk.content.element.querySelector(".fm-row-hidden");
null==t&&(t=document.createElement("div"),t.classList.add("fm-row"),t.classList.add("fm-row-hidden"),this.Sk.content.element.appendChild(t),this.Sk.content.element.insertBefore(t,this.Sk.content.element.childNodes[0]));t.innerHTML=g.join("");this.requestAnimationFrame(function(){for(var r=0;r<t.children.length;r++)e.pN(t.children.item(r),!1,!0);c()})};b.prototype.dispose=function(){d.Jp.prototype.dispose.call(this);this.jb.dispose()};d.c6=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.Jp.apply(this,arguments)||this}u(b,d.Jp);b.prototype.gb=function(){this.bz();var a=this.Ln();if(this.$b||this.ba.AC(a.bottom)||!this.Cl.contains(a)){var c=a.clone();0!=this.ba.Ak&&(c.bottom=Math.min(c.bottom,this.ba.Ak));this.$b&&this.Rh.contains(c)||(this.ba.AC(a.bottom)&&(a.top=Math.max(a.top-1,this.ba.Vd)),this.jb.content.html(this.EF(a,f.model.B.C.vl)),this.fQ=!1,this.Cl.set(a))}};b.prototype.tR=function(a){this.cell=d.Jp.prototype.tR.call(this,
a);this.cell.style["min-height"]=this.cell.style.height;delete this.cell.style.height;delete this.cell.style["line-height"];return this.cell};b.prototype.XJ=function(){this.jb.BF=this.$b?this.ba.scrollTop-this.ba.jt(this.ba.Vd,this.Rh.top):-this.ba.tL(this.Cl.top)};b.prototype.Ln=function(a){a=void 0===a?!1:a;var c=new d.QD;c.top=this.ba.gG(a);c.left=0;c.bottom=this.ba.ny(a);c.right=this.ba.Hd;a&&c.bottom==this.ba.Ak&&c.bottom++;return c};b.prototype.Yx=function(){var a=this.Ln(!0);if(!(this.$b&&
this.ba.Av&&this.Rh.contains(a))){var c=this.Mca(),e=this.Ln();this.Rh=a;this.jb.content.html(this.EF(a,f.model.B.C.vl));this.jb.BF=this.ba.jt(this.Rh.top,e.top)-c;this.$b||this.ba.AC(this.Cl.bottom)||(this.ba.scrollTop=this.jb.OM=this.ba.fC(this.ba.Ng,!1));this.$b=!0}};b.prototype.YJa=function(a){for(var c=0;c<a.columns.length;c++)for(var e=this.jb.content.element.querySelectorAll('[data-c="'+c+'"]'),g=0;g<e.length;g++)e.item(g).style.minWidth=this.ba.Zg(c)+"px"};b.prototype.bz=function(){this.jb.caa=
this.ba.vt+this.ba.dD;this.jb.content.bottom=0;this.jb.scrollTop=this.ba.scrollTop};b.prototype.V_=function(a,c){a=this.ba.cL(a,!0)-1;c=this.ba.uL(c)-1;var e=this.tm(c,a);null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};d.yoa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){a=d.Jp.call(this,a,c)||this;a.wm=new d.EW(a);a.QP=new d.Lla(a);return a}u(b,d.Jp);b.prototype.gb=function(){x.cancelIdleCallback(this.jJ);this.bz();var a=this.Ln();if(this.$b||this.ba.zC(a.right)||!this.Cl.contains(a)){var c=a.clone();0!=this.ba.$i&&(c.right=Math.min(c.right,this.ba.$i));this.$b&&this.Rh.contains(c)||(this.ba.zC(a.right)&&(a.left=Math.max(a.left-1,this.ba.Hd)),this.wm.yw(),this.QP.yw(),this.jb.content.html(this.EF(a,
!1,f.model.B.C.vl)),this.wm.$y(),this.QP.$y(),this.$b=!1,this.Cl.set(a))}};b.prototype.XJ=function(){this.jb.rt=this.$b?this.ba.scrollLeft-this.ba.kt(this.ba.Hd,this.Rh.left):-this.ba.bL(this.Cl.left)};b.prototype.Ln=function(a){a=void 0===a?!1:a;var c=new d.QD;c.top=0;c.left=this.ba.fG(a);c.bottom=this.ba.Vd;c.right=this.ba.RB(a);a&&c.right==this.ba.$i&&c.right++;return c};b.prototype.Yx=function(){var a=this.jb.CF;this.bz();a=this.jb.CF-a;var c=this.Ln(!0);if(!(this.$b&&this.ba.Av&&this.Rh.contains(c))){x.cancelIdleCallback(this.jJ);
var e=this.Lca(),g=this.Ln();this.Rh=c;this.wm.yw();this.QP.yw();this.jb.content.html(this.EF(c,!1,f.model.B.C.vl));this.wm.$y();this.QP.$y();this.jb.rt=this.ba.kt(this.Rh.left,g.left)-e;this.$b||(this.ba.zC(this.Cl.right)?this.jb.rt+=a:this.jb.LM=this.ba.SB(this.ba.Qf,!1));this.$b=!0}};b.prototype.bz=function(){this.jb.CF=this.ba.wt+this.ba.eD;this.jb.content.right=0};b.prototype.Isa=function(){var a=this;x.cancelIdleCallback(this.jJ);this.jJ=x.requestIdleCallback(function(){return a.E8()})};b.prototype.E8=
function(){var a=this,c=this.ba.oya();if(0!=c.length){for(var e=[],g=0;g<this.ba.Vd;g++)for(var l=0;l<c.length;l++){var m=c[l];this.T0(g,m)||(m=this.Ox(g,m),delete m.attr.tabindex,e.push(Ja(m)))}var n=this.Sk.content.element.querySelector(".fm-row-hidden");null==n&&(n=document.createElement("div"),n.classList.add("fm-row"),n.classList.add("fm-row-hidden"),this.Sk.content.element.insertBefore(n,this.Sk.content.element.childNodes[0]));n.innerHTML=e.join("");this.requestAnimationFrame(function(){for(var p=
0;p<n.children.length;p++)a.pN(n.children.item(p),!1,!0);a.jJ=x.requestIdleCallback(function(){return a.E8()})})}};b.prototype.AM=function(a,c){for(var e=this,g=[],l=0;l<this.ba.Vd;l++)for(var m=0;m<a.length;m++){var n=a[m];this.T0(l,n)||(n=this.Ox(l,n),delete n.attr.tabindex,g.push(Ja(n)))}var p=this.Sk.content.element.querySelector(".fm-row-hidden");null==p&&(p=document.createElement("div"),p.classList.add("fm-row"),p.classList.add("fm-row-hidden"),this.Sk.content.element.insertBefore(p,this.Sk.content.element.childNodes[0]));
p.innerHTML=g.join("");this.requestAnimationFrame(function(){for(var t=0;t<p.children.length;t++)e.pN(p.children.item(t),!1,!0);c()})};b.prototype.V_=function(a,c){a=this.ba.cL(a)-1;c=this.ba.uL(c,!0)-1;var e=this.tm(c,a);null==e&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.mK=function(){x.cancelIdleCallback(this.jJ)};b.prototype.dispose=function(){this.mK();d.Jp.prototype.dispose.call(this)};d.PN=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Aa.call(this,"div","fm-grid-layout")||this;a.pha=1E3;a.zx=[];a.vJ=!1;a.wZ=function(c){return a.qDa(c)};a.pga=function(c){return a.mFa(c)};a.cha=function(c){return a.wFa(c)};a.XQ=0;a.$k();a.ba=new d.jh;a.sm=new d.Roa(a.ba);a.zm=new d.Qoa(a);a.te();a.ue(-1);a.preventScroll();return a}u(b,A.Aa);b.prototype.te=function(){this.WZ();this.nva();this.laa();this.lva();this.Xua();this.kva()};b.prototype.WZ=function(){this.kr=new A.Oc;
this.kr.F.display="block";this.kr.Y("fm-grid-title");this.kr.Y("fm-pivot-title");this.kr.gV(!0);this.kr.F.P("position","relative");this.kr.$a();this.cB(this.kr)};b.prototype.nva=function(){this.jr=new d.Soa(this.ba);this.jr.Y("fm-sheet-headers");this.V(this.jr)};b.prototype.laa=function(){var a=this;this.gd=new d.PN(this.ba,function(c,e){return a.Rf(c,e)});this.gd.Y("fm-cols-sheet");this.gd.jb.element.addEventListener("wheel",this.wZ);this.gd.N(h.mc.hn,function(c){return a.Wj(c)});x.Bd().Vl&&(this.gd.jb.P("overflow",
"scroll"),this.gd.jb.placeholder.P("z-index","1"),this.gd.jb.N(Ka,function(){return a.oDa()},!0));this.V(this.gd)};b.prototype.lva=function(){var a=this;this.oe=new d.yoa(this.ba,function(c,e){return a.Rf(c,e)});this.oe.Y("fm-rows-sheet");this.oe.jb.element.addEventListener("wheel",this.pga);this.oe.N(h.mc.hn,function(c){return a.Wj(c)});x.Bd().Vl&&(this.oe.jb.P("overflow","scroll"),this.oe.jb.placeholder.P("z-index","1"),this.oe.jb.N(Ka,function(){return a.lFa()},!0));this.V(this.oe)};b.prototype.Xua=
function(){var a=this;this.Pc=new d.c6(this.ba,function(c,e){return a.Rf(c,e)});this.Pc.Y("fm-data-sheet");this.Pc.jb.N(Ka,function(){return a.CDa()},!0);this.Pc.N(d.Jp.hW,function(c){return a.ffa(c)});this.Pc.N(d.Jp.i6,function(c){return a.ffa(c)});this.Pc.N(h.mc.hn,function(c){return a.Wj(c)});this.V(this.Pc)};b.prototype.kva=function(){var a=this;this.dr=new d.Xja(this);this.dr.Y("fm-cols-resize");this.dr.N(h.mc.qE,function(c){return a.lDa(c)});this.V(this.dr);this.ir=new d.zoa(this);this.ir.Y("fm-rows-resize");
this.ir.N(h.mc.rE,function(c){return a.kFa(c)});this.V(this.ir);this.element.addEventListener("dblclick",this.cha)};b.prototype.gb=function(a){var c=this;a=void 0===a?!1:a;this.ba.Yga();this.ba.UQ();this.Pc.width&&this.Pc.height||this.RF();this.ba.setScale();this.ba.aN=0;this.n$();f.Dr(this.GX);this.f_();this.zx.push(this.requestAnimationFrame(function(){return c.FX(a)}))};b.prototype.f_=function(){for(;0<this.zx.length;)this.cancelAnimationFrame(this.zx.pop())};b.prototype.FX=function(a){var c=this;
a=void 0===a?!1:a;this.Wa(k.pi.Nw,this,{smooth:!1});k.Hb.zb.Wa(k.pi.Nw,this,{smooth:!1});var e=this.ba.IQ();this.$b&&this.oe.YJa(e);this.QF();this.vJ&&(this.iZ()&&(this.ba.IQ(),this.gd.tF(),this.oe.tF(),this.QF()),this.vJ=!1);this.JK();f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.fo,{smooth:!1}));this.zx.push(this.requestAnimationFrame(function(){c.RF();c.zm.gb()}));this.zx.push(this.requestAnimationFrame(function(){var g=!a&&c.hZ();g?(c.gd.tF(),c.oe.tF(),c.Pc.tF(),c.gb(!0)):c.ba.Wsa&&(f.Dr(c.GX),
c.GX=f.pe(function(){return c.Yx()},c.pha));!g&&f.model.B.C.GB&&c.UG()}));this.zx.push(this.requestAnimationFrame(function(){c.Wa(k.pi.fo,c,{smooth:!1});k.Hb.zb.Wa(k.pi.fo,c,{smooth:!1})}))};b.prototype.QF=function(){this.k_();this.ba.xV=this.$ca()?this.kr.qd(!0):0;this.gd.gb();this.gd.XJ();this.oe.gb();this.oe.XJ()};b.prototype.JK=function(){this.jr.gb();this.zm.gb();this.dr.gb();this.ir.gb();this.Pc.gb();this.Pc.XJ()};b.prototype.k_=function(){this.$ca()?(this.kr.Za(f.model.B.C.tq),this.kr.show()):
this.kr.$a()};b.prototype.$ca=function(){return!(f.ha(f.model.B.C.tq)||this instanceof d.flat.sI&&this.il)};b.prototype.iZ=function(){this.gd.Dx(!0);this.oe.Dx(!0);return this.gd.uC||this.oe.uC};b.prototype.hZ=function(){this.Pc.Dx(!0);this.gd.Dx(!0);this.oe.Dx(!0);return this.Pc.uC||this.gd.uC||this.oe.uC};b.prototype.Yx=function(){var a=this;this.f_();this.zx.push(this.requestAnimationFrame(function(){return a.lqa()}))};b.prototype.lqa=function(){var a=this;this.AM(function(){k.Hb.zb.Wa(k.pi.Nw,
a,{smooth:!0});a.gd.Yx();a.oe.Yx();a.Pc.Yx();a.ba.scrollLeft=a.Pc.jb.scrollLeft;a.ba.scrollTop=a.Pc.jb.scrollTop;f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.fo,{smooth:!0}));a.type==d.flat.sI.TYPE&&f.model.B.C.GB&&a.UG();a.ba.Av||0!=a.ba.scrollLeft||a.gd.Isa();a.zx.push(a.requestAnimationFrame(function(){k.Hb.zb.Wa(k.pi.fo,a,{smooth:!0})}))})};b.prototype.AM=function(a){var c=this,e=this.ba.pya(this.ba.Ln(!0));0==e.length?a():this.gd.AM(e,function(){c.Pc.AM(e,a)})};b.prototype.ffa=function(a){var c=
this;a.type==d.Jp.hW&&this.requestAnimationFrame(function(){c.gd.Fha();c.oe.Fha()})};b.prototype.CDa=function(){this.W3(this.Pc.jb.scrollTop,this.Pc.jb.scrollLeft)};b.prototype.lFa=function(){this.W3(this.oe.jb.scrollTop)};b.prototype.oDa=function(){this.W3(NaN,this.gd.jb.scrollLeft)};b.prototype.mFa=function(a){if(this.coords.mC){var c=a.wheelDeltaY||a.deltaY||a.wheelDelta||0;x.Bd().QL&&(c*=-40);x.Bd().Di&&(c*=-1);isNaN(c)||0==c||(this.Pc.jb.scrollTop=this.ba.scrollTop-c);a.preventDefault()}};b.prototype.qDa=
function(a){if(this.coords.lC){var c=a.wheelDeltaX||a.deltaX||0;x.Bd().QL&&(c*=-40);x.Bd().Di&&(c*=-1);0!=c&&(this.Pc.jb.scrollLeft=this.ba.scrollLeft-c);a.preventDefault()}};b.prototype.preventScroll=function(){this.element.addEventListener("scroll",function(a){a.target.scrollTo(0,0)})};b.prototype.RF=function(){this.width=this.coords.bp;this.height=this.coords.Mr;this.dr.left=0;this.dr.top=this.coords.ke;this.dr.right=0;this.dr.height=this.coords.Qt();this.ir.left=0;this.ir.top=this.coords.ke;this.ir.bottom=
0;this.ir.width=this.coords.Hr()};b.prototype.Lza=function(a,c,e){if(c&&e)for(var g=this.zm.Bxa(c,e);g<=this.zm.GJa(c,e);g++)for(var l=this.zm.txa(c,e);l<=this.zm.uJa(c,e);l++){var m=this.Rf(g,l,!0);null==m&&(m=new h.W.Yd,m.hb=g,m.lc=l);a.push(m)}};b.prototype.Rf=function(a,c,e){e=void 0===e?!1:e;var g=this.sm.getData(a,c,!e);return e&&null==g?this.sm.Gya(a,c):g};b.prototype.insertCell=function(a,c,e,g){this.sm.setData(a,c,e,void 0===g?!1:g)};b.prototype.resize=function(a,c){this.ba.resize(a,c,!0)};
b.prototype.Oga=function(a,c){this.ba.Po=a;this.ba.Wk=c};b.prototype.Sba=function(a){a!=this.ba.Vd&&(this.ba.Ng=a+(this.ba.Ng-this.ba.Vd));this.ba.Vd=a};b.prototype.rxa=function(a){a!=this.ba.Hd&&(this.ba.Qf=a+(this.ba.Qf-this.ba.Hd));this.ba.Qf<a&&(this.ba.Qf=a);this.ba.Hd=a};b.prototype.tr=function(){this.vJ=!0;this.sm.reset();this.ba.reset();this.gd.Fv();this.oe.Fv();this.Pc.Fv();this.zm.clear();this.Pc.jb.scrollTop=0;this.Pc.jb.scrollLeft=0;this.mK()};b.prototype.clearData=function(){this.sm.reset();
this.gd.Fv();this.oe.Fv();this.Pc.Fv();this.ba.UQ();this.ba.uta()};b.prototype.uF=function(a){this.vJ=!0;this.ba.uF(a)};b.prototype.qB=function(a){this.vJ=!0;this.ba.qB(a)};b.prototype.select=function(a,c,e,g){this.zm.select(new d.Xq(c,a),new d.Xq(g,e));this.element.focus({preventScroll:!0})};b.prototype.yr=function(){this.zm.clear();this.element.blur()};b.prototype.mK=function(){this.f_();f.Dr(this.GX);f.Dr(this.Dta);this.gd.mK()};b.prototype.dispose=function(){this.sm.dispose();this.zm.dispose();
this.mK();this.gd.jb.element&&this.gd.jb.element.removeEventListener("wheel",this.wZ);this.gd.dispose();this.oe.jb.element&&this.oe.jb.element.removeEventListener("wheel",this.pga);this.oe.dispose();this.Pc.dispose();this.dr.dispose();this.ir.dispose();this.element&&this.element.removeEventListener("dbclick",this.cha);A.Aa.prototype.dispose.call(this)};b.prototype.Wj=function(a){null!=a.cell&&this.Da(a);this.jDa(a)};b.prototype.jp=function(a){this.Da(a)};b.prototype.jDa=function(a){var c=this;this.XQ++;
1==this.XQ&&(this.Dta=f.pe(function(){if(1==c.XQ){if(a.cell){var e=new h.T6(a.cell,!0,a.element);c.Da(e)}}else a.cell&&(e=new h.T6(a.cell,!1,a.element),c.Da(e));c.XQ=0},300))};b.prototype.W3=function(a,c){a=void 0===a?NaN:a;c=void 0===c?NaN:c;var e=!1;isNaN(a)||a==this.coords.scrollTop||(this.coords.scrollTop=a,this.coords.Ng=this.coords.uL(a),this.oe.jb.OM=a,e=!0);isNaN(c)||c==this.coords.scrollLeft||(this.coords.scrollLeft=c,this.coords.Qf=this.coords.cL(c),this.gd.jb.LM=c,e=!0);e&&this.gb()};b.prototype.lDa=
function(a){this.Da(a);this.ba.IQ();0<a.data.width?this.ba.QM(a.data.lc,a.data.width,!1,!0):this.ba.tHa(a.data.lc);this.FR()};b.prototype.kFa=function(a){this.Da(a);this.ba.IQ();0<a.data.height?this.ba.Cw(a.data.hb,a.data.height,!1,!0):this.ba.vHa(a.data.hb);this.FR()};b.prototype.wFa=function(a){if(0!=f.model.B.C.vl){var c=this.Sf(),e=a.clientX-c.left;a=a.clientY-c.top;e>this.coords.Hr()&&a>this.coords.ke+this.coords.Qt()||(a=this.coords.BS(a,this.$b),e=this.coords.gS(e,this.$b),-1!=a||isNaN(e)||
this.dr.Wa(h.mc.qE,this,{width:-1,lc:e}),-1!=e||isNaN(a)||(this.ir.Wa(h.mc.rE,this,{height:-1,hb:a}),this.Wa(h.mc.noa,this,{height:-1,hb:a})))}};b.prototype.FR=function(){this.gd.Fv();this.oe.Fv();this.Pc.Fv();this.n$();this.gb()};b.prototype.n$=function(){if(0<this.coords.scrollLeft&&0<this.coords.qxa){var a=Math.max(0,this.coords.wt-this.coords.Fd+this.coords.eD);this.coords.scrollLeft=a;this.coords.Qf=this.coords.cL(a);this.Pc.jb.LM=a;this.gd.jb.LM=a}0<this.coords.scrollTop&&0<this.coords.pxa&&
(a=Math.max(0,this.coords.vt-this.coords.Ed+this.coords.dD),this.coords.scrollTop=a,this.coords.Ng=this.coords.uL(a),this.Pc.jb.OM=a,this.oe.jb.OM=a)};b.prototype.Nt=function(a){var c=A.Aa.Pb(a);a=c.closest(".fm-cell");return null!=a?(c=parseInt(a.attr("data-r")),a=parseInt(a.attr("data-c")),this.Rf(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.pages.ea(a),c=new h.W.Yd,c.label=a.caption,
c.wk=!0,c.hierarchy=a,c):null};b.prototype.bca=function(a,c){c=this.coords.BS(c-this.offset().top,!1);a=this.coords.gS(a-this.offset().left,!1);var e=this.Rf(c,a,!0);f.v(e)&&(e=new h.W.Yd,e.hb=c,e.lc=a);return e};b.prototype.Eq=function(a){this.Pc.jb.scrollTop=this.coords.fC(a)};b.prototype.es=function(a){this.Pc.jb.scrollLeft=this.coords.SB(a)};b.prototype.THa=function(){this.Pc.jb.scrollTop+=this.coords.Ed};b.prototype.WHa=function(){this.Pc.jb.scrollTop-=this.coords.Ed};b.prototype.VHa=function(){this.Pc.jb.scrollLeft+=
this.coords.Fd};b.prototype.UHa=function(){this.Pc.jb.scrollLeft-=this.coords.Fd};b.prototype.D3=function(a,c){this.coords.QM(a,c,!1,!0)};b.prototype.G3=function(a,c){this.coords.Cw(a,c,!1,!0)};b.prototype.UG=function(){var a=this;this.Ar({Xl:function(c,e,g,l){return a.Xl(c,e,g,l)},Wl:function(c,e,g,l){return a.Wl(c,e,g,l)},ml:function(c,e,g,l){return a.ml(c,e,g,l)}})};b.prototype.naa=function(a){var c=new A.Aa("span");c.Y("fm-helper");c.Y("fm-draggable");c.Y("fm-header-helper");c.P("position","absolute");
c.P("z-index",100);c.text(a.element.firstChild.textContent);a=new A.Aa("i","fm-remove-icon");c.V(a);return c};b.prototype.Wl=function(a,c,e,g){a&&a.Ua("fm-drag-remove",!1);c&&c.Ua("fm-drag-remove",!1);a=A.Aa.Pb(g.target);a.Lc("fm-header-drop-indicator")||this.qD(a,a)};b.prototype.ml=function(a,c){this.ql();a&&a.Ua("fm-drag-remove",!0);c&&c.Ua("fm-drag-remove",!0)};b.prototype.Xl=function(){};b.prototype.qD=function(){};b.prototype.Lv=function(){return this.od?this.od:new A.Aa("div","fm-header-drop-indicator")};
b.prototype.ql=function(){this.od&&(this.od.sg(!0),this.od=null)};b.prototype.pU=function(a){f.Dr(this.WBa);var c=this.slice.Wc.Mg(a.zg);if(!f.v(c)){var e=this.gva(c,a.value);if(c.filter.wy||null!=e)c.filter.wy&&a.value==c.filter.query.value||(this.WBa=f.pe(function(){f.model.Ta.U().tl(c.uniqueName,e);c.filter.Ida=!0},300))}};b.prototype.gva=function(a,c){var e={};if(f.model.bb.Tz.tS(a)==f.u.i.kb.fb){a=parseFloat(c);if(isNaN(a))return null;e.query={equal:a}}else{if(f.ha(c))return null;e.query={contain:c}}return e};
q.Object.defineProperties(b.prototype,{slice:{configurable:!0,enumerable:!0,get:function(){return this.Lb},set:function(a){this.Lb=a}},type:{configurable:!0,enumerable:!0,get:function(){return this.hg}},coords:{configurable:!0,enumerable:!0,get:function(){return this.ba}},Fq:{configurable:!0,enumerable:!0,get:function(){var a=[];if(0<this.P3.Fq.length)for(var c,e=0;e<this.zm.Fq.length;e++)null!=this.zm.Fq.ea(e).Kj&&(c=this.zm.IF(this.zm.Fq.ea(e).Kx),this.Lza(a,c.from,c.Ep));return a}},WB:{configurable:!0,
enumerable:!0,set:function(a){this.sm.WB=a}},$b:{configurable:!0,enumerable:!0,get:function(){return this.Pc.$b}},G:{configurable:!0,enumerable:!0,get:function(){return this.sm}},P3:{configurable:!0,enumerable:!0,get:function(){return this.zm}}});d.xj=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.zu.call(this,a,null)||this;c.ba=a;c.qb=[];c.Y("fm-filters");c.N(h.mc.hn,function(e){return c.Wj(e)});c.N("keydown",function(e){return c.LC(e)});c.wm=new d.EW(c);return c}u(b,d.zu);b.prototype.gb=function(){for(var a=[],c=new Ha,e=0;e<this.ba.Vd;e++){c.tag="div";c.Y("fm-row");for(var g=0;g<this.ba.Hd;g++)if(f.model.B.C.su){var l=e-this.ba.Vd+this.qb.length;c.text+=Ja(this.qR(e,g,0<=l?this.qb[l]:null))}else c.text+=Ja(this.Ox(e,
g));a.push(Ja(c))}a=a.join("");this.element.innerHTML!=a&&(this.wm.yw(),this.html(a),this.wm.$y())};b.prototype.qR=function(a,c,e){var g=this.qb.indexOf(e);this.cell.clear();this.cell.tag="div";this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.zj);this.cell.Y(h.W.ua.Ku);e?(this.cell.Y(h.W.ua.qf+g),this.cell.text=f.O.In(e.caption,!0,!0).replace(/\n/g,"<br>"),e.WL&&(f.model.B.C.Qm?(this.xy(this.cell,e),this.cell.Y(h.W.ua.yI),this.cell.attr["data-h-name"]=e.uniqueName,this.cell.text+=this.wm.TZ(e)):f.model.B.C.jz&&
(this.cell.attr.title=f.model.A.j.mA,this.xy(this.cell,e)))):this.cell.Y(h.W.ua.TV);this.Jga(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};b.prototype.xy=function(a,c){a.Y(h.W.ua.Lp);c.filter.$g&&(a.Y(h.W.ua.nW),a.text+=this.Cn(h.W.ua.jI,f.model.A.j.mX));a.text+=this.Cn(h.W.ua.pI)};b.prototype.dz=function(a){for(var c=this.qb.length=0;c<a.length;c++){var e=a.ea(c);0==e.Qe&&this.qb.push(e)}};b.prototype.Wj=
function(a){if(!f.model.B.C.Qm){var c=a.element;c.Lc(h.W.ua.Lp)&&(c=parseInt(c.attr("data-h")),isNaN(c)||this.Da(new h.iO(this.qb[c],a.cell)))}};b.prototype.LC=function(a){if(!f.model.B.C.Qm&&(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.Da(new h.jO(a,c))}};b.prototype.clear=function(){this.qb.length=0;this.gb()};d.bX=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=d.zu.call(this,a,null)||this;c.rowIndex=0;c.ba=a;c.qb=[];c.Y("fm-filters");c.$a();c.N(h.mc.hn,function(e){return c.Wj(e)});c.N("keydown",function(e){return c.LC(e)});c.wm=new d.EW(c);return c}u(b,d.zu);b.prototype.gb=function(){this.wm.yw();this.ww();if(f.model.B.C.su){var a=new Ha("div");a.Y("fm-row");a.style.height=this.ba.Nd(this.rowIndex)+"px";for(var c=0;c<this.qb.length;c++)a.text+=Ja(this.qR(this.rowIndex,c,this.qb[c]));
this.html(Ja(a));this.wm.$y();0==this.qb.length?this.$a():this.show()}else this.$a()};b.prototype.qR=function(a,c,e){this.cell.clear();this.cell.tag="div";this.cell.Y(h.W.ua.we);this.cell.Y(h.W.ua.zj);e&&(this.cell.text=f.O.In(e.caption,!0,!0).replace(/\n/g,"<br>"),e.WL&&(f.model.B.C.Qm?(this.xy(this.cell,e),this.cell.Y(h.W.ua.yI),this.cell.attr["data-h-name"]=e.uniqueName,this.cell.text+=this.wm.TZ(e)):f.model.B.C.jz&&(this.cell.attr.title=f.model.A.j.mA,this.xy(this.cell,e))));this.cell.style["min-height"]=
this.ba.Nd(a)+"px";this.cell.style["max-height"]=this.ba.Nd(a)+"px";this.cell.attr["data-r"]=a;this.cell.attr["data-c"]=this.ba.Qf+c;this.cell.attr["data-h"]=c;this.cell.attr.tabindex="0";return this.cell};b.prototype.xy=function(a,c){a.Y(h.W.ua.Lp);c.filter.$g&&(a.Y(h.W.ua.nW),a.text+=this.Cn(h.W.ua.jI,f.model.A.j.mX));a.text+=this.Cn(h.W.ua.pI)};b.prototype.dz=function(a){for(var c=this.qb.length=0;c<a.length;c++){var e=a.ea(c);0==e.Qe&&this.qb.push(e)}0==this.qb.length?this.$a():this.show()};b.prototype.Wj=
function(a){if(!f.model.B.C.Qm&&(a=a.element,a.Lc(h.W.ua.Lp))){var c=parseInt(a.attr("data-h"));isNaN(c)||this.Da(new h.iO(this.qb[c],null,a))}};b.prototype.LC=function(a){if(!f.model.B.C.Qm&&(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.Da(new h.jO(a,c))}};b.prototype.clear=function(){this.qb.length=0;this.gb()};d.Yja=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(c,e){e=void 0===e?!1:e;var g=A.sd.call(this)||this;g.m9=!1;g.F.Od();g.xc=c;g.m9=e;g.Za(g.xc.caption);g.ud("fm-ui-btn");g.Y(h.W.ua.Lp);g.Y(h.W.ua.zj);g.F.attr("title",f.model.A.j.mA);g.Z8=new A.Aa("i",h.W.ua.zW);g.Z8.Y(h.W.ua.pI);g.F.append(g.Z8);g.a9=new A.Aa("i",h.W.ua.zW);g.a9.Y(h.W.ua.jI);g.F.append(g.a9);g.d1=g.xc.filter.$g;g.m9&&(g.kj=new A.Oc,g.kj.Za(g.Oya()),g.kj.Y("fm-filter-desc"),g.V(g.kj));return g}function a(){var c=A.Aa.call(this)||
this;c.qb=[];c.Y("fm-ui-hgroup");c.Y("fm-filters");c.$a();return c}u(a,A.Aa);a.prototype.gb=function(){var c=this;this.ww();if(f.model.B.C.jz&&f.model.B.C.ZM){for(var e=[],g={},l=0;l<this.qb.length;g={Mw:g.Mw},l++){var m=this.qb[l];m.WL?(g.Mw=new b(m,!0),g.Mw.F.attr("data-h",l),g.Mw.N("click",function(n){return function(){return c.Wj(n.Mw)}}(g)),g.Mw.N("keydown",function(n){return function(p){return c.LC(p,n.Mw)}}(g)),this.V(g.Mw.F)):e.push(l)}0==this.qb.length||e.length==this.qb.length?this.$a():
this.show()}else this.$a()};a.prototype.dz=function(c){for(var e=this.qb.length=0;e<c.length;e++){var g=c.ea(e);0==g.Qe&&this.qb.push(g)}this.gb()};a.prototype.Wj=function(c){this.Da(new h.iO(c.hierarchy,null,c.F))};a.prototype.LC=function(c,e){f.model.B.C.Qm||32!=c.keyCode&&13!=c.keyCode||this.Da(new h.jO(0,0,e))};a.prototype.clear=function(){this.qb.length=0;this.gb()};q.Object.defineProperties(a.prototype,{ob:{configurable:!0,enumerable:!0,get:function(){return 0==this.qb.length}}});d.eoa=a;u(b,
A.sd);b.prototype.Oya=function(){var c=f.model.A.j.kI;this.hierarchy.filter.$g&&(c=1==this.hierarchy.cb.length?this.hierarchy.va(this.hierarchy.cb[0]).caption:f.model.A.j.qI);return c};q.Object.defineProperties(b.prototype,{hierarchy:{configurable:!0,enumerable:!0,get:function(){return this.xc}},d1:{configurable:!0,enumerable:!0,get:function(){return this.F.Lc("fm-filtered")},set:function(c){this.F.Ua("fm-filtered",c)}}});d.DLa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w=
{}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=d.xj.call(this)||this;a.hg=b.TYPE;a.Y("fm-compact-view");return a}u(b,d.xj);b.prototype.te=function(){d.xj.prototype.te.call(this);this.jva();this.saa();this.Vua()};b.prototype.Vua=function(){var a=this;this.Kg=new d.Yja(this.ba);this.Kg.Y("fm-cols-filter");this.Kg.N(h.mc.Iu,function(c){return a.jp(c)});this.Kg.N(h.mc.zI,function(c){return a.pU(c)});this.Kg.N(h.mc.vs,function(c){return a.Da(c)});this.V(this.Kg)};b.prototype.saa=function(){var a=
this;this.$d=new d.bX(this.ba);this.$d.Y("fm-rows-filter");this.$d.N(h.mc.Iu,function(c){return a.jp(c)});this.$d.N(h.mc.hn,function(c){return a.Wj(c)});this.$d.N(h.mc.zI,function(c){return a.pU(c)});this.$d.N(h.mc.vs,function(c){return a.Da(c)});this.V(this.$d)};b.prototype.jva=function(){var a=this;this.ti=new d.eoa;this.ti.Y("fm-page-filter");this.ti.N(h.mc.Iu,function(c){return a.jp(c)});this.ti.N(h.mc.vs,function(c){return a.Da(c)});this.V(this.ti)};b.prototype.QF=function(){this.ba.H_=this.ti.ob?
0:this.ti.element.offsetHeight;d.xj.prototype.QF.call(this);this.$d.gb()};b.prototype.JK=function(){d.xj.prototype.JK.call(this);this.Kg.gb()};b.prototype.iZ=function(){this.$d.Dx(!0);return d.xj.prototype.iZ.call(this)||this.$d.uC};b.prototype.hZ=function(){this.$d.Dx(!0);return d.xj.prototype.hZ.call(this)||this.$d.uC};b.prototype.RF=function(){d.xj.prototype.RF.call(this);this.ti.ob||(this.ti.top=this.ba.xV,this.ti.left=0,this.ti.right=0);this.jr.top=this.ba.ke;this.jr.left=0;this.jr.width=this.ba.tp;
this.jr.height=this.ba.iq;this.$d.left=this.ba.SB(0,!0);this.$d.top=this.ba.ke+this.ba.fC(0,!0);this.Kg.top=this.ba.ke+this.ba.fC(this.Kg.rowIndex,!0);this.Kg.left=this.ba.tp;this.Kg.right=Math.max(0,this.ba.bp-this.ba.fl(this.ba.$i,this.$b));this.dr.top=this.XGa()?this.ba.ke:this.Kg.qd();this.ir.top=this.ba.ke;this.gd.left=this.ba.tp;this.gd.top=this.ba.ke;this.gd.width=this.ba.Fd;this.gd.height=this.ba.Mr-this.ba.ke;this.oe.left=0;this.oe.top=this.ba.iq+this.ba.ke;this.oe.width=this.ba.bp;this.oe.height=
this.ba.Ed;this.Pc.left=this.ba.tp-parseInt(this.Pc.P("border-left-width"));this.Pc.top=this.ba.iq+this.ba.ke-parseInt(this.Pc.P("border-top-width"));this.Pc.width=this.ba.Fd;this.Pc.height=this.ba.Ed};b.prototype.XGa=function(){return!(this.Kg.visible&&!f.model.B.C.vl)};b.prototype.FR=function(){d.xj.prototype.FR.call(this);this.$d.gb();this.Kg.gb()};b.prototype.UG=function(){var a=this;d.xj.prototype.UG.call(this);for(var c={Bn:function(l){return a.naa(l)},ju:function(l){return a.ju(l)}},e=this.Kg.find(".fm-header:not(.fm-empty)",
!0),g=0;g<e.length;g++)e[g].draggable(c);e=this.$d.find(".fm-header:not(.fm-empty)",!0);for(g=0;g<e.length;g++)e[g].draggable(c);e=this.ti.find(".fm-header:not(.fm-empty)",!0);for(g=0;g<e.length;g++)e[g].draggable(c)};b.prototype.ju=function(a){if(a.Lc("fm-drag-remove")){var c=parseInt(a.attr("data-h")),e=a.closest(".fm-filters");a=this.slice.clone();e==this.Kg?(c=a.Cb.ea(c).uniqueName,a.columns.removeItem(c)):e==this.$d?(c=a.vb.ea(c).uniqueName,a.rows.removeItem(c)):e==this.ti&&a.pages.A3(c);f.model.Ta.U().ae(a)}};
b.prototype.Xl=function(a,c,e){e=this.rca(e);if(null==e)this.ql();else{var g=this.Lya(e,this.od);this.ql();if(!isNaN(g)){var l=parseInt(a.attr("data-h")),m=a.closest(".fm-filters");c=this.slice.clone();if(m==this.Kg){var n=c.Cb.ea(l);l=c.columns.indexOf(n.uniqueName)}else m==this.$d?(n=c.vb.ea(l),l=c.rows.indexOf(n.uniqueName)):m==this.ti&&(n=c.pages.ea(l),l=c.pages.indexOf(n.uniqueName));null!=n&&(e==m&&l<g&&g--,e!=m||l!=g)&&(a.$a(),e==m?e==this.Kg?(g=0<c.columns.length&&c.columns.vS().Qe&&g>=c.columns.length-
1?c.columns.length-2:g,c.columns.T1(l,g)):e==this.$d?(g=0<c.rows.length&&c.rows.vS().Qe&&g>=c.rows.length-1?c.rows.length-2:g,c.rows.T1(l,g)):e==this.ti&&c.pages.T1(l,g):(c.columns.removeItem(n.uniqueName),c.rows.removeItem(n.uniqueName),c.pages.removeItem(n.uniqueName),e==this.Kg?(g=0<c.columns.length&&c.columns.vS().Qe&&g>=c.columns.length?c.columns.length-1:g,c.columns.TJ(n.uniqueName,n,g)):e==this.$d?(g=0<c.rows.length&&c.rows.vS().Qe&&g>=c.rows.length?c.rows.length-1:g,c.rows.TJ(n.uniqueName,
n,g)):e==this.ti&&c.pages.TJ(n.uniqueName,n,g)),1<c.columns.length&&c.columns.ea(0).Qe&&(a=c.columns.ea(0),c.columns.splice(0,1),c.columns.TJ(a.uniqueName,a,c.columns.length)),f.model.Ta.U().ae(c))}}};b.prototype.Lya=function(a,c){return a==this.Kg?this.tya(c):a==this.$d?this.Ica(c):a==this.ti?this.rza(c):NaN};b.prototype.tya=function(a){if(null!=a){a=a.index();if(a>this.slice.columns.length)return this.slice.columns.length;var c=this.slice.columns.indexOf("[Measures]");0<=c&&c<=a&&0!=a&&a++;return a}return NaN};
b.prototype.Ica=function(a){if(null!=a){a=a.parent.Lc("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};b.prototype.rza=function(a){return null!=a?(a=a.index(),a>this.slice.pages.length?this.slice.pages.length:a):NaN};b.prototype.rca=function(a){var c=a.closest(".fm-filters");if(null==c){var e=a.closest(".fm-cell");
null!=e?(e.attr("data-r"),a=parseInt(e.attr("data-c")),this.oBa(a)?c=this.Kg:this.pBa(a)&&(c=this.$d)):(a=a.closest(".fm-resize-handles"),null!=a&&(a.Lc("fm-cols-resize")?c=this.Kg:a.Lc("fm-rows-resize")&&(c=this.$d)))}return c};b.prototype.oBa=function(a){return a>=this.coords.Hd};b.prototype.pBa=function(a){return a<=this.coords.Hd};b.prototype.qD=function(a,c){a=this.rca(a);if(null==a)this.ql();else{var e=c.closest(".fm-header:not(.fm-empty)");null!=c.closest(".fm-filters")&&null!=e?(this.od=this.Lv(),
a==this.ti?e.before(this.od):c.before(this.od)):(this.od=this.Lv(),a==this.Kg?this.Kg.find(".fm-row").append(this.od):a==this.$d?null!=c.closest(".fm-filters")?this.$d.find(".fm-header").before(this.od):this.hg==d.oB.ON.TYPE?this.$d.find(".fm-header").parent.append(this.od):this.$d.append(this.od):a==this.ti&&this.ti.append(this.od))}};b.prototype.tr=function(){d.xj.prototype.tr.call(this);this.Kg.clear();this.ti.clear();this.$d.clear()};b.prototype.dispose=function(){this.Kg.Od();this.Kg.dispose();
this.$d.Od();this.$d.dispose();this.ti.Od();d.xj.prototype.dispose.call(this)};q.Object.defineProperties(b.prototype,{bR:{configurable:!0,enumerable:!0,get:function(){return this.Kg}},nga:{configurable:!0,enumerable:!0,get:function(){return this.$d}},pfa:{configurable:!0,enumerable:!0,get:function(){return this.ti}}});b.TYPE="compact";d.VD=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=A.Aa.call(this,"div","fm-resize-handles")||this;c.zJ=function(e){return c.rw(e)};c.Qs=function(e){return c.zq(e)};c.RA=function(e){return c.sw(e)};c.AY=function(e){return c.Y2(e)};c.gv=new Ha;c.Me=a;c.ba=a.coords;c.element.addEventListener("mousedown",c.zJ);c.element.addEventListener("touchstart",c.zJ);f.Im.addEventListener("mouseup",c.Qs);f.Im.addEventListener("touchend",c.Qs);f.Im.addEventListener("touchcancel",c.Qs);c.jv=new A.Aa("div",
"fm-indicator");c.jv.$a();c.V(c.jv);c.aB=new A.Aa("div","fm-wrapper");c.aB.attr("title",f.model.A.j.l8);c.V(c.aB);x.Bd().Vl&&c.Y("fm-pointer-events-none");c.jg("hidden","true");return c}u(b,A.Aa);b.prototype.gb=function(){this.aB.attr("title",f.model.A.j.l8)};b.prototype.st=function(a){this.gv.tag="div";this.gv.Y("fm-handle");this.gv.attr["data-idx"]=a;this.gv.attr.title=f.model.A.j.fpa;return this.gv};b.prototype.rw=function(a){if(a.target.classList.contains("fm-handle")){this.$u=a.target;this.$u.classList.add("fm-active");
this.tA=this.Sf();f.Im.addEventListener("mousemove",this.RA);f.Im.addEventListener("touchmove",this.AY);a.stopImmediatePropagation();var c=parseInt(this.$u.getAttribute("data-idx"));this.eN(c);a.preventDefault();a.stopImmediatePropagation()}};b.prototype.eN=function(){};b.prototype.zq=function(){f.Im.removeEventListener("mousemove",this.RA);f.Im.removeEventListener("touchmove",this.AY);if(this.$u){this.$u.classList.remove("fm-active");var a=parseInt(this.$u.getAttribute("data-idx"));this.fN(this.$u,
a);this.$u=null;this.jv.$a()}};b.prototype.fN=function(){};b.prototype.Y2=function(a){a=a.touches[0];this.AU(this.$u,a.clientX-this.tA.left,a.clientY-this.tA.top);this.jv.show()};b.prototype.sw=function(a){var c=a.clientX-this.tA.left,e=a.clientY-this.tA.top;0>c||0>e||c>this.ba.bp||e>this.ba.Mr?this.zq(a):(this.AU(this.$u,c,e),this.jv.show())};b.prototype.AU=function(){};b.prototype.dispose=function(){this.element&&this.element.removeEventListener("mousedown",this.zJ);f.Im.removeEventListener("mousemove",
this.RA);f.Im.removeEventListener("mouseup",this.Qs);f.Im.removeEventListener("touchmove",this.AY);f.Im.removeEventListener("touchend",this.Qs);f.Im.removeEventListener("touchcancel",this.Qs);A.Aa.prototype.dispose.call(this)};d.bx=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.bx.apply(this,arguments)||this}u(b,d.bx);b.prototype.gb=function(){d.bx.prototype.gb.call(this);this.aB.ww();for(var a="",c=0;c<this.ba.Vd;c++)a+=Ja(this.st(c),!0);var e=this.ba.Ng;for(c=Math.min(this.ba.Ak,this.ba.ny());e<c;e++)a+=Ja(this.st(e),!0);this.aB.html(a)};b.prototype.st=function(a){d.bx.prototype.st.call(this,a);this.gv.style.top=this.ba.Nn(a,this.Me.$b,!1)+this.ba.Nd(a)+"px";return this.gv};b.prototype.eN=function(a){this.xY=
this.ba.Nn(a,this.Me.$b,!1)};b.prototype.fN=function(a,c){a=Math.round(a.offsetTop+a.clientHeight/2-this.xY);a=this.ba.WK(a,d.jh.RD,d.jh.Qq);this.Wa(h.mc.rE,this,{height:a,hb:c})};b.prototype.AU=function(a,c,e){e=this.ba.WK(e,this.xY+d.jh.RD,this.xY+d.jh.Qq);a.style.top=e+"px";this.jv.top=e;this.jv.width=this.ba.et};d.zoa=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.bx.apply(this,arguments)||this}u(b,d.bx);b.prototype.gb=function(){d.bx.prototype.gb.call(this);this.aB.ww();for(var a="",c=0;c<this.ba.Hd;c++)a+=Ja(this.st(c),!0);c=Math.min(this.ba.$i,this.ba.RB());for(var e=this.ba.Qf;e<c;e++)a+=Ja(this.st(e),!0);this.aB.html(a)};b.prototype.st=function(a){d.bx.prototype.st.call(this,a);this.gv.style.left=this.ba.fl(a,this.Me.$b)+this.ba.Zg(a)+"px";return this.gv};b.prototype.eN=function(a){this.wY=
this.ba.fl(a,this.Me.$b)};b.prototype.fN=function(a,c){a=Math.round(a.offsetLeft+a.clientWidth/2-this.wY);a=this.ba.WK(a,d.jh.SD,d.jh.Kp);this.Wa(h.mc.qE,this,{width:a,lc:c})};b.prototype.AU=function(a,c){c=this.ba.WK(c,this.wY+d.jh.SD,this.wY+d.jh.Kp);a.style.left=c+"px";this.jv.left=c;this.jv.height=this.ba.Ax};d.Xja=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=this;this.k9=!1;this.Dl=[];this.xm=[];this.iba=function(){return c.NDa()};this.uaa=function(){return c.MDa()};this.Mba=function(){return c.ODa()};this.Me=a;this.ba=a.coords;this.Me.N(h.mc.hn,function(e){return c.JC(e)})}b.prototype.gb=function(){this.Xaa(this.nh)};b.prototype.Rga=function(a){this.k9=void 0===a?!0:a};b.prototype.zha=function(){this.M3();null!=this.nh&&(this.nh.sg(!0),this.nh=null)};b.prototype.JC=function(a){this.stop();
this.RAa(a.cell.lc)&&a.cell.Jh&&this.fba(a.cell)};b.prototype.RAa=function(a){return this.k9||-1<this.Dl.indexOf(a)};b.prototype.clear=function(){this.Dl=[];this.xm=[];this.jd=null};b.prototype.fba=function(a){!f.model.B.C.TF||null!=this.jd&&this.jd.hb==a.hb&&this.jd.lc==a.lc||(this.jd=a,this.Zva(),this.Me.P3.gb())};b.prototype.Gra=function(a){this.jd.label=a+"\n"};b.prototype.stop=function(){f.model.B.C.TF&&(this.zha(),this.jd=null)};b.prototype.save=function(a){if((f.model.B.C.TF||this.Ada)&&null!=
this.jd){a=a.replace(/\n/gi,"<br>");if(this.jd.measure.type==f.u.i.Ja.Oa)this.jd.value=Date.parse(a);else if(this.jd.measure.type!=f.u.i.Ja.sc){a=a.replace(/,/gi,".");a=a.replace(/[^\d|\.|\-]/gi,"");this.jd.value=parseFloat(a);var c=this.jd.measure.Dh(this.jd.measure.uniqueName,this.jd.measure.$).clone();this.jd.label=x.Tb.format(this.jd.value,c)}else this.jd.label=a;null!=this.L9&&this.L9(this.jd.hb,this.jd.lc,this.jd.measure.type!=f.u.i.Ja.sc?this.jd.value:a);null!=this.jd&&this.Me.G.tta(this.jd.hb,
this.jd.lc)}};b.prototype.Zva=function(){null!=this.jd&&this.jd.Jh&&(null!=this.nh&&(this.nh.Od(),this.nh.sg(),this.nh=null),this.jd.hb<this.ba.gG()||this.jd.lc<this.ba.fG()||this.jd.hb>this.ba.ny()||this.jd.lc>this.ba.RB()||(this.nh=new A.Xu,this.nh.Y("fm-editing-cell"),this.Me.cB(this.nh),this.Xaa(this.nh),this.jd.label=this.jd.label.replace(/<br\s*[\/]?>/gi,"\n"),this.nh.cj(this.Mya(this.jd)),this.nh.N(A.Xu.Nz,this.iba),this.nh.N(A.Xu.eW,this.uaa),this.nh.N(A.Xu.fW,this.Mba),this.nh.F.focus(),
this.nh.selectAll(),this.nh.show()))};b.prototype.Mya=function(a){return a.measure.type==f.u.i.Ja.sc?a.label:isNaN(a.value)?"":a.measure.type==f.u.i.Ja.Oa?(new Date(a.value)).toISOString().substr(0,10):a.value.toString()};b.prototype.Xaa=function(a){if(a){this.jd.hb<this.ba.gG()||this.jd.lc<this.ba.fG()||this.jd.hb>this.ba.ny()||this.jd.lc>this.ba.RB()?a.$a():a.show();var c=Math.min(this.ba.Zg(this.jd.lc),this.ba.et-this.ba.fl(this.jd.lc,this.Me.$b));a.F.P("left",this.ba.fl(this.jd.lc,this.Me.$b)-
1+"px");a.F.P("top",this.ba.Nn(this.jd.hb,this.Me.$b)-1+"px");a.tj(c+1);a.yp(this.ba.Nd(this.jd.hb)+1)}};b.prototype.NDa=function(){this.aga();this.M3();var a=this.Me.Rf(this.jd.hb+1,this.jd.lc);this.stop();null!=a?(a.hb>this.ba.ny()-3&&this.Me.Eq(this.ba.Ng+1),this.fba(a)):this.stop()};b.prototype.ODa=function(){this.aga();this.M3();this.stop()};b.prototype.MDa=function(){this.Ada&&this.Gra(this.nh.yi());this.nh.cj(this.jd.label)};b.prototype.M3=function(){null!=this.nh&&this.save(this.nh.yi());
null!=this.jd&&(this.Me.clearData(),this.Me.gb())};b.prototype.aga=function(){this.nh.mb(A.Xu.Nz,this.iba);this.nh.mb(A.Xu.eW,this.uaa);this.nh.mb(A.Xu.fW,this.Mba)};q.Object.defineProperties(b.prototype,{tga:{configurable:!0,enumerable:!0,set:function(a){this.L9=a}},Ada:{configurable:!0,enumerable:!0,get:function(){return null!=this.jd}}});d.Hka=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=this;this.focused=null;this.CC=!1;this.target=a;this.target.N("keyup",function(e){return c.$ea(e)});this.target.N("paste",function(e){return c.$ea(e)});this.target.N("focusout",function(){return c.m2()})}b.prototype.TZ=function(a){return"<div><input type='text' class='fm-ui-text-input' value='"+((a.filter.wy?a.filter.query.value:"")+"'></div>")};b.prototype.yw=function(){if(f.model.B.C.Qm&&(this.CC=!0,document.activeElement&&
"input"==document.activeElement.tagName.toLowerCase())){var a=document.activeElement,c=a.parentElement.parentElement.getAttribute("data-h-name");f.ha(c)?this.focused=null:this.focused={zg:c,selectionStart:a.selectionStart,selectionEnd:a.selectionEnd,value:a.value}}};b.prototype.$y=function(){if(f.model.B.C.Qm){if(null!=this.focused){var a=this.target.element.querySelector("."+h.W.ua.yI+'[data-h-name="'+this.focused.zg+'"] input');a&&(a.focus(),a.value=this.focused.value,a.selectionStart=this.focused.selectionStart,
a.selectionEnd=this.focused.selectionEnd)}this.CC=!1}};b.prototype.m2=function(){this.CC||(this.focused=null)};b.prototype.$ea=function(a){a=a.target;var c=a.parentElement.parentElement.getAttribute("data-h-name");this.target.Da(new h.rma(c,a.value))};d.EW=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=this;this.focused=null;this.CC=!1;this.target=a;this.target.N("focusin",function(){return c.yw()});this.target.N("focusout",function(){return c.m2()})}b.prototype.yw=function(){if(!f.model.B.C.Qm&&(this.CC=!0,document.activeElement&&"columnheader"==document.activeElement.getAttribute("role"))){var a=document.activeElement,c=a.getAttribute("data-c");this.focused=(a=a.getAttribute("data-r"))||c?{tNa:c,bs:a}:null}};b.prototype.$y=
function(){if(!f.model.B.C.Qm){if(null!=this.focused){var a=document.querySelector("."+h.W.ua.Lp+('[data-c="'+this.focused.col+'"][data-r="'+this.focused.row+'"]'));a&&a.focus()}this.CC=!1}};b.prototype.m2=function(){this.CC||(this.focused=null)};d.Lla=b})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=d.VD.call(this)||this;c.hg=a.TYPE;c.ud("fm-compact-view");c.Y("fm-classic-view");return c}u(a,d.VD);a.prototype.saa=function(){var c=this;this.$d=new b.Vja(this.ba);this.$d.Y("fm-rows-filter");this.$d.N(h.mc.Iu,function(e){return c.jp(e)});this.$d.N(h.mc.hn,function(e){return c.Wj(e)});this.$d.N(h.mc.zI,function(e){return c.pU(e)});this.$d.N(h.mc.vs,function(e){return c.Da(e)});this.V(this.$d)};a.prototype.QF=function(){this.HAa?
d.VD.prototype.QF.call(this):(f.Va(f.model.A.j.nna,f.model.A.j.fm,f.rb.fm),f.model.Ta.U().zp({gridType:h.ie.Ez}),f.model.Ta.U().refresh())};a.prototype.Ica=function(c){var e=this.slice;if(null!=c){c=c.index();if(c>e.rows.length)return e.rows.length;e=e.rows.indexOf("[Measures]");0<=e&&e<=c&&0!=c&&c++;return c}return NaN};q.Object.defineProperties(a.prototype,{HAa:{configurable:!0,enumerable:!0,get:function(){return this.ba.Fd>this.ba.FCa}}});a.TYPE="classic";b.ON=a})(d.oB||(d.oB={}))})(h.sheet||(h.sheet=
{}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c){return d.bX.call(this,c)||this}u(a,d.bX);a.prototype.gb=function(){for(var c=[],e=new Ha,g=0;g<this.ba.Vd;g++){e.tag="div";e.Y("fm-row");for(var l=0;l<this.ba.Hd;l++)e.text=f.model.B.C.su?e.text+Ja(this.qR(g,l,g==this.ba.Vd-1?this.qb[l]:null)):e.text+Ja(this.Ox(g,l));c.push(Ja(e))}this.wm.yw();this.html(c.join(""));this.wm.$y()};b.Vja=a})(d.oB||(d.oB={}))})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(){var c=d.xj.call(this)||this;c.KA=!1;c.GB=!1;c.hg=a.TYPE;c.Y("fm-flat-view");c.S8=new d.Hka(c);return c}u(a,d.xj);a.prototype.laa=function(){var c=this;this.gd=new b.Jla(this.ba,function(e,g){return c.Rf(e,g)});this.gd.Y("fm-cols-sheet");this.gd.jb.element.addEventListener("wheel",this.wZ);this.gd.jb.N(Ka,function(){return c.pDa()});this.gd.N(h.mc.hn,function(e){return c.Wj(e)});this.gd.N(h.mc.Iu,function(e){return c.jp(e)});this.gd.N(h.mc.zI,
function(e){return c.pU(e)});this.gd.N(h.mc.vs,function(e){return c.Da(e)});this.V(this.gd)};a.prototype.pDa=function(){this.Pc.jb.scrollLeft=this.gd.jb.scrollLeft};a.prototype.Wj=function(c){this.GB||d.xj.prototype.Wj.call(this,c)};a.prototype.jp=function(c){this.GB||d.xj.prototype.jp.call(this,c)};a.prototype.RF=function(){d.xj.prototype.RF.call(this);this.jr.top=this.ba.ke;this.jr.left=0;this.jr.width=this.ba.tp;this.jr.height=this.ba.iq;this.gd.left=this.ba.tp;this.gd.top=this.ba.ke;this.gd.width=
this.ba.Fd;this.gd.height=this.ba.Mr-this.ba.ke;this.oe.left=0;this.oe.top=this.ba.iq+this.ba.ke;this.oe.width=this.ba.bp;this.oe.height=this.ba.Ed;this.Pc.left=this.ba.tp-parseInt(this.Pc.P("border-left-width"));this.Pc.top=this.ba.iq+this.ba.ke-parseInt(this.Pc.P("border-top-width"));this.Pc.width=this.ba.Fd;this.Pc.height=this.ba.Ed+parseInt(this.Pc.P("border-top-width"))};a.prototype.JK=function(){d.xj.prototype.JK.call(this);this.S8.gb()};a.prototype.UG=function(){var c=this;if(!this.il||f.u.Na.U().fa.fT){d.xj.prototype.UG.call(this);
for(var e={Bn:function(m){return c.naa(m)},ju:function(m){return c.ju(m)},qw:function(m,n){return c.qw(m,n)},eU:function(m){return c.eU(m)}},g=this.gd.find(".fm-header",!0),l=0;l<g.length;l++)g[l].draggable(e)}};a.prototype.zda=function(c){if(f.v(c))return!1;c=this.Nt(c.element);return f.v(c)?!0:1===c.level||void 0===c.level};a.prototype.qD=function(c,e){c=e.closest(".fm-cell");this.zda(c)?(c=parseInt(c.attr("data-c")),c=Math.min(c,this.coords.Wk),this.od=this.Lv(),this.od.left=this.coords.fl(c,this.$b)-
(c==this.coords.Wk?0:this.od.width),this.od.top=this.ba.ke+this.coords.Nn(0,this.$b)-1,this.od.height=this.coords.Nd(0)+1,this.append(this.od)):this.ql()};a.prototype.qw=function(c,e){return"input"==e.target.tagName.toLowerCase()||1<this.Nt(c.element).level?!1:!0};a.prototype.eU=function(){this.P3.clear();this.GB=!0};a.prototype.ju=function(c){var e=this;setTimeout(function(){e.GB=!1},100);if(c.Lc("fm-drag-remove"))if(c=parseInt(c.attr("data-c")),this.il)this.Wa(h.mc.X5,this,{index:c});else{var g=
this.slice.clone(),l=g.flatten(!0),m=l.ea(c);l.removeItem(m.uniqueName);g.columns.Bb(m.uniqueName)?g.columns.removeItem(m.uniqueName):g.rows.Bb(m.uniqueName)?g.rows.removeItem(m.uniqueName):g.pages.Bb(m.uniqueName)&&g.pages.removeItem(m.uniqueName);g.ad().find(function(n){return n.uniqueName===m.uniqueName})&&g.aD(m.uniqueName);g.flatOrder=l.Ic(!0);f.model.Ta.U().ae(g)}};a.prototype.Xl=function(c,e,g){this.ql();var l=g.closest(".fm-cell");if(null!=l){e=parseInt(c.attr("data-c"));g=parseInt(l.attr("data-c"));
c=this.Nt(c.element);var m=this.Nt(l.element),n=c.hierarchy?c.hierarchy.ra.length:0;g=g>e?g-(0<n?n-2:0):g;e!==g&&(this.il?this.Wa(h.mc.W5,this,{zxa:e,BJa:g}):this.zda(l)&&(l=this.slice.clone(),0==l.flatOrder.length&&(l.flatOrder=l.flatten(!0).Ic(!0)),l.gAa&&void 0===c.level&&(n=e>g?1:-1,e=l.flatOrder.indexOf(c.hierarchy.uniqueName),g=null===m?g:l.flatOrder.indexOf(m.hierarchy.uniqueName),g=e===g?g+n:g),g=Math.max(0,Math.min(g,l.flatOrder.length)),e<g&&g--,f.Ha.S1(l.flatOrder,e,g),f.model.Ta.U().ae(l)))}};
q.Object.defineProperties(a.prototype,{MK:{configurable:!0,enumerable:!0,get:function(){return this.S8}},il:{configurable:!0,enumerable:!0,get:function(){return this.KA},set:function(c){this.KA=c}}});a.TYPE="flat";b.sI=a})(d.flat||(d.flat={}))})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){(function(b){function a(c,e){var g=d.PN.call(this,c,e)||this;g.N(h.mc.hn,function(l){return g.jp(l)});g.N("keydown",function(l){return g.LC(l)});g.N("focusin",function(l){return g.l2(l)});return g}u(a,d.PN);a.prototype.l2=function(c){var e=this.jb.content.element.scrollLeft;0!=e?(this.jb.content.BIa(),this.jb.scrollLeft=this.jb.element.scrollLeft+e):(c=parseInt(c.target.getAttribute("data-c")),!isNaN(c)&&this.ba.SB(c,this.$b)<this.ba.scrollLeft&&
(this.jb.scrollLeft-=this.ba.Fd/2))};a.prototype.jp=function(c){null!=c.cell&&c.cell.wk&&null!=c.cell.hierarchy&&c.cell.bB!=h.W.Mp.UI&&(f.model.B.C.Qm||this.Da(new h.iO(c.cell.hierarchy,c.cell)))};a.prototype.LC=function(c){if(!f.model.B.C.Qm&&(32==c.keyCode||13==c.keyCode)){var e=c.target;c=parseInt(e.getAttribute("data-r"));e=parseInt(e.getAttribute("data-c"));isNaN(c)||isNaN(e)||this.Da(new h.jO(c,e))}};a.prototype.Ox=function(c,e){this.cell=d.PN.prototype.Ox.call(this,c,e);(c=this.tm?this.tm(c,
e):null)&&c.wk&&c.hierarchy.WL&&(f.model.B.C.Qm?(this.xy(this.cell,c.hierarchy),this.cell.Y(h.W.ua.yI),this.cell.text+=this.wm.TZ(c.hierarchy),this.cell.attr["data-h-name"]=c.hierarchy.uniqueName):f.model.B.C.jz&&(this.xy(this.cell,c.hierarchy),this.cell.attr.title=f.model.A.j.mA,this.cell.attr.tabindex="0",this.cell.text+=this.Cn(h.W.ua.pI)));return this.cell};a.prototype.xy=function(c,e){c.Y(h.W.ua.Lp);e.filter.$g&&(c.Y(h.W.ua.nW),c.text+=this.Cn(h.W.ua.jI,f.model.A.j.mX))};b.Jla=a})(d.flat||(d.flat=
{}))})(h.sheet||(h.sheet={}))})(k.X||(k.X={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){f=f.K||(f.K={});f=f.Vc||(f.Vc={});f=f.gqa||(f.gqa={});f=f.Dla||(f.Dla={});f[f.$Ka=0]="DESELECT";f[f.aLa=1]="DESELECT_ALL";f[f.hNa=2]="TOGGLE_EXPANDED";f[f.iNa=3]="TOGGLE_SELECTED";f[f.BMa=4]="MOVE_UP";f[f.wMa=5]="MOVE_DOWN";f[f.zMa=6]="MOVE_TO_ROWS";f[f.xMa=7]="MOVE_TO_COLUMNS";f[f.yMa=8]="MOVE_TO_FILTERS";f[f.AMa=9]="MOVE_TO_VALUES";f[f.cLa=10]="EDIT_CALCULATED_VALUE";f[f.YMa=11]="SELECT_AGGREGATION"})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div")||this;b.KT=function(c){return b.J2(c)};b.list=new A.hd.zh;b.list.zk=!0;b.list.Lh(b.bu);b.list.Xf("caption");b.list.ue();b.list.N(y.da.Qd,function(c){return b.ku(c)});b.V(b.list);b.F.$k();b.F.N("keydown",function(c){27==c.keyCode&&(b.close(),c.stopImmediatePropagation())});var a=new A.Aa("div","fm-arrow");b.F.V(a);return b}u(d,A.Ca);d.prototype.Xn=function(b,a,c){this.origin=a;this.RK=b;this.tba=void 0===c?-1:c;this.setData(b);
this.show();this.F.N("mouseleave",this.KT);f.Im.addEventListener("mousedown",this.KT);b=a.Sf(this.F.element.offsetParent);this.F.P("right",this.F.element.offsetParent.clientWidth-b.left+"px");this.F.P("top",b.top-this.qd()/2+a.qd()/2+"px");this.ov=document.activeElement;this.list.focus()};d.prototype.J2=function(b){"mousedown"==b.type&&this.F.iR(b)||(this.F.mb("mouseleave",this.KT),f.Im.removeEventListener("mousedown",this.KT),this.close())};d.prototype.setData=function(b){for(var a=0,c=[],e=0;e<
b.Tc.length;e++){var g={caption:b.fK[e],$:b.Tc[e]};void 0!=b.vv&&(g.zV=b.vv[e]);c.push(g);b.Tc[e]==b.$&&(a=e)}this.list.Cf(c);this.list.ak(a);this.list.F.Dw(0)};d.prototype.ku=function(b){this.close();this.Wa(y.da.Qd,this,{RK:this.RK,tba:this.tba,TY:b.data.Fk,origin:this.origin})};d.prototype.bu=function(b,a){var c=new A.Vf.XI;c.setData(b);c.am(a);return c};d.prototype.close=function(){this.$a();this.ov&&this.ov.focus({preventScroll:!0})};h.PH=d})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.Ns=this.Am=null}b.prototype.update=function(a,c,e,g){this.Ud=a;this.Lb=c;this.pn=e;this.Ns=g;this.Lx();this.Fp();this.rN()};b.prototype.Fp=function(){this.pages=this.dC();this.rows=this.vG();this.Cea(this.rows);this.columns=this.kG();this.Cea(this.columns);this.measures=this.ad();this.oCa(this.measures);this.tZ()};b.prototype.rN=function(){this.qb=[];this.Le=[];this.zra(this.qb,this.dG());this.wBa&&this.mHa(this.qb);this.Ira(this.qb,
this.Er());f.model.B.C.XIa&&this.nHa(this.qb);this.sH(this.qb);if(b.z_){b.z_=!1;var a=this.qb.find(function(c){return c.uniqueName==="/"+f.model.A.j.z6});null!=a&&this.mba(a)}this.zk(this.pages);this.zk(this.columns);this.zk(this.rows);this.zk(this.measures)};b.prototype.hu=function(a){if(null!=this.Ud){var c=this.Er().find(function(g){return g.uniqueName===a});if(null!=c){c.rg=!0;c.ul=this.Cy;var e=this.measures.findIndex(function(g){return g.uniqueName===a});0<=e?(c.U0=!0,this.measures[e]=c):this.measures.push(c)}this.rN()}};
b.prototype.iu=function(a){if(null!=this.Lb&&null!=this.Ud){var c=this.measures.findIndex(function(e){return e.uniqueName===a});-1<c&&this.measures.splice(c,1);this.u4();this.rN()}};b.prototype.tZ=function(){this.Am=null};b.prototype.u4=function(){this.Am={pages:this.pages,rows:this.rows,columns:this.columns,measures:this.measures}};b.prototype.Cea=function(a){a=a.find(function(c){return"[Measures]"===c.uniqueName});null!=a&&(a.caption=f.model.A.j.Rz,a.yT=!0)};b.prototype.oCa=function(a){for(var c=
0;c<a.length;c++)a[c].rg=!0,a[c].ul=f.model.B.C.ul&&!a[c].Bg};b.prototype.zk=function(a){for(var c,e=0;e<a.length;e++){a[e].rd=!0;c=this.Fba(a[e].uniqueName,a[e].rg);var g=this.Lb.rc().getItem(a[e].uniqueName);if(null!=c&&(this.Hi(c,!0),c.Ci))for(var l=0;l<c.children.length;l++)g.ig==c.children[l].uniqueName&&this.Hi(c.children[l],!0);a[e].Ci&&null!=g.nc&&(a[e].caption=a[e].caption+" / "+g.nc.caption)}};b.prototype.Hi=function(a,c){a.rd=c;null!=a.parent&&a.parent.rd!=c&&(1==c?this.Hi(a.parent,c):
0==this.hAa(a.parent.children)&&this.Hi(a.parent,c));if(a.Ci&&0==c)for(var e=0;e<a.children.length;e++)this.Hi(a.children[e],c)};b.prototype.hAa=function(a){for(var c=0;c<a.length;c++)if(!0===a[c].rd)return!0;return!1};b.prototype.Bra=function(a,c){var e=null;c=c.split(/[\/\\]/);for(var g="",l=null,m=0;m<c.length;m++){var n=c[m];if(!f.ha(n)){g=g+(f.ha(g)?"":"/")+n;var p="[Folder]."+g;(e=this.Le.find(function(t){return t.uniqueName===p}))?l=e:(e=new h.W.Mi,e.df=!0,e.uniqueName=p,e.caption=n,e.children=
[],this.Le.push(e),l?(e.level=l.level+1,e.parent=l,l.children.push(e)):(e.level=0,a.push(e)),l=e)}}return e};b.prototype.zra=function(a,c){for(var e,g,l,m=0;m<c.length;m++){l=this.Ud.Ee(c[m].uniqueName);var n=null!=l&&l.type!=f.u.i.Ja.sc,p=this.pn==f.u.i.oa.Gf||this.pn==f.u.i.oa.API||this.pn==f.u.i.oa.JSON||this.pn==f.u.i.oa.xh||this.pn==f.u.i.oa.Pp;c[m].Qda=null!=l&&l.type==f.u.i.Ja.fb;c[m].fw=null!=l&&l.type==f.u.i.Ja.Yb;c[m].NAa=null!=l&&l.type==f.u.i.Ja.Dc;f.ha(c[m].Qc)||!n&&!p?(e=a.find(function(t){return t.uniqueName===
c[m].FK}),null==e&&(e=new h.W.Mi,e.df=!0,e.uniqueName=c[m].FK,e.caption=c[m].LF,e.children=[],e.level=0,e.description=e.description,a.push(e),this.Le.push(e)),c[m].qj?(l=f.ha(c[m].Qc)?e:g,l=l.children.find(function(t){return t.uniqueName===c[m].zg}),c[m].level=l.level+1,c[m].parent=l,null==l.children&&(l.children=[]),l.children.push(c[m]),l.Ci=!0):f.ha(c[m].Qc)?(c[m].level=1,c[m].parent=e,e.children.push(c[m])):(g=e.children.find(function(t){return t.uniqueName===e.uniqueName+c[m].Qc}),null==g&&(g=
new h.W.Mi,g.df=!0,g.uniqueName=e.uniqueName+c[m].Qc,g.caption=c[m].Qc,g.children=[],g.level=1,g.parent=e,g.description=e.description,e.children.push(g),this.Le.push(g)),c[m].level=2,c[m].parent=g,g.children.push(c[m]))):(g=c[m].qj?this.Le.find(function(t){return t.uniqueName===c[m].zg}):this.Le.find(function(t){return t.uniqueName==="[Folder]."+c[m].Qc}),null==g&&(g=this.Bra(a,c[m].Qc)),c[m].level=g.level+1,c[m].parent=g,f.v(g.children)&&(g.children=[]),g.children.push(c[m]));this.Le.push(c[m])}};
b.prototype.Ira=function(a,c){for(var e={fh:0};e.fh<c.length;e={fh:e.fh},e.fh++){c[e.fh].rg=!0;c[e.fh].ul=f.model.B.C.ul&&!c[e.fh].Bg;c[e.fh].Ka&&(c[e.fh].yg=f.model.A.j.z6);var g=null;if(this.Cy){var l=this.Lha(c[e.fh].uniqueName);g=this.Le.find(function(m){return m.uniqueName===l&&!m.df})}this.Cy&&null!=g?(g.Dg=c[e.fh],g.Dg.WS=g,c[e.fh].parent=g.parent):""!==c[e.fh].yg?(g=this.Le.find(function(m){return function(n){return n.uniqueName==="[Folder]."+c[m.fh].yg+"/"+c[m.fh].Qc}}(e)),null==g&&(g=this.Hra(a,
c[e.fh].yg,c[e.fh].Qc,c[e.fh].Bg,c[e.fh].Ka)),c[e.fh].level=g.level+1,c[e.fh].parent=g,g.children.push(c[e.fh])):(c[e.fh].level=0,a.push(c[e.fh]));this.Le.push(c[e.fh])}};b.prototype.Hra=function(a,c,e,g,l){g=void 0===g?!1:g;l=void 0===l?!1:l;var m=null;e=e.split(/[\/\\]/);e.unshift(c);c="";for(var n=null,p=0;p<e.length;p++){var t=e[p];if(!f.ha(t)){c=c+(f.ha(c)?"":"/")+t;var r="[Folder]."+c;m=this.Le.find(function(v){return v.uniqueName===r});f.v(m)&&0==p&&(m=this.Le.find(function(v){return v.caption===
t}))&&!m.df&&(m=null);m?n=m:(m=new h.W.Mi,m.df=!0,m.uniqueName=r,m.caption=t,m.children=[],m.Yt=!0,m.Bg=g,m.HG=l,this.Le.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};b.prototype.mHa=function(a){for(var c,e=0;e<a.length;e++)if(!0===a[e].df&&1==a[e].children.length&&!0!==a[e].children[0].df&&!a[e].children[0].Ka&&(c=a[e].children[0],c.level=0,c.parent=null,a.splice(e,1,c),c.children))for(var g=0;g<c.children.length;g++)--c.children[g].level};b.prototype.nHa=
function(a){for(var c=0;c<a.length;c++)!0===a[c].df&&!0!==a[c].HG&&(a[c]=this.H9(a[c].children,a[c]))};b.prototype.H9=function(a,c){for(var e=0;e<a.length;e++)!0===a[e].df&&(a[e]=this.H9(a[e].children,a[e]));return 1==a.length&&!0!==a[0].df?(a=a[0],a.level=c.level,a.parent=c.parent,a):c};b.prototype.sH=function(a){var c=this;this.Ud.ew||(f.v(this.Ns)?a.sort(function(e,g){var l=c.mL(e),m=c.mL(g);return l==m?e.caption.localeCompare(g.caption):m-l}):a.sort(function(e,g){return c.Ns(h.W.Mi.yV(e),h.W.Mi.yV(g),
"pivot")}))};b.prototype.mL=function(a){return!0===a.qj?0:f.model.B.C.Je?a.HG?-1:0:!0===a.df&&!0!==a.Yt?3:!0!==a.df&&!0!==a.rg?2:!0===a.df&&!0===a.Yt?1:0};b.prototype.S$=function(a){if(!this.Rn){for(var c=this.qb.indexOf(a)+1,e=0;e<a.children.length;e++)!0===a.children[e].zf&&this.S$(a.children[e]);this.qb.splice(c,a.children.length);a.zf=!1}};b.prototype.mba=function(a){if(!this.Rn){var c=this.qb.indexOf(a)+1;a.Ci&&f.v(this.Ns)||this.sH(a.children);f.Ha.insert(this.qb,a.children,c);a.zf=!0}};b.prototype.Lha=
function(a){a=this.Ud.Vj(a);return null!=a?a.uniqueName:""};b.prototype.DJa=function(a){a=this.Ud.Ee(a);return null!=a?a.uniqueName:""};b.prototype.Mg=function(a){for(var c=0;c<this.Le.length;c++)if(!this.Le[c].rg&&!this.Le[c].df&&this.Le[c].uniqueName==a)return this.Le[c]};b.prototype.$c=function(a){for(var c=0;c<this.Le.length;c++)if(this.Le[c].rg&&!this.Le[c].df&&this.Le[c].uniqueName==a)return this.Le[c]};b.prototype.Fba=function(a,c){return(void 0===c?0:c)?this.$c(a):this.Mg(a)};b.prototype.o1=
function(){return 0<this.measures.length};b.prototype.wL=function(){var a=new h.W.Toa;a.pages=this.pages.map(function(e){return h.W.cP.$R(e)});a.rows=this.rows.map(function(e){return h.W.cP.$R(e)});a.columns=this.columns.map(function(e){return h.W.cP.$R(e)});a.measures=this.measures.map(function(e){return h.W.cP.$R(e)});a.flatOrder=this.Lb?this.Lb.flatOrder:[];a.flatSort=this.Lb?this.Lb.flatSort:[];if(this.Lb){if(this.Lb.ic.Ff){var c=this.Lb.ic.La();void 0===a.vj&&(a.vj={});a.vj.row=c.sort}this.Lb.Sb.Ff&&
(c=this.Lb.Sb.La(),void 0===a.vj&&(a.vj={}),a.vj.column=c.sort)}return a};b.prototype.wT=function(a){return null==this.Lb?!0:this.eT(a.pages,this.Lb.pages.Ic())||this.eT(a.rows,this.Lb.rows.Ic())||this.eT(a.columns,this.Lb.columns.Ic())||this.eT(a.measures,this.Lb.ad())};b.prototype.eT=function(a,c){if(a.length!=c.length)return!0;for(var e=0;e<c.length;e++)if(a[e].uniqueName!=c[e].uniqueName||a[e].$!=c[e].$||a[e].ig!=c[e].ig||a[e].U0)return!0;return!1};b.prototype.R$=function(){if(!this.Rn){for(var a=
0;a<this.qb.length;a++)if(this.qb[a].df||this.qb[a].Yt||this.qb[a].Ci)this.qb[a].zf=!1;var c=[];for(a=0;a<this.qb.length;a++)0==this.qb[a].level&&c.push(this.qb[a]);this.qb.splice(0,this.qb.length);f.Ha.insert(this.qb,c,0)}};b.prototype.expandAll=function(){if(!this.Rn){this.R$();for(var a=0;a<this.qb.length;a++)(this.qb[a].df||this.qb[a].Ci)&&this.sqa(this.qb[a],a+1)}};b.prototype.sqa=function(a,c){a.zf=!0;null!=a.children&&0<a.children.length&&(this.sH(a.children),f.Ha.insert(this.qb,a.children,
c))};b.prototype.dC=function(){return null!==this.Am?this.Am.pages:null!=this.Lb?this.lR(this.Lb.pages):[]};b.prototype.vG=function(){return null!==this.Am?this.Am.rows:null!=this.Lb?this.lR(this.Lb.rows):[]};b.prototype.kG=function(){return null!==this.Am?this.Am.columns:null!=this.Lb?this.lR(this.Lb.columns):[]};b.prototype.ad=function(){return null!==this.Am?this.Am.measures:null!=this.Lb?h.W.Mi.vK(this.Lb.ad()):[]};b.prototype.dG=function(){return null!=this.Ud?this.lR(this.Ud.rc(!1),!0):[]};
b.prototype.Er=function(){return null!=this.Ud?h.W.Mi.vK(this.Ud.measures.Ic()):[]};b.prototype.lR=function(a,c){c=void 0===c?!1:c;for(var e=[],g=0;g<a.length;g++){var l=a.ea(g),m=this.Ud.Ee(l.uniqueName),n=new h.W.Mi;c||null==l.nc?(n.uniqueName=l.uniqueName,n.caption=l.caption,n.FK=l.wi.uniqueName,n.LF=l.wi.caption,n.Qc=l.Qc,n.qj=!1,n.Ci=l.qg&&c):(n.uniqueName=l.nc.uniqueName,n.caption=l.nc.caption,n.FK=l.wi.uniqueName,n.LF=l.wi.caption,n.zg=l.uniqueName,n.N0=l.caption,n.qj=!0,n.Ci=!1);n.dw=m?m.dw():
!1;n.description=l.description;e.push(n);if(l.qg&&c)for(m=0;m<l.ra.length;m++)if(0!=m){var p=l.ra.ea(m);n=new h.W.Mi;n.uniqueName=p.uniqueName;n.caption=p.caption;n.FK=l.wi.uniqueName;n.LF=l.wi.caption;n.Qc=l.Qc;n.zg=l.uniqueName;n.N0=l.caption;n.qj=!0;n.Ci=!1;n.dw=!1;n.description=p.description;e.push(n)}}return e};b.prototype.search=function(a){a=a.toLowerCase();if(this.ld!=a){this.ld=a;this.az=[];for(var c=this.Le.length,e=0;e<c;e++){var g=this.Le[e];g.df||g.rg&&this.Cy&&!g.Ka||!f.O.contains(g.caption,
a)||(g.ld=a,this.Ora(g,this.az),this.az.push(g))}}};b.prototype.Ora=function(a,c){if(a.parent&&0>c.indexOf(a.parent)){for(var e=[];null!=a.parent;)e.push(a.parent),a=a.parent;e=e.reverse();for(a=0;a<e.length;a++)0>c.indexOf(e[a])&&c.push(e[a])}};b.prototype.Lx=function(){this.ld="";this.az=null};b.prototype.nD=function(a){this.Lb=a};q.Object.defineProperties(b.prototype,{Cy:{configurable:!0,enumerable:!0,get:function(){var a=this.pn;return a==f.u.i.oa.xh&&!f.model.B.C.Je||a==f.u.i.oa.Pp&&!f.model.B.C.Je||
a==f.u.i.oa.JSON&&!f.model.B.C.Je||a==f.u.i.oa.Gf||a==f.u.i.oa.API}},iT:{configurable:!0,enumerable:!0,get:function(){for(var a=0;a<this.qb.length;a++)if((this.qb[a].df||this.qb[a].Yt||this.qb[a].Ci)&&!this.qb[a].zf)return!0;return!1}},Xca:{configurable:!0,enumerable:!0,get:function(){for(var a=0;a<this.qb.length;a++)if(this.qb[a].df||this.qb[a].Yt||this.qb[a].Ci)return!0;return!1}},wBa:{configurable:!0,enumerable:!0,get:function(){return f.model.Ta.U().Ga.fa.Ba!=f.u.i.oa.Nc}},Rn:{configurable:!0,
enumerable:!0,get:function(){return!f.ha(this.ld)}},vT:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.jha||this.Le&&50<this.Le.length}},sC:{configurable:!0,enumerable:!0,get:function(){return(!f.model.Ta.U().Ga.fa.Hc||f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.API)&&f.model.B.C.eha||f.model.B.C.zv&&f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.Nc}},ZS:{configurable:!0,enumerable:!0,get:function(){return this.sC&&!this.Wc.ob}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.Rn?this.az:
this.qb}},Wc:{configurable:!0,enumerable:!0,get:function(){return this.Ud}}});b.z_=!1;d.Q7=b})(h.Rs||(h.Rs={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=y.Fc.call(this)||this;e.type="pivot";e.wJ=!1;e.Gx=function(g){return e.hu(g)};e.Hx=function(g){return e.iu(g)};e.Ix=function(){return e.mM()};e.model=new d.Q7;e.wJ=c;e.view=e.Fe?new d.hoa:new d.goa(e,a);e.view.N(y.da.CLOSED,function(g){return e.Da(g)});e.hd=[e.view.Uf,e.view.ef,e.view.Af,e.view.Ob];e.view.Ah&&e.view.Ah.N(A.sd.Xe,function(){return e.MC()});e.view.ze&&e.view.ze.N(A.sd.Xe,function(){return e.Sr()});null!=e.view.Nf&&
e.view.Nf.N(y.da.Qd,function(g){return e.W1(g)});e.view.ab&&(e.view.ab.F.N("click",function(g){return e.t2(g)}),e.view.ab.F.N("keydown",function(g){return e.u2(g)}),e.view.ab.Ar({Xl:function(g){return e.iEa(g)},e2:function(g,l){return e.cfa(g,l)},Wl:function(g,l){return e.cfa(g,l)},ml:function(g,l,m,n){return e.ml(g,l,m,n)},Fy:"li"}),e.view.ab.F.$k());a={Xl:function(g,l,m,n){return e.Xl(g,l,m,n)},Wl:function(g,l,m,n){return e.Wl(g,l,m,n)},ml:function(g,l,m,n){return e.ml(g,l,m,n)},Fy:"li",scroll:!0};
e.view.Uf&&(e.view.Uf.Ar(a),e.view.Uf.F.N("dblclick",function(g){return e.gU(g)}),e.view.Uf.F.N("keydown",function(g){return e.hU(g,e.view.Uf)}),e.view.Uf.F.$k());e.view.ef&&(e.view.ef.Ar(a),e.view.ef.F.N("dblclick",function(g){return e.gU(g)}),e.view.ef.F.N("keydown",function(g){return e.hU(g,e.view.ef)}),e.view.ef.F.$k());e.view.Af&&(e.view.Af.Ar(a),e.view.Af.F.N("dblclick",function(g){return e.gU(g)}),e.view.Af.F.N("keydown",function(g){return e.hU(g,e.view.Af)}),e.view.Af.F.$k());e.view.Ob&&(e.view.Ob.F.N("click",
function(g){return e.GEa(g)}),e.view.Ob.F.N("dblclick",function(g){return e.gU(g)}),e.view.Ob.F.N("keydown",function(g){return e.hU(g,e.view.Ob)}),e.view.Ob.Ar(a),e.view.Ob.F.$k());e.view.Vh&&e.view.Vh.N(A.sd.Xe,function(){return e.$T()});e.view.hB&&e.view.hB.N(A.sd.Xe,function(){return e.$T()});e.view.it&&e.view.it.N(A.sd.Xe,function(){return e.nDa()});e.view.Wd&&(e.view.Wd.VU(500),e.view.Wd.N(A.Pi.Qw,function(){return e.sM()}));e.view.ee&&(e.view.ee.N("click",function(){return e.Tr()}),e.view.ee.N("keydown",
function(g){return e.Ry(g,!1)}));e.view.Gi&&(e.view.Gi.N("click",function(){return e.Ur()}),e.view.Gi.N("keydown",function(g){return e.Ry(g,!0)}));return e}u(b,y.Fc);b.prototype.Sr=function(){this.Fe?f.Ug.instance.nK():this.view.close()};b.prototype.MC=function(){this.ae();this.view.close()};b.prototype.Ry=function(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ur():this.Tr()};b.prototype.Tr=function(){this.view.Ie.Y("fm-search-opened");this.view.Wd.F.focus()};b.prototype.Ur=function(){this.view.Ie.ud("fm-search-opened");
this.view.Wd.clear();this.view.ee.F.focus()};b.prototype.sM=function(){this.model.search(this.view.Wd.yi());this.view.ab.F.Ua("fm-searched",this.model.Rn);this.view.ab.Cf(this.model.Ma);this.Zm(this.view.ab);this.view.it&&this.view.it.isVisible(this.model.Xca&&!this.model.Rn)};b.prototype.ae=function(){var a=this.model.wL();this.model.wT(a)&&(a=f.u.I.Zq.tb(f.model.bb.SliceValueObject.tb(a.La()),this.model.Wc),this.Fe&&(a.M1=!1,f.Ug.instance.bD(),this.model.nD(a)),f.model.Ta.U().ae(a))};b.prototype.hu=
function(a){f.model.Ta.U().mb(k.Ka.yj.Az,this.Gx);this.model.hu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.iu=function(a){f.model.Ta.U().mb(k.Ka.yj.Bz,this.Hx);this.model.iu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.mM=function(){this.view.lN=!1;f.model.Ta.U().mb(k.Ka.yj.Cz,this.Ix);this.view.ab.focus({preventScroll:!0})};b.prototype.$T=function(){this.bH()};b.prototype.nDa=function(){this.model.iT?this.model.expandAll():this.model.R$();this.Zm(this.view.ab);this.view.Df()};b.prototype.gU=
function(a){var c=A.Aa.Pb(a.target).closest("ul");null!=c&&(c=this.Uv(c),a=A.Aa.Pb(a.target).closest("li"),null!=a&&(a=parseInt(a.attr("data-index")),this.LU(c,a)))};b.prototype.GEa=function(a){a=A.Aa.Pb(a.target);var c=a.closest("li");if(null!=c){c=parseInt(c.attr("data-index"));var e=this.model.measures[c];a.Lc("fm-aggr-display")?this.view.Nf.Xn(e,a,c):a.Lc("fm-calc-display")&&this.bH(e.uniqueName)}};b.prototype.W1=function(a){this.ez(a.data.RK,a.data.TY)};b.prototype.ez=function(a,c){a.$=c.$;a.caption=
f.model.B.C.iz?f.O.bind(c.zV,a.name):a.name;this.view.Ob.Kq(a);var e=this.model.Ma.find(function(g){return g.uniqueName===a.uniqueName});null!=e&&(this.model.Cy&&null!=e.Dg&&(e=e.Dg),e.$=a.$,e.caption=a.caption,this.view.ab.Kq(function(g){return g.uniqueName===e.uniqueName}));this.Fe&&this.ae()};b.prototype.bH=function(a){a=void 0===a?null:a;this.view.lN=!0;f.model.Ta.U().Da(new k.Ka.WV(a));f.model.Ta.U().N(k.Ka.yj.Az,this.Gx);f.model.Ta.U().N(k.Ka.yj.Cz,this.Ix);f.ha(a)||f.model.Ta.U().N(k.Ka.yj.Bz,
this.Hx)};b.prototype.my=function(a){for(var c=this,e=[],g={},l=0;l<a.Tc.length;g={xN:g.xN},l++)g.xN={caption:a.fK[l],$:a.Tc[l]},void 0!=a.vv&&(g.xN.zV=a.vv[l]),e.push({label:f.u.i.ca.jF(a.Tc[l]),isSelected:a.Tc[l]==a.$,handler:function(m){return function(){return c.ez(a,m.xN)}}(g)});return e};b.prototype.hU=function(a,c){var e=this;if(32===a.keyCode||13===a.keyCode){if(this.view.xi){var g=c.Mt();if(f.v(g))return;var l=[];!0!==g.data.yT&&l.push({label:f.model.A.j.lW,handler:function(){return e.sh(0,
g.data,g.index,c)}});0<g.index&&l.push({label:f.model.A.j.w6,handler:function(){return e.sh(4,g.data,g.index,c)}});g.index<c.uc().length-1&&l.push({label:f.model.A.j.r6,handler:function(){return e.sh(5,g.data,g.index,c)}});g.data.rg&&!g.data.Ka&&l.push({label:f.model.A.j.kW,submenu:this.my(g.data)});c!=this.view.ef&&this.Xt(g.data,c,this.view.ef)&&l.push({label:f.model.A.j.u6,handler:function(){return e.sh(6,g.data,g.index,c)}});c!=this.view.Af&&this.Xt(g.data,c,this.view.Af)&&l.push({label:f.model.A.j.s6,
handler:function(){return e.sh(7,g.data,g.index,c)}});c!=this.view.Uf&&this.Xt(g.data,c,this.view.Uf)&&l.push({label:f.model.A.j.t6,handler:function(){return e.sh(8,g.data,g.index,c)}});c!=this.view.Ob&&this.Xt(g.data,c,this.view.Ob)&&l.push({label:f.model.A.j.v6,handler:function(){return e.sh(9,g.data.Dg,g.index,c)}});g.data.Ka&&l.push({label:f.model.A.j.mW,handler:function(){return e.sh(10,g.data,g.index)},preventFocusRestore:!0});this.view.xi.Xn(this.view.F,l,g.element.Sf(),{top:10,left:10})}a.preventDefault()}};
b.prototype.u2=function(a){var c=this;if(32===a.keyCode||13===a.keyCode){if(this.view.xi){var e=this.view.ab.Mt();if(f.v(e))return;if(e.data.df){this.sh(2,e.data,e.index);return}var g=[];e.data.Ci&&g.push({label:e.data.zf?f.model.A.j.Kka:f.model.A.j.Lka,handler:function(){return c.sh(2,e.data,e.index)}});this.c1(e.data)&&g.push({label:f.model.A.j.lW,handler:function(){return c.sh(1,e.data,e.index)}});this.Xt(e.data,this.view.ab,this.view.ef)&&g.push({label:f.model.A.j.u6,handler:function(){return c.sh(6,
e.data,e.index,c.view.ab)}});this.Xt(e.data,this.view.ab,this.view.Af)&&g.push({label:f.model.A.j.s6,handler:function(){return c.sh(7,e.data,e.index,c.view.ab)}});this.Xt(e.data,this.view.ab,this.view.Uf)&&g.push({label:f.model.A.j.t6,handler:function(){return c.sh(8,e.data,e.index,c.view.ab)}});if(this.Xt(e.data,this.view.ab,this.view.Ob)){var l={label:f.model.A.j.v6,handler:function(){return c.sh(9,e.data.Dg,e.index,c.view.ab)}};e.data.Qda?g.splice(this.c1(e.data)?1:0,0,l):g.push(l)}e.data.Ka&&
g.push({label:f.model.A.j.mW,handler:function(){return c.sh(10,e.data,e.index)},preventFocusRestore:!0});this.view.xi.Xn(this.view.F,g,e.element.Sf(),{top:10,left:10})}a.preventDefault()}};b.prototype.sh=function(a,c,e,g){g=void 0===g?null:g;var l=void 0===l?null:l;1==a?(1==c.rd&&(this.model.Hi(c,!1),this.Ft(c)),null!=c.Dg&&1==c.Dg.rd&&(this.model.Hi(c.Dg,!1),this.Ft(c.Dg)),this.R4(this.view.ab,e),this.ms(),this.Fe&&this.ae()):0==a?(this.LU(g,e),g.gi(Math.min(e,g.uc().length-1))):6==a?(g==this.view.ab?
this.vx(g,this.view.ef,e,this.model.rows.length):this.Qr(g,this.view.ef,e,this.model.rows.length),g.gi(Math.min(e,g.uc().length-1))):7==a?(g==this.view.ab?this.vx(g,this.view.Af,e,this.model.columns.length):this.Qr(g,this.view.Af,e,this.model.columns.length),g.gi(Math.min(e,g.uc().length-1))):8==a?(g==this.view.ab?this.vx(g,this.view.Uf,e,this.model.pages.length):this.Qr(g,this.view.Uf,e,this.model.pages.length),g.gi(Math.min(e,g.uc().length-1))):9==a?(g==this.view.ab?this.vx(g,this.view.Ob,e,this.model.measures.length):
this.Qr(g,this.view.Ob,e,this.model.measures.length),g.gi(Math.min(e,g.uc().length-1))):4==a?(this.Qr(g,g,e,e-1),g.gi(e-1)):5==a?(this.Qr(g,g,e,e+2),g.gi(e+1)):2==a?(c.zf?this.model.S$(c):this.model.mba(c),this.Zm(this.view.ab),this.view.Df()):10==a?this.bH(c.uniqueName):11==a&&this.view.Nf.Xn(c,l.find(".fm-aggr-display"))};b.prototype.t2=function(a){var c=this.view.ab.MB(a.target);if(!f.v(c))if(a=A.Aa.Pb(a.target),a.Lc("fm-aggr-display"))this.view.Nf.Xn(c.data,a);else if(a.Lc("fm-calc-display"))this.sh(10,
c.data,c.index);else if(c.data.df||c.data.Ci&&!a.Lc("fm-moreicon-display"))this.sh(2,c.data,c.index);else{if(this.c1(c.data))1==c.data.rd&&(this.model.Hi(c.data,!1),this.Ft(c.data)),null!=c.data.Dg&&1==c.data.Dg.rd&&(this.model.Hi(c.data.Dg,!1),this.Ft(c.data.Dg));else if(c.data.rg&&c.data.dw){this.model.Hi(c.data,!0);a=[];for(var e in c.data)c.data[e]instanceof h.W.Mi&&a.push(e);e=x.Mc.Vi(c.data,a);this.model.measures.push(e);this.Zm(this.view.Ob)}else if(c.data.Dg&&c.data.dw&&c.data.Dg.type!=f.u.i.Ja.sc&&
c.data.Dg.type!=f.u.i.Ja.Oa){this.model.Hi(c.data.Dg,!0);a=[];for(e in c.data.Dg)c.data.Dg[e]instanceof h.W.Mi&&a.push(e);e=x.Mc.Vi(c.data.Dg,a);this.model.measures.push(e);this.Zm(this.view.Ob)}else{if(c.data.qj)for(c.data.parent.rd&&this.Ft(c.data.parent),e=0;e<c.data.parent.children.length;e++)a=c.data.parent.children[e],a.uniqueName!=c.data.uniqueName&&(a.rd&&this.Ft(a),a.rd=!1);this.model.Hi(c.data,!0);this.model.rows.push(c.data);this.Zm(this.view.ef)}this.R4(this.view.ab,c.index);this.ms();
this.Fe&&this.ae()}};b.prototype.R4=function(a,c){a.ls(c);c=a.uc()[c];null!=c.parent&&this.tN(a,c.parent);if(c.Ci)for(var e=0;e<c.children.length;e++)a.Kq(c.children[e]);if(c.qj)for(e=0;e<c.parent.children.length;e++)a.Kq(c.parent.children[e])};b.prototype.tN=function(a,c,e){a.Kq((void 0===e?null:e)||c);c.parent&&this.tN(a,c.parent);if(c.Ci)for(e=0;e<c.children.length;e++)a.Kq(c.children[e]);if(c.qj)for(e=0;e<c.parent.children.length;e++)a.Kq(c.parent.children[e])};b.prototype.qw=function(){return!0};
b.prototype.iEa=function(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Uv(a.closest("ul"));a!=this.view.ab&&this.LU(a,c)}};b.prototype.cfa=function(a,c){a&&a.closest("ul")&&(a=this.Uv(a.closest("ul")),a!=this.view.ab&&(c&&c.Y("fm-drag-remove"),a.F.Lc("fm-droppable")?c&&c.Y("fm-droppable-valid"):c&&c.Y("fm-droppable-invalid")))};b.prototype.Wl=function(a,c,e,g){if(g instanceof MouseEvent){var l=A.Aa.Pb(g.target);g=g.clientY}else g=g.changedTouches[0],l=A.Aa.Pb(document.elementFromPoint(g.clientX,
g.clientY)),g=g.clientY;if(!l.Lc("fm-drop-indicator")&&(this.ql(),c&&(c.ud("fm-no-drop"),c.ud("fm-drag-remove")),a&&a.closest("ul"))){e instanceof A.hd.zh||(e=this.Uv(e));var m=this.Uv(a.closest("ul"));m.F.Lc("fm-droppable")&&(this.Xt(this.gca(a,m),m,e)?this.qD(l,g):c.Y("fm-no-drop"))}};b.prototype.c1=function(a){return a.rd||a.Dg&&a.Dg.rd};b.prototype.Xt=function(a,c,e){return a.yT&&e!=this.view.Af&&e!=this.view.ef||!1===a.dw&&e==this.view.Ob||0==this.model.Cy&&(e!=this.view.Ob&&(a.rg||a.Bg)||e==
this.view.Ob&&!a.rg&&!a.Bg)||a.Ka&&e!=this.view.Ob||a.children&&0<a.children.length&&e==this.view.Ob?!1:a.Ka&&e==this.view.Ob&&c==this.view.Ob?!0:a.Ka&&e==this.view.Ob?f.v(this.view.Ob.uc().find(function(g){return g.uniqueName===a.uniqueName})):c==this.view.ab&&null!=e.uc().find(function(g){return g.uniqueName===a.uniqueName})&&e!=this.view.Ob?!1:!0};b.prototype.gca=function(a,c){a=parseInt(a.attr("data-index"));return c.uc()[a]};b.prototype.ml=function(a,c){this.ql();c&&(c.ud("fm-no-drop"),c.ud("fm-drag-remove"));
if(a&&a.closest("ul")&&c){c.ud("fm-droppable-valid");c.ud("fm-droppable-invalid");var e=this.Uv(a.closest("ul"));a.Lc("fm-values")||e==this.view.ab||c.Y("fm-drag-remove")}};b.prototype.Xl=function(a,c){if(null!=this.od)if(a&&a.closest("ul")){c=c instanceof A.hd.zh?c:this.Uv(c);var e=this.Uv(a.closest("ul"));if(0==this.Xt(this.gca(a,e),e,c))this.ql();else{var g=c.uc().length;this.od.element.previousElementSibling?g=parseInt(this.od.element.previousElementSibling.getAttribute("data-index"))+1:this.od.element.nextElementSibling&&
(g=parseInt(this.od.element.nextElementSibling.getAttribute("data-index")));this.ql();a=parseInt(a.attr("data-index"));e==this.view.ab&&c!=this.view.ab?this.vx(e,c,a,g):this.Qr(e,c,a,g);a=c.F.element.scrollTop;this.mia();c.F.Dw(a);c.NM(g)}}else this.ql()};b.prototype.ju=function(a){if(a&&a.closest("ul")){var c=parseInt(a.attr("data-index"));a=this.Uv(a.closest("ul"));a!=this.view.ab&&this.LU(a,c)}};b.prototype.qD=function(a,c){var e=a.closest("li");null!=e?(this.od=this.Lv(),a=e.getBoundingClientRect(),
c>a.top+.75*a.height?e.after(this.od):e.before(this.od)):(c=a.closest("ul"),null!=c&&(this.od=this.Lv(),c.append(this.od)))};b.prototype.Lv=function(){return new A.Aa("div","fm-drop-indicator")};b.prototype.ql=function(){this.od&&(this.od.sg(!0),this.od=null)};b.prototype.Qr=function(a,c,e,g){var l=a.uc()[e];a==c?(a=c.uc(),e<g&&--g,a.splice(g,0,a.splice(e,1)[0])):(l=a.uc()[e],a.uc().splice(e,1),a.Lq(),c==this.view.Ob&&(this.model.Hi(l,!1),l=this.model.$c(this.model.DJa(l.qj?l.zg:l.uniqueName)),null!=
l.WS&&this.model.Hi(l.WS,!1)),a==this.view.Ob&&(-1==a.uc().findIndex(function(m){return m.uniqueName===l.uniqueName})&&this.model.Hi(l,!1),l=this.model.Mg(this.model.Lha(l.uniqueName)),null!=l.Dg&&this.model.Hi(l.Dg,!1)),null!=l&&(this.model.Hi(l,!0),this.Ft(l,null,!0),c.uc().splice(g,0,l)));this.Zm(c);this.ms();this.Fe&&this.ae()};b.prototype.vx=function(a,c,e,g){var l=a.uc()[e];if(l.qj){l.parent.rd&&this.Ft(l.parent);for(e=0;e<l.parent.children.length;e++){var m=l.parent.children[e];m.uniqueName!=
l.uniqueName&&(m.rd&&this.Ft(m),m.rd=!1)}this.tN(this.view.ab,l)}this.model.Cy&&c==this.view.Ob&&null!=l.Dg&&(l=l.Dg);l.rd&&!l.rg?(this.model.Hi(l,!1),this.Ft(l,a,!0),this.model.Hi(l,!0)):(this.model.Hi(l,!0),a=this.view.ab.uc().findIndex(function(p){return p.uniqueName===l.uniqueName}),this.R4(this.view.ab,a));if(this.model.Cy&&c==this.view.Ob&&l.rg){a=[];for(var n in l)l[n]instanceof h.W.Mi&&a.push(n);l=x.Mc.Vi(l,a)}c.uc().splice(g,0,l);this.Zm(c);this.ms();this.Fe&&this.ae()};b.prototype.LU=function(a,
c){if(!(a.uc().length<=c)){var e=a.uc()[c];if(!e.yT){a.uc().splice(c,1);this.Zm(a);if(!(e.rg&&-1<this.view.Ob.uc().findIndex(function(l){return l.uniqueName===e.uniqueName}))){a=this.model.Fba(e.uniqueName,e.rg);if(null!=a){this.model.Hi(a,!1);var g=null!=a.WS?a.WS:a;this.tN(this.view.ab,g,function(l){return l.uniqueName===g.uniqueName});a.qj&&(this.model.Hi(a.parent,!1),this.tN(this.view.ab,a.parent))}this.ms()}this.Fe&&this.ae()}}};b.prototype.Ft=function(a,c,e){c=void 0===c?null:c;e=void 0===e?
!1:e;for(var g=-1,l=0;l<this.hd.length;l++)if(this.hd[l]!=c&&(this.hd[l]!=this.view.Ob||!e))for(var m=!0;m||-1<g;)m=!1,g=this.hd[l].uc().findIndex(function(n){return n.uniqueName===a.uniqueName||n.zg===a.uniqueName}),-1==g&&(g=this.hd[l].uc().findIndex(function(n){return n.uniqueName===a.uniqueName||n.zg===a.uniqueName})),-1<g&&(this.hd[l].uc().splice(g,1),this.Zm(this.hd[l]))};b.prototype.Uv=function(a){return a.element==this.view.ab.F.element?this.view.ab:a.element==this.view.Uf.F.element?this.view.Uf:
a.element==this.view.ef.F.element?this.view.ef:a.element==this.view.Af.F.element?this.view.Af:a.element==this.view.Ob.F.element?this.view.Ob:null};b.prototype.update=function(a,c,e,g){(void 0===g||g)&&this.model.update(a,c,void 0===e?"":e,h.mo.PR);this.cm(!0)};b.prototype.ms=function(){this.view.Ah&&this.view.Ah.xp(this.model.o1())};b.prototype.cm=function(a){var c=this;a=void 0===a?!1:a;this.view.reset&&this.view.reset();this.view.Vh&&(this.view.Vh.isVisible(this.model.sC),this.view.Vh.xp(this.model.ZS));
this.view.hB&&(this.view.hB.isVisible(this.model.sC),this.view.hB.xp(this.model.ZS));this.view.ab&&this.view.ab.Cf(this.model.Ma,!1);this.view.Uf&&this.view.Uf.Cf(this.model.pages,!1);this.view.ef&&this.view.ef.Cf(this.model.rows,!1);this.view.Af&&this.view.Af.Cf(this.model.columns,!1);this.view.Ob&&this.view.Ob.Cf(this.model.measures,!1);this.view.it&&this.view.it.isVisible(this.model.Xca);this.view.Ie&&this.view.Ie.isVisible(this.model.vT);this.view.Wd&&(this.view.Wd.clear(!1),this.model.Lx());
this.view.Df();this.view.F.requestAnimationFrame(function(){c.mia();a&&f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.ZD))})};b.prototype.Zm=function(a){var c=this;a.Lq();var e={qw:function(l){return c.qw(l)},Bn:function(l){return c.view.Bn(l)}};x.Bd().Vl&&(e.JS=".fm-drag-handle");var g=a.F.find("li",!0);if(a==this.view.ab)for(a=0;a<g.length;a++)g[a].Lc("fm-folder")&&!g[a].Lc("fm-level-folder")||g[a].draggable(e);else for(a.Ar({Xl:function(l,m,n,p){return c.Xl(l,m,n,p)},Wl:function(l,m,n,p){return c.Wl(l,
m,n,p)},ml:function(l,m,n,p){return c.ml(l,m,n,p)},Fy:"li",scroll:!0}),e.ju=function(l){return c.ju(l)},a=0;a<g.length;a++)g[a].draggable(e)};b.prototype.mia=function(){try{this.ms(),this.Zm(this.view.ab),this.Zm(this.view.Uf),this.Zm(this.view.ef),this.Zm(this.view.Af),this.Zm(this.view.Ob)}catch(a){}};q.Object.defineProperties(b.prototype,{Fe:{configurable:!0,enumerable:!0,get:function(){return this.wJ}},iT:{configurable:!0,enumerable:!0,get:function(){return this.model.iT}}});d.P7=b})(h.Rs||(h.Rs=
{}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=A.Vb.mh.call(this,c)||this;e.xD=0;e.controller=a;e.Y("fm-pivot-fields");e.te();e.F.$k();e.F.Fi({lV:[A.Fi.Ph.ji,A.Fi.Ph.bE,A.Fi.Ph.tE],jR:k.Hb.zb.F,WY:!0,resize:function(g){return e.uM(g)},complete:function(){return e.Go()}});return e}u(b,A.Vb.mh);b.prototype.uM=function(a){a.rD==A.Fi.Ph.bE||a.rD==A.Fi.Ph.tE?(this.tj(a.size.width+(a.size.width-a.c3.width)),this.Go()):a.rD==A.Fi.Ph.ji&&this.yp(a.size.height);this.eB()};b.prototype.te=
function(){var a=this,c=new A.Ca("div","fm-popup-header fm-ui-row");this.V(c);var e=new A.Ca("div","fm-ui-col fm-vam");c.V(e);this.jw=new A.Oc(f.model.A.j.Sw);this.jw.Y("fm-popup-title");e.V(this.jw);this.iw=new A.Oc(f.model.A.j.B6);this.iw.Y("fm-popup-subtitle");e.V(this.iw);e=new A.Ca("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");c.V(e);this.Vh=new A.Jf("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");this.Vh.Za(f.model.A.j.Qz);e.V(this.Vh);this.ze=new A.Jf;this.ze.Za(f.model.A.j.Jk);this.Ah=
new A.Jf("fm-ui-btn-dark");this.Ah.Za(f.model.A.j.Ow);x.Oi.wC||x.Oi.Qn?(e.V(this.ze),e.V(this.Ah)):(e.V(this.Ah),e.V(this.ze));c=new A.Ca("div","fm-popup-content");this.V(c);var g=new A.Ca("div","fm-ui-row");c.V(g);e=new A.Ca("div","fm-ui-col-3");g.V(e);var l=new A.Ca("div","fm-list-wrap fm-list-wrap-all");e.V(l);var m=new A.Ca("div","fm-list-header fm-list-header-wide");l.V(m);e=new A.Ca("div","fm-list-header-label-wrap");m.V(e);this.$L=new A.Oc(f.model.A.j.Hu);e.V(this.$L);this.it=new A.sd("fm-ui-link-btn fm-btn-collapse-expand-all");
this.it.ud("fm-ui-btn");this.it.Za(f.model.A.j.x6);e.V(this.it);this.Ie=new A.Ca("div","fm-search-wrap");m.V(this.Ie);this.ee=new A.Ca("a","fm-search-btn");this.ee.ue(0);this.ee.$j("button");this.Ie.V(this.ee);e=new A.Ca("span","fm-ui-icon fm-icon-act_search");this.ee.V(e);this.Wd=new A.Pi;this.Wd.Y("fm-search-inp");this.Ie.V(this.Wd);this.Gi=new A.Ca("span","fm-close-search fm-ui-icon fm-icon-act_close");this.Gi.ue(0);this.Gi.$j("button");this.Ie.V(this.Gi);m=new A.Ca("div","fm-list-content");l.V(m);
this.ab=new A.hd.zh;this.ab.ue();this.ab.Y("fm-lst-hierarchies");this.ab.Lh(function(n,p){return a.gD(n,p)});this.ab.dV(function(n){return n.caption});m.V(this.ab);e=new A.Ca("div","fm-ui-col-3");g.V(e);l=new A.Ca("div","fm-list-wrap fm-list-wrap-pages");e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.bM=new A.Oc(f.model.A.j.Uq);m.V(this.bM);m=new A.Ca("div","fm-list-content");l.V(m);this.Uf=new A.hd.zh;this.Uf.ue();this.Uf.Y("fm-lst-pages");this.Uf.Lh(function(n,p){return a.Cr(n,p)});this.Uf.Xf("caption");
m.V(this.Uf);this.IT=new A.Oc(f.model.A.j.Rw);this.IT.Y("fm-prompt");this.IT.Cm();l.V(this.IT);l=new A.Ca("div","fm-list-wrap fm-list-wrap-rows");e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.cM=new A.Oc(f.model.A.j.$D);m.V(this.cM);m=new A.Ca("div","fm-list-content");l.V(m);this.ef=new A.hd.zh;this.ef.ue();this.ef.Y("fm-lst-rows");this.ef.Lh(function(n,p){return a.Cr(n,p)});this.ef.Xf("caption");m.V(this.ef);this.JT=new A.Oc(f.model.A.j.Rw);this.JT.Y("fm-prompt");this.JT.Cm();l.V(this.JT);
e=new A.Ca("div","fm-ui-col-3");g.V(e);l=new A.Ca("div","fm-list-wrap fm-list-wrap-columns");e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.ZL=new A.Oc(f.model.A.j.YD);m.V(this.ZL);m=new A.Ca("div","fm-list-content");l.V(m);this.Af=new A.hd.zh;this.Af.ue();this.Af.Y("fm-lst-columns");this.Af.Lh(function(n,p){return a.Cr(n,p)});this.Af.Xf("caption");m.V(this.Af);this.FT=new A.Oc(f.model.A.j.Rw);this.FT.Y("fm-prompt");this.FT.Cm();l.V(this.FT);l=new A.Ca("div","fm-list-wrap fm-list-wrap-measures");
e.V(l);m=new A.Ca("div","fm-list-header");l.V(m);this.aM=new A.Oc(f.model.A.j.Rz);m.V(this.aM);this.hB=new A.Jf("fm-btn-add-measure-2 fm-icon-act_calc");m.V(this.hB);m=new A.Ca("div","fm-list-content");l.V(m);this.Ob=new A.hd.zh;this.Ob.ue();this.Ob.Y("fm-lst-measures");this.Ob.Lh(function(n,p){return a.Cr(n,p)});this.Ob.Xf("caption");m.V(this.Ob);this.HT=new A.Oc(f.model.A.j.Rw);this.HT.Y("fm-prompt");this.HT.Cm();l.V(this.HT);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();c.V(this.Nf);
this.xi=new A.No.wE(c.F);this.xi.$a();c.V(this.xi)};b.prototype.Df=function(){this.jw.Za(f.model.A.j.Sw);this.iw.Za(f.model.A.j.B6);this.ze.Za(f.model.A.j.Jk);this.Ah.Za(f.model.A.j.Ow);this.$L.Za(f.model.A.j.Hu);this.bM.Za(f.model.A.j.Uq);this.cM.Za(f.model.A.j.$D);this.ZL.Za(f.model.A.j.YD);this.aM.Za(f.model.A.j.Rz);this.Vh.Za(f.model.A.j.Qz);this.Vh.Mh(f.model.A.j.Qz);this.hB.Mh(f.model.A.j.Qz);this.IT.Za(f.model.A.j.Rw);this.JT.Za(f.model.A.j.Rw);this.FT.Za(f.model.A.j.Rw);this.HT.Za(f.model.A.j.Rw);
this.it.Za(this.controller.iT?f.model.A.j.Nka:f.model.A.j.x6);this.hc(f.model.A.j.Sw);this.jw.Cm();this.iw.Cm();this.ab.hc(f.model.A.j.Hu);this.Uf.hc(f.model.A.j.Uq);this.ef.hc(f.model.A.j.$D);this.Af.hc(f.model.A.j.YD);this.Ob.hc(f.model.A.j.Rz);this.ee.hc(f.model.A.j.$N);this.Wd.hc(f.model.A.j.$N);this.Gi.hc(f.model.A.j.A6)};b.prototype.Cr=function(a,c){var e=new h.Vf.qW;e.setData(a);e.am(c);return e};b.prototype.gD=function(a,c){a=new h.Vf.bP(a,c);a.am(c);return a};b.prototype.reset=function(){this.Ie.ud("fm-search-opened");
this.Wd.clear(!1)};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));var e=new A.Aa("span","fm-label");e.text(a.text());c.V(e);c.V(new A.Aa("i","fm-drag-icon"));return c};b.prototype.eB=function(){A.Vb.mh.prototype.eB.call(this,!0)};d.goa=b})(h.Rs||(h.Rs={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vb.ye.call(this)||this;a.xD=0;a.Y("fm-pivot-fields");a.Y("fm-instant-view");a.te();a.F.$k();return a}u(b,A.Vb.ye);b.prototype.te=function(){var a=this,c=new A.Ca("div","fm-popup-content");this.V(c);var e=new A.Ca("div","fm-list-wrap fm-list-wrap-all");c.V(e);var g=new A.Ca("div","fm-list-header fm-list-header-wide");e.V(g);var l=new A.Ca("div","fm-list-header-label-wrap");g.V(l);this.$L=new A.Oc(f.model.A.j.Hu);l.V(this.$L);this.Vh=
new A.Jf("fm-btn-add-measure");g.V(this.Vh);this.ze=new A.Jf("fm-btn-close-fields");g.V(this.ze);g=new A.Ca("div","fm-list-content");e.V(g);this.ab=new A.hd.zh;this.ab.Y("fm-lst-hierarchies");this.ab.ue();this.ab.Lh(function(m,n){return a.gD(m,n)});this.ab.Xf("caption");g.V(this.ab);l=new A.Ca("div","fm-ui-row");c.V(l);g=new A.Ca("div","fm-ui-col-2");l.V(g);e=new A.Ca("div","fm-list-wrap fm-list-wrap-pages");g.V(e);g=new A.Ca("div","fm-list-header");e.V(g);this.bM=new A.Oc(f.model.A.j.Uq);g.V(this.bM);
g=new A.Ca("div","fm-list-content");e.V(g);this.Uf=new A.hd.zh;this.Uf.Y("fm-lst-pages");this.Uf.ue();this.Uf.Lh(function(m,n){return a.Cr(m,n)});this.Uf.Xf("caption");g.V(this.Uf);g=new A.Ca("div","fm-ui-col-2");l.V(g);e=new A.Ca("div","fm-list-wrap fm-list-wrap-columns");g.V(e);g=new A.Ca("div","fm-list-header");e.V(g);this.ZL=new A.Oc(f.model.A.j.YD);g.V(this.ZL);g=new A.Ca("div","fm-list-content");e.V(g);this.Af=new A.hd.zh;this.Af.Y("fm-lst-columns");this.Af.ue();this.Af.Lh(function(m,n){return a.Cr(m,
n)});this.Af.Xf("caption");g.V(this.Af);l=new A.Ca("div","fm-ui-row");c.V(l);e=new A.Ca("div","fm-list-wrap fm-list-wrap-rows");l.V(e);g=new A.Ca("div","fm-list-header");e.V(g);this.cM=new A.Oc(f.model.A.j.$D);g.V(this.cM);g=new A.Ca("div","fm-list-content");e.V(g);this.ef=new A.hd.zh;this.ef.Y("fm-lst-rows");this.ef.ue();this.ef.Lh(function(m,n){return a.Cr(m,n)});this.ef.Xf("caption");g.V(this.ef);l=new A.Ca("div","fm-ui-row");c.V(l);e=new A.Ca("div","fm-list-wrap fm-list-wrap-measures");l.V(e);
g=new A.Ca("div","fm-list-header");e.V(g);this.aM=new A.Oc(f.model.A.j.Rz);g.V(this.aM);g=new A.Ca("div","fm-list-content");e.V(g);this.Ob=new A.hd.zh;this.Ob.Y("fm-lst-measures");this.Ob.ue();this.Ob.Lh(function(m,n){return a.Cr(m,n)});this.Ob.Xf("caption");g.V(this.Ob);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();c.V(this.Nf);this.xi=new A.No.wE(c.F);this.xi.$a();c.V(this.xi)};b.prototype.Df=function(){this.$L.Za(f.model.A.j.Hu);this.bM.Za(f.model.A.j.Uq);this.cM.Za(f.model.A.j.$D);
this.ZL.Za(f.model.A.j.YD);this.aM.Za(f.model.A.j.Rz);this.Vh.Mh(f.model.A.j.Qz);this.hc(f.model.A.j.Sw);this.ab.hc(f.model.A.j.Hu);this.Uf.hc(f.model.A.j.Uq);this.ef.hc(f.model.A.j.$D);this.Af.hc(f.model.A.j.YD);this.Ob.hc(f.model.A.j.Rz);this.ze.hc(f.model.A.j.hI)};b.prototype.Cr=function(a,c){var e=new h.Vf.qW;e.setData(a);e.am(c);return e};b.prototype.gD=function(a,c){a=new h.Vf.bP(a,c);a.am(c);return a};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");
c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));var e=new A.Aa("span","fm-label");e.text(a.text());c.V(e);c.V(new A.Aa("i","fm-drag-icon"));return c};b.prototype.open=function(){this.show();this.Wa(y.da.OPENED)};b.prototype.close=function(){this.$a();this.Wa(y.da.CLOSED)};b.prototype.reset=function(){};d.hoa=b})(h.Rs||(h.Rs={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this)||this;b.YQ=function(){return b.tM()};b.Y("fm-fields-view-wrap");b.te();return b}u(d,A.Ca);d.prototype.te=function(){var b=this;this.Wr=new A.Jf("fm-btn-open-fields");this.Wr.Mh(f.model.A.j.hP);this.Wr.hc(f.model.A.j.ZD);this.Wr.N(A.sd.Xe,function(){return b.K2()});this.V(this.Wr)};d.prototype.updateLabels=function(){this.Wr.Mh(f.model.A.j.hP);this.Wr.hc(f.model.A.j.ZD)};d.prototype.open=function(b,a,c){c=void 0===c?"":c;!this.Fe||
this.oda||this.Eda||this.wda||f.v(this.AJ)?(this.controller&&this.controller.mb(y.da.CLOSED,this.YQ),this.close(),this.controller&&this.controller.N(y.da.CLOSED,this.YQ),this.F.Ua("fm-fields-opened",!0),this.F.Ua("fm-fields-instant",this.Fe),this.Fe&&this.F.yp(k.Hb.zb.op()),f.model.B.C.An=!0,this.controller=this.wya(),this.controller.update(b,a,c,this.eAa),this.controller.view.Y("fm-fields-view"),this.V(this.controller.view),this.isVisible()||this.show(),this.controller.view.open(),!this.controller.view.lN&&
this.controller.view.ab&&this.controller.view.ab.focus({preventScroll:!0}),k.Hb.zb.aG=this.Fe?this.controller.view.cf():0,this.kv=!0,this.AJ=f.u.Na.U().sa?f.u.Na.U().sa.clone():null,this.ub=f.u.Na.U().fa,this.Cqa=f.u.Na.U().I&&f.u.Na.U().I.ce,this.NE=f.model.B.C.oc,this.zqa=f.model.B.C.he==k.xd.Ki,this.NE&&f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.ZD))):this.F.yp(k.Hb.zb.op())};d.prototype.wya=function(){var b=this,a=null,c=f.model.B.C.oc&&f.model.B.C.he!=k.xd.Ki,e=k.Hb.zb.F;null==this.controller?
a=c?new h.flat.lO(e,this.Fe):new h.Rs.P7(e,this.Fe):!c||"flat"==this.controller.type&&this.controller.Fe==this.Fe?c||"pivot"==this.controller.type&&this.controller.Fe==this.Fe||(a=new h.Rs.P7(e,this.Fe)):a=new h.flat.lO(e,this.Fe);if(null==a)return this.controller;this.controller&&this.controller.Od();a.N(y.da.CLOSED,this.YQ);a.N(d.fI,function(g){return b.X1(g)});return a};d.prototype.X1=function(b){this.Da(b)};d.prototype.tM=function(){this.kv=void 0;this.ub=null;this.NE=void 0;this.controller.mb(y.da.CLOSED,
this.YQ);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.hI));f.model.B.C.U();f.model.B.C.IZ?this.show():this.$a();f.model.B.C.An=!1;this.Wa(y.da.CLOSED);this.F.Ua("fm-fields-opened",!1);this.F.yp("")};d.prototype.close=function(){this.controller&&this.controller.view.close()};d.prototype.K2=function(){this.Wa(d.ZN)};q.Object.defineProperties(d.prototype,{Fe:{configurable:!0,enumerable:!0,get:function(){return"right"==f.model.B.C.$F}},Eda:{configurable:!0,enumerable:!0,get:function(){return this.NE!=
f.model.B.C.oc||f.model.B.C.oc&&this.zqa!=(f.model.B.C.he==k.xd.Ki)}},oda:{configurable:!0,enumerable:!0,get:function(){return this.kv!=f.model.B.C.An}},wda:{configurable:!0,enumerable:!0,get:function(){return null==this.ub||null==f.u.Na.U().I||this.Cqa!=f.u.Na.U().I.ce||!this.ub.isEqual(f.u.Na.U().fa)}},ABa:{configurable:!0,enumerable:!0,get:function(){return null==f.u.Na.U().sa&&null!=this.AJ||null!=f.u.Na.U().sa&&null==this.AJ||f.u.Na.U().sa&&this.AJ&&!f.u.Na.U().sa.isEqual(this.AJ)}},eAa:{configurable:!0,
enumerable:!0,get:function(){return this.oda||this.wda||this.ABa||this.Eda}},Zt:{configurable:!0,enumerable:!0,get:function(){return this.kv}}});d.fI="EVENT_APPLY_SLICE";d.ZN="EVENT_OPEN";h.mo=d})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vf.vo.call(this)||this;a.zK();return a}u(b,A.Vf.vo);b.prototype.zK=function(){null==this.bo&&(this.bo=new A.Aa("span","fm-text-display"))};b.prototype.PZ=function(){null==this.uv&&(this.uv=new A.Aa("span","fm-aggr-display"),this.uv.attr("title",f.model.A.j.m8),this.uv.jg("hidden","true"))};b.prototype.QZ=function(){null==this.wv&&(this.wv=new A.Aa("span","fm-calc-display"),this.wv.attr("title",f.model.A.j.k8),this.wv.jg("hidden",
"true"))};b.prototype.RZ=function(){null==this.Ov&&(this.Ov=new A.Aa("span","fm-drag-handle"),this.Ov.jg("hidden","true"))};b.prototype.y4=function(a,c){return null==a?a:a.replace(new RegExp("("+c.ld+")","i"),'<b class="fm-search-highlight">$&</b>')};b.prototype.gb=function(){var a=this.getData();this.F.empty();var c=null!=this.hw?(0,this.hw)(a):a.qj?a.N0+" / "+a[this.rq()]:a[this.rq()];this.bo.html(void 0!==a.ld?this.y4(c,a):c);this.bo.attr("title",c+(f.ha(a.description)?"":"\n"+a.description));
this.hc(c);this.F.append(this.bo);1==a.rg&&!a.Bg&&1==a.ul&&1<a.Tc.length&&f.model.B.C.ul&&(this.PZ(),this.F.append(this.uv));!0===a.rg&&!0===a.Ka&&(this.QZ(),this.F.append(this.wv));this.RZ();this.F.append(this.Ov);this.F.Ua("fm-measure",!0===a.rg);this.F.Ua("fm-values",!0===a.yT);this.F.Ua("fm-selected",!0===a.rd);this.F.Ua("fm-level",!0===a.qj)};d.qW=b})(h.Vf||(h.Vf={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=void 0===a?null:a;var c=A.Vf.vo.call(this)||this;c.data=a;c.UZ();c.zK();return c}u(b,A.Vf.vo);b.prototype.UZ=function(){null==this.oC&&(this.oC=new A.Aa("span","fm-icon-display"),this.oC.jg("hidden","true"))};b.prototype.iva=function(){null==this.Q1&&(this.Q1=new A.Aa("span","fm-moreicon-display"),this.Q1.jg("hidden","true"))};b.prototype.zK=function(){null==this.bo&&(this.bo=new A.Aa("span","fm-text-display"))};b.prototype.PZ=function(){null==
this.uv&&(this.uv=new A.Aa("span","fm-aggr-display"),this.uv.attr("title",f.model.A.j.m8),this.uv.jg("hidden","true"))};b.prototype.QZ=function(){null==this.wv&&(this.wv=new A.Aa("span","fm-calc-display"),this.wv.attr("title",f.model.A.j.k8),this.wv.jg("hidden","true"))};b.prototype.RZ=function(){null==this.Ov&&(this.Ov=new A.Aa("span","fm-drag-handle"),this.Ov.jg("hidden","true"))};b.prototype.y4=function(a,c){return null==a?a:a.replace(new RegExp("("+c.ld+")","i"),'<b class="fm-search-highlight">$&</b>')};
b.prototype.gb=function(){var a=this.getData();this.F.empty();this.F.append(this.oC);a.Ci&&(this.iva(),this.F.append(this.Q1));var c=this.J();this.bo.html(void 0!==a.ld?this.y4(c,a):c);this.bo.attr("title",this.J()+(f.ha(a.description)?"":"\n"+a.description));this.F.append(this.bo);!0===a.rg&&!a.Bg&&!0!==a.Ka&&1<a.Tc.length&&f.model.B.C.ul&&"right"!=f.model.B.C.$F&&(this.PZ(),this.F.append(this.uv));!0!==a.rg||!0!==a.Ka||!0!==a.ul&&!f.model.B.C.zv||(this.QZ(),this.F.append(this.wv));a.df||a.Yt?null!=
this.Ov&&this.Ov.remove():(this.RZ(),this.F.append(this.Ov));c=!0===a.rd||null!=a.Dg&&!0===a.Dg.rd;for(var e=1;10>e;e++)this.F.Ua("fm-level-"+e,a.level===e);this.F.Ua("fm-selected",!0===c);this.F.Ua("fm-checked",!0!==a.df&&!0!==a.qj&&!0===c||1==a.qj&&!0===c);this.F.Ua("fm-unchecked",!0!==a.df&&!0!==a.qj&&!0!==c||1==a.qj&&!0!==c);this.F.Ua("fm-measure",a.dw&&(!0===a.rg&&!0!==a.Bg||a.Qda||a.fw||a.NAa));this.F.Ua("fm-folder",!0===a.df||!0===a.Ci);this.F.Ua("fm-level-folder",!0===a.Ci);this.F.Ua("fm-level",
!0===a.qj);this.F.Ua("fm-measures-folder",!0===a.Yt&&!0!==a.Bg);this.F.Ua("fm-measures-calculated-folder",!0===a.Yt&&!0!==a.Bg&&!0===a.HG);this.F.Ua("fm-kpis-folder",!0===a.Bg&&!0===a.df);this.F.Ua("fm-kpi",!0===a.Bg&&!0!==a.df);this.F.Ua("fm-calculated",!0===a.Ka);this.F.Ua(k.X.W.ua.UV,(!0===a.df||!0===a.Ci)&&!0!==a.zf);this.F.Ua(k.X.W.ua.iW,(!0===a.df||!0===a.Ci)&&!0===a.zf);this.hc(this.J());this.A$(!0===c);!0!==a.df&&!0!==a.Ci||this.z$(!0===a.zf)};d.bP=b})(h.Vf||(h.Vf={}))})(k.Vc||(k.Vc={}))})(f.K||
(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){}function a(){}function c(){}c.prototype.La=function(){var e={};f.v(this.pages)||(e.pages=this.pages.map(function(g){return g.La()}));f.v(this.rows)||(e.rows=this.rows.map(function(g){return g.La()}));f.v(this.columns)||(e.columns=this.columns.map(function(g){return g.La()}));f.v(this.measures)||(e.measures=this.measures.map(function(g){return g.La()}));f.v(this.flatOrder)||(e.flatOrder=this.flatOrder.slice());f.v(this.flatSort)||(e.flatSort=
this.flatSort.slice());f.v(this.vj)||(e.sorting=this.vj);return e};d.Toa=c;a.prototype.La=function(){var e={};f.v(this.uniqueName)||(e.uniqueName=this.uniqueName);f.v(this.$)||(e.aggregation=this.$);f.v(this.ig)||(e.activeLevelName=this.ig);return e};a.$R=function(e){var g=new a;g.uniqueName=e.uniqueName;e.rg&&(g.$=e.$,g.U0=e.U0);e.qj&&(g.ig=e.uniqueName,g.uniqueName=e.zg);return g};d.cP=a;b.vK=function(e){for(var g=[],l=0;l<e.length;l++)g.push(b.mR(e[l]));return g};b.yV=function(e){return e.Ci||
e.df?b.AJa(e):b.HJa(e)};b.AJa=function(e){var g={caption:e.caption,isFolder:!0};void 0!==e.HG&&e.HG&&(g.isCalculated=e.HG);void 0!==e.Yt&&(g.isMeasureFolder=e.Yt);f.v(e.parent)||(g.folder=void 0!==e.LF?e.LF:e.parent.caption);void 0!==e.Bg&&e.Bg&&(g.isKPI=e.Bg);return g};b.HJa=function(e){var g={caption:e.caption,isFolder:!1};void 0!==e.Ka&&e.Ka&&(g.isCalculated=e.Ka);void 0!==e.Bg&&e.Bg&&(g.isKPI=e.Bg);void 0!==e.yg&&void 0!==e.Qc&&e.Bg?g.folder=e.yg+"/"+e.Qc:void 0!==e.yg?g.folder=e.yg:void 0!==
e.Qc&&0<e.Qc.length?g.folder=e.Qc:!f.v(e.parent)&&e.parent.qj?g.folder=e.N0:f.v(e.parent)||(g.folder=e.LF);return g};b.mR=function(e){var g=e.Tc,l=new d.Mi;l.uniqueName=e.uniqueName;l.caption=e.caption;l.name=e.Yl;l.type=e.type;l.$=e.$;l.Ka=e.Ka;l.Qc=e.Qc;l.yg=e.yg;l.Lr=e.Lr;l.Bg=e.Bg;l.Tc=g;l.fK=f.u.i.ca.UY(g);l.vv=f.u.i.ca.q$(g);l.dw=e.dw();l.description=e.description;return l};d.Mi=b})(h.W||(h.W={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){this.Aoa=40;this.Ns=null;this.pn=a}b.prototype.o1=function(){return 0<this.Mza().length};b.prototype.Lx=function(){this.ld="";this.az=null};b.prototype.search=function(a){a=a.toLowerCase();if(this.ld!=a){this.ld=a;this.az=[];for(var c=0;c<this.qb.length;c++){var e=this.qb[c];f.O.contains(e.caption,a)&&(e.ld=this.ld,this.az.push(e))}}};b.prototype.r0=function(){for(var a=0,c=0;c<this.Ma.length;c++)this.Ma[c].rd&&a++;return 0==a?0:a==
this.Ma.length?1:-1};b.prototype.Mza=function(){var a=[];if(!f.v(this.qb))for(var c=0;c<this.qb.length;c++)this.qb[c].rd&&a.push(this.qb[c]);return a};b.prototype.sH=function(a,c){var e=this;if(0!==c.length||!f.v(this.Ns))if(f.v(this.Ns))a.sort(function(p,t){return e.Kaa(p,t,c)});else{var g=[],l=[];if(0<c.length){for(var m=0;m<a.length;m++)a[m].rd?g.push(a[m]):l.push(a[m]);g.sort(function(p,t){return e.Kaa(p,t,c)})}else l=a;var n=this.Nya();l.sort(function(p,t){return e.Ns(h.W.Mi.yV(p),h.W.Mi.yV(t),
n)});this.Ma=[].concat(ka(g),ka(l))}};b.prototype.Nya=function(){return this instanceof d.N6?"flat":"drillThrough"};b.prototype.Kaa=function(a,c,e){var g=this.mL(a,e);e=this.mL(c,e);return g==e?a.caption.localeCompare(c.caption):e-g};b.prototype.mL=function(a,c){return a.rd?c.length-c.indexOf(a.uniqueName):0};b.prototype.zk=function(a){for(var c=0;c<this.Ma.length;c++)this.Ma[c].rd=0<=a.indexOf(this.Ma[c].uniqueName)};b.prototype.Qya=function(a){return this.EJa(this.Ma,a)};b.prototype.EJa=function(a,
c){for(var e=[],g=0;g<c.length;g++){var l=a[c[g]];l.rd&&e.push({uniqueName:l.uniqueName,$:l.$})}return e};b.prototype.Nha=function(a,c){for(var e=[],g=0;g<c.length;g++){var l=a[c[g]];l.rd&&e.push(l)}return e};q.Object.defineProperties(b.prototype,{Wc:{configurable:!0,enumerable:!0,get:function(){return this.Ud},set:function(a){this.Ud=a}},Ma:{configurable:!0,enumerable:!0,get:function(){return this.Rn?this.az:this.qb},set:function(a){this.qb=a}},vT:{configurable:!0,enumerable:!0,get:function(){return(f.model.B.C.jha||
this.Ma&&this.Ma.length>this.Aoa)&&this.pn!=f.u.i.oa.Nc}},Rn:{configurable:!0,enumerable:!0,get:function(){return!f.ha(this.ld)}},sC:{configurable:!0,enumerable:!0,get:function(){return(!f.model.Ta.U().Ga.fa.Hc||f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.API)&&f.model.B.C.eha||f.model.B.C.zv&&f.model.Ta.U().Ga.fa.Ba===f.u.i.oa.Nc}},ZS:{configurable:!0,enumerable:!0,get:function(){return this.sC&&!this.Wc.ob}}});d.HN=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=d.HN.call(this,a)||this;a.Am=null;return a}u(b,d.HN);b.prototype.update=function(a,c,e){this.Ud=a;this.Lb=c;this.Ns=e;this.rN();this.Fp()};b.prototype.rN=function(){this.Ma=[];for(var a=this.Ud.rc(!1),c=0;c<a.length;c++){var e=a.ea(c),g=this.Ud.Ee(e.uniqueName);f.v(g)||g.type==f.u.i.Ja.sc||g.type==f.u.i.Ja.Oa||this.Lb.rows.Bb(g.uniqueName)||this.Lb.columns.Bb(g.uniqueName)||this.Lb.pages.Bb(g.uniqueName)?this.Ma.push(this.Cua(e)):
this.Ma.push(this.mR(g))}a=this.Ud.mt;for(c=0;c<a.length;c++)g=a.ea(c),this.Ma.push(this.mR(g))};b.prototype.Fp=function(){if(null!==this.Am)this.Ma=this.Am.hierarchies,this.tZ();else{var a=this.Lb.flatten(!0,!0).Ic(!0);this.zk(a);this.hIa(this.Lb.ad());this.sH(this.Ma,a)}};b.prototype.hIa=function(a){for(var c=0;c<a.length;c++){var e=this.Zwa(a[c].uniqueName);f.v(e)||(e.$=a[c].$)}};b.prototype.Zwa=function(a){for(var c=0;c<this.qb.length;c++)if(this.qb[c].uniqueName==a)return this.qb[c];return null};
b.prototype.mR=function(a){var c=new h.W.Mi;c.uniqueName=a.uniqueName;c.caption=a.Yl;c.$=a.$;c.Ka=a.Ka;a=a.Tc;c.Tc=a;c.fK=f.u.i.ca.UY(a);c.vv=f.u.i.ca.q$(a);c.rg=!0;c.ul=f.model.B.C.ul;return c};b.prototype.Cua=function(a){var c=new h.W.Mi;c.uniqueName=a.uniqueName;c.caption=a.caption;return c};b.prototype.wL=function(a){var c=this.Lb.clone(),e=this.Nha(this.Ma,a),g=e.map(function(r){return r.uniqueName}),l=c.flatten(!0,!0);a=c.ad();for(var m={},n=0;n<l.length;m={ED:m.ED},n++){var p=l.ea(n).uniqueName;
0>g.indexOf(p)&&(c.pages.Bb(p)&&c.pages.removeItem(p),c.columns.Bb(p)&&c.columns.removeItem(p),c.rows.Bb(p)&&c.rows.removeItem(p),m.ED=this.Ud.Ee(p),f.v(m.ED)&&(m.ED=this.Ud.mt.getItem(p)),f.v(m.ED)||(p=a.findIndex(function(r){return function(v){return v.uniqueName===r.ED.uniqueName}}(m)),-1<p&&a.splice(p,1)))}for(n=0;n<e.length;n++)if(p=e[n].uniqueName,!l.Bb(p)){m=this.Ud.Mg(p);var t=this.Ud.$c(p);f.v(t)||f.v(m)||t.type==f.u.i.Ja.sc||m.type==f.u.i.Gc.Oa?f.v(m)?this.Ud.mt.Bb(p)&&a.push(this.Ud.mt.getItem(p)):
c.rows.Pa(p,m):a.push(t)}for(n=0;n<e.length;n++)if(l=e[n],l.$)for(p=0;p<a.length;p++)a[p].uniqueName==l.uniqueName&&(a[p].$=l.$);c.flatOrder=g;for(e=0;e<a.length;e++)a[e].index=e;c.fz(a);return c};b.prototype.Er=function(){return null!=this.Ud?h.W.Mi.vK(this.Ud.measures.Ic()):[]};b.prototype.hu=function(a){if(null!=this.Lb&&null!=this.Ud){var c=this.Er().find(function(l){return l.uniqueName===a});if(null!=c){c.rd=!0;for(var e=0,g=0;g<this.Ma.length;g++)this.Ma[g].rd&&(e=g);this.Ma=[].concat(ka(this.Ma.slice(0,
e+1)),[c],ka(this.Ma.slice(e+1)))}}};b.prototype.iu=function(a){if(null!=this.Lb&&null!=this.Ud){var c=this.Ma.findIndex(function(e){return e.uniqueName===a});this.Ma.splice(c,1);this.u4()}};b.prototype.tZ=function(){this.Am=null};b.prototype.u4=function(){this.Am={hierarchies:this.Ma}};b.prototype.wT=function(a){var c=this.Lb.flatten(!0,!0).Ic();if(a.length!=c.length)return!0;for(var e=0;e<a.length;e++){var g=a[e],l=c[e];if(g.uniqueName!=l.uniqueName||void 0!=g.$&&void 0!=l.$&&g.$!=l.$)return!0}return!1};
b.prototype.nD=function(a){this.Lb=a};d.N6=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a,c){var e=y.Fc.call(this)||this;e.type="flat";e.wJ=!1;e.Gx=function(g){return e.hu(g)};e.Hx=function(g){return e.iu(g)};e.Ix=function(){return e.mM()};e.Ab=e.sR(f.u.Na.U().fa.Ba);e.wJ=c;e.view=e.taa(a);e.view.N(y.da.CLOSED,function(g){return e.Da(g)});e.view.Ah&&e.view.Ah.N(A.sd.Xe,function(){return e.MC()});e.view.ze&&e.view.ze.N(A.sd.Xe,function(){return e.Sr()});null!=e.view.Nf&&e.view.Nf.N(y.da.Qd,function(g){return e.W1(g)});e.view.ab&&
(e.view.ab.F.N("click",function(g){return e.t2(g)}),e.view.ab.F.N("keydown",function(g){return e.u2(g)}),e.view.ab.F.Ar({Xl:function(g,l,m,n){return e.Xl(g,l,m,n)},Wl:function(g,l,m,n){return e.Wl(g,l,m,n)},ml:function(g,l,m,n){return e.ml(g,l,m,n)},Fy:"li",scroll:!0}));e.view.Pd&&e.view.Pd.N(y.da.Qd,function(){return e.W2()});e.view.Vh&&e.view.Vh.N(A.sd.Xe,function(){return e.$T()});e.view.Wd&&(e.view.Wd.VU(500),e.view.Wd.N(A.Pi.Qw,function(){return e.sM()}));e.view.ee&&(e.view.ee.N("click",function(){return e.Tr()}),
e.view.ee.N("keydown",function(g){return e.Ry(g,!1)}));e.view.Gi&&(e.view.Gi.N("click",function(){return e.Ur()}),e.view.Gi.N("keydown",function(g){return e.Ry(g,!0)}));return e}u(b,y.Fc);b.prototype.taa=function(a){return this.Fe?new d.Kla:new d.rW(a)};b.prototype.sR=function(a){return new d.N6(a)};b.prototype.Ry=function(a,c){if(32===a.keyCode||13===a.keyCode)c?this.Ur():this.Tr()};b.prototype.Tr=function(){this.view.Ie.Y("fm-search-opened-flat");this.view.Wd.F.focus()};b.prototype.Ur=function(){this.view.Ie.ud("fm-search-opened-flat");
this.view.Wd.clear();this.view.ee.F.focus()};b.prototype.Wl=function(a,c,e,g){g instanceof MouseEvent?(e=A.Aa.Pb(g.target),g=g.clientY):(g=g.changedTouches[0],e=A.Aa.Pb(document.elementFromPoint(g.clientX,g.clientY)),g=g.clientY);e.Lc("fm-drop-indicator")||(this.ql(),a&&a.closest("ul")&&(c&&c.Y("fm-droppable-valid"),a.Y("fm-drag-over"),this.qD(e,g)))};b.prototype.ml=function(a,c){this.ql();a&&a.closest("ul")&&(c&&c.ud("fm-droppable-valid"),c&&c.ud("fm-droppable-invalid"),a.ud("fm-drag-over"))};b.prototype.sM=
function(){this.Ab.search(this.view.Wd.yi());this.view.ab.F.Ua("fm-searched",this.Ab.Rn);this.view.ab.Cf(this.Ab.Ma);this.PK()};b.prototype.W1=function(a){this.ez(a.data.RK,a.data.TY)};b.prototype.ez=function(a,c){a.$=c.$;a.caption=a.name;this.view.ab.Kq(a);c=this.Ab.Ma.find(function(e){return e.uniqueName===a.uniqueName});null!=c&&(c.$=a.$,c.caption=a.caption);this.Fe&&this.ae()};b.prototype.Xl=function(a){if(null!=this.od)if(a&&a.closest("ul")){a=parseInt(a.attr("data-index"));var c=this.view.ab.uc()[a],
e=this.view.ab.uc().length;this.od.element.previousElementSibling?e=parseInt(this.od.element.previousElementSibling.getAttribute("data-index"))+1:this.od.element.nextElementSibling&&(e=parseInt(this.od.element.nextElementSibling.getAttribute("data-index")));this.ql();this.Qr(a,e);this.view.ab.gi(this.view.ab.uc().indexOf(c));this.view.ab.F.Dw(this.view.ab.F.element.scrollTop);this.view.ab.NM(e)}else this.ql()};b.prototype.Qr=function(a,c){if(a!=c){var e=this.view.ab.uc();a<c&&--c;e.splice(c,0,e.splice(a,
1)[0]);this.view.ab.Lq();this.ms();this.PK();this.Fe&&this.ae()}};b.prototype.Sr=function(){this.Fe?f.Ug.instance.nK():this.view.close()};b.prototype.MC=function(){this.view.Wd&&this.Ab.Rn&&(this.view.Wd.clear(!1),this.Ab.Lx(),this.view.ab.Cf(this.Ab.Ma),this.PK());this.ae();this.view.close()};b.prototype.W2=function(){for(var a=this.view.Pd.checked,c=this.Ab.Ma,e=0;e<c.length;e++)c[e].rd=a;this.view.ab.Lq();this.ms();this.PK();this.Fe&&this.ae()};b.prototype.u2=function(a){var c=this;if(32===a.keyCode||
13===a.keyCode){if(this.view.xi){var e=this.view.ab.Mt();if(f.v(e))return;var g=[];g.push({label:e.data.rd?f.model.A.j.lW:f.model.A.j.Mka,handler:function(){return c.sh(3,e.data,e.index)}});0<e.index&&g.push({label:f.model.A.j.w6,handler:function(){return c.sh(4,e.data,e.index)}});e.index<this.view.ab.uc().length-1&&g.push({label:f.model.A.j.r6,handler:function(){return c.sh(5,e.data,e.index)}});e.data.rg&&g.push({label:f.model.A.j.kW,submenu:this.my(e.data)});e.data.Ka&&g.push({label:f.model.A.j.mW,
handler:function(){return c.sh(10,e.data,e.index)}});this.view.xi.Xn(this.view.F,g,e.element.Sf(),{top:10,left:10})}a.preventDefault()}};b.prototype.my=function(a){for(var c=this,e=[],g={},l=0;l<a.Tc.length;g={yN:g.yN},l++)g.yN={caption:a.fK[l],$:a.Tc[l]},void 0!=a.vv&&(g.yN.zV=a.vv[l]),e.push({label:f.u.i.ca.jF(a.Tc[l]),isSelected:a.Tc[l]==a.$,handler:function(m){return function(){return c.ez(a,m.yN)}}(g)});return e};b.prototype.sh=function(a,c,e){3==a?(c.rd=!c.rd,this.view.ab&&this.view.ab.ls(e),
this.view.Pd&&this.view.Pd.jf(this.Ab.r0()),this.ms(),this.Fe&&this.ae()):4==a?(this.Qr(e,e-1),this.view.ab.gi(e-1)):5==a?(this.Qr(e,e+2),this.view.ab.gi(e+1)):10==a&&this.bH(c.uniqueName)};b.prototype.t2=function(a){var c=this.view.ab.MB(a.target);f.v(c)||(a=A.Aa.Pb(a.target),a.Lc("fm-aggr-display")?this.view.Nf.Xn(c.data,a):a.Lc("fm-calc-display")?this.sh(10,c.data,c.index):this.sh(3,c.data,c.index))};b.prototype.bH=function(a){a=void 0===a?null:a;this.view.lN=!0;f.model.Ta.U().Da(new k.Ka.WV(a));
f.model.Ta.U().N(k.Ka.yj.Cz,this.Ix);f.model.Ta.U().N(k.Ka.yj.Az,this.Gx);f.model.Ta.U().N(k.Ka.yj.Bz,this.Hx)};b.prototype.$T=function(){this.bH()};b.prototype.hu=function(a){f.model.Ta.U().mb(k.Ka.yj.Az,this.Gx);this.Ab.hu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.iu=function(a){f.model.Ta.U().mb(k.Ka.yj.Bz,this.Hx);this.Ab.iu(a.Nr);this.cm();this.Fe&&this.ae()};b.prototype.mM=function(){this.view.lN=!1;f.model.Ta.U().mb(k.Ka.yj.Cz,this.Ix);this.view.ab.focus({preventScroll:!0})};b.prototype.cm=
function(){this.view.reset&&this.view.reset();this.view.Ie&&this.view.Ie.isVisible(this.Ab.vT);this.view.Wd&&(this.view.Wd.clear(!1),this.Ab.Lx());this.view.ab&&(this.view.ab.Cf(this.Ab.Ma),this.ms(),this.PK());this.view.Vh&&(this.view.Vh.isVisible(this.Ab.sC),this.view.Vh.xp(this.Ab.ZS))};b.prototype.PK=function(){var a=this,c={Bn:function(l){return a.view.Bn(l)}};x.Bd().Vl&&(c.JS=".fm-drag-handle");for(var e=this.view.ab.F.find("li",!0),g=0;g<e.length;g++)e[g].draggable(c)};b.prototype.update=function(a,
c){f.v(a)||f.v(c)||(this.Ab.update(a,c,h.mo.PR),this.cm(),this.view.Pd&&this.view.Pd.jf(this.Ab.r0()),this.view.Df())};b.prototype.ms=function(){this.view.Ah&&this.view.Ah.xp(this.Ab.o1())};b.prototype.ae=function(){for(var a=[],c=this.view.ab.F.find("li",!0),e=0;e<c.length;e++){var g=parseInt(c[e].attr("data-index"));a.push(g)}c=this.Ab.Qya(a);this.Ab.wT(c)&&(a=this.Ab.wL(a),this.Fe&&a instanceof f.u.I.Zq&&(a.M1=!1,f.Ug.instance.bD(),this.Ab.nD(a)),f.model.Ta.U().ae(a))};b.prototype.qD=function(a,
c){var e=a.closest("li");null!=e?(this.od=this.Lv(),a=e.getBoundingClientRect(),c>a.top+a.height/2?e.after(this.od):e.before(this.od)):(c=a.closest("ul"),null!=c&&(this.od=this.Lv(),c.append(this.od)))};b.prototype.Lv=function(){return new A.Aa("div","fm-drop-indicator")};b.prototype.ql=function(){this.od&&(this.od.sg(!0),this.od=null)};q.Object.defineProperties(b.prototype,{Fe:{configurable:!0,enumerable:!0,get:function(){return this.wJ}}});d.lO=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||
(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){var c=A.Vb.mh.call(this,a)||this;c.Y("fm-flat-fields");c.te();c.F.$k();c.F.Fi({lV:[A.Fi.Ph.ji],jR:k.Hb.zb.F,WY:!0,resize:function(e){return c.uM(e)},complete:function(){return c.Go()}});return c}u(b,A.Vb.mh);b.prototype.uM=function(a){a.rD==A.Fi.Ph.ji&&this.yp(a.size.height)};b.prototype.te=function(){var a=new A.Ca("div","fm-popup-header fm-ui-row");this.V(a);var c=new A.Ca("div","fm-ui-col fm-vam");a.V(c);this.jw=new A.Oc(f.model.A.j.Sw);
this.jw.Y("fm-popup-title");c.V(this.jw);this.iw=new A.Oc(f.model.A.j.y6);this.iw.Y("fm-popup-subtitle");c.V(this.iw);c=new A.Ca("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");a.V(c);this.Vh=new A.Jf("fm-btn-add-measure fm-ui-btn-light fm-icon-act_calc");c.V(this.Vh);this.ze=new A.Jf;this.ze.Za(f.model.A.j.Jk);this.Ah=new A.Jf("fm-ui-btn-dark");this.Ah.Za(f.model.A.j.Ow);x.Oi.wC||x.Oi.Qn?(c.V(this.ze),c.V(this.Ah)):(c.V(this.Ah),c.V(this.ze));a=new A.Ca("div","fm-popup-content");this.V(a);c=new A.Ca("div",
"fm-list-wrap");a.V(c);var e=new A.Ca("div","fm-list-header");c.V(e);this.Pd=new A.$I;this.Pd.Y("fm-select-all-cbx");this.Pd.Za(f.model.A.j.Ju);e.V(this.Pd);this.Ie=new A.Ca("div","fm-search-wrap");e.V(this.Ie);this.ee=new A.Ca("a","fm-search-btn");this.ee.ue(0);this.ee.$j("button");this.Ie.V(this.ee);e=new A.Ca("span","fm-ui-icon fm-icon-act_search");this.ee.V(e);this.Wd=new A.Pi;this.Wd.Y("fm-search-inp-flat");this.Ie.V(this.Wd);this.Gi=new A.Ca("span","fm-close-search fm-ui-icon fm-icon-act_close");
this.Gi.ue(0);this.Gi.$j("button");this.Ie.V(this.Gi);e=new A.Ca("div","fm-list-content");c.V(e);this.ab=new A.hd.zh;this.ab.Y("fm-lst-hierarchies");this.ab.ue();this.ab.Lh(this.gD);this.ab.Xf("caption");e.V(this.ab);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();a.V(this.Nf);this.xi=new A.No.wE(a.F);this.xi.$a();a.V(this.xi)};b.prototype.gD=function(a,c){var e=new h.Vf.bP(a,c);e.setData(a);e.am(c);return e};b.prototype.Df=function(){this.jw.Za(f.model.A.j.Sw);this.iw.Za(f.model.A.j.y6);
this.ze.Za(f.model.A.j.Jk);this.Ah.Za(f.model.A.j.Ow);this.Pd.Za(f.model.A.j.Ju);this.Vh.Mh(f.model.A.j.Qz);this.hc(f.model.A.j.Sw);this.jw.Cm();this.iw.Cm();this.ab.hc(f.model.A.j.Hu);this.ee.hc(f.model.A.j.$N);this.Wd.hc(f.model.A.j.$N);this.Gi.hc(f.model.A.j.A6)};b.prototype.reset=function(){this.Ie.ud("fm-search-opened-flat");this.Wd.clear(!1)};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",
a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c};d.rW=b})(h.flat||(h.flat={}))})(k.Vc||(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Vb.ye.call(this)||this;a.Y("fm-flat-fields");a.Y("fm-instant-view");a.te();return a}u(b,A.Vb.ye);b.prototype.te=function(){var a=new A.Ca("div","fm-popup-content");this.V(a);var c=new A.Ca("div","fm-list-wrap fm-list-wrap-all");a.V(c);var e=new A.Ca("div","fm-list-header");c.V(e);this.Pd=new A.$I;this.Pd.Y("fm-select-all-cbx");this.Pd.Za(f.model.A.j.Ju);e.V(this.Pd);this.Vh=new A.Jf("fm-btn-add-measure");e.V(this.Vh);this.ze=
new A.Jf("fm-btn-close-fields");e.V(this.ze);e=new A.Ca("div","fm-list-content");c.V(e);this.ab=new A.hd.zh;this.ab.Y("fm-lst-hierarchies");this.ab.ue();this.ab.Lh(this.gD);this.ab.Xf("caption");e.V(this.ab);this.Nf=new h.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();a.V(this.Nf);this.xi=new A.No.wE(a.F);this.xi.$a();a.V(this.xi)};b.prototype.gD=function(a,c){var e=new h.Vf.bP(a,c);e.setData(a);e.am(c);return e};b.prototype.Df=function(){this.Pd.Za(f.model.A.j.Ju);this.Vh.Mh(f.model.A.j.Qz);this.hc(f.model.A.j.Sw);
this.ab.hc(f.model.A.j.Hu);this.ze.hc(f.model.A.j.hI)};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.Ua("fm-values",a.Lc("fm-values"));c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c};b.prototype.open=function(){this.show();this.Wa(y.da.OPENED)};b.prototype.close=function(){this.$a();this.Wa(y.da.CLOSED)};d.Kla=b})(h.flat||(h.flat={}))})(k.Vc||
(k.Vc={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.mh.call(this,k.Hb.zb.F)||this;b.eKa=function(){return b.tM()};b.Y("fm-calculated-view");b.F.$k();b.QC.Y("fm-calculated-view-overlay");b.Ce=new h.Kja;b.Ce.N(y.da.x5,function(){return b.close()});b.V(b.Ce.view);b.N(y.da.CLOSED,b.eKa);return b}u(d,A.Vb.mh);d.prototype.tM=function(){f.model.Ta.U().Da(new k.Ka.Oja)};d.prototype.Xr=function(b){this.Ce.update(b);this.open();this.Ce.view.wq.focus({preventScroll:!0});this.Df()};d.prototype.Df=
function(){this.hc(f.model.A.j.RV)};d.prototype.close=function(){A.Vb.mh.prototype.close.call(this);this.Ce.clear()};d.WJ=!1;h.UD=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return y.da.call(this,e.Cz)||this}function b(g){g=void 0===g?null:g;var l=y.da.call(this,e.s5)||this;l.Nr=g;return l}function a(g){var l=y.da.call(this,e.Bz)||this;l.Nr=g;return l}function c(g){var l=y.da.call(this,e.Az)||this;l.Nr=g;return l}function e(){}e.Az="event_calculated_value_added";e.Bz="event_calculated_value_removed";e.s5="calculated_view_open";e.Cz="calculated_view_close";h.yj=e;u(c,y.da);h.Mja=c;u(a,y.da);h.Nja=a;u(b,y.da);h.WV=b;u(d,
y.da);h.Oja=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.$qa="- 2";this.ja=f.model.Ta.U();this.O_=[{name:"_addBtn",label:"+",Re:"CALCULATED_VIEW_FUNC_ADD",func:f.u.i.jc.AN},{name:"_subtractBtn",label:"-",Re:"CALCULATED_VIEW_FUNC_SUBTRACT",func:f.u.i.jc.aP},{name:"_multiplyBtn",label:"\u00d7",Re:"CALCULATED_VIEW_FUNC_MULTIPLY",func:f.u.i.jc.JO},{name:"_divideBtn",label:"\u00f7",Re:"CALCULATED_VIEW_FUNC_DIVIDE",func:f.u.i.jc.dI},{name:"_powerBtn",label:"^",Re:"CALCULATED_VIEW_FUNC_POWER",func:f.u.i.jc.TW},
{name:"_equalBtn",label:"=",Re:"CALCULATED_VIEW_FUNC_EQUAL",func:f.u.i.jc.EQUAL},{name:"_lessBtn",label:"<",Re:"CALCULATED_VIEW_FUNC_LESS",func:f.u.i.jc.LESS},{name:"_greaterBtn",label:">",Re:"CALCULATED_VIEW_FUNC_GREATER",func:f.u.i.jc.GREATER},{name:"_lessOrEqualBtn",label:"\u2264",Re:"CALCULATED_VIEW_FUNC_LESS_EQUAL",func:f.u.i.jc.d7},{name:"_greaterOrEqualBtn",label:"\u2265",Re:"CALCULATED_VIEW_FUNC_GREATER_EQUAL",func:f.u.i.jc.R6},{name:"_notEqualBtn",label:"!=",Re:"CALCULATED_VIEW_FUNC_NOT_EQUAL",
func:f.u.i.jc.If},{name:"_orBtn",label:"OR",Re:"CALCULATED_VIEW_FUNC_OR",func:f.u.i.jc.N7},{name:"_andBtn",label:"AND",Re:"CALCULATED_VIEW_FUNC_AND",func:f.u.i.jc.X4},{name:"_ifBtn",label:"IF",Re:"CALCULATED_VIEW_FUNC_IF",func:f.u.i.jc.oO},{name:"_absBtn",label:"ABS",Re:"CALCULATED_VIEW_FUNC_ABS",func:f.u.i.jc.KV},{name:"_roundBtn",label:"RD",Re:"CALCULATED_VIEW_FUNC_ROUND",func:f.u.i.jc.$W},{name:"_minBtn",label:"MIN",Re:"CALCULATED_VIEW_FUNC_MIN",func:f.u.i.jc.MIN},{name:"_maxBtn",label:"MAX",Re:"CALCULATED_VIEW_FUNC_MAX",
func:f.u.i.jc.MAX}]}d.prototype.search=function(b){b=b.toLowerCase().trim();if(this.ld!==b){this.ld=b;this.O3=[];for(var a=this.Le.length,c=0;c<a;c++){var e=this.Le[c];f.O.contains(e.caption,b)&&(e.ld=b,this.O3.push(e))}}};d.prototype.Lx=function(){this.ld="";this.O3=null};d.prototype.update=function(b){this.Le=k.Vc.W.Mi.vK(this.ja.ga.I.measures.Ic());this.Lx();f.ha(b)||(this.Ui=this.ja.ga.I.$c(b))};d.prototype.Er=function(){f.v(this.Le)&&(this.Le=k.Vc.W.Mi.vK(this.ja.ga.I.measures.Ic()));return this.Rn?
this.O3:this.Le};d.prototype.aD=function(b){h.UD.WJ=!0;this.ja.Xy(b.uniqueName);this.ja.Da(new h.Nja(b.uniqueName));f.pe(function(){h.UD.WJ=!1},1E3)};d.prototype.Hj=function(b,a,c){c=void 0===c?!1:c;a=(void 0===a?"":a).trim();a=0<a.length?a:this.aya();if(null!=this.Ui){if(this.Ui.caption!=a||this.Ui.qe!=b||this.Ui.gl!=c)var e={uniqueName:this.Ui.uniqueName,caption:a,formula:b,individual:c,type:this.Ui.type}}else{do a=null!=this.ja.ga.I.measures.getItem(a)?a+" "+this.$qa:a;while(null!=this.ja.ga.I.measures.getItem(a));
e={uniqueName:a,caption:a,formula:b,individual:c,type:f.u.i.Ja.fb}}null!=e&&(h.UD.WJ=!0,k.Vc.Rs.Q7.z_=!0,this.ja.ga.ct(e,!1),this.ja.Da(new h.Mja(e.uniqueName)),f.pe(function(){h.UD.WJ=!1},1E3))};d.prototype.aya=function(){for(var b=f.model.A.j.JN+" #",a=0,c=this.ja.ga.I.mt,e=new RegExp(f.model.A.j.JN+" #"),g=0;g<c.length;g++){var l=c.ea(g).uniqueName;e.test(l)&&(a=Math.max(a,Number(l.substr(f.model.A.j.JN.length+2))))}return b+(a+1)};q.Object.defineProperties(d.prototype,{Rn:{configurable:!0,enumerable:!0,
get:function(){return!f.ha(this.ld)}},ul:{configurable:!0,enumerable:!0,get:function(){return!this.ja.ga.fa.Hc||this.ja.ga.fa.Ba==f.u.i.oa.API}},c4:{configurable:!0,enumerable:!0,get:function(){return this.ja.ga.fa.Ba!=f.u.i.oa.API}}});h.Lja=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.E9=new RegExp(/(["])(?:(?=(\\?))\2.)*?\1/g);b.ja=new h.Lja;b.view=new h.Pja(b);b.view.xw&&b.view.xw.N(A.sd.Xe,function(){return b.hFa()});b.view.Wd&&(b.view.Wd.VU(500),b.view.Wd.N(A.Pi.Qw,function(){return b.sM()}));b.view.ee&&(b.view.ee.N("click",function(){return b.Tr()}),b.view.ee.N("keydown",function(g){return b.Ry(g,!1)}));b.view.Gi&&(b.view.Gi.N("click",function(){return b.Ur()}),b.view.Gi.N("keydown",function(g){return b.Ry(g,
!0)}));b.view.Ob&&(b.view.Ob.F.N("click",function(g){return b.DEa(g)}),b.view.Ob.F.N("dblclick",function(g){return b.EEa(g)}),b.view.Ob.F.N("keydown",function(g){return b.KEa(g)}),b.view.Ob.Lh(function(g,l){return b.Cr(g,l)}));b.view.Ch&&b.view.Ch.F.Ar({Xl:function(g){return b.FEa(g)},e2:function(){return b.afa()},Wl:function(){return b.afa()},ml:function(){return b.bEa()},Fy:"li"});b.view.Ah&&b.view.Ah.N(A.sd.Xe,function(){return b.MC()});b.view.ze&&b.view.ze.N(A.sd.Xe,function(){return b.Sr()});
b.view.Nf&&b.view.Nf.N(y.da.Qd,function(g){return b.VCa(g)});if(b.view.bS)for(var a={},c=ja(b.view.bS),e=c.next();!e.done;a={wN:a.wN},e=c.next())a.wN=e.value,a.wN.N(A.sd.Xe,function(g){return function(){return b.cEa(g.wN)}}(a));return b}u(d,y.Fc);d.prototype.sM=function(){this.ja.search(this.view.Wd.yi());this.view.Ob.F.Ua("fm-searched",this.ja.Rn);this.cia()};d.prototype.Tr=function(){this.view.Ie.Y("fm-search-opened");this.view.Wd.F.focus()};d.prototype.Ry=function(b,a){if(32===b.keyCode||13===
b.keyCode)a?this.Ur():this.Tr()};d.prototype.Ur=function(){this.view.Ie.ud("fm-search-opened");this.view.Wd.clear();this.view.ee.F.focus()};d.prototype.DEa=function(b){var a=A.Aa.Pb(b.target);a.Lc("fm-aggr-display")&&(b=this.view.Ob.MB(b.target),f.v(b)||this.view.Nf.Xn(b.data,a))};d.prototype.EEa=function(b){b=this.view.Ob.MB(b.target);f.v(b)||this.OY(b.data)};d.prototype.KEa=function(b){var a=this;if(32===b.keyCode||13===b.keyCode){if(this.view.xi){var c=this.view.Ob.Mt();if(f.v(c))return;var e=
[];e.push({label:f.model.A.j.Wia,handler:function(){a.OY(c.data)}});e.push({label:f.model.A.j.kW,submenu:this.my(c.data)});this.view.xi.Xn(this.view.content.F,e,c.element.Sf(),{top:10,left:10})}b.preventDefault()}};d.prototype.my=function(b){for(var a=this,c=[],e={},g=0;g<b.Tc.length;e={zN:e.zN},g++)e.zN={caption:b.fK[g],$:b.Tc[g]},void 0!=b.vv&&(e.zN.zV=b.vv[g]),c.push({label:f.u.i.ca.jF(b.Tc[g]),isSelected:b.Tc[g]==b.$,handler:function(l){return function(){return a.ez(b,l.zN)}}(e)});return c};d.prototype.afa=
function(){this.view.Ch.Y("fm-droppable-over")};d.prototype.bEa=function(){this.view.Ch.ud("fm-droppable-over")};d.prototype.FEa=function(b){this.view.Ch.ud("fm-droppable-over");b=parseInt(b.attr("data-index"));b=this.view.Ob.uc()[b];this.OY(b)};d.prototype.Cr=function(b,a){var c=new k.Vc.Vf.qW;c.setData(b);c.am(a);c.dV(function(e){return e.name+" ("+f.u.i.ca.jF(e.$)+")"});return c};d.prototype.update=function(b){this.ja.update(b);this.view.lB.isVisible(this.ja.c4);null!=this.ja.Ui?(this.view.F.Ua("fm-with-delete-btn",
!0),this.view.wq&&this.view.wq.cj(this.ja.Ui.caption),this.view.Ch&&(b=f.model.B.C.P4?this.rHa(this.ja.Ui.qe):this.ja.Ui.qe,this.view.Ch.cj(b)),this.view.xw&&this.view.xw.isVisible(!0)):(this.view.F.Ua("fm-with-delete-btn",!1),this.view.xw&&this.view.xw.isVisible(!1));this.view.lB&&this.ja.c4&&(this.view.lB.checked=this.ja.Ui?this.ja.Ui.gl:!1);this.view.Wd&&(this.view.Ie.ud("fm-search-opened"),this.view.Wd.clear(!1),this.ja.Lx());this.view.Df();this.cia()};d.prototype.cia=function(){for(var b=this,
a=this.ja.Er(),c=[],e=0;e<a.length;e++)null!=this.ja.Ui&&this.ja.Ui.uniqueName==a[e].uniqueName||a[e].Bg||(a[e].rg=!0,a[e].ul=this.ja.ul&&!a[e].Ka,c.push(a[e]));c.sort(this.yZ);if(this.view.Ob)for(this.view.Ob.Cf(c),a={Bn:function(g){return b.view.Bn(g)}},x.Bd().Vl&&(a.JS=".fm-drag-handle"),c=this.view.Ob.F.find("li",!0),e=0;e<c.length;e++)c[e].draggable(a)};d.prototype.clear=function(){this.view.wq&&this.view.wq.cj("");this.view.Ch&&this.view.Ch.cj("");this.ja.Ui=null};d.prototype.yZ=function(b,
a){return b.name>a.name?1:-1};d.prototype.hFa=function(){x.Bd().Vl?this.N2():this.TIa()};d.prototype.TIa=function(){var b=this;if(x.Oi.wC||x.Oi.Qn){var a=[f.model.A.j.m5,f.model.A.j.MD];var c=[null,function(){return b.N2()}]}else a=[f.model.A.j.MD,f.model.A.j.m5],c=[function(){return b.N2()},null];var e=f.model.Nb.valid(this.ja.Ui.caption)?this.ja.Ui.caption:f.model.Nb.validate(this.ja.Ui.caption);f.Va(f.model.A.j.Yia,f.O.bind(f.model.A.j.Zia,e),f.rb.Ik,a,c)};d.prototype.N2=function(){this.ja.aD(this.ja.Ui);
this.close()};d.prototype.OY=function(b){if(void 0!==b){var a=f.model.B.C.P4?b.name:b.uniqueName;b.$===f.u.i.ca.NONE||void 0===b.$?this.zy(f.O.bind('"{0}"',a)):this.zy(f.O.bind('{0}("{1}")',b.$,a))}};d.prototype.VCa=function(b){this.ez(b.data.RK,b.data.TY)};d.prototype.ez=function(b,a){b.$=a.$;b.caption=a.caption+" of "+b.name;this.view.Ob.Kq(b)};d.prototype.cEa=function(b){b=b.data.func;b==f.u.i.jc.oO||b==f.u.i.jc.KV||b==f.u.i.jc.MIN||b==f.u.i.jc.MAX||b==f.u.i.jc.nn||b==f.u.i.jc.$W?this.Qra(b):this.Nra(b)};
d.prototype.Sr=function(){this.close()};d.prototype.MC=function(){var b=f.model.B.C.P4?this.qHa(this.view.Ch.yi()):this.view.Ch.yi();if(f.model.B.C.GV){var a=x.mO.PQ(b,this.ja.Ui?this.ja.Ui.uniqueName:this.view.wq.yi());if(0==a.bw){f.Va(a.errorMessage);return}}a=this.ja.c4?this.view.lB.checked:!1;this.ja.Hj(b,this.view.wq.yi(),a);this.close()};d.prototype.qHa=function(b){b=b.slice(0);for(var a=b.match(this.E9),c=f.u.Na.U().I.measures,e,g,l=0;l<a.length;l++){e=a[l].substring(1,a[l].length-1);for(g=
0;g<c.length&&e!==c.ea(g).Yl;g++);g<c.length&&(b=b.replace('"'+e+'"','"'+c.ea(g).uniqueName+'"'))}return b};d.prototype.rHa=function(b){b=b.slice(0);for(var a=b.match(this.E9),c=f.u.Na.U().I.measures,e,g=0;g<a.length;g++)e=a[g].substring(1,a[g].length-1),b=b.replace('"'+e+'"','"'+c.getItem(e).Yl+'"');return b};d.prototype.close=function(){this.Wa(y.da.x5)};d.prototype.zy=function(b,a){a=void 0===a?0:a;var c=this.view.Ch.F.element.selectionStart,e=this.view.Ch.yi();-1==c&&(c=this.Kh);0==c||" "==e.charAt(c-
1)?(this.view.Ch.zy(b+" "),this.Kh=c+b.length+1):(this.view.Ch.zy(" "+b+" "),this.Kh=c+b.length+2);this.Kh-=a;this.view.Ch.jf(this.Kh)};d.prototype.Nra=function(b){this.zy(b)};d.prototype.Qra=function(b){var a=this.view.Ch.F.element.selectionStart,c=this.view.Ch.F.element.selectionEnd,e=this.view.Ch.yi();if(f.u.i.jc.oO==b)this.zy(b+"("+e.slice(a,c)+", , )",6);else{var g=f.u.i.jc.MIN==b||f.u.i.jc.MAX==b?",":"";this.zy(b+"("+e.slice(a,c)+g+")",2+g.length)}};q.Object.defineProperties(d.prototype,{O_:{configurable:!0,
enumerable:!0,get:function(){return this.ja.O_}}});h.Kja=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var a=A.Jf.call(this,"fm-ui-col-9 fm-calc-action")||this;a.ud("fm-ui-btn");return a}function b(a){var c=A.Ca.call(this)||this;c.controller=a;c.te();return c}u(b,A.Ca);b.prototype.te=function(){var a=this,c=new A.Ca("div","fm-popup-header fm-ui-row");this.V(c);var e=new A.Ca("div","fm-ui-col fm-vam");c.V(e);this.Dp=new A.Oc(f.model.A.j.RV);this.Dp.Y("fm-popup-title");e.V(this.Dp);this.uV=new A.Oc(f.model.A.j.r5);this.uV.Y("fm-popup-subtitle");e.V(this.uV);
e=new A.Ca("div","fm-ui-col fm-vam fm-tar fm-ui-btns-row");c.V(e);this.xw=new A.Jf("fm-ui-btn-light fm-icon-act_trash fm-remove-btn");this.xw.F.attr("title",f.model.A.j.t5);e.V(this.xw);this.ze=new A.Jf("fm-ui-btn");this.ze.Za(f.model.A.j.Jk);this.Ah=new A.Jf("fm-ui-btn-dark");this.Ah.Za(f.model.A.j.Ow);x.Oi.wC||x.Oi.Qn?(e.V(this.ze),e.V(this.Ah)):(e.V(this.Ah),e.V(this.ze));this.content=c=new A.Ca("div","fm-popup-content");this.V(c);this.wq=new A.Pi;this.wq.Y("fm-name-input");this.wq.lD(f.model.A.j.QV);
c.V(this.wq);e=new A.Ca("div","fm-list-header fm-list-header-wide");c.V(e);var g=new A.Ca("div","fm-list-header-label-wrap");e.V(g);var l=new A.Oc(f.model.A.j.Hu);g.V(l);this.Ie=new A.Ca("div","fm-search-wrap");e.V(this.Ie);this.ee=new A.Ca("a","fm-search-btn");this.ee.ue(0);this.ee.$j("button");this.Ie.V(this.ee);e=new A.Ca("span","fm-ui-icon fm-icon-act_search");this.ee.V(e);this.Wd=new A.Pi;this.Wd.Y("fm-search-inp");this.Ie.V(this.Wd);this.Gi=new A.Ca("span","fm-close-search fm-ui-icon fm-icon-act_close");
this.Gi.ue(0);this.Gi.$j("button");this.Ie.V(this.Gi);e=new A.Ca("div","fm-list-content");c.V(e);this.Ob=new A.hd.zh;this.Ob.Y("fm-lst-measures");this.Ob.ue();this.Ob.useCache=!1;this.Ob.Xf("caption");e.V(this.Ob);this.lB=new A.$I;this.lB.Za(f.model.A.j.p5);c.V(this.lB);this.Uba=new A.Ca("div","fm-ui-row fm-func-btn-group");c.V(this.Uba);this.bS=[];e=this.controller.O_;for(g=0;g<e.length;g++)l=new d,l.data=e[g],l.F.attr("data-index",g),l.Za(e[g].label),l.Mh(f.model.A.j[l.data.Re]),l.hc(f.model.A.j[l.data.Re]),
this.Uba.V(l),this.bS.push(l);e=new A.Ca("div","fm-formula-wrap");c.V(e);this.Ch=new A.Xu;this.Ch.Y("fm-formula-input");this.Ch.N(A.Pi.Qw,function(){return a.aEa()});e.V(this.Ch);this.GT=new A.Oc(f.model.A.j.q5);this.GT.Y("fm-prompt");e.V(this.GT);this.Nf=new k.Vc.PH;this.Nf.Y("fm-aggregations-view");this.Nf.$a();c.V(this.Nf);this.xi=new A.No.wE(c.F);this.xi.$a();c.V(this.xi)};b.prototype.Df=function(){this.Dp.Za(f.model.A.j.RV);this.uV.Za(f.model.A.j.r5);this.Ah.Za(f.model.A.j.Ow);this.ze.Za(f.model.A.j.Jk);
this.wq.lD(f.model.A.j.QV);this.lB.Za(f.model.A.j.p5);this.GT.Za(f.model.A.j.q5);this.xw.Mh(f.model.A.j.t5);this.Dp.Cm();this.uV.Cm();this.wq.hc(f.model.A.j.QV);this.Ob.hc(f.model.A.j.Xia);this.Ch.hc(f.model.A.j.JN);for(var a=ja(this.bS),c=a.next();!c.done;c=a.next())c=c.value,c.Mh(f.model.A.j[c.data.Re]),c.hc(f.model.A.j[c.data.Re])};b.prototype.Bn=function(a){var c=new A.Aa("span");c.Y("fm-drag-handle");c.Y("fm-helper");c.Y("fm-draggable");c.P("width",a.P("width"));c.P("position","absolute");c.P("z-index",
100);c.attr("data-index",a.attr("data-index"));c.text(a.text());return c};b.prototype.aEa=function(){this.GT.isVisible(0==this.Ch.yi().length)};h.Pja=b;u(d,A.Jf);h.FLa=d})(k.Ka||(k.Ka={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.mh.call(this,k.Hb.zb.F)||this;b.oi=0;b.ex=0;b.uo=0;b.Ye=0;b.dg=0;b.Y("fm-drillthrough-view");b.te();return b}u(d,A.Vb.mh);d.prototype.te=function(){var b=this;this.LE=new A.Vb.ye("fm-header-container");this.V(this.LE);this.mr=new A.Oc;this.mr.Y("fm-popup-title");this.mr.gV(!1);this.LE.V(this.mr);this.uA=new A.Jf;this.uA.Y("fm-ui-btn-close");this.uA.Mh(f.model.A.j.cpa);this.uA.N(A.sd.Xe,function(){return b.close()});this.LE.V(this.uA);
this.wA=new A.Vb.ye("fm-details-container");this.V(this.wA);this.fF=new A.Oc;this.fF.Y("fm-ui-label-light");this.wA.V(this.fF);this.dF=new A.Oc;this.dF.Y("fm-ui-label-light");this.wA.V(this.dF);this.eF=new A.Oc;this.eF.Y("fm-ui-label-light");this.wA.V(this.eF);this.GJ=new A.Vb.ye("fm-grid-container");this.V(this.GJ);this.ka=new k.X.sheet.flat.sI;this.ka.ue(-1);this.ka.il=!0;this.GJ.F.V(this.ka);this.K8=new h.qka(this);this.Ms=new h.pq.ska;this.GJ.V(this.Ms)};d.prototype.r3=function(){f.v(this.Ce)||
this.Ce.cm()};d.prototype.Xr=function(b,a,c,e,g,l){a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?null:e;g=void 0===g?null:g;l=void 0===l?null:l;this.G=void 0===b?null:b;f.v(this.Ce)&&(this.Ce=new h.rka(this));this.Ce.update(a,c,e,g,l)};d.prototype.close=function(){A.Vb.mh.prototype.close.call(this);this.Wa(k.X.mc.a6);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Z5))};d.prototype.Nj=function(b,a,c,e){c=void 0===c?null:c;e=void 0===e?null:e;f.v(this.Ce)||this.Ce.Nj(b,a,c,e)};d.prototype.dispose=
function(){this.G=null;this.ka&&(this.ka.dispose(),this.ka=null);this.Ce&&(this.Ce.dispose(),this.Ce=null);this.Ms.Od();this.Ms.sg();this.Ms=null;this.mr.sg();this.mr=null;this.fF.sg();this.fF=null;this.dF.sg();this.dF=null;this.eF.sg();this.eF=null;this.LE.sg();this.LE=null;this.GJ.sg();this.GJ=null;this.wA.sg();this.wA=null;this.uA.sg();this.uA.Od();this.uA=null;this.Od()};h.WD=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(b){var a=this;this.view=b;this.view.N(k.X.mc.a6,function(){return a.kDa()});this.view.ka.N(k.X.mc.GI,function(c){return a.JC(c)});this.view.ka.N(k.X.mc.X5,function(c){return a.eEa(c)});this.view.ka.N(k.X.mc.W5,function(c){return a.dEa(c)});this.view.Ms.N(k.Vc.mo.ZN,function(){return a.h2()});this.view.Ms.N(k.Vc.mo.fI,function(c){return a.g2(c)})}d.prototype.sR=function(b){return f.model.Ta.U().Ga.fa.Hc?f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Nc?new h.Pr.PW(b):
f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.API?new h.Pr.Bia(b):f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Zd?new h.Pr.zna(b):new h.Pr.RW(b):new h.us(b)};d.prototype.update=function(b,a,c,e,g){var l=this;b=void 0===b?null:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?null:e;g=void 0===g?null:g;f.v(this.model)||this.model.dispose();this.model=this.sR(this.view.G);this.model.cell=g;this.model.N(h.us.YN,function(){return l.ip()});this.model.update(b,a,c,e);this.view.ka.slice=b;this.view.ka.WB=function(m,n){return l.model.getData(m,
n)};this.view.ka.MK.tga=function(m,n,p){return l.saveData(m,n,p)}};d.prototype.ip=function(){function b(){a.view.ka.mb(k.pi.fo,b);f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.b6,a.model.cell))}var a=this;this.view.open();this.view.ka.N(k.pi.fo,b);this.cm()};d.prototype.cm=function(){this.model.s3();this.bia();this.view.Ms.isVisible(this.model.XAa);this.view.tj(k.Hb.tu-70);var b=k.Hb.zb.F.qd(!0)-this.view.wA.F.qd(!0)-this.view.LE.F.qd(!0)-30-this.view.F.padding.top-this.view.F.padding.bottom-40,a=this.view.cf()-
(parseInt(this.view.F.P("border-left-width"))+parseInt(this.view.F.P("border-right-width")));this.view.ka.tr();this.view.ka.resize(a,b);this.view.ka.width=a;this.view.ka.height=b;this.view.ka.Sba(1);this.view.ka.MK.Rga(f.model.B.C.TF&&!f.u.Na.U().fa.Hc);this.view.ka.Oga(this.model.FM,this.model.T$);this.view.ka.gb();this.view.Go()};d.prototype.bia=function(){this.view.mr.Za(f.model.A.j.mka);var b=this.model.Eza();this.view.fF.Za(b,!0);this.view.fF.isVisible(!f.ha(b));b=this.model.nya();this.view.dF.Za(b,
!0);this.view.dF.isVisible(!f.ha(b));b=this.model.dza();this.view.eF.Za(b,!0);this.view.eF.isVisible(!f.ha(b))};d.prototype.JC=function(b){f.model.Ta.U().Ga.fa.Hc||b.Wda||this.Sva(b.cell);b.cell&&b.cell.th&&b.cell.bB==k.X.W.Mp.UI&&(this.model.bN(b.cell),this.view.ka.clearData(),this.view.ka.gb())};d.prototype.Sva=function(b){if(f.model.Qa.U().G0(f.model.Qa.KN)&&!f.v(b)){var a=this.model.Cza(b.hb);f.v(a)||(b.il=!0,b=b.La(),b.rowData=a,f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.KN,b)))}};d.prototype.eEa=
function(b){this.model.Pv.lHa(b.data.index);this.model.Fp(this.model.Pv)};d.prototype.dEa=function(b){var a=b.data.zxa;b=b.data.BJa;b=Math.max(0,Math.min(b,this.model.Pv.selected.length));a<b&&b--;a!=b&&(this.model.Pv.MCa(a,b),this.model.Fp(this.model.Pv))};d.prototype.h2=function(){this.view.Ms.open(this.model.Pv)};d.prototype.g2=function(b){this.model.Fp(b.data)};d.prototype.Nj=function(b,a,c,e){var g=this.model.T$,l=0<this.model.FM?this.model.FM+1:0;b==f.model.vc.Li.Vz&&f.model.vc.n6.Wf(this.view,
a,e);b==f.model.vc.Li.Lu&&f.model.vc.m6.Wf(this.view,a,g,l,e);b==f.model.vc.Li.xh&&f.model.vc.l6.Wf(this.view,a,g,l,c);b==f.model.vc.Li.JSON&&f.model.vc.o6.Wf(this.view,a,g,l,c);b==f.model.vc.Li.dA&&f.model.vc.Ke.Wf(this.view,a,g,l,e);b==f.model.vc.Li.XD&&(a.qz=a.qz&&(f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Nc||f.model.Ta.U().Ga.fa.Ba==f.u.i.oa.Zd)&&f.model.B.C.Jq,f.model.vc.q6.Wf(this.view,a,g,l))};d.prototype.saveData=function(b,a,c){var e=this;this.timer&&this.timer.sl&&this.timer.stop();null==this.timer&&
(this.timer=new x.Es(1E3,1));this.timer.N(x.Ze.Ok,function(){return e.DFa()});this.timer.start();this.model.saveData(b,a,c);this.cm()};d.prototype.DFa=function(){this.bia();this.timer.stop()};d.prototype.kDa=function(){this.view.ka.MK.zha();f.model.B.C.TF&&this.model.XZ&&(this.model.XZ=!1,f.u.Na.U().refresh())};d.prototype.dispose=function(){this.timer&&(this.timer.stop(),this.timer=null);this.model&&(this.model.dispose(),this.model=null);this.view=null};h.rka=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||
(w={}));
(function(f){(function(k){(function(h){function d(b){var a=y.Fc.call(this)||this;a.jH=NaN;a.VG={};a.XZ=!1;a.cell=null;a.sm=b;return a}u(d,y.Fc);d.prototype.update=function(b,a,c,e){b=void 0===b?null:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?null:e;this.Lb=b;this.fg=this.SZ(b);this.Qg=c;this.lg=a;this.measure=e;this.VG={};this.Jd()};d.prototype.Fp=function(b){this.fg=b;b=[];if(this.fg.Wn&&0<this.fg.Wn.length){for(var a=0;a<this.fg.Wn.length;a++){var c=this.fg.Wn[a].level;b.push(void 0===c?
this.fg.Wn[a].hierarchy:c)}this.Lb.drillThrough=b}else this.Lb.drillThrough=this.fg.selected;this.Jd()};d.prototype.SZ=function(b){for(var a=new h.pq.e6,c=this.Lb.Wc.rc(!1),e=0;e<c.length;e++){var g=c.ea(e);a.Pe.Pa(g.uniqueName,{uniqueName:g.uniqueName,caption:g.caption,ra:g.ra.Ic(!0).slice(1)})}e=null!=b.drillThrough&&0<b.drillThrough.length?b.drillThrough:null!=f.model.Ta.U().Ga.HS&&0<f.model.Ta.U().Ga.HS.length?f.model.Ta.U().Ga.HS:b.flatten().Ic(!0);for(c=0;c<e.length;c++)g=e[c],a.Pe.Bb(g)&&a.iF(g);
e={};for(c=0;c<b.Of.length;c++)g=b.Of[c],g.Ka&&0<g.Sd.length&&this.aca(g.Sd,e);for(var l in e)c=b.Wc.$c(l),f.v(c)||c.Ka||a.iF(l);return a};d.prototype.aca=function(b,a){if(void 0!==b[2]){var c,e;for(e in b[1]){var g=c=b[1][e];Array.isArray(c)&&(g=this.aca(c,a));if(g==f.u.i.UN.TN&&b[0]==f.u.i.jc.dI)break;void 0!==g&&(a[g]=1)}}};d.prototype.s3=function(){this.Jd(!1)};d.prototype.Jd=function(b){b=void 0===b?!0:b;this.data=this.sm.drillThrough(this.Qg,this.lg,this.measure);this.keys=this.data.shift();
var a=this.sm.Pt(this.Qg,this.lg);this.CCa(a);this.rZ();b&&this.Wa(d.YN)};d.prototype.CCa=function(b){this.jH=NaN;if(!f.v(b))if(Array.isArray(b)){this.jH=this.data[0].length;for(var a=0;a<b.length;a++)this.data[a].push(b[a])}else f.v(this.data[0])||(this.jH=this.data[0].length,this.data[0].push(b))};d.prototype.bN=function(b){var a=b.measure&&b.measure.type==f.u.i.Ja.sc?f.u.i.xa.bc:f.u.i.xa.Ec,c=!0;this.dR==b.hierarchy?(this.ui=this.ui==f.u.i.xa.bc?f.u.i.xa.Ec:this.ui==f.u.i.xa.Ec?f.u.i.xa.bc:a,c=
!0):(this.ui=a,c=!1);this.dR=b.hierarchy;var e=this.Aca(b.hierarchy),g=b.hierarchy.uj(b.hierarchy.yd,!0,this.ui);c?this.data.reverse():this.data.sort(function(l,m){return g.indexOf(l[e])-g.indexOf(m[e])})};d.prototype.Cza=function(b){if(f.v(this.data)||f.v(this.data[b-1]))return null;for(var a=[],c=0;c<this.Pv.Pe.length;c++){var e=this.Dza(b,this.fg.Pe.qh(c));a.push(null==e?e:e.La())}return a};d.prototype.Dza=function(b,a){a=this.Lb.Wc.Mg(a);if(null==a)return null;var c=this.Lb.Ee(a.uniqueName);return null==
c?null:this.qca(b,-1,a,c)};d.prototype.rZ=function(){this.ui=this.dR=null};d.prototype.Eza=function(){for(var b,a=[],c=0;c<this.Qg.length;c++){b=this.Lb.vb.ea(c);if(null==b)return null;b=b.va(this.Qg[c]);a.push(f.O.In(b.caption,!0,!0))}a=0<a.length?f.O.bind(f.model.A.j.lka,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")};d.prototype.nya=function(){for(var b,a=[],c=0;c<this.lg.length;c++){b=this.Lb.Cb.ea(c);if(null==b)return null;b=b.va(this.lg[c]);a.push(f.O.In(b.caption,!0,!0))}a=0<a.length?
f.O.bind(f.model.A.j.kka,a.join(" - ")):"";return a=a.replace(/<br\s*[\/]?>/gi," ")};d.prototype.dza=function(){var b=this.measure.Dh(this.measure.uniqueName,this.measure.$).clone(),a=this.sm.Fa(this.Qg,this.lg,this.measure);this.measure.$==f.u.i.ca.li?b.pd="":f.u.i.ca.Tf(this.measure.$)?b.Tf=!0:f.u.i.ca.Xd(this.measure.$)&&(b.Xd=!0,b.pd="%");var c=f.u.i.Ja.Yb==this.measure.type&&f.u.i.ca.eo(this.measure.$),e=f.u.i.Ja.Oa==this.measure.type||f.u.i.Ja.Dc==this.measure.type;b=c?f.O.Hw(a,f.model.B.C.Cp):
e?this.cell.label:x.Tb.format(a,b);b=f.O.bind(f.model.A.j.nka,f.O.In(this.measure.label,!0,!0),b);return b=b.replace(/<br\s*[\/]?>/gi," ")};d.prototype.getData=function(b,a){return f.v(this.fg)?null:0==b?this.ZB(a):0>a||a>=this.fg.Wn.length?null:this.lG(b,a)};d.prototype.ZB=function(b){var a=new k.X.W.Yd;a.il=!0;a.th=!0;if(0>b||b>=this.fg.Wn.length)return null;var c=this.fg.Wn[b].level;b=this.Lb.Wc.Mg(this.fg.Wn[b].hierarchy);if(null==b)return null;void 0!==c&&(c=b.Gt(c),null!=c&&(a.label=b.caption+
" / "+c.caption));f.ha(a.label)&&(a.label=b.caption);a.hierarchy=b;a.measure=this.Lb.Wc.Ee(b.uniqueName);this.BBa&&(a.Wm=!0,a.hierarchy==this.dR&&(a.Yn=this.ui==f.u.i.xa.bc,a.Zn=this.ui==f.u.i.xa.Ec));return a};d.prototype.lG=function(b,a){if(f.v(this.data)||f.v(this.data[b-1]))return null;var c=this.Lb.Wc.Mg(this.fg.Wn[a].hierarchy);if(null==c)return null;var e=this.Lb.Ee(c.uniqueName);return null==e?null:this.qca(b,a,c,e)};d.prototype.qca=function(b,a,c,e){var g=new k.X.W.Yd;g.hb=b;g.lc=a;g.il=
!0;g.Jh=!0;var l=c.va(this.mza(b,this.Aca(c)));g.label=this.gza(l,-1!=a?this.fg.Wn[a].level:void 0);g.hierarchy=c;a=this.wS(e);e.type!=f.u.i.Ja.fb&&e.type!=f.u.i.Ja.Yb&&e.type!=f.u.i.Ja.Oa&&e.type!=f.u.i.Ja.Dc||f.v(l)||(g.value=l.ec,g.label=e.type==f.u.i.Ja.fb?x.Tb.format(g.value,a):l.caption,g.numeric=g.numeric||e.type!=f.u.i.Ja.fb?g.numeric:!0);f.ha(a.textAlign)||g.Sx({"text-align":a.textAlign});g.DM=this.Pt(b);g.measure=e;return g};d.prototype.Pt=function(b){return isNaN(this.jH)?void 0:this.data[b-
1][this.jH]};d.prototype.wS=function(b){f.v(this.VG[b.uniqueName])&&(this.VG[b.uniqueName]=b.Dh(b.uniqueName,b.$,!0).clone());return this.VG[b.uniqueName]};d.prototype.mza=function(b,a){for(;null==this.data[b-1][a];)a--;return this.data[b-1][a]};d.prototype.gza=function(b,a){var c="";if(f.v(b))return c;c=b.caption;if(!f.ha(a))for(;b;){if(b.level.uniqueName==a){c=b.caption;break}b=b.parent}return c};d.prototype.Aca=function(b){var a=this.keys.indexOf(b.uniqueName);2<b.ra.length&&(a=this.keys.indexOf(b.ra.qh(b.ra.length-
1)));return a};d.prototype.saveData=function(b,a,c){(a=this.getData(b,a))&&a.label!=c&&a.value!=c&&(c=this.sm.save(this.Qg,this.lg,a.hierarchy,c,b-1),this.data[b-1][this.keys.indexOf(a.hierarchy.uniqueName)]=c,this.XZ=!0)};d.prototype.dispose=function(){this.keys=this.data=this.measure=this.Qg=this.lg=this.fg=this.Lb=this.sm=null;this.jH=NaN;this.VG=this.ui=this.dR=null};q.Object.defineProperties(d.prototype,{Pv:{configurable:!0,enumerable:!0,get:function(){return this.fg}},T$:{configurable:!0,enumerable:!0,
get:function(){return f.v(this.Pv)?0:this.Pv.Wn.length}},FM:{configurable:!0,enumerable:!0,get:function(){return f.v(this.data)?0:this.data.length}},XAa:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.PIa?f.u.Na.U().fa.fT:!1}},BBa:{configurable:!0,enumerable:!0,get:function(){return!f.model.Ta.U().Ga.fa.Hc&&f.model.Ta.U().Ga.fa.Ba!=f.u.i.oa.Gf&&f.model.Ta.U().Ga.fa.Ba!=f.u.i.oa.API}}});d.YN="dataloaded";h.us=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){return k.X.wW.apply(this,arguments)||this}u(d,k.X.wW);d.prototype.show=function(b,a){var c=[];c=this.wR(c,b?b.La():null,"drillthrough");return 0<c.length?(this.ER(c,a),!0):!1};h.qka=d})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){this.Gj=[];this.ym=[];this.Pe=new f.nb}b.prototype.iF=function(a){this.rd(a)||(this.Gj.push(a),this.ym=null)};b.prototype.lHa=function(a){this.OS?this.ym.splice(a,1):(this.Gj.splice(a,1),this.ym=null)};b.prototype.MCa=function(a,c){this.OS?f.Ha.S1(this.ym,a,c):(f.Ha.S1(this.Gj,a,c),this.ym=null)};b.prototype.rd=function(a){return this.OS?0<=this.ym.findIndex(function(c){return void 0!==c.level?c.level===a:c.hierarchy===a}):0<=this.Gj.indexOf(a)};
b.prototype.isEqual=function(a){if(f.v(a)||f.v(a.Gj)||this.Gj.length!=a.Gj.length)return!1;for(var c=0;c<this.Gj.length;c++)if(this.Gj[c]!=a.Gj[c])return!1;return!0};b.prototype.clone=function(){var a=new b;a.Pe=this.Pe.slice();a.Gj=a.Gj.slice();return a};q.Object.defineProperties(b.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){return this.Gj},set:function(a){f.v(a)||(this.Gj=a,this.ym=null)}},OS:{configurable:!0,enumerable:!0,get:function(){return!f.v(this.ym)&&this.Gj.length!==
this.ym.length}},Wn:{configurable:!0,enumerable:!0,get:function(){if(!f.v(this.ym))return this.ym;this.ym=[];for(var a=0;a<this.Gj.length;a++){var c=this.Pe.getItem(this.Gj[a]);if(!f.v(c))if(c=c.ra,void 0!==c&&1<c.length)for(var e=0;e<c.length;e++)this.ym.push({hierarchy:this.Gj[a],level:c[e]});else this.ym.push({hierarchy:this.Gj[a]})}return this.ym}}});d.e6=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){var a=A.Ca.call(this)||this;a.Y("fm-fields-view-wrap");a.te();a.Ce=new d.tka(k.Hb.zb.F);a.Ce.N(y.da.CLOSED,function(){return a.tM()});a.Ce.N(k.Vc.mo.fI,function(c){return a.X1(c)});return a}u(b,A.Ca);b.prototype.te=function(){var a=this;this.Wr=new A.Jf("fm-btn-open-fields");this.Wr.Mh(f.model.A.j.hP);this.Wr.N(A.sd.Xe,function(){return a.K2()});this.V(this.Wr)};b.prototype.updateLabels=function(){this.Wr.Mh(f.model.A.j.hP)};b.prototype.open=
function(a){this.F.Ua("fm-fields-opened",!0);this.Ce.Fp(a);this.Ce.view.open();this.kv=!0};b.prototype.close=function(){this.Ce.view.$a();this.Ce.view.close()};b.prototype.K2=function(){this.Wa(k.Vc.mo.ZN)};b.prototype.tM=function(){this.kv=!1;this.F.Ua("fm-fields-opened",!1)};b.prototype.X1=function(a){this.Da(a)};q.Object.defineProperties(b.prototype,{Zt:{configurable:!0,enumerable:!0,get:function(){return this.kv}}});d.ska=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){return k.Vc.flat.HN.call(this,a)||this}u(b,k.Vc.flat.HN);b.prototype.Fp=function(a,c){this.Lb=a;this.Ns=c;this.Ma=a.Pe.Ic();this.zk(a.selected);this.sH(this.Ma,a.selected)};b.prototype.wL=function(a){var c=this.Lb.clone();c.selected=this.Nha(this.Ma,a).map(function(e){return e.uniqueName});return c};b.prototype.wT=function(){return!1};b.prototype.hu=function(){};b.prototype.iu=function(){};b.prototype.update=function(){};b.prototype.nD=
function(){};q.Object.defineProperties(b.prototype,{slice:{configurable:!0,enumerable:!0,get:function(){return this.Lb}},sC:{configurable:!0,enumerable:!0,get:function(){return!1}},vT:{configurable:!0,enumerable:!0,get:function(){return!1}}});d.uka=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=k.Vc.flat.rW.call(this,a)||this;a.Y("fm-fields-view");a.Y("fm-dt-fields");a.QC.Y("fm-dt-fields-overlay");k.Hb.zb.F.V(a.F);return a}u(b,k.Vc.flat.rW);d.vka=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=k.Vc.flat.lO.call(this,a,!1)||this;a.model=a.Ab;return a}u(b,k.Vc.flat.lO);b.prototype.sR=function(a){return new d.uka(a)};b.prototype.taa=function(a){return new d.vka(a)};b.prototype.Fp=function(a){this.model.Fp(a,k.Vc.mo.PR);this.cm();this.view.Pd&&this.view.Pd.jf(this.Ab.r0());this.view.Df()};b.prototype.ae=function(){for(var a=[],c=this.view.ab.F.find("li",!0),e=0;e<c.length;e++){var g=parseInt(c[e].attr("data-index"));a.push(g)}a=
this.Ab.wL(a);this.model.slice.isEqual(a)||this.Wa(k.Vc.mo.fI,this,a)};d.tka=b})(h.pq||(h.pq={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=h.us.call(this,a)||this;a.af=f.u.Na.U();return a}u(b,h.us);b.prototype.s3=function(){};b.prototype.Jd=function(){var a=this;this.data=[];this.af.drillThrough(this.Qg,this.lg,this.measure,function(c){return a.ip(c)},this.fg.selected)};b.prototype.ip=function(a){this.data=a;f.za(!1);this.Wa(h.us.YN)};b.prototype.kca=function(a){a=this.af.fa.mapping.Fa(a,"time_zone");return f.v(a)?f.model.B.C.Mj:(a=Number(a.split(":",1)[0]),isNaN(a)?
f.model.B.C.Mj:a)};b.prototype.lG=function(a,c){if(f.v(this.data)||f.v(this.data[a]))return null;var e=this.Lb.Wc.Mg(this.fg.selected[c]);if(null==e)return null;var g=this.Lb.Ee(e.uniqueName);if(null==g)return null;var l=this.data[a][c];g=this.wS(g);var m=new k.X.W.Yd;m.hb=a;m.lc=c;m.il=!0;m.Jh=!0;if(e.type==f.u.i.Gc.Op)"number"==typeof l&&(m.label=x.Tb.format(l,g),m.value=l);else if(e.type==f.u.i.Gc.Oa)if("number"===typeof l)a=this.jca(e.uniqueName),e=this.kca(e.uniqueName),m.label=f.O.Gw(l,a,e),
m.value=l;else if("string"!==typeof l||f.ha(l))m.label=f.model.A.j.cn;else try{var n=f.O.dT(l),p=this.jca(e.uniqueName),t=this.kca(e.uniqueName);m.label=n?x.gh.format(new Date(l),p,t):l}catch(r){m.label=l}else m.label=l;f.ha(g.textAlign)||m.Sx({"text-align":g.textAlign});return m};b.prototype.jca=function(a){return this.af.fa.mapping.Fa(a,"format",f.model.B.C.mq)};b.prototype.dispose=function(){h.us.prototype.dispose.call(this);this.af=null};q.Object.defineProperties(b.prototype,{FM:{configurable:!0,
enumerable:!0,get:function(){return f.v(this.data)?0:this.data.length-1}}});d.RW=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(a){a=h.us.call(this,a)||this;a.af=f.u.Na.U();return a}u(b,h.us);b.prototype.update=function(a,c,e,g){this.Lb=void 0===a?null:a;this.Qg=void 0===e?null:e;this.lg=void 0===c?null:c;this.measure=void 0===g?null:g;this.VG={};this.Jd()};b.prototype.s3=function(){};b.prototype.Jd=function(){var a=this;this.data=[];this.af.drillThrough(this.Qg,this.lg,this.measure,function(c){return a.ip(c)})};b.prototype.Fp=function(a){this.fg=a;this.wX={};
for(a=0;a<this.fg.selected.length;a++){var c=this.fg.selected[a];this.wX[c]=this.fg.Pe.indexOf(c)}this.Wa(h.us.YN)};b.prototype.ip=function(a){f.za(!1);this.data=a;this.Fp(this.SZ(this.Lb))};b.prototype.SZ=function(a){for(var c=new h.pq.e6,e=ja(this.data[0]),g=e.next();!g.done;g=e.next())g=g.value,g=g.replace("$",""),c.Pe.Pa(g,{uniqueName:g,caption:this.lza(g)});if(!f.model.B.C.dha&&this.af.fa.fT){g=a.flatten();e=c.Pe.Ic(!0);for(var l=0;l<g.length;l++){var m=g.ea(l);if(2>=m.ra.length)m=this.pCa(m,
e),f.ha(m)||c.iF(m);else if(null!=m.nc)m=m.ig.split("."),m=0<m.length?m[0]+"."+m[m.length-1]:null,-1<e.indexOf(m)&&c.iF(m);else{m=m.uniqueName.split(".");for(var n=0;n<e.length;n++)-1<(m[0]==e[n].split(".")[0]?n:-1)&&c.iF(e[n])}}for(g=0;g<a.Of.length;g++)l=this.qCa(a.Of[g],e),f.ha(l)||c.iF(l)}if(f.model.B.C.dha||0==c.selected.length)c.selected=c.Pe.Ic(!0);return c};b.prototype.lza=function(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};b.prototype.pCa=function(a,c){for(var e=0;e<c.length;e++){var g=c[e];if(g==a.uniqueName||0<=g.indexOf("["+a.caption+"]"))return g}return null};b.prototype.qCa=function(a,c){for(var e=0;e<c.length;e++){var g=c[e];if(g==a.uniqueName)return g;var l=a.uniqueName.split(".");if(g=="["+a.yg+"]."+l[l.length-1])return g;l=g;l="["==l.charAt(0)?l.substr(1):l;if(0<=a.uniqueName.indexOf(l))return g}return null};b.prototype.ZB=function(a){var c=new k.X.W.Yd;c.il=!0;c.th=!0;a=this.fg.selected[a];if(f.v(a))return null;
c.label=this.fg.Pe.getItem(a).caption;return c};b.prototype.lG=function(a,c){if(f.v(this.data)||f.v(this.data[a]))return null;var e=this.fg.selected[c],g="[Measures].["+this.fg.Pe.getItem(e).caption+"]",l=this.sm.measures.find(function(n){return n.uniqueName===g});e=this.data[a][this.wX[e]];var m=new k.X.W.Yd;m.hb=a;m.lc=c;m.il=!0;m.Jh=!0;f.model.B.C.Jq||null==l?"number"==typeof e?(m.label=f.model.B.C.Jq||null!=l?x.Tb.format(e):x.Tb.format(e,f.model.Zb.Ni.oS()),m.value=e):(m.label=e,null==l&&m.Sx({"text-align":"left"})):
(a=this.wS(l),m.label=x.Tb.format(e,a),m.value=e,""!=a.textAlign&&m.Sx({"text-align":a.textAlign}));return m};b.prototype.dispose=function(){h.us.prototype.dispose.call(this);this.wX=this.af=null};d.PW=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));(function(f){(function(k){(function(h){(function(d){function b(){return d.PW.apply(this,arguments)||this}u(b,d.PW);d.zna=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){(function(d){function b(){return d.RW.apply(this,arguments)||this}u(b,d.RW);b.prototype.lG=function(a,c){if(f.v(this.data)||f.v(this.data[a]))return null;var e=this.fg.Wn[c].level,g=this.Lb.Wc.Mg(this.fg.Wn[c].hierarchy);if(null==g)return null;var l=e?g.Gt(e):null,m=this.Lb.Ee(g.uniqueName);if(null==m)return null;e=this.data[a][c];m=this.wS(m);var n=new k.X.W.Yd;n.hb=a;n.lc=c;n.il=!0;n.Jh=!0;g.type===f.u.i.Gc.Op?(n.label="number"===typeof e?x.Tb.format(e,m):
e,n.value=e):g.type===f.u.i.Gc.Oa||l&&f.u.i.eb.MAa(l.type)?"number"==typeof e?(l&&l.type===f.u.i.eb.Dc?(a=this.af.fa.mapping.Fa(g.uniqueName,"format",f.model.B.C.Yk),n.label=f.O.jN(e,a,f.model.B.C.Mj)):(a=this.af.fa.mapping.Fa(g.uniqueName,"format",f.model.B.C.mq),n.label=f.O.Gw(e,a,f.model.B.C.Mj)),n.value=e):"string"!==typeof e||f.ha(e)||"null"===e?n.label=!f.model.B.C.zr||null!==e&&"null"!==e?f.model.A.j.cn:f.model.A.j.XV:n.label=e:n.label=e;f.ha(m.textAlign)||n.Sx({"text-align":m.textAlign});
return n};d.Bia=b})(h.Pr||(h.Pr={}))})(k.vf||(k.vf={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){function h(a,c,e,g){var l=y.da.call(this,b.$V)||this;l.measure=a;l.lg=c;l.Qg=e;l.cell=g;return l}function d(a){var c=y.da.call(this,b.Uw)||this;c.hierarchy=a;return c}function b(){}b.Uw="FILTER_OPEN";b.oW="FILTER_CLOSE";b.$V="DRILL_THROUGH_OPEN";b.F5="CONTEXT_MENU_OPEN";b.YW="RENDER_COMPLETE";b.Nw="beforegriddraw";b.fo="aftergriddraw";k.pi=b;u(d,y.da);k.kO=d;u(h,y.da);k.d6=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.pr=[];this.wd=new f.aE;this.fe=[];this.ld="";this.re=!0}d.prototype.bV=function(b){this.Xg=b};d.prototype.$ga=function(b){this.$f=b;this.pr=this.Xg.uj(this.Xg.yd,!1,this.$f)};d.prototype.Ega=function(b,a){var c=this.Ge()?this.fe:this.pr;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)};d.prototype.select=function(b,a){this.re!=a?this.wd.add(b):this.wd.delete(b);this.wd.size!=this.pr.length||
this.Ge||this.selectAll(!this.re)};d.prototype.search=function(b,a){b=b.toLowerCase();this.ld===b?a(this.fe):(this.ld=b,0==this.ld.length?a():f.u.Na.U().vp(this.Xg,b,a))};d.prototype.Zga=function(b){null!=b?this.fe=b:this.fe.length=0};d.prototype.selectAll=function(b){if(this.Ge())for(var a=this.fe.length,c=0;c<a;c++)f.O.contains(this.Xg.va(this.fe[c]).caption,this.ld)&&this.select(this.fe[c],b);else this.re=b,this.wd.clear()};d.prototype.Cga=function(){};d.prototype.Yv=function(){var b=this.re||
this.Ge()?this.re&&this.Ge()?this.fe.length+this.Qua()-this.wd.size:this.re||0!=this.wd.size?this.pr.length==this.wd.size?this.fe.length:this.pr.length-this.wd.size:this.wd.size:this.wd.size;return 0<b?b:0};d.prototype.Qua=function(){for(var b=0,a=0;a<this.fe.length;a++)this.wd.has(this.fe[a])&&b++;return this.wd.size-b};d.prototype.sy=function(){if(this.Ge()){for(var b=0,a=0;a<this.fe.length;a++)!this.wd.has(this.fe[a])==this.re&&b++;return b}return this.Yv()};d.prototype.ZU=function(b){this.wd.clear();
var a=b.length;this.re=0==a;if(!this.re)for(var c=0;c<a;c++)this.wd.add(b[c])};d.prototype.qS=function(){var b=[];var a=this.Ge()&&this.re?this.fe:this.wd.Ic();var c=a.length;if(this.Ge()&&this.re)for(a=0;a<this.fe.length;a++)this.wd.has(this.fe[a])||b.push(this.fe[a]);else for(var e=0;e<c;e++)b[e]=a[e];a=this.Ge()&&this.re?!1:0==b.length?!1:this.re;return{items:b,eu:a}};d.prototype.cV=function(b){this.pr=b;this.ld="";this.fe.length=0};d.prototype.l0=function(b,a){var c=[],e=b,g=f.O.In(this.ld.replace(/[-\/\\^$*+?.()|[\]{}]/g,
"\\$&"),!0,!0);g=new RegExp("("+g+")","ig");for(var l=this.Ge()?this.fe:this.pr,m;e<a&&!(e>l.length-1);e++){var n=this.Xg.va(l[e]);m=f.O.In(n.caption,!0,!0);n={Xb:n,label:this.Ge()?m.replace(g,'<b class="fm-search-highlight">$&</b>'):m,rd:(this.wd.has(n.ordinal)?!this.re:this.re)?1:0,lea:0,HHa:a-b<l.length-1?15:0,ah:n.ah&&"Others"!==m};c.push(n)}return c};d.prototype.getItem=function(b){return(this.Ge()?this.fe:this.pr)[b]};d.prototype.rG=function(){return this.Ge()?this.fe.length:this.pr.length};
d.prototype.getTotalLength=function(){return this.rG()};d.prototype.Ge=function(){return 0<this.ld.length};d.prototype.expand=function(){};d.prototype.collapse=function(){};h.QW=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){this.ed=[];this.wd=[];this.fe=[];this.Zj=[];this.hy=[];this.ld="";this.re=!0;this.$f=f.u.i.xa.Zc}d.prototype.bV=function(b){this.Xg=b;this.ed.length=0};d.prototype.$ga=function(b){this.$f=b;this.ed.length=0;this.R0(this.Xg.yd,-1)};d.prototype.cV=function(b){for(var a=0,c=b.length,e;a<c;a++)e=this.Xg.va(b[a]),e.Wb||(this.ed.push(b[a]),e.Pg&&e.children&&0<e.children.length&&(this.hy.push(b[a]),this.cV(this.$f===f.u.i.xa.Zc?e.children.slice():this.Xg.uj(e,
!1,this.$f))))};d.prototype.l0=function(b,a){for(var c=b,e=[],g,l=new RegExp("("+this.ld+")","i"),m=this.Ge()?this.fe:this.ed,n;c<a&&!(c>m.length-1);c++)g=this.Xg.va(m[c]),n=f.O.In(g.caption,!0,!0),g={Xb:g,lea:g.level.sb,label:this.Ge()?n.replace(l,'<b class="fm-search-highlight">$&</b>'):n,rd:this.rd(g),Ge:this.Ge(),zf:this.zf(g),HHa:a-b<m.length-1?17:0,ah:g.ah&&"Others"!=g.caption,LS:this.LS(g)},e.push(g);return e};d.prototype.getItem=function(b){return(this.Ge()?this.fe:this.ed)[b]};d.prototype.rd=
function(b){var a=(-1==this.wd.indexOf(b.ordinal)?this.re:!this.re)?1:0;0<this.wd.length&&-1!=this.Zj.indexOf(b.ordinal)&&(a=-1);return a};d.prototype.LS=function(b){return this.Ge()?!1:!b.Bi};d.prototype.zf=function(b){return this.Ge()||b.Bi?void 0:-1!=this.hy.indexOf(b.ordinal)?!0:!1};d.prototype.rG=function(){return this.Ge()?this.fe.length:this.ed.length};d.prototype.getTotalLength=function(){if(this.Ge()){var b=0;if(f.u.Na.U().fa.Hc)for(var a=this.fe.length,c=0;c<a;c++)f.O.contains(this.Xg.va(this.fe[c]).caption,
this.ld)||b++;return this.fe.length-b}return this.Xg?this.Xg.vi-1:0};d.prototype.Ega=function(b,a){var c=this.Ge()?this.fe:this.ed;b=c.indexOf(b.ordinal);a=c.indexOf(a.ordinal);for(a<b&&(b=a+(a=b,0));b<=a;b++)this.select(this.Xg.va(c[b]),!0)};d.prototype.select=function(b,a){var c=this.wd.indexOf(b.ordinal);this.re!==a?(-1==c&&this.wd.push(b.ordinal),0<b.children.length&&this.FU(b)):(-1!=c&&this.wd.splice(c,1),0<b.children.length&&this.y3(b));a=this.Zj.indexOf(b.ordinal);-1!=a&&this.Zj.splice(a,1);
this.Dga(b);this.wd.length===this.Xg.vi-1&&(this.wd.length=0,this.Zj.length=0,this.re=!this.re)};d.prototype.Cga=function(b){-1==this.Zj.indexOf(b.ordinal)&&(-1==this.wd.indexOf(b.ordinal)?this.y3(b):this.FU(b))};d.prototype.Dga=function(b){var a=b.parent;if(a&&!a.Wb){b=this.wd.indexOf(a.ordinal);var c=this.Zj.indexOf(a.ordinal);var e=-1!=b;this.Yca(a,!1)?(this.Yca(a)?(-1==c&&this.Zj.push(a.ordinal),this.re&&e&&this.wd.splice(b,1)):(-1!=c&&this.Zj.splice(c,1),this.re&&!e&&this.wd.push(a.ordinal)),
!this.re&&e&&this.wd.splice(b,1)):(-1!=c&&this.Zj.splice(c,1),this.re&&e?this.wd.splice(b,1):this.re||e||this.wd.push(a.ordinal));this.Dga(a)}};d.prototype.Yca=function(b,a){a=void 0===a?!0:a;var c=0;b=b.children;for(var e=b.length;c<e;c++)if(-1==this.wd.indexOf(b[c])==this.re==a||-1!=this.Zj.indexOf(b[c]))return!0;return!1};d.prototype.FU=function(b){var a=0;b=b.children;for(var c=b.length;a<c;a++){var e=this.wd.indexOf(b[a]);var g=this.Zj.indexOf(b[a]);-1==e&&this.wd.push(b[a]);-1!=g&&this.Zj.splice(g,
1);e=this.Xg.va(b[a]);0<e.children.length&&this.FU(e)}};d.prototype.y3=function(b){for(var a=0,c,e,g=b.children,l=g.length;a<l;a++)e=this.Xg.va(g[a]),b=this.wd.indexOf(g[a]),c=this.Zj.indexOf(g[a]),-1!=b&&this.wd.splice(b,1),-1!=c&&this.Zj.splice(c,1),0<e.children.length&&this.y3(e)};d.prototype.selectAll=function(b){if(this.Ge())for(var a=this.fe.length,c,e=0;e<a;e++)c=this.Xg.va(this.fe[e]),f.O.contains(c.caption,this.ld)&&this.select(c,b);else this.re=b,this.wd.length=0,this.Zj.length=0};d.prototype.sy=
function(){if(this.Ge()){for(var b=0,a=this.fe.length,c,e=0;e<a;e++)c=this.Xg.va(this.fe[e]),f.O.contains(c.caption,this.ld)&&0>this.wd.indexOf(this.fe[e])==this.re&&b++;return b}return this.Yv()};d.prototype.Yv=function(){var b=this.re?this.Xg.vi-this.wd.length-this.Zj.length-1:this.wd.length;return 0>b?0:b};d.prototype.ZU=function(b){var a=b.length;this.wd.length=0;this.Zj.length=0;if(0==a)this.re=!0;else{this.re=!1;for(var c,e=0;e<a;e++)for(c=this.Xg.va(b[e]),this.wd.push(c.ordinal),0<c.children.length&&
this.FU(c);c.parent&&!c.parent.Wb;)c=c.parent,-1==this.Zj.indexOf(c.ordinal)&&this.Zj.push(c.ordinal)}};d.prototype.qS=function(){var b=[];var a=this.Ge()&&this.re?this.fe:this.wd;for(var c=0,e=a.length;c<e;c++){var g=this.Xg.va(a[c]);var l=g.parent;var m=-1;f.v(l)||(m=a.indexOf(l.ordinal));-1===m&&b.push(g.ordinal)}g=this.Ge()&&this.re?!1:0==b.length?!1:this.re;return{items:b,eu:g}};d.prototype.search=function(b,a){b=b.toLowerCase();this.ld===b?a():(this.ld=b,0==this.ld.length?a():f.u.Na.U().vp(this.Xg,
b,a))};d.prototype.Zga=function(b){null!=b?this.fe=b:this.fe.length=0};d.prototype.Ge=function(){return 0<this.ld.length};d.prototype.expand=function(b){-1==this.hy.indexOf(b.ordinal)&&this.hy.push(b.ordinal);this.iha(b,!0)};d.prototype.collapse=function(b){var a=this.hy.indexOf(b.ordinal);-1!=a&&this.hy.splice(a,1);this.iha(b,!1)};d.prototype.iha=function(b,a){var c=this.ed.indexOf(b.ordinal);a?this.R0(b,c):this.ed.splice(c+1,this.Eca(b))};d.prototype.R0=function(b,a){b=this.$f===f.u.i.xa.Zc?b.children:
this.Xg.uj(b,!1,this.$f);for(var c=b.length-1,e=a+1;-1<c;c--)a=this.Xg.va(b[c]),this.ed.splice(e,0,b[c]),-1<this.hy.indexOf(b[c])&&this.R0(a,e)};d.prototype.Eca=function(b){b=b.children;for(var a=b.length,c=a,e,g=0;g<a;g++)e=this.Xg.va(b[g]),-1<this.hy.indexOf(b[g])&&(c+=this.Eca(e));return c};h.yna=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.ye.call(this)||this;b.Y("fm-filter-view-content");b.te();return b}u(d,A.Vb.ye);d.prototype.te=function(){var b=new A.Ca("div","fm-popup-header fm-ui-row");this.V(b);var a=new A.Ca("div","fm-ui-col-2 fm-vam");b.V(a);this.Dp=new A.Oc;this.Dp.Y("fm-popup-title");a.V(this.Dp);a=new A.Ca("div","fm-ui-col fm-vam fm-ui-btns-row");b.V(a);this.pF=new A.Jf("fm-ui-btn");this.pF.Za(f.model.A.j.Jk);this.Co=new A.Jf("fm-ui-btn-dark");this.Co.Za(f.model.A.j.Ow);
x.Oi.wC||x.Oi.Qn?(a.V(this.pF),a.V(this.Co)):(a.V(this.Co),a.V(this.pF));b=new A.Ca("div","fm-ui-row fm-filter-sort-row");this.V(b);this.bG=new A.Ca("div","fm-ui-col fm-filters-col");b.V(this.bG);this.TR=new A.Oc;this.TR.Y("fm-filter-label");this.TR.Y("fm-ui-label-light");this.bG.V(this.TR);this.Se=new A.jP;this.Se.Y("fm-labels-filter-btn");this.Se.Y("fm-filter-btn");this.NG=new A.Oc;this.Se.V(this.NG);this.Se.F.V(new A.Aa("div","fm-ui-arrow-up",!1));this.bG.V(this.Se);this.lf=new A.jP;this.lf.Y("fm-values-filter-btn");
this.lf.Y("fm-filter-btn");this.nia=new A.Oc;this.lf.V(this.nia);this.lf.F.V(new A.Aa("div","fm-ui-arrow-up",!1));this.bG.V(this.lf);this.dm=new h.Dpa;this.dm.Y("fm-values-filter-view");this.dm.$a();this.V(this.dm);this.En=new h.pka;this.En.Y("fm-dates-filter-view");this.En.$a();this.V(this.En);this.ap=new h.nma;this.ap.Y("fm-labels-filter-view");this.ap.$a();this.V(this.ap);this.hp=new h.Ina;this.hp.Y("fm-numbers-filter-view");this.hp.$a();this.V(this.hp);this.Bp=new h.npa;this.Bp.Y("fm-time-filter-view");
this.Bp.$a();this.V(this.Bp);this.cN=new A.Ca("div","fm-ui-col fm-sort-col");b.V(this.cN);this.pV=new A.Oc;this.pV.Y("fm-sort-label");this.pV.Y("fm-ui-label-light");this.pV.Za(f.model.A.j.sla);this.cN.V(this.pV);b=new A.Ca("div","fm-sort-btns");this.cN.V(b);this.bk=new A.jP;this.bk.Y("fm-sort-btn");this.bk.Za(f.model.A.j.C6);b.V(this.bk);this.ck=new A.jP;this.ck.Y("fm-sort-btn");this.ck.Za(f.model.A.j.F6);b.V(this.ck);this.Rb=new h.xna;this.V(this.Rb)};d.prototype.Df=function(){this.Co.Za(f.model.A.j.Ow);
this.pF.Za(f.model.A.j.Jk);this.bk.Za(f.model.A.j.C6);this.bk.Mh(f.model.A.j.D6);this.bk.hc(f.model.A.j.D6);this.ck.Za(f.model.A.j.F6);this.ck.Mh(f.model.A.j.G6);this.ck.hc(f.model.A.j.G6);this.TR.Za(f.model.A.j.Sz);this.NG.Za(f.model.A.j.hO);this.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.hO);this.nia.Za(f.model.A.j.J6);this.lf.hc(f.model.A.j.Sz+" "+f.model.A.j.J6);this.En.Df();this.ap.Df();this.hp.Df();this.Bp.Df();this.dm.Df();this.Rb.Df()};q.Object.defineProperties(d.prototype,{Pd:{configurable:!0,
enumerable:!0,get:function(){return this.Rb.Pd}},zw:{configurable:!0,enumerable:!0,get:function(){return this.Rb.zw}},Um:{configurable:!0,enumerable:!0,get:function(){return this.Rb.Um}}});h.Ila=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vf.vo.call(this)||this;b.PBa=20;b.Bt=new A.nA;b.Bt.ud("fm-ui-toggle-btn");b.Bt.Y("fm-expand-toggle-btn");b.Bt.N(y.da.Qd,function(){return b.mDa()});b.Bt.ue(-1);b.F.append(b.Bt.F);b.hD=new A.$I;b.hD.F.w3("tabindex");b.hD.N(y.da.Qd,function(a){return b.V2(a.data)});b.F.append(b.hD.F);b.be("all");return b}u(d,A.Vf.vo);d.prototype.mDa=function(){var b=this.getData();b.zf=1==this.Bt.getSelection();this.F.Wa(h.rI.gI,this,b)};d.prototype.V2=function(b){var a=
this.getData();a.rd=this.hD.getSelection();this.F.Wa(h.rI.XO,this,{Xb:a,shiftKey:b.shiftKey})};d.prototype.gb=function(){if(this.Kr("data")){var b=this.getData();if(this.Bt&&this.hD&&b){this.F.P("padding-left","");var a=this.PBa*(b.lea-1);b.Ge||void 0!==b.zf||(a+=30);0<a&&this.F.P("padding-left",a+"px");b.LS?(this.Bt.show(),this.Bt.jf(b.zf)):this.Bt.$a();this.hD.Za(b[this.rq()],!0);this.hD.jf(b.rd)}}};h.Gla=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.hd.nX.call(this)||this;b.ET=null;b.ue();b.Lh(function(a,c){return b.Yya(a,c)});return b}u(d,A.hd.nX);d.prototype.Yya=function(b,a){var c=this,e=new h.Gla;e.setData(b);e.am(a);e.N(d.XO,function(g){return c.V2(g)});e.N(d.gI,function(g){return c.PDa(g)});return e};d.prototype.ku=function(b){A.hd.nX.prototype.ku.call(this,b);b=b.data.Fk;b.rd=1==b.rd?0:1;this.H4(b)};d.prototype.V2=function(b){this.H4(b.data.Xb,b.data.shiftKey)};d.prototype.H4=
function(b,a){1==b.rd&&(void 0===a?0:a)&&this.ET&&this.Og().Ega(this.ET.Xb,b.Xb);this.DIa(b,1==b.rd);this.Da(new y.da(d.XO,this))};d.prototype.PDa=function(b){this.Tha(b.data)};d.prototype.Tha=function(b){var a=this;b.zf?0===b.Xb.children.length||b.Xb.yf?f.model.Ta.U().ga.Uj(b.Xb.hierarchy,b.Xb,function(){return a.rj(b)}):this.rj(b):(this.Og().collapse(b.Xb),this.be("data"),this.Da(new y.da(d.gI,this)))};d.prototype.rj=function(b){f.za(!1);this.Og().Cga(b.Xb);this.Og().expand(b.Xb);this.be("data");
this.Da(new y.da(d.gI,this))};d.prototype.Og=function(){return this.Owa};d.prototype.X3=function(b){this.Owa=b};d.prototype.qS=function(){return this.Og().qS()};d.prototype.ZU=function(b){this.Og().ZU(b);this.be("data")};d.prototype.sy=function(){return this.Og().sy()};d.prototype.Yv=function(){return this.Og().Yv()};d.prototype.getTotalLength=function(){return this.Og().rG()};d.prototype.GS=function(){return this.Og().getTotalLength()};d.prototype.DIa=function(b,a){this.Og()instanceof h.QW?this.Og().select(b.Xb.ordinal,
a):this.Og().select(b.Xb,a);this.ET=a?b:null;this.be("data")};d.prototype.selectAll=function(b){this.Og().selectAll(b);this.ET=null;this.be("data")};d.prototype.search=function(b,a){var c=this;this.Og().search(b,function(e){c.Og().Zga(e);c.be("data");a()});this.F.Ua("fm-is-searched",this.Ge())};d.prototype.Ge=function(){return this.Og().Ge()};d.prototype.bV=function(b){this.Og().bV(b)};d.prototype.sort=function(b){b!==this.Og().$f&&(this.Og().$ga(b),this.be("data"))};d.XO="_";d.gI="__";h.rI=d})(k.filter||
(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){if(null!=d.instance)throw"FilterModel is singleton!";this.fp=f.model.Ta.U()}d.U=function(){null==d.instance&&(d.instance=new d);return d.instance};d.dispose=function(){d.instance=null};d.prototype.update=function(b){this.measures=[];for(var a=this.fp.ga.sa.ad(),c=0;c<a.length;c++){var e=a[c],g=new f.model.bb.Ig(e.uniqueName,e.$,e.index);g.label=e.caption;!b.filter.measure||-1!=b.filter.measure.index||g.uniqueName!=b.filter.measure.uniqueName||""!=
b.filter.measure.$&&g.$!=b.filter.measure.$||(b.filter.measure.index=g.index);this.measures.push(g)}this.uk={};this.Nga(b)};d.prototype.Nga=function(b){(this.hierarchy=b)?(this.hierarchy.filter.$g&&(this.uk.type=this.hierarchy.filter.type,this.hierarchy.filter.measure&&(this.uk.measure=this.hierarchy.filter.measure.La()),this.hierarchy.filter.query&&(this.uk.query=this.hierarchy.filter.query.clone())),this.ed=this.hierarchy.Zf!==f.u.i.xa.Zc?this.hierarchy.uj(this.hierarchy.yd,!1,this.hierarchy.Zf):
this.hierarchy.yd.children.slice(),this.r9=f.model.bb.Tz.tS(this.hierarchy)):this.r9=f.u.i.kb.NONE;this.P9=this.fp.ga.I.cG.Nca(this.hierarchy,this.Pm)};d.prototype.ad=function(){var b=this;if(this.Ai){var a=this.fp.ga.I.Ee(this.hierarchy.uniqueName),c=new f.model.bb.Ig(a.uniqueName,a.$,a.index);c.label=a.caption;return[c]}return this.fp.ga.fa.Hc?this.measures.filter(function(e){var g=b.fp.ga.I.$c(e.uniqueName);e=-1<f.u.i.ca.yz.indexOf(e.$);return g&&!g.Ka&&!e}):this.measures};d.prototype.csa=function(b){var a=
!1,c=!1;!f.v(this.hierarchy.filter.query)&&f.v(b.query)?(a=!0,this.hierarchy.pB(),this.fp.Ya()):f.v(b.query)||(c=this.tBa(b));var e=this.Lda(b);if(c||e)return a={},c&&!f.v(b.measure)&&(a.measure=b.measure),c&&!f.v(b.query)&&(a.query=b.query.La()),e&&!f.v(b.ed)&&(a.members=b.ed),e&&!f.v(b.gy)&&(a.exclude=b.gy),this.fp.tl(this.hierarchy.uniqueName,a),!0;a&&this.fp.refresh();return!1};d.prototype.nt=function(){this.fp.nt(this.hierarchy.uniqueName)};d.prototype.tBa=function(b){if(b.type==f.u.i.kb.Oa)return this.LAa(b);
if(b.type==f.u.i.kb.gk)return this.gBa(b);if(b.type==f.u.i.kb.fb||b.type==f.u.i.kb.Yb)return this.mBa(b);if(b.type==f.u.i.kb.nn)return this.DBa(b)};d.prototype.LAa=function(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.ta!=b.query.ta?!0:0<=f.u.i.Ub.Qh.indexOf(b.query.ta)?!f.Gg.u_(this.hierarchy.filter.query.value,b.query.value):0<=f.u.i.Ub.rf.indexOf(b.query.ta)?this.hierarchy.filter.query.value&&b.query.value?!f.Gg.u_(this.hierarchy.filter.query.value[0],b.query.value[0])||
!f.Gg.u_(this.hierarchy.filter.query.value[1],b.query.value[1]):!0:0<=f.u.i.Ub.$w.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:!1};d.prototype.gBa=function(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.ta!=b.query.ta?!0:0<=f.u.i.wb.Qh.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:0<=f.u.i.wb.rf.indexOf(b.query.ta)?f.v(this.hierarchy.filter.query.value)||f.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};d.prototype.mBa=function(b){return this.hierarchy.filter.type!==b.type||this.hierarchy.filter.query.ta!==b.query.ta?!0:0<=f.u.i.vg.Qh.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:0<=f.u.i.vg.rf.indexOf(b.query.ta)?f.v(this.hierarchy.filter.query.value)||f.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};d.prototype.DBa=function(b){return this.hierarchy.filter.type!==
b.type||this.hierarchy.filter.measure.uniqueName!==b.measure.uniqueName||this.hierarchy.filter.measure.$!==b.measure.aggregation||this.hierarchy.filter.query.ta!=b.query.ta?!0:0<=f.u.i.tc.Qh.indexOf(b.query.ta)?this.hierarchy.filter.query.value!==b.query.value:0<=f.u.i.tc.rf.indexOf(b.query.ta)?f.v(this.hierarchy.filter.query.value)||f.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};d.prototype.Lda=function(b){if(null==
b)return this.hierarchy.filter.$h;if(null==b.ed&&null==b.gy)return!1;var a=this.hierarchy.filter.pj();if(b.ed){var c=b.ed;if(c.length!=a.length)return!0;for(var e=0,g=c.length;e<g;e++)if(-1==a.indexOf(c[e]))return!0}if(b.gy){b=b.gy;if(a.length+b.length!==this.hierarchy.vi-1)return!0;e=0;for(g=b.length;e<g;e++)if(-1==a.indexOf(b[e]))return!0}return!1};d.prototype.xsa=function(b){b!=this.hierarchy.Zf&&this.fp.oD(this.hierarchy.uniqueName,b)};q.Object.defineProperties(d.prototype,{i1:{configurable:!0,
enumerable:!0,get:function(){return!this.Ai&&this.fp.ga.sa.pages.Bb(this.hierarchy.uniqueName)}},Hc:{configurable:!0,enumerable:!0,get:function(){return this.fp.Ga.fa.Hc}},Ai:{configurable:!0,enumerable:!0,get:function(){return f.model.B.C.oc&&f.model.B.C.he!=k.xd.Ki}},Pm:{configurable:!0,enumerable:!0,get:function(){return this.r9}},$n:{configurable:!0,enumerable:!0,get:function(){return this.P9?this.P9:new f.u.I.Yoa}},$v:{configurable:!0,enumerable:!0,get:function(){return this.uk.type==f.u.i.kb.Oa||
this.uk.type==f.u.i.kb.gk||this.uk.type==f.u.i.kb.fb||this.uk.type==f.u.i.kb.Yb}},ai:{configurable:!0,enumerable:!0,get:function(){return this.uk.type==f.u.i.kb.nn}}});h.M6=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=y.Fc.call(this)||this;b.model=h.M6.U();b.view=new h.Ila;null!=b.view.kAa&&b.view.kAa.N(y.da.Qd,function(a){return b.jEa(a)});null!=b.view.Um&&(b.view.Um.N(A.Pi.Qw,function(a){return b.qFa(a.data)}),b.view.Um.N(A.Pi.Nz,function(){return b.sFa()}),b.view.Um.N(A.Pi.h6,function(){return b.rFa()}));b.view.Rb&&b.view.Rb.Ad&&(b.view.Rb.Ad.N(h.rI.XO,function(){return b.OEa()}),b.view.Rb.Ad.N(h.rI.gI,function(){return b.MEa()}),b.view.Rb.Ad.N("keydown",
function(a){return b.NEa(a)}));null!=b.view.Pd&&b.view.Pd.N(y.da.Qd,function(){return b.W2()});null!=b.view.bk&&b.view.bk.N(y.da.Qd,function(){return b.yFa()});null!=b.view.ck&&b.view.ck.N(y.da.Qd,function(){return b.zFa()});null!=b.view.Se&&b.view.Se.N(y.da.Qd,function(){return b.rEa()});null!=b.view.En&&b.view.En.N(y.da.jo,function(){return b.oU()});null!=b.view.ap&&b.view.ap.N(y.da.jo,function(){return b.oU()});null!=b.view.hp&&b.view.hp.N(y.da.jo,function(){return b.oU()});null!=b.view.Bp&&b.view.Bp.N(y.da.jo,
function(){return b.oU()});null!=b.view.lf&&b.view.lf.N(y.da.Qd,function(){return b.LFa()});null!=b.view.dm&&b.view.dm.N(y.da.jo,function(){return b.KFa()});null!=b.view.Co&&b.view.Co.N(A.sd.Xe,function(){return b.WCa()});null!=b.view.pF&&b.view.pF.N(A.sd.Xe,function(){return b.Sr()});return b}u(d,y.Fc);d.prototype.KFa=function(){this.view.lf&&(this.view.lf.ud("fm-has-filter"),this.view.lf.jf(0),this.RM(),this.AH())};d.prototype.oU=function(){this.view.Se&&(this.view.Se.ud("fm-has-filter"),this.view.Se.jf(0),
this.RM(),this.AH())};d.prototype.rEa=function(){this.view.lf&&this.view.lf.jf(0);this.RM();this.AH()};d.prototype.LFa=function(){this.view.Se&&this.view.Se.jf(0);this.RM();this.AH()};d.prototype.WCa=function(){var b=this.model.csa(this.Bya());this.model.xsa(this.Dya());b||this.Wa("close")};d.prototype.RM=function(){this.view.En&&this.view.En.isVisible(this.aw&&1===this.view.Se.getSelection()&&this.model.Pm==f.u.i.kb.Oa);this.view.ap&&this.view.ap.isVisible(this.aw&&1===this.view.Se.getSelection()&&
this.model.Pm==f.u.i.kb.gk);this.view.hp&&this.view.hp.isVisible(this.aw&&1===this.view.Se.getSelection()&&this.model.Pm==f.u.i.kb.fb);this.view.Bp&&this.view.Bp.isVisible(this.aw&&1===this.view.Se.getSelection()&&this.model.Pm==f.u.i.kb.Yb);this.view.dm&&this.view.dm.isVisible(this.Ay&&1===this.view.lf.getSelection());this.view.Rb&&(this.view.Rb.isVisible(this.model.$n.Mda&&0==this.view.lf.getSelection()&&0==this.view.Se.getSelection()),this.view.Rb.isVisible()&&this.view.Rb.Ad.Lq());this.view.Ua("fm-query-filter-opened",
!1);this.view.Se&&1===this.view.Se.getSelection()&&this.view.Ua("fm-query-filter-opened",!0);this.view.lf&&1===this.view.lf.getSelection()&&this.view.Ua("fm-query-filter-opened",!0);this.view.Ua("fm-no-query-filters",!this.aw&&!this.Ay);this.view.Ua("fm-no-member-filters",!this.model.$n.Mda);this.Wa("center")};d.prototype.AH=function(){this.view.Co&&(this.view.Rb&&this.view.Rb.isVisible()?this.view.Co.xp(0<this.view.Rb.Ad.Yv()):this.view.Co.xp(!0))};d.prototype.Dya=function(){return this.view.bk&&
1==this.view.bk.getSelection()?f.u.i.xa.bc:this.view.ck&&1==this.view.ck.getSelection()?f.u.i.xa.Ec:this.view.bk&&this.view.ck?f.u.i.xa.Zc:this.model.hierarchy.Zf};d.prototype.Bca=function(){return this.model.Pm==f.u.i.kb.Oa?this.view.En.Sl():this.model.Pm==f.u.i.kb.gk?this.view.ap.Sl():this.model.Pm==f.u.i.kb.fb?this.view.hp.Sl():this.model.Pm==f.u.i.kb.Yb?this.view.Bp.Sl():null};d.prototype.Bya=function(){var b=null,a=null;1==this.view.Se.getSelection()?b=this.Bca():1==this.view.lf.getSelection()?
b=this.view.dm.Sl():(a=this.view.Rb.Sl(),this.model.Lda(a)||(a=null));null==a&&null==b&&(this.view.Se.Lc("fm-has-filter")?b=this.Bca():this.view.lf.Lc("fm-has-filter")&&(b=this.view.dm.Sl()));var c={};b&&(c.type=b.type,c.query=b.query,c.measure=b.measure);a&&(f.v(a.ed)||(c.ed=a.ed),f.v(a.gy)||(c.gy=a.gy));return c};d.prototype.Sr=function(){this.Wa("close")};d.prototype.yFa=function(){1===this.view.bk.getSelection()&&(this.view.ck.jf(0),this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.bc));0===this.view.bk.getSelection()&&
0===this.view.ck.getSelection()&&this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.Zc)};d.prototype.zFa=function(){1===this.view.ck.getSelection()&&(this.view.bk.jf(0),this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.Ec));0===this.view.bk.getSelection()&&0===this.view.ck.getSelection()&&this.view.Rb&&this.view.Rb.Ad.sort(f.u.i.xa.Zc)};d.prototype.W2=function(){this.view.Rb&&(this.view.Rb.Ad.selectAll(1==this.view.Pd.getSelection()),this.view.Co.xp(0<this.view.Rb.Ad.Yv()));this.qN()};d.prototype.NEa=function(b){if(32===
b.keyCode||13===b.keyCode){var a=this.view.Rb.Ad.Mt();f.v(a)||(a=a.data,!a.LS||b.ctrlKey||b.metaKey?(a.rd=1==a.rd?0:1,this.view.Rb.Ad.H4(a)):(a.zf=!a.zf,this.view.Rb.Ad.Tha(a)))}};d.prototype.OEa=function(){this.view.Co.xp(0<this.view.Rb.Ad.Yv());this.Zha();this.qN()};d.prototype.MEa=function(){this.N4();this.qN()};d.prototype.Zha=function(){0==this.view.Rb.Ad.sy()?this.view.Pd.jf(0):this.view.Rb.Ad.GS()>this.view.Rb.Ad.sy()?this.view.Pd.jf(-1):this.view.Rb.Ad.GS()==this.view.Rb.Ad.sy()&&this.view.Pd.jf(1)};
d.prototype.update=function(b){var a=this;0!=this.view.isVisible()&&(1E4<b.vi?(f.za(!0,f.model.A.j.kE,f.model.A.j.mna,!0,!0),setTimeout(function(){a.model.update(b);a.cm();f.za(!1)},50)):(this.model.update(b),this.cm()))};d.prototype.qFa=function(b){var a=this;f.model.B.C.G_&&b.trim()==b&&this.view.Rb&&this.view.Rb.Ad.search(b,function(){return a.PC()})};d.prototype.sFa=function(){var b=this,a=this.view.Um.yi();!f.model.B.C.G_&&a.trim()==a&&this.view.Rb&&this.view.Rb.Ad.search(a,function(){return b.PC()})};
d.prototype.rFa=function(){var b=this;!f.model.B.C.G_&&this.view.Rb&&this.view.Rb.Ad.search("",function(){return b.PC()})};d.prototype.PC=function(){this.N4();this.qN();this.Zha();this.view.Co.xp(0<this.view.Rb.Ad.Yv())};d.prototype.cm=function(){this.view.Df();this.view.Ua("fm-filter-pages-layout",this.model.i1);this.view.Ua("fm-filter-flat-layout",this.model.Ai);this.view.Rb&&this.view.Rb.reset();this.view.Um&&(this.view.Um.clear(),this.view.Um.VU(f.model.Ta.U().Ga.fa.Hc?1E3:0));this.view.lf&&(f.u.i.Ja.Sc==
f.u.i.Ja.wxa(this.model.hierarchy.wi.type+"")&&f.model.B.C.oc?this.view.lf.$a():this.view.lf.show());this.$Ja();this.WJa();this.XJa();this.VJa();this.N4();this.qN();this.ZJa();this.AH();this.gxa()};d.prototype.gxa=function(){this.view.Rb&&this.view.Rb.isVisible()?this.view.Rb.Ad.focus({preventScroll:!0}):this.view.Se&&1==this.view.Se.getSelection()?this.view.Se.focus({preventScroll:!0}):this.view.lf&&1==this.view.lf.getSelection()?this.view.lf.focus({preventScroll:!0}):this.view.Co.focus({preventScroll:!0})};
d.prototype.ZJa=function(){var b=!this.model.i1&&!f.model.B.C.oc;this.view.bk&&this.view.bk.isVisible(b);this.view.ck&&this.view.ck.isVisible(b);this.view.cN&&this.view.cN.isVisible(b);this.view.Ua("fm-sort-only",!this.aw&&!this.Ay)};d.prototype.lBa=function(){return 0<this.model.ad().length};d.prototype.XJa=function(){var b=this.model.hierarchy;this.view.Pd&&this.view.Pd.jf(0<b.filter.pj().length?-1:1);if(this.view.Rb){var a=2<b.ra.length;this.view.Rb.Ad.Ua("fm-tree-list",a);this.view.Rb.Ad.X3(a?
new h.yna:new h.QW);this.view.Rb.Ad.bV(b);this.view.Rb.Ad.Cf(this.model.ed);this.view.Rb.Ad.ZU(b.filter.pj());this.view.Rb.Ad.sort(b.Zf)}};d.prototype.WJa=function(){this.view.Dp&&(this.view.Dp.Za(this.model.hierarchy.caption),this.view.Dp.Mh(this.model.hierarchy.caption));this.view.toolbar&&this.view.toolbar.tIa(this.model.hierarchy.caption)};d.prototype.N4=function(){this.view.Rb&&0<this.view.Rb.Ad.getTotalLength()?this.view.Pd&&this.view.Pd.show():this.view.Pd&&this.view.Pd.$a()};d.prototype.$Ja=
function(){this.view.bk&&this.view.bk.jf(this.model.hierarchy.Zf==f.u.i.xa.bc?1:0);this.view.ck&&this.view.ck.jf(this.model.hierarchy.Zf==f.u.i.xa.Ec?1:0)};d.prototype.VJa=function(){this.view.bG&&this.view.bG.isVisible(this.aw||this.Ay);this.view.Se&&(this.model.Pm==f.u.i.kb.Oa?(this.view.NG.Za(f.model.A.j.E6),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.E6)):this.model.Pm==f.u.i.kb.gk?(this.view.NG.Za(f.model.A.j.hO),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.hO)):this.model.Pm==f.u.i.kb.fb?
(this.view.NG.Za(f.model.A.j.H6),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.H6)):this.model.Pm==f.u.i.kb.Yb&&(this.view.NG.Za(f.model.A.j.I6),this.view.Se.hc(f.model.A.j.Sz+" "+f.model.A.j.I6)),this.view.Se.isVisible(this.aw&&this.model.Pm!=f.u.i.kb.NONE),this.view.Se.Ua("fm-has-filter",this.model.$v),this.view.Se.jf(this.model.$v));this.view.lf&&(this.model.Ai&&!this.Ay&&this.model.hierarchy.filter.ai?(this.view.lf.isVisible(!0),this.view.lf.xp(!1)):(this.view.lf.isVisible(this.Ay),this.view.lf.xp(this.Ay)),
this.view.lf.Ua("fm-has-filter",this.model.ai),this.view.lf.jf(this.Ay&&this.model.ai));this.view.En&&(this.view.En.Aw(this.model.$n.TL?this.model.$n.query:[]),this.view.En.reset(),this.model.uk.type==f.u.i.kb.Oa&&(this.view.En.tl(this.model.uk),this.view.En.dj(this.model.hierarchy.getTimezoneOffset())));this.view.ap&&(this.view.ap.Aw(this.model.$n.TL?this.model.$n.query:[]),this.view.ap.reset(),this.model.uk.type==f.u.i.kb.gk&&this.view.ap.tl(this.model.uk));this.view.hp&&(this.view.hp.Aw(this.model.$n.TL?
this.model.$n.query:[]),this.view.hp.reset(),this.model.uk.type==f.u.i.kb.fb&&this.view.hp.tl(this.model.uk));this.view.Bp&&(this.view.Bp.Aw(this.model.$n.TL?this.model.$n.query:[]),this.view.Bp.reset(),this.model.uk.type==f.u.i.kb.Yb&&this.view.Bp.tl(this.model.uk));this.view.dm&&(this.view.dm.Aw(this.model.$n.dea?this.model.$n.xl:[]),this.view.dm.reset(),this.view.dm.fz(this.model.ad()),this.model.uk.type==f.u.i.kb.nn&&this.view.dm.tl(this.model.uk),this.view.dm.Ua("fm-arrow-first",!this.aw));this.RM();
this.AH()};d.prototype.qN=function(){var b="";this.view.Rb&&(b=this.view.Rb.Ad.Ge()?f.O.bind(f.model.A.j.Oka,this.view.Rb.Ad.sy(),this.view.Rb.Ad.GS()):f.O.bind(f.model.A.j.Pka,this.view.Rb.Ad.sy(),this.view.Rb.Ad.GS()));this.view.zw&&(this.view.zw.Za(b),this.view.zw.Mh(b));this.view.Pd&&this.view.Pd.Za(this.view.Rb&&this.view.Rb.Ad.Ge()?f.model.A.j.rla:f.model.A.j.Ju)};d.prototype.jEa=function(b){var a=b.data.Fk;-1<b.data.selectedIndex&&(this.model.Nga(a),this.cm())};q.Object.defineProperties(d.prototype,
{Ay:{configurable:!0,enumerable:!0,get:function(){if(f.u.Na.U().fa.Ba==f.u.i.oa.API&&!this.model.$n.dea)return!1;if(this.model.Ai){var b=this.model.fp.ga.I.Ee(this.model.hierarchy.uniqueName);return!f.v(b)&&b.type==f.u.i.Ja.fb}return this.model.i1||f.u.Na.U().fa.Ba==f.u.i.oa.Zd||f.u.Na.U().fa.Ba==f.u.i.oa.Gf||!this.lBa()?!1:!0}},aw:{configurable:!0,enumerable:!0,get:function(){return this.model.$n.TL&&f.u.Na.U().fa.Ba!=f.u.i.oa.Zd&&!(this.model.Ai&&this.model.Pm==f.u.i.kb.fb)}}});h.Fla=d})(k.filter||
(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Vb.mh.call(this,k.Hb.zb.F)||this;b.Y("fm-filter-view");b.Y("fm-noselect");b.Ce=new h.Fla;b.Ce.N("close",function(){return b.close()});b.Ce.N("center",function(){return b.Go()});b.V(b.Ce.view);b.Ce.view.show();b.F.Fi({lV:[A.Fi.Ph.ji,A.Fi.Ph.bE,A.Fi.Ph.tE],jR:k.Hb.zb.F,WY:!0,resize:function(a){return b.uM(a)},complete:function(){return b.Go()}});return b}u(d,A.Vb.mh);d.prototype.uM=function(b){b.rD==A.Fi.Ph.bE||b.rD==A.Fi.Ph.tE?(this.Ce.view.tj(b.size.width+
(b.size.width-b.c3.width)),this.Go()):b.rD==A.Fi.Ph.ji&&(this.Ce.view.yp(b.size.height),b.size.height>b.c3.height&&this.hwa());this.eB()};d.prototype.hwa=function(){var b=this;this.Ce.view.Rb&&this.Ce.view.Rb.isVisible()&&this.Ce.view.F.requestAnimationFrame(function(){b.Ce.view.Rb.Ad.Lq()})};d.prototype.Xr=function(b){this.open();this.Ce.update(b);this.Go();this.Wa(y.da.OPENED)};d.prototype.close=function(){this.Zt&&(A.Vb.mh.prototype.close.call(this),this.Wa(y.da.CLOSED),f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.oW)))};
d.prototype.eB=function(){this.F.Ua("fm-layout-mobile-small",460>this.F.cf(!0))};h.Hla=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-table")||this;var a=new A.Ca("div","fm-filters-table-header fm-fth-withsearch");b.V(a);var c=new A.Ca("div","fm-select-all-wrapper");c.Y("fm-ui-col");b.Pd=new A.$I;b.Pd.Y("fm-select-all-label");b.Pd.Za(f.model.A.j.Ju);b.Pd.Mh(f.model.A.j.Ju);c.V(b.Pd);var e=new A.Ca("div","fm-select-counter-wrap");e.Y("fm-ui-col");b.zw=new A.Oc;b.zw.Y("fm-select-counter");e.V(b.zw);a.V(c);a.V(e);b.Ie=new A.Ca("div","fm-search-wrap");
a.V(b.Ie);b.ee=new A.Ca("a","fm-search-btn");b.ee.F.text(f.model.A.j.pW);b.ee.ue();b.ee.N("click",function(){return b.Tr()});b.ee.N("focus",function(){return b.Tr()});b.Ie.V(b.ee);b.Um=new A.Pi;b.Um.Y("fm-search-inp");b.Ie.V(b.Um);a=new A.sd("fm-close-search");a.N(A.sd.Xe,function(){return b.Ur()});b.Ie.V(a);a=new A.Ca("div","fm-filters-table-content");b.V(a);b.Ad=new h.rI;b.Ad.Y("fm-members-filter-list");b.Ad.X3(new h.QW);a.V(b.Ad);return b}u(d,A.Ca);d.prototype.Df=function(){this.Um.lD(f.model.A.j.pW);
this.Pd.Za(f.model.A.j.Ju);this.Pd.Mh(f.model.A.j.Ju);this.ee.F.text(f.model.A.j.pW)};d.prototype.Tr=function(){this.ee.ue(-1);this.Ie.Y("fm-search-opened");this.Um.F.focus();this.zw.$a()};d.prototype.Ur=function(){this.ee.ue(0);this.Ie.ud("fm-search-opened");this.Um.clear();this.zw.show()};d.prototype.Sl=function(){var b=this.Ad.qS();return b.items?b.eu?{gy:b.items}:{ed:b.items}:null};d.prototype.reset=function(){this.Ur()};h.xna=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.vq=new A.hd.$q;b.vq.Y("fm-measures-dropdown");b.vq.Xf("label");b.vq.lD(f.model.A.j.lla);a.V(b.vq);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Eg=new A.Vp;b.Eg.Y("fm-num-input-1");b.Eg.mD(A.Vp.sE);a.V(b.Eg);b.Ei=new A.Vp;b.Ei.Y("fm-num-input-2");
b.Ei.mD(A.Vp.sE);a.V(b.Ei);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.pw=function(){this.$a();this.Wa(y.da.jo)};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.tc.rf.indexOf(b.value))};d.prototype.fz=function(b){this.vq.Cf(b);this.vq.ak(0);this.xp(0<b.length)};d.prototype.reset=function(){this.vq.ak(0);
this.Kc.ak(0);this.Xj();this.Eg.Nh(10);this.Ei.Nh(0)};d.prototype.Sl=function(){if(f.v(this.vq.rh()))return null;var b={type:f.u.i.kb.nn};b.measure=this.vq.rh().La();var a=this.Kc.rh().value;if(0<=f.u.i.tc.Qh.indexOf(a)){var c=this.Eg.Fa();!isNaN(c)||a!=f.u.i.tc.Bj&&a!=f.u.i.tc.ji||(c=0);b.query=new f.model.bb.zl(a,c)}0<=f.u.i.tc.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.Eg.Fa(),this.Ei.Fa()]));return b};d.prototype.tl=function(b){this.Kc.gs(function(e){return e.value===b.query.ta});this.Xj();
for(var a=this.vq.uc(),c=0;c<a.length;c++)if(a[c].uniqueName==b.measure.uniqueName&&a[c].$==b.measure.aggregation){this.vq.ak(c);break}0<=f.u.i.tc.Qh.indexOf(b.query.ta)&&this.Eg.Nh(b.query.value);0<=f.u.i.tc.rf.indexOf(b.query.ta)&&(this.Eg.Nh(b.query.value[0]),this.Ei.Nh(b.query.value[1]))};d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.tc.Bj:return f.model.A.j.kla;case f.u.i.tc.ji:return f.model.A.j.bla;case f.u.i.tc.EQUAL:return f.model.A.j.mI;
case f.u.i.tc.If:return f.model.A.j.oI;case f.u.i.tc.GREATER:return f.model.A.j.dO;case f.u.i.tc.Kk:return f.model.A.j.eO;case f.u.i.tc.LESS:return f.model.A.j.fO;case f.u.i.tc.Lk:return f.model.A.j.gO;case f.u.i.tc.Sg:return f.model.A.j.lI;case f.u.i.tc.Jg:return f.model.A.j.nI}};d.prototype.Df=function(){var b=this;this.vq.hc(f.model.A.j.Vka);this.Kc.hc(f.model.A.j.cO);this.Eg.hc(f.model.A.j.Tw);this.Ei.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));
this.kg.Za(f.model.A.j.Uka)};h.Dpa=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Lj=new A.DK.p8;b.Lj.Y("fm-datepicker-1");b.Lj.N(y.da.Qd,function(){return b.GDa()});a.V(b.Lj);b.Xk=new A.DK.p8;b.Xk.Y("fm-datepicker-2");b.Xk.N(y.da.Qd,function(){return b.HDa()});a.V(b.Xk);b.VC=new A.hd.$q;
b.VC.Y("fm-periods-dropdown");b.VC.Xf("label");a.V(b.VC);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.Ub.EQUAL:return f.model.A.j.mI;case f.u.i.Ub.If:return f.model.A.j.oI;case f.u.i.Ub.JD:return f.model.A.j.Zka;case f.u.i.Ub.KD:return f.model.A.j.$ka;
case f.u.i.Ub.FD:return f.model.A.j.Xka;case f.u.i.Ub.GD:return f.model.A.j.Yka;case f.u.i.Ub.Sg:return f.model.A.j.lI;case f.u.i.Ub.Jg:return f.model.A.j.nI;case f.u.i.Ub.tO:return f.model.A.j.fla;case f.u.i.Ub.MN:return f.model.A.j.dla;case f.u.i.Ub.KO:return f.model.A.j.gla}};d.prototype.Df=function(){var b=this;this.Kc.hc(f.model.A.j.cO);this.Lj.hc(f.model.A.j.Tw);this.Xk.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.VC.Cf([{value:f.u.i.Kz.hm,
label:f.model.A.j.mla},{value:f.u.i.Kz.eJ,label:f.model.A.j.pla},{value:f.u.i.Kz.Hg,label:f.model.A.j.nla},{value:f.u.i.Kz.Cs,label:f.model.A.j.ola},{value:f.u.i.Kz.Qk,label:f.model.A.j.qla}]);this.kg.Za(f.model.A.j.Qka);this.Lj.CD=f.model.B.C.iy;this.Xk.CD=f.model.B.C.iy;this.Lj.Caa=f.model.B.C.Cba;this.Xk.Caa=f.model.B.C.Cba;this.Lj.KQ=f.model.A.j.Jk;this.Xk.KQ=f.model.A.j.Jk};d.prototype.Sl=function(){var b={type:f.u.i.kb.Oa},a=this.Kc.rh().value;0<=f.u.i.Ub.Qh.indexOf(a)&&(b.query=new f.model.bb.zl(a,
this.Lj.zc));if(0<=f.u.i.Ub.rf.indexOf(a)){var c=this.Lj.zc,e=this.Xk.zc;b.query=new f.model.bb.zl(a,c.getTime()<e.getTime()?[c,e]:[e,c])}0<=f.u.i.Ub.$w.indexOf(a)&&(b.query=new f.model.bb.zl(a,this.VC.rh().value));return b};d.prototype.tl=function(b){this.Kc.gs(function(a){return a.value===b.query.ta});this.Xj();0<=f.u.i.Ub.Qh.indexOf(b.query.ta)&&(this.Lj.zc=b.query.value);0<=f.u.i.Ub.rf.indexOf(b.query.ta)&&(this.Lj.zc=b.query.value[0],this.Xk.zc=b.query.value[1]);0<=f.u.i.Ub.$w.indexOf(b.query.ta)&&
this.VC.gs(function(a){return a.value===b.query.value})};d.prototype.dj=function(b){this.Lj.Ii=b;this.Xk.Ii=b};d.prototype.reset=function(){this.Kc.ak(0);this.VC.ak(0);this.Xj();this.Lj.EIa();this.Xk.zc=null;this.Lj.Ii=null;this.Xk.Ii=null};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||(b=b.value,this.F.Ua("fm-date-range",0<=f.u.i.Ub.rf.indexOf(b)),this.F.Ua("fm-date-period",0<=f.u.i.Ub.$w.indexOf(b)),0<=f.u.i.Ub.rf.indexOf(b)&&null==this.Xk.zc&&null!=this.Lj.zc&&(this.Xk.zc=this.Lj.zc.clone()))};
d.prototype.GDa=function(){null==this.Xk.zc&&0<=f.u.i.Ub.rf.indexOf(this.Kc.rh().value)&&(this.Xk.zc=this.Lj.zc.clone())};d.prototype.HDa=function(){null==this.Lj.zc&&0<=f.u.i.Ub.rf.indexOf(this.Kc.rh().value)&&(this.Lj.zc=this.Xk.zc.clone())};d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.pka=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.pz=new A.Pi;b.pz.Y("fm-txt-input-1");a.V(b.pz);b.yH=new A.Pi;b.yH.Y("fm-txt-input-2");a.V(b.yH);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");
b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.wb.EQUAL:return f.model.A.j.mI;case f.u.i.wb.If:return f.model.A.j.oI;case f.u.i.wb.LD:return f.model.A.j.ala;case f.u.i.wb.$z:return f.model.A.j.hla;case f.u.i.wb.Mz:return f.model.A.j.ela;case f.u.i.wb.bA:return f.model.A.j.jla;case f.u.i.wb.an:return f.model.A.j.cla;case f.u.i.wb.aA:return f.model.A.j.ila;case f.u.i.wb.GREATER:return f.model.A.j.dO;
case f.u.i.wb.Kk:return f.model.A.j.eO;case f.u.i.wb.LESS:return f.model.A.j.fO;case f.u.i.wb.Lk:return f.model.A.j.gO;case f.u.i.wb.Sg:return f.model.A.j.lI;case f.u.i.wb.Jg:return f.model.A.j.nI}};d.prototype.Df=function(){var b=this;this.Kc.hc(f.model.A.j.cO);this.pz.hc(f.model.A.j.Tw);this.yH.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.kg.Za(f.model.A.j.Rka)};d.prototype.Sl=function(){var b={type:f.u.i.kb.gk},a=this.Kc.rh().value;0<=f.u.i.wb.Qh.indexOf(a)&&
(b.query=new f.model.bb.zl(a,this.pz.yi()));0<=f.u.i.wb.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.pz.yi(),this.yH.yi()]));return b};d.prototype.tl=function(b){this.Kc.gs(function(a){return a.value===b.query.ta});this.Xj();0<=f.u.i.wb.Qh.indexOf(b.query.ta)&&this.pz.cj(b.query.value);0<=f.u.i.wb.rf.indexOf(b.query.ta)&&(this.pz.cj(b.query.value[0]),this.yH.cj(b.query.value[1]))};d.prototype.reset=function(){this.Kc.ak(0);this.Xj();this.pz.cj("");this.yH.cj("")};d.prototype.Xj=function(){var b=
this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.wb.rf.indexOf(b.value))};d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.nma=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Eg=new A.Vp;b.Eg.Y("fm-num-input-1");b.Eg.mD(A.Vp.sE);a.V(b.Eg);b.Ei=new A.Vp;b.Ei.Y("fm-num-input-2");b.Ei.mD(A.Vp.sE);a.V(b.Ei);var c=new A.Aa("div","fm-buttons-bar");a.F.V(c);b.kg=new A.sd("fm-ui-link-btn");
b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});c.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.vg.EQUAL:return f.model.A.j.mI;case f.u.i.vg.If:return f.model.A.j.oI;case f.u.i.vg.GREATER:return f.model.A.j.dO;case f.u.i.vg.Kk:return f.model.A.j.eO;case f.u.i.vg.LESS:return f.model.A.j.fO;case f.u.i.vg.Lk:return f.model.A.j.gO;case f.u.i.vg.Sg:return f.model.A.j.lI;case f.u.i.vg.Jg:return f.model.A.j.nI}};
d.prototype.Df=function(){var b=this;this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.kg.Za(f.model.A.j.Ska)};d.prototype.Sl=function(){var b={type:f.u.i.kb.fb},a=this.Kc.rh().value;0<=f.u.i.vg.Qh.indexOf(a)&&(b.query=new f.model.bb.zl(a,this.Eg.Fa()));0<=f.u.i.vg.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.Eg.Fa(),this.Ei.Fa()]));return b};d.prototype.tl=function(b){this.Kc.gs(function(a){return a.value===b.query.ta});this.Xj();0<=f.u.i.vg.Qh.indexOf(b.query.ta)&&
this.Eg.Nh(b.query.value);0<=f.u.i.vg.rf.indexOf(b.query.ta)&&(this.Eg.Nh(b.query.value[0]),this.Ei.Nh(b.query.value[1]))};d.prototype.reset=function(){this.Kc.ak(0);this.Xj();this.Eg.Nh(0);this.Ei.Nh(0)};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.vg.rf.indexOf(b.value))};d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.Ina=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){var b=A.Ca.call(this,"div","fm-filters-subview-wrap")||this;b.conditions=[];var a=new A.Ca("div","fm-filters-subview");b.V(a);b.Kc=new A.hd.$q;b.Kc.Y("fm-conditions-dropdown");b.Kc.Xf("label");b.Kc.N(y.da.Qd,function(){return b.Xj()});a.V(b.Kc);b.Eg=new A.Vp;b.Eg.Y("fm-num-input-1");b.Eg.mD(A.Vp.sE);a.V(b.Eg);b.Ei=new A.Vp;b.Ei.Y("fm-num-input-2");b.Ei.mD(A.Vp.sE);a.V(b.Ei);b.Vt=new A.hd.$q;b.Vt.Y("fm-interval-dropdown");b.Vt.Xf("label");b.Vt.PM("ariaLabel");
a.V(b.Vt);a=new A.Aa("div","fm-buttons-bar");b.F.V(a);b.kg=new A.sd("fm-ui-link-btn");b.kg.Y("fm-muted");b.kg.ud("fm-ui-btn");b.kg.N(A.sd.Xe,function(){return b.pw()});a.V(b.kg.F);return b}u(d,A.Ca);d.prototype.Aw=function(b){this.conditions=b;this.Df()};d.prototype.J=function(b){switch(b){case f.u.i.ik.EQUAL:return f.model.A.j.mI;case f.u.i.ik.If:return f.model.A.j.oI;case f.u.i.ik.GREATER:return f.model.A.j.dO;case f.u.i.ik.Kk:return f.model.A.j.eO;case f.u.i.ik.LESS:return f.model.A.j.fO;case f.u.i.ik.Lk:return f.model.A.j.gO;
case f.u.i.ik.Sg:return f.model.A.j.lI;case f.u.i.ik.Jg:return f.model.A.j.nI}};d.prototype.Df=function(){var b=this;this.Kc.hc(f.model.A.j.cO);this.Eg.hc(f.model.A.j.Tw);this.Ei.hc(f.model.A.j.Tw);this.Kc.Cf(this.conditions.map(function(a){return{value:a,label:b.J(a)}}));this.Vt.hc(f.model.A.j.Wka);this.Vt.Cf([{value:"s",label:f.model.A.j.zla,ariaLabel:f.model.A.j.Ala},{value:"m",label:f.model.A.j.xla,ariaLabel:f.model.A.j.yla},{value:"h",label:f.model.A.j.vla,ariaLabel:f.model.A.j.wla},{value:"d",
label:f.model.A.j.tla,ariaLabel:f.model.A.j.ula}]);this.kg.Za(f.model.A.j.Tka)};d.prototype.Sl=function(){var b={type:f.u.i.kb.Yb},a=this.Kc.rh().value,c=this.Vt.rh().value;0<=f.u.i.ik.Qh.indexOf(a)&&(b.query=new f.model.bb.zl(a,this.Eg.Fa()+c));0<=f.u.i.ik.rf.indexOf(a)&&(b.query=new f.model.bb.zl(a,[this.Eg.Fa()+c,this.Ei.Fa()+c]));return b};d.prototype.tl=function(b){this.Kc.gs(function(g){return g.value===b.query.ta});this.Xj();for(var a=this.Vt.uc(),c=0;c<a.length;c++){var e=a[c].value;if(0<=
b.query.value.indexOf(e)){this.Vt.ak(c);break}}0<=f.u.i.ik.Qh.indexOf(b.query.ta)&&(a=parseFloat(b.query.value.replace(e,"")),this.Eg.Nh(a));0<=f.u.i.ik.rf.indexOf(b.query.ta)&&(a=parseFloat(b.query.value[0].replace(e,"")),e=parseFloat(b.query.value[1].replace(e,"")),this.Eg.Nh(a),this.Ei.Nh(e))};d.prototype.reset=function(){this.Kc.ak(0);this.Xj();this.Eg.Nh(0);this.Ei.Nh(0);this.Vt.ak(0)};d.prototype.Xj=function(){var b=this.Kc.rh();f.v(b)||this.F.Ua("fm-range",0<=f.u.i.ik.rf.indexOf(b.value))};
d.prototype.pw=function(){this.reset();this.$a();this.Wa(y.da.jo)};h.npa=d})(k.filter||(k.filter={}))})(f.K||(f.K={}))})(w||(w={}));var U;
(function(f){function k(){this.styleSheet=new f.md.Npa;this.Fg=[];f.md.format.Gs.jea=f.md.format.Gs.Jaa;f.xE.uH=[]}k.prototype.IJa=function(){var h=[];h["[Content_Types].xml"]=f.ri.Hs+this.Rta();h["_rels/.rels"]=f.ri.Hs+f.ri.Qpa;h["xl/_rels/workbook.xml.rels"]=f.ri.Hs+this.sua();h["xl/workbook.xml"]=f.ri.Hs+this.tua();h["xl/theme/theme1.xml"]=f.ri.Hs+f.ri.apa;for(var d=0;d<this.Fg.length;d++){var b=this.Fg[d].Cc();h["xl/worksheets/sheet"+(d+1)+".xml"]=f.ri.Hs+b}d=this.pua();h["xl/sharedStrings.xml"]=
f.ri.Hs+d;h["xl/styles.xml"]=f.ri.Hs+this.styleSheet.Cc();h["docProps/app.xml"]=f.ri.Hs+f.ri.Hia;h["docProps/core.xml"]=f.ri.Hs+f.ri.Hja;return(new D.Ela).uua(h)};k.prototype.pua=function(){var h="";D.aa.create("<axis/>").attr("name","rows");for(var d=0;d<f.xE.uH.length;d++){var b=w.O.Dwa(f.xE.uH[d]);h+="<si><t>"+b+"</t></si>"}return f.ri.Doa.replace("{0}",h)};k.prototype.tua=function(){for(var h="",d=0;d<this.Fg.length;d++)h+=w.O.bind('<sheet name="{0}" sheetId="{1}" r:id="{2}"/>',this.Fg[d].name,
d+1,"rId"+(d+4));return w.O.bind(f.ri.Epa,h)};k.prototype.sua=function(){for(var h="",d=0;d<this.Fg.length;d++)h+=w.O.bind(f.ri.Gpa,"rId"+(d+4),"worksheets/sheet"+(d+1)+".xml");return w.O.bind(f.ri.Fpa,h)};k.prototype.Rta=function(){for(var h="",d=0;d<this.Fg.length;d++)h+=w.O.bind(f.ri.jja,"/xl/worksheets/sheet"+(d+1)+".xml");return w.O.bind(f.ri.ija,h)};f.Ipa=k})(U||(U={}));
(function(f){function k(h,d,b,a){this.bs=void 0===h?0:h;this.qt=void 0===d?0:d;this.value=void 0===b?"":b;this.x4=void 0===a?0:a}k.prototype.toString=function(){return"XLSCell {row: "+this.bs+", column: "+this.qt+", type: "+this.type+", id: "+this.id+", value: "+this.value+"}"};q.Object.defineProperties(k.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this.hg}},value:{configurable:!0,enumerable:!0,set:function(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 d=f.xE.uH.indexOf(h);-1==d?(this.MJ=f.xE.uH.length,f.xE.uH.push(h)):this.MJ=d;this.hg=f.ix.Sc}else this.MJ=h,this.hg="number"===typeof h?f.ix.fb:null===h?f.ix.F7:!1===h?f.ix.l7:f.ix.upa},get:function(){return this.MJ}},id:{configurable:!0,enumerable:!0,set:function(){},get:function(){for(var h="",d=this.qt+1,b=0;26<d;){var a=0<d%26?d%26:26;d/=26;26==a&&d--;h=String.fromCharCode(a+64)+h;if(3==
b++)break}h=String.fromCharCode(d+64)+h;return h+(this.bs+1)}}});f.nP=k})(U||(U={}));(function(f){function k(){}k.uH=[];f.xE=k})(U||(U={}));
(function(f){function k(h){this.cells=[];this.ST=this.UT=0;this.columns=[];this.rows=[];this.XT=[];this.name=this.Bwa(h)}k.prototype.Bwa=function(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};k.prototype.Lga=function(h,d){this.columns[h]=d};k.prototype.jG=function(h){return this.columns[h]?this.columns[h]:
0};k.prototype.Cw=function(h,d){this.rows[h]=d};k.prototype.Nd=function(h){return this.rows[h]?this.rows[h]:0};k.prototype.hi=function(h,d,b,a){a=void 0===a?null:a;null==this.cells[h]&&(this.cells[h]=[]);this.cells[h][d]=b instanceof f.nP?b:new f.nP(h,d,b,null==a?0:a.index);this.UT<h&&(this.UT=h);this.ST<d&&(this.ST=d)};k.prototype.Rf=function(h,d){var b;null!=this.cells[h]&&(b=this.cells[h][d]);null==b&&(b=new f.nP(h,d,null));return b};k.prototype.Hea=function(h,d,b){var a=this.Rf(h,d);if(null!=
a){for(var c=a.id,e,g=d+1;g<d+b;g++)e=new f.nP(h,g,!1,a.x4),this.cells[h][g]=e;c+=":"+(e?e.id:a.id);this.XT.push(c)}};k.prototype.Cc=function(){for(var h="",d=0;d<this.cells.length;d++){var b=this.cells[d];if(null!=b&&0!=b.length){for(var a="",c=0;c<b.length;c++){var e=b[c];null!=e&&e.type!=f.ix.F7&&(a=e.type==f.ix.l7?a+('<c r="'+e.id+'" s="'+e.x4.toString()+'" />'):a+('<c r="'+e.id+'" s="'+e.x4.toString()+'"'+(e.type==f.ix.Sc?' t="s"':"")+"><v>"+e.value+"</v></c>"))}h=isNaN(this.rows[d])?h+w.O.bind('<row spans="1:3" r="{0}"  >{1}</row>',
d+1,a):h+w.O.bind('<row spans="1:3" r="{0}" x14ac:dyDescent="0.25" ht="{1}" customHeight="1">{2}</row>',d+1,this.rows[d],a)}}d="";for(b=0;b<this.columns.length;b++)isNaN(this.columns[b])||(d+=w.O.bind('<col min="{0}" max="{1}" width="{2}" customWidth="1" />',b+1,b+1,this.columns[b]));a="";for(b=0;b<this.XT.length;b++)a+=w.O.bind('<mergeCell ref="{0}"/>',this.XT[b]);b=0<this.XT.length?w.O.bind('<mergeCells count="{0}">{1}</mergeCells>',this.Hea.length,a):"";return w.O.bind(f.ri.Eoa,this.Rf(0,0).id+
":"+this.sCa.id,d,h,b)};q.Object.defineProperties(k.prototype,{sCa:{configurable:!0,enumerable:!0,get:function(){return this.Rf(this.UT,this.ST)},set:function(){}},Kta:{configurable:!0,enumerable:!0,get:function(){return this.ST+1}},FM:{configurable:!0,enumerable:!0,get:function(){return this.UT+1}}});f.Jpa=k})(U||(U={}));(function(f){function k(){}k.F7=0;k.fb=1;k.Sc=2;k.l7=98;k.upa=99;f.ix=k})(U||(U={}));
(function(f){(function(k){function h(d,b,a,c){a=void 0===a?null:a;c=void 0===c?null:c;this.index=0;this.fill=b instanceof k.cl.fJ?b:!isNaN(b)&&-1<b?new k.cl.fJ(b):new k.cl.fJ;this.font=d instanceof k.fonts.Yu?d:new k.fonts.Yu(d);this.format=a&&a instanceof k.format.Gs?a:new k.format.Gs(0,"");null!=c&&(this.textAlign=c)}h.prototype.Cc=function(){var d=this.textIndent||this.textAlign?w.O.bind('<alignment vertical="center" horizontal="{0}" wrapText="1"{1}/>',w.v(this.textAlign)?"left":this.textAlign,
w.v(this.textIndent)?"":' indent="'+this.textIndent+'"'):'<alignment vertical="center" wrapText="1"/>';return w.O.bind('<xf numFmtId="{0}"{1} fontId="{2}" fillId="{3}" borderId="1" xfId="0" applyFont="1" applyFill="1"{4}>{5}</xf>',this.format.Oy,0<this.format.Oy?' applyNumberFormat = "1"':"",this.font.VR,this.fill.TK,0<d.length?' applyAlignment="1"':"",d)};q.Object.defineProperties(h.prototype,{id:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.fill.id+":"+this.font.id+
":"+this.textIndent+":"+this.textAlign+":"+this.format.id}}});k.qA=h})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){function h(){this.md=new w.nb;this.cl=new w.nb;this.fonts=new w.nb;this.formats=new w.nb;this.Z9(new k.cl.fJ);var d=new k.cl.fJ;d.l3.m3="solid";d.TK=1;this.cl.Pa("solid",d)}h.prototype.tv=function(d){this.md.Bb(d.id)?d.index=this.md.getItem(d.id).index:(this.Z9(d.fill),this.addFont(d.font),this.md.Pa(d.id,d),d.index=this.md.length)};h.prototype.Z9=function(d){this.cl.Bb(d.id)?d.TK=this.cl.getItem(d.id).TK:(d.TK=this.cl.length,this.cl.Pa(d.id,d))};h.prototype.addFont=function(d){this.fonts.Bb(d.id)?
d.VR=this.fonts.getItem(d.id).VR:(this.fonts.Pa(d.id,d),d.VR=this.fonts.length)};h.prototype.xra=function(d){this.formats.Bb(d.id)?d.Oy=this.formats.getItem(d.id).Oy:(-1==d.Oy&&(d.Oy=k.format.Gs.kza()),this.formats.Pa(d.id,d))};h.prototype.Cc=function(){var d="",b="",a="",c="",e;if(0<this.formats.length){var g=0,l="";for(e=0;e<this.formats.length;e++){var m=this.formats.ea(e);""!=m.YR&&(m=m.Cc(),l+=m,g++)}0<g&&(d='<numFmts count="'+g+'">'+l+"</numFmts>")}for(e=0;e<this.cl.length;e++)g=this.cl.ea(e),
b+=g.Cc();for(e=0;e<this.fonts.length;e++)g=this.fonts.ea(e),a+=g.Cc();for(e=0;e<this.md.length;e++)g=this.md.ea(e),c+=g.Cc();return w.O.bind(f.ri.Moa,d,this.fonts.length+1,a,this.cl.length,b,this.md.length+1,c)};k.Npa=h})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){this.rgb=b}d.prototype.Cc=function(b){b=void 0===b?"":b;0==b.length&&(b="color");b="<"+b;this.Gsa&&(b+=' auto="'+this.Gsa+'"');this.pJa&&(b+=' theme="'+this.pJa+'"');this.tJa&&(b+=' tint="'+this.tJa+'"');this.qAa&&(b+=' indexed="'+this.qAa+'"');for(var a=this.rgb.toString(16).toUpperCase();6>a.length;)a="0"+a;return b+(' rgb="FF'+a+'"/>')};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.rgb.toString(16)}}});
h.rA=d})(k.color||(k.color={}))})(f.md||(f.md={}))})(U||(U={}));(function(f){(function(k){(function(h){function d(b){return h.rA.call(this,b)||this}u(d,h.rA);d.prototype.Cc=function(){return h.rA.prototype.Cc.call(this,"bgColor")};h.Kpa=d})(k.color||(k.color={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){return h.rA.call(this,b)||this}u(d,h.rA);d.prototype.Cc=function(){return h.rA.prototype.Cc.call(this,"fgColor")};h.Lpa=d})(k.color||(k.color={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){this.TK=0;this.l3=new h.Mpa(void 0===b?-1:b)}d.prototype.Cc=function(){return"<fill>"+this.l3.Cc()+"</fill>"};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,set:function(){},get:function(){return this.l3.id}}});h.fJ=d})(k.cl||(k.cl={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b){b=void 0===b?-1:b;this.m3="solid";-1<b?(this.fgColor=new k.color.Lpa(b),this.bgColor=new k.color.Kpa(b)):this.m3="none"}d.prototype.Cc=function(){return w.O.bind('<patternFill patternType="{0}">{1}{2}</patternFill>',this.m3,w.v(this.fgColor)?"":this.fgColor.Cc(),w.v(this.bgColor)?"":this.bgColor.Cc())};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,get:function(){return w.v(this.fgColor)?"none":this.fgColor.id}}});h.Mpa=
d})(k.cl||(k.cl={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b,a,c){this.VR=0;w.v(b)||(this.name=b.replace(/"/g,"").trim());w.v(a)||(this.size=a);w.v(c)||(this.US=new k.color.rA(c))}d.prototype.Cc=function(){var b="<font>";this.bold&&(b+="<b/>");this.size&&(b+='<sz val="'+this.size+'"/>');this.US&&(b+=this.US.Cc());if(this.name){var a=this.name;this.name.indexOf(",")&&(a=this.name.split(",")[0].trim());b+='<name val="'+a+'"/>'}return b+"</font>"};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,
set:function(){},get:function(){return this.name+","+this.size+","+(w.v(this.US)?"":this.US.id)+","+this.bold+","+this.DC}}});h.Yu=d})(k.fonts||(k.fonts={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){(function(k){(function(h){function d(b,a){this.Oy=b;this.YR=a}d.prototype.Cc=function(){return'<numFmt numFmtId="'+this.Oy+'" formatCode="'+this.YR+'"/>'};d.kza=function(){return d.jea++};q.Object.defineProperties(d.prototype,{id:{configurable:!0,enumerable:!0,get:function(){return""!=this.YR?this.YR:this.Oy.toString()},set:function(){}}});d.Jaa=1;d.jea=d.Jaa;h.Gs=d})(k.format||(k.format={}))})(f.md||(f.md={}))})(U||(U={}));
(function(f){function k(){}k.format=function(h,d,b,a,c){d=void 0===d?null:d;b=void 0===b?!1:b;a=void 0===a?!1:a;c=void 0===c?-1:c;null==d&&(d=k.zR);if(isNaN(h)||w.v(h))return d.YG;if(Infinity==h)return d.GG;if(h==w.u.i.UN.TN)return d.OF;b||(b=d.Tf);h=d.Xd&&"%"!=d.pd?100*h:h;h=k.zta(h);var e=a||d.Xd?"%":d.pd,g=a||d.Xd?w.model.Zb.W.pf.Uy["1$"]:d.ou;a=a||d.Xd?w.model.Zb.W.pf.Rr["-1$"]:d.fu;var l=b?0:d.Ql;if(0==h&&0>l){var m="0";!b&&0<e.length&&(m=k.K_(m,e,g,a));return m}m=0>h?d.Jy-1:d.Jy;1<d.thousandsSeparator.length&&
!w.O.SAa(d.thousandsSeparator)&&(m-=Math.floor(m/3)*d.thousandsSeparator.length);!b&&0<d.waa&&(m-=d.waa);d.thousandsSeparator="&#39;"==d.thousandsSeparator?"'":d.thousandsSeparator;var n=h.toString().split(".");if(1<n.length&&10<=n[1].length&&d.gK){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<l?Math.pow(10,m-l-1):Math.pow(10,
m-4);p=Math.pow(10,-(m-4));-1<c&&(l=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?d.Jy-c-5:d.Jy-c-4,0<=d.Ql&&(m=Math.min(m,d.Ql)),0<=d.mw&&(m=Math.min(m,d.mw)),m=Math.max(1,Math.min(20,m)),m=h.toExponential(m)):Math.abs(h)<p&&0>l?(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>l&&0>d.mw?m=h.toString():0==l||0==d.mw?m=Math.round(h).toString():(m=d.mw,0<l&&m>l&&(m=
l),0<l&&0<m&&m<l&&(l=m),m=k.toFixed(h,l,m));c=m.split(".");m=k.jy(c[0],d);c=1<c.length?c[1]:"";m=0<c.length?m+d.HF+c:m;!b&&0<e.length?m=k.K_(m,e,g,a):0==e.length&&0>h&&(m=k.ZR(m,d.xq));return m=k.N$(m,h)};k.toFixed=function(h,d,b){b=void 0===b?-1:b;if(0>=d&&0>=b)return h.toFixed(0);0>d&&(d=0);0>b&&(b=d);h=h.toLocaleString("en-US",{minimumFractionDigits:d,maximumFractionDigits:b});d=h.indexOf(".");return 0<=d?h.substr(0,d).replace(/[,\s\.]/g,"")+"."+h.substr(d+1):h.replace(/[,\s\.]/g,"")};k.IIa=function(h,
d,b,a){d=void 0===d?null:d;b=void 0===b?!1:b;a=void 0===a?!1:a;var c=0>h;h=Math.abs(h);if(1E3>h)return k.format(h,d,b,a);if(1E6>h){h/=1E3;var e="K"}else 1E9>h?(h/=1E6,e="M"):1E12>h?(h/=1E9,e="B"):(h/=1E12,e="T");var g=(c?"-":"")+k.toFixed(h,0==h%1?0:1),l=g.split(".");g=k.jy(l[0],d);l=1<l.length?l[1]:"";g=0<l.length?g+d.HF+l:g;g+=e;e=a||d.Xd?"%":d.pd;l=a||d.Xd?w.model.Zb.W.pf.Uy["1$"]:d.ou;a=a||d.Xd?w.model.Zb.W.pf.Rr["-1$"]:d.fu;!b&&0<e.length?g=k.K_(g,e,l,a):0==e.length&&c&&(g=k.ZR(g,d.xq));return g=
k.N$(g,h)};k.jy=function(h,d){d=void 0===d?null:d;var b=0>parseFloat(h);b&&(h=h.substr(1));var a=h;if(3<h.length){null==d&&(null==k.zR&&(k.zR=new w.model.Zb.W.pf("")),d=k.zR);a=Math.floor(h.length/3);var c=[],e=h.length%3;0<e&&c.push(h.substr(0,e));for(var g=0;g<a;g++)c.push(h.substr(e+3*g,3));a=c.join(d.thousandsSeparator)}b&&(a="-"+a);return a};k.K_=function(h,d,b,a){return 0==h.indexOf("-")?this.YK(h,d,a):this.mxa(h,d,b)};k.YK=function(h,d,b){h=0==h.indexOf("-")?h.substr(1):h;switch(b){case w.model.Zb.W.pf.Rr["-$1"]:h=
"-"+d+h;break;case w.model.Zb.W.pf.Rr["$1-"]:h=d+h+"-";break;case w.model.Zb.W.pf.Rr["($1)"]:h="("+d+h+")";break;case w.model.Zb.W.pf.Rr["(1$)"]:h="("+h+d+")";break;case w.model.Zb.W.pf.Rr["-1$"]:h="-"+h+d;break;case w.model.Zb.W.pf.Rr["$-1"]:h=d+"-"+h;break;case w.model.Zb.W.pf.Rr["1-$"]:h=h+"-"+d;break;case w.model.Zb.W.pf.Rr["1$-"]:h=h+d+"-"}return h};k.mxa=function(h,d,b){switch(b){case w.model.Zb.W.pf.Uy.$1:h=d+h;break;default:h+=d}return h};k.ZR=function(h,d){h=0==h.indexOf("-")?h.substr(1):
h;switch(d){case w.model.Zb.W.pf.gu["-1"]:h="-"+h;break;case w.model.Zb.W.pf.gu["- 1"]:h="- "+h;break;case w.model.Zb.W.pf.gu["1-"]:h+="-";break;case w.model.Zb.W.pf.gu["1 -"]:h+=" -";break;case w.model.Zb.W.pf.gu["(1)"]:h="("+h+")";break;default:h="-"+h}return h};k.N$=function(h,d){return 0<=d||-1==h.indexOf("-")||-1<h.search("[1-9]+")?h:h.replace("-","")};k.xg=function(h){return k.jy((h/1024).toFixed(0))};k.zta=function(h){var d=Math.abs(h);d<k.EPSILON?h=Math.floor(d):d-Math.floor(d)<k.EPSILON&&
(h=0>h?Math.ceil(h):Math.floor(h));return h};k.zR=new w.model.Zb.W.pf;k.EPSILON="undefined"===typeof Number.EPSILON?2.220446049250313E-16:Number.EPSILON;f.Tb=k})(x||(x={}));window["FM-DIVIDER"]="FM-DIVIDER";
(function(f){(function(k){(function(h){function d(){}d.J=function(b){b=d.Esa[b];for(var a="",c=0;c<b.length;c++)a+=String.fromCharCode(b[c]+101);return a};d.Esa=[[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]];d.pea=0;d.Rfa=1;d.Wba=2;d.A1=3;d.pAa=4;d.Nva=
5;d.zea=6;d.nda=7;d.KJa=8;d.HBa=9;d.qJa=10;d.PCa=11;d.ywa=12;d.mfa=13;d.y8=14;d.Ppa=15;d.u8=16;d.Opa=17;d.Jua=18;d.mKa=19;d.yJ=20;d.uJ=21;d.SBa=22;d.Yha=23;d.IBa=24;d.JBa=25;d.advanced=31;d.all=33;d.yva=34;d.JJa=35;d.QBa=36;d.RBa=54;d.Eha=55;d.UFa=37;d.Uva=38;d.TBa=39;d.info=40;d.Mta=41;d.Xha=42;d.Kba=43;d.Ova=44;d.Dfa=45;d.FC=46;d.OCa=48;d.GCa=49;d.Lwa=50;d.SCa=53;d.mZ=56;d.IV=62;d.QFa=63;d.EU=64;d.Fta=65;d.FBa=66;d.nAa=67;d.oAa=68;d.referrer=69;d.Ewa=70;d.xwa=71;d.qea=72;d.iJa=73;d.jJa=74;d.sHa=
75;d.hKa=76;d.ova=77;d.gB=80;d.Lsa=81;d.Msa=82;h.na=d})(k.Ea||(k.Ea={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){function k(){}k.encode=function(h){var d="",b=0;for(h=k.Spa(h);b<h.length;){var a=h.charCodeAt(b++);var c=h.charCodeAt(b++);var e=h.charCodeAt(b++);var g=a>>2;a=(a&3)<<4|c>>4;var l=(c&15)<<2|e>>6;var m=e&63;isNaN(c)?l=m=64:isNaN(e)&&(m=64);d=d+this.Bx.charAt(g)+this.Bx.charAt(a)+this.Bx.charAt(l)+this.Bx.charAt(m)}return d};k.decode=function(h){var d="",b=0;for(h=h.replace(/[^A-Za-z0-9\+\/=]/g,"");b<h.length;){var a=this.Bx.indexOf(h.charAt(b++));var c=this.Bx.indexOf(h.charAt(b++));
var e=this.Bx.indexOf(h.charAt(b++));var g=this.Bx.indexOf(h.charAt(b++));a=a<<2|c>>4;c=(c&15)<<4|e>>2;var l=(e&3)<<6|g;d+=String.fromCharCode(a);64!=e&&(d+=String.fromCharCode(c));64!=g&&(d+=String.fromCharCode(l))}return d=k.Rpa(d)};k.Spa=function(h){h=h.replace(/\r\n/g,"\n");for(var d="",b=0;b<h.length;b++){var a=h.charCodeAt(b);128>a?d+=String.fromCharCode(a):(127<a&&2048>a?d+=String.fromCharCode(a>>6|192):(d+=String.fromCharCode(a>>12|224),d+=String.fromCharCode(a>>6&63|128)),d+=String.fromCharCode(a&
63|128))}return d};k.Rpa=function(h){for(var d="",b=0,a,c,e;b<h.length;)a=h.charCodeAt(b),128>a?(d+=String.fromCharCode(a),b++):191<a&&224>a?(c=h.charCodeAt(b+1),d+=String.fromCharCode((a&31)<<6|c&63),b+=2):(c=h.charCodeAt(b+1),e=h.charCodeAt(b+2),d+=String.fromCharCode((a&15)<<12|(c&63)<<6|e&63),b+=3);return d};k.Bx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.Via=k})(x||(x={}));
(function(f){function k(){this.bw=!0;this.errorMessage=null}function h(){}h.PQ=function(d,b,a){a=void 0===a?null:a;if(0==d.trim().length)return{bw:!1,errorMessage:w.model.A.j.pna};var c=(new f.BI).parse(d),e=new k;return null==c||void 0==c.length||"string"===typeof c?(e.bw=!1,e.errorMessage=k.Rca(d),e):this.eta(c,b,a,e)};h.eta=function(d,b,a,c){h.I8(d,b,a,c);return c};h.I8=function(d,b,a,c){for(var e=d[1],g=0;g<e.length;g++){var l=e[g],m=w.u.Na.U().I.measures;if("string"===typeof l||Array.isArray(l)&&
1===l.length){var n="string"!==typeof l?l[0]:l;if(n===b&&""!==n){c.bw=!1;c.errorMessage=k.Aza(n);break}l=m.getItem(n);w.v(l)&&0<=n.indexOf("[Measures].")&&(l=m.getItem(w.u.me.zg(n)));if(w.v(l)){if(w.v(a)||0>a.indexOf(n))c.bw=!1,c.errorMessage=k.Rca(n);break}m=d[0];if("string"===typeof m&&!h.ata(m,l)){c.bw=!1;c.errorMessage=k.Tza(m,b);break}}else Array.isArray(l)&&void 0!=l.length&&this.I8(l,b,a,c)}};h.ata=function(d,b){if(w.v(b))return!1;w.u.i.ca.Vx(d)&&(d=w.u.i.ca.ky(d));w.u.i.oa.Nc===w.u.Na.U().fa.Ba&&
-1===b.Tc.indexOf(d)&&w.u.i.ca.NONE===b.Ll&&(d=b.Ll);return b.Ka||-1!==b.Tc.indexOf(d)};f.mO=h;k.Rca=function(d){return w.model.A.j.B7+" <br> "+w.O.bind(w.model.A.j.rna,w.model.Nb.validate(d))};k.Tza=function(d,b){return w.model.A.j.B7+" <br> "+w.O.bind(w.model.A.j.ona,w.model.Nb.validate(d),w.model.Nb.validate(b))};k.Aza=function(d){return w.O.bind(w.model.A.j.qna,d)};f.ELa=k})(x||(x={}));
(function(f){function k(){}k.pL=function(h,d){if(!w.v(h)&&0!=h.length){var b=[];k.jY(h,d,b);return b}};k.pG=function(h,d){return w.v(h)||0==h.length?h:k.lQ(h,d)};k.lQ=function(h,d){var b=[];Array.isArray(h[0])?b[0]=this.lQ(h[0],d):void 0!==h[0]&&(b[0]=h[0]);if(Array.isArray(h[1])){if("string"===typeof h[1][0]){var a=d.getItem(h[1][0]);if(!w.v(a)&&a.Ka)return k.pG(a.Sd,d)}b[1]=this.lQ(h[1],d)}else void 0!==h[1]&&(b[1]=h[1]);Array.isArray(h[2])?b[2]=this.lQ(h[2],d):void 0!==h[2]&&(b[2]=h[2]);return b};
k.jY=function(h,d,b){if(!0===h[2])for(var a in h[1])this.jY(h[1][a],d,b);else if(!1===h[2]){a=h[1][0];h=h[0];var c=d.getItem(a);c&&c.Ka?this.jY(c.Sd,d,b):b.push(new w.model.bb.Ig(a,h))}};f.ws=k})(x||(x={}));
(function(f){(function(k){(function(h){function d(){var c=y.Fc.call(this)||this;c.ga=f.u.Na.U();c.PX=null;c.hf=b.oX;c.cD=a.oX;c.OE=!1;c.eQ=!1;c.YX=!1;c.Q9=!1;c.zH=!1;c.aaa=function(){return c.uDa()};c.gN=function(){return c.Aq()};c.Aaa=function(){return c.b2()};c.Cha=function(e){return c.CFa(e)};c.hK=function(){return c.Z1()};c.Wy=function(e){return c.NC(e)};c.Xfa=function(e){return c.M2(e)};c.gga=function(){return c.Ya()};c.sp=new k.bb.voa;k.B.C.U();return c}function b(){}function a(){}a.oX="UNDEFINED";
a.vE="START_REPORT";a.lE="OPENING_REPORT_FILE";a.Xw="LOADING_REPORT_FILE";a.kn="REPORT_FILE_LOADED";a.SI="REPORT_FILE_ERROR";a.Yq="REPORT_FILE_CANCELLED";a.lm="REPORT_CHANGED";a.pE="REPORT_DEFINED";a.cE="LOADING_DATA";a.$H="DATA_LOADED";a.YH="DATA_ERROR";a.ZH="DATA_FILE_CANCELLED";a.Uu="STRUCTURE_LOADED";a.DW="LOADING_OLAP_STRUCTURE";a.J7="OLAPstructure__LOADED";a.I7="OLAPstructure__ERROR";a.hja="CONNECTED_TO_DATA_SOURCE";a.dW="EMPTY_SLICE";a.hA="RUNNING_QUERY";a.hk="QUERY_COMPLETE";a.Ds="QUERY_ERROR";
a.dE="LOADING_LOCALIZATION";a.eE="LOCALIZATION_LOADED";a.AI="LOCALIZATION_ERROR";a.Oh="REPORT_COMPLETE";a.J5="CREATION_COMPLETE";h.fd=a;b.oX="UNDEFINED";b.INIT="INIT";b.jo="CLEAR";b.Boa="SET_REPORT";b.toa="RUN_QUERY";b.bJ="UPDATE_DATA";b.vpa="UPDATE_DATA_PARTIAL";b.Gz="CONNECT_TO";b.e7="LOAD";b.OPEN="OPEN";b.Jc="COMPLETE";h.so=b;u(d,y.Fc);d.prototype.qC=function(c){var e=this;f.v(c)&&(c={});this.hf=b.INIT;k.Ea.pc.U().ita(c,function(g){if(g)if(e.Td(a.vE),e.BL=k.bb.ReportValueObject.tb(c.global?c.global:
{}),k.B.C.U().N(a.lm,function(){return e.Ya()}),k.size.nd.U().N(a.lm,function(){return e.Ya()}),k.ta.gm.U().N(a.lm,function(){return e.Ya()}),e.hJa(e.BL),e.HQ(),"string"===typeof c.report)e.xJ(c.report);else{var l=c.report||{};e.Xga(l);k.B.C.zp(l.options||l,!0,!1);f.pe(function(){e.hf===b.INIT&&e.FJ(l)},1)}})};d.prototype.Td=function(c,e,g){this.cD=c;if(c==a.vE||c==a.lE||c==a.Xw)this.YX=this.eQ=this.OE=!1;c==a.hA&&(this.Q9=this.OE,this.OE=!1);c!=a.hk&&c!=a.Ds||!0!==this.Q9||(this.OE=!0);c==a.Oh&&
(this.eQ=this.OE=!0);c==a.pE&&(this.eQ=!0);c==a.Uu&&(this.YX=!0);(void 0===g||g)&&this.Wa(c,null,void 0===e?null:e)};d.prototype.Bw=function(c){f.v(c)&&(c={});this.hf=b.Boa;this.cancel();this.Td(a.vE);this.FJ(c.report||{})};d.prototype.ae=function(c){this.hf=b.toa;c=c instanceof f.u.I.Zq?c:f.u.I.Zq.tb(k.bb.SliceValueObject.tb(c),this.ga.I);var e=f.u.I.Zq.y$(c,this.ga.sa),g=f.u.I.Zq.x$(c,this.ga.sa);if(f.u.I.Zq.dZ(c,this.ga.sa)&&!e&&!g){var l=new k.bb.Wu;l.rowSizes=k.size.nd.mga;l.columnSizes=k.size.nd.U$;
l.rowSizesByIdx=k.size.nd.rowSizesByIdx;l.rowHeaderSizes=k.size.nd.rowHeaderSizes;l.columnHeaderSizes=k.size.nd.columnHeaderSizes;l.rowFilterSizes=k.size.nd.rowFilterSizes;k.size.nd.cZ(l)}e&&(k.size.nd.rowSizes={});g&&(k.size.nd.columnSizes={});c.BCa(this.ga.sa);c.T4();c.lia();k.Ta.U().Wa("reset_grid");f.u.bf.ij.uc().se=!1;this.ga.nD(c);this.ga.filter();k.Qa.U().Da(new k.Xc(k.Qa.RI))};d.prototype.Jd=function(c,e){this.hf=b.bJ;this.cancel();this.Td(a.vE);var g=this.Gr();e.ignoreSorting&&(g.slice.columnSorting=
{},g.slice.rowSorting={});e.ignoreScroll&&k.Ta.U().Wa("reset_grid");f.ha(g.localization)||delete g.localization;var l=g.connectionInfo.mapping;g.connectionInfo=f.u.I.ConnectionInfo.tb(c);g.connectionInfo.mapping=g.connectionInfo.ob||g.connectionInfo.mapping.ob&&!g.connectionInfo.mapping.Sn&&void 0!==l?l:g.connectionInfo.mapping;c=g.La();null==g.connectionInfo.requestHeaders||f.v(c.dataSource)||(c.dataSource.requestHeaders=g.connectionInfo.requestHeaders);this.FJ(c,!0,e)};d.prototype.TJa=function(c,
e){var g=this;this.hf=b.vpa;var l=this.ga.sa.clone();this.cancel();this.Mga();this.Td(a.vE);e.ignoreSorting&&(l.Sb.rB(),l.ic.rB());e.ignoreScroll&&k.Ta.U().Wa("reset_grid");this.Id.connectionInfo.data&&(e=this.Id.connectionInfo.data,e=e.concat(c),this.Id.connectionInfo.data=e);this.ga.Jd(c);this.FY();f.u.bf.ij.uc().reset(!1);this.zH=!0;f.pe(function(){g.zH=!1},500);this.ga.sa=l;this.ga.filter()};d.prototype.AF=function(c){this.hf=b.Gz;this.cancel();this.Td(a.vE);this.FJ(c)};d.prototype.load=function(c,
e){this.hf=b.e7;this.cancel();this.xJ(c,e)};d.prototype.xJ=function(c,e){var g=this;this.Td(a.Xw);this.sp.N(k.bb.lh.kn,function(l){return g.OC(l)});this.sp.N(k.bb.lh.Qu,function(){return g.rM()});this.sp.load(c,e)};d.prototype.open=function(){var c=this;this.hf=b.OPEN;this.Td(a.lE);this.sp.cancel();this.sp.N(k.bb.lh.TI,function(){return c.Q2()});this.sp.N(k.bb.lh.kn,function(e){return c.OC(e)});this.sp.N(k.bb.lh.Qu,function(){return c.rM()});this.sp.N(k.bb.lh.Yq,function(){return c.qM()});this.sp.open()};
d.prototype.Xga=function(c){null!=c&&c.hasOwnProperty("dataSource")&&c.dataSource.hasOwnProperty("browseForFile")&&c.dataSource.browseForFile&&(c.dataSource.requestPermission=!0)};d.prototype.OC=function(c){this.Xga(c.bb);f.za(!1);this.Td(a.kn);this.FJ(c.bb)};d.prototype.rM=function(){f.za(!1);this.Td(a.SI);this.Td(a.pE);this.Td(a.Oh)};d.prototype.Q2=function(){this.Wa(a.Xw,null,"")};d.prototype.qM=function(){this.Td(a.Yq);this.Td(a.pE);this.Td(a.Oh)};d.prototype.Ya=function(){this.cD!=a.Oh&&this.cD!=
a.hk||k.Qa.U().Da(new k.Xc(k.Qa.RI))};d.prototype.FJ=function(c,e,g){var l=this;e=void 0===e?!1:e;g=void 0===g?null:g;1>k.Ea.pc.oj()||(this.Id=c instanceof k.bb.ReportValueObject?c:k.bb.ReportValueObject.tb(c),this.Id.connectionInfo.CBa=e,this.Id.connectionInfo.aia=g,e||k.Ta.U().Wa("reset_grid"),this.gta(this.Id),this.Mga(),this.Id.connectionInfo.ob?this.vea():this.Id.connectionInfo.mapping.bCa(this.Id.connectionInfo.requestHeaders,function(){return l.vea()}))};d.prototype.Mga=function(){this.Id.connectionInfo.ob?
this.qn&&!this.qn.ob&&(f.u.me.yD=!this.qn.Hc||this.qn.Ba==f.u.i.oa.Gf||this.qn.Ba==f.u.i.oa.API,f.u.me.BH=!this.qn.Hc||this.qn.Ba==f.u.i.oa.Gf||this.qn.Ba==f.u.i.oa.API):(f.u.me.yD=!this.Id.connectionInfo.Hc||this.Id.connectionInfo.Ba==f.u.i.oa.Gf||this.Id.connectionInfo.Ba==f.u.i.oa.API,f.u.me.BH=!this.Id.connectionInfo.Hc||this.Id.connectionInfo.Ba==f.u.i.oa.Gf||this.Id.connectionInfo.Ba==f.u.i.oa.API)};d.prototype.gta=function(c){"flat"!=c.options.R("gridType")||c.options.R("viewType")!=f.K.xd.fn||
c.connectionInfo.ob||c.connectionInfo.Ba!=f.u.i.oa.API||(c.options.la("viewType",f.K.xd.xs),f.Va(f.O.bind(k.A.j.IW),k.A.j.uO,f.rb.Ik))};d.prototype.Gr=function(c){c=void 0===c?{}:c;return h.W.i8.FJa(this.Eya(c))};d.prototype.clear=function(c){c=void 0===c?!1:c;this.cancel();this.hf=b.jo;this.HQ();c?this.ga.clearData():this.ga.cancel();this.Td(a.Oh)};d.prototype.cancel=function(){this.sp.cancel();this.gHa();this.zH=!1;f.u.me.yD=!1;f.u.me.BH=!1;f.za(!1)};d.prototype.vea=function(){var c=this;f.ha(this.BL.localization)?
this.bfa(null):(this.Td(a.dE),k.A.Xz.U().load(this.BL.localization,function(e){return c.bfa(e)},!0),this.BL.localization=null)};d.prototype.bfa=function(c){var e=this;f.ha(this.Id.localization)?(k.A.Xz.U().reset(),this.$G(c)):(this.Td(a.dE),k.A.Xz.U().load(this.Id.localization,function(g){return e.$G(g)}))};d.prototype.$G=function(c){c?this.Td(a.eE):!1===c&&this.Td(a.AI);this.fCa()};d.prototype.fCa=function(){this.hf!=b.Gz&&this.hf!=b.bJ&&(this.hf!=b.OPEN&&this.HQ(),k.B.C.zp(this.Id.options,!0,!1),
this.hf!=b.OPEN&&(k.B.C.An=k.B.C.zF));var c=this.hf;this.Td(a.pE);c==this.hf&&((c=this.Id.connectionInfo,!f.v(this.fa)&&!this.fa.ob&&this.fa.isEqual(c)&&!k.B.C.YM&&this.ga.fa&&this.ga.I&&this.ga.I.ce)?(c=f.u.bf.ij.uc(),this.Id.connectionInfo.aia&&this.Id.connectionInfo.aia.keepMembersOrder?c.se=!0:c.reset(),this.FY(),this.ga.$Ga()):(c.ob&&this.qn&&!this.qn.ob&&(c=this.qn),c.ob)?(this.fa=c,this.ga.cancel(),this.Td(a.Oh),f.za(!1)):(c.Hc?this.Td(a.DW):this.Td(a.cE),null!==this.ga.qa&&(this.hf==b.Gz||
this.hf==b.OPEN||f.v(this.fa)||this.fa.ob||c.Ba===this.fa.Ba?this.fa.Ba===f.u.i.oa.API&&this.Id.connectionInfo.Ba===f.u.i.oa.API&&f.u.bf.ij.wva!==f.u.bf.ij.vJa(this.Id.options)&&(this.ga.qa.tr(),this.ga.qa=null):(this.ga.qa.tr(),this.ga.qa=null)),this.dta(c),f.u.bf.ij.uc(),this.FY(),this.ga.connect(c)))};d.prototype.dta=function(c){!k.B.C.oc||f.v(c)||c.ob||c.KG||(k.B.C.oc=!1)};d.prototype.uDa=function(){this.hf===b.Gz?(this.HQ(),this.ga.sa&&this.ga.sa.clear(),this.ga.I&&this.ga.I.clear()):this.v$(!1);
this.Td(a.hja);this.fa=this.Id.connectionInfo};d.prototype.Aq=function(){this.Td(a.Uu);var c=f.u.I.Zq.tb(this.Id.slice,this.ga.I,!1,f.u.i.oa.API!==this.Id.connectionInfo.Ba);this.v$(!0);this.ga.nD(c);this.fa.Hc?(this.Td(a.J7),c.ob?(this.Td(a.dW),this.Td(a.Oh)):(k.B.C.An=k.B.C.zF,this.ga.filter())):(this.Td(a.$H),k.B.C.An=k.B.C.zF,this.ga.filter())};d.prototype.b2=function(){this.Td(a.ZH);this.Td(a.Oh)};d.prototype.CFa=function(c){var e=this.Id.connectionInfo;k.B.C.zp(this.Id.options);this.ga.cancel();
f.za(!1);e.Hc?this.Td(a.I7,c.data):this.Td(a.YH,c.data);this.Td(a.Oh)};d.prototype.Z1=function(){this.Td(a.hA)};d.prototype.NC=function(c){this.Td(a.hk,c.rp);this.cD!=a.Oh&&this.Td(a.Oh,null,c.rp!=f.u.i.Kd.eI)};d.prototype.M2=function(c){this.Td(a.Ds,c.data);this.cD!=a.Oh&&this.Td(a.Oh)};d.prototype.FY=function(){this.ga.N(f.u.cg.iX,this.aaa);this.ga.N(f.u.cg.Uu,this.gN);this.ga.N(f.u.cg.hX,this.Aaa);this.ga.N(f.u.cg.jX,this.Cha);this.ga.N(f.u.cg.QH,this.hK);this.ga.N(f.u.cg.hk,this.Wy);this.ga.N(f.u.cg.Ds,
this.Xfa);this.ga.N(a.lm,this.gga)};d.prototype.gHa=function(){this.ga.mb(f.u.cg.iX,this.aaa);this.ga.mb(f.u.cg.Uu,this.gN);this.ga.mb(f.u.cg.hX,this.Aaa);this.ga.mb(f.u.cg.jX,this.Cha);this.ga.mb(f.u.cg.QH,this.hK);this.ga.mb(f.u.cg.hk,this.Wy);this.ga.mb(f.u.cg.Ds,this.Xfa);this.ga.mb(a.lm,this.gga)};d.prototype.save=function(c,e,g,l,m){return this.sp.save(c,e,g,l,void 0===m?!1:m,this.Gr(c instanceof Object?c:{}))};d.prototype.Eya=function(c){if(void 0===this.ub&&void 0===this.ga.I&&void 0===this.ga.sa)return null;
var e=c.hasOwnProperty("withDefaults")?1==c.withDefaults:!1;c=c.hasOwnProperty("withGlobals")?1==c.withGlobals:!1;var g=new h.W.i8;g.withDefaults=e;g.iKa=c;g.ub=c&&this.ub.ob&&!this.qn.ob?this.qn:this.ub;g.I=this.ga.I;g.Lb=this.ga.sa;g.B=k.B.C.Vv(e,c);g.formats=k.Zb.Ni.eya();g.conditions=k.ta.gm.conditions;g.customFields=k.bb.XH.customFields;g.Fw=k.size.nd.zG();this.Id&&(g.localization=c&&null==this.Id.localization&&null!=this.PX?this.PX:this.Id.localization);return g};d.prototype.hJa=function(c){this.qn=
c.connectionInfo;this.HS=c.slice.drillThrough;k.B.C.qIa(c.options);this.PX=c.localization};d.prototype.HQ=function(){f.u.bf.ij.dispose();k.size.nd.clear();k.ta.gm.v3();k.Zb.Ni.clear();k.bb.XH.customFields=[];k.B.C.clear()};d.prototype.v$=function(c){c=void 0===c?!1:c;k.B.C.zp(this.Id.options,!1);c&&(k.size.nd.clear(),k.size.nd.cZ(this.Id.Fw));k.ta.gm.v3();for(c=0;c<this.Id.conditions.length;c++){var e=k.ta.W.Q5.tb(this.Id.conditions[c]);k.ta.gm.add(e)}k.Zb.Ni.clear();for(c=0;c<this.Id.formats.length;c++)k.Zb.Ni.kD(this.Id.formats[c]);
for(c=0;c<this.Id.slice.measures.length;c++)if(e=this.Id.slice.measures[c],void 0!==e.format){var g=void 0===e.aggregation?"":e.aggregation;g=f.u.i.ca.Vx(g)?f.u.i.ca.ky(g):g;k.Zb.Ni.lH(e.format,e.uniqueName,g)}k.bb.XH.customFields=this.Id.customFields};d.prototype.dispose=function(){this.cancel();k.ta.gm.dispose();k.B.C.dispose();k.$r.nE.dispose();k.rC.qO.dispose();k.A.Xz.dispose();k.Ea.pc.dispose();k.size.nd.dispose();k.Zb.Ni.dispose();this.sp.dispose();k.bb.XH.customFields=[];this.ga=this.Id=this.e9=
this.BL=this.ub=this.sp=null};q.Object.defineProperties(d.prototype,{fa:{configurable:!0,enumerable:!0,get:function(){return f.v(this.ub)||this.ub.ob?this.qn:this.ub},set:function(c){this.ub=c}},dc:{configurable:!0,enumerable:!0,get:function(){return this.OE}},tT:{configurable:!0,enumerable:!0,get:function(){return this.eQ}},xT:{configurable:!0,enumerable:!0,get:function(){return this.YX}},HS:{configurable:!0,enumerable:!0,get:function(){return this.e9},set:function(c){this.e9=c}}});h.Voa=d})(k.cc||
(k.cc={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){(function(k){(function(h){function d(){d.qu=[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]}function b(){}b.cC=function(a){return a==b.Gf?h.na.J(h.na.xwa):h.na.J(a+28)};b.Bl=0;b.Jja=2;b.Zd=3;b.zia=4;b.WN=5;b.Gf=6;h.po=b;d.U=function(){null==d.instance&&(d.instance=
new d);return d.instance};d.dispose=function(){d.vV=null;d.XF=null;d.oea=null;d.B1=null;d.Rx=null;d.qu=null;d.instance=null};d.prototype.ita=function(a,c){this.Eb=c;a[h.na.J(h.na.pea)]?this.SM(a[h.na.J(h.na.pea)]):a[h.na.J(h.na.Rfa)]?this.SM(a[h.na.J(h.na.Rfa)]):a[h.na.J(h.na.Wba)]?this.SM(a[h.na.J(h.na.Wba)]):a[h.na.J(h.na.A1)]?this.uea(a[h.na.J(h.na.A1)]):window[h.na.J(h.na.qea)]?this.SM(window[h.na.J(h.na.qea)]):this.uea(a[h.na.J(h.na.A1)])};d.prototype.SM=function(a){a=k.Nb.validate(a);d.Rx=d[h.na.J(h.na.Kba)+
h.na.J(h.na.u8)]=a;d.error=!1;this.Eb(!0)};d.prototype.jta=function(a){if(void 0==a)return b.Bl;if(a.trim()==h.na.J(h.na.hKa))return this.Vn(h.na.J(h.na.Yha)),b.Bl;a=a.trim();var c=this.ZAa(a);c&&(a=this.yxa(a));if(!this.$da(a))return b.Bl;a=this.GHa(a);var e=this.$ya(a);c&&(d.Cx=!0);var g=this.Aya(),l=this.iBa(g),m=this.eBa(g);if(!d.r$&&this.e1())return this.Vn(h.na.J(h.na.pAa)),b.Bl;if(c&&d.uu)if(this.QQ(a))d.Ro=!0;else return;if(d.uu&&!this.QQ(a))return b.Bl;if(d.Ro)if(l||m||c){if(!this.cta(a))return b.Bl}else return this.Vn(f.O.bind(h.na.J(h.na.Nva),
g)),b.Bl;if(d.pp&&!this.kta(a,l||m?h.na.J(h.na.zea):g))return b.Bl;if(e==b.Bl||f.v(e))this.Vn(h.na.J(h.na.nda));else if(!this.lta(a))return b.Bl;d.uu||d.Ro||d.pp||(e=b.Bl);return e};d.oj=function(){var a=[h.na.J(h.na.Kba),"G"].join("X");return d.U().jta(d[a])};d.prototype.Vn=function(a,c,e){e=void 0===e?!1:e;(void 0===c||c)&&null!=d.Rx&&0<d.Rx.length&&(a+=h.na.J(h.na.gB)+h.na.J(h.na.gB)+h.na.J(h.na.KJa)+d.Rx);e&&(a+=h.na.J(h.na.gB)+h.na.J(h.na.Eha)+x.gh.format(d.vV,"MM/dd/yyyy"));c=new Date(parseFloat(f.Ug.NV)/
61);a+=h.na.J(h.na.gB)+h.na.J(h.na.gB)+h.na.J(h.na.ova)+f.Ug.qs+(" ("+h.na.J(h.na.Lsa)+" "+x.gh.format(c,"MM/dd/yyyy")+")");d.error=!0;f.za(!1);this.Eb(!1);f.Va(a,k.A.j.ya,f.rb.ya,[],null,!0)};d.prototype.uea=function(a){var c=this;a||(a=x.hx.AG(h.na.J(h.na.HBa)));a=a+h.na.J(h.na.qJa)+Date.now();this.xhr=new XMLHttpRequest;this.xhr.open("GET",a,!0);this.xhr.onerror=function(){return c.Yea()};this.xhr.onreadystatechange=function(e){return c.lu(e)};this.xhr.send()};d.prototype.lu=function(){null!=this.xhr&&
4===this.xhr.readyState&&(200===this.xhr.status?this.vEa(this.xhr.responseText):this.Yea())};d.prototype.vEa=function(a){this.SM(a)};d.prototype.Yea=function(){this.Vn(h.na.J(h.na.PCa))};d.prototype.iBa=function(a){return null==a||-1==a.indexOf(".")?!0:!1};d.prototype.eBa=function(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)};d.prototype.ZAa=function(a){return a.substr(0,2)==h.na.J(h.na.u8)};d.prototype.yxa=function(a){a=a.substr(2);
var c=Math.floor((new Date).getTime()/6048E5),e=parseInt(a.substr(0,2),16);a=a.replace(RegExp("-","g"),"").substr(2);for(var g=0;2>g;g++){for(var l=0;5>l;l++){for(var m=e*c*l,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.$da(n,!1))return n}c++}return"-"};d.prototype.e1=function(){if(self==top||-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.Fta))||-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.FBa))||
-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.iJa))||-1<window[h.na.J(h.na.yJ)][h.na.J(h.na.uJ)].toLowerCase().indexOf(h.na.J(h.na.jJa)))return!1;try{window.parent.document}catch(a){return!0}return!1};d.prototype.$da=function(a,c){c=void 0===c?!0:c;if(null==a||0==a.length)return c&&this.Vn(h.na.J(h.na.ywa)),!1;if(a.trim()==h.na.J(h.na.IBa))return c&&this.Vn(h.na.J(h.na.JBa),!1),!1;a=a.trim().replace(/-/gi,"");if(a.substr(0,2)==h.na.J(h.na.y8).substr(0,1)+7){var e=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.na.J(h.na.y8)||a.substr(0,2)==h.na.J(h.na.Ppa)||a.substr(0,2)==h.na.J(h.na.Opa)?c&&this.Vn(h.na.J(h.na.mfa),!0,!0):c&&this.Vn(h.na.J(h.na.nda)),!1;for(var l=0;l<a.length;l+=2){var m=parseInt(a.substr(l,2),36);isNaN(m)||(e+=m)}return g!=e||1>g?(c&&this.Vn(h.na.J(h.na.Jua)),!1):!0};d.prototype.GHa=function(a){a=a.trim().replace(/-/gi,"");var c=parseInt(a.substring(2,
4),36);a=a.substring(8).toLowerCase();for(var e="",g=0;g<a.length;g+=2)e+=String.fromCharCode(parseInt(a.substr(g,2),36)^Math.abs(Math.sin(g/2+2)*c*(g/2+7))%256);return e};d.prototype.$ya=function(a){d.Oaa=x.Bda();a=a.charCodeAt(0);d.r$=256<=a;a%=256;d.Ro=128<=a;a%=128;d.Zca=64<=a;a%=64;d.pp=32<=a;a%=32;d.Cx=16<=a;a%=16;d.uu=8<=a;return a%8};d.prototype.Aya=function(){var a;if(this.e1()){if(a=document[h.na.J(h.na.referrer)])a=a.replace(h.na.J(h.na.nAa),""),a=a.replace(h.na.J(h.na.oAa),""),a=a.split("/")[0]}else{a=
h.na.J(h.na.yJ);var c=h.na.J(h.na.uJ);a=window[a][c]}if(null==a)return null;a=a.replace(h.na.J(h.na.mKa),"");return a=a.split(":")[0]};d.prototype.lta=function(a){var c=d.uu?a.substr(-6,3):a.substr(-3);a=new Uint8Array(c.length);for(var e=0;e<c.length;e++)a[e]=c.charCodeAt(e)^d.qu[e];c="";for(e=0;e<a.byteLength;e++)c+=String.fromCharCode(a[e]);a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());d.vV=a;e=new Date(parseFloat(f.Ug.NV)/61);return!a||isNaN(a.getTime())||a<e?(this.Vn(h.na.J(h.na.mfa),
!0,!0),!1):!0};d.prototype.QQ=function(a){var c=a.substr(-3);a=new Uint8Array(c.length);for(var e=0;e<c.length;e++)a[e]=c.charCodeAt(e)^d.qu[e];c="";for(e=0;e<a.byteLength;e++)c+=String.fromCharCode(a[e]);a=new Date(864E5*(parseInt(c,34)+17001)+6E4*(new Date).getTimezoneOffset());d.XF=a;a=new Date(864E5*(parseInt(c,34)+17002)+6E4*(new Date).getTimezoneOffset());return!a||isNaN(a.getTime())||a<new Date?(d.pp||d.Ro?this.Vn(h.na.J(h.na.SBa)):this.Vn(h.na.J(h.na.Yha)),!1):!0};d.prototype.cta=function(a){var c=
a;a=a.substr(1);for(var e=new Uint8Array(a.length),g=0;g<a.length;g++)e[g]=a.charCodeAt(g)^d.qu[g];a="";for(g=0;g<e.byteLength;g++)a+=String.fromCharCode(e[g]);d.B1=a.split(String.fromCharCode(224))[0];return d.uu&&!this.QQ(c)?!1:!0};d.prototype.kta=function(a,c){var e=a;a=a.substr(1);for(var g=new Uint8Array(a.length),l=0;l<a.length;l++)g[l]=a.charCodeAt(l)^d.qu[l];a="";for(l=0;l<g.byteLength;l++)a+=String.fromCharCode(g[l]);g=a.split(String.fromCharCode(224));a=g[0];d.oea=g.shift();if(d.uu&&!this.QQ(e))return!1;
if(c==h.na.J(h.na.zea))return!0;e=" ";d.Zca&&c.length>=a.length-2&&(e="*."+c.substring(c.length-a.length+2));return a!=c&&a!=e&&a!=f.Coa.hash(c)?(this.Vn(f.O.bind(h.na.J(h.na.QFa),a)),!1):!0};d.UBa=function(){return b.cC(d.oj())};d.error=!1;d.uu=!1;d.pp=!1;d.Ro=!1;d.Oaa=!1;d.XF=new Date(2009,9,30);d.vV=new Date(2009,9,30);d.Cx=!1;d.Rx="";d.Zca=!1;d.r$=!1;h.pc=d})(k.Ea||(k.Ea={}))})(f.model||(f.model={}))})(w||(w={}));
(function(f){function k(){}k.ija='<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>';k.jja=
'<Override PartName="{0}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>';k.Qpa='<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>';
k.Hia='<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>';
k.Hja='<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>';k.Epa='<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>';
k.Fpa='<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>';
k.Gpa='<Relationship Id="{0}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="{1}"/>';k.apa='<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>';
k.Moa='<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>';
k.Doa='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="5" uniqueCount="5">{0}</sst>';k.Eoa='<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>';
k.Hs='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';f.ri=k})(U||(U={}));
(function(f){(function(k){function h(){var d=y.Fc.call(this)||this;d.nC=new f.nb;d.EG=new f.nb;d.AZ=0;if(null!=h.instance)throw Error("Singleton");return d}u(h,y.Fc);h.U=function(){void 0==h.instance&&(h.instance=new h);return h.instance};h.prototype.nD=function(d){this.fa.Hc||d.ob&&f.model.B.C.hha&&d.M1&&d.kCa();for(var b=0;b<d.pages.length;b++){var a=d.pages.ea(b);a.filter.ai&&a.filter.pB()}var c=d.rc(!1,!1);for(b=0;b<c.length;b++)if(a=c.ea(b),a.cb=[],a.filter.ai&&a.filter.measure&&(-1==a.filter.measure.index&&
(a.filter.measure.index=d.zca(a.filter.measure.uniqueName,a.filter.measure.$),-1==a.filter.measure.index&&(a.filter.measure.index=d.zca(a.filter.measure.uniqueName))),-1!=a.filter.measure.index)){var e=d.$B(a.filter.measure.index);f.v(e)||(a.filter.measure.$=e.$)}this.sa=d};h.prototype.$Ga=function(){!this.fa.Hc&&this.I&&(this.I.ce=!1,this.$C());for(var d=this.I.rc(!1),b=0;b<d.length;b++){var a=d.ea(b);a.nt();a.rZ();this.fa.Hc?0<a.JB.length&&(a.ce=!1):a.ce=!1}this.sa&&this.sa.clear();this.HK()};h.prototype.connect=
function(d){var b=this;f.v(this.Ys)||this.Ys.cancel();this.Ys=k.Xoa.Rza(d);this.Ys.load(d,function(){return b.HK()},function(a){b.Wa(k.cg.jX,null,{error:a})},function(){b.cancel(!1);b.fa=d;b.Ap=b.Ys;b.qa=b.fa.Ba==k.i.oa.Gf?new k.external.De.zka(b):b.fa.Ba==k.i.oa.API?new k.external.kc.Z4(b):b.fa.Hc?new k.external.yb.Kna(b):new k.local.xO(b);b.Ys=null;b.Gm=k.cW.$_(b.fa);null!=b.I&&b.I.clear();b.I=k.I.Woa.Qza(b.fa.Ba);b.I.xIa(d.mapping);b.Wa(k.cg.iX)},function(){b.Wa(k.cg.hX)})};h.prototype.HK=function(){this.I.ce=
!0;this.Wa(k.cg.Uu)};h.prototype.cancel=function(d){d=void 0===d?!0:d;x.Pk.cancel();this.Ap&&(this.Ap.cancel(),this.Ap=null);this.Gm&&(this.Gm.cancel(),this.Gm=null);this.nC=new f.nb;this.EG=new f.nb;d&&this.I&&(this.I.clear(),this.I=null);d&&this.sa&&(this.sa.clear(),this.sa=null);d&&this.qa&&(this.qa.tr(),this.qa=null);d&&this.Ys&&(this.Ys.cancel(),this.Ys=null);this.AZ=0};h.prototype.clearData=function(){this.Gm&&(this.Gm.cancel(),this.Gm=null);this.qa&&this.qa.tr()};h.prototype.PG=function(d,
b){var a=this;null!=d&&(this.qa.select(!1),null!==this.Gm&&this.Gm.cancel(),this.Gm=k.cW.$_(this.fa),this.Gm.load(this.fa,d,b,function(c){return a.NF(c)}))};h.prototype.Hm=function(d){this.Da(new k.WW(void 0===d?"":d))};h.prototype.NF=function(d){this.Wa(k.cg.Ds,null,{error:d})};h.prototype.filter=function(){this.select(k.i.Kd.bO)};h.prototype.sort=function(){this.Hm()};h.prototype.expand=function(d,b,a,c){var e=this;c=void 0===c?!0:c;this.Da(new k.PD(k.i.Kd.Oz));this.n3(d,b,a,function(){e.qa.expand(d,
b,a);c&&(e.Hm(k.i.Kd.Oz),f.pe(function(){e.Wa(f.model.cc.fd.lm)},1))})};h.prototype.$pa=function(d,b,a){a=f.v(a)?this.sa.Of:[a];for(var c=!0,e=0;e<a.length;e++){var g=b===k.i.ia.Ia?this.qa.Fa(d,[],a[e]):this.qa.Fa([],d,a[e]);if(!isNaN(g)){c=!1;break}}return c};h.prototype.n3=function(d,b,a,c){this.fa.Hc?this.$pa(d,b,a)?c():(a=new k.oE(k.i.Kd.Oz),a.We=d,a.ft=b,a.body=k.gA.YB(this.sa,this.fa).expand(b,d),void 0===a.body?c():this.PG(a,c)):c()};h.prototype.Zpa=function(d,b,a){if(null!=b.hierarchy.nc)return!1;
var c=f.v(void 0)?this.sa.Of:[void 0],e=!0;d=d.slice(0);d[d.length-1]=b.ordinal;for(b=0;b<c.length;b++){var g=a===k.i.ia.Ia?this.qa.Fa(d,[],c[b]):this.qa.Fa([],d,c[b]);if(!isNaN(g)){e=!1;break}}return e};h.prototype.Mfa=function(d,b,a,c){if(this.fa.Hc)if(this.Zpa(d,b,a))c();else{var e=new k.oE(k.i.Kd.Fu);e.We=d;e.ft=a;e.body=k.gA.YB(this.sa,this.fa).tf(a,d,b,b.level.uniqueName);void 0===e.body?c():this.PG(e,c)}else c()};h.prototype.collapse=function(d,b,a,c){c=void 0===c?!0:c;this.qa.collapse(d,b,
a);c&&this.Hm(k.i.Kd.y5)};h.prototype.drillThrough=function(d,b,a,c,e){var g=this;e=void 0===e?null:e;var l=new k.oE(k.i.Kd.eI);l.body=k.gA.YB(this.sa,this.fa).drillThrough(d,b,a,e?e.slice(0):null);f.za(!0,f.model.A.j.Hf);e=new k.PD(k.i.Kd.eI);this.Da(e);this.Gm.cancel();this.Gm=k.cW.$_(this.fa);this.Gm.drillThrough(this.fa,l,d,b,a,function(m){c(m);g.Hm(l.type)},function(){c();g.Hm(l.type)})};h.prototype.expandAll=function(d,b){this.sa.expandAll=d;this.sa.drillAll=b;this.sa.xta();this.sa.wta();this.fa.Hc&&
this.qa.vF()};h.prototype.tf=function(d,b,a,c){var e=this;b.hierarchy.$x(b);var g=new k.PD(k.i.Kd.Fu);this.Da(g);this.fa.Hc?b.ah?(this.qa.tf(d,b,a,c),this.Hm(k.i.Kd.Fu)):this.Uj(b.hierarchy,b,function(){var l=new k.oE(k.i.Kd.Fu);l.We=d;l.ft=a;l.body=k.gA.YB(e.sa,e.fa).tf(a,d,b);e.PG(l,function(){e.qa.tf(d,b,a,c);for(var m=[],n=b.level.sb+1;n<b.hierarchy.ra.length;n++){var p=b.hierarchy.ra.ea(n);p&&(m=m.concat(b.hierarchy.JB(p)))}if(0<m.length){p=[];var t,r;for(n=0;n<m.length;n++)for(r=t=b.hierarchy.va(m[n]);void 0!==
t&&void 0!==t.parent;){if(t.parent.ordinal===b.ordinal){p.push(r);break}t=t.parent}e.rea(l,d,a,p,c)}else e.Hm(l.type)})}):(this.qa.tf(d,b,a,c),this.Hm(k.i.Kd.Fu))};h.prototype.rea=function(d,b,a,c,e){var g=this;if(0<c.length){var l=c.shift(),m=b.slice(0);m[m.length-1]=l.ordinal;d.We=m;d.body=k.gA.YB(this.sa,this.fa).tf(a,m,l);this.PG(d,function(){g.qa.tf(m,l,a,e);g.rea(d,b,a,c,e)})}else this.Hm(d.type)};h.prototype.Gn=function(d,b,a,c,e){var g=this,l=k.gA.YB(this.sa,this.fa);c=new k.PD(k.i.Kd.ZV);
this.Da(c);this.Ap.Iy(b,e,function(){var m=new k.oE;m.type=k.i.Kd.ZV;m.We=d;m.ft=a;m.body=l.tf(a,d,b,e);g.PG(m,function(){g.qa.Gn(d,b,a,e);g.Hm(m.type)})},function(m){return g.NF(m)})};h.prototype.To=function(d,b,a,c){b.hierarchy.q_(b);this.qa.To(d,b,a,c);d=new k.PD(k.i.Kd.aW);this.Da(d);this.Hm(k.i.Kd.aW)};h.prototype.select=function(d){d=void 0===d?k.i.Kd.to:d;!f.model.Ea.pc.uu||f.model.Ea.pc.pp||f.model.Ea.pc.Ro||f.model.Ea.pc.Cx||0==(new Date).getTime()%378&&f.Va(f.model.Ea.na.J(f.model.Ea.na.Dfa),
f.model.Ea.na.J(f.model.Ea.na.Xha));var b=new k.PD(d);this.Da(b);this.fa.Hc?(this.qa.tr(),this.LGa()):(this.qa.select(),this.Hm(d))};h.prototype.ct=function(d,b){b=void 0===b?!0:b;d=d instanceof k.I.ek?d:this.I.nw(d);if(f.model.B.C.GV){var a=x.mO.PQ(d.qe,d.uniqueName);0==a.bw&&f.Va(a.errorMessage)}if(!this.fa.Hc||!d.Ka||f.model.B.C.zv||this.fa.Ba===k.i.oa.API){if(null==this.I.$c(d.uniqueName)){d.Ka&&(a=new x.BI,d.Sd=a.parse(d.qe),this.I instanceof k.external.kc.I.OH&&(d.Sd=x.ws.pG(d.Sd,this.I.measures)));
if(d.Ka&&null==d.Sd)return;this.I.VT&&this.I.Hj(d);null!=this.sa&&!this.sa.mt.Bb(d.uniqueName)&&d.Nm&&this.lda(d);b&&(this.I.ce&&!this.fa.Hc||this.I.ce&&this.fa.Ba==f.u.i.oa.API||this.I.ce&&this.fa.rT&&this.fa.Ba==f.u.i.oa.Nc&&f.model.B.C.zv)&&this.refresh()}else{a=new x.BI;d.Sd=a.parse(d.qe);this.I instanceof k.external.kc.I.OH&&(d.Sd=x.ws.pG(d.Sd,this.I.measures));if(d.Ka&&null==d.Sd)return;b=this.I.$c(d.uniqueName);b.caption=d.caption;b.Ir=d.Ir;b.qe=d.qe;b.gl=d.gl;b.Sd=d.Sd;b.Eo=d.Eo;b.Nm=d.Nm;
(this.sa.mt.Bb(b.uniqueName)||b.Nm)&&this.lda(b);(this.I.ce&&!this.fa.Hc||this.I.ce&&this.fa.Ba==f.u.i.oa.API||this.fa.Ba==f.u.i.oa.Nc&&f.model.B.C.zv)&&this.refresh()}this.Ya()}};h.prototype.lda=function(d){for(var b=-1,a=this.sa.ad(),c=0;c<a.length;c++)if(d.uniqueName==a[c].uniqueName){b=c;break}0<=b?(d.index=b,a[b]=d):(a.push(d),d.index=a.length);this.sa.fz(a);this.sa.T4();this.eia(this.sa.Sb,d);this.eia(this.sa.ic,d)};h.prototype.eia=function(d,b){null!=d.Ff&&d.Ff.uniqueName==b.uniqueName&&(d.Ff=
b)};h.prototype.Xy=function(d,b){b=void 0===b?!0:b;var a=this.I.$c(d);a&&a.Ka&&(this.I.aD(d),this.sa.aD(d),b&&this.I.ce&&this.refresh(),this.Ya())};h.prototype.$C=function(){for(var d=0;d<this.I.measures.length;){var b=this.I.measures.ea(d);b.Ka?this.Xy(b.uniqueName,!1):d++}this.I.ce&&this.refresh();this.Ya()};h.prototype.Ya=function(){f.model.Qa.U().Wa(f.model.Qa.RI)};h.prototype.refresh=function(){this.I.ce?(this.fa.Ba==k.i.oa.EMPTY&&f.v(this.sa)&&this.HK(),this.filter()):this.fa.Ba==k.i.oa.EMPTY&&
this.HK()};h.prototype.yk=function(d,b){var a=this;(this.sa.drillAll||0<d.vw.length)&&d.Un!=d.vi&&(d.ce=!1);if(!d.Qe&&!d.ce||null!=d.nc){0==this.nC.length&&this.Ap.yk(d,function(e){return a.efa(e)},function(e){return a.NF(e)});this.nC.Pa(d.uniqueName,d);var c=null!=this.EG.getItem(d.uniqueName)?this.EG.getItem(d.uniqueName):[];c.push(b);this.EG.Pa(d.uniqueName,c)}else b(d)};h.prototype.Uj=function(d,b,a){var c=this;this.Ap.Uj(d,b,a,function(e){return c.NF(e)})};h.prototype.vp=function(d,b,a){var c=
this;this.Ap.kB()?this.Ap.vp(d,b,a,function(e){return c.NF(e)}):(d=2<d.ra.length?this.ZHa(d,b):this.YHa(d,b),a(d))};h.prototype.YHa=function(d,b){var a=[],c=d.vi,e;for(e=0;e<c;e++)if(d.yd.ordinal!=e){var g=d.va(e);void 0!==g&&f.O.contains(g.caption,b)&&a.push(e)}return a};h.prototype.ZHa=function(d,b){var a=[];this.Bba(a,d.yd,b);var c;for(c=0;c<a.length;c++)b=this.mda(a,d.va(a[c]),c),c+=b;return a};h.prototype.mda=function(d,b,a){b=b.parent;var c=0;f.v(b)||b.Wb||(-1==d.indexOf(b.ordinal)&&(c++,d.splice(a,
0,b.ordinal)),c+=this.mda(d,b,a));return c};h.prototype.Bba=function(d,b,a){for(var c=b.children,e=c.length,g=b.hierarchy,l=0;l<e;l++)b=g.va(c[l]),f.O.contains(b.caption,a)&&d.push(b.ordinal),this.Bba(d,b,a)};h.prototype.efa=function(d){var b=this;d.Iv();d.ce=!0;this.nC.removeItem(d.uniqueName);var a=this.EG.getItem(d.uniqueName);if(null!=a)for(var c=0;c<a.length;c++)(0,a[c])(d);this.EG.removeItem(d.uniqueName);0<this.nC.length&&(d=this.nC.ea(0),null!=this.Ap?this.Ap.yk(d,function(e){return b.efa(e)},
function(e){return b.NF(e)}):this.nC=null)};h.prototype.LGa=function(){var d=this;if(this.sa.ob)this.Hm();else{var b=this.sa.rc(!0,!0,f.model.B.C.oc);this.AZ=b.length;for(var a=0;a<b.length;a++){var c=b.ea(a);this.yk(c,function(){return d.PEa()})}}};h.prototype.PEa=function(){var d=this;if(0==--this.AZ){this.fa.Hc&&this.sa.e3();var b=new k.oE(k.i.Kd.to);b.body=k.gA.YB(this.sa,this.fa).select();this.PG(b,function(){f.model.B.C.oc||d.fa.Ba!=k.i.oa.Gf&&d.fa.Ba!=k.i.oa.API?d.Hm(b.type):(f.za(!0,f.model.A.j.Hf),
d.sea(function(){d.tea(function(){d.sea(function(){d.tea(function(){f.za(!1);d.Hm(b.type)})})})}))})}};h.prototype.tea=function(d){for(var b=this,a=new x.YI,c=this.sa.Cd(k.i.ia.Ia).zd,e=0;e<c.length;e++){var g=c[e];a.add(function(l,m){var n=b.sa.vb.ea(m.length-1);if(n&&null!=n.nc){var p=n.va(m[m.length-1]);null!=p&&b.qa.Gn(m.slice(0,-1),p.parent,k.i.ia.Ia,n.ig)}b.qa.Ih(m)?l():b.n3(m,k.i.ia.Ia,void 0,function(){b.qa.expand(m,k.i.ia.Ia,void 0);l()})},g.slice(1))}c=this.sa.Cd(k.i.ia.Sa).zd;for(e=0;e<
c.length;e++)g=c[e],a.add(function(l,m){var n=b.sa.Cb.ea(m.length-1);if(n&&null!=n.nc){var p=n.va(m[m.length-1]);null!=p&&b.qa.Gn(m.slice(0,-1),p.parent,k.i.ia.Sa,n.ig)}b.qa.Sj(m)?l():b.n3(m,k.i.ia.Sa,void 0,function(){b.qa.expand(m,k.i.ia.Sa,void 0);l()})},g.slice(1));a.Wf(d)};h.prototype.sea=function(d){var b=this;if(this.fa.Ba!==k.i.oa.API||k.external.kc.I.ho.GL){for(var a=new x.YI,c=this.sa.Cd(k.i.ia.Ia).uf,e=0;e<c.length;e++)a.add(function(g,l){var m=b.sa.vb.ea(l.length-3);if(f.v(m))g();else{var n=
m.Db(l[1]);null==n?g():(l=l.slice(2),b.Mfa(l,n,k.i.ia.Ia,function(){b.qa.tf(l,n,k.i.ia.Ia,void 0);g()}))}},c[e].slice(0));c=this.sa.Cd(k.i.ia.Sa).uf;for(e=0;e<c.length;e++)a.add(function(g,l){var m=b.sa.Cb.ea(l.length-3).Db(l[1]);null==m?g():(l=l.slice(2),b.Mfa(l,m,k.i.ia.Sa,function(){b.qa.tf(l,m,k.i.ia.Sa,void 0);g()}))},c[e].slice(0));a.Wf(d)}else d()};h.prototype.Gga=function(d){f.pe(function(){f.model.Qa.U().Wa(f.model.Qa.S5,null,d)},1)};h.prototype.Jd=function(d){this.Ap.Jd(d);this.HK()};h.dispose=
function(){k.HI.dispose();k.kX.dispose();k.external.yb.eh.v8.dispose();k.external.kc.Y4.dispose();x.Pk.cancel();if(h.instance){h.instance.sa=null;try{h.instance.qa.tr()}catch(d){}h.instance.qa=null;try{h.instance.Gm.cancel()}catch(d){}h.instance.Gm=null;try{h.instance.Ap.cancel()}catch(d){}h.instance.Ap=null;try{h.instance.Ys.cancel()}catch(d){}h.instance.Ys=null;try{h.instance.I.clear()}catch(d){}h.instance.I=null;h.instance=null}};k.Na=h})(f.u||(f.u={}))})(w||(w={}));
(function(f){(function(k){function h(){var d=A.Ca.call(this,"div")||this;d.F.$k();return d}u(h,A.Ca);h.prototype.gb=function(){this.F.html(f.model.Ea.na.J(f.model.Ea.na.IV));this.F.element.setAttribute("style","z-index:1!important;left:"+(k.Hb.tu-this.cf())/2+"px!important;top:"+(k.Hb.jC-this.qd())/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;")};
k.Hpa=h})(f.K||(f.K={}))})(w||(w={}));
(function(f){function k(){}function h(d,b){var a=this;this.bT=!1;this.kc=null;this.a_=[];this.c_=[];this.b_=[];h.instance=this;this.kc=b;f.v(d)&&(d={});if(0!=x.aBa()||0!=confirm("Flexmonster Pivot Table is not completely supported by this version of browser. Please update your browser. Continue anyway?")){var c="flexmonster/";void 0!==d.componentFolder&&(c=d.componentFolder);x.hx.BZ=c;x.mn.gZ=c;var e;d.container instanceof HTMLElement?e=d.container:f.v(d.container)||(e=document.getElementById("#"==
d.container.substr(0,1)?d.container.substring(1):d.container));null==e?(d=0==f.ha(d.container)?"Flexmonster:\nUnable to create the component. DOM element with id '"+d.container+"' is not found.":"Flexmonster:\nUnable to create the component. DOM element is null.",console.error(d),alert(d)):(c=this.Oca(e),f.v(c)||void 0===c.flexmonster||(c.flexmonster.dispose(),c.flexmonster=void 0),this.ja=f.model.Ta.U(),this.ja.Ga.N(f.model.cc.fd.lE,function(){return a.WEa()}),this.ja.Ga.N(f.model.cc.fd.Xw,function(){return a.G2()}),
this.ja.Ga.N(f.model.cc.fd.kn,function(){return a.OC()}),this.ja.Ga.N(f.model.cc.fd.SI,function(){return a.jFa()}),this.ja.Ga.N(f.model.cc.fd.Yq,function(){return a.qM()}),this.ja.Ga.N(f.model.cc.fd.pE,function(){return a.P2()}),this.ja.Ga.N(f.model.cc.fd.cE,function(){return a.E2()}),this.ja.Ga.N(f.model.cc.fd.$H,function(){return a.ip()}),this.ja.Ga.N(f.model.cc.fd.YH,function(g){return a.Wea(g)}),this.ja.Ga.N(f.model.cc.fd.ZH,function(){return a.b2()}),this.ja.Ga.N(f.model.cc.fd.Uu,function(){return a.Aq()}),
this.ja.Ga.N(f.model.cc.fd.DW,function(){return a.yEa()}),this.ja.Ga.N(f.model.cc.fd.J7,function(){return a.hfa()}),this.ja.Ga.N(f.model.cc.fd.I7,function(g){return a.gfa(g)}),this.ja.Ga.N(f.model.cc.fd.dE,function(){return a.xEa()}),this.ja.Ga.N(f.model.cc.fd.eE,function(){return a.$G()}),this.ja.Ga.N(f.model.cc.fd.AI,function(){return a.AEa()}),this.ja.Ga.N(f.model.cc.fd.dW,function(){return a.f2()}),this.ja.Ga.N(f.model.cc.fd.hA,function(){return a.nFa()}),this.ja.Ga.N(f.model.cc.fd.hk,function(){return a.NC()}),
this.ja.Ga.N(f.model.cc.fd.Ds,function(g){return a.M2(g)}),this.ja.Ga.N(f.model.cc.fd.Oh,function(){return a.O2()}),this.ja.N(k.jW,function(){return a.TDa()}),this.ja.N(k.Tg,function(){return a.RDa()}),this.ja.N(k.UW,function(){return a.bFa()}),this.ja.N(k.fA,function(){return a.aFa()}),this.ug=new f.K.Hb(A.Aa.Pb(e),d),this.ug.N(f.K.pi.Nw,function(g){return a.XCa(g)}),this.ug.N(f.K.pi.YW,function(){return a.iFa()}),this.ja.qC(d),this.Zra(d.accessibility),this.bT=!0,this.Oca(this.ug.Ue.element).flexmonster=
b,this.ja.Ga.Wa(f.model.cc.fd.J5))}}h.prototype.Zra=function(d){f.v(d)||"object"!==typeof d||(f.v(d.keyboardMode)||this.ug.Vga(!0===d.keyboardMode),f.v(d.highContrastTheme)||this.ug.vIa(d.highContrastTheme))};h.prototype.Oca=function(d){return void 0===d.uielement?d:d.uielement};h.prototype.qga=function(){var d=this;f.pe(function(){for(;0<d.b_.length;)d.b_.shift().call(d)},1)};h.prototype.kd=function(d,b){var a=this;b=void 0===b?10:b;f.pe(function(){0==b?a.a_.push(d):1==b?a.c_.push(d):a.b_.push(d)},
1)};h.prototype.WEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.lE))};h.prototype.G2=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Xw))};h.prototype.OC=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.kn))};h.prototype.jFa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.SI))};h.prototype.qM=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Yq))};h.prototype.P2=function(){for(this.ja&&this.ja.Ga&&this.ja.Ga.hf==f.model.cc.so.INIT&&f.pe(function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.U7))},
1);0<this.a_.length;)this.a_.shift().call(this)};h.prototype.xEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.dE))};h.prototype.$G=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.eE))};h.prototype.AEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.AI))};h.prototype.E2=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.cE))};h.prototype.ip=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.$H))};h.prototype.b2=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.ZH))};
h.prototype.Wea=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.YH,d.data))};h.prototype.Aq=function(){for(;0<this.c_.length;)this.c_.shift().call(this)};h.prototype.yEa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.f7))};h.prototype.hfa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.L7))};h.prototype.gfa=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.K7,d.data))};h.prototype.f2=function(){};h.prototype.nFa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.hA))};
h.prototype.NC=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.hk));f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.q8))};h.prototype.M2=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Ds,d.data))};h.prototype.O2=function(){};h.prototype.XCa=function(d){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Nw,d.data))};h.prototype.iFa=function(){var d=this;this.dc&&(this.ja.Ga.hf!==f.model.cc.so.Jc?(this.ja.Ga.hf=f.model.cc.so.Jc,f.pe(function(){d.qga();f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Oh))},
1)):f.pe(function(){d.qga()},1))};h.prototype.TDa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.k6))};h.prototype.RDa=function(){f.pe(function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.Tg))},1)};h.prototype.bFa=function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.O7))};h.prototype.aFa=function(){f.pe(function(){f.model.Qa.U().Da(new f.model.Xc(f.model.Qa.fA))},1)};h.prototype.U_=function(){return this.dc?this.ja.U_():null};h.prototype.Y_=function(d){return this.dc?this.ja.Y_(d):null};
h.prototype.zQ=function(d){var b=this;this.dc?null!=d&&this.ja.zQ(d):this.kd(function(){return b.zQ(d)})};h.prototype.KU=function(d){var b=this;this.dc?this.ja.KU(d):this.kd(function(){return b.KU(d)})};h.prototype.JU=function(){var d=this;this.dc?this.ja.JU():this.kd(function(){return d.JU()})};h.prototype.open=function(){this.ja.open()};h.prototype.load=function(d,b){this.ja.load(d,b)};h.prototype.Gr=function(d){d=void 0===d?"object":d;var b="object";d instanceof Object?d.hasOwnProperty("type")&&
(b=d.type,b=b.toLowerCase()):d&&(b=d.toLowerCase());d=this.ja.Gr(d instanceof Object?d:{});return f.v(d)||d.ob?null:"xmlstring"==b?D.aa.Cc(d.co(),!0):d.La()};h.prototype.Bw=function(d){var b=this;if(this.dc){if("string"==typeof d)try{if(-1<d.indexOf("<config>")){var a=D.aa.create(d);d=f.model.bb.ReportValueObject.Qj(a)}else d=JSON.parse(d)}catch(c){f.Va(f.model.A.j.u7,f.model.A.j.ya,f.rb.ya);return}this.ja.Bw({report:d})}else this.kd(function(){return b.Bw(d)})};h.prototype.getData=function(d,b,a){var c=
this;this.dc?this.ja.getData(d,b,a):this.kd(function(){return c.getData(d,b,a)})};h.prototype.save=function(d,b,a,c,e){var g=this;d=void 0===d?{filename:"report.json"}:d;b=void 0===b?null:b;a=void 0===a?null:a;c=void 0===c?null:c;e=void 0===e?!1:e;var l=a;this.dc?(d instanceof Object&&d.hasOwnProperty("callbackHandler")&&(l=d.callbackHandler),this.ja.save(d,b,null!=l?function(m,n){return l(m,n)}:null,c,e)):this.kd(function(){return g.save(d,b,a,c,e)})};h.prototype.Jd=function(d,b){var a=this;null!=
d&&(f.v(b)?b={partial:!1}:"boolean"===typeof b&&(b={partial:b}),this.tT?this.ja.Jd(d,b):this.kd(function(){return a.Jd(d,b)},0))};h.prototype.AF=function(d){var b=this;null!=d&&(this.tT?this.ja.AF(d):this.kd(function(){return b.AF(d)},0))};h.prototype.Dra=function(d){this.Jd({data:d})};h.prototype.ct=function(d){var b=this;this.dc?null!=d&&this.ja.ct(d):this.kd(function(){return b.ct(d)})};h.prototype.Xy=function(d){var b=this;this.dc?this.ja.Xy(d):this.kd(function(){return b.Xy(d)})};h.prototype.$C=
function(){var d=this;this.dc?this.ja.$C():this.kd(function(){return d.$C()})};h.prototype.clear=function(){this.ja&&this.ja.clear()};h.prototype.dispose=function(){f.Im.dispose();f.Pj.dispose();f.XK.dispose();f.opa.dispose();x.mn.dispose();this.kc=null;this.ja.dispose();this.ug.dispose();this.ja=this.ug=null;h.instance=null;f.model.Qa.dispose()};h.prototype.refresh=function(){var d=this;this.dc?this.ug.gb():this.kd(function(){return d.refresh()})};h.prototype.jV=function(){var d=this;this.dc?this.ug.jV():
this.kd(function(){return d.jV()})};h.prototype.WM=function(d,b){var a=this;d=void 0===d?"column":d;b=void 0===b?!1:b;this.dc?this.ug.WM(d,b):this.kd(function(){return a.WM(d,b)})};h.prototype.kV=function(d,b,a){var c=this;d=void 0===d?"column":d;b=void 0===b?"bottom":b;a=void 0===a?!1:a;this.dc?this.ug.kV(d,b,a):this.kd(function(){return c.kV(d,b,a)})};h.prototype.LR=function(d){var b=this;d=void 0===d?!0:d;this.dc?this.ja.LR(d):this.kd(function(){return b.LR(d)})};h.prototype.Qv=function(d){var b=
this;this.dc?this.ug.Qv(d):this.kd(function(){return b.Qv(d)})};h.prototype.$Q=function(){var d=this;this.dc?this.ja.$Q():this.kd(function(){return d.$Q()})};h.prototype.Gv=function(d){var b=this;this.dc?this.ug.Gv(d):this.kd(function(){return b.Gv(d)})};h.prototype.print=function(d){var b=this;d=void 0===d?null:d;this.dc?this.ja.print(f.model.$r.S7.tb(d)):this.kd(function(){return b.print(d)})};h.prototype.Nj=function(d,b,a){var c=this;b=void 0===b?null:b;a=void 0===a?null:a;if(this.dc){if(null!=
d){var e=null!=a?function(g){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];return a.apply(null,l)}:null;this.ja.Nj(d,f.model.vc.p6.tb(b),e)}}else this.kd(function(){return c.Nj(d,b,a)})};h.prototype.Sl=function(d){return this.dc?this.ja.Sl(d):null};h.prototype.cH=function(d){this.dc&&this.ug.SFa(d)};h.prototype.tl=function(d,b){var a=this;this.dc?this.ja.tl(d,b):this.kd(function(){return a.tl(d,b)})};h.prototype.nt=function(d){var b=this;this.dc?this.ja.nt(d):this.kd(function(){return b.nt(d)})};
h.prototype.on=function(d,b){f.model.Qa.U().N(d,b)};h.prototype.TCa=function(d,b){null==b?f.model.Qa.U().Od(d):f.model.Qa.U().mb(d,b)};h.prototype.vG=function(){return this.dc?this.ja.vG():null};h.prototype.GZ=function(d){var b=this;new Promise(function(a){b.bT?a(d()):b.ja.Ga.N(f.model.cc.fd.J5,function(){a(d())})})};h.prototype.yF=function(d){var b=this;return new Promise(function(a){b.dc?a(d()):b.ja.Ga.N(f.model.cc.fd.Oh,function(){a(d())})})};h.prototype.Gza=function(){var d=this;return this.yF(function(){return d.ja.vG()})};
h.prototype.kG=function(){return this.dc?this.ja.kG():null};h.prototype.uya=function(){var d=this;return this.yF(function(){return d.ja.kG()})};h.prototype.dC=function(){return this.dc?this.ja.dC():null};h.prototype.sza=function(){var d=this;return this.yF(function(){return d.ja.dC()})};h.prototype.ad=function(){return this.dc?this.ja.ad():null};h.prototype.eza=function(){var d=this;return this.yF(function(){return d.ja.ad()})};h.prototype.Er=function(){return this.dc?this.ja.Er():null};h.prototype.gya=
function(){var d=this;return this.yF(function(){return d.ja.Er()})};h.prototype.EL=function(){return this.ug.EL};h.prototype.DL=function(){return this.ug.DL};h.prototype.oV=function(d){var b=this;this.xT?this.ja.oV(d):this.kd(function(){return b.oV(d)},1)};h.prototype.qV=function(d,b,a,c){var e=this;this.dc?this.ja.qV(d,b,a,c):this.kd(function(){return e.qV(d,b,a,c)})};h.prototype.rV=function(d,b){var a=this;this.xT?this.ja.rV(d,b):this.kd(function(){return a.rV(d,b)},1)};h.prototype.oD=function(d,
b,a){var c=this;a=void 0===a?null:a;this.dc?this.ja.oD(d,b):this.kd(function(){return c.oD(d,b,a)})};h.prototype.$U=function(d){var b=this;this.dc?this.ja.$U(d):this.kd(function(){return b.$U(d)})};h.prototype.vM=function(d,b){var a=this;this.dc?this.ug.vM(d,b):this.kd(function(){return a.vM(d,b)})};h.prototype.s0=function(d){return this.dc?this.ja.s0(d):null};h.prototype.g0=function(){return this.dc?this.ja.g0():null};h.prototype.Vv=function(){return this.dc?this.ja.Vv():null};h.prototype.zp=function(d){var b=
this;f.v(d)||(this.dc?this.ja.zp(d):this.kd(function(){return b.zp(d)}))};h.prototype.pj=function(d,b,a){var c=this;if(this.dc)return this.ja.pj(d,b,a);this.kd(function(){return c.pj(d,b,a)})};h.prototype.p0=function(d,b){return this.ja.p0(d,b)};h.prototype.iC=function(d,b){var a=this;if(this.dc)return this.ja.iC(d,b);this.kd(function(){return a.iC(d,b)})};h.prototype.Yza=function(d){var b=this;return new Promise(function(a){b.ja.BG(d,function(){b.ja.iC(d,function(c){return a(c)})})})};h.prototype.BG=
function(d,b){var a=this;this.dc?this.ja.BG(d,b):this.kd(function(){return a.BG(d,b)})};h.prototype.Xza=function(d){var b=this;return new Promise(function(a){b.ja.BG(d,function(c){return a(c)})})};h.prototype.zL=function(d,b,a){var c=this;this.dc?this.ja.zL(d,b,a):this.kd(function(){return c.zL(d,b,a)})};h.prototype.Vza=function(d,b){var a=this;return new Promise(function(c){a.ja.zL(d,b,function(e){return c(e)})})};h.prototype.AL=function(d,b,a,c){var e=this;this.dc?this.ja.AL(d,b,a,c):this.kd(function(){return e.AL(d,
b,a,c)})};h.prototype.Wza=function(d,b,a){var c=this;return new Promise(function(e){c.ja.AL(d,b,a,function(g){return e(g)})})};h.prototype.WQ=function(d,b,a,c,e){var g=this;c=void 0===c?null:c;e=void 0===e?null:e;this.dc?this.ja.WQ(d,b,c,e,a):this.kd(function(){return g.WQ(d,b,c,e,a)})};h.prototype.UM=function(d){return this.ja.UM(d)};h.prototype.IM=function(d){var b=this;this.dc?null!=d&&this.ja.IM(f.model.bb.SliceValueObject.tb(d)):this.kd(function(){return b.IM(d)})};h.prototype.dG=function(){return this.dc?
this.ja.dG():null};h.prototype.fya=function(){var d=this;return this.yF(function(){return d.ja.dG()})};h.prototype.NU=function(d){var b=this;this.dc?this.ja.NU(d):this.kd(function(){return b.NU(d)})};h.prototype.Dh=function(d,b){return this.dc?this.ja.Dh(d,b):null};h.prototype.kD=function(d,b,a){var c=this;this.dc?null!=d&&this.ja.kD(d,b,a):this.kd(function(){return c.kD(d,b)})};h.prototype.Rf=function(d,b){return this.dc?this.ug.Rf(d,b):null};h.prototype.xG=function(){return this.dc?this.ug.xG():
null};h.prototype.gz=function(d,b){var a=this;this.dc?this.ug.gz(d,b):this.kd(function(){return a.gz(d,b)})};h.prototype.zG=function(){return this.dc?this.ja.zG():null};h.prototype.hV=function(d){var b=this;this.dc?this.ja.hV(d):this.kd(function(){return b.hV(d)})};h.prototype.bD=function(){var d=this;this.GZ(function(){return d.ug.bD()})};h.prototype.tU=function(){var d=this;this.GZ(function(){return d.ug.tU()})};h.prototype.nK=function(){var d=this;this.GZ(function(){return d.ug.nK()})};h.prototype.uva=
function(d){f.K.X.W.Yd.Mv=d;this.bT&&this.refresh()};h.prototype.Vk=function(d){f.K.td.Du.BB=d;this.bT&&this.refresh()};h.prototype.vva=function(d){f.K.X.WH.CK=d};h.prototype.tva=function(d){f.u.external.kc.zz.BK=d};h.prototype.d0=function(d,b){this.ja.d0(d,b)};h.prototype.Eq=function(d){var b=this;this.dc?this.ug.Eq(d):this.kd(function(){return b.Eq(d)})};h.prototype.es=function(d){var b=this;this.dc?this.ug.es(d):this.kd(function(){return b.es(d)})};h.prototype.MR=function(d,b,a){var c=this;this.dc?
this.ug.MR(d,b,a):this.kd(function(){return c.MR(d,b,a)})};h.prototype.aR=function(d,b,a){var c=this;this.dc?this.ug.aR(d,b,a):this.kd(function(){return c.aR(d,b,a)})};h.prototype.IR=function(d,b,a,c){var e=this;this.dc?this.ug.IR(d,b,a,c):this.kd(function(){return e.IR(d,b,a,c)})};h.prototype.HR=function(d,b,a,c){var e=this;this.dc?this.ug.HR(d,b,a,c):this.kd(function(){return e.HR(d,b,a,c)})};q.Object.defineProperties(h.prototype,{dc:{configurable:!0,enumerable:!0,get:function(){return this.ja&&
this.ja.Ga&&this.ja.Ga.dc}},tT:{configurable:!0,enumerable:!0,get:function(){return this.ja&&this.ja.Ga&&this.ja.Ga.tT}},xT:{configurable:!0,enumerable:!0,get:function(){return this.ja&&this.ja.Ga&&this.ja.Ga.xT}}});h.qs="2.9.22";h.NV="100593099773766";f.Ug=h;k.UW="print";k.fA="printcomplete";k.jW="export";k.Tg="exportcomplete";f.eg=k})(w||(w={}));
function PivotApi(f){w.v(window.flexmonster)||(window.flexmonster=null);var k={version:w.Ug.qs},h=new w.Ug(f,k);k.alert=function(b){if(void 0!=b.message&&""!=b.message||void 0!=b.title&&""!=b.title){var a=void 0!=b.message?w.model.Nb.valid(b.message)?b.message:w.model.Nb.validate(b.message):"",c=void 0!=b.title?w.model.Nb.valid(b.title)?b.title:w.model.Nb.validate(b.title):"",e=b.type==w.rb.Ik||b.type==w.rb.fm||b.type==w.rb.ya||b.type==w.rb.pO?b.type:w.rb.Ik,g=null,l=null;if(void 0!=b.buttons)for(var m=
0;m<b.buttons.length;m++){var n=b.buttons[m],p=n.label;p=w.model.Nb.valid(p)?p:w.model.Nb.validate(p);null==g&&(g=[]);g.push(p);n="function"==typeof n.handler?n.handler:null;null==l&&(l=[]);l.push(n)}w.Va(a,c,e,g,l,void 0==b.blocking||1!=b.blocking&&0!=b.blocking?!1:b.blocking)}};k.openCalculatedValueEditor=function(b,a){return h.vM(b,a)};k.getAllConditions=function(){return h.U_()};k.getCondition=function(b){return h.Y_(b)};k.addCondition=function(b){return h.zQ(b)};k.removeCondition=function(b){return h.KU(b)};
k.removeAllConditions=function(){return h.JU()};k.open=function(){return h.open()};k.load=function(b,a){return h.load(b,a)};k.getReport=function(b){return h.Gr(void 0===b?"object":b)};k.setReport=function(b){return h.Bw(b)};k.getData=function(b,a,c){return h.getData(b,a,c)};k.save=function(b,a,c,e,g){b=void 0===b?{filename:"report.json"}:b;return h.save(b,void 0===a?null:a,void 0===c?null:c,void 0===e?null:e,void 0===g?!1:g)};k.updateData=function(b,a){return h.Jd(b,a)};k.connectTo=function(b){return h.AF(b)};
k.addJSON=function(b){return h.Dra(b)};k.addCalculatedMeasure=function(b){return h.ct(b)};k.removeCalculatedMeasure=function(b){return h.Xy(b)};k.removeAllCalculatedMeasures=function(){return h.$C()};k.clear=function(){return h.clear()};k.dispose=function(){w.v(window.flexmonster)||(window.flexmonster=null);h.dispose()};k.refresh=function(){return h.refresh()};k.showGrid=function(){return h.jV()};k.showCharts=function(b,a){return h.WM(void 0===b?"column":b,void 0===a?!1:a)};k.showChart=function(b,
a){return h.WM(void 0===b?"column":b,void 0===a?!1:a)};k.showGridAndCharts=function(b,a,c){return h.kV(void 0===b?"column":b,void 0===a?"bottom":a,void 0===c?!1:c)};k.expandAllData=function(b){return h.LR(void 0===b?!0:b)};k.expandData=function(b){return h.Qv(b)};k.collapseAllData=function(){return h.$Q()};k.collapseData=function(b){return h.Gv(b)};k.expandCell=function(b,a,c){return h.MR(b,a,c)};k.collapseCell=function(b,a,c){return h.aR(b,a,c)};k.drillUpCell=function(b,a,c,e){return h.IR(b,a,c,
e)};k.drillDownCell=function(b,a,c,e){return h.HR(b,a,c,e)};k.print=function(b){return h.print(void 0===b?null:b)};k.exportTo=function(b,a,c){return h.Nj(b,void 0===a?null:a,void 0===c?null:c)};k.openFilter=function(b){return h.cH(b)};k.getFilter=function(b){return h.Sl(b)};k.setFilter=function(b,a){return h.tl(b,a)};k.clearFilter=function(b){return h.nt(b)};k.on=function(b,a){return h.on(b,a)};k.off=function(b,a){return h.TCa(b,a)};k.getRows=function(){return h.vG()};k.getRowsAsync=function(){return h.Gza()};
k.getColumns=function(){return h.kG()};k.getColumnsAsync=function(){return h.uya()};k.getPages=function(){return h.dC()};k.getReportFilters=function(){return h.dC()};k.getReportFiltersAsync=function(){return h.sza()};k.getMeasures=function(){return h.ad()};k.getMeasuresAsync=function(){return h.eza()};k.getAllMeasures=function(){return h.Er()};k.getAllMeasuresAsync=function(){return h.gya()};k.sortFieldsList=function(b){return h.oV(b)};k.sortValues=function(b,a,c,e){return h.qV(b,a,c,e)};k.sortingMethod=
function(b,a){return h.rV(b,a)};k.setSort=function(b,a,c){return h.oD(b,a,void 0===c?null:c)};k.getSort=function(b){return h.s0(b)};k.setFlatSort=function(b){return h.$U(b)};k.getFlatSort=function(){return h.g0()};k.getOptions=function(){return h.Vv()};k.setOptions=function(b){return h.zp(b)};k.getMembers=function(b,a,c){return h.pj(b,a,c)};k.getMembersAsync=function(b,a){return h.p0(b,a)};k.gridRowCount=function(){return h.EL()};k.gridColumnCount=function(){return h.DL()};k.getXMLAProviderName=function(b,
a){return h.iC(b,a)};k.getXMLAProviderNameAsync=function(b){return h.Yza(b)};k.getXMLADataSources=function(b,a){return h.BG(b,a)};k.getXMLADataSourcesAsync=function(b){return h.Xza(b)};k.getXMLACatalogs=function(b,a,c){return h.zL(b,a,c)};k.getXMLACatalogsAsync=function(b,a){return h.Vza(b,a)};k.getXMLACubes=function(b,a,c,e){return h.AL(b,a,c,e)};k.getXMLACubesAsync=function(b,a,c){return h.Wza(b,a,c)};k.clearXMLACache=function(b,a,c,e,g){return h.WQ(b,a,c,void 0===e?null:e,void 0===g?null:g)};k.shareReport=
function(b){return h.UM(b)};k.getElasticIndices=function(b,a){return h.d0(b,a)};k.runQuery=function(b){return h.IM(b)};k.getAllHierarchies=function(){return h.dG()};k.getAllHierarchiesAsync=function(){return h.fya()};k.replaceHierarchyCaption=function(b){return h.NU(b)};k.getFormat=function(b,a){return h.Dh(b,a)};k.setFormat=function(b,a,c){return h.kD(b,a,c)};k.getCell=function(b,a){return h.Rf(b,a)};k.getSelectedCell=function(){return h.xG()};k.setSelectedCell=function(b,a){return h.gz(b,a)};k.removeSelection=
function(){return h.bD()};k.getTableSizes=function(){return h.zG()};k.setTableSizes=function(b){return h.hV(b)};k.openFieldsList=function(){return h.tU()};k.closeFieldsList=function(){return h.nK()};k.scrollToRow=function(b){return h.Eq(b)};k.scrollToColumn=function(b){return h.es(b)};k.customizeCell=function(b){return h.uva(b)};k.customizeChartElement=function(b){return h.Vk(b)};k.customizeContextMenu=function(b){return h.vva(b)};k.customizeAPIRequest=function(b){return h.tva(b)};if(void 0!==window.FlexmonsterHighcharts){k.highcharts=
{instance:k};for(var d in window.FlexmonsterHighcharts)k.highcharts[d]=window.FlexmonsterHighcharts[d]}if(void 0!==window.FlexmonsterFusioncharts)for(d in k.fusioncharts={instance:k},window.FlexmonsterFusioncharts)k.fusioncharts[d]=window.FlexmonsterFusioncharts[d];if(void 0!==window.FlexmonsterGooglecharts)for(d in k.googlecharts={instance:k},window.FlexmonsterGooglecharts)k.googlecharts[d]=window.FlexmonsterGooglecharts[d];if(void 0!==window.FlexmonsterAmcharts)for(d in k.amcharts={instance:k},
window.FlexmonsterAmcharts)k.amcharts[d]=window.FlexmonsterAmcharts[d];w.v(window.flexmonster)||w.v(window.flexmonster.embedPivotComponent)||(k.embedPivotComponent=window.flexmonster.embedPivotComponent);return window.flexmonster=k};
PivotApi["libsIncluded"] = true;;return PivotApi(a)}});
void 0!==window.jQuery&&(window.jQuery.fn.flexmonster=function(a){a=a||{};a.container=this.get(0);a=window.Flexmonster?window.Flexmonster(a):window.PivotApi(a);this.data("flexmonster",a);return a});
void 0!==window.angular&&window.angular.module("flexmonster",[]).directive("fmPivot",function(){function g(a,d){void 0!==a.fmComponentFolder&&(d.componentFolder=a.fmComponentFolder);void 0!==a.fmWidth&&(d.width=a.fmWidth);void 0!==a.fmHeight&&(d.height=a.fmHeight);if(void 0!==a.fmToolbar){var e=a.fmToolbar;d.toolbar=!0===e||"true"==e||"on"==e}void 0!==a.fmLicenseKey&&(d.licenseKey=a.fmLicenseKey)}return{restrict:"A",scope:{report:"=fmReport",global:"=fmGlobal",accessibility:"=fmAccessibility",customizeAPIRequest:"&fmCustomizeAPIRequest",
customizeCell:"&fmCustomizeCell",customizeChartElement:"&fmCustomizeChartElement",customizeContextMenu:"&fmCustomizeContextMenu",cellclick:"&fmCellClick",celldoubleclick:"&fmCellDoubleClick",dataerror:"&fmDataError",datafilecancelled:"&fmDataFileCancelled",dataloaded:"&fmDataLoaded",datachanged:"&fmDataChanged",fieldslistclose:"&fmFieldsListClose",fieldslistopen:"&fmFieldsListOpen",filteropen:"&fmFilteropen",fullscreen:"&fmFullscreen",loadingdata:"&fmLoadingData",loadinglocalization:"&fmLoadingLocalization",
loadingolapstructure:"&fmLoadingOlapStructure",loadingreportfile:"&fmLoadingReportFile",localizationerror:"&fmLocalizationError",localizationloaded:"&fmLocalizationLoaded",olapstructureerror:"&fmOlapStructureError",olapstructureloaded:"&fmOlapStructureLoaded",openingreportfile:"&fmOpeningReportFile",querycomplete:"&fmQueryComplete",queryerror:"&fmQueryError",ready:"&fmReady",reportchange:"&fmReportChange",reportcomplete:"&fmReportComplete",reportfilecancelled:"&fmReportFileCancelled",reportfileerror:"&fmReportFileError",
reportfileloaded:"&fmReportFileLoaded",runningquery:"&fmRunningQuery",unauthorizederror:"&fmUnauthorizedError",update:"&fmUpdate",beforetoolbarcreated:"&fmBeforeToolbarCreated",beforegriddraw:"&fmBeforeGridDraw",aftergriddraw:"&fmAfterGridDraw",afterchartdraw:"&fmAfterChartDraw",chartclick:"&fmChartClick",drillthroughopen:"&fmDrillThroughOpen",drillthroughclose:"&fmDrillThroughClose"},link:function(a,d,e,b){b={};b.container=d[0];g(e,b);a.customizeAPIRequest&&(b.customizeAPIRequest=function(c){return a.customizeAPIRequest({request:c})});
a.customizeCell&&(b.customizeCell=function(c,f){return a.customizeCell({html:c,data:f})});a.customizeChartElement&&(b.customizeChartElement=function(c,f){return a.customizeChartElement({element:c,data:f})});a.customizeContextMenu&&(b.customizeContextMenu=function(c,f,h){return a.customizeContextMenu({items:c,data:f,viewType:h})});a.cellclick&&(b.cellclick=function(c){a.cellclick({cell:c})});a.celldoubleclick&&(b.celldoubleclick=function(c){a.celldoubleclick({cell:c})});b.dataerror&&(b.dataerror=function(c){a.dataerror({event:c})});
b.datafilecancelled=a.datafilecancelled;b.dataloaded=a.dataloaded;b.datachanged&&(b.datachanged=function(c){a.datachanged({event:c})});b.fieldslistclose=a.fieldslistclose;b.fieldslistopen=a.fieldslistopen;b.filterclose=a.filterclose;b.filteropen&&(b.filteropen=function(c){a.filteropen({params:c})});b.drillthroughclose=a.drillthroughclose;b.drillthroughopen&&(b.drillthroughopen=function(c){a.drillthroughopen({cell:c})});b.fullscreen&&(b.fullscreen=function(c){a.fullscreen({fullScreenMode:c})});b.loadingdata=
a.loadingdata;b.loadinglocalization=a.loadinglocalization;b.loadingolapstructure=a.loadingolapstructure;b.loadingreportfile=a.loadingreportfile;b.localizationerror=a.localizationerror;b.localizationloaded=a.localizationloaded;b.olapstructureerror&&(b.olapstructureerror=function(c){a.olapstructureerror({event:c})});b.olapstructureloaded=a.olapstructureloaded;b.openingreportfile=a.openingreportfile;b.querycomplete=a.querycomplete;b.queryerror&&(b.queryerror=function(c){a.queryerror({event:c})});a.ready&&
(b.ready=function(){a.ready({pivot:k})});b.reportchange=a.reportchange;b.reportcomplete=a.reportcomplete;b.reportfilecancelled=a.reportfilecancelled;b.reportfileerror=a.reportfileerror;b.reportfileloaded=a.reportfileloaded;b.runningquery=a.runningquery;b.loadingdata=a.loadingdata;b.loadingdata=a.loadingdata;b.loadingdata=a.loadingdata;a.unauthorizederror&&(b.unauthorizederror=function(c){a.unauthorizederror({done:c})});b.update=a.update;a.beforetoolbarcreated&&(b.beforetoolbarcreated=function(c){a.beforetoolbarcreated({toolbar:c})});
a.beforegriddraw&&(b.beforegriddraw=function(c){a.beforegriddraw({params:c})});a.aftergriddraw&&(b.aftergriddraw=function(c){a.aftergriddraw({params:c})});b.afterchartdraw=a.afterchartdraw;a.chartclick&&(b.chartclick=function(c){a.chartclick({data:c})});a.report&&(b.report=a.report);a.global&&(b.global=a.global);a.accessibility&&(b.accessibility=a.accessibility);var k=new Flexmonster(b)}}});
if(void 0!==window.React&&void 0!==window.React.createClass&&(void 0!==window.React.PropTypes||void 0!==window.PropTypes)){var React_PropTypes=void 0!==window.React.PropTypes?window.React.PropTypes:window.PropTypes;window.FlexmonsterReact={Pivot:React.createClass({propTypes:{componentFolder:React_PropTypes.string,global:React_PropTypes.object,width:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.number]),height:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.number]),
report:React_PropTypes.oneOfType([React_PropTypes.string,React_PropTypes.object]),licenseKey:React_PropTypes.string,toolbar:React_PropTypes.bool,customizeAPIRequest:React_PropTypes.func,customizeCell:React_PropTypes.func,customizeChartElement:React_PropTypes.func,customizeContextMenu:React_PropTypes.func,accessibility:React_PropTypes.object,cellclick:React_PropTypes.func,celldoubleclick:React_PropTypes.func,dataerror:React_PropTypes.func,datafilecancelled:React_PropTypes.func,dataloaded:React_PropTypes.func,
datachanged:React_PropTypes.func,fieldslistclose:React_PropTypes.func,fieldslistopen:React_PropTypes.func,filteropen:React_PropTypes.func,filterclose:React_PropTypes.func,fullscreen:React_PropTypes.func,loadingdata:React_PropTypes.func,loadinglocalization:React_PropTypes.func,loadingolapstructure:React_PropTypes.func,loadingreportfile:React_PropTypes.func,localizationerror:React_PropTypes.func,localizationloaded:React_PropTypes.func,olapstructureerror:React_PropTypes.func,olapstructureloaded:React_PropTypes.func,
openingreportfile:React_PropTypes.func,querycomplete:React_PropTypes.func,queryerror:React_PropTypes.func,ready:React_PropTypes.func,reportchange:React_PropTypes.func,reportcomplete:React_PropTypes.func,reportfilecancelled:React_PropTypes.func,reportfileerror:React_PropTypes.func,reportfileloaded:React_PropTypes.func,runningquery:React_PropTypes.func,unauthorizederror:React_PropTypes.func,update:React_PropTypes.func,beforetoolbarcreated:React_PropTypes.func,beforegriddraw:React_PropTypes.func,aftergriddraw:React_PropTypes.func,
afterchartdraw:React_PropTypes.func,chartclick:React_PropTypes.func,drillthroughopen:React_PropTypes.func,drillthroughclose:React_PropTypes.func},render:function(){return React.DOM.div()},componentDidMount:function(){var a={};a.container=ReactDOM.findDOMNode(this);this.parseProps(a);this.flexmonster=new window.Flexmonster(a)},shouldComponentUpdate:function(){return!1},componentWillUnmount:function(){this.flexmonster.dispose()},parseProps:function(a){for(var b in this.props)a[b]=this.props[b]}})}};
window.flexmonster={embedPivotComponent:function(d,e,f,g,a,b,h){var c=b;"string"==typeof b&&(c=h);config={};config.componentFolder=d;config.container=e;config.width=f;config.height=parseInt(g);config.toolbar=c;config.report=a;a.hasOwnProperty("configUrl")&&(config.configUrl=a.configUrl);a.hasOwnProperty("licenseKey")&&(config.licenseKey=a.licenseKey);a.hasOwnProperty("jsCellClickHandler")&&(config.cellclick=a.jsCellClickHandler);a.hasOwnProperty("jsCellDoubleClickHandler")&&(config.celldoubleclick=
a.jsCellDoubleClickHandler);a.hasOwnProperty("jsFullScreenHandler")&&(config.fullscreen=a.jsFullScreenHandler);a.hasOwnProperty("jsFilterOpenHandler")&&(config.filteropen=a.jsFilterOpenHandler);a.hasOwnProperty("jsFieldsListCloseHandler")&&(config.fieldslistclose=a.jsFieldsListCloseHandler);a.hasOwnProperty("jsFieldsListOpenHandler")&&(config.fieldslistopen=a.jsFieldsListOpenHandler);a.hasOwnProperty("jsPivotCreationCompleteHandler")&&(config.ready=a.jsPivotCreationCompleteHandler);a.hasOwnProperty("jsPivotUpdateHandler")&&
(config.update=a.jsPivotUpdateHandler);a.hasOwnProperty("jsReportChangeHandler")&&(config.reportchange=a.jsReportChangeHandler);a.hasOwnProperty("jsReportLoadedHandler")&&(config.reportcomplete=a.jsReportLoadedHandler);a.hasOwnProperty("beforetoolbarcreated")&&(config.beforetoolbarcreated=a.beforetoolbarcreated);a.hasOwnProperty("beforegriddraw")&&(config.beforegriddraw=a.beforegriddraw);a.hasOwnProperty("aftergriddraw")&&(config.aftergriddraw=a.aftergriddraw);a.hasOwnProperty("afterchartdraw")&&
(config.afterchartdraw=a.afterchartdraw);a.hasOwnProperty("customizeCell")&&(config.customizeCell=a.customizeCell);a.hasOwnProperty("customizeContextMenu")&&(config.customizeContextMenu=a.customizeContextMenu);return Flexmonster(config)}};
/** @license canvg.js v2.0.0 | Copyright (c) 2010 - present Gabe Lerner (gabelerner@gmail.com) - https://github.com/canvg/canvg | MIT License [https://github.com/canvg/canvg/blob/master/LICENSE] */
!function(t,e){t.canvg=e(t.RGBColor,t.StackBlur)}(window,function(y,v){"use strict";var t;return y=y&&y.hasOwnProperty("default")?y.default:y,v=v&&v.hasOwnProperty("default")?v.default:v,function(t){var l;t.exports;(l=window).DOMParser=window.DOMParser;var c=l.document;function d(t,e){var i;return(i=c.createElement("canvas")).width=t,i.height=e,i}var f,p=function(t,e,i){if(null!=t||null!=e||null!=i){var n=m(i||{});"string"==typeof t&&(t=c.getElementById(t)),null!=t.svg&&t.svg.stop(),t.childNodes&&1==t.childNodes.length&&"OBJECT"==t.childNodes[0].nodeName||(t.svg=n);var s=t.getContext("2d");void 0!==e.documentElement?n.loadXmlDoc(s,e):"<"==e.substr(0,1)?n.loadXml(s,e):n.load(s,e)}else for(var a=c.querySelectorAll("svg"),r=0;r<a.length;r++){var o=a[r],h=c.createElement("canvas");if(void 0!==o.clientWidth&&void 0!==o.clientHeight)h.width=o.clientWidth,h.height=o.clientHeight;else{var l=o.getBoundingClientRect();h.width=l.width,h.height=l.height}o.parentNode.insertBefore(h,o),o.parentNode.removeChild(o);var u=c.createElement("div");u.appendChild(o),p(h,u.innerHTML)}};"undefined"==typeof Element||(void 0!==Element.prototype.matches?f=function(t,e){return t.matches(e)}:void 0!==Element.prototype.webkitMatchesSelector?f=function(t,e){return t.webkitMatchesSelector(e)}:void 0!==Element.prototype.mozMatchesSelector?f=function(t,e){return t.mozMatchesSelector(e)}:void 0!==Element.prototype.msMatchesSelector?f=function(t,e){return t.msMatchesSelector(e)}:void 0!==Element.prototype.oMatchesSelector?f=function(t,e){return t.oMatchesSelector(e)}:("function"!=typeof jQuery&&"function"!=typeof Zepto||(f=function(t,e){return $(t).is(e)}),void 0===f&&"undefined"!=typeof Sizzle&&(f=Sizzle.matchesSelector)));var e=/(\[[^\]]+\])/g,i=/(#[^\s\+>~\.\[:]+)/g,a=/(\.[^\s\+>~\.\[:]+)/g,r=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,o=/(:[\w-]+\([^\)]*\))/gi,h=/(:[^\s\+>~\.\[:]+)/g,u=/([^\s\+>~\.\[:]+)/g;function P(n){var s=[0,0,0],t=function(t,e){var i=n.match(t);null!=i&&(s[e]+=i.length,n=n.replace(t," "))};return n=(n=n.replace(/:not\(([^\)]*)\)/g,"     $1 ")).replace(/{[\s\S]*/gm," "),t(e,1),t(i,0),t(a,1),t(r,2),t(o,1),t(h,1),n=(n=n.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),t(u,2),s.join("")}function m(s){var D={opts:s,FRAMERATE:30,MAX_VIRTUAL_PIXELS:3e4,rootEmSize:12,emSize:12,log:function(){}};D.init=function(t){var e=0;D.UniqueId=function(){return"canvg"+ ++e},D.Definitions={},D.Styles={},D.StylesSpecificity={},D.Animations=[],D.Images=[],D.ctx=t,D.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},D.init(),D.ImagesLoaded=function(){for(var t=0;t<D.Images.length;t++)if(!D.Images[t].loaded)return!1;return!0},D.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},D.compressSpaces=function(t){return t.replace(/(?!\u3000)\s+/gm," ")},D.ajax=function(t){var e;return(e=l.XMLHttpRequest?new l.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"))?(e.open("GET",t,!1),e.send(null),e.responseText):null},D.parseXml=function(e){if("undefined"!=typeof Windows&&void 0!==Windows.Data&&void 0!==Windows.Data.Xml){var t=new Windows.Data.Xml.Dom.XmlDocument,i=new Windows.Data.Xml.Dom.XmlLoadSettings;return i.prohibitDtd=!1,t.loadXml(e,i),t}if(!l.DOMParser)return e=e.replace(/<!DOCTYPE svg[^>]*>/,""),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t;try{var n=s.xmldom?new l.DOMParser(s.xmldom):new l.DOMParser;return n.parseFromString(e,"image/svg+xml")}catch(t){return(n=s.xmldom?new l.DOMParser(s.xmldom):new l.DOMParser).parseFromString(e,"text/xml")}},D.Property=function(t,e){this.name=t,this.value=e},D.Property.prototype.getValue=function(){return this.value},D.Property.prototype.hasValue=function(){return null!=this.value&&""!==this.value},D.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},D.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},D.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():parseFloat(t)},D.Property.prototype.addOpacity=function(t){var e=this.value;if(null!=t.value&&""!=t.value&&"string"==typeof this.value){var i=new y(this.value);i.ok&&(e="rgba("+i.r+", "+i.g+", "+i.b+", "+t.numValue()+")")}return new D.Property(this.name,e)},D.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),D.Definitions[t]},D.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},D.Property.prototype.getFillStyleDefinition=function(t,e){var i=this.getDefinition();if(null!=i&&i.createGradient)return i.createGradient(D.ctx,t,e);if(null!=i&&i.createPattern){if(i.getHrefAttribute().hasValue()){var n=i.attribute("patternTransform");i=i.getHrefAttribute().getDefinition(),n.hasValue()&&(i.attribute("patternTransform",!0).value=n.value)}return i.createPattern(D.ctx,t,e)}return null},D.Property.prototype.getDPI=function(){return 96},D.Property.prototype.getREM=function(){return D.rootEmSize},D.Property.prototype.getEM=function(){return D.emSize},D.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},D.Property.prototype.isPixels=function(){if(!this.hasValue())return!1;var t=this.value+"";return!!t.match(/px$/)||!!t.match(/^[0-9]+$/)},D.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var i=this.value+"";if(i.match(/rem$/))return this.numValue()*this.getREM(t);if(i.match(/em$/))return this.numValue()*this.getEM(t);if(i.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(i.match(/px$/))return this.numValue();if(i.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(i.match(/pc$/))return 15*this.numValue();if(i.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(i.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(i.match(/in$/))return this.numValue()*this.getDPI(t);if(i.match(/%$/))return this.numValue()*D.ViewPort.ComputeSize(t);var n=this.numValue();return e&&n<1?n*D.ViewPort.ComputeSize(t):n},D.Property.prototype.toMilliseconds=function(){return this.hasValue()?(this.value+"").match(/ms$/)?this.numValue():1e3*this.numValue():0},D.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var t={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return D.Property.prototype.toTextBaseline=function(){return this.hasValue()?t[this.value]:null},D.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,e,i,n,s,a){var r=null!=a?this.Parse(a):this.CreateFont("","","","","",D.ctx.font);return{fontFamily:s=s||r.fontFamily,fontSize:n||r.fontSize,fontStyle:t||r.fontStyle,fontWeight:i||r.fontWeight,fontVariant:e||r.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var r=this;this.Parse=function(t){for(var e={},i=D.trim(D.compressSpaces(t||"")).split(" "),n={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},s="",a=0;a<i.length;a++)n.fontStyle||-1==r.Styles.indexOf(i[a])?n.fontVariant||-1==r.Variants.indexOf(i[a])?n.fontWeight||-1==r.Weights.indexOf(i[a])?n.fontSize?"inherit"!=i[a]&&(s+=i[a]):("inherit"!=i[a]&&(e.fontSize=i[a].split("/")[0]),n.fontStyle=n.fontVariant=n.fontWeight=n.fontSize=!0):("inherit"!=i[a]&&(e.fontWeight=i[a]),n.fontStyle=n.fontVariant=n.fontWeight=!0):("inherit"!=i[a]&&(e.fontVariant=i[a]),n.fontStyle=n.fontVariant=!0):("inherit"!=i[a]&&(e.fontStyle=i[a]),n.fontStyle=!0);return""!=s&&(e.fontFamily=s),e}},D.ToNumberArray=function(t){for(var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[],i=0;i<e.length;i++)e[i]=parseFloat(e[i]);return e},D.Point=function(t,e){this.x=t,this.y=e},D.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},D.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4],i=this.x*t[1]+this.y*t[3]+t[5];this.x=e,this.y=i},D.CreatePoint=function(t){var e=D.ToNumberArray(t);return new D.Point(e[0],e[1])},D.CreatePath=function(t){for(var e=D.ToNumberArray(t),i=[],n=0;n<e.length;n+=2)i.push(new D.Point(e[n],e[n+1]));return i},D.BoundingBox=function(t,e,i,n){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,i,n,s,a){var r=t+2/3*(i-t),o=e+2/3*(n-e),h=r+1/3*(s-t),l=o+1/3*(a-e);this.addBezierCurve(t,e,r,h,o,l,s,a)},this.addBezierCurve=function(t,e,i,n,s,a,r,o){var h=[t,e],l=[i,n],u=[s,a],c=[r,o];this.addPoint(h[0],h[1]),this.addPoint(c[0],c[1]);for(var f=0;f<=1;f++){var p=function(t){return Math.pow(1-t,3)*h[f]+3*Math.pow(1-t,2)*t*l[f]+3*(1-t)*Math.pow(t,2)*u[f]+Math.pow(t,3)*c[f]},d=6*h[f]-12*l[f]+6*u[f],m=-3*h[f]+9*l[f]-9*u[f]+3*c[f],y=3*l[f]-3*h[f];if(0!=m){var v=Math.pow(d,2)-4*y*m;if(!(v<0)){var g=(-d+Math.sqrt(v))/(2*m);0<g&&g<1&&(0==f&&this.addX(p(g)),1==f&&this.addY(p(g)));var x=(-d-Math.sqrt(v))/(2*m);0<x&&x<1&&(0==f&&this.addX(p(x)),1==f&&this.addY(p(x)))}}else{if(0==d)continue;var b=-y/d;0<b&&b<1&&(0==f&&this.addX(p(b)),1==f&&this.addY(p(b)))}}},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(i,n)},D.Transform=function(t){var e=this;this.Type={},this.Type.translate=function(t){this.p=D.CreatePoint(t),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(t){var e=D.ToNumberArray(t);this.angle=new D.Property("angle",e[0]),this.cx=e[1]||0,this.cy=e[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.unapply=function(t){t.translate(this.cx,this.cy),t.rotate(-1*this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(t){this.p=D.CreatePoint(t),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(t){this.m=D.ToNumberArray(t),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.unapply=function(t){var e=this.m[0],i=this.m[2],n=this.m[4],s=this.m[1],a=this.m[3],r=this.m[5],o=1/(e*(1*a-0*r)-i*(1*s-0*r)+n*(0*s-0*a));t.transform(o*(1*a-0*r),o*(0*r-1*s),o*(0*n-1*i),o*(1*e-0*n),o*(i*r-n*a),o*(n*s-e*r))},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(t){this.base=e.Type.matrix,this.base(t),this.angle=new D.Property("angle",t)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=e.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.unapply=function(t){for(var e=this.transforms.length-1;0<=e;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var i=D.trim(D.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/),n=0;n<i.length;n++)if("none"!==i[n]){var s=D.trim(i[n].split("(")[0]),a=i[n].split("(")[1].replace(")",""),r=this.Type[s];if(void 0!==r){var o=new r(a);o.type=s,this.transforms.push(o)}}},D.AspectRatio=function(t,e,i,n,s,a,r,o,h,l){var u=(e=(e=D.compressSpaces(e)).replace(/^defer\s/,"")).split(" ")[0]||"xMidYMid",c=e.split(" ")[1]||"meet",f=i/n,p=s/a,d=Math.min(f,p),m=Math.max(f,p);"meet"==c&&(n*=d,a*=d),"slice"==c&&(n*=m,a*=m),h=new D.Property("refX",h),l=new D.Property("refY",l),h.hasValue()&&l.hasValue()?t.translate(-d*h.toPixels("x"),-d*l.toPixels("y")):(u.match(/^xMid/)&&("meet"==c&&d==p||"slice"==c&&m==p)&&t.translate(i/2-n/2,0),u.match(/YMid$/)&&("meet"==c&&d==f||"slice"==c&&m==f)&&t.translate(0,s/2-a/2),u.match(/^xMax/)&&("meet"==c&&d==p||"slice"==c&&m==p)&&t.translate(i-n,0),u.match(/YMax$/)&&("meet"==c&&d==f||"slice"==c&&m==f)&&t.translate(0,s-a)),"none"==u?t.scale(f,p):"meet"==c?t.scale(d,d):"slice"==c&&t.scale(m,m),t.translate(null==r?0:-r,null==o?0:-o)},D.Element={},D.EmptyProperty=new D.Property("EMPTY",""),D.Element.ElementBase=function(a){this.attributes={},this.styles={},this.stylesSpecificity={},this.children=[],this.attribute=function(t,e){var i=this.attributes[t];return null!=i?i:(1==e&&(i=new D.Property(t,""),this.attributes[t]=i),i||D.EmptyProperty)},this.getHrefAttribute=function(){for(var t in this.attributes)if("href"==t||t.match(/:href$/))return this.attributes[t];return D.EmptyProperty},this.style=function(t,e,i){var n=this.styles[t];if(null!=n)return n;var s=this.attribute(t);if(null!=s&&s.hasValue())return this.styles[t]=s;if(1!=i){var a=this.parent;if(null!=a){var r=a.style(t);if(null!=r&&r.hasValue())return r}}return 1==e&&(n=new D.Property(t,""),this.styles[t]=n),n||D.EmptyProperty},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.style("visibility").value){if(t.save(),this.style("mask").hasValue()){var e=this.style("mask").getDefinition();null!=e&&e.apply(t,this)}else if(this.style("filter").hasValue()){var i=this.style("filter").getDefinition();null!=i&&i.apply(t,this)}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}},this.setContext=function(){},this.clearContext=function(){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(t,e){var i=t;e&&(i=D.CreateElement(t)),i.parent=this,"title"!=i.type&&this.children.push(i)},this.addStylesFromStyleDefinition=function(){for(var t in D.Styles)if("@"!=t[0]&&f(a,t)){var e=D.Styles[t],i=D.StylesSpecificity[t];if(null!=e)for(var n in e){var s=this.stylesSpecificity[n];void 0===s&&(s="000"),s<=i&&(this.styles[n]=e[n],this.stylesSpecificity[n]=i)}}};var t,e=new RegExp("^[A-Z-]+$");if(null!=a&&1==a.nodeType){for(var i=0;i<a.attributes.length;i++){var n=a.attributes[i],s=(t=n.nodeName,e.test(t)?t.toLowerCase():t);this.attributes[s]=new D.Property(s,n.value)}if(this.addStylesFromStyleDefinition(),this.attribute("style").hasValue()){var r=this.attribute("style").value.split(";");for(i=0;i<r.length;i++)if(""!=D.trim(r[i])){var o=r[i].split(":"),h=D.trim(o[0]),l=D.trim(o[1]);this.styles[h]=new D.Property(h,l)}}this.attribute("id").hasValue()&&null==D.Definitions[this.attribute("id").value]&&(D.Definitions[this.attribute("id").value]=this);for(i=0;i<a.childNodes.length;i++){var u=a.childNodes[i];if(1==u.nodeType&&this.addChild(u,!0),this.captureTextNodes&&(3==u.nodeType||4==u.nodeType)){var c=u.value||u.text||u.textContent||"";""!=D.compressSpaces(c)&&this.addChild(new D.Element.tspan(u),!1)}}}},D.Element.RenderedElementBase=function(t){this.base=D.Element.ElementBase,this.base(t),this.calculateOpacity=function(){for(var t=1,e=this;null!=e;){var i=e.style("opacity",!1,!0);i.hasValue()&&(t*=i.numValue()),e=e.parent}return t},this.setContext=function(t,e){if(!e){var i;if(this.style("fill").isUrlDefinition())null!=(i=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity")))&&(t.fillStyle=i);else if(this.style("fill").hasValue()){var n;"currentColor"==(n=this.style("fill")).value&&(n.value=this.style("color").value),"inherit"!=n.value&&(t.fillStyle="none"==n.value?"rgba(0,0,0,0)":n.value)}if(this.style("fill-opacity").hasValue())n=(n=new D.Property("fill",t.fillStyle)).addOpacity(this.style("fill-opacity")),t.fillStyle=n.value;if(this.style("stroke").isUrlDefinition())null!=(i=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity")))&&(t.strokeStyle=i);else if(this.style("stroke").hasValue()){var s;"currentColor"==(s=this.style("stroke")).value&&(s.value=this.style("color").value),"inherit"!=s.value&&(t.strokeStyle="none"==s.value?"rgba(0,0,0,0)":s.value)}if(this.style("stroke-opacity").hasValue())s=(s=new D.Property("stroke",t.strokeStyle)).addOpacity(this.style("stroke-opacity")),t.strokeStyle=s.value;if(this.style("stroke-width").hasValue()){var a=this.style("stroke-width").toPixels();t.lineWidth=0==a?.001:a}if(this.style("stroke-linecap").hasValue()&&(t.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(t.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(t.miterLimit=this.style("stroke-miterlimit").value),this.style("paint-order").hasValue()&&(t.paintOrder=this.style("paint-order").value),this.style("stroke-dasharray").hasValue()&&"none"!=this.style("stroke-dasharray").value){var r=D.ToNumberArray(this.style("stroke-dasharray").value);void 0!==t.setLineDash?t.setLineDash(r):void 0!==t.webkitLineDash?t.webkitLineDash=r:void 0===t.mozDash||1==r.length&&0==r[0]||(t.mozDash=r);var o=this.style("stroke-dashoffset").toPixels();void 0!==t.lineDashOffset?t.lineDashOffset=o:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=o:void 0!==t.mozDashOffset&&(t.mozDashOffset=o)}}if(void 0!==t.font)if(this.style("font").hasValue())t.font=this.style("font").value;else{t.font=D.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString();var h=this.style("font-size",!1,!1);h.isPixels()&&(D.emSize=h.toPixels())}this.style("transform",!1,!0).hasValue()&&new D.Transform(this.style("transform",!1,!0).value).apply(t);if(this.style("clip-path",!1,!0).hasValue()){var l=this.style("clip-path",!1,!0).getDefinition();null!=l&&l.apply(t)}t.globalAlpha=this.calculateOpacity()}},D.Element.RenderedElementBase.prototype=new D.Element.ElementBase,D.Element.PathElementBase=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.path=function(t){return null!=t&&t.beginPath(),new D.BoundingBox},this.renderChildren=function(t){this.path(t),D.Mouse.checkPath(this,t),""!=t.fillStyle&&("inherit"!=this.style("fill-rule").valueOrDefault("inherit")?t.fill(this.style("fill-rule").value):t.fill()),""!=t.strokeStyle&&t.stroke();var e=this.getMarkers();if(null!=e){if(this.style("marker-start").isUrlDefinition())(i=this.style("marker-start").getDefinition()).render(t,e[0][0],e[0][1]);if(this.style("marker-mid").isUrlDefinition())for(var i=this.style("marker-mid").getDefinition(),n=1;n<e.length-1;n++)i.render(t,e[n][0],e[n][1]);if(this.style("marker-end").isUrlDefinition())(i=this.style("marker-end").getDefinition()).render(t,e[e.length-1][0],e[e.length-1][1])}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},D.Element.PathElementBase.prototype=new D.Element.RenderedElementBase,D.SetDefaults=function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4},D.Element.svg=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.baseClearContext=this.clearContext,this.clearContext=function(t){this.baseClearContext(t),D.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(t){if(D.SetDefaults(t),t.canvas.style&&void 0!==t.font&&void 0!==l.getComputedStyle){t.font=l.getComputedStyle(t.canvas).getPropertyValue("font");var e=new D.Property("fontSize",D.Font.Parse(t.font).fontSize);e.hasValue()&&(D.rootEmSize=D.emSize=e.toPixels("y"))}this.baseSetContext(t),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var i=D.ViewPort.width(),n=D.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),void 0===this.root){i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");var s=0,a=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(s=-this.attribute("refX").toPixels("x"),a=-this.attribute("refY").toPixels("y")),"visible"!=this.attribute("overflow").valueOrDefault("hidden")&&(t.beginPath(),t.moveTo(s,a),t.lineTo(i,a),t.lineTo(i,n),t.lineTo(s,n),t.closePath(),t.clip())}if(D.ViewPort.SetCurrent(i,n),this.attribute("viewBox").hasValue()){var r=D.ToNumberArray(this.attribute("viewBox").value),o=r[0],h=r[1];i=r[2],n=r[3],D.AspectRatio(t,this.attribute("preserveAspectRatio").value,D.ViewPort.width(),i,D.ViewPort.height(),n,o,h,this.attribute("refX").value,this.attribute("refY").value),D.ViewPort.RemoveCurrent(),D.ViewPort.SetCurrent(r[2],r[3])}}},D.Element.svg.prototype=new D.Element.RenderedElementBase,D.Element.rect=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y"),a=this.attribute("rx").toPixels("x"),r=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(r=a),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(a=r),a=Math.min(a,n/2),r=Math.min(r,s/2),null!=t){var o=(Math.sqrt(2)-1)/3*4;t.beginPath(),0<s&&0<n&&(t.moveTo(e+a,i),t.lineTo(e+n-a,i),t.bezierCurveTo(e+n-a+o*a,i,e+n,i+r-o*r,e+n,i+r),t.lineTo(e+n,i+s-r),t.bezierCurveTo(e+n,i+s-r+o*r,e+n-a+o*a,i+s,e+n-a,i+s),t.lineTo(e+a,i+s),t.bezierCurveTo(e+a-o*a,i+s,e,i+s-r+o*r,e,i+s-r),t.lineTo(e,i+r),t.bezierCurveTo(e,i+r-o*r,e+a-o*a,i,e+a,i),t.closePath())}return new D.BoundingBox(e,i,e+n,i+s)}},D.Element.rect.prototype=new D.Element.PathElementBase,D.Element.circle=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=this.attribute("cx").toPixels("x"),i=this.attribute("cy").toPixels("y"),n=this.attribute("r").toPixels();return null!=t&&0<n&&(t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.closePath()),new D.BoundingBox(e-n,i-n,e+n,i+n)}},D.Element.circle.prototype=new D.Element.PathElementBase,D.Element.ellipse=function(t){this.base=D.Element.PathElementBase,this.base(t),this.path=function(t){var e=(Math.sqrt(2)-1)/3*4,i=this.attribute("rx").toPixels("x"),n=this.attribute("ry").toPixels("y"),s=this.attribute("cx").toPixels("x"),a=this.attribute("cy").toPixels("y");return null!=t&&(t.beginPath(),t.moveTo(s+i,a),t.bezierCurveTo(s+i,a+e*n,s+e*i,a+n,s,a+n),t.bezierCurveTo(s-e*i,a+n,s-i,a+e*n,s-i,a),t.bezierCurveTo(s-i,a-e*n,s-e*i,a-n,s,a-n),t.bezierCurveTo(s+e*i,a-n,s+i,a-e*n,s+i,a),t.closePath()),new D.BoundingBox(s-i,a-n,s+i,a+n)}},D.Element.ellipse.prototype=new D.Element.PathElementBase,D.Element.line=function(t){this.base=D.Element.PathElementBase,this.base(t),this.getPoints=function(){return[new D.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new D.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]},this.path=function(t){var e=this.getPoints();return null!=t&&(t.beginPath(),t.moveTo(e[0].x,e[0].y),t.lineTo(e[1].x,e[1].y)),new D.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},D.Element.line.prototype=new D.Element.PathElementBase,D.Element.polyline=function(t){this.base=D.Element.PathElementBase,this.base(t),this.points=D.CreatePath(this.attribute("points").value),this.path=function(t){var e=new D.BoundingBox(this.points[0].x,this.points[0].y);null!=t&&(t.beginPath(),t.moveTo(this.points[0].x,this.points[0].y));for(var i=1;i<this.points.length;i++)e.addPoint(this.points[i].x,this.points[i].y),null!=t&&t.lineTo(this.points[i].x,this.points[i].y);return e},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return 0<t.length&&t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},D.Element.polyline.prototype=new D.Element.PathElementBase,D.Element.polygon=function(t){this.base=D.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},D.Element.polygon.prototype=new D.Element.polyline,D.Element.path=function(t){this.base=D.Element.PathElementBase,this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var i=0;i<2;i++)e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");e=(e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2");for(i=0;i<2;i++)e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),e=D.compressSpaces(e),e=D.trim(e),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new D.Point(0,0),this.control=new D.Point(0,0),this.current=new D.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new D.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new D.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,i){null!=i&&0<this.angles.length&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(i)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(e),this.path=function(t){var e=this.PathParser;e.reset();var i=new D.BoundingBox;for(null!=t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":var n=e.getAsCurrentPoint();for(e.addMarker(n),i.addPoint(n.x,n.y),null!=t&&t.moveTo(n.x,n.y),e.start=e.current;!e.isCommandOrEnd();){n=e.getAsCurrentPoint();e.addMarker(n,e.start),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"L":case"l":for(;!e.isCommandOrEnd();){var s=e.current;n=e.getAsCurrentPoint();e.addMarker(n,s),i.addPoint(n.x,n.y),null!=t&&t.lineTo(n.x,n.y)}break;case"H":case"h":for(;!e.isCommandOrEnd();){var a=new D.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":for(;!e.isCommandOrEnd();){a=new D.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current),e.current=a,i.addPoint(e.current.x,e.current.y),null!=t&&t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":for(;!e.isCommandOrEnd();){var r=e.current,o=e.getPoint(),h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,o),i.addBezierCurve(r.x,r.y,o.x,o.y,h.x,h.y,l.x,l.y),null!=t&&t.bezierCurveTo(o.x,o.y,h.x,h.y,l.x,l.y)}break;case"S":case"s":for(;!e.isCommandOrEnd();){r=e.current,o=e.getReflectedControlPoint(),h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,o),i.addBezierCurve(r.x,r.y,o.x,o.y,h.x,h.y,l.x,l.y),null!=t&&t.bezierCurveTo(o.x,o.y,h.x,h.y,l.x,l.y)}break;case"Q":case"q":for(;!e.isCommandOrEnd();){r=e.current,h=e.getAsControlPoint(),l=e.getAsCurrentPoint();e.addMarker(l,h,h),i.addQuadraticCurve(r.x,r.y,h.x,h.y,l.x,l.y),null!=t&&t.quadraticCurveTo(h.x,h.y,l.x,l.y)}break;case"T":case"t":for(;!e.isCommandOrEnd();){r=e.current,h=e.getReflectedControlPoint();e.control=h;l=e.getAsCurrentPoint();e.addMarker(l,h,h),i.addQuadraticCurve(r.x,r.y,h.x,h.y,l.x,l.y),null!=t&&t.quadraticCurveTo(h.x,h.y,l.x,l.y)}break;case"A":case"a":for(;!e.isCommandOrEnd();){r=e.current;var u=e.getScalar(),c=e.getScalar(),f=e.getScalar()*(Math.PI/180),p=e.getScalar(),d=e.getScalar(),m=(l=e.getAsCurrentPoint(),new D.Point(Math.cos(f)*(r.x-l.x)/2+Math.sin(f)*(r.y-l.y)/2,-Math.sin(f)*(r.x-l.x)/2+Math.cos(f)*(r.y-l.y)/2)),y=Math.pow(m.x,2)/Math.pow(u,2)+Math.pow(m.y,2)/Math.pow(c,2);1<y&&(u*=Math.sqrt(y),c*=Math.sqrt(y));var v=(p==d?-1:1)*Math.sqrt((Math.pow(u,2)*Math.pow(c,2)-Math.pow(u,2)*Math.pow(m.y,2)-Math.pow(c,2)*Math.pow(m.x,2))/(Math.pow(u,2)*Math.pow(m.y,2)+Math.pow(c,2)*Math.pow(m.x,2)));isNaN(v)&&(v=0);var g=new D.Point(v*u*m.y/c,v*-c*m.x/u),x=new D.Point((r.x+l.x)/2+Math.cos(f)*g.x-Math.sin(f)*g.y,(r.y+l.y)/2+Math.sin(f)*g.x+Math.cos(f)*g.y),b=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},P=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e))},E=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(P(t,e))},w=E([1,0],[(m.x-g.x)/u,(m.y-g.y)/c]),C=[(m.x-g.x)/u,(m.y-g.y)/c],B=[(-m.x-g.x)/u,(-m.y-g.y)/c],M=E(C,B);P(C,B)<=-1&&(M=Math.PI),1<=P(C,B)&&(M=0);var T=1-d?1:-1,S=w+T*(M/2),V=new D.Point(x.x+u*Math.cos(S),x.y+c*Math.sin(S));if(e.addMarkerAngle(V,S-T*Math.PI/2),e.addMarkerAngle(l,S-T*Math.PI),i.addPoint(l.x,l.y),null!=t&&!isNaN(w)&&!isNaN(M)){P=c<u?u:c;var k=c<u?1:u/c,A=c<u?c/u:1;t.translate(x.x,x.y),t.rotate(f),t.scale(k,A),t.arc(0,0,P,w,w+M,1-d),t.scale(1/k,1/A),t.rotate(-f),t.translate(-x.x,-x.y)}}break;case"Z":case"z":null!=t&&i.x1!==i.x2&&i.y1!==i.y2&&t.closePath(),e.current=e.start}return i},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),i=[],n=0;n<t.length;n++)i.push([t[n],e[n]]);return i}},D.Element.path.prototype=new D.Element.PathElementBase,D.Element.pattern=function(t){this.base=D.Element.ElementBase,this.base(t),this.createPattern=function(t,e,i){var n=this.attribute("width").toPixels("x",!0),s=this.attribute("height").toPixels("y",!0),a=new D.Element.svg;a.attributes.viewBox=new D.Property("viewBox",this.attribute("viewBox").value),a.attributes.width=new D.Property("width",n+"px"),a.attributes.height=new D.Property("height",s+"px"),a.attributes.transform=new D.Property("transform",this.attribute("patternTransform").value),a.children=this.children;var r=d(n,s),o=r.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&o.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0)),i.hasValue()?this.styles["fill-opacity"]=i:delete this.styles["fill-opacity"];for(var h=-1;h<=1;h++)for(var l=-1;l<=1;l++)o.save(),a.attributes.x=new D.Property("x",h*r.width),a.attributes.y=new D.Property("y",l*r.height),a.render(o),o.restore();return t.createPattern(r,"repeat")}},D.Element.pattern.prototype=new D.Element.ElementBase,D.Element.marker=function(t){this.base=D.Element.ElementBase,this.base(t),this.baseRender=this.render,this.render=function(t,e,i){if(e){t.translate(e.x,e.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(i),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(t.lineWidth,t.lineWidth),t.save();var n=new D.Element.svg;n.attributes.viewBox=new D.Property("viewBox",this.attribute("viewBox").value),n.attributes.refX=new D.Property("refX",this.attribute("refX").value),n.attributes.refY=new D.Property("refY",this.attribute("refY").value),n.attributes.width=new D.Property("width",this.attribute("markerWidth").value),n.attributes.height=new D.Property("height",this.attribute("markerHeight").value),n.attributes.fill=new D.Property("fill",this.attribute("fill").valueOrDefault("black")),n.attributes.stroke=new D.Property("stroke",this.attribute("stroke").valueOrDefault("none")),n.children=this.children,n.render(t),t.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(-i),t.translate(-e.x,-e.y)}}},D.Element.marker.prototype=new D.Element.ElementBase,D.Element.defs=function(t){this.base=D.Element.ElementBase,this.base(t),this.render=function(){}},D.Element.defs.prototype=new D.Element.ElementBase,D.Element.GradientBase=function(t){this.base=D.Element.ElementBase,this.base(t),this.stops=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"stop"==i.type&&this.stops.push(i)}this.getGradient=function(){},this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")},this.attributesToInherit=["gradientUnits"],this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var i=this.attributesToInherit[e];!this.attribute(i).hasValue()&&t.attribute(i).hasValue()&&(this.attribute(i,!0).value=t.attribute(i).value)}},this.createGradient=function(t,e,i){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var s=function(t){return i.hasValue()?new D.Property("color",t).addOpacity(i).value:t},a=this.getGradient(t,e);if(null==a)return s(n.stops[n.stops.length-1].color);for(var r=0;r<n.stops.length;r++)a.addColorStop(n.stops[r].offset,s(n.stops[r].color));if(this.attribute("gradientTransform").hasValue()){var o=D.ViewPort.viewPorts[0],h=new D.Element.rect;h.attributes.x=new D.Property("x",-D.MAX_VIRTUAL_PIXELS/3),h.attributes.y=new D.Property("y",-D.MAX_VIRTUAL_PIXELS/3),h.attributes.width=new D.Property("width",D.MAX_VIRTUAL_PIXELS),h.attributes.height=new D.Property("height",D.MAX_VIRTUAL_PIXELS);var l=new D.Element.g;l.attributes.transform=new D.Property("transform",this.attribute("gradientTransform").value),l.children=[h];var u=new D.Element.svg;u.attributes.x=new D.Property("x",0),u.attributes.y=new D.Property("y",0),u.attributes.width=new D.Property("width",o.width),u.attributes.height=new D.Property("height",o.height),u.children=[l];var c=d(o.width,o.height),f=c.getContext("2d");return f.fillStyle=a,u.render(f),f.createPattern(c,"no-repeat")}return a}},D.Element.GradientBase.prototype=new D.Element.ElementBase,D.Element.linearGradient=function(t){this.base=D.Element.GradientBase,this.base(t),this.attributesToInherit.push("x1"),this.attributesToInherit.push("y1"),this.attributesToInherit.push("x2"),this.attributesToInherit.push("y2"),this.getGradient=function(t,e){var i="objectBoundingBox"==this.gradientUnits()?e.getBoundingBox(t):null;this.attribute("x1").hasValue()||this.attribute("y1").hasValue()||this.attribute("x2").hasValue()||this.attribute("y2").hasValue()||(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return n==a&&s==r?null:t.createLinearGradient(n,s,a,r)}},D.Element.linearGradient.prototype=new D.Element.GradientBase,D.Element.radialGradient=function(t){this.base=D.Element.GradientBase,this.base(t),this.attributesToInherit.push("cx"),this.attributesToInherit.push("cy"),this.attributesToInherit.push("r"),this.attributesToInherit.push("fx"),this.attributesToInherit.push("fy"),this.attributesToInherit.push("fr"),this.getGradient=function(t,e){var i=e.getBoundingBox(t);this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var n="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),s="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),a=n,r=s;this.attribute("fx").hasValue()&&(a="objectBoundingBox"==this.gradientUnits()?i.x()+i.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(r="objectBoundingBox"==this.gradientUnits()?i.y()+i.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var o="objectBoundingBox"==this.gradientUnits()?(i.width()+i.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels(),h=this.attribute("fr").toPixels();return t.createRadialGradient(a,r,h,n,s,o)}},D.Element.radialGradient.prototype=new D.Element.GradientBase,D.Element.stop=function(t){this.base=D.Element.ElementBase,this.base(t),this.offset=this.attribute("offset").numValue(),this.offset<0&&(this.offset=0),1<this.offset&&(this.offset=1);var e=this.style("stop-color",!0);""===e.value&&(e.value="#000"),this.style("stop-opacity").hasValue()&&(e=e.addOpacity(this.style("stop-opacity"))),this.color=e.value},D.Element.stop.prototype=new D.Element.ElementBase,D.Element.AnimateBase=function(t){this.base=D.Element.ElementBase,this.base(t),D.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.begin<this.duration){var i=this.calcValue();if(this.attribute("type").hasValue())i=this.attribute("type").value+"("+i+")";this.getProperty().value=i,e=!0}return e},this.from=this.attribute("from"),this.to=this.attribute("to"),this.values=this.attribute("values"),this.values.hasValue()&&(this.values.value=this.values.value.split(";")),this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1),i=Math.floor(e),n=Math.ceil(e);t.from=new D.Property("from",parseFloat(this.values.value[i])),t.to=new D.Property("to",parseFloat(this.values.value[n])),t.progress=(e-i)/(n-i)}else t.from=this.from,t.to=this.to;return t}},D.Element.AnimateBase.prototype=new D.Element.ElementBase,D.Element.animate=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return"%"===this.initialUnits&&(e*=100),e+this.initialUnits}},D.Element.animate.prototype=new D.Element.AnimateBase,D.Element.animateColor=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=new y(t.from.value),i=new y(t.to.value);if(e.ok&&i.ok){var n=e.r+(i.r-e.r)*t.progress,s=e.g+(i.g-e.g)*t.progress,a=e.b+(i.b-e.b)*t.progress;return"rgb("+parseInt(n,10)+","+parseInt(s,10)+","+parseInt(a,10)+")"}return this.attribute("from").value}},D.Element.animateColor.prototype=new D.Element.AnimateBase,D.Element.animateTransform=function(t){this.base=D.Element.AnimateBase,this.base(t),this.calcValue=function(){for(var t=this.progress(),e=D.ToNumberArray(t.from.value),i=D.ToNumberArray(t.to.value),n="",s=0;s<e.length;s++)n+=e[s]+(i[s]-e[s])*t.progress+" ";return n}},D.Element.animateTransform.prototype=new D.Element.animate,D.Element.font=function(t){this.base=D.Element.ElementBase,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var e=0;e<this.children.length;e++){var i=this.children[e];"font-face"==i.type?(this.fontFace=i).style("font-family").hasValue()&&(D.Definitions[i.style("font-family").value]=this):"missing-glyph"==i.type?this.missingGlyph=i:"glyph"==i.type&&(""!=i.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[i.unicode]&&(this.glyphs[i.unicode]=[]),this.glyphs[i.unicode][i.arabicForm]=i):this.glyphs[i.unicode]=i)}this.render=function(){}},D.Element.font.prototype=new D.Element.ElementBase,D.Element.fontface=function(t){this.base=D.Element.ElementBase,this.base(t),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},D.Element.fontface.prototype=new D.Element.ElementBase,D.Element.missingglyph=function(t){this.base=D.Element.path,this.base(t),this.horizAdvX=0},D.Element.missingglyph.prototype=new D.Element.path,D.Element.glyph=function(t){this.base=D.Element.path,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},D.Element.glyph.prototype=new D.Element.path,D.Element.text=function(t){this.captureTextNodes=!0,this.base=D.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();null==e&&(e=this.style("alignment-baseline").toTextBaseline()),null!=e&&(t.textBaseline=e)},this.initializeCoordinates=function(t){this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),this.x+=this.getAnchorDelta(t,this,0)},this.getBoundingBox=function(t){this.initializeCoordinates(t);for(var e=null,i=0;i<this.children.length;i++){var n=this.getChildBoundingBox(t,this,this,i);null==e?e=n:e.addBoundingBox(n)}return e},this.renderChildren=function(t){this.initializeCoordinates(t);for(var e=0;e<this.children.length;e++)this.renderChild(t,this,this,e);D.Mouse.checkBoundingBox(this,this.getBoundingBox(t))},this.getAnchorDelta=function(t,e,i){var n=this.style("text-anchor").valueOrDefault("start");if("start"==n)return 0;for(var s=0,a=i;a<e.children.length;a++){var r=e.children[a];if(i<a&&r.attribute("x").hasValue())break;s+=r.measureTextRecursive(t)}return-1*("end"==n?s:s/2)},this.adjustChildCoordinates=function(t,e,i,n){var s=i.children[n];if("function"!=typeof s.measureText)return s;if(s.attribute("x").hasValue()){s.x=s.attribute("x").toPixels("x")+e.getAnchorDelta(t,i,n);var a=s.attribute("text-anchor").valueOrDefault("start");if("start"!==a){var r=s.measureTextRecursive(t);s.x+=-1*("end"==a?r:r/2)}s.attribute("dx").hasValue()&&(s.x+=s.attribute("dx").toPixels("x"))}else s.attribute("dx").hasValue()&&(e.x+=s.attribute("dx").toPixels("x")),s.x=e.x;return e.x=s.x+s.measureText(t),s.attribute("y").hasValue()?(s.y=s.attribute("y").toPixels("y"),s.attribute("dy").hasValue()&&(s.y+=s.attribute("dy").toPixels("y"))):(s.attribute("dy").hasValue()&&(e.y+=s.attribute("dy").toPixels("y")),s.y=e.y),e.y=s.y,s},this.getChildBoundingBox=function(t,e,i,n){var s=this.adjustChildCoordinates(t,e,i,n),a=s.getBoundingBox(t);for(n=0;n<s.children.length;n++){var r=e.getChildBoundingBox(t,e,s,n);a.addBoundingBox(r)}return a},this.renderChild=function(t,e,i,n){var s=this.adjustChildCoordinates(t,e,i,n);s.render(t);for(n=0;n<s.children.length;n++)e.renderChild(t,e,s,n)}},D.Element.text.prototype=new D.Element.RenderedElementBase,D.Element.TextElementBase=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.getGlyph=function(t,e,i){var n=e[i],s=null;if(t.isArabic){var a="isolated";(0==i||" "==e[i-1])&&i<e.length-2&&" "!=e[i+1]&&(a="terminal"),0<i&&" "!=e[i-1]&&i<e.length-2&&" "!=e[i+1]&&(a="medial"),0<i&&" "!=e[i-1]&&(i==e.length-1||" "==e[i+1])&&(a="initial"),void 0!==t.glyphs[n]&&null==(s=t.glyphs[n][a])&&"glyph"==t.glyphs[n].type&&(s=t.glyphs[n])}else s=t.glyphs[n];return null==s&&(s=t.missingGlyph),s},this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(null==e)"stroke"==t.paintOrder?(""!=t.strokeStyle&&t.strokeText(D.compressSpaces(this.getText()),this.x,this.y),""!=t.fillStyle&&t.fillText(D.compressSpaces(this.getText()),this.x,this.y)):(""!=t.fillStyle&&t.fillText(D.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(D.compressSpaces(this.getText()),this.x,this.y));else{var i=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize),n=this.parent.style("font-style").valueOrDefault(D.Font.Parse(D.ctx.font).fontStyle),s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){var o=this.getGlyph(e,s,r),h=i/e.fontFace.unitsPerEm;t.translate(this.x,this.y),t.scale(h,-h);var l=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/i,"italic"==n&&t.transform(1,0,.4,1,0,0),o.render(t),"italic"==n&&t.transform(1,0,-.4,1,0,0),t.lineWidth=l,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=i*(o.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(this.x+=a[r])}}},this.getText=function(){},this.measureTextRecursive=function(t){for(var e=this.measureText(t),i=0;i<this.children.length;i++)e+=this.children[i].measureTextRecursive(t);return e},this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(null!=e){var i=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize),n=0,s=this.getText();e.isRTL&&(s=s.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){n+=(this.getGlyph(e,s,r).horizAdvX||e.horizAdvX)*i/e.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(n+=a[r])}return n}var o=D.compressSpaces(this.getText());if(!t.measureText)return 10*o.length;t.save(),this.setContext(t,!0);var h=t.measureText(o).width;return t.restore(),h},this.getBoundingBox=function(t){var e=this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize);return new D.BoundingBox(this.x,this.y-e,this.x+this.measureText(t),this.y)}},D.Element.TextElementBase.prototype=new D.Element.RenderedElementBase,D.Element.tspan=function(t){this.captureTextNodes=!0,this.base=D.Element.TextElementBase,this.base(t),this.text=D.compressSpaces(t.value||t.text||t.textContent||""),this.getText=function(){return 0<this.children.length?"":this.text}},D.Element.tspan.prototype=new D.Element.TextElementBase,D.Element.tref=function(t){this.base=D.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(null!=t)return t.children[0].getText()}},D.Element.tref.prototype=new D.Element.TextElementBase,D.Element.a=function(t){this.base=D.Element.TextElementBase,this.base(t),this.hasText=0<t.childNodes.length;for(var e=0;e<t.childNodes.length;e++)3!=t.childNodes[e].nodeType&&(this.hasText=!1);this.text=this.hasText?t.childNodes[0].value||t.childNodes[0].data:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new D.Property("fontSize",D.Font.Parse(D.ctx.font).fontSize);D.Mouse.checkBoundingBox(this,new D.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(0<this.children.length){var i=new D.Element.g;i.children=this.children,i.parent=this,i.render(t)}},this.onclick=function(){l.open(this.getHrefAttribute().value)},this.onmousemove=function(){D.ctx.canvas.style.cursor="pointer"}},D.Element.a.prototype=new D.Element.TextElementBase,D.Element.textPath=function(t){this.base=D.Element.TextElementBase,this.base(t);var e=this.getHrefAttribute().getDefinition();this.text=D.compressSpaces(t.value||t.text||t.textContent||""),this.renderChildren=function(t){this.setTextData(t),t.save();var e=this.parent.style("text-decoration").value,i=this.fontSize(),n=this.glyphInfo,s=t.fillStyle;"underline"===e&&t.beginPath();for(var a=0;a<n.length;a++){var r=n[a].p0,o=n[a].p1,h=n[a].text;t.save(),t.translate(r.x,r.y),t.rotate(n[a].rotation),""!=t.fillStyle&&t.fillText(D.compressSpaces(h),0,0),""!=t.strokeStyle&&t.strokeText(D.compressSpaces(h),0,0),t.restore(),"underline"===e&&(0===a&&t.moveTo(r.x,r.y+i/8),t.lineTo(o.x,o.y+i/5))}"underline"===e&&(t.lineWidth=i/20,t.strokeStyle=s,t.stroke(),t.closePath()),t.restore()},this.path=function(t){var e=this.dataArray;null!=t&&t.beginPath();for(var i=0;i<e.length;i++){var n=e[i].command,s=e[i].points;switch(n){case"L":null!=t&&t.lineTo(s[0],s[1]);break;case"M":null!=t&&t.moveTo(s[0],s[1]);break;case"C":null!=t&&t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":null!=t&&t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var a=s[0],r=s[1],o=s[2],h=s[3],l=s[4],u=s[5],c=s[6],f=s[7],p=h<o?o:h,d=h<o?1:o/h,m=h<o?h/o:1;null!=t&&(t.translate(a,r),t.rotate(c),t.scale(d,m),t.arc(0,0,p,l,l+u,1-f),t.scale(1/d,1/m),t.rotate(-c),t.translate(-a,-r));break;case"z":null!=t&&t.closePath()}}},this.getText=function(){return this.text},this.fontSize=function(){return this.parent.style("font-size").numValueOrDefault(D.Font.Parse(D.ctx.font).fontSize)},this.measureText=function(t,e){var i=this.parent.style("font-family").getDefinition();if(e=e||this.getText(),null!=i){var n=this.fontSize(),s=0;i.isRTL&&(e=e.split("").reverse().join(""));for(var a=D.ToNumberArray(this.parent.attribute("dx").value),r=0;r<e.length;r++){s+=(this.getGlyph(i,e,r).horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,void 0===a[r]||isNaN(a[r])||(s+=a[r])}return s}var o=D.compressSpaces(e);if(!t.measureText)return 10*o.length;t.save(),this.setContext(t);var h=t.measureText(o).width;return t.restore(),h},this.setTextData=function(r){if(!this.hasOwnProperty("glyphInfo")){var o=this,t=this.getText().split(""),h=this.getText().split(" ").length-1,e=D.ToNumberArray(this.parent.attribute("dx").valueOrDefault("0")),i=0,l=this.parent.style("text-anchor").valueOrDefault("start"),n=this.style("letter-spacing"),s=this.parent.style("letter-spacing");n.hasValue()&&"inherit"!==n.getValue()?n.hasValue()&&"initial"!==n.getValue()&&"unset"!==n.getValue()&&(i=n.toPixels()):i=s.toPixels(),this.letterSpacingCache=[];for(var a=0;a<this.getText().length;a++)this.letterSpacingCache.push(void 0!==e[a]?e[a]:i);var u=this.letterSpacingCache.reduce(function(t,e){return t+e||0},0);this.textWidth=this.measureText(r),this.textHeight=this.fontSize();var c=Math.max(this.textWidth+u,0);this.glyphInfo=[];var f=this.getPathLength(),p=this.style("startOffset").numValueOrDefault(0)*f,d=0;"middle"!==l&&"center"!==l||(d=-c/2),"end"!==l&&"right"!==l||(d=-c),d+=p;var m=function(t,e){var i,n=o.measureText(r,t);" "===t&&"justify"===l&&c<f&&(n+=(f-c)/h),-1<e&&(d+=(i=(i=e)||0,o.letterSpacingCache[i]||0));var s=o.textHeight/20,a={p0:o.getEquidistantPointOnPath(d,s),p1:o.getEquidistantPointOnPath(d+n,s)};return d+=n,a};for(a=0;a<t.length;a++){var y=m(t[a],a);if(void 0!==y.p0&&void 0!==y.p1){var v=o.getLineLength(y.p0.x,y.p0.y,y.p1.x,y.p1.y),g=o.getPointOnLine(0+v/2,y.p0.x,y.p0.y,y.p1.x,y.p1.y),x=Math.atan2(y.p1.y-y.p0.y,y.p1.x-y.p0.x);this.glyphInfo.push({transposeX:g.x,transposeY:g.y,text:t[a],rotation:x,p0:y.p0,p1:y.p1})}}}},this.parsePathData=function(t){if(this.pathLength=void 0,!t)return[];var e=[],i=t.PathParser;for(i.reset();!i.isEnd();){var n=[],s=null,a=i.current?i.current.x:0,r=i.current?i.current.y:0;i.nextCommand();var o=i.command.toUpperCase();switch(i.command){case"M":case"m":var h=i.getAsCurrentPoint();for(n.push(h.x,h.y),i.start=i.current;!i.isCommandOrEnd();){h=i.getAsCurrentPoint();n.push(h.x,h.y),s="L"}break;case"L":case"l":for(;!i.isCommandOrEnd();){h=i.getAsCurrentPoint();n.push(h.x,h.y)}s="L";break;case"H":case"h":for(;!i.isCommandOrEnd();){var l=new D.Point((i.isRelativeCommand()?i.current.x:0)+i.getScalar(),i.current.y);n.push(l.x,l.y),i.current=l}s="L";break;case"V":case"v":for(;!i.isCommandOrEnd();){l=new D.Point(i.current.x,(i.isRelativeCommand()?i.current.y:0)+i.getScalar());n.push(l.x,l.y),i.current=l}s="L";break;case"C":case"c":for(;!i.isCommandOrEnd();){var u=i.getPoint(),c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(u.x,u.y,c.x,c.y,f.x,f.y)}break;case"S":case"s":for(;!i.isCommandOrEnd();){u=i.getReflectedControlPoint(),c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(u.x,u.y,c.x,c.y,f.x,f.y)}s="C";break;case"Q":case"q":for(;!i.isCommandOrEnd();){c=i.getAsControlPoint(),f=i.getAsCurrentPoint();n.push(c.x,c.y,f.x,f.y)}break;case"T":case"t":for(;!i.isCommandOrEnd();){c=i.getReflectedControlPoint();i.control=c;f=i.getAsCurrentPoint();n.push(c.x,c.y,f.x,f.y)}s="Q";break;case"A":case"a":for(;!i.isCommandOrEnd();){var p=i.current,d=i.getScalar(),m=i.getScalar(),y=i.getScalar()*(Math.PI/180),v=i.getScalar(),g=i.getScalar(),x=(f=i.getAsCurrentPoint(),new D.Point(Math.cos(y)*(p.x-f.x)/2+Math.sin(y)*(p.y-f.y)/2,-Math.sin(y)*(p.x-f.x)/2+Math.cos(y)*(p.y-f.y)/2)),b=Math.pow(x.x,2)/Math.pow(d,2)+Math.pow(x.y,2)/Math.pow(m,2);1<b&&(d*=Math.sqrt(b),m*=Math.sqrt(b));var P=(v==g?-1:1)*Math.sqrt((Math.pow(d,2)*Math.pow(m,2)-Math.pow(d,2)*Math.pow(x.y,2)-Math.pow(m,2)*Math.pow(x.x,2))/(Math.pow(d,2)*Math.pow(x.y,2)+Math.pow(m,2)*Math.pow(x.x,2)));isNaN(P)&&(P=0);var E=new D.Point(P*d*x.y/m,P*-m*x.x/d),w=new D.Point((p.x+f.x)/2+Math.cos(y)*E.x-Math.sin(y)*E.y,(p.y+f.y)/2+Math.sin(y)*E.x+Math.cos(y)*E.y),C=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},B=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(C(t)*C(e))},M=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(B(t,e))},T=M([1,0],[(x.x-E.x)/d,(x.y-E.y)/m]),S=[(x.x-E.x)/d,(x.y-E.y)/m],V=[(-x.x-E.x)/d,(-x.y-E.y)/m],k=M(S,V);B(S,V)<=-1&&(k=Math.PI),1<=B(S,V)&&(k=0),0===g&&0<k&&(k-=2*Math.PI),1===g&&k<0&&(k+=2*Math.PI),n=[w.x,w.y,d,m,T,k,y,g]}break;case"Z":case"z":i.current=i.start}"Z"!==o?e.push({command:s||o,points:n,start:{x:a,y:r},pathLength:this.calcLength(a,r,s||o,n)}):e.push({command:"z",points:[],start:void 0,pathLength:0})}return e},this.getPathLength=function(){if(void 0===this.pathLength||null===this.pathLength||isNaN(this.pathLength))for(var t=this.pathLength=0;t<this.dataArray.length;t++)0<this.dataArray[t].pathLength&&(this.pathLength+=this.dataArray[t].pathLength);return this.pathLength},this.getPointOnPath=function(t){var e=0,i=this.getPathLength(),n=void 0;if(!(t<-5e-5||i<t-5e-5))for(var s=0;s<this.dataArray.length;s++){var a=this.dataArray[s];if(!a||!(a.pathLength<5e-5||e+a.pathLength+5e-5<t)){var r=t-e,o=void 0;switch(a.command){case"L":n=this.getPointOnLine(r,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case"A":var h=a.points[4],l=a.points[5],u=a.points[4]+l;if(o=h+r/a.pathLength*l,l<0&&o<u||0<=l&&u<o)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case"C":1<(o=r/a.pathLength)&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case"Q":1<(o=r/a.pathLength)&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(void 0!==n&&n!=={})return n;break}e+=a.pathLength}},this.buildEquidistantCache=function(t,e){var i=this.getPathLength();if(e=e||.25,t=t||i/100,this.equidistantCache=this.equidistantCache||{},!this.equidistantCache.hasOwnProperty("points")||this.equidistantCache.step!=t||this.equidistantCache.precision!=e){this.equidistantCache={step:t,precision:e,points:[]};for(var n=0,s=0;s<=i;s+=e){var a=this.getPointOnPath(s),r=this.getPointOnPath(s+e);void 0!==a&&void 0!==r&&(t<=(n+=this.getLineLength(a.x,a.y,r.x,r.y))&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:s}),n-=t))}}},this.getEquidistantPointOnPath=function(t,e,i){if(this.buildEquidistantCache(e,i),!(t<0||5e-5<t-this.getPathLength())){var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||void 0}},this.getLineLength=function(t,e,i,n){return Math.sqrt((i-t)*(i-t)+(n-e)*(n-e))},this.getPointOnLine=function(t,e,i,n,s,a,r){void 0===a&&(a=e),void 0===r&&(r=i);var o=(s-i)/(n-e+1e-8),h=Math.sqrt(t*t/(1+o*o));n<e&&(h*=-1);var l,u=o*h;if(n===e)l={x:a,y:r+u};else if((r-i)/(a-e+1e-8)===o)l={x:a+h,y:r+u};else{var c,f,p=this.getLineLength(e,i,n,s);if(p<1e-8)return;var d=(a-e)*(n-e)+(r-i)*(s-i);c=e+(d/=p*p)*(n-e),f=i+d*(s-i);var m=this.getLineLength(a,r,c,f),y=Math.sqrt(t*t-m*m);h=Math.sqrt(y*y/(1+o*o)),n<e&&(h*=-1),l={x:c+h,y:f+(u=o*h)}}return l},this.getPointOnCubicBezier=function(t,e,i,n,s,a,r,o,h){function l(t){return t*t*t}function u(t){return 3*t*t*(1-t)}function c(t){return 3*t*(1-t)*(1-t)}function f(t){return(1-t)*(1-t)*(1-t)}return{x:o*l(t)+a*u(t)+n*c(t)+e*f(t),y:h*l(t)+r*u(t)+s*c(t)+i*f(t)}},this.getPointOnQuadraticBezier=function(t,e,i,n,s,a,r){function o(t){return t*t}function h(t){return 2*t*(1-t)}function l(t){return(1-t)*(1-t)}return{x:a*o(t)+n*h(t)+e*l(t),y:r*o(t)+s*h(t)+i*l(t)}},this.getPointOnEllipticalArc=function(t,e,i,n,s,a){var r=Math.cos(a),o=Math.sin(a),h=i*Math.cos(s),l=n*Math.sin(s);return{x:t+(h*r-l*o),y:e+(h*o+l*r)}},this.calcLength=function(t,e,i,n){var s,a,r,o;switch(i){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":for(s=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)r=this.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return s;case"Q":for(s=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)r=this.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return s;case"A":s=0;var h=n[4],l=n[5],u=n[4]+l,c=Math.PI/180;if(Math.abs(h-u)<c&&(c=Math.abs(h-u)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],h,0),l<0)for(o=h-c;u<o;o-=c)r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;else for(o=h+c;o<u;o+=c)r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),s+=this.getLineLength(a.x,a.y,r.x,r.y),a=r;return r=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),s+=this.getLineLength(a.x,a.y,r.x,r.y)}return 0},this.dataArray=this.parsePathData(e)},D.Element.textPath.prototype=new D.Element.TextElementBase,D.Element.image=function(t){this.base=D.Element.RenderedElementBase,this.base(t);var e=this.getHrefAttribute().value;if(""!=e){var a=e.match(/\.svg$/);if(D.Images.push(this),this.loaded=!1,a)this.img=D.ajax(e),this.loaded=!0;else{this.img=c.createElement("img"),1==D.opts.useCORS&&(this.img.crossOrigin="Anonymous");var r=this;this.img.onload=function(){r.loaded=!0},this.img.onerror=function(){D.log('ERROR: image "'+e+'" not found'),r.loaded=!0},this.img.src=e}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),n=this.attribute("width").toPixels("x"),s=this.attribute("height").toPixels("y");0!=n&&0!=s&&(t.save(),a?t.drawSvg(this.img,e,i,n,s):(t.translate(e,i),D.AspectRatio(t,this.attribute("preserveAspectRatio").value,n,this.img.width,s,this.img.height,0,0),r.loaded&&(void 0===this.img.complete||this.img.complete)&&t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),e=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),n=this.attribute("height").toPixels("y");return new D.BoundingBox(t,e,t+i,e+n)}}},D.Element.image.prototype=new D.Element.RenderedElementBase,D.Element.g=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(t){for(var e=new D.BoundingBox,i=0;i<this.children.length;i++)e.addBoundingBox(this.children[i].getBoundingBox(t));return e}},D.Element.g.prototype=new D.Element.RenderedElementBase,D.Element.symbol=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.render=function(){}},D.Element.symbol.prototype=new D.Element.RenderedElementBase,D.ParseExternalUrl=function(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]},D.Element.style=function(t){this.base=D.Element.ElementBase,this.base(t);for(var e="",i=0;i<t.childNodes.length;i++)e+=t.childNodes[i].data;e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");var n=(e=D.compressSpaces(e)).split("}");for(i=0;i<n.length;i++)if(""!=D.trim(n[i]))for(var s=n[i].split("{"),a=s[0].split(","),r=s[1].split(";"),o=0;o<a.length;o++){var h=D.trim(a[o]);if(""!=h){for(var l=D.Styles[h]||{},u=0;u<r.length;u++){var c=r[u].indexOf(":"),f=r[u].substr(0,c),p=r[u].substr(c+1,r[u].length-c);null!=f&&null!=p&&(l[D.trim(f)]=new D.Property(D.trim(f),D.trim(p)))}if(D.Styles[h]=l,D.StylesSpecificity[h]=P(h),"@font-face"==h)for(var d=l["font-family"].value.replace(/"/g,""),m=l.src.value.split(","),y=0;y<m.length;y++)if(0<m[y].indexOf('format("svg")')){var v=D.ParseExternalUrl(m[y]);if(v)for(var g=D.parseXml(D.ajax(v)).getElementsByTagName("font"),x=0;x<g.length;x++){var b=D.CreateElement(g[x]);D.Definitions[d]=b}}}}},D.Element.style.prototype=new D.Element.ElementBase,D.Element.use=function(t){this.base=D.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").toPixels("y"))};var n=this.getHrefAttribute().getDefinition();this.path=function(t){null!=n&&n.path(t)},this.elementTransform=function(){if(null!=n&&n.style("transform",!1,!0).hasValue())return new D.Transform(n.style("transform",!1,!0).value)},this.getBoundingBox=function(t){if(null!=n)return n.getBoundingBox(t)},this.renderChildren=function(t){if(null!=n){var e=n;"symbol"==n.type&&((e=new D.Element.svg).type="svg",e.attributes.viewBox=new D.Property("viewBox",n.attribute("viewBox").value),e.attributes.preserveAspectRatio=new D.Property("preserveAspectRatio",n.attribute("preserveAspectRatio").value),e.attributes.overflow=new D.Property("overflow",n.attribute("overflow").value),e.children=n.children),"svg"==e.type&&(this.attribute("width").hasValue()&&(e.attributes.width=new D.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(e.attributes.height=new D.Property("height",this.attribute("height").value)));var i=e.parent;e.parent=null,e.render(t),e.parent=i}}},D.Element.use.prototype=new D.Element.RenderedElementBase,D.Element.mask=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),s=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==s&&0==a){for(var r=new D.BoundingBox,o=0;o<this.children.length;o++)r.addBoundingBox(this.children[o].getBoundingBox(t));i=Math.floor(r.x1),n=Math.floor(r.y1),s=Math.floor(r.width()),a=Math.floor(r.height())}var h=e.style("mask").value;e.style("mask").value="";var l=d(i+s,n+a),u=l.getContext("2d");D.SetDefaults(u),this.renderChildren(u),new D.Element.feColorMatrix({nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(u,0,0,i+s,n+a);var c=d(i+s,n+a),f=c.getContext("2d");D.SetDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=u.createPattern(l,"no-repeat"),f.fillRect(0,0,i+s,n+a),t.fillStyle=f.createPattern(c,"no-repeat"),t.fillRect(0,0,i+s,n+a),e.style("mask").value=h},this.render=function(){}},D.Element.mask.prototype=new D.Element.ElementBase,D.Element.clipPath=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t){var e="undefined"!=typeof CanvasRenderingContext2D,i=t.beginPath,n=t.closePath;e&&(CanvasRenderingContext2D.prototype.beginPath=function(){},CanvasRenderingContext2D.prototype.closePath=function(){}),i.call(t);for(var s=0;s<this.children.length;s++){var a=this.children[s];if(void 0!==a.path){var r=void 0!==a.elementTransform&&a.elementTransform();!r&&a.style("transform",!1,!0).hasValue()&&(r=new D.Transform(a.style("transform",!1,!0).value)),r&&r.apply(t),a.path(t),e&&(CanvasRenderingContext2D.prototype.closePath=n),r&&r.unapply(t)}}n.call(t),t.clip(),e&&(CanvasRenderingContext2D.prototype.beginPath=i,CanvasRenderingContext2D.prototype.closePath=n)},this.render=function(){}},D.Element.clipPath.prototype=new D.Element.ElementBase,D.Element.filter=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(t,e){var i=e.getBoundingBox(t),n=Math.floor(i.x1),s=Math.floor(i.y1),a=Math.floor(i.width()),r=Math.floor(i.height()),o=e.style("filter").value;e.style("filter").value="";for(var h=0,l=0,u=0;u<this.children.length;u++){var c=this.children[u].extraFilterDistance||0;h=Math.max(h,c),l=Math.max(l,c)}var f=d(a+2*h,r+2*l),p=f.getContext("2d");D.SetDefaults(p),p.translate(-n+h,-s+l),e.render(p);for(u=0;u<this.children.length;u++)"function"==typeof this.children[u].apply&&this.children[u].apply(p,0,0,a+2*h,r+2*l);t.drawImage(f,0,0,a+2*h,r+2*l,n-h,s-l,a+2*h,r+2*l),e.style("filter",!0).value=o},this.render=function(){}},D.Element.filter.prototype=new D.Element.ElementBase,D.Element.feDropShadow=function(t){this.base=D.Element.ElementBase,this.base(t),this.addStylesFromStyleDefinition(),this.apply=function(){}},D.Element.feDropShadow.prototype=new D.Element.ElementBase,D.Element.feMorphology=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(){}},D.Element.feMorphology.prototype=new D.Element.ElementBase,D.Element.feComposite=function(t){this.base=D.Element.ElementBase,this.base(t),this.apply=function(){}},D.Element.feComposite.prototype=new D.Element.ElementBase,D.Element.feColorMatrix=function(t){this.base=D.Element.ElementBase,this.base(t);var n=D.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var e=n[0];n=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=n[0]*Math.PI/180,i=function(t,e,i){return t+Math.cos(s)*e+Math.sin(s)*i};n=[i(.213,.787,-.213),i(.715,-.715,-.715),i(.072,-.072,.928),0,0,i(.213,-.213,.143),i(.715,.285,.14),i(.072,-.072,-.283),0,0,i(.213,-.213,-.787),i(.715,-.715,.715),i(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}function d(t,e,i,n,s,a){return t[i*n*4+4*e+a]}function m(t,e,i,n,s,a,r){t[i*n*4+4*e+a]=r}function y(t,e){var i=n[t];return i*(i<0?e-255:e)}var v=this.attribute("includeOpacity").hasValue();this.apply=function(t,e,i,n,s){var a=t.getImageData(0,0,n,s);for(i=0;i<s;i++)for(e=0;e<n;e++){var r=d(a.data,e,i,n,0,0),o=d(a.data,e,i,n,0,1),h=d(a.data,e,i,n,0,2),l=d(a.data,e,i,n,0,3),u=y(0,r)+y(1,o)+y(2,h)+y(3,l)+y(4,1),c=y(5,r)+y(6,o)+y(7,h)+y(8,l)+y(9,1),f=y(10,r)+y(11,o)+y(12,h)+y(13,l)+y(14,1),p=y(15,r)+y(16,o)+y(17,h)+y(18,l)+y(19,1);v&&(u=c=f=0,p*=l/255),m(a.data,e,i,n,0,0,u),m(a.data,e,i,n,0,1,c),m(a.data,e,i,n,0,2,f),m(a.data,e,i,n,0,3,p)}t.clearRect(0,0,n,s),t.putImageData(a,0,0)}},D.Element.feColorMatrix.prototype=new D.Element.ElementBase,D.Element.feGaussianBlur=function(t){this.base=D.Element.ElementBase,this.base(t),this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue()),this.extraFilterDistance=this.blurRadius,this.apply=function(t,e,i,n,s){v&&void 0!==v.canvasRGBA?(t.canvas.id=D.UniqueId(),t.canvas.style.display="none",c.body.appendChild(t.canvas),v.canvasRGBA(t.canvas,e,i,n,s,this.blurRadius),c.body.removeChild(t.canvas)):D.log("ERROR: StackBlur.js must be included for blur to work")}},D.Element.feGaussianBlur.prototype=new D.Element.ElementBase,D.Element.title=function(){},D.Element.title.prototype=new D.Element.ElementBase,D.Element.desc=function(){},D.Element.desc.prototype=new D.Element.ElementBase,D.Element.MISSING=function(t){D.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},D.Element.MISSING.prototype=new D.Element.ElementBase,D.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var i=null;return(i=void 0!==D.Element[e]?new D.Element[e](t):new D.Element.MISSING(t)).type=t.nodeName,i},D.load=function(t,e){D.loadXml(t,D.ajax(e))},D.loadXml=function(t,e){D.loadXmlDoc(t,D.parseXml(e))},D.loadXmlDoc=function(a,r){D.init(a);var i=function(t){for(var e=a.canvas;e;)t.x-=e.offsetLeft,t.y-=e.offsetTop,e=e.offsetParent;return l.scrollX&&(t.x+=l.scrollX),l.scrollY&&(t.y+=l.scrollY),t};1!=D.opts.ignoreMouse&&(a.canvas.onclick=function(t){var e=i(new D.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));D.Mouse.onclick(e.x,e.y)},a.canvas.onmousemove=function(t){var e=i(new D.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));D.Mouse.onmousemove(e.x,e.y)});var o=D.CreateElement(r.documentElement);o.root=!0,o.addStylesFromStyleDefinition();var h=!0,n=function(){D.ViewPort.Clear(),a.canvas.parentNode?D.ViewPort.SetCurrent(a.canvas.parentNode.clientWidth,a.canvas.parentNode.clientHeight):D.ViewPort.SetCurrent(800,600),1!=D.opts.ignoreDimensions&&(h||null==D.opts.scaleWidth&&null==D.opts.scaleHeight)&&(o.style("width").hasValue()&&(a.canvas.width=o.style("width").toPixels("x"),a.canvas.style&&(a.canvas.style.width=a.canvas.width+"px")),o.style("height").hasValue()&&(a.canvas.height=o.style("height").toPixels("y"),a.canvas.style&&(a.canvas.style.height=a.canvas.height+"px")));var t=a.canvas.clientWidth||a.canvas.width,e=a.canvas.clientHeight||a.canvas.height;if(1==D.opts.ignoreDimensions&&o.style("width").hasValue()&&o.style("height").hasValue()&&(t=o.style("width").toPixels("x"),e=o.style("height").toPixels("y")),D.ViewPort.SetCurrent(t,e),null!=D.opts.offsetX&&(o.attribute("x",!0).value=D.opts.offsetX),null!=D.opts.offsetY&&(o.attribute("y",!0).value=D.opts.offsetY),null!=D.opts.scaleWidth||null!=D.opts.scaleHeight){var i=null,n=null,s=D.ToNumberArray(o.attribute("viewBox").value);null!=D.opts.scaleWidth&&(o.attribute("width").hasValue()?i=o.attribute("width").toPixels("x")/D.opts.scaleWidth:isNaN(s[2])||(i=s[2]/D.opts.scaleWidth)),null!=D.opts.scaleHeight&&(o.attribute("height").hasValue()?n=o.attribute("height").toPixels("y")/D.opts.scaleHeight:isNaN(s[3])||(n=s[3]/D.opts.scaleHeight)),null==i&&(i=n),null==n&&(n=i),o.attribute("width",!0).value=D.opts.scaleWidth,o.attribute("height",!0).value=D.opts.scaleHeight,o.style("transform",!0,!0).value+=" scale("+1/i+","+1/n+")"}1!=D.opts.ignoreClear&&a.clearRect(0,0,t,e),o.render(a),h&&(h=!1,"function"==typeof D.opts.renderCallback&&D.opts.renderCallback(r))},s=!0;D.ImagesLoaded()&&(s=!1,n()),D.intervalID=setInterval(function(){var t=!1;if(s&&D.ImagesLoaded()&&(t=!(s=!1)),1!=D.opts.ignoreMouse&&(t=t||D.Mouse.hasEvents()),1!=D.opts.ignoreAnimation)for(var e=0;e<D.Animations.length;e++){var i=D.Animations[e].update(1e3/D.FRAMERATE);t=t||i}"function"==typeof D.opts.forceRedraw&&1==D.opts.forceRedraw()&&(t=!0),t&&(n(),D.Mouse.runEvents())},1e3/D.FRAMERATE)},D.stop=function(){D.intervalID&&clearInterval(D.intervalID)},D.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInPath&&e.isPointInPath(n.x,n.y)&&(this.eventElements[i]=t)}},this.checkBoundingBox=function(t,e){if(e)for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInBox(n.x,n.y)&&(this.eventElements[i]=t)}},this.runEvents=function(){D.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++)for(var e=this.events[t],i=this.eventElements[t];i;)e.run(i),i=i.parent;this.events=[],this.eventElements=[]}},D}"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,i,n,s,a){var r={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:i,scaleWidth:n,scaleHeight:s};for(var o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);p(this.canvas,t,r)}),p._build=m,t.exports=p}(t={exports:{}},t.exports),t.exports});
/** @license d3.js v3.5.12 | Copyright (c) 2010-2017 Mike Bostock [https://github.com/d3/d3] | BSD License [https://github.com/d3/d3/blob/master/LICENSE] */
!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function u(n){return!isNaN(n)}function i(n){return{left:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)<0?r=i+1:u=i}return r},right:function(t,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);u>r;){var i=r+u>>>1;n(t[i],e)>0?u=i:r=i+1}return r}}}function a(n){return n.length}function o(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function s(n){return(n+="")===xa||n[0]===ba?ba+n:n}function f(n){return(n+="")[0]===ba?n.slice(1):n}function h(n){return s(n)in this._}function g(n){return(n=s(n))in this._&&delete this._[n]}function p(){var n=[];for(var t in this._)n.push(f(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function m(){this._=Object.create(null)}function y(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=_a.length;r>e;++e){var u=_a[e]+t;if(u in n)return u}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,u=-1,i=r.length;++u<i;)(t=r[u].on)&&t.apply(this,arguments);return n}var e=[],r=new c;return t.on=function(t,u){var i,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,e=e.slice(0,i=e.indexOf(a)).concat(e.slice(i+1)),r.remove(t)),u&&e.push(r.set(t,{on:u})),n)},t}function S(){oa.event.preventDefault()}function k(){for(var n,t=oa.event;n=t.sourceEvent;)t=n;return t}function N(n){for(var t=new _,e=0,r=arguments.length;++e<r;)t[arguments[e]]=w(t);return t.of=function(e,r){return function(u){try{var i=u.sourceEvent=oa.event;u.target=n,oa.event=u,t[u.type].apply(e,r)}finally{oa.event=i}}},t}function E(n){return Sa(n,Aa),n}function A(n){return"function"==typeof n?n:function(){return ka(n,this)}}function C(n){return"function"==typeof n?n:function(){return Na(n,this)}}function z(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function i(){this.setAttributeNS(n.space,n.local,t)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=oa.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?o:a:n.local?i:u}function L(n){return n.trim().replace(/\s+/g," ")}function q(n){return new RegExp("(?:^|\\s+)"+oa.requote(n)+"(?:\\s+|$)","g")}function T(n){return(n+"").trim().split(/^|\s+/)}function R(n,t){function e(){for(var e=-1;++e<u;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<u;)n[e](this,r)}n=T(n).map(D);var u=n.length;return"function"==typeof t?r:e}function D(n){var t=q(n);return function(e,r){if(u=e.classList)return r?u.add(n):u.remove(n);var u=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(u)||e.setAttribute("class",L(u+" "+n))):e.setAttribute("class",L(u.replace(t," ")))}}function P(n,t,e){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,e)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?i:u}function j(n,t){function e(){delete this[n]}function r(){this[n]=t}function u(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?u:r}function U(n){function t(){var t=this.ownerDocument,e=this.namespaceURI;return e?t.createElementNS(e,n):t.createElement(n)}function e(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=oa.ns.qualify(n)).local?e:t}function F(){var n=this.parentNode;n&&n.removeChild(this)}function H(n){return{__data__:n}}function O(n){return function(){return Ea(this,n)}}function I(n){return arguments.length||(n=e),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function Y(n,t){for(var e=0,r=n.length;r>e;e++)for(var u,i=n[e],a=0,o=i.length;o>a;a++)(u=i[a])&&t(u,a,e);return n}function Z(n){return Sa(n,za),n}function V(n){var t,e;return function(r,u,i){var a,o=n[i].update,l=o.length;for(i!=e&&(e=i,t=0),u>=t&&(t=u+1);!(a=o[t])&&++t<l;);return a}}function X(n,t,e){function r(){var t=this[a];t&&(this.removeEventListener(n,t,t.$),delete this[a])}function u(){var u=l(t,ca(arguments));r.call(this),this.addEventListener(n,this[a]=u,u.$=e),u._=t}function i(){var t,e=new RegExp("^__on([^.]+)"+oa.requote(n)+"$");for(var r in this)if(t=r.match(e)){var u=this[r];this.removeEventListener(t[1],u,u.$),delete this[r]}}var a="__on"+n,o=n.indexOf("."),l=$;o>0&&(n=n.slice(0,o));var c=La.get(n);return c&&(n=c,l=B),o?t?u:r:t?b:i}function $(n,t){return function(e){var r=oa.event;oa.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{oa.event=r}}}function B(n,t){var e=$(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function W(e){var r=".dragsuppress-"+ ++Ta,u="click"+r,i=oa.select(t(e)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==qa&&(qa="onselectstart"in e?!1:x(e.style,"userSelect")),qa){var a=n(e).style,o=a[qa];a[qa]="none"}return function(n){if(i.on(r,null),qa&&(a[qa]=o),n){var t=function(){i.on(u,null)};i.on(u,function(){S(),t()},!0),setTimeout(t,0)}}}function J(n,e){e.changedTouches&&(e=e.changedTouches[0]);var r=n.ownerSVGElement||n;if(r.createSVGPoint){var u=r.createSVGPoint();if(0>Ra){var i=t(n);if(i.scrollX||i.scrollY){r=oa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=r[0][0].getScreenCTM();Ra=!(a.f||a.e),r.remove()}}return Ra?(u.x=e.pageX,u.y=e.pageY):(u.x=e.clientX,u.y=e.clientY),u=u.matrixTransform(n.getScreenCTM().inverse()),[u.x,u.y]}var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}function G(){return oa.event.changedTouches[0].identifier}function K(n){return n>0?1:0>n?-1:0}function Q(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function nn(n){return n>1?0:-1>n?ja:Math.acos(n)}function tn(n){return n>1?Ha:-1>n?-Ha:Math.asin(n)}function en(n){return((n=Math.exp(n))-1/n)/2}function rn(n){return((n=Math.exp(n))+1/n)/2}function un(n){return((n=Math.exp(2*n))-1)/(n+1)}function an(n){return(n=Math.sin(n/2))*n}function on(){}function ln(n,t,e){return this instanceof ln?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof ln?new ln(n.h,n.s,n.l):_n(""+n,wn,ln):new ln(n,t,e)}function cn(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?i+(a-i)*n/60:180>n?a:240>n?i+(a-i)*(240-n)/60:i}function u(n){return Math.round(255*r(n))}var i,a;return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,a=.5>=e?e*(1+t):e+t-e*t,i=2*e-a,new yn(u(n+120),u(n),u(n-120))}function sn(n,t,e){return this instanceof sn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof sn?new sn(n.h,n.c,n.l):n instanceof hn?pn(n.l,n.a,n.b):pn((n=Sn((n=oa.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new sn(n,t,e)}function fn(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new hn(e,Math.cos(n*=Oa)*t,Math.sin(n)*t)}function hn(n,t,e){return this instanceof hn?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof hn?new hn(n.l,n.a,n.b):n instanceof sn?fn(n.h,n.c,n.l):Sn((n=yn(n)).r,n.g,n.b):new hn(n,t,e)}function gn(n,t,e){var r=(n+16)/116,u=r+t/500,i=r-e/200;return u=vn(u)*Ka,r=vn(r)*Qa,i=vn(i)*no,new yn(mn(3.2404542*u-1.5371385*r-.4985314*i),mn(-.969266*u+1.8760108*r+.041556*i),mn(.0556434*u-.2040259*r+1.0572252*i))}function pn(n,t,e){return n>0?new sn(Math.atan2(e,t)*Ia,Math.sqrt(t*t+e*e),n):new sn(NaN,NaN,n)}function vn(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function dn(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function mn(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function yn(n,t,e){return this instanceof yn?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof yn?new yn(n.r,n.g,n.b):_n(""+n,yn,cn):new yn(n,t,e)}function Mn(n){return new yn(n>>16,n>>8&255,255&n)}function xn(n){return Mn(n)+""}function bn(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function _n(n,t,e){var r,u,i,a=0,o=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return t(Nn(u[0]),Nn(u[1]),Nn(u[2]))}return(i=ro.get(n))?t(i.r,i.g,i.b):(null==n||"#"!==n.charAt(0)||isNaN(i=parseInt(n.slice(1),16))||(4===n.length?(a=(3840&i)>>4,a=a>>4|a,o=240&i,o=o>>4|o,l=15&i,l=l<<4|l):7===n.length&&(a=(16711680&i)>>16,o=(65280&i)>>8,l=255&i)),t(a,o,l))}function wn(n,t,e){var r,u,i=Math.min(n/=255,t/=255,e/=255),a=Math.max(n,t,e),o=a-i,l=(a+i)/2;return o?(u=.5>l?o/(a+i):o/(2-a-i),r=n==a?(t-e)/o+(e>t?6:0):t==a?(e-n)/o+2:(n-t)/o+4,r*=60):(r=NaN,u=l>0&&1>l?0:r),new ln(r,u,l)}function Sn(n,t,e){n=kn(n),t=kn(t),e=kn(e);var r=dn((.4124564*n+.3575761*t+.1804375*e)/Ka),u=dn((.2126729*n+.7151522*t+.072175*e)/Qa),i=dn((.0193339*n+.119192*t+.9503041*e)/no);return hn(116*u-16,500*(r-u),200*(u-i))}function kn(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Nn(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function En(n){return"function"==typeof n?n:function(){return n}}function An(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Cn(t,e,n,r)}}function Cn(n,t,e,r){function u(){var n,t=l.status;if(!t&&Ln(l)||t>=200&&300>t||304===t){try{n=e.call(i,l)}catch(r){return void a.error.call(i,r)}a.load.call(i,n)}else a.error.call(i,l)}var i={},a=oa.dispatch("beforesend","progress","load","error"),o={},l=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(n)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=u:l.onreadystatechange=function(){l.readyState>3&&u()},l.onprogress=function(n){var t=oa.event;oa.event=n;try{a.progress.call(i,l)}finally{oa.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?o[n]:(null==t?delete o[n]:o[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(c=n,i):c},i.response=function(n){return e=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(ca(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),l.open(e,n,!0),null==t||"accept"in o||(o.accept=t+",*/*"),l.setRequestHeader)for(var s in o)l.setRequestHeader(s,o[s]);return null!=t&&l.overrideMimeType&&l.overrideMimeType(t),null!=c&&(l.responseType=c),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},oa.rebind(i,a,"on"),null==r?i:i.get(zn(r))}function zn(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function Ln(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}function qn(n,t,e){var r=arguments.length;2>r&&(t=0),3>r&&(e=Date.now());var u=e+t,i={c:n,t:u,n:null};return io?io.n=i:uo=i,io=i,ao||(oo=clearTimeout(oo),ao=1,lo(Tn)),i}function Tn(){var n=Rn(),t=Dn()-n;t>24?(isFinite(t)&&(clearTimeout(oo),oo=setTimeout(Tn,t)),ao=0):(ao=1,lo(Tn))}function Rn(){for(var n=Date.now(),t=uo;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Dn(){for(var n,t=uo,e=1/0;t;)t.c?(t.t<e&&(e=t.t),t=(n=t).n):t=n?n.n=t.n:uo=t.n;return io=n,e}function Pn(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function jn(n,t){var e=Math.pow(10,3*Ma(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function Un(n){var t=n.decimal,e=n.thousands,r=n.grouping,u=n.currency,i=r&&e?function(n,t){for(var u=n.length,i=[],a=0,o=r[0],l=0;u>0&&o>0&&(l+o+1>t&&(o=Math.max(1,t-l)),i.push(n.substring(u-=o,u+o)),!((l+=o+1)>t));)o=r[a=(a+1)%r.length];return i.reverse().join(e)}:y;return function(n){var e=so.exec(n),r=e[1]||" ",a=e[2]||">",o=e[3]||"-",l=e[4]||"",c=e[5],s=+e[6],f=e[7],h=e[8],g=e[9],p=1,v="",d="",m=!1,y=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),g){case"n":f=!0,g="g";break;case"%":p=100,d="%",g="f";break;case"p":p=100,d="%",g="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+g.toLowerCase());case"c":y=!1;case"d":m=!0,h=0;break;case"s":p=-1,g="r"}"$"===l&&(v=u[0],d=u[1]),"r"!=g||h||(g="g"),null!=h&&("g"==g?h=Math.max(1,Math.min(21,h)):("e"==g||"f"==g)&&(h=Math.max(0,Math.min(20,h)))),g=fo.get(g)||Fn;var M=c&&f;return function(n){var e=d;if(m&&n%1)return"";var u=0>n||0===n&&0>1/n?(n=-n,"-"):"-"===o?"":o;if(0>p){var l=oa.formatPrefix(n,h);n=l.scale(n),e=l.symbol+d}else n*=p;n=g(n,h);var x,b,_=n.lastIndexOf(".");if(0>_){var w=y?n.lastIndexOf("e"):-1;0>w?(x=n,b=""):(x=n.substring(0,w),b=n.substring(w))}else x=n.substring(0,_),b=t+n.substring(_+1);!c&&f&&(x=i(x,1/0));var S=v.length+x.length+b.length+(M?0:u.length),k=s>S?new Array(S=s-S+1).join(r):"";return M&&(x=i(k+x,k.length?s-b.length:1/0)),u+=v,n=x+b,("<"===a?u+n+k:">"===a?k+u+n:"^"===a?k.substring(0,S>>=1)+u+n+k.substring(S):u+(M?n:k+n))+e}}}function Fn(n){return n+""}function Hn(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function On(n,t,e){function r(t){var e=n(t),r=i(e,1);return r-t>t-e?e:r}function u(e){return t(e=n(new go(e-1)),1),e}function i(n,e){return t(n=new go(+n),e),n}function a(n,r,i){var a=u(n),o=[];if(i>1)for(;r>a;)e(a)%i||o.push(new Date(+a)),t(a,1);else for(;r>a;)o.push(new Date(+a)),t(a,1);return o}function o(n,t,e){try{go=Hn;var r=new Hn;return r._=n,a(r,t,e)}finally{go=Date}}n.floor=n,n.round=r,n.ceil=u,n.offset=i,n.range=a;var l=n.utc=In(n);return l.floor=l,l.round=In(r),l.ceil=In(u),l.offset=In(i),l.range=o,n}function In(n){return function(t,e){try{go=Hn;var r=new Hn;return r._=t,n(r,e)._}finally{go=Date}}}function Yn(n){function t(n){function t(t){for(var e,u,i,a=[],o=-1,l=0;++o<r;)37===n.charCodeAt(o)&&(a.push(n.slice(l,o)),null!=(u=vo[e=n.charAt(++o)])&&(e=n.charAt(++o)),(i=A[e])&&(e=i(t,null==u?"e"===e?" ":"0":u)),a.push(e),l=o+1);return a.push(n.slice(l,o)),a.join("")}var r=n.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},u=e(r,n,t,0);if(u!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&go!==Hn,a=new(i?Hn:go);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return n},t}function e(n,t,e,r){for(var u,i,a,o=0,l=t.length,c=e.length;l>o;){if(r>=c)return-1;if(u=t.charCodeAt(o++),37===u){if(a=t.charAt(o++),i=C[a in vo?t.charAt(o++):a],!i||(r=i(n,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(n,t,e){_.lastIndex=0;var r=_.exec(t.slice(e));return r?(n.w=w.get(r[0].toLowerCase()),e+r[0].length):-1}function u(n,t,e){x.lastIndex=0;var r=x.exec(t.slice(e));return r?(n.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function i(n,t,e){N.lastIndex=0;var r=N.exec(t.slice(e));return r?(n.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function a(n,t,e){S.lastIndex=0;var r=S.exec(t.slice(e));return r?(n.m=k.get(r[0].toLowerCase()),e+r[0].length):-1}function o(n,t,r){return e(n,A.c.toString(),t,r)}function l(n,t,r){return e(n,A.x.toString(),t,r)}function c(n,t,r){return e(n,A.X.toString(),t,r)}function s(n,t,e){var r=M.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}var f=n.dateTime,h=n.date,g=n.time,p=n.periods,v=n.days,d=n.shortDays,m=n.months,y=n.shortMonths;t.utc=function(n){function e(n){try{go=Hn;var t=new go;return t._=n,r(t)}finally{go=Date}}var r=t(n);return e.parse=function(n){try{go=Hn;var t=r.parse(n);return t&&t._}finally{go=Date}},e.toString=r.toString,e},t.multi=t.utc.multi=ct;var M=oa.map(),x=Vn(v),b=Xn(v),_=Vn(d),w=Xn(d),S=Vn(m),k=Xn(m),N=Vn(y),E=Xn(y);p.forEach(function(n,t){M.set(n.toLowerCase(),t)});var A={a:function(n){return d[n.getDay()]},A:function(n){return v[n.getDay()]},b:function(n){return y[n.getMonth()]},B:function(n){return m[n.getMonth()]},c:t(f),d:function(n,t){return Zn(n.getDate(),t,2)},e:function(n,t){return Zn(n.getDate(),t,2)},H:function(n,t){return Zn(n.getHours(),t,2)},I:function(n,t){return Zn(n.getHours()%12||12,t,2)},j:function(n,t){return Zn(1+ho.dayOfYear(n),t,3)},L:function(n,t){return Zn(n.getMilliseconds(),t,3)},m:function(n,t){return Zn(n.getMonth()+1,t,2)},M:function(n,t){return Zn(n.getMinutes(),t,2)},p:function(n){return p[+(n.getHours()>=12)]},S:function(n,t){return Zn(n.getSeconds(),t,2)},U:function(n,t){return Zn(ho.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Zn(ho.mondayOfYear(n),t,2)},x:t(h),X:t(g),y:function(n,t){return Zn(n.getFullYear()%100,t,2)},Y:function(n,t){return Zn(n.getFullYear()%1e4,t,4)},Z:ot,"%":function(){return"%"}},C={a:r,A:u,b:i,B:a,c:o,d:tt,e:tt,H:rt,I:rt,j:et,L:at,m:nt,M:ut,p:s,S:it,U:Bn,w:$n,W:Wn,x:l,X:c,y:Gn,Y:Jn,Z:Kn,"%":lt};return t}function Zn(n,t,e){var r=0>n?"-":"",u=(r?-n:n)+"",i=u.length;return r+(e>i?new Array(e-i+1).join(t)+u:u)}function Vn(n){return new RegExp("^(?:"+n.map(oa.requote).join("|")+")","i")}function Xn(n){for(var t=new c,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function $n(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function Bn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function Wn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function Jn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Gn(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.y=Qn(+r[0]),e+r[0].length):-1}function Kn(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function Qn(n){return n+(n>68?1900:2e3)}function nt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function tt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function et(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function rt(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function ut(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function it(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function at(n,t,e){mo.lastIndex=0;var r=mo.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function ot(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=Ma(t)/60|0,u=Ma(t)%60;return e+Zn(r,"0",2)+Zn(u,"0",2)}function lt(n,t,e){yo.lastIndex=0;var r=yo.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ct(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}function st(){}function ft(n,t,e){var r=e.s=n+t,u=r-n,i=r-u;e.t=n-i+(t-u)}function ht(n,t){n&&_o.hasOwnProperty(n.type)&&_o[n.type](n,t)}function gt(n,t,e){var r,u=-1,i=n.length-e;for(t.lineStart();++u<i;)r=n[u],t.point(r[0],r[1],r[2]);t.lineEnd()}function pt(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)gt(n[e],t,1);t.polygonEnd()}function vt(){function n(n,t){n*=Oa,t=t*Oa/2+ja/4;var e=n-r,a=e>=0?1:-1,o=a*e,l=Math.cos(t),c=Math.sin(t),s=i*c,f=u*l+s*Math.cos(o),h=s*a*Math.sin(o);So.add(Math.atan2(h,f)),r=n,u=l,i=c}var t,e,r,u,i;ko.point=function(a,o){ko.point=n,r=(t=a)*Oa,u=Math.cos(o=(e=o)*Oa/2+ja/4),i=Math.sin(o)},ko.lineEnd=function(){n(t,e)}}function dt(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function mt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function yt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Mt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function xt(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function bt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function _t(n){return[Math.atan2(n[1],n[0]),tn(n[2])]}function wt(n,t){return Ma(n[0]-t[0])<Da&&Ma(n[1]-t[1])<Da}function St(n,t){n*=Oa;var e=Math.cos(t*=Oa);kt(e*Math.cos(n),e*Math.sin(n),Math.sin(t))}function kt(n,t,e){++No,Ao+=(n-Ao)/No,Co+=(t-Co)/No,zo+=(e-zo)/No}function Nt(){function n(n,u){n*=Oa;var i=Math.cos(u*=Oa),a=i*Math.cos(n),o=i*Math.sin(n),l=Math.sin(u),c=Math.atan2(Math.sqrt((c=e*l-r*o)*c+(c=r*a-t*l)*c+(c=t*o-e*a)*c),t*a+e*o+r*l);Eo+=c,Lo+=c*(t+(t=a)),qo+=c*(e+(e=o)),To+=c*(r+(r=l)),kt(t,e,r)}var t,e,r;jo.point=function(u,i){u*=Oa;var a=Math.cos(i*=Oa);t=a*Math.cos(u),e=a*Math.sin(u),r=Math.sin(i),jo.point=n,kt(t,e,r)}}function Et(){jo.point=St}function At(){function n(n,t){n*=Oa;var e=Math.cos(t*=Oa),a=e*Math.cos(n),o=e*Math.sin(n),l=Math.sin(t),c=u*l-i*o,s=i*a-r*l,f=r*o-u*a,h=Math.sqrt(c*c+s*s+f*f),g=r*a+u*o+i*l,p=h&&-nn(g)/h,v=Math.atan2(h,g);Ro+=p*c,Do+=p*s,Po+=p*f,Eo+=v,Lo+=v*(r+(r=a)),qo+=v*(u+(u=o)),To+=v*(i+(i=l)),kt(r,u,i)}var t,e,r,u,i;jo.point=function(a,o){t=a,e=o,jo.point=n,a*=Oa;var l=Math.cos(o*=Oa);r=l*Math.cos(a),u=l*Math.sin(a),i=Math.sin(o),kt(r,u,i)},jo.lineEnd=function(){n(t,e),jo.lineEnd=Et,jo.point=St}}function Ct(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function zt(){return!0}function Lt(n,t,e,r,u){var i=[],a=[];if(n.forEach(function(n){if(!((t=n.length-1)<=0)){var t,e=n[0],r=n[t];if(wt(e,r)){u.lineStart();for(var o=0;t>o;++o)u.point((e=n[o])[0],e[1]);return void u.lineEnd()}var l=new Tt(e,n,null,!0),c=new Tt(e,null,l,!1);l.o=c,i.push(l),a.push(c),l=new Tt(r,n,null,!1),c=new Tt(r,null,l,!0),l.o=c,i.push(l),a.push(c)}}),a.sort(t),qt(i),qt(a),i.length){for(var o=0,l=e,c=a.length;c>o;++o)a[o].e=l=!l;for(var s,f,h=i[0];;){for(var g=h,p=!0;g.v;)if((g=g.n)===h)return;s=g.z,u.lineStart();do{if(g.v=g.o.v=!0,g.e){if(p)for(var o=0,c=s.length;c>o;++o)u.point((f=s[o])[0],f[1]);else r(g.x,g.n.x,1,u);g=g.n}else{if(p){s=g.p.z;for(var o=s.length-1;o>=0;--o)u.point((f=s[o])[0],f[1])}else r(g.x,g.p.x,-1,u);g=g.p}g=g.o,s=g.z,p=!p}while(!g.v);u.lineEnd()}}}function qt(n){if(t=n.length){for(var t,e,r=0,u=n[0];++r<t;)u.n=e=n[r],e.p=u,u=e;u.n=e=n[0],e.p=u}}function Tt(n,t,e,r){this.x=n,this.z=t,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Rt(n,t,e,r){return function(u,i){function a(t,e){var r=u(t,e);n(t=r[0],e=r[1])&&i.point(t,e)}function o(n,t){var e=u(n,t);d.point(e[0],e[1])}function l(){y.point=o,d.lineStart()}function c(){y.point=a,d.lineEnd()}function s(n,t){v.push([n,t]);var e=u(n,t);x.point(e[0],e[1])}function f(){x.lineStart(),v=[]}function h(){s(v[0][0],v[0][1]),x.lineEnd();var n,t=x.clean(),e=M.buffer(),r=e.length;if(v.pop(),p.push(v),v=null,r)if(1&t){n=e[0];var u,r=n.length-1,a=-1;if(r>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++a<r;)i.point((u=n[a])[0],u[1]);i.lineEnd()}}else r>1&&2&t&&e.push(e.pop().concat(e.shift())),g.push(e.filter(Dt))}var g,p,v,d=t(i),m=u.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:c,polygonStart:function(){y.point=s,y.lineStart=f,y.lineEnd=h,g=[],p=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=c,g=oa.merge(g);var n=Ot(m,p);g.length?(b||(i.polygonStart(),b=!0),Lt(g,jt,n,e,i)):n&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),g=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},M=Pt(),x=t(M),b=!1;return y}}function Dt(n){return n.length>1}function Pt(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:b,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function jt(n,t){return((n=n.x)[0]<0?n[1]-Ha-Da:Ha-n[1])-((t=t.x)[0]<0?t[1]-Ha-Da:Ha-t[1])}function Ut(n){var t,e=NaN,r=NaN,u=NaN;return{lineStart:function(){n.lineStart(),t=1},point:function(i,a){var o=i>0?ja:-ja,l=Ma(i-e);Ma(l-ja)<Da?(n.point(e,r=(r+a)/2>0?Ha:-Ha),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(o,r),n.point(i,r),t=0):u!==o&&l>=ja&&(Ma(e-u)<Da&&(e-=u*Da),Ma(i-o)<Da&&(i-=o*Da),r=Ft(e,r,i,a),n.point(u,r),n.lineEnd(),n.lineStart(),n.point(o,r),t=0),n.point(e=i,r=a),u=o},lineEnd:function(){n.lineEnd(),e=r=NaN},clean:function(){return 2-t}}}function Ft(n,t,e,r){var u,i,a=Math.sin(n-e);return Ma(a)>Da?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(t))*Math.sin(n))/(u*i*a)):(t+r)/2}function Ht(n,t,e,r){var u;if(null==n)u=e*Ha,r.point(-ja,u),r.point(0,u),r.point(ja,u),r.point(ja,0),r.point(ja,-u),r.point(0,-u),r.point(-ja,-u),r.point(-ja,0),r.point(-ja,u);else if(Ma(n[0]-t[0])>Da){var i=n[0]<t[0]?ja:-ja;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(t[0],t[1])}function Ot(n,t){var e=n[0],r=n[1],u=[Math.sin(e),-Math.cos(e),0],i=0,a=0;So.reset();for(var o=0,l=t.length;l>o;++o){var c=t[o],s=c.length;if(s)for(var f=c[0],h=f[0],g=f[1]/2+ja/4,p=Math.sin(g),v=Math.cos(g),d=1;;){d===s&&(d=0),n=c[d];var m=n[0],y=n[1]/2+ja/4,M=Math.sin(y),x=Math.cos(y),b=m-h,_=b>=0?1:-1,w=_*b,S=w>ja,k=p*M;if(So.add(Math.atan2(k*_*Math.sin(w),v*x+k*Math.cos(w))),i+=S?b+_*Ua:b,S^h>=e^m>=e){var N=yt(dt(f),dt(n));bt(N);var E=yt(u,N);bt(E);var A=(S^b>=0?-1:1)*tn(E[2]);(r>A||r===A&&(N[0]||N[1]))&&(a+=S^b>=0?1:-1)}if(!d++)break;h=m,p=M,v=x,f=n}}return(-Da>i||Da>i&&0>So)^1&a}function It(n){function t(n,t){return Math.cos(n)*Math.cos(t)>i}function e(n){var e,i,l,c,s;return{lineStart:function(){c=l=!1,s=1},point:function(f,h){var g,p=[f,h],v=t(f,h),d=a?v?0:u(f,h):v?u(f+(0>f?ja:-ja),h):0;if(!e&&(c=l=v)&&n.lineStart(),v!==l&&(g=r(e,p),(wt(e,g)||wt(p,g))&&(p[0]+=Da,p[1]+=Da,v=t(p[0],p[1]))),v!==l)s=0,v?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(o&&e&&a^v){var m;d&i||!(m=r(p,e,!0))||(s=0,a?(n.lineStart(),n.point(m[0][0],m[0][1]),n.point(m[1][0],m[1][1]),n.lineEnd()):(n.point(m[1][0],m[1][1]),n.lineEnd(),n.lineStart(),n.point(m[0][0],m[0][1])))}!v||e&&wt(e,p)||n.point(p[0],p[1]),e=p,l=v,i=d},lineEnd:function(){l&&n.lineEnd(),e=null},clean:function(){return s|(c&&l)<<1}}}function r(n,t,e){var r=dt(n),u=dt(t),a=[1,0,0],o=yt(r,u),l=mt(o,o),c=o[0],s=l-c*c;if(!s)return!e&&n;var f=i*l/s,h=-i*c/s,g=yt(a,o),p=xt(a,f),v=xt(o,h);Mt(p,v);var d=g,m=mt(p,d),y=mt(d,d),M=m*m-y*(mt(p,p)-1);if(!(0>M)){var x=Math.sqrt(M),b=xt(d,(-m-x)/y);if(Mt(b,p),b=_t(b),!e)return b;var _,w=n[0],S=t[0],k=n[1],N=t[1];w>S&&(_=w,w=S,S=_);var E=S-w,A=Ma(E-ja)<Da,C=A||Da>E;if(!A&&k>N&&(_=k,k=N,N=_),C?A?k+N>0^b[1]<(Ma(b[0]-w)<Da?k:N):k<=b[1]&&b[1]<=N:E>ja^(w<=b[0]&&b[0]<=S)){var z=xt(d,(-m+x)/y);return Mt(z,p),[b,_t(z)]}}}function u(t,e){var r=a?n:ja-n,u=0;return-r>t?u|=1:t>r&&(u|=2),-r>e?u|=4:e>r&&(u|=8),u}var i=Math.cos(n),a=i>0,o=Ma(i)>Da,l=ve(n,6*Oa);return Rt(t,e,l,a?[0,-n]:[-ja,n-ja])}function Yt(n,t,e,r){return function(u){var i,a=u.a,o=u.b,l=a.x,c=a.y,s=o.x,f=o.y,h=0,g=1,p=s-l,v=f-c;if(i=n-l,p||!(i>0)){if(i/=p,0>p){if(h>i)return;g>i&&(g=i)}else if(p>0){if(i>g)return;i>h&&(h=i)}if(i=e-l,p||!(0>i)){if(i/=p,0>p){if(i>g)return;i>h&&(h=i)}else if(p>0){if(h>i)return;g>i&&(g=i)}if(i=t-c,v||!(i>0)){if(i/=v,0>v){if(h>i)return;g>i&&(g=i)}else if(v>0){if(i>g)return;i>h&&(h=i)}if(i=r-c,v||!(0>i)){if(i/=v,0>v){if(i>g)return;i>h&&(h=i)}else if(v>0){if(h>i)return;g>i&&(g=i)}return h>0&&(u.a={x:l+h*p,y:c+h*v}),1>g&&(u.b={x:l+g*p,y:c+g*v}),u}}}}}}function Zt(n,t,e,r){function u(r,u){return Ma(r[0]-n)<Da?u>0?0:3:Ma(r[0]-e)<Da?u>0?2:1:Ma(r[1]-t)<Da?u>0?1:0:u>0?3:2}function i(n,t){return a(n.x,t.x)}function a(n,t){var e=u(n,1),r=u(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}return function(o){function l(n){for(var t=0,e=d.length,r=n[1],u=0;e>u;++u)for(var i,a=1,o=d[u],l=o.length,c=o[0];l>a;++a)i=o[a],c[1]<=r?i[1]>r&&Q(c,i,n)>0&&++t:i[1]<=r&&Q(c,i,n)<0&&--t,c=i;return 0!==t}function c(i,o,l,c){var s=0,f=0;if(null==i||(s=u(i,l))!==(f=u(o,l))||a(i,o)<0^l>0){do c.point(0===s||3===s?n:e,s>1?r:t);while((s=(s+l+4)%4)!==f)}else c.point(o[0],o[1])}function s(u,i){return u>=n&&e>=u&&i>=t&&r>=i}function f(n,t){s(n,t)&&o.point(n,t)}function h(){C.point=p,d&&d.push(m=[]),S=!0,w=!1,b=_=NaN}function g(){v&&(p(y,M),x&&w&&E.rejoin(),v.push(E.buffer())),C.point=f,w&&o.lineEnd()}function p(n,t){n=Math.max(-Fo,Math.min(Fo,n)),t=Math.max(-Fo,Math.min(Fo,t));var e=s(n,t);if(d&&m.push([n,t]),S)y=n,M=t,x=e,S=!1,e&&(o.lineStart(),o.point(n,t));else if(e&&w)o.point(n,t);else{var r={a:{x:b,y:_},b:{x:n,y:t}};A(r)?(w||(o.lineStart(),o.point(r.a.x,r.a.y)),o.point(r.b.x,r.b.y),e||o.lineEnd(),k=!1):e&&(o.lineStart(),o.point(n,t),k=!1)}b=n,_=t,w=e}var v,d,m,y,M,x,b,_,w,S,k,N=o,E=Pt(),A=Yt(n,t,e,r),C={point:f,lineStart:h,lineEnd:g,polygonStart:function(){o=E,v=[],d=[],k=!0},polygonEnd:function(){o=N,v=oa.merge(v);var t=l([n,r]),e=k&&t,u=v.length;(e||u)&&(o.polygonStart(),e&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),u&&Lt(v,i,t,c,o),o.polygonEnd()),v=d=m=null}};return C}}function Vt(n){var t=0,e=ja/3,r=oe(n),u=r(t,e);return u.parallels=function(n){return arguments.length?r(t=n[0]*ja/180,e=n[1]*ja/180):[t/ja*180,e/ja*180]},u}function Xt(n,t){function e(n,t){var e=Math.sqrt(i-2*u*Math.sin(t))/u;return[e*Math.sin(n*=u),a-e*Math.cos(n)]}var r=Math.sin(n),u=(r+Math.sin(t))/2,i=1+r*(2*u-r),a=Math.sqrt(i)/u;return e.invert=function(n,t){var e=a-t;return[Math.atan2(n,e)/u,tn((i-(n*n+e*e)*u*u)/(2*u))]},e}function $t(){function n(n,t){Oo+=u*n-r*t,r=n,u=t}var t,e,r,u;Xo.point=function(i,a){Xo.point=n,t=r=i,e=u=a},Xo.lineEnd=function(){n(t,e)}}function Bt(n,t){Io>n&&(Io=n),n>Zo&&(Zo=n),Yo>t&&(Yo=t),t>Vo&&(Vo=t)}function Wt(){function n(n,t){a.push("M",n,",",t,i)}function t(n,t){a.push("M",n,",",t),o.point=e}function e(n,t){a.push("L",n,",",t)}function r(){o.point=n}function u(){a.push("Z")}var i=Jt(4.5),a=[],o={point:n,lineStart:function(){o.point=t},lineEnd:r,polygonStart:function(){o.lineEnd=u},polygonEnd:function(){o.lineEnd=r,o.point=n},pointRadius:function(n){return i=Jt(n),o},result:function(){if(a.length){var n=a.join("");return a=[],n}}};return o}function Jt(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Gt(n,t){Ao+=n,Co+=t,++zo}function Kt(){function n(n,r){var u=n-t,i=r-e,a=Math.sqrt(u*u+i*i);Lo+=a*(t+n)/2,qo+=a*(e+r)/2,To+=a,Gt(t=n,e=r)}var t,e;Bo.point=function(r,u){Bo.point=n,Gt(t=r,e=u)}}function Qt(){Bo.point=Gt}function ne(){function n(n,t){var e=n-r,i=t-u,a=Math.sqrt(e*e+i*i);Lo+=a*(r+n)/2,qo+=a*(u+t)/2,To+=a,a=u*n-r*t,Ro+=a*(r+n),Do+=a*(u+t),Po+=3*a,Gt(r=n,u=t)}var t,e,r,u;Bo.point=function(i,a){Bo.point=n,Gt(t=r=i,e=u=a)},Bo.lineEnd=function(){n(t,e)}}function te(n){function t(t,e){n.moveTo(t+a,e),n.arc(t,e,a,0,Ua)}function e(t,e){n.moveTo(t,e),o.point=r}function r(t,e){n.lineTo(t,e)}function u(){o.point=t}function i(){n.closePath()}var a=4.5,o={point:t,lineStart:function(){o.point=e},lineEnd:u,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=u,o.point=t},pointRadius:function(n){return a=n,o},result:b};return o}function ee(n){function t(n){return(o?r:e)(n)}function e(t){return ie(t,function(e,r){e=n(e,r),t.point(e[0],e[1])})}function r(t){function e(e,r){e=n(e,r),t.point(e[0],e[1])}function r(){M=NaN,S.point=i,t.lineStart()}function i(e,r){var i=dt([e,r]),a=n(e,r);u(M,x,y,b,_,w,M=a[0],x=a[1],y=e,b=i[0],_=i[1],w=i[2],o,t),t.point(M,x)}function a(){S.point=e,t.lineEnd()}function l(){r(),S.point=c,S.lineEnd=s}function c(n,t){
i(f=n,h=t),g=M,p=x,v=b,d=_,m=w,S.point=i}function s(){u(M,x,y,b,_,w,g,p,f,v,d,m,o,t),S.lineEnd=a,a()}var f,h,g,p,v,d,m,y,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function u(t,e,r,o,l,c,s,f,h,g,p,v,d,m){var y=s-t,M=f-e,x=y*y+M*M;if(x>4*i&&d--){var b=o+g,_=l+p,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=Ma(Ma(w)-1)<Da||Ma(r-h)<Da?(r+h)/2:Math.atan2(_,b),E=n(N,k),A=E[0],C=E[1],z=A-t,L=C-e,q=M*z-y*L;(q*q/x>i||Ma((y*z+M*L)/x-.5)>.3||a>o*g+l*p+c*v)&&(u(t,e,r,o,l,c,A,C,N,b/=S,_/=S,w,d,m),m.point(A,C),u(A,C,N,b,_,w,s,f,h,g,p,v,d,m))}}var i=.5,a=Math.cos(30*Oa),o=16;return t.precision=function(n){return arguments.length?(o=(i=n*n)>0&&16,t):Math.sqrt(i)},t}function re(n){var t=ee(function(t,e){return n([t*Ia,e*Ia])});return function(n){return le(t(n))}}function ue(n){this.stream=n}function ie(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function ae(n){return oe(function(){return n})()}function oe(n){function t(n){return n=o(n[0]*Oa,n[1]*Oa),[n[0]*h+l,c-n[1]*h]}function e(n){return n=o.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Ia,n[1]*Ia]}function r(){o=Ct(a=fe(m,M,x),i);var n=i(v,d);return l=g-n[0]*h,c=p+n[1]*h,u()}function u(){return s&&(s.valid=!1,s=null),t}var i,a,o,l,c,s,f=ee(function(n,t){return n=i(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,g=480,p=250,v=0,d=0,m=0,M=0,x=0,b=Uo,_=y,w=null,S=null;return t.stream=function(n){return s&&(s.valid=!1),s=le(b(a,f(_(n)))),s.valid=!0,s},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Uo):It((w=+n)*Oa),u()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):y,u()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(g=+n[0],p=+n[1],r()):[g,p]},t.center=function(n){return arguments.length?(v=n[0]%360*Oa,d=n[1]%360*Oa,r()):[v*Ia,d*Ia]},t.rotate=function(n){return arguments.length?(m=n[0]%360*Oa,M=n[1]%360*Oa,x=n.length>2?n[2]%360*Oa:0,r()):[m*Ia,M*Ia,x*Ia]},oa.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function le(n){return ie(n,function(t,e){n.point(t*Oa,e*Oa)})}function ce(n,t){return[n,t]}function se(n,t){return[n>ja?n-Ua:-ja>n?n+Ua:n,t]}function fe(n,t,e){return n?t||e?Ct(ge(n),pe(t,e)):ge(n):t||e?pe(t,e):se}function he(n){return function(t,e){return t+=n,[t>ja?t-Ua:-ja>t?t+Ua:t,e]}}function ge(n){var t=he(n);return t.invert=he(-n),t}function pe(n,t){function e(n,t){var e=Math.cos(t),o=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),s=c*r+o*u;return[Math.atan2(l*i-s*a,o*r-c*u),tn(s*i+l*a)]}var r=Math.cos(n),u=Math.sin(n),i=Math.cos(t),a=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),o=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),s=c*i-l*a;return[Math.atan2(l*i+c*a,o*r+s*u),tn(s*r-o*u)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(u,i,a,o){var l=a*t;null!=u?(u=de(e,u),i=de(e,i),(a>0?i>u:u>i)&&(u+=a*Ua)):(u=n+a*Ua,i=n-.5*l);for(var c,s=u;a>0?s>i:i>s;s-=l)o.point((c=_t([e,-r*Math.cos(s),-r*Math.sin(s)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Da)%(2*Math.PI)}function me(n,t,e){var r=oa.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function ye(n,t,e){var r=oa.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var u=Math.cos(t),i=Math.sin(t),a=Math.cos(r),o=Math.sin(r),l=u*Math.cos(n),c=u*Math.sin(n),s=a*Math.cos(e),f=a*Math.sin(e),h=2*Math.asin(Math.sqrt(an(r-t)+u*a*an(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*l+t*s,u=e*c+t*f,a=e*i+t*o;return[Math.atan2(u,r)*Ia,Math.atan2(a,Math.sqrt(r*r+u*u))*Ia]}:function(){return[n*Ia,t*Ia]};return p.distance=h,p}function _e(){function n(n,u){var i=Math.sin(u*=Oa),a=Math.cos(u),o=Ma((n*=Oa)-t),l=Math.cos(o);Wo+=Math.atan2(Math.sqrt((o=a*Math.sin(o))*o+(o=r*i-e*a*l)*o),e*i+r*a*l),t=n,e=i,r=a}var t,e,r;Jo.point=function(u,i){t=u*Oa,e=Math.sin(i*=Oa),r=Math.cos(i),Jo.point=n},Jo.lineEnd=function(){Jo.point=Jo.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),u=Math.cos(e),i=n(r*u);return[i*u*Math.sin(t),i*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),u=t(r),i=Math.sin(u),a=Math.cos(u);return[Math.atan2(n*i,r*a),Math.asin(r&&e*i/r)]},e}function Se(n,t){function e(n,t){a>0?-Ha+Da>t&&(t=-Ha+Da):t>Ha-Da&&(t=Ha-Da);var e=a/Math.pow(u(t),i);return[e*Math.sin(i*n),a-e*Math.cos(i*n)]}var r=Math.cos(n),u=function(n){return Math.tan(ja/4+n/2)},i=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(u(t)/u(n)),a=r*Math.pow(u(n),i)/i;return i?(e.invert=function(n,t){var e=a-t,r=K(i)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/i,2*Math.atan(Math.pow(a/r,1/i))-Ha]},e):Ne}function ke(n,t){function e(n,t){var e=i-t;return[e*Math.sin(u*n),i-e*Math.cos(u*n)]}var r=Math.cos(n),u=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),i=r/u+n;return Ma(u)<Da?ce:(e.invert=function(n,t){var e=i-t;return[Math.atan2(n,e)/u,i-K(u)*Math.sqrt(n*n+e*e)]},e)}function Ne(n,t){return[n,Math.log(Math.tan(ja/4+t/2))]}function Ee(n){var t,e=ae(n),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var n=r.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.translate=function(){var n=u.apply(e,arguments);return n===e?t?e.clipExtent(null):e:n},e.clipExtent=function(n){var a=i.apply(e,arguments);if(a===e){if(t=null==n){var o=ja*r(),l=u();i([[l[0]-o,l[1]-o],[l[0]+o,l[1]+o]])}}else t&&(a=null);return a},e.clipExtent(null)}function Ae(n,t){return[Math.log(Math.tan(ja/4+t/2)),-n]}function Ce(n){return n[0]}function ze(n){return n[1]}function Le(n){for(var t=n.length,e=[0,1],r=2,u=2;t>u;u++){for(;r>1&&Q(n[e[r-2]],n[e[r-1]],n[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function qe(n,t){return n[0]-t[0]||n[1]-t[1]}function Te(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function Re(n,t,e,r){var u=n[0],i=e[0],a=t[0]-u,o=r[0]-i,l=n[1],c=e[1],s=t[1]-l,f=r[1]-c,h=(o*(l-c)-f*(u-i))/(f*a-o*s);return[u+h*a,l+h*s]}function De(n){var t=n[0],e=n[n.length-1];return!(t[0]-e[0]||t[1]-e[1])}function Pe(){rr(this),this.edge=this.site=this.circle=null}function je(n){var t=ll.pop()||new Pe;return t.site=n,t}function Ue(n){Be(n),il.remove(n),ll.push(n),rr(n)}function Fe(n){var t=n.circle,e=t.x,r=t.cy,u={x:e,y:r},i=n.P,a=n.N,o=[n];Ue(n);for(var l=i;l.circle&&Ma(e-l.circle.x)<Da&&Ma(r-l.circle.cy)<Da;)i=l.P,o.unshift(l),Ue(l),l=i;o.unshift(l),Be(l);for(var c=a;c.circle&&Ma(e-c.circle.x)<Da&&Ma(r-c.circle.cy)<Da;)a=c.N,o.push(c),Ue(c),c=a;o.push(c),Be(c);var s,f=o.length;for(s=1;f>s;++s)c=o[s],l=o[s-1],nr(c.edge,l.site,c.site,u);l=o[0],c=o[f-1],c.edge=Ke(l.site,c.site,null,u),$e(l),$e(c)}function He(n){for(var t,e,r,u,i=n.x,a=n.y,o=il._;o;)if(r=Oe(o,a)-i,r>Da)o=o.L;else{if(u=i-Ie(o,a),!(u>Da)){r>-Da?(t=o.P,e=o):u>-Da?(t=o,e=o.N):t=e=o;break}if(!o.R){t=o;break}o=o.R}var l=je(n);if(il.insert(t,l),t||e){if(t===e)return Be(t),e=je(t.site),il.insert(l,e),l.edge=e.edge=Ke(t.site,l.site),$e(t),void $e(e);if(!e)return void(l.edge=Ke(t.site,l.site));Be(t),Be(e);var c=t.site,s=c.x,f=c.y,h=n.x-s,g=n.y-f,p=e.site,v=p.x-s,d=p.y-f,m=2*(h*d-g*v),y=h*h+g*g,M=v*v+d*d,x={x:(d*y-g*M)/m+s,y:(h*M-v*y)/m+f};nr(e.edge,c,p,x),l.edge=Ke(c,n,null,x),e.edge=Ke(n,p,null,x),$e(t),$e(e)}}function Oe(n,t){var e=n.site,r=e.x,u=e.y,i=u-t;if(!i)return r;var a=n.P;if(!a)return-(1/0);e=a.site;var o=e.x,l=e.y,c=l-t;if(!c)return o;var s=o-r,f=1/i-1/c,h=s/c;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*c)-l+c/2+u-i/2)))/f+r:(r+o)/2}function Ie(n,t){var e=n.N;if(e)return Oe(e,t);var r=n.site;return r.y===t?r.x:1/0}function Ye(n){this.site=n,this.edges=[]}function Ze(n){for(var t,e,r,u,i,a,o,l,c,s,f=n[0][0],h=n[1][0],g=n[0][1],p=n[1][1],v=ul,d=v.length;d--;)if(i=v[d],i&&i.prepare())for(o=i.edges,l=o.length,a=0;l>a;)s=o[a].end(),r=s.x,u=s.y,c=o[++a%l].start(),t=c.x,e=c.y,(Ma(r-t)>Da||Ma(u-e)>Da)&&(o.splice(a,0,new tr(Qe(i.site,s,Ma(r-f)<Da&&p-u>Da?{x:f,y:Ma(t-f)<Da?e:p}:Ma(u-p)<Da&&h-r>Da?{x:Ma(e-p)<Da?t:h,y:p}:Ma(r-h)<Da&&u-g>Da?{x:h,y:Ma(t-h)<Da?e:g}:Ma(u-g)<Da&&r-f>Da?{x:Ma(e-g)<Da?t:f,y:g}:null),i.site,null)),++l)}function Ve(n,t){return t.angle-n.angle}function Xe(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function $e(n){var t=n.P,e=n.N;if(t&&e){var r=t.site,u=n.site,i=e.site;if(r!==i){var a=u.x,o=u.y,l=r.x-a,c=r.y-o,s=i.x-a,f=i.y-o,h=2*(l*f-c*s);if(!(h>=-Pa)){var g=l*l+c*c,p=s*s+f*f,v=(f*g-c*p)/h,d=(l*p-s*g)/h,f=d+o,m=cl.pop()||new Xe;m.arc=n,m.site=u,m.x=v+a,m.y=f+Math.sqrt(v*v+d*d),m.cy=f,n.circle=m;for(var y=null,M=ol._;M;)if(m.y<M.y||m.y===M.y&&m.x<=M.x){if(!M.L){y=M.P;break}M=M.L}else{if(!M.R){y=M;break}M=M.R}ol.insert(y,m),y||(al=m)}}}}function Be(n){var t=n.circle;t&&(t.P||(al=t.N),ol.remove(t),cl.push(t),rr(t),n.circle=null)}function We(n){for(var t,e=rl,r=Yt(n[0][0],n[0][1],n[1][0],n[1][1]),u=e.length;u--;)t=e[u],(!Je(t,n)||!r(t)||Ma(t.a.x-t.b.x)<Da&&Ma(t.a.y-t.b.y)<Da)&&(t.a=t.b=null,e.splice(u,1))}function Je(n,t){var e=n.b;if(e)return!0;var r,u,i=n.a,a=t[0][0],o=t[1][0],l=t[0][1],c=t[1][1],s=n.l,f=n.r,h=s.x,g=s.y,p=f.x,v=f.y,d=(h+p)/2,m=(g+v)/2;if(v===g){if(a>d||d>=o)return;if(h>p){if(i){if(i.y>=c)return}else i={x:d,y:l};e={x:d,y:c}}else{if(i){if(i.y<l)return}else i={x:d,y:c};e={x:d,y:l}}}else if(r=(h-p)/(v-g),u=m-r*d,-1>r||r>1)if(h>p){if(i){if(i.y>=c)return}else i={x:(l-u)/r,y:l};e={x:(c-u)/r,y:c}}else{if(i){if(i.y<l)return}else i={x:(c-u)/r,y:c};e={x:(l-u)/r,y:l}}else if(v>g){if(i){if(i.x>=o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}else{if(i){if(i.x<a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}return n.a=i,n.b=e,!0}function Ge(n,t){this.l=n,this.r=t,this.a=this.b=null}function Ke(n,t,e,r){var u=new Ge(n,t);return rl.push(u),e&&nr(u,n,t,e),r&&nr(u,t,n,r),ul[n.i].edges.push(new tr(u,n,t)),ul[t.i].edges.push(new tr(u,t,n)),u}function Qe(n,t,e){var r=new Ge(n,null);return r.a=t,r.b=e,rl.push(r),r}function nr(n,t,e,r){n.a||n.b?n.l===e?n.b=r:n.a=r:(n.a=r,n.l=t,n.r=e)}function tr(n,t,e){var r=n.a,u=n.b;this.edge=n,this.site=t,this.angle=e?Math.atan2(e.y-t.y,e.x-t.x):n.l===t?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function er(){this._=null}function rr(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function ur(n,t){var e=t,r=t.R,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ir(n,t){var e=t,r=t.L,u=e.U;u?u.L===e?u.L=r:u.R=r:n._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ar(n){for(;n.L;)n=n.L;return n}function or(n,t){var e,r,u,i=n.sort(lr).pop();for(rl=[],ul=new Array(n.length),il=new er,ol=new er;;)if(u=al,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))(i.x!==e||i.y!==r)&&(ul[i.i]=new Ye(i),He(i),e=i.x,r=i.y),i=n.pop();else{if(!u)break;Fe(u.arc)}t&&(We(t),Ze(t));var a={cells:ul,edges:rl};return il=ol=rl=ul=null,a}function lr(n,t){return t.y-n.y||t.x-n.x}function cr(n,t,e){return(n.x-e.x)*(t.y-n.y)-(n.x-t.x)*(e.y-n.y)}function sr(n){return n.x}function fr(n){return n.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(n,t,e,r,u,i){if(!n(t,e,r,u,i)){var a=.5*(e+u),o=.5*(r+i),l=t.nodes;l[0]&&gr(n,l[0],e,r,a,o),l[1]&&gr(n,l[1],a,r,u,o),l[2]&&gr(n,l[2],e,o,a,i),l[3]&&gr(n,l[3],a,o,u,i)}}function pr(n,t,e,r,u,i,a){var o,l=1/0;return function c(n,s,f,h,g){if(!(s>i||f>a||r>h||u>g)){if(p=n.point){var p,v=t-n.x,d=e-n.y,m=v*v+d*d;if(l>m){var y=Math.sqrt(l=m);r=t-y,u=e-y,i=t+y,a=e+y,o=p}}for(var M=n.nodes,x=.5*(s+h),b=.5*(f+g),_=t>=x,w=e>=b,S=w<<1|_,k=S+4;k>S;++S)if(n=M[3&S])switch(3&S){case 0:c(n,s,f,x,b);break;case 1:c(n,x,f,h,b);break;case 2:c(n,s,b,x,g);break;case 3:c(n,x,b,h,g)}}}(n,r,u,i,a),o}function vr(n,t){n=oa.rgb(n),t=oa.rgb(t);var e=n.r,r=n.g,u=n.b,i=t.r-e,a=t.g-r,o=t.b-u;return function(n){return"#"+bn(Math.round(e+i*n))+bn(Math.round(r+a*n))+bn(Math.round(u+o*n))}}function dr(n,t){var e,r={},u={};for(e in n)e in t?r[e]=Mr(n[e],t[e]):u[e]=n[e];for(e in t)e in n||(u[e]=t[e]);return function(n){for(e in r)u[e]=r[e](n);return u}}function mr(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function yr(n,t){var e,r,u,i=fl.lastIndex=hl.lastIndex=0,a=-1,o=[],l=[];for(n+="",t+="";(e=fl.exec(n))&&(r=hl.exec(t));)(u=r.index)>i&&(u=t.slice(i,u),o[a]?o[a]+=u:o[++a]=u),(e=e[0])===(r=r[0])?o[a]?o[a]+=r:o[++a]=r:(o[++a]=null,l.push({i:a,x:mr(e,r)})),i=hl.lastIndex;return i<t.length&&(u=t.slice(i),o[a]?o[a]+=u:o[++a]=u),o.length<2?l[0]?(t=l[0].x,function(n){return t(n)+""}):function(){return t}:(t=l.length,function(n){for(var e,r=0;t>r;++r)o[(e=l[r]).i]=e.x(n);return o.join("")})}function Mr(n,t){for(var e,r=oa.interpolators.length;--r>=0&&!(e=oa.interpolators[r](n,t)););return e}function xr(n,t){var e,r=[],u=[],i=n.length,a=t.length,o=Math.min(n.length,t.length);for(e=0;o>e;++e)r.push(Mr(n[e],t[e]));for(;i>e;++e)u[e]=n[e];for(;a>e;++e)u[e]=t[e];return function(n){for(e=0;o>e;++e)u[e]=r[e](n);return u}}function br(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function _r(n){return function(t){return 1-n(1-t)}}function wr(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Sr(n){return n*n}function kr(n){return n*n*n}function Nr(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function Er(n){return function(t){return Math.pow(t,n)}}function Ar(n){return 1-Math.cos(n*Ha)}function Cr(n){return Math.pow(2,10*(n-1))}function zr(n){return 1-Math.sqrt(1-n*n)}function Lr(n,t){var e;return arguments.length<2&&(t=.45),arguments.length?e=t/Ua*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,-10*r)*Math.sin((r-e)*Ua/t)}}function qr(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function Tr(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function Rr(n,t){n=oa.hcl(n),t=oa.hcl(t);var e=n.h,r=n.c,u=n.l,i=t.h-e,a=t.c-r,o=t.l-u;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return fn(e+i*n,r+a*n,u+o*n)+""}}function Dr(n,t){n=oa.hsl(n),t=oa.hsl(t);var e=n.h,r=n.s,u=n.l,i=t.h-e,a=t.s-r,o=t.l-u;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,e=isNaN(e)?t.h:e):i>180?i-=360:-180>i&&(i+=360),function(n){return cn(e+i*n,r+a*n,u+o*n)+""}}function Pr(n,t){n=oa.lab(n),t=oa.lab(t);var e=n.l,r=n.a,u=n.b,i=t.l-e,a=t.a-r,o=t.b-u;return function(n){return gn(e+i*n,r+a*n,u+o*n)+""}}function jr(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function Ur(n){var t=[n.a,n.b],e=[n.c,n.d],r=Hr(t),u=Fr(t,e),i=Hr(Or(e,t,-u))||0;t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*Ia,this.translate=[n.e,n.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*Ia:0}function Fr(n,t){return n[0]*t[0]+n[1]*t[1]}function Hr(n){var t=Math.sqrt(Fr(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Or(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ir(n){return n.length?n.pop()+",":""}function Yr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var u=e.push("translate(",null,",",null,")");r.push({i:u-4,x:mr(n[0],t[0])},{i:u-2,x:mr(n[1],t[1])})}else(t[0]||t[1])&&e.push("translate("+t+")")}function Zr(n,t,e,r){n!==t?(n-t>180?t+=360:t-n>180&&(n+=360),r.push({i:e.push(Ir(e)+"rotate(",null,")")-2,x:mr(n,t)})):t&&e.push(Ir(e)+"rotate("+t+")")}function Vr(n,t,e,r){n!==t?r.push({i:e.push(Ir(e)+"skewX(",null,")")-2,x:mr(n,t)}):t&&e.push(Ir(e)+"skewX("+t+")")}function Xr(n,t,e,r){if(n[0]!==t[0]||n[1]!==t[1]){var u=e.push(Ir(e)+"scale(",null,",",null,")");r.push({i:u-4,x:mr(n[0],t[0])},{i:u-2,x:mr(n[1],t[1])})}else(1!==t[0]||1!==t[1])&&e.push(Ir(e)+"scale("+t+")")}function $r(n,t){var e=[],r=[];return n=oa.transform(n),t=oa.transform(t),Yr(n.translate,t.translate,e,r),Zr(n.rotate,t.rotate,e,r),Vr(n.skew,t.skew,e,r),Xr(n.scale,t.scale,e,r),n=t=null,function(n){for(var t,u=-1,i=r.length;++u<i;)e[(t=r[u]).i]=t.x(n);return e.join("")}}function Br(n,t){return t=(t-=n=+n)||1/t,function(e){return(e-n)/t}}function Wr(n,t){return t=(t-=n=+n)||1/t,function(e){return Math.max(0,Math.min(1,(e-n)/t))}}function Jr(n){for(var t=n.source,e=n.target,r=Kr(t,e),u=[t];t!==r;)t=t.parent,u.push(t);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function Gr(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function Kr(n,t){if(n===t)return n;for(var e=Gr(n),r=Gr(t),u=e.pop(),i=r.pop(),a=null;u===i;)a=u,u=e.pop(),i=r.pop();return a}function Qr(n){n.fixed|=2}function nu(n){n.fixed&=-7}function tu(n){n.fixed|=4,n.px=n.x,n.py=n.y}function eu(n){n.fixed&=-5}function ru(n,t,e){var r=0,u=0;if(n.charge=0,!n.leaf)for(var i,a=n.nodes,o=a.length,l=-1;++l<o;)i=a[l],null!=i&&(ru(i,t,e),n.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var c=t*e[n.point.index];n.charge+=n.pointCharge=c,r+=c*n.point.x,u+=c*n.point.y}n.cx=r/n.charge,n.cy=u/n.charge}function uu(n,t){return oa.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=su,n}function iu(n,t){for(var e=[n];null!=(n=e.pop());)if(t(n),(u=n.children)&&(r=u.length))for(var r,u;--r>=0;)e.push(u[r])}function au(n,t){for(var e=[n],r=[];null!=(n=e.pop());)if(r.push(n),(i=n.children)&&(u=i.length))for(var u,i,a=-1;++a<u;)e.push(i[a]);for(;null!=(n=r.pop());)t(n)}function ou(n){return n.children}function lu(n){return n.value}function cu(n,t){return t.value-n.value}function su(n){return oa.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function fu(n){return n.x}function hu(n){return n.y}function gu(n,t,e){n.y0=t,n.y=e}function pu(n){return oa.range(n.length)}function vu(n){for(var t=-1,e=n[0].length,r=[];++t<e;)r[t]=0;return r}function du(n){for(var t,e=1,r=0,u=n[0][1],i=n.length;i>e;++e)(t=n[e][1])>u&&(r=e,u=t);return r}function mu(n){return n.reduce(yu,0)}function yu(n,t){return n+t[1]}function Mu(n,t){return xu(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function xu(n,t){for(var e=-1,r=+n[0],u=(n[1]-r)/t,i=[];++e<=t;)i[e]=u*e+r;return i}function bu(n){return[oa.min(n),oa.max(n)]}function _u(n,t){return n.value-t.value}function wu(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Su(n,t){n._pack_next=t,t._pack_prev=n}function ku(n,t){var e=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return.999*u*u>e*e+r*r}function Nu(n){function t(n){s=Math.min(n.x-n.r,s),f=Math.max(n.x+n.r,f),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(c=e.length)){var e,r,u,i,a,o,l,c,s=1/0,f=-(1/0),h=1/0,g=-(1/0);if(e.forEach(Eu),r=e[0],r.x=-r.r,r.y=0,t(r),c>1&&(u=e[1],u.x=u.r,u.y=0,t(u),c>2))for(i=e[2],zu(r,u,i),t(i),wu(r,i),r._pack_prev=i,wu(i,u),u=r._pack_next,a=3;c>a;a++){zu(r,u,i=e[a]);var p=0,v=1,d=1;for(o=u._pack_next;o!==u;o=o._pack_next,v++)if(ku(o,i)){p=1;break}if(1==p)for(l=r._pack_prev;l!==o._pack_prev&&!ku(l,i);l=l._pack_prev,d++);p?(d>v||v==d&&u.r<r.r?Su(r,u=o):Su(r=l,u),a--):(wu(r,i),u=i,t(i))}var m=(s+f)/2,y=(h+g)/2,M=0;for(a=0;c>a;a++)i=e[a],i.x-=m,i.y-=y,M=Math.max(M,i.r+Math.sqrt(i.x*i.x+i.y*i.y));n.r=M,e.forEach(Au)}}function Eu(n){n._pack_next=n._pack_prev=n}function Au(n){delete n._pack_next,delete n._pack_prev}function Cu(n,t,e,r){var u=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,u)for(var i=-1,a=u.length;++i<a;)Cu(u[i],t,e,r)}function zu(n,t,e){var r=n.r+e.r,u=t.x-n.x,i=t.y-n.y;if(r&&(u||i)){var a=t.r+e.r,o=u*u+i*i;a*=a,r*=r;var l=.5+(r-a)/(2*o),c=Math.sqrt(Math.max(0,2*a*(r+o)-(r-=o)*r-a*a))/(2*o);e.x=n.x+l*u+c*i,e.y=n.y+l*i-c*u}else e.x=n.x+r,e.y=n.y}function Lu(n,t){return n.parent==t.parent?1:2}function qu(n){var t=n.children;return t.length?t[0]:n.t}function Tu(n){var t,e=n.children;return(t=e.length)?e[t-1]:n.t}function Ru(n,t,e){var r=e/(t.i-n.i);t.c-=r,t.s+=e,n.c+=r,t.z+=e,t.m+=e}function Du(n){for(var t,e=0,r=0,u=n.children,i=u.length;--i>=0;)t=u[i],t.z+=e,t.m+=e,e+=t.s+(r+=t.c)}function Pu(n,t,e){return n.a.parent===t.parent?n.a:e}function ju(n){return 1+oa.max(n,function(n){return n.y})}function Uu(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function Fu(n){var t=n.children;return t&&t.length?Fu(t[0]):n}function Hu(n){var t,e=n.children;return e&&(t=e.length)?Hu(e[t-1]):n}function Ou(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function Iu(n,t){var e=n.x+t[3],r=n.y+t[0],u=n.dx-t[1]-t[3],i=n.dy-t[0]-t[2];return 0>u&&(e+=u/2,u=0),0>i&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Yu(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function Zu(n){return n.rangeExtent?n.rangeExtent():Yu(n.range())}function Vu(n,t,e,r){var u=e(n[0],n[1]),i=r(t[0],t[1]);return function(n){return i(u(n))}}function Xu(n,t){var e,r=0,u=n.length-1,i=n[r],a=n[u];return i>a&&(e=r,r=u,u=e,e=i,i=a,a=e),n[r]=t.floor(i),n[u]=t.ceil(a),n}function $u(n){return n?{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}:wl}function Bu(n,t,e,r){var u=[],i=[],a=0,o=Math.min(n.length,t.length)-1;for(n[o]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++a<=o;)u.push(e(n[a-1],n[a])),i.push(r(t[a-1],t[a]));return function(t){var e=oa.bisect(n,t,1,o)-1;return i[e](u[e](t))}}function Wu(n,t,e,r){function u(){var u=Math.min(n.length,t.length)>2?Bu:Vu,l=r?Wr:Br;return a=u(n,t,l,e),o=u(t,n,l,Mr),i}function i(n){return a(n)}var a,o;return i.invert=function(n){return o(n)},i.domain=function(t){return arguments.length?(n=t.map(Number),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.rangeRound=function(n){return i.range(n).interpolate(jr)},i.clamp=function(n){return arguments.length?(r=n,u()):r},i.interpolate=function(n){return arguments.length?(e=n,u()):e},i.ticks=function(t){return Qu(n,t)},i.tickFormat=function(t,e){return ni(n,t,e)},i.nice=function(t){return Gu(n,t),u()},i.copy=function(){return Wu(n,t,e,r)},u()}function Ju(n,t){return oa.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Gu(n,t){return Xu(n,$u(Ku(n,t)[2])),Xu(n,$u(Ku(n,t)[2])),n}function Ku(n,t){null==t&&(t=10);var e=Yu(n),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*u;return.15>=i?u*=10:.35>=i?u*=5:.75>=i&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function Qu(n,t){return oa.range.apply(oa,Ku(n,t))}function ni(n,t,e){var r=Ku(n,t);if(e){var u=so.exec(e);if(u.shift(),"s"===u[8]){var i=oa.formatPrefix(Math.max(Ma(r[0]),Ma(r[1])));return u[7]||(u[7]="."+ti(i.scale(r[2]))),u[8]="f",e=oa.format(u.join("")),function(n){return e(i.scale(n))+i.symbol}}u[7]||(u[7]="."+ei(u[8],r)),e=u.join("")}else e=",."+ti(r[2])+"f";return oa.format(e)}function ti(n){return-Math.floor(Math.log(n)/Math.LN10+.01)}function ei(n,t){var e=ti(t[2]);return n in Sl?Math.abs(e-ti(Math.max(Ma(t[0]),Ma(t[1]))))+ +("e"!==n):e-2*("%"===n)}function ri(n,t,e,r){function u(n){return(e?Math.log(0>n?0:n):-Math.log(n>0?0:-n))/Math.log(t)}function i(n){return e?Math.pow(t,n):-Math.pow(t,-n)}function a(t){return n(u(t))}return a.invert=function(t){return i(n.invert(t))},a.domain=function(t){return arguments.length?(e=t[0]>=0,n.domain((r=t.map(Number)).map(u)),a):r},a.base=function(e){return arguments.length?(t=+e,n.domain(r.map(u)),a):t},a.nice=function(){var t=Xu(r.map(u),e?Math:Nl);return n.domain(t),r=t.map(i),a},a.ticks=function(){var n=Yu(r),a=[],o=n[0],l=n[1],c=Math.floor(u(o)),s=Math.ceil(u(l)),f=t%1?2:t;if(isFinite(s-c)){if(e){for(;s>c;c++)for(var h=1;f>h;h++)a.push(i(c)*h);a.push(i(c))}else for(a.push(i(c));c++<s;)for(var h=f-1;h>0;h--)a.push(i(c)*h);for(c=0;a[c]<o;c++);for(s=a.length;a[s-1]>l;s--);a=a.slice(c,s)}return a},a.tickFormat=function(n,e){if(!arguments.length)return kl;arguments.length<2?e=kl:"function"!=typeof e&&(e=oa.format(e));var r=Math.max(1,t*n/a.ticks().length);return function(n){var a=n/i(Math.round(u(n)));return t-.5>a*t&&(a*=t),r>=a?e(n):""}},a.copy=function(){return ri(n.copy(),t,e,r)},Ju(a,n)}function ui(n,t,e){function r(t){return n(u(t))}var u=ii(t),i=ii(1/t);return r.invert=function(t){return i(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain((e=t.map(Number)).map(u)),r):e},r.ticks=function(n){return Qu(e,n)},r.tickFormat=function(n,t){return ni(e,n,t)},r.nice=function(n){return r.domain(Gu(e,n))},r.exponent=function(a){return arguments.length?(u=ii(t=a),i=ii(1/t),n.domain(e.map(u)),r):t},r.copy=function(){return ui(n.copy(),t,e)},Ju(r,n)}function ii(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function ai(n,t){function e(e){return i[((u.get(e)||("range"===t.t?u.set(e,n.push(e)):NaN))-1)%i.length]}function r(t,e){return oa.range(n.length).map(function(n){return t+e*n})}var u,i,a;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new c;for(var i,a=-1,o=r.length;++a<o;)u.has(i=r[a])||u.set(i,n.push(i));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(i=n,a=0,t={t:"range",a:arguments},e):i},e.rangePoints=function(u,o){arguments.length<2&&(o=0);var l=u[0],c=u[1],s=n.length<2?(l=(l+c)/2,0):(c-l)/(n.length-1+o);return i=r(l+s*o/2,s),a=0,t={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(u,o){arguments.length<2&&(o=0);var l=u[0],c=u[1],s=n.length<2?(l=c=Math.round((l+c)/2),0):(c-l)/(n.length-1+o)|0;return i=r(l+Math.round(s*o/2+(c-l-(n.length-1+o)*s)/2),s),a=0,t={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(u,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var c=u[1]<u[0],s=u[c-0],f=u[1-c],h=(f-s)/(n.length-o+2*l);return i=r(s+h*l,h),c&&i.reverse(),a=h*(1-o),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,o,l){arguments.length<2&&(o=0),arguments.length<3&&(l=o);var c=u[1]<u[0],s=u[c-0],f=u[1-c],h=Math.floor((f-s)/(n.length-o+2*l));return i=r(s+Math.round((f-s-(n.length-o)*h)/2),h),c&&i.reverse(),a=Math.round(h*(1-o)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return a},e.rangeExtent=function(){return Yu(t.a[0])},e.copy=function(){return ai(n,t)},e.domain(n)}function oi(n,t){function i(){var e=0,r=t.length;for(o=[];++e<r;)o[e-1]=oa.quantile(n,e/r);return a}function a(n){return isNaN(n=+n)?void 0:t[oa.bisect(o,n)]}var o;return a.domain=function(t){return arguments.length?(n=t.map(r).filter(u).sort(e),i()):n},a.range=function(n){return arguments.length?(t=n,i()):t},a.quantiles=function(){return o},a.invertExtent=function(e){return e=t.indexOf(e),0>e?[NaN,NaN]:[e>0?o[e-1]:n[0],e<o.length?o[e]:n[n.length-1]]},a.copy=function(){return oi(n,t)},i()}function li(n,t,e){function r(t){return e[Math.max(0,Math.min(a,Math.floor(i*(t-n))))]}function u(){return i=e.length/(t-n),a=e.length-1,r}var i,a;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(e=n,u()):e},r.invertExtent=function(t){return t=e.indexOf(t),t=0>t?NaN:t/i+n,[t,t+1/i]},r.copy=function(){return li(n,t,e)},u()}function ci(n,t){function e(e){return e>=e?t[oa.bisect(n,e)]:void 0}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.invertExtent=function(e){return e=t.indexOf(e),[n[e-1],n[e]]},e.copy=function(){return ci(n,t)},e}function si(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Qu(n,t)},t.tickFormat=function(t,e){return ni(n,t,e)},t.copy=function(){return si(n)},t}function fi(){return 0}function hi(n){return n.innerRadius}function gi(n){return n.outerRadius}function pi(n){return n.startAngle}function vi(n){return n.endAngle}function di(n){return n&&n.padAngle}function mi(n,t,e,r){return(n-e)*t-(t-r)*n>0?0:1}function yi(n,t,e,r,u){var i=n[0]-t[0],a=n[1]-t[1],o=(u?r:-r)/Math.sqrt(i*i+a*a),l=o*a,c=-o*i,s=n[0]+l,f=n[1]+c,h=t[0]+l,g=t[1]+c,p=(s+h)/2,v=(f+g)/2,d=h-s,m=g-f,y=d*d+m*m,M=e-r,x=s*g-h*f,b=(0>m?-1:1)*Math.sqrt(Math.max(0,M*M*y-x*x)),_=(x*m-d*b)/y,w=(-x*d-m*b)/y,S=(x*m+d*b)/y,k=(-x*d+m*b)/y,N=_-p,E=w-v,A=S-p,C=k-v;return N*N+E*E>A*A+C*C&&(_=S,w=k),[[_-l,w-c],[_*e/M,w*e/M]]}function Mi(n){function t(t){function a(){c.push("M",i(n(s),o))}for(var l,c=[],s=[],f=-1,h=t.length,g=En(e),p=En(r);++f<h;)u.call(this,l=t[f],f)?s.push([+g.call(this,l,f),+p.call(this,l,f)]):s.length&&(a(),s=[]);return s.length&&a(),c.length?c.join(""):null}var e=Ce,r=ze,u=zt,i=xi,a=i.key,o=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(u=n,t):u},t.interpolate=function(n){return arguments.length?(a="function"==typeof n?i=n:(i=ql.get(n)||xi).key,t):a},t.tension=function(n){return arguments.length?(o=n,t):o},t}function xi(n){return n.length>1?n.join("L"):n+"Z"}function bi(n){return n.join("L")+"Z"}function _i(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r[0]+(r=n[t])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function wi(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("V",(r=n[t])[1],"H",r[0]);return u.join("")}function Si(n){for(var t=0,e=n.length,r=n[0],u=[r[0],",",r[1]];++t<e;)u.push("H",(r=n[t])[0],"V",r[1]);return u.join("")}function ki(n,t){return n.length<4?xi(n):n[1]+Ai(n.slice(1,-1),Ci(n,t))}function Ni(n,t){return n.length<3?bi(n):n[0]+Ai((n.push(n[0]),n),Ci([n[n.length-2]].concat(n,[n[1]]),t))}function Ei(n,t){return n.length<3?xi(n):n[0]+Ai(n,Ci(n,t))}function Ai(n,t){if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return xi(n);var e=n.length!=t.length,r="",u=n[0],i=n[1],a=t[0],o=a,l=1;if(e&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],u=n[1],l=2),t.length>1){o=t[1],i=n[l],l++,r+="C"+(u[0]+a[0])+","+(u[1]+a[1])+","+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,l++)i=n[l],o=t[c],r+="S"+(i[0]-o[0])+","+(i[1]-o[1])+","+i[0]+","+i[1]}if(e){var s=n[l];r+="Q"+(i[0]+2*o[0]/3)+","+(i[1]+2*o[1]/3)+","+s[0]+","+s[1]}return r}function Ci(n,t){for(var e,r=[],u=(1-t)/2,i=n[0],a=n[1],o=1,l=n.length;++o<l;)e=i,i=a,a=n[o],r.push([u*(a[0]-e[0]),u*(a[1]-e[1])]);return r}function zi(n){if(n.length<3)return xi(n);var t=1,e=n.length,r=n[0],u=r[0],i=r[1],a=[u,u,u,(r=n[1])[0]],o=[i,i,i,r[1]],l=[u,",",i,"L",Ri(Dl,a),",",Ri(Dl,o)];for(n.push(n[e-1]);++t<=e;)r=n[t],a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),Di(l,a,o);return n.pop(),l.push("L",r),l.join("")}function Li(n){if(n.length<4)return xi(n);for(var t,e=[],r=-1,u=n.length,i=[0],a=[0];++r<3;)t=n[r],i.push(t[0]),a.push(t[1]);for(e.push(Ri(Dl,i)+","+Ri(Dl,a)),--r;++r<u;)t=n[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),Di(e,i,a);return e.join("")}function qi(n){for(var t,e,r=-1,u=n.length,i=u+4,a=[],o=[];++r<4;)e=n[r%u],a.push(e[0]),o.push(e[1]);for(t=[Ri(Dl,a),",",Ri(Dl,o)],--r;++r<i;)e=n[r%u],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Di(t,a,o);return t.join("")}function Ti(n,t){var e=n.length-1;if(e)for(var r,u,i=n[0][0],a=n[0][1],o=n[e][0]-i,l=n[e][1]-a,c=-1;++c<=e;)r=n[c],u=c/e,r[0]=t*r[0]+(1-t)*(i+u*o),r[1]=t*r[1]+(1-t)*(a+u*l);return zi(n)}function Ri(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function Di(n,t,e){n.push("C",Ri(Tl,t),",",Ri(Tl,e),",",Ri(Rl,t),",",Ri(Rl,e),",",Ri(Dl,t),",",Ri(Dl,e))}function Pi(n,t){return(t[1]-n[1])/(t[0]-n[0])}function ji(n){for(var t=0,e=n.length-1,r=[],u=n[0],i=n[1],a=r[0]=Pi(u,i);++t<e;)r[t]=(a+(a=Pi(u=i,i=n[t+1])))/2;return r[t]=a,r}function Ui(n){for(var t,e,r,u,i=[],a=ji(n),o=-1,l=n.length-1;++o<l;)t=Pi(n[o],n[o+1]),Ma(t)<Da?a[o]=a[o+1]=0:(e=a[o]/t,r=a[o+1]/t,u=e*e+r*r,u>9&&(u=3*t/Math.sqrt(u),a[o]=u*e,a[o+1]=u*r));for(o=-1;++o<=l;)u=(n[Math.min(l,o+1)][0]-n[Math.max(0,o-1)][0])/(6*(1+a[o]*a[o])),i.push([u||0,a[o]*u||0]);return i}function Fi(n){return n.length<3?xi(n):n[0]+Ai(n,Ui(n))}function Hi(n){for(var t,e,r,u=-1,i=n.length;++u<i;)t=n[u],e=t[0],r=t[1]-Ha,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function Oi(n){function t(t){function l(){v.push("M",o(n(m),f),s,c(n(d.reverse()),f),"Z")}for(var h,g,p,v=[],d=[],m=[],y=-1,M=t.length,x=En(e),b=En(u),_=e===r?function(){
return g}:En(r),w=u===i?function(){return p}:En(i);++y<M;)a.call(this,h=t[y],y)?(d.push([g=+x.call(this,h,y),p=+b.call(this,h,y)]),m.push([+_.call(this,h,y),+w.call(this,h,y)])):d.length&&(l(),d=[],m=[]);return d.length&&l(),v.length?v.join(""):null}var e=Ce,r=Ce,u=0,i=ze,a=zt,o=xi,l=o.key,c=o,s="L",f=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(u=i=n,t):i},t.y0=function(n){return arguments.length?(u=n,t):u},t.y1=function(n){return arguments.length?(i=n,t):i},t.defined=function(n){return arguments.length?(a=n,t):a},t.interpolate=function(n){return arguments.length?(l="function"==typeof n?o=n:(o=ql.get(n)||xi).key,c=o.reverse||o,s=o.closed?"M":"L",t):l},t.tension=function(n){return arguments.length?(f=n,t):f},t}function Ii(n){return n.radius}function Yi(n){return[n.x,n.y]}function Zi(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Ha;return[e*Math.cos(r),e*Math.sin(r)]}}function Vi(){return 64}function Xi(){return"circle"}function $i(n){var t=Math.sqrt(n/ja);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Bi(n){return function(){var t,e,r;(t=this[n])&&(r=t[e=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[e]:delete this[n],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Wi(n,t,e){return Sa(n,Il),n.namespace=t,n.id=e,n}function Ji(n,t,e,r){var u=n.id,i=n.namespace;return Y(n,"function"==typeof e?function(n,a,o){n[i][u].tween.set(t,r(e.call(n,n.__data__,a,o)))}:(e=r(e),function(n){n[i][u].tween.set(t,e)}))}function Gi(n){return null==n&&(n=""),function(){this.textContent=n}}function Ki(n){return null==n?"__transition__":"__transition_"+n+"__"}function Qi(n,t,e,r,u){function i(n){var t=v.delay;return s.t=t+l,n>=t?a(n-t):void(s.c=a)}function a(e){var u=p.active,i=p[u];i&&(i.timer.c=null,i.timer.t=NaN,--p.count,delete p[u],i.event&&i.event.interrupt.call(n,n.__data__,i.index));for(var a in p)if(r>+a){var c=p[a];c.timer.c=null,c.timer.t=NaN,--p.count,delete p[a]}s.c=o,qn(function(){return s.c&&o(e||1)&&(s.c=null,s.t=NaN),1},0,l),p.active=r,v.event&&v.event.start.call(n,n.__data__,t),g=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&g.push(r)}),h=v.ease,f=v.duration}function o(u){for(var i=u/f,a=h(i),o=g.length;o>0;)g[--o].call(n,a);return i>=1?(v.event&&v.event.end.call(n,n.__data__,t),--p.count?delete p[r]:delete n[e],1):void 0}var l,s,f,h,g,p=n[e]||(n[e]={active:0,count:0}),v=p[r];v||(l=u.time,s=qn(i,0,l),v=p[r]={tween:new c,time:l,timer:s,delay:u.delay,duration:u.duration,ease:u.ease,index:t},u=null,++p.count)}function na(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function ta(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function ea(n){return n.toISOString()}function ra(n,t,e){function r(t){return n(t)}function u(n,e){var r=n[1]-n[0],u=r/e,i=oa.bisect(Gl,u);return i==Gl.length?[t.year,Ku(n.map(function(n){return n/31536e6}),e)[2]]:i?t[u/Gl[i-1]<Gl[i]/u?i-1:i]:[nc,Ku(n,e)[2]]}return r.invert=function(t){return ua(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(ua)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,ua(+e+1),t).length}var i=r.domain(),a=Yu(i),o=null==n?u(a,10):"number"==typeof n&&u(a,n);return o&&(n=o[0],t=o[1]),r.domain(Xu(i,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=ua(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=ua(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yu(r.domain()),i=null==n?u(e,10):"number"==typeof n?u(e,n):!n.range&&[{range:n},t];return i&&(n=i[0],t=i[1]),n.range(e[0],ua(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ra(n.copy(),t,e)},Ju(r,n)}function ua(n){return new Date(n)}function ia(n){return JSON.parse(n.responseText)}function aa(n){var t=sa.createRange();return t.selectNode(sa.body),t.createContextualFragment(n.responseText)}var oa={version:"3.5.12"},la=[].slice,ca=function(n){return la.call(n)},sa=window.document;if(sa)try{ca(sa.documentElement.childNodes)[0].nodeType}catch(fa){ca=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),sa)try{sa.createElement("DIV").style.setProperty("opacity",0,"")}catch(ha){var ga=this.Element.prototype,pa=ga.setAttribute,va=ga.setAttributeNS,da=this.CSSStyleDeclaration.prototype,ma=da.setProperty;ga.setAttribute=function(n,t){pa.call(this,n,t+"")},ga.setAttributeNS=function(n,t,e){va.call(this,n,t,e+"")},da.setProperty=function(n,t,e){ma.call(this,n,t+"",e)}}oa.ascending=e,oa.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},oa.min=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&e>r&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&e>r&&(e=r)}return e},oa.max=function(n,t){var e,r,u=-1,i=n.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=n[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=n[u])&&r>e&&(e=r)}else{for(;++u<i;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=t.call(n,n[u],u))&&r>e&&(e=r)}return e},oa.extent=function(n,t){var e,r,u,i=-1,a=n.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=n[i])&&r>=r){e=u=r;break}for(;++i<a;)null!=(r=n[i])&&(e>r&&(e=r),r>u&&(u=r))}else{for(;++i<a;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=u=r;break}for(;++i<a;)null!=(r=t.call(n,n[i],i))&&(e>r&&(e=r),r>u&&(u=r))}return[e,u]},oa.sum=function(n,t){var e,r=0,i=n.length,a=-1;if(1===arguments.length)for(;++a<i;)u(e=+n[a])&&(r+=e);else for(;++a<i;)u(e=+t.call(n,n[a],a))&&(r+=e);return r},oa.mean=function(n,t){var e,i=0,a=n.length,o=-1,l=a;if(1===arguments.length)for(;++o<a;)u(e=r(n[o]))?i+=e:--l;else for(;++o<a;)u(e=r(t.call(n,n[o],o)))?i+=e:--l;return l?i/l:void 0},oa.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),u=+n[r-1],i=e-r;return i?u+i*(n[r]-u):u},oa.median=function(n,t){var i,a=[],o=n.length,l=-1;if(1===arguments.length)for(;++l<o;)u(i=r(n[l]))&&a.push(i);else for(;++l<o;)u(i=r(t.call(n,n[l],l)))&&a.push(i);return a.length?oa.quantile(a.sort(e),.5):void 0},oa.variance=function(n,t){var e,i,a=n.length,o=0,l=0,c=-1,s=0;if(1===arguments.length)for(;++c<a;)u(e=r(n[c]))&&(i=e-o,o+=i/++s,l+=i*(e-o));else for(;++c<a;)u(e=r(t.call(n,n[c],c)))&&(i=e-o,o+=i/++s,l+=i*(e-o));return s>1?l/(s-1):void 0},oa.deviation=function(){var n=oa.variance.apply(this,arguments);return n?Math.sqrt(n):n};var ya=i(e);oa.bisectLeft=ya.left,oa.bisect=oa.bisectRight=ya.right,oa.bisector=function(n){return i(1===n.length?function(t,r){return e(n(t),r)}:n)},oa.shuffle=function(n,t,e){(i=arguments.length)<3&&(e=n.length,2>i&&(t=0));for(var r,u,i=e-t;i;)u=Math.random()*i--|0,r=n[i+t],n[i+t]=n[u+t],n[u+t]=r;return n},oa.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},oa.pairs=function(n){for(var t,e=0,r=n.length-1,u=n[0],i=new Array(0>r?0:r);r>e;)i[e]=[t=u,u=n[++e]];return i},oa.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=oa.min(arguments,a),e=new Array(t);++n<t;)for(var r,u=-1,i=e[n]=new Array(r);++u<r;)i[u]=arguments[u][n];return e},oa.transpose=function(n){return oa.zip.apply(oa,n)},oa.keys=function(n){var t=[];for(var e in n)t.push(e);return t},oa.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},oa.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},oa.merge=function(n){for(var t,e,r,u=n.length,i=-1,a=0;++i<u;)a+=n[i].length;for(e=new Array(a);--u>=0;)for(r=n[u],t=r.length;--t>=0;)e[--a]=r[t];return e};var Ma=Math.abs;oa.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e===1/0)throw new Error("infinite range");var r,u=[],i=o(Ma(e)),a=-1;if(n*=i,t*=i,e*=i,0>e)for(;(r=n+e*++a)>t;)u.push(r/i);else for(;(r=n+e*++a)<t;)u.push(r/i);return u},oa.map=function(n,t){var e=new c;if(n instanceof c)n.forEach(function(n,t){e.set(n,t)});else if(Array.isArray(n)){var r,u=-1,i=n.length;if(1===arguments.length)for(;++u<i;)e.set(u,n[u]);else for(;++u<i;)e.set(t.call(n,r=n[u],u),r)}else for(var a in n)e.set(a,n[a]);return e};var xa="__proto__",ba="\x00";l(c,{has:h,get:function(n){return this._[s(n)]},set:function(n,t){return this._[s(n)]=t},remove:g,keys:p,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:f(t),value:this._[t]});return n},size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t),this._[t])}}),oa.nest=function(){function n(t,a,o){if(o>=i.length)return r?r.call(u,a):e?a.sort(e):a;for(var l,s,f,h,g=-1,p=a.length,v=i[o++],d=new c;++g<p;)(h=d.get(l=v(s=a[g])))?h.push(s):d.set(l,[s]);return t?(s=t(),f=function(e,r){s.set(e,n(t,r,o))}):(s={},f=function(e,r){s[e]=n(t,r,o)}),d.forEach(f),s}function t(n,e){if(e>=i.length)return n;var r=[],u=a[e++];return n.forEach(function(n,u){r.push({key:n,values:t(u,e)})}),u?r.sort(function(n,t){return u(n.key,t.key)}):r}var e,r,u={},i=[],a=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(oa.map,e,0),0)},u.key=function(n){return i.push(n),u},u.sortKeys=function(n){return a[i.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},oa.set=function(n){var t=new m;if(n)for(var e=0,r=n.length;r>e;++e)t.add(n[e]);return t},l(m,{has:h,add:function(n){return this._[s(n+="")]=!0,n},remove:g,values:p,size:v,empty:d,forEach:function(n){for(var t in this._)n.call(this,f(t))}}),oa.behavior={},oa.rebind=function(n,t){for(var e,r=1,u=arguments.length;++r<u;)n[e=arguments[r]]=M(n,t,t[e]);return n};var _a=["webkit","ms","moz","Moz","o","O"];oa.dispatch=function(){for(var n=new _,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=w(n);return n},_.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},oa.event=null,oa.requote=function(n){return n.replace(wa,"\\$&")};var wa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Sa={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]},ka=function(n,t){return t.querySelector(n)},Na=function(n,t){return t.querySelectorAll(n)},Ea=function(n,t){var e=n.matches||n[x(n,"matchesSelector")];return(Ea=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(ka=function(n,t){return Sizzle(n,t)[0]||null},Na=Sizzle,Ea=Sizzle.matchesSelector),oa.selection=function(){return oa.select(sa.documentElement)};var Aa=oa.selection.prototype=[];Aa.select=function(n){var t,e,r,u,i=[];n=A(n);for(var a=-1,o=this.length;++a<o;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var l=-1,c=r.length;++l<c;)(u=r[l])?(t.push(e=n.call(u,u.__data__,l,a)),e&&"__data__"in u&&(e.__data__=u.__data__)):t.push(null)}return E(i)},Aa.selectAll=function(n){var t,e,r=[];n=C(n);for(var u=-1,i=this.length;++u<i;)for(var a=this[u],o=-1,l=a.length;++o<l;)(e=a[o])&&(r.push(t=ca(n.call(e,e.__data__,o,u))),t.parentNode=e);return E(r)};var Ca={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};oa.ns={prefix:Ca,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),Ca.hasOwnProperty(e)?{space:Ca[e],local:n}:n}},Aa.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return n=oa.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(z(t,n[t]));return this}return this.each(z(n,t))},Aa.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=T(n)).length,u=-1;if(t=e.classList){for(;++u<r;)if(!t.contains(n[u]))return!1}else for(t=e.getAttribute("class");++u<r;)if(!q(n[u]).test(t))return!1;return!0}for(t in n)this.each(R(t,n[t]));return this}return this.each(R(n,t))},Aa.style=function(n,e,r){var u=arguments.length;if(3>u){if("string"!=typeof n){2>u&&(e="");for(r in n)this.each(P(r,n[r],e));return this}if(2>u){var i=this.node();return t(i).getComputedStyle(i,null).getPropertyValue(n)}r=""}return this.each(P(n,e,r))},Aa.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(j(t,n[t]));return this}return this.each(j(n,t))},Aa.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},Aa.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},Aa.append=function(n){return n=U(n),this.select(function(){return this.appendChild(n.apply(this,arguments))})},Aa.insert=function(n,t){return n=U(n),t=A(t),this.select(function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)})},Aa.remove=function(){return this.each(F)},Aa.data=function(n,t){function e(n,e){var r,u,i,a=n.length,f=e.length,h=Math.min(a,f),g=new Array(f),p=new Array(f),v=new Array(a);if(t){var d,m=new c,y=new Array(a);for(r=-1;++r<a;)(u=n[r])&&(m.has(d=t.call(u,u.__data__,r))?v[r]=u:m.set(d,u),y[r]=d);for(r=-1;++r<f;)(u=m.get(d=t.call(e,i=e[r],r)))?u!==!0&&(g[r]=u,u.__data__=i):p[r]=H(i),m.set(d,!0);for(r=-1;++r<a;)r in y&&m.get(y[r])!==!0&&(v[r]=n[r])}else{for(r=-1;++r<h;)u=n[r],i=e[r],u?(u.__data__=i,g[r]=u):p[r]=H(i);for(;f>r;++r)p[r]=H(e[r]);for(;a>r;++r)v[r]=n[r]}p.update=g,p.parentNode=g.parentNode=v.parentNode=n.parentNode,o.push(p),l.push(g),s.push(v)}var r,u,i=-1,a=this.length;if(!arguments.length){for(n=new Array(a=(r=this[0]).length);++i<a;)(u=r[i])&&(n[i]=u.__data__);return n}var o=Z([]),l=E([]),s=E([]);if("function"==typeof n)for(;++i<a;)e(r=this[i],n.call(r,r.parentNode.__data__,i));else for(;++i<a;)e(r=this[i],n);return l.enter=function(){return o},l.exit=function(){return s},l},Aa.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},Aa.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,a=this.length;a>i;i++){u.push(t=[]),t.parentNode=(e=this[i]).parentNode;for(var o=0,l=e.length;l>o;o++)(r=e[o])&&n.call(r,r.__data__,o,i)&&t.push(r)}return E(u)},Aa.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},Aa.sort=function(n){n=I.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},Aa.each=function(n){return Y(this,function(t,e,r){n.call(t,t.__data__,e,r)})},Aa.call=function(n){var t=ca(arguments);return n.apply(t[0]=this,t),this},Aa.empty=function(){return!this.node()},Aa.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,u=e.length;u>r;r++){var i=e[r];if(i)return i}return null},Aa.size=function(){var n=0;return Y(this,function(){++n}),n};var za=[];oa.selection.enter=Z,oa.selection.enter.prototype=za,za.append=Aa.append,za.empty=Aa.empty,za.node=Aa.node,za.call=Aa.call,za.size=Aa.size,za.select=function(n){for(var t,e,r,u,i,a=[],o=-1,l=this.length;++o<l;){r=(u=this[o]).update,a.push(t=[]),t.parentNode=u.parentNode;for(var c=-1,s=u.length;++c<s;)(i=u[c])?(t.push(r[c]=e=n.call(u.parentNode,i.__data__,c,o)),e.__data__=i.__data__):t.push(null)}return E(a)},za.insert=function(n,t){return arguments.length<2&&(t=V(this)),Aa.insert.call(this,n,t)},oa.select=function(t){var e;return"string"==typeof t?(e=[ka(t,sa)],e.parentNode=sa.documentElement):(e=[t],e.parentNode=n(t)),E([e])},oa.selectAll=function(n){var t;return"string"==typeof n?(t=ca(Na(n,sa)),t.parentNode=sa.documentElement):(t=ca(n),t.parentNode=null),E([t])},Aa.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(X(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(X(n,t,e))};var La=oa.map({mouseenter:"mouseover",mouseleave:"mouseout"});sa&&La.forEach(function(n){"on"+n in sa&&La.remove(n)});var qa,Ta=0;oa.mouse=function(n){return J(n,k())};var Ra=window.navigator&&/WebKit/.test(window.navigator.userAgent)?-1:0;oa.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=k().changedTouches),t)for(var r,u=0,i=t.length;i>u;++u)if((r=t[u]).identifier===e)return J(n,r)},oa.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function e(n,t,e,i,a){return function(){function o(){var n,e,r=t(h,v);r&&(n=r[0]-M[0],e=r[1]-M[1],p|=n|e,M=r,g({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:n,dy:e}))}function l(){t(h,v)&&(m.on(i+d,null).on(a+d,null),y(p),g({type:"dragend"}))}var c,s=this,f=oa.event.target,h=s.parentNode,g=r.of(s,arguments),p=0,v=n(),d=".drag"+(null==v?"":"-"+v),m=oa.select(e(f)).on(i+d,o).on(a+d,l),y=W(f),M=t(h,v);u?(c=u.apply(s,arguments),c=[c.x-M[0],c.y-M[1]]):c=[0,0],g({type:"dragstart"})}}var r=N(n,"drag","dragstart","dragend"),u=null,i=e(b,oa.mouse,t,"mousemove","mouseup"),a=e(G,oa.touch,y,"touchmove","touchend");return n.origin=function(t){return arguments.length?(u=t,n):u},oa.rebind(n,r,"on")},oa.touches=function(n,t){return arguments.length<2&&(t=k().touches),t?ca(t).map(function(t){var e=J(n,t);return e.identifier=t.identifier,e}):[]};var Da=1e-6,Pa=Da*Da,ja=Math.PI,Ua=2*ja,Fa=Ua-Da,Ha=ja/2,Oa=ja/180,Ia=180/ja,Ya=Math.SQRT2,Za=2,Va=4;oa.interpolateZoom=function(n,t){var e,r,u=n[0],i=n[1],a=n[2],o=t[0],l=t[1],c=t[2],s=o-u,f=l-i,h=s*s+f*f;if(Pa>h)r=Math.log(c/a)/Ya,e=function(n){return[u+n*s,i+n*f,a*Math.exp(Ya*n*r)]};else{var g=Math.sqrt(h),p=(c*c-a*a+Va*h)/(2*a*Za*g),v=(c*c-a*a-Va*h)/(2*c*Za*g),d=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(v*v+1)-v);r=(m-d)/Ya,e=function(n){var t=n*r,e=rn(d),o=a/(Za*g)*(e*un(Ya*t+d)-en(d));return[u+o*s,i+o*f,a*e/rn(Ya*t+d)]}}return e.duration=1e3*r,e},oa.behavior.zoom=function(){function n(n){n.on(L,f).on($a+".zoom",g).on("dblclick.zoom",p).on(R,h)}function e(n){return[(n[0]-k.x)/k.k,(n[1]-k.y)/k.k]}function r(n){return[n[0]*k.k+k.x,n[1]*k.k+k.y]}function u(n){k.k=Math.max(A[0],Math.min(A[1],n))}function i(n,t){t=r(t),k.x+=n[0]-t[0],k.y+=n[1]-t[1]}function a(t,e,r,a){t.__chart__={x:k.x,y:k.y,k:k.k},u(Math.pow(2,a)),i(d=e,r),t=oa.select(t),C>0&&(t=t.transition().duration(C)),t.call(n.event)}function o(){b&&b.domain(x.range().map(function(n){return(n-k.x)/k.k}).map(x.invert)),w&&w.domain(_.range().map(function(n){return(n-k.y)/k.k}).map(_.invert))}function l(n){z++||n({type:"zoomstart"})}function c(n){o(),n({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(n){--z||(n({type:"zoomend"}),d=null)}function f(){function n(){o=1,i(oa.mouse(u),h),c(a)}function r(){f.on(q,null).on(T,null),g(o),s(a)}var u=this,a=D.of(u,arguments),o=0,f=oa.select(t(u)).on(q,n).on(T,r),h=e(oa.mouse(u)),g=W(u);Ol.call(u),l(a)}function h(){function n(){var n=oa.touches(p);return g=k.k,n.forEach(function(n){n.identifier in d&&(d[n.identifier]=e(n))}),n}function t(){var t=oa.event.target;oa.select(t).on(x,r).on(b,o),_.push(t);for(var e=oa.event.changedTouches,u=0,i=e.length;i>u;++u)d[e[u].identifier]=null;var l=n(),c=Date.now();if(1===l.length){if(500>c-M){var s=l[0];a(p,s,d[s.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),S()}M=c}else if(l.length>1){var s=l[0],f=l[1],h=s[0]-f[0],g=s[1]-f[1];m=h*h+g*g}}function r(){var n,t,e,r,a=oa.touches(p);Ol.call(p);for(var o=0,l=a.length;l>o;++o,r=null)if(e=a[o],r=d[e.identifier]){if(t)break;n=e,t=r}if(r){var s=(s=e[0]-n[0])*s+(s=e[1]-n[1])*s,f=m&&Math.sqrt(s/m);n=[(n[0]+e[0])/2,(n[1]+e[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],u(f*g)}M=null,i(n,t),c(v)}function o(){if(oa.event.touches.length){for(var t=oa.event.changedTouches,e=0,r=t.length;r>e;++e)delete d[t[e].identifier];for(var u in d)return void n()}oa.selectAll(_).on(y,null),w.on(L,f).on(R,h),N(),s(v)}var g,p=this,v=D.of(p,arguments),d={},m=0,y=".zoom-"+oa.event.changedTouches[0].identifier,x="touchmove"+y,b="touchend"+y,_=[],w=oa.select(p),N=W(p);t(),l(v),w.on(L,null).on(R,t)}function g(){var n=D.of(this,arguments);y?clearTimeout(y):(Ol.call(this),v=e(d=m||oa.mouse(this)),l(n)),y=setTimeout(function(){y=null,s(n)},50),S(),u(Math.pow(2,.002*Xa())*k.k),i(d,v),c(n)}function p(){var n=oa.mouse(this),t=Math.log(k.k)/Math.LN2;a(this,n,e(n),oa.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}var v,d,m,y,M,x,b,_,w,k={x:0,y:0,k:1},E=[960,500],A=Ba,C=250,z=0,L="mousedown.zoom",q="mousemove.zoom",T="mouseup.zoom",R="touchstart.zoom",D=N(n,"zoomstart","zoom","zoomend");return $a||($a="onwheel"in sa?(Xa=function(){return-oa.event.deltaY*(oa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in sa?(Xa=function(){return oa.event.wheelDelta},"mousewheel"):(Xa=function(){return-oa.event.detail},"MozMousePixelScroll")),n.event=function(n){n.each(function(){var n=D.of(this,arguments),t=k;Fl?oa.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},l(n)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],u=d?d[0]:e/2,i=d?d[1]:r/2,a=oa.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-t.x)/t.k,(i-t.y)/t.k,e/t.k]);return function(t){var r=a(t),o=e/r[2];this.__chart__=k={x:u-r[0]*o,y:i-r[1]*o,k:o},c(n)}}).each("interrupt.zoom",function(){s(n)}).each("end.zoom",function(){s(n)}):(this.__chart__=k,l(n),c(n),s(n))})},n.translate=function(t){return arguments.length?(k={x:+t[0],y:+t[1],k:k.k},o(),n):[k.x,k.y]},n.scale=function(t){return arguments.length?(k={x:k.x,y:k.y,k:null},u(+t),o(),n):k.k},n.scaleExtent=function(t){return arguments.length?(A=null==t?Ba:[+t[0],+t[1]],n):A},n.center=function(t){return arguments.length?(m=t&&[+t[0],+t[1]],n):m},n.size=function(t){return arguments.length?(E=t&&[+t[0],+t[1]],n):E},n.duration=function(t){return arguments.length?(C=+t,n):C},n.x=function(t){return arguments.length?(b=t,x=t.copy(),k={x:0,y:0,k:1},n):b},n.y=function(t){return arguments.length?(w=t,_=t.copy(),k={x:0,y:0,k:1},n):w},oa.rebind(n,D,"on")};var Xa,$a,Ba=[0,1/0];oa.color=on,on.prototype.toString=function(){return this.rgb()+""},oa.hsl=ln;var Wa=ln.prototype=new on;Wa.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,this.l/n)},Wa.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new ln(this.h,this.s,n*this.l)},Wa.rgb=function(){return cn(this.h,this.s,this.l)},oa.hcl=sn;var Ja=sn.prototype=new on;Ja.brighter=function(n){return new sn(this.h,this.c,Math.min(100,this.l+Ga*(arguments.length?n:1)))},Ja.darker=function(n){return new sn(this.h,this.c,Math.max(0,this.l-Ga*(arguments.length?n:1)))},Ja.rgb=function(){return fn(this.h,this.c,this.l).rgb()},oa.lab=hn;var Ga=18,Ka=.95047,Qa=1,no=1.08883,to=hn.prototype=new on;to.brighter=function(n){return new hn(Math.min(100,this.l+Ga*(arguments.length?n:1)),this.a,this.b)},to.darker=function(n){return new hn(Math.max(0,this.l-Ga*(arguments.length?n:1)),this.a,this.b)},to.rgb=function(){return gn(this.l,this.a,this.b)},oa.rgb=yn;var eo=yn.prototype=new on;eo.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,u=30;return t||e||r?(t&&u>t&&(t=u),e&&u>e&&(e=u),r&&u>r&&(r=u),new yn(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new yn(u,u,u)},eo.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new yn(n*this.r,n*this.g,n*this.b)},eo.hsl=function(){return wn(this.r,this.g,this.b)},eo.toString=function(){return"#"+bn(this.r)+bn(this.g)+bn(this.b)};var ro=oa.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ro.forEach(function(n,t){ro.set(n,Mn(t))}),oa.functor=En,oa.xhr=An(y),oa.dsv=function(n,t){function e(n,e,i){arguments.length<3&&(i=e,e=null);var a=Cn(n,t,null==e?r:u(e),i);return a.row=function(n){return arguments.length?a.response(null==(e=n)?r:u(n)):e},a}function r(n){return e.parse(n.responseText)}function u(n){return function(t){return e.parse(t.responseText,n)}}function i(t){return t.map(a).join(n)}function a(n){return o.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var o=new RegExp('["'+n+"\n]"),l=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var u=new Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(u(n),e)}:u})},e.parseRows=function(n,t){function e(){if(s>=c)return a;if(u)return u=!1,i;var t=s;if(34===n.charCodeAt(t)){for(var e=t;e++<c;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}s=e+2;var r=n.charCodeAt(e+1);return 13===r?(u=!0,10===n.charCodeAt(e+2)&&++s):10===r&&(u=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;c>s;){var r=n.charCodeAt(s++),o=1;if(10===r)u=!0;else if(13===r)u=!0,10===n.charCodeAt(s)&&(++s,++o);else if(r!==l)continue;return n.slice(t,s-o)}return n.slice(t)}for(var r,u,i={},a={},o=[],c=n.length,s=0,f=0;(r=e())!==a;){for(var h=[];r!==i&&r!==a;)h.push(r),r=e();t&&null==(h=t(h,f++))||o.push(h)}return o},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new m,u=[];return t.forEach(function(n){for(var t in n)r.has(t)||u.push(r.add(t))}),[u.map(a).join(n)].concat(t.map(function(t){return u.map(function(n){return a(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(i).join("\n")},e},oa.csv=oa.dsv(",","text/csv"),oa.tsv=oa.dsv("	","text/tab-separated-values");var uo,io,ao,oo,lo=window[x(window,"requestAnimationFrame")]||function(n){setTimeout(n,17)};oa.timer=function(){qn.apply(this,arguments)},oa.timer.flush=function(){Rn(),Dn()},oa.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var co=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(jn);oa.formatPrefix=function(n,t){var e=0;return(n=+n)&&(0>n&&(n*=-1),t&&(n=oa.round(n,Pn(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),co[8+e/3]};var so=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,fo=oa.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=oa.round(n,Pn(n,t))).toFixed(Math.max(0,Math.min(20,Pn(n*(1+1e-15),t))))}}),ho=oa.time={},go=Date;Hn.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){po.setUTCDate.apply(this._,arguments)},setDay:function(){po.setUTCDay.apply(this._,arguments)},setFullYear:function(){po.setUTCFullYear.apply(this._,arguments)},setHours:function(){po.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){po.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){po.setUTCMinutes.apply(this._,arguments)},setMonth:function(){po.setUTCMonth.apply(this._,arguments)},setSeconds:function(){po.setUTCSeconds.apply(this._,arguments)},setTime:function(){po.setTime.apply(this._,arguments)}};var po=Date.prototype;ho.year=On(function(n){return n=ho.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ho.years=ho.year.range,ho.years.utc=ho.year.utc.range,ho.day=On(function(n){var t=new go(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ho.days=ho.day.range,ho.days.utc=ho.day.utc.range,ho.dayOfYear=function(n){var t=ho.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(n,t){t=7-t;var e=ho[n]=On(function(n){return(n=ho.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ho.year(n).getDay();return Math.floor((ho.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ho[n+"s"]=e.range,ho[n+"s"].utc=e.utc.range,ho[n+"OfYear"]=function(n){var e=ho.year(n).getDay();return Math.floor((ho.dayOfYear(n)+(e+t)%7)/7)}}),ho.week=ho.sunday,ho.weeks=ho.sunday.range,ho.weeks.utc=ho.sunday.utc.range,ho.weekOfYear=ho.sundayOfYear;var vo={"-":"",_:" ",0:"0"},mo=/^\s*\d+/,yo=/^%/;oa.locale=function(n){return{numberFormat:Un(n),timeFormat:Yn(n)}};var Mo=oa.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});oa.format=Mo.numberFormat,oa.geo={},st.prototype={s:0,t:0,add:function(n){ft(n,this.t,xo),ft(xo.s,this.s,this),this.s?this.t+=xo.t:this.s=xo.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xo=new st;oa.geo.stream=function(n,t){n&&bo.hasOwnProperty(n.type)?bo[n.type](n,t):ht(n,t)};var bo={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,u=e.length;++r<u;)ht(e[r].geometry,t)}},_o={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){gt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)gt(e[r],t,0)},Polygon:function(n,t){pt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,u=e.length;++r<u;)pt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,u=e.length;++r<u;)ht(e[r],t)}};oa.geo.area=function(n){return wo=0,oa.geo.stream(n,ko),wo};var wo,So=new st,ko={sphere:function(){wo+=4*ja},point:b,lineStart:b,lineEnd:b,polygonStart:function(){So.reset(),ko.lineStart=vt},polygonEnd:function(){var n=2*So;wo+=0>n?4*ja+n:n,ko.lineStart=ko.lineEnd=ko.point=b}};oa.geo.bounds=function(){function n(n,t){M.push(x=[s=n,h=n]),f>t&&(f=t),t>g&&(g=t)}function t(t,e){var r=dt([t*Oa,e*Oa]);if(m){var u=yt(m,r),i=[u[1],-u[0],0],a=yt(i,u);bt(a),a=_t(a);var l=t-p,c=l>0?1:-1,v=a[0]*Ia*c,d=Ma(l)>180;if(d^(v>c*p&&c*t>v)){var y=a[1]*Ia;y>g&&(g=y)}else if(v=(v+360)%360-180,d^(v>c*p&&c*t>v)){var y=-a[1]*Ia;f>y&&(f=y)}else f>e&&(f=e),e>g&&(g=e);d?p>t?o(s,t)>o(s,h)&&(h=t):o(t,h)>o(s,h)&&(s=t):h>=s?(s>t&&(s=t),t>h&&(h=t)):t>p?o(s,t)>o(s,h)&&(h=t):o(t,h)>o(s,h)&&(s=t)}else n(t,e);m=r,p=t}function e(){b.point=t}function r(){x[0]=s,x[1]=h,b.point=n,m=null}function u(n,e){if(m){var r=n-p;y+=Ma(r)>180?r+(r>0?360:-360):r}else v=n,d=e;ko.point(n,e),t(n,e)}function i(){ko.lineStart()}function a(){u(v,d),ko.lineEnd(),Ma(y)>Da&&(s=-(h=180)),x[0]=s,x[1]=h,m=null}function o(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var s,f,h,g,p,v,d,m,y,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=a,y=0,ko.polygonStart()},polygonEnd:function(){ko.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>So?(s=-(h=180),f=-(g=90)):y>Da?g=90:-Da>y&&(f=-90),x[0]=s,x[1]=h}};return function(n){g=h=-(s=f=1/0),M=[],oa.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,u=M[0],i=[u];t>r;++r)e=M[r],c(e[0],u)||c(e[1],u)?(o(u[0],e[1])>o(u[0],u[1])&&(u[1]=e[1]),o(e[0],u[1])>o(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var a,e,p=-(1/0),t=i.length-1,r=0,u=i[t];t>=r;u=e,++r)e=i[r],(a=o(u[1],e[0]))>p&&(p=a,s=e[0],h=u[1])}return M=x=null,s===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[s,f],[h,g]]}}(),oa.geo.centroid=function(n){No=Eo=Ao=Co=zo=Lo=qo=To=Ro=Do=Po=0,oa.geo.stream(n,jo);var t=Ro,e=Do,r=Po,u=t*t+e*e+r*r;return Pa>u&&(t=Lo,e=qo,r=To,Da>Eo&&(t=Ao,e=Co,r=zo),u=t*t+e*e+r*r,Pa>u)?[NaN,NaN]:[Math.atan2(e,t)*Ia,tn(r/Math.sqrt(u))*Ia]};var No,Eo,Ao,Co,zo,Lo,qo,To,Ro,Do,Po,jo={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){jo.lineStart=At},polygonEnd:function(){jo.lineStart=Nt}},Uo=Rt(zt,Ut,Ht,[-ja,-ja/2]),Fo=1e9;oa.geo.clipExtent=function(){var n,t,e,r,u,i,a={stream:function(n){return u&&(u.valid=!1),u=i(n),u.valid=!0,u},extent:function(o){return arguments.length?(i=Zt(n=+o[0][0],t=+o[0][1],e=+o[1][0],r=+o[1][1]),u&&(u.valid=!1,u=null),a):[[n,t],[e,r]]}};return a.extent([[0,0],[960,500]])},(oa.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,oa.geo.albers=function(){return oa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},oa.geo.albersUsa=function(){function n(n){var i=n[0],a=n[1];return t=null,e(i,a),t||(r(i,a),t)||u(i,a),t}var t,e,r,u,i=oa.geo.albers(),a=oa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o=oa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=i.scale(),e=i.translate(),r=(n[0]-e[0])/t,u=(n[1]-e[1])/t;return(u>=.12&&.234>u&&r>=-.425&&-.214>r?a:u>=.166&&.234>u&&r>=-.214&&-.115>r?o:i).invert(n)},n.stream=function(n){var t=i.stream(n),e=a.stream(n),r=o.stream(n);return{point:function(n,u){t.point(n,u),e.point(n,u),r.point(n,u)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},n.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),o.precision(t),n):i.precision()},n.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),o.scale(t),n.translate(i.translate())):i.scale()},n.translate=function(t){if(!arguments.length)return i.translate();var c=i.scale(),s=+t[0],f=+t[1];return e=i.translate(t).clipExtent([[s-.455*c,f-.238*c],[s+.455*c,f+.238*c]]).stream(l).point,r=a.translate([s-.307*c,f+.201*c]).clipExtent([[s-.425*c+Da,f+.12*c+Da],[s-.214*c-Da,f+.234*c-Da]]).stream(l).point,u=o.translate([s-.205*c,f+.212*c]).clipExtent([[s-.214*c+Da,f+.166*c+Da],[s-.115*c-Da,f+.234*c-Da]]).stream(l).point,n},n.scale(1070)};var Ho,Oo,Io,Yo,Zo,Vo,Xo={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Oo=0,Xo.lineStart=$t},polygonEnd:function(){Xo.lineStart=Xo.lineEnd=Xo.point=b,Ho+=Ma(Oo/2)}},$o={point:Bt,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},Bo={point:Gt,lineStart:Kt,lineEnd:Qt,polygonStart:function(){Bo.lineStart=ne},polygonEnd:function(){Bo.point=Gt,Bo.lineStart=Kt,Bo.lineEnd=Qt}};oa.geo.path=function(){function n(n){return n&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=u(i)),oa.geo.stream(n,a)),i.result()}function t(){return a=null,n}var e,r,u,i,a,o=4.5;return n.area=function(n){return Ho=0,oa.geo.stream(n,u(Xo)),Ho},n.centroid=function(n){return Ao=Co=zo=Lo=qo=To=Ro=Do=Po=0,oa.geo.stream(n,u(Bo)),Po?[Ro/Po,Do/Po]:To?[Lo/To,qo/To]:zo?[Ao/zo,Co/zo]:[NaN,NaN]},n.bounds=function(n){return Zo=Vo=-(Io=Yo=1/0),oa.geo.stream(n,u($o)),[[Io,Yo],[Zo,Vo]]},n.projection=function(n){return arguments.length?(u=(e=n)?n.stream||re(n):y,t()):e},n.context=function(n){return arguments.length?(i=null==(r=n)?new Wt:new te(n),"function"!=typeof o&&i.pointRadius(o),t()):r},n.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),n):o},n.projection(oa.geo.albersUsa()).context(null)},oa.geo.transform=function(n){return{stream:function(t){var e=new ue(t);for(var r in n)e[r]=n[r];return e}}},ue.prototype={point:function(n,t){this.stream.point(n,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},oa.geo.projection=ae,oa.geo.projectionMutator=oe,(oa.geo.equirectangular=function(){return ae(ce)}).raw=ce.invert=ce,oa.geo.rotation=function(n){function t(t){return t=n(t[0]*Oa,t[1]*Oa),t[0]*=Ia,t[1]*=Ia,t}return n=fe(n[0]%360*Oa,n[1]*Oa,n.length>2?n[2]*Oa:0),t.invert=function(t){return t=n.invert(t[0]*Oa,t[1]*Oa),t[0]*=Ia,t[1]*=Ia,t},t},se.invert=ce,oa.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=fe(-n[0]*Oa,-n[1]*Oa,0).invert,u=[];return e(null,null,1,{point:function(n,e){u.push(n=t(n,e)),n[0]*=Ia,n[1]*=Ia}}),{type:"Polygon",coordinates:[u]}}var t,e,r=[0,0],u=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ve((t=+r)*Oa,u*Oa),n):t},n.precision=function(r){return arguments.length?(e=ve(t*Oa,(u=+r)*Oa),n):u},n.angle(90)},oa.geo.distance=function(n,t){var e,r=(t[0]-n[0])*Oa,u=n[1]*Oa,i=t[1]*Oa,a=Math.sin(r),o=Math.cos(r),l=Math.sin(u),c=Math.cos(u),s=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((e=f*a)*e+(e=c*s-l*f*o)*e),l*s+c*f*o)},oa.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return oa.range(Math.ceil(i/d)*d,u,d).map(h).concat(oa.range(Math.ceil(c/m)*m,l,m).map(g)).concat(oa.range(Math.ceil(r/p)*p,e,p).filter(function(n){return Ma(n%d)>Da}).map(s)).concat(oa.range(Math.ceil(o/v)*v,a,v).filter(function(n){return Ma(n%m)>Da}).map(f))}var e,r,u,i,a,o,l,c,s,f,h,g,p=10,v=p,d=90,m=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(g(l).slice(1),h(u).reverse().slice(1),g(c).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(i=+t[0][0],u=+t[1][0],c=+t[0][1],l=+t[1][1],i>u&&(t=i,i=u,u=t),c>l&&(t=c,c=l,l=t),n.precision(y)):[[i,c],[u,l]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),o>a&&(t=o,o=a,a=t),n.precision(y)):[[r,o],[e,a]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(d=+t[0],m=+t[1],n):[d,m]},n.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],n):[p,v]},n.precision=function(t){return arguments.length?(y=+t,s=me(o,a,90),f=ye(r,e,y),h=me(c,l,90),g=ye(i,u,y),n):y},n.majorExtent([[-180,-90+Da],[180,90-Da]]).minorExtent([[-180,-80-Da],[180,80+Da]])},oa.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||u.apply(this,arguments)]}}var t,e,r=Me,u=xe;return n.distance=function(){return oa.geo.distance(t||r.apply(this,arguments),e||u.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(u=t,e="function"==typeof t?null:t,n):u},n.precision=function(){return arguments.length?n:0},n},oa.geo.interpolate=function(n,t){return be(n[0]*Oa,n[1]*Oa,t[0]*Oa,t[1]*Oa)},oa.geo.length=function(n){return Wo=0,oa.geo.stream(n,Jo),Wo};var Wo,Jo={sphere:b,point:b,lineStart:_e,lineEnd:b,polygonStart:b,polygonEnd:b},Go=we(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(oa.geo.azimuthalEqualArea=function(){return ae(Go)}).raw=Go;var Ko=we(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},y);(oa.geo.azimuthalEquidistant=function(){return ae(Ko)}).raw=Ko,(oa.geo.conicConformal=function(){return Vt(Se)}).raw=Se,(oa.geo.conicEquidistant=function(){return Vt(ke)}).raw=ke;var Qo=we(function(n){return 1/n},Math.atan);(oa.geo.gnomonic=function(){return ae(Qo)}).raw=Qo,Ne.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-Ha]},(oa.geo.mercator=function(){return Ee(Ne)}).raw=Ne;var nl=we(function(){return 1},Math.asin);(oa.geo.orthographic=function(){return ae(nl)}).raw=nl;var tl=we(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(oa.geo.stereographic=function(){return ae(tl)}).raw=tl,Ae.invert=function(n,t){return[-t,2*Math.atan(Math.exp(n))-Ha]},(oa.geo.transverseMercator=function(){var n=Ee(Ae),t=n.center,e=n.rotate;return n.center=function(n){return n?t([-n[1],n[0]]):(n=t(),[n[1],-n[0]])},n.rotate=function(n){return n?e([n[0],n[1],n.length>2?n[2]+90:90]):(n=e(),[n[0],n[1],n[2]-90])},e([0,0,90])}).raw=Ae,oa.geom={},oa.geom.hull=function(n){function t(n){if(n.length<3)return[];var t,u=En(e),i=En(r),a=n.length,o=[],l=[];for(t=0;a>t;t++)o.push([+u.call(this,n[t],t),+i.call(this,n[t],t),t]);for(o.sort(qe),t=0;a>t;t++)l.push([o[t][0],-o[t][1]]);var c=Le(o),s=Le(l),f=s[0]===c[0],h=s[s.length-1]===c[c.length-1],g=[];for(t=c.length-1;t>=0;--t)g.push(n[o[c[t]][2]]);for(t=+f;t<s.length-h;++t)g.push(n[o[s[t]][2]]);return g}var e=Ce,r=ze;return arguments.length?t(n):(t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t)},oa.geom.polygon=function(n){return Sa(n,el),n};var el=oa.geom.polygon.prototype=[];el.area=function(){for(var n,t=-1,e=this.length,r=this[e-1],u=0;++t<e;)n=r,r=this[t],u+=n[1]*r[0]-n[0]*r[1];return.5*u},el.centroid=function(n){var t,e,r=-1,u=this.length,i=0,a=0,o=this[u-1];for(arguments.length||(n=-1/(6*this.area()));++r<u;)t=o,o=this[r],e=t[0]*o[1]-o[0]*t[1],i+=(t[0]+o[0])*e,a+=(t[1]+o[1])*e;return[i*n,a*n]},el.clip=function(n){for(var t,e,r,u,i,a,o=De(n),l=-1,c=this.length-De(this),s=this[c-1];++l<c;){for(t=n.slice(),n.length=0,u=this[l],i=t[(r=t.length-o)-1],e=-1;++e<r;)a=t[e],Te(a,s,u)?(Te(i,s,u)||n.push(Re(i,a,s,u)),n.push(a)):Te(i,s,u)&&n.push(Re(i,a,s,u)),i=a;o&&n.push(n[0]),s=u}return n};var rl,ul,il,al,ol,ll=[],cl=[];Ye.prototype.prepare=function(){for(var n,t=this.edges,e=t.length;e--;)n=t[e].edge,n.b&&n.a||t.splice(e,1);return t.sort(Ve),t.length},tr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},er.prototype={insert:function(n,t){var e,r,u;if(n){if(t.P=n,t.N=n.N,n.N&&(n.N.P=t),n.N=t,n.R){for(n=n.R;n.L;)n=n.L;n.L=t}else n.R=t;e=n}else this._?(n=ar(this._),t.P=null,t.N=n,n.P=n.L=t,e=n):(t.P=t.N=null,this._=t,e=null);for(t.L=t.R=null,t.U=e,t.C=!0,n=t;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.R&&(ur(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ir(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,n=r):(n===e.L&&(ir(this,e),n=e,e=n.U),e.C=!1,r.C=!0,ur(this,r))),e=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var t,e,r,u=n.U,i=n.L,a=n.R;if(e=i?a?ar(a):i:a,u?u.L===n?u.L=e:u.R=e:this._=e,i&&a?(r=e.C,e.C=n.C,e.L=i,i.U=e,e!==a?(u=e.U,e.U=n.U,n=e.R,u.L=n,e.R=a,a.U=e):(e.U=u,u=e,n=e.R)):(r=n.C,n=e),n&&(n.U=u),!r){if(n&&n.C)return void(n.C=!1);do{if(n===this._)break;if(n===u.L){if(t=u.R,t.C&&(t.C=!1,u.C=!0,ur(this,u),t=u.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ir(this,t),t=u.R),t.C=u.C,u.C=t.R.C=!1,ur(this,u),n=this._;break}}else if(t=u.L,t.C&&(t.C=!1,u.C=!0,ir(this,u),t=u.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ur(this,t),t=u.L),t.C=u.C,u.C=t.L.C=!1,ir(this,u),n=this._;break}t.C=!0,n=u,u=u.U}while(!n.C);n&&(n.C=!1)}}},oa.geom.voronoi=function(n){function t(n){var t=new Array(n.length),r=o[0][0],u=o[0][1],i=o[1][0],a=o[1][1];return or(e(n),o).cells.forEach(function(e,o){var l=e.edges,c=e.site,s=t[o]=l.length?l.map(function(n){var t=n.start();return[t.x,t.y]}):c.x>=r&&c.x<=i&&c.y>=u&&c.y<=a?[[r,a],[i,a],[i,u],[r,u]]:[];s.point=n[o]}),t}function e(n){return n.map(function(n,t){return{x:Math.round(i(n,t)/Da)*Da,y:Math.round(a(n,t)/Da)*Da,i:t}})}var r=Ce,u=ze,i=r,a=u,o=sl;return n?t(n):(t.links=function(n){return or(e(n)).edges.filter(function(n){return n.l&&n.r}).map(function(t){return{source:n[t.l.i],target:n[t.r.i]}})},t.triangles=function(n){var t=[];return or(e(n)).cells.forEach(function(e,r){for(var u,i,a=e.site,o=e.edges.sort(Ve),l=-1,c=o.length,s=o[c-1].edge,f=s.l===a?s.r:s.l;++l<c;)u=s,i=f,s=o[l].edge,f=s.l===a?s.r:s.l,r<i.i&&r<f.i&&cr(a,i,f)<0&&t.push([n[r],n[i.i],n[f.i]])}),t},t.x=function(n){return arguments.length?(i=En(r=n),t):r},t.y=function(n){return arguments.length?(a=En(u=n),t):u},t.clipExtent=function(n){return arguments.length?(o=null==n?sl:n,t):o===sl?null:o},t.size=function(n){return arguments.length?t.clipExtent(n&&[[0,0],n]):o===sl?null:o&&o[1]},t)};var sl=[[-1e6,-1e6],[1e6,1e6]];oa.geom.delaunay=function(n){return oa.geom.voronoi().triangles(n)},oa.geom.quadtree=function(n,t,e,r,u){function i(n){function i(n,t,e,r,u,i,a,o){if(!isNaN(e)&&!isNaN(r))if(n.leaf){var l=n.x,s=n.y;if(null!=l)if(Ma(l-e)+Ma(s-r)<.01)c(n,t,e,r,u,i,a,o);else{var f=n.point;n.x=n.y=n.point=null,c(n,f,l,s,u,i,a,o),c(n,t,e,r,u,i,a,o)}else n.x=e,n.y=r,n.point=t}else c(n,t,e,r,u,i,a,o)}function c(n,t,e,r,u,a,o,l){var c=.5*(u+o),s=.5*(a+l),f=e>=c,h=r>=s,g=h<<1|f;n.leaf=!1,n=n.nodes[g]||(n.nodes[g]=hr()),f?u=c:o=c,h?a=s:l=s,i(n,t,e,r,u,a,o,l)}var s,f,h,g,p,v,d,m,y,M=En(o),x=En(l);if(null!=t)v=t,d=e,m=r,y=u;else if(m=y=-(v=d=1/0),f=[],h=[],p=n.length,a)for(g=0;p>g;++g)s=n[g],s.x<v&&(v=s.x),s.y<d&&(d=s.y),s.x>m&&(m=s.x),s.y>y&&(y=s.y),f.push(s.x),h.push(s.y);else for(g=0;p>g;++g){var b=+M(s=n[g],g),_=+x(s,g);v>b&&(v=b),d>_&&(d=_),b>m&&(m=b),_>y&&(y=_),f.push(b),h.push(_)}var w=m-v,S=y-d;w>S?y=d+w:m=v+S;var k=hr();if(k.add=function(n){i(k,n,+M(n,++g),+x(n,g),v,d,m,y)},k.visit=function(n){gr(n,k,v,d,m,y)},k.find=function(n){return pr(k,n[0],n[1],v,d,m,y)},g=-1,null==t){for(;++g<p;)i(k,n[g],f[g],h[g],v,d,m,y);--g}else n.forEach(k.add);return f=h=n=s=null,k}var a,o=Ce,l=ze;return(a=arguments.length)?(o=sr,l=fr,3===a&&(u=e,r=t,e=t=0),i(n)):(i.x=function(n){return arguments.length?(o=n,i):o},i.y=function(n){return arguments.length?(l=n,i):l},i.extent=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=+n[0][0],e=+n[0][1],r=+n[1][0],u=+n[1][1]),i):null==t?null:[[t,e],[r,u]]},i.size=function(n){return arguments.length?(null==n?t=e=r=u=null:(t=e=0,r=+n[0],u=+n[1]),i):null==t?null:[r-t,u-e]},i)},oa.interpolateRgb=vr,oa.interpolateObject=dr,oa.interpolateNumber=mr,oa.interpolateString=yr;var fl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hl=new RegExp(fl.source,"g");oa.interpolate=Mr,oa.interpolators=[function(n,t){var e=typeof t;return("string"===e?ro.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?vr:yr:t instanceof on?vr:Array.isArray(t)?xr:"object"===e&&isNaN(t)?dr:mr)(n,t)}],oa.interpolateArray=xr;var gl=function(){return y},pl=oa.map({linear:gl,poly:Er,quad:function(){return Sr},cubic:function(){return kr},sin:function(){return Ar},exp:function(){return Cr},circle:function(){return zr},elastic:Lr,back:qr,bounce:function(){return Tr}}),vl=oa.map({"in":y,out:_r,"in-out":wr,"out-in":function(n){return wr(_r(n))}});oa.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.slice(0,t):n,r=t>=0?n.slice(t+1):"in";return e=pl.get(e)||gl,r=vl.get(r)||y,br(r(e.apply(null,la.call(arguments,1))))},oa.interpolateHcl=Rr,oa.interpolateHsl=Dr,oa.interpolateLab=Pr,oa.interpolateRound=jr,oa.transform=function(n){var t=sa.createElementNS(oa.ns.prefix.svg,"g");return(oa.transform=function(n){if(null!=n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate()}return new Ur(e?e.matrix:dl)})(n)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var dl={a:1,b:0,c:0,d:1,e:0,f:0};oa.interpolateTransform=$r,oa.layout={},oa.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;++e<r;)t.push(Jr(n[e]));return t}},oa.layout.chord=function(){function n(){var n,c,f,h,g,p={},v=[],d=oa.range(i),m=[];for(e=[],r=[],n=0,h=-1;++h<i;){for(c=0,g=-1;++g<i;)c+=u[h][g];v.push(c),m.push(oa.range(i)),n+=c}for(a&&d.sort(function(n,t){return a(v[n],v[t])}),o&&m.forEach(function(n,t){n.sort(function(n,e){return o(u[t][n],u[t][e])})}),n=(Ua-s*i)/n,c=0,h=-1;++h<i;){for(f=c,g=-1;++g<i;){var y=d[h],M=m[y][g],x=u[y][M],b=c,_=c+=x*n;p[y+"-"+M]={index:y,subindex:M,startAngle:b,endAngle:_,value:x}}r[y]={index:y,startAngle:f,endAngle:c,value:v[y]},c+=s}for(h=-1;++h<i;)for(g=h-1;++g<i;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}l&&t()}function t(){e.sort(function(n,t){return l((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,u,i,a,o,l,c={},s=0;return c.matrix=function(n){return arguments.length?(i=(u=n)&&u.length,e=r=null,c):u},c.padding=function(n){return arguments.length?(s=n,e=r=null,c):s},c.sortGroups=function(n){return arguments.length?(a=n,e=r=null,c):a},c.sortSubgroups=function(n){return arguments.length?(o=n,e=null,c):o},c.sortChords=function(n){return arguments.length?(l=n,e&&t(),c):l},c.chords=function(){return e||n(),e},c.groups=function(){return r||n(),r},c},oa.layout.force=function(){function n(n){return function(t,e,r,u){if(t.point!==n){var i=t.cx-n.x,a=t.cy-n.y,o=u-e,l=i*i+a*a;if(l>o*o/m){if(v>l){var c=t.charge/l;n.px-=i*c,n.py-=a*c}return!0}if(t.point&&l&&v>l){var c=t.pointCharge/l;n.px-=i*c,n.py-=a*c}}return!t.charge}}function t(n){n.px=oa.event.x,n.py=oa.event.y,l.resume()}var e,r,u,i,a,o,l={},c=oa.dispatch("start","tick","end"),s=[1,1],f=.9,h=ml,g=yl,p=-30,v=Ml,d=.1,m=.64,M=[],x=[];return l.tick=function(){if((u*=.99)<.005)return e=null,c.end({type:"end",alpha:u=0}),!0;var t,r,l,h,g,v,m,y,b,_=M.length,w=x.length;for(r=0;w>r;++r)l=x[r],h=l.source,g=l.target,y=g.x-h.x,b=g.y-h.y,(v=y*y+b*b)&&(v=u*a[r]*((v=Math.sqrt(v))-i[r])/v,y*=v,b*=v,g.x-=y*(m=h.weight+g.weight?h.weight/(h.weight+g.weight):.5),g.y-=b*m,h.x+=y*(m=1-m),h.y+=b*m);if((m=u*d)&&(y=s[0]/2,b=s[1]/2,r=-1,m))for(;++r<_;)l=M[r],l.x+=(y-l.x)*m,l.y+=(b-l.y)*m;if(p)for(ru(t=oa.geom.quadtree(M),u,o),r=-1;++r<_;)(l=M[r]).fixed||t.visit(n(l));for(r=-1;++r<_;)l=M[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*f,l.y-=(l.py-(l.py=l.y))*f);c.tick({type:"tick",alpha:u})},l.nodes=function(n){return arguments.length?(M=n,l):M},l.links=function(n){return arguments.length?(x=n,l):x},l.size=function(n){return arguments.length?(s=n,l):s},l.linkDistance=function(n){return arguments.length?(h="function"==typeof n?n:+n,l):h},l.distance=l.linkDistance,l.linkStrength=function(n){return arguments.length?(g="function"==typeof n?n:+n,l):g},l.friction=function(n){return arguments.length?(f=+n,l):f},l.charge=function(n){return arguments.length?(p="function"==typeof n?n:+n,l):p},l.chargeDistance=function(n){return arguments.length?(v=n*n,l):Math.sqrt(v)},l.gravity=function(n){return arguments.length?(d=+n,l):d},l.theta=function(n){return arguments.length?(m=n*n,l):Math.sqrt(m)},l.alpha=function(n){return arguments.length?(n=+n,u?n>0?u=n:(e.c=null,e.t=NaN,e=null,c.end({type:"end",alpha:u=0})):n>0&&(c.start({type:"start",alpha:u=n}),e=qn(l.tick)),l):u},l.start=function(){function n(n,r){if(!e){for(e=new Array(u),l=0;u>l;++l)e[l]=[];for(l=0;c>l;++l){var i=x[l];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,o=e[t],l=-1,s=o.length;++l<s;)if(!isNaN(a=o[l][n]))return a;return Math.random()*r}var t,e,r,u=M.length,c=x.length,f=s[0],v=s[1];for(t=0;u>t;++t)(r=M[t]).index=t,r.weight=0;for(t=0;c>t;++t)r=x[t],"number"==typeof r.source&&(r.source=M[r.source]),"number"==typeof r.target&&(r.target=M[r.target]),++r.source.weight,++r.target.weight;for(t=0;u>t;++t)r=M[t],isNaN(r.x)&&(r.x=n("x",f)),isNaN(r.y)&&(r.y=n("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof h)for(t=0;c>t;++t)i[t]=+h.call(this,x[t],t);else for(t=0;c>t;++t)i[t]=h;if(a=[],"function"==typeof g)for(t=0;c>t;++t)a[t]=+g.call(this,x[t],t);else for(t=0;c>t;++t)a[t]=g;if(o=[],"function"==typeof p)for(t=0;u>t;++t)o[t]=+p.call(this,M[t],t);else for(t=0;u>t;++t)o[t]=p;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=oa.behavior.drag().origin(y).on("dragstart.force",Qr).on("drag.force",t).on("dragend.force",nu)),arguments.length?void this.on("mouseover.force",tu).on("mouseout.force",eu).call(r):r},oa.rebind(l,c,"on")};var ml=20,yl=1,Ml=1/0;oa.layout.hierarchy=function(){function n(u){var i,a=[u],o=[];for(u.depth=0;null!=(i=a.pop());)if(o.push(i),(c=e.call(n,i,i.depth))&&(l=c.length)){for(var l,c,s;--l>=0;)a.push(s=c[l]),s.parent=i,s.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(n,i,i.depth)||0),delete i.children;return au(u,function(n){var e,u;t&&(e=n.children)&&e.sort(t),r&&(u=n.parent)&&(u.value+=n.value)}),o}var t=cu,e=ou,r=lu;return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&&(iu(t,function(n){n.children&&(n.value=0)}),au(t,function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&&(e.value+=t.value)})),t},n},oa.layout.partition=function(){function n(t,e,r,u){var i=t.children;if(t.x=e,t.y=t.depth*u,t.dx=r,t.dy=u,i&&(a=i.length)){var a,o,l,c=-1;for(r=t.value?r/t.value:0;++c<a;)n(o=i[c],e,l=o.value*r,u),e+=l}}function t(n){var e=n.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,t(e[i]));return 1+r}function e(e,i){var a=r.call(this,e,i);return n(a[0],0,u[0],u[1]/t(a[0])),a}var r=oa.layout.hierarchy(),u=[1,1];return e.size=function(n){return arguments.length?(u=n,e):u},uu(e,r)},oa.layout.pie=function(){function n(a){var o,l=a.length,c=a.map(function(e,r){return+t.call(n,e,r)}),s=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof u?u.apply(this,arguments):u)-s,h=Math.min(Math.abs(f)/l,+("function"==typeof i?i.apply(this,arguments):i)),g=h*(0>f?-1:1),p=oa.sum(c),v=p?(f-l*g)/p:0,d=oa.range(l),m=[];return null!=e&&d.sort(e===xl?function(n,t){return c[t]-c[n]}:function(n,t){return e(a[n],a[t])}),d.forEach(function(n){m[n]={data:a[n],value:o=c[n],startAngle:s,endAngle:s+=o*v+g,padAngle:h}}),m}var t=Number,e=xl,r=0,u=Ua,i=0;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(u=t,n):u},n.padAngle=function(t){return arguments.length?(i=t,n):i},n};var xl={};oa.layout.stack=function(){function n(o,l){if(!(h=o.length))return o;var c=o.map(function(e,r){return t.call(n,e,r)}),s=c.map(function(t){return t.map(function(t,e){return[i.call(n,t,e),a.call(n,t,e)]})}),f=e.call(n,s,l);c=oa.permute(c,f),s=oa.permute(s,f);var h,g,p,v,d=r.call(n,s,l),m=c[0].length;for(p=0;m>p;++p)for(u.call(n,c[0][p],v=d[p],s[0][p][1]),g=1;h>g;++g)u.call(n,c[g][p],v+=s[g-1][p][1],s[g][p][1]);return o}var t=y,e=pu,r=vu,u=gu,i=fu,a=hu;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:bl.get(t)||pu,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:_l.get(t)||vu,n):r},n.x=function(t){return arguments.length?(i=t,n):i},n.y=function(t){return arguments.length?(a=t,n):a},n.out=function(t){return arguments.length?(u=t,n):u},n};var bl=oa.map({"inside-out":function(n){var t,e,r=n.length,u=n.map(du),i=n.map(mu),a=oa.range(r).sort(function(n,t){return u[n]-u[t]}),o=0,l=0,c=[],s=[];for(t=0;r>t;++t)e=a[t],l>o?(o+=i[e],c.push(e)):(l+=i[e],s.push(e));return s.reverse().concat(c)},reverse:function(n){return oa.range(n.length).reverse()},"default":pu}),_l=oa.map({silhouette:function(n){var t,e,r,u=n.length,i=n[0].length,a=[],o=0,l=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];r>o&&(o=r),a.push(r)}for(e=0;i>e;++e)l[e]=(o-a[e])/2;return l},wiggle:function(n){var t,e,r,u,i,a,o,l,c,s=n.length,f=n[0],h=f.length,g=[];for(g[0]=l=c=0,e=1;h>e;++e){for(t=0,u=0;s>t;++t)u+=n[t][e][1];for(t=0,i=0,o=f[e][0]-f[e-1][0];s>t;++t){for(r=0,a=(n[t][e][1]-n[t][e-1][1])/(2*o);t>r;++r)a+=(n[r][e][1]-n[r][e-1][1])/o;i+=a*n[t][e][1]}g[e]=l-=u?i/u*o:0,c>l&&(c=l)}for(e=0;h>e;++e)g[e]-=c;return g},expand:function(n){var t,e,r,u=n.length,i=n[0].length,a=1/u,o=[];for(e=0;i>e;++e){for(t=0,r=0;u>t;t++)r+=n[t][e][1];if(r)for(t=0;u>t;t++)n[t][e][1]/=r;else for(t=0;u>t;t++)n[t][e][1]=a}for(e=0;i>e;++e)o[e]=0;return o},zero:vu});oa.layout.histogram=function(){function n(n,i){for(var a,o,l=[],c=n.map(e,this),s=r.call(this,c,i),f=u.call(this,s,c,i),i=-1,h=c.length,g=f.length-1,p=t?1:1/h;++i<g;)a=l[i]=[],a.dx=f[i+1]-(a.x=f[i]),a.y=0;if(g>0)for(i=-1;++i<h;)o=c[i],o>=s[0]&&o<=s[1]&&(a=l[oa.bisect(f,o,1,g)-1],a.y+=p,a.push(n[i]));return l}var t=!0,e=Number,r=bu,u=Mu;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=En(t),n):r},n.bins=function(t){return arguments.length?(u="number"==typeof t?function(n){return xu(n,t)}:En(t),n):u},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},oa.layout.pack=function(){function n(n,i){var a=e.call(this,n,i),o=a[0],l=u[0],c=u[1],s=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(o.x=o.y=0,au(o,function(n){n.r=+s(n.value)}),au(o,Nu),r){var f=r*(t?1:Math.max(2*o.r/l,2*o.r/c))/2;au(o,function(n){n.r+=f}),au(o,Nu),au(o,function(n){n.r-=f})}return Cu(o,l/2,c/2,t?1:1/Math.max(2*o.r/l,2*o.r/c)),a}var t,e=oa.layout.hierarchy().sort(_u),r=0,u=[1,1];return n.size=function(t){return arguments.length?(u=t,n):u},n.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,n):t},n.padding=function(t){return arguments.length?(r=+t,n):r},uu(n,e)},oa.layout.tree=function(){function n(n,u){var s=a.call(this,n,u),f=s[0],h=t(f);if(au(h,e),h.parent.m=-h.z,iu(h,r),c)iu(f,i);else{var g=f,p=f,v=f;iu(f,function(n){n.x<g.x&&(g=n),n.x>p.x&&(p=n),n.depth>v.depth&&(v=n)});var d=o(g,p)/2-g.x,m=l[0]/(p.x+o(p,g)/2+d),y=l[1]/(v.depth||1);iu(f,function(n){n.x=(n.x+d)*m,n.y=n.depth*y})}return s}function t(n){for(var t,e={A:null,children:[n]},r=[e];null!=(t=r.pop());)for(var u,i=t.children,a=0,o=i.length;o>a;++a)r.push((i[a]=u={_:i[a],parent:t,children:(u=i[a].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=u);return e.children[0]}function e(n){var t=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(t.length){Du(n);var i=(t[0].z+t[t.length-1].z)/2;r?(n.z=r.z+o(n._,r._),n.m=n.z-i):n.z=i}else r&&(n.z=r.z+o(n._,r._));n.parent.A=u(n,r,n.parent.A||e[0])}function r(n){n._.x=n.z+n.parent.m,n.m+=n.parent.m}function u(n,t,e){if(t){for(var r,u=n,i=n,a=t,l=u.parent.children[0],c=u.m,s=i.m,f=a.m,h=l.m;a=Tu(a),u=qu(u),a&&u;)l=qu(l),i=Tu(i),i.a=n,r=a.z+f-u.z-c+o(a._,u._),r>0&&(Ru(Pu(a,n,e),n,r),c+=r,s+=r),f+=a.m,c+=u.m,h+=l.m,s+=i.m;a&&!Tu(i)&&(i.t=a,i.m+=f-s),u&&!qu(l)&&(l.t=u,l.m+=c-h,e=n)}return e}function i(n){n.x*=l[0],n.y=n.depth*l[1]}var a=oa.layout.hierarchy().sort(null).value(null),o=Lu,l=[1,1],c=null;return n.separation=function(t){return arguments.length?(o=t,n):o},n.size=function(t){return arguments.length?(c=null==(l=t)?i:null,n):c?null:l},n.nodeSize=function(t){return arguments.length?(c=null==(l=t)?null:i,n):c?l:null},uu(n,a)},oa.layout.cluster=function(){function n(n,i){var a,o=t.call(this,n,i),l=o[0],c=0;au(l,function(n){var t=n.children;t&&t.length?(n.x=Uu(t),n.y=ju(t)):(n.x=a?c+=e(n,a):0,n.y=0,a=n)});var s=Fu(l),f=Hu(l),h=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return au(l,u?function(n){n.x=(n.x-l.x)*r[0],n.y=(l.y-n.y)*r[1]}:function(n){n.x=(n.x-h)/(g-h)*r[0],n.y=(1-(l.y?n.y/l.y:1))*r[1]}),o}var t=oa.layout.hierarchy().sort(null).value(null),e=Lu,r=[1,1],u=!1;return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(u=null==(r=t),n):u?null:r},n.nodeSize=function(t){return arguments.length?(u=null!=(r=t),n):u?r:null},uu(n,t)},oa.layout.treemap=function(){function n(n,t){for(var e,r,u=-1,i=n.length;++u<i;)r=(e=n[u]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var i=e.children;if(i&&i.length){var a,o,l,c=f(e),s=[],h=i.slice(),p=1/0,v="slice"===g?c.dx:"dice"===g?c.dy:"slice-dice"===g?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(n(h,c.dx*c.dy/e.value),s.area=0;(l=h.length)>0;)s.push(a=h[l-1]),s.area+=a.area,"squarify"!==g||(o=r(s,v))<=p?(h.pop(),p=o):(s.area-=s.pop().area,u(s,v,c,!1),v=Math.min(c.dx,c.dy),s.length=s.area=0,p=1/0);s.length&&(u(s,v,c,!0),s.length=s.area=0),i.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var i,a=f(t),o=r.slice(),l=[];for(n(o,a.dx*a.dy/t.value),l.area=0;i=o.pop();)l.push(i),l.area+=i.area,null!=i.z&&(u(l,i.z?a.dx:a.dy,a,!o.length),l.length=l.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,u=0,i=1/0,a=-1,o=n.length;++a<o;)(e=n[a].area)&&(i>e&&(i=e),e>u&&(u=e));return r*=r,t*=t,r?Math.max(t*u*p/r,r/(t*i*p)):1/0}function u(n,t,e,r){var u,i=-1,a=n.length,o=e.x,c=e.y,s=t?l(n.area/t):0;
if(t==e.dx){for((r||s>e.dy)&&(s=e.dy);++i<a;)u=n[i],u.x=o,u.y=c,u.dy=s,o+=u.dx=Math.min(e.x+e.dx-o,s?l(u.area/s):0);u.z=!0,u.dx+=e.x+e.dx-o,e.y+=s,e.dy-=s}else{for((r||s>e.dx)&&(s=e.dx);++i<a;)u=n[i],u.x=o,u.y=c,u.dx=s,c+=u.dy=Math.min(e.y+e.dy-c,s?l(u.area/s):0);u.z=!1,u.dy+=e.y+e.dy-c,e.x+=s,e.dx-=s}}function i(r){var u=a||o(r),i=u[0];return i.x=i.y=0,i.value?(i.dx=c[0],i.dy=c[1]):i.dx=i.dy=0,a&&o.revalue(i),n([i],i.dx*i.dy/i.value),(a?e:t)(i),h&&(a=u),u}var a,o=oa.layout.hierarchy(),l=Math.round,c=[1,1],s=null,f=Ou,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(n){return arguments.length?(c=n,i):c},i.padding=function(n){function t(t){var e=n.call(i,t,t.depth);return null==e?Ou(t):Iu(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Iu(t,n)}if(!arguments.length)return s;var r;return f=null==(s=n)?Ou:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,i},i.round=function(n){return arguments.length?(l=n?Math.round:Number,i):l!=Number},i.sticky=function(n){return arguments.length?(h=n,a=null,i):h},i.ratio=function(n){return arguments.length?(p=n,i):p},i.mode=function(n){return arguments.length?(g=n+"",i):g},uu(i,o)},oa.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,u;do e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r;while(!u||u>1);return n+t*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var n=oa.random.normal.apply(oa,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=oa.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},oa.scale={};var wl={floor:y,ceil:y};oa.scale.linear=function(){return Wu([0,1],[0,1],Mr,!1)};var Sl={s:1,g:1,p:1,r:1,e:1};oa.scale.log=function(){return ri(oa.scale.linear().domain([0,1]),10,!0,[1,10])};var kl=oa.format(".0e"),Nl={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};oa.scale.pow=function(){return ui(oa.scale.linear(),1,[0,1])},oa.scale.sqrt=function(){return oa.scale.pow().exponent(.5)},oa.scale.ordinal=function(){return ai([],{t:"range",a:[[]]})},oa.scale.category10=function(){return oa.scale.ordinal().range(El)},oa.scale.category20=function(){return oa.scale.ordinal().range(Al)},oa.scale.category20b=function(){return oa.scale.ordinal().range(Cl)},oa.scale.category20c=function(){return oa.scale.ordinal().range(zl)};var El=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Al=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),Cl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),zl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);oa.scale.quantile=function(){return oi([],[])},oa.scale.quantize=function(){return li(0,1,[0,1])},oa.scale.threshold=function(){return ci([.5],[0,1])},oa.scale.identity=function(){return si([0,1])},oa.svg={},oa.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),s=a.apply(this,arguments)-Ha,f=o.apply(this,arguments)-Ha,h=Math.abs(f-s),g=s>f?0:1;if(n>c&&(p=c,c=n,n=p),h>=Fa)return t(c,g)+(n?t(n,1-g):"")+"Z";var p,v,d,m,y,M,x,b,_,w,S,k,N=0,E=0,A=[];if((m=(+l.apply(this,arguments)||0)/2)&&(d=i===Ll?Math.sqrt(n*n+c*c):+i.apply(this,arguments),g||(E*=-1),c&&(E=tn(d/c*Math.sin(m))),n&&(N=tn(d/n*Math.sin(m)))),c){y=c*Math.cos(s+E),M=c*Math.sin(s+E),x=c*Math.cos(f-E),b=c*Math.sin(f-E);var C=Math.abs(f-s-2*E)<=ja?0:1;if(E&&mi(y,M,x,b)===g^C){var z=(s+f)/2;y=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else y=M=0;if(n){_=n*Math.cos(f-N),w=n*Math.sin(f-N),S=n*Math.cos(s+N),k=n*Math.sin(s+N);var L=Math.abs(s-f+2*N)<=ja?0:1;if(N&&mi(_,w,S,k)===1-g^L){var q=(s+f)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Da&&(p=Math.min(Math.abs(c-n)/2,+u.apply(this,arguments)))>.001){v=c>n^g?0:1;var T=p,R=p;if(ja>h){var D=null==S?[_,w]:null==x?[y,M]:Re([y,M],[S,k],[x,b],[_,w]),P=y-D[0],j=M-D[1],U=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*U+j*F)/(Math.sqrt(P*P+j*j)*Math.sqrt(U*U+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(p,(n-O)/(H-1)),T=Math.min(p,(c-O)/(H+1))}if(null!=x){var I=yi(null==S?[_,w]:[S,k],[y,M],c,T,g),Y=yi([x,b],[_,w],c,T,g);p===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-g^mi(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",g," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",y,",",M);if(null!=S){var Z=yi([y,M],[S,k],n,-R,g),V=yi([_,w],null==x?[y,M]:[x,b],n,-R,g);p===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",g^mi(V[1][0],V[1][1],Z[1][0],Z[1][1]),",",1-g," ",Z[1],"A",R,",",R," 0 0,",v," ",Z[0]):A.push("L",V[0],"A",R,",",R," 0 0,",v," ",Z[0])}else A.push("L",_,",",w)}else A.push("M",y,",",M),null!=x&&A.push("A",c,",",c," 0 ",C,",",g," ",x,",",b),A.push("L",_,",",w),null!=S&&A.push("A",n,",",n," 0 ",L,",",1-g," ",S,",",k);return A.push("Z"),A.join("")}function t(n,t){return"M0,"+n+"A"+n+","+n+" 0 1,"+t+" 0,"+-n+"A"+n+","+n+" 0 1,"+t+" 0,"+n}var e=hi,r=gi,u=fi,i=Ll,a=pi,o=vi,l=di;return n.innerRadius=function(t){return arguments.length?(e=En(t),n):e},n.outerRadius=function(t){return arguments.length?(r=En(t),n):r},n.cornerRadius=function(t){return arguments.length?(u=En(t),n):u},n.padRadius=function(t){return arguments.length?(i=t==Ll?Ll:En(t),n):i},n.startAngle=function(t){return arguments.length?(a=En(t),n):a},n.endAngle=function(t){return arguments.length?(o=En(t),n):o},n.padAngle=function(t){return arguments.length?(l=En(t),n):l},n.centroid=function(){var n=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Ha;return[Math.cos(t)*n,Math.sin(t)*n]},n};var Ll="auto";oa.svg.line=function(){return Mi(y)};var ql=oa.map({linear:xi,"linear-closed":bi,step:_i,"step-before":wi,"step-after":Si,basis:zi,"basis-open":Li,"basis-closed":qi,bundle:Ti,cardinal:Ei,"cardinal-open":ki,"cardinal-closed":Ni,monotone:Fi});ql.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Tl=[0,2/3,1/3,0],Rl=[0,1/3,2/3,0],Dl=[0,1/6,2/3,1/6];oa.svg.line.radial=function(){var n=Mi(Hi);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},wi.reverse=Si,Si.reverse=wi,oa.svg.area=function(){return Oi(y)},oa.svg.area.radial=function(){var n=Oi(Hi);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},oa.svg.chord=function(){function n(n,o){var l=t(this,i,n,o),c=t(this,a,n,o);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(e(l,c)?u(l.r,l.p1,l.r,l.p0):u(l.r,l.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+u(c.r,c.p1,l.r,l.p0))+"Z"}function t(n,t,e,r){var u=t.call(n,e,r),i=o.call(n,u,r),a=l.call(n,u,r)-Ha,s=c.call(n,u,r)-Ha;return{r:i,a0:a,a1:s,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(s),i*Math.sin(s)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>ja)+",1 "+t}function u(n,t,e,r){return"Q 0,0 "+r}var i=Me,a=xe,o=Ii,l=pi,c=vi;return n.radius=function(t){return arguments.length?(o=En(t),n):o},n.source=function(t){return arguments.length?(i=En(t),n):i},n.target=function(t){return arguments.length?(a=En(t),n):a},n.startAngle=function(t){return arguments.length?(l=En(t),n):l},n.endAngle=function(t){return arguments.length?(c=En(t),n):c},n},oa.svg.diagonal=function(){function n(n,u){var i=t.call(this,n,u),a=e.call(this,n,u),o=(i.y+a.y)/2,l=[i,{x:i.x,y:o},{x:a.x,y:o},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var t=Me,e=xe,r=Yi;return n.source=function(e){return arguments.length?(t=En(e),n):t},n.target=function(t){return arguments.length?(e=En(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},oa.svg.diagonal.radial=function(){var n=oa.svg.diagonal(),t=Yi,e=n.projection;return n.projection=function(n){return arguments.length?e(Zi(t=n)):t},n},oa.svg.symbol=function(){function n(n,r){return(Pl.get(t.call(this,n,r))||$i)(e.call(this,n,r))}var t=Xi,e=Vi;return n.type=function(e){return arguments.length?(t=En(e),n):t},n.size=function(t){return arguments.length?(e=En(t),n):e},n};var Pl=oa.map({circle:$i,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*Ul)),e=t*Ul;return"M0,"+-t+"L"+e+",0 0,"+t+" "+-e+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/jl),e=t*jl/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});oa.svg.symbolTypes=Pl.keys();var jl=Math.sqrt(3),Ul=Math.tan(30*Oa);Aa.transition=function(n){for(var t,e,r=Fl||++Yl,u=Ki(n),i=[],a=Hl||{time:Date.now(),ease:Nr,delay:0,duration:250},o=-1,l=this.length;++o<l;){i.push(t=[]);for(var c=this[o],s=-1,f=c.length;++s<f;)(e=c[s])&&Qi(e,s,u,r,a),t.push(e)}return Wi(i,u,r)},Aa.interrupt=function(n){return this.each(null==n?Ol:Bi(Ki(n)))};var Fl,Hl,Ol=Bi(Ki()),Il=[],Yl=0;Il.call=Aa.call,Il.empty=Aa.empty,Il.node=Aa.node,Il.size=Aa.size,oa.transition=function(n,t){return n&&n.transition?Fl?n.transition(t):n:oa.selection().transition(n)},oa.transition.prototype=Il,Il.select=function(n){var t,e,r,u=this.id,i=this.namespace,a=[];n=A(n);for(var o=-1,l=this.length;++o<l;){a.push(t=[]);for(var c=this[o],s=-1,f=c.length;++s<f;)(r=c[s])&&(e=n.call(r,r.__data__,s,o))?("__data__"in r&&(e.__data__=r.__data__),Qi(e,s,i,u,r[i][u]),t.push(e)):t.push(null)}return Wi(a,i,u)},Il.selectAll=function(n){var t,e,r,u,i,a=this.id,o=this.namespace,l=[];n=C(n);for(var c=-1,s=this.length;++c<s;)for(var f=this[c],h=-1,g=f.length;++h<g;)if(r=f[h]){i=r[o][a],e=n.call(r,r.__data__,h,c),l.push(t=[]);for(var p=-1,v=e.length;++p<v;)(u=e[p])&&Qi(u,p,o,a,i),t.push(u)}return Wi(l,o,a)},Il.filter=function(n){var t,e,r,u=[];"function"!=typeof n&&(n=O(n));for(var i=0,a=this.length;a>i;i++){u.push(t=[]);for(var e=this[i],o=0,l=e.length;l>o;o++)(r=e[o])&&n.call(r,r.__data__,o,i)&&t.push(r)}return Wi(u,this.namespace,this.id)},Il.tween=function(n,t){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(n):Y(this,null==t?function(t){t[r][e].tween.remove(n)}:function(u){u[r][e].tween.set(n,t)})},Il.attr=function(n,t){function e(){this.removeAttribute(o)}function r(){this.removeAttributeNS(o.space,o.local)}function u(n){return null==n?e:(n+="",function(){var t,e=this.getAttribute(o);return e!==n&&(t=a(e,n),function(n){this.setAttribute(o,t(n))})})}function i(n){return null==n?r:(n+="",function(){var t,e=this.getAttributeNS(o.space,o.local);return e!==n&&(t=a(e,n),function(n){this.setAttributeNS(o.space,o.local,t(n))})})}if(arguments.length<2){for(t in n)this.attr(t,n[t]);return this}var a="transform"==n?$r:Mr,o=oa.ns.qualify(n);return Ji(this,"attr."+n,t,o.local?i:u)},Il.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(u));return r&&function(n){this.setAttribute(u,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(u.space,u.local));return r&&function(n){this.setAttributeNS(u.space,u.local,r(n))}}var u=oa.ns.qualify(n);return this.tween("attr."+n,u.local?r:e)},Il.style=function(n,e,r){function u(){this.style.removeProperty(n)}function i(e){return null==e?u:(e+="",function(){var u,i=t(this).getComputedStyle(this,null).getPropertyValue(n);return i!==e&&(u=Mr(i,e),function(t){this.style.setProperty(n,u(t),r)})})}var a=arguments.length;if(3>a){if("string"!=typeof n){2>a&&(e="");for(r in n)this.style(r,n[r],e);return this}r=""}return Ji(this,"style."+n,e,i)},Il.styleTween=function(n,e,r){function u(u,i){var a=e.call(this,u,i,t(this).getComputedStyle(this,null).getPropertyValue(n));return a&&function(t){this.style.setProperty(n,a(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+n,u)},Il.text=function(n){return Ji(this,"text",n,Gi)},Il.remove=function(){var n=this.namespace;return this.each("end.transition",function(){var t;this[n].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Il.ease=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].ease:("function"!=typeof n&&(n=oa.ease.apply(oa,arguments)),Y(this,function(r){r[e][t].ease=n}))},Il.delay=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].delay:Y(this,"function"==typeof n?function(r,u,i){r[e][t].delay=+n.call(r,r.__data__,u,i)}:(n=+n,function(r){r[e][t].delay=n}))},Il.duration=function(n){var t=this.id,e=this.namespace;return arguments.length<1?this.node()[e][t].duration:Y(this,"function"==typeof n?function(r,u,i){r[e][t].duration=Math.max(1,n.call(r,r.__data__,u,i))}:(n=Math.max(1,n),function(r){r[e][t].duration=n}))},Il.each=function(n,t){var e=this.id,r=this.namespace;if(arguments.length<2){var u=Hl,i=Fl;try{Fl=e,Y(this,function(t,u,i){Hl=t[r][e],n.call(t,t.__data__,u,i)})}finally{Hl=u,Fl=i}}else Y(this,function(u){var i=u[r][e];(i.event||(i.event=oa.dispatch("start","end","interrupt"))).on(n,t)});return this},Il.transition=function(){for(var n,t,e,r,u=this.id,i=++Yl,a=this.namespace,o=[],l=0,c=this.length;c>l;l++){o.push(n=[]);for(var t=this[l],s=0,f=t.length;f>s;s++)(e=t[s])&&(r=e[a][u],Qi(e,s,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),n.push(e)}return Wi(o,a,i)},oa.svg.axis=function(){function n(n){n.each(function(){var n,c=oa.select(this),s=this.__chart__||e,f=this.__chart__=e.copy(),h=null==l?f.ticks?f.ticks.apply(f,o):f.domain():l,g=null==t?f.tickFormat?f.tickFormat.apply(f,o):y:t,p=c.selectAll(".tick").data(h,f),v=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Da),d=oa.transition(p.exit()).style("opacity",Da).remove(),m=oa.transition(p.order()).style("opacity",1),M=Math.max(u,0)+a,x=Zu(f),b=c.selectAll(".domain").data([0]),_=(b.enter().append("path").attr("class","domain"),oa.transition(b));v.append("line"),v.append("text");var w,S,k,N,E=v.select("line"),A=m.select("line"),C=p.select("text").text(g),z=v.select("text"),L=m.select("text"),q="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(n=na,w="x",k="y",S="x2",N="y2",C.attr("dy",0>q?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+q*i+"V0H"+x[1]+"V"+q*i)):(n=ta,w="y",k="x",S="y2",N="x2",C.attr("dy",".32em").style("text-anchor",0>q?"end":"start"),_.attr("d","M"+q*i+","+x[0]+"H0V"+x[1]+"H"+q*i)),E.attr(N,q*u),z.attr(k,q*M),A.attr(S,0).attr(N,q*u),L.attr(w,0).attr(k,q*M),f.rangeBand){var T=f,R=T.rangeBand()/2;s=f=function(n){return T(n)+R}}else s.rangeBand?s=f:d.call(n,f,s);v.call(n,s,f),m.call(n,f,f)})}var t,e=oa.scale.linear(),r=Zl,u=6,i=6,a=3,o=[10],l=null;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in Vl?t+"":Zl,n):r},n.ticks=function(){return arguments.length?(o=ca(arguments),n):o},n.tickValues=function(t){return arguments.length?(l=t,n):l},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t){var e=arguments.length;return e?(u=+t,i=+arguments[e-1],n):u},n.innerTickSize=function(t){return arguments.length?(u=+t,n):u},n.outerTickSize=function(t){return arguments.length?(i=+t,n):i},n.tickPadding=function(t){return arguments.length?(a=+t,n):a},n.tickSubdivide=function(){return arguments.length&&n},n};var Zl="bottom",Vl={top:1,right:1,bottom:1,left:1};oa.svg.brush=function(){function n(t){t.each(function(){var t=oa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=t.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var o=t.selectAll(".resize").data(v,y);o.exit().remove(),o.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return Xl[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),o.style("display",n.empty()?"none":null);var l,f=oa.transition(t),h=oa.transition(a);c&&(l=Zu(c),h.attr("x",l[0]).attr("width",l[1]-l[0]),r(f)),s&&(l=Zu(s),h.attr("y",l[0]).attr("height",l[1]-l[0]),u(f)),e(f)})}function e(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+f[+/e$/.test(n)]+","+h[+/^s/.test(n)]+")"})}function r(n){n.select(".extent").attr("x",f[0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function u(n){n.select(".extent").attr("y",h[0]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function i(){function i(){32==oa.event.keyCode&&(C||(M=null,L[0]-=f[1],L[1]-=h[1],C=2),S())}function v(){32==oa.event.keyCode&&2==C&&(L[0]+=f[1],L[1]+=h[1],C=0,S())}function d(){var n=oa.mouse(b),t=!1;x&&(n[0]+=x[0],n[1]+=x[1]),C||(oa.event.altKey?(M||(M=[(f[0]+f[1])/2,(h[0]+h[1])/2]),L[0]=f[+(n[0]<M[0])],L[1]=h[+(n[1]<M[1])]):M=null),E&&m(n,c,0)&&(r(k),t=!0),A&&m(n,s,1)&&(u(k),t=!0),t&&(e(k),w({type:"brush",mode:C?"move":"resize"}))}function m(n,t,e){var r,u,i=Zu(t),l=i[0],c=i[1],s=L[e],v=e?h:f,d=v[1]-v[0];return C&&(l-=s,c-=d+s),r=(e?p:g)?Math.max(l,Math.min(c,n[e])):n[e],C?u=(r+=s)+d:(M&&(s=Math.max(l,Math.min(c,2*M[e]-r))),r>s?(u=r,r=s):u=s),v[0]!=r||v[1]!=u?(e?o=null:a=null,v[0]=r,v[1]=u,!0):void 0}function y(){d(),k.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),oa.select("body").style("cursor",null),q.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),z(),w({type:"brushend"})}var M,x,b=this,_=oa.select(oa.event.target),w=l.of(b,arguments),k=oa.select(b),N=_.datum(),E=!/^(n|s)$/.test(N)&&c,A=!/^(e|w)$/.test(N)&&s,C=_.classed("extent"),z=W(b),L=oa.mouse(b),q=oa.select(t(b)).on("keydown.brush",i).on("keyup.brush",v);if(oa.event.changedTouches?q.on("touchmove.brush",d).on("touchend.brush",y):q.on("mousemove.brush",d).on("mouseup.brush",y),k.interrupt().selectAll("*").interrupt(),C)L[0]=f[0]-L[0],L[1]=h[0]-L[1];else if(N){var T=+/w$/.test(N),R=+/^n/.test(N);x=[f[1-T]-L[0],h[1-R]-L[1]],L[0]=f[T],L[1]=h[R]}else oa.event.altKey&&(M=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),oa.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),d()}var a,o,l=N(n,"brushstart","brush","brushend"),c=null,s=null,f=[0,0],h=[0,0],g=!0,p=!0,v=$l[0];return n.event=function(n){n.each(function(){var n=l.of(this,arguments),t={x:f,y:h,i:a,j:o},e=this.__chart__||t;this.__chart__=t,Fl?oa.select(this).transition().each("start.brush",function(){a=e.i,o=e.j,f=e.x,h=e.y,n({type:"brushstart"})}).tween("brush:brush",function(){var e=xr(f,t.x),r=xr(h,t.y);return a=o=null,function(u){f=t.x=e(u),h=t.y=r(u),n({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,o=t.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})}):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))})},n.x=function(t){return arguments.length?(c=t,v=$l[!c<<1|!s],n):c},n.y=function(t){return arguments.length?(s=t,v=$l[!c<<1|!s],n):s},n.clamp=function(t){return arguments.length?(c&&s?(g=!!t[0],p=!!t[1]):c?g=!!t:s&&(p=!!t),n):c&&s?[g,p]:c?g:s?p:null},n.extent=function(t){var e,r,u,i,l;return arguments.length?(c&&(e=t[0],r=t[1],s&&(e=e[0],r=r[0]),a=[e,r],c.invert&&(e=c(e),r=c(r)),e>r&&(l=e,e=r,r=l),(e!=f[0]||r!=f[1])&&(f=[e,r])),s&&(u=t[0],i=t[1],c&&(u=u[1],i=i[1]),o=[u,i],s.invert&&(u=s(u),i=s(i)),u>i&&(l=u,u=i,i=l),(u!=h[0]||i!=h[1])&&(h=[u,i])),n):(c&&(a?(e=a[0],r=a[1]):(e=f[0],r=f[1],c.invert&&(e=c.invert(e),r=c.invert(r)),e>r&&(l=e,e=r,r=l))),s&&(o?(u=o[0],i=o[1]):(u=h[0],i=h[1],s.invert&&(u=s.invert(u),i=s.invert(i)),u>i&&(l=u,u=i,i=l))),c&&s?[[e,u],[r,i]]:c?[e,r]:s&&[u,i])},n.clear=function(){return n.empty()||(f=[0,0],h=[0,0],a=o=null),n},n.empty=function(){return!!c&&f[0]==f[1]||!!s&&h[0]==h[1]},oa.rebind(n,l,"on")};var Xl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$l=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Bl=ho.format=Mo.timeFormat,Wl=Bl.utc,Jl=Wl("%Y-%m-%dT%H:%M:%S.%LZ");Bl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ea:Jl,ea.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},ea.toString=Jl.toString,ho.second=On(function(n){return new go(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ho.seconds=ho.second.range,ho.seconds.utc=ho.second.utc.range,ho.minute=On(function(n){return new go(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ho.minutes=ho.minute.range,ho.minutes.utc=ho.minute.utc.range,ho.hour=On(function(n){var t=n.getTimezoneOffset()/60;return new go(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ho.hours=ho.hour.range,ho.hours.utc=ho.hour.utc.range,ho.month=On(function(n){return n=ho.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ho.months=ho.month.range,ho.months.utc=ho.month.utc.range;var Gl=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Kl=[[ho.second,1],[ho.second,5],[ho.second,15],[ho.second,30],[ho.minute,1],[ho.minute,5],[ho.minute,15],[ho.minute,30],[ho.hour,1],[ho.hour,3],[ho.hour,6],[ho.hour,12],[ho.day,1],[ho.day,2],[ho.week,1],[ho.month,1],[ho.month,3],[ho.year,1]],Ql=Bl.multi([[".%L",function(n){return n.getMilliseconds()}],[":%S",function(n){return n.getSeconds()}],["%I:%M",function(n){return n.getMinutes()}],["%I %p",function(n){return n.getHours()}],["%a %d",function(n){return n.getDay()&&1!=n.getDate()}],["%b %d",function(n){return 1!=n.getDate()}],["%B",function(n){return n.getMonth()}],["%Y",zt]]),nc={range:function(n,t,e){return oa.range(Math.ceil(n/e)*e,+t,e).map(ua)},floor:y,ceil:y};Kl.year=ho.year,ho.scale=function(){return ra(oa.scale.linear(),Kl,Ql)};var tc=Kl.map(function(n){return[n[0].utc,n[1]]}),ec=Wl.multi([[".%L",function(n){return n.getUTCMilliseconds()}],[":%S",function(n){return n.getUTCSeconds()}],["%I:%M",function(n){return n.getUTCMinutes()}],["%I %p",function(n){return n.getUTCHours()}],["%a %d",function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],["%b %d",function(n){return 1!=n.getUTCDate()}],["%B",function(n){return n.getUTCMonth()}],["%Y",zt]]);tc.year=ho.year.utc,ho.scale.utc=function(){return ra(oa.scale.linear(),tc,ec)},oa.text=An(function(n){return n.responseText}),oa.json=function(n,t){return Cn(n,"application/json",ia,t)},oa.html=function(n,t){return Cn(n,"text/html",aa,t)},oa.xml=An(function(n){return n.responseXML}),"function"==typeof define&&define.amd?(define('d3v3',oa)):"object"==typeof module&&module.exports?module.exports=oa:this.d3v3=oa;window.d3v3=oa}();
/*! html2canvas 1.3.2 <https://html2canvas.hertzen.com> Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com> Released under MIT License  */
!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?A["html2canvasV1"]=e():"function"==typeof define&&define.amd?define(e):(A="undefined"!=typeof globalThis?globalThis:A||self).html2canvasV1=e()}(window,function(){"use strict";
var B=function(A,e){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(A,e)};function A(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}B(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var h=function(){return(h=Object.assign||function(A){for(var e,t=1,B=arguments.length;t<B;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r]);return A}).apply(this,arguments)};function a(A,s,o,i){return new(o=o||Promise)(function(t,e){function B(A){try{n(i.next(A))}catch(A){e(A)}}function r(A){try{n(i.throw(A))}catch(A){e(A)}}function n(A){var e;A.done?t(A.value):((e=A.value)instanceof o?e:new o(function(A){A(e)})).then(B,r)}n((i=i.apply(A,s||[])).next())})}function H(t,B){var r,n,s,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},A={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function e(e){return function(A){return function(e){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(s=2&e[0]?n.return:e[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,e[1])).done)return s;switch(n=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return o.label++,{value:e[1],done:!1};case 5:o.label++,n=e[1],e=[0];continue;case 7:e=o.ops.pop(),o.trys.pop();continue;default:if(!(s=0<(s=o.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){o=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){o.label=e[1];break}if(6===e[0]&&o.label<s[1]){o.label=s[1],s=e;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(e);break}s[2]&&o.ops.pop(),o.trys.pop();continue}e=B.call(t,o)}catch(A){e=[6,A],n=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,A])}}}function t(A,e,t){if(t||2===arguments.length)for(var B,r=0,n=e.length;r<n;r++)!B&&r in e||((B=B||Array.prototype.slice.call(e,0,r))[r]=e[r]);return A.concat(B||e)}var d=(r.prototype.add=function(A,e,t,B){return new r(this.left+A,this.top+e,this.width+t,this.height+B)},r.fromClientRect=function(A,e){return new r(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},r.fromDOMRectList=function(A,e){e=e[0];return e?new r(e.x+A.windowBounds.left,e.y+A.windowBounds.top,e.width,e.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r);function r(A,e,t,B){this.left=A,this.top=e,this.width=t,this.height=B}for(var E=function(A,e){return d.fromClientRect(A,e.getBoundingClientRect())},Q=function(A){for(var e=[],t=0,B=A.length;t<B;){var r,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<B?56320==(64512&(r=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--):e.push(n)}return e},g=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var B=[],r=-1,n="";++r<t;){var s=A[r];s<=65535?B.push(s):(s-=65536,B.push(55296+(s>>10),s%1024+56320)),(r+1===t||16384<B.length)&&(n+=String.fromCharCode.apply(String,B),B.length=0)}return n},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<e.length;n++)c[e.charCodeAt(n)]=n;function s(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var o=(i.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i);function i(A,e,t,B,r,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=B,this.index=r,this.data=n}function w(A,e,t,B){var r=B[t];if(Array.isArray(A)?-1!==A.indexOf(r):A===r)for(var n=t;n<=B.length;){if((o=B[++n])===e)return 1;if(o!==p)break}if(r===p)for(n=t;0<n;){var s=B[--n];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o,i=t;i<=B.length;){if((o=B[++i])===e)return 1;if(o!==p)break}if(s!==p)break}}function C(A,e){for(var t=A;0<=t;){var B=e[t];if(B!==p)return B;t--}return 0}function U(t,A){var e=(r=function(A,B){void 0===B&&(B="strict");var r=[],n=[],s=[];return A.forEach(function(A,e){var t=j.get(A);if(50<t?(s.push(!0),t-=50):s.push(!1),-1!==["normal","auto","loose"].indexOf(B)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(e),r.push(16);if(4!==t&&11!==t)return n.push(e),31===t?r.push("strict"===B?R:J):t===W||29===t?r.push(G):43===t?131072<=A&&A<=196605||196608<=A&&A<=262141?r.push(J):r.push(G):void r.push(t);if(0===e)return n.push(e),r.push(G);t=r[e-1];return-1===tA.indexOf(t)?(n.push(n[e-1]),r.push(t)):(n.push(e),r.push(G))}),[n,r,s]}(t,(A=A||{lineBreak:"normal",wordBreak:"normal"}).lineBreak))[0],B=r[1],r=r[2];return[e,B="break-all"===A.wordBreak||"break-word"===A.wordBreak?B.map(function(A){return-1!==[T,G,W].indexOf(A)?J:A}):B,"keep-all"===A.wordBreak?r.map(function(A,e){return A&&19968<=t[e]&&t[e]<=40959}):void 0]}var l,F,u,f,I,p=10,y=13,K=15,L=17,m=18,D=19,b=20,R=21,O=22,S=24,T=25,v=26,M=27,N=28,G=30,x=32,V=33,P=34,k=35,J=37,X=38,_=39,Y=40,W=42,Z=[9001,65288],q="Ã—",j=(u=function(A){var e,t,B,r,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=c[A.charCodeAt(Q)],t=c[A.charCodeAt(Q+1)],B=c[A.charCodeAt(Q+2)],r=c[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|B>>2,i[o++]=(3&B)<<6|63&r;return n}(l=" "),f=Array.isArray(u)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=4)t.push(A[B+3]<<24|A[B+2]<<16|A[B+1]<<8|A[B]);return t}(u):new Uint32Array(u),I=Array.isArray(u)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=2)t.push(A[B+1]<<8|A[B]);return t}(u):new Uint16Array(u),l=s(I,12,f[4]/2),F=2===f[5]?s(I,(24+f[4])/2):(u=f,I=Math.ceil((24+f[4])/4),u.slice?u.slice(I,F):new Uint32Array(Array.prototype.slice.call(u,I,F))),new o(f[0],f[1],f[2],f[3],l,F)),z=[G,36],$=[1,2,3,5],AA=[p,8],eA=[M,v],tA=$.concat(AA),BA=[X,_,Y,P,k],rA=[K,y],nA=(sA.prototype.slice=function(){return g.apply(void 0,this.codePoints.slice(this.start,this.end))},sA);function sA(A,e,t,B){this.codePoints=A,this.required="!"===e,this.start=t,this.end=B}function oA(A,e){var t=Q(A),B=(e=U(t,e))[0],r=e[1],n=e[2],s=t.length,o=0,i=0;return{next:function(){if(s<=i)return{done:!0,value:null};for(var A=q;i<s&&(A=function(A,e,t,B,r){if(0===t[B])return q;var n=B-1;if(Array.isArray(r)&&!0===r[n])return q;var s=n-1,o=1+n,i=e[n],B=0<=s?e[s]:0,r=e[o];if(2===i&&3===r)return q;if(-1!==$.indexOf(i))return"!";if(-1!==$.indexOf(r))return q;if(-1!==AA.indexOf(r))return q;if(8===C(n,e))return"Ã·";if(11===j.get(A[n]))return q;if((i===x||i===V)&&11===j.get(A[o]))return q;if(7===i||7===r)return q;if(9===i)return q;if(-1===[p,y,K].indexOf(i)&&9===r)return q;if(-1!==[L,m,D,S,N].indexOf(r))return q;if(C(n,e)===O)return q;if(w(23,O,n,e))return q;if(w([L,m],R,n,e))return q;if(w(12,12,n,e))return q;if(i===p)return"Ã·";if(23===i||23===r)return q;if(16===r||16===i)return"Ã·";if(-1!==[y,K,R].indexOf(r)||14===i)return q;if(36===B&&-1!==rA.indexOf(i))return q;if(i===N&&36===r)return q;if(r===b)return q;if(-1!==z.indexOf(r)&&i===T||-1!==z.indexOf(i)&&r===T)return q;if(i===M&&-1!==[J,x,V].indexOf(r)||-1!==[J,x,V].indexOf(i)&&r===v)return q;if(-1!==z.indexOf(i)&&-1!==eA.indexOf(r)||-1!==eA.indexOf(i)&&-1!==z.indexOf(r))return q;if(-1!==[M,v].indexOf(i)&&(r===T||-1!==[O,K].indexOf(r)&&e[1+o]===T)||-1!==[O,K].indexOf(i)&&r===T||i===T&&-1!==[T,N,S].indexOf(r))return q;if(-1!==[T,N,S,L,m].indexOf(r))for(var Q=n;0<=Q;){if((c=e[Q])===T)return q;if(-1===[N,S].indexOf(c))break;Q--}if(-1!==[M,v].indexOf(r))for(var c,Q=-1!==[L,m].indexOf(i)?s:n;0<=Q;){if((c=e[Q])===T)return q;if(-1===[N,S].indexOf(c))break;Q--}if(X===i&&-1!==[X,_,P,k].indexOf(r)||-1!==[_,P].indexOf(i)&&-1!==[_,Y].indexOf(r)||-1!==[Y,k].indexOf(i)&&r===Y)return q;if(-1!==BA.indexOf(i)&&-1!==[b,v].indexOf(r)||-1!==BA.indexOf(r)&&i===M)return q;if(-1!==z.indexOf(i)&&-1!==z.indexOf(r))return q;if(i===S&&-1!==z.indexOf(r))return q;if(-1!==z.concat(T).indexOf(i)&&r===O&&-1===Z.indexOf(A[o])||-1!==z.concat(T).indexOf(r)&&i===m)return q;if(41===i&&41===r){for(var a=t[n],g=1;0<a&&41===e[--a];)g++;if(g%2!=0)return q}return i===x&&r===V?q:"Ã·"}(t,r,B,++i,n))===q;);if(A===q&&i!==s)return{done:!0,value:null};var e=new nA(t,A,o,i);return o=i,{value:e,done:!1}}}}function iA(A){return 48<=A&&A<=57}function QA(A){return iA(A)||65<=A&&A<=70||97<=A&&A<=102}function cA(A){return 10===A||9===A||32===A}function aA(A){return 97<=(t=e=A)&&t<=122||65<=(e=e)&&e<=90||128<=A||95===A;var e,t}function gA(A){return aA(A)||iA(A)||45===A}function wA(A,e){return 92===A&&10!==e}function CA(A,e,t){return 45===A?aA(e)||wA(e,t):!!aA(A)||92===A&&10!==e}function UA(A,e,t){return 43===A||45===A?!!iA(e)||46===e&&iA(t):iA(46===A?e:A)}var lA={type:2},FA={type:3},uA={type:4},hA={type:13},dA={type:8},EA={type:21},HA={type:9},fA={type:10},IA={type:11},pA={type:12},yA={type:14},KA={type:23},LA={type:1},mA={type:25},DA={type:24},bA={type:26},RA={type:27},OA={type:28},SA={type:29},TA={type:31},vA={type:32},MA=(NA.prototype.write=function(A){this._value=this._value.concat(Q(A))},NA.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==vA;)A.push(e),e=this.consumeToken();return A},NA.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),B=this.peekCodePoint(2);if(gA(e)||wA(t,B)){var r=CA(e,t,B)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),hA;break;case 39:return this.consumeStringToken(39);case 40:return lA;case 41:return FA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;break;case 43:if(UA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return uA;case 45:var B=A,r=this.peekCodePoint(0),n=this.peekCodePoint(1);if(UA(B,r,n))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(CA(B,r,n))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(45===r&&62===n)return this.consumeCodePoint(),this.consumeCodePoint(),DA;break;case 46:if(UA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(-1===s)return this.consumeToken()}break;case 58:return bA;case 59:return RA;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),mA;break;case 64:var n=this.peekCodePoint(0),o=this.peekCodePoint(1),i=this.peekCodePoint(2);if(CA(n,o,i))return{type:7,value:this.consumeName()};break;case 91:return OA;case 92:if(wA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return SA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),dA;break;case 123:return IA;case 125:return pA;case 117:case 85:o=this.peekCodePoint(0),i=this.peekCodePoint(1);return 43!==o||!QA(i)&&63!==i||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),HA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),fA;break;case-1:return vA}return cA(A)?(this.consumeWhiteSpace(),TA):iA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):aA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:g(A)}},NA.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},NA.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},NA.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},NA.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();QA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(g.apply(void 0,A.map(function(A){return 63===A?48:A})),16),end:parseInt(g.apply(void 0,A.map(function(A){return 63===A?70:A})),16)};var B=parseInt(g.apply(void 0,A),16);if(45===this.peekCodePoint(0)&&QA(this.peekCodePoint(1))){this.consumeCodePoint();for(var e=this.consumeCodePoint(),r=[];QA(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:B,end:parseInt(g.apply(void 0,r),16)}}return{type:30,start:B,end:B}},NA.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},NA.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e,t=this.peekCodePoint(0);if(39===t||34===t){t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),KA)}for(;;){var B=this.consumeCodePoint();if(-1===B||41===B)return{type:22,value:g.apply(void 0,A)};if(cA(B))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:g.apply(void 0,A)}):(this.consumeBadUrlRemnants(),KA);if(34===B||39===B||40===B||(0<=(e=B)&&e<=8||11===e||14<=e&&e<=31||127===e))return this.consumeBadUrlRemnants(),KA;if(92===B){if(!wA(B,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),KA;A.push(this.consumeEscapedCodePoint())}else A.push(B)}},NA.prototype.consumeWhiteSpace=function(){for(;cA(this.peekCodePoint(0));)this.consumeCodePoint()},NA.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||-1===A)return;wA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},NA.prototype.consumeStringSlice=function(A){for(var e="";0<A;){var t=Math.min(6e4,A);e+=g.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},NA.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var B,r=this._value[t];if(-1===r||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),LA;92!==r||-1!==(B=this._value[t+1])&&void 0!==B&&(10===B?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):wA(r,B)&&(e+=this.consumeStringSlice(t),e+=g(this.consumeEscapedCodePoint()),t=-1)),t++}},NA.prototype.consumeNumber=function(){var A=[],e=4;for(43!==(t=this.peekCodePoint(0))&&45!==t||A.push(this.consumeCodePoint());iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());var t=this.peekCodePoint(0),B=this.peekCodePoint(1);if(46===t&&iA(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var B=this.peekCodePoint(1),r=this.peekCodePoint(2);if((69===t||101===t)&&((43===B||45===B)&&iA(r)||iA(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;iA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[function(A){var e=0,t=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(t=-1),e++);for(var B=[];iA(A[e]);)B.push(A[e++]);var r=B.length?parseInt(g.apply(void 0,B),10):0;46===A[e]&&e++;for(var n=[];iA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(g.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;43!==A[e]&&45!==A[e]||(45===A[e]&&(i=-1),e++);for(var Q=[];iA(A[e]);)Q.push(A[e++]);var c=Q.length?parseInt(g.apply(void 0,Q),10):0;return t*(r+o*Math.pow(10,-s))*Math.pow(10,i*c)}(A),e]},NA.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],B=this.peekCodePoint(0),r=this.peekCodePoint(1),A=this.peekCodePoint(2);return CA(B,r,A)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===B?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},NA.prototype.consumeEscapedCodePoint=function(){var A,e=this.consumeCodePoint();if(QA(e)){for(var t=g(e);QA(this.peekCodePoint(0))&&t.length<6;)t+=g(this.consumeCodePoint());cA(this.peekCodePoint(0))&&this.consumeCodePoint();var B=parseInt(t,16);return 0===B||55296<=(A=B)&&A<=57343||1114111<B?65533:B}return-1===e?65533:e},NA.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(gA(e))A+=g(e);else{if(!wA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=g(this.consumeEscapedCodePoint())}}},NA);function NA(){this._value=[]}var GA=(xA.create=function(A){var e=new MA;return e.write(A),new xA(e.read())},xA.parseValue=function(A){return xA.create(A).parseComponentValue()},xA.parseValues=function(A){return xA.create(A).parseComponentValues()},xA.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);for(var e=this.consumeComponentValue();31===(A=this.consumeToken()).type;);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},xA.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},xA.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},xA.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||re(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},xA.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},xA.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?vA:A},xA.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},xA);function xA(A){this._tokens=A}function VA(A){return 15===A.type}function PA(A){return 17===A.type}function kA(A){return 20===A.type}function JA(A){return 0===A.type}function XA(A,e){return kA(A)&&A.value===e}function _A(A){return 31!==A.type}function YA(A){return 31!==A.type&&4!==A.type}function WA(A){var e=[],t=[];return A.forEach(function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)}),t.length&&e.push(t),e}function ZA(A){return 17===A.type||15===A.type}function qA(A){return 16===A.type||ZA(A)}function jA(A){return 1<A.length?[A[0],A[1]]:[A[0]]}function zA(A,e,t){var B=A[0],A=A[1];return[ie(B,e),ie(void 0!==A?A:B,t)]}function $A(A){return 15===A.type&&("deg"===A.unit||"grad"===A.unit||"rad"===A.unit||"turn"===A.unit)}function Ae(A){switch(A.filter(kA).map(function(A){return A.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ne,ne];case"to top":case"bottom":return ce(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ne,oe];case"to right":case"left":return ce(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[oe,oe];case"to bottom":case"top":return ce(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[oe,ne];case"to left":case"right":return ce(270)}return 0}function ee(A){return 0==(255&A)}function te(A){var e=255&A,t=255&A>>8,B=255&A>>16,A=255&A>>24;return e<255?"rgba("+A+","+B+","+t+","+e/255+")":"rgb("+A+","+B+","+t+")"}function Be(A,e){if(17===A.type)return A.number;if(16!==A.type)return 0;var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}var re=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},ne={type:17,number:0,flags:4},se={type:16,number:50,flags:4},oe={type:16,number:100,flags:4},ie=function(A,e){if(16===A.type)return A.number/100*e;if(VA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},Qe=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ce=function(A){return Math.PI*A/180},ae=function(A,e){if(18===e.type){var t=ue[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var B=e.value.substring(0,1),r=e.value.substring(1,2),n=e.value.substring(2,3);return ge(parseInt(B+B,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===e.value.length){var B=e.value.substring(0,1),r=e.value.substring(1,2),n=e.value.substring(2,3),s=e.value.substring(3,4);return ge(parseInt(B+B,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){B=e.value.substring(0,2),r=e.value.substring(2,4),n=e.value.substring(4,6);return ge(parseInt(B,16),parseInt(r,16),parseInt(n,16),1)}if(8===e.value.length){B=e.value.substring(0,2),r=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return ge(parseInt(B,16),parseInt(r,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){e=he[e.value.toUpperCase()];if(void 0!==e)return e}return he.TRANSPARENT},ge=function(A,e,t,B){return(A<<24|e<<16|t<<8|Math.round(255*B)<<0)>>>0},we=function(A,e){e=e.filter(YA);if(3===e.length){var t=e.map(Be),B=t[0],r=t[1],t=t[2];return ge(B,r,t,1)}if(4!==e.length)return 0;e=e.map(Be),B=e[0],r=e[1],t=e[2],e=e[3];return ge(B,r,t,e)};function Ce(A,e,t){return t<0&&(t+=1),1<=t&&--t,t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}function Ue(A,e){return ae(A,GA.create(e).parseComponentValue())}var le,Fe=function(A,e){var t=e.filter(YA),B=t[0],r=t[1],n=t[2],e=t[3],t=(17===B.type?ce(B.number):Qe(A,B))/(2*Math.PI),A=qA(r)?r.number/100:0,B=qA(n)?n.number/100:0,r=void 0!==e&&qA(e)?ie(e,1):1;if(0==A)return ge(255*B,255*B,255*B,1);n=B<=.5?B*(1+A):B+A-B*A,e=2*B-n,A=Ce(e,n,t+1/3),B=Ce(e,n,t),t=Ce(e,n,t-1/3);return ge(255*A,255*B,255*t,r)},ue={hsl:Fe,hsla:Fe,rgb:we,rgba:we},he={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(ve=le=le||{})[ve.BORDER_BOX=0]="BORDER_BOX",ve[ve.PADDING_BOX=1]="PADDING_BOX";function de(A,e){return A=ae(A,e[0]),(e=e[1])&&qA(e)?{color:A,stop:e}:{color:A,stop:null}}function Ee(A,t){var e=A[0],B=A[A.length-1];null===e.stop&&(e.stop=ne),null===B.stop&&(B.stop=oe);for(var r=[],n=0,s=0;s<A.length;s++){var o=A[s].stop;null!==o?(n<(o=ie(o,t))?r.push(o):r.push(n),n=o):r.push(null)}for(var i=null,s=0;s<r.length;s++){var Q=r[s];if(null===Q)null===i&&(i=s);else if(null!==i){for(var c=s-i,a=(Q-r[i-1])/(1+c),g=1;g<=c;g++)r[i+g-1]=a*g;i=null}}return A.map(function(A,e){return{color:A.color,stop:Math.max(Math.min(1,r[e]/t),0)}})}function He(A,e,t){var B="number"==typeof A?A:(s=e/2,B=(n=t)/2,s=ie((r=A)[0],e)-s,n=B-ie(r[1],n),(Math.atan2(n,s)+2*Math.PI)%(2*Math.PI)),r=Math.abs(e*Math.sin(B))+Math.abs(t*Math.cos(B)),n=e/2,s=t/2,e=r/2,t=Math.sin(B-Math.PI/2)*e,e=Math.cos(B-Math.PI/2)*e;return[r,n-e,n+e,s-t,s+t]}function fe(A,e){return Math.sqrt(A*A+e*e)}function Ie(A,e,r,n,s){return[[0,0],[0,e],[A,0],[A,e]].reduce(function(A,e){var t=e[0],B=e[1],B=fe(r-t,n-B);return(s?B<A.optimumDistance:B>A.optimumDistance)?{optimumCorner:e,optimumDistance:B}:A},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner}var pe,ye={name:"background-clip",initialValue:"border-box",prefix:!(ve[ve.CONTENT_BOX=2]="CONTENT_BOX"),type:1,parse:function(A,e){return e.map(function(A){if(kA(A))switch(A.value){case"padding-box":return le.PADDING_BOX;case"content-box":return le.CONTENT_BOX}return le.BORDER_BOX})}},Ke={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fe=function(t,A){var B=ce(180),r=[];return WA(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&-1!==["top","left","right","bottom"].indexOf(e.value))return void(B=Ae(A));if($A(e))return void(B=(Qe(t,e)+ce(270))%ce(360))}A=de(t,A);r.push(A)}),{angle:B,stops:r,type:pe.LINEAR_GRADIENT}},Le="closest-side",me="farthest-side",De="closest-corner",be="farthest-corner",Re="ellipse",Oe="contain",we=function(B,A){var r=Se.CIRCLE,n=Te.FARTHEST_CORNER,s=[],o=[];return WA(A).forEach(function(A,e){var t=!0;0===e?t=A.reduce(function(A,e){if(kA(e))switch(e.value){case"center":return o.push(se),!1;case"top":case"left":return o.push(ne),!1;case"right":case"bottom":return o.push(oe),!1}else if(qA(e)||ZA(e))return o.push(e),!1;return A},t):1===e&&(t=A.reduce(function(A,e){if(kA(e))switch(e.value){case"circle":return r=Se.CIRCLE,!1;case Re:return r=Se.ELLIPSE,!1;case Oe:case Le:return n=Te.CLOSEST_SIDE,!1;case me:return n=Te.FARTHEST_SIDE,!1;case De:return n=Te.CLOSEST_CORNER,!1;case"cover":case be:return n=Te.FARTHEST_CORNER,!1}else if(ZA(e)||qA(e))return(n=!Array.isArray(n)?[]:n).push(e),!1;return A},t)),t&&(A=de(B,A),s.push(A))}),{size:n,shape:r,stops:s,position:o,type:pe.RADIAL_GRADIENT}};(ve=pe=pe||{})[ve.URL=0]="URL",ve[ve.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",ve[ve.RADIAL_GRADIENT=2]="RADIAL_GRADIENT";var Se,Te,ve;(ve=Se=Se||{})[ve.CIRCLE=0]="CIRCLE",ve[ve.ELLIPSE=1]="ELLIPSE",(ve=Te=Te||{})[ve.CLOSEST_SIDE=0]="CLOSEST_SIDE",ve[ve.FARTHEST_SIDE=1]="FARTHEST_SIDE",ve[ve.CLOSEST_CORNER=2]="CLOSEST_CORNER",ve[ve.FARTHEST_CORNER=3]="FARTHEST_CORNER";var Me=function(A,e){if(22===e.type){var t={url:e.value,type:pe.URL};return A.cache.addImage(e.value),t}if(18!==e.type)throw new Error("Unsupported image type "+e.type);t=Ge[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)};var Ne,Ge={"linear-gradient":function(t,A){var B=ce(180),r=[];return WA(A).forEach(function(A,e){if(0===e){e=A[0];if(20===e.type&&"to"===e.value)return void(B=Ae(A));if($A(e))return void(B=Qe(t,e))}A=de(t,A);r.push(A)}),{angle:B,stops:r,type:pe.LINEAR_GRADIENT}},"-moz-linear-gradient":Fe,"-ms-linear-gradient":Fe,"-o-linear-gradient":Fe,"-webkit-linear-gradient":Fe,"radial-gradient":function(r,A){var n=Se.CIRCLE,s=Te.FARTHEST_CORNER,o=[],i=[];return WA(A).forEach(function(A,e){var t,B=!0;0===e&&(t=!1,B=A.reduce(function(A,e){if(t)if(kA(e))switch(e.value){case"center":return i.push(se),A;case"top":case"left":return i.push(ne),A;case"right":case"bottom":return i.push(oe),A}else(qA(e)||ZA(e))&&i.push(e);else if(kA(e))switch(e.value){case"circle":return n=Se.CIRCLE,!1;case Re:return n=Se.ELLIPSE,!1;case"at":return!(t=!0);case Le:return s=Te.CLOSEST_SIDE,!1;case"cover":case me:return s=Te.FARTHEST_SIDE,!1;case Oe:case De:return s=Te.CLOSEST_CORNER,!1;case be:return s=Te.FARTHEST_CORNER,!1}else if(ZA(e)||qA(e))return(s=!Array.isArray(s)?[]:s).push(e),!1;return A},B)),B&&(A=de(r,A),o.push(A))}),{size:s,shape:n,stops:o,position:i,type:pe.RADIAL_GRADIENT}},"-moz-radial-gradient":we,"-ms-radial-gradient":we,"-o-radial-gradient":we,"-webkit-radial-gradient":we,"-webkit-gradient":function(B,A){var e=ce(180),r=[],n=pe.LINEAR_GRADIENT,t=Se.CIRCLE,s=Te.FARTHEST_CORNER;return WA(A).forEach(function(A,e){var t,A=A[0];if(0===e){if(kA(A)&&"linear"===A.value)return void(n=pe.LINEAR_GRADIENT);if(kA(A)&&"radial"===A.value)return void(n=pe.RADIAL_GRADIENT)}18===A.type&&("from"===A.name?(t=ae(B,A.values[0]),r.push({stop:ne,color:t})):"to"===A.name?(t=ae(B,A.values[0]),r.push({stop:oe,color:t})):"color-stop"!==A.name||2===(A=A.values.filter(YA)).length&&(t=ae(B,A[1]),A=A[0],PA(A)&&r.push({stop:{type:16,number:100*A.number,flags:A.flags},color:t})))}),n===pe.LINEAR_GRADIENT?{angle:(e+ce(180))%ce(360),stops:r,type:n}:{size:s,shape:t,stops:r,position:[],type:n}}},xe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(0===A.length)return[];var t=A[0];return 20===t.type&&"none"===t.value?[]:A.filter(function(A){return YA(A)&&!(20===(A=A).type&&"none"===A.value||18===A.type&&!Ge[A.name])}).map(function(A){return Me(e,A)})}},Ve={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(A){if(kA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return WA(e).map(function(A){return A.filter(qA)}).map(jA)}};(we=Ne=Ne||{})[we.REPEAT=0]="REPEAT",we[we.NO_REPEAT=1]="NO_REPEAT",we[we.REPEAT_X=2]="REPEAT_X";var ke,Je={name:"background-repeat",initialValue:"repeat",prefix:!(we[we.REPEAT_Y=3]="REPEAT_Y"),type:1,parse:function(A,e){return WA(e).map(function(A){return A.filter(kA).map(function(A){return A.value}).join(" ")}).map(Xe)}},Xe=function(A){switch(A){case"no-repeat":return Ne.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ne.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ne.REPEAT_Y;default:return Ne.REPEAT}};(we=ke=ke||{}).AUTO="auto",we.CONTAIN="contain";var _e,Ye={name:"background-size",initialValue:"0",prefix:!(we.COVER="cover"),type:1,parse:function(A,e){return WA(e).map(function(A){return A.filter(We)})}},We=function(A){return kA(A)||qA(A)},we=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ze=we("top"),qe=we("right"),je=we("bottom"),ze=we("left"),we=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return jA(e.filter(qA))}}},$e=we("top-left"),At=we("top-right"),et=we("bottom-right"),tt=we("bottom-left");(we=_e=_e||{})[we.NONE=0]="NONE",we[we.SOLID=1]="SOLID",we[we.DASHED=2]="DASHED",we[we.DOTTED=3]="DOTTED",we[we.DOUBLE=4]="DOUBLE";var Bt,we=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return _e.NONE;case"dashed":return _e.DASHED;case"dotted":return _e.DOTTED;case"double":return _e.DOUBLE}return _e.SOLID}}},rt=we("top"),nt=we("right"),st=we("bottom"),ot=we("left"),we=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}}},it=we("top"),Qt=we("right"),ct=we("bottom"),at=we("left"),gt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"!==e?0:1}},Ct={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).reduce(function(A,e){return A|Ut(e.value)},0)}},Ut=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};(we=Bt=Bt||{})[we.NONE=0]="NONE",we[we.LEFT=1]="LEFT",we[we.RIGHT=2]="RIGHT",we[we.INLINE_START=3]="INLINE_START";function lt(A,e){return kA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:qA(A)?ie(A,e):e}var Ft,ut,ht={name:"float",initialValue:"none",prefix:!(we[we.INLINE_END=4]="INLINE_END"),type:2,parse:function(A,e){switch(e){case"left":return Bt.LEFT;case"right":return Bt.RIGHT;case"inline-start":return Bt.INLINE_START;case"inline-end":return Bt.INLINE_END}return Bt.NONE}},dt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return!(20===e.type&&"normal"===e.value||17!==e.type&&15!==e.type)?e.number:0}},Et={name:"line-break",initialValue:(we=Ft=Ft||{}).NORMAL="normal",prefix:!(we.STRICT="strict"),type:2,parse:function(A,e){return"strict"!==e?Ft.NORMAL:Ft.STRICT}},Ht={name:"line-height",initialValue:"normal",prefix:!1,type:4},ft={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Me(A,e)}};(we=ut=ut||{})[we.INSIDE=0]="INSIDE";var It,pt={name:"list-style-position",initialValue:"outside",prefix:!(we[we.OUTSIDE=1]="OUTSIDE"),type:2,parse:function(A,e){return"inside"!==e?ut.OUTSIDE:ut.INSIDE}};(we=It=It||{})[we.NONE=-1]="NONE",we[we.DISC=0]="DISC",we[we.CIRCLE=1]="CIRCLE",we[we.SQUARE=2]="SQUARE",we[we.DECIMAL=3]="DECIMAL",we[we.CJK_DECIMAL=4]="CJK_DECIMAL",we[we.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",we[we.LOWER_ROMAN=6]="LOWER_ROMAN",we[we.UPPER_ROMAN=7]="UPPER_ROMAN",we[we.LOWER_GREEK=8]="LOWER_GREEK",we[we.LOWER_ALPHA=9]="LOWER_ALPHA",we[we.UPPER_ALPHA=10]="UPPER_ALPHA",we[we.ARABIC_INDIC=11]="ARABIC_INDIC",we[we.ARMENIAN=12]="ARMENIAN",we[we.BENGALI=13]="BENGALI",we[we.CAMBODIAN=14]="CAMBODIAN",we[we.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",we[we.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",we[we.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",we[we.DEVANAGARI=18]="DEVANAGARI",we[we.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",we[we.GEORGIAN=20]="GEORGIAN",we[we.GUJARATI=21]="GUJARATI",we[we.GURMUKHI=22]="GURMUKHI",we[we.HEBREW=22]="HEBREW",we[we.HIRAGANA=23]="HIRAGANA",we[we.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",we[we.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",we[we.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",we[we.KANNADA=27]="KANNADA",we[we.KATAKANA=28]="KATAKANA",we[we.KATAKANA_IROHA=29]="KATAKANA_IROHA",we[we.KHMER=30]="KHMER",we[we.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",we[we.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",we[we.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",we[we.LAO=34]="LAO",we[we.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",we[we.MALAYALAM=36]="MALAYALAM",we[we.MONGOLIAN=37]="MONGOLIAN",we[we.MYANMAR=38]="MYANMAR",we[we.ORIYA=39]="ORIYA",we[we.PERSIAN=40]="PERSIAN",we[we.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",we[we.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",we[we.TAMIL=43]="TAMIL",we[we.TELUGU=44]="TELUGU",we[we.THAI=45]="THAI",we[we.TIBETAN=46]="TIBETAN",we[we.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",we[we.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",we[we.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",we[we.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN";var yt,Kt={name:"list-style-type",initialValue:"none",prefix:!(we[we.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"),type:2,parse:function(A,e){switch(e){case"disc":return It.DISC;case"circle":return It.CIRCLE;case"square":return It.SQUARE;case"decimal":return It.DECIMAL;case"cjk-decimal":return It.CJK_DECIMAL;case"decimal-leading-zero":return It.DECIMAL_LEADING_ZERO;case"lower-roman":return It.LOWER_ROMAN;case"upper-roman":return It.UPPER_ROMAN;case"lower-greek":return It.LOWER_GREEK;case"lower-alpha":return It.LOWER_ALPHA;case"upper-alpha":return It.UPPER_ALPHA;case"arabic-indic":return It.ARABIC_INDIC;case"armenian":return It.ARMENIAN;case"bengali":return It.BENGALI;case"cambodian":return It.CAMBODIAN;case"cjk-earthly-branch":return It.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return It.CJK_HEAVENLY_STEM;case"cjk-ideographic":return It.CJK_IDEOGRAPHIC;case"devanagari":return It.DEVANAGARI;case"ethiopic-numeric":return It.ETHIOPIC_NUMERIC;case"georgian":return It.GEORGIAN;case"gujarati":return It.GUJARATI;case"gurmukhi":return It.GURMUKHI;case"hebrew":return It.HEBREW;case"hiragana":return It.HIRAGANA;case"hiragana-iroha":return It.HIRAGANA_IROHA;case"japanese-formal":return It.JAPANESE_FORMAL;case"japanese-informal":return It.JAPANESE_INFORMAL;case"kannada":return It.KANNADA;case"katakana":return It.KATAKANA;case"katakana-iroha":return It.KATAKANA_IROHA;case"khmer":return It.KHMER;case"korean-hangul-formal":return It.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return It.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return It.KOREAN_HANJA_INFORMAL;case"lao":return It.LAO;case"lower-armenian":return It.LOWER_ARMENIAN;case"malayalam":return It.MALAYALAM;case"mongolian":return It.MONGOLIAN;case"myanmar":return It.MYANMAR;case"oriya":return It.ORIYA;case"persian":return It.PERSIAN;case"simp-chinese-formal":return It.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return It.SIMP_CHINESE_INFORMAL;case"tamil":return It.TAMIL;case"telugu":return It.TELUGU;case"thai":return It.THAI;case"tibetan":return It.TIBETAN;case"trad-chinese-formal":return It.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return It.TRAD_CHINESE_INFORMAL;case"upper-armenian":return It.UPPER_ARMENIAN;case"disclosure-open":return It.DISCLOSURE_OPEN;case"disclosure-closed":return It.DISCLOSURE_CLOSED;default:return It.NONE}}},we=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Lt=we("top"),mt=we("right"),Dt=we("bottom"),bt=we("left");(we=yt=yt||{})[we.VISIBLE=0]="VISIBLE",we[we.HIDDEN=1]="HIDDEN",we[we.SCROLL=2]="SCROLL",we[we.CLIP=3]="CLIP";var Rt,Ot={name:"overflow",initialValue:"visible",prefix:!(we[we.AUTO=4]="AUTO"),type:1,parse:function(A,e){return e.filter(kA).map(function(A){switch(A.value){case"hidden":return yt.HIDDEN;case"scroll":return yt.SCROLL;case"clip":return yt.CLIP;case"auto":return yt.AUTO;default:return yt.VISIBLE}})}},St={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"!==e?"normal":"break-word"}},we=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Tt=we("top"),vt=we("right"),Mt=we("bottom"),Nt=we("left");(we=Rt=Rt||{})[we.LEFT=0]="LEFT",we[we.CENTER=1]="CENTER";var Gt,xt={name:"text-align",initialValue:"left",prefix:!(we[we.RIGHT=2]="RIGHT"),type:2,parse:function(A,e){switch(e){case"right":return Rt.RIGHT;case"center":case"justify":return Rt.CENTER;default:return Rt.LEFT}}};(we=Gt=Gt||{})[we.STATIC=0]="STATIC",we[we.RELATIVE=1]="RELATIVE",we[we.ABSOLUTE=2]="ABSOLUTE",we[we.FIXED=3]="FIXED";var Vt,Pt={name:"position",initialValue:"static",prefix:!(we[we.STICKY=4]="STICKY"),type:2,parse:function(A,e){switch(e){case"relative":return Gt.RELATIVE;case"absolute":return Gt.ABSOLUTE;case"fixed":return Gt.FIXED;case"sticky":return Gt.STICKY}return Gt.STATIC}},kt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&XA(A[0],"none")?[]:WA(A).map(function(A){for(var e={color:he.TRANSPARENT,offsetX:ne,offsetY:ne,blur:ne},t=0,B=0;B<A.length;B++){var r=A[B];ZA(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:e.blur=r,t++):e.color=ae(n,r)}return e})}};(we=Vt=Vt||{})[we.NONE=0]="NONE",we[we.LOWERCASE=1]="LOWERCASE",we[we.UPPERCASE=2]="UPPERCASE";var Jt,Xt={name:"text-transform",initialValue:"none",prefix:!(we[we.CAPITALIZE=3]="CAPITALIZE"),type:2,parse:function(A,e){switch(e){case"uppercase":return Vt.UPPERCASE;case"lowercase":return Vt.LOWERCASE;case"capitalize":return Vt.CAPITALIZE}return Vt.NONE}},_t={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18!==e.type)return null;var t=Yt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}},Yt={matrix:function(A){A=A.filter(function(A){return 17===A.type}).map(function(A){return A.number});return 6===A.length?A:null},matrix3d:function(A){var e=A.filter(function(A){return 17===A.type}).map(function(A){return A.number}),t=e[0],B=e[1];e[2],e[3];var r=e[4],n=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],A=e[13];return e[14],e[15],16===e.length?[t,B,r,n,s,A]:null}},we={type:16,number:50,flags:4},Wt=[we,we],Zt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){e=e.filter(qA);return 2!==e.length?Wt:[e[0],e[1]]}};(we=Jt=Jt||{})[we.VISIBLE=0]="VISIBLE",we[we.HIDDEN=1]="HIDDEN";var qt,jt={name:"visible",initialValue:"none",prefix:!(we[we.COLLAPSE=2]="COLLAPSE"),type:2,parse:function(A,e){switch(e){case"hidden":return Jt.HIDDEN;case"collapse":return Jt.COLLAPSE;default:return Jt.VISIBLE}}};(we=qt=qt||{}).NORMAL="normal",we.BREAK_ALL="break-all";var zt,$t={name:"word-break",initialValue:"normal",prefix:!(we.KEEP_ALL="keep-all"),type:2,parse:function(A,e){switch(e){case"break-all":return qt.BREAK_ALL;case"keep-all":return qt.KEEP_ALL;default:return qt.NORMAL}}},AB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(PA(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},eB=function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},tB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:1}},BB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(kA).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return 0!==A})}},nB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],B=[];return e.forEach(function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:B.push(t.join(" ")),t.length=0}}),t.length&&B.push(t.join(" ")),B.map(function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"})}},sB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},oB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:!kA(e)||"bold"!==e.value?400:700}},iB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(kA).map(function(A){return A.value})}};(we=zt=zt||{}).NORMAL="normal",we.ITALIC="italic";function QB(A,e){return 0!=(A&e)}function cB(A,e,t){return(A=A&&A[Math.min(e,A.length-1)])?t?A.open:A.close:""}var aB,gB={name:"font-style",initialValue:"normal",prefix:!(we.OBLIQUE="oblique"),type:2,parse:function(A,e){switch(e){case"oblique":return zt.OBLIQUE;case"italic":return zt.ITALIC;default:return zt.NORMAL}}},wB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}},CB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var B=[],r=e.filter(_A),n=0;n<r.length;n++){var s=r[n],o=r[n+1];20===s.type&&(o=o&&PA(o)?o.number:1,B.push({counter:s.value,increment:o}))}return B}},UB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],B=e.filter(_A),r=0;r<B.length;r++){var n=B[r],s=B[r+1];kA(n)&&"none"!==n.value&&(s=s&&PA(s)?s.number:0,t.push({counter:n.value,reset:s}))}return t}},lB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(VA).map(function(A){return eB(e,A)})}},FB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var B=[],r=e.filter(JA);if(r.length%2!=0)return null;for(var n=0;n<r.length;n+=2){var s=r[n].value,o=r[n+1].value;B.push({open:s,close:o})}return B}},uB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,A){return 1===A.length&&XA(A[0],"none")?[]:WA(A).map(function(A){for(var e={color:255,offsetX:ne,offsetY:ne,blur:ne,spread:ne,inset:!1},t=0,B=0;B<A.length;B++){var r=A[B];XA(r,"inset")?e.inset=!0:ZA(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:2===t?e.blur=r:e.spread=r,t++):e.color=ae(n,r)}return e})}};(we=aB=aB||{})[we.FILL=0]="FILL",we[we.STROKE=1]="STROKE";var hB={name:"paint-order",initialValue:"normal",prefix:!(we[we.MARKERS=2]="MARKERS"),type:1,parse:function(A,e){var t=[aB.FILL,aB.STROKE,aB.MARKERS],B=[];return e.filter(kA).forEach(function(A){switch(A.value){case"stroke":B.push(aB.STROKE);break;case"fill":B.push(aB.FILL);break;case"markers":B.push(aB.MARKERS)}}),t.forEach(function(A){-1===B.indexOf(A)&&B.push(A)}),B}},dB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},EB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return VA(e)?e.number:0}},HB=(fB.prototype.isVisible=function(){return 0<this.display&&0<this.opacity&&this.visibility===Jt.VISIBLE},fB.prototype.isTransparent=function(){return ee(this.backgroundColor)},fB.prototype.isTransformed=function(){return null!==this.transform},fB.prototype.isPositioned=function(){return this.position!==Gt.STATIC},fB.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},fB.prototype.isFloating=function(){return this.float!==Bt.NONE},fB.prototype.isInlineLevel=function(){return QB(this.display,4)||QB(this.display,33554432)||QB(this.display,268435456)||QB(this.display,536870912)||QB(this.display,67108864)||QB(this.display,134217728)},fB);function fB(A,e){this.animationDuration=yB(A,lB,e.animationDuration),this.backgroundClip=yB(A,ye,e.backgroundClip),this.backgroundColor=yB(A,Ke,e.backgroundColor),this.backgroundImage=yB(A,xe,e.backgroundImage),this.backgroundOrigin=yB(A,Ve,e.backgroundOrigin),this.backgroundPosition=yB(A,Pe,e.backgroundPosition),this.backgroundRepeat=yB(A,Je,e.backgroundRepeat),this.backgroundSize=yB(A,Ye,e.backgroundSize),this.borderTopColor=yB(A,Ze,e.borderTopColor),this.borderRightColor=yB(A,qe,e.borderRightColor),this.borderBottomColor=yB(A,je,e.borderBottomColor),this.borderLeftColor=yB(A,ze,e.borderLeftColor),this.borderTopLeftRadius=yB(A,$e,e.borderTopLeftRadius),this.borderTopRightRadius=yB(A,At,e.borderTopRightRadius),this.borderBottomRightRadius=yB(A,et,e.borderBottomRightRadius),this.borderBottomLeftRadius=yB(A,tt,e.borderBottomLeftRadius),this.borderTopStyle=yB(A,rt,e.borderTopStyle),this.borderRightStyle=yB(A,nt,e.borderRightStyle),this.borderBottomStyle=yB(A,st,e.borderBottomStyle),this.borderLeftStyle=yB(A,ot,e.borderLeftStyle),this.borderTopWidth=yB(A,it,e.borderTopWidth),this.borderRightWidth=yB(A,Qt,e.borderRightWidth),this.borderBottomWidth=yB(A,ct,e.borderBottomWidth),this.borderLeftWidth=yB(A,at,e.borderLeftWidth),this.boxShadow=yB(A,uB,e.boxShadow),this.color=yB(A,gt,e.color),this.direction=yB(A,wt,e.direction),this.display=yB(A,Ct,e.display),this.float=yB(A,ht,e.cssFloat),this.fontFamily=yB(A,nB,e.fontFamily),this.fontSize=yB(A,sB,e.fontSize),this.fontStyle=yB(A,gB,e.fontStyle),this.fontVariant=yB(A,iB,e.fontVariant),this.fontWeight=yB(A,oB,e.fontWeight),this.letterSpacing=yB(A,dt,e.letterSpacing),this.lineBreak=yB(A,Et,e.lineBreak),this.lineHeight=yB(A,Ht,e.lineHeight),this.listStyleImage=yB(A,ft,e.listStyleImage),this.listStylePosition=yB(A,pt,e.listStylePosition),this.listStyleType=yB(A,Kt,e.listStyleType),this.marginTop=yB(A,Lt,e.marginTop),this.marginRight=yB(A,mt,e.marginRight),this.marginBottom=yB(A,Dt,e.marginBottom),this.marginLeft=yB(A,bt,e.marginLeft),this.opacity=yB(A,tB,e.opacity);var t=yB(A,Ot,e.overflow);this.overflowX=t[0],this.overflowY=t[1<t.length?1:0],this.overflowWrap=yB(A,St,e.overflowWrap),this.paddingTop=yB(A,Tt,e.paddingTop),this.paddingRight=yB(A,vt,e.paddingRight),this.paddingBottom=yB(A,Mt,e.paddingBottom),this.paddingLeft=yB(A,Nt,e.paddingLeft),this.paintOrder=yB(A,hB,e.paintOrder),this.position=yB(A,Pt,e.position),this.textAlign=yB(A,xt,e.textAlign),this.textDecorationColor=yB(A,BB,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=yB(A,rB,null!==(t=e.textDecorationLine)&&void 0!==t?t:e.textDecoration),this.textShadow=yB(A,kt,e.textShadow),this.textTransform=yB(A,Xt,e.textTransform),this.transform=yB(A,_t,e.transform),this.transformOrigin=yB(A,Zt,e.transformOrigin),this.visibility=yB(A,jt,e.visibility),this.webkitTextStrokeColor=yB(A,dB,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=yB(A,EB,e.webkitTextStrokeWidth),this.wordBreak=yB(A,$t,e.wordBreak),this.zIndex=yB(A,AB,e.zIndex)}for(var IB=function(A,e){this.content=yB(A,wB,e.content),this.quotes=yB(A,FB,e.quotes)},pB=function(A,e){this.counterIncrement=yB(A,CB,e.counterIncrement),this.counterReset=yB(A,UB,e.counterReset)},yB=function(A,e,t){var B=new MA,t=null!=t?t.toString():e.initialValue;B.write(t);var r=new GA(B.read());switch(e.type){case 2:var n=r.parseComponentValue();return e.parse(A,kA(n)?n.value:e.initialValue);case 0:return e.parse(A,r.parseComponentValue());case 1:return e.parse(A,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(e.format){case"angle":return Qe(A,r.parseComponentValue());case"color":return ae(A,r.parseComponentValue());case"image":return Me(A,r.parseComponentValue());case"length":var s=r.parseComponentValue();return ZA(s)?s:ne;case"length-percentage":s=r.parseComponentValue();return qA(s)?s:ne;case"time":return eB(A,r.parseComponentValue())}}},KB=function(A,e){A=function(A){switch(A.getAttribute("data-html2canvasV1-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===A||e===A},LB=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,KB(e,3),this.styles=new HB(A,window.getComputedStyle(e,null)),en(e)&&(this.styles.animationDuration.some(function(A){return 0<A})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=E(this.context,e),KB(e,4)&&(this.flags|=16)},mB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bB=0;bB<mB.length;bB++)DB[mB.charCodeAt(bB)]=bB;function RB(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))}var OB=(SB.prototype.get=function(A){var e;if(0<=A){if(A<55296||56319<A&&A<=65535)return e=this.index[A>>5],this.data[e=(e<<2)+(31&A)];if(A<=65535)return e=this.index[2048+(A-55296>>5)],this.data[e=(e<<2)+(31&A)];if(A<this.highStart)return e=this.index[e=2080+(A>>11)],e=this.index[e+=A>>5&63],this.data[e=(e<<2)+(31&A)];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},SB);function SB(A,e,t,B,r,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=B,this.index=r,this.data=n}for(var TB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),MB=0;MB<TB.length;MB++)vB[TB.charCodeAt(MB)]=MB;function NB(A){return zB.get(A)}function GB(A){var t=function(A){for(var e=[],t=0,B=A.length;t<B;){var r,n=A.charCodeAt(t++);55296<=n&&n<=56319&&t<B?56320==(64512&(r=A.charCodeAt(t++)))?e.push(((1023&n)<<10)+(1023&r)+65536):(e.push(n),t--):e.push(n)}return e}(A),B=t.length,r=0,n=0,s=t.map(NB);return{next:function(){if(B<=r)return{done:!0,value:null};for(var A=$B;r<B&&(A=function(A,e){var t=e-2,B=A[t],r=A[e-1],e=A[e];if(2===r&&3===e)return $B;if(2===r||3===r||4===r)return"Ã·";if(2===e||3===e||4===e)return"Ã·";if(r===WB&&-1!==[WB,ZB,qB,jB].indexOf(e))return $B;if(!(r!==qB&&r!==ZB||e!==ZB&&10!==e))return $B;if((r===jB||10===r)&&10===e)return $B;if(13===e||5===e)return $B;if(7===e)return $B;if(1===r)return $B;if(13===r&&14===e){for(;5===B;)B=A[--t];if(14===B)return $B}if(15===r&&15===e){for(var n=0;15===B;)n++,B=A[--t];if(n%2==0)return $B}return"Ã·"}(s,++r))===$B;);if(A===$B&&r!==B)return{done:!0,value:null};var e=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";for(var B=[],r=-1,n="";++r<t;){var s=A[r];s<=65535?B.push(s):(s-=65536,B.push(55296+(s>>10),s%1024+56320)),(r+1===t||16384<B.length)&&(n+=String.fromCharCode.apply(String,B),B.length=0)}return n}.apply(null,t.slice(n,r));return n=r,{value:e,done:!1}}}}function xB(A){for(var e,t=GB(A),B=[];!(e=t.next()).done;)e.value&&B.push(e.value.slice());return B}function VB(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]}var PB,kB,JB,XB,_B,YB,WB=8,ZB=9,qB=11,jB=12,zB=(JB=function(A){var e,t,B,r,n=.75*A.length,s=A.length,o=0;"="===A[A.length-1]&&(n--,"="===A[A.length-2]&&n--);for(var n=new("undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?ArrayBuffer:Array)(n),i=Array.isArray(n)?n:new Uint8Array(n),Q=0;Q<s;Q+=4)e=DB[A.charCodeAt(Q)],t=DB[A.charCodeAt(Q+1)],B=DB[A.charCodeAt(Q+2)],r=DB[A.charCodeAt(Q+3)],i[o++]=e<<2|t>>4,i[o++]=(15&t)<<4|B>>2,i[o++]=(3&B)<<6|63&r;return n}(PB=" "),XB=Array.isArray(JB)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=4)t.push(A[B+3]<<24|A[B+2]<<16|A[B+1]<<8|A[B]);return t}(JB):new Uint32Array(JB),_B=Array.isArray(JB)?function(A){for(var e=A.length,t=[],B=0;B<e;B+=2)t.push(A[B+1]<<8|A[B]);return t}(JB):new Uint16Array(JB),PB=RB(_B,12,XB[4]/2),kB=2===XB[5]?RB(_B,(24+XB[4])/2):(JB=XB,_B=Math.ceil((24+XB[4])/4),JB.slice?JB.slice(_B,kB):new Uint32Array(Array.prototype.slice.call(JB,_B,kB))),new OB(XB[0],XB[1],XB[2],XB[3],PB,kB)),$B="Ã—",Ar=function(A,e,t,B,r){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),n=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),n.setAttributeNS(null,"width","100%"),n.setAttributeNS(null,"height","100%"),n.setAttributeNS(null,"x",t.toString()),n.setAttributeNS(null,"y",B.toString()),n.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(n),n.appendChild(r),s},er=function(B){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(B))})},tr={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="123px",t.style.display="block",A.body.appendChild(t),e.selectNode(t);e=e.getBoundingClientRect(),e=Math.round(e.height);if(A.body.removeChild(t),123===e)return!0}}return!1}(document);return Object.defineProperty(tr,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=tr.SUPPORT_RANGE_BOUNDS&&function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var B=A.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,t=Q(r.data).map(function(A){return g(A)}),n=0,s={},t=t.every(function(A,e){B.setStart(r,n),B.setEnd(r,n+A.length);var t=B.getBoundingClientRect();n+=A.length;A=t.x>s.x||t.y>s.y;return s=t,0===e||A});return A.body.removeChild(e),t}(document);return Object.defineProperty(tr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),A=t.getContext("2d");if(!A)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(tr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var A=t.createElement("canvas"),B=100;A.width=B,A.height=B;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,B,B);var e=new Image,n=A.toDataURL();e.src=n;e=Ar(B,B,0,0,e);return r.fillStyle="red",r.fillRect(0,0,B,B),er(e).then(function(A){r.drawImage(A,0,0);var e=r.getImageData(0,0,B,B).data;r.fillStyle="red",r.fillRect(0,0,B,B);A=t.createElement("div");return A.style.backgroundImage="url("+n+")",A.style.height="100px",VB(e)?er(Ar(B,B,0,0,A)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),VB(r.getImageData(0,0,B,B).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(tr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(tr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(tr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(tr,"SUPPORT_CORS_XHR",{value:A}),A}},Br=function(A,e){this.text=A,this.bounds=e},rr=function(A,e){var t=e.ownerDocument;if(t){var B=t.createElement("html2canvasV1wrapper");B.appendChild(e.cloneNode(!0));t=e.parentNode;if(t){t.replaceChild(B,e);A=E(A,B);return B.firstChild&&t.replaceChild(B.firstChild,B),A}}return d.EMPTY},nr=function(A,e,t){var B=A.ownerDocument;if(!B)throw new Error("Node has no owner document");B=B.createRange();return B.setStart(A,e),B.setEnd(A,e+t),B},sr=function(A,e,t,B){return d.fromClientRect(A,nr(e,t,B).getBoundingClientRect())},or=function(A,e){return 0!==e.letterSpacing?xB(A):Qr(A,e)},ir=[32,160,4961,65792,65793,4153,4241],Qr=function(A,e){for(var t,B=oA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),r=[];!(t=B.next()).done;)!function(){var A,e;t.value&&(A=t.value.slice(),A=Q(A),e="",A.forEach(function(A){-1===ir.indexOf(A)?e+=g(A):(e.length&&r.push(e),r.push(g(A)),e="")}),e.length&&r.push(e))}();return r},cr=function(A,e,t){var B,r,n,s,o;this.text=ar(e.data,t.textTransform),this.textBounds=(B=A,A=this.text,n=e,A=or(A,r=t),s=[],o=0,A.forEach(function(A){var e;r.textDecorationLine.length||0<A.trim().length?tr.SUPPORT_RANGE_BOUNDS?tr.SUPPORT_WORD_BREAKING?s.push(new Br(A,sr(B,n,o,A.length))):s.push(new Br(A,d.fromDOMRectList(B,nr(n,o,A.length).getClientRects()))):(e=n.splitText(A.length),s.push(new Br(A,rr(B,n))),n=e):tr.SUPPORT_RANGE_BOUNDS||(n=n.splitText(A.length)),o+=A.length}),s)},ar=function(A,e){switch(e){case Vt.LOWERCASE:return A.toLowerCase();case Vt.CAPITALIZE:return A.replace(gr,wr);case Vt.UPPERCASE:return A.toUpperCase();default:return A}},gr=/(^|\s|:|-|\(|\))([a-z])/g,wr=function(A,e,t){return 0<A.length?e+t.toUpperCase():A},Cr=(A(Ur,YB=LB),Ur);function Ur(A,e){A=YB.call(this,A,e)||this;return A.src=e.currentSrc||e.src,A.intrinsicWidth=e.naturalWidth,A.intrinsicHeight=e.naturalHeight,A.context.cache.addImage(A.src),A}var lr,Fr=(A(ur,lr=LB),ur);function ur(A,e){A=lr.call(this,A,e)||this;return A.canvas=e,A.intrinsicWidth=e.width,A.intrinsicHeight=e.height,A}var hr,dr=(A(Er,hr=LB),Er);function Er(A,e){var t=hr.call(this,A,e)||this,B=new XMLSerializer,A=E(A,e);return e.setAttribute("width",A.width+"px"),e.setAttribute("height",A.height+"px"),t.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,t.context.cache.addImage(t.svg),t}var Hr,fr=(A(Ir,Hr=LB),Ir);function Ir(A,e){A=Hr.call(this,A,e)||this;return A.value=e.value,A}var pr,yr=(A(Kr,pr=LB),Kr);function Kr(A,e){A=pr.call(this,A,e)||this;return A.start=e.start,A.reversed="boolean"==typeof e.reversed&&!0===e.reversed,A}var Lr,mr=[{type:15,flags:0,unit:"px",number:3}],Dr=[{type:16,flags:0,number:50}],br="checkbox",Rr="radio",Or="password",Sr=707406591,Tr=(A(vr,Lr=LB),vr);function vr(A,e){var t=Lr.call(this,A,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=0===(e=(A=e).type===Or?new Array(A.value.length+1).join("â€¢"):A.value).length?A.placeholder||"":e,t.type!==br&&t.type!==Rr||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=_e.SOLID,t.styles.backgroundClip=[le.BORDER_BOX],t.styles.backgroundOrigin=[0],t.bounds=(e=t.bounds).width>e.height?new d(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new d(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e),t.type){case br:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=mr;break;case Rr:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Dr}return t}var Mr,Nr=(A(Gr,Mr=LB),Gr);function Gr(A,e){A=Mr.call(this,A,e)||this,e=e.options[e.selectedIndex||0];return A.value=e&&e.text||"",A}var xr,Vr=(A(Pr,xr=LB),Pr);function Pr(A,e){A=xr.call(this,A,e)||this;return A.value=e.value,A}var kr,Jr=(A(Xr,kr=LB),Xr);function Xr(A,e){var t,B,r=kr.call(this,A,e)||this;r.src=e.src,r.width=parseInt(e.width,10)||0,r.height=parseInt(e.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement&&(r.tree=qr(A,e.contentWindow.document.documentElement),t=e.contentWindow.document.documentElement?Ue(A,getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):he.TRANSPARENT,B=e.contentWindow.document.body?Ue(A,getComputedStyle(e.contentWindow.document.body).backgroundColor):he.TRANSPARENT,r.backgroundColor=ee(t)?ee(B)?r.styles.backgroundColor:B:t)}catch(A){}return r}function _r(A){return"STYLE"===A.tagName}var Yr=["OL","UL","MENU"],Wr=function(e,A,t,B){for(var r=A.firstChild;r;r=s){var n,s=r.nextSibling;$r(r)&&0<r.data.trim().length?t.textNodes.push(new cr(e,r,t.styles)):An(r)&&(Cn(r)&&r.assignedNodes?r.assignedNodes().forEach(function(A){return Wr(e,A,t,B)}):(n=Zr(e,r)).styles.isVisible()&&(jr(r,n,B)?n.flags|=4:zr(n.styles)&&(n.flags|=2),-1!==Yr.indexOf(r.tagName)&&(n.flags|=8),t.elements.push(n),r.slot,r.shadowRoot?Wr(e,r.shadowRoot,n,B):gn(r)||sn(r)||wn(r)||Wr(e,r,n,B)))}},Zr=function(A,e){return new(cn(e)?Cr:Qn(e)?Fr:sn(e)?dr:Bn(e)?fr:rn(e)?yr:nn(e)?Tr:wn(e)?Nr:gn(e)?Vr:an(e)?Jr:LB)(A,e)},qr=function(A,e){var t=Zr(A,e);return t.flags|=4,Wr(A,e,t,t),t},jr=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||on(A)&&t.styles.isTransparent()},zr=function(A){return A.isPositioned()||A.isFloating()},$r=function(A){return A.nodeType===Node.TEXT_NODE},An=function(A){return A.nodeType===Node.ELEMENT_NODE},en=function(A){return An(A)&&void 0!==A.style&&!tn(A)},tn=function(A){return"object"==typeof A.className},Bn=function(A){return"LI"===A.tagName},rn=function(A){return"OL"===A.tagName},nn=function(A){return"INPUT"===A.tagName},sn=function(A){return"svg"===A.tagName},on=function(A){return"BODY"===A.tagName},Qn=function(A){return"CANVAS"===A.tagName},cn=function(A){return"IMG"===A.tagName},an=function(A){return"IFRAME"===A.tagName},gn=function(A){return"TEXTAREA"===A.tagName},wn=function(A){return"SELECT"===A.tagName},Cn=function(A){return"SLOT"===A.tagName},Un=(ln.prototype.getCounterValue=function(A){A=this.counters[A];return A&&A.length?A[A.length-1]:1},ln.prototype.getCounterValues=function(A){A=this.counters[A];return A||[]},ln.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})},ln.prototype.parse=function(A){var t=this,e=A.counterIncrement,A=A.counterReset,B=!0;null!==e&&e.forEach(function(A){var e=t.counters[A.counter];e&&0!==A.increment&&(B=!1,e.length||e.push(1),e[Math.max(0,e.length-1)]+=A.increment)});var r=[];return B&&A.forEach(function(A){var e=t.counters[A.counter];r.push(A.counter),(e=e||(t.counters[A.counter]=[])).push(A.reset)}),r},ln);function ln(){this.counters={}}function Fn(B,A,e,r,t,n){return B<A||e<B?Ln(B,t,0<n.length):r.integers.reduce(function(A,e,t){for(;e<=B;)B-=e,A+=r.values[t];return A},"")+n}function un(A,e,t,B){for(var r="";t||A--,r=B(A)+r,e<=(A/=e)*e;);return r}function hn(A,e,t,B,r){var n=t-e+1;return(A<0?"-":"")+(un(Math.abs(A),n,B,function(A){return g(Math.floor(A%n)+e)})+r)}function dn(A,e,t){void 0===t&&(t=". ");var B=e.length;return un(Math.abs(A),B,!1,function(A){return e[Math.floor(A%B)]})+t}function En(A,e,t,B,r,n){if(A<-9999||9999<A)return Ln(A,It.CJK_DECIMAL,0<r.length);var s=Math.abs(A),o=r;if(0===s)return e[0]+o;for(var i=0;0<s&&i<=4;i++){var Q=s%10;0==Q&&QB(n,1)&&""!==o?o=e[Q]+o:1<Q||1==Q&&0===i||1==Q&&1===i&&QB(n,2)||1==Q&&1===i&&QB(n,4)&&100<A||1==Q&&1<i&&QB(n,8)?o=e[Q]+(0<i?t[i-1]:"")+o:1==Q&&0<i&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?B:"")+o}var Hn,fn={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},In={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Õ”","Õ“","Õ’","Õ‘","Õ?","Õ?","ÕŽ","Õ?","ÕŒ","Õ‹","ÕŠ","Õ‰","Õˆ","Õ‡","Õ†","Õ…","Õ„","Õƒ","Õ‚","Õ?","Õ€","Ô¿","Ô¾","Ô½","Ô¼","Ô»","Ôº","Ô¹","Ô¸","Ô·","Ô¶","Ôµ","Ô´","Ô³","Ô²","Ô±"]},pn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["×™×³","×˜×³","×—×³","×–×³","×•×³","×”×³","×“×³","×’×³","×‘×³","×?×³","×ª","×©","×¨","×§","×¦","×¤","×¢","×¡","× ","×ž","×œ","×›","×™×˜","×™×—","×™×–","×˜×–","×˜×•","×™","×˜","×—","×–","×•","×”","×“","×’","×‘","×?"]},yn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["áƒµ","áƒ°","áƒ¯","áƒ´","áƒ®","áƒ­","áƒ¬","áƒ«","áƒª","áƒ©","áƒ¨","áƒ§","áƒ¦","áƒ¥","áƒ¤","áƒ³","áƒ¢","áƒ¡","áƒ ","áƒŸ","áƒž","áƒ?","áƒ²","áƒœ","áƒ›","áƒš","áƒ™","áƒ˜","áƒ—","áƒ±","áƒ–","áƒ•","áƒ”","áƒ“","áƒ’","áƒ‘","áƒ?"]},Kn="ë§ˆì?´ë„ˆìŠ¤",Ln=function(A,e,t){var B=t?". ":"",r=t?"ã€?":"",n=t?", ":"",s=t?" ":"";switch(e){case It.DISC:return"â€¢"+s;case It.CIRCLE:return"â—¦"+s;case It.SQUARE:return"â—¾"+s;case It.DECIMAL_LEADING_ZERO:var o=hn(A,48,57,!0,B);return o.length<4?"0"+o:o;case It.CJK_DECIMAL:return dn(A,"ã€‡ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?",r);case It.LOWER_ROMAN:return Fn(A,1,3999,fn,It.DECIMAL,B).toLowerCase();case It.UPPER_ROMAN:return Fn(A,1,3999,fn,It.DECIMAL,B);case It.LOWER_GREEK:return hn(A,945,969,!1,B);case It.LOWER_ALPHA:return hn(A,97,122,!1,B);case It.UPPER_ALPHA:return hn(A,65,90,!1,B);case It.ARABIC_INDIC:return hn(A,1632,1641,!0,B);case It.ARMENIAN:case It.UPPER_ARMENIAN:return Fn(A,1,9999,In,It.DECIMAL,B);case It.LOWER_ARMENIAN:return Fn(A,1,9999,In,It.DECIMAL,B).toLowerCase();case It.BENGALI:return hn(A,2534,2543,!0,B);case It.CAMBODIAN:case It.KHMER:return hn(A,6112,6121,!0,B);case It.CJK_EARTHLY_BRANCH:return dn(A,"å­?ä¸‘å¯…å?¯è¾°å·³å?ˆæœªç”³é…‰æˆŒäº¥",r);case It.CJK_HEAVENLY_STEM:return dn(A,"ç”²ä¹™ä¸™ä¸?æˆŠå·±åºšè¾›å£¬ç™¸",r);case It.CJK_IDEOGRAPHIC:case It.TRAD_CHINESE_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬","è² ",r,14);case It.TRAD_CHINESE_FORMAL:return En(A,"é›¶å£¹è²³å?ƒè‚†ä¼?é™¸æŸ’æ?ŒçŽ–","æ‹¾ä½°ä»Ÿè?¬","è² ",r,15);case It.SIMP_CHINESE_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬","è´Ÿ",r,14);case It.SIMP_CHINESE_FORMAL:return En(A,"é›¶å£¹è´°å??è‚†ä¼?é™†æŸ’æ?ŒçŽ–","æ‹¾ä½°ä»Ÿè?¬","è´Ÿ",r,15);case It.JAPANESE_INFORMAL:return En(A,"ã€‡ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒä¸‡","ãƒžã‚¤ãƒŠã‚¹",r,0);case It.JAPANESE_FORMAL:return En(A,"é›¶å£±å¼?å?‚å››ä¼?å…­ä¸ƒå…«ä¹?","æ‹¾ç™¾å?ƒä¸‡","ãƒžã‚¤ãƒŠã‚¹",r,7);case It.KOREAN_HANGUL_FORMAL:return En(A,"ì˜?ì?¼ì?´ì‚¼ì‚¬ì˜¤ìœ¡ì¹ íŒ”êµ¬","ì‹­ë°±ì²œë§Œ",Kn,n,7);case It.KOREAN_HANJA_INFORMAL:return En(A,"é›¶ä¸€äºŒä¸‰å››äº”å…­ä¸ƒå…«ä¹?","å??ç™¾å?ƒè?¬",Kn,n,0);case It.KOREAN_HANJA_FORMAL:return En(A,"é›¶å£¹è²³å?ƒå››äº”å…­ä¸ƒå…«ä¹?","æ‹¾ç™¾å?ƒ",Kn,n,7);case It.DEVANAGARI:return hn(A,2406,2415,!0,B);case It.GEORGIAN:return Fn(A,1,19999,yn,It.DECIMAL,B);case It.GUJARATI:return hn(A,2790,2799,!0,B);case It.GURMUKHI:return hn(A,2662,2671,!0,B);case It.HEBREW:return Fn(A,1,10999,pn,It.DECIMAL,B);case It.HIRAGANA:return dn(A,"ã?‚ã?„ã?†ã?ˆã?Šã?‹ã??ã??ã?‘ã?“ã?•ã?—ã?™ã?›ã??ã?Ÿã?¡ã?¤ã?¦ã?¨ã?ªã?«ã?¬ã?­ã?®ã?¯ã?²ã?µã?¸ã?»ã?¾ã?¿ã‚€ã‚?ã‚‚ã‚„ã‚†ã‚ˆã‚‰ã‚Šã‚‹ã‚Œã‚?ã‚?ã‚?ã‚‘ã‚’ã‚“");case It.HIRAGANA_IROHA:return dn(A,"ã?„ã‚?ã?¯ã?«ã?»ã?¸ã?¨ã?¡ã‚Šã?¬ã‚‹ã‚’ã‚?ã?‹ã‚ˆã?Ÿã‚Œã??ã?¤ã?­ã?ªã‚‰ã‚€ã?†ã‚?ã?®ã?Šã??ã‚„ã?¾ã?‘ã?µã?“ã?ˆã?¦ã?‚ã?•ã??ã‚†ã‚?ã?¿ã?—ã‚‘ã?²ã‚‚ã?›ã?™");case It.KANNADA:return hn(A,3302,3311,!0,B);case It.KATAKANA:return dn(A,"ã‚¢ã‚¤ã‚¦ã‚¨ã‚ªã‚«ã‚­ã‚¯ã‚±ã‚³ã‚µã‚·ã‚¹ã‚»ã‚½ã‚¿ãƒ?ãƒ„ãƒ†ãƒˆãƒŠãƒ‹ãƒŒãƒ?ãƒŽãƒ?ãƒ’ãƒ•ãƒ˜ãƒ›ãƒžãƒŸãƒ ãƒ¡ãƒ¢ãƒ¤ãƒ¦ãƒ¨ãƒ©ãƒªãƒ«ãƒ¬ãƒ­ãƒ¯ãƒ°ãƒ±ãƒ²ãƒ³",r);case It.KATAKANA_IROHA:return dn(A,"ã‚¤ãƒ­ãƒ?ãƒ‹ãƒ›ãƒ˜ãƒˆãƒ?ãƒªãƒŒãƒ«ãƒ²ãƒ¯ã‚«ãƒ¨ã‚¿ãƒ¬ã‚½ãƒ„ãƒ?ãƒŠãƒ©ãƒ ã‚¦ãƒ°ãƒŽã‚ªã‚¯ãƒ¤ãƒžã‚±ãƒ•ã‚³ã‚¨ãƒ†ã‚¢ã‚µã‚­ãƒ¦ãƒ¡ãƒŸã‚·ãƒ±ãƒ’ãƒ¢ã‚»ã‚¹",r);case It.LAO:return hn(A,3792,3801,!0,B);case It.MONGOLIAN:return hn(A,6160,6169,!0,B);case It.MYANMAR:return hn(A,4160,4169,!0,B);case It.ORIYA:return hn(A,2918,2927,!0,B);case It.PERSIAN:return hn(A,1776,1785,!0,B);case It.TAMIL:return hn(A,3046,3055,!0,B);case It.TELUGU:return hn(A,3174,3183,!0,B);case It.THAI:return hn(A,3664,3673,!0,B);case It.TIBETAN:return hn(A,3872,3881,!0,B);default:It.DECIMAL;return hn(A,48,57,!0,B)}},mn="data-html2canvasV1-ignore",Dn=(bn.prototype.toIFrame=function(A,B){var e=this,r=On(A,B);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var t=A.defaultView.pageXOffset,n=A.defaultView.pageYOffset,s=r.contentWindow,o=s.document,A=Tn(r).then(function(){return a(e,void 0,void 0,function(){var e,t;return H(this,function(A){switch(A.label){case 0:return this.scrolledElements.forEach(xn),s&&(s.scrollTo(B.left,B.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===B.top&&s.scrollX===B.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-B.left,s.scrollY-B.top,0,0))),e=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Sn(o)]:[3,4];case 3:A.sent(),A.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(o,t)}).then(function(){return r})]:[2,r]}})})});return o.open(),o.write(Nn(document.doctype)+"<html></html>"),Gn(this.referenceElement.ownerDocument,t,n),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),A},bn.prototype.createElementClone=function(A){if(KB(A,2),Qn(A))return this.createCanvasClone(A);if(_r(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return cn(e)&&(cn(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),e},bn.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A},""),B=A.cloneNode(!1);return B.textContent=t,B}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},bn.prototype.createCanvasClone=function(e){var A;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}t=e.cloneNode(!1);try{t.width=e.width,t.height=e.height;var B,r,n=e.getContext("2d"),s=t.getContext("2d");return s&&(!this.options.allowTaint&&n?s.putImageData(n.getImageData(0,0,e.width,e.height),0,0):(!(B=null!==(A=e.getContext("webgl2"))&&void 0!==A?A:e.getContext("webgl"))||!1===(null==(r=B.getContextAttributes())?void 0:r.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e),s.drawImage(e,0,0))),t}catch(A){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return t},bn.prototype.cloneNode=function(A){if($r(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(e&&An(A)&&(en(A)||tn(A))){var t=this.createElementClone(A);t.style.transitionProperty="none";var B=e.getComputedStyle(A),r=e.getComputedStyle(A,":before"),n=e.getComputedStyle(A,":after");this.referenceElement===A&&en(t)&&(this.clonedReferenceElement=t),on(t)&&Jn(t);for(var e=this.counters.parse(new pB(this.context,B)),r=this.resolvePseudoContent(A,t,r,Hn.BEFORE),s=A.firstChild;s;s=s.nextSibling)An(s)&&("SCRIPT"===s.tagName||s.hasAttribute(mn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&An(s)&&_r(s)||t.appendChild(this.cloneNode(s));r&&t.insertBefore(r,t.firstChild);n=this.resolvePseudoContent(A,t,n,Hn.AFTER);return n&&t.appendChild(n),this.counters.pop(e),B&&(this.options.copyStyles||tn(A))&&!an(A)&&Mn(B,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(gn(A)||wn(A))&&(gn(t)||wn(t))&&(t.value=A.value),t}return A.cloneNode(!1)},bn.prototype.resolvePseudoContent=function(o,A,e,t){var i=this;if(e){var B=e.content,Q=A.ownerDocument;if(Q&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==e.display){this.counters.parse(new pB(this.context,e));var c=new IB(this.context,e),a=Q.createElement("html2canvasV1pseudoelement");Mn(e,a),c.content.forEach(function(A){if(0===A.type)a.appendChild(Q.createTextNode(A.value));else if(22===A.type){var e=Q.createElement("img");e.src=A.value,e.style.opacity="1",a.appendChild(e)}else if(18===A.type){var t,B,r,n,s;"attr"===A.name?(e=A.values.filter(kA)).length&&a.appendChild(Q.createTextNode(o.getAttribute(e[0].value)||"")):"counter"===A.name?(r=(B=A.values.filter(YA))[0],B=B[1],r&&kA(r)&&(t=i.counters.getCounterValue(r.value),s=B&&kA(B)?Kt.parse(i.context,B.value):It.DECIMAL,a.appendChild(Q.createTextNode(Ln(t,s,!1))))):"counters"===A.name&&(r=(t=A.values.filter(YA))[0],s=t[1],B=t[2],r&&kA(r)&&(r=i.counters.getCounterValues(r.value),n=B&&kA(B)?Kt.parse(i.context,B.value):It.DECIMAL,s=s&&0===s.type?s.value:"",s=r.map(function(A){return Ln(A,n,!1)}).join(s),a.appendChild(Q.createTextNode(s))))}else if(20===A.type)switch(A.value){case"open-quote":a.appendChild(Q.createTextNode(cB(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(Q.createTextNode(cB(c.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(Q.createTextNode(A.value))}}),a.className=Vn+" "+Pn;t=t===Hn.BEFORE?" "+Vn:" "+Pn;return tn(A)?A.className.baseValue+=t:A.className+=t,a}}},bn.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},bn);function bn(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Un,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}(we=Hn=Hn||{})[we.BEFORE=0]="BEFORE",we[we.AFTER=1]="AFTER";function Rn(e){return new Promise(function(A){!e.complete&&e.src?(e.onload=A,e.onerror=A):A()})}var On=function(A,e){var t=A.createElement("iframe");return t.className="html2canvasV1-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(mn,"true"),A.body.appendChild(t),t},Sn=function(A){return Promise.all([].slice.call(A.images,0).map(Rn))},Tn=function(r){return new Promise(function(e,A){var t=r.contentWindow;if(!t)return A("No window assigned for iframe");var B=t.document;t.onload=r.onload=function(){t.onload=r.onload=null;var A=setInterval(function(){0<B.body.childNodes.length&&"complete"===B.readyState&&(clearInterval(A),e(r))},50)}})},vn=["all","d","content"],Mn=function(A,e){for(var t=A.length-1;0<=t;t--){var B=A.item(t);-1===vn.indexOf(B)&&e.style.setProperty(B,A.getPropertyValue(B))}return e},Nn=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Gn=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},xn=function(A){var e=A[0],t=A[1],A=A[2];e.scrollLeft=t,e.scrollTop=A},Vn="___html2canvasV1___pseudoelement_before",Pn="___html2canvasV1___pseudoelement_after",kn='{\n    content: "" !important;\n    display: none !important;\n}',Jn=function(A){Xn(A,"."+Vn+":before"+kn+"\n         ."+Pn+":after"+kn)},Xn=function(A,e){var t=A.ownerDocument;t&&((t=t.createElement("style")).textContent=e,A.appendChild(t))},_n=(Yn.getOrigin=function(A){var e=Yn._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},Yn.isSameOrigin=function(A){return Yn.getOrigin(A)===Yn._origin},Yn.setContext=function(A){Yn._link=A.document.createElement("a"),Yn._origin=Yn.getOrigin(A.location.href)},Yn._origin="about:blank",Yn);function Yn(){}var Wn=(Zn.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Bs(A)||As(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},Zn.prototype.match=function(A){return this._cache[A]},Zn.prototype.loadImage=function(s){return a(this,void 0,void 0,function(){var e,B,t,r,n=this;return H(this,function(A){switch(A.label){case 0:return(e=_n.isSameOrigin(s),B=!es(s)&&!0===this._options.useCORS&&tr.SUPPORT_CORS_IMAGES&&!e,t=!es(s)&&!e&&!Bs(s)&&"string"==typeof this._options.proxy&&tr.SUPPORT_CORS_XHR&&!B,e||!1!==this._options.allowTaint||es(s)||Bs(s)||t||B)?(r=s,t?[4,this.proxy(r)]:[3,2]):[2];case 1:r=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+s.substring(0,256)),[4,new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,(ts(r)||B)&&(t.crossOrigin="anonymous"),t.src=r,!0===t.complete&&setTimeout(function(){return A(t)},500),0<n._options.imageTimeout&&setTimeout(function(){return e("Timed out ("+n._options.imageTimeout+"ms) loading image")},n._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},Zn.prototype.has=function(A){return void 0!==this._cache[A]},Zn.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Zn.prototype.proxy=function(s){var o=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var Q=s.substring(0,256);return new Promise(function(e,t){var B=tr.SUPPORT_RESPONSE_TYPE?"blob":"text",r=new XMLHttpRequest;r.onload=function(){var A;200===r.status?"text"==B?e(r.response):((A=new FileReader).addEventListener("load",function(){return e(A.result)},!1),A.addEventListener("error",function(A){return t(A)},!1),A.readAsDataURL(r.response)):t("Failed to proxy resource "+Q+" with status code "+r.status)},r.onerror=t;var A,n=-1<i.indexOf("?")?"&":"?";r.open("GET",i+n+"url="+encodeURIComponent(s)+"&responseType="+B),"text"!=B&&r instanceof XMLHttpRequest&&(r.responseType=B),o._options.imageTimeout&&(A=o._options.imageTimeout,r.timeout=A,r.ontimeout=function(){return t("Timed out ("+A+"ms) proxying "+Q)}),r.send()})},Zn);function Zn(A,e){this.context=A,this._options=e,this._cache={}}var qn,jn=/^data:image\/svg\+xml/i,zn=/^data:image\/.*;base64,/i,$n=/^data:image\/.*/i,As=function(A){return tr.SUPPORT_SVG_DRAWING||!rs(A)},es=function(A){return $n.test(A)},ts=function(A){return zn.test(A)},Bs=function(A){return"blob"===A.substr(0,4)},rs=function(A){return"svg"===A.substr(-3).toLowerCase()||jn.test(A)};(we=qn=qn||{})[we.VECTOR=0]="VECTOR",we[we.BEZIER_CURVE=1]="BEZIER_CURVE";function ns(A,t){return A.length===t.length&&A.some(function(A,e){return A===t[e]})}var ss=(os.prototype.add=function(A,e){return new os(this.x+A,this.y+e)},os);function os(A,e){this.type=qn.VECTOR,this.x=A,this.y=e}function is(A,e,t){return new ss(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)}var Qs=(cs.prototype.subdivide=function(A,e){var t=is(this.start,this.startControl,A),B=is(this.startControl,this.endControl,A),r=is(this.endControl,this.end,A),n=is(t,B,A),B=is(B,r,A),A=is(n,B,A);return e?new cs(this.start,t,n,A):new cs(A,B,r,this.end)},cs.prototype.add=function(A,e){return new cs(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},cs.prototype.reverse=function(){return new cs(this.end,this.endControl,this.startControl,this.start)},cs);function cs(A,e,t,B){this.type=qn.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=B}function as(A){return A.type===qn.BEZIER_CURVE}var gs,ws=function(A){var e=A.styles,t=A.bounds,B=(l=zA(e.borderTopLeftRadius,t.width,t.height))[0],r=l[1],n=(F=zA(e.borderTopRightRadius,t.width,t.height))[0],s=F[1],o=(u=zA(e.borderBottomRightRadius,t.width,t.height))[0],i=u[1],Q=(h=zA(e.borderBottomLeftRadius,t.width,t.height))[0],c=h[1];(d=[]).push((B+n)/t.width),d.push((Q+o)/t.width),d.push((r+c)/t.height),d.push((s+i)/t.height),1<(E=Math.max.apply(Math,d))&&(B/=E,r/=E,n/=E,s/=E,o/=E,i/=E,Q/=E,c/=E);var a=t.width-n,g=t.height-i,w=t.width-o,C=t.height-c,U=e.borderTopWidth,l=e.borderRightWidth,F=e.borderBottomWidth,u=e.borderLeftWidth,h=ie(e.paddingTop,A.bounds.width),d=ie(e.paddingRight,A.bounds.width),E=ie(e.paddingBottom,A.bounds.width),A=ie(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=0<B||0<r?Fs(t.left+u/3,t.top+U/3,B-u/3,r-U/3,gs.TOP_LEFT):new ss(t.left+u/3,t.top+U/3),this.topRightBorderDoubleOuterBox=0<B||0<r?Fs(t.left+a,t.top+U/3,n-l/3,s-U/3,gs.TOP_RIGHT):new ss(t.left+t.width-l/3,t.top+U/3),this.bottomRightBorderDoubleOuterBox=0<o||0<i?Fs(t.left+w,t.top+g,o-l/3,i-F/3,gs.BOTTOM_RIGHT):new ss(t.left+t.width-l/3,t.top+t.height-F/3),this.bottomLeftBorderDoubleOuterBox=0<Q||0<c?Fs(t.left+u/3,t.top+C,Q-u/3,c-F/3,gs.BOTTOM_LEFT):new ss(t.left+u/3,t.top+t.height-F/3),this.topLeftBorderDoubleInnerBox=0<B||0<r?Fs(t.left+2*u/3,t.top+2*U/3,B-2*u/3,r-2*U/3,gs.TOP_LEFT):new ss(t.left+2*u/3,t.top+2*U/3),this.topRightBorderDoubleInnerBox=0<B||0<r?Fs(t.left+a,t.top+2*U/3,n-2*l/3,s-2*U/3,gs.TOP_RIGHT):new ss(t.left+t.width-2*l/3,t.top+2*U/3),this.bottomRightBorderDoubleInnerBox=0<o||0<i?Fs(t.left+w,t.top+g,o-2*l/3,i-2*F/3,gs.BOTTOM_RIGHT):new ss(t.left+t.width-2*l/3,t.top+t.height-2*F/3),this.bottomLeftBorderDoubleInnerBox=0<Q||0<c?Fs(t.left+2*u/3,t.top+C,Q-2*u/3,c-2*F/3,gs.BOTTOM_LEFT):new ss(t.left+2*u/3,t.top+t.height-2*F/3),this.topLeftBorderStroke=0<B||0<r?Fs(t.left+u/2,t.top+U/2,B-u/2,r-U/2,gs.TOP_LEFT):new ss(t.left+u/2,t.top+U/2),this.topRightBorderStroke=0<B||0<r?Fs(t.left+a,t.top+U/2,n-l/2,s-U/2,gs.TOP_RIGHT):new ss(t.left+t.width-l/2,t.top+U/2),this.bottomRightBorderStroke=0<o||0<i?Fs(t.left+w,t.top+g,o-l/2,i-F/2,gs.BOTTOM_RIGHT):new ss(t.left+t.width-l/2,t.top+t.height-F/2),this.bottomLeftBorderStroke=0<Q||0<c?Fs(t.left+u/2,t.top+C,Q-u/2,c-F/2,gs.BOTTOM_LEFT):new ss(t.left+u/2,t.top+t.height-F/2),this.topLeftBorderBox=0<B||0<r?Fs(t.left,t.top,B,r,gs.TOP_LEFT):new ss(t.left,t.top),this.topRightBorderBox=0<n||0<s?Fs(t.left+a,t.top,n,s,gs.TOP_RIGHT):new ss(t.left+t.width,t.top),this.bottomRightBorderBox=0<o||0<i?Fs(t.left+w,t.top+g,o,i,gs.BOTTOM_RIGHT):new ss(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=0<Q||0<c?Fs(t.left,t.top+C,Q,c,gs.BOTTOM_LEFT):new ss(t.left,t.top+t.height),this.topLeftPaddingBox=0<B||0<r?Fs(t.left+u,t.top+U,Math.max(0,B-u),Math.max(0,r-U),gs.TOP_LEFT):new ss(t.left+u,t.top+U),this.topRightPaddingBox=0<n||0<s?Fs(t.left+Math.min(a,t.width-l),t.top+U,a>t.width+l?0:Math.max(0,n-l),Math.max(0,s-U),gs.TOP_RIGHT):new ss(t.left+t.width-l,t.top+U),this.bottomRightPaddingBox=0<o||0<i?Fs(t.left+Math.min(w,t.width-u),t.top+Math.min(g,t.height-F),Math.max(0,o-l),Math.max(0,i-F),gs.BOTTOM_RIGHT):new ss(t.left+t.width-l,t.top+t.height-F),this.bottomLeftPaddingBox=0<Q||0<c?Fs(t.left+u,t.top+Math.min(C,t.height-F),Math.max(0,Q-u),Math.max(0,c-F),gs.BOTTOM_LEFT):new ss(t.left+u,t.top+t.height-F),this.topLeftContentBox=0<B||0<r?Fs(t.left+u+A,t.top+U+h,Math.max(0,B-(u+A)),Math.max(0,r-(U+h)),gs.TOP_LEFT):new ss(t.left+u+A,t.top+U+h),this.topRightContentBox=0<n||0<s?Fs(t.left+Math.min(a,t.width+u+A),t.top+U+h,a>t.width+u+A?0:n-u+A,s-(U+h),gs.TOP_RIGHT):new ss(t.left+t.width-(l+d),t.top+U+h),this.bottomRightContentBox=0<o||0<i?Fs(t.left+Math.min(w,t.width-(u+A)),t.top+Math.min(g,t.height+U+h),Math.max(0,o-(l+d)),i-(F+E),gs.BOTTOM_RIGHT):new ss(t.left+t.width-(l+d),t.top+t.height-(F+E)),this.bottomLeftContentBox=0<Q||0<c?Fs(t.left+u+A,t.top+C,Math.max(0,Q-(u+A)),c-(F+E),gs.BOTTOM_LEFT):new ss(t.left+u+A,t.top+t.height-(F+E))};(we=gs=gs||{})[we.TOP_LEFT=0]="TOP_LEFT",we[we.TOP_RIGHT=1]="TOP_RIGHT",we[we.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",we[we.BOTTOM_LEFT=3]="BOTTOM_LEFT";function Cs(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]}function Us(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]}function ls(A){return 1===A.type}var Fs=function(A,e,t,B,r){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=B*n,i=A+t,Q=e+B;switch(r){case gs.TOP_LEFT:return new Qs(new ss(A,Q),new ss(A,Q-o),new ss(i-s,e),new ss(i,e));case gs.TOP_RIGHT:return new Qs(new ss(A,e),new ss(A+s,e),new ss(i,Q-o),new ss(i,Q));case gs.BOTTOM_RIGHT:return new Qs(new ss(i,e),new ss(i,e+o),new ss(A+s,Q),new ss(A,Q));default:gs.BOTTOM_LEFT;return new Qs(new ss(i,Q),new ss(i-s,Q),new ss(A,e+o),new ss(A,e))}},us=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},hs=function(A,e){this.path=A,this.target=e,this.type=1},ds=function(A){this.opacity=A,this.type=2,this.target=6},Es=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Hs=(fs.prototype.getEffects=function(e){for(var A=-1===[Gt.ABSOLUTE,Gt.FIXED].indexOf(this.container.styles.position),t=this.parent,B=this.effects.slice(0);t;){var r,n,s=t.effects.filter(function(A){return!ls(A)});A||t.container.styles.position!==Gt.STATIC||!t.parent?(B.unshift.apply(B,s),A=-1===[Gt.ABSOLUTE,Gt.FIXED].indexOf(t.container.styles.position),t.container.styles.overflowX!==yt.VISIBLE&&(r=Cs(t.curves),n=Us(t.curves),ns(r,n)||B.unshift(new hs(n,6)))):B.unshift.apply(B,s),t=t.parent}return B.filter(function(A){return QB(A.target,e)})},fs);function fs(A,e){var t,B;this.container=A,this.parent=e,this.effects=[],this.curves=new ws(this.container),this.container.styles.opacity<1&&this.effects.push(new ds(this.container.styles.opacity)),null!==this.container.styles.transform&&(e=this.container.bounds.left+this.container.styles.transformOrigin[0].number,t=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform,this.effects.push(new us(e,t,B))),this.container.styles.overflowX!==yt.VISIBLE&&(t=Cs(this.curves),B=Us(this.curves),ns(t,B)?this.effects.push(new hs(t,6)):(this.effects.push(new hs(t,2)),this.effects.push(new hs(B,4))))}function Is(A,e){switch(e){case 0:return Os(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return Os(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return Os(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return Os(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}}function ps(A){var e=A.bounds,A=A.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))}function ys(A){var e=A.styles,t=A.bounds,B=ie(e.paddingLeft,t.width),r=ie(e.paddingRight,t.width),n=ie(e.paddingTop,t.width),A=ie(e.paddingBottom,t.width);return t.add(B+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+B+r),-(e.borderTopWidth+e.borderBottomWidth+n+A))}function Ks(A,e,t){var B=(r=Ts(A.styles.backgroundOrigin,e),n=A,0===r?n.bounds:(2===r?ys:ps)(n)),r=(s=Ts(A.styles.backgroundClip,e),o=A,s===le.BORDER_BOX?o.bounds:(s===le.CONTENT_BOX?ys:ps)(o)),n=Ss(Ts(A.styles.backgroundSize,e),t,B),s=n[0],o=n[1],t=zA(Ts(A.styles.backgroundPosition,e),B.width-s,B.height-o);return[vs(Ts(A.styles.backgroundRepeat,e),t,n,B,r),Math.round(B.left+t[0]),Math.round(B.top+t[1]),s,o]}function Ls(A){return kA(A)&&A.value===ke.AUTO}function ms(A){return"number"==typeof A}var Ds=function(Q,c,a,g){Q.container.elements.forEach(function(A){var e=QB(A.flags,4),t=QB(A.flags,2),B=new Hs(A,Q);QB(A.styles.display,2048)&&g.push(B);var r,n,s,o,i=QB(A.flags,8)?[]:g;e||t?(r=e||A.styles.isPositioned()?a:c,t=new Es(B),A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()?(n=A.styles.zIndex.order)<0?(s=0,r.negativeZIndex.some(function(A,e){return n>A.element.container.styles.zIndex.order?(s=e,!1):0<s}),r.negativeZIndex.splice(s,0,t)):0<n?(o=0,r.positiveZIndex.some(function(A,e){return n>=A.element.container.styles.zIndex.order?(o=e+1,!1):0<o}),r.positiveZIndex.splice(o,0,t)):r.zeroOrAutoZIndexOrTransformedOrOpacity.push(t):(A.styles.isFloating()?r.nonPositionedFloats:r.nonPositionedInlineLevel).push(t),Ds(B,t,e?t:a,i)):((A.styles.isInlineLevel()?c.inlineLevel:c.nonInlineLevel).push(B),Ds(B,c,a,i)),QB(A.flags,8)&&bs(A,i)})},bs=function(A,e){for(var t=A instanceof yr?A.start:1,B=A instanceof yr&&A.reversed,r=0;r<e.length;r++){var n=e[r];n.container instanceof fr&&"number"==typeof n.container.value&&0!==n.container.value&&(t=n.container.value),n.listValue=Ln(t,n.container.styles.listStyleType,!0),t+=B?-1:1}},Rs=function(A,e){var t=[];return as(A)?t.push(A.subdivide(.5,!1)):t.push(A),as(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},Os=function(A,e,t,B){var r=[];return as(A)?r.push(A.subdivide(.5,!1)):r.push(A),as(t)?r.push(t.subdivide(.5,!0)):r.push(t),as(B)?r.push(B.subdivide(.5,!0).reverse()):r.push(B),as(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},Ss=function(A,e,t){var B=e[0],r=e[1],n=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(qA(s)&&o&&qA(o))return[ie(s,t.width),ie(o,t.height)];var i=ms(n);if(kA(s)&&(s.value===ke.CONTAIN||s.value===ke.COVER))return ms(n)?t.width/t.height<n!=(s.value===ke.COVER)?[t.width,t.width/n]:[t.height*n,t.height]:[t.width,t.height];var Q=ms(B),e=ms(r),A=Q||e;if(Ls(s)&&(!o||Ls(o)))return Q&&e?[B,r]:i||A?A&&i?[Q?B:r*n,e?r:B/n]:[Q?B:t.width,e?r:t.height]:[t.width,t.height];if(i){var c=0,a=0;return qA(s)?c=ie(s,t.width):qA(o)&&(a=ie(o,t.height)),Ls(s)?c=a*n:o&&!Ls(o)||(a=c/n),[c,a]}c=null,a=null;if(qA(s)?c=ie(s,t.width):o&&qA(o)&&(a=ie(o,t.height)),null!==(c=null!==(a=null!==c&&(!o||Ls(o))?Q&&e?c/B*r:t.height:a)&&Ls(s)?Q&&e?a/r*B:t.width:c)&&null!==a)return[c,a];throw new Error("Unable to calculate background-size for element")},Ts=function(A,e){e=A[e];return void 0===e?A[0]:e},vs=function(A,e,t,B,r){var n=e[0],s=e[1],o=t[0],i=t[1];switch(A){case Ne.REPEAT_X:return[new ss(Math.round(B.left),Math.round(B.top+s)),new ss(Math.round(B.left+B.width),Math.round(B.top+s)),new ss(Math.round(B.left+B.width),Math.round(i+B.top+s)),new ss(Math.round(B.left),Math.round(i+B.top+s))];case Ne.REPEAT_Y:return[new ss(Math.round(B.left+n),Math.round(B.top)),new ss(Math.round(B.left+n+o),Math.round(B.top)),new ss(Math.round(B.left+n+o),Math.round(B.height+B.top)),new ss(Math.round(B.left+n),Math.round(B.height+B.top))];case Ne.NO_REPEAT:return[new ss(Math.round(B.left+n),Math.round(B.top+s)),new ss(Math.round(B.left+n+o),Math.round(B.top+s)),new ss(Math.round(B.left+n+o),Math.round(B.top+s+i)),new ss(Math.round(B.left+n),Math.round(B.top+s+i))];default:return[new ss(Math.round(r.left),Math.round(r.top)),new ss(Math.round(r.left+r.width),Math.round(r.top)),new ss(Math.round(r.left+r.width),Math.round(r.height+r.top)),new ss(Math.round(r.left),Math.round(r.height+r.top))]}},Ms="Hidden Text",Ns=(Gs.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),B=this._document.createElement("img"),r=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",n.appendChild(t),B.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(Ms)),t.appendChild(r),t.appendChild(B);e=B.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(Ms)),t.style.lineHeight="normal",B.style.verticalAlign="super";B=B.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:e,middle:B}},Gs.prototype.getMetrics=function(A,e){var t=A+" "+e;return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},Gs);function Gs(A){this._data={},this._document=A}var xs,we=function(A,e){this.context=A,this.options=e},Vs=(A(Ps,xs=we),Ps.prototype.applyEffects=function(A){for(var e=this;this._activeEffects.length;)this.popEffect();A.forEach(function(A){return e.applyEffect(A)})},Ps.prototype.applyEffect=function(A){this.ctx.save(),2===A.type&&(this.ctx.globalAlpha=A.opacity),0===A.type&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),ls(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},Ps.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ps.prototype.renderStack=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}})})},Ps.prototype.renderNode=function(e){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return QB(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return A.sent(),[4,this.renderNodeContent(e)];case 2:A.sent(),A.label=3;case 3:return[2]}})})},Ps.prototype.renderTextWithLetterSpacing=function(t,A,B){var r=this;0===A?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B):xB(t.text).reduce(function(A,e){return r.ctx.fillText(e,A,t.bounds.top+B),A+r.ctx.measureText(e).width},t.bounds.left)},Ps.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=A.fontFamily.join(", "),B=VA(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,B,t].join(" "),t,B]},Ps.prototype.renderTextNode=function(i,Q){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o=this;return H(this,function(A){return B=this.createFontStyle(Q),e=B[0],t=B[1],B=B[2],this.ctx.font=e,this.ctx.direction=1===Q.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",B=this.fontMetrics.getMetrics(t,B),r=B.baseline,n=B.middle,s=Q.paintOrder,i.textBounds.forEach(function(t){s.forEach(function(A){switch(A){case aB.FILL:o.ctx.fillStyle=te(Q.color),o.renderTextWithLetterSpacing(t,Q.letterSpacing,r);var e=Q.textShadow;e.length&&t.text.trim().length&&(e.slice(0).reverse().forEach(function(A){o.ctx.shadowColor=te(A.color),o.ctx.shadowOffsetX=A.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=A.offsetY.number*o.options.scale,o.ctx.shadowBlur=A.blur.number,o.renderTextWithLetterSpacing(t,Q.letterSpacing,r)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),Q.textDecorationLine.length&&(o.ctx.fillStyle=te(Q.textDecorationColor||Q.color),Q.textDecorationLine.forEach(function(A){switch(A){case 1:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+r),t.bounds.width,1);break;case 2:o.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:o.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+n),t.bounds.width,1)}}));break;case aB.STROKE:Q.webkitTextStrokeWidth&&t.text.trim().length&&(o.ctx.strokeStyle=te(Q.webkitTextStrokeColor),o.ctx.lineWidth=Q.webkitTextStrokeWidth,o.ctx.lineJoin=window.chrome?"miter":"round",o.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+r)),o.ctx.strokeStyle="",o.ctx.lineWidth=0,o.ctx.lineJoin="miter"}})}),[2]})})},Ps.prototype.renderReplacedElement=function(A,e,t){var B;t&&0<A.intrinsicWidth&&0<A.intrinsicHeight&&(B=ys(A),e=Us(e),this.path(e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore())},Ps.prototype.renderNodeContent=function(w){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g;return H(this,function(A){switch(A.label){case 0:this.applyEffects(w.getEffects(4)),e=w.container,t=w.curves,B=e.styles,r=0,n=e.textNodes,A.label=1;case 1:return r<n.length?(s=n[r],[4,this.renderTextNode(s,B)]):[3,4];case 2:A.sent(),A.label=3;case 3:return r++,[3,1];case 4:if(!(e instanceof Cr))return[3,8];A.label=5;case 5:return A.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,8];case 7:return A.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Fr&&this.renderReplacedElement(e,t,e.canvas),!(e instanceof dr))return[3,12];A.label=9;case 9:return A.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return Q=A.sent(),this.renderReplacedElement(e,t,Q),[3,12];case 11:return A.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof Jr&&e.tree?[4,new Ps(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:s=A.sent(),e.width&&e.height&&this.ctx.drawImage(s,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),A.label=14;case 14:if(e instanceof Tr&&(i=Math.min(e.bounds.width,e.bounds.height),e.type===br?e.checked&&(this.ctx.save(),this.path([new ss(e.bounds.left+.39363*i,e.bounds.top+.79*i),new ss(e.bounds.left+.16*i,e.bounds.top+.5549*i),new ss(e.bounds.left+.27347*i,e.bounds.top+.44071*i),new ss(e.bounds.left+.39694*i,e.bounds.top+.5649*i),new ss(e.bounds.left+.72983*i,e.bounds.top+.23*i),new ss(e.bounds.left+.84*i,e.bounds.top+.34085*i),new ss(e.bounds.left+.39363*i,e.bounds.top+.79*i)]),this.ctx.fillStyle=te(Sr),this.ctx.fill(),this.ctx.restore()):e.type===Rr&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+i/2,e.bounds.top+i/2,i/4,0,2*Math.PI,!0),this.ctx.fillStyle=te(Sr),this.ctx.fill(),this.ctx.restore())),Js(e)&&e.value.length){switch(c=this.createFontStyle(B),a=c[0],i=c[1],c=this.fontMetrics.getMetrics(a,i).baseline,this.ctx.font=a,this.ctx.fillStyle=te(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_s(e.styles.textAlign),g=ys(e),o=0,e.styles.textAlign){case Rt.CENTER:o+=g.width/2;break;case Rt.RIGHT:o+=g.width}i=g.add(o,0,0,-g.height/2+1),this.ctx.save(),this.path([new ss(g.left,g.top),new ss(g.left+g.width,g.top),new ss(g.left+g.width,g.top+g.height),new ss(g.left,g.top+g.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Br(e.value,i),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!QB(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if((c=e.styles.listStyleImage).type!==pe.URL)return[3,18];Q=void 0,c=c.url,A.label=15;case 15:return A.trys.push([15,17,,18]),[4,this.context.cache.match(c)];case 16:return Q=A.sent(),this.ctx.drawImage(Q,e.bounds.left-(Q.width+10),e.bounds.top),[3,18];case 17:return A.sent(),this.context.logger.error("Error loading list-style-image "+c),[3,18];case 18:return[3,20];case 19:w.listValue&&e.styles.listStyleType!==It.NONE&&(a=this.createFontStyle(B)[0],this.ctx.font=a,this.ctx.fillStyle=te(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",g=new d(e.bounds.left,e.bounds.top+ie(e.styles.paddingTop,e.bounds.width),e.bounds.width,lt(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Br(w.listValue,g),B.letterSpacing,lt(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),A.label=20;case 20:return[2]}})})},Ps.prototype.renderStackContent=function(l){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g,w,C,U;return H(this,function(A){switch(A.label){case 0:return QB(l.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(l.element)];case 1:A.sent(),e=0,t=l.negativeZIndex,A.label=2;case 2:return e<t.length?(U=t[e],[4,this.renderStack(U)]):[3,5];case 3:A.sent(),A.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(l.element)];case 6:A.sent(),B=0,r=l.nonInlineLevel,A.label=7;case 7:return B<r.length?(U=r[B],[4,this.renderNode(U)]):[3,10];case 8:A.sent(),A.label=9;case 9:return B++,[3,7];case 10:n=0,s=l.nonPositionedFloats,A.label=11;case 11:return n<s.length?(U=s[n],[4,this.renderStack(U)]):[3,14];case 12:A.sent(),A.label=13;case 13:return n++,[3,11];case 14:o=0,i=l.nonPositionedInlineLevel,A.label=15;case 15:return o<i.length?(U=i[o],[4,this.renderStack(U)]):[3,18];case 16:A.sent(),A.label=17;case 17:return o++,[3,15];case 18:Q=0,c=l.inlineLevel,A.label=19;case 19:return Q<c.length?(U=c[Q],[4,this.renderNode(U)]):[3,22];case 20:A.sent(),A.label=21;case 21:return Q++,[3,19];case 22:a=0,g=l.zeroOrAutoZIndexOrTransformedOrOpacity,A.label=23;case 23:return a<g.length?(U=g[a],[4,this.renderStack(U)]):[3,26];case 24:A.sent(),A.label=25;case 25:return a++,[3,23];case 26:w=0,C=l.positiveZIndex,A.label=27;case 27:return w<C.length?(U=C[w],[4,this.renderStack(U)]):[3,30];case 28:A.sent(),A.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},Ps.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},Ps.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},Ps.prototype.formatPath=function(A){var B=this;A.forEach(function(A,e){var t=as(A)?A.start:A;0===e?B.ctx.moveTo(t.x,t.y):B.ctx.lineTo(t.x,t.y),as(A)&&B.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},Ps.prototype.renderRepeat=function(A,e,t,B){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,B),this.ctx.fill(),this.ctx.translate(-t,-B)},Ps.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var B=(null!==(B=this.canvas.ownerDocument)&&void 0!==B?B:document).createElement("canvas");return B.width=Math.max(1,e),B.height=Math.max(1,t),B.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e,t),B},Ps.prototype.renderBackgroundImage=function(E){return a(this,void 0,void 0,function(){var h,e,d,t,B,r;return H(this,function(A){switch(A.label){case 0:h=E.styles.backgroundImage.length-1,e=function(e){var t,B,r,n,s,o,i,Q,c,a,g,w,C,U,l,F,u;return H(this,function(A){switch(A.label){case 0:if(e.type!==pe.URL)return[3,5];t=void 0,B=e.url,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,d.context.cache.match(B)];case 2:return t=A.sent(),[3,4];case 3:return A.sent(),d.context.logger.error("Error loading background-image "+B),[3,4];case 4:return t&&(r=Ks(E,h,[t.width,t.height,t.width/t.height]),o=r[0],g=r[1],w=r[2],c=r[3],a=r[4],s=d.ctx.createPattern(d.resizeImage(t,c,a),"repeat"),d.renderRepeat(o,s,g,w)),[3,6];case 5:e.type===pe.LINEAR_GRADIENT?(u=Ks(E,h,[null,null,null]),o=u[0],g=u[1],w=u[2],c=u[3],a=u[4],l=He(e.angle,c,a),U=l[0],r=l[1],i=l[2],F=l[3],Q=l[4],(u=document.createElement("canvas")).width=c,u.height=a,l=u.getContext("2d"),n=l.createLinearGradient(r,F,i,Q),Ee(e.stops,U).forEach(function(A){return n.addColorStop(A.stop,te(A.color))}),l.fillStyle=n,l.fillRect(0,0,c,a),0<c&&0<a&&(s=d.ctx.createPattern(u,"repeat"),d.renderRepeat(o,s,g,w))):e.type===pe.RADIAL_GRADIENT&&(F=Ks(E,h,[null,null,null]),o=F[0],i=F[1],Q=F[2],c=F[3],a=F[4],U=0===e.position.length?[se]:e.position,g=ie(U[0],c),w=ie(U[U.length-1],a),l=function(A,e,t,B,r){var n,s,o,i,Q=0,c=0;switch(A.size){case Te.CLOSEST_SIDE:A.shape===Se.CIRCLE?Q=c=Math.min(Math.abs(e),Math.abs(e-B),Math.abs(t),Math.abs(t-r)):A.shape===Se.ELLIPSE&&(Q=Math.min(Math.abs(e),Math.abs(e-B)),c=Math.min(Math.abs(t),Math.abs(t-r)));break;case Te.CLOSEST_CORNER:A.shape===Se.CIRCLE?Q=c=Math.min(fe(e,t),fe(e,t-r),fe(e-B,t),fe(e-B,t-r)):A.shape===Se.ELLIPSE&&(n=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-B)),o=(s=Ie(B,r,e,t,!0))[0],i=s[1],c=n*(Q=fe(o-e,(i-t)/n)));break;case Te.FARTHEST_SIDE:A.shape===Se.CIRCLE?Q=c=Math.max(Math.abs(e),Math.abs(e-B),Math.abs(t),Math.abs(t-r)):A.shape===Se.ELLIPSE&&(Q=Math.max(Math.abs(e),Math.abs(e-B)),c=Math.max(Math.abs(t),Math.abs(t-r)));break;case Te.FARTHEST_CORNER:A.shape===Se.CIRCLE?Q=c=Math.max(fe(e,t),fe(e,t-r),fe(e-B,t),fe(e-B,t-r)):A.shape===Se.ELLIPSE&&(n=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-B)),o=(s=Ie(B,r,e,t,!1))[0],i=s[1],c=n*(Q=fe(o-e,(i-t)/n)))}return Array.isArray(A.size)&&(Q=ie(A.size[0],B),c=2===A.size.length?ie(A.size[1],r):Q),[Q,c]}(e,g,w,c,a),u=l[0],F=l[1],0<u&&0<F&&(C=d.ctx.createRadialGradient(i+g,Q+w,0,i+g,Q+w,u),Ee(e.stops,2*u).forEach(function(A){return C.addColorStop(A.stop,te(A.color))}),d.path(o),d.ctx.fillStyle=C,u!==F?(U=E.bounds.left+.5*E.bounds.width,l=E.bounds.top+.5*E.bounds.height,u=1/(F=F/u),d.ctx.save(),d.ctx.translate(U,l),d.ctx.transform(1,0,0,F,0,0),d.ctx.translate(-U,-l),d.ctx.fillRect(i,u*(Q-l)+l,c,a*u),d.ctx.restore()):d.ctx.fill())),A.label=6;case 6:return h--,[2]}})},d=this,t=0,B=E.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return t<B.length?(r=B[t],[5,e(r)]):[3,4];case 2:A.sent(),A.label=3;case 3:return t++,[3,1];case 4:return[2]}})})},Ps.prototype.renderSolidBorder=function(e,t,B){return a(this,void 0,void 0,function(){return H(this,function(A){return this.path(Is(B,t)),this.ctx.fillStyle=te(e),this.ctx.fill(),[2]})})},Ps.prototype.renderDoubleBorder=function(t,B,r,n){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return B<3?[4,this.renderSolidBorder(t,r,n)]:[3,2];case 1:return A.sent(),[2];case 2:return e=function(A,e){switch(e){case 0:return Os(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return Os(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return Os(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return Os(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}}(n,r),this.path(e),this.ctx.fillStyle=te(t),this.ctx.fill(),e=function(A,e){switch(e){case 0:return Os(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return Os(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return Os(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return Os(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}}(n,r),this.path(e),this.ctx.fill(),[2]}})})},Ps.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q=this;return H(this,function(A){switch(A.label){case 0:return(this.applyEffects(c.getEffects(2)),e=c.container.styles,t=!ee(e.backgroundColor)||e.backgroundImage.length,B=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],r=Xs(Ts(e.backgroundClip,0),c.curves),t||e.boxShadow.length)?(this.ctx.save(),this.path(r),this.ctx.clip(),ee(e.backgroundColor)||(this.ctx.fillStyle=te(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:A.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(A){Q.ctx.save();var t,B,r,n,e=Cs(c.curves),s=A.inset?0:1e4,o=(t=-s+(A.inset?1:-1)*A.spread.number,B=(A.inset?1:-1)*A.spread.number,r=A.spread.number*(A.inset?-2:2),n=A.spread.number*(A.inset?-2:2),e.map(function(A,e){switch(e){case 0:return A.add(t,B);case 1:return A.add(t+r,B);case 2:return A.add(t+r,B+n);case 3:return A.add(t,B+n)}return A}));A.inset?(Q.path(e),Q.ctx.clip(),Q.mask(o)):(Q.mask(e),Q.ctx.clip(),Q.path(o)),Q.ctx.shadowOffsetX=A.offsetX.number+s,Q.ctx.shadowOffsetY=A.offsetY.number,Q.ctx.shadowColor=te(A.color),Q.ctx.shadowBlur=A.blur.number,Q.ctx.fillStyle=A.inset?te(A.color):"rgba(0,0,0,1)",Q.ctx.fill(),Q.ctx.restore()}),A.label=2;case 2:s=n=0,o=B,A.label=3;case 3:return s<o.length?(i=o[s]).style!==_e.NONE&&!ee(i.color)&&0<i.width?i.style!==_e.DASHED?[3,5]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,_e.DASHED)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return i.style!==_e.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(i.color,i.width,n,c.curves,_e.DOTTED)];case 6:return A.sent(),[3,11];case 7:return i.style!==_e.DOUBLE?[3,9]:[4,this.renderDoubleBorder(i.color,i.width,n,c.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(i.color,n,c.curves)];case 10:A.sent(),A.label=11;case 11:n++,A.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},Ps.prototype.renderDashedDottedBorder=function(g,w,C,U,l){return a(this,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a;return H(this,function(A){return this.ctx.save(),Q=function(A,e){switch(e){case 0:return Rs(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Rs(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Rs(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Rs(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(U,C),e=Is(U,C),l===_e.DASHED&&(this.path(e),this.ctx.clip()),s=as(e[0])?(t=e[0].start.x,e[0].start.y):(t=e[0].x,e[0].y),o=as(e[1])?(B=e[1].end.x,e[1].end.y):(B=e[1].x,e[1].y),r=0===C||2===C?Math.abs(t-B):Math.abs(s-o),this.ctx.beginPath(),l===_e.DOTTED?this.formatPath(Q):this.formatPath(e.slice(0,2)),n=w<3?3*w:2*w,s=w<3?2*w:w,l===_e.DOTTED&&(s=n=w),o=!0,r<=2*n?o=!1:r<=2*n+s?(n*=i=r/(2*n+s),s*=i):(Q=Math.floor((r+s)/(n+s)),i=(r-Q*n)/(Q-1),s=(Q=(r-(Q+1)*n)/Q)<=0||Math.abs(s-i)<Math.abs(s-Q)?i:Q),o&&(l===_e.DOTTED?this.ctx.setLineDash([0,n+s]):this.ctx.setLineDash([n,s])),l===_e.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=w):this.ctx.lineWidth=2*w+1.1,this.ctx.strokeStyle=te(g),this.ctx.stroke(),this.ctx.setLineDash([]),l===_e.DASHED&&(as(e[0])&&(c=e[3],a=e[0],this.ctx.beginPath(),this.formatPath([new ss(c.end.x,c.end.y),new ss(a.start.x,a.start.y)]),this.ctx.stroke()),as(e[1])&&(c=e[1],a=e[2],this.ctx.beginPath(),this.formatPath([new ss(c.end.x,c.end.y),new ss(a.start.x,a.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ps.prototype.render=function(r){return a(this,void 0,void 0,function(){return H(this,function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=new Hs(e=r,null),B=new Es(t),Ds(t,B,B,e=[]),bs(t.container,e),[4,this.renderStack(B)];case 1:return A.sent(),this.applyEffects([]),[2,this.canvas]}var e,t,B})})},Ps);function Ps(A,e){A=xs.call(this,A,e)||this;return A._activeEffects=[],A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),e.canvas||(A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px"),A.fontMetrics=new Ns(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.ctx.textBaseline="bottom",A._activeEffects=[],A.context.logger.debug("Canvas renderer initialized ("+e.width+"x"+e.height+") with scale "+e.scale),A}var ks,Js=function(A){return A instanceof Vr||(A instanceof Nr||A instanceof Tr&&A.type!==Rr&&A.type!==br)},Xs=function(A,e){switch(A){case le.BORDER_BOX:return Cs(e);case le.CONTENT_BOX:return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox];default:le.PADDING_BOX;return Us(e)}},_s=function(A){switch(A){case Rt.CENTER:return"center";case Rt.RIGHT:return"right";default:Rt.LEFT;return"left"}},Ys=(A(Ws,ks=we),Ws.prototype.render=function(t){return a(this,void 0,void 0,function(){var e;return H(this,function(A){switch(A.label){case 0:return e=Ar(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Zs(e)];case 1:return e=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=te(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Ws);function Ws(A,e){A=ks.call(this,A,e)||this;return A.canvas=e.canvas||document.createElement("canvas"),A.ctx=A.canvas.getContext("2d"),A.options=e,A.canvas.width=Math.floor(e.width*e.scale),A.canvas.height=Math.floor(e.height*e.scale),A.canvas.style.width=e.width+"px",A.canvas.style.height=e.height+"px",A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-e.x,-e.y),A.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale),A}var Zs=function(B){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(B))})},qs=(js.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.prototype.getTime=function(){return Date.now()-this.start},js.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,t([this.id,this.getTime()+"ms"],A))},js.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,t([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},js.instances={},js);function js(A){var e=A.id,A=A.enabled;this.id=e,this.enabled=A,this.start=Date.now()}var zs=($s.instanceCount=1,$s);function $s(A,e){this.windowBounds=e,this.instanceName="#"+$s.instanceCount++,this.logger=new qs({id:this.instanceName,enabled:A.logging}),this.cache=null!==(e=A.cache)&&void 0!==e?e:new Wn(this,A)}"undefined"!=typeof window&&_n.setContext(window);var Ao=function(F,u){return a(void 0,void 0,void 0,function(){var e,t,B,r,n,s,o,i,Q,c,a,g,w,C,U,l;return H(this,function(A){switch(A.label){case 0:if(!F||"object"!=typeof F)return[2,Promise.reject("Invalid element provided as first argument")];if(!(e=F.ownerDocument))throw new Error("Element is not attached to a Document");if(!(t=e.defaultView))throw new Error("Document is not attached to a Window");return w={allowTaint:null!==(C=u.allowTaint)&&void 0!==C&&C,imageTimeout:null!==(c=u.imageTimeout)&&void 0!==c?c:15e3,proxy:u.proxy,useCORS:null!==(a=u.useCORS)&&void 0!==a&&a},C=h({logging:null===(g=u.logging)||void 0===g||g,cache:u.cache},w),c={windowWidth:null!==(c=u.windowWidth)&&void 0!==c?c:t.innerWidth,windowHeight:null!==(a=u.windowHeight)&&void 0!==a?a:t.innerHeight,scrollX:null!==(g=u.scrollX)&&void 0!==g?g:t.pageXOffset,scrollY:null!==(w=u.scrollY)&&void 0!==w?w:t.pageYOffset},a=new d(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),g=new zs(C,a),c=null!==(w=u.foreignObjectRendering)&&void 0!==w&&w,w={allowTaint:null!==(C=u.allowTaint)&&void 0!==C&&C,onclone:u.onclone,ignoreElements:u.ignoreElements,inlineImages:c,copyStyles:c},g.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),C=new Dn(g,F,w),(w=C.clonedReferenceElement)?[4,C.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return(B=A.sent(),U=on(w)||"HTML"===w.tagName?function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");A=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),t=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new d(0,0,A,t)}(w.ownerDocument):E(g,w),r=U.width,n=U.height,s=U.left,o=U.top,i=eo(g,w,u.backgroundColor),U={canvas:u.canvas,backgroundColor:i,scale:null!==(U=null!==(U=u.scale)&&void 0!==U?U:t.devicePixelRatio)&&void 0!==U?U:1,x:(null!==(U=u.x)&&void 0!==U?U:0)+s,y:(null!==(U=u.y)&&void 0!==U?U:0)+o,width:null!==(U=u.width)&&void 0!==U?U:Math.ceil(r),height:null!==(U=u.height)&&void 0!==U?U:Math.ceil(n)},c)?(g.logger.debug("Document cloned, using foreign object rendering"),[4,new Ys(g,U).render(w)]):[3,3];case 2:return Q=A.sent(),[3,5];case 3:return g.logger.debug("Document cloned, element located at "+s+","+o+" with size "+r+"x"+n+" using computed rendering"),g.logger.debug("Starting DOM parsing"),l=qr(g,w),i===l.styles.backgroundColor&&(l.styles.backgroundColor=he.TRANSPARENT),g.logger.debug("Starting renderer for element at "+U.x+","+U.y+" with size "+U.width+"x"+U.height),[4,new Vs(g,U).render(l)];case 4:Q=A.sent(),A.label=5;case 5:return null!==(l=u.removeContainer)&&void 0!==l&&!l||Dn.destroy(B)||g.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore"),g.logger.debug("Finished rendering"),[2,Q]}})})},eo=function(A,e,t){var B=e.ownerDocument,r=B.documentElement?Ue(A,getComputedStyle(B.documentElement).backgroundColor):he.TRANSPARENT,n=B.body?Ue(A,getComputedStyle(B.body).backgroundColor):he.TRANSPARENT,t="string"==typeof t?Ue(A,t):null===t?he.TRANSPARENT:4294967295;return e===B.documentElement?ee(r)?ee(n)?t:n:r:t};return function(A,e){return Ao(A,e=void 0===e?{}:e)}});
/** @license Promise polyfill | Copyright (c) 2014 Taylor Hakes [https://github.com/taylorhakes/promise-polyfill] | MIT License [https://github.com/taylorhakes/promise-polyfill/blob/master/LICENSE] */
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=function(t){return"object"==typeof t?null!==t:"function"==typeof t},u=n.document,c=a(u)&&a(u.createElement),f=function(t){return c?u.createElement(t):{}},s=!i&&!o((function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a})),l=function(t){if(!a(t))throw TypeError(String(t)+" is not an object");return t},p=function(t,e){if(!a(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!a(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!a(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!a(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},y=Object.defineProperty,h={f:i?y:function(t,e,r){if(l(t),e=p(e,!0),l(r),s)try{return y(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=i?function(t,e,r){return h.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},g=function(t,e){try{v(n,t,e)}catch(r){n[t]=e}return e},b=n["__core-js_shared__"]||g("__core-js_shared__",{}),A=e((function(t){(t.exports=function(t,e){return b[t]||(b[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"Â© 2020 Denis Pushkarev (zloirock.ru)"})})),m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},T=0,S=Math.random(),O=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+S).toString(36)},E=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),j=E&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,M=A("wks"),L=n.Symbol,x=j?L:L&&L.withoutSetter||O,R=function(t){return w(M,t)||(E&&w(L,t)?M[t]=L[t]:M[t]=x("Symbol."+t)),M[t]},I={};I[R("toStringTag")]="z";var _="[object z]"===String(I),P=Function.toString;"function"!=typeof b.inspectSource&&(b.inspectSource=function(t){return P.call(t)});var B,C,F,U=b.inspectSource,D=n.WeakMap,k="function"==typeof D&&/native code/.test(U(D)),N=A("keys"),V=function(t){return N[t]||(N[t]=O(t))},W={},Y=n.WeakMap;if(k){var G=new Y,q=G.get,H=G.has,z=G.set;B=function(t,e){return z.call(G,t,e),e},C=function(t){return q.call(G,t)||{}},F=function(t){return H.call(G,t)}}else{var X=V("state");W[X]=!0,B=function(t,e){return v(t,X,e),e},C=function(t){return w(t,X)?t[X]:{}},F=function(t){return w(t,X)}}var K={set:B,get:C,has:F,enforce:function(t){return F(t)?C(t):B(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=C(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},J=e((function(t){var e=K.get,r=K.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||v(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=i:v(t,e,i)):c?t[e]=i:g(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||U(this)}))})),Q={}.toString,Z=function(t){return Q.call(t).slice(8,-1)},$=R("toStringTag"),tt="Arguments"==Z(function(){return arguments}()),et=_?Z:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),$))?r:tt?Z(e):"Object"==(n=Z(e))&&"function"==typeof e.callee?"Arguments":n},rt=_?{}.toString:function(){return"[object "+et(this)+"]"};_||J(Object.prototype,"toString",rt,{unsafe:!0});var nt,ot,it,at=Math.ceil,ut=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ft=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},st=function(t){return function(e,r){var n,o,i=String(ft(e)),a=ct(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},lt={codeAt:st(!1),charAt:st(!0)},pt={}.propertyIsEnumerable,yt=Object.getOwnPropertyDescriptor,ht={f:yt&&!pt.call({1:2},1)?function(t){var e=yt(this,t);return!!e&&e.enumerable}:pt},dt="".split,vt=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Z(t)?dt.call(t,""):Object(t)}:Object,gt=function(t){return vt(ft(t))},bt=Object.getOwnPropertyDescriptor,At={f:i?bt:function(t,e){if(t=gt(t),e=p(e,!0),s)try{return bt(t,e)}catch(t){}if(w(t,e))return d(!ht.f.call(t,e),t[e])}},mt=n,wt=function(t){return"function"==typeof t?t:void 0},Tt=function(t,e){return arguments.length<2?wt(mt[t])||wt(n[t]):mt[t]&&mt[t][e]||n[t]&&n[t][e]},St=Math.min,Ot=function(t){return t>0?St(ct(t),9007199254740991):0},Et=Math.max,jt=Math.min,Mt=function(t,e){var r=ct(t);return r<0?Et(r+e,0):jt(r,e)},Lt=function(t){return function(e,r,n){var o,i=gt(e),a=Ot(i.length),u=Mt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},xt={includes:Lt(!0),indexOf:Lt(!1)},Rt=xt.indexOf,It=function(t,e){var r,n=gt(t),o=0,i=[];for(r in n)!w(W,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~Rt(i,r)||i.push(r));return i},_t=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pt=_t.concat("length","prototype"),Bt={f:Object.getOwnPropertyNames||function(t){return It(t,Pt)}},Ct={f:Object.getOwnPropertySymbols},Ft=Tt("Reflect","ownKeys")||function(t){var e=Bt.f(l(t)),r=Ct.f;return r?e.concat(r(t)):e},Ut=function(t,e){for(var r=Ft(e),n=h.f,o=At.f,i=0;i<r.length;i++){var a=r[i];w(t,a)||n(t,a,o(e,a))}},Dt=/#|\.prototype\./,kt=function(t,e){var r=Vt[Nt(t)];return r==Yt||r!=Wt&&("function"==typeof e?o(e):!!e)},Nt=kt.normalize=function(t){return String(t).replace(Dt,".").toLowerCase()},Vt=kt.data={},Wt=kt.NATIVE="N",Yt=kt.POLYFILL="P",Gt=kt,qt=At.f,Ht=function(t,e){var r,o,i,a,u,c=t.target,f=t.global,s=t.stat;if(r=f?n:s?n[c]||g(c,{}):(n[c]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(u=qt(r,o))&&u.value:r[o],!Gt(f?o:c+(s?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;Ut(a,i)}(t.sham||i&&i.sham)&&v(a,"sham",!0),J(r,o,a,t)}},zt=function(t){return Object(ft(t))},Xt=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Kt=V("IE_PROTO"),Jt=Object.prototype,Qt=Xt?Object.getPrototypeOf:function(t){return t=zt(t),w(t,Kt)?t[Kt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Jt:null},Zt=R("iterator"),$t=!1;[].keys&&("next"in(it=[].keys())?(ot=Qt(Qt(it)))!==Object.prototype&&(nt=ot):$t=!0),null==nt&&(nt={}),w(nt,Zt)||v(nt,Zt,(function(){return this}));var te,ee={IteratorPrototype:nt,BUGGY_SAFARI_ITERATORS:$t},re=Object.keys||function(t){return It(t,_t)},ne=i?Object.defineProperties:function(t,e){l(t);for(var r,n=re(e),o=n.length,i=0;o>i;)h.f(t,r=n[i++],e[r]);return t},oe=Tt("document","documentElement"),ie=V("IE_PROTO"),ae=function(){},ue=function(t){return"<script>"+t+"<\/script>"},ce=function(){try{te=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ce=te?function(t){t.write(ue("")),t.close();var e=t.parentWindow.Object;return t=null,e}(te):((e=f("iframe")).style.display="none",oe.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ue("document.F=Object")),t.close(),t.F);for(var r=_t.length;r--;)delete ce.prototype[_t[r]];return ce()};W[ie]=!0;var fe=Object.create||function(t,e){var r;return null!==t?(ae.prototype=l(t),r=new ae,ae.prototype=null,r[ie]=t):r=ce(),void 0===e?r:ne(r,e)},se=h.f,le=R("toStringTag"),pe=function(t,e,r){t&&!w(t=r?t:t.prototype,le)&&se(t,le,{configurable:!0,value:e})},ye={},he=ee.IteratorPrototype,de=function(){return this},ve=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return l(r),function(t){if(!a(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),ge=ee.IteratorPrototype,be=ee.BUGGY_SAFARI_ITERATORS,Ae=R("iterator"),me=function(){return this},we=function(t,e,r,n,o,i,a){!function(t,e,r){var n=e+" Iterator";t.prototype=fe(he,{next:d(1,r)}),pe(t,n,!1),ye[n]=de}(r,e,n);var u,c,f,s=function(t){if(t===o&&g)return g;if(!be&&t in y)return y[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",p=!1,y=t.prototype,h=y[Ae]||y["@@iterator"]||o&&y[o],g=!be&&h||s(o),b="Array"==e&&y.entries||h;if(b&&(u=Qt(b.call(new t)),ge!==Object.prototype&&u.next&&(Qt(u)!==ge&&(ve?ve(u,ge):"function"!=typeof u[Ae]&&v(u,Ae,me)),pe(u,l,!0))),"values"==o&&h&&"values"!==h.name&&(p=!0,g=function(){return h.call(this)}),y[Ae]!==g&&v(y,Ae,g),ye[e]=g,o)if(c={values:s("values"),keys:i?g:s("keys"),entries:s("entries")},a)for(f in c)(be||p||!(f in y))&&J(y,f,c[f]);else Ht({target:e,proto:!0,forced:be||p},c);return c},Te=lt.charAt,Se=K.set,Oe=K.getterFor("String Iterator");we(String,"String",(function(t){Se(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Oe(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Te(r,n),e.index+=t.length,{value:t,done:!1})}));var Ee={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},je=R("unscopables"),Me=Array.prototype;null==Me[je]&&h.f(Me,je,{configurable:!0,value:fe(null)});var Le=function(t){Me[je][t]=!0},xe=K.set,Re=K.getterFor("Array Iterator"),Ie=we(Array,"Array",(function(t,e){xe(this,{type:"Array Iterator",target:gt(t),index:0,kind:e})}),(function(){var t=Re(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");ye.Arguments=ye.Array,Le("keys"),Le("values"),Le("entries");var _e=R("iterator"),Pe=R("toStringTag"),Be=Ie.values;for(var Ce in Ee){var Fe=n[Ce],Ue=Fe&&Fe.prototype;if(Ue){if(Ue[_e]!==Be)try{v(Ue,_e,Be)}catch(t){Ue[_e]=Be}if(Ue[Pe]||v(Ue,Pe,Ce),Ee[Ce])for(var De in Ie)if(Ue[De]!==Ie[De])try{v(Ue,De,Ie[De])}catch(t){Ue[De]=Ie[De]}}}var ke=n.Promise,Ne=function(t,e,r){for(var n in e)J(t,n,e[n],r);return t},Ve=R("species"),We=function(t){var e=Tt(t),r=h.f;i&&e&&!e[Ve]&&r(e,Ve,{configurable:!0,get:function(){return this}})},Ye=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ge=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},qe=R("iterator"),He=Array.prototype,ze=function(t){return void 0!==t&&(ye.Array===t||He[qe]===t)},Xe=function(t,e,r){if(Ye(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},Ke=R("iterator"),Je=function(t){if(null!=t)return t[Ke]||t["@@iterator"]||ye[et(t)]},Qe=function(t,e,r,n){try{return n?e(l(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&l(o.call(t)),e}},Ze=e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,r,n,o,i){var a,u,c,f,s,p,y,h=Xe(r,n,o?2:1);if(i)a=t;else{if("function"!=typeof(u=Je(t)))throw TypeError("Target is not iterable");if(ze(u)){for(c=0,f=Ot(t.length);f>c;c++)if((s=o?h(l(y=t[c])[0],y[1]):h(t[c]))&&s instanceof e)return s;return new e(!1)}a=u.call(t)}for(p=a.next;!(y=p.call(a)).done;)if("object"==typeof(s=Qe(a,h,y.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}})),$e=R("iterator"),tr=!1;try{var er=0,rr={next:function(){return{done:!!er++}},return:function(){tr=!0}};rr[$e]=function(){return this},Array.from(rr,(function(){throw 2}))}catch(t){}var nr,or,ir,ar=function(t,e){if(!e&&!tr)return!1;var r=!1;try{var n={};n[$e]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},ur=R("species"),cr=function(t,e){var r,n=l(t).constructor;return void 0===n||null==(r=l(n)[ur])?e:Ye(r)},fr=Tt("navigator","userAgent")||"",sr=/(iphone|ipod|ipad).*applewebkit/i.test(fr),lr=n.location,pr=n.setImmediate,yr=n.clearImmediate,hr=n.process,dr=n.MessageChannel,vr=n.Dispatch,gr=0,br={},Ar=function(t){if(br.hasOwnProperty(t)){var e=br[t];delete br[t],e()}},mr=function(t){return function(){Ar(t)}},wr=function(t){Ar(t.data)},Tr=function(t){n.postMessage(t+"",lr.protocol+"//"+lr.host)};pr&&yr||(pr=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return br[++gr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},nr(gr),gr},yr=function(t){delete br[t]},"process"==Z(hr)?nr=function(t){hr.nextTick(mr(t))}:vr&&vr.now?nr=function(t){vr.now(mr(t))}:dr&&!sr?(ir=(or=new dr).port2,or.port1.onmessage=wr,nr=Xe(ir.postMessage,ir,1)):!n.addEventListener||"function"!=typeof postMessage||n.importScripts||o(Tr)||"file:"===lr.protocol?nr="onreadystatechange"in f("script")?function(t){oe.appendChild(f("script")).onreadystatechange=function(){oe.removeChild(this),Ar(t)}}:function(t){setTimeout(mr(t),0)}:(nr=Tr,n.addEventListener("message",wr,!1)));var Sr,Or,Er,jr,Mr,Lr,xr,Rr,Ir={set:pr,clear:yr},_r=At.f,Pr=Ir.set,Br=n.MutationObserver||n.WebKitMutationObserver,Cr=n.process,Fr=n.Promise,Ur="process"==Z(Cr),Dr=_r(n,"queueMicrotask"),kr=Dr&&Dr.value;kr||(Sr=function(){var t,e;for(Ur&&(t=Cr.domain)&&t.exit();Or;){e=Or.fn,Or=Or.next;try{e()}catch(t){throw Or?jr():Er=void 0,t}}Er=void 0,t&&t.enter()},Ur?jr=function(){Cr.nextTick(Sr)}:Br&&!sr?(Mr=!0,Lr=document.createTextNode(""),new Br(Sr).observe(Lr,{characterData:!0}),jr=function(){Lr.data=Mr=!Mr}):Fr&&Fr.resolve?(xr=Fr.resolve(void 0),Rr=xr.then,jr=function(){Rr.call(xr,Sr)}):jr=function(){Pr.call(n,Sr)});var Nr,Vr,Wr=kr||function(t){var e={fn:t,next:void 0};Er&&(Er.next=e),Or||(Or=e,jr()),Er=e},Yr=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Ye(e),this.reject=Ye(r)},Gr={f:function(t){return new Yr(t)}},qr=function(t,e){if(l(t),a(e)&&e.constructor===t)return e;var r=Gr.f(t);return(0,r.resolve)(e),r.promise},Hr=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},zr=n.process,Xr=zr&&zr.versions,Kr=Xr&&Xr.v8;Kr?Vr=(Nr=Kr.split("."))[0]+Nr[1]:fr&&(!(Nr=fr.match(/Edge\/(\d+)/))||Nr[1]>=74)&&(Nr=fr.match(/Chrome\/(\d+)/))&&(Vr=Nr[1]);var Jr,Qr,Zr,$r,tn=Vr&&+Vr,en=Ir.set,rn=R("species"),nn="Promise",on=K.get,an=K.set,un=K.getterFor(nn),cn=ke,fn=n.TypeError,sn=n.document,ln=n.process,pn=Tt("fetch"),yn=Gr.f,hn=yn,dn="process"==Z(ln),vn=!!(sn&&sn.createEvent&&n.dispatchEvent),gn=Gt(nn,(function(){if(!(U(cn)!==String(cn))){if(66===tn)return!0;if(!dn&&"function"!=typeof PromiseRejectionEvent)return!0}if(tn>=51&&/native code/.test(cn))return!1;var t=cn.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[rn]=e,!(t.then((function(){}))instanceof e)})),bn=gn||!ar((function(t){cn.all(t).catch((function(){}))})),An=function(t){var e;return!(!a(t)||"function"!=typeof(e=t.then))&&e},mn=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;Wr((function(){for(var o=e.value,i=1==e.state,a=0;n.length>a;){var u,c,f,s=n[a++],l=i?s.ok:s.fail,p=s.resolve,y=s.reject,h=s.domain;try{l?(i||(2===e.rejection&&On(t,e),e.rejection=1),!0===l?u=o:(h&&h.enter(),u=l(o),h&&(h.exit(),f=!0)),u===s.promise?y(fn("Promise-chain cycle")):(c=An(u))?c.call(u,p,y):p(u)):y(o)}catch(t){h&&!f&&h.exit(),y(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Tn(t,e)}))}},wn=function(t,e,r){var o,i;vn?((o=sn.createEvent("Event")).promise=e,o.reason=r,o.initEvent(t,!1,!0),n.dispatchEvent(o)):o={promise:e,reason:r},(i=n["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Tn=function(t,e){en.call(n,(function(){var r,n=e.value;if(Sn(e)&&(r=Hr((function(){dn?ln.emit("unhandledRejection",n,t):wn("unhandledrejection",t,n)})),e.rejection=dn||Sn(e)?2:1,r.error))throw r.value}))},Sn=function(t){return 1!==t.rejection&&!t.parent},On=function(t,e){en.call(n,(function(){dn?ln.emit("rejectionHandled",t):wn("rejectionhandled",t,e.value)}))},En=function(t,e,r,n){return function(o){t(e,r,o,n)}},jn=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,mn(t,e,!0))},Mn=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw fn("Promise can't be resolved itself");var o=An(r);o?Wr((function(){var n={done:!1};try{o.call(r,En(Mn,t,n,e),En(jn,t,n,e))}catch(r){jn(t,n,r,e)}})):(e.value=r,e.state=1,mn(t,e,!1))}catch(r){jn(t,{done:!1},r,e)}}};gn&&(cn=function(t){Ge(this,cn,nn),Ye(t),Jr.call(this);var e=on(this);try{t(En(Mn,this,e),En(jn,this,e))}catch(t){jn(this,e,t)}},(Jr=function(t){an(this,{type:nn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ne(cn.prototype,{then:function(t,e){var r=un(this),n=yn(cr(this,cn));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=dn?ln.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&mn(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Qr=function(){var t=new Jr,e=on(t);this.promise=t,this.resolve=En(Mn,t,e),this.reject=En(jn,t,e)},Gr.f=yn=function(t){return t===cn||t===Zr?new Qr(t):hn(t)},"function"==typeof ke&&($r=ke.prototype.then,J(ke.prototype,"then",(function(t,e){var r=this;return new cn((function(t,e){$r.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof pn&&Ht({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return qr(cn,pn.apply(n,arguments))}}))),Ht({global:!0,wrap:!0,forced:gn},{Promise:cn}),pe(cn,nn,!1),We(nn),Zr=Tt(nn),Ht({target:nn,stat:!0,forced:gn},{reject:function(t){var e=yn(this);return e.reject.call(void 0,t),e.promise}}),Ht({target:nn,stat:!0,forced:gn},{resolve:function(t){return qr(this,t)}}),Ht({target:nn,stat:!0,forced:bn},{all:function(t){var e=this,r=yn(e),n=r.resolve,o=r.reject,i=Hr((function(){var r=Ye(e.resolve),i=[],a=0,u=1;Ze(t,(function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=yn(e),n=r.reject,o=Hr((function(){var o=Ye(e.resolve);Ze(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Ht({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=Gr.f(e),n=r.resolve,o=r.reject,i=Hr((function(){var r=Ye(e.resolve),o=[],i=0,a=1;Ze(t,(function(t){var u=i++,c=!1;o.push(void 0),a++,r.call(e,t).then((function(t){c||(c=!0,o[u]={status:"fulfilled",value:t},--a||n(o))}),(function(t){c||(c=!0,o[u]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var Ln=!!ke&&o((function(){ke.prototype.finally.call({then:function(){}},(function(){}))}));Ht({target:"Promise",proto:!0,real:!0,forced:Ln},{finally:function(t){var e=cr(this,Tt("Promise")),r="function"==typeof t;return this.then(r?function(r){return qr(e,t()).then((function(){return r}))}:t,r?function(r){return qr(e,t()).then((function(){throw r}))}:t)}}),"function"!=typeof ke||ke.prototype.finally||J(ke.prototype,"finally",Tt("Promise").prototype.finally);mt.Promise;var xn=Array.isArray||function(t){return"Array"==Z(t)},Rn=R("species"),In=function(t,e){var r;return xn(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!xn(r.prototype)?a(r)&&null===(r=r[Rn])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},_n=[].push,Pn=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,c,f,s){for(var l,p,y=zt(u),h=vt(y),d=Xe(c,f,3),v=Ot(h.length),g=0,b=s||In,A=e?b(u,v):r?b(u,0):void 0;v>g;g++)if((a||g in h)&&(p=d(l=h[g],g,y),t))if(e)A[g]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:_n.call(A,l)}else if(o)return!1;return i?-1:n||o?o:A}},Bn={forEach:Pn(0),map:Pn(1),filter:Pn(2),some:Pn(3),every:Pn(4),find:Pn(5),findIndex:Pn(6)},Cn=R("species"),Fn=Object.defineProperty,Un={},Dn=function(t){throw t},kn=function(t,e){if(w(Un,t))return Un[t];e||(e={});var r=[][t],n=!!w(e,"ACCESSORS")&&e.ACCESSORS,a=w(e,0)?e[0]:Dn,u=w(e,1)?e[1]:void 0;return Un[t]=!!r&&!o((function(){if(n&&!i)return!0;var t={length:-1};n?Fn(t,1,{enumerable:!0,get:Dn}):t[1]=1,r.call(t,a,u)}))},Nn=Bn.map,Vn=function(t){return tn>=51||!o((function(){var e=[];return(e.constructor={})[Cn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("map"),Wn=kn("map");Ht({target:"Array",proto:!0,forced:!Vn||!Wn},{map:function(t){return Nn(this,t,arguments.length>1?arguments[1]:void 0)}});var Yn=Function.call,Gn=function(t,e,r){return Xe(Yn,n[t].prototype[e],r)};Gn("Array","map");Ht({target:"Array",stat:!0},{isArray:xn});mt.Array.isArray;var qn=function(t){return function(e,r,n,o){Ye(r);var i=zt(e),a=vt(i),u=Ot(i.length),c=t?u-1:0,f=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=r(o,a[c],c,i));return o}},Hn={left:qn(!1),right:qn(!0)},zn=function(t,e){var r=[][t];return!!r&&o((function(){r.call(null,e||function(){throw 1},1)}))},Xn=Hn.left,Kn=zn("reduce"),Jn=kn("reduce",{1:0});Ht({target:"Array",proto:!0,forced:!Kn||!Jn},{reduce:function(t){return Xn(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});Gn("Array","reduce");var Qn=Bn.forEach,Zn=zn("forEach"),$n=kn("forEach"),to=Zn&&$n?[].forEach:function(t){return Qn(this,t,arguments.length>1?arguments[1]:void 0)};Ht({target:"Array",proto:!0,forced:[].forEach!=to},{forEach:to});Gn("Array","forEach");var eo=Bn.find,ro=!0,no=kn("find");"find"in[]&&Array(1).find((function(){ro=!1})),Ht({target:"Array",proto:!0,forced:ro||!no},{find:function(t){return eo(this,t,arguments.length>1?arguments[1]:void 0)}}),Le("find");Gn("Array","find");Ht({target:"Object",stat:!0,sham:!i},{create:fe});mt.Object;var oo=o((function(){re(1)}));Ht({target:"Object",stat:!0,forced:oo},{keys:function(t){return re(zt(t))}});mt.Object.keys;var io=ht.f,ao=function(t){return function(e){for(var r,n=gt(e),o=re(n),a=o.length,u=0,c=[];a>u;)r=o[u++],i&&!io.call(n,r)||c.push(t?[r,n[r]]:n[r]);return c}},uo={entries:ao(!0),values:ao(!1)}.values;Ht({target:"Object",stat:!0},{values:function(t){return uo(t)}});mt.Object.values;var co=Object.assign,fo=Object.defineProperty,so=!co||o((function(){if(i&&1!==co({b:1},co(fo({},"a",{enumerable:!0,get:function(){fo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=co({},t)[r]||"abcdefghijklmnopqrst"!=re(co({},e)).join("")}))?function(t,e){for(var r=zt(t),n=arguments.length,o=1,a=Ct.f,u=ht.f;n>o;)for(var c,f=vt(arguments[o++]),s=a?re(f).concat(a(f)):re(f),l=s.length,p=0;l>p;)c=s[p++],i&&!u.call(f,c)||(r[c]=f[c]);return r}:co;Ht({target:"Object",stat:!0,forced:Object.assign!==so},{assign:so});mt.Object.assign;var lo="\t\n\v\f\r Â áš€â€€â€?â€‚â€ƒâ€„â€…â€†â€‡â€ˆâ€‰â€Šâ€¯â?Ÿã€€\u2028\u2029\ufeff",po="["+lo+"]",yo=RegExp("^"+po+po+"*"),ho=RegExp(po+po+"*$"),vo=function(t){return function(e){var r=String(ft(e));return 1&t&&(r=r.replace(yo,"")),2&t&&(r=r.replace(ho,"")),r}},go={start:vo(1),end:vo(2),trim:vo(3)},bo=function(t){return o((function(){return!!lo[t]()||"â€‹Â…á Ž"!="â€‹Â…á Ž"[t]()||lo[t].name!==t}))},Ao=go.trim;Ht({target:"String",proto:!0,forced:bo("trim")},{trim:function(){return Ao(this)}});Gn("String","trim");var mo=go.start,wo=bo("trimStart"),To=wo?function(){return mo(this)}:"".trimStart;Ht({target:"String",proto:!0,forced:wo},{trimStart:To,trimLeft:To});Gn("String","trimLeft");var So=go.end,Oo=bo("trimEnd"),Eo=Oo?function(){return So(this)}:"".trimEnd;Ht({target:"String",proto:!0,forced:Oo},{trimEnd:Eo,trimRight:Eo});Gn("String","trimRight");var jo=Math.floor;Ht({target:"Number",stat:!0},{isInteger:function(t){return!a(t)&&isFinite(t)&&jo(t)===t}});mt.Number.isInteger;var Mo,Lo="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,xo=h.f,Ro=n.Int8Array,Io=Ro&&Ro.prototype,_o=n.Uint8ClampedArray,Po=_o&&_o.prototype,Bo=Ro&&Qt(Ro),Co=Io&&Qt(Io),Fo=Object.prototype,Uo=Fo.isPrototypeOf,Do=R("toStringTag"),ko=O("TYPED_ARRAY_TAG"),No=Lo&&!!ve&&"Opera"!==et(n.opera),Vo=!1,Wo={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Yo=function(t){return a(t)&&w(Wo,et(t))};for(Mo in Wo)n[Mo]||(No=!1);if((!No||"function"!=typeof Bo||Bo===Function.prototype)&&(Bo=function(){throw TypeError("Incorrect invocation")},No))for(Mo in Wo)n[Mo]&&ve(n[Mo],Bo);if((!No||!Co||Co===Fo)&&(Co=Bo.prototype,No))for(Mo in Wo)n[Mo]&&ve(n[Mo].prototype,Co);if(No&&Qt(Po)!==Co&&ve(Po,Co),i&&!w(Co,Do))for(Mo in Vo=!0,xo(Co,Do,{get:function(){return a(this)?this[ko]:void 0}}),Wo)n[Mo]&&v(n[Mo],ko,Mo);var Go={NATIVE_ARRAY_BUFFER_VIEWS:No,TYPED_ARRAY_TAG:Vo&&ko,aTypedArray:function(t){if(Yo(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(ve){if(Uo.call(Bo,t))return t}else for(var e in Wo)if(w(Wo,Mo)){var r=n[e];if(r&&(t===r||Uo.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r){if(i){if(r)for(var o in Wo){var a=n[o];a&&w(a.prototype,t)&&(a.prototype[t]=null)}Co[t]&&!r||J(Co,t,r?e:No&&Io[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var o,a;if(i){if(ve){if(r)for(o in Wo)(a=n[o])&&w(a,t)&&delete a[t];if(Bo[t]&&!r)return;try{return J(Bo,t,r?e:No&&Ro[t]||e)}catch(t){}}for(o in Wo)!(a=n[o])||a[t]&&!r||J(a,t,e)}},isView:function(t){var e=et(t);return"DataView"===e||w(Wo,e)},isTypedArray:Yo,TypedArray:Bo,TypedArrayPrototype:Co},qo=Go.NATIVE_ARRAY_BUFFER_VIEWS,Ho=n.ArrayBuffer,zo=n.Int8Array,Xo=!qo||!o((function(){zo(1)}))||!o((function(){new zo(-1)}))||!ar((function(t){new zo,new zo(null),new zo(1.5),new zo(t)}),!0)||o((function(){return 1!==new zo(new Ho(2),1,void 0).length})),Ko=function(t){if(void 0===t)return 0;var e=ct(t),r=Ot(e);if(e!==r)throw RangeError("Wrong length or index");return r},Jo=Math.abs,Qo=Math.pow,Zo=Math.floor,$o=Math.log,ti=Math.LN2,ei=function(t,e,r){var n,o,i,a=new Array(r),u=8*r-e-1,c=(1<<u)-1,f=c>>1,s=23===e?Qo(2,-24)-Qo(2,-77):0,l=t<0||0===t&&1/t<0?1:0,p=0;for((t=Jo(t))!=t||t===1/0?(o=t!=t?1:0,n=c):(n=Zo($o(t)/ti),t*(i=Qo(2,-n))<1&&(n--,i*=2),(t+=n+f>=1?s/i:s*Qo(2,1-f))*i>=2&&(n++,i/=2),n+f>=c?(o=0,n=c):n+f>=1?(o=(t*i-1)*Qo(2,e),n+=f):(o=t*Qo(2,f-1)*Qo(2,e),n=0));e>=8;a[p++]=255&o,o/=256,e-=8);for(n=n<<e|o,u+=e;u>0;a[p++]=255&n,n/=256,u-=8);return a[--p]|=128*l,a},ri=function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,f=t[c--],s=127&f;for(f>>=7;u>0;s=256*s+t[c],c--,u-=8);for(r=s&(1<<-u)-1,s>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===s)s=1-a;else{if(s===i)return r?NaN:f?-1/0:1/0;r+=Qo(2,e),s-=a}return(f?-1:1)*r*Qo(2,s-e)},ni=function(t){for(var e=zt(this),r=Ot(e.length),n=arguments.length,o=Mt(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:Mt(i,r);a>o;)e[o++]=t;return e},oi=Bt.f,ii=h.f,ai=K.get,ui=K.set,ci=n.ArrayBuffer,fi=ci,si=n.DataView,li=si&&si.prototype,pi=Object.prototype,yi=n.RangeError,hi=ei,di=ri,vi=function(t){return[255&t]},gi=function(t){return[255&t,t>>8&255]},bi=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Ai=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},mi=function(t){return hi(t,23,4)},wi=function(t){return hi(t,52,8)},Ti=function(t,e){ii(t.prototype,e,{get:function(){return ai(this)[e]}})},Si=function(t,e,r,n){var o=Ko(r),i=ai(t);if(o+e>i.byteLength)throw yi("Wrong index");var a=ai(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+e);return n?c:c.reverse()},Oi=function(t,e,r,n,o,i){var a=Ko(r),u=ai(t);if(a+e>u.byteLength)throw yi("Wrong index");for(var c=ai(u.buffer).bytes,f=a+u.byteOffset,s=n(+o),l=0;l<e;l++)c[f+l]=s[i?l:e-l-1]};if(Lo){if(!o((function(){ci(1)}))||!o((function(){new ci(-1)}))||o((function(){return new ci,new ci(1.5),new ci(NaN),"ArrayBuffer"!=ci.name}))){for(var Ei,ji=(fi=function(t){return Ge(this,fi),new ci(Ko(t))}).prototype=ci.prototype,Mi=oi(ci),Li=0;Mi.length>Li;)(Ei=Mi[Li++])in fi||v(fi,Ei,ci[Ei]);ji.constructor=fi}ve&&Qt(li)!==pi&&ve(li,pi);var xi=new si(new fi(2)),Ri=li.setInt8;xi.setInt8(0,2147483648),xi.setInt8(1,2147483649),!xi.getInt8(0)&&xi.getInt8(1)||Ne(li,{setInt8:function(t,e){Ri.call(this,t,e<<24>>24)},setUint8:function(t,e){Ri.call(this,t,e<<24>>24)}},{unsafe:!0})}else fi=function(t){Ge(this,fi,"ArrayBuffer");var e=Ko(t);ui(this,{bytes:ni.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},si=function(t,e,r){Ge(this,si,"DataView"),Ge(t,fi,"DataView");var n=ai(t).byteLength,o=ct(e);if(o<0||o>n)throw yi("Wrong offset");if(o+(r=void 0===r?n-o:Ot(r))>n)throw yi("Wrong length");ui(this,{buffer:t,byteLength:r,byteOffset:o}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},i&&(Ti(fi,"byteLength"),Ti(si,"buffer"),Ti(si,"byteLength"),Ti(si,"byteOffset")),Ne(si.prototype,{getInt8:function(t){return Si(this,1,t)[0]<<24>>24},getUint8:function(t){return Si(this,1,t)[0]},getInt16:function(t){var e=Si(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Si(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Ai(Si(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Ai(Si(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return di(Si(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return di(Si(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Oi(this,1,t,vi,e)},setUint8:function(t,e){Oi(this,1,t,vi,e)},setInt16:function(t,e){Oi(this,2,t,gi,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Oi(this,2,t,gi,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Oi(this,4,t,bi,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Oi(this,4,t,bi,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Oi(this,4,t,mi,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Oi(this,8,t,wi,e,arguments.length>2?arguments[2]:void 0)}});pe(fi,"ArrayBuffer"),pe(si,"DataView");var Ii={ArrayBuffer:fi,DataView:si},_i=function(t,e){var r=function(t){var e=ct(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}(t);if(r%e)throw RangeError("Wrong offset");return r},Pi=Go.aTypedArrayConstructor,Bi=function(t){var e,r,n,o,i,a,u=zt(t),c=arguments.length,f=c>1?arguments[1]:void 0,s=void 0!==f,l=Je(u);if(null!=l&&!ze(l))for(a=(i=l.call(u)).next,u=[];!(o=a.call(i)).done;)u.push(o.value);for(s&&c>2&&(f=Xe(f,arguments[2],2)),r=Ot(u.length),n=new(Pi(this))(r),e=0;r>e;e++)n[e]=s?f(u[e],e):u[e];return n};e((function(t){var e=Bt.f,r=Bn.forEach,o=K.get,u=K.set,c=h.f,f=At.f,s=Math.round,l=n.RangeError,y=Ii.ArrayBuffer,g=Ii.DataView,b=Go.NATIVE_ARRAY_BUFFER_VIEWS,A=Go.TYPED_ARRAY_TAG,m=Go.TypedArray,T=Go.TypedArrayPrototype,S=Go.aTypedArrayConstructor,O=Go.isTypedArray,E=function(t,e){for(var r=0,n=e.length,o=new(S(t))(n);n>r;)o[r]=e[r++];return o},j=function(t,e){c(t,e,{get:function(){return o(this)[e]}})},M=function(t){var e;return t instanceof y||"ArrayBuffer"==(e=et(t))||"SharedArrayBuffer"==e},L=function(t,e){return O(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},x=function(t,e){return L(t,e=p(e,!0))?d(2,t[e]):f(t,e)},R=function(t,e,r){return!(L(t,e=p(e,!0))&&a(r)&&w(r,"value"))||w(r,"get")||w(r,"set")||r.configurable||w(r,"writable")&&!r.writable||w(r,"enumerable")&&!r.enumerable?c(t,e,r):(t[e]=r.value,t)};i?(b||(At.f=x,h.f=R,j(T,"buffer"),j(T,"byteOffset"),j(T,"byteLength"),j(T,"length")),Ht({target:"Object",stat:!0,forced:!b},{getOwnPropertyDescriptor:x,defineProperty:R}),t.exports=function(t,i,f){var p=t.match(/\d+$/)[0]/8,h=t+(f?"Clamped":"")+"Array",d="get"+t,w="set"+t,S=n[h],j=S,L=j&&j.prototype,x={},R=function(t,e){c(t,e,{get:function(){return function(t,e){var r=o(t);return r.view[d](e*p+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var n=o(t);f&&(r=(r=s(r))<0?0:r>255?255:255&r),n.view[w](e*p+n.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};b?Xo&&(j=i((function(t,e,r,n){return Ge(t,j,h),function(t,e,r){var n,o;return ve&&"function"==typeof(n=e.constructor)&&n!==r&&a(o=n.prototype)&&o!==r.prototype&&ve(t,o),t}(a(e)?M(e)?void 0!==n?new S(e,_i(r,p),n):void 0!==r?new S(e,_i(r,p)):new S(e):O(e)?E(j,e):Bi.call(j,e):new S(Ko(e)),t,j)})),ve&&ve(j,m),r(e(S),(function(t){t in j||v(j,t,S[t])})),j.prototype=L):(j=i((function(t,e,r,n){Ge(t,j,h);var o,i,c,f=0,s=0;if(a(e)){if(!M(e))return O(e)?E(j,e):Bi.call(j,e);o=e,s=_i(r,p);var d=e.byteLength;if(void 0===n){if(d%p)throw l("Wrong length");if((i=d-s)<0)throw l("Wrong length")}else if((i=Ot(n)*p)+s>d)throw l("Wrong length");c=i/p}else c=Ko(e),o=new y(i=c*p);for(u(t,{buffer:o,byteOffset:s,byteLength:i,length:c,view:new g(o)});f<c;)R(t,f++)})),ve&&ve(j,m),L=j.prototype=fe(T)),L.constructor!==j&&v(L,"constructor",j),A&&v(L,A,h),x[h]=j,Ht({global:!0,forced:j!=S,sham:!b},x),"BYTES_PER_ELEMENT"in j||v(j,"BYTES_PER_ELEMENT",p),"BYTES_PER_ELEMENT"in L||v(L,"BYTES_PER_ELEMENT",p),We(h)}):t.exports=function(){}}))("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}})),(0,Go.exportTypedArrayStaticMethod)("from",Bi,Xo);var Ci=Go.aTypedArrayConstructor;(0,Go.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,r=new(Ci(this))(e);e>t;)r[t]=arguments[t++];return r}),Xo);var Fi=Math.min,Ui=[].copyWithin||function(t,e){var r=zt(this),n=Ot(r.length),o=Mt(t,n),i=Mt(e,n),a=arguments.length>2?arguments[2]:void 0,u=Fi((void 0===a?n:Mt(a,n))-i,n-o),c=1;for(i<o&&o<i+u&&(c=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=c,i+=c;return r},Di=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("copyWithin",(function(t,e){return Ui.call(Di(this),t,e,arguments.length>2?arguments[2]:void 0)}));var ki=Bn.every,Ni=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("every",(function(t){return ki(Ni(this),t,arguments.length>1?arguments[1]:void 0)}));var Vi=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("fill",(function(t){return ni.apply(Vi(this),arguments)}));var Wi=Bn.filter,Yi=Go.aTypedArray,Gi=Go.aTypedArrayConstructor;(0,Go.exportTypedArrayMethod)("filter",(function(t){for(var e=Wi(Yi(this),t,arguments.length>1?arguments[1]:void 0),r=cr(this,this.constructor),n=0,o=e.length,i=new(Gi(r))(o);o>n;)i[n]=e[n++];return i}));var qi=Bn.find,Hi=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("find",(function(t){return qi(Hi(this),t,arguments.length>1?arguments[1]:void 0)}));var zi=Bn.findIndex,Xi=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("findIndex",(function(t){return zi(Xi(this),t,arguments.length>1?arguments[1]:void 0)}));var Ki=Bn.forEach,Ji=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("forEach",(function(t){Ki(Ji(this),t,arguments.length>1?arguments[1]:void 0)}));var Qi=xt.includes,Zi=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("includes",(function(t){return Qi(Zi(this),t,arguments.length>1?arguments[1]:void 0)}));var $i=xt.indexOf,ta=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("indexOf",(function(t){return $i(ta(this),t,arguments.length>1?arguments[1]:void 0)}));var ea=Go.aTypedArray,ra=[].join;(0,Go.exportTypedArrayMethod)("join",(function(t){return ra.apply(ea(this),arguments)}));var na=Math.min,oa=[].lastIndexOf,ia=!!oa&&1/[1].lastIndexOf(1,-0)<0,aa=zn("lastIndexOf"),ua=kn("indexOf",{ACCESSORS:!0,1:0}),ca=ia||!aa||!ua?function(t){if(ia)return oa.apply(this,arguments)||0;var e=gt(this),r=Ot(e.length),n=r-1;for(arguments.length>1&&(n=na(n,ct(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:oa,fa=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("lastIndexOf",(function(t){return ca.apply(fa(this),arguments)}));var sa=Bn.map,la=Go.aTypedArray,pa=Go.aTypedArrayConstructor;(0,Go.exportTypedArrayMethod)("map",(function(t){return sa(la(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(pa(cr(t,t.constructor)))(e)}))}));var ya=Hn.left,ha=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("reduce",(function(t){return ya(ha(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var da=Hn.right,va=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("reduceRight",(function(t){return da(va(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var ga=Go.aTypedArray,ba=Go.exportTypedArrayMethod,Aa=Math.floor;ba("reverse",(function(){for(var t,e=ga(this).length,r=Aa(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}));var ma=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("set",(function(t){ma(this);var e=_i(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=zt(t),o=Ot(n.length),i=0;if(o+e>r)throw RangeError("Wrong length");for(;i<o;)this[e+i]=n[i++]}),o((function(){new Int8Array(1).set({})})));var wa=Go.aTypedArray,Ta=Go.aTypedArrayConstructor,Sa=[].slice;(0,Go.exportTypedArrayMethod)("slice",(function(t,e){for(var r=Sa.call(wa(this),t,e),n=cr(this,this.constructor),o=0,i=r.length,a=new(Ta(n))(i);i>o;)a[o]=r[o++];return a}),o((function(){new Int8Array(1).slice()})));var Oa=Bn.some,Ea=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("some",(function(t){return Oa(Ea(this),t,arguments.length>1?arguments[1]:void 0)}));var ja=Go.aTypedArray,Ma=[].sort;(0,Go.exportTypedArrayMethod)("sort",(function(t){return Ma.call(ja(this),t)}));var La=Go.aTypedArray;(0,Go.exportTypedArrayMethod)("subarray",(function(t,e){var r=La(this),n=r.length,o=Mt(t,n);return new(cr(r,r.constructor))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,Ot((void 0===e?n:Mt(e,n))-o))}));var xa=n.Int8Array,Ra=Go.aTypedArray,Ia=Go.exportTypedArrayMethod,_a=[].toLocaleString,Pa=[].slice,Ba=!!xa&&o((function(){_a.call(new xa(1))}));Ia("toLocaleString",(function(){return _a.apply(Ba?Pa.call(Ra(this)):Ra(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new xa([1,2]).toLocaleString()}))||!o((function(){xa.prototype.toLocaleString.call([1,2])})));var Ca=Go.exportTypedArrayMethod,Fa=n.Uint8Array,Ua=Fa&&Fa.prototype||{},Da=[].toString,ka=[].join;o((function(){Da.call({})}))&&(Da=function(){return ka.call(this)});var Na=Ua.toString!=Da;Ca("toString",Da,Na);var Va=R("iterator"),Wa=n.Uint8Array,Ya=Ie.values,Ga=Ie.keys,qa=Ie.entries,Ha=Go.aTypedArray,za=Go.exportTypedArrayMethod,Xa=Wa&&Wa.prototype[Va],Ka=!!Xa&&("values"==Xa.name||null==Xa.name),Ja=function(){return Ya.call(Ha(this))};za("entries",(function(){return qa.call(Ha(this))})),za("keys",(function(){return Ga.call(Ha(this))})),za("values",Ja,!Ka),za(Va,Ja,!Ka);n.Uint8Array;var Qa=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}(),Za=Qa.BlobBuilder||Qa.WebKitBlobBuilder||Qa.MSBlobBuilder||Qa.MozBlobBuilder;Qa.URL=Qa.URL||Qa.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var $a=Qa.Blob,tu=URL.createObjectURL,eu=URL.revokeObjectURL,ru=Qa.Symbol&&Qa.Symbol.toStringTag,nu=!1,ou=!1,iu=!!Qa.ArrayBuffer,au=Za&&Za.prototype.append&&Za.prototype.getBlob;try{nu=2===new Blob(["Ã¤"]).size,ou=2===new Blob([new Uint8Array([1,2])]).size}catch(t){}function uu(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var r=new Uint8Array(t.byteLength);r.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=r.buffer}return e}return t}))}function cu(t,e){e=e||{};var r=new Za;return uu(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function fu(t,e){return new $a(uu(t),e||{})}if(Qa.Blob&&(cu.prototype=Blob.prototype,fu.prototype=Blob.prototype),ru)try{File.prototype[ru]="File",Blob.prototype[ru]="Blob",FileReader.prototype[ru]="FileReader"}catch(t){}function su(){var t=!!Qa.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,e=Qa.XMLHttpRequest&&Qa.XMLHttpRequest.prototype.send;t&&e&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob?(this.setRequestHeader("Content-Type",t.type),e.call(this,t)):e.call(this,t)});try{new File([],"")}catch(t){try{var r=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();Qa.File=r}catch(t){r=function(t,e,r){var n=new Blob(t,r),o=r&&void 0!==r.lastModified?new Date(r.lastModified):new Date;return n.name=e,n.lastModifiedDate=o,n.lastModified=+o,n.toString=function(){return"[object File]"},ru&&(n[ru]="File"),n};Qa.File=r}}}nu?(su(),Qa.Blob=ou?Qa.Blob:fu):au?(su(),Qa.Blob=cu):function(){function t(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(n):n<2048?e.push(192|n>>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}function e(t){var e,r,n,o,i,a;for(e="",n=t.length,r=0;r<n;)switch((o=t[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(o);break;case 12:case 13:i=t[r++],e+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=t[r++],a=t[r++],e+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return e}function r(t){for(var e=new Array(t.byteLength),r=new Uint8Array(t),n=e.length;n--;)e[n]=r[n];return e}function n(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=[],n=0;n<t.length;n+=3){var o=t[n],i=n+1<t.length,a=i?t[n+1]:0,u=n+2<t.length,c=u?t[n+2]:0,f=o>>2,s=(3&o)<<4|a>>4,l=(15&a)<<2|c>>6,p=63&c;u||(p=64,i||(l=64)),r.push(e[f],e[s],e[l],e[p])}return r.join("")}var o=Object.create||function(t){function e(){}return e.prototype=t,new e};if(iu)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function u(e,n){for(var o=0,i=(e=e||[]).length;o<i;o++){var c=e[o];c instanceof u?e[o]=c._buffer:"string"==typeof c?e[o]=t(c):iu&&(ArrayBuffer.prototype.isPrototypeOf(c)||a(c))?e[o]=r(c):iu&&((f=c)&&DataView.prototype.isPrototypeOf(f))?e[o]=r(c.buffer):e[o]=t(String(c))}var f;this._buffer=[].concat.apply([],e),this.size=this._buffer.length,this.type=n&&n.type||""}function c(t,e,r){r=r||{};var n=u.call(this,t,r)||this;return n.name=e,n.lastModifiedDate=r.lastModified?new Date(r.lastModified):new Date,n.lastModified=+n.lastModifiedDate,n}if(u.prototype.slice=function(t,e,r){return new u([this._buffer.slice(t||0,e||this._buffer.length)],{type:r})},u.prototype.toString=function(){return"[object Blob]"},c.prototype=o(u.prototype),c.prototype.constructor=c,Object.setPrototypeOf)Object.setPrototypeOf(c,u);else try{c.__proto__=u}catch(t){}function f(){if(!(this instanceof f))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var r=this["on"+e.type];"function"==typeof r&&r(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function s(t,e,r){if(!(e instanceof u))throw new TypeError("Failed to execute '"+r+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout((function(){this.readyState=f.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))}))}c.prototype.toString=function(){return"[object File]"},f.EMPTY=0,f.LOADING=1,f.DONE=2,f.prototype.error=null,f.prototype.onabort=null,f.prototype.onerror=null,f.prototype.onload=null,f.prototype.onloadend=null,f.prototype.onloadstart=null,f.prototype.onprogress=null,f.prototype.readAsDataURL=function(t){s(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+n(t._buffer)},f.prototype.readAsText=function(t){s(this,t,"readAsText"),this.result=e(t._buffer)},f.prototype.readAsArrayBuffer=function(t){s(this,t,"readAsText"),this.result=t._buffer.slice()},f.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof u?"data:"+t.type+";base64,"+n(t._buffer):tu.call(URL,t)},URL.revokeObjectURL=function(t){eu&&eu.call(URL,t)};var l=Qa.XMLHttpRequest&&Qa.XMLHttpRequest.prototype.send;l&&(XMLHttpRequest.prototype.send=function(t){t instanceof u?(this.setRequestHeader("Content-Type",t.type),l.call(this,e(t._buffer))):l.call(this,t)}),Qa.FileReader=f,Qa.File=c,Qa.Blob=u}();var lu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===Qa.btoa&&(Qa.btoa=function(t){var e,r,n,o,i,a=0,u=0,c="",f=[];if(!t)return t;do{e=(i=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,f[u++]=lu.charAt(e)+lu.charAt(r)+lu.charAt(n)+lu.charAt(o)}while(a<t.length);c=f.join("");var s=t.length%3;return(s?c.slice(0,s-3):c)+"===".slice(s||3)}),void 0===Qa.atob&&(Qa.atob=function(t){var e,r,n,o,i,a,u=0,c=0,f=[];if(!t)return t;t+="";do{e=(a=lu.indexOf(t.charAt(u++))<<18|lu.indexOf(t.charAt(u++))<<12|(o=lu.indexOf(t.charAt(u++)))<<6|(i=lu.indexOf(t.charAt(u++))))>>16&255,r=a>>8&255,n=255&a,f[c++]=64==o?String.fromCharCode(e):64==i?String.fromCharCode(e,r):String.fromCharCode(e,r,n)}while(u<t.length);return f.join("")})}));

/** @license jsPDF v2.4.0 |  * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF | MIT License [https://github.com/parallax/jsPDF/blob/master/LICENSE] */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e((t=t||self).jspdf={}):"function"==typeof define&&define.amd?define(["jsPDF"],e):e((t=t||self).jspdf={})}(window,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function n(){r.console&&"function"==typeof r.console.log&&r.console.log.apply(r.console,arguments)}var i={log:n,warn:function(t){r.console&&("function"==typeof r.console.warn?r.console.warn.apply(r.console,arguments):n.call(null,arguments))},error:function(t){r.console&&("function"==typeof r.console.error?r.console.error.apply(r.console,arguments):n(t))}};function a(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){h(n.response,e,r)},n.onerror=function(){i.error("could not download file")},n.send()}function o(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function s(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var c,u,h=r.saveAs||("object"!==("undefined"==typeof window?"undefined":e(window))||window!==r?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=r.URL||r.webkitURL,c=document.createElement("a");e=e||t.name||"download",c.download=e,c.rel="noopener","string"==typeof t?(c.href=t,c.origin!==location.origin?o(c.href)?a(t,e,n):s(c,c.target="_blank"):s(c)):(c.href=i.createObjectURL(t),setTimeout((function(){i.revokeObjectURL(c.href)}),4e4),setTimeout((function(){s(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,n){if(r=r||t.name||"download","string"==typeof t)if(o(t))a(t,r,n);else{var c=document.createElement("a");c.href=t,c.target="_blank",setTimeout((function(){s(c)}))}else navigator.msSaveOrOpenBlob(function(t,r){return void 0===r?r={autoBom:!1}:"object"!==e(r)&&(i.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),r)}:function(t,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return a(t,n,i);var s="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c)&&"object"===("undefined"==typeof FileReader?"undefined":e(FileReader))){var h=new FileReader;h.onloadend=function(){var t=h.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},h.readAsDataURL(t)}else{var l=r.URL||r.webkitURL,f=l.createObjectURL(t);o?o.location=f:location.href=f,o=null,setTimeout((function(){l.revokeObjectURL(f)}),4e4)}});
/**
   * A class to parse color values
   * @author Stoyan Stefanov <sstoo@gmail.com>
   * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
   * @license Use it if you like it
   */function l(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6));t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);o&&(e=a(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}
/**
   * @license
   * Joseph Myers does not specify a particular license for his work.
   *
   * Author: Joseph Myers
   * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
   *
   * Modified by: Owen Leong
   */
function f(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=p(r,n,i,a,e[0],7,-680876936),a=p(a,r,n,i,e[1],12,-389564586),i=p(i,a,r,n,e[2],17,606105819),n=p(n,i,a,r,e[3],22,-1044525330),r=p(r,n,i,a,e[4],7,-176418897),a=p(a,r,n,i,e[5],12,1200080426),i=p(i,a,r,n,e[6],17,-1473231341),n=p(n,i,a,r,e[7],22,-45705983),r=p(r,n,i,a,e[8],7,1770035416),a=p(a,r,n,i,e[9],12,-1958414417),i=p(i,a,r,n,e[10],17,-42063),n=p(n,i,a,r,e[11],22,-1990404162),r=p(r,n,i,a,e[12],7,1804603682),a=p(a,r,n,i,e[13],12,-40341101),i=p(i,a,r,n,e[14],17,-1502002290),r=g(r,n=p(n,i,a,r,e[15],22,1236535329),i,a,e[1],5,-165796510),a=g(a,r,n,i,e[6],9,-1069501632),i=g(i,a,r,n,e[11],14,643717713),n=g(n,i,a,r,e[0],20,-373897302),r=g(r,n,i,a,e[5],5,-701558691),a=g(a,r,n,i,e[10],9,38016083),i=g(i,a,r,n,e[15],14,-660478335),n=g(n,i,a,r,e[4],20,-405537848),r=g(r,n,i,a,e[9],5,568446438),a=g(a,r,n,i,e[14],9,-1019803690),i=g(i,a,r,n,e[3],14,-187363961),n=g(n,i,a,r,e[8],20,1163531501),r=g(r,n,i,a,e[13],5,-1444681467),a=g(a,r,n,i,e[2],9,-51403784),i=g(i,a,r,n,e[7],14,1735328473),r=m(r,n=g(n,i,a,r,e[12],20,-1926607734),i,a,e[5],4,-378558),a=m(a,r,n,i,e[8],11,-2022574463),i=m(i,a,r,n,e[11],16,1839030562),n=m(n,i,a,r,e[14],23,-35309556),r=m(r,n,i,a,e[1],4,-1530992060),a=m(a,r,n,i,e[4],11,1272893353),i=m(i,a,r,n,e[7],16,-155497632),n=m(n,i,a,r,e[10],23,-1094730640),r=m(r,n,i,a,e[13],4,681279174),a=m(a,r,n,i,e[0],11,-358537222),i=m(i,a,r,n,e[3],16,-722521979),n=m(n,i,a,r,e[6],23,76029189),r=m(r,n,i,a,e[9],4,-640364487),a=m(a,r,n,i,e[12],11,-421815835),i=m(i,a,r,n,e[15],16,530742520),r=v(r,n=m(n,i,a,r,e[2],23,-995338651),i,a,e[0],6,-198630844),a=v(a,r,n,i,e[7],10,1126891415),i=v(i,a,r,n,e[14],15,-1416354905),n=v(n,i,a,r,e[5],21,-57434055),r=v(r,n,i,a,e[12],6,1700485571),a=v(a,r,n,i,e[3],10,-1894986606),i=v(i,a,r,n,e[10],15,-1051523),n=v(n,i,a,r,e[1],21,-2054922799),r=v(r,n,i,a,e[8],6,1873313359),a=v(a,r,n,i,e[15],10,-30611744),i=v(i,a,r,n,e[6],15,-1560198380),n=v(n,i,a,r,e[13],21,1309151649),r=v(r,n,i,a,e[4],6,-145523070),a=v(a,r,n,i,e[11],10,-1120210379),i=v(i,a,r,n,e[2],15,718787259),n=v(n,i,a,r,e[9],21,-343485551),t[0]=S(r,t[0]),t[1]=S(n,t[1]),t[2]=S(i,t[2]),t[3]=S(a,t[3])}function d(t,e,r,n,i,a){return e=S(S(e,t),S(n,a)),S(e<<i|e>>>32-i,r)}function p(t,e,r,n,i,a,o){return d(e&r|~e&n,t,e,i,a,o)}function g(t,e,r,n,i,a,o){return d(e&n|r&~n,t,e,i,a,o)}function m(t,e,r,n,i,a,o){return d(e^r^n,t,e,i,a,o)}function v(t,e,r,n,i,a,o){return d(r^(e|~n),t,e,i,a,o)}function b(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)f(n,y(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(f(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,f(n,i),n}function y(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}c=r.atob.bind(r),u=r.btoa.bind(r);var w="0123456789abcdef".split("");function N(t){for(var e="",r=0;r<4;r++)e+=w[t>>8*r+4&15]+w[t>>8*r&15];return e}function L(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function A(t){return function(t){return t.map(L).join("")}(b(t))}var x="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=N(t[e]);return t.join("")}(b("hello"));function S(t,e){if(x){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}
/**
   * @license
   * FPDF is released under a permissive license: there is no usage restriction.
   * You may embed it freely in your application (commercial or not), with or
   * without modifications.
   *
   * Reference: http://www.fpdf.org/en/script/script37.php
   */function _(t,e){var r,n,i,a;if(t!==r){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var h=s[c];u=(u+h+o.charCodeAt(c))%256,s[c]=s[u],s[u]=h}r=t,n=s}else s=n;var l=e.length,f=0,d=0,p="";for(c=0;c<l;c++)d=(d+(h=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=h,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(c)^o);return p}
/**
   * @license
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   * Author: Owen Leong (@owenl131)
   * Date: 15 Oct 2020
   * References:
   * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
   * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
   * http://www.fpdf.org/en/script/script37.php
   */var P={print:4,modify:8,copy:16,"annot-forms":32};function k(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==P.perm)throw new Error("Invalid permission: "+t);i+=P[t]})),this.padding="(Â¿N^NuÂŠAd\0NVÃ¿Ãº\b..\0Â¶Ã?h>Â€/\fÂ©Ã¾dSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=A(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=_(this.encryptionKey,this.padding)}function F(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);if(i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126)e+="#"+("0"+i.toString(16)).slice(-2);else e+=t[n]}return e}function I(t){if("object"!==e(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,e,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var i=Math.random().toString(35);return n[t][i]=[e,!!r],i},this.unsubscribe=function(t){for(var e in n)if(n[e][t])return delete n[e][t],0===Object.keys(n[e]).length&&delete n[e],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var s in n[e]){var c=n[e][s];try{c[0].apply(t,a)}catch(t){r.console&&i.error("jsPDF PubSub Error",t.message,t)}c[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function C(t){if(!(this instanceof C))return new C(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function j(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function O(t,e,r,n,i){if(!(this instanceof O))return new O(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,j.call(this,n,i)}function B(t,e,r,n,i){if(!(this instanceof B))return new B(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,j.call(this,n,i)}function M(t){var n,a="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],s=arguments[2],c=arguments[3],f=[],d=1,p=16,g="S",m=null;"object"===e(t=t||{})&&(a=t.orientation,o=t.unit||o,s=t.format||s,c=t.compress||t.compressPdf||c,null!==(m=t.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),d="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(n=t.precision),void 0!==t.floatPrecision&&(p=t.floatPrecision),g=t.defaultPathOperation||"S"),f=t.filters||(!0===c?["FlateEncode"]:f),o=o||"mm",a=(""+(a||"P")).toLowerCase();var v=t.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=I;var w="1.3",N=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var L={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return L};var A=y.__private__.getPageFormat=function(t){return L[t]};s=s||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},S=x.COMPAT;function _(){this.saveGraphicsState(),lt(new Vt(_t,0,0,-_t,0,Dr()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),g="n",S=x.ADVANCED}function P(){this.restoreGraphicsState(),g="S",S=x.COMPAT}var j=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=S===x.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.compatAPI=function(t){var e=S===x.ADVANCED;return e&&P.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},y.isAdvancedAPI=function(){return S===x.ADVANCED};var E,q=function(t){if(S!==x.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=y.roundToPrecision=y.__private__.roundToPrecision=function(t,e){var r=n||e;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};E=y.hpf=y.__private__.hpf="number"==typeof p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,p)}:"smart"===p?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return D(t,16)};var R=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return D(t,2)},T=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return D(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===x.COMPAT?t*_t:S===x.ADVANCED?t:void 0},z=function(t){return S===x.COMPAT?Dr()-t:S===x.ADVANCED?t:void 0},H=function(t){return U(z(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(n=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==m&&(Ye=new k(m.userPermissions,m.userPassword,m.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var J=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[r,Q(n),"'",Q(i),"'"].join("");return["D:",t.getFullYear(),Q(t.getMonth()+1),Q(t.getDate()),Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds()),a].join("")},X=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,a,o,0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=J(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},Z=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=X(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return Z(t)};var $,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],nt=[],it=0,at=[],ot=[],st=!1,ct=nt,ut=function(){et=0,it=0,nt=[],rt=[],at=[],Qt=Kt(),te=Kt()};y.__private__.setCustomOutputDestination=function(t){st=!0,ct=t};var ht=function(t){st||(ct=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,ct=nt};var lt=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,ct.push(t),ct},ft=y.__private__.write=function(t){return lt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},pt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return pt};var gt=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return gt=S===x.ADVANCED?t/_t:t,this};var mt,vt=y.__private__.getFontSize=y.getFontSize=function(){return S===x.COMPAT?gt:gt*_t},bt=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return bt=t,this},y.__private__.getR2L=y.getR2L=function(){return bt};var yt,wt=y.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(t))mt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');mt=t}else mt=parseInt(t,10)};y.__private__.getZoomMode=function(){return mt};var Nt,Lt=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};y.__private__.getPageMode=function(){return yt};var At=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');Nt=t};y.__private__.getLayoutMode=function(){return Nt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return wt(t),At(e),Lt(r),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},y.__private__.getDocumentProperties=function(){return xt},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var St,_t,Pt,kt,Ft,It={},Ct={},jt=[],Ot={},Bt={},Mt={},Et={},qt=null,Dt=0,Rt=[],Tt=new I(y),Ut=t.hotfixes||[],zt={},Ht={},Wt=[],Vt=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&(0===this.shy&&(0===this.shx&&(1===this.sy&&(0===this.tx&&0===this.ty))))}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,r,n,i,a,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n;r-=t*s,n-=e*s;var c=Math.sqrt(r*r+n*n);return s/=c,t*(n/=c)<e*(r/=c)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Vt(o,0,0,c,0,0),translate:new Vt(1,0,0,1,i,a),rotate:new Vt(t,e,-e,t,0,0),skew:new Vt(1,0,s,1,0,0)}},Vt.prototype.toString=function(t){return this.join(" ")},Vt.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=1/(t*n-e*r),s=n*o,c=-e*o,u=-r*o,h=t*o;return new Vt(s,c,u,h,-s*i-u*a,-c*i-h*a)},Vt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,r=t.x*this.shy+t.y*this.sy+this.ty;return new Ir(e,r)},Vt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new Ir(t.x+t.w,t.y+t.h));return new Cr(e.x,e.y,r.x-e.x,r.y-e.y)},Vt.prototype.clone=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty;return new Vt(t,e,r,n,i,a)},y.Matrix=Vt;var Gt=y.matrixMult=function(t,e){return e.multiply(t)},Yt=new Vt(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Yt;var Jt=function(t,e){if(!Bt[t]){var r=(e instanceof O?"Sh":"P")+(Object.keys(Ot).length+1).toString(10);e.id=r,Bt[t]=r,Ot[r]=e,Tt.publish("addPattern",e)}};y.ShadingPattern=O,y.TilingPattern=B,y.addShadingPattern=function(t,e){return q("addShadingPattern()"),Jt(t,e),this},y.beginTilingPattern=function(t){q("beginTilingPattern()"),Or(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},y.endTilingPattern=function(t,e){q("endTilingPattern()"),e.stream=ot[$].join("\n"),Jt(t,e),Tt.publish("endTilingPattern",e),Wt.pop().restore()};var Xt=y.__private__.newObject=function(){var t=Kt();return Zt(t,!0),t},Kt=y.__private__.newObjectDeferred=function(){return et++,rt[et]=function(){return it},et},Zt=function(t,e){return e="boolean"==typeof e&&e,rt[t]=it,e&&lt(t+" 0 obj"),t},$t=y.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return at.push(t),t},Qt=Kt(),te=Kt(),ee=y.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1]){if(5===e.length&&("k"===e[4]||"K"===e[4])){e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]}}else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return n},re=y.__private__.encodeColorString=function(t){var r;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,a=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var c=new l(n);if(c.ok)n=c.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)if("string"==typeof n)r=n+" "+s[0];else switch(t.precision){case 2:r=R(n/255)+" "+s[0];break;case 3:default:r=T(n/255)+" "+s[0]}else if(void 0===o||"object"===e(o)){if(o&&!isNaN(o.a)&&0===o.a)return r=["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)r=[n,i,a,s[1]].join(" ");else switch(t.precision){case 2:r=[R(n/255),R(i/255),R(a/255),s[1]].join(" ");break;default:case 3:r=[T(n/255),T(i/255),T(a/255),s[1]].join(" ")}}else if("string"==typeof n)r=[n,i,a,o,s[2]].join(" ");else switch(t.precision){case 2:r=[R(n),R(i),R(a),R(o),s[2]].join(" ");break;case 3:default:r=[T(n),T(i),T(a),T(o),s[2]].join(" ")}return r},ne=y.__private__.getFilters=function(){return f},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==m&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==m&&(s=Ye.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],h=(c=void 0!==M.API.processDataByFilters?M.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=h.length)if(h.split("/").length-1==1)u.push({key:"Filter",value:h});else{u.push({key:"Filter",value:"["+h+"]"});for(var l=0;l<u.length;l+=1)if("DecodeParms"===u[l].key){for(var f=[],d=0;d<c.reverseChain.split("/").length-1;d+=1)f.push("null");f.push(u[l].value),u[l].value="["+f.join(" ")+"]"}}lt("<<");for(var p=0;p<u.length;p++)lt("/"+u[p].key+" "+u[p].value);lt(">>"),0!==c.data.length&&(lt("stream"),lt(s(c.data)),lt("endstream"))},ae=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Zt(n,!0),lt("<</Type /Page"),lt("/Parent "+t.rootDictionaryObjId+" 0 R"),lt("/Resources "+t.resourceDictionaryObjId+" 0 R"),lt("/MediaBox ["+parseFloat(E(t.mediaBox.bottomLeftX))+" "+parseFloat(E(t.mediaBox.bottomLeftY))+" "+E(t.mediaBox.topRightX)+" "+E(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&lt("/CropBox ["+E(t.cropBox.bottomLeftX)+" "+E(t.cropBox.bottomLeftY)+" "+E(t.cropBox.topRightX)+" "+E(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&lt("/BleedBox ["+E(t.bleedBox.bottomLeftX)+" "+E(t.bleedBox.bottomLeftY)+" "+E(t.bleedBox.topRightX)+" "+E(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&lt("/TrimBox ["+E(t.trimBox.bottomLeftX)+" "+E(t.trimBox.bottomLeftY)+" "+E(t.trimBox.topRightX)+" "+E(t.trimBox.topRightY)+"]"),null!==t.artBox&&lt("/ArtBox ["+E(t.artBox.bottomLeftX)+" "+E(t.artBox.bottomLeftY)+" "+E(t.artBox.topRightX)+" "+E(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&lt("/UserUnit "+t.userUnit),Tt.publish("putPage",{objId:n,pageContext:Rt[e],pageNumber:e,page:r}),lt("/Contents "+i+" 0 R"),lt(">>"),lt("endobj");var a=r.join("\n");return S===x.ADVANCED&&(a+="\nQ"),Zt(i,!0),ie({data:a,filters:ne(),objectId:i}),lt("endobj"),n},oe=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Dt;t++)Rt[t].objId=Kt(),Rt[t].contentsObjId=Kt();for(t=1;t<=Dt;t++)r.push(ae({number:t,data:ot[t],objId:Rt[t].objId,contentsObjId:Rt[t].contentsObjId,mediaBox:Rt[t].mediaBox,cropBox:Rt[t].cropBox,bleedBox:Rt[t].bleedBox,trimBox:Rt[t].trimBox,artBox:Rt[t].artBox,userUnit:Rt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Zt(Qt,!0),lt("<</Type /Pages");var n="/Kids [";for(e=0;e<Dt;e++)n+=r[e]+" 0 R ";lt(n+"]"),lt("/Count "+Dt),lt(">>"),lt("endobj"),Tt.publish("postPutPages")},se=function(t){Tt.publish("putFont",{font:t,out:lt,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),lt("<<"),lt("/Type /Font"),lt("/BaseFont /"+F(t.postScriptName)),lt("/Subtype /Type1"),"string"==typeof t.encoding&&lt("/Encoding /"+t.encoding),lt("/FirstChar 32"),lt("/LastChar 255"),lt(">>"),lt("endobj"))},ce=function(){for(var t in It)It.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&se(It[t])},ue=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[E(t.x),E(t.y),E(t.x+t.width),E(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),lt("endobj")},he=function(){for(var t in zt)zt.hasOwnProperty(t)&&ue(zt[t])},le=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;u<n.length;u++){for(r=n[u];r>t[c+1].offset;)c++;var h=t[c].offset,l=(r-h)/(t[c+1].offset-h),f=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-l)*f[0]+l*d[0]).toString(16))+tt(Math.round((1-l)*f[1]+l*d[1]).toString(16))+tt(Math.round((1-l)*f[2]+l*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var r=Xt(),n=le(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),lt("endobj"),t.objectNumber=Xt(),lt("<< /ShadingType "+t.type),lt("/ColorSpace /DeviceRGB");var a="/Coords ["+E(parseFloat(t.coords[0]))+" "+E(parseFloat(t.coords[1]))+" ";2===t.type?a+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3])):a+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3]))+" "+E(parseFloat(t.coords[4]))+" "+E(parseFloat(t.coords[5])),lt(a+="]"),t.matrix&&lt("/Matrix ["+t.matrix.toString()+"]"),lt("/Function "+r+" 0 R"),lt("/Extend [true true]"),lt(">>"),lt("endobj")},de=function(t,e){var r=Kt(),n=Xt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(E).join(" ")+"]"}),i.push({key:"XStep",value:E(t.xStep)}),i.push({key:"YStep",value:E(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),lt("endobj")},pe=function(t){var e;for(e in Ot)Ot.hasOwnProperty(e)&&(Ot[e]instanceof O?fe(Ot[e]):Ot[e]instanceof B&&de(Ot[e],t))},ge=function(t){for(var e in t.objectNumber=Xt(),lt("<<"),t)switch(e){case"opacity":lt("/ca "+R(t[e]));break;case"stroke-opacity":lt("/CA "+R(t[e]))}lt(">>"),lt("endobj")},me=function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ge(Mt[t])},ve=function(){for(var t in lt("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&&lt("/"+t+" "+zt[t].objectNumber+" 0 R");Tt.publish("putXobjectDict"),lt(">>")},be=function(){Ye.oid=Xt(),lt("<<"),lt("/Filter /Standard"),lt("/V "+Ye.v),lt("/R "+Ye.r),lt("/U <"+Ye.toHexString(Ye.U)+">"),lt("/O <"+Ye.toHexString(Ye.O)+">"),lt("/P "+Ye.P),lt(">>"),lt("endobj")},ye=function(){for(var t in lt("/Font <<"),It)It.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&lt("/"+t+" "+It[t].objectNumber+" 0 R");lt(">>")},we=function(){if(Object.keys(Ot).length>0){for(var t in lt("/Shading <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t]instanceof O&&Ot[t].objectNumber>=0&&lt("/"+t+" "+Ot[t].objectNumber+" 0 R");Tt.publish("putShadingPatternDict"),lt(">>")}},Ne=function(t){if(Object.keys(Ot).length>0){for(var e in lt("/Pattern <<"),Ot)Ot.hasOwnProperty(e)&&Ot[e]instanceof y.TilingPattern&&Ot[e].objectNumber>=0&&Ot[e].objectNumber<t&&lt("/"+e+" "+Ot[e].objectNumber+" 0 R");Tt.publish("putTilingPatternDict"),lt(">>")}},Le=function(){if(Object.keys(Mt).length>0){var t;for(t in lt("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&lt("/"+t+" "+Mt[t].objectNumber+" 0 R");Tt.publish("putGStateDict"),lt(">>")}},Ae=function(t){Zt(t.resourcesOid,!0),lt("<<"),lt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),Ne(t.objectOid),Le(),ve(),lt(">>"),lt("endobj")},xe=function(){var t=[];ce(),me(),he(),pe(t),Tt.publish("putResources"),t.forEach(Ae),Ae({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Tt.publish("postPutResources")},Se=function(){Tt.publish("putAdditionalObjects");for(var t=0;t<at.length;t++){var e=at[t];Zt(e.objId,!0),lt(e.content),lt("endobj")}Tt.publish("postPutAdditionalObjects")},_e=function(t){Ct[t.fontName]=Ct[t.fontName]||{},Ct[t.fontName][t.fontStyle]=t.id},Pe=function(t,e,r,n,i){var a={id:"F"+(Object.keys(It).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return Tt.publish("addFont",{font:a,instance:this}),It[a.id]=a,_e(a),a.id},ke=function(t){for(var e=0,r=pt.length;e<r;e++){var n=Pe.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===v&&(b[n]=!0);var i=t[e][0].split("-");_e({id:n,fontName:i[0],fontStyle:i[1]||""})}Tt.publish("addFonts",{fonts:It,dictionary:Ct})},Fe=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!r.console)throw new Error(n);r.console.error(n,t),r.alert&&alert(n)}},t.foo.bar=t,t.foo},Ie=function(t,e){var r,n,i,a,o,s,c,u,h;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&It[St].metadata&&It[St].metadata[i]&&It[St].metadata[i].encoding&&(a=It[St].metadata[i].encoding,!o&&It[St].encoding&&(o=It[St].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(c=!1,s=[],r=0,n=t.length;r<n;r++)(u=o[t.charCodeAt(r)])?s.push(String.fromCharCode(u)):s.push(t[r]),s[r].charCodeAt(0)>>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((h=(u=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(h),s.push(u-(h<<8))}return String.fromCharCode.apply(void 0,s)},Ce=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return Ie(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},je=y.__private__.beginPage=function(t){ot[++Dt]=[],Rt[Dt]={objId:0,contentsObjId:0,userUnit:Number(d),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Me(Dt),ht(ot[$])},Oe=function(t,e){var r,n,o;switch(a=e||a,"string"==typeof t&&(r=A(t.toLowerCase()),Array.isArray(r)&&(n=r[0],o=r[1])),Array.isArray(t)&&(n=t[0]*_t,o=t[1]*_t),isNaN(n)&&(n=s[0],o=s[1]),(n>14400||o>14400)&&(i.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),o=Math.min(14400,o)),s=[n,o],a.substr(0,1)){case"l":o>n&&(s=[o,n]);break;case"p":n>o&&(s=[o,n])}je(s),dr(fr),lt(Nr),0!==Pr&&lt(Pr+" J"),0!==kr&&lt(kr+" j"),Tt.publish("addPage",{pageNumber:Dt})},Be=function(t){t>0&&t<=Dt&&(ot.splice(t,1),Rt.splice(t,1),Dt--,$>Dt&&($=Dt),this.setPage($))},Me=function(t){t>0&&t<=Dt&&($=t)},Ee=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return ot.length-1},qe=function(t,e,r){var n,a=void 0;return r=r||{},t=void 0!==t?t:It[St].fontName,e=void 0!==e?e:It[St].fontStyle,n=t.toLowerCase(),void 0!==Ct[n]&&void 0!==Ct[n][e]?a=Ct[n][e]:void 0!==Ct[t]&&void 0!==Ct[t][e]?a=Ct[t][e]:!1===r.disableWarning&&i.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),a||r.noFallback||null==(a=Ct.times[e])&&(a=Ct.times.normal),a},De=y.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var r in null!==m&&(e=Ye.encryptor(t,0)),lt("<<"),lt("/Producer ("+Ce(e("jsPDF "+M.version))+")"),xt)xt.hasOwnProperty(r)&&xt[r]&&lt("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ce(e(xt[r]))+")");lt("/CreationDate ("+Ce(e(W))+")"),lt(">>"),lt("endobj")},Re=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),lt("<<"),lt("/Type /Catalog"),lt("/Pages "+e+" 0 R"),mt||(mt="fullwidth"),mt){case"fullwidth":lt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":lt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":lt("/OpenAction [3 0 R /Fit]");break;case"original":lt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+mt;"%"===r.substr(r.length-1)&&(mt=parseInt(mt)/100),"number"==typeof mt&&lt("/OpenAction [3 0 R /XYZ null null "+R(mt)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":lt("/PageLayout /OneColumn");break;case"single":lt("/PageLayout /SinglePage");break;case"two":case"twoleft":lt("/PageLayout /TwoColumnLeft");break;case"tworight":lt("/PageLayout /TwoColumnRight")}yt&&lt("/PageMode /"+yt),Tt.publish("putCatalog"),lt(">>"),lt("endobj")},Te=y.__private__.putTrailer=function(){lt("trailer"),lt("<<"),lt("/Size "+(et+1)),lt("/Root "+et+" 0 R"),lt("/Info "+(et-1)+" 0 R"),null!==m&&lt("/Encrypt "+Ye.oid+" 0 R"),lt("/ID [ <"+V+"> <"+V+"> ]"),lt(">>")},Ue=y.__private__.putHeader=function(){lt("%PDF-"+w),lt("%ÂºÃŸÂ¬Ã ")},ze=y.__private__.putXRef=function(){var t="0000000000";lt("xref"),lt("0 "+(et+1)),lt("0000000000 65535 f ");for(var e=1;e<=et;e++){"function"==typeof rt[e]?lt((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?lt((t+rt[e]).slice(-10)+" 00000 n "):lt("0000000000 00000 n ")}},He=y.__private__.buildDocument=function(){ut(),ht(nt),Tt.publish("buildDocument"),Ue(),oe(),Se(),xe(),null!==m&&be(),De(),Re();var t=it;return ze(),Te(),lt("startxref"),lt(""+t),lt("%%EOF"),ht(ot[$]),nt.join("\n")},We=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ve=y.output=y.__private__.output=Fe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":y.save(e.filename);break;case"arraybuffer":return dt(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(We(He()))||void 0;i.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",a=He();try{n=u(a)}catch(t){n=u(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+(e.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=r.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(r)){var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',h=r.open();if(null!==h){h.document.write(c);var l=this;h.document.documentElement.querySelector("#pdfViewer").onload=function(){h.document.title=e.filename,h.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(l.output("bloburl"))}}return h}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(r))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',d=r.open();if(null!==d&&(d.document.write(f),d.document.title=e.filename),d||"undefined"==typeof safari)return d;break;case"datauri":case"dataurl":return r.document.location.href=this.output("datauristring",e);default:return null}})),Ge=function(t){return!0===Array.isArray(Ut)&&Ut.indexOf(t)>-1};switch(o){case"pt":_t=1;break;case"mm":_t=72/25.4;break;case"cm":_t=72/2.54;break;case"in":_t=72;break;case"px":_t=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":_t=12;break;case"ex":_t=6;break;default:throw new Error("Invalid unit: "+o)}var Ye=null;K(),Y();var Je=function(t){return null!==m?Ye.encryptor(t,0):function(t){return t}},Xe=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Rt[t].objId,pageNumber:t,pageContext:Rt[t]}},Ke=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Rt)if(Rt[e].objId===t)break;return Xe(e)},Ze=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Rt[$].objId,pageNumber:$,pageContext:Rt[$]}};y.addPage=function(){return Oe.apply(this,arguments),this},y.setPage=function(){return Me.apply(this,arguments),ht.call(this,ot[$]),this},y.insertPage=function(t){return this.addPage(),this.movePage($,t),this},y.movePage=function(t,e){var r,n;if(t>e){r=ot[t],n=Rt[t];for(var i=t;i>e;i--)ot[i]=ot[i-1],Rt[i]=Rt[i-1];ot[e]=r,Rt[e]=n,this.setPage(e)}else if(t<e){r=ot[t],n=Rt[t];for(var a=t;a<e;a++)ot[a]=ot[a+1],Rt[a]=Rt[a+1];ot[e]=r,Rt[e]=n,this.setPage(e)}return this},y.deletePage=function(){return Be.apply(this,arguments),this},y.__private__.text=y.text=function(t,r,n,i,a){var o,s,c,u,h,l,f,d,p=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof r&&("string"==typeof n||Array.isArray(n))){var g=n;n=r,r=t,t=g}if(arguments[3]instanceof Vt==!1?(c=arguments[4],u=arguments[5],"object"===e(f=arguments[3])&&null!==f||("string"==typeof c&&(u=c,c=null),"string"==typeof f&&(u=f,f=null),"number"==typeof f&&(c=f,f=null),i={flags:f,angle:c,align:u})):(q("The transform parameter of text() with a Matrix value"),d=a),isNaN(r)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return p;var m="",v=!1,y="number"==typeof i.lineHeightFactor?i.lineHeightFactor:lr,w=p.internal.scaleFactor;function N(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),Ce(t,f)}function L(t){for(var e,r=t.concat(),n=[],i=r.length;i--;)"string"==typeof(e=r.shift())?n.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function A(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var n,i,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(n=a.shift())?o.push(e(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(i=e(n[0],n[1],n[2]),o.push([i[0],i[1],i[2]]));r=o}return r}var _=!1,P=!0;if("string"==typeof t)_=!0;else if(Array.isArray(t)){var k=t.concat();s=[];for(var F,I=k.length;I--;)("string"!=typeof(F=k.shift())||Array.isArray(F)&&"string"!=typeof F[0])&&(P=!1);_=P}if(!1===_)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var C=gt/p.internal.scaleFactor,j=C*(lr-1);switch(i.baseline){case"bottom":n-=j;break;case"top":n+=C-j;break;case"hanging":n+=C-2*j;break;case"middle":n+=C/2-j}if((l=i.maxWidth||0)>0&&("string"==typeof t?t=p.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(p.splitTextToSize(e,l))}),[]))),o={text:t,x:r,y:n,options:i,mutex:{pdfEscape:Ce,activeFontKey:St,fonts:It,activeFontSize:gt}},Tt.publish("preProcessText",o),t=o.text,c=(i=o.options).angle,d instanceof Vt==!1&&c&&"number"==typeof c){c*=Math.PI/180,0===i.rotationDirection&&(c=-c),S===x.ADVANCED&&(c=-c);var O=Math.cos(c),B=Math.sin(c);d=new Vt(O,B,-B,O,0,0)}else c&&c instanceof Vt&&(d=c);S!==x.ADVANCED||d||(d=Yt),void 0!==(h=i.charSpace||Sr)&&(m+=E(U(h))+" Tc\n",this.setCharSpace(this.getCharSpace()||0));i.lang;var M=-1,D=void 0!==i.renderingMode?i.renderingMode:i.stroke,R=p.internal.getCurrentPageInfo().pageContext;switch(D){case 0:case!1:case"fill":M=0;break;case 1:case!0:case"stroke":M=1;break;case 2:case"fillThenStroke":M=2;break;case 3:case"invisible":M=3;break;case 4:case"fillAndAddForClipping":M=4;break;case 5:case"strokeAndAddPathForClipping":M=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":M=6;break;case 7:case"addToPathForClipping":M=7}var T=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==M?m+=M+" Tr\n":-1!==T&&(m+="0 Tr\n"),-1!==M&&(R.usedRenderingMode=M),u=i.align||"left";var z,H=gt*y,W=p.internal.pageSize.getWidth(),V=It[St];h=i.charSpace||Sr,l=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var G=[];if("[object Array]"===Object.prototype.toString.call(t)){var Y;s=L(t),"left"!==u&&(z=s.map((function(t){return p.getStringUnitWidth(t,{font:V,charSpace:h,fontSize:gt,doKerning:!1})*gt/w})));var J,X=0;if("right"===u){r-=z[0],t=[],I=s.length;for(var K=0;K<I;K++)0===K?(J=vr(r),Y=br(n)):(J=U(X-z[K]),Y=-H),t.push([s[K],J,Y]),X=z[K]}else if("center"===u){r-=z[0]/2,t=[],I=s.length;for(var Z=0;Z<I;Z++)0===Z?(J=vr(r),Y=br(n)):(J=U((X-z[Z])/2),Y=-H),t.push([s[Z],J,Y]),X=z[Z]}else if("left"===u){t=[],I=s.length;for(var $=0;$<I;$++)t.push(s[$])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],I=s.length,l=0!==l?l:W;for(var Q=0;Q<I;Q++)Y=0===Q?br(n):-H,J=0===Q?vr(r):0,Q<I-1?G.push(E(U((l-z[Q])/(s[Q].split(" ").length-1)))):G.push(0),t.push([s[Q],J,Y])}}var tt="boolean"==typeof i.R2L?i.R2L:bt;!0===tt&&(t=A(t,(function(t,e,r){return[t.split("").reverse().join(""),e,r]}))),o={text:t,x:r,y:n,options:i,mutex:{pdfEscape:Ce,activeFontKey:St,fonts:It,activeFontSize:gt}},Tt.publish("postProcessText",o),t=o.text,v=o.mutex.isHex||!1;var et=It[St].encoding;"WinAnsiEncoding"!==et&&"StandardEncoding"!==et||(t=A(t,(function(t,e,r){return[N(t),e,r]}))),s=L(t),t=[];for(var rt,nt,it,at=0,ot=1,st=Array.isArray(s[0])?ot:at,ct="",ut=function(t,e,r){var n="";return r instanceof Vt?(r="number"==typeof i.angle?Gt(r,new Vt(1,0,0,1,t,e)):Gt(new Vt(1,0,0,1,t,e),r),S===x.ADVANCED&&(r=Gt(new Vt(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=E(t)+" "+E(e)+" Td\n",n},ht=0;ht<s.length;ht++){switch(ct="",st){case ot:it=(v?"<":"(")+s[ht][0]+(v?">":")"),rt=parseFloat(s[ht][1]),nt=parseFloat(s[ht][2]);break;case at:it=(v?"<":"(")+s[ht]+(v?">":")"),rt=vr(r),nt=br(n)}void 0!==G&&void 0!==G[ht]&&(ct=G[ht]+" Tw\n"),0===ht?t.push(ct+ut(rt,nt,d)+it):st===at?t.push(ct+it):st===ot&&t.push(ct+ut(rt,nt,d)+it)}t=st===at?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var ft="BT\n/";return ft+=St+" "+gt+" Tf\n",ft+=E(gt*y)+" TL\n",ft+=Ar+"\n",ft+=m,ft+=t,lt(ft+="ET"),b[St]=!0,p};var $e=y.__private__.clip=y.clip=function(t){return lt("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return $e("evenodd")},y.__private__.discardPath=y.discardPath=function(){return lt("n"),this};var Qe=y.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return Qe(t)&&(g=t),this};var tr=y.__private__.getStyle=y.getStyle=function(t){var e=g;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},er=y.close=function(){return lt("h"),this};y.stroke=function(){return lt("S"),this},y.fill=function(t){return rr("f",t),this},y.fillEvenOdd=function(t){return rr("f*",t),this},y.fillStroke=function(t){return rr("B",t),this},y.fillStrokeEvenOdd=function(t){return rr("B*",t),this};var rr=function(t,r){"object"===e(r)?ar(r,t):lt(t)},nr=function(t){null===t||S===x.ADVANCED&&void 0===t||(t=tr(t),lt(t))};function ir(t,e,r,n,i){var a=new B(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);a.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Jt(o,a),a}var ar=function(t,e){var r=Bt[t.key],n=Ot[r];if(n instanceof O)lt("q"),lt(or(e)),n.gState&&y.setGState(n.gState),lt(t.matrix.toString()+" cm"),lt("/"+r+" sh"),lt("Q");else if(n instanceof B){var i=new Vt(1,0,0,-1,0,Dr());t.matrix&&(i=i.multiply(t.matrix||Yt),r=ir.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),lt("q"),lt("/Pattern cs"),lt("/"+r+" scn"),n.gState&&y.setGState(n.gState),lt(e),lt("Q")}},or=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sr=y.moveTo=function(t,e){return lt(E(U(t))+" "+E(H(e))+" m"),this},cr=y.lineTo=function(t,e){return lt(E(U(t))+" "+E(H(e))+" l"),this},ur=y.curveTo=function(t,e,r,n,i,a){return lt([E(U(t)),E(H(e)),E(U(r)),E(H(n)),E(U(i)),E(H(a)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.line");return S===x.COMPAT?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,r,n,i,a){var o,s,c,u,h,l,f,d,p,g,m,v;if("number"==typeof t&&(v=r,r=e,e=t,t=v),n=n||[1,1],a=a||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!Qe(i)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(sr(e,r),o=n[0],s=n[1],u=t.length,g=e,m=r,c=0;c<u;c++)2===(h=t[c]).length?(g=h[0]*o+g,m=h[1]*s+m,cr(g,m)):(l=h[0]*o+g,f=h[1]*s+m,d=h[2]*o+g,p=h[3]*s+m,g=h[4]*o+g,m=h[5]*s+m,ur(l,f,d,p,g,m));return a&&er(),nr(i),this},y.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.c;switch(r.op){case"m":sr(n[0],n[1]);break;case"l":cr(n[0],n[1]);break;case"c":ur.apply(this,n);break;case"h":er()}}return this},y.__private__.rect=y.rect=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.rect");return S===x.COMPAT&&(n=-n),lt([E(U(t)),E(H(e)),E(U(r)),E(U(n)),"re"].join(" ")),nr(i),this},y.__private__.triangle=y.triangle=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,n-e],[i-r,a-n],[t-i,e-a]],t,e,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(t,e,r,n,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),a=Math.min(a,.5*n),this.lines([[r-2*i,0],[i*s,0,i,a-a*s,i,a],[0,n-2*a],[0,a*s,-i*s,a,-i,a],[2*i-r,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-n],[0,-a*s,i*s,-a,i,-a]],t+i,e,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*r,o=4/3*(Math.SQRT2-1)*n;return sr(t+r,e),ur(t+r,e-o,t+a,e-n,t,e-n),ur(t-a,e-n,t-r,e-o,t-r,e),ur(t-r,e+o,t-a,e+n,t,e+n),ur(t+a,e+n,t+r,e+o,t+r,e),nr(i),this},y.__private__.circle=y.circle=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,n)},y.setFont=function(t,e,r){return r&&(e=j(e,r)),St=qe(t,e,{disableWarning:!1}),this};var hr=y.__private__.getFont=y.getFont=function(){return It[qe.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var t,e,r={};for(t in Ct)if(Ct.hasOwnProperty(t))for(e in r[t]=[],Ct[t])Ct[t].hasOwnProperty(e)&&r[t].push(e);return r},y.addFont=function(t,e,r,n,i){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(r=j(r,n)),i=i||"Identity-H",Pe.call(this,t,e,r,i)};var lr,fr=t.lineWidth||.200025,dr=y.__private__.setLineWidth=y.setLineWidth=function(t){return lt(E(U(t))+" w"),this};y.__private__.setLineDash=M.API.setLineDash=M.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return E(U(t))})).join(" "),e=E(U(e)),lt("["+t+"] "+e+" d"),this};var pr=y.__private__.getLineHeight=y.getLineHeight=function(){return gt*lr};y.__private__.getLineHeight=y.getLineHeight=function(){return gt*lr};var gr=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(lr=t),this},mr=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return lr};gr(t.lineHeight);var vr=y.__private__.getHorizontalCoordinate=function(t){return U(t)},br=y.__private__.getVerticalCoordinate=function(t){return S===x.ADVANCED?t:Rt[$].mediaBox.topRightY-Rt[$].mediaBox.bottomLeftY-U(t)},yr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(t){return E(vr(t))},wr=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(t){return E(br(t))},Nr=t.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return ee(Nr)},y.__private__.setStrokeColor=y.setDrawColor=function(t,e,r,n){return Nr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),lt(Nr),this};var Lr=t.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return ee(Lr)},y.__private__.setFillColor=y.setFillColor=function(t,e,r,n){return Lr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),lt(Lr),this};var Ar=t.textColor||"0 g",xr=y.__private__.getTextColor=y.getTextColor=function(){return ee(Ar)};y.__private__.setTextColor=y.setTextColor=function(t,e,r,n){return Ar=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var Sr=t.charSpace,_r=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(Sr||0)};y.__private__.setCharSpace=y.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Sr=t,this};var Pr=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pr=e,lt(e+" J"),this};var kr=0;y.__private__.setLineJoin=y.setLineJoin=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return kr=e,lt(e+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return lt(E(U(t))+" M"),this},y.GState=C,y.setGState=function(t){(t="string"==typeof t?Mt[Et[t]]:Fr(null,t)).equals(qt)||(lt("/"+t.id+" gs"),qt=t)};var Fr=function(t,e){if(!t||!Et[t]){var r=!1;for(var n in Mt)if(Mt.hasOwnProperty(n)&&Mt[n].equals(e)){r=!0;break}if(r)e=Mt[n];else{var i="GS"+(Object.keys(Mt).length+1).toString(10);Mt[i]=e,e.id=i}return t&&(Et[t]=e.id),Tt.publish("addGState",e),e}};y.addGState=function(t,e){return Fr(t,e),this},y.saveGraphicsState=function(){return lt("q"),jt.push({key:St,size:gt,color:Ar}),this},y.restoreGraphicsState=function(){lt("Q");var t=jt.pop();return St=t.key,gt=t.size,Ar=t.color,qt=null,this},y.setCurrentTransformationMatrix=function(t){return lt(t.toString()+" cm"),this},y.comment=function(t){return lt("#"+t),this};var Ir=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Cr=function(t,e,r,n){Ir.call(this,t,e),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var a=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},jr=function(){this.page=Dt,this.currentPage=$,this.pages=ot.slice(0),this.pagesContext=Rt.slice(0),this.x=Pt,this.y=kt,this.matrix=Ft,this.width=Er($),this.height=Dr($),this.outputDestination=ct,this.id="",this.objectNumber=-1};jr.prototype.restore=function(){Dt=this.page,$=this.currentPage,Rt=this.pagesContext,ot=this.pages,Pt=this.x,kt=this.y,Ft=this.matrix,qr($,this.width),Rr($,this.height),ct=this.outputDestination};var Or=function(t,e,r,n,i){Wt.push(new jr),Dt=$=0,ot=[],Pt=t,kt=e,Ft=i,je([r,n])},Br=function(t){if(Ht[t])Wt.pop().restore();else{var e=new jr,r="Xo"+(Object.keys(zt).length+1).toString(10);e.id=r,Ht[t]=r,zt[r]=e,Tt.publish("addFormObject",e),Wt.pop().restore()}};for(var Mr in y.beginFormObject=function(t,e,r,n,i){return Or(t,e,r,n,i),this},y.endFormObject=function(t){return Br(t),this},y.doFormObject=function(t,e){var r=zt[Ht[t]];return lt("q"),lt(e.toString()+" cm"),lt("/"+r.id+" Do"),lt("Q"),this},y.getFormObject=function(t){var e=zt[Ht[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},y.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(h(We(He()),t),"function"==typeof h.unload&&r.setTimeout&&setTimeout(h.unload,911),this):new Promise((function(e,n){try{var i=h(We(He()),t);"function"==typeof h.unload&&r.setTimeout&&setTimeout(h.unload,911),e(i)}catch(t){n(t.message)}}))},M.API)M.API.hasOwnProperty(Mr)&&("events"===Mr&&M.API.events.length?function(t,e){var r,n,i;for(i=e.length-1;-1!==i;i--)r=e[i][0],n=e[i][1],t.subscribe.apply(t,[r].concat("function"==typeof n?[n]:n))}(Tt,M.API.events):y[Mr]=M.API[Mr]);var Er=y.getPageWidth=function(t){return(Rt[t=t||$].mediaBox.topRightX-Rt[t].mediaBox.bottomLeftX)/_t},qr=y.setPageWidth=function(t,e){Rt[t].mediaBox.topRightX=e*_t+Rt[t].mediaBox.bottomLeftX},Dr=y.getPageHeight=function(t){return(Rt[t=t||$].mediaBox.topRightY-Rt[t].mediaBox.bottomLeftY)/_t},Rr=y.setPageHeight=function(t,e){Rt[t].mediaBox.topRightY=e*_t+Rt[t].mediaBox.bottomLeftY};return y.internal={pdfEscape:Ce,getStyle:tr,getFont:hr,getFontSize:vt,getCharSpace:_r,getTextColor:xr,getLineHeight:pr,getLineHeightFactor:mr,write:ft,getHorizontalCoordinate:vr,getVerticalCoordinate:br,getCoordinateString:yr,getVerticalCoordinateString:wr,collections:{},newObject:Xt,newAdditionalObject:$t,newObjectDeferred:Kt,newObjectDeferredBegin:Zt,getFilters:ne,putStream:ie,events:Tt,scaleFactor:_t,pageSize:{getWidth:function(){return Er($)},setWidth:function(t){qr($,t)},getHeight:function(){return Dr($)},setHeight:function(t){Rr($,t)}},encryptionOptions:m,encryption:Ye,getEncryptor:Je,output:Ve,getNumberOfPages:Ee,pages:ot,out:lt,f2:R,f3:T,getPageInfo:Xe,getPageInfoByObjId:Ke,getCurrentPageInfo:Ze,getPDFVersion:N,Point:Ir,Rectangle:Cr,Matrix:Vt,hasHotfix:Ge},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return Er($)},set:function(t){qr($,t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Dr($)},set:function(t){Rr($,t)},enumerable:!0,configurable:!0}),ke.call(y,pt),St="F1",Oe(s,a),Tt.publish("initialized"),y}k.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},k.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},k.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},k.prototype.processOwnerPassword=function(t,e){return _(A(e).substr(0,5),t)},k.prototype.encryptor=function(t,e){var r=A(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return _(r,t)}},C.prototype.equals=function(t){var r,n="id,objectNumber,equals";if(!t||e(t)!==e(this))return!1;var i=0;for(r in this)if(!(n.indexOf(r)>=0)){if(this.hasOwnProperty(r)&&!t.hasOwnProperty(r))return!1;if(this[r]!==t[r])return!1;i++}for(r in t)t.hasOwnProperty(r)&&n.indexOf(r)<0&&i--;return 0===i},M.API={events:[]},M.version="2.4.0";var E=M.API,q=1,D=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},R=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},T=function(t){return t.toFixed(2)},U=function(t){return t.toFixed(5)};E.__acroform__={};var z=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},H=function(t){return t*q},W=function(t){var e=new ct,r=Lt.internal.getHeight(t)||0,n=Lt.internal.getWidth(t)||0;return e.BBox=[0,0,Number(T(n)),Number(T(r))],e},V=E.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|=1<<e},G=E.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&=~(1<<e)},Y=E.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},J=E.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Y(t,e-1)},X=E.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return V(t,e-1)},K=E.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return G(t,e-1)},Z=E.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],a=t[1],o=t[2],s=t[3],c={};return c.lowerLeft_X=r(i)||0,c.lowerLeft_Y=n(a+s)||0,c.upperRight_X=r(i+o)||0,c.upperRight_Y=n(a)||0,[Number(T(c.lowerLeft_X)),Number(T(c.lowerLeft_Y)),Number(T(c.upperRight_X)),Number(T(c.upperRight_Y))]},$=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=Q(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+T(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=W(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},Q=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),a=r,o=Lt.internal.getHeight(t)||0;o=o<0?-o:o;var s=Lt.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(e,r,n){if(e+1<i.length){var a=r+" "+i[e+1];return tt(a,t,n).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,h,l=tt("3",t,a).height,f=t.multiline?o-a:(o-l)/2,d=f+=2,p=0,g=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+tt(e,t,a=12).width+", FieldWidth:"+s+"\n";break}var m="",v=0;for(var b in i)if(i.hasOwnProperty(b)){m=" "==(m+=i[b]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var y=parseInt(b),w=c(y,m,a),N=b>=i.length-1;if(w&&!N){m+=" ";continue}if(w||N){if(N)g=y;else if(t.multiline&&(l+2)*(v+2)+2>o)continue t}else{if(!t.multiline)continue t;if((l+2)*(v+2)+2>o)continue t;g=y}for(var L="",A=p;A<=g;A++)L+=i[A]+" ";switch(L=" "==L.substr(L.length-1)?L.substr(0,L.length-1):L,h=tt(L,t,a).width,t.textAlign){case"right":u=s-h-2;break;case"center":u=(s-h)/2;break;case"left":default:u=2}e+=T(u)+" "+T(d)+" Td\n",e+="("+D(L)+") Tj\n",e+=-T(u)+" 0 Td\n",d=-(a+2),h=0,p=g+1,v++,m=""}else;break}return n.text=e,n.fontSize=a,n},tt=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},et={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},rt=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===r.type&&t.object===r.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},nt=function(t,r){for(var n in t)if(t.hasOwnProperty(n)){var i=n,a=t[n];r.internal.newObjectDeferredBegin(a.objId,!0),"object"===e(a)&&"function"==typeof a.putStream&&a.putStream(),delete t[i]}},it=function(t,r){if(r.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(ht.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(et)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");q=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ut,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&rt(n,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(r){!function(t,r){var n=!t;for(var i in t||(r.internal.newObjectDeferredBegin(r.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),r.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||r.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var a=t[i],o=[],s=a.Rect;if(a.Rect&&(a.Rect=Z(a.Rect,r)),r.internal.newObjectDeferredBegin(a.objId,!0),a.DA=Lt.createDefaultAppearanceStream(a),"object"===e(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var c=$(a);o.push({key:"AP",value:"<</N "+c+">>"}),r.internal.acroformPlugin.xForms.push(c)}if(a.appearanceStreamContent){var u="";for(var h in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(h)){var l=a.appearanceStreamContent[h];if(u+="/"+h+" ",u+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var i in l)if(l.hasOwnProperty(i)){var f=l[i];"function"==typeof f&&(f=f.call(r,a)),u+="/"+i+" "+f+" ",r.internal.acroformPlugin.xForms.indexOf(f)>=0||r.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=l)&&(f=f.call(r,a)),u+="/"+i+" "+f,r.internal.acroformPlugin.xForms.indexOf(f)>=0||r.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}r.internal.putStream({additionalKeyValues:o,objectId:a.objId}),r.internal.out("endobj")}n&&nt(r.internal.acroformPlugin.xForms,r)}(r,t)})),t.internal.acroformPlugin.isInitialized=!0}},at=E.__acroform__.arrayToPdfArray=function(t,r,n){var i=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(0!==o&&(a+=" "),e(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==r&&n&&(i=n.internal.getEncryptor(r)),a+="("+D(i(t[o].toString()))+")"):a+=t[o].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")};var ot=function(t,e,r){var n=function(t){return t};return void 0!==e&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),t="("+D(n(t))+")"},st=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};st.prototype.toString=function(){return this.objId+" 0 R"},st.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},st.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:at(i,this.objId,this.scope)}):i instanceof st?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:n,value:i}))}return t};var ct=function(){st.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};z(ct,st);var ut=function(){st.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+D(e(t))+")"}},set:function(e){t=e}})};z(ut,st);var ht=function t(){st.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(e,3))},set:function(t){!0===Boolean(t)?this.F=X(e,3):this.F=K(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');r=t}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(t){n=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(t){n[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(t){n[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(t){n[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(t){n[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof bt)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+D(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/q:u},set:function(t){u=t}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(t){h=t}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof bt||this instanceof wt))return ot(l,this.objId,this.scope)},set:function(t){t=t.toString(),l=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof gt==!1?ot(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof gt==!1?"("===t.substr(0,1)?R(t.substr(1,t.length-2)):R(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof gt==!0?R(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof gt==!0?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof gt==!1?ot(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof gt==!1?"("===t.substr(0,1)?R(t.substr(1,t.length-2)):R(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof gt==!0?R(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof gt==!0?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,1):this.Ff=K(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,2):this.Ff=K(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,3):this.Ff=K(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};z(ht,st);var lt=function(){ht.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return at(e,this.objId,this.scope)},set:function(t){var r,n;n=[],"string"==typeof(r=t)&&(n=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,18):this.Ff=K(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=X(this.Ff,19):this.Ff=K(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=X(this.Ff,20),e.sort()):this.Ff=K(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,22):this.Ff=K(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=K(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,27):this.Ff=K(this.Ff,27)}}),this.hasAppearanceStream=!1};z(lt,ht);var ft=function(){lt.call(this),this.fontName="helvetica",this.combo=!1};z(ft,lt);var dt=function(){ft.call(this),this.combo=!0};z(dt,ft);var pt=function(){dt.call(this),this.edit=!0};z(pt,dt);var gt=function(){ht.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,15):this.Ff=K(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,16):this.Ff=K(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,17):this.Ff=K(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=K(this.Ff,26)}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(r).length){var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+D(t(r[e]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===e(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};z(gt,ht);var mt=function(){gt.call(this),this.pushButton=!0};z(mt,gt);var vt=function(){gt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};z(vt,gt);var bt=function(){var t,r;ht.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),i)r.push("/"+e+" ("+D(t(i[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===e(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Lt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};z(bt,ht),vt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},vt.prototype.createOption=function(t){var e=new bt;return e.Parent=this,e.optionName=t,this.Kids.push(e),At.call(this.scope,e),e};var yt=function(){gt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Lt.CheckBox.createAppearanceStream()};z(yt,gt);var wt=function(){ht.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,13):this.Ff=K(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,21):this.Ff=K(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=K(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,24):this.Ff=K(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,25):this.Ff=K(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=K(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};z(wt,ht);var Nt=function(){wt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(J(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,14):this.Ff=K(this.Ff,14)}}),this.password=!0};z(Nt,wt);var Lt={CheckBox:{createAppearanceStream:function(){return{N:{On:Lt.CheckBox.YesNormal},D:{On:Lt.CheckBox.YesPushDown,Off:Lt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=Q(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+T(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],a=Lt.internal.getHeight(t),o=Lt.internal.getWidth(t),s=Q(t,t.caption);return i.push("1 g"),i.push("0 0 "+T(o)+" "+T(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+T(o-1)+" "+T(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+T(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Lt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Lt.RadioButton.Circle.YesNormal,e.D[t]=Lt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Lt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Lt.internal.Bezier_C).toFixed(5)),o=Number((n*Lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.getWidth(t)<=Lt.internal.getHeight(t)?Lt.internal.getWidth(t)/4:Lt.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Lt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+U(Lt.internal.getWidth(t)/2)+" "+U(Lt.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Lt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Lt.RadioButton.Cross.YesNormal,e.D[t]=Lt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var r=[],n=Lt.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+T(Lt.internal.getWidth(t)-2)+" "+T(Lt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(T(n.x1.x)+" "+T(n.x1.y)+" m"),r.push(T(n.x2.x)+" "+T(n.x2.y)+" l"),r.push(T(n.x4.x)+" "+T(n.x4.y)+" m"),r.push(T(n.x3.x)+" "+T(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var r=Lt.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+T(Lt.internal.getWidth(t)-2)+" "+T(Lt.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(T(r.x1.x)+" "+T(r.x1.y)+" m"),n.push(T(r.x2.x)+" "+T(r.x2.y)+" l"),n.push(T(r.x4.x)+" "+T(r.x4.y)+" m"),n.push(T(r.x3.x)+" "+T(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+T(Lt.internal.getWidth(t))+" "+T(Lt.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};Lt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Lt.internal.getWidth(t),r=Lt.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},Lt.internal.getWidth=function(t){var r=0;return"object"===e(t)&&(r=H(t.Rect[2])),r},Lt.internal.getHeight=function(t){var r=0;return"object"===e(t)&&(r=H(t.Rect[3])),r};var At=E.addField=function(t){if(it(this,t),!(t instanceof ht))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};E.AcroFormChoiceField=lt,E.AcroFormListBox=ft,E.AcroFormComboBox=dt,E.AcroFormEditBox=pt,E.AcroFormButton=gt,E.AcroFormPushButton=mt,E.AcroFormRadioButton=vt,E.AcroFormCheckBox=yt,E.AcroFormTextField=wt,E.AcroFormPasswordField=Nt,E.AcroFormAppearance=Lt,E.AcroForm={ChoiceField:lt,ListBox:ft,ComboBox:dt,EditBox:pt,Button:gt,PushButton:mt,RadioButton:vt,CheckBox:yt,TextField:wt,PasswordField:Nt,Appearance:Lt},M.AcroForm={ChoiceField:lt,ListBox:ft,ComboBox:dt,EditBox:pt,Button:gt,PushButton:mt,RadioButton:vt,CheckBox:yt,TextField:wt,PasswordField:Nt,Appearance:Lt};var xt=M.AcroForm;function St(t){return t.reduce((function(t,e,r){return t[e]=r,t}),{})}!function(t){t.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,e){var i,a,o,s,c,u=r;if("RGBA"===(e=e||r)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(x(t))for(c in n)for(o=n[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t[a]){s=!1;break}if(!0===s){u=c;break}}else for(c in n)for(o=n[c],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t.charCodeAt(a)){s=!1;break}if(!0===s){u=c;break}}return u===r&&e!==r&&(u=e),u},a=function t(e){for(var r=this.internal.write,n=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,c=e.transparency.length;s<c;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(n({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u,objectId:e.objectId}),r("endobj"),"sMask"in e&&void 0!==e.sMask){var h="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,l={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:h,data:e.sMask};"filter"in e&&(l.filter=e.filter),t.call(this,l)}if(e.colorSpace===b.INDEXED){var f=this.internal.newObject();n({data:_(new Uint8Array(e.palette)),objectId:f}),r("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)a.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,r=this.internal.write;for(var n in e)r("/I"+(t=e[n]).index,t.objectId,"0","R")},u=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},h=function(){var t=this.internal.collections.addImage_images;return u.call(this),t},l=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(e){return"function"==typeof t["process"+e.toUpperCase()]},d=function(t){return"object"===e(t)&&1===t.nodeType},p=function(e,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var n=""+e.getAttribute("src");if(0===n.indexOf("data:image/"))return c(unescape(n).split("base64,").pop());var i=t.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var a;switch(r){case"PNG":a="image/png";break;case"WEBP":a="image/webp";break;case"JPEG":case"JPG":default:a="image/jpeg"}return c(e.toDataURL(a,1).split("base64,").pop())}},g=function(t){var e=this.internal.collections.addImage_images;if(e)for(var r in e)if(t===e[r].alias)return e[r]},m=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},v=function(t,e,r,n,i,a){var o=m.call(this,r,n,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=h.call(this);if(r=o[0],n=o[1],u[i.index]=i,a){a*=Math.PI/180;var l=Math.cos(a),f=Math.sin(a),d=function(t){return t.toFixed(4)},p=[d(l),d(f),d(-1*f),d(l),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,s(t),c(e+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(t),c(e+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(t){var e,r,n=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;else if(x(t))for(r=t.byteLength/2,e=0;e<r;e++)n=(n<<5)-n+t[e],n|=0;return n},N=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},L=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),r=null;if(2===e.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:e[1]})}return r},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var x=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},_=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=x(t)?t:new Uint8Array(t),n=0;n<r.length;n+=8192)e+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return e};t.addImage=function(){var t,n,i,a,o,s,c,h,l;if("number"==typeof arguments[1]?(n=r,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],c=arguments[5],h=arguments[6],l=arguments[7]):(n=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],h=arguments[7],l=arguments[8]),"object"===e(t=arguments[0])&&!d(t)&&"imageData"in t){var f=t;t=f.imageData,n=f.format||n||r,i=f.x||i||0,a=f.y||a||0,o=f.w||f.width||o,s=f.h||f.height||s,c=f.alias||c,h=f.compression||h,l=f.rotation||f.angle||l}var p=this.internal.getFilters();if(void 0===h&&-1!==p.indexOf("FlateEncode")&&(h="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var g=P.call(this,t,n,c,h);return v.call(this,i,a,o,s,g,l),this};var P=function(e,n,a,o){var s,c,u;if("string"==typeof e&&i(e)===r){e=unescape(e);var h=k(e,!1);(""!==h||void 0!==(h=t.loadFile(e,!0)))&&(e=h)}if(d(e)&&(e=p(e,n)),n=i(e,n),!f(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(u=a)||0===u.length)&&(a=function(t){return"string"==typeof t||x(t)?w(t):x(t.data)?w(t.data):null}(e)),(s=g.call(this,a))||(A()&&(e instanceof Uint8Array||"RGBA"===n||(c=e,e=S(e))),s=this["process"+n.toUpperCase()](e,l.call(this),a,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:y.NONE}(o),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},k=t.__addimage__.convertBase64ToBinaryString=function(t,e){var r;e="boolean"!=typeof e||e;var n,i="";if("string"==typeof t){n=null!==(r=L(t))?r.data:t;try{i=c(n)}catch(t){if(e)throw N(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(e){var n,a,o="";if(d(e)&&(e=p(e)),"string"==typeof e&&i(e)===r&&(""===(o=k(e,!1))&&(o=t.loadFile(e)||""),e=o),a=i(e),!f(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(!A()||e instanceof Uint8Array||(e=S(e)),!(n=this["process"+a.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=a,n}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};M.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,h=0;h<c.length&&!u;h++)switch((r=c[h]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var l=0;l<c.length;l++){r=c[l];var f=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(p.objId),v=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y)+"] ")+"/Contents ("+f(m(r.contents))+")",i+=" /Popup "+g.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+f(m(v))+") >>",p.content=i;var b=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+o(r.bounds.y)+"] ")+" /Parent "+b,r.open&&(i+=" /Open true"),i+=" >>",g.content=i,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y+r.bounds.h)+"] ";var y=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+f(d(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var w=this.annotations._nameMap[r.options.name];r.options.pageNumber=w.page,r.options.top=w.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+f(d(r.options.url))+") >>";else if(r.options.pageNumber){switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var N=o(r.options.top);r.options.left=r.options.left||0,void 0===r.options.zoom&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+N+" "+r.options.zoom+"]"}}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,r,n,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+r),h:s(e+n)},options:i,type:"link"})},t.textWithLink=function(t,e,r,n){var i=this.getTextWidth(t),a=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,r,n),r+=.2*a,"center"===n.align&&(e-=i/2),"right"===n.align&&(e-=i),this.link(e,r-a,i,a,n),i},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(M.API),
/**
   * @license
   * Copyright (c) 2017 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&a(t)&&4==e[t.charCodeAt(0)].length},l=t.__arabicParser__.resolveLigatures=function(t){var e=0,n=r,i="",a=0;for(e=0;e<t.length;e+=1)void 0!==n[t.charCodeAt(e)]?(a++,"number"==typeof(n=n[t.charCodeAt(e)])&&(i+=String.fromCharCode(n),n=r,a=0),e===t.length-1&&(n=r,i+=t.charAt(e-(a-1)),e-=a-1,a=0)):(n=r,i+=t.charAt(e-a),e-=a,a=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==n[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,r){return o(t)?!1===a(t)?-1:!u(t)||!o(e)&&!o(r)||!o(r)&&s(e)||s(t)&&!o(e)||s(t)&&c(e)||s(t)&&s(e)?0:h(t)&&o(e)&&!s(e)&&o(r)&&u(r)?3:s(t)||!o(r)?1:2:-1},d=function(t){var r=0,n=0,i=0,a="",s="",c="",u=(t=t||"").split("\\s+"),h=[];for(r=0;r<u.length;r+=1){for(h.push(""),n=0;n<u[r].length;n+=1)a=u[r][n],s=u[r][n-1],c=u[r][n+1],o(a)?(i=f(a,s,c),h[r]+=-1!==i?String.fromCharCode(e[a.charCodeAt(0)][i]):a):h[r]+=a;h[r]=l(h[r])}return h.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var n=0;for(r=[],n=0;n<e.length;n+=1)Array.isArray(e[n])?r.push([d(e[n][0]),e[n][1],e[n][2]]):r.push([d(e[n])]);t=r}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(M.API),
/** @license
   * jsPDF Autoprint Plugin
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(M.API),function(t){var r={left:0,top:0,bottom:0,right:0},n=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},r),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),a=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,c=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var h=e.maxWidth;h>0?"string"==typeof t?t=this.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,h))}),[])):t=Array.isArray(t)?t:[t];for(var l=0;l<t.length;l++)o<(c=this.getStringUnitWidth(t[l],{font:n})*r)&&(o=c);return 0!==o&&(s=t.length),{w:o/=a,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/a,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||r;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var e=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||r,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==e.lineNumber&&(e.lineNumber===t.lineNumber?(t.x=(e.x||0)+(e.width||0),t.y=e.y||0):e.y+e.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&c&&(this.printHeaderRow(t.lineNumber,!0),t.y+=c[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,h,l){if(i.call(this),!u)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},w={},N=[],L=[],A=(l=l||{}).autoSize||!1,x=!1!==l.printHeaders,S=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,_=l.margins||Object.assign({width:this.getPageWidth()},r),P="number"==typeof l.padding?l.padding:3,k=l.headerBackgroundColor||"#c8c8c8",F=l.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=x,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=F,this.setFontSize(S),null==h)v=m=Object.keys(u[0]),b=m.map((function(){return"left"}));else if(Array.isArray(h)&&"object"===e(h[0]))for(m=h.map((function(t){return t.name})),v=h.map((function(t){return t.prompt||t.name||""})),b=h.map((function(t){return t.align||"left"})),f=0;f<h.length;f+=1)w[h[f].name]=h[f].width*(19.049976/25.4);else Array.isArray(h)&&"string"==typeof h[0]&&(v=m=h,b=m.map((function(){return"left"})));if(A||Array.isArray(h)&&"string"==typeof h[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),N.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)N.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,N)+P+P,N=[]}if(x){var I={};for(f=0;f<m.length;f+=1)I[m[f]]={},I[m[f]].text=v[f],I[m[f]].align=b[f];var C=c.call(this,I,w);L=m.map((function(e){return new o(t,n,w[e],C,I[e].text,void 0,I[e].align)})),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var j=h.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<u.length;f+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:f,data:u[f]},this);var O=c.call(this,u[f],w);for(p=0;p<m.length;p+=1){var B=u[f][m[p]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:f,col:p,data:B},this),s.call(this,new o(t,n,w[m[p]],O,B,f+2,j[m[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var c=function(t,e){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(n){var i=t[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[n]-r-r)}),this).map((function(t){return this.getLineHeightFactor()*t.length*n/i+r+r}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,c.push(r)),r.lineNumber=t;var h=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(h)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),n=!1}}(M.API);var _t={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Pt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],kt=St(Pt),Ft=[100,200,300,400,500,600,700,800,900],It=St(Ft);function Ct(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(t){return _t[t=t||"normal"]?t:"normal"}(t.style),n=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(t){return"number"==typeof kt[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,r,n].join(" ")}}}function jt(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var Ot={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Mt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Et(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Ot,r.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=Ct(e[s])).family]&&(a.family=i[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[n]))throw new Error("Could not find a font-family for the rule '"+Mt(a)+"' and default family '"+n+"'.");if(o=function(t,e){if(e[t])return e[t];var r=kt[t],n=r<=kt.normal?-1:1,i=jt(e,Pt,r,n);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var r=_t[t],n=0;n<r.length;++n)if(e[r[n]])return e[r[n]];throw new Error("Could not find a matching font-style for "+t)}(a.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=It[t],n=jt(e,Ft,r,t<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+t);return n}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Mt(a)+"'.");return o}function qt(t){return t.trimLeft()}function Dt(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function Rt(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Tt=["times"];!function(t){var r,n,a,o,s,c,u,h,f,d=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new h,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new c,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new c,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),r=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,c=this.internal.Point,u=this.internal.Rectangle,h=this.internal.Matrix,f=new d}]);var p=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(t){isNaN(t)||(a=t)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),f.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(t){t instanceof d&&(f=t)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(t){f.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=g(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=g(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var h=null;function l(t,e){if(null===h){var r=function(t){var e=[];return Object.keys(t).forEach((function(r){t[r].forEach((function(t){var n=null;switch(t){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:t},e.push(n))}))})),e}(t.getFontList());h=function(t){for(var e={},r=0;r<t.length;++r){var n=Ct(t[r]),i=n.family,a=n.stretch,o=n.style,s=n.weight;e[i]=e[i]||{},e[i][a]=e[i][a]||{},e[i][a][o]=e[i][a][o]||{},e[i][a][o][s]=n}return e}(r.concat(e))}return h}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(t){h=null,p=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var r=e[1],n=(e[2],e[3]),i=e[4],a=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,r,n=[],i=t.trim();if(""===i)return Tt;if(i in Bt)return[Bt[i]];for(;""!==i;){switch(r=null,e=(i=qt(i)).charAt(0)){case'"':case"'":r=Dt(i.substring(1),e);break;default:r=Rt(i)}if(null===r)return Tt;if(n.push(r[0]),""!==(i=qt(r[1]))&&","!==i.charAt(0))return Tt;i=i.replace(/^,/,"")}return n}(a);if(this.fontFaces){var c=Et(l(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(c.ref.name,c.ref.style)}else{var u="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var h="",f={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<s.length;d++){if(void 0!==this.pdf.internal.getFont(s[d],u,{noFallback:!0,disableWarning:!0})){h=s[d];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[d],"bold",{noFallback:!0,disableWarning:!0}))h=s[d],u="bold";else if(void 0!==this.pdf.internal.getFont(s[d],"normal",{noFallback:!0,disableWarning:!0})){h=s[d],u="normal";break}}if(""===h)for(var p=0;p<s.length;p++)if(f[s[p]]){h=f[s[p]];break}h=""===h?"Times":h,this.pdf.setFont(h,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};p.prototype.setLineDash=function(t){this.lineDash=t},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){A.call(this,"fill",!1)},p.prototype.stroke=function(){A.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(t,e)},p.prototype.closePath=function(){var t=new c(0,0),r=0;for(r=this.path.length-1;-1!==r;r--)if("begin"===this.path[r].type&&"object"===e(this.path[r+1])&&"number"==typeof this.path[r+1].x){t=new c(this.path[r+1].x,this.path[r+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"===e(this.path[r+2])&&"number"==typeof this.path[r+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[r+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new c(t.x,t.y)},p.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(r.x,r.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,r,n){if(isNaN(r)||isNaN(n)||isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new c(r,n)),o=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:a.x,y:a.y}),this.ctx.lastPoint=new c(a.x,a.y)},p.prototype.bezierCurveTo=function(t,e,r,n,a,o){if(isNaN(a)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new c(a,o)),u=this.ctx.transform.applyToPoint(new c(t,e)),h=this.ctx.transform.applyToPoint(new c(r,n));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:h.x,y2:h.y,x:s.x,y:s.y}),this.ctx.lastPoint=new c(s.x,s.y)},p.prototype.arc=function(t,e,r,n,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(a))throw i.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new c(t,e));t=s.x,e=s.y;var u=this.ctx.transform.applyToPoint(new c(0,r)),h=this.ctx.transform.applyToPoint(new c(0,0));r=Math.sqrt(Math.pow(u.x-h.x,2)+Math.pow(u.y-h.y,2))}Math.abs(a-n)>=2*Math.PI&&(n=0,a=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:a,counterclockwise:o})},p.prototype.arcTo=function(t,e,r,n,i){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,n),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},p.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},p.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(t){var e,r,n,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,n=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),r=parseInt(a[2]),n=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new l(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,n=t.substring(3,4),n+=n):(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:e,g:r,b:n,a:i,style:t}},m=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw i.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!m.call(this)){var a=q(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:r,scale:o,angle:a,align:this.textAlign,maxWidth:n})}},p.prototype.strokeText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw i.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){n=isNaN(n)?void 0:n;var a=q(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:r,scale:o,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:n})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw i.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,n=e.internal.getFontSize(),a=e.getStringUnitWidth(t)*n/e.internal.scaleFactor,o=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new o({width:a*=Math.round(96*r/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new h(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.rotate=function(t){if(isNaN(t))throw i.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new h(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},p.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw i.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new h(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},p.prototype.transform=function(t,e,r,n,a,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(a)||isNaN(o))throw i.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new h(t,e,r,n,a,o);this.ctx.transform=this.ctx.transform.multiply(s)},p.prototype.setTransform=function(t,e,r,n,i,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new h(t,e,r,n,i,a)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(t,e,r,n,i,a,o,s,c){var l=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=c/i,f=l.width/n*s/n,d=l.height/i*c/i),void 0===a&&(a=e,o=r,e=0,r=0),void 0!==n&&void 0===s&&(s=n,c=i),void 0===n&&void 0===s&&(s=l.width,c=l.height);for(var m,v=this.ctx.transform.decompose(),w=q(v.rotate.shx),A=new h,S=(A=(A=(A=A.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new u(a-e*p,o-r*g,n*f,i*d)),_=y.call(this,S),P=[],k=0;k<_.length;k+=1)-1===P.indexOf(_[k])&&P.push(_[k]);if(L(P),this.autoPaging)for(var F=P[0],I=P[P.length-1],C=F;C<I+1;C++){this.pdf.setPage(C);var j=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],O=1===C?this.posY+this.margin[0]:this.margin[0],B=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===C?0:B+(C-2)*M;if(0!==this.ctx.clip_path.length){var D=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(m,this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=D}var R=JSON.parse(JSON.stringify(S));R=N([R],this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset)[0];var T=(C>F||C<I)&&b.call(this);T&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],j,M,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",R.x,R.y,R.w,R.h,null,null,w),T&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,w)};var y=function(t,e,r){var n=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":n.push(Math.floor((t.y+i)/r)+1);break;case"arc":n.push(Math.floor((t.y+i-t.radius)/r)+1),n.push(Math.floor((t.y+i+t.radius)/r)+1);break;case"qct":var a=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);n.push(Math.floor((a.y+i)/r)+1),n.push(Math.floor((a.y+a.h+i)/r)+1);break;case"bct":var o=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"rect":n.push(Math.floor((t.y+i)/r)+1),n.push(Math.floor((t.y+t.h+i)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)w.call(this);return n},w=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=a},N=function(t,e,r){for(var n=0;n<t.length;n++)switch(t[n].type){case"bct":t[n].x2+=e,t[n].y2+=r;case"qct":t[n].x1+=e,t[n].y1+=r;case"mt":case"lt":case"arc":default:t[n].x+=e,t[n].y+=r}return t},L=function(t){return t.sort((function(t,e){return t-e}))},A=function(t,e){for(var r,n,i=this.fillStyle,a=this.strokeStyle,o=this.lineCap,s=this.lineWidth,c=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,h=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<l.length;d++)if(void 0!==l[d].x)for(var p=y.call(this,l[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var m=0;m<f.length;m++)for(;this.pdf.internal.getNumberOfPages()<f[m];)w.call(this);if(L(f),this.autoPaging)for(var v=f[0],A=f[f.length-1],S=v;S<A+1;S++){this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=a,this.lineCap=o,this.lineWidth=c,this.lineJoin=u;var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],I=1===S?0:k+(S-2)*F;if(0!==this.ctx.clip_path.length){var C=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(r,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),x.call(this,t,!0),this.path=C}if(n=JSON.parse(JSON.stringify(h)),this.path=N(n,this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset),!1===e||0===S){var j=(S>v||S<A)&&b.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,F,null).clip().discardPath()),x.call(this,t,e),j&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=c,x.call(this,t,e),this.lineWidth=s;this.path=h},x=function(t,e){if(("stroke"!==t||e||!v.call(this))&&("stroke"===t||e||!m.call(this))){for(var r,n,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var c=i.length;if(!isNaN(a[o-1].x)&&(r=[s.x-a[o-1].x,s.y-a[o-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(r),i[c-1].abs.push(s);break}break;case"bct":r=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(r);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),h=a[o-1].y+2/3*(s.y1-a[o-1].y),l=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[u-a[o-1].x,h-a[o-1].y,l-a[o-1].x,f-a[o-1].y,d-a[o-1].x,p-a[o-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=e?null:"stroke"===t?"stroke":"fill";for(var g=0;g<i.length;g++){if(i[g].arc){for(var b=i[g].abs,y=0;y<b.length;y++){var w=b[y];"arc"===w.type?P.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e):j.call(this,w.x,w.y)}k.call(this,n),this.pdf.internal.out("h")}if(!i[g].arc&&!0!==i[g].close&&!0!==i[g].begin){var N=i[g].start.x,L=i[g].start.y;O.call(this,i[g].deltas,N,L)}}n&&k.call(this,n),e&&F.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;case"ideographic":return t;case"alphabetic":default:return t}},_=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(t,e,r,n,i,a,o,s){for(var c=M.call(this,r,n,i,a),u=0;u<c.length;u++){var h=c[u];0===u&&I.call(this,h.x1+t,h.y1+e),B.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?F.call(this):k.call(this,o)},k=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},F=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(t,e){this.pdf.internal.out(n(t)+" "+a(e)+" m")},C=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var r=this.pdf.getTextDimensions(t.text),n=S.call(this,t.y),i=_.call(this,n)-r.h,a=this.ctx.transform.applyToPoint(new c(t.x,n)),o=this.ctx.transform.decompose(),s=new h;s=(s=(s=s.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var l,f,d,p=this.ctx.transform.applyToRectangle(new u(t.x,n,r.w,r.h)),g=s.applyToRectangle(new u(t.x,i,r.w,r.h)),m=y.call(this,g),v=[],w=0;w<m.length;w+=1)-1===v.indexOf(m[w])&&v.push(m[w]);if(L(v),this.autoPaging)for(var A=v[0],P=v[v.length-1],k=A;k<P+1;k++){this.pdf.setPage(k);var F=1===k?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],C=this.pdf.internal.pageSize.height-this.margin[2],j=C-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],B=O-this.margin[3],M=1===k?0:I+(k-2)*j;if(0!==this.ctx.clip_path.length){var E=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=N(l,this.posX+this.margin[3],-1*M+F),x.call(this,"fill",!0),this.path=E}var q=N([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var D="text"!==this.autoPaging;if(D||q.y+q.h<=C){if(D||q.y>=F&&q.x<=O){var R=D?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||O-q.x)[0],T=N([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0],U=D&&(k>A||k<P)&&b.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],B,j,null).clip().discardPath()),this.pdf.text(R,T.x,T.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),U&&this.pdf.restoreGraphicsState()}}else q.y<C&&(this.ctx.prevPageLastElemOffset+=C-q.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,a.x+this.posX,a.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},j=function(t,e,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(t+r)+" "+a(e+i)+" l")},O=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},B=function(t,e,n,i,a,c,u,h){this.pdf.internal.out([r(o(n+t)),r(s(i+e)),r(o(a+t)),r(s(c+e)),r(o(u+t)),r(s(h+e)),"c"].join(" "))},M=function(t,e,r,n){for(var i=2*Math.PI,a=Math.PI/2;e>r;)e-=i;var o=Math.abs(r-e);o<i&&n&&(o=i-o);for(var s=[],c=n?-1:1,u=e;o>1e-5;){var h=u+c*Math.min(o,a);s.push(E.call(this,t,u,h)),o-=Math.abs(h-u),u=h}return s},E=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),a=t*Math.sin(n),o=i,s=-a,c=o*o+s*s,u=c+o*i+s*a,h=4/3*(Math.sqrt(2*c*u)-u)/(o*a-s*i),l=o-h*s,f=s+h*o,d=l,p=-f,g=n+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:l*m-f*v,y2:l*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(r),y4:t*Math.sin(r)}},q=function(t){return 180*t/Math.PI},D=function(t,e,r,n,i,a){var o=t+.5*(r-t),s=e+.5*(n-e),c=i+.5*(r-i),h=a+.5*(n-a),l=Math.min(t,i,o,c),f=Math.max(t,i,o,c),d=Math.min(e,a,s,h),p=Math.max(e,a,s,h);return new u(l,d,f-l,p-d)},R=function(t,e,r,n,i,a,o,s){var c,h,l,f,d,p,g,m,v,b,y,w,N,L,A=r-t,x=n-e,S=i-r,_=a-n,P=o-i,k=s-a;for(h=0;h<41;h++)v=(g=(l=t+(c=h/40)*A)+c*((d=r+c*S)-l))+c*(d+c*(i+c*P-d)-g),b=(m=(f=e+c*x)+c*((p=n+c*_)-f))+c*(p+c*(a+c*k-p)-m),0==h?(y=v,w=b,N=v,L=b):(y=Math.min(y,v),w=Math.min(w,b),N=Math.max(N,v),L=Math.max(L,b));return new u(Math.round(y),Math.round(w),Math.round(N-y),Math.round(L-w))},T=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,r=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(M.API);var Ut=Uint8Array,zt=Uint16Array,Ht=Uint32Array,Wt=new Ut([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vt=new Ut([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Gt=new Ut([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yt=function(t,e){for(var r=new zt(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];var i=new Ht(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return[r,i]},Jt=Yt(Wt,2),Xt=Jt[0],Kt=Jt[1];Xt[28]=258,Kt[258]=28;for(var Zt=Yt(Vt,0),$t=Zt[0],Qt=Zt[1],te=new zt(32768),ee=0;ee<32768;++ee){var re=(43690&ee)>>>1|(21845&ee)<<1;re=(61680&(re=(52428&re)>>>2|(13107&re)<<2))>>>4|(3855&re)<<4,te[ee]=((65280&re)>>>8|(255&re)<<8)>>>1}var ne=function(t,e,r){for(var n=t.length,i=0,a=new zt(e);i<n;++i)++a[t[i]-1];var o,s=new zt(e);for(i=0;i<e;++i)s[i]=s[i-1]+a[i-1]<<1;if(r){o=new zt(1<<e);var c=15-e;for(i=0;i<n;++i)if(t[i])for(var u=i<<4|t[i],h=e-t[i],l=s[t[i]-1]++<<h,f=l|(1<<h)-1;l<=f;++l)o[te[l]>>>c]=u}else for(o=new zt(n),i=0;i<n;++i)o[i]=te[s[t[i]-1]++]>>>15-t[i];return o},ie=new Ut(288);for(ee=0;ee<144;++ee)ie[ee]=8;for(ee=144;ee<256;++ee)ie[ee]=9;for(ee=256;ee<280;++ee)ie[ee]=7;for(ee=280;ee<288;++ee)ie[ee]=8;var ae=new Ut(32);for(ee=0;ee<32;++ee)ae[ee]=5;var oe=ne(ie,9,0),se=ne(ie,9,1),ce=ne(ae,5,0),ue=ne(ae,5,1),he=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},le=function(t,e,r){var n=e/8>>0;return(t[n]|t[n+1]<<8)>>>(7&e)&r},fe=function(t,e){var r=e/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&e)},de=function(t){return(t/8>>0)+(7&t&&1)},pe=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var n=new(t instanceof zt?zt:t instanceof Ht?Ht:Ut)(r-e);return n.set(t.subarray(e,r)),n},ge=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8},me=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},ve=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var i=r.length,a=r.slice();if(!i)return[new Ut(0),0];if(1==i){var o=new Ut(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(t,e){return t.f-e.f})),r.push({s:-1,f:25001});var s=r[0],c=r[1],u=0,h=1,l=2;for(r[0]={s:-1,f:s.f+c.f,l:s,r:c};h!=i-1;)s=r[r[u].f<r[l].f?u++:l++],c=r[u!=h&&r[u].f<r[l].f?u++:l++],r[h++]={s:-1,f:s.f+c.f,l:s,r:c};var f=a[0].s;for(n=1;n<i;++n)a[n].s>f&&(f=a[n].s);var d=new zt(f+1),p=be(r[h-1],d,0);if(p>e){n=0;var g=0,m=p-e,v=1<<m;for(a.sort((function(t,e){return d[e.s]-d[t.s]||t.f-e.f}));n<i;++n){var b=a[n].s;if(!(d[b]>e))break;g+=v-(1<<p-d[b]),d[b]=e}for(g>>>=m;g>0;){var y=a[n].s;d[y]<e?g-=1<<e-d[y]++-1:++n}for(;n>=0&&g;--n){var w=a[n].s;d[w]==e&&(--d[w],++g)}p=e}return[new Ut(d),p]},be=function(t,e,r){return-1==t.s?Math.max(be(t.l,e,r+1),be(t.r,e,r+1)):e[t.s]=r},ye=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new zt(++e),n=0,i=t[0],a=1,o=function(t){r[n++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=t[s]}return[r.subarray(0,n),e]},we=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},Ne=function(t,e,r){var n=r.length,i=de(e+2);t[i]=255&n,t[i+1]=n>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<n;++a)t[i+a+4]=r[a];return 8*(i+4+n)},Le=function(t,e,r,n,i,a,o,s,c,u,h){ge(e,h++,r),++i[256];for(var l=ve(i,15),f=l[0],d=l[1],p=ve(a,15),g=p[0],m=p[1],v=ye(f),b=v[0],y=v[1],w=ye(g),N=w[0],L=w[1],A=new zt(19),x=0;x<b.length;++x)A[31&b[x]]++;for(x=0;x<N.length;++x)A[31&N[x]]++;for(var S=ve(A,7),_=S[0],P=S[1],k=19;k>4&&!_[Gt[k-1]];--k);var F,I,C,j,O=u+5<<3,B=we(i,ie)+we(a,ae)+o,M=we(i,f)+we(a,g)+o+14+3*k+we(A,_)+(2*A[16]+3*A[17]+7*A[18]);if(O<=B&&O<=M)return Ne(e,h,t.subarray(c,c+u));if(ge(e,h,1+(M<B)),h+=2,M<B){F=ne(f,d,0),I=f,C=ne(g,m,0),j=g;var E=ne(_,P,0);ge(e,h,y-257),ge(e,h+5,L-1),ge(e,h+10,k-4),h+=14;for(x=0;x<k;++x)ge(e,h+3*x,_[Gt[x]]);h+=3*k;for(var q=[b,N],D=0;D<2;++D){var R=q[D];for(x=0;x<R.length;++x){var T=31&R[x];ge(e,h,E[T]),h+=_[T],T>15&&(ge(e,h,R[x]>>>5&127),h+=R[x]>>>12)}}}else F=oe,I=ie,C=ce,j=ae;for(x=0;x<s;++x)if(n[x]>255){T=n[x]>>>18&31;me(e,h,F[T+257]),h+=I[T+257],T>7&&(ge(e,h,n[x]>>>23&31),h+=Wt[T]);var U=31&n[x];me(e,h,C[U]),h+=j[U],U>3&&(me(e,h,n[x]>>>5&8191),h+=Vt[U])}else me(e,h,F[n[x]]),h+=I[n[x]];return me(e,h,F[256]),h+I[256]},Ae=new Ht([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xe=new Ut(0),Se=function(t,e,r,n,i){return function(t,e,r,n,i,a){var o=t.length,s=new Ut(n+o+5*(1+Math.floor(o/7e3))+i),c=s.subarray(n,s.length-i),u=0;if(!e||o<8)for(var h=0;h<=o;h+=65535){var l=h+65535;l<o?u=Ne(c,u,t.subarray(h,l)):(c[h]=a,u=Ne(c,u,t.subarray(h,o)))}else{for(var f=Ae[e-1],d=f>>>13,p=8191&f,g=(1<<r)-1,m=new zt(32768),v=new zt(g+1),b=Math.ceil(r/3),y=2*b,w=function(e){return(t[e]^t[e+1]<<b^t[e+2]<<y)&g},N=new Ht(25e3),L=new zt(288),A=new zt(32),x=0,S=0,_=(h=0,0),P=0,k=0;h<o;++h){var F=w(h),I=32767&h,C=v[F];if(m[I]=C,v[F]=I,P<=h){var j=o-h;if((x>7e3||_>24576)&&j>423){u=Le(t,c,0,N,L,A,S,_,k,h-k,u),_=x=S=0,k=h;for(var O=0;O<286;++O)L[O]=0;for(O=0;O<30;++O)A[O]=0}var B=2,M=0,E=p,q=I-C&32767;if(j>2&&F==w(h-q))for(var D=Math.min(d,j)-1,R=Math.min(32767,h),T=Math.min(258,j);q<=R&&--E&&I!=C;){if(t[h+B]==t[h+B-q]){for(var U=0;U<T&&t[h+U]==t[h+U-q];++U);if(U>B){if(B=U,M=q,U>D)break;var z=Math.min(q,U-2),H=0;for(O=0;O<z;++O){var W=h-q+O+32768&32767,V=W-m[W]+32768&32767;V>H&&(H=V,C=W)}}}q+=(I=C)-(C=m[I])+32768&32767}if(M){N[_++]=268435456|Kt[B]<<18|Qt[M];var G=31&Kt[B],Y=31&Qt[M];S+=Wt[G]+Vt[Y],++L[257+G],++A[Y],P=h+B,++x}else N[_++]=t[h],++L[t[h]]}}u=Le(t,c,a,N,L,A,S,_,k,h-k,u),a||(u=Ne(c,u,xe))}return pe(s,0,n+de(u)+i)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,n,!i)};function _e(t,e){void 0===e&&(e={});var r=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,a=r.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)i+=n+=r[o];n%=65521,i%=65521}t=n,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();r.p(t);var n=Se(t,e,2,4);return function(t,e){var r=e.level,n=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=n<<6|(n?32-2*n:1)}(n,e),function(t,e,r){for(;r;++e)t[e]=r,r>>>=8}(n,n.length-4,r.d()),n}function Pe(t,e){return function(t,e,r){var n=t.length,i=!e||r,a=!r||r.i;r||(r={}),e||(e=new Ut(3*n));var o=function(t){var r=e.length;if(t>r){var n=new Ut(Math.max(2*r,t));n.set(e),e=n}},s=r.f||0,c=r.p||0,u=r.b||0,h=r.l,l=r.d,f=r.m,d=r.n,p=8*n;do{if(!h){r.f=s=le(t,c,1);var g=le(t,c+1,3);if(c+=3,!g){var m=t[(P=de(c)+4)-4]|t[P-3]<<8,v=P+m;if(v>n){if(a)throw"unexpected EOF";break}i&&o(u+m),e.set(t.subarray(P,v),u),r.b=u+=m,r.p=c=8*v;continue}if(1==g)h=se,l=ue,f=9,d=5;else{if(2!=g)throw"invalid block type";var b=le(t,c,31)+257,y=le(t,c+10,15)+4,w=b+le(t,c+5,31)+1;c+=14;for(var N=new Ut(w),L=new Ut(19),A=0;A<y;++A)L[Gt[A]]=le(t,c+3*A,7);c+=3*y;var x=he(L),S=(1<<x)-1;if(!a&&c+w*(x+7)>p)break;var _=ne(L,x,1);for(A=0;A<w;){var P,k=_[le(t,c,S)];if(c+=15&k,(P=k>>>4)<16)N[A++]=P;else{var F=0,I=0;for(16==P?(I=3+le(t,c,3),c+=2,F=N[A-1]):17==P?(I=3+le(t,c,7),c+=3):18==P&&(I=11+le(t,c,127),c+=7);I--;)N[A++]=F}}var C=N.subarray(0,b),j=N.subarray(b);f=he(C),d=he(j),h=ne(C,f,1),l=ne(j,d,1)}if(c>p)throw"unexpected EOF"}i&&o(u+131072);for(var O=(1<<f)-1,B=(1<<d)-1,M=f+d+18;a||c+M<p;){var E=(F=h[fe(t,c)&O])>>>4;if((c+=15&F)>p)throw"unexpected EOF";if(!F)throw"invalid length/literal";if(E<256)e[u++]=E;else{if(256==E){h=null;break}var q=E-254;if(E>264){var D=Wt[A=E-257];q=le(t,c,(1<<D)-1)+Xt[A],c+=D}var R=l[fe(t,c)&B],T=R>>>4;if(!R)throw"invalid distance";c+=15&R;j=$t[T];if(T>3){D=Vt[T];j+=fe(t,c)&(1<<D)-1,c+=D}if(c>p)throw"unexpected EOF";i&&o(u+131072);for(var U=u+q;u<U;u+=4)e[u]=e[u-j],e[u+1]=e[u+1-j],e[u+2]=e[u+2-j],e[u+3]=e[u+3-j];u=U}}r.l=h,r.p=c,r.b=u,h&&(s=1,r.m=f,r.d=l,r.n=d)}while(!s);return u==e.length?e:pe(e,0,u)}((function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),e)}
/**
   * @license
   * jsPDF filters PlugIn
   * Copyright (c) 2014 Aras Abbasi
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */!function(t){var e=function(t){var e,r,n,i,a,o,s,c,u,h;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(a=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(o=(a=((a=((a=((a=(a-(h=a%85))/85)-(u=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,r.push(o+33,s+33,c+33,u+33,h+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},r=function(t){var e,r,n,i,a,o=String,s="length",c=255,u="charCodeAt",h="slice",l="replace";for(t[h](-2),t=t[h](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],i=0,a=(t+=e="uuuuu"[h](t[s]%5||5))[s];a>i;i+=5)r=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),n.push(c&r>>24,c&r>>16,c&r>>8,c&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[s]),o.fromCharCode.apply(o,n)},n=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n<t.length;n+=2)r+=String.fromCharCode("0x"+(t[n]+t[n+1]));return r},i=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return t=(e=_e(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,a){var o=0,s=t||"",c=[];for("string"==typeof(a=a||[])&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":s=r(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=n(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(M.API),
/**
   * @license
   * jsPDF fileloading PlugIn
   * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){t.loadFile=function(t,e,r){return function(t,e,r){e=!1!==e,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(t,e,r){var n=new XMLHttpRequest,i=0,a=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;i<e;i+=1)r.push(n(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){200===n.status?r(a(this.responseText)):r(void 0)}),n.send(null),e&&200===n.status)return a(n.responseText)}(t,e,r)}catch(t){}return n}(t,e,r)},t.loadImageFile=t.loadFile}(M.API),function(n){function i(){return(r.html2canvasV1?Promise.resolve(r.html2canvasV1):Promise.reject(new Error("Could not load html2canvas"))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function a(){return(r.DOMPurify?Promise.resolve(r.DOMPurify):Promise.reject(new Error("Could not load dompurify"))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var o=function(t){var r=e(t);return"undefined"===r?"undefined":"string"===r||t instanceof String?"string":"number"===r||t instanceof Number?"number":"function"===r||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===r?"object":"unknown"},s=function(t,e){var r=document.createElement(t);for(var n in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[n]=e.style[n];return r},c=function t(e){var r=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),n=t.convert(Promise.resolve(),r);return n=(n=n.setProgress(1,t,1,[t])).set(e)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(t,e){return t.__proto__=e||c.prototype,t},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},c.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(a).then((function(e){return this.set({src:s("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},c.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,r){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(t(i,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",(function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft}),!0)),n}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(s("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},c.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(i).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(i).then((function(t){var e=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:n,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var a=0;a<r.length;++a){var o=r[a],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t(this.prop.container,i)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},c.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},c.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},c.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},c.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},c.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in c.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},c.prototype.get=function(t,e){return this.then((function(){var r=t in c.template.prop?this.prop[t]:this.opt[t];return e?e(r):r}))},c.prototype.setMargin=function(t){return this.then((function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},c.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||M.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},c.prototype.setProgress=function(t,e,r,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(t,e,r,n){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},c.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,(function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return r.updateProgress(null,t),e})).then(t,e).then((function(t){return r.updateProgress(1),t}))}))},c.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then;t&&(t=t.bind(this)),e&&(e=e.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:c.convert(Object.assign({},this),Promise.prototype),i=r.call(n,t,e);return c.convert(i,this.__proto__)},c.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},c.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},c.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return c.convert(e,this)},c.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},c.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,M.getPageSize=function(t,r,n){if("object"===e(t)){var i=t;t=i.orientation,r=i.unit||r,n=i.format||n}r=r||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var a,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(r){case"pt":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+r}var c,u=0,h=0;if(s.hasOwnProperty(o))u=s[o][1]/a,h=s[o][0]/a;else try{u=n[1],h=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",h>u&&(c=h,h=u,u=c);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>h&&(c=h,h=u,u=c)}return{width:h,height:u,unit:r,k:a,orientation:t}},n.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Ct):null;var r=new c(e);return e.worker?r:r.from(t).doCallback()}}(M.API),
/**
   * @license
   * ====================================================================
   * Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
function(t){var e,r,n;t.addJS=function(t){return n=t,this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==e&&void 0!==r&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")})),this}}(M.API),
/**
   * @license
   * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e;t.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],o=r.exec(a);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var h=t.internal.newObject();u.push(h);var l=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();t.internal.write("<< /Names [ ");for(i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<e.children.length;n++){var i=e.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}])}(M.API),
/**
   * @license
   *
   * Licensed under the MIT License.
   * http://opensource.org/licenses/mit-license
   */
function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,r,n,i,a,o){var s,c=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var r,n=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=n,-1!==e.indexOf(t.charCodeAt(o+1))){r=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),a={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:r,numcomponents:t.charCodeAt(o+9)};break}n=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return a}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:c,index:r,alias:n}}return u}}(M.API);var ke,Fe,Ie,Ce,je,Oe=function(){var t,e,n;function i(t){var e,r,n,i,a,o,s,c,u,h,l,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},a=this.readUInt16(),i=this.readUInt16()||100,o.delay=1e3*a/i,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((h=n-this.transparency.indexed.length)>0)for(d=0;0<=h?d<h:d>h;0<=h?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(l=this.read(e)).indexOf(0),c=String.fromCharCode.apply(String,l.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,l.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(this.data[this.pos++]);return r},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*e),n=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(a,o,s,c){var u,h,l,f,d,p,g,m,v,b,y,w,N,L,A,x,S,_,P,k,F,I=Math.ceil((i.width-a)/s),C=Math.ceil((i.height-o)/c),j=i.width==I&&i.height==C;for(L=e*I,w=j?r:new Uint8Array(L*C),p=t.length,N=0,h=0;N<C&&n<p;){switch(t[n++]){case 0:for(f=S=0;S<L;f=S+=1)w[h++]=t[n++];break;case 1:for(f=_=0;_<L;f=_+=1)u=t[n++],d=f<e?0:w[h-e],w[h++]=(u+d)%256;break;case 2:for(f=P=0;P<L;f=P+=1)u=t[n++],l=(f-f%e)/e,A=N&&w[(N-1)*L+l*e+f%e],w[h++]=(A+u)%256;break;case 3:for(f=k=0;k<L;f=k+=1)u=t[n++],l=(f-f%e)/e,d=f<e?0:w[h-e],A=N&&w[(N-1)*L+l*e+f%e],w[h++]=(u+Math.floor((d+A)/2))%256;break;case 4:for(f=F=0;F<L;f=F+=1)u=t[n++],l=(f-f%e)/e,d=f<e?0:w[h-e],0===N?A=x=0:(A=w[(N-1)*L+l*e+f%e],x=l&&w[(N-1)*L+(l-1)*e+f%e]),g=d+A-x,m=Math.abs(g-d),b=Math.abs(g-A),y=Math.abs(g-x),v=m<=b&&m<=y?d:b<=y?A:x,w[h++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!j){var O=((o+N*c)*i.width+a)*e,B=N*L;for(f=0;f<I;f+=1){for(var M=0;M<e;M+=1)r[O++]=w[B++];O+=(s-1)*e}}N++}}return t=Pe(t),1==i.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),r},i.prototype.decodePalette=function(){var t,e,r,n,i,a,o,s,c;for(r=this.palette,a=this.transparency.indexed||[],i=new Uint8Array((a.length||0)+r.length),n=0,t=0,e=o=0,s=r.length;o<s;e=o+=3)i[n++]=r[e],i[n++]=r[e+1],i[n++]=r[e+2],i[n++]=null!=(c=a[t++])?c:255;return i},i.prototype.copyToImageData=function(t,e){var r,n,i,a,o,s,c,u,h,l,f;if(n=this.colors,h=null,r=this.hasAlphaChannel,this.palette.length&&(h=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),n=4,r=!0),u=(i=t.data||t).length,o=h||e,a=s=0,1===n)for(;a<u;)c=h?4*e[a/4]:s,l=o[c++],i[a++]=l,i[a++]=l,i[a++]=l,i[a++]=r?o[c++]:255,s=c;else for(;a<u;)c=h?4*e[a/4]:s,i[a++]=o[c++],i[a++]=o[c++],i[a++]=o[c++],i[a++]=r?o[c++]:255,s=c},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var a=function(){if("[object Window]"===Object.prototype.toString.call(r)){try{e=r.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return a(),t=function(t){var r;if(!0===a())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var r,n,i,a,o,s,c,u;if(this.animation){for(u=[],n=o=0,s=(c=this.animation.frames).length;o<s;n=++o)r=c[n],i=e.createImageData(r.width,r.height),a=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(i,a),r.imageData=i,u.push(r.image=t(i));return u}},i.prototype.renderFrame=function(t,e){var r,n,i;return r=(n=this.animation.frames)[e],i=n[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===r.blendOp&&t.clearRect(r.xOffset,r.yOffset,r.width,r.height),t.drawImage(r.image,r.xOffset,r.yOffset)},i.prototype.animate=function(t){var e,r,n,i,a,o,s=this;return r=0,o=this.animation,i=o.numFrames,n=o.frames,a=o.numPlays,(e=function(){var o,c;if(o=r++%i,c=n[o],s.renderFrame(t,o),i>1&&r/i<a)return s.animation._timeout=setTimeout(e,c.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,r;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(r=e.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),e.putImageData(r,0,0))},i}();
/**
   * @license
   *
   * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
   *
   * Permission is hereby granted, free of charge, to any person obtaining
   * a copy of this software and associated documentation files (the
   * "Software"), to deal in the Software without restriction, including
   * without limitation the rights to use, copy, modify, merge, publish,
   * distribute, sublicense, and/or sell copies of the Software, and to
   * permit persons to whom the Software is furnished to do so, subject to
   * the following conditions:
   *
   * The above copyright notice and this permission notice shall be
   * included in all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
   * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
   * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   * ====================================================================
   */
/**
   * @license
   * (c) Dean McNamee <dean@gmail.com>, 2013.
   *
   * https://github.com/deanm/omggif
   *
   * Permission is hereby granted, free of charge, to any person obtaining a copy
   * of this software and associated documentation files (the "Software"), to
   * deal in the Software without restriction, including without limitation the
   * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   * sell copies of the Software, and to permit persons to whom the Software is
   * furnished to do so, subject to the following conditions:
   *
   * The above copyright notice and this permission notice shall be included in
   * all copies or substantial portions of the Software.
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
   * IN THE SOFTWARE.
   *
   * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
   * including animation and compression.  It does not rely on any specific
   * underlying system, so should run in the browser, Node, or Plask.
   */
function Be(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],a=i>>7,o=1<<(7&i)+1;t[e++];t[e++];var s=null,c=null;a&&(s=e,c=o,e+=3*o);var u=!0,h=[],l=0,f=null,d=0,p=null;for(this.width=r,this.height=n;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];l=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],N=w>>6&1,L=1<<(7&w)+1,A=s,x=c,S=!1;if(w>>7){S=!0;A=e,x=L,e+=3*L}var _=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}h.push({x:m,y:v,width:b,height:y,has_local_palette:S,palette_offset:A,palette_size:x,data_offset:_,data_length:e-_,transparent_index:f,interlaced:!!N,delay:l,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=h.length)throw new Error("Frame index out of range.");return h[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Me(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,h=r-u,l=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*h;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===l&&(l=u,(p+=g)>=d&&(g=4*h+4*r*(m-1),p=f+(u+h)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],N=t[s+3*y+1],L=t[s+3*y+2];n[p++]=L,n[p++]=N,n[p++]=w,n[p++]=255}--l}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Me(t,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,h=r-u,l=u,f=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=f,g=4*h;!0===i.interlaced&&(g+=4*r*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===l&&(l=u,(p+=g)>=d&&(g=4*h+4*r*(m-1),p=f+(u+h)*(m<<1),m>>=1)),y===c)p+=4;else{var w=t[s+3*y],N=t[s+3*y+1],L=t[s+3*y+2];n[p++]=w,n[p++]=N,n[p++]=L,n[p++]=255}--l}}}function Me(t,e,r,n){for(var a=t[e++],o=1<<a,s=o+1,c=s+1,u=a+1,h=(1<<u)-1,l=0,f=0,d=0,p=t[e++],g=new Int32Array(4096),m=null;;){for(;l<16&&0!==p;)f|=t[e++]<<l,l+=8,1===p?p=t[e++]:--p;if(l<u)break;var v=f&h;if(f>>=u,l-=u,v!==o){if(v===s)break;for(var b=v<c?v:m,y=0,w=b;w>o;)w=g[w]>>8,++y;var N=w;if(d+y+(b!==v?1:0)>n)return void i.log("Warning, gif stream longer than expected.");r[d++]=N;var L=d+=y;for(b!==v&&(r[d++]=N),w=b;y--;)w=g[w],r[--L]=255&w,w>>=8;null!==m&&c<4096&&(g[c++]=m<<8|N,c>=h+1&&u<12&&(++u,h=h<<1|1)),m=v}else c=s+1,h=(1<<(u=a+1))-1,m=null}return d!==n&&i.log("Warning, gif stream shorter than expected."),r}
/**
   * @license
    Copyright (c) 2008, Adobe Systems Incorporated
    All rights reserved.

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

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

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

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

            if("object"===typeof module&&module.exports){module.exports=Flexmonster;}
        
window["flexmonsterpivottablekey"]="Z7KR-XC9F4F-014N5M-593D52";
// SIG // Begin signature block
// SIG // MIIhaAYJKoZIhvcNAQcCoIIhWTCCIVUCAQExDzANBglg
// SIG // hkgBZQMEAgEFADB3BgorBgEEAYI3AgEEoGkwZzAyBgor
// SIG // BgEEAYI3AgEeMCQCAQEEEBDgyQbOONQRoqMAEEvTUJAC
// SIG // AQACAQACAQACAQACAQAwMTANBglghkgBZQMEAgEFAAQg
// SIG // laSTfbvIGoh0+bq5FZ0jR4YjtBerOJIW+HGETQaAvmag
// 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+RZrMYIZEzCCGQ8CAQEw
// SIG // gY8wezELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFz
// SIG // MRAwDgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wg
// SIG // Q29ycDE3MDUGA1UEAwwuU1NMLmNvbSBFViBDb2RlIFNp
// SIG // Z25pbmcgSW50ZXJtZWRpYXRlIENBIEVDQyBSMgIQITVH
// SIG // a3Kg1pVTo5cnhxh3PjANBglghkgBZQMEAgEFAKB8MBAG
// SIG // CisGAQQBgjcCAQwxAjAAMBkGCSqGSIb3DQEJAzEMBgor
// SIG // BgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAMBgorBgEE
// SIG // AYI3AgEVMC8GCSqGSIb3DQEJBDEiBCAVYmCQTQ+YxVMd
// SIG // X6gtfsXzPn04P6Za7JeNSBUI7JQasDALBgcqhkjOPQIB
// SIG // BQAERzBFAiBxLmGhegW906Y8rzo4Qa4t4Jkyj2THHSHm
// SIG // HnHzdDVruAIhALvyN8GJzEIHv1AEND0zi8GT4Dgrt1pq
// SIG // VtUZqigW/mjjoYIXkzCCF48GCisGAQQBgjcDAwExghd/
// SIG // MIIXewYJKoZIhvcNAQcCoIIXbDCCF2gCAQMxDTALBglg
// SIG // hkgBZQMEAgEwdwYLKoZIhvcNAQkQAQSgaARmMGQCAQEG
// SIG // DCsGAQQBgqkwAQMGATAxMA0GCWCGSAFlAwQCAQUABCBV
// SIG // f60FQ9S0oKM6TsYmBdWQbBLzIaHj5E9eLKgVzGDhnAII
// SIG // ZmMm991xnuoYDzIwMjIwNDA0MTIzOTU1WjADAgEBoIIT
// SIG // PDCCBdgwggTAoAMCAQICEQDkJwSV9oyR1tDse0lOpN8c
// SIG // MA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlBMMSIw
// SIG // IAYDVQQKExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEu
// SIG // MScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlvbiBB
// SIG // dXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVk
// SIG // IE5ldHdvcmsgQ0EwHhcNMTgwOTExMDkyNjQ3WhcNMjMw
// SIG // OTExMDkyNjQ3WjB8MQswCQYDVQQGEwJVUzEOMAwGA1UE
// SIG // CAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xGDAWBgNV
// SIG // BAoMD1NTTCBDb3Jwb3JhdGlvbjExMC8GA1UEAwwoU1NM
// SIG // LmNvbSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5
// SIG // IFJTQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
// SIG // ggIBAPkP3aMrfcvQKv7sZ4Wm5y4bunfh4/WvpOz6Sl2R
// SIG // xFdHaxh3a3by/ZPkPQ/CFp4LZsNWlJ4Xg4XOVu/yFv0A
// SIG // YvUiCVToZRdOQbngT0aXqhvIuG5iXmmxX9sqAn78bMrz
// SIG // Qdjt0Oj8P2FI7bADFB0QDksZ4LtO7IZl/zbzXmcCC52G
// SIG // VWH9ejjt/uIZALdvoVBidXQ8oPrIJZK0bnoix/geoeOy
// SIG // 3ZExqysdBP+lSgQ36YWkMyv94tZVNHwZpEpox7Ko07fK
// SIG // oZOI68GXvIz5HdkihCR0xwQ9aqkpk8zruFvh/l8lqjRY
// SIG // yMEjVJ0bmBHDOJx+PYZspQ9AhnwC9FwCTyjLrnGfDzrI
// SIG // M/4RJTXq/LrFYD3ZfBjVsqnTdXgDciLKOsMf7yzlLqn6
// SIG // niy2UUb9rwPW6mBo6oUWNmuF6R7As93EJNyAKoFBbZQ+
// SIG // yODJgUEAnl6/f8UImKIYLEJAs/lvOCdLToD0PYFH4Ih8
// SIG // 6hzOtXVcUS4cK38acijnALXRdMbX5J+tB5O2UzU1/Dfk
// SIG // w/ZdFr4hc96SCvigY2q8lpJqPvi8ZVWb3vUNiSYE/CUa
// SIG // piVpy8JtynziWV+XrOvvLsi81xtZPCvM8hnIk2snYxnP
// SIG // /Okm+Mpxm3+T/jRnhE6Z6/yzeAkzcLpmpnbtG3PrGqUN
// SIG // xCITIJRWCk4sbE6x/c+cCbqiM+2HAgMBAAGjggFRMIIB
// SIG // TTASBgNVHRMBAf8ECDAGAQH/AgECMB0GA1UdDgQWBBTd
// SIG // BAkHovV6fVJTEpKV7jiAJQ2mWTAfBgNVHSMEGDAWgBQI
// SIG // ds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMC
// SIG // AQYwNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL3NzbGNv
// SIG // bS5jcmwuY2VydHVtLnBsL2N0bmNhLmNybDBzBggrBgEF
// SIG // BQcBAQRnMGUwKQYIKwYBBQUHMAGGHWh0dHA6Ly9zc2xj
// SIG // b20ub2NzcC1jZXJ0dW0uY29tMDgGCCsGAQUFBzAChixo
// SIG // dHRwOi8vc3NsY29tLnJlcG9zaXRvcnkuY2VydHVtLnBs
// SIG // L2N0bmNhLmNlcjA6BgNVHSAEMzAxMC8GBFUdIAAwJzAl
// SIG // BggrBgEFBQcCARYZaHR0cHM6Ly93d3cuY2VydHVtLnBs
// SIG // L0NQUzANBgkqhkiG9w0BAQsFAAOCAQEAH5WaI1TuhcLz
// SIG // 1G+56QSPRn8s9zLAp0OsBwDt4KlFLf0X4e0AQMivmKz1
// SIG // wBmtG6CXMEBs7Fv7o5NOjIliG3zwOl+nQs9YynVlnCJM
// SIG // v3Z7mJOcFYMzsQ7cUTiHfJWcEmmUHgB4dH7cwAZ3unAt
// SIG // hyzXaJ3juoWtSfOPZLQVBoOSxpekQJOLrfFnlLS5WmdU
// SIG // PKgb2QXP5KT5iBIABoglhdRe7vOTV9aB+Cyu9/VRSKu2
// SIG // Yjp52+wu8j8UVjrI2cukok8lqNGbqy0wIFAHGm/x8ZQd
// SIG // OYNj6B/9SdDoHUayRoImvZyd4aJoQUhRbnr8NZb0VNK8
// SIG // K0TlR9d3gqVKq1+XM6skETCCBlwwggREoAMCAQICEF8c
// SIG // vIxcPl9vJP06T+SI1igwDQYJKoZIhvcNAQELBQAwczEL
// SIG // MAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRAwDgYD
// SIG // VQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wgQ29ycDEv
// SIG // MC0GA1UEAwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcgSXNz
// SIG // dWluZyBSU0EgQ0EgUjEwHhcNMjEwOTEwMTYzNTIwWhcN
// SIG // MzEwOTA4MTYzNTE5WjBrMQswCQYDVQQGEwJVUzEOMAwG
// SIG // A1UECAwFVGV4YXMxEDAOBgNVBAcMB0hvdXN0b24xETAP
// SIG // BgNVBAoMCFNTTCBDb3JwMScwJQYDVQQDDB5TU0wuY29t
// SIG // IFRpbWVzdGFtcGluZyBVbml0IDIwMjEwggGiMA0GCSqG
// SIG // SIb3DQEBAQUAA4IBjwAwggGKAoIBgQDcVbFyaxvWgahC
// SIG // U7M9W4tNsuRlu5qG73r4I3Y727z0zdf0SB/9bKeH+Qtb
// SIG // dnEDYqlWSJDEhbr4MQSpC+UlVFl2sY424uBq5Cv6H9Cm
// SIG // DuhkHfGcF80ewBYYPCM5AOeFi+vOP62w+0LwzdsmWXal
// SIG // uNRihNZYUAdnpTSXFPpPD7MxhhIAgqSWlWzhShGfLksD
// SIG // 8A6FVaMU8I6CQuznuEZM93921vjNlMyHteEDRyWTl21T
// SIG // li0SiS29AE/ibgvXzH2i/EypjlYyxlxNHdAIPGB1kUJH
// SIG // kULWX23GaqzH8qokHLE6wq8ELwm3lb16bGMxBHr6b1Y3
// SIG // QRpzlPcby7BiIvvT9aSCQwz1kPkKDZ9i0rIriGPhS+aa
// SIG // fbD7EJvP/NDhqTaPxK3bgaStlpD0oOpv/TMxQWu2J8mi
// SIG // q11vHNMcmbTnJF0gZhbl3jtZfqRjd7cErnQey8ILEL4a
// SIG // 3PtmRfQuKqW69zQgHiqqcXNgphwjni9XXEYjw4LzpS1N
// SIG // MbFiJGQJ94hSDi0CAwEAAaOCAXIwggFuMB8GA1UdIwQY
// SIG // MBaAFAydECWOmqcbmYdDzwh+4b2BkPTPMHMGCCsGAQUF
// SIG // BwEBBGcwZTBBBggrBgEFBQcwAoY1aHR0cDovL2NlcnQu
// SIG // c3NsLmNvbS9TU0wuY29tLXRpbWVTdGFtcGluZy1JLVJT
// SIG // QS1SMS5jZXIwIAYIKwYBBQUHMAGGFGh0dHA6Ly9vY3Nw
// SIG // cy5zc2wuY29tMEcGA1UdIARAMD4wPAYMKwYBBAGCqTAB
// SIG // AwYBMCwwKgYIKwYBBQUHAgEWHmh0dHBzOi8vd3d3LnNz
// SIG // bC5jb20vcmVwb3NpdG9yeTAWBgNVHSUBAf8EDDAKBggr
// SIG // BgEFBQcDCDBGBgNVHR8EPzA9MDugOaA3hjVodHRwOi8v
// SIG // Y3Jscy5zc2wuY29tL1NTTC5jb20tdGltZVN0YW1waW5n
// SIG // LUktUlNBLVIxLmNybDAdBgNVHQ4EFgQUW6G11pjxE5Ye
// SIG // Og4v00HpcBOEX70wDgYDVR0PAQH/BAQDAgeAMA0GCSqG
// SIG // SIb3DQEBCwUAA4ICAQCWhqdv5te/s4x0rPunvGiZmsyr
// SIG // 2Gj0BmpuWUJjwJFJu6sH6udacyuFv1p4+lKkKeSSZf82
// SIG // ZkBu1Wh5Z72fw06Lc1hG3qDFLQG06JMPyHDjedxyHh6u
// SIG // cAYllx8cIognNy6xIZ1NURNSXoFriyUKhSlxLgsu/Vh8
// SIG // lOALVzxY66jIo9eOXlxPF7Y6Jq+hs5wP964RdSWrYMlR
// SIG // C5EzQatMxwTnU9Exc1/JYefN8xmGmoncNreig9wlgGiV
// SIG // 0AJcf7LBF+LuOGkFtTEJDrUV70Zxbg0Q3aQScl6UzDJz
// SIG // rpM4Qx7BTnFm1eYmcdkpP3fVaee12uVqMzBiWOSvwujT
// SIG // jZoX+roSM5EupIFlaV3deLUFP32MNVd/uCtW/CYKT/sz
// SIG // Xal/WSk80eCJ3wDNlTOA0GoWmisveoO+jgq1Rn6F7/cX
// SIG // Ddnnd5boWIEETCgYj6gku4RIoliTsbBf3KOR3nV4rgZk
// SIG // /tToqeM869685Oab6lCb0FVRcaB87Y/hUp0BJk3q0pqX
// SIG // mDmu3kDq5vEOuF62OkBowQyqOV+R0EN49rIrQnhfO45K
// SIG // l7uYlno48nflIlOFnGbrOZ6b/dF73nzbmWAA2EIF1bdu
// SIG // g6ZbXfQ4zddtDhJupfYb2Wjlvwuc/2DaOG2TzZ0ZSnaG
// SIG // XTeCG8hzFhcHCuY/ynY+V3mVdz/BMhfrJOTdZwb0sTCC
// SIG // BvwwggTkoAMCAQICEG1SGHCH6CNNhWAA0ICPk1YwDQYJ
// SIG // KoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxDjAMBgNV
// SIG // BAgMBVRleGFzMRAwDgYDVQQHDAdIb3VzdG9uMRgwFgYD
// SIG // VQQKDA9TU0wgQ29ycG9yYXRpb24xMTAvBgNVBAMMKFNT
// SIG // TC5jb20gUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
// SIG // eSBSU0EwHhcNMTkxMTEzMTg1MDA1WhcNMzQxMTEyMTg1
// SIG // MDA1WjBzMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVGV4
// SIG // YXMxEDAOBgNVBAcMB0hvdXN0b24xETAPBgNVBAoMCFNT
// SIG // TCBDb3JwMS8wLQYDVQQDDCZTU0wuY29tIFRpbWVzdGFt
// SIG // cGluZyBJc3N1aW5nIFJTQSBDQSBSMTCCAiIwDQYJKoZI
// SIG // hvcNAQEBBQADggIPADCCAgoCggIBAK5REBPS+TwgoCCF
// SIG // 3slQHGTJ4f3F6TT/Cn8xSOhyWsVeqGH98Yf3UVz7t+bQ
// SIG // wcITsD7CY6KoGP04OskBgareubfeMKcdKwIE1YBBjKhq
// SIG // 4urwiOqxLUmVcvb2oM0wx3BnxQ3NBLu9ZkwMnjQlIY2m
// SIG // EwZMgDaqfZuiEa2BFzinXf3kRLKlQ5oa8ne3QU0vcG4q
// SIG // Zvphy0xxBQXayqigzN3z2HQTq6N28EOjpnA2dajGPtiZ
// SIG // 9aNJeDfcDka5j3KbhBkzk4RWCjx5vP8H6DKHIIs02GHg
// SIG // xv/jG8JMIxWY1isG+IaB09livKbxlvzhNAKZK5fQmUst
// SIG // rpYrVo7qqXAhJtv1tUaHzrp6QpuUL9dE/bSAC7UKO9xh
// SIG // yJSA1OsYWDx/wAmBA84JzX8IJ1olJjCEmlJ2F4o6dCAR
// SIG // KA2Zhk+EU4LogpowBReTlTW2NNwUKAW+8Cte0rhrMBZQ
// SIG // 47Vjd92V0gEvouOTMtQJgk2QVeqGwFVw8y4HSdQNa8sl
// SIG // 8+Kay2MnyUXhLoQLFaeVaLs4SVXBOe3Ua1Gp5j3J2+8Y
// SIG // ue1T4V5wrsNuocNR3frpSt4yRIG3N68Bz1qqhk+eNUyO
// SIG // 8WpXWlg6POZOJUdm0BzzRsB8V7kst8nM8joOe03Kqhun
// SIG // BN69Ckeo8M32qo07zeveRrDwD2P4dmJLDYBflwZ1A/SQ
// SIG // bS+HN+AHAgMBAAGjggGBMIIBfTASBgNVHRMBAf8ECDAG
// SIG // AQH/AgEAMB8GA1UdIwQYMBaAFN0ECQei9Xp9UlMSkpXu
// SIG // OIAlDaZZMIGDBggrBgEFBQcBAQR3MHUwUQYIKwYBBQUH
// SIG // MAKGRWh0dHA6Ly93d3cuc3NsLmNvbS9yZXBvc2l0b3J5
// SIG // L1NTTGNvbVJvb3RDZXJ0aWZpY2F0aW9uQXV0aG9yaXR5
// SIG // UlNBLmNydDAgBggrBgEFBQcwAYYUaHR0cDovL29jc3Bz
// SIG // LnNzbC5jb20wPwYDVR0gBDgwNjA0BgRVHSAAMCwwKgYI
// SIG // KwYBBQUHAgEWHmh0dHBzOi8vd3d3LnNzbC5jb20vcmVw
// SIG // b3NpdG9yeTATBgNVHSUEDDAKBggrBgEFBQcDCDA7BgNV
// SIG // HR8ENDAyMDCgLqAshipodHRwOi8vY3Jscy5zc2wuY29t
// SIG // L3NzbC5jb20tcnNhLVJvb3RDQS5jcmwwHQYDVR0OBBYE
// SIG // FAydECWOmqcbmYdDzwh+4b2BkPTPMA4GA1UdDwEB/wQE
// SIG // AwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAkhl1DaZaQs8Z
// SIG // B9ny/JT6wJvwFelEllovcTPdUOUTe5mTdw/E+3JtV8u6
// SIG // ppyLRbpIHbYlMy20KJAychU6xdaci4BsP9oVNxSRMsEj
// SIG // fHKz7ARqPNdpclhYAINLjsFGMO1iUNbXiAsnF/xboNCg
// SIG // feMcMYbLyQYkU6UMobv9isrtQZ8e0EAQNV7qXJn4W0Ky
// SIG // uTt0P8iIv/5DdDpIUBIktDZcjz2KEW6B1gvvsKIM1esj
// SIG // YwWylAazBcQAake5pANMdSn8t1HdPKsiwuWfOguyRQaz
// SIG // AX8oXz6SlZSIok0Lis9a02vGVtdhEaB0R3HxIyNRMMKW
// SIG // V1yuSeUXFuoexWav3GRPZC0WYb50SrW/l+wgrS8doeta
// SIG // MwyZon2L7ioYlIPSy1h9Dq/Q911PsSkbEZ3zrsB1roVn
// SIG // IfBu5BJp0xvQrQ/Q4LavuvCoFR7QFoypNrotbNYi2AGM
// SIG // Zw5td4zGZtCqUTPZi0BwSuRm+HRYAEMMThTwbJX/fYV1
// SIG // oC8mBN970yIvadIGKhh7+DmYdRJYBrL8inVFCZAK+YX2
// SIG // w1+qWEnCSPL/VTWJtSRMhQFfceDKbJC+pBNksvKzqkva
// SIG // 0J1ZyMj1i4vDfSuBmbz4rfzsvvJxS+quZDdkmW6MeXev
// SIG // WGBXvqzdbAw+AqTVsAQUyP6tFeKZIL4S/fSFdl2rIx2X
// SIG // +KXkqx3S+EYxggOZMIIDlQIBATCBhzBzMQswCQYDVQQG
// SIG // EwJVUzEOMAwGA1UECAwFVGV4YXMxEDAOBgNVBAcMB0hv
// SIG // dXN0b24xETAPBgNVBAoMCFNTTCBDb3JwMS8wLQYDVQQD
// SIG // DCZTU0wuY29tIFRpbWVzdGFtcGluZyBJc3N1aW5nIFJT
// SIG // QSBDQSBSMQIQXxy8jFw+X28k/TpP5IjWKDALBglghkgB
// SIG // ZQMEAgGgggFkMBoGCSqGSIb3DQEJAzENBgsqhkiG9w0B
// SIG // CRABBDAcBgkqhkiG9w0BCQUxDxcNMjIwNDA0MTIzOTU1
// SIG // WjArBgkqhkiG9w0BCTQxHjAcMAsGCWCGSAFlAwQCAaEN
// SIG // BgkqhkiG9w0BAQsFADAvBgkqhkiG9w0BCQQxIgQgbUFG
// SIG // cpjRO7n3CgFxzpnaAtmEy7ADJYNm3lHVCNKXw+4wgckG
// SIG // CyqGSIb3DQEJEAIvMYG5MIG2MIGzMIGwBCChzTkcEQ86
// SIG // 6hiVLWyQQdvmboGlq1yRcW21jitn6eV/mDCBizB3pHUw
// SIG // czELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVRleGFzMRAw
// SIG // DgYDVQQHDAdIb3VzdG9uMREwDwYDVQQKDAhTU0wgQ29y
// SIG // cDEvMC0GA1UEAwwmU1NMLmNvbSBUaW1lc3RhbXBpbmcg
// SIG // SXNzdWluZyBSU0EgQ0EgUjECEF8cvIxcPl9vJP06T+SI
// SIG // 1igwDQYJKoZIhvcNAQELBQAEggGAP/Nm6PgaZ+9JKvZo
// SIG // +8MqO498pyk+FPafGz2ygxy98y1wJXtcz4lWz14iATSJ
// SIG // Oj1Xf1gj1HWmWw6li/Wo2dWkAhoiuodE0zgCmxK9cI2H
// SIG // uBjcHOMRbjTVLjA2PezRUH59syk9SNhP53nGZsM2eVyY
// SIG // iBlyr1K3WWk0FN4WUBVy42EsTlfyyz8hmI2JwNZiG75+
// SIG // z8o+LkwL4OB8lLk9XewaAKoVvEZ34Y64GRaBviv4DBNp
// SIG // 6BJ21yAN695zsQqrIROMsVq1BHgjGnfxJIKUqK5OJ0jy
// SIG // zZ+VZ124j309ySl3fcutQSJGI1EMmCC5ynWrfmOpp20K
// SIG // iBTwu1rQeviQZ9TODjxb80K15tpD4dCUjO9q01C6mbMp
// SIG // lKMYYJovjcCADbl1Afh0oKbVMb5zpt6RWKdmenOFjxlo
// SIG // oj+jQjylQOHG78MVeizRU7o7u3gXZ7r8vJZGY3tXptI0
// SIG // rKE8AeZERyBmMC5rZz/Dlj9S7Ystpd4g+Pr6w8g+Cj6E
// SIG // LXpgN2g3LC3D
// SIG // End signature block
