diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9eed233 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,14 @@ +# 1. Install ns-beautify using `npm install -g js-beautify` +# +# 2. Define the following textconv in your global ~/.gitconfig to make use of it. +# +# [diff "minjs"] +# textconv = js-beautify +# cachetextconv = true +# [diff "mincss"] +# textconv = js-beautify --css +# cachetextconv = true +# +# 3. Uncomment the following lines to use the textconv to diff your JS and CSS. +#*.js diff=minjs +#*.css diff=mincss diff --git a/report_table.js b/report_table.js index cd11584..3823648 100644 --- a/report_table.js +++ b/report_table.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}([,function(e,t,n){var r={};!function(e){function t(e){for(var t="",n=e.length-1;n>=0;)t+=e.charAt(n--);return t}function n(e,t){for(var n="";n.length=t?r:n("0",t-r.length)+r}function a(e,t){var r=""+e;return r.length>=t?r:n(" ",t-r.length)+r}function o(e,t){var r=""+e;return r.length>=t?r:r+n(" ",t-r.length)}e.version="0.11.2";var i=Math.pow(2,32);function s(e,t){return e>i||e<-i?function(e,t){var r=""+Math.round(e);return r.length>=t?r:n("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:n("0",t-r.length)+r}(Math.round(e),t)}function u(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var f=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],l=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function c(e){e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var d={};c(d);var v=[],A=0;for(A=5;A<=8;++A)v[A]=32+A;for(A=23;A<=26;++A)v[A]=0;for(A=27;A<=31;++A)v[A]=14;for(A=50;A<=58;++A)v[A]=14;for(A=59;A<=62;++A)v[A]=A-58;for(A=67;A<=68;++A)v[A]=A-58;for(A=72;A<=75;++A)v[A]=A-58;for(A=67;A<=68;++A)v[A]=A-57;for(A=76;A<=78;++A)v[A]=A-56;for(A=79;A<=81;++A)v[A]=A-34;var h=[];function g(e,t,n){for(var r=e<0?-1:1,a=e*r,o=0,i=1,s=0,u=1,f=0,l=0,c=Math.floor(a);ft&&(f>t?(l=u,s=o):(l=f,s=i)),!n)return[0,r*s,l];var d=Math.floor(r*s/l);return[d,r*s-d*l,l]}function b(e,t,n){if(e>2958465||e<0)return null;var r=0|e,a=Math.floor(86400*(e-r)),o=0,i=[],s={D:r,T:a,u:86400*(e-r)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++a&&(s.T=a=0,++r,++s.D)),60===r)i=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)i=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var u=new Date(1900,0,1);u.setDate(u.getDate()+r-1),i=[u.getFullYear(),u.getMonth()+1,u.getDate()],o=u.getDay(),r<60&&(o=(o+6)%7),n&&(o=function(e,t){t[0]-=581;var n=e.getDay();e<60&&(n=(n+6)%7);return n}(u,i))}return s.y=i[0],s.m=i[1],s.d=i[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=o,s}h[5]=h[63]='"$"#,##0_);\\("$"#,##0\\)',h[6]=h[64]='"$"#,##0_);[Red]\\("$"#,##0\\)',h[7]=h[65]='"$"#,##0.00_);\\("$"#,##0.00\\)',h[8]=h[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',h[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',h[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',h[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',h[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)',e.parse_date_code=b;var m=new Date(1899,11,31,0,0,0),p=m.getTime(),w=new Date(1900,2,1,0,0,0);function z(e,t){var n=e.getTime();return t?n-=1262304e5:e>=w&&(n+=864e5),(n-(p+6e4*(e.getTimezoneOffset()-m.getTimezoneOffset())))/864e5}e._general_int=function(e){return e.toString(10)};var y=function(){var e=/(?:\.0*|(\.\d*[1-9])0+)$/;function t(t){return-1==t.indexOf(".")?t:t.replace(e,"$1")}var n=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,r=/(E[+-])(\d)$/;return function(e){var a,o=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return a=o>=-4&&o<=-1?e.toPrecision(10+o):Math.abs(o)<=9?function(e){var n=e<0?12:11,r=t(e.toFixed(12));return r.length<=n||(r=e.toPrecision(10)).length<=n?r:e.toExponential(5)}(e):10===o?e.toFixed(10).substr(0,12):function(e){var n=t(e.toFixed(11));return n.length>(e<0?12:11)||"0"===n||"-0"===n?e.toPrecision(6):n}(e),t(function(e){return-1==e.indexOf("E")?e:e.replace(n,"$1E").replace(r,"$10$2")}(a.toUpperCase()))}}();function B(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):y(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return J(14,z(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}e._general_num=y,e._general=B;"๐๑๒๓๔๕๖๗๘๙".split("");function P(e,t,n,a){var o,i="",s=0,u=0,c=n.y,d=0;switch(e){case 98:c=n.y+543;case 121:switch(t.length){case 1:case 2:o=c%100,d=2;break;default:o=c%1e4,d=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,d=t.length;break;case 3:return l[n.m-1][1];case 5:return l[n.m-1][0];default:return l[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,d=t.length;break;case 3:return f[n.q][0];default:return f[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,d=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(u=a>=2?3===a?1e3:100:1===a?10:1,(s=Math.round(u*(n.S+n.u)))>=60*u&&(s=0),"s"===t?0===s?"0":""+s/u:(i=r(s,2+a),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):r(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}d=3===t.length?1:2;break;case 101:o=c,d=1}return d>0?r(o,d):""}function D(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var X=function(){var e=/%/g;var i=/# (\?+)( ?)\/( ?)(\d+)/;var u=/^#*0*\.([0#]+)/,f=/\).*[0#]/,l=/\(###\) ###\\?-####/;function c(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function d(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function v(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function A(h,b,m){if(40===h.charCodeAt(0)&&!b.match(f)){var p=b.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return m>=0?A("n",p,m):"("+A("n",p,-m)+")"}if(44===b.charCodeAt(b.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return X(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(h,b,m);if(-1!==b.indexOf("%"))return function(t,r,a){var o=r.replace(e,""),i=r.length-o.length;return X(t,o,a*Math.pow(10,2*i))+n("%",i)}(h,b,m);if(-1!==b.indexOf("E"))return function e(t,n){var r,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var i=Math.floor(Math.log(n)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(r=(n/Math.pow(10,i)).toPrecision(a+1+(o+i)%o)).indexOf("e")){var s=Math.floor(Math.log(n)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,o)+"."+r.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else r=n.toExponential(a);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(b,m);if(36===b.charCodeAt(0))return"$"+A(h,b.substr(" "==b.charAt(1)?2:1),m);var w,z,y,B,P=Math.abs(m),W=m<0?"-":"";if(b.match(/^00+$/))return W+s(P,b.length);if(b.match(/^[#?]+$/))return"0"===(w=s(m,0))&&(w=""),w.length>b.length?w:c(b.substr(0,b.length-w.length))+w;if(z=b.match(i))return function(e,t,o){var i=parseInt(e[4],10),s=Math.round(t*i),u=Math.floor(s/i),f=s-u*i,l=i;return o+(0===u?"":""+u)+" "+(0===f?n(" ",e[1].length+1+e[4].length):a(f,e[1].length)+e[2]+"/"+e[3]+r(l,e[4].length))}(z,P,W);if(b.match(/^#+0+$/))return W+s(P,b.length-b.indexOf("0"));if(z=b.match(u))return w=d(m,z[1].length).replace(/^([^\.]+)$/,"$1."+c(z[1])).replace(/\.$/,"."+c(z[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",c(z[1]).length-t.length)})),-1!==b.indexOf("0.")?w:w.replace(/^0\./,".");if(b=b.replace(/^#+([0.])/,"$1"),z=b.match(/^(0*)\.(#*)$/))return W+d(P,z[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,z[1].length?"0.":".");if(z=b.match(/^#{1,3},##0(\.?)$/))return W+D(s(P,0));if(z=b.match(/^#,##0\.([#0]*0)$/))return m<0?"-"+A(h,b,-m):D(""+(Math.floor(m)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(m,z[1].length)))+"."+r(v(m,z[1].length),z[1].length);if(z=b.match(/^#,#*,#0/))return A(h,b.replace(/^#,#*,/,""),m);if(z=b.match(/^([0#]+)(\\?-([0#]+))+$/))return w=t(A(h,b.replace(/[\\-]/g,""),m)),y=0,t(t(b.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return y-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(m)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?r(0,3-e.length):"")+e}))+"."+r(y,z[1].length);switch(b){case"###,##0.00":return A(h,"#,##0.00",m);case"###,###":case"##,###":case"#,###":var Z=D(s(P,0));return"0"!==Z?W+Z:"";case"###,###.00":return A(h,"###,##0.00",m).replace(/^0\./,".");case"#,###.00":return A(h,"#,##0.00",m).replace(/^0\./,".")}throw new Error("unsupported format |"+b+"|")}function h(s,d,v){if(40===s.charCodeAt(0)&&!d.match(f)){var A=d.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return v>=0?h("n",A,v):"("+h("n",A,-v)+")"}if(44===d.charCodeAt(d.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return X(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(s,d,v);if(-1!==d.indexOf("%"))return function(t,r,a){var o=r.replace(e,""),i=r.length-o.length;return X(t,o,a*Math.pow(10,2*i))+n("%",i)}(s,d,v);if(-1!==d.indexOf("E"))return function e(t,n){var r,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var i=Math.floor(Math.log(n)*Math.LOG10E)%o;if(i<0&&(i+=o),!(r=(n/Math.pow(10,i)).toPrecision(a+1+(o+i)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(n)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else r=n.toExponential(a);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(d,v);if(36===d.charCodeAt(0))return"$"+h(s,d.substr(" "==d.charAt(1)?2:1),v);var b,m,p,w,z=Math.abs(v),y=v<0?"-":"";if(d.match(/^00+$/))return y+r(z,d.length);if(d.match(/^[#?]+$/))return b=""+v,0===v&&(b=""),b.length>d.length?b:c(d.substr(0,d.length-b.length))+b;if(m=d.match(i))return function(e,t,r){return r+(0===t?"":""+t)+n(" ",e[1].length+2+e[4].length)}(m,z,y);if(d.match(/^#+0+$/))return y+r(z,d.length-d.indexOf("0"));if(m=d.match(u))return b=(b=(""+v).replace(/^([^\.]+)$/,"$1."+c(m[1])).replace(/\.$/,"."+c(m[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",c(m[1]).length-t.length)})),-1!==d.indexOf("0.")?b:b.replace(/^0\./,".");if(d=d.replace(/^#+([0.])/,"$1"),m=d.match(/^(0*)\.(#*)$/))return y+(""+z).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,m[1].length?"0.":".");if(m=d.match(/^#{1,3},##0(\.?)$/))return y+D(""+z);if(m=d.match(/^#,##0\.([#0]*0)$/))return v<0?"-"+h(s,d,-v):D(""+v)+"."+n("0",m[1].length);if(m=d.match(/^#,#*,#0/))return h(s,d.replace(/^#,#*,/,""),v);if(m=d.match(/^([0#]+)(\\?-([0#]+))+$/))return b=t(h(s,d.replace(/[\\-]/g,""),v)),p=0,t(t(d.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return p-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":default:++t}return!1}function x(e,t,n,r){for(var a,o,i,s=[],f="",l=0,c="",d="t",v="H";l=12?"P":"A"),g.t="T",v="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=a&&(g.v=a.H>=12?"PM":"AM"),g.t="T",l+=5,v="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=a&&(g.v=a.H>=12?"下午":"上午"),g.t="T",l+=5,v="h"):(g.t="t",++l),null==a&&"T"===g.t)return"";s[s.length]=g,d=c;break;case"[":for(f=c;"]"!==e.charAt(l++)&&l-1&&(f=(f.match(/\$([^-\[\]]*)/)||[])[1]||"$",H(e)||(s[s.length]={t:"t",v:f}));break;case".":if(null!=a){for(f=c;++l-1;)f+=c;s[s.length]={t:"n",v:f};break;case"?":for(f=c;e.charAt(++l)===c;)f+=c;s[s.length]={t:c,v:f},d=c;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":s[s.length]={t:1===r?"t":c,v:c},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(f=c;l-1;)f+=e.charAt(l);s[s.length]={t:"D",v:f};break;case" ":s[s.length]={t:c,v:c},++l;break;case"$":s[s.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);s[s.length]={t:"t",v:c},++l}var m,p=0,w=0;for(l=s.length-1,d="t";l>=0;--l)switch(s[l].t){case"h":case"H":s[l].t=v,d="h",p<1&&(p=1);break;case"s":(m=s[l].v.match(/\.0+$/))&&(w=Math.max(w,m[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":d=s[l].t;break;case"m":"s"===d&&(s[l].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&s[l].v.match(/[Hh]/)&&(p=1),p<2&&s[l].v.match(/[Mm]/)&&(p=2),p<3&&s[l].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M)}var z,y="";for(l=0;l0){40==y.charCodeAt(0)?(D=t<0&&45===y.charCodeAt(0)?-t:t,W=X("n",y,D)):(W=X("n",y,D=t<0&&r>1?-t:t),D<0&&s[0]&&"t"==s[0].t&&(W=W.substr(1),s[0].v="-"+s[0].v)),z=W.length-1;var Z=s.length;for(l=0;l-1){Z=l;break}var E=s.length;if(Z===s.length&&-1===W.indexOf("E")){for(l=s.length-1;l>=0;--l)null!=s[l]&&-1!=="n?".indexOf(s[l].t)&&(z>=s[l].v.length-1?(z-=s[l].v.length,s[l].v=W.substr(z+1,s[l].v.length)):z<0?s[l].v="":(s[l].v=W.substr(0,z+1),z=-1),s[l].t="t",E=l);z>=0&&E=0;--l)if(null!=s[l]&&-1!=="n?".indexOf(s[l].t)){for(o=s[l].v.indexOf(".")>-1&&l===Z?s[l].v.indexOf(".")-1:s[l].v.length-1,x=s[l].v.substr(o+1);o>=0;--o)z>=0&&("0"===s[l].v.charAt(o)||"#"===s[l].v.charAt(o))&&(x=W.charAt(z--)+x);s[l].v=x,s[l].t="t",E=l}for(z>=0&&E-1&&l===Z?s[l].v.indexOf(".")+1:0,x=s[l].v.substr(0,o);o-1&&(D=r>1&&t<0&&l>0&&"-"===s[l-1].v?-t:t,s[l].v=X(s[l].t,s[l].v,D),s[l].t="t");var k="";for(l=0;l!==s.length;++l)null!=s[l]&&(k+=s[l].v);return k}e.is_date=H,e._eval=x;var Z=/\[[=<>]/,E=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function k(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function J(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:d)[e])&&(r=n.table&&n.table[v[e]]||d[v[e]]),null==r&&(r=h[e]||"General")}if(u(r,0))return B(t,n);t instanceof Date&&(t=z(t,n.date1904));var a=function(e,t){var n=W(e),r=n.length,a=n[r-1].indexOf("@");if(r<4&&a>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||a>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=a>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=a>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=a>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(Z)||null!=n[1].match(Z)){var i=n[0].match(E),s=n[1].match(E);return k(t,i)?[r,n[0]]:k(t,s)?[r,n[1]]:[r,n[null!=i&&null!=s?2:1]]}return[r,o]}(r,t);if(u(a[1]))return B(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return x(a[1],t,n,a[0])}function N(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=d[n]){if(d[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return d[t]=e,t}e.load=N,e._table=d,e.get_table=function(){return d},e.load_table=function(e){for(var t=0;392!=t;++t)void 0!==e[t]&&N(e[t],t)},e.init_table=c,e.format=J}(r),"undefined"==typeof DO_NOT_EXPORT_SSF&&(e.exports=r)},function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n=0;)t+=e.charAt(n--);return t}function n(e,t){for(var n="";n.length=t?r:n("0",t-r.length)+r}function a(e,t){var r=""+e;return r.length>=t?r:n(" ",t-r.length)+r}function o(e,t){var r=""+e;return r.length>=t?r:r+n(" ",t-r.length)}e.version="0.11.2";var i=Math.pow(2,32);function s(e,t){return e>i||e<-i?function(e,t){var r=""+Math.round(e);return r.length>=t?r:n("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:n("0",t-r.length)+r}(Math.round(e),t)}function u(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var f=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],l=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function c(e){e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "'}var d={};c(d);var v=[],A=0;for(A=5;A<=8;++A)v[A]=32+A;for(A=23;A<=26;++A)v[A]=0;for(A=27;A<=31;++A)v[A]=14;for(A=50;A<=58;++A)v[A]=14;for(A=59;A<=62;++A)v[A]=A-58;for(A=67;A<=68;++A)v[A]=A-58;for(A=72;A<=75;++A)v[A]=A-58;for(A=67;A<=68;++A)v[A]=A-57;for(A=76;A<=78;++A)v[A]=A-56;for(A=79;A<=81;++A)v[A]=A-34;var h=[];function g(e,t,n){for(var r=e<0?-1:1,a=e*r,o=0,i=1,s=0,u=1,f=0,l=0,c=Math.floor(a);ft&&(f>t?(l=u,s=o):(l=f,s=i)),!n)return[0,r*s,l];var d=Math.floor(r*s/l);return[d,r*s-d*l,l]}function b(e,t,n){if(e>2958465||e<0)return null;var r=0|e,a=Math.floor(86400*(e-r)),o=0,i=[],s={D:r,T:a,u:86400*(e-r)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++a&&(s.T=a=0,++r,++s.D)),60===r)i=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)i=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var u=new Date(1900,0,1);u.setDate(u.getDate()+r-1),i=[u.getFullYear(),u.getMonth()+1,u.getDate()],o=u.getDay(),r<60&&(o=(o+6)%7),n&&(o=function(e,t){t[0]-=581;var n=e.getDay();e<60&&(n=(n+6)%7);return n}(u,i))}return s.y=i[0],s.m=i[1],s.d=i[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=o,s}h[5]=h[63]='"$"#,##0_);\\("$"#,##0\\)',h[6]=h[64]='"$"#,##0_);[Red]\\("$"#,##0\\)',h[7]=h[65]='"$"#,##0.00_);\\("$"#,##0.00\\)',h[8]=h[66]='"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',h[41]='_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',h[42]='_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',h[43]='_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',h[44]='_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)',e.parse_date_code=b;var m=new Date(1899,11,31,0,0,0),w=m.getTime(),p=new Date(1900,2,1,0,0,0);function z(e,t){var n=e.getTime();return t?n-=1262304e5:e>=p&&(n+=864e5),(n-(w+6e4*(e.getTimezoneOffset()-m.getTimezoneOffset())))/864e5}e._general_int=function(e){return e.toString(10)};var y=function(){var e=/(?:\.0*|(\.\d*[1-9])0+)$/;function t(t){return-1==t.indexOf(".")?t:t.replace(e,"$1")}var n=/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,r=/(E[+-])(\d)$/;return function(e){var a,o=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return a=o>=-4&&o<=-1?e.toPrecision(10+o):Math.abs(o)<=9?function(e){var n=e<0?12:11,r=t(e.toFixed(12));return r.length<=n||(r=e.toPrecision(10)).length<=n?r:e.toExponential(5)}(e):10===o?e.toFixed(10).substr(0,12):function(e){var n=t(e.toFixed(11));return n.length>(e<0?12:11)||"0"===n||"-0"===n?e.toPrecision(6):n}(e),t(function(e){return-1==e.indexOf("E")?e:e.replace(n,"$1E").replace(r,"$10$2")}(a.toUpperCase()))}}();function B(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):y(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return J(14,z(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}e._general_num=y,e._general=B;"๐๑๒๓๔๕๖๗๘๙".split("");function P(e,t,n,a){var o,i="",s=0,u=0,c=n.y,d=0;switch(e){case 98:c=n.y+543;case 121:switch(t.length){case 1:case 2:o=c%100,d=2;break;default:o=c%1e4,d=4}break;case 109:switch(t.length){case 1:case 2:o=n.m,d=t.length;break;case 3:return l[n.m-1][1];case 5:return l[n.m-1][0];default:return l[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=n.d,d=t.length;break;case 3:return f[n.q][0];default:return f[n.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(n.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=n.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=n.M,d=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(u=a>=2?3===a?1e3:100:1===a?10:1,(s=Math.round(u*(n.S+n.u)))>=60*u&&(s=0),"s"===t?0===s?"0":""+s/u:(i=r(s,2+a),"ss"===t?i.substr(0,2):"."+i.substr(2,t.length-1))):r(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":o=24*n.D+n.H;break;case"[m]":case"[mm]":o=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":o=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}d=3===t.length?1:2;break;case 101:o=c,d=1}return d>0?r(o,d):""}function D(e){if(e.length<=3)return e;for(var t=e.length%3,n=e.substr(0,t);t!=e.length;t+=3)n+=(n.length>0?",":"")+e.substr(t,3);return n}var X=function(){var e=/%/g;var i=/# (\?+)( ?)\/( ?)(\d+)/;var u=/^#*0*\.([0#]+)/,f=/\).*[0#]/,l=/\(###\) ###\\?-####/;function c(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function d(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function v(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function A(h,b,m){if(40===h.charCodeAt(0)&&!b.match(f)){var w=b.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return m>=0?A("n",w,m):"("+A("n",w,-m)+")"}if(44===b.charCodeAt(b.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return X(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(h,b,m);if(-1!==b.indexOf("%"))return function(t,r,a){var o=r.replace(e,""),i=r.length-o.length;return X(t,o,a*Math.pow(10,2*i))+n("%",i)}(h,b,m);if(-1!==b.indexOf("E"))return function e(t,n){var r,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var i=Math.floor(Math.log(n)*Math.LOG10E)%o;if(i<0&&(i+=o),-1===(r=(n/Math.pow(10,i)).toPrecision(a+1+(o+i)%o)).indexOf("e")){var s=Math.floor(Math.log(n)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,o)+"."+r.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else r=n.toExponential(a);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(b,m);if(36===b.charCodeAt(0))return"$"+A(h,b.substr(" "==b.charAt(1)?2:1),m);var p,z,y,B,P=Math.abs(m),W=m<0?"-":"";if(b.match(/^00+$/))return W+s(P,b.length);if(b.match(/^[#?]+$/))return"0"===(p=s(m,0))&&(p=""),p.length>b.length?p:c(b.substr(0,b.length-p.length))+p;if(z=b.match(i))return function(e,t,o){var i=parseInt(e[4],10),s=Math.round(t*i),u=Math.floor(s/i),f=s-u*i,l=i;return o+(0===u?"":""+u)+" "+(0===f?n(" ",e[1].length+1+e[4].length):a(f,e[1].length)+e[2]+"/"+e[3]+r(l,e[4].length))}(z,P,W);if(b.match(/^#+0+$/))return W+s(P,b.length-b.indexOf("0"));if(z=b.match(u))return p=d(m,z[1].length).replace(/^([^\.]+)$/,"$1."+c(z[1])).replace(/\.$/,"."+c(z[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",c(z[1]).length-t.length)})),-1!==b.indexOf("0.")?p:p.replace(/^0\./,".");if(b=b.replace(/^#+([0.])/,"$1"),z=b.match(/^(0*)\.(#*)$/))return W+d(P,z[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,z[1].length?"0.":".");if(z=b.match(/^#{1,3},##0(\.?)$/))return W+D(s(P,0));if(z=b.match(/^#,##0\.([#0]*0)$/))return m<0?"-"+A(h,b,-m):D(""+(Math.floor(m)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(m,z[1].length)))+"."+r(v(m,z[1].length),z[1].length);if(z=b.match(/^#,#*,#0/))return A(h,b.replace(/^#,#*,/,""),m);if(z=b.match(/^([0#]+)(\\?-([0#]+))+$/))return p=t(A(h,b.replace(/[\\-]/g,""),m)),y=0,t(t(b.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return y-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(m)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?r(0,3-e.length):"")+e}))+"."+r(y,z[1].length);switch(b){case"###,##0.00":return A(h,"#,##0.00",m);case"###,###":case"##,###":case"#,###":var Z=D(s(P,0));return"0"!==Z?W+Z:"";case"###,###.00":return A(h,"###,##0.00",m).replace(/^0\./,".");case"#,###.00":return A(h,"#,##0.00",m).replace(/^0\./,".")}throw new Error("unsupported format |"+b+"|")}function h(s,d,v){if(40===s.charCodeAt(0)&&!d.match(f)){var A=d.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return v>=0?h("n",A,v):"("+h("n",A,-v)+")"}if(44===d.charCodeAt(d.length-1))return function(e,t,n){for(var r=t.length-1;44===t.charCodeAt(r-1);)--r;return X(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}(s,d,v);if(-1!==d.indexOf("%"))return function(t,r,a){var o=r.replace(e,""),i=r.length-o.length;return X(t,o,a*Math.pow(10,2*i))+n("%",i)}(s,d,v);if(-1!==d.indexOf("E"))return function e(t,n){var r,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==n)return"0.0E+0";if(n<0)return"-"+e(t,-n);var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var i=Math.floor(Math.log(n)*Math.LOG10E)%o;if(i<0&&(i+=o),!(r=(n/Math.pow(10,i)).toPrecision(a+1+(o+i)%o)).match(/[Ee]/)){var s=Math.floor(Math.log(n)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(o+i)%o)+"."+r.substr(i)+"E"}))}else r=n.toExponential(a);return t.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),t.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}(d,v);if(36===d.charCodeAt(0))return"$"+h(s,d.substr(" "==d.charAt(1)?2:1),v);var b,m,w,p,z=Math.abs(v),y=v<0?"-":"";if(d.match(/^00+$/))return y+r(z,d.length);if(d.match(/^[#?]+$/))return b=""+v,0===v&&(b=""),b.length>d.length?b:c(d.substr(0,d.length-b.length))+b;if(m=d.match(i))return function(e,t,r){return r+(0===t?"":""+t)+n(" ",e[1].length+2+e[4].length)}(m,z,y);if(d.match(/^#+0+$/))return y+r(z,d.length-d.indexOf("0"));if(m=d.match(u))return b=(b=(""+v).replace(/^([^\.]+)$/,"$1."+c(m[1])).replace(/\.$/,"."+c(m[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+n("0",c(m[1]).length-t.length)})),-1!==d.indexOf("0.")?b:b.replace(/^0\./,".");if(d=d.replace(/^#+([0.])/,"$1"),m=d.match(/^(0*)\.(#*)$/))return y+(""+z).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,m[1].length?"0.":".");if(m=d.match(/^#{1,3},##0(\.?)$/))return y+D(""+z);if(m=d.match(/^#,##0\.([#0]*0)$/))return v<0?"-"+h(s,d,-v):D(""+v)+"."+n("0",m[1].length);if(m=d.match(/^#,#*,#0/))return h(s,d.replace(/^#,#*,/,""),v);if(m=d.match(/^([0#]+)(\\?-([0#]+))+$/))return b=t(h(s,d.replace(/[\\-]/g,""),v)),w=0,t(t(d.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return w-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===n;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":default:++t}return!1}function x(e,t,n,r){for(var a,o,i,s=[],f="",l=0,c="",d="t",v="H";l=12?"P":"A"),g.t="T",v="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=a&&(g.v=a.H>=12?"PM":"AM"),g.t="T",l+=5,v="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=a&&(g.v=a.H>=12?"下午":"上午"),g.t="T",l+=5,v="h"):(g.t="t",++l),null==a&&"T"===g.t)return"";s[s.length]=g,d=c;break;case"[":for(f=c;"]"!==e.charAt(l++)&&l-1&&(f=(f.match(/\$([^-\[\]]*)/)||[])[1]||"$",H(e)||(s[s.length]={t:"t",v:f}));break;case".":if(null!=a){for(f=c;++l-1;)f+=c;s[s.length]={t:"n",v:f};break;case"?":for(f=c;e.charAt(++l)===c;)f+=c;s[s.length]={t:c,v:f},d=c;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":s[s.length]={t:1===r?"t":c,v:c},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(f=c;l-1;)f+=e.charAt(l);s[s.length]={t:"D",v:f};break;case" ":s[s.length]={t:c,v:c},++l;break;case"$":s[s.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c))throw new Error("unrecognized character "+c+" in "+e);s[s.length]={t:"t",v:c},++l}var m,w=0,p=0;for(l=s.length-1,d="t";l>=0;--l)switch(s[l].t){case"h":case"H":s[l].t=v,d="h",w<1&&(w=1);break;case"s":(m=s[l].v.match(/\.0+$/))&&(p=Math.max(p,m[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":d=s[l].t;break;case"m":"s"===d&&(s[l].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&s[l].v.match(/[Hh]/)&&(w=1),w<2&&s[l].v.match(/[Mm]/)&&(w=2),w<3&&s[l].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M)}var z,y="";for(l=0;l0){40==y.charCodeAt(0)?(D=t<0&&45===y.charCodeAt(0)?-t:t,W=X("n",y,D)):(W=X("n",y,D=t<0&&r>1?-t:t),D<0&&s[0]&&"t"==s[0].t&&(W=W.substr(1),s[0].v="-"+s[0].v)),z=W.length-1;var Z=s.length;for(l=0;l-1){Z=l;break}var E=s.length;if(Z===s.length&&-1===W.indexOf("E")){for(l=s.length-1;l>=0;--l)null!=s[l]&&-1!=="n?".indexOf(s[l].t)&&(z>=s[l].v.length-1?(z-=s[l].v.length,s[l].v=W.substr(z+1,s[l].v.length)):z<0?s[l].v="":(s[l].v=W.substr(0,z+1),z=-1),s[l].t="t",E=l);z>=0&&E=0;--l)if(null!=s[l]&&-1!=="n?".indexOf(s[l].t)){for(o=s[l].v.indexOf(".")>-1&&l===Z?s[l].v.indexOf(".")-1:s[l].v.length-1,x=s[l].v.substr(o+1);o>=0;--o)z>=0&&("0"===s[l].v.charAt(o)||"#"===s[l].v.charAt(o))&&(x=W.charAt(z--)+x);s[l].v=x,s[l].t="t",E=l}for(z>=0&&E-1&&l===Z?s[l].v.indexOf(".")+1:0,x=s[l].v.substr(0,o);o-1&&(D=r>1&&t<0&&l>0&&"-"===s[l-1].v?-t:t,s[l].v=X(s[l].t,s[l].v,D),s[l].t="t");var k="";for(l=0;l!==s.length;++l)null!=s[l]&&(k+=s[l].v);return k}e.is_date=H,e._eval=x;var Z=/\[[=<>]/,E=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function k(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0}return!1}function J(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":null==(r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:d)[e])&&(r=n.table&&n.table[v[e]]||d[v[e]]),null==r&&(r=h[e]||"General")}if(u(r,0))return B(t,n);t instanceof Date&&(t=z(t,n.date1904));var a=function(e,t){var n=W(e),r=n.length,a=n[r-1].indexOf("@");if(r<4&&a>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof t)return[4,4===n.length||a>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=a>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=a>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=a>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(Z)||null!=n[1].match(Z)){var i=n[0].match(E),s=n[1].match(E);return k(t,i)?[r,n[0]]:k(t,s)?[r,n[1]]:[r,n[null!=i&&null!=s?2:1]]}return[r,o]}(r,t);if(u(a[1]))return B(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return x(a[1],t,n,a[0])}function N(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(null!=d[n]){if(d[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return d[t]=e,t}e.load=N,e._table=d,e.get_table=function(){return d},e.load_table=function(e){for(var t=0;392!=t;++t)void 0!==e[t]&&N(e[t],t)},e.init_table=c,e.format=J}(r),"undefined"==typeof DO_NOT_EXPORT_SSF&&(e.exports=r)},function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function s(e){for(var t=-1,n=0;n @@ -6,5 +6,5 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o="Expected a function",i="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",v="[object Function]",A="[object GeneratorFunction]",h="[object Map]",g="[object Number]",b="[object Object]",m="[object RegExp]",p="[object Set]",w="[object String]",z="[object Symbol]",y="[object WeakMap]",B="[object ArrayBuffer]",P="[object DataView]",D="[object Float32Array]",X="[object Float64Array]",W="[object Int8Array]",O="[object Int16Array]",H="[object Int32Array]",x="[object Uint8Array]",Z="[object Uint16Array]",E="[object Uint32Array]",k=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,C=RegExp(G.source),I=RegExp(M.source),F=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/[\\^$.*+?()[\]{}|]/g,T=RegExp(j.source),S=/^\s+|\s+$/g,q=/^\s+/,U=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ae=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ve="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="[\\ud800-\\udfff]",he="["+ve+"]",ge="["+de+"]",be="\\d+",me="[\\u2700-\\u27bf]",pe="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+ve+be+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ze="\\ud83c[\\udffb-\\udfff]",ye="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",De="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Xe="(?:"+pe+"|"+we+")",We="(?:"+De+"|"+we+")",Oe="(?:"+ge+"|"+ze+")"+"?",He="[\\ufe0e\\ufe0f]?"+Oe+("(?:\\u200d(?:"+[ye,Be,Pe].join("|")+")[\\ufe0e\\ufe0f]?"+Oe+")*"),xe="(?:"+[me,Be,Pe].join("|")+")"+He,Ze="(?:"+[ye+ge+"?",ge,Be,Pe,Ae].join("|")+")",Ee=RegExp("['’]","g"),ke=RegExp(ge,"g"),Je=RegExp(ze+"(?="+ze+")|"+Ze+He,"g"),Ne=RegExp([De+"?"+pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,De,"$"].join("|")+")",We+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,De+Xe,"$"].join("|")+")",De+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",De+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,xe].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ie=-1,Fe={};Fe[D]=Fe[X]=Fe[W]=Fe[O]=Fe[H]=Fe[x]=Fe["[object Uint8ClampedArray]"]=Fe[Z]=Fe[E]=!0,Fe[u]=Fe[f]=Fe[B]=Fe[l]=Fe[P]=Fe[c]=Fe[d]=Fe[v]=Fe[h]=Fe[g]=Fe[b]=Fe[m]=Fe[p]=Fe[w]=Fe[y]=!1;var Le={};Le[u]=Le[f]=Le[B]=Le[P]=Le[l]=Le[c]=Le[D]=Le[X]=Le[W]=Le[O]=Le[H]=Le[h]=Le[g]=Le[b]=Le[m]=Le[p]=Le[w]=Le[z]=Le[x]=Le["[object Uint8ClampedArray]"]=Le[Z]=Le[E]=!0,Le[d]=Le[v]=Le[y]=!1;var Qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,Re=parseInt,Ye="object"==typeof e&&e&&e.Object===Object&&e,je="object"==typeof self&&self&&self.Object===Object&&self,Te=Ye||je||Function("return this")(),Se=t&&!t.nodeType&&t,qe=Se&&"object"==typeof r&&r&&!r.nodeType&&r,Ue=qe&&qe.exports===Se,Ke=Ue&&Ye.process,_e=function(){try{var e=qe&&qe.require&&qe.require("util").types;return e||Ke&&Ke.binding&&Ke.binding("util")}catch(e){}}(),$e=_e&&_e.isArrayBuffer,et=_e&&_e.isDate,tt=_e&&_e.isMap,nt=_e&&_e.isRegExp,rt=_e&&_e.isSet,at=_e&&_e.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a-1}function dt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function Jt(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gt=Xt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mt=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ct(e){return"\\"+Qe[e]}function It(e){return Ge.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Lt(e,t){return function(n){return e(t(n))}}function Qt(e,t){for(var n=-1,r=e.length,a=0,o=[];++n",""":'"',"'":"'"});var St=function e(t){var n,r=(t=null==t?Te:St.defaults(Te.Object(),t,St.pick(Te,Ce))).Array,a=t.Date,de=t.Error,ve=t.Function,Ae=t.Math,he=t.Object,ge=t.RegExp,be=t.String,me=t.TypeError,pe=r.prototype,we=ve.prototype,ze=he.prototype,ye=t["__core-js_shared__"],Be=we.toString,Pe=ze.hasOwnProperty,De=0,Xe=(n=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",We=ze.toString,Oe=Be.call(he),He=Te._,xe=ge("^"+Be.call(Pe).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=Ue?t.Buffer:void 0,Je=t.Symbol,Ge=t.Uint8Array,Qe=Ze?Ze.allocUnsafe:void 0,Ye=Lt(he.getPrototypeOf,he),je=he.create,Se=ze.propertyIsEnumerable,qe=pe.splice,Ke=Je?Je.isConcatSpreadable:void 0,_e=Je?Je.iterator:void 0,mt=Je?Je.toStringTag:void 0,Xt=function(){try{var e=$a(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),qt=t.clearTimeout!==Te.clearTimeout&&t.clearTimeout,Ut=a&&a.now!==Te.Date.now&&a.now,Kt=t.setTimeout!==Te.setTimeout&&t.setTimeout,_t=Ae.ceil,$t=Ae.floor,en=he.getOwnPropertySymbols,tn=Ze?Ze.isBuffer:void 0,nn=t.isFinite,rn=pe.join,an=Lt(he.keys,he),on=Ae.max,sn=Ae.min,un=a.now,fn=t.parseInt,ln=Ae.random,cn=pe.reverse,dn=$a(t,"DataView"),vn=$a(t,"Map"),An=$a(t,"Promise"),hn=$a(t,"Set"),gn=$a(t,"WeakMap"),bn=$a(he,"create"),mn=gn&&new gn,pn={},wn=Wo(dn),zn=Wo(vn),yn=Wo(An),Bn=Wo(hn),Pn=Wo(gn),Dn=Je?Je.prototype:void 0,Xn=Dn?Dn.valueOf:void 0,Wn=Dn?Dn.toString:void 0;function On(e){if(Ri(e)&&!ki(e)&&!(e instanceof En)){if(e instanceof Zn)return e;if(Pe.call(e,"__wrapped__"))return Oo(e)}return new Zn(e)}var Hn=function(){function e(){}return function(t){if(!Vi(t))return{};if(je)return je(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function xn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function En(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Un(e,t,n,r,a,o){var i,s=1&t,f=2&t,d=4&t;if(n&&(i=a?n(e,r,a,o):n(e)),void 0!==i)return i;if(!Vi(e))return e;var y=ki(e);if(y){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return ba(e,i)}else{var k=no(e),J=k==v||k==A;if(Mi(e))return ca(e,s);if(k==b||k==u||J&&!a){if(i=f||J?{}:ao(e),!s)return f?function(e,t){return ma(e,to(e),t)}(e,function(e,t){return e&&ma(t,zs(t),e)}(i,e)):function(e,t){return ma(e,eo(e),t)}(e,jn(i,e))}else{if(!Le[k])return a?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case B:return da(e);case l:case c:return new r(+e);case P:return function(e,t){var n=t?da(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case X:case W:case O:case H:case x:case"[object Uint8ClampedArray]":case Z:case E:return va(e,n);case h:return new r;case g:case w:return new r(e);case m:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case p:return new r;case z:return a=e,Xn?he(Xn.call(a)):{}}var a}(e,k,s)}}o||(o=new Mn);var N=o.get(e);if(N)return N;o.set(e,i),qi(e)?e.forEach((function(r){i.add(Un(r,t,n,r,e,o))})):Yi(e)&&e.forEach((function(r,a){i.set(a,Un(r,t,n,a,e,o))}));var G=y?void 0:(d?f?ja:Ya:f?zs:ws)(e);return st(G||e,(function(r,a){G&&(r=e[a=r]),Vn(i,a,Un(r,t,n,a,e,o))})),i}function Kn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var a=n[r],o=t[a],i=e[a];if(void 0===i&&!(a in e)||!o(i))return!1}return!0}function _n(e,t,n){if("function"!=typeof e)throw new me(o);return wo((function(){e.apply(void 0,n)}),t)}function $n(e,t,n,r){var a=-1,o=ct,i=!0,s=e.length,u=[],f=t.length;if(!s)return u;n&&(t=vt(t,xt(n))),r?(o=dt,i=!1):t.length>=200&&(o=Et,i=!1,t=new Gn(t));e:for(;++a-1},Jn.prototype.set=function(e,t){var n=this.__data__,r=Rn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new kn,map:new(vn||Jn),string:new kn}},Nn.prototype.delete=function(e){var t=Ka(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ka(this,e).get(e)},Nn.prototype.has=function(e){return Ka(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ka(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.clear=function(){this.__data__=new Jn,this.size=0},Mn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Mn.prototype.get=function(e){return this.__data__.get(e)},Mn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Jn){var r=n.__data__;if(!vn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=za(ur),tr=za(fr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function rr(e,t,n){for(var r=-1,a=e.length;++r0&&n(s)?t>1?or(s,t-1,n,r,a):At(a,s):r||(a[a.length]=s)}return a}var ir=ya(),sr=ya(!0);function ur(e,t){return e&&ir(e,t,ws)}function fr(e,t){return e&&sr(e,t,ws)}function lr(e,t){return lt(t,(function(t){return Fi(e[t])}))}function cr(e,t){for(var n=0,r=(t=sa(t,e)).length;null!=e&&nt}function hr(e,t){return null!=e&&Pe.call(e,t)}function gr(e,t){return null!=e&&t in he(e)}function br(e,t,n){for(var a=n?dt:ct,o=e[0].length,i=e.length,s=i,u=r(i),f=1/0,l=[];s--;){var c=e[s];s&&t&&(c=vt(c,xt(t))),f=sn(c.length,f),u[s]=!n&&(t||o>=120&&c.length>=120)?new Gn(s&&c):void 0}c=e[0];var d=-1,v=u[0];e:for(;++d=s)return u;var f=n[r];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,n)}))}function kr(e,t,n){for(var r=-1,a=t.length,o={};++r-1;)s!==e&&qe.call(s,u,1),qe.call(e,u,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;io(a)?qe.call(e,a,1):$r(e,a)}}return e}function Gr(e,t){return e+$t(ln()*(t-e+1))}function Mr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=$t(t/2))&&(e+=e)}while(t);return n}function Cr(e,t){return zo(ho(e,t,js),e+"")}function Ir(e){return In(Hs(e))}function Fr(e,t){var n=Hs(e);return Po(n,qn(t,0,n.length))}function Lr(e,t,n,r){if(!Vi(e))return e;for(var a=-1,o=(t=sa(t,e)).length,i=o-1,s=e;null!=s&&++ao?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=r(o);++a>>1,i=e[o];null!==i&&!Ki(i)&&(n?i<=t:i=200){var f=t?null:Ma(e);if(f)return Vt(f);i=!1,a=Et,u=new Gn}else u=t?[]:s;e:for(;++r=r?e:Yr(e,t,n)}var la=qt||function(e){return Te.clearTimeout(e)};function ca(e,t){if(t)return e.slice();var n=e.length,r=Qe?Qe(n):new e.constructor(n);return e.copy(r),r}function da(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function va(e,t){var n=t?da(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Aa(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e==e,o=Ki(e),i=void 0!==t,s=null===t,u=t==t,f=Ki(t);if(!s&&!f&&!o&&e>t||o&&i&&u&&!s&&!f||r&&i&&u||!n&&u||!a)return 1;if(!r&&!o&&!f&&e1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&so(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=he(t);++r-1?a[o?t[i]:i]:void 0}}function Wa(e){return Ra((function(t){var n=t.length,r=n,a=Zn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new me(o);if(a&&!s&&"wrapper"==Sa(i))var s=new Zn([],!0)}for(r=s?r:n;++r1&&p.reverse(),c&&fs))return!1;var f=o.get(e),l=o.get(t);if(f&&l)return f==t&&l==e;var c=-1,d=!0,v=2&n?new Gn:void 0;for(o.set(e,t),o.set(t,e);++c-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(_);return t?t[1].split($):[]}(r),n)))}function Bo(e){var t=0,n=0;return function(){var r=un(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Po(e,t){var n=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,So(e,n)}));function ti(e){var t=On(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Ra((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return Sn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof En&&io(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[a],thisArg:void 0}),new Zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(a)}));var ai=pa((function(e,t,n){Pe.call(e,n)?++e[n]:Tn(e,n,1)}));var oi=Xa(Eo),ii=Xa(ko);function si(e,t){return(ki(e)?st:er)(e,Ua(t,3))}function ui(e,t){return(ki(e)?ut:tr)(e,Ua(t,3))}var fi=pa((function(e,t,n){Pe.call(e,n)?e[n].push(t):Tn(e,n,[t])}));var li=Cr((function(e,t,n){var a=-1,o="function"==typeof t,i=Ni(e)?r(e.length):[];return er(e,(function(e){i[++a]=o?ot(t,e,n):mr(e,t,n)})),i})),ci=pa((function(e,t,n){Tn(e,n,t)}));function di(e,t){return(ki(e)?vt:Wr)(e,Ua(t,3))}var vi=pa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ai=Cr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Er(e,or(t,1),[])})),hi=Ut||function(){return Te.Date.now()};function gi(e,t,n){return t=n?void 0:t,Ia(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function bi(e,t){var n;if("function"!=typeof t)throw new me(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var mi=Cr((function(e,t,n){var r=1;if(n.length){var a=Qt(n,qa(mi));r|=32}return Ia(e,r,t,n,a)})),pi=Cr((function(e,t,n){var r=3;if(n.length){var a=Qt(n,qa(pi));r|=32}return Ia(t,r,e,n,a)}));function wi(e,t,n){var r,a,i,s,u,f,l=0,c=!1,d=!1,v=!0;if("function"!=typeof e)throw new me(o);function A(t){var n=r,o=a;return r=a=void 0,l=t,s=e.apply(o,n)}function h(e){return l=e,u=wo(b,t),c?A(e):s}function g(e){var n=e-f;return void 0===f||n>=t||n<0||d&&e-l>=i}function b(){var e=hi();if(g(e))return m(e);u=wo(b,function(e){var n=t-(e-f);return d?sn(n,i-(e-l)):n}(e))}function m(e){return u=void 0,v&&r?A(e):(r=a=void 0,s)}function p(){var e=hi(),n=g(e);if(r=arguments,a=this,f=e,n){if(void 0===u)return h(f);if(d)return la(u),u=wo(b,t),A(f)}return void 0===u&&(u=wo(b,t)),s}return t=os(t)||0,Vi(n)&&(c=!!n.leading,i=(d="maxWait"in n)?on(os(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),p.cancel=function(){void 0!==u&&la(u),l=0,r=f=a=u=void 0},p.flush=function(){return void 0===u?s:m(hi())},p}var zi=Cr((function(e,t){return _n(e,1,t)})),yi=Cr((function(e,t,n){return _n(e,os(t)||0,n)}));function Bi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(o);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Bi.Cache||Nn),n}function Pi(e){if("function"!=typeof e)throw new me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bi.Cache=Nn;var Di=ua((function(e,t){var n=(t=1==t.length&&ki(t[0])?vt(t[0],xt(Ua())):vt(or(t,1),xt(Ua()))).length;return Cr((function(r){for(var a=-1,o=sn(r.length,n);++a=t})),Ei=pr(function(){return arguments}())?pr:function(e){return Ri(e)&&Pe.call(e,"callee")&&!Se.call(e,"callee")},ki=r.isArray,Ji=$e?xt($e):function(e){return Ri(e)&&vr(e)==B};function Ni(e){return null!=e&&Qi(e.length)&&!Fi(e)}function Gi(e){return Ri(e)&&Ni(e)}var Mi=tn||ou,Ci=et?xt(et):function(e){return Ri(e)&&vr(e)==c};function Ii(e){if(!Ri(e))return!1;var t=vr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ti(e)}function Fi(e){if(!Vi(e))return!1;var t=vr(e);return t==v||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Li(e){return"number"==typeof e&&e==rs(e)}function Qi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Vi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ri(e){return null!=e&&"object"==typeof e}var Yi=tt?xt(tt):function(e){return Ri(e)&&no(e)==h};function ji(e){return"number"==typeof e||Ri(e)&&vr(e)==g}function Ti(e){if(!Ri(e)||vr(e)!=b)return!1;var t=Ye(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Be.call(n)==Oe}var Si=nt?xt(nt):function(e){return Ri(e)&&vr(e)==m};var qi=rt?xt(rt):function(e){return Ri(e)&&no(e)==p};function Ui(e){return"string"==typeof e||!ki(e)&&Ri(e)&&vr(e)==w}function Ki(e){return"symbol"==typeof e||Ri(e)&&vr(e)==z}var _i=at?xt(at):function(e){return Ri(e)&&Qi(e.length)&&!!Fe[vr(e)]};var $i=Ja(Xr),es=Ja((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ni(e))return Ui(e)?jt(e):ba(e);if(_e&&e[_e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_e]());var t=no(e);return(t==h?Ft:t==p?Vt:Hs)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function as(e){return e?qn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Ki(e))return NaN;if(Vi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(S,"");var n=oe.test(e);return n||se.test(e)?Re(e.slice(2),n?2:8):ae.test(e)?NaN:+e}function is(e){return ma(e,zs(e))}function ss(e){return null==e?"":Kr(e)}var us=wa((function(e,t){if(co(t)||Ni(t))ma(t,ws(t),e);else for(var n in t)Pe.call(t,n)&&Vn(e,n,t[n])})),fs=wa((function(e,t){ma(t,zs(t),e)})),ls=wa((function(e,t,n,r){ma(t,zs(t),e,r)})),cs=wa((function(e,t,n,r){ma(t,ws(t),e,r)})),ds=Ra(Sn);var vs=Cr((function(e,t){e=he(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&so(t[0],t[1],a)&&(r=1);++n1),t})),ma(e,ja(e),n),r&&(n=Un(n,7,Qa));for(var a=t.length;a--;)$r(n,t[a]);return n}));var Ds=Ra((function(e,t){return null==e?{}:function(e,t){return kr(e,t,(function(t,n){return gs(e,n)}))}(e,t)}));function Xs(e,t){if(null==e)return{};var n=vt(ja(e),(function(e){return[e]}));return t=Ua(t),kr(e,n,(function(e,n){return t(e,n[0])}))}var Ws=Ca(ws),Os=Ca(zs);function Hs(e){return null==e?[]:Zt(e,ws(e))}var xs=Pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Zs(t):t)}));function Zs(e){return Is(ss(e).toLowerCase())}function Es(e){return(e=ss(e))&&e.replace(fe,Gt).replace(ke,"")}var ks=Pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Js=Pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ba("toLowerCase");var Gs=Pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ms=Pa((function(e,t,n){return e+(n?" ":"")+Is(t)}));var Cs=Pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Is=Ba("toUpperCase");function Fs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ls=Cr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ii(e)?e:new de(e)}})),Qs=Ra((function(e,t){return st(t,(function(t){t=Xo(t),Tn(e,t,mi(e[t],e))})),e}));function Vs(e){return function(){return e}}var Rs=Wa(),Ys=Wa(!0);function js(e){return e}function Ts(e){return Br("function"==typeof e?e:Un(e,1))}var Ss=Cr((function(e,t){return function(n){return mr(n,e,t)}})),qs=Cr((function(e,t){return function(n){return mr(e,n,t)}}));function Us(e,t,n){var r=ws(t),a=lr(t,r);null!=n||Vi(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=lr(t,ws(t)));var o=!(Vi(n)&&"chain"in n&&!n.chain),i=Fi(e);return st(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=ba(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function Ks(){}var _s=Za(vt),$s=Za(ft),eu=Za(bt);function tu(e){return uo(e)?Dt(Xo(e)):function(e){return function(t){return cr(t,e)}}(e)}var nu=ka(),ru=ka(!0);function au(){return[]}function ou(){return!1}var iu=xa((function(e,t){return e+t}),0),su=Ga("ceil"),uu=xa((function(e,t){return e/t}),1),fu=Ga("floor");var lu,cu=xa((function(e,t){return e*t}),1),du=Ga("round"),vu=xa((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new me(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=gi,On.assign=us,On.assignIn=fs,On.assignInWith=ls,On.assignWith=cs,On.at=ds,On.before=bi,On.bind=mi,On.bindAll=Qs,On.bindKey=pi,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ki(e)?e:[e]},On.chain=ti,On.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:on(rs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,i=0,s=r(_t(a/t));oa?0:a+n),(r=void 0===r||r>a?a:rs(r))<0&&(r+=a),r=n>r?0:as(r);n>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Si(t))&&!(t=Kr(t))&&It(e)?fa(jt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new me(o);return t=null==t?0:on(rs(t),0),Cr((function(n){var r=n[t],a=fa(n,0,t);return r&&At(a,r),ot(e,this,a)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Yr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Yr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Yr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ta(e,Ua(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ta(e,Ua(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new me(o);return Vi(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),wi(e,t,{leading:r,maxWait:t,trailing:a})},On.thru=ni,On.toArray=ts,On.toPairs=Ws,On.toPairsIn=Os,On.toPath=function(e){return ki(e)?vt(e,Xo):Ki(e)?[e]:ba(Do(ss(e)))},On.toPlainObject=is,On.transform=function(e,t,n){var r=ki(e),a=r||Mi(e)||_i(e);if(t=Ua(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:Vi(e)&&Fi(o)?Hn(Ye(e)):{}}return(a?st:ur)(e,(function(e,r,a){return t(n,e,r,a)})),n},On.unary=function(e){return gi(e,1)},On.union=Ro,On.unionBy=Yo,On.unionWith=jo,On.uniq=function(e){return e&&e.length?_r(e):[]},On.uniqBy=function(e,t){return e&&e.length?_r(e,Ua(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?_r(e,void 0,t):[]},On.unset=function(e,t){return null==e||$r(e,t)},On.unzip=To,On.unzipWith=So,On.update=function(e,t,n){return null==e?e:ea(e,t,ia(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ea(e,t,ia(n),r)},On.values=Hs,On.valuesIn=function(e){return null==e?[]:Zt(e,zs(e))},On.without=qo,On.words=Fs,On.wrap=function(e,t){return Xi(ia(t),e)},On.xor=Uo,On.xorBy=Ko,On.xorWith=_o,On.zip=$o,On.zipObject=function(e,t){return aa(e||[],t||[],Vn)},On.zipObjectDeep=function(e,t){return aa(e||[],t||[],Lr)},On.zipWith=ei,On.entries=Ws,On.entriesIn=Os,On.extend=fs,On.extendWith=ls,Us(On,On),On.add=iu,On.attempt=Ls,On.camelCase=xs,On.capitalize=Zs,On.ceil=su,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),qn(os(e),t,n)},On.clone=function(e){return Un(e,4)},On.cloneDeep=function(e){return Un(e,5)},On.cloneDeepWith=function(e,t){return Un(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Un(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Kn(e,t,ws(t))},On.deburr=Es,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=uu,On.endsWith=function(e,t,n){e=ss(e),t=Kr(t);var r=e.length,a=n=void 0===n?r:qn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},On.eq=Hi,On.escape=function(e){return(e=ss(e))&&I.test(e)?e.replace(M,Mt):e},On.escapeRegExp=function(e){return(e=ss(e))&&T.test(e)?e.replace(j,"\\$&"):e},On.every=function(e,t,n){var r=ki(e)?ft:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Ua(t,3))},On.find=oi,On.findIndex=Eo,On.findKey=function(e,t){return pt(e,Ua(t,3),ur)},On.findLast=ii,On.findLastIndex=ko,On.findLastKey=function(e,t){return pt(e,Ua(t,3),fr)},On.floor=fu,On.forEach=si,On.forEachRight=ui,On.forIn=function(e,t){return null==e?e:ir(e,Ua(t,3),zs)},On.forInRight=function(e,t){return null==e?e:sr(e,Ua(t,3),zs)},On.forOwn=function(e,t){return e&&ur(e,Ua(t,3))},On.forOwnRight=function(e,t){return e&&fr(e,Ua(t,3))},On.get=hs,On.gt=xi,On.gte=Zi,On.has=function(e,t){return null!=e&&ro(e,t,hr)},On.hasIn=gs,On.head=No,On.identity=js,On.includes=function(e,t,n,r){e=Ni(e)?e:Hs(e),n=n&&!r?rs(n):0;var a=e.length;return n<0&&(n=on(a+n,0)),Ui(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&zt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:rs(n);return a<0&&(a=on(r+a,0)),zt(e,t,a)},On.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=qi,On.isString=Ui,On.isSymbol=Ki,On.isTypedArray=_i,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ri(e)&&no(e)==y},On.isWeakSet=function(e){return Ri(e)&&"[object WeakSet]"==vr(e)},On.join=function(e,t){return null==e?"":rn.call(e,t)},On.kebabCase=ks,On.last=Io,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return void 0!==n&&(a=(a=rs(n))<0?on(r+a,0):sn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):wt(e,Bt,a,!0)},On.lowerCase=Js,On.lowerFirst=Ns,On.lt=$i,On.lte=es,On.max=function(e){return e&&e.length?rr(e,js,Ar):void 0},On.maxBy=function(e,t){return e&&e.length?rr(e,Ua(t,2),Ar):void 0},On.mean=function(e){return Pt(e,js)},On.meanBy=function(e,t){return Pt(e,Ua(t,2))},On.min=function(e){return e&&e.length?rr(e,js,Xr):void 0},On.minBy=function(e,t){return e&&e.length?rr(e,Ua(t,2),Xr):void 0},On.stubArray=au,On.stubFalse=ou,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=cu,On.nth=function(e,t){return e&&e.length?Zr(e,rs(t)):void 0},On.noConflict=function(){return Te._===this&&(Te._=He),this},On.noop=Ks,On.now=hi,On.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Yt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Ea($t(a),n)+e+Ea(_t(a),n)},On.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Yt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=ln();return sn(e+a*(t-e+Ve("1e-"+((a+"").length-1))),t)}return Gr(e,t)},On.reduce=function(e,t,n){var r=ki(e)?ht:Wt,a=arguments.length<3;return r(e,Ua(t,4),n,a,er)},On.reduceRight=function(e,t,n){var r=ki(e)?gt:Wt,a=arguments.length<3;return r(e,Ua(t,4),n,a,tr)},On.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Mr(ss(e),t)},On.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,a=(t=sa(t,e)).length;for(a||(a=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var a=Ht(r,t=Ua(t));++n=o)return e;var s=n-Yt(r);if(s<1)return r;var u=i?fa(i,0,s).join(""):e.slice(0,s);if(void 0===a)return u+r;if(i&&(s+=u.length-s),Si(a)){if(e.slice(s).search(a)){var f,l=u;for(a.global||(a=ge(a.source,ss(re.exec(a))+"g")),a.lastIndex=0;f=a.exec(l);)var c=f.index;u=u.slice(0,void 0===c?s:c)}}else if(e.indexOf(Kr(a),s)!=s){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+r},On.unescape=function(e){return(e=ss(e))&&C.test(e)?e.replace(G,Tt):e},On.uniqueId=function(e){var t=++De;return ss(e)+t},On.upperCase=Cs,On.upperFirst=Is,On.each=si,On.eachRight=ui,On.first=No,Us(On,(lu={},ur(On,(function(e,t){Pe.call(On.prototype,t)||(lu[t]=e)})),lu),{chain:!1}),On.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){En.prototype[e]=function(n){n=void 0===n?1:on(rs(n),0);var r=this.__filtered__&&!t?new En(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},En.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;En.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");En.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");En.prototype[e]=function(){return this.__filtered__?new En(this):this[n](1)}})),En.prototype.compact=function(){return this.filter(js)},En.prototype.find=function(e){return this.filter(e).head()},En.prototype.findLast=function(e){return this.reverse().find(e)},En.prototype.invokeMap=Cr((function(e,t){return"function"==typeof e?new En(this):this.map((function(n){return mr(n,e,t)}))})),En.prototype.reject=function(e){return this.filter(Pi(Ua(e)))},En.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new En(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},En.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},En.prototype.toArray=function(){return this.take(4294967295)},ur(En.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(On.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,s=t instanceof En,u=i[0],f=s||ki(t),l=function(e){var t=a.apply(On,At([e],i));return r&&c?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(s=f=!1);var c=this.__chain__,d=!!this.__actions__.length,v=o&&!c,A=s&&!d;if(!o&&f){t=A?t:new En(this);var h=e.apply(t,i);return h.__actions__.push({func:ni,args:[l],thisArg:void 0}),new Zn(h,c)}return v&&A?e.apply(this,i):(h=this.thru(l),v?r?h.value()[0]:h.value():h)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(ki(a)?a:[],e)}return this[n]((function(n){return t.apply(ki(n)?n:[],e)}))}})),ur(En.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Pe.call(pn,r)||(pn[r]=[]),pn[r].push({name:t,func:n})}})),pn[Oa(void 0,2).name]=[{name:"wrapper",func:void 0}],En.prototype.clone=function(){var e=new En(this.__wrapped__);return e.__actions__=ba(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ba(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ba(this.__views__),e},En.prototype.reverse=function(){if(this.__filtered__){var e=new En(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},En.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ki(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof xn;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof En){var t=e;return this.__actions__.length&&(t=new En(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Vo],thisArg:void 0}),new Zn(t,this.__chain__)}return this.thru(Vo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return na(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,_e&&(On.prototype[_e]=function(){return this}),On}();Te._=St,void 0===(a=function(){return St}.call(t,n,t,r))||(r.exports=a)}).call(this)}).call(this,n(12),n(13)(e))},,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(2),a=n(15);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){var r=n(3),a=n(4),o=n(5),i=n(6);t=r(!1);var s=a(o),u=a(i);t.push([e.i,"@font-face {\n font-family: 'Noto Sans TC';\n src: url("+s+")\n format('woff2');\n}\n@font-face {\n font-family: 'Noto Sans SC';\n src: url("+u+")\n format('woff2');\n}\n\n#tooltip {\n position: absolute;\n width: auto;\n height: auto;\n padding: 5px;\n background-color: white;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n pointer-events: none;\n font-family: sans-serif;\n font-size: 12px;\n z-index: 2;\n}\n\n.tooltipTable {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n border: 0px;\n border-collapse: collapse;\n table-layout: auto;\n}\n\n.focus {\n font-weight: bold;\n}\n\n.hidden {\n display: none;\n}\n\n.hover {\n background-color: #ffffbb;\n}\n\n.reportTable {\n font-family: Open Sans, Helvetica, Arial, Noto Sans TC, Noto Sans SC,\n sans-serif;\n border-collapse: separate;\n border-spacing: 3px;\n table-layout: fixed;\n}\n\nth.headerCell {\n border-bottom: 1px solid #000000 !important;\n font-weight: bold;\n padding: 5px;\n}\n\n.headerCell.merged {\n text-align: center !important;\n background-color: #ffffff !important;\n}\n\n.headerCell.transposed.dimension.merged {\n text-align: center !important;\n background-color: #ffffff !important;\n}\n\n.indexCell.transposed {\n font-weight: bold;\n}\n\n.indexCell.transposed.merged {\n background-color: #ffffff !important;\n}\n\n.rowCell {\n vertical-align: super;\n padding-left: 5px;\n}\n\n.rowCell.merged {\n background-color: #ffffff !important;\n}\n\n.rowCell.transposed.dimension.merged {\n background-color: #ffffff !important;\n}\n\n.nonNumeric {\n text-align: left;\n}\n\n.numeric {\n text-align: right;\n}\n\n.negative {\n color: red;\n}\n\n.estimate {\n color: darkgray !important;\n}\n\n.singleIndex {\n padding-left: 15px !important;\n}\n\n.subtotal {\n font-style: italic;\n font-weight: bold !important;\n}\n\n.total {\n border-top: 2px solid #000000;\n font-weight: bold !important;\n}\n\n.total.transposed {\n border-top: 0px !important;\n}\n\n.dimension.transposed {\n font-weight: bold;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n padding: 4px;\n}\n\n.headerCell.animated {\n border-bottom: 4px solid #ffffff;\n box-shadow: inset 0px -1px 0px 0px #000000 !important;\n font-weight: bold;\n padding: 5px;\n box-sizing: border-box;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(17);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){var r=n(3),a=n(4),o=n(5),i=n(6);t=r(!1);var s=a(o),u=a(i);t.push([e.i,"@font-face {\n font-family: 'Noto Sans TC';\n src: url("+s+")\n format('woff2');\n}\n@font-face {\n font-family: 'Noto Sans SC';\n src: url("+u+")\n format('woff2');\n}\n\n#tooltip {\n position: absolute;\n width: auto;\n height: auto;\n padding: 5px;\n background-color: white;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n pointer-events: none;\n font-family: sans-serif;\n font-size: 12px;\n z-index: 2;\n}\n\n.tooltipTable {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n border: 0px;\n border-collapse: collapse;\n table-layout: auto;\n}\n\n.focus {\n font-weight: bold;\n}\n\n.hidden {\n display: none;\n}\n\n.hover {\n background-color: #ffffbb;\n}\n\n.reportTable {\n font-family: Open Sans, Helvetica, Arial, Noto Sans TC, Noto Sans SC,\n sans-serif;\n color: #696969;\n border-collapse: collapse;\n border-spacing: 3px;\n table-layout: fixed;\n}\n\nth.headerCell {\n background-color: #ccd8e4;\n padding: 5px;\n border-bottom: 1px solid #bdc3c7;\n}\n\n.headerCell.dimension {\n background-color: #e4ecf3;\n border-right: 1px solid #bdc3c7;\n}\n\n.headerCell.pivot {\n background-color: #ccd8e4;\n border-right: 1px solid #bdc3c7;\n}\n\n.headerCell.measure {\n background-color: #e4d0bd;\n border-left: 1px solid #bdc3c7;\n}\n\n.headerCell.measure.calculation {\n background-color: #c9dfc5;\n border-left: 1px solid #bdc3c7;\n}\n\n.headerCell.transposed.dimension {\n background-color: #e4ecf3;\n}\n\n.headerCell.transposed.dimension.merged {\n background-color: #e4ecf3 !important;\n}\n\n/* .headerCell.dimension.headerRow {\n background-color: #ccd8e4;\n border-right: 1px solid #BDC3C7;\n}\n\n.headerCell.pivot.headerRow {\n background-color: #ccd8e4;\n border-right: 1px solid #BDC3C7;\n}\n\n.headerCell.measure.headerRow {\n background-color: #ccd8e4;\n border-left: 1px solid #BDC3C7;\n} */\n\n.rowCell {\n vertical-align: super;\n padding-left: 5px;\n border-bottom: 1px solid #bdc3c7;\n}\n\n.rowCell.merged {\n background-color: #ffffff !important;\n}\n\n.indexCell.transposed {\n font-weight: bold;\n}\n\n.indexCell.transposed.pivot {\n background-color: #ccd8e4;\n}\n\n.indexCell.transposed.dimension {\n background-color: #e4ecf3;\n}\n\n.indexCell.transposed.measure {\n background-color: #e4d0bd;\n}\n\n.indexCell.transposed.calculation {\n background-color: #c9dfc5;\n}\n\n.indexCell.transposed.pivot.merged {\n background-color: #ccd8e4 !important;\n}\n\n.indexCell.transposed.dimension.merged {\n background-color: #e4ecf3 !important;\n}\n\n.indexCell.transposed.measure.merged {\n background-color: #e4d0bd !important;\n}\n\n.indexCell.transposed.calculation.merged {\n background-color: #c9dfc5 !important;\n}\n\n.nonNumeric {\n text-align: left;\n}\n\n.numeric {\n text-align: right;\n}\n\n.negative {\n color: red;\n}\n\n.estimate {\n color: darkgray !important;\n}\n\n.singleIndex {\n padding-left: 15px !important;\n}\n\n.subtotal {\n font-style: italic;\n font-weight: bold;\n background: #d3d3d3;\n}\n\n.total {\n border-top: 2px solid #696969 !important;\n font-weight: bold !important;\n}\n\n.total.transposed {\n border-top: 0px !important;\n background: #d3d3d3;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n margin: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(19);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){var r=n(3),a=n(4),o=n(5),i=n(6);t=r(!1);var s=a(o),u=a(i);t.push([e.i,"@font-face {\n font-family: 'Noto Sans TC';\n src: url("+s+")\n format('woff2');\n}\n@font-face {\n font-family: 'Noto Sans SC';\n src: url("+u+")\n format('woff2');\n}\n\n#tooltip {\n position: absolute;\n width: auto;\n height: auto;\n padding: 5px;\n background-color: white;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n pointer-events: none;\n font-family: sans-serif;\n font-size: 12px;\n z-index: 2;\n}\n\n.tooltipTable {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n border: 0px;\n border-collapse: collapse;\n table-layout: auto;\n}\n\n.focus {\n font-weight: bold;\n}\n\n.hidden {\n display: none;\n}\n\n.hover {\n background-color: #ffffbb;\n}\n\n.reportTable {\n font-family: Open Sans, Helvetica, Arial, Noto Sans SC, Noto Sans TC,\n sans-serif;\n border: 1px solid #cccccc;\n border-collapse: collapse;\n border-spacing: 3px;\n}\n\ntable.reportTable th {\n border: 1px solid #cccccc;\n border-bottom: 1px solid #000000 !important;\n padding: 5px;\n}\n\ntable.reportTable td {\n vertical-align: super;\n padding: 5px;\n border: 1px solid #cccccc;\n border-collapse: collapse;\n}\n\n.headerCell {\n border-bottom: 1px solid #000000 !important;\n font-weight: bold;\n padding: 5px;\n}\n\n.indexCell.transposed {\n font-weight: bold;\n}\n\n.indexCell.transposed.merged {\n background-color: #ffffff !important;\n}\n\n.rowCell {\n vertical-align: super;\n padding-left: 5px;\n}\n\n.nonNumeric {\n text-align: left;\n}\n\n.numeric {\n text-align: right;\n}\n\n.negative {\n color: red;\n}\n\n.estimate {\n color: darkgray !important;\n}\n\n.singleIndex {\n padding-left: 15px !important;\n}\n\n.subtotal {\n font-style: italic;\n font-weight: bold;\n background: #d3d3d3;\n}\n\n.total {\n border-top: 2px solid #000000 !important;\n font-weight: bold !important;\n}\n\n.total.transposed {\n border-top: 0px !important;\n background: #d3d3d3;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n margin: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(21);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){(t=n(3)(!1)).push([e.i,"#visContainer {\n position: absolute;\n z-index: 0;\n}\n\n#visSvg {\n position: absolute;\n z-index: 1;\n}\n\ntable.reportTable {\n width: 100%;\n table-layout: fixed;\n opacity: 0;\n transition: opacity 1000ms;\n}\n\ntable.reportTable.reveal {\n opacity: 1;\n transition: opacity 1000ms;\n}\n\ntable.reportTable th {\n max-width: 0px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n}\n\ntable.reportTable td {\n max-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n margin: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(23);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){(t=n(3)(!1)).push([e.i,"#visContainer {\n position: absolute;\n z-index: 0;\n}\n\n#visSvg {\n position: absolute;\n z-index: 1;\n}\n\ntable.reportTable {\n width: 100%;\n table-layout: auto;\n opacity: 0;\n transition: opacity 1000ms;\n}\n\ntable.reportTable.reveal {\n opacity: 1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),o=n(7);class i{constructor({vis:e,queryResponseField:t}){this.vis=e,this.name=t.name,this.view=t.view_label||"",this.label=t.label_short||t.label,this.is_numeric=void 0!==t.is_numeric&&t.is_numeric,this.is_array=["list","number_list","location","tier"].includes(t.type),this.value_format=t.value_format?t.value_format:"",this.geo_type="",("location"===t.type||t.map_layer)&&(this.geo_type="location"===t.type?"location":t.map_layer.name),this.hide=!1,void 0!==this.vis.config["hide|"+this.name]&&this.vis.config["hide|"+this.name]&&(this.hide=!0),this.style="";var n=this.vis.config["style|"+this.name];void 0!==n&&("hide"===n?this.hide=!0:this.style=n),this.heading="",this.short_name="",this.unit="",void 0!==t.tags&&t.tags.forEach(e=>{var t=e.split(":");if("vis-tools"===t[0])switch(t[1]){case"heading":this.heading=t[2];break;case"short_name":this.short_name=t[2];break;case"unit":this.unit=t[2];break;case"style":this.style=t[2]}})}}class s extends i{constructor({vis:e,queryResponseField:t}){super({vis:e,queryResponseField:t}),this.type="dimension",this.align="left"}}class u extends i{constructor({vis:e,queryResponseField:t}){super({vis:e,queryResponseField:t}),this.type="pivot",this.align="center"}}class f extends i{constructor({vis:e,queryResponseField:t,can_pivot:n}){super({vis:e,queryResponseField:t}),this.type="measure",this.align="right",this.is_table_calculation=void 0!==t.is_table_calculation&&t.is_table_calculation,this.calculation_type=t.type,this.is_turtle=void 0!==t.is_turtle&&t.is_turtle,this.can_pivot=n}}class l{constructor({column:e,type:t,label:n=null,align:r="",cell_style:a=[],modelField:o={name:"",label:"",view:""},pivotData:i={}}={column:e,type:t,label:n,align:r,cell_style:a,modelField:o,pivotData:i}){this.id=[e.id,t].join("."),this.column=e,this.type=t,this.colspan=1,this.rowspan=1,this.headerRow=!0,this.cell_style=["headerCell"].concat(a),this.label=n,this.align=r||(this.column.modelField.is_numeric?"right":"left"),this.modelField=o,this.pivotData=i,o.type&&this.cell_style.push(o.type),o.is_table_calculation&&this.cell_style.push("calculation")}}class c{constructor({keys:e,values:t,types:n=[]}){if(e.length===t.length){this.keys=e,this.values=t,this.types=n;var r=[],a=[];this.values.forEach((e,t)=>{this.types[t]=void 0!==n[t]?n[t]:"line_item","line_item"===this.types[t]?(r.push(e),a.push(e)):"subtotal"===this.types[t]&&a.push(e)}),this.min_for_display=Math.min(...a),this.max_for_display=Math.max(...a),this.min=Math.min(...r),this.max=Math.max(...r),this.sum=r.reduce((e,t)=>e+t,0),this.count=r.length,this.avg=r.length>0?this.sum/r.length:null}}}class d{constructor({column:e,row:t,sort_value:n,series:r}){this.column=e,this.row=t,this.sort_value=n,this.series=new c(r)}toString(){var e="";return this.series.keys.forEach((t,n)=>{e+=t+":";var r=""===this.column.modelField.value_format?this.series.values[n].toString():SSF.format(this.column.modelField.value_format,this.series.values[n]);e+=r+" "}),e}}class v{constructor({column:e,is_numeric:t,series:n}){this.column=e,this.is_numeric=t,this.series=new c(n)}}class A{constructor({value:e,rendered:t=null,html:n=null,links:r=[],cell_style:a=[],align:o="right",rowspan:i=1,colspan:s=1,rowid:u="",colid:f=""}={}){this.value=e,this.rendered=t,this.html=n,this.links=r,this.cell_style=["rowCell"].concat(a),this.align=o,this.rowspan=i,this.colspan=s,this.colid=f,this.rowid=u,this.id=f&&u?[f,u].join("."):null,null===this.value&&"∞"!==this.rendered&&(this.rendered="∅")}}class h{constructor(e="line_item"){this.id="",this.hide=!1,this.type=e,this.sort=[],this.data={}}sortArray(){return this.sort}}class g{constructor(e,t,n){this.id=e,this.vis=t,this.modelField=n,this.transposed=!1,this.idx=0,this.pos=0,this.levels=[],this.pivot_key="",this.unit=n.unit||"",this.hide=n.hide||!1,this.isVariance=!1,this.variance_type=null,this.pivoted=!1,this.isRowTotal=!1,this.super=!1,this.subtotal=!1,this.subtotal_data={},this.series=null,this.sort=[],this.colspans=[]}getHeaderCellLabel(e){var t=this.levels[e];if(null!==t.label)var n=t.label;else{n=t.modelField.label;var r=this.vis.config["heading|"+t.modelField.name],a=this.vis.config["label|"+t.modelField.name];if("heading"===t.type)return n=void 0!==r&&r||t.modelField.heading;"field"===t.type&&(n=this.vis.useShortName&&t.modelField.short_name||t.modelField.label,void 0!==a&&a!==this.modelField.label&&(n=a||n),this.isVariance&&(n=this.vis.groupVarianceColumns?2===this.vis.pivot_values.length?"absolute"===this.variance_type?n+" #":n+" %":"absolute"===this.variance_type?n+" Var #":n+" Var %":"absolute"===this.variance_type?"Var #":"Var %"),void 0!==this.vis.useViewName&&this.vis.useViewName&&(n=[this.modelField.view,n].join(" "))),"pivot"===t.type&&this.isVariance&&this.vis.groupVarianceColumns&&(n=2===this.vis.pivot_values.length?"Variance":"Var "+n)}return n}getHeaderCellLabelByType(e){for(var t=0;t{e.label=null===e.label?this.getHeaderCellLabel(t):e.label})}getHeaderData(){var e={};return this.modelField.vis.headers.forEach((t,n)=>{e[t.type]=this.levels[n]}),e}}const b={theme:{section:"Theme",type:"string",display:"select",label:"Theme",values:[{Traditional:"traditional"},{Looker:"looker"},{Contemporary:"contemporary"},{"Use custom theme":"custom"}],default:"traditional",order:1},customTheme:{section:"Theme",type:"string",label:"Load custom CSS from:",default:"",order:2},layout:{section:"Theme",type:"string",display:"select",label:"Layout",values:[{Even:"fixed"},{Auto:"auto"}],default:"fixed",order:3},minWidthForIndexColumns:{section:"Theme",type:"boolean",label:"Automatic column width on index",default:!0,order:3.5},headerFontSize:{section:"Theme",type:"number",display_size:"half",label:"Header Size",default:12,order:4},bodyFontSize:{section:"Theme",type:"number",display_size:"half",label:"Body Size",default:12,order:5},showTooltip:{section:"Theme",type:"boolean",display_size:"half",label:"Show tooltip",default:!0,order:6},showHighlight:{section:"Theme",type:"boolean",display_size:"half",label:"Show highlight",default:!0,order:7},columnOrder:{},rowSubtotals:{section:"Table",type:"boolean",label:"Row Subtotals",display_size:"half",default:!1,order:1},colSubtotals:{section:"Table",type:"boolean",label:"Col Subtotals",display_size:"half",default:!1,order:2},spanRows:{section:"Table",type:"boolean",label:"Merge Dims",display_size:"half",default:!0,order:3},spanCols:{section:"Table",type:"boolean",label:"Merge Headers",display_size:"half",default:!0,order:4},calculateOthers:{section:"Table",type:"boolean",label:"Calculate Others Row",default:!0,order:4.5},sortColumnsBy:{section:"Table",type:"string",display:"select",label:"Sort Columns By",values:[{Pivots:"pivots"},{Measures:"measures"}],default:"pivots",order:6},useViewName:{section:"Table",type:"boolean",label:"Include View Name",default:!1,order:7},useHeadings:{section:"Table",type:"boolean",label:"Use Headings",default:!1,order:8},useShortName:{section:"Table",type:"boolean",label:"Use Short Name (from model tags)",default:!1,order:9},useUnit:{section:"Table",type:"boolean",label:"Use Unit (when reporting in 000s)",default:!1,order:9.5},groupVarianceColumns:{section:"Table",type:"boolean",label:"Group Variance Columns",default:!1,order:10},genericLabelForSubtotals:{section:"Table",type:"boolean",label:"Label all subtotal rows as 'Subtotal'",default:!1,order:11},indexColumn:{section:"Dimensions",type:"boolean",label:"Use Last Field Only",default:!1,order:0},transposeTable:{section:"Table",type:"boolean",label:"Transpose Table",default:!1,order:100}};class m{constructor(e,t,n){this.visId="report_table",this.config=n,this.headers=[],this.dimensions=[],this.measures=[],this.columns=[],this.data=[],this.subtotals_data={},this.transposed_headers=[],this.transposed_columns=[],this.transposed_data=[],this.pivot_fields=[],this.pivot_values=void 0!==t.pivots?t.pivots:[],this.variances=[],this.column_series=[],this.firstVisibleDimension="",this.useIndexColumn=n.indexColumn||!1,this.useHeadings=n.useHeadings||!1,this.useShortName=n.useShortName||!1,this.useViewName=n.useViewName||!1,this.addRowSubtotals=n.rowSubtotals||!1,this.addSubtotalDepth=parseInt(n.subtotalDepth)||this.dimensions.length-1,this.addColSubtotals=n.colSubtotals||!1,this.spanRows=n.spanRows,this.spanCols=n.spanCols,this.sortColsBy=n.sortColumnsBy||"pivots",this.fieldLevel=0,this.groupVarianceColumns=n.groupVarianceColumns||!1,this.minWidthForIndexColumns=n.minWidthForIndexColumns||!1,this.showTooltip=n.showTooltip||!1,this.showHighlight=n.showHighlight||!1,this.genericLabelForSubtotals=n.genericLabelForSubtotals||!1,this.sorts=t.sorts,this.hasTotals=void 0!==t.totals_data,this.calculateOthers=void 0!==t.truncated&&(t.truncated&&n.calculateOthers),this.hasSubtotals=void 0!==t.subtotals_data,this.hasRowTotals=t.has_row_totals||!1,this.hasPivots=void 0!==t.pivots,this.hasSupers=void 0!==t.fields.supermeasure_like&&Boolean(t.fields.supermeasure_like.length),this.transposeTable=n.transposeTable||!1;this.addPivotsAndHeaders(t),this.addDimensions(t,0),this.addMeasures(t,0),this.checkVarianceCalculations(),this.useIndexColumn&&this.addIndexColumn(t),this.hasSubtotals&&this.checkSubtotalsData(t),this.addRows(e),this.addColumnSeries(),this.hasTotals&&this.buildTotals(t),this.spanRows&&this.setRowSpans(),this.addRowSubtotals&&this.addSubTotals(),this.addColSubtotals&&2===this.pivot_fields.length&&this.addColumnSubTotals(),this.variances&&this.addVarianceColumns(),this.sortColumns(),this.columns.forEach(e=>e.setHeaderCellLabels()),this.spanCols&&this.setColSpans(),this.applyFormatting(),this.transposeTable&&(this.transposeDimensionsIntoHeaders(),this.transposeRowsIntoColumns(),this.transposeColumnsIntoRows()),this.validateConfig(),this.getTableColumnGroups()}static getCoreConfigOptions(){return b}getConfigOptions(){var e=b,t=[];return this.dimensions.forEach((n,r)=>{if(e["label|"+n.name]={section:"Dimensions",type:"string",label:n.label,default:n.label,order:10*r+1},e["heading|"+n.name]={section:"Dimensions",type:"string",label:"Heading",default:"",order:10*r+2},e["hide|"+n.name]={section:"Dimensions",type:"boolean",label:"Hide",display_size:"third",default:!1,order:10*r+3},r{e["label|"+t.name]={section:"Measures",type:"string",label:t.label,default:t.label,order:100+10*n+1},e["heading|"+t.name]={section:"Measures",type:"string",label:"Heading for "+t.label,default:"",order:100+10*n+2},e["style|"+t.name]={section:"Measures",type:"string",label:"Style",display:"select",display_size:"third",values:[{Normal:"normal"},{"Black/Red":"black_red"},{Subtotal:"subtotal"},{Hidden:"hide"}],default:"normal",order:100+10*n+3},e["reportIn|"+t.name]={section:"Measures",type:"string",label:"Report In",display:"select",display_size:"third",values:[{"Absolute Figures":"1"},{Thousands:"1000"},{Millions:"1000000"},{Billions:"1000000000"}],default:"1",order:100+10*n+3.5},e["unit|"+t.name]={section:"Measures",type:"string",label:"Unit",display_size:"third",default:"",order:100+10*n+3.7};var r=[];if(t.can_pivot){var a=[];this.pivot_fields.forEach((e,t)=>{if(1===this.pivot_fields.length||1===t||this.config.colSubtotals){var n={};n["By "+e.label]=e.name,a.push(n)}}),r=r.concat(a)}this.measures.forEach((e,a)=>{var o=t.can_pivot===e.can_pivot||this.hasRowTotals&&!e.is_table_calculation;if(n!=a&&o){var i={};i["Vs. "+e.label]=e.name,r.push(i)}}),r.unshift({"(none)":"no_variance"}),e["comparison|"+t.name]={section:"Measures",type:"string",label:"Comparison",display:"select",values:r,default:"no_variance",order:100+10*n+5},e["switch|"+t.name]={section:"Measures",type:"boolean",label:"Switch",display_size:"third",default:!1,order:100+10*n+6},e["var_num|"+t.name]={section:"Measures",type:"boolean",label:"Var #",display_size:"third",default:!0,order:100+10*n+7},e["var_pct|"+t.name]={section:"Measures",type:"boolean",label:"Var %",display_size:"third",default:!1,order:100+10*n+8}}),e}addPivotsAndHeaders(e){e.fields.pivots.forEach((e,t)=>{var n=new u({vis:this,queryResponseField:e});this.pivot_fields.push(n),this.headers.push({type:"pivot"+t,modelField:n})});var t=[];(!this.transposeTable||e.fields.measures.length>0)&&t.push({type:"field",modelField:{label:"(will be replaced by field for column)"}}),"pivots"===this.sortColsBy?this.headers.push(...t):this.headers.unshift(...t);for(var n=0;n{var n=new s({vis:this,queryResponseField:e});n.hide=!!this.useIndexColumn||n.hide,this.dimensions.push(n);var r=new g(n.name,this,n);r.idx=t,r.sort.push({name:"section",value:0}),this.headers.forEach(e=>{switch(e.type){case"pivot0":case"pivot1":var a=new u({vis:this,queryResponseField:e.modelField}),o=new l({column:r,type:e.type,modelField:a});o.label="",r.levels.push(o),r.sort.push({name:e.type,value:0});break;case"heading":r.levels.push(new l({column:r,type:"heading",modelField:n}));break;case"field":r.levels.push(new l({column:r,type:"field",modelField:n})),r.sort.push({name:"col_idx",value:t})}}),this.columns.push(r),t+=10});for(var n=0;n{var t=new f({vis:this,queryResponseField:e,can_pivot:!0}),n=this.config["reportIn|"+e.name],r=this.config["unit|"+e.name];void 0!==n&&"1"!==n&&(t.value_format="#,##0",void 0!==r&&""!==r&&(t.unit=r)),this.measures.push(t)}),this.hasPivots?this.pivot_values.forEach(e=>{var n="$$$_row_total_$$$"===e.key;this.measures.forEach((r,a)=>{if(!n||n&&!r.is_table_calculation){var o=new g([e.key,r.name].join("."),this,r);o.pivoted=!n,o.isRowTotal=n,o.pivot_key=e.key,o.idx=t;var i=[],s=[];this.headers.forEach(t=>{switch(t.type){case"pivot0":case"pivot1":var a=n?"":e.metadata[t.modelField.name].rendered||e.metadata[t.modelField.name].value;n&&t.type.startsWith("pivot")&&t.type==="pivot"+(this.pivot_fields.length-1)&&(a="Row Total"),o.levels.push(new l({column:o,type:t.type,modelField:{label:a},pivotData:e})),s.push(e.sort_values[t.modelField.name]),o.pivoted?i.push({name:t.modelField.name,value:e.sort_values[t.modelField.name]}):i.push({name:t.modelField.name,value:0});break;case"heading":o.levels.push(new l({column:o,type:"heading",modelField:r}));break;case"field":o.levels.push(new l({column:o,type:"field",modelField:r}))}});var u=[];if(u.push({name:"section",value:n?2:1}),"measures"===this.sortColsBy&&u.push({name:"measure_idx",value:a}),2===this.pivot_fields.length)if(this.addColSubtotals)u=u.concat(i);else{var f=[];this.sorts.forEach(e=>{this.pivot_fields.forEach(t=>{t.name===e.name&&i.forEach(e=>{e.name===t.name&&f.push(e.name)})})}),u=f[0]===this.pivot_fields[0].name?u.concat(i):u.concat(i.reverse())}else u.push(i[0]);"pivots"===this.sortColsBy&&u.push({name:"measure_idx",value:a}),o.sort=u,this.columns.push(o),t+=10}})}):this.measures.forEach(e=>{var n=new g(e.name,this,e);n.sort.push({name:"section",value:1}),n.idx=t;try{void 0!==this.config.columnOrder[n.id]?n.pos=this.config.columnOrder[n.id]:n.pos=t}catch{n.pos=t}this.headers.forEach(t=>{switch(t.type){case"heading":n.levels.push(new l({column:n,type:"heading",modelField:e}));break;case"field":n.levels.push(new l({column:n,type:"field",modelField:e})),n.sort.push({name:"column.pos",value:n.pos})}}),this.columns.push(n),t+=10}),void 0!==e.fields.supermeasure_like&&e.fields.supermeasure_like.forEach(e=>{var n=new f({vis:this,queryResponseField:e,can_pivot:!1}),r=this.config["reportIn|"+e.name],a=this.config["unit|"+e.name];void 0!==r&&"1"!==r&&(n.value_format="#,##0",void 0!==a&&""!==a&&(n.unit=a)),this.measures.push(n);var o=new g(n.name,this,n);o.sort.push({name:"section",value:2}),this.headers.forEach(e=>{switch(e.type){case"pivot0":case"pivot1":o.levels.push(new l({column:o,type:e.type,modelField:{label:""}})),o.sort.push({name:e.type,value:0});break;case"heading":o.levels.push(new l({column:o,type:"heading",modelField:n}));break;case"field":o.levels.push(new l({column:o,type:"field",modelField:n})),o.sort.push({name:"col_idx",value:t})}}),o.idx=t,o.super=!0,this.columns.push(o),t+=10})}checkVarianceCalculations(){Object.keys(this.config).forEach(e=>{if(e.startsWith("comparison")){var t=e.split("|")[1],n=this.config[e],r=!1;this.measures.forEach(e=>{t===e.name&&(r=!0)});var a=!1;if([...this.measures.map(e=>e.name),...this.pivot_fields.map(e=>e.name)].forEach(e=>{n===e&&(a=!0)}),r&&a){if(this.pivot_fields.map(e=>e.name).includes(this.config[e]))var o="by_pivot";else o="no_variance"===this.config[e]?"no_variance":"vs_measure";if(void 0!==this.config["switch|"+t])if(this.config["switch|"+t])var i=!0;else i=!1;this.variances.push({baseline:t,comparison:this.config[e],type:o,reverse:i})}else r?this.config[e]="no_variance":delete this.config[e]}})}addIndexColumn(){var e=this.dimensions[this.dimensions.length-1],t=this.config["hide|"+e.name],n=new g("$$$_index_$$$",this,e);n.sort.push({name:"section",value:-1}),n.hide=!0===t&&t,this.headers.forEach(t=>{switch(t.type){case"pivot0":case"pivot1":var r=new u({vis:this,queryResponseField:t.modelField}),a=new l({column:n,type:t.type,modelField:r});a.label="",n.levels.push(a),n.sort.push({name:t.type,value:0});break;case"heading":n.levels.push(new l({column:n,type:"heading",modelField:e}));break;case"field":n.levels.push(new l({column:n,type:"field",modelField:e})),n.sort.push({name:n.id,value:0})}}),this.columns.push(n)}checkSubtotalsData(e){void 0!==e.subtotals_data[this.addSubtotalDepth]&&e.subtotals_data[this.addSubtotalDepth].forEach(e=>{var t=new h("subtotal");t.$$$__grouping__$$$=e.$$$__grouping__$$$;var n=["Subtotal"];t.$$$__grouping__$$$.forEach(t=>{n.push(e[t].value)}),t.id=n.join("|"),this.columns.forEach(n=>{t.data[n.id]=n.pivoted||n.isRowTotal?e[n.modelField.name][n.pivot_key]:e[n.id];var r=t.data[n.id];if(void 0!==r){void 0===r.cell_style?r.cell_style=["total","subtotal"]:r.cell_style=r.cell_style.concat(["total","subtotal"]),void 0!==n.modelField.style&&(r.cell_style=r.cell_style.concat(n.modelField.style)),null===r.value&&(r.rendered="");var o=this.config["reportIn|"+n.modelField.name];if(void 0!==o&&"1"!==o){var i=this.config.useUnit&&"#"!==n.modelField.unit?n.modelField.unit:"";r.html=null,r.value=Math.round(r.value/parseInt(o)),r.rendered=""===n.modelField.value_format?r.value.toString():i+a.a.format(n.modelField.value_format,r.value)}}}),this.subtotals_data[t.id]=t})}addRows(e){e.forEach((e,t)=>{var n=new h("line_item");if(n.id=this.dimensions.map(t=>e[t.name].value).join("|"),this.columns.forEach(t=>{var r=t.pivoted||t.isRowTotal?e[t.modelField.name][t.pivot_key]:e[t.id],o=new A({...r,cell_style:[t.modelField.type],colid:t.id,rowid:n.id});t.modelField.is_numeric?(o.cell_style.push("numeric"),o.align="right"):(o.cell_style.push("nonNumeric"),o.align="left"),void 0!==t.modelField.style&&(o.cell_style=o.cell_style.concat(t.modelField.style));var i=this.config["reportIn|"+t.modelField.name];if(void 0!==i&&"1"!==i){var s=this.config.useUnit&&"#"!==t.modelField.unit?t.modelField.unit:"";o.html=null,o.value=Math.round(o.value/parseInt(i)),o.rendered=""===t.modelField.value_format?o.value.toString():s+a.a.format(t.modelField.value_format,o.value)}if(t.modelField.is_turtle){var u=new d({column:t,row:n,sort_value:o.sort_value,series:{keys:n.data[t.id]._parsed.keys,values:n.data[t.id]._parsed.values}});o.value=u,o.rendered=u.toString()}n.data[t.id]=o}),this.useIndexColumn){var r=this.dimensions[this.dimensions.length-1].name,o=n.data[r];n.data.$$$_index_$$$=new A({value:o.value,rendered:o.rendered,html:o.html,cell_style:["singleIndex","dimension"],align:this.dimensions[this.dimensions.length-1].is_numeric?"right":"left",colid:"$$$_index_$$$",rowid:o.rowid})}n.sort=[{name:"section",value:0},{name:"unknown",value:0},{name:"original_row",value:t}],this.data.push(n)})}addColumnSeries(){this.columns.forEach(e=>{var t=[],n=[],r=[];this.data.forEach(a=>{t.push(a.id),n.push(a.data[e.id].value),r.push(a.type)});var a=new v({column:e,is_numeric:e.modelField.is_numeric,series:{keys:t,values:n,types:r}});e.series=a,this.column_series.push(a)})}buildTotals(e){var t=e.totals_data,n=new h("total");if(this.columns.forEach(e=>{if(n.id="Total","dimension"===e.modelField.type){if([this.firstVisibleDimension,"$$$_index_$$$"].includes(e.id))var r=1,o=this.useIndexColumn?1:this.dimensions.filter(e=>!e.hide).length;else r=-1,o=-1;n.data[e.id]=new A({value:"",cell_style:["total","dimension"],rowspan:r,colspan:o,colid:e.id,align:e.modelField.is_numeric?"right":"left",rowid:"Total"})}else r=1,o=1;if("measure"===e.modelField.type){var i=e.modelField.is_numeric?["total","numeric","measure"]:["total","nonNumeric","measure"],s=e.pivoted||e.isRowTotal?t[e.modelField.name][e.pivot_key]:t[e.id];void 0===(s=new A({...s,cell_style:i,rowspan:r,colspan:o,colid:e.id,align:e.modelField.is_numeric?"right":"left",rowid:"Total"})).rendered&&void 0!==s.html&&(s.rendered=this.getRenderedFromHtml(s));var u=this.config["reportIn|"+e.modelField.name];if(void 0!==u&&"1"!==u){var f=this.config.useUnit&&"#"!==e.modelField.unit?e.modelField.unit:"";s.html=void 0,s.value=Math.round(s.value/parseInt(u)),s.rendered=""===e.modelField.value_format?s.value.toString():f+a.a.format(e.modelField.value_format,s.value)}n.data[e.id]=s,void 0!==n.data[e.id].links&&n.data[e.id].links.length>0&&n.data[e.id].links[0].url&&n.data[e.id].links.forEach(e=>{e.type="measure_default"})}}),this.useIndexColumn?(n.data.$$$_index_$$$.value="TOTAL",n.data.$$$_index_$$$.align="left",n.data.$$$_index_$$$.colspan=this.dimensions.filter(e=>!e.hide).length):this.firstVisibleDimension&&(n.data[this.firstVisibleDimension].value="TOTAL",n.data[this.firstVisibleDimension].align="left"),n.sort=[{name:"section",value:1},{name:"unknown",value:0},{name:"original_row",value:0}],this.data.push(n),this.calculateOthers){var r=new h("line_item");r.id="Others",this.columns.forEach(e=>{var t=null,o=e.modelField.is_numeric?["numeric"]:["nonNumeric"],i=n.data[e.id];if("measure"===e.modelField.type?(t=["sum","count"].includes(e.modelField.calculation_type))?(t=i.value-e.series.series.sum,o.push("measure")):(t=(i.value+e.series.series.avg)/2,o=o.concat(["estimate","measure"]),["count","count_distinct"].includes(e.modelField.calculation_type)&&(t=Math.round(t))):o.push("dimension"),t){var s=""===e.modelField.value_format?t.toString():a.a.format(e.modelField.value_format,t);r.data[e.id]=new A({value:t,rendered:s,cell_style:o,align:e.modelField.is_numeric?"right":"left",colid:e.id,rowid:"Others"})}else r.data[e.id]=new A({rendered:"",cell_style:o,colid:e.id,rowid:"Others"})}),this.useIndexColumn?(r.data.$$$_index_$$$.value="Others",r.data.$$$_index_$$$.rendered="Others",r.data.$$$_index_$$$.align="left",r.data.$$$_index_$$$.cell_style.push("singleIndex")):this.firstVisibleDimension&&(r.data[this.firstVisibleDimension].value="Others",r.data[this.firstVisibleDimension].rendered="Others",r.data[this.firstVisibleDimension].align="left"),r.sort=[{name:"section",value:1},{name:"unknown",value:-1},{name:"original_row",value:-1}],this.data.push(r)}this.sortData()}setRowSpans(){var e,t=[],n={};e=this.data,(t=this.dimensions.filter(e=>!e.hide)).forEach(e=>{n[e.name]=1});for(var r=e.length-1;r>=0;r--){var a=e[r];if("line_item"===a.type)for(var o=0;o0?e[r-1].data[i.name].value:null;if(!(r>0&&s===u)){for(var f=o;f1&&a.data[l.name].cell_style.push("merged"),n[l.name]=1}break}a.data[i.name].rowspan=-1,a.data[i.name].colspan=-1,n[i.name]+=1}else t.forEach(e=>{n[e.name]=1})}}addSubTotals(){var e=this.addSubtotalDepth,t=[],n=[];this.data.forEach((r,a)=>{if("total"!==r.type){for(var o=[],i=0;i{var n=new h("subtotal"),r=e.join("|")?e.join("|"):"Others";n.id=["Subtotal",r].join("|"),this.columns.forEach(r=>{if("dimension"===r.modelField.type){if([this.firstVisibleDimension,"$$$_index_$$$"].includes(r.id))var o=1,i=this.useIndexColumn?1:this.dimensions.filter(e=>!e.hide).length;else o=-1,i=-1;var s=r.modelField.is_numeric?["total","subtotal","numeric","dimension"]:["total","subtotal","nonNumeric","dimension"],u=new A({cell_style:s,align:r.modelField.is_numeric?"right":"left",rowspan:o,colspan:i,colid:r.id,rowid:n.id});"$$$_index_$$$"!==r.id&&r.id!==this.firstVisibleDimension||(this.genericLabelForSubtotals?(u.value="Subtotal",u.rendered="Subtotal"):(u.value=e.join(" | ")?e.join(" | "):"Others",u.rendered=u.value)),n.data[r.id]=u}if("measure"==r.modelField.type){s=r.modelField.is_numeric?["total","subtotal","numeric","measure"]:["total","subtotal","nonNumeric","measure"];var f=r.modelField.is_numeric?"right":"left";if(Object.entries(this.subtotals_data).length>0&&!n.id.startsWith("Subtotal|Others")){u=new A({...n.data[r.id],...this.subtotals_data[n.id].data[r.id],cell_style:s,align:f,colid:r.id,rowid:n.id});n.data[r.id]=u}else{var l=0,c=0,d="";if(this.data.forEach(e=>{if("line_item"==e.type&&e.sort[1].value==t){var n=e.data[r.id].value;Number.isFinite(n)&&(l+=n,c++)}}),"number"===r.modelField.calculation_type&&c>0&&r.modelField.value_format.includes("%")&&(l/=c),"average"===r.modelField.calculation_type&&c>0&&(l/=c),l){var v=this.config.useUnit&&"#"!==r.modelField.unit?r.modelField.unit:"";d=""===r.modelField.value_format?l.toString():v+a.a.format(r.modelField.value_format,l)}"string"===r.modelField.calculation_type&&(l="",d="");u=new A({value:l,rendered:d,cell_style:s,align:f,colid:r.id,rowid:n.id});n.data[r.id]=u}}}),n.sort=[{name:"section",value:0},{name:"subtotal",value:t},{name:"original_row",value:9999}],this.data.push(n)}),this.sortData(),this.hasSubtotals=!0}addColumnSubTotals(){var e=[],t=[],n=this.pivot_fields[0].name;this.pivot_values.forEach(e=>{var r=e.data[n];null!==r&&t.push(r)}),(t=[...new Set(t)]).forEach(t=>{this.measures.forEach((n,r)=>{if(n.can_pivot){var a=new g(["$$$_subtotal_$$$",t,n.name].join("."),this,n);a.pivoted=!0,a.subtotal=!0,a.pivot_key=[t,"$$$_subtotal_$$$"].join("|"),a.subtotal_data={pivot:t,measure_idx:r,columns:[]},this.columns.forEach((e,r)=>{var o=null;for(r=0;r{e.sort.push({name:"section",value:1}),this.headers.forEach((t,n)=>{switch(t.type){case"pivot0":var r=e.subtotal_data.columns[0].levels[n].pivotData.sort_values[t.modelField.name];e.levels.push(new l({column:e,type:t.type,modelField:{name:t.modelField.name,label:e.subtotal_data.pivot}})),e.sort.push({name:t.modelField.name,value:r});break;case"pivot1":console.log("line1453"),e.levels.push(new l({column:e,type:t.type,modelField:{name:"subtotal",label:"Subtotal"}}));var a=this.sorts.find(e=>e.name===t.modelField.name);if(void 0===a||void 0===a.desc)var o=!1;else o=Boolean(a.desc);if(o)var i="string"==typeof this.pivot_values[0].sort_values[t.modelField.name]?"aaaaaaaa":Number.NEGATIVE_INFINITY;else i="string"==typeof this.pivot_values[0].sort_values[t.modelField.name]?"ZZZZZZZZ":Number.POSITIVE_INFINITY;e.sort.push({name:t.modelField.name,value:i});break;case"heading":e.levels.push(new l({column:e,type:"heading",modelField:e.modelField}));break;case"field":e.levels.push(new l({column:e,type:"field",modelField:e.modelField})),e.sort.push({name:"measure_idx",value:e.subtotal_data.measure_idx})}}),this.columns.push(e)}),this.data.forEach(t=>{e.forEach(e=>{var n=e.modelField.is_numeric?["subtotal","numeric","measure"]:["subtotal","nonNumeric","measure"],r=0;e.subtotal_data.columns.forEach(e=>{r+=t.data[e.id].value}),t.data[e.id]=new A({value:r,rendered:""===e.modelField.value_format?r.toString():a.a.format(e.modelField.value_format,r),cell_style:n,colid:e.id,rowid:t.id}),["subtotal","total"].includes(t.type)&&t.data[e.id].cell_style.push("total")})})}calculateVariance(e,t,n,r,o){this.data.forEach(i=>{var s=i.data[r.id].value,u=i.data[o.id].value;if("absolute"===n)var f=new A({value:s-u,rendered:""===e?(s-u).toString():a.a.format(e,s-u),cell_style:["numeric","measure","variance","varianceAbsolute"],colid:t,rowid:i.id});else{var l=(s-u)/Math.abs(u);if(isFinite(l))f=new A({value:l,rendered:a.a.format("#0.00%",l),cell_style:["numeric","measure","variance","variancePercent"],colid:t,rowid:i.id});else var f=new A({value:null,rendered:"∞",cell_style:["numeric","measure","variance","variancePercent"],colid:t,rowid:i.id})}"total"!=i.type&&"subtotal"!=i.type||f.cell_style.push("total"),"subtotal"===i.type&&f.cell_style.push("subtotal"),f.value<0&&f.cell_style.push("negative"),i.data[t]=f})}createVarianceColumn(e){if(this.config.colSubtotals||!e.variance.baseline.startsWith("$$$_subtotal_$$$")){var t=["$$$_variance_$$$",e.calc,e.variance.baseline,e.variance.comparison].join("|"),n=this.getColumnById(e.variance.baseline),r=this.getColumnById(e.variance.comparison),a=new g(t,this,n.modelField);if(a.isVariance=!0,"absolute"===e.calc){a.variance_type="absolute",a.idx=n.idx+1,a.pos=n.pos+1;var i=Object(o.cloneDeep)(n.sort);a.sort=[...i,{name:"variance_absolute",value:1}],a.hide=!this.config["var_num|"+n.modelField.name]}else{a.variance_type="percentage",a.idx=n.idx+2,a.pos=n.pos+2;i=Object(o.cloneDeep)(n.sort);a.sort=[...i,{name:"variance_percentage",value:2}],a.unit="%",a.hide=!this.config["var_pct|"+n.modelField.name]}void 0!==this.config.columnOrder[a.id]&&(a.pos=this.config.columnOrder[a.id]),a.pivoted=n.pivoted,a.super=n.super,a.pivot_key=n.pivot_key,this.groupVarianceColumns&&(a.sort[0].value=1.5),this.headers.forEach((e,t)=>{switch(e.type){case"pivot0":case"pivot1":var r=n.getHeaderCellLabelByType(e.type);if(this.groupVarianceColumns&&"pivot0"===e.type)r=2===this.pivot_values.length?"Variance":"Variance: "+r;var o=new l({column:a,type:e.type,modelField:{label:r}});a.levels[t]=o;break;case"heading":o=new l({column:a,type:"heading",modelField:n.modelField});a.levels[t]=o;break;case"field":o=new l({column:a,type:"field",modelField:n.modelField});a.levels[t]=o}}),this.columns.push(a),e.variance.reverse?this.calculateVariance(n.modelField.value_format,t,e.calc,r,n):this.calculateVariance(n.modelField.value_format,t,e.calc,n,r)}else console.log("Cannot calculate variance of column subtotals if subtotals disabled.")}addVarianceColumns(){var e=[],t=["absolute","percent"];Object.keys(this.variances).forEach(n=>{var r=this.variances[n];if("no_variance"!==r.comparison)if("vs_measure"===r.type)this.hasPivots?this.pivot_values.forEach(n=>{n.is_total||t.forEach(t=>{e.push({calc:t,variance:{baseline:[n.key,r.baseline].join("."),comparison:[n.key,r.comparison].join("."),reverse:r.reverse,type:r.type}})})}):t.forEach(t=>{e.push({variance:r,calc:t})});else if("by_pivot"===r.type)if(1===this.pivot_fields.length||this.pivot_fields[1].name===r.comparison)this.pivot_values.slice(1).forEach((n,a)=>{t.forEach(t=>{n.is_total||e.push({calc:t,variance:{baseline:[n.key,r.baseline].join("."),comparison:[this.pivot_values[a].key,r.baseline].join("."),reverse:r.reverse,type:r.type}})})});else{var a=[];this.pivot_values.forEach(e=>{if(!e.is_total){var t=e.data[this.pivot_fields[0].name];a.includes(t)||a.push(t)}}),a.slice(1).forEach((n,o)=>{t.forEach(t=>{e.push({calc:t,variance:{baseline:["$$$_subtotal_$$$",n,r.baseline].join("."),comparison:["$$$_subtotal_$$$",a[o],r.baseline].join("."),reverse:r.reverse,type:r.type}})})})}}),e.forEach(e=>{this.createVarianceColumn(e)})}compareSortArrays(e){return function(t,n){for(var r=Math.max(t.sort.length,n.sort.length),a=0;ae.name===o),s=void 0!==i&&i.desc,u=t.sort[a]&&void 0!==t.sort[a]?t.sort[a].value:0,f=n.sort[a]&&void 0!==n.sort[a]?n.sort[a].value:0;if(s){if(uf)return-1}else{if(u>f)return 1;if(u!e.hide).forEach(t=>{var n={id:t.id,data:t.getHeaderData()};e.push(n)}),(t=this.headers).forEach(e=>{n[e.type]=1});for(var r=e.length-1;r>=0;r--)for(var a=e[r],o=0;o0?e[r-1].data[i.type].label:null;if(!(r>0&&s===u)){for(var f=o;f1&&(a.data[l.type].align="center",a.data[l.type].cell_style.push("merged")),n[l.type]=1}break}a.data[i.type].colspan=-1,a.data[i.type].rowspan=-1,n[i.type]+=1}}applyFormatting(){this.columns.forEach(e=>{var t=this.config["style|"+e.modelField.name];if(void 0!==t)switch(t){case"black_red":this.data.forEach(t=>{t.data[e.id].value<0&&t.data[e.id].cell_style.push("negative")})}})}transposeDimensionsIntoHeaders(){this.transposed_headers=this.columns.filter(e=>"dimension"===e.modelField.type).filter(e=>!e.hide).map(e=>({type:"field",modelField:e.modelField}))}transposeRowsIntoColumns(){var e={align:"left",type:"transposed_table_index",is_table_calculation:!1};this.headers.forEach((t,n)=>{var r=new g(t.type,this,e);this.transposed_headers.forEach((e,t)=>{var a=this.columns[t].levels[n],o=new l({column:r,type:a.type,label:a.label,cell_style:a.cell_style,align:a.align,modelField:a.modelField});o.rowspan=a.colspan,o.colspan=a.rowspan,o.id=[a.modelField.name,a.type].join("."),o.cell_style.push("transposed"),o.colspan>0&&o.cell_style.push("merged"),r.levels.push(o)}),this.transposed_columns.push(r)});var t={align:"right",type:"transposed_table_measure",is_table_calculation:!1};this.data.forEach(e=>{var n=new g(e.id,this,t);this.transposed_headers.forEach(t=>{var r=this.useIndexColumn&&["subtotal","total"].includes(e.type)?"$$$_index_$$$":t.modelField.name,a=e.data[r],o=new l({column:n,type:t.type,label:""===a.rendered?a.rendered:a.rendered||a.value,align:"center",cell_style:a.cell_style});o.colspan=a.rowspan,o.rowspan=a.colspan,o.id=[a.colid,a.rowid].join("."),o.cell_style.push("transposed"),n.levels.push(o)}),this.transposed_columns.push(n)})}transposeColumnsIntoRows(){this.columns.filter(e=>"measure"===e.modelField.type).forEach(e=>{var t={};e.levels.forEach((n,r)=>{var a=new A({value:n.label,rendered:n.label,rowspan:n.colspan,colspan:n.rowspan,cell_style:["indexCell","transposed"],align:"left",colid:e.id,rowid:n.type});switch(n.type){case"pivot0":case"pivot1":a.cell_style.push("pivot");break;case"heading":case"field":var o=e.modelField.is_table_calculation?"calculation":"measure";a.cell_style.push(o)}a.rowspan>1&&a.cell_style.push("merged"),t[n.type]=a}),this.data.forEach(n=>{if(void 0!==n.data[e.id]){var r=n.data[e.id];t[n.id]=n.data[e.id],t[n.id].id=[r.colid,r.rowid].join("."),t[n.id].cell_style.push("transposed")}});var n=new h("line_item");n.id=e.id,n.modelField=e.modelField,n.hide=e.hide,n.data=t,this.transposed_data.push(n)})}validateConfig(){["traditional","looker","contemporary","custom"].includes(this.config.theme)||(this.config.theme="traditional"),["fixed","auto"].includes(this.config.layout)||(this.config.layout="fixed"),void 0===this.config.transposeTable&&(this.config.transposeTable=!1),Object.entries(this.config).forEach(e=>{if("false"===e[1]?e[1]=!1:"true"===e[1]&&(e[1]=!0),2===e[0].split("|").length){var[t,n]=e[0].split("|");if(["label","heading","hide","style","switch","var_num","var_pct","comparison"].includes(t)){var r=!1;this.dimensions.forEach(e=>{e.name===n&&(r=!0)}),this.measures.forEach(e=>{e.name===n&&(r=!0)}),r||delete this.config[e[0]]}}})}getColumnById(e){var t={};return this.columns.forEach(n=>{e===n.id&&(t=n)}),t}getRowById(e){var t={};return this.data.forEach(n=>{e===n.id&&(t=n)}),t}getMeasureByName(e){var t="";return this.measures.forEach(n=>{e===n.name&&(t=n)}),t}getRenderedFromHtml(e){var t=new DOMParser;if(void 0===e.html||["undefined",""].includes(e.html))n=e.value;else try{var n=t.parseFromString(e.html,"text/html").documentElement.textContent}catch(t){var n=e.html}return n}getHeaderTiers(){return this.transposeTable?this.transposed_headers:this.headers}getTableHeaderCells(e){return this.transposeTable?this.transposed_columns.filter(t=>t.levels[e].colspan>0):this.columns.filter(e=>!e.hide).filter(t=>t.levels[e].colspan>0)}getDataRows(){if(this.transposeTable)e=this.transposed_data.filter(e=>!e.hide);else var e=this.data.filter(e=>!e.hide);return e}getTableRowColumns(e){if(this.transposeTable)t=this.transposed_columns.filter(e=>!e.hide).filter(t=>e.data[t.id].rowspan>0);else var t=this.columns.filter(e=>!e.hide).filter(t=>e.data[t.id].rowspan>0);return t}moveColumns(e,t,n){var r=this.config;if(e!=t){var a=t-e,o=r.columnOrder;this.columns.forEach(n=>{"measure"!=n.modelField.type||n.super||(n.pos>=e&&n.pos=t&&n.pos=e+10&&n.pos{if("line_item"===t.type){var n={};this.columns.forEach(e=>{n[e.id]=t.data[e.id].value}),e.push(n)}}),e}getTableColumnGroups(){var e=[],t=[],n=[];this.transposeTable?this.transposed_columns.forEach(r=>{"transposed_table_index"===r.modelField.type?e.push({id:r.id,type:"index"}):"transposed_table_measure"===r.modelField.type&&"Total"!==r.id?t.push({id:r.id,type:"dataCell"}):"transposed_table_measure"===r.modelField.type&&"Total"===r.id&&n.push({id:r.id,type:"dataCell"})}):this.columns.forEach(r=>{"dimension"!==r.modelField.type||r.hide?"measure"!==r.modelField.type||r.isRowTotal||r.super||r.hide?"measure"!==r.modelField.type||!r.isRowTotal&&!r.super||r.hide||n.push({id:r.id,type:"dataCell"}):t.push({id:r.id,type:"dataCell"}):e.push({id:r.id,type:"index"})});var r=[];return e.length>0&&r.push(e),t.length>0&&r.push(t),n.length>0&&r.push(n),r}getCellToolTip(e,t){var n="",r=this.getRowById(e),a=this.getColumnById(t),o=a.modelField;if("total"===r.type)n+=['"].join("");else if(r.id.startsWith("Others")){n+=['"].join("")}else if("subtotal"===r.type){var i="SUBTOTAL",s="focus",u=this.columns.filter(e=>!e.hide).filter(e=>"dimension"===e.modelField.type)[0],f=r.data[u.id].render||r.data[u.id].value;n+=['"].join("")}else{this.columns.filter(e=>"$$$_index_$$$"!==e.id).filter(e=>"dimension"===e.modelField.type).forEach(e=>{var t=e.getHeaderCellLabelByType("field"),o=r.data[e.id].rendered||r.data[e.id].value,i=e.id===a.id?"focus":"";n+=['"].join("")})}n+='';var l=!1,c="";this.columns.filter(e=>"measure"===e.modelField.type).filter(e=>e.modelField===o).forEach(e=>{if(e.isVariance||(c=e.getHeaderCellLabelByType("field")),!e.pivoted&&!e.isRowTotal||e.pivot_key===a.pivot_key){var t=e.getHeaderCellLabelByType("field"),o=e.id===a.id?"focus":"",i=r.data[e.id],s=i.rendered||i.value;if(i.html)s=(new DOMParser).parseFromString(i.html,"text/html").documentElement.textContent;i.cell_style.includes("estimate")&&(l=!0),n+=['"].join("")}});var d=null,v=this.config["reportIn|"+a.modelField.name];return void 0!==v&&"1"!==v&&(d=c+" reported in "+{1e3:"000s",1e6:"Millions",1e9:"Billions"}[v]),(d||l)&&(n+=''),d&&(n+='"),l&&(n+='',n+=''),n+="
',i="TOTAL",': ',f="","
',i="Others",': ',f="","
',i,': ',f,"
',t,': ',o,"
',t,': ',s,"
'+d+".
Estimated figure due to query exceeding row limit.
Consider increasing the row limit or using an alternative measure.
"}}function p(){}var w=function(e){return null==e?p:function(){return this.querySelector(e)}};function z(){return[]}var y=function(e){return null==e?z:function(){return this.querySelectorAll(e)}},B=function(e){return function(){return this.matches(e)}},P=function(e){return new Array(e.length)};function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function X(e,t,n,r,a,o){for(var i,s=0,u=t.length,f=o.length;st?1:e>=t?0:NaN}var H="http://www.w3.org/1999/xhtml",x={svg:"http://www.w3.org/2000/svg",xhtml:H,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Z=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),x.hasOwnProperty(t)?{space:x[t],local:e}:e};function E(e){return function(){this.removeAttribute(e)}}function k(e){return function(){this.removeAttributeNS(e.space,e.local)}}function J(e,t){return function(){this.setAttribute(e,t)}}function N(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function G(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function M(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var C=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function I(e){return function(){this.style.removeProperty(e)}}function F(e,t,n){return function(){this.style.setProperty(e,t,n)}}function L(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Q(e,t){return e.style.getPropertyValue(t)||C(e).getComputedStyle(e,null).getPropertyValue(t)}function V(e){return function(){delete this[e]}}function R(e,t){return function(){this[e]=t}}function Y(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function j(e){return e.trim().split(/^|\s+/)}function T(e){return e.classList||new S(e)}function S(e){this._node=e,this._names=j(e.getAttribute("class")||"")}function q(e,t){for(var n=T(e),r=-1,a=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ee(){this.textContent=""}function te(e){return function(){this.textContent=e}}function ne(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function re(){this.innerHTML=""}function ae(e){return function(){this.innerHTML=e}}function oe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function ie(){this.nextSibling&&this.parentNode.appendChild(this)}function se(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ue(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===H&&t.documentElement.namespaceURI===H?t.createElement(e):t.createElementNS(n,e)}}function fe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var le=function(e){var t=Z(e);return(t.local?fe:ue)(t)};function ce(){return null}function de(){var e=this.parentNode;e&&e.removeChild(this)}function ve(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ae(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var he={},ge=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(he={mouseenter:"mouseover",mouseleave:"mouseout"}));function be(e,t,n){return e=me(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function me(e,t,n){return function(r){var a=ge;ge=r;try{e.call(this,this.__data__,t,n)}finally{ge=a}}}function pe(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function we(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,o=t.length;r=z&&(z=w+1);!(p=b[z])&&++z=0;)(r=a[o])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=O);for(var n=this._groups,r=n.length,a=new Array(r),o=0;o1?this.each((null==t?I:"function"==typeof t?L:F)(e,t,null==n?"":n)):Q(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?V:"function"==typeof t?Y:R)(e,t)):this.node()[e]},classed:function(e,t){var n=j(e+"");if(arguments.length<2){for(var r=T(this.node()),a=-1,o=n.length;++a=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Ge(e,t){for(var n,r=0,a=e.length;r0)for(var n,r,a=new Array(n),o=0;o=0&&t._call.call(null,e),t=t._next;--Le}()}finally{Le=0,function(){var e,t,n=Ce,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ce=t);Ie=e,tt(r)}(),Ye=0}}function et(){var e=Te.now(),t=e-Re;t>1e3&&(je-=t,Re=e)}function tt(e){Le||(Qe&&(Qe=clearTimeout(Qe)),e-Ye>24?(e<1/0&&(Qe=setTimeout($e,e-Te.now()-je)),Ve&&(Ve=clearInterval(Ve))):(Ve||(Re=Te.now(),Ve=setInterval(et,1e3)),Le=1,Se($e)))}Ke.prototype=_e.prototype={constructor:Ke,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?qe():+n)+(null==t?0:+t),this._next||Ie===this||(Ie?Ie._next=this:Ce=this,Ie=this),this._call=e,this._time=n,tt()},stop:function(){this._call&&(this._call=null,this._time=1/0,tt())}};var nt=function(e,t,n){var r=new Ke;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},rt=Fe("start","end","cancel","interrupt"),at=[],ot=function(e,t,n,r,a,o){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,a=e.__transition;function o(u){var f,l,c,d;if(1!==n.state)return s();for(f in a)if((d=a[f]).name===n.name){if(3===d.state)return nt(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete a[f]):+f0)throw new Error("too late; already scheduled");return n}function st(e,t){var n=ut(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ut(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var ft,lt,ct,dt,vt=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},At=180/Math.PI,ht={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},gt=function(e,t,n,r,a,o){var i,s,u;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(a(n)+"rotate(",null,r)-2,x:vt(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(o.rotate,i.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(a(n)+"skewX(",null,r)-2,x:vt(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(o.skewX,i.skewX,s,u),function(e,t,n,r,o,i){if(e!==n||t!==r){var s=o.push(a(o)+"scale(",null,",",null,")");i.push({i:s-4,x:vt(e,n)},{i:s-2,x:vt(t,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,i.scaleX,i.scaleY,s,u),o=i=null,function(e){for(var t,n=-1,r=u.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Lt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Lt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xt.exec(e))?new Rt(t[1],t[2],t[3],1):(t=Zt.exec(e))?new Rt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Et.exec(e))?Lt(t[1],t[2],t[3],t[4]):(t=kt.exec(e))?Lt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jt.exec(e))?St(t[1],t[2]/100,t[3]/100,1):(t=Nt.exec(e))?St(t[1],t[2]/100,t[3]/100,t[4]):Gt.hasOwnProperty(e)?Ft(Gt[e]):"transparent"===e?new Rt(NaN,NaN,NaN,0):null}function Ft(e){return new Rt(e>>16&255,e>>8&255,255&e,1)}function Lt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rt(e,t,n,r)}function Qt(e){return e instanceof Dt||(e=It(e)),e?new Rt((e=e.rgb()).r,e.g,e.b,e.opacity):new Rt}function Vt(e,t,n,r){return 1===arguments.length?Qt(e):new Rt(e,t,n,null==r?1:r)}function Rt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yt(){return"#"+Tt(this.r)+Tt(this.g)+Tt(this.b)}function jt(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Tt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function St(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ut(e,t,n,r)}function qt(e){if(e instanceof Ut)return new Ut(e.h,e.s,e.l,e.opacity);if(e instanceof Dt||(e=It(e)),!e)return new Ut;if(e instanceof Ut)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),i=NaN,s=o-a,u=(o+a)/2;return s?(i=t===o?(n-r)/s+6*(n0&&u<1?0:i,new Ut(i,s,u,e.opacity)}function Ut(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function _t(e,t,n,r,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*n+(1+3*e+3*o-3*i)*r+i*a)/6}Bt(Dt,It,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Mt,formatHex:Mt,formatHsl:function(){return qt(this).formatHsl()},formatRgb:Ct,toString:Ct}),Bt(Rt,Vt,Pt(Dt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yt,formatHex:Yt,formatRgb:jt,toString:jt})),Bt(Ut,(function(e,t,n,r){return 1===arguments.length?qt(e):new Ut(e,t,n,null==r?1:r)}),Pt(Dt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Rt(Kt(e>=240?e-240:e+120,a,r),Kt(e,a,r),Kt(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var $t=function(e){return function(){return e}};function en(e,t){return function(n){return e+n*t}}function tn(e){return 1==(e=+e)?nn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):$t(isNaN(t)?n:t)}}function nn(e,t){var n=t-e;return n?en(e,n):$t(isNaN(e)?t:e)}var rn=function e(t){var n=tn(t);function r(e,t){var r=n((e=Vt(e)).r,(t=Vt(t)).r),a=n(e.g,t.g),o=n(e.b,t.b),i=nn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=o(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function an(e){return function(t){var n,r,a=t.length,o=new Array(a),i=new Array(a),s=new Array(a);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],i=r>0?e[r-1]:2*a-o,s=ro&&(a=t.slice(o,a),s[i]?s[i]+=a:s[++i]=a),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,u.push({i:i,x:vt(n,r)})),o=sn.lastIndex;return o=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?it:st;return function(){var i=o(this,e),s=i.on;s!==r&&(a=(r=s).copy()).on(t,n),i.on=a}}var Xn=He.prototype.constructor;function Wn(e){return function(){this.style.removeProperty(e)}}function On(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Hn(e,t,n){var r,a;function o(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&On(e,o,n)),r}return o._value=t,o}function xn(e){return function(t){this.textContent=e.call(this,t)}}function Zn(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&xn(r)),t}return r._value=e,r}var En=0;function kn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Jn(){return++En}var Nn=He.prototype;kn.prototype=function(e){return He().transition(e)}.prototype={constructor:kn,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=w(e));for(var r=this._groups,a=r.length,o=new Array(a),i=0;i2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[a]):i=!1;i&&delete e.__transition}}(this,e)}))},He.prototype.transition=function(e){var t,n;e instanceof kn?(t=e._id,e=e._name):(t=Jn(),(n=Gn).time=qe(),e=null==e?null:e+"");for(var r=this._groups,a=r.length,o=0;oc}u.mouse("drag")}function h(){var e,t,r,a;xe(ge.view).on("mousemove.drag mouseup.drag",null),e=ge.view,t=n,r=e.document.documentElement,a=xe(e).on("dragstart.drag",null),t&&(a.on("click.drag",Vn,!0),setTimeout((function(){a.on("click.drag",null)}),0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect),Vn(),u.mouse("end")}function g(){if(a.apply(this,arguments)){var e,t,n=ge.changedTouches,r=o.apply(this,arguments),i=n.length;for(e=0;e{const e=document.createElement("div");return e.setAttribute("id","visContainer"),e.style.cssText="\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n font-family: 'Roboto';\n text-anchor: middle;\n text-align: center;\n font-size: 1rem;\n font-weight: 500;\n color: rgb(38, 45, 51);\n ",e.innerText="No results",e},er=function(e,t,n,r){var a=null;const o=r.getBoundingClientRect(),i=o.x+o.width/2,s=o.y+o.height/2;(async function(){const e=document.getElementsByTagName("link");for(;e[0];)e[0].parentNode.removeChild(e[0]);Object.keys(_n).forEach(async e=>await _n[e].unuse())})().then(()=>{void 0!==e.customTheme&&e.customTheme&&"custom"===e.theme?function(e){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}(e.customTheme):void 0!==_n[e.theme]&&_n[e.theme].use(),void 0!==_n[e.layout]&&_n[e.layout].use()});const u=function(e){if(t.transposeTable)return e;const n=(t.column_series||[]).map(e=>e.column.id),r=[];return n.forEach(t=>{e.forEach(e=>{t===e.id&&r.push(e)})}),r};(async function(){const r=function(t,n=""){var a=(r.canvas||(r.canvas=document.createElement("canvas"))).getContext("2d");return a.font=n||e.bodyFontSize+"pt arial",a.measureText(t).width};var o=xe("#visContainer").append("table").attr("id","reportTable").attr("class","reportTable").style("opacity",0),f=Kn().on("start",(e,n)=>{if(!t.has_pivots&&1===e.colspan){var r=parseFloat(ge.x),a=parseFloat(ge.y),o=e.column.getHeaderCellLabelByType("field");xe("#tooltip").style("left",r+"px").style("top",a+"px").html(o),xe("#tooltip").classed("hidden",!1)}}).on("drag",(e,n)=>{t.has_pivots||xe("#tooltip").style("left",ge.x+"px").style("top",ge.y+"px")}).on("end",(e,r)=>{if(!t.has_pivots){xe("#tooltip").classed("hidden",!0);var o=e.column,i=a.column,s=10*Math.floor(o.pos/10),u=10*Math.floor(i.pos/10);t.moveColumns(s,u,n)}});if(t.minWidthForIndexColumns){var l={};t.transposeTable?t.headers.forEach(n=>{var a="bold "+e.bodyFontSize+"pt arial",o=t.transposed_data.map(e=>e.data[n.type].rendered).reduce((e,t)=>Math.max(r(e,a),r(t,a)));l[n.type]=Math.ceil(o)}):t.column_series.filter(e=>!e.column.hide).filter(e=>"dimension"===e.column.modelField.type).forEach(e=>{var n=e.series.values.reduce((e,t)=>Math.max(r(e),r(t))),a=e.column.modelField.name;t.useIndexColumn&&(a="$$$_index_$$$",n+=15),l[a]=Math.ceil(n)})}o.selectAll("colgroup").data(t.getTableColumnGroups()).enter().append("colgroup").selectAll("col").data(e=>e).enter().append("col").attr("id",e=>["col",e.id].join("").replace(".","")).attr("span",1).style("width",e=>t.minWidthForIndexColumns&&"index"===e.type&&void 0!==l[e.id]?l[e.id]+"px":""),o.append("thead").selectAll("tr").data(t.getHeaderTiers()).enter().append("tr").selectAll("th").data((e,n)=>u(t.getTableHeaderCells(n)).map(e=>e.levels[n])).enter().append("th").text(e=>e.label).attr("id",e=>e.id).attr("colspan",e=>e.colspan).attr("rowspan",e=>e.rowspan).attr("class",e=>{var t=["reportTable"];return void 0!==e.cell_style&&(t=t.concat(e.cell_style)),t.join(" ")}).style("text-align",e=>e.align).style("font-size",e.headerFontSize+"px").attr("draggable",!0).call(f).on("mouseover",e=>a=e).on("mouseout",()=>a=null),o.append("tbody").selectAll("tr").data(t.getDataRows()).enter().append("tr").on("mouseover",(function(){t.showHighlight&&this.classList.toggle("hover")})).on("mouseout",(function(){t.showHighlight&&this.classList.toggle("hover")})).selectAll("td").data(e=>u(t.getTableRowColumns(e)).map(t=>e.data[t.id])).enter().append("td").text(e=>{var t="";if(Array.isArray(e.value))t=null!==e.rendered?e.rendered:e.value.join(" ");else if("object"==typeof e.value&&null!==e.value&&void 0!==e.value.series)t=null;else if(e.html){t=(new DOMParser).parseFromString(e.html,"text/html").documentElement.textContent}else t=e.rendered||""===e.rendered?e.rendered:e.value;return(t=String(t))?t.replace("-","‑"):t}).attr("rowspan",e=>e.rowspan).attr("colspan",e=>e.colspan).style("text-align",e=>e.align).style("font-size",e.bodyFontSize+"px").attr("class",e=>{var t=["reportTable"];return"object"==typeof e.value&&t.push("cellSeries"),void 0!==e.align&&t.push(e.align),void 0!==e.cell_style&&(t=t.concat(e.cell_style)),t.join(" ")}).on("mouseover",e=>{if(t.showHighlight){if(t.transposeTable)n=["col",e.rowid].join("").replace(".","");else var n=["col",e.colid].join("").replace(".","");document.getElementById(n).classList.toggle("hover")}if(t.showTooltip&&e.cell_style.includes("measure")){var r=ge.clientX,a=ge.clientY,o=t.getCellToolTip(e.rowid,e.colid);xe("#tooltip").style("left",r+"px").style("top",a+"px").html(o),xe("#tooltip").classed("hidden",!1)}}).on("mousemove",e=>{if(t.showTooltip&&e.cell_style.includes("measure")){var n=xe("#tooltip"),r=ge.clientX{if(t.showHighlight){if(t.transposeTable)n=["col",e.rowid].join("").replace(".","");else var n=["col",e.colid].join("").replace(".","");document.getElementById(n).classList.toggle("hover")}t.showTooltip&&e.cell_style.includes("measure")&&xe("#tooltip").classed("hidden",!0)}).on("click",e=>{if(e.links!==[]&&e.links[0].url){let t={metaKey:ge.metaKey,pageX:ge.pageX,pageY:ge.pageY-window.pageYOffset};LookerCharts.Utils.openDrillMenu({links:e.links,event:t})}})})().then(()=>{document.getElementById("reportTable").classList.add("reveal"),"animate"===e.customTheme?(document.getElementById("visSvg").classList.remove("hidden"),async function(){var t=document.getElementById("reportTable").clientWidth,n=document.getElementById("reportTable").clientHeight,r=[];Ze("th").select((function(t,n){if(void 0!==t){var a=this.getBoundingClientRect();r.push({index:n,data:t,x:a.x-10,y:a.y-10,width:a.width,height:a.height,html:this.innerHTML,class:this.className+" rectElem animated",fontSize:e.headerFontSize,align:this.style.textAlign})}})),Ze("td").select((function(t,n){if(void 0!==t){var a=this.getBoundingClientRect();r.push({index:n,data:t,x:a.x-10,y:a.y-10,width:a.width,height:a.height,html:this.innerHTML,class:this.className+" rectElem animated",fontSize:e.bodyFontSize,align:this.style.textAlign})}}));xe("#visSvg").attr("width",t).attr("height",n).selectAll(".rectElem").data(r,e=>e.data.id).join(e=>e.append("div").attr("class",e=>e.class).style("opacity",.2).style("position","absolute").style("left",e=>e.x+"px").style("top",e=>-2e3).style("width",e=>e.width+"px").style("height",e=>e.height+"px").style("font-size",e=>e.fontSize+"px").style("text-align",e=>e.align).text(e=>e.html).call(e=>e.transition().duration(1e3).style("opacity",1).style("top",e=>e.y+"px")),e=>e.call(e=>e.transition().duration(1e3).attr("class",e=>e.class).style("opacity",1).style("left",e=>e.x+"px").style("top",e=>e.y+"px").style("width",e=>e.width+"px").style("height",e=>e.height+"px").style("font-size",e=>e.fontSize+"px").style("text-align",e=>e.align).text(e=>e.html)),e=>e.call(e=>e.transition().duration(500).style("opacity",0).remove()))}()):(document.getElementById("visSvg").classList.add("hidden"),document.getElementById("reportTable").style.opacity=1)})};looker.plugins.visualizations.add({options:m.getCoreConfigOptions(),create:function(e,t){this.svgContainer=xe(e).append("div").attr("id","visSvg").attr("width",e.clientWidth).attr("height",e.clientHeight),this.tooltip=xe(e).append("div").attr("id","tooltip").attr("class","hidden")},updateAsync:function(e,t,n,r,a,o){if(this.clearErrors(),r.fields.pivots.length>0&&0===r.fields.measures.length)this.addError({title:"Empty Pivot(s)",message:"Add a measure or table calculation to pivot on."});else if(r.fields.pivots.length>2)this.addError({title:"Max Two Pivots",message:"This visualization accepts no more than 2 pivot fields."});else{if(!e.length)return function(){const e=document.querySelector("#visContainer"),t=$n();e&&e.parentNode.removeChild(e),document.querySelector("#vis").append(t)}(),void o();try{var i=document.querySelector("#visContainer");i.parentNode.removeChild(i)}catch(e){}this.container=xe(t).append("div").attr("id","visContainer"),void 0===n.columnOrder&&this.trigger("updateConfig",[{columnOrder:{}}]),void 0===n.theme&&(n=Object.assign({bodyFontSize:12,headerFontSize:12,theme:"traditional",showHighlight:!0,showTooltip:!0},n));var s=new m(e,r,n);this.trigger("registerOptions",s.getConfigOptions()),er(n,s,e=>{this.trigger("updateConfig",[{columnOrder:e}])},t),o()}}})}]); + */(function(){var o="Expected a function",i="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",v="[object Function]",A="[object GeneratorFunction]",h="[object Map]",g="[object Number]",b="[object Object]",m="[object RegExp]",w="[object Set]",p="[object String]",z="[object Symbol]",y="[object WeakMap]",B="[object ArrayBuffer]",P="[object DataView]",D="[object Float32Array]",X="[object Float64Array]",W="[object Int8Array]",O="[object Int16Array]",H="[object Int32Array]",x="[object Uint8Array]",Z="[object Uint16Array]",E="[object Uint32Array]",k=/\b__p \+= '';/g,J=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,C=RegExp(G.source),I=RegExp(M.source),F=/<%-([\s\S]+?)%>/g,L=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/[\\^$.*+?()[\]{}|]/g,T=RegExp(j.source),S=/^\s+|\s+$/g,q=/^\s+/,U=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ae=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ve="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="[\\ud800-\\udfff]",he="["+ve+"]",ge="["+de+"]",be="\\d+",me="[\\u2700-\\u27bf]",we="[a-z\\xdf-\\xf6\\xf8-\\xff]",pe="[^\\ud800-\\udfff"+ve+be+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ze="\\ud83c[\\udffb-\\udfff]",ye="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",De="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Xe="(?:"+we+"|"+pe+")",We="(?:"+De+"|"+pe+")",Oe="(?:"+ge+"|"+ze+")"+"?",He="[\\ufe0e\\ufe0f]?"+Oe+("(?:\\u200d(?:"+[ye,Be,Pe].join("|")+")[\\ufe0e\\ufe0f]?"+Oe+")*"),xe="(?:"+[me,Be,Pe].join("|")+")"+He,Ze="(?:"+[ye+ge+"?",ge,Be,Pe,Ae].join("|")+")",Ee=RegExp("['’]","g"),ke=RegExp(ge,"g"),Je=RegExp(ze+"(?="+ze+")|"+Ze+He,"g"),Ne=RegExp([De+"?"+we+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,De,"$"].join("|")+")",We+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,De+Xe,"$"].join("|")+")",De+"?"+Xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",De+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,xe].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ce=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ie=-1,Fe={};Fe[D]=Fe[X]=Fe[W]=Fe[O]=Fe[H]=Fe[x]=Fe["[object Uint8ClampedArray]"]=Fe[Z]=Fe[E]=!0,Fe[u]=Fe[f]=Fe[B]=Fe[l]=Fe[P]=Fe[c]=Fe[d]=Fe[v]=Fe[h]=Fe[g]=Fe[b]=Fe[m]=Fe[w]=Fe[p]=Fe[y]=!1;var Le={};Le[u]=Le[f]=Le[B]=Le[P]=Le[l]=Le[c]=Le[D]=Le[X]=Le[W]=Le[O]=Le[H]=Le[h]=Le[g]=Le[b]=Le[m]=Le[w]=Le[p]=Le[z]=Le[x]=Le["[object Uint8ClampedArray]"]=Le[Z]=Le[E]=!0,Le[d]=Le[v]=Le[y]=!1;var Qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,Re=parseInt,Ye="object"==typeof e&&e&&e.Object===Object&&e,je="object"==typeof self&&self&&self.Object===Object&&self,Te=Ye||je||Function("return this")(),Se=t&&!t.nodeType&&t,qe=Se&&"object"==typeof r&&r&&!r.nodeType&&r,Ue=qe&&qe.exports===Se,Ke=Ue&&Ye.process,_e=function(){try{var e=qe&&qe.require&&qe.require("util").types;return e||Ke&&Ke.binding&&Ke.binding("util")}catch(e){}}(),$e=_e&&_e.isArrayBuffer,et=_e&&_e.isDate,tt=_e&&_e.isMap,nt=_e&&_e.isRegExp,rt=_e&&_e.isSet,at=_e&&_e.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function it(e,t,n,r){for(var a=-1,o=null==e?0:e.length;++a-1}function dt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function Jt(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gt=Xt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Mt=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ct(e){return"\\"+Qe[e]}function It(e){return Ge.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Lt(e,t){return function(n){return e(t(n))}}function Qt(e,t){for(var n=-1,r=e.length,a=0,o=[];++n",""":'"',"'":"'"});var St=function e(t){var n,r=(t=null==t?Te:St.defaults(Te.Object(),t,St.pick(Te,Ce))).Array,a=t.Date,de=t.Error,ve=t.Function,Ae=t.Math,he=t.Object,ge=t.RegExp,be=t.String,me=t.TypeError,we=r.prototype,pe=ve.prototype,ze=he.prototype,ye=t["__core-js_shared__"],Be=pe.toString,Pe=ze.hasOwnProperty,De=0,Xe=(n=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",We=ze.toString,Oe=Be.call(he),He=Te._,xe=ge("^"+Be.call(Pe).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=Ue?t.Buffer:void 0,Je=t.Symbol,Ge=t.Uint8Array,Qe=Ze?Ze.allocUnsafe:void 0,Ye=Lt(he.getPrototypeOf,he),je=he.create,Se=ze.propertyIsEnumerable,qe=we.splice,Ke=Je?Je.isConcatSpreadable:void 0,_e=Je?Je.iterator:void 0,mt=Je?Je.toStringTag:void 0,Xt=function(){try{var e=$a(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),qt=t.clearTimeout!==Te.clearTimeout&&t.clearTimeout,Ut=a&&a.now!==Te.Date.now&&a.now,Kt=t.setTimeout!==Te.setTimeout&&t.setTimeout,_t=Ae.ceil,$t=Ae.floor,en=he.getOwnPropertySymbols,tn=Ze?Ze.isBuffer:void 0,nn=t.isFinite,rn=we.join,an=Lt(he.keys,he),on=Ae.max,sn=Ae.min,un=a.now,fn=t.parseInt,ln=Ae.random,cn=we.reverse,dn=$a(t,"DataView"),vn=$a(t,"Map"),An=$a(t,"Promise"),hn=$a(t,"Set"),gn=$a(t,"WeakMap"),bn=$a(he,"create"),mn=gn&&new gn,wn={},pn=Wo(dn),zn=Wo(vn),yn=Wo(An),Bn=Wo(hn),Pn=Wo(gn),Dn=Je?Je.prototype:void 0,Xn=Dn?Dn.valueOf:void 0,Wn=Dn?Dn.toString:void 0;function On(e){if(Ri(e)&&!ki(e)&&!(e instanceof En)){if(e instanceof Zn)return e;if(Pe.call(e,"__wrapped__"))return Oo(e)}return new Zn(e)}var Hn=function(){function e(){}return function(t){if(!Vi(t))return{};if(je)return je(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function xn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function En(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Un(e,t,n,r,a,o){var i,s=1&t,f=2&t,d=4&t;if(n&&(i=a?n(e,r,a,o):n(e)),void 0!==i)return i;if(!Vi(e))return e;var y=ki(e);if(y){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return ba(e,i)}else{var k=no(e),J=k==v||k==A;if(Mi(e))return ca(e,s);if(k==b||k==u||J&&!a){if(i=f||J?{}:ao(e),!s)return f?function(e,t){return ma(e,to(e),t)}(e,function(e,t){return e&&ma(t,zs(t),e)}(i,e)):function(e,t){return ma(e,eo(e),t)}(e,jn(i,e))}else{if(!Le[k])return a?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case B:return da(e);case l:case c:return new r(+e);case P:return function(e,t){var n=t?da(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case X:case W:case O:case H:case x:case"[object Uint8ClampedArray]":case Z:case E:return va(e,n);case h:return new r;case g:case p:return new r(e);case m:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case w:return new r;case z:return a=e,Xn?he(Xn.call(a)):{}}var a}(e,k,s)}}o||(o=new Mn);var N=o.get(e);if(N)return N;o.set(e,i),qi(e)?e.forEach((function(r){i.add(Un(r,t,n,r,e,o))})):Yi(e)&&e.forEach((function(r,a){i.set(a,Un(r,t,n,a,e,o))}));var G=y?void 0:(d?f?ja:Ya:f?zs:ps)(e);return st(G||e,(function(r,a){G&&(r=e[a=r]),Vn(i,a,Un(r,t,n,a,e,o))})),i}function Kn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var a=n[r],o=t[a],i=e[a];if(void 0===i&&!(a in e)||!o(i))return!1}return!0}function _n(e,t,n){if("function"!=typeof e)throw new me(o);return po((function(){e.apply(void 0,n)}),t)}function $n(e,t,n,r){var a=-1,o=ct,i=!0,s=e.length,u=[],f=t.length;if(!s)return u;n&&(t=vt(t,xt(n))),r?(o=dt,i=!1):t.length>=200&&(o=Et,i=!1,t=new Gn(t));e:for(;++a-1},Jn.prototype.set=function(e,t){var n=this.__data__,r=Rn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new kn,map:new(vn||Jn),string:new kn}},Nn.prototype.delete=function(e){var t=Ka(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ka(this,e).get(e)},Nn.prototype.has=function(e){return Ka(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ka(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.clear=function(){this.__data__=new Jn,this.size=0},Mn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Mn.prototype.get=function(e){return this.__data__.get(e)},Mn.prototype.has=function(e){return this.__data__.has(e)},Mn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Jn){var r=n.__data__;if(!vn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=za(ur),tr=za(fr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function rr(e,t,n){for(var r=-1,a=e.length;++r0&&n(s)?t>1?or(s,t-1,n,r,a):At(a,s):r||(a[a.length]=s)}return a}var ir=ya(),sr=ya(!0);function ur(e,t){return e&&ir(e,t,ps)}function fr(e,t){return e&&sr(e,t,ps)}function lr(e,t){return lt(t,(function(t){return Fi(e[t])}))}function cr(e,t){for(var n=0,r=(t=sa(t,e)).length;null!=e&&nt}function hr(e,t){return null!=e&&Pe.call(e,t)}function gr(e,t){return null!=e&&t in he(e)}function br(e,t,n){for(var a=n?dt:ct,o=e[0].length,i=e.length,s=i,u=r(i),f=1/0,l=[];s--;){var c=e[s];s&&t&&(c=vt(c,xt(t))),f=sn(c.length,f),u[s]=!n&&(t||o>=120&&c.length>=120)?new Gn(s&&c):void 0}c=e[0];var d=-1,v=u[0];e:for(;++d=s)return u;var f=n[r];return u*("desc"==f?-1:1)}}return e.index-t.index}(e,t,n)}))}function kr(e,t,n){for(var r=-1,a=t.length,o={};++r-1;)s!==e&&qe.call(s,u,1),qe.call(e,u,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==o){var o=a;io(a)?qe.call(e,a,1):$r(e,a)}}return e}function Gr(e,t){return e+$t(ln()*(t-e+1))}function Mr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=$t(t/2))&&(e+=e)}while(t);return n}function Cr(e,t){return zo(ho(e,t,js),e+"")}function Ir(e){return In(Hs(e))}function Fr(e,t){var n=Hs(e);return Po(n,qn(t,0,n.length))}function Lr(e,t,n,r){if(!Vi(e))return e;for(var a=-1,o=(t=sa(t,e)).length,i=o-1,s=e;null!=s&&++ao?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=r(o);++a>>1,i=e[o];null!==i&&!Ki(i)&&(n?i<=t:i=200){var f=t?null:Ma(e);if(f)return Vt(f);i=!1,a=Et,u=new Gn}else u=t?[]:s;e:for(;++r=r?e:Yr(e,t,n)}var la=qt||function(e){return Te.clearTimeout(e)};function ca(e,t){if(t)return e.slice();var n=e.length,r=Qe?Qe(n):new e.constructor(n);return e.copy(r),r}function da(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function va(e,t){var n=t?da(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Aa(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e==e,o=Ki(e),i=void 0!==t,s=null===t,u=t==t,f=Ki(t);if(!s&&!f&&!o&&e>t||o&&i&&u&&!s&&!f||r&&i&&u||!n&&u||!a)return 1;if(!r&&!o&&!f&&e1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,i&&so(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=he(t);++r-1?a[o?t[i]:i]:void 0}}function Wa(e){return Ra((function(t){var n=t.length,r=n,a=Zn.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new me(o);if(a&&!s&&"wrapper"==Sa(i))var s=new Zn([],!0)}for(r=s?r:n;++r1&&w.reverse(),c&&fs))return!1;var f=o.get(e),l=o.get(t);if(f&&l)return f==t&&l==e;var c=-1,d=!0,v=2&n?new Gn:void 0;for(o.set(e,t),o.set(t,e);++c-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(K,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(_);return t?t[1].split($):[]}(r),n)))}function Bo(e){var t=0,n=0;return function(){var r=un(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Po(e,t){var n=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,So(e,n)}));function ti(e){var t=On(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Ra((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return Sn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof En&&io(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[a],thisArg:void 0}),new Zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(a)}));var ai=wa((function(e,t,n){Pe.call(e,n)?++e[n]:Tn(e,n,1)}));var oi=Xa(Eo),ii=Xa(ko);function si(e,t){return(ki(e)?st:er)(e,Ua(t,3))}function ui(e,t){return(ki(e)?ut:tr)(e,Ua(t,3))}var fi=wa((function(e,t,n){Pe.call(e,n)?e[n].push(t):Tn(e,n,[t])}));var li=Cr((function(e,t,n){var a=-1,o="function"==typeof t,i=Ni(e)?r(e.length):[];return er(e,(function(e){i[++a]=o?ot(t,e,n):mr(e,t,n)})),i})),ci=wa((function(e,t,n){Tn(e,n,t)}));function di(e,t){return(ki(e)?vt:Wr)(e,Ua(t,3))}var vi=wa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ai=Cr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Er(e,or(t,1),[])})),hi=Ut||function(){return Te.Date.now()};function gi(e,t,n){return t=n?void 0:t,Ia(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function bi(e,t){var n;if("function"!=typeof t)throw new me(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var mi=Cr((function(e,t,n){var r=1;if(n.length){var a=Qt(n,qa(mi));r|=32}return Ia(e,r,t,n,a)})),wi=Cr((function(e,t,n){var r=3;if(n.length){var a=Qt(n,qa(wi));r|=32}return Ia(t,r,e,n,a)}));function pi(e,t,n){var r,a,i,s,u,f,l=0,c=!1,d=!1,v=!0;if("function"!=typeof e)throw new me(o);function A(t){var n=r,o=a;return r=a=void 0,l=t,s=e.apply(o,n)}function h(e){return l=e,u=po(b,t),c?A(e):s}function g(e){var n=e-f;return void 0===f||n>=t||n<0||d&&e-l>=i}function b(){var e=hi();if(g(e))return m(e);u=po(b,function(e){var n=t-(e-f);return d?sn(n,i-(e-l)):n}(e))}function m(e){return u=void 0,v&&r?A(e):(r=a=void 0,s)}function w(){var e=hi(),n=g(e);if(r=arguments,a=this,f=e,n){if(void 0===u)return h(f);if(d)return la(u),u=po(b,t),A(f)}return void 0===u&&(u=po(b,t)),s}return t=os(t)||0,Vi(n)&&(c=!!n.leading,i=(d="maxWait"in n)?on(os(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==u&&la(u),l=0,r=f=a=u=void 0},w.flush=function(){return void 0===u?s:m(hi())},w}var zi=Cr((function(e,t){return _n(e,1,t)})),yi=Cr((function(e,t,n){return _n(e,os(t)||0,n)}));function Bi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new me(o);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(Bi.Cache||Nn),n}function Pi(e){if("function"!=typeof e)throw new me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bi.Cache=Nn;var Di=ua((function(e,t){var n=(t=1==t.length&&ki(t[0])?vt(t[0],xt(Ua())):vt(or(t,1),xt(Ua()))).length;return Cr((function(r){for(var a=-1,o=sn(r.length,n);++a=t})),Ei=wr(function(){return arguments}())?wr:function(e){return Ri(e)&&Pe.call(e,"callee")&&!Se.call(e,"callee")},ki=r.isArray,Ji=$e?xt($e):function(e){return Ri(e)&&vr(e)==B};function Ni(e){return null!=e&&Qi(e.length)&&!Fi(e)}function Gi(e){return Ri(e)&&Ni(e)}var Mi=tn||ou,Ci=et?xt(et):function(e){return Ri(e)&&vr(e)==c};function Ii(e){if(!Ri(e))return!1;var t=vr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ti(e)}function Fi(e){if(!Vi(e))return!1;var t=vr(e);return t==v||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Li(e){return"number"==typeof e&&e==rs(e)}function Qi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Vi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ri(e){return null!=e&&"object"==typeof e}var Yi=tt?xt(tt):function(e){return Ri(e)&&no(e)==h};function ji(e){return"number"==typeof e||Ri(e)&&vr(e)==g}function Ti(e){if(!Ri(e)||vr(e)!=b)return!1;var t=Ye(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Be.call(n)==Oe}var Si=nt?xt(nt):function(e){return Ri(e)&&vr(e)==m};var qi=rt?xt(rt):function(e){return Ri(e)&&no(e)==w};function Ui(e){return"string"==typeof e||!ki(e)&&Ri(e)&&vr(e)==p}function Ki(e){return"symbol"==typeof e||Ri(e)&&vr(e)==z}var _i=at?xt(at):function(e){return Ri(e)&&Qi(e.length)&&!!Fe[vr(e)]};var $i=Ja(Xr),es=Ja((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ni(e))return Ui(e)?jt(e):ba(e);if(_e&&e[_e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[_e]());var t=no(e);return(t==h?Ft:t==w?Vt:Hs)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function as(e){return e?qn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Ki(e))return NaN;if(Vi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(S,"");var n=oe.test(e);return n||se.test(e)?Re(e.slice(2),n?2:8):ae.test(e)?NaN:+e}function is(e){return ma(e,zs(e))}function ss(e){return null==e?"":Kr(e)}var us=pa((function(e,t){if(co(t)||Ni(t))ma(t,ps(t),e);else for(var n in t)Pe.call(t,n)&&Vn(e,n,t[n])})),fs=pa((function(e,t){ma(t,zs(t),e)})),ls=pa((function(e,t,n,r){ma(t,zs(t),e,r)})),cs=pa((function(e,t,n,r){ma(t,ps(t),e,r)})),ds=Ra(Sn);var vs=Cr((function(e,t){e=he(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&so(t[0],t[1],a)&&(r=1);++n1),t})),ma(e,ja(e),n),r&&(n=Un(n,7,Qa));for(var a=t.length;a--;)$r(n,t[a]);return n}));var Ds=Ra((function(e,t){return null==e?{}:function(e,t){return kr(e,t,(function(t,n){return gs(e,n)}))}(e,t)}));function Xs(e,t){if(null==e)return{};var n=vt(ja(e),(function(e){return[e]}));return t=Ua(t),kr(e,n,(function(e,n){return t(e,n[0])}))}var Ws=Ca(ps),Os=Ca(zs);function Hs(e){return null==e?[]:Zt(e,ps(e))}var xs=Pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Zs(t):t)}));function Zs(e){return Is(ss(e).toLowerCase())}function Es(e){return(e=ss(e))&&e.replace(fe,Gt).replace(ke,"")}var ks=Pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Js=Pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ba("toLowerCase");var Gs=Pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ms=Pa((function(e,t,n){return e+(n?" ":"")+Is(t)}));var Cs=Pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Is=Ba("toUpperCase");function Fs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ls=Cr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ii(e)?e:new de(e)}})),Qs=Ra((function(e,t){return st(t,(function(t){t=Xo(t),Tn(e,t,mi(e[t],e))})),e}));function Vs(e){return function(){return e}}var Rs=Wa(),Ys=Wa(!0);function js(e){return e}function Ts(e){return Br("function"==typeof e?e:Un(e,1))}var Ss=Cr((function(e,t){return function(n){return mr(n,e,t)}})),qs=Cr((function(e,t){return function(n){return mr(e,n,t)}}));function Us(e,t,n){var r=ps(t),a=lr(t,r);null!=n||Vi(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=lr(t,ps(t)));var o=!(Vi(n)&&"chain"in n&&!n.chain),i=Fi(e);return st(a,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),a=n.__actions__=ba(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function Ks(){}var _s=Za(vt),$s=Za(ft),eu=Za(bt);function tu(e){return uo(e)?Dt(Xo(e)):function(e){return function(t){return cr(t,e)}}(e)}var nu=ka(),ru=ka(!0);function au(){return[]}function ou(){return!1}var iu=xa((function(e,t){return e+t}),0),su=Ga("ceil"),uu=xa((function(e,t){return e/t}),1),fu=Ga("floor");var lu,cu=xa((function(e,t){return e*t}),1),du=Ga("round"),vu=xa((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new me(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=gi,On.assign=us,On.assignIn=fs,On.assignInWith=ls,On.assignWith=cs,On.at=ds,On.before=bi,On.bind=mi,On.bindAll=Qs,On.bindKey=wi,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ki(e)?e:[e]},On.chain=ti,On.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:on(rs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,i=0,s=r(_t(a/t));oa?0:a+n),(r=void 0===r||r>a?a:rs(r))<0&&(r+=a),r=n>r?0:as(r);n>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Si(t))&&!(t=Kr(t))&&It(e)?fa(jt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new me(o);return t=null==t?0:on(rs(t),0),Cr((function(n){var r=n[t],a=fa(n,0,t);return r&&At(a,r),ot(e,this,a)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Yr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Yr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Yr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ta(e,Ua(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ta(e,Ua(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new me(o);return Vi(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),pi(e,t,{leading:r,maxWait:t,trailing:a})},On.thru=ni,On.toArray=ts,On.toPairs=Ws,On.toPairsIn=Os,On.toPath=function(e){return ki(e)?vt(e,Xo):Ki(e)?[e]:ba(Do(ss(e)))},On.toPlainObject=is,On.transform=function(e,t,n){var r=ki(e),a=r||Mi(e)||_i(e);if(t=Ua(t,4),null==n){var o=e&&e.constructor;n=a?r?new o:[]:Vi(e)&&Fi(o)?Hn(Ye(e)):{}}return(a?st:ur)(e,(function(e,r,a){return t(n,e,r,a)})),n},On.unary=function(e){return gi(e,1)},On.union=Ro,On.unionBy=Yo,On.unionWith=jo,On.uniq=function(e){return e&&e.length?_r(e):[]},On.uniqBy=function(e,t){return e&&e.length?_r(e,Ua(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?_r(e,void 0,t):[]},On.unset=function(e,t){return null==e||$r(e,t)},On.unzip=To,On.unzipWith=So,On.update=function(e,t,n){return null==e?e:ea(e,t,ia(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ea(e,t,ia(n),r)},On.values=Hs,On.valuesIn=function(e){return null==e?[]:Zt(e,zs(e))},On.without=qo,On.words=Fs,On.wrap=function(e,t){return Xi(ia(t),e)},On.xor=Uo,On.xorBy=Ko,On.xorWith=_o,On.zip=$o,On.zipObject=function(e,t){return aa(e||[],t||[],Vn)},On.zipObjectDeep=function(e,t){return aa(e||[],t||[],Lr)},On.zipWith=ei,On.entries=Ws,On.entriesIn=Os,On.extend=fs,On.extendWith=ls,Us(On,On),On.add=iu,On.attempt=Ls,On.camelCase=xs,On.capitalize=Zs,On.ceil=su,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),qn(os(e),t,n)},On.clone=function(e){return Un(e,4)},On.cloneDeep=function(e){return Un(e,5)},On.cloneDeepWith=function(e,t){return Un(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Un(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Kn(e,t,ps(t))},On.deburr=Es,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=uu,On.endsWith=function(e,t,n){e=ss(e),t=Kr(t);var r=e.length,a=n=void 0===n?r:qn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},On.eq=Hi,On.escape=function(e){return(e=ss(e))&&I.test(e)?e.replace(M,Mt):e},On.escapeRegExp=function(e){return(e=ss(e))&&T.test(e)?e.replace(j,"\\$&"):e},On.every=function(e,t,n){var r=ki(e)?ft:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Ua(t,3))},On.find=oi,On.findIndex=Eo,On.findKey=function(e,t){return wt(e,Ua(t,3),ur)},On.findLast=ii,On.findLastIndex=ko,On.findLastKey=function(e,t){return wt(e,Ua(t,3),fr)},On.floor=fu,On.forEach=si,On.forEachRight=ui,On.forIn=function(e,t){return null==e?e:ir(e,Ua(t,3),zs)},On.forInRight=function(e,t){return null==e?e:sr(e,Ua(t,3),zs)},On.forOwn=function(e,t){return e&&ur(e,Ua(t,3))},On.forOwnRight=function(e,t){return e&&fr(e,Ua(t,3))},On.get=hs,On.gt=xi,On.gte=Zi,On.has=function(e,t){return null!=e&&ro(e,t,hr)},On.hasIn=gs,On.head=No,On.identity=js,On.includes=function(e,t,n,r){e=Ni(e)?e:Hs(e),n=n&&!r?rs(n):0;var a=e.length;return n<0&&(n=on(a+n,0)),Ui(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&zt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:rs(n);return a<0&&(a=on(r+a,0)),zt(e,t,a)},On.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=qi,On.isString=Ui,On.isSymbol=Ki,On.isTypedArray=_i,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ri(e)&&no(e)==y},On.isWeakSet=function(e){return Ri(e)&&"[object WeakSet]"==vr(e)},On.join=function(e,t){return null==e?"":rn.call(e,t)},On.kebabCase=ks,On.last=Io,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return void 0!==n&&(a=(a=rs(n))<0?on(r+a,0):sn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):pt(e,Bt,a,!0)},On.lowerCase=Js,On.lowerFirst=Ns,On.lt=$i,On.lte=es,On.max=function(e){return e&&e.length?rr(e,js,Ar):void 0},On.maxBy=function(e,t){return e&&e.length?rr(e,Ua(t,2),Ar):void 0},On.mean=function(e){return Pt(e,js)},On.meanBy=function(e,t){return Pt(e,Ua(t,2))},On.min=function(e){return e&&e.length?rr(e,js,Xr):void 0},On.minBy=function(e,t){return e&&e.length?rr(e,Ua(t,2),Xr):void 0},On.stubArray=au,On.stubFalse=ou,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=cu,On.nth=function(e,t){return e&&e.length?Zr(e,rs(t)):void 0},On.noConflict=function(){return Te._===this&&(Te._=He),this},On.noop=Ks,On.now=hi,On.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Yt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Ea($t(a),n)+e+Ea(_t(a),n)},On.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Yt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=ln();return sn(e+a*(t-e+Ve("1e-"+((a+"").length-1))),t)}return Gr(e,t)},On.reduce=function(e,t,n){var r=ki(e)?ht:Wt,a=arguments.length<3;return r(e,Ua(t,4),n,a,er)},On.reduceRight=function(e,t,n){var r=ki(e)?gt:Wt,a=arguments.length<3;return r(e,Ua(t,4),n,a,tr)},On.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Mr(ss(e),t)},On.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,a=(t=sa(t,e)).length;for(a||(a=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var a=Ht(r,t=Ua(t));++n=o)return e;var s=n-Yt(r);if(s<1)return r;var u=i?fa(i,0,s).join(""):e.slice(0,s);if(void 0===a)return u+r;if(i&&(s+=u.length-s),Si(a)){if(e.slice(s).search(a)){var f,l=u;for(a.global||(a=ge(a.source,ss(re.exec(a))+"g")),a.lastIndex=0;f=a.exec(l);)var c=f.index;u=u.slice(0,void 0===c?s:c)}}else if(e.indexOf(Kr(a),s)!=s){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+r},On.unescape=function(e){return(e=ss(e))&&C.test(e)?e.replace(G,Tt):e},On.uniqueId=function(e){var t=++De;return ss(e)+t},On.upperCase=Cs,On.upperFirst=Is,On.each=si,On.eachRight=ui,On.first=No,Us(On,(lu={},ur(On,(function(e,t){Pe.call(On.prototype,t)||(lu[t]=e)})),lu),{chain:!1}),On.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){En.prototype[e]=function(n){n=void 0===n?1:on(rs(n),0);var r=this.__filtered__&&!t?new En(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},En.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;En.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");En.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");En.prototype[e]=function(){return this.__filtered__?new En(this):this[n](1)}})),En.prototype.compact=function(){return this.filter(js)},En.prototype.find=function(e){return this.filter(e).head()},En.prototype.findLast=function(e){return this.reverse().find(e)},En.prototype.invokeMap=Cr((function(e,t){return"function"==typeof e?new En(this):this.map((function(n){return mr(n,e,t)}))})),En.prototype.reject=function(e){return this.filter(Pi(Ua(e)))},En.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new En(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},En.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},En.prototype.toArray=function(){return this.take(4294967295)},ur(En.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(On.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,s=t instanceof En,u=i[0],f=s||ki(t),l=function(e){var t=a.apply(On,At([e],i));return r&&c?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(s=f=!1);var c=this.__chain__,d=!!this.__actions__.length,v=o&&!c,A=s&&!d;if(!o&&f){t=A?t:new En(this);var h=e.apply(t,i);return h.__actions__.push({func:ni,args:[l],thisArg:void 0}),new Zn(h,c)}return v&&A?e.apply(this,i):(h=this.thru(l),v?r?h.value()[0]:h.value():h)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=we[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(ki(a)?a:[],e)}return this[n]((function(n){return t.apply(ki(n)?n:[],e)}))}})),ur(En.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Pe.call(wn,r)||(wn[r]=[]),wn[r].push({name:t,func:n})}})),wn[Oa(void 0,2).name]=[{name:"wrapper",func:void 0}],En.prototype.clone=function(){var e=new En(this.__wrapped__);return e.__actions__=ba(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ba(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ba(this.__views__),e},En.prototype.reverse=function(){if(this.__filtered__){var e=new En(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},En.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ki(e),r=t<0,a=n?e.length:0,o=function(e,t,n){var r=-1,a=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof xn;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof En){var t=e;return this.__actions__.length&&(t=new En(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Vo],thisArg:void 0}),new Zn(t,this.__chain__)}return this.thru(Vo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return na(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,_e&&(On.prototype[_e]=function(){return this}),On}();Te._=St,void 0===(a=function(){return St}.call(t,n,t,r))||(r.exports=a)}).call(this)}).call(this,n(12),n(13)(e))},,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(2),a=n(15);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){var r=n(3),a=n(4),o=n(5),i=n(6);t=r(!1);var s=a(o),u=a(i);t.push([e.i,"@font-face {\n font-family: 'Noto Sans TC';\n src: url("+s+")\n format('woff2');\n}\n@font-face {\n font-family: 'Noto Sans SC';\n src: url("+u+")\n format('woff2');\n}\n\n#tooltip {\n position: absolute;\n width: auto;\n height: auto;\n padding: 5px;\n background-color: white;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n pointer-events: none;\n font-family: sans-serif;\n font-size: 12px;\n z-index: 2;\n}\n\n.tooltipTable {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n border: 0px;\n border-collapse: collapse;\n table-layout: auto;\n}\n\n.focus {\n font-weight: bold;\n}\n\n.hidden {\n display: none;\n}\n\n.hover {\n background-color: #ffffbb;\n}\n\n.reportTable {\n font-family: Open Sans, Helvetica, Arial, Noto Sans TC, Noto Sans SC,\n sans-serif;\n border-collapse: separate;\n border-spacing: 3px;\n table-layout: fixed;\n}\n\nth.headerCell {\n border-bottom: 1px solid #000000 !important;\n font-weight: bold;\n padding: 5px;\n}\n\n.headerCell.merged {\n text-align: center !important;\n background-color: #ffffff !important;\n}\n\n.headerCell.transposed.dimension.merged {\n text-align: center !important;\n background-color: #ffffff !important;\n}\n\n.indexCell.transposed {\n font-weight: bold;\n}\n\n.indexCell.transposed.merged {\n background-color: #ffffff !important;\n}\n\n.rowCell {\n vertical-align: super;\n padding-left: 5px;\n}\n\n.rowCell.merged {\n background-color: #ffffff !important;\n}\n\n.rowCell.transposed.dimension.merged {\n background-color: #ffffff !important;\n}\n\n.nonNumeric {\n text-align: left;\n}\n\n.numeric {\n text-align: right;\n}\n\n.negative {\n color: red;\n}\n\n.estimate {\n color: darkgray !important;\n}\n\n.singleIndex {\n padding-left: 15px !important;\n}\n\n.subtotal {\n font-style: italic;\n font-weight: bold !important;\n}\n\n.total {\n border-top: 2px solid #000000;\n font-weight: bold !important;\n}\n\n.total.transposed {\n border-top: 0px !important;\n}\n\n.dimension.transposed {\n font-weight: bold;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n padding: 4px;\n}\n\n.headerCell.animated {\n border-bottom: 4px solid #ffffff;\n box-shadow: inset 0px -1px 0px 0px #000000 !important;\n font-weight: bold;\n padding: 5px;\n box-sizing: border-box;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(17);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){var r=n(3),a=n(4),o=n(5),i=n(6);t=r(!1);var s=a(o),u=a(i);t.push([e.i,"@font-face {\n font-family: 'Noto Sans TC';\n src: url("+s+")\n format('woff2');\n}\n@font-face {\n font-family: 'Noto Sans SC';\n src: url("+u+")\n format('woff2');\n}\n\n#tooltip {\n position: absolute;\n width: auto;\n height: auto;\n padding: 5px;\n background-color: white;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n pointer-events: none;\n font-family: sans-serif;\n font-size: 12px;\n z-index: 2;\n}\n\n.tooltipTable {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n border: 0px;\n border-collapse: collapse;\n table-layout: auto;\n}\n\n.focus {\n font-weight: bold;\n}\n\n.hidden {\n display: none;\n}\n\n.hover {\n background-color: #ffffbb;\n}\n\n.reportTable {\n font-family: Open Sans, Helvetica, Arial, Noto Sans TC, Noto Sans SC,\n sans-serif;\n color: #696969;\n border-collapse: collapse;\n border-spacing: 3px;\n table-layout: fixed;\n}\n\nth.headerCell {\n background-color: #ccd8e4;\n padding: 5px;\n border-bottom: 1px solid #bdc3c7;\n}\n\n.headerCell.dimension {\n background-color: #e4ecf3;\n border-right: 1px solid #bdc3c7;\n}\n\n.headerCell.pivot {\n background-color: #ccd8e4;\n border-right: 1px solid #bdc3c7;\n}\n\n.headerCell.measure {\n background-color: #e4d0bd;\n border-left: 1px solid #bdc3c7;\n}\n\n.headerCell.measure.calculation {\n background-color: #c9dfc5;\n border-left: 1px solid #bdc3c7;\n}\n\n.headerCell.transposed.dimension {\n background-color: #e4ecf3;\n}\n\n.headerCell.transposed.dimension.merged {\n background-color: #e4ecf3 !important;\n}\n\n/* .headerCell.dimension.headerRow {\n background-color: #ccd8e4;\n border-right: 1px solid #BDC3C7;\n}\n\n.headerCell.pivot.headerRow {\n background-color: #ccd8e4;\n border-right: 1px solid #BDC3C7;\n}\n\n.headerCell.measure.headerRow {\n background-color: #ccd8e4;\n border-left: 1px solid #BDC3C7;\n} */\n\n.rowCell {\n vertical-align: super;\n padding-left: 5px;\n border-bottom: 1px solid #bdc3c7;\n}\n\n.rowCell.merged {\n background-color: #ffffff !important;\n}\n\n.indexCell.transposed {\n font-weight: bold;\n}\n\n.indexCell.transposed.pivot {\n background-color: #ccd8e4;\n}\n\n.indexCell.transposed.dimension {\n background-color: #e4ecf3;\n}\n\n.indexCell.transposed.measure {\n background-color: #e4d0bd;\n}\n\n.indexCell.transposed.calculation {\n background-color: #c9dfc5;\n}\n\n.indexCell.transposed.pivot.merged {\n background-color: #ccd8e4 !important;\n}\n\n.indexCell.transposed.dimension.merged {\n background-color: #e4ecf3 !important;\n}\n\n.indexCell.transposed.measure.merged {\n background-color: #e4d0bd !important;\n}\n\n.indexCell.transposed.calculation.merged {\n background-color: #c9dfc5 !important;\n}\n\n.nonNumeric {\n text-align: left;\n}\n\n.numeric {\n text-align: right;\n}\n\n.negative {\n color: red;\n}\n\n.estimate {\n color: darkgray !important;\n}\n\n.singleIndex {\n padding-left: 15px !important;\n}\n\n.subtotal {\n font-style: italic;\n font-weight: bold;\n background: #d3d3d3;\n}\n\n.total {\n border-top: 2px solid #696969 !important;\n font-weight: bold !important;\n}\n\n.total.transposed {\n border-top: 0px !important;\n background: #d3d3d3;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n margin: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(19);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){var r=n(3),a=n(4),o=n(5),i=n(6);t=r(!1);var s=a(o),u=a(i);t.push([e.i,"@font-face {\n font-family: 'Noto Sans TC';\n src: url("+s+")\n format('woff2');\n}\n@font-face {\n font-family: 'Noto Sans SC';\n src: url("+u+")\n format('woff2');\n}\n\n#tooltip {\n position: absolute;\n width: auto;\n height: auto;\n padding: 5px;\n background-color: white;\n -webkit-border-radius: 4px;\n -moz-border-radius: 4px;\n border-radius: 4px;\n -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);\n pointer-events: none;\n font-family: sans-serif;\n font-size: 12px;\n z-index: 2;\n}\n\n.tooltipTable {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n border: 0px;\n border-collapse: collapse;\n table-layout: auto;\n}\n\n.focus {\n font-weight: bold;\n}\n\n.hidden {\n display: none;\n}\n\n.hover {\n background-color: #ffffbb;\n}\n\n.reportTable {\n font-family: Open Sans, Helvetica, Arial, Noto Sans SC, Noto Sans TC,\n sans-serif;\n border: 1px solid #cccccc;\n border-collapse: collapse;\n border-spacing: 3px;\n}\n\ntable.reportTable th {\n border: 1px solid #cccccc;\n border-bottom: 1px solid #000000 !important;\n padding: 5px;\n}\n\ntable.reportTable td {\n vertical-align: super;\n padding: 5px;\n border: 1px solid #cccccc;\n border-collapse: collapse;\n}\n\n.headerCell {\n border-bottom: 1px solid #000000 !important;\n font-weight: bold;\n padding: 5px;\n}\n\n.indexCell.transposed {\n font-weight: bold;\n}\n\n.indexCell.transposed.merged {\n background-color: #ffffff !important;\n}\n\n.rowCell {\n vertical-align: super;\n padding-left: 5px;\n}\n\n.nonNumeric {\n text-align: left;\n}\n\n.numeric {\n text-align: right;\n}\n\n.negative {\n color: red;\n}\n\n.estimate {\n color: darkgray !important;\n}\n\n.singleIndex {\n padding-left: 15px !important;\n}\n\n.subtotal {\n font-style: italic;\n font-weight: bold;\n background: #d3d3d3;\n}\n\n.total {\n border-top: 2px solid #000000 !important;\n font-weight: bold !important;\n}\n\n.total.transposed {\n border-top: 0px !important;\n background: #d3d3d3;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n margin: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(21);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){(t=n(3)(!1)).push([e.i,"#visContainer {\n z-index: 0;\n}\n\n#visSvg {\n z-index: 1;\n}\n\ntable.reportTable {\n width: 100%;\n table-layout: fixed;\n opacity: 0;\n transition: opacity 1000ms;\n}\n\ntable.reportTable.reveal {\n opacity: 1;\n transition: opacity 1000ms;\n}\n\ntable.reportTable th {\n max-width: 0px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n}\n\ntable.reportTable td {\n max-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.rectElem.animated {\n font-family: Open Sans, Helvetica, Arial, sans-serif;\n margin: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(2),a=n(23);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]);var o,i=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},u={};u.locals=a.locals||{},u.use=function(){return i++||(o=r(a,s)),u},u.unuse=function(){i>0&&!--i&&(o(),o=null)},e.exports=u},function(e,t,n){(t=n(3)(!1)).push([e.i,"#visContainer {\n z-index: 0;\n}\n\n#visSvg {\n z-index: 1;\n}\n\ntable.reportTable {\n width: 100%;\n table-layout: auto;\n opacity: 0;\n transition: opacity 1000ms;\n}\n\ntable.reportTable.reveal {\n opacity: 1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),o=n(7);class i{constructor({vis:e,queryResponseField:t}){this.vis=e,this.name=t.name,this.view=t.view_label||"",this.label=t.label_short||t.label,this.is_numeric=void 0!==t.is_numeric&&t.is_numeric,this.is_array=["list","number_list","location","tier"].includes(t.type),this.value_format=t.value_format?t.value_format:"",this.geo_type="",("location"===t.type||t.map_layer)&&(this.geo_type="location"===t.type?"location":t.map_layer.name),this.hide=!1,void 0!==this.vis.config["hide|"+this.name]&&this.vis.config["hide|"+this.name]&&(this.hide=!0),this.style="";var n=this.vis.config["style|"+this.name];void 0!==n&&("hide"===n?this.hide=!0:this.style=n),this.heading="",this.short_name="",this.unit="",void 0!==t.tags&&t.tags.forEach(e=>{var t=e.split(":");if("vis-tools"===t[0])switch(t[1]){case"heading":this.heading=t[2];break;case"short_name":this.short_name=t[2];break;case"unit":this.unit=t[2];break;case"style":this.style=t[2]}})}}class s extends i{constructor({vis:e,queryResponseField:t}){super({vis:e,queryResponseField:t}),this.type="dimension",this.align="left"}}class u extends i{constructor({vis:e,queryResponseField:t}){super({vis:e,queryResponseField:t}),this.type="pivot",this.align="center"}}class f extends i{constructor({vis:e,queryResponseField:t,can_pivot:n}){super({vis:e,queryResponseField:t}),this.type="measure",this.align="right",this.is_table_calculation=void 0!==t.is_table_calculation&&t.is_table_calculation,this.calculation_type=t.type,this.is_turtle=void 0!==t.is_turtle&&t.is_turtle,this.can_pivot=n}}class l{constructor({column:e,type:t,label:n=null,align:r="",cell_style:a=[],modelField:o={name:"",label:"",view:""},pivotData:i={}}={column:e,type:t,label:n,align:r,cell_style:a,modelField:o,pivotData:i}){this.id=[e.id,t].join("."),this.column=e,this.type=t,this.colspan=1,this.rowspan=1,this.headerRow=!0,this.cell_style=["headerCell"].concat(a),this.label=n,this.align=r||(this.column.modelField.is_numeric?"right":"left"),this.modelField=o,this.pivotData=i,o.type&&this.cell_style.push(o.type),o.is_table_calculation&&this.cell_style.push("calculation")}}class c{constructor({keys:e,values:t,types:n=[]}){if(e.length===t.length){this.keys=e,this.values=t,this.types=n;var r=[],a=[];this.values.forEach((e,t)=>{this.types[t]=void 0!==n[t]?n[t]:"line_item","line_item"===this.types[t]?(r.push(e),a.push(e)):"subtotal"===this.types[t]&&a.push(e)}),this.min_for_display=Math.min(...a),this.max_for_display=Math.max(...a),this.min=Math.min(...r),this.max=Math.max(...r),this.sum=r.reduce((e,t)=>e+t,0),this.count=r.length,this.avg=r.length>0?this.sum/r.length:null}}}class d{constructor({column:e,row:t,sort_value:n,series:r}){this.column=e,this.row=t,this.sort_value=n,this.series=new c(r)}toString(){var e="";return this.series.keys.forEach((t,n)=>{e+=t+":";var r=""===this.column.modelField.value_format?this.series.values[n].toString():SSF.format(this.column.modelField.value_format,this.series.values[n]);e+=r+" "}),e}}class v{constructor({column:e,is_numeric:t,series:n}){this.column=e,this.is_numeric=t,this.series=new c(n)}}class A{constructor({value:e,rendered:t=null,html:n=null,links:r=[],cell_style:a=[],align:o="right",rowspan:i=1,colspan:s=1,rowid:u="",colid:f=""}={}){this.value=e,this.rendered=t,this.html=n,this.links=r,this.cell_style=["rowCell"].concat(a),this.align=o,this.rowspan=i,this.colspan=s,this.colid=f,this.rowid=u,this.id=f&&u?[f,u].join("."):null,null===this.value&&"∞"!==this.rendered&&(this.rendered="∅")}}class h{constructor(e="line_item"){this.id="",this.hide=!1,this.type=e,this.sort=[],this.data={}}sortArray(){return this.sort}}class g{constructor(e,t,n){this.id=e,this.vis=t,this.modelField=n,this.transposed=!1,this.idx=0,this.pos=0,this.levels=[],this.pivot_key="",this.unit=n.unit||"",this.hide=n.hide||!1,this.isVariance=!1,this.variance_type=null,this.pivoted=!1,this.isRowTotal=!1,this.super=!1,this.subtotal=!1,this.subtotal_data={},this.series=null,this.sort=[],this.colspans=[]}getHeaderCellLabel(e){var t=this.levels[e];if(null!==t.label)var n=t.label;else{n=t.modelField.label;var r=this.vis.config["heading|"+t.modelField.name],a=this.vis.config["label|"+t.modelField.name];if("heading"===t.type)return n=void 0!==r&&r||t.modelField.heading;"field"===t.type&&(n=this.vis.useShortName&&t.modelField.short_name||t.modelField.label,void 0!==a&&a!==this.modelField.label&&(n=a||n),this.isVariance&&(n=this.vis.groupVarianceColumns?2===this.vis.pivot_values.length?"absolute"===this.variance_type?n+" #":n+" %":"absolute"===this.variance_type?n+" Var #":n+" Var %":"absolute"===this.variance_type?"Var #":"Var %"),void 0!==this.vis.useViewName&&this.vis.useViewName&&(n=[this.modelField.view,n].join(" "))),"pivot"===t.type&&this.isVariance&&this.vis.groupVarianceColumns&&(n=2===this.vis.pivot_values.length?"Variance":"Var "+n)}return n}getHeaderCellLabelByType(e){for(var t=0;t{e.label=null===e.label?this.getHeaderCellLabel(t):e.label})}getHeaderData(){var e={};return this.modelField.vis.headers.forEach((t,n)=>{e[t.type]=this.levels[n]}),e}}const b={theme:{section:"Theme",type:"string",display:"select",label:"Theme",values:[{Traditional:"traditional"},{Looker:"looker"},{Contemporary:"contemporary"},{"Use custom theme":"custom"}],default:"traditional",order:1},customTheme:{section:"Theme",type:"string",label:"Load custom CSS from:",default:"",order:2},layout:{section:"Theme",type:"string",display:"select",label:"Layout",values:[{Even:"fixed"},{Auto:"auto"}],default:"fixed",order:3},minWidthForIndexColumns:{section:"Theme",type:"boolean",label:"Automatic column width on index",default:!0,order:3.5},headerFontSize:{section:"Theme",type:"number",display_size:"half",label:"Header Size",default:12,order:4},bodyFontSize:{section:"Theme",type:"number",display_size:"half",label:"Body Size",default:12,order:5},showTooltip:{section:"Theme",type:"boolean",display_size:"half",label:"Show tooltip",default:!0,order:6},showHighlight:{section:"Theme",type:"boolean",display_size:"half",label:"Show highlight",default:!0,order:7},columnOrder:{},rowSubtotals:{section:"Table",type:"boolean",label:"Row Subtotals",display_size:"half",default:!1,order:1},colSubtotals:{section:"Table",type:"boolean",label:"Col Subtotals",display_size:"half",default:!1,order:2},spanRows:{section:"Table",type:"boolean",label:"Merge Dims",display_size:"half",default:!0,order:3},spanCols:{section:"Table",type:"boolean",label:"Merge Headers",display_size:"half",default:!0,order:4},calculateOthers:{section:"Table",type:"boolean",label:"Calculate Others Row",default:!0,order:4.5},sortColumnsBy:{section:"Table",type:"string",display:"select",label:"Sort Columns By",values:[{Pivots:"pivots"},{Measures:"measures"}],default:"pivots",order:6},useViewName:{section:"Table",type:"boolean",label:"Include View Name",default:!1,order:7},useHeadings:{section:"Table",type:"boolean",label:"Use Headings",default:!1,order:8},useShortName:{section:"Table",type:"boolean",label:"Use Short Name (from model tags)",default:!1,order:9},useUnit:{section:"Table",type:"boolean",label:"Use Unit (when reporting in 000s)",default:!1,order:9.5},groupVarianceColumns:{section:"Table",type:"boolean",label:"Group Variance Columns",default:!1,order:10},genericLabelForSubtotals:{section:"Table",type:"boolean",label:"Label all subtotal rows as 'Subtotal'",default:!1,order:11},indexColumn:{section:"Dimensions",type:"boolean",label:"Use Last Field Only",default:!1,order:0},transposeTable:{section:"Table",type:"boolean",label:"Transpose Table",default:!1,order:100}};class m{constructor(e,t,n){this.visId="report_table",this.config=n,this.headers=[],this.dimensions=[],this.measures=[],this.columns=[],this.data=[],this.subtotals_data={},this.transposed_headers=[],this.transposed_columns=[],this.transposed_data=[],this.pivot_fields=[],this.pivot_values=void 0!==t.pivots?t.pivots:[],this.variances=[],this.column_series=[],this.firstVisibleDimension="",this.useIndexColumn=n.indexColumn||!1,this.useHeadings=n.useHeadings||!1,this.useShortName=n.useShortName||!1,this.useViewName=n.useViewName||!1,this.addRowSubtotals=n.rowSubtotals||!1,this.addSubtotalDepth=parseInt(n.subtotalDepth)||this.dimensions.length-1,this.addColSubtotals=n.colSubtotals||!1,this.spanRows=n.spanRows,this.spanCols=n.spanCols,this.sortColsBy=n.sortColumnsBy||"pivots",this.fieldLevel=0,this.groupVarianceColumns=n.groupVarianceColumns||!1,this.minWidthForIndexColumns=n.minWidthForIndexColumns||!1,this.showTooltip=n.showTooltip||!1,this.showHighlight=n.showHighlight||!1,this.genericLabelForSubtotals=n.genericLabelForSubtotals||!1,this.sorts=t.sorts,this.hasTotals=void 0!==t.totals_data,this.calculateOthers=void 0!==t.truncated&&(t.truncated&&n.calculateOthers),this.hasSubtotals=void 0!==t.subtotals_data,this.hasRowTotals=t.has_row_totals||!1,this.hasPivots=void 0!==t.pivots,this.hasSupers=void 0!==t.fields.supermeasure_like&&Boolean(t.fields.supermeasure_like.length),this.transposeTable=n.transposeTable||!1;this.addPivotsAndHeaders(t),this.addDimensions(t,0),this.addMeasures(t,0),this.checkVarianceCalculations(),this.useIndexColumn&&this.addIndexColumn(t),this.hasSubtotals&&this.checkSubtotalsData(t),this.addRows(e),this.addColumnSeries(),this.hasTotals&&this.buildTotals(t),this.spanRows&&this.setRowSpans(),this.addRowSubtotals&&this.addSubTotals(),this.addColSubtotals&&2===this.pivot_fields.length&&this.addColumnSubTotals(),this.variances&&this.addVarianceColumns(),this.sortColumns(),this.columns.forEach(e=>e.setHeaderCellLabels()),this.spanCols&&this.setColSpans(),this.applyFormatting(),this.transposeTable&&(this.transposeDimensionsIntoHeaders(),this.transposeRowsIntoColumns(),this.transposeColumnsIntoRows()),this.validateConfig(),this.getTableColumnGroups()}static getCoreConfigOptions(){return b}getConfigOptions(){var e=b,t=[];return this.dimensions.forEach((n,r)=>{if(e["label|"+n.name]={section:"Dimensions",type:"string",label:n.label,default:n.label,order:10*r+1},e["heading|"+n.name]={section:"Dimensions",type:"string",label:"Heading",default:"",order:10*r+2},e["hide|"+n.name]={section:"Dimensions",type:"boolean",label:"Hide",display_size:"third",default:!1,order:10*r+3},r{e["label|"+t.name]={section:"Measures",type:"string",label:t.label,default:t.label,order:100+10*n+1},e["heading|"+t.name]={section:"Measures",type:"string",label:"Heading for "+t.label,default:"",order:100+10*n+2},e["style|"+t.name]={section:"Measures",type:"string",label:"Style",display:"select",display_size:"third",values:[{Normal:"normal"},{"Black/Red":"black_red"},{Subtotal:"subtotal"},{Hidden:"hide"}],default:"normal",order:100+10*n+3},e["reportIn|"+t.name]={section:"Measures",type:"string",label:"Report In",display:"select",display_size:"third",values:[{"Absolute Figures":"1"},{Thousands:"1000"},{Millions:"1000000"},{Billions:"1000000000"}],default:"1",order:100+10*n+3.5},e["unit|"+t.name]={section:"Measures",type:"string",label:"Unit",display_size:"third",default:"",order:100+10*n+3.7};var r=[];if(t.can_pivot){var a=[];this.pivot_fields.forEach((e,t)=>{if(1===this.pivot_fields.length||1===t||this.config.colSubtotals){var n={};n["By "+e.label]=e.name,a.push(n)}}),r=r.concat(a)}this.measures.forEach((e,a)=>{var o=t.can_pivot===e.can_pivot||this.hasRowTotals&&!e.is_table_calculation;if(n!=a&&o){var i={};i["Vs. "+e.label]=e.name,r.push(i)}}),r.unshift({"(none)":"no_variance"}),e["comparison|"+t.name]={section:"Measures",type:"string",label:"Comparison",display:"select",values:r,default:"no_variance",order:100+10*n+5},e["switch|"+t.name]={section:"Measures",type:"boolean",label:"Switch",display_size:"third",default:!1,order:100+10*n+6},e["var_num|"+t.name]={section:"Measures",type:"boolean",label:"Var #",display_size:"third",default:!0,order:100+10*n+7},e["var_pct|"+t.name]={section:"Measures",type:"boolean",label:"Var %",display_size:"third",default:!1,order:100+10*n+8}}),e}addPivotsAndHeaders(e){e.fields.pivots.forEach((e,t)=>{var n=new u({vis:this,queryResponseField:e});this.pivot_fields.push(n),this.headers.push({type:"pivot"+t,modelField:n})});var t=this.useHeadings?[{type:"heading",modelField:{label:"(will be replaced by header for column)s"}}]:[];t.push({type:"field",modelField:{label:"(will be replaced by field for column)"}}),"pivots"===this.sortColsBy?this.headers.push(...t):this.headers.unshift(...t);for(var n=0;n{var n=new s({vis:this,queryResponseField:e});n.hide=!!this.useIndexColumn||n.hide,this.dimensions.push(n);var r=new g(n.name,this,n);r.idx=t,r.sort.push({name:"section",value:0}),this.headers.forEach(e=>{switch(e.type){case"pivot0":case"pivot1":var a=new u({vis:this,queryResponseField:e.modelField}),o=new l({column:r,type:e.type,modelField:a});o.label="",r.levels.push(o),r.sort.push({name:e.type,value:0});break;case"heading":r.levels.push(new l({column:r,type:"heading",modelField:n}));break;case"field":r.levels.push(new l({column:r,type:"field",modelField:n})),r.sort.push({name:"col_idx",value:t})}}),this.columns.push(r),t+=10});for(var n=0;n{var t=new f({vis:this,queryResponseField:e,can_pivot:!0}),n=this.config["reportIn|"+e.name],r=this.config["unit|"+e.name];void 0!==n&&"1"!==n&&(t.value_format="#,##0",void 0!==r&&""!==r&&(t.unit=r)),this.measures.push(t)}),this.hasPivots?this.pivot_values.forEach(e=>{var n="$$$_row_total_$$$"===e.key;this.measures.forEach((r,a)=>{if(!n||n&&!r.is_table_calculation){var o=new g([e.key,r.name].join("."),this,r);o.pivoted=!n,o.isRowTotal=n,o.pivot_key=e.key,o.idx=t;var i=[],s=[];this.headers.forEach(t=>{switch(t.type){case"pivot0":case"pivot1":var a=n?"":e.metadata[t.modelField.name].rendered||e.metadata[t.modelField.name].value;n&&t.type.startsWith("pivot")&&t.type==="pivot"+(this.pivot_fields.length-1)&&(a="Row Total"),o.levels.push(new l({column:o,type:t.type,modelField:{label:a},pivotData:e})),s.push(e.sort_values[t.modelField.name]),o.pivoted?i.push({name:t.modelField.name,value:e.sort_values[t.modelField.name]}):i.push({name:t.modelField.name,value:0});break;case"heading":o.levels.push(new l({column:o,type:"heading",modelField:r}));break;case"field":o.levels.push(new l({column:o,type:"field",modelField:r}))}});var u=[];if(u.push({name:"section",value:n?2:1}),"measures"===this.sortColsBy&&u.push({name:"measure_idx",value:a}),2===this.pivot_fields.length)if(this.addColSubtotals)u=u.concat(i);else{var f=[];this.sorts.forEach(e=>{this.pivot_fields.forEach(t=>{t.name===e.name&&i.forEach(e=>{e.name===t.name&&f.push(e.name)})})}),u=f[0]===this.pivot_fields[0].name?u.concat(i):u.concat(i.reverse())}else u.push(i[0]);"pivots"===this.sortColsBy&&u.push({name:"measure_idx",value:a}),o.sort=u,this.columns.push(o),t+=10}})}):this.measures.forEach(e=>{var n=new g(e.name,this,e);n.sort.push({name:"section",value:1}),n.idx=t;try{void 0!==this.config.columnOrder[n.id]?n.pos=this.config.columnOrder[n.id]:n.pos=t}catch{n.pos=t}this.headers.forEach(t=>{switch(t.type){case"heading":n.levels.push(new l({column:n,type:"heading",modelField:e}));break;case"field":n.levels.push(new l({column:n,type:"field",modelField:e})),n.sort.push({name:"column.pos",value:n.pos})}}),this.columns.push(n),t+=10}),void 0!==e.fields.supermeasure_like&&e.fields.supermeasure_like.forEach(e=>{var n=new f({vis:this,queryResponseField:e,can_pivot:!1}),r=this.config["reportIn|"+e.name],a=this.config["unit|"+e.name];void 0!==r&&"1"!==r&&(n.value_format="#,##0",void 0!==a&&""!==a&&(n.unit=a)),this.measures.push(n);var o=new g(n.name,this,n);o.sort.push({name:"section",value:2}),this.headers.forEach(e=>{switch(e.type){case"pivot0":case"pivot1":o.levels.push(new l({column:o,type:e.type,modelField:{label:""}})),o.sort.push({name:e.type,value:0});break;case"heading":o.levels.push(new l({column:o,type:"heading",modelField:n}));break;case"field":o.levels.push(new l({column:o,type:"field",modelField:n})),o.sort.push({name:"col_idx",value:t})}}),o.idx=t,o.super=!0,this.columns.push(o),t+=10})}checkVarianceCalculations(){Object.keys(this.config).forEach(e=>{if(e.startsWith("comparison")){var t=e.split("|")[1],n=this.config[e],r=!1;this.measures.forEach(e=>{t===e.name&&(r=!0)});var a=!1;if([...this.measures.map(e=>e.name),...this.pivot_fields.map(e=>e.name)].forEach(e=>{n===e&&(a=!0)}),r&&a){if(this.pivot_fields.map(e=>e.name).includes(this.config[e]))var o="by_pivot";else o="no_variance"===this.config[e]?"no_variance":"vs_measure";if(void 0!==this.config["switch|"+t])if(this.config["switch|"+t])var i=!0;else i=!1;this.variances.push({baseline:t,comparison:this.config[e],type:o,reverse:i})}else r?this.config[e]="no_variance":delete this.config[e]}})}addIndexColumn(){var e=this.dimensions[this.dimensions.length-1],t=this.config["hide|"+e.name],n=new g("$$$_index_$$$",this,e);n.sort.push({name:"section",value:-1}),n.hide=!0===t&&t,this.headers.forEach(t=>{switch(t.type){case"pivot0":case"pivot1":var r=new u({vis:this,queryResponseField:t.modelField}),a=new l({column:n,type:t.type,modelField:r});a.label="",n.levels.push(a),n.sort.push({name:t.type,value:0});break;case"heading":n.levels.push(new l({column:n,type:"heading",modelField:e}));break;case"field":n.levels.push(new l({column:n,type:"field",modelField:e})),n.sort.push({name:n.id,value:0})}}),this.columns.push(n)}checkSubtotalsData(e){void 0!==e.subtotals_data[this.addSubtotalDepth]&&e.subtotals_data[this.addSubtotalDepth].forEach(e=>{var t=new h("subtotal");t.$$$__grouping__$$$=e.$$$__grouping__$$$;var n=["Subtotal"];t.$$$__grouping__$$$.forEach(t=>{n.push(e[t].value)}),t.id=n.join("|"),this.columns.forEach(n=>{t.data[n.id]=n.pivoted||n.isRowTotal?e[n.modelField.name][n.pivot_key]:e[n.id];var r=t.data[n.id];if(void 0!==r){void 0===r.cell_style?r.cell_style=["total","subtotal"]:r.cell_style=r.cell_style.concat(["total","subtotal"]),void 0!==n.modelField.style&&(r.cell_style=r.cell_style.concat(n.modelField.style)),null===r.value&&(r.rendered="");var o=this.config["reportIn|"+n.modelField.name];if(void 0!==o&&"1"!==o){var i=this.config.useUnit&&"#"!==n.modelField.unit?n.modelField.unit:"";r.html=null,r.value=Math.round(r.value/parseInt(o)),r.rendered=""===n.modelField.value_format?r.value.toString():i+a.a.format(n.modelField.value_format,r.value)}}}),this.subtotals_data[t.id]=t})}addRows(e){e.forEach((e,t)=>{var n=new h("line_item");if(n.id=this.dimensions.map(t=>e[t.name].value).join("|"),this.columns.forEach(t=>{var r=t.pivoted||t.isRowTotal?e[t.modelField.name][t.pivot_key]:e[t.id],o=new A({...r,cell_style:[t.modelField.type],colid:t.id,rowid:n.id});t.modelField.is_numeric?(o.cell_style.push("numeric"),o.align="right"):(o.cell_style.push("nonNumeric"),o.align="left"),void 0!==t.modelField.style&&(o.cell_style=o.cell_style.concat(t.modelField.style));var i=this.config["reportIn|"+t.modelField.name];if(void 0!==i&&"1"!==i){var s=this.config.useUnit&&"#"!==t.modelField.unit?t.modelField.unit:"";o.html=null,o.value=Math.round(o.value/parseInt(i)),o.rendered=""===t.modelField.value_format?o.value.toString():s+a.a.format(t.modelField.value_format,o.value)}if(t.modelField.is_turtle){var u=new d({column:t,row:n,sort_value:o.sort_value,series:{keys:n.data[t.id]._parsed.keys,values:n.data[t.id]._parsed.values}});o.value=u,o.rendered=u.toString()}n.data[t.id]=o}),this.useIndexColumn){var r=this.dimensions[this.dimensions.length-1].name,o=n.data[r];n.data.$$$_index_$$$=new A({value:o.value,rendered:o.rendered,html:o.html,cell_style:["singleIndex","dimension"],align:this.dimensions[this.dimensions.length-1].is_numeric?"right":"left",colid:"$$$_index_$$$",rowid:o.rowid})}n.sort=[{name:"section",value:0},{name:"unknown",value:0},{name:"original_row",value:t}],this.data.push(n)})}addColumnSeries(){this.columns.forEach(e=>{var t=[],n=[],r=[];this.data.forEach(a=>{t.push(a.id),n.push(a.data[e.id].value),r.push(a.type)});var a=new v({column:e,is_numeric:e.modelField.is_numeric,series:{keys:t,values:n,types:r}});e.series=a,this.column_series.push(a)})}buildTotals(e){var t=e.totals_data,n=new h("total");if(this.columns.forEach(e=>{if(n.id="Total","dimension"===e.modelField.type){if([this.firstVisibleDimension,"$$$_index_$$$"].includes(e.id))var r=1,o=this.useIndexColumn?1:this.dimensions.filter(e=>!e.hide).length;else r=-1,o=-1;n.data[e.id]=new A({value:"",cell_style:["total","dimension"],rowspan:r,colspan:o,colid:e.id,align:e.modelField.is_numeric?"right":"left",rowid:"Total"})}else r=1,o=1;if("measure"===e.modelField.type){var i=e.modelField.is_numeric?["total","numeric","measure"]:["total","nonNumeric","measure"],s=e.pivoted||e.isRowTotal?t[e.modelField.name][e.pivot_key]:t[e.id];void 0===(s=new A({...s,cell_style:i,rowspan:r,colspan:o,colid:e.id,align:e.modelField.is_numeric?"right":"left",rowid:"Total"})).rendered&&void 0!==s.html&&(s.rendered=this.getRenderedFromHtml(s));var u=this.config["reportIn|"+e.modelField.name];if(void 0!==u&&"1"!==u){var f=this.config.useUnit&&"#"!==e.modelField.unit?e.modelField.unit:"";s.html=void 0,s.value=Math.round(s.value/parseInt(u)),s.rendered=""===e.modelField.value_format?s.value.toString():f+a.a.format(e.modelField.value_format,s.value)}n.data[e.id]=s,void 0!==n.data[e.id].links&&n.data[e.id].links.length>0&&n.data[e.id].links[0].url&&n.data[e.id].links.forEach(e=>{e.type="measure_default"})}}),this.useIndexColumn?(n.data.$$$_index_$$$.value="TOTAL",n.data.$$$_index_$$$.align="left",n.data.$$$_index_$$$.colspan=this.dimensions.filter(e=>!e.hide).length):this.firstVisibleDimension&&(n.data[this.firstVisibleDimension].value="TOTAL",n.data[this.firstVisibleDimension].align="left"),n.sort=[{name:"section",value:1},{name:"unknown",value:0},{name:"original_row",value:0}],this.data.push(n),this.calculateOthers){var r=new h("line_item");r.id="Others",this.columns.forEach(e=>{var t=null,o=e.modelField.is_numeric?["numeric"]:["nonNumeric"],i=n.data[e.id];if("measure"===e.modelField.type?(t=["sum","count"].includes(e.modelField.calculation_type))?(t=i.value-e.series.series.sum,o.push("measure")):(t=(i.value+e.series.series.avg)/2,o=o.concat(["estimate","measure"]),["count","count_distinct"].includes(e.modelField.calculation_type)&&(t=Math.round(t))):o.push("dimension"),t){var s=""===e.modelField.value_format?t.toString():a.a.format(e.modelField.value_format,t);r.data[e.id]=new A({value:t,rendered:s,cell_style:o,align:e.modelField.is_numeric?"right":"left",colid:e.id,rowid:"Others"})}else r.data[e.id]=new A({rendered:"",cell_style:o,colid:e.id,rowid:"Others"})}),this.useIndexColumn?(r.data.$$$_index_$$$.value="Others",r.data.$$$_index_$$$.rendered="Others",r.data.$$$_index_$$$.align="left",r.data.$$$_index_$$$.cell_style.push("singleIndex")):this.firstVisibleDimension&&(r.data[this.firstVisibleDimension].value="Others",r.data[this.firstVisibleDimension].rendered="Others",r.data[this.firstVisibleDimension].align="left"),r.sort=[{name:"section",value:1},{name:"unknown",value:-1},{name:"original_row",value:-1}],this.data.push(r)}this.sortData()}setRowSpans(){var e,t=[],n={};e=this.data,(t=this.dimensions.filter(e=>!e.hide)).forEach(e=>{n[e.name]=1});for(var r=e.length-1;r>=0;r--){var a=e[r];if("line_item"===a.type)for(var o=0;o0?e[r-1].data[i.name].value:null;if(!(r>0&&s===u)){for(var f=o;f1&&a.data[l.name].cell_style.push("merged"),n[l.name]=1}break}a.data[i.name].rowspan=-1,a.data[i.name].colspan=-1,n[i.name]+=1}else t.forEach(e=>{n[e.name]=1})}}addSubTotals(){var e=this.addSubtotalDepth,t=[],n=[];this.data.forEach((r,a)=>{if("total"!==r.type){for(var o=[],i=0;i{var n=new h("subtotal"),r=e.join("|")?e.join("|"):"Others";n.id=["Subtotal",r].join("|"),this.columns.forEach(r=>{if("dimension"===r.modelField.type){if([this.firstVisibleDimension,"$$$_index_$$$"].includes(r.id))var o=1,i=this.useIndexColumn?1:this.dimensions.filter(e=>!e.hide).length;else o=-1,i=-1;var s=r.modelField.is_numeric?["total","subtotal","numeric","dimension"]:["total","subtotal","nonNumeric","dimension"],u=new A({cell_style:s,align:r.modelField.is_numeric?"right":"left",rowspan:o,colspan:i,colid:r.id,rowid:n.id});"$$$_index_$$$"!==r.id&&r.id!==this.firstVisibleDimension||(this.genericLabelForSubtotals?(u.value="Subtotal",u.rendered="Subtotal"):(u.value=e.join(" | ")?e.join(" | "):"Others",u.rendered=u.value)),n.data[r.id]=u}if("measure"==r.modelField.type){s=r.modelField.is_numeric?["total","subtotal","numeric","measure"]:["total","subtotal","nonNumeric","measure"];var f=r.modelField.is_numeric?"right":"left";if(Object.entries(this.subtotals_data).length>0&&!n.id.startsWith("Subtotal|Others")){u=new A({...n.data[r.id],...this.subtotals_data[n.id].data[r.id],cell_style:s,align:f,colid:r.id,rowid:n.id});n.data[r.id]=u}else{var l=0,c=0,d="";if(this.data.forEach(e=>{if("line_item"==e.type&&e.sort[1].value==t){var n=e.data[r.id].value;Number.isFinite(n)&&(l+=n,c++)}}),"number"===r.modelField.calculation_type&&c>0&&r.modelField.value_format.includes("%")&&(l/=c),"average"===r.modelField.calculation_type&&c>0&&(l/=c),l){var v=this.config.useUnit&&"#"!==r.modelField.unit?r.modelField.unit:"";d=""===r.modelField.value_format?l.toString():v+a.a.format(r.modelField.value_format,l)}"string"===r.modelField.calculation_type&&(l="",d="");u=new A({value:l,rendered:d,cell_style:s,align:f,colid:r.id,rowid:n.id});n.data[r.id]=u}}}),n.sort=[{name:"section",value:0},{name:"subtotal",value:t},{name:"original_row",value:9999}],this.data.push(n)}),this.sortData(),this.hasSubtotals=!0}addColumnSubTotals(){var e=[],t=[],n=this.pivot_fields[0].name;this.pivot_values.forEach(e=>{var r=e.data[n];null!==r&&t.push(r)}),(t=[...new Set(t)]).forEach(t=>{this.measures.forEach((n,r)=>{if(n.can_pivot){var a=new g(["$$$_subtotal_$$$",t,n.name].join("."),this,n);a.pivoted=!0,a.subtotal=!0,a.pivot_key=[t,"$$$_subtotal_$$$"].join("|"),a.subtotal_data={pivot:t,measure_idx:r,columns:[]},this.columns.forEach((e,r)=>{var o=null;for(r=0;r{e.sort.push({name:"section",value:1}),this.headers.forEach((t,n)=>{switch(t.type){case"pivot0":var r=e.subtotal_data.columns[0].levels[n].pivotData.sort_values[t.modelField.name];e.levels.push(new l({column:e,type:t.type,modelField:{name:t.modelField.name,label:e.subtotal_data.pivot}})),e.sort.push({name:t.modelField.name,value:r});break;case"pivot1":console.log("line1453"),e.levels.push(new l({column:e,type:t.type,modelField:{name:"subtotal",label:"Subtotal"}}));var a=this.sorts.find(e=>e.name===t.modelField.name);if(void 0===a||void 0===a.desc)var o=!1;else o=Boolean(a.desc);if(o)var i="string"==typeof this.pivot_values[0].sort_values[t.modelField.name]?"aaaaaaaa":Number.NEGATIVE_INFINITY;else i="string"==typeof this.pivot_values[0].sort_values[t.modelField.name]?"ZZZZZZZZ":Number.POSITIVE_INFINITY;e.sort.push({name:t.modelField.name,value:i});break;case"heading":e.levels.push(new l({column:e,type:"heading",modelField:e.modelField}));break;case"field":e.levels.push(new l({column:e,type:"field",modelField:e.modelField})),e.sort.push({name:"measure_idx",value:e.subtotal_data.measure_idx})}}),this.columns.push(e)}),this.data.forEach(t=>{e.forEach(e=>{var n=e.modelField.is_numeric?["subtotal","numeric","measure"]:["subtotal","nonNumeric","measure"],r=0;e.subtotal_data.columns.forEach(e=>{r+=t.data[e.id].value}),t.data[e.id]=new A({value:r,rendered:""===e.modelField.value_format?r.toString():a.a.format(e.modelField.value_format,r),cell_style:n,colid:e.id,rowid:t.id}),["subtotal","total"].includes(t.type)&&t.data[e.id].cell_style.push("total")})})}calculateVariance(e,t,n,r,o){this.data.forEach(i=>{var s=i.data[r.id].value,u=i.data[o.id].value;if("absolute"===n)var f=new A({value:s-u,rendered:""===e?(s-u).toString():a.a.format(e,s-u),cell_style:["numeric","measure","variance","varianceAbsolute"],colid:t,rowid:i.id});else{var l=(s-u)/Math.abs(u);if(isFinite(l))f=new A({value:l,rendered:a.a.format("#0.00%",l),cell_style:["numeric","measure","variance","variancePercent"],colid:t,rowid:i.id});else var f=new A({value:null,rendered:"∞",cell_style:["numeric","measure","variance","variancePercent"],colid:t,rowid:i.id})}"total"!=i.type&&"subtotal"!=i.type||f.cell_style.push("total"),"subtotal"===i.type&&f.cell_style.push("subtotal"),f.value<0&&f.cell_style.push("negative"),i.data[t]=f})}createVarianceColumn(e){if(this.config.colSubtotals||!e.variance.baseline.startsWith("$$$_subtotal_$$$")){var t=["$$$_variance_$$$",e.calc,e.variance.baseline,e.variance.comparison].join("|"),n=this.getColumnById(e.variance.baseline),r=this.getColumnById(e.variance.comparison),a=new g(t,this,n.modelField);if(a.isVariance=!0,"absolute"===e.calc){a.variance_type="absolute",a.idx=n.idx+1,a.pos=n.pos+1;var i=Object(o.cloneDeep)(n.sort);a.sort=[...i,{name:"variance_absolute",value:1}],a.hide=!this.config["var_num|"+n.modelField.name]}else{a.variance_type="percentage",a.idx=n.idx+2,a.pos=n.pos+2;i=Object(o.cloneDeep)(n.sort);a.sort=[...i,{name:"variance_percentage",value:2}],a.unit="%",a.hide=!this.config["var_pct|"+n.modelField.name]}void 0!==this.config.columnOrder[a.id]&&(a.pos=this.config.columnOrder[a.id]),a.pivoted=n.pivoted,a.super=n.super,a.pivot_key=n.pivot_key,this.groupVarianceColumns&&(a.sort[0].value=1.5),this.headers.forEach((e,t)=>{switch(e.type){case"pivot0":case"pivot1":var r=n.getHeaderCellLabelByType(e.type);if(this.groupVarianceColumns&&"pivot0"===e.type)r=2===this.pivot_values.length?"Variance":"Variance: "+r;var o=new l({column:a,type:e.type,modelField:{label:r}});a.levels[t]=o;break;case"heading":o=new l({column:a,type:"heading",modelField:n.modelField});a.levels[t]=o;break;case"field":o=new l({column:a,type:"field",modelField:n.modelField});a.levels[t]=o}}),this.columns.push(a),e.variance.reverse?this.calculateVariance(n.modelField.value_format,t,e.calc,r,n):this.calculateVariance(n.modelField.value_format,t,e.calc,n,r)}else console.log("Cannot calculate variance of column subtotals if subtotals disabled.")}addVarianceColumns(){var e=[],t=["absolute","percent"];Object.keys(this.variances).forEach(n=>{var r=this.variances[n];if("no_variance"!==r.comparison)if("vs_measure"===r.type)this.hasPivots?this.pivot_values.forEach(n=>{n.is_total||t.forEach(t=>{e.push({calc:t,variance:{baseline:[n.key,r.baseline].join("."),comparison:[n.key,r.comparison].join("."),reverse:r.reverse,type:r.type}})})}):t.forEach(t=>{e.push({variance:r,calc:t})});else if("by_pivot"===r.type)if(1===this.pivot_fields.length||this.pivot_fields[1].name===r.comparison)this.pivot_values.slice(1).forEach((n,a)=>{t.forEach(t=>{n.is_total||e.push({calc:t,variance:{baseline:[n.key,r.baseline].join("."),comparison:[this.pivot_values[a].key,r.baseline].join("."),reverse:r.reverse,type:r.type}})})});else{var a=[];this.pivot_values.forEach(e=>{if(!e.is_total){var t=e.data[this.pivot_fields[0].name];a.includes(t)||a.push(t)}}),a.slice(1).forEach((n,o)=>{t.forEach(t=>{e.push({calc:t,variance:{baseline:["$$$_subtotal_$$$",n,r.baseline].join("."),comparison:["$$$_subtotal_$$$",a[o],r.baseline].join("."),reverse:r.reverse,type:r.type}})})})}}),e.forEach(e=>{this.createVarianceColumn(e)})}compareSortArrays(e){return function(t,n){for(var r=Math.max(t.sort.length,n.sort.length),a=0;ae.name===o),s=void 0!==i&&i.desc,u=t.sort[a]&&void 0!==t.sort[a]?t.sort[a].value:0,f=n.sort[a]&&void 0!==n.sort[a]?n.sort[a].value:0;if(s){if(uf)return-1}else{if(u>f)return 1;if(u!e.hide).forEach(t=>{var n={id:t.id,data:t.getHeaderData()};e.push(n)}),(t=this.headers).forEach(e=>{n[e.type]=1});for(var r=e.length-1;r>=0;r--)for(var a=e[r],o=0;o0?e[r-1].data[i.type].label:null;if(!(r>0&&s===u)){for(var f=o;f1&&(a.data[l.type].align="center",a.data[l.type].cell_style.push("merged")),n[l.type]=1}break}a.data[i.type].colspan=-1,a.data[i.type].rowspan=-1,n[i.type]+=1}}applyFormatting(){this.columns.forEach(e=>{var t=this.config["style|"+e.modelField.name];if(void 0!==t)switch(t){case"black_red":this.data.forEach(t=>{t.data[e.id].value<0&&t.data[e.id].cell_style.push("negative")})}})}transposeDimensionsIntoHeaders(){this.transposed_headers=this.columns.filter(e=>"dimension"===e.modelField.type).filter(e=>!e.hide).map(e=>({type:"field",modelField:e.modelField}))}transposeRowsIntoColumns(){var e={align:"left",type:"transposed_table_index",is_table_calculation:!1};this.headers.forEach((t,n)=>{var r=new g(t.type,this,e);this.transposed_headers.forEach((e,t)=>{var a=this.columns[t].levels[n],o=new l({column:r,type:a.type,label:a.label,cell_style:a.cell_style,align:a.align,modelField:a.modelField});o.rowspan=a.colspan,o.colspan=a.rowspan,o.id=[a.modelField.name,a.type].join("."),o.cell_style.push("transposed"),o.colspan>0&&o.cell_style.push("merged"),r.levels.push(o)}),this.transposed_columns.push(r)});var t={align:"right",type:"transposed_table_measure",is_table_calculation:!1};this.data.forEach(e=>{var n=new g(e.id,this,t);this.transposed_headers.forEach(t=>{var r=this.useIndexColumn&&["subtotal","total"].includes(e.type)?"$$$_index_$$$":t.modelField.name,a=e.data[r],o=new l({column:n,type:t.type,label:""===a.rendered?a.rendered:a.rendered||a.value,align:"center",cell_style:a.cell_style});o.colspan=a.rowspan,o.rowspan=a.colspan,o.id=[a.colid,a.rowid].join("."),o.cell_style.push("transposed"),n.levels.push(o)}),this.transposed_columns.push(n)})}transposeColumnsIntoRows(){this.columns.filter(e=>"measure"===e.modelField.type).forEach(e=>{var t={};e.levels.forEach((n,r)=>{var a=new A({value:n.label,rendered:n.label,rowspan:n.colspan,colspan:n.rowspan,cell_style:["indexCell","transposed"],align:"left",colid:e.id,rowid:n.type});switch(n.type){case"pivot0":case"pivot1":a.cell_style.push("pivot");break;case"heading":case"field":var o=e.modelField.is_table_calculation?"calculation":"measure";a.cell_style.push(o)}a.rowspan>1&&a.cell_style.push("merged"),t[n.type]=a}),this.data.forEach(n=>{if(void 0!==n.data[e.id]){var r=n.data[e.id];t[n.id]=n.data[e.id],t[n.id].id=[r.colid,r.rowid].join("."),t[n.id].cell_style.push("transposed")}});var n=new h("line_item");n.id=e.id,n.modelField=e.modelField,n.hide=e.hide,n.data=t,this.transposed_data.push(n)})}validateConfig(){["traditional","looker","contemporary","custom"].includes(this.config.theme)||(this.config.theme="traditional"),["fixed","auto"].includes(this.config.layout)||(this.config.layout="fixed"),void 0===this.config.transposeTable&&(this.config.transposeTable=!1),Object.entries(this.config).forEach(e=>{if("false"===e[1]?e[1]=!1:"true"===e[1]&&(e[1]=!0),2===e[0].split("|").length){var[t,n]=e[0].split("|");if(["label","heading","hide","style","switch","var_num","var_pct","comparison"].includes(t)){var r=!1;this.dimensions.forEach(e=>{e.name===n&&(r=!0)}),this.measures.forEach(e=>{e.name===n&&(r=!0)}),r||delete this.config[e[0]]}}})}getColumnById(e){var t={};return this.columns.forEach(n=>{e===n.id&&(t=n)}),t}getRowById(e){var t={};return this.data.forEach(n=>{e===n.id&&(t=n)}),t}getMeasureByName(e){var t="";return this.measures.forEach(n=>{e===n.name&&(t=n)}),t}getRenderedFromHtml(e){var t=new DOMParser;if(void 0===e.html||["undefined",""].includes(e.html))n=e.value;else try{var n=t.parseFromString(e.html,"text/html").documentElement.textContent}catch(t){var n=e.html}return n}getHeaderTiers(){return this.transposeTable?this.transposed_headers:this.headers}getTableHeaderCells(e){return this.transposeTable?this.transposed_columns.filter(t=>t.levels[e].colspan>0):this.columns.filter(e=>!e.hide).filter(t=>t.levels[e].colspan>0)}getDataRows(){if(this.transposeTable)e=this.transposed_data.filter(e=>!e.hide);else var e=this.data.filter(e=>!e.hide);return e}getTableRowColumns(e){if(this.transposeTable)t=this.transposed_columns.filter(e=>!e.hide).filter(t=>e.data[t.id].rowspan>0);else var t=this.columns.filter(e=>!e.hide).filter(t=>e.data[t.id].rowspan>0);return t}moveColumns(e,t,n){var r=this.config;if(e!=t){var a=t-e,o=r.columnOrder;this.columns.forEach(n=>{"measure"!=n.modelField.type||n.super||(n.pos>=e&&n.pos=t&&n.pos=e+10&&n.pos{if("line_item"===t.type){var n={};this.columns.forEach(e=>{n[e.id]=t.data[e.id].value}),e.push(n)}}),e}getTableColumnGroups(){var e=[],t=[],n=[];this.transposeTable?this.transposed_columns.forEach(r=>{"transposed_table_index"===r.modelField.type?e.push({id:r.id,type:"index"}):"transposed_table_measure"===r.modelField.type&&"Total"!==r.id?t.push({id:r.id,type:"dataCell"}):"transposed_table_measure"===r.modelField.type&&"Total"===r.id&&n.push({id:r.id,type:"dataCell"})}):this.columns.forEach(r=>{"dimension"!==r.modelField.type||r.hide?"measure"!==r.modelField.type||r.isRowTotal||r.super||r.hide?"measure"!==r.modelField.type||!r.isRowTotal&&!r.super||r.hide||n.push({id:r.id,type:"dataCell"}):t.push({id:r.id,type:"dataCell"}):e.push({id:r.id,type:"index"})});var r=[];return e.length>0&&r.push(e),t.length>0&&r.push(t),n.length>0&&r.push(n),r}getCellToolTip(e,t){var n="
",r=this.getRowById(e),a=this.getColumnById(t),o=a.modelField;if("total"===r.type)n+=['"].join("");else if(r.id.startsWith("Others")){n+=['"].join("")}else if("subtotal"===r.type){var i="SUBTOTAL",s="focus",u=this.columns.filter(e=>!e.hide).filter(e=>"dimension"===e.modelField.type)[0],f=r.data[u.id].render||r.data[u.id].value;n+=['"].join("")}else{this.columns.filter(e=>"$$$_index_$$$"!==e.id).filter(e=>"dimension"===e.modelField.type).forEach(e=>{var t=e.getHeaderCellLabelByType("field"),o=r.data[e.id].rendered||r.data[e.id].value,i=e.id===a.id?"focus":"";n+=['"].join("")})}n+='';var l=!1,c="";this.columns.filter(e=>"measure"===e.modelField.type).filter(e=>e.modelField===o).forEach(e=>{if(e.isVariance||(c=e.getHeaderCellLabelByType("field")),!e.pivoted&&!e.isRowTotal||e.pivot_key===a.pivot_key){var t=e.getHeaderCellLabelByType("field"),o=e.id===a.id?"focus":"",i=r.data[e.id],s=i.rendered||i.value;if(i.html)s=(new DOMParser).parseFromString(i.html,"text/html").documentElement.textContent;i.cell_style.includes("estimate")&&(l=!0),n+=['"].join("")}});var d=null,v=this.config["reportIn|"+a.modelField.name];return void 0!==v&&"1"!==v&&(d=c+" reported in "+{1e3:"000s",1e6:"Millions",1e9:"Billions"}[v]),(d||l)&&(n+=''),d&&(n+='"),l&&(n+='',n+=''),n+="
',i="TOTAL",': ',f="","
',i="Others",': ',f="","
',i,': ',f,"
',t,': ',o,"
',t,': ',s,"
'+d+".
Estimated figure due to query exceeding row limit.
Consider increasing the row limit or using an alternative measure.
"}}function w(){}var p=function(e){return null==e?w:function(){return this.querySelector(e)}};function z(){return[]}var y=function(e){return null==e?z:function(){return this.querySelectorAll(e)}},B=function(e){return function(){return this.matches(e)}},P=function(e){return new Array(e.length)};function D(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}D.prototype={constructor:D,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function X(e,t,n,r,a,o){for(var i,s=0,u=t.length,f=o.length;st?1:e>=t?0:NaN}var H="http://www.w3.org/1999/xhtml",x={svg:"http://www.w3.org/2000/svg",xhtml:H,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Z=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),x.hasOwnProperty(t)?{space:x[t],local:e}:e};function E(e){return function(){this.removeAttribute(e)}}function k(e){return function(){this.removeAttributeNS(e.space,e.local)}}function J(e,t){return function(){this.setAttribute(e,t)}}function N(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function G(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function M(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var C=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function I(e){return function(){this.style.removeProperty(e)}}function F(e,t,n){return function(){this.style.setProperty(e,t,n)}}function L(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Q(e,t){return e.style.getPropertyValue(t)||C(e).getComputedStyle(e,null).getPropertyValue(t)}function V(e){return function(){delete this[e]}}function R(e,t){return function(){this[e]=t}}function Y(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function j(e){return e.trim().split(/^|\s+/)}function T(e){return e.classList||new S(e)}function S(e){this._node=e,this._names=j(e.getAttribute("class")||"")}function q(e,t){for(var n=T(e),r=-1,a=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function ee(){this.textContent=""}function te(e){return function(){this.textContent=e}}function ne(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function re(){this.innerHTML=""}function ae(e){return function(){this.innerHTML=e}}function oe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function ie(){this.nextSibling&&this.parentNode.appendChild(this)}function se(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ue(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===H&&t.documentElement.namespaceURI===H?t.createElement(e):t.createElementNS(n,e)}}function fe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var le=function(e){var t=Z(e);return(t.local?fe:ue)(t)};function ce(){return null}function de(){var e=this.parentNode;e&&e.removeChild(this)}function ve(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ae(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var he={},ge=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(he={mouseenter:"mouseover",mouseleave:"mouseout"}));function be(e,t,n){return e=me(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function me(e,t,n){return function(r){var a=ge;ge=r;try{e.call(this,this.__data__,t,n)}finally{ge=a}}}function we(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function pe(e){return function(){var t=this.__on;if(t){for(var n,r=0,a=-1,o=t.length;r=z&&(z=p+1);!(w=b[z])&&++z=0;)(r=a[o])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=O);for(var n=this._groups,r=n.length,a=new Array(r),o=0;o1?this.each((null==t?I:"function"==typeof t?L:F)(e,t,null==n?"":n)):Q(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?V:"function"==typeof t?Y:R)(e,t)):this.node()[e]},classed:function(e,t){var n=j(e+"");if(arguments.length<2){for(var r=T(this.node()),a=-1,o=n.length;++a=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function Ge(e,t){for(var n,r=0,a=e.length;r0)for(var n,r,a=new Array(n),o=0;o=0&&t._call.call(null,e),t=t._next;--Le}()}finally{Le=0,function(){var e,t,n=Ce,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Ce=t);Ie=e,tt(r)}(),Ye=0}}function et(){var e=Te.now(),t=e-Re;t>1e3&&(je-=t,Re=e)}function tt(e){Le||(Qe&&(Qe=clearTimeout(Qe)),e-Ye>24?(e<1/0&&(Qe=setTimeout($e,e-Te.now()-je)),Ve&&(Ve=clearInterval(Ve))):(Ve||(Re=Te.now(),Ve=setInterval(et,1e3)),Le=1,Se($e)))}Ke.prototype=_e.prototype={constructor:Ke,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?qe():+n)+(null==t?0:+t),this._next||Ie===this||(Ie?Ie._next=this:Ce=this,Ie=this),this._call=e,this._time=n,tt()},stop:function(){this._call&&(this._call=null,this._time=1/0,tt())}};var nt=function(e,t,n){var r=new Ke;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},rt=Fe("start","end","cancel","interrupt"),at=[],ot=function(e,t,n,r,a,o){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,a=e.__transition;function o(u){var f,l,c,d;if(1!==n.state)return s();for(f in a)if((d=a[f]).name===n.name){if(3===d.state)return nt(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete a[f]):+f0)throw new Error("too late; already scheduled");return n}function st(e,t){var n=ut(e,t);if(n.state>3)throw new Error("too late; already running");return n}function ut(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var ft,lt,ct,dt,vt=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},At=180/Math.PI,ht={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},gt=function(e,t,n,r,a,o){var i,s,u;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(a(n)+"rotate(",null,r)-2,x:vt(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}(o.rotate,i.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(a(n)+"skewX(",null,r)-2,x:vt(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}(o.skewX,i.skewX,s,u),function(e,t,n,r,o,i){if(e!==n||t!==r){var s=o.push(a(o)+"scale(",null,",",null,")");i.push({i:s-4,x:vt(e,n)},{i:s-2,x:vt(t,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,i.scaleX,i.scaleY,s,u),o=i=null,function(e){for(var t,n=-1,r=u.length;++n>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Lt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Lt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xt.exec(e))?new Rt(t[1],t[2],t[3],1):(t=Zt.exec(e))?new Rt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Et.exec(e))?Lt(t[1],t[2],t[3],t[4]):(t=kt.exec(e))?Lt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jt.exec(e))?St(t[1],t[2]/100,t[3]/100,1):(t=Nt.exec(e))?St(t[1],t[2]/100,t[3]/100,t[4]):Gt.hasOwnProperty(e)?Ft(Gt[e]):"transparent"===e?new Rt(NaN,NaN,NaN,0):null}function Ft(e){return new Rt(e>>16&255,e>>8&255,255&e,1)}function Lt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rt(e,t,n,r)}function Qt(e){return e instanceof Dt||(e=It(e)),e?new Rt((e=e.rgb()).r,e.g,e.b,e.opacity):new Rt}function Vt(e,t,n,r){return 1===arguments.length?Qt(e):new Rt(e,t,n,null==r?1:r)}function Rt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yt(){return"#"+Tt(this.r)+Tt(this.g)+Tt(this.b)}function jt(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Tt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function St(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ut(e,t,n,r)}function qt(e){if(e instanceof Ut)return new Ut(e.h,e.s,e.l,e.opacity);if(e instanceof Dt||(e=It(e)),!e)return new Ut;if(e instanceof Ut)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),i=NaN,s=o-a,u=(o+a)/2;return s?(i=t===o?(n-r)/s+6*(n0&&u<1?0:i,new Ut(i,s,u,e.opacity)}function Ut(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function _t(e,t,n,r,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*n+(1+3*e+3*o-3*i)*r+i*a)/6}Bt(Dt,It,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Mt,formatHex:Mt,formatHsl:function(){return qt(this).formatHsl()},formatRgb:Ct,toString:Ct}),Bt(Rt,Vt,Pt(Dt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yt,formatHex:Yt,formatRgb:jt,toString:jt})),Bt(Ut,(function(e,t,n,r){return 1===arguments.length?qt(e):new Ut(e,t,n,null==r?1:r)}),Pt(Dt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ut(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Rt(Kt(e>=240?e-240:e+120,a,r),Kt(e,a,r),Kt(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var $t=function(e){return function(){return e}};function en(e,t){return function(n){return e+n*t}}function tn(e){return 1==(e=+e)?nn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):$t(isNaN(t)?n:t)}}function nn(e,t){var n=t-e;return n?en(e,n):$t(isNaN(e)?t:e)}var rn=function e(t){var n=tn(t);function r(e,t){var r=n((e=Vt(e)).r,(t=Vt(t)).r),a=n(e.g,t.g),o=n(e.b,t.b),i=nn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=a(t),e.b=o(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function an(e){return function(t){var n,r,a=t.length,o=new Array(a),i=new Array(a),s=new Array(a);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],i=r>0?e[r-1]:2*a-o,s=ro&&(a=t.slice(o,a),s[i]?s[i]+=a:s[++i]=a),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,u.push({i:i,x:vt(n,r)})),o=sn.lastIndex;return o=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?it:st;return function(){var i=o(this,e),s=i.on;s!==r&&(a=(r=s).copy()).on(t,n),i.on=a}}var Xn=He.prototype.constructor;function Wn(e){return function(){this.style.removeProperty(e)}}function On(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Hn(e,t,n){var r,a;function o(){var o=t.apply(this,arguments);return o!==a&&(r=(a=o)&&On(e,o,n)),r}return o._value=t,o}function xn(e){return function(t){this.textContent=e.call(this,t)}}function Zn(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&xn(r)),t}return r._value=e,r}var En=0;function kn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Jn(){return++En}var Nn=He.prototype;kn.prototype=function(e){return He().transition(e)}.prototype={constructor:kn,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=p(e));for(var r=this._groups,a=r.length,o=new Array(a),i=0;i2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[a]):i=!1;i&&delete e.__transition}}(this,e)}))},He.prototype.transition=function(e){var t,n;e instanceof kn?(t=e._id,e=e._name):(t=Jn(),(n=Gn).time=qe(),e=null==e?null:e+"");for(var r=this._groups,a=r.length,o=0;oc}u.mouse("drag")}function h(){var e,t,r,a;xe(ge.view).on("mousemove.drag mouseup.drag",null),e=ge.view,t=n,r=e.document.documentElement,a=xe(e).on("dragstart.drag",null),t&&(a.on("click.drag",Vn,!0),setTimeout((function(){a.on("click.drag",null)}),0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect),Vn(),u.mouse("end")}function g(){if(a.apply(this,arguments)){var e,t,n=ge.changedTouches,r=o.apply(this,arguments),i=n.length;for(e=0;e{const e=document.createElement("div");return e.setAttribute("id","visContainer"),e.style.cssText="\n display: flex;\n height: 100%;\n justify-content: center;\n align-items: center;\n font-family: 'Roboto';\n text-anchor: middle;\n text-align: center;\n font-size: 1rem;\n font-weight: 500;\n color: rgb(38, 45, 51);\n ",e.innerText="No results",e},er=function(e,t,n,r){var a=null;const o=r.getBoundingClientRect(),i=o.x+o.width/2,s=o.y+o.height/2;(async function(){const e=document.getElementsByTagName("link");for(;e[0];)e[0].parentNode.removeChild(e[0]);Object.keys(_n).forEach(async e=>await _n[e].unuse())})().then(()=>{void 0!==e.customTheme&&e.customTheme&&"custom"===e.theme?function(e){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}(e.customTheme):void 0!==_n[e.theme]&&_n[e.theme].use(),void 0!==_n[e.layout]&&_n[e.layout].use()});(async function(){const r=function(t,n=""){var a=(r.canvas||(r.canvas=document.createElement("canvas"))).getContext("2d");return a.font=n||e.bodyFontSize+"pt arial",a.measureText(t).width};var o=xe("#visContainer").append("table").attr("id","reportTable").attr("class","reportTable").style("opacity",0),u=Kn().on("start",(e,n)=>{if(!t.has_pivots&&1===e.colspan){var r=parseFloat(ge.x),a=parseFloat(ge.y),o=e.column.getHeaderCellLabelByType("field");xe("#tooltip").style("left",r+"px").style("top",a+"px").html(o),xe("#tooltip").classed("hidden",!1)}}).on("drag",(e,n)=>{t.has_pivots||xe("#tooltip").style("left",ge.x+"px").style("top",ge.y+"px")}).on("end",(e,r)=>{if(!t.has_pivots){xe("#tooltip").classed("hidden",!0);var o=e.column,i=a.column,s=10*Math.floor(o.pos/10),u=10*Math.floor(i.pos/10);t.moveColumns(s,u,n)}});if(t.minWidthForIndexColumns){var f={};t.transposeTable?t.headers.forEach(n=>{var a="bold "+e.bodyFontSize+"pt arial",o=t.transposed_data.map(e=>e.data[n.type].rendered).reduce((e,t)=>Math.max(r(e,a),r(t,a)));f[n.type]=Math.ceil(o)}):t.column_series.filter(e=>!e.column.hide).filter(e=>"dimension"===e.column.modelField.type).forEach(e=>{var n=e.series.values.reduce((e,t)=>Math.max(r(e),r(t))),a=e.column.modelField.name;t.useIndexColumn&&(a="$$$_index_$$$",n+=15),f[a]=Math.ceil(n)})}o.selectAll("colgroup").data(t.getTableColumnGroups()).enter().append("colgroup").selectAll("col").data(e=>e).enter().append("col").attr("id",e=>["col",e.id].join("").replace(".","")).attr("span",1).style("width",e=>t.minWidthForIndexColumns&&"index"===e.type&&void 0!==f[e.id]?f[e.id]+"px":""),o.append("thead").selectAll("tr").data(t.getHeaderTiers()).enter().append("tr").selectAll("th").data((e,n)=>t.getTableHeaderCells(n).map(e=>e.levels[n])).enter().append("th").text(e=>e.label).attr("id",e=>e.id).attr("colspan",e=>e.colspan).attr("rowspan",e=>e.rowspan).attr("class",e=>{var t=["reportTable"];return void 0!==e.cell_style&&(t=t.concat(e.cell_style)),t.join(" ")}).style("text-align",e=>e.align).style("font-size",e.headerFontSize+"px").attr("draggable",!0).call(u).on("mouseover",e=>a=e).on("mouseout",()=>a=null),o.append("tbody").selectAll("tr").data(t.getDataRows()).enter().append("tr").on("mouseover",(function(){t.showHighlight&&this.classList.toggle("hover")})).on("mouseout",(function(){t.showHighlight&&this.classList.toggle("hover")})).selectAll("td").data(e=>t.getTableRowColumns(e).map(t=>e.data[t.id])).enter().append("td").text(e=>{var t="";if(Array.isArray(e.value))t=null!==e.rendered?e.rendered:e.value.join(" ");else if("object"==typeof e.value&&null!==e.value&&void 0!==e.value.series)t=null;else if(e.html){t=(new DOMParser).parseFromString(e.html,"text/html").documentElement.textContent}else t=e.rendered||""===e.rendered?e.rendered:e.value;return(t=String(t))?t.replace("-","‑"):t}).attr("rowspan",e=>e.rowspan).attr("colspan",e=>e.colspan).style("text-align",e=>e.align).style("font-size",e.bodyFontSize+"px").attr("class",e=>{var t=["reportTable"];return"object"==typeof e.value&&t.push("cellSeries"),void 0!==e.align&&t.push(e.align),void 0!==e.cell_style&&(t=t.concat(e.cell_style)),t.join(" ")}).on("mouseover",e=>{if(t.showHighlight){if(t.transposeTable)n=["col",e.rowid].join("").replace(".","");else var n=["col",e.colid].join("").replace(".","");document.getElementById(n).classList.toggle("hover")}if(t.showTooltip&&e.cell_style.includes("measure")){var r=ge.clientX,a=ge.clientY,o=t.getCellToolTip(e.rowid,e.colid);xe("#tooltip").style("left",r+"px").style("top",a+"px").html(o),xe("#tooltip").classed("hidden",!1)}}).on("mousemove",e=>{if(t.showTooltip&&e.cell_style.includes("measure")){var n=xe("#tooltip"),r=ge.clientX{if(t.showHighlight){if(t.transposeTable)n=["col",e.rowid].join("").replace(".","");else var n=["col",e.colid].join("").replace(".","");document.getElementById(n).classList.toggle("hover")}t.showTooltip&&e.cell_style.includes("measure")&&xe("#tooltip").classed("hidden",!0)}).on("click",e=>{if(e.links!==[]&&e.links[0].url){let t={metaKey:ge.metaKey,pageX:ge.pageX,pageY:ge.pageY-window.pageYOffset};LookerCharts.Utils.openDrillMenu({links:e.links,event:t})}})})().then(()=>{document.getElementById("reportTable").classList.add("reveal"),"animate"===e.customTheme?(document.getElementById("visSvg").classList.remove("hidden"),async function(){var t=document.getElementById("reportTable").clientWidth,n=document.getElementById("reportTable").clientHeight,r=[];Ze("th").select((function(t,n){if(void 0!==t){var a=this.getBoundingClientRect();r.push({index:n,data:t,x:a.x-10,y:a.y-10,width:a.width,height:a.height,html:this.innerHTML,class:this.className+" rectElem animated",fontSize:e.headerFontSize,align:this.style.textAlign})}})),Ze("td").select((function(t,n){if(void 0!==t){var a=this.getBoundingClientRect();r.push({index:n,data:t,x:a.x-10,y:a.y-10,width:a.width,height:a.height,html:this.innerHTML,class:this.className+" rectElem animated",fontSize:e.bodyFontSize,align:this.style.textAlign})}}));xe("#visSvg").attr("width",t).attr("height",n).selectAll(".rectElem").data(r,e=>e.data.id).join(e=>e.append("div").attr("class",e=>e.class).style("opacity",.2).style("position","absolute").style("left",e=>e.x+"px").style("top",e=>-2e3).style("width",e=>e.width+"px").style("height",e=>e.height+"px").style("font-size",e=>e.fontSize+"px").style("text-align",e=>e.align).text(e=>e.html).call(e=>e.transition().duration(1e3).style("opacity",1).style("top",e=>e.y+"px")),e=>e.call(e=>e.transition().duration(1e3).attr("class",e=>e.class).style("opacity",1).style("left",e=>e.x+"px").style("top",e=>e.y+"px").style("width",e=>e.width+"px").style("height",e=>e.height+"px").style("font-size",e=>e.fontSize+"px").style("text-align",e=>e.align).text(e=>e.html)),e=>e.call(e=>e.transition().duration(500).style("opacity",0).remove()))}()):(document.getElementById("visSvg").classList.add("hidden"),document.getElementById("reportTable").style.opacity=1)})};looker.plugins.visualizations.add({options:m.getCoreConfigOptions(),create:function(e,t){this.svgContainer=xe(e).append("div").attr("id","visSvg").attr("width",e.clientWidth).attr("height",e.clientHeight),this.tooltip=xe(e).append("div").attr("id","tooltip").attr("class","hidden")},updateAsync:function(e,t,n,r,a,o){if(this.clearErrors(),r.fields.pivots.length>2)this.addError({title:"Max Two Pivots",message:"This visualization accepts no more than 2 pivot fields."});else{if(!e.length)return function(){const e=document.querySelector("#visContainer"),t=$n();e&&e.parentNode.removeChild(e),document.querySelector("#vis").append(t)}(),void o();try{var i=document.querySelector("#visContainer");i.parentNode.removeChild(i)}catch(e){}this.container=xe(t).append("div").attr("id","visContainer"),void 0===n.columnOrder&&this.trigger("updateConfig",[{columnOrder:{}}]),void 0===n.theme&&(n=Object.assign({bodyFontSize:12,headerFontSize:12,theme:"traditional",showHighlight:!0,showTooltip:!0},n));var s=new m(e,r,n);this.trigger("registerOptions",s.getConfigOptions()),er(n,s,e=>{this.trigger("updateConfig",[{columnOrder:e}])},t),o()}}})}]); //# sourceMappingURL=report_table.js.map \ No newline at end of file diff --git a/report_table.js.map b/report_table.js.map index 049c68f..66b8655 100644 --- a/report_table.js.map +++ b/report_table.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/ssf/ssf.js","webpack:///./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///./node_modules/css-loader/dist/runtime/api.js","webpack:///./node_modules/css-loader/dist/runtime/getUrl.js","webpack:///./src/fonts/noto-sans-tc-v10-latin_chinese-traditional-regular.woff2","webpack:///./src/fonts/noto-sans-sc-v11-latin_chinese-simplified-regular.woff2","webpack:///./node_modules/lodash/lodash.js","webpack:///(webpack)/buildin/global.js","webpack:///(webpack)/buildin/module.js","webpack:///./src/theme_traditional.css?ae3b","webpack:///./src/theme_traditional.css","webpack:///./src/theme_looker.css?389c","webpack:///./src/theme_looker.css","webpack:///./src/theme_contemporary.css?5a29","webpack:///./src/theme_contemporary.css","webpack:///./src/layout_fixed.css?fc6f","webpack:///./src/layout_fixed.css","webpack:///./src/layout_auto.css?ef7f","webpack:///./src/layout_auto.css","webpack:///./src/vis_primitives.js","webpack:///./src/vis_table_plugin.js","webpack:///./node_modules/d3-selection/src/selector.js","webpack:///./node_modules/d3-selection/src/selectorAll.js","webpack:///./node_modules/d3-selection/src/matcher.js","webpack:///./node_modules/d3-selection/src/selection/sparse.js","webpack:///./node_modules/d3-selection/src/selection/enter.js","webpack:///./node_modules/d3-selection/src/selection/data.js","webpack:///./node_modules/d3-selection/src/selection/sort.js","webpack:///./node_modules/d3-selection/src/selection/call.js","webpack:///./node_modules/d3-selection/src/namespaces.js","webpack:///./node_modules/d3-selection/src/namespace.js","webpack:///./node_modules/d3-selection/src/selection/attr.js","webpack:///./node_modules/d3-selection/src/window.js","webpack:///./node_modules/d3-selection/src/selection/style.js","webpack:///./node_modules/d3-selection/src/selection/property.js","webpack:///./node_modules/d3-selection/src/selection/classed.js","webpack:///./node_modules/d3-selection/src/selection/text.js","webpack:///./node_modules/d3-selection/src/selection/html.js","webpack:///./node_modules/d3-selection/src/selection/raise.js","webpack:///./node_modules/d3-selection/src/selection/lower.js","webpack:///./node_modules/d3-selection/src/creator.js","webpack:///./node_modules/d3-selection/src/selection/insert.js","webpack:///./node_modules/d3-selection/src/selection/remove.js","webpack:///./node_modules/d3-selection/src/selection/clone.js","webpack:///./node_modules/d3-selection/src/selection/on.js","webpack:///./node_modules/d3-selection/src/selection/dispatch.js","webpack:///./node_modules/d3-selection/src/selection/index.js","webpack:///./node_modules/d3-selection/src/selection/select.js","webpack:///./node_modules/d3-selection/src/selection/selectAll.js","webpack:///./node_modules/d3-selection/src/selection/filter.js","webpack:///./node_modules/d3-selection/src/constant.js","webpack:///./node_modules/d3-selection/src/selection/exit.js","webpack:///./node_modules/d3-selection/src/selection/join.js","webpack:///./node_modules/d3-selection/src/selection/merge.js","webpack:///./node_modules/d3-selection/src/selection/order.js","webpack:///./node_modules/d3-selection/src/selection/nodes.js","webpack:///./node_modules/d3-selection/src/selection/node.js","webpack:///./node_modules/d3-selection/src/selection/size.js","webpack:///./node_modules/d3-selection/src/selection/empty.js","webpack:///./node_modules/d3-selection/src/selection/each.js","webpack:///./node_modules/d3-selection/src/selection/append.js","webpack:///./node_modules/d3-selection/src/selection/datum.js","webpack:///./node_modules/d3-selection/src/select.js","webpack:///./node_modules/d3-selection/src/selectAll.js","webpack:///./node_modules/d3-dispatch/src/dispatch.js","webpack:///./node_modules/d3-timer/src/timer.js","webpack:///./node_modules/d3-timer/src/timeout.js","webpack:///./node_modules/d3-transition/src/transition/schedule.js","webpack:///./node_modules/d3-transition/src/interrupt.js","webpack:///./node_modules/d3-interpolate/src/transform/parse.js","webpack:///./node_modules/d3-interpolate/src/number.js","webpack:///./node_modules/d3-interpolate/src/transform/decompose.js","webpack:///./node_modules/d3-interpolate/src/transform/index.js","webpack:///./node_modules/d3-transition/src/transition/tween.js","webpack:///./node_modules/d3-color/src/define.js","webpack:///./node_modules/d3-color/src/color.js","webpack:///./node_modules/d3-interpolate/src/basis.js","webpack:///./node_modules/d3-interpolate/src/constant.js","webpack:///./node_modules/d3-interpolate/src/color.js","webpack:///./node_modules/d3-interpolate/src/rgb.js","webpack:///./node_modules/d3-interpolate/src/basisClosed.js","webpack:///./node_modules/d3-interpolate/src/string.js","webpack:///./node_modules/d3-transition/src/transition/interpolate.js","webpack:///./node_modules/d3-transition/src/transition/attr.js","webpack:///./node_modules/d3-transition/src/transition/attrTween.js","webpack:///./node_modules/d3-transition/src/transition/delay.js","webpack:///./node_modules/d3-transition/src/transition/duration.js","webpack:///./node_modules/d3-transition/src/transition/ease.js","webpack:///./node_modules/d3-transition/src/transition/on.js","webpack:///./node_modules/d3-transition/src/transition/remove.js","webpack:///./node_modules/d3-transition/src/transition/selection.js","webpack:///./node_modules/d3-transition/src/transition/style.js","webpack:///./node_modules/d3-transition/src/transition/styleTween.js","webpack:///./node_modules/d3-transition/src/transition/textTween.js","webpack:///./node_modules/d3-transition/src/transition/index.js","webpack:///./node_modules/d3-transition/src/transition/select.js","webpack:///./node_modules/d3-transition/src/transition/selectAll.js","webpack:///./node_modules/d3-transition/src/transition/filter.js","webpack:///./node_modules/d3-transition/src/transition/merge.js","webpack:///./node_modules/d3-transition/src/transition/transition.js","webpack:///./node_modules/d3-transition/src/transition/text.js","webpack:///./node_modules/d3-transition/src/transition/end.js","webpack:///./node_modules/d3-transition/src/selection/transition.js","webpack:///./node_modules/d3-ease/src/cubic.js","webpack:///./node_modules/d3-transition/src/selection/index.js","webpack:///./node_modules/d3-transition/src/selection/interrupt.js","webpack:///./node_modules/d3-transition/src/active.js","webpack:///./node_modules/d3-selection/src/sourceEvent.js","webpack:///./node_modules/d3-selection/src/point.js","webpack:///./node_modules/d3-selection/src/mouse.js","webpack:///./node_modules/d3-selection/src/touch.js","webpack:///./node_modules/d3-drag/src/noevent.js","webpack:///./node_modules/d3-drag/src/nodrag.js","webpack:///./node_modules/d3-drag/src/constant.js","webpack:///./node_modules/d3-drag/src/event.js","webpack:///./node_modules/d3-drag/src/drag.js","webpack:///./src/report_table.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","SSF","_strrev","x","length","charAt","fill","pad0","v","pad_","rpad_","version","p2_32","Math","pow","pad0r","round","pad0r1","pad0r2","isgeneral","charCodeAt","days","months","init_table","table_fmt","default_map","defi","default_str","frac","D","mixed","sgn","B","P_2","P_1","P","Q_2","Q_1","Q","A","floor","q","parse_date_code","opts","b2","date","time","dow","dout","out","T","u","y","H","M","S","abs","date1904","Date","setDate","getDate","getFullYear","getMonth","getDay","fix_hijri","basedate","dnthresh","getTime","base1904","datenum_local","epoch","getTimezoneOffset","_general_int","toString","general_fmt_num","trailing_zeroes_and_decimal","strip_decimal","indexOf","replace","mantissa_zeroes_and_decimal","exp_with_single_digit","V","log","LOG10E","toPrecision","w","toFixed","toExponential","small_exp","substr","large_exp","normalize_exp","toUpperCase","general_fmt","format","Error","_general_num","_general","split","write_date","type","fmt","val","ss0","ss","tt","outl","commaify","j","write_num","pct1","frac1","dec1","closeparen","phone","hashq","str","cc","String","fromCharCode","rnd","dd","dec","_frac","write_num_flt","match","ffmt","idx","write_num_cm","sfmt","mul","write_num_pct","write_num_exp","period","ee","fakee","$$","$1","$2","$3","ri","ff","aval","sign","den","parseInt","rr","base","myn","myd","write_num_f1","carry","oa","min","max","lres","rres","flr","write_num_int","write_num_cm2","write_num_pct2","write_num_exp2","write_num_f2","slice","lastIndexOf","split_fmt","in_str","_split","abstime","fmt_is_date","eval_fmt","flen","dt","lst","hr","toLowerCase","ssm","bt","jj","nstr","myv","ostr","vv","decpt","lasti","retval","is_date","_eval","cfregex","cfregex2","chkcond","thresh","parseFloat","dateNF","table","f","lat","join","m1","m2","choose_fmt","load_entry","undefined","load","_table","get_table","load_table","tbl","make_ssf","DO_NOT_EXPORT_SSF","memo","isOldIE","Boolean","window","document","all","atob","getTarget","target","styleTarget","querySelector","HTMLIFrameElement","contentDocument","head","e","stylesInDom","getIndexByIdentifier","identifier","result","modulesToDom","list","options","idCountMap","identifiers","item","id","count","concat","index","obj","css","media","sourceMap","references","updater","push","addStyle","insertStyleElement","style","createElement","attributes","nonce","keys","forEach","setAttribute","insert","appendChild","textStore","replaceText","replacement","filter","applyToSingletonTag","remove","styleSheet","cssText","cssNode","createTextNode","childNodes","removeChild","insertBefore","applyToTag","removeAttribute","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","singleton","singletonCounter","update","styleIndex","parentNode","removeStyleElement","newObj","lastIdentifiers","newList","newLastIdentifiers","_i","_index","splice","useSourceMap","this","map","content","cssMapping","sourceMapping","base64","data","sourceURLs","sources","source","sourceRoot","cssWithMappingToString","mediaQuery","dedupe","alreadyImportedModules","url","default","test","hash","needQuotes","FUNC_ERROR_TEXT","PLACEHOLDER","wrapFlags","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","genTag","mapTag","numberTag","objectTag","regexpTag","setTag","stringTag","symbolTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint16Tag","uint32Tag","reEmptyStringLeading","reEmptyStringMiddle","reEmptyStringTrailing","reEscapedHtml","reUnescapedHtml","reHasEscapedHtml","RegExp","reHasUnescapedHtml","reEscape","reEvaluate","reInterpolate","reIsDeepProp","reIsPlainProp","rePropName","reRegExpChar","reHasRegExpChar","reTrim","reTrimStart","reTrimEnd","reWrapComment","reWrapDetails","reSplitDetails","reAsciiWord","reEscapeChar","reEsTemplate","reFlags","reIsBadHex","reIsBinary","reIsHostCtor","reIsOctal","reIsUint","reLatin","reNoMatch","reUnescapedString","rsComboRange","rsComboMarksRange","rsBreakRange","rsMathOpRange","rsAstral","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsMiscLower","rsMiscUpper","reOptMod","rsSeq","rsEmoji","rsSymbol","reApos","reComboMark","reUnicode","reUnicodeWord","reHasUnicode","reHasUnicodeWord","contextProps","templateCounter","typedArrayTags","cloneableTags","stringEscapes","freeParseFloat","freeParseInt","freeGlobal","global","freeSelf","self","root","Function","freeExports","nodeType","freeModule","moduleExports","freeProcess","process","nodeUtil","types","require","binding","nodeIsArrayBuffer","isArrayBuffer","nodeIsDate","isDate","nodeIsMap","isMap","nodeIsRegExp","isRegExp","nodeIsSet","isSet","nodeIsTypedArray","isTypedArray","apply","func","thisArg","args","arrayAggregator","array","setter","iteratee","accumulator","arrayEach","arrayEachRight","arrayEvery","predicate","arrayFilter","resIndex","arrayIncludes","baseIndexOf","arrayIncludesWith","comparator","arrayMap","Array","arrayPush","values","offset","arrayReduce","initAccum","arrayReduceRight","arraySome","asciiSize","baseProperty","baseFindKey","collection","eachFunc","baseFindIndex","fromIndex","fromRight","strictIndexOf","baseIsNaN","baseIndexOfWith","baseMean","baseSum","basePropertyOf","baseReduce","current","baseTimes","baseUnary","baseValues","props","cacheHas","cache","has","charsStartIndex","strSymbols","chrSymbols","charsEndIndex","countHolders","placeholder","deburrLetter","escapeHtmlChar","escapeStringChar","chr","hasUnicode","string","mapToArray","size","overArg","transform","arg","replaceHolders","setToArray","set","setToPairs","stringSize","lastIndex","unicodeSize","stringToArray","unicodeToArray","asciiToArray","unescapeHtmlChar","_","runInContext","context","uid","defaults","pick","TypeError","arrayProto","funcProto","objectProto","coreJsData","funcToString","idCounter","maskSrcKey","exec","IE_PROTO","nativeObjectToString","objectCtorString","oldDash","reIsNative","Buffer","Uint8Array","allocUnsafe","getPrototype","getPrototypeOf","objectCreate","propertyIsEnumerable","spreadableSymbol","isConcatSpreadable","symIterator","iterator","symToStringTag","getNative","ctxClearTimeout","clearTimeout","ctxNow","now","ctxSetTimeout","setTimeout","nativeCeil","ceil","nativeFloor","nativeGetSymbols","getOwnPropertySymbols","nativeIsBuffer","isBuffer","nativeIsFinite","isFinite","nativeJoin","nativeKeys","nativeMax","nativeMin","nativeNow","nativeParseInt","nativeRandom","random","nativeReverse","reverse","DataView","Map","Promise","Set","WeakMap","nativeCreate","metaMap","realNames","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","valueOf","symbolToString","lodash","isObjectLike","isArray","LazyWrapper","LodashWrapper","wrapperClone","baseCreate","proto","isObject","baseLodash","chainAll","__wrapped__","__actions__","__chain__","__index__","__values__","__dir__","__filtered__","__iteratees__","__takeCount__","__views__","Hash","entries","clear","entry","ListCache","MapCache","SetCache","__data__","add","Stack","arrayLikeKeys","inherited","isArr","isArg","isArguments","isBuff","isType","skipIndexes","isIndex","arraySample","baseRandom","arraySampleSize","shuffleSelf","copyArray","baseClamp","arrayShuffle","assignMergeValue","eq","baseAssignValue","assignValue","objValue","assocIndexOf","baseAggregator","baseEach","baseAssign","copyObject","baseAt","paths","skip","number","lower","upper","baseClone","bitmask","customizer","stack","isDeep","isFlat","isFull","constructor","input","initCloneArray","tag","getTag","isFunc","cloneBuffer","initCloneObject","getSymbolsIn","copySymbolsIn","keysIn","baseAssignIn","getSymbols","copySymbols","Ctor","cloneArrayBuffer","dataView","buffer","byteOffset","byteLength","cloneDataView","cloneTypedArray","regexp","cloneRegExp","symbol","initCloneByTag","stacked","subValue","getAllKeysIn","getAllKeys","baseConformsTo","baseDelay","wait","baseDifference","includes","isCommon","valuesLength","outer","computed","valuesIndex","templateSettings","pop","getMapData","pairs","LARGE_ARRAY_SIZE","createBaseEach","baseForOwn","baseEachRight","baseForOwnRight","baseEvery","baseExtremum","isSymbol","baseFilter","baseFlatten","depth","isStrict","isFlattenable","baseFor","createBaseFor","baseForRight","baseFunctions","isFunction","baseGet","path","castPath","toKey","baseGetAllKeys","keysFunc","symbolsFunc","baseGetTag","isOwn","unmasked","getRawTag","objectToString","baseGt","other","baseHas","baseHasIn","baseIntersection","arrays","othLength","othIndex","caches","maxLength","Infinity","seen","baseInvoke","parent","last","baseIsArguments","baseIsEqual","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","message","convert","isPartial","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","objProps","objLength","objStacked","othStacked","skipCtor","othValue","compared","objCtor","othCtor","equalObjects","baseIsEqualDeep","baseIsMatch","matchData","noCustomizer","srcValue","COMPARE_PARTIAL_FLAG","baseIsNative","baseIteratee","identity","baseMatchesProperty","baseMatches","baseKeys","isPrototype","baseKeysIn","nativeKeysIn","isProto","baseLt","baseMap","isArrayLike","getMatchData","matchesStrictComparable","isKey","isStrictComparable","hasIn","baseMerge","srcIndex","mergeFunc","safeGet","newValue","isTyped","isArrayLikeObject","isPlainObject","toPlainObject","baseMergeDeep","baseNth","baseOrderBy","iteratees","orders","getIteratee","comparer","sort","baseSortBy","objCriteria","criteria","othCriteria","ordersLength","compareAscending","order","compareMultiple","basePickBy","baseSet","basePullAll","basePullAt","indexes","previous","baseUnset","baseRepeat","baseRest","start","setToString","overRest","baseSample","baseSampleSize","nested","baseSetData","baseSetToString","constant","baseShuffle","baseSlice","end","baseSome","baseSortedIndex","retHighest","low","high","MAX_ARRAY_LENGTH","mid","baseSortedIndexBy","valIsNaN","valIsNull","valIsSymbol","valIsUndefined","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","setLow","baseSortedUniq","baseToNumber","baseToString","baseUniq","createSet","seenIndex","baseUpdate","baseWhile","isDrop","baseWrapperValue","actions","action","baseXor","baseZipObject","assignFunc","valsLength","castArrayLikeObject","castFunction","stringToPath","castRest","castSlice","copy","arrayBuffer","typedArray","valIsDefined","valIsReflexive","composeArgs","partials","holders","isCurried","argsIndex","argsLength","holdersLength","leftIndex","leftLength","rangeLength","isUncurried","composeArgsRight","holdersIndex","rightIndex","rightLength","isNew","createAggregator","initializer","createAssigner","assigner","guard","isIterateeCall","iterable","createCaseFirst","methodName","trailing","createCompounder","callback","words","deburr","createCtor","arguments","thisBinding","createFind","findIndexFunc","createFlow","flatRest","funcs","prereq","thru","wrapper","getFuncName","funcName","getData","isLaziable","plant","createHybrid","partialsRight","holdersRight","argPos","ary","arity","isAry","isBind","isBindKey","isFlip","getHolder","holdersCount","newHolders","createRecurry","fn","reorder","createInverter","toIteratee","baseInverter","createMathOperation","operator","defaultValue","createOver","arrayFunc","createPadding","chars","charsLength","createRange","step","toFinite","baseRange","createRelationalOperation","toNumber","wrapFunc","isCurry","newData","setData","setWrapToString","createRound","precision","toInteger","pair","noop","createToPairs","baseToPairs","createWrap","srcBitmask","newBitmask","isCombo","mergeData","createCurry","createPartial","createBind","customDefaultsAssignIn","customDefaultsMerge","customOmitClone","arrLength","arrStacked","arrValue","flatten","otherFunc","getValue","stubArray","hasPath","hasFunc","isLength","ArrayBuffer","resolve","ctorString","isMaskable","stubFalse","otherArgs","oldArray","shortOut","reference","details","insertWrapDetails","updateWrapDetails","getWrapDetails","lastCalled","stamp","remaining","rand","memoize","memoizeCapped","quote","subString","clone","difference","differenceBy","differenceWith","findIndex","findLastIndex","intersection","mapped","intersectionBy","intersectionWith","pull","pullAll","pullAt","union","unionBy","unionWith","unzip","group","unzipWith","without","xor","xorBy","xorWith","zip","zipWith","chain","interceptor","wrapperAt","countBy","find","findLast","forEachRight","groupBy","invokeMap","keyBy","partition","sortBy","before","bindKey","WRAP_BIND_FLAG","debounce","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","invokeFunc","leadingEdge","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","timeWaiting","remainingWait","debounced","isInvoking","cancel","flush","defer","delay","resolver","memoized","Cache","negate","overArgs","transforms","funcsLength","partial","partialRight","rearg","gt","gte","isError","isInteger","isNumber","isString","lt","lte","toArray","next","done","iteratorToArray","remainder","toLength","isBinary","assign","assignIn","assignInWith","assignWith","at","propsIndex","propsLength","defaultsDeep","mergeWith","invert","invertBy","invoke","merge","omit","CLONE_DEEP_FLAG","basePick","pickBy","prop","toPairs","toPairsIn","camelCase","word","capitalize","upperFirst","kebabCase","lowerCase","lowerFirst","snakeCase","startCase","upperCase","pattern","hasUnicodeWord","unicodeWords","asciiWords","attempt","bindAll","methodNames","flow","flowRight","method","methodOf","mixin","over","overEvery","overSome","basePropertyDeep","range","rangeRight","augend","addend","divide","dividend","divisor","multiply","multiplier","multiplicand","subtract","minuend","subtrahend","after","castArray","chunk","compact","cond","conforms","baseConforms","properties","curry","curryRight","drop","dropRight","dropRightWhile","dropWhile","baseFill","flatMap","flatMapDeep","flatMapDepth","flattenDeep","flattenDepth","flip","fromPairs","functions","functionsIn","initial","mapKeys","mapValues","matches","matchesProperty","nthArg","omitBy","once","orderBy","propertyOf","pullAllBy","pullAllWith","reject","rest","sampleSize","setWith","shuffle","sortedUniq","sortedUniqBy","separator","limit","spread","tail","take","takeRight","takeRightWhile","takeWhile","tap","throttle","toPath","isArrLike","unary","uniq","uniqBy","uniqWith","unset","updateWith","valuesIn","wrap","zipObject","zipObjectDeep","entriesIn","extend","extendWith","clamp","cloneDeep","cloneDeepWith","cloneWith","conformsTo","defaultTo","endsWith","position","escape","escapeRegExp","every","findKey","findLastKey","forIn","forInRight","forOwn","forOwnRight","inRange","baseInRange","isBoolean","isElement","isEmpty","isEqual","isEqualWith","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isSafeInteger","isUndefined","isWeakMap","isWeakSet","strictLastIndexOf","maxBy","mean","meanBy","minBy","stubObject","stubString","stubTrue","nth","noConflict","pad","strLength","padEnd","padStart","radix","floating","temp","reduce","reduceRight","repeat","sample","some","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","startsWith","sum","sumBy","template","settings","isEscaping","isEvaluating","imports","importsKeys","importsValues","interpolate","reDelimiters","evaluate","sourceURL","escapeValue","interpolateValue","esTemplateValue","evaluateValue","variable","times","toLower","toSafeInteger","toUpper","trim","trimEnd","trimStart","truncate","omission","search","substring","newEnd","uniqueId","prefix","each","eachRight","first","VERSION","isFilter","takeName","dropName","checkIteratee","isTaker","lodashFunc","retUnwrapped","isLazy","useLazy","isHybrid","isUnwrapped","onlyLazy","chainName","dir","isRight","view","getView","iterLength","takeCount","iterIndex","commit","wrapped","toJSON","g","webpackPolyfill","deprecate","children","api","refs","exported","locals","use","unuse","___CSS_LOADER_API_IMPORT___","___CSS_LOADER_GET_URL_IMPORT___","___CSS_LOADER_URL_IMPORT_0___","___CSS_LOADER_URL_IMPORT_1___","___CSS_LOADER_URL_REPLACEMENT_0___","___CSS_LOADER_URL_REPLACEMENT_1___","ModelField","vis","queryResponseField","view_label","label","label_short","is_numeric","is_array","value_format","geo_type","map_layer","hide","config","style_setting","heading","short_name","unit","tags","ModelDimension","super","align","ModelPivot","ModelMeasure","can_pivot","is_table_calculation","calculation_type","is_turtle","HeaderCell","column","cell_style","modelField","pivotData","colspan","rowspan","headerRow","Series","line_items_only","with_subtotals","min_for_display","max_for_display","a","b","avg","CellSeries","row","sort_value","series","rendered","formatted_value","ColumnSeries","DataCell","html","links","rowid","colid","Row","Column","transposed","pos","levels","pivot_key","isVariance","variance_type","pivoted","isRowTotal","subtotal","subtotal_data","colspans","level","headerCell","header_setting","label_setting","useShortName","groupVarianceColumns","pivot_values","useViewName","headers","getHeaderCellLabel","headerData","header","tableModelCoreOptions","theme","section","display","Traditional","Looker","Contemporary","customTheme","layout","Even","Auto","minWidthForIndexColumns","headerFontSize","display_size","bodyFontSize","showTooltip","showHighlight","columnOrder","rowSubtotals","colSubtotals","spanRows","spanCols","calculateOthers","sortColumnsBy","Pivots","Measures","useHeadings","useUnit","genericLabelForSubtotals","indexColumn","transposeTable","lookerData","queryResponse","visId","dimensions","measures","columns","subtotals_data","transposed_headers","transposed_columns","transposed_data","pivot_fields","pivots","variances","column_series","firstVisibleDimension","useIndexColumn","addRowSubtotals","addSubtotalDepth","subtotalDepth","addColSubtotals","sortColsBy","fieldLevel","sorts","hasTotals","totals_data","truncated","hasSubtotals","hasRowTotals","has_row_totals","hasPivots","hasSupers","fields","supermeasure_like","addPivotsAndHeaders","addDimensions","addMeasures","checkVarianceCalculations","addIndexColumn","checkSubtotalsData","addRows","addColumnSeries","buildTotals","setRowSpans","addSubTotals","addColumnSubTotals","addVarianceColumns","sortColumns","setHeaderCellLabels","setColSpans","applyFormatting","transposeDimensionsIntoHeaders","transposeRowsIntoColumns","transposeColumnsIntoRows","validateConfig","getTableColumnGroups","newOptions","subtotal_options","dimension","subtotal_option","measure","Normal","Subtotal","Hidden","Thousands","Millions","Billions","comparisonOptions","pivotComparisons","pivot_field","option","comparisonMeasure","includeMeasure","unshift","pivot","measureHeaders","col_idx","dimension_like","newDimension","pivotField","measure_like","newMeasure","reportInSetting","unitSetting","pivot_value","tempSort","level_sort_values","metadata","sort_values","sortTracker","supermeasure","meas","baseline","comparison","baseline_in_measures","comparison_available","comparitor","dim_config_setting","lookerSubtotal","visSubtotal","groups","cell","lookerRow","cellValue","cell_series","_parsed","last_dim","sourceCell","new_series","totals_","totalsRow","getRenderedFromHtml","link","othersRow","othersValue","othersStyle","totalValue","sortData","leaves","tiers","span_tracker","tier","leaf","this_tier_value","neighbour_value","t_","tier_","subTotalGroups","latest_group","dim","subTotalGroup","subtotalRow","dims","subtotal_value","subtotal_items","data_row","Number","subtotalColumns","pivot_dimension","p_value","subtotalColumn","measure_idx","columnPivotValue","pivotIdx","pivotDimension","sortValueFromColumn","console","sortOption","desc","sortDescending","subtotalSortValue","NEGATIVE_INFINITY","POSITIVE_INFINITY","calc","baseline_value","comparison_value","colpair","variance","getColumnById","sortCopy","getHeaderCellLabelByType","calculateVariance","variance_colpairs","calcs","is_total","top_level_pivots","createVarianceColumn","dataTable","field","a_value","b_value","compareSortArrays","getHeaderData","config_setting","index_parent","transposedColumn","h","measure_parent","sourceRow","cellRef","transposedData","transposed_row","field_option","field_name","keep_option","parser","DOMParser","parseFromString","documentElement","textContent","dataRows","cells","from","to","updateColumnOrder","shift","col_order","col","raw_values","indexColumns","measureColumns","totalColumns","columnGroups","tipHTML","getRowById","focusColumn","rowClass","render","isEstimate","measureLabel","isReportedIn","1000","1000000","1000000000","none","selector","querySelectorAll","EnterNode","datum","ownerDocument","namespaceURI","_next","_parent","child","bindIndex","enter","exit","node","groupLength","dataLength","keyValue","nodeByKeyValue","keyValues","ascending","NaN","xhtml","svg","xlink","xml","xmlns","namespaces","space","local","attrRemove","attrRemoveNS","fullname","removeAttributeNS","attrConstant","attrConstantNS","setAttributeNS","attrFunction","attrFunctionNS","defaultView","styleRemove","removeProperty","styleConstant","priority","setProperty","styleFunction","styleValue","getPropertyValue","getComputedStyle","propertyRemove","propertyConstant","propertyFunction","classArray","classList","ClassList","_node","_names","getAttribute","classedAdd","names","classedRemove","classedTrue","classedFalse","classedFunction","contains","textRemove","textConstant","textFunction","htmlRemove","innerHTML","htmlConstant","htmlFunction","raise","nextSibling","previousSibling","creatorInherit","uri","createElementNS","creatorFixed","namespace","constantNull","selection_cloneShallow","cloneNode","selection_cloneDeep","filterEvents","mouseenter","mouseleave","filterContextListener","listener","contextListener","event","related","relatedTarget","compareDocumentPosition","event1","event0","parseTypenames","typenames","onRemove","typename","on","__on","removeEventListener","capture","onAdd","addEventListener","customEvent","that","sourceEvent","dispatchEvent","params","CustomEvent","createEvent","initEvent","bubbles","cancelable","detail","dispatchConstant","dispatchFunction","Selection","parents","_groups","_parents","select","subgroups","subnode","subgroup","selectAll","selectorAll","matcher","enterGroup","updateGroup","i0","i1","_enter","_exit","sparse","onenter","append","onupdate","onexit","groups0","groups1","selection","m0","merges","group0","group1","compareNode","compare","sortgroups","sortgroup","nodes","empty","attr","getAttributeNS","classed","text","creator","deep","dispatch","Dispatch","taskHead","taskTail","timeout","interval","clockLast","clockNow","clockSkew","clock","performance","setFrame","requestAnimationFrame","clearNow","Timer","_call","_time","timer","restart","wake","timerFlush","t0","t2","t1","sleep","nap","poke","clearInterval","setInterval","stop","elapsed","emptyOn","emptyTween","schedules","__transition","tween","state","tick","duration","ease","timing","init","schedule","cssRoot","cssView","svgNode","degrees","PI","translateX","translateY","rotate","skewX","scaleX","scaleY","sqrt","atan2","atan","interpolateTransform","parse","pxComma","pxParen","degParen","xa","ya","xb","yb","translate","scale","interpolateTransformCss","decompose","interpolateTransformSvg","baseVal","consolidate","matrix","tweenRemove","tween0","tween1","tweenFunction","tweenValue","transition","_id","factory","definition","Color","reI","reN","reP","reHex","reRgbInteger","reRgbPercent","reRgbaInteger","reRgbaPercent","reHslPercent","reHslaPercent","named","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","color_formatHex","rgb","formatHex","color_formatRgb","formatRgb","rgbn","Rgb","rgba","hsla","rgbConvert","opacity","rgb_formatHex","hex","rgb_formatRgb","Hsl","hslConvert","hsl2rgb","basis","v0","v1","v2","v3","t3","define","channels","displayable","formatHsl","brighter","k","darker","linear","gamma","nogamma","exponential","color","rgbGamma","rgbSpline","spline","colors","reA","reB","am","bm","bs","bi","one","zero","value1","string00","interpolate0","string1","string0","string10","attrInterpolate","attrInterpolateNS","attrTweenNS","_value","attrTween","delayFunction","delayConstant","durationFunction","durationConstant","easeConstant","onFunction","on0","on1","sit","styleInterpolate","styleTween","textInterpolate","textTween","Transition","_name","newId","selection_prototype","inherit","id0","id1","styleNull","listener0","styleMaybeRemove","interrupt","defaultTiming","active","ownerSVGElement","createSVGPoint","point","clientX","clientY","matrixTransform","getScreenCTM","inverse","rect","getBoundingClientRect","left","clientLeft","top","clientTop","changedTouches","touches","touch","nopropagation","stopImmediatePropagation","preventDefault","noevent","__noselect","MozUserSelect","DragEvent","subject","dx","dy","defaultFilter","ctrlKey","button","defaultContainer","defaultSubject","defaultTouchable","navigator","maxTouchPoints","mousedownx","mousedowny","mousemoving","touchending","container","touchable","gestures","listeners","clickDistance2","drag","mousedowned","touchstarted","touchmoved","touchended","gesture","beforestart","mouse","mousemoved","mouseupped","nodrag","noclick","sublisteners","p0","clickDistance","themes","traditional","looker","contemporary","fixed","auto","buildNoResultsContainer","noResultsMessage","innerText","buildReportTable","element","dropTarget","bounds","chartCentreX","width","chartCentreY","height","async","getElementsByTagName","removeStyles","then","linkElement","loadStylesheet","sortByColumnSeries","columnSeriesOrder","orderedGroup","colName","getTextWidth","font","canvas","getContext","measureText","has_pivots","xPosition","yPosition","movingColumn","targetColumn","movingIdx","targetIdx","moveColumns","columnTextWidths","fontSize","cs","columnId","getHeaderTiers","getTableHeaderCells","classes","getDataRows","toggle","getTableRowColumns","getElementById","getCellToolTip","tooltip","pageX","pageY","metaKey","pageYOffset","LookerCharts","Utils","openDrillMenu","renderTable","viewbox_width","clientWidth","viewbox_height","clientHeight","allRects","bbox","class","className","textAlign","addOverlay","plugins","visualizations","getCoreConfigOptions","svgContainer","updateAsync","clearErrors","addError","title","visContainer","renderTableNoResults","elem","trigger","getConfigOptions","newOrder"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eA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AzC+8C,EAAc8B,OAAO3B,SAASl9C,OAE9BgS,KAAKi/D,SAAS,CACZC,MAAO,iBACP5hD,QAAS,yDAMb,GAAIytB,EAAc8B,OAAOpB,OAAOz9C,OAAS,EACvCgS,KAAKi/D,SAAS,CACZC,MAAO,iBACP5hD,QAAS,gEAHb,CAYA,IAAKhd,EAAKtS,OAGR,OAzkBuB,WAC3B,MAAMmxE,EAAejkE,SAASM,cAAc,iBACtCm/D,EAAmBD,KAGrByE,GACFA,EAAa7/D,WAAWd,YAAY2gE,GAItCjkE,SAASM,cAAc,QAAQolD,OAAO+Z,GA6jBlCyE,QACAnsC,IAMF,IACE,IAAIosC,EAAOnkE,SAASM,cAAc,iBAClC6jE,EAAK//D,WAAWd,YAAY6gE,GAC5B,MAAOzjE,IAEToE,KAAKg5D,UAAY,GACP8B,GACPla,OAAO,OACPgB,KAAK,KAAM,qBAEoB,IAAvBjd,EAAOqF,aAChBhqC,KAAKs/D,QAAQ,eAAgB,CAAC,CAACt1B,YAAa,WAKlB,IAAjBrF,EAAOqE,QAChBrE,EAASp4C,OAAO+mC,OACd,CACEuW,aAAc,GACdF,eAAgB,GAChBX,MAAO,cACPe,eAAe,EACfD,aAAa,GAEfnF,IAUJ,IAAIyQ,EAAY,IAAI,EAAoB90C,EAAMyqC,EAAepG,GAC7D3kC,KAAKs/D,QAAQ,kBAAmBlqB,EAAUmqB,oBAC1C1E,GAAiBl2B,EAAQyQ,EA9ECoqB,IACxBx/D,KAAKs/D,QAAQ,eAAgB,CAAC,CAACt1B,YAAaw1B,MA6ES1E,GAMvD7nC","file":"report_table.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 24);\n","/* ssf.js (C) 2013-present SheetJS -- http://sheetjs.com */\n/* vim: set ts=2: */\n/*jshint -W041 */\nvar SSF = ({});\nvar make_ssf = function make_ssf(SSF){\nSSF.version = '0.11.2';\nfunction _strrev(x) { var o = \"\", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }\nfunction fill(c,l) { var o = \"\"; while(o.length < l) o+=c; return o; }\nfunction pad0(v,d){var t=\"\"+v; return t.length>=d?t:fill('0',d-t.length)+t;}\nfunction pad_(v,d){var t=\"\"+v;return t.length>=d?t:fill(' ',d-t.length)+t;}\nfunction rpad_(v,d){var t=\"\"+v; return t.length>=d?t:t+fill(' ',d-t.length);}\nfunction pad0r1(v,d){var t=\"\"+Math.round(v); return t.length>=d?t:fill('0',d-t.length)+t;}\nfunction pad0r2(v,d){var t=\"\"+v; return t.length>=d?t:fill('0',d-t.length)+t;}\nvar p2_32 = Math.pow(2,32);\nfunction pad0r(v,d){if(v>p2_32||v<-p2_32) return pad0r1(v,d); var i = Math.round(v); return pad0r2(i,d); }\nfunction isgeneral(s, i) { i = i || 0; return s.length >= 7 + i && (s.charCodeAt(i)|32) === 103 && (s.charCodeAt(i+1)|32) === 101 && (s.charCodeAt(i+2)|32) === 110 && (s.charCodeAt(i+3)|32) === 101 && (s.charCodeAt(i+4)|32) === 114 && (s.charCodeAt(i+5)|32) === 97 && (s.charCodeAt(i+6)|32) === 108; }\nvar days = [\n\t['Sun', 'Sunday'],\n\t['Mon', 'Monday'],\n\t['Tue', 'Tuesday'],\n\t['Wed', 'Wednesday'],\n\t['Thu', 'Thursday'],\n\t['Fri', 'Friday'],\n\t['Sat', 'Saturday']\n];\nvar months = [\n\t['J', 'Jan', 'January'],\n\t['F', 'Feb', 'February'],\n\t['M', 'Mar', 'March'],\n\t['A', 'Apr', 'April'],\n\t['M', 'May', 'May'],\n\t['J', 'Jun', 'June'],\n\t['J', 'Jul', 'July'],\n\t['A', 'Aug', 'August'],\n\t['S', 'Sep', 'September'],\n\t['O', 'Oct', 'October'],\n\t['N', 'Nov', 'November'],\n\t['D', 'Dec', 'December']\n];\nfunction init_table(t) {\n\tt[0]= 'General';\n\tt[1]= '0';\n\tt[2]= '0.00';\n\tt[3]= '#,##0';\n\tt[4]= '#,##0.00';\n\tt[9]= '0%';\n\tt[10]= '0.00%';\n\tt[11]= '0.00E+00';\n\tt[12]= '# ?/?';\n\tt[13]= '# ??/??';\n\tt[14]= 'm/d/yy';\n\tt[15]= 'd-mmm-yy';\n\tt[16]= 'd-mmm';\n\tt[17]= 'mmm-yy';\n\tt[18]= 'h:mm AM/PM';\n\tt[19]= 'h:mm:ss AM/PM';\n\tt[20]= 'h:mm';\n\tt[21]= 'h:mm:ss';\n\tt[22]= 'm/d/yy h:mm';\n\tt[37]= '#,##0 ;(#,##0)';\n\tt[38]= '#,##0 ;[Red](#,##0)';\n\tt[39]= '#,##0.00;(#,##0.00)';\n\tt[40]= '#,##0.00;[Red](#,##0.00)';\n\tt[45]= 'mm:ss';\n\tt[46]= '[h]:mm:ss';\n\tt[47]= 'mmss.0';\n\tt[48]= '##0.0E+0';\n\tt[49]= '@';\n\tt[56]= '\"上午/下午 \"hh\"時\"mm\"分\"ss\"秒 \"';\n}\n\nvar table_fmt = {};\ninit_table(table_fmt);\n/* Defaults determined by systematically testing in Excel 2019 */\n\n/* These formats appear to default to other formats in the table */\nvar default_map = [];\nvar defi = 0;\n\n// 5 -> 37 ... 8 -> 40\nfor(defi = 5; defi <= 8; ++defi) default_map[defi] = 32 + defi;\n\n// 23 -> 0 ... 26 -> 0\nfor(defi = 23; defi <= 26; ++defi) default_map[defi] = 0;\n\n// 27 -> 14 ... 31 -> 14\nfor(defi = 27; defi <= 31; ++defi) default_map[defi] = 14;\n// 50 -> 14 ... 58 -> 14\nfor(defi = 50; defi <= 58; ++defi) default_map[defi] = 14;\n\n// 59 -> 1 ... 62 -> 4\nfor(defi = 59; defi <= 62; ++defi) default_map[defi] = defi - 58;\n// 67 -> 9 ... 68 -> 10\nfor(defi = 67; defi <= 68; ++defi) default_map[defi] = defi - 58;\n// 72 -> 14 ... 75 -> 17\nfor(defi = 72; defi <= 75; ++defi) default_map[defi] = defi - 58;\n\n// 69 -> 12 ... 71 -> 14\nfor(defi = 67; defi <= 68; ++defi) default_map[defi] = defi - 57;\n\n// 76 -> 20 ... 78 -> 22\nfor(defi = 76; defi <= 78; ++defi) default_map[defi] = defi - 56;\n\n// 79 -> 45 ... 81 -> 47\nfor(defi = 79; defi <= 81; ++defi) default_map[defi] = defi - 34;\n\n// 82 -> 0 ... 65536 -> 0 (omitted)\n\n/* These formats technically refer to Accounting formats with no equivalent */\nvar default_str = [];\n\n// 5 -- Currency, 0 decimal, black negative\ndefault_str[5] = default_str[63] = '\"$\"#,##0_);\\\\(\"$\"#,##0\\\\)';\n// 6 -- Currency, 0 decimal, red negative\ndefault_str[6] = default_str[64] = '\"$\"#,##0_);[Red]\\\\(\"$\"#,##0\\\\)';\n// 7 -- Currency, 2 decimal, black negative\ndefault_str[7] = default_str[65] = '\"$\"#,##0.00_);\\\\(\"$\"#,##0.00\\\\)';\n// 8 -- Currency, 2 decimal, red negative\ndefault_str[8] = default_str[66] = '\"$\"#,##0.00_);[Red]\\\\(\"$\"#,##0.00\\\\)';\n\n// 41 -- Accounting, 0 decimal, No Symbol\ndefault_str[41] = '_(* #,##0_);_(* \\\\(#,##0\\\\);_(* \"-\"_);_(@_)';\n// 42 -- Accounting, 0 decimal, $ Symbol\ndefault_str[42] = '_(\"$\"* #,##0_);_(\"$\"* \\\\(#,##0\\\\);_(\"$\"* \"-\"_);_(@_)';\n// 43 -- Accounting, 2 decimal, No Symbol\ndefault_str[43] = '_(* #,##0.00_);_(* \\\\(#,##0.00\\\\);_(* \"-\"??_);_(@_)';\n// 44 -- Accounting, 2 decimal, $ Symbol\ndefault_str[44] = '_(\"$\"* #,##0.00_);_(\"$\"* \\\\(#,##0.00\\\\);_(\"$\"* \"-\"??_);_(@_)';\nfunction frac(x, D, mixed) {\n\tvar sgn = x < 0 ? -1 : 1;\n\tvar B = x * sgn;\n\tvar P_2 = 0, P_1 = 1, P = 0;\n\tvar Q_2 = 1, Q_1 = 0, Q = 0;\n\tvar A = Math.floor(B);\n\twhile(Q_1 < D) {\n\t\tA = Math.floor(B);\n\t\tP = A * P_1 + P_2;\n\t\tQ = A * Q_1 + Q_2;\n\t\tif((B - A) < 0.00000005) break;\n\t\tB = 1 / (B - A);\n\t\tP_2 = P_1; P_1 = P;\n\t\tQ_2 = Q_1; Q_1 = Q;\n\t}\n\tif(Q > D) { if(Q_1 > D) { Q = Q_2; P = P_2; } else { Q = Q_1; P = P_1; } }\n\tif(!mixed) return [0, sgn * P, Q];\n\tvar q = Math.floor(sgn * P/Q);\n\treturn [q, sgn*P - q*Q, Q];\n}\nfunction parse_date_code(v,opts,b2) {\n\tif(v > 2958465 || v < 0) return null;\n\tvar date = (v|0), time = Math.floor(86400 * (v - date)), dow=0;\n\tvar dout=[];\n\tvar out={D:date, T:time, u:86400*(v-date)-time,y:0,m:0,d:0,H:0,M:0,S:0,q:0};\n\tif(Math.abs(out.u) < 1e-6) out.u = 0;\n\tif(opts && opts.date1904) date += 1462;\n\tif(out.u > 0.9999) {\n\t\tout.u = 0;\n\t\tif(++time == 86400) { out.T = time = 0; ++date; ++out.D; }\n\t}\n\tif(date === 60) {dout = b2 ? [1317,10,29] : [1900,2,29]; dow=3;}\n\telse if(date === 0) {dout = b2 ? [1317,8,29] : [1900,1,0]; dow=6;}\n\telse {\n\t\tif(date > 60) --date;\n\t\t/* 1 = Jan 1 1900 in Gregorian */\n\t\tvar d = new Date(1900, 0, 1);\n\t\td.setDate(d.getDate() + date - 1);\n\t\tdout = [d.getFullYear(), d.getMonth()+1,d.getDate()];\n\t\tdow = d.getDay();\n\t\tif(date < 60) dow = (dow + 6) % 7;\n\t\tif(b2) dow = fix_hijri(d, dout);\n\t}\n\tout.y = dout[0]; out.m = dout[1]; out.d = dout[2];\n\tout.S = time % 60; time = Math.floor(time / 60);\n\tout.M = time % 60; time = Math.floor(time / 60);\n\tout.H = time;\n\tout.q = dow;\n\treturn out;\n}\nSSF.parse_date_code = parse_date_code;\nvar basedate = new Date(1899, 11, 31, 0, 0, 0);\nvar dnthresh = basedate.getTime();\nvar base1904 = new Date(1900, 2, 1, 0, 0, 0);\nfunction datenum_local(v, date1904) {\n\tvar epoch = v.getTime();\n\tif(date1904) epoch -= 1461*24*60*60*1000;\n\telse if(v >= base1904) epoch += 24*60*60*1000;\n\treturn (epoch - (dnthresh + (v.getTimezoneOffset() - basedate.getTimezoneOffset()) * 60000)) / (24 * 60 * 60 * 1000);\n}\n/* The longest 32-bit integer text is \"-4294967296\", exactly 11 chars */\nfunction general_fmt_int(v) { return v.toString(10); }\nSSF._general_int = general_fmt_int;\n\n/* ECMA-376 18.8.30 numFmt*/\n/* Note: `toPrecision` uses standard form when prec > E and E >= -6 */\nvar general_fmt_num = (function make_general_fmt_num() {\n\tvar trailing_zeroes_and_decimal = /(?:\\.0*|(\\.\\d*[1-9])0+)$/;\n\tfunction strip_decimal(o) {\n\t\treturn (o.indexOf(\".\") == -1) ? o : o.replace(trailing_zeroes_and_decimal, \"$1\");\n\t}\n\n\t/* General Exponential always shows 2 digits exp and trims the mantissa */\n\tvar mantissa_zeroes_and_decimal = /(?:\\.0*|(\\.\\d*[1-9])0+)[Ee]/;\n\tvar exp_with_single_digit = /(E[+-])(\\d)$/;\n\tfunction normalize_exp(o) {\n\t\tif(o.indexOf(\"E\") == -1) return o;\n\t\treturn o.replace(mantissa_zeroes_and_decimal,\"$1E\").replace(exp_with_single_digit,\"$10$2\");\n\t}\n\n\t/* exponent >= -9 and <= 9 */\n\tfunction small_exp(v) {\n\t\tvar w = (v<0?12:11);\n\t\tvar o = strip_decimal(v.toFixed(12)); if(o.length <= w) return o;\n\t\to = v.toPrecision(10); if(o.length <= w) return o;\n\t\treturn v.toExponential(5);\n\t}\n\n\t/* exponent >= 11 or <= -10 likely exponential */\n\tfunction large_exp(v) {\n\t\tvar o = strip_decimal(v.toFixed(11));\n\t\treturn (o.length > (v<0?12:11) || o === \"0\" || o === \"-0\") ? v.toPrecision(6) : o;\n\t}\n\n\tfunction general_fmt_num_base(v) {\n\t\tvar V = Math.floor(Math.log(Math.abs(v))*Math.LOG10E), o;\n\n\t\tif(V >= -4 && V <= -1) o = v.toPrecision(10+V);\n\t\telse if(Math.abs(V) <= 9) o = small_exp(v);\n\t\telse if(V === 10) o = v.toFixed(10).substr(0,12);\n\t\telse o = large_exp(v);\n\n\t\treturn strip_decimal(normalize_exp(o.toUpperCase()));\n\t}\n\n\treturn general_fmt_num_base;\n})();\nSSF._general_num = general_fmt_num;\n\n/*\n\t\"General\" rules:\n\t- text is passed through (\"@\")\n\t- booleans are rendered as TRUE/FALSE\n\t- \"up to 11 characters\" displayed for numbers\n\t- Default date format (code 14) used for Dates\n\n\tTODO: technically the display depends on the width of the cell\n*/\nfunction general_fmt(v, opts) {\n\tswitch(typeof v) {\n\t\tcase 'string': return v;\n\t\tcase 'boolean': return v ? \"TRUE\" : \"FALSE\";\n\t\tcase 'number': return (v|0) === v ? v.toString(10) : general_fmt_num(v);\n\t\tcase 'undefined': return \"\";\n\t\tcase 'object':\n\t\t\tif(v == null) return \"\";\n\t\t\tif(v instanceof Date) return format(14, datenum_local(v, opts && opts.date1904), opts);\n\t}\n\tthrow new Error(\"unsupported value in General format: \" + v);\n}\nSSF._general = general_fmt;\nfunction fix_hijri(date, o) {\n /* TODO: properly adjust y/m/d and */\n o[0] -= 581;\n var dow = date.getDay();\n if(date < 60) dow = (dow + 6) % 7;\n return dow;\n}\nvar THAI_DIGITS = \"\\u0E50\\u0E51\\u0E52\\u0E53\\u0E54\\u0E55\\u0E56\\u0E57\\u0E58\\u0E59\".split(\"\");\n/*jshint -W086 */\nfunction write_date(type, fmt, val, ss0) {\n\tvar o=\"\", ss=0, tt=0, y = val.y, out, outl = 0;\n\tswitch(type) {\n\t\tcase 98: /* 'b' buddhist year */\n\t\t\ty = val.y + 543;\n\t\t\t/* falls through */\n\t\tcase 121: /* 'y' year */\n\t\tswitch(fmt.length) {\n\t\t\tcase 1: case 2: out = y % 100; outl = 2; break;\n\t\t\tdefault: out = y % 10000; outl = 4; break;\n\t\t} break;\n\t\tcase 109: /* 'm' month */\n\t\tswitch(fmt.length) {\n\t\t\tcase 1: case 2: out = val.m; outl = fmt.length; break;\n\t\t\tcase 3: return months[val.m-1][1];\n\t\t\tcase 5: return months[val.m-1][0];\n\t\t\tdefault: return months[val.m-1][2];\n\t\t} break;\n\t\tcase 100: /* 'd' day */\n\t\tswitch(fmt.length) {\n\t\t\tcase 1: case 2: out = val.d; outl = fmt.length; break;\n\t\t\tcase 3: return days[val.q][0];\n\t\t\tdefault: return days[val.q][1];\n\t\t} break;\n\t\tcase 104: /* 'h' 12-hour */\n\t\tswitch(fmt.length) {\n\t\t\tcase 1: case 2: out = 1+(val.H+11)%12; outl = fmt.length; break;\n\t\t\tdefault: throw 'bad hour format: ' + fmt;\n\t\t} break;\n\t\tcase 72: /* 'H' 24-hour */\n\t\tswitch(fmt.length) {\n\t\t\tcase 1: case 2: out = val.H; outl = fmt.length; break;\n\t\t\tdefault: throw 'bad hour format: ' + fmt;\n\t\t} break;\n\t\tcase 77: /* 'M' minutes */\n\t\tswitch(fmt.length) {\n\t\t\tcase 1: case 2: out = val.M; outl = fmt.length; break;\n\t\t\tdefault: throw 'bad minute format: ' + fmt;\n\t\t} break;\n\t\tcase 115: /* 's' seconds */\n\t\t\tif(fmt != 's' && fmt != 'ss' && fmt != '.0' && fmt != '.00' && fmt != '.000') throw 'bad second format: ' + fmt;\n\t\t\tif(val.u === 0 && (fmt == \"s\" || fmt == \"ss\")) return pad0(val.S, fmt.length);\nif(ss0 >= 2) tt = ss0 === 3 ? 1000 : 100;\n\t\t\telse tt = ss0 === 1 ? 10 : 1;\n\t\t\tss = Math.round((tt)*(val.S + val.u));\n\t\t\tif(ss >= 60*tt) ss = 0;\n\t\t\tif(fmt === 's') return ss === 0 ? \"0\" : \"\"+ss/tt;\n\t\t\to = pad0(ss,2 + ss0);\n\t\t\tif(fmt === 'ss') return o.substr(0,2);\n\t\t\treturn \".\" + o.substr(2,fmt.length-1);\n\t\tcase 90: /* 'Z' absolute time */\n\t\tswitch(fmt) {\n\t\t\tcase '[h]': case '[hh]': out = val.D*24+val.H; break;\n\t\t\tcase '[m]': case '[mm]': out = (val.D*24+val.H)*60+val.M; break;\n\t\t\tcase '[s]': case '[ss]': out = ((val.D*24+val.H)*60+val.M)*60+Math.round(val.S+val.u); break;\n\t\t\tdefault: throw 'bad abstime format: ' + fmt;\n\t\t} outl = fmt.length === 3 ? 1 : 2; break;\n\t\tcase 101: /* 'e' era */\n\t\t\tout = y; outl = 1; break;\n\t}\n\tvar outstr = outl > 0 ? pad0(out, outl) : \"\";\n\treturn outstr;\n}\n/*jshint +W086 */\nfunction commaify(s) {\n\tvar w = 3;\n\tif(s.length <= w) return s;\n\tvar j = (s.length % w), o = s.substr(0,j);\n\tfor(; j!=s.length; j+=w) o+=(o.length > 0 ? \",\" : \"\") + s.substr(j,w);\n\treturn o;\n}\nvar write_num = (function make_write_num(){\nvar pct1 = /%/g;\nfunction write_num_pct(type, fmt, val){\n\tvar sfmt = fmt.replace(pct1,\"\"), mul = fmt.length - sfmt.length;\n\treturn write_num(type, sfmt, val * Math.pow(10,2*mul)) + fill(\"%\",mul);\n}\nfunction write_num_cm(type, fmt, val){\n\tvar idx = fmt.length - 1;\n\twhile(fmt.charCodeAt(idx-1) === 44) --idx;\n\treturn write_num(type, fmt.substr(0,idx), val / Math.pow(10,3*(fmt.length-idx)));\n}\nfunction write_num_exp(fmt, val){\n\tvar o;\n\tvar idx = fmt.indexOf(\"E\") - fmt.indexOf(\".\") - 1;\n\tif(fmt.match(/^#+0.0E\\+0$/)) {\n\t\tif(val == 0) return \"0.0E+0\";\n\t\telse if(val < 0) return \"-\" + write_num_exp(fmt, -val);\n\t\tvar period = fmt.indexOf(\".\"); if(period === -1) period=fmt.indexOf('E');\n\t\tvar ee = Math.floor(Math.log(val)*Math.LOG10E)%period;\n\t\tif(ee < 0) ee += period;\n\t\to = (val/Math.pow(10,ee)).toPrecision(idx+1+(period+ee)%period);\n\t\tif(o.indexOf(\"e\") === -1) {\n\t\t\tvar fakee = Math.floor(Math.log(val)*Math.LOG10E);\n\t\t\tif(o.indexOf(\".\") === -1) o = o.charAt(0) + \".\" + o.substr(1) + \"E+\" + (fakee - o.length+ee);\n\t\t\telse o += \"E+\" + (fakee - ee);\n\t\t\twhile(o.substr(0,2) === \"0.\") {\n\t\t\t\to = o.charAt(0) + o.substr(2,period) + \".\" + o.substr(2+period);\n\t\t\t\to = o.replace(/^0+([1-9])/,\"$1\").replace(/^0+\\./,\"0.\");\n\t\t\t}\n\t\t\to = o.replace(/\\+-/,\"-\");\n\t\t}\n\t\to = o.replace(/^([+-]?)(\\d*)\\.(\\d*)[Ee]/,function($$,$1,$2,$3) { return $1 + $2 + $3.substr(0,(period+ee)%period) + \".\" + $3.substr(ee) + \"E\"; });\n\t} else o = val.toExponential(idx);\n\tif(fmt.match(/E\\+00$/) && o.match(/e[+-]\\d$/)) o = o.substr(0,o.length-1) + \"0\" + o.charAt(o.length-1);\n\tif(fmt.match(/E\\-/) && o.match(/e\\+/)) o = o.replace(/e\\+/,\"e\");\n\treturn o.replace(\"e\",\"E\");\n}\nvar frac1 = /# (\\?+)( ?)\\/( ?)(\\d+)/;\nfunction write_num_f1(r, aval, sign) {\n\tvar den = parseInt(r[4],10), rr = Math.round(aval * den), base = Math.floor(rr/den);\n\tvar myn = (rr - base*den), myd = den;\n\treturn sign + (base === 0 ? \"\" : \"\"+base) + \" \" + (myn === 0 ? fill(\" \", r[1].length + 1 + r[4].length) : pad_(myn,r[1].length) + r[2] + \"/\" + r[3] + pad0(myd,r[4].length));\n}\nfunction write_num_f2(r, aval, sign) {\n\treturn sign + (aval === 0 ? \"\" : \"\"+aval) + fill(\" \", r[1].length + 2 + r[4].length);\n}\nvar dec1 = /^#*0*\\.([0#]+)/;\nvar closeparen = /\\).*[0#]/;\nvar phone = /\\(###\\) ###\\\\?-####/;\nfunction hashq(str) {\n\tvar o = \"\", cc;\n\tfor(var i = 0; i != str.length; ++i) switch((cc=str.charCodeAt(i))) {\n\t\tcase 35: break;\n\t\tcase 63: o+= \" \"; break;\n\t\tcase 48: o+= \"0\"; break;\n\t\tdefault: o+= String.fromCharCode(cc);\n\t}\n\treturn o;\n}\nfunction rnd(val, d) { var dd = Math.pow(10,d); return \"\"+(Math.round(val * dd)/dd); }\nfunction dec(val, d) {\n\tvar _frac = val - Math.floor(val), dd = Math.pow(10,d);\n\tif (d < ('' + Math.round(_frac * dd)).length) return 0;\n\treturn Math.round(_frac * dd);\n}\nfunction carry(val, d) {\n\tif (d < ('' + Math.round((val-Math.floor(val))*Math.pow(10,d))).length) {\n\t\treturn 1;\n\t}\n\treturn 0;\n}\nfunction flr(val) {\n\tif(val < 2147483647 && val > -2147483648) return \"\"+(val >= 0 ? (val|0) : (val-1|0));\n\treturn \"\"+Math.floor(val);\n}\nfunction write_num_flt(type, fmt, val) {\n\tif(type.charCodeAt(0) === 40 && !fmt.match(closeparen)) {\n\t\tvar ffmt = fmt.replace(/\\( */,\"\").replace(/ \\)/,\"\").replace(/\\)/,\"\");\n\t\tif(val >= 0) return write_num_flt('n', ffmt, val);\n\t\treturn '(' + write_num_flt('n', ffmt, -val) + ')';\n\t}\n\tif(fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm(type, fmt, val);\n\tif(fmt.indexOf('%') !== -1) return write_num_pct(type, fmt, val);\n\tif(fmt.indexOf('E') !== -1) return write_num_exp(fmt, val);\n\tif(fmt.charCodeAt(0) === 36) return \"$\"+write_num_flt(type,fmt.substr(fmt.charAt(1)==' '?2:1),val);\n\tvar o;\n\tvar r, ri, ff, aval = Math.abs(val), sign = val < 0 ? \"-\" : \"\";\n\tif(fmt.match(/^00+$/)) return sign + pad0r(aval,fmt.length);\n\tif(fmt.match(/^[#?]+$/)) {\n\t\to = pad0r(val,0); if(o === \"0\") o = \"\";\n\t\treturn o.length > fmt.length ? o : hashq(fmt.substr(0,fmt.length-o.length)) + o;\n\t}\n\tif((r = fmt.match(frac1))) return write_num_f1(r, aval, sign);\n\tif(fmt.match(/^#+0+$/)) return sign + pad0r(aval,fmt.length - fmt.indexOf(\"0\"));\n\tif((r = fmt.match(dec1))) {\n\t\to = rnd(val, r[1].length).replace(/^([^\\.]+)$/,\"$1.\"+hashq(r[1])).replace(/\\.$/,\".\"+hashq(r[1])).replace(/\\.(\\d*)$/,function($$, $1) { return \".\" + $1 + fill(\"0\", hashq(r[1]).length-$1.length); });\n\t\treturn fmt.indexOf(\"0.\") !== -1 ? o : o.replace(/^0\\./,\".\");\n\t}\n\tfmt = fmt.replace(/^#+([0.])/, \"$1\");\n\tif((r = fmt.match(/^(0*)\\.(#*)$/))) {\n\t\treturn sign + rnd(aval, r[2].length).replace(/\\.(\\d*[1-9])0*$/,\".$1\").replace(/^(-?\\d*)$/,\"$1.\").replace(/^0\\./,r[1].length?\"0.\":\".\");\n\t}\n\tif((r = fmt.match(/^#{1,3},##0(\\.?)$/))) return sign + commaify(pad0r(aval,0));\n\tif((r = fmt.match(/^#,##0\\.([#0]*0)$/))) {\n\t\treturn val < 0 ? \"-\" + write_num_flt(type, fmt, -val) : commaify(\"\"+(Math.floor(val) + carry(val, r[1].length))) + \".\" + pad0(dec(val, r[1].length),r[1].length);\n\t}\n\tif((r = fmt.match(/^#,#*,#0/))) return write_num_flt(type,fmt.replace(/^#,#*,/,\"\"),val);\n\tif((r = fmt.match(/^([0#]+)(\\\\?-([0#]+))+$/))) {\n\t\to = _strrev(write_num_flt(type, fmt.replace(/[\\\\-]/g,\"\"), val));\n\t\tri = 0;\n\t\treturn _strrev(_strrev(fmt.replace(/\\\\/g,\"\")).replace(/[0#]/g,function(x){return ri= 0) return write_num_int('n', ffmt, val);\n\t\treturn '(' + write_num_int('n', ffmt, -val) + ')';\n\t}\n\tif(fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm2(type, fmt, val);\n\tif(fmt.indexOf('%') !== -1) return write_num_pct2(type, fmt, val);\n\tif(fmt.indexOf('E') !== -1) return write_num_exp2(fmt, val);\n\tif(fmt.charCodeAt(0) === 36) return \"$\"+write_num_int(type,fmt.substr(fmt.charAt(1)==' '?2:1),val);\n\tvar o;\n\tvar r, ri, ff, aval = Math.abs(val), sign = val < 0 ? \"-\" : \"\";\n\tif(fmt.match(/^00+$/)) return sign + pad0(aval,fmt.length);\n\tif(fmt.match(/^[#?]+$/)) {\n\t\to = (\"\"+val); if(val === 0) o = \"\";\n\t\treturn o.length > fmt.length ? o : hashq(fmt.substr(0,fmt.length-o.length)) + o;\n\t}\n\tif((r = fmt.match(frac1))) return write_num_f2(r, aval, sign);\n\tif(fmt.match(/^#+0+$/)) return sign + pad0(aval,fmt.length - fmt.indexOf(\"0\"));\n\tif((r = fmt.match(dec1))) {\no = (\"\"+val).replace(/^([^\\.]+)$/,\"$1.\"+hashq(r[1])).replace(/\\.$/,\".\"+hashq(r[1]));\n\t\to = o.replace(/\\.(\\d*)$/,function($$, $1) {\nreturn \".\" + $1 + fill(\"0\", hashq(r[1]).length-$1.length); });\n\t\treturn fmt.indexOf(\"0.\") !== -1 ? o : o.replace(/^0\\./,\".\");\n\t}\n\tfmt = fmt.replace(/^#+([0.])/, \"$1\");\n\tif((r = fmt.match(/^(0*)\\.(#*)$/))) {\n\t\treturn sign + (\"\"+aval).replace(/\\.(\\d*[1-9])0*$/,\".$1\").replace(/^(-?\\d*)$/,\"$1.\").replace(/^0\\./,r[1].length?\"0.\":\".\");\n\t}\n\tif((r = fmt.match(/^#{1,3},##0(\\.?)$/))) return sign + commaify((\"\"+aval));\n\tif((r = fmt.match(/^#,##0\\.([#0]*0)$/))) {\n\t\treturn val < 0 ? \"-\" + write_num_int(type, fmt, -val) : commaify((\"\"+val)) + \".\" + fill('0',r[1].length);\n\t}\n\tif((r = fmt.match(/^#,#*,#0/))) return write_num_int(type,fmt.replace(/^#,#*,/,\"\"),val);\n\tif((r = fmt.match(/^([0#]+)(\\\\?-([0#]+))+$/))) {\n\t\to = _strrev(write_num_int(type, fmt.replace(/[\\\\-]/g,\"\"), val));\n\t\tri = 0;\n\t\treturn _strrev(_strrev(fmt.replace(/\\\\/g,\"\")).replace(/[0#]/g,function(x){return ri -1 || (c=='\\\\' && fmt.charAt(i+1) == \"-\" && \"0#\".indexOf(fmt.charAt(i+2))>-1))){/* empty */}\n\t\t\t\tbreak;\n\t\t\tcase '?': while(fmt.charAt(++i) === c){/* empty */} break;\n\t\t\tcase '*': ++i; if(fmt.charAt(i) == ' ' || fmt.charAt(i) == '*') ++i; break;\n\t\t\tcase '(': case ')': ++i; break;\n\t\t\tcase '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':\n\t\t\t\twhile(i < fmt.length && \"0123456789\".indexOf(fmt.charAt(++i)) > -1){/* empty */} break;\n\t\t\tcase ' ': ++i; break;\n\t\t\tdefault: ++i; break;\n\t\t}\n\t}\n\treturn false;\n}\nSSF.is_date = fmt_is_date;\nfunction eval_fmt(fmt, v, opts, flen) {\n\tvar out = [], o = \"\", i = 0, c = \"\", lst='t', dt, j, cc;\n\tvar hr='H';\n\t/* Tokenize */\n\twhile(i < fmt.length) {\n\t\tswitch((c = fmt.charAt(i))) {\n\t\t\tcase 'G': /* General */\n\t\t\t\tif(!isgeneral(fmt, i)) throw new Error('unrecognized character ' + c + ' in ' +fmt);\n\t\t\t\tout[out.length] = {t:'G', v:'General'}; i+=7; break;\n\t\t\tcase '\"': /* Literal text */\n\t\t\t\tfor(o=\"\";(cc=fmt.charCodeAt(++i)) !== 34 && i < fmt.length;) o += String.fromCharCode(cc);\n\t\t\t\tout[out.length] = {t:'t', v:o}; ++i; break;\n\t\t\tcase '\\\\': var w = fmt.charAt(++i), t = (w === \"(\" || w === \")\") ? w : 't';\n\t\t\t\tout[out.length] = {t:t, v:w}; ++i; break;\n\t\t\tcase '_': out[out.length] = {t:'t', v:\" \"}; i+=2; break;\n\t\t\tcase '@': /* Text Placeholder */\n\t\t\t\tout[out.length] = {t:'T', v:v}; ++i; break;\n\t\t\tcase 'B': case 'b':\n\t\t\t\tif(fmt.charAt(i+1) === \"1\" || fmt.charAt(i+1) === \"2\") {\n\t\t\t\t\tif(dt==null) { dt=parse_date_code(v, opts, fmt.charAt(i+1) === \"2\"); if(dt==null) return \"\"; }\n\t\t\t\t\tout[out.length] = {t:'X', v:fmt.substr(i,2)}; lst = c; i+=2; break;\n\t\t\t\t}\n\t\t\t\t/* falls through */\n\t\t\tcase 'M': case 'D': case 'Y': case 'H': case 'S': case 'E':\n\t\t\t\tc = c.toLowerCase();\n\t\t\t\t/* falls through */\n\t\t\tcase 'm': case 'd': case 'y': case 'h': case 's': case 'e': case 'g':\n\t\t\t\tif(v < 0) return \"\";\n\t\t\t\tif(dt==null) { dt=parse_date_code(v, opts); if(dt==null) return \"\"; }\n\t\t\t\to = c; while(++i < fmt.length && fmt.charAt(i).toLowerCase() === c) o+=c;\n\t\t\t\tif(c === 'm' && lst.toLowerCase() === 'h') c = 'M';\n\t\t\t\tif(c === 'h') c = hr;\n\t\t\t\tout[out.length] = {t:c, v:o}; lst = c; break;\n\t\t\tcase 'A': case 'a': case '上':\n\t\t\t\tvar q={t:c, v:c};\n\t\t\t\tif(dt==null) dt=parse_date_code(v, opts);\n\t\t\t\tif(fmt.substr(i, 3).toUpperCase() === \"A/P\") { if(dt!=null) q.v = dt.H >= 12 ? \"P\" : \"A\"; q.t = 'T'; hr='h';i+=3;}\n\t\t\t\telse if(fmt.substr(i,5).toUpperCase() === \"AM/PM\") { if(dt!=null) q.v = dt.H >= 12 ? \"PM\" : \"AM\"; q.t = 'T'; i+=5; hr='h'; }\n\t\t\t\telse if(fmt.substr(i,5).toUpperCase() === \"上午/下午\") { if(dt!=null) q.v = dt.H >= 12 ? \"下午\" : \"上午\"; q.t = 'T'; i+=5; hr='h'; }\n\t\t\t\telse { q.t = \"t\"; ++i; }\n\t\t\t\tif(dt==null && q.t === 'T') return \"\";\n\t\t\t\tout[out.length] = q; lst = c; break;\n\t\t\tcase '[':\n\t\t\t\to = c;\n\t\t\t\twhile(fmt.charAt(i++) !== ']' && i < fmt.length) o += fmt.charAt(i);\n\t\t\t\tif(o.slice(-1) !== ']') throw 'unterminated \"[\" block: |' + o + '|';\n\t\t\t\tif(o.match(abstime)) {\n\t\t\t\t\tif(dt==null) { dt=parse_date_code(v, opts); if(dt==null) return \"\"; }\n\t\t\t\t\tout[out.length] = {t:'Z', v:o.toLowerCase()};\n\t\t\t\t\tlst = o.charAt(1);\n\t\t\t\t} else if(o.indexOf(\"$\") > -1) {\n\t\t\t\t\to = (o.match(/\\$([^-\\[\\]]*)/)||[])[1]||\"$\";\n\t\t\t\t\tif(!fmt_is_date(fmt)) out[out.length] = {t:'t',v:o};\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t/* Numbers */\n\t\t\tcase '.':\n\t\t\t\tif(dt != null) {\n\t\t\t\t\to = c; while(++i < fmt.length && (c=fmt.charAt(i)) === \"0\") o += c;\n\t\t\t\t\tout[out.length] = {t:'s', v:o}; break;\n\t\t\t\t}\n\t\t\t\t/* falls through */\n\t\t\tcase '0': case '#':\n\t\t\t\to = c; while(++i < fmt.length && \"0#?.,E+-%\".indexOf(c=fmt.charAt(i)) > -1) o += c;\n\t\t\t\tout[out.length] = {t:'n', v:o}; break;\n\t\t\tcase '?':\n\t\t\t\to = c; while(fmt.charAt(++i) === c) o+=c;\n\t\t\t\tout[out.length] = {t:c, v:o}; lst = c; break;\n\t\t\tcase '*': ++i; if(fmt.charAt(i) == ' ' || fmt.charAt(i) == '*') ++i; break; // **\n\t\t\tcase '(': case ')': out[out.length] = {t:(flen===1?'t':c), v:c}; ++i; break;\n\t\t\tcase '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9':\n\t\t\t\to = c; while(i < fmt.length && \"0123456789\".indexOf(fmt.charAt(++i)) > -1) o+=fmt.charAt(i);\n\t\t\t\tout[out.length] = {t:'D', v:o}; break;\n\t\t\tcase ' ': out[out.length] = {t:c, v:c}; ++i; break;\n\t\t\tcase '$': out[out.length] = {t:'t', v:'$'}; ++i; break;\n\t\t\tdefault:\n\t\t\t\tif(\",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP\".indexOf(c) === -1) throw new Error('unrecognized character ' + c + ' in ' + fmt);\n\t\t\t\tout[out.length] = {t:'t', v:c}; ++i; break;\n\t\t}\n\t}\n\n\t/* Scan for date/time parts */\n\tvar bt = 0, ss0 = 0, ssm;\n\tfor(i=out.length-1, lst='t'; i >= 0; --i) {\n\t\tswitch(out[i].t) {\n\t\t\tcase 'h': case 'H': out[i].t = hr; lst='h'; if(bt < 1) bt = 1; break;\n\t\t\tcase 's':\n\t\t\t\tif((ssm=out[i].v.match(/\\.0+$/))) ss0=Math.max(ss0,ssm[0].length-1);\n\t\t\t\tif(bt < 3) bt = 3;\n\t\t\t/* falls through */\n\t\t\tcase 'd': case 'y': case 'M': case 'e': lst=out[i].t; break;\n\t\t\tcase 'm': if(lst === 's') { out[i].t = 'M'; if(bt < 2) bt = 2; } break;\n\t\t\tcase 'X': /*if(out[i].v === \"B2\");*/\n\t\t\t\tbreak;\n\t\t\tcase 'Z':\n\t\t\t\tif(bt < 1 && out[i].v.match(/[Hh]/)) bt = 1;\n\t\t\t\tif(bt < 2 && out[i].v.match(/[Mm]/)) bt = 2;\n\t\t\t\tif(bt < 3 && out[i].v.match(/[Ss]/)) bt = 3;\n\t\t}\n\t}\n\t/* time rounding depends on presence of minute / second / usec fields */\n\tswitch(bt) {\n\t\tcase 0: break;\n\t\tcase 1:\nif(dt.u >= 0.5) { dt.u = 0; ++dt.S; }\n\t\t\tif(dt.S >= 60) { dt.S = 0; ++dt.M; }\n\t\t\tif(dt.M >= 60) { dt.M = 0; ++dt.H; }\n\t\t\tbreak;\n\t\tcase 2:\nif(dt.u >= 0.5) { dt.u = 0; ++dt.S; }\n\t\t\tif(dt.S >= 60) { dt.S = 0; ++dt.M; }\n\t\t\tbreak;\n\t}\n\n\t/* replace fields */\n\tvar nstr = \"\", jj;\n\tfor(i=0; i < out.length; ++i) {\n\t\tswitch(out[i].t) {\n\t\t\tcase 't': case 'T': case ' ': case 'D': break;\n\t\t\tcase 'X': out[i].v = \"\"; out[i].t = \";\"; break;\n\t\t\tcase 'd': case 'm': case 'y': case 'h': case 'H': case 'M': case 's': case 'e': case 'b': case 'Z':\nout[i].v = write_date(out[i].t.charCodeAt(0), out[i].v, dt, ss0);\n\t\t\t\tout[i].t = 't'; break;\n\t\t\tcase 'n': case '?':\n\t\t\t\tjj = i+1;\n\t\t\t\twhile(out[jj] != null && (\n\t\t\t\t\t(c=out[jj].t) === \"?\" || c === \"D\" ||\n\t\t\t\t\t((c === \" \" || c === \"t\") && out[jj+1] != null && (out[jj+1].t === '?' || out[jj+1].t === \"t\" && out[jj+1].v === '/')) ||\n\t\t\t\t\t(out[i].t === '(' && (c === ' ' || c === 'n' || c === ')')) ||\n\t\t\t\t\t(c === 't' && (out[jj].v === '/' || out[jj].v === ' ' && out[jj+1] != null && out[jj+1].t == '?'))\n\t\t\t\t)) {\n\t\t\t\t\tout[i].v += out[jj].v;\n\t\t\t\t\tout[jj] = {v:\"\", t:\";\"}; ++jj;\n\t\t\t\t}\n\t\t\t\tnstr += out[i].v;\n\t\t\t\ti = jj-1; break;\n\t\t\tcase 'G': out[i].t = 't'; out[i].v = general_fmt(v,opts); break;\n\t\t}\n\t}\n\tvar vv = \"\", myv, ostr;\n\tif(nstr.length > 0) {\n\t\tif(nstr.charCodeAt(0) == 40) /* '(' */ {\n\t\t\tmyv = (v<0&&nstr.charCodeAt(0) === 45 ? -v : v);\n\t\t\tostr = write_num('n', nstr, myv);\n\t\t} else {\n\t\t\tmyv = (v<0 && flen > 1 ? -v : v);\n\t\t\tostr = write_num('n', nstr, myv);\n\t\t\tif(myv < 0 && out[0] && out[0].t == 't') {\n\t\t\t\tostr = ostr.substr(1);\n\t\t\t\tout[0].v = \"-\" + out[0].v;\n\t\t\t}\n\t\t}\n\t\tjj=ostr.length-1;\n\t\tvar decpt = out.length;\n\t\tfor(i=0; i < out.length; ++i) if(out[i] != null && out[i].t != 't' && out[i].v.indexOf(\".\") > -1) { decpt = i; break; }\n\t\tvar lasti=out.length;\n\t\tif(decpt === out.length && ostr.indexOf(\"E\") === -1) {\n\t\t\tfor(i=out.length-1; i>= 0;--i) {\n\t\t\t\tif(out[i] == null || 'n?'.indexOf(out[i].t) === -1) continue;\n\t\t\t\tif(jj>=out[i].v.length-1) { jj -= out[i].v.length; out[i].v = ostr.substr(jj+1, out[i].v.length); }\n\t\t\t\telse if(jj < 0) out[i].v = \"\";\n\t\t\t\telse { out[i].v = ostr.substr(0, jj+1); jj = -1; }\n\t\t\t\tout[i].t = 't';\n\t\t\t\tlasti = i;\n\t\t\t}\n\t\t\tif(jj>=0 && lasti= 0; --i) {\n\t\t\t\tif(out[i] == null || 'n?'.indexOf(out[i].t) === -1) continue;\n\t\t\t\tj=out[i].v.indexOf(\".\")>-1&&i===decpt?out[i].v.indexOf(\".\")-1:out[i].v.length-1;\n\t\t\t\tvv = out[i].v.substr(j+1);\n\t\t\t\tfor(; j>=0; --j) {\n\t\t\t\t\tif(jj>=0 && (out[i].v.charAt(j) === \"0\" || out[i].v.charAt(j) === \"#\")) vv = ostr.charAt(jj--) + vv;\n\t\t\t\t}\n\t\t\t\tout[i].v = vv;\n\t\t\t\tout[i].t = 't';\n\t\t\t\tlasti = i;\n\t\t\t}\n\t\t\tif(jj>=0 && lasti-1&&i===decpt?out[i].v.indexOf(\".\")+1:0;\n\t\t\t\tvv = out[i].v.substr(0,j);\n\t\t\t\tfor(; j-1) {\n\t\tmyv = (flen >1 && v < 0 && i>0 && out[i-1].v === \"-\" ? -v:v);\n\t\tout[i].v = write_num(out[i].t, out[i].v, myv);\n\t\tout[i].t = 't';\n\t}\n\tvar retval = \"\";\n\tfor(i=0; i !== out.length; ++i) if(out[i] != null) retval += out[i].v;\n\treturn retval;\n}\nSSF._eval = eval_fmt;\nvar cfregex = /\\[[=<>]/;\nvar cfregex2 = /\\[(=|>[=]?|<[>=]?)(-?\\d+(?:\\.\\d*)?)\\]/;\nfunction chkcond(v, rr) {\n\tif(rr == null) return false;\n\tvar thresh = parseFloat(rr[2]);\n\tswitch(rr[1]) {\n\t\tcase \"=\": if(v == thresh) return true; break;\n\t\tcase \">\": if(v > thresh) return true; break;\n\t\tcase \"<\": if(v < thresh) return true; break;\n\t\tcase \"<>\": if(v != thresh) return true; break;\n\t\tcase \">=\": if(v >= thresh) return true; break;\n\t\tcase \"<=\": if(v <= thresh) return true; break;\n\t}\n\treturn false;\n}\nfunction choose_fmt(f, v) {\n\tvar fmt = split_fmt(f);\n\tvar l = fmt.length, lat = fmt[l-1].indexOf(\"@\");\n\tif(l<4 && lat>-1) --l;\n\tif(fmt.length > 4) throw new Error(\"cannot find right format for |\" + fmt.join(\"|\") + \"|\");\n\tif(typeof v !== \"number\") return [4, fmt.length === 4 || lat>-1?fmt[fmt.length-1]:\"@\"];\n\tswitch(fmt.length) {\n\t\tcase 1: fmt = lat>-1 ? [\"General\", \"General\", \"General\", fmt[0]] : [fmt[0], fmt[0], fmt[0], \"@\"]; break;\n\t\tcase 2: fmt = lat>-1 ? [fmt[0], fmt[0], fmt[0], fmt[1]] : [fmt[0], fmt[1], fmt[0], \"@\"]; break;\n\t\tcase 3: fmt = lat>-1 ? [fmt[0], fmt[1], fmt[0], fmt[2]] : [fmt[0], fmt[1], fmt[2], \"@\"]; break;\n\t\tcase 4: break;\n\t}\n\tvar ff = v > 0 ? fmt[0] : v < 0 ? fmt[1] : fmt[2];\n\tif(fmt[0].indexOf(\"[\") === -1 && fmt[1].indexOf(\"[\") === -1) return [l, ff];\n\tif(fmt[0].match(cfregex) != null || fmt[1].match(cfregex) != null) {\n\t\tvar m1 = fmt[0].match(cfregex2);\n\t\tvar m2 = fmt[1].match(cfregex2);\n\t\treturn chkcond(v, m1) ? [l, fmt[0]] : chkcond(v, m2) ? [l, fmt[1]] : [l, fmt[m1 != null && m2 != null ? 2 : 1]];\n\t}\n\treturn [l, ff];\n}\nfunction format(fmt,v,o) {\n\tif(o == null) o = {};\n\tvar sfmt = \"\";\n\tswitch(typeof fmt) {\n\t\tcase \"string\":\n\t\t\tif(fmt == \"m/d/yy\" && o.dateNF) sfmt = o.dateNF;\n\t\t\telse sfmt = fmt;\n\t\t\tbreak;\n\t\tcase \"number\":\n\t\t\tif(fmt == 14 && o.dateNF) sfmt = o.dateNF;\n\t\t\telse sfmt = (o.table != null ? (o.table) : table_fmt)[fmt];\n\t\t\tif(sfmt == null) sfmt = (o.table && o.table[default_map[fmt]]) || table_fmt[default_map[fmt]];\n\t\t\tif(sfmt == null) sfmt = default_str[fmt] || \"General\";\n\t\t\tbreak;\n\t}\n\tif(isgeneral(sfmt,0)) return general_fmt(v, o);\n\tif(v instanceof Date) v = datenum_local(v, o.date1904);\n\tvar f = choose_fmt(sfmt, v);\n\tif(isgeneral(f[1])) return general_fmt(v, o);\n\tif(v === true) v = \"TRUE\"; else if(v === false) v = \"FALSE\";\n\telse if(v === \"\" || v == null) return \"\";\n\treturn eval_fmt(f[1], v, o, f[0]);\n}\nfunction load_entry(fmt, idx) {\n\tif(typeof idx != 'number') {\n\t\tidx = +idx || -1;\nfor(var i = 0; i < 0x0188; ++i) {\nif(table_fmt[i] == undefined) { if(idx < 0) idx = i; continue; }\n\t\t\tif(table_fmt[i] == fmt) { idx = i; break; }\n\t\t}\nif(idx < 0) idx = 0x187;\n\t}\ntable_fmt[idx] = fmt;\n\treturn idx;\n}\nSSF.load = load_entry;\nSSF._table = table_fmt;\nSSF.get_table = function get_table() { return table_fmt; };\nSSF.load_table = function load_table(tbl) {\n\tfor(var i=0; i!=0x0188; ++i)\n\t\tif(tbl[i] !== undefined) load_entry(tbl[i], i);\n};\nSSF.init_table = init_table;\nSSF.format = format;\n};\nmake_ssf(SSF);\n/*global module */\nif(typeof module !== 'undefined' && typeof DO_NOT_EXPORT_SSF === 'undefined') module.exports = SSF;\n","\"use strict\";\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n var attributes = options.attributes || {};\n\n if (typeof attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n attributes.nonce = nonce;\n }\n }\n\n Object.keys(attributes).forEach(function (key) {\n style.setAttribute(key, attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.media ? \"@media \".concat(obj.media, \" {\").concat(obj.css, \"}\") : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n } else {\n style.removeAttribute('media');\n }\n\n if (sourceMap && btoa) {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of