123456789101112131415 |
- /*!
- *
- * Spread.Sheets Library 10.2.0
- *
- * Copyright(c) GrapeCity, Inc. All rights reserved.
- *
- * Licensed under the SpreadJS Commercial License.
- * spread.sales@grapecity.com
- * http://spread.grapecity.com/spreadjs/eula/
- *
- *
- */var GC=GC||{};
- GC.Spread=function(U){function u(d){if(l[d])return l[d].exports;var J=l[d]={exports:{},id:d,loaded:!1};return U[d].call(J.exports,J,J.exports,u),J.loaded=!0,J.exports}var l={};return u.m=U,u.c=l,u.p="",u(0)}([function(U,u,l){GC=GC||{};GC.Spread=GC.Spread||{};GC.Spread=l(1);GC.Spread.CalcEngine=l(24);GC.Spread.CalcEngine.BasicFunctions=l(31);GC.Spread.CalcEngine.AdvancedFunctions=l(35);GC.Spread.Sheets=l(41);GC.Spread.Sheets.CellTypes=l(83);GC.Spread.Sheets.Bindings=l(89);GC.Spread.Sheets.Search=l(95);GC.Spread.Sheets.Outlines=l(97);GC.Spread.Sheets.Touch=l(101);GC.Spread.Sheets.FloatingObjects=l(104);GC.Spread.Sheets.Sparklines=l(111);GC.Spread.Sheets.Comments=l(115);GC.Spread.Sheets.ConditionalFormatting=l(119);GC.Spread.Sheets.Filter=l(122);GC.Spread.Sheets.Tables=l(127);GC.Spread.Sheets.Slicers=l(132);GC.Spread.Sheets.DataValidation=l(139);GC.Spread.Sheets.Fill=l(142);GC.Spread.Sheets.FormulaTextBox=l(148);U.exports=GC.Spread},function(U,u,l){u.Common=l(2);u.Commands=l(14);u.Formatter=l(17);u.Sparklines=l(20);u.Slicers=l(22)},function(U,u,l){function d(d,l){for(var K in l)l.hasOwnProperty(K)&&(d[K]=l[K])}var J;u=l(3);l(11);J=l(4);d(u,J);J=l(12);d(u,J);u.j=l(5);u.k=l(10);u.l=l(9);u.o=l(6);u.q=l(7);u.u=l(8);u.SR={};u.SR.en=l(13);U.exports=u},function(U,u,l){u={};var d=l(4).CultureManager;u.A=function(d,l,u,K){var J,H,I;if(d&&0<=u&&u<l){for(J=[];u<l;u++)void 0!==d[u]&&J.push(u);l=J.length;for(u=0;u<l;u++)H=J[l-u-1],I=d[H],d[H]=null,d[Math.floor(H)+K]=I}};u.B=function(d,l,u,K){var J,H,I;if(d&&0<=u&&u<l){J=[];H=u+K;for(I=u;I<l;I++)void 0!==d[I]&&(u<=I&&I<H?d[I]=null:I>=H&&J.push(I));l=J.length;for(I=0;I<l;I++)u=J[I],H=d[u],d[u]=null,d[Math.floor(u)-K]=H}};u.C=function(l){return function(){var u,J=d.culture();return l&&J?(u=J.substr(0,2).toLowerCase(),l.hasOwnProperty(u)?l[u]:l.en):{}}};u.D=function(d,l){return d.hasOwnProperty(l)};u.F=function(d,l){return d instanceof l};U.exports=u},function(U,u,l){function d(q,d,A){var r,n,w;n=0;for(w=d.length;n<w;n++)r=d[n],this[q][r]=A[n]}u=l(5);var J=u.G,R=u.H,Q=function(){function q(){}return q.I=function(q){return q>=this.J()&&q<=this.K()},q.L=function(){var q,A,r=K.eras;if(void 0!==r){q=[];for(A=0;A<r.length;A++)q[A]=new Date(r[A].startDate.replace(/-/g,"/"));return q}return this.O},q.P=function(q){var A,r,n;switch(q){case "g":q="symbol";A=this.R;break;case "gg":q="abbreviation";A=this.S;break;case "ggg":q="name";A=this.U;break;default:return[]}if(r=K.eras,n=[],void 0!==r){for(A=0;A<r.length;A++)n[A]=r[A][q];return n}return A},q.K=function(){var q,A=K.eras;return void 0!==A&&0<A.length?(q=new Date(A[A.length-1].startDate.replace(/-/g,"/")),q.setFullYear(q.getFullYear()+99),q):this.W},q.J=function(){var q=K.eras;return void 0!==q&&0<q.length?new Date(q[0].startDate.replace(/-/g,"/")):this.Z},q.$=function(){var q=K.eras;return void 0!==q?q.length:this._},q.aa=function(){var q,A,r,n,w=K.eras;if(void 0!==w){q=[];for(A=1;A<w.length;A++)r=new Date(w[A-1].startDate.replace(/-/g,"/")),n=new Date(w[A].startDate.replace(/-/g,"/")),q[A-1]=n.getFullYear()-r.getFullYear()+1;return q[A-1]=99,q}return this.ba},q.ca=function(q){var A,r,n={};if(n.da=-1,n.ea=-1,!this.I(q))return n;for(A=0;A<this.$();A++)if(r=A+1!==this.$()?this.L()[A+1]:this.fa(this.K(),1),q<r){n.da=A;n.ea=q.getFullYear()-this.L()[A].getFullYear()+1;break}return n},q.fa=function(q,A){var r=new Date(q.getFullYear(),q.getMonth(),q.getDate(),q.getHours(),q.getMinutes(),q.getSeconds());return r.setMilliseconds(r.getMilliseconds()+A),new Date(r.valueOf())},q.ga=function(d,A){return q.L()[d].getFullYear()+A-1},q.ha=function(d,A){var r,n;A=A.toUpperCase();r=q.P(d);for(n=0;n<r.length;n++)if(r[n]===A)return n;return-1},q.ia=function(d,A){var r,n,w=q.ca(A),z=w.da;if(0<=z&&(r=q.P(d),0<r.length))return r[z];if(n=w.ea,0<=n){if(r=""+n,"ee"===d)return 1===r.length&&(r="0"+r),r;if("e"===d)return r}return""},q.O=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8)],q._=4,q.ba=[45,15,64,99],q.W=new Date(2087,11,31,23,59,59),q.Z=new Date(1868,8,8),q.ja=["1,m","2,t","3,s","4,h"],q.ka=[0,1,2,3,0,1,2,3],q.U=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210"],q.R=["M","T","S","H"],q.S=["\u660e","\u5927","\u662d","\u5e73"],q.la=99,q}(),K=function(){function q(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\u00a4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:"0123456789".split(""),numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"\u2030",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{}};this.DateTimeFormat={abbreviatedDayNames:"Sun Mon Tue Wed Thu Fri Sat".split(" "),abbreviatedMonthGenitiveNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ".split(" "),abbreviatedMonthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ".split(" "),amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:"January February March April May June July August September October November December ".split(" "),monthNames:"January February March April May June July August September October November December ".split(" "),nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:"Su Mo Tu We Th Fr Sa".split(" "),shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM"};this.name=function(){return""};this.id=-1}function d(n){return n.split("\u00a0").join(" ").toUpperCase()}function A(n){var w,z,r=[];w=0;for(z=n.length;w<z;w++)r[w]=d(n[w]);return r}function r(n,w,z){n=d(n);w=w.indexOf(n);return-1===w&&(w=z.indexOf(n)),w}q.prototype={constructor:q,ma:function(){var n,w,z;return this.na||(n=this.DateTimeFormat,w=n.shortDatePattern.replace(/m/g,"M"),z=[w,w+" h:mm",w+" h:mm:ss",w+" h:mm:ss.0"],this.na=z.concat(G)),this.na},oa:function(n){return this.pa||(this.pa=A(this.DateTimeFormat.monthNames),this.qa=A(this.DateTimeFormat.monthGenitiveNames)),r(n,this.pa,this.qa)},ra:function(n){return this.sa||(this.sa=A(this.DateTimeFormat.abbreviatedMonthNames),this.ta=A(this.DateTimeFormat.abbreviatedMonthGenitiveNames)),r(n,this.sa,this.ta)},ua:function(n){return this.va||(this.va=A(this.DateTimeFormat.dayNames)),this.va.indexOf(d(n))},wa:function(n){return this.xa||(this.xa=A(this.DateTimeFormat.abbreviatedDayNames)),this.xa.indexOf(d(n))}};return q}();u=function(q){function D(){q.apply(this,arguments);d.call(this,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]);d.call(this,"DateTimeFormat","fullDateTimePattern longDatePattern longTimePattern shortDatePattern shortTimePattern yearMonthPattern calendarIsReadOnly".split(" "),["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1]);this.name=function(){return"en-US"};this.id=1033}J(D,q);return D}(K);var O=function(q){function D(){var A,r;q.apply(this,arguments);d.call(this,"NumberFormat","currencyDecimalDigits currencyNegativePattern currencySymbol isReadOnly nanSymbol negativeInfinitySymbol percentNegativePattern percentPositivePattern positiveInfinitySymbol dbNumber".split(" "),[0,1,"\u00a5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",{1:{letters:"\u5146 \u5343 \u767e \u5341 \u4ebf \u5343 \u767e \u5341 \u4e07 \u5343 \u767e \u5341 ".split(" "),numbers:"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d".split("")},2:{letters:"\u5146 \u9621 \u767e \u62fe \u5104 \u9621 \u767e \u62fe \u842c \u9621 \u767e \u62fe ".split(" "),numbers:"\u3007\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d".split("")},3:{letters:null,numbers:"\uff10\uff11\uff12\uff13\uff14\uff15\uff16\uff17\uff18\uff19".split("")}}]);A="1 2 3 4 5 6 7 8 9 10 11 12 ".split(" ");r="1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708 ".split(" ");d.call(this,"DateTimeFormat","abbreviatedDayNames abbreviatedMonthGenitiveNames abbreviatedMonthNames amDesignator calendarIsReadOnly dayNames fullDateTimePattern longDatePattern longTimePattern monthDayPattern monthGenitiveNames monthNames nativeCalendarName pmDesignator shortDatePattern shortestDayNames shortTimePattern yearMonthPattern".split(" "),["\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),A,A,"\u5348\u524d",!1,"\u65e5\u66dc\u65e5 \u6708\u66dc\u65e5 \u706b\u66dc\u65e5 \u6c34\u66dc\u65e5 \u6728\u66dc\u65e5 \u91d1\u66dc\u65e5 \u571f\u66dc\u65e5".split(" "),"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",r,r,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd","\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),"H:mm","yyyy'\u5e74'M'\u6708'"]);this.DateTimeFormat.eras=Q;this.name=function(){return"ja-JP"};this.id=1041}J(D,q);return D}(K),H=function(q){function D(){var A,r;q.apply(this,arguments);d.call(this,"NumberFormat","currencyNegativePattern currencySymbol isReadOnly nanSymbol negativeInfinitySymbol percentNegativePattern percentPositivePattern positiveInfinitySymbol dbNumber".split(" "),[2,"\u00a5",!1,"\u975e\u6570\u5b57","\u8d1f\u65e0\u7a77\u5927",1,1,"\u6b63\u65e0\u7a77\u5927",{1:{letters:"\u5146 \u5343 \u767e \u5341 \u4ebf \u5343 \u767e \u5341 \u4e07 \u5343 \u767e \u5341 ".split(" "),numbers:"\u25cb\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d".split("")},2:{letters:"\u5146 \u4edf \u4f70 \u62fe \u4ebf \u4edf \u4f70 \u62fe \u4e07 \u4edf \u4f70 \u62fe ".split(" "),numbers:"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396".split("")},3:{letters:null,numbers:"\uff10\uff11\uff12\uff13\uff14\uff15\uff16\uff17\uff18\uff19".split("")}}]);A="1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708 ".split(" ");r="\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708 ".split(" ");d.call(this,"DateTimeFormat","abbreviatedDayNames abbreviatedMonthGenitiveNames abbreviatedMonthNames amDesignator calendarIsReadOnly dayNames firstDayOfWeek fullDateTimePattern longDatePattern longTimePattern monthDayPattern monthGenitiveNames monthNames nativeCalendarName pmDesignator shortDatePattern shortestDayNames shortTimePattern yearMonthPattern".split(" "),["\u5468\u65e5 \u5468\u4e00 \u5468\u4e8c \u5468\u4e09 \u5468\u56db \u5468\u4e94 \u5468\u516d".split(" "),A,A,"\u4e0a\u5348",!1,"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",r,r,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d","\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),"H:mm","yyyy'\u5e74'M'\u6708'"]);this.name=function(){return"zh-cn"};this.id=2052}J(D,q);return D}(K),I=function(q){function D(){var A,r;q.apply(this,arguments);d.call(this,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber"],[0,1,"\u20a9",!1,{1:{letters:"\u5146 \u5343 \u767e \u5341 \u5104 \u5343 \u767e \u5341 \u4e07 \u5343 \u767e \u5341 ".split(" "),numbers:"\uff10\u4e00\u4e8c\u4e09\u56db\u4e94\uf9d1\u4e03\u516b\u4e5d".split("")},2:{letters:"\u5146 \u9621 \u767e \uf973 \u5104 \u9621 \u767e \uf973 \u842c \u9621 \u767e \uf973 ".split(" "),numbers:"\uf9b2\u58f9\u8cb3\uf96b\u56db\u4f0d\uf9d1\u4e03\u516b\u4e5d".split("")},3:{letters:"\u5146 \u5343 \u767e \u5341 \u5104 \u5343 \u767e \u5341 \u4e07 \u5343 \u767e \u5341 ".split(" "),numbers:"\uff10\uff11\uff12\uff13\uff14\uff15\uff16\uff17\uff18\uff19".split("")}}]);A="1 2 3 4 5 6 7 8 9 10 11 12 ".split(" ");r="1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4 ".split(" ");d.call(this,"DateTimeFormat","abbreviatedDayNames abbreviatedMonthGenitiveNames abbreviatedMonthNames amDesignator calendarIsReadOnly dayNames firstDayOfWeek fullDateTimePattern longDatePattern longTimePattern monthDayPattern monthGenitiveNames monthNames nativeCalendarName pmDesignator shortDatePattern shortestDayNames shortTimePattern yearMonthPattern".split(" "),["\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),A,A,"\uc624\uc804",!1,"\uc77c\uc694\uc77c \uc6d4\uc694\uc77c \ud654\uc694\uc77c \uc218\uc694\uc77c \ubaa9\uc694\uc77c \uae08\uc694\uc77c \ud1a0\uc694\uc77c".split(" "),1,"yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd h:mm:ss","yyyy'\ub144' M'\uc6d4' d'\uc77c' dddd","h:mm:ss","M'\uc6d4' d'\uc77c'",r,r,"\uc11c\uae30","\uc624\ud6c4","yyyy-MM-dd","\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),"tt h:mm","yyyy'\ub144' M'\uc6d4'"]);this.name=function(){return"ko-kr"};this.id=1042}J(D,q);return D}(K),L={invariant:new K,"en-us":new u,"ja-jp":new O,"zh-cn":new H,"ko-kr":new I};u="MM/dd/yyyy MM/d/yyyy M/dd/yyyy M/d/yyyy yy/MM/dd yy/MM/d yy/M/dd yy/M/d yyyy/MM/dd yyyy/MM/d yyyy/M/dd yyyy/M/d".split(" ");var F="hh:mm:ss;hh:mm:s;hh:m:ss;hh:m:s;h:mm:ss;h:mm:s;h:m:ss;h:m:s;hh:mm:ss tt;hh:mm:s tt;hh:m:ss tt;hh:m:s tt;h:mm:ss tt;h:mm:s tt;h:m:ss tt;h:m:s tt;hh:mm;hh:m;h:mm;h:m;hh:mm tt;hh:m tt;h:mm tt;h:m tt".split(";"),O="MM-dd-yyyy MM-d-yyyy M-dd-yyyy M-d-yyyy yy-MM-dd yy-MM-d yy-M-dd yy-M-d yyyy-MM-dd yyyy-MM-d yyyy-M-dd yyyy-M-d dd-MMMM-yy dd-MMM-yy".split(" "),G=u.concat(F);R(u,function(q,d){R(F,function(q,r){q<F.length-4&&G.push(d+" "+r)})});G=G.concat(O);R(O,function(q,d){R(F,function(q,r){q<F.length-4&&G.push(d+" "+r)})});u=function(){function q(){var d="en-us";this.culture=function(q){var r;if(0===arguments.length)r=d;else{if(q&&d!==q){r=d=q.toLowerCase();var n;"function"!=typeof CustomEvent?(n=document.createEvent("CustomEvent"),n.initCustomEvent("cultureChanged",!1,!1,void 0)):n=new CustomEvent("cultureChanged",{});n.cultureInfo=r;document.dispatchEvent(n)}r=void 0}return r};this.addCultureInfo=function(q,r){var n,w=r.NumberFormat.arrayListSeparator,z=r.NumberFormat.arrayGroupSeparator;if(r.NumberFormat.numberDecimalSeparator===r.NumberFormat.listSeparator||z===w)throw n=l(3),n.C(n.SR)().Exp_Separator;L[q.toLowerCase()]=r};this.getCultureInfo=function(q){var r,n;if(0===arguments.length)return L[d];q="string"==typeof q?q.toLowerCase():q;r=null;for(n in L)if(n===q||void 0!==L[n].id&&L[n].id===q){r=L[n];break}return r};this.q4=function(q){q=this.getCultureInfo(q);return q||(q=L[d],q||(q=new K)),q};q.instance=this}return"object"==typeof q.instance?q.instance:q}();U.exports={CultureInfo:K,CultureManager:new u}},function(U,u,l){var d={H:function(l,u){var J,K,O;if(d.ya(l))for(K=0,O=l.length;K<O&&(J=u.call(l[K],K,l[K]),!1!==J);K++);else for(K in l)if(l.hasOwnProperty(K)&&(J=u.call(l[K],K,l[K]),!1===J))break;return l},za:function(d){return!d||"object"==typeof d&&0===Object.keys(d).length},Aa:function(l){return"function"===d.Ba(l)},Ca:function(l){return Array.isArray?Array.isArray(l):"array"===d.Ba(l)},Da:function(d){return!isNaN(parseFloat(d))&&isFinite(d)},Ba:function(l){var u,J,K,O,H,I;if(null===l)return"null";if(u=d.r4,!u)for(u=d.r4={},J="Boolean Number String Function Array Date RegExp Object Error".split(" "),K=0,O=J.length;K<O;K++)u["[object "+J[K]+"]"]=J[K].toLowerCase();return H=u.toString,I=typeof l,"object"===I||"function"===I?u[H.call(l)]||"object":I},Ea:function(l,u,Q){var K;if(u){if(K=[].indexOf)return K.call(u,l,Q);K=u.length;d.Fa(Q)&&(Q=0);for(Q=0>Q?Math.max(0,K+Q):Q;Q<K;Q++)if(Q in u&&u[Q]===l)return Q}return-1},Ga:function(d,l){var u=l.length,K=d.length,J=0;if("number"==typeof u)for(;J<u;J++)d[K++]=l[J];else for(;void 0!==l[J];)d[K++]=l[J++];return d.length=K,d},Ha:function(l,u,Q){var K,J,H=0,I=l.length,L=[];if(d.ya(l))for(;H<I;H++)K=u(l[H],H,Q),null!==K&&(L[L.length]=K);else for(H in l)l.hasOwnProperty(H)&&(K=u(l[H],H,Q),null!==K&&(L[L.length]=K));return J=[].concat,J.apply([],L)},Ia:function(){var l,u,Q,K,O,H,I,L,F,G;for(l=0;l<arguments.length;l++);I=arguments[0]||{};L=1;F=arguments.length;G=!1;"boolean"==typeof I&&(G=I,I=arguments[1]||{},L=2);"object"==typeof I||d.Aa(I)||(I={});for(F===L&&(I=this,--L);L<F;L++)if(!d.Fa(O=arguments[L]))for(K in O)l=I[K],Q=O[K],I!==Q&&(G&&Q&&(d.Ja(Q)||(u=d.Ca(Q)))?(u?(u=!1,H=l&&d.Ca(l)?l:[]):H=l&&d.Ja(l)?l:{},I[K]=d.Ia(G,H,Q)):void 0!==Q&&(I[K]=Q));return I},G:function(d,l){function u(){this.constructor=d}for(var K in l)l.hasOwnProperty(K)&&(d[K]=l[K]);u.prototype=l.prototype;d.prototype=new u},Ka:function(d){return null!==d&&d===d.window},Ja:function(l){var u,J;if(!l||"object"!==d.Ba(l)||l.nodeType||d.Ka(l))return!1;u={}.hasOwnProperty;try{if(l.constructor&&!u.call(l,"constructor")&&!u.call(l.constructor.prototype,"isPrototypeOf"))return!1}catch(K){return!1}for(J in l);return void 0===J||u.call(l,J)},ya:function(l){if(d.Fa(l))return!1;var u=l.length,J=d.Ba(l);return!d.Ka(l)&&(!(1!==l.nodeType||!u)||"array"===J||"function"!==J&&(0===u||"number"==typeof u&&0<u&&u-1 in l))},La:function(l,u){var J=u||[];return null!==l&&(d.ya(Object(l))?d.Ga(J,"string"==typeof l?[l]:l):[].push.call(J,l)),J},Ma:function(l,u){return d.Fa(l)?"null"===u:!!u&&(u instanceof Function&&l instanceof u||typeof l===u||!("function"!==u||!/^\s*\bfunction\b/.test(""+l))||Object.prototype.toString.call(l).slice(8,-1).toLowerCase()===u.toLowerCase()||("DateTime"===u||"TimeSpan"===u?l instanceof Date:("string"==typeof u&&-1<"undefined number boolean string".indexOf(u),!1)))},Fa:function(d){return void 0===d||null===d},Na:function(u,R){var J=l(6);return!!J.nia(u,R)&&(u=J.Oa(u,R),d.Ma(u,"number")||d.Ma(u,"DateTime")||d.Ma(u,"TimeSpan")||u&&!d.Ma(u,"boolean")&&!isNaN(u)&&!isNaN(parseFloat(u))&&!(2<=u.length&&"0"===u[0]&&"x"===u[1]))},Pa:function(u){var J=l(9);return d.Fa(u)||""===u?0:d.Ma(u,"number")?u:d.Ma(u,"string")&&!isNaN(u)?l(6).Qa(u):d.Ma(u,"boolean")?u?1:0:d.Ma(u,"DateTime")?J.Ra(u):d.Ma(u,"TimeSpan")?Math.floor(J.Ra(u)):parseFloat(u)},C4:function(l){if(!l||"number"==typeof l||"string"==typeof l||"boolean"==typeof l||d.Fa(l))return l;if(l.clone)return l.clone();if(l instanceof Date)return new Date(l);var u,Q,K;u=l instanceof Object?new l.constructor:new l.constructor(l.valueOf());for(Q in l)l.hasOwnProperty(Q)&&(K=l[Q],l.hasOwnProperty(Q)&&u[Q]!==K&&("object"==typeof K?u[Q]=d.C4(K):u[Q]=K));return u.toString=l.toString,u.valueOf=l.valueOf,u}};U.exports=d},function(U,u,l){var d,J=l(3),R=l(5).Fa,Q=l(7),K=l(8),O=K.Sa,H=K.Ta,I=l(4).CultureManager,L=parseInt,F=parseFloat,G=Math.floor,q=Math.abs,D=Math.pow;d=function(){return J.C(J.SR)()};u=function(){function A(g,f,k,a,p,h){k="n";var m=q(g);a=a.charAt(0);p=-1===p?6:p;var c=h.numberGroupSizes,e=h.numberGroupSeparator,b=h.numberDecimalSeparator;h=h.negativeSign;for(var v,x,t=0,y=1<=m||0===m;1E3>t&&(v=D(10,t),!(y&&10>m/v||!y&&1<=m*v));)t++;return f=(m=y?q(m)/D(10,t):q(m)*D(10,t),x=z(m,p,c,e,b,h),x+(a+(y?"+":"-")+O(""+t,3))),0>g&&(f="-"+f),[f,k]}function r(g,f,k,a,p,h){var m,c,e;return k=0>g?E[h.numberNegativePattern]:"n",-1===p&&(p=2),m=F(f),c=G(m),e=m-c,f=z(e,p,h.numberGroupSizes,h.numberGroupSeparator,h.numberDecimalSeparator,h.negativeSign),f=""+(c+(1<=+f?1:0))+f.substring(1),[f,k]}function n(g){var f,k={Za:g.charAt(0),$a:0,_a:0},a="";for(f=1;f<g.length;f++)if(a=g.charAt(f),"+"===a)k.$a=1;else{if("-"!==a){if("0"===a){k._a=g.length-f;break}throw Error(d().Exp_InvalidExponentFormat);}k.$a=-1}return k}function w(g,f,k){for(var a=f[0],p=1,h=g.length-1,m="",c=0,e=!1;0<=h;){if(1>a||9<a)throw Error(d().Exp_InvalidNumberGroupSize);/\d/gi.test(g[h])?(e&&(m=k+m,e=!1),c++):c=0;m=g[h]+m;c===a&&(e=!0,c=0,p<f.length&&(a=f[p],p++));h--}return m}function z(g,f,k,a,p,h,m){var c,e,b,v,x,t=g,y=-f;x=0===+y?Math.round(t):(t=+t,y=+y,isNaN(t)||"number"!=typeof y||0!==y%1?NaN:(t=(""+t).split("e"),t=Math.round(+(t[0]+"e"+(t[1]?+t[1]-y:-y))),t=(""+t).split("e"),+(t[0]+"e"+(t[1]?+t[1]+y:y))));return isFinite(x)||(x=g),g=x,c=""+g,v=c.split(/e/i),c=v[0],b=1<v.length?L(v[1],10):0,v=c.split("."),c=v[0],e=1<v.length?v[1]:"",0<b?(e=H(e,b),c+=e.slice(0,b),e=e.substr(b,void 0)):0>b&&(b=-b,c=0>g?h+O(c.replace(h,""),b+1):O(c,b+1),e=c.slice(-b,c.length)+e,c=c.slice(0,-b)),0<f?(e=e.length>f?e.slice(0,f):H(e,f),e=p+e):e="",!0===m?c+e:w(c,k,a,h)+e}function C(g,f,k){var a,p,h,m,c,e,b,v,t,y,n,E,r,C,M,d,A,ga,T,fa,Fa,aa,xa,Ia,la,pa,l="";if(g*=D(100,f.fb),g*=D(1E3,f.gb),g/=D(10,3*f.eb),a=f.ab,p=f.bb,!a&&!p)return"";if(h=null,m=null,a)for(h="",c=0;c<a.length;c++)e=a[c],/^(0|#)+/g.test(e)&&(h+=e);if(p)for(m="",c=0;c<p.length;c++)b=p[c],/^(0|#)+/g.test(b)&&(m+=b);if(!h&&!m)return(a?a.join(""):"")+(p?p.join(""):"");m||(m="");t=0;var ba;ba=g;var u,ya;c=G(q(ba));for(b={Xa:1,Ya:0};10<=c;)c/=10,b.Xa++;ba=(T=""+ba,fa=T.search(/e/gi),Fa=T.indexOf("."),-1!==fa?(xa=T.substr(0,fa),Ia=T.substr(fa+1,void 0),u=0,-1!==Fa&&(u=xa.substr(Fa+1,void 0).length),ya=F(Ia),aa=u-ya,0>aa&&(aa=0),b.Ya=aa):(aa=0,-1!==Fa&&(aa=T.substr(Fa+1,void 0).length),b.Ya=aa),b);if(f.hb)if(y=q(g),c=h?h.length:1,1<=y)ba.Xa>c?(ba.Xa-=c,ba.Ya+=c,g/=D(10,ba.Xa),t=ba.Xa):t=(ba.Xa<c,0),-1===f.hb.$a&&(f.hb.$a=0);else if(1>y&&0<y){f.hb.$a=-1;ba.Xa=c;ba.Ya-=c;for(c=D(10,c);10*y<c;)y*=10,t++;g*=D(10,t)}if(n=m.lastIndexOf("0"),E=m.lastIndexOf("#"),r=k.numberGroupSizes,C=k.numberGroupSeparator,M=k.numberDecimalSeparator,d=k.negativeSign,A=ba.Ya,0<=n&&(A=n+1),E>n&&E<ba.Ya&&(A=E+1),p||(A=0),ga=z(g,A,r,C,M,d,!0),""===ga)return(a?a.join(""):"")+(p?p.join(""):"");if(g=!1,a){k=ga.split(M)[0];y=k.substr(0,1);y===d&&(k=k.substr(1,void 0));E=0;T="";fa=h.indexOf("0");c=1===k.length&&"0"===k?0:k.length;Fa=-1===fa?c:h.length-fa;k=0===Fa?"":k;for(c=a.length-1;0<=c;c--)if(e=a[c],/^(0|#)+/g.test(e))if(T=e+T,T!==h){aa=e.length;for(xa=k.length-E-1;0<=xa&&0<aa;xa--)Ia=k.charAt(xa),l=Ia+l,aa--,E++;E>=k.length&&E<Fa&&0<aa&&(l=Array(aa+1).join("0")+l,E+=aa)}else aa=k.substr(0,k.length-E),0<=fa&&fa<h.length-E-aa.length&&(aa=Array(h.length-E-fa-aa.length+1).join("0")+aa),l=aa+l;else f.hb&&!g&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(e)?(g=!0,v="",v+=f.hb.Za,v+=B[f.hb.$a],v+=O(""+t,f.hb._a),l=v+l):l=e+l;y===d&&(l=y+l);!0===f.cb&&(l=w(l,r,C,d))}if(p)for(a="",0<A?(la=ga.indexOf(M),-1!==la&&(a=ga.substring(la+1),""===h&&(l+=ga.substr(0,la)),l+=M)):/^(#+)$/gi.test(m)&&p.join("").length===m.length||(0>=n&&0>ga.indexOf(M)&&"##################0"===h&&"################"===m||(l+=M),0<n&&(a=Array(n+1).join("0"))),c=h=0;c<p.length;c++)b=p[c],/^(0|#)+/g.test(b)?(l+=a.substr(h,b.length),h+=b.length):f.hb&&!g&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(b)?(g=!0,v="",v+=f.hb.Za,v+=B[f.hb.$a],v+=O(""+t,f.hb._a),l+=v):l+=b;return pa=l.indexOf("0"+M),0===pa&&(pa+2===l.length&&0===ba.Ya?l=l.replace("0"+M,M):pa+2<l.length&&(/[0-9]+/g.test(l.charAt(pa+2))||(l=l.replace("0"+M,M)))),l}function c(a,f){var k,g,p,c,h,t,e,b,v,y,B,n,E,w,q,z,r;return a=R(a)?"":K.ib(a,""),a.match(/^[+-]?infinity$/i)?F(a):a.match(/^0x[a-f0-9]+$/i)?L(a,10):(k=f.NumberFormat,g=k.numberNegativePattern,p=m(a,k,g),c=p[0],h=p[1],""===c&&1!==g&&(p=m(a,k,1),c=p[0],h=p[1]),""===c&&(c="+"),h[0]===k.currencySymbol&&(h=h.substr(1,void 0)),b=h.indexOf("e"),0>b&&(b=h.indexOf("E")),0>b?(e=h,t=null):(e=h.substr(0,b),t=h.substr(b+1,void 0)),B=e.indexOf("."),0>B?(v=e,y=null):(v=e.substr(0,B),y=e.substr(B+1,void 0)),v=v.split(",").join(""),n=",".replace(/\u00A0/g," "),","!==n&&(v=v.split(n).join("")),E=c+v,null!==y&&(E+="."+y),w=E[E.length-1],w===k.percentSymbol&&(E=E.substr(0,E.length-1),E=K.ib(E,""),q=E.indexOf("."),-1===q&&(q=E.length),z="",z+=E.substr(0,q-2),z+=".",z+=E.substr(q-2,2),z+=E.substr(q+1,void 0),E=z),null!==t&&(r=m(t,k,1),""===r[0]&&(r[0]="+"),E+="e"+r[0]+r[1]),E.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?F(E):NaN)}function m(a,f,k){var g=f.negativeSign;f=f.positiveSign;if(4!==k&&2!==k||(g=" "+g,f=" "+f),4===k||3===k){if(K.jb(a,g))return["-",a.substr(0,a.length-g.length)];if(K.jb(a,f))return["+",a.substr(0,a.length-f.length)]}else if(2===k||1===k){if(K.kb(a,g))return["-",a.substr(g.length,void 0)];if(K.kb(a,f))return["+",a.substr(f.length,void 0)]}else{if(0!==k)throw Error("");if(K.kb(a,"(")&&K.jb(a,")"))return["-",a.substr(1,a.length-2)]}return["",a]}function h(a,f,k){if(0!==q(G(a)-a))throw Error(d().Exp_BadFormatSpecifier);a=0<=a?a.toString(16):(4294967295+a+1).toString(16);return a=f?a.toLowerCase():a.toUpperCase(),!R(k)&&a.length<k?O(a,k):a}function a(a){var f=I.q4().NumberFormat;return"string"==typeof a&&(f=I.q4(a).NumberFormat),f}var B={1:"+",0:"","-1":"-"},y=["n %","n%","%n","% n"],t="-n %;-n%;-%n;%-n;%n-;n-%;n%-;-% n;n %-;% n-;% -n;n- %".split(";"),E=["(n)","-n","- n","n-","n -"],M=["$n","n$","$ n","n $"],p="($n);-$n;$-n;$n-;(n$);-n$;n-$;n$-;-n $;-$ n;n $-;$ n-;$ -n;n- $;($ n);(n $)".split(";");return{Qa:function(a){return c(a,I.q4())},lb:function(a){return c(a,I.q4("invariant"))},mb:function(a,f,k){k||(k=I.q4());var g=k;if(f&&0!==f.length&&"i"!==f)if(/^(C|c|D|d|E|e|F|f|G|g|N|n|P|p|R|r|X|x)(\d*)$/g.test(f)){k=f;var c=g.NumberFormat,m,B,w,e;f=""+q(a);switch(k||(k="D"),g=-1,1<k.length&&(g=L(k.slice(1),10)),k.charAt(0)){case "d":case "D":m="n";-1!==g&&(f=O(""+f,g));0>a&&(f="-"+f);break;case "c":case "C":m=0>a?p[c.currencyNegativePattern]:M[c.currencyPositivePattern];-1===g&&(g=c.currencyDecimalDigits);f=z(q(a),g,c.currencyGroupSizes,c.currencyGroupSeparator,c.currencyDecimalSeparator,c.negativeSign);break;case "n":case "N":m=0>a?E[c.numberNegativePattern]:"n";-1===g&&(g=c.numberDecimalDigits);f=z(q(a),g,c.numberGroupSizes,c.numberGroupSeparator,c.numberDecimalSeparator,c.negativeSign);break;case "p":case "P":m=0>a?t[c.percentNegativePattern]:y[c.percentPositivePattern];-1===g&&(g=c.percentDecimalDigits);f=z(100*q(a),g,c.percentGroupSizes,c.percentGroupSeparator,c.percentDecimalSeparator,c.negativeSign);break;case "F":case "f":a=r(a,f,m,k,g,c);f=a[0];m=a[1];break;case "e":case "E":a=A(a,f,m,k,g,c);f=a[0];m=a[1];break;case "x":case "X":m="n";f=h(a,"x"===k.charAt(0),-1===g?0:g);break;case "g":case "G":B=""+a;a=-1===B.indexOf("e")&&-1===B.indexOf("E")?r(a,f,m,k,g,c):A(a,f,m,k.replace("g","e").replace("G","E"),g,c);f=a[0];m=a[1];break;default:throw Error(d().Exp_BadFormatSpecifier);}a=/n|\$|-|%/g;for(k="";w=a.lastIndex,e=a.exec(m),k+=m.slice(w,e?e.index:m.length),e;)switch(e[0]){case "n":k+=f;break;case "$":k+=c.currencySymbol;break;case "-":/[1-9]/.test(f)&&(k+=c.negativeSign);break;case "%":k+=c.percentSymbol;break;default:throw Error(d().Exp_InvalidNumberFormat);}a=k}else{w=g.NumberFormat;var b,v,N,S;k=m=e=null;B={ab:null,bb:null,cb:!1,eb:0,fb:0,gb:0,hb:null};var X="",Y=!1,D=!1,l=!1,F=!1,G=!1,ea=!1,ga=!1,T;b=null;for(var fa=[],g=0;g<f.length;g++){if(T=f.charAt(g),Y)"'"!==T?X+=T:(fa.push(X),X="",Y=!1);else if(D)'"'!==T?X+=T:(fa.push(X),X="",D=!1);else{if(l)if("E"===b||"e"===b){if("+"===T||"-"===T||"0"===T){X+=T;continue}l=!1}else if("+"===b||"-"===b){if("0"===T){X+=T;continue}l=!1;fa.push(X);X=""}else{if("0"===b){if("0"===T){X+=T;continue}l=!1;ea||(ea=!0,B.hb=n(X));fa.push(X);X=""}}else if("0"===T||"#"===T){if(ga=!0,"0"===b||"#"===b){X+=T;b=T;continue}""!==X&&(fa.push(X),X="")}else"0"!==b&&"#"!==b||"0"===T||"#"===T||(fa.push(X),X="");if(";"===T){if(""!==X&&(l&&!ea&&(B.hb=n(X)),fa.push(X),X=""),F?B.bb=T:B.ab=fa,fa=[],R(e))e=B;else if(R(m))m=B;else{if(!R(k))throw Error(d().Exp_InvalidSemicolons);k=B}ga=F=!1;G&&(B.cb=!0,G=!1);B={}}else if(F||"."!==T)if("'"===T)Y=!0;else if('"'===T)D=!0;else if("%"===T)B.fb++,""!==X&&(fa.push(X),X=""),fa.push(T);else if(T===I.q4().NumberFormat.perMilleSymbol)B.gb++,fa.push(T);else if("0"===T||"#"===T)X+=T;else if(","===T)if(F)""!==X&&(fa.push(X),X="");else{if(""!==X&&(fa.push(X),X=""),!ga)continue;b=!0;v="";for(N=g+1;N<f.length;N++)if(S=f.charAt(N),""===v)if("'"===S||'"'===S)v=S;else{if("0"===S||"#"===S){b=!1;break}if("."===S||";"===S)break}else"'"!==S&&'"'!==S||(v="");b?B.eb++:G=!0}else"E"===T||"e"===T?(l=!0,""!==X&&fa.push(X),X=T):X+=T;else"#"!==b&&"0"!==b&&(fa.push(X),X="#"),""!==X&&(fa.push(X),X=""),B.ab=fa,fa=[],F=!0,ga=!1,G&&(B.cb=!0,G=!1)}b=T}f=(""!==X&&(l&&!ea&&(B.hb=n(X)),fa.push(X)),G&&(B.cb=!0),F?B.bb=fa:B.ab=fa,R(e)?e=B:R(m)?m=B:R(k)&&(k=B),{Wa:e,Va:m,Ua:k});e=null;a=(0===a?e=f.Ua:0>a&&(e=f.Va),e||(e=f.Wa),c=C(a,e,w)+"",1===c.indexOf(w.negativeSign)&&0===c.indexOf(w.currencySymbol)&&(c=c[1]+c[0]+c.substring(2)),c)}else a=g&&0<g.name.length?a.toLocaleString():""+a;return a},nb:function(g,f){var k,p,c;return"string"!=typeof g?g:(k=a(f),p=k.numberDecimalSeparator,c=k.numberGroupSeparator,"."!==p&&(g=g.replace(Q.qb("[.]"),"#dot#")),","!==c&&(g=g.replace(Q.qb("[,]"),"#group#")),"."!==p&&(g=g.replace(Q.qb("#dot#"),p)),","!==c&&(g=g.replace(Q.qb("#group#"),c)),g)},Oa:function(g,f){var k,p,c;return"string"!=typeof g?g:(k=a(f),p=k.numberDecimalSeparator,c=k.numberGroupSeparator,"."!==p&&(g=g.replace(Q.qb("["+p+"]"),"#dot#")),","!==c&&(g=g.replace(Q.qb("["+c+"]"),"#group#")),"."!==p&&(g=g.replace(Q.qb("#dot#"),".")),","!==c&&(g=g.replace(Q.qb("#group#"),",")),g)},nia:function(p,f){var k,g,c;return!("string"==typeof p&&(k=a(f),g=k.numberDecimalSeparator,c=k.numberGroupSeparator,"."!==g&&"."!==c&&0<=p.indexOf(".")||","!==g&&","!==c&&0<=p.indexOf(",")))},ob:function(a,f){return F(this.Oa(a,f))},pb:h}}();U.exports=u},function(U,u,l){var d=l(8);u=function(){function l(){}return l.qb=function(d){var u=l.rb[d];return u||(u=l.rb[d]=RegExp(d,"g")),u.lastIndex=0,u},l.sb=function(d){var u=l.tb[d];return u||(u=l.tb[d]=RegExp(d,"gi")),u.lastIndex=0,u},l.ub=function(d,u){var K,O,H,I;if(l.vb[d])return l.wb[d];if(l.qb("[~?*]+").test(d)){K=[];O=d.split("");for(I=0;I<O.length;I++)H=O[I],"~"===H&&I<O.length-1?(I++,H=O[I],"*"===H||"?"===H?K.push("\\"):u&&K.push("~"),K.push(H)):"?"===H?K.push("."):"*"===H?(K.push("."),K.push("*")):K.push(H);return K.join("")}return null},l.zb=function(d,u){var K=l.ub(d,u);return K&&(K="^"+K+"$"),K},l.xb=function(l,u){for(var K="#"+l+"0#",O=1;0<u.indexOf(K);)K=d.yb(K,"#"+l+(O-1)+"#","#"+l+O+"#"),O++;return K},l.rb={},l.tb={},l.vb={},l.wb={},l.Ab=function(d){return d.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},l}();U.exports=u},function(U,u,l){function d(d,l,u,H){var K,L;if(!l)throw Error();return""===l||!(l.length>d.length)&&(K=d,L=l,u&&(K=K.toLowerCase(),L=L.toLowerCase()),H(K,L))}var J,R=l(5).Fa;J={Bb:function(d,l,u){return u&&(d=d.toLowerCase(),l=l.toLowerCase()),""===l||0<=d.indexOf(l)},Cb:function(d,l,u){var K,I;return u&&u?(K=d.toLowerCase(),I=l.toLowerCase(),K.indexOf(I)):d.indexOf(l)},Db:function(d,l){if(!l)return d;for(var u=d;u.substr(0,l.length)===l;)u=u.substr(l.length,void 0);return u},ib:function(d,l){if(!l)return d;for(var u=d;u.substr(u.length-l.length,l.length)===l;)u=u.substr(0,u.length-l.length);return u},Eb:function(d,l,u){var H,K;if(0>l||l>d.length||R(u))throw Error();return H=d.substr(0,l),K=d.substr(l,d.length-l),H+u+K},Fb:function(d,l,u){var H,K;if(R(u)&&(u=d.length-l),0>l||0>u||l+u>d.length)throw Error();return H=d.substr(0,l),K=d.substr(l+u,d.length-l-u),H+K},kb:function(l,u,O){return d(l,u,O,function(d,l){return d.slice(0,l.length)===l})},jb:function(l,u,O){return d(l,u,O,function(d,l){return d.slice(-l.length)===l})},Gb:function(d,l,u,H){if(!l||""===l)throw Error();return u=(""+u).replace(/\$/g,"$$$$"),d.replace(RegExp(l,"g"+(H?"i":"")),u)},Hb:function(d,u,O,H){return u=l(7).Ab(u),this.Gb(d,u,O,H)},Ib:function(d,l){var u=d.indexOf(l);return 0>u||u>=d.length?d:d.substr(0,u)},Jb:function(d,l){for(var u=0,H=d.indexOf(l);0<=H;)u+=1,H=d.indexOf(l,H+1);return u},yb:function(d,l,u){return d.split(l).join(u)},Kb:function(d,l){var u,H,I=d;for(u=0;u<l.length;u++)H=RegExp("\\{"+u+"\\}","g"),I=I.replace(H,l[u]);return I},Lb:function(d,l,u){var H=""+d;for(d=H.length;d<l;d++)H=u?"0"+H:H+"0";return H},Sa:function(d,l){return J.Lb(d,l,!0)},Ta:function(d,l){return J.Lb(d,l,!1)},Mb:function(d,l){return d===l||!d&&!l||d&&l&&d.toLowerCase()===l.toLowerCase()},Nb:function(d){return d.toUpperCase()},Ob:function(d){var u={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#x27;","`":"\x26#x60;"},J=l(7).qb("(?:\x26|\x3c|\x3e|\"|'|`)");return J.test(d)?d.replace(J,function(d){return u[d]}):d},Pb:function(d){var u={"\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e","\x26quot;":'"',"\x26#x27;":"'","\x26#x60;":"`"},J=l(7).qb("(?:\x26amp;|\x26lt;|\x26gt;|\x26quot;|\x26#x27;|\x26#x60;)");return J.test(d)?d.replace(J,function(d){return u[d]}):d}};U.exports=J},function(U,u,l){var d=l(3),J=l(8),R=l(10),Q=l(4).CultureManager,K=l(5).Fa,O=J.Sa,H=parseInt,I=Math.floor,L=Math.abs,F={},G=function(){function q(w,q,r){var c,m,h,a,B=!1;a=r;a.slice(1).forEach(function(a){a&&(B=!0)});B||(a=a.concat(q.ma()));r=1;for(c=a.length;r<c;r++)if(h=a[r],h&&(B=!0,m=n(w,h,q)))return m;return null}function D(n,q,C){function c(){return y||t?y:(y=E.test(q),t=!0,y)}function m(b,e){if(g)return g[e];switch(e){case 0:return b.getFullYear();case 1:return b.getMonth();case 2:return b.getDate()}}var h,a,B,y,t,E,w,p,g,f,k,x,z,P,V,Z,e,b,v,N,S,X=C.DateTimeFormat;f=X.Calendar.convert;if(!q||!q.length)return C&&C.name.length?f?D(n,X.fullDateTimePattern,C):n.toLocaleString():""+n;C=X.eras;h="s"===q;a="";E=/([^d]|^)(d|dd)([^d]|$)/g;w=0;p=r();!h&&f&&(g=f.fromGregorian(n));h=f=-2;k={Qb:""};for(x=0;z=p.lastIndex,P=p.exec(q),V=q.slice(z,P?P.index:q.length),k.Qb="",w+=A(V,k),a+=k.Qb,P;x++)if(1!==w%2)switch(B=n.getFullYear(),Z=n.getDay(),e=n.getHours(),b=n.getMinutes(),v=n.getSeconds(),N=n.getMilliseconds(),S=n.getTimezoneOffset(),P[0]){case "dddd":a+=X.dayNames[Z];break;case "ddd":a+=X.abbreviatedDayNames[Z];break;case "dd":y=!0;a+=O(m(n,2),2);break;case "d":y=!0;a+=m(n,2);break;case "MMMM":a+=X.monthGenitiveNames&&c()?X.monthGenitiveNames[m(n,1)]:X.monthNames[m(n,1)];break;case "MMM":a+=X.abbreviatedMonthGenitiveNames&&c()?X.abbreviatedMonthGenitiveNames[m(n,1)]:X.abbreviatedMonthNames[m(n,1)];break;case "MM":a+=O(m(n,1)+1,2);break;case "M":a+=m(n,1)+1;break;case "yyyy":case "yyy":a+=0<=f?C.ia("ee",n):O(g?g[0]:B,4);break;case "yy":a+=0<=f?C.ia("ee",n):O((g?g[0]:B)%100,2);break;case "y":a+=0<=f?C.ia("e",n):""+(g?g[0]:B)%100;break;case "hh":B=e%12;0===B&&(B=12);a+=O(B,2);break;case "h":B=e%12;0===B&&(B=12);a+=B;break;case "HH":a+=O(e,2);break;case "H":a+=""+e;break;case "mm":a+=O(b,2);break;case "m":a+=""+b;break;case "ss":a+=O(v,2);break;case "s":a+=""+v;break;case "tt":a+=12>e?X.amDesignator:X.pmDesignator;break;case "t":a+=(12>e?X.amDesignator:X.pmDesignator).charAt(0);break;case "f":a+=O(N,3).charAt(0);break;case "ff":a+=O(N,3).substr(0,2);break;case "fff":a+=O(N,3);break;case "z":B=S/60;a+=(0>=B?"+":"-")+I(L(B));break;case "zz":B=S/60;a+=(0>=B?"+":"-")+O(I(L(B)),2);break;case "zzz":B=S/60;a+=(0>=B?"+":"-")+O(I(L(B)),2)+":"+O(L(S%60),2);break;case "g":case "gg":case "ggg":if(!C)break;if(f===x-1){f=x;break}a+=C.ia(P[0],n);f=x;break;case "e":case "ee":if(!C){a+=O(g?g[0]:B,4);break}if(h===x-1){h=x;break}a+=C.ia(P[0],n);h=x;break;case "/":a+=X.dateSeparator;break;case "[h]":case "[hh]":case "[H]":case "[HH]":case "[mm]":case "[ss]":a+=P[0];break;default:throw Error(d.C(d.SR)().Exp_InvalidDateFormat);}else a+=P[0];return""+a}function A(n,q){var w,c,m,h=0,a=!1;w=0;for(c=n.length;w<c;w++)switch(m=n.charAt(w)){case '"':a?q.Qb+="'":h++;a=!1;break;case "\\":a&&(q.Qb+="\\");a=!a;break;default:q.Qb+=m,a=!1}return h}function r(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|ggg|gg|g|ee|e|\[H\]|\[HH\]|\[h\]|\[hh\]|\[mm\]|\[ss\]/g}function n(n,q,C){var c,m,h,a,B,y,t,E,w,p,g,f,k,x,z,P,V,Z,e,b,v,N,S,X,Y,D;n=n.trim();c=C.DateTimeFormat;a:{if(c.Rb){if(c.Rb[q]){q=c.Rb[q];break a}}else c.Rb={};t=q.replace("%M","M");t=t.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");a="^";E={Qb:""};p=[];f=g=0;for(k=r();null!==(x=k.exec(t));)if(E.Qb="",z=t.slice(g,x.index),g=k.lastIndex,f+=A(z,E),a+=E.Qb,1!==f%2){switch(x[0]){case "dddd":case "ddd":case "MMMM":case "MMM":case "gggg":case "ggg":case "gg":case "g":a+="(\\D+)";break;case "tt":case "t":a+="(\\D*)";break;case "dd":case "d":case "MM":case "M":case "yy":case "y":case "eee":case "ee":case "e":case "HH":case "H":case "hh":case "h":case "mm":case "m":case "ss":case "s":a+="(\\d\\d?)";break;case "yyy":case "yyyy":a+="(\\d{2}|\\d{4})";break;case "fff":a+="(\\d{3})";break;case "ff":a+="(\\d{2})";break;case "f":a+="(\\d)";break;case "zzz":a+="([+-]?\\d\\d?:\\d{2})";break;case "zz":case "z":a+="([+-]?\\d\\d?)";break;case "/":a+="(\\"+c.dateSeparator+")";break;default:throw Error(d.C(d.SR)().Exp_InvalidDateFormat);}R.Sb(p,x[0])}else a+=x[0];q=(E.Qb="",A(t.slice(g),E),a+=E.Qb,a+="$",B=(""+a).replace(/\s+/g,"\\s+"),y={Tb:B,Ub:p,_a:RegExp(B)},c.Rb[q]=y,y)}if(m=q,h=m._a.exec(n),null===h)return null;m=m.Ub;t=q=y=B=a=null;f=g=p=E=0;k=null;x=!1;z=0;for(P=m.length;z<P;z++)if(V=h[z+1])switch(m[z]){case "dd":case "d":if(q=H(V,10),1>q||31<q)return null;break;case "MMMM":if(y=C.oa(V),0>y||11<y)return null;break;case "MMM":if(y=C.ra(V),0>y||11<y)return null;break;case "M":case "MM":case "%M":if(y=H(V,10)-1,0>y||11<y)return null;break;case "e":case "ee":var l=C;V=H(V,10);var F=void 0,G=new Date,u=l.DateTimeFormat.eras;if(B=(u&&100>V&&(F=u.ca(G).ea,V+=F-F%100,V>l.DateTimeFormat.Calendar.TwoDigitYearMax&&(V-=100)),V),0>B||9999<B)return null;break;case "y":case "yy":case "yyy":case "yyyy":if(B=H(V,10),0>B||9999<B)return null;break;case "h":case "hh":case "H":case "HH":if(E=H(V,10),0>E)return null;break;case "m":case "mm":if(p=H(V,10),0>p||59<p)return null;break;case "s":case "ss":if(g=H(V,10),0>g||59<g)return null;break;case "tt":case "t":if(Z=V.toUpperCase(),x=Z===c.pmDesignator.toUpperCase(),!x&&Z!==c.amDesignator.toUpperCase())return null;break;case "f":if(f=100*H(V,10),0>f||999<f)return null;break;case "ff":if(f=10*H(V,10),0>f||999<f)return null;break;case "fff":if(f=H(V,10),0>f||999<f)return null;break;case "dddd":if(t=C.ua(V),0>t||6<t)return null;break;case "ddd":if(t=C.wa(V),0>t||6<t)return null;break;case "zzz":if((e=V.split(/:/),2!==e.length)||(w=H(e[0],10),-12>w||13<w)||(b=H(e[1],10),0>b||59<b))return null;k=60*w+(J.kb(V,"-")?-b:b);break;case "z":case "zz":if(w=H(V,10),-12>w||13<w)return null;k=60*w;break;case "g":case "gg":case "ggg":if((v=V,!v||!c.eras)||(a=c.eras.ha(m[z],v),0>a))return null}if(N=/^(\d|\d\d):/.test(n),S=N?new Date(1899,11,30):new Date,Y=c.Calendar.convert,Y&&(X=Y.fromGregorian(S)),Y||(X=[S.getFullYear(),S.getMonth(),S.getDate()]),null===B?B=X[0]:100>B&&(c.eras?B=c.eras.ga(a||0,B):B+=30<=B?1900:2E3),null===y&&(y=X[1]),null===q&&(q=X[2]),Y){if(S=Y.toGregorian(B,y,q),null===S)return null}else if((S.setFullYear(B,y,q),S.getDate()!==q)||null!==t&&S.getDay()!==t)return null;return x&&12>E&&(E+=12),S.setHours(E,p,g,f),null!==k&&(D=S.getMinutes()-(k+S.getTimezoneOffset()),S.setHours(S.getHours()+D/60,D%60)),S}return{mb:function(n,q,r){return r||(r=Q.q4()),D(n,q,r)},Vb:function(n,q,r){return D(n,q,r||Q.q4())},Qa:function(n,r,C){var c,m;return r||C||(m=F[n],void 0===m)?(c=r?[n,r]:[n],m=q(n,C||Q.q4(),c),r||C||(F[n]=m),m?new Date(m):m):m?new Date(m):m},lb:function(n,r){return q(n,Q.q4("invariant"),[n,r])},Wb:n,Xb:function(n){var q,w=n-25569,c=0<=w?1:-1,w=(new Date(864E5*w)).getTimezoneOffset();q=(124416E6*n+c-3181192704E6+864E5*w)/1440;n=new Date(q);var c=0<=w?1:-1,m=(new Date(q+36E5*c)).getTimezoneOffset();if(w!==m)if(q=new Date(q+6E4*(m-w)),w>m){if(-1===c||m===n.getTimezoneOffset())return q}else if(w<m&&(1===c||m===n.getTimezoneOffset()))return q;return n},Lia:function(n){if("/OADate("===n.substr(0,8))return n=parseFloat(n.substr(8,n.length-10)),this.Xb(n)},Daa:function(n){return"/OADate("+this.Ra(n)+")/"},Ra:function(n){return K(n)?0:("number"==typeof n&&(n=new Date(n)),(1440*n.getTime()+3181192704E6-864E5*n.getTimezoneOffset())/124416E6)},Yb:function(n){var q,r,c,m=null,h=!0;if(K(n)?m=this.Xb(0):n instanceof Date?m=new Date(n):"string"==typeof n?(q=this.Qa(n),q||(isNaN(n)?(q=new Date(n),isNaN(q.valueOf())&&(h=!1),r=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/,c=r.exec(n.replace(/ |\n/g,"").trim()),c&&4===c.length&&(-1!==c.indexOf(""+q.getFullYear())&&-1!==c.indexOf(""+(q.getMonth()+1))&&-1!==c.indexOf(""+q.getDate())||(h=!1))):(q=G.Xb(parseFloat(n)),q||(h=!1))),m=q):"number"==typeof n?m=this.Xb(n):h=!1,h)return m;throw d.C(d.SR)().Exp_InvalidCast;},Mia:function(n){return n&&(n.constructor===Date||n.getUTCDate&&n.setFullYear)}}}();U.exports=G},function(U,u){var l=function(){function d(){}return d.Eb=function(d,l,u){d.splice(l,0,u)},d.Sb=function(d,l){d.push(l)},d.Bb=function(d,l){return-1<d.indexOf(l)},d.Fb=function(d,l){var u=d.indexOf(l);-1<u&&d.splice(u,1)},d.Zb=function(d,l){return d.slice(0,l).concat(d.slice(l+1))},d.Cb=function(d,l,u){return d.indexOf(l,u)},d.$b=function(d,l,u){var K,J;if(!(0>l))for(J=K=0;K<u&&J<d.length;J++)d[l+J]=null,K++},d._b=function(d,l){var u;0>l&&(l=-1);for(u=l+1;u<d.length;u++)if(void 0!==d[u]&&null!==d[u])return u;return-1},d.ac=function(d){return d&&d.length},d}();U.exports=l},function(U,u,l){u=l(3);var d=l(6).pb,J=Math.min,R=Math.max,Q=Math.abs,K=parseInt,O=function(){function l(){}return l.bc=function(l){var F=l.a,G=l.r,q=l.g,D=l.b;return 3===arguments.length&&(F=255,G=arguments[0],q=arguments[1],D=arguments[2]),4===arguments.length&&(F=arguments[0],G=arguments[1],q=arguments[2],D=arguments[3]),255===F?"#"+d(G,!0,2)+d(q,!0,2)+d(D,!0,2):"rgba("+G+","+q+","+D+","+F+")"},l.e4=function(d,l){return d.a===l.a&&d.r===l.r&&d.g===l.g&&d.b===l.b},l.dc=function(d){d=l.ec(d);return(299*d.r+587*d.g+114*d.b)/1E3},l.fc=function(d,l,G){return 0>G&&(G+=240),240<G&&(G-=240),40>G?d+((l-d)*G+20)/40:120>G?l:160>G?d+((l-d)*(160-G)+20)/40:d},l.gc=function(d,F,G){var q,D,A,r,n;return 0===G?q=D=A=K(255*F/240,10):(n=120>=F?(F*(240+G)+120)/240:F+G-(F*G+120)/240,r=2*F-n,q=parseInt((255*l.fc(r,n,d+80)+120)/240,10),D=parseInt((255*l.fc(r,n,d)+120)/240,10),A=parseInt((255*l.fc(r,n,d-80)+120)/240,10)),{a:255,r:q,g:D,b:A}},l.hc=function(d,l){var F,q=255-Q(d.r-l.r),D=255-Q(d.g-l.g),A=255-Q(d.b-l.b),r=Q(d.a-l.a);return q/=255,D/=255,A/=255,F=(q+D+A)/3,!!(.9<=F&&.05>=r)},l.ic=function(d){return l.bc(d.a,255^d.r,255^d.g,255^d.b)},l.ec=function(d){function F(n){var q,r=l.Yn;return r||(q=document.createElement("canvas"),q&&q.getContext&&(r=l.Yn=q.getContext("2d"))),r?(r.fillStyle=n,r.fillStyle):n}function G(n){var q,r=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i,c=/^rgb\(([\s\d]*),([\s\d]*),([\s\d]*)\)$/i,m=/^rgba\(([\s\d]*),([\s\d]*),([\s\d]*),([\s\d]*)\)$/i,h=function(a){return K(a,16)},a=function(a){return K(a+a,16)},B=function(a){return 0<a.indexOf("%")?2.55*parseFloat(a):0|a};n=F(n);var y=RegExp;return/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.test(n)?[y.$1,y.$2,y.$3].map(h):m.test(n)?(q=[y.$1,y.$2,y.$3].map(B),q.splice(0,0,255*parseFloat(y.$4)),q):c.test(n)?[y.$1,y.$2,y.$3].map(B):r.test(n)?[y.$1,y.$2,y.$3].map(a):null}var q,D,A,r,n;return d instanceof l?d:(q=0,D=0,A=0,r=0,d&&""!==d&&(n=G(d),n&&(3===n.length?(q=255,D=n[0],A=n[1],r=n[2]):4===n.length&&(q=n[0],D=n[1],A=n[2],r=n[3]))),{a:q,r:D,g:A,b:r})},l.jc=function(d,F){var G,q;return 0===F?d:(G=new H(d),q=K(0<F?(240-G.kc)*F:G.kc*F,10),l.gc(G.lc,G.kc+q,G.mc))},l.nc=function(d,F){var G=l.ec(d),G=(new H(G)).nc(F);return l.bc(G)},l}(),H=function(){function d(d){var l,G,q,D,A=d.r,r=d.g;d=d.b;var n=R(R(A,r),d);l=J(J(A,r),d);var w=n+l;this.kc=K((240*w+255)/510,10);l=n-l;0===l?(this.mc=0,this.lc=160):(120>=this.kc?this.mc=K((240*l+w/2)/w,10):this.mc=K((240*l+(510-w)/2)/(510-w),10),G=(40*(n-A)+l/2)/l,q=(40*(n-r)+l/2)/l,D=(40*(n-d)+l/2)/l,A===n?this.lc=K(D-q,10):r===n?this.lc=K(80+G-D,10):this.lc=K(160+q-G,10),0>this.lc&&(this.lc+=240),240<this.lc&&(this.lc-=240))}return d.prototype={constructor:d,nc:function(d){var l=this.kc,G=this.oc(this.kc,500,!0);return O.gc(this.lc,l+(G-l)*d,this.mc)},oc:function(d,l,G){return 0===l?d:G?0<l?(d*(1E3-l)+241*l)/1E3:d*(l+1E3)/1E3:(d+=240*l/1E3,0>d&&(d=0),240<d&&(d=240),d)}},d}();u.pc=O;U.exports=u},function(U,u){function l(d){return d}function d(d,l,u,O,H,I,L,F,G,q,D){var A,r,n,w,z,C,c,m,h,a,B;c=u.rowCount;B=u.colCount;A=l.rowCount;h=l.colCount;var y=O.rowCount;m=O.colCount;r=1===B;a=1===h;if(A===c&&h===B){h=F=a=C=0;z=c*B;for(A=0;A<c;A++)for(r=0;r<B;r++){if(n=I(u[A][r]),w=I(l[A][r]),d&&(J(n)||J(w)))return G;w=q(w);C+=n;a+=n*n;F+=w;h+=n*w}B=z*h-C*F;u=H?B/(z*a-C*C):h/a;C=H?(F*a-C*h)/(z*a-C*C):0;H=[];for(A=0;A<y;A++)for(H[A]=[],r=0;r<m;r++){if(n=I(O[A][r]),d&&J(n))return G;H[A][r]=0===B?l[0][0]:D(u*n+C)}return L?new L(H):H}if(r&&A===c||1===A&&h===B){n=[];w=[];m=B+1;h=B+2;for(A=0;A<c;A++){if(z=r?l[A][0]:l[0][A],C=I(z),d&&J(C))return G;w[A]=r?q(C):C}for(A=0;A<c;A++)for(n[A]=[],r=0;r<B;r++){if(C=I(u[A][r]),d&&J(C))return G;n[A][r]=C}l=[];for(u=0;u<m;u++)for(l[u]=[],z=0;z<h;z++)l[u][z]=0;for(u=0;u<c;u++)for(l[0][m]+=w[u],A=0;A<B;A++)for(z=A+1,l[0][z]+=n[u][A],l[z][0]=l[0][z],l[z][m]+=n[u][A]*w[u],r=A;r<B;r++)q=r+1,l[q][z]+=n[u][A]*n[u][r],l[z][q]=l[q][z];l[0][0]=c;for(n=w=H?0:1;n<m;n++){if(d){if(0===l[A][A]){c=!1;for(r=A+1;!c&&r<m;r++)if(0!==l[r][A]){for(u=0;u<h;u++)q=l[A][u],l[A][u]=l[r][u],l[r][u]=q;c=!0}if(!c)return F}}else{for(A=n;A<m&&0===l[A][n];)A++;if(A>=m)return F;for(r=w;r<h;r++)z=l[n][r],l[n][r]=l[A][r],l[A][r]=z}z=1/l[n][n];for(r=w;r<h;r++)l[n][r]*=z;for(A=w;A<m;A++)if(A!==n)for(z=-l[A][n],r=0;r<h;r++)l[A][r]+=z*l[n][r];!H&&(l[0][m]=0)}H=[];!a&&(H[0]=[]);for(A=0;A<y;A++){a&&(H[A]=[]);z=l[0][m];for(r=0;r<B;r++){if(z=a?O[A][r]:O[r][A],C=I(z),d&&J(C))return G;z+=l[r+1][m]*C}a?H[A][0]=D(z):H[0][A]=D(z)}return L?new L(H):H}return F}var J=isNaN;U.exports={qc:function(u,J,K,O,H,I,L,F){return d(!0,u,J,K,O,H,I,F,L,l,l)},sc:function(u,J,K,O,H,I,L){var F,G;for(F=0;F<u.rowCount;F++)for(G=0;G<u.colCount;G++)if(0>=u[F][G])return I;return d(!1,u,J,K,O,l,H,L,null,Math.log,Math.exp)}}},function(U,u){U.exports={Exp_InvalidDateFormat:"Invalid date format pattern",Exp_InvalidExponentFormat:"invalid exponent format",Exp_InvalidSemicolons:"invalid format: too many semicolons",Exp_InvalidNumberGroupSize:"NumberGroupSize must be between 1 and 9.",Exp_BadFormatSpecifier:"Bad Format Specifier",Exp_InvalidNumberFormat:"Invalid number format pattern",Exp_InvalidCast:"InvalidCastException",Exp_Separator:"numberDecimalSeparator, listSeparator and arrayListSeparator should be different in cluture info."}},function(U,u,l){function d(d,l){for(var u in l)l.hasOwnProperty(u)&&(d[u]=l[u])}u={};d(u,l(15));d(u,l(16));U.exports=u},function(U,u){function l(d,l){var u=this;u.tc=d;u.j4=l;Object.defineProperty(u,"shortcutKey",{get:function(){return u.vc},set:function(d){var l,H,I,L=u.vc;L!==d&&(l=u.tc.wc,H=l[L],H&&(I=H.indexOf(u),0<=I&&H.splice(I,1)),u.vc=d,d&&(H=l[d],H||(l[d]=H=[]),H.splice(0,0,u)))}})}function d(d){this.xc=d;this.Ze={};this.wc={}}u={Key:{left:37,right:39,up:38,down:40,tab:9,enter:13,shift:16,ctrl:17,space:32,altkey:18,home:36,end:35,pup:33,pdn:34,backspace:8,del:46,esc:27,a:65,c:67,v:86,x:88,z:90,y:89}};l.prototype={canUndo:function(){return this.j4.canUndo},execute:function(d,l,u){var K,J,H=!0;try{K=this.j4.execute||this.j4,J=K(d,l,1===u),H=!1!==J}catch(I){H=!1}return l&&H&&this.tc.g4({command:l,result:J,s4:u}),J}};d.prototype={register:function(d,u,Q,K,O,H,I){u=new l(this,u);this[d]=u;Q&&(u.shortcutKey=this.getShortcutKey(Q,K,O,H,I))},getCommand:function(d){return self[d]},execute:function(d){var l=this[d.cmd];if(l)return l.execute(this.xc,d,0)},setShortcutKey:function(d,l,u,K,O,H){var I;if(d)(I=this[d])&&(I.shortcutKey=this.getShortcutKey(l,u,K,O,H));else if(I=this.getShortcutKey(l,u,K,O,H),l=this.getCommands(I))for(u=l.length-1;0<=u;u--)l[u].shortcutKey=void 0},getShortcutKey:function(d,l,Q,K,O){if(d){var H=65<=d&&90>=d?String.fromCharCode(d):u.Key[d];return H||(H=d),""+H+(l?"+ctrl":"")+(Q?"+shift":"")+(K?"+alt":"")+(O?"+window":"")}},getCommands:function(d){return this.wc[d]},addListener:function(d,l){this.Ze[d]=l},removeListener:function(d){delete this.Ze[d]},g4:function(d){var l,u=this.Ze;for(l in u)u.hasOwnProperty(l)&&u[l](d)}};u.CommandManager=d;U.exports=u},function(U,u){function l(d,l,u){this.xc=d;0>l&&(l=2147483647);this.yc=l;this.zc=u;this.Ac=[];this.Bc=[]}l.prototype={Cc:function(d,l){var u,J,K;if(d)if(1===l)this.Bc.push(d);else{if(u=this.yc,J=this.Ac.length,0<u&&J>=u)for(K=0;K<J-u+1;K++)this.Ac.shift();this.Ac.push(d);0===l&&(this.Bc=[])}},canUndo:function(){return 0<this.Ac.length},undo:function(){var d,l,u=this.Ac,Q=!0;if(this.zc&&this.canUndo()){d=u[u.length-1];try{(l=this.xc.commandManager()[d.cmd])&&(Q=l.execute(this.xc,d,1))}catch(K){Q=!1}!1!==Q&&u.pop()}return Q},canRedo:function(){return 0<this.Bc.length},redo:function(){var d,l,u=this.Bc,Q=!0;if(this.zc&&this.canRedo()){d=u[u.length-1];try{(l=this.xc.commandManager()[d.cmd])&&(Q=l.execute(this.xc,d,2))}catch(K){Q=!1}!1!==Q&&u.pop()}return Q},clear:function(){this.Ac=[];this.Bc=[]}};U.exports.UndoManager=l},function(U,u,l){var d=u={},J=l(18),R;for(R in J)J.hasOwnProperty(R)&&(d[R]=J[R]);u.SR={};u.SR.en=l(19);U.exports=u},function(U,u,l){function d(b){return W.Fa(b)?"":"boolean"==typeof b?b?"TRUE":"FALSE":"string"==typeof b?b:""+b}function J(e){if(!e)throw Error(b().Exp_TokenIsNull);return"["+e+"]"}function R(b){var e,k,a,v;if(void 0===b||null===b||""===b)return b;e="";for(a=k=0;a<b.length;a++)v=b[a],"["===v?k++:"]"===v?(k--,0>k&&(k=0)):0===k&&(e+=v);return""+e}function Q(b){return b=K(b,"[",""),K(b,"]","")}function K(b,e,k){return!b||b===G.Dc||H(e,k,!0)?b:(e=e.replace(A,"\\$1"),b.replace(RegExp(e,"g"),k))}function O(b){var e,k,a=b.length,v=!1,f="";for(e=0;e<a;e++)k=b.charAt(e),"\\"===k?(v=!v,v||(f+=k)):(v=!1,f+=k);return f}function H(b,e,k){return k?N(b)===N(e):b===e}function I(e,k){var a,v,f,p;1===arguments.length&&(k=!0);a=!1;v="";for(f=0;f<e.length;f++){if(p=e[f],'"'===p)a=!a;else{var g;if(g=!a){if(!(g=(k||"?"!==p&&"/"!==p)&&"_"!==p&&"*"!==p))a:{g=e;var c=f;if("\\"===g[c])throw Error(b().Exp_InvalidBackslash);if(0<c-1&&c-1<g.length&&"\\"===g[c-1]){if(0>c-2){g=!0;break a}if(0<c-2&&c-2<g.length){g="\\"!==g[c-2];break a}}g=!1}g=!g}if(g){"_"===p&&f++;continue}}v+=p}return v}function L(b,e){var k,a,v,f,p,g;if(!b||b===G.Dc)return!1;k=I(b);a="";v=!1;f=0;for(p=k.length;f<p;f++)g=k[f],'"'===g&&(v=!v),"E"===g||v||(a+=N(g));for(k=0;k<e.length;k++)if(a===e[k]||0<=a.indexOf(e[k]))return!0;return!1}function F(b,e,k){var a,f;return a=b?b.cultureInfo():v(k),f=a.NumberFormat.dbNumber,f?f[e]:null}var G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p=Math.abs,g={},f=l(2),k=f.u,x=f.l,W=f.j,P=W.Ma,V=f.o,Z=W.Fa,e=f.CultureManager,b=function(){return f.C(g.SR)()},v=function(b){return e.q4(b)},N=function(b){return b&&b.toLowerCase()},S=function(){throw Error(b().Exp_FormatIllegal);};G={Dc:"",Kb:function(){var b,e,k;e=[];for(b=0;b<arguments.length;b++)e[b]=arguments[b];if(0===arguments.length)return null;b=e[0];for(e=1;e<arguments.length;e++)k=RegExp("\\{"+(e-1)+"\\}","gm"),b=b.replace(k,arguments[e]);return b},Ec:function(b){return!b||b===G.Dc}};q={Fc:function(b){b=b.charCodeAt(0);return 48<=b&&57>=b},Gc:function(b){b=b.charCodeAt(0);return 9<=b&&13>=b||32===b||133===b||160===b}};D={Hc:0,Va:1,Ua:2,_text:3};A=RegExp("([.+?*$^\\[\\](){}|/])","g");r=["M/d MMM/d MMMM/d d/M d/MMM d/MMMM M-d MMM-d MMMM-d d-M d-MMM d-MMMM".split(" "),"M/y MMM/y M/yyyy MMM/yyyy M-y MMM-y M-yyyy MMM-yyyy".split(" "),"M/d/y MMM/d/y MMMM/d/y M/d/yyyy MMM/d/yyyy MMMM/d/yyyy d/M/y d/MMM/y d/MMMM/y d/M/yyyy d/MMM/yyyy d/MMMM/yyyy yyyy/M/d M-d-y MMM-d-y MMMM-d-y M-d-yyyy MMM-d-yyyy MMMM-d-yyyy d-M-y d-MMM-y d-MMMM-y d-M-yyyy d-MMM-yyyy d-MMMM-yyyy yyyy-M-d".split(" "),["H:m","h:m tt"],["H:m:s","h:m:s tt","H:m:s","h:mm:ss tt"],["H:m:s.FFF","h:m:s.FFF tt"],"M/d H:m;MMM/d H:m;MMMM/d H:m;d/M H:m;d/MMM H:m;d/MMMM H:m;M/y H:m;MMM/y H:m;M/yyyy H:m;MMM/yyyy H:m;M/d/y H:m;MMM/d/y H:m;MMMM/d/y H:m;M/d/yyyy H:m;MMM/d/yyyy H:m;MMMM/d/yyyy H:m;M-d H:m;MMM-d H:m;MMMM-d H:m;d-M H:m;d-MMM H:m;d-MMMM H:m;M-y H:m;MMM-y H:m;M-yyyy H:m;MMM-yyyy H:m;M-d-y H:m;MMM-d-y H:m;MMMM-d-y H:m;M-d-yyyy H:m;MMM-d-yyyy H:m;MMMM-d-yyyy H:m;M/d h:m tt;MMM/d h:m tt;MMMM/d h:m tt;d/M h:m tt;d/MMM h:m tt;d/MMMM h:m tt;M/y h:m tt;MMM/y h:m tt;M/yyyy h:m tt;MMM/yyyy h:m tt;M/d/y h:m tt;MMM/d/y h:m tt;MMMM/d/y h:m tt;M/d/yyyy h:m tt;MMM/d/yyyy h:m tt;MMMM/d/yyyy h:m tt;M-d h:m tt;MMM-d h:m tt;MMMM-d h:m tt;d-M h:m tt;d-MMM h:m tt;d-MMMM h:m tt;M-y h:m tt;MMM-y h:m tt;M-yyyy h:m tt;MMM-yyyy h:m tt;M-d-y h:m tt;MMM-d-y h:m tt;MMMM-d-y h:m tt;M-d-yyyy h:m tt;MMM-d-yyyy h:m tt;MMMM-d-yyyy h:m tt".split(";"),"M/d H:m:s;MMM/d H:m:s;MMMM/d H:m:s;d/M H:m:s;d/MMM H:m:s;d/MMMM H:m:s;M/y H:m:s;MMM/y H:m:s;M/yyyy H:m:s;MMM/yyyy H:m:s;M/d/y H:m:s;MMM/d/y H:m:s;MMMM/d/y H:m:s;M/d/yyyy H:m:s;MMM/d/yyyy H:m:s;MMMM/d/yyyy H:m:s;d/M/y H:m:s;d/MMM/y H:m:s;d/MMMM/y H:m:s;d/M/yyyy H:m:s;d/MMM/yyyy H:m:s;d/MMMM/yyyy H:m:s;yyyy/M/d H:m:s;M-d H:m:s;MMM-d H:m:s;MMMM-d H:m:s;d-M H:m:s;d-MMM H:m:s;d-MMMM H:m:s;M-y H:m:s;MMM-y H:m:s;M-yyyy H:m:s;MMM-yyyy H:m:s;M-d-y H:m:s;MMM-d-y H:m:s;MMMM-d-y H:m:s;M-d-yyyy H:m:s;MMM-d-yyyy H:m:s;MMMM-d-yyyy H:m:s;d-M-y H:m:s;d-MMM-y H:m:s;d-MMMM-y H:m:s;d-M-yyyy H:m:s;d-MMM-yyyy H:m:s;d-MMMM-yyyy H:m:s;yyyy-M-d H:m:s;M/d h:m:s tt;MMM/d h:m:s tt;MMMM/d h:m:s tt;d/M h:m:s tt;d/MMM h:m:s tt;d/MMMM h:m:s tt;M/y h:m:s tt;MMM/y h:m:s tt;M/yyyy h:m:s tt;MMM/yyyy h:m:s tt;M/d/y h:m:s tt;MMM/d/y h:m:s tt;MMMM/d/y h:m:s tt;M/d/yyyy h:m:s tt;MMM/d/yyyy h:m:s tt;MMMM/d/yyyy h:m:s tt;d/M/y h:m:s tt;d/MMM/y h:m:s tt;d/MMMM/y h:m:s tt;d/M/yyyy h:m:s tt;d/MMM/yyyy h:m:s tt;d/MMMM/yyyy h:m:s tt;yyyy/M/d h:m:s tt;M/d/yyyy h:mm:ss tt;M-d h:m:s tt;MMM-d h:m:s tt;MMMM-d h:m:s tt;d-M h:m:s tt;d-MMM h:m:s tt;d-MMMM h:m:s tt;M-y h:m:s tt;MMM-y h:m:s tt;M-yyyy h:m:s tt;MMM-yyyy h:m:s tt;M-d-y h:m:s tt;MMM-d-y h:m:s tt;MMMM-d-y h:m:s tt;M-d-yyyy h:m:s tt;MMM-d-yyyy h:m:s tt;MMMM-d-yyyy h:m:s tt;d-M-y h:m:s tt;d-MMM-y h:m:s tt;d-MMMM-y h:m:s tt;d-M-yyyy h:m:s tt;d-MMM-yyyy h:m:s tt;d-MMMM-yyyy h:m:s tt;yyyy-M-d h:m:s tt".split(";"),"M/d H:m:s.FFF;MMM/d H:m:s.FFF;MMMM/d H:m:s.FFF;d/M H:m:s.FFF;d/MMM H:m:s.FFF;d/MMMM H:m:s.FFF;M/y H:m:s.FFF;MMM/y H:m:s.FFF;M/yyyy H:m:s.FFF;MMM/yyyy H:m:s.FFF;d/M/y H:m;d/MMM/y H:m;d/MMMM/y H:m;d/M/yyyy H:m;d/mmm/yyyy H:m;d/MMMM/yyyy H:m;yyyy/M/d H:m;M/d/y H:m:s.FFF;MMM/d/y H:m:s.FFF;MMMM/d/y H:m:s.FFF;M/d/yyyy H:m:s;MMM/d/yyyy H:m:s.FFF;MMMM/d/yyyy H:m:s.FFF;d/M/y H:m:s.FFF;d/MMM/y H:m:s.FFF;d/MMMM/y H:m:s.FFF;d/M/yyyy H:m:s.FFF;d/MMM/yyyy H:m:s.FFF;d/MMMM/yyyy H:m:s.FFF;yyyy/M/d H:m:s.FFF;M-d H:m:s.FFF;MMM-d H:m:s.FFF;MMMM-d H:m:s.FFF;d-M H:m:s.FFF;d-MMM H:m:s.FFF;d-MMMM H:m:s.FFF;M-y H:m:s.FFF;MMM-y H:m:s.FFF;M-yyyy H:m:s.FFF;MMM-Yyyy H:m:s.FFF;d-M-y H:m;d-MMM-y H:m;d-MMMM-y H:m;d-M-yyyy H:m;d-MMM-yyyy H:m;d-MMMM-yyyy H:m;yyyy-M-d H:m;M-d-y H:m:s.FFF;MMM-d-y H:m:s.FFF;MMMM-d-y H:m:s.FFF;M-d-yyyy H:m:s;MMM-d-yyyy H:m:s.FFF;MMMM-d-yyyy H:m:s.FFF;D-M-y H:m:s.FFF;d-MMM-y H:m:s.FFF;d-MMMM-y H:m:s.FFF;D-M-yyyy H:m:s.FFF;d-MMM-yyyy H:m:s.FFF;d-MMMM-yyyy H:m:s.FFF;yyyy-M-d H:m:s.FFF;M/d h:m:s.FFF tt;MMM/d h:m:s.FFF tt;MMMM/d h:m:s.FFF tt;d/M h:m:s.FFF tt;d/MMM h:m:s.FFF tt;d/MMMM h:m:s.FFF tt;M/y h:m:s.FFF tt;MMM/y h:m:s.FFF tt;M/yyyy h:m:s.FFF tt;MMM/yyyy h:m:s.FFF tt;d/M/y h:m tt;d/MMM/y h:m tt;d/MMMM/y h:m tt;d/M/yyyy h:m tt;d/mmm/yyyy h:m tt;d/MMMM/yyyy h:m tt;yyyy/M/d h:m tt;M/d/y h:m:s.FFF tt;MMM/d/y h:m:s.FFF tt;MMMM/d/y h:m:s.FFF tt;M/d/yyyy h:m:s tt;MMM/d/yyyy h:m:s.FFF tt;MMMM/d/yyyy h:m:s.FFF tt;d/M/y h:m:s.FFF tt;d/MMM/y h:m:s.FFF tt;d/MMMM/y h:m:s.FFF tt;d/M/yyyy h:m:s.FFF tt;d/MMM/yyyy h:m:s.FFF tt;d/MMMM/yyyy h:m:s.FFF tt;yyyy/M/d h:m:s.FFF tt;M-d h:m:s.FFF tt;MMM-d h:m:s.FFF tt;MMMM-d h:m:s.FFF tt;d-M h:m:s.FFF tt;d-MMM h:m:s.FFF tt;d-MMMM h:m:s.FFF tt;M-y h:m:s.FFF tt;MMM-y h:m:s.FFF tt;M-yyyy h:m:s.FFF tt;MMM-Yyyy h:m:s.FFF tt;d-M-y h:m tt;d-MMM-y h:m tt;d-MMMM-y h:m tt;d-M-yyyy h:m tt;d-MMM-yyyy h:m tt;d-MMMM-yyyy h:m tt;yyyy-M-d h:m tt;M-d-y h:m:s.FFF tt;MMM-d-y h:m:s.FFF tt;MMMM-d-y h:m:s.FFF tt;M-d-yyyy H:m:s tt;MMM-d-yyyy H:m:s.FFF tt;MMMM-d-yyyy h:m:s.FFF tt;d-M-y h:m:s.FFF tt;d-MMM-y h:m:s.FFF tt;d-MMMM-y h:m:s.FFF tt;d-M-yyyy h:m:s.FFF tt;d-MMM-yyyy h:m:s.FFF tt;d-MMMM-yyyy h:m:s.FFF tt;yyyy-M-d h:m:s.FFF tt".split(";")];n=function(){return{pattern:r,formatter:["d-mmm","mmm-yy",v(void 0).DateTimeFormat.shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0",v(void 0).DateTimeFormat.shortDatePattern+" h:mm",v(void 0).DateTimeFormat.shortDatePattern+" h:mm:ss",v(void 0).DateTimeFormat.shortDatePattern+" h:mm:ss.0"]}};w=function(){function e(e,a){var v,f,g,p,c;this.Kc=a;f="\x3c\x3d \x3c\x3e \x3e\x3d \x3e \x3c \x3d".split(" ");p=0;for(c=f.length;p<c;p++)if(v=f[p],k.kb(e,v,!0)){f=k.Fb(e,0,v.length);f=parseFloat(f);isNaN(f)||(g=f);break}if(null===g&&void 0===g)throw Error(b().Exp_TokenIllegal);this.value=g;this.Sc=v;v="var self \x3d this;";g=this.Sc;this.isMeetCondition=(g="\x3c\x3e"===g?"!\x3d":g,g="\x3d"===g?"\x3d\x3d\x3d":g,v+="return value "+g+" self.value;",Function(["value"],v))}e.Name="ConditionalFormatPart";e.prototype={toString:function(){return J(this.Sc+(""+this.value))}};return e}();z=function(){function b(b,e){this.Kc=e;this.foreColor=b}return b.Name="ColorFormatPart",b.prototype.toString=function(){return J(this.foreColor)},b}();C=function(e,k){var a,v;this.Kc=k;if(a=N(e)[0],"h"===a)v=3600;else if("m"===a)v=60;else{if("s"!==a)throw Error(b().Exp_TokenIllegal);v=1}this.Tc=function(b){return Math.floor(b/1E3/v)}};C.Name="ABSTimeFormatPart";c=function(){function e(e,a){this.Kc=a;if(this.token=e,this.type=parseInt(k.Fb(e,0,5),10),0>this.type||3<this.type)throw Error(b().Exp_TokenIllegal);}function a(e,k,a){var f,g;if(e=e.split(".")){if(1===e.length)return v(e[0],k.numbers,a?k.letters:null);if(2===e.length)return f=v(e[0],k.numbers,a?k.letters:null),g=v(e[1],k.numbers),f+"."+g}throw Error(b().Exp_ValueIllegal);}function v(b,e,k){var a,f,g,p,c,h,m,x,t,y,n,B;if(2===arguments.length){a="";for(m=0;m<b.length;m++)h=b.substr(m,1),B=parseInt(h,10),a+=e[B];return a}if(3===arguments.length){if(!k)return v(b,e);a=0;f="";g=b.length;p=!1;c=[];for(m=0;m<g;m++)h=k.length-1-m,-1<h?c.push(""+k[h]):c.push(G.Dc);h=[];for(m=c.length-1;0<=m;m--)h[c.length-m-1]=c[m];c=h;x=!1;for(m=0;m<g;m++)h=b.substr(m,1),B=parseInt(h,10),y=t=G.Dc,0<g-m-16?(t=e[B],y="",x=!0):m!==g-1&&m!==g-5&&m!==g-9&&m!==g-13?"0"===h?(t="",y="",a+=1):"0"!==h&&0!==a?(t=e[0]+e[B],y=c[m],a=0):(t=e[B],y=c[m],a=0):"0"!==h&&0!==a?(t=e[0]+e[B],y=c[m],a=0):"0"!==h&&0===a||x?(t=e[B],y=c[m],a=0,x=!1):"0"===h&&3<=a?(t="",y="",a+=1):11<=g?(t="",a+=1):(t="",y=c[m],a+=1),(h=t+y===G.Dc)||(p=!1),m!==g-13||p||(y=c[m],p=!0),m!==g-9||p||(y=c[m],p=!0),m===g-1&&(y=c[m],p=!0),f=f+t+y;return n=parseInt(b,10),isNaN(n)||0!==n?f:e[0]}}e.Name="DBNumberFormatPart";e.prototype={Pc:function(b,e,v){var f,g,p,c,m,h,x,t,y;if(!b||b===G.Dc)return b;f=b;p=g=-1;c=!1;x=h=m=null;for(t=b.length-1;0<=t;t--)y=b[t],!isNaN(y)||H(y,".",!1)&&!c?(H(y,".",!1)&&(c=!0),-1===g&&(g=t),p=t):-1<p&&-1<g&&(m=b.substr(p,g-p+1),h=parseFloat(m),isNaN(h)||(x=a(m,e,v),f=k.Fb(f,p,g-p+1),f=k.Eb(f,p,x)),g=-1,p=-1,c=!1);return-1<p&&-1<g&&(m=b.substr(p,g-p+1),h=parseFloat(m),isNaN(h)||(x=a(m,e,v),f=k.Fb(f,p,g-p+1),f=k.Eb(f,p,x))),f},toString:function(){if(-1<this.type)return J("DBNum"+this.type);throw Error();}};return e}();m=function(){function e(e,a){var f,v,g;this.Kc=a;if(this.Uc=e,f=this.Uc,v=H(f[0],"$",!1),g=f.indexOf("-"),!(v&&-1<g))throw Error(b().Exp_TokenIllegal);this.Vc=f.substr(1,g-1);f=k.Fb(f,0,g+1);0<f.length&&(this.Wc=parseInt(f,16))}return e.Name="LocaleIDFormatPart",e.prototype={cultureInfo:function(){return this.Xc||(this.Xc=v(this.Wc),this.Vc&&this.Vc!==G.Dc&&(this.Xc.NumberFormat.isReadOnly||(this.Xc.NumberFormat.currencySymbol=this.Vc))),this.Xc},currencySymbol:function(){return this.Vc?k.Gb(this.Vc,"\\.","'.'"):G.Dc},allowScience:function(){if(this.Xc)return!(0===this.Xc.name().indexOf("ja")||0===this.Xc.name().indexOf("zh"))},toString:function(){return this.Uc?J(this.Uc):G.Dc}},e}();u=function(){function b(b,e){this.formatCached=b;this.cultureName=e;this.typeName=""}return b.prototype={format:function(b,e){return null},parse:function(b){return null},formatString:function(){return this.formatCached},toJSON:function(){var b,e={};for(b in this)this.hasOwnProperty(b)&&(e[b]=this[b]);return e},fromJSON:function(b){if(b)for(var e in b)void 0!==b[e]&&(this[e]=b[e])}},b}();h=function(){function b(b,e,k,a,f){this.Ic=e;this.Jc=k;this.cultureName=a;this.Yc=this.Zc(I(b));this.$c=f;this._c=2;this.ad()}function e(b){return-1<k.Cb(b,a.md[0],!0)||-1<k.Cb(b,a.td[0],!0)}function f(b){return-1<k.Cb(b,a.Rc[0],!0)||-1<k.Cb(b,a.ud[0],!0)}b.prototype={ad:function(){var e,k,f={Qb:this.Yc};if(b.Lc(f.Qb)){if(e=this.bd(f),this.hasJD=this.Gb(f.Qb,a.dd,'"'+a.ed+'"',!0,!1,f,!1),this.Gb(f.Qb,a.fd,"MMMM",!0,!1,f,!1),this.Gb(f.Qb,a.gd,"MMM",!0,!1,f,!1),this.Gb(f.Qb,a.hd,"MM",!0,!1,f,!1),this.Gb(f.Qb,a.jd,"M",!0,!1,f,!1),this.Gb(f.Qb,a.kd,"ddd",!0,!0,f,!0),this.Gb(f.Qb,a.ld,"dddd",!0,!0,f,!0),e||(this.Gb(f.Qb,a.md,"H",!0,!0,f,!1),this.Gb(f.Qb,a.nd,"HH",!0,!0,f,!1)),this.Jc&&this.Ic&&(this.od=this.od||this.Gb(f.Qb,a.Qc,'"@'+a.Qc+'"',!0,!1,f,!0),this.od=this.od||this.Gb(f.Qb,a.Rc,'"@'+a.Rc+'"',!0,!1,f,!0)),this.$c)for(e=0;e<this.$c.length;e++)k=this.$c[e],this.Gb(f.Qb,k.Kc,"@"+k.Kc,!0,!0,f,!0);this.pd=f.Qb}else S()},formatString:function(){return this.Yc},format:function(b){var e,f,g,p,c,m,h=G.Dc,t=null;try{if(t=x.Yb(b),t?b=t:h=""+b,t&&(h=x.mb(t,this.pd,this.Ic&&this.Ic.cultureInfo()||v(this.cultureName)),this.hasJD&&(e=v(this.cultureName).DateTimeFormat.monthNames[t.getMonth()],h=k.Gb(h,a.ed,e.substr(0,1))),this.$c))for(f=864E5*(x.Ra(t)-x.Ra(a.qd)),g=0;g<this.$c.length;g++)p=this.$c[g],c=p.Tc(f),Z(c)||(m=p.Kc.replace("[","\\[").replace("]","\\]"),h=k.Gb(h,"@"+m,c))}catch(Ia){h=d(b)}e=this.Ic;f=this.Jc;g=this.cultureName;var y;return!Z(f)&&b instanceof Date&&(y=F(e,f.type,g),h=f.Pc(h,y,!0),1===f.type&&(h=h.replace(RegExp("\u4e00\u5341","g"),"\u5341")),h=h.replace("@"+a.Qc,x.Vb(b,a.Qc)),h=h.replace("@"+a.Rc,x.Vb(b,a.Rc)),h=f.Pc(h,y,!1)),h},parse:function(b){var e,k,a;if(!b||b===G.Dc)return null;if(e=N(b),"true"===e)return!0;if("false"===e)return!1;if(this.pd&&(k=x.Wb(b,this.pd,v(this.cultureName))))return k;try{return a=x.Yb(b),a&&!isNaN(a)?a:(a=new Date(b),isNaN(a.valueOf())?b:a)}catch(ga){return b}},Zc:function(b){var e,k,a,f="",v=!1;for(e=0;e<b.length;e++)k=b[e],'"'===k?v=!v:v||("Y"===k||"D"===k||"S"===k||"E"===k||"G"===k?k=N(k):"M"===k&&(a=b[e-1],H("A",a,!0)||H("P",a,!0)||(k=N(k)))),f+=k;return f},bd:function(b){var e,f=[a.rd,v(this.cultureName).DateTimeFormat.amDesignator+"/"+v(this.cultureName).DateTimeFormat.pmDesignator,a.sd],g=["tt","tt","t"];for(e=0;3>e;e++)if(k.Bb(b.Qb,f[e],1))return b.Qb=k.Gb(b.Qb,f[e],g[e],!0),!0;return!1},Gb:function(b,a,v,g,p,c,h){var m,t,T,x,y,n,B,N,E;if(g||p){m=[];t=!0;!f(b)&&e(b)&&(t=!1);T=!1;for(x=0;x<b.length;x++){if(y=b[x],e(y)?t=!1:f(y)&&(t=!0),g&&H(y,a[0],h)&&t||p&&H(y,a[0],h)&&!t){n=!0;for(B=0;B<a.length;B++)if(B+x>=b.length||!H(a[B],b[B+x],h)){n=!1;break}if(N=x+a.length-1,n&&N+1<b.length){B=b[N];for(E=N+1;E<b.length&&H(B,b[E],h);E++);E>N+1&&(x=E,n=!1)}n&&!T&&m.splice(0,0,x)}'"'===y&&(T=!T)}if(c.Qb=b,0<m.length){for(x=0;x<m.length;x++)b=m[x],c.Qb=k.Fb(c.Qb,b,a.length),c.Qb=k.Eb(c.Qb,b,v);return!0}}return!1}};return b.Lc=function(b){return L(b,B)},b}();a={Rc:"yy",vd:"y",Qc:"yyyy",jd:"m",hd:"mm",gd:"mmm",fd:"mmmm",dd:"mmmmm",ud:"d",wd:"dd",kd:"aaa",ld:"aaaa",md:"h",nd:"hh",xd:"m",yd:"mm",td:"s",zd:"ss",ea:"e",rd:"AM/PM",sd:"A/P",ed:"@mmmmm",qd:new Date(1899,11,30,0,0,0,0)};B=[a.vd,a.Rc,a.Qc,a.jd,a.hd,a.gd,a.fd,a.dd,a.ud,a.wd,a.kd,a.ld,a.md,a.nd,a.xd,a.yd,a.td,a.zd,"ggg","gg","g","ee","e"];y=function(){function b(b,e,k,a){this.Ic=e;this.Jc=k;this.cultureName=a;b=I(b,!1);e&&(b=K(b,this.Ic.Kc,this.Ic.currencySymbol()));b=R(b);this.Yc=b=O(b);this._c=3}return b.prototype={format:function(b){var e,a;try{return e=b instanceof Date?""+x.Ra(b):d(b),a=k.Gb(this.Yc,'"',""),null!==a&&void 0!==a&&(e=k.Gb(a,"@",e)),e}catch(oa){return""}},parse:function(b){return b?b:""},formatString:function(){return this.Yc}},b}();t=function(){function b(b,e,k,a){var f,v;this.Ic=e;this.Jc=k;this.cultureName=a;this.Ad=!1;this._c=1;this.Bd=R(b);b=I(b);e&&(b=K(b,this.Ic.Kc,this.Ic.currencySymbol()));b=R(b);if(-1<b.indexOf("/")){e=b;var g,p,c,h=[];if(null===e||""===e)e=h;else{k=!1;a=[];g=!1;for(p=0;p<e.length;p++)c=e[p],'"'!==c||k||(g=!g),k||g||"/"!==c?a.push(c):(h.push(a.join("")),a=[]),k="\\"===c&&!k;e=(h.push(a.join("")),h)}e&&2===e.length&&(this.Cd=e[1],f=e[0],f&&(v=f.lastIndexOf(" "),-1<v?(this.Dd=f.substr(0,v),this.Ed=f.substr(v+1,f.length-v-1)):this.Ed=f))}this.Fd=b}b.prototype={formatString:function(){return this.Bd},format:function(b){var e,k,a,f,g,c,h,m,t,x,y,n,B,N,E,q,d;if(P(b,"boolean"))c=(""+b).toUpperCase();else if(f=W.Pa(b),isNaN(f)||!isFinite(f)||isNaN(b))c="string"==typeof b?b:null;else if(g=v(this.cultureName),b=null,this.Ed&&this.Cd){x=this.Cd.length;var r,w,ia,S,z=0,C=0,M=0,X=0;r=Math.ceil;0<f?(X=f-r(f)+1,1===X?(X=0,z=f):z=r(f)-1):0>f&&(z=r(f),X=r(f)-f);r=Math.pow(10,x-1);w=Math.pow(10,x)-1;2>r&&(r=2);2>w&&(w=2);x=!1;for(ia=0;r<=w&&(a=r*X,k=Math.round(a),e=k/r,S=p(e-X),!((!x||S<p(ia-X))&&(x=!0,ia=e,C=k,M=r,1E-5>S)));r++);if(a=z,k=C,e=M,x){M=k;x=e;if(0===M)S=p(x);else{if(0!==x)for(S=Math.max(M,x),M=Math.min(M,x),x=S%M;0!==x;)S=M,M=x,x=S%M;S=p(M)}f=(y=S,1<y&&(k/=y,e/=y),this.Dd?(b="",1===e&&(a+=k,k=0,e=0),0!==a&&(b+=V.mb(a,this.Gd(this.Dd),g),b+=" "),0===a&&0>f&&(b+=g.NumberFormat.negativeSign),0===f&&(b+="0"),c=this.Cd,h=parseFloat(c),isNaN(h)||0<h&&(k*=h/e,c="",e=h,m=Math.ceil(k),t=m-k,.5>=t&&0<=t?k=parseFloat(""+m):k=parseFloat(""+(m-1))),n=this.Ed,B=parseFloat(n),isNaN(B)||0===B&&(N=n.length,E=""+k,q=E.length,N>q?n=n.substr(0,N-(N-q)):N<q&&(E=E.substr(0,q-(q-N)),k=parseInt(E,10))),0!==k&&(b+=V.mb(k,this.Gd(n),g).replace(/^0*/,""),b+="/",b+=V.mb(e,this.Gd(c),g).replace(/^0*/,"")),""===b?"0":b):(b="",d=a*e+k,c=this.Cd,h=parseFloat(c),0<h?(d*=h/e,e=h,m=Math.ceil(d),t=m-d,d=.5>=t&&0<=t?parseFloat(""+m):parseFloat(""+(m-1)),b+=d+"/"+e):(b+=V.mb(d,this.Gd(this.Ed),g).replace(/^0*/,""),b+="/",b+=V.mb(e,this.Gd(this.Cd),g).replace(/^0*/,"")),0===d?"0":b))}else f=""+f;c=f}else c=V.mb(f,this.Gd(this.Fd),g),h=this.Ad,m=this.Ic,t=this.Jc,y=this.cultureName,c=Z(t)||(M=F(m,t.type,y),Z(M))?c:(x=t.Pc(c,M,h),C=v(y),"ja-JP"===C.name()&&1<x.length&&("\u4e00\u5343"===(z=x.substr(0,2))||"\u4e00\u767e"===z||"\u4e00\u5341"===z)&&(x=x.substr(1)),x);return c},parse:function(b){var e,a,f,g,p;return b&&b!==G.Dc?(e=N(b),"true"===e||"false"!==e&&(b=this.Hd(b),b=this.Id(b),a=this.Jd(b),f=a.Kd,g=a.Ld,this.Md(g)&&(g=k.Hb(g,v(this.cultureName).NumberFormat.numberGroupSeparator,""),p=V.ob(g,this.cultureName),!isNaN(p)&&isFinite(p))?(f&&(p/=100),p):null)):null},Md:function(b){var e,k="",a=0,f=0,g=0,p=!0,c=v(this.cultureName).NumberFormat;for(e=b.length-1;-1<e;e--){if(b[e]===c.numberDecimalSeparator)a++,0<g&&(p=!1),k="";else if("e"===N(b[e]))f++,k="";else if(b[e]===c.numberGroupSeparator)p=3===k.length,g++,k="";else if("-"===b[e]||"+"===b[e]){if(0<e&&"e"!==N(b[e-1]))return!1}else{if(!q.Fc(b[e]))return!1;k+=b[e]}if(1<a||1<f||!p)return!1}return!0},Gd:function(b){var e,k;if(b){b=b.split("");e="";for(k=0;k<b.length-1;)"\\"===b[k]?(e+=b[k+1],k+=2):(e+=b[k],k++);k===b.length-1&&"\\"!==b[k]&&(e+=b[k]);b=K(e,"?","0")}return b},Hd:function(b){var e,a,f,g,p,c=[];for(e=0;e<b.length;e++)q.Fc(b[e])&&c.push(e);e=v(this.cultureName).NumberFormat;e=[e.currencyDecimalSeparator,e.currencyGroupSeparator,e.currencySymbol,e.nanSymbol,e.negativeInfinitySymbol,e.negativeSign,e.numberDecimalSeparator,e.numberGroupSeparator,e.percentDecimalSeparator,e.percentGroupSeparator,e.percentSymbol,e.perMilleSymbol,e.positiveInfinitySymbol,e.positiveSign];for(a=b.length-1;-1<a;a--)if(f=b[a],!q.Gc(f)||-1<e.indexOf(""+f)){if(("-"===f||"+"===f)&&(g=0<a?""+b[a-1]:null,p=["e","E","(",v(this.cultureName).NumberFormat.currencySymbol],0>p.indexOf(g)))break}else(a<c[0]||c[c.length-1]<a)&&(b=k.Fb(b,a,1));return b},Id:function(b){var e=v(this.cultureName).NumberFormat.currencySymbol,a=k.kb(b,e)?k.Fb(b,0,e.length):b;return 0>a.indexOf(e)?a:b},Jd:function(b){var e=v(this.cultureName).NumberFormat.percentSymbol,a=!0,f=b;return k.kb(b,e)?f=k.Fb(b,0,e.length):k.jb(b,e)?f=k.Fb(b,b.length-e.length,e.length):a=!1,k.Bb(f,e)&&(a=!1),{Ld:f,Kd:a}}};return b}();E=function(){function b(b,e,k,a){this.Ic=e;this.Jc=k;this.cultureName=a;0<arguments.length?((0<=b.indexOf("0")||0<=b.indexOf("#")||0<=b.indexOf(".")||0<=b.indexOf("@"))&&S(),this.Bd=b):this.Bd="General";this._c=0}return b.prototype={Nd:function(){var b;return this.Od||(b=this.Bd,b=K(b,"General","##################0.################"),this.Od=new t(b,this.Ic,this.Jc,this.cultureName),this.Od.Ad=!0),this.Od},Pd:function(){return this.Qd||(this.Qd=new t("0.#####E+00",this.Ic,this.Jc,this.cultureName),this.Qd.Ad=!0),this.Qd},formatString:function(){return k.Gb(this.Bd,"@NumberFormat","General")},format:function(b){var e,a;if(W.Na(b,this.cultureName)){if(e=!this.Ic||this.Ic.allowScience(),a=W.Pa(b),void 0!==a&&null!==a)return 99999999999<p(a)&&e||1E-11>p(a)&&0!==a?this.Pd().format(b):this.Nd().format(b)}else{if(P(b,"string"))return e=k.Gb(this.formatString(),'"',""),e=O(e),e?k.Gb(e,"General",b):b;if(P(b,"boolean"))return(""+b).toUpperCase()}return""},parse:function(b){var e,a,f,v,g,c,h;return G.Ec(b)?null:"number"==typeof b?b:(e=!1,a=k.Cb(b,"-"),0<a&&(H(b.charAt(a-1),"E",!0)||(e=!0)),(k.Bb(b,"/")||e||k.Bb(b,":")||k.Bb(b,"-"))&&(f=x.Qa(b))?f:(g="-"===b.charAt(0),c=g?k.Fb(b,0,1):b,h="("===c.charAt(0)&&")"===b.charAt(b.length-1),v=this.Nd().parse(c),null!==v&&void 0!==v?(h||g)&&P(v,"number")?-1*p(v):v:b))}},b}();M=function(){function e(b,e){0===arguments.length?(this.formatCached="General",this.Rd=new E):this.ad(b,e)}function a(e){if(!e||e===G.Dc)throw Error(b().Exp_TokenIllegal);}function f(b){a(b);b=Q(b);return a(b),b}var v=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"];return e.prototype={ad:function(b,e){var a,v,g,p,x,n,B;null!==b&&void 0!==b||S();this.formatCached=b;v=a="";g=!1;p=[];for(x=0;x<b.length;x++)if(n=b[x],"["===n)g&&S(),v&&(a||(a=""),a+=v),v=""+n,g=!0;else if("]"===n){g||S();if(v){v+=n;g=""+v;n=void 0;var q,d=Q(""+v);if(d&&d!==G.Dc)if(q=d[0],-1<["\x3c","\x3e","\x3d"].indexOf(q))n=w,n.Name="ConditionalFormatPart";else if(k.kb(d,"DBNum",!0))n=c,n.Name="DBNumberFormatPart";else if(H(d[0],"$",!1))n=m,n.Name="LocaleIDFormatPart";else{a:{var r=N(d),P=r[0];if("h"!==P&&"m"!==P&&"s"!==P)q=!1;else{for(q=1;q<r.length;q++)if(P!==r[q]){q=!1;break a}q=!0}}q?(n=C,n.Name="ABSTimeFormatPart"):3<=d.length&&(n=z,n.Name="ColorFormatPart")}n?"ABSTimeFormatPart"===n.Name?(p.push(new n(f(g),g)),a+=v):this.addPart(n,g):S();v=""}else S();g=!1}else v+=n;v&&(g?S():a+=v);this.localeIDFormatPart&&(e=this.localeIDFormatPart.cultureInfo().name());x=a;g=!1;v=(x=x?""+x:G.Dc,L(x,["general"])?B=E:h.Lc(x)?B=h:L(x,"E+ E- # . , % 0 /".split(" "))?(g=!0,B=t):(g=!0,B=y),{Mc:g,Nc:B});B=v.Nc;a=v.Mc?b:a;B?this.Rd=new B(a,this.localeIDFormatPart,this.dbNumberFormatPart,e,0<p.length?p:null):S()},formatString:function(){var b,e,k,a="";b=0;for(e=v.length;b<e;b++)k=v[b],this[k]&&(a+=""+this[k]);return a+this.Rd.formatString()},addPart:function(e,k){var a,g,p,c=f(k);a=0;for(g=v.length;a<g;a++)if(p=v[a],H(p,e.Name,!0)){if(this[p])throw Error(b().Exp_DuplicatedDescriptor);this[p]=new e(c,k)}},format:function(b){return this.Rd.format(b)},parse:function(b){return this.Rd.parse(b)}},e}();l=function(e){function a(b,e){this.Sd=!0;this.PropertyChanged=[];G.Ec(b)&&(b="General");this.formatCached=b;this.cultureName=e;this.init()}function f(b){var e=a[b];return e||(e=new a(b),a[b]=e),e}W.G(a,e);return a.prototype={toJSON:function(){var b={formatCached:this.formatCached};return this.cultureName&&(b.customerCultureName=this.cultureName),"general"===N(this.formatCached)&&delete b.formatCached,b},hasFormatedColor:function(){var b,e;for(b in D)if(D.hasOwnProperty(b)&&(e=this.getFormatter(D[b]),e&&e.colorFormatPart))return!0;return!1},formatString:function(e){var a,k,f,v;if(0===arguments.length){a=G.Dc;k=0;for(f=this.formatters.length;k<f;k++)v=this.formatters[k],a+=v.formatString(),k!==f-1&&(a+=";");return a}if(!e)throw Error(b().Exp_ValueIsNull);return this.formatters=null,this.formatCached=e,this.init(),this.Td("formatString"),this},getFormatter:function(b){return this.formatters&&this.formatters[b]},getPreferredEditingFormatter:function(b){var e,a,k=v(this.cultureName).DateTimeFormat;return P(b,"DateTime")?(e=0===b.getHours()&&0===b.getMinutes()&&0===b.getSeconds()&&0===b.getMilliseconds()?"":" h:mm:ss",f(k.shortDatePattern+e)):P(b,"TimeSpan")?f(k.longTimePattern):W.Na(b,this.cultureName)?(a=W.Pa(b),f(1E20<a?"0.##E+00":"###################0.################")):f("General")},getPreferredDisplayFormatter:function(b,e){var g,p,c,h,m,t,y,B;if(e||(e={value:null}),e.value=null,G.Ec(b))return new a;if(g=e.value=this.parse(b),P(g,"DateTime")||P(g,"TimeSpan"))for(p=n(),c=p.pattern,p=p.formatter,h=0;h<c.length;h++)for(m=c[h],t=0;t<m.length;t++){if(y=m[t],B=x.Qa(b,y),B&&0===B-g)return new a(p[h])}else if(W.Na(g,this.cultureName)){if(c=v(this.cultureName).NumberFormat,p=c.currencySymbol,h=c.numberDecimalSeparator,g=c.percentSymbol,y=c.numberGroupSeparator,m=k.Bb,t=m(b,h),B=t?".00":"",b[0]===p)return f(G.Kb("{0}#,##0{1};[Red]({0}#,##0{1})",p,B));if(m(b,"E",1))return f("0.00E+00");if(""+b[0]===g||""+b[b.length-1]===g)return f(G.Kb("0{0}%",B));if(m(b,y))return f(G.Kb("#,##0{0}",B))}return f("General")},format:function(b,e){var a,k,f,v,g;if(P(b,"boolean"))return(""+b).toUpperCase();if(a=this.Ud(b)){if(k=a.colorFormatPart,e&&k&&(e.value=k.foreColor),f=0,v=W.Na(b,self.cultureName),v&&(f=W.Pa(b)),g=G.Dc,v&&a===this.getFormatter(D.Va))g=a.format(p(f)),a&&a.conditionalFormatPart&&0<a.conditionalFormatPart.value&&0>f&&(g="-"+g);else try{g=a.format(b)}catch(Fa){P(b,"string")&&(g=""+b)}return g}return v&&0>f?"-":P(b,"string")?""+b:void 0===b||null===b?G.Dc:""+b},parse:function(b){return this.formatters&&0<this.formatters.length?this.formatters[0].parse(b):null},init:function(){var b,e,a;b=this.formatCached;G.Ec(b)&&S();this.formatters=[];b=b.split(";");this.Sd=1===b.length;(!b||1>b.length||4<b.length)&&S();for(e=0;e<b.length;e++)a=new M(b[e],this.cultureName),this.formatters.push(a);this.getFormatter(D.Hc)||S()},Ud:function(b){var e,a,k,f,v,g,p,c,h=this.getFormatter(D.Hc),m=this.getFormatter(D._text);return"string"==typeof b&&isNaN(b)?m?m:h:W.Na(b,this.cultureName)||P(b,"boolean")?(e=this.getFormatter(D.Va),a=this.getFormatter(D.Ua),k=W.Pa(b),f=h&&h.conditionalFormatPart,v=f&&h.conditionalFormatPart.isMeetCondition(k),g=e&&e.conditionalFormatPart,p=g&&e.conditionalFormatPart.isMeetCondition(k),this.Sd||(f?v:0<k)||0===k&&!this.getFormatter(D.Ua)?c=h:(g?p:0>k)?c=e:a?c=a:e&&(c=e),c):null},Td:function(b){var e,a;if(this.PropertyChanged)for(e=0;e<this.PropertyChanged.length;e++)a=this.PropertyChanged[e],"function"==typeof a&&a(this,b)}},a}(u);g.GeneralFormatter=l;g.FormatterBase=u;U.exports=g},function(U,u){U.exports={Exp_TokenIsNull:"token is null",Exp_InvalidBackslash:"the '\\' cannot be evaluated",Exp_FormatIllegal:"format is illegal.",Exp_ValueIsNull:"value is null",Exp_DuplicatedDescriptor:"The type of descriptor was added.",Exp_TokenIllegal:"token is illegal.",Exp_ValueIllegal:"value is illegal.",Exp_InvalidCast:"InvalidCastException"}},function(U,u,l){U.exports=l(21)},function(U,u,l){function d(b,e){this.x=b;this.y=e}function J(b,e,a,k){this.x=b;this.y=e;this.width=a;this.height=k}function R(b,e){var a,k,f,v=(a=b[0])&&a.value?a.value:a;k=1;for(f=b.length;k<f;k++)a=(a=b[k])&&a.value?a.value:a,v=(e?v>a:v<a)?a:v;return v}function Q(b,e,a,k,f,v,g){v&&(b.strokeStyle=v);g&&(b.lineWidth=g);b.beginPath();b.moveTo(e,a);b.lineTo(k,f);b.stroke()}function K(b,e,a,k,f,v,g,p,c,h,m,x){e?Q(b,a,k,f,v,m,x):Q(b,g,p,c,h,m,x)}function O(b){return 127.5>pa.dc(b)?ma:ea}function H(b,e,a,k,f,v,g){var p={};return g?(p.left=e+f+v,p.width=k-2*f,p.top=b+f,p.height=a-2*f):(p.left=b+f,p.width=a-2*f,p.top=e+f,p.height=k-2*f),p}function I(b,e){var a,k,f=0;a=0;for(k=b.length;a<k;a++)f+=e&&!e(b[a])?0:b[a];return f}function L(b,e,a,k){var f,v,g,p,c=[];g=v=0;for(p=b.length;v<p;v++)e?e(b[v])?c[g++]=a?a(b[v]):b[v]:c[g++]=0:(f=ja(b[v]),!ka(f)&&isFinite(f)&&(c[g++]=f));return k&&k(c),c}function F(b,e,a,k,f,g){k=v(e+k);f=v(a+f);e=v(e);a=v(a);k=v(k-e);f=v(f-a);b.beginPath();b.fillStyle=g;b.fillRect(e,a,k,f);b.fill()}function G(a,k,f){return a=e(a,k),b(a,f)}function q(b,e,a,k,f){b.save();b.rect(e,a,k,f);b.clip()}function D(b,e){var a,k,f,v,g,p,c=[],h=e.length;if(b<=h)c=e.slice(0,b);else{0===h?(c.push("darkgray"),h=1):c=e.slice(0);a=[];f=b-h+1;for(v=0;v<h;v++)a[v]=ba(c[v]);for(v=h;v<b;v++){k=a[v%h];for(g in k)k.hasOwnProperty(g)&&(p=k[g],k[g]=W(p-p/f*(v/h)));k.a=255;c[v]=pa.bc(k)}}return c}function A(b,e,a){this.x=b;this.y=e;this.value=a}function r(b,e,a,k,f){return((e-f)*a+(f-k)*b)/(e-k)}function n(a,k){var f,v;f=k?1:-1;var g=k?e:b,p=new d(f*oa,f*oa),c=a.length;for(v=0;v<c;v++)f=a[v],p.x=g(p.x,f.x),p.y=g(p.y,f.y);return p}function w(b,e,a,k,f,v,g){var p,c,h,m,x,t,y;if(g){p=S(N(k-e,2)+N(f-a,2));c=0;g=[];e<=k?(h=e,m=k,x=e,t=a):(h=k,m=e,x=k,t=f);k=(f-a)/(k-e);e=a-k*e;g.push(new d(x,t));for(a=[6,4,2,4];c<p;)for(f=0,y=a.length;f<y;f++)c+=a[f],c<=p&&(x=c/p*(m-h)+h,t=k*x+e,g.push(new d(x,t)));h=0;for(m=g.length;h<m-1;h+=2)Q(b,g[h].x,g[h].y,g[h+1].x,g[h+1].y,v)}else Q(b,e,a,k,f,v)}function z(b){var e,a,k=[];a=b.length;if(0<a)if(e=b[0].length,a<e){if(2<=a)for(a=0;a<e;a++)k.push(new d(b[0][a],b[1][a]))}else if(2<=e)for(e=0;e<a;e++)k.push(new d(b[e][0],b[e][1]));return k}function C(b){for(var e=0,a=b.length;e<a;e++)if(la(b[e]))return!0;return!1}function c(b,e,a,k,f,g){Q(b,v(e)-.5,v(a)-.5,v(k)-.5,v(f)-.5,la(g)?ea:g,1)}function m(b,e,a,k,f){var g,p,c,h;p=.4*k;switch(e=v(e)-.5,a=v(a)-.5,b.beginPath(),b.moveTo(e,a),k=p/2,g=S(3)*p/2,p/=S(3),f){case 0:c=[-k,0,k];h=[g,p,g];break;case 2:c=[-k,0,k];h=[-g,-p,-g];break;case 3:c=[g,p,g];h=[-k,0,k];break;case 1:c=[-g,-p,-g],h=[-k,0,k]}c.forEach(function(k,f){b.lineTo(v(e+k)-.5,v(a+h[f])-.5)});b.lineTo(e,a);b.closePath();b.fillStyle=ma;b.fill()}function h(b,e,a,k,f,v,g){var p,h,x,t,y,T,n,B,N,ia,E,r,w=a.value;a=a.colorScheme;var S=!1,w=ja(w);ka(w)||(1<w?(w=1,S=!0):-1>w&&(w=-1,S=!0),a=la(a)?"grey":a,e.save(),0===b?(n=v-10,B=.7*g,0<=w?(S&&(p=new d(k+5+n-5,f+g/2)),h=new J(k+5,f+g*(1-.7)/2,n*w,B),x=new d(k+5,f+1),t=new d(k+5,f+g),y=1):(N=X(n*w),S&&(p=new d(k+5+5,f+g/2)),h=new J(k+v-5-N,f+g*(1-.7)/2,N,B),x=new d(k+v-5,f+1),t=new d(k+v-5,f+g),y=3),T=g):1===b&&(ia=g-10,E=.7*v,0<=w?(r=ia*w,h=new J(k+(1-.7)/2*v,f+g-5-r,E,r),S&&(p=new d(k+v/2,f+g-5-r+5),y=0),x=new d(k+1,f+g-5),t=new d(k+v,f+g-5)):(w=X(w),h=new J(k+(1-.7)/2*v,f+5,E,ia*w),S&&(p=new d(k+v/2,f+5+ia-5),y=2),x=new d(k+1,f+5),t=new d(k+v,f+5)),T=v),e.beginPath(),F(e,h.x,h.y,h.width,h.height,a),q(e,h.x,h.y,h.width,h.height),p&&m(e,p.x,p.y,T,y),e.restore(),c(e,x.x,x.y,t.x,t.y),e.restore())}function a(b,e,a,k,f){e=v(e);a=v(a);k=v(k);f=v(f);e===k&&(k-=.5,e=k);a===f&&(f-=.5,a=f);b.moveTo(e,a);b.lineTo(k,f)}function B(b,e,k,f,v,g,p,c,h,m,x){b.beginPath();b.strokeStyle=k;e?a(b,f,v,g,p):a(b,c,h,m,x);b.stroke()}function y(b,e,a,k,f,v){var g,p,c=v.labelText;g=v.fontSize;var h=v.startBox,m=v.endBox,x=v.boxColor,t=v.isInRightOrTopOfBox;b.save();b.beginPath();b.font=g+Ia;p=ea;v.vertical?(v=fa,t?0<g+m-(h-a)&&h-m-a<m?(g=Fa,p=O(x),a=h-m+1,b.rect(e,h-m,k,m),b.clip()):(g=aa,a=h-m-1):0<g-(a+f-h)&&a+f-h<m?(b.rect(e,h-m,k,m),b.clip(),g=aa,p=O(x),a=h-1):(g=Fa,a=h+1),b.textAlign=v,b.textBaseline=g,b.fillStyle=p,b.fillText(c,e+k/2,a)):(g=xa,v=b.measureText(c),t?(v=v.width+m-(e+k-h),0<v&&e+k-(h+m)<m?(b.rect(h,a,m,f),b.clip(),v=T,p=O(x),e=h+m-1):(v=ga,e=h+m+1)):(v=v.width-(h-e),0<v&&h-e<m?(b.rect(h,a,m,f),b.clip(),e=h+1,v=ga,p=O(x)):(v=T,e=h-1)),b.textAlign=v,b.textBaseline=g,b.fillStyle=p,b.fillText(c,e,a+f/2));b.restore()}function t(b,e){switch(e){case 2:return 0===b%4&&0!==b%100||0===b%400?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function E(b,e,a){var k,f,v,g,p,c;return 0>b&&(b=0),1<b&&(b=1),k=ba(e),f=ba(a),v=k.a*(1-b)+f.a*b,g=k.r*(1-b)+f.r*b,p=k.g*(1-b)+f.g*b,c=k.b*(1-b)+f.b*b,"rgba("+parseInt(g,10)+","+parseInt(p,10)+","+parseInt(c,10)+","+ja(v/255)+")"}function M(b){var e=oa,a=-oa;return b.forEach(function(b){b!==k&&b!==x&&(e>b&&(e=b),a<b&&(a=b))}),{min:e,max:a}}function p(b,e,a,f,v,g,p){var c,h,m;f?b.forEach(function(b,v){0!==b&&b!==k&&b!==x&&(e[a+v]=f[v]||e[a+v])}):(c=M(b),h=c.min,m=c.max,b.forEach(function(b,f){if(0!==b&&b!==k&&b!==x){var c;c=(m+h)/2;c=h<=b&&b<=c?E(b===h&&b===c?1:b<=h?0:b>=c?1:(b-h)/(c-h),v,g):E(b===c&&b===m?1:b<=c?0:b>=m?1:(b-c)/(m-c),g,p);e[a+f]=c}}))}function g(b){var e=b.getFullYear(),a=b.getMonth(),k=b.getDate();for(b=1;b<a+1;b++)k+=t(e,b);return k}var f,k,x,W,P,V,Z,e,b,v,N,S,X,Y,ka,ja,oa,ma,ea,ga,T,fa,Fa,aa,xa,Ia;u=l(2);var la=u.j.Fa,pa=u.pc,qa=pa.nc,ba=pa.ec,ra=u.k,ya=ra.Cb;u={};f=u.Vd={};k=null;x=void 0;W=Math.floor;P=Math.PI;V=Math.sin;Z=Math.cos;e=Math.min;b=Math.max;v=Math.round;N=Math.pow;S=Math.sqrt;X=Math.abs;Y=Math.ceil;ka=isNaN;ja=parseFloat;oa=Number.MAX_VALUE;ma="white";ea="black";ga="left";T="right";fa="center";Fa="top";aa="bottom";xa="middle";Ia="px Arial";l=function(){function a(){this.Wd=2;this.Xd=oa;this.Yd=-oa;this.Zd=oa;this.$d=-oa}function v(b,e,a,k){this.X=b;this.Y=e;this.Width=a;this.Height=k;this.Left=this.X;this.Right=this.Left+this.Width;this.Top=this.Y;this.Bottom=this.Y+this.Height}a.prototype={constructor:a,paint:function(b,e,a,k,f,v){var g,p,c;this.options=e;this.setting=e.settings;g=e.values;p=e.dateValues;c=e.zoomFactor;b.save();b.rect(a,k,f,v);b.clip();b.beginPath();0===e.sparklineType&&this._d(b,a,k,f,v,g,p,c);this.ae(b,a,k,f,v,g,p,c);this.be(b,a,k,f,v,g,p,c);b.restore()},ce:function(b){return 0===this.options.sparklineType?3+this.de(b)+1:3},ee:function(b,a){var v,g,p,c,h,m,t=this.fe;if(t)return t;if(t=this.fe=[],v=b.length,this.options.displayDateAxis)for(g=a.length,g=e(v,g),v=[],0<g&&(v=a.slice(0,g)),v.sort(function(b,e){return b===e?0:(b===f&&(b=0),e===f&&(e=0),b-e)}),c=v.length,g=0;g<c;g++){if(h=v[g],"undefined"!==typeof h&&h!==k){for(m=ya(a,h);ra.Bb(t,m);)m=ya(a,h,m+1);isNaN(h)||(p=b[m],p!==x&&p!==k&&isNaN(p)&&p!==f||t.push(m))}}else for(g=0;g<v;g++)p=b[g],"undefined"!==typeof p&&p!==k&&isNaN(p)&&p!==f||t.push(g);return t},ge:function(b,e){var a=e[b];return"undefined"===typeof a||a===k?1===this.setting.options.displayEmptyCellsAs&&(a=0):a===f&&(a=0),a},_d:function(b,e,a,f,v,g,p,c){var h,m,x,t,y,T,n,B,N,ia,E,q,d,r,w=this.ee(g,p),S=w.length-1;0>S&&(S=0);t=this.setting.options;y=this.linePos=[];E=t.displayEmptyCellsAs;for(h=0;h<S;h++)if(T=this.ge(w[h],g),"undefined"!==typeof T&&T!==k){if(B=h+1,n=this.ge(w[B],g),"undefined"===typeof n||n===k)if(1===E)n=0;else if(2===E)for(B=h+2;B<=S;B++)if(q=g[w[B]],"undefined"!==typeof q&&q!==k){n=q;break}"undefined"!==typeof n&&n!==k?(N=this.he(w[h],{Width:f,Height:v},g,p,c),ia=this.he(w[B],{Width:f,Height:v},g,p,c),d=N.Width/2,m={X:N.X+d,Y:N.Y+d},x={X:ia.X+d,Y:ia.Y+d},y[h]={P1:m,P2:x}):h++}if(r=y.length,0<r)for(b.strokeStyle=this.options.getColor(t.seriesColor),b.lineCap="round",b.lineWidth=this.de(c),h=0;h<r;h++)(f=y[h])&&(b.beginPath(),m=f.P1,x=f.P2,b.moveTo(e+m.X,a+m.Y),b.lineTo(e+x.X,a+x.Y),b.stroke(),b.closePath())},ie:function(b,e,a){var f,v,g,p=this.options,c=this.setting.options,h=k,m=this.ge(b,e);a=this.ee(e,a);var t=a.length,y=p.getColor.bind(this);return"undefined"!==typeof m&&m!==k&&(this.Zd!==oa&&this.$d!==-oa||this.je(e),m===this.Zd&&c.showLow&&(h=y(c.lowMarkerColor)),"undefined"!==typeof h&&h!==k||m===this.$d&&c.showHigh&&(h=y(c.highMarkerColor)),"undefined"!==typeof h&&h!==k||(p.displayDateAxis?(f=ya(a,b),0===f&&c.showFirst&&(h=y(c.firstMarkerColor))):0===b&&c.showFirst&&(h=y(c.firstMarkerColor))),"undefined"!==typeof h&&h!==k||(p.displayDateAxis?(v=ya(a,b),v===t-1&&c.showLast&&(h=y(c.lastMarkerColor))):b===t-1&&c.showLast&&(h=y(c.lastMarkerColor))),"undefined"!==typeof h&&h!==k||0>m&&c.showNegative&&(h=y(c.negativeColor)),"undefined"!==typeof h&&h!==k||(g=p.sparklineType,0===g?c.showMarkers&&(h=y(c.markersColor)):1===g?h=y(c.seriesColor):2===g&&(h=y(c.seriesColor)))),h===x||h===k?"Transparent":h},ae:function(b,e,a,k,f,v,g,p){var c,h,m,x,t,y,n,T={Width:k,Height:f},B=this.ee(v,g),N=B.length,ia=this.options.sparklineType;for(f=0;f<N;f++)c=B[f],k=this.ie(c,v,g),c=this.he(c,T,v,g,p),b.fillStyle!==k&&(b.fillStyle=k),0===ia?(b.save(),h=e+c.X+c.Width/2,m=a+c.Y+c.Height/2,b.translate(h,m),b.rotate(45*P/180),b.fillRect(0-c.Width/2,0-c.Height/2,c.Width,c.Height),b.restore()):(x=e+c.X+c.Width/4,x=W(x),t=a+c.Y,y=c.Width/2,n=c.Height,b.fillRect(x,t,y,n))},be:function(b,e,a,k,f,v,g,p){var c,h,m,x,t,y,n=this.setting&&this.setting.options;n&&n.displayXAxis&&this.ke(v,g)&&(c={Width:k,Height:f},h=this.ce(p),m=c.Width-this.ce(p),x=W(this.le(c,v,p))+.5,t=this.options.getColor(n.axisColor),y=p,1>y&&(y=1),b.strokeStyle!==t&&(b.strokeStyle=t),b.lineWidth!==y&&(b.lineWidth=y),b.beginPath(),b.moveTo(e+h,a+x),b.lineTo(e+m,a+x),b.stroke())},me:function(b){var e,a=this.ne(b);return a===-oa||(e=this.oe(b),e===oa)||a===e||0>=a*e},ke:function(b,e){var a,f,v,g,p,c=this.me(b);if(2!==this.options.sparklineType)return c;if(a=this.ee(b,e),f=a.length,!c&&0<f)for(p=0;p<f;p++)if(v=a[p],g=b[v],"undefined"!==typeof g&&g!==k)return!0;return c},pe:function(b,e){var a=this.Xd;return(isNaN(a)||a===oa)&&this.qe(b,e),this.Xd},re:function(b,e){var a=this.Yd;return(isNaN(a)||a===-oa)&&this.qe(b,e),this.Yd},qe:function(b,e){var a,f,v,g,p=new Date(0,0,0),c=oa,h=this.ee(b,e),m=h.length;for(g=0;g<m;g++)a=h[g],f=e[a],isNaN(f)||(v=this.ge(a,b),v!==k&&"undefined"===typeof v||isNaN(v)||"undefined"!==typeof f&&f!==k&&(f>p&&(p=f),f<c&&(c=f)));this.Yd=p;this.Xd=c},se:function(b,e,a,f){var v,g,p,c;p=this.pe(e,a);var h=this.re(e,a),m=[],x=this.ee(e,a),t=x.length;for(e=0;e<t;e++)v=x[e],v=a[v],"undefined"===typeof v||v===k||isNaN(v)||v&&m.push(v);if(m.sort(function(b,e){return b-e}),g=m.length,1<g&&p!==h){a=oa;p=0;for(e=1;e<g;e++)v=m[e],v-=m[e-1],v<a&&0<v&&(a=v),p+=v;return c=(b.Width-this.ce(f)-this.ce(f))*a/p/2,2>c&&(c=2),c}return(b.Width-this.ce(f)-this.ce(f))/2},te:function(b,e,a,k){var f;return this.options.displayDateAxis?this.se(b,e,a,k):(f=this.ee(e,a).length,(b.Width-this.ce(k)-this.ce(k))/f)},ue:function(b,e,a,k,f){var v,g,p,c,h,m,x,t,y=this.ce(f);return this.options.displayDateAxis?(v=this.te(b,a,k,f),g=this.re(a,k),p=this.pe(a,k),g===p?y+v/2:(c=k[e])?(h=b.Width-y-this.ce(f),h-=v,m=g-p,y+W((c-p)/m*h)):0):(v=this.te(b,a,k,f),x=ya(this.ee(a,k),e),t=y+v*x,W(t))},ve:function(e,a){var k,f=e.Width-this.ce(a)-this.ce(a);return f=b(f,0),k=e.Height-this.ce(a)-this.ce(a),k=b(k,0),{Width:f,Height:k}},je:function(b){var e,a,f=b.length;for(a=0;a<f;a++)e=b[a],"undefined"!==typeof e&&e!==k&&("number"!=typeof e&&(e=0),e<this.Zd&&(this.Zd=e),e>this.$d&&(this.$d=e))},ne:function(b){var e,a;return this.$d!==-oa&&this.$d||this.je(b),e=this.setting.options,a=e.maxAxisType,0===a?this.$d:1===a?e.groupMaxValue:2===a?e.manualMax:this.$d},oe:function(b){var e,a;return this.Zd!==oa&&this.Zd||this.je(b),e=this.setting.options,a=e.minAxisType,0===a?this.Zd:1===a?e.groupMinValue:2===a?e.manualMin:void 0},we:function(b,e,a,k){b=this.ve(b,k);k=this.ne(a);var f=this.oe(a),v=k-f,g,p;if(k===f){if(0===k)return 0;v=X(k)}return g=a[e],g||(g=0),p=b.Height/v,g*p},xe:function(b,e,a,f){var v,g,p,c=this.options.sparklineType;if(0===c)return this.we(b,e,a,f);if(1===c){if(v=a[e],("undefined"===typeof v||v===k)&&1===this.setting.options.displayEmptyCellsAs)return 0;if(g=this.we(b,e,a,f),g>-this.Wd&&g<this.Wd){if(0<v)return g+this.Wd;if(0>v)return g-this.Wd}return g}return 2===c?(v=a[e],"undefined"===typeof v||v===k||0===v||isNaN(v)?0:(p=this.ve(b,f),0<=v?p.Height/2:-p.Height/2)):void 0},ye:function(b,e,a){var k,f=this.ve(b,a),v=this.ne(e),g=this.oe(e);if(v===-oa||g===oa)return b.Height/2;if(e=v-g,v===g){if(0===v)return b.Height/2;e=v;0>v&&(v=0)}return k=f.Height/e,this.ce(a)+v*k},le:function(b,e,a){return 2===this.options.sparklineType?b.Height/2:this.ye(b,e,a)},ze:function(b,e,a,f){var v,g;b=this.ve(b,f);f=this.ne(a);var p=this.oe(a),c=f-p;if(f===p){if(0===f)return 0;c=f}return v=b.Height/c,g=this.ge(e,a),"undefined"!==typeof g&&g!==k||(g=0),f!==p&&0<f*p?0<=g?(g-p)*v:(g-f)*v:g*v},Ae:function(b,e,a,f){var v,g,p,c=this.options.sparklineType;return 0===c?this.ze(b,e,a,f):1===c?(v=this.ze(b,e,a,f),g=this.Wd,v>-g&&v<g&&(p=this.ge(e,a),"undefined"!==typeof p&&p!==k||(p=0),0!==p)?0<p?v+g:v-g:v):2===c?this.xe(b,e,a,f):void 0},Be:function(e,a,k,f,g){var p,c,h,m,x,t,y,n,T,B=this.te(a,k,f,g);f=this.ue(a,e,k,f,g);return 0>B&&(B=0),B=W(B),1===B%2&&(B+=1),p=this.xe(a,e,k,g),c=this.le(a,k,g),h=this.ne(k),m=this.oe(k),0>h&&0>m?x=b(this.ce(g),c):(x=c,0<=p&&(x=c-p)),t=this.Ae(a,e,k,g),y=new v(f,x,B,X(t)),0!==p&&(n=this.ce(g),y.Y<n&&y.Bottom<n+1?y.Height=W(y.Height+1):(T=a.Height-this.ce(g),y.Bottom>T&&y.Y>T-1&&(y.Y=T-t,y.Height=t))),y},de:function(b){b*=this.setting.options.lineWeight;return 1>b&&(b=1),b},he:function(b,e,a,f,g){var p,c,h,m,x,t=this.de(g);return t++,2>t&&(t=2),p=this.Be(b,e,a,f,g),0===this.options.sparklineType&&(p.X+=(p.Width-t)/2,c=this.ge(b,a),"undefined"!==typeof c&&c!==k?(0<=c?p.Y-=t/2:p.Y=p.Bottom-t/2,p.Width=t,p.Height=t):(p.Width=0,p.Height=0)),this.setting.options.rightToLeft&&(h=p.X,m=e.Width-h,x=m-p.Width,p=new v(x,p.Y,p.Width,p.Height)),p}};return a}();u.SparklineRender=l;u.SparklineExRenders={PIESPARKLINE:function(b,a,k,f,v,g){var p,c,h;k+=v/2;f+=g/2;var m=e(v,g)/2-5,x=-.5*P,t=k+m*Z(x),y=f+m*V(x),n=[],T=[];if(!(0>=m)){v=L(a.values,function(b){return!la(b)&&!ka(b)&&isFinite(b)},function(b){return X(b)},function(b){1===b.length&&(b[1]=1-b[0])});g=v.length;p=D(g,a.colors);c=I(v);b.save();for(h=0;h<g;h++)a=x+v[h]/c*2*P,b.beginPath(),b.moveTo(k,f),b.lineTo(t,y),b.arc(k,f,m,x,a,!1),b.lineTo(k,f),b.fillStyle=p[h],b.fill(),n.push(t),T.push(y),x=a,t=k+m*Z(x),y=f+m*V(x);for(h=0;h<g;h++)Q(b,k,f,n[h],T[h],ma);b.restore()}},AREASPARKLINE:function(a,f,g,p,c,h){function m(b){var e,f,g;b===k&&"undefined"!==typeof b||(e=G(b,E,N),f=0!==S?(E-e)/S:w/2,g=v(ia+f)-.5,Q(a,q,g,q+d,g,"blue"))}var x,t,y,n,T,B,N,E,q,ia,d,w,S,P,z,C,aa,M;a.save();x=f.points;t=f.mini;y=f.maxi;n=f.line1;T=f.line2;B=f.colorPositive;f=f.colorNegative;x=L(x,function(b){return!la(b)&&!ka(b)&&isFinite(b)});B=la(B)?"#787878":B;f=la(f)?"#CB0000":f;P=R(x,!1);y=la(y)?P:y;E=b(y,P);y=R(x,!0);t=la(t)?y:t;N=e(t,y);N=0<N?0:N;E=0>E?0:E;t=0;t=t>E?E:t;t=t<N?N-1:t;y=x.length;g=H(g,p,c,h,5);q=g.left;ia=g.top;d=g.width;w=g.height;p=d/(y-1);S=(E-N)/w;g=[];h=ia+(E-t)/S;for(M=0;M<y;M++)c=x[M],P=q+p*M,aa=ia+(E-c)/S,0===M&&g.push(new A(P,h,t)),0<M&&0>c*x[M-1]&&(z=g[g.length-1],z&&(C=r(z.x,z.y,P,aa,h),g.push(new A(C,h,t)))),g.push(new A(P,aa,c)),M===y-1&&g.push(new A(P,h,t));a.beginPath();C=0;for(y=g.length;C<y;C++)(x=g[C])&&(a.lineTo(x.x,x.y),z=g[C-1],x.value===t&&z&&(a.fillStyle=z.value>t?B:f,a.fill(),C!==y-1&&(a.beginPath(),a.lineTo(x.x,x.y))));m(n);m(T);a.restore()},SCATTERSPARKLINE:function(a,k,f,g,p,c){function h(b,e,k,f){r=b[e];S=r.x;C=r.y;r=b[e+1];aa=r.x;M=r.y;fa=Va+(S-d)*L/(ia-d);W=Va+(aa-d)*L/(ia-d);X=ra+(E-C)*ea/(E-N);Z=ra+(E-M)*ea/(E-N);ba&&w(a,fa,X,W,Z,k,ya);sa&&(0===e&&f(fa,X),f(W,Z))}function m(b,e,a,k,f){var v=n(b,!0);b=n(b,!1);N=la(Y)?v.y:e;E=la(Fa)?b.y:a;d=la(D)?v.x:k;ia=la(Ka)?b.x:f;ia=d>=ia?d+1:ia;E=N>=E?N+1:E}function x(b,e,k){a.beginPath();a.arc(b-2,e-2,2,0,2*P,!1);a.fillStyle=k;a.fill()}function t(b,e){a.beginPath();a.strokeStyle=u;a.arc(b-2,e-2,2,0,2*P,!1);a.stroke()}function y(b,e){a.beginPath();a.strokeStyle=ja;a.strokeRect(b-2,e-2,4,4)}var T,B,N,E,d,ia,r,S,C,aa,M,fa,X,W,Z,xa,V,A,Ia,Qa,Ca=k.points1,l=k.points2,D=k.minX,Ka=k.maxX,Y=k.minY,Fa=k.maxY,G=k.hLine,pa=k.vLine,ga=k.xMinZone,wa=k.xMaxZone,qa=k.yMinZone,Aa=k.yMaxZone,ka=k.tags,sa=k.drawSymbol,ba=k.drawLines,u=k.color1,ja=k.color2,ya=k.dash;k=H(f,g,p,c,5);var Va=k.left,ra=k.top,L=k.width,ea=k.height;if(!(!Ca||0>=Ca.length||(T=z(Ca),0>=T.length||l&&0<l.length&&(B=z(l),0>=B.length)))){q(a,f,g,p,c);a.beginPath();sa=!!la(sa)||sa;u=la(u)?"#969696":u;ja=la(ja)?"#CB0000":ja;m(T,Y,Fa,D,Ka);!(la(ga)||la(wa)||la(qa)||la(Aa))&&d<=ga&&ga<=ia&&d<=wa&&wa<=ia&&N<=qa&&qa<=E&&N<=Aa&&Aa<=E&&(xa=b(d,ga),V=e(ia,wa),Ia=b(N,qa),Qa=e(E,Aa),xa>=V&&(V=xa+1),Ia>=Qa&&(Qa=Ia+1),F(a,Va+(xa-d)*L/(ia-d),ra+(E-Qa)*ea/(E-N),(V-xa)*L/(ia-d),(Qa-Ia)*ea/(E-N),"#DCDCDC"));p=-oa;c=-oa;V=xa=oa;f=0;for(g=T.length;f<g-1;f++)h(T,f,u,t),ka&&(0===f&&(X>c&&(p=fa,c=X),X<V&&(xa=fa,V=X)),Z>c&&(p=W,c=Z),Z<V&&(xa=W,V=Z));if(l&&0<l.length)for(m(B,N,E,d,ia),f=0,g=B.length;f<g-1;f++)h(B,f,ja,y);ka&&(x(p,c,"#CB0000"),x(xa,V,"#0000FF"));la(G)||N<=G&&G<=E&&(A=v(ra+(E-G)*ea/(E-N))-.5,w(a,Va,A,Va+L,A,"#CB0000"));la(pa)||d<=pa&&pa<=ia&&(A=v(Va+(pa-d)*L/(ia-d))-.5,w(a,A,ra,A,ra+ea,"#CB0000"));a.restore()}},BULLETSPARKLINE:function(b,e,a,k,f,g){function p(e,v,p,c,h){b.fillStyle=e;e=m;v=v/p*x;v>x&&(v=x);c=w?new J(a+f*c,e-v,f*h,v):new J(e,k+g*c,v,g*h);b.fillRect(c.x,c.y,c.width,c.height)}var c,h,m,x,t,y,T,n=e.measure,B=e.target,N=e.maxi,E=e.good,d=e.bad,q=e.forecast,ia=e.tickUnit,r=e.colorScheme,w=e.vertical;if(!(la(N)||0>N)){if(n=la(n)||0>n?0:n,E=la(E)||0>E?0:E,d=la(d)||0>d?0:d,B=la(B)?0:B,q=la(q)?0:q,ia=la(ia)?0:ia,r=la(r)?"#A0A0A0":r,c="#252525",n>N&&(n=N,c="#CB0000"),E>N&&(E=N,c="#CB0000"),d>N&&(d=N,c="#CB0000"),B>N&&(B=0,c="#CB0000"),q>N&&(q=N,c="#CB0000"),h=H(a,k,f,g,5,g-10,w),m=h.left,x=h.width,b.save(),p(qa(r,1.66),1,1,.2,.6),p(qa(r,1.33),E,N,.2,.6),p(r,d,N,.2,.6),p(c,n,N,.375,.25),0<q&&(t=m,y=q/N*x,y>x&&(y=x),K(b,w,a+.5*f,t,a+.5*f,t-y,t,k+.5*g,t+y,k+.5*g,"#3690BF",3)),0<B&&(T=v(m-B/N*x*(w?1:-1))-.5,K(b,w,a+.2*f,T,a+.8*f,T,T,k+.2*g,T,k+.8*g,"#CB0000",1)),0<ia)for(e=W(N/ia),h=0;h<=e;h++)c=v(m-x/N*(w?1:-1)*ia*h)-.5,K(b,w,a,c,a+.05*f,c,c,k+g,c,k+.95*g,"#646464",1);b.restore()}},SPREADSPARKLINE:function(a,k,f,g,p,c){var h,m,x,t,y,n,T,B,N,E,d=k.spreadData,ia=k.showAverage,r=k.scaleStart,w=k.scaleEnd,S=k.style;n=k.colorScheme;k=k.vertical;m=d.length;if(!(0>=m)){h=d[0].key;m=d[m-1].key;r=la(r)?h:r;w=la(w)?m:w;S=la(S)?4:S;n=la(n)?"#646464":n;x=H(f,g,p,c,5,c-10,k);h=x.left;m=x.width;t=x.top;x=x.height;q(a,f,g,p,c);a.beginPath();a.strokeStyle=n;a.fillStyle=n;a.lineWidth=2;f=R(d,!1);g=0;for(p=d.length;g<p;g++)if(T=d[g],B=T.key,c=T.value,y=h+(k?-1:1)*m*(B-r)/(w-r),k?(y=e(y,h),y=b(y,h-m)):(y=b(y,h),y=e(y,h+m)),y=v(y),1===S)n=c/2*x/f,n=.5>n?.5:n,c=t+x/2-n,n=t+x/2+n,K(a,k,c,y,n,y,y,c,y,n);else if(4===S)n=c*x/f,n=1>n?1:n,K(a,k,t,y,t+n,y,y,t+x,y,t+x-n);else if(6===S)K(a,k,t,y,t+x,y,y,t,y,t+x);else{if(3===S){N=c;n=x;E=T.randomNumbers;for(var P,z=[],C=b(100,10*N),aa=0,M=[],fa=0;z.length<N;){P=W(E[fa++]*n);var X;if(!(X=aa>C))a:{var Z,xa=void 0;X=0;for(Z=M.length;X<Z;X++)if(xa=M[X],xa[0]<=P&&P<=xa[1]){X=!1;break a}X=!0}X&&(z.push(P),M.push([P-3,P+3]));aa++}N=z}for(E=1;E<=c;E++){switch(S){case 2:n=t+x/2-5-(c/2-E)*x/f;break;case 3:n=t+x-5-N[E-1];break;default:n=t+x-E*x/f}n=v(n);a.beginPath();a.fillRect(k?n:y,k?y:n,2,2)}}if(ia){y=S=ia=0;for(T=d.length;y<T;y++)B=d[y],S+=B.value,ia+=B.key*B.value;y=h-(k?1:-1)*m*((0===S?0:ia/S)-r)/(w-r);K(a,k,t-5,y,t+x+5,y,y,t-5,y,t+x+5,"#CB0000")}a.restore()}},STACKEDSPARKLINE:function(b,e,a,k,f,g,p){function c(e,a,k){var f,g;a=a>z?z:a;k&&!k(a)||(a=0>a?0:a,g=a/z*y,Ca?(f=v(t-g)-.5,Q(b,n,f,n+T,f,e)):(f=v(t+g)-.5,Q(b,f,n,f,n+T,e)))}var h,m,x,t,y,n,T,B,N,E,d,q,r,ia,w=e.points,S=e.colorRange,P=e.labelRange,z=e.maximum,aa=e.targetRed,M=e.targetGreen,X=e.targetBlue,Z=e.targetYellow;x=e.color;var Qa=e.highlightPosition,Ca=e.vertical,W=e.textOrientation;e=e.textSize;if(!(la(w)||0>=(h=w.length))){if(x=la(x)?"#646464":x,la(S)||S.length!==h||C(S))for(S=[],m=0;m<h;m++)S.push(qa(x,1+m/h));x=I(w,function(b){return 0<b});z=la(z)||z<x?x:z;W=la(W)?0:W;e=la(e)||0>=e?10:e;e=ka(e)?e:e*p.zoomFactor;p=H(a,k,f,g,5,g-10,Ca);t=p.left;y=p.width;n=p.top;T=p.height;b.save();p=t;x=0;for(m=h;x<m;x++)h=w[x],0>=h||(B=h/z*y,Ca?(N=a+.15*f,d=.7*f,E=p-B,q=B):(N=p,d=B,E=k+.15*g,q=.7*g),r=x+1===Qa?"#CB0000":S[x],b.fillStyle=r,b.beginPath(),b.fillRect(N,E,d,q),ia=P&&P[x],ia&&(b.save(),b.fillStyle=O(r),b.textBaseline=xa,b.textAlign=fa,b.font=e+Ia,b.rect(N,E,d,q),b.clip(),b.beginPath(),1===W?(b.translate(N+d/2,E),b.rotate(Math.PI/2),b.fillText(ia,q/2,0)):b.fillText(ia,N+d/2,E+q/2),b.restore()),p+=(Ca?-1:1)*B);c("red",aa,function(b){return 0<b});c("green",M);c("blue",X);c("yellow",Z);b.restore()}},HBARSPARKLINE:function(b,e,a,k,f,g){h(0,b,e,a,k,f,g)},VBARSPARKLINE:function(b,e,a,k,f,g){h(1,b,e,a,k,f,g)},VARISPARKLINE:function(b,e,a,k,f,g,v){function p(e,v,p,c,h,t,y,n,T,E,Qa,r,w,ia){var P,z,aa,Ca;wa?(P=a+.25*f,z=0===v?C-M:C,aa=.5*f,Ca=M,F(b,P,z,aa,Ca,e)):(P=0===v?C:C-M,z=k+.25*g,aa=M,Ca=.5*g,F(b,P,z,aa,Ca,e));d&&(q(b,P,z,aa,Ca),wa?m(b,a+f/2,x+p,N,h):m(b,x+c,k+g/2,N,t),b.restore());Ka&&(v=0,d&&(v=.4*N*S(3)/2+7),b.save(),b.beginPath(),b.font=qa+Ia,b.fillStyle=ea,wa?(b.textAlign=fa,y=qa+M+y,(Qa=wa)?b.textBaseline=n:b.textAlign=n,0<y&&ia<M&&(b.rect(P,z,aa,Ca),b.clip(),Qa?b.textBaseline=T:b.textAlign=T,b.fillStyle=O(e)),b.fillText(B,a+f/2,C+w*(M-v))):(b.textBaseline=xa,y=b.measureText(B).width+M+E,(n=wa)?b.textBaseline=Qa:b.textAlign=Qa,0<y&&ia<M&&(b.rect(P,z,aa,Ca),b.clip(),n?b.textBaseline=r:b.textAlign=r,b.fillStyle=O(e)),b.fillText(B,C+w*(v-M),k+g/2)),b.restore())}function h(e,a,k,f,g,v,p,h,m,x){wa?c(b,e,a,k,f,m):c(b,g,v,p,h,x)}var x,t,y,n,B,N,E,d,r,w,ia,P,z,C,M,Z,W,V,A=e.variance,l=e.reference,D=e.mini,Qa=e.maxi,Ca=e.mark,pb=e.tickUnit,Ka=e.legend,Y=e.colorPositive,pa=e.colorNegative,wa=e.vertical,qa=13*v.zoomFactor,A=ja(A);if(!(ka(A)||(pa=la(pa)?"red":pa,Y=la(Y)?"green":Y,pb=la(pb)?0:pb,Qa=la(Qa)?1:Qa,D=la(D)?-1:D,E=!la(l),E||(l=0),wa?(x=k+g-5,t=g-10,y=f-20,n=-1):(x=a+5,t=f-10,y=g-20,n=1),Ka&&(r=ja(e.variance),ka(r)||(w=""+r,ia=w.substr(w.indexOf(".")+1).length,B=2<=ia?(100*r).toFixed(ia-2)+"%":(100*r).toFixed(0)+"%")),A>Qa&&(A=Qa,d=!0),A<D&&(A=D,d=!0),l=G(l,Qa,D),d&&(N=G(y,60,15)),P=X(Qa-D),z=t/P,C=x+n*X(D-l)*z,M=X(A-l)*z,M>X(P)*z&&(M=X(P+D)*z),Z=x+n*t,wa&&C<Z||!wa&&C>Z))){if(q(b,a,k,f,g),A>l?p(Y,0,5-t,t-5,0,1,k-C,aa,Fa,C-a-f,ga,T,-1,X(Qa-A)*z):(M>X(P)*z&&(M=X(P+D)*z,C=x),p(pa,1,-5,5,2,3,C-k-g,Fa,aa,a-C,T,ga,1,X(D-A)*z)),E&&(W=x+n*Math.abs(D-l)*z,h(a,W,a+f,W,W,k,W,k+g)),0<pb)for(b.beginPath(),e=P/pb,v=0;v<=e;v++)y=x+t/e*v*n,h(a,y,a+.1*f,y,y,k+.9*g,y,k+g,"#969696","#969696");!la(Ca)&&D<=Ca&&Ca<=Qa&&(b.beginPath(),V=x-(wa?1:-1)*X(D-Ca)*z,h(a,V,a+.33*f,V,V,k+.66*g,V,k+g,"#CB0000","#CB0000"),b.fill());b.restore()}},BOXPLOTSPARKLINE:function(a,f,g,v,p,c){function h(b,e,k,f,g,v,p,c,h){O?F(a,e,k,f,g,b):F(a,v,p,c,h,b)}function m(b,e,k,f){K(a,O,fa+W*b,k,fa+W*e,k,k,fa+W*b,k,fa+W*e,f)}var x,t,y,n,T,B,N,E,d,r,w,S,ia,P,z,C,aa,M,fa,W,Z,xa,Qa,Ca,A,V,Ia,l,D,Ka,Y,Fa,G,pa,ga,wa,qa,ba,Aa,u,sa=f.points,ya=f.boxPlotClass;qa=f.showAverage;var ra=f.scaleStart;pa=f.scaleEnd;var oa=f.acceptableStart,Va=f.acceptableEnd,ea=f.style,ma=f.colorScheme,O=f.vertical;ga=R(sa,!1);wa=R(sa,!0);if(!(la(sa)||(sa=L(sa),0>=sa.length))){ya=ya===k||"string"!==typeof ya?"5ns":ya.toLocaleLowerCase();"5ns"!==ya&&"7ns"!==ya&&"tukey"!==ya&&"bowley"!==ya&&"sigma3"!==ya&&(ya="5ns");ra=ja(ra);ra=ka(ra)?wa:ra;pa=ja(pa);pa=ka(pa)?ga:pa;oa=ja(oa);Va=ja(Va);ma!==k&&"string"===typeof ma||(ma="#D2D2D2");(ea===k||0!==ea&&1!==ea)&&(ea=0);ra>wa&&(ma="#CB0000",ra=wa);pa<ga&&(ma="#CB0000",pa=ga);q(a,g,v,p,c);a.lineWidth=2;c=H(g,v,p,c,5,c-10,O);g=c.left;v=c.width;p=c.top;c=c.height;x=O?-1:1;t=f.perc02;y=f.perc09;n=f.perc10;T=f.perc90;B=f.perc91;N=f.perc98;E=f.q1;d=f.q3;r=d-E;w=wa;S=ga;ia=1.5*r;P=1.5*r;z=f.stDev;C=I(sa)/b(1,sa.length);M=aa=0;fa=p+.1*c;W=.7*c;Z=X(pa-ra);xa=0;for(Qa=sa.length;xa<Qa;xa++)Ca=sa[xa],Ca<E&&Ca>=E-1.5*r&&Ca-(E-1.5*r)<ia&&(ia=Ca-(E-1.5*r),w=Ca),Ca>d&&Ca<=d+1.5*r&&d+1.5*r-Ca<P&&(P=d+1.5*r-Ca,S=Ca),A=!1,aa=g+(Ca-ra)/Z*x*v,"tukey"===ya&&(Ca<=E-1.5*r||Ca>=d+1.5*r)&&(A=!0,M=Ca<=E-3*r||Ca>=d+3*r?0:1),"7ns"===ya&&(Ca<=t||Ca>=N)&&(A=!0,M=1),"sigma3"===ya&&(Ca<=C-2*z||Ca>=C+2*z)&&(A=!0,M=Ca<=C-3*z||Ca>=C+3*z?0:1),A&&(1===ea?1===M?m(.2,.8,aa,"#969696"):m(.3,.7,aa,"#969696"):(V=.1*c,2>V&&(V=2),a.beginPath(),a.strokeStyle="#969696",Ia=p+.45*c,l=aa,a.arc(O?Ia:l,O?l:Ia,V/2,0,2*Math.PI),a.stroke()));switch((ra>oa||pa<Va)&&(ma="#C0FF00"),oa=b(ra,oa),Va=e(pa,Va),oa>Va?ma="#CB0000":oa<Va&&(D=g+(oa-ra)/Z*x*v,Ka=g+(Va-ra)/Z*x*v,Y=p+.9*c,K(a,O,Y,D,Y,Ka,D,Y,Ka,Y,"#646464")),Fa=g+(E-ra)/Z*x*v,V=X(g+(d-ra)/Z*x*v-Fa),G=f.median,f=g+(G-ra)/Z*x*v,ya){case "7ns":wa=t;D=N;break;case "tukey":wa=w;D=S;break;case "sigma3":Fa=g+(C-z-ra)/Z*x*v;V=X(g+(C+z-ra)/Z*x*v-Fa);f=g+(C-ra)/Z*x*v;qa=C-2*z;wa=qa>ra?qa:wa;qa=C+2*z;D=qa<pa?qa:ga;qa=!1;break;default:D=ga}pa=g+(wa-ra)/Z*x*v;ga=g+(D-ra)/Z*x*v;1===ea?h("#F2F2F2",fa,ga,W,pa-ga,pa,fa,ga-pa,W):(ba=p+.45*c,K(a,O,ba,pa,ba,ga,pa,ba,ga,ba,"#969696"));h(ma,fa,Fa-V,W,V,Fa,fa,V,W);K(a,O,fa,f,fa+W,f,f,fa,f,fa+W,"#969696");0===ea&&(K(a,O,fa+.3*W,ga,fa+.7*W,ga,ga,fa+.3*W,ga,fa+.7*W,"#969696"),K(a,O,fa+.3*W,pa,fa+.7*W,pa,pa,fa+.3*W,pa,fa+.7*W,"#969696"));"7ns"!==ya&&"bowley"!==ya||("7ns"===ya?(wa=y,D=B):(wa=n,D=T),Aa=g+(wa-ra)/Z*x*v,u=g+(D-ra)/Z*x*v,m(.3,.7,u,"#969696"),m(.3,.7,Aa,"#969696"));qa&&(aa=g+(C-ra)/Z*x*v,m(.2,.8,aa,"#CB0000"));a.restore()}},CASCADESPARKLINE:function(a,f,g,v,p,c,h){var m,x,t,n,T,N,E,d,r,w,S,P,z,ia,C,aa,M,fa,W,Z,V,xa,A;Z=f.points;var Qa=f.labels,Ca=f.pointIndex;W=f.minimum;V=f.maximum;t=f.colorPositive;P=f.colorNegative;f=f.vertical;h=13*h.zoomFactor;if(!(la(Z)||(m=Z.length,0>=m||(Ca=parseInt(Ca),ka(Ca)||0>=Ca||Ca>m)))){Qa=la(Qa)?[]:Qa;t!==k&&"string"===typeof t||(t="#8CBF64");P!==k&&"string"===typeof P||(P="#D6604D");x=t;t=qa(t,1.3);n=P;T=qa(P,1.3);N=1;w=r=d=E=0;S=[];z=P=0;for(ia=Z.length;z<ia;z++)C=Z[z],S[N]=[],aa=S[N],ka(C)?(aa[0]=0,aa[1]=E,aa[2]=0):(aa[0]=X(C),E=C+E,aa[1]=0<C?d:E,aa[2]=C),aa[3]=N,r=e(d,r),w=b(d,w),N===m&&(P=0>r?-r:0,aa[1]=0<C?0:C),d=C+d,N++;E-=C;W=ja(W);ka(W)||0<W||W>r?(M=r,W=r):(M=W,P=-W);V=ja(V);ka(V)||0>V||V<w?fa=w:(fa=V,P=-W);W=H(g,v,p,c,5,c-10,f);C=W.left;N=W.width;Z=W.top;W=W.height;V=f?-1:1;M=N/(fa-M);q(a,g,v,p,c);a.beginPath();a.lineWidth=1;N=S[Ca];fa=N[2];S=C+V*(N[1]+P)*M;V=N[0]*M;x=1===Ca||Ca===m?0<=fa?x:n:0<=fa?t:T;f?F(a,Z,S-V,W,V,x):F(a,S,Z,V,W,x);f?(1!==Ca&&(Ca!==m?B(a,0<fa,"#DCDCDC",g,S,Z+W,S,g,S-V,Z+W,S-V):(xa=C-(E+P)*M,B(a,!0,"#DCDCDC",g,xa,Z+W,xa))),Ca!==m&&B(a,0<fa,"#DCDCDC",Z,S-V,g+p,S-V,Z,S,g+p,S)):(1!==Ca&&(Ca!==m?B(a,0<fa,"#DCDCDC",S,v,S,Z+W,S+V,v,S+V,Z+W):(A=C+(E+P)*M,B(a,!0,"#DCDCDC",A,v,A,Z+W))),Ca!==m&&B(a,0<fa,"#DCDCDC",S+V,Z,S+V,v+c,S,Z,S,v+c));m=Qa[Ca-1];0<Qa.length&&!la(m)&&""!==m&&y(a,g,v,p,c,{labelText:m,vertical:f,isInRightOrTopOfBox:0<fa,fontSize:h,startBox:S,endBox:V,boxColor:x});B(a,f,ea,g,C-P*M,g+p,C-P*M,C+P*M,v,C+P*M,v+c);a.restore()}},PARETOSPARKLINE:function(b,e,a,k,f,g,p){function c(b){return b=ja(b),b=ka(b)?0:b,b=0>b?0:b,1<b?1:b}var h,m,x,t,n,T,N,E,d,r,S,w,P;d=e.points;S=e.pointIndex;var z=e.colorRange,ia=e.target,C=e.target2,aa=e.highlightPosition,M=e.label,fa=e.vertical;e=13*p.zoomFactor;if(!(la(d)||(h=d.length,0>=h||(S=parseInt(S),ka(S)||0>=S||S>h)))){z=la(z)?[]:z;ia=c(ia);C=c(C);M=parseInt(M);M=ka(M)?0:M;m=1;h=0;p=[];x=0;for(t=d.length;x<t;x++)n=d[x],p[m]=[],T=p[m],0>n||ka(n)||la(n)?(T[0]=1===m?0:h,T[1]=0):(h+=n,T[0]=1===m?0:h-n,T[1]=n),m++;m=H(a,k,f,g,5,g-10,fa);N=m.left;E=m.width;d=m.top;x=m.height;r=fa?-1:1;m=E/h;q(b,a,k,f,g);b.beginPath();b.lineWidth=1;p=p[S];T=p[1];t=N+r*p[0]*m;n=p[1]*m;S=S===aa?"#CB0000":0===z.length||"string"!==typeof z[S-1]?"#969696":z[S-1];fa?F(b,d,t-n,x,n,S):F(b,t,d,n,x,S);1===M?w=(p[0]+T)/h*1E3:2===M&&(w=T/h*1E3);w=v(w)/10+"%";1!==M&&2!==M||""===w||y(b,a,k,f,g,{labelText:w,vertical:fa,isInRightOrTopOfBox:(p[0]+p[1])*m<E/2,fontSize:e,startBox:t,endBox:n,boxColor:S});P=["#8CBF64","#EE5D5D"];[ia,C].forEach(function(e,v){var p=Y(N+r*E*e);B(b,fa,P[v],a,p,a+f,p,p,k,p,k+g)});b.restore()}},MONTHSPARKLINE:function(b,e,a,k,f,g){var v,c=e.year,h=e.month,m=e.values,x=e.emptyColor||"lightgray",y=e.startColor,n=e.middleColor,T=e.endColor,B=(f-14)/6,N=(g-16)/7,E=[],d=(new Date(c,h-1,1)).getDay();for(v=0;42>v;v++)v<d?E[v]="white":v<d+t(c,h)?E[v]=x:E[v]="white";p(m,E,d,e.colors,y,n,T);b.save();b.rect(a,k,f,g);b.clip();b.beginPath();for(f=e=0;6>f;f++)for(g=0;7>g;g++)b.fillStyle=E[e++],b.fillRect(a+f*B+2*(f+1),k+g*N+2*(g+1),B,N);b.restore()},YEARSPARKLINE:function(b,e,a,k,f,v,c){var h,m,x,y,n,T,B,N=e.year;m=e.values;var E=e.emptyColor||"lightgray",d=e.startColor,q=e.middleColor,r=e.endColor,S=parseInt(366/7)+2;y=[];var w=(new Date(N,0,1)).getDay(),P=g(new Date(N,11,31));for(h=0;h<7*S;h++)h<w?y[h]="white":h<w+P?y[h]=E:y[h]="white";p(m,y,w,e.colors,d,q,r);b.save();b.rect(a,k,f,v);b.clip();c=c.zoomFactor;h=15*c;e=a+h;f-=h;b.save();b.translate(a+h/2,k+v);b.rotate(-Math.PI/2);b.font=13*c+Ia;b.fillStyle="black";b.textBaseline="middle";b.textAlign="center";b.fillText(N,v/2,0);b.restore();h=(f-2*(S+1))/S;m=(v-16)/7;a=0;v=[];for(c=0;c<S;c++)for(f=0;7>f;f++)x={x:e+c*h+2*(c+1),y:k+f*m+2*(f+1),w:h,h:m},v[a]=x,b.fillStyle=y[a++],b.fillRect(x.x,x.y,x.w,x.h);k=[];y={};for(a=0;12>a;a++)y[a]=g(new Date(N,a,1))-1+w;e=y[11]+t(N,12)-1;for(c=a=0;c<S;c++)for(f=0;7>f;f++)w<=a&&a<w+P&&(n=new Date(N,0,a-w+1),T=n.getMonth(),B=y[T],x=v[a],B<=a&&a<7+B&&k.push({x1:x.x,y1:x.y-1,x2:x.x,y2:x.y+x.h+1}),a!==B&&0!==n.getDay()||k.push({x1:x.x-1,y1:x.y,x2:x.x+x.w+1+(a===B?2:0),y2:x.y}),e-7<a&&a<=e&&k.push({x1:x.x+x.w,y1:x.y-1,x2:x.x+x.w,y2:x.y+x.h+1}),a!==e&&6!==n.getDay()||k.push({x1:x.x-1-(a===e?2:0),y1:x.y+x.h,x2:x.x+x.w+1,y2:x.y+x.h})),a++;b.strokeStyle="black";b.lineWidth=2;for(x=0;x<k.length;x++)n=k[x],b.beginPath(),b.moveTo(n.x1,n.y1),b.lineTo(n.x2,n.y2),b.stroke();b.restore()}};U.exports=u},function(U,u,l){U.exports=l(23)},function(U,u){function l(d){return d&&void 0!==d.text}function d(d,q){var l,A;if(null===d||void 0===d)return!1;if("number"===typeof d)q.value=d;else if("boolean"===typeof d)q.value=d?1:0;else if(d instanceof Date)q.value=F.Ra(d);else{if("string"!==typeof d||(d=d.trim(),0===I(d))||(l=!1,"%"===d.charAt(I(d)-1)&&(l=!0,d=d.substr(0,I(d)-1)),2<=I(d)&&"0"===d[0]&&"x"===d[1]))return!1;if(A=(+d).valueOf(),isNaN(A)||!isFinite(A)){if(A=new Date(d),isNaN(A))return!1;A=F.Ra(A)}l&&(A/=100);q.value=A}return!0}function J(d){var q,l,A,r,n,w=d.Ce,z=w?d.De:d.Ee=[],C=d.Fe,c=d.Ge,m=w?d.He:d.Ie=[],h=d.Je,a=d.Ke,B=d.Le,y=I(d.data);for(l=0;l<y;l++){A=!1;for(r=0;r<I(h)&&(n=h[r],w&&n===d.Me||(c[n]?(q=d.getExclusiveRowIndex(d.columnNames[n],l),A=!c[n][q]):C[n]&&(A=!C[n][l]),!A));r++);!A&&w&&(a?(q=d.getExclusiveRowIndex(d.columnNames[n],l),A=!a[q]):B&&(A=!B[l]));A||(z[l]=!0)}for(r=0;r<I(z);r++)z[r]&&m.push(r)}function R(d,q){var D,A,r,n,w,z,C,c=d.Oe,m=d.Pe,h=d.Se,a=d.Qe,B=d.data,y=d.Re[q]=[];d._e=[];c[q]=[];m[q]=[];h[q]={};a[q]=[];for(D=0;D<I(B);D++)if(A=B[D][q],r=l(A)?A.text.trim():A,c[q].push(r),void 0===y[D])for(n=[D],m[q].push(r),a[q].push(n),w=I(a[q])-1,h[q][r]=w,y[D]=w,z=D+1;z<I(B);z++)C=B[z][q],C=l(C)?C.text.trim():C,void 0===y[z]&&F.isEquals(C,r)&&(n.push(z),y[z]=w)}function Q(d,q,D){var A,r,n,w,z,C,c,m;w=d.Te;C=d.getColumnIndex(q);var h=[];if(!C||(A=d.Ce?d.Ue:d.Ve[C],r=d.Ee,!A))return h;w[C]||d.We(C);q=[];n=w[C];for(w=0;w<I(n);w++)z=d.data[w][C],z=l(z)?z.value:z,q[n[w]]=z;C=d.af[C];for(w=0;w<I(A);w++){n=A[w];z=!1;c=d.Xe(q,n);for(m=c.start;m<=c.end;m++)if(r[C[m]]){z=!0;break}z!==D&&h.push(n)}return h}function K(d,q){var l,A,r,n,w,z=[];A=d.getColumnIndex(q);if(0<=A)for(l=d.Ce&&A===d.Me?d.Ke||d.Le:d.Ge[A]||d.Fe[A],A=!!d.Fe[A],r=I(A?d.getData(q):d.getExclusiveData(q)),n=0;n<r;n++)l&&!l[n]&&(w=A?d.getExclusiveRowIndex(q,n):n,-1===z.indexOf(w)&&z.push(w));return z}function O(d,q){d.Ce=!1;d.Ke={};d.He=[];d.De=[];d.Le=[];q&&d.onFiltered()}function H(d){return null===d||void 0===d}function I(d){return d?d.length:0}var L,F;L=function(){function G(d,l){var q;this.Ne={};this.Oe=[];this.Pe=[];this.Se=[];this.Qe=[];this.Re=[];this.Ge=[];this.Ye=[];this.Fe=[];this.Ve=[];this.Ee=[];this.Ie=[];this.Je=[];this.He=[];this.De=[];this.Ce=!1;this.Ze=[];this.$e=0;this._e=[];this.af=[];this.Te=[];this.bf(d,l);for(q=0;q<I(this.data);q++)this.Ee[q]=!0,this.Ie.push(q)}return G.prototype={constructor:G,inPreview:function(){return this.Ce},bf:function(d,l){this.data=d;this.columnNames=l;var q,r,n=this.Ne={};this.Oe=[];this.Pe=[];this.Qe=[];this.Re=[];q=this.columnNames;for(r=0;r<I(q);r++)n[(q[r]+"").toUpperCase()]=r},onDataChanged:function(d){var q,A,r,n,w,z=Array(I(this.columnNames)),C=this.Ye,c=this.Pe,m=this.Ge;w=this.Oe;for(q=0;q<I(d);q++)A=d[q],r=A.data,n=A.row,A=this.getColumnIndex(A.columnName),this.data[n][A]=r,r=l(r)?r.text:r,w[A]&&(w[A][n]=r),z[A]=!0;for(n=0;n<I(z);n++)if(z[n]){r=C[n];C[n]=r?[]:void 0;m[n]=r?{}:void 0;w=[];for(q=0;r&&q<I(r);q++)w.push(c[n][r[q]]);R(this,n);for(q=0;q<I(w);q++)r=this.Se[n][w[q]],C[n].push(r),m[n][r]=!0}J(this);this.cf(d,"onDataChanged")},cf:function(){var d,l,A,r=arguments,n=r[I(r)-1];--r.length;d=this.Ze||[];for(l=0;l<I(d);l++)A=d[l],A[n]&&A[n].apply(A,r)},onColumnNameChanged:function(d,l){var q=this.Ne,r=this.getColumnIndex(d);0>r||(this.columnNames[r]=l,delete q[d.toUpperCase()],q[l.toUpperCase()]=r,this.cf(d,l,"onColumnNameChanged"))},onRowsAdded:function(d,l,A){var q,n,w,z,C,c,m,h;h=I(this.columnNames);var a=this.data,B=this.Oe,y=this.Pe,t=this.Qe,E=this.Re,M=this.Ge,p=this.Ye,g=this.Ee,f=this.Ie,k=this.Je;this._e=[];for(q=0;q<l;q++)a.splice(d,0,Array(h));for(n=0;n<h;n++){for(q=0;q<l;q++)B[n]&&B[n].splice(d,0,void 0);if(w=y[n]){q=null;for(C=0;C<I(w);C++){c=t[n][C];for(m=0;m<I(c);m++)c[m]>=d&&(c[m]+=l);F.isEquals(w[C],null)&&(q=c,z=C)}q||(q=[],w.push(null),z=I(w)-1,this.Se[n][null]=z,t[n].push(q),M[n]&&-1===k.indexOf(n)&&(M[n][z]=!0,p[n].push(z)));for(w=d;w<d+l;w++)q.push(w);for(q=d;q<d+l;q++)E[n].splice(q,0,z)}}z=!0;for(q=0;q<I(k);q++)n=k[q],h=E[n][d],!0!==M[n][h]&&(z=!1);for(q=0;q<I(f);q++)f[q]>=d&&(f[q]+=l);for(q=I(a)-1;q>=d+l;q--)g[q]=g[q-l];n=0<I(k);for(q=d;q<d+l;q++)z&&f.push(q),g[q]=!n;A||this.cf(d,l,!0,"onRowsChanged")},onRowsRemoved:function(d,l){this.df(d,l,!0)},df:function(d,l,A){var q,n,w,z,C,c,m,h=this.Ye,a=this.Pe,B=this.Ge;q=this.data;var y=I(this.columnNames),t=this.Oe;q.splice(d,l);for(q=0;q<y;q++){if(t[q]&&t[q].splice(d,l),n=h[q],w=[],n&&A){for(z=0;z<I(n);z++){C=this.getRowIndexes(this.columnNames[q],n[z]);c=!0;for(m=0;m<I(C);m++)if(C[m]<d||C[m]>=d+l){c=!1;break}c||w.push(a[q][n[z]])}h[q]=[];B[q]={}}if(R(this,q),n&&A)for(z=0;z<I(w);z++)C=this.Se[q][w[z]],h[q].push(C),B[q][C]=!0}A&&J(this);this.cf(d,l,!1,"onRowsChanged")},onColumnsRemoved:function(d,l){var q,r,n,w,z,C,c=this.data,m=[];for(q=d;q<d+l;q++)m.push(this.columnNames[q]);r=this.Je;for(q=0;q<I(m);q++)n=m[q],w=this.getColumnIndex(n),-1!==r.indexOf(w)&&this.doUnfilter(n);n=this.Ge||this.Fe;z=this.Ye||this.Ve;w=this.Ne;for(q=0;q<I(c);q++)c[q].splice(d,l);this._e=[];this.columnNames.splice(d,l);this.Oe.splice(d,l);this.Pe.splice(d,l);this.Se.splice(d,l);this.Qe.splice(d,l);this.Re.splice(d,l);n.splice(d,l);z.splice(d,l);for(C in w)w[C]>=d+l&&(w[C]-=l);for(q=0;q<I(m);q++)n=m[q],delete w[n.toUpperCase()],d=this.getColumnIndex(n),C=r.indexOf(d),-1!==C&&r.splice(C,1),this.cf(m[q],"onColumnRemoved")},ef:function(){return this._e},ff:function(){return this.af},We:function(d){var q,A,r,n,w;w=this.data;this.Oe[d]||R(this,d);q=I(w);A=[];for(r=0;r<q;r++)n=w[r][d],n=l(n)?n.value:n,A.push(n);q=F.quickSort(A);A=this._e[d]=[];r=this.af[d]=[];d=this.Te[d]=[];for(w=0;w<I(q);w++)n=q[w],A.push(n.value),r.push(n.index),d[n.index]=w},getColumnIndex:function(d){d=this.Ne[d.toUpperCase()];return void 0===d?-1:d},getFilteredRowIndexes:function(){return this.Ce?this.He:this.Ie},getFilteredOutRowIndexes:function(){var d,l=I(this.data),A=this.Ce?this.De:this.Ee,r=[];for(d=0;d<l;d++)A[d]||r.push(d);return r},getData:function(d,l){var q,r,n,w;q=this.Oe;var z=this.getColumnIndex(d);if(0<=z){if(l){this._e[z]||this.We(z);q=q[z];r=this._e[z];n=this.Xe(r,l);r=n.start;n=n.end;for(w=[];r<=n;r++)w.push(q[this.af[z][r]]);return w}return q[z]||R(this,z),q[z]}return[]},aggregateData:function(q,l,A){var r,n,w,z,C,c;q=this.getColumnIndex(q);if(!(0>q)){if(this._e[q]||this.We(q),r=this._e[q],n=I(r),w=this.Xe(r,A),q=w.start,A=w.end,5===l)return q>=n?void 0:r[q];if(4===l)return 0>A?void 0:r[A];if(3===l)return A<q?0:A-q+1;w=6===l?1:0;for(z=n=0;q<=A;q++)C=r[q],null===C&&void 0===C||(c={value:null},3===l?w++:d(C,c)&&(C=c.value,1===l?(w+=C,n++):2===l?w++:9===l?w+=C:6===l?w*=C:7!==l&&8!==l&&10!==l&&11!==l||(w+=C,n+=C*C,z++)));return 1===l?w/=n:7===l||10===l?(w=(z*n-w*w)/(z*(z-1)),w=7===l?Math.sqrt(w):w):8!==l&&11!==l||(w=(z*n-w*w)/(z*z),w=8===l?Math.sqrt(w):w),w}},Xe:function(d,l){var q,r,n,w,z=I(d);if(l){if(l.min===-(1/0))q=0;else for(n=0;n<z;n++)if(w=d[n],F.isEquals(l.min,w)||F.isGreaterThan(w,l.min)){q=n;break}if(void 0===q&&(q=z),r===1/0)r=z-1;else{for(n=z-1;0<=n;n--)if(w=d[n],F.isEquals(w,l.max)||F.isGreaterThan(l.max,w)){r=n;break}void 0===r&&(r=-1)}}else q=0,r=z-1;return{start:q,end:r}},getExclusiveData:function(d){var q=this.Pe;d=this.getColumnIndex(d);return 0<=d?(q[d]||R(this,d),q[d]):[]},getRowIndexes:function(d,l){var q=this.getColumnIndex(d);return 0<=q?(this.Re[q]||R(this,q),this.Qe[q][l]):[]},getExclusiveRowIndex:function(d,l){var q=this.Re,r=this.getColumnIndex(d);return 0<=r?(q[r]||R(this,r),q[r][l]):-1},getFilteredIndexes:function(d){var q=[];return this.gf(d,q,{}),q},gf:function(d,l,A){var q,n,w=this.Ce?this.He:this.Ie;for(q=0;q<I(w);q++)n=w[q],n=this.getExclusiveRowIndex(d,n),A[n]?A[n]++:(A[n]=1,l.push(n))},getFilteredRanges:function(d){return Q(this,d,!1)},getFilteredOutRanges:function(d){return Q(this,d,!0)},getFilteredOutIndexes:function(d,l){var q;if(0===l){var r,n,w,z=[];if(0<=this.getColumnIndex(d)){q=I(this.getData(d));r=this.Ce?this.De:this.Ee;for(n=0;n<q;n++)r[n]||(w=this.getExclusiveRowIndex(d,n),-1===z.indexOf(w)&&z.push(w));q=z}else q=void 0}else if(1===l)q=K(this,d);else{var C,c;r=[];var m=this.columnNames;q=0;for(n=I(m);q<n;q++)if(m[q]!==d)for(w=K(this,m[q]),z=0;z<I(w);z++)for(C=this.getRowIndexes(m[q],w[z]),c=0;c<I(C);c++)-1===r.indexOf(C[c])&&r.push(C[c]);q=0;for(n=I(this.data);q<n;q++)-1!==r.indexOf(q)?r.splice(r.indexOf(q),1):r.push(q);n=I(this.getExclusiveData(d));w=[];for(q=0;q<n;q++)w.push(q);q=0;for(n=I(r);q<n;q++)z=this.getExclusiveRowIndex(d,r[q]),-1!==w.indexOf(z)&&w.splice(w.indexOf(z),1);q=w}return q},attachListener:function(d){this.Ze.push(d)},detachListener:function(d){var q,l=this.Ze||[];for(q=0;q<I(l);q++)if(l[q]===d){l.splice(q,1);break}},suspendFilteredEvents:function(){this.$e++},resumeFilteredEvents:function(){this.$e--;0===this.$e&&this.onFiltered()},doFilter:function(d,l,A){this.hf(d,l,A);this.onFiltered()},hf:function(d,D,A){var q=this.Je,n=this.getColumnIndex(d);if(!(0>n)){A?(this.Ce=!0,this.Me=n):this.Ce&&O(this,!1);0>q.indexOf(n)&&q.push(n);if(D.ranges){D=D.ranges;var w,z,C,c,q=this.getColumnIndex(d),n=this.Te;n[q]||this.We(q);d=[];n=n[q];for(w=0;w<I(n);w++)z=this.data[w][q],z=l(z)?z.value:z,d[n[w]]=z;z={};for(w=0;w<I(D);w++)for(C=this.Xe(d,D[w]),c=0;c<I(n);c++)n[c]>=C.start&&n[c]<=C.end&&(z[c]=!0);A?(this.Le=z,this.Ue=D):(this.Ve[q]=D,this.Fe[q]=z,delete this.Ge[q],delete this.Ye[q])}else{D=D.exclusiveRowIndexes;q=this.getColumnIndex(d);n={};for(d=0;d<I(D);d++)n[D[d]]=!0;A?this.Ke=n:(this.Ge[q]=n,this.Ye[q]=D,delete this.Ve[q],delete this.Fe[q])}J(this)}},clearPreview:function(){O(this,!0)},doUnfilter:function(d){this["if"](d);this.onFiltered()},"if":function(d){var q;this.Ce&&O(this,!1);d=this.getColumnIndex(d);0>d||(delete this.Ve[d],delete this.Fe[d],delete this.Ge[d],delete this.Ye[d],J(this),q=this.Je.indexOf(d),0<=q&&this.Je.splice(q,1))},onFiltered:function(){0===this.$e&&this.cf({rowIndexes:this.getFilteredRowIndexes(),isPreview:this.Ce},"onFiltered")},getListener:function(){return this.Ze}},G}();F=function(){function d(){}return d.quickSort=function(d){var q,l=I(d),r=[];for(q=0;q<l;q++)r[q]={index:q,value:d[q]};return this.quickSortImp(r)},d.quickSortImp=function(d){var q,l,r,n,w,z;if(1>=I(d))return d;q=Math.floor(I(d)/2);q=d[q];l=[];r=[];n=[];for(w=0;w<I(d);w++)z=this.sortCompare(d[w].value,q.value),0>z?l.push(d[w]):0<z?r.push(d[w]):n.push(d[w]);return this.quickSortImp(l).concat(n,this.quickSortImp(r))},d.isEquals=function(d,l){return!(!H(d)&&""!==d||!H(l)&&""!==l)||(d instanceof Date&&l instanceof Date?d.valueOf()===l.valueOf():"string"===typeof d&&"string"===typeof l?d.toLowerCase()===l.toLowerCase():d===l)},d.Ra=function(d){return H(d)?0:("number"===typeof d&&(d=new Date(d)),(1440*d.getTime()+3181192704E6-864E5*d.getTimezoneOffset())/124416E6)},d.isGreaterThan=function(d,l){var q=typeof d,r=typeof l;return"boolean"===q?d=d?1:0:d instanceof Date&&(d=this.Ra(d)),"boolean"===r?l=l?1:0:l instanceof Date&&(l=this.Ra(l)),q===r||"number"!==q&&"number"!==r?"string"===q&&"string"===r?d.toLowerCase()>l.toLowerCase():d>l:"number"===typeof l},d.sortCompare=function(d,l){var q=H(d)||""===d||"number"===typeof d&&isNaN(d),r=H(l)||""===l||"number"===typeof l&&isNaN(l);return q&&r?0:q?1:r?-1:this.isEquals(d,l)?0:this.isGreaterThan(d,l)?1:-1},d}();U.exports={FilteredOutDataType:{all:0,byCurrentColumn:1,byOtherColumns:2},SlicerAggregateType:{average:1,count:2,counta:3,max:4,min:5,product:6,stdev:7,stdevp:8,sum:9,vars:10,varp:11},GeneralSlicerData:L,jf:F}},function(U,u,l){u=l(25);l(27);l(28);l(29);u.SR={};u.SR.en=l(30);U.exports=u},function(U,u,l){function d(b){return b&&b.toUpperCase()}function J(b,e){var a=new X(12);return a.value=b,a.needExpendIndexs=e,a}function R(b){var e=new X(3);return e.value=b,e}function Q(b){var e=new X(2);return e.value=b,e}function K(){}function O(b,e){return"number"===typeof b||b instanceof Date||!e&&("boolean"===typeof b||!isNaN(b)&&!isNaN(parseFloat(b)))}function H(b){return b instanceof f}function I(b){return b instanceof N}function L(b){return b instanceof S}function F(b,e,a,f,g,v){var p;if(b&&b.length&&b.rowCount&&b.colCount)return b;if(I(b))p=b.toArray(e,a,f,g,v),p.isArray=!0;else if(L(b))p=b.toArray(e,a,f,g,v),p.isReference=!0;else if(n(b)&&0<b.length){if(p=[],n(b[0]))return K.Oh(b,e,!0);for(a=0;a<b.length;a++)f=G(b[a],e,!1),f===K.CalcConvertedError&&(p.isConvertError=!0),p.push(f);p.rowCount=1;p.colCount=b.length;p.rangeCount=1}else I(b)?p=[]:(b=G(b,e,!0),f&&H(b)?(p=[k],p.isError=!0):b===K.CalcConvertedError?(p=[K.CalcConvertedError],p.isConvertError=!0):a?(p=[],p.push(b)):(p=[[]],p[0].push(b)),p.rowCount=1,p.colCount=1,p.rangeCount=1);return p}function G(b,e,a,k){var f,g,v;if(H(b))return b;if(f={value:t},g=K.CalcConvertedError,k&&0!==e&&(b===t||void 0===b||""===b))return g;switch(e){case 1:case 5:a&&5!==e?b=D(b,f)?f.value:g:"number"===typeof b||(b=b instanceof Date?m.Ra(b):g);break;case 4:"string"===typeof b?(v=qa.l.Qa(b),b=v!==E&&v!==t?m.Ra(v):g):a?b=D(b,f)?f.value:g:"number"===typeof b||b instanceof Date||(b=g);break;case 3:a?b=D(b,f)?f.value:g:"boolean"!==typeof b&&(b=g);break;case 2:b=b===t||b===E?"":""+b}return b}function q(b){var e={value:0};if(D(b,e))return e.value;throw a().Exp_InvalidCast;}function D(b,e){var a,f,k,g,v,p,c=t;if(!b)return e.value=0,!0;a=typeof b;try{if("number"===a)c=b;else if("string"===a){if(b=b.trim(),0===b.length)return e.value=0,!0;if((f=ba.Parser.numberDecimalSeparator,k=ba.Parser.numberGroupSeparator,"."!==f&&"."!==k&&0<=b.indexOf(".")||","!==f&&","!==k&&0<=b.indexOf(","))||(g=!1,"%"===b.charAt(b.length-1)&&(g=!0,b=b.substr(0,b.length-1)),"$"===b[0])||b.indexOf(f)!==b.lastIndexOf(f)||2<=b.length&&"0"===b[0]&&"x"===b[1])return!1;if(c=(+b).valueOf(),K.Qh(c)){if((v=b.charCodeAt(0),v|=32,4<b.length&&96<=v&&122>=v&&(p=b[0]+b[1]+b[2],p=p.toUpperCase(),!pa[p]))||"/"===b[0]||"/"===b[b.length-1]||(c=new Date(b),K.Qh(c.valueOf())))return!1;c=m.Ra(c)}g&&(c/=100)}else if("boolean"===a)c=b?1:0;else{if(!(b instanceof Date))return!1;c=m.Ra(b)}}catch(jb){return!1}return e.value=c,!0}function A(b,e){try{if(b){if("boolean"!==typeof b)if(b instanceof Date)b=0!==m.Ra(b);else{if(!O(b))return!1;b=0!==b}}else b=!1}catch(wa){return!1}return e.value=b,!0}function r(b,e){var a,f,k,g;if(b)if(b instanceof Date)e.value=new Date(b);else if("string"===typeof b){if(a=qa.l.Qa(b),!a)if(isNaN(b)){if(a=new Date(b),isNaN(a.valueOf()))return!1;try{if(f=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/,k=h.ib(h.Db(b.replace(/ |\n/g,"")," ")," "),g=f.exec(k),g&&4===g.length&&(-1===g.indexOf(""+a.getYear())||-1===g.indexOf(""+a.getMonth())||-1===g.indexOf(""+a.getDate())))return!1}catch(Da){return!1}}else if(a=qa.l.Xb(parseFloat(b)),!a)return!1;e.value=a}else{if("number"!==typeof b)return!1;e.value=qa.l.Xb(b)}else e.value=qa.l.Xb(0);return!0}var n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f,k,x,W,P,V,Z,e,b,v,N,S,X,Y,ka,ja,oa,ma,ea,ga,T,fa,Fa,aa,xa,Ia,la,pa,qa=l(26),ba={},ra=ba.Functions={},ya="#NULL! #DIV/0! #VALUE! #REF! #NAME? #N/A #NUM!".split(" "),sa=[0,7,15,23,29,42,36];ba.ErrorList=ya;u=qa.j;n=u.Ca;u=u.Ia;w=ba.BAND_INDEX_CONST=-2147483648;z=ba.MAX_ROW_COUNT=1048576;C=ba.MAX_COLUMN_COUNT=16384;c=qa.j.G;m=qa.l;h=qa.u;a=function(){return qa.C(ba.SR)()};B=["o","n","s","b","d"];y=ba.kf=function(b,e,a,f){return{row:b,col:e,rowCount:a,colCount:f}};t=null;E=void 0;M=Math.abs;ba.BangSource={};ba.RefErrorSource={};ba.supportRowColumnFormula=!1;p=qa.A;g=qa.B;f=function(){function b(e){e=b.nf(e);if(!e)throw a().Exp_NotSupported;this._error=e.error;this._code=e.code}return b.prototype.toString=function(){return this._error},b.prototype.clone=function(){return new b(this._error)},b.prototype.toJSON=function(){return{_calcError:this._error,_code:this._code}},b.parse=function(e){try{return new b(e)}catch(wa){return E}},b.nf=function(b){var e,a;if(b)for(e=0;e<ya.length;e++)if(a=ya[e],a===b||a===d(b))return{error:a,code:sa[e]};return E},b}();ba.CalcError=f;l=ba.Errors={};l.Null=new f("#NULL!",0);l.DivideByZero=new f("#DIV/0!",7);k=l.Value=new f("#VALUE!",15);x=l.Reference=new f("#REF!",23);W=l.Name=new f("#NAME?",29);P=l.NotAvailable=new f("#N/A",42);V=l.Number=new f("#NUM!",36);Z=ba.pf=function(b,e){return{row:b,col:e}};e=ba.qf=function(b,e,a,f){return{row:b,col:e,rowCount:a,colCount:f}};b=ba.rf=function(b,e,a,f,k,g){var v=new X(1);return v.row=a,v.column=f,v.rowRelative=k,v.columnRelative=g,v.sf=!0,b&&(v.source=b),e&&(v.endSource=e),v};v=ba.uf=function(b,e,a,f,k,g,v,p,c,h){var m=new X(1),x;return m.isFullRow=f===w,m.isFullColumn=a===w,a>k&&(x=a,a=k,k=x,x=v,v=c,c=x),f>g&&(x=f,f=g,g=x,x=p,p=h,h=x),m.row=a,m.column=f,m.endRow=k,m.endColumn=g,m.rowRelative=v,m.columnRelative=p,m.endRowRelative=c,m.endColumnRelative=h,b&&(m.source=b),e&&(m.endSource=e),m};N=ba.CalcArray=function(b){this.array=b};N.prototype={getRowCount:function(){return this.array.length},getColumnCount:function(){return this.array[0].length},getValue:function(b,e){var a=this.array;return b.row!==E&&(b=b.row,e=b.column),0>b||0>e||b>=a.length||e>=a[0].length?k:this.array[b][e]},getValueByIndex:function(b){var e=this.getColumnCount();return this.getValue(Math.floor(b/e),b%e)},toArray:function(b,e,a,f,k){var g,v,p,c,h,m,x=[],t=K.CalcConvertedError;e=e===E||e;h=this.getRowCount();m=this.getColumnCount();for(p=0;p<h;p++)for(e||(v=[],x.push(v)),c=0;c<m;c++){if((g=this.getValue(p,c),a&&K.vf(g))||(g=K.wf(g,b,!1,k),f&&g===t))return x=[g],x.isError=!0,x;e?x.push(g):v.push(g)}return x.rowCount=h,x.colCount=m,x.rangeCount=1,x},slice:function(b,e,a,f){var k,g,v,p=this.array,c=[];b=0>b?0:b;e=0>e?0:e;a=b+a>this.getRowCount()?this.getRowCount()-b:a;f=e+f>this.getColumnCount()?this.getColumnCount()-e:f;for(g=0;g<a;g++)for(k=[],c.push(k),v=0;v<f;v++)k.push(p[g+b][v+e]);return new N(c)}};S=ba.CalcReference=function(b,e){this.xf=b;e?(this.yf=e,this.zf=e.length):this.zf=1};S.prototype={getRangeCount:function(){return this.zf},getRow:function(b){return this.yf?this.yf[b||0].row:0},getColumn:function(b){return this.yf?this.yf[b||0].col:0},getRowCount:function(b){return this.yf?this.yf[b||0].rowCount:this.xf.getRowCount()},getColumnCount:function(b){return this.yf?this.yf[b||0].colCount:this.xf.getColumnCount()},getValue:function(b,e,a){var f,k,g;if(b.row!==E?(f=b.row,k=b.col):(f=e,k=a,e=b),e=e||0,0<=f||0<=k){if(g=this.yf,!g)return this.xf.getValue(f,k);if(e<g.length)return this.xf.getValue(f+g[e].row,k+g[e].col)}return x},getValueByIndex:function(b){var e=this.getColumnCount();return this.getValue(Math.floor(b/e),b%e)},isHiddenRow:function(b,e,a){return this.xf.isHiddenRow(e+this.getRow(b),a)},isSubtotal:function(b,e,a){var f,k=this.xf;return 0===b&&e<k.getRowCount()&&a<k.getColumnCount()&&(f=k.getCalcSourceModel().getExpression(e,a),f&&7===f.type&&"SUBTOTAL"===f.functionName)},getSource:function(){return this.xf},create:function(b){return new S(this.xf,b)},toArray:function(b,e,a,f,k){return this.xf.referenceToArray(this,b,e,a,f,k)}};ba.ExpressionType={unknow:0,reference:1,number:2,string:3,"boolean":4,error:5,array:6,"function":7,name:8,operator:9,parentheses:10,missingArgument:11,expand:12,structReference:13};X=ba.Expression=function(){function e(e){var a=this;a.type=e;1===e&&(a.tf=function(){return this.isFullRow&&this.isFullColumn?3:this.isFullRow?1:this.isFullColumn?2:0},a.getRange=function(b,e){return Y(a,b,e)},a.offset=function(e,a,f){var k;return this.sf?b(this.source,this.endSource,this.row+(this.rowRelative||f?e:0),this.column+(this.columnRelative||f?a:0),this.rowRelative,this.columnRelative):(k=v(this.source,this.endSource,this.row+(this.rowRelative||f?e:0),this.column+(this.columnRelative||f?a:0),this.endRow+(this.isFullColumn||!this.endRowRelative&&!f?0:e),this.endColumn+(this.isFullRow||!this.endColumnRelative&&!f?0:a),this.rowRelative,this.columnRelative,this.endRowRelative,this.endColumnRelative),k.isFullRow=this.isFullRow,k.isFullColumn=this.isFullColumn,k)},a.offset2=function(b,e,a,f){b=v(this.source,this.endSource,this.row+(this.isFullColumn?0:b),this.column+(this.isFullRow?0:e),this.endRow+(this.isFullColumn?0:a),this.endColumn+(this.isFullRow?0:f),this.rowRelative,this.columnRelative,this.endRowRelative,this.endColumnRelative);return b.isFullRow=this.isFullRow,b.isFullColumn=this.isFullColumn,b})}return e.prototype.offset=function(b,e,a){var f,k,g;f=this.type;if(10===f)return Ia(this.value.offset(b,e,a));if(7===f){f=this.arguments;k=[];for(g=0;g<f.length;g++)k.push(f[g].offset(b,e,a));return aa(this["function"],k)}return 9===f?xa(this.operatorType,this.value.offset(b,e,a),this.value2&&this.value2.offset(b,e,a)):this},e}();Y=ba.getRangeForReference=function(b,e,a){var f={row:-1,col:-1,rowCount:-1,colCount:-1},k,g,v,p;return b.isFullRow?(f.col=-1,f.colCount=-1):(b.columnRelative?(v=b.column+a,v=v>=C?v%C:v):v=b.column,b.sf?(f.col=v,f.colCount=1):(b.endColumnRelative?(p=b.endColumn+a,p=p>=C?p%C:p):p=b.endColumn,f.col=v<=p?v:p,f.colCount=M(p-v)+1)),b.isFullColumn?(f.row=-1,f.rowCount=-1):(b.rowRelative?(k=b.row+e,k=k>=z?k%z:k):k=b.row,b.sf?(f.row=k,f.rowCount=1):(b.endRowRelative?(g=b.endRow+e,g=g>=z?g%z:g):g=b.endRow,f.row=k<=g?k:g,f.rowCount=M(g-k)+1)),f};ka=ba.CalcSource=function(){function b(e){this.id=b.sourceId++;this.Af=e;this.Bf=null}return b.sourceId=1,b}();ka.prototype={getCalcService:function(){return this.Af},Cf:function(){return this.Af},setCalcService:function(b){this.Af=b},getCalcSourceModel:function(){return this.Bf},setCalcSourceModel:function(b){this.Bf=b},getValue:function(b,e){return t},getName:function(){return""},setValue:function(b,e){},getReference:function(b){return new S(this,b)},getSources:function(b){return[this]},referenceToArray:function(b,e,a,f,g,v){var p,c,h,m,x,d,y,n,T,B,N,q,S=1,w=1,r=[],P=b.getRangeCount();if(0===P)return r.isError=!0,[];y=this.getRowCount();n=this.getColumnCount();a=a===E||a;for(T=0;T<P;T++){if((a||(d=[],r.push(d)),S=b.getRowCount(T),0===S)||(w=b.getColumnCount(T),0===w))return r.isError=!0,[];h=b.getRow(T);m=b.getColumn(T);S=Math.min(h+S,y)-h;w=Math.min(m+w,n)-m;for(N=0;N<S;N++)for(p=h+N,a||(B=[],d.push(B)),q=0;q<w;q++){if(c=m+q,x=this.getValue(p,c),f&&K.vf(x))return r=[x],r.isError=!0,r;if(x=K.convertValue(x,e,!0,v),g&&x===K.CalcConvertedError)return r=[k],r.isError=!0,r;x===t&&v||(a?r.push(x):B.push(x))}}return a||1!==P||(r=r[0]),r.rowCount=S,r.colCount=w,r.rangeCount=P,r},getSheetReference:function(){return this.Df=this.Df||new S(this),this.Df},setFormula:function(b,e){},setArrayFormula:function(b,e){},getRowCount:function(){return 1E3},getColumnCount:function(){return 100},isHiddenRow:function(b,e){return!1},getParserContext:function(b,e,a){return new ba.ParserContext(this,b,e,a)},startCalculation:function(){},endCalculation:function(){},getEvaluatorContext:function(b,e,a){return new ba.EvaluateContext(this,b,e,a)},getCustomFunction:function(b){return t},getCustomName:function(b){return t},refresh:function(){},toJSON:function(b,e){}};ja=ba.CalcSourceModel=function(){return function(b,e){this.Ff=this.Ef=0;this.Gf=[];this.dataTable={};this.dataTableByName={};this.Hf=[];this.If=[];this.Jf=t;this.xf=e;this.Af=b;this.B5=0}}();ja.prototype={getNode:function(b,e,a){var f,k=t;return 0<=b&&0<=e?(f=this.dataTable[b],a&&!f&&(f=this.dataTable[b]={},b>this.Ef&&(this.Ef=b)),f&&(k=f[e],a&&!k&&(k=f[e]={},e>this.Ff&&(this.Ff=e)))):-1===b&&0<=e?(k=this.If[e],a&&!k&&(k=this.If[e]={},e>this.Ff&&(this.Ff=e))):0<=b&&-1===e?(k=this.Hf[b],a&&!k&&(k=this.Hf[b]={},e>this.Ff&&(this.Ff=e))):-1===b&&-1===e&&(k=this.Jf,a&&!k&&(k=this.Jf={})),k},getNodeByName:function(b,e){var a=this.dataTableByName[b];return e&&!a&&(a=this.dataTableByName[b]={}),a},Kf:function(b,e){var a=this.getNode(b,e);return a&&a.Lf},Mf:function(b,e){var a=this.getNode(b,e);return a&&a.Nf},getExpr:function(b,e){return this.Kf(b,e)},getArray:function(b,e){return this.Of(b,e)},Of:function(b,e){var a=this.getNode(b,e);return a&&a.Pf},Qf:function(b,e){var a=this.getWorkingNode(b,e);return a&&a.Pf},getWorkingExpression:function(b,e){var a=this.getWorkingNode(b,e);return a&&a.Nf},getExpression:function(b,e){var a=this.getWorkingNode(b,e);return a&&a.Lf},getWorkingExpressionByName:function(b){return(b=this.getNodeByName(b))&&b.Nf},getExpressionByName:function(b){return(b=this.getNodeByName(b))&&b.Lf},clearAll:function(){this.clear(-1,-1,-1,-1);this.dataTable={};this.dataTableByName={};this.Hf=[];this.If=[];this.Jf=t},clear:function(b,e,a,f){this.$b(b,e,a,f)},addRows:function(b,e){var a;a=this.rC();if(!(0>b||b>a||0>e))for(p(this.dataTable,a,b,e),p(this.Hf,a,b,e),a=0;a<e;a++)this.dataTable[b+a]&&(this.dataTable[b+a]={rs:"n"})},deleteRows:function(b,e){var a=this.rC();0>b||b>=a||0>=e||(b+e>a&&(e=a-b),g(this.dataTable,a,b,e),g(this.Hf,a,b,e))},addColumns:function(b,e){var a,f,k=this.rC(),g=this.cC();if(!(0>b||b>g||0>e)){for(a=0;a<k;a++)(f=this.dataTable[a])&&b<g&&p(f,g,b,e);p(this.If,g,b,e)}},deleteColumns:function(b,e){var a,f,k=this.rC(),v=this.cC();if(!(0>b||b>=v||0>e)){for(a=0;a<k;a++)(f=this.dataTable[a])&&b<v&&g(f,v,b,e);g(this.If,v,b,e)}},Rf:function(b,e,a){(b=this.getNode(b,e,!!a))&&(b.Lf=a)},Sf:function(b,e){var a=this.getNode(b,e,!0);a&&(a.Lf=E,a.Nf&&(a.Nf=E),a.Pf&&(a.Pf=E),a.isVolatile&&this.Tf(a))},Uf:function(b,e,a,f,k){var g,v=this.getNode(e,a);v&&v.Lf&&(g=b.getNode(f,k,!0),v.Pf&&(g.Pf=y(f,k,v.Pf.rowCount-(e-v.Pf.row),v.Pf.colCount-(a-v.Pf.col))),g.Lf=v.Lf,v.Nf&&(g.Nf=v.Nf));v&&v.isVolatile&&(g.isVolatile=!0)},ega:function(b,e){var a=this.dataTable[b];return a&&a[e]},Wf:function(b,e,a){(b=this.getNode(b,e,!!a))&&(b.Nf=a)},Xf:function(b,e,a){(b=this.getNode(b,e,!!a))&&(b.Pf=a)},Yf:function(b,e){var a=this.getNode(b,e);return a&&a.calc},Zf:function(b,e,a){(b=this.getNode(b,e,!0))&&(b.calc&&b.calc.isVolatile&&this.Tf(b),b.calc=a,a&&(a.node=b))},Q3:function(b,e,a){(b=this.getNode(b,e,!0))&&b.calc&&(b.calc.isVolatile&&this.Tf(b),this.Af.Bh(b.calc,a),b.calc=E)},$f:function(b,e,a,f,k){var g;0<=a&&0<=f?(g=this.dataTable[a],g||(g=this.dataTable[a]={}),g[f]=k,k&&k.calc&&delete k.calc):0<=a&&-1===f&&0<=b&&-1===e?this.Hf[a]=k:0<=f&&-1===a&&0<=e&&-1===b&&(this.If[f]=k)},_f:function(b,e,a,f){var k=this.getNode(b,e),g=this.getNode(a,f);k&&k.Lf?this.$f(b,e,a,f,k):g&&g.Lf&&this.$f(b,e,a,f,t);g&&g.Lf?this.$f(a,f,b,e,g):k&&k.Lf&&this.$f(a,f,b,e,t)},ag:function(){return this.Gf},bg:function(b){b.isVolatile||(b.isVolatile=!0,this.Gf.push(b))},Tf:function(b){var e,a;if(b.isVolatile=void 0,this.B5++,100<this.B5){this.B5=0;b=[];e=this.Gf;for(a=0;a<length;a++)e[a].isVolatile&&b.push(e[a]);this.Gf=b}},cg:function(b,e){var a,f;for(a=0;a<b.length;a++)(f=b[a])&&0<(1&e)&&(f.Pf&&(f.Pf=E),f.Lf&&(f.Lf=E),f.Nf&&(f.Nf=E))},getCalcService:function(){return this.Af},setCalcService:function(b){this.Af=b},Cf:function(){return this.Af},getSource:function(){return this.xf},hasFormula:function(b,e){return b=b!==E?b:-1,e=e!==E?e:-1,!!this.getExpression(b,e)},setFormula:function(b,e,a,f,k,g){var v,p;if(a&&0===a.length&&(a=t),!k&&this.dg(b,e,1,1)&&this.eg(),v=this.getFormula(b,e),g||v!==a&&(""!==v||a)&&(v||""!==a)){if(p=this.Cf(),g=t,p)try{g=f||(a?p.parse(this.xf,a,0<=b?b:0,0<=e?e:0,!1,k,k):t),this.fg(b,e,g,E,!1)}catch(Ra){if(!k)throw Ra;}0<=b&&0<=e&&this.xf.setFormula(b,e,a)}},getFormula:function(b,e,a){var f,k,g=this.Cf();return g&&(f=this.getExpression(b,e))?(k=this.Qf(b,e),b=k?k.row:b,e=k?k.col:e,g.unparse(this.xf,f,b,e,a)):t},setFormulaByName:function(b,e,a){var f,k,g;if(b&&(b=d(b),f=this,e&&0===e.length&&(e=t),k=f.getFormulaByName(b),k!==e&&(""!==k||e)&&(k||""!==e))){if(g=f.Cf(),k=t,g)try{k=e?g.parse(f.xf,e,0,0,!1,a):t,f.gg(b,k,E,!1)}catch(Da){if(!a)throw Da;}f.xf.setFormula({name:b},e)}},getFormulaByName:function(b){var e,a=this.Cf();return a&&b&&(e=this.getExpressionByName(d(b)))?a.unparse(this.xf,e,0,0):t},eg:function(){throw a().Exp_ArrayFromulaPart;},rC:function(){return Math.min(this.xf.getRowCount())},cC:function(){return Math.min(this.xf.getColumnCount())},setArrayFormula:function(b,e,a,f,k,g){var v,p;if(k&&0===k.length&&(k=t),this.dg(b,e,a,f)&&this.eg(),b=0>b?0:b,e=0>e?0:e,v=this.Cf(),v&&(this.$b(b,e,a,f),k)){try{p=k?v.parse(this.xf,k,b,e,!1,g,g):t}catch(Ra){if(!g)throw Ra;return}for(k=b;k<b+a;k++)for(g=e;g<e+f;g++)this.fg(k,g,p,y(b,e,a,f),!1);0<=b&&0<=e&&this.xf.setArrayFormula(b,e,a,f,v.unparse(this.xf,p,b,e))}},getWorkingNode:function(b,e){var a,f=this.xf;return b>=f.getRowCount()||e>=f.getColumnCount()?a:(0<=b&&0<=e?(a=this.getNode(b,e),a||(a=this.getNode(b,-1)),a||(a=this.getNode(-1,e))):a=0<=b&&-1===e?this.getNode(b,-1):-1===b&&0<=e?this.getNode(-1,e):this.getNode(-1,-1),a)},fg:function(b,e,a,f,k){var g,v,p,c,h=this.Cf();h.oia&&h.lh.asyncManager.endCalcCell();g=f!==E&&null!==f;v=new ba.EvaluateContext(this.xf,Z(g?f.row:b,g?f.col:e),g);g=la(v,a,g,g?b-f.row:0,g?e-f.col:0);g=g===a?E:g;f!==E&&(p=f);0<=b&&0<=e?((k===E||k)&&(c=a?h.unparse(this.xf,a,0<=b?b:0,0<=e?e:0):E,this.xf.setFormula(b,e,c)),this.ig(b,e,a,g,p)):0<=b&&-1===e?this.jg(b,a,g):-1===b&&0<=e&&this.kg(e,a,g);h.autoCalculation&&!h.IsSuspended()&&h.recalculateAll(!1)},gg:function(b,e,a,f){var k;a=this.Cf();var g=new ba.EvaluateContext(this.xf,Z(0,0),!1),g=la(g,e,!1,0,0),g=g===e?E:g;(f===E||f)&&(k=e?a.unparse(this.xf,e,0,0):E,this.xf.setFormulaByName(b,k));this.lg(b,e,g);a.autoCalculation&&!a.IsSuspended()&&a.recalculateAll(!1)},getRowExpression:function(b){return this.getExpression(b,-1)},getColumnExpression:function(b){return this.getExpression(-1,b)},lg:function(b,e,a){var f,k=this.mg(b,!0);k&&(k.ng(),f=this.getNodeByName(b,!0),f.Lf=e,a=e&&a?a:void 0,f.Nf=a,k.og(),this.Af.pg(k,3))},ig:function(b,e,a,f,k){var g;(g=this.qg(b,e,!0))&&(g.ng(),this.Rf(b,e,a),a?((f||this.Mf(b,e))&&this.Wf(b,e,f),(k||this.Qf(b,e))&&this.Xf(b,e,k)):(this.Wf(b,e,E),this.Xf(b,e,E)),g.og(),this.Af.pg(g,0))},jg:function(b,e,a){var f=this.rg(b,!0);f&&(f.ng(),this.Rf(b,-1,e),(a||this.Mf(b,-1))&&this.Wf(b,-1,a),f.og(),this.Af.pg(f,1))},kg:function(b,e,a){var f=this.sg(b,!0);f&&(f.ng(),this.Rf(-1,b,e),(a||this.Mf(-1,b))&&this.Wf(-1,b,a),f.og(),this.Af.pg(f,2))},$b:function(b,e,a,f){var k,g,v,p,c=this,h=0>b?0:b,m=0>e?0:e;a=0>b?c.rC():a;p=0>e?c.cC():f;f=h+a-1;var x=m+p-1,d=function(b,e){if(k=c.Mf(b,e),g=c.Kf(b,e),k||g){var a=(v=c.Of(b,e))?y(v.row,v.col,v.rowCount,v.colCount):E;c.fg(b,e,t,a,!0)}};for(a=h;a<=f&&0<=a;a++)for(0>e&&d(a,-1),p=m;p<=x&&0<=p;p++)a===h&&0>b&&d(-1,p),d(a,p);0>b&&0>e&&d(b,e)},dg:function(b,e,a,f){return this.tg(b,e,a,f,!0,!0)},tg:function(b,e,a,f,k,g){var v,p,c,h=0>b?0:b,m=0>e?0:e;b=0>b?this.rC():a;f=0>e?this.cC():f;e=h+(0===b?1:b)-1;var x=m+(0===f?1:f)-1,t=!1,d=[],n=[],T=this.dataTable;for(a=h;a<=e&&0<=a&&!(a>this.Ef);a++)if(b=T[a])for(v=m;v<=x&&0<=v&&!(v>this.Ff);v++)if(f=b[v])if(p=f.Pf){if(p.row<h||p.row+p.rowCount-1>e||p.col<m||p.col+p.colCount-1>x){if(k)return!0;t=!0}if(a===p.row||a===h)d.push(y(p.row,p.col,p.rowCount,p.colCount)),c=f.Lf,n.push(c),v=p.col+p.colCount-1}else!g&&(c=f.Lf)&&(d.push({row:a,col:v}),n.push(c));return!k&&{hasPart:t,ranges:d,formulas:n}},mg:function(b,e){var a=t,f=this.getNodeByName(b,e);return f&&(a=f.calc,!a&&e&&(a=new T(this,b),f.calc=a,a.node=f)),a},qg:function(b,e,a){var f,k,g,v=t;if(0<=b&&0<=e){if(f=this.dataTable,k=f[b],!k){if(!a)return v;k=f[b]={};b>this.Ef&&(this.Ef=b)}if(g=k[e],!g)return a&&(g=k[e]={},v=new oa(this,b,e),g.calc=v,v.node=g,e>this.Ff&&(this.Ff=e)),v;v=g.calc;!v&&a&&(v=new oa(this,b,e),g.calc=v,v.node=g,b>this.Ef&&(this.Ef=b),e>this.Ff&&(this.Ff=e))}return v},rg:function(b,e){var a=t;return 0<=b&&(a=this.Yf(b,-1),!a&&e&&(a=new ma(this,b),this.Zf(b,-1,a),b>this.Ef&&(this.Ef=b))),a},sg:function(b,e){var a=t;return 0<=b&&(a=this.Yf(-1,b),!a&&e&&(a=new ea(this,b),this.Zf(-1,b,a),b>this.Ff&&(this.Ff=b))),a},ug:function(b){return!this.vg&&b&&(this.vg=new fa(this)),this.vg},wg:function(b,e){var a=t;return this.xg||(this.xg={}),a=this.xg[b],!a&&e&&(a=this.xg[b]=new ga(this,b)),a},yg:function(b,e){var a,f,k=Math.min(this.Ff,b+e-1);for(a=b;-1!==a&&a<=k;a++)this.isDirty(-1,a)&&(f=this.sg(a,!0),this.Af.pg(f,2))},zg:function(b,e){var a,f,k=Math.min(this.Ef,b+e-1);for(a=b;-1!==a&&a<=k;a++)this.isDirty(a,-1)&&(f=this.rg(a,!0),this.Af.pg(f,1))},Ag:function(b,e,a,f){var k,g,v,p=Math.min(this.Ef,b+a-1),c=Math.min(this.Ff,e+f-1);for(k=b;k<=p;k++)for(g=e;g<=c;g++)this.ega(k,g)&&(v=this.qg(k,g,!0),this.Af.pg(v,0));this.zg(b,a);this.yg(e,f);(k=this.ug(!1))&&k.Bg(b,e,a,f)},Cg:function(){var b,e,a,f,k,g=this.ag();for(a=0;a<g.length;a++)(f=g[a])&&f.isVolatile&&f instanceof oa&&!this.Af.Dg(f)&&(k=this.qg(f.row,f.column,!0),this.Af.pg(k,0),b=this.rg(f.row,!1),b&&!this.Af.Eg(b)&&this.zg(f.row,1),e=this.sg(f.column,!1),e&&!this.Af.Eg(e)&&this.yg(f.column,1))},Fg:function(){for(var b,e,a,f,k,g=this.ag(),v=!0,p=5;v&&p;){v=!1;p--;for(a=0;a<g.length;a++)(f=g[a])&&f.isVolatile&&f instanceof oa&&!this.Af.Dg(f)&&this.recalculateCell(f.row,f.column)&&(v=!0,k=this.qg(f.row,f.column,!0),this.Af.pg(k,0),b=this.rg(f.row,!1),b&&!this.Af.Eg(b)&&this.zg(f.row,1),e=this.sg(f.column,!1),e&&!this.Af.Eg(e)&&this.yg(f.column,1));v&&this.Af.Gg(!0)}},isDirty:function(b,e){return!(!this.Yf(b,e)&&!this.Kf(b,e))},recalculateCell:function(b,a){var f,k,g,v,p,c,h,m,x,t=this.xf,d=this.getWorkingExpression(b,a)||this.getExpression(b,a);return d?(f=Z(b,a),k=t.getValue(b,a),g=!1,m=this.Qf(b,a),m&&(g=!0,v=m.row,p=m.col,c=m.rowCount,h=m.colCount),this.Af.oia&&this.Af.lh.asyncManager.startCalcCell(this.xf,f),x=this.Af.Hg(this.xf,d,f,g,!0,m&&e(v,p,c,h)),k===x)?void 0:!(k instanceof Date&&x instanceof Date&&k.valueOf()===x.valueOf())&&(t.setValue(b,a,x),this.Af.oia&&this.Af.lh.asyncManager.endCalcCell(this.xf,f),!0):!1},recalculateNameID:function(b){var e,a,f=this.xf,k=this.getWorkingExpressionByName(b)||this.getExpressionByName(b);!k||(e=f.getValueByName(b),a=this.Af.Hg(this.xf,k,{name:b},!1,!0),e===a)||e instanceof Date&&a instanceof Date&&e.valueOf()===a.valueOf()||f.setValueByName(b,a)},Ig:function(e,a,f,k,g,p){for(var c,h,m,x,y,n,T,B,N,E,q,S,w,r,P,z,C,aa,M;12===k.type;)k=k.value;for(;10===k.type;)k=k.value;for(;12===k.type;)k=k.value;if(g){for(;12===g.type;)g=g.value;for(;10===g.type;)g=g.value;for(;12===g.type;)g=g.value}if(13===k.type){if(c=k.getRange(a,f,!0),c===t)return;k=1===c.rowCount&&1===c.colCount?b(t,t,c.row,c.col,!1,!1):v(t,t,c.row,c.col,c.row+c.rowCount-1,c.col+c.colCount-1,!1,!1,!1,!1)}if(g&&g!==k&&8===g.type&&(q=d(g.value),N=g.source||this.xf,S=N.getCustomName(q),S?E=N.getCalcSourceModel():(E=this.Af.getGlobalSourceModel()||N.getCalcSourceModel(),S=E.getSource().getCustomName(q),S||(w=N.getCalcSourceModel().wg(q,!0),w.Jg(e,p))),r=E.wg(q,!0),r.Jg(e,p),g=null),1===k.type&&k.endSource)for(m=k,n=m.source.getSources(m.endSource),h=0;h<n.length;h++)T=v(n[h],t,m.row,m.column,m.endRow,m.endColumn,m.rowRelative,m.columnRelative,m.endRowRelative,m.endColumnRelative),T.isFullRow=m.isFullRow,T.isFullColumn=m.isFullColumn,this.Ig(e,a,f,T,t,p);else if(1===k.type){if(N=k.source||this.xf,E=N.getCalcSourceModel(),E)if(P=k,z=P.tf(),C=Y(k,a,f),h=C.row,m=C.col,x=C.rowCount,y=C.colCount,k=h+x-1,g=m+y-1,0===z)if(0<=a&&0<=f)if(127<x*y)a=E.ug(!0),a.Jg(h,m,x,y,e,p);else for(a=h;a<=k;a++)for(f=m;f<=g;f++)(n=E.qg(a,f,!0))&&n.Jg(e,p);else{if(0<=a&&-1===f){for(a=h;a<=k;a++)for(f=m;f<=g;f++)P.columnRelative||P.endColumnRelative?(T=E.rg(a,!0),T&&T.Kg(e,-f,p)):(n=E.qg(a,f,!0),n&&n.Lg(e,p));for(a=h;a<=k;a++)for(f=m;f<=g;f++)P.rowRelative||P.endRowRelative?(B=E.sg(f,!0),B&&B.Mg(e,-a,p)):(n=E.qg(a,f,!0),n&&n.Ng(e,p))}}else if(1===z)if(0<=a&&0<=f)for(a=h;a<=k;a++)(T=E.rg(a,!0))&&T.Jg(e,p);else{if(!(0<=a&&-1===f)&&-1===a&&0<=f&&!P.rowRelative&&!P.endRowRelative)for(h=P.row,k=P.endRow,a=h;a<=k;a++)(T=E.rg(a,!0))&&T.Ng(e,p)}else if(2===z)if(0<=a&&0<=f)for(f=m;f<=g;f++)(B=E.sg(f,!0))&&B.Jg(e,p);else if(!(0<=a&&-1===f)&&-1===a&&0<=f)for(f=m;f<=g;f++)(B=E.sg(f,!0))&&B.Ng(e,p)}else if(9===k.type)this.Ig(e,a,f,k.value,g&&9===g.type&&g.value,p),k.value2&&this.Ig(e,a,f,k.value2,g&&9===g.type&&g.value2,p);else if(8===k.type){if(N=k.source||this.xf,q=d(k.value),S=N.getCustomName(q),S?E=N.getCalcSourceModel():(E=this.Af.getGlobalSourceModel()||N.getCalcSourceModel(),S=E.getSource().getCustomName(q),S||(w=N.getCalcSourceModel().wg(q,!0),w.Jg(e,p))),r=E.wg(q,!0),r)r.Jg(e,p),this.Ig(e,a,f,S,t,p)}else if(7===k.type){if(h=k["function"]){if(h.isVolatile()&&(p?this.bg(e):this.Tf(e)),!h.precedentReference())return;h instanceof ra.AsyncFunction&&(this.Af.oia=!0)}m=k.arguments.length;for(h=0;h<m;h++)this.Ig(e,a,f,k.arguments[h],g&&7===g.type&&g.arguments[h],p)}else(25===k.type||26===k.type)&&(aa=k,N=k.source||this.xf,E=N.getCalcSourceModel(),M=E.mg(aa.value,!0),M)&&M.Jg(e,p)},Og:function(b,e){var a=this.getNodeByName(b);a&&(a.Nf||a.Lf)&&this.Ig(this.mg(b),0,0,a.Nf||a.Lf,a.Lf,e)},Pg:function(b,e,a,f,k){var g,v,p,c;a=b+a;f=e+f;for(p=b;p<a;p++)for(c=e;c<f;c++)b=this.Mf(p,c),g=this.Kf(p,c),(b||g)&&(v=this.Of(p,c),v?this.Ig(this.qg(p,c),v.row,v.col,b||g,g,k):this.Ig(this.qg(p,c),p,c,b||g,g,k))},Qg:function(b,e,a){var f;for(e=b+e;-1!==b&&b<e;b++)(f=this.getColumnExpression(b))&&this.Ig(this.sg(b,!1),-1,b,f,f,a)},Rg:function(b,e,a,f){this.Pg(b,e,a,f,!0)},Sg:function(b,e,a,f){this.Pg(b,e,a,f,!1)},Tg:function(b,e){},Ug:function(b,e){},Vg:function(b,e){this.Qg(b,e,!0)},Wg:function(b,e){this.Qg(b,e,!1)},Xg:function(b,e,a,f,k,g){var v,p;a=b+a;for(f=e+f;b<a;b++)for(v=e;v<f;v++)(p=this.qg(b,v,!1))&&(k&&p.Yg(),g&&p.Bg())},Zg:function(b,e,a,f){var k,g,v,p=this.Hf;if(p)for(k=b;-1!==k&&k<b+e&&k<p.length;k++)(g=p[k])&&g.calc&&(v=g.calc,a&&v.Yg(),f&&v.Bg())},$g:function(b,e,a,f){var k,g,v,p=this.If;if(p)for(k=b;-1!==k&&k<b+e&&k<p.length;k++)(g=p[k])&&g.calc&&(v=g.calc,a&&v.Yg(),f&&v.Bg())},_g:function(b,e,a,f,k,g){var v,p;(k||g)&&(0<=b&&0<=e?(this.Xg(b,e,a,f,k,g),this.Zg(b,a,k,g),this.$g(e,f,k,g),this.vg&&(k&&this.vg.Yg(b,e,a,f),g&&this.vg.Bg(b,e,a,f))):0<=b&&-1===e?(this.Xg(b,0,a,this.cC(),k,g),this.Zg(b,a,k,g),this.vg&&(k&&this.vg.Yg(b,e,a,f),g&&this.vg.Bg(b,e,a,f))):-1===b&&0<=e?(this.Xg(0,e,this.rC(),f,k,g),this.$g(e,f,k,g),this.vg&&(k&&this.vg.Yg(b,e,a,f),g&&this.vg.Bg(b,e,a,f))):-1===b&&-1===e&&(v=this.rC(),p=this.cC(),this.Xg(0,0,v,p,k,g),this.Zg(0,v,k,g),this.$g(0,p,k,g),this.vg&&(k&&this.vg.Yg(b,e,a,f),g&&this.vg.Bg(b,e,a,f))))},getAllNodes:function(){var b,e,a,f,k=[],g=this.dataTable;f=this.Hf;var v=this.If;(b=this.Jf)&&k.push(b);for(e in f)(b=f[e])&&k.push(b);for(e in v)(b=v[e])&&k.push(b);for(a in g)if(f=g[a])for(e in f)(b=f[e])&&k.push(b);return k},toJSON:function(b){this.xf.toJSON(b,this.dataTable,this.Ef,this.Ff)}};l=ba.BaseCalc=function(){return function(b){this.cellListeners={};this.rowListeners={};this.columnListeners={};this.ah=b}}();l.prototype={hasListeners:function(){var b,e,a,f=this.Ze;for(b=0;b<f.length;b++)if(e=this[f[b]])for(a in e)if(e[a])return!0;return!1},Jg:function(b,e){var a=this.cellListeners,f=b.ah,f=(null===f?"":f.xf.id+",")+b.row+","+b.column;e?a[f]=b:a[f]&&(a[f]=void 0)},Lg:function(b,e){var a=this.rowListeners,f=b.ah,f=(null===f?"":f.xf.id+",")+b.row+",-1";e?a[f]=b:a[f]&&(a[f]=void 0)},Ng:function(b,e){var a=this.columnListeners,f=b.ah,f=(null===f?"":f.xf.id+",")+-1+","+b.column;e?a[f]=b:a[f]&&(a[f]=void 0)},Yg:function(){var b,e,a,f,k=this.Ze;for(e=0;e<k.length;e++)if(a=this[k[e]])for(f in a)(b=a[f])&&b.bh()},Bg:function(){var b,e,a,f,k=this.Ze;for(e=0;e<k.length;e++)if(a=this[k[e]])for(f in a)b=a[f],!b||b.dh||b.eh||b.fh()},gh:function(b){var e,a,f,k=this.Ze,g=b?1:-1;for(e=0;e<k.length;e++)if(a=this[k[e]])for(f in a)(b=a[f])&&(b.delay+=g)},bh:function(){},fh:function(){},ng:function(){},og:function(){}};oa=ba.CellCalc=function(b){function e(e,a,f){b.call(this,e);this.row=a;this.column=f;this.delay=0;this.Ze=["cellListeners","rowListeners","columnListeners"]}c(e,b);return e}(l);u(oa.prototype,{og:function(){this.ah.Rg(this.row,this.column,1,1)},ng:function(){this.ah.Sg(this.row,this.column,1,1)},bh:function(){this.ah.Cf().ih().hh(this,0)},fh:function(){this.ah.Cf().pg(this,0)}});ma=ba.RowCalc=function(b){function e(e,a){b.call(this,e);this.row=a;this.Ze=["cellListeners","rowListeners","rowSliceListeners","columnListeners"]}c(e,b);return e}(l);u(ma.prototype,{incrementDelay2:function(b,e){},decrementDelay2:function(b,e){},og:function(){this.ah.Tg(this.row,1)},ng:function(){this.ah.Ug(this.row,1)},Kg:function(b,e,a){if(a)b={row:b,columnOffset:e,columnCount:1},this.rowSliceListeners||(this.rowSliceListeners=[]),this.rowSliceListeners.push(b);else a:if(b={row:b,columnOffset:e,columnCount:1},a=this.rowSliceListeners)for(e=0;e<a.length;e++)if(a[e]===b){a.splice(e,1);break a}},bh:function(){this.ah.Cf().ih().hh(this,1)},fh:function(){this.ah.Cf().pg(this,1)}});ea=ba.ColumnCalc=function(b){function e(e,a){b.call(this,e);this.column=a;this.Ze=["cellListeners","rowListeners","columnListeners","columnSliceListeners"]}c(e,b);return e}(l);u(ea.prototype,{incrementDelay2:function(b,e){},decrementDelay2:function(b,e){},og:function(){this.ah.Vg(this.column,1)},ng:function(){this.ah.Wg(this.column,1)},Mg:function(b,e,a){this.Ng(b,a)},bh:function(){this.ah.Cf().ih().hh(this,2)},fh:function(){this.ah.Cf().pg(this,2)}});ga=ba.NameCalc=function(b){function e(e,a){b.call(this,e);this.name=a;this.Ze=["cellListeners","rowListeners","columnListeners"]}c(e,b);return e}(l);u(ga.prototype,{updateListening:function(b,e){var a,f,k,g,v,p,c,h=this.Ze;for(k=0;k<h.length;k++)if(f=this[h[k]]){g=[];for(v in f)(a=f[v])&&g.push(a);p=g.length;for(c=0;c<p;c++)a=g[c],f=a.node,a.ng(),f&&(!f.Pf||f.Pf.row===a.row&&f.Pf.col===a.column)&&a.ah.fg(a.row,a.column,f.Lf,f.Pf,!0)}},updateListeningOnRemoved:function(){var b,e,a,f,k,g,v,p,c,h,m=this.Ze,x=this.ah,t=x.Cf();for(g=0;g<m.length;g++)if(v=this[m[g]])for(p in v)(b=v[p])&&(e=b.ah,a=b.row,f=b.col,a=a===E?-1:a,f=f===E?-1:f,k=e.getExpr(a,f),c=e.Qf(a,f),k&&(h=t.ih().adjustFormulaOnRemoveName(x,k,this.name),h!==k&&e.fg(a,f,h,c,!0)))},fh:function(){var b,e,a,f,k=this.Ze;for(e=0;e<k.length;e++)if(a=this[k[e]])for(f in a)(b=a[f])&&b.fh()}});T=ba.NameIDCalc=function(b){function e(e,a){b.call(this,e);this.name=a;this.delay=0;this.Ze=["cellListeners","rowListeners","columnListeners"]}c(e,b);return e}(l);u(T.prototype,{og:function(){this.ah.Og(this.name,!0)},ng:function(){this.ah.Og(this.name,!1)},bh:function(){this.ah.Cf().ih().hh(this,3)},fh:function(){this.ah.Cf().pg(this,3)}});fa=ba.RangeCalc=function(){return function(b){this.ah=b;this.Ze=["cellListeners","rowListeners","columnListeners"]}}();u(fa.prototype,{processListener:function(b,e,a,f,k,g,v){var p,c=this[b],h=e+","+a+","+f+","+k;if(c||(this[b]=c={}),p=c[h],!p){if(!v)return;p=c[h]=[];p.row=e;p.col=a;p.rowCount=f;p.colCount=k}if(v){for(b=0;b<p.length;b++)if(p[b]===g)return;p.push(g)}else for(b=0;b<p.length;b++)p[b]===g&&p.splice(b,1)},Jg:function(b,e,a,f,k,g){this.processListener("cellListeners",b,e,a,f,k,g)},Lg:function(b,e,a,f,k,g,v,p,c){this.processListener("rowListeners",b,e,a,f,k,c)},Ng:function(b,e,a,f,k,g,v,p,c){this.processListener("columnListeners",b,e,a,f,k,c)},Yg:function(b,e,a,f){this.visit(0,b,e,a,f)},visit:function(b,e,a,f,k){var g,v,p,c,h,m,x,t,d,y,n,T=this.Ze;for(p=0;p<T.length;p++)if(c=this[T[p]])for(v in c)if(h=c[v],h&&(m=h.row,x=h.col,t=h.rowCount,d=h.colCount,(-1===m||-1===e||m<e+f&&e<m+t)&&(-1===x||-1===a||x<a+k&&a<x+d)))for(y=h.length,n=0;n<y;n++)g=h[n],0===b?g.bh():g.fh()},Bg:function(b,e,a,f){this.visit(1,b,e,a,f)},gh:function(b,e,a){var f,k,g,v,p,c,h=this.Ze,m=a?1:-1;for(a=0;a<h.length;a++)if(k=this[h[a]])for(g in k)if(v=k[g],f=v,(f&&-1===f.row||f.row<=b&&b<f.row+f.rowCount)&&(-1===f.col||f.col<=e&&e<f.col+f.colCount))for(p=v.length,c=0;c<p;c++)v[c].delay+=m},og:function(){},ng:function(){}});(ba.CalcService=function(){return function(){this.jh={};this.autoCalculation=!0;this.maximumIterations=1E3;this.maximumChange=.01;this.kh=new ba.Parser;this.lh=new ba.Evaluator(this);this.useR1C1=!1;this.Fia=this.mh=0;this.nh=ba.CalcOperatorAdjustor&&new ba.CalcOperatorAdjustor}}()).prototype={dispose:function(){this.jh={};this.oh=t},cloneFrom:function(b){this.useR1C1=b.useR1C1;this.mh=b.mh;this.qh=b.qh},ih:function(){return this.nh},getSourceModel:function(b){var e=this.jh[b.id];return e||(e=this.jh[b.id]=new ja(this,b),b.setCalcSourceModel(e),b.setCalcService(this)),e},getGlobalSourceModel:function(b){return this.oh||(b=b||new ka,this.oh=new ja(this,b)),this.oh},setSourceModel:function(b,e){this.jh[b.id]=e;e.setCalcService(this)},getAllSouceModels:function(){var b,e=[],a=this.jh;for(b in a)e.push(a[b]);return e},removeSource:function(b){this.jh[b.id]&&(this.nh.ph(b),delete this.jh[b.id])},clearSource:function(){this.jh={};this.clearDirties()},ignoreDirty:function(){return this.qh},suspend:function(b){this.mh++;this.qh=!!b||b},resume:function(b){this.mh--;0>this.mh&&(this.mh=0);this.IsSuspended()||(this.rh=t,this.qh=!1,this.recalculateAll(b))},suspendAdjust:function(){this.Fia++},resumeAdjust:function(){this.Fia--;0>this.Fia&&(this.Fia=0)},isAdjustSuspended:function(){return 0<this.Fia},clearDirties:function(){var b,e,a,f=[this.sh,this.th,this.uh,this.vh];for(a=0;a<f.length;a++)for(b=f[a];b;)(e=b.eh)?(b.eh=e.dh=E,b=e):b=t;this.sh=this.wh=this.th=this.xh=this.uh=this.yh=this.vh=this.zh=t},resumeWithoutCalc:function(){this.mh=0;this.clearDirties()},IsSuspended:function(){return 0<this.mh},recalculate:function(b,e,a,f){b=this.getSourceModel(b);-1===a?b.Ag(e,0,1,b.cC()):-1===e?b.Ag(0,a,b.rC(),1):b.Ag(e,a,1,1);this.IsSuspended()||this.recalculateAll(!1,f)},recalculateByName:function(b,e){var a,f;e&&(a=this.getSourceModel(b),f=a.mg(d(e),!0),this.pg(f,3),this.IsSuspended()||this.recalculateAll(!1))},recalcRange:function(b,e,a,f,k){b=this.getSourceModel(b);-1===a?b.Ag(e,0,f,b.cC()):-1===e?b.Ag(0,a,b.rC(),k):b.Ag(e,a,f,k);this.IsSuspended()||this.recalculateAll(!1)},recalculateAll:function(b,e){var a,f,k,g,v;if(!this.IsSuspended()){e||this.lh.startCache();f=this.jh;for(k in f)a=f[k],a.getSource().startCalculation(),!1!==b?(g=a.cC(),v=a.rC(),a.yg(0,g),a.zg(0,v),a.Ag(0,0,v,g)):e||a.Cg();if(this.Gg(),!e)for(k in f)a=f[k],a.Fg();for(k in f)a=f[k],a.getSource().endCalculation();e||this.lh.endCache()}},Ah:function(b,e){for(var a=b.length,f=e;f;)b[a]=f,a++,f=f.eh},Gg:function(b){var e,a,f,k,g,v,p,c,h,m;if(void 0===b&&(b=!0),b){e=[];for(this.uh&&this.Ah(e,this.uh);this.th;){f=this.th.ah;v=f.cC();for(g=0;g<v;g++)this.pg(f.qg(this.th.row,g,!0),0);this.Bh(this.th,1)}for(;this.uh;){if(f=this.uh.ah,a=f.rC(),0<a)for(k=0;k<a;k++)this.pg(f.qg(k,this.uh.column,!0),0);else this.uh.Bg();this.Bh(this.uh,2)}for(b=this.sh;b;b=b.eh){f=b.ah;v=b.row;p=b.column;c=f.rg(v,!1);h=f.sg(p,!1);a=f.ug(!1);b.Bg();c&&c.Bg();h&&h.Bg();for(a&&a.Bg(v,p,1,1);this.th;){f=this.th.ah;v=f.cC();for(g=0;g<v;g++)this.pg(f.qg(this.th.row,g,!0),0);this.Bh(this.th,1)}for(;this.uh;){v=!1;for(a=0;a<e.length;a++)if(e[a]===this.uh){v=!0;break}if(!v)for(e[e.length]=this.uh,f=this.uh.ah,a=f.rC(),k=0;k<a;k++)this.pg(f.qg(k,this.uh.column,!0),0);this.Bh(this.uh,2)}}for(b=this.vh;b;b=b.eh)f=b.ah,b.Bg()}for(b=this.sh;b;b=e)f=b.ah,a=f.rC(),v=f.cC(),e=b.eh,b.row<a&&b.column<v?(ba.supportRowColumnFormula&&(h=f.sg(b.column,!1),h&&(h.delay=0)),b.delay=0):this.Bh(b,0);for(b=this.vh;b;b=b.eh)b.delay=0;for(b=this.sh;b;b=b.eh)f=b.ah,k=b.row,g=b.column,c=f.rg(k,!1),h=f.sg(g,!1),a=f.ug(!1),b.gh(!0),c&&c.gh(!0),h&&h.gh(!0),a&&a.gh(k,g,!0);for(b=this.vh;b;b=b.eh)b.gh(!0);do{a=!1;for(b=this.sh;b;b=e)(e=b.eh,0!==b.delay)||(f=b.ah,k=b.row,g=b.column,c=f.rg(k,!1),h=f.sg(g,!1),h&&h.delay)||(a=f.ug(!1),f.recalculateCell(k,g),this.Bh(b,0),b.gh(!1),c&&c.gh(!1),h&&h.gh(!1),a&&a.gh(k,g,!1),a=!0);for(b=this.vh;b;b=b.eh)0===b.delay&&(f=b.ah,f.recalculateNameID(b.name),this.Bh(b,3),b.gh(!1),a=!0)}while(a);if(this.sh){f=!0;for(m in this.jh)b=this.jh[m],b.getSource().clearValueCache();for(a=0;f&&a<this.maximumIterations;a++)for(f=!1,b=this.sh;b;b=e)e=b.eh,m=b.ah,Z(k,g),k=b.row,g=b.column,b=m.getSource().getValue(k,g),m.recalculateCell(k,g),m=m.getSource().getValue(k,g),this.Ch(b,m)>=this.maximumChange&&(f=!0);for(b=this.sh;b;b=e)e=b.eh,b.eh=E,e&&(e.dh=E);this.sh=this.wh=E}},Ch:function(b,e){var a,f;return b=b||0,e=e||0,a=parseFloat(b),f=parseFloat(e),M(f-a)},initParserContext:function(b){this.Dh||(this.Dh=b.getParserContext(this.useR1C1))},getParserContext:function(b){var e=this.Dh;return e||(b?this.Dh=e=b.getParserContext(this.useR1C1):e=new ba.ParserContext(t,this.useR1C1,Z(0,0),t)),e.setSource(b),e},parse:function(b,e,a,f,k,g,v){var p,c,h=this.rh;b=this.getParserContext(b);return b.useR1C1=!v&&this.useR1C1,b.ignoreError=g,b.row=a,b.column=f,b.culture=k,h?(b.useR1C1||(b.useR1C1=!0,e=this.kh.a1ToR1C1(b,e)),(p=h[e])?p:(c=this.kh.parse(b,e),h[e]=c,c)):this.kh.parse(b,e)},unparse:function(b,e,a,f,k,g){var v;b=this.getParserContext(b);return b.useR1C1=this.useR1C1,b.row=a,b.column=f,b.culture=k,g&&(b.Eh=!0,b.useR1C1=!1),v=this.kh.unparse(b,e),b.Eh=!1,v},Dg:function(b){return!!b.dh||b===this.sh},pg:function(b,e){var a,f;if(0===e)a=this.sh,f=this.wh;else if(1===e)a=this.th,f=this.xh;else if(2===e)a=this.uh,f=this.yh;else{if(3!==e)return;a=this.vh;f=this.zh}b&&!b.dh&&b!==a&&(a?f.eh=b:0===e?this.sh=b:1===e?this.th=b:2===e?this.uh=b:this.vh=b,b.dh=f,b.eh=t,0===e?this.wh=b:1===e?this.xh=b:2===e?this.yh=b:this.zh=b)},Bh:function(b,e){var a,f,k;if(0===e)a=this.sh;else if(1===e)a=this.th;else if(2===e)a=this.uh;else{if(3!==e)return;a=this.vh}b&&(b.dh||b===a)&&(f=b.dh,k=b.eh,f?f.eh=k:0===e?this.sh=k:1===e?this.th=k:2===e?this.uh=k:this.vh=k,k?k.dh=f:0===e?this.wh=f:1===e?this.xh=f:2===e?this.yh=f:this.zh=f,b.dh=t,b.eh=t)},Eg:function(b){return b.dh||b===this.th},isDirtyColumn:function(b){return b.dh||b===this.uh},Hg:function(b,e,a,f,g,v){var p,c,h,m,x,d,y=a.row||0,n=a.col||0,T=v?v.row:y,B=v?v.col:n,N=b.getEvaluatorContext(a,f,v),N=this.lh.evaluateExpression(e,N,g,4===arguments.length&&f);if(f&&5>=arguments.length)return N;if(K.Fh(N)){if(p=N.getRowCount(0),c=N.getColumnCount(0),1!==N.getRangeCount())return k;try{if(h=f?y-T:y-N.getRow(0),m=f?n-B:n-N.getColumn(0),x=Z(0,0),1!==p||1!==c)if(1===p&&1<c&&0<=m&&m<c)x.col=m;else if(1<p&&1===c&&0<=h&&h<p)x.row=h;else{if(!(f&&h<p&&m<c))return f?P:k;x.row=h;x.col=m}N=N.getValue(x,0)}catch(fb){return k}}else if(K.Ca(N))if(f){if(p=N,c=p.getRowCount(),d=p.getColumnCount(),1!==c&&y-T>=c||1!==d&&n-B>=d)return P;N=N.getValue(1===c?0:y-T,1===d?0:n-B)}else N=N.getValueByIndex(0);return N===E||N===t?!1===g?N:0:N},Gh:function(b,e,a){var f=this.Dh;return f||(this.Dh=f=b.getParserContext(this.useR1C1)),f.useR1C1=this.useR1C1,f.row=e,f.column=a,f},evaluate:function(b,e,a,f){e=this.parse(b,e,a,f);return this.lh.evaluateExpression(e,b.getEvaluatorContext(Z(a,f),!1),!1)}};Fa=ba.Hh=function(b,e,a){var f=new X(5);return e&&(f.source=e),a&&(f.endSource=a),f.value=b,f};ba.Ih=Fa(x);aa=ba.Jh=function(b,e){var a=new X(7);return a["function"]=b,a.arguments=e,b instanceof X?(a["function"]=b["function"],a.functionName=b.functionName):(a["function"]=b.name&&b,a.functionName=b.name||b),a};xa=ba.Kh=function(b,e,a){var f=new X(9);return f.operatorType=b,f.value=e,f.value2=a,f};Ia=ba.Lh=function(b){var e=new X(10);return e.value=b,e};la=ba.Mh=function(e,a,f,g,p){var c,h,m,x,d,y,n,T,N,B,E,q,S,r,M,l,fa,X,V,A,Y,Oa,ca,D,Qa,Ca,pb,la,pa,ga,F,G,qa=function(b,e,a,f,k){return{expr:b,acceptsArray:e,acceptsRef:a,index:f,context:k}},ka=e.row,u=e.column,sa=[],ja=0,ya=e.arrayIdentity?e.arrayIdentity.row:ka,ia=e.arrayIdentity?e.arrayIdentity.col:u;sa[ja]={expr:a,acceptsArray:!1,acceptsRef:!1,index:-1};h=c=0;for(x=m=!1;0<=ja;){if(d=sa[ja--],y=d.acceptsArray,n=d.acceptsRef,a=d.expr,T=t,a)if(7===a.type){if(B=a,y=B.arguments.length,!B["function"]){if(!e){T=Fa(W);continue}B["function"]=e.getFunction(B.functionName)}if(E=B["function"],q=d.index,S=d.neeedExpendindexs,0>q?(d.arrayArgumentEvaluateMode=x,d.arrayFormulaCatchValue=f,E&&E.arrayArgumentEvaluateMode&&(x=E.arrayArgumentEvaluateMode),d.args=[]):(E&&E.acceptsArray(q)?c--:m&&(S||(S=[],d.neeedExpendindexs=S),B.arguments[q]!==N,S.push(q)),d.args.push(N)),q===y-1){if(x=d.arrayArgumentEvaluateMode,f=d.arrayFormulaCatchValue,r=d.args,N=!1,r&&0<r.length)for(T=0;T<r.length;T++)if(r[T]!==B.arguments[T]){N=!0;break}T=N?aa(B,r):a;S&&0<S.length&&(T=J(T,S),m=!0)}else 0===q&&E&&3===E.arrayArgumentEvaluateMode&&3===x&&(x=0),m=!1,q++,d.index=q,E&&E.acceptsArray(q)&&c++,sa[++ja]=d,sa[++ja]={expr:B.arguments[q],acceptsArray:!!E&&E.acceptsArray(q),acceptsRef:!!E&&E.acceptsReference(q),index:-1}}else if(1===a.type&&a.sf)h&&(a.rowRelative||a.columnRelative)&&(M=a.source!==ba.BangSource&&a.source||e.source,l=M.getRowCount(),fa=M.getColumnCount(),X=a.rowRelative?(a.row+ya)%z%l:a.row,V=a.columnRelative?(a.column+ia)%C%fa:a.column,X=0>X?X+l:X,V=0>V?V+fa:V,a=b(a.source,t,X,V,!1,!1));else if(1===a.type||13===a.type){if(13===a.type){if(A=a,Y=A.getRange(ka,u),!Y){N=T=a;continue}a=v(A.source()===e.source?t:A.source(),t,Y.row,Y.col,Y.row+Y.rowCount-1,Y.col+Y.colCount-1)}N=a.source!==ba.BangSource&&a.source;Oa=a;h&&(Oa.rowRelative||Oa.columnRelative||Oa.endRowRelative||Oa.endColumnRelative)&&(M=N||e.source,l=M.getRowCount(),fa=M.getColumnCount(),ca=Oa.rowRelative?(Oa.row+ya)%l:Oa.row,D=Oa.columnRelative?(Oa.column+ia)%fa:Oa.column,Qa=Oa.endRowRelative?(Oa.endRow+ya)%l:Oa.endRow,Ca=Oa.endColumnRelative?(Oa.endColumn+ia)%fa:Oa.endColumn,ca=0>ca?ca+l:ca,D=0>D?D+fa:D,Qa=0>Qa?Qa+l:Qa,Ca=0>Ca?Ca+fa:Ca,ca>Qa&&(pb=ca,ca=Qa,Qa=pb),D>Ca&&(pb=D,D=Ca,Ca=pb),a.row===w&&(ca=Qa=w),a.column===w&&(D=Ca=w),a=v(N,a.endSource,ca,D,Qa,Ca,!1,!1,!1,!1));n&&(y||!f&&1!==x&&3!==x)||0>ka||0>u||(0<c&&!f&&1!==x&&3!==x||0===c||2===x?(Y=Oa.getRange(ka,u),f||(n||y)&&1===x?!Oa.isFullColumn&&1!==Y.rowCount&&g>=Y.rowCount||!Oa.isFullRow&&1!==Y.colCount&&p>=Y.colCount?T=Fa(P):(X=(Oa.isFullColumn?0:Y.row)+(1===Y.rowCount?0:g),V=(Oa.isFullRow?0:Y.col)+(1===Y.colCount?0:p),T=b(N,a.endSource,X,V,!1,!1)):1<Y.rowCount&&1<Y.colCount||1<Y.rowCount&&!Oa.isFullColumn&&(ka<Y.row||ka>=Y.row+Y.rowCount)||1<Y.colCount&&!Oa.isFullRow&&(u<Y.col||u>=Y.col+Y.colCount)?T=Fa(k):(X=Oa.isFullColumn||1<Y.rowCount?ka:Y.row,V=Oa.isFullRow||1<Y.colCount?u:Y.col,T=b(N,a.endSource,X,V,!1,!1))):m=!0)}else if(9===a.type)y=15<=a.operatorType,-1===d.index?(d.index=a.value2?0:1,sa[++ja]=d,sa[++ja]=qa(a.value,y,y,-1)):0===d.index?(N!==a.value&&(T=xa(a.operatorType,N,a.value2),d.expr=T),m&&(S=[],S.push(0),d.neeedExpendindexs=S,m=!1),d.index=1,sa[++ja]=d,sa[++ja]=qa(a.value2,y,y,-1)):(T=a.value2&&N!==a.value2?xa(a.operatorType,a.value,N):a,S=d.neeedExpendindexs,m&&(S||(S=[]),S.push(1)),S&&(T=J(T,S),m=!0));else if(10===a.type)-1===d.index?(d.index=0,sa[++ja]=d,sa[++ja]=qa(a.value,y,n,-1)):a.value!==N&&(T=Ia(N));else if(8===a.type)1===d.index?(h--,T=N,d.context&&(e=d.context)):(h++,sa[++ja]=qa(a,!0,!0,1,e),pa=e,a.source?(ga=a.source===ba.BangSource?e.source:a.source,pa=new ba.EvaluateContext(ga),pa.cloneFrom(e),la=ga.getCustomName(a.value)):(la=e.getName(a.value),e.source.getCustomName(a.value)||(pa=new ba.GloableEvaluateContext(e.source),pa.cloneFrom(e))),la||(la=Fa(W)),e=pa||e,sa[++ja]=qa(la,!0,!0,-1,e));else if(6===a.type)if(N=a,!y&&(0<c||f||1===x||3===x))m=!0;else if(!y&&0===c)if(g>=N.value.RowCount&&1<N.value.RowCount||p>=N.value.colCount&&1<N.value.colCount)T=Fa(P);else try{1===N.value.RowCount&&(g=0),1===N.value.colCount&&(p=0),F=N.value.getValue(g,p),"string"==typeof F?T=R(F):"number"==typeof F&&(T=Q(F)),G=new ba.Parser,T=G.parse(e.source.getParserContext(e.useR1C1,Z(0,0)),""+N.value.getValue(g,p))}catch(Bb){T=Fa(P)}T===t?T=a:T!==a&&(N=!0);N=T}return T};K.Na=O;K.vf=H;K.Ca=I;K.Fh=L;K.Nh=function(b){return isNaN(b)||!isFinite(b)?V:b};K.Ph=F;K.wf=G;K.Oh=function(b,e,a){var f,g,v,p,c,h,m,x,d,y,n,T;if(!b||!b.length||!b[0].length)return f=[],f.isError=!0,[[k]];if(0===e)return b;if(g=B[e],v=b.length,p=b[0].length,m={value:t},x=!1,d=!1,y=K.CalcConvertedError,f=b[g],!f)for(f=[],b[g]=f,n=0;n<v;n++)for(g=b[n],c=f[n]=[],T=0;T<p;T++){if(h=g[T],H(h))x||(f.isError=!0,x=!0);else switch(e){case 1:case 5:a&&5!==e?D(h,m)?h=m.value:(d||(d=!0,f.isConvertError=!0),h=0):"number"===typeof h||h instanceof Date||(d||(d=!0,f.isConvertError=!0),h=y);break;case 3:a?A(h,m)?h=m.value:(d||(d=!0,f.isConvertError=!0),h=!1):"boolean"!==typeof h&&(d||(d=!0,f.isConvertError=!0),h=y);break;case 2:h=h===t||h===E?"":""+h}c.push(h)}return f};K.Qh=function(b){return isNaN(b)||!isFinite(b)};K.Rh=function(b){b=q(b);if(1E21>M(b))return parseInt(b,10);throw a().Exp_InvalidCast;};K.Sh=function(b,e){return!!D(b,e)&&1E21>M(e.value)&&(e.value=parseInt(e.value,10),!0)};K.Pa=q;pa={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};K.Th=D;K.Uh=A;K.Vh=function(b){if(!b)return!1;if("boolean"===typeof b)return b;if(b instanceof Date)return 0!==m.Ra(b);if(O(b))return 0!==b;if(H(b))return!1;throw a().Exp_InvalidCast;};K.bc=function(b){try{if(b===E||b===t)return"";if("boolean"===typeof b)return b?"TRUE":"FALSE";if("string"===typeof b)return b;if(b instanceof Date)return""+m.Ra(b);if(I(b))throw a().Exp_InvalidCast;return""+b}catch(Ka){throw a().Exp_InvalidCast;}};K.Wh=function(b){var e={value:t};if(r(b,e))return e.value;throw a().Exp_InvalidCast;};K.Xh=r;K.CalcConvertedError={};ba.Convert=K;l=function(){function b(){}return b.Yh=function(b,e){return b===e||M(b-e)<M(b)/281474976710656},b.getArrayValue=function(b,e,a){return b?e<b.getRowCount()&&a<b.getColumnCount()?b.getValue(e,a):a>=b.getColumnCount()&&1===b.getColumnCount()&&e<b.getRowCount()?b.getValue(e,0):e>=b.getRowCount()&&1===b.getColumnCount()&&a<b.getColumnCount()?b.getValue(0,a):k:k},b.tryExtractToSingleValue=function(b){var e,a=!0;return(L(b)||I(b))&&(e=F(b,0,!1,!0),e.isError?b=e[0]:1===e.rowCount&&1===e.colCount?b=e[0][0]:(b=e,a=!1)),{value:b,success:a}},b}();ba.Zh=l;l=function(){function b(){}return b.getLength=function(b,e){return I(b)?b.getRowCount()*b.getColumnCount():L(b)?(e=e?e:0,b.getRowCount(e)*b.getColumnCount(e)):void 0},b.getRowCount=function(b,e){return I(b)?b.getRowCount():L(b)?(e=e?e:0,b.getRowCount(e)):void 0},b.getColumnCount=function(b,e){return I(b)?b.getColumnCount():L(b)?(e=e?e:0,b.getColumnCount(e)):void 0},b.getValueByIndex=function(b,e,a){if(I(b))return b.getValueByIndex(e);if(L(b)){a=a?a:0;var f=b.getColumnCount(a);return b.getValue(a,parseInt(e/f,10),e%f)}},b.getValue=function(b,e,a,f){return I(b)?b.getValue(e,a):L(b)?(f=f?f:0,b.getValue(f,e,a)):void 0},b}();ba.CalcArrayHelper=l;(function(b){b[b.normal=0]="normal";b[b.allwaysExpand=1]="allwaysExpand";b[b.neverExpand=2]="neverExpand"})(ra.ArrayArgumentEvaluateMode||(ra.ArrayArgumentEvaluateMode={}));l=function(){function b(b,e,a,f){var k=arguments.length;this.name=b;this.minArgs=2>k?0:e;this.maxArgs=3>k?0:a;this.$h=f;this.typeName=""}return b.prototype={description:function(){var b=a()._h;return this.$h?this.$h:b&&b[this.name]},acceptsArray:function(b){return!1},acceptsReference:function(b){return!1},acceptsError:function(b){return!1},acceptsMissingArgument:function(b){return!1},isVolatile:function(){return!1},isContextSensitive:function(){return!1},isBranch:function(){return!1},findTestArgument:function(){return-1},findBranchArgument:function(b){return-1},expandRows:function(){return!0},expandColumns:function(){return!0},precedentReference:function(){return!0},returnReference:function(){return!1},evaluate:function(b){},evaluateWithContext:function(b,e){var a=e;return this.isContextSensitive()&&(a=e.slice(),a.unshift(b)),this.evaluate.apply(this,a)},toJSON:function(){var b,e={};for(b in this)this.hasOwnProperty(b)&&(e[b]=this[b]);return e},fromJSON:function(b){if(b)for(var e in b)b[e]!==E&&(this[e]=b[e])}},b.ai=function(b,e,a){var f;b=new ra.Function(b,0,255);if(e&&"function"==typeof e&&(b.evaluate=e),a)for(f in a)a.hasOwnProperty(f)&&"override"!==f&&(b[f]=a[f]);return b},b}();ra.Function=l;l=function(b){function e(e,a,f,k){b.call(this,e,a,f,k)}c(e,b);return e}(l);u(l.prototype,{isContextSensitive:function(){return!0},evaluate:function(b,e){return this.evaluateAsync.apply(self,arguments)},evaluateAsync:function(b,e){self.evaluate.apply(self,arguments)},defaultValue:function(){return 0},evaluateMode:function(){return 0},evaluateWhenArgumentsIsSame:function(){return!0},interval:function(){return 1E4}});ra.AsyncFunction=l;ra.AsyncFunctionEvaluateMode={onRecalculation:0,calculateOnce:1,onInterval:2};ra.bi={};ra.ci={};ra.defineGlobalCustomFunction=function(b,e){return ra.ci[d(b)]=e,e};ra.findGlobalFunction=function(b){if(!b){var e;b=ra.bi;var a=ra.ci,f=[];for(e in b)f.push(b[e]);for(e in a)f.push(a[e]);return f}b=d(b);e=ra.bi;a=ra.ci;return e&&e[b]||a&&a[b]};ra.removeGlobalFunction=function(b){if(!b)return ra.bi={},void(ra.ci={});b=d(b);var e=ra.bi,a=ra.ci;e[b]?delete e[b]:a[b]&&delete a[b]};U.exports=ba},function(U,u){U.exports=GC.Spread.Common},function(U,u,l){function d(){throw y().Exp_FormulaInvalid;}function J(a,c,h){throw B.Kb(y()[h||"Exp_FormulaInvalidChar"],[a,c]);}function R(a,c,h,p,g,f){var k,m=a.length,d=h===p?0:1,t=[];for(c+=1;c<m;c++)if(k=a[c],k===g&&(t.push(k),c++,k=a[c]),k===h&&d++,k===p)if(d--,h===p&&c+2<m&&a[c+1]===h)t.push(h),c++;else{if(0===d)return{result:t,endIndex:c};t.push(k)}else t.push(k);f&&J(p,h,"Exp_NoSyntax")}function Q(a,c,m){var p,g,f,k,x=a.length,d=x-c;for(p=0;p<h.length;p++)if(g=h[p],f=g.length,c+f<=x&&(k=a.slice(c,c+f),f<=d&&g===k.join("").toUpperCase()))return{result:k,endIndex:c+f-1};m&&J([a[c],c])}function K(a,c,h){for(var p,g=a.length,f=0,k=[];c<g;c++)if(p=a[c],D(p.charCodeAt(0)))0===f?f=2:3===f?f=4:1===f?f=2:5!==f&&6!==f||(f=7),k.push(p);else if(p===h){if(2===f)f=4;else{if(0!==f&&1!==f)return{};f=3}k.push(".")}else if("+"===p||"-"===p){if(0===f)f=1;else{if(5!==f)return{num:k,endIndex:c-1};f=6}k.push(p)}else if("E"===p||"e"===p){if(2!==f&&4!==f)return{};f=5;k.push(p)}else if(2===f||4===f||7===f)return{num:k,endIndex:c-1};return 2===f||4===f||7===f?{num:k,endIndex:g-1}:{}}var O,H,I,L,F,G,q,D,A,r,n,w,z,C,c=l(26),m=l(25);U=c.j.G;u=c.j.Ia;var h=m.ErrorList,a=m.Expression,B=c.u,y=function(){return c.C(m.SR)()};m.OperatorType={Plus:0,Negate:1,Percent:2,Add:3,Sub:4,Mul:5,Div:6,Exp:7,Concat:8,EqualTo:9,NotEqualTo:10,LessThan:11,LessThanOrEqualTo:12,GreaterThan:13,GreaterThanOrEqualTo:14,Range:15,Union:16,Intersect:17};O=m.di="+;-;%;+;-;*;/;^;\x26;\x3d;\x3c\x3e;\x3c;\x3c\x3d;\x3e;\x3e\x3d;:;,; ".split(";");H={":":1,"^":2," ":3,"*":4,"/":4,",":5,"+":6,"-":6,"\x26":7,"\x3c":8,"\x3d":8,"\x3e":8,"\x3e\x3d":8,"\x3c\x3d":8,"\x3c\x3e":8};m.FormulaTokenType={Operand:0,Function:1,Subexpression:2,Argument:3,OperatorPrefix:4,OperatorInfix:5,OperatorPostfix:6,Whitespace:7};m.FormulaTokenSubtype={Nothing:0,Start:1,Stop:2,Text:3,Number:4,Logical:5,Error:6,RangeOrName:7,Concatenation:8,Intersection:9,Union:10,RangeOp:11,ExternalReference:12};I=".";L=",";F=";";G=",";q=[14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,24,24,26,24,24,24,20,21,24,25,24,19,24,24,8,8,8,8,8,8,8,8,8,8,24,24,25,25,25,24,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,24,21,27,18,27,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,25,21,25,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,11,24,26,26,26,26,28,28,27,28,1,22,25,19,28,27,28,25,10,10,27,1,28,24,27,10,1,23,10,10,10,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,25,1,1,1,1,1,1,1,1];D=m.isDigit=function(a){return 48<=a&&57>=a};m.ei=function(a){a=a.charCodeAt(0);return!(255>=a)||(127>=a?(a|=32,96<=a&&122>=a):0===q[a]||1===q[a])};m.fi=function(a){a=a.charCodeAt(0);return!(255>=a)||(127>=a?57>=a?48<=a:(a|=32,96<=a&&122>=a):0===q[a]||1===q[a])};m.isNumber=function(a){a=a.charCodeAt(0);return 127>=a?48<=a&&57>=a:8===q[a]||10===q[a]};m.Parser=function(){function h(){}return h.prototype={setParserOption:function(a){var m,p;void 0!==a&&c.CultureManager.q4()?(p=a.NumberFormat?a.NumberFormat:c.CultureManager.q4().NumberFormat,m=a?p:{}):(m={},p=m);L=h.listSeparator=m.listSeparator||",";I=m.numberDecimalSeparator||".";!a&&h.numberDecimalSeparator||(h.numberGroupSeparator=p.numberGroupSeparator||",",h.numberDecimalSeparator=p.numberDecimalSeparator);F=h.arrayGroupSeparator=m.arrayGroupSeparator||";";G=h.arrayListSeparator=m.arrayListSeparator||","},parse:function(a,c){var p,g;return this.setParserOption(a.culture),p=c.split(""),this.gi=p,g=this.parseToTokens(a,p,!a.ignoreError),this.buildExpressionTree(a,g,!a.ignoreError)},unparse:function(a,c,p){return p=p||[],this.kja(a,c,p),p.join("")},kja:function(a,c,p){var g,f;this.setParserOption(a.culture);g=a.getResolvers();for(f=0;f<g.length&&!g[f].unparse(a,this,c,p);f++);},parseToTokens:function(a,c,p){var g,f,k,h,m,d,y,t,e,b,v,n,B,q;void 0===p&&(p=!0);a=function(b,e,a){return 0<e.length?(b.push(new r(e,0,a)),[]):e};g=c.length;f=[];k=[];h=-1;m=[];for(t=y=0;t<g&&" "===c[t];)t++;"\x3d"===c[t]&&t++;for(y=t;t<g;t++)if(e=c[t],b=e.charCodeAt(0),97<=b&&122>=b||65<=b&&90>=b)m.push(e);else if(34===b)(v=R(c,t,'"','"',"",p))?(f.push(new r(v.result,0,t,t+v.result.length+2,3)),t=v.endIndex,y=t+1):(A(m,c.slice(t,g)),t=g-1);else if(39===b)(v=R(c,t,"'","'","",p))?(m.push("'"),A(m,v.result),m.push("'"),t=v.endIndex):(m.push("'"),t=g-1);else if(91===b)if(v=R(c,t,"[","]","'",p))m.push("["),A(m,v.result),m.push("]"),t=v.endIndex;else{if(!this.lda||0!==m.length||"R"!==m[0]&&"r"!==m[0]&&"C"!==m[0]&&"c"!==m[0])A(m,c.slice(t,g)),t=g-1}else 13!==b&&10!==e&&(35===b?(v=Q(c,t))?(f.push(new r(v.result,0,t,t+v.result.length-1,6)),y=t+1,t=v.endIndex):m.push(e):33===b?(0===m.length,f.push(new r(m,0,y,t,12)),m=[],y=t+1):43===b||45===b?(v=0===f.length?null:f[f.length-1],0!==m.length?(f.push(new r(m,0,y)),f.push(new r(e,5,t)),m=[],y=t+1):(v&&7===v.Nc&&f.pop(),!v||2!==v.hi&&6!==v.Nc&&0!==v.Nc?(f.push(new r(e,4,t)),y=t+1):(f.push(new r(e,5,t)),y=t+1))):e===I||D(b)?0<m.length?m.push(e):(n=K(c,t,I)).num?(B=n.endIndex,q=n.num,B<=g-2&&"!"===c[B+1]?(A(m,q),y=t):(f.push(new r(q,0,t,B,4)),y=t+1),t=B):m.push(e):123===b?(0<m.length&&p&&J(e,t),d=new r("ARRAY",1,t,t,1),f.push(d),k[++h]=d,y=t+1):e===F&&0<=h&&"ARRAY"===k[h].value?(m=a(f,m,y),0>h&&p&&J(e,t),f.push(new r(F,3,t,t)),y=t+1):125===b?(m=a(f,m,y),0>B&&p&&J(e,t),y=k[h--],y=new r(e,y.Nc,t,t,2),f.push(y),y=t+1):32===b?(m=a(f,m,y),y=t+1):e===L||e===G||e===F?(m=a(f,m,y),0>h||1!==k[h].Nc?f.push(new r(L,5,t,t,10)):f.push(new r(e,3,t,t)),y=t+1):37===b?(m=a(f,m,y),f.push(new r(c[t],6,t,t)),y=t+1):t+2<=g&&z[e+c[t+1]]?(m=a(f,m,y),f.push(new r(c.slice(t,t+2),5,t,t+1,5)),t++,y=t+1):z[e]?(m=a(f,m,y),f.push(new r(e,5,t,t)),y=t+1):"("===e?(0<m.length?(d=new r(m,1,y,t,1),m=[]):d=new r(e,2,t,t,1),f.push(d),k[++h]=d,y=t+1):")"===e?(m=a(f,m,y),0>h)?p&&J(e,t):(y=k[h--],y=new r(e,y.Nc,t,t,2),f.push(y),y=t+1):":"===e?(m=a(f,m,y),f.push(new r(e,5,t,t,11)),y=t+1):m.push(e));return a(f,m,y),f},buildExpressionTree:function(a,c,p){c=this.ii(a,c,p);return this.ji(a,c,p)},ji:function(a,c,p){var g,f,k;p=this.ki(a,c,p);for(a=3;a<p.length;)if(k=p[a],c=p[a-2],k&&9===k.type){for(;3<=a&&H[k.value]>=H[c.value];)g=p[a-3],f=p[a-1],g=m.Kh(c.operatorType,g,f),p.splice(a-3,3,g),a-=2,3<=a&&(c=p[a-2]);a+=2}else a++;if(1===p.length)return p[0];for(a=p.length-2;0<a;a-=2)g=p[a-1],f=p[a+1],g=m.Kh(p[a].operatorType,g,f),p.splice(a-1,3,g);return g},ki:function(c,h,p){var g,f,k,x,t,y,n,B,e;h=Array.isArray(h)?h:[h];g=[];f=h.length;for(k=0;k<f;k++){if(x=h[k],t=x,9===x.type)if(0===x.operatorType||1===x.operatorType)if(k===f-1)p&&d();else{for(y=k;9===h[y].type&&1>=h[y].operatorType;)y++;t=this.ji(c,h[y]);for(n=y-1;n>=k;n--)t=m.Kh(x.operatorType,t);k=y}else{if(2===x.operatorType){if(0!==k){t=m.Kh(x.operatorType,this.ji(c,g[g.length-1]));g[g.length-1]=t;continue}p&&d()}}else if(10===x.type)x.value=this.ji(c,x.value),t=x;else if(7===x.type){if(y=0,B=x.arguments,n=[],0<B.length){for(t=0;t<=B.length;t++)e=B[t],(t===B.length||0===e.type&&e.value===L)&&(y===t?n.push(new a(11)):n.push(this.ji(c,B.slice(y,t))),y=t+1);x.arguments=n}t=x}g.push(t)}return g},ii:function(a,c,p){var g,f,k=[];g=0;for(f=c.length;g<f;)g=this.resolveToken(a,c,k,g,p);return k},resolveToken:function(a,c,p,g,f){var k,h,t;f=c[g];var y=a.getResolvers();for(k=0;k<y.length;k++)if(h=y[k].resolveToken(a,this,c,g)){a=h.expr;k=g-1;a&&void 0!==h.index?g=h.index-1:a=h;(h=0<p.length?p[p.length-1]:null)&&0!==a.type&&7!==a.type&&9>a.type&&0!==h.type&&7!==h.type&&9>h.type&&(t=c[k].li,t<f.mi-1&&p.push(m.Kh(17," ")));p.push(a);break}return g+1},resolveSubTokens:function(a,c,p,g){for(var f=[];p<c.length&&2!==c[p].hi;)p=this.resolveToken(a,c,f,p,g);return{exprs:f,index:p+1}}},h}();A=function(a,c){return a.push.apply(a,c),a};r=m.FormulaToken=function(){return function(a,c,h,p,g){var f,k;g=g||0;this.Qb=a;f=Array.isArray(a)?a.join(""):a;this.Nc=c;this.mi=h;this.li=p||h+a.length-1;0===c&&0===g&&a?(k=f.toUpperCase(),"TRUE"!==k&&"FALSE"!==k||(g=5,f=k)):1===c&&"ARRAY"!==f&&(f=f.toUpperCase());this.ni=f;this.hi=g;this.oi=[]}}();n=m.TokenResolver=function(){function a(a){this.priority=a||5E3}return a.prototype.resolveToken=function(a,c,p,g){},a.prototype.unparse=function(a,c,p,g){},a}();m.ParserContext=function(){function a(a,c,p,g){this.ignoreError=this.Eh=!1;this.source=null;this.useR1C1=c;this.row=p.row||0;this.column=p.col||0;this.baseIdentity=p;this.option=g;this.source=a;this.pi=[];this.addResolver(new C)}return a.prototype={getExternalSource:function(a,c){var p,g=this.source.Cf().getAllSouceModels();for(p=0;p<g.length;p++)if(B.Mb(g[p].getSource().getName(),c))return g[p].getSource();return null},getExternalSourceToken:function(a){return a.getName()},getTableByName:function(a){return null},getTableByIndex:function(a,c){return null},setSource:function(a){this.source=a},getResolvers:function(){return this.pi},addResolver:function(a){var c,p=this.pi;for(c=0;;c++)if(!p[c]||a.priority>p[c].priority){p.splice(c,0,a);break}},getFunction:function(a){return this.source&&this.source.getCustomFunction(a)||m.Functions.findGlobalFunction(a)}},a}();w={"+":0,"-":1};z=m.operaterTypesMap={":":15,",":16,"+":3,"-":4,"*":5,"/":6,"^":7,"%":2,"\x26":8,"\x3d":9,"\x3c":11,"\x3c\x3e":10,"\x3c\x3d":12,"\x3e":13,"\x3e\x3d":14};C=m.DefaultTokenResolver=function(){n.call(this)};U(C,n);u(C.prototype,{resolveToken:function(c,h,n,p){var g,f,k,x,t=n[p];f=t.ni;if(0===t.Nc&&0===t.hi)c=f.toUpperCase(),"TRUE"===c||"FALSE"===c?(t.hi=5,t.ni=c,g=new a(4),g.value="TRUE"===c):(g=new a(8),g.value=f);else if(1===t.Nc){if("ARRAY"===f){g=new a(6);p++;c=[[]];for(k=h=f=0;p<n.length&&2!==n[p].hi;){if(t=n[p],p<n.length-1&&4===t.Nc&&"-"===t.Qb&&4===n[p+1].hi&&(p++,t=n[p],t.Qb.unshift("-"),t.ni="-"+t.ni),3===t.Nc){if(t.Qb===F){if(h!==k)throw B.Kb(y().Exp_InvalidArrayColumns,[t.mi]);c.push([]);f++;k=0}}else{if(0!==t.Nc||4!==t.hi&&3!==t.hi&&5!==t.hi&&6!==t.hi)throw y().Exp_InvalidArray;x=t.ni;4===t.hi?x=parseFloat(x):5===t.hi?x="TRUE"===x.toUpperCase():6===t.hi&&(x=m.CalcError.parse(x));c[f].push(x);0===f&&h++;k++}p++}if(h!==k)throw B.Kb(y().Exp_InvalidArrayColumns,[t.mi]);return p++,g.value=new m.CalcArray(c),{expr:g,index:p}}if(0<t.Qb.length)return"@"===t.Qb[0]&&(t.ni=t.Qb.slice(0,t.Qb.length-1).join("")),g=new a(7),g.functionName=t.ni,g["function"]=c.getFunction(g.functionName)||m.Functions.findGlobalFunction(g.functionName),(k=h.resolveSubTokens(c,n,p+1))?(g.arguments=k.exprs,{expr:g,index:k.index}):(g.arguments=[],g)}else if(4===t.Nc||6===t.Nc||5===t.Nc)g=m.Kh(4===t.Nc?w[f]:z[f],f);else if(2===t.Nc){if(g=new a(10),k=h.resolveSubTokens(c,n,p+1))return g.value=k.exprs,{expr:g,index:k.index};d()}else 0===t.Nc?4===t.hi?(g=new a(2),g.value=parseFloat(f),g.originalValue=f):3===t.hi?(g=new a(3),g.value=f):5===t.hi?(g=new a(4),g.value="TRUE"===f):6===t.hi?(g=new a(5),g.value=m.CalcError.parse(f)):7===t.hi&&(g=new a(8),g.value=f):3===t.Nc&&(g=new a(0),g.value=f);return g},unparse:function(a,c,h,p){var g;if(6===h.type||4===h.type||2===h.type||5===h.type||3===h.type)this.qi(a,h,p);else if(9===h.type)this.ri(a,c,h,p);else{if(10===h.type)p.push("("),c.kja(a,h.value,p);else{if(7!==h.type)return!1;A(p,(h["function"]&&h["function"].name||h.functionName).split(""));p.push("(");for(g=0;g<h.arguments.length;g++)0!==g&&p.push(L),c.kja(a,h.arguments[g],p)}p.push(")")}return!0},ri:function(a,c,h,p){var g=h.operatorType;2===g?(c.kja(a,h.value,p),p.push("%")):0===g||1===g?(p.push(O[g]),c.kja(a,h.value,p)):(c.kja(a,h.value,p),p.push(O[g]),c.kja(a,h.value2,p))},qi:function(c,h,m){var p,g,f,k,x,t,d=y().Exp_InvalidArray;if(3===h.type)m.push('"'),m.push(h.value.replace(/"/g,'""')),m.push('"');else if(2===h.type)c=h.originalValue||""+h.value,"."!==I&&(c=c.replace(".",I)),m.push(c);else if(4===h.type)m.push(h.value?"TRUE":"FALSE");else if(6===h.type){if(m.push("{"),p=h.value,0>=p.getRowCount())throw d;h=0;for(g=p.getRowCount();h<g;h++)for(1<=h&&m.push(F),f=0,k=p.getColumnCount();f<k;f++){if(0!==f&&m.push(G),x=p.getValue(h,f),void 0===x||null===x)throw d;t=typeof x;x instanceof a?this.context(c,x,m):"string"===t?(m.push('"'),m.push(x),m.push('"')):"boolean"===t?m.push(x?"TRUE":"FALSE"):"number"===t&&"."!==I?m.push((""+x).replace(".",I)):m.push(""+x)}m.push("}")}else 5===h.type?m.push(""+h.value):11===h.type}})},function(U,u,l){function d(e,b,a,f){return{row:e,col:b,rowCount:a,colCount:f}}function J(e){var b,a;for(a=0;a<e.oi.length;a++)b=e.oi[a],b.v5=!1,0<b.oi.length&&J(b)}function R(e,b,a){var f={value:0};if(!P(b,f))return 0===e&&"string"==typeof b?b:F;if(b=f.value,void 0!==a){if(!P(a,f))return F;a=f.value}else a=0;return 0===e?b:1===e?-b:2===e?b/100:3===e?b+a:4===e?b-a:5===e?b*a:6===e?a?b/a:A:7===e?!b&&0>a?A:p(b,a):void 0}function Q(e,b,a){if(8===e)return V(b)?b:V(a)?a:(b=b||"",a=a||"",W.bc(b)+W.bc(a))}function K(e,b,a){var f,k,g,v,c,p,h,m;if(V(b))return b;if(V(a))return a;if(f="string"===typeof b,k="string"===typeof a,g=f||k,v=g?"":0,b=null===b||void 0===b?v:b,a=null===a||void 0===a?v:a,c=function(){return b===a?0:f&&k?b.toUpperCase().localeCompare(a.toUpperCase()):f?1:k?-1:t.Zh.Yh(b,a)?0:b-a},!g){if(p={value:0},h={value:0},!P(b,p)||!P(a,h))return F;b=p.value;a=h.value}return m=c(),9===e&&0===m||10===e&&0!==m||11===e&&0>m||12===e&&0>=m||13===e&&0<m||14===e&&0<=m}function O(e,b){this.Ri=e;this.Si=b}function H(e){function b(b){function e(b,e){for(var a=b.length,f=!1;e<a&&!isNaN(b.charAt(e));)e++,f=!0;for(e<a&&"."===b.charAt(e)&&e++;e<a&&!isNaN(b.charAt(e));)e++,f=!0;if(e<a&&("E"===b.charAt(e)||"e"===b.charAt(e)))for(e++,f=!1,e<a&&("+"===b.charAt(e)||"-"===b.charAt(e))&&e++;e<a&&!isNaN(b.charAt(e));)e++,f=!0;return{Vi:f,mi:e}}var a,f,g,v,c,p,h,m,t,y;if(a=0,f=0,g=!1,p=0,h=0,m=0,t=b.length,!b)throw k().Exp_ArgumentNull;if(0===t)throw x;if(m<t&&("+"===b.charAt(m)||"-"===b.charAt(m))&&m++,y=e(b,m),m=y.mi,v=y.Vi,m<t&&("+"===b.charAt(m)||"-"===b.charAt(m))?(p=m,m++,y=e(b,m),m=y.mi,c=y.Vi,m<t&&("i"===b.charAt(m)||"j"===b.charAt(m))&&(m++,g=!0),h=m-p):m<t&&("i"===b.charAt(m)||"j"===b.charAt(m))?(m++,h=m,c=v,g=!0,v=!1):p=m,m<t)throw x;if(0<p){if(!v)throw x;a=parseInt(b.substr(0,p),10)}if(0<h){if(!g)throw x;if(1===h||2===h&&"+"===b.charAt(p))f=1;else if(2===h&&"-"===b.charAt(p))f=-1;else{if(!c)throw x;f=parseInt(b.substr(p,h-1),10)}}return new O(a,f)}try{return e?"number"==typeof e?new O(parseFloat(e),0):"string"==typeof e?b(e):null:new O(0,0)}catch(v){return null}}function I(e,b){var f,g,p,x,y=[];if(!b)return{Di:e,Ei:!0};if(b.Xi)for(g=0;g<e.length;g++)y.push(b);else y=Array.isArray(b)?b:[b];for(g=0;g<y.length;g++){if(p=y[g],p.Yi&&!e[g])throw k().Exp_ArgumentNull;if(x=void 0!==e[g]){f=e[g];var d=p,n=void 0,q=void 0,w=!0;switch(d.Hi){case 0:n=c(f);q=!0;break;case 1:n=parseFloat(f);q=!0;break;case 2:n=m(f);q=!0;break;case 3:n=parseInt(f);q=!0;break;case 4:n=Z(f,d.Ii,d.Ji||!1,d.Ki||!1,d.Li||!1,d.Mi);n.isError&&(n=n[0],w=!1);n.isConvertError&&(n=F,w=!1);break;case 5:n=h(f);d.Ni&&""===n&&(n=F,w=!1);break;case 6:d={value:null};a(f,d)?n=d.value:(n=F,w=!1);break;case 7:n=B(f);break;case 8:n=H(f);!n||d.Oi&&0===n.Pi()&&0===n.Qi()?(n=t.Errors.Number,w=!1):n={Ri:n.Pi(),Si:n.Qi()};break;default:n=f}f=(q&&isNaN(n)&&(n=F,w=!1),{Ti:n,Ei:w});if(p.aj)a:{var n=f,w=p.aj,q=p.bj,E,r=void 0,T=void 0,z=void 0;Array.isArray(w)||(w=[w]);d=n.Ti;for(E=0;E<w.length;E++)if(r=w[E].split(" "),T=r[0],z=parseInt(r[1]),"\x3c"===T&&d<z||"\x3e"===T&&d>z||"\x3c\x3d"===T&&d<=z||"\x3e\x3d"===T&&d>=z||"\x3d"===T&&d===z||"!\x3d"===T&&d!==z||"checkLength"===T&&d.length>z){n.Ti=void 0===q?t.Errors.Number:q;n.Ei=!1;break a}}if(!f.Ei)break;e[g]=p.Zi?{$i:x,Qb:f.Ti}:f.Ti}else e[g]=p.Zi?{$i:x,Qb:p._i}:p._i}return{Di:e,Ei:f.Ei,Fi:f.Ti}}var L,F,G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t=l(25);U=t.Errors;var E=l(26),M=E.j.G,p=Math.pow,g=Math.min,f=Math.max,k=function(){return E.C(t.SR)()},x=k().Exp_Format,W=t.Convert,P=W.Th,V=W.vf,Z=W.Ph;l=function(){return function(e,b,a,f){this.ui=this.ti=this.si=0;this.source=e;this.arrayFormulaMode=!!a;this.identity=b||t.pf(0,0);this.row=(this.arrayIdentity=f)?f.row:this.identity.row;this.column=f?f.col:this.identity.col;this.rowOffset=f?this.identity.row-f.row:this.row;this.columnOffset=f?this.identity.col-f.col:this.column}}();l.prototype={fga:function(e){return e===t.BangSource?this.source:e},getValue:function(e,b){return e?this.fga(e).getValue(b):L},getReference:function(e,b){return e?this.fga(e).getReference(b):L},getSheetRangeReference:function(e){return e&&e.source&&e.endSource?this.fga(e.source).getSheetRangeReference(e):L},getFunction:function(e){return this.source?this.source.getCustomFunction(e):null},getName:function(e){var b,a=this.source?this.source.getCustomName(e):null;return!a&&this.source&&(b=this.source.Cf().getGlobalSourceModel(),a=b&&b.getSource().getCustomName(e)),a},vi:function(){return 0<this.ui},wi:function(){this.ui++},xi:function(){this.ui--},SetAsyncResult:function(e,b){this.source.Cf().lh.SetAsyncResult(e,b)},cloneFrom:function(e){this.acceptsReference=e.acceptsReference;this.arrayFormulaMode=e.arrayFormulaMode}};L=U.Reference;F=U.Value;G=t.CalcArray;q=U.Name;D=U.NotAvailable;A=U.DivideByZero;t.EvaluateContext=l;r=function(){function e(b,e){this.id=b.si++;this.ctx=b;this.row=b.row+(b.arrayFormulaMode&&b.rowOffset||0);this.col=b.column+(b.arrayFormulaMode&&b.columnOffset||0);this.node=e}return e.prototype.setAsyncResult=function(b){this.node.Fi=b;this.node.v5=!0;this.ctx.SetAsyncResult(this,b);this.ctx.source.refresh()},e}();t.AsyncEvaluateContext=r;l=function(e){function b(b,a,f,k,g,c,p,h){e.call(this,b,a,f,k,g,c,p,h);this.yi=b.Cf().getGlobalSourceModel().getSource()}M(b,e);return b.prototype.getName=function(b){return this.yi?this.yi.getCustomName(b):null},b}(l);t.GloableEvaluateContext=l;t.Evaluator=function(){return function(e){this.zi={};this.Ai={};this.asyncManager=new w(this);this.service=e}}();t.Evaluator.prototype={evaluateExpression:function(e,b,a,f,k){e=this.evaluate(e,b,!!f,!!k);return void 0===e||null===e?!1===a?e:0:"number"==typeof e&&15<=(""+e).length?+e.toPrecision(15):e},evaluate:function(e,b,a,f){var g,c;if(!e)throw k().Exp_ExprIsNull;for(;10===e.type;)e=e.value;if(c=null,12===e.type&&(c=e.needExpendIndexs,e=e.value),2<=e.type&&6>=e.type)g=this.evaluateConst(e,b,a);else if(1===e.type||13===e.type)g=this.evaluateReference(e,b,f,a);else if(8===e.type)g=this.evaluateName(e,b,a,f);else if(9!==e.type||e.value2)if(9===e.type)g=this.evaluateBinaryOperation(e,b,a,f,c);else if(7===e.type)g=this.evaluateFunction(e,b,a,f,c);else if(11===e.type)g=void 0;else{if(b.evaluate)return b.evaluate(e,a,f)}else g=this.evaluateUnaryOperation(e,b,a,f,c);return g},evaluateConst:function(e,b,a){e=e.value;return W.Ca(e)?a||b&&(b.arrayFormulaMode||b.vi())?e:e.getValue(0,0):e},evaluateReference:function(e,b,a,f){var k,g,c,p,v,h,m,x,t,d;if(!b)return F;if(k=(13===e.type?e.source():e.source)||b.source,g=b.row,c=b.column,p=e.getRange&&e.getRange(g,c),!p)return L;if(v=0>p.row?0:p.row,h=0>p.col?0:p.col,m=p.rowCount,x=p.colCount,a||b.arrayFormulaMode)return e.endSource?b.getSheetRangeReference({source:e.source,endSource:e.endSource,row:v,col:h,rowCount:m,colCount:x}):b.getReference(k,p);if(f&&(1<m||1<x)){e=[];for(b=0;b<m;b++)for(e[b]=[],a=0;a<x;a++)e[b][a]=k.getValue(b+v,a+h);return new G(e)}if(1<m||1<x)if(t=g>=p.row&&g<p.row+m,d=c>=p.col&&c<p.col+x,t&&d)v=g,h=c;else{if(!t&&!d)return F;if(t&&1===x)v=g;else{if(!d||1!==m)return F;h=c}}else if(-1===p.row&&-1===m){if(1!==x)return F;v=g}else if(-1===p.col&&-1===x){if(1!==m)return F;h=c}return k.getValue(v,h)},evaluateName:function(e,b,a,f){var k,g;return b?(e.source&&(k=e.source,b=k.getEvaluatorContext(b.identity,b.arrayFormulaMode,b.arrayIdentity)),g=b.getName(e.value),g?this.evaluate(g,b,a,f):q):q},evaluateUnaryOperation:function(e,b,a,f,k){var g,c=!1;return k&&0<k.length&&(a=!0,c=!0),g=this.evaluate(e.value,b,a,c),W.vf(g)?g:g===t.missingArgument?D:this.evaluateWithArgs(e,function(b){return C(e.operatorType,b[0])},b,k,[g],a,f)},evaluateBinaryOperation:function(e,b,a,f,k){var g,c,p,v,h=[a,a];g=15<=e.operatorType;var m=[g,g];if(k&&0<k.length)for(g=0;g<k.length;g++)h[k[g]]=!0,m[k[g]]=!0;c=[e.value,e.value2];p=[];for(g=0;2>g;g++){if(v=this.evaluate(c[g],b,h[g],m[g]),W.vf(v))return v;if(v===t.missingArgument)return D;p[g]=v}return this.evaluateWithArgs(e,function(b){return C(e.operatorType,b[0],b[1])},b,k,p,a,f)},startCache:function(){this.Bi={};this.service.oia&&this.asyncManager.startCalc()},endCache:function(){this.Bi=null},evaluateFunction:function(e,b,a,f,k){var g,c,p,v,h,m,x,d,n,B,N,w,E,r,S,z,P;if(!e||!e["function"]||"string"==typeof e["function"])return q;if(g=e.arguments.length,c=this,p=b.ti,v=e["function"],x=null,v instanceof y.AsyncFunction&&this.asyncManager.startCalcFunction(v,e.arguments,b),0===g)h=[];else{h=[];d=[];n=[];for(B=0;B<g;B++)d[B]=v.acceptsArray(B),n[B]=v.acceptsReference(B);if(k&&0<k.length){x=[];for(B=0;B<g;B++)x[B]=!0;for(B=0;B<k.length;B++)m=k[B],d[m]=!0,n[m]=!0,x[m]=!(v.acceptsReference(m)&&!v.acceptsArray(m))}v.isBranch()&&(b.arrayFormulaMode||b.vi())&&(d[v.findTestArgument()]=!0,n[v.findTestArgument()]=!0);E=w=-1;v.isBranch()&&(w=v.findTestArgument(),v.acceptsArray(w)&&b.wi(),N=c.evaluate(e.arguments[w],b,d[w],n[w]),v.acceptsArray(w)&&b.xi(),W.Fh(N)||W.Ca(N)||(E=v.findBranchArgument(N)));for(B=0;B<g;B++){if(w===B)m=N;else{if(0<=E&&B!==E){h[B]=null;continue}v.acceptsArray(B)&&b.wi();m=c.evaluate(e.arguments[B],b,d[B],n[B]);v.acceptsArray(B)&&b.xi()}if(!v.acceptsArray(B)&&W.Ca(m)||!v.acceptsReference(B)&&W.Fh(m))if(r=W.Ca(m)?m:null,S=W.Fh(m)?m:null,r&&1===r.getRowCount()&&1===r.getColumnCount())m=r.getValue(0,0);else if(S&&1===S.getRowCount(0)&&1===S.getColumnCount(0))m=S.getValue(0,0,0);else{if(S=[],z=!1,k)for(P=0;P<k.length;P++)S.push(k[P]),k[P]===B&&(z=!0);z||(S.push(B),k=S)}if(W.vf(m)&&!v.acceptsError(B))return m;m===t.missingArgument&&(v.acceptsMissingArgument(B)||(m=null));h[B]=m}}return c.evaluateWithArgs(e,function(e,a){var k,g=I(e,v.Ci);return e=g.Di,v.isContextSensitive()?(b.acceptsReference=f||b.vi(),v instanceof y.AsyncFunction?(c.T4=c.T4||{},v.evaluateWhenArgumentsIsSame()?c.evaluateAsyncFunction(b,a,v,p,e):c.evaluateWithCache(v,e,function(){return c.evaluateAsyncFunction(b,a,v,p,e)},c.T4)):v.evaluateWithContext(b,e)):(k=function(){return g.Ei?v.evaluate.apply(v,e):g.Fi},b.arrayFormulaMode?c.evaluateWithCache(v,e,k,c.Bi):k())},b,k,h,a,f,x)},evaluateAsyncFunction:function(e,b,a,f,k){var g,c;b=this.asyncManager.getNode();return b.v5?c=b.Fi:b.canEvaluate()?(g=new r(e,b),c=a.evaluateWithContext(g,k),void 0===c&&(c=void 0!==b.Fi?b.Fi:a.defaultValue())):c=void 0!==b.Fi?b.Fi:a.defaultValue(),b.Fi=c,this.asyncManager.endCalcFunction(),c},evaluateWithCache:function(e,b,a,f){var k,g,c,p,v,h,m,x,d,y,n;if(f)if(k=!1,g=f[e.name+b.length])for(n=0;n<g.length;n++){if(c=g[n],k=!1,c.args.length===b.length)for(k=!0,p=0;p<b.length;p++)if(v=c.args[p],h=b[p],v!==h){if(!(v instanceof t.CalcReference&&h instanceof t.CalcReference)){k=!1;break}if(m=v.zf,v.xf!==h.xf||m!==h.zf){k=!1;break}for(x=0;x<m;x++)if(v.getRow(x)!==h.getRow(x)||v.getColumn(x)!==h.getColumn(x)||v.getRowCount(x)!==h.getRowCount(x)||v.getColumnCount(x)!==h.getColumnCount(x)){k=!1;break}}if(k)return c.flag++,c.value}else g=f[e.name+b.length]=[];if(d=a(),f&&void 0!==d){if(y=g.length,100<=y){a=[];for(n=0;n<y;n++)0<g[n].flag&&a.push(g[n]);a.sort(function(b,e){return e.flag-b.flag});y=Math.min(50,a.length);g=a.slice(0,y);f[e.name+b.length]=g}g.push({args:b,value:d,flag:0})}return d},SetAsyncResult:function(e){var b=e.ctx;b.source.Cf().recalculate(b.source,e.row,e.col,!0)},evaluateWithArgs:function(e,b,a,f,k,g,c,p){var v,h,m,x,d,y,n,B,N;if(f&&0<f.length){if(v=this.Gi(a,e,k,f,p),!v)return D;f=[];g=v[0].length;c=v[0][0].length;for(p=0;p<g;p++)for(f[p]=[],m=0;m<c;m++)try{x=[];for(d=0;d<k.length;d++)x[d]=v[d][p][m];if(h=b(x,e),W.Fh(h)){if(7===e.type&&(y=e["function"],y.returnReference&&y.returnReference()))return h;h=this.getOneValue(a,h)}f[p][m]=h}catch(xa){f[p][m]=F}return new t.CalcArray(f)}try{if(h=b(k,e),a.arrayFormulaMode&&a.vi())return h;if(W.Ca(h)&&!g)return this.getOneValue(a,h);if(W.Fh(h)&&!c){if(m=h,g&&1===m.getRangeCount()){n=[];for(B=0;B<m.getRowCount(0);B++)for(n[B]=[],N=0;N<m.getColumnCount(0);N++)n[B][N]=m.getValue(0,B,N);return new t.CalcArray(n,m.getColumnCount(0))}return this.getOneValue(a,h)}return h}catch(xa){return F}},getOneValue:function(e,b){var a,f,k,g;return W.Fh(b)?(k=b,1<k.getRangeCount()?b=F:(-1!==e.rowOffset||-1!==e.columnOffset?(a=1===k.getRowCount(0)?0:e.rowOffset-k.getRow(0),f=1===k.getColumnCount(0)?0:e.columnOffset-k.getColumn(0)):(a=1===k.getRowCount(0)?0:e.row-k.getRow(0),f=1===k.getColumnCount(0)?0:e.column-k.getColumn(0)),b=a>=k.getRowCount(0)||f>=k.getColumnCount(0)?D:k.getValue(0,a,f))):W.Ca(b)&&(g=b,!e.arrayFormulaMode||-1===e.rowOffset&&-1===e.columnOffset?b=g.getValue(0,0):(a=1===g.getRowCount()?0:e.rowOffset,f=1===g.getColumnCount()?0:e.columnOffset,b=a>=g.getRowCount()||f>=g.getColumnCount()?D:g.getValue(a,f))),b},Gi:function(e,b,a,f,k){var g,c,p,v,h,m,x,t,y,n,B=1,N=1,q=-1,w=!0,r=!0,z=null,S;S=7===b.type?b:null;if(S&&!S["function"].expandRows()&&(w=!1),S&&!S["function"].expandColumns()&&(r=!1),S&&S["function"].isBranch()&&(e.arrayFormulaMode||e.vi())){if(q=S["function"].findTestArgument(),b=[],g=!1,f)for(c=0;c<f.length;c++)b.push(f[c]),f[c]===q&&(g=!0);if(g||W.Ca(a[q])||W.Fh(a[q])){for(f=0;f<S.arguments.length;f++)f!==q&&0>E.k.Cb(b,f)&&(W.Ca(a[f])||W.Fh(a[f]))&&b.push(f);f=b}}for(c=0;c<f.length;c++){if(p=a[f[c]],z=W.Ca(p)?p:null,b=W.Fh(p)?p:null,S=0,g=0,z)S=z.getRowCount(),g=z.getColumnCount();else if(b){if(1<b.getRangeCount())return null;S=w?b.getRowCount(0):1;g=r?b.getColumnCount(0):1}B=S>B?S:B;N=g>N?g:N}p=[];c=0;v=f[c];for(h=0;h<a.length;h++){if(p[h]=[],m=a[h],z=null,b=null,S=g=1,h===v){if(z=W.Ca(m)?m:null,b=W.Fh(m)?m:null,(z||b)&&(S=z&&z.getRowCount()||(w?b.getRowCount(0):1),g=z&&z.getColumnCount()||(r?b.getColumnCount(0):1),(1!==S&&S!==B||1!==g&&g!==N)&&(-1===q||h===q)&&!e.arrayFormulaMode))return null;c++;v=c<f.length?f[c]:-1}else if(void 0===k&&(z=W.Ca(m)?m:null,b=W.Fh(m)?m:null,(z||b)&&(S=z&&z.getRowCount()||(w?b.getRowCount(0):1),g=z&&z.getColumnCount()||(r?b.getColumnCount(0):1),(1!==S&&S!==B||1!==g&&g!==N)&&(-1===q||h===q)&&!e.arrayFormulaMode)))return null;b&&(x=b.getRow(0),t=b.getColumn(0),B=x+B-x,N=t+N-t);for(y=0;y<B;y++)for(p[h][y]=[],n=0;n<N;n++)1!==S&&y>=S||1!==g&&n>=g?p[h][y][n]=D:z?p[h][y][n]=z.getValue(1===S?0:y,1===g?0:n):b?!k||k[h]?p[h][y][n]=b.getValue(0,1===S?0:y,1===g?0:n):p[h][y][n]=b.create([d(b.getRow(0)+(1===S?0:y),b.getColumn(0)+(1===g?0:n),1,1)]):p[h][y][n]=m}return p}};n=function(){return function(e,b){this.id=e;this.Fi=void 0;this.v5=!1;this.oi=[];void 0!==b&&(this.evaluateMode=b)}}();n.prototype={canEvaluate:function(){var e,b=this.oi;for(e=0;e<b.length;e++)if(!b[e].v5)return!1;return!0}};w=function(){return function(e){this.w5=[];this.x5=-1;this.y5={};this.z5=-1;this.lh=e}}();w.prototype={startCalc:function(){var e,b,a,f,k;for(b in this.y5)if(a=this.y5[b],e=a.length,0<e)for(f=0;f<e;f++)k=a[f],0===k.evaluateMode&&(k.v5=!1)},startCalcCell:function(e,b){var a,f,k=e.getName()+"_"+b.row+"_"+b.col;return this.z5=-1,this.source=e,(a=this.y5[k])?void(this.cellNodes=a):(f=new n(-1),a=this.y5[k]=[],this.x5=-1,this.cellNodes=a,this.row=b.row,this.col=b.col,a.root=f,this.w5[++this.x5]=f,void(this.evaluateMode=-1))},startCalcFunction:function(e,b,a){var f,k,g,c,p,h=this;if(h.z5++,h.isNewNode=!1,f=h.cellNodes[h.z5])return h.currentNode=f,f;if(h.isNewNode=!0,k=h.evaluateMode,g=e.evaluateMode(),"REFRESH"===e.name?(g=b[1]?h.lh.evaluate(b[1],a,!1,!1):0,h.evaluateMode=g):-1!==k&&(g=k),f=new n(h.z5,g),h.cellNodes[h.z5]=f,h.w5[h.x5].oi.push(f),f.parent=h.w5[h.x5],h.w5.push(f),h.x5++,h.currentNode=f,2===g&&-1===k){k=h.intervals;g=e.interval()||6E4;"REFRESH"===e.name&&(f.isRefresh=!0,g=b[2]?h.lh.evaluate(b[2],a,!1,!1):6E4);k||(h.intervals=k={});(c=k[g])||(c=k[g]=[],c.intervalObj=window.setInterval(function(){var b,e,a;for(b=0;b<c.length;b++)e=c[b],a=e.node,a.v5=!1,a.isRefresh&&J(a),h.lh.service.recalculate(e.source,e.row,e.col,!0),h.source.refresh()},g));e=!1;for(b=0;b<c.length;b++)if(p=c[b],p.source===h.source&&p.node===f&&p.row===h.row&&p.col===h.col){e=!0;break}e||c.push({source:h.source,node:f,row:h.row,col:h.col})}return f},getNode:function(){return this.currentNode},endCalcFunction:function(){this.isNewNode&&(this.w5.pop(),this.x5--);this.currentNode=this.currentNode.parent},endCalcCell:function(){},clearCell:function(e,b){var a,f,k,g,c,p;a=e.getName()+"_"+b.row+"_"+b.col;self.y5[a]&&delete self.y5[a];a=self.intervals;for(f in a){k=a[f];g=[];for(c=0;c<k.length;c++)p=k[c],p.source===e&&p.row===b.row&&p.col===b.col||g.push(p);g.length?g.length!==k.length&&(g.intervalObj=k.intervalObj,a[f]=g):window.clearInterval(k.intervalObj)}},setAsyncResult:function(e,b){e.Fi=b}};z=function(e){var b,a=!0;return e&&e.getValue&&(b=Z(e,0,!1,!0),b.isError?e=b[0]:1===b.rowCount&&1===b.colCount?e=b[0][0]:(e=b,a=!1)),{value:e,success:a}};C=t.evaluateOperator=function(e,b,a){if(V(b))e=b;else if(V(a))e=a;else if(2>=e)if(b){var k=z(b);e=k.success?R(e,k.value):void 0}else e=0;else if(14>=e)a:{var c=a,p,h,v,m,x,y,n,B,T,q,w;if(p=7>=e?R:8===e?Q:K,h=z(b),v=z(c),h.success&&v.success)e=p(e,h.value,v.value);else{if(k=h.value,c=v.value,b=h.success?-1:k.rowCount,m=h.success?-1:k.colCount,x=v.success?-1:c.rowCount,y=v.success?-1:c.colCount,n=-1,B=-1,h.success||v.success)h.success?(n=x,B=y):(n=b,B=m);else{if(1!==b&&1!==x&&b!==x||1!==m&&1!==y&&m!==y){e=D;break a}n=1===b?x:b;B=1===m?y:m}T=[];for(q=0;q<n;q++)for(T[q]=[],w=0;w<B;w++)!h.success&&(1!==b&&b<n||1!==m&&m<B)||!v.success&&(1!==x&&x<n||1!==y&&y<B)?T[q][w]=D:T[q][w]=p(e,h.success?k:k[1===b?0:q][1===m?0:w],v.success?c:c[1===x?0:q][1===y?0:w]);e=new t.CalcArray(T)}}else{var r,E;e=!b||!a||(1!==b.getRangeCount()||1!==a.getRangeCount())&&16!==e||b.endSource||a.endSource?F:(c=b.getSource(),c&&c===a.getSource()?(16===e?p=b.yf.concat(a.yf):(m=15===e?g:f,x=15===e?f:g,y=b.getRow(0),n=b.getColumn(0),B=a.getRow(0),T=a.getColumn(0),q=m(y,B),w=m(n,T),r=x(y+b.getRowCount(0),B+a.getRowCount(0))-q,E=x(n+b.getColumnCount(0),T+a.getColumnCount(0))-w,p=[d(q,w,r,E)]),new t.CalcReference(c,p)):F)}return e};c=W.Pa;m=W.Rh;h=W.bc;a=W.Xh;B=W.Vh;y=t.Functions;O.prototype={Pi:function(){return this.Ri},Qi:function(){return this.Si},bc:function(e){var b=this.Ri,a=this.Si,f="";return 0===b&&0!==a||(f+=""+b),-1===a?f+="-":0!==b&&0<a&&(f+="+"),-1!==a&&0!==a&&1!==a&&(f+=""+a),0!==a&&(f+=e||"i"),f}};y.Ui=O;y.Wi=H},function(U,u,l){function d(a){this.Di=a}function J(a){return"string"==typeof a}function R(a){return 0===a%400||0===a%4&&0!==a%100||1900===a}function Q(a,e){switch(e){case 0:case 2:case 4:return 360;case 1:return R(a.getFullYear())?366:365;case 3:return 365;default:return-1}}function K(a,e){return 0<=z(e,[0,2,4,6,7,9,11])?31:0<=z(e,[3,5,8,10])?30:1===e?R(a)?29:28:void 0}function O(a,e,b,f){var k,g,c=b.getFullYear(),p=b.getMonth();b=b.getDate();var h=f.getFullYear(),v=f.getMonth();f=f.getDate();return a?(k=2===p&&K(c,p)===b,g=2===v&&K(h,v)===f,e?(k&&(b=30),g&&(f=30)):k&&g&&(b=30,f=30),31===f&&30<=b&&(f=30)):31===f&&(f=1,e&&v++),31===b&&(b=30),360*(h-c)+30*(v-p)+f-b}function H(a,e,b){var f=1;return 0<a-e&&(a=[e,e=a][0],f=-1),0<=z(b,[1,2,3])?f*g(A(e)-A(a)):0<=z(b,[4,5])?f*O(!1,5===b,a,e):f*O(!0,6===b,a,e)}function I(a,e,b,f,g){var c,p,h,v,m,d,t,n,B,T,q,N,w=100>b,z=2===b||102===b,P=z||3===b||103===b,l=5===b||105===b,V=4===b||104===b||l,Z=9===b||109===b,A=1===b||101===b||Z||f,D=6===b||106===b,F=D?1:0,G=!1,u=0;for(b=0;b<r(a);b++){if(B=a[b],P?T=x(B,0,!1,!1,!1,z):V?T=x(B,5,!1,!0,!1,!0):A?T=x(B,5,!1,Z,!1,!0):D&&(T=x(B,5,!1,!1,!1,!0)),T.isError)return T[0];if(T.isConvertError)return y;q=T.rangeCount;N=T.isReference;for(c=0;c<q;c++)for(p=1<q?T[c]:T,N&&(h=B.getRow(c),v=B.getColumn(c)),m=0;m<r(p);m++)if(e||!N||!B.isHiddenRow(c,m,w))for(t=p[m],d=0;d<r(t);d++)!e&&N&&B.isSubtotal(c,m+h,d+v)||(n=t[d],n!==M&&(P&&!C(n)&&(!z||""!==n&&k(n,!0))?F++:V&&(!G||l&&n<F||!l&&n>F)?F=n:A?f?(g.sumx+=n,g.sumx2+=n*n,g.n++):(F+=n,u++):D&&(F*=n,u++),G=!0))}return A?Z?F:f?void 0:0===u?E:W(F/u):D?W(0<u?F:0):F}function L(a,e){function b(b,e,a){var f;return 0===b?f=e<=a:1===b?f=e>=a:2===b?f=e!==a:3===b?f=e<a:4===b?f=e===a:5===b&&(f=e>a),f}var f,g,c,h,m;return f=-1,g=!0,c={value:0},h=n.zb(e),4===a&&h&&(m=function(b){var e=n.sb(h);return e.lastIndex=0,e.test(b)}),C(e)?f=0:h?g=!1:p(""+e,c)?f=c.value:g=!1,function(c){C(c)&&(c="");var v={value:0};return g&&p(c,v)?b(a,v.value,f):(!h||!k(c,!0))&&(h&&m?m(""+c):b(a,(""+c).toUpperCase(),C(e)?"":(""+e).toUpperCase()))}}var F,G,q=l(26),D=l(25),A=q.l.Ra,r=q.k.ac,n=q.q,w=q.j,z=w.Ea,C=w.Fa,c=isNaN,m=Math.abs,h=Math.exp,a=Math.log,B=Math.pow;u=D.Errors;var y=u.Value,t=u.Number,E=u.DivideByZero;u=D.Convert;var M=u.CalcConvertedError,p=u.Th,g=u.Rh,f=u.Pa,k=u.Na,x=u.Ph,W=u.Nh,P=D.Functions,V=D.Zh.Yh;d.prototype={$j:function(a){var e,b,f,k,g=this.Di;if(w.Ca(g)||(g=[g]),-1===g[0])return!0;for(e=0;e<g.length;e++)if(b=g[e],J(b)){if(b=b.split(" "),f=b[0],k=parseInt(b[1]),"!\x3d"===f&&a!==k||"\x3e"===f&&a>k||"\x3e\x3d"===f&&a>=k||"%\x3d"===f&&a%2===k)return!0}else if(a===b)return!0;return!1},_j:function(){return this.Di}};P.ak=function(a,e,b,f,k,g,c,p){return p||(p={}),void 0!==b&&(p.minArgs=b),void 0!==f&&(p.maxArgs=f),void 0!==g&&(p.acceptsReference=g),void 0!==c&&(p.acceptsArray=c),void 0!==k&&(p.Ci=k),void 0!==p.bk&&(p.acceptsMissingArgument=p.bk),void 0!==p.ck&&(p.isVolatile=p.ck),void 0!==p.dk&&(p.isContextSensitive=p.dk),void 0!==p.ek&&(p.precedentReference=p.ek),void 0!==p.fk&&(p.arrayArgumentEvaluateMode=p.fk),void 0!==p.gk&&(p.acceptsError=p.gk),function(b,e,a){if(C(b))throw q.C(D.SR)().Exp_InvalidFunctionName;if(b=b.toUpperCase(),P.bi[b])throw q.C(D.SR)().Exp_InvalidOverrideFunction;var f=P.bi[b];if(f){if(!a||!a.override)throw q.C(D.SR)().Exp_OverrideNotAllowed;}else P.bi[b]=f=new P.Function(b,0,255);return e&&"function"==typeof e&&(f.evaluate=e),w.H(a,function(b,e){var k;0<=z(b,"acceptsReference acceptsArray acceptsError acceptsMissingArgument precedentReference expandColumns expandRows".split(" "))?(k=new d(e),f[b]=function(b){return k.$j(b)}):0<=z(b,["isVolatile","isBranch","findTestArgument","returnReference","isContextSensitive"])?(k=new d(e),f[b]=function(){return k._j()}):a.hasOwnProperty(b)&&"override"!==b&&(f[b]=e)}),f}(a,e,p)};P.hk=1.79769E308;P.ik=function(a){return"boolean"==typeof a};P.jk=J;P.Na=function(a){return"number"==typeof a};P.kk=R;P.lk=Q;P.mk=function(a,e){return a-e};P.nk=K;P.pk=H;P.qk=function(a){var e,b,f;return 0===a?b=0:(f=.5*m(a),3<=f?b=1:1>f?(e=f*f,b=((((((((1.24818987E-4*e-.001075204047)*e+.005198775019)*e-.019198292004)*e+.059054035642)*e-.151968751364)*e+.319152932694)*e-.5319230073)*e+.797884560593)*f*2):(f-=2,b=(((((((((((((-4.5255659E-5*f+1.5252929E-4)*f-1.9538132E-5)*f-6.76904986E-4)*f+.001390604284)*f-7.9462082E-4)*f-.002034254874)*f+.006549791214)*f-.010557625006)*f+.011630447319)*f-.009279453341)*f+.005353579108)*f-.002141268741)*f+5.35310849E-4)*f+.999936657524)),0<a?.5*(b+1):.5*(1-b)};P.rk=I;P.sk=function(a,e,b){var f,k=b%100,g=7===k||8===k,k=7===k||10===k?1:0,c={sumx:0,sumx2:0,n:0};return I(a,e,b,!0,c),c.n<=k?E:(f=Math.max(0,(c.n*c.sumx2-c.sumx*c.sumx)/(c.n*(c.n-k))),W(g?Math.sqrt(f):f))};P.tk=function(a){for(var e=1;1<a;a--)e*=a;return e};P.uk=function(a,e,b){var f=a.getDate(),k=e.getDate(),g=a.getMonth(),c=e.getMonth();a=a.getFullYear();e=e.getFullYear();return f=31===f?30:f,b?k=31===k?30:k:31===k&&(30>f?(k=1,c++,12<c&&(c=1,e++)):k=30),30*(12*(e-a)+c-g)+k-f};P.vk=function(a,e,b){if(0>b||4<b)b=t;else{var k,c,p,h,m,x,y,d,n=H(a,e,b);b=(0>n&&(n=-n,a=[e,e=a][0]),1===b?(c=a.getFullYear(),p=e.getFullYear(),h=new Date(a),h.setFullYear(h.getFullYear()+1),0<e-h?(y=p+1-c,h=new Date(c,0,1),m=new Date(p+1,0,1),x=g(A(m)-A(h))-365*(p+1-c)):(y=1,x=R(c)&&3>a.getMonth()||R(p)&&541<=256*e.getMonth()+e.getDate()?1:0),d=f(x)/f(y),k=365+d):k=Q(new Date,b),n/k)}return b};F={};G={wk:function(a){var e=Math.floor(a);return V(a,e+1)?e+1:e},xk:function(a){var e,b,f,g,c,p=F;if(p||(F=p={}),e=p[a])return e;if(k(a))return p[a]=L(4,a);b=C(a)?"":(""+a).toUpperCase();f="\x00";for(g=0;2>g&&g<r(b);g++){if(c=b[g],-1==="\x3d\x3e\x3c".indexOf(c)){if("\x3c"===f)return p[a]=e=L(3,b.substring(1)),e;if("\x3e"===f)return p[a]=e=L(5,b.substring(1)),e;break}if("\x3d"===c)return e="\x3c"===f?L(0,b.substring(2)):"\x3e"===f?L(1,b.substring(2)):L(4,"\x00"===f?b.substring(1):a),p[a]=e,e;if("\x00"===f)f=c;else{if("\x3c"===f)return e="\x3e"===c?L(2,b.substring(2)):L(3,b.substring(1)),p[a]=e,e;if("\x3e"===f)return p[a]=e=L(5,b.substring(1)),e}}return p[a]=e=L(4,a),e},yk:function(a){var e=[1,10,100,1E3,1E4,1E5,1E6,1E7,1E8,1E9,1E10,1E11,1E12,1E13,1E14,1E15,1E16][a];return C(e)?B(10,parseFloat(a)):e},zk:function(a){var e=Math.ceil(a);return V(a,e-1)?e-1:e},Ak:function(a,e){var b=G.yk(m(e));return a=0>e?a/b:a*b,a=0>a?G.zk(a-.5):G.wk(a+.5),a=0>e?a*b:a/b,W(a)},Bk:function(a,e){if(0>a||0>e||a<e)return t;var b=1,f;e=Math.min(a-e,e);for(f=1;f<=e;f++)b*=a-f+1,b/=f;return W(b)},Ck:function(f,e){var b=.5<m(f)?B(1+f,e):h(e*a(1+f));return isFinite(b)?c(b)&&(b=4.9E-324):b===Number.POSITIVE_INFINITY?b=P.hk:b===Number.NEGATIVE_INFINITY&&(b=-P.hk),b},Dk:function(a,e){return(h(a)+(e?-1:1)*h(-a))/2},Ek:function(f,e){return c(f)?f:c(e)?e:1!==e&&1===f||0!==e&&e!==Number.POSITIVE_INFINITY?a(f)/a(e):NaN}};P.Fk=G;U.exports=P},function(U,u){function l(d,l){return{description:d,parameters:l}}function d(d,l){return{name:d,repeatable:l}}U.exports={Exp_InvalidCast:"InvalidCastException",Exp_FormulaInvalidChar:"The formula you typed contains an invalid char: '{0}' at index on {1}",Exp_FormulaInvalid:"The formula you typed is invlid",Exp_InvalidFunctionName:"Invalid function name",Exp_InvalidOverrideFunction:"Cannot override built-in function",Exp_InvalidArray:"Invalid array",Exp_OverrideNotAllowed:"Attempt to override function while override is not allowed",Exp_NoSyntax:"no syntax '{0}' to match the syntax '{1}'.",Exp_IsValid:"'{0}' is invalid.",Exp_InvalidParameters:"Invalid function parameters at {0}.",Exp_InvalidArrayColumns:"The length of array columns are unequal at {0}.",Exp_ExprIsNull:"The argument 'expr' is null",Exp_InvalidNull:"InvalidNullException",Exp_InvalidOperation:"InvalidOperationException",Exp_ArgumentNull:"ArgumentNullException",Exp_CriteriaIsNull:"criteria is null",Exp_Format:"Format",Exp_ArrayFromulaPart:"You cannot change part of an array.",Exp_NotSupported:"NotSupportException",_h:{ABS:l("This function calculates the absolute value of the specified value.",[d("value")]),ACCRINT:l("This function calculates the accrued interest for a security that pays periodic interest.",[d("issue"),d("first"),d("settle"),d("rate"),d("par"),d("frequency"),d("basis")]),ACCRINTM:l("This function calculates the accrued interest at maturity for a security that pays periodic interest.",[d("issue"),d("maturity"),d("rate"),d("par"),d("basis")]),ACOS:l("This function calculates the arccosine, that is, the angle whose cosine is the specified value.",[d("value")]),ACOSH:l("This function calculates the inverse hyperbolic cosine of the specified value.",[d("value")]),ADDRESS:l("This function uses the row and column numbers to create a cell address in text.",[d("row"),d("column"),d("absnum"),d("a1style"),d("sheettext")]),AMORDEGRC:l("This function returns the depreciation for an accounting period, taking into consideration prorated depreciation, and applies a depreciation coefficient in the calculation based on the life of the assets.",[d("cost"),d("datepurchased"),d("firstperiod"),d("salvage"),d("period"),d("drate"),d("basis")]),AMORLINC:l("This function calculates the depreciation for an accounting period, taking into account prorated depreciation.",[d("cost"),d("datepurchased"),d("firstperiod"),d("salvage"),d("period"),d("drate"),d("basis")]),AND:l("Check whether all arguments are True, and returns True if all arguments are True.",[d("logical1"),d("logical2")]),ASIN:l("This function calculates the arcsine, that is, the angle whose sine is the specified value.",[d("value")]),ASINH:l("This function calculates the inverse hyperbolic sine of a number.",[d("value")]),ATAN:l("This function calculates the arctangent, that is, the angle whose tangent is the specified value.",[d("value")]),ATAN2:l("This function calculates the arctangent of the specified x- and y-coordinates.",[d("x"),d("y")]),ATANH:l("This function calculates the inverse hyperbolic tangent of a number.",[d("value")]),AVEDEV:l("This function calculates the average of the absolute deviations of the specified values from their mean.",[d("value1"),d("value2",!0)]),AVERAGE:l("This function calculates the average of the specified numeric values.",[d("value1"),d("value2",!0)]),AVERAGEA:l("This function calculates the average of the specified values, including text or logical values as well as numeric values.",[d("value1"),d("value2",!0)]),AVERAGEIF:l("This function calculates the average of the specified numeric values provided that they meet the specified criteria.",[d("value1"),d("value2",!0),d("condition")]),AVERAGEIFS:l("This function calculates the average of all cells that meet multiple specified criteria.",[d("value1"),d("condition1"),d("value2",!0),d("condition2...")]),BESSELI:l("This function calculates the modified Bessel function of the first kind evaluated for purely imaginary arguments.",[d("value"),d("order")]),BESSELJ:l("This function calculates the Bessel function of the first kind.",[d("value"),d("order")]),BESSELK:l("This function calculates the modified Bessel function of the second kind evaluated for purely imaginary arguments.",[d("value"),d("order")]),BESSELY:l("This function calculates the Bessel function of the second kind.",[d("value"),d("order")]),BETADIST:l("This function calculates the cumulative beta distribution function.",[d("x"),d("alpha"),d("beta"),d("lower"),d("upper")]),BETAINV:l("This function calculates the inverse of the cumulative beta distribution function.",[d("prob"),d("alpha"),d("beta"),d("lower"),d("upper")]),BIN2DEC:l("This function converts a binary number to a decimal number",[d("number")]),BIN2HEX:l("This function converts a binary number to a hexadecimal number.",[d("number"),d("places")]),BIN2OCT:l("This function converts a binary number to an octal number.",[d("number"),d("places")]),BINOMDIST:l("This function calculates the individual term binomial distribution probability.",[d("x"),d("n"),d("p"),d("cumulative")]),CEILING:l("This function rounds a number up to the nearest multiple of a specified value.",[d("value"),d("signif")]),CHAR:l("This function returns the character specified by a number.",[d("value")]),CHIDIST:l("This function calculates the one-tailed probability of the chi-squared distribution.",[d("value"),d("deg")]),CHIINV:l("This function calculates the inverse of the one-tailed probability of the chi-squared distribution",[d("prob"),d("deg")]),CHITEST:l("This function calculates the test for independence from the chi-squared distribution.",[d("obs_array"),d("exp_array")]),CHOOSE:l("This function returns a value from a list of values.",[d("index"),d("value1"),d("value2",!0)]),CLEAN:l("This function removes all non-printable characters from text.",[d("text")]),CODE:l("This function returns a numeric code to represent the first character in a text string. The returned code corresponds to the Windows character set (ANSI).",[d("text")]),COLUMN:l("This function returns the column number of a reference.",[d("reference")]),COLUMNS:l("This function returns the number of columns in an array.",[d("array")]),COMBIN:l("This function calculates the number of possible combinations for a specified number of items.",[d("k"),d("n")]),COMPLEX:l("This function converts real and imaginary coefficients into a complex number.",[d("realcoeff"),d("imagcoeff"),d("suffix")]),CONCATENATE:l("This function combines multiple text strings or numbers into one text string.",[d("text1"),d("text2"),d("....")]),CONFIDENCE:l("This function returns confidence interval for a population mean.",[d("alpha"),d("stdev"),d("size")]),CONVERT:l("This function converts a number from one measurement system to its equivalent in another measurement system.",[d("number"),d("from-unit"),d("to-unit")]),CORREL:l("This function returns the correlation coefficient of the two sets of data.",[d("array1"),d("array2")]),COS:l("This function returns the cosine of the specified angle.",[d("angle")]),COSH:l("This function returns the hyperbolic cosine of the specified value.",[d("value")]),COUNT:l("This function returns the number of cells that contain numbers.",[d("value1"),d("value2",!0)]),COUNTA:l("This function returns the number of number of cells that contain numbers, text, or logical values.",[d("value1"),d("value2",!0)]),COUNTBLANK:l("This function returns the number of empty (or blank) cells in a range of cells on a sheet.",[d("cellrange")]),COUNTIF:l("This function returns the number of cells that meet a certain condition",[d("cellrange"),d("condition")]),COUNTIFS:l("This function returns the number of cells that meet multiple conditions.",[d("cellrange"),d("condition")]),COUPDAYBS:l("This function calculates the number of days from the beginning of the coupon period to the settlement date.",[d("settlement"),d("maturity"),d("frequency"),d("basis")]),COUPDAYS:l("This function returns the number of days in the coupon period that contains the settlement date.",[d("settlement"),d("maturity"),d("frequency"),d("basis")]),COUPDAYSNC:l("This function calculates the number of days from the settlement date to the next coupon date.",[d("settlement"),d("maturity"),d("frequency"),d("basis")]),COUPNCD:l("This function returns a date number of the next coupon date after the settlement date.",[d("settlement"),d("maturity"),d("frequency"),d("basi")]),COUPNUM:l("This function returns the number of coupons due between the settlement date and maturity date.",[d("settlement"),d("maturity"),d("frequency"),d("basis")]),COUPPCD:l("This function returns a date number of the previous coupon date before the settlement date.",[d("settlement"),d("maturity"),d("frequency"),d("basis")]),COVAR:l("This function returns the covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.",[d("array1"),d("array2")]),CRITBINOM:l("This function returns the criterion binomial, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.",[d("n"),d("p"),d("alpha")]),CUMIPMT:l("This function returns the cumulative interest paid on a loan between the starting and ending periods.",[d("rate"),d("nper"),d("pval"),d("startperiod"),d("endperiod"),d("paytype")]),CUMPRINC:l("This function returns the cumulative principal paid on a loan between the start and end periods.",[d("rate"),d("nper"),d("pval"),d("startperiod"),d("endperiod"),d("paytype")]),DATE:l("This function returns the DateTime object for a particular date, specified by the year, month, and day.",[d("year"),d("month"),d("day")]),DATEDIF:l("This function returns the number of days, months, or years between two dates.",[d("date1"),d("date2"),d("outputcode")]),DATEVALUE:l("This function returns a DateTime object of the specified date.",[d("date_string")]),DAVERAGE:l("This function calculates the average of values in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DAY:l("This function returns the day number of the month (integer 1 to 31) that corresponds to the specified date.",[d("date")]),DAYS360:l("This function returns the number of days between two dates based on a 360-day year.",[d("startdate"),d("enddate"),d("method")]),DB:l("This function calculates the depreciation of an asset for a specified period using the fixed\u2011declining balance method",[d("cost"),d("salvage"),d("life"),d("period"),d("month")]),DCOUNT:l("This function counts the cells that contain numbers in a column of a list or database that match the specified conditions",[d("database"),d(" field"),d(" criteria")]),DCOUNTA:l("This function counts the non-blank cells in a column of a list or database that match the specified conditions",[d("database"),d(" field"),d(" criteria")]),DDB:l("This function calculates the depreciation of an asset for a specified period using the double-declining balance method or another method you specify.",[d("cost"),d("salvage"),d("life"),d("period"),d("factor")]),DEC2BIN:l("This function converts a decimal number to a binary number.",[d("number"),d("places")]),DEC2HEX:l("This function converts a decimal number to a hexadecimal number",[d("number"),d("places")]),DEC2OCT:l("This function converts a decimal number to an octal number",[d("number"),d("places")]),DEGREES:l("This function converts the specified value from radians to degrees",[d("angle")]),DELTA:l("This function identifies whether two values are equal. Returns 1 if they are equal; returns 0 otherwise.",[d("value1"),d("value2")]),DEVSQ:l("This function calculates the sum of the squares of deviations of data points (or of an array of data points) from their sample mean.",[d("value1"),d("value2",!0)]),DGET:l("This function extracts a single value from a column of a list or database that matches the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DISC:l("This function calculates the discount rate for a security.",[d("settle"),d("mature"),d("pricep"),d("redeem"),d("basis")]),DMAX:l("This function returns the largest number in a column of a list or database that matches the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DMIN:l("This function returns the smallest number in a column of a list or database that matches the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DOLLAR:l("This function converts a number to text using currency format, with the decimals rounded to the specified place.",[d("value"),d("digits")]),DOLLARDE:l("This function converts a fraction dollar price to a decimal dollar price.",[d("fractionaldollar"),d("fraction")]),DOLLARFR:l("This function converts a decimal number dollar price to a fraction dollar price.",[d("decimaldollar"),d("fraction")]),DPRODUCT:l("This function multiplies the values in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DSTDEV:l("This function estimates the standard deviation of a population based on a sample by using the numbers in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DSTDEVP:l("This function calculates the standard deviation of a population based on the entire population using the numbers in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DSUM:l("This function adds the numbers in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DURATION:l("This function returns the Macaulay duration for an assumed par value of $100.",[d("settlement"),d("maturity"),d("coupon"),d("yield"),d("frequency"),d("basis")]),DVAR:l("This function estimates the variance of a population based on a sample by using the numbers in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),DVARP:l("This function calculates the variance of a population based on the entire population by using the numbers in a column of a list or database that match the specified conditions.",[d("database"),d(" field"),d(" criteria")]),EDATE:l("This function calculates the date that is the indicated number of months before or after a specified date.",[d("startdate"),d("months")]),EFFECT:l("This function calculates the effective annual interest rate for a given nominal annual interest rate and the number of compounding periods per year.",[d("nomrate"),d("comper")]),EOMONTH:l("This function calculates the date for the last day of the month (end of month) that is the indicated number of months before or after the starting date.",[d("startdate"),d("months")]),ERF:l("This function calculates the error function integrated between a lower and an upper limit.",[d("limit"),d("upperlimit")]),ERFC:l("This function calculates the complementary error function integrated between a lower limit and infinity.",[d("lowerlimit")]),"ERROR.TYPE":l("This function returns a number corresponding to one of the error values.",[d("errorvalue")]),EURO:l("This function returns the equivalent of one Euro based on the ISO currency code.",[d("code")]),EUROCONVERT:l("This function converts currency from a Euro member currency (including Euros) to another Euro member currency (including Euros).",[d("currency"),d("source"),d("target"),d("fullprecision"),d("triangulation")]),EVEN:l("This function rounds the specified value up to the nearest even integer.",[d("value")]),EXACT:l("This function returns true if two strings are the same; otherwise, false.",[d("text1"),d("text2")]),EXP:l("This function returns e raised to the power of the specified value.",[d("value")]),EXPONDIST:l("This function returns the exponential distribution or the probability density.",[d("value"),d("lambda"),d("cumulative")]),FACT:l("This function calculates the factorial of the specified number.",[d("number")]),FACTDOUBLE:l("This function calculates the double factorial of the specified number.",[d("number")]),FALSE:l("This function returns the value for logical FALSE.",[]),FDIST:l("This function calculates the F probability distribution, to see degrees of diversity between two sets of data.",[d("value"),d("degnum"),d("degden")]),FIND:l("This function finds one text value within another and returns the text value\u2019s position in the text you searched.",[d("findtext"),d("intext"),d("start")]),FINV:l("This function returns the inverse of the F probability distribution.",[d("p"),d("degnum"),d("degden")]),FISHER:l("This function returns the Fisher transformation for a specified value.",[d("value")]),FISHERINV:l("This function returns the inverse of the Fisher transformation for a specified value.",[d("value")]),FIXED:l("This function rounds a number to the specified number of decimal places, formats the number in decimal format using a period and commas (if so specified), and returns the result as text.",[d("num"),d("digits"),d("notcomma")]),FLOOR:l("This function rounds a number down to the nearest multiple of a specified value.",[d("value"),d("signif")]),FORECAST:l("This function calculates a future value using existing values.",[d("value"),d("Yarray"),d("Xarray")]),FREQUENCY:l("This function calculates how often values occur within a range of values. This function returns a vertical array of numbers.",[d("dataarray"),d("binarray")]),FTEST:l("This function returns the result of an F-test, which returns the one-tailed probability that the variances in two arrays are not significantly different.",[d("array1"),d("array2")]),FV:l("This function returns the future value of an investment based on a present value, periodic payments, and a specified interest rate.",[d("rate"),d("numper"),d("paymt"),d("pval"),d("type")]),FVSCHEDULE:l("This function returns the future value of an initial principal after applying a series of compound interest rates. Calculate future value of an investment with a variable or adjustable rate.",[d("principal"),d("schedule")]),GAMMADIST:l("This function returns the gamma distribution.",[d("x"),d("alpha"),d("beta"),d("cumulative")]),GAMMAINV:l("This function returns the inverse of the gamma cumulative distribution.",[d("p"),d("alpha"),d("beta")]),GAMMALN:l("This function returns the natural logarithm of the Gamma function, G(x).",[d("value")]),GCD:l("This function returns the greatest common divisor of two numbers.",[d("number1"),d("number2")]),GEOMEAN:l("This function returns the geometric mean of a set of positive data.",[d("value1"),d("value2",!0)]),GESTEP:l("This function, greater than or equal to step, returns an indication of whether a number is equal to a threshold.",[d("number"),d("step")]),GROWTH:l("This function calculates predicted exponential growth. This function returns the y values for a series of new x values that are specified by using existing x and y values.",[d("y"),d("x"),d("newx"),d("constant")]),HARMEAN:l("This function returns the harmonic mean of a data set.",[d("value1"),d("value2",!0)]),HEX2BIN:l("This function converts a hexadecimal number to a binary number.",[d("number"),d(" places")]),HEX2DEC:l("This function converts a hexadecimal number to a decimal number.",[d("number")]),HEX2OCT:l("This function converts a hexadecimal number to an octal number.",[d("number"),d(" places")]),HLOOKUP:l("This function searches for a value in the top row and then returns a value in the same column from a specified row.",[d("value"),d("array"),d("row"),d("approx")]),HOUR:l("This function returns the hour that corresponds to a specified time.",[d("time")]),HYPGEOMDIST:l("This function returns the hypergeometric distribution.",[d("x"),d("n"),d("M"),d("N")]),IF:l("This function performs a comparison and returns one of two provided values based on that comparison.",[d("valueTest"),d("valueTrue"),d("valueFalse")]),IFERROR:l("This function evaluates a formula and returns a value you provide if there is an error or the formula result.",[d("value"),d("error")]),IMABS:l("This function returns the absolute value or modulus of a complex number.",[d("complexnum")]),IMAGINARY:l("This function returns the imaginary coefficient of a complex number.",[d("complexnum")]),IMARGUMENT:l("This function returns the argument theta, which is an angle expressed in radians.",[d("complexnum")]),IMCONJUGATE:l("This function returns the complex conjugate of a complex number.",[d("complexnum")]),IMCOS:l("This function returns the cosine of a complex number.",[d("complexnum")]),IMDIV:l("This function returns the quotient of two complex numbers.",[d("complexnum"),d("complexdenom")]),IMEXP:l("This function returns the exponential of a complex number.",[d("complexnum")]),IMLN:l("This function returns the natural logarithm of a complex number.",[d("complexnum")]),IMLOG2:l("This function returns the base-2 logarithm of a complex number.",[d("complexnum")]),IMLOG10:l("This function returns the common logarithm of a complex number.",[d("complexnum")]),IMPOWER:l("This function returns a complex number raised to a power.",[d("complexnum"),d("powernum")]),IMPRODUCT:l("This function returns the product of up to 29 complex numbers in the x+yi or x+yj text format.",[d("complexnum1"),d("complexnum2",!0)]),IMREAL:l("This function returns the real coefficient of a complex number in the x+yi or x+yj text format.",[d("complexnum")]),IMSIN:l("This function returns the sine of a complex number in the x+yi or x+yj text format.",[d("complexnum")]),IMSQRT:l("This function returns the square root of a complex number in the x+yi or x+yj text format.",[d("complexnum")]),IMSUB:l("This function returns the difference of two complex numbers in the x+yi or x+yj text format.",[d("complexnum1"),d("complexnum2")]),IMSUM:l("This function returns the sum of two or more complex numbers in the x+yi or x+yj text format.",[d("complexnum1"),d("complexnum2",!0)]),INDEX:l("This function returns a value or the reference to a value from within an array or range.",[d("return"),d("row"),d("col"),d("area")]),INDIRECT:l("This function returns the reference specified by a text string. References are immediately evaluated to display their contents.",[d("ref_text"),d("a1_style")]),INT:l("This function rounds a specified number down to the nearest integer.",[d("value")]),INTERCEPT:l("This function returns the coordinates of a point at which a line intersects the y-axis, by using existing x values and y values.",[d("dependent"),d("independent")]),INTRATE:l("This function calculates the interest rate for a fully invested security.",[d("settle"),d("mature"),d("invest"),d("redeem"),d("basis")]),IPMT:l("This function calculates the payment of interest on a loan.",[d("rate"),d("per"),d("nper"),d("pval"),d("fval"),d("type")]),IRR:l("This function returns the internal rate of return for a series of cash flows represented by the numbers in an array.",[d("arrayvals"),d("estimate")]),ISBLANK:l("This function tests whether a value, an expression, or contents of a referenced cell is empty.",[d("cellreference")]),ISERR:l("This function, Is Error Other Than Not Available, tests whether a value, an expression, or contents of a referenced cell has an error other than not available (#N/A).",[d("cellreference")]),ISERROR:l("This function, Is Error of Any Kind, tests whether a value, an expression, or contents of a referenced cell has an error of any kind.",[d("cellreference")]),ISEVEN:l("This function, Is Number Even, tests whether a value, an expression, or contents of a referenced cell is even.",[d("cellreference")]),ISLOGICAL:l("This function tests whether a value, an expression, or contents of a referenced cell is a logical (Boolean) value.",[d("cellreference")]),ISNA:l("This function, Is Not Available, tests whether a value, an expression, or contents of a referenced cell has the not available (#N/A) error value.",[d("cellreference")]),ISNONTEXT:l("This function tests whether a value, an expression, or contents of a referenced cell has any data type other than text.",[d("cellreference")]),ISNUMBER:l("This function tests whether a value, an expression, or contents of a referenced cell has numeric data.",[d("cellreference")]),ISODD:l("This function, Is Number Odd, tests whether a value, an expression, or contents of a referenced cell has numeric data.",[d("cellreference")]),ISPMT:l("This function calculates the interest paid during a specific period of an investment.",[d("rate"),d("per"),d("nper"),d("pv")]),ISREF:l("This function, Is Reference, tests whether a value, an expression, or contents of a referenced cell is a reference to another cell.",[d("cellreference")]),ISTEXT:l("This function tests whether a value, an expression, or contents of a referenced cell has text data.",[d("cellreference")]),KURT:l("This function returns the kurtosis of a data set.",[d("value1"),d("value2"),d("value3"),d("value4",!0)]),LARGE:l("This function returns the nth largest value in a data set, where n is specified.",[d("array"),d("n")]),LCM:l("This function returns the least common multiple of two numbers.",[d("number1"),d("number2")]),LEFT:l("This function returns the specified leftmost characters from a text value.",[d("mytext"),d("num_chars")]),LEN:l("This function returns the length of, the number of characters in, a text string.",[d("value")]),LINEST:l("This function calculates the statistics for a line.",[d("y"),d("x"),d("constant"),d("stats")]),LN:l("This function returns the natural logarithm of the specified number.",[d("value")]),LOG:l("This function returns the logarithm base Y of a number X.",[d("number"),d("base")]),LOG10:l("This function returns the logarithm base 10 of the number given.",[d("value")]),LOGEST:l("This function calculates an exponential curve that fits the data and returns an array of values that describes the curve.",[d("y"),d("x"),d("constant"),d("stats")]),LOGINV:l("This function returns the inverse of the lognormal cumulative distribution function of x, where LN(x) is normally distributed with the specified mean and standard deviation.",[d("prob"),d("mean"),d("stdev")]),LOGNORMDIST:l("This function returns the cumulative natural log normal distribution of x, where LN(x) is normally distributed with the specified mean and standard deviation. Analyze data that has been logarithmically transformed with this function.",[d("x"),d("mean"),d("stdev")]),LOOKUP:l("This function searches for a value and returns a value from the same location in a second area.",[d("lookupvalue"),d("lookupvector"),d("resultvector")]),LOWER:l("This function converts text to lower case letters.",[d("string")]),MATCH:l("This function returns the relative position of a specified item in a range.",[d("value1"),d("array"),d("type")]),MAX:l("This function returns the maximum value, the greatest value, of all the values in the arguments.",[d("value1"),d("value2",!0)]),MAXA:l("This function returns the largest value in a list of arguments, including text and logical values.",[d("value1"),d("value2",!0)]),MDETERM:l("This function returns the matrix determinant of an array.",[d("array")]),MDURATION:l("This function calculates the modified Macaulay duration of a security with an assumed par value of $100.",[d("settlement"),d("maturity"),d("coupon"),d("yield"),d("frequency"),d("basis")]),MEDIAN:l("This function returns the median, the number in the middle of the provided set of numbers; that is, half the numbers have values that are greater than the median, and half have values that are less than the median.",[d("value1"),d("value2",!0)]),MID:l("This function returns the requested number of characters from a text string starting at the position you specify.",[d("text"),d("start_num"),d("num_chars")]),MIN:l("This function returns the minimum value, the least value, of all the values in the arguments.",[d("value1"),d("value2",!0)]),MINA:l("This function returns the minimum value in a list of arguments, including text and logical values.",[d("value1"),d("value2",!0)]),MINUTE:l("This function returns the minute corresponding to a specified time.",[d("time")]),MINVERSE:l("This function returns the inverse matrix for the matrix stored in an array.",[d("array")]),MIRR:l("This function returns the modified internal rate of return for a series of periodic cash flows.",[d("arrayvals"),d("payment_int"),d("income_int")]),MMULT:l("This function returns the matrix product for two arrays.",[d("array1"),d("array2")]),MOD:l("This function returns the remainder of a division operation.",[d("dividend"),d("divisor")]),MODE:l("This function returns the most frequently occurring value in a set of data.",[d("value1"),d("value2",!0)]),MONTH:l("This function returns the month corresponding to the specified date value.",[d("date")]),MROUND:l("This function returns a number rounded to the desired multiple.",[d("number"),d("multiple")]),MULTINOMIAL:l("This function calculates the ratio of the factorial of a sum of values to the product of factorials.",[d("value1"),d("value2",!0)]),N:l("This function returns a value converted to a number.",[d("value")]),NA:l("This function returns the error value #N/A that means not available.",[]),NEGBINOMDIST:l("This function returns the negative binomial distribution.",[d("x"),d("r"),d("p")]),NETWORKDAYS:l("This function returns the total number of complete working days between the start and end dates.",[d("startdate"),d("enddate"),d("holidays")]),NOMINAL:l("This function returns the nominal annual interest rate for a given effective rate and number of compounding periods per year.",[d("effrate"),d("comper")]),NORMDIST:l("This function returns the normal cumulative distribution for the specified mean and standard deviation.",[d("x"),d("mean"),d("stdev"),d("cumulative")]),NORMINV:l("This function returns the inverse of the normal cumulative distribution for the given mean and standard deviation.",[d("prob"),d("mean"),d("stdev")]),NORMSDIST:l("This function returns the standard normal cumulative distribution function.",[d("value")]),NORMSINV:l("This function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one.",[d("prob")]),NOT:l("This function reverses the logical value of its argument.",[d("value")]),NOW:l("This function returns the current date and time.",[]),NPER:l("This function returns the number of periods for an investment based on a present value, future value, periodic payments, and a specified interest rate.",[d("rate"),d("paymt"),d("pval"),d("fval"),d("type")]),NPV:l("This function calculates the net present value of an investment by using a discount rate and a series of future payments and income.",[d("discount"),d("value1"),d("value2",!0)]),OCT2BIN:l("This function converts an octal number to a binary number.",[d("number"),d("places")]),OCT2DEC:l("This function converts an octal number to a decimal number.",[d("number")]),OCT2HEX:l("This function converts an octal number to a hexadecimal number.",[d("number"),d("places")]),ODD:l("This function rounds the specified value up to the nearest odd integer.",[d("value")]),ODDFPRICE:l("This function calculates the price per $100 face value of a security with an odd first period.",[d("settle"),d("maturity"),d("issue"),d("first"),d("rate"),d("yield"),d("redeem"),d("freq"),d("basis")]),ODDFYIELD:l("This function calculates the yield of a security with an odd first period.",[d("settle"),d("maturity"),d("issue"),d("first"),d("rate"),d("price"),d("redeem"),d("freq"),d("basis")]),ODDLPRICE:l("This function calculates the price per $100 face value of a security with an odd last coupon period.",[d("settle"),d("maturity"),d("last"),d("rate"),d("yield"),d("redeem"),d("freq"),d("basis")]),ODDLYIELD:l("This function calculates the yield of a security with an odd last period.",[d("settle"),d("maturity"),d("last"),d("rate"),d("price"),d("redeem"),d("freq"),d("basis")]),OFFSET:l("This function returns a reference to a range. The range is a specified number of rows and columns from a cell or range of cells. The function returns a single cell or a range of cells.",[d("reference"),d("rows"),d("cols"),d("height"),d("width")]),OR:l("This function calculates logical OR. It returns TRUE if any of its arguments are true; otherwise, returns FALSE if all arguments are false.",[d("argument1"),d("argument2...")]),PEARSON:l("This function returns the Pearson product moment correlation coefficient, a dimensionless index between -1.0 to 1.0 inclusive indicative of the linear relationship of two data sets.",[d("array_ind"),d("array_dep")]),PERCENTILE:l("This function returns the nth percentile of values in a range.",[d("array"),d("n")]),PERCENTRANK:l("This function returns the rank of a value in a data set as a percentage of the data set.",[d("array"),d("n"),d("sigdig")]),PERMUT:l("This function returns the number of possible permutations for a specified number of items.",[d("k"),d("n")]),PI:l("This function returns PI as 3.1415926536.",[]),PMT:l("This function returns the payment amount for a loan given the present value, specified interest rate, and number of terms.",[d("rate"),d("nper"),d("pval"),d("fval"),d("type")]),POISSON:l("This function returns the Poisson distribution.",[d("nevents"),d("mean"),d("cumulative")]),POWER:l("This function raises the specified number to the specified power.",[d("number"),d("power")]),PPMT:l("This function returns the amount of payment of principal for a loan given the present value, specified interest rate, and number of terms.",[d("rate"),d("per"),d("nper"),d("pval"),d("fval"),d("type")]),PRICE:l("This function calculates the price per $100 face value of a periodic interest security",[d("settlement"),d("maturity"),d("rate"),d("yield"),d("redeem"),d("frequency"),d("basis")]),PRICEDISC:l("This function returns the price per $100 face value of a discounted security.",[d("settle"),d("mature"),d("discount"),d("redeem"),d("basis")]),PRICEMAT:l("This function returns the price at maturity per $100 face value of a security that pays interest.",[d("settle"),d("mature"),d("issue"),d("rate"),d("yield"),d("basis")]),PROB:l("This function returns the probability that values in a range are between two limits.",[d("array"),d("probs"),d("lower"),d("upper")]),PRODUCT:l("This function multiplies all the arguments and returns the product.",[d("value1"),d("value2",!0)]),PROPER:l("This function capitalizes the first letter in each word of a text string.",[d("text")]),PV:l("This function returns the present value of an investment based on the interest rate, number and amount of periodic payments, and future value. The present value is the total amount that a series of future payments is worth now.",[d("rate"),d("numper"),d("paymt"),d("fval"),d("type")]),QUARTILE:l("This function returns which quartile (which quarter or 25 percent) of a data set a value is.",[d("array"),d("quart")]),QUOTIENT:l("This function returns the integer portion of a division. Use this to ignore the remainder of a division.",[d("numerator"),d("denominator")]),RADIANS:l("This function converts the specified number from degrees to radians.",[d("value")]),RAND:l("This function returns an evenly distributed random number between 0 and 1.",[]),RANDBETWEEN:l("This function returns a random number between the numbers you specify.",[d("lower"),d("upper")]),RANK:l("This function returns the rank of a number in a set of numbers. If you were to sort the set, the rank of the number would be its position in the list.",[d("number"),d("array"),d("order")]),RATE:l("This function returns the interest rate per period of an annuity.",[d("nper"),d("pmt"),d("pval"),d("fval"),d("type"),d("guess")]),RECEIVED:l("This function returns the amount received at maturity for a fully invested security.",[d("settle"),d("mature"),d("invest"),d("discount"),d("basis")]),REPLACE:l("This function replaces part of a text string with a different text string.",[d("old_text"),d("start_char"),d("num_chars"),d("new_text")]),REPT:l("This function repeats text a specified number of times.",[d("text"),d("number")]),RIGHT:l("This function returns the specified rightmost characters from a text value.",[d("text"),d("num_chars")]),ROMAN:l("This function converts an Arabic numeral to a Roman numeral text equivalent.",[d("number"),d("style")]),ROUND:l("This function rounds the specified value to the nearest number, using the specified number of decimal places.",[d("value"),d("places")]),ROUNDDOWN:l("This function rounds the specified number down to the nearest number, using the specified number of decimal places.",[d("value"),d("places")]),ROUNDUP:l("This function rounds the specified number up to the nearest number, using the specified number of decimal places.",[d("value"),d("places")]),ROW:l("This function returns the number of a row from a reference.",[d("reference")]),ROWS:l("This function returns the number of rows in an array.",[d("array")]),RSQ:l("This function returns the square of the Pearson product moment correlation coefficient (R\u2011squared) through data points in known y\u2019s and known x\u2019s.",[d("array_dep"),d("array_ind")]),SEARCH:l("This function finds one text string in another text string and returns the index of the starting position of the found text.",[d("string1"),d("string2")]),SECOND:l("This function returns the seconds (0 to 59) value for a specified time.",[d("time")]),SERIESSUM:l("This function returns the sum of a power series.",[d("x"),d("n"),d("m"),d("coeff")]),SIGN:l("This function returns the sign of a number or expression.",[d("cellreference")]),SIN:l("This function returns the sine of the specified angle.",[d("angle")]),SINH:l("This function returns the hyperbolic sine of the specified number.",[d("value")]),SKEW:l("This function returns the skewness of a distribution.",[d("number1"),d("number2",!0)]),SLN:l("This function returns the straight-line depreciation of an asset for one period.",[d("cost"),d("salvage"),d("life")]),SLOPE:l("This function calculates the slope of a linear regression.",[d("array_dep"),d("array_ind")]),SMALL:l("This function returns the nth smallest value in a data set, where n is specified.",[d("array"),d("n")]),SQRT:l("This function returns the positive square root of the specified number.",[d("value")]),SQRTPI:l("This function returns the positive square root of a multiple of pi (p).",[d("multiple")]),STANDARDIZE:l("This function returns a normalized value from a distribution characterized by mean and standard deviation.",[d("x"),d("mean"),d("stdev")]),STDEVA:l("This function returns the standard deviation for a set of numbers, text, or logical values.",[d("value1"),d("value2",!0)]),STDEVP:l("This function returns the standard deviation for an entire specified population (of numeric values).",[d("value1"),d("value2",!0)]),STDEVPA:l("This function returns the standard deviation for an entire specified population, including text or logical values as well as numeric values.",[d("value1"),d("value2",!0)]),STEYX:l("This function returns the standard error of the predicted y value for each x. The standard error is a measure of the amount of error in the prediction of y for a value of x.",[d("array_dep"),d("array_ind")]),SUBSTITUTE:l("This function substitutes a new string for specified characters in an existing string.",[d("text"),d("old_piece"),d("new_piece"),d("instance")]),SUBTOTAL:l("This function calculates a subtotal of a list of numbers using a specified built-in function.",[d("functioncode"),d("value1"),d("value2",!0)]),SUM:l("This function returns the sum of cells or range of cells.",[d("value1"),d("value2",!0)]),SUMIF:l("This function adds the cells using a given criteria.",[d("array"),d("condition"),d("sumrange")]),SUMIFS:l("This function adds the cells in a range using multiple criteria.",[d("array"),d("conditionarray"),d("condition",!0)]),SUMPRODUCT:l("This function returns the sum of products of cells. Multiplies corresponding components in the given arrays, and returns the sum of those products.",[d("array1"),d("array2",!0)]),SUMSQ:l("This function returns the sum of the squares of the arguments.",[d("value1"),d("value2",!0)]),SUMX2MY2:l("This function returns the sum of the difference of the squares of corresponding values in two arrays.",[d("array_x"),d("array_y")]),SUMX2PY2:l("This function returns the sum of the sum of squares of corresponding values in two arrays.",[d("array_x"),d("array_y")]),SUMXMY2:l("This function returns the sum of the square of the differences of corresponding values in two arrays.",[d("array_x"),d("array_y")]),SYD:l("This function returns the sum-of-years\u2019 digits depreciation of an asset for a specified period.",[d("cost"),d("salvage"),d("life"),d("period")]),T:l("This function returns the text in a specified cell.",[d("value")]),TAN:l("This function returns the tangent of the specified angle.",[d("angle")]),TANH:l("This function returns the hyperbolic tangent of the specified number.",[d("value")]),TBILLEQ:l("This function returns the equivalent yield for a Treasury bill (or T-bill)",[d("settle"),d("mature"),d("discount")]),TBILLPRICE:l("This function returns the price per $100 face value for a Treasury bill (or T-bill).",[d("settle"),d("mature"),d("discount")]),TBILLYIELD:l("This function returns the yield for a Treasury bill (or T-bill).",[d("settle"),d("mature"),d("priceper")]),TDIST:l("This function returns the probability for the t-distribution.",[d("x"),d("deg"),d("tails")]),TEXT:l("This function formats a number and converts it to text.",[d("value"),d("text")]),TIME:l("This function returns the TimeSpan object for a specified time.",[d("hour"),d("minutes"),d("seconds")]),TIMEVALUE:l("This function returns the TimeSpan object of the time represented by a text string.",[d("time_string")]),TINV:l("This function returns the t-value of the student's t-distribution as a function of the probability and the degrees of freedom.",[d("prog"),d("deg")]),TODAY:l("This function returns the date and time of the current date.",[]),TRANSPOSE:l("This function returns a vertical range of cells as a horizontal range or a horizontal range of cells as a vertical range.",[d("array")]),TREND:l("This function returns values along a linear trend. This function fits a straight line to the arrays known x and y values. Trend returns the y values along that line for the array of specified new x values.",[d("y"),d("x"),d("newx"),d("constant")]),TRIM:l("This function removes extra spaces from a string and leaves single spaces between words.",[d("text")]),TRIMMEAN:l("This function returns the mean of a subset of data excluding the top and bottom data.",[d("array"),d("percent")]),TRUE:l("This function returns the value for logical TRUE.",[]),TRUNC:l("This function removes the specified fractional part of the specified number.",[d("value"),d("precision")]),TTEST:l("This function returns the probability associated with a t-test.",[d("array1"),d("array2"),d("tails"),d("type")]),TYPE:l("This function returns the type of value.",[d("value")]),UPPER:l("This function converts text to uppercase letters.",[d("string")]),VALUE:l("This function converts a text string that is a number to a numeric value.",[d("text")]),VAR:l("This function returns the variance based on a sample of a population, which uses only numeric values.",[d("value1"),d("value2",!0)]),VARA:l("This function returns the variance based on a sample of a population, which includes numeric, logical, or text values.",[d("value1"),d("value2",!0)]),VARP:l("This function returns variance based on the entire population, which uses only numeric values.",[d("value1"),d("value2",!0)]),VARPA:l("This function returns variance based on the entire population, which includes numeric, logical, or text values.",[d("value1"),d("value2",!0)]),VDB:l("This function returns the depreciation of an asset for any period you specify using the variable declining balance method.",[d("cost"),d("salvage"),d("life"),d("start"),d("end"),d("factor"),d("switchnot")]),VLOOKUP:l("This function searches for a value in the leftmost column and returns a value in the same row from a column you specify.",[d("value"),d("array"),d("colindex"),d("approx")]),WEEKDAY:l("This function returns the number corresponding to the day of the week for a specified date.",[d("date"),d("type")]),WEEKNUM:l("This function returns a number that indicates the week of the year numerically.",[d("date"),d("weektype")]),WEIBULL:l("This function returns the two-parameter Weibull distribution, often used in reliability analysis.",[d("x"),d("alpha"),d("beta"),d("cumulative")]),WORKDAY:l("This function returns the number of working days before or after the starting date.",[d("startdate"),d("numdays"),d("holidays")]),XIRR:l("This function calculates the internal rate of return for a schedule of cash flows that may not be periodic.",[d("values"),d("dates"),d("guess")]),XNPV:l("This function calculates the net present value for a schedule of cash flows that may not be periodic.",[d("rate"),d("values"),d("dates")]),YEAR:l("This function returns the year as an integer for a specified date.",[d("date")]),YEARFRAC:l("This function returns the fraction of the year represented by the number of whole days between the start and end dates.",[d("startdate"),d("enddate"),d("basis")]),YIELD:l("This function calculates the yield on a security that pays periodic interest.",[d("settle"),d("maturity"),d("rate"),d("price"),d("redeem"),d("frequency"),d("basis")]),YIELDDISC:l("This function calculates the annual yield for a discounted security.",[d("settle"),d("maturity"),d("price"),d("redeem"),d("basis")]),YIELDMAT:l("This function calculates the annual yield of a security that pays interest at maturity.",[d("settle"),d("maturity"),d("issue"),d("issrate"),d("price"),d("basis")]),ZTEST:l("This function returns the significance value of a z-test. The z-test generates a standard score for x with respect to the set of data and returns the two-tailed probability for the normal distribution.",[d("array"),d("x"),d("sigma")]),HBARSPARKLINE:l("This function returns a data set used for representing a Hbar sparkline",[d("value"),d("colorScheme")]),VBARSPARKLINE:l("This function returns a data set used for representing a Vbar sparkline",[d("value"),d("colorScheme")]),VARISPARKLINE:l("This function returns a data set used for representing a variance sparkline",[d("variance"),d("reference"),d("mini"),d("maxi"),d("mark"),d("tickunit"),d("legend"),d("colorPositive"),d("colorNegative"),d("vertical")]),PIESPARKLINE:l("This function returns a data set used for representing a pie sparkline",[d("range|percentage"),d("color",!0)]),AREASPARKLINE:l("This function returns a data set used for representing a area sparkline",[d("points"),d("mini"),d("maxi"),d("line1"),d("line2"),d("colorPositive"),d("colorNegative")]),SCATTERSPARKLINE:l("This function returns a data set used for representing a scatter sparkline",[d("points1"),d("points2"),d("minX"),d("maxX"),d("minY"),d("maxY"),d("hLine"),d("vLine"),d("xMinZone"),d("xMaxZone"),d("yMinZone"),d("yMaxZone"),d("tags"),d("drawSymbol"),d("drawLines"),d("color1"),d("color2"),d("dash")]),LINESPARKLINE:l("This function returns a data set used for representing a line sparkline",[d("data"),d("dataOrientation"),d("dateAxisData"),d("dateAxisOrientation"),d("setting")]),COLUMNSPARKLINE:l("This function returns a data set used for representing a column sparkline",[d("data"),d("dataOrientation"),d("dateAxisData"),d("dateAxisOrientation"),d("setting")]),WINLOSSSPARKLINE:l("This function returns a data set used for representing a win/loss sparkline",[d("data"),d("dataOrientation"),d("dateAxisData"),d("dateAxisOrientation"),d("setting")]),BULLETSPARKLINE:l("This function returns a data set used for representing a bullet sparkline",[d("measure"),d("target"),d("maxi"),d("good"),d("bad"),d("forecast"),d("tickunit"),d("colorScheme"),d("vertical")]),SPREADSPARKLINE:l("This function returns a data set used for representing a spread sparkline",[d("points"),d("showAverage"),d("scaleStart"),d("scaleEnd"),d("style"),d("colorScheme"),d("vertical")]),STACKEDSPARKLINE:l("This function returns a data set used for representing a stacked sparkline",[d("points"),d("colorRange"),d("labelRange"),d("maximum"),d("targetRed"),d("targetGreen"),d("targetBlue"),d("tragetYellow"),d("color"),d("highlightPosition"),d("vertical"),d("textOrientation"),d("textSize")]),BOXPLOTSPARKLINE:l("This function returns a data set used for representing a boxplot sparkline",[d("points"),d("boxPlotClass"),d("showAverage"),d("scaleStart"),d("scaleEnd"),d("acceptableStart"),d("acceptableEnd"),d("colorScheme"),d("style"),d("vertical")]),CASCADESPARKLINE:l("This function returns a data set used for representing a cascade sparkline",[d("pointsRange"),d("pointIndex"),d("labelsRange"),d("minimum"),d("maximum"),d("colorPositive"),d("colorNegative"),d("vertical")]),PARETOSPARKLINE:l("This function returns a data set used for representing a pareto sparkline",[d("points"),d("pointIndex"),d("colorRange"),d("target"),d("target2"),d("highlightPosition"),d("label"),d("vertical")]),MONTHSPARKLINE:l("This function returns a data set used for representing a month sparkline",[d("year"),d("month"),d("dataRange"),d("emptyColor"),d("startColor"),d("middleColor"),d("endColor")]),YEARSPARKLINE:l("This function returns a data set used for representing a year sparkline",[d("year"),d("dataRange"),d("emptyColor"),d("startColor"),d("middleColor"),d("endColor")]),"CEILING.PRECISE":l("This function rounds a number up to the nearest integer or to the nearest multiple of a specified value.",[d("number"),d("signif")]),"COVARIANCE.S":l("This function returns the sample covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.",[d("array1"),d("array2")]),"FLOOR.PRECISE":l("This function rounds a number down to the nearest integer or to the nearest multiple of a specified value.",[d("number"),d("signif")]),"PERCENTILE.EXC":l("This function returns the nth percentile of values in a range.",[d("array"),d("n")]),"QUARTILE.EXC":l("This function returns which quartile (which quarter or 25 percent) of a data set a value is.",[d("array"),d("quart")]),"RANK.AVG":l("This function returns the rank of a number in a set of numbers. If some values have the same rank, it will return the average rank.",[d("number"),d("array"),d("order")]),"MODE.MULT":l("This function returns the most frequently occurring vertical array or the most frequently occurring value in a set of data.",[d("number1"),d("number2",!0)]),"STDEV.P":l("This function returns the standard deviation for an entire specified population (of numeric values).",[d("value1"),d("value2",!0)]),"VAR.P":l("This function returns variance based on the entire population, which uses only numeric values.",[d("value1"),d("value2",!0)]),"COVARIANCE.P":l("This function returns the covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.",[d("array1"),d("array2")]),"MODE.SNGL":l("This function returns the most frequently occurring value in a set of data.",[d("value1"),d("value2",!0)]),"PERCENTILE.INC":l("This function returns the nth percentile of values in a range.",[d("array"),d("n")]),"QUARTILE.INC":l("This function returns which quartile (which quarter or 25 percent) of a data set a value is.",[d("array"),d("quart")]),"RANK.EQ":l("This function returns the rank of a number in a set of numbers. If you were to sort the set, the rank of the number would be its position in the list.",[d("number"),d("array"),d("order")]),STDEV:l("This function returns standard deviation is estimated based on a sample.",[d("number1"),d("number2",!0)]),"STDEV.S":l("This function returns standard deviation is estimated based on a sample.",[d("number1"),d("number2",!0)]),"VAR.S":l("This function returns the variance based on a sample of a population, which uses only numeric values.",[d("value1"),d("value2",!0)]),"BETA.INV":l("This function calculates the inverse of the cumulative beta distribution function.",[d("prob"),d("alpha"),d("beta"),d("lower"),d("upper")]),"BINOM.DIST":l("This function calculates the individual term binomial distribution probability.",[d("x"),d("n"),d("p"),d("cumulative")]),"BINOM.INV":l("This function returns the criterion binomial, the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value.",[d("n"),d("p"),d("alpha")]),"CHISQ.DIST.RT":l("This function calculates the one-tailed probability of the chi-squared distribution.",[d("value"),d("deg")]),"CHISQ.INV.RT":l("This function calculates the inverse of the one-tailed probability of the chi-squared distribution.",[d("prob"),d("deg")]),"CHISQ.TEST":l("This function calculates the test for independence from the chi-squared distribution.",[d("obs_array"),d("exp_array")]),"CONFIDENCE.NORM":l("This function returns confidence interval for a population mean.",[d("alpha"),d("stdev"),d("size")]),"EXPON.DIST":l("This function returns the exponential distribution or the probability density.",[d("value"),d("lambda"),d("cumulative")]),"F.DIST.RT":l("This function calculates the F probability distribution, to see degrees of diversity between two sets of data.",[d("value"),d("degnum"),d("degden")]),"F.INV.RT":l("This function returns the inverse of the F probability distribution.",[d("p"),d("degnum"),d("degden")]),"F.TEST":l("This function returns the result of an F-test, which returns the one-tailed probability that the variances in two arrays are not significantly different.",[d("array1"),d("array2")]),"GAMMA.DIST":l("This function returns the gamma distribution.",[d("x"),d("alpha"),d("beta"),d("cumulative")]),"GAMMA.INV":l("This function returns the inverse of the gamma cumulative distribution.",[d("p"),d("alpha"),d("beta")]),"LOGNORM.INV":l("This function returns the inverse of the lognormal cumulative distribution function of x, where LN(x) is normally distributed with the specified mean and standard deviation.",[d("prob"),d("mean"),d("stdev")]),"NORM.DIST":l("This function returns the normal cumulative distribution for the specified mean and standard deviation.",[d("x"),d("mean"),d("stdev"),d("cumulative")]),"NORM.INV":l("This function returns the inverse of the normal cumulative distribution for the given mean and standard deviation.",[d("prob"),d("mean"),d("stdev")]),"NORM.S.INV":l("This function returns the inverse of the standard normal cumulative distribution. The distribution has a mean of zero and a standard deviation of one.",[d("prob")]),"PERCENTRANK.INC":l("This function returns the rank of a value in a data set as a percentage of the data set.",[d("array"),d("n"),d("signif")]),"POISSON.DIST":l("This function returns the Poisson distribution.",[d("nevents"),d("mean"),d("cumulative")]),"T.INV.2T":l("This function returns the t-value of the student's t-distribution as a function of the probability and the degrees of freedom.",[d("prog"),d("deg")]),"T.TEST":l("This function returns the probability associated with a t-test.",[d("array1"),d("array2"),d("tails"),d("type")]),"WEIBULL.DIST":l("This function returns the two-parameter Weibull distribution, often used in reliability analysis.",[d("x"),d("alpha"),d("beta"),d("cumulative")]),"Z.TEST":l("This function returns the significance value of a z-test. The z-test generates a standard score for x with respect to the set of data and returns the two-tailed probability for the normal distribution.",[d("array"),d("x"),d("sigma")]),"T.DIST.RT":l("This function returns the right-tailed t-distribution.",[d("x"),d("deg")]),"T.DIST.2T":l("This function returns the two-tailed t-distribution.",[d("x"),d("deg")]),"ISO.CEILING":l("This function returns a number up to the nearest integer or to the nearest multiple of significance, regardless of sign of significance.",[d("number"),d("signif")]),"BETA.DIST":l("This function returns the beta distribution.",[d("x"),d("alpha"),d("beta"),d("cumulative"),d("lower"),d("upper")]),"GAMMALN.PRECISE":l("This function returns the natural logarithm of the gamma function.",[d("value")]),"ERF.PRECISE":l("This function returns the error function.",[d("lowerlimit")]),"ERFC.PRECISE":l("This function returns the complementary ERF function.",[d("lowerlimit")]),"PERCENTRANK.EXC":l("This function returns the percentage rank(0..1, exclusive) of a value in a data set.",[d("array"),d("n"),d("signif")]),"HYPGEOM.DIST":l("This function returns the hypergeometric distribution.",[d("x"),d("n"),d("M"),d("N"),d("cumulative")]),"LOGNORM.DIST":l("This function returns the log normal distribution of x.",[d("x"),d("mean"),d("stdev"),d("cumulative")]),"NEGBINOM.DIST":l("This function returns the negative binomial distribution.",[d("x"),d("r"),d("p"),d("cumulative")]),"NORM.S.DIST":l("This function returns the standard normal distribution.",[d("z"),d("cumulative")]),"T.DIST":l("This function returns the t-distribution.",[d("x"),d("deg"),d("cumulative")]),"F.DIST":l("This function returns the F probability distribution.",[d("x"),d("degnum"),d("degden"),d("cumulative")]),"CHISQ.DIST":l("This function returns the chi-squared distribution.",[d("x"),d("deg"),d("cumulative")]),"F.INV":l("This function returns the inverse of the F probability distribution.",[d("probability"),d("degnum"),d("degden")]),"T.INV":l("This function returns the left-tailed inverse of the t-distribution.",[d("probability"),d("deg")]),"CHISQ.INV":l("This function returns the inverse of left-tailed probability of the chi-squared distribution.",[d("probability"),d("deg")]),"CONFIDENCE.T":l("This function returns the confidence interval for a Student's t distribution.",[d("alpha"),d("stdev"),d("size")]),"NETWORKDAYS.INTL":l("This function returns the number of workdays between two dates using arguments to indicate holidays and weekend days.",[d("startdate"),d("enddate"),d("weekend"),d("holidays")]),"WORKDAY.INTL":l("This function returns the serial number of the date before or after a number of workdays with custom weekend parameters. These parameters indicate weekend days and holidays.",[d("startdate"),d("numdays"),d("weekend"),d("holidays")]),REFRESH:l("This function decides how to re-calculate the formula. Can use the evaluateMode argument to specific the formula re-calculate on the reference value changed, evaluate once , re-calculate or interval.",[d("formula"),d("evaluateMode"),d("interval")])}}},function(U,u,l){U.exports=l(32)},function(U,u,l){function d(b,e){for(;0!==e;){var a=b%e;b=e;e=a}return b}function J(b,e){return e=0>e?fa(e):Math.ceil(e),(b&&0===e%2||!b&&0!==e%2)&&(e+=0>e?-1:1),e}function R(b,e,a){return 0<e&&0>a?ia:0>e&&0<a?(a=-a,b?La(e/a)*a:cb(e/a)*a):b?cb(e/a)*a:La(e/a)*a}function Q(b,e,a){var f=Za.yk(ma(a)),k,g;return e=0>a?e/f:e*f,k=cb(e),g=La(e),b&&(k=[g,g=k][0]),e=0>e?k:g,e=0>a?e*f:e/f,Ga(e)}function K(b,e,a,f){e=e?-1:1;var k=0,g,c,p;if(S(a)!==S(f))return sa;for(p=0;p<S(a);p++)g=a[p],c=f[p],g!==wa&&c!==wa&&(k+=b?(g-c)*(g-c):g*g+e*c*c);return Ga(k)}function O(b,e){return Za.Ak(b,e)}function H(b,e){return Q(!1,b,e)}function I(b,e){return cb(b/ma(e))*ma(e)}function L(b,e){var a,f,k;for(a=0;a<S(e);a++)for(k=e[a],f=0;f<S(k);f++)if(b){if(!k[f])return!1}else if(k[f]&&k[f]!==wa)return!0;return!!b}function F(b){var e=b.getFullYear(),a=b.getMonth(),f=b.getDate();for(b=0;b<a;b++)f+=ua(e,b);return f}function G(b){if(ta(b)){if(7!==S(b)||ka(oa(b)))return ba}else if(!ka(b)){if(1>fa(b)||17<fa(b))return ia;b=""+b}var e="1234567".split(""),a=[0,0,0,0,0,0,0];switch(S(b)){case 1:if(0<=X(b,e)){e=oa(b);a[(e+4)%7]=1;a[(e+5)%7]=1;break}return ia;case 2:if("1"===b[0]&&0<=X(b[1],e)){e=oa(b[1]);a[(e+5)%7]=1;break}return ia;case 7:for(e=0;7>e;e++)a[e]=oa(b[e]);break;default:return ba}return a}function q(b,e,a,f,k){var g;g=n(e,3);if(Aa(g))return g;for(g=va(g);0>a;++a)e.setDate(e.getDate()-1),g=0===g?6:--g,(b&&(5===g||6===g)||!b&&k[g]||0<=f.indexOf(v(e)))&&a--;for(;0<a;--a)e.setDate(e.getDate()+1),g=6===g?0:++g,(b&&(5===g||6===g)||!b&&k[g]||0<=f.indexOf(v(e)))&&a++;return v(e)}function D(e,a,f,k,g,c){var p,h,m;p=va(v(a));h=va(v(f));m=!1;p>h&&(a=[f,f=a][0],p=[h,h=p][0],m=!0);a=c(a,f,h-p+1,k);if(e&&Aa(a))m=a;else if(0>=a)m=0;else{var x;f=k;k=a;var y,d,t;if(e&&(f=void 0!==f?f:"0000011",y=G(f),Aa(y)))x=y;else if(void 0!==g&&(x=ib(g,4,!0,!0,!1)),x)if(x.isError)x=x[0];else{e=S(x);g=[];for(f=0;f<e;f++)c=x[f],d=b.Xb(c),t=d.getDay(),d=S(y)?y[n(d,3)]:6===t||0===t,-1===g.indexOf(c)&&!d&&c>=p&&c<=h&&g.push(c);x=k-S(g)}else x=k;m=(a=x,m?-a:a)}return m}function A(b,e,a){var f,k;return e=Ka.Wh(e),f=new Date(e.getFullYear(),e.getMonth(),1),f.setMonth(f.getMonth()+a),k=ua(f.getFullYear(),f.getMonth()),f.setDate(b?k:T(e.getDate(),k)),f}function r(b){var e;return ta(b)&&(e=N(b)),e?(60*(60*e.getHours()+e.getMinutes())+e.getSeconds())/86400:ba}function n(b,e){var a=b.getDay();switch(e){case 1:return a+1;case 2:return 0===a?7:a;case 3:return 0===a?6:a-1;default:return ia}}function w(b){var e,a,f=""+b,k="",g=[];if(0>b&&(f=f.substr(1),k="-"),e=f.split("."),a=S(e),1>a||2<a)return ba;2===a&&(g.push(e[1]),g.push("."));f=e[0];for(b=S(f)-3;0<=b;b-=3)g.push(f.substr(b,3)),0<b&&g.push(",");return g.push(f.substring(0,b+3)),g.reverse(),k+g.join("")}function z(b,e,a){return a>=S(e)?e:e.substr(b?0:S(e)-a,a)}function C(b,e){return e}var c,m,h,a,B,y,t,E,M,p,g,f,k,x,W,P=l(26),V=l(33),Z=P.q,e=P.u,b=P.l,v=b.Ra,N=b.Qa,S=P.k.ac;u=P.j;var X=u.Ea,Y=u.Fa,ka=isNaN,ja=parseFloat,oa=parseInt,ma=Math.abs,ea=Math.sqrt,ga=Math.max,T=Math.min,fa=Math.floor,Fa=Math.exp,aa=Math.log,xa=Math.PI,Ia=Math.random,la=Math.pow;u=V.Errors;var pa=u.Null,qa=u.DivideByZero,ba=u.Value,ra=u.Reference,ya=u.Name,sa=u.NotAvailable,ia=u.Number,Ka=V.Convert,wa=Ka.CalcConvertedError,Aa=Ka.vf,Va=Ka.Fh,$a=Ka.Ca,Da=Ka.Uh,va=Ka.Rh,Ra=Ka.Pa,jb=Ka.bc,Ta=Ka.Na,ib=Ka.Ph,Ga=Ka.Nh,bb=V.Zh.tryExtractToSingleValue,Na=V.Functions,Ya=Na.ik,ta=Na.jk,fb=Na.kk,ua=Na.nk,Ha=Na.tk,na=Na.rk,gb=Na.sk,Za=Na.Fk,cb=Za.zk,La=Za.wk,da=Na.ak;u={Hi:0};c={Hi:0,aj:"\x3d 0",bj:qa};m={Hi:0,aj:"\x3d 0",bj:0};h={_i:1,Hi:0,aj:"\x3d 0",bj:0};a={Hi:1};B={Hi:1,aj:"\x3c 0"};y={Hi:2};t={_i:1,Hi:2};E={_i:1,Hi:2,aj:"\x3c 0",bj:ba};M={Hi:5};p={Hi:6};g={Hi:2,aj:"\x3c 0",bj:ba};f={_i:[],Hi:4,Ii:4,Ji:!0,Ki:!0,Li:!0};k={Hi:4,Ii:1,Ki:!0,Li:!0};x={Hi:4,Ii:1,Ji:!0,Ki:!0,Xi:!0};W={Hi:4,Ii:3,Ji:!0,Ki:!0,Xi:!0};da("ABS",function(b){return Ga(ma(b))},1,1,u);da("ACOS",function(b){return Ga(Math.acos(b))},1,1,{Hi:0,aj:["\x3e 1","\x3c -1"]});da("ASIN",function(b){return Ga(Math.asin(b))},1,1,{Hi:0,aj:["\x3e 1","\x3c -1"]});da("ATAN",function(b){return Ga(Math.atan(b))},1,1,u);da("ATAN2",function(b,e){return 0===b&&0===e?qa:Ga(Math.atan2(e,b))},2,2,[u,u]);da("COS",function(b){return Ga(Math.cos(b))},1,1,u);da("CEILING",function(b,e){return R(!0,b,e)},2,2,[m,m]);da("ODD",function(b){return J(!0,b)},1,1,a);da("EVEN",function(b){return J(!1,b)},1,1,a);da("FLOOR",function(b,e){return R(!1,b,e)},2,2,[m,m]);da("LN",function(b){return Ga(aa(b))},1,1,{Hi:1,aj:"\x3c\x3d 0"});da("SQRT",function(b){return ea(b)},1,1,{Hi:1,aj:"\x3c 0"});da("SIN",function(b){return Ga(Math.sin(b))},1,1,u);da("TAN",function(b){return Ga(Math.tan(b))},1,1,u);da("SIGN",function(b){return 0===b?0:-1},1,1,{Hi:1,aj:"\x3e 0",bj:1});da("GCD",function(){var b,e,a,f,k=arguments,g=0;for(b=0;b<S(k);b++)for(a=k[b],e=0;e<S(a);e++)if(f=a[e],f!==wa){if(0>f)return ia;g=d(g,va(f))}return g},1,void 0,x,-1,-1);da("LCM",function(){var b,e,a,f,k=arguments,g=1,c=[];for(b=0;b<S(k);b++){a=k[b];for(e=0;e<S(a);e++)if(f=a[e],f!==wa){if(0>f)return ia;if(0===f)return 0;c.push(va(f))}for(e=0;e<S(c);e++)f=c[e],g/=d(g,f),g*=f}return g},1,void 0,x,-1,-1);da("PRODUCT",function(){return na(arguments,!0,6)},1,void 0,void 0,-1,-1);da("POWER",function(b,e){return la(b,e)},2,2,[a,a]);da("MOD",function(b,e){return b-e*fa(b/e)},2,2,[a,{Hi:1,aj:"\x3d 0",bj:qa}]);da("QUOTIENT",function(b,e){return oa(""+b/e)},2,2,[u,c],void 0,void 0);da("SUBTOTAL",function(b){var e,a=arguments,f=[],k=ba;for(e=1;e<S(a);e++)f[e-1]=a[e];return 0<=X(b,[1,101,2,102,3,103,4,104,5,105,6,106,9,109])?k=na(f,!1,b):0<=X(b,[7,107,8,108,10,110,11,111])&&(k=gb(f,!1,b)),k},2,void 0,y,"!\x3d 0","!\x3d 0");da("INT",function(b){return La(b)},1,1,a);da("MROUND",function(b,e){return 0>b&&0<e||0>e&&0<b?ia:La(b/e+.5)*e},2,2,[m,m]);da("ROUND",O,2,2,[u,y]);da("ROUNDDOWN",H,2,2,[u,y]);da("ROUNDUP",function(b,e){return Q(!0,b,e)},2,2,[u,y]);da("TRUNC",H,1,2,[u,{_i:0,Hi:2}],void 0,void 0,{bk:1});da("EXP",function(b){return Ga(Fa(b))},1,1,u);da("LOG",function(b,e){return 1===e?qa:Ga(Za.Ek(b,e))},1,2,[{Hi:0,aj:"\x3c\x3d 0"},{_i:10,Hi:0,aj:"\x3c\x3d 0"}],void 0,void 0,{bk:1});da("LOG10",function(b){return Ga(Za.Ek(b,10))},1,1,{Hi:0,aj:"\x3c\x3d 0"});da("SUM",function(){var b,e,a,f,k=arguments,g=0;for(b=0;b<S(k);b++){if(e=k[b],Aa(e))return e;if(Va(e)||$a(e)){if(a=ib(e,1,!0,!0,!1),a.isError)return a[0]}else a=ib(e,1,!0,!0,!0);for(f=0;f<S(a);f++)a[f]!==wa&&(g+=a[f])}return g},1,void 0,void 0,-1,-1);da("SUMIF",function(b,e,a){var f,k,g,c,p;if(a=void 0!==a?a:b,Y(e))throw P.C(V.SR)().Exp_CriteriaIsNull;if(f=0,e=Za.xk(e),k=$a(b),g=$a(a),c=b.toArray(0,!0,!1),p=a.toArray(1,!0,!1),(k?1:b.getRangeCount())!==(g?1:a.getRangeCount())||(k?b.getRowCount():b.getRowCount(0))>(g?a.getRowCount():a.getRowCount(0))||(k?b.getColumnCount():b.getColumnCount(0))>(g?a.getColumnCount():a.getColumnCount(0)))return ba;if(c.isError)return c[0];if(p.isError)return p[0];for(b=0;b<S(c);b++)e&&e(c[b])&&p[b]!==wa&&(f+=p[b]);return Ga(f)},2,3,void 0,[0,2],[0,2],{bk:2});da("SUMIFS",function(b){var e,a,f,k,g;f=arguments;var c=S(b),p=b.rowCount,h=b.colCount,m=[],v=[],x=0;for(k=1;k<S(f);k+=2){if(a=ib(f[k],0,!0,!1,!1),a.rowCount!==p||a.colCount!==h)return ba;g=Za.xk(f[k+1]);m.push(a);v.push(g)}for(f=0;f<c;f++){a=!0;for(k=0;k<S(m)&&(g=v[k],e=m[k][f],a=g&&g(e),a);k++);a&&(e=b[f],e!==wa&&(x+=e))}return Ga(x)},3,void 0,{Hi:4,Ii:1,Ji:!0,Ki:!0},[0,"%\x3d 1"],[0,"%\x3d 1"]);da("SUMPRODUCT",function(){var b,e,a,f,k,g,c=arguments,p=0,h=[];for(b=0;b<S(c);b++){if(k=ib(c[b],1,!0,!0,!1),k.isError)return k[0];if(k.isConvertError)return ba;if(0===b)e=k.rowCount,a=k.colCount,f=S(k);else if(k.rowCount!==e||k.colCount!==a)return ba;h.push(k)}for(b=0;b<f;b++){e=1;for(a=0;a<S(c);a++){if(g=h[a][b],g===wa){e=0;break}e*=g}p+=e}return Ga(p)},1,void 0,void 0,-1,-1,{fk:1});da("SUMSQ",function(){var b,e,a,f,k=arguments,g=0;for(e=0;e<S(k);e++)for(f=k[e],a=0;a<S(f);a++)b=f[a],b!==wa&&(g+=b*b);return Ga(g)},1,void 0,x,-1,-1);da("SUMX2MY2",function(b,e){return K(!1,!0,b,e)},2,2,x,-1,-1);da("SUMX2PY2",function(b,e){return K(!1,!1,b,e)},2,2,x,-1,-1);da("SUMXMY2",function(b,e){return K(!0,!1,b,e)},2,2,x,-1,-1);da("SERIESSUM",function(b,e,a,f){var k,g,c=0;for(k=0;k<S(f);k++){if(g=Ra(f[k]),ka(g))return ba;c+=g*la(b,e+k*a)}return Ga(c)},4,4,[u,y,y,{Hi:4,Ii:1,Ji:!0,Ki:!0,Li:!0}],3,3);da("PI",function(){return xa},0,0);da("SQRTPI",function(b){return Ga(ea(b*xa))},1,1,{Hi:0,aj:"\x3c 0"});da("DEGREES",function(b){return 180*b/xa},1,1,a);da("RADIANS",function(b){return xa*b/180},1,1,u);da("COSH",function(b){return Ga(Za.Dk(b,!1))},1,1,u);da("ACOSH",function(b){return Ga(aa(b+ea(b*b-1)))},1,1,{Hi:0,aj:"\x3c 0"});da("SINH",function(b){return Ga(Za.Dk(b,!0))},1,1,u);da("ASINH",function(b){return Ga(aa(b+ea(b*b+1)))},1,1,u);da("TANH",function(b){var e=Fa(b);b=Fa(-b);return Ga(e-b)/(e+b)},1,1,u);da("ATANH",function(b){return Ga(aa((1+b)/(1-b))/2)},1,1,{Hi:0,aj:["\x3c\x3d -1","\x3e\x3d 1"]});da("MDETERM",function(b){var e=b.rowCount,a=1,f,k,g,c;if(1<b.rangeCount||e!==b.colCount)return ba;for(f=0;f<e-1;f++){if(0===b[f][f]){g=!1;for(k=f+1;!g&&k<e;k++)if(0!==b[k][f]){for(g=f;g<e;g++)c=b[f][g],b[f][g]=b[k][g],b[k][g]=c;a*=-1;g=!0}if(!g)return 0}for(k=f+1;k<e;k++)if(0!==b[k][f])for(c=b[k][f]/b[f][f],g=f;g<e;g++)b[k][g]-=c*b[f][g]}for(f=0;f<e;f++)a*=b[f][f];return a},1,1,k,-1,-1);da("MINVERSE",function(b){var e=b.rowCount,a=[],f,k,g,c;if(1<b.rangeCount||e!==b.colCount)return ba;for(f=0;f<e;f++)for(a[f]=[e],k=0;k<e;k++)a[f][k]=f===k?1:0;for(f=0;f<e;f++){if(0===b[f][f]){g=!1;for(k=f+1;!g&&k<e;k++)if(0!==b[k][f]){for(g=f;g<e;g++)c=b[f][g],b[f][g]=b[k][g],b[k][g]=c;for(g=1;g<e;g++)c=a[f][g],a[f][g]=a[k][g],a[k][g]=c;g=!0}if(!g)return ia}for(k=0;k<e;k++)if(k!==f&&0!==b[k][f]){g=b[k][f]/b[f][f];for(c=f;c<e;c++)b[k][c]-=g*b[f][c];for(c=0;c<e;c++)a[k][c]-=g*a[f][c]}}for(f=0;f<e;f++)for(g=b[f][f],k=0;k<e;k++)a[f][k]/=g;return new V.CalcArray(a)},1,1,k,-1,-1);da("MMULT",function(b,e){var a,f,k,g,c,p,h=b.rowCount,m=e.rowCount,v=e.colCount,x=[];if(b.colCount!==m)return ba;for(k=0;k<h;k++)for(x[k]=a=[],f=b[k],g=0;g<v;g++){for(c=p=0;c<m;c++)p+=f[c]*e[c][g];a[g]=p}return new V.CalcArray(x)},2,2,[k,k],-1,-1);da("FACT",function(b){return Ha(b)},1,1,{Hi:3,aj:["\x3c 0","\x3e 170"]});da("FACTDOUBLE",function(b){for(var e=1;1<b;b-=2)e*=b;return e},1,1,{Hi:3,aj:["\x3c 0","\x3e 300"]});da("MULTINOMIAL",function(){var b,e,a,f,k=arguments,g=0,c=1;for(e=0;e<S(k);e++)for(b=k[e],a=0;a<S(b);a++){if(f=va(b[a]),0>f||170<f)return ia;g+=f;c*=Ha(f)}return 0>g||170<g?ia:Ha(g)/c},1,void 0,{Hi:4,Ii:0,Ji:!0,Ki:!0,Xi:!0},-1,-1);da("RAND",function(){return ma(2*Ia()-1)},0,0,void 0,void 0,void 0,{ck:!0});da("RANDBETWEEN",function(b,e){return e<b?ia:va(b+Ia()*(e-b+1))},2,2,[y,y],void 0,void 0,{ck:!0});da("COMBIN",function(b,e){var a=1,f;if(b<e)return ia;e=T(b-e,e);for(f=1;f<=e;f++)a*=b-f+1,a/=f;return Ga(a)},2,2,[B,B]);da("ROMAN",function(b,e){var a,f,k,g,c,p="MDCLXVI".split(""),h=[1E3,500,100,50,10,5,1],m=[];a=Ya(e)?e?0:4:e;for(f=0;7>f;f+=2){if(2<=f&&h[f-2]-h[f]<=b){k=f;g=f-2;for(c=0;c<a&&7>k+1&&h[g]-h[k+1]<=b;c++)k++;m.push(p[k]);m.push(p[g]);b+=h[k];b-=h[g]}if(1<=f&&h[f-1]<=b&&(m.push(p[f-1]),b-=h[f-1]),1<=f&&h[f-1]-h[f]<=b){k=f;g=f-1;for(c=0;c<a&&7>k+1&&h[g]-h[k+1]<=b;c++)k++;m.push(p[k]);m.push(p[g]);b+=h[k];b-=h[g]}for(;h[f]<=b;)m.push(p[f]),b-=h[f]}return m.join("")},1,2,[{Hi:2,aj:["\x3c 0","\x3e 3999"],bj:ba},{_i:0,Hi:2,aj:["\x3c 0","\x3e 4"],bj:ba}],void 0,void 0,{bk:1});da("CEILING.PRECISE",I,1,2,[m,h]);da("ISO.CEILING",I,1,2,[m,h]);da("FLOOR.PRECISE",function(b,e){return La(b/ma(e))*ma(e)},1,2,[m,h]);da("AND",function(){return L(!0,arguments)},1,void 0,W,-1,-1);da("OR",function(){return L(!1,arguments)},1,void 0,W,-1,-1);da("NOT",function(b){var e={};return Ka.Uh(b,e),!e.value},1,1);da("IF",function(b,e,a){var f,k,g=e,c=bb(b);return f=void 0!==a?a:2!==S(arguments)&&0,k={},Da(c.value,k),k.value?g:f},2,3,void 0,[1,2],[1,2],{gk:[1,2],bk:2,isBranch:!0,findTestArgument:0,findBranchArgument:function(b){if(Ka.vf(b))return-1;var e={value:!1};return Da(b,e),e.value?1:2}});da("IFERROR",function(b,e){if(!Aa(b)&&Va(b)){if(1<b.getRangeCount())return ba;b=b.getValue(0,0,0)}var a=b;return Aa(a)?Y(e)?0:e:Y(a)?0:a},2,2,void 0,0,void 0,{gk:-1});da("TRUE",function(){return!0},0,0);da("FALSE",function(){return!1},0,0);da("DATE",function(b,e,a){1899>=b&&(b+=1900);b=new Date(b,e-1,a);return b<new Date(1899,11,30)?ia:b},3,3,[{Hi:2,aj:["\x3c 0","\x3e 9999"]},y,y]);da("TIME",function(e,a,f){var k=b.Xb(0);return k.setHours(e),k.setMinutes(a),k.setSeconds(f),k.setMilliseconds(0),0>k.getHours()&&0>k.getMinutes()&&0>k.getSeconds()?ia:k},3,3,[y,y,y]);da("DATEVALUE",function(b){var e,a,f;if((ta(b)&&(e=N(b),e||(e=new Date(b),e&&!ka(e.valueOf())||(e=null))),!e)||(a=e.getFullYear(),f=F(e),1900>a))return ba;for(b=1900;b<a;b++)f+=365,fb(b)&&f++;return f},1,1,{Ni:!0});da("TIMEVALUE",r,1,1,{Ni:!0});da("NOW",function(){return new Date},0,0,void 0,void 0,void 0,{ck:!0});da("TODAY",function(){var b=new Date;return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b},0,0,void 0,void 0,void 0,{ck:!0});da("HOUR",function(b){return b.getHours()},1,1,p);da("MINUTE",function(b){return b.getMinutes()},1,1,p);da("SECOND",function(b){return b.getSeconds()},1,1,p);da("DAY",function(b){return b.getDate()},1,1,p);da("MONTH",function(b){return b.getMonth()+1},1,1,p);da("YEAR",function(b){return b.getFullYear()},1,1,p);da("WEEKNUM",function(b,e){var a,f,k;return 1===e||2===e?(a=F(b),f=(new Date(b.getFullYear(),0,1)).getDay(),2===e&&(--f,0>f&&(f=6)),k=a-1-(6-f),0>k&&(k=0),1+va(k/7)+(0!==k%7?1:0)):ia},1,2,[p,t],void 0,void 0,{bk:1});da("WEEKDAY",n,1,2,[p,t],void 0,void 0,{bk:1});da("EDATE",function(b,e){return A(!1,b,e)},2,2,[p,y]);da("EOMONTH",function(b,e){return A(!0,b,e)},2,2,[p,y]);da("WORKDAY",function(b,e,a){return q(!0,b,e,a)},2,3,[p,y,f],2,2,{bk:2});da("WORKDAY.INTL",function(b,e,a,f){a=G(a);return Aa(a)?a:"1111111"===a.join("")?ba:q(!1,b,e,f,a)},2,4,[p,y,{_i:"0000011"},f],[2,3],[2,3],{bk:[2,3]});da("DAYS360",Na.uk,2,3,[p,p,{_i:!1,Hi:7}],{bk:2});da("NETWORKDAYS",function(b,e,a){return D(!1,b,e,void 0,a,function(b,e,a){e=va(v(e)-v(b))%7;var f=va(n(b,2)+e);b=0===b.getDay()?1:2;return e=5<f?f-5:0,e=e>b?b:e,a-=e,a-2*fa(a/7)})},2,3,[p,p],2,2,{bk:2});da("NETWORKDAYS.INTL",function(b,e,a,f){return D(!0,b,e,a,f,function(b,e,a,f){var k,g,c,p,h,m;if(f=void 0!==f?f:"0000011",k=G(f),g=0,c=0,Aa(k))return k;for(f=0;f<S(k);f++)1===k[f]&&g++;if(30>a){for(f=0;f<a;f++)k[(va(n(b,3))+f)%7]&&c++;return a-c}p=a;for(f=m=h=0;f<p&&0!==va(n(b,3)+f)%7;f++)h++;for(f=0;f<h;f++)k[(va(n(b,3))+f)%7]&&c++;for(f=0;f<p&&6!==(va(n(e,3))+7-f)%7;f++)m++;for(f=0;f<m;f++)k[(va(n(e,3))+7-f)%7]&&c++;return p=p-h-m,a-=va(p/7)*g,a-c})},2,4,[p,p],[2,3],[2,3],{bk:[2,3]});da("YEARFRAC",Na.vk,2,3,[p,p,{_i:0,Hi:2}],{bk:2});da("DATEDIF",function(b,e,a){var f,k;if(a=a.toLocaleUpperCase(),f=function(){var b=[];return b[0]=function(b,e){return e.getFullYear()-b.getFullYear()+(e.getMonth()<b.getMonth()||e.getMonth()===b.getMonth()&&e.getDate()<b.getDate()?-1:0)},b[1]=function(b,e){return 12*(e.getFullYear()-b.getFullYear())+(e.getMonth()-b.getMonth())+(e.getDate()<b.getDate()?-1:0)},b[2]=function(b,e){return(e.getTime()-b.getTime())/864E5},b[3]=function(b,e){var a=new Date(e.getFullYear(),e.getMonth()+(e.getDate()<b.getDate()?-1:0),b.getDate());return(e.getTime()-a.getTime())/864E5},b[4]=function(b,e){return e.getMonth()-b.getMonth()+(e.getMonth()<b.getMonth()||e.getMonth()===b.getMonth()&&e.getDate()<b.getDate()?12:0)+(e.getDate()<b.getDate()?-1:0)},b[5]=function(b,e){var a=new Date(e.getFullYear()+(e.getMonth()<b.getMonth()||e.getMonth()===b.getMonth()&&e.getDate()<b.getDate()?-1:0),b.getMonth(),b.getDate());return(e-a)/864E5},b}(),k=X(a,"Y M D MD YM YD".split(" ")),e<b)return ia;if(0>k)throw P.C(V.SR)().Exp_NotSupported;return(0,f[k])(b,e)},3,3,[p,p,M]);da("CLEAN",function(b){var e=[],a,f;for(a=0;a<S(b);a++)f=b.charCodeAt(a),0<=f&&31>=f||127===f||128<=f&&159>=f||e.push(b[a]);return e.join("")},1,1,M);da("TRIM",function(b){var e,a,f,k,g;b=b.trim();e=[];a=!0;for(f=0;f<S(b);f++)k=b.charAt(f),(g=" "===k||"\t"===k||"\n"===k)&&!a||e.push(k),a=!g;return e.join("")},1,1,M);da("DOLLAR",function(b,e){var a=b=Ra(O(b,e)),f=w(a),k=[];return 0>a&&(f=f.substr(1)),k.push("$"),k.push(f),0>a&&(k.push(")"),k.unshift("(")),k.join("")},1,2,[u,{_i:2,Hi:2,aj:"\x3e 99",bj:ba}],void 0,void 0,{bk:1});da("FIXED",function(b,e,a){var f=0;return 0>e&&(f=va(la(10,ma(e))),b/=f),b=Ra(O(b,ga(0,e))),0>e&&(b*=f),a?""+b:w(b)},1,3,[u,{_i:2,Hi:2},{_i:!1,Hi:7}],void 0,void 0,{bk:[1,2]});da("TEXT",function(b,a){var f,k,g;if(""===a)return jb(b);Y(b)&&(b=0);var c=a,p,h;if(!e.kb(c,"[$-")&&(p=c.indexOf("["),-1!==p&&-1!==c.indexOf("]")))for(h=c.indexOf("]",p);-1!==p&&-1!==h;)p=c.substring(0,p),c=c.substring(h+1),c=p.concat(c),p=c.indexOf("["),h=-1===p?-1:c.indexOf("]",p);a=c;try{return f=l(34),k=f&&f.GeneralFormatter,k?(g=new k(a),g.format(b)):""+b}catch(Gb){return ba}},2,2,[{},M]);da("VALUE",function(b){if(!b)return 0;var e=N(b),a;return Y(e)?(e=ja(b),ka(e)?ba:e):(a=v(e),Aa(a)?r(e):a)},1,1,M);da("LOWER",function(b){return b.toLowerCase()},1,1,M);da("UPPER",function(b){return b.toUpperCase()},1,1,M);da("PROPER",function(b){var e,a,f,k=S(b),g=[];if(0<k)for(e=b.toUpperCase(),a=b.toLowerCase(),f=1,g[0]=e[0];f<k;)g[f]=V.ei(b[f-1])?a[f]:e[f],f++;return g.join("")},1,1,M);da("CHAR",function(b){return String.fromCharCode(b)},1,1,{Hi:2,aj:["\x3e 255","\x3c 1"],bj:ba});da("CODE",function(b){return b[0].charCodeAt(0)},1,1,{Hi:5,Ni:!0});da("REPLACE",function(b,e,a,f){var k,g,c=S(b);return e=T(e,c+1),a=T(a||0,c-e+1),k=b.substring(0,e-1),g=b.substr(e-1+a),k.concat(f).concat(g)},4,4,[M,{Hi:2,aj:"\x3c 1",bj:ba},g,M],void 0,void 0,{bk:2});da("SUBSTITUTE",function(b,a,f,k){var g,c,p,h=S(a);if(3<S(arguments)){if(c=va(k),g=0,1>c)return ba;for(p=0;p<c;p++){if(g=b.indexOf(a,g),-1===g)return b;g+=h}c=b.substring(0,g-h);g=b.substr(g);g=c.concat(f).concat(g)}else g=e.yb(b,a,f);return g},3,4,[M,{Hi:5,Ni:!0},M],void 0,void 0,{bk:3});da("CONCATENATE",function(){var b,e,a,f,k=arguments,g=[],c=S(k);for(b=0;b<c;b++)for(a=k[b],f=S(a),e=0;e<f;e++)Y(a[e])||g.push(jb(a[e]));return g.join("")},2,void 0,{Hi:4,Ii:0,Ji:!0,Xi:!0},void 0,-1);da("LEFT",function(b,e){return z(!0,b,e)},1,2,[M,E],void 0,void 0,{bk:1});da("MID",function(b,e,a){e--;var f=S(b);return e>=f?"":f<e+a?b.substr(e):b.substr(e,a)},3,3,[M,g,g]);da("RIGHT",function(b,e){return z(!1,b,e)},1,2,[M,E],void 0,void 0,{bk:1});da("REPT",function(b,e){var a=[],f;if(0>e||32767<e*S(b))return ba;for(f=0;f<e;f++)a.push(b);return a.join("")},2,2,[M,y]);da("LEN",function(b){return b?b.length:0},1,1,M);da("FIND",function(b,e,a){if(1>a||S(e)<a)return ba;b=e.indexOf(b,a-1);return-1===b?ba:b+1},2,3,[M,M,t],void 0,void 0,{bk:2});da("SEARCH",function(b,e,a){var f=-1,k,g;return k=Z.ub(b),k?(g=Z.sb(k).exec(e),f=Y(g)?-1:g.index):f=e.toLowerCase().indexOf(b.toLowerCase(),--a),-1===f?ba:f+1},2,3,[M,M,E],void 0,void 0,{bk:2});da("EXACT",function(b,e){return b===e},2,2,[M,M]);da("T",function(b){return ta(b)?b:""},1,1);da("ISERROR",function(b){return Aa(b)},1,1,void 0,void 0,void 0,{gk:-1});da("ISERR",function(b){return!!Aa(b)&&b._code!==sa._code},1,1,void 0,void 0,void 0,{gk:-1});da("ISNA",function(b){return!!Aa(b)&&b._code===sa._code},1,1,void 0,void 0,void 0,{gk:-1});da("ERROR.TYPE",function(b){return!Y(b)&&Aa(b)&&(b=X(b._code,[pa._code,qa._code,ba._code,ra._code,ya._code,ia._code,sa._code]),0<=b)?b+1:sa},1,1,void 0,void 0,void 0,{gk:-1});da("ISNUMBER",function(b){return Ta(b)},1,1,void 0,void 0,void 0,{gk:-1});da("ISEVEN",function(b){return 0===La(ma(b))%2},1,1,u,void 0,void 0);da("ISODD",function(b){return 0!==La(ma(b))%2},1,1,u,void 0,void 0);da("N",function(b){return Ta(b)?Ra(b):Ya(b)?b?1:0:Aa(b)?b:0},1,1,void 0,void 0,void 0);da("ISBLANK",function(b){return Y(b)},1,1,void 0,void 0,void 0,{gk:-1});da("ISLOGICAL",function(b){return Ya(b)},1,1,void 0,void 0,void 0,{gk:-1});da("ISTEXT",function(b){return ta(b)},1,1,void 0,void 0,void 0,{gk:-1});da("ISNONTEXT",function(b){return!ta(b)},1,1,void 0,void 0,void 0,{gk:-1});da("ISREF",function(b){return Va(b)},1,1,void 0,-1,void 0,{gk:-1});da("TYPE",function(b){return Ya(b)?4:Ta(b)?1:ta(b)?2:Aa(b)?16:$a(b)?64:ba},1,1,void 0,void 0,-1,{gk:-1});da("NA",function(){return sa},0,0);(function(){var b=new V.Functions.AsyncFunction("REFRESH",1,3,void 0);b.evaluate=C;V.Functions.bi.REFRESH=b})();U.exports=Na},function(U,u){U.exports=GC.Spread.CalcEngine},function(U,u){U.exports=GC.Spread.Formatter},function(U,u,l){u=l(33).Functions;l(36);l(37);l(38);l(39);l(40);U.exports=u},function(U,u,l){function d(c,m){this.Gk=c;this.Hk=m}function J(c,m,h){if(this.cj=0,this.Jk=c,this.Kk=h,3===arguments.length){if(this.Lk=this.Mk(c,m),2>c.rowCount||1>c.colCount||2>h.rowCount||1>h.colCount||0>this.Lk||this.Jk.colCount<=this.Lk)throw C;}else{if(2!==arguments.length)throw K.C(O.SR)().Exp_InvalidNull;if(this.Lk=-1,2>c.rowCount||1>c.colCount||2>h.rowCount||1>h.colCount)throw C;}}function R(c,m,h,a){var d=0;for(m=new J(c,m,h);m.Pk();)c=m.Ok(),(c=a?F(c):c)&&d++;return q(d)}function Q(c,m,h,a,d,y,t){var n,B,p,g,f=t?1:0,k=0,x=0;for(c=new J(c,m,h);c.Pk();)if(n=c.Ok(),F(n)){if(B=L(n),z(B))return r;f=t?f*B:f+B;k+=B*B;x++}else if(G(n))return n;return y||t?q(f):(p=Math.max(0,(x*k-f*f)/(x*(x-d))),g=a?Math.sqrt(p):p,1>=x?A:q(g))}var K=l(26),O=l(33),H=K.q,I=O.Convert,L=I.Pa,F=I.Na,G=I.vf,q=I.Nh,D=O.Errors,A=D.DivideByZero,r=D.Value,n=O.Functions;u=n.ak;var w=n.jk,z=isNaN,C=K.C(O.SR)().Exp_InvalidCast;d.prototype.Ik=function(c){c=O.evaluateOperator({"\x3d":9,"\x3c\x3e":10,"\x3c":11,"\x3c\x3d":12,"\x3e":13,"\x3e\x3d":14}[this.Gk],c,this.Hk);return!!n.ik(c)&&I.Vh(c)};J.prototype={Mk:function(c,m){var h,a;if(w(m)){for(h=0;h<c.colCount;h++)if(a=I.bc(c[0][h]),a&&this.Nk(a,m))return h;return-1}return I.Rh(m)-1},Ok:function(){if(0>=this.cj||this.Jk.rowCount<=this.cj)throw K.C(O.SR)().Exp_InvalidOperation;return this.Jk[this.cj][this.Lk]},Pk:function(){for(var c=!1,m=this.Jk.rowCount;!c&&this.cj<m;)this.cj++,this.cj<m&&(c=this.Qk());return c},Rk:function(c){var m,h,a,n;if(w(c)){m="\x3d \x3c\x3e \x3c\x3d \x3e\x3d \x3c \x3e".split(" ");h=I.bc(c);for(a=0;a<m.length;a++)if(K.u.kb(h,m[a]))return h=h.substring(m[a].length),n=K.o.lb(h),c=z(n)?!!this.Nk("true",h)||!this.Nk("false",h)&&h:n,new d(m[a],c);return new d("\x3d",c)}return c?new d("\x3d",c):null},Qk:function(){var c,m,h,a,d,y;d=!1;var t=this.Kk;for(c=1;!d&&c<t.rowCount;c++)for(d=!0,m=0;d&&m<t.colCount;m++)if(h=this.Rk(t[c][m])){if(a=this.Mk(this.Jk,t[0][m]),0>a)return!1;d=this.Jk[this.cj][a];y=H.zb(h.Hk,!0);d="\x3d"===h.Gk&&w(h.Hk)&&w(d)&&y?H.sb(y).test(d):h.Ik(d)}return d},Nk:function(c,m){return c.toLowerCase()===m.toLowerCase()}};l={Yi:!0,Hi:4,Ii:0};l=[l,{Yi:!0},l];u("DAVERAGE",function(c,m,h){var a,d,y=0,t=0;for(c=new J(c,m,h);c.Pk();){if(a=c.Ok(),G(a))return a;if(F(a)){if(d={value:0},!I.Th(a,d))return r;y+=d.value;t++}}return 0===t?A:q(y/t)},3,3,l,"!\x3d 1","!\x3d 1");u("DCOUNT",function(c,m,h){return R(c,m,h,!0)},3,3,l,"!\x3d 1","!\x3d 1");u("DCOUNTA",function(c,m,h){return R(c,m,h,!1)},3,3,l,"!\x3d 1","!\x3d 1");u("DGET",function(c,m,h){var a=null;c=new J(c,m,h);return c.Pk()?(a=c.Ok(),c.Pk()?D.Number:a):r},3,3,l,"!\x3d 1","!\x3d 1");u("DMAX",function(c,m,h){var a,d,y=!1,t=-n.hk;for(c=new J(c,m,h);c.Pk();){if(a=c.Ok(),G(a))return a;if(F(a)){if(d=L(a),z(d))return r;(!y||d>t)&&(t=d);y=!0}}return y?q(t):0},3,3,l,"!\x3d 1","!\x3d 1");u("DMIN",function(c,m,h){var a,d,y=!1,t=n.hk;for(c=new J(c,m,h);c.Pk();){if(a=c.Ok(),G(a))return a;if(F(a)){if(d=L(a),z(d))return r;(!y||a<t)&&(t=a);y=!0}}return y?q(t):0},3,3,l,"!\x3d 1","!\x3d 1");u("DPRODUCT",function(c,m,h){return Q(c,m,h,!1,0,!1,!0)},3,3,l,"!\x3d 1","!\x3d 1");u("DSTDEV",function(c,m,h){return Q(c,m,h,!0,1)},3,3,l,"!\x3d 1","!\x3d 1");u("DSTDEVP",function(c,m,h){return Q(c,m,h,!0,0)},3,3,l,"!\x3d 1","!\x3d 1");u("DSUM",function(c,m,h){return Q(c,m,h,!1,0,!0)},3,3,l,"!\x3d 1","!\x3d 1");u("DVAR",function(c,m,h){return Q(c,m,h,!1,1)},3,3,l,"!\x3d 1","!\x3d 1");u("DVARP",function(c,m,h){return Q(c,m,h,!1,0)},3,3,l,"!\x3d 1","!\x3d 1");U.exports=n},function(U,u,l){function d(b,e){return{Ld:b,Sk:e}}function J(b,e){var a=[],f;for(f=0;f<x(b);f++)a.push(new d(b[f],e[f]));return a.push(new d(null,0)),a}function R(e,a,f){var k,g,c,p,h,m=100,v=.5*e,x=v*v,v=b(v,X(a));e=ma.tk(a);k=1;g=0;a=X(a);c=v/e;p=.9*c;for(h=!1;c!==p&&0!==m;)v*=x,e*=++g,k*=++a,p=c,c=f||h?c+v/e/k:c-v/e/k,m--,h=!h;return c}function Q(e,a){var f=b(a,10),k=parseInt(e,a);return Y(k)?oa:f/2<=k?k-f:k}function K(e,a,f){0>e&&(e+=b(a,10));e=e.toString(a);f-=x(e);for(a=0;a<f;a++)e="0"+e;return e.toUpperCase()}function O(b,e){var a=Q(b,e);return x(a)<x(b)?oa:a}function H(b,e,a){b=K(b,a,e.Qb);return 0<=b&&e.Qb<x(b)&&e.$i?oa:b}function I(b,e,a,f,k){var g;a=Q(b,a);return x(a)<x(b)?oa:k&&(a<-k||k-1<a)?oa:(g=K(a,f,e.Qb),0<=a&&e.Qb<x(g)&&e.$i?oa:g)}function L(b,e){var a=Number.POSITIVE_INFINITY,f=b.Pi(),k=b.Qi();return Y(f)||f===a||Y(k)||k===a?oa:b.bc(e)}function F(b,e){function a(b,e,a,f){var k=b,g=e,c=a.Pi();a=a.Qi();return b=f?k*c-g*a:k+c,e=f?k*a+g*c:g+a,{Ri:b,Si:e}}var f,k,g,c,p,h,m,v;f=e?1:0;for(c=k=0;c<x(b);c++)if(ga.Ca(b[c]))for(m=b[c],p=0;p<m.rowCount;p++)for(h=0;h<m.columnCount;h++){if(g=xa(m.getValue(p,h)),!g)return oa;k=a(f,k,g,e);f=k.Ri;k=k.Si}else if(ga.Fh(b[c]))for(v=b[c],m=0;m<v.getRangeCount();m++)for(p=0;p<v.getRowCount(m);p++)for(h=0;h<v.getColumnCount(m);h++){if(g=xa(v.getValue(m,p,h)),!g)return oa;k=a(f,k,g,e);f=k.Ri;k=k.Si}else{if(g=xa(b[c]),!g)return oa;k=a(f,k,g,e);f=k.Ri;k=k.Si}return L(new aa(f,k))}function G(b,e){var a,f=ea(b*Z(2)),k=2*X(f)-1;return e.$i&&(f=ea(e.Qb*Z(2)),a=2*X(f)-1,k=a-k),k}function q(b){return 1-G(b,{$i:!1})}var D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f;u=l(26);var k=l(33),x=u.k.ac,W=Math.abs,P=Math.sin,V=Math.cos,Z=Math.sqrt,e=Math.log,b=Math.pow,v=Math.exp,N=Math.E,S=Math.atan2,X=parseFloat,Y=isNaN,ka=k.Errors,ja=ka.NotAvailable,oa=ka.Number,ma=k.Functions;l=ma.ak;var ea=ma.qk,ga=k.Convert,T=ga.Nh,fa=ma.Fk,Fa=fa.Dk,aa=ma.Ui,xa=ma.Wi;D=J(["g","sg","lbm","u","ozm"],[1,6.852205001E-5,.002204622915,6.02217E23,.035273972]);u=1E4/254;A=u/12;r=A/3;n=J("m mi Nmi in ft yd ang Pica km".split(" "),[1,r/1760,1/1852,u,A,r,1E10,2834.645669,.001]);w=J(["yr","day","hr","mn","sec"],[1,365.25,8766,525960,31557600]);z=J(["Pa","atm","mmHg","p","at"],[1,9.869233E-6,.00750061708,1,.00750061708]);C=J(["N","dyn","lbf","dy"],[1,1E5,.224808924,1E5]);c=J(["HP","W","h","w"],[1,745.701,1,745.701]);u=1/2684523.6;A=1/3600;m=J("J e c cal eV HPh Wh flb BTU ev hh wh btu".split(" "),[1,9999995.193,.239006249,.238846191,62146E14,u,A,23.73042222,9.47815E-4,62146E14,u,A,9.47815E-4]);h=J(["T","gs"],[1,1E4]);a=J("tsp tbs oz cup pt qt gal l uk_pt us_pt lt".split(" "),[1,1/3,1/6,1/48,1/96,1/192,1/768,.0049289216,.008675585,1/96,.0049289216]);B=J("YZEPTGMkhedcmunpfazy".split(""),[1E24,1E21,1E18,1E15,1E12,1E9,1E6,1E3,100,10,.1,.01,.001,1E-6,1E-9,1E-12,1E-15,1E-18,1E-21,1E-24]);u={Hi:0};A={Hi:5};r={Hi:5,aj:["checkLength 10"]};y={Zi:!0,Hi:2,_i:1,aj:["\x3c 1","\x3e 10"]};t={Hi:2,aj:"\x3c 0"};E={Hi:8};M={Hi:8,Oi:!0};p=[u,t];t=[{Hi:0,aj:"\x3c\x3d 0"},t];g=[u,{Hi:0,_i:0}];f=[r,y];l("BESSELI",function(b,e){return T(R(b,e,!0))},2,2,p);l("BESSELJ",function(b,e){return T(R(b,e,!1))},2,2,p);l("BESSELK",function(b,a){var f,k,g,c,p,h,m,v,x,d,y;if(31<a)return 1.7976931348623157E308;if(f=0,k=.25*b*b,g=1,c=0,p=1,h=2/b,0<a){c=-.5772156649015329;for(f=1;f<a;f++)c+=1/f,g*=f+1;if(p=h,1===a)f=1/b;else{x=g/a;y=d=1;m=x;for(f=1;f<a;f++){if(x/=a-f,d*=f,y*=-k,v=x*y/d,m+=v,1.7976931348623157E308-W(v)<W(m)||1<h&&1.7976931348623157E308/h<p)return 1.7976931348623157E308;p*=h}if(m*=.5,v=W(m),1<p&&1.7976931348623157E308/p<v||1<v&&1.7976931348623157E308/v<p)return 1.7976931348623157E308;f=m*p}}h=2*e(b/2);x=-.5772156649015329;0===a?(c=x,v=1):(c+=1/a,v=1/g);m=(x+c-h)*v;g=1;do v*=k/(g*(g+a)),x+=1/g,c+=1/(g+a),m+=(x+c-h)*v,g++;while(1.1102230246251565E-16<W(v/m));return m=.5*m/p,a&1&&(m=-m),f+=m,T(f)},2,2,t);l("BESSELY",function(b,a){function f(b,e,a,f){var k=0,g=X(e[k++]);f&&(g+=b,a--);do g=g*b+X(e[k++]);while(0!==--a);return g}function k(b,e){var a,k,g,t,n=e?c:p,B=e?h:m,T=e?v:x,q=e?d:y,z=e?N:w,C=e?r:E,S=e?5.783185962946784:14.681970642123893,aa=e?30.471262343662087:49.2184563216946,l=b;return 5>=b?(a=b*b,e&&1E-5>b?1-a/4:(l=f(a,z,3)/f(a,C,8,!0),k=(a-S)*(a-aa),k*=l,e?k:k*b)):(l=5/b,a=e?25/(b*b):l*l,k=f(a,n,6)/f(a,B,6),g=f(a,T,7)/f(a,q,7,!0),t=b-(e?.7853981633974483:2.356194490192345),k=k*V(t)-l*g*P(t),.7978845608028654*k/Z(b))}function g(b,a){var g,T,N,w,r,E=a?c:p,z=a?h:m,C=a?v:x,S=a?d:y,l=a?t:n,aa=a?B:q,fa=a?7:8;return 5>=b?(T=b*b,g=(a?1:b)*f(T,l,a?7:5)/f(T,aa,fa,!0),g+.6366197723675814*(a?e(b)*k(b,!0):k(b,!1)*e(b)-1/b)):(g=5/b,T=a?25/(b*b):g*g,N=f(T,E,6)/f(T,z,6),w=f(T,C,7)/f(T,S,7,!0),r=b-(a?.7853981633974483:2.356194490192345),N=N*P(r)+g*w*V(r),.7978845608028654*N/Z(b))}var c=[7.969367292973471E-4,.08283523921074408,1.239533716464143,5.447250030587687,8.74716500199817,5.303240382353949,1],p=[7.621256162081731E-4,.07313970569409176,1.1271960812968493,5.112079511468076,8.424045901417724,5.214515986823615,1],h=[9.244088105588637E-4,.08562884743544745,1.2535274390105895,5.470977403304171,8.761908832370695,5.306052882353947,1],m=[5.713231280725487E-4,.06884559087544954,1.105142326340617,5.073863861286015,8.399855543276042,5.209828486823619,1],v=[-.011366383889846916,-1.2825271867050931,-19.553954425773597,-93.20601521237683,-177.68116798048806,-147.07750515495118,-51.41053267665993,-6.050143506007285],x=[.05108625947501766,4.982138729512334,75.82382841325453,366.7796093601508,710.8563049989261,597.4896124006136,211.68875710057213,25.207020585802372],d=[64.3178256118178,856.4300259769806,3882.4018360540163,7240.467741956525,5930.727011873169,2062.0933166032783,242.0057402402914],y=[74.23732770356752,1056.4488603826283,4986.410583376536,9562.318924047562,7997.041604473507,2826.1927851763908,336.0936078106983],t=[15592.436785523574,-1.466392959039716E7,5.435264770518765E9,-9.821360657179115E11,8.75906394395367E13,-0xc5090e8ec6601,0x9d4a5b305a0018,-0x41b52d6418d9ec],n=[1.2632047479017804E9,-6.473558763791603E11,1.1450951154182373E14,-8127702555013251,0x2cf35a16e6cd620,-0xacf20aeef158b80],B=[1041.2835366425984,626107.330137135,2.6891963339381415E8,8.64002487103935E10,2.0297961275010555E13,3.1715775284297505E15,0x37a4bf79f36ba00],q=[594.3015923461282,235564.09294306856,7.348119444597217E7,1.8760131610870617E10,3.8823127749623857E12,6.205577271469538E14,0xf41f1e2a3d2440,0x3721e321ece8fe00],N=[-4.794432209782018E9,1.9561749194655657E12,-2.4924834436096772E14,9708622510473064],w=[-8.999712257055594E8,4.5222829799819403E11,-7.274942452218183E13,0xd15a1534be241],r=[499.563147152651,173785.4016763747,4.844096583399621E7,1.1185553704535683E10,2.112775201154892E12,3.1051822985742256E14,0x710505f9ecba70,0x17be34c7b662cc00],E=[620.8364781180543,256987.25675774884,8.351467914319493E7,2.215115954797925E10,4.749141220799914E12,7.843696078762359E14,89522233618462736,0x49de55d9c0a4e400];return T(function(b,e){var a=g(b,!0),f=g(b,!1),k=1,c=2*k,p;if(0===e)return a;if(1===e)return f;do p=c*f/b-a,a=f,f=p,c+=2,++k;while(k<e);return p}(b,a))},2,2,t);l("BIN2DEC",function(b){return O(b,2)},1,1,r);l("BIN2HEX",function(b,e){return I(b,e,2,16)},1,2,f,void 0,void 0,{bk:1});l("BIN2OCT",function(b,e){return I(b,e,2,8)},1,2,f,void 0,void 0,{bk:1});l("DEC2BIN",function(b,e){return H(b,e,2)},1,2,[{Hi:0,aj:["\x3c -512","\x3e 511"]},y],void 0,void 0,{bk:1});l("DEC2HEX",function(b,e){return H(b,e,16)},1,2,[{Hi:0,aj:["\x3c -549755813888","\x3e 549755813887"]},y],void 0,void 0,{bk:1});l("DEC2OCT",function(b,e){return H(b,e,8)},1,2,[{Hi:0,aj:["\x3c -536870912","\x3e 536870911"]},y],void 0,void 0,{bk:1});l("HEX2BIN",function(b,e){return I(b,e,16,2,512)},1,2,f,void 0,void 0,{bk:1});l("HEX2DEC",function(b){return O(b,16)},1,1,r);l("HEX2OCT",function(b,e){return I(b,e,16,8,536870912)},1,2,f,void 0,void 0,{bk:1});l("OCT2BIN",function(b,e){return I(b,e,8,2,512)},1,2,f,void 0,void 0,{bk:1});l("OCT2DEC",function(b){return O(b,8)},1,1,r);l("OCT2HEX",function(b,e){return I(b,e,8,16,549755813888)},1,2,f,void 0,void 0,{bk:1});l("ERF",G,1,2,[u,{Zi:!0,Hi:0}],void 0,void 0,{bk:1});l("ERF.PRECISE",function(b){return G(b,{$i:!1})},1,1,u);l("ERFC",q,1,1,u);l("ERFC.PRECISE",q,1,1,u);l("DELTA",function(b,e){return k.Zh.Yh(b,e)?1:0},1,2,g,void 0,void 0,{bk:1});l("GESTEP",function(b,e){return b>=e?1:0},1,2,g,void 0,void 0,{bk:1});l("COMPLEX",function(b,e,a){return"i"!==a&&"j"!==a?ka.Value:L(new aa(b,e),a)},2,3,[u,u,{Hi:5,_i:"i"}],void 0,void 0,{bk:2});l("IMABS",function(b){return T(Z(b.Ri*b.Ri+b.Si*b.Si))},1,1,E);l("IMAGINARY",function(b){return T(b.Si)},1,1,E);l("IMARGUMENT",function(b){return 0===b.Ri&&0===b.Si?ka.DivideByZero:T(S(b.Si,b.Ri))},1,1,E);l("IMCONJUGATE",function(b){return L(new aa(b.Ri,-b.Si))},1,1,E);l("IMCOS",function(b){return L(new aa(V(b.Ri)*Fa(b.Si,!1),-P(b.Ri)*Fa(b.Si,!0)))},1,1,E);l("IMDIV",function(b,e){var a=b.Ri,f=b.Si,k=e.Ri,g=e.Si;return L(new aa((a*k+f*g)/(k*k+g*g),(f*k-a*g)/(k*k+g*g)))},2,2,[E,M]);l("IMEXP",function(b){return L(new aa(v(b.Ri)*V(b.Si),v(b.Ri)*P(b.Si)))},1,1,E);l("IMLN",function(b){var a=b.Ri;b=b.Si;return L(new aa(e(Z(a*a+b*b)),S(b,a)))},1,1,M);l("IMLOG10",function(b){var a=b.Ri;b=b.Si;var f=fa.Ek(N,10);return L(new aa(f*e(Z(a*a+b*b)),f*S(b,a)))},1,1,M);l("IMLOG2",function(b){var a=b.Ri;b=b.Si;var f=fa.Ek(N,2);return L(new aa(f*e(Z(a*a+b*b)),f*S(b,a)))},1,1,M);l("IMREAL",function(b){return T(b.Ri)},1,1,E);l("IMSIN",function(b){return L(new aa(P(b.Ri)*Fa(b.Si,!1),V(b.Ri)*Fa(b.Si,!0)))},1,1,E);l("IMSQRT",function(b){var e,a,f=b.Ri;b=b.Si;return 0===f&&0===b?"0":(e=Z(f*f+b*b),a=S(b,f),L(new aa(Z(e)*V(a/2),Z(e)*P(a/2))))},1,1,E);l("IMSUB",function(b,e){return L(new aa(b.Ri-e.Ri,b.Si-e.Si))},2,2,[E,E]);l("IMPOWER",function(e,a){var f,k,g=e.Ri,c=e.Si;return 0===g&&0===c?0<a?"0":oa:(f=Z(g*g+c*c),k=S(c,g),L(new aa(b(f,a)*V(a*k),b(f,a)*P(a*k))))},2,2,[E,{Hi:2}]);l("IMPRODUCT",function(){return F(arguments,!0)},1,255,void 0,-1,-1);l("IMSUM",function(){return F(arguments,!1)},1,255,void 0,-1,-1);l("CONVERT",function(b,e,f){function k(b,e,a){function f(b){var e,a="cup mmHg J sec cel kel hh Wh wh flb BTU".split(" ");for(e=0;a[e].Ld;e++)if(0===b.localeCompare(a[e].Ld))return!1;return!0}var k,g,c,p,h,m,v,d;g=0;c=1;for(k=0;b[k].Ld;k++)if(0===a.localeCompare(b[k].Ld))return g=b[k].Sk,{Tk:!0,Uk:c,Vk:g};if(e)for(k=0;e[k].Ld;k++)p=a.substr(0,1).toLowerCase(),h=e[k].Ld.substr(0,1).toLowerCase(),p===h&&f(a)&&(c=e[k].Sk);for(k=0;b[k].Ld;k++)if(m=x(b[k].Ld),v=a.substr(1,m),d=b[k].Ld.substr(0,m),v===d&&f(a))return g=b[k].Sk,{Tk:!0,Uk:c,Vk:g};return{Tk:!1,Uk:c,Vk:g}}var g,p,v,d,y,t,T,q,N,r,E,P;if(!e||""===e||!f||""===f)return ja;if(g="C"===e||"cel"===e,p="C"===f||"cel"===f,v="F"===e||"fah"===e,d="F"===f||"fah"===f,y="K"===e||"kel"===e,t="K"===f||"kel"===f,g&&p||v&&d||y&&t)return b;if(g&&d)return 9*b/5+32;if(v&&p)return 5*(b-32)/9;if(v&&t)return 5*(b-32)/9+273.15;if(y&&d)return 9*(b-273.15)/5+32;if(g&&t)return b+273.15;if(y&&p)return b-273.15;g=[D,n,w,z,C,m,c,h,a,h];for(p=0;p<x(g);p++)if(T=g[p],q=k(T,B,e),N=q.Tk,r=q.Vk,v=q.Uk,q=k(T,B,f),E=q.Tk,P=q.Uk,d=q.Vk,N&&E&&0!==r&&0!==P)return b*v/r*d/P;return ja},3,3,[{Hi:1},A,A]);U.exports=ma},function(U,u,l){function d(b){return b instanceof Date?pa.l.Ra(b):b}function J(b,e,a){var f=e.getFullYear()-b.getFullYear(),f=e.getMonth()-b.getMonth()+12*f,k=e.getDate()-b.getDate(),g=-1;return 0===a?g=fb.uk(b,e):0<=ba(a,[1,2,3])?g=d(e)-d(b):4===a&&(g=30*f+k),g}function R(b,e,a,f,k){var g,c=Da(1+b,e),p=qa(c)?c:ta;return 0===b?e:(c=(c-1)/b,g=qa(c)?c:ta,c=(-a*p-f)/((1+b*k)*g),qa(c)?c:ta)}function Q(b,e,a,f){var k=e.getFullYear(),g=e.getMonth();e=e.getDate();var c=new Date(1,0,1),p=0,h=e===cb(k,g),m=12/a,v=k-b.getFullYear();c.setFullYear(1);0<v&&(v=(v-1)*a);do c=new Date(k,g,e),v++,c.setMonth(g-v*m),h&&(p=cb(c.getFullYear(),c.getMonth()),c=new Date(c.getFullYear(),c.getMonth(),p));while(0>La(b,c));return f&&(c=new Date(k,g,e),v--,c.setMonth(g-v*m),h&&(p=cb(c.getFullYear(),c.getMonth()),c=new Date(c.getFullYear(),c.getMonth(),p))),c}function K(b,e,a,f){return da(Q(b,e,a,!1),b,f)}function O(b,e,a,f){return 0<=ba(f,[0,2,4,5])?360/a:3===f?365/a:da(Q(b,e,a,!1),Q(b,e,a,!0),1)}function H(b,e,a,f){return da(b,Q(b,e,a,!0),f)}function I(b,e,a){var f=e.getFullYear(),k=e.getMonth();e=e.getDate();var g=new Date(f,k,e),c=k-b.getMonth()+12*(f-b.getFullYear());if(g.setMonth(g.getMonth()-c),e===cb(f,k))for(;g.getDate()!==cb(g.getFullYear(),g.getMonth());)g.setDate(g.getDate()+1);return b.getDate()>=g.getDate()&&c--,parseInt(""+(1+c/(12/a)))}function L(b,e,a){return 0<e?(a.Wk?a.Xk?va(b-a.Yk)<va(a.Zk-a.Yk)&&(a.Zk=b,a.$k=e):e<a.$k&&(a.Zk=b,a.$k=e):(a.Zk=b,a.$k=e,a.Wk=!0),[!1,a]):0>e?(a.Xk?a.Wk?va(b-a.Zk)<va(a.Zk-a.Yk)&&(a.Yk=b,a._k=e):-e<-a._k&&(a.Yk=b,a._k=e):(a.Yk=b,a._k=e,a.Xk=!0),[!1,a]):(a.al=b,[!0,a])}function F(b,e,a,f,k){var g=Q(b,a,f,!0);a=Q(b,a,f,!1);if(0<=La(g,e))return da(b,e,k)/O(a,g,f,k);for(b=da(b,g,k)/O(a,g,f,k);;){if(a=new Date(g.getFullYear(),g.getMonth(),g.getDate()),g.setMonth(g.getMonth()+12/f),0<=La(g,e))return b+da(a,e,k)/O(a,g,f,k);b+=1}}function G(b,e,a,f,k,g,c){var p,h,m=K(b,e,g,c),v=H(b,e,g,c);c=O(b,e,g,c);b=parseInt(""+I(b,e,g));e=0;a=100*a/g;g=1+f/g;var x=v/c;for(f=0;f<b;f++)e+=a/Da(g,x+f);return p=k/Da(g,b-1+v/c),h=m/c*a,p+e-h}function q(b,e,a,f,k,g,c,p,h){var m,v,x,d,y;m=da(p,b,c);v=da(b,h,c);var t=da(p,h,c),n=O(b,e,g,c),B=parseInt(""+I(b,e,g));a=100*a/g;f=1+f/g;if(v>n)switch(c){case 0:case 4:b=da(h,e,c);B=1+parseInt(""+Ra(b/n));break;default:m=new Date(h.getFullYear(),h.getMonth(),h.getDate());for(B=0;32767>B;B++)if(v=new Date(m.getFullYear(),m.getMonth(),m.getDate()),m.setMonth(m.getMonth()+12/g),0<=La(m,e)){B+=parseInt(""+Ra(da(v,e,c))/O(v,m,g,c))+1;break}m=n*F(p,b,h,g,c);v=n*F(b,h,h,g,c);t=n*F(p,h,h,g,c)}return x=k/Da(f,B-1+v/n),d=t/n/Da(f,v/n),y=Da(f,-v/n)*(Da(f,-B)-1/f)/(1/f-1),x+a*(d+y-m/n)}function D(b,e){var a=b.substr(0,3),f={ATS:13.7603,BEF:40.3399,DEM:1.95583,ESP:166.386,EUR:1,FIM:5.94573,FRF:6.55957,GRD:340.75,IEP:.787564,ITL:1936.27,LUX:40.3399,LUF:40.3399,NLG:2.20371,PTE:200.482,SIT:245.18};return f[a]?na(f[a],e):-1}function A(b,e,a,f,k,g,c){function p(b,e,a,f,k){var g=Da(1+b,e);return-(0===b?f+a*e:f*g+a*(0<k?1+b:1)*(g-1)/b)}if(g<k||g>a||0!==c&&1!==c)return ta;a=function(b,e,a,f,k){var g,c=Da(1+b,e);return 0===b?g=(a+f)/e:(g=f*b/(c-1)+a*b/(1-1/c),0<k&&(g/=1+b)),-g}(e,a,f,0,c);var h=0,m;for(1===k&&(b&&(h=a),0>=c&&(h+=b?f*e:-f),k++);k<=g;k++)m=0<c?p(e,k-2,a,f,1)-a:p(e,k-1,a,f,0),h+=b?a-m*e:m;return b?h:h*e}function r(b,e,a,f){f=Da(1+a,f);b=-(b*f*a+e*(f-1));return qa(b)?b:ta}function n(b,e,a,f,k){return 0>ba(f,[1,2,4])||0<=La(e,a)?ta:b(e,a,f,k)}function w(b,e,a,f,k,g){if(0>ba(g,[1,2,4])||0<La(e,a))return ta;var c=k,p=I(e,a,g);e=0;var h;a=0;f*=100/Va(g);c/=g;c++;for(h=1;h<p;h++)e+=h*f/Da(c,h);e+=p*(f+100)/Da(c,p);for(h=1;h<p;h++)a+=f/Da(c,h);f=(a+=(f+100)/Da(c,p),e/=a,e/Va(g));return b?f/(1+k/g):f}function z(b,e,a,f,k,g,c,p,h){var m,v,x,d;if(0>ba(c,[1,2,4])||0<La(e,a)||0<La(f,e))return ta;m=new Date(f.getFullYear(),f.getMonth(),f.getDate());do m.setMonth(m.getMonth()+12/c);while(0>La(m,a));return v=F(f,e,m,c,p),x=F(f,a,m,c,p),d=F(e,a,m,c,p),b?(g*c+100*k*(x-v*(1+h*d/c)))/(h*d+c):(c*(g-h)+100*k*(x-v))/(d*h+100*k*v*d/c)}function C(b,e,a){var f,k,g,c;return 0===a?Na:(f=0>e?Ra(e):ib(e),k=Da(10,Ra(Ha.Ek(a,10))),g=e-f,c=b?g*k/a:g*a/k,wa(f+c))}function c(b,e,a){var f=sa(e),k=0,g=1,c=1/(b+1);for(b=0;b<f;b++)k+=e[b]*g*(a?-b:1),g*=c;return k}function m(b,e,a,f){var k,g,c=0,p=sa(e);for(k=0;k<p;k++){if(g=d(f[k])-d(f[0]),0>g)return[!1,a];c+=e[k]/Ha.Ck(b,g/365)}return qa(c)?a=isNaN(c)?4.9E-324:c:c===Number.POSITIVE_INFINITY?a=gb:c===Number.NEGATIVE_INFINITY&&(a=-gb),[!0,a]}function h(b,e,a,f){var k,g;return-1<b&&0!==b?(k=Da(1+b,a.bl-(f?1:0)),g=(Da(1+b,a.bl)-1)/b,e=f?-a.cl*g/b+k*a.bl*(a.dl+a.cl*(a.Nc+1/b)):a.dl*k+a.cl*(1+b*a.Nc)*g+a.el,[!0,e,a]):[!1,e,a]}function a(b,e,a,f,k,g,c,p,m,v,x,d,y,t,n){var B,T,q,N,w=0,r=0,E=a-k;k=a+k;var z=2===b;if(E<g.fl&&(E=a),k>g.gl&&(k=a),E===k)return z?[!1,f,g,c]:[!1,f,g];if(0===b?(B=e(c,p,m,E,x,d,y,t,n)-v,T=e(c,p,m,k,x,d,y,t,n)-v):1===b?(B=e(E,c,w,p),T=e(k,c,r,p)):(B=h(E,w,c),T=h(k,r,c)),ra(B)){if(N=B[2],w=B[1],q=B[0],!q)return z?[q,f,g,N]:[q,f,g]}else w=B;if(ra(T)){if(N=T[2],r=T[1],q=T[0],!q)return z?[q,f,g,N]:[q,f,g]}else r=T;return f=(r-w)/(k-E),z?[!0,f,g,N]:[!0,f,g]}function B(b,e,a,f,k,g,p,h,m,v,x,d,y){var t,n;return f<a.fl||f>a.gl?[!1,a]:(t=b?c(f,k):e(k,g,p,f,m,v,x,d,y)-h,n=L(f,t,a),a=n[1],[!!n[0],a])}function y(b,e,a,f,k){if(e<b.fl||e>b.gl)return[!1,b,f];a=m(e,a,f,k);return f=a[1],a[0]?(a=L(e,0,b),b=a[1],[!!a[0],b,f]):[a[0],b,f]}function t(b,e,a){var f,k,g=0;return e<b.fl||e>b.gl?[!1,b,a]:(f=h(e,g,a),a=f[2],g=f[1],f[0]?(k=L(e,g,b),b=k[1],[!!k[0],b,a]):[f[0],b,a])}function E(b,e,g,c,p,h,v,x,d,y){var t,n,B,T,q=0,N=b?15:2;if(!g.Wk||!g.Xk)return b?[!1,g,c]:[!1,g];n=va(g.Zk-g.Yk)/(va(g.Zk)+va(g.Yk));for(t=0;t<100+4*N;t++)if(B=0===t%4?1:2===t%4?2:3,T=b?f(g,c,n,q,0,B):e?k(!0,g,q,0,0,B,m,n,p,c,a):k(!1,g,q,0,0,B,G,n,h,v,x,c,p,d,y),g=T[1],c=T[2],q=b?T[3]:T[2],T[0])return b?[!0,g,c]:[!0,g];return b?[!1,g,c]:[!1,g]}function M(b,e,f,g,p,h,m,v,x,d,y){var t,n,B,T,N,w,r,E=0,z=b?15:2;if(!e.Wk||!e.Xk)return[!1,e];n=va(e.Zk-e.Yk)/(va(e.Zk)+va(e.Yk));for(t=0;t<100+4*z;t++)if(B=0,T=0,N=0===t%4?1:2===t%4?2:3,w=b?k(!0,e,E,B,T,N,c,n,void 0,f,a):k(!1,e,E,B,T,N,q,n,m,v,x,f,g,d,y,p,h),e=w[1],E=w[2],B=w[3],T=w[4],N=w[5],!(b&&null===w[0]||!b&&ya(w[0]))){if(w[0]||(T=b?c(B,f):q(f,g,m,B,x,d,y,p,h)-v,r=L(B,T,e),e=r[1],r[0]))return[!0,e];if(n=va(e.Zk-e.Yk)/(va(e.Zk)+va(e.Yk)),n<e.hl)return e._k<T&&(T=e._k,B=e.Yk),e.$k<T&&(B=e.Zk),e.al=B,[!0,e]}return[!1,e]}function p(b,e,f,k,g,c,p,h,v,x,d,y,t){var n,B,T,q,N,w,r,E,z,P,C=f.hl/2;for(n=0;20>n&&!(k<f.fl||k>f.gl);n++){if(q=b?m(k,g,0,c):e(g,c,p,k,v,x,d,y,t)-h,ra(q)){if(T=q[1],B=q[0],!B)return[B,f]}else T=q;if(N=L(k,T,f),f=N[1],N[0])return[!0,f];if(w=f.Xk&&f.Wk?va(f.Zk-f.Yk):f.gl-f.fl,r=(1E-10>va(k)?w:va(k))/1E6,E=0,N=b?a(1,m,k,E,r,f,g,c):a(0,e,k,E,r,f,g,c,p,h,v,x,d,y,t),f=N[2],E=N[1],B=N[0],!B)return[B,f];if(0===E)break;if((z=k-1.000001*T/E,z===k)||(P=va(z-k)/(va(k)+va(z)),k=z,P<C))return f.al=k,[!0,f]}return[!1,f]}function g(b,e,a){var f,k,g,c,p,m,v,x,d=b.hl/2;for(f=0;100>f&&!(p=0,m=0,a<b.fl||a>b.gl);f++){if(v=h(a,p,e),e=v[2],p=v[1],c=v[0],!c)return[c,b,e];if(x=L(a,p,b),b=x[1],x[0])return[!0,b,e];if(v=h(a,m,e,!0),e=v[2],m=v[1],c=v[0],!c)return[c,b,e];if(0===m)break;if((k=a-1.000001*p/m,k===a)||(g=va(k-a)/(va(a)+va(k)),a=k,g<d))return b.al=a,[!0,b,e]}return[!1,b,e]}function f(b,e,k,g,c,p){var m,v,x,d,y,t,n,B,T;switch(p){case 1:if(m=(b.Zk+b.Yk)/2,d=h(m,c,e),e=d[2],c=d[1],v=d[0],!v)return[null,b,e,g];if(0===c)return b=L(m,c,b)[1],[!0,b,e,g];if(x=Ta(c*c-b.$k*b._k),0===x)return[null,b,e,g];break;case 2:if(x=0,n=0,.1<k)return p=3,f(b,e,k,g,c,p);if(B=g++%4,0===B)y=b.$k;else if(2===B)y=b.Yk,x=b._k;else if(y=(b.Zk+b.Yk)/2,d=h(y,x,e),e=d[2],x=d[1],v=d[0],!v)return[null,b,e,g];if((t=va(b.Zk-b.Yk)/1E6,T=a(2,void 0,y,n,t,b,e),e=T[3],b=T[2],n=T[1],v=T[0],!v||0===n)||(m=y-1.01*x/n,m<b.Zk&&m<b.Yk||m>b.Zk&&m>b.Yk))return[null,b,e,g]}return[!1,b,e,g]}function k(b,e,f,g,c,p,h,m,v,x,d,y,t,n,B,T,q){var N,w,r,E,z,P,C;switch(p){case 0:g=e.Zk-(e.Yk-e.Zk)/(e._k-e.$k)*e.$k;break;case 1:if(g=(e.Zk+e.Yk)/2,N=b?h(g,x,c,v):h(y,t,v,g,d,n,B,T,q)-x,ra(N)){if(c=N[1],!N[0])return[null,e,f,g,c,p]}else c=N;if(0===c)return e=L(g,c,e)[1],[!0,e,f,g,c,p];if(w=Ta(c*c-e.$k*e._k),0===w)return[null,e,f,g,c,p];g+=(g-e.Zk)*c/w;break;case 3:g=(e.Zk+e.Yk)/2;break;case 2:if(w=0,r=0,E=0,z=0,.1<m)return p=3,k(b,e,f,g,c,p,h,m,v,x,d,y,t,n,B);if(P=f++%4,0===P)w=e.$k;else if(2===P)w=e.Yk,r=e._k;else if(w=(e.Zk+e.Yk)/2,N=b?h(w,x,r,v):h(y,t,v,w,d,n,B,T,q)-x,ra(N)){if(r=N[1],!N[0])return[null,e,f,g,c,p]}else r=N;if((E=va(e.Zk-e.Yk)/1E6,C=b?d(1,h,w,z,E,e,x,v):a(0,h,w,z,E,e,y,t,v,x,d,n,B,T,q),e=C[2],z=C[1],!C[0]||0===z)||(g=w-1.01*r/z,g<e.Zk&&g<e.Yk||g>e.Zk&&g>e.Yk))return[null,e,f,g,c,p]}return[!1,e,f,g,c,p]}var x,W,P,V,Z,e,b,v,N,S,X,Y,ka,ja,oa,ma,ea,ga,T,fa,Fa,aa,xa,Ia,la,pa=l(26);u=l(33);var qa=isFinite;l=pa.j;var ba=l.Ea,ra=l.Ca,ya=l.Fa,sa=pa.k.ac;l=u.Convert;var ia=l.Rh,Ka=l.vf,wa=l.Nh,Aa=l.Ph,Va=l.Pa,$a=l.CalcConvertedError,Da=Math.pow,va=Math.abs,Ra=Math.ceil,jb=Math.log,Ta=Math.sqrt,ib=Math.floor,Ga=Math.max,bb=Math.min;l=u.Errors;var Na=l.DivideByZero,Ya=l.Value,ta=l.Number,fb=u.Functions,ua=fb.ak,Ha=fb.Fk,na=Ha.Ak,gb=fb.hk,Za=fb.lk,cb=fb.nk,La=fb.mk,da=fb.pk,Oa=fb.vk;u={Hi:0};l={_i:0,Hi:0};x={Hi:0,aj:"\x3c\x3d 0"};W={Hi:0,aj:"\x3c 1"};P={Hi:0,aj:"\x3c 0"};V={_i:.1,Hi:0};Z={_i:1E3,Hi:0,aj:"\x3c\x3d 0"};e={Hi:6};b={Hi:5};v={_i:!1,Hi:7};N={Hi:2};S={Hi:2,aj:"\x3c\x3d 0"};X={Hi:2,aj:"\x3c 1"};Y={_i:0,Hi:2,aj:["\x3c 0","\x3e 4"]};ka={Hi:2,aj:"\x3d 0",bj:Na};ja={Hi:2,aj:"\x3c 0"};oa={Hi:4,Ii:1,Ji:!0,Ki:!0};ma={Hi:4,Ii:1,Ji:!0,Ki:!0,breakOnConvertError:!0};ea=[e,e,N,Y];ga=[e,e,u,u,N,Y];T=[e,e,x];fa=[u,e,e,u,N,x,{_i:0,Hi:2,aj:["\x3c 0","\x3e 4","\x3d 2"]}];Fa=[u,u,u,l,l];aa=[e,e,x,x,Y];xa=[x,S,x,X,N,N];Ia=[x,X];la=[u,ja];ua("FV",function(b,e,a,f,k){k=k?1:0;var g=Da(1+b,e);return g=0===b?a*e+f:f*g+a*(1+b*k)*(g-1)/b,wa(-g)},3,5,Fa,void 0,void 0,{bk:[3,4]});ua("FVSCHEDULE",function(b,e){for(var a=0;a<sa(e);a++)e[a]!==$a&&(b*=1+e[a]);return b},2,2,[u,oa],1,1);ua("NPV",function(b){var e,a,f,k=arguments,g=0,c=1;for(a=1;a<sa(k);a++){if(f=Aa(k[a],1,!0,!0,!1),f.isError)return f[0];for(e=0;e<sa(f);e++)f[e]!==$a&&(g+=f[e]/Da(1+b,c++))}return g},2,void 0,u,"\x3e 0","\x3e 0");ua("PV",function(b,e,a,f,k){if(k=k?1:0,0===b)return wa(-(a*e+f));e=Da(1+b,e);return-1===b?Na:wa(-(f+a*(1+b*k)*(e-1)/b)/e)},3,5,Fa,void 0,void 0,{bk:[3,4]});ua("RECEIVED",function(b,e,a,f,k){var g,c,p;return 0<=La(b,e)?ta:(g=J(b,e,k),c=Za(b,k),0>=g||0>=c?ta:(p=1-f*g/c,0>=p?ta:a/p))},4,5,aa,void 0,void 0,{bk:3});ua("XNPV",function(b,e,a){var f=sa(e),k=sa(a),g=0;if(f!==k)return ta;for(k=0;k<f;k++)g+=e[k]/Da(1+b,(a[k]-a[0])/365);return g},3,3,[u,ma,ma],"!\x3d 0","!\x3d 0");ua("CUMIPMT",function(b,e,a,f,k,g){return A(!1,b,e,a,f,k,g)},6,6,xa);ua("CUMPRINC",function(b,e,a,f,k,g){return A(!0,b,e,a,f,k,g)},6,6,xa);ua("IPMT",function(b,e,a,f,k,g){if(e>=a+1||0!==g&&1!==g)return ta;a=R(b,a,f,k,g);return r(f,a,b,e-1)},4,6,[u,W,W,u,l,{_i:0,Hi:2}],void 0,void 0,{bk:[4,5]});ua("ISPMT",function(b,e,a,f){return wa(f*b*(e/a-1))},4,4,[u,N,ka,u]);ua("PMT",function(b,e,a,f,k){k=k?1:0;var g=Da(1+b,e);return g=0===b?(a+f)/e:(a*g+f)/((1+b*k)*(g-1)/b),wa(-g)},3,5,[u,{Hi:0,aj:"\x3d 0",bj:Na},u,l,l],void 0,void 0,{bk:[3,4]});ua("PPMT",function(b,e,a,f,k,g){if(g=g?1:0,e>=a+1)return ta;a=R(b,a,f,k,g);return a-r(f,a,b,e-1)},4,6,[u,W,u,u,l,l],void 0,void 0,{bk:[4,5]});ua("COUPDAYBS",function(b,e,a,f){return n(K,b,e,a,f)},3,4,ea,void 0,void 0,{bk:3});ua("COUPDAYS",function(b,e,a,f){return n(O,b,e,a,f)},3,4,ea,void 0,void 0,{bk:3});ua("COUPDAYSNC",function(b,e,a,f){return n(H,b,e,a,f)},3,4,ea,void 0,void 0,{bk:3});ua("COUPNCD",function(b,e,a){return n(function(b,e,a){return d(Q(b,e,a,!0))},b,e,a)},3,4,ea,void 0,void 0,{bk:3});ua("COUPNUM",function(b,e,a){return n(I,b,e,a)},3,4,ea,void 0,void 0,{bk:3});ua("COUPPCD",function(b,e,a){return n(function(b,e,a){return d(Q(b,e,a,!1))},b,e,a)},3,4,ea,void 0,void 0,{bk:3});ua("DURATION",function(b,e,a,f,k){return w(!1,b,e,a,f,k)},5,6,ga,void 0,void 0,{bk:5});ua("MDURATION",function(b,e,a,f,k){return w(!0,b,e,a,f,k)},5,6,ga,void 0,void 0,{bk:5});ua("NPER",function(b,e,a,f,k){return k=k?1:0,0===b?0===e?Na:wa(-(a+f)/e):wa(jb((e*(1+b*k)-f*b)/(a*b+e*(1+b*k)))/jb(1+b))},3,5,[{Hi:0,aj:"\x3c\x3d -1"},u,u,l,l],void 0,void 0,{bk:[3,4]});ua("YIELD",function(b,e,a,f,k,g,c){var h,m,v,x,d,y,t,n,T,q,N;if(0>ba(g,[1,2,4])||0<La(b,e))return ta;if(h=I(b,e,g),1>=h)return m=K(b,e,g,c),v=H(b,e,g,c),x=O(b,e,g,c),d=g*x/v,y=k/100+a/g-(f/100+m/x*a/g),t=f/100+m/x*a/g,y/t*d;if(T=.1,q={fl:0,gl:1E3,hl:1E-10,Wk:!1,Zk:0,$k:0,Xk:!1,Yk:0,_k:0,al:0},N=p(!1,G,q,T,b,e,a,f,k,g,c),q=N[1],n=N[0],!n){for(T=1E-10;T<q.gl;T*=2)q=B(!1,G,q,T,b,e,a,f,k,g,c)[1];N=E(!1,!1,q,b,e,a,f,k,g,c);q=N[1];n=N[0]}return n?q.al:ta},6,7,[e,e,P,P,x,N,Y],void 0,void 0,{bk:6});ua("YIELDDISC",function(b,e,a,f,k){return 0<=La(b,e)?ta:(f/a-1)/Oa(b,e,k)},4,5,[e,e,x,x,Y],void 0,void 0,{bk:3});ua("YIELDMAT",function(b,e,a,f,k,g){var c=Oa(a,e,g);a=Oa(a,b,g);b=Oa(b,e,g);c=1+c*f;return c/=k/100+a*f,c--,c/b},5,6,[e,e,e,P,u,Y],void 0,void 0,{bk:5});ua("AMORDEGRC",function(b,e,a,f,k,g,c){var p=1/g;if(0<p&&1>p||1<p&&2>p||2<p&&3>p||4<p&&5>p||0<La(e,a))k=ta;else a:{var h,m,v,p=1/g;if(h=3>p?1:5>p?1.5:6>=p?2:2.5,g*=h,m=Oa(e,a,c),Ka(m))k=0;else{e=ib(m*g*b+.5);b-=e;a=b-f;for(f=0;f<k;f++){if(e=ib(g*b+.5),a-=e,0>a){k=(v=k-f,0===v||1===v?ib(.5*b+.5):0);break a}b-=e}k=e}}return k},6,7,fa,void 0,void 0,{bk:6});ua("AMORLINC",function(b,e,a,f,k,g,c){if(0<La(e,a))b=ta;else{var p,h,m,v=b*g,x=b-f;e=Oa(e,a,c);b=Ka(e)?0:(p=e*g*b,h=(b-f-p)/v,m=ia((b-f-p)/v),0===k?p:k<=m?v*(1>h?h:1):k===m+1?x-v*m-p:0)}return b},6,7,fa,void 0,void 0,{bk:6});ua("ODDFYIELD",function(b,e,a,f,k,g,c,h,m){var v,x,d;d=.1;if(0>ba(h,[1,2,4])||0<La(a,b)||0<La(b,f)||0<La(f,e))return ta;if(v={fl:0,gl:1E3,hl:1E-10,Wk:!1,Zk:0,$k:0,Xk:!1,Yk:0,_k:0,al:0},x=p(!1,q,v,d,b,e,k,g,c,h,m,a,f),v=x[1],d=x[0]){for(d=1E-10;d<v.gl;d*=2)v=B(!1,q,v,d,b,e,k,g,c,h,m,a,f)[1];x=M(!1,v,b,e,a,f,k,g,c,h,m);v=x[1];d=x[0]}return d?v.al:ta},8,9,[e,e,e,e,P,x,x,N,Y],void 0,void 0,{bk:8});ua("ODDLYIELD",function(b,e,a,f,k,g,c,p){return z(!1,b,e,a,f,g,c,p,k)},7,8,[e,e,e,P,P,x,u,Y],void 0,void 0,{bk:7});ua("ODDLPRICE",function(b,e,a,f,k,g,c,p){return z(!0,b,e,a,f,g,c,p,k)},7,8,[e,e,e,P,P,x,N,Y],void 0,void 0,{bk:7});ua("TBILLEQ",function(b,e,a){var f,k,g=d(e)-d(b);return 0<=La(b,e)||365<g?ta:(f=365*a,k=360-a*g,0===k?Na:0>k?ta:wa(f/k))},3,3,T);ua("TBILLYIELD",function(b,e,a){var f=d(e)-d(b);return 0<=La(b,e)||365<f?ta:(100-a)/a*(360/f)},3,3,T);ua("IRR",function(b,e){var a,f,k,g,p=sa(b),h=[],m=!1,v=!1,x={fl:-1,gl:1E10,hl:1E-10,Wk:!1,Zk:0,$k:0,Xk:!1,Yk:0,_k:0,al:0};if(2>p)return ta;1<va(e)&&(e=.1);x.gl=bb(x.gl,Da(gb/1E10,1/p)-1);for(a=0;a<p;a++)f=b[a],f!==$a&&(h[a]=f,0<f&&(m=!0),0>f&&(v=!0));if(!m||!v)return ta;var d;a:{a=e;var y,t,v=x.hl/2;for(f=0;20>f&&!(p=0,m=0,a<x.fl||a>x.gl);f++){if(p=c(a,h),t=L(a,p,x),x=t[1],t[0]){d=[!0,x];break a}if(m=c(a,h,!0),0===m)break;if((d=a-1.000001*p/m,d===a)||(y=va(d-a)/(va(a)+va(d)),a=d,y<v)){d=(x.al=a,[!0,x]);break a}}d=[!1,x]}if(k=d,x=k[1],g=k[0],!g){for(k=2;(!x.Xk||!x.Wk)&&100>k;k*=2)x=B(!0,void 0,x,e*k,h)[1],x=B(!0,void 0,x,e/k,h)[1];k=M(!0,x,h);x=k[1];g=k[0]}return g?x.al:ta},1,2,[oa,V],0,0,{bk:1});ua("MIRR",function(b,e,a){var f,k,g=0,c=0,p=0,h=0,m=[],v=sa(b);if(2>v)return Na;for(f=0;f<v;f++)k=b[f],k!==$a&&(m[f]=k,0<=k?g++:c++);k=c+g;for(b=0;b<k;b++)f=m[b],0<=f?p+=f/Da(1+a,b):h+=f/Da(1+e,b);return 0===h||0===p||-1>=a?Na:Da(-p*Da(1+a,k)/(h*(1+a)),1/(k-1))-1},3,3,[oa,u,u],0,0);ua("XIRR",function(b,e,f){var k,g,c,h,m,v,x,d,t,n=sa(b);c=sa(e);if(n!==c)return ta;for(c=0;c<n;c++)k=0<b[c]||k,g=0>b[c]||g;if(!k||!g)return ta;if(h={fl:-1,gl:1E3,hl:1E-10,Wk:!1,Zk:0,$k:0,Xk:!1,Yk:0,_k:0,al:0},m=p(!0,a,h,f,b,e),h=m[1],m[0])return h.al;for(c=1;1024>=c;c+=c)if(v=c,x=9/(v+9),d=y(h,f,x,b,e),h=d[1],x=d[2],x=v,d=y(h,f,x,b,e),h=d[1],x=d[2],t=E(!1,!0,h,b,e),h=t[1],t[0])return h.al;return ta},2,3,[ma,{Hi:4,Ii:4,Ji:!0,Ki:!0,breakOnConvertError:!0},V],"!\x3d 2","!\x3d 2",{bk:2});ua("RATE",function(b,e,a,f,k,c){var p,h,m,v,x;if(1<k&&(k=1),p={hl:1E-10,Wk:!1,Zk:0,$k:0,Xk:!1,Yk:0,_k:0,al:0},h=Da(1.7976931348623157E298,1/b),p.fl=Ga(-1E10,-h+1),p.gl=bb(1E10,h-1),m={bl:b,cl:e,dl:a,el:f,Nc:k},v=g(p,m,c),m=v[2],p=v[1],x=v[0],!x){for(b=2;(!p.Xk||!p.Wk)&&100>b;b*=2)v=t(p,c*b,m),m=v[2],p=v[1],v=t(p,c/b,m),m=v[2],p=v[1];v=E(!0,!1,p,m);p=v[1];x=v[0]}return x?p.al:ta},3,6,[x,u,u,l,{_i:0,Hi:2,aj:"\x3c 0",bj:Ya},V],void 0,void 0,{bk:[3,4,5]});ua("VDB",function(b,e,a,f,k,g,c){function p(b,e,a,f,k){var g,c,p;a=k/a;return 1<=a?(a=1,c=1===f?b:0):c=b*Da(1-a,f-1),p=b*Da(1-a,f),g=c-(p<e?e:p),0>g?0:g}function h(b,e,a,f,k,g,c){function h(b,e,a,f,k,g){var c,h,m,v=0,x=0,d=Ra(k),y=b-e,t=!1;for(m=1;m<=d;m++)t?h=x:(c=p(b,e,a,m,g),x=y/(f-(m-1)),x>c?(h=x,t=!0):(h=c,y-=c)),m===d&&(h*=k+1-d),v+=h;return v}var m,v,x,d;if(m=ib(f),v=Ra(k),x=0,c)for(d=m+1;d<=v;d++)c=p(b,e,a,d,g),d===m+1?c*=bb(k,m+1)-f:d===v&&(c*=k+1-v),x+=c;else m=a,f!==ib(f)&&1<g&&f>=a/2&&(d=f-a/2,f=a/2,k-=d,m+=1),b-=h(b,e,a,m,f,g),x=h(b,e,a,a-f,k-f,g);return x}return k<f?ta:b<e&&0===f&&1===k?b-e:h(b,e,a,f,k,g,c)},5,7,[P,P,ja,P,P,{_i:2,Hi:0},v],void 0,void 0,{bk:[5,6]});ua("ACCRINT",function(b,e,a,f,k,g,c){var p,h,m,v,x,y,t,n,B,T,q;if(0>ba(g,[1,2,4])||0<=La(b,a))return ta;if(1===g||0===c||4===c)return g=J(b,a,c),b=Za(b,c),0>g||0>=b?ta:g/b*f*k;p=b.getFullYear();h=b.getMonth();m=b.getDate();b=a.getFullYear();v=a.getMonth();x=a.getDate();y=e.getMonth();t=e.getDate();e=[];n=[];B=[];T=[31,28,31,30,31,30,31,31,30,31,30,31];for(q=0;q<g;q++)e[q]=(y+12*q/g)%12,n[q]=t<=T[e[q]]?t:T[e[q]],2===c?B[q]=360/g:3===c&&(B[q]=365/g);for(q=0;q<g;q++)c=q===g-1?0:q+1,y=e[c]>e[q]?2001:2002,B[q]=d(new Date(y,e[c],n[c]))-d(new Date(2001,e[q],n[q]));t=0;for(a=d(a);p<b||p===b&&h<v||p===b&&h===v&&m<x;){for(q=0;q<g&&(h<e[q]||h===e[q]&&m<n[q])&&(0===q||e[q]>e[q-1]);)q++;for(;q<g&&(h>e[q]||h===e[q]&&m>=n[q])&&(q++,h!==e[q-1]||m!==n[q-1]););q--;c=q===g-1?0:q+1;y=12<=h+12/g?p+1:p;p=d(new Date(p,h,m));h=Math.min(d(new Date(y,e[c],n[c])),a);t+=k*f/g*(h-p)/B[q];p=y;h=e[c];m=n[c]}return t},6,8,[e,e,e,x,Z,N,Y],void 0,void 0,{bk:[4,6,7]});ua("ACCRINTM",function(b,e,a,f,k){if(0<La(b,e))return ta;e=J(b,e,k);b=Za(b,k);return 0>e||0>=b?ta:f*a*e/b},3,5,[e,e,x,Z,Y],void 0,void 0,{bk:[3,4]});ua("DISC",function(b,e,a,f,k){if(0<=La(b,e))return ta;var g=Za(b,k);b=J(b,e,k);return 0>=b||0>=g?ta:(f-a)/f*(g/b)},4,5,[e,e,x,x,Y],void 0,void 0,{bk:3});ua("EFFECT",function(b,e){return Da(1+b/e,e)-1},2,2,Ia);ua("INTRATE",function(b,e,a,f,k){if(0<=La(b,e))return ta;e=J(b,e,k);b=Za(b,k);return 0>=e||0>=b?ta:(f-a)/a*(b/e)},4,5,aa,void 0,void 0,{bk:3});ua("NOMINAL",function(b,e){return e*(Da(1+b,1/e)-1)},2,2,Ia);ua("DB",function(b,e,a,f,k){var g,c,p;if(a+(12>k?1:0)<f)return ta;if(0===b)return 0;e=na(1-Da(e/b,1/a),3);c=g=0;for(p=1;p<=f;p++)c=1===p?b*e*k/12:p===a+1?(b-g)*e*(12-k)/12:(b-g)*e,g+=c;return c},4,5,[P,u,X,X,{_i:12,Hi:2,aj:["\x3c 1","\x3e 12"]}],void 0,void 0,{bk:3});ua("DDB",function(b,e,a,f,k){var g,c=0,p=0;if(a<f)return ta;if(b<=e)return 0;for(g=1;g<=f;g++)p=k/a*(b-c),p=bb(p,b-c-e),c+=p;return p},4,5,[P,u,S,S,{_i:2,Hi:0,aj:"\x3c\x3d 0"}],void 0,void 0,{bk:3});ua("SLN",function(b,e,a){return(b-e)/a},3,3,[u,u,ka]);ua("SYD",function(b,e,a,f){return f>a?ta:(b-e)*(a-f+1)*2/(a*(a+1))},4,4,[u,P,X,S]);ua("DOLLARDE",function(b,e){return C(!0,b,e)},2,2,la);ua("DOLLARFR",function(b,e){return C(!1,b,e)},2,2,la);ua("PRICE",function(b,e,a,f,k,g,c){return 0>ba(g,[1,2,4])||0<La(b,e)?ta:G(b,e,a,f,k,g,c)},6,7,[e,e,P,P,{Hi:0,aj:"\x3d 0"},N,Y],void 0,void 0,{bk:6});ua("PRICEDISC",function(b,e,a,f,k){if(0<=La(b,e))return ta;e=J(b,e,k);b=Za(b,k);return 0>=e||0>=b?ta:f-a*f*e/b},4,5,aa,void 0,void 0,{bk:3});ua("PRICEMAT",function(b,e,a,f,k,g){var c,p,h,m,v;return 0<=La(b,e)?ta:(c=J(b,e,g),p=J(a,e,g),h=J(a,b,g),m=Za(b,g),0>=h||0>=m||0>=c||0>=p?ta:(v=1+c/m*k,0===v?ta:(100+p/m*f*100)/v-h/m*f*100))},5,6,[e,e,e,P,P,Y],void 0,void 0,{bk:5});ua("ODDFPRICE",function(b,e,a,f,k,g,c,p,h){return 0>ba(p,[1,2,4])||0<La(a,b)||0<La(b,f)||0<La(f,e)?ta:q(b,e,k,g,c,p,h,a,f)},8,9,[e,e,e,e,P,P,x,N,Y],void 0,void 0,{bk:8});ua("TBILLPRICE",function(b,e,a){var f=d(e)-d(b);return 0<=La(b,e)||365<f?ta:100*(1-a*f/360)},3,3,[e,e,x]);ua("EURO",function(b){b=D(b,2);return 0<=b?b:ta},1,1,b);ua("EUROCONVERT",function(b,e,a,f,k){function g(b){b=b.substr(0,3);return 0<=ba(b,"BEF LUF ESP ITL PTE GRD LUX".split(" "))?0:2}function c(b){b=b.substr(0,3);return 0<=ba(b,["BEF","LUF","ESP","ITL","LUX"])?0:2}var p,h,m,v;return p=0,f||(p=c(a)),k.$i||(k.Qb=g(e)),h=0,m=D(e,k.Qb),v=D(a,k.Qb),0<=m&&0<=v?(h=b*v/m,f||(h=na(h,p)),h):Ya},3,5,[u,b,b,v,{Zi:!0,Hi:2,_i:3,aj:"\x3c 3",bj:Ya}],void 0,void 0,{bk:[3,4]});U.exports=fb},function(U,u,l){function d(b,e,a){if(p(b))return null;if(b.isArray||b.isReference){var f=b.colCount;return e>f&&(e=[a,a=e][0]),b[a*f+e]}return b[0]}function J(b,e){return!p(e)&&(!!((p(b)||V(b,!0))&&V(e,!0)||ja(b)&&ja(e))||!(!oa(b)||!oa(e)))}function R(b,e,a,f,k){if(0>b||0>e||e<b||a<b||a>e)return-1;if(k)return q=b,D=e,A=a,r=a,n=f,w=f,A;if(n){if(A++,A>D){if(n!==w)return-1;A=r-1;n=!1}}else if(A--,A<q){if(n!==w)return-1;A=r+1;n=!0}return A}function Q(b,e,a){function k(b,e,a){b=E(b);return isNaN(b)||(a=2),a}var g,c,p;return b===e?0:oa(b)?e||0!==f(""+b)?V(e)?1:ja(e)?2:oa(e)?(g=a?(""+b).localeCompare(""+e):b.toLowerCase().localeCompare(e.toLowerCase()),0===g?0:0<g?1:2):e instanceof Date?k(b,e,1):-1:0:oa(e)?b||0!==f(""+e)?V(b)?2:ja(b)?1:b instanceof Date?k(b,e,2):-1:0:ja(b)&&V(e)?1:ja(e)&&V(b)?2:(c=Z(b),p=Z(e),c===p?0:c<p?2:1)}function K(b,e,a){b=d(b,e,a);return p(b)?0:b}function O(b,e,a,f){var k,g,c,p,h,m=-1,v=0,x=-1,y=-1,t=f?e.rowCount:e.colCount;if(t--,t<v)return-1;for(;v<=t;){k=null;c=b[0];1<=a!=(2===m)&&(x=y);y=W((v+t)/2);for(g=y=R(v,t,y,0<=a,!0);!J(c,k)&&-1!==y&&(p=!1,k=f?d(e,0,y):d(e,y,0),!J(c,k));)y=R(0,0,0,!1,!1),!p&&0<=a&&y<g?(t=y,p=!0):!p&&0>a&&y>g&&(v=y,p=!0);if(-1===y&&1<=a!=(2===m))return x;if(-1===y)return-1;if(m=Q(c,k,!1),1<=a&&1===m)v=y+1;else if(1<=a&&2===m)t=y-1;else if(-1>=a&&1===m)t=y-1;else if(-1>=a&&2===m)v=y+1;else if(0===m){for(;-1>=a&&y>v||0<=a&&y<t;){if(h=0,h=0<=a?y+1:y-1,k=f?K(e,0,h):K(e,h,0),!k)return-1;if(!J(c,k))break;if(m=Q(c,k,!1),0!==m)break;y=h}return y}}return 1<=a!=(2===m)?y:x}function H(b,e,a,f){var k,g,c,p,h=null,m=-1,v=b[0],x=oa(v),t=y.zb(v),n=f?e.rowCount:e.colCount;x&&t&&(g=y.sb(t));for(b=0;b<n;b++)if(c=f?d(e,0,b):d(e,b,0),J(v,c))if(p=oa(c),x&&p&&t?(g.lastIndex=0,k=g.test(c)?0:1):k=Q(v,c,!1),1<=a&&1===k)k=-1,0<=m&&(k=Q(c,h,!1)),(0>m||0<=m&&1===k)&&(m=b,h=c);else if(-1>=a&&2===k)k=-1,0<=m&&(k=Q(c,h,!1)),(0>m||0<=m&&2===k)&&(m=b,h=c);else if(0===k)return b;return m}function I(b,a,f){if(!b)return e;var k=b.arrayFormulaMode,g=void 0!==a,c=f?0:1;return a=g?a:b.getReference(b.source,B.qf(b.row,b.column,b.rowCount,b.columnCount)),a&&1===a.getRangeCount()?k&&g?new z(a.getSource(),a.getRow(0),a.getColumn(0),a.getRowCount(0),1,c):(f?a.getRow(0):a.getColumn(0))+1:e}function L(e,a,f,k,g){if(g&&f>a.colCount||!g&&f>a.rowCount)return b;e=k?O(e,a,1,g):H(e,a,0,g);return 0<=e?g?K(a,f-1,e):K(a,e,f-1):v}function F(b,e,a,f){return L(b,e,a,f,!1)}function G(b,e,a,f){return L(b,e,a,f,!0)}var q,D,A,r,n,w,z,C,c,m,h,a=l(26),B=l(33),y=a.q,t=a.j,E=a.l.lb,M=t.Ia,p=t.Fa,g=t.G,f=a.k.ac,k=B.Convert,x=k.vf,W=k.Rh,P=k.Sh,V=k.Na,Z=k.Pa;u=B.Errors;var e=u.Value,b=u.Reference,v=u.NotAvailable,N=B.Parser,S=B.CalcReference,X=B.CalcArrayHelper,Y=B.Functions,ka=Y.ak,ja=Y.ik,oa=Y.jk,ma=function(b,e,a,f){return{row:b,col:e,rowCount:a,colCount:f}};z=function(b){function e(e,a,f,k,g,c){b.call(this,e,[ma(a,f,k,g)]);this.cj=a;this.Lk=f;this.Xj=k;this.Yj=g;this.Nc=c}g(e,b);return M(e.prototype,{type:function(){return this.Nc},getValue:function(e,a,f){var k=this.Nc;return 0===k?this.getRow(0)+1+a:1===k?this.getColumn(0)+1+f:b.prototype.getValue.call(this,e,a,f)},toArray:function(e,a){var f=[],k=this.cj,g=this.Lk,c=this.Nc,p=this.getRangeCount(),h=this.Xj,m=this.Yj,v,x,d,y,t,n;for(v=0;v<p;v++)for(a||(d=[],f.push(d)),t=0;t<h;t++)for(a||(y=[],d.push(y)),n=0;n<m;n++)x=0===c?k+1+t:1===c?g+1+n:b.prototype.getValue.call(this,v,k+t,g+n),a?f.push(x):y.push(x);return a||1!==p||(f=f[0]),f.rowCount=h,f.colCount=m,f.rangeCount=p,f}}),e}(B.CalcReference);C=function(b){function e(e){b.call(this);this.il=e}g(e,b);return M(e.prototype,{getRowCount:function(){return X.getColumnCount(this.il)},getColumnCount:function(){return X.getRowCount(this.il)},getValue:function(b,e){return X.getValue(this.il,e,b)}}),e}(B.CalcArray);u={_i:!0,Hi:7};l={Hi:2};c={_i:1,Hi:2};m={Hi:2,aj:"\x3c\x3d 0",bj:e};h={Hi:4,Ii:0,Ji:!0};ka("ADDRESS",function(b,k,g,c,p){function h(b,e,a,f){return b+=e,f?0!==a&&(b+="[",b+=""+a,b+="]"):b+=a,b}function m(b,e,a){return a||(b+="$"),b+e}function v(b,e,f){f||(b+="$");for(f=b.length;.1<e;e=parseInt((e-1)/26),10)b=a.u.Eb(b,f,String.fromCharCode(65+(e-1)%26));return b}function x(b,e){if(e&&0<f(e)){var a,k=!B.ei(e[0])&&"_"!==e[0];for(a=1;!k&&a<f(e);a++)k=!B.fi(e[a])&&"_"!==e[a];k?(b+="'",b+=e.replace("'","''"),b+="'"):b+=e;b+="!"}return b}var d,y,t;return d=3===g||4===g||7===g||8===g,y=2===g||4===g||6===g||8===g,t="",1>b&&(c||!d)||b>B.maxRowCount||1>k&&(c||!y)||k>B.maxColumnCount||1>g||8<g?e:(t=x(t,p),c?(t=v(t,k,y),t=m(t,b,d)):(t=h(t,"R",b,d),t=h(t,"C",k,y)),t)},2,5,[l,l,c,u,{_i:"",Hi:5}],void 0,void 0,{bk:[2,3,4]});ka("INDEX",function(a,g,c,h,m){function v(b){return!p(b)&&!b._error}var x,d,y,t,n,q,T,N,w,r,E,z,C,l;return x=a instanceof B.EvaluateContext?a:void 0,d=null!==x&&x.acceptsReference,g instanceof S?(y={value:-1},t=g,n=t.getRowCount(0),q=t.getColumnCount(0),T=t.getRow(0),N=t.getColumn(0),3===f(arguments)?1!==t.getRangeCount()||1!==n&&1!==q?b:(E=v(c)&&P(c,y)?y.value:0,0!==E||d||null===x||(E=0<n?x.rowOffset:x.columnOffset),0>E?e:n*q<E?b:0===E?t.create([ma(T,N,n,q)]):(w=Math.floor((E-1)/q)+T,r=(E-1)%q+N,t.create([ma(w,r,1,1)]))):(c=v(c)&&P(c,y)?y.value-1:-1,h=v(h)&&P(h,y)?y.value-1:-1,m=v(m)&&P(m,y)?y.value-1:0,m>=t.getRangeCount()?b:(n=t.getRowCount(m),q=t.getColumnCount(m),z=t.getRow(m),C=t.getColumn(m),-1===c&&!d&&1<n&&null!==x&&(c=x.rowOffset),-1===h&&!d&&1<q&&null!==x&&(h=x.columnOffset),w=c+z,r=h+C,-1>c||-1>h||0>m?e:n<=c||q<=h||t.getRangeCount()<=m?b:-1===c&&-1===h?t.create([ma(z,C,n,q)]):-1===c?t.create([ma(z,r,n,1)]):-1===h?t.create([ma(w,C,1,q)]):t.create([ma(w,r,1,1)])))):k.Ca(g)?(l=g,n=l.getRowCount(),q=l.getColumnCount(),c=void 0!==c?W(c):-1,h=void 0!==h?W(h):-1,m=void 0!==m?W(m)-1:1,1!==m?b:(-1===c&&-1===h?c=h=0:-1===h&&1===n&&(h=c,c=1),c=-1===c?0:c,h=-1===h?0:h,n=l.getRowCount(),q=l.getColumnCount(),0>c||0>h||0>m?e:(c>n&&1===n&&void 0===h&&(h=c,c=0),n<c||q<h?b:0===c&&0===h?l.slice(0,0,n,q):0===c?l.slice(0,h-1,n,1):0===h?l.slice(c-1,0,1,q):l.getValue(c-1,h-1)))):void 0},2,4,void 0,0,0,{bk:[1,2,3],dk:!0,fk:3});ka("OFFSET",function(a,f,k,g,c){var p,h,m;return a&&a instanceof S&&1===a.getRangeCount()?(g=void 0!==g?W(g):a.getRowCount(0),c=void 0!==c?W(c):a.getColumnCount(0),p=a.getSource(),h=a.getRow(0)+f,m=a.getColumn(0)+k,0>=g||0>=c||0>h||p.getRowCount()<h+g||0>m||p.getColumnCount()<m+c?b:a.create([{row:h,col:m,rowCount:g,colCount:c}])):e},3,5,[{},l,l],0,0,{bk:[3,4],ck:!0,fk:2,returnReference:!0});ka("ROW",function(b,e){return I(b,e,!0)},0,1,void 0,-1,void 0,{dk:!0,ek:-1,expandColumns:-1});ka("COLUMN",function(b,e){return I(b,e,!1)},0,1,void 0,-1,void 0,{bk:0,dk:!0,ek:-1,expandRows:-1});ka("ROWS",function(b){return X.getRowCount(b)},1,1,void 0,-1,-1,{ek:-1,expandColumns:-1,ck:!0});ka("COLUMNS",function(b){return X.getColumnCount(b)},1,1,void 0,-1,-1,{ek:-1,expandRows:-1,ck:!0});ka("TRANSPOSE",function(b){return new C(b)},1,1,void 0,-1,-1);ka("LOOKUP",function(b,e,a){var f,g=-1,c=e.colCount,p=e.rowCount;if(void 0===a)return f=c>p?F(b,e,p):G(b,e,c),x(f)?v:f;if(a=k.Ph(a,0,!0,!1,!1)){if(1<a.colCount&&1<a.rowCount)return v}else a=e;return g=O(b,e,1,!(c>p)),0<=g?(c=a.colCount,p=a.rowCount,c>p?K(a,g,p-1):K(a,c-1,g)):v},2,3,[h,h],"!\x3d 0","!\x3d 0",{fk:1});ka("HLOOKUP",F,3,4,[h,h,m,u],1,1,{bk:3});ka("VLOOKUP",G,3,4,[h,h,m,u],1,1,{bk:3});ka("CHOOSE",function(b){var a=arguments;return 1>b||f(a)<=b?e:p(a[b])?0:a[b]},2,255,l,"\x3e\x3d 1","\x3e\x3d 1",{gk:"\x3e\x3d 1",isBranch:!0,findTestArgument:0,findBranchArgument:function(b){var e={value:-1};return x(b)?-1:(P(b,e),e.value)}});ka("MATCH",function(b,e,a){function k(b,e){var a,k,g,c,p=f(b);for(a=1;a<p;a++)if(k=b[a-1],g=b[a],c=Q(k,g,!1),2===c&&!e)return!1;return!0}var g,c,p;return e.isArray||e.isReference?(g=e.colCount,c=e.rowCount,p=-1,1<g&&1<c?v:1===a&&!k(e,!0)||-1===a&&!k(e,!1)?v:(1===a?p=O(b,e,1,1<c):0===a?p=H(b,e,0,1<c):-1===a&&(p=O(b,e,-1,1<c)),-1===p?v:p+1)):v},2,3,[h,h,c],1,1,{bk:2});ka("INDIRECT",function(e,a,f){var k,g,c,p,h,m,x,d;return e?a?(k=e.row,g=e.column,c=new N,p=B.pf(k,g),h=e.source?e.source.getParserContext(!f,p):new B.ParserContext(e.source,!f,p),m=c.parse(h,a),m?(8===m.type&&(m.source?(x=m.source,m=x.getCustomName(m.value)):m=e.getName(m.value)),!m||0>t.Ea(m.type,[1,13])?b:(x=m.source||e.source,25===m.type||26===m.type?x.getValueByName(m.nameIdentity):(d=m.getRange(k,g),13===m.type&&(x=m.source()),1!==d.rowCount||1!==d.colCount||e.acceptsReference||e.arrayFormulaMode?x.getReference(d):x.getValue(d.row,d.col)))):b):b:v},1,2,[{Hi:5},u],void 0,void 0,{bk:2,ck:!0,dk:!0});U.exports=Y},function(U,u,l){function d(b,e,a,f){var k,g;k=[];n(b,k);b=Ja(k);if(0===b||e<k[0]||e>k[b-1])a=mb;else{if(1===b)e=1;else{var c,p,h,m,v=Ja(k);if(e!==k[0]){p=0;h=k[0];for(b=1;b<v&&k[b]<e;b++)k[b]!==h&&(p=b,h=k[b]);k[b]!==h&&(p=b);e===k[b]?c=f?p/(v-1):(b+1)/(v+1):0===p?c=0:(m=(e-k[p-1])/(k[p]-k[p-1]),c=f?(p-1+m)/(v-1):(p+m)/(v+1))}else c=f?0:1/(v+1);e=c}a=(g=e,0!==g?Tb(g*ab(10,a))/ab(10,a):g)}return a}function J(b,e,a){var f,k,g,c,p,h=b+e,m=b+1,v=b-1,x=1,d=1-h*a/m;1E-50>Wa(d)&&(d=1E-50);g=d=1/d;for(f=1;300>=f&&(k=f+f,c=(e-f)*f*a/((v+k)*(b+k)),d=1+c*d,1E-50>Wa(d)&&(d=1E-50),x=1+c/x,1E-50>Wa(x)&&(x=1E-50),d=1/d,g*=d*x,c=0-(b+f)*(h+f)*a/((b+k)*(m+k)),d=1+c*d,1E-50>Wa(d)&&(d=1E-50),x=1+c/x,1E-50>Wa(x)&&(x=1E-50),d=1/d,p=d*x,g*=p,!(1E-20>Wa(p-1)));f++);return g}function R(b){return[2.2250738585072014E-308,1.7976931348623157E308,ab(2,-53),ab(2,-52),oc.Ek(2,10)][b-1]||0}function Q(b,e,a){var f=0,k=0,g;if(1>e)return 0;for(g=1;g<=e&&!(f=e-g,k+=Wa(Ea(b[f])),k>a);g++);return f}function K(b,e,a){var f,k,g,c;if(1>a||1E3<a||-1.1>b||1.1<b)return NaN;g=2*b;b=k=f=0;for(c=1;c<=a;c++)k=f,f=b,b=g*f-k+Ea(e[a-c]);return.5*(b-k)}function O(b){var e,a=[.16663894804518634,-1.384948176067564E-5,9.81082564692473E-9,-1.809129475572494E-11,6.221098041892606E-14,-3.399615005417722E-16,2.683181998482699E-18,-2.868042435334643E-20,3.9628370610464347E-22,-6.831888753985767E-24,1.4292273559424982E-25,-3.5475981581010704E-27,1.025680058010471E-28,-3.401102254316749E-30,1.276642195630063E-31],f=Q(a,15,R(3)),k=1/Ua(R(3)),g=Sa(fc(Ba(R(2)/12),-Ba(12*R(1))));return 10>b?NaN:b>=g?4.930380657631324E-32:b<k?(e=10/b,K(e*e*2-1,a,f)/b):1/(12*b)}function H(b){var e=[1.037869356274377,-.13364301504908918,.019408249135520562,-.0030107551127535777,4.869461479715485E-4,-8.105488189317536E-5,1.3778847799559525E-5,-2.380221089435897E-6,4.1640416213865184E-7,-7.359582837807599E-8,1.3117611876241675E-8,-2.3546709317742423E-9,4.2522773276035E-10,-7.71908941348408E-11,1.407574648135907E-11,-2.5769072058024682E-12,4.734240666629442E-13,-8.724901267474264E-14,1.612461490274055E-14,-2.9875652015665774E-15,5.548070120908289E-16,-1.0324619158271569E-16,1.9250239203049852E-17,-3.595507346526515E-18,6.726454253787686E-19,-1.260262416873522E-19,2.364488440860621E-20,-4.4419377050807936E-21,8.354659446403425E-22,-1.5731559416479563E-22,2.9653128740247425E-23,-5.594958348181595E-24,1.056635426883568E-24,-1.9972483680670205E-25,3.778297781883936E-26,-7.153158688908174E-27,1.3552488463674214E-27,-2.5694673048487566E-28,4.8747756066216946E-29,-9.254211253084972E-30,1.757859784176024E-30,-3.341002667773101E-31,6.353393618023618E-32],a=Q(e,43,.1*R(3));return-1>=b?NaN:.375>=Wa(b)?b*(1-b*K(b/.375,e,a)):Ba(b+1)}function I(b){var e,a,f,k;e=1;var g=[1,.5772156649015329,-.6558780715202538,-.0420026350340952,.1665386113822915,-.0421977345555443,-.009621971527877,.007218943246663,-.0011651675918591,-2.152416741149E-4,1.280502823882E-4,-2.01348547807E-5,-1.2504934821E-6,1.133027232E-6,-2.056338417E-7,6.116095E-9,5.0020075E-9,-1.1812746E-9,1.043427E-10,7.7823E-12,-3.6968E-12,5.1E-13,-2.06E-14,-5.4E-15,1.4E-15];if(171<b)return 1E308;if(b===Rb(b))if(0<b)for(a=1,e=2;e<b;e++)a*=e;else a=1E308;else{if(1<Wa(b)){k=Wa(b);f=Rb(k);for(a=e=1;a<=f;a++)e*=k-a;k-=f}else k=b;f=g[24];for(a=23;0<=a;a--)f=f*k+g[a];a=1/(f*k);1<Wa(b)&&(a*=e,0>b&&(a=-vb/(b*a*tc(vb*b))))}return a}function L(b){var e,a,f,k,g=0,c=[.08333333333333333,-.002777777777777778,7.936507936507937E-4,-5.952380952380952E-4,8.417508417508418E-4,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059],p=b;if(0>=b)return 1E308;if(1===b||2===b)return 0;7>=b&&(g=Rb(7-b),p=b+g);e=1/(p*p);a=2*vb;f=c[9];for(k=8;0<=k;k--)f=f*e+c[k];if(e=f/p+.5*Ba(a)+(p-.5)*Ba(p)-p,7>=b)for(k=1;k<=g;k++)e-=Ba(p-1),--p;return e}function F(b,e){var a,f,k,g=f=b;return e<g&&(g=e),e>f&&(f=e),0>g?NaN:0===g?za:10<=g?(a=O(g)+O(f)-O(g+f),-.5*Ba(f)+.9189385332046728+a+(g-.5)*Ba(g/(g+f))+f*H(-g/(g+f))):10<=f?(a=O(f)-O(g+f),k=L(g),Pa(k)?NaN:Ea(k)+a+g-g*Ba(g+f)+(f-.5)*H(-g/(g+f))):Ba(I(g)*(I(f)/I(g+f)))}function G(b,e,a,f){var k,g,c,p,h,m,v,x,d,t;k=b.ge(e);g=b.ge(a);for(p=0;1E3>p&&!(0>k&&0<g||0<k&&0>g);p++)Wa(k)<=Wa(g)?(c=e,e+=2*(e-a),0>e&&(e=0),a=c,g=k,k=b.ge(e)):(c=a,a+=2*(a-e),e=c,k=g,g=b.ge(a));if(0===k)return e;if(0===g)return a;if(!(0>k&&0<g||0<k&&0>g))return f.jl=!0,0;f=e;c=k;h=a;m=g;v=e;x=k;d=.5*(e+a);t=!0;for(p=0;500>p&&1E-307<Wa(x)&&a-e>2.22045E-16*Db(Wa(e),Wa(a));)t&&(c!==m&&m!==x&&x!==c?(d=f*x*m/(x-c)/(m-c)+v*m*c/(m-x)/(c-x)+h*c*x/(c-m)/(x-m),t=e<d&&d<a):t=!1),t||(d=.5*(e+a),h=a,m=g,t=!0),f=h,h=v,v=d,c=m,m=x,x=b.ge(d),0>k&&0<x||0<k&&0>x?(a=v,g=x):(e=v,k=x),t=t&&2*Wa(x)<=Wa(m),++p;return v}function q(b,e){var a,f,k,g,c=Ja(e);for(a=0;a<c;a++)f=Ea(e[a]),k=f-b.M,g=k/(b.N+1),b.M+=g,b.Q+=b.N*k*g,b.N++,b.kl+=f}function D(b){var e,a=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5.395239384953E-6],f=1.000000000190015,k=b,g=b+5.5,g=g-(b+.5)*Ba(g);for(e=0;5>=e;e++)f+=a[e]/++k;return-g+Ba(2.5066282746310007*f/b)}function A(b,e){var a,f,k,g,c=Ja(e);for(g=0;g<c;g++)a=e[g],a!==db&&(f=a-b.M,k=f/(b.N+1),b.M+=k,b.Q+=b.N*f*k,b.N++,b.kl+=a)}function r(b){b.sort(function(b,e){return b-e})}function n(b,e){var a,f;for(a=0;a<Ja(b);a++)f=b[a],f!==db&&e.push(f);r(e)}function w(b){var e=[],a;for(a=0;a<Ja(b);a++)n(b[a],e);return e}function z(b,e,a){var f,k,g,p,h,v,x,d,t,y,n,B=Math.expm1||function(b){return Sa(b)-1},q=Math.log1p||function(b){return Ba(1+b)};return 0>=b?0:1<=b?1:1===a?ab(b,e):1===e?-B(a*q(-b)):(k=.5-b+.5,g=q(-b),p=b,h=Ba(b),v=e,x=a,d=b>e/(e+a),d&&(v=a,x=e,p=k,k=b,h=g,g=Ba(b)),f=C(p,v,x),f/=v,t=v/(v+x),y=x/(v+x),n=1<v&&1<x&&.97>t&&.97>y?c(p,v,x)*p*k:Sa(v*h+x*g-m(!1,v,x)),f*=n,d&&(f=.5-f+.5),1<f&&(f=1),0>f&&(f=0),f)}function C(b,e,a){var f,k,g,c,p,h,m,v,x=1,d=1,t=1-(e+a)/(e+1)*b;0===t?(f=0,k=1,h=1):(f=1,k=1/t,h=f*k);m=p=1;v=!1;do g=e+2*m,c=m*(a-m)*b/((g-1)*g),g=-(e+m)*(e+a+m)*b/(g*(g+1)),x=(f+c*x)*k,d=(t+c*d)*k,f=x+g*f*k,t=d+g*t*k,0!==t&&(k=1/t,p=f*k,v=Wa(h-p)<2.22045E-16*Wa(h)),h=p,m+=1;while(5E4>m&&!v);return h}function c(b,e,a){var f,k,g,c,p,h,v;return 1===e?1===a?1:2===a?-2*b+2:.01>=b?a+a*Sa((a-1)*Ba(1-b))-1:a*ab(.5-b+.5,a-1):1===a?2===e?e*b:e*ab(b,e-1):0>=b&&!(1>e&&0===b)||1<=b&&!(1>a&&1===b)?0:(f=Ba(R(2)),k=Ba(R(1)),g=Ba(1-b),c=Ba(b),p=(e-1)*c,h=(a-1)*g,v=m(!1,e,a),p<f&&p>k&&h<f&&h>k&&v<f&&v>k&&p+h<f&&p+h>k?ab(b,e-1)*ab(.5-b+.5,a-1)/m(!0,e,a):Sa(p+h-v))}function m(b,e,f){var k,g,c,p,h,m,v=f,x=e;return e>f&&(v=[x,x=v][0]),b&&171.624376956302>v+x?a(v)/a(v+x)*a(x):(k=y(v),k/=y(v+x),k*=y(x),g=v+x+5.52468004077673,c=b?k*Ua(g/(v+5.52468004077673)/(x+5.52468004077673)):Ba(k)+.5*(Ba(g)-Ba(v+5.52468004077673)-Ba(x+5.52468004077673)),p=x/(v+5.52468004077673),h=v/(x+5.52468004077673),m=-v*Ba(1+p)-x*Ba(1+h)-5.52468004077673,b?Sa(m)*c:m+c)}function h(b){var e=y(b),a=b+6.02468004077673-.5,f=ab(a,b/2-.25);return e*=f,e/=Sa(a),e*=f,20>=b&&b===oc.wk(b)&&(e=Tb(e)),e}function a(b){var e,a,f=Ba(vb),k=Ba(R(2));return 171.624376956302<b?Xa:1<=b?h(b):.5<=b?h(b+1)/b:-.5<=b?(e=h(b+2)-Ba(b+1)-Ba(Wa(b)),e>=k?Xa:h(b+2)/(b+1)/b):(a=h(1-b)+Ba(Wa(tc(vb*b))),a-f>=k?0:0>a&&f-a>k?Xa:Sa(f-a)*(0>tc(vb*b)?-1:1))}function B(b){return 171.624376956302<=b?h(b):1<=b?Ba(h(b)):.5<=b?Ba(h(b+1)/b):h(b+2)-Ba(b+1)-Ba(b)}function y(b){var e,a,f,k=[2.353137688041076E10,4.29198036426491E10,3.571195923735567E10,1.792103442603721E10,6.039542586352028E9,1.4397204073117216E9,2.4887455786205417E8,3.1426415585400194E7,2876370.6289353725,186056.26539522348,8071.672002365816,210.82427775157936,2.5066282746310002],g=[0,39916800,120543840,150917976,105258076,45995730,13339535,2637558,357423,32670,1925,66,1];if(1>=b)for(e=k[12],a=g[12],f=11;0<=f;--f)e*=b,e+=k[f],a*=b,a+=g[f];else for(b=1/b,e=k[0],a=g[0],f=1;12>=f;++f)e*=b,e+=k[f],a*=b,a+=g[f];return e/a}function t(b,e){var a=b*Ba(e)-e-B(b),a=Sa(a);if(e>b+1){var f=R(3),k=.5*f,g=1/f,c=0,p,h=1-b,m=e+2-b,v,x=e+1,d=1,t=m*e,y=e,n=x/t,q=!1,T=0;do c+=1,h+=1,p=h*c,m+=2,v=x*m-d*p,p=t*m-y*p,0!==p&&(T=v/p,q=Wa((n-T)/T)<=k,n=T),d=x,x=v,y=t,t=p,Wa(v)>g&&(d*=f,x*=f,y*=f,t*=f);while(!q&&1E4>c);a=1-a*(q?n:qb)}else{f=.5*R(3);k=b;c=g=1/b;h=1;do k+=1,g=g*e/k,c+=g,h+=1;while(g/c>f&&1E4>=h);a*=1E4<h?qb:c}return a}function E(b,e,a,f){var k,g,c,p=wb(a,b);return Pa(p)?p:(k=Ea(p),p=wb(f-a,e-b),Pa(p)?p:(g=Ea(p),p=wb(f,e),Pa(p)?p:(c=Ea(p),eb(k*g/c))))}function M(b,e,a){var f,k,g=z(e/(e+b*b),e/2,.5);switch(a){case 1:return.5*g;case 2:return g;case 3:return ab(1+b*b/e,-(e+1)/2)/(Ua(e)*m(!0,.5,e/2));case 4:return f=e/(b*b+e),k=.5*z(f,.5*e,.5),0>b?k:1-k}return qb}function p(b,e,a){var f={jl:!1};b=function(b,e,a){return{ge:function(f){return b-M(f,e,a)}}}(b,e,a);e=G(b,.5*e,e,f);return f.jl?mb:e}function g(b,e){var a=!1,f=0,k,g,c,p,h;for(g=0;g<Ja(e);g++)for(h=e[g],c=0;c<Ja(h);c++)if(p=h[c],Mb(p)||xb(p)||Eb(p))k=Eb(p)?0:Ea(p),(!a||b&&k>f||!b&&k<f)&&(f=k),a=!0;else if(Pa(p))return p;return f}function f(b,e,a){var f,k=[];return n(e,k),f=Ja(k),0>=a||f<a?Xa:b?k[f-a]:k[a-1]}function k(b,e,a,f){var k,g,c,p=0,h=0,m=0;for(k=0;k<Ja(e);k++)g=e[k],g!==db&&(g<a?p++:a<g?m++:h++);return 0===h?mb:(c=(0===f?m:p)+1,b?c:c+(h-1)/2)}function x(b,e,a){var f,k,g,c,p;g=k=f=0;a:{var h,m,v,x,d,t;for(x=0;x<Ja(b);x++)for(h=b[x],d=0;d<Ja(h);d++)if(v=h[d],null===v)g++;else if(Eb(v)){if(t={value:0},kb.Th(v,t))m=t.value,f+=m,k+=m*m;else if(!h.isArray&&!h.isReference){b=qb;break a}g++}else{if(Pa(v)){b=v;break a}Mb(v)&&(m=Ea(v),f+=m,k+=m*m,g++)}b=void 0}return c=b,Pa(c)?c:g<=e?hb:(p=Db(0,(g*k-f*f)/(g*(g-e))),p=a?Ua(p):p,eb(p))}function W(b,e,a){var f,k,g,c,p,h=p=c=0,m=0,v=Ja(e);if(v!==Ja(a))return mb;for(g=0;g<v;g++)f=e[g],k=a[g],f!==db&&k!==db&&(c+=f,p+=k,m++);if(1>=m)return hb;c/=m;p/=m;for(g=0;g<v;g++)f=e[g],k=a[g],f!==db&&k!==db&&(h+=(f-c)*(k-p));return eb(b?h/m:h/(m-1))}function P(b,e){var a,f,k,g,c=b?1:0,p=0;for(k=0;k<Ja(e);k++)for(a=e[k],g=0;g<Ja(a);g++)if(f=a[g],f!==db){if(0>=f)return Xa;c=b?c*f:c+1/f;p++}return b?0>=p?hb:eb(ab(c,1/p)):0===c?hb:eb(p/c)}function V(b,e,a,f,k){var g,c,p,h,m,v,x,d,t,y,n,B,q,T,N,w,r,E,z,P,C;d=e.rowCount;x=e.colCount;if(b)a=void 0!==a?ub(a,1,!1,!0,!0):e;else{if(void 0!==a)g=a;else{t=[];for(g=0;g<d;g++)for(t[g]=[],c=0;c<x;c++)t[g][c]=g*x+c+1;g=new Fb(t)}a=ub(g,1,!1,!0,!0)}if(p=a.rowCount,h=a.colCount,d===p&&x===h&&(f||!k)){x=b?p*h:Ea(p*h);for(g=N=T=q=B=n=0;g<p;g++)for(c=0;c<h;c++)d=a[g][c],t=e[g][c],b&&(t=Ba(t)),n+=d,B+=d*d,q+=t,T+=t*t,N+=d*t;return y=x*B-n*n,v=f?(x*N-n*q)/y:N/B,w=f?(q*B-n*N)/y:0,b&&(v=Sa(v),w=Sa(w)),m=[[v,w]],k&&(m[1]=[],m[2]=[],m[3]=[],m[4]=[],r=x*B-n*n,E=x*T-q*q,z=x*N-n*q,P=T-w*q-v*N,C=z*z/(r*E),3>x?(m[1][0]=Xa,m[1][1]=Xa,m[2][1]=Xa,m[3][0]=Xa):(m[1][0]=Ua(P*x/(r*(x-2))),m[1][1]=Ua(P*B/(r*(x-2))),m[2][1]=Ua((E-z*z/r)/(x*(x-2))),m[3][0]=1===C?Xa:C*(x-2)/(1-C)),m[2][0]=C,m[3][1]=x-2,m[4][0]=E/x-P,m[4][1]=P),new Fb(m)}if(1===x&&d===p||1===d&&x===h){t=[];d=[];y=1===x;x=p;v=h;for(g=0;g<x;g++)t[g]=f?e[g][0]:e[0][g],b&&(t[g]=Ba(t[g]));for(g=0;g<x;g++)for(d[g]=[],c=0;c<v;c++)d[g][c]=y?a[g][c]:a[c][g];p=[];for(m=0;m<v+1;m++)p[m]=[];for(g=0;g<v+1;g++)for(c=0;c<v+2;c++)p[g][c]=0;h=[];for(g=0;g<v+2;g++)h[g]=0;e=k?[]:null;for(m=0;m<x;m++)for(h[v+1]+=t[m]*t[m],p[0][v+1]+=t[m],h[0]=p[0][v+1],g=0;g<v;g++)for(p[0][g+1]+=d[m][g],p[g+1][0]=p[0][g+1],p[g+1][v+1]+=d[m][g]*t[m],h[g+1]=p[g+1][v+1],c=g;c<v;c++)p[c+1][g+1]+=d[m][g]*d[m][c],p[g+1][c+1]=p[c+1][g+1];if(p[0][0]=x,k){for(g=0;g<v+1;g++)for(e[g]=[],c=0;c<v+1;c++)e[g][c]=0;for(g=0;g<v+1;g++)e[g][g]=1}d=f?0:1;for(g=0;g<v+1;g++){if(0===p[g][g]){m=!1;for(c=g+1;!m&&c<v+1;c++)if(0!==p[c][g]){for(m=0;m<v+2;m++)y=p[g][m],p[g][m]=p[c][m],p[c][m]=y;if(k)for(m=0;m<v+1;m++)y=e[g][m],e[g][m]=e[c][m],e[c][m]=y;m=!0}if(!m)return Xa}t=1/p[g][g];for(m=d;m<v+2;m++)p[g][m]*=t;if(k)for(m=d;m<v+1;m++)e[g][m]*=t;for(c=d;c<v+1;c++)if(c!==g){t=-p[c][g];for(m=d;m<v+2;m++)p[c][m]+=t*p[g][m];if(k)for(m=d;m<v+1;m++)e[c][m]+=t*e[g][m]}!f&&(p[0][v+1]=0)}m=b?[[],v+1]:[[]];for(g=0;g<v+1;g++)m[0][g]=b?Sa(p[v-g][v+1]):p[v-g][v+1];if(k){if(b)m[1]=[],m[2]=[],m[3]=[],m[4]=[];else for(g=1;5>g;g++)for(m[g]=[],c=0;c<v+1;c++)m[g][c]=0;c=h[v+1]-h[0]*h[0]/x;k=h[v+1];for(g=0;g<v+1;g++)k-=p[g][v+1]*h[g];if(n=c-k,m[2][0]=0===c?Xa:n/c,m[4][0]=n,m[4][1]=k,y=f?x-v-1:x-v,0===y){for(g=0;g<v+1;g++)m[1][g]=Xa;m[2][1]=Xa}else{x=k/Ea(y);!f&&(m[1][v]=mb);for(g=d;g<v+1;g++)m[1][v-g]=Ua(x*e[g][g]);m[2][1]=Ua(x)}m[3][0]=0===k?Xa:Ea(y)*n/(k*Ea(v));m[3][1]=Ea(y);for(g=2;5>g;g++)for(c=2;c<v+1;c++)m[g][c]=mb}return!b&&(m=[m[0]]),new Fb(m)}return Xa}function Z(b,e){var a,f,k,g,c,p=f=0,h=0,m=[];for(k=0;k<Ja(e);k++)for(c=e[k],m.push(c),g=0;g<Ja(c);g++)a=c[g],a!==db&&(f+=a,h++);f/=h;for(k=0;k<Ja(e);k++)for(c=m[k],g=0;g<Ja(c);g++)a=c[g],a!==db&&(p+=b?(a-f)*(a-f):Wa(a-f));return b?eb(p):0===h?hb:eb(p/h)}function e(){return Zb(arguments,!0,7)}function b(b,e){var a,f,k;return b=ub(b,1,!0,!0,!1,!0),e=Ea(e),b.isError?b[0]:b.isConvertError||Ab(e)?qb:(a=[],n(b,a),!Ja(a)||0>e||1<e?Xa:(f=e*(Ja(a)-1),k=f%1,f=uc(""+f),0===k?a[f]:Ea(a[f])+k*(Ea(a[f+1])-Ea(a[f]))))}function v(){var b,e,a,f=null,k=0,g=w(arguments),c=Ja(g);for(b=0;b<c;b++){for(e=a=0;e<c;e++)e!==b&&g[e]===g[b]&&a++;a>k&&(k=a,f=g[b])}return 0===k?mb:f}function N(b,e,a){var f=gc.CalcArrayHelper;if(kb.Fh(b)){if(1!==f.getLength(b))return qb;b=f.getValueByIndex(b,0)}return Ab(b=Ea(b))?qb:k(!0,e,b,a)}function S(b,e,a){return d(b,e,a,!0)}function X(e,a){var f=vc(a,[0,1,2,3,4]);return 0>f?Xa:b(e,.25*f)}function Y(){return Zb(arguments,!0,8)}function ka(){return Zb(arguments,!0,10)}function ja(){return Zb(arguments,!0,11)}function oa(b,e){return W(!0,b,e)}function ma(b,e,a){b=wa(b/2);return Pa(b)?b:-Ea(b)*(e/Ua(a))}function ea(b,e,a,f,k){function g(b){var e,a=b+5.5;return a-=(b+.5)*Ba(a),e=1.000000000190015+76.18009172947146/(b+1),e-=86.50532032941678/(b+2),e+=24.01409824083091/(b+3),e-=1.231739572450155/(b+4),e+=.001208650973866179/(b+5),e-=5.395239384953E-6/(b+6),Ba(2.506628274631001*e/b)-a}var c,p,h,m,v,x,d,t,y;return b<f||k<b||f===k?Xa:(c=(b-f)/(k-f),p=g(e+a),h=g(e),m=g(a),v=Ba(c),x=Ba(1-c),d=Sa(p-h-m+e*v+a*x),t=d*J(a,e,1-c)/a,y=c<(e+1)/(e+a+2)?t:1-t,eb(y))}function ga(b,e,a,f,k){var g,c,p,h,m,v,x,d,t,y,n;c=1-2.22E-16;var B=b,q=F(e,a);.5>=b?(p=b,v=e,d=a,g=0):(p=1-b,v=a,d=e,g=1);b=Ua(-Ba(p*p));n=b-(2.30753+.27061*b)/(1+(.99229+.04481*b)*b);1<v&&1<d?(b=(n*n-3)/6,x=1/(v+v-1),t=1/(d+d-1),h=2/(x+t),y=n*Ua(h+b)/h-(t-x)*(b+5/6-2/(3*h)),B=v/(v+d*Sa(y+y))):(b=d+d,t=1/(9*d),t=b*ab(1-t+n*Ua(t),3),0>=t?B=1-Sa((Ba((1-p)*d)+q)/d):(t=(4*v+b-2)/t,B=1>=t?Sa((Ba(p*v)+q)/v):1-2/(t+1)));b=1-v;t=1-d;a=0;h=1;3E-308>B?B=3E-308:B>c&&(B=c);e=Db(1E-300,ab(10,-13-2.5/(v*v)-.5/(p*p)));for(c=y=x=0;1E3>c;c++){n=B;m=v;var T=d,N=void 0,w,r,E=void 0,z,P=void 0,C=void 0,S,l=void 0,aa=void 0,V=void 0,M=0,W=S=0;w=0;if(0===M&&(M=R(3),S=Ba(M),W=R(1),w=Ba(W)),l=n,aa=m,V=T,aa/(aa+V)<n&&(l=1-l,aa=T,V=m),(aa+V)*l/(aa+1)<M)N=0,C=aa*Ba(Db(l,W))-Ba(aa)-F(aa,V),C>w&&0!==l&&(N=Sa(C)),l===n&&aa===m||(N=1-N);else{if(E=V-hc(V),0===E&&(E=1),C=aa*Ba(l)-F(E,aa)-Ba(aa),N=0,C>=w&&(N=Sa(C),P=N*aa,1!==E))for(T=Rb(Db(S/Ba(l),4)),S=1;S<=T;S++)C=S,P=P*(C-E)*l/C,N+=P/(aa+C);if(1<V){C=aa*Ba(l)+V*Ba(1-l)-F(aa,V)-Ba(V);E=Rb(Db(C/w,0));P=Sa(C-E*w);w=1/(1-l);z=V*w/(aa+V-1);r=0;T=Rb(V);V===T&&--T;for(S=1;S<=T&&!(1>=z&&P/M<=r);S++)C=S,P=(V-C+1)*w*P/(aa+V-C),1<P&&(--E,P*=W),0===E&&(r+=P);N+=r}l===n&&aa===m||(N=1-N);N=Db(fc(N,1),0)}n=N;n=(n-p)*Sa(q+b*Ba(B)+t*Ba(1-B));0>=n*a&&(x=Db(Wa(h),3E-308));m=1;for(a=0;1E3>a;a++){if(h=m*n,Wa(h)<x&&(y=B-h,0<=y&&1>=y)){if(x<=e||Wa(n)<=e)return 0!==g&&(B=1-B),eb((k-f)*B+f);if(0!==y&&1!==y)break}m/=3}if(y===B)break;B=y;a=n}return 0!==g&&(B=1-B),eb((k-f)*B+f)}function T(b,e,a,f){var k,g,c;if(e<b)return Xa;if(!f){if(k=1-a,g=ab(k,e),0===g){if(g=ab(a,e),0===g)return Xa;for(f=0;f<e-b&&0<g;f++)g*=Ea(e-f)/Ea((f+1)*k/a);return g}for(f=0;f<b&&0<g;f++)g*=Ea(e-f)/Ea((f+1)*a/k);return g}if(e===b)return 1;if(k=1-a,g=ab(k,e),0===g){if(g=ab(a,e),0===g)return Xa;c=1-g;for(f=0;f<e-b&&0<g;f++)g*=Ea(e-f)/Ea((f+1)*k/a),c-=g;return 0>c?0:c}c=g;for(f=0;f<b&&0<g;f++)g*=Ea(e-f)/Ea((f+1)*a/k),c+=g;return c}function fa(b,e,a){var f,k,g=1-e,c=ab(g,b);if(0===c){if(c=ab(e,b),0===c)return Xa;f=1-c;for(k=0;k<b&&f>=a;k++)c*=Ea(b-k)/Ea((k+1)*g/e),f-=c;return Ea(b-k)}f=c;for(k=0;k<b&&f<a;k++)c*=Ea(b-k)/Ea((k+1)*e/g),f+=c;return Ea(k)}function Fa(b,e){var a,f,k,g;a=Ba(Ua(vb));g=1/Ua(vb);var c=0,p=b,h=.5*p,m=0===e%2;if(1<e&&(c=Sa(-h)),f=Nb(-Ua(p)),Pa(f))return f;if(k=Ea(f),f=m?c:2*k,2<e){if(p=.5*(e-1),k=m?1:.5,20<h){a=m?0:a;for(g=Ba(h);k<=p;)a=Ba(k)+a,f+=Sa(g*k-h-a),k+=1;return f}a=m?1:g/Ua(h);for(g=0;k<=p;)a*=h/k,g+=a,k+=1;return g*c+f}return f}function aa(b,e){var a=ra(1-b,.5*e,2);return Ea(a)}function xa(b,e){var a,f,k,g,c=0;a=b.rowCount;f=b.colCount;if(a!==e.rowCount||f!==e.colCount)return mb;if(1<a&&1<f)a=(a-1)*(f-1);else if(1<a&&1===f)--a;else{if(!(1===a&&1<f))return mb;a=f-1}for(f=0;f<Ja(b);f++)if(k=b[f],g=e[f],k!==db&&g!==db){if(0===g)return hb;c+=(k-g)*(k-g)/g}return Fa(c,a)}function Ia(b,e,a){b=Sa(-e*b);return eb(a?1-b:e*b)}function la(b,e,a){b=ea(e*b/(e*b+a),.5*e,.5*a,0,1);return Pa(b)?b:1-Ea(b)}function pa(b,e,a){b=ga(1-(1-b),a/2,e/2,0,1);return Pa(b)?b:(1/Ea(b)-1)*(a/e)}function qa(b,e){var a,f,k,g,c,p,h={N:0,M:0,Q:0,kl:0};return A(h,b),g=h.N-1,1===h.N?hb:(a=h.Q/(h.N-1),0===a?hb:(h.N=0,h.M=0,h.Q=0,h.kl=0,A(h,e),c=h.N-1,1===h.N?hb:(f=h.Q/(h.N-1),0===f?hb:(p=la(a/f,g,c),Pa(p)?p:(k=2*(1-Ea(p)),1<k&&(k=2-k),k)))))}function ba(b,e,a,f){var k,g,c,p,h,m,v,x,d,t;if(!1===f)return k=ab(a,e),Ab(k)||!pc(k)?hb:(g=1/(k*I(e)),c=ab(b,e-1),p=Sa(-(b/a)),h=c*p,g*h);if(f=1/3,b/=a,0>=b)return Xa;if(1E3<e)return m=3*Ua(e)*(ab(b/e,f)+1/(9*e)-1),x=ia(m,0,1,!0),Pa(x)?x:Ea(x);if(1E8<b)return 1;if(1>=b||b<e){if(x=L(e+1),Pa(x))return x;a=e*Ba(b)-b-Ea(x);f=x=1;g=e;do g+=1,x=x*b/g,f+=x;while(2.220446049250313E-16<x);a+=Ba(f);f=0;-88<=a&&(f=Sa(a))}else{if(x=L(e),Pa(x))return x;a=e*Ba(b)-b-Ea(x);g=1-e;c=g+b+1;x=0;m=1;e=b;k=b+1;b*=c;for(f=k/b;;){if(g+=1,c+=2,x+=1,t=g*x,p=c*k-t*m,v=c*b-t*e,0<Wa(v)){if(d=p/v,Wa(f-d)<=fc(2.220446049250313E-16,2.220446049250313E-16*d))break;f=d}m=k;e=b;k=p;b=v;1E37<=Wa(p)&&(m/=1E37,e/=1E37,k/=1E37,b/=1E37)}a+=Ba(f);f=1;-88<=a&&(f=1-Sa(a))}return f}function ra(b,e,a){var f,k,g,c,p,h,m,v,x,d,t,y,n,B,q,T,N;if(2E-6>b)return 0;if(.999998<b)return za;if(m=2*e,g=e-1,N=L(e),Pa(N))return N;if(p=Ea(N),m<-1.24*Ba(b)){if(c=ab(b*e*Sa(p+.6931471805599453*e),1/e),5E-7>c)return NaN}else if(.32<m){if(N=Ka(b,0,1),Pa(N))return N;c=Ea(N);h=.222222/m;c=m*ab(c*Ua(h)+1-h,3);c>2.2*m+6&&(c=-2*(Ba(1-b)-g*Ba(.5*c)+p))}else{c=.4;f=Ba(1-b)+p+.6931471805599453*g;do m=c,h=1+c*(4.67+c),v=c*(6.73+c*(6.66+c)),q=-.5+(4.67+2*c)/h-(6.73+c*(13.32+3*c))/v,c-=(1-Sa(f+.5*c)*v/h)/q;while(.01<Wa(m/c-1))}for(T=1;20>=T;T++){if(m=c,h=.5*c,N=ba(h,e,1,!0),Pa(N))return N;if(v=b-Ea(N),q=v*Sa(.6931471805599453*e+p+h-g*Ba(c)),k=q/c,f=.5*q-k*g,x=(210+f*(140+f*(105+f*(84+f*(70+60*f)))))/420,d=(420+f*(735+f*(966+f*(1141+1278*f))))/2520,t=(210+f*(462+f*(707+932*f)))/2520,y=(252+f*(672+1182*f)+g*(294+f*(889+1740*f)))/5040,n=(84+2264*f+g*(1175+606*f))/2520,B=(120+g*(346+127*g))/5040,c+=q*(1+.5*q*x-k*g*(x-k*(d-k*(t-k*(y-k*(n-k*B)))))),5E-7<Wa(m/c-1))break}return.5*a*c}function ya(b){return L(b)}function sa(b,e,a){var f;b=wa(b);return Pa(b)?b:(f=Ea(b),eb(Sa(e+a*f)))}function ia(b,e,a,f){return f?Nb((b-e)/a):eb(Sa(-((b-e)*(b-e))/(2*a*a))/(Ua(2*vb)*a))}function Ka(b,e,a){var f,k,g,c,p,h=b-.5;if(.42>=Wa(h))f=h*h,k=h*(((-25.44106049637*f+41.39119773534)*f-18.61500062529)*f+2.50662823884)/((((3.13082909833*f-21.06224101826)*f+23.08336743743)*f+-8.4735109309)*f+1);else{if(f=b,0<h&&(f=1-b),!(2.220446049250313E-16<f))return 1E-300<f?(k=-2*Ba(b),f=Ba(6.283185307179586*k),f=f/k+(2-f)/(k*k)+(-14+6*f-f*f)/(2*k*k*k),k=Ua(k*(1-f)),0>h?-k:k):0>h?-za:za;f=Ua(-Ba(f));k=(((2.32121276858*f+4.85014127135)*f-2.29796479134)*f-2.78718931138)/((1.63706781897*f+3.54388924762)*f+1);0>h&&(k=-k)}return g=(k-0)/1,c=.3989422804014327*Sa(-.5*g*g)/1,p=ia(k,0,1,!0),Pa(p)?p:(k-=(p-b)/c,e+a*k)}function wa(b){return Ka(b,0,1)}function Aa(b,e,a){var f=0;if(a)for(a=0;a<=b;a++)f+=Sa(-e)*ab(e,a)/yb.tk(a);else f=Sa(-e)*ab(e,b)/yb.tk(b);return eb(f)}function Va(b,e,a){var f,k,g,c,p,h,m,v;if(1!==a&&2!==a)return Xa;if(f=e,k=b/Ua(f),b=f/(f+b*b),g=f-2,c=f%2,p=1,h=1,f=1,m=2+c,v=m,2<=g)for(m=Rb(m);m<=g&&(h=h*b*(v-1)/v,p+=h,p!==f);m+=2)f=p,v+=2;return 1!==c?a*(1-(.5+.5*k*Ua(b)*p)):(1===e&&(p=0),a*(1-(.5+.3183098862*(k*b*p+$b(k)))))}function $a(b,e){var a,f,k,g,c,p,h,m,v,x,d=b/2;if(1E20<e)return wa(d);if(.5>d?(v=0,p=2*d):(v=1,p=2*(1-d)),1E-12>Wa(e-2))h=0<p?Ua(2/(p*(2-p))-2):za;else if(Ea(e)<1+1E-12)0<p?(c=1.5707963267948966*(p+1),h=-Ub(c)):h=za;else{if(a=1/(e-.5),f=48/(a*a),k=((20700*a/f-98)*a-16)*a+96.36,g=((94.5/(f+k)-3)/f+1)*Ua(1.5707963267948966*a)*e,m=ab(g*p,2/e),m>.05+a){if(x=wa(.5*p),Pa(x))return x;c=Ea(x);m=c*c;5>e&&(k+=.3*(e-4.5)*(c+.6));m=(((((.4*m+6.3)*m+36)*m+94.5)/((((.05*g*c-5)*c-7)*c-2)*c+f+k)-m-3)/f+1)*c;m*=a*m;m=.002<m?Sa(m)-1:.5*m*m+m}else m=((1/(((e+6)/(e*m)-.089*g-.822)*(e+2)*3)+.5/(e+4))*m-1)*(e+1)/(e+2)+1/m;h=Ua(e*m)}return 0!==v&&(h=-h),eb(h)}function Da(b,e,a,f){var k,g,c,p,h,m,v,x,d;h={N:0,M:0,Q:0,kl:0};if(1!==a&&2!==a)return Xa;if(1===f){if(Ja(b)!==Ja(e))return mb;v=Ja(b);for(f=0;f<v;f++)b[f]-=e[f];for(f=g=m=c=e=0;f<v;f++)x=b[f],h=x-g,p=h/(c+1),g+=p,m+=c*h*p,c++,e+=x;if(0===c-1||0===c)return hb;if(k=Ua(m/(c-1)),Ab(k)||!pc(k))return Xa;f=e/c/(k/Ua(c));--c}else h.N=0,h.M=0,h.Q=0,h.kl=0,q(h,b),k=h.Q/(h.N-1),b=h.kl/h.N,p=h.N,h.N=0,h.M=0,h.Q=0,h.kl=0,q(h,e),g=h.Q/(h.N-1),e=h.kl/h.N,h=h.N,2!==f?(v=k/p/(k/p+g/h),c=1/(v*v/Ea(p-1)+(1-v)*(1-v)/Ea(h-1))):c=Ea(p+h-2),f=(b-e)/Ua(k/Ea(p)+g/Ea(h));f=Wa(f);var t;a:{b=.5*c;k=.5;c/=c+f*f;var y,n,B=0===c||1===c?0:Sa(D(b+k)-D(b)-D(k)+b*Ba(c)+k*Ba(1-c)),T=c>=(b+1)/(b+k+2);T&&(b=[k,k=b][0],c=1-c);f=b+k;v=b+1;e=b-1;h=1;p=1-f*c/v;4.450147717014403E-308>Wa(p)&&(p=4.450147717014403E-308);g=p=1/p;m=1;for(x=2;100>=m;m++,x+=2)if(t=m*(k-m)*c/((e+x)*(b+x)),p=1+t*p,4.450147717014403E-308>Wa(p)&&(p=4.450147717014403E-308),h=1+t/h,4.450147717014403E-308>Wa(h)&&(h=4.450147717014403E-308),p=1/p,g*=p*h,t=-(b+m)*(f+m)*c/((b+x)*(v+x)),p=1+t*p,4.450147717014403E-308>Wa(p)&&(p=4.450147717014403E-308),h=1+t/h,4.450147717014403E-308>Wa(h)&&(h=4.450147717014403E-308),p=1/p,y=p*h,g*=y,4.9E-324>Wa(Ea(y-1))){t=(n=B*g/b,T?1-n:n);break a}t=Xa}return d=t,Pa(d)?d:.5*a*Ea(d)}function va(b,e,a,f){var k=Sa(-ab(b/a,e));return eb(f?1-k:e/ab(a,e)*ab(b,e-1)*k)}function Ra(b,e,a){var f,k,g,c,p,h,m=0,v=0,x=0,d=0;if(void 0!==a&&Ab(m=Ea(a)))return qb;for(c=0;c<Ja(b);c++)p=b[c],p!==db&&(g=Ea(p),v+=g,x+=g*g,d++);return 0===d?mb:1===d?hb:(f=v/d,k=void 0!==a?m:Ua((d*x-v*v)/(d*(d-1))),0===k?hb:(h=Nb((f-e)/(k/Ua(d))),Pa(h)?h:eb(1-Ea(h))))}function jb(b,e){var a,f,k,g,c=Ja(b);return r(b),c?(a=e*(c+1)-1,f=a%1,0>a||c-1<a?Xa:(k=hc(a),g=b[k],0===f?g:g+f*(b[k+1]-g))):Xa}var Ta,ib,Ga,bb,Na,Ya,ta,fb,ua,Ha,na,gb,Za,cb,La,da,Oa,ca,nb,Qa,Ca,pb,Wb,Hb,Gb,Cb,Qb,Xb,Yb,Ib,dc,Jb,Kb,cc,Bb,Sb,ob,mc,Ob,Pb,lc,Vb,kc,sb,tb,bc,qc,lb,rb,rc,zb,sc,Lb,ec=l(26),gc=l(33),yb=gc.Functions,Ja=ec.k.ac,vc=ec.j.Ea,Ab=isNaN,pc=isFinite,uc=parseInt,ab=Math.pow,Db=Math.max,fc=Math.min,hc=Math.floor,tc=Math.sin,Ub=Math.tan,vb=Math.PI,$b=Math.atan,Sa=Math.exp,Wa=Math.abs,Ua=Math.sqrt,Ba=Math.log,Tb=Math.round,ic=gc.Errors,hb=ic.DivideByZero,qb=ic.Value,mb=ic.NotAvailable,Xa=ic.Number,Fb=gc.CalcArray,kb=gc.Convert,eb=kb.Nh,ub=kb.Ph,Rb=kb.Rh,Ea=kb.Pa,oc=yb.Fk,wb=oc.Bk,jc=oc.xk,Mb=kb.Na,Pa=kb.vf,Ma=yb.rk,Zb=yb.sk,Nb=yb.qk,xb=yb.ik,Eb=yb.jk,ac=yb.Na,za=yb.hk,db=kb.CalcConvertedError,ha=yb.ak;Ta={Hi:7};ib={_i:!0,Hi:7};Ga={Hi:2};bb={Hi:2,aj:"\x3c 1"};Na={Hi:2,aj:"\x3c 0"};Ya={Hi:2,aj:["\x3c 1","\x3e 10000000000"]};ta={Hi:0};fb={Hi:0,aj:["\x3c 0","\x3e\x3d 1"]};ua={Hi:0,aj:["\x3c\x3d 0","\x3e\x3d 1"]};Ha={Hi:0,aj:"\x3c\x3d 0"};na={_i:0,Hi:0};gb={_i:1,Hi:0};Za={Hi:0,aj:["\x3c 0","\x3e 1"]};cb={Hi:0,aj:"\x3c 0"};La={Hi:0,aj:["\x3c 1","\x3e 10000000000"]};da={Hi:0,aj:["\x3c 1","\x3e\x3d 10000000000"]};Oa={Hi:4,Ii:1,Ji:!0,Ki:!0,Mi:!0};ca={Hi:4,Ii:1,Ji:!0,Ki:!0};nb={Hi:4,Ii:1,Ji:!0,Ki:!0,Mi:!0,Xi:!0};Qa={Hi:4,Ii:1,Ji:!0,Ki:!0,Xi:!0};Ca={Hi:4,Ii:1,Ki:!0,Mi:!0};pb={Hi:4,Ii:0,Ji:!0};Wb={Hi:4,Ii:1,Ji:!0};Hb={Hi:4,Ii:1,Ji:!0,Ki:!0,Li:!0};Gb={Hi:4,Ii:0,Ji:!0,Ki:!0,Xi:!0};Cb={Hi:4,Ii:0,Ji:!0,Ki:!0,Mi:!0,Xi:!0};Qb={Hi:4,Ii:1,Ki:!0,Li:!0};Xb=[Oa,{Hi:2}];Yb=[ca,Ga];Ib=[Oa,ta,{_i:3,Hi:2,aj:"\x3c 1"}];dc=[ua,Ha,bb];Jb=[ua,Ha,Ha,na,gb];Kb=[Na,Na,Za,Ta];cc=[Na,Za,ua];Bb=[cb,La];Sb=[Za,Ya];ob=[ca,ca];mc=[cb,Ha,Ta];Ob=[cb,da,da];Pb=[Za,da,da];lc=[Oa,Oa];Vb=[cb,Ha,Ha,Ta];kc=[Za,Ha,Ha];sb=[Za,ta,Ha];tb=[ta,ta,Ha,Ta];bc=[Wb,Wb];qc=[{Hi:2,aj:"\x3c\x3d 0"},Ha,Ta];lb=[cb,bb];rb=[Hb,Hb,Ga,{Hi:2,aj:["\x3c 1","\x3e 3"]}];rc=[cb,Ha,Ha,Ta];zb=[Oa,ta];sc=[Qb,{},ib,{_i:!1,Hi:7}];Lb=[{},ca,na];ha("TREND",function(b,e,a,f){e=void 0!==e?ub(e,0,!1,!0,!1):b;a=void 0!==a?ub(a,0,!1,!0,!1):e;var k,g;for(k=0;k<b.rowCount;k++)for(g=0;g<b.colCount;g++)if(!Mb(b[k][g]))return qb;for(k=0;k<e.rowCount;k++)for(g=0;g<e.colCount;g++)if(!Mb(e[k][g]))return qb;for(k=0;k<a.rowCount;k++)for(g=0;g<a.colCount;g++)if(!Mb(a[k][g]))return qb;return ec.qc(b,e,a,f,Ea,Fb,qb,mb)},1,4,[{Hi:4,Ii:0,Ki:!0},{},{},ib],[0,1,2],[0,1,2],{bk:[1,2,3]});ha("GROWTH",function(b,e,a,f){return e=void 0!==e?ub(e,1,!1,!0,!0):b,a=void 0!==a?ub(a,1,!1,!0,!0):e,ec.sc(b,e,a,f,Fb,Xa,mb)},1,4,[Qb,{},{},ib],"!\x3d 3","!\x3d 3",{bk:[1,2,3]});ha("FORECAST",function(b,e,a){var f,k,g,c,p,h=0,m=0,v=0,x=0,d=Ja(e),t=0;if(d!==Ja(a))return mb;for(f=0;f<d;f++)k=e[f],g=a[f],k!==db&&g!==db&&(h+=k,m+=g,v+=g*g,x+=g*k,t++);return 0===t?hb:0===t*v-m*m?hb:(c=(t*x-m*h)/(t*v-m*m),p=h/t-m/t*c,eb(p+c*b))},3,3,[ta,ca,ca],"\x3e 0","\x3e 0");ha("AVERAGE",function(){return Ma(arguments,!0,1)},1,void 0,void 0,-1,-1);ha("STDEV",e,1,void 0,void 0,-1,-1);ha("STDEV.S",e,1,void 0,void 0,-1,-1);ha("PERCENTILE",b,2,2,void 0,0,0);ha("PERCENTILE.INC",b,2,2,void 0,0,0);ha("MAX",function(){return Ma(arguments,!0,4)},1,void 0,void 0,-1,-1);ha("MAXA",function(){return g(!0,arguments)},1,void 0,Gb,-1,-1);ha("MIN",function(){return Ma(arguments,!0,5)},1,void 0,void 0,-1,-1);ha("MINA",function(){return g(!1,arguments)},1,void 0,Gb,-1,-1);ha("LARGE",function(b,e){return f(!0,b,e)},2,2,Yb,0,0);ha("SMALL",function(b,e){return f(!1,b,e)},2,2,Yb,0,0);ha("AVERAGEA",function(){var b,e,a,f,k=arguments,g=0,c=0;for(b=0;b<Ja(k);b++)for(f=k[b],e=0;e<Ja(f);e++)a=f[e],Mb(a)||xb(a)?(g+=Ea(a),c++):(null===a||Eb(a))&&c++;return 0===c?hb:eb(g/c)},1,void 0,Cb,-1,-1);ha("AVERAGEIF",function(b,e,a){function f(b,e,a){var f,k,g=0,c=0,p=jc(e);if(b.rowCount!==a.rowCount||b.colCount!==a.colCount)return qb;for(e=0;e<Ja(b);e++)f=b[e],p&&p(f)&&(k=a[e],k!==db&&(g+=k,c++));return 0===c?hb:eb(g/c)}function k(b,e,a,k){var g,c,p,h=b?e.rowCount:e.getRowCount(0),m=b?e.colCount:e.getColumnCount(0),v=[];for(g=0;g<h;g++)for(v[g]=[],c=0;c<m;c++)p=b?e.getValue(g,c):e.getValue(0,g,c),v[g][c]=f(a,p,k);return new Fb(v)}if(void 0!==a){if(b=ub(b,0,!0,!1,!1),a=ub(a,1,!0,!0,!1),a.isError)return a[0]}else{if(b=ub(b,1,!0,!0,!1),b.isError)return b[0];a=b}return kb.Fh(e)?k(!1,e,b,a):kb.Ca(e)?k(!0,e,b,a):f(b,e,a)},2,3,void 0,[0,2],[0,2],{bk:2});ha("AVERAGEIFS",function(b){var e,a,f,k,g;g=arguments;var c=0,p=0,h=b.length,m=g.length,v=[];v.push(b);for(f=1;f<m;f+=2){if(a=ub(g[f],0,!0,!1,!1),a.isError)return a[0];v.push(a);k=g[f+1];k=jc(k);v.push(k)}for(a=0;a<h;a++)if(e=b[a],e!==db){g=!0;for(f=1;f<m&&(k=v[f+1],g=k(v[f][a]),g);f+=2);g&&(c+=e,p++)}return 0===p?hb:eb(c/p)},3,void 0,ca,[0,"%\x3d 1"],[0,"%\x3d 1"]);ha("MEDIAN",function(){var b=w(arguments),e=Ja(b);return 0===e?Xa:0===e%2?(Ea(b[e/2-1])+Ea(b[e/2]))/2:b[uc(""+e/2)]},1,void 0,nb,-1,-1);ha("MODE",v,1,void 0,nb,-1,-1);ha("MODE.SNGL",v,1,void 0,nb,-1,-1);ha("GEOMEAN",function(){return P(!0,arguments)},1,void 0,Qa,-1,-1);ha("HARMEAN",function(){return P(!1,arguments)},1,void 0,nb,-1,-1);ha("TRIMMEAN",function(b,e){var a,f,k,g=0,c=[];n(b,c);for(a=f=0;a<c.length;a++)c[a]!==db&&f++;a=f;for(k=f=uc(""+a*e/2);k<a-f;k++)g+=Ea(c[k]);return g/(a-2*f)},2,2,[Oa,fb],0,0);ha("FREQUENCY",function(b,e){var a,f,k,g,c,p,h,m,v,x,d,t=0;v=e.rowCount;x=e.colCount;for(a=0;a<v;a++)for(f=0;f<x;f++)e[a][f]!==db&&t++;g=b.rowCount;c=b.colCount;p=[];h=[];m=t+1;for(a=t=0;a<v;a++)for(f=0;f<x;f++)k=e[a][f],k!==db&&(p[t++]=Ea(k));v=p.slice(0);r(p);for(a=0;a<m;a++)h[a]=[0];for(a=0;a<g;a++)for(f=0;f<c;f++)if(k=b[a][f],Mb(k)){m=Ea(k);x=!1;for(d=0;!x&&d<t;d++)m<=p[d]&&(h[v.indexOf(p[d])][0]++,x=!0);x||h[t][0]++}return new Fb(h)},2,2,[Ca,Ca],-1,-1);ha("RANK",N,2,3,Lb,[0,1],[0,1],{bk:2});ha("RANK.EQ",N,2,3,Lb,[0,1],1,{bk:2});ha("KURT",function(){var b,e,a,f,k,g;b=arguments;for(var c=k=0,p=0,h=0,m=Ja(b),v=[];0<m;){g=b[0];v.push(g);for(f=0;f<Ja(g);f++)b=g[f],b!==db&&(k+=b,c+=b*b,h++);if(3>=h||(e=k/h,a=Ua((h*c-k*k)/(h*(h-1))),0===a))return hb;for(k=0;k<m;k++)for(g=v[k],f=0;f<Ja(g);f++)b=g[f],b!==db&&(p+=ab((b-e)/a,4));return eb(h*(h+1)*p/((h-1)*(h-2)*(h-3))-3*(h-1)*(h-1)/((h-2)*(h-3)))}},1,void 0,nb,-1,-1);ha("PERCENTRANK",S,2,3,Ib,0,0,{bk:2});ha("PERCENTRANK.INC",S,2,3,Ib,0,0,{bk:2});ha("PERCENTRANK.EXC",function(b,e,a){return d(b,e,a,!1)},2,3,Ib,0,0,{bk:2});ha("QUARTILE",X,2,2,Xb,0,0);ha("QUARTILE.INC",X,2,2,Xb,0,0);ha("COUNT",function(){return Ma(arguments,!0,2)},1,void 0,void 0,-1,-1,{gk:-1});ha("COUNTA",function(){return Ma(arguments,!0,3)},1,void 0,void 0,-1,-1,{gk:-1});ha("COUNTBLANK",function(b){var e,a=0;for(e=0;e<Ja(b);e++)null===b[e]&&a++;return a},1,1,pb,-1,-1);ha("COUNTIF",function(b,e){function a(b,e){var a,f,k=0,g=0===e||"*"===e,c=jc(e);for(a=0;a<Ja(b);a++)f=b[a],g&&null===f||!c||!c(f)||k++;return eb(k)}var f=0,k,g,c;if(e.isArray||e.isReference){for(c=0;c<Ja(e);c++){if(g=a(b,e[c]),Pa(g))return g;if(Ab(k=Ea(g)))return qb;f+=k}return f}return a(b,e[0])},2,2,[pb,pb],0,0);ha("COUNTIFS",function(b){var e,a,f,k;k=arguments;var g=0,c=Ja(b),p=Ja(k),h=[];for(a=0;a<p;a+=2){if(e=0===a?b:ub(k[a],0,!0,!1,!1),e.isError)return e[0];c=e.length;h.push(e);f=jc(k[a+1]);h.push(f)}for(e=0;e<c;e++){k=!0;for(a=0;a<p&&(f=h[a+1],k=f&&f(h[a][e]),k);a+=2);k&&g++}return eb(g)},2,void 0,{Hi:4,Ii:0,Ji:!0,Ki:!0},"%\x3d 0","%\x3d 0");ha("AVEDEV",function(){return Z(!1,arguments)},1,void 0,nb,-1,-1);ha("STDEVA",function(){return x(arguments,1,!0)},1,void 0,Cb,-1,-1);ha("STDEVP",Y,1,void 0,void 0,-1,-1);ha("STDEV.P",Y,1,void 0,void 0,-1,-1);ha("STDEVPA",function(){return x(arguments,0,!0)},1,void 0,Cb,-1,-1);ha("VAR",ka,1,void 0,void 0,-1,-1);ha("VAR.S",ka,1,void 0,void 0,-1,-1);ha("VARA",function(){return x(arguments,1,!1)},1,void 0,Cb,-1,-1);ha("VARP",ja,1,void 0,void 0,-1,-1);ha("VAR.P",ja,1,void 0,void 0,-1,-1);ha("VARPA",function(){return x(arguments,0,!1)},1,void 0,Cb,-1,-1);ha("COVAR",oa,2,2,ob,-1,-1);ha("COVARIANCE.P",oa,2,2,ob,-1,-1);ha("DEVSQ",function(){return Z(!0,arguments)},1,void 0,nb,-1,-1);ha("CONFIDENCE",ma,3,3,dc);ha("CONFIDENCE.NORM",ma,3,3,dc);ha("CONFIDENCE.T",function(b,e,a){return 1===a?hb:e*p(b,a-1,2)/Ua(a)},3,3,dc);ha("INTERCEPT",function(b,e){var a,f,k,g,c=0,p=0,h=0,m=0,v=0,x=Ja(b);if(x!==Ja(e))return mb;for(g=0;g<x;g++)a=b[g],f=e[g],f!==db&&a!==db&&(c+=a,p+=f,h+=f*f,m+=f*a,v++);return 0===v?hb:0===v*h-p*p?hb:(k=(v*m-p*c)/(v*h-p*p),eb(c/v-p/v*k))},2,2,ob,-1,-1);ha("LINEST",function(b,e,a,f){return V(!1,b,e,a,f)},1,4,sc,[0,1],[0,1],{bk:[1,2,3],fk:1});ha("SLOPE",function(b,e){var a,f,k,g,c,p=0,h=0,m=0,v=0,x=0,d=Ja(e);if(d!==Ja(b))return mb;for(a=0;a<d;a++)f=b[a],k=e[a],k===db||f===db||Pa(k)||Pa(f)||(g=Ea(f),c=Ea(k),p+=g,h+=c,m+=c*c,v+=c*g,x++);return 0===x*m-h*h?hb:eb((x*v-h*p)/(x*m-h*h))},2,2,bc,-1,-1,{fk:1});ha("LOGEST",function(b,e,a,f){return V(!0,b,e,a,f)},1,4,sc,[0,1],[0,1],{bk:[1,2,3]});ha("STEYX",function(b,e){var a,f,k,g,c,p=0,h=0,m=0,v=0,x=0,d=0,t=Ja(b);if(t!==Ja(e))return mb;for(k=0;k<t;k++)g=b[k],c=e[k],g!==db&&c!==db&&(f=g,a=c,p+=f,h+=f*f,m+=a,v+=a*a,x+=a*f,d++);return 0===d*(d-2)||0===d*v-m*m?hb:Ua((d*h-p*p-(d*x-m*p)*(d*x-m*p)/(d*v-m*m))/(d*(d-2)))},2,2,ob,-1,-1);ha("BETADIST",ea,3,5,[ta,Ha,Ha,na,gb],void 0,void 0,{bk:[3,4]});ha("BETA.DIST",function(b,e,a,f,k,g){if(b<k||g<b||k===g)return Xa;b=(b-k)/(g-k);return f?z(b,e,a):c(b,e,a)/(g-k)},4,6,[ta,Ha,Ha,Ta,na,gb],void 0,void 0,{bk:[5,6]});ha("BETAINV",ga,3,5,Jb,void 0,void 0,{bk:[3,4]});ha("BETA.INV",ga,3,5,Jb,void 0,void 0,{bk:[3,4]});ha("BINOMDIST",T,4,4,Kb);ha("BINOM.DIST",T,4,4,Kb);ha("NEGBINOMDIST",function(b,e,a){if(0>=b+e-1)return Xa;var f=wb(b+e-1,e-1);return Pa(f)?f:eb(Ea(f)*ab(a,e)*ab(1-a,b))},3,3,[Ga,Ga,fb]);ha("NEGBINOM.DIST",function(b,e,a,f){if(0>=b+e-1)return Xa;if(f)return 1-z(1-a,b+1,e);f=ab(a,e);var k;for(k=0;k<b;k++)f*=(k+e)/(k+1)*(1-a);return f},4,4,[Na,bb,fb,Ta]);ha("CRITBINOM",fa,3,3,cc);ha("BINOM.INV",fa,3,3,cc);ha("CHIDIST",Fa,2,2,Bb);ha("CHISQ.DIST.RT",Fa,2,2,Bb);ha("CHISQ.DIST",function(b,e,a){if(a)b=0>=b?0:t(e/2,b/2);else{var f,k;if(0>=b)b=0;else{if(1391E3<e*b)f=Sa((.5*e-1)*Ba(.5*b)-.5*b-Ba(2)-B(.5*e));else{for(.5>e%2?(f=.5,k=2):(f=1/Ua(2*b*vb),k=1);k<e;)f*=b/k,k+=2;f=1425<=b?Sa(Ba(f)-b/2):f*Sa(-b/2)}b=f}}return b},3,3,[cb,Ya,Ta]);ha("CHIINV",aa,2,2,Sb);ha("CHISQ.INV.RT",aa,2,2,Sb);ha("CHISQ.INV",function(b,e){var a=function(b,e){return{ge:function(a){return b-(0>=a?0:t(e/2,a/2))}}}(b,e),f={bConvError:!1},a=G(a,.5*e,e,f);return f.jl?mb:a},2,2,Sb);ha("CHITEST",xa,2,2,ob,-1,-1);ha("CHISQ.TEST",xa,2,2,ob,-1,-1);ha("CORREL",function(b,e){var a,f,k,g,c,p,h,m,v=0,x=0,d=0,t=0,y=0,n=Ja(e);if(n!==Ja(b))return mb;for(p=c=0;p<n;p++)h=b[p],m=e[p],h!==db&&m!==db&&(v+=h,x+=m,d+=h*h,t+=m*m,c++);if(1>=c||(a=v/c,f=x/c,k=Ua((c*d-v*v)/(c*(c-1))),g=Ua((c*t-x*x)/(c*(c-1))),0===k||0===g))return hb;for(p=0;p<n;p++)h=b[p],m=e[p],h!==db&&m!==db&&(y+=(h-a)*(m-f));return eb(y/Ea((c-1)*k*g))},2,2,ob,-1,-1);ha("EXPONDIST",Ia,3,3,mc);ha("EXPON.DIST",Ia,3,3,mc);ha("FDIST",la,3,3,Ob);ha("F.DIST",function(b,e,a,f){return f?1-z(a/(a+e*b),a/2,e/2):ab(e/a,e/2)*ab(b,e/2-1)/(ab(1+b*e/a,(e+a)/2)*m(!0,e/2,a/2))},4,4,[cb,La,La,Ta]);ha("F.DIST.RT",la,3,3,Ob);ha("FINV",pa,3,3,Pb);ha("F.INV.RT",pa,3,3,Pb);ha("F.INV",function(b,e,a){b=ga(1-b,a/2,e/2,0,1);return Pa(b)?b:(1/Ea(b)-1)*(a/e)},3,3,[Za,Ya,Ya]);ha("FISHER",function(b){return Ba((1+b)/(1-b))/2},1,1,{Hi:0,aj:["\x3c\x3d -1","\x3e\x3d 1"]});ha("FISHERINV",function(b){var e=Sa(2*b)-1;b=Sa(2*b)+1;return!pc(e)&&0<e&&!pc(b)&&0<b?1:e/b},1,1,ta);ha("FTEST",qa,2,2,lc,-1,-1);ha("F.TEST",qa,2,2,lc,-1,-1);ha("GAMMADIST",ba,4,4,Vb);ha("GAMMA.DIST",ba,4,4,Vb);ha("GAMMAINV",ra,3,3,kc);ha("GAMMA.INV",ra,3,3,kc);ha("GAMMALN",ya,1,1,Ha);ha("GAMMALN.PRECISE",ya,1,1,Ha);ha("HYPGEOMDIST",function(b,e,a,f){return b>fc(e,a)||b<Db(0,e-f+a)||e>f||a>f?Xa:E(b,e,a,f)},4,4,[Na,Na,Na,Na]);ha("HYPGEOM.DIST",function(b,e,a,f,k){var g;if(b>fc(e,a)||b<Db(0,e-f+a)||e>f||a>f)return Xa;if(k){for(g=k=0;g<=b;g++)k+=E(g,e,a,f);return k}return E(b,e,a,f)},5,5,[Na,Na,Na,Na,Ta]);ha("LOGNORMDIST",function(b,e,a){return Nb((Ba(b)-e)/a)},3,3,[Ha,ta,Ha]);ha("LOGNORM.DIST",function(b,e,a,f){if(f)return Nb((Ba(b)-e)/a);e=(Ba(b)-e)/a;return.3989422804014327*Sa(-(e*e)/2)/a/b},4,4,[Ha,ta,Ha,Ta]);ha("LOGINV",sa,3,3,sb);ha("LOGNORM.INV",sa,3,3,sb);ha("NORMDIST",ia,4,4,tb);ha("NORM.DIST",ia,4,4,tb);ha("NORMINV",Ka,3,3,sb);ha("NORM.INV",Ka,3,3,sb);ha("NORMSDIST",Nb,1,1,ta,void 0,void 0);ha("NORMSINV",wa,1,1,Za);ha("NORM.S.INV",wa,1,1,Za);ha("NORM.S.DIST",function(b,e){var a;if(e){var f=b,k,g;a=(f=.7071067811865475*-f,k=Ea(f),Ab(k)?qb:(g=Nb(k*Ua(2)),Pa(g)?NaN:.5*(2-2*parseFloat(g))))}else a=Sa(-ab(b,2)/2)/Ua(2*vb);return a},2,2,[ta,Ta]);ha("PEARSON",function(b,e){var a,f,k,g,c=0,p=0,h=0,m=0,v=0,x=Ja(b);if(x!==Ja(e))return mb;for(f=a=0;f<x;f++)k=b[f],g=e[f],ac(k)&&ac(g)&&(c+=k,p+=g,h+=k*k,m+=g*g,v+=k*g,a++);return 0===a*h-c*c||0===a*m-p*p?hb:(a*v-c*p)/Ua((a*h-c*c)*(a*m-p*p))},2,2,bc,-1,-1);ha("RSQ",function(b,e){var a,f,k,g,c,p=0,h=0,m=0,v=0,x=0,d=0,t=Ja(e);if(t!==Ja(b))return mb;for(a=0;a<t;a++)f=e[a],k=b[a],ac(f)&&ac(k)&&(p+=f,h+=k,m+=f*f,v+=k*k,x+=f*k,d++);return g=Ua((d*m-p*p)*(d*v-h*h)),0===g?hb:(c=(d*x-p*h)/g,eb(c*c))},2,2,bc,[0,1],[0,1]);ha("POISSON",Aa,3,3,qc);ha("POISSON.DIST",Aa,3,3,qc);ha("PROB",function(b,e,a,f){var k,g,c,p,h,m=a;if(void 0!==f&&Ab(m=Ea(f)))return qb;if(f=0,k=0,g=Ja(b),g!==Ja(e))return mb;for(c=0;c<g;c++)if(p=b[c],h=e[c],p!==db&&h!==db){if(0>=h||1<h)return Xa;a<=p&&p<=m&&(f+=h);k+=h}return 1!==k?Xa:f},3,4,[Hb,ca,ta],[0,1],[0,1],{bk:3});ha("SKEW",function(){var b,e,a,f,k,g,c=arguments,p=0,h=0,m=0,v=0,x=[];for(a=0;a<Ja(c);a++)for(g=c[a],x.push(g),f=0;f<Ja(g);f++)k=g[f],k!==db&&(p+=k,h+=k*k,v++);if(2>=v||(b=p/v,e=Ua((v*h-p*p)/(v*(v-1))),0===e))return hb;for(a=0;a<Ja(x);a++)for(g=x[a],f=0;f<Ja(g);f++)k=g[f],k!==db&&(m+=ab((k-b)/e,3));return eb(v*m/((v-1)*(v-2)))},1,void 0,nb,-1,-1);ha("STANDARDIZE",function(b,e,a){return(b-e)/a},3,3,[ta,ta,Ha]);ha("TDIST",Va,3,3,[cb,bb,Ga]);ha("T.DIST",function(b,e,a){return M(b,e,a?4:3)},3,3,[cb,bb,Ta]);ha("T.DIST.RT",function(b,e){return Va(b,e,1)},2,2,lb);ha("T.DIST.2T",function(b,e){return Va(b,e,2)},2,2,lb);ha("TINV",$a,2,2,Sb);ha("T.INV.2T",$a,2,2,Sb);ha("T.INV",function(b,e){return.5>b?-p(1-b,e,4):p(b,e,4)},2,2,[{Hi:0,aj:["\x3c\x3d 0","\x3e 1"]},Ya]);ha("TTEST",Da,4,4,rb,[0,1],[0,1]);ha("T.TEST",Da,4,4,rb,[0,1],[0,1]);ha("WEIBULL",va,4,4,rc);ha("WEIBULL.DIST",va,4,4,rc);ha("ZTEST",Ra,2,3,zb,0,0,{bk:2});ha("Z.TEST",Ra,2,3,zb,0,0,{bk:2});ha("PERMUT",function(b,e){b=Ea(Rb(b));e=Ea(Rb(e));var a=1,f;if(0>b||0>e||b<e)return Xa;for(f=b-e+1;f<=b;f++)a*=f;return eb(a)},2,2);ha("COVARIANCE.S",function(b,e){return W(!1,b,e)},2,2,ob,-1,-1);ha("MODE.MULT",function(){var b,e,a,f=0,k=[],g=w(arguments),c=Ja(g);for(b=0;b<c;b++){a=0;for(e=b+1;e<c;e++)g[b]===g[e]&&a++;a>f?(f=a,k=[],k.push([g[b]])):a===f&&k.push([g[b]])}return 0===f?mb:new Fb(k)},1,void 0,Qa,-1,-1);ha("PERCENTILE.EXC",jb,2,2,[Oa,ua],0,0);ha("QUARTILE.EXC",function(b,e){var a=vc(e,[1,2,3]);return 0>a?Xa:jb(b,.25*(a+1))},2,2,[Oa,Ga],0,0);ha("RANK.AVG",function(b,e,a){return 1<b.rowCount||1<b.colCount?qb:k(!1,e,b[0],a)},2,3,[Hb,Wb,na],[0,1],1,{bk:2});U.exports=yb},function(U,u,l){var d,J,R;u=l(42);d=l(33);l(43);l(44);J=l(45);R=J.M5;1===R?(l(47),l(48),l(49)):2===R?(l(48),l(49),l(47)):(l(49),l(47),l(48));l(50);l(51);l(54);l(55);l(56);d&&(l(57),l(58),l(59),l(60));l(69);l(63);l(70);l(71);l(72);l(73);l(74);l(75);l(76);l(77);l(64);l(61);d&&l(78);l(79);l(67);l(66);l(68);l(65);l(52);l(80);l(81);1!==R&&2!==R||J.Gb();u.SR={};u.SR.en=l(82);U.exports=u},function(U,u){U.exports={}},function(U,u,l){function d(b){return M.createElement(b)}function J(b){M.body&&M.body.insertBefore(b,f)}function R(b,e,a){Object.defineProperty(b,e,{get:function(){return this._ps[e]},set:function(b){var f=this._ps[e];f!==b&&(this._ps[e]=b,a&&a(e,b,f))},enumerable:!0})}function Q(b){return b.preventDefault?(b.preventDefault(),b.stopPropagation()):(b.cancelBubble=!1,b.returnValue=!1),!1}function K(){this.jm=0;this.ad();this.km=[]}function O(b,e){var a=d("span");return a.className=b,e&&(a.id=e),a.style.display="none",J(a),a}function H(b){var e=b.currentStyle,a=M.defaultView;return a&&a.getComputedStyle&&(e=a.getComputedStyle(b,"")),e}function I(b){var e,a,f,k,g,c,p;0<E.Yl.jm||(e=N.Xl(),a=e&&e.lm,a&&(f=ga(a),f.isVisible())||e&&e.mm&&e.mm.nm&&(e.mm.nm(b),e.isEditing()||(k=b.keyCode,g=b.ctrlKey,c=b.altKey,p=b.shiftKey,90!==k&&89!==k||!g||c?86!==k||!g||c||p||b.stopPropagation&&b.stopPropagation():Q(b))))}function L(b){var e;0<E.Yl.jm||(e=N.Xl(),e&&e.mm&&e.mm.om&&e.mm.om(b))}function F(b){var e;0<E.Yl.jm||(e=N.Xl(),e&&e.mm&&e.mm.pm&&e.mm.pm(b))}function G(b){return M.all===g&&N.Xl()&&Q(b),!1}function q(b,e){this.x=b;this.y=e}function D(b,e,a,f){this.x=b;this.y=e;this.width=a;this.height=f}function A(b,e,a,f){this.row=b;this.rowCount=a;this.col=e;this.colCount=f}function r(){}function n(b){this.kj=b}function w(b,e,a,f){var k=e.yn,g=ja.xn,c=g[b.id];c||(c=g[b.id]={validator:b,sheet:e});(b=c[k])||(b=c[k]={});a=a+"_"+f;b[a]||(b[a]=!0)}function z(b){var e=b.An||{scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0,orgTranslateX:0,orgTranslateY:0};return b.An=e,e}function C(){var b,e,a=E.screen,f=a.deviceXDPI,a=E.devicePixelRatio||(f?f/a.logicalXDPI:1);return 1>=a?1:(b=20*a,e=V(b),.82<e-b?e/20:V(100*a)/100)}function c(){return ea.Yn||(ea.Yn=d("canvas").getContext("2d"))}function m(b){for(var e=b.length-1;" "===b.charAt(e);)e--;return e!==b.length-1&&(b=b.substring(0,e+1)),b}function h(b,e){var a,k,p,h,m,v,d,t=[],y=c();if(!y)return t;if(a=y.measureText(b).width,k=a/b.length,p=x(e/k),a>e)for(a=!1;;){if(h=b.substring(0,p),m=y.measureText(h).width,m===e||a&&m<e)return t.push(h),t.push(b.substring(h.length)),t;if(m>e){if(1===h.length)return v=b.substring(h.length),0!==ea.Xn(v,g,!0)?(t.push(h),t.push(v)):t.push(b),t;--p;a=!0}else d=(e-m)/k,d=1<=d?d:1,p+=d}else b!==f&&0<b.length&&t.push(b);return t}var a,B,y,t,E,M,p,g,f,k,x,W,P,V,Z,e,b,v,N,S,X,Y,ka,ja,oa,ma,ea,ga=l(44).GC$,T=l(26),fa=l(33),Fa=l(34);u=l(42);l=ga.each;a=ga.extend;B=ga.isEmptyObject;y=T.o;t=Fa&&Fa.GeneralFormatter;E=window;M=document;p=E.navigator;g=void 0;f=null;k=Math.floor;x=Math.ceil;W=Math.min;P=Math.max;V=Math.round;Z=parseInt;e=parseFloat;b=isNaN;u.productInfo={productVersion:"10.2.0"};u.CursorResource={ResizeCol:"col-Resize",ResizeRow:"row-resize",ResizeHiddenCol:"w-resize",ResizeHiddenRow:"n-resize"};u.getTypeFromString=function(b){var e,a,f=!1,k=E;if("string"===typeof b){b=b.split(".");e=0;for(a=b.length;e<a&&k;e++)k=k[b[e]];k&&e===a&&0<a&&(f=!0)}return f?k:g};u.findControl=function(b){return"string"===typeof b&&(b=M.getElementById(b)),ga(b).data("workbook")};v={};v.nl=Q;v.ol=function(b,e,a){3===b&&(b=ga.getType(e),b=a&&"@"===a?0:"boolean"===b?1:"number"===b||"date"===b?2:0);return b};v.bc=function(b){var e,a=ga.getType(b);return b===f||b===g?b="":"boolean"===a?b=(""+b).toUpperCase():"date"===a?(e=0===b.getHours()&&0===b.getMinutes()&&0===b.getSeconds()&&0===b.getMilliseconds(),b=T.l.Vb(b,e?"M/d/yyyy":"M/d/yyyy h:mm:ss")):b=""+b,b};v.ql=function(b,e,a,f,k,g){var c,p,h;b=ga(b);switch(g){case 0:b.css("background-position","0% 0%").css("background-size","100% 100%");break;case 1:c=g="50%";f>e&&(g="0%");k>a&&(c="0%");b.css("background-position",g+" "+c).css("background-size","auto auto");break;case 2:c=g=0;p=e;h=a;0<a&&0<k&&e/a>f/k?(p=f/k*a,g=g+e/2-p/2):0<e&&0<f&&a/e>k/f&&(h=k/f*e,c=c+a/2-h/2);b.css("background-position",g+"px "+c+"px").css("background-size",p+"px "+h+"px");break;case 3:b.css("background-position","0% 0%").css("background-size","auto auto")}};v.rl=v.device=function(){var b,e,a,f,k=p.userAgent,g=k.match(/iPad/i);return g&&(b=g[0],b&&(e="ipad"===b.toLowerCase())),g=k.match(/iPhone/i),g&&(b=g[0],b&&(a="iphone"===b.toLowerCase())),g=k.match(/android/i),g&&(b=g[0],b&&(f="android"===b.toLowerCase())),{ipad:e,iphone:a,android:f}};v.sl=function(){var b=p.platform;return b&&-1<b.indexOf("Mac")};v.tl=function(e){if(e===g||e===f)return!1;e=""+e;return e=y.Oa(e),!b(+(""===e.trim()?NaN:e))||/^[1-9]\d{0,2}(?:(,\d{3})*|\d*)(?:\.\d*)?$/.test(e)};v.ul=function(b,e,a,k,c){var p,h;p=f;if(b&&(b.formatter?(p=c?c:b.formatter,"string"===typeof p&&t&&(p=new t(p))):p=b._autoFormatter),p&&!p.isAuto){k=f;try{if(k=p.parse(e),"number"===typeof k)return k}catch(ra){}return k===g||k===f?e:k}if(a){if(p={},b=f,t)try{b=(new t).getPreferredDisplayFormatter(e,p)}catch(ra){}return h=p.value,"number"===typeof h?e=h:v.tl(e)&&(h=p.value=e),k&&(k.value=b),h!==g&&h!==f?h:e}return e};v.vl=function(e){for(var a,f,k=M.body;e&&e.parentElement&&e.parentElement!==k;)e=e.parentElement;return a=1E3,e&&e.parentElement===k&&(f=Z(ga(e).css("z-index")),b(f)||(a+=f)),a};v.wl=function(a){var f,k,g,c,p,h;if(!a||(f=a.indexOf("("),k=a.lastIndexOf(")"),g=a.substring(f+1,k),!g))return[];a=[];for(f=k=0;f<g.length;)c=g.indexOf("rgb",k),f=g.indexOf("rgb",k+1),-1===f&&(f=g.length),k=g.substring(c,f),a.push(k),k=f;g=[];f=0;for(k=a.length;f<k;f++)p=a[f],h=p.indexOf(")"),c=p.substring(0,h+1),p=e(p.substring(h+1,p.length)),b(p)&&(f===k-1?p=100:1>=f&&(p=0)),(c||0!==f)&&(p/=100,g.push({color:c,point:p}));return g};v.xl=function(b,e,a,k){var g,c,p,h,m,d,t,y,n,B,q,T,N,w,E,r,z=e.yl,P=0,C=[a];1===k&&(3===a?C.push(1):2===a&&C.push(0));for(a=0;a<C.length;a++)for(k=0,g=C[a],c=e.getRowCount(g);0<=k&&k<c;)(p=e.zl(g).find(k,b))&&(p.col<b||1<p.colCount||p.row<k)?k=p.row+p.rowCount:(0<e.getRowHeight(k,g)&&(h=e.getActualStyle(k,b,g),m=0,d=h.cellType||e.Al(g),d&&(t=h.font||z.Bl(),h.font=z.Cl(t),y=e.rowFilter&&e.rowFilter(),n=!(!y||!y.Dl(k,b,g)),n||3!==g||(B=e.tables?e.tables.find(k,b):f,B&&B.showHeader()&&B.headerIndex()===k&&B.rowFilter()&&B.filterButtonVisible(b-B.range().col)&&(n=!0)),q=h.formatter?h.formatter:h._autoFormatter,T={sheet:e,row:k,col:b,sheetArea:g},N=e.getValue(k,b,g),w=d.format(N,q,T),m=d.X4(N,w,h,e._zoomFactor,T),n&&(E=W(e._zoomFactor,1),r=Z(""+e.defaults.rowHeight*E,10),m+=r)),m>P&&(P=m)),3===g?k=v.El(k,b,e,g):k++);return 0===P?P=e.defaults.colWidth:P+=x(3/e._zoomFactor),x(P)};v.El=function(b,e,a,f){var k,g=-1,c=a.getRowCount(f);for(b+=1;b<c;b++){if(a.getText(b,e,f)){g=b;break}if(k=a.getActualStyle(b,e,f),k&&k.cellType){g=b;break}}return g};v.Fl=function(b,e,a,f){var k,g,c,p,h,m,d,t,y,n,B=e.yl,q=0,T=[a];1===f&&(3===a?T.push(2):1===a&&T.push(0));for(f=0;f<T.length;f++)for(a=T[f],k=0,g=e.getColumnCount(a);0<=k&&k<g;)(c=e.zl(a).find(b,k))&&(c.row<b||1<c.rowCount||c.col<k)?k=c.col+c.colCount:(0<e.getColumnWidth(k,a)&&(p=e.getActualStyle(b,k,a),h=p.font||B.Bl(),p.font=B.Cl(h),m=0,d=e.getCellType(b,k,a),d&&(t=e.getText(b,k,a),y=e.getValue(b,k,a),n={sheet:e,row:b,col:k,sheetArea:a},m=d.Y4(y,t,p,e._zoomFactor,n)),m>q&&(q=m)),3===a?k=v.Gl(b,k,e,a):k++);return 0===q?q=e.defaults.rowHeight:q+=x(3/e._zoomFactor),x(q)};v.Gl=function(b,e,a,f){var k,g=-1,c=a.getColumnCount(f);for(e+=1;e<c;e++){if(a.getText(b,e,f)){g=e;break}if(k=a.getActualStyle(b,e,f),k&&k.cellType){g=e;break}}return g};v.Il=function(b,e,a,k){var c,p,h,m,x,d;if(a&&(c=a.Jl,p=a.Kl,h=b.formatter?b.formatter:b._autoFormatter,m=k||{},t&&e!==f&&e!==g))if(h&&h.isAuto)b="number"===typeof e,a=v.tl(e),!b&&a&&(e=y.Oa(e)),e=h.getPreferredEditingFormatter?h.getPreferredEditingFormatter(e).format(e):e;else if("string"===typeof h&&(h=new t(h)),h)try{e instanceof Date?(x=fa&&fa.Convert.Wh(e),x&&(e=x),d=T.CultureManager.q4().DateTimeFormat,h=new t(0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?d.shortDatePattern:d.shortDatePattern+" "+d.longTimePattern),a.Ll=!0,e=h.format(e),m.formatter=h):"number"===typeof e&&(e=y.nb(""+e))}catch(ia){e=a.getText(c,p)}else e=a.getText(c,p);return e!==f&&e!==g&&(e=v.bc(e)),e};v.Ml=v.browser=function(){function b(){var b=f,e=!1;try{new ActiveXObject("")}catch(ba){b=ba.name}try{e=!!new ActiveXObject("htmlfile")}catch(ba){e=!1}return e="ReferenceError"===b||!1!==e,!e}var e,a,k;e=p.userAgent;a=function(b){b=b.toLowerCase();b=/(chrome)[ \/]([\w.]+)/.exec(b)||/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||0>b.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(b)||[];return{browser:b[1]||"",version:b[2]||"0"}}(e);k={};a.browser&&(k[a.browser]=!0,k.version=a.version);k.chrome?k.webkit=!0:k.webkit&&(k.safari=!0);0<=e.indexOf("PhantomJS")&&(k.safari=!1,k.chrome=!0);a=e.toLowerCase();0>a.indexOf("compatible")&&/(trident)(?:.*? rv ([\w.]+)|)/.exec(a)!==f&&k&&(k.mozilla=g,k.msie=!0);e=/Edge\/\d+/.exec(e);e!==f&&0<e.length&&k&&(k.webkit=g,k.chrome=g,k.msie=!0,k.edge=!0,k.version=e[0].substr(e[0].indexOf("/")+1));return k.msie&&b()&&(k.metroMode=!0),k}();v.Nl=d;v.Ol=function(b){return"undefined"!==typeof b};v.Pl=function(b,e,a,f){var k=function(k,c){var p,h;return this.hasOwnProperty("_ps")||(this._ps={}),p=this._ps,0===arguments.length?p[b]!==g?p[b]:e:(!1!==c&&f&&!f.call(this,k)||(h=p[b]!==g?p[b]:e,h!==k&&(p[b]=k,!1!==c&&a&&a.call(this,k,h))),this)};return k.isDefault=function(b){return b===e},k};v.Ql=function(b,e){var a={};return a._ps={},T.j.H(b,function(b){R(a,b,e)}),a};v.Rl=function(b,e,a,f,k){var g;g=W(e,a);e=P(e,a);for(a=0;g<e&&(a+=f?b.Sl(g,3):b.Tl(g,3),!(k&&a>k));g++);return a};v.Z3=function(b,e){var a,f,k=0,g=0;return b!==e&&(a=ga(b).offset(),f=ga(e).offset(),k=a.left-f.left,g=a.top-f.top),{FB:g,EB:k}};u.Ul=u.util=v;N=u.Vl={};N.Wl=function(b){return N.Xl()===b&&b.mm&&b.mm.YH};N.Xl=function(){return E.Yl.activeElement};N.Zl=function(b,e){function a(b){function e(e){var g,c;for(g=0;2>=g;g++)(c=e.call(a,g))&&0!==c.width&&0!==c.height&&(b.$l=!0,f._l(k,c))}var a,f,k,g,c,p;if(b&&!N.Wl(b)&&b.parent&&b.parent.options.hideSelection){a=b.am();f=b.yl;k=f.bm();g=b.getSelections();for(c=0;c<g.length;c++)p=g[c],p=b.cm(p),0<=p.width&&0<=p.height&&(p.x-=9,p.y-=9,p.width+=18,p.height+=30,f.dm(p));p=a.em();b.$l=!0;f._l(k,p);e(a.fm);e(a.gm)}}var f=N.Xl();E.Yl.activeElement=b;b===f||e||(f&&(f.endEdit(),a(f),f.hm&&f.hm()),b&&b.yl.im())};S=K.prototype={qm:function(){S.rm();S.sm();S.tm();S.um()},rm:function(){return S.vm?0>=ga(M).find("span.gc-theme-version.ui-widget-header.ui-state-default.wijmoThemeHelper.btn-default").length&&J(S.vm):S.vm=O("gc-theme-version ui-widget-header ui-state-default wijmoThemeHelper btn-default"),S.vm},sm:function(){return S.wm?0>=ga(M).find("span.gc-theme-version.ui-widget-content.wijmoThemeHelper.btn-default").length&&J(S.wm):S.wm=O("gc-theme-version ui-widget-content wijmoThemeHelper btn-default"),S.wm},tm:function(){return S.xm?0>=ga(M).find("span.gc-theme-version.ui-state-hover.wijmoThemeHelper.btn-primary").length&&J(S.xm):S.xm=O("gc-theme-version ui-state-hover wijmoThemeHelper btn-primary"),S.xm},um:function(){return S.ym?0>=ga(M).find("span.gc-theme-version.ui-state-highlight.wijmoThemeHelper.btn-warning").length&&J(S.ym):S.ym=O("gc-theme-version ui-state-highlight wijmoThemeHelper btn-warning"),S.ym},zm:function(){return S.Am?0>=ga(M).find("#gcDummyElement").length&&J(S.Am):S.Am=O("gc-theme-version","gcDummyElement"),S.Am},ad:function(){function b(b){var e,g,c=N.Xl();if(c&&(e=S.Bm(b.target),k.km.forEach(function(b){b&&b(c,e)}),!e))if(c.endEdit())a&&(g=c.mm,g&&g.Cm&&g.Cm()),N.Zl(f);else if(b.cancelable)return!1}var e,a,k=this;k.jm=0;E.addEventListener("keydown",I,!0);E.addEventListener("keyup",L,!0);E.addEventListener("compositionstart",F,!0);E.addEventListener("selectstart",G,!0);e=v.rl();a=e.ipad||e.iphone;p.msPointerEnabled?ga(M).bind("MSPointerDown",b):a?ga(M).bind("touchstart",b):(ga(M).bind("pointerdown",b),ga(M).bind("mousedown",b));ga(M).bind("DOMContentLoaded",function(){S.qm()})},Bm:function(b){for(var e;b&&"BODY"!==b.tagName&&"function"===typeof b.getAttribute;){if(e=b.getAttribute("gcUIElement"),e||(e=b.gcUIElement),e)return b;b=b.parentNode}return f},Dm:function(b,e){var a,f,k,c,p=S.rm();return 1===b||2===b?p=S.um():4===b&&(p=S.tm()),a=p.className,ga(p).removeClass(a).addClass(e),f=H(p),k={backgroundColor:f.backgroundColor,backgroundImage:f.backgroundImage},ga(p).addClass(a),f=H(p),c={backgroundColor:f.backgroundColor,backgroundImage:f.backgroundImage,color:f.color,zIndex:f.zIndex},c.borderLeftColor=f.borderLeftColor,c.borderRightColor=f.borderRightColor,c.borderBottomColor=f.borderBottomColor,c.borderBottomWidth=f.borderBottomWidth,c.borderTopColor=f.borderTopColor,c.borderRightWidth=f.borderRightWidth,c.backgroundImage===k.backgroundImage&&c.backgroundColor!==k.backgroundColor&&(c.backgroundImage=g),ga(p).removeClass(e),c},Em:function(b){var e,f=S.zm();return ga(f).removeClass(f.className).addClass("gc-theme-version "+b),e=H(f),a({},e)},Fm:function(b){var e,f=S.sm();return ga(f).removeClass(f.className).addClass("gc-theme-version ui-widget-content wijmoThemeHelper btn-default "+b),e=H(f),a({},e)},Gm:function(){E.Yl.jm++},Hm:function(){var b=E.Yl;b.jm--;0>b.jm&&(b.jm=0)}};E.Yl||(E.Yl=new K);u.VisualState={normal:0,highlight:1,selected:2,active:3,hover:4};u.SortState={none:0,ascending:1,descending:2};X=u.Im={styleCache:{}};X.Jm=function(b){return{0:"normal",1:"highlight",2:"selected",3:"active",4:"hover"}[b]||""};X.Km=function(b,e){var a=X.Jm(b)+e,f=X.styleCache;return f[a]||(f[a]=S.Dm(b,e)),f[a]};X.Lm=function(b){var e=X.styleCache;return e[b]||(e[b]=S.Em(b)),e[b]};X.Mm=function(b){var e="content"+b,a=X.styleCache;return a[e]||(a[e]=S.Fm(b)),a[e]};X.Nm=function(){X.styleCache={}};q.prototype.clone=function(){return new q(this.x,this.y)};u.Point=q;D.prototype={intersect:function(b,e,a,f){return b<this.x+this.width&&this.x<b+a&&e<this.y+this.height&&this.y<e+f},intersectRect:function(b){return this.intersect(b.x,b.y,b.width,b.height)},contains:function(b,e){return this.x<b&&b<this.x+this.width&&this.y<e&&e<this.y+this.height},containsRect:function(b){return this.contains(b.x,b.y)&&this.contains(b.x+b.width,b.y+b.height)},getIntersectRect:function(b){return this.getIntersect(b.x,b.y,b.width,b.height)},getIntersect:function(b,e,a,k){var g=this.y,c=this.x+this.width,p=this.y+this.height;a=b+a;k=e+k;b=P(this.x,b);e=P(g,e);c=W(c,a);p=W(p,k);c-=b;p-=e;return 0<c&&0<p?new D(b,e,c,p):f},round:function(){this.x=k(this.x);this.y=k(this.y);this.width=x(this.width);this.height=x(this.height)},clone:function(){return new D(this.x,this.y,this.width,this.height)}};u.Rect=D;A.prototype={intersect:function(b,e,a,f){return(-1===b||-1===this.row||this.row<b+a&&b<this.row+this.rowCount)&&(-1===e||-1===this.col||this.col<e+f&&e<this.col+this.colCount)},getIntersect:function(b,e,a){var k,g,c,p,h,m,v,x,d,t;return b&&this.intersect(b.row,b.col,b.rowCount,b.colCount)?(k=-1===this.col?a-1:this.col+this.colCount-1,g=-1===b.col?a-1:b.col+b.colCount-1,c=-1===this.row?e-1:this.row+this.rowCount-1,p=-1===b.row?e-1:b.row+b.rowCount-1,h=P(this.col,b.col),m=W(k,g),v=P(this.row,b.row),x=W(c,p),d=-1===v?-1:x-v+1,t=-1===h?-1:m-h+1,new A(v,h,d,t)):f},contains:function(b,e,a,f){var k=arguments.length,g=!1;return 2!==k&&4!==k||(2===k&&(a=1,f=1),g=(-1===this.row||this.row<=b&&b+a<=this.row+this.rowCount)&&(-1===this.col||this.col<=e&&e+f<=this.col+this.colCount)),g},containsRange:function(b){return this.contains(b.row,b.col,b.rowCount,b.colCount)},offset:function(b,e){var a=this.col,f=this.row;return-1!==a&&(a+=b),-1!==f&&(f+=e),new A(f,a,this.rowCount,this.colCount)},union:function(b){var e=W(this.row,b.row),a=W(this.col,b.col),f=P(this.row+this.rowCount-1,b.row+b.rowCount-1);b=P(this.col+this.colCount-1,b.col+b.colCount-1);return 0<=e&&0<=a?new A(e,a,f-e+1,b-a+1):0<=e?new A(e,-1,f-e+1,-1):0<=a?new A(-1,a,-1,b-a+1):new A(-1,-1,-1,-1)},equals:function(b){return b instanceof A&&this.row===b.row&&this.col===b.col&&this.rowCount===b.rowCount&&this.colCount===b.colCount}};u.Range=A;u.kf=function(b,e,a,f){return new A(b,e,a,f)};r.Om=function(b,e){if(b&&e){var a=b.Pm;if(a)return a.getColor(e)}return e};r.Qm=function(b,e){if(b&&e){var a=b.Pm;return a?a.getFont(e):e}return f};u.Rm=r;Y={};l("ValidationError CellClick CellDoubleClick EnterCell LeaveCell ValueChanged TopRowChanged LeftColumnChanged InvalidOperation RangeFiltering RangeFiltered TableFiltering TableFiltered RangeSorting RangeSorted ClipboardChanging ClipboardChanged ClipboardPasting ClipboardPasted ColumnWidthChanging ColumnWidthChanged RowHeightChanging RowHeightChanged DragDropBlock DragDropBlockCompleted DragFillBlock DragFillBlockCompleted EditStarting EditStarted EditChange EditEnding EditEnd EditEnded RangeGroupStateChanging RangeGroupStateChanged SelectionChanging SelectionChanged SheetTabClick SheetTabDoubleClick SheetNameChanging SheetNameChanged UserZooming UserFormulaEntered CellChanged ColumnChanged RowChanged ActiveSheetChanging ActiveSheetChanged SparklineChanged RangeChanged ButtonClicked EditorStatusChanged FloatingObjectChanged FloatingObjectSelectionChanged PictureChanged FloatingObjectRemoving FloatingObjectRemoved PictureSelectionChanged FloatingObjectLoaded TouchToolStripOpening CommentChanged CommentRemoving CommentRemoved SlicerChanged ResetBinding InitBinding BeforeDragDrop FormulatextboxActiveSheetChanging FormulatextboxActiveSheetChanged FormulatextboxEditStarted FormulatextboxEnterCell FormulatextboxEditEnded FormulatextboxRangeChanged".split(" "),function(b,e){Y[e]=e});u.Events=Y;n.prototype={Sm:function(b,e,a){var f,k=this.Tm;b<<=4+e;return k?(f=k[b],f||(f=a(),k[b]=f),f):a()},Um:function(b,e){var a,k=this.Vm;return k&&(a=k[b])?a[e]:f},Wm:function(b,e,a,f){var k,g=this.Vm;g&&(k=g[b]||(g[b]={}),k[e]={d:a,i:f})},ge:function(b,e,a){var f,k,c,p=this.kj,h=this.Xm;return a===g&&(a=3),h?(f=h[a],f||(f={},h[a]=f),k=f[b],k||(k={},f[b]=k),c=k[e],c===g&&(c=p.getValue(b,e,a),k[e]=c),c):p.getValue(b,e,a)},Ym:function(b,e,a){var f,k,c,p=this.kj,h=this.Zm;return a===g&&(a=3),h?(f=h[a],f||(f={},h[a]=f),k=f[b],k||(k={},f[b]=k),c=k[e],c||(c=p.getActualStyle(b,e,a,!1,!0),k[e]=c),c.clone(!0)):p.getActualStyle(b,e,a,!1,!1)},Sl:function(b){var e,a=this.kj,f=this.$m;return f?(e=f[b],e===g&&(e=f[b]=a.Sl(b)),e):a.Sl(b)},_m:function(b){var e,a=this.kj,f=this.an;return f?(e=f[b],e===g&&(e=f[b]=a.Tl(b)),e):a.Tl(b)},bn:function(b){return this.Xm?(this.cn||(this.cn=b()),this.cn):b()},dn:function(b){return this.Xm?(this.gn||(this.gn=b()),this.gn):b()},hn:function(){this["in"]=!0;this.Tm={};this.Vm={};this.Xm={};this.Zm={};this.$m={};this.an={}},jn:function(){this["in"]=!1},kn:function(){this["in"]=!1;this.gn=this.cn=this.$m=this.an=this.Zm=this.Xm=this.Vm=this.Tm=f}};u.ln=n;ka=u.mn={nn:!1,on:{},pn:{}};ka.qn=function(b,e,a,f,k){var g;if(ka.nn=!0,g=b.tables,g&&g.rn(e,a,f-e+1,k-a+1))for(e=-1,a=ka.sn=[],k=0;k<=f;k++)b.getRowVisible(k)?(e++,a[k]=e):a[k]=-1};ka.Nm=function(){ka.sn=f;ka.nn=!1};ka.tn=function(b){var e=ka.on;return e[b]||(e[b]=t?new t(b):f)};ka.un=function(b,e,a){var f,k,g,c,p,h,m,v=ka.pn,x=b+"_"+typeof b;return t?(f=v[e]||(v[e]={}),(k=f[x])?(a&&(a.value=k.color),k.text):(g=ka.on,c=g[e]||(g[e]=new t(e)),p={},h=c.format(b,p),m=f[x]={},m.text=h,m.color=p.value,a&&(a.value=p.value),h)):""+b};ka.vn=function(b,e,a,k){return(e.cellType||b.Al()).format(a,e.formatter||e._autoFormatter,k,f)};ka.wn=function(){ka.on={};ka.pn={}};ja=u.Lj={xn:{}};ja.zn=function(b,e,a,f,k){if(k)w(b,e,a,f);else if("string"===typeof b&&(b=e.getNamedStyle(b)||e.parent&&e.parent.getNamedStyle(b)),b){a:{var g,c,p,h;k=e.yn;var m=ja.xn;for(g in m)if(m.hasOwnProperty(g)&&(c=m[g],c&&(p=c[k],h=a+"_"+f,p&&p[h]))){if(delete p[h],!B(p))break a;if(delete c[k],!B(c))break a;delete m[g];break a}}(g=(b=b.validator)&&b.condition())&&g.getFormulas&&0<g.getFormulas().length&&w(b,e,a,f)}};ja.Mj=function(){var b,e=[],a=ja.xn;for(b in a)a.hasOwnProperty(b)&&e.push(a[b]);return e};ja.$b=function(){ja.xn={}};oa=u.Bn={Cn:function(b,e,a){var f=z(b);f.scaleX=e;f.scaleY=a;f.translateX=f.orgTranslateX*e;f.translateY=f.orgTranslateY*a;b.setTransform(f.scaleX,f.skewX,f.skewY,f.scaleY,f.translateX,f.translateY)},Dn:function(b,e,a){var f=z(b);f.orgTranslateX+=e;f.orgTranslateY+=a;f.translateX=f.orgTranslateX*f.scaleX;f.translateY=f.orgTranslateY*f.scaleY;b.setTransform(f.scaleX,f.skewX,f.skewY,f.scaleY,f.translateX,f.translateY)}};ma=u.En={dpr:1,Fn:[]};ma.Kn=function(b,e,a){var f,k,g,c,p;b&&(b.Gn=1);b&&(b.Hn=1);if(f=C(),(1!==f||1!==ma.dpr)&&(ma.dpr=f,k=e?e:a&&a.parent)){f=ma.Fn;for(c=0;c<f.length;c++)if(k===f[c].workbook){g=f[c];break}if(g||(g={workbook:k,sheets:[],canvases:[]},f.push(g)),e)g.canvases.push(b);else{e=g.sheets;for(k=0;k<e.length;k++)if(e[k].sheet===a){p=e[k];break}p||(p={sheet:a,canvases:[]},e.push(p));p.canvases.push(b)}}};ma.Ln=function(b){return b&&b.Gn||1};ma.Mn=function(b){return b&&b.Hn||1};ma.Nn=function(b){return b.In};ma.On=function(b){return b.Jn};ma.Pn=function(b,e,a){var f,k=ma.dpr,g=ma.Ln(b),c=ma.Mn(b);b.In=e;b.Jn=a;if(1===k&&1===g&&1===c)b.width=e,b.height=a;else{f=b.getContext("2d");oa.Cn(f,1,1);v.Ml.mozilla?(b.width=x(e*k),b.height=x(a*k)):(b.width=V(e*k),b.height=V(a*k));b.style.width=e+"px";b.style.height=a+"px";e=b.width/e;a=b.height/a;if(e!==g||a!==c)b&&(b.Gn=e),b&&(b.Hn=a);oa.Cn(f,e,a)}};ma.Qn=function(b,e){var a,f,k,g=ma.Fn,c=b.parent;for(f=0;f<g.length;f++)if(!c||g[f].workbook===c)for(a=g[f].sheets,k=0;k<a.length;k++)if(a[k].sheet===b){a=a[k].canvases;for(k=0;k<a.length;k++)if(a[k]===e){a.splice(k,1);break}break}};ma.Rn=function(b,e){var a,f,k,g=ma.Fn;for(f=0;f<g.length;f++)if(g[f].workbook===b)for(a=g[f].canvases,k=0;k<a.length;k++)if(a[k]===e){a.splice(k,1);break}};ma.Sn=function(b){var e,a;a=ma.Fn;var f=b.parent;for(e=0;e<a.length;e++)if(!f||a[e].workbook===f){e=a[e].sheets;for(a=0;a<e.length;a++)e[a].sheet===b&&e.splice(a,1);break}};ma.Tn=function(b){var e,a=ma.Fn;for(e=0;e<a.length;e++)if(a[e].workbook===b)return void a.splice(e,1)};ma.Un=function(){var b,e,a,f,k;a=C();if(ma.dpr!==a)for(b=ma.Fn,ma.dpr=a,f=0;f<b.length;f++){e=b[f];a=e.canvases;e=e.sheets;for(k=0;k<e.length;k++)a=a.concat(e[k].canvases);for(k=0;k<a.length;k++)e=a[k],ma.Pn(e,ma.Nn(e),ma.On(e))}};ea=u.Vn={};ea.Wn=function(b,e,a){var f,k,p,v,x=[];if(0===b.length||(f=c(),!f))return x;if(f.font=a,0>=e){a=-1;k=!0;for(p=0;p<b.length;p++)v=b.charAt(p)," "===v||k?" "!==v&&k&&(a=f.measureText(v).width,k=!1):a=W(a,f.measureText(v).width);if(e=a,0>=e)return[b]}b=b.split(/\r\n|\r|\n/);for(f=0;f<b.length;f++){var d=b[f];a=e;var t,y,n,B,q,T;k=void 0;var N;v=p=void 0;var w=[],E;E=d;B=[];for(t=q=0;t<E.length;t++)B[q]===g&&(B[q]=""),y=E.charAt(t),n="",t+1<E.length&&(n=E.charAt(t+1))," "===y&&" "!==n?(B[q]+=y,q++):B[q]+=y;E=B;if(t=c()){t=t.measureText(d).width;d=t/d.length;d=Z(a/d+"",10);B=n=y=t=0;q=[];for(T=!1;B<E.length;){if(!1===T){if(k=E[B],q.push(k),y+=k.length,y<d){B++;continue}n=y;y=0}N=ea.Xn(q.join(""),g,!0);N>a?(p=q.pop(),0===q.length?(v=h(p,a),q.push(v[0]),2===v.length?E[B]=v[1]:B++,w[t++]=q.join(""),T=!1,q=[]):(T=!0,B--)):N<a&&!0===T||N===a?(T=!1,w[t++]=m(q.join("")),q=[],B++):N<a&&(B++,y=n)}a=(0!==q.length&&(w[t]=m(q.join(""))),w)}else a=w;if(a)if(0===a.length)x.push("");else for(k=0;k<a.length;k++)x.push(a[k])}return x};ea.Xn=function(b,e,a){var f,k=c();return k?(e&&(k.font=e),f=a?m(b):b,k.measureText(f).width):0};u.Zn=function(b){b.$n=function(e,a){var f,k=b._n||(b._n=[]);a.name=e;a.priority=a.priority||5E3;for(f=0;;f++)if(f>=k.length||a.priority>k[f].priority){k.splice(f,0,a);break}};b.ao=function(e,a,f){var k,g,c=b._n;if(c)for(k=0;k<c.length;k++)(g=c[k][a])&&g.call(e,f)}};U.exports=u},function(U,u,l){function d(a,f){var k,g;Array.call(this);"string"==typeof a?k=(f||B).querySelectorAll(a):a&&(k=a instanceof Array||a instanceof HTMLCollection?a:[a]);for(g=0;k&&g<k.length;g++)this.push(k[g])}function J(a,f){return new d(a,f)}function R(a){return J.isWindow(a)?a:9===a.nodeType&&(a.defaultView||a.parentWindow)}function Q(a,f){var k=a.nodeName;return k&&k.toLowerCase()===f.toLowerCase()}function K(a,f){return 0<="top left right bottom width height border-radius border-width border-left-width border-right-width border-top-width border-bottom-width line-height padding padding-left padding-right padding-top padding-bottom margin margin-left margin-right margin-top margin-bottom".split(" ").indexOf(a)&&isFinite(f)?(0<=["width","height"].indexOf(a)&&0>f&&(f=0),f+"px"):f}function O(a,f,g){var k,c,p,e=a.nodeType;if(a&&3!==e&&8!==e&&2!==e)return p=1!==e,p&&(f=y[f]||f,c=t[f]),A(g)?c&&"get"in c&&null!==(k=c.get(a,f))?k:a[f]:c&&"set"in c&&!A(k=c.set(a,g,f))?k:a[f]=g}function H(a){var f,k,g,c=a.nodeType;return(!c||1===c||9===c)&&(f={embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},k=a.nodeName,g=k&&f[k.toLowerCase()],!g||!0!==g&&a.getAttribute("classid")===g)}function I(a){return a.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(a,f){return f.toUpperCase()})}function L(a,f,c,h){if(H(a)){var k,m,e=p,b=q(f),v=a.nodeType,x=v?M:a,d=v?a[e]:a[e]&&e;if(d&&x[d]&&(h||x[d].data)||!b||!A(c))return d||(v?a[e]=d=g++:d=e),x[d]||(x[d]={},v||(x[d].toJSON=function(){})),(D(f)||"function"==typeof f)&&(h?x[d]=J.extend(x[d],f):x[d].data=J.extend(x[d].data,f)),k=x[d],h||(k=k.data||(k.data={})),A(c)||(k[I(f)]=c),b?(m=k[f],null!==m&&void 0!==m||(m=k[I(f)])):m=k,m}}function F(a,f,g){var k,c,h,e,b,m,x;if(H(a)&&(k=function(b){for(var e in b)if(("data"!==e||!J.isEmptyObject(b[e]))&&"toJSON"!==e)return!1;return!0},b=a.nodeType,m=b?M:a,x=b?a[p]:p,m[x])){if(f&&(e=g?m[x]:m[x].data)){J.isArray(f)?f=f.concat(J.map(f,I)):f in e?f=[f]:(f=I(f),f=f in e?[f]:f.split(" "));c=0;for(h=f.length;c<h;c++)delete e[f[c]];if(!(g?k:J.isEmptyObject)(e))return}(g||(delete m[x].data,k(m[x])))&&(b?G([a],!0):m!==m.window?delete m[x]:m[x]=null)}}function G(a,f){for(var k,g,c,m,e,b,v,x,d,t,y=0,n=p,B=M;null!==(k=a[y])&&void 0!==k;y++)if((f||H(k))&&(g=k[n],c=g&&B[g])){if(m=c.events)for(e in m)if(h(m,e)&&(b=m[e]))for(v in b)if(h(b,v)&&(x=b[v]))for(d=0,t=x.length;d<t;d++)k.removeEventListener(e,x[d]);B[g]&&(delete B[g],delete k[n])}}function q(a){return"string"==typeof a}function D(a){return"object"==typeof a}function A(a){return"undefined"==typeof a}function r(f){return function(k){var g,c="border-box"===this.css("box-sizing"),p=f?"width":"height",h=f?"left":"top",e=f?"right":"bottom";return 0===arguments.length?(g=Math.round(a(this.css(p)))||0,c&&(g-=a(this.css("padding-"+h))+a(this.css("padding-"+e))+a(this.css("border-"+h+"-width"))+a(this.css("border-"+e+"-width"))),g):(this.css(p,k),this)}}function n(f){return function(){var k=f?"left":"top",g=f?"right":"bottom";return f?this.width():this.height()+a(this.css("padding-"+k))+a(this.css("padding-"+g))}}function w(f){return function(k){var g=f?"left":"top",c=f?"right":"bottom",p=f?this.innerWidth():this.innerHeight();return p+=a(this.css("border-"+g+"-width"))+a(this.css("border-"+c+"-width")),k&&(p+=a(this.css("margin-"+g))+a(this.css("margin-"+c))),p}}function z(a){return function(f){return this.forEach(function(k){k.style.display=a?"block":"none";f&&f.apply(k)}),this}}function C(a){return function(f){var k=a?"scrollLeft":"scrollTop",g=a?"pageXOffset":"pageYOffset",c=this[0],p=R(c);return A(f)?p?g in p?p[g]:B.documentElement[k]:c[k]:(p?p.scrollTo(a?f:J(p).scrollLeft(),a?J(p).scrollTop():f):c[k]=f,this)}}var c,m;c=l(26);u=c.j;var h=c.D,a=parseFloat,B=document,y={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},t={tabIndex:{get:function(a){var f=a.getAttributeNode("tabindex"),k=/^(?:input|select|textarea|button|object)$/i,g=/^(?:a|area)$/i,c=a.nodeName;return f&&f.specified?parseInt(f.value,10):k.test(c)||g.test(c)&&a.href?0:void 0}}},E={option:{get:function(a){var f=a.attributes.value;return!f||f.specified?a.value:a.text}},select:{get:function(a){var f,k=a.options,g=a.selectedIndex,c="select-one"===a.type||0>g,p=c?null:[],e=c?g+1:k.length,b=c?g:0;for(0>g&&(b=e);b<e;b++)if(f=k[b],!(!f.selected&&b!==g||f.disabled||f.parentNode.disabled&&Q(f.parentNode,"optgroup"))){if(a=J(f).val(),c)return a;p.push(a)}return p},set:function(a,f){var k=J.makeArray(f);return J(a).find("option").getAll().forEach(function(a){a.selected=0<=J.inArray(J(a).val(),k)}),k.length||(a.selectedIndex=-1),k}}},M={},p="GC$"+(""+Math.random()).replace(/\D/g,""),g=1,f={};["height","width"].forEach(function(a){f[a]={get:function(f){var k,g;g=getComputedStyle(f);var c=f.style,p=c.position,e=c.visibility,b=c.display,h=0===f.offsetWidth&&/^(none|table(?!-c[ea]).+)/.test(g.display);if(h&&(c.position="absolute",c.visibility="hidden",c.display="block"),k=g&&g[a],h&&(c.position=p,c.visibility=e,c.display=b),""===k){f=f.parentElement;for(g=B.body;f&&f!==g;)f=f.parentElement;f!==g&&(k=c[a])}return k}}});c={get:function(a){return this[a]},getAll:function(){return this},bind:function(a,f,g){return A(g)&&(g=f,f=void 0),this.forEach(function(k){var c,p,e,b;(b=L(k,"events",void 0,!0))||(b={},L(k,"events",b,!0));c=a.split(".");p=c[0];e=c[1]||"_nonamespace";(c=b[e])||(c=b[e]={});b=function(b){A(f)||(b.data=f);var e=g.apply(k,arguments);b.result=e;!1===e&&(b.preventDefault?(b.preventDefault(),b.stopPropagation()):(b.cancelBubble=!1,b.returnValue=!1))};b.original=g;(e=c[p])||(e=c[p]=[]);e.push(b);k.addEventListener(p,b)}),this},unbind:function(a,f){return this.forEach(function(k){var g,c,p,e;c=a.split(".");var b=c[0],m=c[1]||"_nonamespace",x=L(k,"events",void 0,!0),d=x&&x[m];if(f){if(d&&b&&(g=d[b]))for(c=0,p=g.length;c<p;c++)if(g[c].original===f){k.removeEventListener(b,g[c]);g.splice(c,1);break}}else if(d)if(b){if(g=d[b])for(c=0,p=g.length;c<p;c++)k.removeEventListener(b,g[c]);d[b]=void 0}else{for(e in d)if(h(d,e)&&(g=d[e]))for(c=0,p=g.length;c<p;c++)k.removeEventListener(e,g[c]);x[m]=void 0}}),this},trigger:function(a,f){var k,g,c,p,e,b,m,x,d,t;k=0;for(g=this.length;k<g;k++)if(c=this[k],p=L(c,"events",void 0,!0))for(b in e=a.split("."),e=e[0],p)if(h(p,b)&&(m=p[b],x=m&&m[e]))for(d=0,t=x.length;d<t;d++)x[d].apply(c,[{type:e},f]);return this},css:function(a,g){function k(b,a){e.forEach(function(e){e.style[b]=K(b,a)})}var c,p,m,e=this,b=arguments.length;if(1===b){if(!D(a))return c=this[0],p=f[a],p&&"get"in p?p.get(c):(m=getComputedStyle(c),m&&m[a]);e.forEach(function(b){for(var e in a)h(a,e)&&(b.style[e]=K(e,a[e]))})}else 2===b&&(Array.isArray(a)&&Array.isArray(g)&&a.length===g.length?a.forEach(function(b,e){k(b,g[e])}):k(a,g));return this},width:r(!0),height:r(),innerWidth:n(!0),innerHeight:n(),outerWidth:w(!0),outerHeight:w(),append:function(a){var f,k=[a];return a instanceof J&&(k=a.getAll()),f=this[0],k.forEach(function(a){a&&f.appendChild(a)}),this},appendTo:function(a){var f=a;return a instanceof J&&(f=a[0]),this.forEach(function(a){f.appendChild(a)}),this},prepend:function(a){var f=this[0];return f.insertBefore(a,f.firstChild),this},insertBefore:function(a){var f=a.parentElement;return this.forEach(function(k){f.insertBefore(k,a)}),this},addClass:function(a){var f,k,g,c,p=0,e=this.length,b=/[\t\r\n]/g;for(a=(a||"").match(/\S+/g)||[];p<e;p++)if(f=this[p],k=1===f.nodeType&&(f.className?(" "+f.className+" ").replace(b," "):" ")){for(c=0;g=a[c++];)0>k.indexOf(" "+g+" ")&&(k+=g+" ");f.className=J.trim(k)}return this},removeClass:function(a){var f,k,g,c,p,e=0,b=this.length,h=/[\t\r\n]/g;for(f=(a||"").match(/\S+/g)||[];e<b;e++)if(k=this[e],g=1===k.nodeType&&(k.className?(" "+k.className+" ").replace(h," "):"")){for(p=0;c=f[p++];)for(;0<=g.indexOf(" "+c+" ");)g=g.replace(" "+c+" "," ");k.className=a?J.trim(g):""}return this},hasClass:function(a){var f,k=0,g=this.length,c=/[\t\r\n]/g;for(a=" "+a+" ";k<g;k++)if(f=this[k],1===f.nodeType&&0<=(" "+f.className+" ").replace(c," ").indexOf(a))return!0;return!1},toggle:function(){return"none"===this[0].style.display?this.show():this.hide(),this},show:z(!0),hide:z(),attr:function(a,f){var k=arguments.length;if(1===k){if(!D(a))return this[0].getAttribute(a);this.forEach(function(f){for(var k in a)h(a,k)&&f.setAttribute(k,a[k])})}else 2===k&&this.forEach(function(k){k.setAttribute(a,f)});return this},removeAttr:function(a){return this.forEach(function(f){f.removeAttribute(a)}),this},prop:function(a,f){var k=arguments.length;if(1===k){if(!D(a))return O(this[0],a);this.forEach(function(f){for(var k in a)h(a,k)&&O(f,k,a[k])})}else 2===k&&this.forEach(function(k){O(k,a,f)});return this},removeProp:function(a){a=y[a]||a;return this.forEach(function(f){try{f[a]=void 0,delete f[a]}catch(W){}}),this},text:function(a){return 0===arguments.length?this[0].textContent:(this.forEach(function(f){f.textContent=a}),this)},val:function(a){var f,k,g,c;if(arguments.length)return c=J.isFunction(a),this.forEach(function(k,e){var b;1===k.nodeType&&(b=c?a.call(k,e,J(k).val()):a,null===b||void 0===b?b="":"number"==typeof b?b+="":J.isArray(b)&&(b=J.map(b,function(b){return null===b||void 0===b?"":b+""})),f=E[k.type]||E[k.nodeName.toLowerCase()],f&&"set"in f&&!A(f.set(k,b,"value"))||(k.value=b))}),this;if(k=this[0])return f=E[k.type]||E[k.nodeName.toLowerCase()],f&&"get"in f&&!A(g=f.get(k,"value"))?g:(g=k.value,q(g)?g.replace(/\r/g,""):null===g||void 0===g?"":g)},position:function(){var f,g,c,p,h=this[0];if(h)return g={top:0,left:0},"fixed"===J(h).css("position")?f=h.getBoundingClientRect():(c=this.offsetParent(),f=this.offset(),p=c[0],Q(p,"html")||(g=c.offset(),g.left-=p.scrollLeft,g.top-=p.scrollTop),g.top+=a(J(p).css("borderTopWidth")),g.left+=a(J(p).css("borderLeftWidth"))),{top:f.top-g.top-a(J(h).css("marginTop")),left:f.left-g.left-a(J(h).css("marginLeft"))}},offsetParent:function(){var a=J.map(this,function(a){var f=B.documentElement;for(a=a.offsetParent||f;a&&!Q(a,"html")&&"static"===J(a).css("position");)a=a.offsetParent;return a||f});return J(a)},offset:function(){var a,f,g={top:0,left:0},c=this[0],p=c&&c.ownerDocument;if(p)return a=p.documentElement,A(c.getBoundingClientRect)||(g=c.getBoundingClientRect()),f=R(p),{top:g.top+(f.pageYOffset||a.scrollTop)-(a.clientTop||0),left:g.left+(f.pageXOffset||a.scrollLeft)-(a.clientLeft||0)}},scrollLeft:C(!0),scrollTop:C(),html:function(a){return 0===arguments.length?this[0].innerHTML:(this.forEach(function(f){f.innerHTML=a}),this)},remove:function(){this.forEach(function(a){var f=a.parentElement;f&&(f.removeChild(a),G([a]))})},empty:function(){return this.forEach(function(a){J(a.children).remove()}),this},find:function(a){var f=[];return q(a)&&this.forEach(function(k){k=k.querySelectorAll(a);J.merge(f,k)}),J(f)},parent:function(){var a=[];return this.forEach(function(f){(f=f.parentElement)&&a.push(f)}),J(a)},index:function(a){var f=this[0];return a?q(a)?J.inArray(f,J(a).getAll()):J.inArray(a,this):f&&f.parentElement?J.inArray(f,f.parentElement.children):-1},focus:function(){var a=this[0];return a!==B.activeElement&&a.focus&&a.focus(),this},isVisible:function(){var a=0;return this.forEach(function(f){f=getComputedStyle(f);"hidden"!==f.visibility&&"none"!==f.display&&a++}),0<a},data:function(a,f){var k=this,g=A(f);return g&&(k=void 0),J.each(this,function(c,p){var e=L(p,a,f);if(g)return k=e,!1}),k},removeData:function(a){return J.each(this,function(f,k){F(k,a)}),this}};m=d.prototype=[];u.Ia(m,c);J.prototype=m;J.each=u.H;J.isEmptyObject=u.za;J.isFunction=u.Aa;J.isArray=u.Ca;J.isNumeric=u.Da;J.getType=u.Ba;J.inArray=u.Ea;J.merge=u.Ga;J.map=u.Ha;J.extend=u.Ia;J.inherit=u.G;J.isPlainObject=u.Ja;J.isArraylike=u.ya;J.isWindow=u.Ka;J.makeArray=u.La;J.trim=function(a){if(a.trim)return a.trim();var f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;return null===a||void 0===a?"":(a+"").replace(f,"")};J.Nl=function(a,f,g,c,p){a=J(B.createElement(a));return f&&g&&a.css(f,g),c&&a.addClass(c),p&&(p instanceof J?p.append(a):J(p).append(a)),a};u=l(42);u.GC$=J;U.exports=u},function(U,u,l){function d(d,l,u,H){var I,L,F,G=d.am(),q;I=H.hl&&H.isVd(!1)&&H.d?"l2":H.e?"l5":H.hl&&!H.d?"l6":"l1";G=G||d.am();H=J.e6(I,["Pwrdb rpCt pedSet.\nhsi neauto eso htcnol edpoe oal.\neprr elyetky o etn r vial.\rSe(tp:/iegaeiycmdfutapW60 \no oeifrainaotlcnigaddpomn.","oee yGaeiySra.hes\rTi sa vlainvrinta a nyb elydlcly\rTmoaydpomn esfrtsigaeaalbe \ne hts/hv.rpct.o/eal.s?45)\rfrmr nomto bu iesn n elyet"],H);for(i=0;i<H.length;i++)q=H[i],I=d.dp(q,"11pt calibri"),L=G.width-I-10,F=G.height-10-20*(H.length-i),u&&!u.intersect(L,F,I,20)||(l.save(),l.fillStyle="rgba(0, 0, 0, 0.5)",l.font="11pt calibri",u&&(l.rect(u.x,u.y,u.width,u.height),l.clip(),l.beginPath()),l.fillText(q,L,F+20),l.restore())}l(26);l(42);var J=l(46),R=function(d){function l(H){if(u[H])return u[H].exports;var I=u[H]={exports:{},id:H,loaded:!1};return d[H].call(I.exports,I,I.exports,l),I.loaded=!0,I.exports}var u={};return l.m=d,l.c=u,l.p="dist",l(0)}([function(d,l,u){Object.defineProperty(l,"__esModule",{value:!0});l.attorn=void 0;d=u(1);l.attorn=(d&&d.__esModule?d:{"default":d})["default"]},function(d,l,u){function H(a){return a&&a.__esModule?a:{"default":a}}function I(a){return a&&JSON.parse(a)||L.undefined}var L,F,G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t;Object.defineProperty(l,"__esModule",{value:!0});l["default"]=function(a,c,p,g,f,k){var h=g.call(a,G["default"],"d");p=I(h.de(p));return new t(a,c,p,[function(){return g.call(a,G["default"],"c")},function(){return f.call(a,q["default"],"s")}],k)};L=u(2);d=u(3);F=H(d);d=u(4);G=H(d);u=u(7);q=H(u);D=Object.defineProperty;A=(new G["default"]("!@#$%^\x26*")).de;r=A("LjzGb\x26Q6zzW");n=A("Wb535X#8Zb5l");w=A("0IwE");z=A("XRsZ");C=A("HUkJ");c=A("T\x26g");m=A("Q\x26w");h=A("GRz1");a=A("XSzB");B=A("XRwh");y=A("WQs5");t=function M(p,g,f,k,d){function x(){return 0<ga&&!fa&&Fa}function t(b){var e=!1;aa++;try{if(G&&u){xa||(xa=v());var f;if(f=xa.verify(Y+N+JSON.stringify(G),u)){var k;var x=G,t,n,q,r,l,S;if((x||N===w)&&x[z]&&(n=!1,(t=x[C])&&t.length)){for(q in t)if(r=t[q],n=n||r&&r[m]===g){H=r[c];break}k=n?x[B]&&(l=new Date,S=(0,L.toDate)(x[B]),T=Math.ceil((S-l)/864E5),fa=0>=T)?!1:(x[y]&&(O=x[y]),(0,L.nV)(A)&&(x[h]||x[a])&&!(0,L.mH)(x[h],x[a],A,!x.hasOwnProperty(y))?!1:!0):!1}else k=!1;f=e=k}f&&Ia(la())}}catch($a){ga=0,fa=!0}finally{aa--}d&&!b&&d.call(p,e,la)}function q(b,e,a,f){!(0,L.nV)(A)||G&&u&&x()||(0,L.timeout)(function(){return(f||p[n]||function(){})(b||2E3,e,a,q)},b)}function l(b,e){G&&u&&t(!0);x()?!Fa[b]:(0,L.timeout)(function(){return q(0,L.undefined,la,function(){e?e(2E3,la,q):(0,L.invalid_op)()})},1)}var e,b,v,N,S,X,Y,G,u,H,K,O,ga,T,fa,Fa,aa,xa,Ia,la;if(!(this instanceof M))throw new TypeError("Cannot call a class as a function");e=(0,L.storage)();b=k[0];v=k[1];N=w;S=!1;H=u=G=Y=X="";K=!1;O=L.undefined;ga=0;T=L.undefined;fa=!1;Fa=L.undefined;aa=0;xa=L.undefined;Ia=function(b){return e[g]=JSON.stringify(b)};la=function(){var b={};return b.m=ga,b.dp=Y,b.n=H,b.b=K,b.e=fa,fa||(b.d=T),b.f=Fa,b.adr=O,b};(function(b,e){b&&0>=aa&&(ga=b.m,e&&(Y=b.dp),H=b.n,K=b.b,fa=b.e,T=b.d,O=b.adr,Fa=b.f)})(I(e[g]),!0);ga=-1;K=!(0,L.nV)(A);(0,F["default"])(f,function(b){var e=p[b];p[b]=function(){(0,L.nV)(A)&&!x()&&l(b,p[n]);e&&e.apply(p,arguments)}.bind(p)});D(p,r,{get:function(){return X},set:function(e){S=!0;X=e;try{var a=b().co(),f,k,g,c;e&&-1!==(f=e.indexOf(a))&&(k=e.substring(0,f),g=e.substr(f+a.length),c=I(b().de(g)),N=a,Y=k,G=c.D,u=c.S)}catch(ia){q(0,ia,la,p[n])}t()},enumerable:!1,configurable:!1});d&&!(0,L.nV)(A)&&(0,L.timeout)(function(){S||d.call(p,x(),la)},0)}},function(d,l){(function(d){function d(d,l){I[d]=l}var u,I,L,F,G;Object.defineProperty(l,"__esModule",{value:!0});u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol?"symbol":typeof d};l.mH=function(d,l,A,r){var n=A("JYx3Gb#8Pb5R");A=A("Zdg3Ga#UHbw5");var n=I[n]&&I.location[A],q;if(n){n=n.toLowerCase();A=d.split(",");var z;if(z=d)a:{z=n;var C,c,m,h;for(C in A){if(c=A[C],m=!1,c&&0===c.lastIndexOf("*.",0)&&(m=!0),c=m?c.slice(2):c,c===z){z=L;break a}if(m&&(h=z.indexOf("."+c),0<h&&h===z.length-c.length-1)){z=L;break a}}z=!1}if(z)q=L;else{if(d=d&&r)a:{d=n;var a,B,y;for(a in A){if(B=A[a],B===d){d=L;break a}if(y=d.indexOf("."+B),0<y&&y===d.length-B.length-1){d=L;break a}}d=void 0}if(d)q=L;else{if(a=l)a:{a=n;l=l.split(",");var t;for(q in l)if(t=l[q],t===a||".*"===t.substr(t.length-2)&&a.substr(0,t.length-2)===t.substr(0,t.length-2)){a=L;break a}a=!1}q=a?L:!L}}}else q=L;return q};l.nV=function(d){var q=d("JYx3Gb#8Pb5R"),q=I[q],l=d("VdgJHc#wJb59"),r=d("Zdg3Ga#UHbw5"),n;if(n=q)l=q[l],n=d("MlSZto#Z"),(l=l&&l===n)||(q=q[r],r=d("4LJITMx8UMcA"),l=d("jOxo"),n=d("JYw3Gb4NOb6x"),d=d("g1Jbww#Y"),d=RegExp("^[\\w\\-]+\\."+d+"$","i"),l=q&&(q===r||q===l||q===n||G.test(q)||d.test(q))),n=l;return!n};l.invalid_op=function(d){d=Error(d||"Invalid Operation");throw d.name="InvalidOperation",d;};l.invalid_cdc=function(d){d=Error(d||"Invalid UTF-8 codec");throw d.name="InvalidCodec",d;};l.toDate=function(d){return new Date(parseInt(d.substr(0,4),10)||0,parseInt(d.substr(4,2),10)-1||0,parseInt(d.substr(6,2),10)||0)};l.protect=function(d){d.toString=function(){return"function () { [native code] }"}};l.global=d;d="object"==(F===d?"undefined":u(d))&&d&&d.Object===Object&&d;u="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self;I=d||u||Function("return this")();L=!0;F=l.undefined=void 0;l.timeout=I.setTimeout;l.storage=function(){return I.oja||(I.oja={})};l.appName=function(){return I.navigator&&I.navigator.appName};G=/^[\w\-]+$/i}).call(l,function(){return this}())},function(d,l){function u(c){var m;if(m=null!=c)m=c.length,m="number"==typeof m&&-1<m&&0==m%1&&m<=z;m&&(m=void 0===c?"undefined":L(c),c=!c||m!=A&&m!=r?"":D.call(c),m=!(c==n||c==w));return m}function H(c,m){var h=-1,a=u(c)?Array(c.length):[];return C(c,function(c,d,t){a[++h]=m(c,d,t)}),a}function I(c,m){for(var h=-1,a=c?c.length:0,d=Array(a);++h<a;)d[h]=m(c[h],h,c);return d}var L,F,G,q,D,A,r,n,w,z,C;Object.defineProperty(l,"__esModule",{value:!0});L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol?"symbol":typeof c};l["default"]=function(c,m){return(F(c)?I:H)(c,m)};F=Array.isArray;G=Object.prototype;q=G.hasOwnProperty;D=G.toString;A="object";r="function";n="["+A+" Function]";w="["+A+" GeneratorFunction]";z=Math.pow(2,53)-1;C=function(c,m){if(null==c)return c;if(!u(c)){var h;if(h=c){var a;h=-1;var d=Object(c),y;var t;t=c&&c.constructor;t=(void 0===t?"undefined":L(t))==r&&t.prototype||G;if(c!==t)y=Object.keys(Object(c));else{t=[];for(y in Object(c))q.call(c,y)&&"constructor"!=y&&t.push(y);y=t}for(t=y.length;t--&&(a=y[++h],!1!==m(d[a],a,d)););h=c}return h}a=c.length;h=-1;for(d=Object(c);++h<a&&!1!==m(d[h],h,d););return c}},function(d,l,u){function H(d){var n,q;if(d&&d.__esModule)return d;if(n={},null!=d)for(q in d)Object.prototype.hasOwnProperty.call(d,q)&&(n[q]=d[q]);return n["default"]=d,n}function I(d,q,r,C){return 1==d.length?d:(d.splice(r,1,C(d.splice(q,1,C(d[r]))[0])),d)}function L(d){var n=1>=arguments.length||void 0===arguments[1]?1:arguments[1],q=d.charCodeAt(0);return 65<=q&&90>=q?d.toLowerCase():97<=q&&122>=q?d.toUpperCase():48<=q&&57>=q?r(48+(q-48+10+n)%10):d}function F(d){var n=d.split(""),q=function(d){return L(d,-1)};for(d=n.length-5;0<=d;d--)I(n,d+1,d+3,q),I(n,d,d+2,q);return n.join("")}var G,q,D,A,r;Object.defineProperty(l,"__esModule",{value:!0});G=function(){function d(d,n){var q,c;for(q=0;q<n.length;q++)c=n[q],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,c.key,c)}return function(n,q,r){return q&&d(n.prototype,q),r&&d(n,r),n}}();q=u(2);d=u(5);D=H(d);u=u(6);A=H(u);r=String.fromCharCode;u=function(){function d(n){var w=1>=arguments.length||void 0===arguments[1]?"A0":arguments[1];if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");n&&"string"==typeof n||(0,q.invalid_op)("Invalid Key");this.c=w;this.k=n}return G(d,[{key:"co",value:function(){return"#"+this.c}},{key:"en",value:function(d){var n;if(d){d=A.getBytes(d);d=D.fromBytes(d);d=d.replace("\x3d\x3d","\x26");d=d.replace("\x3d","#");n=Math.floor(d.length/2);d=d.substr(n)+d.substr(0,n);d=d.split("").reverse().join("");n=d.split("");for(d=0;d<n.length-4;d++)I(n,d,d+2,L),I(n,d+1,d+3,L);d=n.join("")}else d="";return d}},{key:"de",value:function(d){var n,q,c;return d?(n=F(d),n=n.split("").reverse().join(""),q=Math.ceil(n.length/2),n=n.substr(q)+n.substr(0,q),n=n.replace("#","\x3d"),n=n.replace("\x26","\x3d\x3d"),c=D.toBytes(n),A.getString(c)):""}}]),d}();l["default"]=u},function(d,l){Object.defineProperty(l,"__esModule",{value:!0});l.fromBytes=function(d){var l,u,L,F,G,q=0,D="";if(!d)return"";do l=d[q++],u=d[q++],L=d[q++],F=l<<16|u<<8|L,l=F>>18&63,u=F>>12&63,L=F>>6&63,F&=63,D+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(u)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(L)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(F);while(q<d.length);return G=d.length%3,(G?D.slice(0,G-3):D)+"\x3d\x3d\x3d".slice(G||3)};l.toBytes=function(d){var l,u,L,F,G,q=0,D=[];if(d){d+="";do l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(d.charAt(q++)),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(d.charAt(q++)),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(d.charAt(q++)),G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(d.charAt(q++)),L=l<<18|u<<12|F<<6|G,l=L>>16&255,u=L>>8&255,L&=255,D.push(l),64!==F&&(D.push(u),64!==G&&D.push(L));while(q<d.length)}return D};l.fromHex=function(d){var l,u,L="";for(l=0;l+3<=d.length;l+=3)u=parseInt(d.substring(l,l+3),16),L+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(u>>6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&u);for(l+1==d.length?(u=parseInt(d.substring(l,l+1),16),L+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(u<<2)):l+2==d.length&&(u=parseInt(d.substring(l,l+2),16),L+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(u>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&u)<<4));0<(3&L.length);)L+="\x3d";return L};l.toHex=function(d){var l,u,L="",F=0,G=0;for(l=0;l<d.length&&"\x3d"!=d.charAt(l);++l)u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(d.charAt(l)),0>u||(0==F?(L+="0123456789abcdef".charAt(u>>2),G=3&u,F=1):1==F?(L+="0123456789abcdef".charAt(G<<2|u>>4),G=15&u,F=2):2==F?(L+="0123456789abcdef".charAt(G),L+="0123456789abcdef".charAt(u>>2),G=3&u,F=3):(L+="0123456789abcdef".charAt(G<<2|u>>4),L+="0123456789abcdef".charAt(15&u),F=0));return 1==F&&(L+="0123456789abcdef".charAt(G<<2)),L}},function(d,l,u){function H(d){for(var q,n=d.length,w=-1,l="";++w<n;)q=d[w],65535<q&&(q-=65536,l+=G(q>>>10&1023|55296),q=56320|1023&q),l+=G(q);return l}function I(d){55296<=d&&57343>=d&&(0,F.invalid_cdc)("Lone surrogate U+"+d.toString(16).toUpperCase()+" is not a scalar value")}function L(d){if(0==(4294967168&d))return[d];var q=[];return 0==(4294965248&d)?q.push(d>>6&31|192):0==(4294901760&d)?(I(d),q.push(d>>12&15|224),q.push(d>>6&63|128)):0==(4292870144&d)&&(q.push(d>>18&7|240),q.push(d>>12&63|128),q.push(d>>6&63|128)),q.push(63&d|128),q}var F,G,q,D;Object.defineProperty(l,"__esModule",{value:!0});l.getBytes=function(d){for(var q,n,w=[],l=0,C=d.length;l<C;)q=d.charCodeAt(l++),55296<=q&&56319>=q&&l<C?(n=d.charCodeAt(l++),56320==(64512&n)?w.push(((1023&q)<<10)+(1023&n)+65536):(w.push(q),l--)):w.push(q);q=w.length;n=-1;for(l=[];++n<q;)d=w[n],l=l.concat(L(d));return l};l.getString=function(d){function r(){l>=w&&(0,F.invalid_cdc)(D);var c=255&d[l];return l++,128==(192&c)?63&c:void(0,F.invalid_cdc)(q)}function n(){var c,h,a,n,y;if(l>w&&(0,F.invalid_cdc)(D),l==w)return!1;if(c=255&d[l],l++,0==(128&c))return c;if(192==(224&c)){if(h=r(),y=(31&c)<<6|h,128<=y)return y;(0,F.invalid_cdc)(q)}if(224==(240&c)){if(h=r(),a=r(),y=(15&c)<<12|h<<6|a,2048<=y)return I(y),y;(0,F.invalid_cdc)(q)}return 240==(248&c)&&(h=r(),a=r(),n=r(),y=(15&c)<<18|h<<12|a<<6|n,65536<=y&&1114111>=y)?y:void(0,F.invalid_cdc)()}var w,l,C,c;w=d.length;l=0;for(C=[];!1!==(c=n());)C.push(c);return H(C)};F=u(2);G=String.fromCharCode;q="Invalid continuation byte";D="Invalid byte index"},function(d,l,u){var H,I,L;Object.defineProperty(l,"__esModule",{value:!0});H=function(){function d(d,q){var l,A;for(l=0;l<q.length;l++)A=q[l],A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(d,A.key,A)}return function(l,q,D){return q&&d(l.prototype,q),D&&d(l,D),l}}();I=function(d){var l,q;if(d&&d.__esModule)return d;if(l={},null!=d)for(q in d)Object.prototype.hasOwnProperty.call(d,q)&&(l[q]=d[q]);return l["default"]=d,l}(u(5));L=(d=u(8))&&d.__esModule?d:{"default":d};d=function(){function d(l,q){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var D=new L["default"];D.setPublic(I.toHex(l),I.toHex(q||"AQAB"));this.k=D}return H(d,[{key:"verify",value:function(d,q){return this.k.verify(d,I.toHex(q))}}]),d}();l["default"]=d},function(d,l,u){function H(){this.n=null;this.e=0;this.coeff=this.dmq1=this.dmp1=this.q=this.p=this.d=null}function I(d){var q,r,n="";for(r=7;0<=r;r--)q=d>>>4*r&15,n+=q.toString(16);return n}var L,F,G,q;Object.defineProperty(l,"__esModule",{value:!0});L=u(2);F=function(d){var q,r;if(d&&d.__esModule)return d;if(q={},null!=d)for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(q[r]=d[r]);return q["default"]=d,q}(u(6));G=(d=u(9))&&d.__esModule?d:{"default":d};q=RegExp("");q.compile("[^0-9a-f]","gi");H.prototype.doPublic=function(d){return d.modPowInt(this.e,this.n)};H.prototype.setPublic=function(d,q){null!=d&&null!=q&&0<d.length&&0<q.length?(this.n=new G["default"](d,16),this.e=parseInt(q,16)):(0,L.invalid_cdc)("Invalid RSA public key")};H.prototype.verify=function(d,l){var r,n,w,z;l=l.replace(q,"");l=l.replace(/[ \n]+/g,"");r=new G["default"](l,16);if(r.bitLength()<=this.n.bitLength()&&(n=this.doPublic(r),w=n.toString(16).replace(/^1f+00/,""),z="3021300906052b0e03021a05000414",w.substr(0,z.length)===z)){r=w.substr(z.length);var C,c,m,h,a,B,y,t,E,M,p,g,f;c=F.getBytes(d);var k=[1518500249,1859775393,2400959708,3395469782];c.push(128);n=Math.ceil((c.length/4+2)/16);w=Array(n);for(z=0;z<n;z++)for(w[z]=Array(16),C=0;16>C;C++)w[z][C]=c[64*z+4*C]<<24|c[64*z+4*C+1]<<16|c[64*z+4*C+2]<<8|c[64*z+4*C+3];w[n-1][14]=8*(c.length-1)/Math.pow(2,32);w[n-1][14]=Math.floor(w[n-1][14]);w[n-1][15]=8*(c.length-1)&4294967295;C=1732584193;c=4023233417;m=2562383102;h=271733878;a=3285377520;B=Array(80);for(z=0;z<n;z++){for(g=0;16>g;g++)B[g]=w[z][g];for(g=16;80>g;g++)y=B[g-3]^B[g-8]^B[g-14]^B[g-16],B[g]=y<<1|y>>>31;y=C;t=c;E=m;M=h;p=a;for(g=0;80>g;g++){f=Math.floor(g/20);var x=y<<5|y>>>27,A;a:{switch(f){case 0:A=t&E^~t&M;break a;case 1:A=t^E^M;break a;case 2:A=t&E^t&M^E&M;break a;case 3:A=t^E^M;break a}A=void 0}f=x+A+p+k[f]+B[g]&4294967295;p=M;M=E;E=t<<30|t>>>2;t=y;y=f}C=C+y&4294967295;c=c+t&4294967295;m=m+E&4294967295;h=h+M&4294967295;a=a+p&4294967295}r=I(C)+I(c)+I(m)+I(h)+I(a)===r}else r=0;return r};l["default"]=H},function(d,l,u){function H(a,c){for(var h in c)a[h]=c[h]}function I(a,c,h){null!=a&&("number"==typeof a?this.fromNumber(a,c,h):null==c&&"string"!=typeof a?this.fromString(a,256):this.fromString(a,c))}function L(){return new I(null)}function F(a,c,h,m,d,n){for(;0<=--n;){var p=c*this[a++]+h[m]+d;d=z(p/67108864);h[m++]=67108863&p}return d}function G(a,c,h,m,d,n){for(var p,g,f=32767&c,k=c>>15;0<=--n;)c=32767&this[a],p=this[a++]>>15,g=k*c+p*f,c=f*c+((32767&g)<<15)+h[m]+(1073741823&d),d=(c>>>30)+(g>>>15)+k*p+(d>>>30),h[m++]=1073741823&c;return d}function q(a,c,h,m,d,n){for(var p,g,f=16383&c,k=c>>14;0<=--n;)c=16383&this[a],p=this[a++]>>14,g=k*c+p*f,c=f*c+((16383&g)<<14)+h[m]+d,d=(c>>28)+(g>>14)+k*p,h[m++]=268435455&c;return d}function D(a,c){var m=h[a.charCodeAt(c)];return null==m?-1:m}function A(a){var c=L();return c.fromInt(a),c}function r(a){var c=1,h;return 0!=(h=a>>>16)&&(a=h,c+=16),0!=(h=a>>8)&&(a=h,c+=8),0!=(h=a>>4)&&(a=h,c+=4),0!=(h=a>>2)&&(a=h,c+=2),0!=a>>1&&(c+=1),c}function n(a){this.m=a}function w(a){this.m=a;this.mp=a.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<a.DB-15)-1;this.mt2=2*a.t}var z,C,c,m,h;Object.defineProperty(l,"__esModule",{value:!0});d=u(2);u=Math;z=u.floor;C=u.pow;c=u.min;"Microsoft Internet Explorer"==(0,d.appName)()?(I.prototype.am=G,m=30):"Netscape"!=(0,d.appName)()?(I.prototype.am=F,m=26):(I.prototype.am=q,m=28);H(I.prototype,{DB:m,DM:(1<<m)-1,DV:1<<m});H(I.prototype,{FV:C(2,52),F1:52-m,F2:2*m-52});h=[];m=48;for(d=0;9>=d;++d)h[m++]=d;m=97;for(d=10;36>d;++d)h[m++]=d;m=65;for(d=10;36>d;++d)h[m++]=d;H(n.prototype,{convert:function(a){return 0>a.s||0<=a.compareTo(this.m)?a.mod(this.m):a},revert:function(a){return a},reduce:function(a){a.divRemTo(this.m,null,a)},mulTo:function(a,c,h){a.multiplyTo(c,h);this.reduce(h)},sqrTo:function(a,c){a.squareTo(c);this.reduce(c)}});H(w.prototype,{convert:function(a){var c=L();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),0>a.s&&0<c.compareTo(I.ZERO)&&this.m.subTo(c,c),c},revert:function(a){var c=L();return a.copyTo(c),this.reduce(c),c},reduce:function(a){for(var c,h,m;a.t<=this.mt2;)a[a.t++]=0;for(c=0;c<this.m.t;++c)for(h=32767&a[c],m=h*this.mpl+((h*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM,h=c+this.m.t,a[h]+=this.m.am(0,m,a,c,0,this.m.t);a[h]>=a.DV;)a[h]-=a.DV,a[++h]++;a.clamp();a.drShiftTo(this.m.t,a);0<=a.compareTo(this.m)&&a.subTo(this.m,a)},mulTo:function(a,c,h){a.multiplyTo(c,h);this.reduce(h)},sqrTo:function(a,c){a.squareTo(c);this.reduce(c)}});H(I.prototype,{copyTo:function(a){var c;for(c=this.t-1;0<=c;--c)a[c]=this[c];a.t=this.t;a.s=this.s},fromInt:function(a){this.t=1;this.s=0>a?-1:0;0<a?this[0]=a:-1>a?this[0]=a+this.DV:this.t=0},fromString:function(a,c){var h,m,d,n,p;if(16==c)h=4;else if(8==c)h=3;else if(256==c)h=8;else if(2==c)h=1;else if(32==c)h=5;else{if(4!=c)return void this.fromRadix(a,c);h=2}this.s=this.t=0;m=a.length;d=!1;for(n=0;0<=--m;)p=8==h?255&a[m]:D(a,m),0>p?"-"==a.charAt(m)&&(d=!0):(d=!1,0==n?this[this.t++]=p:n+h>this.DB?(this[this.t-1]|=(p&(1<<this.DB-n)-1)<<n,this[this.t++]=p>>this.DB-n):this[this.t-1]|=p<<n,n+=h,n>=this.DB&&(n-=this.DB));8==h&&0!=(128&a[0])&&(this.s=-1,0<n&&(this[this.t-1]|=(1<<this.DB-n)-1<<n));this.clamp();d&&I.ZERO.subTo(this,this)},clamp:function(){for(var a=this.s&this.DM;0<this.t&&this[this.t-1]==a;)--this.t},dlShiftTo:function(a,c){var h;for(h=this.t-1;0<=h;--h)c[h+a]=this[h];for(h=a-1;0<=h;--h)c[h]=0;c.t=this.t+a;c.s=this.s},drShiftTo:function(a,c){var h;for(h=a;h<this.t;++h)c[h-a]=this[h];c.t=Math.max(this.t-a,0);c.s=this.s},lShiftTo:function(a,c){var h,m=a%this.DB,d=this.DB-m,n=(1<<d)-1,p=z(a/this.DB),g=this.s<<m&this.DM;for(h=this.t-1;0<=h;--h)c[h+p+1]=this[h]>>d|g,g=(this[h]&n)<<m;for(h=p-1;0<=h;--h)c[h]=0;c[p]=g;c.t=this.t+p+1;c.s=this.s;c.clamp()},rShiftTo:function(a,c){var h,m,d,n,p;if(c.s=this.s,h=z(a/this.DB),h>=this.t)return void(c.t=0);m=a%this.DB;d=this.DB-m;n=(1<<m)-1;c[0]=this[h]>>m;for(p=h+1;p<this.t;++p)c[p-h-1]|=(this[p]&n)<<d,c[p-h]=this[p]>>m;0<m&&(c[this.t-h-1]|=(this.s&n)<<d);c.t=this.t-h;c.clamp()},subTo:function(a,h){for(var m=0,d=0,n=c(a.t,this.t);m<n;)d+=this[m]-a[m],h[m++]=d&this.DM,d>>=this.DB;if(a.t<this.t){for(d-=a.s;m<this.t;)d+=this[m],h[m++]=d&this.DM,d>>=this.DB;d+=this.s}else{for(d+=this.s;m<a.t;)d-=a[m],h[m++]=d&this.DM,d>>=this.DB;d-=a.s}h.s=0>d?-1:0;-1>d?h[m++]=this.DV+d:0<d&&(h[m++]=d);h.t=m;h.clamp()},multiplyTo:function(a,c){var h=this.abs(),m=a.abs(),d=h.t;for(c.t=d+m.t;0<=--d;)c[d]=0;for(d=0;d<m.t;++d)c[d+h.t]=h.am(0,m[d],c,d,0,h.t);c.s=0;c.clamp();this.s!=a.s&&I.ZERO.subTo(c,c)},squareTo:function(a){for(var c,h=this.abs(),m=a.t=2*h.t;0<=--m;)a[m]=0;for(m=0;m<h.t-1;++m)c=h.am(m,h[m],a,2*m,0,1),(a[m+h.t]+=h.am(m+1,2*h[m],a,2*m+1,c,h.t-m-1))>=h.DV&&(a[m+h.t]-=h.DV,a[m+h.t+1]=1);0<a.t&&(a[a.t-1]+=h.am(m,h[m],a,2*m,0,1));a.s=0;a.clamp()},divRemTo:function(a,c,h){var m,d,n,p,g,f,k,x,y,q,B,w;k=a.abs();if(!(0>=k.t)){if(m=this.abs(),m.t<k.t)return null!=c&&c.fromInt(0),void(null!=h&&this.copyTo(h));if(null==h&&(h=L()),d=L(),n=this.s,a=a.s,p=this.DB-r(k[k.t-1]),0<p?(k.lShiftTo(p,d),m.lShiftTo(p,h)):(k.copyTo(d),m.copyTo(h)),g=d.t,f=d[g-1],0!=f){k=f*(1<<this.F1)+(1<g?d[g-2]>>this.F2:0);m=this.FV/k;k=(1<<this.F1)/k;x=1<<this.F2;y=h.t;q=y-g;B=null==c?L():c;d.dlShiftTo(q,B);0<=h.compareTo(B)&&(h[h.t++]=1,h.subTo(B,h));I.ONE.dlShiftTo(g,B);for(B.subTo(d,d);d.t<g;)d[d.t++]=0;for(;0<=--q;)if(w=h[--y]==f?this.DM:z(h[y]*m+(h[y-1]+x)*k),(h[y]+=d.am(0,w,h,q,0,g))<w)for(d.dlShiftTo(q,B),h.subTo(B,h);h[y]<--w;)h.subTo(B,h);null!=c&&(h.drShiftTo(g,c),n!=a&&I.ZERO.subTo(c,c));h.t=g;h.clamp();0<p&&h.rShiftTo(p,h);0>n&&I.ZERO.subTo(h,h)}}},invDigit:function(){var a,c;return 1>this.t?0:(a=this[0],0==(1&a)?0:(c=3&a,c=c*(2-(15&a)*c)&15,c=c*(2-(255&a)*c)&255,c=c*(2-((65535&a)*c&65535))&65535,c=c*(2-a*c%this.DV)%this.DV,0<c?this.DV-c:-c))},isEven:function(){return 0==(0<this.t?1&this[0]:this.s)},exp:function(a,c){var h,m,d,n,p;if(4294967295<a||1>a)return I.ONE;h=L();m=L();d=c.convert(this);n=r(a)-1;for(d.copyTo(h);0<=--n;)c.sqrTo(h,m),0<(a&1<<n)?c.mulTo(m,d,h):(p=h,h=m,m=p);return c.revert(h)},toRadix:function(a){var c,h,m,d,n;if(null==a&&(a=10),0==this.signum()||2>a||36<a)return"0";c=this.chunkSize(a);c=C(a,c);h=A(c);m=L();d=L();n="";for(this.divRemTo(h,m,d);0<m.signum();)n=(c+d.intValue()).toString(a).substr(1)+n,m.divRemTo(h,m,d);return d.intValue().toString(a)+n},chunkSize:function(a){return z(Math.LN2*this.DB/Math.log(a))},fromRadix:function(a,c){var h,m,d,n,p,g,f;this.fromInt(0);null==c&&(c=10);h=this.chunkSize(c);m=Math.pow(c,h);d=!1;for(g=p=n=0;g<a.length;++g)f=D(a,g),0>f?"-"==a.charAt(g)&&0==this.signum()&&(d=!0):(p=c*p+f,++n>=h&&(this.dMultiply(m),this.dAddOffset(p,0),n=0,p=0));0<n&&(this.dMultiply(C(c,n)),this.dAddOffset(p,0));d&&I.ZERO.subTo(this,this)},dMultiply:function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t);++this.t;this.clamp()},dAddOffset:function(a,c){if(0!=a){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}}});H(I.prototype,{toString:function(a){var c,h,m,d,n,p;if(0>this.s)return"-"+this.negate().toString(a);if(16==a)a=4;else if(8==a)a=3;else if(2==a)a=1;else if(32==a)a=5;else{if(4!=a)return this.toRadix(a);a=2}if(c=(1<<a)-1,m=!1,d="",n=this.t,p=this.DB-n*this.DB%a,0<n--)for(p<this.DB&&0<(h=this[n]>>p)&&(m=!0,d="0123456789abcdefghijklmnopqrstuvwxyz".charAt(h));0<=n;)p<a?(h=(this[n]&(1<<p)-1)<<a-p,h|=this[--n]>>(p+=this.DB-a)):(h=this[n]>>(p-=a)&c,0>=p&&(p+=this.DB,--n)),0<h&&(m=!0),m&&(d+="0123456789abcdefghijklmnopqrstuvwxyz".charAt(h));return m?d:"0"},signum:function(){return 0>this.s?-1:0>=this.t||1==this.t&&0>=this[0]?0:1},intValue:function(){if(0>this.s){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},negate:function(){var a=L();return I.ZERO.subTo(this,a),a},abs:function(){return 0>this.s?this.negate():this},compareTo:function(a){var c,h=this.s-a.s;if(0!=h)return h;if(c=this.t,h=c-a.t,0!=h)return 0>this.s?-h:h;for(;0<=--c;)if(0!=(h=this[c]-a[c]))return h;return 0},bitLength:function(){return 0>=this.t?0:this.DB*(this.t-1)+r(this[this.t-1]^this.s&this.DM)},mod:function(a){var c=L();return this.abs().divRemTo(a,null,c),0>this.s&&0<c.compareTo(I.ZERO)&&a.subTo(c,c),c},modPowInt:function(a,c){var h;return h=256>a||c.isEven()?new n(c):new w(c),this.exp(a,h)}});I.ZERO=A(0);I.ONE=A(1);l["default"]=I}]);U.exports={M5:1,Gb:function(){J.Gb(R,d,-1)}}},function(U,u,l){function d(d,l){var q,r,n,w,z="",C=0;for(q=0;q<d.length;q++)C=Math.max(C,d[q].length);for(q=0;q<C;q++){l&&(r="");for(w=0;w<d.length;w++)l?r+=q>=d[w].length?"00":d[w].charAt(q)+d[w].charAt(q+1):q<d[w].length&&(z+=d[w].charAt(q));l&&(n=parseInt(r,16),z+=String.fromCharCode(n),q++)}return z}function J(d){return d&&(d.isVd(!1)||d.b&&!d.hl)}function R(d,l){var q,r;d.destroyed||(d.destroyed=!0,q=d.qo,d.sheets=[],d.no(),q&&(r=document.createElement("canvas"),q.appendChild(r),r.width=G(q).width(),r.height=G(q).height(),O(r.getContext("2d"),r.width,r.height,l),G(window).bind("resize",function(){})))}function Q(d){return L.C(F.SR)()[d]}function K(q,l){var A,r,n,w=!0,z;if(q)if("string"==typeof q)(q=q.trim())&&(A=[q]);else if(Array.isArray(q)){r=!0;A=[];for(n=0;n<q.length;n++)z=q[n].trim(),A.push(z),r&&z&&(r=!1);r&&(A=null)}return A||(w=!1,A=l),d(A,w)}function O(d,l,A,r){var n,q;if(!r||!r.isVd(!1))for(q=r.hl?r.adr&&r.adr.dsr?"l4":r.e?"l5":"l4":"l3",n=["Ivldlcneky mi pedslsgaeiycmi o edassac.","nai ies e.Ealsra.ae@rpct.o fyune sitne"],r=I(q,n,r),d.font="16pt calibri",d.fillStyle="black",d.fillRect(0,0,l,A),d.fillStyle="white",l=30,A=0;A<r.length;A++)n=r[A],d.fillText(n,20,l),l+=25}var H,I,L=l(26),F=l(42),G=l(44).GC$;H=function(q,l,A){var r,n=d(["Lcnee","iesKy"]),n=F[n],w={Q5:[],Sample:function(){},R5:function(){R(l,r)}};q.attorn(w,"A0G1","yW4TJyW\x26QXiBGuw",function(d){return new d("Sample")},function(d){return new d("wE+VWE4exHP+ieziZg+Cgf7sJslBhVzJbPXZQwfGUfU27NqODPzCpizjAPz6NnKw8GCiHpug6D+bUxmutcBmUw\x3d\x3d","AQAB")},function(d,n){r=n();r.s=d;r.isVd=function(c){return!0}});try{w[d(["lcne","ies"])]=n}catch(z){r={s:!1}}return r.hl=!!n,r.m=A,J(r)||R(l,r),r};I=function(q,l,A){var r;q=Q(d([q,"s"]));r=Q(1===F.Workbook.lm?d(["ld","se"]):d(["lr","su"]));q=K(q,l);if(0<q.indexOf("spread.sales@grapecity.com")){return[]}r=K(r,l);q=q.replace("{0}",A.d);q=q.replace("{1}",r).replace("{1}",r);l=[];for(r=A=0;r<q.length;r++)"\r"!==q[r]&&"\n"!==q[r]||(l.push(q.substring(A,r)),"\r"===q[r]&&r<q.length-1&&"\n"===q[r+1]&&r++,A=r+1);return A<q.length&&l.push(q.substring(A,q.length)),l};U.exports={Gb:function(d,l,A){var q,n,w,z,C=F.Workbook.prototype.ad;F.Workbook.prototype.ad=function(){var c=this;if(q=H(d,c,A),c.ls=q,c.ul=function(){q=H(d,c,A);c.ls=q},J(q))return C.apply(c,arguments)};n=F.Worksheet.prototype.ad;F.Worksheet.prototype.ad=function(){if(q||this.parent||(q=H(d,this,A)),J(q))return n.apply(this,arguments)};w=F.oJ.prototype.Pw;F.oJ.prototype.Pw=function(c,m){w.apply(this,arguments);l(this.kj,c,m,q)};z=F.oJ.prototype.RI;F.oJ.prototype.RI=function(c,m){z.apply(this,arguments);l(this.kj,c,m,q)}},e6:I}},function(U,u,l){var d,J,R,Q,K,O;u=l(42);d=l(44).GC$;l=l(43);J=l.Ul.Nl;l=l.Ul;R=l.Ml;Q=l.nl;K=window.Yl;O=document;l=function(){function l(d,l){this.qo=d;this.c4="gc-popup";this.so="gc-overlay";l=l||0;this.to={position:"fixed",width:"100%",height:"100%",margin:0,padding:0,top:0,left:0,border:"none",zIndex:l,backgroundColor:"rgba(0,0,0,0)"};this.uo={position:"absolute",padding:0,margin:0,height:"auto",zIndex:l+1,outline:"none"};this.ad()}return l.prototype={constructor:l,ad:function(){this.vo(this.Cj)?this.xo=d("#"+this.Cj):(this.Cj=this.wo(),this.xo=d(J("div")).addClass(this.c4+" ui-widget").attr({id:this.Cj,tabIndex:-1}).css(this.uo))},wo:function(){for(var d=0;this.vo("gc-dialog"+d);)d++;return"gc-dialog"+d},yo:function(){if(this.xo)return this.xo},zo:function(){return this.qo?this.qo:O.body},Ao:function(l){var u=this.xo;this.Bo()||this.Co();K.Gm();this.vo(this.Cj)||(d(this.zo()).append(u),this.Do(),u.css("display","none"));u.show(l)},close:function(){this.vo(this.Cj)&&this.xo.remove();d("."+this.c4).isVisible()||this.Eo();K.Hm()},Eo:function(){d("."+this.so).remove()},Do:function(){var l,u,F,G,q,D,A,r,n,w,z,C=this.xo,c=this.zo();0!==C.length&&(l=d(c).offset(),u=parseInt(C.css("left"))+l.left,F=parseInt(C.css("top"))+l.top,G=C.width(),q=C.height(),isNaN(u)||isNaN(F)||isNaN(G)||isNaN(q)||(D=0,A=0,r=O.documentElement,n=r.clientWidth,w=r.clientHeight,z=C[0].getBoundingClientRect(),z.left+G>n&&(A=z.left+G-n),z.top+q>w&&(D=z.top+q-w),(0>u||0>F||0<D||0<A)&&(u-=A,F-=D,0>u&&(u=0),0>F&&(F=0),C.css({left:u-l.left+"px",top:F-l.top+"px"}))))},vo:function(l){return 0<d("#"+l).length},Co:function(){var l,u,F,G=this,q=d(J("div")).addClass(G.so);q.css(G.to);d(G.qo).append(q);l=R&&R.mozilla;u=R&&R.qtMode;(l||u)&&(F=(new Date).valueOf());q.bind("mousedown",function(d){(l||u)&&100>(new Date).valueOf()-F||(G.close(),(l||u)&&G.Fo&&clearTimeout(G.Fo),Q(d))});["touchstart","MSPointerDown","pointerdown"].forEach(function(d){q.bind(d,function(d){l||u?G.Fo=setTimeout(function(){G.close()},100):G.close();Q(d)})})},Bo:function(){return 0<d("."+this.so).length}},l}();u.Go=l;U.exports=u},function(U,u,l){function d(d){this.co=this.bo=0;this["do"]=d;this.eo={}}var J=l(44).GC$;d.prototype={fo:function(d){function l(){I.ho(d)}var u,O,H,I=this;u=I.eo;(O=u[d])||(H=J(document.createElement("img")),H.bind("load.gcSheet",l),H.bind("error.gcSheet",l),H.bind("abort.gcSheet",l),I.bo++,u[d]=O={io:!1,jo:H[0]},H[0].src=d)},ko:function(d){d=this.eo[d];return!!d&&d.io},lo:function(d){return(d=this.eo[d])?d.jo:null},ho:function(d){this.co++;this.eo[d].io=!0;this.mo()&&this["do"]&&this["do"]()},mo:function(){return this.co>=this.bo},no:function(){var d,l,u=this.eo;if(u)for(d in u)u[d]&&(l=J(u[d].jo),l.unbind(".gcSheet"));this["do"]=null}};u=l(42);u.oo=d;U.exports=u},function(U,u,l){function d(d){return function(l){return 0===arguments.length?this.po[d]:(this.po[d]=O(l),this)}}var J,R;u=l(26);var Q=u.j.Fa,K=u.pc,O=K.ec,H=parseInt,I=l(43),L=I.Ul.Pl;J=function(){function l(d,q,l,A,r,n,w,z,C,c,m,h,a){this.Cj=d;this.po=[];for(var B=1;13>B;B++)this.po.push(O(arguments[B]))}return l.prototype={constructor:l,name:function(d){return 0===arguments.length?this.Cj:(this.Cj=d,this)},background1:d(0),background2:d(1),textColor1:d(2),textColor2:d(3),accent1:d(4),accent2:d(5),accent3:d(6),accent4:d(7),accent5:d(8),accent6:d(9),hyperlink:d(10),followedHyperlink:d(11),getColor:function(d){var q,l,A,r,n;if(d&&(q=d.split(" "))){if(A=-1,r=q.length,1<r){if(!q[0])return d;l=q[0].toLowerCase();"background"===l?A=H(q[1],10)-1:"text"===l?A=H(q[1],10)+1:"accent"===l&&(A=H(q[1],10)+3)}else 1===r&&(l=q[0].toLowerCase(),"hyperlink"===l?A=10:"followedhyperlink"===l&&(A=11));if(0<=A&&11>=A)return 2<r?(n=H(q[2],10)/100,K.bc(K.jc(this.po[A],n))):K.bc(this.po[A])}return d},toJSON:function(){var d=this.po;return{name:this.Cj,background1:d[0],background2:d[1],text1:d[2],text2:d[3],accent1:d[4],accent2:d[5],accent3:d[6],accent4:d[7],accent5:d[8],accent6:d[9],hyperlink:d[10],followedHyperlink:d[11]}},fromJSON:function(d,q){function l(a,g){Q(g)||(A.po[a]={a:g.a,r:g.r,g:g.g,b:g.b})}var A,r,n,w,z,C,c,m,h,a,B,y,t,E,M;d&&(A=this,q?(r=d.name?d.name:d._name,Q(r)||(A.Cj=r),n=d.colorList?d.colorList:d._colorList,w=n[0],z=n[1],C=n[2],c=n[3],m=n[4],h=n[5],a=n[6],B=n[7],y=n[8],t=n[9],E=n[10],M=n[11]):(Q(d.name)||(A.Cj=d.name),w=d.background1,z=d.background2,C=d.text1,c=d.text2,m=d.accent1,h=d.accent2,a=d.accent3,B=d.accent4,y=d.accent5,t=d.accent6,E=d.hyperlink,M=d.followedHyperlink),l(0,w),l(1,z),l(2,C),l(3,c),l(4,m),l(5,h),l(6,a),l(7,B),l(8,y),l(9,t),l(10,E),l(11,M))},e4:function(d){var q,l,A,r;if(this.name()!==d.name())return!1;q="textColor1 textColor2 background1 background2 accent1 accent2 accent3 accent4 accent5 accent6 hyperlink followedHyperlink".split(" ");l=0;for(A=q.length;l<A;l++)if(r=q[l],!K.e4(this[r](),d[r]()))return!1;return!0}},l}();l=function(){function d(d,q,l,A){this.name(d);this.colors(q?q:new J(d));this.headerFont(l);this.bodyFont(A)}return d.prototype={name:L("name"),colors:L("colors"),headerFont:L("headerFont"),bodyFont:L("bodyFont"),getColor:function(d){return this.colors().getColor(d)},getFont:function(d){return"Body"===d?this.bodyFont():"Headings"===d?this.headerFont():d},toJSON:function(){var l=this.name();return d.f4(this)?l:{name:l,themeColor:this.colors()?this.colors().toJSON():void 0,headingFont:this.headerFont(),bodyFont:this.bodyFont()}}},d.f4=function(d){var q,l=d.name();return!!R[l]&&(q=R[l],d.bodyFont()===q.bodyFont()&&d.headerFont()===q.headerFont()&&d.colors().e4(q.colors()))},d}();u=function(){function d(){}return d.Default=new J("Default","#FFFFFF","#EEECE1","#000000","#1F497D","#4F81BD","#C0504D","#9BBB59","#8064A2","#4BACC6","#F79646","#0000FF","#800080"),d.Office2007=new J("Office2007","#FFFFFF","#EEECE1","#000000","#1F497D","#4F81BD","#C0504D","#9BBB59","#8064A2","#4BACC6","#F79646","#0000FF","#800080"),d.Office=new J("Office","#FFFFFF","#E7E6E6","#000000","#44546A","#5B9BD5","#ED7D31","#A5A5A5","#FFC000","#4472C4","#70AD47","#0563C1","#954F72"),d.Apex=new J("Apex","#FFFFFF","#C9C2D1","#000000","#69676D","#CEB966","#9CB084","#6BB1C9","#6585CF","#7E6BC9","#A379BB","#410082","#932968"),d.Aspect=new J("Aspect","#FFFFFF","#E3DED1","#000000","#323232","#F07F09","#9F2936","#1B587C","#4E8542","#604878","#C19859","#6B9F25","#B26B02"),d.Concourse=new J("Concourse","#FFFFFF","#DEF5FA","#000000","#464646","#2DA2BF","#DA1F28","#EB641B","#39639D","#474B78","#7D3C4A","#FF8119","#44B9E8"),d.Civic=new J("Civic","#FFFFFF","#C5D1D7","#000000","#646B86","#D16349","#CCB400","#8CADAE","#8C7B70","#8FB08C","#D19049","#00A3D6","#694F07"),d.Oriel=new J("Oriel","#FFFFFF","#FFF39D","#000000","#575F6D","#FE8637","#7598D9","#B32C16","#F5CD2D","#AEBAD5","#777C84","#D2611C","#3B435B"),d.Origin=new J("Origin","#FFFFFF","#DDE9EC","#000000","#464653","#727CA3","#9FB8CD","#D2DA7A","#FADA7A","#B88472","#8E736A","#B292CA","#6B5680"),d.Paper=new J("Paper","#FFFFFF","#FEFAC9","#000000","#444D26","#A5B592","#F3A447","#E7BC29","#D092A7","#9C85C0","#809EC2","#8E58B6","#7F6F6F"),d.Solstice=new J("Solstice","#FFFFFF","#E7DEC9","#000000","#4F271C","#3891A7","#FEB80A","#C32D2E","#84AA33","#964305","#475A8D","#8DC765","#AA8A14"),d.Technic=new J("Technic","#FFFFFF","#D4D2D0","#000000","#3B3B3B","#6EA0B0","#CCAF0A","#8D89A4","#748560","#9E9273","#7E848D","#00C8C3","#A116E0"),d.Trek=new J("Trek","#FFFFFF","#FBEEC9","#000000","#4E3B30","#F0A22E","#A5644E","#B58B80","#C3986D","#A19574","#C17529","#AD1F1F","#FFC42F"),d.Urban=new J("Urban","#FFFFFF","#DEDEDE","#000000","#424456","#53548A","#438086","#A04DA3","#C4652D","#8B5D3D","#5C92B5","#67AFBD","#C2A874"),d.Verve=new J("Verve","#FFFFFF","#D2D2D2","#000000","#666666","#FF388C","#E40059","#9C007F","#68007F","#005BD3","#00349E","#17BBFD","#FF79C2"),d.Equity=new J("Equity","#FFFFFF","#E9E5DC","#000000","#696464","#D34817","#9B2D1F","#A28E6A","#956251","#918485","#855D5D","#CC9900","#96A9A9"),d.Flow=new J("Flow","#FFFFFF","#DBF5F9","#000000","#04617B","#0F6FC6","#009DD9","#0BD0D9","#10CF9B","#7CCA62","#A5C249","#E2D700","#85DFD0"),d.Foundry=new J("Foundry","#FFFFFF","#EAEBDE","#000000","#676A55","#72A376","#B0CCB0","#A8CDD7","#C0BEAF","#CEC597","#E8B7B7","#DB5353","#903638"),d.Median=new J("Median","#FFFFFF","#EBDDC3","#000000","#775F55","#94B6D2","#DD8047","#A5AB81","#D8B25C","#7BA79D","#968C8C","#F7B615","#704404"),d.Metro=new J("Metro","#FFFFFF","#D6ECFF","#000000","#4E5B6F","#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8","#1AB39F","#EB8803","#5F7791"),d.Module=new J("Module","#FFFFFF","#D4D4D6","#000000","#5A6378","#F0AD00","#60B5CC","#E66C7D","#6BB76D","#E88651","#C64847","#168BBA","#680000"),d.Opulent=new J("Opulent","#FFFFFF","#F4E7ED","#000000","#B13F9A","#B83D68","#AC66BB","#DE6C36","#F9B639","#CF6DA4","#FA8D3D","#FFDE66","#D490C5"),d}();R={Default:new l("Default",u.Default,"Cambria","Calibri"),Office:new l("Office",u.Office,"Calibri Light","Calibri"),Office2007:new l("Office2007",u.Office2007,"Cambria","Calibri"),Apex:new l("Apex",u.Apex,"Lucida Sans","Book Antiqua"),Aspect:new l("Aspect",u.Aspect,"Verdana","Verdana"),Concourse:new l("Concourse",u.Concourse,"Lucida Sans Unicode","Lucida Sans Unicode"),Civic:new l("Civic",u.Civic,"Georgia","Georgia"),Oriel:new l("Oriel",u.Oriel,"Century Schoolbook","Century Schoolbook"),Origin:new l("Origin",u.Origin,"Bookman Old Style","Gill Sans MT"),Paper:new l("Paper",u.Paper,"Constantia","Constantia"),Solstice:new l("Solstice",u.Solstice,"Gill Sans MT","Gill Sans MT"),Technic:new l("Technic",u.Technic,"Franklin Gothic Book","Arial"),Trek:new l("Trek",u.Trek,"Franklin Gothic Medium","Franklin Gothic Book"),Urban:new l("Urban",u.Urban,"Trebuchet MS","Georgia"),Verve:new l("Verve",u.Verve,"Century Gothic","Century Gothic"),Equity:new l("Equity",u.Equity,"Franklin Gothic Book","Perpetua"),Flow:new l("Flow",u.Flow,"Calibri","Constantia"),Foundry:new l("Foundry",u.Foundry,"Rockwell","Rockwell"),Median:new l("Median",u.Median,"Tw Cen MT","Tw Cen MT"),Metro:new l("Metro",u.Metro,"Consolas","Corbel"),Module:new l("Module",u.Module,"Corbel","Corbel"),Opulent:new l("Opulent",u.Opulent,"Trebuchet MS","Trebuchet MS")};I.ColorScheme=J;I.ThemeColors=u;I.Theme=l;I.Themes=R;U.exports=I},function(U,u,l){function d(){}var J,R,Q,K,O,H,I;u=l(42);J=l(44).GC$;R=l(43).Ul;Q=document;K=Math.floor;O=Math.max;H=u.Ho="11pt";d.Io=function(l,F){return F?d.Jo(l,F):l};d.Ko=function(l){var F,u;return l?(F=d.Lo(),F.style.font=l,u=F.style,{fontFamily:u.fontFamily,fontSize:u.fontSize,fontStyle:u.fontStyle,fontWeight:u.fontWeight}):{}};d.F4=function(d){var l,u,q,D,A;return R.Ml.safari?d.font:(l="",u=d.fontStyle,q=d.fontVariant,D=d.fontWeight,A=d.lineHeight,"normal"!==u&&(l=u),"normal"!==q&&(l+=(l?" ":"")+q),"normal"!==D&&"400"!==D&&(l+=(l?" ":"")+D),l+=(l?" ":"")+d.fontSize,"normal"!==A&&(l+="/"+A),l+(" "+d.fontFamily))};d.Jo=function(l,F){var u,q,D,A,r;if(!l&&!F)return l;if(l){if(q=F?l+"+"+F:l,D=d.Mo[q])return D;u=d.Lo();J(u).css("font",l)}else{if(q=F,D=d.Mo[q])return D;u=d.Lo();J(u).css("fontSize",H);J(u).css("fontFamily",F)}return A=u.currentStyle,r=Q.defaultView,r&&r.getComputedStyle&&(A=r.getComputedStyle(u,"")),D=d.F4(A),d.Mo[q]=D,d.Mo[D]=D,D};d.No=function(l,F,u,q){var D,A,r,n,w,z,C,c,m=d.Oo[F];if(!q)if(m){if(D=m[l])return D}else m=d.Oo[F]={};return A=d.Lo(),A.style.font=l,r=A.currentStyle,n=Q.defaultView,n&&n.getComputedStyle&&(r=n.getComputedStyle(A,"")),w=r.fontSize,-1!==w.indexOf("px")&&(z=O(1,K(parseFloat(w.replace("px",""))*F)),u&&1===z&&(u.value=!0),w=z+"px"),C=r.lineHeight,-1!==C.indexOf("px")&&(c=O(1,K(parseFloat(C.replace("px",""))*F)),C=c+"px"),1===F?D={font:l,fontSize:z}:(A.style.fontSize=w,A.style.lineHeight=C,D={font:A.style.font,fontSize:z}),q||(m[l]=D),D};d.Lo=function(){var l,F;return d.Po?d.Po.style.cssText=d.Qo:(l=R.Nl("span"),F=l.style,F.visibility="hidden",F.top="-10000px",F.left="-10000px",F.lineHeight="normal",F.position="absolute",F.fontWeight="normal",F.fontStretch="normal",F.fontVariant="normal",F.fontStyle="normal",Q.body.insertBefore(l,null),d.Po=l,d.Qo=F.cssText),d.Po};d.no=function(){var l=d.Po;l&&(J(l).remove(),d.Po=void 0,d.Qo=void 0)};I={};d.Ro=function(l,F){var u,q=l+","+F,D=I[q];return D||(u=d.Lo(),u.style.font=l,F&&(u.style.fontWeight=F),D=I[q]=u.style.font),D};d.Mo={};d.Oo={};d.So=function(d){if(0>=d)return"none";var l="";return(1|d)===d&&(l+="underline "),(2|d)===d&&(l+="line-through "),(4|d)===d&&(l+="overline "),l.trim()};u.To=d;U.exports=u},function(U,u,l){function d(d,l,A){this.color=d||"black";this.style=l||0;this.level=A}function J(){var d,l;if(this.yn=J.Wo++,d=arguments,0!==d.length)for(l=0;l<G.length;l++)this[G[l]]=d[l]}function R(d,D,A,r){var n,q,z,C=D;A&&D&&(D.toJSON&&(D=D.toJSON()),n=l(52).CellTypes._o,q=D.typeName,z=n[D.type]||n[q]||H.getTypeFromString(q),z&&(C=new z,C.fromJSON(D,r)));d.cellType=C}function Q(d,D,A){var q,n,w,z,C=D;A&&D&&"object"==typeof D&&(D.toJSON&&(D=D.toJSON()),q=l(34),n=q&&q.GeneralFormatter,n&&(w=D.typeName,w?(z=H.getTypeFromString(w),z&&(C=new z,C.fromJSON(D))):C=new n(D.formatCached,D.customerCultureName)));d.formatter=C}function K(d,D,A){var q,n,w=D;A&&D&&(D.toJSON&&(D=D.toJSON()),q=l(34),n=q&&q.GeneralFormatter,n&&(w=new n(D.formatCached,D.customerCultureName),w.isAuto=!0));d._autoFormatter=w}var O,H,I,L,F,G;u=l(42);O=l(44).GC$;H=l(43);I=l(50).To;L=O.each;F=H.Ul.Ol;u.HorizontalAlign={left:0,center:1,right:2,general:3};u.VerticalAlign={top:0,center:1,bottom:2};u.ImageLayout={stretch:0,center:1,zoom:2,none:3};u.LineStyle={empty:0,thin:1,medium:2,dashed:3,dotted:4,thick:5,"double":6,hair:7,mediumDashed:8,dashDot:9,mediumDashDot:10,dashDotDot:11,mediumDashDotDot:12,slantedDashDot:13};u.TextDecorationType={underline:1,lineThrough:2,overline:4,none:0};u.LineBorderComposeLevel={conditionalFormat:1,cell:10,table:20,row:30,column:40,sheet:50};u.LabelAlignment={topLeft:0,topCenter:1,topRight:2,bottomLeft:3,bottomCenter:4,bottomRight:5};u.LabelVisibility={visible:0,hidden:1,auto:2};d.prototype={constructor:d,Uo:function(){return new d(this.color,this.style,this.level)},toJSON:function(){var d={},l=this.color,A=this.style;return"black"!==l&&(d.color=l),0!==A&&(d.style=A),d},fromJSON:function(d){if(d){var q=d.color;d=d.style;F(q)&&(this.color=q);F(d)&&(this.style=d)}}};d.Vo=function(d){return{9:1,1:1,3:1,4:1,7:1,11:1,2:2,10:2,12:2,8:2,13:2,5:3,6:3}[d&&d.style]||0};u.LineBorder=d;G="backColor foreColor hAlign vAlign font themeFont formatter borderLeft borderTop borderRight borderBottom locked textIndent wordWrap shrinkToFit backgroundImage cellType backgroundImageLayout tabStop textDecoration imeMode name parentName watermark cellPadding labelOptions validator".split(" ");J.prototype={constructor:J,Yo:function(d,l,A){var q,n,w,z,C,c=d.labelOptions;l?(this._autoFormatter=d._autoFormatter,this.backgroundImage=d.backgroundImage,this.backgroundImageLayout=d.backgroundImageLayout,this.backColor=d.backColor,this.foreColor=d.foreColor,this.hAlign=d.hAlign,this.vAlign=d.vAlign,this.font=d.font,this.themeFont=d.themeFont,this.formatter=d.formatter,q=d.borderLeft,this.borderLeft=q&&q.Uo()||q,this.borderLeft&&A&&(this.borderLeft.level=A),n=d.borderTop,this.borderTop=n&&n.Uo()||n,this.borderTop&&A&&(this.borderTop.level=A),w=d.borderRight,this.borderRight=w&&w.Uo()||w,this.borderRight&&A&&(this.borderRight.level=A),z=d.borderBottom,this.borderBottom=z&&z.Uo()||z,this.borderBottom&&A&&(this.borderBottom.level=A),this.locked=d.locked,this.textIndent=d.textIndent,this.wordWrap=d.wordWrap,this.shrinkToFit=d.shrinkToFit,this.validator=d.validator,this.cellType=d.cellType,this.name=d.name,this.parentName=d.parentName,this.tabStop=d.tabStop,this.textDecoration=d.textDecoration,this.imeMode=d.imeMode,this.watermark=d.watermark,this.cellPadding=d.cellPadding,c&&(this.labelOptions={alignment:c.alignment,font:c.font,foreColor:c.foreColor,visibility:c.visibility,margin:c.margin})):(void 0===this.backgroundImage&&(this.backgroundImage=d.backgroundImage),void 0===this.backgroundImageLayout&&(this.backgroundImageLayout=d.backgroundImageLayout),void 0===this.backColor&&(this.backColor=d.backColor),void 0===this.foreColor&&(this.foreColor=d.foreColor),void 0===this.hAlign&&(this.hAlign=d.hAlign),void 0===this.vAlign&&(this.vAlign=d.vAlign),void 0===this.themeFont&&void 0===this.font?(this.themeFont=d.themeFont,this.font=d.font):void 0!==this.themeFont&&void 0===this.font&&(this.font=d.font),void 0===this.formatter&&(this.formatter=d.formatter),void 0===this.validator&&(this.validator=d.validator),void 0===this._autoFormatter&&(this._autoFormatter=d._autoFormatter),void 0===this.borderLeft&&(q=d.borderLeft,this.borderLeft=q&&q.Uo()||q,this.borderLeft&&A&&(this.borderLeft.level=A)),void 0===this.borderTop&&(n=d.borderTop,this.borderTop=n&&n.Uo()||n,this.borderTop&&A&&(this.borderTop.level=A)),void 0===this.borderRight&&(w=d.borderRight,this.borderRight=w&&w.Uo()||w,this.borderRight&&A&&(this.borderRight.level=A)),void 0===this.borderBottom&&(z=d.borderBottom,this.borderBottom=z&&z.Uo()||z,this.borderBottom&&A&&(this.borderBottom.level=A)),void 0===this.locked&&(this.locked=d.locked),void 0===this.textIndent&&(this.textIndent=d.textIndent),void 0===this.wordWrap&&(this.wordWrap=d.wordWrap),void 0===this.shrinkToFit&&(this.shrinkToFit=d.shrinkToFit),void 0===this.cellType&&(this.cellType=d.cellType),void 0===this.tabStop&&(this.tabStop=d.tabStop),void 0===this.textDecoration&&(this.textDecoration=d.textDecoration),void 0===this.imeMode&&(this.imeMode=d.imeMode),void 0===this.name&&(this.name=d.name),void 0===this.parentName&&(this.parentName=d.parentName),void 0===this.watermark&&(this.watermark=d.watermark),void 0===this.cellPadding&&(this.cellPadding=d.cellPadding),!this.labelOptions&&c&&(this.labelOptions={}),C=this.labelOptions,C&&c&&(void 0===C.alignment&&(C.alignment=c.alignment),void 0===C.font&&(C.font=c.font),void 0===C.foreColor&&(C.foreColor=c.foreColor),void 0===C.visibility&&(C.visibility=c.visibility),void 0===C.margin&&(C.margin=c.margin)))},$b:function(d){var q=this;0===arguments.length?L(G,function(d,l){q[l]=void 0}):("dataValidator"===d&&(d="validator"),q[d]=void 0)},clone:function(d){var q,l=this.borderLeft,r=this.borderTop,n=this.borderRight,w=this.borderBottom,l=new J(this.backColor,this.foreColor,this.hAlign,this.vAlign,this.font,this.themeFont,void 0,l&&!d&&l.Uo()||l,r&&!d&&r.Uo()||r,n&&!d&&n.Uo()||n,w&&!d&&w.Uo()||w,this.locked,this.textIndent,this.wordWrap,this.shrinkToFit,this.backgroundImage,void 0,this.backgroundImageLayout,this.tabStop,this.textDecoration,this.imeMode,this.name,this.parentName,this.watermark,this.cellPadding,this.labelOptions);return Q(l,this.formatter,!d),K(l,this._autoFormatter,!d),q=this.validator,!d&&q&&q.clone&&(q=q.clone()),l.validator=q,R(l,this.cellType,!d,!0),l},Zo:function(d){function q(c,h,a){h&&(h=c.getColor(h),h&&a(h))}var l,r,n,w,z,C,c;if(l=this,d&&d.getColor)for(q(d,l.foreColor,function(c){l.foreColor=c}),q(d,l.backColor,function(c){l.backColor=c}),r=[l.borderLeft,l.borderTop,l.borderRight,l.borderBottom],n=0,w=r.length;n<w;n++)(z=r[n])&&z.color&&q(d,z.color,function(c){z.color=c});return C=l.themeFont,c=l.font,d&&d.getFont&&(C?l.font=I.Io(c,d.getFont(C)):c||(l.font=I.Io(c,d.bodyFont()))),l},$o:function(d){var q,l=this._autoFormatter;l&&null!==d&&(q=l.getPreferredEditingFormatter(d),q.isAuto=!0,this._autoFormatter=q)},toJSON:function(d,l){function q(d,c,m){return"hAlign"===d?2===m?1===c:1===m?1===c:3===c:"vAlign"===d?2===m?1===c:1===m?1===c:0===c:"imeMode"===d?1===c:"autoFormatter"===d?void 0===c:void 0}var r,n,w,z;r={};n=this._autoFormatter;!F(n)||l&&q("autoFormatter",n,d)||(r.autoFormatter=n.toJSON?n.toJSON():n);for(w=0;w<G.length;w++)z=G[w],n=this[z],"labelOptions"!==z||O.isEmptyObject(n)?!F(n)||l&&q(z,n,d)||(r[z]=n&&n.toJSON?n.toJSON():n):r.labelOptions=n;return O.isEmptyObject(r)?void 0:r},fromJSON:function(q,l){var A,r,n,w;if(q)for(A in q){if(r=q[A],!F(r))break;n={p:A,v:r,r:!1};J.ao(this,"fromJson",n);n.r||("formatter"===A?Q(this,r,!0):"autoFormatter"===A?K(this,r,!0):"cellType"===A?R(this,r,!0,l):0<=A.indexOf("border")?(w=new d,w.fromJSON(r,l),this[A]=w):this[A]=r)}}};H.Zn(J);J.Wo=0;u.Style=J;U.exports=u},function(U,u,l){function d(f,k,g,c){var p=f.cellPadding,m=0;f=f.labelOptions;return g&&(p=f?f.margin:"0"),p&&(m=parseInt(R(p)[k]),m=typeof m===h&&0<m?m:0),c===a?m:m*c}function J(a,k,g,c){var f,p,h=c&&c.sheet;h&&g&&(f=c.canvasOffset||h.mm.bG(),p=h.Dr(),M(a).css("top",f.top+p.y+g.y-2).css("left",f.left+p.x+g.x-2).css("background-color",k.backColor||"white").width(g.width).height(g.height))}function R(a){var f,g,c,p,h=[0,0,0,0];return typeof a===m&&(f=a.split(" ",4),g=f.length,1===g?(c=f[0],h=[c,c,c,c]):2===g?(c=f[0],p=f[1],h=[c,p,c,p]):3===g?(p=f[1],h=[f[0],p,f[2],p]):4===g&&(h=[f[0],f[1],f[2],f[3]])),h}function Q(f,k){var g,c=d(f,0),p=d(f,2),h=d(f,0,!0),m=d(f,2,!0);if(d(f,3,!0)+d(f,1,!0)>=k.width)return!1;if(g=f.labelOptions.alignment,g===a&&(g=f.labelOptions.alignment=0),0===g||1===g||2===g){if(0<c&&h+m<c)return!0}else if((3===g||4===g||5===g)&&c<k.height&&0<p&&h+m<p)return!0;return!1}function K(a){var f="left";return 1===a||4===a?f="center":2!==a&&5!==a||(f="right"),f}function O(a,k){var f=d(k,3,!0),g=d(k,1,!0),c=d(k,0,!0),p=d(k,2,!0),h=a.clone(),e=k.labelOptions.alignment;return h.x=f+1,h.width-=f+g,0===e||1===e||2===e?(h.y=c,h.height=d(k,0)-c-p):3!==e&&4!==e&&5!==e||(h.y=a.height-d(k,2)+c,h.height=d(k,2)-c-p),2!==e&&5!==e||(h.width-=2),h}function H(a,k){if(a.cellPadding){var f=R(a.cellPadding),g;for(g=0;4>g;g++)f[g]=parseInt(f[g]),"number"==typeof f[g]&&0<f[g]&&(f[g]*=k);a.cellPadding=f.join(" ")}}function I(){this.allowOverflow=!1;this.typeName="0"}var L,F,G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E=l(26),M=l(44).GC$,p=l(43),g=l(50).To;u=l(42);L=u.CellTypes={};F=E.CultureManager;G=E.o;q=E.l;D=E.pc;A=p.mn;r=E.j.Fa;n=p.Vn;w=p.Rect;z=p.Im;C=p.Ul;c=C.ol;m="string";h="number";a=void 0;B=Math.floor;y=Math.ceil;t=L.Context={};t.ap=function(a,g,c,p,h,m,d,e){var b,f,k,x,n,t,q,l,B;if(m&&"none"!==m&&e)try{e.ko(m)?(b=e.lo(m),f=b.width,k=b.height,x=f,n=k,t=p,q=h,l=g,B=c,1===d?(x=p>=f?f:p,n=h>=k?k:h,l=p>f&&0<f?y(g+p/2-f/2):g,B=h>k&&0<k?y(c+h/2-k/2):c,t=x,q=n):2===d?0<h&&0<k&&p/h>f/k?(t=f/k*h,l=g+p/2-t/2):0<p&&0<f&&h/p>k/f&&(q=k/f*p,B=c+h/2-q/2):3===d&&(x=p>=f?f:p,n=h>=k?k:h,t=x,q=n),a.drawImage(b,0,0,x,n,l,B,t,q)):e.fo(m)}catch(ma){}};t.cp=function(a,k,g,c,p){a=0;var f=p&&p.sheet,h=g.textIndent,e=g.font,b=g.hAlign;if(f&&typeof k===m&&k){if(g.wordWrap)for(k=k.split(/\r\n|\r|\n/),g=0;g<k.length;g++)a=Math.max(a,n.Xn(k[g],e,!0)/c);else a=f.dp(k,e)/c;1!==b&&0<h&&(a+=8*h/c);if(c=0===b)c=(c=f.conditionalFormats)?c.bp(p.row,p.col,p.sheetArea):void 0;c&&(a+=16)}return a};t.ep=function(a,g,c,p,h){var f,k,e,b;b=0;var d=h&&h.sheet;a=c.font;if(d&&typeof g===m&&g)if(p=d.fp(a)/p,c.wordWrap){if(f=h.row,k=h.col,e=h.sheetArea,h=0,b=d.zl(e).find(f,k)){if(b.row>=f&&1>=b.rowCount&&b.col>=k&&k===b.col&&(h=d.Tl(k),1<b.colCount))for(f=k+1;f<k+b.colCount;f++)h+=d.Tl(f)}else h=d.Tl(k);k=0;c=c.textIndent;0<c&&(k=8*c);g=n.Wn(g,h-3-k,a);b=g.length*p}else b=p;return b};t.gp=function(a,g,c,p,h,m,d,e,b){var f;1===b?(a.beginPath(),f=a.createLinearGradient(g,c+1,g,c+h-2),f.addColorStop(0,e.borderLeftColor),f.addColorStop(1,e.borderRightColor),a.strokeStyle=f,m.borderLeft||(a.moveTo(g+.5,c),a.lineTo(g+.5,c+h)),m.borderRight||(a.moveTo(g+p-.5,c),a.lineTo(g+p-.5,c+h)),a.stroke(),e.borderBottomWidth&&!m.borderBottom&&(a.beginPath(),a.strokeStyle=e.borderBottomColor,a.moveTo(g+1,c+h-.5),a.lineTo(g+p,c+h-.5),a.stroke())):(a.beginPath(),f=a.createLinearGradient(g,c,g+p-2,c),f.addColorStop(0,e.borderTopColor),f.addColorStop(1,e.borderBottomColor),a.strokeStyle=f,m.borderTop||(a.moveTo(g,c+.5),a.lineTo(g+p,c+.5)),m.borderBottom||(a.moveTo(g,c+h-.5),a.lineTo(g+p,c+h-.5)),a.stroke(),e.borderRightWidth&&!m.borderRight&&(a.beginPath(),a.strokeStyle=e.borderRightColor,a.moveTo(g+p-.5,c+1),a.lineTo(g+p-.5,c+h),a.stroke()))};t.hp=function(a,g){var f;f=2===g?"active":4===g?"inactive":0===g?"disabled":"auto";M(a).css("ime-mode",f)};t.u5=d;I.prototype={constructor:I,i5:function(f,k,c,h){var m,x,n,e,b,v=c.labelOptions;if(v&&(m=h.sheet,x=c.watermark)&&(n=v.visibility,e=m.getText(h.row,h.col,h.sheetArea),1!==n&&(2!==n&&n!==a||""!==e))){1!==m._zoomFactor&&H(c,m._zoomFactor);h=(h=v.font)?g.No(h,m._zoomFactor):g.No(c.font,1);m=m.fp(h.font);n=d(c,0);e=d(c,3,!0);var t=d(c,2,!0),y=k.clone(),q=c.labelOptions.alignment;n=(0===q||1===q||2===q?n<k.height&&(y.height=n-t+1):3!==q&&4!==q&&5!==q||(y.height=k.height-t),y.x+=e,y.width-=e+d(c,1,!0),y);if(Q(c,k)){b=new p.Point(k.x,k.y);var l=h.fontSize,q=d(c,0),B=d(c,2);e=d(c,3,!0);var t=d(c,1,!0),y=k.width,w=k.height;k=8<l?1:2;l=m-(m/2-l/2+(8<l?Math.floor((l-8)/5+2):1)-1)+d(c,0,!0);m=l+1;q=q+B>w?q+l:w-B+l-1;switch(c.labelOptions.alignment){case 0:b.x+=e+k+1;b.y+=m;break;case 1:b.x+=e+(y-e-t)/2;b.y+=m;break;case 2:b.x+=y-t-2;b.y+=m;break;case 3:b.x+=e+k+1;b.y+=q;break;case 4:b.x+=e+(y-e-t)/2;b.y+=q;break;case 5:b.x+=y-t-2,b.y+=q}}b&&(f.save(),f.textAlign=K(v.alignment),f.textBaseline="Alphabetic",f.font=h.font,f.fillStyle=v.foreColor||c.foreColor||"grey",f.rect(n.x,n.y,n.width,n.height),f.clip(),f.beginPath(),f.fillText(x,b.x,b.y),f.restore())}},f5:function(a,g){var f=a.clone(),k=d(g,0),c=d(g,1),p=d(g,2),h=d(g,3);return 0<k&&(f.y+=k,f.height-=k),0<p&&(f.height-=p),0<h&&(f.x+=h,f.width-=h),0<c&&(f.width-=c),c+h>=a.width&&(f.width=0),k+p>=a.height&&(f.height=0),f},e5:function(a,g,c,p){var f,k,h,e,b,m,d,n,x,t,y,q,l=c.labelOptions;l&&(f=p.sheet,k=f.getText(p.row,p.col,p.sheetArea),h=c.watermark,e=l.visibility,1!==e&&h&&(b=l.font||c.font||f.yl.Bl(),1!==f._zoomFactor&&(b=f.yl.Cl(b),H(c,f._zoomFactor)),m=f.fp(b),Q(c,g)&&(d=O(g,c,m)),d&&(n=M(C.Nl("span")),n.text(h),x=2===e&&""===k,t=d.height-m,y=d.y+(x&&0<t?t:0),n.css({display:"block",position:"absolute",left:d.x,top:y,width:d.width,height:d.height,font:b,color:l.foreColor||c.foreColor||"grey",textAlign:K(l.alignment),overflow:"hidden",whiteSpace:"nowrap"}).attr("gcUIElement","gcEditorLabel"),M(a).append(n),x&&(q=setInterval(function(){y--;n.css("top",y);y<=d.y&&clearInterval(q)},20)))))},a5:function(a){var f,g,c;return this.b5=f=C.Nl("div"),M(f).css({position:"absolute",margin:0,padding:0,overflow:"hidden","box-sizing":"content-box",resize:"none",outline:"none",border:"2px #5292f7 solid","box-shadow":"1px 2px 5px rgba(0,0,0,0.4)","background-color":"white"}),this.c5=C.Nl("div"),g=M(this.c5),g.css({position:"absolute",outline:"none",border:"none"}),M(f).append(g),c=this.createEditorElement(a),c&&M(this.c5).append(M(c)),this.b5},d5:function(a,g,c,p){var f;a&&a.firstChild&&(--c.width,--c.height,J(a,g,c,p),this.e5&&this.e5(a,c,g,p),f=this.f5?this.f5(c,g):c,this.activateEditor(a.firstChild.firstChild,g,f,p))},updateEditorContainer:function(a,g,c){var f,k,p,h,e,b;a&&g&&(f=a.parentNode,f&&(k=f.parentNode,p=M(k),h=g.width,e=g.height,0<h&&(p.width(h),b=k.lastChild,c&&"gcEditorLabel"===b.getAttribute("gcUIElement")&&M(b).width(h-d(c,3,!0)-d(c,1,!0)-2)),0<e&&p.height(e)))},g5:function(a,g,c,p,h){var f=a.firstChild,k=p.sheet;J(a,g,c,p);h&&k&&H(g,k._zoomFactor);M(f).css({left:d(g,3),top:d(g,0)});a=f.firstChild;c=this.f5?this.f5(c,g):c;p=this.updateEditor(a,g,c,p);this.updateEditorContainer(a,p,g)},h5:function(a,g,c,p,h){p=this.f5?this.f5(p,c):p;return this.getHitInfo(a,g,c,p,h)},X4:function(a,g,c,p,h){return d(c,3,!1,p)+d(c,1,!1,p)+this.getAutoFitWidth(a,g,c,p,h)},Y4:function(a,g,c,p,h){return d(c,0,!1,p)+d(c,2,!1,p)+this.getAutoFitHeight(a,g,c,p,h)},paintValue:function(a,g,c,p,h,m,d,e){var b={},f;(f=this.format(g,d.formatter||d._autoFormatter,b))&&this.paintText(a,g,c,p,h,m,d,e,f,b)},paintText:function(a,g,p,h,m,d,t,e,b,v,y){var f,k,x,q,l,N,w,E,z,T,C,P,M,A,V,Z,W,F,u,G,ya,sa,H,L,I;if(a.save(),a.beginPath(),f=t.foreColor,k=t.font,x=v.value,x&&(f=x),r(y)||(q=D.ec(f),q.a=y,f=D.bc(q)),f&&a.fillStyle!==f&&(a.fillStyle=f),k&&a.font!==k&&(a.font=k),l=0,N=t.textIndent,w=t.wordWrap,E=t.hAlign,z=t.vAlign,v=t.textDecoration,T="left",C=2,P=2,M=0,A=e.lineHeight,V=[],Z=0,W=e.fontInfo.fontSize,0<N&&(l=8*N),3===E&&(E=c(E,g,t.formatter)),C+=l,1===E?(C=m/2,T="center"):2===E&&(C=m-1-2,C-=l,T="right"),a.textAlign!==T&&(a.textAlign=T),w&&(F=m-3-l,--F,V=n.Wn(b,F,k),Z=V.length,1<Z&&0!==z&&(M=(Z-1)*A)),u=8<W?B((W-8)/5+2):1,G=A/2-W/2+u-1,P+=A-G,1===z?P=(d-M)/2+A/2-G:2===z&&(P=d-M-2-G),"alphabetic"!==a.textBaseline&&(a.textBaseline="alphabetic"),ya=e.cellOverflowLayout,sa=ya&&ya.layout,H={x:sa?sa.x:p+1,y:sa?sa.y:h+1,width:sa?sa.width:m-2,height:sa?sa.height:d-2},g=H.x,m=H.y,d=H.width,t=H.height,w)for(a.rect(g,m,d,t),a.clip(),a.beginPath(),h+=P,b=0;b<Z;b++)a.fillText(V[b],p+C,h),v&&(L=a.measureText(V[b]).width,this.ip(a,v,p+C,h,L,W,u)),h+=A;else V=a.measureText(b).width,(A=V>d||A>t)||(1===E?ya&&(I=V/2,(I>ya.backgroundLeftWidth||I>ya.backgroundRightWidth)&&(A=!0)):V+l>d&&(A=!0)),A&&(a.rect(g,m,d,t),a.clip(),a.beginPath()),a.fillText(b,p+C,h+P),v&&this.ip(a,v,p+C,h+P,V,W,u);a.restore()},paint:function(a,g,c,p,h,m,d,e){var b;if(a){b=d.backColor;if(e.parentBackColor!==b){var f=d.backgroundImage,k=d.backgroundImageLayout,n=e.imageLoader;(b||f)&&(a.save(),a.beginPath(),b&&(a.fillStyle!==b&&(a.fillStyle=b),a.fillRect(c,p,h,m)),t.ap(a,c,p,h,m,f,k,n),a.restore())}c=new w(c,p,h,m);this.i5&&(this.i5(a,c,d,e),c=this.f5(c,d));0<c.width&&0<c.height&&this.paintContent(a,g,c.x,c.y,c.width,c.height,d,e)}},paintContent:function(a,g,c,p,h,m,d,e){var b,f,k,n,x=e.sheetArea;2!==x&&1!==x||(b=e.visualState||0,f="columnHeader",2===x&&(f="rowHeader"),k=this.getThemeStyle(e.visualState,"gc-"+f+"-"+z.Jm(b)),t.gp(a,c,p,h,m,d,f,k,x));(b=e.conditionalFormats)&&(n=b.jp(a,g,c,p,h,m,d,e));e.showBarIconOnly=n;(b=e.sparkline)&&b.paintSparkline(a,c,p,h,m);b=e.sheet;var y,q;f=(f=l(53))&&f.SparklineExValue;b=!!(f&&g instanceof f&&(y=b&&b.parent,y&&(q=y.getSparklineEx(g.name))))&&(q.paint(a,g.value,c,p,h,m,{zoomFactor:b._zoomFactor,sheet:b}),!0);if(!(e.cellOverflowLayout||n||b)){c=new w(c,p,h,m);if(p=0===d.hAlign)p=(p=e.sheet.conditionalFormats)?p.bp(e.row,e.col,e.sheetArea):void 0;p&&(c.x+=16,c.width-=16);this.paintValue(a,g,c.x,c.y,c.width,c.height,d,e)}},createEditorElement:function(a){return null},getEditorValue:function(a,g){return null},kp:function(a,g,c,p){return c},setEditorValue:function(a,g,c){},getEditingElement:function(){return null},parse:function(a,g,c){var f,k,p;c=r(g);var h=r(a);try{if(f=l(34),k=f&&f.GeneralFormatter,!c&&!h&&k)return p=typeof g===m?new k(g):g,p.parse(a)}catch(e){}return h?"":""+a},format:function(a,g,c,p){var f,k,d,e;if(r(a)||""===a)return"";if(typeof g===m&&"object"!=typeof a)return A.un(a,g,c);if(!g)return"boolean"==typeof a||a instanceof Boolean?(""+a).toUpperCase():a instanceof Date?(f=F.q4(F.culture()).DateTimeFormat,q.Vb(a,f.shortDatePattern+" H:mm:ss")):(typeof a===h&&(a=G.nb(""+a)),""+a);try{return k=l(34),d=k&&k.GeneralFormatter,d?(e=typeof g===m?A.tn(g):g,e.format(a,c)):""+a}catch(b){return""+a}},focus:function(a,g){a&&a.focus&&a.focus()},getThemeStyle:function(a,g){return z.Km(a,g)},activateEditor:function(a,g,c,p){},deactivateEditor:function(a,g){},selectAll:function(a,g){a&&a.select&&a.select()},updateEditor:function(a,g,c,p){},setImeMode:function(a,g,c){this.isImeAware(c)?this.updateImeMode(a,g,c):a&&t.hp(a,0)},updateImeMode:function(a,g,c){a&&t.hp(a,g)},getHitInfo:function(a,g,c,p,h){return null},processMouseDown:function(a){return!1},processMouseMove:function(a){return!1},processMouseUp:function(a){return!1},processMouseEnter:function(a){},processMouseLeave:function(a){},isReservedKey:function(a,g){return!1},isEditingValueChanged:function(a,g,c){return a!==g},processKeyDown:function(a,g){return!1},processKeyUp:function(a,g){return!1},getAutoFitWidth:function(a,g,c,p,h){return t.cp(a,g,c,p,h)},getAutoFitHeight:function(a,g,c,p,h){return t.ep(a,g,c,p,h)},ip:function(a,g,c,p,h,m,d){var e,b,f,k;a.strokeStyle=a.fillStyle;e=a.textAlign;k=.5;f=B(((12>=m?12:m)-12)/21+1);a.lineWidth=f;0===(1&f)&&(k=0);"center"===e?c-=h/2:"right"===e&&(c-=h);a.beginPath();4===(4&g)&&(b=y(p+d-m-1)-k,a.moveTo(c,b),a.lineTo(c+h,b));2===(2&g)&&(b=y(p+d-m/2)-k,a.moveTo(c,b),a.lineTo(c+h,b));1===(1&g)&&(b=y(p+d-1)-k,a.moveTo(c,b),a.lineTo(c+h,b));a.stroke()},lp:function(a,g){var f="";4===(4&g)&&(f="overline");2===(2&g)&&(f+=" line-through");1===(1&g)&&(f+=" underline");a.css("text-decoration",f)},isImeAware:function(a){return!1},isEditting:function(){return!1},toJSON:function(){var a,g={};for(a in this)this.hasOwnProperty(a)&&(g[a]=this[a]);return g},fromJSON:function(a){if(a)for(var f in a)r(a[f])||(this[f]=a[f])}};L.Base=I;L._o={0:I};U.exports=u},function(U,u){U.exports=GC.Spread.Sheets.Sparklines},function(U,u,l){function d(d){return d&&d.options.allowCopyPasteExcelStyle}function J(d){this.n5=this.PA=z;this.G4=!1;this.tc=d;this.Nl()}function R(d,c){var m,h,a,n,y,t,l,r,p,g,f=[];for(m=0;m<d.rows.length;m++)for(h=d.rows[m],a=f[m]||(f[m]=[]),y=n=0;n<h.cells.length;n++){for(t=h.cells[n];a[y];)y++;l=a[y]={};if(c){r=t;var k,x=p=void 0,z=void 0,C=void 0,A=void 0,Z=void 0,e=void 0,b=void 0,v=r.getElementsByTagName("font")[0],N=getComputedStyle(r),S=new w;(k=N.backgroundColor)&&0!==F.pc.ec(k).a&&(S.backColor=k);k=N.color;v&&(k=v.color);var X;if(X=k)X=F.pc.ec(k),X=!(0!==X.a&&0===X.r&&0===X.g&&0===X.b);r=(X&&(S.foreColor=k),v?S.font=q.F4(getComputedStyle(v)):(p=q.F4(N),p&&(S.font=p)),x=N.verticalAlign,x&&(S.vAlign={top:0,middle:1,bottom:2}[x]),z=N.textAlign,z&&(S.hAlign={left:0,center:1,right:2}[z]),C=N.borderLeftStyle,"none"!==C&&(S.borderLeft=H(N.borderLeftColor,C)),A=N.borderRightStyle,"none"!==A&&(S.borderRight=H(N.borderRightColor,A)),Z=N.borderTopStyle,"none"!==Z&&(S.borderTop=H(N.borderTopColor,Z)),e=N.borderBottomStyle,"none"!==e&&(S.borderBottom=H(N.borderBottomColor,e)),b=I(N.textDecoration),0<r.getElementsByTagName("u").length&&(b|=I("underline")),0<r.getElementsByTagName("s").length&&(b|=I("line-through")),0!==b&&(S.textDecoration=b),S);l.style=r}l.text=t.innerText;l.rowSpan=t.rowSpan;l.colSpan=t.colSpan;for(l=0;l<t.rowSpan;l++)for(p=0;p<t.colSpan;p++)0===l&&0===p||(g=f[m+l]||(f[m+l]=[]),g[y+p]={style:r,text:"",rowSpan:1,colSpan:1});y+=t.colSpan}return f}function Q(d){var c,m,h,a,n,y,t,q,l=[];if(d)if(c=d.getElementsByTagName("table"),0<c.length)for(d=R(c[0],!1),c=0,m=d.length;c<m;c++){h=d[c];a=RegExp(String.fromCharCode(160),"g");n=String.fromCharCode(32);y=0;for(t=h.length;y<t;y++)q=h[y]?h[y].text:"",0<=q.indexOf("\n")&&(q=q.split("\n").join("")),l.push(q.replace(a,n)),y<t-1&&l.push("\t");c<m-1&&l.push("\r\n")}else l.push(d.innerText);return l.join("")}function K(d){var c,m,h,a,n=[];if(d){c=!1;for(m=0;m<d.length;m++)h=0<m?d[m-1]:"",a=d[m],'"'===a?(c=!c,n.push('"')):c||"\n"!==a||"\r"===h?n.push(a):n.push("\r\n");return n.join("")}return""}function O(d){return"1px "+{0:"none",1:"solid",2:"solid",3:"dashed",4:"dotted",5:"solid",6:"double",7:"dotted",8:"dashed",9:"dashed",10:"dashed",11:"dashed",12:"dashed",13:"dashed"}[d.style]+" "+d.color}function H(d,c){return new n(d,{none:0,solid:2,dashed:8,dotted:4,"double":6}[c])}function I(d){return{underline:1,"line-through":2,none:0}[d]}var L,F,G,q,D,A,r,n,w,z;u=l(42);L=l(43);F=l(26);G=l(51);q=l(50).To;D=L.Ul.Ml;A=F.j.Fa;r=F.k.Bb;n=G.LineBorder;w=G.Style;z=null;J.prototype={Nl:function(){var d,c,m,h=this,a=document.createElement("div");a.style.position="fixed";a.style.top="0px";a.style.left="0px";a.style.width="0px";a.style.height="0px";a.style.overflow="hidden";d=document.createElement("div");d.setAttribute("contenteditable","true");d.setAttribute("gcUIElement","gcSheetClipboard");d.setAttribute("tabindex",-1);d.style.position="absolute";d.style.overflow="hidden";d.style.background="white";d.style.webkitUserSelect="text";a.appendChild(d);h.KM=d;c=document.createElement("textarea");c.setAttribute("gcUIElement","gcSheetClipboard");c.setAttribute("tabindex",-1);c.style.position="absolute";c.style.overflow="hidden";c.style.background="white";c.style.webkitUserSelect="text";a.appendChild(c);h.Cia=c;(m=h.tc.getHost())&&m.appendChild(a);D.msie||D.edge||(h.H4=function(a){var c,m,d,n=h.tc.getActiveSheet();(a=a.clipboardData)&&(c=a.getData("text/html"),m=h.I4(),m.innerHTML=c,d=c?Q(m):K(a.getData("text/plain")),m.innerHTML="",n.J4(d,c))},d.addEventListener("paste",h.H4),h.Dia=function(a){var c,m=h.tc.getActiveSheet();(a=a.clipboardData)&&(c=K(a.getData("text/plain")),m.J4(c,""))},c.addEventListener("paste",h.Dia))},no:function(){var d,c,m,h=this.KM;h&&(D.msie||D.edge||(h.removeEventListener("paste",this.H4),this.Cia.removeEventListener("paste",this.Dia)),d=h.parent,d&&(c=d.parent,c&&c.removeChild(d)),this.KM=z,this.Cia=z);(d=this.K4)&&(m=d.parent,m&&m.removeChild(d),this.K4=z)},Eia:function(n){d(this.tc)?this.KM.innerHTML=n:this.Cia.value=n},M4:function(){d(this.tc)?this.KM.focus():this.Cia.focus()},N4:function(){d(this.tc)?document.execCommand("selectAll"):this.Cia.select()},wx:function(){var n,c,m="",h="";return d(this.tc)?(n=this.KM,n&&(c=n.getElementsByTagName("table"),0<c.length&&(m=c[0].outerHTML)),h=Q(this.KM)):h=K(this.Cia.value),{html:m,text:h}},Q4:function(d,c,m,h,a,n,y,t){var q,l,p,g,f,k,x=d.Tq(L.kf(c,h,m,a)),B=RegExp(String.fromCharCode(32),"g"),w=!1,r=!1,z=d.parent.options.copyPasteHeaderOptions;return 0>c&&2===(2&z)&&(w=!0),0>h&&1===(1&z)&&(r=!0),c=x.row,h=x.col,m=x.rowCount,a=x.colCount,q=[],q.push("\x3ctable\x3e"),r?(p=d.getColumnCount(2),g=this.lja(d,c,m,0,p,2,y,t,n,x,B,"\x26nbsp;"),l=this.lja(d,c,m,h,a,3,y,t,n,x,B,"\x26nbsp;"),q=this.yb(l,g,2)):w?(f=d.getRowCount(1),k=this.lja(d,0,f,h,a,1,y,t,n,x,B,"\x26nbsp;"),l=this.lja(d,c,m,h,a,3,y,t,n,x,B,"\x26nbsp;"),q=this.yb(l,k,1)):(l=this.lja(d,c,m,h,a,3,y,t,n,x,B,"\x26nbsp;"),q=this.yb(l,null,3)),q},yb:function(d,c,m){var h,a,n;if(1===m)h=c.concat(d);else if(2===m)for(h=[],m=c.length,a=0;a<m;a++)n=c[a].concat(d[a]),h.push(n);else 3===m&&(h=d);return this.mja(h)},mja:function(d){var c,m,h,a=d.length;h="\x3ctable\x3e";for(c=0;c<a;c++){h+="\x3ctr\x3e";for(m=0;m<d[c].length;m++)h+=d[c][m];h+="\x3c/tr\x3e"}return h+"\x3c/table\x3e"},lja:function(d,c,m,h,a,n,y,t,q,l,p,g){var f,k,x,B,w,E,C,e,b,v,N,S,M=[];for(f=0;f<m;f++)if(k=c+f,!r(y,k)){x=[];for(B=0;B<a;B++)if(w=h+B,!r(t,w)){E="";if(b=q){if(b=C=d.getSpan(k,w,n))a:{b=C;var Y=y,F=t;if(l.containsRange(b)){for(var u=0;u<Y.length;u++)if(b.row<=Y[u]&&Y[u]<b.row+b.rowCount){b=!0;break a}for(u=0;u<F.length;u++)if(b.col<=F[u]&&F[u]<b.col+b.colCount){b=!0;break a}b=!1}else b=!0}b=(b&&(C=z),C&&(C.row!==k||C.col!==w))}b||(E+="\x3ctd",q&&(C&&(1<C.rowCount&&(E+=" rowSpan\x3d"+C.rowCount),1<C.colCount&&(E+=" colSpan\x3d"+C.colCount)),e=d.getActualStyle(k,w,n),E+=' style\x3d"',(b=e.backColor)&&(E+="background-color: "+b+";"),(b=e.foreColor)&&(E+="color: "+b+";"),(b=e.font)&&(E+="font: "+b.replace(/"/g,"'")+";"),b=e.vAlign,A(b)||(E+="vertical-align: "+{0:"top",1:"middle",2:"bottom"}[b]+";"),b=e.hAlign,A(b)||(b={0:"left",1:"center",2:"right"}[b])&&(E+="text-align: "+b+";"),(b=e.borderLeft)&&(E+="border-left: "+O(b)+";"),(b=e.borderRight)&&(E+="border-right: "+O(b)+";"),(b=e.borderTop)&&(E+="border-top: "+O(b)+";"),(b=e.borderBottom)&&(E+="border-bottom: "+O(b)+";"),E+='"'),E+="\x3e",q&&(v=e.textDecoration,N=2===(2&v),S=1===(1&v),N&&(E+="\x3cs\x3e"),S&&(E+="\x3cu\x3e")),(w=d.getText(k,w,n))?w=w.replace(p,g):D.chrome?w=" ":D.safari&&(w="\x26nbsp;"),E+=w,q&&(S&&(E+="\x3c/u\x3e"),N&&(E+="\x3c/s\x3e")),E+="\x3c/td\x3e",x.push(E))}M.push(x)}return M},I4:function(){var d,c;return this.K4||(d=document.createElement("div"),d.style.display="none",c=this.tc.getHost(),c&&c.appendChild(d),this.K4=d),this.K4},R4:function(d,c,m,h){var a,n,y,t,q,l,p,g,f,k=this.I4();if(k.innerHTML=d,a=k.getElementsByTagName("table"),0<a.length)for(d=R(a[0],!0),a=0;a<d.length;a++)for(n=d[a],y=m+a,t=0;t<n.length;t++)(q=n[t])&&(l=h+t,c.Pq(y,l,q.style),p=q.rowSpan,g=q.colSpan,(1<p||1<g)&&(f=c.getSpan(y,l),f?(f.row=y,f.col=l,f.rowCount=p,f.colCount=g):c.addSpan(y,l,p,g)));k.innerHTML=""}};u.S4=J;U.exports=u},function(U,u,l){function d(a,c,h,m,p,g,f,k){this.column=a;this.startColumn=c;this.endColumn=h;this.valueWidth=m;this.columnWidth=p;this.backgroundWidth=g;this.backgroundLeftWidth=f;this.backgroundRightWidth=k}function J(a,c,h,m,p,g,f,k){this.rowCount=f;this.colCount=k;this.row=a;this.col=c;this.x=h;this.y=m;this.width=p;this.height=g}function R(a,c,h){this.rowCount=a;this.colCount=c;this.name=h;this.dataTable={};this.Hf=[];this.If=[];this.Jf=null;this.Ap={};this.gga=0;this.Ef=this.Ff=-1}function Q(a,c,h,m,p,g){var f,k,d,n,t,y,q,e,b,v,B,w,r;a&&(f=a.value,void 0!==f&&(null!==f&&(f._calcError||f._error&&f._code)&&(k=l(33),d=k&&k.CalcError.parse(f._calcError||f._error),void 0!==d&&(f=d)),c.value=f),n=a.style,void 0!==n&&(t=null,"string"===typeof n?t=n:n&&(t=new H,t.fromJSON(n,h),t.name=void 0),c.style=t,g&&g.sheet&&(y=g.sheet,"string"===typeof t&&(t=y.Mq(t,!1)||y.parent&&y.parent.Mq(t,!1)),q=t.validator,e=q&&q.condition(),e&&e.getFormulas&&0<e.getFormulas().length&&L.Lj.zn(q,y,m,p,!0)),g&&g.setStyle&&g.setStyle(m,p,t)),b=a.visualState,void 0!==b&&(c.visualState=b),v=a.bindingPath,void 0!==v&&(c.bindingPath=v),B=a.tag,void 0!==B&&(w=B.typeName,"string"===typeof w&&(r=L.getTypeFromString(w),r&&(B=new r,B.fromJSON&&B.fromJSON(a.tag))),c.tag=B))}function K(a,c){var h=a.Gp,m=h[c];return m||(h[c]=m={},a.length=h.length),m}function O(){this.Gp=[]}var H,I,L,F,G,q,D,A,r,n,w,z,C,c,m,h=Math.min,a=Math.floor,B=Math.max;u=l(42);H=l(51).Style;I=l(26);L=l(43);F=l(50).To;G=l(44).GC$;q=G.each;D=G.isEmptyObject;A=G.inherit;r=G.extend;n=I.A;w=I.B;z=I.j.Fa;C=L.kf;c=function(){return I.C(u.SR)()};u.StorageType={data:1,style:2,comment:4,tag:8,sparkline:16,axis:32,bindingPath:64};G=function(a){function m(){a.call(this);this.Ef=this.Ff=-1;this.cache={}}function d(a,g){var f,k;a.Ef=B(a.Ef,g.row+g.rowCount-1);a.Ff=B(a.Ff,g.col+g.colCount-1);for(f=0;f<g.rowCount;f++)for(k=0;k<g.colCount;k++)a.cache[g.row+f+"_"+(g.col+k)]=g}function n(a,g){var f,k;for(f=0;f<g.rowCount;f++)for(k=0;k<g.colCount;k++)a.cache[g.row+f+"_"+(g.col+k)]=void 0}A(m,a);return r(m.prototype,{find:function(a,g){return this.cache[a+"_"+g]||null},get:function(a,g){return this.find(a,g)||C(a,g,1,1)},remove:function(a){a=this.indexOf(a);0<=a&&this.removeSpan(a,1)},update:function(a,g){n(this,this[a]);this[a]=g;d(this,g)},addSpan:function(a){d(this,a);this.push(a)},removeSpan:function(a,g){for(var f=0;f<g;f++)n(this,this[a+f]);this.splice(a,g)},copy:function(a,g,f,k,h,m){var p,d,n,e,b=this.length,v=[];for(e=0;e<b;e++)p=this[e],n=p.col,d=p.row,(-1===a||a<=d&&d<a+h)&&(-1===g||g<=n&&n<g+m)?v.push(C(-1===a?d:f+d-a,-1===g?n:k+n-g,p.rowCount,p.colCount)):(-1===a||f<=d&&d<f+h)&&(-1===g||k<=n&&n<k+m)&&(this.removeSpan(e,1),e--,b--);for(e=0;e<v.length;e++){if(p=v[e],!this.isValid(this,0,this.length,p))throw Error(c().Exp_OverlappingSpans);this.addSpan(p)}},isValid:function(a,g,f,k){for(;g<f&&g<a.length;g++)if(a[g].intersect(k.row,k.col,k.rowCount,k.colCount))return!1;return!0},each:function(a,g,f,k,c){var p,h,m;p=0;for(h=this.length;p<h;p++){if(0<=a||0<=g)for(;p<h&&!this[p].intersect(a,g,f,k);)p++;if(p<h&&c&&(m=c(this[p]),!1===m))break}},getSpans:function(a){var g,f,k;if(!a)return this.slice(0);g=[];for(f=0;f<this.length;f++)k=this[f],k.intersect(a.row,a.col,a.rowCount,a.colCount)&&g.push(k);return g},hasPartSpans:function(a,g,f,k){var c,p;for(c=0;c<this.length;c++)if(p=this[c],p.intersect(a,g,f,k)&&(-1!==a&&(p.row<a||p.row+p.rowCount>a+f)||-1!==g&&(p.col<g||p.col+p.colCount>g+k)))return!0;return!1},hasSpans:function(a,g,f,k){var c=!1;return this.each(a,g,f,k,function(){return c=!0,!1}),c},clear:function(a,g,f,k){var c,p,h;for(c=0;c<this.length;c++)p=this[c],h=p.row,p=p.col,(-1===a||a<=h&&h<a+f)&&(-1===g||g<=p&&p<g+k)&&this.removeSpan(c--,1)},move:function(a,g,f,k,h,d){var p,n,t,e,b,v=!1,x=new m,y=[],q=this.length;for(e=0;e<q;e++)p=this[e],n=p.row,t=p.col,(-1===a||a<=n&&n<a+h)&&(-1===g||g<=t&&t<g+d)?(b=C(-1===a?n:f+n-a,-1===g?t:k+t-g,p.rowCount,p.colCount),y.push(b),v=!0):(-1===a||f<=n&&n<f+h)&&(-1===g||k<=t&&t<k+d)?v=!0:x.push(p);if(v){if(0<y.length)for(e=0;e<y.length;e++){if(b=y[e],!this.isValid(x,0,x.length,b))throw Error(c().Exp_OverlappingSpans);x.push(b)}this.length=0;this.cache={};for(e=0;e<x.length;e++)this.addSpan(x[e])}},isEmpty:function(){return 0>=this.length},addRows:function(a,g){var f,k,c,p,h,m=this.length;for(f=0;f<m;f++)k=this[f],c=k.row,p=k.col,h=k.rowCount,k=k.colCount,c>=a?this.update(f,C(c+g,p,h,k)):c<a&&a<c+h&&this.update(f,C(c,p,h+g,k))},addColumns:function(a,g){var f,k,c,p,h,m=this.length;for(f=0;f<m;f++)k=this[f],c=k.row,p=k.col,h=k.rowCount,k=k.colCount,p>=a?this.update(f,C(c,p+g,h,k)):p<a&&a<p+k&&this.update(f,C(c,p,h,k+g))},removeRows:function(a,g){var f,k,c,p,m,d=[],n=this.length;for(f=0;f<n;f++)k=this[f],c=k.row,p=k.col,m=k.rowCount,k=k.colCount,c>=a?c<a+g?d.push(f):this.update(f,C(c-g,p,m,k)):c<a&&a<c+m&&(this.update(f,C(c,p,m-h(c+m-a,g),k)),1===this[f].rowCount&&1===this[f].colCount&&d.push(f));for(f=d.length-1;0<=f;f--)c=d[f],this.removeSpan(c,1)},removeColumns:function(a,g){var f,c,p,m,d,n=[],t=this.length;for(f=0;f<t;f++)c=this[f],p=c.row,m=c.col,d=c.rowCount,c=c.colCount,m>=a?m<a+g?n.push(f):this.update(f,C(p,m-g,d,c)):m<a&&a<m+c&&(this.update(f,C(p,m,d,c-h(m+c-a,g))),1===this[f].rowCount&&1===this[f].colCount&&n.push(f));for(f=n.length-1;0<=f;f--)p=n[f],this.removeSpan(p,1)},toJSON:function(){var a=this.slice(0);return 0===a.length?void 0:a},fromJSON:function(a){var g,f;if(a)for(g=0;g<a.length;g++)f=a[g],this.addSpan(C(f.row,f.col,f.rowCount,f.colCount))}}),m}(Array);u.mp=G;G=function(a){function c(){a.call(this);this.trailingOverflowLayout=this.headingOverflowlayout=null}A(c,a);return c.prototype.find=function(a){var c,h,g=this.length;for(h=0;h<g;h++)if(c=this[h],c.contains(a))return c;return null},c}(Array);u.np=G;d.prototype.contains=function(a){return a>=this.startColumn&&a<=this.endColumn};u.op=d;G=function(a){function c(){a.call(this);this.pp=2;this.qp=0}A(c,a);return r(c.prototype,{find:function(a,c){var h,g,f=this.length;for(g=0;g<f;g++)if(h=this[g],h.contains(a,c))return h;return null},clear:function(){this.splice(0,this.length);this.rp=-1},add:function(a,c,p,g){var f=this.pp,k=this.qp;0===f?(p=h(p,1),g=h(g,1),this.clear()):1===f&&this.clear();1===k?(c=-1,g=-1):2===k&&(a=-1,p=-1);this.push(C(a,c,p,g));this.rp=this.length-1},toArray:function(){return this.slice(0)},fromArray:function(a){this.splice(0,this.length);for(var c=0;c<a.length;c++)this.push(a[c])},toJSON:function(){var a,c={};a=this.pp;var h=this.qp,g=this.rp,f=this.length;2!==a&&(c.selectionPolicy=a);0!==h&&(c.selectionUnit=h);0!==g&&(c.activeSelectedRangeIndex=g);c.length=f;for(a=0;a<f;a++)c[a]=this[a];return D(c)?void 0:c},fromJSON:function(a){var c,h,g,f,k;if(a){this.clear();c=a.selectionPolicy;h=a.selectionUnit;g=a.length;z(g)&&(g=1);for(f=0;f<g;f++)k=a[f],this.push(C(k?k.row:0,k?k.col:0,k?k.rowCount:1,k?k.colCount:1));this.rp=a.activeSelectedRangeIndex||0;z(c)||(this.pp=c);z(h)||(this.qp=h)}},sp:function(a){var c,h,g;for(c=0;c<this.length;c++)if(h=this[c],g=-1===h.col?0:h.col,-1===h.row&&a>=g&&a<g+h.colCount)return!0;return!1},tp:function(a){var c,h,g;for(c=0;c<this.length;c++)if(h=this[c],g=-1===h.row?0:h.row,-1===h.col&&a>=g&&a<g+h.rowCount)return!0;return!1},vp:function(a,c,h,g,f,k){function p(b,a,e){var f,g,c,k,h=C(-1,-1,-1,-1);return b&&(f=b.col,g=b.row,c=-1===g,k=-1===f,h.row=c?0:g,h.rowCount=c?a:b.rowCount,h.col=k?0:f,h.colCount=k?e:b.colCount),h}var m,d,n,t,e,b,v,y,q;m=!1;k=k?1:0;d=0;for(n=this.length;d<n&&(t=this[d],e=p(t,g,f),b=e.row,v=e.col,y=b-k<=a&&a<b+e.rowCount+k,q=v-k<=c&&c<v+e.colCount+k,3===h||z(h)?m=y&&q:2===h?m=y:1===h?m=q:0===h&&(m=-1===t.row&&-1===t.col),!m);d++);return m},wp:function(a,c,h,g,f){var k,p,m,d,n,t,e,b,v,y,q=!1;for(k=0;k<this.length&&(p=this[k],m=p.row,d=p.col,n=p.rowCount,t=p.colCount,e=-1===d,b=-1===m,z(h)||3===h||(2===h?(v=b?0:m,q=e&&a>=v&&a<v+n):1===h?(y=e?0:d,q=b&&c>=y&&c<y+t):0===h&&(q=b&&e&&n===g&&t===f),!q));k++);return q}}),c}(Array);u.xp=G;G=function(a){function c(){a.call(this)}function h(a,g,f,c,h){var k,p,m=a.length;for(p=0;p<m;p++)if(k=a[p],z(g)||z(f)?z(g)?z(f)?z(c)?k.containsY(h):k.containsX(c):k.col===f:k.row===g:k.contains(g,f))return k;return null}function m(a,g,f){var c=null,h=a.length,p=!z(g);return 0<h&&(c=p?a.findX(g):a.findY(f),c||(c=(p?g<a[0].x:f<a[0].y)?a[0]:a[h-1])),c}A(c,a);return r(c.prototype,{findCell:function(a,g){var f,c,h=this.length;for(c=0;c<h;c++)if(f=this[c],f.contains(a,g))return f;return null},findRow:function(a){var g,f,c=this.length;for(f=0;f<c;f++)if(g=this[f],g.row===a)return g;return null},findCol:function(a){var g,f,c=this.length;for(f=0;f<c;f++)if(g=this[f],g.col===a)return g;return null},findX:function(a){return h(this,void 0,void 0,a)},findY:function(a){return h(this,void 0,void 0,void 0,a)},findNearX:function(a){return m(this,a)},findNearY:function(a){return m(this,void 0,a)}}),c}(Array);u.yp=G;J.prototype={contains:function(a,c){return a<this.row+this.rowCount&&this.row<=a&&c<this.col+this.colCount&&this.col<=c},intersect:function(a){return(0>this.x||a.x<this.x+this.width&&this.x<a.x+a.width)&&(0>this.y||a.y<this.y+this.height&&this.y<a.y+a.height)},containsX:function(a){return this.x<=a&&a<this.x+this.width},containsY:function(a){return this.y<=a&&a<this.y+this.height}};u.zp=J;R.prototype={constructor:R,getRowCount:function(){return this.rowCount},getColumnCount:function(){return this.colCount},setRowCount:function(a){this.rowCount=a},setColumnCount:function(a){this.colCount=a},Cp:function(a,c,h){var m,p,g,f,k=this.Ap;0<this.gga||0<=a&&0<=c&&(m=k[a]||(k[a]={}),p=m[c]||(m[c]={}),"n"!==m.rs&&(m.rs="e"),g=h.Dp,f=h.Ep,z(g)||(m.originalItem=g),z(f)||(p.oldValue=f))},getValue:function(a,c){var h=this.getNode(a,c);return h&&!z(h.value)?h.value:null},setValue:function(a,c,h){var m=this.getNode(a,c,!0),p=m.value;p!==h&&(m.value=h,this.Cp(a,c,{Ep:p}))},getStyle:function(a,c){var h=this.getNode(a,c);return h&&h.style},setStyle:function(a,c,h){(a=this.getNode(a,c,!0))&&a.style!==h&&(a.style=h)},getValueForKey:function(a,c,h){return(a=this.getNode(a,c))&&a[h]},setValueForKey:function(a,c,h,m){a=this.getNode(a,c,!0);a[h]!==m&&(a[h]=m)},addRows:function(a,c){var h;h=this.rowCount;var m=this.dataTable,p=this.Ap;if(0<=a&&a<=h&&0<=c)for(n(m,h,a,c),n(this.Hf,h,a,c),n(p,h,a,c),this.rowCount+=c,h=0;h<c;h++)m[a+h]={rs:"n"},p[a+h]=m[a+h]},deleteRows:function(a,c){var h=this.rowCount;0<=a&&a<h&&0<c&&(a+c>h&&(c=h-a),w(this.dataTable,h,a,c),w(this.Hf,h,a,c),w(this.Ap,h,a,c),this.rowCount-=c)},addColumns:function(a,c){var h,m,p=this.colCount;if(0<=a&&a<=p&&0<=c){for(h=0;h<this.rowCount;h++)(m=this.dataTable[h])&&a<p&&n(m,p,a,c);n(this.If,p,a,c);this.colCount+=c}},deleteColumns:function(a,c){var h,m,p=this.colCount;if(0<=a&&a<p&&0<c){for(h=0;h<this.rowCount;h++)(m=this.dataTable[h])&&a<p&&w(m,p,a,c);w(this.If,p,a,c);a+c>p&&(c=p-a);this.colCount-=c}},getNode:function(a,c,h){var m,p=this.dataTable,g=this.If,f=this.Hf,k=null;return a<this.rowCount&&c<this.colCount&&(0<=a&&0<=c?(m=p[a],h&&!m&&(m=p[a]={},a>this.Ef&&(this.Ef=a)),m&&(k=m[c],h&&!k&&(k=m[c]={},this.Ff<c&&(this.Ff=c)))):-1===a&&0<=c?(k=g[c],h&&!k&&(k=g[c]={},this.Ff<c&&(this.Ff=c))):0<=a&&-1===c?(k=f[a],h&&!k&&(k=f[a]={},this.Ef<a&&(this.Ef=a))):-1===a&&-1===c&&(k=this.Jf,h&&!k&&(k=this.Jf={}))),k},swapNode:function(a,c,h,m){function p(a,f,g,e,b,c,k,h){0<=g&&0<=e?(c[g]||(c[g]={}))[e]=b:0<=g&&-1===e&&0<=a&&-1===f?k[g]=b:0<=e&&-1===g&&0<=f&&-1===a&&(h[e]=b)}var g,f,k,d,n;g=this.dataTable;f=this.Hf;k=this.If;d=this.getNode(a,c);n=this.getNode(h,m);d?p(a,c,h,m,d,g,f,k):n&&p(a,c,h,m,null,g,f,k);n?p(h,m,a,c,n,g,f,k):d&&p(h,m,a,c,null,g,f,k)},nextNonNullRow:function(a){a++;for(var c=this.rowCount,h=this.dataTable;0<=a&&a<c&&!h[a];)a++;return a<c?a:-1},nextNonNullColumn:function(a,c){var h=null,m=this.colCount;if(0<=a&&a<this.rowCount&&(h=this.dataTable[a]),h){for(c++;0<=c&&c<m&&!h[c];)c++;if(c<m)return c}return-1},clear:function(a,c,m,d,p,g){var f,k,n;k=this.rowCount;n=this.colCount;var t=[];if(0<=a&&0<=c){if(m=h(m,k-a),d=h(d,n-c),0<m&&0<d)for(n=a;n<a+m;n++)if(!g||0>I.k.Cb(g,n))for(k=c;k<c+d;k++)(f=this.getNode(n,k))&&(t.push(f),0<(1&p)&&!z(f.value)&&this.Cp(n,k,{Ep:f.value}))}else if(0<=a&&-1===c){if(m=h(m,k-a),0<m)for(n=a;n<a+m;n++)(f=this.getNode(n,-1))&&t.push(f)}else if(-1===a&&0<=c){if(d=h(d,n-c),0<d)for(k=c;k<c+d;k++)(f=this.getNode(-1,k))&&t.push(f)}else-1===a&&-1===c&&(f=this.Jf,f&&t.push(f));for(a=0;a<t.length;a++)t[a]&&(0<(8&p)&&(t[a].tag=null),0<(2&p)&&(t[a].style=null),0<(1&p)&&(t[a].value=null),0<(16&p)&&(t[a].sparkline=null),0<(64&p)&&(t[a].bindingPath=null),0<(4&p)&&(t[a].comment=null))},toJSON:function(a){function c(a,b,f){var e,g,c,k,h,p,m;return a?(e={},g=a.value,z(g)||(e.value=g),c=a.style,"string"==typeof c?e.style=c:c&&(k=c.toJSON(b,f),h=c.font,D(k)||(h&&(k.font=F.Jo(h)),k.name=void 0,e.style=k)),p=a.bindingPath,z(p)||(e.bindingPath=p),m=a.tag,z(m)||(e.tag=m),e):null}var h,m,p,g,f,k,d,n,q,y,l;h={};m={};for(p=this.nextNonNullRow(-1);0<=p;){f={};k=!1;for(g=this.nextNonNullColumn(p,-1);0<=g;)(d=this.getNode(p,g))&&(n=c(d),D(n)||(f[g]=n,k=!0)),g=this.nextNonNullColumn(p,g);k&&(m[p]=f);p=this.nextNonNullRow(p)}D(m)||(h.dataTable=m);g=[];m=this.Hf;for(p=0;p<this.rowCount;p++)m.hasOwnProperty(p)&&m[p]&&(q=c(m[p]),D(q)||(g[p]=q));0<g.length&&(h.rowDataArray=g);p=[];q=this.If;for(g=0;g<this.colCount;g++)q.hasOwnProperty(g)&&q[g]&&(y=c(q[g]),D(y)||(p[g]=y));return 0<p.length&&(h.columnDataArray=p),l=c(this.Jf,a,!0),D(l)||(h.defaultDataNode=l),h},fromJSON:function(a,c,h){var m,p,g,f,k,d,n;if(a){if(this.gga++,z(a.name)||(this.name=a.name),m=a.dataTable,f=this.rowCount,k=this.colCount,m)for(p=0;p<f;p++)if(d=m[p])for(g=0;g<k;g++)(n=d[g])&&Q(n,this.getNode(p,g,!0),c,p,g,h);if(g=a.rowDataArray||a.Hf)for(p=0;p<f;p++)g.hasOwnProperty(p)&&g[p]&&Q(g[p],this.getNode(p,-1,!0),c,p,-1,h);if(p=a.columnDataArray||a.If)for(g=0;g<k;g++)p.hasOwnProperty(g)&&p[g]&&Q(p[g],this.getNode(-1,g,!0),c,-1,g,h);(a=a.defaultDataNode||a.Jf)&&Q(a,this.getNode(-1,-1,!0),c,-1,-1,h);this.gga--}}};u.Fp=R;m=O.prototype={addItems:function(a,c){var h=this.length;0<=a&&a<=h&&0<c&&n(this.Gp,h,a,c);this.length+=c},deleteItems:function(a,c){var m=this.length;0<=a&&a<m&&0<c&&(c=h(c,m-a),w(this.Gp,m,a,c));this.length-=c},reset:function(a){var c=this.Gp;c.length>a&&(c[a]=null)},Hp:function(){return this.Gp},Ip:function(a,c){this.Gp=a;this.length=c},Jp:function(a){return this.Gp[a]},Kp:function(a,c){this.Gp[a]=c;this.length=this.Gp.length},getSize:function(c){c=this.Gp[c];var h=null;return c&&(h=!1===c.visible?0:a(c.size)),h},getActualSize:function(c){return(c=this.Gp[c])?a(c.size):null},setSize:function(a,c){var h=K(this,a);h.size!==c&&(h.size=c)}};q({visible:!0,resizable:!0,pageBreak:!1},function(a,c){var h=a[0].toUpperCase()+a.substr(1);m["get"+h]=function(h){var p=c;h=this.Gp[h];return h&&!z(h[a])&&(p=h[a]),p};m["set"+h]=function(c,h){var g=K(this,c);g[a]!==h&&(g[a]=h)}});u.Lp=O;U.exports=u},function(U,u,l){function d(){return n.C(u.SR)()}function J(b){if(typeof b===ja&&"/"===b.charAt(0)){var a;ma.test(b)?(a=b.match(ma),b=V.Xb(N(a[1]))):oa.test(b)&&(a=b.match(oa),b=new Date(N(a[1])))}return b}function R(b){return!h(b)&&V.Mia(b)&&(b=V.Daa(b)),b}function Q(b,a){var e,f,c,g=[],k=b.Mp().Ap;if(k)for(e in k)Z(k,e)&&(f=k[e],f&&f.rs===(a?"e":"n")&&(c={row:+e,item:b.getDataItem&&b.getDataItem(e)},a&&(c.originalItem=f.originalItem),g.push(c)));return g}function K(b,a,e){for(var f=0;a<=e;a++)f+=b._m(a);return f}function O(b,a,e){for(var f=0;a<=e;a++)f+=b.Sl(a);return f}function H(b){return b.getColumnCount()}function I(b){return b.getRowCount()}function L(b,a,e){Object.defineProperty(b,a,{get:function(){return this["_"+a]},set:function(b){var f=this["_"+a];f!==b&&(this["_"+a]=b,e&&e(a,b,f))}})}function F(b){var a=this;a.yn=F.Np++;a.options=E(ga,function(b,e,f){a.Op(b,e,f)});a.ad(b)}var G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f,k,x,W,P,V,Z,e,b,v,N,S,X,Y,ka,ja,oa,ma,ea,ga;u=l(42);G=l(43);q=l(48).oo;D=l(51).Style;A=l(55);r=l(44).GC$;n=l(26);w=G.Ul;z=G.En;C=G.Lj;c=G.Ul.Nl;m=G.kf;h=n.j.Fa;a=G.ln;B=G.Rect;y=G.Events;t=w.Pl;E=w.Ql;M=G.Vl;p=G.Im;g=G.Themes;f=G.Theme;k=A.zp;x=A.yp;W=r.each;P=r.isEmptyObject;V=n.l;Z=n.D;e=window;b=document;v=parseInt;N=parseFloat;S=isNaN;X=Math.min;Y=Math.max;ka=Math.floor;ja="string";oa=/^\/Date\((-?\d+)([-+]{1}\d+)?\)\/\s*$/;ma=/^\/OADate\(([-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?)\)\/\s*$/;ea={backColor:!0,foreColor:!0,font:!0,borderLeft:!0,borderTop:!0,borderRight:!0,borderBottom:!0,textDecoration:!0};u.RangeChangedAction={dragDrop:0,dragFill:1,clear:2,paste:3,sort:4,setArrayFormula:5,evaluateFormula:6};u.SheetArea={corner:0,colHeader:1,rowHeader:2,viewport:3};u.HeaderAutoText={blank:0,numbers:1,letters:2};ga={rowHeaderVisible:!0,colHeaderVisible:!0,clipBoardOptions:0,frozenlineColor:"black",rowHeaderAutoText:1,colHeaderAutoText:2,rowHeaderAutoTextIndex:-1,colHeaderAutoTextIndex:-1,sheetTabColor:null,selectionBackColor:null,selectionBorderColor:null,allowCellOverflow:!1,isProtected:!1,protectionOptions:{},gridline:{},borderColor:"black",borderWidth:0};G.Zn(F);F.Np=1;F.Qp=ga;F.Rp=200;F.Sp=20;F.Tp=1;F.Vp=1;F.Wp=20;F.Xp=62;F.Yp=40;F.Zp=20;F.prototype={constructor:F,Op:function(b,a,e){var f,c,g=this;e=g.parent;switch(b){case "allowCellOverflow":case "colHeaderAutoText":case "colHeaderAutoTextIndex":case "colHeaderVisible":case "frozenlineColor":case "rowHeaderAutoText":case "rowHeaderAutoTextIndex":case "rowHeaderVisible":case "selectionBackColor":case "selectionBorderColor":g.$p();break;case "gridline":f=function(){g.$p()};c=g.options.gridline;["color","showHorizontalGridline","showVerticalGridline"].forEach(function(b){var e=a[b];L(c,b,f);c[b]=e});break;case "isProtected":e&&e.undoManager().clear();g._p();g.$p();break;case "protectionOptions":g._p();break;case "sheetTabColor":e&&e.aq()}},name:function(b){var a=this.parent;if(0===arguments.length)return this.Cj;if(!this.bq(b))throw d().Exp_NotSupported;return this.cq(b),a&&a.aq(),this},cq:function(b){var a=!!F.getDataValidatorsBeforeSetSheetName,e=a?F.getDataValidatorsBeforeSetSheetName(this):null;this.Cj=b;a&&(F.adjustModelFormulasAfterSetSheetName(this),F.adjustValidatorsAfterSetSheetName(this,e))},visible:t("visible",!0,function(b){var a=this.parent,e=a.sheets,f=e.length,c=r.inArray(this,e),g=a.getActiveSheetIndex();if(b)0>g?a.dq(c,1):a.aq();else if(c===g){for(b=c+1;b<f&&!e[b].visible();)b++;if(b>=f)for(b=c-1;0<=b&&!e[b].visible();)b--;b<a.hq.gq&&(a.hq.gq=b);0>b?(this.no(!1),a.eq=b,a.fq()):a.dq(b,1)}else a.aq()}),addRows:function(b,a){var e,f,c,g,k,p;if(!(0>=a)){e=I(this);(0>b||b>e)&&(b=e);this.suspendPaint();try{if(f={changeType:"addingRows",row:b,rowCount:a,canAdd:!0},F.ao(this,"onLayoutChanged",f),f.canAdd)h(f.newRow)||(b=f.newRow),c=this.iq(),c.addItems(b,a),g=this.Mp(),g.addRows(b,a),k=this.Mp(2),k.addRows(b,a),p=this.zl(2),p.addRows(b,a),p=this.zl(),p.addRows(b,a),this.jq=!0,F.ao(this,"onLayoutChanged",{changeType:"addRows",row:b,oldValue:e,rowCount:a}),F.ao(this,"onLayoutChanged",{changeType:"addRows2",row:b,oldValue:e,rowCount:a}),this.kq(b,3,"addRows",a,e)}finally{this.resumePaint()}}},deleteRows:function(b,a){var e,f,c,g,k,h,p,m,d,v=I(this);if(!(0>b||b>=v||0>=a)){this.suspendPaint();try{if(e={changeType:"deletingRows",row:b,rowCount:a,canDelete:!0},F.ao(this,"onLayoutChanged",e),e.canDelete){if(f=this.iq(),f.deleteItems(b,a),c=this.Mp(),c.deleteRows(b,a),g=this.Mp(2),g.deleteRows(b,a),k=this.zl(2),k.removeRows(b,a),k=this.zl(),k.removeRows(b,a),h=this.lq,0<=h){p=-1;m=this.frozenRowCount();for(d=h;d>=m;d--)if(this.getRowVisible(d)&&0<this.Sl(d)){p=d;break}-1===p&&(p=0);h!==p&&this.mq(p)}this.getActiveRowIndex()>=v&&this.setActiveCell(v-1,this.getActiveColumnIndex());this.jq=!0;F.ao(this,"onLayoutChanged",{changeType:"deleteRows",row:b,oldValue:v,rowCount:a});this.kq(b,3,"deleteRows",a,v)}}finally{this.resumePaint()}}},addColumns:function(b,a){var e,f,c,g,k,h;0>=a||(e=H(this),(0>b||b>e)&&(b=e),f={changeType:"addingColumns",col:b,colCount:a,canAdd:!0},F.ao(this,"onLayoutChanged",f),f.canAdd&&(c=this.nq(),c.addItems(b,a),g=this.Mp(),g.addColumns(b,a),k=this.Mp(1),k.addColumns(b,a),h=this.zl(1),h.addColumns(b,a),h=this.zl(),h.addColumns(b,a),this.oq=!0,F.ao(this,"onLayoutChanged",{changeType:"addColumns",col:b,oldValue:e,colCount:a}),this.pq(b,3,"addColumns",a,e),this.$p()))},deleteColumns:function(b,a){var e,f,c,g,k,h,p=H(this);if(!(0>b||b>=p||0>=a)&&(e={changeType:"deletingColumns",col:b,colCount:a,canDelete:!0},F.ao(this,"onLayoutChanged",e),e.canDelete)){if(f=this.nq(),f.deleteItems(b,a),c=this.Mp(),c.deleteColumns(b,a),g=this.Mp(1),g.deleteColumns(b,a),k=this.zl(1),k.removeColumns(b,a),k=this.zl(),k.removeColumns(b,a),h=this.qq,0<=h){e=-1;f=this.frozenColumnCount();for(c=h;c>=f;c--)if(this.getColumnVisible(c)&&0<this.Tl(c)){e=c;break}-1===e&&(e=0);h!==e&&this.rq(e)}this.getActiveColumnIndex()>=p&&this.setActiveCell(this.getActiveRowIndex(),p-1);this.oq=!0;F.ao(this,"onLayoutChanged",{changeType:"deleteColumns",col:b,oldValue:p,colCount:a});this.pq(b,3,"deleteColumns",a,p);this.$p()}},frozenColumnCount:t("frozenColumnCount",0,function(b){this.qq<b&&(this.qq=b);this.oq=!0;this.$p()},function(b){return 0<=b}),frozenRowCount:t("frozenRowCount",0,function(b){this.lq<b&&(this.lq=b);this.jq=!0;this.$p()},function(b){return 0<=b}),frozenTrailingRowCount:t("frozenTrailingRowCount",0,function(){this.jq=!0;this.$p()},function(b){return 0<=b}),frozenTrailingColumnCount:t("frozenTrailingColumnCount",0,function(){this.oq=!0;this.$p()},function(b){return 0<=b}),getRowCount:function(b){if(0===b)return 0;b=this.Mp(b);return I(b)},getColumnCount:function(b){if(0===b)return 0;b=this.Mp(b);return H(b)},setRowCount:function(b,a){var e;h(a)&&(a=3);e={changeType:"settingRowCount",rowCount:b,sheetArea:a,canSet:!0};F.ao(this,"onLayoutChanged",e);e.canSet&&this.setRowCountCore(b,a)},setRowCountCore:function(b,a){var e,f,c,g;b=v(b,10);S(b)||(h(a)&&(a=3),e=this.Mp(),0>b||b===this.getRowCount(a)||(3===a||2===a?(f=I(e),f>b&&this.deleteRows(b,f-b),e.setRowCount(b),this.Mp(2).setRowCount(b),this.frozenRowCount()>b&&this.frozenRowCount(b)):1===a&&(c=this.Mp(1),I(c)>b&&(g=this.iq(a),g.deleteItems(b,I(c)-b)),c.setRowCount(b)),F.ao(this,"onLayoutChanged",{changeType:"setRowCount",rowCount:b,sheetArea:a}),this.jq=!0,this.Jl>=b&&(3===a||2===a)&&this.setActiveCell(b-1,this.getActiveColumnIndex()),this.$p(),this.clearPendingChanges()))},setColumnCount:function(b,a){var e,f,c,g;b=v(b,10);S(b)||(e=this.Mp(),0>b||b===this.getColumnCount(a)||(h(a)&&(a=3),3===a||1===a?(f=H(e),f>b&&this.deleteColumns(b,f-b),this.Mp().setColumnCount(b),this.Mp(1).setColumnCount(b),this.frozenColumnCount()>b&&this.frozenColumnCount(b)):2===a&&(c=this.Mp(2),H(c)>b&&(g=this.nq(a),g.deleteItems(b,H(c)-b)),c.setColumnCount(b)),F.ao(this,"onLayoutChanged",{changeType:"setColumnCount",colCount:b,sheetArea:a}),this.oq=!0,this.Kl>=b&&(3===a||1===a)&&this.setActiveCell(this.getActiveRowIndex(),b-1),this.$p(),this.clearPendingChanges()))},getText:function(b,a,e){var f,c,g;return h(e)&&(e=3),f=this.getValue(b,a,e),c=this.getCellType(b,a,e),g=this.tq(b,a,"formatter",e),g||(g=this.tq(b,a,"_autoFormatter",e)),f=c.format(f,g,{sheet:this,row:b,col:a,sheetArea:e}),f&&"string"==typeof f&&""!==f&&(f=f.replace(/\r\n?/g,"\n")),f},setText:function(b,a,e,f){var c,g,k,p,m;h(f)&&(f=3);c=e;e={value:e};F.ao(this,"settingText",e);g=e=e.value;k=this.getCellType(b,a,f);p=this.getFormatter&&this.getFormatter(b,a,f);k&&p&&(m={sheet:this,row:b,col:a,sheetArea:f},g=k.parse(c,p,m),g=h(g)?e:g);this.uq(b,a,g,f);this.$p()},getValue:function(b,a,e){var f,c,g,k,p,m,d,v,n;return 0===e?null:(h(e)&&(e=3),f=this.options,c=this.Mp(e),g=this.vq(c,b,a,e),1===e?h(g)&&(p=this.wq,p&&p.Ou&&(m=this.nq().Jp(a),d=f.colHeaderAutoTextIndex,m&&(0<=d&&b===d||-1===d&&b===I(c)-1)&&(g=m.displayName||m.name)),h(g)&&(k=f.colHeaderAutoTextIndex,(0>k||k>=I(c))&&(k=I(c)-1),b===k&&(v=f.colHeaderAutoText,2===v?g=this.xq(a+1):1===v&&(g=a+1)))):2===e&&h(g)&&(k=f.rowHeaderAutoTextIndex,(0>k||k>=H(c))&&(k=H(c)-1),a===k&&(n=f.rowHeaderAutoText,2===n?g=this.xq(b+1):1===n&&(g=b+1))),g)},setValue:function(b,a,e,f,c){this.uq(b,a,e,f,c);this.$p()},uq:function(b,a,e,f,c){var g,k,p,m,d,v,n,t,x,q,y;if(0!==f&&(h(f)&&(f=3),g=this,k=g.Mp(f),p=I(k),m=H(k),!(0>b||b>=p||0>a||a>=m))){if(d=3===f,e=R(e),g.isEventSuspended()&&g.isDirtySuspended()||(v=g.vq(k,b,a,f)),p=!1,n=g.tables,d&&n&&n.find(b,a)){if(t=n.yq(b,a,e),!t.isValid)return;p=t.isValueSet}d?(x=g.wq,!p&&x&&x.Ou&&(q=x.getValue(b,a),q.hasBinding&&e!==q.value&&(g.isDirtySuspended()||(y=r.extend({},g.getDataItem(b)),k.Cp(b,a,{Dp:y,Ep:v})),x.setValue(b,a,e)),p=q.hasBinding),p||k.setValue(b,a,e)):k.setValue(b,a,e);d&&!c&&u.X3&&g.zq(k,b,a);g.t4&&g.t4(b,a,1,1,f);(c=g.conditionalFormats)&&c.Nm();g.isEventSuspended()||v===e||g.Bq("value",b,a,f,v,e)}},getActualStyle:function(b,a,e,f,g){var c,k,p,m,d,v,n,t,x,q,y,l,B,w,N,T,r,z,C;if(h(e)&&(e=3),0===e)return new D;if(-1===b&&-1===a)return this.getDefaultStyle(e);if(v=this.Cq,w=this.Mp(e),p=w.getStyle(b,a),m=w.getStyle(b,-1),d=w.getStyle(-1,a),p=p?p:null,m=m?m:null,d=d?d:null,y="__undefined",p&&(y=p.charAt?p:"__spreadJSDefault"+p.yn),l="__undefined",m&&(l=m.charAt?m:"__spreadJSDefault"+m.yn),B="__undefined",d&&(B=d.charAt?d:"__spreadJSDefault"+d.yn),q=v[e],n=q[y],N=this.tables,T=3===e&&N?N.find(b,a):null,T||(n||(n=q[y]={}),t=n[l],t?x=t[B]:t=n[l]={}),x||(k=this.Dq(b,a,e,p,m,d,T)),3!==e||f||(x||(r=k.formatter,r&&r.hasFormatedColor&&r.hasFormatedColor()&&(z={value:null},r.format(this.getValue(b,a),z),z.value&&(c=new D,c.foreColor=z.value))),C=this.conditionalFormats,C&&(c=C.Eq(c,b,a,e))),c)c.Yo(x?x:k),k=c;else if(x)return g?x:x.clone(!0);return h(k.locked)&&(k.locked=!0),k=k.Zo(this.Pm),c||T||(t[B]=k.clone(!0)),k},tq:function(b,a,e,f){var c,g,k,p,m,d,v,n,t,x,q,y;if(0!==f){h(f)&&(f=3);p=this.Mp(f);d=!1;3===f&&("foreColor"===e&&(g=this.tq(b,a,"formatter",f),g&&g.hasFormatedColor&&g.hasFormatedColor()&&(n={value:null},g.format(this.getValue(b,a),n),n.value&&(m=n.value,d=!0))),t=this.conditionalFormats,t&&0<t.count()&&(x=t.Fq(b,a,e,f),d=x.v5,m=x.Fi));for(n=0;!d&&4>=n;)if(0===n?c=p.getStyle(b,a):1===n?(q=this.tables,y=3===f&&q?q.find(b,a):null,y&&ea[e]&&(c=y.Gq(b,a,e))):c=2===n?p.getStyle(b,-1):3===n?p.getStyle(-1,a):this.getDefaultStyle(f),n++,c&&c.charAt&&typeof c===ja&&(c=this.Hq(c)),c){if("font"===e&&c.themeFont&&!v&&(v=c.themeFont),void 0!==c[e]){m=c[e];d=!0;break}for(g=c.parentName;g&&(k=this.Hq(g));){if(void 0!==k[e]){m=k[e];d=!0;break}g=k.parentName}}return"locked"===e?!!h(m)||m:d||v?("foreColor"!==e&&"backColor"!==e&&"font"!==e&&"borderLeft"!==e&&"borderTop"!==e&&"borderRight"!==e&&"borderBottom"!==e||(c=new D,c[e]=m,"font"===e&&v&&(c.themeFont=v),c.Zo(this.Pm),m=c[e]),m):void 0}},getStyle:function(b,a,e){return this.Iq(b,a,e,!0)},Iq:function(b,a,e,f){var c,g,k,p;if(h(e)&&(e=3),0!==e){if(c=this.Mp(e),g=c.getStyle(b,a),g instanceof D)return f&&this.Jq(),g;if(typeof g===ja&&(k=this.Hq(g),null!==k))return p=new D,p.Yo(k),f&&this.Jq(),p}return null},addNamedStyle:function(b){this.Kq(b);this.$p()},Kq:function(b){if(b){if(!b.name)throw Error(d.Exp_EmptyNamedStyle);var a=b.name.toUpperCase();this.Lq[a]=b}},getNamedStyle:function(b){return this.Mq(b,!0)},Mq:function(b,a){var e,f=this.Lq;return f&&b?(b=b.toUpperCase(),e=f[b],e&&a&&this.Jq(),e):null},Jq:function(){this.Cq=[{},{},{},{}]},removeNamedStyle:function(b){var a=this.Lq;a&&b&&(b=b.toUpperCase(),Z(a,b)&&(delete a[b],this.Jq(),this.$p()))},getNamedStyles:function(){var b=[],a=this.Lq;return a&&W(a,function(a,e){b.push(e)}),this.Jq(),b},setStyle:function(b,a,e,f){h(f)&&(f=3);this.Nq(b,a,e,f);-1===b&&-1===a&&(this.Oq[f]=null);-1!==b&&-1!==a||e&&e.validator&&e.validator.condition()&&4===e.validator.condition().conType()&&e.validator.condition().getExpected(this,0>b?0:b,0>a?0:a);this.Jq();this.$p()},Pq:function(b,a,e,f){var c,g;this.options.isProtected?(c=this.getStyle(b,a,f),e?(g=c?c.locked:void 0,e.locked!==g&&(e.locked=g),this.setStyle(b,a,e,f)):c&&(g=c.locked,void 0!==g&&(e=new D,e.locked=g),this.setStyle(b,a,e,f))):this.setStyle(b,a,e,f)},getStyleName:function(b,a,e){b=this.Aj(b,a,e);return b instanceof D?b.name:b},setStyleName:function(b,a,e,f){typeof e===ja&&(this.Nq(b,a,e,f),this.$p())},Aj:function(b,a,e){var f,c;return h(e)&&(e=3),0!==e&&(c=this.Mp(e),f=c.getStyle(b,a)),f||null},Nq:function(b,a,e,f){var c,g,k,p;(h(f)&&(f=3),0===f)||(c=this.Aj(b,a,f),g=this.Mp(f),k=I(g),p=H(g),-1>b||b>=k||-1>a||a>=p)||(k=g.getStyle(b,a),g.setStyle(b,a,e),C.zn(e,this,b,a),c=c&&c.cellType&&c.cellType.typeName||null,g=e&&e.cellType&&e.cellType.typeName||null,b===this.Jl&&a===this.Kl&&c!==g&&M.Wl(this)&&this.mm.Qq(),-1!==b&&-1!==a?this.Bq("[styleinfo]",b,a,f,k,e):-1!==b&&-1===a?this.kq(b,f,"[styleinfo]",e,k):-1===b&&-1!==a&&this.pq(a,f,"[styleinfo]",e,k))},getDefaultStyle:function(b){var a,e,f,c,g,k;return h(b)&&(b=3),a=this.Oq,(e=a[b])?e:0!==b?(f=this.Mp(b),c=f.getStyle(-1,-1),typeof c===ja&&(c=this.Hq(c)),c||(c=new D,f.setStyle(-1,-1,c)),g=1===b||2===b,"undefined"===typeof c.hAlign&&(c.hAlign=g?1:3),"undefined"===typeof c.vAlign&&(c.vAlign=g?1:0),"undefined"===typeof c.imeMode&&(c.imeMode=1),c.font||"undefined"!==typeof c.themeFont||(c.themeFont="Body"),a[b]=c,c):(k=new D,k.locked=!0,a[b]=k,k)},setDefaultStyle:function(b,a){var e;h(a)&&(a=3);0!==a&&(e=this.Mp(a),e.setStyle(-1,-1,b),C.zn(b,this,-1,-1));this.Oq[a]=null;this.Jq();this.$p()},Hq:function(b){var a,e=this.Mq(b,!1);return e?e:(a=this.parent,a?a.Mq(b,!1):null)},Dq:function(b,a,e,f,c,g,k,p){var m,d,v,n,t,x,q,y,l,B;if(h(e)&&(e=3),0!==e){if(m=this,d=new D,n=!1,t=m.Mp(e),x=m.tables,q=I(t),y=H(t),0<=b&&b<q&&0<=a&&a<y&&(l=void 0!==f?f:t.getStyle(b,a),l&&l.charAt&&(l=m.Hq(l)),l))for(d.Yo(l,!0,10),n=!0,f=l.parentName;f&&(v=m.Hq(f));)d.Yo(v,!1,10),f=v.parentName;if(p)return d;if(void 0===k&&(k=3===e&&x?x.find(b,a):null),k&&(k.Yo(b,a,d),n=!0),0<=b&&b<q&&(l=void 0!==c?c:t.getStyle(b,-1),l&&l.charAt&&(l=m.Hq(l)),l))for(d.Yo(l,!n,30),n=!0,f=l.parentName;f&&(v=m.Hq(f));)d.Yo(v,!1,30),f=v.parentName;if(0<=a&&a<y&&(l=void 0!==g?g:t.getStyle(-1,a),l&&l.charAt&&(l=m.Hq(l)),l))for(d.Yo(l,!n,40),n=!0,f=l.parentName;f&&(v=m.Hq(f));)d.Yo(v,!1,40),f=v.parentName}if(B=m.getDefaultStyle(e),B&&B.charAt&&(B=m.Hq(B)),B)for(d.Yo(B,!n,50),f=B.parentName;f&&(v=m.Hq(f));)d.Yo(v,!1,50),f=v.parentName;return d},getCellType:function(b,a,e){return this.tq(b,a,"cellType",e)||this.Al(e)},Al:function(b){var a,e;return h(b)&&(b=3),a=l(52).CellTypes,e=this.Rq,e||(e=this.Rq=new a.Text),3===b?e:1===b?new a.ColumnHeader:2===b?new a.RowHeader:0===b?new a.Corner:e},setCellType:function(b,a,e,f){var c=this.Iq(b,a,f);c||(c=new D);c.cellType=e;this.setStyle(b,a,c,f)},Sq:function(b,a,e,f,c){var g,k,p,d;if(h(c)&&(c=3),g=this.zl(c),g.clear(b,a,e,f),k=m(b,a,e,f),p=this.Tq(k,c),g.addSpan(p),3===c&&(d=this.Uq)){c=this.getSelections();for(g=0;g<c.length;g++)c[g].intersect(b,a,e,f)&&(c[g]=c[g].union(k));d.fromArray(c)}this.$p()},addSpan:function(b,a,e,f,c){var g,k;if((1!==e||1!==f)&&0!==c&&(g=!0,u.X3&&(3===c||h(c))&&(g=this.Vq(b,a,e,f,!1)),g)){if(k=this.zl(c),k.hasPartSpans(b,a,e,f))throw Error(d().Exp_InvalidRange);this.Sq(b,a,e,f,c);b={sheet:this,row:b,col:a,rowCount:e,colCount:f,sheetArea:c,changeType:"addSpan"};F.ao(this,"onLayoutChanged",b);this.Wq("spanChanged",b)}},removeSpan:function(b,a,e){var f,c,g;h(e)&&(e=3);f=this.zl(e);for(c=0;c<f.length;c++)if(g=f[c],g.row===b&&g.col===a){f.removeSpan(c,1);break}b={sheet:this,row:b,col:a,sheetArea:e,changeType:"removeSpan"};F.ao(this,"onLayoutChanged",b);this.Wq("spanChanged",b);this.$p()},getSpans:function(b,a){return 0===a?[]:this.zl(a).getSpans(b)},getSpan:function(b,a,e){return 0===e?null:this.zl(e).find(b,a)},repaint:function(b){0>=this.Xq&&this.yl.repaint(b)},Yq:function(b,a){var e,f,c,g,k;k=this.frozenRowCount();e=(e=this.frozenColumnCount())?this.Zq(e-1):this.$q();k=k?this._q(k-1):this.ar();if(a<this.qq&&a>=e&&this.rq(this.br(a+1)),a>this.cr()&&a<=this.dr()){e=0;f=a;c=this.am();for((g=this.zl().find(b,f))&&(f=g.col+g.colCount-1);f>this.qq&&(e+=this.Tl(f),!(e>c.er));)f--;e=this.Zq(f);this.rq(e)}if(b<this.lq&&b>=k&&this.mq(this.gr(b+1)),b>this.hr()&&b<=this.ir()){k=0;e=b;(f=this.zl().find(e,a))&&(e=f.row+f.rowCount-1);for(f=this.am();e>this.lq&&(k+=this.Sl(e),!(k>f.jr));)e--;k=this._q(e);this.mq(k)}a===this.dr()&&this.rq(this.lr())},hitTest:function(b,a,e){var f,c,g,k,h,p,m,d,v,n,t,x,q,y,l,B,w,N,r,z;return this.am(),f={x:b,y:a,rowViewportIndex:null,colViewportIndex:null,row:-1,col:-1,resizeInfo:null,hitTestType:null,outlineHitInfo:null,filterButtonHitInfo:null,dragInfo:null,cellTypeHitInfo:null,floatingObjectHitInfo:null,formulaRangeHitInfo:null,commentHitInfo:null},c=this.rowOutlines,g=this.columnOutlines,c&&(k=c.hitTest(this,b,a)),!k&&g&&(k=g.hitTest(this,b,a)),k?f.outlineHitInfo=k:(h=this.nr(a),p=this.or(b),f.rowViewportIndex=h,f.colViewportIndex=p,f.row=this.pr(a,h),f.col=this.qr(b,p),0<=h&&2>=h&&0<=p&&(m=this.rr(h,p,void 0,f.row,f.col),m&&!0!==e&&(f.row=m.row,f.col=m.col)),f.hitTestType=this.sr(h,p),d=this.mm,v=d.tr&&d.tr(f,b,a),v?f.dragInfo=v:(n=d.ur(f,b,a,5),n?f.resizeInfo=n:(t=d.vr?d.vr(f,b,a):null,t?f.formulaRangeHitInfo=t:(x=this.comments,q=x&&x.hitTest(b,a),q?f.commentHitInfo=q:(y=this.wr,l=y&&y.hitTest(b,a),l?f.floatingObjectHitInfo=l:(B=this.xr,w=B&&B.hitTest(f,b,a),w||(N=this.tables,r=N&&N.find(f.row,f.col),z=r&&r.xr,w=z&&z.hitTest(f,b,a)),w?f.filterButtonHitInfo=w:f.cellTypeHitInfo=this.yr(f,b,a))))))),f},getCellRect:function(b,a,e,f){var c,g,k,p,m,d=3;return-1===e?d=1:-1===f&&(d=2),c=this.am(),-1===e&&-1===f?new B(c.zr,c.Ar,c.Br,c.Cr):(g=this.Dr(),h(e)&&(e=this.Er(b)),h(f)&&(f=this.Fr(a)),k=this.Gr(e,d).findRow(b),p=this.Hr(f,d).findCol(a),m=this.Ir(e,f,d).findCell(b,a),m?new B(m.x-g.x,m.y-g.y,m.width,m.height):k&&p?new B(p.x-g.x,k.y-g.y,p.width,k.height):new B)},Jr:function(b,a,e){var f=this.mm,c=!1;h(b)||(this.Jl=b,c=!0);h(a)||(this.Kl=a,c=!0);!e&&f&&c&&f.Qq()},Kr:function(b,a,e,f,c){var g,k=this.Jl,h=this.Kl,p=this.zl().get(b,a);this.Lr=p.rowCount;this.Mr=p.colCount;0>=this.Xq&&(g=this.zl().get(k,h),this.yl.im(m(k,h,g.rowCount,g.colCount)));this.Nr=e;this.Pr=f;this.Jr(b,a,c);this.Qr=b;this.Rr=a},setActiveCell:function(b,a,e,f){this.Uq&&this.Sr(b,a,e,f,2)},Sr:function(b,a,e,f,c){var g=I(this),k=H(this);0>b?b=0:b>=g&&(b=g-1);0>a?a=0:a>=k&&(a=k-1);this.Tr();c=2===c?M.Wl(this):1===c;this.Kr(b,a,e,f,!c);b=this.zl().get(b,a);this.Ur(b.row,b.col,b.rowCount,b.colCount);this.$p()},getActiveRowIndex:function(){return this.Jl},getActiveColumnIndex:function(){return this.Kl},getRowResizable:function(b,a){return this.iq(a).getResizable(b)},setRowResizable:function(b,a,e){this.Vr(b,a,"resizable",!0,e)},Vr:function(b,a,e,f,c){h(c)&&(c=3);var g=f?this.iq(c):this.nq(c),k;switch(e){case "resizable":k=g.getResizable(b);g.setResizable(b,a);break;case "pageBreak":k=g.getPageBreak(b);g.setPageBreak(b,a);break;case "isVisible":k=g.getVisible(b);g.setVisible(b,a);f&&u.X3&&3===c&&k!==a&&this.recalcRows([b]);break;case "height":k=g.getSize(b);g.setSize(b,a);!u.X3||3!==c||k===a||0!==k&&0!==a||this.recalcRows([b]);break;case "width":k=g.getSize(b),g.setSize(b,a)}f?this.kq(b,c,e,a,k):this.pq(b,c,e,a,k)},getColumnResizable:function(b,a){return this.nq(a).getResizable(b)},setColumnResizable:function(b,a,e){this.Vr(b,a,"resizable",!1,e)},getRowHeight:function(b,a){var e,f,c,g,k,p;if(h(a)&&(a=3),3===a||2===a){if(e=this.Mp(a),f=I(e)||0,0>b||b>=f)return 0;e=this.Wr;for(f=0;f<e.length;f++)if(c=e[f],!c.Xr(b))return 0}return g=this.defaults,k=g.rowHeight,1===a&&(k=g.colHeaderRowHeight),p=this.iq(a).getSize(b),p||0===p?p:k},Yr:function(b,a){var e,f,c;return h(a)&&(a=3),e=this.defaults,f=e.rowHeight,1===a&&(f=e.colHeaderRowHeight),c=this.iq(a).getActualSize(b),c||0===c?c:f},setRowHeight:function(b,a,e){this.Vr(b,a,"height",!0,e);this.jq=!0;this.$p()},getRowVisible:function(b,a,e){var f,c;if(h(a)&&(a=3),!e&&(3===a||2===a))for(e=this.Wr,f=0;f<e.length;f++)if(c=e[f],!c.Xr(b))return!1;return this.iq(a).getVisible(b)},setRowVisible:function(b,a,e){this.Vr(b,a,"isVisible",!0,e);this.jq=!0;this.$p()},getColumnWidth:function(b,a){var e,f,c,g,k,p;if(h(a)&&(a=3),e=this.defaults,f=e.colWidth,2===a&&(f=e.rowHeaderColWidth),3===a||1===a){if(c=this.Mp(a),g=H(c)||0,0>b||b>=g)return 0;e=this.Zr;for(c=0;c<e.length;c++)if(k=e[c],!k.Xr(b))return 0}return p=this.nq(a).getSize(b),p||0===p?p:f},$r:function(b,a){var e,f,c;return h(a)&&(a=3),e=this.defaults,f=e.colWidth,2===a&&(f=e.rowHeaderColWidth),c=this.nq(a).getActualSize(b),c||0===c?c:f},setColumnWidth:function(b,a,e){this.Vr(b,a,"width",!1,e);this.oq=!0;this.$p()},getColumnVisible:function(b,a){var e,f,c;if(h(a)&&(a=3),3===a||1===a)for(e=this.Zr,f=0;f<e.length;f++)if(c=e[f],!c.Xr(b))return!1;return this.nq(a).getVisible(b)},setColumnVisible:function(b,a,e){this.Vr(b,a,"isVisible",!1,e);this.oq=!0;this.$p()},zoom:function(b){return 0===arguments.length?this._zoomFactor:(b=N(b),!S(b)&&isFinite(b)&&(4<b?b=4:.25>b&&(b=.25),this._zoomFactor=b,this.oq=!0,this.jq=!0,this.$p()),this)},invalidateLayout:function(){var b=this.mm;this._r=null;this.as={colHeader:null,viewport:null,colFooter:null};this.bs={rowHeader:null,viewport:null};F.ao(this,"onLayoutChanged",{changeType:"invalidateLayout"});b&&b.cs&&M.Wl(this)&&b.cs(this.Jl,this.Kl);this.oq&&(this.ds(),this.oq=!1);this.jq&&(this.es(),this.jq=!1);this.$l=!0},$p:function(){0>=this.Xq&&(this.invalidateLayout(),this.repaint())},getViewportHeight:function(b){var a=this.am();return 0===b?a.fs:1===b?a.jr:2===b?a.gs:0},getViewportWidth:function(b){var a=this.am();return 0===b?a.hs:1===b?a.er:2===b?a.js:0},getViewportTopRow:function(b){var a=this.frozenRowCount();return 0===b?0:1===b?Y(a,this.lq):2===b?Y(a,I(this)-this.frozenTrailingRowCount()):-1},getViewportBottomRow:function(b){var a,e,f,c,g;if(2===b)return I(this)-1;a=this.getViewportTopRow(b);e=this.getViewportHeight(b);c=f=0;g=I(this)-this.frozenTrailingRowCount();0===b&&(g=X(this.frozenRowCount(),g));for(b=a;b<g&&f<e;b++,c++)f+=this.Sl(b);return a+c-1},getViewportLeftColumn:function(b){var a=this.frozenColumnCount();return 0===b?0:1===b?Y(a,this.qq):2===b?Y(a,H(this)-this.frozenTrailingColumnCount()):-1},getViewportRightColumn:function(b){var a,e,f,c,g;if(2===b)return H(this)-1;a=this.getViewportLeftColumn(b);e=this.getViewportWidth(b);c=f=0;g=H(this)-this.frozenTrailingColumnCount();0===b&&(g=X(this.frozenColumnCount(),g));for(b=a;b<g&&c<e;b++,f++)c+=this.Tl(b);return a+f-1},showCell:function(b,a,e,f){var c,g,k,h,p,m;0>b||b>=I(this)||0>a||a>=H(this)||(c=this.Fr(a),g=this.Er(b),k=this.getViewportTopRow(g),h=this.getViewportLeftColumn(c),1===c&&(a=this.ks(a,f)),1===g&&(b=this.ms(b,e)),p=!1,1===g&&b!==k&&(b=X(b,this.ns()),this.lq=b,this.os(),p=!0),1===c&&a!==h&&(a=X(a,this.ps()),this.qq=a,this.qs(),p=!0),p&&(m=this.parent,m&&!m.options.scrollbarShowMax&&(this.oq=!0,this.jq=!0),this.$p()))},Er:function(b){var a=1;return b<this.frozenRowCount()?a=0:b>=I(this)-this.frozenTrailingRowCount()&&(a=2),a},Fr:function(b){var a=1;return b<this.frozenColumnCount()?a=0:b>=H(this)-this.frozenTrailingColumnCount()&&(a=2),a},ks:function(b,a){var e=this.ss,f=this.Fr(b),c=this.getViewportLeftColumn(f);if(0!==a)if(1===a)for(f=ka((this.getViewportWidth(f)-e._m(b))/2);0<b&&(f-=e._m(b-1),!(0>f));b--);else if(2===a)for(f=this.getViewportWidth(f)-e._m(b);0<b&&(f-=e._m(b-1),!(0>f));b--);else if(3===a&&b>=c)for(f=this.getViewportWidth(f)-e._m(b);c<b&&(f-=e._m(b-1),!(0>f));b--);return b},ms:function(b,a){var e=this.ss,f=this.Er(b),c=this.getViewportTopRow(f);if(0!==a)if(1===a)for(f=ka((this.getViewportHeight(f)-e.Sl(b))/2);0<b&&(f-=e.Sl(b-1),!(0>f));b--);else if(2===a)for(f=this.getViewportHeight(f)-e.Sl(b);0<b&&(f-=e.Sl(b-1),!(0>f));b--);else if(3===a&&!(b<c||-1===c))for(f=this.getViewportHeight(f)-e.Sl(b);c<b&&(f-=e.Sl(b-1),!(0>f));b--);return b},showColumn:function(b,a){this.showCell(this.lq,b,0,a)},showRow:function(b,a){this.showCell(b,this.qq,a,0)},suspendEvent:function(){this.jm++},resumeEvent:function(){this.jm--;0>this.jm&&(this.jm=0)},isEventSuspended:function(){return 0<this.jm},currentTheme:function(b){return 0===arguments.length?(this.Pm||this.ts(),this.Pm):(typeof b===ja&&(b=g[b]?g[b]:new f(b)),this.Pm=b,this.yl.us(),this.Jq(),this.$p(),this)},P3:function(){var b=p.Lm(""),b=v(b.zIndex),a=g.Office2007;return 2007<b&&(a=g.Office),a},ts:function(){this.Pm=this.P3();this.Jq()},reset:function(){this.vs();this.$p()},vs:function(){var b,e,f,c;this._zoomFactor=1;this.Pp();this.Pr=this.Nr=0;this.defaults={rowHeight:F.Wp,colWidth:F.Xp,rowHeaderColWidth:F.Yp,colHeaderRowHeight:F.Zp};this.T3();this._r=null;this.as={colHeader:null,viewport:null,colFooter:null};this.bs={rowHeader:null,viewport:null};this.qq=this.lq=0;this.frozenRowCount(0);this.frozenColumnCount(0);this.frozenTrailingRowCount(0);this.frozenTrailingColumnCount(0);this.mm=new u.iI(this);(b=this.parent)&&(e=b.getActiveSheet(),e&&this.name()===e.name()&&this.ws(b.xs));this.Cq=[{},{},{},{}];this.ss=new a(this);this.Oq={};u.X3&&this.resetCalc();b=A.Fp;e=A.Lp;f=A.mp;this.ys=c=new b(F.Rp,F.Sp);this.zs=new b(c.rowCount,F.Tp);this.As=new b(F.Vp,c.colCount);this.Bs=new e;this.Cs=new e;this.Ds=new e;this.Es=new e;this.Fs=new f;this.Gs=new f;this.Hs=new f;this.Is=null;this.ts();this.Lq={};this.jq=this.oq=!0;this.gga=this.jm=this.Xq=0;this.Js=!1;this.Ks=null;this.Wr=[];this.Zr=[];F.ao(this,"init")},T3:function(){var b=this;W(ga,function(a,e){if(!h(e)){var f=e;"gridline"===a?f={color:p.Lm("gc-gridlineColor").borderTopColor,showVerticalGridline:!0,showHorizontalGridline:!0}:"object"==typeof f&&(f=r.extend({},e));b.options[a]=f}})},Ls:function(b){this.parent=b;this.Xq=b.xD;this.jm=b.jm;F.ao(this,"attach",b)},Y3:function(b,a,e,f,c,g){return this.options.isProtected&&this.ou(m(b,a,e,f))?(c&&this.Os(1,c),!1):!(u.X3&&!this.Vq(b,a,e,f))||(g&&this.Os(1,g),!1)},clear:function(b,a,e,f,c,g){0!==c&&this.cg(b,a,e,f,c,g)},cg:function(b,a,e,f,c,g,k,p){var m,d,v,n,t,x,q,y,l,B,w,N,r,z,C;try{if(m=u.X3,m&&this.suspendCalcService(),this.suspendPaint(),d=this.defaults,h(c)||3===c){if(u.X3&&!this.Vq(b,a,e,f))return!1;if(1&g&&this.getDataSource&&this.getDataSource()){this.suspendEvent();for(v=b;v<b+e;v++)if(!(k&&this.Ps&&this.Ps(v)))for(n=a;n<a+f;n++)this.setValue(v,n,null,c);this.resumeEvent()}}q={changeType:"clear",row:b,col:a,rowCount:e,colCount:f,sheetArea:c,type:g,ignoreTable:p};F.ao(this,"onLayoutChanged",q);y=this.Mp(c);l=m&&this.Bj();v=-1===b?0:b;B=-1===b?I(y):e;n=-1===a?0:a;w=-1===a?H(y):f;N=[];for(r=v;r<B;r++)k&&this.Ps&&this.Ps(r)&&N.push(r);if(y.clear(v,n,B,w,g,N),l&&1&g&&(l.Sg(v,n,B,w),l.clear(v,n,B,w)),8&g&&!(0<=b&&0<=a))if(0<=a)for(x=0;x<w;x++)this.setTag(-1,n+x,null,c);else if(0<=b)for(t=0;t<B;t++)k&&this.Ps&&this.Ps(v+t)||this.setTag(v+t,-1,null,c);else this.setTag(-1,-1,null,c);if(2&g&&!(0<=b&&0<=a))if(0<=a)for(x=0;x<w;x++)this.setStyle(-1,n+x,null,c);else if(0<=b)for(t=0;t<B;t++)k&&this.Ps&&this.Ps(v+t)||this.setStyle(v+t,-1,null,c);else this.setStyle(-1,-1,null,c);if(32&g){if(0>b)for(x=0;x<w;x++)this.setColumnVisible(n+x,!0,c),this.setColumnResizable(n+x,!0,c),this.setColumnWidth(n+x,2===c?d.rowHeaderColWidth:d.colWidth,c);if(0>a)for(t=0;t<B;t++)k&&this.Ps&&this.Ps(v+t)||(this.setRowVisible(v+t,!0,c),this.setRowResizable(v+t,!0,c),this.setRowHeight(v+t,1===c?d.colHeaderRowHeight:d.rowHeight,c))}(h(c)||3===c)&&m&&1===(1&g)&&(z=this.Bj(),z&&z.Ag(b,a,e,f));C=[];for(t=0;t<B;t++)for(x=0;x<w;x++)C.push({row:v+t,col:n+x});this.Bu(b,a,B,w,C,2,c)}finally{this.resumePaint(),m&&this.resumeCalcService(!1)}},_p:function(){var b,a,e=this.options,f=e.protectionOptions;e.isProtected&&f&&(!1===f.allowSelectLockedCells||!1===f.allowSelectUnlockedCells)&&(b=this.Jl,a=this.Kl,this.Qs(b,a)||(this.Tr(),this.Rs(b,a,!0),this.Ss(4,b,a)))},setArray:function(b,a,e,f){var c,g,k=this;if(f=u.X3&&f,c=I(k),g=H(k),e&&0<=b&&b<c&&0<=a&&a<g){u.X3&&k.suspendCalcService();k.suspendPaint();try{W(e,function(e,h){if(h instanceof Array)W(h,function(h,p){var m=b+e,d=a+h;m<c&&d<g&&(f?k.setFormula(m,d,p):k.setValue(m,d,p,3,!0))});else{var p=b+e;p<c&&a<g&&(f?k.setFormula(p,a,h):k.setValue(p,a,h,3,!0))}})}finally{u.X3&&k.resumeCalcService(),k.resumePaint()}}},getArray:function(b,a,e,f,c){var g,k,h=[];g=I(this);k=H(this);if(c=c&&u.X3,0<=b&&b<g&&0<=a&&a<k)for(b+e>g&&(e=g-b),a+f>k&&(f=k-a),g=0;g<e;g++)for(h[g]=[],k=0;k<f;k++)c?h[g][k]=this.getFormula(b+g,a+k):h[g][k]=this.getValue(b+g,a+k);return h},setTag:function(b,a,e,f){var c,g,k,p;(h(f)&&(f=3),0===f)||(c=this.Mp(f),g=I(c),k=H(c),-1>b||b>=g||-1>a||a>=k)||(e=R(e),(g=0<this.jm)||(p=this.getTag(b,a,f)),c.setValueForKey(b,a,"tag",e),g||p===e||(-1!==b&&-1!==a?this.Bq("tag",b,a,f,p,e):-1!==b&&-1===a?this.kq(b,f,"tag",e,p):-1===b&&-1!==a&&this.pq(a,f,"tag",e,p)))},getTag:function(b,a,e){var f,c;return h(e)&&(e=3),0!==e?(f=this.Mp(e),c=f.getValueForKey(b,a,"tag"),J(c)):null},tag:function(b){return 0===arguments.length?J(this.Is):(this.Is=R(b),this)},getParent:function(){return this.parent},getDirtyRows:function(){return Q(this,!0)},getInsertRows:function(){return Q(this,!1)},getDeletedRows:function(){var b=[],a=this.Ts;return a&&W(a,function(a,e){e&&!r.isFunction(e)&&b.push({row:e.row,originalItem:e.data})}),b},hasPendingChanges:function(){var b,a=this.Ts;return!!(a&&0<a.length)||(b=this.Mp().Ap,!P(b))},clearPendingChanges:function(){this.Mp().Ap={};this.Ts=[]},getDirtyCells:function(b,a,e,f){function c(b,a,e,f){return{row:a,col:e,newValue:b.getValue(a,e),oldValue:f}}var g,k,p,m,d,n,t;if(g=this,h(b)&&(b=-1),h(a)&&(a=-1),(h(e)||0>=e)&&(e=1),(h(f)||0>=f)&&(f=1),k=[],p=g.Mp().Ap,!P(p)){if(m=[],0<=b)for(d=b;d<b+e;d++)m.push(d);else for(d in p)Z(p,d)&&m.push(v(d));W(m,function(b,e){var h;if(n=p[e],n&&"e"===n.rs)if(0<=a)for(h=a;h<a+f;h++)(t=n[h])&&k.push(c(g,e,h,t.oldValue));else for(h in n)S(h)||(t=n[h],t&&k.push(c(g,e,v(h),t.oldValue)))})}return k},suspendDirty:function(){this.gga++;this.Mp().gga++},resumeDirty:function(){var b=this.Mp();this.gga--;b.gga--;0>this.gga&&(this.gga=0,b.gga=0)},isDirtySuspended:function(){return 0<this.gga},bq:function(b){var a,e,f,c;if(!b||""===b)return!1;for(e=0;e<b.length;e++)if(a=b.charAt(e),"*"===a||":"===a||"["===a||"]"===a||"?"===a||"\\"===a||"/"===a)return!1;if(f=this.parent,!f)return!0;a=f.sheets;f=a.length;for(e=0;e<f;e++)if(c=a[e],c!==this&&b===c.Cj)return!1;return!0},ad:function(b){this.Cj=b;this.Us(new B(0,0,0,0));this.vs()},Vs:function(){var a,f=r(this.Ws()).offset();return f?(f.top+=b.body.clientTop||0,f.left+=b.body.clientLeft||0):f={top:0,left:0},a=e.Yl.canvasOffset,a&&(f=a),f},ws:function(b){var a,e;b&&(this.Js=!1,a=this.Xs,a&&this.no(!1),e=c("canvas"),r(e).attr("id",b.getAttribute("id")+"_vp").html(d().NeedCanvasSupport).appendTo(b),z.Kn(e,null,this),this.Xs=e,this.fq(),this.repaint(),this.parent&&this.parent.Ys(),F.ao(this,"setHost",r(e)))},fq:function(){var b,a,e,f,c,g,k,h,p=this.Ws();p&&p.parentNode&&(b=getComputedStyle(p.parentNode),a=b.width,e=b.height,f=a.indexOf("px"),0<f&&(a=a.substring(0,f)),f=e.indexOf("px"),0<f&&(e=e.substring(0,f)),c=v(a),g=v(e),S(c)&&(c=r(p.parentNode).width()),S(g)&&(g=r(p.parentNode).height()),0!==c&&0!==g&&(k=Y(c,0),h=Y(g,0),p.style.display="none",p.style.display="",p.width=k,p.height=h,p.style.width=k+"px",p.style.height=h+"px",k=p.clientWidth||p.width,h=p.clientHeight||p.height,this.Zs.width=k,this.Zs.height=h,z.Pn(p,k,h),this.invalidateLayout()))},no:function(b){var a,e,f;z.Sn(this);this.isEditing&&this.isEditing()&&this.endEdit();F.ao(this,"dispose",b);(a=this.Xs)&&(e=a.parentNode,e&&e.removeChild(a),this.Xs=null);this.$s();this._s();!1!==b&&(this.Js=!0,f=this.at,f&&f.no(),this.parent=null,this.ys=null,this.zs=null,this.As=null,this.Bs=null,this.Cs=null,this.Ds=null,this.Es=null,this.Fs=null,this.Gs=null,this.Hs=null,this.ss=null,this.bt&&(this.bt.no(),this.bt=null),M.Wl(this)&&M.Zl(null,!0))},_s:function(){var b=this.ct;b&&(r(b).remove(),this.ct=void 0)},$s:function(){var b=this.dt;b&&(r(b).remove(),this.dt=void 0)},Mp:function(b){return 3===b||h(b)?this.ys:2===b?this.zs:1===b?this.As:null},iq:function(b){return 1===b||0===b?this.Ds:this.Bs},nq:function(b){return 2===b||0===b?this.Es:this.Cs},vq:function(b,a,e,f){var c,g,k,p,m,d;return h(f)&&(f=3),c=3===f,g=null,c&&(k=this.tables,k&&(p=k.find(a,e),p&&(g=k.ge(a,e),g=g.gt?g.Qb:null))),h(g)&&(m=this.wq,d=null,m&&m.Ou&&c&&(d=m.getValue(a,e)),g=d&&d.hasBinding?d.value:b.getValue(a,e)),J(g)},Tq:function(b,a){var e,f,c,g,k;return h(a)&&(a=3),e=m(-1,-1,-1,-1),b&&(f=b.row,c=b.col,g=b.rowCount,k=b.colCount,-1===c&&(c=0,k=this.getColumnCount(a)),-1===f&&(f=0,g=this.getRowCount(a)),e.col=c,e.row=f,e.colCount=k,e.rowCount=g),e},getRangeRect:function(b,a,e){function f(b,a){for(;b>a&&(b--,!C.getColumnVisible(b)););return b}function c(b,a){for(;b<a&&(b++,!C.getColumnVisible(b)););return b}function g(b,a){for(;b>a&&(b--,!C.getRowVisible(b)););return b}function k(b,a){for(;b<a&&(b++,!C.getRowVisible(b)););return b}var h,p,m,d,v,n,t,x,q,y,l,w,N,r,z=new B(-1,-1,-1,-1),C=this,E=C.am();if(0===E.width||0===E.height||(h=C.it(a),p=C.jt(b),!h||0===h.length||!p||0===p.length))return z;m=C.Tq(e);e=C.ss;d=m.row;v=m.row+m.rowCount-1;n=m.col;m=m.col+m.colCount-1;t=C.frozenRowCount();x=I(C)-C.frozenTrailingRowCount()-1;q=C.frozenColumnCount();y=H(C)-C.frozenTrailingColumnCount()-1;l=h[0].col;w=h[h.length-1].col;N=p[0].row;r=p[p.length-1].row;return n<l&&(n=f(l,n)),m>w&&(m=c(w,m)),d<N&&(d=g(N,d)),v>r&&(v=k(r,v)),m<n||v<d?z:(0===a?n<q&&(z.x=E.kt+K(e,0,n-1),z.width=K(e,n,m)):1===a?n<=y&&m>=q&&(n<l?z.x=h[0].x-K(e,n,l-1):z.x=h[0].x+K(e,l,n-1),z.width=K(e,n,m)):2===a&&m>y&&(n<l?z.x=E.lt-K(e,n,l-1):z.x=E.lt+K(e,l,n-1),z.width=K(e,n,m)),0===b?d<t&&(z.y=E.nt+O(e,0,d-1),z.height=O(e,d,v)):1===b?d<=x&&v>=t&&(d<N?z.y=p[0].y-O(e,d,N-1):z.y=p[0].y+O(e,N,d-1),z.height=O(e,d,v)):2===b&&v>x&&(d<N?z.y=E.ot-O(e,d,N-1):z.y=E.ot+O(e,N,d-1),z.height=O(e,d,v)),z)},cm:function(b){var a,e,f,c,g,k,h,p,m,d,v,n,t,x=new B(-1,-1,-1,-1),q=this.am();if(0===q.width||0===q.height)return x;if(a=this.Tq(b),e=this.frozenColumnCount(),b=this.frozenRowCount(),f=this.frozenTrailingColumnCount(),c=this.frozenTrailingRowCount(),g=this.ss,k=a.row,h=a.row+a.rowCount-1,p=a.col,m=a.col+a.colCount-1,d=I(this),v=H(this),p<e)x.x=q.kt+K(g,0,p-1),x.width=K(g,p,X(m,e-1)),e<=m&&m<v-f?(n=this.it(1),n&&0<n.length&&(x.width+=K(g,n[0].col,X(m,n[n.length-1].col)))):m>=v-f&&(n=this.it(2),n&&0<n.length&&(x.width=n[0].x-x.x,x.width+=K(g,v-f,X(m,v-1))));else if(p<v-f){if(n=this.it(1),!n||0===n.length||p>n[n.length-1].col||m<n[0].col)return x;x.x=q.pt+K(g,n[0].col,p-1);e<=m&&m<v-f?x.width=K(g,Y(p,n[0].col),X(m,n[n.length-1].col)):m>=v-f&&(n=this.it(2),n&&0<n.length&&(x.width=n[0].x-x.x,x.width+=K(g,v-f,X(m,v-1))))}else p<v&&(n=this.it(2),n&&0<n.length&&(x.x=q.lt+K(g,n[0].col,p-1),x.width=K(g,p,X(m,v-1))));if(k<b)x.y=q.nt+O(g,0,k-1),x.height=O(g,k,X(h,b-1)),b<=h&&h<d-c?(t=this.jt(1),t&&0<t.length&&(x.height+=O(g,t[0].row,X(h,t[t.length-1].row)))):h>=d-c&&(t=this.jt(2),t&&0<t.length&&(x.height=t[0].y-x.y,x.height+=O(g,d-c,X(h,d-1))));else if(k<d-c){if(t=this.jt(1),!t||0===t.length||k>t[t.length-1].row||h<t[0].row)return x;x.y=q.qt+O(g,t[0].row,k-1);b<=h&&h<d-c?x.height=O(g,Y(k,t[0].row),X(h,t[t.length-1].row)):h>=d-c&&(t=this.jt(2),t&&0<t.length&&(x.height=t[0].y-x.y,x.height+=O(g,d-c,X(h,d-1))))}else k<d&&(t=this.jt(2),t&&0<t.length&&(x.y=q.ot+O(g,t[0].row,k-1),x.height+=O(g,k,X(h,d-1))));return x},Ws:function(){return this.Xs},rt:function(b,a){return this.dp(b,a)+1},dp:function(b,a){var e="",f=this.yl;return e=a?a:f.Cl(f.Bl()),G.Vn.Xn(b,e)},fp:function(b,a){var e,f,c,g=this.st;if(!a)if(g){if(e=g[b])return e}else g=this.st={};return f=this.tt(),f.style.font=b||this.yl.Bl(),f.innerHTML="H",c=f.offsetHeight,a||(g[b]=c),c},tt:function(){if(!this.ct){var a=c("span"),e=a.style;e.visibility="hidden";e.top="-10000px";e.left="-10000px";e.position="absolute";a.setAttribute("gcUIElement","gcStringWidthSpan");b.body.insertBefore(a,null);this.ct=a}return this.ct},or:function(b){var a=this.am(),e=null;return a.zr<b&&b<a.zr+a.Br?e=-1:a.kt<b&&b<a.kt+a.hs?e=0:a.pt<b&&b<a.pt+a.er?e=1:a.lt<b&&b<a.lt+a.js&&(e=2),e},nr:function(b){var a=this.am(),e=null;return a.Ar<b&&b<a.Ar+a.Cr?e=-1:a.nt<b&&b<a.nt+a.fs?e=0:a.qt<b&&b<a.qt+a.jr?e=1:a.ot<b&&b<a.ot+a.gs&&(e=2),e},pr:function(b,a){var e,f=null;if(f=-1===a?this.ut():this.jt(a),f&&(e=f.findY(b)))return e.row},qr:function(b,a){var e,f=null;if(f=-1===a?this.vt():this.it(a),f&&(e=f.findX(b)))return e.col},wt:function(b,a){return this.Jl<=b&&b<this.Jl+this.Lr&&this.Kl<=a&&a<this.Kl+this.Mr},sp:function(b){var a=this.Uq;return!!a&&a.sp(b)},tp:function(b){var a=this.Uq;return!!a&&a.tp(b)},vp:function(b,a,e,f){var c,g,k=this.Uq;return!!k&&(c=I(this),g=H(this),k.vp(b,a,e,c,g,f))},wp:function(b,a,e){var f,c,g=this.Uq;return!!g&&(f=I(this),c=H(this),g.wp(b,a,e,f,c))},xt:function(b,a,e){var f,c,g,k,p,m;if((m=this.yt)&&!m.resizeInfo&&!h(e)){if(k=m.hitTestType,p=m.row,m=m.col,1===e)return f=!1,c=this.zl(1).find(p,m),c&&(f=c.contains(b,a,1,1)),g=b===p&&a===m||f,k===e&&g;if(2===e)return f=!1,c=this.zl(2).find(p,m),c&&(f=c.contains(b,a,1,1)),g=b===p&&a===m||f,k===e&&g;if(3===e)return k===e&&b===p&&a===m;if(0===e)return k===e}return!1},xq:function(b){for(var a,e="";0<b;b=parseInt((b-1)/26),10)a=(b-1)%26,e=String.fromCharCode(65+a)+e;return e},sr:function(b,a){return 0<=b&&2>=b&&0<=a?3:0<=b&&2>=b&&0>a?2:0>b&&0<=a?1:0>b&&0>a?0:null},zt:function(b){var a=this.mm;a&&a.zt(b)},zo:function(){var b,a=this.parent,a=a&&a.qo;return a||(b=this.Xs,a=b&&b.parentElement),a},Pp:function(){this.Kl=this.Jl=0;this.Mr=this.Lr=1;this.Rr=this.Qr=0},Sl:function(b,a){var e=this.getRowHeight(b,a),f=this._zoomFactor;return 1!==f&&(e*=f),ka(e)},Tl:function(b,a){var e=this.getColumnWidth(b,a),f=this._zoomFactor;return 1!==f&&(e*=f),ka(e)},At:function(){var b,a,e,f,c,g,k,h=this.Dr();a=this.options;var p=a.borderWidth,m=new B(h.x+p,h.y+p,Y(0,h.width-2*p),Y(0,h.height-2*p)),h=m.width,p=m.height,m={x:m.x,y:m.y,width:m.width,height:m.height,Br:0,Cr:0,hs:0,fs:0,js:0,gs:0,Bt:0,Ct:0,Dt:0,Et:0,kt:0,nt:0,lt:0,ot:0,pt:0,qt:0,jr:0,er:0,zr:0,Ar:0,em:function(){return new B(this.x,this.y,this.Br,this.Cr)},gm:function(b){return 0===b?new B(this.kt,this.y,this.hs,this.Cr):1===b?new B(this.pt,this.y,this.er,this.Cr):2===b?new B(this.lt,this.y,this.js,this.Cr):null},fm:function(b){return 0===b?new B(this.x,this.nt,this.Br,this.fs):1===b?new B(this.x,this.qt,this.Br,this.jr):2===b?new B(this.x,this.ot,this.Br,this.gs):null},Ft:function(b,a){if(0===b){if(0===a)return new B(this.kt,this.nt,this.hs,this.fs);if(1===a)return new B(this.pt,this.nt,this.er,this.fs);if(2===a)return new B(this.lt,this.nt,this.js,this.fs)}else if(1===b){if(0===a)return new B(this.kt,this.qt,this.hs,this.jr);if(1===a)return new B(this.pt,this.qt,this.er,this.jr);if(2===a)return new B(this.lt,this.qt,this.js,this.jr)}else if(2===b){if(0===a)return new B(this.kt,this.ot,this.hs,this.gs);if(1===a)return new B(this.pt,this.ot,this.er,this.gs);if(2===a)return new B(this.lt,this.ot,this.js,this.gs)}return null}};if(this.Gt&&(b=this.Gt(),m.x+=b.width,m.y+=b.height,h-=b.width,p-=b.height),a.rowHeaderVisible)for(e=this.getColumnCount(2),b=0;b<e;b++)m.Br+=this.Tl(b,2);if(a.colHeaderVisible)for(b=this.getRowCount(1),a=0;a<b;a++)m.Cr+=this.Sl(a,1);if(f=this.frozenColumnCount(),0<f)for(e=H(this),b=0;b<f&&b<e;b++)this.getColumnVisible(b)&&(m.hs+=this.Tl(b));if(c=this.frozenRowCount(),0<c)for(b=I(this),a=0;a<c&&a<b;a++)this.getRowVisible(a)&&(m.fs+=this.Sl(a));if(g=this.frozenTrailingColumnCount(),0<g)for(e=H(this),b=Y(f,e-g);b<e;b++)m.js+=this.Tl(b);if(k=this.frozenTrailingRowCount(),0<k)for(b=I(this),a=Y(c,b-k);a<b;a++)m.gs+=this.Sl(a);return h-=m.Br,p-=m.Cr,h-=m.hs,p-=m.fs,h-=m.js,p-=m.gs,p-=m.Bt,m.er=Y(0,h),m.jr=Y(0,p),m.zr=m.x,m.Ar=m.y,m.kt=m.zr+m.Br,m.nt=m.Ar+m.Cr,m.pt=m.kt+m.hs,m.qt=m.nt+m.fs,m.lt=m.pt+m.er,m.ot=m.qt+m.jr,m.Dt=m.zr,m.Et=m.y+m.height-m.Bt,m},am:function(){return this._r||(this._r=this.At()),this._r},Hr:function(b,a){return h(a)||3===a||1===a?this.it(b):2===a?this.vt():null},vt:function(){return this.bs.rowHeader||(this.bs.rowHeader=this.Ht()),this.bs.rowHeader},it:function(b){return this.bs.viewport||(this.bs.viewport={}),this.bs.viewport[b]||(this.bs.viewport[b]=this.It(b)),this.bs.viewport[b]},Ht:function(){var b,a,e=new x,f=this.am().zr,c=this.getColumnCount(2);for(a=0;a<c;a++)b=this.Tl(a,2),e.push(new k(-1,a,f,-1,b,-1)),f+=b;return e},It:function(b){var a,e,f,c=new x;f=this.am();var g=H(this),h=this.ss;a=this.frozenColumnCount();e=this.frozenTrailingColumnCount();if(0===b)for(b=f.kt,g=X(a,g),a=0;a<g;a++)e=h._m(a),c.push(new k(-1,a,b,-1,e,-1)),b+=e;else if(1===b)for(b=f.pt,g-=e,f=f.er,a=Y(a,this.qq);0<f&&a<g;a++)e=h._m(a),c.push(new k(-1,a,b,-1,e,-1)),b+=e,f-=e;else if(2===b)for(b=f.lt,a=Y(a,g-e);a<g;a++)e=h._m(a),c.push(new k(-1,a,b,-1,e,-1)),b+=e;return c},Gr:function(b,a){return h(a)||3===a||2===a?this.jt(b):1===a?this.ut():null},Jt:function(b){var a,e,f=new x;for(a=0;3>a;a++)(e=this.Gr(a,b))&&0<e.length&&(f=r.merge(f,e));return f},Kt:function(b){var a,e,f=new x;for(a=0;3>a;a++)(e=this.Hr(a,b))&&0<e.length&&(f=r.merge(f,e));return f},ut:function(){return this.as.colHeader||(this.as.colHeader=this.Lt()),this.as.colHeader},jt:function(b){return this.as.viewport||(this.as.viewport={}),this.as.viewport[b]||(this.as.viewport[b]=this.Mt(b)),this.as.viewport[b]},Lt:function(){var b,a,e=new x,f=this.am().Ar,c=this.getRowCount(1);for(a=0;a<c;a++)b=this.Sl(a,1),e.push(new k(a,-1,-1,f,-1,b)),f+=b;return e},Mt:function(b){var a,e,f,c=new x;a=this.frozenRowCount();f=this.frozenTrailingRowCount();e=this.am();var g=I(this),h=this.ss;if(0===b)for(b=e.nt,g=X(a,g),a=0;a<g;a++)e=h.Sl(a),c.push(new k(a,-1,-1,b,-1,e)),b+=e;else if(1===b)for(b=e.qt,g-=f,f=e.jr,a=Y(a,this.lq);0<f&&a<g;a++)e=h.Sl(a),c.push(new k(a,-1,-1,b,-1,e)),b+=e,f-=e;else if(2===b)for(b=e.ot,a=Y(a,g-f);a<g;a++)e=h.Sl(a),c.push(new k(a,-1,-1,b,-1,e)),b+=e;return c},Ir:function(b,a,e){var f,c,g,k,h,p=this.getRowCount(e),d=this.getColumnCount(e);b=this.Gr(b,e);a=this.Hr(a,e);var v=new x;return b&&0<b.length&&a&&0<a.length&&(f=b[0].row,c=a[0].col,g=b[b.length-1].row,k=a[a.length-1].col,h=this.getSpans(m(f,c,g-f+1,k-c+1),e),h&&0<h.length&&this.Nt(h,f,c,g,k,v,p,d,e,b,a)),v},rr:function(b,a,e,f,c){var g,k,h,p,m=this.getRowCount(e),d=this.getColumnCount(e);b=this.Gr(b,e);a=this.Hr(a,e);var v=new x;return b&&0<b.length&&a&&0<a.length?(g=b[0].row,k=a[0].col,h=this.getSpan(f,c,e),h&&(p=[],p.push(h),this.Nt(p,g,k,h.row+h.rowCount,h.col+h.colCount,v,m,d,e,b,a)),0<v.length?v[0]:null):null},Nt:function(b,a,e,f,c,g,h,p,m,d,v){var n,t,x,q,y,l,B,w,N,r,z,C,E,S,P,A=b.length;if(!(0>=A)){t=f+1;x=c+1;q=[];y=[];l=[];B=[];N=w=0;for(n=a-1;0<=n;n--)q[n]=this.Sl(n,m),N-=q[n],B[n]=N;N=0;for(n=a;n<t;n++)B[n]=N,q[n]=this.Sl(n,m),N+=q[n];for(n=e-1;0<=n;n--)y[n]=this.Tl(n,m),w-=y[n],l[n]=w;w=0;for(n=e;n<x;n++)l[n]=w,y[n]=this.Tl(n,m),w+=y[n];for(w=0;w<A;w++)if(r=b[w],r.intersect(a,e,f-a+1,c-e+1)){if(z=r.row+r.rowCount,z>t){for(n=t;n<z;n++)q.push(this.Sl(n,m)),B.push(B[n-1]+q[n]);t=z}if(C=r.col+r.colCount,C>x){for(n=x;n<C;n++)y.push(this.Tl(n,m)),l.push(l[n-1]+y[n]);x=C}n=l[r.col];N=B[r.row];S=E=0;for(P=r.col;P<r.col+r.colCount&&P<p;P++)E+=y[P];for(P=r.row;P<r.row+r.rowCount&&P<h;P++)S+=q[P];g.push(new k(r.row,r.col,v[0].x+n,d[0].y+N,E,S,r.rowCount,r.colCount))}}},qs:function(){var b=this.parent,a=this.Ot(this.qq);-1!==a&&a!==this.qq&&(this.qq=a);b&&b.Pt&&b.Pt.value(this.Qt(this.qq))},os:function(){var b=
- this.parent,a=this.Rt(this.lq);-1!==a&&a!==this.lq&&(this.lq=a);b&&b.St&&b.St.value(this.Tt(this.lq))},ds:function(){var b=this.parent;b&&b.Ut&&(b.options.scrollIgnoreHidden&&(this.Vt=this.Wt(!0)),b.Ut())},es:function(){var b=this.parent;b&&b.Xt&&(b.options.scrollIgnoreHidden&&(this.Yt=this.Zt(!0)),b.Xt())},$t:function(){var b=this.frozenColumnCount();return 0<b?this.Zq(b-1):this.$q()},_t:function(){var b=this.frozenRowCount();return 0<b?this._q(b-1):this.ar()},$q:function(){return this.Zq(-1)},Zq:function(b){for(var a=H(this)-1-this.frozenTrailingColumnCount();b<a;)if(b++,this.getColumnVisible(b)&&0<this.Tl(b))return b;return null},br:function(b,a){for(var e=this.frozenColumnCount();b>e;)if(b--,this.getColumnVisible(b,a)&&0<this.Tl(b,a))return b;return null},ar:function(){return this._q(-1)},_q:function(b,a){for(var e=a?I(this)-1:I(this)-1-this.frozenTrailingRowCount();b<e;)if(b++,this.getRowVisible(b)&&0<this.Sl(b))return b;return null},gr:function(b,a,e){for(e=e?0:this.frozenRowCount();b>e;)if(b--,this.getRowVisible(b,a)&&0<this.Sl(b,a))return b;return null},au:function(){var b=this.parent;b&&b.options.scrollIgnoreHidden&&(this.jq=!0);this.os()},bu:function(){var b=this.parent;b&&b.options.scrollIgnoreHidden&&(this.oq=!0);this.qs()},Tt:function(b){var a,e=this.parent;return e&&e.options.scrollIgnoreHidden?(a=this.Zt().visibleIndex,a[b]):b},cu:function(b){var a,e=this.parent;return e&&e.options.scrollIgnoreHidden?(a=this.Zt().originalIndex,a[b]):b},Qt:function(b){var a,e=this.parent;return e&&e.options.scrollIgnoreHidden?(a=this.Wt().visibleIndex,a[b]):b},du:function(b){var a,e=this.parent;return e&&e.options.scrollIgnoreHidden?(a=this.Wt().originalIndex,a[b]):b},Wt:function(b){var a,e,f,c,g;if(this.Vt&&!b)return this.Vt;if(a=this.frozenColumnCount(),e=H(this)-this.frozenTrailingColumnCount()-a,f=a+e-1,b=this.ss,c={visibleIndex:{},originalIndex:{}},0>=f-a+1)return c;e=0;for(g=a;g<=f;g++)c.originalIndex[e]=g,c.visibleIndex[g]=e,0<b._m(g)&&e++;g--;for(e--;0>=b._m(g)&&g>=a;)c.originalIndex[e]=g,c.visibleIndex[g]=e,g--;return c},Zt:function(b){var a,e,f,c,g;if(this.Yt&&!b)return this.Yt;if(a=this.frozenRowCount(),e=I(this)-this.frozenTrailingRowCount()-a,f=a+e-1,b=this.ss,c={visibleIndex:{},originalIndex:{}},0>=f-a+1)return c;e=0;for(g=a;g<=f;g++)c.originalIndex[e]=g,c.visibleIndex[g]=e,0<b.Sl(g)&&e++;g--;for(e--;0>=b.Sl(g)&&g>=a;)c.originalIndex[e]=g,c.visibleIndex[g]=e,g--;return c},Rt:function(b,a){var e,f=this.frozenRowCount(),c=I(this)-this.frozenTrailingRowCount()-1;if(a){if(b>c&&(b=c),e=this.gr(b+1),null!==e&&e>=f)return e}else if(b<f&&(b=f),e=this._q(b-1),null!==e&&e<=c)return e;return-1},Ot:function(b,a){var e,f=this.frozenColumnCount(),c=H(this)-this.frozenTrailingColumnCount()-1;if(a){if(b>c&&(b=c),e=this.br(b+1),null!==e&&e>=f)return e}else if(b<f&&(b=f),e=this.Zq(b-1),null!==e&&e<=c)return e;return-1},eu:function(b,a,e){var f,c,g,k;if(e<a)return e;f=0;c=this.ss;for(g=e;g>=a;g--)if(k=c.Sl(g),!(0>=k)){if(f+=k,f>b)break;e=g}return e},fu:function(b,a,e){var f,c,g,k;if(e<a)return e;f=0;c=this.ss;for(g=e;g>=a;g--)if(k=c._m(g),!(0>=k)){if(f+=k,f>b)break;e=g}return e},gu:function(){var b,a,e,f=this.am(),c=this.Hr(1,3),g=0,k=0;if(c)for(b=0;b<c.length;b++)a=c[b].width,g+=a,0<a&&k++;return k=0===k?1:k,e=g/k,0===e?1:ka(f.er/e)},hu:function(){var b,a,e,f=this.am(),c=this.Gr(1,3),g=0,k=0;if(c)for(b=0;b<c.length;b++)a=c[b].height,g+=a,0<a&&k++;return k=0===k?1:k,e=g/k,0===e?1:ka(f.jr/e)},ns:function(b){var a,e,f,c,g,k;return h(b)&&(b=3),a=this.parent,e=this.frozenRowCount(),f=this.frozenTrailingRowCount(),a&&a.options.scrollbarMaxAlign?(c=this.am(),this.eu(c.jr,e,I(this)-f-1)):(g=this.getRowCount(b),3!==b&&2!==b||(g-=f),k=this.gr(g,b),null===k&&(k=e),k)},ps:function(b){var a,e,f,c,g;return h(b)&&(b=3),a=this.parent,e=this.frozenColumnCount(),a&&a.options.scrollbarMaxAlign?(f=this.am(),this.fu(f.er,e,H(this)-this.frozenTrailingColumnCount()-1)):(c=this.getColumnCount(b),3!==b&&1!==b||(c-=this.frozenTrailingColumnCount()),g=this.br(c,b),null===g&&(g=e),g)},iu:function(){var b,a,e,f,c,g,k,h,p=this,m=p.frozenRowCount(),d=p.frozenColumnCount(),v=I(p)-p.frozenTrailingRowCount()-1,n=H(p)-p.frozenTrailingColumnCount()-1,t=p.iq(3),x=p.nq(3);return t&&(b=t.Hp(),0<b.length&&b.length-1>m&&(m=b.length-1)),x&&(b=x.Hp(),0<b.length&&b.length-1>d&&(d=b.length-1)),a=p.Mp(),a.Ef>m&&(m=a.Ef),a.Ff>d&&(d=a.Ff),e=p.Mp(2),e.Ef>m&&(m=e.Ef),f=p.Mp(1),f.Ff>d&&(d=f.Ff),c=p.zl(),c.Ef>m&&(m=c.Ef),c.Ff>d&&(d=c.Ff),g=p.zl(2),g.Ef>m&&(m=g.Ef),k=p.zl(1),k.Ff>d&&(d=k.Ff),h=F._n,h&&W(h,function(b,a){var e,f=a.lastNonNullRowAndCol;f&&(e=f.call(p),m=Y(m,e.lastNonNullRow),d=Y(d,e.lastNonNullCol))}),m>v&&(m=v),d>n&&(d=n),{lastNonNullRow:m,lastNonNullCol:d}},mq:function(b){var a,e=this.lq;b>=this._t()&&b<=this.ns()&&b!==e&&(a=this.parent,a&&(a.ku.ju(b),this.os()),a&&!a.options.scrollbarShowMax&&this.es())},rq:function(b){var a,e=this.qq;b>=this.$t()&&b<=this.ps()&&b!==e&&(a=this.parent,a&&(a.ku.lu(b),this.qs()),a&&!a.options.scrollbarShowMax&&this.ds())},zl:function(b){return h(b)||3===b?this.Fs:1===b?this.Gs:2===b?this.Hs:void 0},yr:function(b,a,e){var f,c,g,k,p,m,d,v=b.row,n=b.col;b=b.hitTestType;return h(v)||h(n)?null:(f=this.getSpan(v,n,b),f&&(v=f.row,n=f.col),c=this.getActualStyle(v,n,b),g=1===b?-1:void 0,k=2===b?-1:void 0,p=this.getCellRect(v,n,g,k),m={sheet:this,row:v,col:n,sheetArea:b},d=c.cellType||this.Al(b),d.h5(a,e,c,p,m))},mu:function(){this.unbindAll();this.nu()},ou:function(b){var a,e,f,c,g,k,h=this.Tq(b);e=h.row;b=h.col;for(var p=e+h.rowCount,h=b+h.colCount;e<p;e++)for(f=b;f<h;f++)if(c=this.getSpan(e,f),g=c?c.row:e,k=c?c.col:f,a=this.getActualStyle(g,k),!0===a.locked)return!0;return!1},pu:function(b,a,e,f,c,g){if(-1<=b&&b<c&&-1<=a&&a<g){if(-1===b&&-1===a)return!0;if(-1===b){if(0!==f&&a+f<=g)return!0}else if(-1===a){if(0!==e&&b+e<=c)return!0}else if(0!==f&&a+f<=g&&0!==e&&b+e<=c)return!0}return!1},qu:function(b,a,e,f){var c,g,k;return!(0>b&&0>a)&&(0>b&&(c=this.zl(1),c&&0<c.length)?c.hasPartSpans(-1,a,-1,f):0>a&&(g=this.zl(2),g&&0<g.length)?g.hasPartSpans(b,-1,e,-1):(k=this.zl(),!!(k&&0<k.length)&&k.hasPartSpans(b,a,e,f)))},suspendPaint:function(){var b=this.Xq;this.Xq++;0===b&&F.ao(this,"onPaintSuspend",{suspend:!0})},resumePaint:function(){var b;this.Xq--;0>=this.Xq&&(this.Xq=0,F.ao(this,"onPaintSuspend",{suspend:!1}),b=this.parent,b&&b.getActiveSheet()!==this||this.$p())},isPaintSuspended:function(){return 0<this.Xq},su:function(b,a){var e,f,c=b&&b.length;for(e=0;e<c;e++)if(f=b[e],a.intersect(f.row,f.col,f.rowCount,f.colCount))return b.splice(e--,1),this.su(b,a.union(f));return a},tu:function(){var b=this.parent;return this.uu||(this.uu=b&&b.uu),this.uu},vu:function(){if(!this.bt){var b=this;b.bt=new q(function(){b.bt&&b.repaint()})}return this.bt},wu:function(){var b=this.parent;if(b)return b.commandManager()},Os:function(b,a){this.Wq(y.InvalidOperation,{sheet:this,sheetName:this.Cj,invalidType:b,message:a})},Bq:function(b,a,e,f,c,g){this.Wq(y.CellChanged,{sheet:this,sheetName:this.Cj,row:a,col:e,sheetArea:f,propertyName:b,oldValue:c,newValue:g})},xu:function(b,a,e,f){this.Wq(y.ValueChanged,{sheet:this,sheetName:this.Cj,row:b,col:a,oldValue:e,newValue:f})},pq:function(b,a,e,f,c){b={sheet:this,sheetName:this.Cj,col:b,sheetArea:a,propertyName:e,newValue:f,oldValue:c};"addColumns"!==e&&"deleteColumns"!==e||(b.count=f);this.Wq(y.ColumnChanged,b)},kq:function(b,a,e,f,c){b={sheet:this,sheetName:this.Cj,row:b,sheetArea:a,propertyName:e,newValue:f,oldValue:c};"addRows"!==e&&"deleteRows"!==e||(b.count=f);this.Wq(y.RowChanged,b)},yu:function(b,a){return!!this.mm.zu(b,a)&&(this.Wq(y.SelectionChanging,{sheet:this,sheetName:this.Cj,oldSelections:b,newSelections:a}),!0)},Au:function(b){this.Wq(y.SelectionChanged,{sheet:this,sheetName:this.Cj,oldSelections:b,newSelections:this.getSelections()})},Bu:function(b,a,e,f,c,g,k,h){b={sheet:this,sheetName:this.Cj,row:b,col:a,rowCount:e,colCount:f,changedCells:c,action:g};k&&(b.sheetArea=k);h&&(b.value=h);c&&0<c.length&&(this.Wq(y.RangeChanged,b),this.Wq(y.FormulatextboxRangeChanged,b))},Cu:function(b,a){this.Wq(y.EditorStatusChanged,{sheet:this,sheetName:this.Cj,oldStatus:b,newStatus:a})},Du:function(){return this.b4||(this.b4=r(c("input"))),this.b4},bind:function(b,a,e){this.Du().bind(b+".gcSheet",a,e)},unbind:function(b,a){this.Du().unbind(b+".gcSheet",a)},Wq:function(b,a){this.updateEventsData&&this.updateEventsData(b,a);0===this.jm&&this.Du().trigger(b,a)},unbindAll:function(){this.unbind(".gcSheet")},Fu:function(b,a,e){0<=b.indexOf(".")?this.bind(b,a,e):this.bind(b+".gcSheetInternal",a,e)},Gu:function(b,a){0<=b.indexOf(".")?this.unbind(b,a):this.unbind(b+".gcSheetInternal",a)},nu:function(){this.unbind(".gcSheetInternal")},Dr:function(){var b=this.Zs;return new B(b.x,b.y,b.width,b.height)},Us:function(b){this.Zs=new B(b.x,b.y,b.width,b.height)}};u.Worksheet=F;U.exports=u},function(U,u,l){function d(a,f){var c=f+1;return 0>a?a%c+c:a>f?a%c:a}function J(a,c,g,e){var b,k,h=E,h={cj:h,dj:h,ej:!0,fj:!0,gj:!1,li:0,Qia:!0},p=c?Q(a,g,e,0):R(a,0);return p.hj?(h.cj=p.ij,h.ej=p.jj):(h.dj=p.ij,h.fj=p.jj),h.li=p.li,h.gj=p.gj,!p.gj||p.li>=a.length?h:!c&&p.hj||c&&!p.hj?{gj:!1}:(b=a[h.li],!c&&(f(b)||"$"===b)||c&&("C"===b||"c"===b)?(k=c?Q(a,g,e,h.li):R(a,h.li),h.li=k.li,!k.gj||!c&&!k.hj||c&&k.hj?(h.gj=!1,h):(h.li<a.length&&(h.Qia=!1),c?(h.dj=k.ij,h.fj=k.jj):(h.cj=k.ij,h.ej=k.jj),h.gj=!0,h)):{gj:!1})}function R(a,c){var g,e,b,h,p,m={li:c,ij:E,hj:!0,jj:!0,gj:!1};p=a.length;if(c>=p||("$"===a[c]&&(m.jj=!1,c++),c>=p))return m;if(g=c,b=a[g],f(b)&&"0"!==b){for(m.hj=!0;g<p&&f(b);)g++,g<p&&(b=a[g]);if(e=parseInt(a.slice(c,g).join(""),10),e<=y)return m.ij=e-1,m.li=g,m.gj=!0,m}else if(k(b)){for(m.hj=!1;g<p&&k(b);)g++,g<p&&(b=a[g]);if(h=a.slice(c,g).join(""),3<h.length)return m;h=h.toUpperCase();e=0;for(p=b=h.length-1;0<=p;p--)e+=(h.charCodeAt(p)-65+1)*M[b-p];if(e<=t)return m.ij=e-1,m.li=g,m.gj=!0,m}return m}function Q(a,c,g,e){var b,k,h,p={endIndex:e,elementIndex:E,isRow:!0,isRelative:!1,success:!1},m=a.length;if(e>=m)return p;if(b=e,k=a[b],"R"===k||"r"===k)p.hj=!0;else{if("C"!==k&&"c"!==k)return p;p.hj=!1;c=g}if(e++,b++,e>=m)return p.li=e,p.ij=c,p.jj=!0,p.gj=!0,p;if((k=a[b],"["===k&&(e++,b++,p.jj=!0),e>=m)||(h=!1,k=a[b],p.jj&&"-"===k&&(e++,b++,h=!0),e>=m))return p;if(k=a[b],!f(k))return p.jj?p:(p.li=e,p.ij=c,p.jj=!0,p.gj=!0,p);for(;b<m&&f(k);)b++,b<m&&(k=a[b]);if(e=parseInt(a.slice(e,b).join(""),10),p.jj){if(b>=m||"]"!==a[b])return p;b++}return e<(p.hj?y:t)?(p.jj?(e=h?-e:e,p.ij=e+c):p.ij=e-1,p.li=b,p.gj=!0,p):void 0}function K(a,f,c,e,b,g,k,p,m){var v,n;if(m=m||0,v=y-1,(0===m||1===m)&&e>-v&&e<=2*v&&(e+=g?f:0,e=d(e,v)),n=t-1,(0===m||2===m)&&b>-n&&b<=2*n&&(b+=k?c:0,b=d(b,n)),!(3===m||0<=e&&0<=b||1===m&&0<=e||2===m&&0<=b))return void p.push(""+h.Errors.Reference);if(a)(p.push("R"),0<=e&&(f!==e||!g)&&(g?p.push("["+(e-f)+"]"):(e++,p.push(e+""))),0>b)||(p.push("C"),c===b&&k||(k?p.push("["+(b-c)+"]"):(b++,p.push(b+""))));else{if(0<=b){k||p.push("$");a=b;f=1;for(c=M.length;f<c;f++)k=M[c-f],b=parseInt(a/k,10),a%=k,0!==b&&p.push(String.fromCharCode(b+65-1));p.push(String.fromCharCode(a+65))}0>e||(e++,g||p.push("$"),p.push(e+""))}}function O(a,f){var c,e;if(!a||0===a.length)return!0;if(!f){if(h.isNumber(a[0]))return!1;e=J(a,!1,0,0);if(c=(e.gj||(e=J(a,!0,0,0)),e),c.gj&&c.li<=a.length)return!1}for(e=0;e<a.length;e++)if(c=a[e],f){if("*"===c||":"===c||"["===c||"]"===c||"?"===c||"\\"===c||"/"===c)return!1}else if(" "===c||"'"===c||"["===c||"]"===c||"?"===c||"\\"===c||"%"===c||'"'===c||"("===c||")"===c||h.operaterTypesMap[c])return!1;return!0}function H(a,f){var c,e;if(!a||0===a.length)return!0;for(e=0;e<a.length;e++)if(c=a[e],f){if("*"===c||":"===c||"["===c||"]"===c||"?"===c||"'"===c&&(0===e||e>=a.length-1||"'"!==a.charAt(e+1)))return!1}else if("'"===c||"["===c||"]"===c||"?"===c||"%"===c||h.operaterTypesMap[c])return!1;return!0}function I(a,f){var c,e,b;return!!h.isDigit(a[0])||(c=[],e=a,"["===a[0]&&(b=a.lastIndexOf("]"),0<b&&(c=a.slice(1,b),e=a.slice(b+1))),!H(c)||!O(e,f,!1))}function L(a,f,c){var e,b,g;if(f&&F(f,c)){c=[];e=0;for(b=f.length;e<b;e++)"'"===f[e]&&e<b-1&&"'"!==f[e+1]||c.push(f[e]);return f=c,g=a.lj.getColumnIndexInTable(f.join("")),0>g&&D(),g}return-1}function F(a,f){var c,e,b;if(f)return!0;if(c="",c=a[0],e=c,"#"===c||" "===c||"@"===c||" "===c||","===c||":"===c||"["===c||"]"===c)return!1;for(b=1;b<a.length;b++){if(c=a[b]," "===c||","===c||":"===c||"["===c&&"'"!==e||"]"===c&&"'"!==e||"@"===c&&"'"!==e||"#"===c&&"'"!==e)return!1;e=c}return!0}function G(a){var f,c,e=[];for(f=0;f<a.length;f++)c=a[f],"["!==c&&"]"!==c&&"@"!==c&&"#"!==c&&"'"!==c||e.push("'"),e.push(c);return e}function q(a,f,c,e){var b,g=!1;if("["===c)for(g=!0,e++,f++,c=a[f];" "===c;)f++,c=a[f];for(b=f;"]"!==c&&(","!==c||1<e);)"'"===c&&f++,f++,c=a[f];f<=b&&D();a=a.slice(b,f);1<e&&e--;if(!g){g=a;a=0;b=g.length;for(var k;a<b&&" "===g[a];)a++;k=a;for(a=b-1;a>k&&" "===g[a];)a++;a=a>=k?g.slice(k,a+1):g}return{xj:a,tj:f,uj:c,wj:e}}function D(){throw a.C(h.SR)().Exp_FormulaInvalid;}function A(a,f,c){switch(a){case 1:return c?"[#This Row]":"@";case 2:return f?"[#Headers]":"#Headers";case 3:return f?"[#Data]":"#Data";case 8:return f?"[#Totals]":"#Totals";case 6:return"[#Headers], [#Data]";case 12:return"[#Data], [#Totals]"}return f?"[#All]":"#All"}function r(a){return 1===a.Nc&&"ARRAY"===a.ni?1:0===a.Nc&&3===a.hi?a.ni.length+2:0===a.Nc&&12===a.hi?a.ni.length+3:a.ni.length}function n(a,f,c){var e,b;a&&f&&(e=f.getName(),b=a[e],b||(b=a[e]=[],a.sheets||(a.sheets=[]),a.sheets.push(e)),b.push(c))}function w(a,f,c,e,b,g){var k;if(a){for(;10===a.type;)a=a.value;if(!(12===a.type&&(k=a,a=k.value),2<=a.type&&6>=a.type))if(1===a.type)b=a.getRange(b,g),!e.source||a.source&&a.source!==e.source||f.push(b),n(c,a.source||e.source,b);else if(13===a.type)b=a.getRange(b,g),a.source()===e.source&&b&&f.push(b),n(c,a.source()||e.source,b);else if(8===a.type)k=null,a.source?a.source.Cf()&&(k=new h.EvaluateContext(a.source,!1,h.pf(b,g))):k=e,w(k.getName(a.value),f,c,k,b,g);else if(9===a.type)w(a.value,f,c,e,b,g),a.value2&&w(a.value2,f,c,e,b,g);else if(7===a.type)for(k=0;k<a.arguments.length;k++)w(a.arguments[k],f,c,e,b,g)}}var z,C,c,m,h=l(33),a=l(26),B=a.j.G;u=a.j.Ia;var y=h.maxRowCount=1048576,t=h.maxColumnCount=16384,E=h.BAND_INDEX_CONST,M=[1,26,676],p=["#all","#data","#headers","#totals","#this row"],g=h.Expression,f=h.isNumber,k=h.ei,x=h.FormulaToken,W=h.Errors.Reference;z=h.ErrorSource=function(a){function f(f){a.call(this,null);this.u4=f}B(f,a);return f}(h.CalcSource);u(z.prototype,{startCalculation:function(){},endCalculation:function(){},getValue:function(){return W},getReference:function(){(new h.CalcReference(self,[h.pf(0,0)])).getValue=function(){return W}},referenceToArray:function(){var a=[W];return a.isError=!0,a},getName:function(){return this.u4},setValue:function(){}});h.jja=O;U=h.SheetReferenceResolver=function(a){this.kj=a;this.priority=8E3};B(U,h.TokenResolver);u(U.prototype,{resolveToken:function(a,f,c,e){var b,k,p,m,d,n,t,x,q,y,l,B=a.useR1C1,w=a.row,r=a.column,C=c.length;f=c[e];var A=f.ni,M=function(){!a.ignoreError&&D();var b=new h.Expression(8);return b.value=A,b};if(0===f.Nc&&0===f.hi&&e<C-2&&":"===c[e+1].ni&&12===c[e+2].hi&&0>c[e+2].ni.indexOf(":")||0===f.Nc&&12===f.hi){if(A&&(0<A.indexOf(":")?(d=A.indexOf(":"),p=A.substring(1,d-1),m=A.substring(d+1,A.length-2)):(p=A,"'"===p.charAt(0)&&(p=p.substring(1,p.length-1)),0===f.hi&&(m=c[e+2].ni))),b=A?a.getExternalSource("",p):h.BangSource,b=b||new z(p),e++,m&&(k=a.getExternalSource("",m),k=k||new z(m),e+=2),f=c[e],!f)return M();A=f.ni}if(p=e===C-1?null:c[e+1],(m=function(b,a,e,f,c){return 0===a.Nc&&0===a.hi||!f&&0===a.Nc&&4===a.hi&&(!c||e<b.length-2&&":"===b[e+1].ni&&0===b[e+2].Nc&&4===b[e+2].hi)})(c,f,e,B,!0)){if(n=J(f.Qb,B,w,r),!n.gj&&!b)return!1;if(f.hi=7,n.gj&&n.Qia)return t=n.cj,x=n.dj,q=n.ej,y=n.fj,e<C-2&&5===p.Nc&&":"===p.ni&&(p=c[e+2],m(c,p,e+2,B,!1)&&(l=J(p.Qb,B,w,r),l.gj&&t===E==(l.cj===E)&&x===E==(l.dj===E)))?(w=t===E?0:w,r=x===E?0:r,{index:e+3,expr:h.uf(b,k,t-(q?w:0),x-(y?r:0),l.cj-(l.ej?w:0),l.dj-(l.fj?r:0),q,y,l.ej,l.fj)}):t===E||x===E?B?(t-=t!==E&&q?w:0,x-=x!==E&&y?r:0,{index:e+3,expr:h.uf(b,k,t,x,t,x,q,y,q,y)}):b&&M()||!1:{index:e+1,expr:h.rf(b,k,t-(q?w:0),x-(y?r:0),q,y)};c=new g(8);c.value=f.ni}else{if(6!==f.hi)return!!b&&M();c=new h.Expression(5);c.value=h.CalcError.parse(f.ni)}return b&&(c.source=b),k&&(c.endSource=k),{index:e+1,expr:c}},unparse:function(a,f,c,e){if(f=1===c.type||8===c.type){f=a.row;var b=a.column;if(c.source===h.BangSource)e.push("!");else if(c.source){var g=c.source,k=c.endSource;if(a.getExternalSourceToken){if(g!==h.BangSource){var g=a.getExternalSourceToken(g).split(""),k=k&&a.getExternalSourceToken(k).split(""),p,m;if(g&&0!==g.length){if(p=g,I(g,!1)||k&&I(k,!1)){p=["'"];for(m=0;m<g.length;m++)"'"===g[m]&&p.push("'"),p.push(g[m]);if(k)for(p.push(":"),m=0;m<k.length;m++)"'"===k[m]&&p.push("'"),p.push(k[m]);p.push("'")}if(k)for(p.push(":"),m=0;m<k.length;m++)p.push(k[m]);g=p}else g=[];e.push.apply(e,g)}e.push("!")}}if(8===c.type)e.push(c.value);else if(c.value&&c._error)e.push(""+c.value);else if(c.sf)K(a.useR1C1,f,b,c.row,c.column,c.rowRelative,c.columnRelative,e);else{a=a.useR1C1;g=c.row;k=c.column;p=c.endRow;m=c.endColumn;var d=c.endRowRelative,n=c.endColumnRelative,t=c.tf(),t=t||0;K(a,f,b,g,k,c.rowRelative,c.columnRelative,e,t);c=E;(!a||g!==p||k!==m||p!==c&&m!==c)&&(p===c&&m===c||(e.push(":"),K(a,f,b,p,m,d,n,e,t)))}f=!0}return f}});h.StructReferencePortions={ThisRow:1,Headers:2,Data:3,Totals:8,HeadersAndData:6,DataAndTotals:12,All:14,NotSpecific:16};h.StructReferenceColumnSpecifier={All:1,NotSpecific:1,SingleColumn:2,ColumnRange:4};C=function(){var a=new g(13);return a.tableName=function(){return this.lj.tableName()},a.baseTable=function(){return this.lj},a.mj=function(){this.nj=this.lj.startColumn()},a.columnReferenceStart=function(){return this.oj+this.lj.startColumn()},a.columnReferenceEnd=function(){return this.pj+this.lj.startColumn()},a.referencePortions=function(){return this.qj},a.referenceColumnSpecifier=function(){return this.rj},a.source=function(){return this.lj.source()},a.getRange=function(a,f,e){var b,c,g,k,p,m,d;b=this.lj;switch(this.mj(),f=b.startRow(),m=b.endRow(),d=b.hasTotalsRow(),b=b.hasHeadersRow(),this.qj){case 3:case 16:b=b?f+1:f;a=d?m-1:m;break;case 2:if(b)a=b=f;else{if(!e)return null;b=f-1;a=f-1}break;case 8:if(d)a=b=m;else{if(!e)return null;b=m+1;a=m+1}break;case 1:b=a;break;case 6:b=f+(e&&!b?-1:0);a=d?m-1:m;break;case 12:b=b?f+1:f;a=m+(e&&!d?1:0);break;default:b=f+(e&&!b?-1:0),a=m+(e&&!d?1:0)}return c=this.columnReferenceStart(),g=this.columnReferenceEnd(),a<b||!e&&b<f||!e&&a>m?null:(k=a-b+1,p=g-c+1,h.qf(b,c,k,p))},a.offsetWhenInsertRemoveColumn=function(a,f,e){var b,c,g=this.nj;return a<g||a===g&&e||a>this.pj+g?this:(f=e?f:-f,b=a-g,c=C(),c.lj=this.lj,c.pj=this.pj+f,c.oj=this.oj,a<=g+this.oj&&(c.oj+=f,c.oj<b&&(c.oj=b)),c.rj=this.rj,c.qj=this.qj,c.pj<c.oj?h.Ih:c)},a.offsetWhenCopy=function(a,f){var e,b=C();return b.lj=this.lj,b.pj=this.pj,b.oj=this.oj,2===this.rj&&f&&(e=this.lj.endColumn()-this.lj.startColumn()+1,f%=e,b.oj+=f,0>b.oj&&(b.oj+=e),b.pj=b.oj),b.rj=this.rj,b.qj=this.qj,b},a.offset=function(){var a=C();return a.lj=this.lj,a.qj=this.qj,a.oj=this.oj,a.pj=this.pj,a.rj=this.rj,a},a};c=h.StructureReferenceResolver=function(a){h.TokenResolver.call(this);this.kj=a;this.priority=7900};B(c,h.TokenResolver);u(c.prototype,{resolveToken:function(a,f,g,e){var b;f=g[e];if(0===f.Nc&&0===f.hi)if(f=f.ni,"]"===f.charAt(f.length-1))try{b=C();var k=f.split(""),h,d,n,t,x,y,l,B;f=0;var w=k[f],r;g=f;e=w;for(var z,E=null,A=0,M=k.length;"["!==e&&g<M;)g++,e=k[g];r=(A=g,0<A?(z=k.slice(0,A).join(""),E=a.getTableByName(z)):E=a.getTableByIndex(a.row,a.column),{sj:E,tj:g,uj:e});var P=r.sj;P||D();b.lj=P;f=r.tj;w=r.uj;f++;w=k[f];for(h=f;" "===w;)f++,w=k[f];"@"!==w&&"["!==w&&(f=h,w=k[f]);d=1;t=n=!1;for(x=k.length;0!==d&&f<x;)if("["===w&&(d++,f++,w=k[f]),"#"===w){n&&1>=d&&D();a=k;h=f;z=w;for(var M=d,E=e=g=P=void 0,A=14,F=h;"]"!==z;)"'"===z&&h++,h++,z=a[h];P=a.slice(F,h).join("").toLowerCase().trim();g=!1;for(e=0;e<p.length;e++)if(E=p[e],P===E){A=m[P];g=!0;break}if(g||D(),h++,h>=a.length)M--;else{for(z=a[h];" "===z;)h++,z=a[h];if(","===z){1>=M&&D();h++;for(z=a[h];" "===z;)h++,z=a[h];for("["===z&&(M++,h++,z=a[h]);" "===z;)h++,z=a[h]}1<M&&M--}r={vj:A,tj:h,uj:z,wj:M};y=r.vj;f=r.tj;w=r.uj;d=r.wj;n?2===b.qj&&3===y||2===y&&3===b.qj?b.qj=6:3===b.qj&&8===y||3===y&&8===b.qj?b.qj=12:D():b.qj=y;n=!0}else if("@"===w){(1<d||n)&&D();n=!0;b.qj=1;f++;for(w=k[f];" "===w;)f++,w=k[f];","===w&&D()}else{for(l=f;"]"!==w&&"["!==w;)if("'"===w&&f++,","===w){f++;w=k[f];for(B=f;" "===w;)f++,w=k[f];if("["===w){f=B;w=",";break}}else f++,w=k[f];if(f>l){(t||"["===w&&1<d)&&D();a=b;h=k;z=f;var M=w,P=d,u=l,V=g=void 0,W=void 0,A=E=e=void 0,F=[],G="",Z=!1,H=!1;if(1<P)Z=!0,P--,F=h.slice(u,z),z++,M=h[z],":"===M&&(z++,M=h[z],H="["===M,g=q(h,z,M,P),G=g.xj,z=g.tj,M=g.uj,P=g.wj);else if("["===M){H=!0;V=z-1;for(M=h[V];" "===M;)V--,M=h[V];":"!==M&&D();F=h.slice(u,V);if(!Z){for(var u=F,sa=u.length-1;0<=sa&&" "===u[sa];)sa--;for(;0<=sa&&" "!==u[sa];)sa--;F=0<=sa?u.substr(sa+1,u.length-sa-1):u}M=h[z];g=q(h,z,M,P);G=g.xj;z=g.tj;M=g.uj;P=g.wj}else void 0!==a.qj&&16!==a.qj||(Z=!0),W=h.slice(u,z),V=W.indexOf(":"),0<V?(F=W.slice(0,V),G=W.slice(V+1),"["!==G[0]&&D()):F=W;if(e=L(a,F,Z),G?(E=L(a,G,H),a.rj=4):(E=e,a.rj=2),e>E&&(A=e,e=E,E=A),a.oj=e,a.pj=E,z++,z<h.length)for(M=h[z];" "===M;)z++,M=h[z];r={tj:z,uj:M,wj:P};f=r.tj;w=r.uj;d=r.wj;t=!0}if("]"===w){if(d--,0===d)break;f>=k.length&&D();f++;w=k[f]}","===w&&(f++,w=k[f])}n||(b.qj=16);t||(b.oj=0,b.pj=b.lj.endColumn()-b.lj.startColumn(),b.rj=1);return b}catch(ia){}else if(b=a.getTableByName(f))return c.create(b);return null},unparse:function(a,f,c,e){var b;if(f=13===c.type){if(16===c.qj&&1===c.rj)e=(e.push(c.lj.tableName()),void(a.Eh&&e.push("[]")));else{(f=a.source===c.lj.source()&&a.row>=c.lj.startRow()&&a.column>=c.lj.startColumn()&&a.row<=c.lj.endRow()&&a.column<=c.lj.endColumn())&&!a.Eh||e.push(c.lj.tableName());e.push("[");16!==c.qj&&(b=A(c.qj,1!==c.rj,a.Eh),e.push(b));if(1!==c.rj)if(1===c.qj&&!a.Eh||16===c.qj||e.push(", "),b=c.lj.getColumnName(c.oj),b=G(b.split("")).join(""),4===c.rj)c=c.lj.getColumnName(c.pj),c=G(c.split("")).join(""),e.push("[",b,"]:[",c,"]");else{if(a=1===c.qj&&!a.Eh){a:if(f="",f=b[0],"#"===f||" "===f||"@"===f||" "===f||","===f||":"===f||"["===f||"]"===f)a=!0;else{for(a=1;a<b.length;a++)if(f=b[a]," "===f||","===f||":"===f||"["===f||"]"===f||"@"===f||"#"===f){a=!0;break a}a=!1}a=!a}a||16===c.qj?e.push(b):e.push("[",b,"]")}e=(e.push("]"),!0)}f=e}return f}});c.create=function(a,f,c,e,b){void 0===f&&(f=16);void 0===c&&(c=1);e=e||0;void 0===b&&(b=a.endColumn()-a.startColumn());var g=C();return g.lj=a,g.qj=f,g.oj=e,g.pj=b,g.rj=c,g};m={"#all":14,"#data":3,"#headers":2,"#totals":8,"#this row":1};U=h.Parser.prototype;U.parseReferenceExpressionInfos=function(a,f,c,e,b){var g;this.setParserOption(b);b=[];a=a.split("");try{g=f.yj().getParserContext(f.Cf().useR1C1,h.pf(c,e),null),b=this.parseToTokens(g,a,!1)}catch(ka){}g=b;var k,p,m,d;g.unshift(new x("\x3d",1,0,0,0));for(p=g.length-1;0<p;p--)g[p].mi===g[p-1].mi&&g[p].ni===g[p-1].ni&&(g=g.splice(p,1));for(m=0;m<g.length-1;m++)p=r(g[m]),d=g[m+1].mi-g[m].mi-p,0<d&&(k=new x(a.slice(g[m].mi+p,g[m+1].mi),7,g[m].mi+p),g.splice(m+1,0,k));p=r(g[m]);0<g.length&&a.length>g[m].mi+p&&(k=new x(a.slice(g[m].mi+p,a.length),7,g[m].mi+p),g.splice(m+1,0,k));for(k=0;k<g.length;k++)p=g[k].ni.trim(),3===g[k].hi?g[k].ni='"'+g[k].ni+'"':"("===p||"{"===p?(g[k].Nc=1,g[k].hi=1):")"!==p&&"}"!==p||(g[k].Nc=1,g[k].hi=2);return b=g,this.getExpressToken(b,a,f,c,e)};U.getExpressToken=function(a,f,c,e,b){var g,k,p,m,d,t,q,y,l,B,r,z,C,E,A,M,P=void 0,D=c.yj();(k=c.Cf())?(g=new window.GC.Spread.Sheets.CalcEngine.SheetParserContext(c,k.useR1C1,h.pf(e,b)),P=new h.EvaluateContext(D,h.pf(e,b),!1)):g=new h.ParserContext(null,!1,h.pf(0));g.ignoreError=!0;c=[];for(k=0;k<a.length;k++)try{if(p=a[k],"["===p.ni||"#"===p.Qb[0]||3===p.hi)c.push({text:p.ni,type:p.Nc,subType:p.hi,canDrag:!1,ranges:p.ranges,value:p.ni});else if(m=[],k=this.buildExpressionInfo(g,a,k,m),0<m.length)for(d=0;d<m.length;d++)if(t=m[d],t instanceof x)c.push({text:t.ni,type:t.Nc,subType:t.hi,canDrag:r,ranges:[],value:t.ni});else{if(t.Lf){if(q=t.Lf,y=f.slice(t.mi,t.li+1).join(""),l=[],B={},r=!0,z=q.getRange&&q.getRange(e,b),8===q.type)r=!1,P&&(C=P.getName(q.value),w(C,l,B,P,e,b));else if(13===q.type)r=!1,q.source()===D&&z?l.push(z):l=null,n(B,q.source(),z);else if(1===q.type)if(q.endSource)for(E=q.source,A=q.endSource,M=E.getSources(A),d=0;d<M.length;d++){if(M[d]===D){l.push(z);break}n(B,M[d],z)}else n(B,q.source||D,z),q.source&&q.source!==D||l.push(z);else l=null;l&&0<l.length?c.push({text:y,type:0,subType:7,canDrag:r,ranges:l,value:y,sheetRanges:B}):c.push({text:y,type:p.Nc,subType:p.hi,canDrag:r,ranges:l,value:y,sheetRanges:B})}}else c.push({text:p.ni,type:p.Nc,subType:p.hi,canDrag:!1,ranges:p.ranges,value:p.ni})}catch(pa){c.push({text:p.ni,type:p.Nc,subType:p.hi,canDrag:!1,ranges:p.ranges,value:p.ni})}return c};U.buildExpressionInfo=function(a,f,c,e){var b,g,k,h,p,m=f[c];return m&&"function"!=typeof m&&0===m.Nc?(b=[],g=this.resolveToken(a,f,b,c)-1,k=b[0],1!==k.type&&13!==k.type&&8!==k.type?c:(h=f[g],p={mi:m.mi,li:h.li,Lf:k},e.push(p),g)):c}},function(U,u,l){function d(d,c,m,h,a){var q;d=d&&d instanceof l(56).Worksheet&&d;var y=new n.Parser;return m=m===O?0:m,h=h===O?0:h,q=new D(d,!!a,n.pf(m,h)),y.parse(q,c)}function J(d,c,m){if(1===d.rowCount){if(c.hasHeadersRow()&&d.row===c.startRow())return 2;if(c.hasTotalsRow()&&d.row===c.endRow())return 8;if(m===d.row)return 1}else{if(c.hasHeadersRow()&&d.row===c.startRow()){if(d.rowCount===c.dataRange().rowCount+1)return 6;if(c.hasTotalsRow()&&d.rowCount===c.dataRange().rowCount+1+1)return 14}if(d.row===c.dataRange().row){if(d.rowCount===c.dataRange().rowCount)return 3;if(c.hasTotalsRow()&&d.rowCount===c.dataRange().rowCount+1)return 12}}return O}var R,Q,K,O,H,I,L,F,G,q,D,A,r=l(26),n=l(33),w=l(42),z=w.CalcEngine={};w.X3=!0;u=r.j;R=r.u;Q=u.Ia;K=u.za;O=void 0;H=["v","n","s","b","d"];I=n.Errors.Value;L=u.G;F=function(d){return n.Convert.Na(d,!0)};G=n.Convert.vf;q=z.SheetSource=function(d){function c(c){d.call(this,null);this.kj=c}L(c,d);return c}(n.CalcSource);Q(q.prototype,{startCalculation:function(){if(!this.Hu){var d=this.getRowCount(),c=this.getColumnCount();this.Hu={rowCount:d,colCount:c};this.Iu=[]}},endCalculation:function(){this.Hu=null;var d=this.Iu;d&&0<d.length&&this.kj.Wq(l(56).Events.RangeChanged,{sheet:this.kj,sheetName:this.kj.name(),row:0,col:0,rowCount:this.kj.getRowCount(),colCount:this.kj.getColumnCount(),changedCells:d,action:6});this.Iu=null},clearValueCache:function(){this.Hu=null},getValue:function(d,c,m){var h,a,q,y,t,l,w,p,g,f=this.kj;return d.row!==O?(h=d.row,a=d.col):(h=d,a=c,c=m),c=c||0,0>h||0>a?I:f.Ju&&f.Ku===h&&f.Lu===a?f.Mu:(q=this.Hu,y=H[c],q?(t=q.rowCount,l=q.colCount,h>=t?null:a>=l?null:(w=q[h],w||(w=q[h]={}),p=w[a],p||(p=w[a]={v:f.getValue(h,a)}),g=p[y],g===O&&(g=n.Convert.wf(p.v,c,!0),p[y]=g),g)):h>=this.getRowCount()?null:a>=this.getColumnCount()?null:this.kj.getValue(h,a))},getReference:function(d){return-1===d.row&&(d.row=0,d.rowCount=this.getRowCount()),-1===d.col&&(d.col=0,d.colCount=this.getColumnCount()),new n.CalcReference(this,[d])},getSheetRangeReference:function(d){var c,m,h,a,n;if(d.endSource&&this.kj&&this.kj.parent&&this.kj.parent.sheets&&d.endSource instanceof q){c=this.kj.parent.sheets;m=!1;a=[];for(n=0;n<c.length;n++){if(h=c[n].yj(),h===this)m=!0;else if(h===d.endSource){a.push(h.getReference(d));break}m&&a.push(h.getReference(d))}return new A(a)}},getSources:function(d){var c,m,h,a,n;if(this.kj&&this.kj.parent&&this.kj.parent.sheets&&d instanceof q){c=this.kj.parent.sheets;m=!1;a=[];for(n=0;n<c.length;n++){if(h=c[n].yj(),h===this&&(m=!0),h===d){a.push(h);break}m&&a.push(h)}return a}},referenceToArray:function(d,c,m,h,a,q){var y,t,l,B,p,g,f,k,x,w,r,z,C,e,b,v,N=1,S=1,A=[],Y=this.kj,D=this.Hu,F=H[c],u=d.getRangeCount();if(0===u)return A.isError=!0,[];if(D&&(k=d.getRangeCount()+"_"+d.getRow(0)+"_"+d.getColumn(0)+"_"+d.getRowCount(0)+"_"+d.getColumnCount(0)+"_"+c+"_"+m,p=D[k]))return A=p,A.rowCount=p.rowCount,A.colCount=p.colCount,A.rangeCount=p.rangeCount,A;x=this.getRowCount();w=this.getColumnCount();m=m===O||m;for(r=0;r<u;r++){if((m||(g=[],A.push(g)),N=d.getRowCount(r),0===N)||(S=d.getColumnCount(r),0===S))return A.isError=!0,[];if(l=d.getRow(r),B=d.getColumn(r),l>=x||B>=w)return A=[null],A.rowCount=1,A.colCount=1,A.rangeCount=1,A;l+N>x&&(N=x-l);B+S>w&&(S=w-B);e=Y.Ju;for(b=0;b<N;b++)for(y=l+b,m||(z=[],g.push(z)),D&&(f=D[y],f||(f=D[y]={})),v=0;v<S;v++){if(t=B+v,e&&Y.Ku===y&&Y.Lu===t)p=Y.Mu,e=!1;else{if(D?(C=f[t],C?p=C.v:(p=Y.getValue(y,t),C=f[t]={v:p})):p=Y.getValue(y,t),h&&n.Convert.vf(p))return A=[p],A.isError=!0,A;if(C&&C[F]!==O)p=C[F];else if(p=n.Convert.wf(p,c,!0,q),C&&(C[F]=p),a&&C===p)return A=[I],A.isError=!0,A}(!q||null!==p&&void 0!==p&&""!==p)&&(m?A.push(p):z.push(p))}}return m||1!==u||(A=A[0]),A.rowCount=N,A.colCount=S,A.rangeCount=u,D&&(D[k]=A,D[k].rowCount=N,D[k].colCount=S,D[k].rangeCount=u),A},getColumnCount:function(){return this.kj.getColumnCount()},getRowCount:function(){return this.kj.getRowCount()},isHiddenRow:function(d,c){var m=this.kj;return!((!m.Nu||!m.Nu())&&c)&&0===m.getRowHeight(d)},getName:function(){return this.kj.name()},setValue:function(d,c,m){var h,a,n,q,t,w,r,p,g=this.kj;(n=this.Hu)&&(h=n[d],h&&(a=h[c],a&&(a.v=m,void 0!==a.b&&(a.b=void 0),void 0!==a.d&&(a.d=void 0),void 0!==a.n&&(a.n=void 0),void 0!==a.s&&(a.s=void 0))));h=g.Mp();a=g.getValue(d,c);n=!1;(q=(q=g.tables)&&q.find(d,c))&&(t=q.showHeader()&&d===q.headerIndex(),w=q.showFooter()&&d===q.footerIndex(),t||w||(n=q.yq(d,c,m)));t=g.wq;!n&&t&&t.Ou&&(r=t.getValue(d,c),r.hasBinding&&(p=Q({},g.getDataItem(d)),h.Cp(d,c,{Dp:p,Ep:t.getValue(d,c).value}),t.setValue(d,c,m)),n=r.hasBinding);n||h.setValue(d,c,m);this.Iu?this.Iu.push({row:d,column:c}):this.kj.Wq(l(56).Events.CellChanged,{sheet:this.kj,sheetName:this.kj.name(),row:d,col:c,sheetArea:3,propertyName:"value",oldValue:a,newValue:m})},getCustomFunction:function(d){return this.kj?this.kj.Pu(d):null},getCustomName:function(d){return(d=this.kj?this.kj.getCustomName(d):null)?d.getExpression():null},getSheet:function(){return this.kj},getParserContext:function(d,c,m){return c=c||n.pf(0,0),new D(this.kj,d,c,m)},setFormula:function(d,c,m){},setArrayFormula:function(d,c,m,h,a){},setFormulaByName:function(d,c){},refresh:function(){this.kj.repaint()},toJSON:function(d,c,m,h){var a,n,q,t,l,w,p,g,f=d.data||{},k;for(w=0;w<=m;w++)if(a=f.dataTable||{},n=c[w]){t=a[w];k=!t;t=t||{};for(p=0;p<=h;p++)if(q=n[p],q&&q.Lf){l=t[p]||{};try{g=this.Cf().unparse(this,q.Lf,w,p,!1,!0),q.Pf?q.Pf.row===w&&q.Pf.col===p&&(l.arrayInfo=q.Pf,l.formula=g):l.formula=g,k=!1,t[p]=l}catch(x){}}k||(a[w]=t);K(a)||(f.dataTable=a)}K(f)||(d.data=f)}});z.SpreadSource=function(d){function c(c){d.call(this,null);this.Qu=c}L(c,d);return c.prototype.getCustomFunction=function(c){return this.Qu?this.Qu.getCustomFunction(c):null},c.prototype.getCustomName=function(c){return(c=this.Qu?this.Qu.getCustomName(c):null)?c.getExpression():null},c}(n.CalcSource);D=z.SheetParserContext=function(d){function c(c,h,a,q){d.call(this,c&&c.yj(),h,a,q);this.kj=c;this.addResolver(new n.SheetReferenceResolver(c));this.addResolver(new n.StructureReferenceResolver(c))}L(c,d);return c}(n.ParserContext);Q(D.prototype,{getExternalSource:function(d,c){var m,h,a;h=this.kj.parent;if(d&&(!h||h.name!==d))return null;if(!h)return R.Mb(this.kj.Cj,c)?this.kj.yj():null;if(m=h.sheets,m&&0<m.length)for(h=0;h<m.length;h++)if(a=m[h],R.Mb(a.Cj,c))return a.yj();return n.ParserContext.prototype.getExternalSource.call(this,d,c)},getExternalSourceToken:function(d){return d.getName()},getTableByName:function(d){var c,m,h=this.kj.tables,a=h?h.findByName(d):null;if(!a&&(c=this.kj.parent&&this.kj.parent.sheets))for(m=0;m<c.length&&(h=c[m].tables,!h||!(a=h.findByName(d)));m++);return a},getTableByIndex:function(d,c){var m=this.kj.tables;return m?m.find(d,c):null},setSource:function(d){(this.source=d)&&d.getSheet&&(this.kj=d.getSheet())}});A=z.SheetRangeReference=function(d){function c(c){d.call(this,null);this.references=c}L(c,d);return c.prototype.toArray=function(c,h,a,d,n){var m,q,l=this.references,p=[];for(m=0;m<l.length;m++){if(q=l[m].xf.referenceToArray(l[m],c,h,a,d,n),q.isError&&a)return q;h?Array.prototype.push.apply(p,q):p.push(q[0]);m||(p.rowCount=q.rowCount,p.colCount=q.colCount)}return p.rangeCount=l.length,p},c}(n.CalcReference);z.formulaToExpression=d;z.expressionToFormula=function(d,c,m,h,a){var q;d=d&&d instanceof l(56).Worksheet&&d;var y=new n.Parser;return m=m===O?0:m,h=h===O?0:h,q=new D(d,!!a,n.pf(m,h)),y.unparse(q,c)};z.evaluateFormula=function(n,c,m,h,a){c=d(n,c,m,h,a);return z.evaluateExpression(n,c,m,h)};z.evaluateExpression=function(d,c,m,h){var a,q=d.Cf();return m===O&&(m=d.getActiveRowIndex()),h===O&&(h=d.getActiveColumnIndex()),a=d.yj(),q.Hg(a,c,n.pf(m,h),!1,!0)};z.rangeToExpression=function(d,c,m,h,a){var q,l,t,w=d.row,r=d.col,p=d.row+d.rowCount-1,g=d.col+d.colCount-1,f=!1,k=!1,x=!1,z=!1;4<=arguments.length&&(f=0!==(1&h),k=0!==(4&h),x=0!==(2&h),z=0!==(8&h),w-=f?c:0,p-=k?c:0,r-=x?m:0,g-=z?m:0);var C;if(C=a)l=J(d,a,c),C=(t=d.col===a.startColumn()&&d.colCount===a.dataRange().colCount?1:1===d.colCount?2:d.col>=a.startColumn()&&d.col+d.colCount-1<=a.endColumn()?4:O,l&&t);return C?n.StructureReferenceResolver.create(a,l,t,d.col-a.dataRange().col,d.col+d.colCount-a.dataRange().col-1):(1===d.rowCount&&1===d.colCount?q=n.rf(null,null,w,r,f,x):(0>d.row&&(w=p=n.BAND_INDEX_CONST),0>d.col&&(r=g=n.BAND_INDEX_CONST),q=n.uf(null,null,w,r,p,g,f,x,k,z)),q)};z.rangeToFormula=function(d,c,m,h,a){d=z.rangeToExpression(d,c,m,h);c=new D(null,!!a,n.pf(c,m));return(new n.Parser).unparse(c,d)};z.rangeToFormulaWithStructReference=function(d,c,m,h,a,q,l){c=z.rangeToExpression(c,m,h,a,l);d=new D(d,!!q,n.pf(m,h));return(new n.Parser).unparse(d,c)};z.formulaToRange=function(d,c,m,h){var a,n,q,t,l;if(!c)return null;if(m=m?m:0,h=h?h:0,a=d.Cf(),c=a.parse(d.yj(),c,m,h,!0,!0))if(n=c.source,n&&13===c.type)n=c.source();else if(1===c.type&&c.endSource){a=c.source;q=c.endSource;a=a.getSources(q);q=!1;for(t=0;t<a.length;t++)if(a[t]===d.yj()){q=!0;break}c=q&&c}return!c||!c.getRange||n&&n!==d.yj()?null:(l=c.getRange(m,h),l?new w.Range(l.row,l.col,l.rowCount,l.colCount):null)};z.formulaToRanges=function(d,c,m,h){var a,q,l,t,r=[],z;if(!c)return r;a={};m=m||0;h=h||0;d=(new n.Parser).parseReferenceExpressionInfos(c,d,m,h);for(c=0;c<d.length;c++)for(m=d[c].sheetRanges,h=0;m&&h<m.sheets.length;h++)for(q=m.sheets[h],(z=a[q])||(a[q]=z=[],r.push({sheetName:q,ranges:z})),q=m[q],l=0;l<q.length;l++)t=q[l],z.push(new w.Range(t.row,t.col,t.rowCount,t.colCount));return r};z.rangesToFormula=function(d,c,m,h,a){var q,l="",t=new n.Parser,w=new D(null,!!a,n.pf(c,m));for(a=0;a<d.length;a++)q=z.rangeToExpression(d[a],c,m,h),q=t.unparse(w,q),l+=0<a?", "+q:q;return l};z.RangeReferenceRelative={allAbsolute:0,startRowRelative:1,startColRelative:2,endRowRelative:4,endColRelative:8,rowRelative:5,colRelative:10,allRelative:15};z.GoalSeek=function(d,c,m,h,a,n,q){var t,l,y,p,g=h.getValue(c,m),f=!1,k=(F(g)?+g:0)-q,x=h.getValue(a,n),w=(F(x)?+x:0)-q;if(F(x)&&.001>Math.abs(w))f=!0;else if(G(x))f=!1;else for(t=k+(0===k?.01:.01*k),y=0;!f&&100>y;y++)t=13<=(""+t).length?+t.toPrecision(13):t,d.setValue(c,m,t),x=h.getValue(a,n),l=(F(x)?+x:0)-q,F(x)&&.001>Math.abs(l)?f=!0:G(x)?t=(k+t)/2:0===k-t?t=k+(0===k?.01:.01*k):0===w-l?t=k+2*(t-k):(p=t-l*(k-t)/(w-l),k=t,w=l,t=p);return f||d.setValue(c,m,g),f};U.exports=n},function(U,u,l){function d(a,c,f,k,h,m,d,n,t,e){var b,g;return 0<=f||!h?(b=k+(h?f:0),g=m+(d?f:0),n===a&&t+e<=f&&(b-=h?e:0,g-=d?e:0),n===c&&(t<=b?(b+=e,g+=e):t<=g&&(g+=e)),b-=h?f:0,g-=d?f:0,{index:b,endIndex:g}):{index:k,endIndex:m}}function J(c,g,f,k,m,n,q,l,w){var e,b,p,x,r,z=k;if(1===k.type&&k.sf)a:{if(b=k.source||c){r=l?k.row:k.column;var E=l?k.rowRelative:k.columnRelative;if(l&&0<=g||!l&&0<=f||!E){if(w)x=d(c,b,l?g:f,r,E,-1,!1,m,n,q).index;else{b:if(g=l?g:f,0<=g||!E){f=r+(E?g:0);if(m===c&&n<=g&&(f+=E?q:0),m===b)if(n+q<=f)f-=q;else if(n<=f){c=t;break b}c=f-(E?g:0)}else c=r;if(x=c,C(x)){z=h(x);break a}}x!==r&&(k=k.offset(l?x-r:0,l?0:x-r,!0))}}z=k}else if(1===k.type)a:{e=k.source||c;var A,M,P;if(e){if(A=k.tf(),3===A||l&&2===A||!l&&1===A){z=k;break a}if(M=l?k.rowRelative:k.columnRelative,P=l?k.endRowRelative:k.endColumnRelative,x=l?k.row:k.column,z=l?k.endRow:k.endColumn,l&&0<=g||!l&&0<=f||!M||!P){if(w)b=d(c,e,l?g:f,x,M,z,P,m,n,q);else{b:if(g=l?g:f,0<=g||!M){if(r=x+(M?g:0),E=z+(P?g:0),f=n+q-1,m===c&&n<=g&&(r+=M?q:0,E+=P?q:0),m===e)if(f<r)r-=q,E-=q;else{if(n<=r&&f>=E){c=t;break b}n>E||(f<=E?(r=n>=r?r:n,E-=q):E=n-1)}c=(r-=M?g:0,E-=P?g:0,{index:r,endIndex:E})}else c={index:x,endIndex:z};if(b=c,C(b)){z=new h(b);break a}}c=b.index;m=b.endIndex;c===x&&m===z||(k=k.offset2(l?c-x:0,l?0:c-x,l?m-z:0,l?0:m-z))}}z=k}else if(10===k.type)e=J(c,g,f,k.value,m,n,q,l,w),e!==k.value&&(z=a(e));else if(9===k.type)b=J(c,g,f,k.value,m,n,q,l,w),l=k.value2&&J(c,g,f,k.value2,m,n,q,l,w),b===k.value&&l===k.value2||(z=B(k.operatorType,b,l));else if(7===k.type){b=null;r=k.arguments.length;for(x=0;x<r;x++)if(p=k.arguments[x],e=J(c,g,f,p,m,n,q,l,w),e!==p){b=[];b[x]=e;break}if(b){for(x=0;x<r;x++)p=k.arguments[x],void 0!==b[x]&&null!==b[x]||(b[x]=J(c,g,f,p,m,n,q,l,w));z=y(k,b)}}else l||13!==k.type||(z=c&&k&&c===k.source()?k.offsetWhenInsertRemoveColumn(n,q,w):k);return z}function R(a,c,f,k,h,m,d,n,t,e){Q(function(b,g){var p,v,x=d,q=n;return b!==a&&(x=h,q=m),p=b.Cf().parse(a,g,h,m),v=c.call(this,b,x,q,p,a,f,k,t,e),p!==v||h!==d||m!==n?b.Cf().unparse(a,v,x,q):void 0},t)}function Q(a,c){var f,g,h,p,m,d,n,e,b,v,t,q,y,w,B,z;if(f=(f=l(42))&&f.Lj)for(f=f.Mj(),n=r.maxRowCount-1,e=r.maxColumnCount-1,t=0;t<f.length;t++){m=q=!0;for(y in f[t])if(!isNaN(parseFloat(y))){for(w in f[t][y])if(B=w.split("_"),b=parseInt(B[0],10),v=parseInt(B[1],10),-1!==b&&(m=!1,n=n>b?b:n),-1!==v&&(q=!1,e=e>v?v:e),!q&&!m)break;if(!q&&!m)break}if(!(c&&m||!c&&q)&&(g=f[t].validator,d=f[t].sheet,z=d.yj(),h=g.condition(),p=h.getFormulas(),p&&0<p.length)){for(q=0;q<p.length;q++)m=p[q],(m=a(z,m,n,e))&&(p[q]=m);h.setFormulas(p)}}}function K(c,g,f){var k,h,p,m,d,n=g;if(g.source)g=g.source,(c!==f&&g===f||c===f&&g!==f)&&(n=E);else if(10===g.type)k=K(c,g.value,f),k!==g.value&&(n=a(k));else if(9===g.type)k=K(c,g.value,f),c=g.value2&&K(c,g.value2,f),k===g.value&&c===g.value2||(n=B(g.operatorType,k,c));else if(7===g.type){m=null;d=g.arguments.length;for(p=0;p<d;p++)if(h=g.arguments[p],k=K(c,h,f),k!==h){m=[];m[p]=k;break}if(m){for(p=0;p<d;p++)h=g.arguments[p],void 0!==m[p]&&null!==m[p]||(m[p]=K(c,h,f));n=y(g,m)}}return n}function O(a,c,f,k,h){return K(a,k,h)}function H(a,g,f,k,h){var p,m,d,n,e=!!k.source,b=e?k.source:a,v=k.rowRelative,t=k.columnRelative,x=h.Nj(),q=h.Oj();if((0<=g||!v)&&(0<=f||!t)){if(p=k.row+(v?g:0),m=k.column+(t?f:0),n=h.Pj(a,g,f,1,1),b===h.Qj&&h.Pj(b,p,m,1,1)&&!h.Sj(b,p,m,1,1)&&(!v&&!t||!n))return E;if(d=(e&&b===h.Rj||!e&&a===h.Rj)&&(!n&&h.Sj(h.Rj,p,m,1,1)||n&&h.Pj(h.Qj,p,m,1,1)),n&&(p-=v?x:0,m-=t?q:0),d&&(p+=x,m+=q),p-=v?g:0,m-=t?f:0,h.Rj===h.Qj?b=e?k.source:void 0:(b=void 0,d&&n&&e?b=h.Qj:d&&n||(d?b=h.Qj:n&&!e&&(b=h.Rj))),p!==k.row||m!==k.column||b!==k.source)return c(b,null,p,m,v,t)}else if((0<=g||!v)&&-1===f){if(p=k.row+(v?g:0),h.Pj(a,g,f,1,1)&&(p-=v?x:0),h.Sj(b,p,-1,v,-1))p+=x;else if(h.Pj(b,p,-1,1,-1))return E;if(p-=v?g:0,p!==k.row)return c(k.source,null,p,k.column,v,k.columnRelative)}else if(-1===g&&0<=f&&!t){if(m=k.column+(t?f:0),h.Pj(a,g,f,1,1)&&(m-=t?q:0),h.Sj(b,p,m,1,1))m+=q;else if(h.Pj(b,p,m,1,1))return E;if(m-=t?f:0,p!==k.row||m!==k.column)return c(k.source,k.endSource,k.row,m,k.rowRelative,t)}return k}function I(a,c,f,k,h){var g,p,d,n,e,b,v,t,x,q,l,y,w,B,r,z,C,A,D,F,u=!!k.source,G=u?k.source:a,H=k.tf(),L=h.Nj();l=h.Oj();if(0===H)if(g=k.rowRelative,p=k.columnRelative,d=k.endRowRelative,n=k.endColumnRelative,0<=c||!g||!d||0<=f||!p||!n){if(e=k.row+(g?c:0),b=k.endRow+(d?c:0),v=k.column+(p?f:0),t=k.endColumn+(n?f:0),x=b-e+1,q=t-v+1,C=h.Pj(a,c,f,1,1),C&&(A=h.Tj-h.Uj,D=h.Uj-h.Tj,x+=(g?-A:0)+(d?A:0),q+=(p?-D:0)+(n?D:0)),!(G!==h.Qj||!h.Pj(G,e,v,x,q)||q||(g||p||d||n)&&C))return E;if(z=(u&&G===h.Rj||!u&&a===h.Rj)&&(!C&&h.Sj(h.Rj,e,v,x,q)||C&&h.Pj(h.Qj,e,v,x,q)),C&&(y=g?L:0,w=d?L:0,B=p?l:0,r=n?l:0,e-=y,b-=w,v-=B,t-=r),a=!1,z)x=L,e+=x,b+=x,v+=l,t+=l;else if(h.Pj(G,e,v,x,q)){if(F=h.intersectWith(G,e,v,x,q),!F||F.rowCount!==x&&F.colCount!==q)return E;e=F.row+L;v=F.col+l;b=e+F.rowCount;t=v+F.colCount;a=!0}if(e-=g?c:0,b-=d?c:0,v-=p?f:0,t-=n?f:0,h.Rj===h.Qj?G=u?k.source:void 0:(G=void 0,z&&C&&u?G=h.Qj:z&&C||(z?G=h.Qj:C&&!u&&(G=h.Rj))),e!==k.row||v!==k.column||b!==k.endRow||t!==k.endColumn||a||G!==k.source)return m(G,null,e,v,b,t,g,p,d,n)}else if(!(0<=c)&&g&&d||-1!==f){if(-1===c&&(0<=f||!p||!n)){if(v=k.column+(p?f:0),t=k.endColumn+(n?f:0),v>t)return E;if(h.Pj(a,c,f,1,1)&&(B=p?l:0,r=n?l:0,v-=B,t-=r),q=t-v,h.Sj(G,-1,v,-1,q))v+=l,t+=l;else if(h.Pj(G,-1,v,-1,q))return E;if(v-=p?f:0,t-=n?f:0,v!==k.column||t!==k.endColumn)return m(k.source,null,k.row,v,k.endRow,t,k.rowRelative,p,k.endRowRelative,n)}}else{if(e=k.row+(g?c:0),b=k.endRow+(d?c:0),e>b)return E;if(h.Pj(a,c,f,1,1)&&(y=g?L:0,w=d?L:0,e-=y,b-=w),x=b-e,h.Sj(G,e,-1,x,-1))x=L,e+=x,b+=x;else if(h.Pj(G,e,-1,x,-1))return E;if(e-=g?c:0,b-=d?c:0,e!==k.row||b!==k.endRow)return m(k.source,null,e,k.column,b,k.endColumn,g,k.columnRelative,d,k.endColumnRelative)}else if(1===H){if(g=k.rowRelative,d=k.endRowRelative,0<=c||!g||!d){if(e=k.row+(g?c:0),b=k.endRow+(d?c:0),e>b)return E;if(h.Pj(a,c,f,1,1)&&(y=g?L:0,w=d?L:0,e-=y,b-=w),x=b-e,h.Sj(G,e,-1,x,-1))x=L,e+=x,b+=x;else if(h.Pj(G,e,-1,x,-1))return E;if(e-=g?c:0,b-=d?c:0,e!==k.row||b!==k.endRow)return m(k.source,k.endSource,e,M,b,M,g,!1,d,!1)}}else if(2===H){if(p=k.columnRelative,n=k.endColumnRelative,v=k.column+(p?f:0),t=k.endColumn+(n?f:0),v<t)return E;if(h.Pj(a,c,f,1,1)&&(B=p?l:0,r=n?l:0,v-=B,t-=r),q=t-v,h.Sj(G,-1,v,-1,q))v+=l,t+=l;else if(h.Pj(G,-1,v,-1,q))return E;if(v-=p?f:0,t-=n?f:0,v!==k.column||t!==k.endColumn)return m(k.source,k.endSource,M,v,M,t,!1,p,!1,n)}return k}function L(h,g,f,k,m,d){var p,n,t,e,b,v=k;if(1===k.type&&k.sf){if(d)k=H(h,g,f,k,m);else if(v=k.source||h,d=k.rowRelative,p=k.columnRelative,t=m.Nj(),b=m.Oj(),(0<=g||!d)&&(0<=f||!p)){if(n=k.row+(d?g:0),e=k.column+(p?f:0),m.Pj(h,g,f,1,1)?(n-=d?t:0,e-=p?b:0):m.Sj(h,n,e,1,1)&&(n+=d?t:0,e+=p?b:0),m.Sj(v,n,e,1,1)?(n+=t,e+=b):m.Pj(v,n,e,1,1)&&(n-=t,e-=b),n-=d?g:0,e-=p?f:0,n!==k.row||e!==k.column)k=c(k.source,null,n,e,d,p)}else if((0<=g||!d)&&-1===f){if(n=k.row+(d?g:0),m.Pj(h,g,-1,1,-1)?n-=d?t:0:m.Sj(h,n,-1,1,-1)&&(n+=d?t:0),m.Sj(v,n,-1,1,-1)?n+=t:m.Pj(v,n,-1,1,-1)&&(n-=t),n-=d?g:0,n!==k.row||e!==k.column)k=c(k.source,null,n,k.column,d,k.columnRelative)}else-1===g&&0<=f&&!p&&(e=k.column+(p?f:0),m.Pj(h,-1,f,-1,1)?e-=p?b:0:m.Sj(h,-1,e,-1,1)&&(e+=p?b:0),m.Sj(v,-1,e,-1,1)?e+=b:m.Pj(v,-1,e,-1,1)&&(e-=b),e-=p?f:0,n!==k.row||e!==k.column)&&(k=c(k.source,null,k.row,e,k.rowRelative,p));v=k}else if(1===k.type)v=d?I(h,g,f,k,m):F(h,g,f,k,m);else if(10===k.type)p=L(h,g,f,k.value,m,d),p!==k.value&&(v=a(p));else if(9===k.type)n=L(h,g,f,k.value,m,d),h=k.value2&&L(h,g,f,k.value2,m,d),n===k.value&&h===k.value2||(v=B(k.operatorType,n,h));else if(7===k.type){n=null;b=k.arguments.length;for(e=0;e<b;e++)if(t=k.arguments[e],p=L(h,g,f,t,m,d),p!==t){n=[];n[e]=p;break}if(n){for(e=0;e<b;e++)t=k.arguments[e],void 0!==n[e]&&null!==n[e]||(n[e]=L(h,g,f,t,m,d));v=y(k,n)}}return v}function F(a,c,f,k,h){var g,p,d,n,e,b,v,t,q,x,l,y,w,B,r,z,C=k.source||a,A=k.tf(),D=h.Nj(),F=h.Oj();if(0===A)if(v=k.rowRelative,t=k.columnRelative,q=k.endRowRelative,x=k.endColumnRelative,!(0<=c)&&v&&q||!(0<=f)&&t&&x)if(!(0<=c)&&v&&q||-1!==f){if(-1===c&&(0<=f||!t||!x)){if(d=k.column+(t?f:0),n=k.endColumn+(x?f:0),d<n)return E;if(h.Pj(a,-1,f,-1,1)?(B=t?F:0,z=x?F:0,d-=B,n-=z):h.Sj(a,-1,f,-1,1)&&(B=t?F:0,z=x?F:0,d+=B,n+=z),b=n-d,h.Sj(C,-1,d,-1,b)?(y=F,d+=y,n+=y):h.Pj(C,-1,d,-1,b)&&(y=F,d-=y,n-=y),d-=t?f:0,n-=x?f:0,d!==k.column||n!==k.endColumn)return m(k.source,null,d,k.endRow,n,k.rowRelative,t,k.endRowRelative,x)}}else{if(g=k.row+(v?c:0),p=k.endRow+(q?c:0),g<p)return E;if(h.Pj(a,c,-1,1,-1)?(w=v?D:0,r=v?D:0,g-=w,p-=r):h.Sj(a,c,-1,1,-1)&&(w=v?D:0,r=v?D:0,g+=w,p+=r),e=p-g,h.Sj(C,g,-1,e,-1)?(l=D,g+=l,p+=l):h.Pj(C,g,-1,e,-1)&&(l=D,g-=l,p-=l),g-=v?c:0,p-=q?c:0,g!==k.row||p!==k.endRow)return m(k.source,null,g,k.column,p,k.endColumn,v,k.columnRelative,q,k.endColumnRelative)}else{if(g=k.row+(v?c:0),p=k.endRow+(q?c:0),d=k.column+(t?f:0),n=k.endColumn+(x?f:0),e=p-g,b=n-d,h.Pj(a,c,f,1,1)?(w=v?D:0,B=t?F:0,r=q?D:0,z=x?F:0,g-=w,p-=r,d-=B,n-=z):h.Sj(a,g,d,e,b)&&(w=v?D:0,B=t?F:0,r=q?D:0,z=x?F:0,g+=w,p+=r,d+=B,n+=z),h.Sj(C,g,d,e,b)?(l=D,y=F,g+=l,p+=l,d+=y,n+=y):h.Pj(C,g,d,e,b)&&(l=D,y=F,g-=l,p-=l,d-=y,n-=y),g-=v?c:0,p-=q?c:0,d-=t?f:0,n-=x?f:0,g!==k.row||d!==k.column||p!==k.endRow||n!==k.endColumn)return m(k.source,null,g,d,p,n,v,t,q,x)}else if(1===A){if(v=k.rowRelative,q=k.endRowRelative,0<=c||!v||!q){if(g=k.row+(v?c:0),p=k.endRow+(q?c:0),g<p)return E;if(h.Pj(a,c,-1,1,-1)?(w=v?D:0,r=q?D:0,g-=w,p-=r):h.Sj(a,c,-1,1,-1)&&(w=v?D:0,r=q?D:0,g+=w,p+=r),e=p-g,h.Sj(C,g,-1,e,-1)?(l=D,g+=l,p+=l):h.Pj(C,g,-1,e,-1)&&(l=D,g-=l,p-=l),g-=v?c:0,p-=q?c:0,g!==k.row||p!==k.endRow)return m(k.source,null,g,M,p,M,v,!1,q,!1)}}else if(2===A){if(t=k.columnRelative,x=k.endColumnRelative,d=k.column+(t?f:0),n=k.endColumn+(x?f:0),d>n)return E;if(h.Pj(a,-1,f,-1,1)?(B=t?F:0,z=x?F:0,d-=B,n-=z):h.Sj(a,-1,f,-1,1)&&(B=t?F:0,z=x?F:0,d+=B,n+=z),b=n-d,h.Sj(C,-1,d,-1,b)?(y=F,d+=y,n+=y):h.Pj(C,-1,d,-1,b)&&(y=F,d-=y,n-=y),d-=t?f:0,n-=x?f:0,d!==k.column||n!==k.endColumn)return m(k.source,null,M,d,M,n,!1,t,!1,x)}return k}function G(c,g,f){var k,p,m,d,n,q=g;if(8===g.type){if(g.value===f&&(!g.source||g.source===c.getSource()))return h(t,g.source)}else if(10===g.type)k=G(c,g.value,f),k!==g.value&&(q=a(k));else if(9===g.type)k=G(c,g.value,f),c=g.value2&&G(c,g.value2,f),k===g.value&&c===g.value2||(q=B(g.operatorType,k,c));else if(7===g.type){d=null;n=g.arguments.length;for(m=0;m<n;m++)if(p=g.arguments[m],k=G(c,p,f),k!==p){d=[];d[m]=k;break}if(d){for(m=0;m<n;m++)p=g.arguments[m],void 0!==d[m]&&null!==d[m]||(d[m]=G(c,p,f));q=y(g,d)}}return q}function q(a,c){var f,g,h,p;return c||(c=this),f=w(a.row,c.row),g=w(a.column,c.col),h=n(a.row+a.rowCount,c.row+c.rowCount),p=n(a.column+a.colCount,c.col+c.colCount),f>=h||g>=p?null:{row:f,col:g,rowCount:h-f,colCount:p-g,intersectWith:q}}var D,A,r=l(33),n=Math.min,w=Math.max,z=r.kf,C=r.Convert.vf,c=r.rf,m=r.uf,h=r.Hh,a=r.Lh,B=r.Kh,y=r.Jh,t=r.Errors.Reference,E=r.Ih,M=r.BAND_INDEX_CONST;U=r.CalcOperatorAdjustor=function(){function a(){}return a.zj=function(c,f,k,p,m){var g,d,n=c,e=a.zj;if(!c)return n;if(g=r.MAX_ROW_COUNT,d=r.MAX_COLUMN_COUNT,10===c.type)n=r.Lh(e.call(a,c.value,f,k,p,m));else if(1===c.type&&c.sf){if(c.rowRelative&&(0>c.row+f||c.row+f>g)||c.columnRelative&&(0>c.column+k||c.column+k>d))return h(t,c.source);n=c.offset(0,0,!1)}else if(1===c.type){if(c.rowRelative&&!c.isFullColumn&&(0>c.row+f||c.row+f>g)||c.columnRelative&&!c.isFullRow&&(0>c.column+k||c.column+k>d)||c.endRowRelative&&!c.isFullColumn&&(0>c.endRow+f||c.endRow+f>g)||c.endColumnRelative&&!c.isFullRow&&(0>c.endColumn+k||c.endColumn+k>d))return h(t,c.source,c.endSource);n=c.offset(0,0,!1)}else if(9===c.type)n=r.Kh(c.operatorType,e.call(a,c.value,f,k,p,m),c.value2&&e.call(a,c.value2,f,k,p,m));else if(7===c.type){if(g=[],c.arguments&&0<c.arguments.length)for(d=0;d<c.arguments.length;d++)g[d]=e.call(a,c.arguments[d],f,k,p,m);n=r.Jh(c,g)}else 13===c.type&&(n=c.offsetWhenCopy(p,m));return n},a.copyFormula=function(c,f,k,h,p,m,d,t,e){var b,g,q,x,l,y,w,B,z,E,C,A,M,D,F,u,P,G,W;w=c.getSource();var V=h.getSource();if(c&&h){b={};q=f;x=k;l=p;y=m;0>f&&(q=0,d=n(c.rC(),h.rC()));0>k&&(x=0,t=n(c.cC(),h.cC()));0>p&&(l=0);0>m&&(y=0);c&&c.Sg(l,y,d,t);w=new r.CalcSourceModel(c.Cf(),w);for(B=0;B<d;B++)for(z=0;z<t;z++)c.Uf(w,B+q,z+x,B,z),(E=c.getSource().getSheet().Aj(B+l,z+y))&&E.validator&&(g=E.validator.condition(),g&&g.getFormulas&&0<g.getFormulas().length&&(b[E.validator.id]=g));g={};E=h.Cf();for(B=0;B<d;B++)if(!e||!V.isHiddenRow(B+l))for(C=B+l,z=0;z<t;z++)if(A=z+y,M=w.Kf(B,z)){if(M!==g)if(M=a.zj(w.Kf(B,z),C,A,p-f,m-k),D=w.Qf(B,z),V)if(D){F=d-B<D.rowCount?d-B:D.rowCount;u=t-z<D.colCount?t-z:D.colCount;for(D=0;D<F;D++)for(P=0;P<u;P++)w.Rf(B+D,z+P,M);h.setArrayFormula(C,A,F,u,E.unparse(V,M,C,A))}else F=M?E.unparse(V,M,C,A):void 0,V.setFormula(C,A,F),(F=w.Mf(B,z))&&(F=a.zj(F,C,A,p-f,m-k),G=new r.EvaluateContext(V,r.pf(C,A),!1),F=r.Mh(G,M,!1,0,0),F=F===M?void 0:F),h.ig(C,A,M,F,D);else h.Rf(B+l,z+y,M),h.Xf(B+l,z+y,D)}else h&&h.getExpression(C,A)&&h.Sf(C,A);for(W in b){g=b[W];f=g.getFormulas();for(D=0;D<f.length;D++)F=f[D],M=E.parse(c.getSource(),F,q,x),F=E.unparse(c.getSource(),M,l,y),f[D]=F;g.setFormulas(f)}}},a.moveFormula=function(a,f,c,h,p,m,d,t){var e,b,g,k,q,x,l,y=a.Bj(),w=h.Bj(),B=y.Cf();if(y&&w){e=B.ih();0>f&&(f=0,d=n(a.getRowCount(),h.getRowCount()));0>p&&(p=0);0>c&&(c=0,t=n(a.getColumnCount(),h.getColumnCount()));0>m&&(m=0);a=!(a===h&&a.Cj===h.Cj);y.Sg(f,c,d,t);y._g(f,c,d,t,!0,!1);w.Sg(p,m,d,t);w._g(p,m,d,t,!0,!1);h=[];for(b=0;b<d;b++)for(g=0;g<t;g++)k=y.Kf(b+f,g+c),q=y.Qf(b+f,g+c),x=y.Mf(b+f,g+c),k?(h.push({Lf:k,Pf:q,Nf:x}),y.Sf(b+f,g+c)):h.push(null);for(b=0;b<d;b++)for(g=0;g<t;g++)(x=h.shift())?(k=x.Lf,q=x.Pf,B&&q&&q.row===f+b&&q.col===c+g&&(l=z(b+p,g+m,q.rowCount,q.colCount)),q&&(q.row=b+p,q.col=g+m),w.Rf(b+p,g+m,k),w.Xf(b+p,g+m,q?l:void 0),w.Wf(b+p,g+m,x.Nf)):(w.Rf(b+p,g+m,void 0),w.Xf(b+p,g+m,void 0));e.Dj(y,f,c,d,t);e.Dj(w,p,m,d,t);e.Ej(y.getSource(),f,c,w.getSource(),p,m,d,t,!0);!0===a&&e.Ej(y.getSource(),f,c,w.getSource(),p,m,d,t,!0)}},a}();U.prototype={isAdjustCell:function(a){return a.preAdj||a===this.sh},isAdjust:function(a){return a.preAdj||a===this.sh},hh:function(a,c){var f,g;if(0===c)f=this.sh,g=this.wh;else if(1===c)f=this.th,g=this.xh;else if(2===c)f=this.uh,g=this.yh;else{if(3!==c)return;f=this.vh;g=this.zh}a&&!a.preAdj&&a!==f&&(f?g.nextAdj=a:0===c?this.sh=a:1===c?this.th=a:2===c?this.uh=a:this.vh=a,a.preAdj=g,a.nextAdj=null,0===c?this.wh=a:1===c?this.xh=a:2===c?this.yh=a:this.zh=a)},Fj:function(a,c){var f,g,h;if(0===c)f=this.sh;else if(1===c)f=this.th;else if(2===c)f=this.uh;else{if(3!==c)return;f=this.vh}a&&(a.preAdj||a===f)&&(g=a.preAdj,h=a.nextAdj,g?g.nextAdj=h:0===c?this.sh=h:1===c?this.th=h:2===c?this.uh=h:this.vh=h,h?h.preAdj=g:0===c?this.wh=g:1===c?this.xh=g:2===c?this.yh=g:this.zh=g,a.preAdj=null,a.nextAdj=null)},Gj:function(a,c,f,k,h){this.Hj(a,J,c,f,k,h);var g=0,p=0,m=0,d=0;0===c&&(k&&h?m=f:k&&!h?g=f:!k&&h?d=f:p=f);R(a,J,c,f,g,p,m,d,k,h)},Hj:function(a,c,f,k,h,m){for(var g,p,d,e,b,n,t,q,x={};this.sh;){if(g=this.sh.ah,b=g.getSource(),p=this.sh.row,d=this.sh.column,!x[p]||!x[p][d])if(e=g.Kf(p,d))if(e=c.call(this,b,p,d,e,a,f,k,h,m),n=g.Qf(p,d))for(n=z(p,d,n.rowCount,n.colCount),t=p;t<p+n.rowCount;t++)for(x[t]||(x[t]={}),q=d;q<d+n.colCount;q++)g.fg(t,q,e,n,t===p&&q===d),x[t][q]=!0;else g.fg(p,d,e,n,!0);else(g.getRowExpression&&g.getRowExpression(p)||g.getColumnExpression&&g.getColumnExpression(d))&&g.Ag(p,d,1,1);this.Fj(this.sh,0)}for(;this.th;)g=this.th.ah,p=this.th.row,g.getRowExpression&&(e=g.getRowExpression(p),e&&g.fg&&g.fg(p,-1,c.call(this,b,p,-1,e,a,f,k,h,m),void 0,!0)),this.Fj(this.th,1);for(;this.uh;)g=this.uh.ah,d=this.uh.column,g.getColumnExpression&&(e=g.getColumnExpression(d),e&&g.fg&&g.fg(-1,d,c.call(this,b,-1,d,e,a,f,k,h,m),void 0,!0)),this.Fj(this.uh,2)},ph:function(a){var c=a.getCalcSourceModel(),f=a.getRowCount(),k=a.getColumnCount();c._g(0,0,f,k,!0,!1);this.Hj(a,O);R(a,O,0,0,0,0,0,0,!0,!1)},Ej:function(a,c,f,k,h,m,d,n,t){var e,b,g,p,q,x,y;a=new A(a,c,f,k,h,m,d,n);c={};var w,B,r,E;f=a.Rj.Cf();if(k=(k=l(42))&&k.Lj)for(k=k.Mj(),m=h=0,(0===a.Vj&&0===a.Wj||0===a.Tj||0===a.Uj)&&(h=a.Xj,m=a.Yj,h>=a.Tj&&h<a.Tj+a.Xj&&m>=a.Uj&&m<a.Uj+a.Yj?h=a.Tj+a.Xj:h>=a.Vj&&h<a.Vj+a.Xj&&m>=a.Wj&&m<a.Wj+a.Yj&&(h=a.Vj+a.Xj)),d=0;d<k.length;d++)if(e=k[d].validator,y=k[d].sheet,n=y.yj(),q=e.condition(),x=q.getFormulas(),x&&0<x.length){for(B=0;B<x.length;B++)w=x[B],w=f.parse(a.Rj,w,h,m),r=L(n,h,m,w,a,t),w!==r&&(E=f.unparse(a.Rj,r,h,m),x[B]=E);q.setFormulas(x)}for(;this.sh;){if(e=this.sh.ah,b=this.sh.row,g=this.sh.column,!c[b]||!c[b][g])if(p=e.getExpression(b,g))if(p=L.call(this,e.getSource(),b,g,p,a,t),q=e.Qf(b,g))for(q=z(b,g,q.rowCount,q.colCount),x=b;x<b+q.rowCount;x++)for(c[x]||(c[x]={}),y=g;y<g+q.colCount;y++)e.fg(x,y,p,q,x===b&&y===g),c[x][y]=!0;else e.fg(b,g,p,q,!0);else(e.getRowExpression&&e.getRowExpression(b)||e.getColumnExpression&&e.getColumnExpression(g))&&e.Ag(b,g,1,1);this.Fj(this.sh,0)}for(;this.th;)e=this.th.ah,b=this.th.row,e.getRowExpression&&(p=e.getRowExpression(b),p&&e.jg&&e.jg(b,L.call(this,e.getSource(),b,-1,p,a,t),void 0)),this.Fj(this.th,1);for(;this.uh;)e=this.uh.ah,g=this.uh.column,e.getColumnExpression&&(p=e.getColumnExpression(g),p&&e.kg&&e.kg(g,L.call(this,e.getSource(),-1,g,p,a,t),void 0)),this.Fj(this.uh,2)},Dj:function(a,c,f,k,h){var g,p,m,d;k=c+k;h=f+h;for(p=c;p<k;p++)for(m=f;m<h;m++)c=a.Yf(p,m),g=a.Kf(p,m),(c||g)&&(this.Fj(c,0),a.Q3(p,m,0),d=a.qg(p,m,!0),this.hh(d,0))},Ij:function(a,c,f){var g,h;for(g=c;-1!==g&&g<c+f;g++)(a.Yf(-1,g)||a.Kf(-1,g))&&(a.Q3(-1,g,2),h=a.sg(g,!0),this.hh(h,2))},Jj:function(a,c,f){var g,h;for(g=c;-1!==g&&g<c+f;g++)(a.Yf(g,-1)||a.Kf(g,-1))&&(a.Q3(g,-1,1),h=a.rg(g,!0),this.hh(h,1))},Kj:function(a){var c,f,k,h=a.Cf().getAllSouceModels();for(a=0;a<h.length;a++)for(c=h[a],c=c.ag(),k=0;k<c.length;k++)(f=c[k])&&f.isVolatile&&f instanceof r.CellCalc&&!this.isAdjustCell(f)&&this.hh(f,0)},onBeforeAddRemoveRows:function(a,c){var f=a.rC(),g=a.cC();a.Sg(c,0,f-c,g);a.Ug(c,f-c);a._g(c,-1,f-c,-1,!0,!1)},onAfterAddRemoveRows:function(a,c,f,k){var g=a.rC(),h=a.cC();k?a.Ag(c,0,f,h):g+=f;this.Dj(a,c,0,g-c,h);this.Jj(a,c,g-c);this.Kj(a);this.Gj(a.getSource(),c,f,!0,k);a.Cf().autoCalculation&&a.Cf().recalculateAll(!1)},onAfterAddRemoveColumns:function(a,c,f,k){var g=a.rC(),h=a.cC();k?a.Ag(0,c,g,f):h+=f;this.Dj(a,0,c,g,h-c);this.Ij(a,c,h-c);this.Kj(a);this.Gj(a.getSource(),c,f,!1,k);a.Cf().autoCalculation&&a.Cf().recalculateAll(!1)},onBeforeAddRemoveColumns:function(a,c){var f=a.rC(),g=a.cC();a.Sg(0,c,f,g-c);a.Wg(c,g-c);a._g(-1,c,-1,g-c,!0,!1)},onAfterRemoveName:function(a,c){var f=a.wg(c,!1);f&&(f.updateListening(!0,!1),f.fh(),f.updateListeningOnRemoved())},adjustFormulaOnRemoveName:function(a,c,f){return G(a,c,f)},invalidName:function(a,c){var f,g;c&&(f=a.getCalcSourceModel(),g=f.wg(c.toUpperCase(),!0),g&&g.Yg())},onAfterRemoveTable:function(a,c){var f,g,h,p,m,d,n,e;for(f=0;f<a.length;f++)m=a[f],p=m.source().getCalcSourceModel(),d=m.startRow(),n=m.startColumn(),e=m.endRow()-m.startRow()+1,m=m.endColumn()-m.startColumn()+1,p._g(d,n,e,m,!0,!1);for(d={};this.sh;){if(f=this.sh.ah,g=this.sh.row,h=this.sh.column,!d[g]||!d[g][h])if(p=f.Kf(g,h))if(p=D(p,a,g,h,c),n=f.Qf(g,h))for(n=z(g,h,n.rowCount,n.colCount),e=g;e<g+n.rowCount;e++)for(d[e]||(d[e]={}),m=h;m<h+n.colCount;m++)f.fg(e,m,p,n,e===g&&m===h),d[e][m]=!0;else f.fg(g,h,p,n,!0);else(f.getRowExpression&&f.getRowExpression(g)||f.getColumnExpression&&f.getColumnExpression(h))&&f.Ag(g,h,1,1);this.Fj(this.sh,0)}},v4:function(a){var c,f,k,h,p,m,d,n,e,b,v=a.Cf(),t=function(b,a,e,f){v.useR1C1=!v.useR1C1;a=v.parse(b,a,e,f);return v.useR1C1=!v.useR1C1,v.unparse(b,a,e,f)};Q(t);for(c=0;c<a.sheets.length;c++)for(f=a.sheets[c],k=f.yj(),f=f.conditionalFormats.w4(),h=0;h<f.length;h++){p=f[h];p.initCondition();m=p.condition();d=p.ranges();p=d[0].row;n=d[0].col;for(e=1;e<d.length;e++)p=p>d[e].row?d[e].row:p,n=n>d[e].col?d[e].row:n;if(b=m&&m.getFormulas(),b&&0<b.length){for(d=0;d<b.length;d++)e=b[d],b[d]=t(k,e,p,n);m.setFormulas(b)}}}};D=U.adjustExpressionOnRemoveTable=function(a,c,f,k,h){var g,m,p,d,e,b,n,t,q,l,x=D;if(9===a.type){if(g=a.value,m=a.value2,p=x(g,c,f,k,h),d=m&&x(m,c,f,k,h),g!==p||m!==d)return r.Kh(a.operatorType,p,d)}else if(7===a.type){e=!1;b=[];for(g=0;g<a.arguments.length;g++)n=a.arguments[g],t=x(n,c,f,k,h),e=e||n!==t,b.push(t);if(e)return r.Jh(a,b)}else if(10===a.type){if(q=a.value,l=x(q,c,f,k,h),q!==l)return r.Lh(l)}else if(13===a.type)for(g=0;g<c.length;g++)if(a.baseTable()===c[g])return h?r.Ih:(e=a.getRange(0,0,!0),b=-1===f||1===a.referencePortions(),n=1===e.rowCount&&1===e.columnCount,t=a.source(),n?r.rf(t,null,e.row,e.col,b,!1):new r.uf(t,null,e.row,e.col,e.row+e.rowCount-1,e.col+e.colCount-1,b,!1,b,!1));return a};A=function(){return function(a,c,f,k,h,m,d,n){this.Rj=a;this.Vj=c;this.Wj=f;this.Qj=k;this.Tj=h;this.Uj=m;this.Xj=d;this.Yj=n}}();A.prototype={Nj:function(){return this.Tj-this.Vj},Oj:function(){return this.Uj-this.Wj},Sj:function(a,c,f,k,h){return this.Rj===a&&(-1===this.Vj||this.Vj<=c&&c+k<=this.Vj+this.Xj)&&(-1===this.Wj||this.Wj<=f&&f+h<=this.Wj+this.Yj)},Pj:function(a,c,f,k,h){return this.Qj===a&&(-1===this.Tj||this.Tj<=c&&c+k<=this.Tj+this.Xj)&&(-1===this.Uj||this.Uj<=f&&f+h<=this.Uj+this.Yj)},intersectWith:function(a,c,f,k,h){var g,m;return this.Qj!==a?null:(g=this.Zj(a,c,f,k,h),m=this.Zj(a,this.Vj,this.Wj,k,h),m.intersectWith(g))},Zj:function(a,c,f,k,h){return{row:-1===c?0:c,column:-1===f?0:f,rowCount:-1===c||-1===k?a.rowCount:k,columnCount:-1===f||-1===h?a.colCount:h,intersectWith:q}}}},function(U,u,l){function d(){return this.Ru?void(this.Ru=!1):(this.Su={},this.Tu={},void(this.et?this.et.clearAll():this.ft=new u.CalcEngine.SheetSource(this)))}function J(d,q){var n,l,c,m,h,a=q.ah,w=a.getSource();q.name?(m=q.name,n=a.getNodeByName(m)):(l=q.row,c=q.column,l=void 0===l?-1:l,c=void 0===c?-1:c,n=a.getNode(l,c));h=n.Lf;n=n.Pf;h=d.unparse(w,h,0>l?0:l,0>c?0:c);n?a.setArrayFormula(n.row,n.col,n.rowCount,n.colCount,h):m?a.setFormulaByName(m,h):a.setFormula(l,c,h,null,!0,!0)}function R(d,q,l,r,c,m,h,a,B,y){var n,w,z,p,g,f,k,x,C=m-l,A=h-r,D=q.yj(),F=c.yj();if(9===y.type){if(n=y.value,w=y.value2,z=R(d,q,l,r,c,m,h,a,B,n),p=w&&R(d,q,l,r,c,m,h,a,B,w),n!==z||w!==p)return K.Kh(y.operatorType,z,p)}else if(7===y.type){n=!1;w=[];for(p=0;p<y.arguments.length;p++)z=y.arguments[p],g=R(d,q,l,r,c,m,h,a,B,z),n=n||z!==g,w.push(g);if(n)return K.Jh(y,w)}else if(1===y.type&&y.sf){if(!(y.source&&y.source!==D||y.rowRelative)&&y.row>=l&&y.row<l+a&&!y.columnRelative&&y.column>=r&&y.column<r+B)return K.rf(F,Q,y.row+C,y.column+A)}else if(1===y.type){if(g=!y.rowRelative&&!y.columnRelative,f=!y.endRowRelative&&!y.endColumnRelative,(!y.source||y.source===D)&&(g&&y.row>=l&&y.column>=r||f&&y.endColumn<r+B&&y.endRow<l+a))return K.uf(F,Q,y.row+(g?C:0),y.column+(g?A:0),y.endRow+(f?C:0),y.endColumn+(f?A:0),y.rowRelative,y.columnRelative,y.endRowRelative,y.endColumnRelative)}else if(10===y.type&&(k=y.value,x=R(d,q,l,r,c,m,h,a,B,k),k!==x))return K.Lh(x);return y}var Q,K,O,H,I,L,F,G,q,D,A,r;u=l(42);Q=null;K=l(33);O=l(44).GC$;H=O.each;I=l(43);L=l(26);F=L.u.Nb;G=function(){return L.C(u.SR)()};q=L.j.Fa;D=parseInt;u.ReferenceStyle={a1:0,r1c1:1};A=function(){function d(d,n,q,c){this.Cj=d;this.Uu=q;this.Vu=c;this.Lf=n}return d.prototype={getName:function(){return this.Cj},getRow:function(){return this.Uu},getColumn:function(){return this.Vu},getExpression:function(){return this.Lf},fg:function(d){this.Lf=d}},d}();u.NameInfo=A;r=l(56).Worksheet;O.extend(r.prototype,{resetCalc:function(){d.call(this);this.Ru=!0},recalcAll:function(d){var n,q,l,c,m,h,a,B,y=this.Cf();if(y){if(this.suspendPaint(),y.suspend(!0),d)for(d=(d=this.parent)&&d.sheets||[this],n=0;n<d.length;n++){if(q=d[n],l=q.Tu,c=q.yj(),l)for(m in l)h=l[m],a=h.Lf,a=y.unparse(c,a,0,0),h.Lf=y.parse(c,a,0,0);c=c.getCalcSourceModel();c=c.getAllNodes();for(h=0;h<c.length;h++)a=c[h],(B=a.calc)&&a.Lf&&J(y,B)}y.resume(!0);this.resumePaint()}},recalcRange:function(d,q,l,r){var c=this.Cf();c&&c.recalcRange(this.yj(),d,q,l,r)},recalcRows:function(d){var n,q=this.Cf();if(q&&!q.ignoreDirty()){q.suspend();for(n=0;n<d.length;n++)q.recalculate(this.ft,d[n],-1);q.resume(!1)}},zq:function(d,q,l){(d=this.Cf())&&!d.ignoreDirty()&&d.recalculate(this.ft,q,l)},getCalcService:function(){return this.Wu||(this.Wu=new K.CalcService,this.yj().setCalcService(this.Wu),this.Wu.initParserContext(this.yj())),this.Wu},Cf:function(){return this.getCalcService()},suspendCalcService:function(d){this.Cf()&&this.Cf().suspend(d)},resumeCalcService:function(d){this.Cf()&&this.Cf().resume(d)},yj:function(d){return q(d)||3===d?this.ft:Q},Bj:function(){return!this.et&&this.ft&&(this.et=this.Cf().getSourceModel(this.ft)),this.et},Ns:function(d,q,l,r){return this.Bj()&&this.Bj().tg(d,q,l,r,!0,!0)},Ms:function(d,q,l,r){return this.Bj()&&this.Bj().tg(d,q,l,r,!1,!0)},Vq:function(d,q,l,r,c){c=void 0===c||c;var m;if(!(m=u.X3&&c&&this.Ns(d,q,l,r))){if(c=!c)c=(d=(d=this.Ms(d,q,l,r))&&d.formulas)&&0<d.length;m=c}return!m||(this.Os(4,G().Exp_ChangePartOfArray),!1)},addCustomFunction:function(d){this.Xu(d);this.recalcAll()},Xu:function(d){if(!(d&&d instanceof K.Functions.Function))throw Error(G().Exp_InvalidCustomFunction);this.Su[F(d.name)]=d},getCustomFunction:function(d){return d?this.Su[F(d)]:Q},removeCustomFunction:function(d){d&&(delete this.Su[F(d)],this.recalcAll())},clearCustomFunctions:function(){this.Su={};this.recalcAll()},Pu:function(d){var n,q;return d&&""!==d?(n=this.parent,q=this.getCustomFunction(d),!q&&n&&n.getCustomFunction&&(q=n.getCustomFunction(d)),q):Q},addCustomName:function(d,q,l,r){this.Yu(d,q,l,r,!1)},getCustomName:function(d){return d?this.Tu[F(d)]:void 0},getCustomNames:function(){var d=[];return H(this.Tu,function(n,q){d.push(q)}),d},removeCustomName:function(d){var n,q;d&&(n=F(d),delete this.Tu[n],q={},q[n]=n,this.Zu(q,!1))},clearCustomNames:function(){var d=this.Tu;this.Tu={};this.Zu(d,!1)},createNameInfo:function(d,q,l,r){var c,m=this.Cf(),h=this.yj();return m&&h?(c=m.parse(h,q,l,r),new A(d,c,l,r)):Q},Yu:function(d,q,l,r,c){var m,h,a,n;if(!d||!q)throw Error(G().Exp_InvalidCustomName);if(m=this.Cf(),h=this.yj(),m&&h){if(c)try{a=m.parse(h,q,l,r,!1,!1,!0)}catch(y){}else a=m.parse(h,q,l,r);this.Tu[F(d)]=new A(d,a,l,r);c||(n={},n[d]=d,this.Zu(n,!0))}},Zu:function(d,q){var n,l,c=this.Bj();if(c){for(n in d)(l=c.wg(F(n)))&&(l.updateListening(!0,q),l.fh());this.recalcAll()}},$u:function(d){var n,q;return d&&""!==d?(n=this.parent,q=this.getCustomName(d),!q&&n&&n.getCustomName&&(q=n.getCustomName(d)),q):Q},setFormula:function(d,q,l){this._u(d,q,l,Q,!1)},_u:function(d,l,r,C,c,m){var h,a,n,y;if(1!==m&&2!==m){if(q(m)&&(m=3),0>d||d>=this.getRowCount()||0>l||l>=this.getColumnCount())return void this.Os(0,G().Exp_IndexOutOfRange);h=this.tables;3===m&&0<=d&&0<=l&&h&&!h.av(d,l,1,1,r)||(a=this.Bj(),n=this.conditionalFormats,a&&(y=a.getFormula(d,l),a.setFormula(d,l,r,C,c),n&&n.Nm(),this.Bq("formula",d,l,m,y,r)),this.t4&&this.t4(d,l,1,1,m),this.$p())}},setArrayFormula:function(d,q,l,r,c){this.bv(d,q,l,r,c,!1)},bv:function(d,l,r,C,c,m,h){var a,n,y;if(1!==h&&2!==h){if(q(h)&&(h=3),0>d||d+r>this.getRowCount()||0>l||l+C>this.getColumnCount())return void this.Os(0,G().Exp_IndexOutOfRange);if(this.zl().hasSpans(d,l,r,C))return void this.Os(0,G().Exp_ArrayFromulaSpan);if(a=this.tables,!(3===h&&0<=d&&0<=l&&a)||a.av(d,l,r,C,c)){if(n=this.Bj(),y=this.conditionalFormats,n&&(this.suspendEvent(),n.setArrayFormula(d,l,r,C,c,m),this.resumeEvent(),y&&y.Nm(),1>this.jm)){m=[];for(a=d;a<d+r;a++)for(n=l;n<l+C;n++)m.push({row:a,col:n});this.Bu(d,l,r,C,m,5,h,c)}this.$p()}}},getFormula:function(d,q,l){var n=this.Bj();return n?n.getFormula(d,q,l):Q},getFormulaInformation:function(d,q){var n,l,c={},m=this.Bj();return m&&(n=m.getExpr(d,q),n&&(l=m.getArray(d,q),c.hasFormula=!0,l&&(c.baseRange=new I.Range(l.row,l.col,l.rowCount,l.colCount)),c.isArrayFormula=!!l,d=l?l.row:d,q=l?l.col:q,c.formula=this.Wu.unparse(this.ft,n,d,q),c.formulaWithCulture=this.Wu.unparse(this.ft,n,d,q,!0),c.hasFormula=!!c.formula)),c},hasFormula:function(d,q){var n=this.Bj();return!!n&&n.hasFormula(d,q)},cv:function(d,q,l,r){},dv:function(){var d,q,l,r,c,m=this.Bj();if(m)for(d=0,q=m.rC(),l=m.cC();d<q;){for(r=0;r<l;)(c=m.qg(d,r))&&(c.ng(),c.og()),r++;d++}},clearFormula:function(d,q,l,r,c){var m,h;0>d&&(d=0,l=this.getRowCount());0>q&&(q=0,r=this.getColumnCount());for(m=0;m<l;m++)if(c(this,m+d))for(h=0;h<r;h++)this.setFormula(m+d,h+q,Q)},formulaFromJSON:function(d,q){var n,l,c,m,h,a,r,y,t;if(d){if(n=d.customFunctions)for(l in n)n.hasOwnProperty(l)&&(c=n[l],m=I.getTypeFromString(c.typeName),m&&(h=new m,h.fromJSON(c,q),this.Xu(h)));if(n=d.names){for(l=0;l<n.length;l++)c=n[l],this.Yu(c.name,c.formula,c.row,c.col,!0);this.dv()}if(a=d.data,a&&(r=a.dataTable))for(l=this.getRowCount(),c=this.getColumnCount(),m=0;m<l;m++)if(a=r[m])for(h=0;h<c;h++)(y=(n=a[h])&&n.formula)&&(t=n.arrayInfo,t?this.bv(m,h,D(t.rowCount,10),D(t.colCount,10),y,!0):this._u(m,h,y,Q,!0))}},ev:function(d){var n=this.Wu;n&&!d||(this.Wu=d?d:new K.CalcService,this.yj().setCalcService(this.Wu),this.Wu.initParserContext(this.yj()),n&&d?d.setSourceModel(this.yj(),n.getSourceModel(this.ft)):this.et=this.Wu.getSourceModel(this.ft))},fv:function(){this.gv(!1,1)}});r.adjustCustomNameOnInsertRemove=function(d,q,l,r,c){var m,h,a,n,y,t=this;if(!d.parent||!d.parent.sheets)return m=d.getCustomNames(),void(m&&H(m,function(m,n){h=n.getExpression();a=t.adjustCustomNameExpOnInsertRemove(d,d,q,l,r,c,h);a!==h&&n.fg(a)}));n=d.parent.sheets;(m=d.parent.getCustomNames())&&H(m,function(m,n){h=n.getExpression();a=t.adjustCustomNameExpOnInsertRemove(null,d,q,l,r,c,h);a!==h&&n.fg(a)});for(y=0;y<n.length;y++)(m=n[y].getCustomNames())&&H(m,function(m,B){h=B.getExpression();a=t.adjustCustomNameExpOnInsertRemove(n[y],d,q,l,r,c,h);a!==h&&B.fg(a)})};r.adjustCustomNameExpOnInsertRemove=function(d,q,l,r,c,m,h){var a,n,y,t,w,z,p,g,f,k,x,C,A,D,F;z=q.yj();p=K.Hh(K.Errors.Reference,z);if(9===h.type){if(a=h.value,n=h.value2,y=this.adjustCustomNameExpOnInsertRemove(d,q,l,r,c,m,a),t=n&&this.adjustCustomNameExpOnInsertRemove(d,q,l,r,c,m,n),a!==y||n!==t)return K.Kh(h.operatorType,y,t)}else if(7===h.type){w=!1;z=[];for(g=0;g<h.arguments.length;g++)p=h.arguments[g],f=this.adjustCustomNameExpOnInsertRemove(d,q,l,r,c,m,p),w=w||p!==f,z.push(f);if(w)return K.Jh(h,z)}else if(1===h.type&&h.sf){if(w=h.source||d&&d.yj(),k=h.row,x=h.column,g=k,f=x,w&&w===z&&(m&&!h.rowRelative||!m&&!h.columnRelative)){if(m&&c)k+=k>=l?r:0;else if(!m&&c)x+=x>=l?r:0;else if(m&&!c)if(k>=l+r)k-=r;else{if(k>=l)return p}else if(x>=l+r)x-=r;else if(x>=l)return p;if(k!==g||x!==f)return K.rf(z,Q,k,x,h.rowRelative,h.columnRelative)}}else if(1===h.type){if(w=h.source||d&&d.yj(),g=h.row,f=h.column,C=h.endRow,A=h.endColumn,d=h.rowRelative,q=h.columnRelative,k=h.endRowRelative,x=h.endColumnRelative,a=g,n=f,y=C,t=A,w&&w===z){if(m&&c)g+=!d&&g>=l?r:0,C+=!k&&C>=l?r:0;else if(!m&&c)f+=!q&&f>=l?r:0,A+=!x&&A>=l?r:0;else if(m&&!c){if(!d&&g>=l&&!k&&C<l+r)return p;if(d&&k||C<l)return h;if(!d)if(g>=l+r)g-=r;else if(!(g<l)){if(k)return p;g>l&&(g=l)}if(!k)if(C>=l+r)C-=r;else{if(d)return p;C<l+r&&(C=l-1)}}else{if(!q&&f>=l&&!x&&A<l+r)return p;if(q&&x||A<l)return h;if(!q)if(f>=l+r)f-=r;else if(!(f<l)){if(x)return p;f>l&&(f=l)}if(!x)if(A>=l+r)A-=r;else{if(q)return p;A<l+r&&(A=l-1)}}if(f!==n||A!==t||g!==a||C!==y)return K.uf(z,Q,g,f,C,A,d,q,k,x)}}else if(10===h.type&&(D=h.value,F=this.adjustCustomNameExpOnInsertRemove(d,q,l,r,c,m,D),D!==F))return K.Lh(F);return h};r.adjustModelFormulasAfterSetSheetName=function(d){var n,q,l,c,m,h,a,r,y=d.Cf(),t=y.getSourceModel(d.yj());if(t)for(d=t.getAllNodes(),n=0;n<d.length;n++)if(q=d[n],l=q.calc)for(q.Lf&&J(y,l),c=l.Ze,h=0;h<c.length;h++)if(a=l[c[h]])for(r in a)(m=a[r])&&m.ah!==t&&J(y,m)};r.getDataValidatorsBeforeSetSheetName=function(d){var n,q,l,c,m,h,a=d.Cf(),r=d.yj(),y=[[],[]],t=I.Lj.Mj();for(m=0;m<t.length;m++)if(n=t[m].validator,q=n.condition(),l=q.getFormulas(),d=[],l&&0<l.length){for(h=0;h<l.length;h++)c=l[h],c=a.parse(r,c,0,0),d.push(c);y[0].push(q);y[1].push(d)}return y};r.adjustValidatorsAfterSetSheetName=function(d,q){var n,l,c,m,h,a,r=q[0].length,y=d.Cf(),t=d.yj();for(n=0;n<r;n++){l=q[0][n];c=q[1][n];m=[];for(h=0;h<c.length;h++)a=y.unparse(t,c[h],0,0),m.push(a);l.setFormulas(m)}};r.copyFormula=function(d,q,l,r,c,m,h,a,B){K&&K.CalcOperatorAdjustor.copyFormula(d.Bj(),q,l,r.Bj(),c,m,h,a,B)};r.moveFormula=function(d,q,l,r,c,m,h,a){K&&K.CalcOperatorAdjustor.moveFormula(d,q,l,r,c,m,h,a)};r.adjustCustomNameOnMove=function(d,q,l,r,c,m,h,a){var n,y,t,w,z;if(!d.parent||!d.parent.sheets)return n=d.getCustomNames(),void(n&&H(n,function(p,g){y=g.getExpression();t=R(d,d,q,l,r,c,m,h,a,y);t!==y&&g.fg(t)}));w=d.parent.sheets;(n=d.parent.getCustomNames())&&H(n,function(p,g){y=g.getExpression();t=R(null,d,q,l,r,c,m,h,a,y);t!==y&&g.fg(t)});for(z=0;z<w.length;z++)(n=w[z].getCustomNames())&&H(n,function(p,g){y=g.getExpression();t=R(w[z],d,q,l,r,c,m,h,a,y);t!==y&&g.fg(t)})};r.$n("calc",{priority:1E3,init:d,dispose:function(d){!1!==d&&(this.ft=Q,this.Wu=Q)},attach:function(d){var n=l(61).Workbook;d instanceof n?this.ev(d.Wu):this.ev()},onLayoutChanged:function(d){var n,q=d.changeType,l=d.row,c=d.rowCount,m=d.col,h=d.colCount;this.Cf().isAdjustSuspended()||(n=u.X3&&this.Bj(),n&&("addingRows"===q?this.Vq(l,0,0,this.getColumnCount())?(n.Cf().ih().onBeforeAddRemoveRows(n,l),r.adjustCustomNameOnInsertRemove(this,l,c,!0,!0),n.addRows(l,c)):d.canAdd=!1:"addRows"===q?n.Cf().ih().onAfterAddRemoveRows(n,l,c,!0):"deletingRows"===q?this.Vq(l,0,c,this.getColumnCount())?(n.Cf().ih().onBeforeAddRemoveRows(n,l),r.adjustCustomNameOnInsertRemove(this,l,c,!1,!0),n.deleteRows(l,c)):d.canDelete=!1:"deleteRows"===q?n.Cf().ih().onAfterAddRemoveRows(n,l,c,!1):"addingColumns"===q?this.Vq(0,m,this.getRowCount(),0)?(n.Cf().ih().onBeforeAddRemoveColumns(n,m),r.adjustCustomNameOnInsertRemove(this,m,h,!0,!1),n.addColumns(m,h)):d.canAdd=!1:"addColumns"===q?n.Cf().ih().onAfterAddRemoveColumns(n,m,h,!0):"deletingColumns"===q?this.Vq(0,m,this.getRowCount(),h)?(n.Cf().ih().onBeforeAddRemoveColumns(n,m),r.adjustCustomNameOnInsertRemove(this,m,h,!1,!1),n.deleteColumns(m,h)):d.canDelete=!1:"deleteColumns"===q&&n.Cf().ih().onAfterAddRemoveColumns(n,m,h,!1)))},toJson:function(d){var n,q,l,c=this;q=c.Su;O.isEmptyObject(q)||(d.customFunctions=q);n=[];q=c.getCustomNames();l=c.Cf();q&&l&&(H(q,function(d,h){var a=h.getName(),m=h.getRow(),q=h.getColumn(),t=h.getExpression(),t=l.unparse(c.yj(),t,m,q,!1,!0);n.push({name:a,formula:t,row:m,col:q})}),0<n.length&&(d.names=n));(q=c.et)&&q.toJSON(d)},fromJson:function(d,q,l){this.clearCustomFunctions();this.clearCustomNames();l&&this.formulaFromJSON(d,q)}});U.exports=u},function(U,u,l){function d(){return K.C(u.SR)()}function J(b){return b.getActiveSheet()}function R(b,a){var f,c,k=this;k.name="";k.kv=!1;k.lv=-1;k.eq=0;k.mv=!1;k.options=g(e,function(b,a,e){k.Op(b,a,e)});k.T3(a);f=1;a&&(c=a.sheetCount,typeof c===Z&&(f=c));k.qo=b;k.ad(f,b)}function Q(b){this.yw=b}var K,O,H,I,L,F,G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f,k,x,W,P,V,Z,e;u=l(42);K=l(26);O=l(62);H=l(44).GC$;I=l(43);L=l(48).oo;F=l(63).Commands;G=l(65).hv;q=l(66).iv;D=l(68).jv;A=l(50).To;r=l(54).S4;n=O.UndoManager;w=O.CommandManager;z=H.each;C=H.extend;c=I.Ul;m=u.X3;h=I.En;a=I.Events;B=I.Lj;y=I.Vl;t=I.Rect;E=I.Im;M=K.j.Fa;p=I.Ul.Nl;l=I.Ul.Pl;g=c.Ql;f=window.jQuery;k=parseInt;x=window;W=document;P=Math.round;V=Math.min;Z="number";u.HorizontalPosition={left:0,center:1,right:2,nearest:3};u.VerticalPosition={top:0,center:1,bottom:2,nearest:3};u.ShowResizeTip={none:0,column:1,row:2,both:3};u.ShowScrollTip={none:0,horizontal:1,vertical:2,both:3};u.AutoFitType={cell:0,cellWithHeader:1};u.InvalidOperationType={setFormula:0,copyPaste:1,dragFill:2,dragDrop:3,changePartOfArrayFormula:4,changeSheetName:5};u.ResizeZeroIndicator={"default":0,enhanced:1};u.CopyPasteHeaderOptions={noHeaders:0,rowHeaders:1,columnHeaders:2,allHeaders:3};e={allowUserDragDrop:!0,allowUserDragFill:!0,allowUserZoom:!0,allowUserResize:!0,allowUndo:!0,allowSheetReorder:!0,defaultDragFillType:5,showDragFillSmartTag:!0,showHorizontalScrollbar:!0,showVerticalScrollbar:!0,scrollbarShowMax:!0,scrollbarMaxAlign:!1,tabStripVisible:!0,tabStripRatio:.5,tabEditable:!0,newTabVisible:!0,cutCopyIndicatorVisible:!0,cutCopyIndicatorBorderColor:"#217346",tabNavigationVisible:!0,backColor:"white",backgroundImage:null,backgroundImageLayout:0,showResizeTip:0,showDragDropTip:!0,showDragFillTip:!0,scrollIgnoreHidden:!1,highlightInvalidData:!1,showScrollTip:0,grayAreaBackColor:null,useTouchLayout:!1,hideSelection:!1,resizeZeroIndicator:1,allowUserEditFormula:!0,enableFormulaTextbox:!0,referenceStyle:0,autoFitType:0,allowCopyPasteExcelStyle:!0,allowExtendPasteRange:!1,copyPasteHeaderOptions:3,font:null};I.Zn(R);R.Qp=e;R.nv=1;R.ov=0;R.prototype={constructor:R,commandManager:function(){return this.wu},undoManager:function(){return this.pv},Op:function(b,a,e){e=J(this);switch(b){case "allowUndo":this.pv&&(this.pv.zc=a);break;case "backColor":case "cutCopyIndicatorBorderColor":case "cutCopyIndicatorVisible":case "grayAreaBackColor":case "hideSelection":case "highlightInvalidData":case "resizeZeroIndicator":case "allowUserDragFill":e&&e.$p();break;case "backgroundImage":case "backgroundImageLayout":this.Ys();e&&e.$p();break;case "newTabVisible":case "tabNavigationVisible":(a=this.hq)&&a.repaint();break;case "showHorizontalScrollbar":case "showVerticalScrollbar":case "useTouchLayout":case "tabStripVisible":this.fq();break;case "tabStripRatio":this.aq();break;case "scrollIgnoreHidden":case "scrollbarMaxAlign":case "scrollbarShowMax":e&&(e.oq=!0,e.jq=!0,e.$p());break;case "referenceStyle":(b=m&&this.Cf())&&(b.useR1C1=1===a,b.ih().v4(this))}},ad:function(b,a){var e,f,c=this;m&&c.qv();c.rv=[];c.sv=p("input");c.jm=0;c.xD=0;c.tv={fromSheet:null,isCutting:!1};c.Ks=null;c.sheets=[];c.Lq={};c.pv=new n(c,-1,c.options.allowUndo);e=c.wu=new w(c);e.addListener("workbookUndo",function(b){var a=c.wu[b.command.cmd];a&&a.canUndo()&&c.undoManager().Cc(b.command,b.s4)});F.uv(e);R.ao(c,"init");for(e=0;e<b;e++)f=c.vv(c.wv(e)),c.sheets.push(f),f.Ls(c);c.suspendPaint();a&&c.ws(a);c.uu=new r(c);c.resumePaint()},T3:function(b){var a=this.options;b=b||{};b=C(!0,{},e,b);z(b,function(b,e){a.hasOwnProperty(b)&&(a[b]=e)})},xv:function(){return!this.Ks&&this.qo&&(this.Ks=p("div"),H(this.Ks).css({position:"relative",left:0,top:0,height:0}),H(this.qo).prepend(this.Ks)),this.Ks},wv:function(b){var a,e,f,c,g,k;a=this.getSheetCount();this.lv<a?this.lv=a:this.lv++;(M(b)||b<this.lv)&&(b=this.lv);a=!1;f=this.sheets;do for(e="Sheet"+(b+1),c=f.length,g=0;g<c;g++)if(g in f){if(k=f[g],k.Cj===e){b++;a=!0;break}a&&(a=!1)}while(a);return e},vv:function(b){return new u.Worksheet(b)},ws:function(b){var a,e,c,g,k,h,d=this;if(b){d.qo=b;f&&f(b).data("workbook",d);H(b).data("workbook",d).attr("gcUIElement","gcSpread").addClass("gc-no-user-select");x.Yl.qm();d.cultureChangedHandler=function(){d.Av(d)};W.addEventListener("cultureChanged",d.cultureChangedHandler);a=p("table");e=a.style;a.cellSpacing=0;a.cellPadding=0;a.border=0;e.width="100%";e.height="100%";e.border=0;for(e=e.margin=0;2>e;e++){g=p("tr");for(c=0;2>c;c++)k=p("td"),h=k.style,h.padding=0,h.border=0,g.appendChild(k);a.appendChild(g)}b.appendChild(a);d.xs=p("div");d.xs.id=b.id+"vp";H(a.rows[0].cells[0]).append(d.xs);d.St=new G(!1);e=d.St.Bv();c=d.Cv=p("div");H(c).append(e);H(a.rows[0].cells[1]).append(c);H(e).bind("scroll.gcScrollbar",function(b,a){var e=a.scrollEventType;b.data=d;1===a.scrollOrientation&&(0===e||1===e||2===e||3===e||5===e?Q.Dv(b,a):4===e&&Q.Ev(b))}).bind("mousedown.gcScrollbar",function(b){b.data=d;Q.Fv(b)}).bind("mouseup.gcScrollbar",function(b){b.data=d;Q.Gv(b)});e=p("table");c=e.style;e.cellSpacing=0;e.cellPadding=0;e.border=0;c.border=0;c.margin=0;H(e).css("user-select","none");g=p("tr");for(c=0;2>c;c++)k=p("td"),h=k.style,h.padding=0,h.border=0,g.appendChild(k);e.appendChild(g);H(a.rows[1].cells[0]).append(e);c=d.Hv=p("div");g=c.style;g.width=""+d.Iv()*H(b).width()+"px";g.height=""+d.Jv()+"px";g.fontSize="10pt";g.fontFamily="Arial";H(e.rows[0].cells[0]).append(c);d.Pt=new G(!0);c=d.Pt.Bv();g=d.Kv=p("div");H(g).append(c);H(e.rows[0].cells[1]).append(g);H(c).bind("scroll.gcScrollbar",function(b,a){var e=a.scrollEventType;b.data=d;0===a.scrollOrientation&&(0===e||1===e||2===e||3===e||5===e?Q.Lv(b,a):4===e&&Q.Mv(b))}).bind("mousedown.gcScrollbar",function(b){b.data=d;Q.Nv(b)}).bind("mouseup.gcScrollbar",function(b){b.data=d;Q.Gv(b)});d.Ov=p("div");H(a.rows[1].cells[1]).append(d.Ov);d.ku=new Q(this);H(x).bind("resize.gcSpread",function(){d.Pv()});(a=J(d))&&a.ws(d.xs);d.Qv();d.fq();d.Rv(b);R.ao(d,"setHost",b)}},Rv:function(b){var a=this,e=k(H(b).attr("tabindex"),10)||0,f=p("div");H(f).css({position:"absolute",overflow:"hidden"}).attr("gcUIElement","gcSheetFocusElementForTab").attr("tabindex",e).bind("focus",function(){a.Sv||J(a).zt();a.Sv=!1});b.insertBefore(f,null);a.Tv=f},Uv:function(){var b=this.Tv;b&&(this.Sv=!0,b.focus())},no:function(){var b,a,e;b=this.Pt;var c=this.St;a=this.sheets;h.Tn(this);H(x).unbind("resize.gcSpread");this.Zv&&clearTimeout(this.Zv);b&&b.dispose();c&&c.dispose();this.mu();B.$b();for(b=0;b<a.length;b++)a[b].no(!0);a.splice(0,a.length);(a=this.uu)&&a.no();(a=this.qo)&&(e=H(a),W.removeEventListener("cultureChanged",this.cultureChangedHandler),e.html("").removeAttr("gcUIElement").removeClass("gc-no-user-select"),e.attr("class")||e.removeAttr("class"),e.attr("unselectable")||e.removeAttr("unselectable"),e.data("workbook")&&e.data("workbook",null),f&&f(a).data("workbook")&&f(a).data("workbook",null));this.pv=this.Cv=this.Kv=null;this.hq&&(this.hq.no(),this.hq=null);R.ao(this,"dispose");this.Tv&&(H(this.Tv).unbind("focus"),this.Tv=null);this.Wu&&(this.Wu.dispose(),this.Wu=null,this.yv=null,this.zv=null);this.bt&&(this.bt.no(),this.bt=null);A.no()},mu:function(){var b=this.sheets,a,e;H(this.sv).unbind(".gcSpread");for(a=0;a<b.length;a++)e=b[a],e.mu()},Qv:function(){var b,a,e,f=k(E.Lm("").zIndex),c=f!==this.Vv,g=this.qo.getAttribute("id")+"_tabStrip",h=this.hq;c&&(this.Vv=f);b=this.Jv();a=this.Wv();e=this.Xv();h&&!c?h.repaint():(h&&h.no(),h=this.hq=2007<f?new q(g):new D(g),h.Yv(this),h.ws(this.Hv));var f=this.Cv,d,m,c=E.Lm("gc-vertical-scrollbar ui-widget-header ui-state-default btn btn-default"),g=2007<k(c.zIndex)?1:0,h=e-a;0===h%2?(d=h/2,m=d-g):(d=(h-g)/2,m=d);H(f).css({"box-sizing":"content-box",border:"none","border-color":"none","border-left-style":"solid","border-left-width":g+"px","border-left-color":c.borderLeftColor,"background-color":c.backgroundColor,width:a,padding:"0px "+d+"px 0px "+m+"px",margin:0});d=this.Kv;var p,n;m=E.Lm("gc-horizontal-scrollbar ui-widget-header ui-state-default btn btn-default");f=2007<k(m.zIndex)?1:0;c=b-a;0===c%2?(p=c/2,n=p-f):(p=(c-f)/2,n=p);H(d).css({"box-sizing":"content-box",border:"none","border-color":"none","border-top-style":"solid","border-top-width":f+"px","border-top-color":m.borderTopColor,"background-color":m.backgroundColor,height:a,padding:n+"px 0px "+p+"px 0px",margin:0});a=this.Ov;p=E.Lm("gc-footer-corner ui-widget-header ui-state-default btn btn-default");H(a).css({border:"none",padding:0,margin:0,width:e+"px",height:b+"px","background-color":p.backgroundColor})},Pv:function(){var b=this,a=b.Zv;a&&clearTimeout(a);b.Zv=setTimeout(function(){h.Un();b.fq();b.Zv=null},100)},fq:function(){this.kv||(this.kv=!0,this.$v(),this.kv=!1)},$v:function(){var b,a,e,f,c,g,k,h,d,m,p,n,t,q,l,x,y,r,B=this,w=B.Jv(),z=B.Wv(),E=B.Xv(),C=B.qo;C&&(b=B.options,a=b.showVerticalScrollbar,e=b.showHorizontalScrollbar,f=b.tabStripVisible,c=e||f,g=H(C),k=g.width(),h=g.height(),d=B.Ov,m=B.Pt,p=B.St,n=B.xs.style,t=B.Hv.style,n.width=""+(k-(a?E:0))+"px",H(B.Cv).css("display",a?"block":"none"),H(d).css("width",(a?E:0)+"px"),n.height=""+(h-(c?w:0))+"px",H(B.Kv).css("display",c?"block":"none"),H(d).css("height",c?w:"0px"),e?(H(m.Bv()).show(),b.tabStripRatio=b.tabStripRatio):H(m.Bv()).hide(),q=H(B.xs).width(),l=P(B.Iv()*q),l===q&&(l=q-1),t.width=""+l+"px",t.height=""+w+"px",p.Vo(z),p._v(H(B.xs).height()),x=k-(f?l:0)-(a?E:0),m.Vo(0<x?x:1),m._v(z),y=J(B),y&&(0===y.lq&&(y.lq=y._t()),0===y.qq&&(y.qq=y.$t()),y.fq()),B.Ut(),B.Xt(),y&&(y.invalidateLayout(),y.repaint()),f?H(B.Hv).show():H(B.Hv).hide(),B.hq&&B.hq.fq(),r=g.width(),k===r||B.aw||(B.aw=!0,setTimeout(function(){delete B.aw;B.$v()},1)))},Ut:function(){var b,a,e,f,c,g,k,h,d,m,p,n,t=J(this),q=this.options;t&&(b=t.frozenColumnCount(),a=t.getColumnCount()-t.frozenTrailingColumnCount()-b,e=t.am(),f=0===a?b:b+a-1,c=t.qq,k=t.fu(e.er,b,f),q.scrollbarMaxAlign&&(f=k),q.scrollbarShowMax||(h=t.iu(),d=h.lastNonNullCol,m=t.fu(e.er,b,d),m===b&&(m++,m>f&&(m=f)),f=c>m?c<f?c:f:m),c>f&&(t.qq=f),p=t.Ot(t.qq),-1!==p&&p!==t.qq&&(t.qq=p),g=t.gu(),1>g&&(g=1),n=this.Pt,n&&(n.bw(t.Qt(b)),n.cw(t.Qt(f)),n.dw(g),n.ew(),n.value(t.Qt(t.qq))))},Xt:function(){var b,a,e,f,c,g,k,h,d,m,p,n,t=J(this),q=this.options;t&&(b=t.frozenRowCount(),a=t.getRowCount()-t.frozenTrailingRowCount()-b,e=t.am(),f=0===a?b:b+a-1,c=t.lq,k=t.eu(e.jr,b,f),q.scrollbarMaxAlign&&(f=k),q.scrollbarShowMax||(h=t.iu(),d=h.lastNonNullRow,m=t.eu(e.jr,b,d),m===b&&(m++,m>f&&(m=f)),f=c>m?c<f?c:f:m),c>f&&(t.lq=f),p=t.Rt(t.lq),-1!==p&&p!==t.lq&&(t.lq=p),g=t.hu(),1>g&&(g=1),n=this.St,n&&(n.bw(t.Tt(b)),n.cw(t.Tt(f)),n.dw(g),n.ew(),n.value(t.Tt(t.lq))))},aq:function(){var b,a,e,f,c,g,k,h,d,m,p=this.Jv(),n=this.Wv(),t=this.Xv(),q=this.qo;q&&(b=this.options,a=b.tabStripVisible,e=H(q),f=e.width(),c=this.Pt,g=this.Hv.style,k=H(this.xs).width(),h=P(this.Iv()*k),h===k&&(h=k-1),g.width=""+h+"px",g.height=""+p+"px",d=f-(a?h:0)-(b.showVerticalScrollbar?t:0),c.Vo(0<d?d:1),c._v(n),m=J(this),m&&0===m.qq&&(m.qq=m.$t()),this.Ut(),a?H(this.Hv).show():H(this.Hv).hide(),this.hq&&this.hq.fq())},suspendPaint:function(){var b,a=this.hq,e=this.sheets;this.xD++;for(b=0;b<e.length;b++)e[b].suspendPaint();a&&a.fw()},resumePaint:function(){var b,a=this.hq,e=this.sheets;this.xD-=0<this.xD?1:0;for(b=0;b<e.length;b++)e[b].resumePaint();a&&a.gw()},isPaintSuspended:function(){return 0<this.xD},Ys:function(){var b,a,e,f,g,k=this,h=k.options.backgroundImage,d=k.options.backgroundImageLayout,m=J(k);if(m&&h&&(b=H(m.Ws()),b.css({"background-image":"url('"+h+"')","background-repeat":"no-repeat"}),!M(d))){(b=k.bt)||(b=k.bt=new L(function(){k.bt&&k.Ys()}));try{b.ko(h)?(a=b.lo(h),e=m.Dr(),f=e.width,g=e.height,c.ql(m.Ws(),f,g,a.width,a.height,d)):b.fo(h)}catch(ma){}}},hw:function(b,a){void 0===a&&(a=!0);this.hq.iw(this.getSheetIndex(b.name()),a)},startSheetIndex:function(b){var a=this.hq;return 0===arguments.length?a?a.gq:0:(a&&(a.hE(b)||(b=a.jw(b),-1===b&&(b=a.rw(b))),a.gq=b),this.aq(),this)},Iv:function(){var b,a,e,f,c,g=this.options;return g.showHorizontalScrollbar?(b=g.tabStripRatio,isNaN(b)?.5:(a=0,e=this.xs,f=this.hq,e&&f&&(c=H(e).width(),a=f.kw/c),b<a?b=a:1<b&&(b=1),b)):1},destroy:function(){H(x).unbind("resize.gcSpread");this.no()},repaint:function(){var b;(b=this.hq)&&b.repaint();(b=J(this))&&b.repaint()},refresh:function(){this.qo&&(E.Nm(),this.Qv(),this.fq(),this.repaint())},getHost:function(){return this.qo},invalidateLayout:function(){var b=J(this);b&&b.invalidateLayout()},addNamedStyle:function(b){this.Kq(b);(b=J(this))&&b.$p()},Kq:function(b){if(b){if(!b.name)throw Error(d.Exp_EmptyNamedStyle);var a=b.name.toUpperCase();this.Lq[a]=b}},getNamedStyle:function(b){return this.Mq(b,!0)},Mq:function(b,a){var e,f=this.Lq;return f&&b?(b=b.toUpperCase(),e=f[b],e&&a&&this.Jq(),e):null},Jq:function(){var b,a=this.sheets;for(b=0;b<a.length;b++)a[b].Jq()},removeNamedStyle:function(b){var a,e=this.Lq;e&&b&&(b=b.toUpperCase(),e.hasOwnProperty(b)&&(delete e[b],this.Jq(),a=J(this),a&&a.$p()))},getNamedStyles:function(){var b=[],a=this.Lq;return a&&z(a,function(a,e){b.push(e)}),this.Jq(),b},getActiveSheet:function(){return this.sheets&&0<this.sheets.length?this.sheets[this.eq]:null},setActiveSheet:function(b){this.lw(b,2)},lw:function(b,a){var e,f=this.sheets;for(e=0;e<f.length;e++)f[e].name()===b&&this.dq(e,a)},getActiveSheetIndex:function(){return this.eq},setActiveSheetIndex:function(b){this.dq(b,2)},dq:function(b,e,f,g){var k,h,d,m,p;typeof b===Z&&b!==this.eq&&(k=this.sheets[b])&&k.visible()&&(h=c.rl(),(h.ipad||h.iphone)&&(d=this.mw,d&&300>(new Date).valueOf()-d)||(d=J(this),m={oldSheet:d,newSheet:k,needTriggerSheetChange:!0},this.Wq(a.FormulatextboxActiveSheetChanging,m),p={oldSheet:d,newSheet:k,cancel:!1},(g=m.needTriggerSheetChange&&g)&&this.Wq(a.ActiveSheetChanging,p),!1===p.cancel&&(this.eq=b,k!==d&&(d&&d.no(!1),this.nw(k,e,!1,f)),this.fq(),this.Wq(a.FormulatextboxActiveSheetChanged,{oldSheet:d,newSheet:k}),g&&this.Wq(a.ActiveSheetChanged,{oldSheet:d,newSheet:k})),(h.ipad||h.iphone)&&(this.mw=(new Date).valueOf())))},nw:function(b,a,e,f){e||b.ws(this.xs);e=(e=y.Xl())&&e.parent===this;a=2===a?e:1===a;y.Zl(null);!this.mv&&a&&b.zt(f);b.qs();b.os()},addSheet:function(b,a){this.ow(b,2,a)},ow:function(b,a,e){var f,c,g,k,h,m;if(e||(e=this.vv(this.wv(b))),c=this.sheets,g=c.length,e.Cj)for(f=0;f<g;f++){if(c[f].Cj===e.Cj)throw d().Exp_NotSupported;}else e.Cj=this.wv(b);this.pw(e);k=J(this);h=this.eq;b=g-b;m=[];for(f=0;f<b&&0<g;f++)m.push(c.pop());c.push(e);for(e.Ls(this);0<m.length;)c.push(m.pop());g=c.length;1===g?(this.xs&&e.ws(this.xs),this.eq=0):(0>h&&this.hq&&(h=this.hq.jw(h)),this.eq=h);e=J(this);e!==k&&(k&&k.no(!1),e&&this.nw(e,a,1===g),this.fq());this.hq&&(0>this.hq.gq&&(this.hq.gq=this.eq),this.hq.repaint())},removeSheet:function(b){this.qw(b,2)},qw:function(b,a){var e,f,c,g,k,h=this.sheets,m=this.Wu,p=this.hq,n=h.length;if(isNaN(b)||0>b||b>=n)throw Error(d().Exp_IndexOutOfRange);if(e=b<=this.eq||b===n-1,f=J(this),b<this.eq&&this.eq--,c=h[b],c.mu(),h.splice(b,1),n=h.length,0===n)this.eq=-1;else if(this.eq>=n)this.eq=p.rw(n);else{for(g=this.eq;g<n;g++)if(h[g].visible()){this.eq=g;break}g>=n&&(this.eq=-1)}e&&(k=h[this.eq],f!==k&&(f&&f.no(!1),k&&this.nw(k,a,!1)));m&&m.removeSource(c.yj());p&&(p.gq>=n?this.startSheetIndex(p.rw(n)):0>p.gq?this.startSheetIndex(p.jw(-1)):this.fq())},clearSheets:function(){var b,a=this.sheets,e=this.Wu,f=this.hq;for(b=0;b<a.length;b++)a[b].mu(),a[b].no(!1);a.splice(0,a.length);e&&e.clearSource();this.eq=-1;f&&(f.gq=-1,f.repaint());B.$b()},getSheet:function(b){var a=this.sheets;return 0<=b&&b<a.length?a[b]:null},getSheetFromName:function(b){var a,e=this.sheets;for(a=0;a<e.length;a++)if(e[a].name()===b)return e[a];return null},getSheetIndex:function(b){var a,e=this.sheets;for(a=0;a<e.length;a++)if(e[a].name()===b)return a;return null},getSheetCount:function(){return this.sheets.length},setSheetCount:function(b){this.sw(b,2)},sw:function(b,a){var e;if(0>b)throw d().Exp_ArgumentOutOfRange;if(0===b&&this.clearSheets(),e=this.sheets.length,b<e)for(--e;e>=b;e--)this.qw(e,a);else if(b>e)for(;e<b;e++)this.ow(e,a)},bind:function(b,a,e){var f,c,g=this.sheets;this.rv.push({type:b,data:a,fn:e});H(this.sv).bind(b+".gcSpread",a,e);for(f=0;f<g.length;f++)c=g[f],c.bind(b,a,e)},unbind:function(b,a){var e,f,c=this.sheets,g=this.rv;for(e=0;e<g.length;e++)f=g[e],f.type===b&&g.splice(e,1);H(this.sv).unbind(b+".gcSpread",a);for(e=0;e<c.length;e++)f=c[e],f.unbind(b,a)},unbindAll:function(){var b,a,e=this.sheets;this.rv.length=0;H(this.sv).unbind(".gcSpread");for(b=0;b<e.length;b++)a=e[b],a.unbindAll()},Fu:function(b,a,e){var f,c,g=this.sheets;this.rv.push({type:b,data:a,fn:e});H(this.sv).bind(b+".gcSpreadInternal",a,e);for(f=0;f<g.length;f++)c=g[f],c.Fu(b,a,e)},Gu:function(b,a){var e,f,c=this.sheets,g=this.rv;for(e=0;e<g.length;e++)f=g[e],f.type===b&&g.splice(e,1);H(this.sv).unbind(b+".gcSpreadInternal",a);for(e=0;e<c.length;e++)f=c[e],f.Gu(b,a)},nu:function(){var b,a,e=this.sheets;this.rv.length=0;H(this.sv).unbind(".gcSpreadInternal");for(b=0;b<e.length;b++)a=e[b],a.nu()},Wq:function(b,a){0===this.jm&&H(this.sv).trigger(b,a)},tw:function(b,e,f,c){this.Wq(a.ButtonClicked,{sheet:b,sheetName:b.Cj,row:e,col:f,sheetArea:c})},pw:function(b){var a,e,f=this.rv;for(a=0;a<f.length;a++)e=f[a],b.bind(e.type,e.data,e.fn)},suspendEvent:function(){var b,a,e=this.sheets;this.jm++;for(b=0;b<e.length;b++)a=e[b],a.suspendEvent()},resumeEvent:function(){var b,a,e=this.sheets;this.jm--;0>this.jm&&(this.jm=0);for(b=0;b<e.length;b++)a=e[b],a.resumeEvent()},focus:function(b){!1===b?y.Zl(null):(b=J(this))&&b.zt()},nextControl:l("nextControl",null),previousControl:l("previousControl",null),Wv:function(){return 2007<this.Vv?15:18},Xv:function(){return 2007<this.Vv?22:this.Wv()},Jv:function(){return 2007<this.Vv?28:this.Wv()},uw:function(b,a,e,f){var c;this.vw||(c=p("div"),H(c).addClass("gc-spread-toolTip ui-state-default ui-widget-content btn-default").css({position:"absolute",padding:"0px 3px 0px 3px",font:"normal normal normal 11pt calibri","box-shadow":"1px 2px 5px rgba(0,0,0,0.4)"}).width("auto").height("auto").appendTo(W.body),this.vw=c);this.ww(b,a,e,f)},ww:function(b,a,e,f){var c,g,k,h,d=J(this);d&&(c=this.vw,c&&(g=H(c),b?(g.html(b),g.show()):g.hide(),k=d.Vs(),f&&(e-=k.top,a-=k.left),h=d.Dr(),e=V(e,h.y+h.height-g.outerHeight()),a=V(a,h.x+h.width-g.outerWidth()),M(e)||g.css("top",e+k.top),M(a)||g.css("left",a+k.left)))},xw:function(){var b=this.vw;b&&(H(b).remove(),this.vw=null)},Av:function(b){var a,e,f,c,g,k,h,d,m,p=b.sheets;I.mn.wn();b.invalidateLayout();a=0;for(e=p.length;a<e;a++)for(f=p[a],c=f.getRowCount(),g=f.getColumnCount(),k=0;k<c;k++)for(h=0;h<g;h++)d=f.getValue(k,h),d instanceof Date&&(m=f.getStyle(k,h),m&&m.$o(d));b.repaint();R.ao("onCultureChanged")},getTab:function(){return this.hq}};u.Workbook=R;C(Q,{Lv:function(b,a){var e,f,c,g,h,d,m,p,n,v=b.data,t=J(v);t&&a&&(e=a.newValue,f=a.oldValue,c=a.scrollEventType,g=k(e,10),g=t.du(g),f=a.oldValue=M(f)?0:k(f,10),t.oq=!1,d=v.options.scrollbarShowMax,2===c||0===c?(2===c&&(g=t.zw()),h=t.Ot(g,!0),-1!==h&&h!==g&&(g=h),d||(t.oq=!0,a.ignoreUpdatePosition=!0)):3!==c&&1!==c||(3===c&&(g=t.Aw(),g===t.qq&&g++),d||(t.oq=!0,1===c&&e===f&&g++),h=t.Ot(g),-1!==h&&h!==g&&(g=h)),m=t.$t(),p=t.ps(),g<m&&(g=m),g>p&&(g=p),n=t.Qt(g),e!==n&&(a.newValue=n),f!==n&&v.ku.Bw(g,!0))},Mv:function(b){var a,e,f,c,g;b=b.data;var k=J(b);k&&(a=b.Pt,e=k.du(a.value()),f=k.$t(),c=k.ps(),g=k.Cw,e<f?a.value(k.Qt(f)):e>c&&a.value(k.Qt(c)),b.xw(),b.options.scrollbarShowMax||(b.ku.scrolling?k.oq=!0:b.Ut()),g&&g.focus())},Nv:function(b){var a,e,f,c,g=b.data;g&&(a=J(g),a&&(a.zt(),e=g.options.showScrollTip,1!==e&&3!==e||(f=H(b.srcElement||b.target),c=f.parent(),(f&&f.hasClass("gc-scroll-handle")||c&&c.hasClass("gc-scroll-handle")||f&&f.hasClass("gc-scroll-bar")||c&&c.hasClass("gc-scroll-bar"))&&(f||c)&&g.ku.Dw(!1,b))))},Dv:function(b,a){var e,f,c,g,h,d,m,p,n,t=b.data,v=J(t);v&&a&&(e=a.newValue,f=a.oldValue,c=a.scrollEventType,g=k(e,10),g=v.cu(g),f=a.oldValue=M(f)?0:k(f,10),v.jq=!1,d=t.options.scrollbarShowMax,2===c||0===c?(2===c&&(g=v.Ew()),h=v.Rt(g,!0),-1!==h&&h!==g&&(g=h),d||(v.jq=!0,a.ignoreUpdatePosition=!0)):3!==c&&1!==c||(3===c&&(g=v.Fw(),g===v.lq&&g++),d||(v.jq=!0,1===c&&e===f&&g++),h=v.Rt(g),-1!==h&&h!==g&&(g=h)),m=v._t(),p=v.ns(),g<m&&(g=m),g>p&&(g=p),n=v.Tt(g),e!==n&&(a.newValue=n),f!==n&&t.ku.Bw(g))},Ev:function(b){var a,e,f,c,g;b=b.data;var k=J(b);k&&(a=b.St,e=k.cu(a.value()),f=k._t(),c=k.ns(),g=k.Cw,e<f?a.value(k.Tt(f)):e>c&&a.value(k.Tt(c)),b.xw(),b.options.scrollbarShowMax||(b.ku.scrolling?k.jq=!0:b.Xt()),g&&g.focus())},Fv:function(b){var a,e,f,c,g=b.data;g&&(a=J(g),a&&(a.zt(),e=g.options.showScrollTip,2!==e&&3!==e||(f=H(b.srcElement||b.target),f&&(c=f.parent(),(f.hasClass("gc-scroll-handle")||c&&c.hasClass("gc-scroll-handle")||f.hasClass("gc-scroll-bar")||c&&c.hasClass("gc-scroll-bar"))&&g.ku.Dw(!0,b)))))},Gv:function(b){(b=b.data)&&b.xw()}});Q.prototype={Bw:function(b,a){var e=this,f=J(e.yw);f&&(e.Gw=!0,e.Hw=a?f.lq:b,e.Iw=a?b:f.qq,window.setTimeout(function(){e.Kw()},0))},Kw:function(){J(this.yw)&&this.Gw&&(this.Gw=!1,this.Lw())},Lw:function(){var b,a,e,f,c;this.Mw||(this.Mw=!0,b=this.yw,a=J(b),a&&(e=b.options.showScrollTip,f=this.Hw,c=this.Iw,f!==a.lq?(this.ju(f),2!==e&&3!==e||b.ww(this.Nw(!0))):c!==a.qq&&(this.lu(c),1!==e&&3!==e||b.ww(this.Nw(!1)))),this.Mw=!1)},ju:function(b){var e,f,c,g,k,h,d,m,p,n,q,l,x,y,r,B,w=J(this.yw);if(w&&(e=w.lq,b!==e)){if(w.lq=b,0<w.Xq)return void w.Wq(a.TopRowChanged,{sheet:w,sheetName:w.Cj,oldTopRow:e,newTopRow:b});if(f=!1,c=w.Zs,g=w.am(),k=g.qt,h=g.jr,q=w.yl,l=q.bm(),b>e){if(r=w.Gr(1),r&&0<r.length&&(x=r.findRow(b)),x){B=r.length-1;for(y=r[B];y.y+y.height>k+h;)--B,y=r[B];y.row>b&&(f=!0,d=c?c.x:g.x,m=x.y,p=g.width,n=y.y+y.height-x.y-2,q.Ow(d,m,p,n,d,k),w.invalidateLayout(),q._l(l,new t(d,k+n,p,h-n)),q.Pw(l,new t(d,k,p,h)))}}else{x=0;for(r=b;r<e&&x<h;r++)x+=w.Sl(r);x<h&&(f=!0,d=c?c.x:g.x,m=k,p=g.width,n=h-x,0<w.frozenTrailingRowCount()&&--n,q.Ow(d,m,p,n,d,m+x),w.invalidateLayout(),y=w.rowOutlines&&!w.rowOutlines.iT()?1:0,q._l(l,new t(d,m,p,x+2+y)),q.Pw(l,new t(d,k,p,h)))}f||(w.invalidateLayout(),w.repaint());w.Wq(a.TopRowChanged,{sheet:w,sheetName:w.Cj,oldTopRow:e,newTopRow:b});(b=w.mm)&&b.Qw()}},lu:function(b){var e,f,c,g,k,h,d,m,p,n,q,l,x,y,r,B,w=J(this.yw);if(w&&(e=w.qq,b!==e)){if(w.qq=b,0<w.Xq)return void w.Wq(a.LeftColumnChanged,{sheet:w,sheetName:w.Cj,oldLeftCol:e,newLeftCol:b});if(f=!1,c=w.Zs,g=w.am(),k=g.pt,h=g.er,q=w.yl,l=q.bm(),b>e){if(r=w.Hr(1),r&&0<r.length&&(x=r.findCol(b)),x){B=r.length-1;for(y=r[B];y.x+y.width>k+h;)--B,y=r[B];y.col>b&&(f=!0,d=x.x,m=c?c.y:g.y,p=y.x+y.width-x.x-2,n=g.height,q.Ow(d,m,p,n,k,m),w.invalidateLayout(),q._l(l,new t(k+p,m,h-p,n)),q.Pw(l,new t(k,m,h,n)))}}else{x=0;for(r=b;r<e&&x<h;r++)x+=w.Tl(r);x<h&&(f=!0,d=k,m=c?c.y:g.y,p=h-x,n=g.height,0<w.frozenTrailingColumnCount()&&--p,q.Ow(d,m,p,n,d+x,m),w.invalidateLayout(),y=w.columnOutlines&&!w.columnOutlines.iT()?1:0,q._l(l,new t(d,m,x+2+y,n)),q.Pw(l,new t(k,m,h,n)))}f||(w.invalidateLayout(),w.repaint());w.Wq(a.LeftColumnChanged,{sheet:w,sheetName:w.Cj,oldLeftCol:e,newLeftCol:b});(b=w.mm)&&b.Qw()}},Rw:function(b,e,f){var c,g,k,h=this.yw;k=J(h);var d=!1,m=!1;g=h.options.scrollbarShowMax;if(k){if(b.ctrlKey){if(!h.options.allowUserZoom)return!0;if(c=k._zoomFactor,g=c-.05*e,k.isEditing()&&!k.endEdit())return;k.wu().execute({cmd:"zoom",sheetName:k.name(),zoomFactor:g});g=k._zoomFactor;c!==g&&k.Wq(a.UserZooming,{sheet:k,sheetName:k.Cj,oldZoomFactor:c,newZoomFactor:g})}else f=f||0,c=k.lq,e=this.ms(k,e),c!==e?(this.ju(e),k.os(),g||k.es()):d=!0,e=k.qq,f=this.Sw(k,f),e!==f?(this.lu(f),k.qs(),g||k.ds()):m=!0;g=k.Vs();b=k.hitTest(b.pageX-g.left,b.pageY-g.top);(f=(g=k.yt)&&g.cellTypeHitInfo)&&(f.cellRect=k.getCellRect(g.row,g.col));k=k.mm;k.Tw(b);k.Uw(b)}return d&&m},ms:function(b,a){var e,f,c,g=b.lq,k=b.frozenRowCount();return 0<k&&(0===g&&0<a?g=k:0>a&&g===k-a&&(g=0)),e=b.Rt(g+a,0>a),-1!==e?g=e:g+=a,f=b._t(),c=b.ns(),0>=b.getRowCount()-k-b.frozenTrailingRowCount()||null===f?g=b.lq:(g<f?g=f:g>c&&(g=c),null===g&&(g=-1)),g},Sw:function(b,a){var e,f,c,g=b.qq,k=b.frozenColumnCount();return 0<k&&(0===g&&0<a?g=k:0>a&&g===k-a&&(g=0)),e=b.Ot(g+a,0>a),-1!==e?g=e:g+=a,f=b.$t(),c=b.ps(),0>=b.getColumnCount()-k-b.frozenTrailingColumnCount()||null===f?g=b.qq:(g<f?g=f:g>c&&(g=c),null===g&&(g=-1)),g},Dw:function(b,a){var e,f,c=this.yw;J(c)&&(b?(e=a.pageY,f=a.pageX-100):(e=a.pageY-40,f=a.pageX-30),c.uw(this.Nw(b),f,e,!0))},Nw:function(b){var a,e=J(this.yw),f=e.qq+1;return e&&(b?a=d().Tip_Row+(e.lq+1):(1!==e.options.colHeaderAutoText&&(f=e.xq(f)),a=d().Tip_Column+f)),a}};U.exports=u},function(U,u){U.exports=GC.Spread.Commands},function(U,u,l){function d(b){return(b=b.parent)&&b.options.allowExtendPasteRange}function J(b){return(b=b.parent)&&b.options.allowCopyPasteExcelStyle}function R(b){return(b=b.parent)&&b.options.copyPasteHeaderOptions}function Q(){return qa.C(u.SR)()}function K(b,a,e,f){throw Error(Va.Kb(Q().Exp_InvalidAndSpace,[b,a,e,f]));}function O(b){this.Vw=1===(1&b);this.Ww=2===(2&b);this.Xw=8===(8&b);this.Yw=u.X3&&16===(16&b);this.$w=this.Zw=!0}function H(b,a,e,f){var c,g,k,h,d,m,p,n,t,v,q,l;if(wa(b)||""===b)return na;(wa(a)||""===a)&&(a="\r\n");(wa(e)||""===e)&&(e="\t");(wa(f)||""===f)&&(f='"');$a(b,a)||(b+=a);c=[];g=[];k="";d=!1;m=f.length;p=a.length;n=e.length;t=b.length;for(v=0;v<t;v++)k+=b[v],h=k.length,h>=m&&f===k.substr(h-m,m)?d&&t>=v+1+m&&f===b.substr(v+1,m)?v+=m:d?(k=k.substr(0,h-m),d=!1):(q=k,0===q.indexOf(f)&&(k=k.substr(0,h-m),d=!0)):!d&&h>=n&&e===k.substr(h-n,n)?(k=k.substr(0,h-n),g.push(""+k),k=""):!d&&h>=p&&a===k.substr(h-p,p)?(k=k.substr(0,h-p),g.push(""+k),c.push(g),g=[],k=""):!d&&1<=h&&"\n"===k.substr(h-1,1)?(k=k.substr(0,h-1),g.push(""+k),c.push(g),g=[],k=""):d&&t>=v+1+n&&e===b.substr(v+1,n)&&","!==e&&(v+=m);if(d){if(0<g.length){for(f=0;f<c.length&&c[f]!==g;f++);f>=c.length&&c.push(g)}(g=""+k)&&(g=g.replace(RegExp(e,"g"),""),$a(g,a)&&(g=g.substr(0,g.length-p)),0===c.length&&c.push([g]))}return 0===c.length&&(l=b,$a(b,a)&&(l=l.substr(0,l.length-p)),c.push([l])),c}function I(b,a,e,f,c,g,k){for(var h=0;h<a.length;h++,f++)if(0<c&&f<b.getColumnCount(g)){var d=b,m=g,p=e,n=f,t=a[h],v=k,q=void 0,l=void 0,x=void 0,y=void 0,r=void 0,B=void 0,w=t,z=na;if(!1===v.Xw&&(q={value:na},w=Ya.ul(na,t,!v.Xw,q),z=q.value),wa(w))d.setValue(p,n,w,m);else if(""!==t)if(v.Yw&&"\x3d"===t[0])try{d.setFormula(p,n,t.substr(1))}catch(Vb){d.setText(p,n,t,m)}else q=d.tq(p,n,"formatter",m),!1===v.Xw&&z?q?q&&("string"==typeof q&&ba&&(q=new ba.GeneralFormatter(q)),B=q.parse&&q.parse(t),w=wa(B)?w:B):(z.isAuto=!0,d.getCell(p,n,m)._w("_autoFormatter",z),x=d.getCellType(p,n,m),y=z.formatString(),x&&"7"===x.typeName&&(r={sheet:d,row:p,col:n,sheetArea:m},l=x.parse(t,y,r),w=wa(l)?t:l)):q&&d.getCell(p,n,m).formatter(na),d.setValue(p,n,w,m);else d.setValue(p,n,na,m)}}function L(b){var a,e,f=0;for(a=0;a<(b&&b.length);a++)e=b[a],f=cb(e.length,f);return f}function F(b,a,e,f,c,g,k,h,d,m,p,n,t){var v,l,x,y,r,B,w,z,E,C,A,M,N;if(!b)throw Error(Q().Exp_SheetIsNull);return v=b.getRowCount(void 0),l=b.getColumnCount(void 0),(-1>a||a>=v)&&K("row",a,"-1",v-1),(-1>e||a+e>v)&&K("rowCount",e,"-1",v-a),(-1>f||f>=l)&&K("column",f,"-1",l-1),(-1>c||f+c>l)&&K("columnCount",c,"-1",l-f),r=!1,B=!1,-1===a&&-1===f&&-1===e&&-1===c?(a=0,f=0,x=b.getRowCount(void 0)-1,y=b.getColumnCount(void 0)-1):(-1===a&&(a=0,2===(2&b.parent.options.copyPasteHeaderOptions)&&(r=!0)),-1===f&&(f=0,1===(1&b.parent.options.copyPasteHeaderOptions)&&(B=!0)),-1===e&&(e=b.getRowCount(void 0)-a),-1===c&&(c=b.getColumnCount(void 0)-f),x=a+e-1,y=f+c-1),(wa(g)||""===g)&&(g="\r\n"),(wa(k)||""===k)&&(k="\t"),(wa(h)||""===h)&&(h='"'),w=RegExp(h,"g"),B?(C=b.getColumnCount(2),A=q(b,a,x,0,C-1,2,m,p,g,k,h,w,d,n,t),E=q(b,a,x,f,y,3,m,p,g,k,h,w,d,n,t),z=G(E,A,2,g,k)):r?(M=b.getRowCount(1),N=q(b,0,M-1,f,y,1,m,p,g,k,h,w,d,n,t),E=q(b,a,x,f,y,3,m,p,g,k,h,w,d,n,t),z=G(E,N,1,g,k)):(E=q(b,a,x,f,y,3,m,p,g,k,h,w,d,n,t),z=G(E,null,3,g,k)),z}function G(b,a,e,f,c){var g,k,h;if(1===e)g=a.concat(b);else if(2===e)for(e=a.length,g=[],k=0;k<e;k++)h=a[k].concat(b[k]),g.push(h);else 3===e&&(g=b);e="";k=g.length;for(b=0;b<k;b++){for(a=0;a<g[b].length;a++)0!==a&&(e+=c),e+=g[b][a];e+=f}return e}function q(b,a,e,f,c,g,k,h,d,m,p,n,t,v,q){for(var l,x,y,r=[];a<=e;a++)if(!k||!Aa(k,a)){x=[];for(l=f;l<=c;l++)if(!h||!Aa(h,l)){y="";var B;B=a;var w=l,z=v,E=b.getSpan(B,w,g);B=E&&z&&(E.row!==B||E.col!==w)?!0:void 0;B||(y=b.getText(a,l,g));var w=v,z=n,E=p,C=q,A=t,M=m,N=d;B="";y=(wa(y)||(B=y,w||(B=B.replace(z,E+E))),C&&!B&&(B=" "),w?B=B.replace(/\n/g,ta.mozilla?"":" "):(A||-1!==B.indexOf(E)||-1!==B.indexOf(M)||-1!==B.indexOf(N)||-1!==B.indexOf("\n"))&&(B=E+B+E),B);x.push(y)}r.push(x)}return r}function D(b,a){return b.sheets?b.getSheetFromName(a.sheetName):b}function A(b,a,e,f){b=D(b,e);a=new a(b,e,f);return f?a.undo(b):a.execute(b)}function r(b){return function(a,e){var f=D(a,e);return ca.Ox(f,b)}}function n(b,a){return function(e,f){var c=D(e,f);return ca.Rx(c,b,a)}}function w(b,a){var e,f,c,g=b.parent;g&&(e=g.getSheetCount(),f=c=g.getActiveSheetIndex(),a?c<e-1&&c++:0<c&&c--,f!==c&&(g.dq(c,1),g.repaint()))}function z(b,a){b.Tx=!0;b.Hx?b.Ex(a):b.yx(a,!0);b.Tx=!1}function C(b,a){var e,f,c,g;return!!b.endEdit()&&(e=b.mm,e.Ux(),e.Vx(),sa.Vl.Zl(na),f=!1,c=b.parent,c&&(g=a.call(c),g&&g.focus?(g.focus(),f=!0):c.Uv()),{ignoreCancelDefault:!f})}function c(b,a,e){this.row=b;this.column=a;this.value=e}function m(b,a,e){this.kj=b;this.my=a;this.ny=e;this.oy=[];this.Iu=[];this.py()}function h(){}function a(b){return function(a,e,f){return 0===arguments.length?this._ps?this._ps[b]:gb:(this._ps||(this._ps={}),this._ps[b]||(this._ps[b]=[]),void this._ps[b].push(new c(a,e,f)))}}function B(b){return b&&0<b.length}function y(b,a){this.Xj=b;this.Yj=a;this.A5=!1}function t(b,a){return function(e,f){var c;return 1===arguments.length?(c=this._ps[b]?this._ps[b][e]:na,ua(c)?c:a):void(ua(f)&&(this._ps[b]||(this._ps[b]=[]),this._ps[b][e]=f))}}function E(b){return function(){var a=this._ps[b];return a&&0<a.length}}function M(b){this.Yj=b;this.$y={};this._y={};this.az=!1;this._ps={}}function p(b){this.Xj=b;this.$y={};this._y={};this.az=!1;this._ps={}}function g(b,a,e,f,c,g,k,h){var d,m,p,n,t,v,q;for(d=0;d<c;d++)for(m=0;m<g;m++)3===a&&u.X3&&0<(2&k)&&b.getFormulaInformation&&(p=b.getFormulaInformation(e+d,f+m),p.hasFormula?p.isArrayFormula?p.baseRange.row===e+d&&p.baseRange.col===f+m&&h.Gy(p):h.Fy(d,m,p.formula):h.Fy(d,m,na)),0<(1&k)&&(n=b.getValue(e+d,f+m,a),h.Ey(d,m,n)),0<(64&k)&&h.Jy(d,m,b.Aj(e+d,f+m,a)),0<(128&k)&&h.Ly(d,m,b.getTag(e+d,f+m,a)),3===a&&(0<(16&k)&&b.getSparkline&&(t=b.getSparkline(e+d,f+m),v=na,t&&(v=t.data()),t&&v?h.Iy(d,m,t.clone()):h.Iy(d,m,na)),q=b.comments,0<(4&k)&&q&&h.Ky(d,m,q.get(e+d,f+m)),0<(256&k)&&h.My(d,m,b.getBindingPath&&b.getBindingPath(e+d,f+m,a)))}function f(){}function k(b,a){b.suspendPaint();a||b.suspendEvent()}function x(b,a){a||b.resumeEvent();b.resumePaint()}function W(){}function P(b,a){this.kj=b;this.VQ=a;a.Pz=a.Pz||[];a.Qz=a.Qz||[]}function V(b,a){this.kj=b;this.VQ=a;a.Pz=a.Pz||[]}function Z(b,a){var e=b.parent;this.kj=b;this.VQ=a;this.Wz=a.rowHeader?2:3;ua(a.autoFitType)||(a.autoFitType=e?e.options.autoFitType:0);a.Pz=a.Pz||[]}function e(b,a){var e=b.parent;this.kj=b;this.VQ=a;this.Wz=a.columnHeader?1:3;ua(a.autoFitType)||(a.autoFitType=e?e.options.autoFitType:0);a.Pz=a.Pz||[]}function b(b,a){var e,f;this.VQ=a;a.vA=a.vA||{};a.wA=a.wA||{};this.kj=b;u.X3&&a.ranges&&1===a.endEditType&&(e=b.Tq(a.ranges[0]),a.ranges[0]=e,1===e.rowCount&&1===e.colCount&&(f=b.Ms(e.row,e.col,1,1),f&&f.ranges&&0<f.ranges.length&&(a.ranges=[f.ranges[0]])))}function v(b,a){b.cq(a);var e=b.parent;(e=e&&e.hq)&&e.repaint()}function N(b,a){this.kj=b;this.VQ=a}function S(b,a){this.kj=b;this.VQ=a}function X(b,a){return!(!0===b.isEditing()&&!b.endEdit())&&(b.suspendPaint(),b.zoom(a),b.resumePaint(),!0)}function Y(b,a){this.value=b;this.formulaInfo=a}function ka(b,a){this.kj=b;this.VQ=a}function ja(b,a,e){var f;if(this.kj=b,this.VQ=a,!e&&(a.MA=[],f=a.ranges,f&&0<f.length))for(e=0;e<f.length;e++)a.MA[e]=new ka(b,{clearRange:f[e]})}function oa(b){f.Hz(b.sheet,b.data,b.range)}function ma(b){f.Fz(b.sheet,b.data,b.row)}function ea(b){f.Dz(b.sheet,b.data,b.col)}function ga(b){f.Bz(b.sheet,b.data,b.row,b.col,b.sheetArea)}function T(b,a){return a&&a.undo?(a.undo.call(b,a),1):0}function fa(b,a,e,c){var g,k=new y(b.getRowCount(1),e);e=new M(e);return f.vz(b,k,e,a,c),g={},g.headerCells={sheet:b,data:k,row:0,col:a,undo:ga,sheetArea:1},g.columns={sheet:b,data:e,col:a,undo:ea},g}function Fa(b,a,e,c,g,k){c=new y(c,g);return f.yz(b,c,a,e,k),{sheet:b,data:c,row:a,col:e,undo:ga,sheetArea:3}}function aa(b,a,e,c,g){var k=[];a=new Ga(a,e,c,g);return f.zz(b,k,a),{sheet:b,data:k,range:a,undo:oa}}function xa(b,a,e,c){var g,k=new y(e,b.getColumnCount(2));e=new ca.x4(e);return f.xz(b,k,e,a,c),g={},g.headerCells={sheet:b,data:k,row:a,col:0,undo:ga,sheetArea:2},g.rows={sheet:b,data:e,row:a,undo:ma},g}function Ia(b){var a=b.sheet;a.deleteRows(b.rowCount,a.getRowCount(void 0)-b.rowCount);a.setColumnCount(b.colCount)}function la(b,a){this.kj=b;this.VQ=a}function pa(b,a,e){var f,c,g,k,h,d,m,p,n,t,v,q,l,x;if(this.kj=b,this.VQ=a,!e){if(e=a.fromSheet,!b)throw Error(Q().Exp_DestSheetIsNull);if(f=a.pastedRanges,f&&0<f.length)if(a.MA=[],c=a.fromRanges||[a.fromRange],g=c.length,k=a.isCutting,h=a.clipboardText,d=a.clipboardHtml,m=a.pasteOption,p={},n=f[0],!k&&e&&e.r5(c,p)&&n.equals(e.q5(c,n))){f=p.inSameRow;p=p.inSameCol;f?c=c.sort(function(b,a){return b.col-a.col}):p&&(c=c.sort(function(b,a){return b.row-a.row}));t=n.row;n=n.col;for(v=0;v<g;v++)q=c[v],l=q.rowCount,x=q.colCount,q={sourceRange:q,targetRange:sa.kf(t,n,l,x),isCutting:k,clipboardText:h,clipboardHtml:d,includeFilteredOutRow:!0},a.MA[v]=new la(b,{fromSheet:e,toSheet:b,pasteExtent:q,pasteOption:m}),f?n+=x:p&&(t+=l);a.s5=!0}else for(g=0;g<f.length;g++)p={sourceRange:c[0],targetRange:f[g],isCutting:k,clipboardText:h,clipboardHtml:d},a.MA[g]=new la(b,{fromSheet:e,toSheet:b,pasteExtent:p,pasteOption:m})}}var qa,ba,ra,ya,sa,ia,Ka,wa,Aa,Va,$a,Da,va,Ra,jb,Ta,ib,Ga,bb,Na,Ya,ta,fb,ua,Ha,na,gb,Za,cb,La,da,Oa,ca,nb;u=l(42);qa=l(26);ba=l(34);ra=l(56).Worksheet;ya=l(51).Style;sa=l(43);ia=l(44).GC$;Ka=l(64).staticMembers;wa=qa.j.Fa;Aa=qa.k.Bb;Va=qa.u;$a=Va.jb;Da=sa.Events;va=Da.CellChanged;Ra=Da.ColumnWidthChanging;jb=Da.ColumnWidthChanged;Ta=Da.RowHeightChanging;ib=Da.RowHeightChanged;Ga=sa.Range;bb=sa.Rect;Na=sa.mn;Ya=sa.Ul;ta=Ya.Ml;fb=Ya.Pl;ua=Ya.Ol;Ha=ia.extend;ia=ia.inherit;na=null;gb=void 0;Za=Math.min;cb=Math.max;La=Math.floor;da=Number.MAX_VALUE;Oa=isNaN;u.ClipboardPasteOptions={all:0,values:1,formatting:2,formulas:3};u.CopyToOptions={value:1,formula:2,comment:4,outline:8,sparkline:16,span:32,style:64,tag:128,bindingPath:256,conditionalFormat:512,all:1023};Ha(ra.prototype,{autoFitColumn:function(b){0<=b&&b<this.getColumnCount(void 0)&&this.wu().execute({cmd:"autoFitColumn",sheetName:this.name(),columns:[{col:b}],rowHeader:!1})},autoFitRow:function(b){0<=b&&b<this.getRowCount(void 0)&&this.wu().execute({cmd:"autoFitRow",sheetName:this.name(),rows:[{row:b}],columnHeader:!1})},setCsv:function(b,a,e,f,c,g){this.suspendPaint();this.suspendEvent();if(!this)throw Error(Q().Exp_SheetIsNull);if((-1>b||b>=this.getRowCount(void 0))&&K("row",b,"-1",this.getRowCount(void 0)-1),(-1>a||a>=this.getColumnCount(void 0))&&K("column",a,"-1",this.getColumnCount(void 0)-1),!wa(e)&&""!==e)if(-1===b&&(b=0),-1===a&&(a=0),(e=H(e,f,c,'"'))&&0<e.length){f=b;c=a;var k,h,d,m,p;b=e.length;a=L(e);if(0!==b&&0!==a)for(g=new O(g),this&&(0>=this.getColumnCount(2)&&(g.Vw=!1),0>=this.getRowCount(1)&&(g.Ww=!1)),k=g.Vw?this.getColumnCount(2):0,h=g.Ww?this.getRowCount(1):0,d=0,a-=k,0>=a&&(a=0),b-=h,0>=b&&(d=0),b-=d,0>=b&&(b=0),g.Zw&&f+b>this.getRowCount(void 0)&&this.setRowCount(f+b),g.$w&&c+a>this.getColumnCount(void 0)&&this.setColumnCount(c+a),m=d=0;d<e.length;d++,m++)p=e[d],0>=p.length||(0<h&&d<h?I(this,p,m,c,a,1,g):0<b&&m<this.getRowCount(void 0)&&(d===h&&(m=f),I(this,p,m,0,k,2,g),p.splice(0,k),I(this,p,m,c,a,3,g)))}this.resumeEvent();this.resumePaint()},getCsv:function(b,a,e,f,c,g){return F(this,b,e,a,f,c,g,'"',!0)},copyTo:function(b,a,e,f,c,g,k){this.ax(b,a,e,f,c,g,k)},ax:function(b,a,e,f,c,g,k,h){this.suspendPaint();this.suspendEvent();Ka.copyTo(this,b,a,this,e,f,c,g,k,h,0);this.resumeEvent();this.resumePaint()},moveTo:function(b,a,e,f,c,g,k){if(!(u.X3&&k&u.CopyToOptions.formula)||this.Vq(b,a,c,g,!0)&&this.Vq(e,f,c,g,!0))this.suspendPaint(),this.suspendEvent(),Ka.moveTo(this,b,a,this,e,f,c,g,k),this.resumeEvent(),this.resumePaint()},bx:function(b,a,e){var f,c,g,k,h,d=this,m=d.o5(b);if(m){f=d.J5(b);c=d.mm;g=F(d,m.row,m.rowCount,m.col,m.colCount,"\r\n","\t",'"',!1,f.rows,f.cols,!0);k=d.tu();k.PA=d;k.n5=b;k.G4=a;b=k.Q4(d,m.row,m.rowCount,m.col,m.colCount,J(d),f.rows,f.cols);d.ex&&d.ex();try{h={sheet:d,sheetName:d.Cj,copyData:{text:g,html:b},cancel:!1},d.Wq(Da.ClipboardChanging,h),h&&!1===h.cancel?(c&&!e&&c.gx(J(d)?b:g),d.Wq(Da.ClipboardChanged,{sheet:d,sheetName:d.Cj,copyData:{text:g,html:b}}),setTimeout(function(){!c||e||d.Js||c.hx()},100)):(k.PA=na,k.n5=na)}catch(Ib){}return{copyText:g,copyHtml:b}}},ix:function(b,a,e,f,c,g){var k,h=Q().Exp_PasteSourceCellsLocked;if(g.pastedInternal=!1,g.pastedRange=na,!(b||c&&""!==c))return!1;if(k=this.J5(a),this.jx(b,this.o5(a),this,c,k.rows,k.cols)||!c){if(g.pastedInternal=!0,f&&b.options.isProtected&&b.p5(a))return this.Os(1,h),!1;g.pastedRange=this.kx(b,a,this,e,f)}else g.pastedRange=this.lx(e,c);return this.mx(b,a,e,f,g)},mx:function(b,a,e,f,c){var g,k,h,d,m,p,n,t=Q().Exp_InvalidCopyPasteSize,v=Q().Exp_PasteDestinationCellsLocked,q=Q().Exp_PasteChangeMergeCell,l=Q().Exp_ChangePartOfArray,x=c.pastedRange;if(!x)return this.Os(1,t),!1;if(!this.Y3(x.row,x.col,x.rowCount,x.colCount,v,l))return!1;if(c.pastedInternal)if(g=a.length,1===g){if(k=a[0],f&&!b.Y3(k.row,k.col,k.rowCount,k.colCount,v,l))return!1;if(b.qu(k.row,k.col,k.rowCount,k.colCount))return this.Os(1,q),!1;if(h=0>x.row?this.getRowCount(void 0):x.rowCount,d=0>x.col?this.getColumnCount(void 0):x.colCount,m=0>k.row?b.getRowCount(void 0):k.rowCount,p=0>k.col?b.getColumnCount(void 0):k.colCount,h>m||d>p)for(b=e.row,a=e.col,0>e.row&&m<this.getRowCount(void 0)&&(b=0),0>e.col&&p<this.getColumnCount(void 0)&&(a=0),0===h%m&&1===d?(d=p,x=c.pastedRange=new Ga(b,a,h,d)):1===h&&0===d%p?(h=m,x=c.pastedRange=new Ga(b,a,h,d)):0===h%m&&0===d%p||(h=m,d=p,x=c.pastedRange=new Ga(b,a,h,d)),e=La(h/m),d=La(d/p),c=0;c<e;c++)for(h=0;h<d;h++){if(!this.nx(k,x)&&this.qu(0>b?-1:b+c*m,0>a?-1:a+h*p,0>b?-1:m,0>a?-1:p))return this.Os(1,q),!1}else if(!this.nx(k,x)&&this.qu(x.row,x.col,x.rowCount,x.colCount))return this.Os(1,q),!1}else{if(1<g){for(k=0;k<g;k++)if(n=a[k],b.qu(n.row,n.col,n.rowCount,n.colCount))return this.Os(1,q),!1;if(this.qu(x.row,x.col,x.rowCount,x.colCount))return this.Os(1,q),!1}}else{if(this.qu(x.row,x.col,x.rowCount,x.colCount))return this.Os(1,q),!1;if(!this.l5(x.row,x.col,x.rowCount,x.colCount))return this.Os(1,t),!1}return!0},nx:function(b,a){if(b&&1===b.rowCount&&1===b.colCount){var e=this.getSpan(a.row,a.col);if(e&&e.equals(a))return!0}return!1},jx:function(b,a,e,f,c,g){var k,h;return!!(b&&a&&e)&&(k=F(b,a.row,a.rowCount,a.col,a.colCount,"\r\n","\t",'"',!1,c,g,!0,ta.safari),h=k===f,h||(h=k===f+"\r\n",!h&&ta.chrome&&(h=k===f+"\t\r\n"),!h&&ta.safari&&(h=k.replace(/\s/g,"")===f.replace(/\s/g,""))),h)},kx:function(b,a,e,f,c){var g,k,h,d,m,p,n,t,v,q=a.length;if(1===q){if((g=a[0],k=0>g.row?0:g.row,h=0>g.col?0:g.col,d=0>g.row?b.getRowCount(void 0):g.rowCount,m=0>g.col?b.getColumnCount(void 0):g.colCount,p=0>f.row?0:f.row,n=0>f.col?0:f.col,t=0>f.row?e.getRowCount(void 0):f.rowCount,v=0>f.col?e.getColumnCount(void 0):f.colCount,c?(t=d,v=m):0===t%d&&1===v?v=m:1===t&&0===v%m?t=d:0===t%d&&0===v%m||(t=d,v=m),!this.pu(k,h,d,m,b.getRowCount(void 0),b.getColumnCount(void 0)))||!e.l5(p,n,t,v))return na;if(a=new Ga(p,n,t,v),!c&&b.Cj===e.Cj)if(a.contains(k,h,d,m)){if(0!==(k-p)%d||0!==(h-n)%m)return na}else if(a.intersect(k,h,d,m)&&(t>d||v>m))return na;return-1===f.row&&(p=-1,t=-1),-1===f.col&&(n=-1,v=-1),new Ga(p,n,t,v)}return 1<q?this.q5(a,f):na},q5:function(b,a){var e,f,c,g,k,h;if(1<b.length){if(e=b[0],f=b[1],c=e.rowCount,g=e.colCount,e.row===f.row&&c===f.rowCount)return k=0,b.forEach(function(b){k+=b.colCount}),sa.kf(a.row,a.col,c,k);if(e.col===f.col&&g===f.colCount)return h=0,b.forEach(function(b){h+=b.rowCount}),sa.kf(a.row,a.col,h,g)}return na},lx:function(b,a){var e,f,c,g,k=na,h,d,m,p,n,t;d=na;if(h=H(a,"\r\n","\t",'"')){d=h.length;m=L(h);p=[];for(n=0;n<d;n++)for(p[n]=[],t=0;t<m;t++)t<h[n].length?p[n][t]=h[n][t]:p[n][t]=na;d=p}h=d;return h&&(e=0>b.row?0:b.row,f=0>b.col?0:b.col,c=h.length,g=L(h),0<c&&0<g&&(k=new Ga(e,f,c,g))),k},ox:function(){var b=this.tu();b&&(b.PA=na,b.n5=na,b.G4=!1)},px:function(b,a,e,f,c,g,k,h,d){var m,p,n,t,v,q,l,x,y,r,B,w,z,E,C;if(b&&e.Cj===b.Cj&&e.parent&&!Aa(e.parent.sheets,b))return void b.ox();h=la.qx(h);b&&u.X3&&b.suspendCalcService(void 0);e&&u.X3&&e.suspendCalcService(void 0);try{if(b&&a){if(0!==(2&h)&&c&&u.X3&&(b.Ns(a.row,a.col,a.rowCount,a.colCount)||e.Ns(f.row,f.col,f.rowCount,f.colCount)))throw Q().Exp_ChangePartOfArray;if(c)Ka.moveTo(b,a.row,a.col,e,f.row,f.col,a.rowCount,a.colCount,h),b.ox();else if(l=0>f.row?e.getRowCount(void 0):f.rowCount,x=0>f.col?e.getColumnCount(void 0):f.colCount,n=0>a.row?b.getRowCount(void 0):a.rowCount,t=0>a.col?b.getColumnCount(void 0):a.colCount,l>n||x>t)for(m=f.row,p=f.col,0>f.row&&n<e.getRowCount(void 0)&&(m=0),0>f.col&&t<e.getColumnCount(void 0)&&(p=0),0===l%n&&1===x?x=t:1===l&&0===x%t?l=n:0===l%n&&0===x%t||(l=n,x=t),y=La(l/n),r=La(x/t),v=0;v<y;v++)for(q=0;q<r;q++)Ka.copyTo(b,a.row,a.col,e,0>m?-1:m+v*n,0>p?-1:p+q*t,0>m?-1:n,0>p?-1:t,h,d,R(b));else Ka.copyTo(b,a.row,a.col,e,f.row,f.col,a.rowCount,a.colCount,h,d,R(b))}else{m=f.row;p=f.col;n=f.rowCount;t=f.colCount;B=e.zl();w=[];B.each(m,p,n,t,function(b){b&&w.push(b)});z=0;for(E=w.length;z<E;z++)B.remove(w[z]);if(u.X3&&0<(1&h)&&e.clearFormula(m,p,n,t,function(b,a){return!b.Ps||!b.Ps(a)}),g&&""!==g)k&&(C=e.tu(),C&&C.R4(k,e,m,p)),e.setCsv(m,p,g,"\r\n","\t",16);else for(v=0;v<n;v++)for(q=0;q<t;q++)e.setValue(m+v,p+q,na)}}finally{b&&u.X3&&b.resumeCalcService(!1),e&&u.X3&&e.resumeCalcService(!1)}},sx:function(b){if(!this.isEditing()){var a=this.getSelections();if(a&&1===a.length)return this.bx(a,!0,b)}return na},r5:function(b,a){var e,f,c,g,k,h;if(b&&(e=b.length,1<e)){for(f=0;f<e;f++)for(c=b[f],g=f+1;g<e;g++)if(k=b[g],c.intersect(k.row,k.col,k.rowCount,k.colCount))return!1;c=b[0];for(f=1;f<e&&(h=b[f],c.row===h.row&&c.rowCount===h.rowCount);f++);if(f>=e)return a&&(a.inSameRow=!0),!0;for(f=1;f<e&&(h=b[f],c.col===h.col&&c.colCount===h.colCount);f++);if(f>=e)return a&&(a.inSameCol=!0),!0}return!1},o5:function(b){var a,e,f,c,g;if(b){if(a=b.length,1===a)return b[0];if(1<a){if(e=b[0],f=b[a-1],e.row===f.row&&e.rowCount===f.rowCount){for(c=0;c<a;c++)g=b[c],g.col<e.col&&(e=g),g.col>f.col&&(f=g);return sa.kf(e.row,e.col,e.rowCount,f.col+f.colCount-e.col)}if(e.col===f.col&&e.colCount===f.colCount){for(c=0;c<a;c++)g=b[c],g.row<e.row&&(e=g),g.row>f.row&&(f=g);return sa.kf(e.row,e.col,f.row+f.rowCount-e.row,e.colCount)}}}return na},J5:function(b){var a,e,f,c,g,k,h=[],d=[];if(b&&(a=b.length,1<a&&(e=b[0],f=b[a-1],c=e.row===f.row&&e.rowCount===f.rowCount,g=e.col===f.col&&e.colCount===f.colCount,c||g)))for(b.sort(c?function(b,a){return b.col-a.col}:function(b,a){return b.row-a.row}),e=1;e<a;e++)for(f=b[e-1],g=b[e],f=c?f.col+f.colCount:f.row+f.rowCount,g=c?g.col:g.row,k=c?d:h;f<g;f++)k.push(f);return{rows:h,cols:d}},ux:function(b){var a,e,f,c,g;if(!this.isEditing()){if(a=this.getSelections(),a&&1===a.length){if(e=a[0],-1!==e.row&&this.Nu&&this.Nu()){a=[];f=-1;for(c=0;c<e.rowCount;c++)g=e.row+c,this.Ps(g)?-1!==f&&(a.push(sa.kf(f,e.col,g-f,e.colCount)),f=-1):-1===f&&(f=g);-1!==f&&a.push(sa.kf(f,e.col,e.row+e.rowCount-f,e.colCount))}return this.bx(a,!1,b)}if(this.r5(a))return this.bx(a,!1,b)}return na},vx:function(b){var a=this,e=a.mm,f,c,g;a.isEditing()||(b&&(f=b.pasteText,c=b.pasteHtml,g=b.callback),e&&!f&&e.gx(""),setTimeout(function(){var b,k,h,d;a.Js||(b=f||"",k=c||"",e&&!f&&(h=a.tu(),h&&(d=h.wx(),b=d.text,k=d.html),e.hx()),(ta.msie||ta.edge||f||!b&&!k)&&(a.J4(b,k),g&&g()))},100))},J4:function(b,a){var e=this.xx(b);e&&(e.cmd="clipboardPaste",e.sheetName=this.name(),J(this)&&(e.clipboardHtml=a),this.wu().execute(e))},xx:function(b){var a,e,f,c,g,k,h=Q().Exp_InvalidPastedArea;e=this.tu();var d=e.PA,m=e.n5,p=e.G4;if(p&&d&&m&&d.options.isProtected&&d.p5(m)&&(p=!1),a={pastedRange:na,pastedInternal:!1},e=[],f=this.getSelections(),1<f.length)for(g=0;g<f.length;g++){if(c=f[g],!this.ix(d,[m[0]],c,p,b,a))return;if(c.containsRange(a.pastedRange)&&!c.equals(a.pastedRange))return void this.Os(1,h);e.push(a.pastedRange)}else{if(c=0<f.length?f[0]:this.zl().get(this.Jl,this.Kl),!this.ix(d,m,c,p,b,a))return;e.push(a.pastedRange)}if(k=this.at,k&&k.jx(a.pastedInternal),a.pastedInternal||(d=na,m=na,p=!1),f=this.options.clipBoardOptions,p&&(f=0),m&&1===m.length)for(k=0;k<e.length;k++)c=e[k],this.nx(m[0],c)&&(c.rowCount=1,c.colCount=1);return{fromSheet:d,fromRanges:m,isCutting:p,pasteOption:f,pastedRanges:e,clipboardText:b}},l5:function(b,a,e,f,c){var g=this.getRowCount(void 0),k=this.getColumnCount(void 0);return d(this)?-1<=b&&(c||b<g)&&-1<=a&&(c||a<k):this.pu(b,a,e,f,g,k)},p5:function(b){for(var a=0;a<b.length;a++)if(this.ou(b[a]))return!0;return!1},yx:function(b,a,e,f){var c,g,k={sheet:this,sheetName:this.Cj,row:this.Jl,col:this.Kl,cancel:!1};this.Wq(Da.LeaveCell,k);k&&!0===k.cancel||this.endEdit&&!this.endEdit()||(c=this.Jl,g=this.Kl,wa(e)&&(e=this.Jl),wa(f)&&(f=this.Kl),3===b?this.zx(e,f,a):4===b?this.Rs(e,f,a):1===b?this.Ax(e,f,a):2===b?this.Bx(e,f,a):5===b?this.Cx():6===b&&this.Dx(),this.Ss(b,c,g))},Ex:function(b){var a,e,f={sheet:this,sheetName:this.Cj,row:this.Jl,col:this.Kl,cancel:!1};this.Wq(Da.LeaveCell,f);f&&!0===f.cancel||this.endEdit()&&(a=this.Jl,e=this.Kl,3===b?this.Fx(this.Jl,this.Kl):4===b&&this.Gx(this.Jl,this.Kl),this.Ss(b,a,e))},Ss:function(b,a,e){var f,c,g,k,h,d,m,p,n,t,v,q,l,x,y,r;b=this.mm;var B=this.Uq,w=B.toArray(),z=!1;this.Hx||(f=this.Tq(this.Ix()),(1<B.length||1<f.rowCount||1<f.colCount)&&(z=!0),this.Tr());f=this.Jl;c=this.Kl;g=this.zl().get(f,c);this.Lr=g.rowCount;this.Mr=g.colCount;this.Hx||(k=this.Jx(f,c),h=this.selectionPolicy(),d=this.selectionUnit(),0===h?B.clear():1===h&&B.clear(),1===d?(k.col=-1,k.colCount=-1):2===d&&(k.row=-1,k.rowCount=-1),this.Kx(k.row,k.col,k.rowCount,k.colCount,!1),m=B.toArray(),b.zu(w,m)&&(this.yu(w,m),this.Au(w)));this.Yq(f,c);a!==f&&(p=this.wq,p&&p.Lx());k=this.yl;z?(n=this.am(),t=n.zr,v=n.Ar,q=n.width-t,l=n.height-v,k.Mx(t,v,q,l),k.repaint(new bb(t,v,q,n.Cr)),k.repaint(new bb(t,v,n.Br,l)),k.Pw(k.bm())):(x=this.zl().get(a,e),y=x.rowCount,r=x.colCount,k.im((new Ga(f,c,this.Lr,this.Mr)).union(new Ga(a,e,y,r))));a={sheet:this,sheetName:this.Cj,row:f,col:c};this.Wq(Da.EnterCell,a);this.Wq(Da.FormulatextboxEnterCell,a);b.cs&&b.cs(f,c)},Nx:function(b,a){var e=this.getDataValidator&&this.getDataValidator(b,a),e={sheet:this,sheetName:this.Cj,row:b,col:a,validator:e,validationResult:0};return this.Wq(Da.ValidationError,e),e.validationResult}});ca=u.Commands={};ca.Ox=function(b,a){return!!b&&2!==b.Px&&(b.yx(a,!1),!0)};ca.Qx=function(b,a,e,f){return!!b&&2!==b.Px&&(b.yx(a,!1,e,f),!0)};ca.Rx=function(b,a,e){return!!b&&2!==b.Px&&!(b.endEdit&&!b.endEdit())&&(b.Sx(a,e),!0)};ca.bT=D;ca.h4=A;ca.uv=function(b){var a=Ya.sl(),e=!a;b.register("navigationLeft",ca.navigationLeft,37,!1,!1,!1,!1);b.register("navigationRight",ca.navigationRight,39,!1,!1,!1,!1);b.register("navigationUp",ca.navigationUp,38,!1,!1,!1,!1);b.register("navigationDown",ca.navigationDown,40,!1,!1,!1,!1);b.register("navigationHome2",ca.navigationHome2,37,e,!1,!1,a);b.register("navigationEnd2",ca.navigationEnd2,39,e,!1,!1,a);b.register("navigationTop",ca.navigationTop,38,e,!1,!1,a);b.register("navigationBottom",ca.navigationBottom,40,e,!1,!1,a);b.register("navigationHome",ca.navigationHome,36,!1,!1,!1,!1);b.register("navigationFirst",ca.navigationFirst,36,!0,!1,!1,!1);b.register("navigationEnd",ca.navigationEnd,35,!1,!1,!1,!1);b.register("navigationLast",ca.navigationLast,35,!0,!1,!1,!1);b.register("moveToNextCell",ca.moveToNextCell,9,!1,!1,!1,!1);b.register("moveToPreviousCell",ca.moveToPreviousCell,9,!1,!0,!1,!1);b.register("navigationPageUp",ca.navigationPageUp,33,!1,!1,!1,!1);b.register("navigationPageDown",ca.navigationPageDown,34,!1,!1,!1,!1);b.register("navigationPreviousSheet",ca.navigationPreviousSheet,33,e,!1,!1,a);b.register("navigationNextSheet",ca.navigationNextSheet,34,e,!1,!1,a);b.register("clear",ca.clear,46,!1,!1,!1,!1);b.register("clearAndEditing",ca.clearAndEditing,8,!1,!1,!1,!1);b.register("commitInputNavigationDown",ca.commitInputNavigationDown,13,!1,!1,!1,!1);b.register("commitInputNavigationUp",ca.commitInputNavigationUp,13,!1,!0,!1,!1);b.register("cancelInput",ca.cancelInput,27,!1,!1,!1,!1);b.register("commitArrayFormula",ca.commitArrayFormula,13,!0,!0,!1,!1);b.register("selectionLeft",ca.selectionLeft,37,!1,!0,!1,!1);b.register("selectionRight",ca.selectionRight,39,!1,!0,!1,!1);b.register("selectionUp",ca.selectionUp,38,!1,!0,!1,!1);b.register("selectionDown",ca.selectionDown,40,!1,!0,!1,!1);b.register("selectionHome",ca.selectionHome,36,!1,!0,!1,!1);b.register("selectionEnd",ca.selectionEnd,35,!1,!0,!1,!1);b.register("selectionPageUp",ca.selectionPageUp,33,!1,!0,!1,!1);b.register("selectionPageDown",ca.selectionPageDown,34,!1,!0,!1,!1);b.register("selectionHome",ca.selectionHome,37,e,!0,!1,a);b.register("selectionEnd",ca.selectionEnd,39,e,!0,!1,a);b.register("selectionTop",ca.selectionTop,38,e,!0,!1,a);b.register("selectionBottom",ca.selectionBottom,40,e,!0,!1,a);b.register("selectionFirst",ca.selectionFirst,36,!0,!0,!1,!1);b.register("selectionLast",ca.selectionLast,35,!0,!0,!1,!1);b.register("copy",ca.copy,67,e,!1,!1,a);b.register("cut",ca.cut,88,e,!1,!1,a);b.register("paste",ca.paste,86,e,!1,!1,a);b.register("undo",ca.undo,90,e,!1,!1,a);b.register("redo",ca.redo,89,e,!1,!1,a);b.register("selectNextControl",ca.selectNextControl);b.register("selectPreviousControl",ca.selectPreviousControl);b.register("moveToNextCellThenControl",ca.moveToNextCellThenControl);b.register("moveToPreviousCellThenControl",ca.moveToPreviousCellThenControl);b.register("changeFormulaReference",ca.changeFormulaReference);b.register("resizeColumn",ca.resizeColumn);b.register("resizeRow",ca.resizeRow);b.register("autoFitColumn",ca.autoFitColumn);b.register("autoFitRow",ca.autoFitRow);b.register("editCell",ca.editCell);b.register("renameSheet",ca.renameSheet);b.register("zoom",ca.zoom);b.register("clearValues",ca.clearValues);b.register("clipboardPaste",ca.clipboardPaste)};ca.navigationLeft={canUndo:!1,execute:r(3)};ca.navigationRight={canUndo:!1,execute:r(4)};ca.navigationUp={canUndo:!1,execute:r(1)};ca.navigationDown={canUndo:!1,execute:r(2)};ca.commitArrayFormula={canUndo:!1,execute:function(b,a){var e=D(b,a),f=ca.Wx;return f&&(e=f.fv(e)),e.fv&&e.fv(),!0}};ca.commitInputNavigationDown={canUndo:!1,execute:function(b,a){var e=D(b,a),f=ca.Wx;return f&&(e=f.Xx(e)),e.yx(2,!1),!0}};ca.commitInputNavigationUp={canUndo:!1,execute:function(b,a){var e=D(b,a),f=ca.Wx;return f&&(e=f.Yx(e)),e.yx(1,!1),!0}};ca.navigationHome={canUndo:!1,execute:function(b,a){var e=D(b,a);return ca.Qx(e,4,na,e.frozenColumnCount()-1)}};ca.navigationHome2={canUndo:!1,execute:function(b,a){var e=D(b,a);return ca.Qx(e,4,na,-1)}};ca.navigationEnd={canUndo:!1,execute:function(b,a){var e=D(b,a);return ca.Qx(e,3,na,e.getColumnCount(void 0)-e.frozenTrailingColumnCount())}};ca.navigationEnd2={canUndo:!1,execute:function(b,a){var e=D(b,a);return ca.Qx(e,3,na,e.getColumnCount(void 0))}};ca.navigationTop={canUndo:!1,execute:function(b,a){var e=D(b,a);return ca.Qx(e,2,-1,na)}};ca.navigationBottom={canUndo:!1,execute:function(b,a){var e=D(b,a);return ca.Qx(e,1,e.getRowCount(void 0),na)}};ca.navigationPageUp={canUndo:!1,execute:function(b,a){var e,f,c,g,k,h=D(b,a);if(!h||2===h.Px)return!1;if(e=h.Ew(),e===na||e===h.lq)return!0;if(f=h.Gr(1,3),c=h._q(h.Jl-f.length),c<e&&(c=e),g=ca.Wx){if(k=g.Zx(h,c,e),k.r)return!0;h=k.sheet}return!!h.endEdit()&&(h.Qs(c,h.getActiveColumnIndex())&&(h.Jr(c,na),h.Qr=c,h.yx()),h.mq(e),!0)}};ca.navigationPageDown={canUndo:!1,execute:function(b,a){var e,f,c,g,k,h=D(b,a);if(!h||2===h.Px)return!1;if(e=h.$x(),e===na||e===h.lq)return!0;if(f=h.Gr(1,3),c=h.gr(h.Jl+f.length),c<e&&(c=e),g=ca.Wx){if(k=g._x(h,c,e),k.r)return!0;h=k.sheet}return!!h.endEdit()&&(h.Qs(c,h.getActiveColumnIndex())&&(h.Jr(c,na),h.Qr=c,h.yx()),h.mq(e),!0)}};ca.navigationNextSheet={canUndo:!1,execute:function(b,a){var e=D(b,a);w(e,!0)}};ca.navigationPreviousSheet={canUndo:!1,execute:function(b,a){var e=D(b,a);w(e,!1)}};ca.navigationFirst={canUndo:!1,execute:function(b,a){var e,f,c=D(b,a);if(!c||2===c.Px)return!1;if(e=ca.Wx){if(f=e.ay(c),f.r)return!0;c=f.sheet}return c.yx(5,!1,c.Jl,c.Kl),!0}};ca.navigationLast={canUndo:!1,execute:function(b,a){var e,f,c=D(b,a);if(!c||2===c.Px)return!1;if(e=ca.Wx){if(f=e.by(c),f.r)return!0;c=f.sheet}return c.yx(6,!1,c.Jl,c.Kl),!0}};ca.selectNextControl={canUndo:!1,execute:function(b,a){var e=D(b,a);return!!e.parent&&C(e,e.parent.nextControl)}};ca.selectPreviousControl={canUndo:!1,execute:function(b,a){var e=D(b,a);return!!e.parent&&C(e,e.parent.previousControl)}};ca.moveToNextCell={canUndo:!1,execute:function(b,a){var e=D(b,a),f=ca.Wx;return f&&(e=f.ey(e)),z(e,4),!0}};ca.moveToPreviousCell={canUndo:!1,execute:function(b,a){var e=D(b,a),f=ca.Wx;return f&&(e=f.gy(e)),z(e,3),!0}};ca.moveToNextCellThenControl={canUndo:!1,execute:function(b,a){var e,f,c=D(b,a),g=c.Qr,k=c.getActiveColumnIndex();return c.Tx=!0,e=c.hy(c.getActiveRowIndex(),k,!0,g),c.Tx=!1,f=!e||e.leadingCellRow<g||e.leadingCellRow===g&&k>e.col,f?ca.selectNextControl.execute(b,a):ca.moveToNextCell.execute(b,a)}};ca.moveToPreviousCellThenControl={canUndo:!1,execute:function(b,a){var e,f,c=D(b,a),g=c.Qr,k=c.getActiveColumnIndex();return c.Tx=!0,e=c.iy(c.getActiveRowIndex(),k,!0,g),c.Tx=!1,f=!e||e.leadingCellRow>g||e.leadingCellRow===g&&k<e.col,f?ca.selectPreviousControl.execute(b,a):ca.moveToPreviousCell.execute(b,a)}};ca.cancelInput={canUndo:!1,execute:function(b,a){var e,f,c,g;c=D(b,a);g=ca.Wx;if(g&&g.jy(c),c.isEditing())return e=c.getValue(c.Jl,c.Kl,3),!!c.endEdit(!0)&&(c.setValue(c.Jl,c.Kl,e,3,!0),!0);if(f=c.parent,e=f&&f.sheets)for(f=0,c=e.length;f<c;f++)(g=e[f])&&g.at&&g.at.ky()}};ca.clear={canUndo:!1,execute:function(b,a){var e,f=D(b,a);return!f.isEditing()&&(e=f.getSelections(),f.wu().execute({cmd:"clearValues",sheetName:f.name(),ranges:e}),!0)}};ca.clearAndEditing={canUndo:!1,execute:function(b,a){var e=D(b,a);return!e.isEditing()&&(Ya.sl()?(ca.clear.execute(b,a),!0):(e.startEdit(!0,""),!0))}};ca.copy={canUndo:!1,execute:function(b,a){var e=D(b,a),e=a.copyData=e.ux(a.ignoreClipboard);return a.callback&&a.callback(),!e||gb}};ca.cut={canUndo:!1,execute:function(b,a){var e=D(b,a),e=a.cutData=e.sx(a.ignoreClipboard);return a.callback&&a.callback(),!e||gb}};ca.paste={canUndo:!1,execute:function(b,a){D(b,a).vx(a)}};ca.selectionLeft={canUndo:!1,execute:n(37)};ca.selectionRight={canUndo:!1,execute:n(39)};ca.selectionUp={canUndo:!1,execute:n(38)};ca.selectionDown={canUndo:!1,execute:n(40)};ca.selectionHome={canUndo:!1,execute:n(37,!0)};ca.selectionEnd={canUndo:!1,execute:n(39,!0)};ca.selectionPageUp={canUndo:!1,execute:n(33)};ca.selectionPageDown={canUndo:!1,execute:n(34)};ca.selectionTop={canUndo:!1,execute:n(38,!0)};ca.selectionBottom={canUndo:!1,execute:n(40,!0)};ca.selectionFirst={canUndo:!1,execute:n(36,!0)};ca.selectionLast={canUndo:!1,execute:n(35,!0)};ca.changeFormulaReference={canUndo:!1,execute:function(b,a){var e=D(b,a),f=e&&e.mm;if(f){e.suspendPaint();try{f.ly&&f.ly()}finally{e.resumePaint()}}}};ca.undo={canUndo:!1,execute:function(b,a){var e;b&&(e=b.undoManager(),e&&e.canUndo()&&e.undo())}};ca.redo={canUndo:!1,execute:function(b,a){var e;b&&(e=b.undoManager(),e&&e.canRedo()&&e.redo())}};ca.resizeColumn={canUndo:!0,execute:function(b,a,e){return A(b,P,a,e)}};ca.resizeRow={canUndo:!0,execute:function(b,a,e){return A(b,V,a,e)}};ca.autoFitColumn={canUndo:!0,execute:function(b,a,e){return A(b,Z,a,e)}};ca.autoFitRow={canUndo:!0,execute:function(b,a,f){return A(b,e,a,f)}};ca.editCell={canUndo:!0,execute:function(a,e,f){return A(a,b,e,f)}};ca.renameSheet={canUndo:!0,execute:function(b,a,e){return A(b,N,a,e)}};ca.zoom={canUndo:!0,execute:function(b,a,e){return A(b,S,a,e)}};ca.clearValues={canUndo:!0,execute:function(b,a,e){return A(b,ja,a,e)}};ca.clipboardPaste={canUndo:!0,execute:function(b,a,e){return A(b,pa,a,e)}};nb={256:"bindingPath",4:"comment",2:"formula",16:"sparkline",64:"style",128:"tag",1:"value"};Ha(m.prototype,{py:function(){var b,a,e,f,c,g,k,h,d,m,p,n,t,v,q,l,x,y,r,B,w,z,E,C;c=this.my;var A=this.kj;if(A&&c){if(b=this.ny,a=c.row,e=c.col,f=c.rowCount,c=c.colCount,g=this.oy,k=!1,-1===a&&(k=!0,a=0,f=A.getRowCount(void 0)),-1===e&&(k=!0,e=0,c=A.getColumnCount(void 0)),d=[],0<(64&b))for(p=0;p<c;p++)d[p]=A.Aj(-1,p)||na;for(p=0;p<f;p++)for(n=a+p,0<(64&b)&&(h=A.Aj(n,-1)||na),t=0;t<c;t++){if(q=e+t,u.X3&&0<(2&b)&&A.getFormulaInformation&&(v=A.getFormulaInformation(n,q),v.hasFormula))if(v.isArrayFormula){if(l=v.baseRange,l.row===n&&l.col===q)for(x=l.row,y=l.row+l.rowCount;x<y;x++)for(r=l.col,B=l.col+l.colCount;r<B;r++)this.qy(g,x-a,r-e,v,2)}else this.qy(g,p,t,v.formula,2);!(0<(1&b))||v&&v.hasFormula||this.qy(g,p,t,A.getValue(n,q,3),1);0<(16&b)&&A.getSparkline&&(w=A.getSparkline(n,q),z=na,w&&(z=w.data()),w&&z&&this.qy(g,p,t,w,16));0<(64&b)&&(k?E=A.getActualStyle(n,q,3):(m=A.Aj(n,q)||na,E=A.Dq(n,q,3,m,h,d[t])),C=gb,E&&E.toJSON&&(C=JSON.stringify(E.toJSON(3,!0))),this.qy(g,p,t,C,64));x=A.comments;0<(4&b)&&x&&this.qy(g,p,t,x.get(n,q),4);0<(128&b)&&this.qy(g,p,t,A.getTag(n,q,3),128);0<(256&b)&&this.qy(g,p,t,A.getBindingPath&&A.getBindingPath(n,q,3),256)}}},sy:function(){return this.oy},qy:function(b,a,e,f,c){!wa(f)&&b&&(b[a]===gb&&(b[a]=[]),b[a][e]===gb&&(b[a][e]={}),b[a][e][nb[c]]=f)},uy:function(b){var a,e,f,c,g,k,h,d;if(b)for(a=this.oy,e=0,f=b.length;e<f;e++)if(c=b[e])for(g=0,k=c.length;g<k;g++)(h=c[g])&&(a[e]||(a[e]=[]),d=a[e][g],d?this.vy(h,d)&&(a[e][g]=gb):a[e][g]=h)},vy:function(b,a){var e,f,c;e=this.ny;var g=[];256&e&&g.push(nb[256]);4&e&&g.push(nb[4]);2&e&&g.push(nb[2]);16&e&&g.push(nb[16]);64&e&&g.push(nb[64]);128&e&&g.push(nb[128]);1&e&&g.push(nb[1]);e=0;for(f=g.length;e<f;e++)if(c=g[e],b[c]!==a[c])return!1;return!0},wy:function(){var b,a,e,f,c,g=this.my.row,k=this.my.col,h=this.oy,d=this.Iu;if(d&&0<d.length)return d;d=[];g=-1===g?0:g;k=-1===k?0:k;b=0;for(a=h.length;b<a;b++)if(e=h[b])for(f=0,c=e.length;f<c;f++)e[f]&&d.push({row:b+g,col:f+k});return this.Iu=d,d}});ca.xy=m;Ha(h.prototype,{yy:fb("a"),zy:fb("b"),Wp:fb("c"),Is:fb("d"),Ay:fb("e"),By:fb("f"),Cy:fb("g"),Dy:fb("h")});Ha(y.prototype,{Ey:a("a"),Fy:a("b"),Gy:function(b){return 0===arguments.length?this.Hy:(this.Hy||(this.Hy=[]),void(ua(b)&&this.Hy.push(b)))},Iy:a("c"),Jy:a("d"),Ky:a("e"),Ly:a("f"),My:a("g"),Ny:function(b){return 0===arguments.length?this.Oy:(this.Oy||(this.Oy=[]),void this.Oy.push(b))},Py:function(){return this.Qy()||this.Ry()||this.Sy()},Qy:function(){return B(this.Ey())},Ry:function(){return B(this.Fy())},Sy:function(){return B(this.Gy())},Ty:function(){return B(this.Iy())},Uy:function(){return B(this.Jy())},Vy:function(){return B(this.Ky())},Wy:function(){return B(this.Ly())},Xy:function(){return this.A5},Yy:function(){return B(this.My())}});ca.Zy=y;Ha(M.prototype,{Vo:t("a",0),bz:t("b",!0),cz:t("c",!0),Is:t("d",gb),dz:t("e",na),ez:t("f",na),fz:function(b,a,e){this.$y[b]!==na?0>a?this.$y[b]=na:this.$y[b]=a:0<=a&&(this.$y[b]=a);this._y[b]!==na?e?this._y[b]=e:this._y[b]=na:e&&(this._y[b]=e);this.az=!0},gz:function(b,a){a.level=-1;a.collapsed=!1;this.$y[b]!==na&&(a.level=this.$y[b]);this._y[b]!==na&&(a.collapsed=this._y[b])},hz:t("g",gb),iz:E("a"),jz:E("b"),kz:E("c"),Wy:E("d"),lz:E("e"),mz:E("f"),nz:function(){return this.az},oz:E("g")});Ha(p.prototype,{_v:t("a",0),bz:t("b",!0),cz:t("c",!0),Is:t("d",gb),pz:t("e",na),qz:t("f",na),fz:function(b,a,e){this.$y[b]!==na?0>a?this.$y[b]=na:this.$y[b]=a:0<=a&&(this.$y[b]=a);this._y[b]!==na?e?this._y[b]=e:this._y[b]=na:e&&(this._y[b]=e);this.az=!0},gz:function(b,a){a.level=-1;a.collapsed=!1;this.$y[b]!==na&&(a.level=this.$y[b]);this._y[b]!==na&&(a.collapsed=this._y[b])},rz:E("a"),jz:E("b"),kz:E("c"),Wy:E("d"),sz:E("e"),tz:E("f"),nz:function(){return this.az}});ca.x4=p;f.uz=function(b,a,e){var f=b.defaults;0<(64&e)&&(a.yy(b.getDefaultStyle()),a.Ay(b.getDefaultStyle(1)),a.Cy(b.getDefaultStyle(2)));0<(128&e)&&a.Is(b.tag());a.zy(f.colWidth);a.Wp(f.rowHeight);a.By(f.colHeaderRowHeight);a.Dy(f.rowHeaderColWidth)};f.vz=function(b,a,e,f,c){var k,h,d=a.Xj,m=a.Yj;if(g(b,1,0,f,d,m,c,a),0<(1&c))for(k=0;k<m;k++)(h=b.getDataColumnName&&b.getDataColumnName(f+k))&&e.hz(k,h);0<(32&c)&&(a.A5=!0,b.zl(1).each(0,f,d,m,function(b){a.Ny(b)}));h=b.columnOutlines;m=e.Yj;for(k=0;k<m;k++)e.Vo(k,b.$r(f+k)),e.bz(k,b.getColumnVisible(f+k)),e.cz(k,b.getColumnResizable(f+k)),0<(128&c)&&e.Is(k,b.getTag(-1,f+k)),0<(64&c)&&(e.dz(k,b.Aj(-1,f+k,3)),e.ez(k,b.Aj(-1,f+k,1))),0<(8&c)&&h&&!h.iT()&&e.fz(k,h.getLevel(f+k),h.getCollapsed(f+k))};f.xz=function(b,a,e,f,c){var k,h,d;if(!(0>=(1023&c)))for(k=a.Xj,h=a.Yj,g(b,2,f,0,k,h,c,a),0<(32&c)&&(a.A5=!0,b.zl(2).each(f,0,k,h,function(b){a.Ny(b)})),h=b.rowOutlines,k=e.Xj,d=0;d<k;d++)e._v(d,b.Yr(f+d)),e.bz(d,b.getRowVisible(f+d)),e.cz(d,b.getRowResizable(f+d)),0<(128&c)&&e.Is(d,b.getTag(f+d,-1)),0<(64&c)&&(e.pz(d,b.Aj(f+d,-1,3)),e.qz(d,b.Aj(f+d,-1,2))),0<(8&c)&&h&&!h.iT()&&e.fz(d,h.getLevel(f+d),h.getCollapsed(f+d))};f.yz=function(b,a,e,f,c){var k,h;0>=(1023&c)||(k=a.Xj,h=a.Yj,g(b,3,e,f,k,h,c,a),0<(32&c)&&(a.A5=!0,b.zl().each(e,f,k,h,function(b){a.Ny(b)})))};f.zz=function(b,a,e){var f,c,g,k;if(b.tables&&(f=b.tables.all()))for(b=0,c=f.length;b<c;b++)g=f[b],e.containsRange(g.range())&&(k=g.clone(),k.Az(g),a.push(k))};f.Bz=function(b,a,e,f,c){var g,k,h,d,m,p,n,t,v,q,l,x,y,r,B,w,z,E,C,A,M,N,D,F,S,G,P,X,ga,Y,T,Oa=a.Xj,V=a.Yj,W=b.comments;b&&u.X3&&b.suspendCalcService(void 0);b.suspendEvent();try{for(p=0;p<Oa;p++)for(n=0;n<V;n++)a.Yy()&&b.setBindingPath&&b.setBindingPath(e+p,f+n,na,c),a.Ry()&&3===c&&b.setFormula(e+p,f+n,na),a.Ty()&&3===c&&b.removeSparkline(e+p,f+n),a.Qy()&&b.setValue(e+p,f+n,na,c),a.Uy()&&b.Nq(e+p,f+n,na,c),a.Vy()&&W&&W.remove(e+p,f+n),a.Wy()&&b.setTag(e+p,f+n,na,c);if(a.Yy()&&b.setBindingPath)for(t=a.My(),g=0;g<t.length;g++)v=t[g],b.setBindingPath(e+v.row,f+v.column,v.value,c);if(a.Qy())for(q=a.Ey(),g=0;g<q.length;g++)l=q[g],b.setValue(e+l.row,f+l.column,l.value,c);if(a.Ry()&&3===c)for(x=a.Fy(),g=0;g<x.length;g++)h=x[g],b.setFormula(e+h.row,f+h.column,h.value);if(a.Ty()&&3===c)for(y=a.Iy(),r=0;r<y.length;r++)B=y[r],(w=B.value)?w.dateAxisData()?b.setSparkline(e+B.row,f+B.column,w.data(),w.dataOrientation(),w.sparklineType(),w.setting(),w.dateAxisData(),w.dateAxisOrientation()):b.setSparkline(e+B.row,f+B.column,w.data(),w.dataOrientation(),w.sparklineType(),w.setting()):b.removeSparkline(e+B.row,f+B.column);if(a.Uy())for(z=a.Jy(),g=0;g<z.length;g++)E=z[g],b.Nq(e+E.row,f+E.column,E.value,c);if(a.Vy()&&W)for(C=a.Ky(),g=0;g<C.length;g++)A=C[g],M=A.value,W.Cz(e+A.row,f+A.column,M);if(a.Wy())for(N=a.Ly(),D=N.length,F=0;F<D;F++)S=N[F],b.setTag(e+S.row,f+S.column,S.value,c);if(u.X3&&a.Sy()&&3===c){if(G=b.Ms(e,f,Oa,V),G&&0<G.length)for(d=G.getLength(0),m=0;m<d;m++)k=G[m][0],b.setArrayFormula(k.row,k.col,k.rowCount,k.colCount,na);if(G=a.Gy(),G&&0<G.length)for(d=G.length,m=0;m<d;m++)P=G[m],X=P.baseRange,b.setArrayFormula(X.row,X.col,X.rowCount,X.colCount,P.formula)}}finally{u.X3&&b&&u.X3&&b.resumeCalcService(!1),b.resumeEvent()}if(a.Xy()){if(ga=b.zl(c),ga&&0<ga.length)for(Y=[],ga.each(e,f,Oa,V,function(b){b&&Y.push(b)}),g=0;g<Y.length;g++)b=Y[g],ga.remove(b);if(ga&&(T=a.Ny()))for(g=0;g<T.length;g++)b=T[g],ga.addSpan(b)}};f.Dz=function(b,a,e){var f,c,g,k=a.Yj;if(a.oz()&&b.bindColumn)for(f=0;f<k;f++)(c=a.hz(f))&&b.bindColumn(e+f,c);for(f=0;f<k;f++)a.iz()&&b.setColumnWidth(e+f,a.Vo(f),3),a.jz()&&b.setColumnVisible(e+f,a.bz(f),3),a.kz()&&b.setColumnResizable(e+f,a.cz(f),3),a.Wy()&&b.setTag(-1,e+f,a.Is(f),3),a.lz()&&b.Nq(-1,e+f,a.dz(f),3),a.mz()&&b.Nq(-1,e+f,a.ez(f),1);if(a.nz()&&(g=b.columnOutlines))for(b={level:na,collapsed:na},f=0;f<k;f++)a.gz(f,b),g.Ez(e+f,b.level),g.setCollapsed(e+f,b.collapsed)};f.Fz=function(b,a,e){var f,c,g=a.Xj;for(f=0;f<g;f++)a.rz()&&b.setRowHeight(e+f,a._v(f),3),a.jz()&&b.setRowVisible(e+f,a.bz(f),3),a.kz()&&b.setRowResizable(e+f,a.cz(f),3),a.Wy()&&b.setTag(e+f,-1,a.Is(f),3),a.sz()&&b.Nq(e+f,-1,a.pz(f),3),a.tz()&&b.Nq(e+f,-1,a.qz(f),2);if(a.nz()&&(c=b.rowOutlines))for(b={level:na,collapsed:na},f=0;f<g;f++)a.gz(f,b),c.Ez(e+f,b.level),c.setCollapsed(e+f,b.collapsed)};f.Gz=function(b,a){var e=a.yy(),f=b.defaults;ua(e)&&b.setDefaultStyle(e);e=a.zy();ua(e)&&(f.colWidth=e);e=a.Wp();ua(e)&&(f.rowHeight=e);e=a.Is();ua(e)&&b.tag(e);e=a.Ay();ua(e)&&b.setDefaultStyle(e,1);e=a.By();ua(e)&&(f.colHeaderRowHeight=e);e=a.Cy();ua(e)&&b.setDefaultStyle(e,2);e=a.Dy();ua(e)&&(f.rowHeaderColWidth=e)};f.Hz=function(b,a,e){var f,c,g=b.tables;if(g)if(f=a.length,0<f)for(b=0;b<f;b++)c=a[b],g.Cz(c);else if(a=g.all())for(b=a.length-1;0<=b;b--)c=a[b],e.containsRange(c.range())&&g.vV(c)};f.Iz=function(b,a,e,f,g){var k,h,d,m;0>a&&(a=0,f=b.getRowCount(void 0));0>e&&(e=0,g=b.getColumnCount(void 0));k=[];for(h=0;h<f;h++)for(d=0;d<g;d++)m=b.getValue(a+h,e+d),m!==gb&&m!==na&&k.push(new c(h,d,m));return k};f.Bu=function(b,a,e,f,c,g,k){b&&(0>a&&(a=0,f=b.getRowCount(void 0)),0>e&&(e=0,c=b.getColumnCount(void 0)),b.Bu(a,e,f,c,g,k))};f.Jz=function(b,a,e,f,c){(b=b.Bj())&&b.clear(a,e,f,c)};ca.Kz=f;W.prototype={constructor:W,execute:function(){},canExecute:function(){return!0},canUndo:function(){return!0},saveState:function(){},undo:function(){return!0},Lz:k,Mz:x};ca.ActionBase=W;ia(P,W);Ha(P.prototype,{Rz:function(b){var a,e,f,c,g,h,d,m,p,n,t,v,q,l,y,r,B,w,z,E,C=!1;if((b?this.canUndo():this.canExecute())&&(a=this.VQ,e=this.kj,f=a.columns,c=a.rowHeader,g=f&&f.length,h=da,e&&0<g)){if(d=this.Sz(f),m={sheet:e,sheetName:e.Cj,colList:d,header:c,cancel:!1},e.Wq(Ra,m),m&&!0===m.cancel)return C;a.Tz=!0;b||this.saveState();k(e);try{p=c?e.getColumnCount(2):e.getColumnCount(3);t=n=e.qq;v=e.frozenColumnCount();for(q=n-1;q>=v&&!(e.getColumnVisible(q)&&0<e.Tl(q));q--)e.getColumnResizable(q)&&(t=q);l=h;y=a.size;for(r=0;r<g;r++)for(B=f[r],w=B.firstCol,z=B.lastCol,E=w;E<=z;E++)0<=E&&E<p&&(b&&(y=a.Pz[r][E-w]),c&&e.getColumnResizable(E,2)&&y!==e.$r(E,2)?(e.setColumnWidth(E,y,2),C=!0):!c&&e.getColumnResizable(E,3)&&y!==e.$r(E,3)&&(e.setColumnWidth(E,y,3),C=!0),l=Za(E,l));l!==h&&l<=n&&t!==n&&(e.qq=t)}finally{x(e,!1,!0)}e.Wq(jb,{sheet:e,sheetName:e.Cj,colList:d,header:a.rowHeader});e.qs()}return C},execute:function(){return this.Rz(!1)},saveState:function(){var b,a,e,f,c,g,k,h,d,m=this.VQ,p=[],n=this.kj,t=m.columns,v=t&&t.length;if(n&&0<v)for(a=(b=m.rowHeader)?2:3,e=n.getColumnCount(a),b=b?n.defaults.rowHeaderColWidth:n.defaults.colWidth,f=0;f<v;f++)for(c=t[f],g=c.firstCol,c=c.lastCol,p[f]=[],d=g;d<=c;d++)k=d-g,0<=d&&d<e?(h=n.getColumnWidth(d,a),h=Oa(h)||h===na?b:La(h),p[f][k]=h):p[f][k]=-1;m.Pz=p},undo:function(){return this.Rz(!0)},Sz:function(b){var a,e,f,c,g=[];a=0;for(e=b.length;a<e;a++)for(f=b[a],c=f.firstCol,f=f.lastCol;c<=f;c++)g.push(c);return g},canUndo:function(){return this.VQ.Tz}});ia(V,W);Ha(V.prototype,{Rz:function(b){var a,e,f,c,g,h,d,m,p,n,t,v,q,l,y,r,B,w,z,E,C=!1;if((b?this.canUndo():this.canExecute())&&(a=this.kj,e=this.VQ,f=e.rows,c=f&&f.length,g=da,a&&0<c)){if(h=this.Vz(f),d={sheet:a,sheetName:a.Cj,rowList:h,header:e.columnHeader,cancel:!1},a.Wq(Ta,d),d&&!0===d.cancel)return C;e.Tz=!0;b||this.saveState();k(a);try{p=(m=e.columnHeader)?a.getRowCount(1):a.getRowCount(3);t=n=a.lq;v=a.frozenRowCount();for(q=n-1;q>=v&&!(a.getRowVisible(q)&&0<a.Sl(q));q--)a.getRowResizable(q)&&(t=q);l=g;y=e.size;for(r=0;r<c;r++)for(B=f[r],w=B.firstRow,z=B.lastRow,E=w;E<=z;E++)0<=E&&E<p&&(b&&(y=e.Pz[r][E-w]),m&&a.getRowResizable(E,1)&&y!==a.Yr(E,1)?(a.setRowHeight(E,y,1),C=!0):!m&&a.getRowResizable(E,3)&&y!==a.Yr(E,3)&&(a.setRowHeight(E,y,3),C=!0),l=Za(E,l));l!==g&&l<=n&&t!==n&&(a.lq=t)}finally{x(a,!1,!0)}a.Wq(ib,{sheet:a,sheetName:a.Cj,rowList:h,header:e.columnHeader});a.os()}return C},execute:function(){return this.Rz(!1)},saveState:function(){var b,a,e,f,c,g,k,h,d=this.VQ,m=[],p=this.kj,n=d.rows,t=n&&n.length;if(p&&0<t)for(b=d.columnHeader,a=p.getRowCount(b?1:3),b=b?p.defaults.colHeaderRowHeight:p.defaults.rowHeight,e=0;e<t;e++)for(f=n[e],c=f.firstRow,f=f.lastRow,m[e]=[],h=c;h<=f;h++)g=h-c,0<=h&&h<a?(k=p.getRowHeight(h,3),k=Oa(k)||k===na?b:La(k),m[e][g]=k):m[e][g]=-1;d.Pz=m},undo:function(){return this.Rz(!0)},Vz:function(b){var a,e,f,c,g=[];a=0;for(e=b.length;a<e;a++)for(f=b[a],c=f.firstRow,f=f.lastRow;c<=f;c++)g.push(c);return g},canUndo:function(){return this.VQ.Tz}});ia(Z,W);Ha(Z.prototype,{canExecute:function(){var b=this.VQ;return this.kj&&b.columns&&0<b.columns.length},Rz:function(b){var a,e,f,c,g,h,d,m,p,n,t,v,q,l=!1;if(b?this.canUndo():this.canExecute()){if(a=this.VQ,e=this.kj,f=this.Wz,c=this.Sz(a.columns),g=2===f,h={sheet:e,sheetName:e.name(),colList:c,header:g,cancel:!1},e.Wq(Ra,h),h&&!0===h.cancel)return l;a.Tz=!0;b||this.saveState();h=e.getColumnCount(f);d=h-1;n=m=0;for(t=a.columns.length;n<t;n++)p=a.columns[n].col,d=d>p?p:d,m=m<p?p:m;Na.qn(e,0,d,e.getRowCount(void 0)-1,m);k(e);try{for(n=0,t=a.columns.length;n<t;n++)q=a.columns[n].col,0<=q&&q<h&&e.getColumnResizable(q,f)&&(v=b?a.Pz[n]:this.xl(q),v!==e.getColumnWidth(q,f)&&(e.setColumnWidth(q,v,f),l=!0))}finally{Na.Nm(),x(e,!1,!0)}e.Wq(jb,{sheet:e,sheetName:e.Cj,colList:c,header:g})}return l},execute:function(){return this.Rz(!1)},saveState:function(){var b,a,e,f,c=this.VQ,g=na,k=this.kj,h=this.Wz;if(k&&c.columns&&0<c.columns.length)for(b=k.getColumnCount(h),g=[c.columns.length],a=0,e=c.columns.length;a<e;a++)f=c.columns[a],0<=f.col&&f.col<b?g[a]=k.getColumnWidth(f.col,h):g[a]=-1;c.Pz=g},undo:function(){return this.Rz(!0)},Sz:function(b){var a,e,f=[];for(a=0;a<b.length;a++)e=b[a],f.push(e.col);return f},xl:function(b){return Ya.xl(b,this.kj,this.Wz,this.VQ.autoFitType)},canUndo:function(){return this.VQ.Tz}});ia(e,W);Ha(e.prototype,{canExecute:function(){var b=this.VQ;return this.kj&&b.rows&&0<b.rows.length},Rz:function(b){var a,e,f,c,g,h,d,m,p,n,t,v=!1;if(b?this.canUndo():this.canExecute()){if(a=this.VQ,e=this.kj,f=this.Vz(a.rows),c=this.Wz,g=1===this.Wz,h={sheet:e,sheetName:e.Cj,rowList:f,header:g,cancel:!1},e.Wq(Ta,h),h&&!0===h.cancel)return v;a.Tz=!0;b||this.saveState();k(e);try{for(d=e.getRowCount(c),p=0,n=a.rows.length;p<n;p++)t=a.rows[p].row,0<=t&&t<d&&e.getRowResizable(t,c)&&(m=b?a.Pz[p]:this.Fl(t),m!==e.getRowHeight(t,c)&&(e.setRowHeight(t,m,c),v=!0))}finally{x(e,!1,!0)}e.Wq(ib,{sheet:e,sheetName:e.Cj,rowList:f,header:g})}return v},execute:function(){return this.Rz(!1)},saveState:function(){var b,a,e,f,c=this.VQ,g=na,k=this.kj,h=this.Wz;if(k&&c.rows&&0<c.rows.length)for(g=[c.rows.length],b=k.getRowCount(h),a=0,e=c.rows.length;a<e;a++)f=c.rows[a],0<=f.row&&f.row<b?g[a]=k.getRowHeight(f.row,h):g[a]=-1;c.Pz=g},undo:function(){return this.Rz(!0)},Vz:function(b){var a,e,f,c=[];a=0;for(e=b.length;a<e;a++)f=b[a],c.push(f.row);return c},Fl:function(b){return Ya.Fl(b,this.kj,this.Wz,this.VQ.autoFitType)},canUndo:function(){return this.VQ.Tz}});ia(b,W);Ha(b.prototype,{canExecute:function(){var b,a,e=this.kj,f=this.VQ,c=f.ranges;b=f.row;f=f.col;if(c)for(b=0;b<c.length;b++){if(a=c[b],!e.Y3(a.row,a.col,a.rowCount,a.colCount))return!1}else if(!e.Y3(b,f,1,1))return!1;return!0},saveState:function(){var b=this,a=b.kj,e=b.VQ;b.yA(function(f,c){var g=u.X3&&a.getFormulaInformation(f,c),k=b.zA(f,c);g&&g.hasFormula?!g.isArrayFormula||g.baseRange.row===f&&g.baseRange.col===c?(e.vA[k]=g.formula,e.wA[k]=g):e.wA[k]=!1:e.vA[k]=a.getValue(b.VQ.row,b.VQ.col)})},yA:function(b){var a,e,f,c;a=this.VQ;var g=a.ranges;if(g)for(a=0;a<g.length;a++)for(e=g[a],f=e.row;f<e.row+e.rowCount;f++)for(c=e.col;c<e.col+e.colCount;c++)b(f,c);else b(a.row,a.col)},undo:function(){var b,a,e,f,c=this;if(c.canUndo()){b=c.kj;a=c.VQ;k(b,!0);try{b.Fu(va+".cellEditAction",function(a,e){"value"===e.propertyName&&b.xu(e.row,e.col,e.oldValue,e.newValue)}),c.yA(function(e,f){var g=c.zA(e,f),k=!!u.X3&&a.wA[g];k?k.isArrayFormula?b.setArrayFormula(e,f,k.baseRange.rowCount,k.baseRange.colCount,k.formula):b.setFormula(e,f,a.vA[g]):(k=u.X3?b.getFormulaInformation(e,f):na,k&&(k.isArrayFormula?b.setArrayFormula(e,f,k.baseRange.rowCount,k.baseRange.colCount,na):b.setFormula(e,f,na)),b.setValue(e,f,a.vA[g]))})}catch(Gb){return!1}finally{b.Gu(va+".cellEditAction"),x(b,!0)}return e=b.am(),f=new bb(e.kt,e.nt,e.width-e.kt,e.height-e.nt),b.repaint(f),!0}return!1},execute:function(){var b,a,e=!1;if(this.canExecute()){this.saveState();b=this.kj;k(b,!0);try{b.Fu(va+".cellEditAction",function(a,e){"value"===e.propertyName&&b.xu(e.row,e.col,e.oldValue,e.newValue)}),this.VQ.applyResult=this.AA(),e=!0}finally{b.Gu(va+".cellEditAction"),x(b,!0)}a=b.am();a=new bb(a.kt,a.nt,a.width-a.kt,a.height-a.nt);b.repaint(a)}return e},zA:function(b,a){return b+"_"+a},BA:function(){var b,a,e,f,c,g,k=0,h=this.kj,d=this.VQ,m=d.row,p=d.col,n=d.newValue,d=!d.hasOwnProperty("autoFormat")||d.autoFormat;return u.X3&&n&&0<n.length&&"\x3d"===n[0]?h.getDataValidator&&h.getDataValidator(m,p)&&(b=n.substring(1),""!==b&&b!==h.getFormula(m,p)&&(a=h.Cf(),a&&(e=a.parse(h.yj(),b,0<=m?m:0,0<=p?p:0,!0),e&&(f=a.Hg(h.yj(),e,{row:m,col:p}),h.isValid&&!h.isValid(m,p,f)&&(k=h.Nx(m,p)))))):(c=this.CA(m,p,n,d),g=!h.isValid||h.isValid(m,p,c),g||(k=h.Nx(m,p),h.mm.DA=!0)),k},AA:function(){var b,a,e,f,c,g,k,h,d,m,p,n=this.kj,t=this.VQ,v=t.newValue,q=this.BA();if(1===q||2===q)return q;if(a=!t.hasOwnProperty("autoFormat")||t.autoFormat,e=t.row,e=0<=e?e:0,f=t.col,f=0<=f?f:0,c=l(33),u.X3&&c&&c.Parser)if(g=n.parent,k=g&&g.options.allowUserEditFormula,h=n.Cf(),k&&h&&v&&0<v.length&&"\x3d"===v[0])try{if(t.ranges&&1===t.endEditType)return m=t.ranges[0],n.setArrayFormula(m.row,m.col,m.rowCount,m.colCount,v.substring(1)),q;d=h.parse(n.yj(),v.substring(1),e,f,!0)}catch(Bb){throw n.Os(0,"string"==typeof Bb?Bb:Bb.message),Bb;}else t.ranges&&1===t.endEditType&&(m=t.ranges[0],n.getRange(m.row,m.col,m.rowCount,m.colCount,3).clear(1));return d||(p=!1,/^('=)/gi.test(v)&&(v=v.substring(1),p=!0),(wa(b)||p)&&(b=this.CA(e,f,v,a))),this.yA(function(a,e){if(d)try{n._u(a,e,h.unparse(n.yj(),d,a,e),d),n.Wq(Da.UserFormulaEntered,{sheet:n,sheetName:n.Cj,row:a,col:e,formula:v.substring(1).toUpperCase()})}catch(ob){throw n.Os(0,"string"==typeof ob?ob:ob.message),ob;}else{try{n.hasFormula&&n.hasFormula(a,e)&&n.setFormula(a,e,na)}catch(ob){throw n.Os(0,"string"==typeof ob?ob:ob.message),ob;}try{n.uq(a,e,b)}catch(ob){n.setValue(a,e,v)}}}),q},canUndo:function(){return 0===this.VQ.applyResult},CA:function(b,a,e,f){var c,g,k,h,d=this.kj,m=d.getActualStyle(b,a),p={};e=Ya.ul(m,e,f,p,this.VQ.editingFormatter);p=p.value;return f&&p&&(c=na,f&&p&&(e!==na&&"General"!==p.formatString()||!m._autoFormatter)&&(p.isAuto=!0,c=p),c&&(g=d.Aj(b,a),k="string"==typeof g,g&&!k||(h=new ya,k&&(h.parentName=g),g=h),g._autoFormatter=c,d.setStyle(b,a,g))),e}});ia(N,W);Ha(N.prototype,{canUndo:function(){return!!this.VQ.FA},canExecute:function(){var b=this.VQ;return this.kj&&b.name&&b.name!==b.FA},execute:function(){var b=this.kj,a=this.VQ,e=a.name,f=!1;return this.canExecute()&&b&&e&&e!==a.FA&&(this.saveState(),v(b,e),f=!0,a.sheetName=e),f},saveState:function(){this.kj&&(this.VQ.FA=this.kj.name())},undo:function(){var b;return!(!this.canUndo()||!(b=this.kj))&&(v(b,this.VQ.FA),this.VQ.sheetName=this.VQ.FA,!0)}});ia(S,W);Ha(S.prototype,{canExecute:function(){return this.kj&&this.kj.parent.options.allowUserZoom&&this.kj._zoomFactor!==this.VQ.zoomFactor},execute:function(){var b=this.VQ,a=!1;return this.canExecute()&&(this.saveState(),a=X(this.kj,b.zoomFactor)),a},saveState:function(){this.kj&&(this.VQ.oldZoomFactor=this.kj._zoomFactor)},undo:function(){var b=this.kj;if(this.canUndo())return b&&X(b,this.VQ.oldZoomFactor)}});ia(ka,W);Ha(ka.prototype,{execute:function(){var b,a,e,c,g,h,d;if(this.canExecute()&&(this.saveState(),b=this.kj,b&&(a=b.Tq(this.VQ.clearRange),e=a.row,c=a.col,g=a.rowCount,h=a.colCount,0<h&&0<g)))try{b.Fu(va+".clearRangeAction",function(a,e){"value"===e.propertyName&&b.xu(e.row,e.col,e.oldValue,e.newValue)}),k(b),b.getRange(e,c,g,h,3).clear(1),x(b),d=this.VQ.Iu,f.Bu(b,e,c,g,h,d?d.wy():[],2)}finally{b.Gu(va+".clearRangeAction")}},canExecute:function(){var b=this.VQ.clearRange;return this.kj.Y3(b.row,b.col,b.rowCount,b.colCount)},canUndo:function(){return!!this.VQ.JA},saveState:function(){var b,a,e,f,c,g,k,h,d,p,n=this.kj,t=this.VQ.clearRange;d=this.VQ.IA=[];if(n){if(b=this.VQ.KA=[],n.tables&&(a=n.tables.all(),a&&0<a.length))for(e=0;e<a.length;e++)f=a[e],t.containsRange(f.range())&&b.push(f);if(n.rowFilter&&(c=n.rowFilter())&&c.range&&c.isFiltered()&&(g=c.range.row,k=c.range.rowCount,c.filterButtonVisible&&c.filterButtonVisible()&&(g=c.range.row-1,k=c.range.rowCount+1,0>g&&(g=-1,k=-1)),(-1===t.row||t.row<=g&&g+k<=t.row+t.rowCount)&&(-1===t.col||t.col<=c.range.col&&c.range.col+c.range.colCount<=t.col+t.colCount)))for(b=0>c.range.col?0:c.range.col,g=0>c.range.colCount?n.getColumnCount(void 0):c.range.colCount,a=0;a<g;a++)c.isFiltered(b+a)&&d.push(b+a);if(h=n.Tq(t),0<h.colCount&&0<h.rowCount)for(c=this.VQ.JA=[h.row+h.rowCount],d=0;d<h.rowCount;d++)for(c[h.row+d]=[h.col+h.colCount],a=0;a<h.colCount;a++)g=h.row+d,b=h.col+a,(e=u.X3&&n.getFormulaInformation(g,b))&&e.hasFormula?!e.isArrayFormula||e.baseRange.row===g&&e.baseRange.col===b?c[g][b]=new Y(e.formula,e):c[g][b]=-1:(p=n.getValue(g,b),p!==gb&&p!==na&&(c[g][b]=new Y(p,gb)));n.isDirtySuspended()||(this.VQ.Iu=new m(n,n.Tq(t),3))}},undo:function(){var b,a,e,c,g,h,d,m,p,n,t,v,q,l,y,r,B,w,z,E=this.kj;if(this.canUndo()&&E){if(b=!1,e=this.VQ.KA,e&&0<e.length)for(c=e.length,g=E.tables,a=0;a<c;a++)h=e[a],d=h.range(),g.LA(E,h.name(),d.row,d.col,d.rowCount,d.colCount)&&g.Cz(h);if(m=E.Tq(this.VQ.clearRange),p=this.VQ.JA,p&&0<m.colCount&&0<m.rowCount){k(E);try{E.Fu(va+".clearRangeAction",function(b,a){"value"===a.propertyName&&E.xu(a.row,a.col,a.oldValue,a.newValue)});n=m.rowCount;t=m.colCount;for(a=0;a<n;a++)for(v=0;v<t;v++)q=m.row+a,l=m.col+v,y=p[q][l],-1!==y&&(y?y.formulaInfo?(r=y.formulaInfo,r&&r.isArrayFormula?E.setArrayFormula(q,l,r.baseRange.rowCount,r.baseRange.colCount,r.formula):E.setFormula(q,l,y.value)):(u.X3&&E.setFormula(q,l,na),E.setValue(q,l,y.value)):(u.X3&&E.setFormula(q,l,na),E.setValue(q,l,na)));b=!0}finally{x(E),E.Gu(va+".clearRangeAction")}}if(b&&(B=this.VQ.Iu,f.Bu(E,m.row,m.col,m.rowCount,m.colCount,B?B.wy():[],2)),z=this.VQ.IA,E.rowFilter&&(w=E.rowFilter())&&z&&0<z.length)for(a=0;a<z.length;a++)e=z[a],w.filter(e);if(b)return E.repaint(),!0}return!1}});ia(ja,W);Ha(ja.prototype,{canExecute:function(){var b,a,e=this.VQ.MA;if(e){for(b=0;b<e.length;b++)if(a=e[b],!a.canExecute())return!1;return!0}return!1},execute:function(){var b,a,e,f;if(this.canExecute()&&(b=this.VQ.MA,a=this.kj,this.saveState(),b)){k(a,!0);for(e=0;e<b.length;e++)f=b[e],f.execute();return x(a,!0),!0}return!1},canUndo:function(){var b,a,e=this.VQ.MA;if(e){for(b=0;b<e.length;b++)if(a=e[b],!a.canUndo())return!1;return!0}return!1},saveState:function(){var b,a,e=this.VQ.MA;if(e)for(b=0;b<e.length;b++)a=e[b],a.saveState()},undo:function(){var b,a,e,f,c=this.VQ.MA;if(this.canUndo()){b=this.kj;for(a=c.length-1;0<=a;a--)if(e=c[a],k(b,!0),f=e.undo(),x(b,!0),!f)return!1;return!0}return!1}});ca.OA=ja;ca.y4=T;ca.vz=fa;ca.z4=Fa;ca.zz=aa;ca.xz=xa;ia(la,W);Ha(la.prototype,{canExecute:function(){var b=this.kj,a=this.VQ.pasteExtent,e=a.targetRange,f=a.sourceRange;return b.Y3(e.row,e.col,e.rowCount,e.colCount)&&(!a.isCutting||b.Y3(f.row,f.col,f.rowCount,f.colCount))},saveState:function(){var b,a,e,c,g,k,p,n=this.VQ.pasteExtent,t=this.VQ.io={},v=n.isCutting,q=la.qx(this.VQ.pasteOption),l=n.sourceRange,n=n.targetRange,x=this.VQ.fromSheet,y=this.VQ.toSheet;x&&l&&v&&(a=0>l.row?0:l.row,e=0>l.col?0:l.col,c=0>l.row?x.getRowCount(void 0):l.rowCount,g=0>l.col?x.getColumnCount(void 0):l.colCount,0>l.row&&0>l.col&&0>n.row&&0>n.col&&x.Cj!==y.Cj&&(k=new h,f.uz(x,k,q),t.TA=k),0>l.row&&(b=fa(x,e,g,q),t.jA=b.headerCells,t.kA=b.columns),0>l.col&&(b=xa(x,a,c,q),t.nA=b.headerCells,t.oA=b.rows),t.bA=Fa(x,a,e,c,g,q),t.qA=aa(this.kj,a,e,c,g),x.isDirtySuspended()||(t.cA=new m(x,l,q)));a=0>n.row?0:n.row;e=0>n.col?0:n.col;c=0>n.row?y.getRowCount(void 0):n.rowCount;g=0>n.col?y.getColumnCount(void 0):n.colCount;x&&l&&(0>l.row&&0>l.col&&0>n.row&&0>n.col&&x.Cj!==y.Cj&&(p=new h,f.uz(y,p,q),t.UA=p),0>l.row&&(b=fa(y,e,g,q),t.hA=b.headerCells,t.iA=b.columns),0>l.col&&(b=xa(y,a,c,q),t.lA=b.headerCells,t.mA=b.rows));t.eA=Fa(y,a,e,c,g,q);t.pA=aa(this.kj,a,e,c,g);y.isDirtySuspended()||(t.fA=new m(y,n,q));d(y)&&(b={sheet:y,rowCount:y.getRowCount(),colCount:y.getColumnCount(),undo:Ia},t.m5=b)},VA:function(){return this.VQ.pasteExtent.targetRange},execute:function(){var b,a,e,c,g,k,h,p,n,t,v,q,l,x,y,r;if(this.canExecute()&&(b=this.VQ.fromSheet,a=this.VQ.toSheet,e=this.VQ.pasteExtent,c=this.VQ.pasteOption,g=e.sourceRange,k=e.targetRange,!b||!g||b.pu(g.row,g.col,g.rowCount,g.colCount,b.getRowCount(void 0),b.getColumnCount(void 0)))&&a&&k&&a.l5(k.row,k.col,k.rowCount,k.colCount,!0)){this.saveState();this.kj.suspendPaint();a.suspendEvent();b&&b.suspendEvent();try{d(a)&&(h=-1,p=-1,-1!==k.row?h=k.row+k.rowCount:-1===g.row&&(h=b.getRowCount(void 0)),n=a.getRowCount(void 0),h>n&&a.addRows(n,h-n),-1!==k.col?p=k.col+k.colCount:-1===g.col&&(p=b.getColumnCount(void 0)),p>a.getColumnCount(void 0)&&a.setColumnCount(p)),g&&Na.qn(b,g.row,g.col,g.row+g.rowCount-1,g.col+g.colCount-1),a.px(b,g,a,k,e.isCutting,e.clipboardText,e.clipboardHtml,c,!e.includeFilteredOutRow)}finally{a.resumeEvent(),b&&b.resumeEvent(),this.kj.resumePaint(),h=this.VQ.io,(p=this.kj)&&(t=h.bA,v=la.qx(c),e.isCutting&&t&&b&&t.data&&t.data.Py()&&(q=[],b.isDirtySuspended()||(l=new m(b,g,v),l.uy(h.cA.sy()),h._z=l,q=l.wy()),f.Bu(b,g.row,g.col,g.rowCount,g.colCount,q,3)),x=h.eA,x&&a&&x.data&&x.data.Py()&&(y=[],a.isDirtySuspended()||(r=new m(a,k,v),r.uy(h.fA.sy()),h.dA=r,y=r.wy()),f.Bu(a,k.row,k.col,k.rowCount,k.colCount,y,3))),g&&Na.Nm()}}},undo:function(){var b,a,e,c,g,k,h,m,p,n,t,v,q,l,x,y,r,B,w,z=0;if(this.canUndo()){if((b=this.VQ.fromSheet,a=this.VQ.toSheet,e=this.VQ.pasteExtent,c=e.sourceRange,g=e.targetRange,!a||!g)||!a.pu(g.row,g.col,g.rowCount,g.colCount,a.getRowCount(void 0),a.getColumnCount(void 0))||b&&c&&(!b.pu(c.row,c.col,c.rowCount,c.colCount,b.getRowCount(void 0),b.getColumnCount(void 0))||b&&b.Cj===a.Cj&&a.parent&&!Aa(a.parent.sheets,b)))return!1;e=this.VQ.io;this.kj.suspendPaint();try{h=k=na,m=0>g.row?0:g.row,p=0>g.col?0:g.col,n=0>g.row?a.getRowCount(void 0):g.rowCount,t=0>g.col?a.getColumnCount(void 0):g.colCount,(v=e.eA)&&v.data&&v.data.Py()&&(k=f.Iz(a,m,p,n,t)),u.X3&&f.Jz(a,m,p,n,t),z+=T(this,e.pA),e.UA&&(f.Gz(a,e.UA),z++),z+=T(this,e.hA),z+=T(this,e.iA),z+=T(this,v),z+=T(this,e.lA),z+=T(this,e.mA),d(a)&&(z+=T(this,e.m5)),y=x=l=q=0,b&&c&&(q=0>c.row?0:c.row,l=0>c.col?0:c.col,x=0>c.row?b.getRowCount(void 0):c.rowCount,y=0>c.col?b.getColumnCount(void 0):c.colCount,r=e.bA,r&&r.data&&r.data.Py()&&(h=f.Iz(b,q,l,x,y)),z+=T(this,e.qA),z+=T(this,e.jA),z+=T(this,e.kA),z+=T(this,r),z+=T(this,e.nA),z+=T(this,e.oA)),z&&this.kj&&(k&&a&&(B=e.dA,f.Bu(a,m,p,n,t,B?B.wy():[],3)),h&&b&&(w=e._z,f.Bu(b,q,l,x,y,w?w.wy():[],3)))}finally{this.kj.resumePaint()}}return 0<z}});la.qx=function(b){var a=0;return 0!==b&&1!==b||(a|=1),0!==b&&2!==b||(a|=64,a|=32),0!==b&&3!==b||(a|=2),0===b&&(a|=32,a|=16,a|=256,a|=4,a|=512,a|=128),a};ia(pa,W);Ha(pa.prototype,{execute:function(){var b,a,e,f,c,g=this.VQ.MA,h=!1;if(this.canExecute()&&g){b=this.kj;k(b,!0);try{for(a=0;a<g.length;a++)e=g[a],b?(f=e.VQ.pasteExtent,c={sheet:b,sheetName:b.name(),cellRange:e.VA(),pasteOption:e.VQ.pasteOption,pasteData:{text:f.clipboardText,html:f.clipboardHtml},cancel:!1},b.Wq(Da.ClipboardPasting,c),c.cancel||(e.execute(),delete c.cancel,b.Wq(Da.ClipboardPasted,c))):e.execute();this.WA();h=!0}finally{x(b,!0)}}return h},WA:function(){var b,a,e,f;f=this.VQ;a=f.MA;var c=this.kj;if(c&&a){if(b=c.getSelections(),c.Tr(),f.s5)a=f.pastedRanges[0],c.addSelection(a.row,a.col,a.rowCount,a.colCount);else if(1<a.length)for(e=0;e<a.length;e++)f=a[e],f=f.VA(),c.addSelection(f.row,f.col,f.rowCount,f.colCount);else 0<a.length&&(e=a[0].VA(),c.addSelection(e.row,e.col,e.rowCount,e.colCount),e.contains(c.Jl,c.Kl)||c.Jr(e.row,e.col));c.yu(b,c.getSelections())&&c.Au(b)}},canExecute:function(){var b,a,e=this.VQ.MA;if(e){for(b=0;b<e.length;b++)if(a=e[b],!a.canExecute())return!1;return!0}return!1},canUndo:function(){var b,a,e=this.VQ.MA;if(e){for(b=0;b<e.length;b++)if(a=e[b],!a.canUndo())return!1;return!0}return!1},saveState:function(){var b,a,e=this.VQ.MA;if(e)for(b=0;b<e.length;b++)a=e[b],a.saveState()},undo:function(){var b,a,e,f,c=this.VQ.MA;if(this.canUndo()&&c){b=this.kj;a=!0;k(b,!0);try{for(e=c.length-1;0<=e;e--)f=c[e],a=a&&f.undo()}finally{x(b,!0)}return a}return!1}});U.exports=u},function(U,u,l){function d(a,f,c,h){throw Error(m.u.Kb(m.C(u.SR)().Exp_InvalidAndSpace,[a,f,c,h]));}function J(a,f,c,h,p,n,t,q){var e,b,g;if(!a)throw Error(m.C(u.SR)().Exp_SrcIsNull);if(!h)throw Error(m.C(u.SR)().Exp_DestIsNull);e=a.getRowCount(void 0);b=a.getColumnCount(void 0);a=h.getRowCount(void 0);h=h.getColumnCount(void 0);(-1>f||f>=e)&&d("from row index",f,"-1",e-1);(-1>c||c>=b)&&d("from column index",c,"-1",b-1);(-1>p||p>=a)&&d("to row index",p,"-1",a-1);(-1>n||n>=h)&&d("to column index",n,"-1",h-1);g=c;0>c&&(g=0,q=b);c=0>n?0:n;(1>q||g+q>b||c+q>h)&&d("column count",q,"1",M(b-g,h-c));q=f;0>f&&(q=0,t=e);f=0>p?0:p;(1>t||q+t>e||f+t>a)&&d("row count",t,"1",M(e-q,a-f))}function R(a){if(!a||"number"==typeof a||"string"==typeof a||"boolean"==typeof a||y(a))return a;if(a.clone)return a.clone();if(a instanceof Date)return new Date(a);var f,c,g;f=a instanceof Object?new a.constructor:new a.constructor(a.valueOf());for(c in a)a.hasOwnProperty(c)&&(g=a[c],a.hasOwnProperty(c)&&f[c]!==g&&("object"==typeof g?f[c]=R(g):f[c]=g));return f.toString=a.toString,f.valueOf=a.valueOf,f}function Q(a,f,c,h,d,m,p,n,e){a=a.conditionalFormats;h=h.conditionalFormats;a&&h&&(a.XA(f,c,h,d,m,p,n),e&&a.YA(f,c,p,n))}function K(a,f,c,h,d,m,p,n,e){var b;0>f&&(f=0,p=M(a.getRowCount(void 0),h.getRowCount(void 0)));0>d&&(d=0);0>c&&(c=0,n=M(a.getColumnCount(void 0),h.getColumnCount(void 0)));0>m&&(m=0);a!==h||a.Cj!==h.Cj?(b=h.ZA,b&&(e?0<b.count()&&b.$A(a,f,c,d,m,p,n):b._A(a,f,c,d,m,p,n))):(b=a.ZA,b&&(e?0<b.count()&&b.aB(f,c,d,m,p,n):b.Zz(f,c,d,m,p,n)))}function O(a,f,c,h,d,m){var g,k;0>f&&(f=0,d=M(a.getColumnCount(void 0),c.getColumnCount(void 0)));0>h&&(h=0);g=a.columnOutlines;k=c.columnOutlines;a!==c||a.Cj!==c.Cj?g&&k&&k.bB(g,f,h,d,m):g&&g.cB(f,h,d,m)}function H(a,f,c,h,d,m){var g;0>f&&(f=0,d=M(a.getRowCount(void 0),c.getRowCount(void 0)));0>h&&(h=0);g=!(a===c&&a.Cj===c.Cj);a=a.rowOutlines;c=c.rowOutlines;g?a&&c&&c.bB(a,f,h,d,m):a&&a.cB(f,h,d,m)}function I(a,f,c,h,d,m,p,n,e,b){var g=!(a===h&&a.Cj===h.Cj);a=a.zl(b);if(g){h=h.zl(b);var k,q,l,x,y,r,w,z,E=a&&0<a.length?a.slice(0):t,g=h&&0<h.length?h.slice(0):t,C=[];if(E)for(b=0;b<E.length;b++)q=E[b],l=q.row,x=q.col,k=q.rowCount,y=q.colCount,-1===f?c<=x&&x+y<=c+n&&C.push(B(l,m+x-c,k,y)):-1===c?f<=l&&l+k<=f+p&&C.push(B(d+l-f,x,k,y)):f<=l&&l<f+p&&c<=x&&x<c+n&&C.push(B(d+l-f,m+x-c,k,y));if(g)for(b=0;b<g.length;b++)if(q=g[b],l=q.row,x=q.col,w=x>=m&&x<m+n,z=l>=d&&l<d+p,-1===f?w:-1===c?z:z&&w)for(k=0;k<h.length;k++)if(r=h[k],r.row===l&&r.col===x){h.removeSpan(k,1);break}for(b=0;h&&b<C.length;b++)h.addSpan(C[b]);e&&a&&a.clear(f,c,p,n)}else a&&(e?a.move(f,c,d,m,p,n):a.copy(f,c,d,m,p,n))}function L(a,f,c,h,d,m,p,n,e){var b=f,g=c;0>b&&(b=0,p=M(a.getRowCount(void 0),h.getRowCount(void 0)));0>d&&(d=0);0>g&&(g=0,n=M(a.getColumnCount(void 0),h.getColumnCount(void 0)));0>m&&(m=0);0>f&&I(a,-1,g,h,-1,m,-1,n,e,1);0>c&&I(a,b,-1,h,d,-1,p,-1,e,2);I(a,b,g,h,d,m,p,n,e)}function F(a,f,c,h,d,m,p){var g,e;0>f&&(f=0,d=M(a.getColumnCount(void 0),c.getColumnCount(void 0)));0>h&&(h=0);for(g=0;g<d;g++)0<(64&m)&&(e=a.$r(g+f,void 0),y(e)||(p&&a.setColumnWidth(g+f,a.defaults.colWidth,void 0),c.setColumnWidth(g+h,e,void 0)),e=a.getColumnVisible(g+f),y(e)||(p&&a.setColumnVisible(g+f,!0),c.setColumnVisible(g+h,e)),(e=a.getActualStyle(-1,g+f,void 0))?(e=e.clone(),c.Pq(-1,g+h,e,void 0),p&&a.Pq(-1,g+f,t,void 0)):c.Pq(-1,g+h,t,void 0),(e=a.getActualStyle(-1,g+f,1))?(e=e.clone(),c.Pq(-1,g+h,e,1),p&&a.Pq(-1,g+f,t,1)):c.Pq(-1,g+h,t,1));f=M(a.getRowCount(1),c.getRowCount(1));for(h=0;h<f;h++)d=a.Yr(h,1),y(d)||(p&&a.setRowHeight(h,a.defaults.colHeaderRowHeight,1),c.setRowHeight(h,d,1))}function G(a,f,c,h,d,m,p,n){var e,b;0>f&&(f=0,d=M(a.getRowCount(void 0),c.getRowCount(void 0)));0>h&&(h=0);for(e=0;e<d;e++)!n&&p&&c.Ps&&c.Ps(h+e)||!(0<(64&m))||(b=a.Yr(e+f,void 0),y(b)||(n&&a.setRowHeight(e+f,a.defaults.rowHeight,void 0),c.setRowHeight(e+h,b,void 0)),b=a.getRowVisible(e+f),y(b)||(n&&a.setRowVisible(e+f,!0),c.setRowVisible(e+h,b)),(b=a.getActualStyle(e+f,-1,void 0))?(b=b.clone(),c.Pq(e+h,-1,b,void 0),n&&a.Pq(e+f,-1,t,void 0)):c.Pq(e+h,-1,t,void 0),(b=a.getActualStyle(e+f,-1,2))?(b=b.clone(),c.Pq(e+h,-1,b,2),n&&a.Pq(e+f,-1,t,2)):c.Pq(e+h,-1,t,2));f=M(a.getColumnCount(2),c.getColumnCount(2));for(h=0;h<f;h++)d=a.$r(h,2),y(d)||(n&&a.setColumnWidth(h,a.defaults.rowHeaderColWidth,2),c.setColumnWidth(h,d,2))}function q(a,f,c,h){if(a!==f||a.Cj!==f.Cj)0<(64&c)&&(c=a.getDefaultStyle(void 0),c=h?c:c.clone(),f.setDefaultStyle(c,void 0),c=a.getDefaultStyle(1),c=h?c:c.clone(),f.setDefaultStyle(c,1),c=a.getDefaultStyle(2),c=h?c:c.clone(),f.setDefaultStyle(c,2),h&&(a.setDefaultStyle(t,void 0),a.setDefaultStyle(t,1),a.setDefaultStyle(t,2))),f=f.defaults,a=a.defaults,f.colWidth=a.colWidth,f.rowHeight=a.rowHeight,f.rowHeaderColWidth=a.rowHeaderColWidth,h&&(a.colWidth=62,a.rowHeight=20,a.rowHeaderColWidth=40)}function D(a,f,c,d,m,p,n,q,e,b,v,l){var g,k,x,r,B,w,z,E,C=!(a===d&&a.Cj===d.Cj);if(2===(2&b)&&0>f)if(z=c,E=p,g=M(a.getRowCount(1),d.getRowCount(1)),k=q,0>c&&(z=0,k=a.getColumnCount(void 0)),0>p&&(E=0),C)for(x=0;x<g;x++)for(r=0;r<k;r++)w=v(a,x,z+r,1),l(d,x,E+r,R(w),1);else{B=new h(g,k,t);for(x=0;x<g;x++)for(r=0;r<k;r++)w=v(a,x,z+r,1),y(w)||B.setValue(x,r,R(w));for(x=0;x<g;x++)for(r=0;r<k;r++)l(d,x,E+r,B.getValue(x,r),1)}if(1===(1&b)&&0>c)if(b=f,z=m,g=n,k=M(a.getColumnCount(2),d.getColumnCount(2)),0>f&&(b=0,g=a.getRowCount(void 0)),0>m&&(z=0),C)for(x=0;x<g;x++)for(r=0;r<k;r++)w=v(a,b+x,r,2),l(d,z+x,r,R(w),2);else{B=new h(g,k,t);for(x=0;x<g;x++)for(r=0;r<k;r++)w=v(a,b+x,r,2),y(w)||B.setValue(x,r,R(w));for(x=0;x<g;x++)for(r=0;r<k;r++)l(d,z+x,r,B.getValue(x,r),2)}if(g=f,k=c,b=m,z=p,0>f&&(g=0,n=M(a.getRowCount(void 0),d.getRowCount(void 0))),0>c&&(k=0,q=M(a.getColumnCount(void 0),d.getColumnCount(void 0))),0>m&&(b=0),0>p&&(z=0),C)for(x=0;x<n;x++){if(!(e&&d.Ps&&d.Ps(b+x)))for(r=0;r<q;r++)w=v(a,g+x,k+r,3),l(d,b+x,z+r,R(w),3)}else{B=new h(n,q,t);try{for(x=0;x<n;x++)for(r=0;r<q;r++)w=v(a,g+x,k+r,3),y(w)||B.setValue(x,r,R(w));for(x=0;x<n;x++)if(!(e&&d.Ps&&d.Ps(b+x)))for(r=0;r<q;r++)l(d,b+x,z+r,B.getValue(x,r),3)}catch(T){}}}function A(a,f,c,h,d,m,p,n,e,b,q){D(a,f,c,h,d,m,p,n,e,b,function(b,a,e,f){var c,g,k,h,d=3===f;return d?c=b.getValue(a,e,f):(c=b.Mp(f).getValue(a,e),1===f&&y(c)&&(g=b.wq,g&&g.Ou&&(k=b.nq().Jp(e),h=b.options.colHeaderAutoTextIndex,k&&(0<=h&&a===h||-1===h&&a===b.getRowCount(f)-1)&&(c=k.displayName||k.name)))),q&&(d?b.uq(a,e,t,f,!1):b.Mp(f).setValue(a,e,t)),c},function(b,a,e,f,c){y(f)?b.uq(a,e,t,c,!1):b.uq(a,e,f,c,!1)})}function r(a,f,c,h,d,m,p,n,e,b,q){function g(b,a,e){var f,c,g;f=b.Tq(a);b=f.row;a=f.col;var k=f.rowCount,h=f.colCount;for(f=0;f<k;f++)for(c=e[b+f]=e[b+f]||{},g=0;g<h;g++)c[a+g]=!0}var k,v,l,x,r,w,z;if(k={},a.tables)for(v=B(f,c,p,n),l=B(d,m,p,n),x=a.tables.all(),w=0,z=x.length;w<z;w++)r=x[w].range(),v.containsRange(r)?g(a,r,k):r.containsRange(v)&&r.containsRange(l)&&g(a,v,k);D(a,f,c,h,d,m,p,n,e,b,function(b,a,e,f){var c=(3===f||y(f))&&k[a]&&k[a][e],c=b.Dq(a,e,f,E,E,E,E,c);q&&b.Pq(a,e,t,f);return c},function(b,a,e,f,c){b.Pq(a,e,f,c)})}function n(a,f,c,h,d,m,p,n,e,b){D(a,f,c,h,d,m,p,n,e,0,function(a,e,f){var c=(a=a.comments)&&a.get(e,f);return c&&b&&a.remove(e,f),c},function(b,a,e,f){(b=b.comments)&&b.Cz(a,e,f)})}function w(a,f,c,h,d,m,p,n,e,b,t){D(a,f,c,h,d,m,p,n,e,b,function(b,a,e,f){f=b.getTag(a,e,f);return f&&t&&b.setTag(a,e,E),f},function(b,a,e,f,c){h.setTag(a,e,f,c)})}function z(a,f,c,h,d,m,n,q,e,b){var g=[];return D(a,f,c,h,d,m,n,q,e,0,function(e,k,h){var d=e.getBindingPath&&e.getBindingPath(k,h);return d&&g.push({row:k-p(0,f),col:h-p(0,c),value:e.getValue(k,h)}),b&&a.setBindingPath&&a.setBindingPath(k,h,t),d},function(b,a,e,f){b.setBindingPath&&b.setBindingPath(a,e,f)}),g}function C(c,f,k,h,d,m,l,y,e,b,v,E){var g,x,C,N,D,P,V,W,ga;J(c,f,k,h,d,m,l,y);0<(64&e)&&r(c,f,k,h,d,m,l,y,b,v,E);0<(1&e)&&0<(2&e)&&(g=c.tables,g&&(x=g.dB(B(p(0,f),p(0,k),0>f?M(c.getRowCount(void 0),h.getRowCount(void 0)):l,0>k?M(c.getColumnCount(void 0),h.getColumnCount(void 0)):y),E)));(g=u.X3)&&(c.suspendCalcService(),h.suspendCalcService());C=t;0<(256&e)&&(C=z(c,f,k,h,d,m,l,y,b,E));try{if(0<(1&e)&&(A(c,f,k,h,d,m,l,y,b,v,E),u.X3&&0===(2&e)&&h.clearFormula(d,m,l,y,function(a,e){return!b||!a.Ps||!a.Ps(e)}),0<(256&e)))for(N=C.length,D=0>d?0:d,P=0>m?0:m,V=0;V<N;V++)W=C[V],!E&&b&&h.Ps&&h.Ps(D+W.row)||h.setValue(D+W.row,P+W.col,W.value);ga=h.tables;0<(1&e)&&0<(2&e)&&ga&&ga.eB(x,p(0,f),p(0,k),p(0,d),p(0,m),E);u.X3&&(E?(a.adjustCustomNameOnMove(c,f,k,h,d,m,l,y),0<(2&e)&&a.moveFormula(c,f,k,h,d,m,l,y)):0<(2&e)&&a.copyFormula(c,f,k,h,d,m,l,y,b),0<(1&e)&&0<(2&e)&&ga&&ga.R3(x))}finally{g&&(c.resumeCalcService(!1),h.resumeCalcService(!1))}if(0<(512&e)&&Q(c,f,k,h,d,m,l,y,E),0<(4&e)&&n(c,f,k,h,d,m,l,y,b,E),0<(128&e)&&w(c,f,k,h,d,m,l,y,b,v,E),0<(16&e)&&K(c,f,k,h,d,m,l,y,E),0<(8&e)&&(0>f&&O(c,k,h,m,y,E),0>k&&H(c,f,h,d,l,E)),0<(32&e)&&(E||1!==l||1!==y)&&L(c,f,k,h,d,m,l,y,E),0>f&&0>=d&&F(c,k,h,m,y,e,E),0>k&&0>=m&&G(c,f,h,d,l,e,b,E),0>f&&0>=d&&0>k&&0>=m&&q(c,h,e,E),E&&0>f)for(f=k,0>k&&(f=0,y=M(c.getColumnCount(void 0),h.getColumnCount(void 0))),k=0;k<y;k++)c.getDataColumnName&&c.getDataColumnName(f+k)&&c.nq().reset(f+k)}var c,m,h,a,B,y,t,E,M,p;u=l(42);c=l(43);m=l(26);h=l(55).Fp;a=u.X3&&l(60).Worksheet;B=c.kf;y=m.j.Fa;t=null;E=void 0;M=Math.min;p=Math.max;u.staticMembers={copyTo:function(a,f,c,h,d,m,p,n,e,b,t){C(a,f,c,h,d,m,p,n,e,b,t,!1)},moveTo:function(a,f,c,h,d,m,p,n,e){C(a,f,c,h,d,m,p,n,e,E,3,!0)}};U.exports=u},function(U,u,l){function d(d){d.preventDefault?d.preventDefault():d.returnValue=!1}var J,R,Q,K,O,H,I,L,F,G,q;u=l(42);J=l(44).GC$;R=l(43);Q=l(26).j.Fa;l=R.Ul;K=l.Ml;O=l.nl;H=R.Ul.Nl;I=R.Ul.Pl;L=document;F=Math.round;G=Math.ceil;l=function(){function d(d,q){this.gB=this.fB=!0;this.hB=18;this.iB=d&&J(d);this.jB=q&&J(q);this.ew(!0)}return d.prototype={constructor:d,kB:I("horizontalSmallChange",10),lB:I("verticalSmallChange",10),ew:function(d){function l(){return J.Nl("div","position left top border padding margin".split(" "),["absolute",0,0,"none",0,0])}function n(a,f){var c,g,h,d=f?p.mB:p.nB;return d?d:(c=new q(f),g=J.Nl("div"),f?(p.oB=g,p.mB=c,g.css("position left bottom border padding margin".split(" "),["absolute",0,0,"none",0,0])):(p.pB=g,p.nB=c,g.css("position right top border padding margin".split(" "),["absolute",0,0,"none",0,0])),h=(f?p.mB:p.nB).Bv(),g.append(h),a.append(g),c)}function w(a,f,c,h,d,m){m?(p.oB.css(["width","height"],[f,h]),a.Vo(f),a._v(h)):(p.pB.css(["width","height"],[h,f]),a.Vo(h),a._v(f));a.bw(0);a.cw(d-f);a.dw(f);a.qB(m?p.kB():p.lB());a.rB(f);a.ew();J(a.Bv()).bind("scroll.gcScrollbar",function(a,f){c.css(m?"left":"top",0-f.newValue)});m?p.oB.show():p.pB.show()}function z(a){p.sB||(p.sB=l(),p.sB.css(["overflow","display"],["hidden","inline-block"]),a.append(p.sB))}var C,c,m,h,a,B,y,t,E,A,p=this;p.iB&&p.jB&&(C=p.hB,c=p.jB.width(),m=p.jB.height(),h=p.iB.width(),a=p.iB.height(),B=h-C,y=a-C,t=!1,p.uB||(p.uB=l(),p.uB.css(["position","overflow"],["relative","hidden"]),t=!0),p.uB.css(["width","height"],[h,a]),z(p.uB),p.tB||(p.tB=J.Nl("div","position","relative",null,p.sB)),d&&p.tB.append(p.jB).css(["top","left"],[0,0]),K.chrome&&(c=F(c),m=F(m),h=G(h),a=G(a)),h=p.vB(c,m,h,a),d=h.wB,(h=h.xB)?(d||(B+=C),E=n(p.uB,!0),w(E,B,p.tB,C,c,!0)):p.oB&&p.oB.hide(),d?(h||(y+=C),A=n(p.uB,!1),w(A,y,p.tB,C,m,!1)):p.pB&&p.pB.hide(),h||d||(B+=C,y+=C),p.fB=h,p.gB=d,p.yB=B,p.zB=y,p.sB.css(["width","height"],[B,y]),t&&(p.iB.append(p.uB),p.AB()))},BB:function(d){var q=this.CB(d);d=q.EB;q=q.FB;!Q(d)&&this.mB&&this.lu(d);!Q(q)&&this.nB&&this.ju(q)},lu:function(d){var q,n;this.mB.value(d);q=this.yB;n=this.jB.width();0<=d&&d<=n-q&&this.tB.css("left",0-d)},ju:function(d){var q,n;this.nB.value(d);q=this.zB;n=this.jB.height();0<=d&&d<=n-q&&this.tB.css("top",0-d)},vB:function(d,q,n,l){var r=this.hB,w={xB:!1,wB:!1};return d>n&&(w.xB=!0,w.wB=q>l-r),q>l&&(w.wB=!0,w.xB=d>n-r),w},CB:function(d){var q=J(d),n=this.sB,l=this.tB,z,C,c,m,h,a,B,y={EB:null,FB:null};return d?(z=q.offset(),C=l.offset(),c=n.offset(),z.leftWidth=z.left+q.outerWidth(),z.topHeight=z.top+q.outerHeight(),c.leftWidth=c.left+n.outerWidth(),c.topHeight=c.top+n.outerHeight(),m=z.left-C.left,z.left<c.left?y.EB=m:z.leftWidth>c.leftWidth&&(h=z.leftWidth-C.left-n.innerWidth(),m<h?y.EB=m:y.EB=h),a=z.top-C.top,z.top<c.top?y.FB=a:z.topHeight>c.topHeight&&(B=z.topHeight-C.top-n.innerHeight(),a<B?y.FB=a:y.FB=B),y):y},AB:function(){var d=this;this.tB&&(d.GB=function(q){d.HB(q)},d.tB.bind("mousewheel",d.GB),d.tB.bind("DOMMouseScroll",d.GB))},HB:function(d){var q,n,l,z,C;Q(d.wheelDelta)&&Q(d.detail)&&(d.wheelDelta=d.originalEvent.wheelDelta,d.detail=d.originalEvent.detail);q=d.detail?d.detail:d.wheelDelta/-40;n=this.nB;l=parseInt(this.tB.css("top"));z=this.zB;C=this.jB.height();C<z&&(C=z);isNaN(l)&&(l=0);q=l-q*this.lB();0<=q&&(q=0);0>q&&0-q>C-z&&(q=0-(C-z));q!==l&&(this.tB.css("top",q),this.gB&&n.value(0-q));O(d)}},d}();u.IB=l;q=function(){function q(d,q,n,l,z,C,c){this.KB=this.JB=!1;this.MB=this.LB=null;this.NB=300;this.OB=70;this.PB=d;this.Vo("number"==typeof q?q:0);this._v("number"==typeof n?n:0);this.dw("number"==typeof l?l:0);this.cw("number"==typeof z?z:0);this.bw("number"==typeof C?C:0);this.QB="number"==typeof c?c:1;this.RB=!1;this.SB=0;this.Qb=this.bw();this.ew()}return R.Zn(q),q.prototype={constructor:q,Bv:function(){return this.TB},qB:I("smallChange",1),rB:I("largeChange",10),dw:I("pageValue",10,function(d){0>=d&&this.dw(1)}),cw:I("maximum",100,function(d){0>=d&&this.cw(0)}),bw:I("minimum",0,function(d){0>=d&&this.bw(0)}),value:function(d){var q;return 0===arguments.length?this.Qb:("number"==typeof d&&d<=this.cw()&&d>=this.bw()&&(this.Qb=d,q=(d-this.bw())*this.UB,this.scrollTo(q,!0)),this)},Vo:I("width",0),_v:I("height",0),ew:function(){var d,q,n,l=this._v(),z=this.Vo(),C=0,c=0,m=!1,h=l,a=z-2*l,B=h,y="left",t="right",E="gc-scroll-arrowLeft",M="gc-scroll-arrowRight",p="gc-scrollbar-horizontal",g="margin-left",f="ui-state-default ui-corner-bl btn btn-default",k="ui-icon ui-icon-triangle-1-w",x="gc-scroll-handle ui-state-default ui-corner-all ui-draggable btn btn-default",D="ui-icon ui-icon-grip-solid-vertical",u="ui-state-default ui-corner-br btn btn-default",G="ui-icon ui-icon-triangle-1-e";this.VB=a;this.PB||(h=z,a=h,B=l-2*z,y="top",t="bottom",E="gc-scroll-arrowUp",M="gc-scroll-arrowDown",p="gc-scrollbar-vertical",g="margin-top",f="ui-state-default ui-corner-tr btn btn-default",k="ui-icon ui-icon-triangle-1-n",x="gc-scroll-handle ui-state-default ui-corner-all ui-draggable btn btn-default",D="ui-icon ui-icon-grip-solid-horizontal",u="ui-state-default ui-corner-br btn btn-default",G="ui-icon ui-icon-triangle-1-s",this.VB=B);d=this.VB;q=this.cw()-this.bw();this.dC=this.dw()*d/(q+this.dw());this.dC>d&&(this.dC=d);10>this.dC&&(this.dC=10);n=this.dC;this.UB=0===q?1:(d-n)/q;this.PB?(C=n,c=h):(C=h,c=n);this.WB||(m=!0,this.TB=H("div"),this.WB=J(this.TB),this.WB.css("position left top overflow outline border padding margin".split(" "),["relative",0,0,"hidden","none","none",0,0]).addClass("gc-scroll-container gc-scroll-corner-all ui-widget ui-corner-all"));this.XB||(this.XB=J.Nl("div","position display borderWidth padding margin boxSizing".split(" "),["absolute","inline-block","1px",0,0,"content-box"],"gc-scroll-arrow "+f,this.WB),this.YB=J.Nl("span",["display","border","padding","margin"],["block","none",0,0],E+" "+k,this.XB));this.ZB||(this.ZB=J.Nl("div","position display boxSizing border padding margin".split(" "),["absolute","inline-block","content-box","none",0,0],"gc-scrollbar-wrapper gc-scrollbar-wrapper",this.WB));this.$B||(this.$B=J.Nl("div",["position","borderWidth","padding","margin","boxSizing"],["absolute","1px",0,0,"content-box"],"gc-scroll-bar gc-no-user-select "+x,this.ZB),this._B=J.Nl("span",["display","border","padding","margin"],["block","none",0,0],p+" "+D,this.$B));this.aC||(this.aC=J.Nl("div","position display borderWidth padding margin boxSizing".split(" "),["absolute","inline-block","1px",0,0,"content-box"],"gc-scroll-arrow "+u,this.WB),this.bC=J.Nl("span",["display","border","padding","margin"],["block","none",0,0],M+" "+G,this.aC));this.WB.css(["width","height"],[z,l]);this.XB.css([y,"width","height"],[0,h-2,h-2]);this.YB.css(["width","height"],["100%","100%"]);this.ZB.css([y,"width","height"],[h,a,B]);this.$B.css([y,"width","height"],[this.SB,F(C-2),F(c-2)]);this._B.css(["width","height",g],[h-2,h-2,Math.floor((this.dC-h)/2)]);this.aC.css([t,"width","height"],[0,h-2,h-2]);this.bC.css(["width","height"],["100%","100%"]);m&&this.eC()},eC:function(){function d(d,q){d.bind("mousedown.gcScrollbar",function(d){l.fC(d,q)}).bind("mouseup.gcScrollbar",function(d){l.gC(d,q)}).bind("mouseover.gcScrollbar",function(d){l.hC(d,q)}).bind("mouseout.gcScrollbar",function(d){l.iC(d,q)})}var l=this;d(l.XB,!0);d(l.aC,!1);l.$B.bind("mousedown.gcScrollbar",function(d){l.jC(d)}).bind("mousemove.gcScrollbar",function(d){l.kC(d)}).bind("mouseup.gcScrollbar",function(d){l.lC(d)}).bind("mouseover.gcScrollbar",function(d){l.mC(d)}).bind("mouseout.gcScrollbar",function(d){l.nC(d)});l.ZB.bind("mousedown.gcScrollbar",function(d){var n,q;K&&K.mozilla&&(n=(new Date).valueOf(),q=l.oC,l.oC=n,q&&100>n-q)||l.pC(d)}).bind("mouseup.gcScrollbar",function(d){l.qC(d)});l.GB=function(d){l.sC(d)};l.WB.bind("mousewheel",l.GB);l.WB.bind("DOMMouseScroll",l.GB);q.ao(l,"initEvents",l.TB)},dispose:function(){var d=this.aC;d&&d.unbind(".gcScrollbar");(d=this.$B)&&d.unbind(".gcScrollbar");(d=this.XB)&&d.unbind(".gcScrollbar");(d=this.ZB)&&d.unbind(".gcScrollbar");this.WB&&(this.GB&&(this.WB.unbind("mousewheel",this.GB),this.WB.unbind("DOMMouseScroll",this.GB)),q.ao(this,"dispose",this.TB),this.WB.unbind(".gcScrollbar").remove())},tC:function(){var d=this;d.RB||(J(L).bind("mousemove.gcScrollbar",function(q){d.kC(q)}).bind("mouseup.gcScrollbar",function(q){d.lC(q)}),d.RB=!0)},uC:function(){this.RB&&(this.RB=!1,J(L).unbind("mousemove.gcScrollbar").unbind("mouseup.gcScrollbar"))},fC:function(q,l){var n,r=0,z=this,C=!0;z.KB=!0;null===z.LB&&(l?(z.XB.addClass("gc-scrollbar-stateActive ui-state-active"),r=0-z.qB(),z.vC=0):(z.aC.addClass("gc-scrollbar-stateActive ui-state-active"),r=z.qB(),z.vC=1),n=function(){z.scrollTo(z.SB+r*z.UB,!1);1===z.QB&&(z.LB=setTimeout(n,C?z.NB:z.OB));C=!1},n(),d(q))},gC:function(q,l){(l?this.XB:this.aC).removeClass("gc-scrollbar-stateActive ui-state-active");this.wC();d(q)},hC:function(q,l){(l?this.XB:this.aC).addClass("gc-scroll-arrow-hover ui-state-hover");d(q)},iC:function(q,l){(l?this.XB:this.aC).removeClass("gc-scroll-arrow-hover gc-scrollbar-stateActive ui-state-hover ui-state-active");this.wC();d(q)},jC:function(q){var l,n,w,z,C,c;0===q.button&&(this.JB=!0,this.xC={x:q.pageX,y:q.pageY},this.tC(),this.$B.addClass("gc-scrollbar-stateActive ui-state-active"),l=this.$B.offset(),n=this.$B.outerWidth(!0),w=this.$B.outerHeight(!0),z=this.ZB.offset(),C=this.ZB.outerWidth(!0),c=this.ZB.outerHeight(!0),this.yC={isBeyondEdge:!1,startEdgePosition:{x:z.left+q.pageX-l.left,y:z.top+q.pageY-l.top},endEdgePosition:{x:z.left+C-(n-q.pageX+l.left),y:z.top+c-(w-q.pageY+l.top)}});d(q)},kC:function(q){this.JB&&(this.zC={x:q.pageX,y:q.pageY},this.AC(),this.xC=this.zC,J(L.body).attr("unselectable","on").addClass("gc-no-user-select"));d(q)},lC:function(q){var l,n;this.JB=!1;this.vC=4;this.yC=null;this.WB.trigger("scroll.gcScrollbar",{newValue:this.Qb,oldValue:this.Qb,scrollOrientation:this.PB?0:1,scrollEventType:this.vC});l=(this.Qb-this.bw())*this.UB;n="left";this.PB||(n="top");this.SB=l;this.$B.css(n,l);this.uC();J(L.body).removeClass("gc-no-user-select");J(L.body).attr("unselectable")&&J(L.body).removeAttr("unselectable");this.$B.removeClass("gc-scrollbar-stateActive ui-state-active");this.vC=6;this.WB.trigger("scroll.gcScrollbar",{newValue:this.Qb,oldValue:this.Qb,scrollOrientation:this.PB?0:1,scrollEventType:this.vC});d(q)},mC:function(q){this.$B.addClass("gc-scrollbar-stateHover ui-state-hover");d(q)},nC:function(q){this.$B.removeClass("gc-scrollbar-stateHover ui-state-hover");d(q)},sC:function(q){var l;Q(q.wheelDelta)&&Q(q.detail)&&(q.wheelDelta=q.originalEvent.wheelDelta,q.detail=q.originalEvent.detail);l=(q.detail?q.detail:q.wheelDelta/-40)/3*this.qB()*this.UB;this.vC=0<=l?1:0;this.scrollTo(this.SB+l,!1);this.vC=6;this.WB.trigger("scroll.gcScrollbar",{newValue:this.Qb,oldValue:this.Qb,scrollOrientation:this.PB?0:1,scrollEventType:this.vC});d(q)},pC:function(q){var l,n=this,w=!0,z=q.pageX,C=q.pageY,c=0,m=n.ZB.offset(),h=n.rB();null===n.MB&&(c=n.PB?z-m.left-n.SB:C-m.top-n.SB,l=function(){var a=n.ZB.offset(),d=0,m=n.SB;if(d=n.PB?z-a.left-m:C-a.top-m,0>d*c||0<=d&&d<n.dC)return void n.CC();if(0>c)n.vC=2,n.scrollTo(m-h*n.UB,!1);else{if(!(0<c))return void n.CC();n.vC=3;n.scrollTo(m+h*n.UB,!1)}1===n.QB&&(n.MB=setTimeout(l,w?n.NB:n.OB));w=!1},l(),d(q))},qC:function(q){this.CC();d(q)},CC:function(){this.MB&&clearTimeout(this.MB);this.MB=null;this.vC=6;this.WB.trigger("scroll.gcScrollbar",{newValue:this.Qb,oldValue:this.Qb,scrollOrientation:this.PB?0:1,scrollEventType:this.vC})},wC:function(){var d;this.KB&&(this.KB=!1,this.LB&&clearTimeout(this.LB),this.LB=null,this.vC=6,d={newValue:this.Qb,oldValue:this.Qb,scrollOrientation:this.PB?0:1,scrollEventType:this.vC},this.WB.trigger("scroll.gcScrollbar",d))},AC:function(){function d(a){return h.PB?a.x:a.y}function q(a,c){h.PB?a.x=c:a.y=c}var n,l,z,C,c,m,h=this,a=h.SB,B=h.yC;if(z=d(h.zC),C=d(h.xC),B&&B.isBeyondEdge){if(c=d(B.startEdgePosition),m=d(B.endEdgePosition),n=z<c,l=z>m,n||l)return;C<c&&q(h.xC,c);C>m&&q(h.xC,m)}n=a+(z-C);n!==a&&(h.vC=5,h.scrollTo(n,!1))},scrollTo:function(d,q){var n,l,r,C,c="top";l=this.VB-this.dC;this.PB&&(c="left");n=!1;d>l&&(d=l,n=!0);0>d&&(d=0,n=!0);this.yC&&(this.yC.isBeyondEdge=n);n=F(d/this.UB)+this.bw();l=this.Qb;r=!1;q||(C={newValue:n,oldValue:l,scrollOrientation:this.PB?0:1,scrollEventType:this.vC},this.WB.trigger("scroll.gcScrollbar",C),r=C.ignoreUpdatePosition,C.newValue>this.cw()&&(C.newValue=this.cw()),n=C.newValue);this.Qb=n;5!==this.vC&&(d=(n-this.bw())*this.UB);this.SB=d;r||this.$B.css(c,d)}},q}();u.hv=q;U.exports=u},function(U,u,l){function d(d){O.call(this,d);this.EC=13;this.GC=12;this.HC=0;this.kw=30;this.KC=this.JC=this.IC=28;this.LC=0;this.MC="10pt Segoe UI"}var J,R,Q,K,O,H,I,L;u=l(42);J=l(26).pc;R=l(44).GC$;Q=l(43);K=l(50).To;O=l(67).DC;H=J.ic;I=J.ec;L=Q.Im;R.inherit(d,O);R.extend(d.prototype,{NC:function(){var d=this.OC;return d&&d.options.tabNavigationVisible?this.IC:0},PC:function(){var d=this.OC;return d&&d.options.tabNavigationVisible?d.Jv():0},QC:function(){return this.JC},RC:function(){return this.SC?0:this.JC},TC:function(){return this.SC?0:this.KC},UC:function(){var d,l,q=this.OC.sheets,D=this.VC(),A=this.WC;d=this.Dr();var r=d.x+d.width-this.kw-this.TC()-this.RC();d=this.gq;for(l=q.length;d<l;d++)if(q[d].visible()&&(D+=A[d]),D>r){D=r;break}return D},VC:function(){return 2*this.NC()+this.QC()+this.XC()},XC:function(){var d=this.OC;return d&&d.options.tabNavigationVisible?this.kw/2:0},hitTest:function(d,l){var q,D,A,r,n,w;w=this.QC();var z=this.RC();n=this.Dr();if(n.x+n.width-this.kw<d&&d<n.x+n.width&&this.OC.options.showHorizontalScrollbar)return{element:"resizeBar"};q=-1;D=this.kw/2;r=this.NC();for(A=1;3>A;A++){if(D<d&&d<D+r){q=A;break}D+=r}if(-1!==q)return{element:"navButton",index:A};if(D=this.VC(),D-w<=d&&d<D)return{element:"navButton",index:5,position:D};if(q=0,n=n.x+n.width-this.kw-this.TC()-z,r=this.OC.sheets,w=this.WC,-1<this.gq)for(A=this.gq;A<r.length&&A<w.length;A++)if(r[A].visible()){if(q=w[A],d<n&&D<d&&d<D+q+this.HC)return{element:"tab",index:A,position:D};D+=q+this.HC}return D>n&&(D=n),D<d&&d<D+z?{element:"navButton",index:6,position:D}:(D+=z,this.OC.options.newTabVisible&&D<d&&d<D+this.TC()?{element:"newTab",position:D}:{element:""})},YC:function(){return this.ZC+this.WC[this.$C]>this._C()},_C:function(){return this.Dr().width-this.kw-this.TC()-this.RC()},aD:function(){return 6},bD:function(){return"navButton"},cD:function(){return this.VC()},dD:function(d,l){d.save();d.beginPath();var q=L.Km(0,"gc-tabStripBackground");this.eD=I(q.backgroundColor);d.fillStyle=q.backgroundColor;d.fillRect(l.x,l.y,l.width,l.height);d.beginPath();d.strokeStyle=q.borderTopColor;d.moveTo(l.x,l.y+.5);d.lineTo(l.x+l.width,l.y+.5);d.stroke();d.restore()},fD:function(d,l,q,D){var A,r,n=this.OC.options.newTabVisible,w=this.IC,z=this.RC();q+=z;n?this.KC=w:this.KC=0;A=l.x+l.width-this.kw-this.TC();q>A&&(q=A,r=A-z,r<D&&(r=D,q=r+w),this.gD(d,r,0,z,l.height));n&&this.hD(d,q,0,w,l.height,-2===this.iD)},jD:function(d,l,q,D){q=this.QC();this.gD(d,D-q,0,q,l.height)},kD:function(d,l,q){l=this.NC();var D=this.PC();q=this.kw/2+l/2;var D=D/2,A=this.lD;this.mD(d,q,D,q+5,D+5,q+5,D-5,!0,null,1===A);q+=l;this.mD(d,q,D,q-5,D+5,q-5,D-5,!1,null,2===A)},nD:function(d,l){var q,D,A=this.kw,r=L.Km(0,"gc-tabStripResizeBarInner");this.OC.options.showHorizontalScrollbar&&(d.beginPath(),d.rect(l.x+l.width-A,0,A,l.height),d.clip(),this.dD(d,this.Dr()),q=l.x+l.width-A/2,D=l.y+l.height/2,d.fillStyle=r.color,d.fillRect(q,D,2,2),d.fillRect(q,D-4,2,2),d.fillRect(q,D+4,2,2))},oD:function(d,l,q,D,A,r,n,w,z){var C,c,m;r=0;w&&(r=4);n&&(r=3);r=L.Km(r,"gc-tab-"+L.Jm(r));C=L.Km(0,"gc-tab-"+L.Jm(0));d.save();n&&(d.fillStyle="white",d.fillRect(l,q,D,A-4));c=this.pD(d,n,z,r);d.fillStyle=c;d.fillRect(l+3,q+3,D-6+1,A-6);d.beginPath();d.lineWidth=1;d.strokeStyle=C&&C.borderLeftColor;n?(d.moveTo(l+.5,q),d.lineTo(l+.5,q+A-4),d.moveTo(l+D+.5,q),d.lineTo(l+D+.5,q+A-4)):(d.moveTo(l+.5,q+4),d.lineTo(l+.5,q+A-4),d.moveTo(l+D+.5,q+4),d.lineTo(l+D+.5,q+A-4));d.stroke();n&&(d.beginPath(),d.strokeStyle=r&&r.borderBottomColor,d.lineWidth=2,d.moveTo(l,q+A-4),d.lineTo(l+D+1,q+A-4),d.stroke());d.textBaseline="top";"string"==typeof c&&(m=c);d.fillStyle=this.qD(r,m);(w||n)&&(d.font=K.Ro(d.font,"bold"));D=this.EC;d.textBaseline="middle";d.fillText(z,l+D,q+A/2-1);d.restore()},mD:function(d,l,q,D,A,r,n,w,z,C){var c,m;d.save();A=1;C&&(A=4);w?(l-=2,D-=2,c=this.rw(this.gq),-1===c&&(A=0)):(l+=2,D+=2,m=this.rD(this.sD()),-1===m&&(A=0));w=L.Km(A,"gc-navButton-"+L.Jm(A));d.strokeStyle=this.tD(w.borderTopColor);d.beginPath();w=1;l>D&&(w=-1);d.moveTo(l-.5,q);d.lineTo(l-.5,q+1);d.moveTo(l+w-.5,q-1);d.lineTo(l+w-.5,q+2);d.moveTo(l+2*w-.5,q-2);d.lineTo(l+2*w-.5,q+3);d.moveTo(l+3*w-.5,q-3);d.lineTo(l+3*w-.5,q+4);d.stroke();d.restore()},hD:function(d,l,q,D,A,r){var n,w;d.save();d.beginPath();n=(A-14)/2;w=1;r&&(w=4);r=L.Km(w,"gc-tabStripNewTab-"+L.Jm(w));d.lineWidth=1.5;d.strokeStyle=this.tD(r.borderTopColor);d.arc(l+D/2,q+A/2,n,0,2*Math.PI);d.stroke();d.beginPath();d.lineWidth=2;d.moveTo(l+D/2-4,q+A/2);d.lineTo(l+D/2+4,q+A/2);d.moveTo(l+D/2,q+A/2-4);d.lineTo(l+D/2,q+A/2+4);d.stroke();d.restore()},gD:function(d,l,q,D,A){var r,n;d.save();d.beginPath();r=1;n=this.lD;5!==n&&6!==n||(r=4);r=L.Km(r,"gc-navMoreButton-"+L.Jm(r));d.fillStyle=this.tD(r.borderTopColor);d.fillRect(l+D/2,q+A/2,2,2);d.fillRect(l+D/2-4,q+A/2,2,2);d.fillRect(l+D/2+4,q+A/2,2,2);d.restore()},tD:function(d){var l=I(d),q=this.eD;return.01>=l.a?H(q):J.hc(q,l)?H(l):d}});u.iv=d;U.exports=u},function(U,u,l){function d(c,a,d){c.Wq(F.SheetTabClick,{sheet:a,sheetName:a?a.Cj:z,sheetTabIndex:A(d)?-1:d})}function J(c){this.OC=z;this.gq=this.$C=0;this.ZC=70;this.iD=this.lD=-1;this.MC="";this.WC=[];this.vD=this.uD=-1;this.wD=z;this.xD=0;this.Us(new q(0,0,200,28));this.Cj=c}var R,Q,K,O,H,I,L,F,G,q,D,A,r,n,w,z,C,c,m;u=l(42);R=l(26);Q=l(44).GC$;K=l(43);O=l(50).To;H=R.pc;I=K.Ul.wl;L=K.En;F=K.Events;G=K.Vl;q=K.Rect;D=K.Im;A=R.j.Fa;r=K.Ul.Nl;n=u.Bn;w=document;z=null;C=Math.max;c=Math.min;m=Math.pow;K.Zn(J);J.prototype={ws:function(c){var a,d=this;d.Xs&&d.no(!0);a=r("canvas");L.Kn(a,d.OC);a.setAttribute("id",d.Cj);d.yD=d.zD();c.appendChild(d.yD[0]);c.appendChild(a);d.Xs=a;Q(a).bind("mousedown.gcTab",function(a){return d.AD(a)}).bind("mousemove.gcTab",function(a){return d.BD(a)}).bind("mouseup.gcTab",function(a){return d.CD(a)}).bind("mouseout.gcTab",function(a){return d.DD(a)}).bind("dblclick.gcTab",function(a){return d.ED(a)});d.fq();J.ao(d,"setHost")},Yv:function(c){var a=c.options.font;(this.OC=c)&&a&&0<a.length&&(this.MC=a)},Dr:function(){var c=this.Zs;return new q(c.x,c.y,c.width,c.height)},Us:function(c){var a=this.Zs=new q(0,0,0,0);a.x=c.x;a.y=c.y;a.width=c.width;a.height=c.height},TC:function(){return this.KC},UC:function(){var c=this.Dr();return c.x+c.width-this.kw},VC:function(){return 0},fq:function(){var c,a,d,m,n=this.Ws();n&&n.parentNode&&(c=Q(n.parentNode),0!==c.width()&&0!==c.height()&&(a=C(c.width(),0),d=C(c.height(),0),n.style.display="none",n.width=a,n.height=d,n.style.display="",n.style.width=a+"px",n.style.height=d+"px",a=n.clientWidth||n.width,d=n.clientHeight||n.height,m=this.Dr(),this.Us(new q(m.x,m.y,a,d)),L.Pn(n,a,d),this.repaint()))},YC:function(){return!1},_C:function(){return 0},aD:function(){return 0},bD:function(){return""},cD:function(){return 0},zD:function(){return Q(r("div")).css({position:"absolute","border-style":"solid","border-color":"black","border-width":"4px",display:"none",width:0,"border-bottom":0,"border-left-color":"transparent","border-right-color":"transparent"})},no:function(c){var a,d=this.Xs;d&&(a=d.parentNode,Q(d).unbind("mousedown.gcTab").unbind("mousemove.gcTab").unbind("mouseup.gcTab").unbind("dblclick.gcTab").unbind("mouseout.gcTab"),a&&a.removeChild(d));Q(this.yD).remove();J.ao(this,"dispose");c||(this.OC=z)},hitTest:function(c,a){return{element:""}},AD:function(c){var a,d,h,m,n,q,p,g,f={e:c,r:z};return J.ao(this,"preProcessMouseDown",f),a=f.r,A(a)?(d=Q(this.Ws()).offset(),h=c.pageX-d.left,m=c.pageY-d.top,n=this.OC.getActiveSheet(),this.FD&&this.GD(n,!1),q=this.hitTest(h,m),p=q.element,0===c.button&&("resizeBar"===p?(this.HD=!0,this.ID=c.pageX,this.tC()):"navButton"===p?this.JD(q.index):"tab"===p?(this.KD(q.index,q.position),this.LD(c,q)):"newTab"===p&&this.MD(q.position),n=this.OC.getActiveSheet(),g=n&&n.mm,g&&!n.isEditing()&&n.zt()),this.ND=!0,!1):a},BD:function(c){var a,d,h,n,q,l,p,g={e:c,r:z};if(J.ao(this,"preProcessMouseMove",g),a=g.r,!A(a))return a;if(a=this.Xs.style,this.OD&&!this.PD&&(d=Math.sqrt(m(this.OD.x-c.pageX,2)+m(this.OD.y-c.pageY,2)),10<d&&(this.PD=!0)),this.HD)a.cursor="w-resize",h=c.pageX-this.ID,d=this.OC.xs.clientWidth,n=this.OC,n.options.tabStripRatio=n.Iv()+h/d,h=this.kw/d,n.Iv()<h?(n.options.tabStripRatio=h,this.ID=this.kw):1<=n.Iv()?(n.options.tabStripRatio=1,this.ID=d):this.ID=c.pageX,n.aq();else if(this.PD)this.QD(c.pageX,c.pageY),this.RD(c);else{if(this.lD=-1,this.iD=-1,n=Q(this.Ws()).offset(),h=c.pageX-n.left,q=c.pageY-n.top,l=this.hitTest(h,q),p=l.element,""===p)return a.cursor="default",this.repaint(),!1;"resizeBar"===p?a.cursor="w-resize":(a.cursor="default","navButton"===p?this.lD=l.index:"tab"===p?this.iD=l.index:"newTab"===p&&(this.iD=-2));this.repaint()}return!1},CD:function(c){var a;c={e:c,r:z};return J.ao(this,"preProcessMouseUp",c),a=c.r,A(a)?(this.HD&&(this.HD=!1,this.OC.aq()),this.SD(),this.PD&&(this.PD=!1,this.TD.remove(),this.UD(),this.yD.hide()),this.OD=z,this.VD(),this.uC(),!this.ND||(this.ND=!1,!1)):a},DD:function(c){var a,d,h;c={e:c,r:z};return J.ao(this,"preProcessMouseOut",c),a=c.r,A(a)?(this.VD(),d=this.lD,this.lD=-1,h=this.iD,this.iD=-1,this.lD===d&&this.iD===h||this.repaint(),!1):a},tC:function(){var c,a=this;a.WD||(Q(w).bind("mousemove.spliter",function(c){a.BD(c)}).bind("mouseup.spliter",function(c){a.CD(c)}),c=a.OC.getActiveSheet(),c&&(c.XD=!0),a.WD=!0)},uC:function(){if(this.WD){this.WD=!1;Q(w).unbind("mousemove.spliter").unbind("mouseup.spliter");var c=this.OC.getActiveSheet();c&&delete c.XD}},JD:function(c,a){var d,h=this;h.VD();d=h.sD();0>=d.length||(c%=4,0===c?h.YD(d):1===c?(a||(h.ZD=setTimeout(function(){h.JD(1)},200)),h.$D(d)):2===c?(a||(h.ZD=setTimeout(function(){h.JD(2)},200)),h._D(d)):3===c&&h.aE(d))},KD:function(c,a){var h,m,n,q=this.OC;this.$C=c;this.ZC=a;q.suspendPaint();h=q.getActiveSheet();(m=q.getSheet(c))&&m.isEditing()&&m!==h&&(n=h.Cw&&h.Cw.V4,!m.gv(void 0,void 0,n))||(d(q,m,c),this.iw(c),q.resumePaint(),this.repaint())},MD:function(c){var a,h,m=this.OC;a=m.getActiveSheet();if(!this.bE||this.bE(a)){d(m,z,z,-1);a=m.sheets.length;h=m.vv(m.wv(a));m.ow(a,1,h);this.$C=a;this.ZC=c;for(m.dq(a,1,!1,!0);this.$C>this.gq&&(this.YC()||this.gq<this.jw(-1));)this.hE(this.gq)&&(this.ZC-=this.WC[this.gq]),this.gq++;this.repaint()}},iw:function(c,a){var d,h,m,n;d=this.OC;h=d.getActiveSheet();m=!1;h.Cw&&h.Cw.V4&&(m=!0);c!==d.eq&&(d.dq(c,1,m,!0),n=this.jw(this.gq),this.$C>this.gq&&this.ZC+this.WC[this.$C]>this._C()&&-1!==n&&(this.gq=n));this.$C<this.gq&&(this.gq=this.rw(this.gq))},cE:function(c,a){var d,h,m,n,q,p,g,f=this;n=f.OC;if("tab"===f.hitTest(c,a).element){if(d=f.$C,h=n.sheets[d],n.Wq(F.SheetTabDoubleClick,{sheet:h,sheetName:h.Cj,sheetTabIndex:d}),!n.options.tabEditable)return!1;if(m=G.Xl(),m&&m.endEdit&&!m.endEdit())return;G.Zl(z);d=f.WC[d];m=Q(f.Ws()).offset();n=n.xv();q=Q(n).offset();p=r("input");g=p.style;p.type="text";p.value=h.Cj;p.setAttribute("contentEditable","true");p.setAttribute("autocomplete","off");g.position="absolute";g.margin=0;g.padding=0;g.margin=0;g.left=m.left-q.left+f.ZC+f.EC+"px";g.top=m.top-q.top+f.aD()+"px";g.width=d-f.EC-f.GC+2+"px";g.backgroundColor="white";g.borderWidth="0px";g.outline="none";Q(p).appendTo(n);f.FD=p;Q(p).addClass("gc-sheetTabEditor").bind("keydown.tabNameEditor",function(a){return 13===a.keyCode?(f.GD(h,!1),!1):27===a.keyCode?(f.GD(h,!0),!1):void 0}).bind("focus.tabNameEditor",function(){p.selectionStart=0;p.selectionEnd=p.value.length}).bind("blur.tabNameEditor",function(){f.GD(h,!1)});p.focus()}return!1},ED:function(c){var a,d,h,m,n={e:c,r:z};return J.ao(this,"preProcessMouseDbClick",n),a=n.r,A(a)?(d=Q(this.Ws()).offset(),h=c.pageX-d.left,m=c.pageY-d.top,this.cE(h,m)):a},GD:function(c,a){var d,h,m,n,q=this.FD;q&&(Q(q).unbind("keydown.tabNameEditor").unbind("focus.tabNameEditor").unbind("blur.tabNameEditor"),d=q.value,!1===a&&(h=c.name(),d!==h&&(!A(d)&&""!==d&&this.bq(d)?(m={sheet:c,oldValue:h,newValue:d,cancel:!1},c.Wq(F.SheetNameChanging,m),m&&!1===m.cancel&&(c.wu().execute({cmd:"renameSheet",sheetName:h,name:d}),n={sheet:c,oldValue:h,newValue:d},c.Wq(F.SheetNameChanged,n))):c.Wq(F.InvalidOperation,{sheet:c,sheetName:c.name(),invalidType:5,message:R.C(u.SR)().Exp_SheetNameInvalid}))),q.parentNode.removeChild(q),delete this.FD)},bq:function(c){var a,d,h,m;if(!c)return!1;for(d=0;d<c.length;d++)if(a=c.charAt(d),"*"===a||":"===a||"["===a||"]"===a||"?"===a||"\\"===a||"/"===a)return!1;a=this.OC.sheets;d=a.length;for(h=0;h<d;h++)if(m=a[h],c===m.Cj)return!1;return!0},dE:function(){return this.OC.options.allowSheetReorder},LD:function(c,a){this.dE()?(this.vD=a.index,this.TD=this.eE(this.vD),this.OD=new K.Point(c.pageX,c.pageY),this.tC()):this.PD=!1},eE:function(c){var a,d,h=this.OC.sheets;if(!(c>=h.length||0>c))return a=h[c].Cj,a||(a="sheet"),d=Q(r("span")).text(a).css({position:"absolute",cursor:"default","border-radius":"5px",opacity:".7"}),d.addClass("ui-widget-header gc-tab-tip-span btn-primary"),d},VD:function(){var c=this.ZD;c&&(clearTimeout(c),this.ZD=z)},QD:function(c,a){var d,h,m=this.TD;m&&0===Q(".gc-tab-tip-span").length&&(m.appendTo(w.body),m.hide());d=m.width();h=m.height();m.css({left:c-d/2,top:a-h/2});m.show()},RD:function(c){var a=this,d=Q(a.Ws()),h=d.position(),m=d.offset(),d=c.pageX-m.left;c=a.hitTest(d,c.pageY-m.top);var m=c.element,n=a.Dr(),q=a.VC(),p=a.OC.sheets.length,n=n.x+a._C(),g=a.yD;d>n?a.wD===z&&a.uD<p&&(a.wD=setInterval(function(){a._D(a.sD());a.uD===p?(a.SD(),g.css({left:h.left+a.fE()-4,top:h.top-4}),g.show()):(a.uD++,g.hide())},100)):d<q?a.wD===z&&0<a.uD&&(a.wD=setInterval(function(){a.$D(a.sD());0===a.uD?(a.SD(),g.css({left:h.left+q-4,top:h.top-4}),g.show()):(a.uD--,g.hide())},100)):(a.SD(),"tab"!==m&&m!==a.bD()||("tab"!==m||A(c.index)?a.uD=a.OC.sheets.length:a.uD=c.index,g.css({left:h.left+c.position-4,top:h.top-4}),g.show()))},fE:function(){var c,a=this.WC,d=this.sD();c=this.gE(this.gq,d);for(var m,n=this.VC()+this.LC;c<d.length;c++)m=d[c],n+=a[m],n+=this.HC;return n},SD:function(){var c=this.wD;c&&(clearInterval(c),this.wD=z)},UD:function(){var c,a,d,m=this.OC,n=this.uD;a=this.vD;var q=-1;if(-1!==n&&-1!==a&&a!==n&&a!==n-1&&this.yD.isVisible()){if(c=m.sheets,d=c[a],a>n){for(;a>n;a--)c[a]=c[a-1];c[n]=d;q=n}else if(a<n-1){for(;a<n-1;a++)c[a]=c[a+1];c[n-1]=d;q=n-1}m.eq=q;this.fq()}},sD:function(){var c=[],a;for(a=0;a<this.OC.sheets.length;a++)this.hE(a)&&c.push(a);return c},YD:function(c){0<c.length&&this.gq!==c[0]&&this.OC.startSheetIndex(c[0])},$D:function(c){var a;0<c.length&&this.gq>c[0]&&(a=this.rw(this.gq),-1!==a&&this.OC.startSheetIndex(a))},_D:function(c){var a;0<c.length&&this.gq<c[c.length-1]&&(a=this.rD(c),-1!==a&&this.OC.startSheetIndex(this.jw(this.gq)))},aE:function(c){0<c.length&&this.gq<c[c.length-1]&&(c=this.rD(c),-1!==c&&this.OC.startSheetIndex(c))},rD:function(c){var a,d,h,m,n,q,p,g,f,k;if(0<c.length)for(a=this._C(),d=0,h=this.WC,q=this.cD(),p=this.gE(this.gq,c),-1===p&&(p=0),m=c.length-1;m>=p;m--)if(n=c[m],g=h[n],d+=g,m!==c.length-1&&(d+=this.HC),f=q+d,0!==m&&(f+=this.LC),f>a)return k=m+1<c.length?c[m+1]:c[c.length-1],this.gq<k?k:-1;return-1},rw:function(c){for(--c;0<=c;c--)if(this.hE(c))return c;return-1},jw:function(c){var a=this.OC.sheets.length;for(c+=1;c<a;c++)if(this.hE(c))return c;return-1},gE:function(c,a){var d;for(d=0;d<=a.length-1;d++)if(c===a[d])return d;return-1},hE:function(c){return(c=this.OC.sheets[c])&&c.visible()},fw:function(){this.xD++},gw:function(){this.xD--;0>=this.xD&&(this.xD=0,this.repaint())},repaint:function(c){var a=this.Ws();a&&a.getContext&&this.jp(a.getContext("2d"),c)},jp:function(d,a){var h,m,l,w,A,p,g,f,k,x,D,u;if(!(0<this.xD)){if(h=this.Dr(),m=this.Xs,a)if(a.x>=h.x+h.width||a.y>=h.y+h.height||a.x+a.width>h.width&&(a.width=h.width-a.x,0>=a.width)||a.y+a.height>h.height&&(a.height=h.height-a.y,0>=a.height)||0>=a.width||0>=a.height)return;if(l=this.buffer,l&&(!l||l.width===m.width&&l.height===m.height)&&(l||l.width===h.width&&l.height===h.height)||(l&&L.Rn(this.OC,l),this.buffer=l=r("canvas"),L.Kn(l,this.OC),L.Pn(l,h.width,h.height)),!(0>=h.width||0>=h.height||a&&(0>=a.width||0>=a.height))){l=this.buffer.getContext("2d");l.clearRect(0,0,h.width,h.height);n.Dn(l,-h.x,-h.y);this.iE(l,a);n.Dn(l,h.x,h.y);w=0<=h.x?0:-h.x;A=0<=h.y?0:-h.y;p=w;g=A;a&&(p=h.x+a.x,g=h.y+a.y,h=new q(p,g,a.width,a.height));w=0<=h.x?h.x:0;A=0<=h.y?h.y:0;x=z;D=L.Ln(m);u=L.Mn(m);m&&1!==D&&(p*=D,g*=u,h.x*=D,h.y*=u,h.width*=D,h.height*=u);try{m?a?(f=C(h.width-p,0),k=C(h.height-g,0)):(f=c(h.width-p,C(m.width-h.x,3)),k=c(h.height-g,C(m.height-h.y,3))):(p=a.x,g=a.y,f=a.width,k=a.height),m?(n.Cn(d,1,1),d.drawImage(this.buffer,p,g,f,k,w,A,f,k),n.Cn(d,D,u)):(l=this.buffer.getContext("2d"),x=l.getImageData(p,g,f,k))}catch(V){return}!m&&x&&0<h.width&&0<h.height&&d.putImageData(x,w,A)}}},iE:function(c,a){var d,h,m,n,q,p,g,f,k;q=this.OC;if(c&&q){d=this.Dr();c.save();c.font=this.MC;a?c.rect(a.x,a.y,a.width,a.height):c.rect(d.x,d.y,d.width,d.height);c.clip();c.beginPath();h=60;n=m=this.VC();c.save();c.font=O.Ro(c.font,"bold");this.WC=[];p=q.sheets;for(q=0;q<p.length;q++)h=Math.round(c.measureText(p[q].Cj).width)+this.GC+this.EC,this.WC.push(h);if(c.restore(),g=[],f=this.gq,0<f&&0<=this.rw(f)&&(n+=this.LC),0<=f)for(q=f;q<p.length&&(k=p[q].visible(),h=this.WC[q],!(n>d.x+d.width));q++)g.push({i:q,x:n,w:h,t:p[q].Cj,visible:k}),k&&(n+=h+this.HC);this.dD(c,d);this.fD(c,d,n,m);this.jE(c,d,g,f,m);this.OC&&this.OC.options.tabNavigationVisible&&this.kD(c,d,m);this.nD(c,d);c.beginPath();c.restore()}},dD:function(c,a){},fD:function(c,a,d,m){},jE:function(c,a,d,m,n){var h,q,p;h=this.OC;var g=h.sheets,f=this.iD;if(this.$C=h.getActiveSheetIndex(),h=this.$C,0<g.length){c.save();c.beginPath();q=a.x+this._C();c.rect(n,0,q-n,a.height);c.clip();for(q=d.length-1;0<=q;q--)p=d[q],p.i!==h&&p.visible&&this.oD(c,p.x,0,p.w,a.height,5,!1,p.i===f,p.t);d=d[h-m];h>=m&&h<g.length&&d&&d.visible&&this.oD(c,d.x,0,d.w,a.height,5,!0,!1,d.t);c.restore();c.save();c.beginPath();0<m&&0<=this.rw(m)&&this.jD(c,a,m,n);c.restore()}},jD:function(c,a,d,m){},kD:function(c,a,d){},nD:function(c,a){},mD:function(c,a,d,m,n,q,l,p,g,f){},oD:function(c,a,d,m,n,q,l,p,g){},Ws:function(){return this.Xs},kE:function(c,a){var d,h,m,n,q=c.createLinearGradient(a.x,a.y,a.width,a.height);d=(h=D.Km(0,"gc-tabStripBackground"))&&h.backgroundImage;h=h&&h.backgroundColor;if(d&&-1!==d.indexOf("linear-gradient"))for(d=I(d),h=0,m=d.length;h<m;h++)n=d[h],q.addColorStop(n.point,n.color);else h&&(q.addColorStop(0,"#DDDDDD"),q.addColorStop(1,h));return q},pD:function(c,a,d,m){var h,n=this.Dr(),n=c.createLinearGradient(n.x+.7*n.height,n.y+0,.7*n.height,n.height),q=this.OC.getSheetFromName(d);if(""===d&&0<this.gq&&(q=this.OC.getSheet(this.gq-1)),d=q&&q.options.sheetTabColor)c.fillStyle="rgba(0, 0, 0, 0)",c.fillStyle=K.Rm.Om(q,d),h=c.fillStyle,"rgba(0, 0, 0, 0)"!==h&&(a?(n.addColorStop(0,"white"),n.addColorStop(.45,"#F1F6FD"),n.addColorStop(.9,h),n.addColorStop(1,"white")):n=h);else if(m)if(h=m&&m.backgroundImage,a=m&&m.backgroundColor,h&&-1!==h.indexOf("linear-gradient"))for(a=I(h),h=0,c=a.length;h<c;h++)m=a[h],n.addColorStop(m.point,m.color);else a&&n.addColorStop(0,a);return n},qD:function(c,a){var d="black";return c&&(d=c.color),a&&127.5>H.dc(a)&&(d="white"),d}};u.DC=J;U.exports=u},function(U,u,l){function d(d){K.call(this,d);this.EC=12;this.GC=8;this.HC=3;this.kw=12;this.KC=48;this.LC=5;this.MC="10pt Arial"}var J,R,Q,K,O,H,I;u=l(42);J=l(26);R=l(43);Q=l(44).GC$;K=l(67).DC;O=R.Im;H=R.Ul.wl;I=Math.min;Q.inherit(d,K);Q.extend(d.prototype,{NC:function(){var d=this.OC,l=d&&d.options;return l&&l.tabNavigationVisible?d.Wv()*(l.useTouchLayout?2:1):0},PC:function(){var d=this.OC;return d&&d.options.tabNavigationVisible?d.Wv():0},VC:function(){return 4*this.NC()+this.lE()},lE:function(){var d=this.OC;return d&&d.options.tabNavigationVisible?2:0},hitTest:function(d,l){var u,q,D,A,r,n;n=this.OC;var w=n.options;q=this.Dr();if(q.x+q.width-this.kw<d&&d<q.x+q.width&&w.showHorizontalScrollbar)return{element:"resizeBar"};u=-1;q=0;A=this.NC();for(D=0;4>D;D++){if(q<d&&d<q+A){u=D;break}q+=A}if(-1!==u)return{element:"navButton",index:D};if(q=this.VC(),r=this.rw(this.gq),u=this.HC,D=this.LC,-1!==r){if(q<d&&d<q+D+u)return{element:"tab",index:r,position:q};q+=D}if(r=0,n=n.sheets,A=this.WC,-1<this.gq)for(D=this.gq;D<n.length&&D<A.length;D++)if(n[D].visible()){if(r=A[D],q<d&&d<q+r+u)return{element:"tab",index:D,position:q};q+=r+u}return w.newTabVisible&&d>q&&d<q+this.TC()?{element:"newTab",position:q}:{element:""}},YC:function(){return this.ZC+this.WC[this.$C]+this.TC()>this._C()},_C:function(){return this.Dr().width-this.kw},aD:function(){return 1},bD:function(){return"newTab"},cD:function(){var d=this.Dr().height,d=this.VC()+d;return this.OC.options.newTabVisible&&(d+=this.TC(),d+=this.HC),d},dD:function(d,l){var u,q,D,A,r;if(d.save(),d.beginPath(),u=d.createLinearGradient(l.x,l.y,l.width,l.height),q=O.Km(0,"gc-tabStripBackground"),D=q&&q.backgroundImage,A=q&&q.backgroundColor,D&&-1!==D.indexOf("linear-gradient"))for(q=H(D),D=0,A=q.length;D<A;D++)r=q[D],u.addColorStop(r.point,r.color);else A&&(u.addColorStop(0,"#DDDDDD"),u.addColorStop(1,A));d.fillStyle=u;d.fillRect(l.x,l.y,l.width,l.height);d.restore()},fD:function(d,l,G,q){q=this.OC;var D=J.C(u.SR)().NewTab;q.options.newTabVisible&&(this.KC=d.measureText(D).width+this.EC,this.oD(d,G,0,this.TC(),l.height,5,!1,-2===this.iD,D))},jD:function(d,l,u,q){--u;var D=this.WC[u];this.oD(d,q+this.LC-D-this.HC,0,D,l.height,5,this.$C===u,this.iD===u,"")},kD:function(d,l,u){var q,D;d.fillStyle="#92A5C7";d.fillRect(l.x,l.y,u-1,l.height);l=this.NC();q=this.PC();u=l/2;q/=2;D=this.lD;this.mD(d,u,q,u+5,q+5,u+5,q-5,!0,u-5,0===D);u+=l;this.mD(d,u,q,u+5,q+5,u+5,q-5,!0,null,1===D);u+=l;this.mD(d,u,q,u-5,q+5,u-5,q-5,!1,null,2===D);u+=l;this.mD(d,u,q,u-5,q+5,u-5,q-5,!1,u+4,3===D)},nD:function(d,l){var u,q=this.OC,D=this.kw,A=O.Km,r=A(4,"gc-tabStripResizeBarInner"),A=A(0,"gc-tabStripResizeBarOuter");q.options.showHorizontalScrollbar&&(u=l.x+l.width-D,d.fillStyle=A.backgroundColor,d.fillRect(u,l.y,D,l.height),d.fillStyle=r.backgroundColor,d.fillRect(u+1,l.y+1,D-2,l.height-2),d.fillStyle=r.color,d.fillRect(u+D/2-1,l.y+4,2,l.height-8))},oD:function(d,l,u,q,D,A,r,n,w){var z;d.save();d.beginPath();d.moveTo(l,u);d.lineTo(l,u+D-A);d.arcTo(l,u+D,l+q,u+D,A);d.lineTo(l+q,u+D);d.lineTo(l+q+D,u);r||d.lineTo(l,u);q=0;(r||n)&&(q=4);q=O.Km(q,"gc-tab-"+O.Jm(q));r=this.pD(d,r||n,w,q);d.fillStyle=r;d.fill();d.strokeStyle="#92A5C7";d.stroke();d.textBaseline="top";"string"==typeof r&&(z=r);d.fillStyle=this.qD(q,z);z=this.EC;d.textBaseline="middle";d.fillText(w,l+z,u+D/2);d.restore()},mD:function(d,l,u,q,D,A,r,n,w,z){var C,c,m,h,a,B,y,t,E;if(d.save(),C=this.Dr(),c=this.NC(),m=O.Km,h=m(4,"gc-navButton-hover"),a=m(0,"gc-navButton-normal"),B=a&&a.backgroundColor,z)d.fillStyle=h.backgroundColor,d.fillRect(l-c/2+2,C.y+2,c-4,C.height-4);else{if(y=a&&a.backgroundImage,y&&-1!==y.indexOf("linear-gradient")){m=d.createLinearGradient(C.x+.7*C.height,C.y+0,.7*C.height,C.height);y=H(y);B=0;for(t=y.length;B<t;B++)E=y[B],m.addColorStop(E.point,E.color);d.fillStyle=m}else B&&(d.fillStyle=B);d.fillRect(l-c/2,C.y+1,c,C.height-2)}z?d.fillStyle=h.color:d.fillStyle=a.color;void 0!==w&&null!==w&&d.fillRect(w,I(D,r),1,Math.max(D,r)-I(D,r));n?(l-=2,q-=2,A-=2):(l+=2,q+=2,A+=2);d.beginPath();d.moveTo(l,u);d.lineTo(q,D);d.lineTo(A,r);d.lineTo(l,u);d.fill();d.restore()}});u.jv=d;U.exports=u},function(U,u,l){U=l(44).GC$;u=l(56).Worksheet;var d=l(51).Style,J=l(43);U.extend(u.prototype,{getFormatter:function(d,l,u){return this.tq(d,l,"formatter",u)},setFormatter:function(l,u,K,J){var H=this.Iq(l,u,J);H||(H=new d);H.formatter=K;this.setStyle(l,u,H,J)}});u.$n("formatter",{settingText:function(d){var u,K=J.Ul.tl(d.value),O=l(34);(O=O&&O.GeneralFormatter)&&K&&(u={},(new O).getPreferredDisplayFormatter(d.value,u),"number"==typeof u.value&&(d.value=u.value))}})},function(U,u,l){function d(d,n,l,z,C,c){switch(c!==R&&c!==Q||(c=1),c){case 1:return new F(d,n,l,z,C,1);case 2:return new F(d,n,l,z,C,2);case 5:return new F(d,n,l,z,C,3);case 3:return new G(d,n,l,z,C,1,[3,1]);case 9:return new G(d,n,l,z,C,1,[8,2,2,2]);case 4:return new G(d,n,l,z,C,1,[2,2]);case 11:return new G(d,n,l,z,C,1,[9,3,3,3,3,3]);case 13:return new q(d,n,l,z,C,d!==l,[11,1,5,1],[10,2,4,2]);case 10:return new G(d,n,l,z,C,2,[9,3,3,3]);case 12:return new G(d,n,l,z,C,2,[9,3,3,3,3,3]);case 8:return new G(d,n,l,z,C,2,[9,3]);case 7:return new G(d,n,l,z,C,1,[1]);case 6:return new D(d,n,l,z,C,d!==l)}return Q}var J,R,Q,K,O,H,I,L,F,G,q,D,A;u=l(42);J=l(51).LineBorder;l=l(44).GC$;R=void 0;Q=null;K=Math.sqrt;O=Math.pow;H=Math.min;I=l.inherit;L=l.isEmptyObject;l=function(){function d(){}return d.prototype={constructor:d,mE:function(d){0===d._orientation?(d.nE&&(this.oE+=d.nE),d.pE&&(this.qE+=d.pE)):(d.nE&&(this.rE+=d.nE),d.pE&&(this.sE+=d.pE))},jp:function(d){var n=this.tE||"#9eb6ce",q=this.uE,l=d.lineWidth,c=d.strokeStyle;d.beginPath();l===q&&c===n||(l!==q&&(d.lineWidth=q),c!==n&&(d.strokeStyle=n));this.vE(d);d.stroke()},vE:function(d){d.moveTo(this.qE,this.sE);d.lineTo(this.oE,this.rE)}},d}();F=function(d){function n(n,q,l,c,m,h){d.call(this);h%2||(n!==l?(q-=.5,c-=.5):(n-=.5,l-=.5));this.qE=n;this.sE=q;this.oE=l;this.rE=c;this.tE=m;this.uE=h}I(n,d);return n}(l);G=function(d){function n(n,q,l,c,m,h,a){d.call(this);h%2||(n!==l?(q-=.5,c-=.5):(n-=.5,l-=.5));this.qE=n;this.sE=q;this.oE=l;this.rE=c;this.tE=m;this.uE=h;this.wE=a}I(n,d);return n.prototype.vE=function(d){n.yl(d,this.qE,this.sE,this.oE,this.rE,this.wE)},n.yl=function(d,n,q,c,m,h){var a,l=K(O(c-n,2)+O(m-q,2));c=(c-n)/l;var y=(m-q)/l,t=0,r=0;for(h=h&&h.length?h:[4,4];t<l;)m=H(h[r++%h.length],l-t),a=r%2,t+=m,a&&d.moveTo(n,q),n+=m*c,q+=m*y,a&&d.lineTo(n,q)},n}(l);q=function(d){function n(n,q,l,c,m,h,a,r){d.call(this);h?(--n,--l):(--q,--c);this.qE=n;this.sE=q;this.oE=l;this.rE=c;this.tE=m;this.xE=h;this.uE=1;this.yE=a;this.zE=r}I(n,d);return n.prototype.vE=function(d){var n=this.xE?0:1,q=this.xE?1:0;G.yl(d,this.qE-n,this.sE-q,this.oE-n,this.rE-q,this.yE);G.yl(d,this.qE,this.sE,this.oE,this.rE,this.zE)},n}(l);D=function(d){function n(n,q,l,c,m,h){var a,r;d.call(this);a=h?0:1;r=h?1:0;this.AE=new F(n-a,q-r,l-a,c-r,m,1);this.BE=new F(n+a,q+r,l+a,c+r,m,1);this.tE=m;this.xE=h;this.uE=1}I(n,d);return n.prototype.vE=function(d){this.AE.vE(d);this.BE.vE(d)},n.prototype.mE=function(d){d.CE?1===d.CE?this.AE.mE(d):2===d.CE&&this.BE.mE(d):(this.AE.mE(d),this.BE.mE(d))},n}(l);A=function(){function d(){}return d.DE=function(n,q){var l,r;return n?q?(l=d.EE,r=l[n.style]-l[q.style],0===r?q.level-n.level:r):1:q?-1:0},d.FE=function(d){if(d){if(d.isGridLine)return 1;if(d.style)return J.Vo(d.style)}return 0},d.GE=function(d){return d&&6===d.style},d.HE=function(d){return d&&13===d.style},d.IE=function(n,q){return n?q?0<=d.DE(n.style,q.style)?n:q:n:q},d.JE=function(d,q){d&&d.line&&d.line.mE(q)},d.KE=function(n,q){return n===q?0:n?q?n.isGridLine?q.isGridLine?0:-1:q.isGridLine?1:d.DE(n.style,q.style):1:-1},d.LE=function(d){return d&&d.style&&6===d.style.style},d.ME=function(d,q,l,r){if(d.style&&6===d.style.style)return!0;d=0;return d+=q&&q.style&&6===q.style.style?1:0,d+=l&&l.style&&6===l.style.style?1:0,d+=r&&r.style&&6===r.style.style?1:0,2>d},d.NE=function(d,q,l,r,c,m){q={_orientation:m?1:0,pE:0,nE:0};l=this.KE(d,l);r=this.KE(d,r);0<=l&&0<=r?0===l&&0===r?-1!==c&&1===c&&(q.nE-=c):-1===c?q.pE-=c:1===c&&(q.nE-=2*c):0<=r?(q.CE=2,q.pE+=c):0<=l&&(q.CE=1,q.pE+=c);this.JE(d,q)},d.OE=function(n,q,l,r,c,m,h,a,B){var y,t,w,z,p,g={_orientation:a?1:0,CE:B?2:1,pE:0,nE:0};a={_orientation:a?1:0,CE:B?1:2,pE:0,nE:0};B=1===m?r:c;var f=1===h?l:q;this.LE(f)?(y=this.KE(n,B),0===y?(t=this.KE(n,f),0===t?1===h&&(a.nE-=h):0<t&&(-1===h?a.pE-=2*h:1===h&&(a.nE-=2*h))):0<y?(w=this.KE(n,f),0===w?1===h&&(a.nE-=h):0<w&&(-1===h?a.pE-=2*h:1===h&&(a.nE-=2*h))):(z=this.KE(n,f),0===z?-1===h?g.pE+=2*h:1===h&&(g.nE+=2*h):0<z&&(-1===h?g.pE-=3*h:1===h&&(g.nE-=3*h)))):0<=this.KE(n,B)?-1===h?a.pE-=2*h:1===h&&(a.nE-=2*h):-1===h?g.pE+=2*h:1===h&&(g.nE+=2*h);r=1===(1===m?2:1)?r:c;c=!1;m=0;!c&&this.LE(r)&&0<this.KE(r,n)&&(c=!0,p=d.FE(r),0<this.KE(r,B)?0<p&&(m=1===h&&this.LE(l)?2<=p?2:1:-1===h&&this.LE(q)?3<=p?2:1:3===p?3:2):m=3===p?3:2);c||this.LE(f)||!(f&&!f.isGridLine||r&&!r.isGridLine)||(c=!0,m=-1===h?2:1);c&&(-1===h?(g.pE+=h*m,a.pE+=h*m):1===h&&(g.nE+=h*m,a.nE+=h*m));(g.pE||g.nE)&&this.JE(n,g);(a.pE||a.nE)&&this.JE(n,a)},d.PE=function(d,q,l,r,c,m){0<=this.KE(d,l)&&0<=this.KE(d,r)&&(l={_orientation:m?1:0,pE:0,nE:0},-1===c?(l.pE-=2*c,this.LE(d)&&0<this.KE(q,d)&&--l.pE):1===c&&(l.nE-=2*c,this.LE(d)&&0<this.KE(q,d)&&(l.nE+=1)),this.JE(d,l))},d.QE=function(n,q,l,r,c,m){var h,a,w;this.LE(n)&&(h=this.IE(l,r),h&&!h.isGridLine&&(a=d.FE(h),0<a&&(w={_orientation:m?1:0,pE:0,nE:0},-1===c?w.pE+=a*c:w.nE+=a*c,(w.pE||w.nE)&&this.JE(n,w))))},d.RE=function(n,q,l,r,c,m,h){var a,w,y,t;(q||l||r)&&(y=d.IE(l,r),d.ME(n,q,l,r)?0<(w=d.KE(y,n))?(a=d.FE(y),d.LE(n)&&(d.LE(l)||d.LE(r)||d.LE(q))||3===a&&d.JE(n,{_orientation:0,pE:1})):y&&0>w?0<(w=d.KE(n,q))?(a=d.FE(y),3===a||2===a?d.JE(n,{_orientation:0,pE:-2}):1===a&&d.JE(n,{_orientation:0,pE:-1})):0!==w&&0<d.KE(q,y)&&(a=d.FE(y),3===a&&d.JE(n,{_orientation:0,pE:1})):0===w&&(!q||0<d.KE(n,q))&&(a=d.FE(y),3===a||2===a?d.JE(n,{_orientation:0,pE:-2}):1===a&&d.JE(n,{_orientation:0,pE:-1})):d.JE(n,{_orientation:0,pE:1}));(c||m||h)&&(t=d.IE(m,h),d.ME(n,c,m,h)?0<(w=d.KE(t,n))?(a=d.FE(t),d.LE(n)&&(d.LE(m)||d.LE(h)||d.LE(c))||(3===a?d.JE(n,{_orientation:0,nE:-2}):2!==a&&1!==a||d.JE(n,{_orientation:0,nE:-1}))):0>w?0<(w=d.KE(n,c))?(a=d.FE(t),3===a&&d.JE(n,{_orientation:0,nE:1})):0!==w&&d.JE(n,{_orientation:0,nE:-1}):0===w&&(0<(w=d.KE(n,c))?(a=d.FE(t),3===a&&d.JE(n,{_orientation:0,nE:1})):0!==w&&d.JE(n,{_orientation:0,nE:-1})):d.JE(n,{_orientation:0,nE:-2}))},d.SE=function(n,q,l,r,c,m,h){var a,w,y,t;(q||l||r)&&(y=d.IE(l,r),d.ME(n,q,l,r)?0<(w=d.KE(y,n))?(a=d.FE(y),d.LE(n)&&(d.LE(l)||d.LE(r)||d.LE(q))||3===a&&d.JE(n,{_orientation:1,pE:1})):0>w?0<(w=d.KE(n,q))?(a=d.FE(y),3===a||2===a?d.JE(n,{_orientation:1,pE:-2}):1===a&&d.JE(n,{_orientation:1,pE:-1})):0!==w&&0<d.KE(q,y)&&(a=d.FE(y),3===a&&d.JE(n,{_orientation:1,pE:1})):0===w&&0<d.KE(n,q)&&(a=d.FE(y),3===a||2===a?d.JE(n,{_orientation:1,pE:-2}):1===a&&d.JE(n,{_orientation:1,pE:-1})):d.JE(n,{_orientation:1,pE:1}));(c||m||h)&&(t=d.IE(m,h),d.ME(n,c,m,h)?0>(w=d.KE(n,t))?(a=d.FE(t),d.LE(n)&&(d.LE(m)||d.LE(h)||d.LE(c))||(3===a||2===a?d.JE(n,{_orientation:1,nE:-2}):1===a&&d.JE(n,{_orientation:1,nE:-1}))):t!==Q&&0<w?0<(w=d.KE(n,c))?(a=d.FE(t),3===a&&d.JE(n,{_orientation:1,nE:1})):0!==w&&d.JE(n,{_orientation:1,nE:-1}):0===w&&(0<(w=d.KE(n,c))?(a=d.FE(t),3===a&&d.JE(n,{_orientation:1,nE:1})):0!==w&&d.JE(n,{_orientation:1,nE:-1})):d.JE(n,{_orientation:1,nE:-2}))},d.TE=function(n,q,l,r,c,m,h,a){var w,y,t;a?this.SE(n,q,l,r,c,m,h):this.RE(n,q,l,r,c,m,h);w=d.LE(l);y=d.LE(r);t=d.LE(q);w&&y&&t?d.NE(n,q,l,r,-1,a):w&&!y?d.OE(n,q,c,l,r,1,-1,a,!0):!w&&y?d.OE(n,q,c,l,r,2,-1,a,!1):w&&y&&!t?d.PE(n,q,l,r,-1,a):t&&d.QE(n,q,l,r,-1,a);w=d.LE(m);y=d.LE(h);l=d.LE(c);w&&y&&l?d.NE(n,c,m,h,1,a):w&&!y?d.OE(n,q,c,m,h,1,1,a,!0):!w&&y?d.OE(n,q,c,m,h,2,1,a,!1):w&&y&&!l?d.PE(n,c,m,h,1,a):l&&d.QE(n,c,m,h,1,a)},d.EE=[0,101,199,100,100,300,90,100,198,100,198,100,198,198],d}();l=function(){function q(d,q,l,r){this.VE=this.UE=!1;this.kj=d;this.Wz=r;this.WE=q;this.XE=l}return q.prototype={constructor:q,YE:function(){var d,q,l,r,c,m;if(this.ZE=[],this.$E=[],this._E=[],this.aF=[],this.bF=[],this.cF={},this.dF={},this.eF={},this.fF={},d=this.kj,q=this.Wz,l=this.XE,r=this.WE,c=d.Gr(r,q),m=d.Hr(l,q),c&&0<c.length&&m&&0<m.length){d=this.$E;q=c.length;for(r=0;r<q;r++)l=c[r],0<l.height&&d.push(l.row);d.push(d[d.length-1]+1);c=this._E;d=m.length;for(l=0;l<d;l++)q=m[l],0<q.width&&c.push(q.col);c.push(c[c.length-1]+1)}this.UE=!0},gF:function(d,q){q&&this.aF.push({cj:d,hF:q.startColumn,iF:q.endColumn})},jF:function(d,q,l,r,c,m,h,a){var n,y,t,w,z;this.UE||this.YE();a?this.ZE.push(a):(h&&(n=h.borderLeft,y=h.borderTop,t=h.borderRight,w=h.borderBottom,z=h.backColor),!z||n||t||y||w||this.bF.push({r:d,c:q,rc:1,cc:1}),this.kF(d,q,l,r,c,m,n,y,t,w,z))},kF:function(d,q,l,r,c,m,h,a,B,y,t,E,A){var p,g,f,k=!1,n=!1,w=!1,z=!1;a&&(k=this.lF(d,q,l,r-.5,l+c,r-.5,a,this.eF));h&&(n=this.lF(d,q,l-.5,r,l-.5,r+m,h,this.fF));y&&(w=this.lF(d+1,q,l,r+m-.5,l+c,r+m-.5,y,this.eF));B&&(z=this.lF(d,q+1,l+c-.5,r,l+c-.5,r+m,B,this.fF));p=this.kj;t&&0!==p.ss.Sl(d)&&0!==p.ss._m(q)||(g=!w&&!E,f=!z&&!A,(g||f)&&this.mF(d,q,l,r,c,m,g,f));(k||t)&&this.nF(d-1,q,this.cF);(n||t)&&this.nF(d,q-1,this.dF);!t||h||B||a||y||(this.oF(d-1,q-1,this.dF,!1),this.oF(d-1,q-1,this.cF,!0))},lF:function(n,q,l,r,c,m,h,a){if(h){var w=this.pF(n,q,a,!0);return w?6!==w.style.style&&(6===h.style||0<A.DE(h,w.style))&&(w.line=d(l,r,c,m,h.color,h.style),w.style=h):(w=this.pF(n,q,a),w.line=d(l,r,c,m,h.color,h.style),w.style=h),w.line!==Q}return!1},mF:function(n,q,l,r,c,m,h,a){var w,y,t,z=3===this.Wz,C=this.kj.options.gridline;z&&C&&(w=C.color,!h||!C.showHorizontalGridline&&z||(y=this.pF(n,q,this.cF),y.isGridLine=!0,y.line=d(l,r+m-.5,l+c,r+m-.5,w)),!a||!C.showVerticalGridline&&z||(t=this.pF(n,q,this.dF),t.isGridLine=!0,t.line=d(l+c-.5,r,l+c-.5,r+m,w)))},oF:function(d,q,l,r){(d=this.pF(d,q,l,!0))&&d&&d.line&&d.line.mE({_orientation:r?0:1,nE:-1})},nF:function(d,q,l){var n,c;0<=d&&0<=q&&(n=l[d],n&&(c=n[q],c&&delete n[q]))},pF:function(d,q,l,r){var c,m;if(-1===d||-1===q)return Q;if(c=l[d],!c){if(r)return Q;l[d]=c={}}if(m=c[q],!m){if(r)return Q;c[q]=m={}}return m},qF:function(){var d,q,l,r,c,m=this.aF,h=m.length,a=this.fF,B=this.dF;for(d=0;d<h;d++)for(q=m[d],l=q.cj,r=q.hF,q=q.iF,c=r;c<q;c++)(r=this.pF(l,c+1,a,!0))?this.nF(l,c+1,a):(r=this.pF(l,c,B,!0),r&&this.nF(l,c,B))},rF:function(){var d,q,l=this.ZE,r=l.length;if(0<r)for(q=0;q<r;q++)d=l[q],this.sF(d)},sF:function(d){var n,q,l,c,m,h,a,r,y,t,E,A,p,g,f,k=d.row,x=d.col,D=d.x;m=d.y;var u=this.kj.getActualStyle(k,x,this.Wz),u=u?u.backColor:Q,F=D,G=m;if(1===d.rowCount)for(h=k,r=this.kj.Sl(h,this.Wz),m=0;m<d.colCount;m++)t=0===m,A=m===d.colCount-1,a=x+m,y=this.kj.Tl(a,this.Wz),(g=this.kj.getActualStyle(h,a,this.Wz))?(n=g.borderLeft,q=g.borderTop,l=g.borderRight,c=g.borderBottom):n=q=l=c=Q,t?this.kF(h,a,F,G,y,r,n,q,Q,c,u,!1,!0):A?this.kF(h,a,F,G,y,r,Q,q,l,c,u):this.kF(h,a,F,G,y,r,Q,q,Q,c,u,!1,!0),F+=y;else if(1===d.colCount)for(a=x,y=this.kj.Tl(a,this.Wz),m=0;m<d.rowCount;m++)E=0===m,p=m===d.rowCount-1,h=k+m,r=this.kj.Sl(h,this.Wz),(g=this.kj.getActualStyle(h,a,this.Wz))?(n=g.borderLeft,q=g.borderTop,l=g.borderRight,c=g.borderBottom):n=q=l=c=Q,E?this.kF(h,a,F,G,y,r,n,q,l,Q,u,!0,!1):p?this.kF(h,a,F,G,y,r,n,Q,l,c,u):this.kF(h,a,F,G,y,r,n,Q,l,Q,u,!0,!1),G+=r;else for(m=0;m<d.rowCount;m++){h=k+m;E=0===m;p=m===d.rowCount-1;r=this.kj.Sl(h,this.Wz);for(f=0;f<d.colCount;f++)a=x+f,t=0===f,A=f===d.colCount-1,y=this.kj.Tl(a,this.Wz),(g=this.kj.getActualStyle(h,a,this.Wz))?(n=g.borderLeft,q=g.borderTop,l=g.borderRight,c=g.borderBottom):n=q=l=c=Q,E?t?this.kF(h,a,F,G,y,r,n,q,Q,Q,u,!0,!0):A?this.kF(h,a,F,G,y,r,Q,q,l,Q,u,!0,!1):this.kF(h,a,F,G,y,r,Q,q,Q,Q,u,!0,!0):p?t?this.kF(h,a,F,G,y,r,n,Q,Q,c,u,!1,!0):A?this.kF(h,a,F,G,y,r,Q,Q,l,c,u):this.kF(h,a,F,G,y,r,Q,Q,Q,c,u,!1,!0):t?this.kF(h,a,F,G,y,r,n,Q,Q,Q,u,!0,!0):A&&this.kF(h,a,F,G,y,r,Q,Q,l,Q,u,!0,!1),F+=y;F=D;G+=r}!u||n||l||q||c||this.bF.push({r:k,c:x,rc:d.rowCount,cc:d.colCount})},mE:function(){var d=!1,q=!1;L(this.fF)||(d=!0);L(this.eF)||(q=!0);(d||q)&&this.tF();0<this.bF.length&&this.uF()},uF:function(){var d,q,l,r,c,m,h,a,B,y,t,E=this.bF,A=E.length;for(d=0;d<A;d++){q=E[d];l=q.r;r=q.c;c=l;m=l-1;h=r-1;a=r;1<q.rc&&(c+=q.rc-1);1<q.cc&&(a+=q.cc-1);B=q=!1;for(y=0;y<A&&(t=E[y],t.c===a+1&&t.r===l&&(B=!0),t.r===c+1&&t.c===r&&(q=!0),!q||!B)&&!(t.r>l+1&&t.c>r+1);y++);q||this.oF(c,h,this.cF,!0);B||this.oF(m,a,this.dF,!1)}},tF:function(){var d,q,l,r,c,m,h,a,B,y,t,E,M,p,g,f,k,x,D=this.$E,u=this._E,F=D.length,G=u.length,e={},b={};for(d=0;d<F;d++)for(l=D[d],q=0;q<G;q++)r=u[q],f=g=0,(k=this.pF(l,r,this.fF,!0))?g++:k=this.pF(l,r-1,this.dF,!0),(x=this.pF(l,r,this.eF,!0))?f++:x=this.pF(l-1,r,this.cF,!0),(k||x)&&(c=0===d?Q:this.vF(D[d-1],r,!0,b),c&&c.line&&!c.isGridLine&&(g++,f++),m=0===q?Q:this.vF(l,u[q-1],!1,e),m&&m.line&&!m.isGridLine&&(g++,f++),k&&(h=this.vF(l,r,!1,e),h&&h.line&&!h.isGridLine&&g++,d!==F-1&&(B=this.vF(D[d+1],r,!0,b),B&&B.line&&!B.isGridLine&&g++),0!==q&&d!==F-1&&(y=this.vF(D[d+1],u[q-1],!1,e),y&&y.line&&!y.isGridLine&&g++),d!==F-1&&(t=this.vF(D[d+1],r,!1,e),t&&t.line&&!t.isGridLine&&g++),0<g&&(A.GE(k.style)?A.TE(k,c,m,h,B,y,t,!0):A.HE(k.style)||A.SE(k,c,m,h,B,y,t))),x&&(a=this.vF(l,r,!0,b),a&&a.line&&!a.isGridLine&&f++,q!==G-1&&(E=this.vF(l,u[q+1],!1,e),E&&E.line&&!E.isGridLine&&f++),0!==d&&q!==G-1&&(M=this.vF(D[d-1],u[q+1],!0,b),M&&M.line&&!M.isGridLine&&f++),q!==G-1&&(p=this.vF(l,u[q+1],!0,b),p&&p.line&&!p.isGridLine&&f++),0<f&&(A.GE(x.style)?A.TE(x,m,c,a,E,M,p,!1):A.HE(x.style)||A.RE(x,m,c,a,E,M,p))))},vF:function(d,q,l,r){var c,m=r[d];return m||(m=r[d]={}),c=m[q],c===R&&(c=m[q]=this.wF(d,q,l)),c},wF:function(d,q,l){var n,c;if(d===R||0>d||q===R||0>q)return Q;if(n=l?this.fF:this.eF,c=this.pF(d,q,n,!0),c)return c;if(n=l?this.dF:this.cF,l){if(0>--q)return Q}else if(0>--d)return Q;return c=this.pF(d,q,n,!0),c?c:Q},paint:function(d,q){this.UE&&(this.VE||(this.rF(),this.qF(),this.mE(),this.VE=!0),d.save(),d.beginPath(),this.jp(d,q),d.closePath(),d.stroke(),d.restore())},jp:function(d){this.xF(d);this.yF(d)},xF:function(d){this._d(d,this.cF);this._d(d,this.dF)},yF:function(d){this._d(d,this.eF);this._d(d,this.fF)},_d:function(d,q){var n,l,c,m;for(n in q)if(q[n])for(l in c=q[n],c)c[l]&&(m=c[l].line,m&&m.jp(d))}},q}();u.zF=d;u.AF=l;U.exports=u},function(U,u,l){var d,J,R,Q,K,O,H,I,L;u=l(42);d=l(56).Worksheet;J=l(44).GC$;R=l(43);l=l(26);Q=R.Ul;K=Q.Ml;O=Q.rl();H=R.Events;I=l.j.Fa;L=R.Vl;u.EditorStatus={ready:0,enter:1,edit:2};J.extend(d.prototype,{startEdit:function(d,l){this.EF(this.Ws(),this.Jl,this.Kl,null,null,d,l)},editorStatus:function(){return this.Px||0},isEditing:function(){var d=this.Px;return 1===d||2===d},endEdit:function(d){return this.gv(d)},gv:function(l,u,q){if(!this.isEditing())return!0;this.suspendPaint();try{var D;a:{var A,r,n,w,z,C,c,m,h,a,B,y,t,E=this.mm,M=this.BF,p=this.Cj,g=this.Jl,f=this.Kl,k=this.getCellType(g,f),x={sheet:this,row:g,col:f,sheetArea:3};if(k.isImeAware(x)||E.Qq(),M&&M.parentNode){if((r=k.getEditorValue(M,x),n={sheet:this,sheetName:p,row:g,col:f,editor:M,editingText:r,cancel:!1},this.Wq(H.EditEnd,n),n.cancel)||(this.Wq(H.EditEnding,n),n.cancel)){D=void 0;break a}if(w=this.parent,z=w&&w.CF,document.activeElement===(z&&z.qo)&&E.Qq(),0<=g&&0<=f&&(C=M.Ep,k.isEditingValueChanged(C,r,x)||1===u))if(l)k.setEditorValue(M,C,x),k.selectAll(M,x);else if(c=k.DF,I(c)&&(c=!0),m={cmd:"editCell",sheetName:p,row:g,col:f,newValue:r,autoFormat:c,editingFormatter:M.pia},1===u&&(m.ranges=[this.Ix()],m.endEditType=u),this.wu().execute(m),A=m.applyResult,2===A){D=(k.focus(M,x),!1);break a}if(this.$l=!0,k.deactivateEditor(M,x),k.isImeAware(x))K.msie&&9===parseFloat(K.version)?E.Qq():J(M.parentNode.parentNode).css({width:0,height:0,overflow:"hidden",border:"none"});else for(h=this.zo(),a=M;a;)a.parentNode===h?h.removeChild(a):a=a.parentNode}D=(this.Ll=!1,B={sheet:this,sheetName:p,row:g,col:f,editingText:r},y=J.extend({},B),this.Wq(H.EditEnded,B),this.Wq(H.FormulatextboxEditEnded,y),(!0===q||!y.ignore)&&(0!==this.Px&&(t=this.Px,this.Px=0,this.Cu(t,0)),d.ao(this,"endEdit"),this.BF=null,1!==A))}return D}finally{this.resumePaint()}},FF:function(d,l,q){var D,A,r,n,w,z,C,c,m=this.hitTest(l,q);m&&(D=m.row,A=m.col,0<=D&&0<=A&&0<=m.rowViewportIndex&&0<=m.colViewportIndex&&!m.resizeInfo&&!m.dragInfo&&D===this.Jl&&A===this.Kl&&(r=this.isEditing(),this.EF(d,D,A),!r&&this.isEditing()&&(n=m.hitTestType,w=this.getCellType(D,A),w.tw&&(z=this.getCellRect(D,A,1===n?-1:void 0,2===n?-1:void 0),C=this.getActualStyle(D,A,n),c=w.h5(l,q,C,z,{sheet:this,row:D,col:A,sheetArea:n}),c&&c.isReservedLocation&&w.tw(this,D,A,3)))))},EF:function(l,G,q,D,A,r,n){var w,z,C,c,m,h,a,B,y,t,E,M;if(!(0>G||0>q||(w=this,z=w.Cj,C=w.options,w.isEditing()||(c=w.mm,c.zt(),m=w.getCellRect(G,q),!m||0>=m.width||0>=m.height||(w.showCell(w.Jl,w.Kl,3,3),h=w.getActualStyle(G,q),C.isProtected&&!1!==h.locked||(a=w.getCellType(G,q),!a||(B={sheet:w,row:G,col:q,sheetArea:3},y=a.isImeAware(B)?c.GF:a.a5(B),y&&y.firstChild&&(t=y.firstChild.firstChild),!t))))))){if(w.BF=t,E={sheet:w,sheetName:z,row:G,col:q,cancel:!1},w.Wq(H.EditStarting,E),E.cancel)return void(O.ipad&&c.Qq());m=w.getValue(G,q);l=u.X3&&w.getFormula(G,q);E=w.Px;w.HF?w.Px=1:I(m)&&I(l)?w.Px=1:w.Px=2;w.Cu(E,w.Px);l=w.am();m=w.getCellRect(G,q,D,A);a.isImeAware(B)&&c.JF();a.d5(y,h,m,B);w.KF(a,t,G,q,h,n);D=w.zo();a.isImeAware(B)||D.insertBefore(y,null);a.g5(y,h,m,B);a.isImeAware(B)&&r||a.focus(t,B);r&&a.selectAll(t,B);C.allowCellOverflow&&(M=m.clone(),M.y-=2,M.height+=4,M.x=l.kt,M.width=l.er,w.repaint(M));d.ao(w,"startEdit",{element:a.getEditingElement()});L.Zl(w);G={sheet:w,sheetName:z,row:G,col:q};w.Wq(H.EditStarted,G);w.Wq(H.FormulatextboxEditStarted,G)}},KF:function(d,l,q,D,A,r){var n,w,z,C,c=u.X3&&this.getFormula(q,D,!0);c&&(c="\x3d"+c);n=c;w={sheet:this,row:q,col:D,sheetArea:3};c&&0!==c.length||(c=this.getValue(q,D),z=this.parent,C=u.X3&&z&&z.options.allowUserEditFormula,c&&0<c.length&&/^=/gi.test(c)&&C&&(c="'"+c),n=c,c=d.kp(l,A,c,w));l.Ep=c;I(r)||(c=r);d.setEditorValue(l,c,w);l.LF=n}});U.exports=u},function(U,u,l){function d(a,e,b){var f,c,g,d,k,h;h=!1;var m=a.am();e&&(f=e.rowViewportIndex,c=e.colViewportIndex,(0>f||0>c)&&(g=a.getCellRect(e.row,e.col,f,c))&&0<g.width&&0<g.height&&(d=m.x,k=m.y,g.x<m.Br+d||g.y<m.Cr+k||g.y>=m.height-m.Bt))&&(h=new q.Rect(g.x-2,g.y-2,g.width+4,g.height+4),f=0>f&&0>c?m.em():0>f?m.gm(c):m.fm(f),h=h.getIntersectRect(f),b.VF(h.x,h.y,h.width,h.height),b=3,h=(0>e.rowViewportIndex&&(b=1),0>e.colViewportIndex&&(b=2),!(3===b||!a.vp(e.row,e.col,b,!0))));return h}function J(a,e,b){return{action:a,index:e,sheetArea:b}}function R(a,e,b,f,c,g){a={sheet:a,sheetName:e,sheetArea:c,row:b,col:f};return g&&(a.cancel=!1),a}function Q(a,e,b,f,c,g){var d=a.kj,k=R(d,d.Cj,d.Jl,d.Kl,M,!0);return d.Wq(y.LeaveCell,k),!(!k||!0!==k.cancel)||(d.Kr(e,b,f,c,g),d.Wq(y.EnterCell,R(d,d.Cj,e,b)),d.Wq(y.FormulatextboxEnterCell,R(d,d.Cj,e,b)),void(a.cs&&a.cs(e,b)))}function K(a,e,b,f,c,g,d){var k,h=a.kj;e=e.call(h,g.sheetArea);return(d&&!h.getRowVisible(g.index)||!d&&!h.getColumnVisible(g.index))&&(g.index=b.call(a,g.index,g.sheetArea)),k=f.call(e,g.index),k||(k=f.call(e,c)),k}function O(a,e,b,f){var c=f?"movingY":"movingX",g=f?"startY":"startX";a[c]=e;a[c]<a[g]&&(a[c]=a[g]);e=f?b.y+b.height:b.x+b.width;a[c]>e&&(a[c]=e)}function H(a){this.qo=a;this.Fi=this.lI=this.kI=this.jI=E;this.nI=this.mI=!1}var I,L,F,G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f,k,x,W,P,V;u=l(42);I=l(56).Worksheet;L=l(26);F=l(55).yp;G=l(44).GC$;q=l(43);D=q.Range;A=window;r=document;n=G.each;w=q.Ul;z=w.Ml;C=w.rl();c=w.nl;m=w.Nl;h=L.u.Kb;a=q.kf;B=L.j.Fa;y=q.Events;t=q.Vl;E=null;M=void 0;p=isNaN;g=parseInt;f=Math.max;k=Math.min;x=Math.abs;W=Math.ceil;P=C.iphone||C.ipad||C.android;V=function(){return L.C(u.SR)()};I.$n("eventHandler",{dispose:function(a){var e;G(this.Ws()).unbind("mousedown.handler").unbind("mouseup.handler").unbind("mousemove.handler").unbind("mousewheel.handler").unbind("DOMMouseScroll.handler").unbind("mouseout.handler").unbind("dblclick.handler");(e=this.mm)&&(e.no(),e.MF());(e=this.BF)&&G(e).remove();(e=this.NF)&&e.close();!1!==a&&(this.OF=E,this.PF=E,this.QF=E,this.RF=E,this.SF=E,this.TF=E,this.mm=E)},setHost:function(a){if(a){var e=this,b=e.mm;e.OF=function(a){var f={e:a,r:E};if(I.ao(e,"preProcessMouseDown",f),!f.r)return b.AD(a)};e.PF=function(a){var f={e:a,r:E};I.ao(e,"preProcessMouseMove",f);f.r||b.RB||b.BD(a)};e.QF=function(a){var f={e:a,r:E};if(I.ao(e,"preProcessMouseUp",f),!f.r&&!e.XD)return b.RB?void 0:b.CD(a)};e.RF=function(a){var b,f,c,d,k,h,m,p,n;if(a=a||A.event,b={e:a,r:E},I.ao(e,"preProcessMouseWheel",b),!b.r)return f=a.detail?a.detail:a.wheelDelta/-40,c=0,(!w.sl()||(d=(new Date).valueOf(),k=a.wheelDeltaY,h=a.wheelDeltaX,x(k)>=x(h)?h=0:k=0,m=!e.zia||200<d-e.zia,(z.safari||z.chrome)&&(p=z.safari?-4:-40,B(k)||(m?(f=k/p,f=(0<=f?1:-1)*W(x(f)),e.Aia=0):(f=k/p,e.Aia+=f,f=(0<=f?1:-1)*Math.floor(x(e.Aia)),e.Aia-=f)),B(h)||(m?(c=h/p,c=(0<=c?1:-1)*W(x(c)),e.Bia=0):(c=h/p,e.Bia+=c,c=(0<=c?1:-1)*Math.floor(x(e.Bia)),e.Bia-=c))),e.zia=d,0!==f||0!==c))&&(n=e.parent.ku.Rw(a,g(f,10)||0,g(c,10)||0),!!n&&void 0)};e.SF=function(a){var f={e:a,r:E};if(I.ao(e,"preProcessMouseOut",f),!f.r)return b.DD(a)};e.TF=function(a){function f(a,b,e,f,c,g){a={sheet:a,sheetName:b,sheetArea:c,row:e,col:f};return g&&(a.cancel=!1),a}function c(a,b){var e,f,c=a.kj,g=b.resizeInfo;return!!g&&("sizeRow"===g.action||"sizeHiddenRow"===g.action?(e=[],c.tp(g.index)?n(c.Uq,function(a,b){var f,g;if(-1===b.col)for(f=c.Tq(b),g=0;g<f.rowCount;g++)e.push({row:f.row+g})}):e.push({row:g.index}),c.wu().execute({cmd:"autoFitRow",sheetName:c.name(),rows:e,columnHeader:1===g.sheetArea})):(f=[],c.sp(g.index)?n(c.Uq,function(a,b){var e,g;if(-1===b.row)for(e=c.Tq(b),g=0;g<e.colCount;g++)f.push({col:e.col+g})}):f.push({col:g.index}),c.wu().execute({cmd:"autoFitColumn",sheetName:c.name(),columns:f,rowHeader:2===g.sheetArea})),!0)}var g,d;g={e:a,r:E};I.ao(e,"preProcessMouseDbClick",g);!g.r&&(g=e.yt)&&(d=!1,3===g.hitTestType?b.UF(a):d=c(b,g),d||e.Wq(y.CellDoubleClick,f(e,e.Cj,g.row,g.col,g.hitTestType)))};a.bind("mousedown.handler",function(a){return e.OF(a)}).bind("mouseup.handler",function(a){return e.QF(a)}).bind("mousemove.handler",function(a){return e.PF(a)}).bind("mousewheel.handler",function(a){return e.RF(a)}).bind("DOMMouseScroll.handler",function(a){return e.RF(a)}).bind("mouseout.handler",function(a){return e.SF(a)}).bind("dblclick.handler",function(a){return e.TF(a)})}}});u.ImeMode={auto:1,active:2,inactive:4,disabled:0};l=function(){function g(a){this.WF=0;this.nja=this.XF=!1;this.gA={};this.kj=a}return g.prototype={no:function(){this.YF&&this.YF.no();this.ZF&&this.ZF.no();this.$F=E},_F:function(){return this.YF||(this.YF=new H(this)),this.YF},aG:function(){return this.ZF||(this.ZF=new H(this)),this.ZF},Vs:function(){return this.kj.Vs()},bG:function(){var a=G(this.kj.Ws()).position();return a||(a={top:0,left:0}),a},AD:function(a){var b,e,f,c,g,d,k,h;return 2===a.button||(b=this.kj,this.tC(),z&&z.msie&&a.offsetX!==M&&a.offsetY!==M&&(e=0,f=0,a.target!==b.Xs&&(c=w.Z3(a.target,b.Xs),e=c.EB,f=c.FB),g=a.pageX-(a.offsetX+e),d=a.pageY-(a.offsetY+f),A.Yl.canvasOffset={top:d,left:g}),k=b.Vs(),h=this.cG(a,a.pageX-k.left,a.pageY-k.top),b.isEditing()||h||this.zt(),b.dG=!0,!1)},tC:function(){var a=this;a.RB||(G(r).bind("mousemove.gcSheet",function(b){a.BD(b)}).bind("mouseup.gcSheet",function(b){a.CD(b)}),a.RB=!0)},uC:function(){this.RB&&(this.RB=!1,G(r).unbind("mousemove.gcSheet").unbind("mouseup.gcSheet"))},cG:function(a,b,f){var e,c,g,d,k,h,m=this.kj;h=m.hitTest(b,f);var p=h.row,n=h.col,q=h.dragInfo,l=h.formulaRangeHitInfo,t=h.cellTypeHitInfo,v=m.am();if(b>=v.x&&f>=v.y)if(m.yt=h,this.eG=!0,h.resizeInfo)m.endEdit()&&this.fG(h);else if(q&&q.side&&"corner"!==q.side)m.endEdit()&&this.gG&&this.gG(h);else if(q&&"corner"===q.side)m.endEdit()&&this.hG&&this.hG(h);else if(h.filterButtonHitInfo)m.endEdit();else if(l)l.inBorder?this.iG(h):(l.inTopLeft||l.inTopRight||l.inBottomLeft||l.inBottomRight)&&this.jG(h);else if(m.Qs(0>h.rowViewportIndex?-1:p,0>h.colViewportIndex?-1:n)&&(!this.kG||!this.kG(m,h))){if(b=m.getActiveRowIndex(),f=m.getActiveColumnIndex(),t){if(e=t.sheetArea,(B(e)||3===e)&&(p!==b||n!==f)){m.suspendPaint();try{if(!m.endEdit()||(c=R(m,m.Cj,b,f,M,!0),m.Wq(y.LeaveCell,c),c&&!0===c.cancel))return;g=m.Uq.toArray();d=m.zl().get(p,n);k=[new D(d.row,d.col,d.rowCount,d.colCount)];m.yu(g,k);m.Sr(p,n,M,M,1);m.Wq(y.EnterCell,R(m,m.Cj,p,n));m.Wq(y.FormulatextboxEnterCell,R(m,m.Cj,p,n));m.Au(g);m.Iia=!0;this.cs&&this.cs(p,n)}finally{m.resumePaint()}}e=m.getCellType(t.row,t.col,h.hitTestType);t.sheet||(t.sheet=m);e.processMouseDown(t)}if(t&&t.isReservedLocation)return!0;this.lG(a);try{if(this.mG=h,m.isEditing()&&b===m.getActiveRowIndex()&&f===m.getActiveColumnIndex()&&!m.endEdit())return}finally{this.mG=E}B(p)||B(n)||(3===h.hitTestType&&this.cs&&this.cs(p,n),a=m.Uq.toArray(),this.nG(h),h=m.Uq.toArray(),m.yu(a,h))}},oG:function(a){var b,e=this.kj;return!e||(b=e.am(),B(a.x)||B(a.y)||B(a.width)||B(a.height)||a.x+a.width>b.pt+b.er+b.js||a.y+a.height>b.qt+b.jr+b.gs)},pG:function(a,b,f,c){var e,g,d,k,h,m,p,n=this.kj;g=0;d=a.options;for(k=d.length;g<k;g++)if(h=d[g],h.selected){e=c[g].value;break}c=!1;n.options.isProtected&&(m=n.getActualStyle(b,f),m&&(c=m.locked));B(e)||c||(p={cmd:"editCell",sheetName:n.name(),row:b,col:f,newValue:e,autoFormat:!0},n.wu().execute(p));G(a).hide()},qG:function(){var a;this.rG&&(a=this.rG.sG,3!==a&&2!==a||this.aG().tG(this.uG),3!==a&&1!==a||this._F().tG(this.vG))},wG:function(){this.xG&&this.yG();this.zG&&this.AG&&this.AG();this.BG&&this.CG&&this.CG();this.DG&&this.EG();this.FG&&this.GG();this.HG&&this.IG()},uG:function(a){var b,e,f,c,g,d,k,h;this.JG()||(b=this.rG,e=this.kj,f=b.KG,c=e.getViewportTopRow(f),g=e.getViewportBottomRow(f),a?g<e.getRowCount(void 0)-e.frozenTrailingRowCount()-1?e.mq(e._q(c)):(d=e.Gr(f),d&&0<d.length&&(k=e.am(),h=d[d.length-1],h.y+h.height>=k.qt+k.jr&&e.mq(e._q(c)))):c>e.frozenRowCount()&&e.mq(e.gr(c)));this.wG()},vG:function(a){var b,e,f,c,g,d,k,h;this.LG()||(b=this.kj,e=this.rG,f=e.MG,c=b.getViewportLeftColumn(f),g=b.getViewportRightColumn(f),a?g<b.getColumnCount(void 0)-b.frozenTrailingColumnCount()-1?b.rq(b.Zq(c)):(d=b.Hr(f),d&&0<d.length&&(k=b.am(),h=d[d.length-1],h.x+h.width>=k.pt+k.er&&b.rq(b.Zq(c)))):c>b.frozenColumnCount()&&b.rq(b.br(c)));this.wG()},JG:function(){var a,b,f,c,g=this.kj;c=g.am();var d=g.frozenRowCount();f=g.frozenTrailingRowCount();var h=this.$F,m=this.rG,p=m.KG;if(0===p){if(h.y>c.qt)return g.mq(g._t()),m.KG=1,!0}else if(1===p){if(a=g.Gr(1),a&&0<a.length){if(b=a[0],0<d&&h.y<c.qt&&b.row<=g._t())return m.KG=0,!0;if(b=a[a.length-1],0<f&&h.y>c.ot&&b.row>=g.ir()&&b.y+b.height<=c.ot)return m.KG=2,!0}}else if(2===p&&(a=g.Gr(1),a&&0<a.length&&h.y<c.ot)){if(b=a[a.length-1],b.y+b.height>c.ot){a=c.jr;f=g.getRowCount(void 0)-f-1;b=0;for(c=f;c>=d;c--)if(b+=g.Sl(c),b>a){f=k(c+1,f);break}g.mq(g._q(f-1))}return m.KG=1,!0}return!1},LG:function(){var a,b,f,c,g=this.kj;f=g.frozenTrailingColumnCount();var d=g.frozenColumnCount();c=g.am();var h=this.$F,m=this.rG,p=m.MG;if(0===p){if(h.x>c.pt)return g.rq(g.$t()),m.MG=1,!0}else if(1===p){if(a=g.Hr(1),a&&0<a.length){if(b=a[0],0<d&&h.x<c.pt&&b.col<=g.$t())return m.MG=0,!0;if(b=a[a.length-1],0<f&&h.x>c.lt&&b.col>=g.dr()&&b.x+b.width<=c.lt)return m.MG=2,!0}}else if(2===p&&(a=g.Hr(1),a&&0<a.length&&h.x<c.lt)){if(b=a[a.length-1],b.x+b.width>c.lt){a=c.er;f=g.getColumnCount(void 0)-f-1;b=0;for(c=f;c>=d;c--)if(b+=g.Tl(c),b>a){f=k(c+1,f);break}g.rq(g.Zq(f-1))}return m.MG=1,!0}return!1},NG:function(){var a,b,f,c,g,d,k,h,m;(this.OG||this.O3||this.lV)&&(a=this.kj,b=a.am(),f=this.rG,c=f.KG,g=f.MG,d=this.$F,k=E,0<=c&&0<=g?k=b.Ft(c,g):0<=c?k=b.fm(c):0<=g&&(k=b.gm(g)),k&&(h=0,m=0,d.x<=k.x?h=d.x-k.x:d.x>=k.x+k.width&&(h=d.x-(k.x+k.width)),d.y<=k.y?m=d.y-k.y:d.y>=k.y+k.height&&(m=d.y-(k.y+k.height)),this._F().PG(this.QG(h)),this.aG().PG(this.QG(m))))},RG:function(){this._F().SG();this.aG().SG()},fG:function(a){var b,e,f,c=F.prototype,g=this.kj,d=a.resizeInfo;"sizeRow"===d.action||"sizeHiddenRow"===d.action?(b=K(this,g.Jt,this.TG,c.findRow,a.row,d,!0),d.startY=b.y):(e=K(this,g.Kt,this.UG,c.findCol,a.col,d,!1),d.startX=e.x);b=g.parent;e=a.x;a=a.y;b&&(f=b.options.showResizeTip,(1!==f||"sizeCol"!==d.action&&"sizeHiddenCol"!==d.action)&&(2!==f||"sizeRow"!==d.action&&"sizeHiddenRow"!==d.action)&&3!==f||(0>a-30?a+=15:a-=30,b.uw(this.VG(),e,a)));this.OG=this.isResizing=!0},WG:function(){var a,b,f,c,g=this.kj,d=g.yt,k=d.resizeInfo,h=this.$F,m=h.x,h=h.y,p=g.am();k&&this.OG&&this.isResizing&&(d.x===m&&d.y===h||("sizeRow"===k.action||"sizeHiddenRow"===k.action?O(k,h,p,!0):O(k,m,p,!1),a=g.yl,b=a.bm(),a.Mx(p.x,p.y,p.width,p.height),a.Pw(b),f=g.parent,f&&(c=f.options.showResizeTip,(1!==c||"sizeCol"!==k.action&&"sizeHiddenCol"!==k.action)&&(2!==c||"sizeRow"!==k.action&&"sizeHiddenRow"!==k.action)&&3!==c||f.ww(this.XG(k)))))},YG:function(){var a,b,c,g,d,k,h,m,p;this.OG=this.isResizing=!1;a=!0;b=this.kj;(c=b.yt.resizeInfo)&&(this.xw(),"sizeRow"===c.action||"sizeHiddenRow"===c.action?B(c.movingY)?a=!1:(g=f(0,(c.movingY-c.startY)/b._zoomFactor),d=[],b.tp(c.index)?G.each(b.Uq,function(a,e){if(-1===e.col){var f=b.Tq(e);d.push({firstRow:f.row,lastRow:f.row+f.rowCount-1})}}):d.push({firstRow:c.index,lastRow:c.index}),k=1===c.sheetArea,b.wu().execute({cmd:"resizeRow",sheetName:b.name(),rows:d,size:g,columnHeader:k})):B(c.movingX)?a=!1:(g=f(0,(c.movingX-c.startX)/b._zoomFactor),h=[],b.sp(c.index)?G.each(b.Uq,function(a,e){if(-1===e.row){var f=b.Tq(e);h.push({firstCol:f.col,lastCol:f.col+f.colCount-1})}}):h.push({firstCol:c.index,lastCol:c.index}),m=2===c.sheetArea,b.wu().execute({cmd:"resizeColumn",sheetName:b.name(),columns:h,size:g,rowHeader:m})),p=b.hitTest(this.$F.x,this.$F.y),p&&this.Tw(p),a||b.repaint())},ZG:function(a,b){var e,f,c,g,d,h,m=0,n=0,q=0,l=0,t=this.kj,y=t.wq,r=t.frozenRowCount(),w=t.frozenColumnCount();if(this.o4=this.$G=t.Uq.toArray(),this.ctrl||this.shift||t.Tr(),0===a.hitTestType){if(this.shift||(e=r?t.ar():t.lq,c=w?t.$q():t.qq,!Q(this,e,c,1,1,b)))this.ctrl||t.Tr(),t.Ur(-1,-1,t.getRowCount(void 0),t.getColumnCount(void 0),!0)}else if(1===a.hitTestType){if(this.shift||(e=r?t.ar():t.lq,f=this._G(e,a.col,!1),!Q(this,f.row,f.col,1,a.colViewportIndex,b)))this.shift?(m=k(t.Kl,a.col),l=x(t.Kl-a.col)+1,t.Kx(-1,m,t.getRowCount(void 0),l,!0)):t.Ur(-1,t.Kl,t.getRowCount(void 0),1,!0)}else if(2===a.hitTestType){if(!this.shift){if(g=w?t.$q():t.qq,f=this._G(a.row,g,!0),e=t.Jl!==f.row,Q(this,f.row,f.col,a.rowViewportIndex,1,b))return;e&&y&&y.Lx()}this.shift?(n=k(t.Jl,a.row),q=x(t.Jl-a.row)+1,t.Kx(n,-1,q,t.getColumnCount(void 0),!0)):t.Ur(t.Jl,-1,1,t.getColumnCount(void 0),!0)}else if(3===a.hitTestType)if(p(a.row)||p(a.col))t.isEditing()&&(h=t.getCellRect(t.Jl,t.Kl,t.Nr,t.Pr),t.yl.VF(h.x,h.y,h.width,h.height));else{if(!this.shift&&(t.Jl!==a.row||t.Kl!==a.col)){if(e=t.Jl!==a.row,Q(this,a.row,a.col,a.rowViewportIndex,a.colViewportIndex,b))return;e&&y&&y.Lx()}this.shift?t.aH(a.row,a.col,!0):(d=t.zl().get(a.row,a.col),t.Ur(d.row,d.col,d.rowCount,d.colCount,!0))}},bH:function(a){!a||3===a.hitTestType&&(p(a.row)||p(a.col))||(this.xG=this.OG=!0,this.rG={KG:a.rowViewportIndex,MG:a.colViewportIndex,sG:a.hitTestType},this.qG())},nG:function(a){this.ZG(a);this.bH(a)},yG:function(){var a;this.rG&&this.OG&&!0!==this.DA&&(a=this.rG.sG,3===a?this.cH():2===a?this.dH():1===a&&this.eH())},cH:function(){var a,b,f=this.kj,c=this.fH(),g=this.gH();0<=c&&0<=g&&f.Qs(c,g)&&(a=f.Uq.toArray(),f.aH(c,g,!0),b=f.Uq.toArray(),f.yu(a,b),this.NG())},dH:function(){var a,b,c,g,d=this.kj;b=this.fH();if(0<=b&&d.Qs(b,-1)){if(a=k(d.Jl,b),b=f(d.Jl,b)-a+1,c=d.getColumnCount(void 0),g=d.selectionPolicy(),0===g)return;g=d.selectionUnit();2===g&&(a=-1,b=-1);g=d.Uq.toArray();d.Kx(a,-1,b,c,!0);a=d.Uq.toArray();d.yu(g,a)}this.NG()},eH:function(){var a,b,c,g,d=this.kj;b=this.gH();if(0<=b&&d.Qs(-1,b)){if(a=k(d.Kl,b),b=f(d.Kl,b)-a+1,c=d.getRowCount(void 0),g=d.selectionPolicy(),0===g)return;g=d.selectionUnit();1===g&&(a=-1,b=-1);g=d.Uq.toArray();d.Kx(-1,a,c,b,!0);a=d.Uq.toArray();d.yu(g,a)}this.NG()},hH:function(){var a,b,f;this.rG=E;this.RG();this.DA=E;this.xG=this.OG=!1;a=this.kj;a.Uq&&(a.Iia?delete a.Iia:(b=!this.$G,b||(f=a.Uq.toArray(),b=this.zu(this.$G,f)),b&&a.Au(this.o4)),this.$G=a.Uq.toArray())},iH:function(){var a,b,f,c;a=this.kj;var g=this.$F.y,d=a.am();return b=0<a.frozenRowCount()&&g<d.nt+d.fs?0:0<a.frozenTrailingRowCount()&&g>d.ot?2:1,f=this.rG.KG,c=a.Gr(1),0===b&&0<f&&0<c.length&&c[0].row>a._t()?b=1:2===b&&2>f&&0<c.length&&c[c.length-1].row<a.ir()&&(b=1),b},jH:function(){var a,b,f,c;a=this.kj;var g=this.$F.x,d=a.am();return b=0<a.frozenColumnCount()&&g<d.kt+d.hs?0:0<a.frozenTrailingColumnCount()&&g>d.lt?2:1,f=this.rG.MG,c=a.Hr(1),0===b&&0<f&&0<c.length&&c[0].col>a.$t()?b=1:2===b&&2>f&&0<c.length&&c[c.length-1].col<a.dr()&&(b=1),b},fH:function(){var a,b,f,c,g;a=this.kj;b=this.$F.y;f=this.iH();var d;return(d=(d=a.Gr(f))?d.findNearY(b):E)?(c=a.am(),g=d.row,1===f&&b<c.qt&&g>a._t()?a._q(g-1)||g:1===f&&b>c.ot&&g>a.hr()?a.gr(g)||g:g):-1},gH:function(){var a,b,f,c,g;a=this.kj;b=this.$F.x;f=this.jH();var d;return(d=(d=a.Hr(f))?d.findNearX(b):E)?(c=a.am(),g=d.col,1===f&&b<c.pt&&g>a.$t()?a.Zq(g-1)||g:1===f&&b>c.lt&&g>a.cr()?a.br(g)||g:g):-1},QG:function(a){var b,e=0;return p(a)||0===a||(b=0>a,e=W(500/x(a)),e=f(20,10*e),200<e&&(e=200),b&&(e=-e)),e},TG:function(a,b){var e=this.kj.gr(a,b);return e!==E?e:a},UG:function(a,b){var e=this.kj.br(a,b);return e!==E?e:a},kH:function(a,b,f){for(var e=this.kj;a>b&&(a--,!e.getRowVisible(a,f)););return a},lH:function(a,b,f){for(var e=this.kj;a>b&&(a--,!e.getColumnVisible(a,f)););return a},mH:function(a,b,c,g,d){var e,k,h,m,n,q,l,t,v;return e=E,!a.options.isProtected||a.options.protectionOptions.allowResizeRows?(k=a.Gr(b.rowViewportIndex,g),!k||p(b.row)||p(b.col)||(a.getRowVisible(b.row,g)||(b.row=this.TG(b.row,g)),h=k.findRow(b.row),h&&(h.y+h.height-c<=d&&d<=h.y+h.height+c?(e=J("sizeRow",b.row,g),m=k[k.length-1].row,0<=m&&(n=a.ir(g),e.index===n&&e.index!==m&&h.y+h.height-c/2<=d&&(e=J(this.nH(a,m,g),m,g)))):h.y-c<=d&&d<=h.y+c&&0<L.k.Cb(k,h)&&(q=this.kH(b.row,0,g),e=J(this.nH(a,q,g),q,g))),!e&&1===b.rowViewportIndex&&0<k.length&&(h=k[0],f(0,h.y-c)<=d&&d<=h.y+c&&(l=b.row-1,t=a.Gr(b.rowViewportIndex-1,g),0<=l&&t&&(v=t[t.length-1],t.findRow(l)&&l!==(v&&v.row)||(e=J(this.nH(a,l,g),l,g)))))),e&&!a.getRowResizable(e.index,g)&&(e=E),e):e},nH:function(a,b,f){var e=a.parent;return e&&1===e.options.resizeZeroIndicator&&a.getRowVisible(b)&&0===a.Yr(b,f)?"sizeHiddenRow":"sizeRow"},oH:function(a,b,c,g,d){var e,k,h,m,n,q,l,t,v;return e=E,!a.options.isProtected||a.options.protectionOptions.allowResizeColumns?(k=a.Hr(b.colViewportIndex,g),!k||p(b.col)||p(b.row)||(a.getColumnVisible(b.col,g)||(b.col=this.UG(b.col,g)),h=k.findCol(b.col),h&&(h.x+h.width-c<=d&&d<=h.x+h.width+c?(e=J("sizeCol",b.col,g),m=k[k.length-1].col,0<=m&&(n=a.dr(g),e.index===n&&e.index!==m&&h.x+h.width-c/2<=d&&(e=J(this.pH(a,m,g),m,g)))):h.x-c<=d&&d<=h.x+c&&0<L.k.Cb(k,h)&&(q=this.lH(b.col,0,g),e=J(this.pH(a,q,g),q,g))),!e&&1===b.colViewportIndex&&0<k.length&&(h=k[0],f(0,h.x-c)<=d&&d<=h.x+c&&(l=b.col-1,t=a.Hr(b.colViewportIndex-1,g),0<=l&&t&&(v=t[t.length-1],t.findCol(l)&&l!==(v&&v.col)||(e=J(this.pH(a,l,g),l,g)))))),e&&!a.getColumnResizable(e.index,g)&&(e=E),e):e},pH:function(a,b,f){var e=a.parent;return e&&1===e.options.resizeZeroIndicator&&a.getColumnVisible(b)&&0===a.$r(b,f)?"sizeHiddenCol":"sizeCol"},ur:function(a,b,f,c){var e,g,d,k,h,m=this.kj,p=m.parent,n=m.options,q=n.colHeaderVisible,n=n.rowHeaderVisible,l=E;return p&&!p.options.allowUserResize||(d=m.am(),0>a.rowViewportIndex&&0<=a.colViewportIndex&&q?(l=this.oH(m,a,c,1,b),l||(l=this.mH(m,a,c,1,f))):0<=a.rowViewportIndex&&0>a.colViewportIndex&&n?(l=this.mH(m,a,c,2,f),l||(l=this.oH(m,a,c,2,b))):0>a.rowViewportIndex&&0>a.colViewportIndex?m.ir(2)===E&&x(f-d.Cr)<=c?(k=m.Gr(1),k&&0<k.length&&(e=k[k.length-1].row),0<=e&&m.getRowResizable(e,2)&&(l=J(this.nH(m,e,2),e,2))):m.dr(1)===E&&x(b-d.Br)<=c&&(h=m.Hr(1),h&&0<h.length&&(g=h[h.length-1].col),0<=g&&m.getColumnResizable(g,1)&&(l=J(this.pH(m,g,1),g,1))):0<=a.rowViewportIndex&&0<=a.colViewportIndex&&(e=m.getRowCount(1)-1,g=m.getColumnCount(2)-1,0<=e&&0===d.Cr&&f<=c&&q?l=J(this.nH(m,e,1),e,1):0<=g&&0===d.Br&&b<=c&&n&&(l=J(this.pH(m,g,2),g,2)))),l},qH:function(a,b,f,c){var e,g,d,k,h=this.kj,m=h.am().Ft(1,1);if(1===b)if(e=h.Hr(b),e&&0<e.length){if(g=e[e.length-1],g.x+g.width<=f&&f<m.x+m.width)return!0}else if(m.contains(f,c))return!0;if(1===a)if(d=h.Gr(a),d&&0<d.length){if(k=d[d.length-1],k.y+k.height<=c&&c<m.y+m.height)return!0}else if(m.contains(f,c))return!0;return!1},BD:function(a){var b=this.Vs();this.sH(a,a.pageX-b.left,a.pageY-b.top)},DD:function(){var a,b,f,c=this.kj,g=c.yt;g&&(a=g.cellTypeHitInfo,a&&(b=c.getCellType(a.row,a.col,g.hitTestType),b.processMouseLeave(a)));this.OG||(f={x:-1E4,y:-1E4,rowViewportIndex:E,colViewportIndex:E,row:-1,col:-1,resizeInfo:E,hitTestType:E},this.Uw(f))},sH:function(a,b,f){var e,c;return this.$F={e:a,x:b,y:f},e=this.kj,this.eG&&(t.Wl(e)||t.Zl(e)),this.eG&&this.OG?void(this.isResizing?this.WG():this.zG?this.AG&&this.AG():this.BG?this.CG&&this.CG():this.DG?this.EG():this.FG?this.GG():this.HG?this.IG():this.xG&&this.yG()):(c=e.hitTest(b,f),void(c&&(this.Tw(c),this.Uw(c))))},Tw:function(a){var b,e,f,c,g,d,k,h,m,p,n,l,t,x,y=this.kj,r=y.Ws();r&&(b=y.yt,e=!b||a.row!==b.row||a.col!==b.col||a.hitTestType!==b.hitTestType||a.resizeInfo&&!b.resizeInfo||!a.resizeInfo&&b.resizeInfo||a.resizeInfo&&a.resizeInfo.action!==b.resizeInfo.action||a.dragInfo&&!b.dragInfo||!a.dragInfo&&b.dragInfo||a.dragInfo&&a.dragInfo.action!==b.dragInfo.action,b&&e&&(f=b.cellTypeHitInfo,f&&(c=y.getCellType(f.row,f.col,b.hitTestType),c.processMouseLeave(f))),g=a.resizeInfo,d=a.dragInfo,k=a.formulaRangeHitInfo,h=a.cellTypeHitInfo,m=y.yl,g?(p=q.CursorResource,"sizeCol"===g.action?r.style.cursor=p.ResizeCol:"sizeRow"===g.action?r.style.cursor=p.ResizeRow:"sizeHiddenCol"===g.action?r.style.cursor=p.ResizeHiddenCol:"sizeHiddenRow"===g.action?r.style.cursor=p.ResizeHiddenRow:r.style.cursor="default"):d&&"drag"===d.action?"corner"===d.side?r.style.cursor="crosshair":d.side?r.style.cursor="move":r.style.cursor="default":k?(k.inBorder?r.style.cursor="move":k.inTopLeft?r.style.cursor="nw-resize":k.inTopRight?r.style.cursor="ne-resize":k.inBottomLeft?r.style.cursor="sw-resize":k.inBottomRight&&(r.style.cursor="se-resize"),n=this.isFormulaRangeHoving,l=this.tH,t=l&&l.paramRange,x=k.paramRange,this.isFormulaRangeHoving=!0,this.tH={paramRange:x},n&&x.index===t.index||m.uH()):(h&&(c=y.getCellType(h.row,h.col,a.hitTestType),h.sheet=y,e&&c.processMouseEnter(h),c.processMouseMove(h)),!e&&h&&h.isReservedLocation||(r.style.cursor="default"),this.isFormulaRangeHoving&&(this.isFormulaRangeHoving=!1,this.tH=E,m.uH())))},CD:function(a){var b,e=this.kj;return this.uC(),b=e.Vs(),!e.dG||(e.dG=!1,this.vH(a,a.pageX-b.left,a.pageY-b.top),!1)},vH:function(a){var b,e,f,c=this.kj,g=t.Xl();this.eG=!1;g&&g!==c&&g.endEdit&&(g.Cw&&g.Cw.V4||(g.endEdit(),g.repaint()));t.Zl(c);this.isResizing?this.YG():this.zG?this.wH&&this.wH():this.BG?this.xH&&this.xH():this.DG?this.yH():this.FG?this.zH():this.HG?this.AH():c.yt&&(b=c.yt,e=b.cellTypeHitInfo,e&&(f=c.getCellType(e.row,e.col,b.hitTestType),e.sheet||(e.sheet=c),f.processMouseUp(e)),e&&e.isReservedLocation||c.Wq(y.CellClick,R(c,c.Cj,b.row,b.col,b.hitTestType)));this.hH();this.lG(a)},UF:function(a){var b,e,f=this.kj;f.isEditing&&(b=f.Ws(),e=f.Vs(),a.shiftKey||a.ctrlKey||f.FF(b,a.pageX-e.left,a.pageY-e.top))},nm:function(a){var b,e,f,g,d,k,h,m,p,n=this.kj;if(n){if(b=n.getActiveRowIndex(),e=n.getActiveColumnIndex(),f=n.getCellType(b,e),g={isEditing:n.isEditing(),sheet:n,row:b,col:e,sheetArea:3},d={sheet:n,row:b,col:e,sheetArea:3},f&&f.isReservedKey(a,g))return void(n.isEditing()||f.processKeyDown(a,d));if((k=n.Cw,k&&k.BH(a))||(h=n.parent&&n.parent.CF,h&&h.BH(a)))return}if(m=!(n.isEditing()||a.ctrlKey||a.metaKey||34!==a.keyCode&&33!==a.keyCode&&37!==a.keyCode&&39!==a.keyCode&&9!==a.keyCode&&13!==a.keyCode&&38!==a.keyCode&&40!==a.keyCode),n.CH&&(n.CH=!1,n.yl.DH()),p=this.EH(a),m&&p&&t.Wl(n)){if(this.FH)return 25>this.GH&&this.GH++,void c(a);this.FH=!0;this.GH=1;this.HH(a,!0)}},VG:function(){var a,b,f,c,g=this.kj,d=g.yt,k=d.resizeInfo;return"sizeRow"===k.action||"sizeHiddenRow"===k.action?(a=g.Jt(k.sheetArea),g.getRowVisible(k.index)||(k.index=this.TG(k.index,k.sheetArea)),b=a.findRow(k.index),b||(b=a.findRow(d.row)),h(V().Tip_Height,[b.height.toFixed(0)])):(f=g.Kt(k.sheetArea),g.getColumnVisible(k.index)||(k.index=this.UG(k.index,k.sheetArea)),c=f.findCol(k.index),c||(c=f.findCol(d.col)),h(V().Tip_Width,[c.width.toFixed(0)]))},XG:function(a){return"sizeRow"===a.action||"sizeHiddenRow"===a.action?h(V().Tip_Height,[(a.movingY-a.startY).toFixed(0)]):h(V().Tip_Width,[(a.movingX-a.startX).toFixed(0)])},HH:function(a,b){var e=this;e.FH&&(b||e.EH(a),e.FH&&(e.WF=setTimeout(function(){e.HH(a)},500/e.GH)))},IH:function(a){var b,e,f=this.kj,c=f.Ws();if(c){f.HF=!0;try{b=f.isEditing(),f.EF&&f.EF(c,f.Jl,f.Kl,E,E,!0),!b&&f.isEditing()&&(e=f.getCellType(f.Jl,f.Kl),!e.tw||32!==a.keyCode||a.ctrlKey||a.shiftKey||a.altKey||e.tw(f,f.Jl,f.Kl,3),e.JH&&e.JH(a))}finally{f.HF=!1}}},EH:function(a){var b,e,f,g,d,k,h,m,p,n=this.kj;if(this.lG(a),n.isEditing()||27!==a.keyCode||a.altKey||a.ctrlKey||a.shiftKey||!n.KH||(G(n.KH).remove(),n.KH=E),n.isEditing()||34!==a.keyCode&&33!==a.keyCode&&35!==a.keyCode&&36!==a.keyCode&&38!==a.keyCode&&40!==a.keyCode||c(a),n.isEditing()||37!==a.keyCode&&39!==a.keyCode||c(a),b=n.wu(),e=b.getShortcutKey(a.keyCode,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey),f=b.getCommands(e))for(b=0;b<f.length;b++)if(e=f[b].execute(n.parent,{sheetName:n.name()}))return e.ignoreCancelDefault||c(a),!0;return g={e:a,r:E},I.ao(n,"processKeyDown",g),!!g.r||(d=229===a.keyCode||0===a.keyCode,this.LH(a)&&!d&&(k=n.Cw,k&&k.MH&&k.NH(),h=n.isEditing(),h||(m=A.Yl.Bm(a.target),p=m&&"gcAttachedFormulaTextBox"===m.getAttribute("gcUIElement"),p||this.IH(a))),!1)},Ux:function(){this.FH=!1;0<this.WF&&(clearTimeout(this.WF),this.WF=0)},om:function(a){var b,e,f,c,g,d,k,h;if(this.Ux(),b=this.kj){if(e=b.getActiveRowIndex(),f=b.getActiveColumnIndex(),c=b.getCellType(e,f),g={isEditing:b.isEditing(),sheet:b,row:e,col:f,sheetArea:3},d={sheet:b,row:e,col:f,sheetArea:3},c&&c.isReservedKey(a,g))return void(b.isEditing()||c.processKeyUp(a,d));if((k=b.Cw,k&&k.BH(a))||(h=b.parent&&b.parent.CF,h&&h.BH(a)))return}this.lG(a)},pm:function(a){this.IH(a)},LH:function(a){return!(a.ctrlKey||a.altKey||a.metaKey)&&(65<=a.keyCode&&90>=a.keyCode||48<=a.keyCode&&57>=a.keyCode||96<=a.keyCode&&105>=a.keyCode||186<=a.keyCode&&192>=a.keyCode||220<=a.keyCode&&222>=a.keyCode||219===a.keyCode||106<=a.keyCode&&111>=a.keyCode||32===a.keyCode||61===a.keyCode||173===a.keyCode||229===a.keyCode||0===a.keyCode||8===a.keyCode)},lG:function(a){var b,e,f,c,g=this.kj,d=w.sl()?a.metaKey:a.ctrlKey;this.ctrl=d&&!a.shiftKey;this.shift=a.shiftKey&&!d;g.Hx=!1;9===a.keyCode&&(1<g.Uq.length?g.Hx=!0:(b=g.Ix(),b&&0<g.Uq.length&&(g.Hx=!(g.Jl===b.row&&g.Kl===b.col&&g.Lr===b.rowCount&&g.Mr===b.colCount))));!0===this.zG&&(e=g.Ix(),f=this.OH,c=this.PH,-1===e.row||-1===e.col?this.OH=a.shiftKey:this.OH=!1,this.PH=a.ctrlKey,f===this.OH&&c===this.PH||g.yl.QH&&g.yl.QH());this.RH=a.ctrlKey},Vx:function(){this.ctrl=this.shift=!1;this.RH=this.PH=this.OH=this.zG=this.kj.Hx=!1},Qw:function(a){var b,e,f,c,g,d,k,h,m,p,n,q;a&&a.sheet?(b=a.sheet,e=a.editor,f=a.canvasOffset):(b=this.kj,e=b.BF);b.isEditing()&&(c=b.Jl,g=b.Kl,d=b.getCellType(c,g),k=b.am(),h=b.getActualStyle(c,g),m=b.getCellRect(c,g),e&&e.parentNode&&(p=e.parentNode.parentNode,m&&0<m.width&&0<m.height&&m.x>=k.kt&&m.y>=k.nt&&m.x+m.width<=k.lt+k.js&&m.y+m.height<=k.ot+k.gs?(n={sheet:b,row:c,col:g,sheetArea:3,canvasOffset:f},d.g5(p,h,m,n,!0)):G(p).css({top:-1E4,left:-1E4})),q=b.Cw,q&&q.SH())},TH:function(a,b){var e,f;if(!a)return E;for(e=a.firstChild;e;){if(e.id===b||e.name===b)return e;if(f=this.TH(e,b))return f;e=e.nextSibling}return E},zu:function(a,b){var e,f,c,g=!0;if(a.length===b.length)for(e=0;e<a.length;e++){if(f=a[e],c=b[e],f.row!==c.row||f.col!==c.col||f.rowCount!==c.rowCount||f.colCount!==c.colCount){g=!0;break}g=!1}return g},UH:function(a,b,f,c){var e,g,d,k,h,p=this.kj,n={sheet:p,row:b,col:f,sheetArea:3},q=p.zo(),l=a.isImeAware(n),t=P?"absolute":"fixed";return c&&this.VH(),l&&!this.GF&&(e=a.a5(n),this.WH||(this.WH={overflow:"visible",border:"none",position:"absolute"}),this.WH.overflow=e.style.overflow,this.WH.border=e.style.border,this.WH.position=e.style.position,G(e).css("position",t).css("overflow","hidden").css("top","0px").css("left","0px").css("width","0px").css("height","0px").css("border","none"),p.KF&&e.firstChild&&(g=e.firstChild.firstChild,p.KF(a,g,b,f,p.getActualStyle(b,f)),d=a.getEditorValue(g,n),z.safari&&(""===d||B(d))&&a.setEditorValue(g," ",n)),q&&q.insertBefore(e,E),this.GF=e),this.XH||(e=m("div"),G(e).css("position",t).css("overflow","hidden").css("top","0px").css("left","0px").css("width","0px").css("height","0px"),this.XH=e,k=m("textarea"),G(k).attr("gcUIElement","gcSheetFocusInput").attr("tabindex",-1).css("position","absolute").css("overflow","hidden").css("border","none").css("resize","none"),k.value=" ",e.insertBefore(k,E),this.YH=k,h=m("div"),G(h).css("position","absolute").css("overflow","hidden").attr("gcUIElement","gcSheetFocusInput").attr("tabindex",-1),e.insertBefore(h,E),this.ZH=h,q&&q.insertBefore(e,E)),P&&(this.GF&&this.$H(p,this.GF),this.$H(p,this.XH)),l?this.GF:this.YH},JF:function(){this.GF&&this.WH&&G(this.GF).css("overflow",this.WH.overflow).css("border",this.WH.border).css("position",this.WH.position)},VH:function(){this.GF&&(this.GF.parentElement&&this.GF.parentElement.removeChild(this.GF),this.GF=E)},zt:function(a){t.Wl(this.kj)||this._H(!0,!0,a)},Cm:function(){var a=this.ZH;a&&a.focus()},Qq:function(){this._H(!0,!0)},aI:function(){this.bI&&(clearTimeout(this.bI),this.bI=E)},_H:function(a,b,f){var e,c,g,d,k,h,m,p,n;0===arguments.length&&(a=!0);e=this;e.nja||(e.XF=!1,e.aI(),c=e.kj,g=c.getActiveRowIndex(),d=c.getActiveColumnIndex(),k=c.getCellType(g,d),e.UH(k,g,d,b),h={sheet:c,row:g,col:d,sheetArea:3},m=k.isImeAware(h)&&e.GF.firstChild?e.GF.firstChild.firstChild:e.YH,b&&!z.msie&&k.setImeMode(m,c.getActualStyle(g,d).imeMode,h),r.body.focus(),p=function(){var a=function(){try{k.isImeAware(h)?(k.focus(m,h),k.selectAll(m,h)):(m.focus(),m.select())}catch(T){}};a();b&&z.msie&&(k.setImeMode(m,c.getActualStyle(g,d).imeMode,h),a())},!c.CH&&!C.ipad||!a&&k.isImeAware(h)?!1===c._enhanceIme||f||p():e.GF&&!c.isEditing()&&(z.metroMode||C.ipad||C.iphone||C.android)?(n=e.GF.firstChild,b&&n&&n.firstChild&&k.setImeMode(n.firstChild,c.getActualStyle(g,d).imeMode,h)):e.bI=setTimeout(function(){e.aI();c.isEditing()||!1===c._enhanceIme||f||p()},200),t.Wl(c)||t.Zl(c),e.cs&&e.cs(c.Jl,c.Kl))},$H:function(a,b){var e,f,c,g,d,k;k=a.getActiveRowIndex();d=a.getActiveColumnIndex();var h=a.getCellRect(k,d,a.Nr,a.Pr);d=a.Vs();var m=this.bG(),n=this.GF,q=0,l=0;k=g=0;n&&(c=G(n),q=parseInt(c.css("top"),10),l=parseInt(c.css("left"),10),g=parseInt(c.css("height"),10),k=parseInt(c.css("width"),10));this.oG(h)?(e=q,f=l):(e=h.y+m.top-2,f=h.x+m.left-2);c=A.pageYOffset-d.top+m.top;g=A.innerHeight+c-g;d=A.pageXOffset-d.left+m.left;k=A.innerWidth+d-k;(p(e)||e<c||e>g)&&(e=c);(p(f)||f<d||f>k)&&(f=d);G(b).css("top",e).css("left",f)},cI:function(a){var b,e,f,c;this.aI();this.kj.isEditing()||this.XF&&r.activeElement===this.ZH||(b=this.kj,a?(e=a.row,f=a.col):(e=b.Jl,f=b.Kl),c=b.getCellType(e,f),this.UH(c,e,f,!1),this.ZH.focus(),this.XF=!0)},dI:function(a){0===arguments.length&&(a=!0);this.XF&&(this.XF=!1,this._H(a))},gx:function(a){var b=this.kj.tu();b&&(b.Eia(a),b.M4(),this.nja=!0,a&&b.N4())},hx:function(){var a=this.kj.tu();a&&a.Eia("");this.nja=!1;this._H(!0,!1)},MF:function(){var a;this.aI();(a=this.GF)&&(G(a).remove(),this.GF=M);(a=this.XH)&&(G(a).remove(),this.YH=M,this.XH=E,this.ZH=E)},uw:function(a,b,f,c){var e=this.kj.parent;e&&e.uw(a,b,f,c)},ww:function(a,b,f,c){var e=this.kj.parent;e&&e.ww(a,b,f,c)},xw:function(){var a=this.kj.parent;a&&a.xw()},Uw:function(a){var b,e,f,c=this.kj,g=!1,k=c.yt;k||(g=!0);g||a||(g=!0);if(!g){var h;if(!(h=a.col!==k.col||a.row!==k.row||a.colViewportIndex!==k.colViewportIndex||a.rowViewportIndex!==k.rowViewportIndex||a.hitTestType!==k.hitTestType)){h=a.resizeInfo;var m=k.resizeInfo,g=!1;h=!(h||m?h&&m&&(g=h.action===m.action&&h.index===m.index&&h.sheetArea===m.sheetArea):g=!0,g)}g=h}c.yt=a;g&&(c.fI=!0,b=c.yl,e=d(c,k,b),f=d(c,a,b),e=e||f,c.fI=!1,e&&b.im())},_G:function(a,b,f){a=this.gI(a,b,f);return this.hI(a)},gI:function(a,b,f){var e=this.kj.zl().get(a,b),c=e.rowCount,g=e.colCount;return 1===c&&1===g?e:f&&1===c||!f&&1===g?e:(f?b++:a++,this.gI(a,b,f))},hI:function(e){var b,f,c,g=this.kj,d=e.row;f=g.getRowCount(void 0);for(b=d;b<f&&!0!==g.getRowVisible(b);b++);b<f&&(d=b);f=e.col;c=g.getColumnCount(void 0);for(b=f;b<c&&!0!==g.getColumnVisible(b);b++);return b<c&&(f=b),a(d,f,e.rowCount,e.colCount)}},g}();u.iI=l;H.prototype={tG:function(a){"function"===typeof a&&(this.kI=a)},PG:function(a){var e;p(a)||0===a?this.SG():(this.nI=0<a,a=x(a),e=this.jI,this.jI=a,e!==a&&this.oI())},oI:function(){var a=this;a.$b();p(a.jI)||(a.lI=setInterval(function(){a.pI()},a.jI))},pI:function(){var a=this.kI;this.mI=!0;"function"===typeof a&&(this.Fi=a.call(this.qo,this.nI))},SG:function(){this.$b();this.Fi=this.lI=this.jI=E;this.mI=!1},$b:function(){var a=this.lI;a&&clearInterval(a)},no:function(){this.SG()}};U.exports=u},function(U,u,l){U=l(26);var d=l(56).Worksheet,J=l(51).Style,R=l(43),Q=l(49);u=l(44).GC$;var K=l(50).To,O=U.CultureManager,H=d._n,I=R.Ul.Ol,L=u.each,F=u.isEmptyObject,G=U.D,q=parseInt,D=isNaN;u.extend(d.prototype,{qI:function(d,q,n,l){d=d[q]||(d[q]={});(d[n]||(d[n]={})).value=l},toJSON:function(q){function l(a,f){switch(a){case "defaults":return f.rowHeight===d.Wp&&f.colWidth===d.Xp&&f.rowHeaderColWidth===d.Yp&&f.colHeaderRowHeight===d.Zp;case "columns":case "rows":case "rowHeaderColInfos":case "colHeaderRowInfos":return!f||0===f.length;case "frozenRowCount":case "frozenColCount":case "frozenTrailingRowCount":case "frozenTrailingColCount":case "activeRow":case "activeCol":return 0===f;case "rowCount":return 200===f;case "columnCount":return 20===f;case "zoomFactor":case "rowHeaderColCount":case "colHeaderRowCount":return 1===f;case "visible":return!0===f;case "data":case "rowHeaderData":case "colHeaderData":return F(f);case "tag":return null===f}return!1}function n(a,f,c,g){a[f]=c.toJSON(g)}function w(a,f,c,g){c=c.Hp();var d,k;if(c){d=[];for(k=0;k<g;k++)I(c[k])&&(d[k]=c[k]);g=d}else g=void 0;a[f]=g}var z,A,c,m,h,a,B,y,t,E,D,p,g,f;z=this;A=z.getRowCount();c=z.getColumnCount();m=z.getRowCount(1);h=z.getColumnCount(2);a={name:z.Cj,defaults:z.defaults,frozenRowCount:z.frozenRowCount(),frozenColCount:z.frozenColumnCount(),frozenTrailingRowCount:z.frozenTrailingRowCount(),frozenTrailingColCount:z.frozenTrailingColumnCount(),rowCount:A,columnCount:c,activeRow:z.Jl,activeCol:z.Kl,zoomFactor:z._zoomFactor,rowHeaderColCount:h,colHeaderRowCount:m,visible:z.visible(),tag:z.Is};n(a,"spans",z.zl());n(a,"rowHeaderSpan",z.zl(2));n(a,"colHeaderSpan",z.zl(1));n(a,"data",z.Mp(),3);n(a,"rowHeaderData",z.Mp(2),2);n(a,"colHeaderData",z.Mp(1),1);n(a,"selections",z.Uq);n(a,"theme",z.Pm);w(a,"rows",z.iq(),A);w(a,"columns",z.nq(),c);w(a,"rowHeaderColInfos",z.nq(2),h);w(a,"colHeaderRowInfos",z.iq(1),m);H&&L(H,function(f,c){c.toJson&&c.toJson.call(z,a,q)});B={};for(y in a)G(a,y)&&(t=a[y],l(y,t)||(B[y]=t));if(L(z.options,function(a,f){var c,g,k,h=f;"gridline"===a&&(h={},c=f.color,g=f.showHorizontalGridline,k=f.showVerticalGridline,c!==R.Im.Lm("gc-gridlineColor").borderTopColor&&(h.color=c),!0!==g&&(h.showHorizontalGridline=g),!0!==k&&(h.showVerticalGridline=k));"_ps"!==a&&d.Qp[a]!==h&&("object"==typeof h&&F(h)||(B[a]=h))}),A=[],E=z.Lq,E){for(D in E)G(E,D)&&(p=E[D],p&&(g=p.toJSON(),f=p.font,F(g)||(f&&(g.font=K.Jo(f)),A.push(g))));0<A.length&&(B.namedStyles=A)}return B},fromJSON:function(l,r,n){function w(a,b,e,f){b&&a.fromJSON(b,e,f)}function z(a,b,e){b&&a.Ip(b,e)}function C(a,b){return I(a)?a:b}function c(a,b,e){I(e)&&b.call(a,e,!1)}var m,h,a,B,y,t,E,A,p,g,f,k,x,u,F,V,Z,e,b,v,N,S,X,Y,K,ja,oa,U;if(l){m=this;h={sheet:m};m.T3();d.ao(m,"preFromJson");m.suspendPaint();a=O.culture();O.culture("");B=C(l.rowCount,d.Rp);y=C(l.columnCount,d.Sp);try{if(m.Cj=l.name,m.defaults=C(l.defaults,m.defaults),m.setRowCount(B),m.setColumnCount(y),m.Lq={},t=l.namedStyles)for(E=0;E<t.length;E++)A=t[E],p=new J,p.fromJSON(A,n),m.Kq(p);g=m.options;for(f in g)if(G(g,f)&&(k=l[f],"protectionOptions"===f&&(k=k||l.protectionOption),I(k)))if("object"==typeof k)for(x in k)G(k,x)&&(m.options[f][x]=k[x]);else m.options[f]=k;if(u=C(l.activeRow,m.Jl),F=C(l.activeCol,m.Kl),m.Kr(u,F,void 0,void 0,!0),c(m,m.frozenRowCount,l.frozenRowCount),c(m,m.frozenColumnCount,l.frozenColCount),c(m,m.frozenTrailingRowCount,l.frozenTrailingRowCount),c(m,m.frozenTrailingColumnCount,l.frozenTrailingColCount),V=l.tag,I(V)&&(Z=V.typeName,"string"===typeof Z&&(e=R.getTypeFromString(Z),e&&(V=new e,V.fromJSON&&V.fromJSON(l.tag))),m.tag(V)),b=l.colStyles)for(v in b)D(v)||m.setStyle(-1,q(v,10),b[v],3);if(N=l.rowStyles)for(S in N)D(S)||m.setStyle(q(S,10),-1,N[S],3);X=C(l.rowHeaderColCount,d.Tp);Y=C(l.colHeaderRowCount,d.Vp);m.setColumnCount(X,2);m.setRowCount(Y,1);m._zoomFactor=C(l._zoomFactor||l.zoomFactor,m._zoomFactor);c(m,m.visible,l.visible);w(m.zl(),l.spans,n);w(m.zl(2),l.rowHeaderSpan,n);w(m.zl(1),l.colHeaderSpan,n);w(m.Mp(),l.data,n,h);w(m.Mp(2),l.rowHeaderData,n);w(m.Mp(1),l.colHeaderData,n);w(m.Uq,l.selections,n);z(m.iq(),l.rows,B);z(m.nq(),l.columns,y);z(m.nq(2),l.rowHeaderColInfos,X);z(m.iq(1),l.colHeaderRowInfos,Y);(K=l.theme)&&(ja=K,"string"!==typeof ja&&I(ja)&&(oa=ja.themeColor||ja._themeColor,U=new Q.ColorScheme(oa.name||oa.Cj),U.fromJSON(oa,n),ja=new Q.Theme(ja.name||ja.Cj,U,ja.headingFont||ja.Vaa,ja.bodyFont||ja.Waa)),m.currentTheme(ja));H&&L(H,function(a,b){var e=b.fromJson;e&&e.call(m,l,n,!I(r)||r)});m.clearPendingChanges()}finally{O.culture(a),m.resumePaint()}}}})},function(U,u,l){function d(a){var b=a.parent;return n.Wl(a)||b&&!b.options.hideSelection}function J(a){return(a=a.parent)&&a.options.backColor||W}function R(a){this.ad(a)}function Q(a,b,e,f){var c,g;c=b.font;g=b.textIndent;c=c?B(c,f).font:e;a=r.Xn(a,c)+(g?8*g:0)+P;e=b.cellPadding;var d,k;b=0;f=("string"==typeof e&&(d=e.split(" ",4),k=d.length,1===k?b=2*d[0]:2===k||3===k?b=2*d[1]:4===k&&(b=d[1]+d[3])),b*f);return a+f}function K(a,b,e,f,c,g,d,k,h){var p,n,q,l=a.ss,t=c.width,v=c.width,x=c.data,r=c.style;c=c.text;var w=r.watermark;if(b.findCell(g,d)||(q=r.cellType||e,!q.allowOverflow||!c&&!w)||(!c&&w&&(c=w),p=Q(c,r,f,a._zoomFactor),p<=v))return M;f=e=d;for(a=d+(h?1:-1);(h?a<=k:a>=k)&&!b.findCell(g,a)&&(x=l.ge(g,a),m(x))&&(n=l.Ym(g,a),!n.watermark)&&(h?f=a:e=a,v+=l._m(a),!(p<=v));a+=h?1:-1);return h&&f===d||!h&&e===d?M:new y(d,e,f,p,t,v,h?-1:v,h?v:-1)}function O(a,b,e){this.kj=a;this.pJ=a.Hr(e);this.qJ=a.Ir(b,e);this.yI=B(a.yl.Bl(),a._zoomFactor).font;this.Rq=a.Al();this.rJ={}}function H(a){this.zJ=this.yJ=!1;this.kj=a;this.AJ()}var I,L,F,G,q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f,k,x,W,P,V,Z,e,b,v,N,S,X,Y=l(26).k,ka=l(56).Worksheet,ja=l(43),oa=l(50),ma=l(55),ea=l(70);u=l(42);I=l(26);L=u.Bn;F=ja.Ul;G=F.Ml;q=F.ol;D=ja.En;A=ja.mn;r=ja.Vn;n=ja.Vl;w=ja.Rect;z=ja.Events;C=ja.Rm;c=ja.kf;m=I.j.Fa;h=ja.Im;a=oa.Ho;B=oa.To.No;y=ma.op;t=ma.np;E=ea.AF;M=null;p=Math.min;g=Math.max;f=Math.abs;k=Math.floor;x=Math.ceil;ka.$n("render",{init:function(){this.yl=new R(this);this.at=new H(this)},dispose:function(a){var b;!1!==a&&(this.yl=M,b=this.at,b&&(b.no(),this.at=M))},onLayoutChanged:function(a){a=a.changeType;var b=this.at;"addRows"===a?b&&b.rI():"deleteRows"===a?b&&b.sI():"addColumns"===a?b&&b.tI():"deleteColumns"===a&&b&&b.uI()}});W="white";R.prototype={constructor:R,ad:function(a){this.kj=a},bm:function(){var a=M,b=this.kj.Ws();return b&&b.getContext&&(a=b.getContext("2d")),a},vI:function(){var a,b=this.kj,e=b.Dr(),f=b.Xs,c=f.width,f=f.height,g=this.wI;return g&&g.width===c&&g.height===f||(g&&D.Qn(b,g),this.wI=g=ja.Ul.Nl("canvas"),g.getContext&&(this.xI=g.getContext("2d"),D.Kn(g,M,b),D.Pn(g,e.width,e.height))),a=this.xI,a&&(a.beginPath(),a.font=this.Cl(this.Bl()),a.name="bufferContext"),a},Bl:function(){return this.yI||(this.yI=a+" "+this.kj.currentTheme().bodyFont())},us:function(){this.yI=M},zI:function(a){var b,e=this.kj,f=e.parent,c=f?f.options.grayAreaBackColor||h.Mm("gc-grayArea").backgroundColor:"gray",e=C.Om(e,c);return a?(b=f?f.options.backgroundImage:M,b&&(e="transparent"),e):e},Cl:function(a){var b=this.kj._zoomFactor;return 1===b?a:B(a,b).font},Mx:function(a,b,e,f,c){var g,d,k,h,m,p=this.wI,n=this.bm();0>=e||0>=f||!p||!n||(c||(c=this.kj.Dr()),g=D.Ln(p),d=D.Mn(p),1!==g&&(a*=g,b*=d,e*=g,f*=d,c=new w(c.x*g,c.y*d,c.width*g,c.height*d)),k=c.getIntersect(a,b,e,f),k&&(k.round(),a=k.x,b=k.y,e=k.width,f=k.height,h=p.width,h&&a+e>h&&(a=h-e,0>a&&(e+=a,a=0)),m=p.height,m&&b+f>m&&(b=m-f,0>b&&(f+=b,b=0)),G.qtMode&&(0<a&&e--,0<b&&f--),L.Cn(n,1,1),n.clearRect(a,b,e,f),n.drawImage(p,a,b,e,f,a,b,e,f),L.Cn(n,g,d)))},dm:function(a,b){a&&this.Mx(a.x,a.y,a.width,a.height,b)},Ow:function(a,b,e,f,c,g){var d,h,m,p,n,q,l,t,v,y,r,w,B;if(0<e&&0<f)try{d=this.kj,h=this.bm(),m=d.Ws(),p=this.vI(),n=this.wI,q=c,l=g,t=e,v=f,y=D.Ln(m),r=D.Mn(m),a=k(a*y),b=k(b*r),e=x(e*y),f=x(f*r),q=k(q*y),l=k(l*r),t=x(t*y),v=x(v*r),w=n.width,B=n.height,w&&a+e>w&&(a=w-e,0>a&&(e+=a,a=0)),B&&b+f>B&&(b=B-f,0>b&&(f+=b,b=0)),w&&q+t>w&&(q=w-t,0>q&&(t+=q,q=0)),B&&l+v>B&&(l=B-v,0>l&&(v+=l,l=0)),L.Cn(h,1,1),L.Cn(p,1,1),h.clearRect(q,l,t,v),h.drawImage(n,a,b,e,f,q,l,t,v),p.clearRect(q,l,t,v),p.drawImage(m,q,l,t,v,q,l,t,v),L.Cn(h,y,r),L.Cn(p,y,r)}catch($a){}},im:function(a,b,e,f){var d,k,h,m,n,q,l,t,v,x,y,r;if(e||(e=this.bm()),d=!1,k=this.kj,h=c(-1,-1,-1,-1),m=k.Hx,a&&(h=k.options.allowCellOverflow?c(a.row,0,a.rowCount,k.getColumnCount()):c(a.row,a.col,a.rowCount,a.colCount),!m)){if(0<=h.col){q=h.col;l=h.col+h.colCount-1;t=k.getRowCount(1);a=k.zl(1);for(v=0;v<t;v++)(n=a.find(v,h.col))&&(q=p(n.col,q)),(n=a.find(v,h.col+h.colCount-1))&&(l=g(n.col+n.colCount-1,l));h.col=q;h.colCount=l-q+1}if(0<=h.row){q=h.row;l=h.row+h.rowCount-1;t=k.getColumnCount(2);a=k.zl(2);for(v=0;v<t;v++)(n=a.find(h.row,v))&&(q=p(n.row,q)),(n=a.find(h.row+h.rowCount-1,v))&&(l=g(n.row+n.rowCount-1,l));h.row=q;h.rowCount=l-q+1}}if(x=k.cm(h),y=x.width,r=x.height,0<=y||0<=r){if(x.x-=9,x.y-=9,x.width+=18,x.height+=30,b&&(x=x.getIntersectRect(b),!x))return;b=k.am();0<r&&!m&&(k.$l=!0,this.jp(e,new w(b.x,g(b.nt,x.y),b.Br,x.height),f));0<y&&!m&&(k.$l=!0,this.jp(e,new w(g(b.kt,x.x),b.y,x.width,b.Cr),f));-1!==h.row||-1!==h.col||m||(k.$l=!0,this.jp(e,b.em(),f));0<y&&0<r&&this.jp(e,x);d=!0}return d},VF:function(a,b,e,f,c){var g,d=this.kj;0>=d.Xq&&(g=this.bm(),g&&(c||(d.$l=!0),this.jp(g,new w(a,b,e,f))))},repaint:function(a){var b,e=this.kj;0<e.Xq||(b=this.bm(),b&&(e.$l=!0,this.jp(b,a)))},jp:function(a,b,e){a&&0>=this.kj.Xq&&(e||this._l(a,b),this.Pw(a,b))},_l:function(a,b,e){var f,c,g,d=this.kj;a&&0>=d.Xq&&(f=this.vI(),c=f?f:a,g=d.Dr(),b||(b=g),b&&b.round(),e&&e.round(),d.$l&&(d.$l=!1,f&&(f.clearRect(b.x,b.y,b.width,b.height),e&&f.clearRect(e.x,e.y,e.width,e.height),L.Dn(f,-g.x,-g.y)),this.AI(c,b),e&&this.AI(c,e),f&&L.Dn(f,g.x,g.y)),f&&(this.dm(b),e&&this.dm(e)))},Pw:function(a,b){var e,f,c,g,d,k=this.kj,h=k.CH;if(a&&!(0<k.Xq)&&(b&&b.round(),e=k.am(),!k.fI)){if(h){f=e.em();this.dm(f);for(g=0;2>=g;g++)(f=e.fm(g))&&0!==f.width&&0!==f.height&&this.dm(f);for(d=0;2>=d;d++)(f=e.gm(d))&&0!==f.width&&0!==f.height&&this.dm(f)}for(g=0;2>=g;g++)for(d=0;2>=d;d++)(f=e.Ft(g,d))&&0!==f.width&&0!==f.height&&(c=b,!h||1===g&&1===d||(this.dm(f),c=f),c&&!f.intersectRect(c)||this.BI(a,g,d,c));this.CI(a);ka.ao(k,"paintAdornment",{ctx:a,clipRect:b})}},dD:function(a,b){var e=this.kj,f=e.parent,f=f?f.options:{},c=J(e),e=C.Om(e,c);f.backgroundImage&&(e="transparent");a.save();a.fillStyle=e;a.fillRect(b.x,b.y,b.width,b.height);a.restore()},DI:function(a,b,e){var f,c,g,d,k;k=this.kj.am();for(c=0;2>=c;c++)(f=k.gm(c))&&(b?(g=f.getIntersectRect(b),g&&this.EI(a,c,g,e)):this.EI(a,c,f,e));for(f=0;2>=f;f++)for((c=k.fm(f))&&(b?(g=c.getIntersectRect(b),g&&this.FI(a,f,g,e)):this.FI(a,f,c,e)),c=0;2>=c;c++)(d=k.Ft(f,c))&&(b?(g=d.getIntersectRect(b),g&&this.GI(a,f,c,g,e)):this.GI(a,f,c,d,e));(k=k.em())&&(b?(g=k.getIntersectRect(b),g&&this.HI(a,g,e)):this.HI(a,k,e))},II:function(a){var b,e,f,c,g=this.kj,d=g.am(),k=d.zr,h=d.Ar,m=d.lt,p=d.ot,n=d.width,q=d.height,l=d.qt,d=d.pt,t=g.Gr(1);0<t.length?(b=t[t.length-1],e=b.y+b.height,e<p&&(a.fillStyle=this.zI(!1),a.fillRect(k,e,n,p-e))):0===t.length&&(a.fillStyle=this.zI(!1),a.fillRect(k,l,n,p-l));b=g.Hr(1);0<b.length?(f=b[b.length-1],c=f.x+f.width,c<m&&(a.fillStyle=this.zI(!1),a.fillRect(c,h,m-c,q))):0===b.length&&(a.fillStyle=this.zI(!1),a.fillRect(d,h,m-d,q))},JI:function(a,b){var e=this.kj.options,f=e.borderWidth;0<f&&(a.strokeStyle=e.borderColor,a.lineWidth=f,a.strokeRect(b.x+f/2,b.y+f/2,g(0,b.width-f),g(0,b.height-f)))},AI:function(a,b){var e,f=this.kj;!a||0<f.Xq||(A.qn(f,0,0,f.getRowCount()-1,f.getColumnCount()-1),e=f.Dr(),a.save(),b?a.rect(b.x,b.y,b.width,b.height):a.rect(e.x,e.y,e.width,e.height),a.clip(),a.beginPath(),this.dD(a,e),ka.ao(f,"paint",{ctx:a,clipRect:b}),this.DI(a,b,!1),this.II(a),this.KI(a),this.JI(a,e),A.Nm(),a.beginPath(),a.restore())},LI:function(a,b){var e,f=this.kj;a&&(A.qn(f,0,0,f.getRowCount()-1,f.getColumnCount()-1),e=f.Dr(),a.save(),b?a.rect(b.x,b.y,b.width,b.height):a.rect(e.x,e.y,e.width,e.height),a.clip(),a.beginPath(),this.dD(a,e),this.DI(a,b,!0),A.Nm(),a.beginPath(),a.restore())},CI:function(a){var b,e,f,c,d;b=this.kj;e=b.mm;d=b.yt;if(e&&e.isResizing&&d&&(f=d.resizeInfo)){if(d=b.am(),a.save(),"black"!==a.strokeStyle&&(a.strokeStyle="black"),1!==a.lineWidth&&(a.lineWidth=1),a.beginPath(),"sizeRow"===f.action||"sizeHiddenRow"===f.action)for(e=g(0,f.startY-.5),f=f.movingY-.5,c=d.x+d.width,b=d.x;b<c;b+=2)a.moveTo(b,e),a.lineTo(b+1,e),a.moveTo(b,f),a.lineTo(b+1,f);else for(b=g(0,f.startX-.5),f=f.movingX-.5,c=d.y+d.height,e=d.y;e<c;e+=2)a.moveTo(b,e),a.lineTo(b,e+1),a.moveTo(f,e),a.lineTo(f,e+1);a.stroke();a.beginPath();a.restore()}},HI:function(a,b,e){var f,c,g,d,k,h=this.kj;a.beginPath();f=h.am().em();c=f.x;g=f.y;d=f.width;f=f.height;k=h.getActualStyle(-1,-1,0);this.SI(a,[{data:M,row:-1,col:-1,x:c,y:g,width:d,height:f,style:k.clone()}],0,e);e=new E(h,0,0,0);e.jF(0,0,c,g,d,f);e.paint(a,b)},KI:function(a){var b,e,f,c,g,d,k,h,m,p=this.kj,n=p.frozenRowCount(),q=p.frozenColumnCount(),l=p.frozenTrailingRowCount(),t=p.frozenTrailingColumnCount();(n||q||l||t)&&(b=p.am(),e=b.pt,f=b.qt,c=b.lt,g=b.ot,d=b.x,k=b.y,h=b.width,m=b.height,a.save(),a.strokeStyle=C.Om(p,p.options.frozenlineColor),a.lineWidth=1,a.beginPath(),q&&(a.moveTo(e-.5,k),a.lineTo(e-.5,k+m)),n&&(a.moveTo(d,f-.5),a.lineTo(d+h,f-.5)),t&&(a.moveTo(c-.5,k),a.lineTo(c-.5,k+m)),l&&(a.moveTo(d,g-.5),a.lineTo(d+h,g-.5)),a.stroke(),a.restore())},EI:function(a,b,e,f){this.TI(a,-1,b,1,e,f)},FI:function(a,b,e,f){this.TI(a,b,-1,2,e,f)},GI:function(a,b,e,f,c){this.TI(a,b,e,3,f,c);(c=this.kj.at)&&c.UI(a,f,b,e)},BI:function(a,b,e,f){var c,g,k,m,p,n,q,l,t,v,x,y,r,w,B,z,E,A,D,M=this.kj;if(M.addSelection&&d(M)&&(c=M.mm,g=M.Uq,k=g.length,f=this.VI(b,e,f),f)&&(m=h.Lm("gc-selection"),p=parseInt(m.zIndex),2007<p&&this.WI(a,b,e,f),n=this.XI(b,e,g,f),q=n.length,!(0>=q))){g=!1;for(t=0;t<q;t++)if(l=n[t],!f.containsRect(l)){g=!0;break}if(a.save(),g&&(a.rect(f.x,f.y,f.width,f.height),a.clip()),a.beginPath(),0<q)for(v=C.Om(M,M.getSelectionBackColor()),a.fillStyle!==v&&(a.fillStyle=v),x=v=0,2007<p&&(v=1,x=-3),t=0;t<q;t++)l=n[t],a.fillRect(l.x+v,l.y+v,l.width+x,l.height+x);(n=M.getCellRect(M.Jl,M.Kl,b,e))&&n.intersectRect(f)&&(y=n.x,r=n.y,w=n.width,B=n.height,v=1,x=-2,2007<p&&(v=0,x=0),this.Mx(y+v,r+v,w+x,B+x),1<k&&(a.strokeStyle="black",a.lineWidth=1,a.strokeRect(y+1.5,r+1.5,w-4,B-4)));a.restore();a.save();g&&(this.YI(f,M,b,e,p),a.rect(f.x,f.y,f.width,f.height),a.clip());a.beginPath();1===k&&(c&&c.BG&&c.ZI&&c.ZI()&&!c.$I&&(z=c._I&&c._I(),E=M.getRangeRect(b,e,z),A=E.width,D=E.height,E&&0<A&&0<D&&(a.fillStyle=m&&m.color,a.fillRect(E.x,E.y,A,D))),l&&0<=l.width&&0<=l.height&&this.aJ(a,b,e,l,f));a.beginPath();a.restore()}},YI:function(a,b,e,f,c){var g,d,k,h,m,p,n,q,l,t,v,x=b.frozenTrailingRowCount(),y=b.frozenTrailingColumnCount();e=b.getSelections();f=b.am();var x=b.getRowCount()-x-1,y=b.getColumnCount()-y-1,r=b.Hr(1,3),w=b.Gr(1,3);1===e.length&&2007<c&&(g=b.frozenRowCount(),d=b.frozenColumnCount(),k=e[0],h=k.row,m=k.col,p=k.rowCount,n=k.colCount,0<g&&(h===g?(a.y-=2,a.height+=2):h+p===g&&g===b.lq&&(a.height+=2)),0<d&&(m===d?(a.x-=2,a.width+=2):m+n===d&&d===b.qq&&(a.width+=2)),0===h&&0===m&&(a.x-=2,a.y-=2,a.width+=2,a.height+=2),-1===h&&(h=0,p=b.getRowCount()),-1===m&&(m=0,n=b.getColumnCount()),q=!1,l=!1,t=w.findRow(x),v=r.findCol(y),t&&t.y+t.height<f.qt+f.jr&&(q=!0),v&&v.x+v.width<f.pt+f.er&&(l=!0),q&&h+p-1===x&&(a.height+=2),l&&m+n-1===y&&(a.width+=2))},WI:function(a,b,e,f){var c,g,d,k,h,m,p,n,q,l,t,v,x,y,r,w,B=this.kj;p=B.Uq;var z=B.am(),E=z.kt;w=z.nt;z=p.length;if(!(0>=z)){if(c=p[0],g=c.row,d=c.rowCount,k=c.col,h=c.colCount,-1===g&&(g=0),-1===k&&(k=0),-1===d&&(d=B.getRowCount()),-1===h&&(h=B.getColumnCount()),a.save(),a.beginPath(),a.lineWidth=2,a.strokeStyle=B.getSelectionBorderColor(),m=f.x,p=f.y,n=f.width,f=f.height,q=B.frozenRowCount(),1!==z||0!==q||B.lq<=g||B.lq>=g+d)for(e=this.bJ(e),c=0,d=e.length;c<d;c++)l=e[c],v=t=0,x=l.x,y=l.x+l.width,l.x<m+n&&m<l.x+l.width&&(1===z&&(0===q&&B.lq===g||0<q&&0===g)&&(t=-1,v=1),l.x<m&&(t=0,x=m),l.x+l.width>m+n&&(v=0,y=m+n),a.moveTo(x+t-1,w-1),a.lineTo(y+v,w-1),a.stroke());if(r=B.frozenColumnCount(),1!==z||0!==r||B.qq<=k||B.qq>=k+h)for(b=this.cJ(b),g=0,h=b.length;g<h;g++)q=b[g],m=w=0,n=q.y,e=q.y+q.height,q.y<p+f&&p<q.y+q.height&&(1===z&&(0===r&&B.qq===k||0<r&&0===k)&&(w=-1,m=1),q.y<p&&(w=0,n=p),q.y+q.height>p+f&&(m=0,e=p+f),a.moveTo(E-1,n+w-1),a.lineTo(E-1,e+m),a.stroke());a.beginPath();a.restore()}},bJ:function(a){var b,e,f,c,g,d,k,h,m,p,n=this.kj,q=n.Uq,l=q.length,t=n.Hr(a),v=[];for(a=0;a<l;a++)(b=q[a])&&(e=b.col,-1===e?(f=n.Hr(0,3),c=n.Hr(1,3),g=n.Hr(2,3),d=-1,k=-1,0<f.length&&(d=f[0].x,k=f[f.length-1].x+f[f.length-1].width-d,v.push(new w(d,-1,k,-1))),0<c.length&&(d=c[0].x,k=c[c.length-1].x+c[c.length-1].width-d,v.push(new w(d,-1,k,-1))),0<g.length&&(d=g[0].x,k=g[g.length-1].x+g[g.length-1].width-d,v.push(new w(d,-1,k,-1)))):t&&(h=t.findCol(e),m=t.findCol(e+b.colCount-1),(h||m)&&(p=new w(-1,-1,-1,-1),h?p.x=h.x:p.x=t[0].x,m?p.width=m.x+m.width-p.x:p.width=t[t.length-1].x+t[t.length-1].width-p.x,v.push(p))));return v},cJ:function(a){var b,e,f,c,g,d,k,h,m,p,n=this.kj,q=n.Uq,l=q.length,t=n.Gr(a),v=[];for(a=0;a<l;a++)(b=q[a])&&(e=b.row,-1===e?(f=n.Gr(0,3),c=n.Gr(1,3),g=n.Gr(2,3),d=-1,k=-1,0<f.length&&(d=f[0].y,k=f[f.length-1].y+f[f.length-1].height-d,v.push(new w(-1,d,-1,k))),0<c.length&&(d=c[0].y,k=c[c.length-1].y+c[c.length-1].height-d,v.push(new w(-1,d,-1,k))),0<g.length&&(d=g[0].y,k=g[g.length-1].y+g[g.length-1].height-d,v.push(new w(-1,d,-1,k)))):t&&(h=t.findRow(e),m=t.findRow(e+b.rowCount-1),(h||m)&&(p=new w(-1,-1,-1,-1),h?p.y=h.y:p.y=t[0].y,m?p.height=m.y+m.height-p.y:p.height=t[t.length-1].y+t[t.length-1].height-p.y,v.push(p))));return v},aJ:function(a,b,e,f,c){var g,d,k=this.kj,h=k.parent,m=k.mm,p=f.x,n=f.y,q=f.width,l=f.height;0<=q&&0<=l&&(!c||f.intersect(c.x-1,c.y-1,c.width+2,c.height+2))&&(a.save(),c&&!c.containsRect(f)&&(a.rect(c.x,c.y,c.width,c.height),a.clip()),a.beginPath(),a.strokeStyle=C.Om(k,k.getSelectionBorderColor()),a.lineWidth=2,0<q&&0<l?(m&&m.BG?(g=m.dJ,2===g?(a.moveTo(p+.5,n-.5),a.lineTo(p+q-1,n-.5)):3===g?(a.moveTo(p+.5,n+l-.5),a.lineTo(p+q-1,n+l-.5)):0===g?(a.moveTo(p-.5,n+.5),a.lineTo(p-.5,n+l-1)):1===g&&(a.moveTo(p+q-.5,n+.5),a.lineTo(p+q-.5,n+l-1))):(d=h&&h.Vv,2007<d?a.rect(p-1,n-1,q+1,l+1):a.rect(p-.5,n-.5,q,l)),a.stroke(),h&&h.options.allowUserDragFill&&this.eJ&&this.eJ(a,b,e,f,c)):0!==q&&0!==l||a.strokeRect(p-1,n-1,q+1,l+1),a.beginPath(),a.restore())},VI:function(a,b,e){var f,c,g,d,k=this.kj,h=k.am(),m=h.Ft(a,b);return 1===b&&(f=k.Hr(b),c=0<f.length?f[f.length-1]:M,c&&(m.width=p(m.width,c.x+c.width-h.pt))),1===a&&(g=k.Gr(a),d=0<g.length?g[g.length-1]:M,d&&(m.height=p(m.height,d.y+d.height-h.qt))),e?e.getIntersect(m.x,m.y,m.width,m.height):m},XI:function(a,b,e,f){var c,g,d,k,h=this.kj,m=h.zl(),p=e.length,n=[];for(k=0;k<p;k++)(g=e[k])&&(c=m.find(g.row,g.col),c&&c.containsRange(g)&&(g=c),d=h.getRangeRect(a,b,g),d&&d.x<=f.x+f.width&&d.y<=f.y+f.height&&f.x<=d.x+d.width&&f.y<=d.y+d.height&&n.push(d));return n},fJ:function(a,b,e){var c,g,d,k,h,m,p,n;if(a.save(),c=b.x,g=b.y,d=b.width,b=b.height,k=[6,6],a.setLineDash&&!G.qtMode)a.beginPath(),a.lineWidth=2,a.strokeStyle=e,a.setLineDash(k),a.rect(c,g,d-1,b-1);else{a.beginPath();a.lineWidth=2;a.strokeStyle=e;e=k[0];k=k[1];h=c;m=g;for(p=d;0<p;)if(p>=e+k)a.moveTo(h,m),a.lineTo(h+e,m),h=h+e+k,p=p-e-k;else{if(p>=e){a.moveTo(h,m);a.lineTo(h+e,m);p=p-e-k;break}if(0<p){a.moveTo(h,m);a.lineTo(h+p,m);p=p-e-k;break}}h=c+d-1;m=g+1;n=b-1;for(0>p&&(p=f(p),p>k&&(a.moveTo(h,m-2),a.lineTo(h,m+(p-k))),m+=p,n-=p);0<n;)n>=e+k?(a.moveTo(h,m),a.lineTo(h,m+e),m=m+e+k,n=n-e-k):n>=e?(a.moveTo(h,m),a.lineTo(h,m+e),n=n-e-k):0<n&&(a.moveTo(h,m),a.lineTo(h,m+n),n=n-e-k);h=c+d-2;m=g+b-1;p=d-1;for(0>n&&(n=f(n),n>k&&(a.moveTo(h+2,m),a.lineTo(h-(n-k),m)),h-=n,p-=n);0<p;)if(p>=e+k)a.moveTo(h,m),a.lineTo(h-e,m),h=h-e-k,p=p-e-k;else{if(p>=e){a.moveTo(h,m);a.lineTo(h-e,m);p=p-e-k;break}if(0<p){a.moveTo(h,m);a.lineTo(h-p,m);p=p-e-k;break}}h=c;m=g+b-2;n=b-1;for(0>p&&(p=f(p),p>k&&(a.moveTo(h,m+2),a.lineTo(h,m-(p-k))),m-=p,n-=p);0<n;)n>=e+k?(a.moveTo(h,m),a.lineTo(h,m-e),m=m-e-k,n=n-e-k):n>=e?(a.moveTo(h,m),m-e===g?a.lineTo(h,m-e-1):a.lineTo(h,m-e),n=n-e-k):0<n&&(m>g&&(a.moveTo(h,m),a.lineTo(h,m-n)),n=n-e-k)}a.stroke();a.beginPath();a.restore()},TI:function(a,b,e,f,c,g){var d,k,h,p,n,q,l,t,v,x,y,r,w,B,z,C,A,D,u,F,G,N,P,S,V,W,X,H,T,I,Z,K;if(m(f)&&(f=3),d=this.kj,k=d.parent,h=k&&k.options.resizeZeroIndicator,p=d.Gr(b,f),n=d.Hr(e,f),q=p.length,l=n.length,!(0>q||0>l)){t=d.Ir(b,e,f);v=0<t.length;r=y=x=M;w=d.ss;u=D=A=C=0;N=new E(d,b,e,f);P=[];S=[];V=3===f&&d.options.allowCellOverflow;W=[];k=!g&&3===f&&k&&k.options.highlightInvalidData;a.save();a.beginPath();c&&(a.rect(c.x,c.y,c.width,c.height),a.clip());X=[];T=H=-1;for(I=0;I<q;I++)for(x=p[I],Z=0;Z<l;Z++)y=n[Z],(r=v&&t.findCell(x.row,y.col))?(B=r.row,z=r.col,C=r.x,A=r.y,D=r.width,u=r.height):(B=x.row,z=y.col,C=y.x,A=x.y,D=y.width,u=x.height),1===h&&(-1===b&&d.getColumnVisible(z)&&0===d.$r(z)&&((0>T||T!==z-1)&&X.push({x1:C,y1:A,x2:C,y2:A+u,horizontal:!1}),T=z),-1===e&&d.getRowVisible(B)&&0===d.Yr(B)&&((0>H||H!==B-1)&&X.push({x1:C,y1:A,x2:C+D,y2:A,horizontal:!0}),H=B)),c&&(C+D<=c.x||C>=c.x+c.width||A+u<=c.y||A>=c.y+c.height)||0!==D&&0!==u&&(r&&Y.Bb(P,r)||(F=w.ge(B,z,f),G=w.Ym(B,z,f),k&&d.isValid&&!d.isValid(B,z,F)&&W.push({x:C,y:A,width:D,height:u}),N.jF(B,z,C,A,D,u,G,r),S.push({data:F,row:B,col:z,x:C,y:A,width:D,height:u,style:G,cellLayout:r}),r&&P.push(r)));0<S.length&&(V&&(K=w.Sm(b,e,function(){return new O(d,b,e)}),this.hJ(K,S,N)),this.SI(a,S,f,g));ka.ao(d,"paintViewport",{ctx:a,rowViewportIndex:b,colViewportIndex:e,sheetArea:f,clipRect:c,isPrinting:g});N.paint(a,c);0<X.length&&this.iJ(a,X,1,3);0<W.length&&this.jJ(a,W);a.restore()}},iJ:function(a,b,e,f){var c,g,d,k,h,m,p;if(0!==b.length)for(c=0,g=b.length;c<g;c++)d=b[c],k=d.x1,h=d.y1,m=d.x2,p=d.y2,d=d.horizontal,a.beginPath(),a.save(),a.lineWidth=e,a.strokeStyle=this.kJ(a,d,k,h,m,p),a.fillStyle=this.lJ(a,d,k,h,m,p),d?(a.fillRect(k,h+-3,m-k-1,f+2*e),L.Dn(a,.5,.5),a.moveTo(k+-1,h+-3),a.lineTo(m+-2,p+-3),a.moveTo(k+-1,h+1),a.lineTo(m+-2,p+1)):(a.fillRect(k+-3,h+0,f+2*e,p-h-1),L.Dn(a,.5,.5),a.moveTo(k+-3,h+0),a.lineTo(m+-3,p+-1),a.moveTo(k+1,h+0),a.lineTo(m+1,p+-1)),L.Dn(a,-.5,-.5),a.stroke(),a.restore()},lJ:function(a,b,e,f,c,g){var d,k=h.Km(0,"gc-"+(b?"rowHeader":"columnHeader")+"-normal"),m=k&&k.backgroundColor,k=k&&k.backgroundImage;if(!b&&k&&-1!==k.indexOf("linear-gradient"))for(b=F.wl(k),d=a.createLinearGradient(e,f,c,g),a=0,e=b.length;a<e;a++)f=b[a],d.addColorStop(f.point,f.color);else m&&(d=m);return d},kJ:function(a,b,e,f,c,g){a=a.createLinearGradient(e,f,c,g);e=h.Km(0,"gc-"+(b?"rowHeader":"columnHeader")+"-normal");return b?(a.addColorStop(0,e.borderTopColor),a.addColorStop(1,e.borderBottomColor)):(a.addColorStop(0,e.borderLeftColor),a.addColorStop(1,e.borderRightColor)),a},jJ:function(a,b){var e,f,c,g,d,k,h,m,p,n;if(b)for(e=b.length,f=0;f<e;f++)c=b[f],g=c.x-4,d=c.y-4,k=c.width+8,h=c.height+8,c=k/2*.5522848,m=h/2*.5522848,p=g+k,n=d+h,k=g+k/2,h=d+h/2,a.save(),a.lineWidth=2,a.strokeStyle="red",a.beginPath(),a.moveTo(g,h),a.bezierCurveTo(g,h-m,k-c,d,k,d),a.bezierCurveTo(k+c,d,p,h-m,p,h),a.bezierCurveTo(p,h+m,k+c,n,k,n),a.bezierCurveTo(k-c,n,g,h+m,g,h),a.closePath(),a.stroke(),a.restore()},SI:function(a,b,e,f){var c,d,k,h,m,p,n,q,t,v,x,y,r,w,z,E,C,A,D,u,F,G,N,P,S,V,W,X,H,Y,I=this.kj,T=3===e,Z=I._zoomFactor,K=B(this.Bl(),Z);d=I.getDefaultStyle(e);var L=I.Al(e);m=I.conditionalFormats;var O=J(I);q=I.vu();a.save();a.beginPath();a.fillStyle=d&&d.foreColor||"black";a.font=K.font;a.textAlign=T?"right":"center";d=b.length;A=!!l(53);D=[];u={sheet:I,row:-1,col:-1,fontInfo:M,lineHeight:-1,imageLoader:q,conditionalFormats:m,sheetArea:e,parentBackColor:O};for(c=0;c<d;c++){if(k=b[c],m=k.data,p=k.row,n=k.col,q=k.x,t=k.y,v=k.width,x=k.height,y=k.style,r=k.cellOverflowLayout,z=y.font?B(y.font,Z):K,F=!y.wordWrap&&y.shrinkToFit,F&&(G=I.getText(p,n,e),N=y.watermark,N&&!G&&(G=N),G))for(P={value:!1},S=0;3>S&&!1===P.value&&(V=I.dp(G,z.font),W=g(0,v-4),1!==y.hAlign&&y.textIndent&&(W=g(0,W-8*y.textIndent)),W<V);S++)z=B(z.font,W/V,P,!0);y.font=z.font;0<v&&0<x&&(h=y.cellType||L,q--,t--,v++,x++,T?(C=A&&I.getSparkline(p,n),u.sparkline=C):(w=f?0:this.mJ(p,n,e),u.visualState=w),E=I.fp(z.font,F),u.lineHeight=E,u.row=p,u.col=n,u.fontInfo=z,u.cellOverflowLayout=r,h.paint(a,m,q,t,v,x,y,u),r&&!u.showBarIconOnly&&(X=new ja.Rect(q,t,v,x),H=h.f5?h.f5(X,y):X,D.push({cellType:h,data:m,x:H.x,y:H.y,width:H.width,height:H.height,style:y,options:{sheet:I,row:p,col:n,fontInfo:z,lineHeight:E,cellOverflowLayout:r,parentBackColor:O}})))}if(d=D.length,0<d)for(k=I.isEditing(),p=I.Jl,n=I.Kl,w=0;w<d;w++)u=D[w],h=u.cellType,m=u.data,q=u.x,t=u.y,v=u.width,x=u.height,y=u.style,u=u.options,k&&u.row===p&&u.col===n||(Y=l(53),Y&&m instanceof Y.SparklineExValue||h.paintValue&&h.paintValue(a,m,q,t,v,x,y,u));a.restore();c=0;for(d=b.length;c<d;c++)k=b[c],ka.ao(I,"paintCell",{ctx:a,sheetArea:e,cell:k,isPrinting:f})},mJ:function(a,b,e){var f=this.kj,c=0;return d(f)&&(3===e||m(e)?!f.isEditing()&&f.wt(a,b)?c=3:f.vp(a,b,e)&&(c=2):(f.vp(a,b,e)&&(c=1,f.wp(a,b,e)&&(c=2)),f.xt(a,b,e)&&(c=4))),c},hJ:function(a,b,e){var f,c,g,d,k,h,m,p,n,q,l,t,v,x,y,r,B,z,E,C,A,D,u=this.kj,M=u.ss,F=b.length,G={},N=[];for(z=0;z<F;z++){if(f=b[z],d=f.row,k=f.col,h=f.x,m=f.y,n=f.height,x=a.nJ(d),y=x.headingOverflowlayout,r=x.trailingOverflowLayout,!G[d]){B={};for(E=0;E<x.length;E++)B[x[E].column]=!1;y&&(B[y.column]=!1);r&&(B[r.column]=!1);G[d]=B}E=G[d];(B=x.find(k))?(B.column===k?(p=f.width,q=B.backgroundWidth,l=0>B.backgroundLeftWidth?h:0>B.backgroundRightWidth?h+p-q:h+p/2-B.backgroundLeftWidth,f.cellOverflowLayout=B,E[B.column]&&N.push(z)):E[B.column]||(k=B.column,g=M.Ym(d,k),c=u.getValue(d,k),p=B.columnWidth,q=B.backgroundWidth,C=u.getCellRect(d,B.column),l=0>B.backgroundLeftWidth?C.x:0>B.backgroundRightWidth?C.x+C.width-q:C.x+C.width/2-B.backgroundLeftWidth,v={data:c,row:d,col:k,x:C.x,y:m,width:p,height:n,style:g,cellOverflowLayout:B},b.push(v)),B.layout=new w(l,m,q,n),e.gF(d,B),E[B.column]=!0):y&&!E[y.column]&&y.contains(k)?(k=y.column,g=M.Ym(d,k),c=u.getValue(d,k),p=y.columnWidth,q=y.backgroundWidth,A=u.getCellRect(d,y.endColumn),l=A.x+A.width-q,v={data:c,row:d,col:k,x:l,y:m,width:p,height:n,style:g,cellOverflowLayout:y},b.push(v),y.layout=new w(l,m,q,n),e.gF(d,y),E[y.column]=!0):r&&!E[r.column]&&r.contains(k)&&(k=r.column,g=M.Ym(d,k),c=u.getValue(d,k),p=r.columnWidth,q=r.backgroundWidth,D=u.getCellRect(d,r.startColumn),l=D.x,t=D.x+q-p,v={data:c,row:d,col:k,x:t,y:m,width:p,height:n,style:g,cellOverflowLayout:r},b.push(v),r.layout=new w(l,m,q,n),e.gF(d,r),E[r.column]=!0)}if(0<N.length)for(a=N.length-1;0<=a;a--)b.splice(N[a],1)}};u.oJ=R;P=2;O.prototype={constructor:O,nJ:function(a){var b,e,f,c,g,d,k,h,p,n,l,v,x,y,r,w;if(e=this.rJ[a])return e;if(b=this.kj,e=b.ss,f=this.pJ,c=f.length,v=new t,0<c){v.headingOverflowlayout=this.sJ(a);y=f[0].col;r=f[c-1].col;for(w=0;w<c;w++)g=f[w],0>=g.width||(d=g.col,h=e.ge(a,d),k=e.Ym(a,d),m(h)&&!k.watermark||k.shrinkToFit||k.wordWrap||(p=e._m(d),l=A.vn(b,k,h),n=k.hAlign,3===n&&(n=q(n,h,k.formatter)),0===n?(x=this.tJ({data:h,style:k,width:p,text:l},a,d,r),x&&v.push(x)):2===n?(x=this.uJ({data:h,style:k,width:p,text:l},a,d,y),x&&v.push(x)):1===n&&(x=this.vJ({data:h,style:k,width:p,text:l},a,d,y,r),x&&v.push(x))));v.trailingOverflowLayout=this.wJ(a)}return this.rJ[a]=v,v},tJ:function(a,b,e,f){return K(this.kj,this.qJ,this.Rq,this.yI,a,b,e,f,!0)},uJ:function(a,b,e,f){return K(this.kj,this.qJ,this.Rq,this.yI,a,b,e,f)},vJ:function(a,b,e,f,c){var g,d,k,h,p,n;h=this.kj;var q=h.ss,l=this.qJ,t=a.width;n=a.width;var v=a.data;p=a.style;a=a.text;var x=p.watermark;if(l.findCell(b,e)||(g=p.cellType||this.Rq,!g.allowOverflow||!a&&!x)||(!a&&x&&(a=x),d=Q(a,p,this.yI,h._zoomFactor),d<=n))return M;h=e;p=n/2;for(g=e-1;g>=f&&!l.findCell(b,g)&&(v=q.ge(b,g),m(v))&&(k=q.Ym(b,g),!k.watermark)&&(h=g,p+=q._m(g),!(d/2<=p));g--);f=e;n/=2;for(g=e+1;g<=c&&!l.findCell(b,g)&&(v=q.ge(b,g),m(v))&&(f=g,n+=q._m(g),!(d/2<=n));g++);return h===f?M:new y(e,h,f,d,t,p+n,p,n)},sJ:function(a){var b,e,f,c,g,d,k,h,p,n=this.kj,l=n.ss;p=this.pJ;var t=p[0].col,v=p[p.length-1].col,x=n.zl();for(p=1;100>p;p++){if((g=t-p,0>g)||x.find(a,g))return M;if(e=l.ge(a,g),f=l._m(g),0<f&&!m(e))return b=l.Ym(a,g),c=b.hAlign,3===c&&(c=q(c,e)),k=A.vn(n,b,e),h={data:e,style:b,width:f,text:k},0===c?d=this.tJ(h,a,g,v):1===c&&(d=this.vJ(h,a,g,t,v)),d&&d.endColumn>=t?d:M}},wJ:function(a){var b,e,f,c,g,d,k,h,p,n=this.kj,l=n.ss;p=this.pJ;var t=p[0].col,v=p[p.length-1].col,x=n.zl(),y=n.getColumnCount();for(p=1;100>p;p++){if((g=v+p,g>=y)||x.find(a,g))return M;if(e=l.ge(a,g),f=l._m(g),0<f&&!m(e))return b=l.Ym(a,g),c=b.hAlign,3===c&&(c=q(c,e)),k=A.vn(n,b,e),h={data:e,style:b,width:f,text:k},2===c?d=this.uJ(h,a,g,t):1===c&&(d=this.vJ(h,a,g,t,v)),d&&d.startColumn<=v?d:M}}};u.xJ=O;V=z.CellChanged;Z=z.ClipboardChanged;e=z.ValueChanged;b=z.ColumnChanged;v=z.RowChanged;N=z.RangeChanged;S=z.ClipboardPasting;X=z.ClipboardPasted;H.prototype={constructor:H,jx:function(a){return 0===arguments.length?this.zJ:void(this.zJ=a)},BJ:function(a){var b;return 0===arguments.length?this.yJ:void((this.yJ!==a||a)&&(this.yJ=a,b=this.kj,b&&b.$p()))},AJ:function(){function a(){f.BJ(!1)}var f=this,c=f.kj,g=!1;c.Fu(Z+".cutCopyIndicator",function(){f.BJ(!0)});c.Fu(e+".cutCopyIndicator",a);c.Fu(V+".cutCopyIndicator",a);c.Fu(b+".cutCopyIndicator",function(b,e){var f=e.propertyName;"resizable"!==f&&"width"!==f&&"isVisible"!==f&&a()});c.Fu(v+".cutCopyIndicator",function(b,e){var f=e.propertyName;"resizable"!==f&&"height"!==f&&"isVisible"!==f&&a()});c.Fu(N+".cutCopyIndicator",a);c.Fu(S+".cutCopyIndicator",function(){g=f.BJ()});c.Fu(X+".cutCopyIndicator",function(a,b){var e,c=b.cellRange;e=b.sheet.tu();var d=e.n5,k=g;if(c&&d&&e.PA){if(f.jx())for(e=0;e<d.length;e++){if(d[e].intersect(c.row,c.col,c.rowCount,c.colCount)){k=!1;break}}else k=!1;f.BJ(k)}})},UI:function(a,b,e,f){var c,g,d,k,h,p,n,q,l,t,v;if(this.yJ&&(c=this.kj,g=c.yl,d=c.parent,k=d?d.options:{},h=c.tu(),p=h.n5,n=k.cutCopyIndicatorVisible,m(n)&&(n=!0),q=C.Om(c,k.cutCopyIndicatorBorderColor||"blue"),n&&h.PA===c&&p&&(l=c.am(),t=l.Ft(e,f),v=g.XI(e,f,p,b),v&&t))){a.save();a.rect(t.x,t.y,t.width,t.height);a.clip();for(b=0;b<v.length;b++)g.fJ(a,v[b],q);a.beginPath();a.restore()}},rI:function(){this.BJ(!1)},sI:function(){this.BJ(!1)},tI:function(){this.BJ(!1)},uI:function(){this.BJ(!1)},ky:function(){this.BJ(!1)},no:function(){var a=this.kj;a.Gu(V+".cutCopyIndicator");a.Gu(Z+".cutCopyIndicator");a.Gu(e+".cutCopyIndicator");a.Gu(b+".cutCopyIndicator");a.Gu(v+".cutCopyIndicator");a.Gu(N+".cutCopyIndicator");a.Gu(S+".cutCopyIndicator");a.Gu(X+".cutCopyIndicator")}};u.CJ=H;U.exports=u},function(U,u,l){var d,J,R,Q,K,O,H,I,L,F,G;u=l(42);d=l(56).Worksheet;J=l(55).xp;R=l(43);Q=l(26);l=l(44).GC$;K=R.kf;O=R.Im;H=R.Vl;I=Q.j.Fa;L=Q.k.ac;F=Math.max;G=Math.min;u.SelectionPolicy={single:0,range:1,multiRange:2};u.SelectionUnit={cell:0,row:1,column:2};l.extend(d.prototype,{addSelection:function(d,l,A,r){var n,q,z=d,C=l,c=A,m=r;-1!==z&&-1!==C&&(n=this.zl().getSpans(),n&&0<L(n)&&(q=this.su(n,K(d,l,A,r)),z=q.row,C=q.col,c=q.rowCount,m=q.colCount));this.Uq.add(z,C,c,m);this.$p()},setSelection:function(d,l,A,r){this.DJ(d,l,A,r,2)},DJ:function(d,l,A,r,n){var q,z;q=this.getRowCount(void 0);z=this.getColumnCount(void 0);d>=q&&(d=q-1);l>=z&&(l=z-1);q=F(0,d);z=F(0,l);this.Tr();n=2===n?H.Wl(this):1===n;this.Kr(q,z,this.Er(q),this.Fr(z),!n);this.addSelection(d,l,A,r)},getSelections:function(){return this.Uq.toArray()},clearSelection:function(){this.Tr();this.Kr(0,0);d.ao(this,"clearSelection");this.$p()},Tr:function(){this.Uq.clear()},Qs:function(d,l,A){var q,n,w,z,C,c,m,h,a,B,y;c=this.options;m=c.protectionOptions;var t=!1!==m.allowSelectLockedCells;m=!1!==m.allowSelectUnlockedCells;if(!c.isProtected||t&&m)return!0;if(!t&&!m)return!1;if(q=A?A.locked:this.tq(d,l,"locked"),n=0>l,w=0>d,t===q&&(w||n)){z=w?this.getRowCount(void 0):1;d=w?0:d;C=n?this.getColumnCount(void 0):1;l=n?0:l;c=this.Mp();m=c.dataTable;z=d+z-1;C=l+C-1;for(h=d;h<=z;h++)if(B=m[h])for(a=l;a<=C;a++)if(y=B[a],y&&y.style&&t!==y.style.locked)return!1;if(w)for(h=d;h<=z;h++)if(A=c.getStyle(h,-1),A&&t!==A.locked)return!1;if(n)for(a=l;a<=C;a++)if(A=c.getStyle(-1,a),A&&t!==A.locked)return!1}return t===q},selectionPolicy:function(d){var q=this.Uq;return 0===arguments.length?q.pp:(q.pp=d,this)},selectionUnit:function(d){var q=this.Uq;return 0===arguments.length?q.qp:(q.qp=d,this)},getSelectionBackColor:function(){return this.options.selectionBackColor||O.Lm("gc-selection").backgroundColor},getSelectionBorderColor:function(){return this.options.selectionBorderColor||O.Lm("gc-selection").borderTopColor},EJ:function(){var d=this.Uq;0<L(d)&&(this.FJ=d.toJSON(),this.Tr(),this.yl.im())},GJ:function(){var d=this.FJ;d&&this.Uq.fromJSON(d)},Ax:function(d,l,A){var q,n,w;(d=this.HJ(d,l,A,this.Rr||0))&&(q=d.row,n=d.col,w=d.leadingCellCol,this.IJ(q,n)&&(this.Qr=q,this.Rr=w,this.Jr(q,n)))},HJ:function(d,l,A,r){var n,q=this.getRowCount(void 0),z=this.getColumnCount(void 0),C=d,c=l;return 0===C&&!A||0===q||0===z?null:(n=this.JJ(C,r),A||this.KJ(n),C=n.r,c=n.c,0>C&&A&&(c=this.br(c),(0>c||I(c))&&(c=this.br(z)),r=c,n=this.JJ(q,c),C=n.r,c=n.c,c===l&&C<=d)?null:{row:C,col:c,leadingCellCol:r})},Bx:function(d,l,A){var q,n,w;A=this.LJ(d,l,A,this.Rr||0);!A||A.row===d&&A.col===l||(q=A.row,n=A.col,w=A.leadingCellCol,this.IJ(q,n)&&(this.Qr=q,this.Rr=w,this.Jr(q,n)))},LJ:function(d,l,A,r){var n,q=this.getRowCount(void 0),z=this.getColumnCount(void 0),C=d,c=l;if(!(C===q-1&&!A||0===q||0===z||(n=this.MJ(C,r),A||this.KJ(n),C=n.r,c=n.c,C===q&&A&&(c=this.Zq(c),(c>=z||I(c))&&(c=this.Zq(-1)),r=c,n=this.MJ(-1,c),C=n.r,c=n.c,c===l&&C>=d))))return{row:C,col:c,leadingCellCol:r}},Dx:function(){var d,l,A=this.NJ();A&&(d=A.row,l=A.col,this.Qr=d,this.Rr=l,this.Jr(d,l))},NJ:function(){var d,l,A,r,n,w=this.ir(),z=this.dr(),C=z;if(!w&&!C)return null;if(d=this.options,l=d.protectionOptions,A=!1!==l.allowSelectLockedCells,r=!1!==l.allowSelectUnlockedCells,!d.isProtected||A&&r)return{row:w,col:C};if(!A&&!r)return null;for(;null!==w&&0<=w;w=this.gr(w))for(C=z;null!==C&&0<=C;C=this.br(C))if(n=this.tq(w,C,"locked"),A===n)return{row:w,col:C};return null},Cx:function(){var d,l,A=this.OJ();A&&(d=A.row,l=A.col,this.Qr=d,this.Rr=l,this.Jr(d,l))},OJ:function(){var d,l,A,r,n,w=this._q(this.frozenRowCount()-1),z=this.Zq(this.frozenColumnCount()-1),C=z,c=this.ir(),m=this.dr();if(null===w||null===C)return null;if(d=this.options,l=d.protectionOptions,A=!1!==l.allowSelectLockedCells,r=!1!==l.allowSelectUnlockedCells,!d.isProtected||A&&r)return{row:w,col:C};if(!A&&!r)return null;for(;null!==w&&w<=c;w=this._q(w))for(C=z;null!==C&&C<=m;C=this.Zq(C))if(n=this.tq(w,C,"locked"),A===n)return{row:w,col:C};return null},zx:function(d,l,A){var q,n,w;(d=this.iy(d,l,A,this.Qr||0))&&(q=d.row,n=d.col,w=d.leadingCellRow,this.IJ(q,n)&&(this.Qr=w,this.Rr=n,this.Jr(q,n)))},iy:function(d,l,A,r){var n,q,z=this.getRowCount(void 0),C=this.getColumnCount(void 0),c,m=l;if(0===m&&!A||0===z||0===C)return null;n=this.PJ(r,m);q=r;A||this.KJ(n);c=n.r;for(m=n.c;0>m&&A;){if(c=this.gr(c,3,!0),(0>c||I(c))&&(c=this.gr(z,3,!0)),r=c,n=this.PJ(r,C),c=n.r,m=n.c,c===d&&m<l)return null;if(c===d&&m===l){if(r===q)return null;n=this.PJ(r,m);c=n.r;m=n.c}}return{row:c,col:m,leadingCellRow:r}},KJ:function(d){var l,q=!1;0>d.r?d.r=this.ar():d.r>=this.getRowCount(void 0)&&(d.r=this.ir(),q=!0);0>d.c?d.c=this.$q():d.c>=this.getColumnCount(void 0)&&(d.c=this.dr(),q=!0);q&&(l=this.zl().get(d.r,d.c),l.row!==d.r&&(d.r=l.row),l.col!==d.c&&(d.c=l.col))},Fx:function(d,l){for(var q,r,n=this.Uq,w=n.rp,z=-1,C=this.Tq(this.Ix()),c=C.row,m=C.col,C=C.col+C.colCount-1,h=d,a=l;q=this.QJ(h,a),h=q.r,a=q.c,!(a>=m);){if(z===w&&h===d&&a<=l)return;h--;h>=c?a=C+1:(r=this.Tq(this.Ix(3)),z=n.rp,c=r.row,m=r.col,C=r.col+r.colCount-1,h=r.row+r.rowCount-1,a=r.col+r.colCount)}0<=h&&(this.Jr(h,a),this.Qr=h,this.Rr=a)},Gx:function(d,l){for(var q,r,n=this.Uq,w=n.rp,z=-1,C=this.Tq(this.Ix()),c=C.col,m=C.row+C.rowCount-1,C=C.col+C.colCount-1,h=d,a=l;q=this.RJ(h,a),h=q.r,a=q.c,!(a<=C);){if(z===w&&h===d&&a>=l)return;h++;h<=m?a=c-1:(r=this.Tq(this.Ix(4)),z=n.rp,c=r.col,m=r.row+r.rowCount-1,C=r.col+r.colCount-1,h=r.row,a=r.col-1)}0<=h&&(this.Jr(h,a),this.Qr=h,this.Rr=a)},Rs:function(d,l,A){var q,n,w;A=this.hy(d,l,A,this.Qr||0);!A||A.row===d&&A.col===l||(q=A.row,n=A.col,w=A.leadingCellRow,this.IJ(q,n)&&(this.Qr=w,this.Rr=n,this.Jr(q,n)))},hy:function(d,l,A,r){var n,q,z=this.getRowCount(void 0),C=this.getColumnCount(void 0),c,m=l;if(m===C-1&&!A||0===z||0===C)return null;n=this.SJ(r,m);q=r;A||this.KJ(n);c=n.r;for(m=n.c;m===C&&A;){if(c=this._q(c,!0),(c>=z||I(c))&&(c=this._q(-1,!0)),r=c,n=this.SJ(r,-1),c=n.r,m=n.c,c===d&&m>l)return null;if(c===d&&m===l){if(r===q)return null;n=this.SJ(r,m);c=n.r;m=n.c}}return{row:c,col:m,leadingCellRow:r}},PJ:function(d,l){for(var q,r,n,w=l;0<=w&&(q=d,w--,!(0>w))&&(r=this.getSpans(K(q,w,1,1)),r&&0<L(r)&&(n=r[0],w>=n.col&&(w=n.col,q=n.row)),!this.IJ(q,w)););return{r:q,c:w}},QJ:function(d,l){for(var q,r;0<=l&&(l--,!(0>l));){if(q=this.zl().find(d,l)){if(r=this.Ix(),!(r.row<=q.row&&q.row+q.rowCount<=r.row+r.rowCount&&r.col<=q.col&&q.col+q.colCount<=r.col+r.colCount))continue;if(q.row!==d||q.col!==l)continue;l>=q.col&&(l=q.col,d=q.row)}if(this.IJ(d,l))break}return{r:d,c:l}},SJ:function(d,l){for(var q,r,n,w,z=this.getColumnCount(void 0),C=l;C<z&&(q=d,r=this.zl().get(q,C),C+=r.colCount,!(C>=z))&&(n=this.getSpans(K(q,C,1,1)),n&&0<L(n)&&(w=n[0],C>w.col?C=F(C,w.col+w.colCount):q=w.row),!this.IJ(q,C)););return{r:q,c:C}},RJ:function(d,l){for(var q,r,n,w=this.zl(),z=this.getColumnCount(void 0);l<z&&(q=w.get(d,l),l=q.col+q.colCount,!(l>=z));){if(r=w.find(d,l)){if(n=this.Ix(),!(n.row<=r.row&&r.row+r.rowCount<=n.row+n.rowCount&&n.col<=r.col&&r.col+r.colCount<=n.col+n.colCount))continue;if(r.row!==d||r.col!==l)continue;l>r.col?l=F(l,r.col+r.colCount):d=r.row}if(this.IJ(d,l))break}return{r:d,c:l}},IJ:function(d,l){var q,r,n;return!!this.Qs(d,l)&&(q=0<=d&&d<this.getRowCount(void 0)&&0<=l&&l<this.getColumnCount(void 0)&&this.getRowVisible(d)&&this.getColumnVisible(l)&&0<this.Sl(d)&&0<this.Tl(l),r=!!this.Tx,!0===q&&!0===r&&(n=this.tq(d,l,"tabStop"),!1===n&&(q=!1)),q)},JJ:function(d,l){for(var q,r;0<=d&&(d--,!(0>d))&&(q=this.getSpans(K(d,l,1,1)),q&&0<L(q)&&(r=q[0],d>=r.row&&(d=r.row,l=r.col)),!this.IJ(d,l)););return{r:d,c:l}},MJ:function(d,l){for(var q,r,n,w=this.getRowCount(void 0);d<w&&(q=this.zl().get(d,l),d+=q.rowCount,!(d>=w))&&(r=this.getSpans(K(d,l,1,1)),r&&0<L(r)&&(n=r[0],d>n.row?d=F(d,n.row+n.rowCount):l=n.col),!this.IJ(d,l)););return{r:d,c:l}},Ur:function(d,l,A,r,n){this.Uq.add(d,l,A,r);n&&0>=this.Xq&&this.yl.im()},aH:function(d,l,A){var q=this.Jx(d,l,this.Jl,this.Kl);d=q.row;l=q.col;var n=q.rowCount,q=q.colCount,w=this.selectionPolicy(),z=this.selectionUnit();0!==w&&(1===w&&this.Uq.clear(),1===z?(l=-1,q=-1):2===z&&(d=-1,n=-1),this.Kx(d,l,n,q,A))},Jx:function(d,l,A,r,n){var q,z,C,c,m;return I(A)&&(A=this.Jl),I(r)&&(r=this.Kl),q=this.zl(),z=q.get(A,r),C=q.get(d,l),n&&z.equals(C)?new u.Range(z.row,z.col,1,1):(c=z.union(C),m=this.getSpans(),m&&0<L(m)&&(c=this.TJ(m,c)),c)},Kx:function(d,l,A,r,n){var q,z=this.Uq,C=this.Ix();(0<L(z)?z.splice(z.rp,1,K(d,l,A,r)):z.add(d,l,A,r),n&&0>=this.Xq)&&(q=this.Ix(),q.row!==C.row||q.col!==C.col||q.rowCount!==C.rowCount||q.colCount!==C.colCount)&&(d=this.yl,C.containsRange(q)?d.im(C):q.containsRange(C)?d.im(q):(d.im(C),d.im(q)))},Sx:function(d,l){var q,r,n,w,z,C,c,m,h;!(0>=L(this.Uq))&&(q=this.Ix(),r=this.UJ(q,d,l))&&(n=this.Uq.toArray(),w=r.row,z=r.col,C=r.rowCount,c=r.colCount,m=this.selectionPolicy(),h=this.selectionUnit(),0!==m)&&(1===m&&this.Uq.clear(),1===h?(z=-1,c=-1):2===h&&(w=-1,C=-1),this.Kx(w,z,C,c,!0),q=this.Uq.toArray(),this.mm.zu(n,q)&&(this.yu(n,q),this.Au(n)))},UJ:function(d,l,A,r,n){var q=this.Tq(d),z=null;return 37===l?z=A?this.VJ(q,!1,r,n):this.WJ(q,r,n):39===l?z=A?this.XJ(q,!1,r,n):this.YJ(q,r,n):38===l?z=A?this.ZJ(q,!1,r,n):this.$J(q,r,n):40===l?z=A?this._J(q,!1,r,n):this.aK(q,r,n):36===l?z=A?this.bK(q,r,n):this.cK(q,r,n):35===l?z=A?this.dK(q,r,n):this.eK(q,r,n):33===l?z=this.fK(q,r,n):34===l&&(z=this.gK(q,r,n)),z&&(0>d.row&&(z.row=-1,z.rowCount=this.getRowCount()),0>d.col&&(z.col=-1,z.colCount=this.getColumnCount())),z},WJ:function(d,l,A){var q,n,w,z,C,c,m,h,a,B=d.row,y=d.col,t=d.rowCount;d=d.colCount;for(var E=y+d-1,u=B+t-1;0<E;)if(E--,this.IJ(u,E)&&(q=this.Jx(u,E,l,A),n=G(B,q.row),w=G(y,q.col),z=F(B+t-1,q.row+q.rowCount-1),C=G(y+d-1,q.col+q.colCount-1),c=z-n+1,m=C-w+1,n!==B||w!==y||c!==t||m!==d))return h=this.qq,a=this.Kl,y<a?w<=h&&this.rq(w):y===a&&C<=h&&this.rq(C),K(n,w,c,m);return null},VJ:function(d,l,A,r){var n,q,z,C,c,m,h,a=d.row,B=d.col,y=this.frozenColumnCount(),t=y?this.Zq(y-1):this.$q(),t=l?t:this.$q();if(!I(t))return(0>=y||l)&&this.rq(t),n=this.Jx(a,t,A,r),q=G(a,n.row),z=G(B,n.col),C=F(a+d.rowCount-1,n.row+n.rowCount-1),c=G(B+d.colCount-1,n.col+n.colCount-1),m=C-q+1,h=c-z+1,K(q,z,m,h)},YJ:function(d,l,A){var q,n,w,z,C,c,m,h,a,B=d.row,y=d.col,t=d.rowCount;d=d.colCount;for(var E=y,u=this.getColumnCount(void 0)-1,p=B+t-1;E<u;)if(E++,this.IJ(p,E)&&(q=this.Jx(p,E,l,A),n=G(B,q.row),w=F(y,q.col),z=F(B+t-1,q.row+q.rowCount-1),C=F(y+d-1,q.col+q.colCount-1),c=z-n+1,m=C-w+1,n!==B||w!==y||c!==t||m!==d))return h=this.Aw(),a=this.Kl,y<a?w>=h&&this.rq(this.ks(w,2)):y===a&&C>=h&&this.rq(this.ks(C,2)),K(n,w,c,m);return null},XJ:function(d,l,A,r){var n,q,z,C,c,m,h,a,B=d.row,y=d.col,t=this.lr();if(!I(t))return this.rq(t),n=this.dr(),l||(n+=this.frozenTrailingColumnCount()),q=this.Jx(B,n,A,r),z=G(B,q.row),C=F(y,q.col),c=F(B+d.rowCount-1,q.row+q.rowCount-1),m=F(y+d.colCount-1,q.col+q.colCount-1),h=c-z+1,a=m-C+1,K(z,C,h,a)},$J:function(d,l,A){var q,n,w,z,C,c,m,h,a,B=d.row,y=d.col,t=d.rowCount;d=d.colCount;for(var E=B+t-1,u=y+d-1;0<E;)if(E--,this.IJ(E,u)&&(q=this.Jx(E,u,l,A),n=G(B,q.row),w=G(y,q.col),z=G(B+t-1,q.row+q.rowCount-1),C=F(y+d-1,q.col+q.colCount-1),c=z-n+1,m=C-w+1,n!==B||w!==y||c!==t||m!==d))return h=this.lq,a=this.Jl,B<a?n<=h&&this.mq(n):B===a&&z<=h&&this.mq(z),K(n,w,c,m);return null},ZJ:function(d,l,A,r){var n,q,z,C,c,m,h,a=d.row,B=d.col,y=this.frozenRowCount(),t=y?this._q(y-1):this.ar(),t=l?t:this.ar();if(!I(t))return(0>=y||l)&&this.mq(t),n=this.Jx(t,B,A,r),q=G(a,n.row),z=G(B,n.col),C=G(a+d.rowCount-1,n.row+n.rowCount-1),c=F(B+d.colCount-1,n.col+n.colCount-1),m=C-q+1,h=c-z+1,K(q,z,m,h)},aK:function(d,l,A){var q,n,w,z,C,c,m,h,a,B=d.row,y=d.col,t=d.rowCount;d=d.colCount;for(var E=B,u=this.getRowCount(void 0)-1,p=y+d-1;E<u;)if(E++,this.IJ(E,p)&&(q=this.Jx(E,p,l,A),n=F(B,q.row),w=G(y,q.col),z=F(B+t-1,q.row+q.rowCount-1),C=F(y+d-1,q.col+q.colCount-1),c=z-n+1,m=C-w+1,n!==B||w!==y||c!==t||m!==d))return h=this.Fw(),a=this.Jl,B<a?n>=h&&this.mq(this.ms(n,2)):B===a&&z>=h&&this.mq(this.ms(z,2)),K(n,w,c,m);return null},_J:function(d,l,A,r){var n,q,z,C,c,m,h,a,B=d.row,y=d.col,t=this.kr();if(!I(t))return this.mq(t),n=this.ir(),l||(n+=this.frozenTrailingRowCount()),q=this.Jx(n,y,A,r),z=F(B,q.row),C=G(y,q.col),c=F(B+d.rowCount-1,q.row+q.rowCount-1),m=F(y+d.colCount-1,q.col+q.colCount-1),h=c-z+1,a=m-C+1,K(z,C,h,a)},cK:function(d,l,A){var q,n,w,z,C,c,m,h=d.row,a=d.col,B=d.rowCount;d=d.colCount;for(var y=this.frozenColumnCount()-1,t=this.Kl,E=h+B-1;y<t;)if(y++,this.IJ(E,y)){if(a<=y&&a+d-1===this.Kl)break;return q=this.Jx(E,y,l,A),n=G(h,q.row),w=G(a,q.col),z=F(h+B-1,q.row+q.rowCount-1),C=G(a+d-1,q.col+q.colCount-1),c=z-n+1,m=C-w+1,this.rq(this.$q()),K(n,w,c,m)}return null},bK:function(d,l,A){return d=this.VJ(d,!0,l,A),this.ZJ(d,!0,l,A)},eK:function(d,l,A){var q,n,w,z,C,c,m,h=d.row,a=d.col,B=d.rowCount;d=d.colCount;for(var y=this.getColumnCount(void 0),t=this.Kl,E=h+B-1;y>t;)if(y--,this.IJ(E,y)){if(a+d-1>=y&&a===this.Kl)break;return q=this.Jx(E,y,l,A),n=G(h,q.row),w=F(a,q.col),z=F(h+B-1,q.row+q.rowCount-1),C=F(a+d-1,q.col+q.colCount-1),c=z-n+1,m=C-w+1,this.rq(this.lr()),K(n,w,c,m)}return null},dK:function(d,l,A){return d=this.XJ(d,!0,l,A),this._J(d,!0,l,A)},fK:function(d,l,A){var q,n,w,z,C,c,m,h,a,B,y=d.row,t=d.col,E=d.rowCount,u=this.Ew();return I(u)?null:(q=this.Gr(1),n=this.mq(u),w=-1,n?w=this._q(y+E-1-L(q)):0>=this.frozenRowCount()&&(w=this.ar()),w<this.lq?w=this.lq:w>=this.Fw()&&(w=this.gr(this.Fw())),z=this.Jx(w,t,l,A),C=G(y,z.row),c=G(t,z.col),m=G(y+E-1,z.row+z.rowCount-1),h=F(t+d.colCount-1,z.col+z.colCount-1),a=m-C+1,B=h-c+1,K(C,c,a,B))},gK:function(d,l,A){var q,n,w,z,C,c,m,h,a,B=d.row,y=d.col,t=d.rowCount,E=this.$x();return I(E)?null:(q=this.Gr(1),this.mq(E),n=this.gr(B+t-1+L(q)),n<this.lq?n=this.lq:n>=this.Fw()&&(n=this.lq>=this.kr()?this.Fw():this.gr(this.Fw())),w=this.Jx(n,y,l,A),z=F(B,w.row),C=G(y,w.col),c=F(B+t-1,w.row+w.rowCount-1),m=F(y+d.colCount-1,w.col+w.colCount-1),h=c-z+1,a=m-C+1,K(z,C,h,a))},Ew:function(){var d,l,A,r;d=this.Gr(1);if(!d||0>=L(d))return null;d=(d=this.frozenRowCount())?this._q(d-1):this.ar();l=0;A=this.lq;for(r=this.am();A>d&&(A--,l+=this.Sl(A),!(l>r.jr)););return A},zw:function(){var d,l,A,r;d=this.Hr(1);if(!d||0>=L(d))return null;d=(d=this.frozenColumnCount())?this.Zq(d-1):this.$q();l=0;A=this.qq;for(r=this.am();A>d&&(A--,l+=this.Tl(A),!(l>r.er)););return A},$x:function(){var d,l,A=this.Gr(1);return A&&0<(d=L(A))?(l=A[d-1].row,this.ir()<=l?this.lq:l):null},kr:function(){var d,l,A,r,n;if(this.ir()===this.Fw()&&(d=this.am(),l=this.Gr(1),l&&1<=(A=L(l))&&(r=l[A-1],r.y+r.height<=d.qt+d.jr)))return this.lq;d=this.lq;try{return this.lq=this.ir(),n=this.Ew(),this._q(n)}catch(w){}finally{this.lq=d}},lr:function(){var d,l,A,r;if(this.dr()===this.Aw()&&(d=this.am(),l=this.Hr(1),l&&1<=(A=L(l))&&(r=l[A-1],r.x+r.width<=d.pt+d.width)))return this.qq;d=this.am();l=0;for(A=this.dr();0<A&&(l+=this.Tl(A),!(l>d.er));)A--;return 0<A&&(A=this.Zq(A)),A},Fw:function(){var d=this.Gr(1),l;return d&&0<(l=L(d))?d[l-1].row:null},Aw:function(){var d=this.Hr(1),l;return d&&0<(l=L(d))?d[l-1].col:null},hr:function(){var d,l,A,r=this.Gr(1);return r&&0<(d=L(r))?(l=this.am(),A=d-1,r[A].y+r[A].height<=l.qt+l.jr?r[A].row:r[F(A-1,0)].row):null},cr:function(){var d,l,A,r=this.Hr(1);return r&&0<(d=L(r))?(l=this.am(),A=d-1,r[A].x+r[A].width<=l.pt+l.er?r[A].col:r[F(A-1,0)].col):null},ir:function(d){I(d)&&(d=3);var l=this.getRowCount(d);return 3!==d&&2!==d||(l-=this.frozenTrailingRowCount()),this.gr(l,d)},dr:function(d){I(d)&&(d=3);var l=this.getColumnCount(d);return 3!==d&&1!==d||(l-=this.frozenTrailingColumnCount()),this.br(l,d)},TJ:function(d,l){var q,r,n;if(d)for(q=0,r=L(d);q<r;q++)if(n=d[q],l.intersect(n.row,n.col,n.rowCount,n.colCount))return d.splice(q--,1),this.TJ(d,l.union(n));return l},Ix:function(d){var l=this.Uq,q=L(l),r=K(-1,-1,0,0);return 0>=q?r:(3===d?(l.rp--,0>l.rp&&(l.rp=q-1)):4===d&&(l.rp++,l.rp>=q&&(l.rp=0)),0<=l.rp&&(r=l[l.rp]),r)}});d.$n("selection",{init:function(){var d=new J;d.add(0,0,1,1);this.Uq=d}});U.exports=u},function(U,u,l){function d(d,n,l){for(var c=d[l-n];c<l;)c=d[c-n];return c}function J(d,n){return d instanceof Date&&n instanceof Date?q(d)===q(n):typeof d===r&&typeof n===r?d.toLowerCase()===n.toLowerCase():d===n}function R(d,l){var w,c,m,h,a;return d instanceof Date&&(d=q(d)),l instanceof Date&&(l=q(l)),w=typeof d,c=typeof l,m=w===r,h=c===r,a=c===n,w===c||w!==n&&!a?!(w!==A||!h)||(!m||c!==A)&&(m&&h?d.toLowerCase()>l.toLowerCase():d>l):a}function Q(d,l,q,c,m){var h,a,r,y,t,w,z=d.length;if(1>=z)return d;h=d[Math.floor(z/2)];a=[];r=[];y=[];for(t=0;t<z;t++){w=l;var p=q,g=m,f,k=void 0,x=void 0,C=void 0,A=void 0,u=void 0,F=void 0,e=void 0,b=void 0,v=void 0,G=void 0,S=0,X=c,H=d[t],I=h;if(X)for(f=0;f<X.length&&(X[f]&&(k=X[f].ascending,x=X[f].index,0<=x&&(u=p?H:x,F=p?x:H,e=p?I:x,b=p?x:I,g?(C=g[u][F],A=g[e][b]):(C=w.getValue(u,F),A=w.getValue(e,b)),v=D(C)||""===C||typeof C===n&&isNaN(C),G=D(A)||""===A||typeof A===n&&isNaN(A),v||G?v&&G?S=0:v&&!G?S=1:!v&&G&&(S=-1):S=J(C,A)?0:R(C,A)?k?1:-1:k?-1:1)),0===S);f++);w=S;0>w?a.push(d[t]):0<w?r.push(d[t]):y.push(d[t])}return Q(a,l,q,c,m).concat(y,Q(r,l,q,c,m))}function K(d,n,l,c,m,h,a,q){var y;c=h?c:m;m=h?n:l;n=[];for(l=0;l<c;l++)n[l]=m+l;if(h)for(y=[],c=n.length-1;0<=c;c--)l=n[c],d.Ps&&d.Ps(l)&&(n.splice(c,1),y.push({mi:c,Qb:l}));if(n=Q(n,d,h,a,q),h)for(c=y.length-1;0<=c;c--)d=y[c],n.splice(d.mi,0,d.Qb);return n}function O(d,n,l){(d=d.qg(n,l,!1))&&d.hasListeners()&&d.Yg()}function H(d,n,q){var c=l(33).CalcOperatorAdjustor.zj(d.Kf(n,q),n,q,0,0);d.Rf(n,q,c);(d=d.qg(n,q,!!c))&&d.og()}var I,L,F,G,q,D,A,r,n;u=l(42);I=l(26);L=l(44).GC$;F=l(43);G=l(56).Worksheet;q=I.l.Ra;D=I.j.Fa;A="boolean";r="string";n="number";L.extend(G.prototype,{sortRange:function(n,l,q,c,m,h){var a,r,y,t,w,z,p,g,f,k,x,C,A,D,G,e,b,v,N,S,X,Y,I,L,J,Q,R,ga,T,fa,U,aa,xa,Ia,la=this.getRowCount(),pa=this.getColumnCount();if(!u.X3||this.Vq(n,0,q,pa,!1)){if((a=this.getSpans(new F.Range(n,l,q,c)),a&&0<a.length)||(r=this.tables,r&&(y=r.s$(n,l,q,c),t=1===y.length&&y[0].dataRange().equals(F.kf(n,l,q,c)),!(0>=y.length||t)))||(w=this.wq,z=w&&w.Ou||t&&y[0]&&y[0].LZ(),-1===n&&(n=0),-1===q&&(q=la),-1===l&&(l=0),-1===c&&(c=pa),0>n||n>=la||0>l||l>=pa||0>q||n+q>la||0>c||l+c>pa||!h))return!1;this.suspendPaint();this.suspendEvent();u.X3&&this.suspendCalcService();try{if(p=[],z)for(g=[],f=n;f<n+q;f++)for(g[f]=[],k=l;k<l+c;k++)g[f][k]=this.getValue(f,k);if(x=K(this,n,l,q,c,m,h,g)){S=this.Mp();X=u.X3&&this.Bj();Y=u.X3&&this.yj();I=this.comments;J=function(a,b,e){a&&(a.nT=b,a.oT=e)};R=m?n:l;ga=m?n+q:l+c;fa=m?l:n;U=m?l+c:n+q;for(Q=R;Q<ga;Q++)if(L=d(x,R,Q),Q!==L)for(m?(C=Q,D=L):(A=Q,G=L),T=fa;T<U;T++)m?(A=T,G=T):(C=T,D=T),z&&(e=g[C][A],b=g[D][G]),I&&(v=I.get(C,A),N=I.get(D,G)),X&&Y&&(O(X,C,A),O(X,D,G),X._f(C,A,D,G),H(X,C,A),H(X,D,G)),S.swapNode(C,A,D,G),I&&(J(N,C,A),J(v,D,A)),z&&(g[C][A]=b,g[D][G]=e),p.push({row:C,col:A}),p.push({row:D,col:G});if(z){for(f=n;f<n+q;f++)for(k=l;k<l+c;k++)this.setValue(f,k,g[f][k]);g=null}if(X){for(aa=n;aa<n+q;aa++)for(xa=l;xa<l+c;xa++)(Ia=X.getExpression(aa,xa))&&X.fg(aa,xa,Ia,void 0);this.getCalcService().recalcRange(Y,n,l,q,c)}return!0}return!1}finally{u.X3&&this.resumeCalcService(!1),this.resumeEvent(),this.resumePaint(),this.Bu(n,l,q,c,p,4)}}},hK:function(){var d=this.options;return!d.isProtected||d.protectionOptions.allowSort}});U.exports=u},function(U,u,l){function d(d,l){return function(q){var u,A,r=this.sheet,n=this.row,w=this.col,z=this.sheetArea;if(0===arguments.length)return d.call(r,n,w,z);if(0<=n&&0<=w)for(u=n;u<n+this.rowCount;u++)for(A=w;A<w+this.colCount;A++)J(r,u,A,z)&&l.call(r,u,A,q,z);return this}}function J(d,l,q,u){var A=d.getRowCount(u);d=d.getColumnCount(u);return 0>q&&0<=l&&l<A||0>l&&0<=q&&q<d||0<=l&&l<A&&0<=q&&q<d}function R(d,l,q,u,A,r){0>l&&(l=u=-1);0>q&&(q=A=-1);this.sheet=d;this.row=l;this.rowCount=I(u)?1:u;this.col=q;this.colCount=I(A)?1:A;this.sheetArea=I(r)?3:r}var Q,K,O,H,I,L;u=l(42);Q=l(56).Worksheet;K=l(51).Style;O=l(44).GC$;H=l(43).Range;I=l(26).j.Fa;l=Q.prototype;L=R.prototype={constructor:R,value:d(l.getValue,l.setValue),text:d(l.getText,l.setText),formula:d(function(d,l){return u.X3&&this.getFormula(d,l)},function(d,l,q,D){u.X3&&this.setFormula(d,l,q,D)}),tag:function(d){var l=this.sheet,q=this.row,u=this.col,A=this.rowCount,r=this.colCount,n=this.sheetArea,w,z;if(0===arguments.length)return l.getTag(q,u,n);if(0<=q&&0<=u)for(w=q;w<q+A;w++)for(z=u;z<u+r;z++)l.setTag(w,z,d,n);else if(0<=q)for(w=q;w<q+A;w++)l.setTag(w,-1,d,n);else if(0<=u)for(z=u;z<u+r;z++)l.setTag(-1,z,d,n);return this},width:function(d){var l,q=this.sheet;l=this.row;var u=this.col,A=this.sheetArea;if(0!==arguments.length){if(0>l)for(l=0;l<this.colCount;l++)q.setColumnWidth(l+u,d,A);return this}if(0>l)return q.getColumnWidth(u,A)},height:function(d){var l,q=this.sheet,u=this.row;l=this.col;var A=this.sheetArea;if(0!==arguments.length){if(0>l)for(l=0;l<this.rowCount;l++)q.setRowHeight(l+u,d,A);return this}if(0>l)return q.getRowHeight(u,A)},visible:function(d){var l,q,u=this.sheet;q=this.row;l=this.col;var A=this.sheetArea;if(0!==arguments.length){if(0>l&&0<=q)for(l=0;l<this.rowCount;l++)u.setRowVisible(l+q,d,A);else if(0<=l&&0>q)for(q=0;q<this.colCount;q++)u.setColumnVisible(q+l,d,A);return this}return 0>l&&0<=q?u.getRowVisible(q,A):0<=l&&0>q?u.getColumnVisible(l,A):void 0},resizable:function(d){var l,q,u=this.sheet;q=this.row;l=this.col;var A=this.sheetArea;if(0!==arguments.length){if(0>l&&0<=q)for(l=0;l<this.rowCount;l++)u.setRowResizable(l+q,d,A);else if(0<=l&&0>q)for(q=0;q<this.colCount;q++)u.setColumnResizable(q+l,d,A);return this}return 0>l&&0<=q?u.getRowResizable(q,A):0<=l&&0>q?u.getColumnResizable(l,A):void 0},tq:function(d){return this.sheet.tq(this.row,this.col,d,this.sheetArea)},_w:function(d,l){function q(c,d,a,l,n,q){if(J(c,d,a,q)){var h=c.Iq(d,a,q);h||(h=new K);h[l]=n;c.setStyle(d,a,h,q)}}var u,A,r=this.sheet,n=this.row,w=this.col,z=this.rowCount,C=this.colCount,c=this.sheetArea;if(0<=n&&0<=w)for(u=n;u<n+z;u++)for(A=w;A<w+C;A++)q(r,u,A,d,l,c);else if(0<=n)for(A=-1,u=n;u<n+z;u++)q(r,u,A,d,l,c);else if(0<=w)for(u=-1,A=w;A<w+C;A++)q(r,u,A,d,l,c);return this},styleName:d(l.getStyleName,l.setStyleName),clear:function(d){this.sheet.clear(this.row,this.col,this.rowCount,this.colCount,this.sheetArea,d)},setBorder:function(d,l){var q,u,A,r,n,w,z,C,c,m,h,a=this.sheet,B=this.sheetArea;a.suspendPaint();try{if(q=new H(this.row,this.col,this.rowCount,this.colCount),u=a.Tq(q,B),A=u.row,r=u.col,n=u.rowCount,w=u.colCount,c=l.all,m=l.outline,h=l.inside,l.left||c||m)for(z=0;z<n;z++)a.getCell(A+z,r,B).borderLeft(d);if(l.top||c||m)for(C=0;C<w;C++)a.getCell(A,r+C,B).borderTop(d);if(l.right||c||m)for(z=0;z<n;z++)a.getCell(A+z,r+w-1,B).borderRight(d);if(l.bottom||c||m)for(C=0;C<w;C++)a.getCell(A+n-1,r+C,B).borderBottom(d);if(l.innerHorizontal||c||h)for(z=0;z<n-1;z++)for(C=0;C<w;C++)a.getCell(A+z,r+C,B).borderBottom(d),a.getCell(A+z+1,r+C,B).borderTop(d);if(l.innerVertical||c||h)for(C=0;C<w-1;C++)for(z=0;z<n;z++)a.getCell(A+z,r+C,B).borderRight(d),a.getCell(A+z,r+C+1,B).borderLeft(d)}finally{a.resumePaint()}}};O.each("backColor foreColor hAlign vAlign themeFont font formatter borderLeft borderTop borderRight borderBottom locked textIndent wordWrap shrinkToFit backgroundImage backgroundImageLayout validator cellType tabStop textDecoration imeMode watermark cellPadding labelOptions".split(" "),function(d,l){L[l]=function(d){return 0===arguments.length?this.tq(l):this._w(l,d)}});R.Pl=d;u.CellRange=R;O.extend(l,{getRange:function(d,l,q,u,A){return new R(this,d,l,q,u,A)},getCell:function(d,l,q){return new R(this,d,l,1,1,q)}});U.exports=u},function(U,u,l){var d,J,R,Q,K,O,H,I,L;u=l(42);d=l(44).GC$;J=l(43);R=l(33);Q=l(60).NameInfo;K=l(61).Workbook;O=l(26);H=O.u.Nb;I=function(){return O.C(u.SR)()};L=J.Ul.Ol;d.extend(K.prototype,{qv:function(d){var l=this.Wu;this.Wu=new R.CalcService;d&&l&&this.Wu.cloneFrom(l);this.yv=new u.CalcEngine.SpreadSource(this);this.zv=this.Wu.getGlobalSourceModel(this.yv)},addCustomFunction:function(d){this.Xu(d)},Xu:function(d){if(!(d&&d instanceof R.Functions.Function))throw Error(I.Exp_InvalidCustomFunction);this.Su[H(d.name)]=d},getCustomFunction:function(d){return d?this.Su[H(d)]:void 0},removeCustomFunction:function(d){d&&(delete this.Su[H(d)],this.iK())},clearCustomFunctions:function(){this.Su={}},addCustomName:function(d,l,q,u){this.Yu(d,l,q,u,!1)},Yu:function(d,l,q,u,A){var r,n,w,z;if(!d||!l)throw Error(I().Exp_InvalidCustomName);if(this.Wu){if(r=this.getActiveSheet(),n=r?r.yj():null,A)try{w=this.Wu.parse(n,l,q,u,!1,!1,!0)}catch(C){}else w=this.Wu.parse(n,l,q,u);this.Tu[H(d)]=new Q(d,w,q,u);A||(z={},z[d]=d,this.Zu(z,!0))}},getCustomName:function(d){return d?this.Tu[H(d)]:void 0},getCustomNames:function(){var l=[];return d.each(this.Tu,function(d,q){l.push(q)}),l},removeCustomName:function(d){if(d){delete this.Tu[H(d)];var l={};l[d]=d;this.Zu(l,!1)}},clearCustomNames:function(){var d=this.Tu;this.Tu={};this.Zu(d,!1)},Zu:function(d,l){var q,u,A;if(d&&0!==d.length){q=this.zv;for(u in d)q&&(A=q.wg(H(u)),A&&(A.updateListening(!0,l),A.fh()));this.iK()}},iK:function(){if(this.Wu&&!this.Wu.IsSuspended()){var d=this.getActiveSheet();d&&(d.suspendPaint(),this.Wu.recalculateAll(),d.resumePaint())}},getCalcService:function(){return this.Wu},Cf:function(){return this.Wu},suspendCalcService:function(d){this.Wu&&this.Wu.suspend(d)},resumeCalcService:function(d){this.Wu&&this.Wu.resume(d)}});K.$n("calc",{priority:1E3,init:function(){this.Su={};this.Tu={}},toJson:function(l){var u,q,D;q=this.Su;d.isEmptyObject(q)||(l.customFunctions=q);u=[];q=this.getCustomNames();D=this.Wu;q&&D&&(d.each(q,function(d,l){var n=l.getName(),q=l.getRow(),r=l.getColumn(),C=l.getExpression(),C=D.unparse(null,C,q,r,!1,!0);u.push({name:n,formula:C,row:q,col:r})}),0<u.length&&(l.names=u))},fromJson:function(d,l){var q,u,A,r,n,w,z,C,c,m,h,a=this.Wu;if(a&&a.suspend(),this.clearCustomNames(),q=d.names)for(u=0;u<q.length;u++)A=q[u],this.Yu(A.name,A.formula,A.row,A.col,!0);if(this.clearCustomFunctions(),q=d.customFunctions)for(r in q)q.hasOwnProperty(r)&&(n=q[r],w=J.getTypeFromString(n.typeName),w&&(z=new w,z.fromJSON(n,l),this.Xu(z)));if(n=d.sheets)for(c in r=0,n)"string"==typeof c&&(m=n[c],h=L(m.index)?m.index:m.mi,C=this.sheets[L(h)?h:r],C.formulaFromJSON(m,l),r++);a&&(d.noRecalc?a.resumeWithoutCalc():a.resume(!0))}});U.exports=u},function(U,u,l){function d(d){var l,u;if(!d||"string"!=typeof d||(l=d.split("."),!l||0===(u=l.length)))return 1;if(3<u)return 3;if(d=F(l[0]),2>=u)return isNaN(d)?1:d;if(l=F(l[1]),10<=d)return d;if(3<=d){if(20143<=l)return 3;if(20142<=l)return 2}return 1}var J,R,Q,K,O,H,I,L,F;u=l(42);J=l(61).Workbook;R=l(51).Style;Q=l(44).GC$;K=l(43);O=l(26).CultureManager;H=J._n;I=Q.each;L=K.Ul.Ol;F=parseFloat;Q.extend(J.prototype,{toJSON:function(d){var l,u,A,r,n,w,z=this,C={version:K.productInfo.productVersion};(l=z.startSheetIndex())&&(C.startSheetIndex=l);I(z.options,function(c,d){"_ps"!==c&&J.Qp[c]!==d&&(C[c]=d)});l=z.getSheetCount();l!==J.nv&&(C.sheetCount=l);u=z.getActiveSheetIndex();u!==J.ov&&(C.activeSheetIndex=u);u={};for(A=0;A<l;A++)r=z.getSheet(A),u[r.Cj]=r.toJSON(d),u[r.Cj].index=A;if(Q.isEmptyObject(u)||(C.sheets=u),l=[],n=z.Lq,n){for(w in n)n.hasOwnProperty(w)&&l.push(n[w]);0<l.length&&(C.namedStyles=l)}return H&&I(H,function(c,m){m.toJson&&m.toJson.call(z,C,d)}),C},fromJSON:function(l){var q,D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M,p,g,f,k,x,F,P,G,Z,e;if(l){q=this;D=3>d(l.version);A=K.Vl.Xl();q.mv=!0;q.suspendPaint();q.suspendEvent();r=O.culture();O.culture("");try{q.T3();u.X3&&q.qv(!0);u.X3&&q.Wu.suspendAdjust();q.lv=-1;q.clearSheets();n=q.options;w=l.canUserEditFormula;L(w)&&(n.allowUserEditFormula=w);z=l.allowDragDrop;L(z)&&(n.allowUserDragDrop=z);C=l.allowDragFill;L(C)&&(n.allowUserDragFill=C);for(c in n)n.hasOwnProperty(c)&&(m=l[c],L(m)&&(n[c]=m));if(h=l.sheetCount,L(h)||(h=J.nv),q.sw(h,0),q.Lq={},a=l.namedStyles)for(B=0;B<a.length;B++)y=a[B],t=new R,t.fromJSON(y,D),q.Kq(t);if(E=0,p=l.sheets,k=!1,x=!0,p)for(F in p)"string"==typeof F&&(P=p[F],G=L(P.index)?P.index:P.mi,M=q.sheets[L(G)?G:E],M.fromJSON(P,!1,D),E++,f=P.allowUndo,k?x=x&&f===g:(g=f,k=!0));L(g)&&x&&(n.allowUndo=g);Z=l.activeSheetIndex;L(Z)||(Z=J.ov);q.dq(Z,0);e=l.startSheetIndex;L(e)&&q.startSheetIndex(e);H&&I(H,function(a,e){var b=e.fromJson;b&&b.call(q,l,D)})}finally{u.X3&&q.Wu.resumeAdjust(),O.culture(r),q.mv=!1,r=q.getActiveSheet(),A&&r&&r.zt(),q.resumeEvent(),q.fq(),q.resumePaint()}}}})},function(U,u,l){function d(){D.call(this);this.allowOverflow=!0;this.typeName="1"}var J,R,Q,K,O,H,I,L,F,G,q,D,A,r,n,w,z=l(56).Worksheet,C=l(44).GC$;H=l(43);var c=l(52).CellTypes,m=l(26);u=l(42);l=u.CellTypes||(u.CellTypes={});J=H.Ul.Nl;R=m.j.Fa;Q=H.Vn;K=H.Events.EditChange;O=H.Vl;H=H.Ul;I=H.Ml.msie;L=H.nl;F=H.ol;G=H.Il;q=H.vl;D=c.Base;A=c.Context;r=Math.ceil;n=Math.min;w=Math.max;C.inherit(d,D);C.extend(d.prototype,{getText:function(c,a){return c},paintValue:function(c,a,d,m,l,n,q,p){var g,f,k,h,t;return a=this.getText(a,p),g={value:null},f=this.format(a,q.formatter||q._autoFormatter,g),k=q.labelOptions,h=q.watermark,t=!k||k&&0!==k.visibility,h&&!f&&t?void this.paintText(c,h,d,m,l,n,q,p,h,g,.337):void(f&&this.paintText(c,a,d,m,l,n,q,p,f,g))},createEditorElement:function(c){var a;c=q(c&&c.sheet&&c.sheet.parent&&c.sheet.parent.qo)+1E3;return C(this.b5).css("z-index",c),a=C(J("textarea")),a.css({font:"normal 11pt calibri",outline:"none",resize:"none",border:"none",padding:"1px",display:"block","min-height":"0px","box-sizing":"content-box"}).css("word-wrap","normal").attr({tabindex:-1,autocomplete:"off"}).css("overflow","hidden").attr("gcUIElement","gcEditingInput"),a[0]},getEditorValue:function(c,a){if(c){var d=c.value;if(!R(d)&&0<d.length)return d}return null},setEditorValue:function(c,a,d){c&&(d&&d.sheet&&d.sheet.HF||(c.value=R(a)?"":a,c.selectionStart=c.selectionEnd=c.value.length))},focus:function(c,a){this.isImeAware()&&c?(c.focus(),c.selectionStart=c.value.length):c.parentNode.focus()},kp:function(c,a,d,m){var h={};a=G(a,d,c&&m&&m.sheet,h);return c.pia=h.formatter||void 0,a},activateEditor:function(c,a,d,m){var h,l,n=c&&m&&m.sheet;n&&(h=this,c&&(l=C(c),h.jK=c,l.bind("keydown.gcEditingInput",function(p){var g,f,k,l=p.keyCode,q=p.ctrlKey,t=p.altKey,y=p.shiftKey;229===l||0===l||h.kK||h.lK(c,a,d,p,m,!0);var r,e,b,v,B,w,E=p.srcElement||p.target;E&&"gcEditingInput"===E.getAttribute("gcUIElement")&&13===p.keyCode&&(p.ctrlKey||p.altKey)&&(r=E.selectionStart,e=E.value,b=e.substr(0,r),v=e.substr(r,e.length-r),E.value=b+"\n"+v,E.selectionStart=r+1,E.selectionEnd=r+1,B=O.Xl(),B instanceof z&&(w=B.getCellType(B.Jl,B.Kl),w&&w.updateEditor(B.BF,null,null,m)),L(p),!0)||(g=0===c.selectionStart&&37===l&&!q&&!y&&!t,f=c.selectionStart===c.value.length&&39===l&&!q&&!y&&!t,k=c.selectionStart===c.selectionEnd,k&&(g||f)&&2===n.Px&&L(p))}),l.bind("keyup.gcEditingInput",function(p){var g=p.keyCode,f=p.ctrlKey,k=p.altKey;46!==g&&8!==g&&(90!==g&&89!==g||!f||k)||h.lK(c,a,d,p,m);(13!==g&&9!==g||f||k)&&n.Wq(K,{sheet:n,sheetName:n.Cj,row:n.Jl,col:n.Kl,editingText:h.getEditorValue(c,m)})}),l.bind("paste.gcEditingInput",function(p){h.mK=setTimeout(function(){h.lK(c,a,d,p,m);h.mK&&(clearTimeout(h.mK),delete h.mK)},10)}),l.bind("mousedown.gcEditingInput",function(){1===n.Px&&(n.Px=2,n.Cu(1,2))}),l.bind("compositionstart.gcEditingInput",function(){h.kK=!0;h.nK=l.val()}),l.bind("compositionupdate.gcEditingInput",function(p){h.lK(c,a,d,p?p:null,m,!0)}),l.bind("compositionend.gcEditingInput",function(p){h.lK(c,a,d,p?p:null,m);h.kK=!1})))},deactivateEditor:function(c,a){c&&C(c).unbind(".gcEditingInput");this.jK=null},getEditingElement:function(){return this.jK},lK:function(c,a,d,m,l,q){var h,p,g,f,k,t,y,B,z,E,e,b,v,u,D,G,H,K,L,J,O,U,ga=l&&l.sheet;if(c&&ga&&(h=C(c),p=ga.yl,ga.isEditing())){g=null;f="left";k=null;b=A.u5;a&&(E=b(a,0),z=b(a,1),e=b(a,2),B=b(a,3),g=F(a.hAlign,c.LF),1===g?f="center":2===g&&(f="right"),h.css("text-align",f),a.backColor&&h.css("background-color",a.backColor),a.foreColor&&h.css("color",a.foreColor),k=a.font||p.Bl(),k&&(1<ga._zoomFactor&&(k=p.Cl(k)),h.css("font",k)),a.textDecoration&&this.lp(h,a.textDecoration));d&&(v=ga.am(),t=parseInt(h.css("padding-left"),10)+parseInt(h.css("padding-right"),10),y=parseInt(h.css("padding-top"),10)+parseInt(h.css("padding-bottom"),10),u=d.width,d.x+d.width>v.width&&(u=v.width-d.x),h.css("width",u-t).css("height",d.height-y),R(g)||0===g?c.maxWidth=v.width-d.x-t-z:1===g?c.maxWidth=2*w(0,n(v.width-d.x-d.width-t,d.x-v.Br-t))+d.width:2===g&&(c.maxWidth=d.x+d.width-v.Br-t-z),c.maxHeight=v.height-d.y-y-e,c.minWidth=parseInt(c.style.width,10),c.minHeight=parseInt(c.style.height,10));try{q=(q=q&&m&&m.keyCode&&ga.mm.LH(m)&&0===c.selectionStart&&c.selectionEnd===c.value.length)||l&&l.sheet&&l.sheet.HF}catch(T){}if(D=q?"":c.value,k=c.style.font,k||(k=p.Cl(p.Bl())),g=ga.fp(k),!q&&m&&(ga.mm.LH(m)&&(G=c.selectionStart,H=D.substr(0,G),K=D.substr(G,D.length-G),D=H+String.fromCharCode(m.keyCode)+K),this.kK&&(D=I?h.val():this.nK+m.data)),L=[],L=a&&a.wordWrap?Q.Wn(D,h.width(),k):D.split(/\r\n|\r|\n/),U=L.length,c.minWidth=n(c.minWidth,c.maxWidth),c.minHeight=n(c.minHeight,c.maxHeight),a&&a.wordWrap||0<U){if(m=U*g,a&&a.wordWrap)h.css("word-wrap","break-word").css("overflow","hidden");else{D=0;G=[];for(J=0;J<U;J++)H=L[J],H=ga.rt(H,k),G.push(H),D=w(D,H);if(D<=c.minWidth)h.css("width",c.minWidth).css("word-wrap","normal").css("overflow","hidden");else if(D>c.minWidth&&D<=c.maxWidth)h.css("width",D).css("word-wrap","normal").css("overflow","hidden");else if(D>c.maxWidth)for(h.css("width",c.maxWidth).css("word-wrap","break-word").css("overflow","hidden"),J=m=0;J<G.length;J++)H=G[J],H<=c.maxWidth?m+=g:H>c.maxWidth&&(O=r(H/c.maxWidth),m+=g*O)}m<=c.minHeight?h.css("height",c.minHeight):m>c.minHeight&&m<=c.maxHeight?h.css("height",m):m>c.maxHeight&&h.css("height",c.maxHeight).css("overflow-y","scroll")}else k=ga.rt(D,k),k>c.minWidth&&k<=c.maxWidth?h.css("width",k).css("height",c.minHeight).css("word-wrap","normal").css("overflow","hidden"):k<=c.minWidth?h.css("width",c.minWidth).css("height",c.minHeight).css("word-wrap","normal").css("overflow","hidden"):k>c.maxWidth&&(h.css("width",c.maxWidth).css("word-wrap","break-word"),O=r(k/c.maxWidth),J=g*O,J<=c.minHeight?h.css("height",c.minHeight).css("overflow","hidden"):J<=c.maxHeight?h.css("height",J).css("overflow","hidden"):J>c.maxHeight&&h.css("height",c.maxHeight).css("overflow-y","scroll"));g=h.css("text-align");O=h.width()-c.minWidth;R(g)||"left"===g||("center"===g?h.css("left",c.originalLeft-O/2):"right"===g&&h.css("left",c.originalLeft-O));y=h.height()+y+E+e;t=t+B+z;"scroll"===h.css("overflow-y")?this.updateEditorContainer(c,{width:c.offsetWidth+t,height:q?0:y},a):this.updateEditorContainer(c,{width:h.width()+t,height:y},a)}},updateEditor:function(c,a,d,m){if(this.lK(c,a,d,null,m),I&&c)c=C(c),a=c.width(),c.width(a+1).width(a)},updateImeMode:function(c,a,d){this.isImeAware()&&c&&A.hp(c,a)},isReservedKey:function(c,a){var d=c.srcElement||c.target,h=c.keyCode,m=c.ctrlKey,l=c.altKey,n=c.metaKey;return!!(d&&a&&a.isEditing&&"gcEditingInput"===d.getAttribute("gcUIElement"))&&(13===h&&(m&&!c.shiftKey||l)||90===h&&m&&!l||89===h&&m&&!l||67===h&&(m||n)&&!l||88===h&&(m||n)&&!l)},isImeAware:function(c){return!0}});l.Text=d;l._o[1]=d;U.exports=u},function(U,u,l){function d(c,d){return c=c||0,I.Km(c,"gc-"+d+"-"+I.Jm(c))}function J(c,d,h,a,l,n){var m=new Image;n=n.replace('url("',"");n=n.replace('")',"");m.src=n;c.drawImage(m,d,h,a,l)}function R(c,m,h,a,l,y,t,r,w,p,g){var f,k;if(m){f=w.visualState||0;k=d(f,p);var x,B,z,E,u,e,b;if(!C.j.Fa(f)){if(m.save(),m.beginPath(),0===f&&r.backColor)x=r.backColor,m.fillStyle!==x&&(m.fillStyle=x),m.fillRect(a+1,l+1,y-1,t-1);else try{if(B=k&&k.backgroundColor,z=k&&k.backgroundImage,z&&-1!==z.indexOf("linear-gradient")){E=F(z);x=m.createLinearGradient(a+y/2,l,a+y/2,l+t);u=0;for(e=E.length;u<e;u++)b=E[u],x.addColorStop(b.point,b.color);m.fillStyle=x;m.fillRect(a+1,l+1,y-1,t-1)}else B?(m.fillStyle=B,m.fillRect(a+1,l+1,y-1,t-1)):z&&z!==D&&J(m,a+1,l+1,y-1,t-1,z)}catch(v){}q.ap(m,a,l,y,t,r.backgroundImage,r.backgroundImageLayout,w.imageLoader);m.restore()}q.gp(m,a,l,y,t,r,p,k,g);a=new n.Rect(a,l,y,t);c.i5&&(c.i5(m,a,r,w),a=c.f5(a,r));0<a.width&&0<a.height&&c.paintContent(m,h,a.x,a.y,a.width,a.height,r,w)}}function Q(c,d,h,a,l,q,t,r,z,p,g){var f,k,m,y,B,E,u,e,b,v,C,M,D,F,G,H,I,K,J;if(h=c.format(h,r.formatter)){d.save();d.beginPath();f=z.sheet;k=f.rowFilter&&f.rowFilter();(k=!!(k&&k.Dl(z.row,z.col,p)&&k.filterButtonVisible(z.col)))&&(q-=f.oK(new n.Rect(a,l,q,t),p).width);f=q;(k=r.foreColor)||(k=g.color);k&&d.fillStyle!==k&&(d.fillStyle=k);k=c.getThemeStyle;var O,T={font:r.font||d.font,fillStyle:d.fillStyle},Q=z.sheet;p=(0!==z.visualState&&2007<parseInt(g.zIndex)&&Q.vp(z.row,z.col,p)&&(O=Q.wp(z.row,z.col,p)?k(z.visualState,"gc-columnHeader-selected"):k(z.visualState,"gc-columnHeader-highlight"),T.fillStyle=O.color,T.font=w.Ro(T.font,"bold")),T);if(d.font=p.font,d.fillStyle=p.fillStyle,m=0,y=r.textIndent,0<y&&(m=8*y),B=r.hAlign,E=r.vAlign,u="left",e=2,e+=m,1===B?(e=q/2,u="center"):2===B&&(e=q-1,e-=m,u="right"),d.textAlign!==u&&(d.textAlign=u),b=0,v=2,C=r.wordWrap,M=z.lineHeight,D=z.fontInfo.fontSize,F=[],G=0,C&&(H=q-3-m,--H,F=L.Wn(h,H,p.font),G=F.length,1<G&&0!==E&&(b=(G-1)*M)),I=8<D?A((D-8)/5+2):1,K=M/2-D/2+I-1,v+=M-K,1===E?v=(t-b)/2+M/2-K:2===E&&(v=t-b-2-K),"alphabetic"!==d.textBaseline&&(d.textBaseline="alphabetic"),q=r.textDecoration,r.wordWrap)for(d.rect(a,l,f,t),d.clip(),d.beginPath(),l+=v,t=0;t<G;t++)d.fillText(F[t],a+e,l),q&&(J=d.measureText(F[t]).width,c.ip(d,q,a+e,l,J,D,I)),l+=M;else F=d.measureText(h).width,(F>f||M>t)&&(d.rect(a,l,f,t),d.clip(),d.beginPath()),d.fillText(h,a+e,l+v),q&&c.ip(d,q,a+e,l+v,F,D,I);d.restore()}}function K(){G.call(this);this.typeName="2"}function O(){G.call(this);this.typeName="3"}function H(){G.call(this);this.typeName="4"}var I,L,F,G,q,D,A,r=l(44).GC$.inherit,n=l(43),w=l(50).To,z=l(52).CellTypes,C=l(26);u=l(42);l=u.CellTypes||(u.CellTypes={});I=n.Im;L=n.Vn;F=n.Ul.wl;G=z.Base;q=z.Context;D="none";A=Math.floor;r(K,G);K.prototype.paint=function(c,d,h,a,l,n,q,r){R(this,c,d,h,a,l,n,q,r,"columnHeader",1)};K.prototype.paintContent=function(c,m,h,a,l,n,q,r){var t=d(r.visualState,"columnHeader");Q(this,c,m,h,a,l,n,q,r,1,t)};l.ColumnHeader=K;l._o[2]=K;r(O,G);O.prototype.paint=function(c,d,h,a,l,n,q,r){R(this,c,d,h,a,l,n,q,r,"rowHeader",2)};O.prototype.paintContent=function(c,m,h,a,l,n,q,r){var t=d(r.visualState,"rowHeader");Q(this,c,m,h,a,l,n,q,r,2,t)};l.RowHeader=O;l._o[3]=O;r(H,G);H.prototype.paint=function(c,d,h,a,l,n,q,r){var m,p,g,f,k;if(c){c.save();c.rect(h,a,l,n);c.clip();c.beginPath();d=r.visualState||0;try{p=(m=this.getThemeStyle(r.visualState,"gc-corner-"+I.Jm(d)))&&m.backgroundColor,g=m&&m.backgroundImage,p?(c.fillStyle=p,c.fillRect(h,a,l,n)):g&&g!==D&&J(c,h,a,l,n,g)}catch(x){}if(f=this.getThemeStyle(4,"gc-corner-triangle-"+I.Jm(d)),k=f&&f.backgroundImage,m=f&&f.backgroundColor,r=c.createLinearGradient(h+l/2,a,h+l/2,a+n),k&&-1!==k.indexOf("linear-gradient")){k=F(k);m=0;for(p=k.length;m<p;m++)g=k[m],r.addColorStop(g.point,g.color);c.fillStyle=r}else m&&(r.addColorStop(.125,"#f6fafb"),r.addColorStop(1,m),c.fillStyle=r);k=c.createLinearGradient(h+l,a+1,h+l,a+n-2);k.addColorStop(0,f.borderLeftColor);k.addColorStop(1,f.borderRightColor);c.beginPath();c.strokeStyle=k;c.moveTo(h+l-.5,a);c.lineTo(h+l-.5,a+n);c.stroke();k=c.createLinearGradient(h,a,h+l-2,a);k.addColorStop(0,f.borderTopColor);k.addColorStop(1,f.borderBottomColor);c.beginPath();c.strokeStyle=k;c.moveTo(h,a+n-.5);c.lineTo(h+l,a+n-.5);c.stroke();c.beginPath();f=n;l<n&&(f=l);c.moveTo(h+l-f+3,a+n-3);c.lineTo(h+l-3,a+n-3);c.lineTo(h+l-3,a+n-f+3);c.fill();c.restore()}};l.Corner=H;l._o[4]=H;U.exports=u},function(U,u){U.exports={Exp_NotSupported:"NotSupportException",Exp_PasteExtentIsNull:"pasteExtent is null",Exp_InvalidPastedArea:"The pasted area should have the same size as the copy or cut area.",Exp_ChangePartOfArray:"Cannot change part of an array.",Exp_InvalidAndSpace:"Invalid {0}: {1} (must be between {2} and {3}).",Exp_SrcIsNull:"The argument 'src' is null",Exp_DestIsNull:"The argument 'dest' is null",Exp_InvalidCustomFunction:"invalid custom function",Exp_InvalidCustomName:"invalid custom name",Exp_IndexOutOfRange:"Index is out of range!",Exp_InvalidRange:"Invalid range",Exp_ArgumentOutOfRange:"ArgumentOutOfRange",Exp_PasteSourceCellsLocked:"Source sheet's cells are locked.",Exp_InvalidCopyPasteSize:"The copy and paste areas are not the same size.",Exp_PasteDestinationCellsLocked:"The cell you are trying to change is protected and therefore read-only.",Exp_PasteChangeMergeCell:"Cannot change part of a merged cell.",Tip_Row:"Row: ",Tip_Column:"Column: ",Tip_Height:"Height: {0} pixels",Tip_Width:"Width: {0} pixels",NewTab:"New...",Exp_EmptyNamedStyle:"The name of named style cannot be empty or null",Exp_SheetNameInvalid:"The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /",Exp_ArrayFromulaSpan:"Array formulas are not valid in merged cells.",Exp_DestSheetIsNull:"destSheet is null",Exp_SheetIsNull:"sheet is null.",Exp_OverlappingSpans:"This operation will cause overlapping spans.",NeedCanvasSupport:"You need a browser which full supports HTML5 Canvas to run SpreadJS",lsru:["","6465706c6f796d656e74"],lsde:["","64657369676e6572"],ls1:["","506f776572656420627920477261706543697479205370726561642e5368656574732e0d0a596f752063616e206f6e6c79206465706c6f792074686973204556414c554154494f4e2076657273696f6e206c6f63616c6c792e0d0a54656d706f72617279207b317d206b6579732061726520617661696c61626c6520666f722074657374696e672e0d0a456d61696c207370726561642e73616c6573406772617065636974792e636f6d2e"],ls2:["","506f776572656420627920477261706543697479205370726561642e5368656574732e0d0a596f75722074656d706f72617279207b317d206b6579206578706972657320696e207b307d206461792873292e"],ls3:["","4c6963656e7365204e6f7420466f756e640d0a596f75206e65656420612076616c6964206c6963656e7365206b657920746f2072756e205370726561642e5368656574732e200d0a54656d706f72617279206b6579732061726520617661696c61626c6520666f72206576616c756174696f6e2e200d0a496620796f75207075726368617365642061206c6963656e73652c20796f7572206b657920697320696e20796f757220707572636861736520636f6e6669726d6174696f6e20656d61696c2e0d0a456d61696c207370726561642e73616c6573406772617065636974792e636f6d20696620796f75206e65656420617373697374616e63652e"],ls4:["","496e76616c6964206c6963656e7365206b65792e20456d61696c207370726561642e73616c6573406772617065636974792e636f6d20696620796f75206e6565642068656c702e"],ls5:["","506f776572656420627920477261706543697479205370726561642e5368656574732e0d0a596f75722074656d706f72617279207b317d206b65792068617320657870697265642e0d0a456d61696c207370726561642e73616c6573406772617065636974792e636f6d20666f722068656c702e"],ls6:["","506f776572656420627920477261706543697479205370726561642e536865657473204576616c756174696f6e2056657273696f6e0d0a4e6f74204c6963656e73656420666f7220446973747269627574696f6e"]}},function(U,u,l){l(84);l(86);l(87);U.exports=l(88)},function(U,u,l){function d(c){delete c.pK;var d=c.qK;d&&(clearTimeout(d),delete c.qK)}function J(){var c=this;r.call(c);c.typeName="5";w(H,function(d,h){c["_"+d]=h})}function R(c,d,h,a,l){l*=5;d=d.hAlign;var m=h.x-1;h=h.width+1;var n=0,q=0;return 0===c||1===c?(q=m+l,1===d?q=m+h/2-O/2:2===d&&(q=m+h-l-O)):2===c?(n=O+a,q=m+l+a,1===d?q=m+h/2-n/2+a:2===d&&(q=m+h-l-n+a)):(n=O+a,q=m+l,1===d?q=m+h/2-n/2:2===d&&(q=m+h-l-n)),q-m}function Q(c,d,h,a,l){l*=5;d=d.vAlign;var m=h.y-1;h=h.height+1;var n=0,q=0;return 0===c?(n=O+a,q=m+l+a,1===d?q=m+h/2-n/2+a:2===d&&(q=m+h-l-n+a)):1===c?(n=O+a,q=m+l,1===d?q=m+h/2-n/2:2===d&&(q=m+h-l-n)):(q=m+l,1===d?q=m+h/2-O/2:2===d&&(q=m+h-l-O)),q-m}function K(c,d,h,a,l){var m=d.getValue(h,a,l),m=c.rK(m),m={cmd:"editCell",sheetName:d.name(),row:h,col:a,newValue:m,autoFormat:!0};d.wu().execute(m);c.tw(d,h,a,l)}var O,H,I,L=l(85);u=l(26);var F=L.Ul.Nl,G=u.j.Fa,q=L.Ul,D=q.nl;u=L.CellTypes;var A=u.Context,r=u.Base,n=L.GC$,w=n.each,z=Math.max,C=parseInt;u.CheckBoxTextAlign={top:0,bottom:1,left:2,right:3};n.inherit(J,r);O=12;H={caption:"",textTrue:"",textIndeterminate:"",textFalse:"",textAlign:3,isThreeState:!1};I={paintValue:function(c,d,h,a,l,n,q,r){var m,p,g,f,k,t,y,w,B,z,e,b,v,E,u,A,D,F,H;c&&(c.save(),c.rect(h,a,l,n),c.clip(),c.beginPath(),m=q.hAlign,p=q.font,g=q.foreColor,f=this._textAlign,k=this.getText(d,r),t=0,y=0,w=r.sheet,w&&(t=w.dp(k,p),y=w.fp(p),k&&(B=k.split(/\r\n|\r|\n/),y*=B.length)),z=O/2,e=new L.Rect(++h,++a,--l,--n),b=C(""+(h+R(f,q,e,t,w._zoomFactor))),v=C(""+(a+Q(f,q,e,y,w._zoomFactor))),E="left",u=b+1,1===m?(E="center",u+=z):2===m&&(E="right",u+=2*z),p&&c.font!==p&&(c.font=p),g&&(c.fillStyle=g),A=q.textDecoration,D=r.fontInfo.fontSize,F=8<D?Math.floor((D-8)/5+2):1,H=y/2-D/2+F-1,"alphabetic"!==c.textBaseline&&(c.textBaseline="alphabetic"),2===f?(c.textAlign="right",c.fillText(k,b+1-2,v+z+y/2-H),A&&this.ip(c,A,b+1-2,v+z+y/2-H,t,D,F)):0===f&&(c.textAlign=E,c.fillText(k,u,v-2-H),A&&this.ip(c,A,u,v-2-H,t,y)),c.save(),c.strokeStyle="black",c.strokeRect(b+.5,v+.5,2*z+.05,2*z+.05),c.fillStyle="white",c.fillRect(b+1,v+1,2*z-1,2*z-1),this._isThreeState&&G(d)?(c.beginPath(),c.fillStyle="green",c.rect(b+3,v+3,2*(z-2.5),2*(z-2.5)),c.fill()):1==!!d&&(c.beginPath(),c.lineWidth=2.5,c.moveTo(b+3,v+z),c.lineTo(b+z,v+2*z-3.5),c.lineTo(b+2*z-1.5,v+3),c.stroke()),c.restore(),g&&(c.fillStyle=g),3===f?(c.textAlign="left",c.fillText(k,b+1+2*z+2,v+z+y/2-H),A&&this.ip(c,A,b+1+2*z+2,v+z+y/2-H,t,D,F)):1===f&&(c.textAlign=E,c.fillText(k,u,v+2*z+2+y-H),A&&this.ip(c,A,u,v+2*z+2+y-H,t,D,F)),c.restore())},getText:function(c,d){return this.sK(c)},focus:function(c,d){c&&c.parentNode.focus()},createEditorElement:function(c){var d,h,a,l;c=q.vl(c&&c.sheet&&c.sheet.parent&&c.sheet.parent.qo)+1E3;return n(this.b5).css("z-index",c).attr("tabindex",1).attr("gcUIElement","gcEditingInput"),n(this.c5).css("overflow","hidden"),d=n(this.c5),h=n(F("input")),h.attr("type","checkbox"),d.append(h),a=n(F("span")),a.css("position","absolute").css("font","normal 11pt calibri").css("cursor","default").css("white-space","nowrap"),d.append(a),l=n(F("div")),l.css("position","absolute").css("background-color","green").css("width",2*(O/2-2.5)).css("height",2*(O/2-2.5)),d.append(l),null},rK:function(c){return this._isThreeState?!G(c)&&(1!=!!c||null):!c},setEditorValue:function(c,d,h){var a,m,l,q,r,w,p;c&&(a=c.parentNode.children,m=a[0],l=a[1],q=a[2],m&&l&&q&&(r=h&&h.sheet,w=r&&r.HF,w||(d=this.rK(d)),this._isThreeState?G(d)?(p=!1,n(q).show()):(p=!!d,n(q).hide()):p=!!d,m.checked=p,n(l).text(this.sK(d))))},getEditorValue:function(c,d){if(c){var h=c.parentNode.children,a=h[0],m=h[1],h=h[2];if(a&&m&&h&&(!this._isThreeState||!n(h).isVisible()))return a.checked}return null},tw:function(c,d,h,a){var m=c.parent;m&&m.tw(c,d,h,a)},activateEditor:function(c,d,h,a){function m(a,c,d,f,k){var g=k&&k.sheet,h=a.getEditorValue(c,k);a.setEditorValue(c,h,k);a.updateEditor(c,d,f,k);a.tw(g,g.Jl,g.Kl,k.sheetArea)}var l,q,r;l=a&&a.sheet;c&&l&&(q=n(c.parentNode.parentNode),r=this,q.bind("mousedown.gcEditingInput",function(a){D(a)}),q.bind("mouseup.gcEditingInput",function(){m(r,c,d,h,a)}),q.bind("keydown.gcEditingInput",function(a){var c=a.keyCode;if(!a.ctrlKey&&!a.shiftKey&&!a.altKey){if(32===c)return r.tK=!0,D(a),!1;8===c&&D(a)}}),q.bind("keyup.gcEditingInput",function(l){!r.tK||32!==l.keyCode||l.ctrlKey||l.shiftKey||l.altKey||(r.tK=!1,m(r,c,d,h,a))}),c&&n(c).bind("click",function(a){D(a)}))},updateEditor:function(c,d,h,a){var m,l,q,r,w,p,g,f,k,x,z,u,C,A,e,b,v,D,F,G,H,I,K,L,J,U,ga;a=a&&a.sheet;c&&a&&(m=a.yl,l=c.parentNode,q=l.children,r=q[0],w=q[1],p=q[2],r&&w&&p&&(n(l).width(h.width).height(h.height),g=n(w),f=g.text(),k=d.foreColor,x=d.font,z=d.hAlign,u=d.textDecoration,k&&g.css("color",k),C=x?x:m.Bl(),1<a._zoomFactor&&(C=m.Cl(C)),g.css("font",C),A=a.rt(f,C),e=a.fp(C),f&&(b=f.split(/\r\n|\r|\n/),e*=b.length),v=this._textAlign,D=R(v,d,h,A,a._zoomFactor),F=Q(v,d,h,e,a._zoomFactor),n(r).css("margin-left",D).css("margin-top",F),G=r.offsetLeft,H=r.offsetTop,I=r.offsetWidth,K=r.offsetHeight,0===v?(L=G,1===z?L=G+O/2-A/2:2===z&&(L=G+O-A),J=H-e):1===v?(L=G,1===z?L=G+O/2-A/2:2===z&&(L=G+O-A),J=H+K):2===v?(L=G-A-2,J=H+O/2-e/2):(L=G+I+2,J=H+O/2-e/2),g.css("left",L).css("top",J),this._isThreeState?(U=G+(I-p.offsetWidth)/2,ga=H+(K-p.offsetHeight)/2,n(p).css("left",U).css("top",ga).toggle().toggle()):n(p).hide(),u&&this.lp(g,u)))},sK:function(c){var d=this._caption;return this._isThreeState&&G(c)?this._textIndeterminate||d:1==!!c?this._textTrue||d:this._textFalse||d},getHitInfo:function(c,d,h,a,l){return l&&(h=l.sheetArea,G(h)||3===h)?{x:c,y:d,row:l.row,col:l.col,cellRect:a,sheetArea:3,isReservedLocation:!0,sheet:l.sheet}:null},processMouseDown:function(c){return!!c&&void(c.isReservedLocation&&(this.uK=!0))},processMouseUp:function(c){var m,h,a,l,n=c&&c.sheet;if(n&&this.uK&&c.isReservedLocation){if(this.uK=!1,m=c.row,h=c.col,a=c.sheetArea,l=n.Mp(a).getNode(m,h,!0),!l.pK)return K(this,n,m,h,a),l.pK=!0,l.qK=setTimeout(function(){d(l)},250),!0;d(l)}return!1},processMouseLeave:function(c){return!!c&&void(this.uK=!1)},isReservedKey:function(c,d){return 32===c.keyCode&&!c.ctrlKey&&!c.shiftKey&&!c.altKey},processKeyUp:function(c,d){return K(this,d.sheet,d.row,d.col,d.sheetArea),!0},getAutoFitWidth:function(c,d,h,a,l){d=this._textAlign;c=A.cp(c,this.sK(c),h,a,l);return 0===d||1===d?c=z(c,O):c+=O,c+5+2},getAutoFitHeight:function(c,d,h,a,l){d=this._textAlign;c=A.ep(c,this.sK(c),h,a,l);return 0===d||1===d?c+=O:c=z(c,O),c+5},JH:function(c){this.isReservedKey(c)&&D(c)},isImeAware:function(c){return!1},toJSON:function(){var c,d=this,h={typeName:d.typeName};return w(H,function(a,m){c=d["_"+a];c!==m&&(h[a]=c)}),h},fromJSON:function(c){var d=this;w(H,function(h){var a=c[h];G(a)||(d["_"+h]=a)})}};w(H,function(c){I[c]=function(d){return 0===arguments.length?this["_"+c]:(this["_"+c]=d,this)}});n.extend(J.prototype,I);u.CheckBox=J;u._o[5]=J;U.exports=u},function(U,u){U.exports=GC.Spread.Sheets},function(U,u,l){function d(d){delete d.pK;var l=d.qK;l&&(clearTimeout(l),delete d.qK)}function J(){var d=this;A.call(d);d.typeName="6";n(K,function(l,n){d["_"+l]=n})}function R(d,l){d.removeClass(Q);l?d.css("background-color",l):d.addClass(Q)}var Q,K,O;u=l(85);l=l(26);var H=u.Events.SelectionChanged,I=u.Ul.Nl,L=l.j.Fa,F=u.Ul,G=F.nl;l=u.CellTypes;var q=l.Context,D=l.Text,A=l.Base,r=u.GC$,n=r.each;r.inherit(J,A);Q="gc-gradientButton";K={marginTop:2,marginRight:2,marginBottom:2,marginLeft:2,text:"",buttonBackColor:null,buttonState:0};O={paintValue:function(d,l,n,c,m,h,a,q){var r,t,w,z,p,g,f,k,x,B,u;d&&(r=this._marginLeft,t=this._marginTop,w=n+r,z=c+t,p=m-r-this._marginRight,g=h-t-this._marginBottom,f=w+p>n&&w<n+m&&z+g>c&&z<c+h,0<p-2&&0<g-2&&f&&(d.save(),(w<n||w+p>n+m||z<c||z+g>c+h)&&(d.rect(n,c,m,h),d.clip()),d.beginPath(),"#707070"!==d.strokeStyle&&(d.strokeStyle="#707070"),d.strokeRect(w+.5,z+.5,p-1,g-1),x=this._buttonState,B=this._text,2===x?k="#34B4E3":1===x?k="#A6F4FF":(k=this._buttonBackColor,k||(u=d.createLinearGradient(n+m/2,c,n+m/2,c+h),u.addColorStop(.125,"#F6FAFB"),u.addColorStop(1,"#D2DBEB"),k=u)),d.fillStyle!==k&&(d.fillStyle=k),d.fillRect(w+1,z+1,p-2,g-2),d.restore(),B&&D.prototype.paintValue.call(this,d,B,w,z,p,g,a,q)))},getText:function(d,l){return d},focus:function(d,l){d&&d.focus()},createEditorElement:function(d){var l,n;d=F.vl(d&&d.sheet&&d.sheet.parent&&d.sheet.parent.qo)+1E3;return r(this.b5).css("user-select","none").css("z-index",d).attr("tabindex",1).attr("gcUIElement","gcEditingInput"),l=r(I("div")),l.css("position","absolute").css("overflow","hidden").css("border","1px #707070 solid"),n=r(I("span")),n.css("position","absolute").css("white-space","nowrap").css("font","normal 11pt calibri").css("cursor","default"),l.append(n),l[0]},setEditorValue:function(d,l,n){d&&(d=d.firstChild)&&r(d).html(this._text)},getEditorValue:function(d,l){return d?d.Ep:null},tw:function(d,l,n,c){var m=d.parent;m&&m.tw(d,l,n,c)},activateEditor:function(d,l,n,c){var m,h,a,q=c&&c.sheet;d&&q&&(m=r(d.parentNode),h=this,d&&(a=r(d),m.bind("keydown.gcEditingInput",function(c){var d=c.keyCode;if(!c.ctrlKey&&!c.shiftKey&&!c.altKey){if(32===d)return h.tK||R(a,"#34B4E3"),h.tK=!0,G(c),!1;8===d&&G(c)}}),m.bind("keyup.gcEditingInput",function(d){!h.tK||32!==d.keyCode||d.ctrlKey||d.shiftKey||d.altKey||(h.tK=!1,R(a,h._buttonBackColor),h.tw(q,q.Jl,q.Kl,c.sheetArea))}),a.bind("mousedown.gcEditingInput",function(c){2!==c.button&&(h.eG=!0,R(a,"#34B4E3"))}),a.bind("mouseup.gcEditingInput",function(c){2!==c.button&&(h.eG=!1,R(a,"#A6F4FF"))}),a.bind("click.gcEditingInput",function(){h.tw(q,q.Jl,q.Kl,c.sheetArea)}),a.bind("mousemove.gcEditingInput",function(){h.eG?R(a,"#34B4E3"):R(a,"#A6F4FF")}),a.bind("mouseout.gcEditingInput",function(c){c=c.relatedTarget;c!==d&&c!==d.firstChild&&R(a,h._buttonBackColor)})))},updateEditor:function(d,l,n,c){var m,h,a,q,y,t,w,z,p,g,f,k,x,u,C,A,D,e;(c=d&&c&&c.sheet)&&(m=c.yl,d&&(h=this._marginLeft,a=this._marginTop,q=this._text,y=r(d),y.width(n.width-h-this._marginRight).height(n.height-a-this._marginBottom).css("margin-top",a-1).css("margin-left",h-1),R(y,this._buttonBackColor),t=l.foreColor,w=l.font,z=l.vAlign,p=l.hAlign,g=l.textDecoration,f=d.firstChild,f&&(k=r(f),t&&k.css("color",t),x=w?w:m.Bl(),1<c._zoomFactor&&(x=m.Cl(x)),k.css("font",x),u=c.rt(q,x),C=c.fp(x),q&&(A=q.split(/\r\n|\r|\n/),C*=A.length),D=0,1===z?D=y.height()/2-C/2:2===z&&(D=y.height()-C),e=0,1===p?e=y.width()/2-u/2:2===p&&(e=y.width()-u),k.css("top",D).css("left",e),g&&this.lp(k,g))))},getHitInfo:function(d,l,n,c,m){var h,a,q,r,t,w;return m&&(h=m.sheetArea,(L(h)||3===h)&&c)?(a=c.x+this._marginLeft,q=c.x+c.width-this._marginRight,r=c.y+this._marginTop,t=c.y+c.height-this._marginBottom,w={x:d,y:l,row:m.row,col:m.col,cellRect:c,sheetArea:h,sheet:m.sheet},a<=d&&d<=q&&r<=l&&l<=t&&(w.isReservedLocation=!0),w):null},processMouseDown:function(d){var l=d&&d.sheet;return!(!l||!d.isReservedLocation||this.uK)&&(this.uK=!0,this._buttonState=2,l.repaint(d.cellRect),!0)},processMouseUp:function(l){var n,q,c,m,h=l&&l.sheet;if(this.uK&&h&&l.isReservedLocation){if(this._buttonState=0,h.repaint(l.cellRect),this.uK=!1,n=l.row,q=l.col,c=l.sheetArea,m=h.Mp(c).getNode(n,q,!0),!m.pK)return this.tw(h,n,q,c),m.pK=!0,m.qK=setTimeout(function(){d(m)},250),!0;d(m)}return!1},processMouseLeave:function(d){var l=d&&d.sheet;l&&this.uK&&(this._buttonState=0,l.repaint(d.cellRect),this.uK=!1)},processKeyDown:function(d,l){var n,c=l.sheet,m=this;return!(!c||m.vK)&&(n=c.getCellRect(l.row,l.col),m._buttonState=2,c.repaint(n),c.Fu(H+".buttonCellType",function(){c.Gu(H+".buttonCellType");m.vK=!1;m._buttonState=0;c.repaint(n)}),m.vK=!0,!0)},processKeyUp:function(d,l){var n,c,m,h=l.sheet;return!(!h||!this.vK)&&(n=l.row,c=l.col,m=h.getCellRect(n,c),this._buttonState=0,h.repaint(m),h.Gu(H+".buttonCellType"),this.tw(h,n,c,l.sheetArea),this.vK=!1,!0)},isReservedKey:function(d,l){return 32===d.keyCode&&!d.ctrlKey&&!d.shiftKey&&!d.altKey},getAutoFitWidth:function(d,l,n,c,m){return q.cp(d,this._text,n,c,m)+this._marginLeft+this._marginRight},getAutoFitHeight:function(d,l,n,c,m){return q.ep(d,this._text,n,c,m)+this._marginTop+this._marginBottom},JH:function(d){this.isReservedKey(d)&&G(d)},isImeAware:function(d){return!1},toJSON:function(){var d,l=this,q={typeName:l.typeName};return n(K,function(c,m){"buttonState"!==c&&(d=l["_"+c],d!==m&&(q[c]=d))}),q},fromJSON:function(d){var l=this;n(K,function(n){var c=d[n];L(c)||(l["_"+n]=c)})}};n(K,function(d){O[d]=function(l){return 0===arguments.length?this["_"+d]:(this["_"+d]=l,this)}});r.extend(J.prototype,O);l.Button=J;l._o[6]=J;U.exports=l},function(U,u,l){function d(){var a=this;n.call(a);a.typeName="8";a.yn=d.wK();z(H,function(c,d){a["_"+c]=d})}function J(a){return["_blank","_self","_parent","_top"][a]}function R(a,c,d,h,m){var l=0,p=0,g=a.width;a=a.height;return 1===h?l+=C(0,(g-c)/2):2===h&&(l+=C(0,g-c)),1===m?p+=C(0,(a-d)/2):2===m&&(p+=C(0,a-d)),{x:l,y:p}}function Q(a,c,h,m,l,n){var p,g,f,k,q,t=d.xK(n);n=w(t.firstChild);t=t.firstChild.firstChild;return t&&(p=w(t),p.text(a?a:""),m&&p.css("font",m)),g=n.width(),f=n.height(),k={x:0,y:0,width:g,height:f},l&&(q=R(l,g,f,c,h),k.x=q.x,k.y=q.y),k}function K(a,d,h){var m,l,n,p,g,f,k=a.cellStyle,q=a.cellRect,r=d.yl,y=a.x,w=a.y;return h||(h=d.getValue(a.row,a.col,a.sheetArea)+""),!!h&&(h=h.replace(/\s+/g," "),m=k&&k.font?k.font:r.Bl(),1<d._zoomFactor&&(m=r.Cl(m)),l=Q(h,k.hAlign,k.vAlign,m,q,d),n=q.x+l.x,p=c(q.x+l.x+l.width,q.x+q.width),g=q.y+l.y,f=c(q.y+l.y+l.height,q.y+q.height),n<=y&&y<p&&g<=w&&w<f)}function O(a,c,d,h,m){var l,p,g;return(h=h&&h.sheet)?(l=h.yl,p=c.font||l.Bl(),1<d&&(p=l.Cl(p)),g=Q(a,c.hAlign,c.vAlign,p,null,h),m?g.width:g.height):0}var H,I,L=l(85);u=l(26);var F=L.Ul.Nl,G=u.j.Fa,q=L.Ul,D=q.Ml,A=D.mozilla;u=L.CellTypes;var r=u.Text,n=u.Base,w=L.GC$,z=w.each,C=Math.max,c=Math.min,m=Math.floor,h=window.open;u.HyperLinkTargetType={blank:0,self:1,parent:2,top:3};w.inherit(d,n);H={link:"",linkColor:"#0066cc",visitedLinkColor:"#3399ff",text:"",linkToolTip:"",target:0};I={paintValue:function(a,c,d,h,l,n,p,g){var f,k,q,t,r,y,w,e,b,v,B,z,E,u,M,F,G,H,I,K,T,J,O,aa;!this.yK&&a&&(f=this.getText(c,g)+"",f&&(f=f.replace(/\s+/g," "),k=!1,q=g.sheet.Mp().getNode(g.row,g.col),t=q&&q.hyperlinkInfo,t&&(this.yn===t.id?k=t.visited:delete q.hyperlinkInfo),a.save(),a.beginPath(),r=k?this._visitedLinkColor:this._linkColor,r&&a.fillStyle!==r&&(a.fillStyle=r),y=p.font,y&&a.font!==y&&(a.font=y),w=p.hAlign,e=p.vAlign,b=a.measureText(f).width,v=g.lineHeight,B=R(new L.Rect(d,h,l,n),b,v,w,e),z={x:d,y:h,width:l,height:n},(B.x+b>z.width||B.y+v>z.height)&&(a.rect(z.x,z.y,z.width,z.height),a.clip(),a.beginPath()),E=1,u="left",1===w?b<l-3&&(E=l/2,u="center"):2===w&&b<l-3&&(E=l-1,u="right"),a.textAlign!==u&&(a.textAlign=u),M=1,F=g.fontInfo.fontSize,G=8<F?m((F-8)/5+2):1,H=v/2-F/2+G-1,M+=v-H,1===e?v<n&&(M=A?n/2+1:D.msie?n/2+.5:n/2,m(M)!==M&&(M+=.5),M+=v/2-H):2===e&&(M=n-2.5-H),"alphabetic"!==a.textBaseline&&(a.textBaseline="alphabetic"),a.fillText(f,d+E,h+M),I=p.textDecoration,I&&this.ip(a,I,d+E,h+M,b,F,G),K=d+B.x,T=K+b,2!==w&&(K+=1,T+=1),J=h+B.y+v,2===p.vAlign&&(J-=.5),J-=C(0,Math.round(v/9)-1),m(J)===J&&(J+=.5),O=J,a.beginPath(),aa=this._linkColor,k&&(aa=this._visitedLinkColor),aa&&a.strokeStyle!==aa&&(a.strokeStyle=aa),a.lineWidth=1,a.moveTo(K,J),a.lineTo(T,O),a.stroke(),a.restore()))},getText:function(a,c){return this._text||a},createEditorElement:function(a){var c,d;a=q.vl(a&&a.sheet&&a.sheet.parent&&a.sheet.parent.qo)+1E3;return w(this.b5).css("white-space","nowrap").css("z-index",a).attr("gcUIElement","gcEditor").attr("tabindex",1),c=J(this._target),d=F("a"),w(d).css("margin",0).css("outline","none").css("display","block").css("overflow","hidden").attr("target",c).appendTo(w(this.c5)).css("text-decoration","none"),d},tw:function(a,c,d,h){if(!a.HF){var m=a.parent;m&&m.tw(a,c,d,h)}},activateEditor:function(a,c,d,h){var m,l,p,g,f;a&&d&&(m=h&&h.sheet,w(a.parentNode.parentNode).bind("keydown",function(a){8!==a.keyCode||a.ctrlKey||a.shiftKey||a.altKey||q.nl(a)}),l=this,a&&(p=w(a),p.bind("click",function(){var a,c,f;return p.css("color",l._visitedLinkColor),m&&(a=m.Jl,c=m.Kl,f=m.Mp().getNode(a,c,!0),f.hyperlinkInfo={id:l.yn,visited:!0},l.tw(m,a,c,h.sheetArea)),!1})),g=F("div"),w(g).css("margin",0).css("position","absolute").css("overflow","hidden").css("box-sizing","content-box").attr("gcUIElement","gcEditingInput").css("border","none").css("background-color","transparent"),f=m&&m.zo(),f&&f.insertBefore(g,null),l.zK=g,l.yK=!0)},deactivateEditor:function(a,c){var d,h=c&&c.sheet;this.zK&&(d=h&&h.zo())&&d.removeChild(this.zK);a&&(w(a.parentNode.parentNode).unbind("keydown"),a&&w(a).unbind("click"));r.prototype.deactivateEditor.call(this,a,c);this.yK=!1;h&&h.repaint()},updateEditor:function(a,c,d,h){var m,l,p,g,f,k,n,q,t,r;a&&d&&(m=this._link,l=h&&h.sheet,p=l&&l.yl,a&&(g=w(a),m&&g.attr("href",m),f=this._text||m,f&&g.text(f),g.attr("title",this._linkToolTip),k=!1,n=l?l.Mp().getNode(l.Jl,l.Kl):null,n&&n.hyperlinkInfo&&(this.yn===n.hyperlinkInfo.id?k=n.hyperlinkInfo.visited:delete n.hyperlinkInfo),k?g.css("color",this._visitedLinkColor):g.css("color",this._linkColor),q=c.font,!q&&p&&(q=p.Bl()),p&&1<l._zoomFactor&&(q=p.Cl(q)),q&&g.css("font",q)),c&&l&&(t=w(a.parentNode),r=R(d,t.width(),t.height(),c.hAlign,c.vAlign),t.css("top",parseInt(t.css("top"))+r.y).css("left",parseInt(t.css("left"))+r.x),this.zK&&(w(this.zK).css("top",d.y).css("left",d.x).height(d.height).width(d.width).css("border-color",c.backColor||"white"),g.css("width",d.width)),c.textDecoration&&this.lp(t,c.textDecoration)))},getEditorValue:function(a,c){return this._link},setEditorValue:function(a,c,d){this._link=c},getHitInfo:function(a,c,d,h,m){if(m){var l=m.sheetArea;if((G(l)||3===l)&&d&&h)return{x:a,y:c,row:m.row,col:m.col,cellStyle:d,cellRect:h,sheetArea:l,isFocusAware:!0,sheet:m.sheet}}return null},processMouseDown:function(a){var c=a&&a.sheet;c&&!c.isEditing()&&(K(a,c,this._text||this._link)?(a.isReservedLocation=!0,this.AK=!0):a.isReservedLocation=!1)},processMouseUp:function(a){var c,d,m,l,n,p,g=a&&a.sheet;g&&!g.isEditing()&&(K(a,g,this._text||this._link)?(a.isReservedLocation=!0,this.AK&&(c=a.row,d=a.col,m=a.sheetArea,l=g.getValue(c,d,m),n=J(this._target),l&&h(l,n),p=g.Mp(m).getNode(c,d,!0),p.hyperlinkInfo={id:this.yn,visited:!0},g.repaint(a.cellRect),this.tw(g,c,d,m))):a.isReservedLocation=!1,this.AK=!1)},processMouseMove:function(a){var c,d,h=a.row,m=a.col,l=a.sheet;!l||l.isEditing()&&l.getActiveRowIndex()===h&&l.getActiveColumnIndex()===m||(c=l.Ws(),K(a,l,this._text||this._link)?(a.isReservedLocation=!0,this.BK(l,a),d=l.getValue(h,m,a.sheetArea),d&&c&&(c.style.cursor=d?"pointer":"text")):(a.isReservedLocation=!1,this.CK(l),c&&(c.style.cursor="default")))},processMouseLeave:function(a){var c;a=a.sheet;this.AK=!1;this.CK(a);a&&(c=a.Ws(),c&&(c.style.cursor="default"))},BK:function(a,c){var d,h,m,l,p,g;this._linkToolTip&&(d=this.DK(),h=w(d),h.text(this._linkToolTip),m=a.mm.bG(),l=m.left+c.x,p=m.top+c.y+20,0===h.parent().length&&(g=a&&a.zo(),g&&g.insertBefore(d,null),h.css("top",p).css("left",l)))},CK:function(a){this.EK&&((a=a&&a.zo())&&this.EK.parentElement===a&&a.removeChild(this.EK),this.EK=null)},DK:function(){var a;return this.EK||(a=F("div"),w(a).css("position","absolute").css("margin",0).css("padding",2).css("border","1px #c0c0c0 solid").css("box-shadow","1px 2px 5px rgba(0,0,0,0.4)").css("box-sizing","content-box").css("background-color","white").css("font","9pt Arial"),this.EK=a),this.EK},isReservedKey:function(a,c){return 32===a.keyCode&&!a.ctrlKey&&!a.shiftKey&&!a.altKey},processKeyUp:function(a,c){var d,m,l,n,p,g,f=c.sheet;return!!f&&(d=c.row,m=c.col,l=c.sheetArea,n=f.getValue(d,m,l),p=J(this._target),n&&(n=""+n,h(n,p)),g=f.Mp(l).getNode(d,m,!0),g.hyperlinkInfo={id:this.yn,visited:!0},f.repaint(f.getCellRect(d,m)),this.tw(f,d,m,l),!0)},getAutoFitWidth:function(a,c,d,h,m){return O(this._text||a,d,h,m,!0)},getAutoFitHeight:function(a,c,d,h,m){return O(this._text||a,d,h,m)},isImeAware:function(a){return!1},toJSON:function(){var a,c=this,d={typeName:c.typeName};return z(H,function(h,m){"link"!==h&&(a=c["_"+h],a!==m&&(d[h]=a))}),d},fromJSON:function(a){var c=this;z(H,function(d){var h=a[d];G(h)||(c["_"+d]=h)})}};z(H,function(a){I[a]=function(c){if("link"!==a)return 0===arguments.length?this["_"+a]:(this["_"+a]=c,this)}});w.extend(d.prototype,I);d.wK=function(){return G(this.yn)&&(this.yn=0),"id_"+this.yn++};d.xK=function(a){var c,h;return this.FK||(c=d.prototype.a5({sheet:a}),h=c.style,document.body.insertBefore(c,null),h.visibility="hidden",h.top="-10000px",h.left="-10000px",this.FK=c),this.FK};u.HyperLink=d;u._o[8]=d;U.exports=u},function(U,u,l){function d(a){return a&&a.parentNode.parentNode.comboBox}function J(){var a=this;c.call(a);a.typeName="7";a.DF=!1;a.GK=!1;h(q,function(c,d){"items"===c&&(d=[]);a["_"+c]=d})}function R(a,c,d,h,g,f){var k,p=this;p.KK=a;k=a.firstChild;m(a).bind("keydown",function(a){p.LK(a)}).css("z-index",f||0).css("left",c).css("top",d).css("width",h).css("height",g).css("overflow","visible").attr("gcUIElement","gcComboBox");a=B(0,h-K);p._editable=!1;p.MK=c=r("div");p.NK=d=r("textarea");p.PK=c;k.appendChild(c);Q(c);Q(d);m(d).bind("keyup",function(){var a,c=p.PK.value;p._text=c;a=p.QK(c);p.editorValue(a);p.RK(c);p.SK()}).bind("mouseover",function(){p.TK()}).bind("mouseout",function(){p.SK()});m(c).bind("click",function(){p.IK?p.Wq(G,{isMouse:!0}):p.UK()}).bind("mouseover",function(){p.TK()}).bind("mouseout",function(){p.SK()});p.VK(0,0,a,g);c=p.WK=r("div");k.appendChild(c);m(c).css("border","none").css("position","absolute").css("background-color","white").css("box-sizing","content-box").attr("gcUIElement","gcDropDownButton").bind("click",function(){var a,c;!n(p.JK)&&(a=p.JK,p.JK=void 0,c=(new Date).valueOf(),100>c-a)||(p.IK?p.Wq(G,{isMouse:!0}):p.UK())});d=r("canvas");p.Xs=d;p.XK(a,0,h-a,g);c.appendChild(d);a=p.YK=r("div");k.appendChild(a);p.ZK=!1;m(a).css("position","absolute").css("border","1px solid").css("background-color","white").css("z-index",f||0).css("outline","none").css("display","none").css("cursor","default").css("box-sizing","content-box").attr("gcUIElement","gcDropDownWindow").attr("tabindex",-1).css("width",h-2*H).css("height",g);p.$K(0,g-2*H);p._K=0;h=p.aL=r("div");a.appendChild(h);p.bL=new A.IB(a,h);p._itemHeight=22;p.cL=O;p.dL=-1;p._editorValueType=0;p._items=[]}function Q(a){m(a).css("margin",0).css("overflow","hidden").css("resize","none").css("position","absolute").css("padding",L+"px 0px 0px "+I+"px").css("outline","none").css("background-color","white").css("white-space","nowrap").css("box-sizing","content-box").css("border","none").attr("gcUIElement","gcComboBoxEditor").attr("tabindex",-1)}var K,O,H,I,L,F,G,q,D,A=l(85);u=l(26);var r=A.Ul.Nl,n=u.j.Fa,w=A.Ul,z=w.nl,C=A.CellTypes,c=C.Base,m=A.GC$;u=m.extend;var h=m.each,a=document,B=Math.max,y=parseInt;C.EditorValueType={text:0,index:1,value:2};K=17;O=20;H=0;F=L=I=1;G="EndEdit.gcEditingInput";q={editorValueType:0,items:null,itemHeight:22,editable:!1,maxDropDownItems:O};m.inherit(J,c);D={isReservedKey:function(a,c){return this.GK},paintValue:function(a,d,h,m,g,f,k,l){var p=K,n=B(0,g-p-1);3===k.hAlign&&(k.hAlign=0);k.wordWrap&&(k.wordWrap=!1);0<n&&0<f&&c.prototype.paintValue.call(this,a,this.getText(d,l),h,m,n,f,k,l);a.save();(p>g||p>f)&&(a.rect(h,m,g,f),a.clip());a.beginPath();a.lineWidth=2;a.fillStyle="black";a.moveTo(h+g-p+3,m+(f-2)/2-2.5);a.lineTo(h+g-p+6,m+(f-2)/2+3.5);a.lineTo(h+g-p+9,m+(f-2)/2-2.5);a.fill();a.restore()},getText:function(a,c){return a},createEditorElement:function(a){var c,d=(a=a&&a.sheet)&&a.parent,d=w.vl(d&&d.qo)+1E3;a=a.defaults;a=new R(this.b5,0,0,a.colWidth,a.rowHeight,d);return a.editorValueType(this._editorValueType),a.items(this._items),a.itemHeight(this._itemHeight),a.itemCountPerPage(this._maxDropDownItems),a.editable(this._editable),c=a.getComboBox(),Object.defineProperty(c,"comboBox",{value:a,writable:!1}),null},getEditorValue:function(a,c){var h=d(a);return h&&(this.DF=!h.HK),h&&h.editorValue()},setEditorValue:function(a,c,h){(a=d(a))&&a.editorValue(c)},focus:function(a,c){var h=d(a);h&&h.focus()},selectAll:function(a,c){var h=d(a);h&&h.selectAll()},activateEditor:function(a,c,h,m){var g=m.sheet,f=d(a);f&&(f.editorValueType(this._editorValueType),f.items(this._items),f.itemHeight(this._itemHeight),f.itemCountPerPage(this._maxDropDownItems),f.editable(this._editable),f.bind(G,function(a,c){var d,k,h;if(h=c.keyCode){if(d=g.wu(),k=d.getShortcutKey(h,!1,!1,!1,!1),h=d.getCommands(k))for(d=0,k=h.length;d<k;d++)if("navigationLeft"!==h[d].name&&"navigationRight"!==h[d].name||(g.Px=1),h[d].execute(g.parent,{sheetName:g.name()}))return!0}else c.isMouse&&f.IK&&g.endEdit()}));this.GK=!0},deactivateEditor:function(a,c){if(a){var h=d(a);h&&(h.unbind(G),h.closeDropDownList(),h.IK=!1)}this.GK=!1},updateEditor:function(a,c,h,m){var g,f;(m=a&&m&&m.sheet)&&(g=d(a),c&&g&&(f=m.yl,g.updateStyle(c.backColor,c.foreColor,f.Cl(c.font||f.Bl()))),h&&g&&g.updateLocationAndSize(h.x,h.y,h.width,h.height))},format:function(a,d,h,m){var g,f,k;if(n(a))return"";if(g=this._editorValueType,f=this._items,f)if(m=f.length,1===g)g=y(a),0<=g&&g<m&&(k=f[g],void 0!==k&&null!==k&&(a=k.hasOwnProperty("text")?k.text:k));else if(2===g)for(g=0;g<m;g++)if(k=f[g],k&&k.hasOwnProperty("value")&&k.value===a){a=k.text;break}return c.prototype.format.call(this,a,d,h)},parse:function(a,d,h){var m,g;g=this._editorValueType;h=this._items;d=c.prototype.parse.call(this,a,d);if(h){if(a=h.length,0===g)return d;if(1===g)for(g=0;g<a;g++){if(m=h[g],m&&m.hasOwnProperty("text")&&m.text===d||m===d)return g}else if(2===g)for(g=0;g<a;g++)if(m=h[g],m&&m.hasOwnProperty("text")&&m.text===d)return m.value}return d},getHitInfo:function(a,c,d,h,g){var f,k,m,p;return g?(f=g.sheetArea,k=g.sheet,(n(f)||3===f)&&h&&(m=h.x+h.width,p={x:a,y:c,row:g.row,col:g.col,cellStyle:d,cellRect:h,sheetArea:f,sheet:k},m-K<=a&&a<m)?(p.isReservedLocation=!0,p):null):null},processMouseDown:function(a){var c,h=a.sheet,m=a.sheetArea;(n(m)||3===m)&&a.isReservedLocation&&h&&(h.startEdit(),c=d(h.BF),c&&(w.Ml.mozilla&&(c.JK=(new Date).valueOf()),c.showDropDownList(),c.IK=!0))},getAutoFitWidth:function(a,c,d,h,g){d&&d.wordWrap&&(d.wordWrap=!1);return C.Context.cp(a,c,d,h,g)+K},getAutoFitHeight:function(a,c,d,h,g){return d&&d.wordWrap&&(d.wordWrap=!1),C.Context.ep(a,c,d,h,g)},isImeAware:function(a){return!0},toJSON:function(){var a,c=this,d={typeName:c.typeName};return h(q,function(h,g){a=c["_"+h];("items"===h?a&&0<a.length:a!==g)&&(d[h]=a)}),d},fromJSON:function(a){var c=this;h(q,function(d){var h=a[d];n(h)||(c["_"+d]=h)})}};h(q,function(a){D[a]=function(c){return 0===arguments.length?this["_"+a]:(this["_"+a]=c,this)}});u(J.prototype,D);C.ComboBox=J;C._o[7]=J;u(R.prototype,{getComboBox:function(){return this.KK},updateLocationAndSize:function(a,c,d,h){a=B(0,d-K);this.VK(0,0,a,h);this.XK(a,0,d-a,h);this.$K(0,h-2*H);this.listWidth(d-2*H);this.eL()},updateStyle:function(a,c,d){m(this.PK).css("background-color",a).css("color",c).css("font",d);m(this.WK).css("background-color",a).css("color",c).css("font",d);m(this.YK).css("background-color",a).css("color",c).css("font",d)},editorValueType:function(a){return 0===arguments.length?this._editorValueType:(this._editorValueType=a,this)},editorValue:function(a){var c;return 0===arguments.length?this.fL:(a!==this.fL&&(this.fL=a,c=this.gL(a),this.text(c),this.RK(c,!0)),this)},gL:function(a){var c,d,h,g=this._items,f=g.length;h=this._editorValueType;if(this.HK=!0,1===h)c=(d=g[a])&&d.hasOwnProperty("text")?d.text:d,void 0===c&&(c=a,this.HK=!1);else if(0===h){c=a;for(h=0;h<f&&(d=g[h],!(d&&d.hasOwnProperty("text")&&d.text===a||d===a));h++);h>=f&&(this.HK=!1)}else if(2===h){for(h=0;h<f;h++)if(d=g[h],d&&d.hasOwnProperty("value")&&d.value===a){c=d.text;break}h>=f&&(c=a,this.HK=!1)}return n(a)&&(c=""),c},QK:function(a){var c,d,h=this._items,g=h.length;c=this._editorValueType;var f=a;if(1===c)for(d=0;d<g;d++)((c=h[d])&&c.hasOwnProperty("text")&&c.text===a||c===a)&&(f=d);else if(2===c)for(d=0;d<g;d++)(c=h[d])&&c.hasOwnProperty("text")&&c.text===a?f=c.value:c===a&&(f=void 0);return f},RK:function(a,c){var d,h,g,f;if(a){h=this._items;g=h.length;for(d=0;d<g&&(f=h[d],f.hasOwnProperty("text")&&(f=f.text),(c?f:(""+f).substr(0,a.length))!==a);d++);d>=g&&(d=-1)}else d=-1;this.hL(d)},SK:function(){m(this.PK).removeAttr("title")},TK:function(){var a=this.Xn(this._text),c=m(this.PK),d=c.width();a>d+I?c.attr("title",this._text):c.removeAttr("title")},VK:function(a,c,d,h){d-=H;h-=2*H;m(this.PK).css("left",a).css("top",c).css("width",d-I).css("height",h-L)},updateImeMode:function(a,c){if(this.isImeAware()){var h=d(a);h&&h.PK&&m(h.PK).css("ime-mode",c)}},editable:function(a){var c,d,h,g,f,k,l,n,q;0===arguments.length?c=this._editable:this._editable!==a?(this._editable=a,n=this.KK.firstChild,q=this.PK,d=m(q),g=y(d.css("left")),f=y(d.css("top")),k=y(d.css("width")),l=y(d.css("height")),c=d.css("background-color"),d=d.css("color"),h=q.style.font,n.removeChild(q),q=this.PK=a?this.NK:this.MK,n.appendChild(q),c=(m(this.PK).css("background-color",c).css("color",d).css("font",h),this.VK(g,f,k,l),this)):c=void 0;return c},text:function(a){var c=this.PK;return 0===arguments.length?this._text:void(a!==this._text&&(this._text=a,this._editable?c.value=a:c.textContent=a))},focus:function(){var a=this.PK;a.focus();this._editable&&(a.selectionStart=a.value.length)},selectAll:function(){this._editable&&this.PK.select()},XK:function(a,c,d,h){var g;d-=H;h-=2*H;g=this.Xs;m(this.WK).css("left",a).css("top",c).css("width",d).css("height",h);m(g).attr("width",d).attr("height",h);a=g.width;c=g.height;g=g.getContext("2d");g.beginPath();g.lineWidth=2;g.fillStyle="black";g.moveTo(a-K+4,(c-2)/2-2.5);g.lineTo(a-K+7,(c-2)/2+3.5);g.lineTo(a-K+10,(c-2)/2-2.5);g.fill()},showDropDownList:function(){var a=this,c=a.bL;a.ZK=!0;m(a.YK).bind("keydown",function(c){a.LK(c)}).show();a.iL=!1;a.jL();a.eL();a.iL&&(c.lB(m(a.aL.children).height()),c.ew(!1));a.kL("#1E90FF");a.lL(a.dL);a.focus()},closeDropDownList:function(){this.ZK=!1;m(this.YK).unbind("keydown").hide();this.kL("");this.focus()},UK:function(){this.ZK?this.closeDropDownList():this.showDropDownList()},listWidth:function(a){var c=m(this.YK);return 0===arguments.length?c.width():void(0<a&&(c.width(a),this.bL.ew(!1)))},listHeight:function(a){var c=m(this.YK);return 0===arguments.length?c.height():void(0<a&&(c.height(a),this.bL.ew(!1)))},$K:function(a,c){m(this.YK).css("left",a).css("top",c)},items:function(a){var c,d,h;if(0===arguments.length)return this._items;if(a){this._items=a;for(c=this.aL;d=c.firstChild;)c.removeChild(d);c=this._K=0;for(d=a.length;c<d;c++)h=a[c],this.mL(h.hasOwnProperty("text")?h.text:h);return this}},mL:function(a){var c=this,d=r("div"),h=r("span");h.textContent=""+a;h.style.paddingLeft=F+"px";d.appendChild(h);c.aL.appendChild(d);c._K++;m(d).bind("click",function(){var a=m(d).index();c.selectedIndex(a);c.closeDropDownList();c.Wq(G,{isMouse:!0})}).bind("mouseover",function(){var a=m(d);d.oldBackColor=a.css("background-color");a.css("background-color","lightgrey")}).bind("mouseout",function(){m(d).css("background-color",d.oldBackColor||"")})},nL:function(){m(this.Po=r("span")).css("display","none").css("font",this.YK.style.font).appendTo(a.body)},oL:function(){a.body.removeChild(this.Po)},pL:function(a){return this.Po.textContent=a,m(this.Po).width()+2+F},kL:function(a){var c=this.dL;0<=c&&c<this._K&&m(this.aL.children[c]).css("background-color",a)},LK:function(a){var c,d,h,g,f;a.ctrlKey||a.shiftKey||a.altKey||a.metaKey||(c=this._K,d=this.dL,h=a.keyCode,g=a.which,f=0,38===g||40===g?(0<=d&&d<c&&(f=d+(38===g?-1:1)),0<=f&&f<c&&this.selectedIndex(f),this.ZK&&this.lL(f),z(a)):13===g||37===g||39===g||9===g?(this.selectedIndex(this.dL),this.closeDropDownList(),this.Wq(G,{keyCode:h}),z(a)):27===g&&(this.closeDropDownList(),this.Wq(G,{keyCode:h}),z(a)))},getSelectedValue:function(a,c,d){var h;c=c[a];return n(c)||(1===d?h=a:0===d?h=c.hasOwnProperty("text")?c.text:c:2===d&&c.hasOwnProperty("value")&&(h=c.value)),h},hL:function(a){this.kL("");this.dL=a;this.kL("#1E90FF");this.lL(a)},selectedIndex:function(a){var c;return 0===arguments.length?this.dL:void(0<=a&&a<this._K&&(this.hL(a),c=this.getSelectedValue(this.dL,this._items,this._editorValueType),n(c)||this.editorValue(c)))},itemCountPerPage:function(a){return 0===arguments.length?this.cL:void(0<a&&(this.cL=a))},Xn:function(a){this.nL();a=this.pL(a);return this.oL(),a},itemHeight:function(a){return 0===arguments.length?this._itemHeight:void(0<a&&(this._itemHeight=a))},jL:function(){var a,c,d,h;this.nL();a=this._items[0];a=B(this._itemHeight,m(this.Po).text(n(a)?"":a).height());m(this.aL.children).css("height",a);d=this._K;h=this.cL;d<=h?c=d*a:(c=h*a,this.iL=!0);this.listHeight(c);this.oL()},eL:function(){var a,c,d,h,g;if(this.nL(),a=0,d=this._items)for(h=0,g=d.length;h<g;h++)c=d[h],c=this.pL(c.hasOwnProperty("text")?c.text:c),a<c&&(a=c);this.oL();this.listWidth()<a+18&&this.listWidth(a+18)},lL:function(a){0<=a&&a<this._K&&this.bL.BB(this.aL.children[a])},bind:function(a,c,d){m(this.KK).bind(a,c,d)},unbind:function(a,c){m(this.KK).unbind(a,c)},Wq:function(a,c){m(this.KK).trigger(a,c)}});U.exports=C},function(U,u,l){function d(d,l){for(var u in l)l.hasOwnProperty(u)&&(d[u]=l[u])}var J;u={};l(90);J=l(91);d(u,J);J=l(92);d(u,J);J=l(93);d(u,J);u.SR={};u.SR.en=l(94);U.exports=u},function(U,u,l){function d(d,l,u){"string"==typeof u&&(u={name:u});d.nq().Kp(l,u);var F=u&&u.formatter,G=u&&u.cellType;F&&d.setFormatter&&d.setFormatter(-1,l,F);G&&d.setCellType(-1,l,G);u&&u.width&&d.setColumnWidth(l,u.width)}var J,R,Q,K,O;U=l(26);J=l(91).qL;R=U.j.Fa;Q=l(85);l=Q.Worksheet;K=Q.GC$.isEmptyObject;u=l.prototype;O=U.l;Q.GC$.extend(u,{getDataSource:function(){var d=this.wq;return d?d.getSource():null},setDataSource:function(d,l){var u,F,G,q;if((q=this.wq)&&q.getSource()!==d){if(l&&this.vs(),d){if(q=this.wq,u=q.bind(d),!u&&(this.setRowCountCore(q.getRowCount()),this.autoGenerateColumns&&(this.setColumnCount(q.getColumnCount()),F=this.nq(),G=q.rL())))for(u=0,q=G.length;u<q;u++)F.Kp(u,{name:G[u]})}else this.wq=new J(this);this.clearPendingChanges();Q.X3&&this.recalcAll();this.$p()}},bindColumn:function(l,u){this.suspendPaint();try{d(this,l,u)}finally{this.resumePaint()}},bindColumns:function(l){var u,H;this.suspendPaint();try{if(l)for(u=l.length,isNaN(u)||this.setColumnCount(u),H=0;H<u;H++)d(this,H,l[H])}finally{this.resumePaint()}},getDataItem:function(d){var l,u,F,G;F=this.wq;var q=this.nq();if(!F||0===F.getRowCount())return null;if(l=this.getColumnCount(),u={},F=F.ru(d))for(G in F)F.hasOwnProperty(G)&&"function"!=typeof G&&(u[G]=F[G]);for(G=0;G<l;G++)(F=q.Jp(G))&&F.name&&0<F.name.length&&(u[F.name]=this.getValue(d,G));return u},getDataColumnName:function(d){var l;return 0<=d&&d<this.getColumnCount()&&this.getDataSource()?(l=this.nq().Jp(d),l&&(l.displayName||l.name)):null},getBindingPath:function(d,l){return this.Mp().getValueForKey(d,l,"bindingPath")},setBindingPath:function(d,l,u){return this.Mp().setValueForKey(d,l,"bindingPath",u),this.$p(),this}});U=Q.CellRange;U.prototype.bindingPath=U.Pl(u.getBindingPath,u.setBindingPath);l.$n("binding",{init:function(){this.autoGenerateColumns=!0;this.wq=new J(this)},dispose:function(d){!1!==d&&(this.wq=null)},onLayoutChanged:function(d){var l,u,F,G,q,D;l=d.changeType;var A=d.row,r=d.rowCount;u=d.sheetArea;var n=this.wq;if("addingRows"===l)n&&!1===n.sL()?d.canAdd=!1:n&&!1===n.tL()&&(d.newRow=this.getRowCount());else if("addRows"===l)n&&n.uL(A,r);else if("deletingRows"===l){if(n)if(!1===n.vL())d.canDelete=!1;else for(d=this.Ts||(this.Ts=[]),l=this.Mp(),u=n.getRowCount(),F=0;F<r&&A+F<l.getRowCount();F++)G=null,A+F<u&&(G=n.ru(A+F)),q=null,(D=l.dataTable)&&D[A+F]&&(q=D[A+F].key),d.push({row:A+F,data:G,key:q})}else"deleteRows"===l?n&&n.wL(A,r):"settingRowCount"===l&&(!n.getSource()||n.xL()||3!==u&&2!==u||(d.canSet=!1))},toJson:function(d,l){function u(d,l,q,z){var n,c,m,h,a=d.wq;for(n=0;n<q;n++)for(c=0;c<z;c++)m=a.getValue(n,c).value,R(m)||(h=m,O.Mia(m)&&(h=O.Daa(m)),d.qI(l,n,c,h))}function F(d,l,q,z){var n,c,m,h,a,r=d.nq().Hp(),y=d.options.colHeaderAutoTextIndex;for(n=0;n<q;n++)if(0<=y&&n===y||-1===y&&n===q-1)for(c=0;c<z;c++)m=l[n]&&l[n][c]&&l[n][c].value,h=r[c],R(m)&&h&&(a=h.displayName||h.name,a&&d.qI(l,n,c,a))}var G,q,D,A;G=this.getColumnCount();q=this.getDataSource();l&&l.includeBindingSource&&q&&(D=d.data.dataTable||{},u(this,D,this.getRowCount(),G),K(D)||(d.data.dataTable=D),A=d.colHeaderData.dataTable||{},F(this,A,this.getRowCount(1),G),K(A)||(d.colHeaderData.dataTable=A));!0!==this.autoGenerateColumns&&(d.autoGenerateColumns=this.autoGenerateColumns)},fromJson:function(d,l){var u,F,G;this.wq=new J(this);l&&(u=this.wq,F=d.dataSource,G=d.dataBinding,F&&u.bind(F),G&&u.fromJSON(G,l));u=d.autoGenerateColumns;R(u)||(this.autoGenerateColumns=u)},preFromJson:function(){this.wq=new J(this)}})},function(U,u,l){function d(c){this.xf=c}function J(c){this.ad(c)}function R(c,d){var h=c&&c.wq;return!(!h||!h.xL(d))&&(c.clearPendingChanges(),c.Wq(C.InitBinding,{sheet:c,data:d}),!0)}function Q(c,d,h){var a,m,l,n,r,w,p,g,f=c.Ou,k={value:F,hasBinding:!1};if(!f)return k;if(a=c.kj,m=c.CL,m===q){if(c=a?a.getBindingPath(d,h):F)return{value:f.getValue(c),hasBinding:!0}}else{if(0>d||c.getRowCount()<=d||(r=a?a.getColumnCount():c.getColumnCount(),0>h||r<=h))return k;if(a?(c.qia||(c.qia=a.nq().Hp()),l=c.qia[h],l&&(n=l.name)):c.HL&&(n=c.HL[h]),m)return w=G[m],p=l&&l.value,g=O(p)?p:F,w.getValue(f,g,n,d,h)}return k}function K(c){var m=F;return c&&(d&&c instanceof d?m=q:n.each(G,function(d,a){if(a.isDataSource(c))return m=d,!1})),m}function O(c){return c instanceof Function}function H(c,d,h){var a,m,l;if(c&&d)for(d=d.split("."),a=d.length,m=0;m<a&&(l=d[m],c);m++)m===a-1?O(c[l])?c[l](h):c[l]=h:c=O(c[l])?c[l]():c[l]}function I(c,d){var h,a,m,l;if(!c||!d)return F;h=d.split(".");a=h.length;m=0;do if(l=h[m],c=O(c[l])?c[l]():c[l],z(c))return F;while(++m<a);return c}function L(){}var F,G,q,D,A=l(85),r=l(26),n=A.GC$,w=n.isNumeric,z=r.j.Fa,C=A.Events;u={};F=null;G=u.yL={};q="cellBinding";D=function(){return r.C(u.SR)()};d.prototype={setValue:function(c,d){H(this.xf,c,d)},getValue:function(c){return I(this.xf,c)},getSource:function(){return this.xf}};u.CellBindingSource=d;J.prototype={bind:function(c){var d,h,a,l,n=this.kj,t=this.Ou;if(t&&(t.xia&&(t.subscribe=t.xia,delete t.yia,delete t.xia),O(t.dispose)&&t.dispose()),this.zL(this.AL),this.zL(this.BL),this.ad(n),this.Ou=c,c){if(d=this.CL=K(c),!d)throw Error(D().Exp_NotSupportedDataSource);this.DL=this.EL();n&&(h=this.AL,a=c.currentPosition,c.subscribe&&h.push(c.subscribe(this.FL,this)),a&&a.subscribe&&h.push(a.subscribe(this.GL,this)),O(c.subscribe)&&(c.xia||(l=c.xia=c.subscribe,c.yia=!1,c.subscribe=function(a,d){var h=[].concat.apply([],arguments);return h[0]=function(){if(!c.yia&&O(a))return a.apply(d,arguments)},l.apply(c,h)})),this.Lx());this.HL=c&&d&&d!==q?G[d].getProperties(c):F}return R(n,c)},Lx:function(){var c,d,h,a,l=this,n=l.kj,t=l.Ou;if(n&&t&&(c=l.CL,t&&(l.zL(l.BL),d=F,c!==q&&(h=n.getActiveRowIndex(),t.currentPosition?(-1<=h&&h<t.count()&&t.currentPosition(h),d=t.currentItem()):d=l.ru(h)),d)))for(a in c=function(){var a=l.kj;a&&a.repaint()},d)d[a]&&O(d[a].subscribe)&&l.BL.push(d[a].subscribe(c,F,F))},zL:function(c){var d,h;if(c)for(d=0;d<c.length;d++)(h=c[d])&&O(h.dispose)&&h.dispose()},getRowCount:function(){var c=this.Ou,d=this.CL,h=0;return c&&d&&d!==q&&(h=G[d].getDataLength(c)),h},getColumnCount:function(){var c,d,h,a=this.HL;return a?a.length:(c=this.Ou,c&&(d=c[0],h=n.getType(d),"null"===h||"string"===h||"number"===h)?1:0)},getSource:function(){return this.Ou},rL:function(){return this.HL},Kia:function(c){this.HL=c},ru:function(c){var d=this.Ou,h=this.CL,a=F;return d&&h&&h!==q&&(a=G[h].getDataItem(d,c)),a},EL:function(){var c,d,h;if(!this.DL)for(c=this.getRowCount(),d=0;d<c;d++)if(h=this.ru(d)){this.DL=h.entityAspect&&h.entityType||h.constructor;break}return this.DL},getValue:function(c,d){return Q(this,c,d)},setValue:function(c,d,h){a:{var a,m,l,n,r,w,p,g,f=this.Ou,k=!1;if(f)if(a=this.kj,m=this.CL,m===q)(c=a?a.getBindingPath(c,d):F)&&(f.setValue(c,h),k=!0);else{if(0>c||this.getRowCount()<=c){h=k;break a}if(r=a?a.getColumnCount():this.getColumnCount(),0>d||r<=d){h=k;break a}a?(this.qia||(this.qia=a.nq().Hp()),l=this.qia[d],l&&(n=l.name)):this.HL&&(n=this.HL[d]);m&&(w=G[m],p=l&&l.value,g=O(p)?p:F,k=w.setValue(f,g,n,c,d,h))}h=k}return h},sL:function(){var c=G[this.CL];return c&&c.canAdd&&c.canAdd()},tL:function(){var c=G[this.CL];return c&&c.canInsert&&c.canInsert()},vL:function(){var c=G[this.CL];return c&&c.canRemove&&c.canRemove()},uL:function(c,d){var h,a,m=this.Ou;!m||c>this.getRowCount()||(h=this.CL,a=this.EL(),h&&h!==q&&(this.IL||(this.JL=!0,G[h].addItems(m,c,d,a),this.JL=!1)))},wL:function(c,d){var h=this.CL,a=this.getRowCount(),m=this.Ou;!m||c>=a||h&&h!==q&&(this.IL||(this.JL=!0,G[h].removeItems(m,c,d),this.JL=!1))},xL:function(c){return d&&(c||this.Ou)instanceof d},ad:function(c){this.Ou=F;this.CL="";this.HL=this.DL=F;this.AL=[];this.BL=[];this.qia=F;var d=(this.kj=c)&&c.wq;d&&d.xL()&&c.Wq(C.ResetBinding,{sheet:c})},FL:function(c){var d,h,a,l=this.kj;if(l&&!this.JL){if(c){this.IL=!0;if(a=!isNaN(c.length)){l.setRowCountCore(c.length);if(c=z(this.HL)&&0===l.nq().Hp().length)c=(this.HL=F,l.setColumnCount(this.getColumnCount()),d=l.nq(),h=this.rL());a=c}if(a)for(c=0,a=h.length;c<a;c++)d.Kp(c,{name:h[c]});this.IL=!1}l.$p()}},GL:function(){var c,d=this.kj,h=this.Ou;d&&h&&h.currentPosition&&(c=h.currentPosition(),d.Jl!==c&&(d.Sr(c,d.Kl,void 0,void 0,2),d.$p()))},toJSON:function(){var c,d=this.Ou;return d?(c=this.CL,d=c===q?d.getSource():G[c].toJSON(d),{type:c,source:d}):F},fromJSON:function(c){var m,h,a=c&&c.source;a&&(m=c.type,h=m===q?new d(a):G[m].fromJSON(a),h&&this.bind(h))}};u.qL=J;u.KL=H;u.LL=I;L.prototype={isDataSource:function(c){return n.isArray(c)},getDataLength:function(c){return c.length},getDataItem:function(c,d){return c[d]},addItems:function(c,d,h,a){var m,l;for(m=0;m<h;m++)l=F,a&&(l=a.createEntity?a.createEntity():new a),c.splice(d,0,l)},removeItems:function(c,d,h){var a=this.getDataLength(c);d<a&&c.splice(d,Math.min(h,a-d))},getProperties:function(c){var d,h=F;if(0<c.length)for(d in h=[],c=c[0],c)O(c[d])||h.push(d);return h},getValue:function(c,d,h,a,l){var m=F,n=!1;c=this.getDataItem(c,a);return z(c)||(d?(m=d(c),n=!0):h?(m=I(c,h),n=!0):("string"===typeof c||w(c))&&0===l&&(m=c,n=!0)),{value:m,hasBinding:n}},setValue:function(c,d,h,a,l,n){var m=!1,q=this.getDataItem(c,a);return z(q)||(d?(d(q,n),m=!0):h?(H(q,h,n),m=!0):("string"===typeof q||w(q))&&0===l&&(c[a]=n,m=!0)),m},fromJSON:function(c){return c},toJSON:function(c){return c}};G.defaultBindingSource=new L;U.exports=u},function(U,u,l){function d(){}u=l(26);l=l(91);var J=u.j.Fa;d.prototype={isDataSource:function(d){var l=window.wijmo;return l&&l.data&&l.data.isDataView&&l.data.isDataView(d)},getDataLength:function(d){return d.count()},getDataItem:function(d,l){return d.item(l)},addItems:function(d,l,u,J){if(J)for(l=0;l<u;l++)d.yia=!0,d.add(J.createEntity?J.createEntity():new J),d.yia=!1,d.commitEdit()},removeItems:function(d,l,u){var K;K=this.getDataLength(d);if(l<K)for(u=Math.min(u,K-l),K=0;K<u;K++)d.remove(d.item(l))},getProperties:function(d){var l,u=null,J=d.getProperties();if(J&&0<J.length)for(l=J.length,u=[],d=0;d<l;d++)u.push(J[d].name);return u},canInsert:function(){return!1},getValue:function(d,l,u,O,H){H=null;var I=!1;O=this.getDataItem(d,O);return J(O)||(l?(H=l(O),I=!0):u&&(H=d.getProperty(O,u),I=!0)),{value:H,hasBinding:I}},setValue:function(d,l,u,O,H,I){H=!1;O=this.getDataItem(d,O);return J(O)||(l?(l(O,I),H=!0):u&&(d.setProperty(O,u,I),H=!0)),H},fromJSON:function(d){return d},toJSON:function(d){return d.local}};l.yL.dataViewBinding=new d;U.exports=l},function(U,u,l){function d(){}var J,R=l(85);u=l(26);var Q=l(91),K=u.j.Fa,O=R.GC$,H=O.isFunction,I=O.getType,L=O.isNumeric,F=window.ko;d.prototype={isDataSource:function(d){return F&&F.isObservable(d)},getDataLength:function(d){return d().length},getDataItem:function(d,l){return d()[l]},addItems:function(d,l,u,A){var q,n;for(q=0;q<u;q++)n=null,A&&(n=A.createEntity?A.createEntity():new A),d.splice(l,0,n)},removeItems:function(d,l,u){var q=this.getDataLength(d);l<q&&d.splice(l,Math.min(u,q-l))},getProperties:function(d){var l,u;l=d();d=[];if(0<l.length)for(u in l=l[0],l)H(l[u])?F&&F.isObservable(l[u])&&d.push(u):d.push(u);return d},getValue:function(d,l,u,A,r){var n=null,q=!1;d=this.getDataItem(d,A);return K(d)||(l?(n=l(d),q=!0):u?(n=Q.LL(d,u),q=!0):("string"===I(d)||L(d))&&0===r&&(n=d,q=!0)),{value:n,hasBinding:q}},setValue:function(d,l,u,A,r,n){var q=!1,z=this.getDataItem(d,A);return K(z)||(l?(l(z,n),q=!0):u?(Q.KL(z,u,n),q=!0):("string"===I(z)||L(z))&&0===r&&(d()[A]=n,q=!0)),q},fromJSON:function(d){return F?F.observableArray(d):null},toJSON:function(d){return d()}};Q.yL.koBinding=new d;F&&(J=F.bindingHandlers,J["gc-spread-sheets"]=J["gcspread-sheets"]=J.wijspread={init:function(d,l,u,A){var q,n,w,z,C;if(!O(d).data("workbook")&&(q=l(),n=q&&q.sheets,w=new R.Workbook(O("#"+d.id)[0],q),n)){l=n.length;for(u=w.getSheetCount();u<l;)d=w.vv(w.wv(u)),w.ow(u,0,d),u=w.getSheetCount();for(u=0;u<l;u++)d=w.getSheet(u),z=n[u],A=z.name,q=z.autoGenerateColumns,C=z.data,z=z.columns,"string"===typeof A&&0<A.length&&(d.Cj=A),"boolean"==typeof q&&(d.autoGenerateColumns=q),C&&d.setDataSource(C),z&&0<z.length&&(d.autoGenerateColumns=!1,d.bindColumns(z))}},update:function(d,l,u,A){}});U.exports=Q},function(U,u){U.exports={Exp_NotSupportedDataSource:"The data source is not supported!"}},function(U,u,l){U.exports=l(96)},function(U,u,l){function d(d,l,u){if(!d)return!1;if(d=""+d,l=""+l,0===u)return-1<d.indexOf(l);var H=0<(2&u),F=0<(1&u),G;return 0<(4&u)?(G=H?R.zb(l):R.ub(l),l=G?G:l,G=F?R.sb(l):R.qb(l),G.test(d)):(F&&(l=l.toLowerCase(),d=d.toLowerCase()),H?l===d:0<=d.indexOf(l))}var J=l(85),R=l(26).q,Q=Math.max,K={};J.Worksheet.prototype.search=function(l){var u,I,L,F,G,q,D,A,r,n,w,z,C,c,m;if(!l)return null;if(u=l.sheetArea,I=l.searchString,L=l.searchTarget,F=l.searchFlags,G=this.getRowCount(u),q=this.getColumnCount(u),D=new K.SearchResult,!I||0===L||0>=G&&0>=q)return D;A=Q(0,l.rowStart);r=Q(0,l.columnStart);n=l.rowEnd;w=l.columnEnd;z=0<(8&F);(0>n||!z)&&(n=G-1);(0>w||!z)&&(w=q-1);G=l.findBeginRow;q=l.findBeginColumn;G=0>G?A:G;for(q=0>q?r:q;0<=G&&0<=q;){if(C=this.getCell(G,q,u),0<(1&L)&&(c=C.text(),""!==c&&d(c,I,F)&&(D.searchFoundFlag|=1,D.foundString=c)),J.X3&&0<(8&L)&&(c=C.formula(),"string"===typeof c&&""!==c&&d(c,I,F)&&(D.searchFoundFlag|=8,D.foundString=c)),0<(4&L)&&(c=C.tag(),"string"===typeof c&&""!==c&&d(c,I,F)&&(D.searchFoundFlag|=4,D.foundString=c)),0!==D.searchFoundFlag)return D.foundRowIndex=G,D.foundColumnIndex=q,D;var h=null,a=G+1,B=q+1;if(m=(0===l.searchOrder?0<=B&&B<=w?h={r:G,c:B}:0<=a&&a<=n&&(h={r:a,c:z?r:0}):a<=n?h={r:a,c:q}:B<=w&&(h={r:z?A:0,c:B}),h),!m)break;G=m.r;q=m.c}return D};J.Workbook.prototype.search=function(d){var l,u,J,F,G,q;if(!d)return null;if(l=this.getSheetCount(),u=new K.SearchResult,!d.searchString||0===d.searchTarget||0>=l)return u;if(-1===d.startSheetIndex&&(d.startSheetIndex=0),-1===d.endSheetIndex&&(d.endSheetIndex=l-1),G=d.startSheetIndex,q=d.endSheetIndex,q>=G&&0<=G&&G<l&&0<=q&&q<l)for(l=G;l<=q;l++)if(J=this.getSheet(l),F=J.search(d),F&&0!==F.searchFoundFlag)return F.foundSheetIndex=l,F;return u};K.SearchCondition=function(){return{startSheetIndex:-1,endSheetIndex:-1,searchString:null,searchFlags:0,searchOrder:0,searchTarget:1,sheetArea:3,rowStart:-1,columnStart:-1,rowEnd:-1,columnEnd:-1,findBeginRow:-1,findBeginColumn:-1}};K.SearchResult=function(){return{searchFoundFlag:0,foundSheetIndex:-1,foundRowIndex:-1,foundColumnIndex:-1,foundString:null}};K.SearchFlags={none:0,ignoreCase:1,exactMatch:2,useWildCards:4,blockRange:8};K.SearchOrder={zOrder:0,nOrder:1};K.SearchFoundFlags={none:0,cellText:1,cellTag:4,cellFormula:8};U.exports=K},function(U,u,l){l(98);u=l(99);u.SR={};u.SR.en=l(100);U.exports=u},function(U,u,l){function d(c){var d=c.kj;return c.ML?d.rowOutlines:d.columnOutlines}function J(c){var m,h,a,l,n,q=!1;return(c?this.canExecute():this.canUndo())&&(m=this.kj,h=this.VQ.index,a=this.VQ.count,l=d(this),m&&l&&!C(h)&&!C(a)&&(n=c?l.group:l.ungroupRange,this.Lz(m,!0),n.call(l,h,a),this.Mz(m,!0),q=!0)),q}function R(c,d,h,a,l){for(var m=0;d<=h&&d<a;d++)m+=l.call(c,d)*c._zoomFactor;return m}function Q(c,d,h,a,l){var m=0,n;for(n=d;n<a&&m<h;n++)d++,m+=l.call(c,n)*c._zoomFactor;return d>=a?a-1:d}function K(c,d,h,a,l){if(d<a)return a;if(d>l)return l;for(;d<=l;d++)if(h.call(c,d))return d;return-1}function O(c){var m,h,a,l,n,q=!1;if(c?this.canExecute():this.canUndo())if(m=this.kj,h=this.VQ,a=d(this),l=h.collapsed,n=h.index,m&&a&&!C(l)&&!C(n)&&!C(h.level)){this.Lz(m,!0);c||(l=!l);a.setCollapsed(n,l);c=l;a=this.ML;var r,w,p,g,f,k,x,z,u,A,D,e,b;l=this.kj;n=h.index;q=a?l.getRowCount():l.getColumnCount();0>n||n>=q||(r=d(this),w=1===r.direction(),p=a?l.frozenRowCount():l.frozenColumnCount(),g=a?l.getRowHeight:l.getColumnWidth,f=a?l.getViewportTopRow:l.getViewportLeftColumn,k=a?l.getViewportHeight:l.getViewportWidth,x=f.call(l,1),D=r.find(w?n-1:n+1,h.level),D&&(e=w?D.start:n,b=w?n:D.end,w?(c?e=n:e<p&&(e=p),e<x&&(x=e),z=k.call(l,1),u=R(l,x,b,q,g),u>z&&(x=Q(l,x,u-z,q,g)),A=K(l,x,g,p,q-1)):(c?b=n:b>=q&&(b=q-1),e<x?A=K(l,e,g,p,q-1):(z=k.call(l,1),u=R(l,x,b,q,g),u>z&&(x=Q(l,x,u-z,q,g),A=K(l,x,g,p,q-1)))),a&&void 0!==A?(l.lq=A,l.os()):a||void 0===A||(l.qq=A,l.qs())));this.Mz(m,!0);q=!0}return q}var H,I,L,F,G,q,D,A,r;u=l(26);var n=l(85),w=n.Commands;l=w.ActionBase;var z=n.GC$,C=u.j.Fa;u=function(c){function d(d,a,m){c.call(this);this.kj=d;this.VQ=a;this.ML=m}z.inherit(d,c);return z.extend(d.prototype,{execute:function(){return J.call(this,!0)},undo:function(){return J.call(this,!1)}}),d}(l);H=function(c){function d(d,a){c.call(this,d,a,!1)}z.inherit(d,c);return d}(u);I=function(c){function d(d,a){c.call(this,d,a,!0)}z.inherit(d,c);return d}(u);u=function(c){function m(d,a,m){c.call(this);this.kj=d;this.VQ=a;this.ML=m}z.inherit(m,c);return z.extend(m.prototype,{execute:function(){var c,a,m,l=this.kj,n=!1;return this.canExecute()&&(c=this.VQ.index,a=this.VQ.count,m=d(this),l&&m&&!C(c)&&!C(a)&&((0<=m.getLevel(c)||0<=m.getLevel(c+a-1))&&(this.Lz(l,!0),m.ungroupRange(c,a),this.Mz(l,!0)),n=!0)),n},undo:function(){var c,a,m,l=!1,n=this.kj;return this.canUndo()&&(c=this.VQ.index,a=this.VQ.count,m=d(this),n&&m&&!C(c)&&!C(a)&&(this.Lz(n,!0),m.group(c,a),this.Mz(n,!0),l=!0)),l}}),m}(l);L=function(c){function d(d,a){c.call(this,d,a,!1)}z.inherit(d,c);return d}(u);F=function(c){function d(d,a){c.call(this,d,a,!0)}z.inherit(d,c);return d}(u);u=function(c){function d(d,a,m){c.call(this);this.kj=d;this.VQ=a;this.ML=m}z.inherit(d,c);return z.extend(d.prototype,{execute:function(){return O.call(this,!0)},undo:function(){return O.call(this,!1)}}),d}(l);G=function(c){function d(d,a){c.call(this,d,a,!1)}z.inherit(d,c);return d}(u);q=function(c){function d(d,a){c.call(this,d,a,!0)}z.inherit(d,c);return d}(u);l=function(c){function m(d,a,m){c.call(this);this.kj=d;this.VQ=a;this.ML=m}z.inherit(m,c);return z.extend(m.prototype,{execute:function(){var c,a,m,l=this.kj;c=!1;if(this.canExecute()&&(a=this.VQ.level,m=d(this),l&&m&&!C(a))){this.Lz(l,!0);this.saveState();for(c=0;c<a;c++)m.expand(c,!0);m.expand(a,!1);this.Mz(l,!0);c=!0}return c},saveState:function(){var c=this.kj,a=this.VQ,m=null,l,n,q,r,p,g=this.ML,f=a.level,k=d(this),g=g?c.getRowCount():c.getColumnCount();if(c&&k&&!C(f))for(m={},c=0;c<=f;c++)for(r=0;r<g;){if(l=k.find(r,c)){switch(p=-1,n=l.start,q=l.end,k.direction()){case 0:p=n-1;break;case 1:p=q+1}m[p]||(m[p]=1===l.state());r+=q-n+1}r++}a.RL=m},undo:function(){var c,a,m,l,n=!1;if(this.canUndo()&&(c=this.kj,a=this.VQ.RL,l=d(this),c&&a&&l)){this.Lz(c,!0);for(m in a)m&&(l.setCollapsed(parseInt(m),a[m]),n=!0);this.Mz(c,!0)}return n}}),m}(l);D=function(c){function d(d,a){c.call(this,d,a,!1)}z.inherit(d,c);return d}(l);A=function(c){function d(d,a){c.call(this,d,a,!0)}z.inherit(d,c);return d}(l);r=w.h4;w.outlineColumn={canUndo:!0,execute:function(c,d,h){return r(c,H,d,h)}};w.outlineRow={canUndo:!0,execute:function(c,d,h){return r(c,I,d,h)}};w.removeColumnOutline={canUndo:!0,execute:function(c,d,h){return r(c,L,d,h)}};w.removeRowOutline={canUndo:!0,execute:function(c,d,h){return r(c,F,d,h)}};w.expandColumnOutline={canUndo:!0,execute:function(c,d,h){return r(c,G,d,h)}};w.expandRowOutline={canUndo:!0,execute:function(c,d,h){return r(c,q,d,h)}};w.expandColumnOutlineForLevel={canUndo:!0,execute:function(c,d,h){return r(c,D,d,h)}};w.expandRowOutlineForLevel={canUndo:!0,execute:function(c,d,h){return r(c,A,d,h)}};w.SL=function(c){c.register("outlineColumn",w.outlineColumn);c.register("outlineRow",w.outlineRow);c.register("removeColumnOutline",w.removeColumnOutline);c.register("removeRowOutline",w.removeRowOutline);c.register("expandColumnOutline",w.expandColumnOutline);c.register("expandRowOutline",w.expandRowOutline);c.register("expandColumnOutlineForLevel",w.expandColumnOutlineForLevel);c.register("expandRowOutlineForLevel",w.expandRowOutlineForLevel)};U.exports=w},function(U,u,l){function d(a,b,c,f,d){a={sheet:a,sheetName:a.Cj,isRowGroup:b,index:c,level:f};return d&&(a.cancel=!1),a}function J(a,b){var e,c,f,d,k=this.Gt(),h=k.width,m=k.height;return h||m?(e=this.am(),c=new g(k.x,k.y,h,e.height),f=new g(k.x,k.y,e.width,m),c.contains(a,b)||f.contains(a,b)?(d=R(this,a,b,k.rowMaxLevel,!0),d||(d=R(this,a,b,k.colMaxLevel,!1)),d||{what:"empty",info:null}):null):null}function R(a,b,c,f,d){var e=(new z(a,d,f)).WL(b,c,d);if(e)return{what:d?"rgh":"cgh",info:e};a=Q(a,d,f);for(f=0;2>=f;f++)if(e=a[f].XL(b,c,d))return{what:d?"rg":"cg",info:e};return null}function Q(a,b,c){a=[new w(a,b,0,c),new w(a,b,1,c),new w(a,b,2,c)];for(b=0;2>=b;b++)a[b].YL();return a}function K(a,b){return y(0,((b?a.width:a.height)-2*this.PADDING)/(this.ZL+2))}function O(a,b){return a?b.rowOutlines:b.columnOutlines}function H(a,b,c){var e,f,d,g;if(0<c){e=a.items;g=[];for(f=0;f<c;f++)g.push(null);if(a.items=e=e.slice(0,b).concat(g,e.slice(b)),0>=a.V3&&0<b&&(d=e[b-1]))for(f=0;f<c;f++)e[b+f]=new n(d);q(a)}}function I(a,b,c){for(var e,f,d=null,g=a.items;b<x(g)&&(e=g[b],!e||e.level<c||(d||(d=new C(a,b,b,c)),e.level>c&&(f=I(a,b,c+1),b=f.index,d.addChild(f.g)),b>d.end&&(d.end=b),!a.isGroupEnd(b,c)));b++);if(d)for(a=d.end+1,c=d.start;c<a;c++)g[c].groupInfo||(g[c].groupInfo=d);return{g:d,index:b}}function L(a,b){return-1<=b&&b<x(a.items)}function F(a,b,c){var e;if(a=a&&a.items)for(b=a[b]&&a[b].groupInfo;b;){if(e=b.level,e===c)return b;if(!(e>c))break;b=b.parent}return null}function G(a,b){switch(a){case "head":case "tail":return null===b;case "direction":return 1===b;case "itemsData":return 0===x(b);default:return!1}}function q(a){a.Uia=null;a.refresh()}function D(a){a.Sia||(a.Uia=a.createRangeGroup(),a.groupChangeHandler&&a.groupChangeHandler(void 0))}function A(a){a.Sia&&!a.Uia&&(a.Uia=a.createRangeGroup())}function r(a,b){if(!L(a,b))throw Error(Z().Exp_InvalidIndex);}function n(a){return{level:a?a.level:0,collapsed:!!a&&a.collapsed,viewCollapsed:!!a&&a.viewCollapsed}}function w(a,b,c,f){this.LINE_SIZE=this.PADDING=2;this.START_LINE_SIZE=6;this.bM=[];this.cM=[];this.dM=[];this.kj=a;this.ML=b;this.eM=c;this.ZL=W(f)?f:O(b,a).getMaxLevel()}function z(a,b,c){this.PADDING=2;this.kj=a;this.ML=b;this.ZL=W(c)?c:O(b,a).getMaxLevel()}var C,c,m=l(26),h=l(85),a=l(98),B={},y=Math.max,t=Math.min,E=h.GC$,M=E.each,p=h.Im.Lm,g=h.Rect;u=m.k;var f=u._b,k=u.$b,x=u.ac,W=h.Ul.Ol,P=m.j.Fa,V=h.Ul.Pl,Z=function(){return m.C(B.SR)()};u={Gt:function(){var a,b,c,f,d,g=this.TL;return g?g:(a={x:0,y:0,width:0,height:0,rowMaxLevel:-1,colMaxLevel:-1},b=this.rowOutlines,c=this.columnOutlines,f=t(17,17*this._zoomFactor),this.showRowOutline()&&b&&!b.iT()&&(d=b.getMaxLevel(),0<=d&&(a.width=f*(d+2)+4,a.rowMaxLevel=d)),this.showColumnOutline()&&c&&!c.iT()&&(d=c.getMaxLevel(),0<=d&&(a.height=f*(d+2)+4,a.colMaxLevel=d)),this.TL=a)},showRowOutline:V("showRowOutline",!0,function(){this.$p()}),showColumnOutline:V("showColumnOutline",!0,function(){this.$p()})};E.extend(h.Worksheet.prototype,u);h.Worksheet.$n("rangegroup",{init:function(){var a=this;a.rowOutlines=new c(a.getRowCount());a.columnOutlines=new c(a.getColumnCount());a.rowOutlines.groupChangeHandler=function(b){b&&b.indexes&&a.recalcRows&&a.recalcRows(b.indexes);a.au()};a.columnOutlines.groupChangeHandler=function(){a.bu()};a.Wr.push(a.rowOutlines);a.Zr.push(a.columnOutlines)},dispose:function(){E(this.Ws()).unbind("mousedown.group")},setHost:function(a){if(a){var b=this;a.bind("mousedown.group",function(a){var e,c=b.Vs();(a=J.call(b,a.pageX-c.left,a.pageY-c.top))&&(e=a.what,"rg"===e||"rgh"===e?b.rowOutlines.UL(b,a):"cg"!==e&&"cgh"!==e||b.columnOutlines.UL(b,a))})}},onPaintSuspend:function(a){a.suspend?(this.rowOutlines.Pia(),this.columnOutlines.Pia()):(this.rowOutlines.Ria(),this.columnOutlines.Ria())},onLayoutChanged:function(a){var b=a.changeType,e=a.row,c=a.rowCount,f=a.col,d=a.colCount;a=a.sheetArea;var g=this.rowOutlines,k=this.columnOutlines;"addRows"===b?H(g,e,c):"deleteRows"===b?0<c&&(g.items.splice(e,c),q(g)):"addColumns"===b?H(k,f,d):"deleteColumns"===b?0<d&&(k.items.splice(f,d),q(k)):"invalidateLayout"===b?this.TL=null:"setColumnCount"===b?3!==a&&1!==a||k.VL(d):"setRowCount"===b&&(3!==a&&2!==a||g.VL(c))},paint:function(a){var b=a.ctx;a=a.clipRect;var e=this.rowOutlines,c=this.columnOutlines;e&&e.jp(this,b,a,!0);c&&c.jp(this,b,a,!1)},fromJson:function(a){if(a){var b,e=a.showRowRangeGroup;b=a.showColumnRangeGroup;e=W(e)?e:a.showRowOutline;b=W(b)?b:a.showColumnOutline;P(e)||this.showRowOutline(e);P(b)||this.showColumnOutline(b);(b=a.rowRangeGroup||a.rowOutlines)&&this.rowOutlines.fromJSON(b);(b=a.colRangeGroup||a.columnOutlines)&&this.columnOutlines.fromJSON(b)}},toJson:function(a){var b,e=this.rowOutlines,c=this.columnOutlines;b=this.showRowOutline();!0!==b&&(a.showRowOutline=b);b=this.showColumnOutline();!0!==b&&(a.showColumnOutline=b);a.rowOutlines=e?e.toJSON():void 0;a.columnOutlines=c?c.toJSON():void 0}});h.Workbook.$n("rangegroup",{init:function(){a.SL(this.commandManager())}});B.OutlineDirection={backward:0,forward:1};B.OutlineState={expanded:0,collapsed:1};C=function(){function a(a,e,c,f){this.children=[];this.parent=null;this.model=a;this.start=e;this.end=c;this.level=f}return a.prototype={state:function(a){var b=this.model;return arguments.length?void(b&&b.expandGroup(this,0===a)):b?b.getState(this):0},contains:function(a){return this.start<=a&&a<=this.end},addChild:function(a){a&&(this.children.push(a),a.parent=this)}},a}();B.OutlineInfo=C;c=function(){function a(a){this.Uia=this.tail=this.head=null;this.items=Array(a);this.V3=0;this.wz=!0}return a.prototype={direction:V("direction",1),group:function(a,e){var b,c;if(r(this,a),!L(this,a+e-1))throw Error(Z().Exp_InvalidCount);for(b=0;b<e;b++)c=a+b,this.items[c]?this.items[c].level++:this.items[c]=new n;this.Sia&&this.Uia&&(this.Uia=null);D(this);this.wz=!1},Pia:function(){this.Sia=!0;this.Uia=null},Ria:function(){this.Sia=!1;this.refresh()},ungroupRange:function(a,e){var b,c;if(r(this,a),!L(this,a+e-1))throw Error(Z().Exp_InvalidCount);for(b=0;b<e;b++)(c=this.items[a+b])&&-1<c.level&&c.level--;D(this)},ungroup:function(){var a=x(this.items);this.items=Array(a);D(this);this.wz=!0},expand:function(a,e){var b,c,f,d;if(-1>a)throw Error(Z().Exp_InvalidLevel);b=this.items;A(this);f=0;for(d=b.length;f<d;f++)b[f]&&(c=this.find(f,a),c&&this.expandGroup(c,e))},expandGroup:function(a,e){if(!a)throw Error(Z().Exp_GroupInfoIsNull);var b=this.direction(),c=-1;0===b?c=a.start-1:1===b&&(c=a.end+1);this.setCollapsed(c,!e)},Xr:function(a){return!L(this,a)||!this.isCollapsed(a)},isCollapsed:function(a){return(a=this.items[a])&&a.viewCollapsed&&-1<a.level},find:function(a,e){var b;return A(this),-1===e?b=this.Uia:(r(this,a),b=F(this,a,e)),b},getLevel:function(a){return(a=this.items[a])?a.level:-1},getCollapsed:function(a){a=this.items[a];return!!a&&!!a.collapsed},B4:function(a,e,c,f){for(var b;e<=c;e++)(b=a[e])||(b=a[e]=new n,b.level=-1),b.viewCollapsed=f},setCollapsed:function(a,e){var b,c,f,d,g,k=!1,h=this.items;if(A(this),0>a?(b=this.head,b||(b=this.head=new n)):a<x(h)?(b=h[a],b||(b=h[a]=new n,b.level=-1)):(b=this.tail,b||(b=this.tail=new n)),c=1===this.direction(),b.collapsed!==e&&(b.collapsed=e,k=!0,this.E4(a,e)),k&&(a+=c?-1:1,d=[],g=this.find(a,this.getLevel(a)))){for(b=g.start;b<=g.end;b++)d.push(b);f={indexes:d}}this.groupChangeHandler&&this.groupChangeHandler(f)},E4:function(a,e){var b,c,f,d,g,k,h=this.items,m=1===this.direction();b=a+(m?-1:1);if(g=F(this,b,this.getLevel(b)))if(e)this.B4(h,g.start,g.end,!0);else{b=!1;for(c=g.parent;c;){if(f=m?c.end+1:c.start-1,h[f]&&h[f].collapsed&&-1<h[f].level){b=!0;break}c=c.parent}if(!b)for(this.B4(h,g.start,g.end,!1),b=[g],c=0;0<=c;)if(d=b[c--],f=m?d.end+1:d.start-1,h[f]&&h[f].collapsed&&-1!==h[f].level)this.B4(h,d.start,d.end,!0);else for(g=d.children,k=0;g&&k<g.length;k++)b[++c]=g[k]}},getMaxLevel:function(){var a=-1,e;return M(this.items,function(b,c){c&&(e=c.level,e>a&&(a=e))}),a},cB:function(a,e,c,d){if(!(0>=c||a===e)){0>a&&(a=0);0>e&&(e=0);for(var b=[],g=this.items,h=f(g,a-1),m;0<=h&&h<a+c;)m=new n(g[h]),b.push({index:h-a,value:m}),h=f(g,h);d&&k(g,a,c);k(g,e,c);M(b,function(a,b){g[e+b.index]=b.value});q(this)}},bB:function(a,e,c,d,g){var b,h,m;if(0>e&&(e=0),0>c&&(c=0),b=[],a)for(h=f(a.items,e-1);0<=h&&h<e+d;)b[h-e]=new n(a.items[h]),h=f(a.items,h);if(k(this.items,c,d),0<b.length)for(m in b)b.hasOwnProperty(m)&&(this.items[c+m]=b[m]);g&&k(a.items,e,d)},refresh:function(){this.wz||D(this)},VL:function(a){var b,e=this.items;b=x(e);var c=a-b;if(0>c)e.splice(a,-c);else if(a=e[b-1])for(b=0;b<c;b++)e.push(new n(a));else this.items=e.concat(Array(c));q(this)},getState:function(a){var b=this.items,e,c=this.direction(),f=-1;return 0===c?f=a.start-1:1===c&&(f=a.end+1),e=0>f?this.head:f<x(b)?b[f]:this.tail,e&&e.collapsed?1:0},Ez:function(a,e){var b=this.items;0>a?(this.head||(this.head=new n),this.head.level=e):a<x(b)?(b[a]||(b[a]=new n),b[a].level=e):(this.tail||(this.tail=new n),this.tail.level=e);q(this)},suspendAdding:function(){this.V3++},resumeAdding:function(){this.V3--},createRangeGroup:function(){for(var a,e,c=this.items,f=x(this.items),d=new C(this,0,f-1,-1),g=0;g<f;)c[g]&&(c[g].groupInfo=null),g++;for(g=0;g<f;)c[g]?(a=I(this,g,0),e=a.g,g=a.index+1,e&&-1<e.level&&d.addChild(e)):g++;return d},isGroupEnd:function(a,e){var b,c,f,d,g,k,h=this.items,m=a+1;return!L(this,m)||!(b=h[m])||(c=b.level,f=h[a].level,d=!1,c<f&&(g=f-c,k=f-e,0<=k&&k<g&&(d=!0)),d)},hitTest:function(a,e,c){return J.call(a,e,c)},jp:function(a,e,c,f){var b,d,g,k,h=a.Gt();k=a.am();var m=a.ss,p=h.width,l=h.height;if(p||l){if(b=f?p:k.width,d=f?k.height:l,g=f?h.rowMaxLevel:h.colMaxLevel,k=f?m.bn:m.dn,e.save(),e.beginPath(),!c||c.intersect(h.x,h.y,b,d))for(c=new z(a,f,g),c._L(e),c=k.call(a.ss,function(){return Q(a,f,g)}),b=0;2>=b;b++)c[b].aM(e);e.beginPath();e.restore()}},UL:function(a,e){if(e){var b=e.what;if("rgh"===b||"cgh"===b){var c,f,g;a.isEditing&&a.isEditing()||(b=e.info.index,f=(c="rgh"===e.what)?"expandRowOutlineForLevel":"expandColumnOutlineForLevel",g=d(a,c,-1,b,!0),a.Wq(h.Events.RangeGroupStateChanging,g),g&&!1===g.cancel&&(a.wu().execute({cmd:f,sheetName:a.name(),level:b}),b=d(a,c,-1,b,!1),a.Wq(h.Events.RangeGroupStateChanged,b)))}else if("rg"===b||"cg"===b){var k,m,p="rg"===e.what;O(p,a)&&(b=e.info,f=c=b.index,g=b.level,m=p?"expandRowOutline":"expandColumnOutline",1===b.lineDirection?c--:c++,k=d(a,p,c,g,!0),a.Wq(h.Events.RangeGroupStateChanging,k),k&&!1===k.cancel&&(a.wu().execute({cmd:m,sheetName:a.name(),index:f,level:g,collapsed:b.isExpanded}),b=d(a,p,c,g,!1),a.Wq(h.Events.RangeGroupStateChanged,b)))}}},iT:function(){return this.wz},fromJSON:function(a){var b,e,c,f,d,g,k,h,m;if(a)for(b=this,e=b.items,c=a.itemsData,f=a.direction,d=a.head,a=a.tail,m=[],M(c,function(a,c){if(g=c.index,k=c.info,0<=g&&k){for(h=0;h<c.count&&!(g+h>=x(e));h++)c.info.collapsed&&m.push(c),e[g+h]=new n(k);b.wz=!1}}),P(f)||b.direction(f),d&&(b.head=d),a&&(b.tail=a),q(b),c=0;c<m.length;c++)b.E4(m[c].index,!0)},toJSON:function(){var a,e,c,f,d,g=[],k=this.items,h=-1;for(a=0;a<x(k);a++)e=g[h],(c=k[a])&&(0<=h&&a===e.count+e.index&&c.level===e.info.level&&c.collapsed===e.info.collapsed?g[h].count++:g[++h]={index:a,count:1,info:{level:c.level,collapsed:c.collapsed}});return f={itemsData:g,direction:this.direction(),head:this.head,tail:this.tail},d={},M(f,function(a,b){G(a,b)||(d[a]=b)}),E.isEmptyObject(d)?void 0:d}},a}();B.Outline=c;w.prototype={YL:function(){var a,b=this;-1!==b.ZL&&(a=b.fM(0,b.ML),M(a,function(a,e){b.gM(e)}))},gM:function(a){var b,e,c,f,d,g,k,h,m,p,l,n,q,r=this,w=r.ML,z=O(w,r.kj).direction(),u=1===z,B=0===z,A=r.hM(!0,w),C=r.hM(!1,w),E=a.start,D=a.end,w=a.level;if(u?b=D+1:B&&(b=E-1),0===a.state()){if(e=!0,c=a.parent,c&&(B&&E===c.start||u&&D===c.end)&&(e=!1),e&&r.iM(!0,w,b,A,C,z),E<=C&&D>=A){f=y(A,E);b=t(C,D);e&&(d={start:f,end:b,level:w,startLine:null},(u&&f===E||B&&b===D)&&(d.startLine=!0),r.bM.push(d));k=[];e=a.children;for(a=f;a<=b;a++)k.push(!1);M(e,function(a,b){var e=b.start,c=b.end,d;if(1===b.state())for(g=e;g<=c;g++)k[g-f]=!0;u?d=c+1:B&&(d=c-1);k[d-f]=!0;r.gM(b)});d=!0;for(a=0;a<x(e);a++){if(h=e[a],m=h.start,p=h.end,l=m===E,n=p===D,l&&n){d=!1;break}if(u&&n||B&&l)for(g=m;g<=p;g++)k[g-f]=!0}if(d)for(h=f;h<=b;h++)k[h-f]||(q={index:h,level:w+1},r.cM.push(q))}}else 1===a.state()&&r.iM(!1,w,b,A,C,z)},iM:function(a,b,c,f,d,g){b={isExpanded:a,level:b};a&&(b.paintLine=!0);c>=f&&c<=d&&(b.index=c,b.lineDirection=g,this.dM.push(b))},jM:function(a){var b=this.kj,e=this.eM;return this.ML?b.Gr(e).findRow(a):b.Hr(e).findCol(a)},aM:function(a){var b,e,c,f,d,g,k;-1!==this.ZL&&(b=this.kj.Gt(),e=this.ML,c=K.call(this,b,e),c&&(f=this.START_LINE_SIZE,d=this.PADDING,g=this.LINE_SIZE,k=y(0,(c-f)/2)+d,a.save(),a.fillStyle=p("gc-group").color,this.kM(a,this.cM,e,b,c,k,g),this.lM(a,this.bM,e,b,c,k,g,f),this.mM(a,this.dM,e,b,c,k,g,d),a.beginPath(),a.restore()))},kM:function(a,b,c,f,d,g,k){var e,h,m=this;M(b,function(b,p){var l,n,q=m.jM(p.index);q&&(l=c?q.y:q.x,n=(c?q.height:q.width)-k,0<=n&&(e=l+y(0,n/2),h=p.level*d+g,c?e=[h,h=e][0]+.5:h+=.5,a.fillRect(f.x+e,f.y+h,k,k)))})},lM:function(a,b,c,f,d,g,k,h){var e,m,p,l,n,q,v,r,w,z,u,B=O(c,this.kj).direction();for(e=0;e<x(b);e++){m=b[e];p=m.start;l=m.end;do n=this.jM(p),p++;while(!n&&p<=l);do q=this.jM(l),l--;while(!q&&l>=p);(n||q)&&(!n&&q?n=q:n&&!q&&(q=n),v=c?n.y:n.x,r=m.level*d+g,w=c?k:y(0,q.x+q.width-n.x),z=c?y(0,q.y+q.height-n.y):k,1===B&&(v+=1),c?v=[r,r=v][0]+.5:r+=.5,a.fillRect(f.x+v,f.y+r,w,z),m.startLine&&(u=t(h,d-k),0<u&&(0===B&&(c?r=r+z-k:v=v+w-k),c&&r>=n.y&&r<q.y+q.height?a.fillRect(f.x+v,f.y+r,u,k):!c&&v>=n.x&&v<q.x+q.width&&a.fillRect(f.x+v,f.y+r,k,u))))}},mM:function(a,b,c,f,d,g,k,h){var e,m,l,n,q,v,r,w,z,u,B,A,C,E,D,F,M;for(e=0;e<x(b);e++)m=b[e],(l=this.jM(m.index))&&(n=c?l.height:l.width,0>=n||(q=y(0,(n-d)/2),w=(c?l.y:l.x)+q,z=m.level*d+h,u=t(d,n),B=d,E=n-u,c?(w=[z,z=w][0],u=[B,B=u][0],A=.5,C=0):(A=0,C=.5),a.strokeStyle=p("gc-group-box").borderTopColor,a.lineWidth=1,a.fillStyle=p("gc-group-box").backgroundColor,a.fillRect(f.x+w,f.y+z,u,B),v=f.x+w+A,r=f.y+z+C,a.strokeRect(v,r,u,B),a.fillStyle=p("gc-group").color,this.nM(a,m.isExpanded,v,r,u,B),m.paintLine&&0<E&&(w=c?l.y:l.x,z=m.level*d+g,D=0===m.lineDirection,F=c?k:q,M=c?q:k,c?(w=[z,z=w][0],D&&(z+=q+B,M=E-q)):D&&(w+=q+u,F=E-q),a.fillRect(f.x+w+A,f.y+z+C,F,M))))},nM:function(a,b,c,f,d,g){b||a.fillRect(c+d/2-1,f+4,2,g-8);a.fillRect(c+4,f+g/2-1,d-8,2)},fM:function(a,b){var e,c,f=this.kj,d=[],g=-1,k=-1,h=O(b,f),m=(b?f.Gr:f.Hr).call(f,this.eM),p=x(m);for(p&&(e=m[0],c=m[p-1],g=y(0,(b?e.row:e.col)-1),k=b?t(f.getRowCount(),c.row+2):t(f.getColumnCount(),c.col+2));g<k;)(e=h.find(g,a))?(g=e.end+1,d.push(e)):g++;return d},hM:function(a,b){var e=-1,c=this.kj,f=this.eM,d=c.frozenRowCount(),g=c.frozenColumnCount(),k=c.frozenTrailingRowCount(),h=c.frozenTrailingColumnCount(),m=c.getRowCount(),c=c.getColumnCount();return 0===f?e=a?0:(b?d:g)-1:1===f?e=a?b?d:g:(b?m-k:c-h)-1:2===f&&(e=a?b?m-k:c-h:(b?m:c)-1),e},oM:function(a){a&&this.kj.CH&&(a.x-=2,a.y-=2,a.width+=4,a.height+=4)},XL:function(a,b,c){var e,f,d,k,h,m,p,l,n,q,v,r,w,z;if(0>this.ZL||(e=this.kj,f=e.Gt(),d=K.call(this,f,c),!d))return null;e=this.dM;for(m=0;m<x(e);m++)if(p=e[m],l=p.index,n=p.level*d+this.PADDING,q=this.jM(l),q&&(k=c?q.height:q.width,!(0>=k)&&(v=t(d,k),r=d,w=(c?q.y:q.x)+y(0,(k-d)/2),z=n,c&&(v=[r,r=v][0],w=[z,z=w][0]),h=new g(f.x+w+.5,f.y+z+.5,v,r),this.oM(h),h.contains(a,b))))return p;return null}};z.prototype={_L:function(a){var b,e,c,f,d,g,k,h,m,l,n,q,t,x,r,w,z,u,B,A,C,E=this.kj,D=this.ZL;if(!(0>D)&&(b=this.ML,e=E.Gt(),c=K.call(this,e,b),c&&(f=D+2,d=this.PADDING,g=E.options,k=e.width,h=e.height,m=e.x,l=e.y,n=E.am(),q=n.width,t=n.height,x=n.Cr,r=n.Br,w=n.zr,z=n.Ar,a.fillStyle=p("gc-group").backgroundColor,a.strokeStyle=p("gc-group-box").borderTopColor,a.font="8.25pt Arial",a.lineWidth=1,a.fillRect(m,l,b?k:q,b?t:h),a.strokeRect(m-.5,l-.5,b?k:q+1,b?t+1:h),b?a.strokeRect(m-.5,z-.5,k,x):a.strokeRect(w-.5,l-.5,r,h),u=(b?x:r)-c,A=y(0,(b?z:w)+u/2),C=d,b&&(A=[C,C=A][0]),B=b?g.colHeaderVisible:g.rowHeaderVisible,B&&0<=u)))for(e=0;e<f;e++)d=c-1,k=m+A,h=l+C,b?k+=.5:h+=.5,a.fillStyle=p("gc-group-box").backgroundColor,a.fillRect(k,h,d,d),a.strokeRect(k,h,d,d),a.fillStyle=p("gc-group-box").color,g=E.fp(a.font),this.pM(a,k,h,d,c,e+1,g),b?A+=c:C+=c},pM:function(a,b,c,f,d,g,k){g=""+g;var e=a.measureText(g).width;e<=f&&k<=d&&(a.textBaseline="middle",a.fillText(g,b+(f-e)/2,c+f/2))},WL:function(a,b,c){var e,f,d,g=this.kj,k=this.ZL;return 0>k?null:(e=k+2,f=g.am(),d=g.options,c?this.qM(g,a,b,c,d.colHeaderVisible,f.Cr,f.Ar,e):this.qM(g,a,b,c,d.rowHeaderVisible,f.Br,f.zr,e))},qM:function(a,b,c,f,d,g,k,m){a=a.Gt();var e=K.call(this,a,f);g-=e;var p;if(e&&d&&0<=g)for(d=y(0,k+g/2),k=this.PADDING,f&&(d=[k,k=d][0]),g=0;g<m;g++){if(p=new h.Rect(a.x+d,a.y+k,e,e),p.contains(b,c))return{index:g};f?d+=e:k+=e}return null}};U.exports=B},function(U,u){U.exports={Exp_InvalidIndex:"Invalid index",Exp_InvalidCount:"Invalid count",Exp_InvalidLevel:"Invalid level",Exp_GroupInfoIsNull:"groupInfo is null"}},function(U,u,l){u=l(102);u.SR={};u.SR.en=l(103);U.exports=u},function(U,u,l){function d(){return T.C(ga.SR)()}function J(){return(new Date).valueOf()}function R(a,b){var e,c;return!(!a||!b)&&(e=a.X-b.X,c=a.Y-b.Y,13>va(e)&&13>va(c)&&Na(e*e+c*c)<Ra(15,15))}function Q(a){a=aa(a).offset();var b=cb.body,e=0,c=0;return a&&(e=a.top+b.clientTop||0,c=a.left+b.clientLeft||0),{FB:e,EB:c}}function K(){this.rM=[];this.sM={length:0};this.tM=new I;this.uM=new L}function O(a,b){var e=ib(b.Y,b.X)-ib(a.Y,a.X);return e>Ga?e-=2*Ga:e<-Ga&&(e+=2*Ga),e}function H(a,b){return Na((b.X-a.X)*(b.X-a.X)+(b.Y-a.Y)*(b.Y-a.Y))}function I(){this.BN=this.AN=0;this.CN=1;this._process=this.EN=this.DN=0;this.FN=511;this.GN=new z;this.HN=20;this.IN=new q}function L(){}function F(a,b){this.X=a;this.Y=b}function G(a){return new F(a?bb(a.X):-1,a?bb(a.Y):-1)}function q(){this.oI=this.Jb=0;this.pP=10;this.qP=[]}function D(a,b,e,c,f){a?this.qP=a:(this.xP=new F(b,e),this.yP=c,this.lO=f)}function A(a){this.zP=a;this.AP=0}function r(a){this.zP=a;this.AP=0}function n(a,b){this.BP=a;this.CP=b;this.AP=this.VO=this.UO=0;this.DP=Na(a*a+b*b)}function w(){this.sO=new F(0,0);this.pO=this.qO=this.rO=0}function z(){this.FP=[]}function C(a,b,e){this.dP=a;this.fP=b;this.eP=e}function c(a,b,e,c,f){this.GP=a;this.dP=b;this.gP=e;this.rN=c;this.eP=f}function m(a,b,e,c,f,d){this.GP=a;this.dP=b;this.fP=e;this.gP=c;this.rN=f;this.eP=d}function h(a,b,e,c,f,d,g){this.GP=a;this.dP=b;this.fP=e;this.eP=c;this.QO=f;this.RO=d;this.TO=g}function a(a,b,e,c){this.GP=a;this.HP=b;this.dP=e;this.rN=c}function B(a,b,e,c){this.GP=a;this.DO=b;this.GO=e;this.rN=c}function y(a){this.rN=a}function t(a){this.rN=a}function E(a){this.rN=a}function M(a,b){var e=a*b;return 4<e?e=4:.5>e&&(e=.5),e}function p(a){this.kj=a}function g(a,b,e,c,f,d){a.fillStyle=b;a.fillRect(e,c,f,d)}function f(a,b,e,c,f,d){a.beginPath();a.strokeStyle=b;a.moveTo(e,c);a.lineTo(f,d);a.stroke()}function k(a,b){var e=0;return a||(e|=1),b||(e|=2),e}function x(a){this.kj=a}function W(a,b,e,c){var f,d,g,k,h,m,p,l,n=!1,q=a.Uq;f=0;for(d=q.length;f<d;f++){if(g=q[f],k=3===c||fa(c),k&&(g=a.Tq(g)),h=g.row,m=g.col,p=g.rowCount,l=g.colCount,k)g=a.Tq(g),n=h<=b&&b<h+p&&m<=e&&e<m+l;else if(2===c)n=-1===m&&h<=b&&b<h+p;else if(1===c)n=-1===h&&m<=e&&e<m+l;else if(0===c)break;if(n)break}return n}function P(a){this.KN=!1;this.hQ=new p(a);this.iQ=new x(a);this.kj=a}function V(a,b,e){this.BQ=e;this.yM=new v(b);this.CQ=new P(b);this.DQ=new N(a,"sheet",this.yM,100,10);this.BQ.xN(this.DQ,!0)}function Z(a,b){var e;Fa.call(this,b,la.vl(a.qo));this.JQ=32;this.KQ=45;this.LQ={};this.MQ=!1;this.OC=a;this.NQ=e=this.yo();e.addClass("gc-toolstrip-default ui-state-default well");e.appendTo(this.zo());e.hide();this.OQ();this.PQ();this.QQ()}function e(a,b,e,c,f){this.MC="normal 12px Arial";this.Cj=a;this._text=b;this.fR=e;c&&(this.VQ=c);f&&(this.RQ=f)}function b(a){for(var b=0,e="separator"+b;cb.getElementById(e);)b++,e="separator"+b;this.Cj=e;a&&(this.RQ=a)}function v(a){this.tc=a}function N(a,b,e,c,f){this.KM=a;this.lN=e;this.OM=b;this.mN=c;this.aN=f}function S(){}function X(a){this.hq=a}function Y(a,b,e){var c;this.yM=new v(this);this.DQ=new N(a,"tabStrip",this.yM,1,-1);this.BQ=e;c=this.CQ=new X(b);a=this.DQ;a.eN=function(a){return c.lQ(a)};a.fN=function(a){return c.pQ(a)};a.hN=function(a){return c.qQ(a)};a.iN=function(a){return c.sQ(a)};a.jN=function(a){return c.yQ(a)}}function ka(a,b,e,c){a=a.vu();a.ko(b)?e.drawImage(a.lo(b),c.x,c.y,c.width,c.height):a.fo(b)}function ja(a){var b,e,c=null,f=a.getSelections(),d=f.length;return a.CH&&0<d&&(b=f[d-1],e=a.cm(b),c=new ba(e.x+e.width-17,e.y+e.height,17,20)),c}function oa(a,b,e){b=a.Er(b);var c=a.Fr(e);e=a.jt(b);a=a.it(c);var f=c=b=0,d=0;return 0<e.length&&(b=e[0].row,c=e[e.length-1].row),0<a.length&&(f=a[0].col,d=a[a.length-1].col),sa(b,f,c-b+1,d-f+1)}function ma(a,b,e){var c,f,d,g=a.Er(b),k=a.Fr(e),h=a.am().Ft(g,k),m=!1,k=a.it(k);e=-1===e?k[0]:k.findCol(e);return e&&(m=h.x<=e.x&&e.x+e.width<=h.x+h.width),c=!1,f=a.jt(g),d=-1===b?f[0]:f.findRow(b),d&&(c=h.y<=d.y&&d.y+d.height<=h.y+h.height),m&&c}function ea(a){var b,e,c,f,d,g,k,h,m,p,l,n,q,t,v,x,r,y,w,z,u,B,A,C,E,D,F;b=a.getSelections();var M=[];if(a.CH&&0<b.length)for(b=b[b.length-1],e=a.cm(b),c=a.am(),f=b.row,d=b.row+b.rowCount-1,g=b.col,k=b.col+b.colCount-1,h=oa(a,f,g),m=oa(a,d,k),p=h.row,l=m.row+m.rowCount-1,h=h.col,m=m.col+m.colCount-1,t=d===l&&ma(a,l,-1),v=k===m&&ma(a,-1,m),-1!==b.row&&-1!==b.col?(h<=g&&g<=m&&p<=f&&f<=l&&(M[0]=new ba(e.x-8,e.y-8,16,16)),(h<=k&&k<m||v)&&(p<=d&&d<l||t)&&(M[1]=new ba(e.x+e.width-8,e.y+e.height-8,16,16))):-1!==b.row?(n=c.Ft(1,0),q=c.Ft(1,1),x=n.x+(n.width+q.width)/2-8,r=a.getColumnCount(void 0)-1-a.frozenTrailingColumnCount(),y=a.it(1),w=y.findCol(r),w&&(z=a.it(0),u=z[0]||y[0],u&&(x=u.x+(w.x+w.width-u.x)/2-8)),p<=f&&f<=l&&(M[0]=new ba(x,e.y-8,16,16)),(p<=d&&d<l||t)&&(M[1]=new ba(x,e.y+e.height-8,16,16))):-1!==b.col&&(n=c.Ft(0,1),q=c.Ft(1,1),B=n.y+(n.height+q.height)/2-8,A=a.getRowCount(void 0)-1-a.frozenTrailingRowCount(),C=a.jt(1),E=C.findRow(A),E&&(D=a.jt(0),F=D[0]||C[0],F&&(B=F.y+(E.y+E.height-F.y)/2-8)),h<=g&&g<=m&&(M[0]=new ba(e.x-8,B,16,16)),(h<=k&&k<m||v)&&(M[1]=new ba(e.x+e.width-8,B,16,16))),n=M.length-1;0<=n;n--)a=M[n],(!a||0>a.x||0>a.y)&&(M[n]=null);return M}var ga={},T=l(26);u=l(85);var fa=T.j.Fa,Fa=u.Go,aa=u.GC$;l=aa.extend;var xa=aa.isEmptyObject,Ia=aa.inherit,la=u.Ul,pa=la.Nl,qa=u.Im,ba=u.Rect,ra=u.Vl,ya=u.En,sa=u.kf,ia=u.Events,Ka=u.zp,wa=u.yp,Aa=la.nl,Va=la.Ml.mozilla,$a=la.rl(),Da=$a.ipad||$a.iphone,va=Math.abs,Ra=Math.min,jb=Math.max,Ta=Math.pow,ib=Math.atan2,Ga=Math.PI,bb=Math.round,Na=Math.sqrt,Ya=Math.atan,ta=Math.log,fb=Math.floor,ua=isNaN,Ha=parseInt,na=parseFloat,gb=window,Za=gb.navigator,cb=document,La=gb.Yl,da=u.Bn;l(K.prototype,{vM:function(a){this.tM.vM=a},wM:function(a){this.tM.wM=a},xM:function(a){var b=this;b.tM.xM=function(e){a&&(a(e),(e=b.yM)&&e.zM())}},AM:function(a){this.tM.AM=a},BM:function(a){this.tM.BM=a},CM:function(a){this.uM.CM=a},DM:function(a){this.uM.DM=a},EM:function(a){this.uM.EM=a},FM:function(a){this.GM=a},HM:function(a){this.IM=a},JM:function(a,b){return la.Z3(a,b?b.KM:this.LM.KM)},MM:function(a,b){var e,c,f,d,g,k,h=b.pointerType,m=b.target,p=b.offsetX,l=b.offsetY;h!==b.MSPOINTER_TYPE_TOUCH&&"touch"!==h||(e=this.JM(m,a),c=e.EB,f=e.FB,d=this.NM(a,m,b.pointerId,new F(p+c,l+f),b.timeStamp),d&&Aa(b),"sheet"===this.LM.OM&&(g=b.pageX-(p+c),k=b.pageY-(l+f),La.canvasOffset={top:k,left:g}))},PM:function(a){var b,e;b=a.pointerType;e=a.pointerId;if(b===a.MSPOINTER_TYPE_TOUCH||"touch"===b){if(void 0===this.sM[e])return!1;b=this.JM(a.target);(e=this.aB(e,new F(a.offsetX+b.EB,a.offsetY+b.FB),a.timeStamp))&&Aa(a)}},QM:function(a){var b,e;b=a.pointerType;e=a.pointerId;if(b===a.MSPOINTER_TYPE_TOUCH||"touch"===b){if(void 0===this.sM[e])return!1;b=this.JM(a.target);(e=this.RM(e,new F(a.offsetX+b.EB,a.offsetY+b.FB)))&&Aa(a)}},SM:function(a){var b,e;b=a.pointerType;e=a.pointerId;if(b===a.MSPOINTER_TYPE_TOUCH||"touch"===b){if(void 0===this.sM[e])return!1;b=this.JM(a.target);(e=this.TM(e,new F(a.offsetX+b.EB,a.offsetY+b.FB)))&&Aa(a)}},UM:function(a,b){var e,c,f,d=Q(a.KM),g=b.changedTouches,k=!1;for(e=0;e<g.length;e++)c=g[e],f=Va?J():b.timeStamp,k=this.NM(a,b.target,c.identifier,new F(c.pageX-d.EB,c.pageY-d.FB),f)||k;k&&Aa(b)},VM:function(a){var b,e,c,f=Q(this.LM.KM),d=a.changedTouches,g=!1;for(b=0;b<d.length;b++)e=d[b],c=Va?J():a.timeStamp,g=this.aB(e.identifier,new F(e.pageX-f.EB,e.pageY-f.FB),c)||g;g&&Aa(a)},WM:function(a){var b,e,c=Q(this.LM.KM),f=a.changedTouches,d=!1;for(b=0;b<f.length;b++)e=f[b],d=this.RM(e.identifier,new F(e.pageX-c.EB,e.pageY-c.FB))||d;d&&Aa(a)},XM:function(a){var b,e,c=Q(this.LM.KM),f=a.changedTouches,d=!1;for(b=0;b<f.length;b++)e=f[b],d=this.TM(e.identifier,new F(e.pageX-c.EB,e.pageY-c.FB))||d;d&&Aa(a)},YM:function(a){var b,e,c=this.LM,f=this.ZM;c!==f&&(b=aa(c.KM).offset(),e=aa(f.KM).offset(),a.X+=b.left-e.left,a.Y+=b.top-e.top)},$M:function(a){var b,e,c,f,d=this.rM;this.yM=this.ZM=null;for(e=0;e<d.length;e++)if(d[e]===a){if(c=d[e],a=null,f=null,c._M&&!c._M()){for(e=0;e<d.length;e++)if(b=d[e],b!==c&&0<=b.aN&&b.aN<c.aN&&(!b._M||b._M())){a=b;break}if(null===a)return!1}if(c.bN&&!c.bN()){for(e=0;e<d.length;e++)if(b=d[e],b!==c&&0<=b.aN&&b.aN<c.aN&&(!b.bN||b.bN())){f=b;break}if(null===f)return!1}null===a&&(a=c);null===f&&(f=c);this.LM=c;this.ZM=a;this.cN=f;this.vM(a.dN||null);this.wM(a.eN||null);this.BM(a.fN||null);this.AM(a.gN||null);this.xM(a.hN||null);this.CM(f.iN||null);this.DM(f.jN||null);this.EM(f.kN||null);this.FM(a.GM||null);this.HM(a.IM||null);a.lN&&(this.yM=c.lN);break}return!0},NM:function(a,b,e,c,f){return void 0===this.sM[e]&&!(0===this.sM.length&&!this.$M(a,b))&&!!this.ZM&&(this.sM.length>=this.ZM.mN||(!this.yM||!this.yM.nN())&&(this.YM(c),this.yM&&0===this.sM.length&&this.yM.oN(),this.sM[e]={id:e,time:J(),position:c},this.sM.length++,this.tM.pN(b,e,c,f),this.tM.qN(e,c,this.sM.length,f),1===this.sM.length&&this.uM.qN(c),1===this.sM.length&&this.GM&&this.GM({rN:c}),!0))},aB:function(a,b,e){return void 0!==this.sM[a]&&(!this.yM||!this.yM.sN())&&(this.YM(b),this.sM[a]={id:a,time:J(),position:b},this.tM.tN(a,b,e),!0)},RM:function(a,b){return void 0!==this.sM[a]&&(delete this.sM[a],this.sM.length--,(!this.yM||!this.yM.uN())&&(this.YM(b),this.tM.vN(a),this.tM.wN(a),0===this.sM.length&&(this.uM.vN(b),this.uM.wN(b)),0===this.sM.length&&this.IM&&this.IM({rN:b}),this.yM&&0===this.sM.length&&0===this.tM._process&&this.yM.zM(),!0))},TM:function(a,b){return this.RM(a,b)},xN:function(a,b){function e(){aa(cb).unbind(q).unbind(r).unbind(t).unbind(y).unbind(v).unbind(z).unbind(x).unbind(w)}function c(b){aa(cb).bind(q,f).bind(t,d).bind(r,f).bind(y,d).bind(v,g).bind(x,g).bind(w,g).bind(z,g);n.MM(a,b)}function f(a){n.PM(a)}function d(a){n.QM(a);0===n.sM.length&&e()}function g(a){n.SM(a);0===n.sM.length&&e()}var k,h,m,p,l,n=this;k="."+a.OM;var q="MSPointerMove.gcSheet"+k,t="MSPointerUp.gcSheet"+k,v="MSPointerCancel.gcSheet"+k,x="MSLostPointerCapture.gcSheet"+k,r="pointermove.gcSheet"+k,y="pointerup.gcSheet"+k,w="LostPointerCapture.gcSheet"+k,z="pointercancel.gcSheet"+k;k=a.KM;h=n.rM;m=T.k.Cb(h,a);0<=m&&b||0>m&&!b||(p=Za.msPointerEnabled||Za.pointerEnabled,b?p?(l=k.style,fa(l.msTouchAction)||(l.msTouchAction="none"),fa(l.touchAction)||(l.touchAction="none"),aa(k).bind("MSPointerDown.gcSheet",c).bind("pointerdown.gcSheet",c)):(aa(k).bind("touchstart.gcSheet",function(b){n.UM(a,b)}),aa(k).bind("touchmove.gcSheet",function(a){n.VM(a)}).bind("touchend.gcSheet",function(a){n.WM(a)}).bind("touchcancel.gcSheet",function(a){n.XM(a)})):p?aa(k).unbind("MSPointerDown.gcSheet").unbind("pointerdown.gcSheet"):aa(k).unbind("touchstart.gcSheet").unbind("touchmove.gcSheet").unbind("touchend.gcSheet").unbind("touchcancel.gcSheet"),b?h.push(a):h.splice(m,1))},no:function(){var a,b=this.rM;for(a=b.length-1;0<=a;a--)this.xN(b[a],!1)}});l(I.prototype,{pN:function(a,b,e,c){3===this._process&&this.JN(!0);this.KN=2===this._process&&1===this.GN.MN();this.NN=a;a={};a.Np=b;a.ON=e;a.PN=e;this.GN.QN(a);this.RN=c;1<this.GN.MN()&&(this.SN=!1,this.TN=!1,1===this._process&&this.UN())},qN:function(a,b,e){0===this._process&&1===e&&this.VN(this.GN.WN(0).PN)},tN:function(a,b,e){var c,f,d,g;if(0!==this.FN&&this.GN.XN(a)){if(1===this._process&&1===this.GN.MN()){if((c=this.YN(),!this.ZN(1)&&!this.ZN(2)&&!c)||(f=this.GN.$N(a).PN,R(b,f)))return;c=va(b.X-f.X);f=va(b.Y-f.Y);this._N(c,f)}if(!(20>e-this.RN)){if(this.GN.$N(a).aO=b,d=this.GN.MN(),1<d)for(a=0;a<d;a++)if(g=this.GN.WN(a),!g.aO)return;this.bO(e);this.RN=e;d=this.GN.MN();for(a=0;a<d;a++)g=this.GN.WN(a),g.ON=g.aO,g.aO=null}}},wN:function(){this.cO&&(this.dO(this.cO),this.cO=null)},vN:function(a){this.GN.XN(a)&&(this.GN.eO(a),2===this._process?0===this.GN.MN()&&(this.ZN(64)||this.ZN(256)||this.ZN(128)?this.fO():this.JN(!0)):2===this._process||3===this._process?this.JN(!0):1===this._process&&this.JN(!1))},bO:function(a){var b,e,c,f,d=this.gO(),g=d.hO,k=d.iO,d=d.SH,h=this.jO(),p=h.kO,l=h.eb,h=h.lO;if((this.AN+=g,this.BN+=k,this.CN*=l,this.DN+=p,this.EN+=h,b={},b.lO=h,b.kO=p,b.mO=a-this.RN,b.hO=g,b.iO=k,this.IN.nO(b),this.oO=d,1===this._process||2===this._process)&&(1!==this._process||!this.UN())&&(e=new w,e.pO=h,e.qO=p,e.rO=l,e.sO=new F(g,k),c=new D(this.IN),f=new m(this.NN,this.tO(),e,!1,d,c),this.uO(f),f.vO))return void this.JN(!0)},UN:function(){var b;return this._process=2,b=new a(this.NN,this.GN.MN(),this.tO(),this.GN.WN(0).PN),this.wO(b),!!b.vO&&(this.JN(!0),!0)},_N:function(a,b){var e,c=!1,f=!1,d;e=(0!==a&&(d=Ya(b/a)/Ga*180,20>d&&(c=!0)),0===a?f=!0:(d=Ya(b/a)/Ga*180,75<d&&105>d&&(f=!0)),{yN:c,zN:f});this.SN=e.yN;this.TN=e.zN},gO:function(){var a=0,b=0,e=this.xO(),c=e.yO,e=e.zO,f=new F(c.X,c.Y);return a=c.X-e.X,b=c.Y-e.Y,{hO:a,iO:b,SH:f}},jO:function(){var a,b=0,e=1,c=0;if(this.ZN(16)&&1===this.GN.MN()&&this.YN())var f=this.GN.WN(0).aO,d=this.GN.WN(0).ON,g=this.AO,k=new F(g._Center.X,g._Center.Y),b=new F(d.X-k.X,d.Y-k.Y),f=new F(f.X-k.X,f.Y-k.Y),d=Ra(1,Ta(H(d,k)/g._Radius,4)),b=O(b,f),b=ua(b)?0:b*d;return 1<this.GN.MN()&&(a=this.BO(),b=a.kO,e=a.eb,c=a.lO),b=b/Ga*180,{kO:b,eb:e,lO:c}},BO:function(){var a,b,e,c,f,d,g,k;a=this.xO();var h=a.yO,m=a.zO,p=this.YN(),l=p?this.AO._Center:new F(0,0),n=0,q=1,t=0,v=0,x=0,r=0,y=0,w=this.GN.MN();for(a=0;a<w;a++)b=this.GN.WN(a),e=b.aO,c=b.ON,b=H(e,h),f=H(c,m),d=p?new F(c.X-l.X,c.Y-l.Y):new F(c.X-m.X,c.Y-m.Y),g=p?new F(e.X-l.X,e.Y-l.Y):new F(e.X-h.X,e.Y-h.Y),c=H(c,l),e=H(e,l),f>=this.HN&&b>=this.HN&&(x++,r+=b,y+=f,(!p||c>=this.HN)&&e>=this.HN&&(k=O(d,g),n+=k,v++));return 0<v&&this.ZN(16)?n/=v:n=0,0<x&&this.ZN(32)?(this.KN||(q=r/y),t=(r-y)/x,this.CO=r/x):this.CO=0,{kO:n,eb:q,lO:t}},ZN:function(a){return 0!==(this.FN&a)},xO:function(){var a,b,e,c,f,d=0,g=0,k=0,h=0,m=this.GN,p=m.MN();for(a=0;a<p;a++)b=m.WN(a),e=b.ON,b=b.aO,d+=e.X,g+=e.Y,k+=b.X,h+=b.Y;return c=new F(d/p,g/p),f=new F(k/p,h/p),{yO:f,zO:c}},YN:function(){var a=this.AO;return a&&!ua(a._Radius)},VN:function(a){a=new B(this.NN,this.FN,null,a);return a.DO=511,this.EO(a),this.FO=a.DO,0===a.DO?(this.JN(!1),!1):(this.FN=a.DO,this.AO=a.GO,this._process=1,!0)},JN:function(a){var b,e=3===this._process;this._process=0;this.HO&&(clearInterval(this.HO),this.HO=null);a&&(b=new c(this.NN,this.tO(),e,G(this.oO),new D(this.IN)),3===this._process?this.cO=b:this.dO(b));this.IN.IO();this.GN.IO();this.AO=null;this.BN=this.AN=0;this.CN=1;this.EN=this.DN=0;this.TN=this.SN=!1;this.FN=0},fO:function(){var a,b,e=this,c={},f=new D(e.IN);return c.JO=e.ZN(64)?f.KO().X:0,c.LO=e.ZN(64)?f.KO().Y:0,c.MO=e.ZN(256)?f.pO():0,c.NO=e.ZN(128)?f.OO():0,0===c.JO&&0===c.LO&&0===c.MO&&0===c.NO?void e.JN(!0):(c.PO=new n(c.JO,c.LO),c.QO=new A(c.MO),c.RO=new r(c.NO),f=new D(null,c.JO,c.LO,c.NO,c.MO),a=new h(e.NN,e.tO(),new w,f,c.QO,c.RO,c.PO),e.SO(a),c.PO=a.TO,c.QO=a.QO,c.RO=a.RO,0>=c.PO.UO&&0>=c.PO.VO&&c.PO.WO(.003),0>=c.QO.XO()&&c.QO.WO(.002),0>=c.RO.XO()&&c.RO.WO(.003),b=J(),c.YO=b,c.ZO=b,c.$O=0,c._O=0,e._process=3,void(e.HO=setInterval(function(){try{e.aP(c)}catch(pb){}},20)))},aP:function(a){var b,e,c,f,d,g,k,h,p,l,n,q,t,v=J(),x=v-a.ZO;if(0!==x){if(b=a.JO,e=a.LO,c=a.MO,f=a.NO,a.JO=this.bP(x,a.PO.UO,a.JO),a.LO=this.bP(x,a.PO.VO,a.LO),a.MO=this.bP(x,a.QO.XO(),a.MO),a.NO=this.bP(x,a.RO.XO(),a.NO),b=(b+a.JO)/2,e=(e+a.LO)/2,c=(c+a.MO)/2,f=(f+a.NO)/2,a.ZO=v,d=!1,2.220446049250313E-16>=va(b)&&2.220446049250313E-16>=va(e)&&2.220446049250313E-16>=va(c)&&2.220446049250313E-16>=va(f)&&(d=!0),g=x*b,k=x*e,h=x*c,p=x*f,l=1,0<this.CO&&(0>this.CO+2*h&&(h=-this.CO/2+1),0!==this.CO&&(l=(this.CO+2*h)/this.CO)),this.EN+=h,this.DN+=p,this.AN+=g,this.BN+=k,this.CN*=l,this.CO+=h,this.oO=new F(this.oO.X+g,this.oO.Y+k),a.$O+=g,a._O+=k,d){if(g=bb(a.$O),k=bb(a._O),2.220446049250313E-16>=va(g)&&2.220446049250313E-16>=va(k))return void this.JN(!0)}else 1<=va(a.$O)&&(g=a.$O,a.$O-=g),1<=va(a._O)&&(k=a._O,a._O-=k);return n=new w,n.sO=new F(g,k),n.rO=l,n.pO=h,n.qO=p,q=new D(null,a.JO,a.LO,a.NO,a.MO),t=new m(this.NN,this.tO(),n,!0,G(this.oO),q),this.uO(t),t.vO?void this.JN(!0):void(d&&this.JN(!0))}},bP:function(a,b,e){if(2.220446049250313E-16>=va(e))return 0;var c;return c=0>e?e+b*a:e-b*a,(0>c&&0<e||0<c&&0>e)&&(c=0),c},tO:function(){var a=new w;return a.pO=this.EN,a.qO=this.DN,a.rO=this.CN,a.sO=new F(this.AN,this.BN),a},cP:function(a,b,e,c){var f,d=new w,g=new w,k=0,h=0,m=0,p=0,l=this.ZN(4)&&this.SN,n=this.ZN(8)&&this.TN;return!this.ZN(1)||n||a&&!this.ZN(64)||(d.sO.X=b.sO.X,g.sO.X=e.sO.X,k=c.KO().X),!this.ZN(2)||l||a&&!this.ZN(64)||(d.sO.Y=b.sO.Y,g.sO.Y=e.sO.Y,h=c.KO().Y),!this.ZN(32)||a&&!this.ZN(256)?(d.rO=b.rO,g.rO=1):(d.rO=b.rO,d.pO=b.pO,g.rO=e.rO,g.pO=e.pO,p=c.pO()),!this.ZN(16)||a&&!this.ZN(128)||(d.qO=b.qO,g.qO=e.qO,m=c.OO()),f=new D(null,k,h,m,p),new C(d,g,f)},EO:function(a){this.vM&&a&&this.vM(a)},wO:function(a){this.wM&&a&&this.wM(a)},dO:function(a){var b;this.xM&&a&&(b=this.cP(!1,a.dP,a.dP,a.eP),a.dP=b.dP,a.eP=b.eP,this.xM(a))},SO:function(a){var b;this.AM&&a&&(b=this.cP(!1,a.dP,a.fP,a.eP),a.dP=b.dP,a.fP=b.fP,a.eP=b.eP,this.AM(a))},uO:function(a){var b;this.BM&&a&&(b=this.cP(a.gP,a.dP,a.fP,a.eP),a.dP=b.dP,a.fP=b.fP,a.eP=b.eP,this.BM(a))}});l(L.prototype,{qN:function(a){var b;this._pointerCount++;1<this._pointerCount||(b=J(),this.hP&&R(a,this.hP)&&400>b-this.iP?this.Jb++:(this.hP=a,this.Jb=1),this.jP=a,this.iP=b)},wN:function(){this.cO&&(this.cO instanceof y?this.kP(this.cO):this.cO instanceof t&&this.lP(this.cO),this.cO=null)},vN:function(a){var b;this._pointerCount--;0<this._pointerCount||(b=J(),R(a,this.jP)?1E3<b-this.iP?this.cO=new t(this.jP):1<this.Jb?(this.Jb=0,this.mP(new E(this.hP)),this.hP=null):this.cO=new y(this.jP):this.hP=null)},nP:function(){this.hP=null},kP:function(a){this.CM&&a&&this.CM(a)},mP:function(a){this.DM&&a&&this.DM(a)},lP:function(a){this.EM&&a&&this.EM(a)}});ga.oP=F;l(q.prototype,{rP:function(a){var b,e,c,f,d;if(0===this.Jb)return 0;b=0;e=(1+this.Jb)*this.Jb/2;for(c=this.Jb-1;0<=c;c--)f=0,d=this.sP(c),0===a?f=d.hO:1===a?f=d.iO:2===a?f=d.lO:3===a&&(f=d.kO),f=this.tP(f,d.mO),f*=c+1,b+=f;return b/e},tP:function(a,b){return a/b},sP:function(a){return this.qP[this.uP(a)]},vP:function(){return this.qP[this.Jb-1]},nO:function(a){var b,e;10===this.Jb&&this.wP();this.Jb++;this.qP[this.uP(this.Jb-1)]=a;b=20*this.pP;for(e=0;e<this.Jb;e++)a.mO-this.qP[e].mO>b&&(this.wP(),e--)},wP:function(){this.oI++;this.oI===this.pP&&(this.oI=0);this.Jb--},IO:function(){this.Jb=0},uP:function(a){return(this.oI+a)%this.pP}});l(D.prototype,{KO:function(){return this.xP||(this.xP=new F(this.qP.rP(0),this.qP.rP(1))),this.xP},OO:function(){return fa(this.yP)&&(this.yP=this.qP.rP(3)),this.yP},pO:function(){return fa(this.lO)&&(this.lO=this.qP.rP(2)),this.lO}});l(A.prototype,{XO:function(){var a=this._DesiredExpansion,b=this._DesiredDeceleration,e=this.zP;return ua(a)||0===a?ua(b)?this.AP:b:.5*e*e/a},WO:function(a){this.AP=a}});l(r.prototype,{XO:function(){var a=this._DesiredRotation,b=this._DesiredDeceleration,e=this.zP;return ua(a)||0===a?ua(b)?this.AP:b:.5*e*e/a},WO:function(a){this.AP=a}});l(n.prototype,{EP:function(){var a=this._DesiredDisplacement,b=this.DP,e=this.BP,c=this.CP,f=this.XO();ua(a)||0===a?ua(f)||0===f?(this.UO=0,this.VO=0):(this.UO=f*va(e)/b,this.VO=f*va(c)/b):(this.UO=.5*b*va(e)/a,this.VO=.5*b*va(c)/a)},XO:function(){var a=this._DesiredDeceleration;return ua(a)&&ua(this._DesiredDisplacement)?this.AP:a},WO:function(a){this.AP=a;this.EP()}});l(z.prototype,{XN:function(a){var b,e,c=this.FP;for(b=0;b<c.length;b++)if(e=c[b],e.Np===a)return!0;return!1},QN:function(a){this.FP.push(a)},eO:function(a){var b,e=this.FP;for(b=0;b<e.length;b++)if(e[b].Np===a){e.splice(b,1);break}},MN:function(){return this.FP.length},WN:function(a){return this.FP[a]},$N:function(a){var b,e,c=this.FP;for(b=0;b<c.length;b++)if(e=c[b],e.Np===a)return e;return null},IO:function(){var a=this.FP;a.splice(0,a.length)}});l(p.prototype,{IP:function(a,b){var e=this.Xs;return e?a===ya.Nn(e)&&b===ya.On(e)||ya.Pn(e,a,b):(e=pa("canvas"),ya.Kn(e,null,this.kj),ya.Pn(e,a,b)),e},JP:function(a,b,e,c){var f=ya.Nn(a),d=ya.On(a),f=this.IP(f,d),d=f.getContext("2d"),g=ya.Ln(f),k=ya.Mn(f);da.Cn(d,1,1);d.drawImage(a,0,0,f.width,f.height,0,0,f.width,f.height);da.Cn(d,g,k);this.Xs=f;this.KP=b;this.LP=e;this.MP=c},NP:function(a,b,e){var c,f,d,g,k,h,m;c=this.kj;f=ya.Nn(a);d=ya.On(a);var p=c.frozenTrailingColumnCount(),l=c.frozenTrailingRowCount(),n=0<p?1:0,q=0<l?1:0,t=this.LP,v=c.Gt&&c.Gt()||{x:0,y:0,width:0,height:0},x=this.KP,r=c.am();b/=this.MP;var y=a.getContext("2d"),w=ya.Ln(a);a=ya.Mn(a);var z=this.Xs;y.save();y.fillStyle=e;y.fillRect(0,0,f,d);e=c.rowOutlines;f=c.columnOutlines;e&&e.jp(c,y,null,!0);f&&f.jp(c,y,null,!1);c=t.x+t.width;e=t.y+t.height;f=x.lt-c-n;d=x.ot-e-q;g=v.x+v.width;k=v.y+v.height;h=f*b;m=d*b;c*=w;e*=a;f*=w;d*=a;g*=w;k*=a;h*=w;m*=a;da.Cn(y,1,1);y.drawImage(z,c,e,f,d,g,k,h,m);0<p&&(c=x.lt-n,e=t.y+t.height,f=x.js+n,d=x.ot-e-q,g=r.lt-n,k=v.y+v.height,h=r.js+n,m=d*b,c*=w,e*=a,f*=w,d*=a,g*=w,k*=a,h*=w,m*=a,y.drawImage(z,c,e,f,d,g,k,h,m));0<l&&(c=t.x+t.width,e=x.ot-q,f=x.lt-c-n,d=x.gs+q,g=v.x+v.width,k=r.ot-q,h=f*b,m=r.gs+q,c*=w,e*=a,f*=w,d*=a,g*=w,k*=a,h*=w,m*=a,y.drawImage(z,c,e,f,d,g,k,h,m));0<p&&0<l&&(c=x.lt-n,e=x.ot-q,f=x.js+n,d=x.gs+q,g=r.lt-n,k=r.ot-q,h=r.js+n,m=r.gs+q,c*=w,e*=a,f*=w,d*=a,g*=w,k*=a,h*=w,m*=a,y.drawImage(z,c,e,f,d,g,k,h,m));da.Cn(y,w,a);y.restore()},OP:function(){var a=this.kj,b=a._zoomFactor,e=a.yl.vI();e&&this.JP(e.canvas,a.am(),a.Gt&&a.Gt()||{x:0,y:0,width:0,height:0},b)},PP:function(a){var b,e,c,f=this.kj;f.endEdit()&&(b=M(a,this.MP),f._zoomFactor!==b&&(f.Wq(ia.UserZooming,{sheet:f,sheetName:f.Cj,oldZoomFactor:f._zoomFactor,newZoomFactor:b}),f._zoomFactor=b,f.invalidateLayout(),e=f.yl,c=e.bm(),c&&this.NP(c.canvas,b,e.zI(!1)),f.QP&&f.QP(null,b),f.RP&&f.RP(null)))},SP:function(a){var b=this.kj;b._zoomFactor=M(a,this.MP);b.oq=!0;b.jq=!0;b.$p()}});ga.TP=p;l(x.prototype,{VP:function(a){var b=this.kj,e=b.bs;e.viewport||(e.viewport={});for(var e=e.viewport,c=new wa,f=b.ss,d=b.am(),g=jb(b.frozenColumnCount(),b.qq),b=b.getColumnCount(void 0)-b.frozenTrailingColumnCount(),k=d.pt+a,d=d.er-a;0<d&&g<b;g++)a=f._m(g),c.push(new Ka(-1,g,k,-1,a,-1)),k+=a,d-=a;e[1]=c},WP:function(a){var b=this.kj,e=b.as;e.viewport||(e.viewport={});for(var e=e.viewport,c=new wa,f=b.ss,d=b.am(),g=jb(b.frozenRowCount(),b.lq),b=b.getRowCount(void 0)-b.frozenTrailingRowCount(),k=d.qt+a,d=d.jr-a;0<d&&g<b;g++)a=f.Sl(g),c.push(new Ka(g,-1,-1,k,-1,a)),k+=a,d-=a;e[1]=c},XP:function(){var a=this.kj,b=a.bs.viewport,e=a.as.viewport;a.invalidateLayout();a.bs.viewport=b;a.as.viewport=e},ju:function(a,b,e,c){var f,d,g,k,h,m,p,l,n,q,t,v,x,r,y,w=this.kj;f=a;k=w.lq;var z=0;h=w.ss;m=w.am().qt;if(p=w.jt(1).findRow(k))if(0<f){z=w.Rt(-1);for(m-=p.y;k>z&&m<f;)k--,m+=h.Sl(k);z=f-m}else if(0>f){z=w.ns();for(m=-(p.y+p.height-m);k<z&&m>f;)k++,m-=h.Sl(k);z=f-m}f=k;if(w.lq=f,0<w.Xq)return!1;if(d=w.Dr(),g=w.am(),k=g.qt,h=g.jr,m=d?d.x:g.x,p=g.width,0>a)this.ZP=this.YP=0,(b=w.jt(1))&&0<b.length&&(t=b.findRow(f)),t&&(v=b[b.length-1],v.row>=f&&(l=2,n=k+va(a),q=Ra(k+h,v.y+v.height)-n,0<=q&&(q-=l,this.WP(z-t.height),e.x=m,e.y=n,e.width=p,e.height=q,e.tx=m,e.ty=k,c.x=m,c.y=k+q,c.width=p,c.height=h-q)));else if(0<a){if(x=w.Rt(-1),f===x&&0<z){if(0<this.YP&&0<this.ZP){if(r=this.YP+a,y=Ha(-200/(r/200+1)+200),a=y-this.ZP,z=y,0>=a)return b;if(b&&20<=y)return!0}else{if(200<=z&&(a-=z-199,z=199,0>=a))return b;if(r=Ha(200*(-200/(z-200)-1)),y=z,b&&20<=y)return!0}this.YP=r;this.ZP=y}else this.ZP=this.YP=0;a<h&&(l=2,n=k,q=h-a,0<w.frozenTrailingRowCount()&&--q,this.WP(z),e.x=m,e.y=n,e.width=p,e.height=q,e.tx=m,e.ty=n+a,c.x=m,c.y=n,c.width=p,c.height=a+l)}return!1},lu:function(a,b,e,c){var f,d,g,k,h,m,p,l,n,q,t,v,x,r,y,w=this.kj;f=a;k=w.qq;var z=0;h=w.ss;m=w.am().pt;if(p=w.it(1).findCol(k))if(0<f){z=w.Ot(-1);for(m-=p.x;k>z&&m<f;)k--,m+=h._m(k);z=f-m}else if(0>f){z=w.ps();for(m=-(p.x+p.width-m);k<z&&m>f;)k++,m-=h._m(k);z=f-m}f=k;if(w.qq=f,0<w.Xq)return!1;if(d=w.Dr(),g=w.am(),k=g.pt,h=g.er,m=d?d.y:g.y,p=g.height,0>a)this._P=this.$P=0,(b=w.it(1))&&0<b.length&&(x=b.findCol(f)),x&&(r=b[b.length-1],r.col>=f&&(l=2,n=k+va(a),q=Ra(k+h,r.x+r.width)-n,0<=q&&(q-=l,this.VP(z-x.width),e.x=n,e.y=m,e.width=q,e.height=p,e.tx=k,e.ty=m,c.x=k+q,c.y=m,c.width=h-q,c.height=p)));else if(0<a){if(y=w.Ot(-1),f===y&&0<z){if(0<this.$P&&0<this._P){if(t=this.$P+a,v=Ha(-200/(t/200+1)+200),a=v-this._P,z=v,0>=a)return b;if(b&&20<=v)return!0}else{if(200<=z&&(a-=z-199,z=199,0>=a))return b;if(t=Ha(200*(-200/(z-200)-1)),v=z,b&&20<=v)return!0}this.$P=t;this._P=v}else this._P=this.$P=0;a<h&&(l=2,n=k,q=h-a,0<w.frozenTrailingColumnCount()&&--q,this.VP(z),e.x=n,e.y=m,e.width=q,e.height=p,e.tx=n+a,e.ty=m,c.x=n,c.y=m,c.width=a+l,c.height=p)}return!1},aQ:function(a,b,e,c){var d,k,h,m,p,l,n,q,t=this.kj,v=!0,x=!0,r=t.yl,y=r.bm(),w=0!==(2&e);if((e=0!==(1&e))||w){p=t.Dr();l=t.am();n=p?p.y:l.y;q=l.height;p=p?p.x:l.x;l=l.width;w&&(k={},d={},v=this.ju(b,c,d,k),r.Ow(d.x,d.y,d.width,d.height,d.tx,d.ty));e&&(h={},m={},x=this.lu(a,c,h,m),r.Ow(h.x,h.y,h.width,h.height,h.tx,h.ty),w||(k=m));(a=t.parent)&&!a.options.scrollbarShowMax&&(e&&(t.oq=!0),w&&(t.jq=!0));this.XP();a=t.rowOutlines&&!t.rowOutlines.iT()?1:0;b=t.columnOutlines&&!t.columnOutlines.iT()?1:0;e&&w?r._l(y,new ba(k.x,k.y,k.width,k.height+a),new ba(m.x,m.y,m.width+b,m.height)):r._l(y,new ba(k.x,k.y,k.width+b,k.height+a));r.Pw(y,new ba(p,n,l,q));var z,u;k=t.am();y=t.yl;m=t.options.gridline.color;r=(r=qa.Km(0,"gc-columnHeader-normal"))&&r.borderBottomColor;y=y.bm();p=t.jt(1);n=k.zr;q=k.width;a=t.Rt(-1);(p=p.findRow(a))&&(z=k.qt,u=p.y-z,0<u&&(f(y,m,n,p.y-.5,n+q,p.y-.5),f(y,r,k.kt-.5,z,k.kt-.5,p.y)));p=t.it(1);z=k.Ar;u=k.height;a=t.Ot(-1);(p=p.findCol(a))&&(n=k.pt,q=p.x-n,0<q&&(f(y,m,p.x-.5,z,p.x-.5,z+u),f(y,r,n,k.nt-.5,p.x,k.nt-.5)));var B,A,C;z=t.am();m=t.yl;u=m.zI(!1);k=m.bm();m=m.vI();n=t.jt(1);r=z.zr;y=z.width;q=t.Rt(-1);if(q=n.findRow(q))B=z.qt,A=q.y-B-1,0<A&&(q=z.Br,p=(p=qa.Km(0,"gc-rowHeader-normal"))&&p.backgroundColor,g(k,p,r,B,q-1,A+1),g(m,p,r,B,q-1,A+1),g(k,u,r+q,B,y-q,A),g(m,u,r+q,B,y-q,A));q=t.Rt(t.getRowCount(void 0),!0);(n=n.findRow(q))&&(B=n.y+n.height,A=z.ot-B-1,0<A&&(g(k,u,r,B,y,A),g(m,u,r,B,y,A)));n=t.it(1);B=z.Ar;A=z.height;q=t.Ot(-1);if(q=n.findCol(q))if(r=z.pt,y=q.x-r-1,0<y){q=z.Cr;p=r;a=B;b=y+1;c=q-1;d=(h=qa.Km(0,"gc-columnHeader-normal"))&&h.backgroundImage;h=h&&h.backgroundColor;if(d&&-1!==d.indexOf("linear-gradient"))for(d=la.wl(d),C=k.createLinearGradient(p+b/2,a,p+b/2,a+c),p=0,a=d.length;p<a;p++)b=d[p],C.addColorStop(b.point,b.color);else h&&(C=h);g(k,C,r,B,y+1,q-1);g(m,C,r,B,y+1,q-1);g(k,u,r,B+q,y,A-q);g(m,u,r,B+q,y,A-q)}t=t.Ot(t.getColumnCount(void 0),!0);(t=n.findCol(t))&&(r=t.x+t.width,y=z.lt-r-1,0<y&&(g(k,u,r,B,y,A),g(m,u,r,B,y,A)));return this.bQ(e,w),v&&x}},bQ:function(a,b){var e;e=this.kj;b&&e.os();a&&e.qs();e.mm.Qw();(e=e.comments)&&e.cQ()},dQ:function(a,b,e){function c(a,b,e){return a=va(a),a/=e,ta(a)/ta(.75)*b}var f=this,d=f.kj,g=c(a,10,200),h=c(b,10,200),m=a,p=b,l=0,n=0,q=!1,t=!1;f.jI=setInterval(function(){var c,v,x;if(q&&t)d.ss.jn(),(c=d.parent)&&!c.options.scrollbarShowMax&&(d.oq=!0,d.jq=!0),d.ss.kn(),d.$p(),d.qs(),d.os(),clearInterval(f.jI),c=void(f.jI=null);else{g+=20;h+=20;if(100<g&&100<h)f.aQ(a-l,b-n,k(q,t),e),t=q=!0;else{100<g&&!q&&(f.aQ(a-l,0,1,e),q=!0);100<h&&!t&&(f.aQ(0,b-n,2,e),t=!0);var r=g;c=0<a;c=(r/=10,200*Ta(.75,r)*(c?1:-1));v=h;r=0<b;r=(v/=10,200*Ta(.75,v)*(r?1:-1));v=fb(m-c);x=fb(p-r);f.aQ(v,x,k(q,t),e);m=c;p=r;l+=v;n+=x}c=void 0}return c},20)},qG:function(a){var b=this.kj,e=b.ss;this.jI&&(e.kn(),clearInterval(this.jI),this.jI=null);this.ZP=this.YP=this._P=this.$P=0;this.eQ=b.lq;this.fQ=b.qq;a&&e.hn()},NG:function(a,b){var e,c;e=Ha(a.X);c=Ha(a.Y);var f,d=0;f=(d|=0!==e?1:0,d|(0!==c?2:0));return this.aQ(e,c,f,b)},gQ:function(a){var b,e,c,f,d,g=this.kj,k=g.am(),h=k.pt,k=k.qt,m=g.lq,p=g.qq,l=g.it(1);e=g.ps();l&&0<l.length&&(b=l.findCol(p),p<e&&b&&b.x+b.width-h<b.width/2&&p++);e=g.jt(1);f=g.ns();e&&0<e.length&&(c=e.findRow(m),m<f&&c&&c.y+c.height-k<c.height/2&&m++);d=f=0;l&&0<l.length&&(b=l.findCol(p),f=h-b.x);e&&0<e.length&&(c=e.findRow(m),d=k-c.y);m!==this.eQ&&g.mq(m);p!==this.fQ&&g.rq(p);this.dQ(f,d,a)}});l(P.prototype,{jQ:function(a){var b=this.kj,e=b.am(),c=e.pt,f=e.qt,d=e.lt,e=e.ot,g=a.rN,k=0,g=this.kQ(g.X,g.Y),h=g.dragInfo,m=g.x,p=g.y;g&&(g.resizeInfo||h&&"corner"===h.side||g.selectionHitInfo)?(k|=2,k|=1):(f<=p&&p<e&&(k|=2),c<=m&&m<d&&(k|=1),k|=96,b.parent&&(k|=12));a.DO=k},lQ:function(a){var b,e,c,f=a.rN,d=this.kj;b=d.parent;var g=d.mm,k=d.yl,f=this.kQ(f.X,f.Y);c=f.dragInfo;e=f.selectionHitInfo;(d.yt=f,f.resizeInfo)?d.endEdit()&&g.fG(f):c&&"corner"===c.side?g.hG&&g.hG(f):e?d.endEdit()&&(b=e.isHeader,a=e.isFirstIndicator,e=e.type,b&&g.ZG(f,!0),c=f.hitTestType,f.hitTestType=e,g.bH(f),f.hitTestType=c,b||(g=d.getSelections(),g=g[g.length-1],a?3===e?(d.Jl=g.row+g.rowCount-1,d.Kl=g.col+g.colCount-1):2===e?(d.Jl=g.row+g.rowCount-1,d.Kl=0):1===e&&(d.Jl=0,d.Kl=g.col+g.colCount-1):3===e?(d.Jl=g.row,d.Kl=g.col):2===e?(d.Jl=g.row,d.Kl=0):1===e&&(d.Jl=0,d.Kl=g.col)),d.mQ=!1,k.DH()):(d.nQ&&(d.nQ().oQ=!1),d.mQ=!1,k.DH(),1<a.HP&&b&&b.options.allowUserZoom?(this.KN=!1,this.hQ.OP()):(this.KN=!0,this.iQ.qG(1===a.HP)))},pQ:function(a){var b,e,c,f=a.rN,d=this.kj,g=d.mm,k=d.yt,d=f.X,f=f.Y;k&&((b=k.dragInfo,e=k.selectionHitInfo,k.resizeInfo)?(g.$F={e:a,x:d,y:f},g.WG()):b&&"corner"===b.side?(g.$F={e:a,x:d,y:f},g.CG&&g.CG()):e||g.xG?e&&g.rG&&g.OG&&!0!==g.DA&&(c=e.type,g.$F={e:a,x:d,y:f},3===c?g.cH():2===c?g.dH():1===c&&g.eH()):this.KN?a.vO=this.iQ.NG(a.fP.sO,a.gP):(c=a.dP.rO,this.hQ.PP(c)))},qQ:function(a){var b,e,c,f=this.kj,d=f.mm;f.mQ=!0;b=f.yt;e=b.selectionHitInfo;b.resizeInfo?d.YG():b.dragInfo&&d.BG?(d.xH&&d.xH(),f.parent.touchToolStrip.rQ()):e||d.xG?(d.hH(),e&&(a=e.isHeader,b=e.isFirstIndicator,e=e.type,c=f.getSelections(),c=c[c.length-1],(a||b)&&(3===e?(f.Jl=c.row,f.Kl=c.col):2===e?(f.Jl=c.row,f.Kl=0):1===e&&(f.Jl=0,f.Kl=c.col))),f.yl.im()):(f.nQ&&(f.nQ().oQ=!0),this.KN?this.iQ.gQ(a.gP):(c=a.dP.rO,this.hQ.SP(c)))},sQ:function(a){var b,e,c,f,d,g,k,h,m,p,l,n,q,t,v=this;f=a.rN;var x=v.kj,r=x.parent,y=!1;if(v.tQ(),x.uQ&&x.uQ(),b=x.comments,b&&b.vQ(),a=x.mm,e=v.kQ(f.X,f.Y,!0),c=e.filterButtonHitInfo,f=e.hitTestType,d=e.row,g=e.col,k=e.outlineHitInfo)x.isEditing()||(h=k.what,m=x.rowOutlines,p=x.columnOutlines,"rg"===h||"rgh"===h?m&&m.UL(x,k):"cg"!==h&&"cgh"!==h||p&&p.UL(x,k));else if(x.yt=e,c)x.endEdit()&&(l=c.rowFilter)&&l.openFilterDialog(c);else if(!e.resizeInfo&&x.Qs(0>e.rowViewportIndex?-1:d,0>e.colViewportIndex?-1:g)){if(x.wQ&&!a.BG&&r.touchToolStrip.rQ(),b=x.getActiveRowIndex(),h=x.getActiveColumnIndex(),m=e.cellTypeHitInfo){if(n=m.sheetArea,!fa(n)&&3!==n||d===b&&g===h)x.yl.DH();else{if((x.suspendPaint(),!x.endEdit())||(q={sheet:x,sheetName:x.Cj,row:b,col:h,cancel:!1},x.Wq(ia.LeaveCell,q),q&&!0===q.cancel))return;n=x.Uq.toArray();q=x.zl().get(d,g);q=[sa(q.row,q.col,q.rowCount,q.colCount)];x.yu(n,q);q=m.isReservedLocation&&m.isFocusAware;x.Sr(d,g,void 0,void 0,q?0:1);q={sheet:x,sheetName:x.Cj,row:d,col:g};x.Wq(ia.EnterCell,q);x.Wq(ia.FormulatextboxEnterCell,q);x.Au(n);x.Iia=!0;a.cs&&a.cs(d,g);x.resumePaint();y=!0}n=x.getCellType(m.row,m.col,f);m.sheet||(m.sheet=x);n.processMouseDown(m);n.processMouseUp(m)}if(m&&m.isReservedLocation)return!0;x.Wq(ia.CellClick,{sheet:x,sheetName:x.Cj,sheetArea:f,row:e.row,col:e.col});try{if(a.mG=e,x.isEditing()&&b===x.getActiveRowIndex()&&h===x.getActiveColumnIndex()&&!x.endEdit())return}finally{a.mG=null}fa(d)||fa(g)||(3===f&&a.cs&&a.cs(d,g),W(x,d,g,f)&&!y?v.xQ=setTimeout(function(){var a={x:e.x,y:e.y,handled:!1},b=r.touchToolStrip;x.Wq(ia.TouchToolStripOpening,a);a.handled||b.open(e.x,e.y-100);v.tQ()},420):(l=x.Uq.toArray(),a.ZG(e),t=x.Uq.toArray(),x.yu(l,t),a.hH()))}},yQ:function(a){var b,e,c,f,d,g=this.kj;a=a.rN;if(this.tQ(),c=g.yt,c&&(g.Wq(ia.CellDoubleClick,{sheet:g,sheetName:g.Cj,sheetArea:c.hitTestType,row:c.row,col:c.col}),f=c.resizeInfo))if("sizeRow"===f.action||"sizeHiddenRow"===f.action){if(d=[],g.tp(f.index))for(b=0;b<g.Uq.length;b++){if(e=g.Uq[b],-1===e.col)for(e=g.Tq(e),c=0;c<e.rowCount;c++)d.push({row:e.row+c})}else d.push({row:f.index});g.wu().execute({cmd:"autoFitRow",sheetName:g.name(),rows:d,columnHeader:1===f.sheetArea})}else{if(d=[],g.sp(f.index))for(b=0;b<g.Uq.length;b++){if(e=g.Uq[b],-1===e.row)for(e=g.Tq(e),c=0;c<e.colCount;c++)d.push({col:e.col+c})}else d.push({col:f.index});g.wu().execute({cmd:"autoFitColumn",sheetName:g.name(),columns:d,rowHeader:2===f.sheetArea})}else e=this.kQ(a.X,a.Y,!0),!(e&&0<=e.row&&0<=e.col&&0<=e.rowViewportIndex&&0<=e.colViewportIndex)||e.resizeInfo||g.options.isProtected&&g.tq(e.row,e.col,"locked")||(g.Tr(),b=g.Er(e.row),d=g.Fr(e.col),g.Kr(e.row,e.col,b,d,!0),g.addSelection(e.row,e.col,1,1),g.mm.dI(!1),g.EF(g.Ws(),e.row,e.col))},zQ:function(a){var b,e,c=this.kj;a=a.rN;var f=this.kQ(a.X,a.Y);c.isEditing()?f.row===c.Jl&&f.col===c.Kl||c.mm.cI(f):(this._target=f,b=this.kQ(a.X,a.Y,!0),b&&(e=b.cellTypeHitInfo)&&e.isEditting||c.mm.cI(b))},AQ:function(){var a,b,e,c,f=this.kj;f.isEditing()||(a=this._target,b=!0,a&&(e=a.cellTypeHitInfo,e&&e.isReservedLocation?b=!1:(c=f.getCellType(a.row,a.col),c&&c.isEditting()&&(b=!1))),b&&f.mm.dI())},kQ:function(a,b,e){var c,f,d,g,k,h,m,p,l,n,q,t=this.kj;t.am();c={x:a,y:b,rowViewportIndex:null,colViewportIndex:null,row:-1,col:-1,resizeInfo:null,hitTestType:null,outlineHitInfo:null,filterButtonHitInfo:null,dragInfo:null,cellTypeHitInfo:null,selectionHitInfo:null};f=t.rowOutlines;d=t.columnOutlines;f&&(g=f.hitTest(t,a,b));!g&&d&&(g=d.hitTest(t,a,b));if(g)c.outlineHitInfo=g;else{f=t.nr(b);d=t.or(a);c.rowViewportIndex=f;c.colViewportIndex=d;c.row=t.pr(b,f);c.col=t.qr(a,d);0<=f&&2>=f&&0<=d&&(k=t.rr(f,d,void 0,c.row,c.col),k&&(c.row=k.row,c.col=k.col));c.hitTestType=t.sr(f,d);var x,v,r,y;k=t.parent;d=t.mm;g=t.options;var w=c.rowViewportIndex,z=c.colViewportIndex,u=t.getSelections();f=null;k=(t.CH&&0<u.length&&(m=u[u.length-1],x=m.row,v=m.row+m.rowCount-1,r=m.col,y=m.col+m.colCount-1,k&&!k.options.allowUserResize||(-1!==x&&-1===r&&0<=w&&0>z&&g.rowHeaderVisible?(f=d.mH(t,c,10,2,b),!f||"sizeRow"!==f.action&&"sizeHiddenRow"!==f.action||2!==f.sheetArea||f.index===v||(f=null)):-1===x&&-1!==r&&0>w&&0<=z&&g.colHeaderVisible&&(f=d.oH(t,c,10,1,a),!f||"sizeCol"!==f.action&&"sizeHiddenCol"!==f.action||1!==f.sheetArea||f.index===y||(f=null)))),f);(m=(m=t.xr)&&m.hitTest(c,a,b))||(l=t.tables,n=l&&l.find(c.row,c.col),q=n&&n.xr,m=q&&q.hitTest(c,a,b));if(l=t.wQ){var B;a:{var A,C,E,D,F,M,G,P;h=null;n=c.rowViewportIndex;q=c.colViewportIndex;if(fa(n)||fa(q))B=h;else{if(l=t.parent,x=t.Ix(),0<=n&&0<=q&&1===t.Uq.length){if(B=t.Tq(x),A=t.frozenTrailingColumnCount(),C=t.frozenTrailingRowCount(),E=t.getColumnCount(void 0)-A,x=t.getRowCount(void 0)-C,1===q&&0<A&&B.col<E&&B.col+B.colCount>E&&(D=t.Hr(q),D&&0<D.length&&(F=D[D.length-1],a>F.x+F.width))){B=h;break a}if(1===n&&0<C&&B.row<x&&B.row+B.rowCount>x&&(M=t.Gr(n),M&&0<M.length&&(G=M[M.length-1],b>G.y+G.height))){B=h;break a}}B=(P=ja(t),P&&(h||(P.x-=P.width,P.y-=P.height,P.width*=3,P.height*=3,P.contains(a,b)&&(h={action:"drag",side:"corner"})),l&&l.options.allowUserDragFill||h&&"corner"===h.side&&(h.side=null)),h)}}l=h=B}if(l)c.dragInfo=h;else if(k)c.resizeInfo=k;else if(m)c.filterButtonHitInfo=m;else{if(e=!e){var N;a:{var V,H,W;p=c.hitTestType;e=ea(t);B=t.getSelections();P=3;t.CH&&0<B.length&&(V=B[B.length-1],-1!==V.row&&-1!==V.col?P=3:-1!==V.row?P=2:-1!==V.col&&(P=1));for(V=0;V<e.length;V++)if(N=e[V],N&&(N.x-=N.width,N.y-=N.height,N.width*=3,N.height*=3,N.contains(a,b))){N=(fa(c.row)&&(H=t.jt(1),H&&0<H.length&&(c.row=H[H.length-1].row)),fa(c.col)&&(W=t.it(1),W&&0<W.length&&(c.col=W[W.length-1].col)),{x:a,y:b,type:P,isHeader:!1,isFirstIndicator:0===V});break a}N=1===p?{x:a,y:b,type:1,isHeader:!0}:2===p?{x:a,y:b,type:2,isHeader:!0}:null}e=p=N}e?c.selectionHitInfo=p:c.cellTypeHitInfo=t.yr(c,a,b)}}return c},tQ:function(){var a=this.xQ;a&&(clearTimeout(a),this.xQ=null)}});l(V.prototype,{EQ:function(){var a=this.CQ,b=this.DQ;b.dN=function(b){return a.jQ(b)};b.eN=function(b){return a.lQ(b)};b.fN=function(b){return a.pQ(b)};b.hN=function(b){return a.qQ(b)};b.iN=function(b){return a.sQ(b)};b.jN=function(b){return a.yQ(b)};b.GM=function(b){return a.zQ(b)};b.IM=function(b){return a.AQ(b)}},FQ:function(){var a=this.DQ;a&&(this.BQ.xN(a,!1),a.dN=null,a.eN=null,a.fN=null,a.gN=null,a.hN=null,a.iN=null,a.jN=null,a.kN=null,a.GM=null,a.IM=null,this.DQ=null)},GQ:function(a){return this.yM.GQ(a)},HQ:function(a){return this.yM.HQ(a)},IQ:function(a){return this.yM.IQ(a)}});Ia(Z,Fa);l(Z.prototype,{open:function(a,b){var e,c,f,d;if(this.OC.getActiveSheet()&&(ra.Zl(null,!0),this.NQ.css({left:a,top:b}),this.Ao(),this.MQ=!0,this.Do(),!xa(this.LQ)))for(c in e=this.LQ,e)e.hasOwnProperty(c)&&(f=e[c],d=!f.RQ||f.RQ.call(this),d?aa("#"+c).show():aa("#"+c).hide())},add:function(a){var c,f,d;a&&(c=this.LQ,a instanceof b?(f=a.name(),f&&(c[f]=a,this.SQ(a.TQ("gc-touch-sperate-line",this.KQ+"px")))):a instanceof e&&(d=a.name(),this.getItem(d)||(c[d]=a,this.SQ(a.TQ("gc-toolstrip-image",this.JQ+"px","gc-toolstrip-text","gc-toolstrip-button")))))},getItem:function(a){return this.LQ[a]},getItems:function(){var a,b=[],e=this.LQ;if(!xa(e)){for(a in e)e.hasOwnProperty(a)&&b.push(e[a]);return b}return null},remove:function(a){var b;return this.getItem(a)?(aa("#"+a).parent().remove(),b=this.LQ[a],delete this.LQ[a],b):null},clear:function(){this.NQ&&(this.NQ.find("td.gc-toolstrip-item").remove(),this.LQ={})},close:function(){var a,b;La.Hm();this.NQ&&this.NQ.hide();this.MQ=!1;this.Eo();(a=this.OC.getActiveSheet())&&(a.zt(),b=a.getSelections(),0<b.length&&!a.wQ&&-1===b[0].row&&-1===b[0].col&&a.Tr())},imageAreaHeight:function(a){return 0===arguments.length?this.JQ:(0<a&&(this.JQ=a,this.NQ.find("span.gc-toolstrip-image").css("height",a+"px")),this)},itemHeight:function(a){var b=this.NQ.find("button.gc-toolstrip-button");return 0===arguments.length?na(b.css("height")):(0<a&&b.css("height",a+"px"),this)},itemWidth:function(a){var b,e=this.NQ.find("button.gc-toolstrip-button");return 0===arguments.length?na(e.css("width")):(0<a&&(b=na(e.css("min-width")),b>a&&e.css("min-width",a+"px"),e.css("width",a+"px")),this)},separatorHeight:function(a){return 0===arguments.length?this.KQ:(0<a&&(this.KQ=a,this.NQ.find("div.gc-touch-sperate-line").css("height",a+"px")),this)},OQ:function(){var a=aa(pa("table")).css({padding:0,display:"table"}).attr({cellspacing:0,cellpadding:0});this.UQ=aa(pa("tr")).appendTo(a);a.appendTo(this.NQ)},no:function(){var a=this.NQ;a&&(this.MQ&&La.Hm(),a.remove(),this.Eo())},QQ:function(){var a=this;a.NQ.bind("click",function(b){var e,c;b=b.target;"button"===b.tagName.toLowerCase()?e=b.id:(c=b.parentElement,c&&"button"===c.tagName.toLowerCase()&&(e=c.id));c=a.LQ[e];e&&c&&c.VQ.call(a)})},SQ:function(a){this.NQ&&a&&aa(pa("td")).append(a).appendTo(this.UQ).addClass("gc-toolstrip-item")},PQ:function(){function a(a){for(var b=0,e=a+b;cb.getElementById(e);)b++,e=a+b;return e}var c,f,g,k;c={0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA8ElEQVRIS92VwQ3CMAxFe+qZERiHY8dgDI4cYYNOhDhwY4ayQviW4q/Eddu0KRe+9CQ72P8rEpAmhPBT3ENLd76EiPv5HO5hSmK+KYTFsz+04A4G9NZ0hAizn7jTos2MFRYYugFZQlscoFzRZsYKCwwNulAqnZddtJmxwiIZ3oT6WFh4S2tQHwsLb2kN6mNh4S2tQX0sLLwly4IyY4WFZ2gReV/ZhBOQH2ddgKcYwBAc7R/weL0ZgqO6gGPXE1E0JlBdwJx2CUhvkCL63xvw33QKUc0N+B5MIaq5gb5o8kotBszJDShFlkvQ+ZHBvoTmC+fiVfoq/m86AAAAAElFTkSuQmCC",1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAABkklEQVRIS7WTUXECQRBEcYCFOIiESAAH/OYPCcQBEogDJCABCUhAwqXf1QzVM0cojko+Xt3ObG/33t7eYhiGf6UU68+vneD5Mu4HpZDgKja+YCYH94NSSHAUg3glZC9k8zgAYwLmhuS6o/tBKUJ8CTGsoveIsin3g1LEAkxzAd/kXbihwxwatGys+EEpEAT5LR6FuDmMb+t+UAoEwVL44h7CvB8lGxrn3A9KkaLAj8pDMD9HL/v0ZgfAQfSAk/WgXAT3g1K4MPCj2AoPhNvRJO4HpejigF1jxtjNy9Ek7gel6GIjfzoP+Ihewf2gFPcWNNL817/c/aAUKXpbfy/FXlzFIM6gOYy3Gp+iz/xBPHeLQGLAMI2PNmYOw1uojZfdCyYNCXexiGcGpiljdp9hsBGjvnvBpCHhRbgBZChjAgj0eXrX7gWThoR992lAMGOOLMfJuIHuBZMGQuE75KN66Cpq14xH2L1g0kixyLNm3I8sNbwJulHfvWDSkJArmou4hlxXeh4AvBEBuZnnbtHfMix+AHqkr6wgQ4Q7AAAAAElFTkSuQmCC",2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA3UlEQVRIS72PwQ3CMAxFOwrjcOyZCTgyAjfWYCJO3JiCCVL/iFSO9W0MDTzpqYob+ztTKeWn0uJIadE6H8/ljXsR96q6tzt4YogH/olPcQ2R8mp3CHRBwO3+6EKkvNodcDkSgyyoAx0iRz/AA/8Op0sdtJuv1Va3Ct8FYHgL8dgUAGxIe41+kRAH6CbdaGW86nFAhnaXLSLEAbqJCbxlUgEZ2DIgFaCbmMBbJhWQgS0DUgG6iQm8ZVIBGTYFsK21oN3F1yrEARnsIM/u8JeAT9S9nrQ4UlocKS2Os0wLtkPMdu9POt0AAAAASUVORK5CYII\x3d",3:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAXCAIAAABrvZPKAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAAIdJREFUOE/tzEEKgCAQheEOWLdx351adYc8Qgs3rbuAUC9nkkF0BKNN9CMy0Xx25llf8Edr7d57j/tlP4wTHf4W/b7gsT0vLs7Sz9bFWfM9nrDXE9ITphlVPO512wkkM++FNF86vBfKeKR43rjLe5QwOvxPVPSoipHmkY5RxSMFo7rXY9+eMSdet07b6c/bnwAAAABJRU5ErkJggg\x3d\x3d"};f=c[0];g=c[1];k=c[2];c=c[3];this.WQ=new e(a("wijspread_toolstrip_paste"),d().ToolStrip_PasteText,f,this.XQ);this.YQ=new e(a("wijspread_toolstrip_cut"),d().ToolStrip_CutText,g,this.ZQ);this.$Q=new e(a("wijspread_toolstrip_copy"),d().ToolStrip_CopyText,k,this._Q);this.aR=new e(a("wijspread_toolstrip_autofill"),d().ToolStrip_AutoFillText,c,this.bR,this.cR);this.add(this.WQ);this.add(this.YQ);this.add(this.$Q);this.add(new b(this.cR));this.add(this.aR)},cR:function(){var a,b,e;a=this.OC.getActiveSheet();if(!a)return!1;a=a.getSelections();for(b=0;b<a.length;b++)if(e=a[b],-1===e.row&&-1===e.col)return!1;return!0},bR:function(){var a,b;this.close();(a=this.OC.getActiveSheet())&&(b=a.getSelections().length,1>=b&&(a.wQ=!0,a.yl.im()))},rQ:function(){var a=this.OC.getActiveSheet();a&&(a.wQ=!1,a.yl.im())},_Q:function(){var a=this.OC.getActiveSheet();a&&(this.dR=a.ux(!0));this.close()},ZQ:function(){var a=this.OC.getActiveSheet();a&&(this.dR=a.sx(!0));this.close()},XQ:function(){var a=this.dR,b=this.OC.getActiveSheet();b&&(fa(a)||b.vx({pasteHtml:a.copyHtml,pasteText:a.copyText}));this.close()},eR:function(){aa("#"+this.WQ.Cj).find("span.gc-toolstrip-text").text(d().ToolStrip_PasteText);aa("#"+this.YQ.Cj).find("span.gc-toolstrip-text").text(d().ToolStrip_CutText);aa("#"+this.$Q.Cj).find("span.gc-toolstrip-text").text(d().ToolStrip_CopyText);aa("#"+this.aR.Cj).find("span.gc-toolstrip-text").text(d().ToolStrip_AutoFillText)}});ga.TouchToolStrip=Z;l(e.prototype,{name:function(a){return 0===arguments.length?this.Cj:(aa("#"+this.Cj).attr("id",a),aa("#"+this.Cj+"Text").attr("id",a+"Text"),aa("#"+this.Cj+"Image").attr("id",a+"Image"),this.Cj=a,this)},text:function(a){return 0===arguments.length?this._text:(this._text=a,aa("#"+this.name()+"Text").text(a),this)},font:function(a){var b=aa("#"+this.name()+"Text");return 0===arguments.length?this.MC:(this.MC=a,b.css("font",a),this)},foreColor:function(a){var b=aa("#"+this.name()+"Text");return 0===arguments.length?this._foreColor?this._foreColor:b.css("color"):(b.css("color",a),this)},image:function(a){return 0===arguments.length?this.fR:(this.fR=a,aa("#"+this.name()+"Image").css("background-image","url("+a+")"),this)},TQ:function(a,b,e,c){var f,d,g,k,h,m;f=this.name();d=this.font();g=this.text();k=aa(pa("span"));k.attr("id",f+"Image");k.addClass(a);k.css({"background-image":"url("+this.image()+")","background-repeat":"no-repeat",display:"block",height:b,"background-position-x":"50%"});a=aa(pa("span"));a.attr("id",f+"Text");a.addClass(e);a.css("font",d);a.text(g);var p;b=pa("span");var l=cb.body;e=(b.className=e,b.style.font=d,b.style.cssFloat="left",b.textContent=g,l.insertBefore(b,null),p=aa(b).width(),l.removeChild(b),p);return h=60,e>h&&(h=e),m=aa(pa("button")),m.attr("type","button"),m.attr("id",f),m.addClass(c+" gc-toolstrip-button-style ui-state-default ui-widget btn btn-default"),m.css({"box-sizing":"content-box",border:"0px",padding:"4px",margin:"3px",width:h+"px"}),m.append(k),m.append(a),m[0]}});ga.TouchToolStripItem=e;l(b.prototype,{name:function(){return this.Cj},TQ:function(a,b){var e=aa(pa("div"));return e.attr("id",this.name()),e.addClass(a),e.css({width:"1px",height:b,display:"inline-block;","background-color":"#CCC","margin-left":"5px","margin-right":"5px",opacity:.6}),e[0]}});ga.TouchToolStripSeparator=b;l(v.prototype,{oN:function(){this.gR=2;this.tc.CH=!0},zM:function(){this.gR=0;this.hR=J()},nN:function(){return 1===this.gR},uN:function(){return 1===this.gR},sN:function(){return 1===this.gR},GQ:function(){if(2===this.gR)return!0;if(this.hR){if(200>=J()-this.hR)return this.iR++,!0;this.iR=this.hR=0}this.gR=1;return this.tc.CH=!1,!1},HQ:function(){return this.iR?(this.iR--,!0):2===this.gR||(this.gR=0,!1)},IQ:function(){return 2===this.gR}});ga.jR=v;ga.kR=N;l(S.prototype,{lR:function(a,b){var e,c,f=a.touches,d=a.targetTouches,g=a.changedTouches;!1!==a.isPrimary&&(f&&1<=f.length&&d&&1<=d.length&&(f[0].clientX!==d[0].clientX||f[0].clientY!==d[0].clientY)||(Aa(a),e=fa(g)?a:g[0],c=cb.createEvent("MouseEvents"),c.initMouseEvent(b,!0,!0,gb,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(c)))},NM:function(a){var b,e=a.pointerType;e&&e!==a.MSPOINTER_TYPE_TOUCH&&"touch"!==e||(b=a.data,b.mR)||(b.mR=!0,b.nR=!1,b.lR(a,"mouseover"),b.lR(a,"mousemove"),b.lR(a,"mousedown"))},aB:function(a){var b,e=a.pointerType;if(!e||e===a.MSPOINTER_TYPE_TOUCH||"touch"===e)if(b=a.data,b.mR)b.nR=!0,b.lR(a,"mousemove")},RM:function(a){var b,e=a.pointerType;if(!e||e===a.MSPOINTER_TYPE_TOUCH||"touch"===e)if(b=a.data,b.mR)b.lR(a,"mouseup"),b.lR(a,"mouseout"),b.nR||b.lR(a,"click"),b.mR=!1},oR:function(a,b,e){var c,f,d,g,k,h,m,p,l,n;"."!==e.charAt(0)&&(e="."+e);c="MSPointerDown"+e;f="MSPointerMove"+e;d="MSPointerUp"+e;g="pointerdown"+e;k="pointermove"+e;h="pointerup"+e;m="touchstart"+e;p="touchmove"+e;e="touchend"+e;l=Za.msPointerEnabled||Za.pointerEnabled;b?l?(n=a.style,fa(n.msTouchAction)||(n.msTouchAction="none"),fa(n.touchAction)||(n.touchAction="none"),aa(a).bind(c,this,this.NM).bind(g,this,this.NM),aa(cb).bind(f,this,this.aB).bind(k,this,this.aB).bind(d,this,this.RM).bind(h,this,this.RM)):aa(a).bind(m,this,this.NM).bind(p,this,this.aB).bind(e,this,this.RM):l?(aa(a).unbind(c).unbind(g),aa(cb).unbind(f).unbind(k).unbind(d).unbind(h)):aa(a).unbind(m).unbind(p).unbind(e)}});ga.pR=S;l(X.prototype,{lQ:function(a){var b,e,c,f,d,g,k,h;a=a.rN;var m=this.hq;b=m.OC.getActiveSheet();m.FD&&m.GD(b,!1);b=m.hitTest(a.X,a.Y).element;"resizeBar"===b?(m.HD=!0,m.ID=a.X):"tab"!==b&&"newTab"!==b&&""!==b||(e=m.Xs,c=ya.Nn(e),f=ya.On(e),d=this.IP(c,f),g=d.getContext("2d"),k=ya.Ln(d),h=ya.Mn(d),da.Cn(g,1,1),g.drawImage(e,0,0,d.width,d.height,0,0,d.width,d.height),da.Cn(g,k,h),this.Xs=d,this.qR=m.gq,this.rR=m.VC(),this.sR=m.UC(),this.KC=m.TC(),m.SC=!0);this.tR=m.jw(-1);this.uR=m.rD(m.sD())},pQ:function(a){var b,e,c,f,d,g,k,h,m,p,l,n,q,t,x,v,r,y,w,z;d=a.rN.X;var u=this.hq;if(u.HD)b=d-u.ID,e=u.OC,c=e.options,f=e.xs.clientWidth,c.tabStripRatio=e.Iv()+b/f,b=u.kw/f,e.Iv()<b?(c.tabStripRatio=b,u.ID=u.kw):1<=e.Iv()?(c.tabStripRatio=1,u.ID=f):u.ID=d;else if(e=this.Xs,c=this.qR,e&&!fa(c))d=this.tR,g=this.uR,k=this.KC,h=this.rR,m=this.sR,a=a.dP.sO.X,p=this.vR(a,c),u.gq=p.gq,p=p.Vo,0<a&&c===d&&u.gq===d?p=0:0>a&&c===g&&u.gq===g&&(p=0),0<a&&a>p+k?a=p+k:0>a&&a<p-k&&(a=p-k),0!==a&&(f=u.Xs,b=f.getContext("2d"),l=ya.Ln(f),n=ya.Mn(f),b.save(),b.clearRect(0,0,ya.Nn(f),ya.On(f)),q=u.Dr(),u.dD(b,q),v=q.height,0<a?(t=h,r=t+a,x=m-r,0<x&&(da.Cn(b,1,1),b.drawImage(e,t*l,0,x*l,v*n,r*l,0,x*l,v*n),da.Cn(b,l,n)),y=a-p,m-h<=a&&(y=0),x=p,t=h,0<x&&(da.Dn(b,y,0),u.iE(b,new ba(t,0,x,v)),da.Dn(b,-y,0))):0>a&&(r=h,t=r+va(a),x=m-t,0<x&&(da.Cn(b,1,1),b.drawImage(e,t*l,0,x*l,v*n,r*l,0,x*l,v*n),da.Cn(b,l,n)),y=a-p,m-h<=va(a)&&(y=0),x=va(p),t=m-x,0<x&&(da.Dn(b,y,0),u.iE(b,new ba(t,0,x,v)),da.Dn(b,-y,0))),da.Cn(b,1,1),t=0,x=h,b.drawImage(e,t*l,0,x*l,v*n,t*l,0,x*l,v*n),w=qa.Lm(""),z=Ha(w.zIndex),2007<z&&(t=m,x=q.x+q.width-u.kw-t,b.drawImage(e,t*l,0,x*l,v*n,t*l,0,x*l,v*n)),t=q.width-u.kw,x=u.kw,b.drawImage(e,t*l,0,x*l,v*n,t*l,0,x*l,v*n),da.Cn(b,l,n),b.restore())},qQ:function(){var a=this.hq;a.HD?(a.HD=!1,a.OC.aq()):(a.SC=void 0,a.repaint())},sQ:function(a){var b,e,c;c=this.hq;var f=c.OC;b=a.rN;a=f.getActiveSheet();c.FD&&c.GD(a,!1);b=c.hitTest(b.X,b.Y);e=b.element;f.mv=!0;try{"navButton"===e?c.JD(b.index,!0):"tab"===e?c.KD(b.index,b.position):"newTab"===e&&c.MD(b.position)}finally{f.mv=!1,c=f.getActiveSheet(),c!==a&&(c.CH=!0,c.zt())}},yQ:function(a){return this.hq.cE(a.rN.X,a.rN.Y)},IP:function(a,b){var e=this.Xs;return e?a===ya.Nn(e)&&b===ya.On(e)||ya.Pn(e,a,b):(e=pa("canvas"),ya.Kn(e,this.hq.OC),ya.Pn(e,a,b)),e},vR:function(a,b){var e=this.hq.WC,c=this.tR,f=this.uR,d=b,g=0;if(0<a){for(;d>=c&&!(g>a);)g+=e[d],d--;d<c&&(d=c)}else if(0>a&&-1!==f){for(;d<=f&&!(g<a);)g-=e[d],d++;d>f&&(d=f)}return{gq:d,Vo:g}}});l(Y.prototype,{EQ:function(){var a=this.BQ;a&&a.xN(this.DQ,!0)},FQ:function(){var a=this.BQ;a&&a.xN(this.DQ,!1)},GQ:function(a){return this.yM.GQ(a)},HQ:function(a){return this.yM.HQ(a)},IQ:function(a){return this.yM.IQ(a)}});u.oJ.prototype.DH=function(){var a=this.kj,b=a.getSelections(),e=b.length;0>=a.Xq&&0<e&&this.im(b[e-1],void 0,void 0,!0)};u.Worksheet.$n("touch",{init:function(){this.wQ=!1;this.mQ=!0},setHost:function(a){var b=this.parent,b=b&&b.BQ||new K;a=new V(a[0],this,b);a.EQ();this.wR=a},dispose:function(a){this.wR&&this.wR.FQ();!1!==a&&(this.wR=null)},startEdit:function(){this.yl.DH()},paintAdornment:function(a){a=a.ctx;if(this.CH){var b,e,c,f,d,g,k,h,m,p,l,n,q=this.am(),t=this.getSelections();this.CH&&0<t.length&&(d=t[t.length-1],g=d.row,k=d.row+d.rowCount-1,h=d.col,m=d.col+d.colCount-1,p=this.parent,p&&!p.options.allowUserResize||(-1!==g&&-1===h&&this.getRowResizable(k)?(l=this.Er(k),b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABaSURBVDhPY/z//z8DLsDIyAiWBKphBAtgAUxQGgPANIMAMhsdYDUAmwZchtDOC8SCgTcA5DfcgUAEoNwFo7GAPQxwJVtsYYHVBdgU4gpInF5A1oBLMwMDAwMApuAtD6Z7YxQAAAAASUVORK5CYII\x3d",e=this.getCellRect(k,this.getColumnCount(2)-1,l,-1),f=q.fm(l),f.y<=e.y&&e.y+e.height<=f.y+f.height&&(c=new ba(q.kt-16,e.y+e.height-8,16,16))):-1===g&&-1!==h&&this.getColumnResizable(m)&&(n=this.Fr(m),b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAE1JREFUOE/ljtEKACAIA/v/nzZ9mFhsJPRocLEuGS4zk/iJyyP/D6gE0wrYoCqoLoUafPl8fEBln3ulSscfErk65TMjMFRBhUowosDWBoHpba8+C7w0AAAAAElFTkSuQmCC",e=this.getCellRect(this.getRowCount(1)-1,m,-1,n),f=q.gm(n),f.x<=e.x&&e.x+e.width<=f.x+f.width&&(c=new ba(e.x+e.width-8,q.nt-16,16,16))),b&&c&&ka(this,b,a,c)));if(this.wQ){var x=ja(this);x&&ka(this,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAATCAIAAAD5x3GmAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2 + oZAAAAGhJREFUOE / djkEOwCAIBHk6P98u1lKo1diEU + dggOyAAkC + YPl / Onx3WDmiytm4aulQoKba + 4uiO77YhHDH5SqnRa0If / Nhq0fnjPob2h5oVXJI0rJA3h1ya1kgU4f4nQfVzozk7APgAIEqATZbalz1AAAAAElFTkSuQmCC",a,x)}else{b=this.mQ;var v;e=this.parent;if((ra.Wl(this)||e&&!e.options.hideSelection)&&!this.isEditing()&&b&&(x=ea(this),v=x.length,0<v)){a.save();a.fillStyle="white";a.strokeStyle=this.getSelectionBorderColor();for(e=0;e<v;e++)(b=x[e])&&(a.beginPath(),a.arc(b.x+b.width/2,b.y+b.height/2,b.width/2,0,2*Math.PI,!1),a.fill(),a.stroke());a.restore()}}}},preProcessMouseDown:function(a){var b=a.e,e=this.wR;(Da||e.GQ(b))&&(Aa(b),a.r=!0)},preProcessMouseMove:function(a){var b=a.e,e=this.wR;(Da||e.IQ(b))&&(Aa(b),a.r=!0)},preProcessMouseUp:function(a){var b=a.e,e=this.wR;(Da||e.HQ(b))&&(Aa(b),a.r=!0)},preProcessMouseDbClick:function(a){(Da||this.CH)&&(a.r=!0)},preProcessMouseOut:function(a){Da&&(a.r=!0)},preProcessMouseWheel:function(a){Da&&(a.r=!0)}});u.Workbook.$n("touch",{init:function(){this.BQ=new K},setHost:function(){this.touchToolStrip=new Z(this,this.xv())},dispose:function(){var a=this.BQ,b=this.touchToolStrip;a&&a.no();b&&(b.no(),this.touchToolStrip=null)},onCultureChanged:function(){var a=this.touchToolStrip;a&&a.eR()}});u.DC.$n("touch",{setHost:function(){var a=new Y(this.Xs,this,this.OC.BQ);a.EQ();this.wR=a},dispose:function(){var a=this.wR;a&&(a.FQ(),this.wR=null)},preProcessMouseDown:function(a){var b=this.wR,e=a.e;(Da||b.GQ(e))&&(Aa(e),a.r=!1)},preProcessMouseMove:function(a){var b=this.wR,e=a.e;(Da||b.IQ(e))&&(Aa(e),a.r=!1)},preProcessMouseUp:function(a){var b=this.wR,e=a.e;(Da||b.HQ(e))&&(Aa(e),a.r=!1)},preProcessMouseDbClick:function(a){var b=this.OC.getActiveSheet();(Da||b.CH)&&(a.r=!1)},preProcessMouseOut:function(a){Da&&(a.r=!1)}});u.hv.$n("touch",{initEvents:function(a){(this.xR=new S).oR(a,!0,".gcScrollbar")},dispose:function(a){var b=this.xR;b&&b.oR(a,!1,".gcScrollbar")}});U.exports=ga},function(U,u){U.exports={ToolStrip_PasteText:"Paste",ToolStrip_CutText:"Cut",ToolStrip_CopyText:"Copy",ToolStrip_AutoFillText:"AutoFill"}},function(U,u,l){u=l(105);l(107);l(106);l(108);u.SR={};u.SR.en=l(110);U.exports=u},function(U,u,l){function d(a){var b,e,c,f,d,g,k=a.FR;if(k){b=0;for(c=k.length;b<c;b++)if(d=k[b]){e=0;for(f=d.length;e<f;e++)(g=d[e])&&g.no();d.length=0}k.length=0;a.FR=null}(a=a.wr)&&a.no()}function J(a,b,e){a.zR().forEach(function(a){a.rI(b,e)})}function R(a,b,e){var c,f,d=[];a.zR().forEach(function(c){O(b,-1,b+e-1,a.sheet().getColumnCount(),c)&&(c.dynamicMove()||c.dynamicSize())?d.push(c):c.GR(b,e)});c=0;for(f=d.length;c<f;c++)a.Fb(d[c].name())}function Q(a,b,e){a.zR().forEach(function(a){a.tI(b,e)})}function K(a,b,e){var c,f,d=[];a.zR().forEach(function(c){O(-1,b,a.sheet().getRowCount(),b+e-1,c)&&(c.dynamicMove()||c.dynamicSize())?d.push(c):c.HR(b,e)});c=0;for(f=d.length;c<f;c++)a.Fb(d[c].name())}function O(a,b,e,c,f){var d=f.startRow(),g=f.startColumn(),k=f.endRow();f=f.endColumn();return a<=d&&b<=g&&e>=k&&c>=f}function H(a,b){var e=this;return b||(b={}),Y.each(a,function(a,c){var f=e[c],d=f.call(e);f.isDefault(d)||(b[c]=d)}),b}function I(a,b){if(b){var e=this;Y.each(a,function(a,c){void 0!==b[c]&&e[c].call(e,b[c],!1)})}}function L(a){return function(b){var e=this.sheet();"content"===a&&(this.KR=!0);e&&e.$p();this.onPropertyChanged(a,b)}}function F(a){return function(b){var e=this.sheet();e&&(q(this),e.$p());this.onPropertyChanged(a,b)}}function G(a){return function(b){var e=this.sheet();e&&(h(this),e.$p());this.onPropertyChanged(a,b)}}function q(a){function b(b,e,c,f,g){var k=0,h=b.call(a);return k=e.call(a,d,0,h),D.call(a,b,c,f,!0,g),k+c.call(a)}var e,c,d=a.sheet();d&&(e=b(a.startRow,A,a.startRowOffset,d.getRowHeight,"startRowOffset"),c=b(a.startColumn,r,a.startColumnOffset,d.getColumnWidth,"startColumnOffset"),a.x()===c&&a.y()===e||(a.x(c,!1),a.y(e,!1),a.onPropertyChanged("location",new f(c,e,a.width(),a.height()))))}function D(a,b,e,c,f){var d=b.call(this);a=e.call(this.sheet(),a.call(this),3);e=this.LR;0<a&&a--;d>a?(e[f]||(e[f]=d),b.call(this,a)):e[f]&&(e[f]<a?(b.call(this,e[f]),e[f]=void 0):(c&&a<e[f]||!c&&d<e[f])&&b.call(this,a))}function A(a,b,e,c){for(var f=0;b<e&&(f+=a.getRowHeight(b,3),!(f>c));b++);return f}function r(a,b,e,c){for(var f=0;b<e&&(f+=a.getColumnWidth(b,3),!(f>c));b++);return f}function n(a){function b(b,e,c,f,d){b=z(a,b,e);e=b.index;f.call(a,b.offset,!1);-1===b.offset&&(e+=1,f.call(a,0),e===d&&(e=d-1));c.call(a,e,!1)}var e=a.sheet();e&&(b(!0,a.y(),a.startRow,a.startRowOffset,e.getRowCount()),b(!1,a.x(),a.startColumn,a.startColumnOffset,e.getColumnCount()))}function w(a){if(a.sheet()){var b=a.y()+a.height(),e=a.endRow,c=a.endRowOffset,b=z(a,!0,b);e.call(a,b.index,!1);c.call(a,b.offset,!1);b=a.x()+a.width();e=a.endColumn;c=a.endColumnOffset;b=z(a,!1,b);e.call(a,b.index,!1);c.call(a,b.offset,!1)}}function z(a,b,e){var c,f=0,d=0;a=a.sheet();var g=b?a.getRowCount():a.getColumnCount(),k;for(k=0;k<g;k++){if(c=b?a.getRowHeight(k,3):a.getColumnWidth(k,3),f+=c,d=f-e,0<d){d=0<d?c-d:-1;break}if(0===d){d=0;k+=1;break}}return k>=g&&(k=g-1,d=0),{offset:d,index:k}}function C(a){var b=a.PR;return g(b)&&(b=a.Gia),b}function c(a,b){a.PR=b;a.qo.forEach(function(a){for(a=a.parentElement;-1===a.className.indexOf("gc-floatingobject-container");)a=a.parentElement;a&&(a.style.zIndex=b+"")})}function m(a,b){this.kj=a;this.MR=b}function h(a){function b(b,e,c,d,g,k,h){var m,p,l=0;b=b.call(a);var n=e.call(a);return l=c.call(a,f,b,n),m=l+d.call(f,n,3),0===m&&a.isVisible()&&(a.isVisible(!1),a.RR=!1),b===n?(D.call(a,e,k,d,!1,h),l=k.call(a)-g.call(a)):(p=d.call(f,b,3),0<p&&(l-=g.call(a)),D.call(a,e,k,d,!1,h),l+=k.call(a)),l}var e,c,f=a.sheet();f&&(!1===a.RR&&(a.isVisible(!0),a.RR=!0),e=b(a.startRow,a.endRow,A,f.getRowHeight,a.startRowOffset,a.endRowOffset,"endRowOffset"),c=b(a.startColumn,a.endColumn,r,f.getColumnWidth,a.startColumnOffset,a.endColumnOffset,"endColumnOffset"),0>c&&(c=0),0>e&&(e=0),a.width()!==c&&(a.width(c,!1),a.onPropertyChanged("width",c)),a.height()!==e&&(a.height(e,!1),a.onPropertyChanged("height",e)))}var a,B,y,t,E,M=l(85),p=l(26),g=p.j.Fa;u=l(106);var f=M.Rect,k=M.Point,x=M.Events,W=M.Rm,P=p.j.Ma,V=M.Ul,Z=V.Pl,e=V.Nl,b=V.Rl,v=u.yR,N=document,S=p.D,X=function(){return p.C(U.exports.SR)()},Y=M.GC$,ka=Math.ceil,ja=Math.floor,oa=Math.max,ma=Math.min,ea=Math.abs;(function(){this.uQ=function(){var a=this.wr;a&&a.zR().forEach(function(a){a.isSelected(!1)})};this.AR=function(){var a=this.wr;a&&(a.isNeedToUpdateLayout=!0)};this.BR=function(){var a=this.parent,b=this.tv,a=a&&a.tv;return b||(b=this.tv=a?a:{fromSheet:null,isCutting:!1}),b};this.ex=function(){var a=this.BR(),b=a&&a.fromSheet;b&&(b.CR=null);a.fromSheet=null;a.isCutting=!1};this.DR=function(a){var b=this.options;return!b.isProtected||!a.isLocked()||b.protectionOptions.allowEditObjects};this.ER=function(a){var b=this.options;return!b.isProtected||!a.isLocked()||b.protectionOptions.allowEditObjects};this.isPasteFloatingObject=function(){var a=this.BR().fromSheet,b=this.CR;return!b&&a&&(b=a.CR),b&&!b.isEmpty()}}).call(M.Worksheet.prototype);M.Worksheet.$n("floatingObjects",{init:function(){this.wr=new a(this);this.pictures=new m(this,"1");this.floatingObjects=new m(this,"0")},dispose:function(){d(this);Y.each(this.pictures.all(),function(a,b){b.no()});Y.each(this.floatingObjects.all(),function(a,b){b.no()});this.unbind(x.TableFiltered+".fos");this.unbind(x.RangeFiltered+".fos");Y(this.Ws()).unbind("mousedown.fos")},setHost:function(a){if(a){var b=this;a.bind("mousedown.fos",function(){b.uQ()});b.bind(x.TableFiltered+".fos",function(){b.AR()});b.bind(x.RangeFiltered+".fos",function(){b.AR()})}},onLayoutChanged:function(a){var b=a.changeType,e=a.row,c=a.rowCount,f=a.col;a=a.colCount;var d=this.wr;d&&("addRows"===b?J(d,e,c):"deleteRows"===b?R(d,e,c):"addColumns"===b?Q(d,f,a):"deleteColumns"===b&&K(d,f,a))},paint:function(a){var b=this;a=a.clipRect;b.QP||(b.IR=function(a,e){var c,f;return b.FR||(b.FR=[]),c=b.FR[a],c||(b.FR[a]=[]),f=b.FR[a][e],f||(b.FR[a][e]=new t(b)),b.FR[a][e]},b.QP=function(a,b){var e,c,f,d,g;if(!this.fI&&this.wr)for(e=this.am(),null!==b&&void 0!==b||(b=this._zoomFactor),f=0;2>=f;f++)for(d=0;2>=d;d++)(c=e.Ft(f,d))&&(g=this.IR(f,d),g&&g.yl(f,d,b))});b.QP(a)},lastNonNullRowAndCol:function(){var a=0,b=0,e=this.wr;return e&&e.zR().forEach(function(e){e&&(e.endRow()>a&&(a=e.endRow()),e.endColumn()>b&&(b=e.endColumn()))}),{lastNonNullRow:a,lastNonNullCol:b}},toJson:function(a){var b=this.wr.toJSON();0<b.length&&(a.floatingObjects=b)},fromJson:function(b,e){var c;this.wr=new a(this);c=b&&b.floatingObjectArray;(c=e?c&&c.floatingObjects:b.floatingObjects)&&this.wr.fromJSON(c,e)},preProcessMouseDown:function(){this.uQ()},processKeyDown:function(a){var b,e,c,f;if(b=this.wr)for(b=b.zR(),c=b.length,e=0;e<c;e++)if(f=b[e],f.isSelected())return void(a.r=!0)}});M.Workbook.$n("floatingObjects",{init:function(){M.Commands.JR(this.commandManager())}});Y.extend(m.prototype,{add:function(a,b,e,c,f,d){var g;return"1"===this.MR?g=new E.Picture(a,b,e,c,f,d):"0"===this.MR&&(g=a),this.kj.wr.Sb(g),g},get:function(a){return this.kj.wr.NR(a)},remove:function(a){this.kj.wr.Fb(a)},clear:function(){return this.kj.wr.$b(this.MR)},all:function(){return this.kj.wr.zR(this.MR)},zIndex:function(a,b){return this.kj.wr.PR(a,b)}});a=function(){function a(a){this.sheet(a);b(this);this.QR={}}function b(a){var b=a.sheet();b&&(Y(N.body).bind("scroll.gcFloatingObject",function(){var a=b.parent.getActiveSheet();a.wr&&b.QP(a.Dr())}),b.Fu(x.ColumnChanged+".gcFloatingObject",function(b,c){var f=c.propertyName;"width"!==f&&"isVisible"!==f||e(a)}),b.Fu(x.RowChanged+".gcFloatingObject",function(b,c){var f=c.propertyName;"height"!==f&&"isVisible"!==f||e(a)}),b.Fu(x.ColumnWidthChanged+".gcFloatingObject",function(){e(a)}),b.Fu(x.RowHeightChanged+".gcFloatingObject",function(){e(a)}))}function e(a){var b=a.sheet();a.isNeedToUpdateLayout=!0;b.QP&&b.QP(b.Dr())}var f={sheet:Z("sheet",void 0),Hia:function(a){this.zR().forEach(function(b){g(b.PR)&&(b.Gia+=a)})},Sb:function(a){var b,e=this.sheet();if(e.suspendPaint(),b=a.name(),!b)throw Error(X().Exp_FloatingObjectNameEmptyError);if(this.QR[b])throw Error(X().Exp_FloatingObjectHasSameNameError);this.Hia(-1);a.sheet(e);this.QR[b]=a;e.resumePaint()},NR:function(a){return this.QR[a]},Fb:function(a,b){var e,c,f;return!!a&&(e=this.sheet(),c=this.NR(a),e.suspendPaint(),b?(f={sheet:e,sheetName:e.Cj,floatingObject:c,cancel:!1},e.Wq(x.FloatingObjectRemoving,f),f&&!1===f.cancel&&(delete this.QR[a],e.Wq(x.FloatingObjectRemoved,{sheet:e,sheetName:e.Cj,floatingObject:c}))):delete this.QR[a],e.resumePaint(),!0)},U3:function(a,b){var e,c=this.sheet();if(c.suspendPaint(),!b)throw Error(X().Exp_FloatingObjectNameEmptyError);if(this.QR[b])throw Error(X().Exp_FloatingObjectHasSameNameError);e=this.QR[a];delete this.QR[a];this.QR[b]=e;c.resumePaint()},$b:function(a){var b=this,e=b.sheet();e.suspendPaint();Y.each(this.QR,function(e,c){a&&a!==c.typeName||b.Fb(c.name())});e.resumePaint()},zR:function(a){var b=[];return Y.each(this.QR,function(e,c){a&&a!==c.typeName||b.push(c)}),b},PR:function(a,b){var e=isNaN(b),f=this.NR(a);if(f){if(e)return C(f);c(f,b)}if(e)return-1},toJSON:function(){var a=[];return this.zR().forEach(function(b){var e,c;b instanceof B&&b.hga()&&(e=b.toJSON(),c=b.PR,isNaN(c)||(e.zIndex=c),a.push(e))}),a},fromJSON:function(a,b){var e,c,f,d,k,h,m;if(a&&0!==a.length)for(e=0;e<a.length;e++)c=a[e],f=null,c&&(k=c.floatingObjectType,h=V.Ol(k)?k+"":c.typeName,d="0"===h?B:"1"===h?E.Picture:M.getTypeFromString(h),d&&(f=new d,f.fromJSON(c,b),this.Sb(f),m=c.zIndex,g(m)||(f.PR=m)))},no:function(){Y(N.body).unbind("scroll.gcFloatingObject");var a=this.sheet();a&&(a.Gu(x.ColumnChanged+".gcFloatingObject"),a.Gu(x.RowChanged+".gcFloatingObject"),a.Gu(x.ColumnWidthChanged+".gcFloatingObject"),a.Gu(x.RowHeightChanged+".gcFloatingObject"))},hitTest:function(a,b){var e,c,f,d,g=this.sheet(),k=g.am(),h=null;if(k)for(e=0;2>=e;e++)for(c=0;2>=c;c++)if(f=k.Ft(e,c),f&&f.contains(a,b)&&(d=g.IR(e,c),d&&d.jS.each(function(e){var c=e.YR,f;if(f=c&&c.isVisible()&&g.DR(c))f=(e=e.Nia)&&0<e.width&&0<e.height&&(e.x===a||e.y===b||e.contains(a,b));f&&(h?C(h.floatingObject)<C(c)&&(h.floatingobject=c):h={x:a,y:b,floatingObject:c})}),h))return h;return h},FS:function(){for(var a=1,b="FloatingObject"+a;this.NR(b);)a++,b="FloatingObject"+a;return b}};return Y.extend(a.prototype,f),a}();B=function(){function a(a,b,e,c,f){this.LR={startRowOffset:void 0,startColumnOffset:void 0,endRowOffset:void 0,endColumnOffset:void 0};this.RR=!0;this.typeName="0";this.name(a);this.x(b?b:0,!1);this.y(e?e:0,!1);this.width(c?c:0,!1);this.height(f?f:0,!1);this.qo=[];this.KR=!1;this.Gia=700}function b(a){return function(b){this.onPropertyChanged(a,b)}}function c(a,b){return function(e){var c=this.sheet();c&&(b&&g(this),m(this),n(this),w(this),c.$p());this.onPropertyChanged(a,e)}}function f(a,b,e,c){var f=a.call(this),d=b.call(this);e<=f?this.dynamicMove()&&(a.call(this,f+c),b.call(this,d+c)):e>f&&e<d&&this.dynamicSize()&&b.call(this,d+c)}function d(a,b,e,c,f,d,g){var k,h,m=a.call(this),p=e.call(this);f<=m?g<m?this.dynamicMove()&&(a.call(this,m-d),e.call(this,p-d)):g<p&&(k=g-m+1,h=p-m+1-k,this.dynamicMove()&&(a.call(this,f),b.call(this,0)),this.dynamicSize()&&e.call(this,f+h-1)):f<=p&&(g<p?this.dynamicSize()&&e.call(this,p-d):this.dynamicSize()&&(e.call(this,f),c.call(this,0)))}function g(a){var b=p(a,a.height()),e=l(a,a.width());a.width()>e&&a.width(e,!1);a.height()>b&&a.height(b,!1)}function m(a){var b,e;b=a.x()+a.width();e=l(a,b);b>e&&a.x(oa(0,e-a.width()),!1);0>a.x()&&a.x(0,!1);b=a.y()+a.height();e=p(a,b);b>e&&a.y(oa(0,e-a.height()),!1);0>a.y()&&a.y(0,!1)}function p(a,b){var e,c=a.sheet();return c?(e=c.getRowCount(),A(c,0,e,b)):9007199254740992}function l(a,b){var e,c=a.sheet();return c?(e=c.getColumnCount(),r(c,0,e,b)):9007199254740992}var t,v="name x y width height canPrint isSelected isLocked isVisible dynamicMove dynamicSize fixedPosition allowResize allowMove".split(" "),y=[["sheet",null,function(){var a,b;g(this);m(this);a=this.startRow();b=this.startColumn();a&&b?q(this):n(this);a=this.endRow();b=this.endColumn();a&&b?h(this):w(this)}],["name",void 0,function(a){if("string"!=typeof a||""===a)throw Error(X().Exp_FloatingObjectNameEmptyError);this.sheet()&&this.sheet().wr.Sb(this);this.onPropertyChanged("name",a)},function(){return this.sheet()&&this.sheet().wr.Fb(this.name()),!0}],["x",0,c("x",!1)],["y",0,c("y",!1)],["height",0,c("height",!0)],["width",0,c("width",!0)],["startRow",void 0,F("startRow")],["startRowOffset",0,F("startRowOffset")],["startColumn",void 0,F("startColumn")],["startColumnOffset",0,F("startColumnOffset")],["endRow",void 0,G("endRow")],["endRowOffset",0,G("endRowOffset")],["endColumn",void 0,G("endColumn")],["endColumnOffset",0,G("endColumnOffset")],["isSelected",!1,L("isSelected")],["isLocked",!0,b("isLocked")],["canPrint",!0,b("canPrint")],["isVisible",!0,L("isVisible")],["dynamicMove",!0,function(a,e){b("dynamicMove").call(this,a,e)},function(a){return"boolean"==typeof a&&(a||this.dynamicSize(!1,!1),!this.fixedPosition())}],["dynamicSize",!0,function(a,e){b("dynamicSize").call(this,a,e)},function(a){return"boolean"==typeof a&&this.dynamicMove()&&!this.fixedPosition()}],["fixedPosition",!1,function(a){a&&(this.dynamicMove(!1,!1),this.dynamicSize(!1,!1));this.onPropertyChanged("fixedPosition",a)}],["allowResize",!0,L("allowResize")],["allowMove",!0,L("allowMove")]];return t={constructor:a,position:function(a){var b=this.sheet();0===arguments.length?b=new k(this.x(),this.y()):(!P(a,k)||this.x()===a.x&&this.y()===a.y||(this.x(a.x,!1),this.y(a.y,!1),m(this),n(this),w(this),b&&b.$p(),this.onPropertyChanged("position",a)),b=this);return b},content:Z("content",null,L("content")),cloneContent:function(){var a,b,c=this.content();return c?(c.cloneNode?a=c.cloneNode(!0):(b=e("div"),b.innerHTML=c.outerHTML,a=b.firstChild),Y(a).removeAttr("id")[0]):null},refreshContent:function(a){var b,e,c,f,d,g;this.KR&&a&&(b=Y(a),b.empty(),e=this.cloneContent(),c="100%",f="100%",d="",g="",e&&e.style&&(d=e.style.width,g=e.style.height),""!==d&&(c=d),""!==g&&(f=g),null!==e?(Y(e).css({width:c,height:f}).addClass("gc-floatingobject-background-cover").addClass("gc-no-user-select").attr("unselectable","on").appendTo(a),b.css("background","")):b.css("background","#044062"),this.KR=!1)},toJSON:function(){var a=H.call(this,v);return a.typeName=this.typeName,a.content=Y(e("div")).append(this.cloneContent()).html(),a},fromJSON:function(a,b){var c;a&&(this.TR=!0,I.call(this,v,a,b),n(this),w(this),a.content&&(c=e("div"),c.innerHTML=a.content,this.content(Y(c.firstChild)[0])),this.TR=void 0)},clone:function(){var b=M.getTypeFromString(this.typeName),b=b?new b:new a,e=JSON.stringify(this.toJSON());return b.fromJSON(JSON.parse(e)),b.content(this.cloneContent()),b},onPropertyChanged:function(a,b){var e;this.TR||(e=this.sheet(),this.Wq({sheet:e,sheetName:e?e.Cj:"",floatingObject:this,propertyName:a}))},Wq:function(a){var b,e=this.sheet();e&&(e.Wq(x.FloatingObjectChanged,a),"isSelected"===a.propertyName&&(b={sheet:a.sheet,sheetName:a.sheetName,floatingObject:a.floatingObject},e.Wq(x.FloatingObjectSelectionChanged,b)))},rI:function(a,b){a=ka(a);b=ka(b);f.call(this,this.startRow,this.endRow,a,b)},GR:function(a,b){d.call(this,this.startRow,this.startRowOffset,this.endRow,this.endRowOffset,a,b,a+b-1)},tI:function(a,b){a=ka(a);b=ka(b);f.call(this,this.startColumn,this.endColumn,a,b)},HR:function(a,b){a=ka(a);b=ka(b);d.call(this,this.startColumn,this.startColumnOffset,this.endColumn,this.endColumnOffset,a,b,a+b-1)},getHost:function(){return this.qo.concat()},UR:function(a){var b=this.qo;a&&0>b.indexOf(a)&&b.push(a)},VR:function(a){var b=this.qo;a=b.indexOf(a);0<=a&&b.splice(a,1)},WR:function(){var a,b,c,f,d,g,k=e("div");return Y(k).addClass("gc-no-user-select").addClass("gc-floatingobject-content-container").attr("unselectable","on").css("position","absolute"),a=this.cloneContent(),b="100%",c="100%",f="",d="",g=a&&a.style,g&&(f=g.width,d=g.height),""!==f&&(b=f),""!==d&&(c=d),null!==a&&Y(a).css({width:b,height:c}).addClass("gc-floatingobject-background-cover").addClass("gc-no-user-select").attr("unselectable","on").appendTo(k),this.UR(k),k},hga:function(){return!0},no:function(){}},Y.each(y,function(a,b){t[b[0]]=Z(b[0],b[1],b[2],b[3])}),a.prototype=t,a}();y=function(){function a(a,b){this.XR="";this.name=(this.YR=a)?a.name():"";this.kj=b;this.ZR=this.RB=!1}function c(a){a=Y(a);var b=a.position();return new f(b.left,b.top,a.width(),a.height())}function d(a,b,e,c,f,d){Y(a).css(["top","left","width","height"],[[c-1],[e-1],f,d]).addClass("gc-floatingobject-moving-div").appendTo(b)}function g(a){var b,e,c,f,d,g=a.kj,k=a.WE,h=a.aS,m=g.frozenTrailingRowCount(),p=g.frozenTrailingColumnCount(),l=g.am(),n=l.Ft(k,h),q=a.YR;a=q.startRow();var t=q.startColumn(),x=q.endRow(),q=q.endColumn(),v=g.frozenRowCount(),r=g.frozenColumnCount(),y=g.getRowCount(3)-m-1,p=g.getColumnCount(3)-p-1;return 1===k?(0<v&&(b=g.getViewportTopRow(k),(a<v||b===v)&&(n.y-=l.fs,n.height+=l.fs)),0<m&&(e=g.getViewportBottomRow(k),x>y&&e===y&&(n.height+=l.gs))):0===k?(b=g.getViewportTopRow(k+1),(x>=b||b===v)&&(d=l.Ft(k+1,h),n.height+=d.height)):2===k&&(e=g.getViewportBottomRow(k-1),(a<=e||e===y)&&(d=l.Ft(k-1,h),n.y=d.y,n.height+=d.height)),1===h?(0<r&&(c=g.getViewportLeftColumn(h),(t<r||c===r)&&(n.x-=l.hs,n.width+=l.hs)),0<g.frozenTrailingColumnCount()&&(f=g.getViewportRightColumn(h),(q>p||f===p)&&(n.width+=l.js))):0===h?(c=g.getViewportLeftColumn(h+1),(q>=c||c===r)&&(d=l.Ft(k,h+1),n.width+=d.width)):2===h&&(f=g.getViewportRightColumn(h-1),(t<=f||f===p)&&(d=l.Ft(k,h-1),n.x=d.x,n.width+=d.width)),n}function h(a,b,e,f,d){var g=c(a);Y(a).css(["top","left","width","height"],[g.y+e,g.x+b,g.width+f,g.height+d])}function m(a,b){var e=a.kj;if(e)return e.RF(b),!1}function p(a,b,e){var c=Y(a);a=Y(a).position();c.css(["top","left"],[a.top+e,a.left+b])}function l(b){var c,f,d,g,k,h,p,l,n=e("div"),q=Y(n);return q.addClass("gc-floatingobject-container").addClass("gc-no-user-select").attr("unselectable","on").css("z-index",700).bind("mousedown",function(a){b.AD(a)}).bind("mousemove",function(a){b.BD(a)}).bind("mouseup",function(a){b.CD(a)}),n.addEventListener("mousewheel",function(a){m(b,a)},!1),n.addEventListener("DOMMouseScroll",function(a){m(b,a)},!1),c=Y(e("div")).addClass("gc-floatingobject-resize-indicator gc-floatingobject-top gc-floatingobject-left gc-floatingobject-absolute"),f=Y(e("div")).addClass("gc-floatingobject-resize-indicator gc-floatingobject-top gc-floatingobject-center gc-floatingobject-absolute"),d=Y(e("div")).addClass("gc-floatingobject-resize-indicator gc-floatingobject-top gc-floatingobject-right gc-floatingobject-absolute"),g=Y(e("div")).addClass("gc-floatingobject-resize-indicator gc-floatingobject-middle gc-floatingobject-left gc-floatingobject-absolute"),k=Y(e("div")).addClass("gc-floatingobject-resize-indicator gc-floatingobject-middle gc-floatingobject-right gc-floatingobject-absolute"),h=Y(e("div")).addClass("gc-floatingobject-resize-indicator gcfloatingobject-bottom gc-floatingobject-left gc-floatingobject-absolute"),p=Y(e("div")).addClass("gc-floatingobject-resize-indicator gcfloatingobject-bottom gc-floatingobject-center gc-floatingobject-absolute"),l=Y(e("div")).addClass("gc-floatingobject-resize-indicator gcfloatingobject-bottom gc-floatingobject-right gc-floatingobject-absolute"),q.append(c).append(f).append(d).append(g).append(k).append(h).append(p).append(l),a.ao(b,"init",n),n}function n(a){var b,c,f,k,h,m=a.hS&&a._R;if(m&&!a.cS){b=a.iS=e("div");a.cS=e("div");a.dS={};a.gS.jS.each(function(b){var c,f=b.YR;f&&f.name()!==a.YR.name()&&f.isSelected()&&!a.dS[f.name()]&&(c=b._R,a.dS[f.name()]={offsetX:c.x-m.x,offsetY:c.y-m.y,height:c.height,width:c.width,moveResizeDiv:e("div")})});c=g(a);f=Y(b);f.css("z-index top left width height background".split(" "),[701,c.y,c.x,c.width,c.height,"rgba(255,255,255,0.01)"]).addClass("gc-floatingobject-moving-container").bind("mousemove",function(b){a.BD(b)}).bind("mouseup",function(b){a.CD(b)});f=m.y-c.y;c=m.x-c.x;d(a.cS,b,c,f,m.width,m.height);b=a.dS;for(k in b)S(b,k)&&(h=b[k],d(h.moveResizeDiv,a.iS,c+h.offsetX,f+h.offsetY,h.width,h.height));a.Ks&&Y(a.Ks).append(a.iS)}}function q(a){a.RB||(Y(N).bind("mousemove.gcFloatingObject",function(b){a.BD(b)}).bind("mouseup.gcFloatingObject",function(b){a.CD(b)}),a.RB=!0)}function t(b,e,c,f,d,g,k,h,m){var p,l=Y(c,b.hS);e?(p=a.mS,l.css("left top right bottom width height cursor".split(" "),[f,d,g,k,p,p,h]).addClass("gc-floatingobject-resize-indicator-select").attr("resizeDirection",m)):v(b,c)}function v(a,b){Y(b,a.hS).removeClass("gc-floatingobject-resize-indicator-select").addClass("gc-floatingobject-resize-indicator-unSelect")}M.Zn(a);return a.prototype={AD:function(b){var e,f,d,g,h,m,p=this.kj,l=this.YR,t=p.comments,x=this.WE,v=this.aS;if(p.ER(l)&&p.endEdit()&&(e={e:b,r:null},a.ao(this,"preProcessMouseDown",e),!e.r)){if(0===b.button||2===b.button){if(f=l.isSelected(),b.ctrlKey||b.shiftKey?l.isSelected(!f):f||(p.uQ(),l.isSelected(!0)),f||M.Vl.Zl(p),t&&t.vQ(),p.EJ(),2===b.button)return;e=p.mm;f=p.Vs();f=new k(b.pageX-f.left,b.pageY-f.top);this._R?(t={inMoving:!1},t=(Y(b.target).attr("resizeDirection")||(t.inMoving=!0),t)):t=null;if(d=t,!l.allowMove()&&(!l.allowResize()||d.inMoving))return;this.$F=f;this.pS=!0;this.bS=d;d.inMoving?(g={},g.startTopRow=p.getViewportTopRow(x),g.startLeftColumn=p.getViewportLeftColumn(v),g.startX=f.x,g.startY=f.y,this.eS=g):(n(this),h={},m=c(this.cS),h.startX=m.x,h.startY=m.y,h.startWidth=m.width,h.startHeight=m.height,h.startTopRow=p.getViewportTopRow(x),h.startLeftColumn=p.getViewportLeftColumn(v),h.cursor=b.target.style.cursor,h.direction=Y(b.target).attr("resizeDirection"),this.$R=h);q(this);b=p.hitTest(f.x,f.y);e.rG={KG:b.rowViewportIndex,MG:b.colViewportIndex,sG:b.hitTestType};e.$F=f;e.qG();e.O3=!0}return!1}},BD:function(b){var e,d;d=this.kj;var m=this.hS,l=this.iS;if(d.ER(this.YR)&&(e={e:b,r:null},a.ao(this,"preProcessMouseMove",e),!e.r)){if(d.dG)l=(m&&Y(m).css("cursor","default"),!0);else{e=d.mm;d=d.Vs();b=new k(b.pageX-d.left,b.pageY-d.top);if(this.pS){if(this.bS.inMoving){this.qS=!0;n(this);var q=this.$F,t,x,v,r;if(x=this.cS)for(v in t=b.x-q.x,q=b.y-q.y,p(x,t,q),x=this.dS,x)S(x,v)&&(r=x[v],p(r.moveResizeDiv,t,q));Y(l).css("cursor","move")}else if(this.YR.allowResize()){this.kv=!0;var y,w,z,u;if(this.bS){m=this.$F;y=g(this);v=this.cS;r=this.$R;d=r.direction;m=new k(m.x-y.x,m.y-y.y);y=this.$R;switch(d){case "topleft":x=ma(y.startX+y.startWidth,m.x);z=ma(y.startY+y.startHeight,m.y);u=ea(m.x-y.startX-y.startWidth);w=ea(m.y-y.startY-y.startHeight);break;case "topcenter":x=y.startX;z=ma(y.startY+y.startHeight,m.y);u=y.startWidth;w=ea(m.y-y.startY-y.startHeight);break;case "topright":x=ma(y.startX,m.x);z=ma(y.startY+y.startHeight,m.y);u=ea(m.x-y.startX);w=ea(m.y-y.startY-y.startHeight);break;case "middleleft":x=ma(y.startX+y.startWidth,m.x);z=y.startY;u=ea(m.x-y.startX-y.startWidth);w=y.startHeight;break;case "middleright":x=ma(y.startX,m.x);z=y.startY;u=ea(m.x-y.startX);w=y.startHeight;break;case "bottomleft":x=ma(y.startX+y.startWidth,m.x);z=ma(y.startY,m.y);u=ea(m.x-y.startX-y.startWidth);w=ea(m.y-y.startY);break;case "bottomcenter":x=y.startX;z=ma(y.startY,m.y);u=y.startWidth;w=ea(m.y-y.startY);break;case "bottomright":x=ma(y.startX,m.x),z=ma(y.startY,m.y),u=ea(m.x-y.startX),w=ea(m.y-y.startY)}w=new f(x,z,u,w);r.endX=w.x;r.endY=w.y;r.endWidth=w.width;r.endHeight=w.height;r=c(v);x=w.y-r.y;z=w.x-r.x;u=w.width-r.width;w=w.height-r.height;h(v,z,x,u,w);v=this.dS;for(t in v)S(v,t)&&(q=v[t],h(q.moveResizeDiv,z,x,u,w))}Y(l).css("cursor",this.$R.cursor)}(this.qS||this.kv)&&(this.$F=b,e.$F=b,e.NG(),Y(N.body).addClass("gc-no-user-select").attr("unselectable","on"))}l=!1}return l}},CD:function(e){var c,d,g;d=this.kj;var h=d.mm;g=this.YR;var m=this.hS,p=this.bS;if(d.ER(g)&&(c={e:e,r:null},a.ao(this,"preProcessMouseUp",c),!c.r)){var l;if(d.dG)l=(Y(m).css("cursor","move"),!0);else{h.O3=!1;h.RG();c=d.Vs();c=new k(e.pageX-c.left,e.pageY-c.top);(d=this.eS)&&(d.endX=c.x,d.endY=c.y);if(p){g=g.fixedPosition();if(p.inMoving&&this.qS){if(g){var n,q,t,x,v,r,y,w,z,u,B;(l=this.eS)&&(n=this.YR,q=this.kj,t=q.am(),x=t.width-t.Br-t.zr,v=t.height-t.Cr-t.Ar,r=l.startX,y=l.startY,w=n.position().x,z=n.position().y,u=n.width(),B=n.height(),0>w+l.endX-r&&(l.endX=r-w),0>z+l.endY-y&&(l.endY=y-z),w+u+l.endX-r>x&&(l.endX=x+r-w-u),z+B+l.endY-y>v&&(l.endY=v+y-z-B),l.startTopRow=q.getViewportTopRow(this.WE),l.startLeftColumn=q.getViewportLeftColumn(this.aS))}if(e.ctrlKey){var A,C,E,D,F,M;l=this.kj;if((F=this.eS)&&(A=b(l,F.startTopRow,l.getViewportTopRow(this.WE),!0),C=b(l,F.startLeftColumn,l.getViewportLeftColumn(this.aS),!1),E=F.endX-F.startX+(F.endX>F.startX?C:-1*C),D=F.endY-F.startY+(F.endY>F.startY?A:-1*A),0!==E||0!==D)){F=[];F.push(this.YR.name());A=this.dS;for(M in A)S(A,M)&&F.push(M);l.wu().execute({cmd:"dragCopyFloatingObjects",sheetName:l.name(),floatingObjects:F,offsetX:E,offsetY:D})}}else if(l=this.kj,A=this.eS,D=l._zoomFactor,A){M=b(l,A.startTopRow,l.getViewportTopRow(this.WE),!0);E=b(l,A.startLeftColumn,l.getViewportLeftColumn(this.aS),!1);E=A.endX-A.startX+(A.endX>A.startX?E:-1*E);M=A.endY-A.startY+(A.endY>A.startY?M:-1*M);E/=D;M/=D;D=[];D.push(this.YR.name());A=this.dS;for(F in A)S(A,F)&&D.push(F);l.wu().execute({cmd:"moveFloatingObjects",sheetName:l.name(),floatingObjects:D,offsetX:E,offsetY:M})}}else if(this.kv){if(g){var G,P,V,H,W;(F=this.$R)&&(G=this.kj,P=G.am(),V=P.width-P.Br-P.zr,H=P.height-P.Cr-P.Ar,W=new f(F.endX,F.endY,F.endWidth,F.endHeight),W=W.getIntersect(0,0,V,H),F.endX=W.x,F.endY=W.y,F.endWidth=W.width,F.endHeight=W.height,F.startTopRow=G.getViewportTopRow(this.WE),F.startLeftColumn=G.getViewportLeftColumn(this.aS))}D=this.kj;e=D._zoomFactor;A=this.YR;if(n=this.$R){C=b(D,n.startTopRow,D.getViewportTopRow(this.WE),!0);M=b(D,n.startLeftColumn,D.getViewportLeftColumn(this.aS),!1);F=n.endX-n.startX+(n.endX>n.startX?M:-1*M);F/=e;E=n.endY-n.startY+(n.endY>n.startY?C:-1*C);E/=e;M=(n.endWidth+M)/e-A.width();C=(n.endHeight+C)/e-A.height();e=[];e.push(A.name());A=this.dS;for(l in A)S(A,l)&&e.push(l);D.wu().execute({cmd:"resizeFloatingObjects",sheetName:D.name(),floatingObjects:e,offsetX:F,offsetY:E,offsetWidth:M,offsetHeight:C})}}Y(N.body).removeClass("gc-no-user-select")}l=(this.rS(),!1)}return l}},rS:function(){this.dS=this.eS=this.$R=null;Y(this.iS).remove();this.cS=null;this.pS=!1;this.RB&&(this.RB=!1,Y(N).unbind("mousemove.gcFloatingObject").unbind("mouseup.gcFloatingObject"));this.kv=this.qS=!1},YR:function(){return this.YR},yl:function(b,f){var d,g,k,h,m,p=this.YR,n=this.kj;if(p){d=!1;this.sS=b;g=this.hS;g||(g=this.hS=l(this),k=C(p),g&&(g.style.zIndex=k+""),(k=n.parent)&&(h=this.Ks=k.xv(),h&&Y(h).append(g)));(h=this.kS)||(h=this.kS=p.WR(),"function"==typeof p.borderWidth?(this.lS=e("div"),Y(this.lS).addClass("gc-no-user-select gc-floatingobject-content-container").attr("unselectable","on"),g.appendChild(this.lS),this.lS.appendChild(h)):(g.appendChild(h),d=!0));if(this.lS){var q,r,y,w;k=this.lS;q=this.YR;var z=q.borderWidth(),u=q.borderStyle(),B=W.Om(q.sheet(),q.borderColor()),A=q.borderRadius();w=0;var E=ja(a.mS/2+1);q.nS(u)||(z=0);z<E&&(w=E-z);y=r=q=w;E=oa(z,E);0>f.x?q+=f.x-E:(q+=f.x<E?f.x-E:0,w=b.width-q-f.width-2-2*z);0>f.y?r+=f.y-E:(r+=f.y<E?f.y-E:0,y=b.height-r-f.height-2-2*z);Y(k).css("position left top bottom right border-width border-style border-color border-radius".split(" "),["absolute",q,r,y,w,z,u,B,A]);f.x=0;f.y=0}k=Y(h);Y(g).css(["top","left","width","height"],[b.y,b.x,b.width,b.height]);k.css(["top","left","width","height","cursor"],[f.y,f.x,f.width,f.height,"move"]);this.Nia=b;p.refreshContent&&p.refreshContent(h);if(this.lS){var D,F,M,G,P,z=this.YR,u=z.src(),B=z.pictureStretch(),A=W.Om(z.sheet(),z.backColor()),E=this.kS;u&&E&&(D=Y(E),this.XR!==u&&(this.XR=u,D.css(["background-image","background-repeat"],["url('"+u+"')","no-repeat"])),D.css("background-color",A),null!==B&&void 0!==B&&z.oS&&(F=z.getOriginalWidth(),M=z.getOriginalHeight(),G=D.width(),P=D.height(),V.ql(E,G,P,F,M,B)))}if(p.isSelected())if(k.removeClass("gc-floatingobject-unselected").addClass("gc-floatingobject-selected"),p.allowResize()){var N,H;Y(".gc-floatingobject-resize-indicator",g).removeClass("gc-floatingobject-resize-indicator-unSelect");g=c(this.hS);M=this.kS;D=this.YR;this.lS&&(M=this.lS);F=a.mS;M=c(M);G=M.x;P=M.y;k=g.height-M.y-M.height;z=g.width-M.x-M.width;u=0;B=F+2;F=ja(F/2+1);"function"==typeof D.borderWidth&&(N=D.borderWidth(),H=D.borderStyle(),D.nS(H)||(N=0),N>=F&&(u=N-F),k=g.height-P-M.height-N,z=g.width-G-M.width-N,G+=N,P+=N);0<G?(t(this,0<P,"div.gc-floatingobject-resize-indicator.gc-floatingobject-top.gc-floatingobject-left",u,u,void 0,void 0,"nw-resize","topleft"),t(this,0<g.height,"div.gc-floatingobject-resize-indicator.gc-floatingobject-middle.gc-floatingobject-left",u,(M.height-B)/2+P,void 0,void 0,"w-resize","middleleft"),t(this,0<k,"div.gc-floatingobject-resize-indicator.gcfloatingobject-bottom.gc-floatingobject-left",u,void 0,void 0,u,"ne-resize","bottomleft")):(v(this,"div.gc-floatingobject-resize-indicator.gc-floatingobject-top.gc-floatingobject-left"),v(this,"div.gc-floatingobject-resize-indicator.gc-floatingobject-middle.gc-floatingobject-left"),v(this,"div.gc-floatingobject-resize-indicator.gcfloatingobject-bottom.gc-floatingobject-left"));t(this,0<P,"div.gc-floatingobject-resize-indicator.gc-floatingobject-top.gc-floatingobject-center",(M.width-B)/2+G,u,void 0,void 0,"n-resize","topcenter");t(this,0<k,"div.gc-floatingobject-resize-indicator.gcfloatingobject-bottom.gc-floatingobject-center",(M.width-B)/2+G,void 0,void 0,u,"n-resize","bottomcenter");0<z?(t(this,0<P,"div.gc-floatingobject-resize-indicator.gc-floatingobject-top.gc-floatingobject-right",void 0,u,u,void 0,"sw-resize","topright"),t(this,0<g.height,"div.gc-floatingobject-resize-indicator.gc-floatingobject-middle.gc-floatingobject-right",void 0,(M.height-B)/2+P,u,void 0,"w-resize","middleright"),t(this,0<k,"div.gc-floatingobject-resize-indicator.gcfloatingobject-bottom.gc-floatingobject-right",void 0,void 0,u,u,"se-resize","bottomright")):(v(this,"div.gc-floatingobject-resize-indicator.gc-floatingobject-top.gc-floatingobject-right"),v(this,"div.gc-floatingobject-resize-indicator.gc-floatingobject-middle.gc-floatingobject-right"),v(this,"div.gc-floatingobject-resize-indicator.gcfloatingobject-bottom.gc-floatingobject-right"));this.ZR=!0}else this.ZR&&(Y(".gc-floatingobject-resize-indicator",g).removeClass("gc-floatingobject-resize-indicator-select").addClass("gc-floatingobject-resize-indicator-unSelect"),this.ZR=!1);else k.removeClass("gc-floatingobject-selected").addClass("gc-floatingobject-unselected"),Y(".gc-floatingobject-resize-indicator",g).removeClass("gc-floatingobject-resize-indicator-select").addClass("gc-floatingobject-resize-indicator-unSelect"),this.ZR=!1;d&&(m=h.firstChild,n.Wq(x.FloatingObjectLoaded,{sheet:n,sheetName:n.Cj,floatingObject:p,element:m}))}},no:function(){var b=this.YR,e=this.hS,c=this.iS,f=this.kS;a.ao(this,"dispose");f&&b.VR&&b.VR(f);e&&(Y(e).remove(),this.hS=null);c&&(Y(c).remove(),this.iS=null)}},a.mS=7,a}();t=function(){function a(a){this.kj=a;this.jS=new v}function b(a){a.zR().forEach(function(a){a.dynamicMove()?q(a):n(a);a.dynamicSize()?h(a):w(a)})}function e(a,e,c,f){var d,g,k,h,m,p,l,n;a=a.kj;var q=new v,t=a.wr;return t.isNeedToUpdateLayout&&(b(t),t.isNeedToUpdateLayout=!1),d=a.am(),g=a.ss,k=a.it(c),h=a.jt(e),0>=k.length||0>=h.length?q:(m=k[0],p=k[k.length-1],l=h[0],n=h[h.length-1],t.zR().forEach(function(a){var b,e,c,t,x;if(a&&a.isVisible()){if(a.fixedPosition())c=a.position(),b=c.x*f+d.kt,e=c.y*f+d.nt;else{if(e=a.startColumn(),b=k.findCol(e),b)b=b.x;else if(e<m.col)for(b=m.x,t=m.col-1;t>=e;t--)b-=g._m(t);else for(b=p.x+p.width,t=p.col+1;t<=e;t++)b+=g._m(t);if(b+=a.startColumnOffset()*f,c=a.startRow(),x=h.findRow(c),x)e=x.y;else if(c<l.row)for(e=l.y,x=l.row-1;x>=c;x--)e-=g.Sl(x);else for(e=n.y+n.height,x=n.row+1;x<=c;x++)e+=g.Sl(x);e+=a.startRowOffset()*f}c=ja(a.width()*f);x=ja(a.height()*f);q.push({name:a.name(),x:b,y:e,width:c,height:x})}}),q)}return a.prototype={no:function(){var a=this.jS;a.each(function(a){a.no()});a.empty()},yl:function(a,b,c){var d,g,k,h,m,p,l,n;if(!(0>a||0>b)){d=this;g=d.kj;k=d.jS;h=g.wr;m=e(d,a,b,c);p=[];k.each(function(a){m.find(a.name)||p.push(a)});c=0;for(l=p.length;c<l;c++)n=p[c],n.gS=null,k.remove(n.name),n.no();c=g.parent&&g.parent.options.useTouchLayout;y.mS=c?11:7;m.each(function(e){var c,m,p,l,n,q,t,x,v,r,w=h.NR(e.name);r=ja(y.mS/2+1);w&&"function"==typeof w.borderWidth&&(c=w.borderWidth(),m=w.borderStyle(),w.nS(m)||(c=0),c>r&&(r=c));c=d.kj;var z=c.it(b),u=w=m=0,B=0;c=(z&&0<z.length&&(t=z[0],x=z[z.length-1],m=t.x,u=x.x+x.width-m),q=c.jt(a),q&&0<q.length&&(n=q[0],p=q[q.length-1],w=n.y,B=p.y+p.height-w),l=c.am(),v=l.Ft(a,b),v.getIntersect(m,w,u,B)||new f(0,0,0,0));p=e.x-r-1;l=e.y-r-1;n=e.width+2*r+2;q=e.height+2*r+2;t=oa(c.y,l);x=oa(c.x,p);v=-1*r-1;l=l-t+r;p=p-x+r;0>=l?(q+=l,q+=v):l<r&&0<l&&(q-=r-l);0>=p?(n+=p,n+=v):p<r&&0<p&&(n-=r-p);(r=k.find(e.name))||(r=new y(h.NR(e.name),g),r.gS=d,k.push(r));r._R=e;r.WE=a;r.aS=b;c=new f(c.x,c.y,c.width,c.height);r.yl((new f(x,t,n,q)).getIntersectRect(c)||new f(x,t,0,0),new f(p,l,e.width,e.height))})}}},a}();E={FloatingObject:B,FloatingObjectCollection:m,tS:y,uS:L,vS:I,wS:H};Y.extend(E,u);U.exports=E},function(U,u,l){function d(d){d=d.wr;var l=!1;return d&&d.zR().forEach(function(d){d&&d.isSelected()&&(l=!0)}),l}function J(d){var l=[];return d.wr.zR().forEach(function(d){d.isSelected()&&l.push(d.name())}),l}function R(d,l,n){var c,m,h;c=d.BR();var a=c.fromSheet;c.fromSheet=d;c.isCutting=n;n=new F;for(m=c=0;m<A(l);m++)(h=d.wr.NR(l[m]))&&(n.push(h),c++);return a&&(a.CR=null),d.CR=n,0<c}function Q(d){return function(l,n){var c,m,h=D.bT(l,n),a=0;return 0===d?a=-1:2===d&&(a=1),c=0,1===d?c=-1:3===d&&(c=1),m=J(h),0<A(m)&&h.wu().execute({cmd:"moveFloatingObjects",sheetName:h.name(),floatingObjects:m,offsetX:a,offsetY:c})}}var K,O,H,I,L,F,G=l(85);u=l(26);var q=G.GC$,D=G.Commands,A=u.k.ac;l=D.ActionBase;var r=Math.min,n=D.h4;u=function(l){function n(){l.call(this)}q.inherit(n,l);return q.extend(n.prototype,{init:function(d,c){this.kj=d;this.VQ=c;c.yS=c.yS||[]},canExecute:function(){return!!d(this.kj)},canUndo:function(){var d=this.VQ.yS;return!!(d&&0<A(d))},saveState:function(){var d,c,m,h,a=this.VQ.floatingObjects;if(a instanceof Array)for(d=this.kj.wr,c=0,m=A(a);c<m;c++)(h=d.NR(a[c]))&&this.VQ.yS.push(h)}}),n}(l);K=function(d){function l(l,c){d.call(this);this.init(l,c)}q.inherit(l,d);return q.extend(l.prototype,{constructor:l,execute:function(){var d,c,m,h,a,l;d=!1;var n=this.kj,q=this.VQ,r=q.floatingObjects;if(this.canExecute()&&r instanceof Array){this.saveState();this.Lz(n,!0);d=n.wr;c=0;for(m=A(r);c<m;c++)(h=d.NR(r[c]))&&(a=n.slicers,this.zS(h)&&a&&a.remove(h.name()),l=d.Fb(r[c],!0),l||(q.yS[c]=void 0),h.isSelected(!1));n.GJ();this.Mz(n,!0);d=0<A(r)}return d},undo:function(){var d,c,m,h,a,l=this.VQ,n=l.yS,q=this.kj;if(this.canUndo()){this.Lz(q,!0);d=q.wr;c=0;for(m=A(n);c<m;c++)(h=n[c])&&(h.isSelected(!0),d.Sb(h),a=q.slicers,this.zS(h)&&a&&a.Cz(h),h.position(l.AS[h.name()]));return q.EJ(),n.length=0,this.Mz(q,!0),!0}return!1},init:function(l,c){d.prototype.init.call(this,l,c);c.AS=c.AS||{}},zS:function(d){return d&&"Slicer"===d.typeName},saveState:function(){var l,c,m,h,a;if(d.prototype.saveState.call(this),l=this.kj,c=this.VQ.floatingObjects,c instanceof Array)for(l=l.wr,m=0,h=A(c);m<h;m++)(a=l.NR(c[m]))&&a.position()&&(this.VQ.AS[a.name()]=a.position())}}),l}(u);O=function(d){function l(l,c){d.call(this);this.init(l,c)}q.inherit(l,d);return q.extend(l.prototype,{constructor:l,canExecute:function(){return!0},execute:function(){var d,c,m,h,a;d=!1;var l=this.VQ,n=l.floatingObjects,q=this.kj;if(this.canExecute()&&n instanceof Array){this.saveState();this.Lz(q,!0);d=q.wr;c=0;for(m=A(n);c<m;c++)h=d.NR(n[c]),a=h.position(),h.position(new G.Point(a.x+l.offsetX,a.y+l.offsetY));this.Mz(q,!0);d=0<A(n)}return d},undo:function(){var d,c,m,h,a=this.VQ.yS,l=this.kj;if(this.canUndo()){this.Lz(l,!0);d=0;for(c=A(a);d<c;d++)m=a[d],h=m.position(),m.position(new G.Point(h.x-this.VQ.offsetX,h.y-this.VQ.offsetY));return a.length=0,this.Mz(l,!0),!0}return!1}}),l}(u);H=function(d){function l(l,c){d.call(this);this.init(l,c)}q.inherit(l,d);return q.extend(l.prototype,{execute:function(){var d,c,m,h,a;d=!1;var l=this.VQ,n=l.floatingObjects,q=this.kj;if(this.canExecute()&&n instanceof Array){this.saveState();this.Lz(q,!0);d=q.wr;c=0;for(m=A(n);c<m;c++)h=d.NR(n[c]),a=h.position(),h.width(h.width()+l.offsetWidth),h.height(h.height()+l.offsetHeight),h.position(new G.Point(a.x+l.offsetX,a.y+l.offsetY));this.Mz(q,!0);d=0<A(n)}return d},undo:function(){var d,c,m,h,a=this.VQ.yS,l=this.kj;if(this.canUndo()){this.Lz(l,!0);d=0;for(c=A(a);d<c;d++)m=a[d],h=m.position(),m.position(new G.Point(h.x-this.VQ.offsetX,h.y-this.VQ.offsetY)),m.width(m.width()-this.VQ.offsetWidth),m.height(m.height()-this.VQ.offsetHeight);return a.length=0,this.Mz(l,!0),!0}return!1}}),l}(u);l=function(d){function l(){d.call(this);this.kj=null}q.inherit(l,d);return q.extend(l.prototype,{canExecute:function(){var d=this.VQ.floatingObjects;return!!(0<A(d)&&this.ES(d))},canUndo:function(){var d=this.VQ.DS;return!!(d&&0<A(d))},ES:function(d){var c,m,h,a=this.kj,l=a.wr;c=0;for(m=A(d);c<m;c++)if(h=l.NR(d[c]),h&&!a.ER(h))return!1;return!0},zS:function(d){return d&&"Slicer"===d.typeName}}),l}(l);I=function(l){function n(d,c){l.call(this);this.OFFSET=15;this.kj=d;this.VQ=c;c.DS=c.DS||[];c.f6=c.f6||[]}q.inherit(n,l);return q.extend(n.prototype,{execute:function(){var l,c,m,h,a,n,q,t,w,z,p,g,f,k,x,u,D=this.VQ,F=D.floatingObjects;if(this.canExecute()){l=this.kj;c=D.fromSheet;this.Lz(l,!0);m=D.f6;h=l.wr;void 0===D.Jl&&(d(l)&&h.zR().forEach(function(a){a&&a.isSelected()&&m.push(a)}),D.Jl=this.kj.getActiveRowIndex(),D.GS=this.kj.getActiveColumnIndex());d(l)&&h.zR().forEach(function(a){a&&a.isSelected()&&a.isSelected(!1)});a=[];z=w=t=Number.MAX_VALUE;p=[];n=0;for(q=A(F);n<q;n++)g=c.CR.find(F[n]).position(),w=r(w,g.x),z=r(z,g.y),p.push(new G.Point(g.x-w,g.y-z));if(w=0,z=0,m.length)k=f=t,m.forEach(function(a){a&&(a=a.position(),f=r(f,a.x),k=r(k,a.y))}),w=f<t?f+this.OFFSET:0,z=k<t?k+this.OFFSET:0;else{for(n=0;n<D.Jl;n++)z+=l.Yr(n,3);for(n=0;n<D.GS;n++)w+=l.$r(n,3)}n=0;for(q=A(F);n<q;n++)t=p[n],a.push(new G.Point(w+t.x,z+t.y));p=D.isCutting;t=c.wr;n=0;for(q=A(F);n<q;n++)w=c.CR.find(F[n]),p&&!t.NR(F[n])?(x=w,x.sheet(l)):(x=w.clone(l),u=this.zS(x)?l.slicers.HS(x.name()):h.FS()),u&&x.name(u),this.zS(x)&&(l.slicers.Cz(x),x.width(w.width()),x.height(w.height())),x.isVisible(!0),x.position(a[n]),x.isSelected(!0),h.Sb(x),D.DS.push(x);return this.Mz(l,!0),!0}return!1},undo:function(){var d,c,m,h,a,l,n,q=this.VQ,r=q.DS;if(this.canUndo()){d=this.kj;c=d.wr;this.Lz(d,!0);m=0;for(h=A(r);m<h;m++)a=r[m],l=d.slicers,this.zS(a)&&l&&l.remove(a.name()),c.Fb(a.name(),!0);return r.length=0,n=q.f6,n.forEach(function(a){a.isSelected(!0)}),this.Mz(d,!0),!0}return!1}}),n}(l);L=function(d){function l(d,c){this.kj=d;this.VQ=c;c.DS=c.DS||[]}q.inherit(l,d);return q.extend(l.prototype,{constructor:l,execute:function(){var d,c,m,h,a,l,n,q;d=!1;var r=this.VQ,w=r.floatingObjects,p=this.kj;if(this.canExecute()){this.Lz(p,!0);d=p.wr;c=0;for(m=A(w);c<m;c++)(h=d.NR(w[c]))&&(a=h.clone(p),l=h.position(),a.position(new G.Point(l.x+r.offsetX,l.y+r.offsetY)),a.name(d.FS()),a.isSelected(!0),h.isSelected(!1),this.zS(a)&&p.slicers&&(n=a,q=p.slicers.HS(n.columnName()),n.name(q),p.slicers.Cz(n)),d.Sb(a),r.DS.push(a));this.Mz(p,!0);d=!0}return d},undo:function(){var d,c,m,h,a,l,n=this.VQ.DS,q=this.kj;if(this.canUndo()){this.Lz(q,!0);d=q.wr;c=0;for(m=A(n);c<m;c++)h=n[c].name(),a=q.slicers,l=d.NR(h),this.zS(l)&&a&&a.remove(h),d.Fb(h,!0);return n.length=0,this.Mz(q,!0),!0}return!1}}),l}(l);D.unSelectAllFloatingObjects={canUndo:!1,execute:function(l,n){var q=D.bT(l,n);return!!d(q)&&(q.suspendPaint(),q.uQ(),q.GJ(),q.resumePaint(),!0)}};D.selectAllFloatingObjects={canUndo:!1,execute:function(d,l){var n=D.bT(d,l);n.suspendPaint();n.wr.zR().forEach(function(c){c.isSelected(!0)});n.resumePaint()}};D.deleteFloatingObjects={canUndo:!0,execute:function(d,l,q){var c,m;return l.floatingObjects?n(d,K,l,q):(c=d.sheets?d.getActiveSheet():d,m=J(c),0<A(m)?c.wu().execute({cmd:"deleteFloatingObjects",sheetName:c.name(),floatingObjects:m}):void 0)}};D.navigationNextFloatingObject={canUndo:!1,execute:function(l,n){var q,c,m,h,a,r,y,t=D.bT(l,n);if(d(t)){t.suspendPaint();a=t.wr.zR();r=a.length;for(h=0;h<r;h++){if(y=a[h],c||(c=y),q){m=y;break}y&&y.isSelected()&&(q=y)}return t.uQ(),m||(m=c),m&&m.isSelected(!0),t.resumePaint(),!0}return!1}};D.navigationPreviousFloatingObject={canUndo:!1,execute:function(l,n){var q,c,m,h,a,r,y=D.bT(l,n);if(d(y)){y.suspendPaint();h=y.wr.zR();a=h.length;for(m=0;m<a;m++)if(r=h[m],q||(q=r),q.isSelected())c=r;else if(r.isSelected()||(c=r),r.isSelected())break;return y.uQ(),c.isSelected(!0),y.resumePaint(),!0}return!1}};D.cutFloatingObjects={canUndo:!1,execute:function(d,l){var n,c=D.bT(d,l),m=[];return c.wr.zR().forEach(function(c){c.isSelected()&&m.push(c.name())}),0<A(m)&&(R(c,m,!0),n={cmd:"deleteFloatingObjects",sheetName:c.name(),floatingObjects:m},c.wu().execute(n))}};D.copyFloatingObjects={canUndo:!1,execute:function(d,l){var n=D.bT(d,l),c=[];return n.wr.zR().forEach(function(d){d.isSelected()&&c.push(d.name())}),R(n,c,!1)}};D.pasteFloatingObjects={canUndo:!0,execute:function(d,l,q){var c,m,h,a,r;if(l.floatingObjects)return n(d,I,l,q);if(c=D.bT(d,l),!c.isEditing()&&(m=c.BR(),h=m.fromSheet,a=h&&h.CR)){if(r=[],a.each(function(a){r.push(a.name())}),0===A(r))return!1;if(!c.Js)return c.wu().execute({cmd:"pasteFloatingObjects",sheetName:c.name(),floatingObjects:r,fromSheet:h,isCutting:m.isCutting})}}};D.dragCopyFloatingObjects={canUndo:!0,execute:function(d,l,q){return n(d,L,l,q)}};D.moveFloatingObjectsLeft=Q(0);D.moveFloatingObjectsUp=Q(1);D.moveFloatingObjectsRight=Q(2);D.moveFloatingObjectsDown=Q(3);D.moveFloatingObjects={canUndo:!0,execute:function(d,l,q){return n(d,O,l,q)}};D.resizeFloatingObjects={canUndo:!0,execute:function(d,l,q){return n(d,H,l,q)}};D.JR=function(d){var l=G.Ul.sl(),n=!l;d.register("unSelectAllFloatingObjects",D.unSelectAllFloatingObjects,27,!1,!1,!1,!1);d.register("selectAllFloatingObjects",D.selectAllFloatingObjects,65,n,!1,!1,l);d.register("deleteFloatingObjects",D.deleteFloatingObjects,46,!1,!1,!1,!1);d.register("navigationNextFloatingObject",D.navigationNextFloatingObject,9,!1,!1,!1,!1);d.register("navigationPreviousFloatingObject",D.navigationPreviousFloatingObject,9,!1,!0,!1,!1);d.register("cutFloatingObjects",D.cutFloatingObjects,88,n,!1,!1,l);d.register("copyFloatingObjects",D.copyFloatingObjects,67,n,!1,!1,l);d.register("dragCopyFloatingObjects",D.dragCopyFloatingObjects);d.register("pasteFloatingObjects",D.pasteFloatingObjects,86,n,!1,!1,l);d.register("moveFloatingObjects",D.moveFloatingObjects);d.register("moveFloatingObjectsUp",D.moveFloatingObjectsUp,38,!1,!1,!1,!1);d.register("moveFloatingObjectsDown",D.moveFloatingObjectsDown,40,!1,!1,!1,!1);d.register("moveFloatingObjectsLeft",D.moveFloatingObjectsLeft,37,!1,!1,!1,!1);d.register("moveFloatingObjectsRight",D.moveFloatingObjectsRight,39,!1,!1,!1,!1);d.register("resizeFloatingObjects",D.resizeFloatingObjects)};F=function(){function d(){this.rM={}}return d.prototype={push:function(d){this.rM["string"==typeof d.name?d.name:d.name()]=d},remove:function(d){delete this.rM[d]},find:function(d){return this.rM[d]},empty:function(){delete this.rM;this.rM={}},each:function(d){var l,c=this.rM;for(l in c)c.hasOwnProperty(l)&&d(c[l])},isEmpty:function(){var d,l=this.rM;for(d in l)if(l.hasOwnProperty(d))return!1;return!0}},d}();U.exports={yR:F,FloatingObjectUndoActionBase:u,DeleteFloatingObjectUndoAction:K,MovingFloatingObjectUndoAction:O,ResizingFloatingObjectUndoAction:H,FloatingObjectCopyPasteUndoAction:l,ClipboardPasteFloatingObjectUndoAction:I,DragCopyFloatingObjectUndoAction:L}},function(U,u,l){var d=l(85);u=l(105);var J=d.Ul.Nl,R=d.Ul.Pl,Q=u.vS,K=u.wS,O=u.uS,H=d.GC$;l=function(l){function u(d){return"number"==typeof d&&!isNaN(d)}function F(d,n,q,z,u,c){l.call(this,d,q,z,u,c);this.typeName="1";this.bt=null;this.JS=this.oS=!1;"string"==typeof n&&(this.JS=!u||!c,this.src(n))}function G(l){var n,q,r=l.src(),u=l.sheet();l.bt||(l.bt=new d.oo(function(){G(l)}));n=l.bt;try{n.ko(r)?(l.oS=!0,q=n.lo(r),l.KS=q.width,l.LS=q.height,l.JS&&(l.width(q.width,!0),l.height(q.height,!0),l.JS=!1),u&&u.repaint()):n.fo(r)}catch(c){}}var q,D,A;H.inherit(F,l);q="src backColor borderRadius borderWidth borderStyle borderColor pictureStretch".split(" ");D=[["src",void 0,function(d){this.oS=!1;G(this);this.srccallback||(this.srccallback=O("src"));this.srccallback.call(this,d)}],["backColor",null,O("backColor")],["borderRadius",-1,O("borderRadius"),u],["borderWidth",1,O("borderWidth"),u],["borderStyle","none",function(d){this.nS(d)||this.borderWidth(0);this.bscallback||(this.bscallback=O("borderStyle"));this.bscallback.call(this,d)}],["borderColor",null,O("borderColor")],["pictureStretch",0,O("pictureStretch")]];return A={onPropertyChanged:function(d,l){var n;this.TR||(n=this.sheet(),this.Wq({sheet:n,sheetName:n?n.Cj:"",picture:this,propertyName:d}))},toJSON:function(){var d=l.prototype.toJSON.call(this);return K.call(this,q,d),delete d.content,d},fromJSON:function(d,n){d&&(this.TR=!0,l.prototype.fromJSON.call(this,d,n),Q.call(this,q,d,n),this.oS=!1,G(this),this.TR=void 0)},clone:function(){var d=new F,l=JSON.stringify(this.toJSON());return d.fromJSON(JSON.parse(l)),d},getOriginalWidth:function(){return this.KS},getOriginalHeight:function(){return this.LS},nS:function(d){return 0<="dotted dashed solid double groove ridge inset outset".split(" ").indexOf(d)},WR:function(){var d=J("div");return H(d).addClass("gc-floatingobject-content-container").addClass("gc-no-user-select").attr("unselectable","on").css("position","absolute"),this.UR(d),d},Wq:function(l){var n,q=this.sheet();q&&(q.Wq(d.Events.PictureChanged,l),"isSelected"===l.propertyName&&(n={sheet:l.sheet,sheetName:l.sheetName,picture:l.picture},q.Wq(d.Events.PictureSelectionChanged,n)))},no:function(){self.bt&&(self.bt.no(),self.bt=null)}},H.each(D,function(d,l){A[l[0]]=R(l[0],l[1],l[2],l[3])}),H.extend(F.prototype,A),F}(u.FloatingObject);u.Picture=l;U.exports=u},function(U,u,l){var d=l(109);d&&!function(){function u(d,l,q){var u;this.yM=new I(this);this.DQ=new L(d,"FL_"+l.name,this.yM,2,200);this.BQ=q;u=this.CQ=new R(d,l);d=this.DQ;d._M=function(){return l.YR.isSelected()};d.bN=function(){return!0};d.dN=function(d){return u.jQ(d)};d.eN=function(d){return u.lQ(d)};d.fN=function(d){return u.pQ(d)};d.hN=function(d){return u.qQ(d)};d.iN=function(d){return u.sQ(d)}}function R(l,u){this.MS=u;this.YR=u.YR;this.NS=l;this.hQ=new d.TP(u.kj)}var Q=l(85),K=Q.GC$,O=K.extend,H=Q.Ul.nl,I=d.jR,L=d.kR;O(u.prototype,{EQ:function(){var d=this.BQ;d&&d.xN(this.DQ,!0)},FQ:function(){var d=this.BQ;d&&d.xN(this.DQ,!1)},GQ:function(d){return this.yM.GQ(d)},HQ:function(d){return this.yM.HQ(d)},IQ:function(d){return this.yM.IQ(d)}});O(R.prototype,{OS:function(l){var u;l=new d.oP(l.X,l.Y);var q=K(this.NS).offset();return q&&(u=document.body,l.X+=q.left+u.clientLeft||0,l.Y+=q.top+u.clientTop||0),l},jQ:function(d){d.DO=35},lQ:function(d){var l=this.OS(d.rN);this.MS.AD({target:d.GP,isTouch:!0,button:0,pageX:l.X,pageY:l.Y,stopPropagation:function(){}});this.hQ.OP()},pQ:function(d){var l,q=d.dP.rO,u=this.MS.kj,A=u.parent;1!==q&&A&&A.options.allowUserZoom?(u.mm.O3=!1,this.MS.rS(),this.hQ.PP(q)):(l=this.OS(d.rN),this.MS.BD({isTouch:!0,button:0,pageX:l.X,pageY:l.Y,stopPropagation:function(){}}))},qQ:function(d){var l,q=d.dP.rO,u=this.MS.kj.parent;1!==q&&u&&u.options.allowUserZoom?this.hQ.SP(q):(l=this.OS(d.rN),this.MS.CD({isTouch:!0,button:0,pageX:l.X,pageY:l.Y,stopPropagation:function(){}}))},sQ:function(){var d;try{d=this.MS.kj,d.suspendPaint(),this.YR.isSelected()||(d.uQ(),this.YR.isSelected(!0),Q.Vl.Zl(d)),d.clearSelection()}finally{d.resumePaint()}}});l(105).tS.$n("touch",{init:function(d){(this.wR=new u(d,this,this.kj.parent.BQ)).EQ()},dispose:function(){var d=this.wR;d&&d.FQ()},preProcessMouseDown:function(d){var l=d.e,q=this.wR;q&&!l.isTouch&&q.GQ(l)&&(H(l),d.r=!0)},preProcessMouseMove:function(d){var l=d.e,q=this.wR;q&&!l.isTouch&&q.IQ(l)&&(H(l),d.r=!0)},preProcessMouseUp:function(d){var l=d.e,q=this.wR;q&&!l.isTouch&&q.HQ(l)&&(H(l),d.r=!0)}})}()},function(U,u){U.exports=GC.Spread.Sheets.Touch},function(U,u){U.exports={Exp_FloatingObjectHasSameNameError:"The current worksheet already has a floating object with the same name.",Exp_FloatingObjectNameEmptyError:"Floating object must have name"}},function(U,u,l){U.exports=l(112);l(114)},function(U,u,l){function d(a,c,d,g){var f=this.ZA;this.Mp().setValueForKey(a,c,t,g);g&&f.add(g.group());this.Bq("sparkline",a,c,3,d,g)}function J(a,c){this.Ub=[];this.kj=a;this.evaluator=c}function R(c,d,g){return g?c>g.row+g.rowCount-1?g:c>g.row?n(g.row,g.col,g.rowCount+d,g.colCount):n(g.row+d,g.col,g.rowCount,g.colCount):a}function Q(c,d,g){return g?c>g.col+g.colCount-1?g:c>g.col?n(g.row,g.col,g.rowCount,g.colCount+d):n(g.row,g.col+d,g.rowCount,g.colCount):a}function K(a,c,d,g){var f,k,h,e,b,m,p,l;for(f=0;f<a.length;f++)for(k=a[f],h=k.PS,k.displayDateAxis&&(b=k.dateAxisData(),e=g?R(c,d,b):Q(c,d,b),k.dateAxisData(e)),k=0;k<h.length;k++)m=h[k],l=m.data(),g?(c<=m.row&&(m.row+=d),p=R(c,d,l)):(c<=m.column&&(m.column+=d),p=Q(c,d,l)),m.data(p)}function O(c,d,g){return(c=I(g.col,g.col+g.colCount-1,c,c+d-1))?n(g.row,c.start,g.rowCount,c.end-c.start+1):a}function H(c,d,g){return(c=I(g.row,g.row+g.rowCount-1,c,c+d-1))?n(c.start,g.col,c.end-c.start+1,g.colCount):a}function I(c,d,g,h){var f,k,m,e=-1;if(h<c)return k=h-g+1,e=c-k,f=d-k,{start:e,end:f};if(g>d)return e=c,f=d,{start:e,end:f};if(g<=c){m=0;for(k=c;k<=h&&k<=d;k++)m++;return e=g,f=e+(d-c+1)-m-1,{start:e,end:f}}m=0;for(k=c;k<=d;k++)-1===e&&(k<g||k>h)&&(e=k),(k<g||k>h)&&m++;return-1!==e&&0<m?(f=e+m-1,{start:e,end:f}):a}function L(a,c,d,g){var f,k,h,e,b,m,p,l,n,q;for(f=0;f<a.length;f++){if(k=a[f],k.displayDateAxis){if(e=k.dateAxisData(),h=g?H(c,d,e):O(c,d,e),w(h)){k.clear();C(a,k);continue}k.dateAxisData(h)}b=[];b=b.concat(k.PS);for(m=0;m<b.length;m++)p=b[m],l=g?p.row:p.column,l>=c&&l<c+d?k.remove(p):(c<=l&&(g?p.row-=d:p.column-=d),q=p.data(),n=g?H(c,d,q):O(c,d,q),w(n)?k.remove(p):p.data(n));0>=k.count()&&C(a,k)}}function F(c){var d;this.options={};for(d in E)E.hasOwnProperty(d)&&(this.options[d]=c&&c[d]?c[d]:E[d]);this.WS=a}function G(c,d){this.displayDateAxis=!1;this.ZA=a;this.PS=[];this.XS=a;this.YS=1;this.setting=d;this.sparklineType=c}function q(a,c,d,g,h,m){this.row=a;this.column=c;this._S=g;this.aT=d;this.cb=new G(h,m);this.cb.add(this)}var D,A,r,n,w,z,C,c,m,h,a,B,y,t,E,M=l(85),p=l(26),g=l(113);u={};l=M.GC$;D=l.isEmptyObject;A=M.Worksheet;r=M.Fp;n=M.kf;w=p.j.Fa;z=p.k;C=z.Fb;c=z.Bb;m=g.Vd;h=g.SparklineRender;a=null;B=Math.max;y=Number.MAX_VALUE;t="sparkline";A.$n("sparkline",{init:function(){this.ZA=new J(this,this)},dispose:function(c){!1!==c&&(this.ZA=a)},onLayoutChanged:function(a){var c,d=a.changeType,f=a.row,g=a.rowCount,h=a.col,m=a.colCount,e=this.ZA;"addRows"===d?e.rI(f,g):"deleteRows"===d?e.GR(f,g):"addColumns"===d?e.tI(h,m):"deleteColumns"===d?e.HR(h,m):"clear"===d&&(c=a.type,3===a.sheetArea&&16===(16&c)&&e.clear(f,h,g,m))},toJson:function(a){a.sparklineGroups=this.ZA.toJSON()},fromJson:function(a,c){var d,f,g,k,h,e;d=this.ZA;f=a.sparklineGroupManager;if(f=c?f&&f.groups:a.sparklineGroups)for(d.fromJSON(f,c),d=d.groups(),k=this.Mp(),h=0;h<d.length;h++)for(f=d[h].PS,e=0;e<f.length;e++)g=f[e],k.setValueForKey(g.row,g.column,t,g)}});l.extend(A.prototype,{getSparkline:function(c,d){return this.ZA?this.Mp().getValueForKey(c,d,t):a},setSparkline:function(c,g,h,m,p,l,n,e){var b,f;return this.ZA?(b=new q(c,g,h,m,p,l),n&&!w(e)&&(b.dateAxisData(n),b.dateAxisOrientation(e),b.group().displayDateAxis=!0),f=this.getSparkline(c,g),this.removeSparkline(c,g),d.call(this,c,g,f,b),this.$p(),b):a},removeSparkline:function(c,g){var f,k,h=this.ZA;h&&(f=this.getSparkline(c,g),f&&(k=f.group(),k.remove(f),0>=k.count()&&h.remove(k),d.call(this,c,g,f,a)),this.$p())},groupSparkline:function(c){var d,f,g,h,m=this.ZA;if(!m)return a;d=a;for(f=0;f<c.length;f++)(g=c[f])&&(d?(h=g.group(),h.remove(g),d.add(g),0>=h.count()&&m.remove(h)):d=g.group());return this.$p(),d},ungroupSparkline:function(a){var c,d,f,g,h=this.ZA;if(h&&a){c=[];c=c.concat(a.PS);for(d=0;d<c.length;d++)(f=c[d])&&(a.remove(f),g=a.clone(),g.add(f),h.add(g));h.remove(a);this.$p()}}});J.prototype={constructor:J,groups:function(a){return 0===arguments.length?this.Ub:void(this.Ub=a)},add:function(a){this.groups().push(a);a.ZA=this;a.QS()},remove:function(a){C(this.groups(),a)},contains:function(a){return c(this.groups(),a)},count:function(){return this.groups().length},rI:function(a,c){K(this.Ub,a,c,!0)},tI:function(a,c){K(this.Ub,a,c,!1)},GR:function(a,c){L(this.Ub,a,c,!0)},HR:function(a,c){L(this.Ub,a,c,!1)},clear:function(c,d,g,h){var f,k,m,e;if(0===arguments.length){f=this.Ub;for(k=0;k<f.length;k++)(m=f[k])&&(m.SparklineGroupManager=a);this.Ub=[]}else for(f=c;f<c+g;f++)for(k=d;k<d+h;k++)(m=this.RS(f,k))&&(e=m.group(),e.remove(m),0===e.count()&&this.remove(e))},RS:function(c,d){var f,g,k,h,m=this.Ub;for(f=0;f<m.length;f++)for(g=m[f],k=0;k<g.count();k++)if(h=g[k],h&&h.row===c&&h.column===d)return h;return a},Zz:function(c,d,g,h,m,p,l){var e,b,f,k,n,q,x,y,z,u,B,A,E=this.kj;if(E){e=new r(m,p,a);b=g-c;f=h-d;q=E.getRowCount();x=E.getColumnCount();y=E.Mp();for(k=0;k<m;k++)if(!(l&&E.Ps&&E.Ps(g+k)))for(n=0;n<p;n++)(z=E.getSparkline(c+k,d+n))&&(u=z.clone(),u.row=g+k,u.column=h+n,B=u.dateAxisData(),w(B)||this.SS(B,b,f,q,x)&&u.dateAxisData(B.offset(f,b)),A=u.data(),w(A)||this.SS(A,b,f,q,x)&&u.data(A.offset(f,b)),this.add(u.group()),e.setValue(k,n,u));for(k=0;k<m;k++)if(!(l&&E.Ps&&E.Ps(g+k)))for(n=0;n<p;n++)y.setValueForKey(g+k,h+n,t,e.getValue(k,n))}},SS:function(a,c,d,g,h){var f,k,e,b;a=this.TS(a);return!!a&&(f=B(a.row,0),k=B(a.col,0),e=0>a.row?g:a.rowCount,b=0>a.col?h:a.colCount,!(0>f+c||0>k+d||f+e+c>g||k+b+d>h))},aB:function(c,d,g,h,m,p){var f,e,b,k,l,n=this.kj;if(n){this.US(c,d,g,h,m,p);f=n.Mp();e=new r(m,p,a);for(b=0;b<m;b++)for(k=0;k<p;k++)(l=n.getSparkline(c+b,d+k))&&(l.row=g+b,l.column=h+k,e.setValue(b,k,l)),f.setValueForKey(c+b,d+k,t,a);for(b=0;b<m;b++)for(k=0;k<p;k++)f.setValueForKey(g+b,h+k,t,e.getValue(b,k))}},US:function(a,c,d,g,h,m){var f,e,b,k,p,l;h=n(a,c,h,m);a=d-a;g-=c;d=this.Ub;for(c=0;c<d.length;c++)for(m=d[c],m=m.PS,f=0;f<m.length;f++)(e=m[f])&&(b=e.dateAxisData(),k=this.TS(b),k&&h.containsRange(k)&&h.contains(e.row,e.column)&&e.dateAxisData(b.offset(g,a)),p=e.data(),l=this.TS(p),l&&h.containsRange(l)&&h.contains(e.row,e.column)&&e.data(p.offset(g,a)))},TS:function(a){return a},_A:function(c,d,g,h,m,p,l,e){var b,f,k,n,q,r,x,y,z,u,B,A=this.kj;if(A){if(c===A)return void this.Zz(d,g,h,m,p,l);b=h-d;f=m-g;k=A.Mp();n=A.getRowCount();q=A.getColumnCount();for(r=0;r<p;r++)if(!(e&&A.Ps&&A.Ps(h+r)))for(x=0;x<l;x++)(y=c.getSparkline(d+r,g+x))?(z=y.clone(),z.row=h+r,z.column=m+x,u=z.dateAxisData(),w(u)||this.SS(u,b,f,n,q)&&z.dateAxisData(u.offset(f,b)),B=z.data(),w(B)||this.SS(B,b,f,n,q)&&z.data(B.offset(f,b)),this.add(z.group()),k.setValueForKey(h+r,m+x,t,z)):k.setValueForKey(h+r,m+x,t,a)}},$A:function(c,d,g,h,m,p,l){var e,b,f,k,n,q,r;if(b=this.kj){if(c===b)return void this.aB(d,g,h,m,p,l);e=c.Mp();b=b.Mp();this.VS(c,d,g,h,m,p,l);for(f=0;f<p;f++)for(k=0;k<l;k++)(n=c.getSparkline(d+f,g+k))?(n.row=h+f,n.column=m+k,q=n.group(),r=q.clone(),q.remove(n),0>=q.count()&&c.ZA.remove(q),r.add(n),this.add(r),b.setValueForKey(h+f,m+k,t,n)):b.setValueForKey(h+f,m+k,t,a),e.setValueForKey(d+f,g+k,t,a)}},VS:function(a,c,d,g,h,m,p){var e,b,f,k,l;e=this.kj;if(a&&e){if(a===e)return void this.US(c,d,g,h,m,p);m=n(c,d,m,p);c=g-c;d=h-d;a=a.ZA.Ub;for(h=0;h<a.length;h++)for(g=a[h],p=0;p<g.PS.length;p++)(e=g.PS[p])&&(b=e.dateAxisData(),f=this.TS(b),f&&m.containsRange(f)&&m.contains(e.row,e.column)&&e.dateAxisData(b.offset(d,c)),k=e.data(),l=this.TS(k),l&&m.containsRange(l)&&m.contains(e.row,e.column)&&e.data(k.offset(d,c)))}},toJSON:function(){var a,c=this.Ub,d=[];for(a=0;c&&a<c.length;a++)d.push(c[a].toJSON());return 0===d.length?void 0:d},fromJSON:function(a,c){var d,f,g;for(d=0;a&&d<a.length;d++)f=a[d],g=new G,g.fromJSON(f,c),this.add(g)}};u.EmptyValueStyle={gaps:0,zero:1,connect:2};u.SparklineAxisMinMax={individual:0,group:1,custom:2};l=p.pc.bc(255,149,179,215);A=p.pc.bc(255,36,64,98);E={axisColor:"black",firstMarkerColor:l,highMarkerColor:"Blue",lastMarkerColor:l,lowMarkerColor:"Blue",markersColor:A,negativeColor:"Brown",seriesColor:A,displayEmptyCellsAs:0,rightToLeft:!1,displayHidden:!1,displayXAxis:!1,showFirst:!1,showHigh:!1,showLast:!1,showLow:!1,showNegative:!1,showMarkers:!1,manualMax:0,manualMin:0,maxAxisType:0,minAxisType:0,lineWeight:1};F.prototype={constructor:F,clone:function(){return new F(this.options)},toJSON:function(){var a,c=this.options,d={};for(a in c)E[a]!==c[a]&&(d[a]=c[a]);return D(d)?void 0:d}};u.SparklineSetting=F;u.SparklineType={line:0,column:1,winloss:2};u.DataOrientation={vertical:0,horizontal:1};G.prototype={constructor:G,add:function(a){a&&(this.PS.push(a),a.group(this),this.QS(),this.onGroupChanged())},clear:function(){this.PS=[]},remove:function(a){var c=this.PS;return C(c,a),a.onSparklineChanged(),a.cb=this.clone(),this.QS(),this.onGroupChanged(),c},contains:function(a){return c(this.PS,a)},onGroupChanged:function(){var a,c,d=this.PS;if(d)for(a=0;a<d.length;a++)(c=d[a])&&c.onSparklineChanged()},clone:function(){var c=this.setting?this.setting.clone():a,c=new G(this.sparklineType,c);return c.displayDateAxis=this.displayDateAxis,c.XS=this.XS,c.YS=this.YS,c},dateAxisData:function(a){var c;return 0===arguments.length?this.XS:(c=this.XS,this.XS=a,void(c!==a&&this.onGroupChanged()))},dateAxisOrientation:function(a){var c;return 0===arguments.length?this.YS:(c=this.YS,this.YS=a,void(c!==a&&this.onGroupChanged()))},count:function(){return this.PS.length},QS:function(){var a,c,d,g,h,m;g=this.setting;var p=this.PS;if(g&&(a=g.options,a.groupMaxValue=-y,a.groupMinValue=y,c=1===a.maxAxisType,d=1===a.minAxisType,c||d))for(g=0;g<p.length;g++)h=p[g],m=this.ZS(h),h=m.min,m=m.max,c&&a.groupMaxValue<m&&(a.groupMaxValue=m),d&&a.groupMinValue>h&&(a.groupMinValue=h)},ZS:function(a){var c,d,f,g=-y,h=y;if(c=a.data())for(a=a.$S(c,a.dataOrientation(),!1),c=0;c<a.length;c++)d=a[c],d===m&&(d=0),"number"==typeof d&&(f=d,g=g<f?f:g,h=h>f?f:h);return{min:h,max:g}},toJSON:function(){function c(c,d){var e=!1;return"setting"===c||"axisReference"===c?e=d===a:"displayDateAxis"===c?e=!1===d:"axisOrientation"===c?e=1===d:"sparklines"===c&&(e=0===d.length),e}var d,g,h,m;d={setting:this.setting?this.setting.toJSON():a,displayDateAxis:this.displayDateAxis,sparklineType:this.sparklineType,axisReference:this.XS,axisOrientation:this.YS,sparklines:this.PS.map(function(a){return a.toJSON()})};g={};for(h in d)d.hasOwnProperty(h)&&(m=d[h],c(h,m)||(g[h]=m));return D(g)?void 0:g},fromJSON:function(a,c){var d,f,g,k,h,e;if(a&&(d=this,f=a.displayDateAxis,g=a.sparklineType,k=a.axisReference,h=a.axisOrientation,e=a.sparklines,d.setting=new F(a.setting),w(f)||(d.displayDateAxis=f),w(g)||(d.sparklineType=g),w(k)||(d.XS=k),w(h)||(d.YS=h),e))for(d.PS=[],f=0,g=e.length;f<g;f++)k=new q,k.fromJSON(e[f],c),d.add(k)}};u.SparklineGroup=G;q.prototype={constructor:q,group:function(a){var c,d;return 0===arguments.length?(c=this.cb,c||(c=new G,c.add(this),this.cb=c),c):(d=this.cb,a!==d&&(d&&d.remove(this),this.cb=a,a&&(a.contains(this)||a.add(this)),this.onSparklineChanged()),this)},sparklineType:function(a){var c;return 0===arguments.length?this.group().sparklineType:(c=this.group(),c.sparklineType!==a&&(c.sparklineType=a,this.onSparklineChanged()),this)},onSparklineChanged:function(){var a=this.bT();a&&a.Wq(M.Events.SparklineChanged,{sheet:a,sheetName:a.Cj,sparkline:this})},setting:function(a){var c=this.group();return 0===arguments.length?c.setting:(c.setting=a,this)},data:function(a){return 0===arguments.length?this.aT:(this.aT!==a&&(this.aT=a,this.onSparklineChanged()),this)},dataOrientation:function(a){return 0===arguments.length?this._S:(this._S!==a&&(this._S=a,this.onSparklineChanged()),this)},dateAxisData:function(a){var c=this.group();return 0===arguments.length?c.dateAxisData():(c.dateAxisData(a),this)},dateAxisOrientation:function(a){var c=this.group();return 0===arguments.length?c.dateAxisOrientation():(c.dateAxisOrientation(a),this)},displayDateAxis:function(a){var c=this.group();return 0===arguments.length?c.displayDateAxis:(c.displayDateAxis=a,this)},clone:function(){var a=new q;return a.row=this.row,a.column=this.column,a.data(this.data()),a.dataOrientation(this.dataOrientation()),a.group(this.group().clone()),a},paintSparkline:function(a,c,d,g,m){var f=this.bT(),k={sparklineType:this.sparklineType(),displayDateAxis:this.displayDateAxis(),zoomFactor:f._zoomFactor,values:this.$S(this.data(),this.dataOrientation()),dateValues:this.$S(this.dateAxisData(),this.dateAxisOrientation(),!0),settings:this.setting(),getColor:function(a){if(f&&a){var b=M.Rm.Om(f,a);if(b)return b}return a}};(new h).paint(a,k,c,d,g,m)},$S:function(a,c,d){var f=this.bT(),g=this.setting().options.displayHidden;return q.cT(void 0,f,g,a,c,d)},bT:function(){var c=this.group();return(c=c&&c.ZA)?c.kj:a},toJSON:function(){return{row:this.row,col:this.column,orientation:this._S,data:this.aT}},fromJSON:function(a){var c,d,f,g;a&&(c=a.row,d=a.col,f=a.orientation,g=a.data,w(c)||(this.row=c),w(d)||(this.column=d),w(f)||(this._S=f),g&&(this.aT=n(g.row,g.col,g.rowCount,g.colCount)))}};q.cT=function(a,c,d,g,h,l){var f,e,b,k,n=[],q=1===h;if(c&&g)for(h=0,f=q?g.colCount:g.rowCount;h<f;h++)e=q?0:h,b=q?h:0,k=a?a[e][b]:c.getValue(g.row+e,g.col+b),!d&&(0>=c.getRowHeight(g.row+e)||0>=c.getColumnWidth(g.col+b))?k=NaN:w(k)||(l?k="number"===typeof k?p.l.Xb(k):Date.parse(k):"number"!==typeof k&&(k=m)),n.push(k);return n};u.Sparkline=q;U.exports=u},function(U,u){U.exports=GC.Spread.Sparklines},function(U,u,l){function d(a){return 0===a}function J(a){return 0===a||2===a}function R(a){var b,e,c,d,f,g,k=[];if(E(a))for(b=0,e=a.getRangeCount();b<e;b++)for(c=a.getRowCount(b),d=a.getColumnCount(b),f=0;f<c;f++)for(g=0;g<d;g++)k.push(a.getValue(b,f,g));return k}function Q(a,b){var e,c,d,f,g=[];if(E(a)&&(e=a.getRangeCount(),e>b))for(e=a.getRowCount(b),c=a.getColumnCount(b),d=0;d<e;d++)for(g[d]=[],f=0;f<c;f++)g[d].push(a.getValue(b,d,f));return g}function K(a){var b;return E(a)?b=a.getValue(0,0,0):f(a)||(b=a),b}function O(){var a,e,c=this.createFunction();c&&(a=c.name,e=c.evaluate,c.evaluate=function(){var c=e.call(this,arguments);return c?new b(a,c):V},this.Cj=a,a&&!M.findGlobalFunction(a)&&(M.ci[a]=c));this.typeName=""}function H(){O.call(this)}function I(){O.call(this)}function L(){O.call(this)}function F(){O.call(this)}function G(){O.call(this)}function q(){O.call(this)}function D(){O.call(this)}function A(){O.call(this)}function r(){O.call(this)}function n(){O.call(this)}function w(){O.call(this)}function z(){O.call(this)}function C(){O.call(this)}function c(){O.call(this)}function m(a,b){function c(a){return new N.Range(a.getRow(0),a.getColumn(0),a.getRowCount(0),a.getColumnCount(0))}var d=new p(a,2,5);return d.evaluate=function(a){var d,g,k,h,m,p,l,n,q,t,r=a[0];if(E(r)&&(d=r.getRangeCount(),0<d)){g=c(r);k=a[1];h=a[2];E(h)&&(d=h.getRangeCount(),0<d&&(m=c(h),p=a[3]));d=a[4]||"{}";var v,x,y,w;a={};var z=!1,u=!0,B="",A="";if(d){d=d.substr(1,d.length-2);v=0;for(x=d.length;v<x;v++)y=d.charAt(v),":"===y?u=!1:","!==y||z?"'"===y||'"'===y||("("===y?z=!0:")"===y&&(z=!1),u?B+=y:A+=y):(a[B]=A,B="",A="",u=!0);B&&(a[B]=A);for(l in a)a.hasOwnProperty(l)&&(w=a[l],f(w)||("TRUE"===w.toUpperCase()?a[l]=!0:"FALSE"===w.toUpperCase()?a[l]=!1:!Z(w)&&isFinite(w)&&(a[l]=e(w))))}l={ac:"axisColor",fmc:"firstMarkerColor",hmc:"highMarkerColor",lastmc:"lastMarkerColor",lowmc:"lowMarkerColor",mc:"markersColor",nc:"negativeColor",sc:"seriesColor",deca:"displayEmptyCellsAs",rtl:"rightToLeft",dh:"displayHidden",dxa:"displayXAxis",sf:"showFirst",sh:"showHigh",slast:"showLast",slow:"showLow",sn:"showNegative",sm:"showMarkers",mmax:"manualMax",mmin:"manualMin",maxat:"maxAxisType",minat:"minAxisType",lw:"lineWeight"};for(n in l)l.hasOwnProperty(n)&&a.hasOwnProperty(n)&&(a[l[n]]=a[n]);return q=new S.SparklineSetting(a),t=q.options,1===t.maxAxisType&&(t.maxAxisType=0),1===t.minAxisType&&(t.minAxisType=0),{data:g,dataOrientation:k,dateAxisData:m,dateAxisOrientation:p,sparklineType:b,displayDateAxis:m&&!f(p),setting:q,values:Q(r,0),dateValues:Q(h,0)}}},d.acceptsReference=J,d}function h(a,b,e,c,d,f,g){var k=S.Sparkline.cT,h=g.sheet,m=b.setting,p=m.options.displayHidden;b={sparklineType:b.sparklineType,displayDateAxis:b.displayDateAxis,zoomFactor:g.zoomFactor,values:k(b.values,h,p,b.data,b.dataOrientation),dateValues:k(b.dateValues,h,p,b.dateAxisData,b.dateAxisOrientation,!0),settings:m,getColor:function(a){if(h&&a){var b=N.Rm.Om(h,a);if(b)return b}return a}};(new W).paint(a,b,e,c,d,f)}function a(){O.call(this)}function B(){O.call(this)}function y(){O.call(this)}function t(a){a&&(v[a.name()]=a)}var E,M,p,g,f,k,x,W,P,V,Z,e,b,v;x=l(33);var N=l(85);P=l(113);var S=l(112);l=l(26);u=S;E=x&&x.Convert.Fh;p=(M=x&&x.Functions)&&M.Function;g=M&&M.bi;f=l.j.Fa;k=N.GC$;x=N.Workbook;l=k.inherit;k=k.extend;W=P.SparklineRender;P=P.SparklineExRenders;V=null;Z=isNaN;e=parseFloat;b=u.SparklineExValue=function(a,b){this.name=a;this.value=b};k(O.prototype,{name:function(){return this.Cj},createFunction:function(){return V},paint:function(a,b,e,c,d,f,g){},toJSON:function(){var a,b={};for(a in this)this.hasOwnProperty(a)&&(b[a]=this[a]);return b},fromJSON:function(a){if(a)for(var b in a)f(a[b])||(this[b]=a[b])}});u.SparklineEx=O;l(H,O);k(H.prototype,{createFunction:function(){var a=new p("PIESPARKLINE",1,255);return a.evaluate=function(a){var b=a[0],e=R(b);return 0>=e.length&&!f(b)&&e.push(b),{values:e,colors:Array.prototype.slice.call(a,1)}},a.acceptsReference=d,a},paint:P.PIESPARKLINE});u.PieSparkline=H;l(I,O);k(I.prototype,{createFunction:function(){var a=new p("AREASPARKLINE",1,7);return a.evaluate=function(a){return{points:R(a[0]),mini:a[1],maxi:a[2],line1:a[3],line2:a[4],colorPositive:a[5],colorNegative:a[6]}},a.acceptsReference=d,a},paint:P.AREASPARKLINE});u.AreaSparkline=I;l(L,O);k(L.prototype,{createFunction:function(){var a=new p("SCATTERSPARKLINE",1,18);return a.evaluate=function(a){var b=Q(a[0],0),e=Q(a[1],0);return{points1:b,points2:e,minX:a[2],maxX:a[3],minY:a[4],maxY:a[5],hLine:a[6],vLine:a[7],xMinZone:a[8],xMaxZone:a[9],yMinZone:a[10],yMaxZone:a[11],tags:a[12],drawSymbol:a[13],drawLines:a[14],color1:a[15],color2:a[16],dash:a[17]}},a.acceptsReference=function(a){return 0===a||1===a},a},paint:P.SCATTERSPARKLINE});u.ScatterSparkline=L;l(F,O);k(F.prototype,{createFunction:function(){var a=new p("BULLETSPARKLINE",3,9);return a.evaluate=function(a){return{measure:K(a[0]),target:K(a[1]),maxi:K(a[2]),good:K(a[3]),bad:K(a[4]),forecast:K(a[5]),tickUnit:K(a[6]),colorScheme:a[7],vertical:a[8]}},a.acceptsReference=function(a){return 0<=a&&6>=a},a},paint:P.BULLETSPARKLINE});u.BulletSparkline=F;l(G,O);k(G.prototype,{createFunction:function(){function a(a){var b,c,d,f,g={};b=0;for(d=a.length;b<d;b++)c=a[b],g[c]?g[c]++:g[c]=1;a=[];for(f in g)g.hasOwnProperty(f)&&a.push({key:e(f),value:g[f]});return a.sort(function(a,b){return a.key-b.key})}var b=new p("SPREADSPARKLINE",1,7);return b.evaluate=function(b){var c,d,g,k,h,m,p,l;d=R(b[0]);var n=[];if(g=!f(d)){n=d;p=[];h=k=0;for(m=n.length;k<m;k++)g=e(n[k]),!Z(g)&&isFinite(g)&&(p[h++]=g);g=(d=p,n=a(d),c=b[4],3===c)}if(g)for(d=0,g=n.length;d<g;d++){k=n[d];h=k.value;m=[];p=Math.max(100,10*h);for(l=0;l<p+h-1;l++)m.push(Math.random());k.randomNumbers=m}return{spreadData:n,showAverage:b[1],scaleStart:b[2],scaleEnd:b[3],style:c,colorScheme:b[5],vertical:b[6]}},b.acceptsReference=d,b},paint:P.SPREADSPARKLINE});u.SpreadSparkline=G;l(q,O);k(q.prototype,{createFunction:function(){var a=new p("STACKEDSPARKLINE",1,13);return a.evaluate=function(a){return{points:R(a[0]),colorRange:R(a[1]),labelRange:R(a[2]),maximum:a[3],targetRed:a[4],targetGreen:a[5],targetBlue:a[6],targetYellow:a[7],color:a[8],highlightPosition:a[9],vertical:a[10],textOrientation:a[11],textSize:a[12]}},a.acceptsReference=function(a){return 0<=a&&2>=a},a},paint:P.STACKEDSPARKLINE});u.StackedSparkline=q;l(D,O);k(D.prototype,{createFunction:function(){var a=new p("HBARSPARKLINE",1,2);return a.evaluate=function(a){return{value:K(a[0]),colorScheme:a[1]}},a.acceptsReference=d,a},paint:P.HBARSPARKLINE});u.HBarSparkline=D;l(A,O);k(A.prototype,{createFunction:function(){var a=new p("VBARSPARKLINE",1,2);return a.evaluate=function(a){return{value:K(a[0]),colorScheme:a[1]}},a.acceptsReference=d,a},paint:P.VBARSPARKLINE});u.VBarSparkline=A;l(r,O);k(r.prototype,{createFunction:function(){var a=new p("VARISPARKLINE",1,10);return a.evaluate=function(a){return{variance:K(a[0]),reference:K(a[1]),mini:K(a[2]),maxi:K(a[3]),mark:K(a[4]),tickUnit:K(a[5]),legend:a[6],colorPositive:a[7],colorNegative:a[8],vertical:a[9]}},a.acceptsReference=function(a){return 0<=a&&5>=a},a},paint:P.VARISPARKLINE});u.VariSparkline=r;l(n,O);k(n.prototype,{createFunction:function(){function a(a,b){return E(a)&&!Z(b)&&0<=b&&100>=b?g.PERCENTILE.evaluate(a,b/100):NaN}var b=new p("BOXPLOTSPARKLINE",1,10);return b.evaluate=function(b){var e=b[0],c=R(e),d=b[1],f=b[2],k=K(b[3]),h=K(b[4]),m=K(b[5]),p=K(b[6]),l=b[7],n=b[8];b=b[9];var q=a(e,2),t=a(e,9),r=a(e,10),v=a(e,90),x=a(e,91),y=a(e,98),w=a(e,25),z=a(e,75),u=a(e,50),e=E(e)?g.STDEVP.evaluate(e):NaN;return{points:c,boxPlotClass:d,showAverage:f,scaleStart:k,scaleEnd:h,acceptableStart:m,acceptableEnd:p,colorScheme:l,style:n,vertical:b,perc02:q,perc09:t,perc10:r,perc90:v,perc91:x,perc98:y,q1:w,q3:z,median:u,stDev:e}},b.acceptsReference=d,b},paint:P.BOXPLOTSPARKLINE});u.BoxPlotSparkline=n;l(w,O);k(w.prototype,{createFunction:function(){var a=new p("CASCADESPARKLINE",1,8);return a.evaluate=function(a){return{points:R(a[0]),pointIndex:K(a[1]),labels:R(a[2]),minimum:K(a[3]),maximum:K(a[4]),colorPositive:a[5],colorNegative:a[6],vertical:a[7]}},a.acceptsReference=J,a.acceptsArray=J,a},paint:P.CASCADESPARKLINE});u.CascadeSparkline=w;l(z,O);k(z.prototype,{createFunction:function(){var a=new p("PARETOSPARKLINE",1,8);return a.evaluate=function(a){return{points:R(a[0]),pointIndex:K(a[1]),colorRange:R(a[2]),target:K(a[3]),target2:K(a[4]),highlightPosition:K(a[5]),label:a[6],vertical:a[7]}},a.acceptsReference=J,a.acceptsArray=J,a},paint:P.PARETOSPARKLINE});u.ParetoSparkline=z;l(C,O);k(C.prototype,{createFunction:function(){var a=new p("MONTHSPARKLINE",3,7);return a.evaluate=function(a){var b,e,c,d,f,g,k,h,m,p=a[0],l=a[1],n=b=a[2];E(b)&&(n=Q(b,0));b=a[3];e=[];E(b)&&(e=Q(b,0));c=[];d=[];f=0;for(g=n.length;f<g;f++)(k=n[f])&&(h=k[0],h&&h.getFullYear()===p&&h.getMonth()+1===l&&(m=h.getDate()-1,c[m]=k[1],0<e.length&&(d[m]=e[f][0])));return 0<e.length?{year:p,month:l,values:c,colors:d}:{year:p,month:l,values:c,emptyColor:b,startColor:a[4],middleColor:a[5],endColor:a[6]}},a.acceptsReference=function(a){return 2===a||3===a},a},paint:P.MONTHSPARKLINE});u.MonthSparkline=C;l(c,O);k(c.prototype,{createFunction:function(){var a=new p("YEARSPARKLINE",2,6);return a.evaluate=function(a){var b,e,c,d,f,g,k,h,m,p;b=a[0];c=e=a[1];E(e)&&(c=Q(e,0));e=a[2];d=[];E(e)&&(d=Q(e,0));f=[];g=[];k=0;for(h=c.length;k<h;k++)if((m=c[k])&&(p=m[0])&&p.getFullYear()===b){var l=p;p=l.getFullYear();for(var n=l.getMonth(),q=l.getDate(),l=1;l<n+1;l++){var t;a:switch(l){case 2:t=0===p%4&&0!==p%100||0===p%400?29:28;break a;case 4:case 6:case 9:case 11:t=30;break a;default:t=31}q+=t}p=q-1;f[p]=m[1];0<d.length&&(g[p]=d[k][0])}return 0<d.length?{year:b,values:f,colors:g}:{year:b,values:f,emptyColor:e,startColor:a[3],middleColor:a[4],endColor:a[5]}},a.acceptsReference=function(a){return 1===a||2===a},a},paint:P.YEARSPARKLINE});u.YearSparkline=c;l(a,O);k(a.prototype,{createFunction:function(){return m("LINESPARKLINE",0)},paint:h});u.LineSparkline=a;l(B,O);k(B.prototype,{createFunction:function(){return m("COLUMNSPARKLINE",1)},paint:h});u.ColumnSparkline=B;l(y,O);k(y.prototype,{createFunction:function(){return m("WINLOSSSPARKLINE",2)},paint:h});u.WinlossSparkline=y;v={};p&&(t(new H),t(new I),t(new L),t(new F),t(new G),t(new q),t(new D),t(new A),t(new r),t(new n),t(new w),t(new z),t(new C),t(new c),t(new a),t(new B),t(new y));k(x.prototype,{addSparklineEx:function(a){var b=this.dT||(this.dT={});a&&(b[a.name()]=a)},getSparklineEx:function(a){var b,e=v[a];return e?e:(b=this.dT,b&&b[a])},removeSparklineEx:function(a){var b=this.dT;b&&(b[a]=void 0)}});x.$n("sparklineEx",{toJson:function(a){var b,e,c,d=this.dT,f=[];if(d){for(b in d)d.hasOwnProperty(b)&&(e=d[b],c=e.toJSON(),c&&c.typeName&&f.push(c));0<f.length&&(a.sparklineExs=f)}},fromJson:function(a){var b,e,c,d=a.sparklineExs;if(d)for(a=0;a<d.length;a++)b=d[a],(e=N.getTypeFromString(b.typeName))&&(c=new e,c.fromJSON(b),this.addSparklineEx(c))}});U.exports=u},function(U,u,l){u=l(116);l(117);l(118);U.exports=u},function(U,u,l){function d(a,c){return new D.Point(a,c)}function J(a,c,d,e){return new D.Rect(a,c,d,e)}function R(a,c){var d=a.options;return!d.isProtected||d.protectionOptions.allowEditObjects||c&&!c.locked()}function Q(a,c,d,e,b){var f,g,k,h,m=this.comments;if(a&&m)for(a=m.all(),g=0;g<a.length;g++)f=a[g],k=f.nT,f=f.oT,k===c&&f===d||k>=c&&k<c+e&&f>=d&&f<d+b&&m.remove(k,f);(f=m.get(c,d))&&(h=m.pT(f),h&&h.qT())}var K,O,H,I,L,F,G,q,D=l(85),A=D.Commands;u=D.Worksheet;var r=Math.max,n=Math.min,w=Math.floor,z=Math.atan2,C=Math.abs,c=D.GC$,m=c.extend,h=D.Ul.Nl,a=l(26),B=a.k,y=D.Vl,t=D.En,E=D.Ul,M=D.Events,p=E.nl,g=E.Rl,f=parseFloat,k=a.u,x=D.Bn,W=document;m(u.prototype,{RP:function(a){var c,d,e,b,f,g=this.nQ();if(!this.fI)for(c=this.am(),e=0;2>=e;e++)for(b=0;2>=b;b++)(d=c.Ft(e,b))&&0!==d.width&&0!==d.height&&(a&&!d.intersectRect(a)||(f=this.comments,g&&f&&g.fT(f)))}});D.CellRange.prototype.comment=function(a){var c=this.sheet,d=this.row,e=this.col;return 0===arguments.length?c.comments.get(d,e):(a instanceof L&&c.comments.Cz(d,e,a),this)};K=function(a,c){var d=c.comments;c.bind(M.TopRowChanged+".comment",function(){c.comments.cQ()});c.bind(M.LeftColumnChanged+".comment",function(){c.comments.cQ()});a.bind("mousedown.comment",function(){d.vQ()}).bind("mousewheel.comment",function(a){O(c,a)}).bind("mousemove.comment",function(a){O(c,a)})};O=function(a,c){var d=a.Vs();if(d=a.hitTest(c.pageX-d.left,c.pageY-d.top)){var e=-1,b=-1;(d&&0<=d.rowViewportIndex&&0<=d.colViewportIndex&&(e=d.row,b=d.col),!a.parent)||0>e||0>b||(d=a.comments.get(e,b),a.comments&&a.comments.tT(d))}};H=function(a,c){c.unbind(".comment")};u.$n("comments",{init:function(){var a=this;a.comments=new G(a);a.nQ=function(){var c=a.parent;if(c)return c.gT||(c.gT=new q(c.xv())),c.gT.kj=a,a.parent.gT}},dispose:function(){var a=this.comments;a&&a.dispose();H(this,c(this.Ws()))},setHost:function(a){a&&K(a,this)},onLayoutChanged:function(a){var c=this.comments,d=a.changeType,e=a.row,b=a.rowCount,f=a.col,g=a.colCount;"addRows"===d?c.rI(e,b):"deletingRows"===d?c.GR(e,b):"addColumns"===d?c.tI(f,g):"deletingColumns"===d?c.HR(f,g):3===a.sheetArea&&("clear"===d?4===(4&a.type)&&c.clear(new D.Range(e,f,b,g)):"addSpan"===d?Q.call(this,!0,e,f,b,g):"removeSpan"===d&&Q.call(this,!1,e,f))},paint:function(a){if(!this.comments.iT()){var c=this.nQ();c&&c.rT(this);this.RP(a.clipRect)}},paintCell:function(a){if(!a.isPrinting&&3===a.sheetArea){var c=a.ctx,d=a.sheetArea;a=a.cell;var e=this.nQ();e&&e.sT(c,d,a)}},toJson:function(a){a.comments=this.comments.toJSON()},fromJson:function(a,c){if(a){var d=c?a.commentManager:a.comments;d&&this.comments.fromJSON(d,c)}},lastNonNullRowAndCol:function(){var a,c,d,e,b=0,f=0;if((c=this.comments)&&(a=c.jT,a&&0<a.length))for(c=0,d=a.length;c<d;c++)(e=a[c])&&e.kT&&(e.lT>b&&(b=e.lT),e.mT>f&&(f=e.mT));return{lastNonNullRow:b,lastNonNullCol:f}},clearSelection:function(){var a=this.comments;a&&a.vQ()},processKeyDown:function(a){var c=this.comments&&this.comments.JU();c&&this.mm.LH(a.e)&&(c.commentState(2),a.r=!0)}});D.Workbook.$n("comments",{init:function(){A.uT(this.commandManager())}});M.CommentChanged="CommentChanged";I=function(){function a(a,c,e,b){1>=arguments.length?this.top=this.right=this.bottom=this.left=a||0:(this.top=a,this.right=c,this.bottom=e,this.left=b)}return a.prototype={constructor:a,clone:function(){return new a(this.top,this.right,this.bottom,this.left)},toString:function(){var a=this,c="";return["top","right","bottom","left"].forEach(function(e){c+=a[e]+"px "}),c.trim()}},a}();L=function(){function a(a){this.oT=this.nT=-1;this.text(a||"");this.zIndex(898)}function c(a){return function(){var b=this.kj;b&&(0>=b.Xq&&b.RP(),b.Wq(M.CommentChanged,{sheet:b,sheetName:b?b.Cj:"",comment:this,propertyName:a}))}}var f,e,b;f=[];return e=[["text",""],["location",d(9,-18)],["width",160,function(a){return 0<a}],["height",100,function(a){return 0<a}],["fontFamily","Arial"],["fontStyle","normal"],["fontSize","9pt",function(a){return/^\d+pt$/.test(a)&&0<parseInt(a)}],["fontWeight","normal"],["textDecoration",0],["foreColor","black"],["locked",!0],["lockText",!0],["horizontalAlign",0],["autoSize",!1],["dynamicSize",!0,function(a){return"boolean"==typeof a&&this.dynamicMove()}],["dynamicMove",!0,function(a){return a||this.dynamicSize(!1),!0}],["backColor","#FFFFE1"],["opacity",1,function(a){return 0<=a&&1>=a}],["borderWidth",1,function(a){return 1<=a}],["borderStyle","solid"],["borderColor","black"],["padding"],["showShadow",!1],["displayMode",2],["commentState",3],["zIndex",-1],["ignoreDefaultLocation",!1]],b={clone:function(){var b=this,e=new a;return f.forEach(function(a){var c=b[a]();b[a].isDefault(c)||e[a](c&&c.clone?c.clone():c)}),e.kj=b.kj,e.nT=b.nT,e.oT=b.oT,e},toJSON:function(){var a=this,b={rowIndex:a.nT,colIndex:a.oT};return f.forEach(function(e){var c=a[e]();a[e].isDefault(c)||(b[e]=c&&c.clone?c.clone():c)}),b},fromJSON:function(a){if(a){var b=this;f.forEach(function(e){var c=
- a[e];void 0!==c&&("location"===e?b.location(new D.Point(c.x,c.y),!1):"padding"===e?b.padding(new I(c.top,c.right,c.bottom,c.left),!1):b[e](c,!1))});void 0!==a.rowIndex&&(b.nT=a.rowIndex);void 0!==a.colIndex&&(b.oT=a.colIndex)}}},e.forEach(function(a){var e=a[0],d;d=a[0];var g=a[1];a=a[2];d=(f.push(d),D.Ul.Pl(d,g,c(d),a));b[e]=d}),m(a.prototype,b),a}();F=function(){function m(a,b){var e;e=a&&a.kj;this.aS=this.WE=1;this.kT=a;this.vT();this._zoomFactor=e._zoomFactor;this.wT=b;this.BF=b.xT;this.ad();e=this.yT(this.zT(),a.width(),a.height());this.AT=d(e.x,e.y);this.BT();this.CT()}function l(a,b,c,d,f){b=J(b,c,d,d);b.cursor=f;a.push(b)}function q(a,b,d,f){c(a.DT).css(b,d);c(a.ET).css(b,f)}D.Zn(m);return m.prototype={constructor:m,ad:function(){var a=this.kT.kj;this.FT="gc-spread-floatBlockCanvas";this.GT="gc-spread-host-container";this.HT="gc-spread-host";this.IT="gc-spread-lineCanvas";this.JT=h("div");c(this.JT).addClass("gc-spread-floatBlockCanvas-container").css(["position","overflow","box-sizing"],["absolute","hidden","content-box"]);this.DT=h("canvas");t.Kn(this.DT,null,a);c(this.DT).addClass(this.FT).css(["left","top","position"],[0,0,"absolute"]);this.ET=h("div");c(this.ET).addClass(this.GT).css(["position","box-sizing","overflow"],["absolute","content-box","hidden"]);this.qo=h("div");c(this.qo).addClass(this.HT+" gc-no-user-select").css("left top width height position word-wrap word-break white-space overflow box-sizing unselectable line-height".split(" "),[0,0,"100%","100%","absolute","break-word","normal","pre-wrap","hidden","content-box","on","normal"]);c(this.ET).append(this.qo);c(this.JT).append(this.DT).append(this.ET);this.KT=h("div");c(this.KT).addClass("gc-spread-lineCanvas-container").css(["position","overflow","pointer-events"],["absolute","hidden","none"]);this.LT=h("canvas");t.Kn(this.LT,null,a);c(this.LT).addClass(this.IT).css(["left","right","position"],[0,0,"absolute"]);c(this.KT).append(this.LT);this.MT=[];this.NT=7;this.kv=this.qS=!1;m.ao(this,"init",[this.DT,this.qo])},OT:function(){var a=this.kT.kj;this.PT||a&&(this.PT=a.nQ().PT);this.PT&&(this.PT.appendChild(this.KT),this.QT(),this.PT.appendChild(this.JT),this.RT(this.DT,".floatBlockCanvas"),this.RT(this.ET,".hostContainer"),this.ST()?this.TT():this.UT(),this.AT=this.zT(),this.VT())},WT:function(){this.JT&&this.KT&&this.PT&&(this.XT(this.DT,".floatBlockCanvas"),this.XT(this.ET,".hostContainer"),this.YT(),this.ZT(),this.$T(),c(this.JT).remove(),c(this.KT).remove())},_T:function(){return this.kT.width()*this._zoomFactor},aU:function(){return this.kT.height()*this._zoomFactor},zT:function(){var a=this.kT;return a!==this.wT.bU||3!==a.commentState()||a.ignoreDefaultLocation()?this.cU(a.location()):a._3=this.cU(d(9,-18))},cU:function(a){var b,e,c=this.kT,f=c&&c.kj,g=this._zoomFactor,k=d(0,0);return f&&(b=this.dU(f,c.nT,c.oT,this.WE,this.aS),null!==b.x&&void 0!==b.x&&null!==b.y&&void 0!==b.y&&b.width&&b.height&&(e=f.am(),k.x=b.x+b.width+a.x*g-e.Br,k.y=b.y+a.y*g-e.Cr)),k},dU:function(a,b,c,d,f){var e,k,h,m=J(0,0,0,0),p=a.am(),l=a&&a.getViewportTopRow(d),n=a&&a.getViewportLeftColumn(f),q=this._zoomFactor,t=g(a,n,c,!1),r=g(a,l,b,!0);return b>=l?m.y=r:m.y=-r,c>=n?m.x=t:m.x=-t,e=a.getSpan(b,c),void 0!==e&&null!==e?(m.height=g(a,b,b+e.rowCount,!0),m.width=g(a,c,c+e.colCount,!1)):(m.height=(a&&a.getRowHeight(b))*q,m.width=(a&&a.getColumnWidth(c))*q),m.x+=p.Br,m.y+=p.Cr,k=p.hs,h=p.fs,1===d?m.y+=h:2===d&&(m.y+=h+p.jr),1===f?m.x+=k:2===f&&(m.x+=k+p.er),m},eU:function(a){var b,e,c=this.kT,f=c&&c.kj,g=this._zoomFactor,k=d(0,0);return f&&(b=this.dU(f,c.nT,c.oT,this.WE,this.aS),null!==b.x&&void 0!==b.x&&null!==b.y&&void 0!==b.y&&b.width&&b.height&&(e=f.am(),k.x=(a.x-(b.x+b.width-e.Br))/g,k.y=(a.y-(b.y-e.Cr))/g)),k},fU:function(){this.AT=this.zT();this.BT();this.CT();this.VT()},gU:function(){this.AT=this.zT();this.CT()},hU:function(){var a,b=this.kT;b.dynamicMove()?b.dynamicSize()?this.iU():(this.jU(),this.CT()):(this.BT(),this.CT(),a=this.eU(this.AT===b._3?this.zT():this.AT),b.location(a))},qT:function(){this.AT=this.zT();this.VT()},jU:function(){var a=this.kT,b=this.kU();this.AT=b;a.location(this.eU(b),!1);this.VT()},kU:function(){var a,b,c,f,k=this.kT,k=k&&k.kj,h=this._zoomFactor;b=k&&k.getViewportLeftColumn(this.aS);var m=k&&k.getViewportTopRow(this.WE),p=0;for(a=0;a<this.aS;a++)p+=k.getViewportWidth(a);a=g(k,b,this.lU,!1);b<this.lU?p+=a:p-=a;b=k&&k.getColumnWidth(this.lU);b<this.mU&&(this.mU=b);p+=this.mU*h;for(a=b=0;a<this.aS;a++)b+=k.getViewportHeight(a);return c=g(k,m,this.nU,!0),m<this.nU?b+=c:b-=c,f=k&&k.getRowHeight(this.nU),f<this.oU&&(this.oU=f),b+=this.oU*h,d(p,b)},pU:function(){var a,b,c,d=this.kT;c=d&&d.kj;var f=g(c,this.lU,this.mT,!1);a=c&&c.getColumnWidth(this.lU);a<this.mU&&(this.mU=a);a=c&&c.getColumnWidth(this.mT);a<this.qU&&(this.qU=a);f=f-this.mU+this.qU;a=g(c,this.nU,this.lT,!0);b=c&&c.getRowHeight(this.nU);b<this.oU&&(this.oU=b);c=c&&c.getRowHeight(this.lT);c<this.rU&&(this.rU=c);a=a-this.oU+this.rU;d.width(f);d.height(a)},iU:function(){this.pU();this.jU()},BT:function(){var a,b,c,f,g,k,h,m=this.kT,m=m&&m.kj,p=this._zoomFactor;if(this.AT){a=m&&m.getViewportLeftColumn(this.aS);b=m&&m.getViewportTopRow(this.WE);0===this.aS?c=this.AT.x:1===this.aS?c=this.AT.x-m.getViewportWidth(0):2===this.aS&&(c=this.AT.x-(m.getViewportWidth(0)+m.getViewportWidth(1)));0===this.WE?f=this.AT.y:1===this.WE?f=this.AT.y-m.getViewportHeight(0):2===this.WE&&(f=this.AT.y-(m.getViewportHeight(0)+m.getViewportHeight(1)));c=d(c,f);for(f=g=0;a<m.getColumnCount();a++){if(k=(m&&m.getColumnWidth(a))*p,!(g+k<c.x)){this.lU=a;this.mU=(c.x-g)/p;break}g+=k}for(k=b;k<m.getRowCount();k++){if(h=(m&&m.getRowHeight(k))*p,!(f+h<c.y)){this.nU=k;this.oU=(c.y-f)/p;break}f+=h}}},CT:function(){var a,b,c,f,g,k,h,m=this.kT,m=m&&m.kj,p=this._zoomFactor;if(this.AT){a=m&&m.getViewportLeftColumn(this.aS);b=m&&m.getViewportTopRow(this.WE);0===this.aS?c=this.AT.x+this._T():1===this.aS?c=this.AT.x+this._T()-m.getViewportWidth(0):2===this.aS&&(c=this.AT.x+this._T()-(m.getViewportWidth(0)+m.getViewportWidth(1)));0===this.WE?f=this.AT.y+this.aU():1===this.WE?f=this.AT.y+this.aU()-m.getViewportHeight(0):2===this.WE&&(f=this.AT.y+this.aU()-(m.getViewportHeight(0)+m.getViewportHeight(1)));c=d(c,f);for(f=g=0;a<m.getColumnCount();a++){if(k=(m&&m.getColumnWidth(a))*p,!(g+k<c.x)){this.mT=a;this.qU=(c.x-g)/p;break}g+=k}for(k=b;k<m.getRowCount();k++){if(h=(m&&m.getRowHeight(k))*p,!(f+h<c.y)){this.lT=k;this.rU=(c.y-f)/p;break}f+=h}}},rI:function(a,b){var e=this.kT;a<=this.nU?e.dynamicMove()&&(this.nU+=b,this.lT+=b):a>this.nU&&a<=this.lT&&e.dynamicSize()&&(this.lT+=b);this.iU()},tI:function(a,b){var e=this.kT;a<=this.lU?e.dynamicMove()&&(this.lU+=b,this.mT+=b):a>this.lU&&a<=this.mT&&e.dynamicSize()&&(this.mT+=b);this.iU()},GR:function(a,b){var e=this.kT,c=a+b-1;a<this.nU?c<this.nU?e.dynamicMove()&&(this.nU-=b,this.lT-=b):c<this.lT&&e.dynamicMove()&&(e.dynamicSize()?this.lT-=b:this.lT-=this.nU-a+1,this.nU=a,this.oU=0):a<=this.lT&&(c<this.lT?e.dynamicSize()&&(this.lT-=b):e.dynamicSize()&&(this.lT=a,this.rU=0));this.iU()},HR:function(a,b){var e=this.kT,c=a+b-1;a<this.lU?c<this.lU?e.dynamicMove()&&(this.lU-=b,this.mT-=b):c<this.mT&&e.dynamicMove()&&(e.dynamicSize()?this.mT-=b:this.mT-=this.lU-a+1,this.lU=a,this.mU=0):a<=this.mT&&(c<this.mT?e.dynamicSize()&&(this.mT-=b):e.dynamicSize()&&(this.mT=a,this.qU=0));this.iU()},VT:function(){var a=this.kT,b=a.kj;this.sU()&&(this._zoomFactor!==b._zoomFactor?(this._zoomFactor=b._zoomFactor,this.AT=this.kU()):(this._zoomFactor=b._zoomFactor,this.AT!==a._3||1!==a.displayMode()&&2!==a.commentState()||(this.AT=this.zT())),this.vT(),this.tU(),this.uU(),this.vU(),this.wU(),E.Ml.chrome&&this.xU())},tU:function(){var a=this.kT.kj;a.parent&&a.parent.options.useTouchLayout?this.NT=11:this.NT=7},vT:function(){var a=this.kT,b=a.kj;this.WE=b.Er(a.nT);this.aS=b.Fr(a.oT)},uU:function(){var a=2===this.kT.commentState()?this.BF:this.qo;this.yU();this.zU(a);this.AU(a);this.BU(a);this.CU()},AU:function(a){var b=this.kT;a===this.qo&&(a.innerHTML=k.Ob(b.text()))},BU:function(a){var b,e,d,g,k,h,m,p,l,x,y,w,z,u,B,A,E=this.kT,C=2===E.commentState()||1===E.displayMode()?this.zT():this.AT,D=this._zoomFactor;C&&(b=this.kv?this.yT(C,E.width(),E.height()):this.yT(C),this.DU(b),e=b.width*D,d=b.height*D,g=b.x,k=b.y,h=g+e,m=k+d,p=this.NT,l=this.EU(this.WE,this.aS),g<l.x?(q(this,"left",g-l.x,g+p-l.x),e+=g-l.x,g=l.x):(q(this,"left",0,p),h>l.x+l.width&&(e+=l.x+l.width-1-h)),e=n(l.width-1,e),k<l.y?(q(this,"top",k-l.y,k+p-l.y),d+=k-l.y,k=l.y):(q(this,"top",0,p),m>l.y+l.height&&(d+=l.y+l.height-1-m)),d=n(l.height-1,d),c(this.JT).css({left:g,top:k,width:e,height:d}),x=e,y=d,t.Pn(this.DT,x,y),w=r(0,x-2*(p+E.borderWidth())),z=r(0,y-2*(p+E.borderWidth())),c(this.ET).css({width:w,height:z}),u=w,B=z,A=E.padding(),A&&(u-=Math.ceil(f(A.left)+f(A.right)),B-=Math.ceil(f(A.top)+f(A.bottom))),c(a).css({width:r(0,u),height:r(0,B)}))},DU:function(a){var b,c,e,f,g=this.kT,k=this.AT;a.x===k.x&&a.y===k.y&&a.width===g.width()&&a.height===g.height()||(b=this.eU(d(a.x,a.y)),c=a.width,e=a.height,f=g.location(),b.x===f.x&&b.y===f.y||g.location(b,!1),c!==g.width()&&g.width(c,!1),e!==g.height()&&g.height(e,!1),g.dynamicMove()&&(this.AT=d(a.x,a.y)))},CU:function(){var a=this.kT;R(a&&a.kj)?(this.RT(this.DT,".floatBlockCanvas"),this.RT(this.ET,".hostContainer"),this.QT(),this.UT(),this.TT()):(a.locked()?(this.XT(this.DT,".floatBlockCanvas"),this.FU(this.DT),this.XT(this.ET,".hostContainer"),this.FU(this.ET),this.DT.style.cursor="default",this.ET.style.cursor="default"):(this.RT(this.DT,".floatBlockCanvas"),this.RT(this.ET,".hostContainer")),a.lockText()?(this.YT(),this.FU(this.qo),this.$T(),this.FU(this.BF),(a.locked()||1!==a.commentState())&&a.commentState(3),this.qo.style.cursor=a.locked()?"default":"move"):(this.UT(),this.TT()),this.QT())},yU:function(){var a=this.kT,b=this.wT,c=a&&a.kj;switch(a.commentState()){case 1:b.GU(a);this.ST()&&this.HU();0<c.getSelections().length&&c.EJ();y.Zl(c);break;case 2:b.GU(a);this.ST()||this.IU();0<c.getSelections().length&&c.EJ();y.Zl(null);break;case 3:a===b.JU()&&(b.vQ(),0===c.getSelections().length&&c.GJ())}},zU:function(e){var b,d;b=this.kT;d=c(e);d.css("font-family",b.fontFamily()).css("font-style",b.fontStyle()).css("font-size",parseInt(b.fontSize())*this._zoomFactor+"pt").css("font-weight",b.fontWeight());d.css("text-decoration",D.To.So(b.textDecoration()));d.css("text-align",{0:"left",1:"center",2:"right",3:"general"}[b.horizontalAlign()]);b.padding()?d.css("padding",""+b.padding()):d.css("padding","0px");d.css("background-color",function(b,c,e){var d,f;return e?(d=a.pc,f=d.ec(b),f.a=c,d.bc(f)):b}(b.backColor(),b.opacity(),e===this.qo)).css("color",b.foreColor());c(this.ET).css("border-width",b.borderWidth()).css("border-style",b.borderStyle()).css("border-color",b.borderColor());e=this.wT.KU(b);c(this.KT).css("z-index",e);c(this.JT).css("z-index",e)},xU:function(){var a,b,d,g=this.kT.kj,k=c(this.ET);g&&k&&(a=g.Vs(),b=.5<=a.left-Math.floor(a.left)?.5:0,d=.5<=a.top-Math.floor(a.top)?.5:0,k.css("left",f(k.css("left"))+b),k.css("top",f(k.css("top"))+d))},vU:function(){var a,b,f,g,k,h,m;b=this.kT;var p=b.kj;b=this.dU(p,b.nT,b.oT,this.WE,this.aS);var p=p.am(),p=d(b.x+b.width-p.Br,b.y-p.Cr),l;b=c(this.JT).position();f=c(this.ET).position();g=c(this.ET);l=b.left+f.left>p.x?d(b.left+f.left,b.top+f.top):b.top+f.top+g.height()<p.y?d(b.left+f.left+g.width(),b.top+f.top+g.height()):d(b.left+f.left+g.width(),b.top+f.top);a=this.NT;b=C(p.x-l.x)+2*a;f=C(p.y-l.y)+2*a;g=n(p.x,l.x)-a;a=n(p.y,l.y)-a;k=g+b;h=a+f;m=this.EU(this.WE,this.aS);g<m.x&&(b-=m.x-g,g=m.x);k>m.x+m.width&&(b-=k-(m.x+m.width));b=n(m.width,b);a<m.y&&(f-=m.y-a,a=m.y);h>m.y+m.height&&(f-=h-(m.y+m.height));f=n(m.height,f);c(this.KT).css("left",g).css("top",a).css("width",b).css("height",f);t.Pn(this.LT,b,f);p.x-=g;p.y-=a;l.x-=g;l.y-=a;this.LU(p,l)},LU:function(a,b){var c,e;this.MU||(this.MU=this.LT.getContext("2d"));c=this.MU;e=this.kT.borderColor();c.strokeStyle=e;c.clearRect(0,0,t.Nn(this.LT),t.On(this.LT));c.beginPath();c.moveTo(a.x,a.y);c.lineTo(b.x,b.y);c.stroke();c.save();x.Dn(c,a.x,a.y);c.fillStyle=e;c.beginPath();e=z(b.y-a.y,b.x-a.x);c.rotate(e);c.moveTo(0,0);c.lineTo(7,-4);c.lineTo(7,4);c.lineTo(0,0);c.fill();x.Dn(c,-a.x,-a.y);c.closePath();c.restore()},wU:function(){var a,b,d,f,g,k,h,m=this.kT,p=m.kj;this.NU=this.kT.commentState();this.OU||(this.OU=this.DT.getContext("2d"));a=this.OU;b=t.Nn(this.DT);d=t.On(this.DT);f=c(this.ET).outerWidth();g=c(this.ET).outerHeight();k=this.NT;a.clearRect(0,0,b,d);this.kT.showShadow()&&(this.QU(a,b,d),h=2*(k+2),a.clearRect(k,k,b-h,d-h),this.PU(a,k,f,g));R(p,m)&&this.RU(a,k,b,d,f,g);a.restore()},PU:function(a,b,c,d){a.fillRect(b+2,d+b,c,2);a.fillRect(c+b,b+2,2,d)},QU:function(a,b,c){var e,d;switch(this.NU){case 1:a.beginPath();for(d=0;d<c;d++)for(e=0===d%2?1:3;e<b;)a.moveTo(e,d),a.lineTo(e+1,d+1),e+=4;a.stroke();a.closePath();break;case 2:a.beginPath();for(d=e=0;e<b+c;)a.moveTo(e+4,0),a.lineTo(0,d+4),e+=4,d+=4;a.stroke();a.closePath()}},RU:function(a,b,d,f,g,k){var e=this,h=e.MT;1!==e.NU&&2!==e.NU||(h.splice(0,h.length),l(h,0,0,b,"nw-resize"),l(h,d-b,0,b,"ne-resize"),l(h,0,f-b,b,"sw-resize"),l(h,d-b,f-b,b,"se-resize"),k>=3*b?(l(h,0,w(f/2-b/2),b,"w-resize"),l(h,d-b,w(f/2-b/2),b,"e-resize")):(h.push(null),h.push(null)),g>=3*b?(l(h,w(d/2-b/2),0,b,"n-resize"),l(h,w(d/2-b/2),f-b,b,"s-resize")):(h.push(null),h.push(null)),a.restore(),a.fillStyle="white",a.strokeStyle="#939393",a.linewidth=1,x.Dn(a,.5,.5),c.each(h,function(){if(e){var b=this.x,c=this.y,d=this.width,f=this.height;a.beginPath();a.fillRect(b,c,d-1,f-1);a.strokeRect(b,c,d-1,f-1);a.stroke();a.closePath()}}),x.Dn(a,-.5,-.5))},SU:function(){var a,b,d=this,f=d.EU(d.WE,d.aS);d.TU?c(d.TU).remove():d.TU=h("div");a=c(d.TU);b=c(d.ET);a.addClass("gc-spread-moveResizeContainer").css("position left top width height border".split(" "),["absolute",d.AT.x+d.NT-f.x,d.AT.y+d.NT-f.y,b.outerWidth()-2,b.outerHeight()-2,"gray solid thin"]);d.UU?c(d.UU).remove():d.UU=h("div");a=c(d.UU);a.bind("mousemove",function(a){d.BD(a)}).bind("mouseup",function(a){d.CD(a)}).css("position overflow top left width height background z-index".split(" "),["absolute","hidden",f.y,f.x,f.width,f.height,"rgba(255,255,255,0.01)",901]);a.append(d.TU);d.PT&&d.PT.appendChild(d.UU)},VU:function(a){var b,e,f,g,k,h,m,p=this.NT,l=this._zoomFactor,n=this.wT.WU;n.XU&&(b=this.YU(),e=a.pageX/l-n.x+b.x,f=a.pageY/l-n.y+b.y,0!==e||0!==f)&&(a=this.EU(this.WE,this.aS),b=c(this.TU),0>n.ZU?(k=n.$U.x+e,h=n.$U.y+f,g=this.cU(d(k,h)),b.css(["left","top"],[g.x+p-a.x,g.y+p-a.y])):(m=this._U(e,f,n.ZU),g=this.cU(d(m.x,m.y)),b.css(["left","top","width","height"],[g.x+p-a.x,g.y+p-a.y,m.width*l-2*p-2,m.height*l-2*p-2])))},IU:function(){var a,b=this.kT;this.ST()||(a=this.wT.xT,c(this.qo).remove(),this.YT(),c(a).remove(),c(this.ET).append(a),this.aV(a),this.BU(a),c(a).focus(),a.selectionStart=a.value.length,this.TT(),2!==b.commentState()&&b.commentState(2))},HU:function(){var a,b=this.kT,d=b.kj;this.ST()&&(a=this.wT.xT,c(a).remove(),this.$T(),c(this.ET).append(this.qo),this.aV(this.qo),this.UT(),m.ao(this,"detachEditor",this.qo),2===b.commentState()&&b.commentState(3),c(a).val()!==b.text()&&d.wu().execute({cmd:"changeComment",sheetName:d.name(),comment:b,oldValue:b.text(),newValue:c(a).val(),propertyName:"text"}))},bV:function(a){var b=this.kT.kj,c=-1;return 0===a||2===a?c=b.getViewportHeight(a):1===a&&(c=g(b,b.getViewportBottomRow(0)+1,(b&&b.getViewportTopRow(2))+1,!0)),c},cV:function(a){var b=this.kT.kj,c=-1;return 0===a||2===a?c=b.getViewportWidth(a):1===a&&(c=g(b,b.getViewportRightColumn(0)+1,(b&&b.getViewportLeftColumn(2))+1,!1)),c},EU:function(a,b){var c=this.kT.kj.am(),e=c.Ft(a,b);return 0===a&&0===b||0===a&&2===b||2===a&&0===b||2===a&&2===b?e=J(0,0,c.hs+c.er+c.js,c.fs+c.jr+c.gs):0===a&&1===b||2===a&&1===b?e=J(c.hs,0,c.er,c.fs+c.jr+c.gs):1===a&&0===b||1===a&&2===b?e=J(0,c.fs,c.hs+c.er+c.js,c.jr):1===a&&1===b&&(e=J(c.hs,c.fs,c.er,c.jr)),e},aV:function(a){var b=this.kT,e=c(a);a!==this.BF&&a!==this.qo||(a===this.BF?a.value=b.text():a.innerHTML=k.Ob(b.text()),e.css("font-family font-style font-size font-weight color background-color text-align text-decoration".split(" "),[b.fontFamily(),b.fontStyle(),b.fontSize(),b.fontWeight(),b.foreColor(),b.backColor(),b.horizontalAlign(),b.textDecoration()]),b.padding()?e.css("padding",""+b.padding()):e.css("padding","0px"))},sU:function(){return this.JT&&this.JT.parentNode},ST:function(){return this.sU()&&this.kT===this.wT.JU()&&0<c(this.ET).find("textArea").length},dV:function(){var a,b=this.kT.kj,c=null;return this.sU()&&(a=b.am(),c=J(this.AT.x+a.zr+a.Br,this.AT.y+a.Ar+a.Cr,this._T(),this.aU())),c},eV:function(){var a,b,c,d,f,g,k=this.kT,h=this._zoomFactor;return this.sU()&&(a=this.dV())?(g=(this.NT+k.borderWidth())*h,b=a.x+g,c=a.y+g,d=a.width-2*g,f=a.height-2*g,J(b,c,d,f)):null},fV:function(a){var b,c=this.kT,e=c.kj,d=a.target,f=this.wT.WU,g=d.style,k="default";f.XU?d.className!==this.HT&&d.className!==this.FT&&d.className!==this.IT&&"gc-spread-floatPanel"!==d.className||(k=0<=f.ZU?"crosshair":"move"):d.className===this.HT?!R(e)&&c.lockText()?c.locked()||(k="move"):k="text":d.className!==this.FT&&d.className!==this.GT||R(e,c)&&(b=this.gV(a),k=0<=b&&b<this.MT.length?this.MT[b].cursor:"move");g.cursor=k},hV:function(a){var b,c=this.kT,e=c&&c.kj;if(e.endEdit()&&(e.uQ&&e.uQ(),b={e:a,r:null},m.ao(this,"preProcessMouseDownEdit",b),!b.r))return this.wT.GU(c),c.commentState(2),this.CD(a),p(a)},iV:function(a){var b,c,e,f,g,k=this.kT,h=k&&k.kj,p=this._zoomFactor,l=this.wT,n=l.WU;h.endEdit()&&(h.uQ&&h.uQ(),b={e:a,r:null},m.ao(this,"preProcessMouseDownDragResize",b),b.r||(n.x=a.pageX/p,n.y=a.pageY/p,n.$U=J(k.location().x,k.location().y,k.width(),k.height()),n.ZU=this.gV(a),this.tC(),n.XU=!0,this.fV(a),l.GU(k),k.commentState(1),R(h,k)&&(this.eS={},this.eS.jV=h&&h.getViewportTopRow(this.WE),this.eS.kV=h&&h.getViewportLeftColumn(this.aS),this.SU(),0>n.ZU?this.qS=!0:this.kv=!0),c=h.mm,e=h.Vs(),f=d(a.pageX-e.left,a.pageY-e.top),g=h.hitTest(f.x,f.y),c.rG={KG:g.rowViewportIndex,MG:g.colViewportIndex,sG:g.hitTestType},c.$F=f,c.qG(),c.lV=!0,a.stopPropagation()))},yT:function(a,b,c){var e,d,f,k,h,m,p,l,n,q,t,r,x,y,v,w,z,u,B,A,E,D,F=this.kT,M=F&&F.kj,G=this.NT,H=this._zoomFactor,P=this.aS,I=this.WE,K=this.EU(I,P);return 1===arguments.length?(e=this._T(),d=this.aU()):3===arguments.length&&(e=b*H,d=c*H),f=a.x,k=a.y,h=M.am(),m=this.dU(M,0,0,I,P),p=a.x+(0-(m.x-h.Br))+e-G,l=a.y+(0-(m.y-h.Cr))+d-G,0===P?(n=0-G,t=h.width-h.Br):1===P?(x=g(M,M.getViewportRightColumn(0)+1,M&&M.getViewportLeftColumn(1),!1),n=K.x-G-x,y=this.cV(2),t=y):2===P&&(n=0-G,t=0),f<n&&(this.kv?e-=n-f:p+=n-f,f=n),1!==P&&2!==P||(t+=g(M,0,M.getColumnCount(),!1,p)),p>t&&(this.kv?e-=p-t:this.qS?f-=p-t:(v=this.wT.bU&&!F.ignoreDefaultLocation()?9:F.location().x,w=2*C(v)+(M&&M.getColumnWidth(F.oT))+F.width(),z=f-w,z>n?f=z:f<t?e-=p-t:(z=f-w,u=p-w,u>n?z<n?(e-=n-z,f=n):f=z:(z=f-(p-t),z<n?(e-=n-z,f=n):f=z)))),0===I?(q=0-G,r=h.height-h.Cr):1===I?(B=g(M,M.getViewportBottomRow(0)+1,M&&M.getViewportTopRow(1),!0),q=K.y-G-B,A=this.bV(2),r=A):2===I&&(q=0-G,r=0),k<q&&(this.kv?d-=q-k:l+=q-k,k=q),1!==I&&2!==I||(r+=g(M,0,M.getRowCount(),!0,l)),l>r&&(this.kv?d-=l-r:this.qS?k-=l-r:l>r&&(E=l-r,D=k-E,D<q?(d-=q-D,k=q):k=D)),J(f,k,e/H,d/H)},YU:function(){var a=this.kT.kj,b=this.eS,c=b.jV,b=b.kV,f=a&&a.getViewportTopRow(this.WE),k=a&&a.getViewportLeftColumn(this.aS),h=g(a,c,f,!0),a=g(a,b,k,!1);return d(b<k?a:-a,c<f?h:-h)},mV:function(a){var b,c,e,f,g,k,h,m,p,l,n=this.kT,q=n&&n.kj,t=this._zoomFactor,r=this.wT.WU,x=A.ChangeComment;r.XU&&(b=this.YU(),c=a.pageX/t-r.x+b.x,e=a.pageY/t-r.y+b.y,0!==c||0!==e)&&(0>r.ZU?(h=r.$U.x+c,m=r.$U.y+e,f=this.cU(d(h,m)),g=this.yT(f),k=this.eU(d(g.x,g.y)),k.x===n.location().x&&k.x===n.location().y||q.wu().execute({cmd:"changeComment",sheetName:q.name(),comment:n,oldValue:n.location().clone(),newValue:k,propertyName:"location"})):(n.autoSize(!1),p=this._U(c,e,r.ZU),f=this.cU(d(p.x,p.y)),g=this.yT(f,p.width,p.height),k=this.eU(d(g.x,g.y)),l=[],k.x===n.location().x&&k.y===n.location().y||l.push(new x(q,{cmd:"changeComment",sheetName:q.name(),comment:n,oldValue:n.location().clone(),newValue:k,propertyName:"location"})),g.width!==n.width()&&l.push(new x(q,{cmd:"changeComment",sheetName:q.name(),comment:n,oldValue:n.width(),newValue:g.width,propertyName:"width"})),g.height!==n.height()&&l.push(new x(q,{cmd:"changeComment",sheetName:q.name(),comment:n,oldValue:n.height(),newValue:g.height,propertyName:"height"})),0<l.length&&q.wu().execute({cmd:"changeCommentTransaction",sheetName:q.name(),commands:l})))},BD:function(a){var b,c,e,f,g,k,h=this.kT.kj;if(this.fV(a),!(h.getSelections()&&0<h.getSelections().length||(b={e:a,r:null},m.ao(this,"preProcessMouseMove",b),b.r)))return c=this.wT,e=a.target,f=h.mm,g=h.Vs(),k=d(a.pageX-g.left,a.pageY-g.top),e&&c.WU.XU&&(this.TU&&this.VU(a),1===this.WE&&(f.$F.y=k.y),1===this.aS&&(f.$F.x=k.x),f.NG()),p(a)},CD:function(a){var b,e,d,f,g=this.kT.kj;if(!(g.getSelections()&&0<g.getSelections().length||(b={e:a,r:null},m.ao(this,"preProcessMouseUp",b),b.r)))return e=a.target,d=this.wT,f=g.mm,f.lV=!1,f.RG(),e&&(this.mV(a),this.UU&&(c(this.UU).remove(),this.UU=null,this.qS=!1,this.kv=!1),this.uC(),d.WU.XU=!1,this.fV(a)),p(a)},gV:function(a){var b,e,d,f=this.MT;if(0<f.length&&(1===this.NU||2===this.NU))for(b=a.target,e=a.pageX-c(b).offset().left,a=a.pageY-c(b).offset().top,b=0;b<f.length;b++)if(d=f[b],d&&d.contains(e,a))return b;return-1},_U:function(a,b,c){var e,d,f=-1,g=-1;switch(c){case 0:g=f=0;break;case 1:f=2;g=0;break;case 2:f=0;g=2;break;case 3:g=f=2;break;case 4:f=0;g=1;break;case 5:f=2;g=1;break;case 6:f=1;g=0;break;case 7:f=1,g=2}return e=this.nV(a,f),d=this.oV(b,g),J(e.x,d.y,e.w,d.h)},nV:function(a,b){var c,e,d=2*this.NT,f=this.wT.WU,g=f.$U.width-d;return 0===b?g-=a:2===b&&(g+=a),c=f.$U.x,0<=g?0===b&&(c+=a):0===b?c+=f.$U.width-d:2===b&&(c+=g),e=f.$U.width,1!==b&&(e=C(g)+d),{x:c,w:e}},oV:function(a,b){var c,e,d=2*this.NT,f=this.wT.WU,g=f.$U.height-d;return 0===b?g-=a:2===b&&(g+=a),c=f.$U.y,0<=g?0===b&&(c+=a):0===b?c=f.$U.height-d:2===b&&(c+=g),e=f.$U.height,1!==b&&(e=C(g)+d),{y:c,h:e}},FU:function(a){var b,e,d=this.kT.kj;if(a){switch(b=void 0,a){case this.DT:b=".floatBlockCanvas";break;case this.ET:b=".hostContainer";break;case this.KT:b=".lineCanvasContainer";break;case this.qo:b=".host";break;case this.BF:b=".editor"}b&&(c(a).unbind("mousewheel"+b).unbind("DOMMouseScroll"+b),e=function(a){d.RF(a);p(a)},c(a).bind("mousewheel"+b,e).bind("DOMMouseScroll"+b,e))}},RT:function(a,b){var e,d=this,f=(e=d.kT)&&e&&e.kj;d.XT(a,b);e=function(a){f&&f.RF(a)};c(a).bind("mousedown"+b,function(a){d.iV(a)}).bind("mousemove"+b,function(a){d.BD(a)}).bind("mouseup"+b,function(a){d.CD(a)}).bind("mousewheel"+b,e).bind("DOMMouseScroll"+b,e)},XT:function(a,b){c(a).unbind(b)},QT:function(){var a,b,d=this,f=d.kT,g=f&&f.kj,k=d.wT;d.ZT();g&&(a=g.Vs(),b=function(a){g.RF(a)},c(d.LT).bind("mousedown.lineCanvas",function(b){var e,f,h=g.comments.hitTest(b.pageX-a.left,b.pageY-a.top);h?(e=h.comment,f=k.pT(e),"comment_editor"===h.area?f.hV(b):"comment_indicator"===h.area&&f.iV(b),c(f.JT).css("z-index",parseInt(c(d.KT).css("z-index")+1))):g.OF(b)}).bind("mousemove.lineCanvas",function(b){var c,e,f,h=g.comments.hitTest(b.pageX-a.left,b.pageY-a.top),m=d.LT.style;h?(c=h.comment,e=k.pT(c),e.BD(b),"comment_editor"===h.area?m.cursor="text":"comment_indicator"===h.area&&(m.cursor="move")):(g.PF(b),d.wT.tT(null),f=g.Ws(),f&&(m.cursor=f.style.cursor))}).bind("mouseup.lineCanvas",function(b){var c,e,d=g.comments.hitTest(b.pageX-a.left,b.pageY-a.top);d?(c=d.comment,e=k.pT(c),e.CD(b)):g.QF(b)}).bind("dblclick.lineCanvas",function(a){g.TF(a)}).bind("mousewheel.lineCanvas",b).bind("DOMMouseScroll.lineCanvas",b))},ZT:function(){c(this.LT).unbind(".lineCanvas")},UT:function(){var a,b=this,d=b.kT,f=d&&d.kj;2!==d.commentState()&&b.qo&&(b.YT(),a=function(a){f&&f.RF(a)},c(b.qo).bind("mousedown.host",function(a){b.hV(a)}).bind("mousemove.host",function(a){b.BD(a)}).bind("mouseup.host",function(a){b.CD(a)}).bind("mousewheel.host",a).bind("DOMMouseScroll.host",a))},YT:function(){2!==this.kT.commentState()&&this.qo&&c(this.qo).unbind(".host")},TT:function(){var a,b=this,d=b.kT,f=d&&d.kj,g=b.BF;2===d.commentState()&&g&&(this.$T(),a=function(a){f&&f.RF(a)},c(g).bind("mousedown.editor",function(a){a.stopPropagation()}).bind("mousemove.editor",function(a){a.stopPropagation()}).bind("mouseup.editor",function(a){a.stopPropagation()}).bind("mousewheel.editor",a).bind("DOMMouseScroll.editor",a).bind("input.editor",function(){d.autoSize()&&b.pV()}).bind("keydown.editor",function(a){27!==a.keyCode&&9!==a.keyCode||(d.commentState(1),p(a),y.Zl(f))}))},pV:function(){var a,b,d,f,g,h,m,p,l,n=this.kT,q=n&&n.kj;if(2===n.commentState()?(a=this.BF,b=a.value.split("\n")):(a=this.qo,b=k.Pb(a.innerHTML).split("\n")),d=c(a).height(),f=c(a).width(),g=0,h=a.style,m="",h.font?(g=q.fp(h.font),m+=h.font):(n.fontStyle()&&(m+=" "+n.fontStyle()),n.fontWeight()&&(m+=" "+n.fontWeight()),n.fontSize()&&(m+=" "+n.fontSize()),n.fontFamily()&&(m+=" "+n.fontFamily()),g=q.fp(m)),p=g,b&&0<b.length){g=r(b.length*g,p);for(p=h=0;p<b.length;p++)l=q.rt(b[p],m),h<l&&(h=l);b=r(h,5)}else g=p,b=5;c(a).css("height",g).css("width",b);2===n.commentState()&&n.text(a.value);this.qV=!0;a=g-d;0!==a&&n.height(n.height()+a);f=b-f;0!==f&&n.width(n.width()+f);this.qV=!1},$T:function(){var a=this.BF;2===this.kT.commentState()&&a&&c(a).unbind(".editor")},tC:function(){var a=this,b=a.wT.WU;b.XU||(c(W).bind("mousemove.commentDocument",function(b){a.BD(b)}).bind("mouseup.commentDocument",function(b){a.CD(b)}),b.XU=!0)},uC:function(){var a=this.wT.WU;a.XU&&(a.XU=!1,c(W).unbind(".commentDocument"))}},m}();G=function(){function a(a){this.kj=a;this.WU={XU:!1,x:0,y:0,$U:null,ZU:-1};this.rV=this.bU=this.xT=null;this.sV=[];this.jT=[];this.tV();this.uV()}return a.prototype={constructor:a,dispose:function(){var a=this;a.all().forEach(function(c){a.hT(c)});a.Oia()},add:function(a,c,e){var b,d,f=this.kj,g=f.getSpan(a,c);return!g||g.row===a&&g.col===c?(b=this.get(a,c),d="string"==typeof e?new L(e):e,this.Cz(a,c,d),f.Bq("comment",a,c,3,b,d),d):null},Cz:function(a,c,e,b){var d,f=this.kj,g=this.sV;this.vV(a,c);e&&(e.nT=a,e.oT=c,e.kj=f,b||g.forEach(function(a){a.zIndex(a.zIndex()-1)}),g.push(e),d=f.Mp(),d.setValueForKey(a,c,"comment",e),f.$p())},get:function(a,c){return this.kj.Mp().getValueForKey(a,c,"comment")||null},remove:function(a,c){var e=this.vV(a,c),b=this.kj;e&&(b.Bq("comment",a,c,3,e,void 0),b.$p())},vV:function(a,c){var e,b=this.kj,d=this.get(a,c);return d&&(this.hT(d),B.Fb(this.sV,d),B.Fb(this.jT,this.pT(d)),e=b.Mp(),e.setValueForKey(a,c,"comment",void 0)),d},clear:function(a){var c,e,b,d=this.kj,f=this.sV;d.suspendPaint();for(c=f.length-1;0<=c;c--)e=f[c],b=e.nT,e=e.oT,(!a||b>=a.row&&b<a.row+a.rowCount&&e>=a.col&&e<a.col+a.colCount)&&this.remove(b,e);d.resumePaint()},all:function(){return this.sV.concat()},getOuterContainer:function(a){return(a=this.pT(a))?a.JT:null},tV:function(){var a=h("textArea");c(a).addClass("gc-comment-editor").css("left",0).css("top",0).css("position","absolute").css("margin",0).css("padding",0).css("word-wrap","break-word").css("word-break","normal").css("overflow","hidden").css("resize","none").css("outline","none").css("border","0px").css("box-sizing","content-box").css("line-height","normal").attr("autocomplete","off").attr("gcUIElement","gcEditingInput");this.xT=a},uV:function(){var a=this,c=a.kj;c&&(c.Fu(M.ColumnChanged+".comment",function(c,b){var e=b.propertyName;"width"!==e&&"isVisible"!==e||a.wV()}),c.Fu(M.RowChanged+".comment",function(c,b){var e=b.propertyName;"height"!==e&&"isVisible"!==e||a.wV()}),c.Fu(M.ColumnWidthChanged+".comment",function(){a.wV()}),c.Fu(M.RowHeightChanged+".comment",function(){a.wV()}),c.Fu(M.CommentChanged+".comment",function(c,b){var e,d,f,g;b&&(e=b.propertyName,d=b.comment,f=a.pT(d),f&&(g="autoSize text fontFamily fontStyle fontSize fontWeight padding".split(" "),"location"===e?f.fU():"width"===e||"height"===e?f.gU():0<=g.indexOf(e)&&d.autoSize()&&!f.qV&&f.pV()))}))},Oia:function(){var a=this.kj;a&&a.Gu(".comment")},pT:function(a){var c,e,b=this.jT;if(a)for(c=0;c<b.length;c++)if(e=b[c],e.kT===a)return e;return null},iT:function(){return 0===this.sV.length},xV:function(){var a,c,e,b=this.sV;if(0<b.length){a=b[0].zIndex();for(c=1;c<b.length;c++)e=b[c],a<e.zIndex()&&(a=e.zIndex());return a}return 0},rI:function(a,c){var e,b,d=this.sV,f=this.jT;for(e=0;e<d.length;e++)b=d[e],a<=b.nT&&(b.nT+=c);for(e=0;e<f.length;e++)b=f[e],b.sU()&&b.rI(a,c)},tI:function(a,c){var e,b,d=this.sV,f=this.jT;for(e=0;e<d.length;e++)b=d[e],a<=b.oT&&(b.oT+=c);for(e=0;e<f.length;e++)b=f[e],b.sU()&&b.tI(a,c)},GR:function(a,c){var e,b,d,f=this.sV,g=this.jT;for(e=f.length-1;0<=e;e--)b=f[e],d=b.nT,b=b.oT,d>=a&&d<a+c&&this.remove(d,b);for(e=0;e<f.length;e++)b=f[e],a<b.nT&&(b.nT-=c);for(e=0;e<g.length;e++)d=g[e],d.sU()&&d.GR(a,c)},HR:function(a,c){var e,b,d,f=this.sV,g=this.jT;for(e=f.length-1;0<=e;e--)b=f[e],d=b.nT,b=b.oT,b>=a&&b<a+c&&this.remove(d,b);for(e=0;e<f.length;e++)b=f[e],a<b.oT&&(b.oT-=c);for(e=0;e<g.length;e++)d=g[e],d.sU()&&d.HR(a,c)},JU:function(){return this.rV},GU:function(a){a&&a!==this.rV&&(this.vQ(),this.rV=a)},vQ:function(){var a,c=this.rV;c&&(a=this.pT(c),!a||a.qS||a.kv||(a.ST()&&a.HU(),c.commentState(3),this.rV=null))},Ao:function(a){var c=this.pT(a),e=!1;c||(e=!0,c=new F(a,this),this.jT.push(c));c.OT();e&&a.autoSize()&&!c.qV&&c.pV()},tT:function(a){var c=this,e=c.rV;if(e)if(1===e.displayMode()){if(2===e.commentState())return}else if(2===e.commentState()||1===e.commentState())return;a!==c.bU&&(c.bU&&c.hT(c.bU),a&&2===a.displayMode()?c.WU.XU||a.yV||(c.bU=a,a.yV=setTimeout(function(){c.Ao(a)},200)):c.bU=null)},hT:function(a){var c=this.pT(a);c&&c.sU()&&(c.WT(),a===this.rV&&this.kj.GJ());clearTimeout(a.yV);delete a.yV},zV:function(){c(this.kj.nQ().PT).show()},AV:function(){c(this.kj.nQ().PT).hide()},BV:function(a,c,e){var b;a=this.pT(a);return!(!a||!(b=a.dV()))&&b.contains(c,e)},CV:function(a,c,e){var b;a=this.pT(a);return!(!a||!(b=a.eV()))&&b.contains(c,e)},hitTest:function(a,c){var e,b,d=null;for(e=0;e<this.sV.length;e++)b=this.sV[e],R(this.kj,b)&&this.BV(b,a,c)&&(d?b.zIndex()>d.zIndex()&&(d=b):d=b);return d?{x:a,y:c,comment:d,area:this.CV(d,a,c)?"comment_editor":"comment_indicator"}:null},KU:function(a){var c=this.xV();return a===this.bU?c+2:a===this.rV?c+1:a.zIndex()},wV:function(){this.jT.forEach(function(a){a.hU()})},cQ:function(){this.jT.forEach(function(a){a.qT()})},fromJSON:function(a,c){var e,b,d;if(a&&0!==a.length)for(e=0;e<a.length;e++)b=a[e],d=new L,d.fromJSON(b,c),3!==d.commentState()&&(this.rV=d),this.kj.comments.Cz(d.nT,d.oT,d,!0)},toJSON:function(){var a,c,e=this.sV;if(e&&0!==e.length){a=[];for(c=0;c<e.length;c++)a.push(e[c].toJSON());return 0===a.length?void 0:a}}},a}();q=function(){function a(a){this.kj=null;this.oQ=!0;this.PT=this.DV();a.appendChild(this.PT)}return a.prototype={constructor:a,DV:function(){var a=h("div");return c(a).addClass("gc-comment-layoutPanel gc-no-user-select").css("position left top height width overflow z-index unselectable".split(" "),["absolute",0,0,0,0,"visible",701,"on"]),a},rT:function(a){var d,e,b;a.comments.iT()||(d=a.am(),c(this.PT).css("left",d.x+d.Br).css("top",d.y+d.Cr),this.kj!==a&&(this.kj&&(e=this.kj.comments,e&&(b=e.JU(),b&&2===b.commentState()&&b.commentState(1))),this.kj=a))},sT:function(a,c,e){var b,d=e.row,f=e.col,g=e.x,k=e.y,h=e.width;e=e.height;3===c&&this.kj&&(b=this.kj.comments.get(d,f),b&&a&&0<h&&0<e&&(a.save(),a.rect(g,k,h,e),a.clip(),a.fillStyle="red",a.beginPath(),a.moveTo(g+h-6,k),a.lineTo(g+h,k),a.lineTo(g+h,k+6),a.lineTo(g+h-6,k),a.fill(),a.restore()))},fT:function(a){var c,e,b,d,f,g;if(!this.oQ)return void a.AV();a.zV();c=this.kj;e=a.all();for(b=0;b<e.length;b++)d=e[b],f=a.pT(d),this.EV(a,d)?(1===d.displayMode()&&d===a.bU&&(a.bU=null),f&&f.sU()?f.VT():a.Ao(d)):f&&f.sU()&&a.hT(d);(e=a.JU())&&(g=a.pT(e),g&&g.sU()&&0<c.getSelections().length&&c.Uq.clear())},EV:function(a,c){var e=a.kj;if(e&&e&&e.getColumnWidth(c.oT)&&e&&e.getRowHeight(c.nT))switch(c.displayMode()){case 1:return!0;case 2:if(3!==c.commentState())return a&&c!==a.bU&&(a.bU=c),!0;if(c===a.bU)return!0}return!1}},a}();U.exports={CommentState:{active:1,edit:2,normal:3},DisplayMode:{alwaysShown:1,hoverShown:2},Padding:I,Comment:L,GV:F}},function(U,u,l){function d(d,l,u){var q,n=d.comments.JU();return n?(q=n.location(),d.wu().execute({cmd:"changeComment",sheetName:d.name(),comment:n,oldValue:q.clone(),newValue:new O.Point(q.x+l,q.y+u),propertyName:"location"})):!1}function J(d,l){var q,r,n;if((l?d.canUndo():d.canExecute())&&(q=d.KV)){for(r=0;r<q.length;r++)(n=q[r])&&(l?n.undo():n.execute());return!0}return!1}var R,Q,K,O=l(85),H=O.Commands,I=O.GC$,L=O.Events;l=l(116);var F=H.ActionBase,G=H.h4;H.deleteCommentByKey={canUndo:!1,execute:function(d,l){var q=H.bT(d,l),r=q.comments.JU();return!!r&&q.wu().execute({cmd:"deleteComment",sheetName:q.name(),comment:r})}};H.deactivateComment={canUndo:!1,execute:function(d,l){var q=H.bT(d,l),r=q.comments;return!!r.JU()&&(r.vQ(),q.GJ(),q.repaint(),!0)}};H.moveCommentUp={canUndo:!1,execute:function(l,u){var q=H.bT(l,u);return d(q,0,-1)}};H.moveCommentDown={canUndo:!1,execute:function(l,u){var q=H.bT(l,u);return d(q,0,1)}};H.moveCommentLeft={canUndo:!1,execute:function(l,u){var q=H.bT(l,u);return d(q,-1,0)}};H.moveCommentRight={canUndo:!1,execute:function(l,u){var q=H.bT(l,u);return d(q,1,0)}};H.deleteComment={canUndo:!0,execute:function(d,l,u){return G(d,R,l,u)}};H.changeComment={canUndo:!0,execute:function(d,l,u){return G(d,Q,l,u)}};H.changeCommentTransaction={canUndo:!0,execute:function(d,l,u){return G(d,K,l,u)}};u=function(d){function l(){d.call(this)}I.inherit(l,d);return I.extend(l.prototype,{init:function(d,l){this.kj=d;this.VQ=l},canUndo:function(){return!!this.VQ.HV},saveState:function(){this.VQ.HV=this.VQ.comment},clearState:function(){this.VQ.HV=void 0}}),l}(F);R=function(d){function l(l,q){d.call(this);this.init(l,q)}I.inherit(l,d);return I.extend(l.prototype,{execute:function(){var d,l,n,q;return!!this.canExecute()&&(this.saveState(),d=this.kj,this.Lz(d,!0),l=this.VQ.comment,n=d.comments,q={sheet:d,sheetName:d.name(),comment:l,cancel:!1},d.Wq(L.CommentRemoving,q),q&&!0===q.cancel?this.clearState():(d.comments.remove(l.nT,l.oT),n.rV=null,d.GJ(),d.Wq(L.CommentRemoved,{sheet:d,sheetName:d.name(),comment:l})),this.Mz(d,!0),!0)},undo:function(){var d,l=this.VQ.HV;return!!this.canUndo()&&(d=this.kj,this.Lz(d,!0),d.comments.Cz(l.nT,l.oT,l),d.EJ(),this.Mz(d,!0),!0)}}),l}(u);Q=function(d){function l(l,q){d.call(this);this.init(l,q)}I.inherit(l,d);return I.extend(l.prototype,{execute:function(){var d,l=this.VQ,n=l.comment;return!(!this.canExecute()||!n)&&(this.saveState(),d=this.kj,this.Lz(d,!0),n[l.propertyName](l.newValue),this.Mz(d,!0),!0)},undo:function(){var d,l=this.VQ;return!!this.canUndo()&&(d=this.kj,this.Lz(d,!0),l.comment[l.propertyName](l.oldValue),this.Mz(d,!0),!0)}}),l}(u);H.ChangeComment=Q;K=function(d){function l(l,q){var n,r;if(d.call(this),this.KV=[],this.kj=l,this.VQ=q,n=q.commands)for(r=0;r<n.length;r++)this.add(n[r])}I.inherit(l,d);return I.extend(l.prototype,{execute:function(){return J(this,!1)},undo:function(){return J(this,!0)},add:function(d){this.KV.push(d)}}),l}(F);H.uT=function(d){d.register("deleteCommentByKey",H.deleteCommentByKey,46,!1,!1,!1,!1);d.register("deactivateComment",H.deactivateComment,27,!1,!1,!1,!1);d.register("moveCommentUp",H.moveCommentUp,38,!1,!1,!1,!1);d.register("moveCommentDown",H.moveCommentDown,40,!1,!1,!1,!1);d.register("moveCommentLeft",H.moveCommentLeft,37,!1,!1,!1,!1);d.register("moveCommentRight",H.moveCommentRight,39,!1,!1,!1,!1);d.register("deleteComment",H.deleteComment);d.register("changeComment",H.changeComment);d.register("changeCommentTransaction",H.changeCommentTransaction)};I.extend(l,{CommentDeleteUndoAction:R,CommentPropertyUndoAction:Q});U.exports=l},function(U,u,l){var d=l(109);d&&!function(){function u(d,l,u){var q,n=this,w=n.kT=l.kT;n.yM=new F(n);n.DQ=new G(d,"Comment"+w.nT+w.oT,n.yM,2,200);n.BQ=u;n.CQ=new R(d,l);q=n.CQ;d=n.DQ;d._M=function(){return 3!==n.kT.commentState()};d.bN=function(){return!0};d.dN=function(d){return q.jQ(d)};d.eN=function(d){return q.lQ(d)};d.fN=function(d){return q.pQ(d)};d.hN=function(d){return q.qQ(d)};d.iN=function(d){return q.sQ(d)}}function R(l,u){this.NS=l;this.LV=u;this.kT=u.kT;this.kj=this.kT.kj;this.hQ=new d.TP(this.kj)}function Q(d,l,u){var q,n=this,w=n.kT=l.kT;n.yM=new F(n);n.DQ=new G(d,"Comment"+w.nT+w.oT,n.yM,2,200);n.BQ=u;n.CQ=new K(d,l);q=n.CQ;d=n.DQ;d._M=function(){return 3!==n.kT.commentState()};d.bN=function(){return!0};d.dN=function(d){return q.jQ(d)};d.eN=function(d){return q.lQ(d)};d.fN=function(d){return q.pQ(d)};d.hN=function(d){return q.qQ(d)};d.iN=function(d){return q.sQ(d)}}function K(d,l){R.call(this,d,l)}var O=l(85),H=O.GC$,I=H.extend,L=O.Ul.nl,F=d.jR,G=d.kR;I(u.prototype,{EQ:function(){var d=this.BQ;d&&d.xN(this.DQ,!0)},FQ:function(){var d=this.BQ;d&&d.xN(this.DQ,!1)},GQ:function(d){return this.yM.GQ(d)},HQ:function(d){return this.yM.HQ(d)},IQ:function(d){return this.yM.IQ(d)}});I(R.prototype,{OS:function(l){var q;l=new d.oP(l.X,l.Y);var u=H(this.NS).offset();return u&&(q=document.body,l.X+=u.left+q.clientLeft||0,l.Y+=u.top+q.clientTop||0),l},jQ:function(d){d.DO=35},lQ:function(d){var l=this.OS(d.rN);this.LV.iV({target:d.GP,isTouch:!0,button:0,pageX:l.X,pageY:l.Y,stopPropagation:function(){}});this.hQ.OP()},pQ:function(d){var l,q,r=d.dP.rO,n=this.kj,w=n.parent;1!==r&&w&&w.options.allowUserZoom?(n.mm.lV=!1,l=this.LV,H(l.TU).remove(),this.hQ.PP(r)):(q=this.OS(d.rN),this.LV.BD({target:d.GP,isTouch:!0,button:0,pageX:q.X,pageY:q.Y,stopPropagation:function(){}}))},qQ:function(d){var l,q=d.dP.rO,r=this.kj.parent;1!==q&&r&&r.options.allowuserZoom?this.hQ.SP(q):(l=this.OS(d.rN),this.LV.CD({target:d.GP,isTouch:!0,button:0,pageX:l.X,pageY:l.Y,stopPropagation:function(){}}))},sQ:function(){var d=this.kT,l=this.kj;try{l.suspendPaint(),3===d.commentState()?d.commentState(1):1===d.commentState()&&d.commentState(2)}finally{l.resumePaint()}}});I(Q.prototype,{EQ:function(){var d=this.BQ;d&&d.xN(this.DQ,!0)},FQ:function(){var d=this.BQ;d&&d.xN(this.DQ,!1)},GQ:function(d){return this.yM.GQ(d)},HQ:function(d){return this.yM.HQ(d)},IQ:function(d){return this.yM.IQ(d)}});H.inherit(K,R);K.prototype.lQ=function(d){var l=this.OS(d.rN);this.LV.hV({target:d.GP,isTouch:!0,button:0,pageX:l.X,pageY:l.Y,stopPropagation:function(){}});this.hQ.OP()};l(116).GV.$n("touch",{init:function(d){var l=this.kT.kj.parent.BQ;this.wR=new u(d[0],this,l);this.wR.EQ();this.MV=new Q(d[1],this,l);this.MV.EQ()},detachEditor:function(d){this.MV=new Q(d,this,this.kT.kj.parent.BQ);this.MV.EQ()},preProcessMouseDownEdit:function(d){var l=d.e,q=this.MV;q&&!l.isTouch&&q.GQ(l)&&(L(l),d.r=!0)},preProcessMouseDownDragResize:function(d){var l=d.e,q=this.wR;q&&!l.isTouch&&q.GQ(l)&&(L(l),d.r=!0)},preProcessMouseMove:function(d){var l=d.e,q=l.isTouch,r=this.wR,n=this.MV;r&&!q&&r.IQ(l)&&(L(l),d.r=!0);n&&!q&&n.IQ(l)&&(L(l),d.r=!0)},preProcessMouseUp:function(d){var l=d.e,q=l.isTouch,r=this.wR,n=this.MV;r&&!q&&r.HQ(l)&&(L(l),d.r=!0);n&&!q&&n.HQ(l)&&(L(l),d.r=!0)}})}()},function(U,u,l){u=l(120);u.SR={};u.SR.en=l(121);U.exports=u},function(U,u,l){function d(a){var b,c,e=0,d=0,f=a.length;0<f&&(e=a[0].row,d=a[0].col);for(b=1;b<f;b++)c=a[b],e>c.row&&(e=c.row),d>c.col&&(d=c.col);return{r:e,c:d}}function J(a,b,c){switch(a){case 0:return b===c;case 1:return b!==c;case 2:return b>c;case 3:return b>=c;case 4:return b<c;case 5:return b<=c;default:return!1}}var R,Q,K,O,H,I,L,F,G,q,D,A,r,n,w={},z=l(26),C=l(85),c=l(33),m=C.GC$,h=Math.min,a=Math.max,B=Math.abs,y=Math.floor,t=Math.ceil,E=c.Convert,M=E.Na,p=E.Pa,g=E.Th;u=z.u;var f=u.Db,k=u.kb,x=u.jb,W=u.Bb,P=z.j.Fa,V=z.q,Z=z.F,e=C.Ul,b=C.X3,v=C.Style,N=z.pc,S=N.bc,X=C.kf,Y=C.Range,ka=z.l,ja=z.k,oa=ja.Fb,ma=ja.Cb,ea=ja.ac,ga=c.Functions,T=c.pf,fa=C.Rm,Fa=function(a){var b;if(a instanceof c.Expression)b=a;else if(a instanceof Y){b=0>a.row?c.BAND_INDEX_CONST:a.row;var e=0>a.col?c.BAND_INDEX_CONST:a.col;b=new c.uf(null,null,b,e,b+a.rowCount-1,e+a.colCount-1)}else{if(!M(a)||isNaN(a=p(a)))throw z.C(w.SR)().Exp_NotSupport;b=new c.Expression(2);b.value=a}return b};R=function(a,b,c,e){var d=function(d,f){var g,k;return this.hasOwnProperty("_ps")||(this._ps={}),g=this._ps,0===arguments.length?void 0!==g[a]?e?e.call(this,g[a]):g[a]:b:(g[a]!==d&&(k=void 0!==g[a]?g[a]:b,g[a]=d,!1!==f&&c&&c.call(this,d,k)),this)};return d.isDefault=function(a){return a===b},d};Q=function(a,b){var c=this;return b||(b={}),a||(a=c),m.each(a,function(a,e){var d,f=c[e];P(f)||(d=f.call(c),"iconCriteria"===e?b[e]=d:ka.Mia(d)?b[e]=ka.Daa(d):d&&d.toJSON?b[e]=d.toJSON():P(d)||f.isDefault(d)||(b[e]=d))}),b};K=function(a,b,c){if(b){var e=this,d;a||(a=e);m.each(a,function(a,f){var g,k,h;if(d=b[f],!P(d))if("ranges"===f){g=[];for(k=0;k<d.length;k++)h=d[k],g.push(X(h.row,h.col,h.rowCount,h.colCount));e.ranges(g,!1)}else if("style"===f)e.style(new v,!1),e.style().fromJSON(d,c);else if("iconCriteria"===f)for(g=d.length,k=0;k<g;k++)h=d[k],e.NV[k]=new A(h.isGreaterThanOrEqualTo,h.iconValueType,h.iconValue);else"item1"===f||"item2"===f?(e[f](L(),!1),e[f]().fromJSON(d)):"expected"===f?"string"===m.getType(d)&&5===b.conType?"/OADate("===d.substr(0,8)?e[f](ka.Lia(d),!1):e[f](new Date(d)):e[f](d,!1):"condition"===f?(g=new I,g.fromJSON(d),e.condition(g,!1)):"string"===m.getType(d)&&"/OADate("===d.substr(0,8)?e[f](ka.Lia(d),!1):e[f](d,!1)})}};C.Worksheet.$n("conditionalFormat",{init:function(){this.conditionalFormats=new n(this)},dispose:function(a){!1!==a&&(a=this.conditionalFormats)&&a.OV()},onLayoutChanged:function(a){var b=a.changeType,c=a.row,e=a.rowCount,d=a.col,f=a.colCount;a=a.sheetArea;var g=this.conditionalFormats;"addRows"===b?g.rI(c,e):"deleteRows"===b?g.GR(c,e):"addColumns"===b?g.tI(d,f):"deleteColumns"===b?g.HR(d,f):"clear"===b?g.Nm():"setColumnCount"!==b&&"setRowCount"!==b||3!==a&&1!==a||g.QV()},toJson:function(a){var b=this.conditionalFormats;b&&(a.conditionalFormats=b.toJSON())},fromJson:function(a,b){a&&a.conditionalFormats&&this.conditionalFormats.fromJSON(a.conditionalFormats,b)}});w.GeneralComparisonOperators={equalsTo:0,notEqualsTo:1,greaterThan:2,greaterThanOrEqualsTo:3,lessThan:4,lessThanOrEqualsTo:5};w.LogicalOperators={or:0,and:1};w.ComparisonOperators={equalsTo:0,notEqualsTo:1,greaterThan:2,greaterThanOrEqualsTo:3,lessThan:4,lessThanOrEqualsTo:5,between:6,notBetween:7};w.TextComparisonOperators={contains:0,doesNotContain:1,beginsWith:2,endsWith:3};w.TextCompareType={equalsTo:0,notEqualsTo:1,beginsWith:2,doesNotBeginWith:3,endsWith:4,doesNotEndWith:5,contains:6,doesNotContain:7};w.ColorCompareType={backgroundColor:0,foregroundColor:1};w.CustomValueType={empty:0,nonEmpty:1,error:2,nonError:3,formula:4};w.DateCompareType={equalsTo:0,notEqualsTo:1,before:2,beforeEqualsTo:3,after:4,afterEqualsTo:5};w.Top10ConditionType={top:0,bottom:1};w.DateOccurringType={today:0,yesterday:1,tomorrow:2,last7Days:3,thisMonth:4,lastMonth:5,nextMonth:6,thisWeek:7,lastWeek:8,nextWeek:9};w.QuarterType={quarter1:0,quarter2:1,quarter3:2,quarter4:3};w.AverageConditionType={above:0,below:1,equalOrAbove:2,equalOrBelow:3,above1StdDev:4,below1StdDev:5,above2StdDev:6,below2StdDev:7,above3StdDev:8,below3StdDev:9};w.ScaleValueType={number:0,lowestValue:1,highestValue:2,percent:3,percentile:4,automin:5,formula:6,automax:7};w.BarDirection={leftToRight:0,rightToLeft:1};w.DataBarAxisPosition={automatic:0,cellMidPoint:1,none:2};w.IconSetType={threeArrowsColored:0,threeArrowsGray:1,threeTriangles:2,threeStars:3,threeFlags:4,threeTrafficLightsUnrimmed:5,threeTrafficLightsRimmed:6,threeSigns:7,threeSymbolsCircled:8,threeSymbolsUncircled:9,fourArrowsColored:10,fourArrowsGray:11,fourRedToBlack:12,fourRatings:13,fourTrafficLights:14,fiveArrowsColored:15,fiveArrowsGray:16,fiveRatings:17,fiveQuarters:18,fiveBoxes:19};w.IconValueType={number:1,percent:4,formula:7,percentile:5};O={relationCondition:0,numberCondition:1,textCondition:2,colorCondition:3,formulaCondition:4,dateCondition:5,dateExCondition:6,textLengthCondition:7,top10Condition:8,uniqueCondition:9,averageCondition:10,cellValueCondition:11,areaCondition:12};w.ConditionType=O;H={conditionRuleBase:0,cellValueRule:1,specificTextRule:2,formulaRule:3,dateOccurringRule:4,top10Rule:5,uniqueRule:6,duplicateRule:7,averageRule:8,twoScaleRule:10,threeScaleRule:11,dataBarRule:12,iconSetRule:13};w.RuleType=H;(function(){for(var a in O)void 0!==O[a]&&(O[O[a]]=a);for(a in H)void 0!==H[a]&&(H[H[a]]=a)})();I=function(){function a(a,b){var c;b||(b={});c=b.formula;this.offsetCol=this.offsetRow=0;this.conType("string"==typeof a?w.ConditionType[a]:a);P(b.compareType)||this.RV(b.compareType);P(b.expected)||this.expected(b.expected);P(c)||this.formula("string"==typeof c?f(m.trim(c),"\x3d"):c);P(b.item1)||this.item1(b.item1);P(b.item2)||this.item2(b.item2);P(b.customValueType)||this.customValueType(b.customValueType);P(b.type)||this.type(b.type);this.ranges(b.ranges);this.TV=this.Lf=this.SV=this.Uu=null}var d,h,l,n,q,r,v,z="conType compareType item1 item2 ignoreBlank expected formula treatNullValueAsZero integerValue forceValue2Text useWildCards ignoreCase customValueType expectTypeId type ranges isPercent regex".split(" ");return d=function(a,b){return a.getYear()===b.getYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate()},h=function(a,b){var c=q(a);return b>c},l=function(a,b){var c=n(a);return b<c},n=function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0,0)},q=function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate(),23,59,59,999)},r=function(a,b){a.setDate(b)},v=function(a){return a.getDate()},a.prototype={conType:R("conType",null),ranges:R("ranges",null),ignoreBlank:R("ignoreBlank",!1),compareType:R("compareType",void 0),expected:R("expected",void 0),formula:R("formula",void 0),item1:R("item1",null),item2:R("item2",null),treatNullValueAsZero:R("treatNullValueAsZero",!1),integerValue:R("integerValue",!1),forceValue2Text:R("forceValue2Text",!1),useWildCards:R("useWildCards",!0),regex:R("regex",null),ignoreCase:R("ignoreCase",!1),customValueType:R("customValueType",void 0),expectTypeId:R("expectTypeId",0),type:R("type",null),isPercent:R("isPercent",!1),adjustOffset:function(a,b){var c=this.item1();c&&c.adjustOffset&&c.adjustOffset(a,b);(c=this.item2())&&c.adjustOffset&&c.adjustOffset(a,b);this.offsetRow=a;this.offsetCol=b},relationConditionEvaluate:function(a,b,c,e,d){function f(d,f){if(d){d.ignoreBlank(m.ignoreBlank());var g;if(5>arguments.length){if(g=e,a&&d&&3===d.conType()){var k=a.getActualStyle(b,c);k&&(0===d.RV()?g=k.backColor:1===d.RV()&&(g=k.foreColor))}}else g=f;return g}}function g(e,d){return!P(e)&&e.evaluate(a,b,c,d)}var k,h,m=this;return k=f(m.item1(),e),h=f(m.item2(),d),g(m.item1(),k)+g(m.item2(),h)>m.RV()},cellValueConditionEvaluate:function(a,b,c,e){a=this.getExpected(a,b,c);return this.cellValueConditionCheckCondition(a,e)},cellValueConditionCheckCondition:function(a,b){var c,e,d,f=0,k=!1;if(P(b)&&P(a))switch(this.RV()){case 0:case 3:case 5:return!0;case 1:case 2:case 4:return!1;default:return!1}return"boolean"==typeof a?J(this.RV(),b,a):(c={},P(b)?this.treatNullValueAsZero()?(k=!0,f=0):f=b:"boolean"!=typeof b&&g(b,c)&&(f=c.value,k=!isNaN(f)),k?(e=0,d=!1,g(a,c)&&(e=c.value,d=!0),d?J(this.RV(),f,e):1===this.RV()):"string"==typeof b&&("string"==typeof a?J(this.RV(),b,a):1===this.RV()))},numberConditionEvaluate:function(a,b,c,e){a=this.numberConditionGetExpected(a,b,c);return this.integerValue()&&(a=isNaN(a)?null:0<a?y(a):t(a)),this.numberConditionCheckCondition(a,e)},numberConditionCheckCondition:function(a,b){var c,e;if((P(b)||""===b)&&this.ignoreBlank())return!0;if(isNaN(b))return!1;if(P(a)){if(this.ignoreBlank())return!0;a=0}try{c=parseFloat(b)}catch(Aa){return!1}return!(this.integerValue()&&(e=0===c-y(c),!e))&&J(this.RV(),c,a)},numberConditionGetExpected:function(a,b,c){var e;return this.formula()&&0<this.formula().length?(e=a.Cf(),e?e.evaluate(a.yj(),this.formula(),b,c):this.expected()):this.expected()},textConditionEvaluate:function(a,b,c,e){function d(a,b){return t?n.testByRegular(b,a,"^","$"):r?a.toLowerCase()===b.toLowerCase():a===b}function f(a,b){return t?n.testByRegular(b,a,"^",""):k(b,a,r)}function g(a,b){return t?n.testByRegular(b,a,"","$"):x(b,a,r)}function h(a,b){return t?n.testByRegular(b,a,"",""):W(b,void 0===a||null===a?"":a,r)}var m,p,l,n=this,q=n.compareType(),t=n.useWildCards(),r=n.ignoreCase();if(!n.forceValue2Text()&&Z(e,Date))return 2!==q&&4!==q&&6!==q&&(3===q||5===q||7===q);if(m=P(e)?"":""+e,n.ignoreBlank()&&""===m)return!0;if(p=this.getExpected(a,b,c),l=P(p)?"":""+p,n.hasWildcard(l)&&"number"==typeof e)return 3===q||7===q||5===q||1===q;switch(q){case 0:return d(l,m);case 1:return!d(l,m);case 2:return f(l,m);case 3:return!f(l,m);case 4:return g(l,m);case 5:return!g(l,m);case 6:return h(l,m);case 7:return!h(l,m);default:return!1}},hasWildcard:function(a){return-1<a.indexOf("*")||-1<a.indexOf("?")},testByRegular:function(a,b,c,e){if(this.regex())return V.qb(this.regex()).test(a);var d=V.ub(b);return d||(d=b),d=c+d+e,this.ignoreCase()?V.sb(d).test(a):V.qb(d).test(a)},colorConditionEvaluate:function(a,b,c,e){function d(a){return P(a)||""===a?null:N.ec(a)}var f,g,k;if(f=d(this.expected()),P(f)||""===f){if(this.ignoreBlank())return!0}else if(g=d(e),(P(g)||""===g)&&a&&a.getDefaultStyle&&(k=a.getDefaultStyle(),0===this.RV()?g=k.backColor:1===this.RV()&&(g=k.foreColor)),!P(g)&&""!==g)return g.a===f.a&&g.r===f.r&&g.g===f.g&&g.b===f.b;return!1},formulaConditionEvaluate:function(a,c,e,d){var f,g;if(!b)return!1;if(4===this.customValueType())return f=this.getExpected(a,c,e),!(!this.ignoreBlank()||!P(f)&&""!==f)||(g={},!!E.Uh(f,g)&&g.value);switch(a=E.vf,this.customValueType()){case 0:return P(d)||""===d;case 1:return!P(d)&&""!==d;case 2:return a(d);case 3:return!a(d);default:return!1}},formulaConditionGetExpected:function(a,b,e){var d,f,g,k,h,m,p;if(this.formula()&&0<this.formula().length){if(d=a.Cf(),!d)return this.expected();if(this.Lf||(P(this.Uu)&&P(this.SV)&&(this.Uu=b,this.SV=e),this.Lf=d.parse(a.yj(),this.formula(),this.Uu,this.SV)),f=d.Hg(a.yj(),this.Lf,T(b,e),!0),E.Fh(f)){g=f.getRowCount(0);k=f.getColumnCount(0);a=[];for(d=0;d<g;d++)for(a[d]=[],h=0;h<k;h++)a[d][h]=f.getValue(0,d,h);f=a}else if(E.Ca(f)){g=f.getRowCount();k=f.getColumnCount();a=[];for(d=0;d<g;d++)for(a[d]=[],h=0;h<k;h++)a[d][h]=f.getValue(d,h);f=a}return Z(f,Array)?(g=ea(f),k=ea(f[0]),1===g&&1===k?f[0][0]:(m=b-this.Uu,p=e-this.SV,m<g&&p<k?f[m][p]:c.Errors.NotAvailable)):f}return this.expected()},dateConditionEvaluate:function(a,b,c,e){var f,g;if((P(e)||""===e)&&this.ignoreBlank())return!0;if(!Z(e,Date))return!1;if(f=null,g=this.getExpected(a,b,c),Z(g,Date)?f=g:"string"==typeof g?f=ka.Qa(g):"number"==typeof g&&(f=ka.Xb(g)),P(f))return!!this.ignoreBlank();switch(this.RV()){case 0:return d(f,e);case 1:return!d(f,e);case 4:return h(f,e);case 5:return h(f,e)||d(f,e);case 2:return l(f,e);case 3:return l(f,e)||d(f,e);default:return!1}},dateExConditionEvaluate:function(a,b,c,e){a=this.A4(a,b,c);return!P(a)&&this.dateExConditionCheckCondition(a,e)},dateExConditionCheckCondition:function(a,b){function c(a,b){switch(a){case 0:return 0<=b.getMonth()&&2>=b.getMonth();case 1:return 3<=b.getMonth()&&5>=b.getMonth();case 2:return 6<=b.getMonth()&&8>=b.getMonth();case 3:return 9<=b.getMonth()&&11>=b.getMonth();default:return!1}}var e,d,f,g,k,h,m,p;if(e=b,this.ignoreBlank()&&(P(e)||""===e))return!0;try{e=E.Wh(e)}catch(Ta){return!1}if(f=this.expectTypeId(),0===f){switch(d=null,f=null,g=new Date,k=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds()),a){case 3:r(k,v(k)-6);d=n(k);f=q(g);break;case 1:r(k,v(k)-1);d=n(k);f=q(k);break;case 0:d=n(g);f=q(g);break;case 2:r(k,v(k)+1);d=n(k);f=q(k);break;case 8:r(g,v(g)-g.getDay()-7);k.setDate(v(k)-k.getDay()-1);d=n(g);f=q(k);break;case 7:r(g,v(g)-g.getDay());r(k,v(k)-k.getDay()+6);d=n(g);f=q(k);break;case 9:r(g,v(g)-g.getDay()+7);r(k,v(k)-k.getDay()+13);d=n(g);f=q(k);break;case 5:r(g,1);g.setMonth(g.getMonth()-1);r(k,0);d=n(g);f=q(k);break;case 4:r(g,1);r(k,1);k.setMonth(k.getMonth()+1);r(k,0);d=n(g);f=q(k);break;case 6:r(g,1),g.setMonth(g.getMonth()+1),r(k,1),k.setMonth(k.getMonth()+2),r(k,0),d=n(g),f=q(k)}if(!P(d)&&!P(f))return h=L(5,5,d,null),m=L(5,3,f,null),p=L(0,1,null,null,null,null,null,h,m),p.evaluate(null,0,0,e)}else if(d=this.A4(null,0,0),!P(d)){if(1===f)return d===e.getFullYear();if(2===f)return c(d,e);if(3===f)return d===e.getMonth();if(4===f)return d===e.getDay();if(5===f)return d===v(e)}return!1},textLengthConditionEvaluate:function(a,b,c,e){var d,f;return P(e)||""===e?this.ignoreBlank():(d=P(e)?0:(""+e).length,f=this.A4(a,b,c),"number"==typeof f&&J(this.RV(),d,f))},top10ConditionEvaluate:function(a,b,c,e){var d,f;if(P(e)||""===e)return this.ignoreBlank();if(d=this.A4(a,b,c),!P(d)&&(f=this.getTopValues(a,d,this.ranges()))){a=0;try{a=this.Pa(e)}catch($a){return!1}if(ja.Bb(f,a))return!0}return!1},A4:function(a,b,c){a=this.getExpected(a,b,c);return a=parseInt(a,10),isNaN(a)||!isFinite(a)?null:a},adjustRange:function(a,b){return X(a.row,a.col,Math.min(a.rowCount,b.getRowCount()),Math.min(a.colCount,b.getColumnCount()))},getTopValues:function(a,b,c){var e,d,f,g,k,h,m,p=0===this.type()?1:-1,l=[];if(!c)return l;c=this.UV(a,c);e=ea(c);for(k=0;k<e;k++)for(d=this.adjustRange(c[k],a),h=0;h<d.rowCount;h++)for(f=h+d.row,m=0;m<d.colCount;m++)g=m+d.col,g=this.Pa(a.getValue(f,g)),P(g)||P(g)||l.push(g);return l.sort(function(a,b){return(b-a)*p}),ea(l)>b&&(l=l.slice(0,b)),l},Pa:function(a){return("number"==typeof a||Z(a,Date))&&b?p(a):null},uniqueConditionEvaluate:function(a,c,e,d){var f,g,k,h;return P(d)||""===d?this.ignoreBlank():(b&&M(d)&&(d=p(d)),f=this.getExpected(a,c,e),g={},E.Uh(f,g),k=g.value,!P(k)&&(h=this.getDuplicated(a,this.ranges()),!P(h)&&ja.Bb(h,d)?!0===k:!0!==k))},getDuplicated:function(a,c){var e,d,f,g,k,h,l,n,q=[],t=[],r=this.UV(a,c);if(r){e=ea(r);for(d=0;d<e;d++)for(f=r[d],f=this.adjustRange(f,a),g=0;g<f.rowCount;g++)for(k=g+f.row,h=0;h<f.colCount;h++)l=h+f.col,l=a.getValue(k,l,3),P(l)||b&&M(l)&&(l=p(l)),q.push(l);n={};m.each(q,function(a,b){n[b]=0});m.each(q,function(a,b){n[b]++});m.each(q,function(a,b){1<n[b]&&t.push(b)});n=void 0}return q=null,t},VV:function(a,b){var c,e=a.length;for(c=0;c<e;c++)if(a[c].key===b)return!0;return!1},averageConditionEvaluate:function(a,c,e,d){var f,k,h,m,l,n;if(!b)return!1;if(this.ignoreBlank()&&(P(d)||""===d))return!0;if(this.WV(),f=this.getExpected(a,c,e),k={},h=g(f,k)?k.value:NaN,m=null,l=this.TV?this.XV(a,this.TV,c,e):null,P(l)||(k={},m=g(l,k)?k.value:NaN),M(d)&&(n=p(d),!isNaN(h)))switch(a=isNaN(m),this.type()){case 0:return n>h;case 1:return n<h;case 2:return n>=h;case 3:return n<=h;case 4:return!a&&n>h+m;case 5:return!a&&n<h-m;case 6:return!a&&n>h+2*m;case 7:return!a&&n<h-2*m;case 8:return!a&&n>h+3*m;case 9:return!a&&n<h-3*m}return!1},WV:function(){this.ranges()&&(this.Lf=this.YV("AVERAGE",this.ranges()),4<=this.type()&&9>=this.type()&&(this.TV=this.YV("STDEV",this.ranges())))},YV:function(a,e){var d,f,g,k;if(!b)return null;if(d=ga.findGlobalFunction(a)){f=[];g=ea(e);for(k=0;k<g;k++)f[k]=Fa(e[k]);return c.Jh(d,f)}return null},averageConditionGetExpected:function(a,b,c){var e,d=a.Cf();return d?(e=d.unparse(null,this.Lf,b,c),this.Lf=d.parse(a.yj(),e,b,c),d.Hg(a.yj(),this.Lf,T(b,c),!1)):null},XV:function(a,b,c,e){var d,f=a.Cf();return f?(d=f.unparse(null,b,c-this.offsetRow,e-this.offsetCol),b=f.parse(a.yj(),d,c,e),f.Hg(a.yj(),b,T(c,e),!1)):null},ZV:function(a,b){var c,e;for(e=0;e<ea(b);e++)c=b[e],Z(c,Array)&&0<ea(c)?1<ea(b)?a.push(c[0]):a.push.apply(a,c):a.push(c)},getValidList:function(a,b,c){var e=[];c=this.getValidListImp(a,b,c);a=0;for(b=ea(c);a<b;a++)e.push(c[a].value);return e},getValidListImp:function(a,b,c){var e,d,f,g=[];if(this.formula()&&0<this.formula().length)e=this.getExpected(a,b,c),Z(e,Array)?this.ZV(g,e):g.push(e);else if(this.expected()&&0<this.expected().length&&(d=this.expected(),e=d.split(",")))for(a=0;a<ea(e);a++)b=e[a],P(b)||(f=m.trim(b),""!==f&&g.push({text:f,value:f}));return g},areaConditionEvaluate:function(a,b,c,d){function f(a,b){return Z(a,Date)&&Z(b,Date)?a.valueOf()===b.valueOf():a===b}var g,k,h,m,p;if(P(d)||""===d)return!0===this.ignoreBlank();g=this.getValidList(a,b,c);for(k=0;k<ea(g);k++){if(h=g[k],P(h)&&P(d))return!0;if(this.formula()){if(f(h,d))return!0}else if(m=a.getActualStyle(b,c),p=e.ul(m,h,!0),f(p,d))return!0}return!1},areaConditionGetExpected:function(a,b,c){var e,d,f,g,k,h,m,p=[];if(this.formula()){if(e=a.Cf(),!e)return p;if(d=e.parse(a.yj(),this.formula(),b-this.offsetRow,c-this.offsetCol),g=e.Hg(a.yj(),d,T(b,c),!0),E.Fh(g))for(a=g.getRowCount(0),b=g.getColumnCount(0),k=g.getRow(0),h=g.getColumn(0),m=g.xf&&g.xf.kj,c=0;c<a;c++)for(p[c]=[],e=0;e<b;e++)d=g.getValue(0,c,e),f=m?m.getText(k+c,h+e):d,p[c][e]={value:d,text:f};else if(E.Ca(g))for(a=g.getRowCount(),b=g.getColumnCount(),c=0;c<a;c++)for(p[c]=[],e=0;e<b;e++)d=g.getValue(c,e),p[c][e]={value:d,text:d}}else p.push({value:this.expected(),text:this.expected()});return p},reset:function(){switch(this.ignoreBlank(!1),this.RV(1),this.item1(null),this.item2(null),this.value1=null,this.value2=null,this.style(null),this.stopIfTrue(!1),this.priority(1),this.expected(null),this.RV(0),this.integerValue(!1),this.operator=0,this.text="",this.RV(0),this.useWildCards(!0),this.ignoreCase(!1),this.forceValue2Text(!1),this.customValueType(0),this.Lf=null,this.Uu=null,this.SV=null,this.type(0),this.expectTypeId(0),this.ranges(null),this.isPercent(!1),this.regex(null),this.conType()){case 0:this.ignoreBlank(!1);this.RV(1);break;case 1:this.RV(0);this.integerValue(!1);break;case 2:this.RV(0);this.useWildCards(!0);this.forceValue2Text(!1);break;case 3:this.RV(0);break;case 4:this.customValueType(0);this.TV=null;break;case 5:this.RV(0);break;case 6:this.expectTypeId(0);break;case 7:this.RV(0);break;case 8:this.type(0);break;case 10:this.type(0);break;case 11:this.operator=6}},evaluate:function(a,b,c,e){var d=this.conType();return!P(d)&&this[O[d]+"Evaluate"](a,b,c,e)},getExpectedNormal:function(a,b,c,e,d,f){var g,k,h=this.formula(),m=this.expected();return h&&0<h.length&&(g=a.Cf())?(k=g.parse(a.yj(),h,e,d),g.Hg(a.yj(),k,T(b,c),!1,f)):m},getExpected:function(a,b,c){switch(this.conType()){case 2:return this.getExpectedNormal(a,b,c,b-this.offsetRow,c-this.offsetCol,!1);case 5:case 6:case 7:case 9:case 11:return this.getExpectedNormal(a,b,c,b-this.offsetRow,c-this.offsetCol,!1);case 8:return this.getExpectedNormal(a,b,c,b,c);case 0:return null;case 1:return this.numberConditionGetExpected(a,b,c);case 3:return null;case 4:return this.formulaConditionGetExpected(a,b,c);case 10:return this.averageConditionGetExpected(a,b,c);case 12:return this.areaConditionGetExpected(a,b,c);default:return null}},UV:function(a,b){var c,e,d,f=[];c=0;for(e=ea(b);c<e;c++)d=a.Tq(b[c]),f.push(d);return f},getFormulas:function(){var a=[];return 0===this.conType()?(this.item1()&&this.item1().getFormulas&&(a=this.item1().getFormulas()),this.item2()&&this.item2().getFormulas&&(a=a.concat(this.item2().getFormulas())),a):this.formula()?[this.formula()]:[]},setFormulas:function(a){var b;return 0===this.conType()?(this.item1()&&this.item1().getFormulas&&(b=this.item1().getFormulas().length,this.item1().setFormulas(a.slice(0,b))),void(this.item2()&&this.item2().setFormulas&&this.item2().setFormulas(a.slice(b)))):(this.formula(a[0]),void(this.Lf=null))},toJSON:function(){return Q.call(this,z)},fromJSON:function(a,b){a&&K.call(this,z,a,b)}},a.prototype.RV=a.prototype.compareType,a.fromSource=function(a){return L(12,null,a,null)},a.fromFormula=function(a){return L(12,null,"",a)},a.fromDay=function(a){a=L(6,null,a);return a.expectTypeId(5),a},a.fromMonth=function(a){a=L(6,null,a);return a.expectTypeId(3),a},a.fromQuarter=function(a){a=L(6,null,a);return a.expectTypeId(2),a},a.fromWeek=function(a){a=L(6,null,a);return a.expectTypeId(4),a},a.fromYear=function(a){a=L(6,null,a);return a.expectTypeId(1),a},a}();w.Condition=I;L=function(a,b,c,e,d,f,g,k,h){return new I(a,{compareType:b,expected:c,formula:e,customValueType:d,type:f,ranges:g,item1:k,item2:h})};w.$V=L;F=function(){function a(a,b,c){this.ruleType(a);this.style(b);this.ranges(c)}var b={ruleType:R("ruleType",null),ranges:R("ranges",null,function(a){var b=this.condition();b&&b.ranges()&&b.ranges(a)}),condition:R("condition",null),style:R("style",null),priority:R("priority",1),stopIfTrue:R("stopIfTrue",!1),evaluate:function(a,b,c,e){var d,f;return this.contains(b,c)?(this.initCondition(),d={baseRow:0,baseCol:0},this.getBaseCoordinate(d),this.condition().adjustOffset(b-d.baseRow,c-d.baseCol),f=null,this.condition().evaluate(a,b,c,e)&&(f=this.getExpected()),this.condition().adjustOffset(0,0),f):null},contains:function(a,b){var c,e,d,f=this.ranges();if(f)for(c=ea(f),d=0;d<c;d++)if(e=f[d],e.contains(a,b))return!0;return!1},createCondition:function(){return null},initCondition:function(){this.condition()||this.condition(this.createCondition())},getExpected:function(){return this.style()},reset:function(){this.ranges(null);this.condition(null);this.style(null);this.stopIfTrue(!1);this.priority(1)},intersects:function(a,b,c,e){var d,f,g,k=this.ranges();if(k)for(d=ea(k),g=0;g<d;g++)if(f=k[g],f.intersect(a,b,c,e))return!0;return!1},isScaleRule:function(){return!1},getBaseCoordinate:function(a){var b,c,e;if(a.baseRow=Number.MAX_VALUE,a.baseCol=Number.MAX_VALUE,this.ranges()&&0<ea(this.ranges()))for(b=0;b<ea(this.ranges());b++)c=this.ranges()[b],e=c.row,c=c.col,e=-1===e?0:e,c=-1===c?0:c,a.baseRow=h(e,a.baseRow),a.baseCol=h(c,a.baseCol);else a.baseRow=0,a.baseCol=0},_V:function(a,b,c){var e,d,f,g,k=c?b:0,h=c?0:b;if(this.ranges())for(b=ea(this.ranges()),e=0;e<b;e++)d=this.ranges()[e],f=c?d.row:d.col,g=c?d.rowCount:d.colCount,-1!==f&&(f>=a?this.ranges()[e]=X(d.row+k,d.col+h,d.rowCount,d.colCount):f<a&&a<f+g&&(this.ranges()[e]=X(d.row,d.col,d.rowCount+k,d.colCount+h)))},rI:function(a,b){this._V(a,b,!0)},tI:function(a,b){this._V(a,b,!1)},aW:function(a,b,c){var e,d,f,g,k,m,p,l=c?a:0,n=c?0:a,q=c?b:0,t=c?0:b;if(this.ranges()){e=[];d=ea(this.ranges());for(f=0;f<d;f++)g=this.ranges()[f],k=c?g.row:g.col,m=c?g.rowCount:g.colCount,-1!==k&&(k>a?k+m<=a+b?e.push(g):this.ranges()[f]=X(g.row-q,g.col-t,g.rowCount,g.colCount):k<=a&&a<k+m&&(p=X(g.row,g.col,g.rowCount-h(g.row+g.rowCount-l,q),g.colCount-h(g.col+g.colCount-n,t)),0===p.colCount||0===p.rowCount?e.push(g):this.ranges()[f]=p));a=ea(e);for(b=0;b<a;b++)c=e[b],oa(this.ranges(),c)}},GR:function(a,b){this.aW(a,b,!0)},HR:function(a,b){this.aW(a,b,!1)},toJSON:function(){return Q.call(this)},fromJSON:function(a,b){a&&K.call(this,null,a,b)}};return m.extend(a.prototype,b),a}();w.ConditionRuleBase=F;G=function(a){function b(b,c,e,d,f,g,k,h,p,l){a.call(this,b,e);this.ranges(c);this.operator(d);this.value1("string"==typeof f?m.trim(f):f);this.value2("string"==typeof g?m.trim(g):g);this.text(k);this.formula(h);this.type(p);this.rank(l)}var c,e;m.inherit(b,a);c="ruleType style operator value1 value2 text formula type rank priority stopIfTrue ranges".split(" ");return e={operator:R("operator",null),value1:R("value1",null),value2:R("value2",null),text:R("text",null),formula:R("formula",null),type:R("type",null),rank:R("rank",null),priority:R("priority",1),cellValueRuleCreateCondition:function(){var a,b,c,e,d,g,k,h=this.value1(),m=this.value2(),p=this.bW(h)?f(h,"\x3d"):null,l=this.bW(m)?f(m,"\x3d"):null,n=this.operator(),q=null;return 6===n?(a=L(11,3,h,p),a.treatNullValueAsZero(!0),b=L(11,5,m,l),b.treatNullValueAsZero(!0),d=L(0,1,null,null,null,null,null,a,b),c=L(11,5,h,p),c.treatNullValueAsZero(!0),e=L(11,3,m,l),e.treatNullValueAsZero(!0),g=L(0,1,null,null,null,null,null,c,e),L(0,0,null,null,null,null,null,d,g)):7===n?(a=L(11,4,h,p),a.treatNullValueAsZero(!0),b=L(11,2,m,l),a.treatNullValueAsZero(!0),d=L(0,0,null,null,null,null,null,a,b),c=L(11,2,h,p),c.treatNullValueAsZero(!0),e=L(11,4,m,l),e.treatNullValueAsZero(!0),g=L(0,0,null,null,null,null,null,c,e),L(0,1,null,null,null,null,null,d,g)):(q=n,k=L(11,q,h,p),k.treatNullValueAsZero(!0),k)},bW:function(a){return!P(a)&&"\x3d"===a[0]},specificTextRuleCreateCondition:function(){var a,b,c,e,d=this.operator();switch(d){case 2:a=2;break;case 3:a=4;break;case 0:a=6;break;case 1:a=7;break;default:a=0}return b=this.text(),c=null,b&&"\x3d"===b[0]&&(c=b),e=L(2,a,b,c),e.ignoreCase(!0),e.useWildCards(2!==d&&3!==d),e},formulaRuleCreateCondition:function(){var a,b,c,e=this.ranges(),d=L(4,null,null,this.formula()&&""!==this.formula()?this.formula():null,4);if(e&&0<ea(e)){a=e[0].row;b=e[0].col;for(c=1;c<e.length;c++)a=a>e[c].row?e[c].row:a,b=b>e[c].col?e[c].col:b;d.Uu=-1===a?0:a;d.SV=-1===b?0:b}return d},dateOccurringRuleCreateCondition:function(){return L(6,null,this.type(),null,null)},top10RuleCreateCondition:function(){return L(8,null,this.rank(),null,null,this.type(),this.ranges())},uniqueRuleCreateCondition:function(){return L(9,null,!1,null,null,null,this.ranges())},duplicateRuleCreateCondition:function(){return L(9,null,!0,null,null,null,this.ranges())},averageRuleCreateCondition:function(){return L(10,null,null,null,null,this.type(),this.ranges())},createCondition:function(){return this[H[this.ruleType()]+"CreateCondition"]()},reset:function(){switch(this.ranges(null),this.condition(null),this.style(null),this.stopIfTrue(!1),this.priority(1),this.operator(6),this.value1(null),this.value2(null),this.text(""),this.formula(null),this.type(0),this.rank(10),this.ruleType()){case 1:this.operator(6);break;case 2:this.operator(0);break;case 4:this.style(0);break;case 5:this.type(0);this.rank(10);break;case 8:this.type(0)}},toJSON:function(){return Q.call(this,c)},fromJSON:function(a,b){K.call(this,c,a,b)}},m.extend(b.prototype,e),b}(F);w.NormalConditionRule=G;u=function(){return function(a,b){this.type=a;this.value=b}}();w.ScaleValue=u;q=function(a){function e(b,c,e,d,f,g,k,h,m,p,l){var n,q,t,r,x,y,v,w,z;a.call(this,b,null,l);this.highestValueCached=this.lowestValueCached=null;this.cached=!1;this.cW=null;n=c;q=e;t=d;r=f;x=g;y=k;v=h;w=m;z=p;1>=arguments.length&&(n=1,q=null,t=S(255,248,105,107),r=4,x=50,y=S(255,255,235,132),v=2,w=null,z=S(255,99,190,123));this.minColor(t);this.minValue(q);this.minType(n);this.midColor(y);this.midValue(x);this.midType(r);this.maxColor(z);this.maxValue(w);this.maxType(v)}var d,f;m.inherit(e,a);d="ruleType ranges minType minValue minColor maxType maxValue maxColor midType midValue midColor priority".split(" ");return f={stopIfTrue:function(){return!1},minValue:R("minValue",null),minType:R("minType",5),minColor:R("minColor",null),midValue:R("midValue",50,null,function(a){if(this.lh){if(2===this.midType())return this.dW(this.lh);if(1===this.midType())return this.eW(this.lh)}return a}),midType:R("midType",null),midColor:R("midColor",null),maxType:R("maxType",7),maxValue:R("maxValue",null),maxColor:R("maxColor",null),isScaleRule:function(){return!0},createCondition:function(){return null},fW:function(a){a=L(8,null,null,null,null,1).getTopValues(a,1,this.ranges());return 0<ea(a)?a[0]:null},gW:function(a){a=L(8,null,null,null,null,0).getTopValues(a,1,this.ranges());return 0<ea(a)?a[0]:null},hW:function(a){var b,c,e=[],d=ea(a);for(c=0;c<d;c++)b=a[c],e.push(X(b.row,b.col,b.rowCount,b.colCount));return e},iW:function(){var a,b,c=this.cW,e=this.ranges();if(!c)return this.cW=this.hW(e),!1;if(a=ea(c),b=ea(e),a!==b)return!0;for(a=0;a<b;a++)if(!c[a].equals(e[a]))return!0;return!1},jW:function(a){this.iW()&&(this.Nm(),this.cW=this.hW(this.ranges()));!1===this.cached&&(this.lowestValueCached=this.fW(a),this.highestValueCached=this.gW(a),this.cached=!0)},Nm:function(){this.highestValueCached=this.lowestValueCached=null;this.cached=!1},kW:function(a,b,c,e){var d,f;return e&&0<e.length&&(d=a.Cf())?(f=d.parse(a.yj(),e,b,c),d.Hg(a.yj(),f,T(b,c),!1)):null},bW:function(a){return a&&"\x3d"===a[0]},lW:function(a){return P(a)||""===a?null:"\x3d"===a[0]?a.substr(1):a},mW:function(a,b,c,e){if(this.bW(e))return this.kW(a,b,c,this.lW(""+e));a={};return g(e,a)?a.value:NaN},dW:function(a){return this.jW(a),this.highestValueCached},eW:function(a){return this.jW(a),this.lowestValueCached},nW:function(a,b,c,e){var d,f;b=this.mW(a,b,c,e);return!isNaN(b)&&0<=b&&100>=b&&(d=this.eW(a),f=this.dW(a),"undefined"!==typeof d&&null!==d&&"undefined"!==typeof f&&null!==f)?d+(f-d)*b/100:null},oW:function(a,b,c,e){var d,f,k,h,m,p=this.mW(a,b,c,e);if(!isNaN(p)&&0<=p&&100>=p){e=0;d=this.ranges();f=ea(d);for(k=0;k<f;k++)h=this.YV("PERCENTILE",[a.Tq(d[k]),p/100]),m=a.Cf(),h=m.unparse(null,h,b,c),h=m.parse(a.yj(),h,b,c),m=m.Hg(a.yj(),h,T(b,c),!1),h={},e+=g(m,h)?h.value:0;return e/f}return null},pW:function(a,b,c,e,d){var f,g;switch(e){case 6:return this.bW(d)||(d="\x3d"+d),this.mW(a,b,c,d);case 2:return this.dW(a);case 1:return this.eW(a);case 0:return this.mW(a,b,c,d);case 3:return this.nW(a,b,c,d);case 4:return this.oW(a,b,c,d);case 7:return f=this.dW(a),0>f?0:f;case 5:return g=this.eW(a),0<g?0:g;default:return null}},qW:function(a,b,c){return a===b&&a===c?1:a<=b?0:a>=c?1:(a-b)/(c-b)},rW:function(a,b,c){var e,d,f,g,k,h;return 0<=a&&1>=a?(e=N.ec(b),d=N.ec(c),f=e.a*(1-a)+d.a*a,g=e.r*(1-a)+d.r*a,k=e.g*(1-a)+d.g*a,h=e.b*(1-a)+d.b*a,S(parseFloat(f/255),parseInt(g,10),parseInt(k,10),parseInt(h,10))):null},YV:function(a,e){var d,f,g,k;if(!b)return null;if(d=ga.findGlobalFunction(a)){f=[];g=ea(e);for(k=0;k<g;k++)f[k]=Fa(e[k]);return new c.Jh(d,f)}return null},rI:function(b,c){a.prototype.rI.call(this,b,c);this.Nm()},tI:function(b,c){a.prototype.tI.call(this,b,c);this.Nm()},GR:function(b,c){a.prototype.GR.call(this,b,c);this.Nm()},HR:function(b,c){a.prototype.HR.call(this,b,c);this.Nm()},scaleEvaluate:function(a,b,c,e){var d,f,g,k;if(this.jW(a),this.contains(b,c)){if(P(e))return null;try{if(d=p(e),f=this.pW(a,b,c,this.minType(),this.minValue()),g=this.pW(a,b,c,this.midType(),this.midValue()),k=this.pW(a,b,c,this.maxType(),this.maxValue()),f>k)return null;if(isNaN(g)){if(!isNaN(f)&&!isNaN(k))return this.qW(d,f,k)}else if(!isNaN(f)&&!isNaN(k))return d<f?0:d>=k?2:f<=d&&d<=g?this.qW(d,f,g):1+this.qW(d,f,k)}catch(wa){}}return null},twoScaleRuleEvaluate:function(a,b,c,e){var d,f,k,h;if(!P(e)){if(d={},f=M(e)&&g(e,d)?d.value:NaN,isNaN(f))return null;if(k=this.pW(a,b,c,this.minType(),this.minValue()),h=this.pW(a,b,c,this.maxType(),this.maxValue()),!P(k)&&!P(h))return d=this.qW(f,k,h),this.rW(d,this.minColor(),this.maxColor())}return null},threeScaleRuleEvaluate:function(a,b,c,e){var d,f,k,h,m;if(this.lh=a,!P(e)){if(d={},f=M(e)&&g(e,d)?d.value:NaN,isNaN(f))return null;if(k=this.pW(a,b,c,this.minType(),this.minValue()),h=this.pW(a,b,c,this.midType(),this.midValue()),m=this.pW(a,b,c,this.maxType(),this.maxValue()),!P(k)&&!P(m)&&!P(h))return k>m?null:f<=k||k===m?f>=m?this.maxColor():this.minColor():f>=m?this.maxColor():k<=f&&f<=h?(d=this.qW(f,k,h),this.rW(d,this.minColor(),this.midColor())):(d=this.qW(f,h,m),this.rW(d,this.midColor(),this.maxColor()))}return null},evaluate:function(a,b,c,e){return this[H[this.ruleType()]+"Evaluate"](a,b,c,e)},ad:function(){this.minValue(null);this.minType(1);this.midValue(50);this.midType(4);this.maxValue(null);this.maxType(2);10===this.ruleType()&&(this.minColor(S(0,255,255,255)),this.maxColor(S(255,99,190,123)));11===this.ruleType()&&(this.midValue(50),this.midType(4),this.minColor(S(255,248,105,107)),this.midColor(S(255,255,235,132)),this.maxColor(S(255,99,190,123)))},reset:function(){this.ranges(null);this.condition(null);this.style(null);this.ad();this.lh=null;this.stopIfTrue(!1);this.priority(1)},toJSON:function(){return Q.call(this,d)},fromJSON:function(a,b){K.call(this,d,a,b)}},m.extend(e.prototype,f),e}(F);w.ScaleRule=q;D=function(b){function c(a,c,e,d,f,g){var k=a,h=c,m=e,p=d,l=f;0===arguments.length&&(k=5,h=null,m=7,p=null,l=S(255,99,142,198));b.call(this,12,k,h,null,null,null,null,m,p,null,g);this.ad(l)}var e,d;m.inherit(c,b);e="ruleType ranges gradient color showBorder borderColor dataBarDirection negativeFillColor useNegativeFillColor negativeBorderColor useNegativeBorderColor axisPosition axisColor showBarOnly minType minValue maxType maxValue priority".split(" ");return d={gradient:R("gradient",!0),color:R("color",null),showBorder:R("showBorder",!1),borderColor:R("borderColor","black"),dataBarDirection:R("dataBarDirection",0),negativeFillColor:R("negativeFillColor","red"),useNegativeFillColor:R("useNegativeFillColor",!0),negativeBorderColor:R("negativeBorderColor","black"),useNegativeBorderColor:R("useNegativeBorderColor",!1),axisPosition:R("axisPosition",0),axisColor:R("axisColor","black"),showBarOnly:R("showBarOnly",!1),ad:function(a){this.gradient(!0);this.color(a);this.showBorder(!1);this.borderColor("black");this.dataBarDirection(0);this.negativeFillColor("red");this.useNegativeFillColor(!0);this.negativeBorderColor("black");this.useNegativeBorderColor(!1);this.axisPosition(0);this.axisColor("black");this.showBarOnly(!1)},reset:function(){this.ranges(null);this.condition(null);this.style(null);this.ad(S(255,99,142,198));this.stopIfTrue(!1);this.priority(1);this.minValue(null);this.minType(5);this.midValue(null);this.midType(null);this.maxValue(null);this.maxType(7);this.minColor(null);this.midColor(null);this.maxColor(null)},sW:function(a,b,c,e){var d,f,g=null,k=e?this.maxType():this.minType();e=e?this.maxValue():this.minValue();if(6!==k&&4!==k)return this.pW(a,b,c,k,e);for(c=0;c<ea(this.ranges());c++)if(this.ranges()[c].intersect(b,-1,1,-1)&&(g=this.ranges()[c]))return d=g.row,f=g.col,d=-1===d?0:d,f=-1===f?0:f,this.pW(a,d,f,k,e)},tW:function(a,b,c,e){return e=0,a>=c&&a>b?[1,e]:a<=b&&a<c?[0,e]:c===b?[.5,e]:[(a-b)/(c-b),e]},uW:function(a,b,c,e){var d,f,g;return e=.5,d=B(c-b),0<c&&0<=b?c===b?[.5,e]:a>=c?[.5,e]:a<=b?[b/c*.5,e]:[.5*B(a/c),e]:0<c&&0>b?(f=c>B(b)?.5:c/d,g=c>B(b)?b/d:-.5,0<a?a>=c?[f,e]:[a/c*f,e]:0>a?a<=b?[g,e]:[a/b*g,e]:[0,e]):0>=c&&0>b?c===b?[-.5,e]:a>=c?[-c/b*.5,e]:a<=b?[-.5,e]:[-a/b*.5,e]:0===c&&0===b?[0,e]:(e=-1,[-1,e])},vW:function(b,c,e,d){var f,g,k,m,p=B(c),l=B(e),n=B(e-c);return 0<e&&0<=c||0>=e&&0>c?(f=a(p,l),g=h(p,l),k=B(b),m=0>c?-1:1,d=0>c?1:0,k<=g&&k<f?[0,d]:k>=f&&k>g?[m,d]:g===f?[.5*m,d]:[m*(b-c)/n,d]):0<e&&0>c?(d=B(c)/n,0===b?[0,d]:b>=e?[1-d,d]:[a(b,c)/n,d]):0===e&&0===c?(d=.5,0===b?[0,d]:[.5*m,d]):(d=-1,[-1,d])},wW:function(a,b,c,e){return 0===this.axisPosition()?this.vW(a,b,c,e):1===this.axisPosition()?this.uW(a,b,c,e):this.tW(a,b,c,e)},evaluate:function(a,b,c,e){var d,f,k,h,m,p,l,n,q,t,r;if(!P(e)){if(d={},f=M(e,!0)&&g(e,d)?d.value:NaN,isNaN(f))return null;if(k=this.sW(a,b,c,!1),h=this.sW(a,b,c,!0),Z(k,Date)&&(k=ka.Ra(k)),Z(h,Date)&&(h=ka.Ra(h)),!P(k)&&!P(h))return k>h&&(m=h,h=k,k=m),l=this.wW(f,k,h,p),!l||2>ea(l)?null:(n=l[0],p=l[1],q=0>f&&this.useNegativeFillColor()?this.negativeFillColor():this.color(),t=0>f&&this.useNegativeBorderColor()?this.negativeBorderColor():this.borderColor(),r=this.axisColor(),q=fa.Om(a,q),t=fa.Om(a,t),r=fa.Om(a,r),{fillColor:q,borderColor:t,showBorder:this.showBorder(),axisColor:r,isGradient:this.gradient(),direction:this.dataBarDirection(),axisLocation:p,scale:n,showBarOnly:this.showBarOnly()})}return null},toJSON:function(){return Q.call(this,e)},fromJSON:function(a,b){K.call(this,e,a,b)}},m.extend(c.prototype,d),c.paintDataBar=function(a,b,c,e,d,f){var g,k,h,m,p,l,n,q,t;k=new C.Rect(c+2,e+2,d-4,f-4);e=k.x;var r=k.y,x=y(B(k.width*b.scale)),v=k.height;if(0===b.axisLocation)0>=b.scale&&(x=0);else if(1===b.axisLocation)0>b.scale?e=e+k.width-x:x=0;else{g=y(k.width*b.axisLocation+e)+.5;k=k.y;f-=2;a.lineWidth=1;a.strokeStyle=b.axisColor;a.beginPath();for(h=0;h<=f;h+=2)1===b.direction?(a.moveTo(2*c+d-g,k+h),a.lineTo(2*c+d-g,k+h+1)):(a.moveTo(g,k+h),a.lineTo(g,k+h+1));a.stroke();0<b.scale?e=g+1:0>b.scale?e=g-x:x=0}b.showBorder&&(e=y(e)+.5,--x,r+=.5,--v);g=e;f=e+x;1===b.direction&&(g=2*c+d-e-x,f=2*c+d-e);0<=x&&0<=v&&(m=b.fillColor,b.isGradient&&(m=a.createLinearGradient(g,r,f,r),p=N.ec(b.fillColor),l=S(p.a,y(229.5+p.r*(1-.9)),y(229.5+p.g*(1-.9)),y(229.5+p.b*(1-.9))),n=0>b.scale?1-.9:.9,q=b.fillColor,t=0>b.scale?1:0,1===b.direction?(m.addColorStop(n,q),m.addColorStop(t,l)):(m.addColorStop(n,l),m.addColorStop(t,q))),a.fillStyle=m,a.fillRect(g,r,x,v),b.showBorder&&0<x&&0<v&&(a.strokeStyle=b.borderColor,a.strokeRect(g,r,x,v)))},c}(q);w.DataBarRule=D;A=function(){return function(a,b,c){this.isGreaterThanOrEqualTo=a;this.iconValueType=b;this.iconValue=c}}();w.IconCriterion=A;r=function(a){function b(b,c){var e=b;0===arguments.length&&(e=0);a.call(this,13,null,null,null);this.ranges(c);this.ad(e)}var c,e;m.inherit(b,a);c="ruleType ranges iconSetType iconCriteria showIconOnly reverseIconOrder priority".split(" ");return e={xW:function(a){this.iconSetType(a,!1);0<=this.iconSetType()&&9>=this.iconSetType()?(this.NV=Array(2),this.NV[0]=new A(!0,4,33),this.NV[1]=new A(!0,4,67)):10<=this.iconSetType()&&14>=this.iconSetType()?(this.NV=Array(3),this.NV[0]=new A(!0,4,25),this.NV[1]=new A(!0,4,50),this.NV[2]=new A(!0,4,75)):15<=this.iconSetType()&&19>=this.iconSetType()?(this.NV=Array(4),this.NV[0]=new A(!0,4,20),this.NV[1]=new A(!0,4,40),this.NV[2]=new A(!0,4,60),this.NV[3]=new A(!0,4,80)):19<this.iconSetType()&&(this.NV=[])},ad:function(a){this.showIconOnly(!1);this.reverseIconOrder(!1);this.xW(a)},yW:function(a){var b=ea(this.NV)+1;return this.reverseIconOrder()&&2<b?b-1-a:a},pW:function(a,b,c,e){if(e=this.NV[e])switch(e.iconValueType){case 7:return this.mW(a,b,c,e.iconValue);case 1:return this.mW(a,b,c,e.iconValue);case 4:return this.nW(a,b,c,e.iconValue);case 5:return this.oW(a,b,c,e.iconValue);default:return null}},evaluate:function(a,b,c,e){var d,f,k,h,m,p,l;if(P(e)||(d={},f=M(e,!0)&&"boolean"!=typeof e&&g(e,d)?d.value:NaN,isNaN(f)))return null;if(d=0,k=this.iconSetType(),h=this.NV,15<=k?d=5:10<=k?d=4:0<=k&&(d=3),!h)return 0;e=0;for(--d;0<d;d--)if(d<ea(h)+1&&(m=h[d-1],!P(m&&m.iconValue)&&(p=this.pW(a,b,c,d-1),!P(p)&&(l=m.isGreaterThanOrEqualTo?f>=p:f>p,f<Number.MAX_VALUE&&l)))){e=d;break}return{iconSetType:k,iconIndex:this.yW(e),showIconOnly:this.showIconOnly()}},reset:function(){this.ranges(null);this.condition(null);this.style(null);this.showIconOnly(!1);this.reverseIconOrder(!1);this.iconSetType(0,!1);this.NV=null;this.stopIfTrue(!1);this.priority(1);this.minColor(null);this.minValue(null);this.minType(5);this.midColor(null);this.midValue(null);this.midType(null);this.maxColor(null);this.maxValue(null);this.maxType(7)},iconSetType:R("iconSetType",0,function(a){this.xW(a)}),reverseIconOrder:R("reverseIconOrder",!1),showIconOnly:R("showIconOnly",!1),iconCriteria:function(){return this.NV},toJSON:function(){return Q.call(this,c)},fromJSON:function(a,b){K.call(this,c,a,b)}},m.extend(b.prototype,e),b.paintIconSet=function(a,c,e,d,f,g,k,h){function p(){var b,c=arguments,e=c[0],d=c[1],f=c[2],g=c[3],k=c[4];h.ko(e)?(b=h.lo(e),5===ea(c)?a.drawImage(b,d,f,g,k):a.drawImage(b,d,f,g,k,c[5],c[6],c[7],c[8])):h.fo(e)}var l=e+1,n=d+2;c.showIconOnly&&(1===k.hAlign?l=e+f/2-8:2===k.hAlign&&(l=e+f-16-2));1===k.vAlign?n=d+g/2-8:2===k.vAlign&&(n=d+g-16-2);c=b.getIcon(c.iconSetType,c.iconIndex);try{c&&h&&("string"===m.getType(c)?p(c,l,n,16,16):p(c.image,c.x,c.y,c.w,c.h,l,n,16,16))}catch($a){}},b.zW=function(){return"data:image/png;base64,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"},b.getIcon=function(a,c){var e,d,f,g,k,h,m=[[160,180,80,null,null],[100,120,140,null,null],[900,920,880,null,null],[820,840,860,null,null],[780,1E3,420,null,null],[680,940,400,null,null],[800,1020,440,null,null],[740,1040,400,null,null],[720,980,380,null,null],[700,960,360,null,null],[160,40,60,80,null],[100,0,20,140,null],[220,340,460,760,null],[600,620,640,660,null],[200,680,940,400,null],[160,40,180,60,80],[100,0,120,20,140],[580,600,620,640,660],[480,500,520,540,560],[240,260,280,300,320]];for(e=0;e<ea(m);e++)for(d=0;d<ea(m[e]);d++)f=m[e][d],null!==f&&(m[e][d]="0,"+f+",16,16");return g=b.zW(),k=m[a][c],k?(h=k.split(","),{image:g,x:h[0],y:h[1],w:h[2],h:h[3]}):null},b}(q);w.IconSetRule=r;n=function(){function b(a){this.AW=[];this.BW=null;this.DW={};this.WS=a}return m.extend(b.prototype,{getRule:function(a){return this.AW[a]},count:function(){return ea(this.AW)},w4:function(){return this.AW},UV:function(a){var b,c,e=[],d=this.WS,f=ea(a);for(b=0;b<f;b++)c=d.Tq(a[b]),e.push(c);return e},EW:function(a){var b,c,e,d,f=[],g=this.WS;b=0;for(c=ea(a);b<c;b++)e=a[b],d=new Y(e.row,e.col,e.rowCount,e.colCount),0===e.row&&e.rowCount===g.getRowCount()&&(d.row=-1),0===e.col&&e.colCount===g.getColumnCount()&&(d.col=-1),f.push(d);return f},QV:function(){if(this.DW={},this.AW)for(var a=0;a<ea(this.AW);a++)this.FW(this.AW[a])},OV:function(){this.DW={}},FW:function(a){var b,c,e,d,f,g,k,h,m,p,l=this.DW,n=this.UV(a.ranges());d=this.WS;var q=d.getRowCount(),t=d.getColumnCount();for(d=0;d<ea(n);d++)for(b=n[d],f=b.row,g=b.col,k=b.rowCount,h=b.colCount,f+k-1>=q&&(k=q-f),g+h-1>=t&&(h=t-g),m=0;m<k;m++)for(c=m+f,(b=l[c])||(l[c]=b={}),p=0;p<h;p++)e=p+g,(c=b[e])||(b[e]=c=[]),c.push(a)},GW:function(a){var b,c,e,d,f,g,k,h,m,p,l=this.DW,n=this.UV(a.ranges());for(f=0;f<ea(n);f++)for(g=n[f],k=0;k<g.rowCount;k++)if(e=k+g.row,b=l[e])for(h=0;h<g.colCount;h++)if(d=h+g.col,c=b[d]){m=[];for(p=0;p<ea(c);p++)c[p]!==a&&m.push(c[p]);0===ea(m)&&(m=void 0);b[d]=m}},HW:function(a,b,c,e){var d,f,g,k,h,m=this.DW;for(k=0;k<c;k++)if(d=k+a,g=m[d])for(h=0;h<e;h++)f=h+b,g[f]=void 0},addSpecificTextRule:function(a,b,c,e){a=new G(2,e,c,a,null,null,b);return this.addRule(a)},addCellValueRule:function(a,b,c,e,d){a=new G(1,d,e,a,b,c);return this.addRule(a)},addDateOccurringRule:function(a,b,c){a=new G(4,c,b,null,null,null,null,null,a);return this.addRule(a)},addFormulaRule:function(a,b,c){a=new G(3,c,b,null,null,null,null,a);return this.addRule(a)},addTop10Rule:function(a,b,c,e){a=new G(5,e,c,null,null,null,null,null,a,b);return this.addRule(a)},addUniqueRule:function(a,b){var c=new G(6,b,a);return this.addRule(c)},addDuplicateRule:function(a,b){var c=new G(7,b,a);return this.addRule(c)},addAverageRule:function(a,b,c){a=new G(8,c,b,null,null,null,null,null,a);return this.addRule(a)},add3ScaleRule:function(a,b,c,e,d,f,g,k,h,m){var p;return p=0===arguments.length?new q(11):new q(11,a,b,c,e,d,f,g,k,h,m),this.addRule(p)},add2ScaleRule:function(a,b,c,e,d,f,g){var k;return k=0===arguments.length?new q(10):new q(10,a,b,c,null,null,null,e,d,f,g),this.addRule(k)},addDataBarRule:function(a,b,c,e,d,f){var g;return g=0===arguments.length?new D:new D(a,b,c,e,d,f),this.addRule(g)},addIconSetRule:function(a,b){var c=new r(a,b);return this.addRule(c)},addRule:function(a){var b,c=this.WS;if(c){if(!a)throw Error(z.C(w.SR)().Exp_RuleIsNull);for(b=0;b<ea(this.AW);b++)this.AW[b].priority(this.AW[b].priority()+1);return a.priority(1),this.AW.push(a),this.FW(a),c.$p(),a}},removeRule:function(a){var b=this.WS;b&&(a&&(this.GW(a),oa(this.AW,a)),b.$p())},IW:function(b,c,e,d,f){var g,k,m,p,l,n,q,t,r,x,y;return b.intersect(c,e,d,f)?(g=b.row,k=b.row+b.rowCount-1,m=b.col,p=b.col+b.colCount-1,l=c+d-1,n=e+f-1,q=[],-1!==g&&-1!==m&&-1!==c&&-1!==e&&(0<e-m&&(t=X(g,m,b.rowCount,e-m),q.push(t)),0<p-n&&(r=X(g,n+1,b.rowCount,p-n),q.push(r)),0<c-g&&(x=X(g,a(e,m),c-g,h(n,p)-a(e,m)+1),q.push(x)),0<k-l&&(y=X(l+1,a(e,m),k-l,h(n,p)-a(e,m)+1),q.push(y))),0<ea(q)?q:null):[b]},removeRuleByRange:function(a,b,c,e){var d,f,g,k,h,m,p,l,n,q=this.WS;if(q){if(d=[],this.AW)for(this.HW(a,b,c,e),f=0,g=ea(this.AW);f<g;f++)if(k=this.AW[f],k&&k.ranges()&&k.intersects(a,b,c,e)){h=[];m=this.UV(k.ranges());p=0;for(l=ea(m);p<l;p++)(n=this.IW(m[p],a,b,c,e))&&(h=h.concat(n));0<ea(h)?k.ranges(this.EW(h)):d.push(k)}a=0;for(b=ea(d);a<b;a++)oa(this.AW,d[a]);q.$p()}},clearRule:function(){var a=this.WS;a&&(this.AW.length=0,this.QV(),a.$p())},getRules:function(a,b){function c(a,b){if(b)for(var c=0;c<b.length;c++)a.push(b[c])}var e,d,f,g;e=this.AW;if(0===arguments.length||0===ea(e))return e;a=void 0===a?-1:a;b=void 0===b?-1:b;e=this.DW;d=[];return-1!==a&&-1!==b?(g=e[a],g&&(f=g[b],c(d,f))):-1===a?m.each(e,function(a,e){f=e[b];c(d,f)}):(g=e[a],g&&m.each(e,function(a,b){c(d,b)})),d},containsRule:function(a,b,c){return!(!a||!ja.Bb(this.AW,a))&&a.contains(b,c)},_V:function(a,b,c){var e,d,f;if(this.AW&&this.WS)for(e=ea(this.AW),d=0;d<e;d++)(f=this.AW[d])&&(c?f.rI(a,b):f.tI(a,b));this.QV()},rI:function(a,b){this._V(a,b,!0)},tI:function(a,b){this._V(a,b,!1)},aW:function(a,b,c){var e,d;if(this.AW&&this.WS)for(e=ea(this.AW),--e;0<=e;e--)(d=this.AW[e])&&(c?d.GR(a,b):d.HR(a,b),0>=d.ranges().length&&(this.GW(d),this.AW.splice(e,1)));this.QV()},GR:function(a,b){this.aW(a,b,!0)},HR:function(a,b){this.aW(a,b,!1)},Nm:function(){var a,b,c,e=this.AW;if(null!==e&&0<ea(e))for(b=0,c=ea(e);b<c;b++)a=e[b],Z(a,q)&&a.Nm()},XA:function(a,b,c,e,f,g,k){var h,m,p,l,n,q,t,r,x,y,v,w,z,u,B,A,E,F,D,M,G=[],H=[],P=[],I=this.WS;-1===a&&(a=0,e=0,g=I.getRowCount());-1===b&&(b=0,f=0,k=I.getColumnCount());for(h=0;h<g;h++)for(m=0;m<k;m++)for(p=this.getRules(a+h,b+m),l=0;l<ea(p);l++){n=p[l];q=n.ranges();t=[];for(r=0;r<ea(q);r++)x=q[r],y=I.Tq(x),v=y.row,w=y.col,z=y.rowCount,y=y.colCount,-1>=ma(P,x)&&x.contains(a+h,b+m)&&(P.push(x),u=X(e+h,f+m,-1,-1),v+z>=g+a?u.rowCount=g-h:a<v?u.rowCount=z:u.rowCount=v+z-a,w+y>=k+b?u.colCount=k-m:b<w?u.colCount=y:u.colCount=w+y-b,this===c&&x.containsRange(u)||t.push(u));0<t.length&&(B=G.indexOf(n),0>B?(G.push(n),H.push(t)):H[B]=H[B].concat(t))}a=0;for(b=G.length;a<b;a++)e=this.iga(G[a].toJSON()),f=e.ranges(),e.ranges(H[a]),(g=e.formula&&e.formula())&&(A=1===I.parent.options.referenceStyle,E=d(f),F=C.CalcEngine.formulaToExpression(I,g,E.r,E.c,A),D=d(H[a]),M=C.CalcEngine.expressionToFormula(I,F,D.r,D.c,A),e.formula(M)),c.addRule(e);this.QV()},YA:function(b,c,e,d){var f,g,k,m,p,l,n,q,t,r,x,y,v,w=[],z=this.WS;-1===b&&(b=0,e=z.getRowCount());-1===c&&(c=0,d=z.getColumnCount());for(f=0;f<e;f++)for(g=0;g<d;g++)for(k=this.getRules(b+f,c+g),m=0;m<ea(k);m++){p=k[m];l=p.ranges();n=[];for(q=0;q<ea(l);q++)t=l[q],r=z.Tq(t),x=r.row,y=r.col,v=r.rowCount,r=r.colCount,-1>=ma(w,t)&&t.contains(b+f,c+g)&&(w.push(t),b>x&&n.push(X(x,y,b-x,r)),c>y&&n.push(X(a(b,x),y,h(b+e,x+v)-a(b,x),c-y)),c+d<y+r&&n.push(X(a(b,x),c+d,h(b+e,x+v)-a(b,x),y+r-(c+d))),b+e<x+v&&n.push(X(b+e,y,x+v-(b+e),r)));for(q=0;q<ea(w);q++)oa(l,w[q]);l=l.concat(n);0<l.length?p.ranges(l):this.removeRule(p)}this.QV()},jp:function(a,b,c,e,d,f,g,k){var h,m,p,l,n,q,t,x,y=!1,v=!1,w=k.sheet,z=k.row,u=k.col,B=w.ss;if(n=B.Um(z,u))h=n.i,m=n.d;else{if(p=this.getRules(z,u),l=ea(p),0<l){p.sort(function(a,b){return a.priority()-b.priority()});t=q=n=null;for(x=0;x<l&&(!n||!q);x++)(t=p[x])&&(Z(t,D)&&(n=t),Z(t,r)&&(q=t));if(n||q)for(n=q=null,x=0;!(!(x<l)||n&&q||(t=p[x],t&&(!n&&Z(t,D)&&(n=t),!q&&Z(t,r)&&(q=t),t.stopIfTrue()&&t.evaluate(w,z,u,b))));x++);n&&(m=n.evaluate(w,z,u,b));q&&(h=q.evaluate(w,z,u,b))}B.Wm(z,u,m,h)}return(m||h)&&(a.save(),a.beginPath(),m&&(D.paintDataBar(a,m,c,e,d,f),y=m.showBarOnly),h&&((16>d||16>f)&&(a.rect(c,e,d,f),a.clip(),a.beginPath()),r.paintIconSet(a,h,c,e,d,f,g,k.imageLoader),v=h.showIconOnly),a.restore()),y||v},bp:function(a,b,c){if(P(c)||3===c)for(a=this.getRules(a,b),b=0,c=ea(a);b<c;b++)if(a[b]instanceof r)return!0;return!1},toJSON:function(){var a,b,c=[];for(a=0;a<ea(this.AW);a++)b=this.AW[a],c.push(b?b.toJSON():null);return 0===ea(c)?void 0:{rules:c}},fromJSON:function(a,b){var c,e;if(a&&a.rules){this.AW=[];for(c=0;c<ea(a.rules);c++)e=a.rules[c],(e=this.iga(e,b))&&this.AW.push(e);this.QV()}},iga:function(a,b){var c,e,d=null;return a&&(c=this.JW(),e=c[a.ruleType],e&&(d=new e,d.fromJSON(a,b))),d},JW:function(){if(!this.BW){var a={};a[0]=F;a[1]=G;a[2]=G;a[3]=G;a[4]=G;a[5]=G;a[6]=G;a[7]=G;a[8]=G;a[9]=q;a[10]=q;a[11]=q;a[12]=D;a[13]=r;this.BW=a}return this.BW},Eq:function(a,b,c,e){var d,f,g,k,h,m;if(this&&0<this.count()&&(d=this.getRules(b,c),f=ea(d),k=null,0<f))for(d.sort(function(a,b){return a.priority()-b.priority()}),h=0;h<f&&(g=d[h],!(g&&(m=this.WS,g.isScaleRule()?10!==g.ruleType()&&11!==g.ruleType()||(k=g.evaluate(m,b,c,m.getValue(b,c,e)),k&&(a||(a=new v),void 0===a.backColor&&(a.backColor=k))):(k=g.evaluate(m,b,c,m.getValue(b,c,e)),k&&(a||(a=new v),a.Yo(k,!1,1))),g.stopIfTrue()&&k)));h++);return a},Fq:function(a,b,c,e){var d,f,g,k,h,m,p={v5:!1};if(this&&0<this.count()&&(d=this.getRules(a,b),f=ea(d),k=null,0<f))for(d.sort(function(a,b){return a.priority()-b.priority()}),h=0;h<f;h++)if(g=d[h]){if(m=this.WS,g.isScaleRule()){if("backColor"===c&&Z(g,w.ScaleRule)&&(k=g.evaluate(m,a,b,m.getValue(a,b,e)))){p.Fi=k;p.v5=!0;break}}else if(k=g.evaluate(m,a,b,m.getValue(a,b,e)),k&&void 0!==k[c]){p.Fi=k[c];p.v5=!0;break}if(g.stopIfTrue()&&k)break}return p}}),b}();w.ConditionalFormats=n;U.exports=w},function(U,u){U.exports={Exp_RuleIsNull:"The argument 'rule' is null",Exp_NotSupported:"NotSupportException"}},function(U,u,l){l(123);u=l(125);u.SR={};u.SR.en=l(126);U.exports=u},function(U,u,l){function d(a,c){G(a).addClass(c)}function J(a,c){G(a).removeClass(c)}function R(a,c,d){a.css(["width","height"],[c+"px",d+"px"])}function Q(a){G(a).css(["border","margin","padding"],[0,0,0])}function K(c){return z(c)||""===c||"number"==typeof value1&&isNaN(c)?"blank":a(c)}var O=l(85),H=l(26);u=O.Go;var I=l(124),L=H.q,F={},G=O.GC$,q=O.Events,D=O.Ul.Nl,A=O.Ul,r=A.nl,n=H.k.ac,w=H.u.Ob,z=H.j.Fa,C=Math.max,c=parseFloat,m=G.inArray,h=isNaN,a=H.j.Ba,B=function(){return H.C(F.SR)()};l=function(){function a(a,c,d,h,g,f,k,m){this.rowFilter=a;this.row=c;this.col=d;this.sheetArea=h;this.x=g;this.y=f;this.width=k;this.height=m}return a.prototype.ko=function(){var a=this.rowFilter,c=this.col,d=a.getSortState(c);return a?a.isFiltered(c)?[3,4,5][d]:d:0},a}();F.eY=l;l=function(a){function l(c,d,h){var g=d.parent;a.call(this,c,A.vl(g&&g.qo));this.fY=[];this.gY=[];this.hY=[];this.iY=[];this.jY=[];this.kY=[];this.sheet=d;this.filterButtonInfo=h;this.lY=237;this.mY=318;this.nY=191;this.oY=150;this.pY=2;this.qY=1;this.rY=20;this._itemHeight=this.rY+2*this.qY+this.pY;this.sY=257;this.tY=355;this.hB=g?g.Wv():18;this.rEscape=/[\-\[\]{}()+.,\\\^$|#\s]/g;this.uY=[];this.vY=[];this.elementList=[];this.activeItemIndex=0;this.xo=this.yo();this.wY();this.xY()}G.inherit(l,a);return G.extend(l.prototype,{OT:function(){var a,c;a=this.sheet.parent;c=this.filterButtonInfo;var d=this.xo;this.yY=!!a&&a.options.useTouchLayout;this.zY(c.col);this.AY();d.appendTo(this.zo());d.hide();this.Ao(function(){G("#gc-sortASC").focus()});this.yY&&this.BY(this.sY,this.tY);d.css(["left","top"],[c.x+c.width-d.width()-6,c.y+c.height]);this.Do();this.vY=this.hY.concat([]);a=this.fY;for(c=0;c<n(a);c++)this.uY.push(a[c]);this.QQ()},BY:function(a,d){var h,g,f,k,m,l,n,q,t,e,b,r,y,w,z=a-this.lY,u=d-this.mY;0<z&&0<u&&(R(this.xo,a,d),h=G(".gc-filter-sort"),g=c(h.css("paddingTop"))+u/30,f=G(".gc-filter-button"),k=c(f.css("width"))+z/4,m=c(f.css("height"))+u/8,l=G("#gc-filterOK"),n=c(l.css("marginLeft"))+z/2,q=G("#gc-filterSearch"),t=c(q.css("width"))+z,e=c(q.css("height"))+u/8,b=G(".gc-filter-check-outerDiv"),r=c(b.css("marginTop"))+u/10,y=G("#gc-filterUnCheckAll"),w=c(y.css("marginLeft"))+z,h.css("padding",g+"px 6px"),R(f,k,m),l.css("marginLeft",n+"px"),R(q,t,e),b.css("marginTop",r+"px"),y.css("marginLeft",w+"px"))},close:function(){var c=this.sheet;a.prototype.close.call(this);G(this.CY).remove();G(this.DY).remove();c&&c.zt()},xY:function(){var a,c,h,g,f,k,m=this.elementList,n=this.table[0].children;a=n[0];c=n[1];h=n[2];k=n[3];n=n[4];g=this.EY("gc-sortASC",B().SortAscending).css("marginTop","6px");f=this.EY("gc-sortDES",B().SortDescending);G(a.children[0]).append(G(D("img")).attr("src",l.zW(6)));G(c.children[0]).append(G(D("img")).attr("src",l.zW(7)));G(a.children[1]).append(g);G(c.children[1]).append(f);m.push(g[0]);m.push(f[0]);a=G(D("div")).css(["margin","padding"],[0,0]);c=G(D("div")).appendTo(a);c=G(D("input")).attr({type:"search",placeholder:B().Search,id:"gc-filterSearch"}).appendTo(c);d(a[0],"gc-search-outer-div ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix");m.push(c[0]);c=G(D("div")).appendTo(a);g=this.FY("gc-filterCheckAll",B().CheckAll,"gc-check-image ui-icon ui-icon-check");f=this.FY("gc-filterUnCheckAll",B().UncheckAll,"gc-uncheck-image ui-icon ui-icon-closethick");d(c[0],"gc-filter-check-outerDiv");c.append(g).append(f);G(h.children[1]).append(a);h=this.itemList=G(D("div")).css(["width","height","box-sizing"],[this.nY,this.oY,"content-box"]);d(h[0],"gc-filter-item-container");G(k.children[1]).append(h);k=D("button");h=D("button");a=G(k).text(B().OK).css("font-size","1em").attr("id","gc-filterOK");c=G(h).text(B().Cancel).css("font-size","1em").attr("id","gc-filterCancel");d(k,"gc-filter-button gc-filter-button-default ui-button ui-state-default ui-corner-all btn btn-default");d(h,"gc-filter-button gc-filter-button-default ui-button ui-state-default ui-corner-all btn btn-default");G(n.children[1]).append(a).append(c);m.push(k);m.push(h)},wY:function(){var a,c,h,g,f=this.xo,k=this.table=G(D("table")).css(["padding","display"],[0,"table"]).attr({cellspacing:0,cellpadding:0});d(k[0],"gc-layout-table");for(a=0;5>a;a++)for(c=D("tr"),h=G(c).appendTo(k),Q(c),c=0;3>c;c++)g=D("td"),G(g).appendTo(h),Q(g),0===c?d(g,"gc-layout-table-first-column"):2===c?d(g,"gc-layout-table-last-column"):1===c&&(0===a?d(g,"gc-filter-sort-asc-container gc-sort-container ui-menu-item"):1===a&&d(g,"gc-filter-sort-desc-container gc-sort-container ui-menu-item"));this.table.appendTo(f);f.css(["box-shadow","padding","width","height","box-sizing"],["rgba(0, 0, 0, 0.4) 2px 4px 5px","2px",this.lY+"px",this.mY+"px","content-box"]);d(f[0],"gc-filter-dialog-style gc-no-user-select")},GY:function(a){var c,d,g;d=a.originalEvent;g=a.wheelDelta;var f=a.detail;c=this.jY;var k=n(c),h=this.gY,l=n(h),q=0;z(g)&&z(f)&&(g=d.wheelDelta,f=d.detail);d=f?f:g/-40;g=a.wheelDeltaY;A.sl()&&g&&(d=g/-40);d=(0<=d?1:-1)*Math.floor(Math.abs(d));k&&(q=m(G(c[0]).text(),h));c=q+d;c>l-k&&(c=l-k);0>c&&(c=0);this.HY(c);r(a)},QQ:function(){var a=this,c=a.IY,h=!1,g=!1,f=G(".gc-filter-item"),k=G(".gc-filter-button");c.addEventListener("mousewheel",function(c){a.GY(c)},!1);c.addEventListener("DOMMouseScroll",function(c){a.GY(c)},!1);G("#gc-sortASC").bind("mouseup",function(c){h&&(h=!1,a.JY(!0),a.close(),r(c))}).bind("mousedown",function(a){r(a);h=!0});G("#gc-sortDES").bind("mouseup",function(c){g&&(g=!1,a.JY(!1),a.close(),r(c))}).bind("mousedown",function(a){r(a);g=!0});G(".gc-filter-sort").bind("mouseover",function(){J(G(".gc-filter-hover")[0],"ui-state-hover gc-filter-item-hover");d(this,"gc-filter-hover form-control well ui-state-hover gc-filter-item-hover")}).bind("mouseout",function(){J(this,"gc-filter-hover form-control well ui-state-hover gc-filter-item-hover")});G("#gc-filterCheckAll").bind("mousedown",function(a){r(a)}).bind("mouseup",function(c){a.KY(c,!0)});G("#gc-filterUnCheckAll").bind("mousedown",function(a){r(a)}).bind("mouseup",function(c){a.KY(c,!1)});f.bind("mouseover",function(){J(G(".gc-filter-hover")[0],"ui-state-hover gc-filter-item-hover");d(this,"gc-filter-hover form-control well ui-state-hover gc-filter-item-hover")}).bind("mouseout",function(){J(this,"gc-filter-hover form-control well ui-state-hover gc-filter-item-hover")}).bind("click",function(){G(this).find("input")[0].click()});f.find("input").bind("click",function(c){c&&c.stopPropagation?c.stopPropagation():window.event.cancelBubble=!0;a.LY(G(this).parent()[0]);a.MY()});G("#gc-filterSearch").bind("keydown",function(a){13===(a.which||a.keyCode)&&a.preventDefault()}).bind("keyup",function(c){0>m(c.keyCode,[9,37,38,39,40])&&(a.NY(c),a.MY())}).bind("search",function(c){a.NY(c);a.MY()});k.bind("mouseover",function(){d(this,"gc-filter-button-hover ui-state-hover ")}).bind("mouseout",function(){J(this,"gc-filter-button-hover ui-state-hover ")});k.bind("mousedown",function(){J(this,"gc-filter-button-hover ui-state-hover ");d(this,"gc-filter-button-active")}).bind("mouseout",function(){J(this,"gc-filter-button-active")});G("#gc-filterOK").bind("click",function(){var c=a.hY;a.OY(c);a.PY(c);a.close()});G("#gc-filterCancel").bind("click",function(){a.close()});a.xo.bind("mousewheel",function(a){r(a)}).bind("DOMMouseScroll",function(a){r(a)}).bind("keydown.ui-filter-dialog",function(c){a.QY(c)}).bind("keyup.ui-filter-dialog",function(a){r(a)})},KY:function(a,c){var d=[],g;this.kY.forEach(function(a){(g=a.style)&&"none"!==g.display&&d.push(a)});G(d).find("input").prop("checked",c);this.hY=c?this.gY.concat([]):[];this.MY();r(a)},QY:function(a){var c,h,g,f,k,l,q,t,y,w=this.elementList,e=G(".gc-filter-item-hover"),b=e[0],v=m(a.which||a.keyCode,[27,13,38,40,9]);if(0===v)this.close(),r(a);else if(1===v&&1===n(e))a=e.attr("id"),c="gc-sortASC"===a,h=this.hY,c||"gc-sortDES"===a?(this.JY(c),this.close()):"gc-filterCancel"===a?this.close():(this.OY(h),this.PY(h),this.close());else if(1<v){if(h=this.gY,n(e)){g=this.activeItemIndex;f=w.concat([]);J(e,"ui-state-hover gc-filter-item-hover");for(k=0;k<n(h);k++)f.splice(-2,0,h[k]);if(4===v){if(l=w.concat([]),q=m(b,this.kY),f=a.shiftKey,h[g]&&l.splice(-2,0,h[g]),0<=q)c=f?w[2]:this.RY(w[3])?w[4]:w[3];else{if(q=m(b,l),0<=q){for(c=f?l[q-1]:l[q+1];f&&0<q&&this.RY(c);)c=l[--q-1];for(;!f&&this.RY(c)&&q<n(l);)c=l[++q+1]}f&&!c&&(c=l[n(l)-1])}c||(c=l[0])}else if(0<=m(b,this.kY)&&(b=G(b).find("span.gc-filter-item-text").text()),t=m(b,f),l=3===v,0<=t){c=l?f[t+1]:f[t-1];for(0<=m(c,h)&&0>m(b,h)&&(t=l?t+g:g+3,c=l?f[t+1]:f[t]);l&&t<n(f)&&this.RY(c);)c=f[++t+1];if(!l){for(;0<t&&this.RY(c);)c=f[--t-1];c||(c=f[n(f)-1])}c||(c=f[0])}}else c=w[0];"string"===typeof c?(y=this.SY(c,h),y&&(e=y)):(e=G(c),e.focus());d(e,"gc-filter-hover ui-state-hover gc-filter-item-hover");r(a)}},SY:function(a,c){var d=m(a,c),g=null,f=this.jY,k=m(G(f[0]).text(),c);return 0<=d&&(this.activeItemIndex=d,d<k?(this.HY(d),g=G(f[0]).parent()):g=0<=this.TY(a,f)?this.UY(a,k+1):this.UY(a,d-n(f)+1),g.find("input").focus()),g},TY:function(a,c){for(var d in c)if(G(c[d]).text()===a)return d;return-1},UY:function(a,c){for(var d,g,f,k,h,m,l=null,q=this.jY;!((d=this.TY(a,q),0<=d&&(l=G(q[d]).parent(),g=this.Pt,f=!0,this.fB&&g&&0<n(l)&&"none"!==l.css("display")&&(k=l.offset().top+this._itemHeight,h=g.Bv(),m=G(h).offset().top,k>m&&(f=!1)),f))||(this.HY(c),c++,c>=n(this.gY))););return l},LY:function(a){var c,d,g,f=this.hY;(a=G(a).find("span.gc-filter-item-text"))&&(c=a.text(),d=m(c,f),g=m(c,this.gY),0>d?f.push(c):f.splice(d,1),0<=g&&(this.activeItemIndex=g))},RY:function(a){return"string"!==typeof a&&(a=G(a),0!==n(a)&&!!(a.hasClass("ui-button-disabled")||a.hasClass(" ui-state-disabled")||a.hasClass("gc-filter-button-disable")))},PY:function(a){var c,d,g,f,k,h=this.sheet;if(h)try{if(h.suspendPaint(),c=this.filterButtonInfo,d=c.rowFilter,d)g=c.col,k=(f=d.table&&d.table())?g-f.range().col:-1,a&&(f?h.Wq(q.TableFiltering,{sheet:h,sheetName:h.Cj,table:f,tableCol:k,filterValues:a}):h.Wq(q.RangeFiltering,{sheet:h,sheetName:h.Cj,col:g,filterValues:a})),d.filter(g),a&&(f?h.Wq(q.TableFiltered,{sheet:h,sheetName:h.Cj,table:f,tableCol:k,filterValues:a}):h.Wq(q.RangeFiltered,{sheet:h,sheetName:h.Cj,col:g,filterValues:a}))}finally{h.resumePaint()}},OY:function(a){var c,d,g;c=this.filterButtonInfo;var f=c.col,k=c.rowFilter,h=n(a),m=B().Blanks;if(k&&(k.removeFilterItems(f),h!==n(this.fY)))for(c=0;c<h;c++)d=a[c],d===m&&(d=""),g=new I.Condition(2),g._ps.compareType=0,g._ps.expected=d,g._ps.useWildCards=!1,k.addFilterItem(f,g)},NY:function(){var a,c,d,g=G.trim(G("#gc-filterSearch").val().toLowerCase()),f=G(".gc-filter-item-container").find("input"),k=f.parent(),h=this.vY;g?(k.hide(),f.prop("checked",!1),a=L.ub(g),c=[],a||(d=RegExp(g.replace(this.rEscape,"\\$\x26"),"gi")),G.map(this.uY,function(f){var g=a&&L.sb(a).exec(f);(g&&0===g.index||!a&&-1!==f.search(d))&&c.push(f)}),this.gY=c.concat([]),this.hY=c.concat([]),this.activeItemIndex=0,this.HY(0)):(k.show(),n(h)?(f.prop("checked",!1),this.gY=this.fY.concat([]),this.hY=h.concat([]),this.HY(0)):this.vY=this.hY.concat([]))},EY:function(a,c){var h=G(D("a"));return h.attr({id:a,href:"javascript:void(0)"}).text(c).css("display padding cursor margin text-decoration text-align font-size outline height".split(" "),"block;5px 6px;default;2px 0 1px 2px;none;left;12px;none;inherit".split(";")),d(h[0],"gc-filter-sort ui-corner-all "),h},FY:function(a,c,h){var g=D("span");c=G(D("span")).text(c);var f=D("a"),k=G(f);return d(g,"gc-check-uncheck-all "+h),k.attr({href:"javascript:void(0)",id:a}).css(["float","marginLeft","padding","font-size","height"],["left","7px","0","12px","16px"]).append(G(g)).append(c),d(f," gc-filter-check gc-filter-check-style"),k},zY:function(a){var c,d,g,f,k,h,m,l,n,q,e,b,t,r=this.filterButtonInfo.rowFilter;if(r){if(c=this.sheet,d=[],g=[],f=B().Blanks,k=!1,m={},l=c.Tq(r.range),h=l.col,a>=h&&a<h+l.colCount)for(h=0;h<l.rowCount;h++)n=l.row+h,q=c.getText(n,a),e=c.getValue(n,a),b=0<c.getRowHeight(n),q=q?q.trim():q,""===q?k||(k=!0,d.push({text:f,value:e}),b&&g.push(f)):m[q]||c.getRowVisible(n,3,!0)&&c.Yr(n)&&(b&&g.push(q),(b||!r.isFiltered()||r.ija(n,a))&&(d.push({text:q,value:e}),m[q]=!0));this.hY=g;t={date:0,number:1,string:2,"boolean":3,blank:4};d.sort(function(a,b){var c=a.value,e=b.value,d=K(c),f=K(e);return d!==f?t[d]<t[f]?-1:1:c>e?1:c<e?-1:0});this.fY=d=d.map(function(a){return a.text});this.gY=d.concat([]);r.isFiltered(a)||(this.hY=d.concat([]))}},AY:function(){var a,c,h,g,f,k,m,l,q,t,r,e,b,y;b=0;var z=this.nY,u=this.oY;y=this.pY;var B=this.qY;k=this.sY-this.lY;a=this.tY-this.mY;var A=this.itemList;this.yY&&(b=a/4,z+=k,u+=a/2,this.oY=u,this.nY=z,R(A,z,u),this._itemHeight+=b);this.defaultItemWidth=z-2*y-2*B;a=this.fY;c=this._itemHeight;h=Math.round(u/c);f=g=0;this.IY=k=D("div");d(k,"gc-filter-item-wrapper");for(m=0;m<n(a);m++)g+=c,m>=h||(l=a[m],q=D("div"),t=D("input"),r=D("span"),e=G(q),f=C(this.XY(l),f),d(q,"gc-filter-item ui-corner-all gc-no-user-select"),e.css("display padding border-width margin height box-sizing".split(" "),["block",b/2,B+"px",y+"px",this.rY+"px","content-box"]).attr("unselectable","on").appendTo(G(k)),d(t,"gc-filter-item-input"),G(t).attr({style:"margin: 3px; padding: 0",type:"checkbox",value:l}).appendTo(e),d(r,"gc-filter-item-text"),G(r).html(w(l)).appendTo(e),this.kY.push(q),this.iY.push(t),this.jY.push(r));this.YY=f;this.ZY=g;A.empty();l=D("table");q=D("tr");t=D("tr");r=D("td");e=D("td");b=D("td");this.$Y=y=D("td");this._Y=b;Q(q);Q(t);Q(r);Q(b);Q(y);Q(e);q.appendChild(r);q.appendChild(b);t.appendChild(y);t.appendChild(e);l.appendChild(q);l.appendChild(t);r.appendChild(k);Q(l);G(l).css(["width","height"],[z,u]).attr({cellspacing:0,cellpadding:0,border:0});this.aZ();A.append(l);this.bZ();this.cZ()},HY:function(a){var c,d,g,f,k=this.gY,h=this.jY,m=this.St,l=0,q=a;for(c=0;c<n(h);c++)d=h[c],g=this.iY[c],f=k[a++],d&&f&&""!==f?(G(g).attr("value",f),G(d).html(w(f)).parent().show(),l=C(this.XY(f),l)):(G(g).attr("value",""),G(d).html("").parent().hide());this.YY=l;this.ZY=n(k)*this._itemHeight;this.aZ();m&&m.value(q);this.bZ();this.cZ()},aZ:function(){var a,c=this.YY,d=this.nY,g=this.oY,f=this._itemHeight,k=this.hB,h=d-k,m=g-k,l=this.vB(c,this.ZY,d,g),q=l.wB,l=l.xB,t=G(this._Y),e=G(this.$Y);if(q){l||(m+=k);this.St||this.dZ(!1);a=Math.floor(m/f);var b=this.St,r=m,y=n(this.gY)-a,w=a-1;b.Vo(k);b._v(r);b.bw(0);b.cw(y);b.dw(a);b.qB(1);b.rB(w);b.ew();t.show();this.gB=!0}else t.hide(),this.gB=!1;l?(q||(h+=k),this.Pt||this.dZ(!0),a=this.Pt,c-=h,b=t=h,a.Vo(h),a._v(k),a.bw(0),a.cw(c),a.dw(t),a.qB(f),a.rB(b),a.ew(),e.show(),this.fB=!0):(e.hide(),this.fB=!1);l||q||(m=g,h=d);G(this.IY).css(["width","height","overflow"],[h,m,"hidden"])},dZ:function(a){var c=this,d=new O.hv(a),g=d.Bv();a?(c.Pt=d,c.$Y.appendChild(g)):(c.St=d,c._Y.appendChild(g));G(g).bind("scroll.gcScrollbar",function(d,g){var f=g.scrollOrientation,k=g.newValue;0<=m(g.scrollEventType,[0,1,2,3,5])&&(a?0===f&&G(".gc-filter-item").css("left",0-k):1===f&&c.HY(k))})},vB:function(a,c,d,g){var f=this.hB,k={xB:!1,wB:!1};return a>d&&(k.xB=!0,k.wB=!!(c>g-f)),c>g&&(k.wB=!0,k.xB=!!(a>d-f)),k},XY:function(a){var m,l,g,f,k,n,q,t,r,y;return this.CY||(m=D("input"),l=D("span"),g=document.body,f=G(m).attr("type","checkbox").addClass("gc-filter-item-input"),k=G(l),d(m,"gc-filter-item-input"),d(l,"gc-filter-item-text"),this.DY=m,this.CY=l,g.insertBefore(m,null),g.insertBefore(l,null),n=c(f.css("marginLeft"))+c(f.css("marginRight")),q=c(f.css("paddingLeft"))+c(f.css("paddingRight")),t=c(k.css("marginLeft"))+c(k.css("marginRight")),r=c(k.css("paddingLeft"))+c(k.css("paddingRight")),h(n)&&(n=0),h(q)&&(q=0),h(t)&&(t=0),h(r)&&(r=0),this.eZ=f.width()+n+q,this.fZ=t+r,f.css("display","none"),k.css("display","none")),y=G(this.CY).html(w(a)).width(),y+this.eZ+this.fZ+1+2*this.pY+2*this.qY},bZ:function(){var a=this.defaultItemWidth,a=this.fB?this.YY:this.gB?a-this.hB:a;G(this.kY).css("width",a)},cZ:function(){var a={};G.each(this.hY,function(c,d){a[d]=d});this.iY.forEach(function(c){G(c).prop("checked",!z(a[G(c).val()]))})},JY:function(a){var c,d,g=this.filterButtonInfo,f=g.rowFilter,k=this.sheet;f&&k&&k.hK()&&(c=g.col,d={sheet:k,sheetName:k.Cj,col:c,ascending:a,cancel:!1},k.Wq(q.RangeSorting,d),d&&!1===d.cancel&&(k.suspendPaint(),f.sortColumn(c,a),k.resumePaint(),k.Wq(q.RangeSorted,d)))},MY:function(){var a=G("#gc-filterOK");0<n(this.hY)?(a.prop("disabled",!1),J(a[0],"ui-button-disabled ui-state-disabled gc-filter-button-disable")):(a.prop("disabled",!0),d(a[0],"ui-button-disabled ui-state-disabled gc-filter-button-disable"))}}),l.zW=function(a){return 0===a?"data:image/png;base64,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\x3d\x3d":1===a?"data:image/png;base64,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":2===a?"data:image/png;base64,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":3===a?"data:image/png;base64,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":4===a?"data:image/png;base64,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":5===a?"data:image/png;base64,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\x3d\x3d":6===a?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABy0lEQVR42pyST2gTQRTGv9nEpCnqTasHES8VLCioiFDIYYum+I/ebFXQm1BbsdSDhKgoXhS8tLQSqAhexIInETwJIqJiexJEZXupwRJNbRsy2Z3dzHxesjGEChs/eMx7A+837817giQAYCD3cZuScqG8Wtj19tG5n/iHhBAkKcLYCh3fdSd04HXCq5xHG2oAdOAdNIG3qAJ5tW1A/9hrm8ZsV+7vDLTe2nsmP9AWwATuXe27330lLwvLkloHY5EBR0dexkB0xxKp9Ieno8MbOjYP1ZRMHz77YE8kAMk35V/fkpWSc6L3dL7Tl6uPAaAm155EAYhwjFHVOsY4AEwPXXkG7W+0EqmCodlRW17oCkrO5Pjc55lon7i2mBqenc7ETTmLFWdvaenLpijJDUBcywsAYFRwu/jja1dMWNfWKf2WEOJ43T8ihLgHACAJkpgZvNQ3kTnJG/u6Z8O7ZgNwAACbzCb5dxNVLPnQW3aKyY7EKABM2XZPcwUk5wG8qIfvSL5qtJAfHLnvF+Z2GsPr2fefipPH0luq5aXsOi3frJ+5xhSm+k/1VErOxRWlqgkrfujO/t191ZqxLeB5azbJeSFELnz9v/agVX8GAIjG5r9I9yjkAAAAAElFTkSuQmCC":7===a?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsSAAALEgHS3X78AAAAGXRFWHRTb2Z0d2FyZQBQYWludC5ORVQgVjMuNS41Tib51gAAAXlJREFUOE9jYACCqRH5a6eGZu6cHl00d2pUwa6J7r4Xe4w1U0ByWMB/DLHJnoHbQIKzI1PEp3r6vKjVU72HQzNIGNOA6W5uYiCZmUHxM+v0Vf836KuHkWQASPGciGznSe6+/+v01Vbh0YzdBeBwiC560GWi+aLVXEccxJ/i6KhNdBjMCM/u7be3+99hpJEK0jTJ01a0y1hjKVEGTHH31e4w1vxSrqP0tVZPbXazodqKSl2VV9W6KnOJMoCAf4mLRpAq/+pTEh4F+79aJSwGxwjJseBZdHCVa/b2/1YR00vJMsAtd+c957T1D42De17iMKARKO4NTUiuQLoLrs694IAT0PbvNrFzNYwDOv9bRc4IwGKIMVQzKCWCsBNcDVDzaafUdbfMwiZNMwnq/mIeNvkgDldsgWo+hqyZ2TVr+0egIRIgQcuomb7G/h3/zaOmaeFxBcJ2l6xtx8xDJ/6wDJ+cYhU2g8vYv/M9yABj//aLOFxRTUbU49YCALt6h216b0oVAAAAAElFTkSuQmCC":8===a?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAKBJREFUOE+l0cENwjAMBdCM0BEYhZG6AjdvwQhMUvXQI0KcKo6IY2/9v0qQnVilFoenJF+2q6RJRP7ihhFuGOGGO851Zg4/9PCGi8oOD+iAzQM8c7bRRTX9pStMmbnGd1Nhwz2vbOD+ATcwteagjPBSZuAVTmBqzUHhnTnkA2wkPmJT2wRKGbLk1avZHUAcwldv/n/hhhFuGOGGEW54nKQVV2qyDejeW7YAAAAASUVORK5CYII\x3d":9===a?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAHpJREFUOE+lz8ENgDAMA8COxEiMkxWYgkmYhCGgllpkUz8aeJyQrVQJJSJ+sWWGLTNsmWHLaq22amkZX2T0MiuB7ASPOMusBIKNh9Evekh4weaTDOfDUDTYdBnTF/AjbOYssxJIf9Q39ouG35DwhS0zbJlhywxbzotyAztMtZGgPPrJAAAAAElFTkSuQmCC":""},l}(u);F.gZ=l;U.exports=F},function(U,u){U.exports=GC.Spread.Sheets.ConditionalFormatting},function(U,u,l){function d(c,d,h,a){var m,l;for(l=0;l<n(c);l++)if(m=c[l],m&&m.row===d&&m.col===h&&m.sheetArea===a)return m;return null}function J(c,d){var h=c.conType(),a=c.compareType();2===h||7===h?-1===D(d,"T")&&d.push("T"):3===h?0===a&&-1===D(d,"BC")?d.push("BC"):1===a&&-1===D(d,"FC")&&d.push("FC"):-1===D(d,"V")&&d.push("V")}function R(){this.hZ()}var Q,K=l(85),O=l(26),H=l(124),I=l(123),L=H.$V,F=K.kf,G=O.j.Fa,q=parseInt;u=O.k;var D=u.Cb,A=u.Bb,r=u.Fb,n=u.ac,w=K.GC$,z=w.each,C=I.eY;w.extend(K.Worksheet.prototype,{rowFilter:function(c){var d=this.xr,h=this.filterRowsVisibleInfo;return n(arguments)?(d&&d.reset(),d=this.xr=c,d?this.xr.kj=this:h&&h.hZ(),this.$p(),this):d},iZ:function(){var c,d,h,a,l,q,t,r,w,p,g=[],f=this.rowFilter(),k=f&&f.range,x=this.tables;if(k&&(a=k.row,l=k.col,t=0>l?this.getColumnCount():l+k.colCount,d=0>l?0:l,1>a?(c=this.getRowCount(1)-1,q=1):(c=a-1,q=3),0<=c))for(;d<t;)f.filterButtonVisible(d)?(r=this.getSpans(F(c,d,1,1),q),h=new C(f),h.sheetArea=q,h.row=c,n(r)?(w=r[0],h.row=w.row,h.col=w.col,d+=w.colCount):(h.col=d,d++),g.push(h)):d++;return x&&(p=x.all(),z(p,function(a,f){if(c=f.headerIndex(),f&&f.showHeader()&&0<=c){var k=f.range(),m;for(m=0;m<k.colCount;m++)d=k.col+m,f.filterButtonVisible(m)&&(h=new C(f.rowFilter(),c,d,3),g.push(h))}})),g},jZ:function(){var c=this.kZ;return!c&&I&&(c=this.kZ=this.iZ()),c},Ps:function(c,d){var h=this.filterRowsVisibleInfo;return G(d)&&(d=3),!(3!==d&&2!==d||!h||h.lZ(c))},Nu:function(){return this.filterRowsVisibleInfo.mZ()},oK:function(c,d){var h=this._zoomFactor,a=this.parent,m=3===d||void 0===d?this.defaults.rowHeight:this.defaults.colHeaderRowHeight,l=q(""+Math.min(20,m)*(1<h?1:h));return a&&a.options.useTouchLayout&&(l=q(""+m*h)),{x:c.x+c.width-l,y:c.y+c.height-l,width:l,height:l}}});K.Worksheet.$n("filter",{init:function(){var c=this;c.xr=null;c.filterRowsVisibleInfo=new R;c.Wr.push({Xr:function(d){return c.filterRowsVisibleInfo.lZ(d)}})},setHost:function(c){if(c){var d=this;c.bind("mousedown.filter",function(c){var a=d.Vs();(c=d.hitTest(c.pageX-a.left,c.pageY-a.top).filterButtonHitInfo)&&c.rowFilter.openFilterDialog(c)})}},onLayoutChanged:function(c){var d=c.changeType,h=c.row,a=c.rowCount,l=c.col;c=c.colCount;var n=this.xr;return"invalidateLayout"===d?void(this.kZ=null):void(n&&("addRows"===d?n.rI(h,a):"deleteRows"===d?n.GR(h,a):"addColumns"===d?n.tI(l,c):"deleteColumns"===d?n.HR(l,c):"clear"===d&&n.range&&n.$b(h,l,a,c)))},dispose:function(){var c=this._filterDialiog;w(this.Ws()).unbind("mousedown.filter");c&&c.close()},toJson:function(c){var d=this.xr;d&&(c.rowFilter=d.toJSON())},fromJson:function(c,d){var h,a,m,l=c.rowFilter;l&&I&&(h=l.typeName,h&&"HideRowFilter"!==h?(a=K.getTypeFromString(h),a&&(m=new a)):m=new Q,m&&(this.xr=m,m.kj=this,m.fromJSON(l,d),m.reFilter()))},paintCell:function(c){var m,h,a,l,n;a=c.cell;l=a.width;h=a.height;n=a.cellLayout;var q=this.vu(),r=this.jZ(),w=[],p=c.ctx;if(p.save(),p.beginPath(),p.lineWidth=1,p.fillStyle="#FFFFFF",p.strokeStyle="#CCCCCC",(!n||!A(w,n))&&r&&0<l&&0<h&&(m=d(r,a.row,a.col,c.sheetArea))){c=new C(m.rowFilter,m.row,m.col,m.sheetArea,a.x,a.y,l,h);h=this.oK(new K.Rect(c.x,c.y,c.width,c.height),c.sheetArea);m=h.width;a=h.height;l=h.x;h=h.y;n=I.gZ.zW(c.ko());p.save();p.rect(c.x,c.y,c.width,c.height);p.clip();p.beginPath();p.fillRect(l+1,h+1,m-3,a-3);p.strokeRect(l+1-.5,h+2-.5,m-3,a-4);try{q.ko(n)?p.drawImage(q.lo(n),l,h+1,m-3,a-3):q.fo(n)}catch(g){}p.beginPath();p.restore()}p.restore()}});I.FilterActionType={filter:0,unfilter:1};u=function(){function c(c){this.range=c;this.reset();this.typeName="";this.filterHandler=null}return c.prototype={filterButtonVisible:function(c,d){var a=this.kj,h=this.range,m=this.oZ(h),h=this.pZ(h,a),l=arguments,q=this.qZ,r=c>=m&&c<h,p=n(l),l=l[0],g=typeof l;if(0===p){for(;m<h;m++)if(q[m]||void 0===q[m])return!0;return!1}if(1===p){if("number"===g)return r&&void 0===q[c]&&(q[c]=!0),q[c];if("boolean"===g)for(;m<h;m++)q[m]=l}else 2===p&&r&&(q[c]=d);return a&&a.$p(),this},oZ:function(c){return 0>c.row?0:c.col},pZ:function(c,d){return 0>c.row?d.getColumnCount():c.col+c.colCount},addFilterItem:function(c,d){var a=this.kj,h=this.range,m=this.rZ,l=m[c];if(G(d))throw Error(O.C(I.SR)().Exp_FilterItemIsNull);if(-1>c||c>=a.getColumnCount())throw Error(O.C(I.SR)().Exp_InvalidColumnIndex);h&&!(h=a.Tq(h),c<h.col||c>=h.col+h.colCount)&&(l||(l=[]),l.push(d),m[c]=l)},removeFilterItems:function(c){this.NX(c);this.unfilter(c)},NX:function(c){var d=this.rZ;this.sZ(c);d[c]&&d.splice(c,1,null)},unfilter:function(c){var d,a,m=this.kj;if(m){if(d=[],a=this.Je,G(c))for(c=n(a)-1;0<=c;c--)d.push(a[c]),this.OX(a[c]);else d.push(c),this.OX(c),this.reFilter();this.tZ(m,1,d)}},uZ:function(c){var d,a,m,l,n;a=this.range;if((this.OX(c),this.rZ[c]&&a)&&(d=a.col,-1===d||!(c<d||c>=d+a.colCount))){a=this.kj.Tq(a);d=a.row;a=a.rowCount;m=this.vZ(c,d,a);n=this.wZ(d,a,c,m);for(l=d;l<d+a;l++)this.isRowFilteredOut(l)||this.xZ(n,l,c,m);this.RX(c,!0)}},vZ:function(c,d,a){var h,m,l,q,r,p,g=this.kj;h=this.rZ[c];var f,k=[];for(m=0;m<n(h);m++)l=h[m],0===l.conType()?(r=l.item1(),f=l.item2(),r&&J(r,k),f&&J(f,k)):J(l,k);f={};var x=n(k);for(h=d;h<d+a;h++){r={};for(m=0;m<x;m++)l=k[m],"T"===l?(p=g.getText(h,c),r[l]=p?p.trim():p):"BC"===l?(q=g.getActualStyle(h,c),q&&(r[l]=q.backColor)):"FC"===l?(q=g.getActualStyle(h,c),q&&(r[l]=q.foreColor)):"V"===l&&(r[l]=g.getValue(h,c));f[h]=r}return f},filter:function(c){var d,a=this.kj,m=this.rZ;if(a){if(d=[],G(c))for(c=0;c<n(m);c++)m[c]&&(d.push(c),this.uZ(c));else{if(!m[c])return;d.push(c);this.uZ(c)}this.tZ(a,0,d)}},tZ:function(c,d,a){c.AR&&c.AR();d=this.SX(d,a);this.filterHandler&&this.filterHandler(d);this.onFilter(d);c.$p()},SX:function(c,d){var a,h,m,l=this.kj,n=this.range,q=[],p=[];if(n)for(a=l.Tq(n),m=h=a.row;m<h+a.rowCount;m++)this.isRowFilteredOut(m)?p.push(m):q.push(m);return{action:c,sheet:l,range:n,filteredRows:q,filteredOutRows:p,columns:d}},onFilter:function(){},isFiltered:function(c){var d=this.Je;return arguments.length?A(d,c):0<d.length},isRowFilteredOut:function(c){var d,a,m=this.range;return!(!this.isFiltered()||!m)&&(d=m.row,a=this.LX[c],!(-1!==d&&(c<d||c>=d+m.rowCount)||n(a)>=n(this.Je)))},reset:function(){this.unfilter();this.rZ=[];this.Je=[];this.yZ=[];this.LX={};this.qZ={};this.zZ=null},Dl:function(c,d,a){var h,m,l,n=!1,q=this.kj,p=this.range;return p&&(p=q.Tq(p,a),h=p.row,m=p.col,l=d>=m&&d<m+p.colCount,1===a&&c===q.getRowCount(a)-1&&0>h-1&&l?n=!0:3===a&&c===h-1&&l&&(n=!0)),n},getFilterItems:function(c){return this.rZ[c]||[]},getFilteredItems:function(){return this.yZ},sortColumn:function(c,d){var a,h,m,l=this.kj;l&&(a=l.Tq(this.range),l.suspendPaint(),h={index:c,ascending:d},m=l.sortRange(a.row,a.col,a.rowCount,a.colCount,!0,[h]),m&&(this.zZ=h,this.isFiltered(c)&&this.reFilter()),l.resumePaint())},getSortState:function(c){var d=this.zZ,a=0;return d&&d.index===c&&(a=d.ascending?1:2),a},reFilter:function(){var c,d=this.Je,a=n(d);this.LX={};this.yZ=[];this.Je=[];for(c=0;c<a;c++)this.filter(d[c])},openFilterDialog:function(){},QX:function(c,d){var a=this.LX,h=a[c];G(h)?h=[d]:(A(h,d)&&r(h,d),h.push(d));a[c]=h},PX:function(c){var d=this.yZ;A(d,c)||d.push(c)},OX:function(c){var d=this.LX,a,m;if(this.range&&this.isFiltered(c)){this.RX(c,!1);for(a in d)a&&(m=d[a],m&&A(m,c)&&(r(m,c),n(m)||(d[a]=void 0)));this.sZ(c)}},RX:function(c,d){var a=this.Je;if(d){if(n(a)){if(a[n(a)-1]===c)return;r(a,c)}a.push(c)}else r(a,c)},sZ:function(c){var d,a=this.rZ,m=a.length,l=[],n=[];for(d=0;d<m;d++)d===c?l=l.concat(a[d]):n=n.concat(a[d]);c=l.length;for(d=0;d<c;d++)A(n,l[d])||r(this.yZ,l[d])},wZ:function(c,d,a,l){var h,m,q;q=this.rZ[a];var r={},p=[];for(h=0;h<n(q);h++)m=q[h],2!==m.conType()||0!==m.compareType()||m.forceValue2Text()||m.useWildCards()||m.ignoreCase()||m.ignoreBlank()?p.push(m):r[m.expected()]=m;for(h=c;h<c+d;h++)q=this.isRowFilteredOut(h),r[l[h].T]&&(this.QX(h,a),q||this.PX(m));return p},xZ:function(c,d,a,l){var h,m,q,r,p,g,f=this.range;for(h=0;h<n(c);h++)if(m=c[h],q=m.item1(),r=m.item2(),0===m.conType()?(q&&(p=this.AZ(q,d,a,f,l)),r&&(g=this.AZ(r,d,a,f,l))):p=this.AZ(m,d,a,f,l),m.evaluate(this.kj,d,a,p,g)){this.QX(d,a);this.PX(m);break}},AZ:function(c,d,a,l,n){var h,m,q,p=null,g=c.conType(),f=c.compareType();d=n[d];return 8!==g&&10!==g||(h=[],m=this.kj.Tq(l),q=m.col,q<=a&&a<q+m.colCount&&h.push(F(m.row,a,m.rowCount,1)),c.ranges(h)),2===g||7===g?p=d.T:3===g?0===f?p=d.BC:1===f&&(p=d.FC):p=d.V,p},WY:function(c,d){var a,h,m,l,q=this.Je;return!!n(q)&&(a=-1,h=D(q,d),m=this.LX[c],l=n(m),0<h&&(a=q[h-1]),-1<a?!!l&&a===m[l-1]:!l)},ija:function(c,d){var a,h,m,l=this.Je;return!n(l)||(a=D(l,d),h=this.LX[c],m=n(h)||0,m>=n(l)||!(0>a||m<n(l)-1)&&(!h||0>D(h,d)))},rI:function(c,d){var a,h,m,l,q,r,p=this.range;if(p){if(a=this.kj.getRowCount(void 0)-d-1,h=p.row,m=p.col,l=p.rowCount,q=p.colCount,-1<h&&(a=h+l-1,c<=h?this.BZ(F(h+d,m,l,q)):c<h+l&&this.BZ(F(h,m,l+d,q))),r=this.LX,this.isFiltered()&&r){h=[];for(m=0;m<n(r);m++)h.push(m);h.sort();for(m=0;m<n(h);m++)l=h[m],l>=c&&l<=a&&(r[l+d]=r[l],r[l]=void 0)}this.reFilter()}},tI:function(c,d){var a,h,m,l,q,w,p,g,f,k,x;if(l=this.range){if(a=l.row,h=l.col,m=l.rowCount,l=l.colCount,q=0,w=-1,p=0,0<=c&&this.CZ()){for(g=0;g<d;g++)g+c<=this.DZ()&&q++;this.DZ(this.DZ()+q)}-1<h&&(c<=h?(w=h,p=l,this.BZ(F(a,h+d,m,l))):c<h+l&&(w=c,p=l-(c-h),this.BZ(F(a,h,m,l+d))));0>w&&(w=0,p=this.kj.getColumnCount()-d);for(g=w+p-1;g>=w;g--)g>=c&&(f=g+d,k=D(this.Je,g),0<=k&&(this.Je[k]=f),x=this.rZ[g],n(x)&&(r(this.rZ,g),this.rZ[f]=x));this.reFilter()}},GR:function(c,d){var a,h,m,l,n,q,p,g,f,k=this.range;if(k){if(a=0,h=this.kj.getRowCount(void 0)+d-1,m=k.row,l=k.col,n=k.rowCount,q=k.colCount,-1<m&&(a=m,h=m+n-1,c<=m?m===c+1||m+n<=c+d?this.BZ(null):m<c+d?this.BZ(F(c,l,m+n-(c+d),q)):this.BZ(F(m-d,l,n,q)):c<m+n&&this.BZ(F(m,l,n-Math.min(m+n-c,d),q))),p=this.LX,this.isFiltered()&&p)for(;a<=h;a++)a>=c&&a<c+d?p[a]=void 0:a>=c+d&&(g=a,f=p[g],f&&(p[g-d]=f,p[g]=void 0));this.reFilter()}},BZ:function(c){this.range=c},EZ:function(c){var d,a,m,l,n,q,r,p,g;g=this.kj;var f=this.range;if(f)if(c){if(!c.equals(f)){if(m=f.col,l=f.colCount,n=c.col,q=c.colCount,d=g.getColumnCount(),this.isFiltered()&&!(0>m&&0>n))for(0>m&&(m=0,l=d),0>n&&(n=0,q=d),d=0;d<l;d++)a=m+d,(n>a||a>=n+q)&&this.removeFilterItems(a);if(r=f.row,m=f.rowCount,p=c.row,l=c.rowCount,g=g.getRowCount(void 0),this.isFiltered()&&this.LX&&!(0>r&&0>p))for(0>r&&(r=0,m=g),0>p&&(p=0,l=g),d=0;d<m;d++)a=r+d,(p>a||a>=p+l)&&(this.LX[a]=void 0)}}else this.reset();!this.CZ()||c&&c.contains(-1,this.DZ())||(this.zZ=null);this.BZ(c)},HR:function(c,d){var a,h,m,l,q,w,p,g;q=this.range;a=this.DZ();var f=c+d;if(q){0<=c&&this.CZ()&&(a>=c&&a<f?this.DZ(-1):a>=f&&this.DZ(a-d));a=q.row;h=q.col;m=q.rowCount;l=q.colCount;0>h?(h=0,l=this.kj.getColumnCount()+d):l=q.colCount;for(q=h;q<h+l;q++)q>=c&&(q<f?this.removeFilterItems(q):(w=q-d,p=D(this.Je,q),g=this.rZ[q],0<=p&&(this.Je[p]=w),n(g)&&(r(this.rZ,q),this.rZ[w]=g)));0<=h&&(c<h?f<=h?this.BZ(F(a,h-d,m,l)):f<=h+l?this.BZ(F(a,c,m,h+l-f)):this.BZ(null):c<h+l&&(f<=h+l?this.BZ(F(a,h,m,l-d)):this.BZ(F(a,h,m,c-h))));this.reFilter()}},CZ:function(){var c=this.zZ;return!!c&&-1<c.index&&0!==this.getSortState(c.index)},DZ:function(c){var d=this.zZ,a;return n(arguments)?(d?d.index=c:this.zZ={index:c,ascending:!1},a=this):a=d?d.index:-1,a},$b:function(c,d,a,l){var h,m,n,q=this.range;q&&(h=F(c,d,a,l),this.filterButtonVisible()?(m=q.row-1,n=q.rowCount+1,0>m&&(m=-1,n=-1),h.containsRange(F(m,q.col,n,q.colCount))&&this.unfilter()):h.containsRange(q)&&this.unfilter())},fromJSON:function(c,d){var a,h,m,l,q,r,p,g,f,k,x,w,z;if(c){if(a=c.range,h=c.filterItemMap,m=this.rZ,l=c.sortInfo,q=c.showFilterButton,r=c.filterButtonVisibleInfo,a&&(this.range=F(a.row,a.col,a.rowCount,a.colCount)),H)for(a=0;a<n(h);a++)for(g=h[a],f=g.conditions,p=0;p<n(f);p++)(k=f[p])&&(x=L(),w=g.index,z=m[w],x.fromJSON(k,d),z||(z=m[w]=[]),z.push(x));h=c.filteredColumns||c.filteredColMap;for(a=0;a<n(h);a++)G(h[a])||this.Je.push(h[a]);if(l&&(this.zZ={index:l.index,ascending:l.ascending}),void 0!==q)if(l=this.range,r)this.qZ=r;else if(l)for(a=this.oZ(l);a<this.pZ(l,this.kj);a++)this.qZ[a]=q}},toJSON:function(){var c,d,a,l,q,t,r={};c=this.range;t=this.qZ;q=this.rZ;var w=this.Je,p=this.zZ,g=[],f=0;d=this.typeName;c&&(r.range=c);d&&(r.typeName=d);for(c=0;c<n(q);c++)if(d=q[c]){a=[];for(l=0;l<n(d);l++)a.push(d[l]?d[l].toJSON():null);g[f++]={index:c,conditions:a}}if(n(g)&&(r.filterItemMap=g),n(w)&&(r.filteredColumns=w),p&&(r.sortInfo=p),t){r.filterButtonVisibleInfo=t;q=!1;for(c in t)if(t[c]){q=!0;break}r.showFilterButton=q}t=[];for(q=0;q<this.kj.getRowCount();q++)this.isRowFilteredOut(q)&&t.push(q);return 0<t.length&&(r.filteredOutRows=t),r},TX:function(c){c=c.options;return!c.isProtected||c.protectionOptions.allowFilter},hitTest:function(c,h,a){var m,l,n,q,r,p,g,f,k,x,w,z,u,A,e,b=this.kj;if(b){if(m=c.rowViewportIndex,l=c.colViewportIndex,n=c.hitTestType,q=b.it(l),1===n?(r=b.ut().findY(a),p=q.findX(h),g=1):3===n&&(r=b.jt(m).findY(a),p=q.findX(h),g=3),!r||!p)return null;if(f=r.row,k=p.col,x=b.getSpan(f,k,g),c=b.jZ(),x){if(w=x.row,z=x.col,f!==w+x.rowCount-1||k!==z+x.colCount-1)return null;f=w;k=z}return c&&(u=d(c,f,k,g),u&&(A=b.getCellRect(f,k,m,l),e=b.oK(A,g),e.x<=h&&h<=e.x+e.width&&e.y<=a&&a<=e.y+e.height))?new C(u.rowFilter,u.row,u.col,u.sheetArea,e.x,e.y,e.width,e.height):null}}},c}();I.RowFilterBase=u;Q=function(c){function d(d){c.call(this,d);this.typeName="HideRowFilter"}w.inherit(d,c);return w.extend(d.prototype,{onFilter:function(c){var a=this.kj;a&&(this.FZ(a,c.filteredRows,c.filteredOutRows),a.au())},FZ:function(c,a,d){var h,m=c.filterRowsVisibleInfo;m&&(h=m.D4(a,d),K.X3&&c.recalcRows(h))},openFilterDialog:function(c){var a,d=this.kj;this.TX(d)&&(a=new I.gZ(d.parent.xv(),d,c),d.GZ=a,a.OT())}}),d}(u);I.HideRowFilter=Q;R.prototype={lZ:function(c){c=this.rowsVisibleInfo[c];return!!G(c)||c},D4:function(c,d){var h,a,m,l,n=[],q=this.rowsVisibleInfo;h=0;for(a=c.length;h<a;h++)m=c[h],l=q[m],void 0!==l&&null!==l&&n.push(m),delete q[m];h=0;for(a=d.length;h<a;h++)m=d[h],l=q[m],void 0!==l&&null!==l||n.push(m),q[m]=!1;return n},hZ:function(){this.rowsVisibleInfo={}},mZ:function(){return 0<Object.keys(this.rowsVisibleInfo).length}};U.exports=I},function(U,u){U.exports={Exp_InvalidColumnIndex:"Invalid column index.",SortAscending:"Sort Ascending",SortDescending:"Sort Descending",OK:"OK",Cancel:"Cancel",Search:"Search",CheckAll:"Check all",UncheckAll:"Uncheck all",Blanks:"(Blanks)",Exp_FilterItemIsNull:"FilterItem is null."}},function(U,u,l){u=l(128);u.SR={};u.SR.en=l(131);U.exports=u},function(U,u,l){function d(){return Fa.C(fa.SR)()}function J(a){throw Error(a);}function R(a,b,c,d){aa&&a.setFormula(b,c,d)}function Q(a){return a&&!(/\d/.test(a[0])||/[\s\+\-\*\\:%!\[\]]/.test(a)||-1!==["C","c","R","r"].indexOf(a)||/^[A-Za-z]{1,3}(\$)?\d+$/.test(a)||/^[Rr]\d*[Cc]\d*$/.test(a)||255<=a.length)}function K(a,b,c){function d(b,d){Aa(b,function(b,e){var g=e.getExpression(),k=aa.CalcOperatorAdjustor.adjustExpressionOnRemoveTable(g,d,-1,-1,c);k!==g&&(e.fg(k),f.invalidName(a.yj(),e.getName()))})}var e=a.parent,f=a.Cf().ih();e?(d(e.getCustomNames(),b),Aa(e.sheets,function(a,c){d(c.getCustomNames(),b)})):d(a.getCustomNames(),b);f.onAfterRemoveTable(b,c)}function O(a,b,c,d,e,f,g){this.MZ=!g||void 0===g.showHeader||g.showHeader;this.NZ=!(!g||void 0===g.showFooter)&&g.showFooter;this.tc=this.xr=this.wq=null;qa(a)&&this.name(a);this.cj=qa(b)?b:-1;this.dj=qa(c)?c:-1;this.Xj=qa(d)?d:-1;this.OZ=qa(e)?e:-1;qa(f)&&this.style(f);this.Nz=[];for(a=0;a<this.OZ;a++)this.Nz.push(new H(a+1));this.ZX=null}function H(a){this.id(a);this.name(E+this.id())}function I(a,b,c,d,e,f,g,k,h,m){var l=this,n=arguments;Aa(p,function(a,b){l[b]=n[a]})}function L(){}function F(a,b,c,d,e,f,g,k,h,m){function l(a,b){return isNaN(b)?b:new sa(a,b)}var p=new I;return b&&(p.backColor=b),c&&(p.foreColor=c),d&&(p.font=t),e&&(p.borderLeft=l(a,e)),f&&(p.borderTop=l(a,f)),g&&(p.borderRight=l(a,g)),k&&(p.borderBottom=l(a,k)),h&&(p.borderHorizontal=l(a,h)),m&&(p.borderVertical=l(a,m)),p}function G(a){return 0===a?"Text 1":"Accent "+a}function q(a){var b,c=a-1,d=null,e=ib(c/7);return 0<=e&&3>e&&(d=[D,A,r][e](c%7),b="Light"+a,d.name(b),d.builtInName(b)),d}function D(a){a=G(a);var b=a+" 80",c=new L;return c[g](F(a,0,a,1,0,0,0,1)),c[k](F(a,0,a,0,0,1,0,1)),c[P](F(a,b)),c[W](F(a,0,a,1)),c[x](F(a,0,a,1)),c[Z](F(a,b)),c[f](F(a,0,a,1,0,1)),c}function A(a){a=G(a);var b=new L;return b[g](F(a,a,ea,1)),b[k](F(a,0,0,0,1,1,1,1)),b[P](F(a,0,0,0,0,1)),b[V](F(a,0,0,0,0,1)),b[Z](F(a,0,0,0,1)),b[e](F(a,0,0,0,1)),b[W](F(a,0,0,1)),b[x](F(a,0,0,1)),b[f](F(a,0,0,1,0,6)),b}function r(a){a=G(a);var b=a+" 80",c=new L;return c[g](F(a,0,0,1,0,0,0,2)),c[k](F(a,0,0,0,1,1,1,1,1,1)),c[P](F(a,b)),c[Z](F(a,b)),c[W](F(a,0,0,1)),c[x](F(a,0,0,1)),c[f](F(a,0,0,1,0,6)),c}function n(a){var b,d=a-1,e=null,f=ib(d/7);return 0<=f&&4>f&&(e=[w,z,C,c][f](d%7),b="Medium"+a,e.name(b),e.builtInName(b)),e}function w(a){a=G(a);var b=a+" 20",c=a+" 80",d=new L;return d[g](F(b,a,ea,1)),d[k](F(b,0,0,0,1,1,1,1,1)),d[P](F(b,c)),d[Z](F(b,c)),d[W](F(b,0,0,1)),d[x](F(b,0,0,1)),d[f](F(b,0,ga,1,0,6)),d}function z(a){a=G(a);var b=ea,c=a+" 60",d=a+" 80",e=new L;return e[g](F(b,a,ea,1,0,0,0,2,0,1)),e[k](F(b,d,0,0,0,0,0,0,1,1)),e[P](F(b,c)),e[Z](F(b,c)),e[W](F(b,a,ea,1)),e[x](F(b,a,ea,1)),e[f](F(b,a,ea,1,0,2,0,0,0,1)),e}function C(a){var b=G(a),c=0===a?ga:"#D3D3D3",d=new L;return d[g](F(ga,b,ea,1,0,2,0,2)),d[k](F(c,0,0,0,1,new sa(ga,2),1,new sa(ga,2),0===a?1:0,1)),d[P](F(c,"#D3D3D3")),d[Z](F(c,"#D3D3D3")),d[W](F(c,b,ea)),d[x](F(c,b,ea)),d[N](F(c,b,ea,1)),d[S](F(c,b,ea,1)),d[f](F(ga,0,ga,0,0,6)),d}function c(a){a=G(a);var b=a+" 40",c=a+" 80",d=a+" 60",e=a+" 80",h=new L;return h[g](F(b,c,ga,1,1,1,1,1,0,1)),h[k](F(b,c,0,0,1,1,1,1,1,1)),h[P](F(b,d)),h[Z](F(b,d)),h[W](F(b,0,0,1)),h[x](F(b,0,0,1)),h[f](F(b,e,ga,1,1,new sa(a,2),1,1,0,1)),h}function m(b){var c,d=b-1,e=null,f=ib(d/7);return 0<=f&&2>f&&(e=[h,a][f](d%7),c="Dark"+b,e.name(c),e.builtInName(c)),e}function h(a){var b=G(a),c=ga,d=0===a?b+" 25":b+" -25",e=0===a?b+" 50":b;a=0===a?b:b+" -50";var h=new L;return h[g](F(ea,c,ea,1,0,0,0,2)),h[k](F(b,e,ea)),h[P](F(b,d)),h[Z](F(b,d)),h[W](F(ea,d,ea,1,0,0,2)),h[x](F(ea,d,ea,1,2)),h[f](F(ea,a,ea,1,0,2)),h}function a(a){var b,c,d,e,h;return b=G(a),c=0>a||3<a?"":["Text 1","Accent 2","Accent 4","Accent 6"][a],d=0>a||3<a?"":["Background 1 -35","Accent 1 60","Accent 3 60","Accent 5 60"][a],e=0>a||3<a?"":["Background 1 -15","Accent 1 80","Accent 3 80","Accent 5 80"][a],h=new L,h[g](F(b,c,ea)),h[k](F(b,e)),h[P](F(b,d)),h[Z](F(b,d)),h[W](F(b,0,0,1)),h[x](F(b,0,0,1)),h[f](F(ga,e,0,1,0,6)),h}function B(a){this.kj=a;this.l$=[];this.r$=!1}var y,t,E,M,p,g,f,k,x,W,P,V,Z,e,b,v,N,S,X,Y,ka,ja,oa,ma,ea,ga,T,fa={};u=l(85);var Fa=l(26),aa=l(33),xa=l(129),xa=xa&&xa.HideRowFilter;l=l(130);var Ia=u.kf,la=u.Ul,pa=la.Pl,qa=la.Ol,ba=la.bc,ra=u.mn,ya=u.Events,sa=u.LineBorder,ia=u.Style,Ka=u.GC$,wa=Ka.inArray,Aa=Ka.each,Va=Ka.isEmptyObject,$a=Fa.j.Fa,Da=Fa.k.Bb,va=l&&l.CellBindingSource,Ra=l&&l.qL,jb=l&&l.LL,Ta=Math.min,ib=Math.floor,Ga=JSON.stringify,bb=JSON.parse;u.Worksheet.$n("table",{priority:2E3,init:function(){var a=this;a.tables=new B(a);a.bind(ya.BeforeDragDrop+".table",function(b,c){var e,f=a.tables,g=d().Exp_DragDropChangePartOfTable,k=c.fromRow,h=c.fromColumn,m=c.rowCount,l=c.columnCount,p=a.mm.gA,n=p.row,p=p.col,q=c.isDragCopy,t=null;!c.isDragInsert||-1!==k&&-1!==h||(0<=h&&0>k?(a.isDragCopy&&(p<=h||p>=h+l)||!q&&(p<h||p>h+l))&&(e=!1,f.HZ(-1,p,-1,1)&&(e=!0,t=d().Exp_DragDropShiftTableCell),e||q||!f.HZ(-1,h,-1,l)||(t=g)):0<=k&&0>h&&(q&&(n<=k||n>=k+m)||!q&&(n<k||n>k+m))&&!q&&f.HZ(k,-1,m,-1)&&(t=g));c.invalidMessage=t});a.bind(ya.ResetBinding+".table",function(){a.tables.IZ()});a.bind(ya.InitBinding+".table",function(){var b,c,d,e;b=a.tables;b.IZ();aa&&a.suspendCalcService();b=b.all();c=0;for(d=b.length;c<d;c++)(e=b[c])&&e.JZ();aa&&a.resumeCalcService(void 0)})},dispose:function(){this.unbind(".table")},onLayoutChanged:function(a){var b,c=a.changeType,d=a.row,e=a.rowCount,f=a.col,g=a.colCount,k=this.tables;"addRows"===c?k.rI(d,e):"addRows2"===c?k.KZ(d,e):"deleteRows"===c?k.GR(d,e):"addColumns"===c?k.tI(f,g):"deleteColumns"===c?k.HR(f,g):"clear"===c&&(b=a.sheetArea,a.ignoreTable||3!==b&&!$a(b)||k.$b(d,f,e,g,a.type))},toJson:function(a,b){var c;(c=this.tables)&&(a.tables=c.toJSON());if(b&&b.includeBindingSource){c=a.data;c.dataTable=c.dataTable||{};c=c.dataTable;var d,e,f,g,k,h,m,l,p,n,q,t,r=this.tables.all();d=0;for(e=r.length;d<e;d++)if(f=r[d],g=f.LZ(),k=f.dataRange(),h=k.row,m=k.col,l=h+k.rowCount-1,p=m+k.colCount-1,g)for(n=h;n<=l;n++)for(q=m;q<=p;q++)t=f.ge(n,q),t.gt&&this.qI(c,n,q,t.Qb)}},fromJson:function(a,b){var c=this.tables,d=a.tableManager,d=b?d&&d.tables:a.tables;qa(d)&&c&&c.fromJSON(d,b)},lastNonNullRowAndCol:function(){var a,b,c,d,e,f,g=-1,k=-1,h=this.tables.all();if(h)for(a=0,b=h.length;a<b;a++)(c=h[a])&&(d=c.range(),e=d.row+d.rowCount-1,f=d.col+d.colCount-1,e>g&&(g=e),f>k&&(k=f));return{lastNonNullRow:g,lastNonNullCol:k}}});Ka.extend(u.Workbook.prototype,{jga:function(a){var b,c,d,e=this.sheets;if(e)for(d=0;d<e.length;d++)if(c=e[d].tables,c&&(b=c.findByName(a)))return b;return null}});O.prototype={range:function(){return Ia(this.cj,this.dj,this.Xj,this.OZ)},dataRange:function(){var a=this.MZ?this.cj+1:this.cj,b=this.MZ?this.Xj-1:this.Xj;return this.NZ&&b--,Ia(a,this.dj,b,this.OZ)},name:pa("name","",void 0,function(a){var b,c,e;return!!a&&(Q(a)||J(d().Exp_TableNameInvalid),b=this.name(),c=this.tc,a!==b&&(!c||(e=c.findByName(a),!e||this===e)))}),headerIndex:function(){return this.MZ?this.cj:-1},footerIndex:function(){return this.NZ?this.cj+this.Xj-1:-1},showHeader:function(a){var b,c,d;return 0===arguments.length?this.MZ:(this.MZ!==a&&(b=this.OW(),b&&b.suspendPaint(),c=this.MZ=a,c?(0<this.cj&&(--this.cj,this.Xj+=1),this.PZ()):(d=this.cj,this.cj+=1,--this.Xj,this.QZ(d),this.RZ()),b&&(aa&&b.recalcRange(this.cj+(a?0:-1),this.dj,1,this.OZ),b.resumePaint())),this)},showFooter:function(a){var b,c,d;return 0===arguments.length?this.NZ:(this.NZ!==a&&(b=this.OW(),b&&b.suspendPaint(),c=this.NZ=a,c?((!b||this.cj+this.Xj<b.getRowCount())&&(this.Xj+=1),this.SZ()):(d=this.cj+this.Xj-1,--this.Xj,this.QZ(d)),b&&(aa&&b.recalcRange(this.cj+this.Xj+(a?-1:0),this.dj,1,this.OZ),b.resumePaint())),this)},bandRows:pa("bandRows",!0),bandColumns:pa("bandColumns",!1),highlightFirstColumn:pa("highlightFirstColumn",!1),highlightLastColumn:pa("highlightLastColumn",!1),style:pa("style"),rowFilter:function(){return!this.xr&&y&&(this.xr=new y(this),this.xr.EZ(this.dataRange())),this.xr},autoGenerateColumns:pa("autoGenerateColumns",!0),bindColumns:function(a){var b,c,d;if(a)for(b=Ta(this.OZ,a.length),c=0;c<b;c++)(d=this.Nz[c])||(d=new H(this.TZ()),this.Nz[c]=d),d.name(a[c].name()),d.dataField(a[c].dataField())},bindingPath:function(a){return 0===arguments.length?this.UZ:(this.UZ=a,this.JZ(),this)},getColumnName:function(a){var b,c,d=this.Nz;return d&&0<=a&&a<d.length&&(b=d[a])?(c=b.name(),null!==c&&(c=ba(c)),c):null},setColumnName:function(a,b){var c,d,e,f;return this.VZ(b)?this:(c=this.Nz,c&&0<=a&&a<c.length&&(d=c[a],d||(d=this.Nz[a]=new H(this.TZ())),e=d.name(),d.name(b),this.MZ&&(f=this.OW(),f&&f.setText(this.headerIndex(),this.dj+a,b)),this.WZ(e,d.name())),this)},WZ:function(a,b){var c=this.ZX;c&&c.onColumnNameChanged(a,b)},setColumnDataField:function(a,b){var c,d=this.Nz;return d&&0<=a&&a<d.length&&(c=d[a],c||(c=this.Nz[a]=new H(this.TZ())),c.dataField(b)),this},getColumnDataField:function(a){var b,c,d=this.Nz;return d&&0<=a&&a<d.length&&(b=d[a])?(c=b.dataField(),null!==c&&(c=ba(c)),c):null},getColumnFormula:function(a){var b,c,d=this.Nz;return d&&0<=a&&a<d.length&&(b=d[a])?(c=b.footerFormula(),c?c.toUpperCase():c):null},setColumnFormula:function(a,b){var c,d,e=this.Nz;return aa&&e&&0<=a&&a<e.length&&(b&&"\x3d"===b[0]&&(b=b.substring(1)),c=e[a],c&&c.footerFormula(b),this.NZ&&(d=this.OW(),d&&R(d,this.footerIndex(),this.dj+a,b))),this},setColumnDataFormula:function(a,b){var c,d,e,f,g;if(aa){if(c=this.Nz,c&&0<=a&&a<c.length&&(b&&"\x3d"===b[0]&&(b=b.substring(1)),d=c[a],d&&d.dataAreaFormula()!==b)){d.dataAreaFormula(b);e=this.OW();aa&&e.suspendCalcService();a:{for(f=0;f<c.length;f++)if(c[f]===d){c=f;break a}c=-1}c+=this.dj;d=this.cj;f=this.Xj;this.showHeader()&&(d++,f--);this.showFooter()&&f--;for(g=d;g<d+f;g++)R(e,g,c,b);aa&&e.resumeCalcService(!1)}return this}},getColumnValue:function(a){var b,c,d=this.Nz;return d&&0<=a&&a<d.length&&(b=d[a])?this.NZ&&b.footerFormula()&&(c=this.OW())?c.getValue(this.footerIndex(),this.dj+a):b.footerValue():null},setColumnValue:function(a,b){var c;if((c=this.Nz)&&0<=a&&a<c.length&&((c=c[a])&&c.footerValue(b),this.NZ&&(c=this.OW()))){var d=this.footerIndex();c.setValue(d,this.dj+a,b)}return this},filterButtonVisible:function(a,b){var c,d,e,f=this.OW(),g=this.rowFilter();if(!(0>a||a>=this.OZ))switch(c=arguments,c.length){case 0:return g&&g.filterButtonVisible();case 1:if(d=c[0],e=typeof d,"number"===e)return g&&g.filterButtonVisible(d);if("boolean"===e&&g){f.suspendPaint();for(c=0;c<this.OZ;c++)g.filterButtonVisible(c,d);f.resumePaint()}return this;case 2:return g&&g.filterButtonVisible(a,b),this}},Aq:function(){return!!this.ZX},Yv:function(a){var b;this.tc=a;(b=this.xr)&&b.kj!==a.kj&&b.table(this)},OW:function(){var a=this.tc;return a?a.kj:null},Fu:function(a){var b,c,d,e,f,g;f=this.autoGenerateColumns();var k=this.xr&&this.xr.qZ;if(this.RZ(),b=this.OW(),b&&(c=this.dataRange(),f?b.cg(c.row,c.col,c.rowCount,c.colCount,3,17,!1,!0):Aa(this.Nz,function(a,d){d.dataField()&&b.cg(c.row,c.col+a,c.rowCount,1,3,17,!1,!0)})),f&&(d=this.range(),this.$b(d.row,d.col,d.rowCount,d.colCount)),this.wq=a,a)if(e=a.getRowCount(),d=a.getColumnCount(),this.MZ&&e++,this.NZ&&e++,this.Xj=e,f)for(this.OZ=d,this.Nz=[],a=a.rL(),e=0;e<this.OZ;e++)f=new H(e+1),this.Nz[e]=f,a&&(f.name(a[e]),f.dataField(a[e]));else g=[],this.Nz.forEach(function(a){g.push(a.dataField())}),a.Kia(g);this.xr&&(this.xr.EZ(this.dataRange()),this.xr.qZ=k)},XZ:function(a){var b,c,d;if((c=this.wq)&&(b=c.rL()))for(a=(a=this.Nz[a-this.startColumn()])&&a.dataField(),c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},ge:function(a,b){var c,d=!1,e=void 0,f=this.wq,g=a-this.dataRange().row;return f&&g<f.getRowCount()&&0<=(c=this.XZ(b))&&(d=!0,e=f.getValue(g,c).value),{gt:d,Qb:e}},yq:function(a,b,c){var d,e,f,g,k=this.wq,h=a-this.dataRange().row,m=!1;return k&&0<=(d=this.XZ(b))&&(e=this.OW(),e&&(f=e.Mp(),g=k.getValue(h,d),g.hasBinding&&g.value!==c&&f.Cp(a,b,{Ep:g.value}),f.setValue(a,b,void 0)),k.setValue(h,d,c),m=!0),m},Gq:function(a,b,c){return L[c]?(c=new ia,this.Yo(a,b,c),c):null},Yo:function(a,c,d){var h,m,l,p,n,q,t,r,y,w,z,u,A,B,C,E,F,D,G,M,H,I,K;if(K=this.style()){if(h=this.OW(),m=this.MZ,l=this.NZ,p=this.highlightLastColumn(),n=this.highlightFirstColumn(),q=this.headerIndex(),t=this.footerIndex(),r=m?a===this.cj+1:a===this.cj,y=l?a===this.cj+this.Xj-2:a===this.cj+this.Xj-1,w=c===this.dj,z=c===this.dj+this.OZ-1,u=m?a===q:a===this.cj,A=l?a===t:a===this.cj+this.Xj-1,B=K[x](),C=K[W](),q===a)r=K[v](),z&&p&&r&&r.Yo(d,!0,!0,!0,!0),r=K[b](),w&&n&&r&&r.Yo(d,!0,!0,!0,!0),(r=K[g]())&&r.Yo(d,!0,w,!0,z),z&&p&&B&&B.Yo(d,!0,!0,!1,!0),w&&n&&C&&C.Yo(d,!0,!0,!1,!0);else if(t===a)r=K[S](),z&&p&&r&&r.Yo(d,!0,!0,!0,!0),r=K[N](),w&&n&&r&&r.Yo(d,!0,!0,!0,!0),(r=K[f]())&&r.Yo(d,!0,w,!0,z),z&&p&&B&&B.Yo(d,!1,!0,!0,!0),w&&n&&C&&C.Yo(d,!1,!0,!0,!0);else{if(z&&p&&B&&B.Yo(d,u,!0,A,!0),w&&n&&C&&C.Yo(d,u,!0,A,!0),p=m?a-this.cj-1:a-this.cj,n=c-this.dj,ra.nn&&ra.sn){c=ra.sn;for(p=this.dataRange().row;-1===c[p];)p++;if(p>a)return;p=c[a]-c[p]}else if(h){n=B=0;for(p=this.dataRange().row;p<a;p++)0<h.getRowHeight(p)&&B++;for(a=this.dj;a<c;a++)0<h.getColumnWidth(a)&&n++;p=B}this.bandRows()&&(E=K[Y](),F=E+K[ka](),0<F&&(D=p%F,G=K[P](),M=K[V](),D<E&&G?(H=0===D,I=y||D===E-1,G.Yo(d,H,w,I,z)):D>=E&&M&&(H=D===E,I=y||D===F-1,M.Yo(d,H,w,I,z))));this.bandColumns()&&(E=K[ja](),F=E+K[oa](),0<F&&(D=n%F,G=K[Z](),M=K[e](),D<E&&G?(H=0===D,I=z||D===E-1,G.Yo(d,r,H,y,I)):D>=E&&M&&(H=D===E,I=z||D===F-1,M.Yo(d,r,H,y,I))))}(K=K[k]())&&K.Yo(d,u,w,A,z)}},YZ:function(a,b){var c,e,f,g,k;if((a!==this.cj||b!==this.dj)&&(c=this.OW())){if((0>a||c.getRowCount()<a+this.Xj||0>b||c.getColumnCount()<b+this.OZ)&&J(d().Exp_TableMoveOutOfRange),e=this.tc)for(f=e.all(),g=0,k=f.length;g<k;g++)if(f[g]===this){f.splice(g,1);this.ZZ();break}c.moveTo(this.cj,this.dj,a,b,this.Xj,this.OZ,3);f&&g<=k&&(this.$Z(a,b),f.splice(g,0,this),this._Z())}},$Z:function(a,b){this.cj=a;this.dj=b;this.a$()},ZZ:function(a,b){var c,d,e,f,g,k,h,m=this.OW();if(m&&aa)for(c=this.Nz,d=this.footerIndex(),e=this.range(),f=this.dataRange(),$a(a)&&(a=0,b=c.length);a<b;a++)if(g=c[a],k=e.col+a,g&&g.footerFormula()&&0<=d&&(R(m,d,k,null),m.setValue(d,k,null)),g&&g.dataAreaFormula())for(g=0,h=f.rowCount;g<h;g++)R(m,f.row+g,k,null),m.setValue(f.row+g,k,null)},_Z:function(){var a,b,c,d=this.OW();d&&aa&&(a=this.footerIndex(),b=this.range(),c=this.dataRange(),Aa(this.Nz,function(e,f){var g,k,h=b.col+e;g=f.footerFormula();var m=f.dataAreaFormula();if(g&&0<=a&&R(d,a,h,g),m)for(g=0,k=c.rowCount;g<k;g++)R(d,c.row+g,h,m)}))},b$:function(a,b){var c,e,f,g,k,h,m,l,p,n,q,t,r,x,y,v,w,z,u,A,B=this.dataRange();if(!a.equals(this.range())){if(c=a.row,e=a.col,f=a.rowCount,g=a.colCount,k=this.MZ,h=this.NZ,m=0,k&&(m+=1),h&&(m+=1),l=this.OW(),l&&((f<m||1>g||c+f>l.getRowCount()||e+g>l.getColumnCount())&&J(d().Exp_TableResizeOutOfRange),c===this.cj&&a.intersect(this.cj,this.dj,this.Xj,this.OZ)||J(d().Exp_TableResizeInvalidRange)),p=this.Nz,n=e+g-1,q=this.dj,t=this.dj+this.OZ-1,this.dj=e,this.OZ=g,e<q){c=0;for(g=e;g<q;g++)m=new H(this.TZ()),p.splice(c++,0,m);k&&this.PZ(e,q-e);h&&this.SZ(e,q-e)}else e<=t&&(this.ZZ(q,e),p.splice(0,e-q));if(n>t){for(g=t+1;g<=n;g++)m=new H(this.TZ()),p.push(m);k&&this.PZ(t+1,n-t);h&&this.SZ(t+1,n-t)}else n>=q&&(this.ZZ(n,t),p.splice(p.length-(t-n),t-n));f!==this.Xj&&(r=this.wq,x=this.dataRange(),y=x.row,v=x.rowCount,r?f>this.Xj?(w=y+v,z=f-this.Xj,l&&l.addRows(w,z),h||(b||this.c$(w,z),this.Xj=f,this.d$(w,z))):l&&(u=this.Xj-f,l.deleteRows(y+v-u,u)):(h&&(this.SZ(),A=this.footerIndex()),this.Xj=f,h&&(this.e$(),this.QZ(A))));this.a$();this.f$(B,this.dataRange())}},f$:function(a,b){var c,d,e,f,g,k,h,m,l,p,n=this.ZX;n&&(c=a.col,d=a.rowCount,e=a.colCount,f=b.col,g=b.rowCount,k=b.colCount,h=a.row+d,m=c+e,l=b.row+g,p=f+k,l<h&&n.onRowsRemoved(g,h-l),l>h&&n.onRowsAdded(d,l-h),f>c&&n.onColumnsRemoved(0,f-c),p<m&&n.onColumnsRemoved(k,m-p),f<c&&n.onColumnsAdded(0,c-f),p>m&&n.onColumnsAdded(c+e-f,p-m))},a$:function(){var a=this.xr;a&&(a.EZ(this.dataRange()),a.reFilter())},RZ:function(){var a=this.xr;a&&(a.unfilter(),a.reset())},VZ:function(a){var b,c;null!==a&&(a=ba(a));for(b=0;b<this.OZ;b++)if(c=this.getColumnName(b),a===c)return!0;return!1},g$:function(a){var b,c,d,e=this.Nz;return this.MZ&&e?(b=a-this.dj,0<=b&&b<e.length&&(c=e[b])?(d=c.name(),$a(d)||(d=ba(d)),d):null):null},h$:function(a,b){var c,d,e,f,g,k,h=this.Nz;if(this.MZ&&h&&(c=h.length,d=a-this.dj,0<=d&&d<c&&(e=h[d]))){(d=this.OW())&&(f=d.Mp(),f.Cp(this.cj,a,{Ep:e.name()}));f=e.name();e.name(b);for(d=0;d<c;d++)(k=(g=h[d])&&g.dataAreaFormula())&&0<=k.indexOf(f)&&g.dataAreaFormula(k.replace(RegExp(f,"g"),e.name()));this.WZ(f,e.name())}},i$:function(a,b){var c,d,e=this.Nz;this.NZ&&e&&(c=a-this.dj,0<=c&&c<e.length&&(d=e[c],d&&d.footerFormula(b)))},j$:function(a,b){var c,d,e,f,g,k=this.Nz;this.NZ&&k&&(c=a-this.dj,0<=c&&c<k.length&&(d=k[c],d&&(e=d.footerValue(),b!==e&&(f=this.OW(),f&&(g=f.Mp(),g.Cp(this.cj+this.Xj-1,a,{Ep:d.footerValue()}))),d.footerValue(b))))},TZ:function(){var a,b,c,d=this.Nz,e=d&&d.length;if(0===e)return-1;a=[];for(c=0;c<e;c++)(b=d[c])&&b.k$()&&a.push(b.id());if(a.sort(function(a,b){return a-b}),e=a.length,0<e){for(c=0;c<e;c++)if(a[c]!==c+1)return c+1;return e+1}return 1},dga:function(a){for(var b=a,c=2;this.VZ(b);)b=a+c++;return b},PZ:function(a,b){var c,d,e,f,g,k,h,m,l,p,n,q=this.Nz;if(this.MZ&&q&&(c=this.OW()))for(d=q.length,e=this.headerIndex(),f=this.dj,$a(a)&&(a=0),$a(b)&&(b=d),g=Ta(d,a+b),k=c.Mp(),m=a;m<g;m++)(d=q[m])&&(l=this.tc.l$,p=wa(this,l),-1<p&&l.splice(p,1),h=c.getText(e,f+m),-1<p&&l.splice(p,0,this),R(c,e,f+m,null),h?(aa&&c.zq(k,e,f+m),n=this.dga(h),n===h?d.name(h):c.setText(e,f+m,n)):c.setText(e,f+m,d.name()))},SZ:function(a,b){var c,d,e,f,g,k,h,m=this.Nz;if(this.NZ&&m&&(c=this.OW()))for(d=m.length,e=this.footerIndex(),f=this.dj,$a(a)&&(a=0),$a(b)&&(b=d),d=Ta(d,a+b),h=a;h<d;h++)if(g=m[h])(k=c.getFormula&&c.getFormula(e,f+h))?g.footerFormula(k):this.S3||R(c,e,f+h,g.footerFormula()),k=c.getValue(e,f+h),$a(k)?(g=g.footerValue(),c.setValue(e,f+h,g)):g.footerValue(k)},m$:function(a,b){var c,d,e,f,g=this.Nz;if(this.MZ&&g)for(c=g.length,$a(a)&&(a=0),$a(b)&&(b=c),d=Ta(c,a+b),e=a;e<d;e++)(c=g[e])&&(f=c.name(),c.name(null),this.WZ(f,c.name()))},n$:function(a){var b,c,d,e,f,g,k=this.dataRange();if(k.containsRange(a)){b=a.row;c=a.col;d=a.rowCount;e=a.colCount;a=[];for(f=0;f<d;f++)for(g=0;g<e;g++)this.yq(b+f,c+g,null),a.push({columnName:this.getColumnName(c+g-k.col),row:b+f-k.row,data:""});(b=this.ZX)&&b.onDataChanged(a)}},o$:function(a,b){var c,d,e,f=this.Nz;if(this.NZ&&f)for($a(a)&&(a=0),$a(b)&&(b=f.length),d=Ta(f.length,a+b),e=a;e<d;e++)(c=f[e])&&(c.footerFormula(null),c.footerValue(null))},e$:function(){var a,b,c,d,e,f,g,k=this.Nz;if(this.NZ&&k&&(a=this.OW()))for(b=k.length,d=this.dj,f=this.footerIndex(),g=0;g<b;g++)if(c=k[g]){e=d+g;var h=c.footerValue();a.setValue(f,e,h);R(a,f,e,c.footerFormula())}},QZ:function(a){var b,c,d,e,f=this.OW();if(f&&!(0>a||f.getRowCount()<=a))for(b=this.dj,c=this.OZ,e=0;e<c;e++)d=b+e,R(f,a,d,null),f.setValue(a,d,null)},rI:function(a,b,c){var d,e,f=!1;return a>=this.cj+this.Xj?f:(d=this.cj,e=this.cj+this.Xj-1,a<=d?this.cj+=b:a<=e&&(c||(f=this.c$(a,b)),this.Xj+=b),f)},KZ:function(a,b){var c,d,e;a<=this.cj+this.Xj-1&&this.d$(a,b);c=this.ZX;d=this.dataRange().row;e=this.endRow();a>=d&&a<=e&&c&&c.onRowsAdded(a-d,b);this.xr&&this.xr.rI(a,b)},c$:function(a,b){var c=this.cj,d=this.wq;return!!d&&(d.uL(a-(this.showHeader()?c+1:c),b),!0)},d$:function(a,b){if(aa){var c=this,d=c.OW();aa&&d.suspendCalcService();Aa(c.Nz,function(e,f){var g,k,h=f.dataAreaFormula();if(h)for(g=e+c.dj,k=a;k<a+b;k++)R(d,k,g,h)});aa&&d.resumeCalcService(!1)}},tI:function(a,b){var c,d,e,f,g;if(!(a>=this.dj+this.OZ)){if(c=this.dj,a<=this.dj)this.dj+=b;else if(a<this.dj+this.OZ&&(this.OZ+=b,d=this.Nz))for(e=0;e<b;e++)f=new H(this.TZ()),d.splice(a+e-this.dj,0,f);this.xr&&this.xr.tI(a,b);a>=c&&(g=this.ZX,g&&g.onColumnsAdded(a-c,b))}},GR:function(a,b,c){var d,e,f,g,k,h,m,l=!1;return a>=this.cj+this.Xj?l:(d=this.dataRange(),e=d.row,f=d.rowCount,g=this.cj,k=this.cj+this.Xj-1,a<g?a+b<=g&&(this.cj-=b):a===g?this.MZ||(this.Xj-=Ta(k-a+1,b),c||(h=this.wq,h&&(h.wL(a-(this.showHeader()?g+1:g),Ta(k-a+1,b)),l=!0))):a<=k&&(this.Xj-=Ta(k-a+1,b),c||(h=this.wq,h&&(h.wL(a-(this.showHeader()?g+1:g),Ta(k-a+1,b)),l=!0)),a===k&&this.NZ&&(this.NZ=!1)),this.xr&&this.xr.GR(a,b),a>=e&&a<e+f&&(m=this.ZX,m&&m.onRowsRemoved(a-e,b)),l)},HR:function(a,b){var c,d,e,f,g=this.Nz;a>=this.dj+this.OZ||(c=this.dj,d=this.dj,e=this.dj+this.OZ-1,a<d?a+b<=d?this.dj-=b:(this.dj=a,this.OZ-=a+b-d,g&&g.splice(0,a+b-d)):(this.OZ-=Ta(e-a+1,b),g&&g.splice(a-d,Ta(e-a+1,b))),this.xr&&this.xr.HR(a,b),a>=c&&(f=this.ZX,f&&f.onColumnsRemoved(a-c,b)))},$b:function(a,b,c,d){var e,f,g,k,h,m,l,p=c,n=d;(e=this.OW())&&(p=e.getRowCount(),n=e.getColumnCount());e=0>a?0:a;f=0>a?p:c;g=Ia(e,0>b?0:b,f,0>b?n:d);k=this.headerIndex();this.MZ&&e<=k&&k<e+f&&(h=Ia(k,this.dj,1,this.OZ),m=g.getIntersect(h,p,n),m&&this.m$(m.col-this.dj,m.colCount));h=this.dataRange();(h=g.getIntersect(h,p,n))&&this.n$(h);h=this.footerIndex();this.NZ&&e<=h&&h<e+f&&(l=Ia(h,this.dj,1,this.OZ),m=g.getIntersect(l,p,n),m&&this.o$(m.col-this.dj,m.colCount));this.xr&&this.xr.$b(a,b,c,d)},toJSON:function(){var a,b,c,d=this.style();a=this.xr;d={name:[this.name(),null],row:[this.cj,-1],col:[this.dj,-1],rowCount:[this.Xj,-1],colCount:[this.OZ,-1],showHeader:[this.MZ,!0],showFooter:[this.NZ,!1],highlightFirstColumn:[this.highlightFirstColumn(),!1],highlightLastColumn:[this.highlightLastColumn(),!1],bandRows:[this.bandRows(),!0],bandColumns:[this.bandColumns(),!1],style:[d?d.toJSON():null,null],autoGenerateColumns:[this.autoGenerateColumns(),!0],bindingPath:[this.bindingPath(),void 0],rowFilter:[a?a.toJSON():null,null],columns:[[]]};for(a=0;a<this.Nz.length;a++)d.columns[0][a]=this.Nz[a].toJSON();d.columns[1]=null;a={};for(b in d)c=d[b],c[0]!==c[1]&&(a[b]=c[0]);return Va(a)?void 0:a},fromJSON:function(a,b){var c,d,e,f,g,k,h,m,l,p,n,q,t,r,x,v,w;if(a){if(c=this,Aa("name highlightFirstColumn highlightLastColumn bandRows bandColumns autoGenerateColumns".split(" "),function(b,d){qa(a[d])&&c[d](a[d],!1)}),d=a.row,qa(d)&&(c.cj=d),e=a.col,qa(e)&&(c.dj=e),f=a.rowCount,qa(f)&&(c.Xj=f),g=a.colCount,qa(g)&&(c.OZ=g),k=a.showHeader,qa(k)&&(c.MZ=k),h=a.showFooter,qa(h)&&(c.NZ=h),m=a.style,m&&(l=new L,l.fromJSON(m,b),c.style(l)),p=a.dataSource,n=a.dataBinding,q=a.bindingPath,b?(p&&Ra&&(c.wq=new Ra,c.wq.bind(p)),n&&Ra&&(c.wq=new Ra,c.wq.fromJSON(n,b))):q&&(c.UZ=q,t=c.OW(),r=t&&t.getDataSource&&t.getDataSource(),va&&r instanceof va&&(x=jb(r.getSource(),q),x&&(c.wq=new Ra,c.wq.bind(x)))),v=a.columns)for(d=v.length,e=c.Nz=[],g=0;g<d;g++)k=v[g],f=new H(c.TZ()),f.fromJSON(k,b),k=f.name(),h=c.dga(k),e.push(f),h!==k&&c.setColumnName(g,h);(v=a.rowFilter)&&(w=y&&new y,w&&(w.table(c),w.fromJSON(v,b),c.xr=w,c.xr.reFilter()))}},startRow:function(){return this.cj},startColumn:function(){return this.dj},endRow:function(){return this.cj+this.Xj-1},endColumn:function(){return this.dj+this.OZ-1},hasHeadersRow:function(){return this.MZ},hasTotalsRow:function(){return this.NZ},tableName:function(){return this.name()},getColumnIndexInTable:function(a){a=a.toLowerCase();var b=-1,c=Fa.u.Gb(a,"\r\n","\n");return $a(a)||Aa(this.Nz,function(d,e){var f=(""+e.name()).toLowerCase();if(f===a||f===c)return b=d,!1}),b},source:function(){var a=this.OW();return a.yj&&a.yj()},JZ:function(){var a,b,c,d,e,f=this.OW();if(f&&(a=this.bindingPath(),a&&(b=f.getDataSource&&f.getDataSource(),va&&b instanceof va&&(c=jb(b.getSource(),a))))){b=this.dataRange();a=b.row;b=b.rowCount;d=new Ra;d.bind(c);c=d.getRowCount();try{f.suspendPaint(),this.wq=null,c>b?f.addRows(a+b,c-b):c<b&&f.deleteRows(a+c,b-c),this.Fu(d),(e=aa&&f.Cf())&&!e.IsSuspended()&&f.recalcAll()}finally{f.resumePaint()}}},clone:function(){var a=new O,b=Ga(this.toJSON());return a.Yv(this.tc),a.fromJSON(bb(b)),a},p$:function(a){var b=new Ra;b.bind(a);this.wq=b},Az:function(a){a&&!a.bindingPath()&&(a=a.wq)&&this.p$(a.getSource())},LZ:function(){var a=this.wq;return a?a.getSource():null},q$:function(){var a=this.wq;return a?a.getRowCount():0},sort:function(a,b){var c=this.OW(),d=this.dataRange(),e=this.rowFilter();c&&0<=a&&a<d.colCount&&(c.suspendPaint(),c.sortRange(d.row,d.col,d.rowCount,d.colCount,!0,[{index:a+d.col,ascending:b}]),e&&(e.zZ={index:a+d.col,ascending:b}),c.resumePaint())}};fa.Table=O;y=function(a){function b(b){a.call(this);this.table(b)}if(!a)return null;Ka.inherit(b,a);return Ka.extend(b.prototype,{oZ:function(){return 0},pZ:function(){return this.range.colCount},table:function(a){return 0===arguments.length?this.sj:(this.sj=a,void(a&&(this.kj=a.OW())))},rI:function(b,c){var d=this.sj;a&&a.prototype.rI.call(this,b,c);d&&this.BZ(d.dataRange())},GR:function(b,c){var d=this.sj;a&&a.prototype.GR.call(this,b,c);d&&this.BZ(d.dataRange())}}),b}(xa);t="bold 11pt calibri";E="Column";M="id name dataField footerFormula dataAreaFormula footerValue".split(" ");H.prototype={id:pa("id",void 0,function(a){this.name()||this.name(E+a)}),k$:function(){return 0<this.id()},name:pa("name",void 0,function(a){a||this.name(E+this.id())}),dataField:pa("dataField"),footerValue:pa("footerValue"),dataAreaFormula:pa("dataAreaFormula"),footerFormula:pa("footerFormula"),toJSON:function(){var a=this,b={};return Aa(M,function(c,d){var e=a[d]();e&&(b[d]=e)}),Va(b)?void 0:b},fromJSON:function(a){if(a){var b=this;Aa(M,function(c,d){var e=void 0!==a[d]?a[d]:a["_"+d];e&&b[d](e,!1)})}}};fa.TableColumn=H;p="backColor foreColor font borderLeft borderTop borderRight borderBottom borderHorizontal borderVertical textDecoration".split(" ");I.prototype={Yo:function(a,b,c,d,e){var f=this;Aa(p,function(g,k){0<=k.indexOf("border")?(c&&qa(f.borderLeft)&&!qa(a.borderLeft)&&(a.borderLeft=f.borderLeft,a.borderLeft.level=20),b&&qa(f.borderTop)&&!qa(a.borderTop)&&(a.borderTop=f.borderTop,a.borderTop.level=20),e&&qa(f.borderRight)&&!qa(a.borderRight)&&(a.borderRight=f.borderRight,a.borderRight.level=20),d&&qa(f.borderBottom)&&!qa(a.borderBottom)&&(a.borderBottom=f.borderBottom,a.borderBottom.level=20),d||!qa(f.borderHorizontal)||qa(a.borderBottom)||(a.borderBottom=f.borderHorizontal,a.borderBottom.level=20),e||!qa(f.borderVertical)||qa(a.borderRight)||(a.borderRight=f.borderVertical,a.borderRight.level=20)):qa(f[k])&&!qa(a[k])&&(a[k]=f[k])})},Uo:function(){var a=new I,b=Ga(this.toJSON());return a.fromJSON(bb(b)),a},toJSON:function(){var a=this,b={};return Aa(p,function(c,d){var e=a[d];b[d]=e&&e.toJSON?e.toJSON():e}),b},fromJSON:function(a,b){if(a){var c=this;Aa(p,function(d,e){var f,g=a[e];qa(g)&&(0<=e.indexOf("border")?(f=new sa,f.fromJSON(g,b),c[e]=f):c[e]=g)})}}};fa.TableStyle=I;g="headerRowStyle";f="footerRowStyle";k="wholeTableStyle";x="highlightLastColumnStyle";W="highlightFirstColumnStyle";P="firstRowStripStyle";V="secondRowStripStyle";Z="firstColumnStripStyle";e="secondColumnStripStyle";b="firstHeaderCellStyle";v="lastHeaderCellStyle";N="firstFooterCellStyle";S="lastFooterCellStyle";X=[g,f,k,x,W,P,V,Z,e,b,v,N,S];Y="firstRowStripSize";ka="secondRowStripSize";ja="firstColumnStripSize";oa="secondColumnStripSize";ma=[Y,ka,ja,oa];L.prototype={name:pa("name"),builtInName:pa("builtInName"),toJSON:function(){var a,b,c=this,d=c.builtInName();return d?{buildInName:d}:(a={name:c.name()},Aa(X,function(d,e){(b=c[e]())&&(a[e]=b.toJSON())}),Aa(ma,function(d,e){b=c[e]();1!==b&&(a[e]=b)}),Va(a)?void 0:a)},fromJSON:function(a,b){function c(a,b){a.name(b.name());Aa(ma,function(c,d){a[d](b[d]())});Aa(X,function(c,d){var e=b[d]();a[d](e?e.Uo():null)});a.builtInName(b.builtInName(),!1)}var d,e;if(a){if(d=this,e=a.buildInName)return void c(d,T[e.toLowerCase()]);e=a.name;e=qa(e)?e:a.Cj;qa(e)&&d.name(e,!1);Aa(ma,function(b,c){var e=void 0!==a[c]?a[c]:a["_"+c];e&&d[c](e,!1)});Aa(X,function(c,e){var f,g=void 0!==a[e]?a[e]:a["_"+e];g&&(f=new I,f.fromJSON(g,b),d[e](f,!1))})}}};Aa(X,function(a,b){L.prototype[b]=pa(b)});Aa(ma,function(a,b){L.prototype[b]=pa(b,1)});fa.TableTheme=L;ea="white";ga="black";T={};for(u=1;28>=u;u++)21>=u&&(T["light"+u]=q(u)),11>=u&&(T["dark"+u]=m(u)),T["medium"+u]=n(u);fa.TableThemes=T;B.prototype={add:function(a,b,c,d,e,f,g){return this.LA(this.kj,a,b,c,d,e,!0),this.Cz(new O(a,b,c,d,e,f||T.medium2,g))},addFromDataSource:function(a,b,c,e,f,g){var k,h,m,l,p;if(e||J(d().Exp_TableDataSourceNullError),Ra)return k=this.kj,k.suspendPaint(),h=new Ra,h.bind(e),m=h.getRowCount()+1,l=h.getColumnCount(),p=this.add(a,b,c,m,l,f,g),p.Fu(h),k.clearPendingChanges(),k.resumePaint(),p},find:function(a,b){var c,d,e,f=this.l$,g=f.length;for(d=0;d<g;d++)if(c=f[d],e=c.range(),e.row<=a&&a<e.row+e.rowCount&&e.col<=b&&b<e.col+e.colCount)return c;return null},findByName:function(a){var b,c,d=this.l$,e=d.length;for(c=0;c<e;c++)if(b=d[c],b.name().toLowerCase()===a.toLowerCase())return b;return null},s$:function(a,b,c,d){var e,f,g=this.l$,k=g.length,h=[];for(f=0;f<k;f++)e=g[f],e.range().intersect(a,b,c,d)&&h.push(e);return h},Cz:function(a){var b;if(a)return this.findByName(a.name())&&J(d().Exp_TableHasSameNameError),b=this.kj,b.suspendPaint(),a.Yv(this),this.l$.push(a),a.JZ(),a.showHeader()&&a.PZ(),a.showFooter()&&a.SZ(),this.t$(a),b.resumePaint(),a},vV:function(a){var b=wa(a,this.l$);return-1<b?(this.l$.splice(b,1),this.u$([a],!1),a):null},remove:function(a,b){var c,d,e,f,g,k,h,m,l;if("string"==typeof a&&(a=this.findByName(a)),a&&(b=b||0,a=this.vV(a)))try{c=a.range();d=this.kj;d.suspendPaint();if(e=c.row,f=c.row+c.rowCount,g=c.col,k=c.col+c.colCount,1!==(1&b))for(h=e;h<f;h++)for(m=g;m<k;m++)R(d,h,m,null),d.setValue(h,m,null);else if(a.showHeader())for(h=a.headerIndex(),m=g;m<k;m++)d.setValue(h,m,a.getColumnName(m-c.col));if(2===(2&b))for(h=e;h<f;h++)for(m=g;m<k;m++)l=d.getStyle(h,m)||new ia,a.Yo(h,m,l),d.setStyle(h,m,l)}finally{d.resumePaint()}return a},move:function(a,b,c){var d,e,f,g=this.kj;if("string"==typeof a&&(a=this.findByName(a)),a&&0<=b&&0<=c&&(d=a.range(),e=this.s$(b,c,d.rowCount,d.colCount),f=e.length,0===f||1===f&&e[0]===a)){g.suspendPaint();try{a.YZ(b,c)}finally{g.resumePaint()}}},resize:function(a,b){var c,d,e,f,g,k,h=this.kj;if("string"==typeof a&&(a=this.findByName(a)),a&&(c=a.range(),d=arguments,e=b,3===d.length&&(e=Ia(c.row,c.col,d[1],d[2])),e&&(f=e.rowCount,g=e.colCount,0<=f&&0<=g&&(k=this.s$(e.row,e.col,f,g),1>=k.length)))){h.suspendPaint();try{a.b$(e)}finally{h.resumePaint()}}},all:function(){var a=[];return Aa(this.l$,function(b,c){a.push(c)}),a},LA:function(a,b,c,e,f,g,k){var h,m,l,p;return b?Q(b)?0>c||1>f||c+f>a.getRowCount()?(k&&J(d().Exp_TableInvalidRow),!1):0>e||1>g||e+g>a.getColumnCount()?(k&&J(d().Exp_TableInvalidColumn),!1):(h=a.tables,h.rn(c,e,f,g)?(k&&J(d().Exp_TableIntersectError),!1):h.findByName(b)?(k&&J(d().Exp_TableHasSameNameError),!1):(m=aa&&a.Ms(c,e,f,g),l=m&&m.ranges,p=!0,l&&Aa(m,function(a,b){if(1<b.rowCount||1<b.colCount)return k&&J(d().Exp_ArrayFormulaTable),p=!1,!1}),p)):(k&&J(d().Exp_TableNameInvalid),!1):(k&&J(d().Exp_TableEmptyNameError),!1)},HZ:function(a,b,c,d){var e,f=this.all();if(f)for(a=Ia(a,b,c,d),b=f.length,c=0;c<b;c++)if(e=f[c].range(),a.intersect(e.row,e.col,e.rowCount,e.colCount)&&!a.containsRange(e))return!0;return!1},rn:function(a,b,c,d){var e,f,g=this.l$,k=g.length;for(f=0;f<k;f++)if(e=g[f],e.range().intersect(a,b,c,d))return!0;return!1},KZ:function(a,b){var c,d,e=this.l$;c=0;for(d=e.length;c<d;c++)e[c].KZ(a,b,this.r$)},rI:function(a,b){var c,d,e,f,g,k,h,m,l,p,n,q=this.l$,t=[];c=0;for(d=q.length;c<d;c++)e=q[c],f=e.LZ(),Da(t,f)?e.rI(a,b,!0):(g=e.rI(a,b,this.r$),g&&t.push(f));if(!this.r$)try{for(k=this.kj,k.suspendPaint(),this.r$=!0,c=0,d=q.length;c<d;c++)e=q[c],h=e.q$(),m=e.dataRange(),0<h&&h!==m.rowCount&&(l=h,e.showHeader()&&(l+=1),e.showFooter()&&(l+=1),p=e.range(),n=Ia(p.row,p.col,l,m.colCount),e.b$(n,this.r$))}finally{this.r$=!1,k.resumePaint()}},tI:function(a,b){var c,d,e=this.l$,f=e.length;for(d=0;d<f;d++)c=e[d],c.tI(a,b)},GR:function(a,b){var c,d,e,f,g,k,h,m,l,p,n,q,t=this.l$,r=[],x=[],y=[];c=0;for(d=t.length;c<d;c++)e=t[c],f=e.LZ(),g=e.range(),(g=a<=g.row&&g.row+g.rowCount<=a+b)?y.push(e):(Da(r,f)?e.GR(a,b,!0):(k=e.GR(a,b,this.r$),k&&r.push(f)),x.push(e));this.l$=x;this.u$(y,!0);try{for(h=this.kj,h.suspendPaint(),this.r$=!0,t=this.l$,c=0,d=t.length;c<d;c++)e=t[c],m=e.q$(),l=e.dataRange(),0<m&&m!==l.rowCount&&(p=m,e.showHeader()&&(p+=1),e.showFooter()&&(p+=1),n=e.range(),q=Ia(n.row,n.col,p,l.colCount),e.b$(q,this.r$))}finally{this.r$=!1,h.resumePaint()}},HR:function(a,b){var c,d,e,f=this.l$,g=[],k=[],h=f.length;for(d=0;d<h;d++)c=f[d],e=c.range(),(e=a<=e.col&&e.col+e.colCount<=a+b)?k.push(c):(c.HR(a,b),g.push(c));this.l$=g;this.u$(k,!0)},$b:function(a,b,c,d,e){var f,g,k,h,m,l=Ia(a,b,c,d),p=[];if(1===(1&e)){h=[];f=this.l$;g=f.length;for(m=0;m<g;m++)k=f[m],l.containsRange(k.range())?p.push(k):h.push(k);g=h.length;for(m=0;m<g;m++)k=h[m],k.$b(a,b,c,d);this.l$=h}if(2===(2&e))for(f=this.l$,g=f.length,m=0;m<g;m++)k=f[m],l.containsRange(k.range())&&k.style(null);return this.u$(p,!0),p},u$:function(a,b){a&&0!==a.length&&(Ka.each(a,function(a,b){b.Aq()&&b.getSlicerData().onTableRemoved(b)}),aa&&K(this.kj,a,b))},t$:function(a){a&&a.Aq()&&a.getSlicerData().onTableAdded(a)},v$:function(a){for(var b=1;this.findByName(a);)a="table"+b,b++;return a},ge:function(a,b){var c=!1,d=null,e=this.find(a,b);return e&&(e.showHeader()&&a===e.headerIndex()?(d=e.g$(b),$a(d)||(d=ba(d)),c=!0):(d=e.ge(a,b),c=d.gt,d=d.Qb)),{gt:c,Qb:d}},yq:function(a,b,c){var d=!1,e=!0,f=this.find(a,b);return f&&(f.showHeader()&&a===f.headerIndex()?f.VZ(c)?e=!1:f.h$(b,c+""):f.showFooter()&&a===f.footerIndex()?f.j$(b,c):d=f.yq(a,b,c)),{isValueSet:d,isValid:e}},av:function(a,b,c,e,f){var g=this.find(a,b);if(aa&&g){if(1<c||1<e)return this.kj.Os(0,d().Exp_ArrayFormulaTable),!1;if(g.showHeader()&&a===g.headerIndex()&&f)return!1;g.showFooter()&&a===g.footerIndex()&&g.i$(b,f)}return!0},IZ:function(){var a,b,c,d=this.all();a=0;for(b=d.length;a<b;a++)c=d[a],c.bindingPath()&&(c.wq=null)},dB:function(a,b){var c,d,e,f=[];if(this&&(c=this.all()))for(e=c.length-1;0<=e;e--)d=c[e],a.containsRange(d.range())&&(b&&(this.l$.splice(e,1),d.ZZ()),f.push(d));return f},eB:function(a,b,c,d,e,f){var g,k,h,m,l,p;g=0;for(k=a.length;g<k;g++)h=a[g],f?l=h:(m=h.bindingPath()?void 0:h.LZ(),l=new O,l.Yv(this),l.fromJSON(bb(Ga(h.toJSON()))),l.name(this.v$(l.name()))),h=l.range(),l.S3=!0,l.$Z(d+h.row-b,e+h.col-c),this.Cz(l),f?(p=l.ZX,p&&(p.kj=this.kj,p.refresh())):m&&l.p$(m),l.S3=!1},R3:function(a){for(var b=0,c=a.length;b<c;b++)a[b]._Z()},toJSON:function(){var a,b=this.l$,c=[];if(b)for(a=0;a<b.length;a++)c.push(b[a].toJSON());return 0===c.length?void 0:c},fromJSON:function(a,b){var c,d,e,f;if(a)for(c=0,d=a.length;c<d;c++)e=a[c],f=new O,f.Yv(this),f.fromJSON(e,b),this.l$.push(f)}};fa.TableManager=B;fa.TableRemoveOptions={none:0,keepData:1,keepStyle:2};U.exports=fa},function(U,u){U.exports=GC.Spread.Sheets.Filter},function(U,u){U.exports=GC.Spread.Sheets.Bindings},function(U,u){U.exports={Exp_DragDropShiftTableCell:"This operation is not allowed. The operation is attempting to shift cells in a table on your worksheet.",Exp_DragDropChangePartOfTable:"Cannot complete operation: You are attempting to change a portion of a table row or column in a way that is not allowed.",Exp_TableEmptyNameError:"The table name cannot be empty.",Exp_TableNameInvalid:"The table name is not valid.",Exp_TableInvalidRow:"Invalid row index or row count.",Exp_TableInvalidColumn:"Invalid column index or column count.",Exp_TableIntersectError:"The tables cannot be intersected.",Exp_TableHasSameNameError:"The current worksheet already exists in a table with the same name.",Exp_TableDataSourceNullError:"Table datasource cannot be null.",Exp_TableMoveOutOfRange:"The table cannot be moved out of the sheet.",Exp_TableResizeOutOfRange:"The invalid row count, column count, and table cannot be resized out of the sheet.",Exp_ArrayFormulaTable:"multi-cell array formulas are not allowed in tables.",Exp_TableResizeInvalidRange:"The headers must remain in the same row, and the resulting table range must overlap the original table range."}},function(U,u,l){u=l(133);l(137);u.SR={};u.SR.en=l(138);U.exports=u},function(U,u,l){function d(a){var b,c;return a&&0!==za(a)?0===a.indexOf(pa)?(c=parseInt(a.replace(pa,"")),b=Tb[pa+c]()):0===a.indexOf(qa)?(c=parseInt(a.replace(qa,"")),b=Tb[qa+c]()):Tb[a]&&(b=Tb[a]()):b=new Sa,b}function J(a,b,c){return new Wa(a,b,c)}function R(){var a=new Wa(0,"",""),b=new Sa(ba,ra,"normal 11pt calibri");return b.setBorders(a),b}function Q(a){var b,c="Slicer"+la;return-1<a.indexOf(c+"Light")&&17===za(a)&&(b=parseInt(a[16])),-1<a.indexOf(c+"Dark")&&16===za(a)&&(b=parseInt(a[15])),1<=b&&6>=b}function K(a,b,c){var e=d();return e[va](a)[Da](b)[$a](c),e}function O(a,b){var c,d,e,f,k,h,m=a.KW,l=a._caption,p=F(a.slicerData),n=a.zoomFactor();if(b){b[Ha]&&(q(a.xo,b[Ha],p,l,n),x(a,zb));c=a.LW;d=I(b[Ha],b[na]);var t,r=b[na];r&&(r[Ga]||r[bb]||r[Na]||r[Na])&&(t=I(b[Ha],r),!(t[Ya]&&0<t[Ya][jb])||t[Ga]&&0!==t[Ga][jb]||t[bb]&&0!==t[bb][jb]||t[Na]&&0!==t[Na][jb])?(c[Ia][Ya+Ka]=0+Ca,c[Ia][Aa]=m[Ia][Aa]):(e=d[Ya],f=e&&e[jb]||0,c[Ia][Aa]=(a.MW-f)*D(b)*n+Ca,G(c,e,p,Ya),d[Ga]=d[bb]=d[Na]=d[Ya]=null);q(m,d,p,l,n);x(a,Lb);for(k in a.NW)wb(a.NW,k)&&(h=parseInt(k),g(a,h))}}function H(a,b,c){var d,e,f={};if(b&&c&&za(b)===za(c)){d=0;for(e=za(b);d<e;d++)f[b[d]]=c[d];Ma(a).css(f)}}function I(a,b){var c={},d;if(b)for(d in b)wb(b,d)&&(c[d]=b[d]);if(a)for(d in a)void 0===c[d]&&void 0!==a[d]&&(c[d]=a[d]);return c}function L(a,b){if(!b)return a;var c;return a&&b&&b.getColor&&(c=b.getColor(a)),c}function F(a){return(a=a&&a.OW&&a.OW())&&a.currentTheme()}function G(a,b,c,d){if(a){var e=b&&b[Ta]||"",f=b&&b[ib]||"";a[Ia][d+wa]=(b&&b[jb]||0)+Ca;a[Ia][d+la]=e;a[Ia][d+sa]=L(f,c)}}function q(a,b,c,d,e){var f,g,k,h;a&&b&&(f=b[va]||ra,g=b[Da]||ba,k=b[Va]||"normal 11pt calibri",a[Ia][ia]=L(g,c),a[Ia][ya]=L(f,c),a[Ia][Va]=Zb.No(k,e)[Va],G(a,b[Ga],c,Ga),G(a,b[bb],c,bb),G(a,b[Na],c,Na),G(a,b[Ya],c,Ya),h=Zb.So(b[ta]),eb.u.Bb(a.className,ec)?d[Ia][ta]=h:eb.u.Bb(a.className,vb)&&(a[Ia][ta]=h))}function D(a){var b,c,d,e,f,g,k,h,m;return a?(b=I(a[Ha],a[na]),b&&b[Va]?(c=b[Va],d=1,e=Zb.Ko,f=Zb.Jo,g=e(f("normal 11pt calibri")).fontSize,k=e(f(c)).fontSize,g&&k&&(h=nc(g),m=nc(k),isNaN(m)||(d=m/h)),d):1):1}function A(a){var b,c,d,e,f,g=0,k=0;return a&&(b=a[Ia],c=b[Ga+wa],d=b[bb+wa],e=b[Na+wa],f=b[Ya+wa],c&&(g+=nc(c)),d&&(k+=nc(d)),e&&(g+=nc(e)),f&&(k+=nc(f))),{widthOffset:g,heightOffset:k}}function r(a){var b,c,d=[];if(a)for(c=0;c<za(a);c++)b=void 0===a[c]||null===a[c]||""===a[c]?Mb().Blank:a[c]+"",d.push(b);return d}function n(a){var b,d,e,f,g,k,h,m,l=xb(Qa),p=xb(Qa),n=xb("span"),q=xb(Qa),t=a.zoomFactor(),r=a.style();return H(l,[Ka,Hb,Qb,Yb,Ib,sb,Jb],[cc,Gb,0,0,0,tb,Kb]),Ma(l).addClass(ec),a.KW=l,b=a.PW*t,H(p,[Ka,Hb,Yb,Ib,sb,Jb],[cc,Gb,b,b,tb,Kb]),Ma(p).addClass(gc),a.LW=p,Ma(l).append(p),d=a.QW*D(r)*t,e=c(a)*t,H(n,[sb,Hb,Qb,Jb,Ka,Bb,ob],[tb,Gb,d,Kb,e,Sb,mc]),Ma(n).text(a.captionName()).attr(Ob,Pb).addClass(yb+" "+$b),a._caption=n,f=a.RW*t,g=a.SW*t,k=a.TW*D(r)*t,h=a.UW*t,m=a.VW*t+Ca,H(q,[Ka,Aa,Wb,Hb,Qb,Ib,dc,sb,lc,kc,Jb,Vb],[f,g,pb,Gb,k,h,"center",tb,"normal",2,Kb,m]),Ma(q).attr("title","Clear Filter (Alt+C)").attr(Ob,Pb).text(qc).addClass(vc+" "+$b),a.WW=q,x(a,Lb),Ma(p).append(n).append(q),l}function w(a){var b,c=xb(Qa),d=xb("table"),e=xb("tr"),f=xb("td"),g=xb("td"),k=(a.MW-a.PW+a.XW)*D(a.style())*a.zoomFactor();return H(c,[Ka,Jb,Xb,sb],[cc,Kb,k,tb]),Ma(c).attr(Ob,Pb).addClass(pc+" "+$b),a.YW=c,H(d,[sb,"border-spacing"],[tb,0+Ca]),Ma(d).attr(Ob,Pb).addClass(uc+" "+$b),a.ZW=d,Ma(e).css(sb,tb).addClass(ab),a.$W=e,H(f,[Cb,sb],[0,tb]),Ma(f).addClass(Db),a._W=f,H(g,[Cb,sb,Wb],[0,tb,pb]),Ma(g).addClass(fc),a.aX=g,Ma(f).append(z(a)),b=y(a),Ma(g).append(b),a.bX=b,Ma(e).append(f).append(g),Ma(d).append(e),Ma(c).append(d),c}function z(b){var c,d,e,f,g,k=xb(Qa);e=b.zoomFactor();b.cX=k;d=m(b);b.dX=d;c=h(b);b.eX=c;H(k,[Ka,Aa,Vb],[c*e,d*e,b.VW*e+Ca]);Ma(k).attr(Ob,Pb).addClass(tc+" "+$b);c=B(b);b.fX=c;d=Math.min(a(b),za(c));for(e=0;e<d;e++)f=c[e],g=C(b,f,e),Ma(k).append(g),b._items.push(g),b.NW[b.gX.indexOf(f)]=g;return k}function C(a,b,c){var d=xb(bc),e=a.zoomFactor();return H(d,[dc,ob,Xb,Wb,sb,kc,Cb,Jb,Bb,ia],[Yb,mc,a.hX*e+Ca,pb,tb,5,"1px 6px",Kb,Sb,ba]),Ma(d).attr("type",bc).attr(Ob,Pb).text(b).addClass(vb+" "+$b),0!==(c+1)%a.columnCount()&&Ma(d).css("margin-right",a.hX*e+Ca),x(a,Ub,d),d}function c(a){var b,c,d=a.xo,e=a.KW,f=1,g=1,k=0,h=0,m=function(a){return a?nc(a):0},l=Ra+"Left"+wa,p=Ra+"Right"+wa;return d&&(b=d.style,f=m(b[l]),g=m(b[p])),e&&(c=e.style,k=m(c[l]),h=m(c[p])),a.width()-(f+g)-2*a.PW-(k+h)-a.RW}function m(a){var b=A(a.xo),b=a.height()-2*a.PW-b.heightOffset;return a.showHeader()?b-a.MW*D(a.style())-a.XW:b}function h(a){var b=A(a.xo),b=a.width()-2*a.PW-b.widthOffset-1;return a.iX()?b-a.jX:b}function a(a){return Math.ceil(a.dX/(a.itemHeight()+2*(a.kX+a.lX)+a.hX))*a.columnCount()}function B(a){var b,c,d,e,f=a.gX,g=a.mX(f.slice(0),a.sortState()),k=a.slicerData.getFilteredOutIndexes(a.columnName,2);if(a.showNoDataItems()){if(a.visuallyNoDataItems()&&a.showNoDataItemsInLast()){a=[];b=za(g);for(c=0;c<b;c++)d=g[c],Pa.Bb(k,f.indexOf(d))||a.push(d);for(c=0;c<b;c++)d=g[c],Pa.Bb(k,f.indexOf(d))&&a.push(d);g=a}}else for(a=g.concat(),b=0;b<za(a);b++)Pa.Bb(k,f.indexOf(a[b]))&&Pa.Fb(g,a[b]);return e=Mb().Blank,Pa.Bb(g,e)&&(Pa.Fb(g,e),g.push(e)),g}function y(a){var b,c=new kb.hv(!1);return a.nX=c,b=c.Bv(),Ma(b).bind("scroll.gcScrollbar",function(b,c){var d,e=c.scrollEventType,f=c.scrollOrientation;b.data=a;1===f&&(d=[0,1,2,3,5],0<=d.indexOf(e)&&a.Bw(b,c))}),b}function t(a){var b=a.slicerData;a.data=b.getData(a.columnName);a.exclusiveDatas=b.getExclusiveData(a.columnName);a.oX=r(a.data);a.gX=r(a.exclusiveDatas);a.fX=B(a);k(a);p(a)}function E(a,b){var d;d=a.style();var f=a.xo;if(f){void 0!==b&&b!==a.zoomFactor()&&(a.zoomFactor(b),O(a,d));Ma(f).css(Cb,6*b);x(a,zb);var g,h,m,l,p,n,q,t,f=a.zoomFactor(),r=a.KW,y=a.YW,v=a._caption,w=a.WW,z=a.style();a.showHeader()?(a.xo.firstChild!==r&&(Ma(r).insertBefore(y),Ma(y).css(Xb,(a.MW+a.XW)*D(z)*f)),Ma(r).css(Aa,a.MW*D(z)*f),g=a.PW*f,H(a.LW,[Yb,Ib],[g,g]),v.innerHTML!==a.captionName()&&Ma(v).text(a.captionName()),h=a.QW*D(z)*f,m=c(a)*f,H(v,[Qb,Ka,lc],[h,m,"bold"]),l=a.pX,p=l&&0<za(l)?1:0,e(a,p),n=a.RW*f,q=a.TW*D(z)*f,t=a.UW*f,H(w,[Ka,Aa,Qb,Ib],[n,n,q,t]),x(a,Lb)):Ma(r).remove();d=a.showHeader()?(a.MW+a.XW-a.PW)*D(d)*b:0;Ma(a.YW).css(Xb,d);M(a);k(a)}}function M(a){var b,c=a.zoomFactor(),d=m(a);a.dX=d;b=h(a);a.eX=b;H(a.cX,[Ka,Aa,Vb],[b*c,d*c,a.VW*c]);p(a)}function p(b){var c,d,e,f,k,h,m=b.fX;if(m){(c=b._items)&&0<za(c)&&Ma(c).remove();b._items=[];c=b._items;b.NW={};d=Math.min(a(b),za(m));e=b.iX()?b.nX.value()*b.columnCount():0;for(d=Math.min(e+d,za(m));e<d;e++)f=m[e],k=C(b,f,e),Ma(b.cX).append(k),c.push(k),b.NW[b.gX.indexOf(f)]=k;if(0!==za(c))for(h in b.NW)wb(b.NW,h)&&g(b,parseInt(h))}}function g(a,b){var c=a.qX,c=c?a.gX.indexOf(c[rb]):-1,d=a.pX,e=a.rX,g=a.NW[b],k=0;b===c&&(k|=1);k|=Pa.Bb(d,b)?4:2;k|=Pa.Bb(e,b)&&a.visuallyNoDataItems()?16:8;f(a,g,k)}function f(a,b,c){var d=a.style(),e;if(b&&d){switch(c){case 10:e=gb;break;case 18:e=Za;break;case 12:e=cb;break;case 20:e=La;break;case 11:e=da;break;case 19:e=Oa;break;case 13:e=ca;break;case 21:e=nb}q(b,I(d[Ha],d[e]),F(a.slicerData),a._caption,a.zoomFactor());x(a,Ub,b)}}function k(a){var b,c,d,e,f,g=a.bX,k=a.aX;a.iX()?(g||(g=y(a)),k.firstChild!==g&&(Ma(k).append(g),M(a)),b=a.zoomFactor(),c=a.dX,d=Math.floor(c/(a.itemHeight()+2*a.kX+a.hX)),e=a.nX,e.value(a.sX),e.Vo(a.jX*b,!1),e._v(c*b,!1),e.bw(0),e.cw(Math.ceil(za(a.gX)/a.columnCount())-d),e.dw(d),e.qB(1),e.rB(d-1),e.ew()):(k.firstChild===g&&(f=g.parentElement,f&&f.removeChild(g),M(a)),a.sX=0)}function x(a,b,c){var d,e,f,g=a.zoomFactor();switch(b){case zb:c=a.xo;e=A(c);b=a.PW;d=(a.width()-2*b)*g-e.widthOffset;e=(a.height()-2*b)*g-e.heightOffset;f=c;break;case Lb:d=a.KW;c=A(d);c=a.MW*D(a.style())*g-c.heightOffset;Ma(d).css(Aa,c);d=a.RW*g;e=a.SW*g;f=a.WW;break;case Ub:e=A(c),d=a.eX,b=a.columnCount(),d=(d-(b-1)*a.hX)/b*g-2*a.tX-e.widthOffset,e=a.itemHeight()*g-e.heightOffset,f=c}H(f,[Ka,Aa],[d,e])}function W(a){var c=a.xo;c&&(Ma(c).bind("mousedown.slicer",function(b){a.AD(b)}).bind("mouseup.slicer",function(b){a.CD(b)}).bind("mousemove.slicer",function(b){a.BD(b)}).bind("mouseout.slicer",function(b){a.uX(b)}),c.addEventListener("mousewheel",function(b){a.Rw(b)},!1),c.addEventListener("DOMMouseScroll",function(b){a.Rw(b)},!1),Ma(ha).bind("mouseup.slicer",function(c){var d=a.qX;a.CD(c);d=d?new hb(d[lb],d[rb]):null;a.qX=null;b(a,d)}).bind("keydown.slicer",function(b){a.nm(b)}).bind("keyup.slicer",function(b){a.om(b)}),ha.addEventListener("mousewheel",function(b){a.Rw(b)},!1),ha.addEventListener("DOMMouseScroll",function(b){a.Rw(b)},!1))}function P(a){var b,c,d,e,g,k=a._items;if(k&&0!==za(k))for(b=a.rX,c=0,d=za(k);c<d;c++)e=k[c],g=a.gX.indexOf(k[c].innerHTML),g=Pa.Bb(b,g)?20:12,f(a,e,g)}function V(a,b){var c,d,e=a.gX;if(e)for(c=0,d=za(e);c<d;c++)if(e[c]===b)return c;return-1}function Z(a,b){var c,d,e=a.pX,g=a.rX;for(c=0;c<za(b);c++)d=0,d|=a.yX?Pa.Bb(e,b[c])?2:4:2,d|=Pa.Bb(g,b[c])&&a.visuallyNoDataItems()?16:8,f(a,a.NW[b[c]],d)}function e(a,b){var c,d,e,f=a.WW;if(f)switch(c=a.style(),d=I(c[Ha],c[na]),e=d&&d[Da],e||(e=ba),a.zX=e,b){case 0:a.AX=!1;H(f,[ya,ia],[a.BX,e]);break;case 1:a.AX=!0;H(f,[ya,ia],[a.CX,e]);break;case 2:Ma(f).css(ia,a.DX)}}function b(a,b){var c,d;if(b)switch(c=a.vX,b[lb]){case 4:if(!a.WW)break;a.AX?e(a,1):e(a,0);break;case 5:d=a.gX.indexOf(b[rb]),c&&Pa.Bb(c,d)?Z(a,c):g(a,d)}}function v(a,b){var c,d,e=a._items;if(e&&null!==b)for(c=0;c<za(e);c++)if(d=e[c],d.innerHTML.toLowerCase()===b.toLowerCase())return d;return null}function N(a,b){var c,d,e,f,g,k,h,m,l,p,n=null,q=null;if(!S(a,zb))return null;if(c=b.pageX,d=b.pageY,e=S(a,Lb),f=S(a,Ja),g=S(a,Ab),k=S(a,hc),e&&e.contains(c,d))n=f&&f.contains(c,d)?4:1;else if(g&&g.contains(c,d))if(h=a._items,k&&k.contains(c,d)&&h){for(e=0;e<za(h);e++)if(m=S(a,Ub,e),m&&m.contains(c,d)){n=5;for(l in a.NW)if(a.NW[l]===h[e]){q=a.gX[l];break}break}e>=za(h)&&(p=S(a,Ub,za(h)-1),n=d<p.y+a.itemHeight()*a.zoomFactor()?6:7)}else n=8;else n=0;return new hb(n,q)}function S(a,b,c){var d,e,f,g,k,h,m;m=b===zb?void 0:S(a,zb);var l=a.xo,p=a.EX,n=a.PW,q=a.zoomFactor(),t=a.style(),r=a.showHeader(),x=a.MW,y=a.RW,v=a.gX;switch(b){case zb:e=d=0;f=l.offsetWidth;g=l.offsetHeight;do d+=l.offsetLeft,e+=l.offsetTop,l=l.offsetParent;while(l);break;case Lb:if(!m||!r)return null;d=m.x+p*q;e=m.y+p*q;f=a.width()*q;g=x*D(t)*q;break;case Ja:if(!m||!r)return null;d=m.x+m.width-(p+n+y)*q;e=m.y+p+a.QW*D(t)*q;f=y*q;g=a.SW*q;break;case Ab:if(!m)return null;f=p+n;c=x*D(t)+a.XW;d=m.x+f*q;e=m.y+0*q+(r?c*q:0);f=(a.width()-2*f)*q;g=m.height-0*q-(r?c*q:0);break;case hc:if(k=S(a,Ab),!k)return null;if(!a.iX())return k;d=k.x;e=k.y;f=k.width-a.jX*a.zoomFactor();g=k.height;break;case Ub:if(!m||0===za(v)||c>=za(v)||(h=S(a,hc),!h))return null;e=a.columnCount();m=a.hX;f=(h.width-(e-2)*m*q)/e;g=a.itemHeight()*q+2*a.lX;d=h.x+c%e*(f+m*q);e=h.y+Math.floor(c/e)*(g+m*q)}return new kb.Rect(d,e,f,g)}function X(a){return 0<a}function Y(a,b,c){var d,e,f=a.sj,g=f.OW(),k=f.dataRange(),h=k.row+k.rowCount-1,m=k.col+k.colCount-1;for(d=k.row;d<=h;d++)for(e=[],b.push(e),a=k.col;a<=m;a++)e.push({value:g.getValue(d,a),text:g.getText(d,a)});for(a=0;a<k.colCount;a++)b=f.getColumnName(a)||"",c.push(b)}function ka(a,b){var c,d,e=a.kj;c=a.sj.rowFilter();e.suspendPaint();c=c&&c.Je||[];for(d=0;d<za(c);d++)ja(a,b,[c[d]]);e.resumePaint()}function ja(a,b,c){var d,e,f,g,k,h,m,l,p,n,q,t;for(d=0;d<c.length;d++){if(e=a.sj,f=a.xr,g=c[d]-e.range().col,k=e.dataRange(),h=g+k.col,m=a.columnNames[g],l=[],p={},Pa.Bb(f.Je,h)){n=[];for(q=k.row;q<k.row+k.rowCount;q++)f.WY(q,h)||n.push(q);for(q=0;q<za(n);q++)t=n[q]-k.row,t=a.getExclusiveRowIndex(m,t),p[t]||(p[t]=!0,l.push(t))}else for(p=za(a.getExclusiveData(m)),n=0;n<p;n++)l.push(n);n=a;q=m;p=n.getExclusiveData(q);q=n.getFilteredOutIndexes(q,1);t=[];for(n=0;n<za(p);n++)Pa.Bb(q,n)&&t.push(n);oa(t,l)||(b.prototype.doFilter.call(a,m,{exclusiveRowIndexes:l}),a.onFiltered(),a.kj.$p())}}function oa(a,b){var c;c=eb.j.Fa;if(c(a)&&c(b))return!0;if(c(a)&&!c(b)||!c(a)&&c(b)||!(c(a)||c(b)||a instanceof Array&&b instanceof Array)||a.length!==b.length)return!1;for(c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}function ma(a){var b=a.sj;a=b.OW();b=b&&b.rowFilter();return!a.options.isProtected||b&&b.TX(a)}function ea(a,b){var c,d,e=a.VX;if(b){c=b.getTable();for(d=0;d<za(e);d++)if(e[d].getTable()===c)return;e.push(b)}}function ga(a,b){var c,d,e,f=a.VX;for(c=0;c<za(f);c++)if(d=f[c],e=d.getTable(),d&&e&&e.tableName()===b)return d;return null}function T(a,b,c){var d;return b?wb(fa(a),b)&&(d=Mb().Exp_SlicerNameExist):d=Mb().Exp_SlicerNameInvalid,d&&c&&(c.error=Error(d)),!d}function fa(a){var b,c,d;b=a.kj;a={};var e=b&&b.parent&&b.parent.sheets;if(e)for(b=0;b<za(e);b++)for(d in c=e[b].slicers.XX(),c)wb(c,d)&&(a[d]=c[d]);return a}function Fa(a,b,c){var d,e,f=a.ZX;f&&(d=f.OW(),e=d.slicers,e.all().forEach(function(d){d===a&&(e.U3(b,c),a.onPropertyChanged(xa,c))}))}var aa,xa,Ia,la,pa,qa,ba,ra,ya,sa,ia,Ka,wa,Aa,Va,$a,Da,va,Ra,jb,Ta,ib,Ga,bb,Na,Ya,ta,fb,ua,Ha,na,gb,Za,cb,La,da,Oa,ca,nb,Qa,Ca,pb,Wb,Hb,Gb,Cb,Qb,Xb,Yb,Ib,dc,Jb,Kb,cc,Bb,Sb,ob,mc,Ob,Pb,lc,Vb,kc,sb,tb,bc,qc,lb,rb,rc,zb,sc,Lb,ec,gc,yb,Ja,vc,Ab,pc,uc,ab,Db,fc,hc,tc,Ub,vb,$b,Sa,Wa,Ua,Ba,Tb,ic,hb,qb,mb,Xa,Fb,kb=l(85),eb=l(26),ub=l(134),Rb=l(135),Ea=l(136),oc=l(124),wb=eb.D,jc={},Mb=function(){return eb.C(jc.SR)()},Pa=eb.k,Ma=kb.GC$,Zb=kb.To,Nb=kb.Commands,xb=kb.Ul.Nl,Eb=kb.Ul.Pl,ac=kb.Ul.Ol,za=Pa.ac,db=Ma.extend,ha=document,nc=parseFloat;db(kb.Worksheet.prototype,{t4:function(a,b,c,d,e){var f,g,k,h,m,l,p,n;if(void 0===e&&(e=3),f=this.tables)for(g=0;g<c;g++)for(k=0;k<d;k++)h=g+a,m=k+b,l=f.find(h,m),3===e&&l&&l.Aq()&&(p=l.dataRange(),p.contains(h,m)&&(n=l.getSlicerData(),n&&n.onDataChanged([{columnName:l.getColumnName(m-p.col),row:h-p.row,data:{value:this.getValue(h,m),text:this.getText(h,m)}}])))}});kb.Worksheet.$n("slicer",{priority:900,init:function(){this.slicers=new Xa(this)},setHost:function(){var a=this;a.bind("tableRemoved",function(b,c){var d,e,f,g=c.tables;for(d=0;d<za(g);d++)e=a.slicers,(f=ga(e,g[d].name()))&&Pa.Fb(e.VX,f)})},toJson:function(a){var b=this.slicers.toJSON();0<b.length&&(a.slicers=b)},fromJson:function(a){a&&a.slicers&&this.slicers.fromJSON(a.slicers)},preProcessMouseWheel:function(a){var b=this.slicers;b&&b.W3(a.e)&&(a.r=!0)}});aa=function(a){a.register("unfilterSlicerByKey",Nb.unfilterSlicerByKey,67,!1,!1,!0,!1);a.register("filterSlicer",Nb.filterSlicer);a.register("unfilterSlicer",Nb.unfilterSlicer);a.register("changeSlicerProperty",Nb.changeSlicerProperty)};kb.Workbook.$n("slicer",{init:function(){aa(this.commandManager())}});xa="name";Ia="style";la="Style";pa="light";qa="dark";ba="white";ra="black";ya="color";sa="Color";ia="background-color";Ka="width";wa="Width";Aa="height";Va="font";$a="setBorders";Da="back"+sa;va="fore"+sa;Ra="border";jb=Ra+"Width";Ta=Ra+la;ib=Ra+sa;Ga=Ra+"Left";bb=Ra+"Top";Na=Ra+"Right";Ya=Ra+"Bottom";ta="textDecoration";fb="WithData"+la;ua="WithNoData"+la;Ha="wholeSlicer"+la;na="header"+la;gb="selectedItem"+fb;Za="selectedItem"+ua;cb="unSelectedItem"+fb;La="unSelectedItem"+ua;da="hoveredSelectedItem"+fb;Oa="hoveredSelectedItem"+ua;ca="hoveredUnSelectedItem"+fb;nb="hoveredUnSelectedItem"+ua;Qa="div";Ca="px";pb="default";Wb="cursor";Hb="position";Gb="absolute";Cb="padding";Qb="top";Xb="margin-"+Qb;Yb="left";Ib="right";dc="text-align";Jb="overflow";Kb="hidden";cc="auto";Bb="text-overflow";Sb="ellipsis";ob="white-space";mc="nowrap";Ob="unselectable";Pb="on";lc="font-weight";Vb="font-size";kc="border-radius";sb="box-sizing";tb="content-box";bc="button";qc="\u2717";lb="mark";rb="itemValue";rc="Slicer"+la;zb="container";sc="gc-slicer-"+zb;Lb="header";ec="gc-slicer-"+Lb;gc="gc-slicer-header-borderDiv";yb="gc-slicer-caption";Ja="clearfilter";vc="gc-slicer-"+Ja;Ab="body";pc="gc-slicer-"+Ab;uc="gc-slicer-table";ab="gc-slicer-tr";Db="gc-slicer-td1";fc="gc-slicer-td2";hc="itemscontainer";tc="gc-slicer-"+hc;Ub="item";vb="gc-slicer-"+Ub;$b="gc-no-user-select";Sa=function(){function a(a,b,c,d,f,g,k,h){for(var m=0,l=za(e);m<l;m++)this[e[m]](arguments[m])}var b,c,d,e=[Da,va,Va,Ga,bb,Na,Ya,ta];b={constructor:a,setBorders:function(a){this[Ga](a)[bb](a)[Na](a)[Ya](a)},fromJSON:function(a){if(a&&!Ma.isEmptyObject(a)){var b=this;e.forEach(function(c){var d,e=a[c];ac(e)&&(0<=c.indexOf(Ra)?(d=J(),d.fromJSON(e),b[c](d,!1)):b[c](e,!1))})}},toJSON:function(){var a=this,b={};return e.forEach(function(c){var d=a[c]();a[c].isDefault(d)||(b[c]=d&&d.toJSON?d.toJSON():d)}),b}};c=0;for(d=za(e);c<d;c++)b[e[c]]=Eb(e[c]);return a.prototype=b,a}();Wa=function(){function a(a,b,c){for(var d=0;d<f;d++)this[e[d]](arguments[d])}var b,c,d,e=[jb,Ta,ib],f=za(e);b=function(a,b,c){return Eb(a,b,c,function(b){var c=typeof b;return a===jb?"number"===c&&0<=b:"string"===c})};c={constructor:a,fromJSON:function(a){var b,c;if(a&&!Ma.isEmptyObject(a))for(b=0;b<f;b++)c=e[b],ac(a[c])&&this[c](a[c],!1)},toJSON:function(){var a,b,c={};for(a=0;a<f;a++)c[e[a]]=this[e[a]]();a={};for(b in c)void 0!==c[b]&&null!==c[b]&&(a[b]=c[b]);return a}};for(d=0;d<f;d++)c[e[d]]=b(e[d],void 0,void 0);return a.prototype=c,a}();Ua=function(){function a(){this[xa]("");this[Ha](R(),!1)}var b,c,e,f;b=[xa,Ha,na,gb,Za,cb,La,da,Oa,ca,nb];c={constructor:a,name:Eb(xa,"",void 0,void 0),fromJSON:function(a){var c,e,f,g;if(a&&!Ma.isEmptyObject(a))return c=this,e=a.name,ac(e)&&(c.name(e,!1),Q(e))?(f=e.toLocaleLowerCase().replace("slicerstyle","").replace(" ",""),g=d(f),void b.forEach(function(a){c[a](g[a](),!1)})):void b.forEach(function(b){var e,f=a[b];b!==xa&&ac(f)&&(e=d(),e.fromJSON(f),c[b](e,!1))})},toJSON:function(){var a,b,c;a=Q(this.name())?{name:this.name()}:this.toJSONInternal();b={};for(c in a)null===a[c]||void 0===a[c]||kb.GC$.isEmptyObject(a[c])||(b[c]=a[c]);return b},toJSONInternal:function(){var a,c,d,e={};e[xa]=this.name();a=1;for(c=za(b);a<c;a++)d=b[a],e[d]=this[d]()?this[d]().toJSON():null;return e}};e=1;for(f=za(b);e<f;e++)c[b[e]]=Eb(b[e],void 0,void 0,void 0);return a.prototype=c,a}();Ba=function(a,b,c,e,f,g,k,h,m,l,p,n,q,t,r,x,y,v,w,z,u,A){var B=new Ua;B[xa](rc+a+b);a=d();a[Va](c)[Da](e)[$a](f);B[Ha](a);c=d();c[Ga](g)[bb](g)[Na](g)[Ya](k);B[na](c);B[gb](K(h,m,l));B[Za](K(p,n,q));B[cb](K(t,r,x));B[La](K(y,v,w));g=K(z,u,A);B[da](g)[Oa](g)[ca](g)[nb](g);return B};Tb=function(){function a(){}for(var b=1;6>=b;b++)a["light"+b]=function(a){return function(){var b="Accent "+a;return Ba("Light",a,"normal 11pt calibri",ba,J(1,"solid",b),J(0,"",""),J(1,"solid",b),ra,b+",Lighter 60%",J(1,"solid","#999999"),"#828282",b+",Lighter 80%",J(1,"solid","#CCCCCC"),ra,ba,J(1,"solid","#CCCCCC"),"#828282",ba,J(1,"solid","#E0E0E0"),ra,"#F9E36F",J(1,"solid","#999999"))}}(b),a["dark"+b]=function(a){return function(){var b="Accent "+a;return Ba("Dark",a,"normal 11pt calibri",ba,J(1,"solid",b),J(0,"",""),J(1,"solid",b),ba,b,J(1,"solid",b),b+",Darker 25%",b+",Lighter 60%",J(1,"solid",b+",Lighter 60%"),ra,"#C0C0C0",J(1,"solid","#C0C0C0"),"#959595","#DFDFDF",J(1,"solid","#DFDFDF"),ra,"#F9E36F",J(1,"solid","#999999"))}}(b);return a.other1=function(){return Ba("Other",1,"normal 11pt calibri",ba,J(1,"solid","#808080"),J(0,"",""),J(1,"solid","#A6A6A6"),ra,"#BFBFBF",J(1,"solid","#999999"),ra,"#D9D9D9",J(1,"solid","#CCCCCC"),ra,ba,J(1,"solid","#CCCCCC"),"#959595",ba,J(1,"solid","#E0E0E0"),ra,"#F9E36F",J(1,"solid","#999999"))},a.other2=function(){return Ba("Other",2,"normal 11pt calibri",ba,J(1,"solid","#4F81BD"),J(0,"",""),J(1,"solid","#4F81BD"),ra,"#A9C1E3",J(1,"solid","#999999"),"#828282","#D5E2F6",J(1,"solid","#CCCCCC"),ra,ba,J(1,"solid","#CCCCCC"),"#828282",ba,J(1,"solid","#E0E0E0"),ra,"#F9E36F",J(1,"solid","#999999"))},a}();ic=function(){function a(){E(this)}function c(){this.fX=B(this);E(this)}function d(b,c,d,e){return d||(d=a),kb.Ul.Pl(b,c,d,e)}function h(a,b,c){this.name(a,!1);this.xo=null;this.PW=6;this.EX=1;this.VW=14;this.KW=null;this.MW=27;this.XW=5;this.WW=this._caption=null;this.RW=28;this.SW=25;this.TW=3;this.UW=0;this.AX=!1;this.QW=3;this.cX=this.aX=this._W=this.$W=this.ZW=this.YW=null;this.dX=this.eX=0;this.bX=null;this.FX=2;this._items=[];this.NW={};this.kX=this.lX=1;this.tX=6;this.hX=2;this.jX=17;this.sX=0;this.zX=ba;this.DX="#F9E578";this.CX="red";this.BX="#B0ADB0";this.HX=this.GX=!1;this.vX=[];this.wX=[];this.xX=0;this.fX=[];this.pX=[];this.rX=[];this.gX=[];this.oX=[];this.slicerData=b;this.columnName=c;this.data=b.getData(c);this.exclusiveDatas=b.getExclusiveData(c);this.slicerData.attachListener(this);this.IX()}var m,l,q,y;h.getDefaultStyle=function(){var a=function(a,b,c,d,e,f,g,k){var h={};return h[Da]=a,h[va]=b,h[Va]=c,h[Ga]=d,h[bb]=e,h[Na]=f,h[Ya]=g,h[ta]=k,h},b=function(a,b,c){var d={};return d[jb]=a,d[Ta]=b,d[ib]=c,d},c=b(1,"solid","#808080"),d=b(0,"",""),e=b(1,"solid","#999999"),f=b(1,"solid","#CCCCCC"),g=b(1,"solid","#E0E0E0"),k=a("#F9E36F",ra,"normal 11pt calibri",e,e,e,e),h={};return h[Ha]=a(ba,ra,"normal 11pt calibri",c,c,c,c),h[na]=a(ba,ra,"bold 11pt calibri",d,d,d,b(1,"solid","#A6A6A6")),h[gb]=a("#BFBFBF",ra,"normal 11pt calibri",e,e,e,e),h[Za]=a("#D9D9D9",ra,"normal 11pt calibri",f,f,f,f),h[cb]=a(ba,ra,"normal 11pt calibri",f,f,f,f),h[La]=a(ba,"#959595","normal 11pt calibri",g,g,g,g),h[da]=k,h[Oa]=k,h[ca]=k,h[nb]=k,h};m=[[xa],[Ka,180],[Aa,210],["captionName",""],["columnCount",1,null,X],["itemHeight",21,null,X],["showHeader",!0],["sortState",1,c],["showNoDataItems",!0,c],["showNoDataItemsInLast",!0,c],["visuallyNoDataItems",!0,c],[Ia,h.getDefaultStyle(),function(a){O(this,a);E(this)}],["zoomFactor",1,null,X],["isLocked"],["disableResizingAndMoving"]];l={constructor:h,IX:function(){this.oX=r(this.data);this.gX=r(this.exclusiveDatas);var a=xb(Qa);this.xo=(H(a,[Hb,Cb,sb,Jb],[Gb,6*this.zoomFactor(),tb,Kb]),Ma(a).addClass(sc),x(this,zb),Ma(a).append(n(this)).append(w(this)),a);this.captionName(this.columnName,!1);W(this);this.onFiltered();O(this,this.style());E(this)},getDOMElement:function(){return this.xo},mX:function(a,b){var c,d,e=[];if(0!==b){c=ub.jf.quickSort(a);for(d=0;d<za(c);d++)e[d]=c[d].value;return 2===b&&e.reverse(),e}},iX:function(){var a=this.gX,a=this.showNoDataItems()?za(a):za(a)-za(this.rX);return Math.ceil(a/this.columnCount())*(this.itemHeight()+2*(this.lX+this.kX)+this.hX)>this.dX},Bw:function(a,b){this.JX(a,b)},JX:function(a,b){var c=b.newValue;c!==this.sX&&c<=this.nX.cw()&&(this.sX=c,k(this),p(this))},onDataChanged:function(){t(this)},onRowsChanged:function(){t(this)},onColumnNameChanged:function(a,b){this.columnName===a&&this._caption&&(this.columnName=b,this.captionName(b,!1),Ma(this._caption).text(b))},onColumnRemoved:function(a){a===this.columnName&&(this.slicerData.doUnfilter(a),(a=this.xo)&&Ma(a).unbind(".slicer"),Ma(this.xo).remove(),this.xo=null)},onFiltered:function(){var a=this.slicerData,b=this.columnName;this.fX=B(this);this.rX=a.getFilteredOutIndexes(b,2);this.pX=a.getFilteredOutIndexes(b,1);E(this)},AD:function(a){var b=N(this,a);if(b){8===b[lb]&&(this.HX=!0);if(5===b[lb])if(this.wX=[],this.GX=!0,a.ctrlKey){var c,d,e=this.exclusiveDatas,f=this.pX,k=V(this,b[rb]);d=this.vX;var h=this.wX;Pa.Bb(d,k)?Pa.Fb(d,k):d.push(k);for(c=0;c<za(e);c++)Pa.Bb(f,c)||h.push(c);for(c=0;c<za(d);c++)Pa.Bb(h,d[c])?Pa.Fb(h,d[c]):h.push(d[c]);if(0===za(h))for(d=0;d<za(this.gX);d++)h.push(d);this.xX=k}else if(a.shiftKey){var m,k=this.fX,h=this.gX;d=h[this.xX];P(this);d=k.indexOf(d);e=k.indexOf(b[rb]);c=Math.min(d,e);for(d=Math.max(d,e);c<=d;c++)e=h.indexOf(k[c]),f=this.vX,m=this.wX,-1===f.indexOf(e)&&f.push(e),-1===m.indexOf(e)&&m.push(e)}else P(this),k=V(this,b[rb]),g(this,k),this.vX.push(k),this.wX.push(k),this.xX=k;Z(this,this.vX);(5===b[lb]||6===b[lb]||8===b[lb]||4===b[lb]&&this.AX)&&a.stopPropagation()}},CD:function(a){var b,c,d;(a=N(this,a))&&(b=this.slicerData,c=this.vX,d=!1,4===a[lb]?this.AX&&(b.doUnfilter(this.columnName),e(this,0),d=!0):c&&0<za(c)&&(this.yX||this.KX||(b.doFilter(this.columnName,{exclusiveRowIndexes:this.wX}),d=!0)),this.GX=!1,this.HX=!1,d&&(this.vX=[],this.wX=[]))},BD:function(a){var c,d,k,h,m,l,p,n,q,t=this.qX;d=t?new hb(t[lb],t[rb]):null;a=N(this,a);var t=this.gX,r=this.wX;if(a&&(!d||d[lb]!==a[lb]||5===d[lb]&&d[rb]!==a[rb]))if(this.GX){if(5===a[lb])if(c=t.indexOf(a[rb]),d=this.rX,Pa.Bb(r,c)){l=this.fX;k=l.indexOf(t[this.xX]);h=l.indexOf(a[rb]);c=Math.min(k,h);p=Math.max(k,h);n=[];k=0;for(h=za(r);k<h;k++)q=r[k],m=l.indexOf(t[q]),(m>p||m<c)&&n.push(q);k=0;for(h=za(n);k<h;k++)m=n[k],l=v(this,t[m]),Pa.Bb(d,m)?f(this,l,20):f(this,l,12),Pa.Fb(r,m)}else l=v(this,t[c]),Pa.Bb(d,c)?f(this,l,18):f(this,l,10),Pa.Sb(r,c);this.qX=a}else a:if(this.qX=a,b(this,d),a)switch(a[lb]){case 4:if(!this.WW||!this.AX)break a;e(this,2);break;case 5:a=this.gX.indexOf(a[rb]);g(this,a);break;case 6:this.cX.style.cursor=pb}},uX:function(){var a=this.qX,a=a?new hb(a[lb],a[rb]):null;this.qX=null;b(this,a)},Rw:function(a){return 8===N(this,a)[lb]&&(a.stopPropagation(),!0)},nm:function(a){17!==a.keyCode||this.yX||(this.yX=!0);16!==a.keyCode||this.KX||(this.KX=!0)},om:function(a){var b=this.slicerData;17===a.keyCode&&this.yX&&(this.yX=!1);16===a.keyCode&&this.KX&&(this.KX=!1);!this.yX&&!this.KX&&0<za(this.vX)&&(b.doFilter(this.columnName,{exclusiveRowIndexes:this.wX}),this.vX=[],this.wX=[])}};q=0;for(y=za(m);q<y;q++)l[m[q][0]]=d(m[q][0],m[q][1],m[q][2],m[q][3]);return Ma.extend(h.prototype,l),h}();hb=function(){return function(a,b){this[lb]=void 0===a?null:a;this[rb]=void 0===b?null:b}}();qb=function(a){function b(b){var c=this,d=[],e=[],f=b.rowFilter();c.sj=b;c.kj=b.OW();c.xr=f;c.MX=null;Y(c,d,e);a.call(c,d,e);ka(c,a);f&&(f.filterHandler=function(b){ja(c,a,b.columns)})}Ma.inherit(b,a);return Ma.extend(b.prototype,{constructor:b,OW:function(){return this.kj},getTable:function(){return this.sj},doFilter:function(b,c,d){var e,f,g,k,h,m,l,p,n,q,t,r,x,y=this.kj;p=this.sj;var v=this.xr;n=c.ranges;g=c.exclusiveRowIndexes;var w=!!g;q=this.getColumnIndex(b);if(!(0>q||!w&&!n))if(d)a.prototype.doFilter.call(this,b,c,d);else{if(e=w?this.getExclusiveData(b):this.getData(b),d=[],w)d=g;else for(f=this.ef(),g=this.ff(),f[q]||this.We(q),f=f[q],k=0;k<za(n);k++)for(h=n[k],h=this.Xe(f,h),m=h.start;m<=h.end;m++)d.push(g[q][m]);if(y.suspendPaint(),l=p.startColumn()+q,p=p.dataRange().row,v&&(v.NX(l),v.OX(l)),y.AR(),n=[],oc)for(q=0;q<za(d);q++)g=new oc.$V(2,0,e[d[q]]),v&&v.addFilterItem(l,g),n.push(g);if(a.prototype.hf.call(this,b,c),t=[],r={},this.gf(b,t,r),v){for(c=0;c<za(d);c++)if(x=w?d[c]:this.getExclusiveRowIndex(b,d[c]),r[x])if(v.PX(n[c]),w)for(t=this.getRowIndexes(b,d[c]),e=0;e<za(t);e++)v.QX(t[e]+p,l);else v.QX(d[c]+p,l);v.RX(l,!0);v.onFilter(v.SX(0,[l]))}this.onFiltered();y.resumePaint()}},doUnfilter:function(b){var c,d=this.sj,e=this.getColumnIndex(b),f=this.xr;-1!==e&&(c=d.startColumn()+e,f.removeFilterItems(c),a.prototype["if"].call(this,b),f.OX(c),f.RX(c,!1),f.onFilter(f.SX(0,[c])),this.onFiltered(),this.kj.$p())},refresh:function(){var a=[],b=[];Y(this,a,b);this.bf(a,b);this.cf()},onColumnNameChanged:function(b,c){a.prototype.onColumnNameChanged.call(this,b,c);this.kj.slicers.all().forEach(function(a){a.columnName(c)})},onRowsAdded:function(b,c){var d,e,f=this.kj,g=this.sj.dataRange();a.prototype.onRowsAdded.call(this,b,c,!0);for(d=b;d<b+c;d++)for(e=0;e<za(this.columnNames);e++)this.data[d][e]={value:f.getValue(g.row+d,g.col+e),text:f.getText(g.row+d,g.col+e)};this.bf(this.data,this.columnNames);this.cf(b,c,!0,"onRowsChanged")},onRowsRemoved:function(b,c){a.prototype.df.call(this,b,c,!1)},onColumnsAdded:function(a,b){var c,d,e=this.kj,f=this.sj,g=f.dataRange(),k=this.data,h=this.columnNames;for(c=0;c<za(k);c++)for(d=a;d<a+b;d++)k[c].splice(d,0,{value:e.getValue(g.row+c,g.col+d),text:e.getText(g.row+c,g.col+d)});for(c=a;c<a+b;c++)d=f.getColumnName(c)||"",h.splice(c,0,d);this.bf(k,h)},onColumnsRemoved:function(b,c){var d,e,f=this.kj,g=this.sj.name(),k=this.columnNames,h=[];for(d=b;d<b+c;d++)h.push(k[d]);a.prototype.onColumnsRemoved.call(this,b,c);e=f&&f.slicers;h.forEach(function(a){e.all(g,a).forEach(function(a){e.remove(a.name())})})},onTableRemoved:function(a){var b,c,d=this;a&&a===d.sj&&(d.MX=[],b=d.kj,c=b.slicers,a=a.name(),c.all(a).forEach(function(a){d.MX.push(a);c.remove(a.name())}),c&&Pa.Fb(c.VX,d),d.Ze=[])},onTableAdded:function(a){var b=this.kj.slicers;b&&a&&a.Aq()&&ea(b,a.getSlicerData());(this.MX||[]).forEach(function(a){b.Cz(a)})}}),b}(ub.GeneralSlicerData);Ea&&Ma.extend(Ea.Table.prototype,{getSlicerData:function(){return this.ZX||(this.ZX=new qb(this)),this.ZX}});mb=function(a){function b(b,c,d){a.call(this,b,c,d);this.isSelected(!1)}Ma.inherit(b,a);var c={constructor:b,isSelected:Eb("isSelected",!1),sheet:Eb("sheet"),slicer:Eb("slicer"),IX:function(){var b=this.slicerData;b&&b instanceof qb&&(this.sheet(b.OW()),this.sj=b.getTable());a.prototype.IX.call(this)},onColumnRemoved:function(a){var b,c=this.sheet(),d=this.sj,e=this.slicerData;a===this.columnName&&(b=e.getFilteredOutIndexes(a,1),0!==za(b)&&e.doUnfilter(a),c&&d&&c.wr.Fb(this.name()))},mX:function(a,b){var c,d,e,f,g=this.slicerData,k=g.getColumnIndex(this.columnName),h=this.sj.dataRange(),m=[];if(0===b)return a;c=[];d=g.OW();for(e=0;e<za(a);e++)f=g.getRowIndexes(this.columnName,e),c.push(d.getValue(h.row+f[0],h.col+k));c=ub.jf.quickSort(c);for(d=0;d<za(c);d++)m[d]=a[c[d].index];return 2===b&&m.reverse(),m},Bw:function(b,c){var d,e;d=this.sheet();(e=this.slicer())&&d.ER(e)||(c.newValue=c.oldValue);d=e.$X;for(e=0;e<za(d);e++)a.prototype.JX.call(d[e],b,c)},AD:function(b){var c,d;d=this.sheet();var e=this.slicer();if(e&&d.ER(e)){if(c=N(this,b),!ma(this)&&(5===c[lb]||6===c[lb]||8===c[lb]))return void b.stopPropagation();c=e.$X;for(d=0;d<za(c);d++)a.prototype.AD.call(c[d],b)}},CD:function(a){var b,c,d,e,f,g,k,h,m,l=this.sheet(),p=this.slicer();if(p&&l.ER(p)&&ma(this)&&(b=N(this,a))){c=this.slicerData;d=this.vX;e=this.wX;f=c.getExclusiveData(this.columnName);a=!1;g=null;4===b[lb]||5===b[lb]&&za(e)===za(f)&&!this.yX&&!this.KX?(k=c.getFilteredIndexes(this.columnName),g=l.wu().execute({cmd:"unfilterSlicer",sheetName:l.name(),slicerData:c,columnName:this.columnName,value:k}),a=!0):d&&0<za(d)&&(this.yX||this.KX||(h=c.getFilteredIndexes(this.columnName),m=e.concat(),g=l.wu().execute({cmd:"filterSlicer",sheetName:l.name(),slicerData:c,columnName:this.columnName,oldValue:h,newValue:m}),a=!0));b=p.$X;k=0;for(h=za(b);k<h;k++)m=b[k],m.GX=!1,m.HX=!1,a&&(m.vX=[],m.wX=[]);return!!g}},BD:function(b){var c,d;c=this.sheet();if((d=this.slicer())&&!this.HX&&c.ER(d))for(c=d.$X,d=0;d<za(c);d++)a.prototype.BD.call(c[d],b)},uX:function(b){var c,d;c=this.sheet();if((d=this.slicer())&&c.ER(d))for(c=d.$X,d=0;d<za(c);d++)a.prototype.uX.call(c[d],b)},Rw:function(b){var c,d,e,f;return!!a.prototype.Rw.call(this,b)||(c=this.sheet(),d=c.slicers,e=d&&d.UX(),f=this.nX,!!(e&&1===za(e)&&this.isSelected()&&this.iX()&&f)&&(f.sC(b),b.stopPropagation(),!0))},om:function(a){var b,c,d,e,f=this.slicerData,g=this.sheet(),k=this.wX;17===a.keyCode&&this.yX&&(this.yX=!1);16===a.keyCode&&this.KX&&(this.KX=!1);!this.yX&&!this.KX&&0<za(this.vX)&&(b=za(f.getExclusiveData(this.columnName)),za(k)===b?(c=f.getFilteredIndexes(this.columnName),g.wu().execute({cmd:"unfilterSlicer",sheetName:g.name(),slicerData:f,columnName:this.columnName,value:c})):(d=f.getFilteredIndexes(this.columnName),e=k.concat(),g.wu().execute({cmd:"filterSlicer",sheetName:g.name(),slicerData:f,columnName:this.columnName,oldValue:d,newValue:e})),this.vX=[],this.wX=[])}};return Ma.extend(b.prototype,c),b}(ic);Xa=function(){function a(a){this.kj=a;this.VX=[];this.WX={}}return a.prototype={constructor:a,add:function(a,b,c,d){var e,f=this.kj;return(b=f.parent.jga(b))&&-1!==b.getColumnIndexInTable(c)?(f.suspendPaint(),e=new Fb(a,b,c),d&&e.style(d),this.Cz(e),f.wr.Sb(e),f.resumePaint(),e):null},Cz:function(a){var b,c;if(a){if(b=a.name(),c={},!T(this,b,c))throw c.error;this.WX[b]=a;ea(this,a.YX())}},get:function(a){return null===a||void 0===a?null:this.WX[a]},remove:function(a){var b,c,d,e=this.kj;b=this.WX;if((c=this.get(a))&&wb(b,a)){b=c.YX();c=c.$X;for(d=0;d<za(c);d++)b.detachListener(c[d]);delete this.WX[a];e.wr.Fb(a)}},U3:function(a,b){var c,d=this.kj;c={};if(!T(this,b,c))throw c.error;c=this.WX[a];delete this.WX[a];this.WX[b]=c;d.wr.U3(a,b)},clear:function(){var a=this,b=a.sheet();b.suspendPaint();Ma.each(this.WX,function(b){a.remove(b.name())});b.resumePaint()},all:function(a,b){var c=[];return Ma.each(this.WX,function(d,e){a&&(e.ZX.getTable().name()!==a||b&&e.columnName()!==b)||c.push(e)}),c},XX:function(){return this.WX},HS:function(a){var b,c=fa(this);if(!wb(c,a))return a;b=1;for(a=a.split(" ")[0];wb(c,a+" "+b);)b++;return a+" "+b},UX:function(){var a,b,c,d=this.WX;if(!d||kb.GC$.isEmptyObject(d))return[];a=[];for(b in d)wb(d,b)&&(c=d[b],c&&c.isSelected()&&a.push(c));return a},W3:function(a){var b,c;c=this.UX();if(1!==za(c))return!1;if(b=c[0].$X,0<za(b)){for(c=0;c<za(b);c++)b[c].Rw(a);return!0}return!1},toJSON:function(){var a,b=[],c=this.WX;if(c&&!kb.GC$.isEmptyObject(c))for(a in c)wb(c,a)&&b.push(c[a].toJSON());return b},fromJSON:function(a){var b,c,d,e,f,g,k;if(a&&0!==za(a))for(b=this.kj,c=b.parent,this.WX={},d=0;d<za(a);d++)e=a[d].tableName,f=a[d].columnName,e&&f&&(g=c.jga(e),g&&-1!==g.getColumnIndexInTable(f)&&(k=new Fb(a[d].name,g,f),k.sheet(b),k.fromJSON(a[d]),b.slicers.Cz(k),b.wr.Sb(k)))}},a}();Fb=function(a){function b(a,b,c,d){return e.push(a),Eb(a,b,function(b,d){c.call(this,a,b,d)},d)}function c(a,b){var c,d=this.$X||[];for(c=0;c<za(d);c++)d[c][a]&&("style"===a?d[c][a](b.toJSONInternal()):d[c][a](b));c=this.sheet();this.Wq({sheet:c,sheetName:c?c.Cj:"",slicer:this,propertyName:a})}function d(b,c,d){a.call(this,b,100,100,192,250);var e,f;this.typeName="Slicer";c&&(e=c.OW(),this.sheet(e),f=ga(e.slicers,c.tableName()));f||(f=c.getSlicerData());this.ZX=f;this.columnName(d);this.$X=[];this._X=d;this.nameInFormula("Slicer_"+d);this.captionName(d);this.dynamicSize(!1);this.dynamicMove(!1)}var e,f,g,k,h;Ma.inherit(d,a);e=[];f=[["name","",function(a,b,c){Fa(this,c,b)},function(a){var b,c,d,e;if(!a||(b=this.ZX,a===this.name()))return!1;if(b&&(c=b.OW(),d=c&&c.slicers,d&&(e={},!T(d,a,e))))throw e.error;return!0}],["captionName","",c],["columnCount",1,c,X],["itemHeight",21,c,X],["showHeader",!0,c],["sortState",1,c],["disableResizingAndMoving",!1,function(a,b){this.allowMove(!b,!1);this.allowResize(!b,!1);c.call(this,"disableResizingAndMoving",b)}],["showNoDataItems",!0,c],["showNoDataItemsInLast",!0,c],["visuallyNoDataItems",!0,c],["style",Tb.light1(),c],["columnName","",function(a,b){this._X=b;this.captionName(b,!1)}]];g={constructor:d,sourceName:function(){return this._X},nameInFormula:b("nameInFormula","",c),onPropertyChanged:c,cloneContent:function(){var a=this.sheet(),b=this.ZX,b=new mb(this.name(),b,this.columnName());return b.width(this.width(),!1).height(this.height(),!1).captionName(this.captionName()).columnCount(this.columnCount()).itemHeight(this.itemHeight()).showHeader(this.showHeader()).sortState(this.sortState()).isLocked(this.isLocked()).disableResizingAndMoving(this.disableResizingAndMoving()).showNoDataItems(this.showNoDataItems()).showNoDataItemsInLast(this.showNoDataItemsInLast()).visuallyNoDataItems(this.visuallyNoDataItems()).style(this.style().toJSONInternal()).zoomFactor(a._zoomFactor).isSelected(this.isSelected()).slicer(this),b.sheet()!==a&&b.sheet(a),this.$X.push(b),b.getDOMElement()},YX:function(){return this.ZX},hga:function(){return!1},refresh:function(a){var b,c=this.$X;for(b=0;b<za(c);b++)E(c[b],a)},refreshContent:function(a){a=this.sheet().zoom();a!==this.MP&&(this.MP=a,this.refresh(a))},clone:function(a){var b;return!this.sheet()&&a&&this.sheet(a,!1),b=new d(this.name(),this.ZX.getTable(),this.columnName()),b.sheet(this.sheet(),!1),b.fromJSON(this.toJSON(),!1,this.ZX),b},fromJSON:function(b,c,d){var f,g,k,h,m,l,p,n,q=this;c=b.tableName;var t=b.columnName;b&&!Ma.isEmptyObject(b||!c||!t)&&(a.prototype.fromJSON.call(this,b),f=q.sheet(),g=f.slicers,k=f.parent,h=d?d:ga(g,c),h||(m=k.jga(c),h=m.getSlicerData(),ea(g,h)),q.ZX=h,q.columnName(t),l=void 0!==b.x?b.x:100,p=void 0!==b.y?b.y:100,q.position(new kb.Point(l,p),!1),q.width(void 0!==b.width?b.width:192,!1),q.height(void 0!==b.height?b.height:250,!1),void 0!==b.sourceName&&(q._X=b.sourceName),e.forEach(function(a){var c=b[a];void 0!==c&&q[a](c,!1)}),void 0!==b.style&&(n=new Ua,n.fromJSON(b.style),q.style(n,!1)))},toJSON:function(){var a,b,c,d=this,f={};return"x y width height dynamicMove dynamicSize isLocked fixedPosition".split(" ").forEach(function(a){var b=d[a]();d[a].isDefault(b)&&"dynamicMove"!==a&&"dynamicSize"!==a||(f[a]=b)}),a=d._X,a&&(f.sourceName=a),d.style()&&(f.style=d.style().toJSON()),b=d.ZX,c=b.getTable(),c.tableName&&(f.tableName=c.tableName()),e.forEach(function(a){var b=d[a]();"style"===a||d[a].isDefault(b)||(f[a]=b)}),f},Wq:function(a){var b=this.sheet();b&&b.Wq(kb.Events.SlicerChanged,a)}};k=0;for(h=za(f);k<h;k++)g[f[k][0]]=b(f[k][0],f[k][1],f[k][2],f[k][3]);return Ma.extend(d.prototype,g),d}(Rb.FloatingObject);jc={ItemSlicer:ic,SlicerStyleInfo:Sa,SlicerBorder:Wa,SlicerStyle:Ua,SlicerStyles:Tb,TableSlicerData:qb,Slicer:Fb,SlicerCollection:Xa};U.exports=jc},function(U,u){U.exports=GC.Spread.Slicers},function(U,u){U.exports=GC.Spread.Sheets.FloatingObjects},function(U,u){U.exports=GC.Spread.Sheets.Tables},function(U,u,l){U=l(85);var d=U.Commands,J=U.GC$;U=d.ActionBase;var R=function(d){function l(l,u){d.call(this);this.kj=l;this.VQ=u}J.inherit(l,d);return J.extend(l.prototype,{canExecute:function(){return!!this.VQ.slicerData},execute:function(){var d,l=this.VQ;return!!this.canExecute()&&(d=this.kj,this.Lz(d,!0),l.slicerData.doFilter(l.columnName,{exclusiveRowIndexes:l.newValue}),this.Mz(d,!0),!0)},canUndo:function(){return!!this.VQ.slicerData},undo:function(){var d,l=this.VQ;return!!this.canUndo()&&(d=this.kj,this.Lz(d,!0),l.slicerData.doFilter(l.columnName,{exclusiveRowIndexes:l.oldValue}),this.Mz(d,!0),!0)}}),l}(U),Q=function(d){function l(l,u){d.call(this);this.kj=l;this.VQ=u}J.inherit(l,d);return J.extend(l.prototype,{canExecute:function(){return!!this.VQ.slicerData},execute:function(){var d,l=this.VQ;return!!this.canExecute()&&(d=this.kj,this.Lz(d,!0),l.slicerData.doUnfilter(l.columnName),this.Mz(d,!0),!0)},canUndo:function(){return!!this.VQ.slicerData},undo:function(){var d,l=this.VQ;return!!this.canUndo()&&(d=this.kj,this.Lz(d,!0),l.slicerData.doFilter(l.columnName,{exclusiveRowIndexes:l.value}),this.Mz(d,!0),!0)}}),l}(U),K=function(d){function l(l,u){d.call(this);this.kj=l;this.VQ=u}J.inherit(l,d);return J.extend(l.prototype,{canExecute:function(){return!!this.VQ.slicer},execute:function(){var d,l=this.VQ;return!!this.canExecute()&&(d=this.kj,this.Lz(d,!0),l.slicer[l.propertyName](l.newValue),this.Mz(d,!0),!0)},canUndo:function(){return!!this.VQ.slicer},undo:function(){var d,l=this.VQ;return!!this.canUndo()&&(d=this.kj,this.Lz(d,!0),l.slicer[l.propertyName](l.oldValue),this.Mz(d,!0),!0)}}),l}(U),O=d.h4;d.filterSlicer={canUndo:!0,execute:function(d,l,u){return O(d,R,l,u)}};d.unfilterSlicer={canUndo:!0,execute:function(d,l,u){return O(d,Q,l,u)}};d.changeSlicerProperty={canUndo:!0,execute:function(d,l,u){return O(d,K,l,u)}};d.unfilterSlicerByKey={canUndo:!1,execute:function(l,u){var H,F,G,q=d.bT(l,u),D=q.slicers.UX();if(1===D.length&&(H=D[0],F=H.YX()))return G=F.getFilteredIndexes(H.columnName()),q.wu().execute({cmd:"unfilterSlicer",sheetName:q.name(),slicerData:F,columnName:H.columnName(),value:G})}}},function(U,u){U.exports={Blank:"(blank)",Exp_SlicerNameInvalid:"The slicer name is not valid.",Exp_SlicerNameExist:"The slicer name is already in use, please enter a unique name."}},function(U,u,l){u=l(140);l(141);U.exports=u},function(U,u,l){function d(d){if(F(d))return 0;if("number"==typeof d)return d;if("string"==typeof d){var l=parseFloat(d);if(!isNaN(l)&&""+l===d)return l}return null}function J(d,l){var n,q,r;if(!F(d))return 1===d||2===d?n=R.createNumberValidator(l.operator,l.value1,l.value2,1===d):3===d?l.value?n=R.createListValidator(l.value):l.formula&&(n=R.createFormulaListValidator(l.formula)):4===d||5===d?(q=l.value1,r=l.value2,q&&"/OADate("===q.substr(0,8)&&(q=A.Lia(q)),r&&"/OADate("===r.substr(0,8)&&(r=A.Lia(r)),n=R.createDateValidator(l.operator,q,r)):6===d?n=R.createTextLengthValidator(l.operator,l.value1,l.value2):7===d&&(n=R.createFormulaValidator(l.formula)),n?n.condition():void 0}var R,Q;u=l(26);var K=l(85),O=l(124),H=O.Condition,I=O.$V,L=u.u.Db,F=u.j.Fa,G=K.GC$,q=K.Ul.Pl,D=K.Ul.Ol,A=u.l;R={CriteriaType:{anyValue:0,wholeNumber:1,decimalValues:2,list:3,date:4,time:5,textLength:6,custom:7},DataValidationResult:{forceApply:0,discard:1,retry:2},ErrorStyle:{stop:0,warning:1,information:2}};Q=function(){function l(d){this.id=l.w$++;d&&(this.condition(d),this.condition().ignoreBlank(this.ignoreBlank()))}var n="errorStyle ignoreBlank inCellDropdown showInputMessage showErrorMessage inputTitle errorTitle inputMessage errorMessage comparisonOperator type condition".split(" ");return l.prototype={constructor:l,errorStyle:q("errorStyle",0),ignoreBlank:q("ignoreBlank",!0,function(d){this.condition()&&this.condition().ignoreBlank(d)}),inCellDropdown:q("inCellDropdown",!0),showInputMessage:q("showInputMessage",!0),showErrorMessage:q("showErrorMessage",!0),inputTitle:q("inputTitle",""),errorTitle:q("errorTitle",""),inputMessage:q("inputMessage",""),errorMessage:q("errorMessage",""),comparisonOperator:q("comparisonOperator",6),condition:q("condition",null),type:q("type",0),value1:function(){var d,l=this.condition();return(l=l&&l.item1()?l.item1():l)?(d=l.formula(),d&&0<d.length?"\x3d"+L(G.trim((""+d).toUpperCase()),"\x3d"):l.expected()):null},value2:function(){var d,l=this.condition();return(l=l&&l.item2()?l.item2():l)?(d=l.formula(),d&&0<d.length?"\x3d"+L(G.trim((""+d).toUpperCase()),"\x3d"):l.expected()):null},isValid:function(l,n,q,c){var m,h=this.condition();if(h){if(this.ignoreBlank()&&(F(c)||""===c))return!0;if(m=c,!F(c))switch(this.type()){case 0:return!0;case 2:case 1:c=d(c);F(c)||(m=c);break;case 4:case 5:c=c instanceof Date?c:"string"==typeof c?new Date(c):null,F(c)||(m=c)}return h.evaluate(l,n,q,m,m)}return!0},reset:function(){this.errorStyle(0);this.ignoreBlank(!0);this.inCellDropdown(!0);this.showInputMessage(!0);this.showErrorMessage(!0);this.inputTitle("");this.errorTitle("");this.inputMessage("");this.errorMessage("");this.comparisonOperator(6);this.type(0);this.condition(null)},getValidList:function(d,l,n){if(!O)return null;var c=this.condition();return null!==c&&3===this.type()&&12===c.conType()?c.getValidList(d,l,n):null},toJSON:function(){var d=this,l={};return n.forEach(function(n){var c=d[n]();d[n].isDefault(c)||(l[n]=c&&c.toJSON?c.toJSON():c)}),G.isEmptyObject(l)?void 0:l},fromJSON:function(d,l){var q,c,m,h;d&&!G.isEmptyObject(d)&&(q=this,n.forEach(function(a){var c,h=d[a];D(h)&&("condition"===a?(c=I(),c.fromJSON(d.condition,l),q.condition(c,!1)):q[a](h,!1))}),c=d.validatorInfo,c&&(m=J(d.type,c),h=c.operator,m&&(m.ignoreBlank(q.ignoreBlank()),q.condition(m)),F(h)||q.comparisonOperator(h)))},clone:function(){var d=new l;return d.fromJSON(this.toJSON()),d}},l.w$=1,l}();R.DefaultDataValidator=Q;R.zW=function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/sl0p8zAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAMOSURBVHjaXJNdaJRHFIbfM7PfGremUTfkpxgpiheiBOmFtYUgRXNRqNnd75sEhBoIKhrwQpFUUSsihhIQ41+FNrUGqYhRY43STZqgARNRTIzRaFqz6xJTtals3K8xRQ3x7UV215+LB2bOxTNn3jMDs+mEIgmS+LwQiqSQ9JG03FHX54666pn7TLmJEZVIjCCRGMkYGxvNiI9FvaENZzLw/PmqtCDFV/4WkERw8TI03K6XqqrNWLBgPoafDmNwMCbd3TestpMDHpJAuIcWSZjSUrnS0SFOWamXJLpuDYAkAiYAkioYDCIej0+Lx12QrervFxOemjWfCvIyIcmTVeLVC1986OkUklhRtlgutLYrkpnOKlt1dl0BSfTHmnCnm5oTm0AS6I0xLaDLrK1PusTp/cb7/rUAyH8kSL+Vqt0ebpuGP699LCRROAdqf/suGforCpLi4DMpAOQQLAEgfE2sRDZIv5cknGxi74HDFnZ/32olk9f//vOTPIj05ZnKZpp14QlnfZgpTOXvNGsvjrvuH9MnOwAOYlhQ/UPYmxRkJVvzPHw8JF8EdrKoZEeapSt2cHDo4Sxn7R0hiV8/hEQe3Ad21jZNJQnbDklSBBas0ddvRj2Fi4qZIhaL+Q3ni8N0ZohGe4Dv6sKZfFP0kvkSWLZdGvLpiUTuTS9cVMxI5H5+fz+UfXyOto/Ns5bUL7dyjsBjTsKDbbVnM0iqYNHXYi9ZLiSlaRbFn089zlzvwN1IzkDlmDhfdiin5KgOBY5qO9iojX1K9+VRcOCXnlySsFkOkjj/WGschtR0Kt/Ga9D2aYj5DWKaIeYSxTlFMS2T66udBDbXHS94Z97ZUB8Ayt7+iVVddlkzl5LCvrklvQ9dr1fnF0IQbng5O/VQsmAJSfnxSLuqCG3Rxxpfz3xbXv0IEkzm5YR7lXOCGs6+PVNJYjaQnoKwSgBIDSqkjjPUuv3QLP9ImW+hG1/lKJtzp5jaCmW2nrNAUpOUkqrWrJUb23T5rhZf0eoWhbeEKX7O4eTPHe8DSTjF59T/AwCfnhbaDaIICgAAAABJRU5ErkJggg\x3d\x3d"};R.bW=function(d){return K.X3&&d&&"\x3d"===d[0]};R.createNumberValidator=function(d,l,q,z){var n,c,m,h,a=null,r=null,y=null,t=null;return R.bW(l)?a=L(l,"\x3d"):r=l,R.bW(q)?y=L(q,"\x3d"):t=q,n=null,6===d&&(c=I(1,3,r,a),c.integerValue(z),m=I(1,5,t,y),m.integerValue(z),n=I(0,1,null,null,null,null,null,c,m)),7===d&&(c=I(1,4,r,a),c.integerValue(z),m=I(1,2,t,y),m.integerValue(z),n=I(0,0,null,null,null,null,null,c,m)),0<=d&&5>=d&&(n=I(1,d,r,a),n.integerValue(z)),h=new Q(n),h.type(z?1:2),h.comparisonOperator(d),h};R.createDateValidator=function(d,l,q){var n,r,c,m,h=null,a=null,w=null,y=null;if(R.bW(l)?h=L(l,"\x3d"):a=l,R.bW(q)?w=L(q,"\x3d"):y=q,l=null,6===d&&(n=I(5,5,a,h),r=I(5,3,y,w),l=I(0,1,null,null,null,null,null,n,r)),7===d&&(n=I(5,2,a,h),r=I(5,4,y,w),l=I(0,0,null,null,null,null,null,n,r)),0<=d&&5>=d){switch(d){case 0:c=0;break;case 1:c=1;break;case 2:c=4;break;case 3:c=5;break;case 4:c=2;break;case 5:c=3}l=I(5,c,a,h)}return m=new Q(l),m.type(4),m.comparisonOperator(d),m};R.createTextLengthValidator=function(d,l,q){var n,r,c,m,h=null,a=null,w=null,y=null;return R.bW(l)?h=L(l,"\x3d"):a=l,R.bW(q)?w=L(q,"\x3d"):y=q,n=null,6===d&&(r=I(7,3,a,h),c=I(7,5,y,w),n=I(0,1,null,null,null,null,null,r,c)),7===d&&(r=I(7,4,a,h),c=I(7,2,y,w),n=I(0,0,null,null,null,null,null,r,c)),0<=d&&5>=d&&(n=I(7,d,a,h)),m=new Q(n),m.type(6),m.comparisonOperator(d),m};R.createFormulaValidator=function(d){if(!K.X3)return null;d=new Q(I(4,null,null,L(d,"\x3d"),4));return d.type(7),d};R.createFormulaListValidator=function(d){if(!K.X3)return null;d=new Q(H.fromFormula(d));return d.type(3),d};R.createListValidator=function(d){d=new Q(H.fromSource(d));return d.type(3),d};G.extend(K.Worksheet.prototype,{getDataValidator:function(d,l,q){return this.tq(d,l,"validator",q)},setDataValidator:function(d,l,q,z){var n,c;F(z)&&(z=3);(n=this.Iq(d,l,z))||(n=new K.Style);c=n.validator;n.validator=q;this.suspendEvent();this.setStyle(d,l,n,z);this.resumeEvent();(n=q&&q.condition())&&4===n.conType()&&(F(n.Uu)&&(n.Uu=-1!==d?d:0),F(n.SV)&&(n.SV=-1!==l?l:0));this.Bq("validator",d,l,z,c,q);-1!==d&&-1===l?this.kq(d,z,"validator",q,c):-1===d&&-1!==l&&this.pq(l,z,"validator",q,c)},isValid:function(d,l,q){var n,r;try{if(n=this,n.Ku=d,n.Lu=l,n.Mu=q,n.Ju=!0,r=n.getDataValidator(d,l))return r.isValid(n,d,l,q)}finally{n.Ku=-1,n.Lu=-1,n.Mu=null,n.Ju=!1}return!0},hm:function(){var d,l,q,u;return!this.x$&&(this.x$=!0,d=this.KH,d&&(l=d.parentNode,l&&l.removeChild(d),this.KH=null),q=this.y$,q&&(G(q).unbind("click"),l=q.parentNode,l&&l.removeChild(q),this.y$=null),u=this.lm,u&&(G(u).unbind("keydown").unbind("blur").unbind("click"),l=u.parentNode,l&&l.removeChild(u),this.lm=null),this.x$=!1,!0)}});K.Worksheet.$n("validator",{dispose:function(){this.hm()}});K.Style.$n("validator",{fromJson:function(d){if("validator"===d.p){var l=new Q;l.fromJSON(d.v);this.validator=l;d.r=!0}}});window.Yl.km.push(function(d,l){!l&&d.hm&&d.hm()});U.exports=R},function(U,u,l){var d=l(85),J=l(33),R=l(26),Q=l(140),K=d.Ul,O=d.kf,H=K.rl(),I=K.Ml,L=d.GC$,F=K.Nl,G=R.j.Fa,q=R.u,D=K.nl,A=document,r=Math.max,n=Math.min;L.extend(d.iI.prototype,{cs:function(l,u){function w(a,b){if(a&&a[b])return"function"==typeof a[b]?a[b]():a[b]}var c,m,h,a,z,y,t,E,M,p,g,f,k,x,W,P,V,Z,e,b,v,N,S;if(c=this,m=c.kj,h=m&&m.parent,h&&Q&&(a=m.hm(),a&&(z=h.getActiveSheet(),z&&m.name()===z.name()&&(y=m.getDataValidator(l,u),y&&(t=m.getCellRect(l,u),!c.oG(t)&&(E=h.xv(),M=K.vl(h.getHost()),y&&w(y,"showInputMessage")&&w(y,"inputMessage")&&(p=q.Gb,g=q.Ob,f=p(g(w(y,"inputTitle")),"\n","\x3cbr/\x3e"),k=p(g(w(y,"inputMessage")),"\n","\x3cbr/\x3e"),x=F("span"),L(x).css("position","absolute").css("border","1px #C0C0C0 solid").css("padding","3px 8px 3px 8px").css("background-color","#FFFFFF").css("box-shadow","1px 2px 5px rgba(0,0,0,0.4)").css("font","normal normal normal 12px/normal Arial").width("auto").height("auto").css("top",t.y+t.height+5).css("left",t.x+t.width/2).css("z-index",M).html("\x3cb\x3e"+f+"\x3c/b\x3e\x3cbr/\x3e"+k).attr("gcUIElement","gcValidationInputMessage").appendTo(E),m.KH=x),y&&3===w(y,"type")&&w(y,"inCellDropdown"))))))){W=w(y,"condition").getValidListImp(m,l,u);h=W.length;P=F("select");a=m.getText(l,u);z=-1;y=A.createDocumentFragment();for(p=0;p<h;p++)g=W[p].text,G(g)||d.X3&&g instanceof J.CalcError||(0>z&&g===a&&(z=p),g instanceof Date&&(g=R.l.Vb(g,"M/d/yyyy h:mm:ss")),V=F("option"),V.value=g,V.text=g,y.appendChild(V));P.appendChild(y);P.selectedIndex=0<z?z:0;V=m.getActualStyle(l,u);a=m.yl;V=V&&V.font?V.font:a.Bl();1<m._zoomFactor&&(V=a.Cl(V));a=m.getSpans(O(l,u,1,1));z=1;a&&0<a.length&&a[0]&&(z=a[0].colCount);a=u+z-1===m.getColumnCount()-1;z=m.Sl(l);z=(y=m.parent&&m.parent.options.useTouchLayout)?n(50,z):n(15,z);(Z=I.safari&&(H.ipad||H.iphone))?(e=t.width+3,b=t.height+3,v=t.y-1.5,N=t.x-1.5,S="white"):(e=r(t.width+(a?0:z),m.defaults.colWidth),b=8<h?140:"auto",v=t.y+t.height,N=t.x+t.width+(a?0:z)-e,S="");e=L(P).css("outline","none").css("position","absolute").css("font",V).css("z-index",M).css("background-color",S).width(e).height(b).css("top",v).css("left",N).attr("gcUIElement","gcValidationSelect").appendTo(E).attr("size",2<h?h:2).hide().bind("click",function(){c.pG(P,l,u,W);Z&&L(m.y$).show()}).bind("keydown",function(a){13!==a.keyCode||a.ctrlKey||a.shiftKey||a.altKey?27!==a.keyCode||a.ctrlKey||a.shiftKey||a.altKey||L(P).hide():c.pG(P,l,u,W);Z&&L(m.y$).show()});Z&&e.bind("blur",function(){c.pG(P,l,u,W);L(m.y$).show()});m.lm=P;e=F("input");e.type="image";e.src=Q.zW();e.alt="v";L(e).css("position","absolute").width(z).height(z).css("top",t.y+t.height-(z+3)).css("left",t.x+t.width-(a?z:0)).css("z-index",M).css("background-color","white").css("border","1px solid gray").attr("gcUIElement","gcValidationButton").appendTo(E).bind("click",function(a){m.isEditing()&&!m.endEdit()||(L(m.lm).toggle().focus(),Z&&L(m.y$).toggle(),D(a))});m.y$=e}}})},function(U,u,l){l(143);l(145);l(146);u=l(144);u.SR={};u.SR.en=l(147);U.exports=u},function(U,u,l){function d(a,c,d,h,g){var f=a.getSelections();a.Tr();a.addSelection(c,d,h,g);a.Au(f);c=0<c?c:a.ar();d=0<d?d:a.$q();a.Kr(c,d,a.Nr,a.Pr)}function J(a,c){A.call(this);this.kj=a;this.VQ=c}var R,Q,K=l(85),O=l(26),H=l(144),I=O.j.Fa,L=K.kf,F=K.GC$,G=Math.max,q=Math.floor,D=K.Commands,A=D.ActionBase,r=D.xy,n=D.Kz,w=n.yz,z=n.Bu,C=D.Zy,c=K.Events,m=D.y4,h=D.vz,a=D.z4,B=D.zz,y=D.xz;F.extend(K.Worksheet.prototype,{fillAuto:function(a,c,d){if(!c)throw Error(O.C(H.SR)().Exp_RangeIsNull);var h=d.fillType,g=d.series,f=d.direction,k=d.step,m=d.stop,l=new H.z$(this),n=f?null:g;a&&c&&c.containsRange(a)&&(!I(n)&&(1===n&&a.row===c.row&&a.rowCount===c.rowCount||0===n&&a.col===c.col&&a.colCount===c.colCount)||!(I(f)||(2!==f&&3!==f||a.col!==c.col||a.colCount!==c.colCount)&&(0!==f&&1!==f||a.row!==c.row||a.rowCount!==c.rowCount)))&&(a&&(this.mm.A$=a),4===h?l.B$(c,g,!1,d.withTag):0===h?l.C$(c,f):1===h||2===h?l.D$(1===h,c,g,k,m):3===h&&l.E$(c,g,3,k,I(m)?null:O.l.Ra(m),d.unit),this.$p())}});K.Worksheet.$n("fill",{setHost:function(a){a&&(a=this.wu(),a.fill||a.register("fill",D.fill),a.dragDrop||a.register("dragDrop",D.dragDrop))}});K.Workbook.$n("fill",{init:function(){this.options.allowUserDragFill=!0}});R=function(a){function c(c,d){var g=d.fillDirection,f=0===g,k=f||1===g,h=d.fillRange,m=d.startRange,l=m.row,p=m.col,n=m.rowCount,m=m.colCount;a.call(this);this.kj=c;this.G$=d;4===d.autoFillType?this.H$=new D.OA(c,[d.fillRange]):this.I$=k?L(l,f?h.col:p,n,m+h.colCount):L(2===g?h.row:l,p,n+h.rowCount,m);this.J$=k?1:0}F.inherit(c,a);return F.extend(c.prototype,{canExecute:function(){var a=this.G$,c=a.startRange,d=a.fillRange;return!!this.kj.Y3(d.row,d.col,d.rowCount,d.colCount)&&(4===a.autoFillType||!d.intersect(c.row,c.col,c.rowCount,c.colCount))},execute:function(){var a,c,d;if(this.canExecute()){a=this.G$;c=a.fillRange;d=this.kj;this.Lz(d);try{K.X3&&d.suspendCalcService(),this.saveState(),4===a.autoFillType?this.K$(d):this.L$(d)}finally{this.Mz(d),K.X3&&d.resumeCalcService(!1),d.t4&&d.t4(c.row,c.col,c.rowCount,c.colCount),a=[],d.isDirtySuspended()||(this.M$=new r(d,c,1023),this.M$.uy(this.N$.sy()),a=this.M$.wy()),z(d,c.row,c.col,c.rowCount,c.colCount,a,1)}}},K$:function(a){var c,d,f,k,h,m;this.H$.execute(a);c=this.G$;d=c.startRange;c=c.fillRange;f=0===this.J$;h=d.rowCount;m=d.colCount;h=f?G(1,h-c.rowCount):h;f=f?m:G(1,m-c.colCount);d.equals(c)||(k=L(d.row,d.col,h,f),a.Kr(G(a.ar(),k.row),G(a.$q(),k.col),a.Nr,a.Pr),a.Tr(),a.addSelection(k.row,k.col,k.rowCount,k.colCount))},L$:function(a){var c,d,f,k,h,m,l,n,t=this.kj,e=this.G$.startRange;k=this.G$.fillRange;c=this.G$.autoFillType;var b=this.I$;f={fillType:4,series:this.J$,withTag:!0};if(1===c){if(t.fillAuto(e,b,f),t.zl().hasSpans(e.row,e.col,e.rowCount,e.colCount))for(c=0;c<k.rowCount;c++)for(d=0;d<k.colCount;d++)(f=t.Aj(e.row+q(c%e.rowCount),e.col+q(d%e.colCount)))&&f.clone&&(f=f.clone()),t.Nq(k.row+c,k.col+d,f)}else if(0===c)this.O$(e,k,1019);else if(2===c)this.O$(e,k,192);else if(3===c)if(1!==e.rowCount||1!==e.colCount||-1===e.row&&-1!==e.col||-1===e.col&&-1!==e.row){c=t.Tq(b);k=c.row;h=c.col;m=c.rowCount;l=c.colCount;n=new K.Fp(c.rowCount,c.colCount,null);for(c=0;c<m;c++)for(d=0;d<l;d++)n.setStyle(c,d,t.Aj(k+c,h+d));t.fillAuto(e,b,f);for(c=0;c<m;c++)for(d=0;d<l;d++)t.Nq(k+c,h+d,n.getStyle(c,d))}else this.O$(e,k,187);t.Kr(G(a.ar(),b.row),G(a.$q(),b.col),a.Nr,a.Pr);a.Uq&&a.Tr();t.addSelection(b.row,b.col,b.rowCount,b.colCount)},O$:function(a,c,d){var f=this.kj,g=f.Tq(a),h=f.Tq(c);c=g.row;a=g.col;var m=g.rowCount,g=g.colCount,l=h.row,p=h.col,n=h.rowCount,h=h.colCount,e=this.G$.fillDirection,b=3===e,e=1===e,t=q(n/m),r=n%m,y=q(h/g),w=h%g,u,z,A,B,C;if(0===this.J$){for(u=0;u<t;u++)B=b?l+u*m:l+n-(u+1)*m,f.ax(c,a,B,p,m,g,d,!0);0!==r&&(z=b?c:c+(t+1)*m-n,B=b?l+m*t:l+n-t*m-r,f.ax(z,a,B,p,r,g,d,!0))}else{for(u=0;u<y;u++)C=e?p+u*g:p+h-(u+1)*g,f.ax(c,a,l,C,m,g,d,!0);0!==w&&(A=e?a:a+(y+1)*g-h,C=e?p+g*y:p+h-y*g-w,f.ax(c,A,l,C,m,w,d,!0))}},saveState:function(){var a=this.G$;4===a.autoFillType?this.H$.saveState():this.P$=this.Q$(a.startRange);this.kj.isDirtySuspended()||(this.N$=new r(this.kj,a.fillRange,1023));this.R$=this.Q$(a.fillRange)},Q$:function(a){var c=this.kj;a=c.Tq(a);var d=new C(a.rowCount,a.colCount);return w(c,d,a.row,a.col,1023),d},undo:function(){var a,c,d,f,k=this.kj,h=!1;if(this.canUndo()){this.Lz(k,!0);try{K.X3&&k.suspendCalcService(),a=k.getSelections(),c=this.G$,d=k.NF,f=c.fillRange,h=4===c.autoFillType?this.S$(k):this.T$(k),!k.U$&&d&&d.close(),z(k,f.row,f.col,f.rowCount,f.colCount,this.M$?this.M$.wy():[],1),k.yu(a,k.getSelections())&&k.Au(a)}finally{this.Mz(k,!0),K.X3&&k.resumeCalcService(!1)}}return h},S$:function(a){var c=this.G$.startRange,d=c.row,f=c.col,k=this.H$.undo(a);return a.Kr(G(a.ar(),d),G(a.$q(),f),a.Nr,a.Pr),a.Tr(),a.addSelection(d,f,c.rowCount,c.colCount),k},T$:function(a){var c=this.G$,d=c.startRange,f=d.row,k=d.col;K.X3&&a.suspendCalcService();try{this.V$(this.R$,c.fillRange),this.V$(this.P$,d),a.Kr(G(a.ar(),f),G(a.$q(),k),a.Nr,a.Pr),a.Tr(),a.addSelection(f,k,d.rowCount,d.colCount)}finally{K.X3&&a.resumeCalcService(!1)}return a.invalidateLayout(),!0},V$:function(a,c){var d=this.kj,f=d.Tq(c);n.Bz(d,a,f.row,f.col,3)}}),c}(A);Q=function(a){function d(c,d){a.call(this);this.kj=c;this.i4=d;this.W$=d.startRange;this.X$=d.fillRange;this.Y$=d.autoFillType;this.Z$=d.fillDirection}F.inherit(d,a);return F.extend(d.prototype,{execute:function(){var a,d,g,f,k,h,m=!1;if(this.canExecute()){a=this.kj;d=this.X$;this.saveState();this.Lz(a,!0);try{g=a.Tq(d),f=new C(g.rowCount,g.colCount),w(a,f,g.row,g.col,1023),this.R$=f,k=a.mm,h={sheet:a,sheetName:a.Cj,cancel:!1},h.fillRange=d,h.autoFillType=this.Y$,h.fillDirection=this.Z$,a.Wq(c.DragFillBlock,h),k.$$=h.autoFillType,k._$=h.cancel,this.a_(h),delete h.cancel,a.Wq(c.DragFillBlockCompleted,h),m=!0}finally{this.b_(!0,a,d)}}return m},a_:function(a){var c,d,f=this.kj,k=f.mm,h=this.X$,m=this.Y$,l=f.Tq(h);k.$$=m;k.c_=new C(l.rowCount,l.colCount);w(f,k.c_,l.row,l.col,1023);k._$||(c={},c.startRange=this.W$,c.fillRange=h,c.autoFillType=5===a.autoFillType?m:a.autoFillType,c.fillDirection=this.Z$,d=new R(f,c),f.suspendEvent(),d.execute(),f.resumeEvent(),this.i4.d_=d)},saveState:function(){this.kj.isDirtySuspended()||(this.N$=new r(this.kj,this.X$,1023))},undo:function(){var a,c,d=!1;if(this.canUndo()){a=this.kj;c=this.X$;this.saveState();this.Lz(a);try{d=this.i4.d_.undo()}finally{this.b_(!1,a,c)}}return d},b_:function(a,c,d){this.Mz(c,a);a=[];c.isDirtySuspended()||(this.M$=new r(c,d,1023),this.M$.uy(this.N$.sy()),a=this.M$.wy());z(c,d.row,d.col,d.rowCount,d.colCount,a,1)}}),d}(A);F.inherit(J,A);F.extend(J.prototype,{canExecute:function(){var a=this.kj,c=this.VQ,d=c.fromRow,h=c.fromColumn,g=c.rowCount,f=c.columnCount,k=c.toRow,m=c.toColumn;return!!a.pu(d,h,g,f,a.getRowCount(void 0),a.getColumnCount(void 0))&&!(!c.insert&&!a.pu(k,m,g,f,a.getRowCount(void 0),a.getColumnCount(void 0)))&&a.Y3(k,m,g,f)&&a.Y3(d,h,g,f)},execute:function(){var a,c,h,m,g,f,k,l,n,q,r,y,e,b,v,w=!1;if(this.canExecute()){a=this.kj;c=this.VQ;this.saveState();f=c.fromRow;k=c.fromColumn;l=c.toRow;n=c.toColumn;q=c.rowCount;r=c.columnCount;y=c.option;this.Lz(a,!0);try{c.insert?0<=k&&0>f?(h=k,m=n,g=r,e=n,a.addColumns(m,g),c.copy?a.copyTo(-1,m<=h?h+g:h,-1,m,-1,g,y):(a.moveTo(-1,m<=h?h+g:h,-1,m,-1,g,y),a.deleteColumns(m<=h?h+g:h,g),h<m&&(e=m-g)),d(a,-1,e,a.getRowCount(void 0),g)):0<=f&&0>k&&(h=f,m=l,g=q,b=l,a.addRows(m,g),c.copy?a.copyTo(m<=h?h+g:h,-1,m,-1,g,-1,y):(a.moveTo(m<=h?h+g:h,-1,m,-1,g,-1,y),a.deleteRows(m<=h?h+g:h,g),h<m&&(b=m-g)),d(a,b,-1,g,a.getColumnCount(void 0))):(c.copy?a.copyTo(f,k,l,n,q,r,y):a.moveTo(f,k,l,n,q,r,y),a&&(d(a,l,n,q,r),v=c.io,c.copy||a.isDirtySuspended()||(v._z=this.aA(a,v.bA.data,v.cA,f,k,q,r)),a.isDirtySuspended()||(v.dA=this.aA(a,v.eA.data,v.fA,l,n,q,r)))),w=!0}finally{a.mm.gA={},this.Mz(a,!0)}}return w},aA:function(a,c,d,h,g,f,k){if(c&&c.Py())return c=new r(a,L(h,g,f,k),this.VQ.option),c.uy(d.sy()),n.Bu(a,h,g,f,k,c.wy(),0),c},saveState:function(){var c,d,m=this.kj,l=this.VQ,g=l.io={},f=l.fromRow,k=l.fromColumn,n=l.toRow,q=l.toColumn,w=l.option,u=0>f?0:f,z=0>k?0:k,n=0>n?0:n,q=0>q?0:q,e=0>f?m.getRowCount(void 0):l.rowCount,b=0>k?m.getColumnCount(void 0):l.columnCount;l.insert?0>k&&0<=f&&(d=m.tables,!l.copy&&d&&d.rn(n,-1,1,-1)&&(c=y(m,u,e,w),g.nA=c.headerCells,g.oA=c.rows,g.bA=a(m,u,z,e,b,w))):(0>f&&(c=h(m,q,b,w),g.hA=c.headerCells,g.iA=c.columns,l.copy||(c=h(m,z,b,w),g.jA=c.headerCells,g.kA=c.columns)),0>k&&(c=y(m,n,e,w),g.lA=c.headerCells,g.mA=c.rows,l.copy||(c=y(m,u,e,w),g.nA=c.headerCells,g.oA=c.rows)),g.pA=B(m,n,q,e,b),g.eA=a(m,n,q,e,b,w),l.copy||(g.qA=B(m,u,z,e,b),g.bA=a(m,u,z,e,b,w),m.isDirtySuspended()||(g.cA=new r(m,L(u,z,e,b),w))),m.isDirtySuspended()||(g.fA=new r(m,L(n,q,e,b),w)));g.rA=m.Nr;g.sA=m.Pr;g.tA=m.Jl;g.uA=m.Kl},undo:function(){var a,c,h,l,g,f,k,q,r,y,w,z,e,b,v,A,B,C,D,F,G,H,K,I,J,L=0;if(this.canUndo()){if((a=this.kj,c=this.VQ,h=c.fromRow,l=c.fromColumn,g=c.toRow,f=c.toColumn,k=c.rowCount,q=c.columnCount,!a.pu(h,l,k,q,a.getRowCount(void 0),a.getColumnCount(void 0)))||!c.insert&&!a.pu(g,f,k,q,a.getRowCount(void 0),a.getColumnCount(void 0)))return!1;z=c.io;this.Lz(a,!0);try{c.insert?0<=l&&0<=h||(0<=l?(e=l,r=q,c.copy?a.deleteColumns(f,r):(y=f,w=l,l<f?y=f-r:w=l+r,a.addColumns(w,r),a.copyTo(-1,w<=y?y+r:y,-1,w,-1,r,c.option),a.deleteColumns(w<=y?y+r:y,r),y<w&&(e=w-r)),a&&d(a,-1,e,a.getRowCount(void 0),r),L++):0<=h&&(r=k,b=h,c.copy?a.deleteRows(g,r):(y=g,w=h,h<g?y=g-r:w=h+r,a.addRows(w,r),L+=m(this,z.bA),L+=m(this,z.nA),L+=m(this,z.oA),L||a.copyTo(w<=y?y+r:y,-1,w,-1,r,-1,c.option),a.deleteRows(w<=y?y+r:y,r),y<w&&(b=w-r)),a&&d(a,b,-1,r,a.getColumnCount(void 0)),L++)):(v=0>h?0:h,A=0>l?0:l,B=0>g?0:g,C=0>f?0:f,D=0>h?a.getRowCount(void 0):k,F=0>l?a.getColumnCount(void 0):q,u.X3&&n.Jz(a,B,C,D,F),G=null,H=null,K=z.bA,!c.copy&&K&&K.data&&K.data.Py()&&(H=n.Iz(a,v,A,D,F)),I=z.eA,I&&I.data&&I.data.Py()&&(G=n.Iz(a,B,C,D,F)),L+=m(this,z.pA),L+=m(this,z.hA),L+=m(this,z.iA),L+=m(this,I),L+=m(this,z.lA),L+=m(this,z.mA),L+=m(this,z.qA),L+=m(this,z.jA),L+=m(this,z.kA),L+=m(this,K),L+=m(this,z.nA),L+=m(this,z.oA),L&&a&&(d(a,h,l,k,q),G&&n.Bu(a,B,C,D,F,z.dA?z.dA.wy():[],0),H&&n.Bu(a,v,A,D,F,z._z?z._z.wy():[],0))),L&&a&&(-1!==z.tA&&-1!==z.uA&&(J=a.getSelections()[0],J.contains(z.tA,z.uA)?a.Jr(z.tA,z.uA):a.Jr(J.row,J.col)),-2!==z.rA&&-2!==z.sA&&-1!==z.tA&&-1!==z.uA&&a.showCell(z.tA,z.uA,3,3))}finally{this.Mz(a,!0)}}return 0<L}});D.fill={canUndo:!0,execute:function(a,c,d){return D.h4(a,Q,c,d)}};D.dragDrop={canUndo:!0,execute:function(a,c,d){return D.h4(a,J,c,d)}}},function(U,u,l){function d(c){return"string"!=typeof c&&G.Na(c)}function J(c){var d=[c];return d.rowCount=1,d.colCount=w(c),d}function R(c){return c}function Q(c,d,a,l){d=J(d);a=J(a);l=J([l]);c=(c=c?I.qc(d,a,l,!0,R,null,null,null):I.sc(d,a,l,!0,null,null,null))&&c[0][0];return"number"===typeof c&&13<=w(""+c)?+c.toPrecision(13):c}function K(c){this.e_=[];this.f_=[];this.Nc=null;this.g_=A(c)?-1:c}function O(c){this.kj=c}var H=l(85),I=l(26),L=l(33),F=l(145),G=I.j,q=Math.floor,D=H.kf,A=G.Fa,r=G.Pa;u=I.k;var n=u.Eb,w=u.ac;u=I.l;var z=u.Ra,C=u.Xb,c=function(){return I.C(F.SR)()};F.AutoFillType={copyCells:0,fillSeries:1,fillFormattingOnly:2,fillWithoutFormatting:3,clearValues:4,auto:5};F.FillDirection={left:0,right:1,up:2,down:3};F.FillSeries={column:0,row:1};F.FillType={direction:0,linear:1,growth:2,date:3,auto:4};F.FillDateUnit={day:0,weekday:1,month:2,year:3};K.prototype={h_:function(){return w(this.f_)},Ey:function(){var c=[],d=this.f_,a,l;for(a=0;a<w(d);a++)l=d[a],c.push("object"===this.Nc?this.Wh(l):l);return c},i_:function(){var c,d,a,l=this.e_;if(0<w(l)){c=this.g_;d=[];-1===c&&(c=l[0]);for(a=0;a<w(l);a++)d[a]=l[a]-c+1;return d}return null},j_:function(){var c=this.f_;return w(c)?c:null},Eb:function(m,h,a){if(!d(a))throw Error(c().Exp_NumberOnly);A(this.Nc)&&(this.Nc=a instanceof Date?"date":"number");n(this.e_,m,h);n(this.f_,m,r(a))},Sb:function(c,d){A(this.Nc)&&(d instanceof Date?this.Nc="date":this.Nc="number");this.e_.push(c);this.f_.push(r(d))},k_:function(c){return"date"===this.Nc?this.Wh(c):c},Wh:function(c){var d=null;if(c instanceof Date)d=c;else if(L)try{d=L.Convert.Wh(c)}catch(a){d=c}return d}};O.prototype={D$:function(c,d,a,l,n){c=c?1:2;A(l)&&A(n)?this.E$(d,a,c):this.E$(d,a,c,l,n,null)},E$:function(d,h,a,l,n,q){var m,t,p,g,f,k,r,y,z,u,A,e,b,v,B,C,D=this.kj;k=D.Tq(d);var F=k.row,G=k.col,H=k.rowCount,K=k.colCount;if(D.zl().hasSpans(F,G,H,K))throw Error(c().Exp_RangeContainsMergedCell);k=3<arguments.length;r=0;z=(y=1===h)?K:H;u=y?F+H:G+K;A=k?1:z;m=this.kj.mm.A$;e=m.row===F&&m.rowCount===H&&m.col>G||m.col===G&&m.colCount===K&&m.row>F;for(m=y?F:G;m<u;m++)if(b=e&&k?G+K-1:G,v=e&&k?F+H-1:F,B=y?this.l_(m,b,1,A,h):this.l_(v,m,A,1,h),B&&B.h_())for(g=B.e_[0],k?(f=e?B.f_[w(B.f_)-1]:B.f_[0],t=this.m_(e,f,z,a,l,n,q),e&&(r=z-w(t),g=B.e_[w(B.e_)-1])):t=this.n_(B,z,a),p=0;p<w(t);p++)C=B.k_(t[p]),y?this.o_(D,m,g,m,G+r+p,C,a):this.o_(D,g,m,F+r+p,m,C,a)},l_:function(c,h,a,l,n){var m=null,q=this.kj;l=(n=1===n)?h+l-1:c+a-1;for(var r=n?h:c;l>=r;)a=n?q.getValue(c,l):q.getValue(l,h),d(a)&&(m||(m=new K(r)),m.Eb(0,l,a)),l--;return m},m_:function(c,d,a,l,n,q,r){var h,m,g,f=[],k=d,t=0<=n,y=A(q);for(h=0;h<a;h++)m=k>=q,g=k<=q,c&&(y||t&&m||!t&&g)?(f.unshift(k),1===l?k-=n:2===l?k/=n:3!==l||A(r)||(k=this.p_(!0,r,d,k,n,h+1))):!c&&(y||t&&g||!t&&m)&&(f.push(k),1===l?k+=n:2===l?k*=n:3!==l||A(r)||(k=this.p_(!1,r,d,k,n,h+1)));return f},n_:function(c,d,a){var h=[],m=1===a;if(m||2===a){1===c.h_()&&c.Sb(c.e_[0]+1,m?c.k_(c.f_[0]+1):c.Ey()[0]);for(a=0;a<d;a++)h.push(Q(!!m,c.j_(),c.i_(),a+1));return h}return null},B$:function(d,h,a,l){var m=this.kj,n=m.zl(),q=m.Tq(d);d=q.row;var r=q.col,p=q.rowCount,q=q.colCount,m=m.Tq(m.mm.A$),g=m.row,f=m.col;if(n.hasPartSpans(g,f,m.rowCount,m.colCount)||n.hasPartSpans(d,r,p,q))throw Error(c().Exp_ChangeMergedCell);return this.q_(m,p,q,h,a,!(d<g||r<f),l)},q_:function(c,d,a,l,n,t,r){var h=t?1:-1,m,g,f=c.row,k=c.col,x=c.rowCount,y=c.colCount;if(1===l){if(m=q(a/y),d=a%y,!n)for(a=1;a<m;a++)g=D(f,k+a*h*y,x,y),this.r_(c,g,l,4,n,void 0,void 0,void 0,void 0,r);if(n&&1<m&&0===d&&(--m,d=y),0<m&&0<d)return g=t?D(f,k+m*y,x,d):D(f,k-m*y+y-d,x,d),this.r_(c,g,l,4,n,t,null,t?0:y-d,void 0,r)}else{if(m=q(d/x),d%=x,!n)for(a=1;a<m;a++)g=D(f+a*h*x,k,x,y),this.r_(c,g,l,4,n,null,null,null,!0,r);if(n&&1<m&&0===d&&(--m,d=x),0<m&&0<d)return g=t?D(f+m*x,k,d,y):D(f-m*x+x-d,k,d,y),this.r_(c,g,l,4,n,t,t?0:x-d,null,!0,r)}},r_:function(c,h,a,l,n,q,r,w,p,g){var f,k,m,t,y,z,u,e,b,v,A,B,C,D,F,E,G,H,I,J=this.kj,M=1===a,L=M?c.row:c.col,O=M?c.col:c.row,Q=M?h.row:h.col,R=M?h.col:h.row,U=M?c.rowCount:c.colCount,la=M?c.colCount:c.rowCount,pa=M?h.colCount:h.rowCount;for(m=0;m<U;m++){z=y=null;u=0;e=L+m;b=Q+m;v=e;A=b;B=(M?w:r)||0;C=M?0:B;for(D=M?null:p;u<la;)if(F=O+u,E=R+u-B,G=null,H=F,I=E,M||(e=[F,F=v][0],b=[E,E=A][0]),a=J.zl().find(e,F),f=J.getFormula&&J.getFormula(e,F),f&&""!==f||(G=J.getValue(e,F)),4===l&&d(G)&&(y||(y=new K),k=G instanceof Date?"date":"number",z||(z=k),z===k))y.Sb(H,G),a?u+=M?a.colCount:a.rowCount:u++;else if(G&&y&&y.h_()){if(t=this.s_(M,c,h,v,A,y,n,q,C,D,g),n&&t)return t;z=y=null}else{if(!a||a&&(M?a.row:a.col)===v)if(H=I===R+pa-1,n){if(a&&H||!a&&(H&&q||!q&&I===R))return G}else I<R+pa&&I>=R&&(M||!(M||p&&J.Ps&&J.Ps(I)))&&this.o_(J,e,F,b,E,G,l,g);a?u+=M?a.colCount:a.rowCount:u++}if(y&&y.h_()&&(t=this.s_(M,c,h,v,A,y,n,q,C,D,g),n&&t))return t}return null},o_:function(c,d,a,l,n,q,r,w){var h,g,f=c.zl();H.X3&&(c.hasFormula(d,a)||c.hasFormula(l,n))&&(c.setFormula(l,n,null),0!==r&&4!==r||(h=c.Bj(),c.getFormula(d,a)&&L.CalcOperatorAdjustor.copyFormula(h,d,a,h,l,n,1,1)));c.setValue(l,n,q);q=64;w&&(q|=128);c.copyTo(d,a,l,n,1,1,q);f.isEmpty()||(c.removeSpan(l,n,3),g=f.find(d,a),g&&d===g.row&&a===g.col&&c.Sq(l,n,g.rowCount,g.colCount,3))},s_:function(c,d,a,l,n,q,r,w,p,g,f){var k,h,m,t,y,z,e,b,v,u,A=this.kj,B=c?a.col:a.row;k=c?d.col:d.row;a=c?a.colCount:a.rowCount;d=c?d.colCount:d.rowCount;if(p=p||0,y=q.h_(),z=(B-k-p)/d,e=this.t_(q.e_,q.f_),e){m=[];for(h=0;h<y;h++)m[h]=h+1;k=y}else t=q.e_[0],k=q.e_[y-1]-t+1,1===y&&q.Sb(q.e_[0]+1,q.k_(q.f_[0]+1)),m=q.i_();for(h=0;h<k;h++)if(y=Q(!0,q.j_(),m,k*z+h+1),b=B+a-1,v=e?q.e_[h]:t+h,u=v+z*d,r){if(e&&(w&&u===b||!w&&u===B)||!e&&u+p===b)return q.k_(y)}else u<B+a&&u>=B&&(c?this.o_(A,l,v,n,u,q.k_(y),4,f):g&&A.Ps&&A.Ps(u)||this.o_(A,v,l,u,n,q.k_(y),4,f));return null},t_:function(c,d){var a,h,m,l=w(d);if(1>=l||w(c)!==l)return!1;a=c[1]-c[0];h=d[1]-d[0];for(m=2;m<l;m++)if(c[m]-c[m-1]!==a||d[m]-d[m-1]!==h)return!1;return!0},C$:function(c,d){var a=this.kj,h=a.getSpans(),m=a.Tq(c),l=m.row,n=m.col,q=m.rowCount,m=m.colCount,p;p=0===d?D(l,n+m-1,q,1):1===d?D(l,n,q,1):2===d?D(l+q-1,n,1,m):D(l,n,1,m);(p=a.su(h,p))&&this.u_(p,l,n,q,m,d)},u_:function(d,h,a,l,n,t){var m=d.row,r=d.col,p=d.rowCount,g=d.colCount,f,k,x,y,w,z=this.kj.zl(),u;if(0===t?(u=z.hasSpans(h,a,l,n-g),y=0,w=-1*g,f=n,k=g,x=1):1===t?(u=z.hasSpans(h,a+g,l,n-g),y=0,w=g,f=n,k=g,x=1):2===t?(u=z.hasSpans(h,a,l-p,n),y=-1*p,w=0,f=l,k=p,x=0):(u=z.hasSpans(h+p,a,l-p,n),y=p,w=0,f=l,k=p,x=0),u)throw Error(c().Exp_TargetContainsMergedCells);if(0!==f%k)throw Error(c().Exp_MergedCellsIdentical);h=q(f/k);for(a=1;a<h;a++)this.r_(d,D(m+a*y,r+a*w,p,g),x,0)},p_:function(c,d,a,l,n,t){c=c?-1:1;t=q(t*n);var h=Math.abs(n);a=C(1<d?a:l);if(0===d)a.setDate(a.getDate()+c*n);else if(1===d)for(;0<h;)a.setDate(a.getDate()+c*(0<n?1:-1)),6!==a.getDay()&&0!==a.getDay()&&h--;else 2===d?a.setMonth(a.getMonth()+c*t):a.setFullYear(a.getFullYear()+c*t);return z(a)}};F.z$=O;U.exports=F},function(U,u,l){function d(d,l,q,n,w,z){var r=d.CH;d=r?"160px":"150px";r=r?"25px":"20px";q=H(I("div")).css(["display","width","height","padding","margin"],["block",d,r,0,0]).addClass("gc-smartMenu-item-default "+q+" ui-state-default btn btn-default");d=H(I("div")).addClass("gc-menu-item-input").appendTo(q);r=H(I("div")).addClass("gc-menu-item-text").appendTo(q);l=H(I("input")).attr({id:l,value:w,type:"radio",name:"fill-group",style:"display:none"}).appendTo(d);return H(I("span")).text(n).appendTo(r),z?(d.addClass("ui-icon ui-icon-check gc-check-image"),l.prop("checked","checked")):l.prop("checked",""),q}function J(d){return d?"data:image/png;base64,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\x3d\x3d":"data:image/png;base64,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\x3d"}var R,Q=l(85),K=l(26);u=Q.Go;var O={},H=Q.GC$,I=Q.Ul.Nl,L=Q.Ul,F=L.vl,G=H(document),q=function(){return K.C(O.SR)()};R=function(l){function u(r,n){var w;l.call(this,r,F(n.parent.qo));this.kj=n;this.v_=H(".gc-tag-container");w=this.w_=this.yo();w.addClass("gc-fill-menu-container");d(n,"smartMenuCopyCells","gc-fill-type-item",q().CopyCells,"0",!0).appendTo(w);d(n,"smartMenuFillSeries","gc-fill-type-item",q().FillSeries,"1").appendTo(w);d(n,"smartMenuFillFormattingOnly","gc-fill-type-item",q().FillFormattingOnly,"2").appendTo(w);d(n,"smartMenuFillWithoutFormatting","gc-fill-type-item",q().FillWithoutFormatting,"3").appendTo(w)}H.inherit(u,l);return H.extend(u.prototype,{Ao:function(){l.prototype.Ao.call(this)},QQ:function(){var d=this;H(".gc-fill-type-item").bind("mouseover",function(){H(this).addClass("ui-state-hover gc-smartMenu-item-hover")}).bind("mouseout",function(){H(this).removeClass("ui-state-hover gc-smartMenu-item-hover")}).bind("click",function(){var l;l=H(this);var q=d.v_,r=l.find("input[type\x3dradio]"),u=r[0];u.checked=!0;r.trigger("change");q.trigger("click");q.trigger("mouseout");l.removeClass("ui-state-hover gc-smartMenu-item-hover");l=parseInt(H(u).attr("value"));d.x_(l)});d.w_.find("input[type\x3dradio]").bind("change",function(){H(".gc-menu-item-input").removeClass("ui-icon ui-icon-check gc-check-image");H(this).parent().addClass("ui-icon ui-icon-check gc-check-image")})},y_:function(){H(".gc-fill-type-item").unbind("mouseover").unbind("mouseout").unbind("click");this.w_.find("input[type\x3dradio]").unbind("change")},x_:function(d){var l=this.kj,q=l.mm;if(this.z_!==d){this.z_=d;l.U$=!0;l.suspendEvent();try{Q.Commands.undo.execute(l.parent,{sheetName:l.name()})}finally{l.resumeEvent()}l.U$=!1;l.wu().execute({cmd:"fill",sheetName:l.name(),startRange:q.A$,fillRange:q.A_,autoFillType:d,fillDirection:q.dJ});this.v_.trigger("fillTypeChanged",d)}},MQ:function(){return!!H(".gc-fill-menu-container").length}}),u}(u);u=function(d){function l(l,n,q){d.call(this,l,F(n.parent.qo));this.kj=n;this.B_=q;l=this.C_=this.yo().addClass("gc-smart-tag-default gc-tag-container gc-no-user-select ui-widget-header btn btn-default");this.D_=H(I("img")).attr("src",J(0)).css("float","left").appendTo(l);this.E_=H(I("img")).attr("src",J(1)).css(["float","display"],["left","none"]).appendTo(l)}H.inherit(l,d);return H.extend(l.prototype,{F_:function(d,l,q){var n=this.kj.CH;l=H(l);var r=this.G_,c=this.E_,m=n?"38px":"32px",n=n?"24px":"18px";r&&r.MQ()||(d?l.addClass("ui-state-hover gc-smart-tag-hover"):l.removeClass("ui-state-hover gc-smart-tag-hover"),l.css(["width","height"],[d?m:n,n]),q||(d?c.show():c.hide()))},H_:function(){var d=this,l=d.C_,q=L.rl(),u=L.Ml.safari&&(q.ipad||q.iphone);l.bind("mouseover",function(){d.F_(!0,this,u)}).bind("mouseout",function(){d.F_(!1,this,u)});l.bind("click",function(){var l,c,m=H(this),h=d.G_,a=d.E_;h&&h.MQ()?(u&&a.hide(),m.removeClass("ui-state-active gc-smart-tag-active"),d.I_()):(u&&a.show(),m.addClass("ui-state-active gc-smart-tag-active"),d.J_(),l=d.w_,c=l&&l.find("input[type\x3dradio]")[d.B_.fillType],c&&!c.checked&&(c.checked=!0,H(c).trigger("change")))});G.bind("keydown.ui-fill",function(l){27===l.keyCode&&(d.G_&&d.G_.MQ()?d.I_():d.close(),L.nl(l))})},OT:function(){var d=this.C_,l=this.B_,q=this.kj.CH,u=q?"3px":"0px",q=q?"24px":"18px";d&&(d.css(["left","top"],[l.x,l.y]),this.Ao(),this.H_(),this.D_.css("margin",u),this.E_.css("height",q),this.hZ())},J_:function(){var d,l,q,u,A,c;d=this.kj;this.G_||(this.G_=new R(d.parent.xv(),d),this.w_=this.G_.yo());d=this.C_;l=d.css("left");q=d.css("top");u=parseFloat(q);A=this.G_;c=this.B_;A.z_=c.fillType;isNaN(u)||(q=u+d.height()+2);this.w_.css(["left","top"],[l,q]);A.Ao();A.QQ();A.v_.unbind("fillTypeChanged").bind("fillTypeChanged",function(d,h){c.fillType=h})},I_:function(){var d=this.G_;d&&(d.y_(),d.close())},hZ:function(){var d=this.G_,l=this.C_;d&&(d.MQ()&&l.trigger("click"),l.trigger("mouseout"))},close:function(){var l=this.kj;this.hZ();G.unbind("keydown.ui-fill");d.prototype.close.call(this);l&&l.zt()}}),l}(u);O.K_=u;U.exports=O},function(U,u,l){function d(d,l,c,m,h){d.save();var a,n,q;l===m?(d.rect(l-2,c,7,r(h-c)),d.clip(),d.beginPath(),c<h?(c-=3,h+=3):(c+=3,h-=3),a=D(l-1,c-1,m-1,h+1,"black",7),n=D(l,c,m,h,"black",7),q=D(l+1,c-1,m+1,h+1,"black",7)):c===h&&(d.rect(l,c-2,r(m-l),7),d.clip(),d.beginPath(),l<m?(l-=3,m+=3):(l+=3,m-=3),a=D(l-1,c-1,m+1,h-1,"black",7),n=D(l,c,m,h,"black",7),q=D(l-1,c+1,m+1,h+1,"black",7));a.vE(d);n.vE(d);q.vE(d);d.stroke();d.beginPath();d.restore()}function J(d,l,c,m,h,a,n,q,t,r,u){var p=l?F.DragDropBlock:F.DragDropBlockCompleted;c={sheet:d,sheetName:d.Cj,fromRow:c,fromCol:m,toRow:h,toCol:a,rowCount:n,colCount:q,copy:t,insert:r,copyOption:u};return l&&(c.cancel=!1),d.Wq(p,c),c.cancel}var R=l(85),Q=l(26),K=l(33),O=l(144),H=R.GC$,I=R.kf,L=R.X3,F=R.Events,G=Q.j.Fa,q=R.Rect,D=R.zF,A=Math.min,r=Math.abs,n=Math.max,w=function(){return Q.C(O.SR)()};H.extend(R.iI.prototype,{gG:function(d){var l,c,m,h,a,n,q;this.zG||(l=this.kj,c=null,1===l.Uq.length?c=l.Uq[0]:1>l.Uq.length&&(c=l.zl().get(l.Jl,l.Kl)),c&&(this.zG=!0,this.OG=!0,this.L_=c,m=l.getRangeRect(d.rowViewportIndex,d.colViewportIndex,c),h=this.gA,h.x=m.x,h.y=m.y,h.width=m.width-1,h.height=m.height-1,h.row=c.row,h.col=c.col,h.rowCount=c.rowCount,h.colCount=c.colCount,a=l.Tq(c),n=d.row,q=d.col,n<a.row&&(n=a.row),n>=a.row+a.rowCount&&(n=a.row+a.rowCount-1),q<a.col&&(q=a.col),q>=a.col+a.colCount&&(q=a.col+a.colCount-1),h.hitRow=n,h.hitCol=q,h.rowOffset=n-a.row,h.colOffset=q-a.col,this.rG={KG:d.rowViewportIndex,MG:d.colViewportIndex,sG:d.hitTestType},this.qG()))},AG:function(){var d,l,c,m,h,a,n,q,t;this.rG&&this.OG&&this.zG&&this.L_&&(d=this.$F,l=this.gA,c=l.width/2,m=l.x+c,h=l.height/2,a=l.y+h,l.hitTarget={x:d.x,y:d.y},n=this.fH(),q=this.gH(),t=!1,(r(m-d.x)>c+5||r(a-d.y)>h+5)&&(t=!0),0<=n&&0<=q&&t&&this.M_(n,q),this.NG())},M_:function(d,l){var c,m,h,a,q,r,t,u;this.zG&&this.L_&&(c=this.kj,m=this.gA,h=c.Ix(),-1===h.row&&-1!==h.col?(m.row=-1,m.col=n(0,A(c.getColumnCount(void 0)-m.colCount,l-m.colOffset))):-1!==h.row&&-1===h.col?(m.row=n(0,A(c.getRowCount(void 0)-m.rowCount,d-m.rowOffset)),m.col=-1):(m.row=0>m.row?-1:n(0,A(c.getRowCount(void 0)-m.rowCount,d-m.rowOffset)),m.col=0>m.col?-1:n(0,A(c.getColumnCount(void 0)-m.colCount,l-m.colOffset))),m.hitRow=d,m.hitCol=l,a=c.Tq(m),q=this.N_,q&&a.row===q.row&&a.col===q.col&&a.rowCount===q.rowCount&&a.colCount===q.colCount&&a.row>c.ar()&&a.col>c.$q()&&a.row+a.rowCount-1<c.ir()&&a.col+a.colCount-1<c.dr()||(this.MI=a,c.yl.QH(),this.N_=a,r=c.parent,r&&r.options.showDragDropTip&&(t=m.x+m.width+5,u=m.y+m.height+5,r.uw(this.O_(a),t,u))))},O_:function(d){var l,c,m,h,a,n,q,t,r;return d&&L?(l=this.kj,c=l.Ix(),m=l.getActiveRowIndex(),h=l.getActiveColumnIndex(),m=0>m?0:m,h=0>h?0:h,1===c.rowCount&&1===c.colCount?a=K.rf(null,null,d.row-m,d.col-h,!0,!0):(-1===c.row&&0<=c.col?(n=t=K.BAND_INDEX_CONST,q=d.col-h,r=d.col-h+c.colCount-1):-1===c.col&&0<=c.row?(q=r=K.BAND_INDEX_CONST,n=d.row-m,t=d.row-m+c.rowCount-1):0<=c.row&&0<=c.col&&(n=d.row-m,t=d.row-m+c.rowCount-1,q=d.col-h,r=d.col-h+c.colCount-1),a=K.uf(null,null,n,q,t,r,!0,!0,!0,!0)),l.Cf().unparse(l.yj(),a,m,h)):void 0},wH:function(){var d,l,c,m,h,a,n,q,t,r=!1,u="",p=!1,g=this.kj;this.rG=null;this.RG();d=(d=g.Ix())&&(0<d.rowCount||0<d.colCount)?{r:d.row,c:d.col,rc:d.rowCount,cc:d.colCount}:{r:g.Jl,c:g.Kl,rc:1,cc:1};!0===this.zG&&!0===this.OG&&(l=d.r,c=d.c,m=d.rc,h=d.cc,a=this.gA.row,n=this.gA.col,t={fromRow:l,fromColumn:c,rowCount:m,columnCount:h,toRow:a,toColumn:n,isDragInsert:this.OH,isDragCopy:this.PH},g.Wq(F.BeforeDragDrop,t),u=t.invalidMessage,u&&0!==u.length||(!this.OH||-1!==l&&-1!==c?a===l&&n===c||((g.qu(l,c,m,h)||g.qu(a,n,m,h))&&(r=!0,u=w().Exp_ChangeMergedCell),r||L&&(g.Ns(l,c,m,h)||g.Ns(a,n,m,h))&&(r=!0,u=w().Exp_ChangePartOfArray),!r&&g.options.isProtected&&(!this.PH&&g.ou(I(l,c,m,h))||g.ou(I(a,n,m,h)))&&(r=!0,u=w().Exp_CellReadOnly),r||(q=J(g,!0,l,c,a,n,m,h,this.PH,!1,1023),q||(p=g.wu().execute({cmd:"dragDrop",sheetName:g.name(),fromRow:l,fromColumn:c,toRow:a,toColumn:n,rowCount:m,columnCount:h,copy:this.PH,insert:!1,option:1023}),J(g,!1,l,c,a,n,m,h,this.PH,!1,1023)))):0<=c&&0>l?(this.PH&&(n<=c||n>=c+h)||!this.PH&&(n<c||n>c+h))&&((g.qu(-1,c,-1,h)||g.qu(-1,n,-1,0))&&(r=!0,u=w().Exp_ChangeMergedCell),!r&&g.options.isProtected&&(r=!0,u=w().Exp_ColumnReadOnly),r||(q=J(g,!0,-1,c,-1,n,-1,h,this.PH,!0,1023),q||(p=g.wu().execute({cmd:"dragDrop",sheetName:g.name(),fromRow:-1,fromColumn:c,toRow:-1,toColumn:n,rowCount:-1,columnCount:h,copy:this.PH,insert:!0,option:1023}),J(g,!1,-1,c,-1,n,-1,h,this.PH,!0,1023)))):0<=l&&0>c&&(this.PH&&(a<=l||a>=l+m)||!this.PH&&(a<l||a>l+m))&&((g.qu(l,-1,m,-1)||g.qu(a,-1,0,-1))&&(r=!0,u=w().Exp_ChangeMergedCell),r||L&&(g.Ns(l,-1,m,-1)||g.Ns(a,-1,0,-1))&&(r=!0,u=w().Exp_ChangePartOfArray),!r&&g.options.isProtected&&(r=!0,u=w().Exp_RowReadOnly),r||(q=J(g,!0,l,-1,a,-1,m,-1,this.PH,!0,1023),q||(p=g.wu().execute({cmd:"dragDrop",sheetName:g.name(),fromRow:l,fromColumn:-1,toRow:a,toColumn:-1,rowCount:m,columnCount:-1,copy:this.PH,insert:!0,option:1023}),J(g,!1,l,-1,a,-1,m,-1,this.PH,!0,1023))))));this.zG=this.OG=!1;this.L_=null;this.PH=this.OH=!1;this.N_=null;this.xw();p||(this.gA={},g.repaint());r&&g.Os(3,u)},hG:function(d){!0!==this.BG&&!0!==this.OG&&(this.P_(),this.A$&&(this.OG=!0,this.BG=!0,this.$I=!0,this.Q_=d,this.R_=d.colViewportIndex,this.S_=d.rowViewportIndex,this.T_=d.colViewportIndex,this.U_(),this.rG={KG:d.rowViewportIndex,MG:d.colViewportIndex,sG:d.hitTestType},this.qG()))},U_:function(){var d;d=this.kj.frozenRowCount();var l=this.kj.frozenColumnCount(),c=this.V_();0<=c&&c<d?this.W_=0:c>=d&&c<=this.kj.getRowCount(void 0)&&(this.W_=1);this.X_()?this.Y_=1:this.Y_=this.Q_;d=this.Z_();0<=d&&d<l?this.__=0:d>=l&&d<=this.kj.getColumnCount(void 0)&&(this.__=1);this.a0()?this.b0=1:this.b0=this.R_},CG:function(){var d,l,c;this.rG&&this.BG&&this.OG&&this.A$&&(this.S_=this.iH(),this.T_=this.jH(),this.c0=this.fH(),this.d0=this.gH(),0<=this.c0&&0<=this.d0&&(this.e0(),this.f0(),d=this.kj.parent,l=!1,c=this.g0(),c&&(l=this.h0(this.A$,this.A_,!0)),d&&d.options.showDragFillTip&&l&&this.i0(),this.j0()),this.NG())},k0:function(){var d,n,c,m,h,a,q,r,t,u,w,p,g,f=this.kj,k=this.A$,x=this.A_,A=f.parent.options.defaultDragFillType,A=this.l0(3===A?5:A),F=this.m0(),D=this.g0();return 1===A?(d=0===F||1===F?1:0,n=new O.z$(f),c=n.B$(D,d,!0),m=this.n0(F,x,k),h=f.getActualStyle(m.row,m.col),a=h.cellType||f.Al(),q=h.formatter?h.formatter:h._autoFormatter,r=l(34),t=r&&r.GeneralFormatter,c instanceof Date&&t&&(q=new t(Q.CultureManager.q4().DateTimeFormat.shortDatePattern+" hh:mm:ss AM/PM;@",0)),u=this.rG,w=3,u&&(w=u.sG),p={sheet:f,row:m.row,col:m.col,sheetArea:w},a.format(c,q,p)):0===A?(m=this.n0(F,x,k),g=f.getFormula(m.row,m.col),g?null:f.getText(m.row,m.col)):null},n0:function(d,l,c){var m,h=c.row,a=c.col,n=c.rowCount;c=c.colCount;var q=I(h,a,1,1);return 3===d?(m=l.rowCount%n,m=0===m?h+n-1:h+m-1,q.row=m,q.col=a):1===d?(m=l.colCount%c,m=0===m?a+c-1:a+m-1,q.row=h,q.col=m):0===d?(m=l.colCount%c,m=0===m?a:a+c-m,q.row=h,q.col=m):2===d&&(m=l.rowCount%n,m=0===m?h:h+n-m,q.row=m,q.col=a),q},i0:function(){var d,l,c,m,h,a,n=this.kj;return 4===this.l0()||this.a0()||this.X_()?(this.xw(),null):(m=this.m0(),h=this.g0(),a=n.cm(h),c=this.k0(),3===m?(d=a.x+a.width+3,l=a.y+a.height+3):1===m?(d=a.x+a.width+3,l=a.y+a.height+3):0===m?(d=a.x+3,l=a.y+a.height+3):2===m&&(d=a.x+a.width+3,l=a.y+3),void this.uw(c,d,l))},j0:function(){this.o0();this.p0();this.q0();this.r0=this.g0()},o0:function(){var d,l=this.kj;this.r0&&(d=l.cm(this.r0),d.x-=2,d.y-=2,d.width+=4,d.height+=4,l.yl.dm(d))},p0:function(d){this.kj.yl.im(this.A$,null,d)},q0:function(){var d,l,c=this.kj,m=c.yl,h=this.g0();h&&(d=m.bm(),l=c.cm(h),d.save(),d.beginPath(),m.RI(d,l),d.restore())},f0:function(){this.A_=this._I()},a0:function(){return-1===this.A$.col&&-1!==this.A$.row},X_:function(){return-1===this.A$.row&&-1!==this.A$.col},ZI:function(){return 4===this.dJ||5===this.dJ},_I:function(){var d=-1,l=-1,c=-1,m=-1;switch(this.dJ){case 0:this.X_()?(d=-1,c=-1):(d=this.V_(),c=this.A$.rowCount);l=this.d0;m=this.Z_()-l;break;case 1:this.X_()?(d=-1,c=-1):(d=this.V_(),c=this.A$.rowCount);l=this.s0()+1;m=this.d0-l+1;break;case 2:d=this.c0;c=this.V_()-d;this.a0()?(l=-1,m=-1):(l=this.Z_(),m=this.A$.colCount);break;case 3:d=this.t0()+1;c=this.c0-d+1;this.a0()?(l=-1,m=-1):(l=this.Z_(),m=this.A$.colCount);break;case 5:d=this.c0;c=this.t0()-d+1;this.a0()?(l=-1,m=-1):(l=this.Z_(),m=this.A$.colCount);break;case 4:this.X_()?(d=-1,c=-1):(d=this.A$.row,c=this.A$.rowCount),l=this.d0,m=this.s0()-l+1}return I(d,l,c,m)},u0:function(){var d=this.t0();return-1!==d?this.kj.Gr(this.Y_).findRow(d):null},v0:function(){return this.kj.Gr(this.S_).findRow(this.w0())},w0:function(){return this.kj.getViewportBottomRow(this.S_)},x0:function(){var d=this.s0();return-1!==d?this.kj.Hr(this.b0).findCol(d):null},y0:function(){return this.kj.Hr(this.T_).findCol(this.z0())},z0:function(){return this.kj.getViewportRightColumn(this.T_)},e0:function(){var d,l,c,m,h,a,n,q,t,u,w,p,g,f,k,x,F,D,G,I=this.a0(),e=this.X_(),b=H(this.kj.Ws()).offset(),v=this.$F.e,K=this.$F.x,J=this.$F.y,L=v.pageX-b.left,b=v.pageY-b.top,v=!1;I||e?e?this.d0>=this.Z_()&&this.d0<=this.s0()?this.dJ=4:this.d0<this.Z_()?this.dJ=0:this.d0>this.s0()&&(this.dJ=1):I&&(this.c0>=this.V_()&&this.c0<=this.t0()?this.dJ=5:this.c0<this.V_()?this.dJ=2:this.c0>this.t0()&&(this.dJ=3)):this.c0>=this.V_()&&this.c0<=this.t0()?this.d0>=this.Z_()&&this.d0<=this.s0()?(d=r(this.d0-this.s0()),l=r(this.c0-this.t0()),l>d?this.dJ=5:l<d?this.dJ=4:(c=this.u0(),c||(c=this.v0()),J>c.y+c.height?this.dJ=3:(m=this.x0(),m||(m=this.y0()),h=m.x+m.width-K,a=c.y+c.height-J,L>=m.x&&L<=m.x+m.width&&b>=c.y&&b<=c.y+c.height?h>=a?this.dJ=4:this.dJ=5:v=!0))):this.d0<this.Z_()?this.dJ=0:this.d0>this.s0()&&(this.dJ=1):this.c0<this.V_()?this.d0>=this.Z_()&&this.d0<=this.s0()?this.dJ=2:this.d0<this.Z_()?(d=r(this.d0-this.Z_()),l=r(this.c0-this.V_()),l>=d?this.dJ=2:this.dJ=0):this.d0>this.s0()&&(d=r(this.d0-this.s0()),l=r(this.c0-this.V_()),l>=d?this.dJ=2:this.dJ=1):this.c0>this.t0()&&(this.d0>=this.Z_()&&this.d0<=this.s0()?this.dJ=3:this.d0<this.Z_()?(d=r(this.d0-this.Z_()),l=r(this.c0-this.t0()),l>=d?this.dJ=3:this.dJ=0):this.d0>this.s0()&&(d=r(this.d0-this.s0()),l=r(this.c0-this.t0()),l>=d?this.dJ=3:this.dJ=1));(d=this.kj.yl.rH)&&(n=this.t0(),q=this.s0(),t=n+1,u=q+1,w=this.kj.getRowHeight(n,3),p=this.kj.getColumnWidth(q,3),g=this.kj.getRowHeight(t,3),f=this.kj.getColumnWidth(u,3),k=d.x+d.width/2-A(10,p/2),x=d.x+d.width/2+A(10,f/2),F=d.y+d.height/2-A(10,w/2),D=d.y+d.height/2+A(10,g/2),G=!1,I||e?e?G=k<=L&&L<=x:I&&(G=F<=b&&b<=D):G=k<=L&&L<=x&&F<=b&&b<=D,G||v?(this.$I=!0,this.dJ=4):this.$I=!1)},V_:function(){return this.A$?-1===this.A$.row?0:this.A$.row:-1},t0:function(){return this.A$?-1===this.A$.row?this.kj.getRowCount(void 0)-1:this.A$.row+this.A$.rowCount-1:-1},Z_:function(){return this.A$?-1===this.A$.col?0:this.A$.col:-1},s0:function(){return this.A$?-1===this.A$.col?this.kj.getColumnCount(void 0)-1:this.A$.col+this.A$.colCount-1:-1},dja:function(d,l){var c,m,h,a,n,q,t=I(l.row,l.col,l.rowCount,l.colCount),r=this.kj;return r.zl().find(d.row,d.col)&&(c=d.rowCount,m=t.rowCount,0!==Math.floor(m%c)&&(h=Math.ceil(m/c)*c,t.row+h<=r.getRowCount()&&(t.rowCount=h)),a=d.colCount,n=t.colCount,0!==Math.floor(n%a)&&(q=Math.ceil(n/a)*a,t.col+q<=r.getColumnCount()&&(t.colCount=q))),t},xH:function(){var d,l,c,m,h,a,n=this.kj;return this.rG=null,this.RG(),this.xw(),this.BG&&this.OG?(this.BG=!1,this.OG=!1,d=this.g0(),void(d&&(l=this.h0(this.A$,this.A_),!l||this.$I?(this.A0(),this.WA(d)):(c=n.mm.A$,m=this.dja(c,this.A_),h=this.l0(),n.wu().execute({cmd:"fill",sheetName:n.name(),startRange:c,fillRange:m,autoFillType:h,fillDirection:n.mm.m0()}),a=this._$,!a&&this.B0()&&n.parent.options.showDragFillSmartTag&&4!==this.$$?this.C0(this.$$):this.WA(d),this.A0())))):void this.A0()},C0:function(d){var l=this.kj,c=l.yl.rH;d={x:c.x+c.width,y:c.y+c.height,fillType:d};l.NF=new O.K_(l.parent.xv(),l,d);l.NF.OT()},P_:function(){var d=this.kj;1===d.Uq.length?this.A$=d.Uq[0]:0<=d.Jl&&0<=d.Kl&&(this.A$=I(d.Jl,d.Kl,1,1))},A0:function(){this.BG=this.OG=!1},WA:function(d){this.kj.yl.im(d)},l0:function(d){var l,c=this.kj;d=void 0!==d?d:c.parent.options.defaultDragFillType;return this.ZI()?4:5!==d?d:(l=1===this.A$.rowCount&&1===this.A$.colCount&&!this.X_()&&!this.a0(),l?this.RH?1:0:this.RH?0:1)},g0:function(){var d,l,c,m;return this.A$?this.ZI()?this.A$:this.A_?(this.D0()?(d=2===this.dJ?this.A_.row:this.A$.row,l=this.A$.rowCount+this.A_.rowCount,c=this.A$.col,m=this.A$.colCount):(d=this.A$.row,l=this.A$.rowCount,c=0===this.dJ?this.A_.col:this.A$.col,m=this.A$.colCount+this.A_.colCount),I(d,c,l,m)):null:null},h0:function(d,l,c){function m(a,c,d,h,g){var f,k,l;for(f=0;f<d.rowCount;f++){for(k=0;k<d.colCount;k++){if(l=a.getSpan(d.row+f,d.col+k),!l||l.rowCount!==c.rowCount||l.colCount!==c.colCount)return!1;h&&(k+=c.colCount)}g&&(f+=c.rowCount)}return!0}function h(a,c,d){var h,g,f=c.row===d.row&&c.rowCount===d.rowCount,k=c.col===d.col&&c.colCount===d.colCount;return!(!f&&!k)&&(h=a.getSpan(c.row,c.col),!(!h||!m(a,h,c,f,k))&&(g=a.zl(),!g.hasPartSpans(d.row,d.col,d.rowCount,d.colCount)&&m(a,h,d,f,k)))}var a,n,q;return a=this.kj,n=!0,q="",a.zl().hasSpans(l.row,l.col,l.rowCount,l.colCount)&&!h(a,d,l)&&(n=!1,q=w().Exp_FillRangeContainsMergedCell),n&&a.options.isProtected&&a.ou(l)&&(n=!1,q=w().Exp_FillCellsReadOnly),n||c||a.Os(2,q),n},B0:function(){return this.E0()||this.F0()},E0:function(){return 3===this.dJ||1===this.dJ},F0:function(){return 0===this.dJ||2===this.dJ},D0:function(){return 2===this.dJ||3===this.dJ||5===this.dJ},m0:function(){var d=this.dJ;return 0<=d&&3>=d?d:4===d?0:5===d?2:3},tr:function(d,l,c){var m,h,a,n,q=null,t=d.rowViewportIndex;d=d.colViewportIndex;if(G(t)||G(d)||(m=this.kj,h=m.parent,a=m.Ix(),-1===a.row&&-1===a.col))return q;if(0<=t&&0<=d&&1===m.Uq.length){if(this.qH(t,d,l,c))return q;m=m.getRangeRect(t,d,a);m.x-4<l&&l<m.x+4&&m.y<=c&&c<m.y+m.height&&(q={action:"drag",side:"left"});q||(n=this.kj.yl.rH,n&&n.x<=l&&l<=n.x+n.width&&n.y<=c&&c<=n.y+n.height&&(q={action:"drag",side:"corner"}));q||m.x+m.width-4<l&&l<m.x+m.width+4&&m.y<=c&&c<m.y+m.height&&(q={action:"drag",side:"right"});q||m.y-4<c&&c<m.y+4&&m.x<=l&&l<m.x+m.width&&(q={action:"drag",side:"top"});q||m.y+m.height-4<c&&c<m.y+m.height+4&&m.x<=l&&l<m.x+m.width&&(q={action:"drag",side:"bottom"});q&&(l<m.x||l>m.x+m.width||c<m.y||c>m.y+m.height)&&(q.outside=!0)}return h&&h.options.allowUserDragDrop||q&&"corner"!==q.side&&(q.side=null),h&&h.options.allowUserDragFill||q&&"corner"===q.side&&(q.side=null),q}});H.extend(R.oJ.prototype,{gJ:function(d,l){var c,m=this.kj,h=d.x,a=d.y,n=d.width,r=d.height,t=m.Ix(),m=m.am(),u=4,w=-2.5;return 2007<l&&(u=5,w=-3),c=new q(-4,-4,u,u),-1===t.col?(c.x=m.kt,c.y=a+r+w):-1===t.row?(c.x=h+n+w,c.y=m.nt):(c.x=h+n+w,c.y=a+r+w),c},eJ:function(d,l,c,m,h){var a,r,y=this.kj,t=y.am(),u=y.parent,u=u&&u.Vv;m=this.gJ(m,u);var w=m.x,p=m.y,g=m.width,f=m.height;l=t.Ft(l,c);h&&!m.intersectRect(h)||m.intersectRect(l)&&(a=-1.5,2007<u&&(a=-1),r=new q(w+a,p+a,g+2,f+2),r.x=n(r.x,l.x),r.y=n(r.y,l.y),this.dm(r),d.save(),h&&!h.containsRect(m)&&(d.rect(h.x,h.y,h.width,h.height),d.clip()),d.beginPath(),d.fillStyle=R.Rm.Om(y,y.getSelectionBorderColor()),d.fillRect(w,p,g,f),this.rH=new q(m.x,m.y,4,4),d.beginPath(),d.restore())},RI:function(l,n){var c=n.x,m=n.y,h=c+n.width,a=m+n.height;d(l,c,m,h,m);d(l,c,a,h,a);d(l,c,m,c,a);d(l,h,m,h,a)},NI:function(l,n){var c,m,h,a,r,y,t,u,w,p,g,f=this.kj,k=f.mm.gA,x=k.hitTarget;k&&x&&(c=k.hitCol,m=k.hitRow,h=f.mm.OH,a=f.OI,l.save(),!0!==h||-1!==k.row&&-1!==k.col?(a&&(r=new q(a.x-2,a.y-2,a.width+4,a.height+4),this.dm(r,n),this.im(f.Ix(),n)),l.rect(n.x,n.y,n.width,n.height),l.clip(),l.beginPath(),this.RI(l,k)):-1===k.row&&-1!==k.col?(y=f.Hr(0).findCol(c),y||(y=f.Hr(1).findCol(c)),y||(y=f.Hr(2).findCol(c)),y&&(t=y.x,u=y.width,k.col=c,x.x>t+u/2&&(k.col<f.cr()||k.col===f.dr())&&(t=y.x+y.width,k.col++),a&&0===a.width||(a=f.mm.gA),a&&(r=new q(a.x-2,a.y-2,a.width+4,a.height+4),this.dm(r,n),this.im(f.Ix(),n)),f.QI=new q(t,k.y,0,k.height),l.rect(n.x,n.y,n.width,n.height),l.clip(),l.beginPath(),d(l,t,k.y,t,k.y+k.height))):-1!==k.row&&-1===k.col&&(w=f.Gr(0).findRow(m),w||(w=f.Gr(1).findRow(m)),w||(w=f.Gr(2).findRow(m)),w&&(p=w.y,g=w.height,k.row=m,x.y>p+g/2&&(k.row<f.hr()||k.row===f.ir())&&(p=w.y+w.height,k.row++),a&&0===a.height||(a=f.mm.gA),a&&(r=new q(a.x-2,a.y-2,a.width+4,a.height+4),this.dm(r,n),this.im(f.Ix(),n)),f.QI=new q(k.x,p,k.width,0),l.rect(n.x,n.y,n.width,n.height),l.clip(),l.beginPath(),d(l,k.x,p,k.x+k.width,p))),l.beginPath(),l.restore())},QH:function(){var d,l,c,m,h,a,n,r,t,u,w,p,g=this.kj,f=g.yt;f&&f.dragInfo&&(d=this.bm(),l=g.am(),c=g.mm.MI,m=g.mm.gA,h=g.cm(c),a=g.frozenTrailingColumnCount(),n=g.frozenTrailingRowCount(),r=g.getColumnCount()-a,t=g.getRowCount()-n,u=l.Ft(1,1),0<a&&c.col+c.colCount<=r&&h.x+h.width>u.x+u.width&&h.intersectRect(u)&&(h=h.getIntersectRect(u)),0<n&&c.row+c.rowCount<=t&&h.y+h.height>u.y+u.height&&h.intersectRect(u)&&(h=h.getIntersectRect(u)),w=new q(l.kt,l.nt,l.lt+l.js,l.ot+l.gs),0<h.width&&0<h.height?(m.x=h.x,m.y=h.y,m.width=h.width-1,m.height=h.height-1,this.NI(d,w)):0!==h.width&&0!==h.height||(m.x=h.x,m.y=h.y,m.width=h.width,m.height=h.height,this.NI(d,w)),p=g.mm.OH,!0===p?g.OI=g.QI:g.OI=new q(m.x,m.y,m.width,m.height))}})},function(U,u){U.exports={CopyCells:"Copy Cells",FillSeries:"Fill Series",FillFormattingOnly:"Fill Formatting Only",FillWithoutFormatting:"Fill Without Formatting",Exp_NumberOnly:"Only works for Numbers",Exp_RangeContainsMergedCell:"Range should not have merged cells.",Exp_TargetContainsMergedCells:"Target range should not have merged cells.",Exp_MergedCellsIdentical:"This operation requires the merged cells to be identically sized.",Exp_FillRangeContainsMergedCell:"Cannot fill range that contains a merged cell.",Exp_FillCellsReadOnly:"The cells you are trying to fill are protected and therefore read-only.",Exp_ChangeMergedCell:"Cannot change part of merged cell.",Exp_ColumnReadOnly:"The column you are trying to change is protected and therefore read-only.",Exp_RowReadOnly:"The row you are trying to change is protected and therefore read-only.",Exp_CellReadOnly:"The cell you are trying to change is protected and therefore read-only.",Exp_RangeIsNull:"range is null",Exp_ChangePartOfArray:"Cannot change part of an array."}},function(U,u,l){u=l(149);l(150);l(151);l(152);l(153);u.SR={};u.SR.en=l(154);U.exports=u},function(U,u,l){function d(){var a=[];return r.each(G.C(L.SR)()._h,function(c,d){L.Functions.bi[c]&&(d.name=c,a.push(d))}),a}function J(a){var c=[],d;return r.each(a,function(a,h){(d=h.description())&&(d.name=a,c.push(d))}),c}function R(a,c){var h,l,m,g,f,k=a.parent,n=k&&k.options;c&&n&&n.allowUserEditFormula&&n.enableFormulaTextbox&&(a.Cw&&a.Cw.destroy(),a.Cw=new H(c,null,k),h=a.Cw.text(),l=a.getFormulaInformation(a.Jl,a.Kl),l&&l.hasFormula||"\x3d"===h[0]&&(h="'"+h,a.Cw.text(h)),m=a.Cw,g=a.mm,f=a.yl,m.bind("AppendStarted",function(){m.close();var c=a.Px;1!==c&&(a.Px=1,a.Cu(c,1))}),m.bind("AppendEnded",function(){f.uH()}),m.bind("TextChanged",function(c,d){if(!a.Js){if(d&&"input"!==d.type){g.Qw(d);var k=a.Jl,h=a.Kl,e=a.getCellType(k,h);a.Wq(I.Events.EditChange,{sheet:a,sheetName:a.Cj,row:k,col:h,editingText:e.getEditorValue(a.BF)})}f.uH();a.Wq(I.Events.FormulaTextBoxTextChanged,{sheet:a,sheetName:a.Cj,text:m.text()})}}),m.bind("CaretChanged",function(){f.uH();a.Wq(I.Events.FormulaTextBoxCaretChanged,{sheet:a,sheetName:a.Cj,caret:m.caret()})}),m.add(d()),m.add(J(L.Functions.ci)),m.add(J(a.Su).concat(J(k.Su))),f.uH())}function Q(a){a.Cw&&(a.Cw.destroy(),a.Cw=null,a.yl.uH());var c=a.parent&&a.parent.CF;z.activeElement===(c&&c.qo)&&a.mm.Qq()}var K,O,H,I=l(85),L=l(33),F=I.CalcEngine,G=l(26),q={},D=Math.max,A=Math.min,r=I.GC$;u=r.extend;var n=I.Ul.Nl,w=window,z=document,C=G.u,c=I.Ul,m=c.nl,h=c.Ml,a=C.Nb,B=function(){return G.C(q.SR)()};q.C2=function(a,c){var d,h,l,g,f,k;if(c){d=a.Jl;h=a.Kl;l=(l=a.parent)&&1===l.options.referenceStyle;g=15;a.Cw&&a.Cw.Nfa&&(g=0);0>c.row&&0>c.col&&(c=new I.Range(0,-1,a.getRowCount(),-1));k=(f=a.tables)&&f.find(c.row,c.col);f=q.G0.H0;var m;a:if(m=c,k){var n=!1,r=!1;if(1===m.rowCount){if(k.hasHeadersRow()&&m.row===k.startRow()||k.hasTotalsRow()&&m.row===k.endRow()){m=!0;break a}}else k.hasHeadersRow()&&m.row===k.startRow()&&(m.rowCount===k.dataRange().rowCount+1&&(n=!0),k.hasTotalsRow()&&m.rowCount===k.dataRange().rowCount+1+1&&(n=!0)),m.row===k.dataRange().row&&(m.rowCount===k.dataRange().rowCount&&(n=!0),k.hasTotalsRow()&&m.rowCount===k.dataRange().rowCount+1&&(n=!0));m=(m.col+m.colCount<=k.startColumn()+k.dataRange().colCount&&(r=!0),n&&r)}else m=!1;if(m)l=(f&&f._text&&f.kj!==a&&(d=h=-1),F.rangeToFormulaWithStructReference(a,c,d,h,g,l,k));else{d=F.rangeToFormula(c,d,h,g,l);if(f&&f._text||a.Cw&&a.Cw.V4&&a.Cw.fja)h=a.name(),h=L.jja(h.split(""),!1)?h:"'"+h+"'",d=h+"!"+d;l=d}d=l}else d=null;return d};I.Events.FormulaTextBoxTextChanged="FormulaTextBoxTextChanged";I.Events.FormulaTextBoxCaretChanged="FormulaTextBoxCaretChanged";w.Yl.km.push(function(a,c){var d,h=c&&"gcAttachedFormulaTextBox"===c.getAttribute("gcUIElement"),l=q.G0;!c&&a.endEdit&&!h&&l&&(d=l.H0,d&&d.I0&&a.Cw&&(a.Cw&&a.Cw.destroy(),a.Cw=null,d.$b()))});q.J0=R;q.K0=Q;q.L0=function(a,c){if(!c)return null;var d=a.Jl,h=a.Kl;try{return F.formulaToRange(a,c,d,h)}catch(p){}return null};u(I.DC.prototype,{bE:function(a){return!(a&&a.Cw&&a.Cw.M0())}});I.Worksheet.$n("formulatextbox",{startEdit:function(a){R(this,a.element)},endEdit:function(){Q(this)}});u=I.DC;l=u.prototype;K=l.dE;u.$n("formulatextbox",{preProcessMouseDbClick:function(a){var c=this.OC.getActiveSheet().Cw,c=c&&c.M0(),d=q.G0.H0;c?a.r=!1:d&&d.I0&&d.$b()}});l.dE=function(){var a=this.OC.getActiveSheet().Cw,c=q.G0.H0,c=c&&c._text;return K.call(this)&&!c&&!a};O="#0000ff #008000 #9900cc #800000 #00cc33 #cc6600 #cc0099".split(" ");H=function(){function d(a,c,d){var f,g=a;this.V4=!1;this.C5=0;this.Nfa=!1;this.fja=!0;c&&c.rangeSelectMode&&(!0===c.absoluteReference&&(this.Nfa=!0),!1===c.needSheetName&&(this.fja=!1),this.V4=!0,this.D5=!1,this.E5=!1,this.cga=a,f=l(a,this),g=f.contentDiv,this.gja=f.button,this.hja=a,this.C5=F++);this.ad(d&&d.getHost()||z.body);g&&this.N0(g);d&&(this.O0=!0,this.P0(d),this.OC.Gu(I.Events.FormulatextboxActiveSheetChanging,q.G0.Q0),this.OC.Fu(I.Events.FormulatextboxActiveSheetChanging,q.G0.Q0),this.OC.Gu(I.Events.FormulatextboxActiveSheetChanged,q.G0.R0),this.OC.Fu(I.Events.FormulatextboxActiveSheetChanged,q.G0.R0));this.S0=this.T0(this.text());this.U0(g)&&this.V0(this.S0)}function l(a,c){var d,g,h,l,m,p,q,e,b,t=n("table");return r(t).css("border-spacing","0"),r(t).css("width","100%"),r(a).append(t),d=n("tbody"),t.appendChild(d),g=document.createElement("tr"),d.appendChild(g),h=document.createElement("td"),r(h).css("padding-right","0px"),g.appendChild(h),l=document.createElement("td"),r(l).css("width","23px"),r(l).css("padding-right","0px"),g.appendChild(l),m=r(a).width()-r(l).width(),p=n("div"),q=n("div"),r(q).width(m),r(q).css({"overflow-y":"auto","overflow-x":"hidden",height:"20px"}),q.appendChild(p),h.appendChild(q),e=n("div"),l.appendChild(e),r(p).css({display:"inline-block","float":"left",height:"auto",outline:"none"}),r(p).width(m),r(p).attr("contenteditable","true"),r(p).attr("spellcheck","false"),b=r(e),b.css({display:"block","float":"right",width:"23px",height:"23px",background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAIAAACw+gCQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJSSURBVDhPY3hILqBYZ/eqV81LXpbNfp7S/yS0+Z5p+olD5x5OWXGyYcaBmql7yifuLOnbBkRFPVuACKIFqjNzwv2Qhhue5ReByK/qYlDtxb///n35+efd1z/PP/wB6vn2+/f7b79ffgIhiBaoTlPP5I2bN2/asmX7jh3Hjh+ft3wLUOfX779ef/h+6+nHtXsuffrx+/bj16euvwQiiBaETiAy904NTasGantRkvA8wetpsO0NJ839htKb9l/Jal6T3rgytX4FEEG0QHXuOnbr55+/P379AyIg40m8x8uZ3U+aC49bKn64eHzX0es4Xds0Y9ejl++vPXx3+f77Nx9/3PU3e5YR/CTM4WGs53pVPqBrgX6+8+QNFtdmNq0q6NpU1LOpe/6+o+fvH3fR36XCc9dE/KG3EdDNQPaF7VunLTuY0bA0omg2RAtUZ1LNUohjgCEJDJVtdlpPty6dr8x3yUDsvoPqRm2hqcp8Jy+9WbH/7cQ1EB0wnXEVCyBBt+fc8+NXXy9Yf/znz5/31swFaliiKjBZme/yrSe7z36YsuZBy4KbEC1QnRFFcxKqFgP1A1Fq7ZKcpqU1EzYuWX/kxIa1/WBtizYcAwqG5E71SZsA0QLVGZI3A+Lax+/+ACMwvHDmsn1v1xx8e+jSp83HXgP1ALmztryYsv4ZEEG0QHUGZk+FuHbHqadABORO3fC8Z/mdvmU3Oxdd9cuY1LX0VsOci/WzQQiiBaET4lQgii1fEFU6F4iAXgC6JShnakDWZKBmoDshCKIFqpMMQK7Ohw8BTajNa73pg9oAAAAASUVORK5CYII\x3d")',"background-repeat":"no-repeat"}),b.bind("click",function(){c.D5?(c.OC.Wq("RangeSelectEnding",c),c.endSelectMode()):c.startSelectMode()}),{contentDiv:p,button:e}}function u(a){var c=n("textarea");return r(c).css({display:"none"}),r(a).append(c),c}var F=1;return q.W4=u,d.prototype={constructor:d,j5:function(a){var c,d,k,h;this.O1();this.UF();this.E5=!0;c=u(this.OC.qo);d=this.a1();d.suspendPaint();R(d,c);c=d.Cw;c.V4=!0;c.C5=this.C5;c.Nfa=this.Nfa;c.fja=this.fja;a&&(this.text(a),this.caret(a.length));a=this.text();k=this.caret();0>=k&&(k=a.length);this.focus();this.caret(k);this.MH=!0;this.W0=1;h=a.lastIndexOf(",",k);-1!==h&&(this.W0=h+1);a||(this.text("\x3d"),a="\x3d",this.caret(1),k=1);0!==a.indexOf("\x3d")&&(a="\x3d"+a,k++);c.text(a);c.caret(k);c.MH=this.MH;c.W0=this.W0;d.resumePaint()},startSelectMode:function(a){a&&0!==a.indexOf("\x3d")&&(a="\x3d"+a);this.D5=this.V4=!0;r(this.gja).css({background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAIAAACw+gCQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAItSURBVDhPY3hILqBYZ/eqVxDUuvRl/cKXZbNf5E59ntT3DIgi2p/6NT5xq35iV/YYiCyLHkG0IHQuOvR/1t6/03b+mbD1d/eGXy2rf9Yu/wFE5Yu+Fc79mjXza+rUz0BkmHoWogXFTqCFVfNfQmwLa3vqVfsYiBzA9sCRftIJiBaozuYZO+89eAREt+4+AKIbt+9fvXkPiC5du3P28s0T564dOnV579Hz2w6cSaqcDdEC1Vk/ZQtQQ2vv7MaumbUd0+o6ZzT3zmnunQ1kF9T0pZe2J+U3x+U0bNx9MqZ4CkQLVGdB6xKgDaX1/b/+/PnyE4E+ff/z8uPvR29/3X35MzCxfPW2o2HZPRAtUJ2lXSuADkstann/9febz7/ff/3zLDP4Spj9Pjs1oE6gthvPfnpEFS7deDAwrRWiBaozv3kh0D8RadVAlFvZvWLDrjvRrk+bCrdpCS1ZsyOpoMU9ssA5NBeo0zuhDqIFqjO9Zubhk1eA6MT5G+eu3H78/PVFX/OnxQnrNQTuPnyx9+hFoA+B2uav2ecaVQ7RAtUZVzQBKH3g+KXTl24fdjE44mp4yFbtSYrfGg3+yQocQLTryEWgzgVr9zmEFkK0QHWGZbbvPHQOiI6cvnb5wMENhjJPE30eB1k9dFIDaruy/wAwPoA6563eaxOQDdEC1YkG1hvKrNKVuOEA0nYr2Pp5qA1UAglg1wkEW03lF2kI3wy1xaoNCHDqJAjI1fnwIQDHT83/UVFPcQAAAABJRU5ErkJggg\x3d\x3d")',"background-repeat":"no-repeat"});this.j5(a)},endSelectMode:function(){this.D5=!1;this.H5();r(this.gja).css({background:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAARCAIAAACw+gCQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJSSURBVDhPY3hILqBYZ/eqV81LXpbNfp7S/yS0+Z5p+olD5x5OWXGyYcaBmql7yifuLOnbBkRFPVuACKIFqjNzwv2Qhhue5ReByK/qYlDtxb///n35+efd1z/PP/wB6vn2+/f7b79ffgIhiBaoTlPP5I2bN2/asmX7jh3Hjh+ft3wLUOfX779ef/h+6+nHtXsuffrx+/bj16euvwQiiBaETiAy904NTasGantRkvA8wetpsO0NJ839htKb9l/Jal6T3rgytX4FEEG0QHXuOnbr55+/P379AyIg40m8x8uZ3U+aC49bKn64eHzX0es4Xds0Y9ejl++vPXx3+f77Nx9/3PU3e5YR/CTM4WGs53pVPqBrgX6+8+QNFtdmNq0q6NpU1LOpe/6+o+fvH3fR36XCc9dE/KG3EdDNQPaF7VunLTuY0bA0omg2RAtUZ1LNUohjgCEJDJVtdlpPty6dr8x3yUDsvoPqRm2hqcp8Jy+9WbH/7cQ1EB0wnXEVCyBBt+fc8+NXXy9Yf/znz5/31swFaliiKjBZme/yrSe7z36YsuZBy4KbEC1QnRFFcxKqFgP1A1Fq7ZKcpqU1EzYuWX/kxIa1/WBtizYcAwqG5E71SZsA0QLVGZI3A+Lax+/+ACMwvHDmsn1v1xx8e+jSp83HXgP1ALmztryYsv4ZEEG0QHUGZk+FuHbHqadABORO3fC8Z/mdvmU3Oxdd9cuY1LX0VsOci/WzQQiiBaET4lQgii1fEFU6F4iAXgC6JShnakDWZKBmoDshCKIFqpMMQK7Ohw8BTajNa73pg9oAAAAASUVORK5CYII\x3d")',"background-repeat":"no-repeat"})},H5:function(){var a=this.a1();a.gv(!0,void 0,!0);a.repaint()},destroy:function(){this.D5&&this.H5();this.MH=!1;this.W0=-1;this.X0();this.Y0();r(this.Z0).remove();r(this.$0).remove();r(this._0).remove()},bind:function(a,c,d){var f=this.qo;f&&a&&(a=a.split(/\s+/).join(".gcFormulaTextBox "),r(f).bind(a+".gcFormulaTextBox",c,d))},unbind:function(a,c){var d=this.qo;d&&a&&(a=a.split(/\s+/).join(".gcFormulaTextBox "),r(d).unbind(a+".gcFormulaTextBox",c))},unbindAll:function(){var a=this.qo;a&&r(a).unbind(".gcFormulaTextBox")},caret:function(a){var c,d,k=this.qo;if(k)return c=z.activeElement===k,d=r(k),0===arguments.length?c?this.b1(k).end:d.data("caret-before"):void(a!==this.caret()&&(c?(this.c1(k,a),d.data("caret-before",this.b1(k).end)):d.data("caret-before",a),this.Wq("CaretChanged",{})))},b1:function(a){var c,d,k,h=-1,l=-1,m=this.d1(a),p=this.U0(a);return m?(h=a.selectionStart,l=a.selectionEnd):p&&(c=w.getSelection(),0<c.rangeCount&&(d=c.getRangeAt(0),k=d.cloneRange(),k.selectNodeContents(a),k.setEnd(d.endContainer,d.endOffset),l=(""+k).length,k=d.cloneRange(),k.selectNodeContents(a),k.setEnd(d.startContainer,d.startOffset),h=(""+k).length,k.detach())),{start:h,end:l}},c1:function(a,c){var d,g,h,l=this.d1(a),m=this.U0(a);l?a.setSelectionRange(c,c):m&&(d=this.e1(a,c),d&&(g=w.getSelection(),h=z.createRange(),h.setStart(d.node.firstChild,d.offset),h.collapse(!0),g.removeAllRanges(),g.addRange(h),this.V4&&(a.parentElement.scrollTop=a.parentElement.scrollHeight)))},text:function(a){var c,d,k,h,l,m=this.qo,p=this.a1();return m&&p&&!p.Js?(c=this.d1(m),d=this.U0(m),0===arguments.length?(k="",c?k=m.value:d&&(k=m.textContent),k):(null!==a&&void 0!==a||(a=""),void(a!==this.text()&&(this.S0=this.T0(a),c?m.value=a:d&&this.V0(this.S0),h={},l=q.G0.H0,l&&l._text&&(h={sheet:l.kj,editor:l.I0&&l.I0.firstChild.firstChild,canvasOffset:l.f1}),this.Wq("TextChanged",h))))):""},autoComplete:function(a){return 0===arguments.length?this.g1:void(this.g1=a)},showHelp:function(a){return 0===arguments.length?this.h1:void(this.h1=a)},add:function(a){var c,d;if(a)if(r.isArray(a))for(c=a.length,d=0;d<c;d++)this.Sb(a[d]);else this.Sb(a)},Sb:function(c){var d,f,k,h,l=c&&c.name&&a(c.name);if(l){d=this.i1;f=d.length;for(k=0;k<f;k++){if(h=a(d[k].name),h===l)return;if(h>l)break}d.splice(k,0,c)}},remove:function(c){var d,f,k;if(c)for(c=a(c),d=this.i1,f=d.length,k=0;k<f;k++)if(a(d[k].name)===c){d.splice(k,1);break}},workbook:function(a){return 0===arguments.length?this.OC:void(null===a?this.V4&&this.H5():(this.P0(a),this.j1()))},P0:function(a){var c;a&&(this.OC&&this.Y0(),c=this.qo,a&&c&&(this.OC=a))},l1:function(){var a,c,d,k=[],h=this.S0,l=h&&h.length,m=0,n=0;if(0<l)for(d=0;d<l;d++)a=h[d],c=a.text,11===a.type&&k.push({textOffset:m,text:c,ranges:a.ranges,index:n++,allowDrag:a.allowDrag}),m+=c.length;return k},m1:function(){var a,c,d,k,h;a=this.qo;var l=this.l1();if(a&&l&&0<l.length)for(a=this.caret(),c=l.length,h=0;h<c;h++){if(d=l[h],k=d.textOffset,k<a&&a<=k+d.text.length)return d;if(k>=a)break}return null},n1:function(a){var c,d,k;return!!a&&(c=this.caret(),d=a.text,k=a.textOffset,k<c&&c<=k+d.length)},o1:function(a){var c,d,k,h,l,m,p=this.l1(),n=p.length;if(0>a||n<=a)return"";c=[];for(h=k=0;h<n;h++){d=p[h];l=!1;for(m=0;m<c.length;m++)if(c[m].text.replace(/\s+/g,"").toUpperCase()===d.text.replace(/\s+/g,"").toUpperCase()){l=!0;break}if(l){if(a===h){k=m;break}}else if(c.push(d),a===h){k=c.length-1;break}}return O[k%O.length]},M0:function(){var a,c,d;return!!this.MH||!!this.V4||(a=this.s1(this.caret()),!!a&&(c=a.type,d=a.text,1===c||8===c||7===c&&"%"!==d||5===c||9===c||15===c))},t1:function(a){if(!a||!this.MH)return!1;var c=this.W0,d=this.caret();a=a.textOffset;return c<=a&&a<d},u1:function(){var a,c,d=[],k=this.l1(),h=k.length;if(0<h)for(c=0;c<h;c++)a=k[c],this.t1(a)&&d.push(a);return d},v1:function(a,c,d){var f,g,h,l,m,p,e;l=this.qo;if(a&&l){if(!this.MH){if(!this.M0())return;c=!1;this.MH=!0;this.W0=this.caret();this.Wq("AppendStarted",{})}f=this.W0;g=this.text();h=this.caret();g||(g="\x3d",f=this.W0=1,h=1);l=h;d&&(c=!1,g=g.substr(0,f)+g.substr(h),this.S0=this.T0(g),h=f,l=h);d=this.s1(h);c?(m=g.substr(0,h),m=m.substr(0,m.length-d.text.length),m.length>=f&&(d.text=a,l=m.length+a.length)):(p=this.S0,e=G.k.Cb(p,d),h>f?(p.splice(e+1,0,{text:this.w1(),type:8}),p.splice(e+2,0,{text:a,type:11}),a=","+a):this.V4&&1<p.length&&e===p.length-1&&11===d.type?(p.splice(e+1,0,{text:this.w1(),type:8}),p.splice(e+2,0,{text:a,type:11}),a=","+a):p.splice(e+1,0,{text:a,type:11}),l=h+a.length);this.z1();a={};(c=q.G0.H0)&&c._text&&(a={sheet:c.kj,editor:c.I0&&c.I0.firstChild.firstChild,canvasOffset:c.f1});this.Wq("TextChanged",a);this.caret(l)}},NH:function(){this.MH&&(this.MH=!1,this.W0=-1,this.Wq("AppendEnded",{}))},B1:function(){this.MH=!0;this.W0=this.caret()},C1:function(a){return 0===arguments.length?this.W0:this.W0=a},D1:function(a,c){var d,g,h,l,m,p;if(this.qo&&!(0>a)&&c){d=!1;h=(g=this.S0)&&g.length;for(p=m=0;p<h;p++)if(l=g[p],11===l.type&&m++===a){g[p]={text:c,type:11};d=!0;break}d&&(this.z1(),this.Wq("TextChanged",{}),this.caret(this.text().length))}},j1:function(){var a,c,d;this.OC&&(a=this.qo,this.OC&&a&&(c=I.Events,a.setAttribute("gcUIElement","gcAttachedFormulaTextBox"),this.V4||(this.OC.CF=this),this.OC.Fu(c.FormulatextboxEditStarted,this,this.E1),this.OC.Fu(c.FormulatextboxEnterCell,this,this.F1),this.OC.Fu(c.FormulatextboxEditEnded,this,this.G1),this.OC.Fu(c.FormulatextboxActiveSheetChanged,this,this.H1),this.OC.Fu(c.FormulatextboxRangeChanged,this,this.I1),this.OC.Fu(c.FormulaTextBoxTextChanged,this,this.J1),this.OC.Fu(c.FormulaTextBoxCaretChanged,this,this.K1),d=this.OC.getActiveSheet(),d&&!this.V4&&this.text(this.L1(d,d.Jl,d.Kl)),this.Fu("TextChanged",this,this.M1),this.Fu("CaretChanged",this,this.N1)))},refresh:function(){var a,c=this.OC;c&&(a=c.getActiveSheet(),a&&!this.V4&&this.text(this.L1(a,a.Jl,a.Kl)))},Y0:function(){var a,c=this.OC;!this.O0&&c&&(a=I.Events,this.V4||(c.CF=null,c.Gu(a.FormulatextboxEditStarted,this.E1),c.Gu(a.FormulatextboxEnterCell,this.F1),c.Gu(a.FormulatextboxEditEnded,this.G1),c.Gu(a.FormulatextboxActiveSheetChanged,this.H1),c.Gu(a.FormulatextboxRangeChanged,this.I1),c.Gu(a.FormulaTextBoxTextChanged,this.J1),c.Gu(a.FormulaTextBoxCaretChanged,this.K1),this.Gu("TextChanged",this.M1),this.Gu("CaretChanged",this.N1)),this.text(""));this.OC=null},O1:function(){var a,c;this.OG||(this.OG=!0,a=this.OC,c=a&&a.getActiveSheet(),c&&!c.isEditing()?(this.V4||c.EF(null,c.Jl,c.Kl,null,null,!1,null),this.Q1=!0):this.Q1=!1,this.OG=!1,this.R1||this.S1())},UF:function(){var a,c,d,k,h,l,m=this.OC;(m=m&&m.getActiveSheet())&&(a=m.Cw,this.Q1&&a&&(c=a.text(),d=this.text(),d!==c&&(k=this.caret(),h=m.getFormulaInformation(m.getActiveRowIndex(),m.getActiveColumnIndex()),this.text(c),h.isArrayFormula&&(k>=d.length&&--k,k=D(0,k-1)),this.caret(k))),l=m.Px,2!==l&&(m.Px=2,m.Cu(l,2)))},L1:function(a,d,f){var g,h,l,m,n,p="";return a&&(g=a.parent,h=g&&g.options,l=a.getFormulaInformation(d,f),l&&l.hasFormula?(p="\x3d"+l.formulaWithCulture,l.isArrayFormula&&(p="{"+p+"}")):(m=a.getActualStyle(d,f),n=a.getValue(d,f),p=c.Il(m,n,a)||"","\x3d"===p[0]&&h&&h.allowUserEditFormula&&(p="'"+p))),p},H1:function(a,c){var d,g=a.data;g.OG||(d=c.newSheet,g.V4||(g.OG=!0,g.close(),c&&g.text(g.L1(d,d.Jl,d.Kl)),g.OG=!1))},E1:function(a){var c,d,k;a=a.data;a.OG||(c=a.OC,d=c&&c.getActiveSheet(),k=d&&d.Cw,k&&a.V4===k.V4&&a.C5===k.C5&&(a.OG=!0,a.text(k.text()),a.OG=!1))},F1:function(a,c){var d=a.data;d.V4||d.OG||(d.OG=!0,c&&d.text(d.L1(c.sheet,c.row,c.col)),d.OG=!1)},I1:function(a,c){var d,g,h,l,m,n=a.data;n.OG||n.V4||(n.OG=!0,c&&(d=c.sheet,g=c.row,h=c.col,l=c.rowCount,m=c.colCount,(new I.Range(g,h,l,m)).contains(d.Jl,d.Kl)&&n.text(n.L1(d,d.Jl,d.Kl))),n.OG=!1)},G1:function(a,c){var d=a.data;return d.V4&&d.D5&&d.E5?void(c.ignore=!0):void(d.OG||(d.OG=!0,d.close(),c&&c.sheet.Cw&&(d.V4||c.sheet.Cw.V4||d.text(d.L1(c.sheet,c.row,c.col))),d.OG=!1))},J1:function(a,c){var d,g=a.data;g.OG||(!c.sheet.Cw||g.V4===c.sheet.Cw.V4&&g.C5===c.sheet.Cw.C5)&&(g.OG=!0,c&&(d=g.caret(),g.text(c.text),g.caret(d)),g.OG=!1)},K1:function(a,c){var d=a.data;d.OG||(!c.sheet.Cw||d.V4===c.sheet.Cw.V4&&d.C5===c.sheet.Cw.C5)&&(d.OG=!0,c&&d.caret(c.caret),d.OG=!1)},M1:function(a){var c,d,k,h,l;a=a.data;if(!a.OG&&(c=a.OC,d=c&&c.getActiveSheet())){if(a.OG=!0,k=d.Jl,h=d.Kl,l=d.Cw,c=d.getCellType(k,h),l){if(a.V4!==l.V4||a.C5!==l.C5)return;d=l.caret();l.text(a.text());l.caret(d)}else l={sheet:d,row:k,col:h,sheetArea:3},c.setEditorValue(d.BF,a.text(),l);a.OG=!1}},N1:function(a){var c,d,k;a=a.data;a.OG||(c=a.OC,d=c&&c.getActiveSheet(),d&&d.isEditing()&&(k=d&&d.Cw,(!k||a.V4===k.V4&&a.C5===k.C5)&&(a.OG=!0,k&&(k.caret(a.caret()),a.S1()),a.OG=!1)))},ad:function(a){var c,d,k=this;k.T1=!1;k.U1=!1;k.MH=!1;k.W0=-1;k.i1=[];k.g1=!0;k.h1=!0;k.V1=!0;c=n("div");c.className="gcsj-func-ac-popup";c.style.display="none";c.setAttribute("gcUIElement","gcFuncACPopup");a.insertBefore(c,null);k.Z0=c;k.R1=!1;d=n("div");d.className="gcsj-func-help-popup";d.style.display="none";d.setAttribute("gcUIElement","gcFuncHelpPopup");a.insertBefore(d,null);k.$0=d;k.W1=!1;r(c).bind("mouseover",function(){k.V1=!1}).bind("mouseout",function(){k.V1=!0});r(d).bind("mouseover",function(){k.V1=!1}).bind("mouseout",function(){k.V1=!0});r(c).bind("scroll",function(){k.X1&&clearTimeout(k.X1);k.X1=setTimeout(function(){k.qo&&k.qo.focus()},100)});c=n("div");c.style.display="none";c.setAttribute("gcUIElement","gcFuncHelpDiv");a.insertBefore(c,null);k._0=c;k.OC=null;k.OG=!1;k.Q1=!1;k.O0=!1},N0:function(a){var c,d,k;a&&(c=this,(c.d1(a)||c.U0(a))&&(d=r(a),c.qo&&c.X0(),c.qo=a,h&&h.msie?(k=10>parseInt(h.version,10),c.U0(a)||k?(c.Fu("focus",function(){d.data("text-before",c.text())}),c.Fu("click",function(){d.focus()}),["input","keydown","keyup","cut","paste"].forEach(function(a){c.Fu(a,function(){c.Y1()})})):c.Fu("input",function(){c.Z1()})):c.Fu("input",function(){c.Z1()}),c.Fu("keydown",function(a){var d,f,g=a.ctrlKey,k=a.shiftKey,e=a.altKey,b=a.metaKey,h=a.keyCode;c.U1=!1;!(g||k||e||b)&&c.R1&&(40===h?(c._1(1),m(a)):38===h?(c._1(-1),m(a)):9===h&&(c.a2(),m(a)));27===h&&c.close();c.b2(a);c.V4&&(d=c.OC.getActiveSheet(),d.mm.LH(a)&&(f=d.Cw,f&&f.MH&&f.NH()))}),c.Fu("keyup",function(a){if(c.U1&&h&&h.qtMode){var f=c.caret();d.data("caret-before")!==f&&(d.data("caret-before",f),c.Wq("CaretChanged",{}),c.c2(),c.R1||c.S1())}c.b2(a)}),c.Fu("focus",function(a){h&&h.mozilla&&!c.qo.innerText&&(c.qo.innerText="");c.b2(a);c.V4&&c.D5&&(c.E5=!0,c.j5())}),c.Fu("blur",function(){c.V1&&c.close();c.V4&&(c.H5(),c.E5=!1)}),c.Fu("mousedown",function(){c.E5=!0;c.O1()}),c.Fu("mouseup",function(){c.UF()}),c.Fu("click",function(a){var d;c.MH&&c.NH();(d=(d=(d=c.OC)&&d.getActiveSheet())&&d.Cw)&&d.MH&&(d.V4||d.NH());c.b2(a)}),c.Fu("compositionstart",function(){c.T1=!0}),c.Fu("compositionend",function(){c.T1=!1;h.edge&&c.Y1()})))},X0:function(){var a,c=this.qo;c&&(a=r(c),a.removeData("text-before"),a.removeData("caret-before"),this.nu(),this.unbindAll(),this.V4&&(r(this.cga).empty(),this.cga=null),this.qo=null)},Y1:function(){var a=r(this.qo),c=this.text();a.data("text-before")!==c&&(this.T1||a.data("text-before",c),this.Z1())},b2:function(a){h&&h.msie?setTimeout(function(a,c){return function(){a.d2(a,c)}}(this,a),10):this.d2(this,a)},d2:function(a,c){var d,g,h,l,m=c.keyCode,n=37===m||39===m||36===m||35===m||34===m||33===m||9===m||13===m;(a.g1||(n=n||38===m||40===m),d=void 0!==c.button,n||d)&&(g=a.qo,h=r(g),l=a.b1(g),l.start===l.end)&&(d=l.end,h.data("caret-before")!==d&&(h.data("caret-before",d),a.Wq("CaretChanged",{}),a.S1()))},e2:function(){return this.OC?this.OC.getActiveSheet().Jl:void 0},f2:function(){return this.OC?this.OC.getActiveSheet().Kl:void 0},a1:function(){if(this.OC)return this.OC.getActiveSheet()},T0:function(a){var c,d,k=[];return a&&"\x3d"===a[0]?(c=new L.Parser,d=c.parseReferenceExpressionInfos(a,this.a1(),this.e2(),this.f2(),!0),this.i2(d)):(k.push({text:a,type:17}),k)},Z1:function(){var a,c=this.qo,d=r(c);this.U1=!0;this.S0=this.T0(this.text());this.U0(c)?this.T1||(a=this.caret(),this.V0(this.S0),this.Wq("TextChanged",{type:"input"}),this.caret(a)):this.Wq("TextChanged",{type:"input"});a=this.caret();d.data("caret-before")!==a&&(d.data("caret-before",a),this.Wq("CaretChanged",{}));this.c2();this.R1||this.S1()},j2:function(){return G.CultureManager.q4().NumberFormat},h2:function(){var a=this.j2();return a&&a.arrayGroupSeperator||";"},l2:function(){var a=this.j2();return a&&a.arrayListSeparator||","},w1:function(){var a=this.j2();return a&&a.listSeparator||","},g2:function(){var a=this.j2();return a&&a.numberDecimalSeparator||"."},i2:function(a){var c,d,k,h,l=[],m=[],n=this.h2(),p=this.w1(),e=this.l2(),b=!1;for(c=0;c<a.length;c++)0<c&&c<a.length-1&&";"===a[c-1].text&&","===a[c].text&&"ARRAYROW"===a[c+1].text||(d=a[c],k=this.m2(d,m),h=d.text,2===k?l.push({text:h,type:k}):b&&8===k&&","===h?l.push({text:e,type:9}):b&&8===k&&";"===h?l.push({text:n,type:10}):8===k?l.push({text:p,type:k}):3===k?("ARRAY"===h&&(b=!0),l.push({text:"{",type:3})):4===k?"ARRAY"===h?(b=!1,l.push({text:"}",type:4})):l.push({text:h,type:4}):6===k?l.push({text:")",type:k}):13===k?l.push({text:G.o.nb(h),type:k,ranges:d.ranges,allowDrag:d.canDrag}):null!==k&&l.push({text:h,type:k,ranges:d.ranges,allowDrag:d.canDrag}));return l},m2:function(a,c){var d,g=a.type,h=a.subType,l=a.text,m=a.value;if(1===g){if(1===h)return"ARRAY"===l||"ARRAYROW"===l?(c.push(3),3):(c.push(5),"("===m.trim()?5:2);if(2===h){if(")"===m.trim())return 6;if(0<c.length){if(d=c[c.length-1],3===d)return c.pop(),4;if(5===d)return c.pop(),6}}if("\x3d"===m.trim())return 1}else if(3===g){if(0===h)return 8}else{if(5===g||6===g||4===g)return 7;if(0===g)return 7===h||0===h?11:5===h?12:4===h?13:3===h?14:6===h?16:14;if(7===g)return 15}return 17},z1:function(){var a,c,d,h=this.qo,l=this.S0;if(this.d1(h)){a="";c=l&&l.length;for(d=0;d<c;d++)a+=l[d].text;h.value=a}else this.U0(h)&&this.V0(l)},d1:function(a){a=a&&a.tagName;return"TEXTAREA"===a||"INPUT"===a},U0:function(a){return a&&"DIV"===a.tagName&&"true"===a.contentEditable},bW:function(a){return a&&"\x3d"===a[0]},Fu:function(a,c,d){var f=this.qo;f&&a&&(a=a.split(/\s+/).join(".gcFormulaTextBoxInternal "),r(f).bind(a+".gcFormulaTextBoxInternal",c,d))},Gu:function(a,c){var d=this.qo;d&&a&&(a=a.split(/\s+/).join(".gcFormulaTextBoxInternal "),r(d).unbind(a+".gcFormulaTextBoxInternal",c))},nu:function(){var a=this.qo;a&&r(a).unbind(".gcFormulaTextBoxInternal")},Wq:function(a,c){var d=this.qo;d&&r(d).trigger(a,c)},s1:function(a){var c,d,h,l,m;if(0>=a)return null;if(c=this.S0,d=c&&c.length,0<d)for(m=h=0;m<d;m++)if(l=c[m],h+=l.text.length,h>=a)return l;return null},n2:function(){var a,c,d=this.OC,h=d&&d.getActiveSheet();if(a=h&&h.Cw){a=a.i1;for(c=0;c<a.length;c++)a[c].isFunc=!0;return a.concat(this.o2(d,h)).concat(this.q2(h))}return this.i1},o2:function(a,c){var d,g=[],h=c.getCustomNames();return h&&r.each(h,function(a,c){g.push({name:c.Cj,description:B().Fbx_CustomName_Description+c.Cj})}),d=a.getCustomNames(),d&&r.each(d,function(a,c){g.push({name:c.Cj,description:B().Fbx_CustomName_Description+c.Cj})}),g},q2:function(a){var c,d=[];if((a=a.tables)&&(c=a.all()))for(a=0;a<c.length;a++)d.push({name:c[a].name(),description:B().Fbx_TableName_Description+c[a].name()});return d},s2:function(c,d){var f,g,h,l;c=a(c);C.Bb(c,"[")&&(c=c.substr(c.lastIndexOf("[")+1),c=C.Gb(c,"@",""));f=[];g=d&&d.length;for(l=0;l<g;l++)h=d[l],0===a(h.name).indexOf(c)&&f.push(h);return f},t2:function(){var a,c,d,h,l,m=this.caret();if(0>=m)return"";if(a=this.S0,c=a&&a.length,0<c)for(l=d=0;l<c;l++){if(h=a[l],d+h.text.length>=m)return h.text.substring(0,m-d);d+=h.text.length}return""},u2:function(){var c,d,f,h,l,m,n=this.caret(),q=this.S0,r=q&&q.length;l=[];var e=0;for(d=0;d<r;d++){if(c=q[d],l.push(c),6===c.type)for(f=0;0<l.length;)if(h=l.pop(),6===h.type&&f++,5===h.type&&f--,0===f){0<l.length&&(h=l[l.length-1])&&2===h.type&&l.pop();break}if(e+=c.text.length,e>=n)break}if(0<l.length){for(f=0;0<l.length;)if(c=l.pop(),8===c.type)f++;else if(2===c.type)break;if(2===c.type)for(c=a(c.text),h=(l=this.n2())&&l.length,d=0;d<h;d++)if(m=l[d],a(m.name)===c)return{func:m,activeParamterIndex:f,isFunc:m.isFunc}}return null},c2:function(){var a,c,d,h,l,m,n=this;l=n.v2();if(n.g1&&n.bW(n.text())&&l&&0<l.length&&!n.MH&&!n.T1&&!n.V4){n.w2();a=n.Z0;8<l.length?(a.style.height="204px",a.style.overflowY="scroll"):(a.style.height="auto",a.style.overflowY="");a="";c=l.length;for(h=0;h<c;h++)d=l[h],a+="\x3cdiv class\x3d'gcsj-func-ac-row'\x3e\x3cdiv class\x3d'gcsj-func-ac-row-name' isFunc\x3d"+d.isFunc+"\x3e"+d.name+"\x3c/div\x3e\x3cdiv class\x3d'gcsj-func-ac-row-description'\x3e"+(d.description||"")+"\x3c/div\x3e\x3c/div\x3e";l=r(n.Z0);l.html(a).show();n.R1=!0;m=l.find(".gcsj-func-ac-row");0<m.length&&(r(m[0]).addClass("gcsj-ac-row-active"),m.bind("mouseover",function(){m.removeClass("gcsj-ac-row-active");r(this).addClass("gcsj-ac-row-active")}),m.bind("click",function(){n.a2()}));n.SH()}else n.z2()},v2:function(){var a,c,d=this.s1(this.caret()),h=d&&d.text,l=[],m=this.S0.indexOf(d);if(d&&14===d.type)return l;if(a=this.A2(m),0<a.length){if(l=l.concat(a).concat(B().B2),C.jb(h,"[")||C.jb(h,"[@"))return l}else l=this.n2();return h=this.t2(),c=[],h&&(c=this.s2(h,l)),c},A2:function(a){var c,d,h,l,m,n,p=[],q=this.S0,e=q&&q.length;if(0>a||a>=q.length)return p;if(c=this.OC,d=c&&c.getActiveSheet(),h={},void 0!==a&&null!==a||(a=e),d&&(l=q[a],m=d.tables,n=m&&m.findByName(C.Ib(l.text,"[")),void 0!==n&&null!==n&&!h[n]))for(h[n]=!0,a=0,c="";null!==c;)c=n.getColumnName(a++),null!==c&&p.push({name:c,description:""});return p},z2:function(){r(this.Z0).hide();this.R1=!1},_1:function(a){var c,d,h=r(this.Z0).find(".gcsj-func-ac-row"),l=h.length;if(0!==l){if(c=0,a)for(d=0;d<l;d++)if(r(h[d]).hasClass("gcsj-ac-row-active")){c=d+a;break}a=r(this.Z0).scrollTop();h.removeClass("gcsj-ac-row-active");d=0;0<l&&(d=h[0].offsetHeight);c=D(c,0);c=A(c,l-1);c=h[c];r(c).addClass("gcsj-ac-row-active");c.offsetTop+c.offsetHeight>r(this.Z0).scrollTop()+r(this.Z0).height()?r(this.Z0).scrollTop(r(this.Z0).scrollTop()+d):c.offsetTop<r(this.Z0).scrollTop()?r(this.Z0).scrollTop(c.offsetTop):r(this.Z0).scrollTop(a)}},a2:function(){var a,c,d,h,l,m,n,q;c=r(this.Z0).find(".gcsj-ac-row-active .gcsj-func-ac-row-name");var t=c.text(),e="true"===c.attr("isFunc");if(t){a=this.caret();d=(c=this.S0)&&c.length;m=l=h=0;for(n=null;m<d&&(n=c[m],l=n.text.length,!(h+l>=a));)m++,h+=l;d=a-h;l=n.text;a=0;C.Bb(l,"[")?(a=l.lastIndexOf("[",d-1),-1===a?(a=l.indexOf("["),-1===a?n.text=t:n.text=t+l.substr(a),a=0):(a++,"@"===l.charAt(a)&&(a+=1),q=l.indexOf("]",d),-1===q&&(q=l.length),n.text=l.substring(0,a)+t+l.substr(q))):n.text=t;e?n.type=2:n.type=11;q=m+1;m=c[q];!e||m&&5===m.type||c.splice(q,0,{text:"(",type:5});this.z2();this.qo.focus();this.z1();this.caret(h+t.length+a+(e?1:0));this.S1();this.S0=this.T0(this.text());this.Wq("TextChanged",{})}},S1:function(){var a,c,d,h,l,m,n,q,t;if(this.R1&&this.z2(),a=this.u2(),null===a||!0!==a.isFunc)return void this.w2();if(c=this.w1(),d=this.h1&&this.bW(this.text())&&a&&!this.MH&&!this.T1,d&&!this.V4){d=a.func;l=(h=d.parameters)&&h.length;a=A(l-1,a.activeParamterIndex);n="";for(q=0;q<l;q++)m=h[q],t=m.name,m.repeatable&&(t+=c+"..."),m.optional&&(t="["+t+"]"),m=q===l-1?"":c+" ",t=q===a?"\x3cspan class\x3d'gcsj-func-help-paramter gcsj-func-help-paramter-active'\x3e"+t+"\x3c/span\x3e"+m:"\x3cspan class\x3d'gcsj-func-help-paramter'\x3e"+t+"\x3c/span\x3e"+m,n+=t;c="\x3cdiv class\x3d'gcsj-func-help-title'\x3e\x3cdiv class\x3d'gcsj-func-help-formula'\x3e\x3cspan class\x3d'gcsj-func-help-formula-name'\x3e"+d.name+"\x3c/span\x3e\x3cspan class\x3d'gcsj-func-help-paramter-paren'\x3e(\x3c/span\x3e"+n+"\x3cspan class\x3d'gcsj-func-help-paramter-paren'\x3e)\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e";d="\x3cdiv class\x3d'gcsj-func-help-section'\x3e\x3cdiv class\x3d'gcsj-func-help-section-title'\x3e"+B().Fbx_Summary+"\x3c/div\x3e\x3cdiv class\x3d'gcsj-func-help-section-content'\x3e"+(d.description||"")+"\x3c/div\x3e\x3c/div\x3e";d="\x3cdiv class\x3d'gcsj-func-help-body'\x3e"+("\x3cdiv class\x3d'gcsj-func-help-section-content'\x3e"+d+"\x3c/div\x3e")+"\x3c/div\x3e";c+=d;r(this.$0).html(c).show();this.W1=!0;this.SH()}else this.w2()},w2:function(){r(this.$0).hide();this.W1=!1},close:function(){this.z2();this.w2()},BH:function(a){if(this.MH)return!1;var c=a.ctrlKey||a.shiftKey||a.altKey||a.metaKey;a=a.keyCode;return this.R1&&!c&&(40===a||38===a||9===a)},SH:function(){var a,c,d,h,l,m,n;c=null;if(this.R1?c=this.Z0:this.W1&&(c=this.$0),c){if(a=r(this.qo),c=r(c),d=q.G0.H0,d&&d.kj)return h=d.kj.getCellRect(d.nT,d.Mk),l=d.f1,void c.css("top",h.y+h.height+l.top).css("left",h.x+l.left);h=a.parent();l=a.outerHeight();"TEXTAREA"===this.qo.tagName&&"gcEditingInput"===a.attr("gcUIElement")&&(h=h.parent(),l=h.outerHeight());d=h.css("top");m=parseFloat(d);isNaN(m)||(d=m);h=h.css("left");"auto"===d&&(d=a.offset().top,h=a.offset().left);a=d+l;l=r(z.body).outerHeight();m=c.outerHeight();a+m>l&&(n=d-m,0<=n&&(a=n));c.css("top",a).css("left",h)}},focus:function(){r(this.qo).focus()},V0:function(a){var c,d,h,l="",m="",n=a&&a.length,p=0;for(d=0;d<n;d++)c=a[d],h="",11===c.type&&(h=" style\x3d'color: "+this.o1(p++)+"'"),l+="\x3cspan"+h+" class\x3d'gcsj-func-color-text'\x3e"+r(this._0).text(c.text).html()+"\x3c/span\x3e",m+=c.text;if(m||this.text())if(a=this.qo,l)a.innerHTML="\x3cspan class\x3d'gcsj-func-color-content'\x3e"+l+"\x3c/span\x3e";else for(;a.firstChild;)a.removeChild(a.firstChild)},e1:function(a,c){var d,g,h,l=r(a).find(".gcsj-func-color-content .gcsj-func-color-text"),m=l.length;if(0<m){c=D(0,c);for(h=0;h<m;h++)if(d=l[h],g=d.textContent,c-=g.length,0>=c)return{node:d,offset:g.length+c};return{node:d,offset:g.length}}return null}},d}();q.FormulaTextBox=H;U.exports=q},function(U,u,l){var d=l(85),J=l(33),R=d.CalcEngine,Q=l(149),K=d.kf;U=d.GC$.extend;var O=Math.max,H=Math.min,I=Q.L0,L=Q.C2;U(d.iI.prototype,{D2:function(d){var l,q,u,A,r,n,w,z,F,c,m,h,a,B,y,t,E=this.kj,H=E.Cw;H&&(l=E.frozenRowCount(),q=E.frozenColumnCount(),u=H.MH,u&&this.E2||(this.E2={anchorRow:-1,anchorCol:-1,leadingRow:-1,leadingCol:-1}),A=E.getRowCount(),r=E.getColumnCount(),n=d.hitTestType,w=d.row,z=d.col,F=this.shift,c=this.ctrl,m=this.E2,h=m.anchorRow,a=m.anchorCol,B=-1,y=-1,0===n?(B=l?E.ar():E.lq,y=q?E.$q():E.qq,t=K(-1,-1,-1,-1),H.v1(L(E,t),F,!c),this.OG=!0):1===n?(B=l?E.ar():E.lq,y=z,t=E.Jx(0,z,A-1,z,!0),F&&0<=a&&(t=E.Jx(0,z,A-1,a,!0)),t=K(-1,t.col,-1,t.colCount),H.v1(L(E,t),F,!c),this.OG=!0):2===n?(B=w,y=q?E.$q():E.qq,t=E.Jx(w,0,w,r-1,!0),F&&0<=h&&(t=E.Jx(w,0,h,r-1,!0)),t=K(t.row,-1,t.rowCount,-1),H.v1(L(E,t),F,!c),this.OG=!0):3===n&&(B=w,y=z,t=E.Jx(w,z,w,z,!0),t=K(t.row,t.col,1,1),F&&0<=h&&0<=a&&(t=E.Jx(w,z,h,a,!0)),H.v1(L(E,t),F,!c),this.OG=!0),this.DG=this.OG,F&&u||(m.anchorRow=B,m.anchorCol=y,m.leadingRow=B,m.leadingCol=y),this.rG={KG:d.rowViewportIndex,MG:d.colViewportIndex,sG:d.hitTestType},this.qG())},F2:function(l){var u,q,F=!1,A=Q.G0.H0;if(A&&A.I0)if(u=A.kj,q=l.Cw,q&&u.setFormula(A.nT,A.Mk,q.text()),u!==l){if(d.Commands.Wx.G2(u),!u.endEdit())return;F=!0}else q&&(q.destroy(),l.Cw=null),A.$b();return F},EG:function(){var d,l=this.rG;l&&this.OG&&(d=l.sG,3===d?this.H2():2===d?this.I2():1===d&&this.J2())},H2:function(){var d,l,q,u,A=this.E2,r=A.anchorRow,A=A.anchorCol,n=this.fH(),w=this.gH();0<=r&&0<=A&&0<=n&&0<=w&&(d=this.kj,l=d.Jx(n,w,r,A,!0),q=L(d,l),q&&(u=d.Cw,u.v1(q,!0,!1)));this.NG()},I2:function(){var d,l,q,u,A=this.E2.anchorRow,r=this.fH();0<=A&&0<=r&&(d=this.kj,l=d.Jx(r,0,A,d.getColumnCount()-1,!0),l=K(l.row,-1,l.rowCount,-1),q=L(d,l),q&&(u=d.Cw,u.v1(q,!0,!1)));this.NG()},J2:function(){var d,l,q,u,A=this.E2.anchorCol,r=this.gH();0<=A&&0<=r&&(d=this.kj,l=d.Jx(0,r,d.getRowCount()-1,A,!0),l=K(-1,l.col,-1,l.colCount),q=L(d,l),q&&(u=d.Cw,u.v1(q,!0,!1)));this.NG()},yH:function(){this.RG();this.rG=null;this.DG=this.OG=!1},iG:function(d){var l,q,u,A,r,n,w,z,F=this.kj,c=F.Cw,m=d.formulaRangeHitInfo;m&&m.inBorder&&c&&(c.MH&&c.NH(),c.close(),l=m.paramRange,q=l&&l.text,q&&(u=I(F,q),u&&(A=F.Tq(u),r=d.row,n=d.col,r<A.row&&(r=A.row),r>=A.row+A.rowCount&&(r=A.row+A.rowCount-1),n<A.col&&(n=A.col),n>=A.col+A.colCount&&(n=A.col+A.colCount-1),w=r-A.row,z=n-A.col,this.OG=!0,this.FG=!0,this.K2={paramRange:l,fromRange:u,rowOffset:w,colOffset:z},this.rG={KG:d.rowViewportIndex,MG:d.colViewportIndex,sG:d.hitTestType},this.qG())))},GG:function(){var d,l,q,u,A,r,n,w,z,C,c,m,h,a,B,y,t,E,I;this.OG&&this.FG&&(d=this.fH(),l=this.gH(),0<=d&&0<=l&&(q=this.K2,u=q.fromRange,A=q.rowOffset,r=q.colOffset,n=q.toRow,w=q.toCol,d===n&&l===w||(q.toRow=d,q.toCol=l,z=this.kj,C=z.getRowCount(),c=z.getColumnCount(),m=u.row,h=u.col,a=u.rowCount,B=u.colCount,y=0>m?-1:O(0,H(C-a,d-A)),t=0>h?-1:O(0,H(c-B,l-r)),E=L(z,K(y,t,a,B)),E&&(I=z.Cw,I.D1(q.paramRange.index,E)))),this.NG())},zH:function(){this.RG();this.FG=this.OG=!1;this.K2=null},jG:function(d){var l,q,u,A,r,n,w;A=this.kj;r=A.Cw;if((n=d.formulaRangeHitInfo)&&r&&(r.MH&&r.NH(),l=n.paramRange,q=l&&l.text,l&&q&&(u=I(A,q)))){if(A=u.row,r=0>u.row?-1:u.row+u.rowCount-1,q=u.col,u=0>u.col?-1:u.col+u.colCount-1,n.inTopLeft)n=r,w=u;else if(n.inTopRight)n=r,w=q,q=u;else if(n.inBottomLeft)n=A,w=u,A=r;else{if(!n.inBottomRight)return;n=A;w=q;A=r;q=u}this.HG=this.OG=!0;this.L2={paramRange:l,anchorRow:n,anchorCol:w,toRow:A,toCol:q};this.rG={KG:d.rowViewportIndex,MG:d.colViewportIndex,sG:d.hitTestType};this.qG()}},kG:function(d,l){var q=d.Cw;return q&&q.M0()?(this.D2(l),!0):!!this.F2(d)},IG:function(){var d,l,q,u,A,r,n,w,z,C,c,m,h,a,B,y,t,E;this.OG&&this.HG&&(d=this.fH(),l=this.gH(),0<=d&&0<=l&&(q=this.L2,u=q.anchorRow,A=q.anchorCol,r=q.toRow,n=q.toCol,d===r&&l===n||(q.toRow=d,q.toCol=l,w=this.kj,z=w.getRowCount(),C=w.getColumnCount(),c=0>u?z-1:u,m=0>A?C-1:A,h=H(c,d),a=H(m,l),B=O(c,d)-h+1,y=O(m,l)-a+1,0===h&&B===z&&(h=-1,B=-1),0===a&&y===C&&(a=-1,y=-1),t=L(w,K(h,a,B,y)),t&&(E=w.Cw,E.D1(q.paramRange.index,t)))),this.NG())},AH:function(){var d,l;this.RG();this.HG=this.OG=!1;this.L2=null;d=this.kj.Cw;d.V4&&(d.W0=1,l=d.text().lastIndexOf(",",d.caret()),-1!==l&&(d.W0=l+1))},vr:function(d,l,q){var u,A,r,n,w,z,F,c,m,h,a=this.kj,B=a.Cw,B=B&&B.l1();if(!B||0===B.length||(u=d.rowViewportIndex,A=d.colViewportIndex,this.qH(u,A,l,q)))return null;for(d=B.length-1;0<=d;d--)if(r=B[d],!1!==r.allowDrag&&(z=Q.G0.H0,(!z||!z._text)&&(n=I(a,r.text)))){if((w=a.getRangeRect(u,A,n),F=w.x-2,c=w.x+w.width+1-5,m=w.y-2,h=w.y+w.height+1-5,F+5<=l&&l<c&&(m+1<=q&&q<=m+3||h+1<=q&&q<=h+3))||m+5<=q&&q<h&&(F+1<=l&&l<=F+3||c+1<=l&&l<=c+3))return{paramRange:r,inBorder:!0};if(c<=l&&l<c+5&&h<=q&&q<h+5)return{paramRange:r,inBottomRight:!0};if(F<=l&&l<F+5&&h<=q&&q<h+5)return{paramRange:r,inBottomLeft:!0};if(c<=l&&l<c+5&&m<=q&&q<m+5)return{paramRange:r,inTopRight:!0};if(F<=l&&l<F+5&&m<=q&&q<m+5)return{paramRange:r,inTopLeft:!0}}return null},ly:function(){var d,l,q,u,A,r,n,w,z,C,c,m;A=this.kj;var h=A.Cw;if(h)if(d=A.Jl,l=A.Kl,q=A.parent,u=q&&1===q.options.referenceStyle,A=new R.SheetParserContext(A,u,J.pf(d,l)),r=new J.Parser,h.MH)for(q=h.u1(),u=0;u<q.length;u++){n=q[u];try{w=r.parse(A,n.text)}catch(a){w=null}w&&1===w.type&&(z=!w.sf,this.M2(w,d,l,z,z),h.D1(n.index,r.unparse(A,w)))}else if(n=h.m1(),n){try{w=r.parse(A,n.text)}catch(a){w=null}w&&(1!==w.type||w.sf?1===w.type&&(this.N2(w,d,l),h.D1(n.index,r.unparse(A,w))):(C=n.textOffset+n.text.lastIndexOf(":"),c=h.caret()<=C,c?(this.M2(w,d,l,!0,!1),m=r.unparse(A,w),h.D1(n.index,m),h.caret(n.textOffset+m.lastIndexOf(":"))):(this.M2(w,d,l,!1,!0),h.D1(n.index,r.unparse(A,w)))))}},M2:function(d,l,q,u,A){var r;r=d.rowRelative;var n=d.columnRelative;u&&(r&&n?(d.rowRelative=!1,d.columnRelative=!1,d.row+=l,d.column+=q):r?(d.columnRelative=!0,d.column-=q):n?(d.rowRelative=!0,d.columnRelative=!1,d.row-=l,d.column+=q):(d.columnRelative=!0,d.column-=q));u=d.endRowRelative;r=d.endColumnRelative;A&&(u&&r?(d.endRowRelative=!1,d.endColumnRelative=!1,d.endRow+=l,d.endColumn+=q):u?(d.endColumnRelative=!0,d.endColumn-=q):r?(d.endRowRelative=!0,d.endColumnRelative=!1,d.endRow-=l,d.endColumn+=q):(d.endColumnRelative=!0,d.endColumn-=q))},N2:function(d,l,q){var u=d.rowRelative,A=d.columnRelative;u&&A?(d.rowRelative=!1,d.columnRelative=!1,d.row+=l,d.column+=q):u?(d.columnRelative=!0,d.column-=q):A?(d.rowRelative=!0,d.columnRelative=!1,d.row-=l,d.column+=q):(d.columnRelative=!0,d.column-=q)}})},function(U,u,l){function d(d){var l=d.mm;return d.Cw.MH?l.E2:l.E2={anchorRow:d.Jl,anchorCol:d.Kl,leadingRow:d.Qr,leadingCol:d.Rr}}function J(l,u,q,D,A){var r,n,w,z,C,c,m,h,a,B,y,t,F=l.Cw;z=(z=l.parent)&&z.options;if(F&&F.M0()&&z&&z.allowUserEditFormula&&z.enableFormulaTextbox){switch(r=d(l),n=r.anchorRow,w=r.anchorCol,z=r.leadingRow,C=r.leadingCol,L(D)&&(D=n),L(A)&&(A=w),c=l.mm,u){case 3:y=l.iy(D,A,q,z);break;case 4:y=l.hy(D,A,q,z);break;case 1:y=l.HJ(D,A,q,C);break;case 2:y=l.LJ(D,A,q,C);break;case 5:y=l.OJ();break;case 6:y=l.NJ()}y&&(m=y.row,h=y.col,a=y.leadingCellRow?y.leadingCellRow:m,B=y.leadingCellCol?y.leadingCellCol:h,l.IJ(m,h)&&(r.anchorRow=m,r.anchorCol=h,r.leadingRow=a,r.leadingCol=B,t=O(c.kj,new K(m,h,1,1)),t&&F.v1(t,!1,!0),0<=m&&0<=h&&l.Yq(m,h)))}}var R;U=l(85);var Q=l(149);u=U.Commands;var K=U.kf,O=Q.C2,H=Q.L0,I=Q.K0,L=l(26).j.Fa;u.Ox=function(d,l){if(d){if(2===d.Px)return!1;var q=d.Cw;return q&&q.M0()?(J(d,l,!1),!0):(q&&(d=R.O2(d)),d.yx(l,!1),!0)}return!1};u.Qx=function(d,l,q,u){if(d){if(2===d.Px)return!1;var A=d.Cw;return A&&A.M0()?(J(d,l,!1,q,u),!0):(A&&(d=R.O2(d)),d.yx(l,!1,q,u),!0)}return!1};u.Rx=function(l,u,q){if(l){if(2===l.Px)return!1;var D=l.Cw;if(D&&D.M0()){var A,r,n,w,z,C,c,m,D=l.Cw,h=l.parent,h=h&&h.options;D&&D.M0()&&h&&h.allowUserEditFormula&&h.enableFormulaTextbox&&(A=l.mm,r=d(l),n=r.anchorRow,w=r.anchorCol,D.MH?(C=D.m1(),z=H(l,C.text)):z=K(n,w,1,1),z&&(c=l.UJ(z,u,q,n,w),m=O(A.kj,c),m&&D.v1(m,!0,!1)));u=!0}else u=(D&&(l=R.O2(l)),!!l.endEdit()&&(l.Sx(u,q),!0));return u}return!1};R=function(){function l(){}return l.fv=function(d){return l.O2(d)},l.Xx=function(d){return l.O2(d)},l.Yx=function(d){return l.O2(d)},l.O2=function(d){var q=Q.G0.H0;return q&&q._text&&(d=q.kj,l.G2(d)),d},l.G2=function(d,l){var q,u;void 0===l&&(l=!0);q=d.parent;(u=Q.G0.H0)&&u._text&&q.hw(d,l)},l.Zx=function(u,q,D){var A,r,n=!1,w=u.Cw;return w&&w.M0()?(A=d(u),A.anchorRow=q,A.leadingRow=q,r=O(u,K(A.anchorRow,A.anchorCol,1,1)),r&&w.v1(r,!1,!0),u.mq(D),n=!0):w&&(u=l.O2(u)),{sheet:u,r:n}},l._x=function(u,q,D){var A,r,n=!1,w=u.Cw;return w&&w.M0()?(A=d(u),A.anchorRow=q,A.leadingRow=q,r=O(u,K(A.anchorRow,A.anchorCol,1,1)),r&&w.v1(r,!1,!0),u.mq(D),n=!0):w&&(u=l.O2(u)),{sheet:u,r:n}},l.ay=function(d){var q=!1,u=d.Cw,A=d.Jl,r=d.Kl;return u&&u.M0()?(u.MH||(d.mm.E2={anchorRow:A,anchorCol:r,leadingRow:d.Qr,leadingCol:d.Rr}),J(d,5,!1,A,r),q=!0):u&&(d=l.O2(d)),{sheet:d,r:q}},l.by=function(d){var q=!1,u=d.Cw,A=d.Jl,r=d.Kl;return u&&u.M0()?(u.MH||(d.mm.E2={anchorRow:A,anchorCol:r,leadingRow:d.Qr,leadingCol:d.Rr}),J(d,6,!1,A,r),q=!0):u&&(d=l.O2(d)),{sheet:d,r:q}},l.ey=function(d){return l.O2(d)},l.gy=function(d){return l.O2(d)},l.jy=function(d){var q,u,A=Q.G0.H0;Q&&A&&A._text&&(d=A.kj,q=A.nT,u=A.Mk,l.G2(d,!1),I(d),d.Sr(q,u,void 0,void 0,1))},l}();U.Commands.Wx=R},function(U,u,l){var d=l(85).GC$,J=l(149),R=function(){function l(){this.Mk=this.nT=-1;this._text="";this.Q2=-1;this.kj=null;this.MH=!1;this.R2=-1;this.f1=this.OC=this.I0=null}return l.prototype={constructor:l,$b:function(){this.S2();this.Mk=this.nT=-1;this._text="";this.Q2=-1;this.MH=!1;this.R2=-1;this.f1=this.OC=this.kj=null},S2:function(){var l,u;this.kj.Js||(l=this.kj.getCellType(this.nT,this.Mk),u={sheet:this.kj,row:this.nT,col:this.Mk,sheetArea:3},this.I0&&this.I0.firstChild&&l.deactivateEditor(this.I0.firstChild.firstChild,u));d(this.I0).remove();this.I0=null},T2:function(d){d.Cw&&(this._text=d.Cw.text(),this.nT=d.getActiveRowIndex(),this.Mk=d.getActiveColumnIndex(),this.Q2=d.Cw.caret(),this.MH=d.Cw.MH,this.R2=d.Cw.C1(),this.V4=d.Cw.V4,this.C5=d.Cw.C5,this.kj=d,this.OC=d.parent,this.f1=d.mm.bG())},VF:function(d){d.Cw&&(this._text=d.Cw.text(),this.Q2=d.Cw.caret(),this.MH=d.Cw.MH,this.R2=d.Cw.C1())},U2:function(d){d.Cw&&(d.Cw.V4=this.V4,d.Cw.C5=this.C5,d.Cw.text(this._text),d.Cw.caret(this.Q2),this.MH&&(d.Cw.B1(),d.Cw.C1(this.R2)))},V2:function(d){var l,u=d.oldSheet;l=d.newSheet;var I=u.Cw;if(I)if(I.close(),(!this.kj||this.kj.Js)&&I.M0()||this.C5!==I.C5){this.T2(u);l=u.getValue(u.Jl,u.Kl,3);u.suspendEvent();try{if(!u.endEdit(!0))return}finally{u.resumeEvent()}u.setValue(u.Jl,u.Kl,l,3,!0);u.Px=1;d.needTriggerSheetChange=!1}else this._text&&this.kj===l?(this.VF(u),I.destroy(),u.Cw=null,d.needTriggerSheetChange=!1):this._text&&this.kj!==l&&(this.VF(u),I.destroy(),u.Cw=null,d.needTriggerSheetChange=!1)},W2:function(d){var l,u=d.oldSheet;d=d.newSheet;d.Js||(this.I0&&""===this._text&&(u.GJ(),this.$b()),this._text&&this.kj===d?(d.Px=0,d.Sr(this.nT,this.Mk,void 0,void 0,0),d.suspendEvent(),this.V4?(l=J.W4(d.parent.qo),J.J0(d,l),d.Px=2,d.yl.uH()):d.startEdit(!1),d.resumeEvent(),this.U2(d),this.VK(d,this.nT,this.Mk),u.GJ(),this.$b()):this._text&&!this.I0?(d.Px=1,u.Px=1,this.X2(d),d.EJ()):this._text&&this.kj!==d&&(d.Px=1,u.Px=1,this.X2(d),u.GJ(),d.EJ()))},X2:function(l){var u,H,I,K,F,G,q,D,A,r,n=this.kj;n.Js||(u=this.nT,H=this.Mk,I=n.getCellType(u,H),K={sheet:n,row:u,col:H,sheetArea:3,canvasOffset:this.f1},F=I.isImeAware(K),F&&(l.Px=1,G=I.a5(K),this.I0&&this.S2(),this.I0=G,d(G).css("position","absolute"),q=n.getCellRect(u,H),d(G).attr("id","across"),D=n.getActualStyle(u,H),I.d5(G,D,q,K),A=this.OC&&this.OC.getHost()||document.body,A.insertBefore(G,null),r=I.getEditingElement(),this.V4&&d(G).css({display:"none"}),J.J0(l,r),G.firstChild&&!this.V4&&I.focus(G.firstChild.firstChild),this.U2(l),I.g5(G,D,q,K)))},VK:function(d,l,u){var H,J=d.getCellType(l,u),F=d.BF,G=d.am(),q=d.getActualStyle(l,u),D=d.getCellRect(l,u);D&&0<D.width&&0<D.height&&D.x>=G.kt&&D.y>=G.nt&&D.x+D.width<=G.lt+G.js&&D.y+D.height<=G.ot+G.gs&&(H={sheet:d,row:l,col:u,sheetArea:3},F&&F.parentNode&&J.g5(F.parentNode.parentNode,q,D,H,!0))}},l}();u=function(){function d(){}return d.Q0=function(d,l){J.G0.H0||(J.G0.H0=new R);J.G0.H0.V2(l)},d.R0=function(d,l){J.G0.H0.W2(l)},d}();J.G0=u;U.exports=J},function(U,u,l){U=l(85);var d=l(26),J=l(149);l=U.GC$.extend;var R=d.u,Q=J.L0;l(U.oJ.prototype,{uH:function(){var d,l,u=this.kj;0<u.Xq||(d=u.am(),l=this.bm(),this.Mx(d.x,d.y,d.width,d.height),this.Pw(l))}});U.Worksheet.$n("formulatextboxrender",{paintAdornment:function(l){var u,H,I=l.ctx,K=l.clipRect,F=this.yl,G=this.am();if(this.Cw)for(l=0;2>=l;l++)for(H=0;2>=H;H++)if((u=G.Ft(l,H))&&0!==u.width&&0!==u.height){var q=F;u=I;var D=l,A=H,r=K,n=void 0,w,z,C,c,m,h,a=void 0,B=void 0,y,t,E=void 0,M,p=void 0,g=void 0,f=void 0,k=void 0,x,U=void 0,P=q.kj;M=P.mm;var V=P.Cw,Z=V&&V.l1(),e=Z&&Z.length;if(!(0>=e)&&(n=q.VI(D,A,r))){u.save();u.rect(n.x,n.y,n.width,n.height);u.clip();u.beginPath();r=[];w=M.isFormulaRangeHoving;z=M.tH;C=M.FG;c=M.K2;m=M.HG;h=M.L2;for(M=0;M<e;M++)if(a=Z[M],B=a.text,y=a.ranges&&0<a.ranges.length?a.ranges:[Q(P,B)]){if(p=J.G0.H0,p&&p.kj)if(R.Bb(B,"!")){if(g=R.Ib(B,"!"),P.name()!==g&&"'"+P.name()+"'"!==g)continue}else if(f=R.Ib(B,"["),k=P.tables,!(P.getCustomNames()[f]||k&&k.findByName(f)))continue;t=q.XI(D,A,y,n);for(x=0;x<t.length;x++)(y=t[x])&&0<y.width&&0<y.height&&(E=V.o1(M),V.t1(a)?(w&&z.paramRange.index===M&&(u.beginPath(),u.lineWidth=2,u.strokeStyle=E,u.rect(y.x+1,y.y+1,y.width-3,y.height-3),u.stroke()),q.fJ(u,y,E)):w&&z.paramRange.index===M||C&&c.paramRange.index===M||m&&h.paramRange.index===M?(u.beginPath(),u.lineWidth=2,u.strokeStyle=E,u.rect(y.x+1,y.y+1,y.width-3,y.height-3),u.stroke()):(u.beginPath(),u.lineWidth=2,u.strokeStyle=E,u.rect(y.x,y.y,y.width-1,y.height-1),u.stroke()),V.n1(a)&&(U=d.pc.ec(E),U.a=.1,u.beginPath(),u.fillStyle=d.pc.bc(U),u.fillRect(y.x+1,y.y+1,y.width-3,y.height-3)),r.push({rect:y,color:E,allowDrag:a.allowDrag}))}if(0<r.length)for(q=r.length,M=0;M<q;M++)y=r[M].rect,E=r[M].color,D=y.x-2,A=y.x+y.width+1-5,n=y.y-2,y=y.y+y.height+1-5,!1!==r[M].allowDrag&&(p=J.G0.H0,p&&p._text||(u.beginPath(),u.fillStyle=E,u.fillRect(D,n,5,5),u.fillRect(A,n,5,5),u.fillRect(D,y,5,5),u.fillRect(A,y,5,5)));u.beginPath();u.restore()}}}})},function(U,u){function l(d,l){return{name:d,description:l}}U.exports={Fbx_Summary:"Summary",Fbx_TableName_Description:"Table name for ",Fbx_CustomName_Description:"Custom name for ",B2:[l("#All","Returns the entire contents of the table, or specified table columns including column headers, data and total rows."),l("#Data","Returns the data cells of the table or specified table columns."),l("#Headers","Returns the columns headers for the table, or specified table columns."),l("#Totals","Returns the total rows for the table or specified table columns."),l("@","This row.")]}}]);
|