@grapecity-software/spread-common 17.1.1 → 17.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* SpreadJS Library 17.1.
|
|
3
|
+
* SpreadJS Library 17.1.3
|
|
4
4
|
*
|
|
5
5
|
* Copyright(c) GrapeCity Software inc. All rights reserved.
|
|
6
6
|
*
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* https://www.grapecity.com.cn/developer/spreadjs
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
var GC;(()=>{var r,n,t;function i(t){var e,e,e=n[t];return void 0!==e||(e=n[t]={exports:{}},r[t](e,e.exports,i)),e.exports}r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var a;!function(){"use strict";var r,n,t,e,i;function o(t){var e,e,e=n[t];return void 0!==e||(e=n[t]={exports:{}},r[t].call(e.exports,e,e.exports,o)),e.exports}r={"./src/common/common.entry.ts":function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.B3=e.rbush=e.CultureManager=e.CultureInfo=e.zf=e.$T=e.st=e.ct=e.Uf=e.lt=e.ft=void 0,o=r("./src/common/util/colorhelper.ts"),Object.defineProperty(e,"ft",{enumerable:!0,get:function(){return o.ft}}),a=r("./src/common/util/types.ts"),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return a.lt}}),u=r("./src/common/util/arrayhelper.ts"),Object.defineProperty(e,"Uf",{enumerable:!0,get:function(){return u.Uf}}),s=r("./src/common/util/datetimehelper.ts"),Object.defineProperty(e,"ct",{enumerable:!0,get:function(){return s.ct}}),Object.defineProperty(e,"B3",{enumerable:!0,get:function(){return s.getSR}}),f=r("./src/common/util/numberhelper.ts"),Object.defineProperty(e,"st",{enumerable:!0,get:function(){return f.st}}),y=r("./src/common/util/regexhelper.ts"),Object.defineProperty(e,"$T",{enumerable:!0,get:function(){return y.$T}}),c=r("./src/common/util/stringhelper.ts"),Object.defineProperty(e,"zf",{enumerable:!0,get:function(){return c.zf}}),m=r("./src/common/util/rbush.ts"),Object.defineProperty(e,"rbush",{enumerable:!0,get:function(){return m.rbush}}),M=r("./src/common/util/common.ts"),Object.defineProperty(e,"HandleExcelSpecialDate",{set:function(t){M.HandleExcelSpecialDate=t},get:function(){return M.HandleExcelSpecialDate}}),i(r("./src/common/util/common.ts"),e),h=r("./src/common/culture/cultureInfo.ts"),Object.defineProperty(e,"CultureInfo",{enumerable:!0,get:function(){return h.CultureInfo}}),Object.defineProperty(e,"CultureManager",{enumerable:!0,get:function(){return h.CultureManager}}),i(r("./src/common/util/functionhelper.ts"),e)},"./src/common/culture/cultureInfo.ts":function(j,t,e){var r,n,u,a,i,f,o,s,y,n,c,e,m,M,h,d,E,e,n,l,r,v,g,p,F,R,b,n,_,w,D,H;function N(t){return t.split("\xa0").join(" ").toUpperCase()}function k(t){for(var e,r,n,e=[],r=0,n=t.length;r<n;r++)e[r]=N(t[r]);return e}function $(t,e,r){var t=N(t),e=e.indexOf(t);return e=-1===e?r.indexOf(t):e}function S(t){if(t){var t=t.charCodeAt(0);if(11904<=t&&t<12032||8208<=t&&t<8252||12288<=t&&t<40960||43360<=t&&t<43392||44032<=t&&t<55215||63744<=t&&t<64256||65280<=t&&t<65535)return!0}return!1}function I(t,e,r){var n;return" "===t||r&&"\u3000"===t?0:(n=r&&r(t),e.lineBreakingForbidStart&&-1!==e.lineBreakingForbidStart.indexOf(t)?!r||n?7:6:e.lineBreakingForbidEnd&&-1!==e.lineBreakingForbidEnd.indexOf(t)?!r||n?5:4:n?2:e.lineBreakingChar&&-1!==e.lineBreakingChar.indexOf(t)?3:1)}function x(t,e,r){var n,i,o,a,u,s;if(!t)return[];for(n=[t[0]],o=I(t[i=0],e,r),a=1;a<t.length;a++)u=I(t[a],e,r),h[s=o+""+u]&&n[++i]===f&&(n[i]=""),n[i]+=t[a],o=u;return n}function P(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\xa4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],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:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],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"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",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",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],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"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.predefinedFormats={},this.TimelineDateOrder=[M.quarterOrMonth,M.date,M.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]}}function C(){}function B(){var t,e,t=_.call(this)||this;return T.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),T.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!(e=["MMM yyyy","MMMM yyyy"]),e]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"}},t}function L(){var t,e,r,n,i,n,t=w.call(this)||this,e,r;return T.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\u62fe","\u5104","\u9621","\u767e","\u62fe","\u842c","\u9621","\u767e","\u62fe",""],numbers:["\u3007","\u58f1","\u5f10","\u53c2","\u56db","\u4f0d","\u516d","\u4e03","\u516b","\u4e5d"]},3:{letters:o,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},{Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"}]),T.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],n=["1","2","3","4","5","6","7","8","9","10","11","12",""],n,"\u5348\u524d",!(n=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"]),["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],i,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd",["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",n,"ggge/mmmm/d\u65e5"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.QPt=['gggee"\u5e74"MM"\u6708"dd"\u65e5','gggee"\u5e74"M"\u6708"d"\u65e5','ge"\u5e74"M"\u6708"d"\u65e5','ggge"\u5e74"M"\u6708"d"\u65e5','ggee"\u5e74"M"\u6708"d"\u65e5','gge"\u5e74"M"\u6708"d"\u65e5'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\xa5-411]#,##0_);[Red]([$\xa5-411]#,##0)","[$\xa5-411]#,##0_);([$\xa5-411]#,##0)","[$\xa5-411]#,##0;[Red][$\xa5-411]#,##0","[$\xa5-411]#,##0;-[$\xa5-411]#,##0","[$\xa5-411]#,##0;[Red]-[$\xa5-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"\u6642"mm"\u5206";@','h"\u6642"mm"\u5206"ss"\u79d2";@'],Special:{"\u90f5\u4fbf\u756a\u53f7":"[<=999]000;[<=9999]000-00;000-0000","\u96fb\u8a71\u756a\u53f7\uff08\u6771\u4eac)":"[<=99999999]####-####;(00) ####-####","\u6b63\u8ca0\u8a18\u53f7 \uff08+ = \u25b3; - = \u25b2)":'"\u25b3" #,##0;"\u25b2" #,##0',"\u6f22\u6570\u5b57\uff08\u5341\u4e8c\u4e07\u4e09\u5343\u56db\u767e\uff09":"[DBNum1][$-411]General","\u5927\u5b57 (\u58f1\u62fe\u5f10\u842c\u53c2\u9621\u56db\u767e)":"[DBNum2][$-411]General","\u5168\u89d2 (\uff11\uff12\uff13\uff14\uff15)":"[DBNum3][$-411]0","\u5168\u89d2 \u6841\u533a\u5207\u308a\uff08\uff11\uff12,\uff13\uff14\uff15\uff09":"[DBNum3][$-411]#,##0"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},t.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d","\u300d","\u3002","\u3001","\u30fc"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b","\u300c","$","\uff04","\\","\uffe5"],lineBreakingStrategy:function(t,e){return x(t,e,S)}},t}function A(){var t,e,r,n,i,n,t=D.call(this)||this,e,r;return T.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"\xa5",!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",""],numbers:["\u25cb","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u4edf","\u4f70","\u62fe","\u4ebf","\u4edf","\u4f70","\u62fe","\u4e07","\u4edf","\u4f70","\u62fe",""],numbers:["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"]},3:{letters:o,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},{Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"}]),T.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],n=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],n,"\u4e0a\u5348",!(n=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"]),["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i=["\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",""],i,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d",["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",n]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(t,e){return t.localeCompare(e,"zh")},t.predefinedFormats={Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$\xa5-804]#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]#,##0","[$\xa5-804]#,##0;[$\xa5-804]-#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"\u5e74"m"\u6708"d"\u65e5";@','[DBNum1][$-804]yyyy"\u5e74"m"\u6708";@','[DBNum1][$-804]m"\u6708"d"\u65e5";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"\u65f6"mm"\u5206";@','h"\u65f6"mm"\u5206"ss"\u79d2";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2";@','[DBNum1][$-804]h"\u65f6"mm"\u5206";@','[DBNum1][$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@'],Special:{"\u90ae\u653f\u7f16\u7801":"000000","\u4e2d\u6587\u5c0f\u5199\u5b57\u6bcd":"[DBNum1][$-804]General","\u4e2d\u6587\u5927\u5199\u5b57\u6bcd":"[DBNum2][$-804]General"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},t.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,e){return x(t,e,S)}},t}function G(){var t,e,r,n,n,t=H.call(this)||this,e,r;return T.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\uf9d1","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\uf973","\u5104","\u9621","\u767e","\uf973","\u842c","\u9621","\u767e","\uf973",""],numbers:["\uf9b2","\u58f9","\u8cb3","\uf96b","\u56db","\u4f0d","\uf9d1","\u4e03","\u516b","\u4e5d"]},3:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]},4:{letters:["\uc870","\ucc9c","\ubc31","\uc2ed","\uc5b5","\ucc9c","\ubc31","\uc2ed","\ub9cc","\ucc9c","\ubc31","\uc2ed",""],numbers:["\u25cb","\uc77c","\uc774","\uc0bc","\uc0ac","\uc624","\uc721","\uce60","\ud314","\uad6c"]}},{Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"}]),T.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],n=["1","2","3","4","5","6","7","8","9","10","11","12",""],n,"\uc624\uc804",!(n=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""]),["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],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'",n,n,"\uc11c\uae30","\uc624\ud6c4","yyyy-MM-dd",["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],"tt h:mm","yyyy'\ub144' M'\uc6d4'","yyyy\ub144/mmmm/d\uc77c"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red][$\u20a9-412]#,##0","[$\u20a9-412]#,##0;-[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red]-[$\u20a9-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',"yyyy-mm-dd;@",'yyyy"\ub144" m"\uc6d4" d"\uc77c";@','yy"\u5e74" m"\u6708" d"\u65e5";@','yyyy"\ub144" m"\uc6d4";@','m"\uc6d4" d"\uc77c";@',"yy-m-d;@","yy-m-d h:mm;@",'m"\u6708"d"\u65e5";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"\uc2dc" mm"\ubd84";@','h"\uc2dc" mm"\ubd84" ss"\ucd08";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84" ss"\ucd08";@'],Special:{"\uc6b0\ud3b8 \ubc88\ud638":"000-000","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 4\uc790\ub9ac)":"[<=999999]####-####;(0##) ####-####","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 3\uc790\ub9ac)":"[<=9999999]###-####;(0##) ###-####","\uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638":"000000-0000000","\uc22b\uc790(\ud55c\uc790)":"[DBNum1][$-412]General","\uc22b\uc790(\ud55c\uc790-\uac16\uc740\uc790)":"[DBNum2][$-412]General","\uc22b\uc790(\ud55c\uae00)":"[DBNum4][$-412]General"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},t}function T(t,e,r){for(var n,i,o,a,n=this,o=0,a=e.length;o<a;o++)i=e[o],n[t][i]=r[o]}function z(t,e){var r;"object"==typeof document&&("function"!=typeof CustomEvent?(r=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):r=new CustomEvent("cultureChanged",{}),r.cultureInfo=t,i.gcCultureInfo=t,i.gcCultureObj=e,document.dispatchEvent(r))}function O(){this.KPt=1,this.JPt={}}r=this&&this.__extends||(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t.XPt=t.CultureInfo=t.TimelineDateOrder=void 0,n=e("./src/common/util/types.ts"),u=e("./src/common/util/common.ts"),a=e("./src/common/util/arrayhelper.ts"),i="undefined"!=typeof window?window:e.g,f=void 0,o=null,s=n.lt.y0,y=n.lt.Dh,e=["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"],m=(n=["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"]).concat(c=["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"]),s(n,function(t,r){s(c,function(t,e){t<c.length-4&&m.push(r+" "+e)})}),m=m.concat(e),s(e,function(t,r){s(c,function(t,e){t<c.length-4&&m.push(r+" "+e)})}),(n=M=t.TimelineDateOrder||(t.TimelineDateOrder={}))[n.year=1]="year",n[n.quarterOrMonth=2]="quarterOrMonth",n[n.date=3]="date",h={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1},P.prototype.u2e=function(){return[" "]},P.prototype.tCe=function(t){var e,r,n,e=this,r,n={lineBreakingChar:e.u2e()};return e.TextFormat&&e.TextFormat.lineBreakingStrategy?e.TextFormat.lineBreakingStrategy(t,n):x(t,n)},P.prototype.hse=function(t){var e;return this.TextFormat&&this.TextFormat.lineBreakingStrategy?(e={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart},this.TextFormat.lineBreakingStrategy(t,e)):x(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},P.prototype.qPt=function(){var t,e,e,r;return this.$Pt||(e=(e=[e=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),e+" h:mm",e+" h:mm:ss",e+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(m),1041===this.id&&(r=t.eraFormatter,e=(e=e.concat(this.QPt)).concat(r)),e=e.concat(t.preselectedFormatters),this.$Pt=e),this.$Pt},P.prototype.tGt=function(t){var e=this;return e.nGt||(e.nGt=k(e.DateTimeFormat.monthNames),e.eGt=k(e.DateTimeFormat.monthGenitiveNames)),$(t,e.nGt,e.eGt)},P.prototype.iGt=function(t){var e=this;return e.rGt||(e.rGt=k(e.DateTimeFormat.abbreviatedMonthNames),e.oGt=k(e.DateTimeFormat.abbreviatedMonthGenitiveNames)),$(t,e.rGt,e.oGt)},P.prototype.aGt=function(t){var e=this;return e.uGt||(e.uGt=k(e.DateTimeFormat.dayNames)),e.uGt.indexOf(N(t))},P.prototype.sGt=function(t){var e=this;return e.cGt||(e.cGt=k(e.DateTimeFormat.abbreviatedDayNames)),e.cGt.indexOf(N(t))},d=P,t.CultureInfo=d,C.fGt=function(t){return t>=C.lGt()&&t<=C.hGt()},C.dGt=function(){var t,e,r,t=d.eras;if(t===f)return this.vGt;for(e=[],r=0;r<t.length;r++)e[r]=new Date(t[r].startDate.replace(/-/g,"/"));return e},C.mGt=function(t){var e,r,n,i,o;switch(t){case"g":e="symbol",r=C.gGt;break;case"gg":e="abbreviation",r=C.pGt;break;case"ggg":e="name",r=C.DEt;break;default:return[]}if(i=[],(n=d.eras)===f)return r;for(o=0;o<n.length;o++)i[o]=n[o][e];return i},C.hGt=function(){var t,t,t=d.eras;return t!==f&&0<t.length?((t=new Date(t[t.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},C.lGt=function(){var t=d.eras;return t!==f&&0<t.length?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},C.wGt=function(){var t=d.eras;return t!==f?t.length:this.MGt},C.CGt=function(){var t,e,r,n,i,t=d.eras;if(t===f)return this.SGt;for(e=[],r=1;r<t.length;r++)n=new Date(t[r-1].startDate.replace(/-/g,"/")),i=new Date(t[r].startDate.replace(/-/g,"/")),e[r-1]=i.getFullYear()-n.getFullYear()+1;return e[r-1]=99,e},C.TGt=function(t){var e,r,n,e={AGt:-1,IGt:-1};if(!C.fGt(t)){if(!(t>C.hGt()))return e;t=C.hGt()}for(r=0;r<C.wGt();r++)if(t<(n=r+1!==C.wGt()?C.dGt()[r+1]:C.xGt(C.hGt(),1))){e.AGt=r,e.IGt=t.getFullYear()-C.dGt()[r].getFullYear()+1;break}return e},C.xGt=function(t,e){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+e),new Date(t.valueOf())},C.NGt=function(t,e){var r;return C.dGt()[t].getFullYear()+e-1},C.kGt=function(t,e){var r,n;for(e=e.toUpperCase(),r=C.mGt(t),n=0;n<r.length;n++)if(r[n]===e)return n;return-1},C.DGt=function(t,e,r){var n,e,i,n,n,i,n=C,e=n.TGt(e),i=e.AGt;if(0<=i&&0<(n=n.mGt(t)).length)return n[i];if(0<=(n=e.IGt)){if("1"===(i=n.toString())&&r)return i="\u5143";if("ee"===t)return i=1===i.length?"0"+i:i;if("e"===t)return i}return""},C.vGt=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],C.MGt=5,C.SGt=[45,15,64,31,99],C.bGt=new Date(2117,11,31,23,59,59),C.yGt=new Date(1868,8,8),C._Gt=["1,m","2,t","3,s","4,h","5,r"],C.EGt=[0,1,2,3,0,1,2,3],C.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],C.gGt=["M","T","S","H","R"],C.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],C.jGt=99,C.eraExcelFormatter="[$-ja-JP-x-gannen]",C.eraInternalFormatter="[$-411]",t.XPt=C,r(B,_=d),e=B,r(L,w=d),n=L,r(A,D=d),A.prototype.u2e=function(){return[" ","\u3000"]},l=A,r(G,H=d),r=G,v={invariant:new d,"en-us":new e,"ja-jp":new n,"zh-cn":new l,"ko-kr":new r},g={},p=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8"],F=["wmk1","wmk2"],O.instance=function(){return this.OGt||(this.OGt=new this)},O.prototype.culture=function(t){if(0===arguments.length)return O.RGt;t&&O.RGt!==t&&(O.RGt=t.toLowerCase(),this.KPt++,z(O.RGt,O.OGt.getCultureInfo()))},O.prototype.addCultureInfo=function(t,e,r){var n,i,o,a,n;if(e&&e instanceof d){if(n=e.NumberFormat&&e.NumberFormat.numberDecimalSeparator,i=e.NumberFormat.arrayListSeparator,o=e.NumberFormat.arrayGroupSeparator,n===e.NumberFormat.listSeparator||o===i)throw(a=new u.ResourceManager(u.SR)).getResource().Exp_Separator;v[t.toLowerCase()]=e}r&&"object"==typeof r&&(n=t.toLowerCase(),g[n]=y(!0,{},r),this.KPt++)},O.prototype.getCultureInfoDict=function(){return v},O.prototype.getCultureInfo=function(t){var e,r,n;if(0===arguments.length)return v[O.RGt];for(n in"string"==typeof t&&(t=t.toLowerCase()),r=o,e=v)if(n===t||e[n].id!==f&&e[n].id===t){r=e[n];break}return r},O.prototype.getLanguage=function(t){var t;return"string"==typeof t?(t=t.toLowerCase(),g[t]):o},O.prototype.getResources=function(t){var e,e,e=this.culture().toLowerCase();return"string"==typeof(t=t!==o&&t!==f?t:e)&&(e=t.toLowerCase(),this.JPt[e])?this.BGt(this.JPt[e]):o},O.prototype.BGt=function(t){var e,r,n,i,o,t,e,e="PivotTables",r="Sheets",n="CalcEngine",i="Functions",o="TableFunctions",t=y(!0,{},t);return t[e]&&this.LGt(t[e],F),t[r]&&this.LGt(t[r],p),(e=t[n])&&(t[i]=e.wmt,t[o]=e.d2t,delete e.wmt,delete e.d2t),t},O.prototype.LGt=function(t,e){for(var r,n,i,r=0,n=e;r<n.length;r++)delete t[i=n[r]]},O.prototype.FGt=function(t,e,r){var n,i,o,n=g[t.toLowerCase()];for(i in e)a.Uf.OS(p,i)||null!==(o=this.PGt(n,i,r))&&"string"==typeof o&&"string"==typeof e[i]&&(e[i]=o);e.wmt&&n.Functions&&this.GGt(n.Functions,e.wmt),e.d2t&&n.TableFunctions&&y(!0,e.d2t,n.TableFunctions)},O.prototype.PGt=function(t,e,r){var n,i;if(t.hasOwnProperty(e))return t[e];if(r&&(n=t[r])&&"object"==typeof n&&n.hasOwnProperty(e))return n[e];for(i in t)if((n=t[i])&&"object"==typeof n&&n.hasOwnProperty(e))return n[e];return null},O.prototype.GGt=function(t,e){var r,n,i,o,a,u,s,f,r={};for(n in e)if(t.hasOwnProperty(n))for(s in i=e[n],o=t[n],a=i.parameters,u=o.parameters,i.description=o.description,a)u.hasOwnProperty(s)&&"string"==typeof(f=u[s])&&(a[s].name=f);return r},O.prototype.Fe=function(t){var t=this.getCultureInfo(t),t;return t=(t=t||v[O.RGt])||new d},O.prototype.xat=function(t,e){var r,t,n,r,t=(this.getCultureInfo(t)||this.getCultureInfo("en-US")).DateTimeFormat,n=t.filterDialogDateFormatter;return n=0<=e.indexOf("g")||0<=e.indexOf("e")?t.EraFilterDialogDateFormatter||n:n},O.RGt="en-us",t.CultureManager=O.instance()},"./src/common/util/arrayhelper.ts":function(t,e){var i,o,r;function a(t,e){var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],Array.isArray(n)?(t[r]=[],a(t[r],e[r])):n!==i&&"object"==typeof n?(t[r]={},a(t[r],e[r])):t[r]=e[r])}function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e.Uf=void 0,i=null,o=void 0,n.Eit=function(t,e,r){t.splice(e,0,r)},n.ZP=function(t,e){t.push(e)},n.OS=function(t,e){return-1<t.indexOf(e)},n.VP=function(t,e){var e=t.indexOf(e);-1<e&&t.splice(e,1)},n.UGt=function(t,e){return t.slice(0,e).concat(t.slice(e+1))},n.hD=function(t,e,r){return t.indexOf(e,r)},n.d5=function(t,e,r){if(!(e<0))for(var n=0;n<r&&e+n<t.length;n++)t[e+n]=i},n.N2t=function(t,e){for(var r,n,n=r=(e=e<0?-1:e)+1;n<t.length;n++)if(t[n]!==o&&t[n]!==i)return n;return-1},n.tR=function(t){return t&&t.length},n.Gf=function(t){var e=[];return a(e,t),e},e.Uf=n},"./src/common/util/colorhelper.ts":function(t,e,i){var r,o,s,f,a,y,c,n,m,u;function M(t,e,r){return r<0&&(r+=240),240<r&&(r-=240),r<40?t+((e-t)*r+20)/40:r<120?e:r<160?t+((e-t)*(160-r)+20)/40:t}function h(t,e,r){var n,i,o,a,u;return 0===r?n=i=o=y(255*e/240+"",10):(u=a=void 0,n=d(a=2*e-(u=e<=120?y((e*(240+r)+120)/240+""):e+r-y((e*r+120)/240+"")),u,t+80),i=d(a,u,t),o=d(a,u,t-80)),{a:255,r:n,g:i,b:o}}function d(t,e,r){return s(y((255*M(t,e,r)+120)/240+""),255)}function l(t){var e,r,n,t,i,o,a,o,a,u,t,e=this,r=t.r,n=t.g,t=t.b,i=f(f(r,n),t),o=s(s(r,n),t),a=i+o;e.HGt=y((240*a+255)/510+"",10),0==(o=i-o)?(e.zGt=0,e.wv=160):(e.HGt<=120?e.zGt=y((240*o+a/2)/a+"",10):e.zGt=y((240*o+(510-a)/2)/(510-a)+"",10),a=(40*(i-r)+o/2)/o,u=(40*(i-n)+o/2)/o,t=(40*(i-t)+o/2)/o,e.wv=y(r===i?t-u+"":n===i?80+a-t+"":160+u-a+"",10),e.wv<0&&(e.wv+=240),240<e.wv&&(e.wv-=240))}function v(t){var e,r,n,i,e,o,a,u,e,n;return/^#[A-Fa-f0-9]+$/.test(t)?(e=t.replace(/^#/,""),i=n="",6===(r=e.length)||8===r?(n=e.substr(0,6),8===r&&(i=e.substr(6,2))):3!==r&&4!==r||(n=(e=e.split(3===r?/(.)/:/(..)/)).filter(Boolean).map(function(t){return parseInt(3===r?t+t:t,16)}).map(function(t){return t.toString(16).padStart(2,"0")}).join(""),4===r&&(i=e[3]+e[3])),[o=parseInt(n.slice(0,2),16),a=parseInt(n.slice(2,4),16),u=parseInt(n.slice(4,6),16),e=i?parseInt(i,16):255]):t.toLowerCase()in c?c[t.toLowerCase()]:null!==(n=m.exec(t))?(e=void 0===n[4]?255:255*+n[4],[n[1],n[2],n[3],e]):null}function g(){}Object.defineProperty(e,"__esModule",{value:!0}),e.ft=void 0,r=i("./src/common/util/numberhelper.ts"),o=r.st.VGt,s=Math.min,f=Math.max,a=Math.abs,y=parseInt,c={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},l.prototype.YGt=function(t){var e,r,n,e=this,r=e.HGt,n=e.ZGt(e.HGt,500,!0);return h(e.wv,r+(n-r)*t,e.zGt)},l.prototype.ZGt=function(t,e,r){if(0!==e){if(r)return 0<e?(t*(1e3-e)+241*e)/1e3:t*(e+1e3)/1e3;240<(t=(t+=240*e/1e3)<0?0:t)&&(t=240)}return t},n=l,m=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,g.j=function(t){var e,r,n,i,e=t.a,r=t.r,n=t.g,i=t.b;return 3===arguments.length&&(e=255,r=t,n=arguments[1],i=arguments[2]),4===arguments.length&&(e=t,r=arguments[1],n=arguments[2],i=arguments[3]),255===e?"#"+o(r,!0,2)+o(n,!0,2)+o(i,!0,2):"rgba("+r+","+n+","+i+","+e+")"},g.Tv=function(t,e){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(e):t.a===e.a&&t.r===e.r&&t.g===e.g&&t.b===e.b},g.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},g.Km=function(t,e){var r,n,i,t,o,r=255-a(t.r-e.r),n=255-a(t.g-e.g),i=255-a(t.b-e.b),t=a(t.a-e.a);return!!(.9<=(o=((r/=255)+(n/=255)+(i/=255))/3)&&t<=.05)},g.Uv=function(t){var e,r,n,e=255^t.r,r=255^t.g,n=255^t.b;return g.j(t.a,e,r,n)},g.WGt=function(t){var e,r,n,n;return"object"==typeof document&&((e=g.xf)||(r=document.createElement("canvas"))&&r.getContext&&(e=g.xf=r.getContext("2d",{willReadFrequently:!0})),e||((n=i("canvas"))&&n.createCanvas&&(r=n.createCanvas(2,2),e=g.xf=r.getContext("2d")),e))?(e.clearRect(1,1,1,1),e.fillStyle=t,e.fillRect(1,1,1,1),(n=e.getImageData(1,1,1,1))?n.data:null):v(t)},g._=function(t){var e,r,n,i,t;return t instanceof g||null!==t&&"object"==typeof t?t:(i=n=r=e=0,t&&(t=g.WGt(t))&&(r=t[0],n=t[1],i=t[2],e=t[3]),{a:e,r:r,g:n,b:i})},g.Cv=function(t,e){var t,e;return 0===e?t:(t=new n(t),e=y((0<e?(240-t.HGt)*e:t.HGt*e)+"",10),g.QGt(t.wv,t.HGt+e,t.zGt))},g.YGt=function(t,e){var t,r,t,t=g._(t),r,t=new n(t).YGt(e);return g.j(t)},g.Dz=M,g.QGt=h,e.ft=g},"./src/common/util/common.ts":function(t,e,r){var i,n,r,o,a;function u(t,e){this.res=t,this.KGt=e,this.JPt=i.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,e),this.KPt=0}function s(t,e,r,n){var i,o,a,u,s;if(t&&0<=r&&r<e){for(i=[],a=o=void 0,a=r;a<e;a++)void 0!==t[a]&&i.push(a);for(o=i.length,a=0;a<o;a++)s=t[u=i[o-a-1]],t[u]=null,t[Math.floor(u)+n]=s}}function f(t,e,r,n){var i,o,a,u,s,f;if(t&&0<=r&&r<e){for(i=[],a=r+n,u=o=void 0,u=r;u<e;u++)void 0!==t[u]&&(r<=u&&u<a?t[u]=null:a<=u&&i.push(u));for(o=i.length,u=0;u<o;u++)f=t[s=i[u]],t[s]=null,t[Math.floor(s)-n]=f}}function y(t,e){return t.hasOwnProperty(e)}function c(t,e){return t instanceof e}Object.defineProperty(e,"__esModule",{value:!0}),e.ut=e.kh=e.X8=e.J8=e.ResourceManager=e.SR=void 0,i=r("./src/common/culture/cultureInfo.ts"),n=r("./src/common/util/util.res.en.ts"),r=r("./src/common/util/types.ts"),e.SR={en:n},o=r.lt.Dh,u.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},u.prototype.XGt=function(t,e){var r,n;e&&(n=(r=i.CultureManager.culture()).toLowerCase(),this.JPt[n]=this.JPt[n]||{},this.JPt[n][e]=t,i.CultureManager.JPt=this.JPt)},u.prototype.JGt=function(t,e){var r,n,e,n,r=i.CultureManager.culture();return t&&r?(n=i.CultureManager.KPt,this.KPt!==n||e?(this.KPt=n,i.CultureManager.getLanguage(r)?(e=o(!0,{},t.en),i.CultureManager.FGt(r,e,this.KGt),e):(n=r.substr(0,2).toLowerCase(),t.hasOwnProperty(n)?t[n]:t.en)):void 0):{}},e.ResourceManager=u,e.J8=s,e.X8=f,e.kh=y,e.ut=c},"./src/common/util/datetimehelper.ts":function(t,P,e){var r,k,M,C,e,a,A,$,S,x,n,T,O,e,o,i;function j(t,e){if(r.HandleExcelSpecialDate)return r.HandleExcelSpecialDate.apply(null,[t,e]);switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();default:return}}function E(t,e,r,n){var i,o,a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,b,F,_,w,D,H,N,k,$,i=r.DateTimeFormat,o=i.Calendar.convert;if(!e||!e.length)return r&&r.name.length?o?E(t,i.fullDateTimePattern,r):t.toLocaleString():t.toString();function S(){return y||c||(y=m.test(e),c=!0),y}function x(t,e){return d?d[e]:j(t,e)}for(a=i.eras,s="",m=/([^d]|^)(d|dd)([^d]|$)/g,M=0,h=B(),!(u="s"===e)&&o&&(d=o.fromGregorian(t)),v=l=-2,g={y4:""},p=0;F=h.lastIndex,b=h.exec(e),F=e.slice(F,b?b.index:e.length),g.y4="",M+=R(F,g),s+=g.y4,b;p++)if(M%2==1)s+=b[0];else switch(_=x(t,0),w=t.getDay(),D=t.getHours(),H=t.getMinutes(),N=t.getSeconds(),k=t.getMilliseconds(),$=t.getTimezoneOffset(),b[0]){case"dddd":s+=i.dayNames[w];break;case"ddd":s+=i.abbreviatedDayNames[w];break;case"dd":y=!0,s+=A(x(t,2),2);break;case"d":y=!0,s+=x(t,2);break;case"MMMM":s+=(i.monthGenitiveNames&&S()?i.monthGenitiveNames:i.monthNames)[x(t,1)];break;case"MMM":s+=(i.abbreviatedMonthGenitiveNames&&S()?i.abbreviatedMonthGenitiveNames:i.abbreviatedMonthNames)[x(t,1)];break;case"MM":s+=A(x(t,1)+1,2);break;case"M":s+=x(t,1)+1;break;case"yyyy":case"yyy":s+=0<=l?C.XPt.DGt("ee",t,n):A(d?d[0]:_,4);break;case"yy":s+=0<=l?C.XPt.DGt("ee",t,n):A((d?d[0]:_)%100,2);break;case"y":s+=0<=l?C.XPt.DGt("e",t,n):((d?d[0]:_)%100).toString();break;case"hh":s+=A(f=0===(f=D%12)?12:f,2);break;case"h":s+=f=0===(f=D%12)?12:f;break;case"HH":s+=A(D,2);break;case"H":s+=D.toString();break;case"mm":s+=A(H,2);break;case"m":s+=H.toString();break;case"ss":s+=A(N,2);break;case"s":s+=N.toString();break;case"tt":s+=D<12?i.amDesignator:i.pmDesignator;break;case"t":s+=(D<12?i.amDesignator:i.pmDesignator).charAt(0);break;case"f":case"0":s+=A(k,3).charAt(0);break;case"ff":case"00":s+=A(k,3).substr(0,2);break;case"fff":case"000":s+=A(k,3);break;case"z":s+=((f=$/60)<=0?"+":"-")+T(O(f));break;case"zz":s+=((f=$/60)<=0?"+":"-")+A(T(O(f)),2);break;case"zzz":s+=((f=$/60)<=0?"+":"-")+A(T(O(f)),2)+":"+A(O($%60),2);break;case"g":case"gg":case"ggg":a&&(l=(l===p-1||(s+=C.XPt.DGt(b[0],t,n)),p));break;case"e":case"ee":a?v=(v===p-1||(s+=C.XPt.DGt(b[0],t,n)),p):s+=A(d?d[0]:_,4);break;case"/":s+=i.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(b[0]))throw new Error((0,P.getSR)().Exp_InvalidDateFormat);s+=b[0]}return s.toString()}function R(t,e){for(var r,n,i,o,a,r=0,n=x,i=0,o=t.length;i<o;i++)switch(a=t.charAt(i)){case'"':n?e.y4+="'":r++,n=x;break;case"\\":n&&(e.y4+="\\"),n=!n;break;default:e.y4+=a,n=x}return r}function I(t,e){var r,n,r,r=new Date,n;return t.DateTimeFormat.eras&&e<100&&(e+=(r=C.XPt.TGt(r).IGt)-r%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(e-=100),e}function B(){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|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g}function L(t,e,r){var n,i,o,a,u,s,f,y,c,m,m;if(t.qGt){if(t.qGt[e])return t.qGt[e]}else t.qGt={};for(n=(n=(n=e).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),i="^",o={y4:""},a=[],s=u=0,f=B();(y=f.exec(n))!==$;)if(o.y4="",c=n.slice(u,y.index),u=f.lastIndex,s+=R(c,o),i+=o.y4,s%2==1)i+=y[0];else{switch(y[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":i+="(\\D+)";break;case"tt":case"t":i+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":i+=r?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":i+="(\\d{2}|\\d{4})";break;case"fff":case"000":i+="(\\d{3})";break;case"ff":case"00":i+="(\\d{2})";break;case"f":case"0":i+="(\\d)";break;case"zzz":i+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i+="([+-]?\\d\\d?)";break;case"/":i+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,P.getSR)().Exp_InvalidDateFormat)}M.Uf.ZP(a,y[0])}return o.y4="",R(n.slice(u),o),m={$Gt:m=(i=i+o.y4+"$").toString().replace(/\s+/g,"\\s+"),QMt:a,tUt:new RegExp(m)},t.qGt[e]=m}function u(t){var t=t.getTimezoneOffset();return t=-402===(t=-507===(t=-321===(t=-485===t?-485-43/60:t)?-321-10/60:t)?-507-52/60:t)?-402-4/60:t}function s(){}Object.defineProperty(P,"__esModule",{value:!0}),P.ct=P.getSR=void 0,r=e("./src/common/util/common.ts"),k=e("./src/common/util/stringhelper.ts"),M=e("./src/common/util/arrayhelper.ts"),C=e("./src/common/culture/cultureInfo.ts"),e=e("./src/common/util/types.ts"),a=e.lt.ht,A=k.zf.B9t,$=null,S=parseInt,n=!(x=!1),T=Math.floor,O=Math.abs,e=new r.ResourceManager(r.SR,"Common"),P.getSR=e.getResource.bind(e),o={},s.L9t=function(t,e,r,n){return E(t,e,r=r||C.CultureManager.Fe(),n)},s.Pe=function(t,e,r){return E(t,e,r||C.CultureManager.Fe())},s.Mjt=function(t,e,r){var n,i,o,o,a,u=x,a=r;for(a.slice(1).forEach(function(t){t&&(u=!0)}),i=(a=u?a:a.concat(e.qPt())).length,n=1;n<i;n++)if((o=a[n])&&(u=!0,o=s.nUt(t,o,e)))return o;return $},s.yU=function(t,e,r){var n,i;return(e||r||void 0===(i=o[t]))&&(n=e?[t,e]:[t],i=s.Mjt(t,r||C.CultureManager.Fe(),n),e||r||(o[t]=i)),i&&new Date(i)},s.Z6t=function(t,e){return s.Mjt(t,C.CultureManager.Fe("invariant"),[t,e])},s.nUt=function(t,e,r){var n,i,e,o,a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,b,_,w,w,D,D,e,t,H,N,e;if(t=t.trim(),(o=(e=L(n=r.DateTimeFormat,e,i=1041===r.id)).tUt.exec(t))===$)return $;for(a=e.QMt,v=c=y=f=s=u=$,p=g=x,F=l=d=h=m=0,b=a.length;F<b;F++)if(_=o[F+1])switch(a[F]){case"dd":case"d":if((y=S(_,10))<1||31<y)return $;break;case"MMMM":if((f=r.tGt(_))<0||11<f)return $;break;case"MMM":if((f=r.iGt(_))<0||11<f)return $;break;case"M":case"MM":case"%M":if((f=S(_,10)-1)<0||11<f)return $;break;case"e":case"ee":if((s=i&&"\u5143"===_?1:I(r,S(_,10)))<0||9999<s)return $;break;case"y":case"yy":case"yyy":case"yyyy":if((s=S(_,10))<0||9999<s)return $;break;case"h":case"hh":case"H":case"HH":if((m=S(_,10))<0)return $;break;case"m":case"mm":if((h=S(_,10))<0||59<h)return $;break;case"s":case"ss":if((d=S(_,10))<0||59<d)return $;break;case"tt":case"t":if(g=(w=_.toUpperCase())===n.pmDesignator.toUpperCase(),p=w===n.amDesignator.toUpperCase(),g||p)break;return $;case"f":case"0":if((l=100*S(_,10))<0||999<l)return $;break;case"ff":case"00":if((l=10*S(_,10))<0||999<l)return $;break;case"fff":case"000":if((l=S(_,10))<0||999<l)return $;break;case"dddd":if((c=r.aGt(_))<0||6<c)return $;break;case"ddd":if((c=r.sGt(_))<0||6<c)return $;break;case"zzz":if(2!==(w=_.split(/:/)).length)return $;if((M=S(w[0],10))<-12||13<M)return $;if((D=S(w[1],10))<0||59<D)return $;v=60*M+(k.zf.fJ(_,"-")?-D:D);break;case"z":case"zz":if((M=S(_,10))<-12||13<M)return $;v=60*M;break;case"g":case"gg":case"ggg":if(!(D=_)||!n.eras)return $;if((u=C.XPt.kGt(a[F],D))<0)return $}if(t=(e=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(N=n.Calendar.convert)&&(H=N.fromGregorian(t)),N||(H=[t.getFullYear(),t.getMonth(),t.getDate()]),s===$?s=H[0]:s<100&&(n.eras&&u!==$?s=C.XPt.NGt(u||0,s):s+=30<=s?1900:2e3),f===$&&(f=H[1]),y===$&&(y=e?H[2]:1),N){if((t=N.toGregorian(s,f,y))===$)return $}else{if(t.setFullYear(s,f,y),t.getDate()!==y)return $;if(c!==$&&t.getDay()!==c)return $}return g&&m<12?m+=12:p&&12===m&&(m=0),t.setHours(m,h,d,l),v!==$&&(e=t.getMinutes()-(v+t.getTimezoneOffset()),t.setHours(t.getHours()+e/60,e%60)),t},s.Y0=function(t){var e,r,n,e,t,n,i,o,a,e=t-25569,r,n=0<=e?1:-1,e=u(new Date(864e5*e)),t=(864e5*t*1440+n-3181192704e6+864e5*e)/1440,n=new Date(t),i,o,a=u(new Date(t+36e5*(0<=e?1:-1)));return 60<=O(e-a)?new Date(t+60*(a-e)*1e3):n},s.dJ=function(t){var t;if("/OADate("===t.substr(0,8))return t=parseFloat(t.substr(8,t.length-10)),s.Y0(t)},s.Q0=function(t){return"/OADate("+s.o0(t)+")/"},s.o0=function(t){var e;return!a(t)&&(t="number"!=typeof t&&"string"!=typeof t?t:new Date(t))instanceof Date?(e=u(t),(1440*t.getTime()+3181192704e6-864e5*e)/124416e6):0},s._DT=function(t){var e,r,n,i,o,e=$,r=!0;if(a(t)?e=s.Y0(0):t instanceof Date?e=new Date(t.valueOf()):"string"==typeof t?((n=s.yU(t))||(isNaN(t)?!s.u6t(t)&&(n=new Date(t),isNaN(n.valueOf())&&(r=x),!(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(t.replace(/ |\n/g,"").trim()))||4!==o.length||-1!==o.indexOf(n.getFullYear().toString())&&-1!==o.indexOf((n.getMonth()+1).toString())&&-1!==o.indexOf(n.getDate().toString()))||(r=x):(n=s.Y0(parseFloat(t)))||(r=x)),e=n):"number"==typeof t?e=s.Y0(t):r=x,r)return e;throw(0,P.getSR)().Exp_InvalidCast},s.u6t=function(t){var e,n,r,i,o,e=C.CultureManager.Fe().DateTimeFormat,n=s.eUt,r=function(e,t){var r=0;return t.forEach(function(t){t&&-1<e.indexOf(t)&&r++}),1<r},i=function(t,e){var t,r;return!!(t&&-1<t.indexOf(" "))&&2<=(r=(t=t.split(" ")).length)&&e.indexOf(t[r-2])<=-1&&!isNaN(t[r-1])},o=function(e){var r=!1;return n.forEach(function(t){-1<e.indexOf(t)&&(r=!0)}),r};return r(t,e.monthNames)||r(t,e.abbreviatedMonthNames)||r(t,e.dayNames)||r(t,e.abbreviatedDayNames)||i(t,e.monthNames.concat(e.abbreviatedMonthNames))||o(t)},s.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},s.eUt=["@","#","!","`","^","$","*","(",")","&"],P.ct=s},"./src/common/util/functionhelper.ts":function(t,e,r){var z,K,J,V;function f(t){return t}function y(t,e,r,n,i,o,a,u,s,j,f){var y,c,m,M,h,d,l,v,g,p,F,b,_,w,D,H,N,k,$,E,R,I,B,S,x,P,C,A,L,G,T,O,N=r[J],k=r[V],$=e[J],E=e[V],R=n[J],I=n[V],B=1===k,S=1===E;if($===N&&E===k){for(l=N*k,y=A=C=P=x=0;y<N;y++)for(c=0;c<k;c++){if(M=o(r[y][c]),h=o(e[y][c]),t&&(K(M)||K(h)))return s;x+=M,P+=M*M,C+=h=j(h),A+=M*h}for(L=l*A-x*C,v=i?(C*P-x*A)/(l*P-x*x):0,(1<(G=(d=i?L/(l*P-x*x):A/P).toString()).indexOf("000000000000")||1<G.indexOf("999999999999"))&&(d=z.st.E8(d,12),v=z.st.E8(v,12)),g=[],y=0;y<R;y++)for(g[y]=[],c=0;c<I;c++){if(M=o(n[y][c]),t&&K(M))return s;g[y][c]=0==L?e[0][0]:f(z.st.tge(d*M,v))}return a?new a(g):g}if(S&&$===N||1===$&&E===k){for(M=[],h=[],D=k+1,H=k+2,y=0;y<N;y++){if(v=o(F=S?e[y][0]:e[0][y]),t&&K(v))return s;h[y]=B?j(v):v}for(y=0;y<N;y++)for(M[y]=[],c=0;c<k;c++){if(v=o(r[y][c]),t&&K(v))return s;M[y][c]=v}for(T=[],d=0;d<D;d++)for(T[d]=[],l=0;l<H;l++)T[d][l]=0;for(m=0;m<N;m++)for(T[0][D]+=h[m],y=0;y<k;y++)for(T[0][F=y+1]+=M[m][y],T[F][0]=T[0][F],T[F][D]+=M[m][y]*h[m],c=y;c<k;c++)T[_=c+1][F]+=M[m][y]*M[m][c],T[F][_]=T[_][F];for(T[0][0]=N,p=O=i?0:1;p<D;p++){if(t){if(0===T[p][p]){for(w=!1,c=p+1;!w&&c<D;c++)if(0!==T[c][p]){for(m=0;m<H;m++)_=T[p][m],T[p][m]=T[c][m],T[c][m]=_;w=!0}if(!w)return u}}else{for(y=p;y<D&&0===T[y][p];)y++;if(D<=y)return u;for(b=O;b<H;b++)F=T[p][b],T[p][b]=T[y][b],T[y][b]=F}for(F=1/T[p][p],b=O;b<H;b++)T[p][b]*=F;for(y=O;y<D;y++)if(y!==p)for(F=-T[y][p],b=0;b<H;b++)T[y][b]+=F*T[p][b];i||(T[0][D]=0)}for(g=[],S||(g[0]=[]),y=0;y<R;y++){for(S&&(g[y]=[]),F=T[0][D],c=0;c<k;c++){if(v=o(S?n[y][c]:n[c][y]),t&&K(v))return s;F+=T[c+1][D]*v}S?g[y][0]=f(F):g[0][y]=f(F)}return a?new a(g):g}return u}function n(t,e,r,n,i,o,a,u){return y(!0,t,e,r,n,i,o,u,a,f,f)}function i(t,e,r,n,i,o,a){for(var u,s,u=0;u<t[J];u++)for(s=0;s<t[V];s++)if(t[u][s]<=0)return o;return y(!1,t,e,r,n,f,i,a,null,Math.log,Math.exp)}Object.defineProperty(e,"__esModule",{value:!0}),e.iit=e.eit=void 0,z=r("./src/common/util/numberhelper.ts"),K=isNaN,J="rowCount",V="colCount",e.eit=n,e.iit=i},"./src/common/util/numberhelper.ts":function(j,t,e){var r,n,i,f,o,y,N,c,v,a,m,M,g,k,u,p,s,F,h,d,l,$,b,e,_,H,S,x,E,w,P,D;function R(t,e,r,n){return e&&0!==e.length&&"i"!==e?I(t,e,r.NumberFormat,n):r&&0<r.name.length?t.toLocaleString():t.toString()}function I(t,e,r,n){var i;return Z(t,G(e),r,n)}function B(t,e){for(var r,n,t,i,e,o,a,i,o,a,r=u(p(t)),n={iUt:1,rUt:0};10<=r;)r/=10,n.iUt++;return i=(t=t.toString()).search(/e/gi),e=t.indexOf(e),-1!==i?(a=$(t,0,i),i=$(t,i+1),o=0,-1!==e&&(o=$(a,e+1).length),a=M(i),n.rUt=o=(o=o-a)<0?0:o):(o=0,-1!==e&&(o=$(t,e+1).length),n.rUt=o),n}function L(t){for(var e,r,n,e={oUt:t.charAt(0),aUt:0,tUt:0},r="",n=1;n<t.length;n++)if("+"===(r=t.charAt(n)))e.aUt=1;else{if("-"!==r){if("0"!==r)throw new Error(_().Exp_InvalidExponentFormat);e.tUt=t.length-n;break}e.aUt=-1}return e}function G(t){for(var e,r,n,i,o,a,u,s,f,y,c,m,M,h,d,l,e={uUt:v,sUt:v,rCt:g,fxt:0,d0:0,cUt:0,fUt:v},r="",n=g,i=g,o=g,a=g,u=g,s=g,y=v,c=[],m=0;m<t.length;m++){if(f=t.charAt(m),n)r+=f,'"'===f&&(c.push(r),r="",n=g);else if(i){if("E"===y||"e"===y){if(!(0<=["+","-","0"].indexOf(f))){i=g,m--;continue}r+=f}else if("+"===y||"-"===y){if("0"!==f){i=g,m--;continue}r+=f}else if("0"===y){if("0"!==f){i=g,u||(u=k,e.fUt=L(r)),m--;continue}r+=f}}else if("*"!==y&&"_"!==y&&"\\"!==y||""===r)if("*"===f||"_"===f||"\\"===f)s=g,""!==r&&(c.push(r),r=""),r+=f;else if("'"===f)s=g,""!==r&&(c.push(r),r=""),c.push(f);else if('"'===f)s=g,n=k,""!==r&&(c.push(r),r=""),r+=f;else if(0<=w.indexOf(f))s=k,w.indexOf(y)<0&&""!==r&&(c.push(r),r=""),r+=f;else if("."!==f||o)if("%"===f)s=g,e.d0++,""!==r&&(c.push(r),r=""),c.push(f);else if("\u2030"===f)s=g,e.cUt++,""!==r&&(c.push(r),r=""),c.push(f);else if(","===f)if(s){for(M=void 0,""!==r&&(c.push(r),r=""),h=k,d="",l=m+1;l<t.length;l++)if(M=t.charAt(l),'"'===d)'"'===M&&(d="");else if("\\"===d||"_"===d)d="";else{if(0<=w.indexOf(M)){h=g;break}if("."===M||";"===M)break;d=M}h?e.fxt++:o||(M=t.charAt(m+1))&&0<=w.indexOf(M)&&(a=k)}else r+=f;else"E"===f||"e"===f?(s=g,i=k,""!==r&&(c.push(r),r="")):(s=g,0<=w.indexOf(y)&&""!==r&&(c.push(r),r="")),r+=f;else""!==r&&(c.push(r),r=""),e.uUt=c,c=[],o=k,s=g;else r+=f,c.push(r),r="";y=f}return""!==r&&(i&&!u&&(e.fUt=L(r)),c.push(r)),a&&(e.rCt=k),o?e.sUt=c:e.uUt=c,e}function z(t,e,r,n){for(var i,o,a,u,s,f,y,c,m,M,i=e[0],o=1,a=0,u=g,s=t.length,f=0;f<s;f++)if("number"===(y=t[f].type)){for(c="",M=(m=t[f].value).length-1;0<=M;){if(!(1<=i&&i<=9||0===i&&o===e.length))throw new Error(_().Exp_InvalidNumberGroupSize);/\d/gi.test(m[M])?(u&&(c&&t.push({type:"number",value:c}),t.push({type:"groupSeparator",value:r}),c="",u=g),a++):a=0,c=m[M]+c,a===i&&0<i&&(u=k,a=0,o<e.length)&&(i=e[o],o++),M--}c&&t.push({type:y,value:c})}else"fillingChar"===y&&(n.infillIndex=t.length-s),t.push({type:y,value:t[f].value});t.splice(0,s)}function K(t,e,r,n,i,o){var a,a,u,s,u,a=et(t,-e),a=(u=(a=(t=a=isFinite(a)?a:t).toString()).split(/e/i))[0],s=1<u.length?m(u[1],10):0;return a=(u=a.split("."))[0],u=1<u.length?u[1]:"",0<s?(a+=(u=c(u,s)).slice(0,s),u=$(u,s)):s<0&&(s=-s,u=(a=t<0?o+N(a.replace(o,""),1+s):N(a,1+s)).slice(-s,a.length)+u,a=a.slice(0,-s)),a+(u=0<e?i+(u=u.length>e?u.slice(0,e):c(u,e)):"")}function J(t,e,r,n){var t=t;return 0<e&&(t=O(t*s(100,e),15)),0<r&&(t=O(t*s(1e3,r),15)),t=0<n?O(t/s(1e3,n),15):t}function V(t){var e,r,n,e=v;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function C(t,e){return t===e||0!==t&&0!==e&&(p(t-e)<p(t)/D||(t=O(t,15),e=O(e,15),p(t-e)<p(t)/D))}function W(t,e){return C(t,-e)?0:t+e}function U(t,e,r){var n,i,o,a,r,u,t,n={value:t,exponentValue:0},i,o=B(t,".").iUt,a=p(t),r=r?r.length:1;if(1<=a)r<o?(n.value=t/s(10,o-=r),n.exponentValue=o):n.exponentValue=0,-1===e.aUt&&(e.aUt=0);else if(a<1&&0<a){for(e.aUt=-1,u=s(10,r);10*a<u&&!C(10*a,u);)a*=10,n.exponentValue++;t=s(10,n.exponentValue),n.value*=h<t?0:t}return n}function q(t,e,r,n,i,o,a,u){var s,f,y,c,m,M,u,h,d,l,v,g,p,F,b,_,w,D,H,s=u.numberGroupSizes,f=u.numberGroupSeparator,y=u.negativeSign,c=u.percentSymbol,m=u.perMilleSymbol,M=n.fUt,u=$(e,0,1);for(e=0===(h=1===(e=u===y?$(e,1):e).length&&"0"===e?0:e.length)?"":e,d=0,l="",v=t.length-1;0<=v;v--)if(g="",p=t[v],/^(0|#|\?)+/g.test(p)){if(l!==r){for(F=p.length,b=h-d-1;0<=b&&0<F;b--)g=(_=e.charAt(b))+g,F--,d++;for(w=F-1;0<=w;w--)d++,"0"===(D=p[w])?g=D+g:"?"===D&&(""!==g&&(o.push({type:"number",value:g}),g=""),o.push({type:"numberPlaceholder",value:D}));""!==(g=(l=p+l)===r&&d<h?e.substr(0,h-d)+g:g)&&o.push({type:"number",value:g})}}else n.fUt&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(p)?(a.replaceExponent=k,H="",H=(H=(H+=M.oUt)+x[M.aUt])+N(i.toString(),M.tUt),o.push({type:"exponent",value:H})):"_"===p[0]?o.push({type:"placeholder",value:p[1]}):"*"===p[0]?a.hasInfilling||(o.push({type:"fillingChar",value:p[1]}),a.hasInfilling=!0,a.infillIndex=o.length-1):"\\"===p[0]?2===p.length&&o.push({type:"text",value:p[1]}):'"'===p[0]&&'"'===p[p.length-1]?2<p.length&&o.push({type:"text",value:p.substr(1,p.length-2)}):p===c?o.push({type:"percent",value:p}):p===m?o.push({type:"permille",value:p}):P[p]?o.push({type:"currency",value:p}):o.push({type:"text",value:p});u===y&&r&&o.push({type:"text",value:u}),n.rCt===k&&z(o,s,f,a),o.reverse(),a.infillIndex=o.length-1-a.infillIndex}function Y(t,e,r,n,i,o,a,u,s){var f,y,c,s,m,M,h,d,l,v,g,p,F,b,_,w,D,f=s.numberDecimalSeparator,y=s.percentSymbol,c=s.perMilleSymbol,s=e.indexOf(f),m=i.fUt;for((0<s||n!==H||r!==S)&&a.push({type:"decimalSeparator",value:f}),M=-1!==s?e.substring(s+1):"",d="",l=h=0;l<t.length;l++)if(v=t[l],/^(0|#|\?)+/g.test(v)){if(g="",d!==r){for(p=v.length,F=0,b=h;0<p&&0<M.length-h;)g+=M.charAt(b),p--,h++,F++,b++;for(_=F;0<p;)w=v[_],_++,h++,p--,"0"===w?g+=w:"?"===w&&(""!==g&&(a.push({type:"number",value:g}),g=""),a.push({type:"numberPlaceholder",value:w}));""!==g&&a.push({type:"number",value:g}),d+=v}}else m&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)?(u.replaceExponent=k,D="",D=(D=(D+=m.oUt)+x[m.aUt])+N(o.toString(),m.tUt),a.push({type:"exponent",value:D})):"_"===v[0]?a.push({type:"placeholder",value:v[1]}):"*"===v[0]?(a.push({type:"fillingChar",value:v[1]}),u.hasInfilling&&a.splice(u.infillIndex,1),u.hasInfilling=!0,u.infillIndex=a.length-1):"\\"===v[0]?2===v.length&&a.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?2<v.length&&a.push({type:"text",value:v.substr(1,v.length-2)}):v===y?a.push({type:"percent",value:v}):v===c?a.push({type:"permille",value:v}):P[v]?a.push({type:"currency",value:v}):a.push({type:"text",value:v})}function X(t,e){var r,n,r=t,n;return r=-1!==t.indexOf(e)?t.replace(/0+$/,""):r}function Z(t,e,r,n){var i,o,a,u,s,f,f,y,c,m,M,h,d,t,y,c,l,i=[];return t=J(t,e.d0,e.cUt,e.fxt),o=e.uUt,a=e.sUt,(o||a)&&(u=V(o),s=(s=V(a))||"",e.fUt&&(t=(f=U(t,e.fUt,u)).value,f=f.exponentValue),y=B(t,"."),1<p(t)&&15<y.iUt+y.rUt&&(t=O(t,15)),c=r.numberGroupSizes,m=r.numberGroupSeparator,M=r.numberDecimalSeparator,h=r.negativeSign,t=K(t,d=F(y.rUt,s.length),c,m,M,h),""===(t=n?t:X(t,M))?i.push({type:"text",value:(o?o.join(""):"")+(a?a.join(""):"")}):(y={hasInfilling:g,infillIndex:-1,replaceExponent:g},"10"!==(c=t.split(M)[0])||isNaN(f)||(c="1",f+=(l=e&&e.fUt&&-1===e.fUt.aUt)?-1:1),o&&q(o,c,u,e,f,i,y,r),"0"!==c&&""===u&&a&&i.push({type:"number",value:c}),a&&Y(a,t,s,u,e,f,i,y,r))),i}function Q(t,e){var e,r,n,i,o,t,a,r,u,o,n,r,a,s,n,i,r;return(t=y(t)?"":f.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?M(t):t.match(/^0x[a-f0-9]+$/i)?m(t,10):(i=(n=A(t,e=e.NumberFormat,r=e.numberNegativePattern))[0],o=n[1],""===i&&1!==r&&(i=(n=A(t,e,1))[0],o=n[1]),""===i&&(i="+"),t=(r=(r=(o=o[0]===e.currencySymbol?$(o,1):o).indexOf("e"))<0?o.indexOf("E"):r)<0?(a=o,v):(a=$(o,0,r),$(o,r+1)),o=(n=a.indexOf("."))<0?(u=a,v):(u=$(a,0,n),$(a,n+".".length)),u=u.split(",").join(""),a=i+(u=","!==(r=",".replace(/\u00A0/g," "))?u.split(r).join(""):u),o!==v&&(a+="."+o),(s=a[a.length-1])===e.percentSymbol&&(a=$(a,0,a.length-1),-1===(n=(a=f.zf.s6t(a,"")).indexOf("."))&&(n=a.length),i="",a=i=(i=(i=i+$(a,0,n-2)+".")+$(a,n-2,2))+$(a,n+1)),t!==v&&(""===(r=A(t,e,1))[0]&&(r[0]="+"),a+="e"+r[0]+r[1]),a.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?M(a):NaN)}function A(t,e,r){var n,e,n=e.negativeSign,e=e.positiveSign;if(4!==r&&2!==r||(n=" "+n,e=" "+e),4===r||3===r){if(f.zf.dT(t,n))return["-",$(t,0,t.length-n.length)];if(f.zf.dT(t,e))return["+",$(t,0,t.length-e.length)]}else if(2===r||1===r){if(f.zf.fJ(t,n))return["-",$(t,n.length)];if(f.zf.fJ(t,e))return["+",$(t,e.length)]}else{if(0!==r)throw new Error("");if(f.zf.fJ(t,"(")&&f.zf.dT(t,")"))return["-",$(t,1,t.length-2)]}return["",t]}function tt(t,e,r){if(0!==p(u(t)-t))throw new Error(_().Exp_BadFormatSpecifier);var t=(0<=t?t:E+t+1).toString(16),t=e?t.toLowerCase():t.toUpperCase();return!y(r)&&t.length<r?N(t,r):t}function et(t,e){var r,n;return t=+t,e=+e,isNaN(t)||e%1!=0?NaN:(t=(r=t<0)?-t:t,typeof e===a||0===e?(t=Math.round(t),r?-t:t):(n=t.toString().split("e"),t=Math.round(+(n[0]+"e"+(n[1]?+n[1]-e:-e))),+((n=(t=r?-t:t).toString().split("e"))[0]+"e"+(n[1]?+n[1]+e:e))))}function T(t){var e=o.CultureManager.Fe().NumberFormat;return e="string"==typeof t?o.CultureManager.Fe(t).NumberFormat:e}function rt(t){var e,r,n,i,e="";if(Array.isArray(t)&&0<t.length)for(r=0;r<t.length;r++)n=t[r].type,i=t[r].value,"placeholder"===n?e+=" ":"fillingChar"!==n&&(e+="numberPlaceholder"===n?" ":i);return e}function O(t,e){return t="number"==typeof t&&t.toString().length>=e?+t.toPrecision(e):t}Object.defineProperty(t,"__esModule",{value:!0}),t.st=void 0,r=e("./src/common/util/common.ts"),n=e("./src/common/util/types.ts"),i=e("./src/common/util/regexhelper.ts"),f=e("./src/common/util/stringhelper.ts"),o=e("./src/common/culture/cultureInfo.ts"),y=n.lt.ht,N=f.zf.B9t,c=f.zf.lUt,v=null,a=void 0,m=parseInt,M=parseFloat,k=!(g=!1),u=Math.floor,p=Math.abs,s=Math.pow,F=Math.min,h=Number.MAX_VALUE,d="#dot#",l="#group#",$=function(t,e,r){return t.substr(e,r)},b=function(t){return i.$T.qT(t)},e=new r.ResourceManager(r.SR),_=e.getResource.bind(e),H="##################0",S="################",x={1:"+",0:"","-1":"-"},E=4294967295,w=["0","#","?"],P={"\xa4":"\xa4",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH\u20b5":"GH\u20b5","\u1265\u122d":"\u1265\u122d","\u0631.\u0633.\u200f":"\u0631.\u0633.\u200f",XDR:"XDR","\u062f.\u0625.\u200f":"\u062f.\u0625.\u200f","\u062f.\u0628.\u200f":"\u062f.\u0628.\u200f","\u062f.\u062c.\u200f":"\u062f.\u062c.\u200f","\u062c.\u0645.\u200f":"\u062c.\u0645.\u200f","\u20aa":"\u20aa","\u062f.\u0639.\u200f":"\u062f.\u0639.\u200f","\u062f.\u0627.\u200f":"\u062f.\u0627.\u200f","\u0641.\u062c.\u0642.\u200f":"\u0641.\u062c.\u0642.\u200f","\u062f.\u0643.\u200f":"\u062f.\u0643.\u200f","\u0644.\u0644.\u200f":"\u0644.\u0644.\u200f","\u062f.\u0644.\u200f":"\u062f.\u0644.\u200f","\u062f.\u0645.\u200f":"\u062f.\u0645.\u200f","\u0623.\u0645.\u200f":"\u0623.\u0645.\u200f","\u0631.\u0639.\u200f":"\u0631.\u0639.\u200f","\u0631.\u0642.\u200f":"\u0631.\u0642.\u200f","\u062c.\u0633.":"\u062c.\u0633.",S:"S","\xa3":"\xa3","\u0644.\u0633.\u200f":"\u0644.\u0633.\u200f","\u062f.\u062a.\u200f":"\u062f.\u062a.\u200f","\u0631.\u064a.\u200f":"\u0631.\u064a.\u200f","\u20b9":"\u20b9",TSh:"TSh","\u20ac":"\u20ac","\u20bc":"\u20bc","\u20bd":"\u20bd",K:"K","\u043b\u0432.":"\u043b\u0432.","\u20a6":"\u20a6",CFA:"CFA","\u09f3":"\u09f3","\xa5":"\xa5",KM:"KM","\u041a\u041c":"\u041a\u041c",USh:"USh","K\u010d":"K\u010d","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","\u0783.":"\u0783.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","\u20b1":"\u20b1",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","\u20a1":"\u20a1",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","\u20b2":"\u20b2","Bs.":"Bs.","\u0631\u064a\u0627\u0644":"\u0631\u064a\u0627\u0644",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","\u058f":"\u058f",ISK:"ISK","\u20be":"\u20be","\u200b":"\u200b","\u20b8":"\u20b8","\u17db":"\u17db","\u20a9":"\u20a9","\u0441\u043e\u043c":"\u0441\u043e\u043c",Kz:"Kz","\u20ad":"\u20ad",MTn:"MTn","\u0434\u0435\u043d":"\u0434\u0435\u043d","\u20ae":"\u20ae","\u0930\u0941":"\u0930\u0941","Afl.":"Afl.","\u07d6\u07d5.":"\u07d6\u07d5.","\u0440\u0443\u0431.":"\u0440\u0443\u0431.","z\u0142":"z\u0142","\u060b":"\u060b",R$:"R$",Db:"Db",RON:"RON","\u20b4":"\u20b4",MAD:"MAD","\u0dbb\u0dd4.":"\u0dbb\u0dd4.","Lek\xeb":"Lek\xeb",den:"den",RSD:"RSD","\u0434\u0438\u043d.":"\u0434\u0438\u043d.","\u0720.\u0723.\u200f":"\u0720.\u0723.\u200f","Rs.":"Rs.","\u0441\u043c\u043d":"\u0441\u043c\u043d","\u0e3f":"\u0e3f","m.":"m.","\u20ba":"\u20ba","\u2d37\u2d54":"\u2d37\u2d54","so\u02bbm":"so\u02bbm","\u0441\u045e\u043c":"\u0441\u045e\u043c","\u20ab":"\u20ab",HK$:"HK$",MOP:"MOP",NT$:"NT$"},D=Math.pow(2,48),t.st={yU:function(t){return Q(t,o.CultureManager.Fe())},Z6t:function(t){return Q(t,o.CultureManager.Fe("invariant"))},L9t:function(t,e,r,n){return R(t,e,r=r||o.CultureManager.Fe(),n)},Ge:function(t,e){var e,r,e;return t="string"==typeof t&&(r=(e=T(e)).numberDecimalSeparator,e=e.numberGroupSeparator,"."!==r&&(t=t.replace(b("[.]"),d)),","!==e&&(t=t.replace(b("[,]"),l)),"."!==r&&(t=t.replace(b(d),r)),","!==e)?t.replace(b(l),e):t},Jf:function(t,e){var e,r,e;return t="string"==typeof t&&(r=(e=T(e)).numberDecimalSeparator,e=e.numberGroupSeparator,"."!==r&&(t=t.replace(b("["+r+"]"),d)),","!==e&&(t=t.replace(b("["+e+"]"),l)),"."!==r&&(t=t.replace(b(d),".")),","!==e)?t.replace(b(l),","):t},hUt:function(t,e){var e,r,e;return!("string"==typeof t&&(r=(e=T(e)).numberDecimalSeparator,e=e.numberGroupSeparator,"."!==r&&"."!==e&&0<=t.indexOf(".")||","!==r&&","!==e&&0<=t.indexOf(",")))},dUt:function(t,e){return M(this.Jf(t,e))},VGt:tt,v0:G,vUt:Z,ukt:C,tge:W,mUt:rt,gUt:H,pUt:S,E8:O}},"./src/common/util/rbush.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.rbush=void 0;var o=Math.max,a=Math.min,m=Number.POSITIVE_INFINITY;function r(t,e){this.bUt=o(4,t||9),this.yUt=o(2,Math.ceil(.4*this.bUt)),e&&this.wUt(e),this.clear()}function y(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function u(t,e){c(t,0,t.children.length,e,t)}function c(t,e,r,n,i){(i=i||F(null)).minX=m,i.minY=m,i.maxX=-m,i.maxY=-m;for(var o=e,a=void 0;o<r;o++)a=t.children[o],M(i,t.leaf?n(a):a);return i}function M(t,e){t.minX=a(t.minX,e.minX),t.minY=a(t.minY,e.minY),t.maxX=o(t.maxX,e.maxX),t.maxY=o(t.maxY,e.maxY)}function s(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function l(t,e){return(o(e.maxX,t.maxX)-a(e.minX,t.minX))*(o(e.maxY,t.maxY)-a(e.minY,t.minY))}function v(t,e){var r=o(t.minX,e.minX),n=o(t.minY,e.minY),i=a(t.maxX,e.maxX),t=a(t.maxY,e.maxY);return o(0,i-r)*o(0,t-n)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&(0<=e.maxX&&e.maxX<=t.maxX||t.minX<0)&&(0<=e.maxY&&e.maxY<=t.maxY||t.minY<0)}function p(t,e){return(-1===t.minY||-1===e.minY||t.minY<=e.maxY&&e.minY<=t.maxY)&&(-1===t.minX||-1===e.minX||t.minX<=e.maxX&&e.minX<=t.maxX)}function F(t){return{children:t,height:1,leaf:!0,minX:m,minY:m,maxX:-m,maxY:-m}}(e.rbush=r).prototype={all:function(){return this.QP(this.data,[])},search:function(t){var e,r,n,i,o,a,u,s,e=this.data,r=[],n=this.toBBox;if(p(t,e))for(i=[];e;){for(o=0,a=e.children.length;o<a;o++)u=e.children[o],p(t,s=e.leaf?n(u):u)&&(e.leaf?r.push(u):g(t,s)?this.QP(u,r):i.push(u));e=i.pop()}return r},collides:function(t){var e,r,n,i,o,a,u,e=this.data,r=this.toBBox;if(p(t,e))for(n=[];e;){for(i=0,o=e.children.length;i<o;i++)if(a=e.children[i],p(t,u=e.leaf?r(a):a)){if(e.leaf||g(t,u))return!0;n.push(a)}e=n.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=F([]),this},remove:function(t,e){if(t)for(var r=this.data,n=this.toBBox(t),i=[],o=[],a,u,s,f;r||i.length;){if(r||(r=i.pop(),u=i[i.length-1],a=o.pop(),f=!0),r.leaf&&-1!==(s=y(t,r.children,e)))return r.children.splice(s,1),i.push(r),this.MUt(i),this;f||r.leaf||!g(r,n)?u?(a++,r=u.children[a],f=!1):r=null:(i.push(r),o.push(a),r=(u=r).children[a=0])}return this},toBBox:function(t){return t},compareMinX:s,compareMinY:f,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},CUt:function(t,e,r,n){for(var i,o,a,u,s,f,y,c;n.push(e),!e.leaf&&n.length-1!==r;){for(y=c=m,i=0,o=e.children.length;i<o;i++)s=h(a=e.children[i]),(f=l(t,a)-s)<c?(c=f,y=s<y?s:y,u=a):f===c&&s<y&&(y=s,u=a);e=u||e.children[0]}return e},Eit:function(t,e,r){var n,r,i,n,n=this.toBBox,r=r?t:n(t),i=[],n=this.CUt(r,this.data,e,i);for(n.children.push(t),M(n,r);0<=e&&i[e].children.length>this.bUt;)this.SUt(i,e),e--;this.TUt(r,i,e)},SUt:function(t,e){var r,n,i,i,n,r=t[e],n=r.children.length,i=this.yUt;this.AUt(r,i,n),i=this.IUt(r,i,n),(n=F(r.children.splice(i,r.children.length-i))).height=r.height,n.leaf=r.leaf,u(r,this.toBBox),u(n,this.toBBox),e?t[e-1].children.push(n):this.xUt(r,n)},xUt:function(t,e){this.data=F([t,e]),this.data.height=t.height+1,this.data.leaf=!1,u(this.data,this.toBBox)},IUt:function(t,e,r){for(var n,i,o,a,i,u,s,f,u=s=m,n=e;n<=r-e;n++)a=v(i=c(t,0,n,this.toBBox),o=c(t,n,r,this.toBBox)),i=h(i)+h(o),a<u?(u=a,f=n,s=i<s?i:s):a===u&&i<s&&(s=i,f=n);return f},AUt:function(t,e,r){var n=t.leaf?this.compareMinX:s,i=t.leaf?this.compareMinY:f,o,a;this.NUt(t,e,r,n)<this.NUt(t,e,r,i)&&t.children.sort(n)},NUt:function(t,e,r,n){t.children.sort(n);for(var i=this.toBBox,o=c(t,0,e,i),a=c(t,r-e,r,i),u=d(o)+d(a),s,f,s=e;s<r-e;s++)f=t.children[s],M(o,t.leaf?i(f):f),u+=d(o);for(s=r-e-1;e<=s;s--)f=t.children[s],M(a,t.leaf?i(f):f),u+=d(a);return u},TUt:function(t,e,r){for(var n=r;0<=n;n--)M(e[n],t)},MUt:function(t){for(var e=t.length-1,r=void 0;0<=e;e--)0===t[e].children.length?0<e?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():u(t[e],this.toBBox)},wUt:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"./src/common/util/regexhelper.ts":function(t,e,r){var i,n,o,a;function f(){}Object.defineProperty(e,"__esModule",{value:!0}),e.$T=void 0,i=r("./src/common/util/stringhelper.ts"),n=!0,o="empty",f.bue=function(t,e){var r;if(e&&f.yue[e]&&f.yue[e][t])r=f.yue[e][t];else try{null==e?(r=new RegExp(t),e=o):r=new RegExp(t,e),f.yue[e]||(f.yue[e]={}),f.yue[e][t]=r}catch(t){return null}return r.lastIndex=0,r},f.qT=function(t){var e=f.kUt[t],e;return(e=e||(f.kUt[t]=new RegExp(t,"g"))).lastIndex=0,e},f.OJ=function(t){var e=f.DUt[t],e;return(e=e||(f.DUt[t]=new RegExp(t,"gi"))).lastIndex=0,e},f.jJ=function(t,e,r){var n,i,o,a,u,s;if(f._Ut[t])return f.EUt[t];if(f.qT(n="[~?*]+").test(t)){for(i=[],o=t.split(""),u={".":!(a=void 0),"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},s=0;s<o.length;s++)"~"===(a=o[s])&&s<o.length-1?("*"===(a=o[++s])||"?"===a?i.push("\\"):e&&i.push("~"),i.push(a)):"?"===a?i.push("."):"*"===a?(i.push("[\\s\\S]"),i.push(r?"+":"*")):(u[a]&&i.push("\\"),i.push(a));return i.join("")}return null},f.tbt=function(t,e,r){var t=f.jJ(t,e,r),t;return t=t&&"^"+t+"$"},f.jUt=function(t,e){for(var r,n,r="#"+t+"0#",n=1;0<e.indexOf(r);)r=i.zf.qS(r,"#"+t+(n-1)+"#","#"+t+n+"#"),n++;return r},f.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},f.kUt={},f.DUt={},f.yue={},f._Ut={},f.EUt={},e.$T=f},"./src/common/util/stringhelper.ts":function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.zf=void 0;var o=e("./src/common/util/regexhelper.ts");function a(t,e,r){return t.substr(e,r)}function u(t){return null==t}function n(t,e,r,n){var i,e;if(u(e))throw new Error;return""===e||!(e.length>t.length)&&(i=t,e=e,r&&(i=t.toLowerCase(),e=e.toLowerCase()),n(i,e))}i.zf={OS:function(t,e,r){return r&&(t=t.toLowerCase(),e=e.toLowerCase()),""===e||0<=t.indexOf(e)},hD:function(t,e,r){var r,n;return r?(r=t.toLowerCase(),n=e.toLowerCase(),r.indexOf(n)):t.indexOf(e)},cJ:function(t,e){if(!e)return t;for(var r=t;a(r,0,e.length)===e;)r=a(r,e.length);return r},s6t:function(t,e){if(!e)return t;for(var r=t;a(r,r.length-e.length,e.length)===e;)r=a(r,0,r.length-e.length);return r},Eit:function(t,e,r){var n,i;if(e<0||e>t.length||u(r))throw new Error;return(n=a(t,0,e))+r+(i=a(t,e,t.length-e))},VP:function(t,e,r){var n,i;if(u(r)&&(r=t.length-e),e<0||r<0||e+r>t.length)throw new Error;return(n=a(t,0,e))+(i=a(t,e+r,t.length-e-r))},fJ:function(t,e,r){return n(t,e,r=void 0===r?!1:r,function(t,e){return t.slice(0,e.length)===e})},dT:function(t,e,r){return n(t,e,r=void 0===r?!1:r,function(t,e){return t.slice(-e.length)===e})},Vi:function(t,e,r,n){if(e)return r=(""+r).replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"+(n?"i":"")),r);throw new Error},OUt:function(t,e,r,n){return e=o.$T.D9t(e),i.zf.Vi(t,e,r,n)},gmt:function(t,e){var e=t.indexOf(e);return e<0||e>=t.length?t:a(t,0,e)},DU:function(t,e){for(var r=0,n=t.indexOf(e);0<=n;)r+=1,n=t.indexOf(e,n+1);return r},qS:function(t,e,r){return t.split(e).join(r)},I5:function(t,e){for(var r,n,i,r=t,n=0;n<e.length;n++)i=new RegExp("\\{"+n+"\\}","g"),r=r.replace(i,e[n]);return r},RUt:function(t,e,r){for(var n,i,n=t.toString(),i=n.length;i<e;i++)n=r?"0"+n:n+"0";return n},B9t:function(t,e){return i.zf.RUt(t,e,!0)},lUt:function(t,e){return i.zf.RUt(t,e,!1)},Dbt:function(t,e){return t===e||!t&&!e||t&&e&&t.toLowerCase()===e.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var e,r,e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},r=o.$T.qT("(?:&|<|>|\"|'|`)");return r.test(t)?t.replace(r,function(t){return e[t]}):t},dI:function(t){var e,r,e={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},r=o.$T.qT("(?:&|<|>|"|'|`)");return r.test(t)?t.replace(r,function(t){return e[t]}):t},TY:function(t){for(var e,r,e=t,r=/javascript:/gi;e.match(r);)e=e.replace(r,"");return e}}},"./src/common/util/types.ts":function(t,c){Object.defineProperty(c,"__esModule",{value:!0}),c.lt=void 0,c.lt={BUt:null,y0:function(t,e){var r,n,i,o;if(c.lt.Gh(t))for(n=0,i=t.length;n<i&&!1!==(r=e.call(t[n],n,t[n]));n++);else for(o in t)if(t.hasOwnProperty(o)&&!1===(r=e.call(t[o],o,t[o])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===c.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===c.lt.Oh(t)},jh:function(t){return c.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var e,r,n,i,o,a;if(null===t)return"null";if(!(e=c.lt.BUt))for(e=c.lt.BUt={},n=0,i=(r=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;n<i;n++)e["[object "+r[n]+"]"]=r[n].toLowerCase();return o=e.toString,"object"==(a=typeof t)||"function"==a?e[o.call(t)]||"object":a},Rh:function(t,e,r){var n,i;if(e){if(i=[].indexOf)return i.call(e,t,r);for(n=e.length,r=(r=c.lt.ht(r)?0:r)<0?Math.max(0,n+r):r;r<n;r++)if(r in e&&e[r]===t)return r}return-1},Bh:function(t,e){var r=e.length,n=t.length,i=0;if("number"==typeof r)for(;i<r;i++)t[n]=e[i],n++;else for(;void 0!==e[i];)t[n]=e[i],n++,i++;return t.length=n,t},Lh:function(t,e,r){var n,i,o,a,u,i=[];if(c.lt.Gh(t))for(o=0,a=t.length;o<a;o++)null!==(n=e(t[o],o,r))&&(i[i.length]=n);else for(u in u=void 0,t)t.hasOwnProperty(u)&&null!==(n=e(t[u],u,r))&&(i[i.length]=n);return i.concat([])},Dh:function(){for(var t,e,r,n,i,o,a,n,u,s,f,y,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(f=t.length,y=!(s=1),"boolean"==typeof(u=t[0]||{})&&(y=u,u=t[1]||{},s=2),"object"==typeof u||c.lt.Eh(u)||(u={}),f===s&&(u=this,--s);s<f;s++)if(!c.lt.ht(a=t[s]))for(o in a)r=u[o],u!==(i=a[o])&&(n=c.lt.Nh(i),y&&i&&(c.lt.Ph(i)||n)?(n=n?r&&c.lt.Nh(r)?r:[]:r&&c.lt.Ph(r)?r:{},u[o]=c.lt.Dh(y,n,i)):void 0!==i&&(u[o]=i));return u},Fh:function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var e,r;if(!t||"object"!==c.lt.Oh(t)||t.nodeType||c.lt.Uh(t))return!1;e={}.hasOwnProperty;try{if(t.constructor&&!e.call(t,"constructor")&&!e.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(r in t);return void 0===r||e.call(t,r)},Gh:function(t){var e,r;return!c.lt.ht(t)&&(e=t.length,r=c.lt.Oh(t),!c.lt.Uh(t))&&(!(1!==t.nodeType||!e)||"array"===r||"function"!==r&&(0===e||"number"==typeof e&&0<e&&e-1 in t))},Hh:function(t,e){var e=e||[];return null!==t&&(c.lt.Gh(Object(t))?c.lt.Bh(e,"string"==typeof t?[t]:t):[].push.call(e,t)),e},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t,e){if(void 0===e&&(e=!0),!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||c.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var r,n,i;if(t instanceof File)return new File([t],t.name,{type:t.type,lastModified:t.lastModified});if(t instanceof Blob)return new Blob([t],{type:t.type});for(n in r=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(n)&&(i=t[n],t.hasOwnProperty(n))&&r[n]!==i&&(r[n]="object"==typeof i?c.lt.tv(i):i);return e&&(r.toString=t.toString,r.valueOf=t.valueOf),r}}},"./src/common/util/util.res.en.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Exp_Separator=e.Exp_InvalidCast=e.Exp_InvalidNumberFormat=e.Exp_BadFormatSpecifier=e.Exp_InvalidNumberGroupSize=e.Exp_InvalidSemicolons=e.Exp_InvalidExponentFormat=e.Exp_InvalidDateFormat=void 0,e.Exp_InvalidDateFormat="Invalid date format pattern",e.Exp_InvalidExponentFormat="invalid exponent format",e.Exp_InvalidSemicolons="invalid format : too many semicolons",e.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",e.Exp_BadFormatSpecifier="Bad Format Specifier",e.Exp_InvalidNumberFormat="Invalid number format pattern",e.Exp_InvalidCast="InvalidCastException",e.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},"./src/plugins/commands/commands.entry.ts":function(t,e,r){var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.UndoManager=e.CommandManager=e.Key=void 0,n=r("./src/plugins/commands/commands.ts"),Object.defineProperty(e,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(e,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}}),i=r("./src/plugins/commands/undomanager.ts"),Object.defineProperty(e,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,e){var a,s,r,n;function i(t,e,r){var n,i;this.jS=t,this.LUt=e,this.Zc=r,n=this,Object.defineProperty(n,"shortcutKey",{get:function(){return n.FUt},set:function(t){var e,e,r,e=n.FUt;e!==t&&((e=(i=n.jS.PUt)[e])&&0<=(r=e.indexOf(n))&&e.splice(r,1),n.FUt=t)&&((e=i[t])||(i[t]=e=[]),e.splice(0,0,n))}})}function o(t){this.DJ=t,this.aT={},this.GUt={},this.PUt={}}Object.defineProperty(e,"__esModule",{value:!0}),e.CommandManager=e.Key=void 0,(n=a=e.Key||(e.Key={}))[n.left=37]="left",n[n.right=39]="right",n[n.up=38]="up",n[n.down=40]="down",n[n.tab=9]="tab",n[n.enter=13]="enter",n[n.shift=16]="shift",n[n.ctrl=17]="ctrl",n[n.space=32]="space",n[n.altkey=18]="altkey",n[n.home=36]="home",n[n.end=35]="end",n[n.pup=33]="pup",n[n.pdn=34]="pdn",n[n.backspace=8]="backspace",n[n.del=46]="del",n[n.esc=27]="esc",n[n.a=65]="a",n[n.c=67]="c",n[n.v=86]="v",n[n.x=88]="x",n[n.z=90]="z",n[n.y=89]="y",i.prototype.canUndo=function(){var t;return this.LUt.canUndo},i.prototype.execute=function(t,e,r){var n,i,o,a,n=this,o=!0;n.LUt&&e&&n.LUt.canUndo&&n.jS.UUt({command:e,result:i,vM:r,actionType:r});try{o=!1!==(i=(a=n.LUt.execute||n.LUt)(t,e,1===r))}catch(t){o=!1}return e&&o&&n.jS.HUt({command:e,result:i,vM:r,actionType:r}),i},s=i,o.prototype.register=function(t,e,r,n,i,o,a){var u,e,u=this,e=new s(u,e,t);u[t]=e,r&&(e.shortcutKey=u.getShortcutKey(r,n,i,o,a))},o.prototype.getCommand=function(t){return this[t]},o.prototype.execute=function(t){var e=this[t.cmd];if(e)return e.execute(this.DJ,t,0)},o.prototype.setShortcutKey=function(t,e,r,n,i,o){var a,t,t,u,s,a=this;if(t)(t=a[t])&&(t.shortcutKey=a.getShortcutKey(e,r,n,i,o));else if(t=a.getShortcutKey(e,r,n,i,o),u=a.getCommands(t))for(s=u.length-1;0<=s;s--)u[s].shortcutKey=void 0},o.prototype.getShortcutKey=function(t,e,r,n,i){var o,o;if(t)return(o=(o="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):a[t])||t)+(e?"+ctrl":"")+(r?"+shift":"")+(n?"+alt":"")+(i?"+window":"")},o.prototype.getCommands=function(t){return this.PUt[t]},o.prototype.addListener=function(t,e){this.aT[t]=e},o.prototype.removeListener=function(t){delete this.aT[t]},o.prototype.HUt=function(t){var e,r,e=this.aT;for(r in e)e.hasOwnProperty(r)&&e[r](t)},o.prototype.cM=function(t,e){this.GUt[t]=e},o.prototype.zUt=function(t){delete this.GUt[t]},o.prototype.UUt=function(t){var e,r,e=this.GUt;for(r in e)e.hasOwnProperty(r)&&e[r](t)},o.prototype.L0=function(){this.DJ=null},e.CommandManager=o},"./src/plugins/commands/undomanager.ts":function(t,e){var r;function n(t,e,r){var n=this;n.DJ=t,n.VUt=e=e<0?2147483647:e,n.Hw=r,n.Nmt=[],n.kmt=[],n.YUt=!1}Object.defineProperty(e,"__esModule",{value:!0}),e.UndoManager=void 0,n.prototype.dM=function(t,e){var r,n,i,o,r=this;if(t){if(1===e)r.kmt.push(t);else{if(n=r.VUt,i=r.Nmt.length,0<n&&n<=i)for(o=0;o<i-n+1;o++)r.Nmt.shift();r.Nmt.push(t),0===e&&(r.kmt=[])}r.YUt=!0}},n.prototype.canUndo=function(){return 0<this.Nmt.length},n.prototype.undo=function(){var t,e,r,n,i,t=this,e=t.Nmt,r=!0;if(t.Hw&&t.canUndo()){n=e[e.length-1];try{(i=t.DJ.commandManager()[n.cmd])&&(n.hM=!0,r=i.execute(t.DJ,n,1))}catch(t){r=!1}delete n.hM,!1!==r&&(e.pop(),t.YUt=!0,t.kmt.push(n))}return r},n.prototype.canRedo=function(){return 0<this.kmt.length},n.prototype.redo=function(){var t,e,r,n,i,t=this,e=t.kmt,r=!0;if(t.Hw&&t.canRedo()){n=e[e.length-1];try{(i=t.DJ.commandManager()[n.cmd])&&(n.hM=!0,r=i.execute(t.DJ,n,2))}catch(t){r=!1}delete n.hM,!1!==r&&(e.pop(),t.YUt=!0,t.Nmt.push(n))}return r},n.prototype.getRedoStack=function(){return this.kmt.slice()},n.prototype.getUndoStack=function(){return this.Nmt.slice()},n.prototype.maxSize=function(t){var e=this;return arguments.length<1?e.VUt:(0<=t&&(e.VUt=t),e)},n.prototype.clear=function(){this.Nmt=[],this.kmt=[]},n.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},n.prototype.L0=function(){this.DJ=null},n.prototype.setNewChangeStatus=function(t){this.YUt=t},n.prototype.getNewChangeStatus=function(){return this.YUt},e.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,e,r){var n,i,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./src/plugins/formatter/formatter.ts"),e)},"./src/plugins/formatter/formatter.res.en.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Exp_InvalidCast=e.Exp_ValueIllegal=e.Exp_TokenIllegal=e.Exp_DuplicatedDescriptor=e.Exp_ValueIsNull=e.Exp_FormatIllegal=e.Exp_InvalidBackslash=e.Exp_TokenIsNull=void 0,e.Exp_TokenIsNull="token is null",e.Exp_InvalidBackslash="the '\\' cannot be evaluated",e.Exp_FormatIllegal="format is illegal.",e.Exp_ValueIsNull="value is null",e.Exp_DuplicatedDescriptor="The type of descriptor was added.",e.Exp_TokenIllegal="token is illegal.",e.Exp_ValueIllegal="value is illegal.",e.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(l,t,e){var E,g,v,p,R,F,r,e,e,f,s,b,_,w,m,I,B,L,c,G,z,K,J,V,D,W,y,U,q,Y,X,M,H,N,u,k,h,Z,$,d,S,Q,tt,et,rt,r,nt,it,ot,at,ut,st,ft,yt,ct,mt,Mt,ht,dt;function n(t,e){var e,t,r,n;if(xt.call(this,e),(e=this).Jq=t,r=T((t=e.Jq)[0],s,!1),n=t.indexOf("-"),!(r&&-1<n))throw new Error(f().Exp_TokenIllegal);e.ZUt=A(t,1,n-1),0<(t=g.zf.VP(t,0,n+1)).length&&(e.Iat=parseInt(t,16))}function i(t,e){this.formatCached=t,this.cultureName=e,this.typeName=""}function lt(t,e){var n,r,i,o,a,u,s,i;for(xt.call(this,e),n=this,u=0,s=(a=["<=","<>",">=",">","<","="]).length;u<s;u++)if(g.zf.fJ(t,r=a[u],!0)){i=g.zf.VP(t,0,r.length),i=parseFloat(i),H(i)||(o=i);break}if(o===b&&o===_)throw new Error(f().Exp_TokenIllegal);n.value=o,n.WUt=r,n.isMeetCondition=function(t){var e=n.WUt,r=n.value;switch(e){case"<=":return t<=r;case"<>":return t!==r;case">=":return r<=t;case">":return r<t;case"<":return t<r;case"=":return t===r}}}function x(t,e){xt.call(this,e);var e=this;if(e.token=t,e.type=parseInt(g.zf.VP(t,0,"dbnum".length),10),e.type<0||4<e.type)throw new Error(f().Exp_TokenIllegal)}function P(t,e,r,n,i,o){St.call(this,e,r,n,o);var e=this;e.pU=e.QUt(Nt(t)),e.KUt=i,e.JUt=2,e.Hc()}function vt(t,e){var e,t,r;if(xt.call(this,e),e=this,"h"===(t=h(t)[0]))r=3600;else if("m"===t)r=60;else{if("s"!==t)throw new Error(f().Exp_TokenIllegal);r=1}e.XUt=function(t){var t=t/1e3/r;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}function gt(t,e){var e,e;xt.call(this,e),null!==(e=V.exec(t))&&(e=Number(e[1]),0<=--e)&&e<J.length&&(t=J[e]),this.foreColor=t}function C(t,e,r,n){var r,n,i,t,e,t;function o(t,e){var r,n,i,o,a,u,s,r=[],n='"';if(t!==b&&""!==t){for(i=!1,a=!(o=[]),u=0;u<t.length;u++)(s=t[u])!==n||i||(a=!a),i||a||s!==e?o.push(s):(r.push(o.join("")),o=[]),i="\\"===s&&!i;r.push(o.join(""))}return r}St.call(this,e,r,n),(r=this).qUt=!1,r.JUt=1,r.$Ut=_t(t),n=Nt(t),-1<(i=(n=_t(n=e?Dt(n,r.j9t.Nat,r.j9t.currencySymbol()):n)).indexOf("/"))&&(t=o(n,"/"))&&2===t.length&&(r.tHt=t[1],e=t[0])&&(-1<(t=e.lastIndexOf(" "))?(r.nHt=A(e,0,t),r.eHt=A(e,t+1,e.length-t-1)):r.eHt=e),r.iHt=n}function o(t,e,r,n){St.call(this,e,r,n),0<arguments.length?(o.rHt(t)||$(),this.$Ut=t):this.$Ut="General",this.JUt=0}function a(t,e,r,n){var i,r,i=this;St.call(i,e,r,n),r=Nt(t,!1),r=Ht(r=_t(r=e?Dt(r,i.j9t.Nat,i.j9t.currencySymbol()):r)),i.pU=r,i.JUt=3}function A(t,e,r){return t.substr(e,r)}function pt(t){return p.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function Ft(t,e){if("\\"===t[e])throw new Error(f().Exp_InvalidBackslash);if(0<e-1&&e-1<t.length&&"\\"===t[e-1]){if(e-2<0)return 1;if(0<e-2&&e-2<t.length)return"\\"!==t[e-2]}}function bt(t){if(t)return"["+t+"]";throw new Error(f().Exp_TokenIsNull)}function _t(t){var e,r,n,i,o;if(t===_||t===b||""===t)return t;for(e="",n=!1,i=r=0;i<t.length;i++)'"'===(o=t[i])?(n=!n,e+=o):n?e+=o:"["===o?r++:"]"===o?--r<0&&(r=0):0===r&&(e+=o);return e.toString()}function wt(t){return t=Dt(t,"[",""),Dt(t,"]","")}function Dt(t,e,r){return!t||t===S.oHt||T(e,r,!0)?t:(e=e.replace(z,"\\$1"),t.replace(new RegExp(e,"g"),r))}function Ht(t){for(var e,r,n,i,o,e=t.length,r=!1,n="",i=0;i<e;i++)"\\"===(o=t.charAt(i))?(r=!r)&&"@"!==t.charAt(i+1)||(n+=o):(r=!1,n+=o);return n}function T(t,e,r){return r?h(t)===h(e):t===e}function Nt(t,e){var r,n,i,o;for(1===arguments.length&&(e=!0),r=!1,n="",i=0;i<t.length;i++){if('"'===(o=t[i]))r=!r;else if(!r&&!e&&"/"===o&&!Ft(t,i))continue;n+=o}return n}function kt(t){for(var e,r,n,i,o,e="",r=!1,n=0,i=t.length;n<i;n++)'"'===(o=t[n])&&(r=!r),"E"===o||r||(e+=h(o));return e}function $t(t,e){var r,n,i,o;if(t&&t!==S.oHt)for(n=kt(r=Nt(t)),i=0;i<e.length;i++)if(0===(o=n.indexOf(e[i]))||0<o&&"_"!==n[o-1]&&"*"!==n[o-1])return!0;return!1}function St(t,e,r,n){this.j9t=t,this.aHt=e,this.cultureName=r,this.O9t=n}function xt(t){this.Nat=t}function Pt(t){var e,t,r,t=wt(t);return t&&t!==S.oHt&&(r=t[0],-1<["<",">","="].indexOf(r)?(e=nt).Name="ConditionalFormatPart":g.zf.fJ(t,"DBNum",!0)?(e=it).Name="DBNumberFormatPart":T(t[0],s,!1)&&-1<t.indexOf("-")?(e=rt).Name="LocaleIDFormatPart":At(t)?(e=at).Name="ABSTimeFormatPart":t.indexOf(s)<0&&3<=t.length&&((e=ut).Name="ColorFormatPart")),e}function Ct(t,e){var r,t,r=!1,t=$t(t=t?t.toString():S.oHt,["general"])?ft:ot.a0(t)?ot:$t(t,["E+","E-","#",".",",","%","0","/","?"])||e?(r=!0,st):(r=!0,yt);return{uHt:r,uit:t}}function At(t){var e,r,n,e=h(t),r=e[0];if("h"===r||"m"===r||"s"===r){for(n=1;n<e.length;n++)if(r!==e[n])return;return 1}}function Tt(t,e,r){var t,r,t=t?t.cultureInfo():N(r);return(e<4||4===e&&("ko-kr"===r||"ko-kr"===t.name()))&&(r=t.NumberFormat.dbNumber)?r[e]:b}function Ot(t,e,r,n,i){var o,r,o=t;if(!M(n)&&e instanceof Date){if(!(r=Tt(r,n.type,i)))return t;o=n.sHt(o,r,!0),o=(o=(o=1===n.type?o.replace(new RegExp(B,"g"),L):o).replace("@"+m.cHt,v.ct.Pe(e,m.cHt))).replace("@"+m.fHt,v.ct.Pe(e,m.fHt)),o=n.sHt(o,r,!1)}return o}function jt(t,e,r,n,i){var o,a,u,s,f,y,c;if(!M(n)&&(o=Tt(r,n.type,i),!M(o)))for(a=!1,u=void 0,s=N(i),f=void 0,y=0,c=t.length;y<c;y++)"decimalSeparator"===t[y].type&&(a=!0,t[y].value=n.sHt(t[y].value,o,e),u=t[y].value),"number"===t[y].type&&(t[y].value=a?n.sHt(u+t[y].value,o,e).slice(1):n.sHt(t[y].value,o,e),"ja-JP"===s.name())&&1<t[y].value.length&&("\u4e00\u5343"!==(f=t[y].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[y].value=t[y].value.substr(1)));return t}function O(t,e){var r=this;0===arguments.length?(r.formatCached="General",r.E9t=new ft):r.Hc(t,e)}function j(t,e){var r,n,r=dt.call(this,t,e)||this,n=r;return n.lHt=!0,n.PropertyChanged=[],S.Ji(t)&&(t="General"),n.formatCached=t,n.cultureName=e,n.init(),r}function Et(t){for(var e,r,n,i,o,e=[],r=0,n=0,i=t.length,o=0;o<i;o++)"_"===t[o]?r++:(";"!==t[o]||0!==r&&r%2!=0||(e.push(t.substring(n,o)),n=o+1),r=0);return n<=i&&e.push(t.substring(n,i)),e}function Rt(i){for(var o,t,e,r,a,u,n,s,f,o=[],t=!1,e=!1,r="",a=function(t,e){return{type:t,content:e}},u=function(t){return!M(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},n=function(t,e){if(u(t)){for(var r=t,n=i[e+1];u(n)&&n.toLowerCase()===t.toLowerCase()&&(r+=n,e<i.length-1);)n=i[++e+1];o.push(a("symbolic",r))}else"a"===t&&"aaa"===i.slice(e,e+3).toLowerCase()?(o.push(a("symbolic",i.slice(e,e+3))),e+=2):o.push(a("text",t));return e},s=0;s<i.length;s++)if(f=i[s],t)o.push(a("text","\\"+f)),t=!1;else if(e&&'"'!==f)r+=f;else switch(f){case"\\":t=!0;break;case'"':e&&(o.push(a("text",'"'+r+'"')),r=""),e=!e;break;default:s=n(f,s)}return o}E=this&&this.__extends||(ht=function(t,e){return(ht=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ht(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t.Hf=t.FormatterBase=void 0,g=e("./src/common/util/stringhelper.ts"),v=e("./src/common/util/datetimehelper.ts"),p=e("./src/common/util/types.ts"),R=e("./src/common/util/numberhelper.ts"),F=e("./src/common/culture/cultureInfo.ts"),r=e("./src/common/util/common.ts"),e=e("./src/plugins/formatter/formatter.res.en.ts"),p.lt.Dh(r.SR.en,e),e=new r.ResourceManager(r.SR),f=e.getResource.bind(e),s="$",p.lt.dt=function(t,e){if(p.lt.ht(t))return"null"===e;if(e){if(e instanceof Function&&t instanceof e)return!0;if(typeof t===e)return!0;if("function"===e&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===e.toLowerCase())return!0;if("DateTime"===e)return t instanceof Date;var t;if("TimeSpan"===e)return t instanceof Date&&0<=(t=v.ct.o0(t))&&t<1;"string"==typeof e&&"undefined number boolean string".indexOf(e)}return!1},p.lt.q8=function(t,e){return!!R.st.hUt(t,e)&&("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=R.st.Jf(t,e),p.lt.dt(t,"number")||p.lt.dt(t,"DateTime")||p.lt.dt(t,"TimeSpan")||t&&!p.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(2<=t.length&&"0"===t[0]&&"x"===t[1]))},p.lt.uJ=function(t){return p.lt.ht(t)||""===t?0:p.lt.dt(t,"number")?t:p.lt.dt(t,"string")&&!isNaN(t)?R.st.yU(t):p.lt.dt(t,"boolean")?t?1:0:p.lt.dt(t,"DateTime")?v.ct.o0(t):p.lt.dt(t,"TimeSpan")?Math.floor(v.ct.o0(t)):parseFloat(t)},b=null,_=void 0,w=Math.abs,m={fHt:"yy",hHt:"y",cHt:"yyyy",dHt:"m",vHt:"mm",mHt:"mmm",gHt:"mmmm",pHt:"mmmmm",bHt:"d",yHt:"dd",wHt:"aaa",MHt:"aaaa",CHt:"h",SHt:"hh",THt:"m",AHt:"mm",IHt:"s",xHt:"ss",IGt:"e",NHt:"AM/PM",kHt:"A/P",DHt:"@mmmmm",_Ht:new Date(1899,11,30,0,0,0,0)},I=[m.hHt,m.fHt,m.cHt,m.dHt,m.vHt,m.mHt,m.gHt,m.pHt,m.bHt,m.yHt,m.wHt,m.MHt,m.CHt,m.SHt,m.THt,m.AHt,m.IHt,m.xHt,"ggg","gg","g","ee","e"],B="\u4e00\u5341",L="\u5341",c={EHt:0,jHt:1,OHt:2,_text:3},G=[{EHt:0,jHt:0,OHt:0,_text:0},{EHt:0,jHt:1,OHt:0,_text:0},{EHt:0,jHt:1,OHt:2,_text:0},{EHt:0,jHt:1,OHt:2,_text:3}],z=new RegExp("([.+?*$^\\[\\](){}|/])","g"),K=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["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"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss 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","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","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","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","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 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","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["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","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","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","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","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","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF 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","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF 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"]],J=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333"],V=new RegExp("color\\s*(\\d+)","i"),D=p.lt.dt,W=p.lt.Nh,y=R.st,U=y.gUt+"."+y.pUt,q=y.mUt,Y=y.L9t,X=y.E8,M=p.lt.ht,H=isNaN,N=function(t){return F.CultureManager.Fe(t)},u=function(t){return N(t).DateTimeFormat},k=function(t){return N(t).NumberFormat},h=function(t){return t&&t.toLowerCase()},Z=function(t){return t&&t.toUpperCase()},$=function(){throw new Error(f().Exp_FormatIllegal)},d=function(){return F.CultureManager.booleanMapping},S={oHt:"",I5:function(){for(var t,e,r,n,i,o,a,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return b;for(i=r[0],o=1;o<arguments.length;o++)a=new RegExp("\\{"+(o-1)+"\\}","gm"),i=i.replace(a,arguments[o]);return i},Ji:function(t){return!t||t===S.oHt}},tt=function(t){var t=t.charCodeAt(0);return 48<=t&&t<=57},et=function(t){var t=t.charCodeAt(0);return 9<=t&&t<=13||32===t||133===t||160===t},n.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=N(t.Iat)),t.RHt},n.prototype.currencySymbol=function(){return this.ZUt?g.zf.Vi(this.ZUt,"\\.",'"."'):S.oHt},n.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},n.prototype.toString=function(){return this.Jq?bt(this.Jq):S.oHt},n.Name="LocaleIDFormatPart",rt=n,i.prototype.format=function(t,e){return b},i.prototype.parse=function(t){return b},i.prototype.formatString=function(t){return this.formatCached},i.prototype.toJSON=function(){var t,e,t={};for(e in this)this.hasOwnProperty(e)&&(t[e]=this[e]);return t},i.prototype.fromJSON=function(t){if(t)for(var e in t)t[e]!==_&&(this[e]=t[e])},t.FormatterBase=r=i,lt.prototype.toString=function(){return bt(this.WUt+this.value.toString())},nt=lt,x.prototype.sHt=function(t,e,r){var n,i,o,a,u,s,f,y,c,m;if(!t||t===S.oHt)return t;for(u=!(a=o=-1),c=(i=n=t).length-1;0<=c;c--)m=i[c],!H(m)&&!T(m," ",!1)||T(m,".",!1)&&!u?(T(m,".",!1)&&(u=!0),-1===o&&(o=c),a=c):-1<a&&-1<o&&(s=A(i,a,o-a+1),f=parseFloat(s),H(f)||(y=x.numberString(s,e,r),n=g.zf.VP(n,a,o-a+1),n=g.zf.Eit(n,a,y)),u=!(a=o=-1));return-1<a&&-1<o&&(s=A(i,a,o-a+1),f=parseFloat(s),H(f)||(y=x.numberString(s,e,r),n=g.zf.VP(n,a,o-a+1),n=g.zf.Eit(n,a,y))),n},x.prototype.toString=function(){if(-1<this.type)return bt("DBNum"+this.type);throw new Error},x.numberString=function(t,e,r){var n,t,i,o,n=x.formatNumberString,t=t.split(".");if(t){if(1===t.length)return n(t[0],e.numbers,r?e.letters:b);if(2===t.length)return(i=n(t[0],e.numbers,r?e.letters:b))+"."+(o=n(t[1],e.numbers))}throw new Error(f().Exp_ValueIllegal)},x.formatNumberString=function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,n=t,i=0,a=0;if(2===arguments.length){for(u="";i<n.length;i++)o=A(n,i,1),u+=e[a=parseInt(o,10)];return u}if(3===arguments.length){if(!r)return x.formatNumberString(t,e);for(s=0,f="",y=n.length,c=!1,m=[];i<y;i++)-1<(M=r.length-1-i)?m.push(r[M].toString()):m.push(S.oHt);for(h=[],d=m.length-1;0<=d;d--)h[m.length-d-1]=m[d];for(m=h,l=!1,d=0;d<y;d++)o=A(n,d,1),a=parseInt(o,10),v=void 0,g=S.oHt,0<y-d-16?(v=e[a],l=!(g="")):d!==y-1&&d!==y-5&&d!==y-9&&d!==y-13?"0"===o?(g=v="",s+=1):s=(g=(v="0"!==o&&0!==s?e[0]+e[a]:e[a],m[d]),0):"0"!==o&&0!==s?(v=e[0]+e[a],g=m[d],s=0):"0"!==o&&0===s||l?(v=e[a],g=m[d],s=0,l=!1):("0"===o&&3<=s?g=v="":11<=y?v="":(v="",g=m[d]),s+=1),(p=v+g===S.oHt)||(c=!1),d!==y-13||c||(g=m[d],c=!0),d!==y-9||c||(g=m[d],c=!0),d===y-1&&(g=m[d],c=!0),f=f+v+g;return 0===(F=parseInt(t,10))?e[0]:f}},it=x,P.prototype.Hc=function(){var t,e,r,n,i,o,a,t=this,e={y4:t.pU},r;if(P.a0(e.y4)){if(n=t.BHt(e),i=u(this.cultureName).amDesignator&&u(this.cultureName).pmDesignator,t.hasJD=t.Vi(e.y4,m.pHt,'"'+m.DHt+'"',!0,!1,e,!1),t.Vi(e.y4,m.gHt,"MMMM",!0,!1,e,!1),t.Vi(e.y4,m.mHt,"MMM",!0,!1,e,!1),t.LHt(e.y4,e),t.Vi(e.y4,m.wHt,"ddd",!0,!0,e,!0),t.Vi(e.y4,m.MHt,"dddd",!0,!0,e,!0),n&&i||(t.Vi(e.y4,m.CHt,"H",!0,!0,e,!1),t.Vi(e.y4,m.SHt,"HH",!0,!0,e,!1)),t.aHt&&(t.j9t||N(t.cultureName).NumberFormat.dbNumber)&&(t.FHt=t.FHt||t.Vi(e.y4,m.cHt,'"@'+m.cHt+'"',!0,!1,e,!0),t.FHt=t.FHt||t.Vi(e.y4,m.fHt,'"@'+m.fHt+'"',!0,!1,e,!0)),t.KUt)for(o=0;o<t.KUt.length;o++)a=t.KUt[o],t.Vi(e.y4,a.Nat,"@"+a.Nat,!0,!0,e,!0);t.PHt=e.y4}else $()},P.prototype.formatString=function(){return this.pU},P.prototype.format=function(e){var t,r,n,i,o,a,u,s,f,y,c,t=this,r=S.oHt,n=b;try{if((n=(n=v.ct._DT(e))&&H(n.valueOf())?b:n)?e=n:r=e.toString(),n&&(r=v.ct.L9t(n,t.PHt,t.j9t&&t.j9t.cultureInfo()||N(t.cultureName),t.O9t),t.hasJD&&(i=N(t.cultureName).DateTimeFormat.monthNames[n.getMonth()],r=g.zf.Vi(r,m.DHt,A(i,0,1))),t.KUt))for(o=24*(v.ct.o0(n)-v.ct.o0(m._Ht))*60*60*1e3,a=0;a<t.KUt.length;a++)s=(u=t.KUt[a]).XUt(o),M(s)||(f=u.Nat.replace("[","\\[").replace("]","\\]"),y=u.Nat.replace("[","").replace("]",""),c=g.zf.B9t(s+"",y.length),r=g.zf.Vi(r,"@"+f,c))}catch(t){r=pt(e)}return Ot(r,e,t.j9t,t.aHt,t.cultureName)},P.prototype.parse=function(e){var t,e,r,r,n;if(!e||e===S.oHt)return b;if(t=this,"true"===(r=h(e=e)))return!0;if("false"===r)return!1;if(t.PHt&&(r=v.ct.nUt(e,t.PHt,N(t.cultureName))))return r;try{return(n=v.ct._DT(e))&&!H(n)?n:(n=new Date(e),H(n.valueOf())?e:n)}catch(t){return e}},P.prototype.QUt=function(t){for(var e,r,n,i,o,a,e=t,r="",n=!1,i=0;i<e.length;i++)'"'===(o=e[i])?n=!n:n||"Y"!==o&&"D"!==o&&"S"!==o&&"E"!==o&&"G"!==o&&("M"!==o||T("A",a=e[i-1],!0)||T("P",a,!0))||(o=h(o)),r+=o;return r},P.prototype.BHt=function(t){var e,r,n,i,o,a,e=u(this.cultureName).amDesignator,r=u(this.cultureName).pmDesignator,n=[m.NHt];for(n.push(e&&r?e+"/"+r:m.NHt),n.push(m.kHt),i=["tt","tt","t"],o=t.y4,a=0;a<3;a++){if(g.zf.OS(o,i[a]))return!0;if(g.zf.OS(o,n[a],!0))return t.y4=g.zf.Vi(o,n[a],i[a],!0),!0}return!1},P.prototype.LHt=function(t,e){for(var r,n,i,o,a,r=Rt(t),n=-1,i=-1,o=0;o<r.length;o++)"symbolic"===(a=r[o]).type?"m"===a.content[0].toLowerCase()?0<=n?(a.content=a.content.toLowerCase(),n=-1):(a.content=a.content.toUpperCase(),i=o):"s"===a.content[0].toLowerCase()?0<=i&&(r[i].content=r[i].content.toLowerCase(),i=-1):i=("h"===a.content[0].toLowerCase()&&(n=o),-1):"0"===a.content&&"."===r[o-1].content&&0<=i&&o===i+2&&(r[i].content=r[i].content.toLowerCase());e.y4=r.map(function(t){return t.content}).join("")},P.prototype.Vi=function(t,e,r,n,i,o,a){var u,s,f,y,c,m,M,h,d,l,v;if(n||i){for(u=[],s=!0,!P.hasDate(t)&&P.hasTime(t)&&(s=!1),f=!1,y=0;y<t.length;y++){if(c=t[y],P.hasTime(c)&&!f?s=!1:P.hasDate(c)&&!f&&(s=!0),n&&T(c,e[0],a)&&s||i&&T(c,e[0],a)&&!s){for(m=!0,M=0;M<e.length;M++)if(M+y>=t.length||!T(e[M],t[M+y],a)){m=!1;break}if(h=y+e.length-1,m&&1+h<t.length){for(d=t[h],l=-1,l=1+h;l<t.length&&T(d,t[l],a);l++);1+h<l&&(y=l,m=!1)}m&&!f&&u.splice(0,0,y)}'"'===c&&(f=!f)}if(o.y4=t,0<u.length){for(y=0;y<u.length;y++)o.y4=g.zf.VP(o.y4,v=u[y],e.length),o.y4=g.zf.Eit(o.y4,v,r);return!0}}return!1},P.hasTime=function(t){return-1<g.zf.hD(t,m.CHt[0],!0)||-1<g.zf.hD(t,m.IHt[0],!0)},P.hasDate=function(t){return-1<g.zf.hD(t,m.fHt[0],!0)||-1<g.zf.hD(t,m.bHt[0],!0)},P.a0=function(t,e){return $t(t,e||I)},ot=P,t.Hf=ot,vt.Name="ABSTimeFormatPart",at=vt,gt.prototype.toString=function(){return bt(this.foreColor)},gt.Name="ColorFormatPart",ut=gt,C.prototype.formatString=function(){return this.$Ut},C.prototype.format=function(t){var e,r,t,n,i,o,a,u,s,f,y,c,m,m,m,M,h,h,d,l,l,h;return D(t,"boolean")?t.toString().toUpperCase():(e=this,r=p.lt.uJ(t),H(r)||!isFinite(r)||H(t)?"string"==typeof t?t:b:(t=N(e.cultureName),e.eHt&&e.tHt?(f={value:0},y={value:0},c={value:0},m=e.GHt(),C.getFraction(r,m,f,y,c)?(1<(m=C.getGCD(y.value,c.value))&&(y.value/=m,c.value/=m),e.nHt?(s="",1===c.value&&(f.value+=y.value,y.value=0,c.value=0),(m=q(Y(f.value,e.nHt,t)))&&"0"!==m&&(s=s+m+" "),0===f.value&&r<0&&(s+=t.NumberFormat.negativeSign),0===r&&(s+="0"),i=e.tHt,o=parseFloat(i),!H(o)&&0<o&&(0!==y.value&&0!==c.value&&(y.value*=o/c.value),c.value=o,i=i.replace(/^\d+/,C.toNumberPlaceholder(o)),u=(a=Math.ceil(y.value))-y.value,y.value=u<=.5&&0<=u?parseFloat(a.toString()):parseFloat((a-1).toString())),M=e.eHt,h=parseFloat(M),H(h)||0!==h||(h=M.length,(l=(d=y.value.toString()).length)<h?M=M.substr(0,h-(h-l)):h<l&&(d=d.substr(0,l-(l-h)),y.value=parseInt(d,10))),l=e.UHt(y.value,c.value,M,i,t),0===y.value&&(l=l.replace(/./g," "),""===m)?"0 "+l:""===(s+=l)?"0":s):(s="",h=f.value*c.value+y.value,i=e.tHt,0<(o=parseFloat(i))?(h*=o/c.value,c.value=o,s+=(h=(u=(a=Math.ceil(h))-h)<=.5&&0<=u?parseFloat(a.toString()):parseFloat((a-1).toString()))+"/"+c.value):s+=e.UHt(h,c.value,e.eHt,e.tHt,t),0===h?"0":s)):r.toString()):jt(n=Y(r,e.iHt,t),e.qUt,e.j9t,e.aHt,e.cultureName)))},C.prototype.parse=function(t){var e,r,r,n,i,o,i,n,i,n,a,u,i,n,o,s,e=this;if(t&&t!==S.oHt){if("TRUE"===(r=Z(t))||r===d()&&d().boolean_true)return!0;if("FALSE"===r||r===d()&&d().boolean_false)return!1;if((r="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),n=e.eHt&&e.tHt,i=e.zHt(e.iHt).HHt,(n||i)&&(o=0,n&&e.nHt&&0<(i=(t=t.trim()).lastIndexOf(" "))&&i<t.length-1&&(o=parseInt(t.substr(0,i),10),t=t.substr(i+1)),0<(n=t.indexOf("/")))&&n<t.length-1&&(i=t.substr(0,n),n=t.substr(n+1),!(H(i)||H(n)||(a=parseInt(i,10),u=parseInt(n,10),H(a))||H(u)||0===u)))return o+a/u;if(t=e.VHt(t),t=e.YHt(t),n=(i=e.zHt(t)).HHt,o=i.$6t,e.ZHt(o)&&(o=g.zf.OUt(o,k(e.cultureName).numberGroupSeparator,"",!1),s=y.dUt(o,e.cultureName),!H(s))&&isFinite(s)){if(n&&(s=X(s/100,15)),r){if("-"===o.charAt(0)||"+"===o.charAt(0))return b;s=-1*w(s)}return s}}return b},C.prototype.GHt=function(){var t,e,r,n,i,t,e=this.tHt,r=0;if(e)for(n=e.length,i=0;i<n&&e[i].match(/[#?\d]/);i++)r++;return r},C.prototype.ZHt=function(t){for(var e,r,n,i,o,a,u,e="",r=0,n=0,i=0,o=b,a=k(this.cultureName),u=t.length-1;-1<u;u--){if(t[u]===a.numberDecimalSeparator)r++,0<i&&(o=!1),e="";else if("e"===h(t[u])){if(n++,e="",u===t.length-1)return!1}else if(t[u]===a.numberGroupSeparator)o=3===e.length,i++,e="";else if("-"===t[u]||"+"===t[u]){if(0<u&&"e"!==h(t[u-1]))return!1}else{if(!tt(t[u]))return!1;if(e+=t[u],0===u&&0===parseInt(e,10)&&o)return!1}if(1<r||1<n||!1===o)return!1}return!0},C.prototype.VHt=function(t){for(var e,r,n,t,i,o,a,a,u,e=t,r=[],n=0;n<e.length;n++)tt(e[n])&&r.push(n);for(i=[(t=k(this.cultureName)).currencyDecimalSeparator,t.currencyGroupSeparator,t.currencySymbol,s,t.nanSymbol,t.negativeInfinitySymbol,t.negativeSign,t.numberDecimalSeparator,t.numberGroupSeparator,t.percentDecimalSeparator,t.percentGroupSeparator,t.percentSymbol,t.perMilleSymbol,t.positiveInfinitySymbol,t.positiveSign],o=e.length-1;-1<o;o--)if(a=e[o],et(a)&&i.indexOf(a.toString())<=-1)(o<r[0]||r[r.length-1]<o)&&(e=g.zf.VP(e,o,1));else if(("-"===a||"+"===a)&&(a=0<o?e[o-1].toString():b,(u=["e","E","(",k(this.cultureName).currencySymbol,s]).indexOf(a)<0))break;return e},C.prototype.YHt=function(t){var e,r;if(g.zf.fJ(t,s)){if((e=g.zf.VP(t,0,1)).indexOf(s)<0)return e}else if(r=k(this.cultureName).currencySymbol,s!==r&&g.zf.fJ(t,r)&&(e=g.zf.VP(t,0,r.length)).indexOf(r)<0)return e;return t},C.prototype.zHt=function(t){var e,r,n,e=k(this.cultureName).percentSymbol,r=!0,n=t;return g.zf.fJ(t,e)?n=g.zf.VP(t,0,e.length):g.zf.dT(t,e)?n=g.zf.VP(t,t.length-e.length,e.length):r=!1,{$6t:n,HHt:r=g.zf.OS(n,e)?!1:r}},C.prototype.UHt=function(t,e,r,n,i){var o,a,u,s,i,o,o=q(Y(t,r,i)),a,u,s=q(Y("0."+e,"#."+n,i,!0)),i=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",o=o+"/"+s.substr(s.indexOf(i)+1);return""===r&&(o=t+o),""===n&&(o+=e),o},C.getGCD=function(t,e){var r,n,i;if(0===t)return w(e);if(0===e)return w(t);for(i=(r=Math.max(t,e))%(n=Math.min(t,e));0!==i;)i=(r=n)%(n=i);return w(n)},C.getFraction=function(t,e,r,n,i){var o,a,u,s,f,f,y,c,m,M,h,d,l,v,o=0,a=0,u=0,s=0,f=Math.ceil;for(0<t?o=1===(s=t-f(t)+1)?(s=0,t):f(t)-1:t<0&&(o=f(t),s=f(t)-t),f=Math.pow(10,e-1),(y=Math.pow(10,e)-1)<2&&(y=2),c=!1,m=0,M=f=f<2?2:f;M<=y&&(d=Math.round(h=M*s),v=w((l=d/M)-s),!((!c||v<w(m-s))&&(c=!0,m=l,a=d,u=M,v<1e-6)));M++);return r.value=o,n.value=a,i.value=u,c},C.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},st=C,o.rHt=function(t){for(var e,r,n,i,o,a,e="",r=!1,n=-1,i=t.length,o=0;o<i;o++)'"'===(a=t[o])?n=(r=!r)?o:-1:r||(e+=a);return 0<n&&(e+=t.substring(n,i)),!(0<=e.indexOf("0")||0<=e.indexOf("#")||0<=e.indexOf(".")||0<=e.indexOf("@"))},o.prototype.WHt=function(){var t,e,t=this;return t.QHt||(e=Dt(e=t.$Ut,"General",U),t.QHt=new st(e,t.j9t,t.aHt,t.cultureName),t.QHt.qUt=!0),t.QHt},o.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new st("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},o.prototype.formatString=function(){return g.zf.Vi(this.$Ut,"@NumberFormat","General")},o.prototype.format=function(t){var e,r,n,i,e=this;if(p.lt.q8(t,e.cultureName)){if(r=!e.j9t||e.j9t.allowScience(),(n=p.lt.uJ(t))!==_&&n!==b)return(99999999999<w(n)&&r||w(n)<1e-11&&0!==n?e.KHt():e.WHt()).format(t)}else{if(D(t,"string"))return i=Ht(i=g.zf.Vi(e.formatString(),'"',"")),t;if(D(t,"boolean"))return t.toString().toUpperCase()}return""},o.prototype.parse=function(t){var e,r,n,n,i,o,a,u,i,s,f,o,e,y,c;if(S.Ji(t))return b;if("number"==typeof t)return t;if(e=!1,r=t.trim(),0<(n=g.zf.hD(r,"-",!1))&&!T(r.charAt(n-1),"E",!0)&&(e=!0),o=(i=(n=N(this.cultureName)).DateTimeFormat).dateSeparator,a=i.timeSeparator,u=i.monthNames,i=i.abbreviatedMonthNames,s=function(t,e){var r,n,i;if(!e||0===e.length)return!1;for(r=!1,n=0,i=e.length;n<i;n++)if(g.zf.OS(t,e[n],!0)){r=!0;break}return r},(e||g.zf.OS(r,o,!1)||g.zf.OS(r,a,!1)||g.zf.OS(r,"/",!1)||g.zf.OS(r,":",!1)||g.zf.OS(r,"-",!1)||g.zf.OS(r,"\u5e74",!1)||g.zf.OS(r,"\u6708",!1)||g.zf.OS(r,"\u65e5",!1)||s(r,u)||s(r,i)||"ja-JP"===n.name()&&0<=F.XPt.gGt.indexOf(r[0].toUpperCase())&&g.zf.OS(r,".",!1))&&(f=v.ct.yU(r)))return f;if((e="-"===r.charAt(0))||"+"===r.charAt(0)){if("("===(r=g.zf.VP(r,0,1)).charAt(0)&&")"===r.charAt(r.length-1))return t}else if("("===r.charAt(0)&&")"===r.charAt(r.length-1)&&(y=!0,"-"===(r=(r=r.substring(1,r.length-1)).trim()).charAt(0)||"+"===r.charAt(0)))return t;return(o=this.WHt().parse(r))===b||o===_||(c=y&&D(o,"boolean"))?t:(y||e)&&D(o,"number")?-1*w(o):o},ft=o,a.prototype.format=function(t,e){var r,n,i,o,r=this;try{return i=n=void 0,i=t instanceof Date?v.ct.o0(t).toString():pt(t),o=r.XHt(r.pU),n=r.qHt(i,o.formatTokens,t,o.hasAtPart,e)}catch(t){return""}},a.prototype.parse=function(t){return t||""},a.prototype.formatString=function(){return this.pU},a.prototype.XHt=function(t){for(var e,r,n,i,o,a,u,e=[],r=!1,n="",i=!1,a=b,u=0;u<t.length;u++)o=t.charAt(u),i?('"'!==o?n+=o:(e.push(n+=o),n="",i=!1),a=o):"*"!==a&&"_"!==a&&"\\"!==a||""===n?"*"===o||"_"===o||"\\"===o?(a=o,""!==n&&(e.push(n),n=""),n+=o):"@"===o?(a=o,""!==n&&(e.push(n),n=""),e.push(o),r=!0):'"'===o?(a=o,""!==n&&e.push(n),n=o,i=!0):(n+=o,a=o):(e.push(n+=o),n="");return""!==n&&e.push(n),{formatTokens:e,hasAtPart:r}},a.prototype.qHt=function(t,e,r,n,i){var o,a,u,s,o=[],a=!1;if("string"!=typeof r||n||i)for(u=e.length-1;0<=u;u--)"*"===(s=e[u])[0]?a||(a=!0,o.push({type:"fillingChar",value:s[1]})):"_"===s[0]?o.push({type:"placeholder",value:s[1]}):'"'===s[0]&&'"'===s[s.length-1]?2<=s.length&&o.push({type:"text",value:s.substr(1,s.length-2)}):"\\@"===s?o.push({type:"text",value:"@"}):"@"===s[0]?o.push({type:"text",value:t}):o.push({type:"text",value:s});else o.push({type:"text",value:r});return o.reverse()},yt=a,ct=function(){return{pattern:K,formatter:["d-mmm","mmm-yy",u().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",u().shortDatePattern+" h:mm",u().shortDatePattern+" h:mm:ss",u().shortDatePattern+" h:mm:ss.0"]}},O.prototype.Hc=function(t,e){var r,n,i,o,a,u,s,f,y,c,m,M,M,h,d,l,d;for(t!==b&&t!==_||$(),(n=this).formatCached=r=t,o=i="",s=u=a=!1,f=[],y=0;y<t.length;y++)'"'===(c=t[y])?(u=!u,o+=c):u?o+=c:"["===c?(a&&$(),o&&(i=i||"",i+=o),o=c.toString(),a=!0):"]"===c?(a||$(),o?(m=(o+=c).toString(),(M=Pt(o.toString()))?"ABSTimeFormatPart"===M.Name?(f.push(new M(O.preProcessPart(m),m)),i+=o):m===F.XPt.eraExcelFormatter?(n.addPart(M,F.XPt.eraInternalFormatter),s=!0):n.addPart(M,m):(i+=M=O.partToNormalStr(m),r=Dt(t,m,M)),o=""):$(),a=!1):o+=c;o?a?$():i+=o:i=i||n.$Ht(),n.localeIDFormatPart&&(e=n.localeIDFormatPart.cultureInfo().name()),l=(d=Ct(i,h=n.conditionalFormatPart)).uit,d=d.uHt?r:i,l?n.E9t=new l(d,n.localeIDFormatPart,n.dbNumberFormatPart,e,0<f.length?f:b,s):$()},O.prototype.$Ht=function(){var e,t,r,e=this,t="";return t=e.dbNumberFormatPart&&!(r=O.proNames.some(function(t){return"dbNumberFormatPart"!==t&&e[t]}))?"General":t},O.prototype.formatString=function(){for(var t,e,r,n,i,t=this,e="",r=0,n=O.proNames.length;r<n;r++)t[i=O.proNames[r]]&&(e+=t[i].toString());return e+=t.E9t.formatString()},O.prototype.addPart=function(t,e){for(var r,n,i,o,a,u,r=this,n=O.proNames,i=O.preProcessPart(e),o=0,a=n.length;o<a;o++)if(T(u=n[o],t.Name,!0)){if(r[u])throw new Error(f().Exp_DuplicatedDescriptor);r[u]=new t(i,e)}},O.prototype.format=function(t,e){return this.E9t.format(t,e)},O.prototype.parse=function(t){return this.E9t.parse(t)},O.checkFormatter=function(t){if(!t||t===S.oHt)throw new Error(f().Exp_TokenIllegal)},O.preProcessPart=function(t){O.checkFormatter(t);var t=wt(t);return O.checkFormatter(t),t},O.partToNormalStr=function(t){var t=O.preProcessPart(t);return'"'+(t=t[0]===s?t.slice(1):t)+'"'},O.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],mt=O,E(j,dt=r),j.prototype.toJSON=function(){var t,e,t=this,e={formatCached:t.formatCached};return t.cultureName&&(e.customerCultureName=t.cultureName),"general"===h(t.formatCached)&&delete e.formatCached,e},j.prototype.hasFormattedColor=function(){var t,e,r,t=this;for(e in c)if(c.hasOwnProperty(e)&&(r=t.getFormatter(c[e]))&&r.colorFormatPart)return!0;return!1},j.prototype.formatString=function(t){var e,r,n,i,o,e=this;if(0===arguments.length){for(r=S.oHt,n=0,i=e.formatters.length;n<i;n++)r+=(o=e.formatters[n]).formatString(),n!==i-1&&(r+=";");return r}if(t)return e.formatters=b,e.formatCached=t,e.init(),e.tzt("formatString"),e;throw new Error(f().Exp_ValueIsNull)},j.prototype.getFormatter=function(t){var e=this;return e.formatters&&e.formatters[t]},j.prototype.getPreferredEditingFormatter=function(t){var e,r,n,i,e,r,r=u(this.cultureName),n=k(this.cultureName),i=j.defFormatter;return D(t,"TimeSpan")?i(r.longTimePattern):D(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",i(r.shortDatePattern+e)):p.lt.q8(t,this.cultureName)?1e21<=(r=p.lt.uJ(t))||r<=1e-17&&0<r||r<=-1e21||r<0&&-1e-17<=r?i(null!=(e=n.scientificNotation)?e:"0.##############E+00"):i(U):i("General")},j.prototype.getPreferredDisplayFormatter=function(t,e){var r,n,e,i,o,a,u,o,s,f,f,s,f,y,c,m,M,M,s,o,f,r,s,h,d,l,f,r=this,n=j.defFormatter;if((e=e||{value:b}).value=b,S.Ji(t))return new j;if(i=e.value=r.parse(e=t),D(i,"DateTime")||D(i,"TimeSpan")){for(a=(o=ct()).pattern,u=o.formatter,0<(f=(s=(o=N(r.cultureName)).DateTimeFormat).preselectedFormatters).length&&(a=a.concat([f]),u=u.concat([f[0]])),"ja-JP"===o.name()&&(a=a.concat([s.eraFormatter]),u=u.concat(["ge.M.d"]),f=o.QPt.filter(function(t){return"ggge"===t.substr(0,4)}),a=a.concat([f]),u=u.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),s=o.QPt.filter(function(t){return"gge"===t.substr(0,3)}),a=a.concat([s]),u=u.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),f=o.QPt.filter(function(t){return"ge"===t.substr(0,2)}),a=a.concat([f]),u=u.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),y=0;y<a.length;y++)for(c=a[y],m=0;m<c.length;m++)if(M=c[m],(M=v.ct.yU(t,M))&&M-i==0)return new j(u[y])}else if(p.lt.q8(i,r.cultureName)){if(o=(s=k(r.cultureName)).currencySymbol,f=s.numberDecimalSeparator,r=s.percentSymbol,s=s.numberGroupSeparator,h="E",f=(l=(d=g.zf.OS)(e,f))?".00":"",e[0]===o)return n(S.I5("{0}#,##0{1};[Red]({0}#,##0{1})",o,f));if(d(e,h,!0))return n("0.00E+00");if(e[0].toString()===r||e[e.length-1].toString()===r)return n(S.I5("0{0}%",f));if(d(e,s))return n(S.I5("#,##0{0}",f))}return n("General")},j.prototype.format=function(e,t){var r,n,i,o,n,a,u;if(D(e,"boolean"))return(e=d()?e?d().boolean_true:d().boolean_false:e).toString().toUpperCase();if(i=0,o=(r=this).vn(e)){n=o.colorFormatPart,t&&n&&(t.conditionalForeColor=t.value=n.foreColor),(n=p.lt.q8(e,r.cultureName))&&(i=p.lt.uJ(e)),a=S.oHt;try{n&&o===r.getFormatter(c.jHt)&&0!==this.expressionNumber?(a=o.format(o.considerNegSymbol?i:w(i)))===b&&D(e,"string")&&(a=e):(a=o.value)===_&&(u=!r.lHt&&o===r.getFormatter(c._text),a=o.format(e,n||u)),t&&(t.content=W(a)?a:[{type:"text",value:a}]),W(a)&&(a=y.mUt(a))}catch(t){D(e,"string")&&(a=e.toString())}return a}return n&&i<0?"-".toString():!D(e,"string")&&(e===_||e===b)?S.oHt:e.toString()},j.prototype.parse=function(t){var e=this;return e.formatters&&0<e.formatters.length?e.formatters[0].parse(t):b},j.prototype.init=function(){var t,e,r,n,i,t=this,e=t.formatCached;for(S.Ji(e)&&$(),t.formatters=[],r=Et(e),t.lHt=1===r.length,(!r||r.length<1||4<r.length)&&$(),n=0;n<r.length;n++)-1!==r[n].indexOf("@")&&-1===r[n].indexOf("\\@")&&(n!==r.length-1?$():this.hasAt=!0),i=new mt(r[n],t.cultureName),t.formatters.push(i);t.getFormatter(c.EHt)||$(),this.nzt()},j.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;c=p.lt.Dh({},G[t]),this.hasAt&&0!==this.expressionNumber&&(c._text=this.formatters.length-1)},j.prototype.vn=function(t){var e,r,n,i,i,o,t,a,u,s,f,y,e=this;if(e.nzt(),n=(r=e.getFormatter(c.EHt))&&r.conditionalFormatPart,i=e.getFormatter(c._text),n&&(c.OHt=2,this.hasAt||(c._text=3)),"string"==typeof t&&H(t))return i||(n?t:r);if(p.lt.q8(t,e.cultureName)||D(t,"boolean")){if(i=e.getFormatter(c.jHt),o=e.getFormatter(c.OHt),t=p.lt.uJ(t),a=n&&r.conditionalFormatPart.isMeetCondition(t),s=(u=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(t),f=void 0,e.lHt||(n?a:0<t||0===t&&!o))f=r;else if(u?s:t<0)f=i;else if(o)f=o;else if(i){if(n&&u)return{value:y=t+""};f=i}return f&&(!n||u||f!==i||o||(f.considerNegSymbol=!0),n&&u&&f===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(f.considerNegSymbol=!0),this.expressionNumber<=1)&&(f.considerNegSymbol=!0),f}return b},j.prototype.tzt=function(t){var e,r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},j.defFormatter=function(t){var e=j[t];return e||(e=new j(t),j[t]=e),e},t.GeneralFormatter=j},"./src/plugins/slicer/slicer.entry.ts":function(t,e,r){var n,i,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./src/plugins/slicer/slicer.ts"),e)},"./src/plugins/slicer/slicer.ts":function(t,e,r){var r,$,S,a,i,o,n,u,s,x,f,r,r;function v(t){return"object"==typeof t&&t!==S&&t.text!==$}function y(){}function c(t,e){var r,n,t;if(t!==S&&t!==$){if(N(t)===a)e.value=t;else if(N(t)===o)e.value=t?1:0;else if(t instanceof Date)e.value=x.o0(t);else{if(N(t)!==i)return;if(0===P(t=t.trim()))return;if(r=!1,"%"===t.charAt(P(t)-1)&&(r=!0,t=t.substr(0,P(t)-1)),2<=P(t)&&"0"===t[0]&&"x"===t[1])return;if(n=Number(t).valueOf(),isNaN(n)||!isFinite(n)){if(t=new Date(t),isNaN(t))return;n=x.o0(t)}r&&(n/=100),e.value=n}return 1}}function g(t){var e,r,n,i,o,a,u,s,f,y,c,m,M,h,d,l,e=t.ezt;for(e||(t.izt=[],t.rzt=[]),r=e?t.ozt:t.izt,n=t.azt,i=t.uzt,o=e?t.szt:t.rzt,a=t.Mct,u=t.czt,s=t.fzt,f=P(t.data),c={},m=0;m<f;m++){for(M=!1,h=void 0,d=0;d<P(a)&&(h=a[d],e&&h===t.lzt||(i[h]?(H(c[l=t.columnNames[h]])&&(c[l]=t.getColumnIndex(l)),y=t.fue(c[l],m),M=!i[h][y]):n[h]&&(M=!n[h][m]),!M));d++);!M&&e&&(u?(H(c[l=t.columnNames[h]])&&(c[l]=t.getColumnIndex(l)),M=!u[y=t.fue(c[l],m)]):s&&(M=!s[m])),M||(r[m]=!0)}for(d=0;d<P(r);d++)r[d]&&o.push(d)}function h(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?x.o0(t):t}function m(t){var e,r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<P(r);n++)e[(r[n]+"").toUpperCase()]=n}function p(t,e){var r,n,i,o,a,u,s,f,y,c,c,m,m,M,r=t.dzt,n=t.vzt,i=t.pzt,o=t.mzt,a=t.gzt,u=t.data,s=a[e]=[];for(t.bzt=[],r[e]=[],n[e]=[],i[e]={},o[e]=[],f={},y=0;y<P(u);y++)c=v(c=u[y][e])?c.text.trim():c,r[e].push(c),(m=f[h(c)])?(m.list.push(y),s[y]=m.index):(m=[y],n[e].push(c),o[e].push(m),M=P(o[e])-1,i[e][c]=M,s[y]=M,f[h(c)]={list:m,index:M})}function M(t,e,r){var n,i,o,a,u,s,f,y,c,c,m,M,h,d,l,n=t.yzt,i=t.getColumnIndex(e),o=[];if(i&&(a=t.ezt?t.wzt:t.Mzt[i],u=t.izt,a)){for(n[i]||t.Czt(i),s=[],f=n[i],y=0;y<P(f);y++)c=v(c=t.data[y][i])?c.value:c,s[f[y]]=c;for(m=t.Szt[i],y=0;y<P(a);y++){for(M=a[y],h=!1,l=(d=t.Tzt(s,M)).start;l<=d.end;l++)if(u[m[l]]){h=!0;break}h!==r&&o.push(M)}}return o}function d(t,e){var r,n,i,o,a,u,r=[],n=t.getColumnIndex(e);if(0<=n){for(i=P(t.getData(e)),o=t.ezt?t.ozt:t.izt,a=0;a<i;a++)o[a]||(u=t.fue(n,a),-1===r.indexOf(u)&&r.push(u));return r}}function l(t,e){var r,n,i,o,a,u,s,f,y,c,r=[],n={},i=t.getColumnIndex(e);if(0<=i)for(o=t.czt||t.fzt,a=t.uzt[i]||t.azt[i],u=t.ezt&&i===t.lzt?o:a,f=P((s=!!t.azt[i])?t.getData(e):t.getExclusiveData(e)),y=0;y<f;y++)!u||u[y]||n[c=s?t.fue(i,y):y]||(n[c]=!0,r.push(c));return r}function F(t,e){for(var r,n,i,o,a,u,s,f,y,c,m,M,r={},n=t.columnNames,o=P(n),i=0;i<o;i++)if(n[i]!==e)for(a=l(t,n[i]),u=0;u<P(a);u++)for(s=t.getRowIndexes(n[i],a[u]),f=0;f<P(s);f++)r[s[f]]||(r[s[f]]=!0);for(y={},o=P(t.data),i=0;i<o;i++)c=t.getExclusiveRowIndex(e,i),r[i]||(y[c]=!0);for(m=P(t.getExclusiveData(e)),M=[],i=0;i<m;i++)y[i]||M.push(i);return M}function b(t,e,r,n){var i,e,o,a,u,s,s,f,y,c,i=t.getColumnIndex(e),e=t.yzt;for(e[i]||t.Czt(i),o=[],a=e[i],u=0;u<P(a);u++)s=v(s=t.data[u][i])?s.value:s,o[a[u]]=s;for(f=[],u=0;u<P(r);u++)for(y=t.Tzt(o,r[u]),c=0;c<P(a);c++)a[c]>=y.start&&a[c]<=y.end&&(f[c]=!0);n?(t.fzt=f,t.wzt=r):(t.Mzt[i]=r,t.azt[i]=f,delete t.uzt[i],delete t.Azt[i]),g(t)}function _(t,e,r,n){for(var e,i,o,e=t.getColumnIndex(e),i=[],o=0;o<P(r);o++)i[r[o]]=!0;n?t.czt=i:(t.uzt[e]=i,t.Azt[e]=r,delete t.Mzt[e],delete t.azt[e]),g(t)}function w(t,e){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],e&&t.onFiltered()}function D(t,e){var r,n,r=this;for(r.hzt={},r.dzt=[],r.vzt=[],r.pzt=[],r.mzt=[],r.gzt=[],r.uzt=[],r.Azt=[],r.azt=[],r.Mzt=[],r.izt=[],r.rzt=[],r.Mct=[],r.szt=[],r.ozt=[],r.ezt=!1,r.aT=[],r.Upt=0,r.bzt=[],r.Szt=[],r.yzt=[],r.lue=0,r.Izt(t,e),n=0;n<P(r.data);n++)r.izt[n]=!0,r.rzt.push(n)}function H(t){return t===$||t===S}function N(t){return typeof t}function P(t){return t?t.length:0}Object.defineProperty(e,"__esModule",{value:!0}),e.GeneralSlicerData=e.xzt=e.SlicerAggregateType=e.FilteredOutDataType=void 0,r=r("./src/common/util/datetimehelper.ts"),$=void 0,S=null,a="number",i="string",o="boolean",n=r.ct.o0,(r=u=e.FilteredOutDataType||(e.FilteredOutDataType={}))[r.all=0]="all",r[r.byCurrentColumn=1]="byCurrentColumn",r[r.byOtherColumns=2]="byOtherColumns",(r=s=e.SlicerAggregateType||(e.SlicerAggregateType={}))[r.average=1]="average",r[r.count=2]="count",r[r.counta=3]="counta",r[r.max=4]="max",r[r.min=5]="min",r[r.product=6]="product",r[r.stdev=7]="stdev",r[r.stdevp=8]="stdevp",r[r.sum=9]="sum",r[r.vars=10]="vars",r[r.varp=11]="varp",y.o0=function(t){return n(t)},y.quickSort=function(t){for(var e,r,n,e=P(t),r=[],n=0;n<e;n++)r[n]={index:n,value:t[n]};return y.quickSortImp(r)},y.quickSortImp=function(t){var e,r,n,i,o,a,u,s,f,e=t.length;if(e<=1)return t;for(r=y,i=t[n=Math.floor(e*Math.random())],o=[],a=[],u=[],s=0;s<e;s++)(n===s?u:(f=r.sortCompare(t[s].value,i.value))<0?o:0<f?a:u).push(t[s]);return r.quickSortImp(o).concat(u,r.quickSortImp(a))},y.isEquals=function(t,e){return!(!H(t)&&""!==t||!H(e)&&""!==e)||(t instanceof Date&&e instanceof Date?t.valueOf()===e.valueOf():N(t)===i&&N(e)===i?t.toLowerCase()===e.toLowerCase():t===e)},y.isGreaterThan=function(t,e){var r=N(t),n=N(e);return r===o?t=t?1:0:t instanceof Date&&(t=y.o0(t)),n===o?e=e?1:0:e instanceof Date&&(e=y.o0(e)),r===n||r!==a&&n!==a?r===i&&n===i?t.toLowerCase()>e.toLowerCase():e<t:n===a},y.sortCompare=function(t,e){var r,n,i,o,r=y,n=-1,i=H(t)||""===t||N(t)===a&&isNaN(t),o=H(e)||""===e||N(e)===a&&isNaN(e);return i&&o?n=0:i?n=1:o?n=-1:r.isEquals(t,e)?n=0:r.isGreaterThan(t,e)&&(n=1),n},x=y,e.xzt=x,D.prototype.inPreview=function(){return this.ezt},D.prototype.Izt=function(t,e){var r=this;r.data=t,r.columnNames=e,m(r)},D.prototype.vue=function(t){var e=this;e.mue&&0===e.lue&&(e.Nzt("onDataChanged",t),e.mue=!1)},D.prototype.gue=function(){this.lue++},D.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},D.prototype.onDataChanged=function(t){for(var e,r,n,i,o,a,u,s,f,y,c,f,c,y,m,M,h,d,e=this,r=new Array(P(e.columnNames)),n=e.Azt,i=e.vzt,o=e.uzt,a=e.dzt,s={},u=0;u<P(t);u++)y=(f=t[u]).data,c=f.columnName,f=f.row,H(s[c])&&(s[c]=e.getColumnIndex(c)),c=s[c],f>=e.data.length&&e.onRowsAdded(f,1,!1),y=v(e.data[f][c]=y)?y.text:y,a[c]&&(a[c][f]=y),r[c]=!0;for(m=0;m<P(r);m++)if(r[m]){for(M=n[m],n[m]=M?[]:void 0,o[m]=M?[]:void 0,h=[],u=0;M&&u<P(M);u++)h.push(i[m][M[u]]);for(p(e,m),u=0;u<P(h);u++)d=e.pzt[m][h[u]],n[m].push(d),o[m][d]=!0}g(e),e.mue=!0,e.vue(t)},D.prototype.Nzt=function(t){for(var e,r,n,i,o,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];for(n=this.aT||[],i=0;i<P(n);i++)(o=n[i])[t]&&o[t].apply(o,e)},D.prototype.onColumnNameChanged=function(t,e){var r,n,i,r=this,n=r.hzt,i=r.getColumnIndex(t);i<0||(r.columnNames[i]=e,delete n[t.toUpperCase()],n[e.toUpperCase()]=i,r.Nzt("onColumnNameChanged",t,e))},D.prototype.onRowsAdded=function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,b,_,w,D,H,N,k,n=this,i=P(n.columnNames),o=n.data,a=n.dzt,u=n.vzt,s=n.mzt,f=n.gzt,y=n.uzt,c=n.Azt,m=n.izt,M=n.rzt,h=n.Mct;for(n.bzt=[],d=0;d<e;d++)o.splice(t,0,new Array(i));for(l=0;l<i;l++){for(d=0;d<e;d++)a[l]&&a[l].splice(t,0,$);if(p=void 0,g=u[l]){for(F=S,b=0;b<P(g);b++){for(_=s[l][b],w=0;w<P(_);w++)_[w]>=t&&(_[w]+=e);x.isEquals(g[b],S)&&(F=_,p=b)}for(F||(F=[],g.push(S),p=P(g)-1,n.pzt[l][S]=p,s[l].push(F),y[l]&&-1===h.indexOf(l)&&(y[l][p]=!0,c[l].push(p))),D=t;D<t+e;D++)F.push(D);for(v=t;v<t+e;v++)f[l].splice(v,0,p)}}for(H=!0,d=0;d<P(h);d++)N=f[l=h[d]][t],!0!==y[l][N]&&(H=!1);for(d=0;d<P(M);d++)M[d]>=t&&(M[d]+=e);for(v=P(o)-1;t+e<=v;v--)m[v]=m[v-e];for(k=0<P(h),v=t;v<t+e;v++)H&&M.push(v),m[v]=!k;r||n.Nzt("onRowsChanged",t,e,!0)},D.prototype.onRowsRemoved=function(t,e){this.kzt(t,e,!0)},D.prototype.kzt=function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,d,l,v,n=this,i=n.Azt,o=n.vzt,a=n.uzt,u=n.data,s=P(n.columnNames),f=n.dzt;for(u.splice(t,e),c=0;c<s;c++){if(f[c]&&f[c].splice(t,e),M=[],(m=i[c])&&r){for(y=0;y<P(m);y++){for(h=n.getRowIndexes(n.columnNames[c],m[y]),d=!0,l=0;l<P(h);l++)if(h[l]<t||h[l]>=t+e){d=!1;break}d||M.push(o[c][m[y]])}i[c]=[],a[c]=[]}if(p(n,c),m&&r)for(y=0;y<P(M);y++)v=n.pzt[c][M[y]],i[c].push(v),a[c][v]=!0}r&&g(n),n.Nzt("onRowsChanged",t,e,!1)},D.prototype.onColumnsRemoved=function(t,e){for(var r,n,i,o,a,u,s,f,y,c,m,M,h,r=this,n=r.data,i=[],o=r.Mct,a=t+e,u=t;u<a;u++)(s=r.columnNames[u])&&(f=u,i.push(s),-1!==o.indexOf(f))&&r.doUnfilter(s);for(y=r.uzt||r.azt,c=r.Azt||r.Mzt,m=r.hzt,u=0;u<P(n);u++)n[u].splice(t,e);for(M in r.bzt=[],r.columnNames.splice(t,e),r.dzt.splice(t,e),r.vzt.splice(t,e),r.pzt.splice(t,e),r.mzt.splice(t,e),r.gzt.splice(t,e),y.splice(t,e),c.splice(t,e),m)m[M]>=t+e&&(m[M]-=e);for(u=0;u<P(i);u++)delete m[(s=i[u]).toUpperCase()],t=r.getColumnIndex(s),-1!==(h=o.indexOf(t))&&o.splice(h,1),r.Nzt("onColumnRemoved",i[u])},D.prototype.Dzt=function(){return this.bzt},D.prototype._zt=function(){return this.Szt},D.prototype.Czt=function(t){var e,r,n,i,o,a,a,u,s,f,y,c,m,e=this,r=e.data;for(e.dzt[t]||p(e,t),n=P(r),i=[],o=0;o<n;o++)a=v(a=r[o][t])?a.value:a,i.push(a);for(u=x.quickSort(i),s=e.bzt[t]=[],f=e.Szt[t]=[],y=e.yzt[t]=[],c=0;c<P(u);c++)m=u[c],s.push(m.value),f.push(m.index),y[m.index]=c},D.prototype.getColumnIndex=function(t){var t=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===t?-1:t},D.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},D.prototype.getFilteredOutRowIndexes=function(){for(var t,e,r,n,i,t=this,e=P(t.data),r=t.ezt?t.ozt:t.izt,n=[],i=0;i<e;i++)r[i]||n.push(i);return n},D.prototype.getData=function(t,e){var r,n,i,o,t,t,e,a,u,s,r=this,n=r.dzt,i=r.getColumnIndex(t);if(0<=i){if(e){for(r.bzt[i]||r.Czt(i),o=n[i],t=r.bzt[i],e=(t=r.Tzt(t,e)).start,a=t.end,u=[],s=e;s<=a;s++)u.push(o[r.Szt[i][s]]);return u}return n[i]||p(r,i),n[i]}return[]},D.prototype.aggregateData=function(t,e,r){var n,t,i,r,t,o,r,o,n,t,i,n=this,t=n.getColumnIndex(t);return t<0?$:(n.bzt[t]||n.Czt(t),o=P(t=n.bzt[t]),i=(r=n.Tzt(t,r)).start,r=r.end,5===e?o<=i?$:t[i]:4===e?r<0?$:t[r]:3===e?r<i?0:r-i+1:(n=(o=n.Ezt(t,e,i,r)).data1,t=o.data2,i=o.data3,1===e?n/=t:7===e||10===e?(n=(i*t-n*n)/(i*(i-1)),n=7===e?Math.sqrt(n):n):8!==e&&11!==e||(n=(i*t-n*n)/(i*i),n=8===e?Math.sqrt(n):n),n))},D.prototype.Ezt=function(t,e,r,n){for(var i,o,a,u,s,f,i=6===e?1:0,o=0,a=0,u=r;u<=n;u++)(s=t[u])===S&&s===$||c(s,f={value:S})&&(s=f.value,1===e?(i+=s,o++):2===e?i++:9===e?i+=s:6===e?i*=s:7!==e&&8!==e&&10!==e&&11!==e||(i+=s,o+=s*s,a++));return{data1:i,data2:o,data3:a}},D.prototype.Tzt=function(t,e){var r=P(t),n,i,o,a;if(e){if(e.min===-1/0)n=0;else for(o=0;o<r;o++)if(a=t[o],x.isEquals(e.min,a)||x.isGreaterThan(a,e.min)){n=o;break}if(n===$&&(n=r),i===1/0)i=r-1;else{for(o=r-1;0<=o;o--)if(a=t[o],x.isEquals(a,e.max)||x.isGreaterThan(e.max,a)){i=o;break}i===$&&(i=-1)}}else n=0,i=r-1;return{start:n,end:i}},D.prototype.getExclusiveData=function(t){var e=this,r=e.vzt,t=e.getColumnIndex(t);return 0<=t?(r[t]||p(e,t),r[t]):[]},D.prototype.getRowIndexes=function(t,e){var r=this,t=r.getColumnIndex(t);return 0<=t?(r.gzt[t]||p(r,t),r.mzt[t][e]):[]},D.prototype.getExclusiveRowIndex=function(t,e){var r=this,t=r.getColumnIndex(t);return r.fue(t,e)},D.prototype.fue=function(t,e){var r=this,n=r.gzt;return 0<=t?(n[t]||p(r,t),n[t][e]):-1},D.prototype.getFilteredIndexes=function(t){var e=[],r;return this.jzt(t,e,{}),e},D.prototype.jzt=function(t,e,r){for(var n,i,o,a,u,u,n=this,i=n.ezt?n.szt:n.rzt,o=n.getColumnIndex(t),a=0;a<P(i);a++)u=i[a],H(u=n.fue(o,u))||(r[u]?r[u]++:(r[u]=1,e.push(u)))},D.prototype.getFilteredRanges=function(t){return M(this,t,!1)},D.prototype.getFilteredOutRanges=function(t){return M(this,t,!0)},D.prototype.getFilteredOutIndexes=function(t,e){var r=this;return(0===e?d:1===e?l:F)(r,t)},D.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},D.prototype.detachListener=function(t){for(var e,r,e=this.aT||[],r=0;r<P(e);r++)if(e[r]===t){e.splice(r,1);break}},D.prototype.suspendFilteredEvents=function(){this.Upt++},D.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},D.prototype.doFilter=function(t,e,r){this.Ozt(t,e,r),this.onFiltered()},D.prototype.Ozt=function(t,e,r){var n,i,o,n=this,i=n.Mct,o=n.getColumnIndex(t);o<0||(r?(n.ezt=!0,n.lzt=o):n.ezt&&w(n,!1),i.indexOf(o)<0&&i.push(o),e.ranges?b(n,t,e.ranges,r):_(n,t,e.exclusiveRowIndexes,r))},D.prototype.clearPreview=function(){w(this,!0)},D.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},D.prototype.Rzt=function(t){var e,t,t,e=this;e.ezt&&w(e,!1),(t=e.getColumnIndex(t))<0||(delete e.Mzt[t],delete e.azt[t],delete e.uzt[t],delete e.Azt[t],g(e),0<=(t=e.Mct.indexOf(t))&&e.Mct.splice(t,1))},D.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},D.prototype.getListener=function(){return this.aT},e.GeneralSlicerData=D},"./src/plugins/sparkline/sparkline.entry.ts":function(t,e,r){var n,i,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./src/plugins/sparkline/sparkline.ts"),e)},"./src/plugins/sparkline/sparkline.ts":function(e,c,r){var n,i,m,M,nt,q,h,d,it,R,T,et,x,N,ot,at,rt,P,z,ut,K,j,st,ft,yt,ct,o,gt,mt,pt,Mt,k,V,J,Y,$,X,l,I,B,L,Z,Q,tt,C,Ft,bt,_t,wt,A,O,E,Dt,Ht,Nt,a,w,kt,$t,v,g,p,F,b,St,D,xt,Pt,Ct,At,Tt,Ot,jt,_,u,s,f;function Et(t){this.x=t.x,this.y=t.y}function Rt(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}function H(t,e){return{x:t,y:e}}function It(t,e,r,n){return{x:t,y:e,width:r,height:n}}function Bt(t,e){for(var r,n,i,o,a,r=t[0],n=r&&r.value?r.value:r,o=1,a=t.length;o<a;o++)i=(r=t[o])&&r.value?r.value:r,(e&&i<n||!e&&n<i)&&(n=i);return n}function G(t,e,r,n,i,o,a){o&&(t.strokeStyle=o),a&&(t.lineWidth=a),t.beginPath(),t.moveTo(e,r),t.lineTo(n,i),t.stroke()}function Lt(t,e,r,n,i,o,a){t.save(),o&&(t.strokeStyle=o),a&&(t.lineWidth=a),t.beginPath(),t.moveTo(e,r),t.lineTo(n,i),t.closePath(),t.stroke(),t.restore()}function Gt(t,e,r,n,i,o,a,u){var s,f,y,c,m,M,h,d,l;if(t.save(),s=[o,a],t.setLineDash)t.beginPath(),t.strokeStyle=u,t.setLineDash(s),t.stroke(),t.moveTo(e,r),t.lineTo(n,i);else for(t.beginPath(),t.lineWidth=1,t.strokeStyle=u,c=(n-e)/(f=z(P(n-e,2)+P(i-r,2))),m=(i-r)/f,h=M=0;M<f;)M+=d=ot(s[h%2],f-M),(l=++h%2)&&t.moveTo(e,r),e+=d*c,r+=d*m,l&&t.lineTo(e,r);t.stroke(),t.restore()}function ht(t,e,r,n,i,o,a,u,s,f,y,c){e?G(t,r,n,i,o,y,c):G(t,a,u,s,f,y,c)}function S(t,e,r,n,i,o,a,u){t.save(),a&&(t.fillStyle=a),t.textBaseline=u||Q,t.beginPath(),t.font=i,t.textAlign=o,t.fillText(n="string"==typeof n?n:n+"",e,r),t.restore()}function W(t,e,r,n,i,o,a){e=Math.floor(e),r=Math.floor(r),n=Math.floor(n),i=Math.floor(i),a%2!=0&&(e===n?(e+=.5,n+=.5):r===i&&(r+=.5,i+=.5)),G(t,e,r,n,i,o,a)}function zt(t,e,r,n,i,o,a,u,s,f){var y,c,m,M;switch(o=Math.round(o),a=Math.round(a),s){case 0:a=Math.round(r+u),M=Math.round(a),m=Math.round(o+u),y=Math.round((o+m)/2),c=Math.round(a-Math.sin(et/3)*u);break;case 1:o=Math.round(e+n-u),m=Math.round(o),M=Math.round(a+u),y=Math.round(o+Math.sin(et/3)*u),c=Math.round((a+M)/2);break;case 2:a=Math.round(r+i-u),M=Math.round(a),m=Math.round(o+u),y=Math.round((o+m)/2),c=Math.round(a+Math.sin(et/3)*u);break;case 3:o=e+u,m=Math.round(o),M=Math.round(a+u),y=Math.round(o-Math.sin(et/3)*u),c=Math.round((a+M)/2)}t.beginPath(),t.moveTo(o,a),t.lineTo(y,c),t.lineTo(m,M),t.closePath(),t.fillStyle=f,t.fill()}function Kt(t,e,r,n,i){t.beginPath(),t.fillStyle=i,t.arc(e,r,n,0,2*Math.PI),t.fill()}function Jt(t,e,r,n,i,o){var e;e?Kt(t,r+(e=i/2),n+e,e,o):lt(t,r,n,i,i,o)}function Vt(t,e,r,n,i,o,a,u,s,f,y,c,m,M,h){var d,l,v,g,p,F;s?(d=Math.floor(e+.5*n),l=Math.floor(u?f-y:f),v=Math.floor(c),g=Math.floor(y),p=Math.floor(d-M/2),F=Math.floor(u?l-M/2:l+g+M/2),W(t,d,l,d,l+g,o,v)):(d=Math.floor(u?f:f-y),l=Math.floor(r+.5*i),v=Math.floor(y),g=Math.floor(c),p=Math.floor(u?d+v+M/2:d-M/2),F=Math.floor(l-M/2),W(t,d,l,d+v,l,o,g)),m?Wt(t,e,r,n,i,p,F,M,s,u,o):s?Jt(t,h,p,u?F:F-=M,M,a):Jt(t,h,u?p-=M:p,F,M,a)}function Wt(t,e,r,n,i,o,a,u,s,f,y){t.save(),zt(t,e,r,n,i,o,a,u,s?f?0:2:f?1:3,y),t.restore()}function Ut(t,e,r,n,i,o,a,u,s,f,y,c,m,M){var h,d,f,o,l,h=4,d=void 0;t.save(),t.beginPath(),t.rect(e,r,n,i),t.clip(),t.font=s+Ft,t.fillStyle=V,t.fillStyle="black",f?(t.textBaseline=Z,0<(d=s+(f=m<M?M:m)+o+4+M/2)?(t.textAlign=I,y?t.fillText(u,e+n/2+M/2,c-f/2):t.fillText(u,e+n/2+M/2,c+f/2)):(t.textAlign=L,y?t.fillText(u,e+n/2,c-f-M/2-s):t.fillText(u,e+n/2,c+f+M/2+4))):(t.textBaseline=tt,0<(d=(o=t.measureText(u).width)+m+a+4+M/2)?m+M/2<o?y?(t.textAlign=B,t.fillText(u,c-4,r+i/2)):(t.textAlign=I,t.fillText(u,c+M/2,r+i/2)):(t.textAlign=L,y?t.fillText(u,c+m/2,r+i/2+s):t.fillText(u,c-m/2,r+i/2+s)):y?(t.textAlign=I,t.fillText(u,l=c+m+M/2+4,r+i/2)):(t.textAlign=B,t.fillText(u,l=c-m-M/2-4,r+i/2))),t.restore()}function qt(t){return m.ft.rp(h(t))<127.5?k:V}function dt(t,e,r,n,i,o,a,u){var s,f,y,c,u,s=u;return nt(u)&&(s=i),u=a?(f=e+s+o,c=n-2*s,y=t+i,r-2*i):(f=t+s,c=r-2*s,y=e+i,n-2*i),{left:f,top:y,width:c,height:u}}function Yt(t,e){for(var r,n,i,r=0,n=0,i=t.length;n<i;n++)r+=e&&!e(t[n])?0:t[n];return r}function Xt(t){return t*et/180}function Zt(t,e,r,n){for(var i,o,a,u,s,i=[],a=0,u=0,s=t.length;a<s;a++)e?(e(t[a])?i[u]=r?r(t[a]):t[a]:i[u]=0,u++):(o=yt(t[a]),!ft(o)&&isFinite(o)&&(i[u]=o,u++));return n&&n(i),i}function lt(t,e,r,n,i,o){var a=rt(e+n),u=rt(r+i);e=rt(e),r=rt(r),n=rt(a-e),i=rt(u-r),t.beginPath(),t.fillStyle=o,t.fillRect(e,r,n,i),t.fill()}function Qt(t,e,r){return t=ot(t,e),t=at(t,r)}function vt(t,e,r,n,i){t.save(),t.rect(e,r,n,i),t.clip()}function te(t,e){var r,n,i,o;return t&&e&&(r=at(t.x+t.width,e.x+e.width),n=at(t.y+t.height,e.y+e.height),i=ot(t.x,e.x),o=ot(t.y,e.y),r-i<=t.width+e.width)&&n-o<=t.height+e.height}function ee(t,e,r,n,i,o){var a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,a=r+i/2,u=n+o/2,s=5,f=ot(i,o)/2-5,y=-.5*et,m=a+f*N(y),M=u+f*x(y),h=[],d=[];if(!(f<=0)){for(g=re(v=(l=Zt(e.values,function(t){return!nt(t)&&!ft(t)&&isFinite(t)},function(t){return ut(t)},function(t){1===t.length&&(t[1]=1-t[0])})).length,e.colors),p=Yt(l),t.save(),F=0;F<v;F++)c=y+l[F]/p*2*et,t.beginPath(),t.moveTo(a,u),t.lineTo(m,M),t.arc(a,u,f,y,c,!1),t.lineTo(a,u),t.fillStyle=g[F],t.fill(),h.push(m),d.push(M),m=a+f*N(y=c),M=u+f*x(y);for(F=0;F<v;F++)G(t,a,u,h[F],d[F],k);t.restore()}}function re(t,e){var r,n,i,o,a,u,s,f,r=[],n=e.length;if(t<=n)r=e.slice(0,t);else{for(0===n?(r.push("darkgray"),n=1):r=e.slice(0),i=[],a=t-n+1,u=o=void 0,u=0;u<n;u++)i[u]=h(r[u]);for(u=n;u<t;u++){for(s in o=i[u%n])o.hasOwnProperty(s)&&(f=o[s],o[s]=T(f-f/a*(u/n)));o.a=255,r[u]=m.ft.j(o)}}return r}function ne(t){var e=f.call(this,H(t.x,t.y))||this;return e.value=t.value,e}function ie(t,e,r){return{x:t,y:e,value:r}}function oe(t){return isNaN(t)||t===1/0?0:t}function ae(r,t,e,n,i,o){var a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,b,_,w,t,s,t,D,H,N,k,$,S,x,P,C,A,T;if(r.save(),a=t.points,u=t.mini,s=t.maxi,f=t.line1,y=t.line2,c=t.colorPositive,m=t.colorNegative,M=5,a=Zt(a,function(t){return!nt(t)&&!ft(t)&&isFinite(t)}),c=nt(c)?"#787878":c,m=nt(m)?mt:m,t=Bt(a,!1),s=nt(s)?t:s,d=at(s,t),s=Bt(a,!0),u=nt(u)?s:u,h=ot(u,s),l=(l=(d=d<0?0:d)<(l=0)?d:0)<(h=0<h?0:h)?h-1:l,v=a.length,t=dt(e,n,i,o,5),g=t.left,p=t.top,F=t.width,b=t.height,_=oe(F/(v-1)),D=[],w=oe((d-h)/b))for($=k=void 0,S=p+oe((d-l)/w),P=x=void 0,C=0;C<v;C++)k=a[C],x=g+_*C,P=p+oe((d-k)/w),0===C&&D.push(new Pt(ie(x,S,l))),0<C&&k*a[C-1]<0&&(N=D[D.length-1])&&($=ue(N.x,N.y,x,P,S),D.push(new Pt(ie($,S,l)))),D.push(new Pt(ie(x,P,k))),C===v-1&&D.push(new Pt(ie(x,S,l)));for(r.beginPath(),A=0,T=D.length;A<T;A++)(H=D[A])&&(0===A?r.moveTo(H.x,H.y):r.lineTo(H.x,H.y),N=D[A-1],H.value===l)&&N&&(r.fillStyle=N.value>l?c:m,r.fill(),A!==T-1)&&(r.beginPath(),r.moveTo(H.x,H.y));function O(t){var t,e,t;t===it&&typeof t!==j||(t=Qt(t,d,h),t=rt(p+(e=0!==w?(d-t)/w:b/2))-.5,G(r,g,t,g+F,t,J))}O(f),O(y),r.restore()}function ue(t,e,r,n,i){return((e-i)*r+(i-n)*t)/(e-n)}function se(i,t,e,j,E,R){var r,n,I,B,L,G,o,a,u,s,f,y,z,c,K,m,M,J,V,h,d,l,v,g,p,F,b,_,W,U,q,b,w,D,H,N,k,$,S,x,P,t,C,A,T,O,t,r,n,e,r=t.points1,n=t.points2,I=t.minX,B=t.maxX,L=t.minY,G=t.maxY,o=t.hLine,a=t.vLine,u=t.xMinZone,s=t.xMaxZone,f=t.yMinZone,y=t.yMaxZone,z=t.tags,c=t.drawSymbol,K=t.drawLines,m=t.color1,M=t.color2,J=t.dash,V=4,t=dt(e,j,E,R,5),C=t.left,A=t.top,T=t.width,O=t.height;if(r&&!(r.length<=0)&&!((h=me(r)).length<=0||n&&0<n.length&&(d=me(n)).length<=0)){for(vt(i,e,j,E,R),i.beginPath(),c=!!nt(c)||c,m=nt(m)?gt:m,M=nt(M)?mt:M,X(h,L,G,I,B),!nt(u)&&!nt(s)&&!nt(f)&&!nt(y)&&g<=u&&u<=p&&g<=s&&s<=p&&l<=f&&f<=v&&l<=y&&y<=v&&(t=at(g,u),r=ot(p,s),n=at(l,f),e=ot(v,y),lt(i,C+(t-g)*T/(p-g),A+(v-(e=e<=n?n+1:e))*O/(v-l),((r=r<=t?t+1:r)-t)*T/(p-g),(e-n)*O/(v-l),Mt)),$=k=-ct,x=S=ct,_=h.length,F=0;F<_-1;F++)Y(h,F,m,Q),z&&(0===F&&($<D&&(k=w,$=D),D<x)&&(S=w,x=D),$<N&&(k=H,$=N),N<x)&&(S=H,x=N);if(d&&0<d.length)for(X(d,l,v,g,p),_=d.length,F=0;F<_-1;F++)Y(d,F,M,tt);z&&(Z(k,$,mt),Z(S,x,"#0000FF")),!nt(o)&&l<=o&&o<=v&&(P=rt(A+(v-o)*O/(v-l))-.5,ce(i,C,P,C+T,P,mt)),!nt(a)&&g<=a&&a<=p&&(P=rt(C+(a-g)*T/(p-g))-.5,ce(i,P,A,P,A+O,mt)),i.restore()}function Y(t,e,r,n){b=t[e],W=b.x,U=b.y,b=t[e+1],q=b.x,b=b.y,w=C+(W-g)*T/(p-g),H=C+(q-g)*T/(p-g),D=A+(v-U)*O/(v-l),N=A+(v-b)*O/(v-l),K&&ce(i,w,D,H,N,r,J),c&&(0===e&&n(w,D),n(H,N))}function X(t,e,r,n,i){var o,t,o=fe(t,!0),t=fe(t,!1);l=nt(L)?o.y:e,v=nt(G)?t.y:r,g=nt(I)?o.x:n,p=(p=nt(B)?t.x:i)<=g?g+1:p,v=v<=l?l+1:v}function Z(t,e,r){i.beginPath(),i.arc(t-2,e-2,2,0,2*et,!1),i.fillStyle=r,i.fill()}function Q(t,e){i.beginPath(),i.strokeStyle=m,i.arc(t-2,e-2,2,0,2*et,!1),i.stroke()}function tt(t,e){i.beginPath(),i.strokeStyle=M,i.strokeRect(t-2,e-2,4,4)}}function fe(t,e){for(var r,n,i,o,a,u,r=e?1:-1,n=e?ot:at,i=new D(H(r*ct,r*ct)),o=t.length,u=0;u<o;u++)a=t[u],i.x=n(i.x,a.x),i.y=n(i.y,a.y);return i}function ye(t,e,r,n){return r/n*(e-t)+t}function ce(t,e,r,n,i,o,a){var u,s,f,y,c,m,M,h,d,l,v,g,p,F,b,_,w;if(a){for(u=z(P(n-e,2)+P(i-r,2)),f=6,y=2,c=4,l=d=h=M=void(s=0),l=e<=n?(h=n,d=M=e,r):(h=e,d=M=n,i),g=r-(v=(i-r)/(n-e))*e,(m=[]).push(new D(H(d,l))),p=[6,4,2,4];s<u;)for(F=0,b=p.length;F<b;F++)(s+=p[F])<=u&&(d=ye(M,h,s,u),m.push(new D(H(d,l=v*d+g))));for(_=0,w=m.length;_<w-1;_+=2)G(t,m[_].x,m[_].y,m[_+1].x,m[_+1].y,o)}else G(t,e,r,n,i,o)}function me(t){var e,r,n,i,o,e=[],r=t.length;if(0<r)if(r<(n=t[0].length)){if(2<=r)for(i=0;i<n;i++)e.push(new D(H(t[0][i],t[1][i])))}else if(2<=n)for(o=0;o<r;o++)e.push(new D(H(t[o][0],t[o][1])));return e}function Me(a,t,u,s,f,y){var e,r,n,i,o,c,m,M,h,d,l,v,g,p,F,b,_,t,l,w,D,H,w,N,k,g,$,S,n,p,i,M,x,P,C,e=t.measure,r=t.target,n=t.maxi,i=t.good,o=t.bad,c=t.forecast,m=t.tickUnit,M=t.colorScheme,h=t.vertical,d=5,l=t.measureColor,v=t.targetColor,g=t.maxiColor,p=t.goodColor,F=t.badColor,b=t.forecastColor,_=t.allowMeasureOverMaxi,t=t.barSize;if(!(nt(n)||n<0)&&(nt(t)||!(ft(t)||t<=0))){if(1<t&&(t=1),e=nt(e)||e<0?0:e,i=nt(i)||i<0?0:i,o=nt(o)||o<0?0:o,r=nt(r)?0:r,c=nt(c)?0:c,m=nt(m)?0:m,M=nt(M)?"#A0A0A0":M,l=nt(l)?"#252525":l,n<e&&!_&&(e=n,l=mt),n<i&&(i=n,l=mt),n<o&&(o=n,l=mt),n<r&&(r=0,l=mt),n<c&&(c=n,l=mt),w=dt(u,s,f,y,5,y-10,h),D=w.left,H=w.width,a.save(),w=nt(t)?.2:(1-t)/2,N=nt(t)?.6:t,k=_?at(n,e):n,A(nt(g)?q(M,1.66):g,n,k,w,N),A(nt(p)?q(M,1.33):p,i,k,w,N),A(nt(F)?M:F,o,k,w,N),g=.25*t/.6,A(l,e,k,$=nt(t)?.375:(1-g)/2,S=nt(t)?.25:g),0<c&&(n=D,H<(p=H*(c/k))&&(p=H),i=nt(t)?3:3*t/.6,ht(a,h,u+.5*f,n,u+.5*f,n-p,n,s+.5*y,n+p,s+.5*y,nt(b)?"#3690BF":b,i)),0<r&&(M=rt(D-(h?1:-1)*H*(r/k))-.5,ht(a,h,u+f*w,M,u+f*(1-w),M,M,s+y*w,M,s+y*(1-w),nt(v)?mt:v,1)),0<m)for(x=T(k/m),P=void 0,C=0;C<=x;C++)P=rt(D-H/k*m*(h?1:-1)*C)-.5,ht(a,h,u,P,u+.05*f,P,P,s+y,P,s+.95*y,pt,1);a.restore()}function A(t,e,r,n,i){var o,t,e;a.fillStyle=t,H<(t=H*(e/r))&&!_&&(t=H),e=new xt(h?It(u+f*n,D-t,f*i,t):It(D,s+y*n,t,y*i)),a.fillRect(e.x,e.y,e.width,e.height)}}function he(t,e,r,n,i,o){var a,u,s,f,y,c,m,M,e,h,e,h,d,l,v,g,p,F,b,_,w,D,H,N,k,N,$,S,x,P,C,a=e.spreadData,u=e.showAverage,s=e.scaleStart,f=e.scaleEnd,y=e.style,c=e.colorScheme,m=e.vertical,M=5,e=a.length;if(!(e<=0)){for(h=a[0].key,e=a[e-1].key,s=nt(s)?h:s,f=nt(f)?e:f,y=nt(y)?4:y,c=nt(c)?pt:c,d=(h=dt(r,n,i,o,5,o-10,m)).left,l=h.width,v=h.top,g=h.height,vt(t,r,n,i,o),t.beginPath(),t.strokeStyle=c,t.fillStyle=c,b=Bt(a,!(t.lineWidth=2)),w=0,D=a.length;w<D;w++)if(N=(H=a[w]).key,k=H.value,p=d+(m?-1:1)*l*(N-s)/(f-s),p=m?(p=ot(p,d),at(p,d-l)):(p=at(p,d),ot(p,d+l)),p=rt(p),1===y)ht(t,m,N=v+g/2-(_=(_=k/2*g/b)<.5?.5:_),p,$=v+g/2+_,p,p,N,p,$);else if(4===y)ht(t,m,v,p,v+(_=(_=k*g/b)<1?1:_),p,p,v+g,p,v+g-_);else if(6===y)ht(t,m,v,p,v+g,p,p,v,p,v+g);else for(S=2,x=1;x<=k;x++){switch(y){case 2:F=v+g/2-5-(k/2-x)*g/b;break;case 3:F=v+g-5-(P=de(k,g,3,H.randomNumbers))[x-1];break;default:F=v+g-x*g/b}F=rt(F),t.beginPath(),t.fillRect(m?F:p,m?p:F,2,2)}u&&ht(t,m,v-5,p=d-(m?1:-1)*l*((C=le(a))-s)/(f-s),v+g+5,p,p,v-5,p,v+g+5,mt),t.restore()}}function de(t,e,r,n){for(var i,o,a,u,s,f,i=[],o=at(100,10*t),a=0,u=[],s=0;i.length<t;)f=T(n[s]*e),s++,(o<a||ve(f,u))&&(i.push(f),u.push([f-r,f+r])),a++;return i}function le(t){for(var e,r,n,i,o,e=0,r=0,n=0,i=t.length;n<i;n++)r+=(o=t[n]).value,e+=o.key*o.value;return 0===r?0:e/r}function ve(t,e){for(var r,n,i,r=0,n=e.length;r<n;r++)if((i=e[r])[0]<=t&&t<=i[1])return;return 1}function ge(i,t,e,r,n,o,a){var u,s,f,y,c,m,M,h,d,l,j,v,g,p,E,F,t,t,b,_,w,D,H,N,k,$,S,x,N,P,C,A,T,u=t.points,s=u&&u.length,f=t.colorRange,y=t.labelRange,c=t.maximum,m=t.targetRed,M=t.targetGreen,h=t.targetBlue,d=t.targetYellow,l=t.color,j=t.highlightPosition,v=t.vertical,g=t.textOrientation,p=t.textSize,E=5;if(!(nt(u)||s<=0)){if(l=nt(l)?pt:l,nt(f)||f.length!==s||pe(f))for(f=[],F=0;F<s;F++)f.push(q(l,1+F/s));for(t=Yt(u,function(t){return 0<t}),c=nt(c)||c<t?t:c,g=nt(g)?0:g,p=nt(p)||p<=0?10:p,p=ft(p)?p:p*a.zoomFactor,t=dt(e,r,n,o,5,o-10,v),b=t.left,_=t.width,w=t.top,D=t.height,i.save(),H=b,P=0,C=s;P<C;P++)(N=u[P])<=0||(N=N/c*_,x=v?(k=e+.15*n,S=.7*n,$=H-N,N):(k=H,S=N,$=r+.15*o,.7*o),A=P+1===j?mt:f[P],i.save(),i.fillStyle=A,i.fillRect(k,$,S,x),(T=y&&y[P])&&(i.save(),i.fillStyle=qt(A),i.textBaseline=tt,i.textAlign=L,i.font=p+Ft,i.rect(k,$,S,x),i.clip(),1===g?(i.translate(k+S/2,$),i.rotate(Math.PI/2),i.fillText(T,x/2,0)):i.fillText(T,k+S/2,$+x/2),i.restore()),H+=(v?-1:1)*N,i.restore());O(X,m,function(t){return 0<t}),O(Y,M),O(J,h),O("yellow",d),i.restore()}function O(t,e,r){var n,r;e!==it&&e!==R&&(e=c<e?c:e,!r||r(e))&&(r=(e=e<0?0:e)/c*_,v?(n=rt(b-r)-.5,G(i,w,n,w+D,n,t)):(n=rt(b+r)-.5,G(i,n,w,n,w+D,t)))}}function pe(t){for(var e=0,r=t.length;e<r;e++)if(nt(t[e]))return 1}function Fe(t,e,r,n,i,o){G(t,y(e),y(r),y(n),y(i),nt(o)?V:o,1)}function be(r,n,i,t,e){var t,o,a,u,s,f,t=.4*t;switch(n=y(n),i=y(i),r.beginPath(),r.moveTo(n,i),o=t/2,a=z(3)*t/2,u=t/z(3),e){case 0:s=[-o,0,o],f=[a,u,a];break;case 2:s=[-o,0,o],f=[-a,-u,-a];break;case 3:s=[a,u,a],f=[-o,0,o];break;case 1:s=[-a,-u,-a],f=[-o,0,o];break;default:s=[],f=[]}s.forEach(function(t,e){r.lineTo(y(n+t),y(i+f[e]))}),r.lineTo(n,i),r.closePath(),r.fillStyle=k,r.fill()}function _e(t,e,r,n,i,o,a){var u,s,f,y,r,c,m,M,h,d,l,v,g,p,u,y,F,r,g,r,r,t,b,u=r.value,s=r.colorScheme,f=r.axisVisible,y=r.barHeight,r=r.barWidth,c=5,m=5,M=!1,u=yt(u);if(!ft(u)){if(nt(y=0===t?y:r))F=.7;else{if(ft(y)||y<=0)return;F=Math.min(1,y)}1<u?(u=1,M=!0):u<-1&&(u=-1,M=!0),s=nt(s)?"grey":s,f=!!nt(f)||f,e.save(),0===t?(r=o-10,g=a*F,g=0<=u?(M&&(h=new D(H(n+5+r-5,i+a/2))),d=new xt(It(n+5,i+a*(1-F)/2,r*u,g)),l=new D(H(n+5,i+1)),v=new D(H(n+5,i+a)),1):(r=ut(r*u),M&&(h=new D(H(n+5+5,i+a/2))),d=new xt(It(n+o-5-r,i+a*(1-F)/2,r,g)),l=new D(H(n+o-5,i+1)),v=new D(H(n+o-5,i+a)),3),p=nt(y)?a:a*F):1===t&&(r=a-10,t=o*F,v=0<=u?(d=new xt(It(n+(1-F)/2*o,i+a-5-(b=r*u),t,b)),M&&(h=new D(H(n+o/2,i+a-5-b+5)),g=0),l=new D(H(n+1,i+a-5)),new D(H(n+o,i+a-5))):(u=ut(u),d=new xt(It(n+(1-F)/2*o,i+5,t,r*u)),M&&(h=new D(H(n+o/2,i+5+r-5)),g=2),l=new D(H(n+1,i+5)),new D(H(n+o,i+5))),p=nt(y)?o:o*F),e.beginPath(),d&&(lt(e,d.x,d.y,d.width,d.height,s),vt(e,d.x,d.y,d.width,d.height)),h&&be(e,h.x,h.y,p,g),e.restore(),f&&l&&Fe(e,l.x,l.y,v.x,v.y),e.restore()}}function y(t){return rt(t)-.5}function we(t,e,r,n,i,o){_e(0,t,e,r,n,i,o)}function De(t,e,r,n,i,o){_e(1,t,e,r,n,i,o)}function He(p,t,F,b,_,w,e){var r,n,i,o,a,u,D,s,f,H,N,y,c,m,k,$,r,j,E,S,R,M,h,x,e,t,d,d,d,t,P,C,c,c,l,v,g,s,r=t.variance,n=t.reference,i=t.mini,o=t.maxi,a=t.mark,u=t.tickUnit,D=t.legend,s=t.colorPositive,f=t.colorNegative,H=t.vertical,j=.5,E=.25,R=5,M=mt,h=gt,x=13*e.zoomFactor,e=yt(r);if(!(ft(e)||(f=nt(f)?X:f,s=nt(s)?Y:s,u=nt(u)?0:u,o=nt(o)?1:o,i=nt(i)?-1:i,(r=!nt(n))||(n=0),m=H?(N=b+w-5,y=w-10,c=_-20,-1):(N=F+5,y=_-10,c=w-20,1),D&&(t=yt(t.variance),ft(t)||(d=(d=t.toString()).substr(d.indexOf(".")+1).length,k=2<=d?(100*t).toFixed(d-2)+"%":(100*t).toFixed(0)+"%")),o<e&&(e=o,S=!0),e<i&&(e=i,S=!0),n=Qt(n,o,i),S&&($=Qt(c,60,15)),t=y/(d=ut(o-i)),P=N+m*ut(i-n)*t,(C=ut(e-n)*t)>ut(d)*t&&(C=ut(d+i)*t),c=N+m*y,H&&P<c)||!H&&c<P)){if(vt(p,F,b,_,w),n<e?A(s,0,5-y,y-5,0,1,b-P,Q,Z,P-F-_,I,B,-1,ut(o-e)*t):(C>ut(d)*t&&(C=ut(d+i)*t,P=N),A(f,1,-5,5,2,3,P-b-w,Z,Q,F-P,B,I,1,ut(i-e)*t)),r&&(c=N+m*(Math.abs(i-n)*t),O(F,c,F+_,c,c,b,c,b+w)),0<u)for(p.beginPath(),l=d/u,v=0;v<=l;v++)O(F,g=N+y/l*v*m,F+.1*_,g,g,b+.9*w,g,b+w,h,h);!nt(a)&&i<=a&&a<=o&&(p.beginPath(),s=N-(H?1:-1)*ut(i-a)*t,O(F,s,F+.33*_,s,s,b+.66*w,s,b+w,M,M),p.fill()),p.restore()}function A(t,e,r,n,i,o,a,u,s,f,y,c,m,M){var h,d,l,v,g,e;H?lt(p,h=F+.25*_,d=0===e?P-C:P,l=.5*_,v=C,t):lt(p,h=0===e?P:P-C,d=b+.25*w,l=C,v=.5*w,t),S&&(vt(p,h,d,l,v),H?be(p,F+_/2,N+r,$,i):be(p,N+n,b+w/2,$,o),p.restore()),D&&(g=void 0,e=0,S&&(e=.4*$*z(3)/2+5+2),p.save(),p.beginPath(),p.font=x+Ft,p.fillStyle=V,H?(p.textAlign=L,T(g=x+C+a,M,t,u,s,h,d,l,v,H),p.fillText(k,F+_/2,P+m*(C-e))):(p.textBaseline=tt,T(g=p.measureText(k).width+C+f,M,t,y,c,h,d,l,v,H),p.fillText(k,P+m*(e-C),b+w/2)),p.restore())}function T(t,e,r,n,i,o,a,u,s,f){f?p.textBaseline=n:p.textAlign=n,0<t&&e<C&&(p.rect(o,a,u,s),p.clip(),f?p.textBaseline=i:p.textAlign=i,p.fillStyle=qt(r))}function O(t,e,r,n,i,o,a,u,s,f){H?Fe(p,t,e,r,n,s):Fe(p,i,o,a,u,f)}}function Ne(t,e,r,n,i,o,j){var a,u,s,f,y,c,m,M,E,h,d,l,e,v,g,p,F,R,b,I,p,g,_,w,B,L,G,D,z,H,K,N,k,J,w,$,S,k,N,x,P,C,A,T,O,a=e.plannedValue,u=e.actualValue,s=e.index,f=e.absolute,y=e.reference,c=e.mini,m=e.maxi,M=e.tickUnit,E=e.legend,h=e.colorPositive,d=e.colorNegative,l=e.lollipopHeaderColor,e=e.vertical,I=[],w="",B=.9,L=10,G=13*j.zoomFactor,D=Mt,z=!1;if(!(0===a.length||0===u.length||s<0||s>=a.length||s>=u.length||m<=c||ft(u[s])||ft(a[s]))){if(d=nt(d)?X:d,h=nt(h)?Y:h,M=nt(M)?0:M,f=!nt(f)&&f,R=!nt(y),l=nt(l)?V:l,f){for(H=0;H<a.length&&H<u.length;H++)I.push(u[H]-a[H]);m=Bt(I,!1),c=Bt(I,!0),0<m&&0<c?c=0:m<0&&c<0&&(m=0),b=I[s],R=!(y=0)}else m=nt(m)?1:m,c=nt(c)?-1:c,b=(u[s]-a[s])/Math.abs(a[s]),((y=Qt(y,m,c))===m&&y<b||y===c&&b<y)&&(z=!0),nt(a[s])&&(z=!0);if(R||(y=0),p=e?(v=n+o-10,g=o-20,-1):(v=r+10,g=i-20,1),!f&&E?(0<(N=yt((K=b-y).toString()))&&(w="+"),!ft(N)&&isFinite(N)?F=w+(F=2<=(J=(k=N.toString()).substr(k.indexOf(".")+1).length)?(100*N).toFixed(2)+"%":100*N+"%"):isFinite(N)||(F=w+N)):F=(w=0<b?"+":w)+(F=2<=(J=(k=(N=yt(b)).toString()).substr(k.indexOf(".")+1).length)?N.toFixed(2):N),f?_=!1:(m<b&&(b=m,_=!0),b<c&&(b=c,_=!0)),$=g/(w=ut(m-c)),S=v+p*ut(c-y)*$,(k=ut(b-y)*$*.9)>ut(w)*$&&(k=ut(w+c)*$),N=v+p*g,!(e&&S<N||!e&&N<S))if(f||0!==a[s]&&!z){if(vt(t,r,n,i,o),x=ut(Math.ceil((m-y)/M)),P=ut(Math.floor((y-c)/M)),f){if(5/$<M)if(e){for(A=1;A<=x;A++)W(t,r,T=S+M*$*A*-1*.9,r+i,T,D,1);for(A=1;A<=P;A++)W(t,r,T=S+M*$*A*1*.9,r+i,T,D,1)}else{for(A=1;A<=x;A++)W(t,O=S+M*$*A*1*.9,n,O,n+o,D,1);for(A=1;A<=P;A++)W(t,O=S+M*$*A*-1*.9,n,O,n+o,D,1)}}else if(0<M&&M<=m&&5/$<M)if(t.beginPath(),e){for(C=10<.1*i?10:.1*i,A=1;A<=x;A++)W(t,r,T=S+M*$*A*-1*.9,r+C,T,D,1);for(A=1;A<=P;A++)W(t,r,T=S+M*$*A*1*.9,r+C,T,D,1)}else{for(C=10<.1*o?10:.1*o,A=1;A<=x;A++)W(t,O=S+M*$*A*1*.9,n+o-C,O,n+o,D,1);for(A=1;A<=P;A++)W(t,O=S+M*$*A*-1*.9,n+o-C,O,n+o,D,1)}p=Math.floor(12*j.zoomFactor),(g=Math.floor(4*j.zoomFactor))%2!=0&&(g+=1),p%2!=0&&(p+=1),y<b?Vt(t,r,n,i,o,h,l,!0,e,S,k,g,_,p,f):(k>ut(w)*$&&(k=ut(w+c)*$,S=v),Vt(t,r,n,i,o,d,l,!1,e,S,k,g,_,p,f)),E&&(y<b?Ut(t,r,n,i,o,n-S,S-r-i,F,G,e,!0,S,k,p):Ut(t,r,n,i,o,S-n-o,r-S,F,G,e,!1,S,k,p)),R&&(e?W(t,r,S,r+i,S,V,2):W(t,S,n,S,n+o,V,2)),t.restore()}else e?W(t,r,S,r+i,S,V,2):W(t,S,n,S,n+o,V,2)}}function ke(f,t,j,E,R,e){var r,n,I,i,o,a,u,s,y,c,B,m,M,h,d,i,o,a,u,l,v,g,p,F,L,j,E,R,e,G,b,_,w,z,K,J,V,D,H,N,k,$,S,x,W,U,P,C,P,C,P,q,i,o,u,Y,X,Z,A,i,o,T,O,Q,u,t,t,tt,r=t.points,n=t.boxPlotClass,I=t.showAverage,i=t.scaleStart,o=t.scaleEnd,a=t.acceptableStart,u=t.acceptableEnd,s=t.style,y=t.colorScheme,c=t.vertical,B=5,m=Bt(r,!1),M=Bt(r,!0);if(!(nt(r)||(r=Zt(r)).length<=0)){for((n=n===it||typeof n!==st?At:n.toLocaleLowerCase())!==At&&n!==Ct&&n!==Tt&&n!==Ot&&n!==jt&&(n=At),h=yt(i),h=ft(h)?M:h,d=yt(o),d=ft(d)?m:d,i=yt(a),o=yt(u),y!==it&&typeof y===st||(y="#D2D2D2"),(s===it||0!==s&&1!==s)&&(s=0),a=mt,M<h&&(y=a,h=M),d<m&&(y=a,d=m),vt(f,j,E,R,e),f.lineWidth=2,l=(u=dt(j,E,R,e,5,e-10,c)).left,v=u.width,g=u.top,p=u.height,F=c?-1:1,L=t.perc02,j=t.perc09,E=t.perc10,R=t.perc90,e=t.perc91,G=t.perc98,b=t.q1,z=M,K=m,V=J=1.5*(w=(_=t.q3)-b),D=t.stDev,H=Yt(r)/at(1,r.length),k=N=0,$=g+.1*p,S=.7*p,x=ut(d-h),W=0,U=r.length;W<U;W++)(P=r[W])<b&&b-1.5*w<=P&&P-(b-1.5*w)<J&&(J=P-(b-1.5*w),z=P),_<P&&P<=_+1.5*w&&_+1.5*w-P<V&&(V=_+1.5*w-P,K=P),C=!1,N=l+v*((P-h)/x)*F,n===Tt&&(P<=b-1.5*w||_+1.5*w<=P)&&(C=!0,k=P<=b-3*w||_+3*w<=P?0:1),n===Ct&&(P<=L||G<=P)&&(C=!0,k=1),n===jt&&(P<=H-2*D||H+2*D<=P)&&(C=!0,k=P<=H-3*D||H+3*D<=P?0:1),P=gt,C&&(1===s?1===k?rt(.2,.8,N,P):rt(.3,.7,N,P):((C=.1*p)<2&&(C=2),f.beginPath(),f.strokeStyle=P,P=g+.45*p,q=N,f.arc(c?P:q,c?q:P,C/2,0,2*Math.PI),f.stroke()));switch((i<h||d<o)&&(y="#C0FF00"),i=at(h,i),(o=ot(d,o))<i?y=a:i<o&&ht(f,c,u=g+.9*p,i=l+v*((i-h)/x)*F,u,o=l+v*((o-h)/x)*F,i,u,o,u,pt),X=ut(l+v*((_-h)/x)*F-(Y=l+v*((b-h)/x)*F)),A=l+v*(((Z=t.median)-h)/x)*F,n){case Ct:T=L,O=G;break;case Tt:T=z,O=K;break;case jt:X=ut(l+v*((H+D-h)/x)*F-(Y=l+v*((H-D-h)/x)*F)),A=l+v*((H-h)/x)*F,T=h<(Q=H-2*D)?Q:M,O=(Q=H+2*D)<d?Q:m,I=!1;break;default:T=M,O=m}i=l+v*((T-h)/x)*F,o=l+v*((O-h)/x)*F,u=gt,1===s?et("#F2F2F2",$,o,S,i-o,i,$,o-i,S):ht(f,c,t=g+.45*p,i,t,o,i,t,o,t,u),et(y,$,Y-X,S,X,Y,$,X,S),ht(f,c,$,A,$+S,A,A,$,A,$+S,u),0===s&&(ht(f,c,$+.3*S,o,$+.7*S,o,o,$+.3*S,o,$+.7*S,u),ht(f,c,$+.3*S,i,$+.7*S,i,i,$+.3*S,i,$+.7*S,u)),n!==Ct&&n!==Ot||(tt=t=void 0,O=n===Ct?(T=j,e):(T=E,R),t=l+v*((T-h)/x)*F,rt(.3,.7,tt=l+v*((O-h)/x)*F,u),rt(.3,.7,t,u)),I&&rt(.2,.8,N=l+v*((H-h)/x)*F,a),f.restore()}function et(t,e,r,n,i,o,a,u,s){c?lt(f,e,r,n,i,t):lt(f,o,a,u,s,t)}function rt(t,e,r,n){ht(f,c,$+S*t,r,$+S*e,r,r,$+S*t,r,$+S*e,n)}}function $e(t,e,r,n,i){e=rt(e),r=rt(r),e===(n=rt(n))&&(e=n-=.5),r===(i=rt(i))&&(r=i-=.5),t.moveTo(e,r),t.lineTo(n,i)}function U(t,e,r,n,i,o,a,u,s,f,y){t.beginPath(),t.strokeStyle=r,e?$e(t,n,i,o,a):$e(t,u,s,f,y),t.stroke()}function Se(t,e,r,n,i){t.rect(e,r,n,i),t.clip()}function xe(t,e,r,n,i,o){var a,u,s,f,y,c,m,M,h,d,l,v,g,o,a=o.labelText,u=o.fontSize,s=o.startBox,f=o.endBox,y=o.boxColor,c=o.isInRightOrTopOfBox,m=o.fillStyle;t.save(),t.beginPath(),t.font=u+Ft,l=1,m=nt(m)?V:m,o.vertical?(v=L,c?0<(M=u+f-(s-r))&&s-f-r<f?(g=Z,m=qt(y),d=s-f+1,Se(t,e,s-f,n,f)):(g=Q,d=s-f-1):d=0<(M=u-(r+i-s))&&r+i-s<f?(Se(t,e,s-f,n,f),g=Q,m=qt(y),s-1):(g=Z,s+1),t.textAlign=v,t.textBaseline=g,t.fillStyle=m,t.fillText(a,e+n/2,d)):(g=tt,o=t.measureText(a),c?h=0<(M=o.width+f-(e+n-s))&&e+n-(s+f)<f?(Se(t,s,r,f,i),v=B,m=qt(y),s+f-1):(v=I,s+f+1):0<(M=o.width-(s-e))&&s-e<f?(Se(t,s,r,f,i),h=s+1,v=I,m=qt(y)):(v=B,h=s-1),t.textAlign=v,t.textBaseline=g,t.fillStyle=m,t.fillText(a,h,r+i/2)),t.restore()}function Pe(t,e,r,n,i,o,j){var a,u,E,s,f,y,c,m,R,e,I,j,M,h,E,y,c,B,d,l,v,g,p,F,b,_,w,D,L,H,G,N,k,z,$,K,S,x,s,f,f,s,P,C,f,A,J,P,x,S,T,A,x,$,O,T,O,e,T,a=e.points,u=e.labels,E=e.pointIndex,s=e.minimum,f=e.maximum,y=e.colorPositive,c=e.colorNegative,m=e.vertical,R=e.itemTypeRange,e=e.colorTotal,I=5,j=13*j.zoomFactor;if(!nt(a)&&!((M=a.length)<=0||(h=parseInt(E,10),ft(h))||h<=0||M<h)){for(u=nt(u)?[]:u,c!==it&&typeof c===st||(c="#D6604D"),typeof e!==st&&(e=it),y=q(E=y=y!==it&&typeof y===st?y:"#8CBF64",1.3),B=q(c=c,1.3),d=1,F=[],D=_=b=p=g=v=l=0,L=M;D<L;D++)_=a[D],w=R[D],H=!1,G=1===d,(N=!nt(w))&&(w===_t?_=ut(_):w===bt?_=-ut(_):w===wt?(H=!0,G?l=_:_=l):N=!1),F[d]=[],k=F[d],ft(_)?(k[0]=0,k[1]=l,k[2]=0):(k[0]=ut(_),l=H?l:_+l,k[1]=0<_?v:l,k[2]=_),k[3]=d,g=ot(v,g),p=at(v,p),((z=d===M)&&!N||H)&&(b=g<0?-g:0,k[1]=0<_?0:_),N&&H&&!G||(v=_+v,z&&N&&(g=ot(v,g),p=at(v,p))),d++;$=!1,nt(w)||($=-1===(K=[bt,_t,wt]).indexOf(w)),(nt(w)||$)&&(l-=_),s=yt(s),ft(s)||0<s||g<s?s=S=g:b=-(S=s),f=yt(f),ft(f)||f<0||f<p?x=p:(x=f,b=-s),s=(f=dt(r,n,i,o,5,o-10,m)).left,P=f.width,C=f.top,f=f.height,A=m?-1:1,P=P/(J=x-S),vt(t,r,n,i,o),t.beginPath(),t.lineWidth=1,S=(x=F[h])[2],T=R[h-1],A=s+A*(x[1]+b)*P,x=x[0]*P,O=T===wt,T=(nt(T)||$)&&h===M||O,$=e&&T?e:1===h||T?0<=S?E:c:0<=S?y:B,m?lt(t,C,A-x,f,x,$):lt(t,A,C,x,f,$),m?(1!==h&&(h!==M?U(t,0<S,Mt,r,A,C+f,A,r,A-x,C+f,A-x):U(t,!0,Mt,r,O=s-(l+b)*P,C+f,O)),h!==M&&U(t,0<S,Mt,C,A-x,r+i,A-x,C,A,r+i,A)):(1!==h&&(h!==M?U(t,0<S,Mt,A,n,A,C+f,A+x,n,A+x,C+f):U(t,!0,Mt,e=s+(l+b)*P,n,e,C+f)),h!==M&&U(t,0<S,Mt,A+x,C,A+x,n+o,A,C,A,n+o)),T=u[h-1],0<u.length&&!nt(T)&&""!==T&&xe(t,r,n,i,o,{labelText:T,vertical:m,isInRightOrTopOfBox:0<S,fontSize:j,startBox:A,endBox:x,boxColor:$}),U(t,m,V,r,s-b*P,r+i,s-b*P,s+b*P,n,s+b*P,n+o),t.restore()}}function Ce(r,t,n,i,o,a,e){var u,s,f,y,c,m,M,h,e,d,l,v,t,g,p,s,F,b,_,w,D,H,N,g,j,M,k,$,t,g,S,M,x,P,C,A,m,T,f,O,u=t.points,s=t.pointIndex,f=t.colorRange,y=t.target,c=t.target2,m=t.highlightPosition,M=t.label,h=t.vertical,e=13*e.zoomFactor,d=t.targetColor,l=t.target2Color,v=t.labelColor,t=t.barSize;if(!nt(u)&&(nt(t)||!(ft(t)||t<=0))&&(1<t&&(t=1),!((g=u.length)<=0||(p=parseInt(s,10),ft(p))||p<=0||g<p))){for(f=nt(f)?[]:f,s=parseInt(M,10),s=ft(s)?0:s,F=1,_=[],w=b=0,D=u.length;w<D;w++)H=u[w],_[F]=[],N=_[F],H<0||ft(H)||nt(H)?(N[0]=1===F?0:b,N[1]=0):(b+=H,N[0]=1===F?0:b-H,N[1]=H),F++;j=5,g=nt(t)?5:h?o*(1-t)/2:a*(1-t)/2,M=dt(n,i,o,a,g,a-10,h,5),k=M.left,$=M.width,t=M.top,g=M.height,S=h?-1:1,M=$/b,vt(r,n,i,o,a),r.beginPath(),r.lineWidth=1,P=(x=_[p])[1],C=k+S*x[0]*M,A=x[1]*M,m=p===m?mt:0===f.length||typeof f[p-1]!==st?gt:f[p-1],h?lt(r,t,C-A,g,A,m):lt(r,C,t,A,g,m),1===s?T=(x[0]+P)/b*1e3:2===s&&(T=P/b*1e3),f=rt(T)/10+"%",1!==s&&2!==s||!f||xe(r,n,i,o,a,{labelText:f,vertical:h,isInRightOrTopOfBox:(x[0]+x[1])*M<$/2,fontSize:e,startBox:C,endBox:A,boxColor:m,fillStyle:v}),O=[nt(d)?"#8CBF64":d,nt(l)?"#EE5D5D":l],[y,c].forEach(function(t,e){var t,t,t=E(t),t=K(k+S*$*t);U(r,h,O[e],n,t,n+o,t,t,i,t,i+a)}),r.restore()}function E(t){var t=yt(t),t;return t=1<(t=(t=ft(t)?0:t)<0?0:t)?1:t}}function Ae(t,e){switch(e){case 2:var r;return t%4==0&&t%100!=0||t%400==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function Te(t,e,r){var e,r,n,i,o,e;return 1<(t=t<0?0:t)&&(t=1),e=h(e),r=h(r),n=e.a*(1-t)+r.a*t,i=e.r*(1-t)+r.r*t+"",o=e.g*(1-t)+r.g*t+"",e=e.b*(1-t)+r.b*t+"","rgba("+parseInt(i,10)+","+parseInt(o,10)+","+parseInt(e,10)+","+yt(n/255+"")+")"}function Oe(t,e,r){return t===e&&t===r?1:t<=e?0:r<=t?1:(t-e)/(r-e)}function je(t,e,r,n,i,o){var a=(o+i)/2;return i<=n&&n<=a?Te(Oe(n,i,a),t,e):Te(Oe(n,a,o),e,r)}function Ee(t){var e=ct,r=-ct;return t.forEach(function(t){t!==it&&t!==R&&(t<e&&(e=t),r<t)&&(r=t)}),{min:e,max:r}}function Re(t,r,n,i,o,a,u){var e,s,f;i?t.forEach(function(t,e){0!==t&&t!==it&&t!==R&&(r[n+e]=i[e]||r[n+e])}):(e=Ee(t),s=e.min,f=e.max,t.forEach(function(t,e){0!==t&&t!==it&&t!==R&&(r[n+e]=je(o,a,u,t,s,f))}))}function Ie(t,e,r,n,i,o){for(var a,u,s,f,y,c,m,M,h,d,l,v,g,p,F,b,_,w,D,a=e.year,u=e.month,s=e.values,f=e.emptyColor||"lightgray",y=e.startColor,c=e.middleColor,m=e.endColor,M="white",h=6,d=7,l=2,v=(i-14)/6,g=(o-16)/7,p=[],F=new Date(a,u-1,1).getDay(),b=0;b<42;b++)!(b<F)&&b<F+Ae(a,u)?p[b]=f:p[b]=M;for(Re(s,p,F,e.colors,y,c,m),t.save(),t.rect(r,n,i,o),t.clip(),t.beginPath(),w=_=0;w<6;w++)for(D=0;D<7;D++)t.fillStyle=p[_],_++,t.fillRect(r+w*v+2*(w+1),n+D*g+2*(D+1),v,g);t.restore()}function Be(t){for(var e,r,n,i,e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),i=1;i<r+1;i++)n+=Ae(e,i);return n}function Le(t,e,r,n,i,o,a){for(var u,s,f,y,c,m,M,j,h,d,l,v,g,s,e,p,F,y,c,E,b,_,w,D,H,N,k,$,S,x,P,C,A,A,T,O,u=e.year,s=e.values,f=e.emptyColor||"lightgray",y=e.startColor,c=e.middleColor,m=e.endColor,M="white",j=7,h=parseInt(366/7+"",10)+2,d=[],l=new Date(u,0,1).getDay(),v=Be(new Date(u,11,31)),g=0;g<7*h;g++)d[g]=!(g<l)&&g<l+v?f:M;for(Re(s,d,l,e.colors,y,c,m),t.save(),t.rect(r,n,i,o),t.clip(),p=r+(e=15*(s=a.zoomFactor)),F=n,y=i-e,c=o,t.save(),t.translate(r+e/2,F+c),t.rotate(-Math.PI/2),t.font=13*s+Ft,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(u+"",c/2,0),t.restore(),b=(y-(E=2)*(h+1))/h,_=(c-16)/7,k=[],H=w=0;H<h;H++)for(D=0;D<7;D++)k[w]=N={x:p+H*b+2*(H+1),y:F+D*_+2*(D+1),w:b,h:_},t.fillStyle=d[w],w++,t.fillRect(N.x,N.y,N.w,N.h);for($=[],S={},x=0;x<12;x++)S[x]=Be(new Date(u,x,1))-1+l;for(P=S[11]+Ae(u,12)-1,H=w=0;H<h;H++)for(D=0;D<7;D++)l<=w&&w<l+v&&(A=(C=new Date(u,0,w-l+1)).getMonth(),N=k[w],(A=S[A])<=w&&w<7+A&&$.push({x1:N.x,y1:N.y-1,x2:N.x,y2:N.y+N.h+1}),w!==A&&0!==C.getDay()||$.push({x1:N.x-1,y1:N.y,x2:N.x+N.w+1+(w===A?2:0),y2:N.y}),P-7<w&&w<=P&&$.push({x1:N.x+N.w,y1:N.y-1,x2:N.x+N.w,y2:N.y+N.h+1}),w!==P&&6!==C.getDay()||$.push({x1:N.x-1-(w===P?2:0),y1:N.y+N.h,x2:N.x+N.w+1,y2:N.y+N.h})),w++;for(t.strokeStyle="black",t.lineWidth=2,T=0;T<$.length;T++)O=$[T],t.beginPath(),t.moveTo(O.x1,O.y1),t.lineTo(O.x2,O.y2),t.stroke();t.restore()}function Ge(t){var e,r,n,i,o,a,u,s,f,y,e=Xt(t.minAngle-90),r=Xt(t.maxAngle-90),n=t.minValueOption.value,i=t.maxValueOption.value,o=t.ranges,a=l,u=(r-e)/(i-n),s=[];return 0<o.length&&o.forEach(function(t){f=t.start,y=t.end,s.push({start:u*(f-n)+e,end:u*(y-n)+e,color:t.color})}),s.unshift({start:e,end:r,color:a}),{paintRanges:s,fillColor:a,targetValueRadian:u*(t.targetValueOption.value-n)+e,currentValueRadian:u*(t.currentValueOption.value-n)+e,minValueRadian:e,maxValueRadian:r}}function ze(t,e,r,n,i,o,a){var o,u,s,f,y,c,o,m,y,M,h,d,l,v,c,g,a,o=o.zoomFactor,u=t.currentValueOption.normalFontHeight*o,s=t.minValueOption.normalFontHeight*o,f=t.maxValueOption.normalFontHeight*o,y=t.minAngle,c=t.maxAngle,o=t.currentValueOption.normalFontWidth*o,m=90<ut(y)||90<ut(c),y=120<ut(y)||120<ut(c),c=b*ot(n,i);return a?(M=T(n/2*F),h=T(i*F),a=.03*(l=ot(M,d=m?h/2:h)),v={x:e+n/2,y:r+i/2+(m?0:l/2),outerRadius:l,innerRadius:l*t.radiusRatio,currentValuePoint:R,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:s<(g=(i-(m?2*l:l))/2),enoughShowMaxLabel:f<g,moreThanSemiCircle:m},m?y?2*u/3<g-a-at(f,s)&&o<n-2*c&&(v.currentValuePoint={x:v.x,y:v.y+l+a+u/2+at(f,s)},v.enoughShowCurrentLabel=!0):2*u/3<i/2-a&&o<n-2*c&&(v.currentValuePoint={x:v.x,y:v.y+2*a+u},v.enoughShowCurrentLabel=!0):u<g-a&&o<n-2*c&&(v.currentValuePoint={x:v.x,y:v.y+u},v.enoughShowCurrentLabel=!0)):(M=T(n/2*p),h=T(i*p),l=ot(M,d=m?h/2:h),v={x:e+n/2,y:r+i/2+(m?0:l/2),outerRadius:l,innerRadius:l*t.radiusRatio}),v}function Ke(t,e,r,n){return{x:t+N(r)*n,y:e+x(r)*n}}function Je(t,e){return ut(e.x-t.x)<.01?{x:e.x,y:e.y,textAlign:L}:e.x>t.x?{x:e.x+a,y:e.y,textAlign:I}:e.x<t.x?{x:e.x-a,y:e.y,textAlign:B}:{x:e.x,y:e.y,textAlign:I}}function Ve(e,t,r,n,i,o,a){var u,s,r,n,f,y,a,c,m,M,h,d,h,l,h,h,s,v,g,p,F,b,_,w,D,H,a,_,b,p,a,v,_,F,b,g,w,p,u=a.zoomFactor,s=!!nt(t.showLabel)||t.showLabel,r=ze(t,r,n,i,o,a,s);if(!(r.outerRadius<=0))return n={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=r.innerRadius,y=r.outerRadius,a=r.currentValuePoint,c=r.moreThanSemiCircle,m={x:r.x,y:r.y},h=(M=Ge(t)).paintRanges,d=M.fillColor,e.save(),h.forEach(function(t){e.beginPath(),e.strokeStyle=k,e.moveTo(m.x,m.y),e.fillStyle=t.color||d,e.arc(m.x,m.y,y,t.start,t.end,!1),e.lineTo(m.x,m.y),e.closePath(),e.fill(),e.stroke(),e.beginPath(),e.fillStyle=k,e.strokeStyle=k,e.moveTo(m.x,m.y),e.arc(m.x,m.y,f,t.start-St,t.end+St,!1),e.lineTo(m.x,m.y),e.closePath(),e.fill(),e.stroke()}),e.beginPath(),e.moveTo(m.x,m.y),e.fillStyle=V,e.arc(m.x,m.y,y*A,0,2*et,!1),e.fill(),h=Ke(m.x,m.y,M.targetValueRadian,f),l=Ke(m.x,m.y,M.targetValueRadian,y*E),Gt(e,h.x,h.y,l.x,l.y,Ht,Nt,$),h=Ke(m.x,m.y,M.currentValueRadian,y*E),G(e,m.x,m.y,h.x,h.y,V,O*y),s&&(e.save(),e.beginPath(),e.textAlign=C,e.fillStyle=$,h=t.minValueOption.normalFontHeight*u,s=t.maxValueOption.normalFontHeight*u,v=t.minValueOption.normalFontWidth*u,g=t.maxValueOption.normalFontWidth*u,p=M.minValueRadian,F=M.maxValueRadian,b=t.currentValueOption.normalFontHeight*u,_=t.currentValueOption.normalFontWidth*u,H=D=w=void 0,r.enoughShowCurrentLabel&&(S(e,a.x,a.y,t.currentValueOption.label,t.currentValueOption.fontAfterZoom,L),n.showCurrentLabel=!0,w={x:a.x-_/2,y:a.y-b,width:_,height:b}),r.enoughShowMinLabel&&ut(N(p)*y)+v<i/2-$t&&(a=Ke(m.x,m.y,M.minValueRadian,y),te(D={x:(_=Je(m,a)).x-v,y:_.y,width:v,height:h},w)||(S(e,_.x,_.y+T(h),t.minValueOption.label,t.minValueOption.fontAfterZoom,B),n.showMinLabel=!0)),r.enoughShowMaxLabel&&ut(N(F)*y)+g<i/2-$t&&(b=Ke(m.x,m.y,M.maxValueRadian,y),te(H={x:(p=Je(m,b)).x,y:p.y,width:g,height:s},w)||(S(e,p.x,p.y+T(s),t.maxValueOption.label,t.maxValueOption.fontAfterZoom,I),n.showMaxLabel=!0)),r.enoughShowTargetLabel&&(a=t.targetValueOption.normalFontWidth*u,v=t.targetValueOption.normalFontHeight*u,_=t.targetValueOption.label,l=Ke(m.x,m.y,M.targetValueRadian,F=y+3*v/2),b=Je(m,l),g=M.targetValueRadian,w=c?(o-2*F)/2+F:o-(o-y)/2,ut(N(g)*F)+a<i/2-$t)&&ut(x(g)*F)+v/2+$t/2<w&&(p=at(h,s)/2,S(e,b.x,b.y-(et<g?p:-p),_,t.targetValueOption.fontAfterZoom,b.textAlign),n.showTargetLabel=!0),e.restore()),e.restore(),n}function We(t,e,r,n,i,o){var o,a,u,s,f,y,c,m,M,t,h,d,o,e,o=o.zoomFactor,a=t.showLabel,u=t.minValueOption.normalFontHeight*o,s=t.maxValueOption.normalFontHeight*o,f=t.targetValueOption.normalFontHeight*o,y=t.currentValueOption.normalFontHeight*o,c=t.minValueOption.normalFontWidth*o,m=t.maxValueOption.normalFontWidth*o,M=t.targetValueOption.normalFontWidth*o,t=t.currentValueOption.normalFontWidth*o,o=.05*n,h=T(i*v),d=T(n*g),e={x:e+n*(1-g)/2,y:r+i*(v+(1-v)/2),graphWidth:d,graphHeight:h,targetValuePoint:R,currentValuePoint:R,minValuePoint:R,maxValuePoint:R};return a&&(u<(i-h)/2&&c<(n-d)/2-o&&(e.minValuePoint={x:e.x-c,y:e.y+u/3},e.enoughShowMinLabel=!0),s<(i-h)/2&&m<(n-d)/2-o&&(e.maxValuePoint={x:e.x-m,y:e.y-h+s/3},e.enoughShowMaxLabel=!0),(f<(i-h)/2||f/2<h)&&M<(n-d)/2-o-at(c,m)&&(e.targetValuePoint={x:e.x-M-at(c,m),y:R},e.enoughShowTargetLabel=!0),y<(i-h)/2||y/2<h)&&t<(n-d)/2-o&&(e.currentValuePoint={x:e.x+d+o,y:R},e.enoughShowCurrentLabel=!0),e}function Ue(t,e){var r,n,i,o,a,u,s,f,r=t.minValueOption.value,n=t.maxValueOption.value,i=t.ranges,o=l,a=e.graphHeight/(n-r),u=[];return 0<i.length&&i.forEach(function(t){s=t.start,f=t.end,u.push({start:e.y-a*(s-r),height:a*(f-s),color:t.color})}),u.unshift({start:e.y,height:e.graphHeight,color:o}),{paintRanges:u,fillColor:o,targetValueY:e.y-a*(t.targetValueOption.value-r),currentValueY:e.y-a*(t.currentValueOption.value-r)}}function qe(e,t,r,n,i,o,a){var u,s,f,y,c,m,r,M,i,a,h,d,l,v,g,t,p,F,b,_,w,u=a.zoomFactor,s=t.showLabel,f=t.minValueOption,y=t.maxValueOption,c=t.currentValueOption,m=t.targetValueOption,r=We(t,r,n,i,o,a),M=r.graphWidth,i=r.graphHeight;if(!(M<=0||i<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=r.currentValuePoint,d=r.targetValuePoint,l=r.minValuePoint,v=r.maxValuePoint,g={x:r.x,y:r.y},p=(t=Ue(t,r)).paintRanges,F=c.normalFontHeight*u,b=m.normalFontHeight*u,_=t.targetValueY,w=t.currentValueY,e.save(),p.forEach(function(t){lt(e,g.x,t.start,M,-t.height,t.color)}),Gt(e,g.x-(E-1)*M,_,g.x+M,_,Ht,Nt,$),G(e,g.x,w,g.x+M*E,w,V,Dt*i),s&&(e.save(),e.beginPath(),r.enoughShowMinLabel&&(S(e,l.x,l.y,f.label,f.fontAfterZoom,I,$),a.showMinLabel=!0),r.enoughShowMaxLabel&&(S(e,v.x,v.y,y.label,y.fontAfterZoom,I,$),a.showMaxLabel=!0),r.enoughShowTargetLabel&&!(o<_-n+b/2||_-n-kt<0)&&(S(e,d.x,t.targetValueY+m.normalFontHeight*u/3,m.label,m.fontAfterZoom,I,$),a.showTargetLabel=!0),r.enoughShowCurrentLabel&&!(o<w-n+F/2||w-n-kt<0)&&(S(e,h.x,t.currentValueY+c.normalFontHeight*u/3,c.label,c.fontAfterZoom,I,$),a.showCurrentLabel=!0),e.restore()),e.restore(),a}function Ye(t,e,r,n,i,o){var o,a,u,s,f,y,c,m,M,t,h,d,o,e,o=o.zoomFactor,a=t.showLabel,u=t.minValueOption.normalFontHeight*o,s=t.maxValueOption.normalFontHeight*o,f=t.targetValueOption.normalFontHeight*o,y=t.currentValueOption.normalFontHeight*o,c=t.minValueOption.normalFontWidth*o,m=t.maxValueOption.normalFontWidth*o,M=t.currentValueOption.normalFontWidth*o,t=t.targetValueOption.normalFontWidth*o,o=.1*ot(n,i),h=T(i*g),d=T(n*v),e={x:e+n*(1-v)/2,y:r+i*(1-g)/2,graphWidth:d,graphHeight:h,targetValuePoint:R,currentValuePoint:R,minValuePoint:R,maxValuePoint:R};return a&&((M<3*(n-d)/4||M<d)&&y<(i-h)/2-$t&&(e.currentValuePoint={x:R,y:e.y-y/2},e.enoughShowCurrentLabel=!0),(t<3*(n-d)/4||t<d)&&f<(i-h)/2-at(u,s)&&(e.targetValuePoint={x:R,y:e.y+h+at(u,s)+f/4*3},e.enoughShowTargetLabel=!0),c<3*(n-d)/4&&u<(i-h)/2-o&&(e.minValuePoint={x:e.x-c/2,y:e.y+h+u},e.enoughShowMinLabel=!0),m<3*(n-d)/4)&&s<(i-h)/2-o&&(e.maxValuePoint={x:e.x+d-m/2,y:e.y+h+s},e.enoughShowMaxLabel=!0),e}function Xe(t,e){var r,n,i,o,a,u,s,f,r=t.minValueOption.value,n=t.maxValueOption.value,i=t.ranges,o=l,a=e.graphWidth/(n-r),u=[];return 0<i.length&&i.forEach(function(t){s=t.start,f=t.end,u.push({start:e.x+a*(s-r),width:a*(f-s),color:t.color||o})}),u.unshift({start:e.x,width:e.graphWidth,color:o}),{paintRanges:u,fillColor:o,targetValueX:e.x+a*(t.targetValueOption.value-r),currentValueX:e.x+a*(t.currentValueOption.value-r)}}function Ze(e,t,r,n,i,o,a){var u,s,f,y,c,m,n,o,M,a,h,d,l,v,g,t,p,F,b,_,t,u=a.zoomFactor,s=t.showLabel,f=t.minValueOption,y=t.maxValueOption,c=t.currentValueOption,m=t.targetValueOption,n=Ye(t,r,n,i,o,a),o=n.graphWidth,M=n.graphHeight;if(!(o<=0||M<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=n.currentValuePoint,d=n.targetValuePoint,l=n.minValuePoint,v=n.maxValuePoint,g={x:n.x,y:n.y},p=(t=Xe(t,n)).paintRanges,F=c.normalFontWidth*u,b=m.normalFontWidth*u,_=t.targetValueX,t=t.currentValueX,e.save(),p.forEach(function(t){lt(e,t.start,g.y,t.width,M,t.color)}),Gt(e,_,g.y,_,g.y+M*E,Ht,Nt,$),Lt(e,t,g.y+M-1,t,g.y-M*(E-1)-1,V,o*Dt),s&&(e.save(),n.enoughShowMinLabel&&(S(e,l.x,l.y,f.label,f.fontAfterZoom,I,$),a.showMinLabel=!0),n.enoughShowMaxLabel&&(S(e,v.x,v.y,y.label,y.fontAfterZoom,I,$),a.showMaxLabel=!0),n.enoughShowTargetLabel&&!(i<_-r+b/2+w||_-r-b/2-w<0)&&(S(e,_-m.normalFontWidth*u/2,d.y,m.label,m.fontAfterZoom,I,$),a.showTargetLabel=!0),n.enoughShowCurrentLabel&&!(i<t-r+F/2+w||t-r-F/2-w<0)&&(S(e,t-c.normalFontWidth*u/2,h.y,c.label,c.fontAfterZoom,I,$),a.showCurrentLabel=!0),e.restore()),e.restore(),a}function Qe(t,e,r,n,i,o,a){t.save(),t.rect(r,n,i,o),t.clip(),0===e.gaugeType?Ve(t,e,r,n,i,o,a):1===e.gaugeType?qe(t,e,r,n,i,o,a):2===e.gaugeType&&Ze(t,e,r,n,i,o,a),t.restore()}function tr(t,e,r,n,i,o,a,u){var s,f,y,a,c,m,M,h,d,l,s=[],f=t.length,y=0,a=a.fontPixelSize;if(o&&(y=a+3),0!==f){for(c=n/f,m=t[0].value,M=1;M<f;M++)m=Math.max(m,t[M].value);for(h=0;h<f;h++)l=t[h].value/m*(i-y),s.push({x:e+h*c+c*(1-u)/2,textX:e+h*c,y:(d=r+i-y)-(l=l<0?0:l),width:c*u,textWidth:c,height:l,axis:t[h].axis})}return s}function er(t,e,r,n){t.save(),t.fillStyle=r;for(var i=0;i<e.length;i++)t.fillRect(e[i].x,e[i].y,e[i].width,e[i].height);t.restore()}function rr(t,e,r,n){var i,o,a,u,s;for(t.save(),i=r.fontPixelSize,o=ar(r),t.textAlign="center",t.fillStyle=n,a=0;a<e.length;a++)s=u=void 0,u=e[a].x+e[a].width/2,s=e[a].y+e[a].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(e[a].textX,e[a].y+e[a].height+1,e[a].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(e[a].axis,u,s),t.restore();t.restore()}function nr(t,e,r,n){var i,o,a,u,s,o;if("none"!==n){for(t.save(),t.lineWidth=1,t.strokeStyle=n,t.beginPath(),i=0;i<e.length;i++)a=(o=e[i]).x,u=o.y,s=o.width,0===(o=o.height)||0===s||(G(t,a,u,a+s,u),G(t,a,u+o,a+s,u+o),e[i-1]&&e[i-1].height>=o&&1===r||G(t,a,u,a,u+o),e[i+1]&&e[i+1].height>o&&1===r)||G(t,a+s,u,a+s,u+o);t.stroke(),t.closePath(),t.restore()}}function ir(t,e,r,n,i){var o,a,u,s,f,y,o=!1;for(t.save(),t.font=i,u=(r-6)/(a=e.length),s=0,f=e;s<f.length;s++)if(y=f[s],t.measureText(y.axis).width>u){o=!0;break}return t.restore(),o}function or(t,e,r,n,i,o,a){var u,s,f,y,c,m,M,e,h,r,n,u=e.barColor,s=e.values,f=e.paintLabel,y=e.barWidth,c=e.labelFontStyle,m=e.afterZoomFontStyle,M=e.edgeColor,e=e.labelColor;nt(c)||(o<3*(h=m.fontPixelSize)||ir(t,s,i,o,ar(m)))&&(f=!1),er(t,n=tr(s,r+3,n+3,i-6,o-6,f=f&&nt(c)&&(r=Math.floor(12<=o/3?12:Math.floor(o/3)),m.fontPixelSize=r,m.fontSize=r+"px",ir(t,s,i,o,ar(m)))?!1:f,m,y),u,M),nr(t,n,y,M),f&&rr(t,n,m,e)}function ar(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function ur(t,e,r,n,i,o,a){var r,n,i,o,u,s,f,y,e;t.save(),t.rect(r,n,i,o),t.clip(),r=e.clipX,n=e.clipY,i=e.clipWidth,o=e.clipHeight,u=e.paintX,s=e.paintY,f=e.paintWidth,y=e.paintHeight,e=e.img,0<i&&0<o&&0<f&&0<y&&t.drawImage(e,r,n,i,o,u,s,f,y),t.restore()}function sr(t,e,r,n){this.X=t,this.Y=e,this.Width=r,this.Height=n,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}function t(){this.Bzt=2,this.Lzt=o,this.Fzt=o,this.Pzt=ct,this.Gzt=-ct}n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),Object.defineProperty(c,"__esModule",{value:!0}),c.SparklineExRenders=c.SparklineRender=c.Uzt=c.Hzt=c.zzt=c.oCt=void 0,i=r("./src/common/util/types.ts"),m=r("./src/common/util/colorhelper.ts"),M=r("./src/common/util/arrayhelper.ts"),nt=i.lt.ht,q=m.ft.YGt,h=m.ft._,d=M.Uf.hD,c.oCt={},it=null,R=void 0,T=Math.floor,et=Math.PI,x=Math.sin,N=Math.cos,ot=Math.min,at=Math.max,rt=Math.round,P=Math.pow,z=Math.sqrt,ut=Math.abs,K=Math.ceil,j="undefined",st="string",ft=isNaN,yt=parseFloat,ct=Number.MAX_VALUE,o=new Date(""),gt="#969696",mt="#CB0000",pt="#646464",Mt="#DCDCDC",k="white",V="black",J="blue",Y="green",$="grey",X="red",l="lightgrey",I="left",B="right",L="center",Z="top",Q="bottom",tt="middle",C="start",Ft="px Arial",bt="-",_t="+",wt="=",A=.05,O=.03,E=1.06,Dt=.02,Ht=4,a=Nt=5,w=3,kt=10,$t=8,v=.8,g=.25,p=.9,F=.7,b=.1,St=1/45*et,xt=Rt,n(ne,f=D=Et),Pt=ne,Ct="7ns",At="5ns",Tt="tukey",Ot="bowley",jt="sigma3",c.zzt=Ve,c.Hzt=qe,c.Uzt=Ze,_=sr,t.prototype.paint=function(t,e,r,n,i,o){var a,u,s,f,a=this;a.options=e,a.setting=e.settings,u=e.values,s=e.dateValues,f=e.zoomFactor,t.save(),t.rect(r,n,i,o),t.clip(),t.beginPath(),0===e.sparklineType&&a.c6(t,r,n,i,o,u,s,f),a.Vzt(t,r,n,i,o,u,s,f),a.Yzt(t,r,n,i,o,u,s,f),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,e){var r,n,i,o,a,a,u,s,f,y,r=this.Kzt;if(!r)if(r=this.Kzt=[],n=t.length,this.options.displayDateAxis){for(a=e.length,u=[],(u=0<(a=ot(n,a))?e.slice(0,a):u).sort(function(t,e){return t===e?0:(t=t===c.oCt?0:t)-(e=e===c.oCt?0:e)}),s=u.length,y=f=void 0,i=0;i<s;i++)if(typeof(f=u[i])!==j&&f!==it){for(y=d(e,f);M.Uf.OS(r,y);)y=d(e,f,y+1);isNaN(f)||(o=t[y])!==R&&o!==it&&isNaN(o)&&o!==c.oCt||r.push(y)}}else for(i=0;i<n;i++)typeof(o=t[i])!==j&&o!==it&&isNaN(o)&&o!==c.oCt||r.push(i);return r},t.prototype.Sl=function(t,e){var e=e[t];return typeof e===j||e===it?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===c.oCt&&(e=0),e},t.prototype.c6=function(t,e,r,n,i,o,a,u){var s,f,y,c,m,M,h,d,l,v,g,l,p,F,b,_,w,D,s=this,f=s.Qzt(o,a),M=f.length-1;for(M<0&&(M=0),h=s.setting.options,d=s.linePos=[],F=h.displayEmptyCellsAs,y=0;y<M;y++)if(typeof(l=s.Sl(f[y],o))!==j&&l!==it){if(typeof(v=s.Sl(f[g=y+1],o))===j||v===it)if(1===F)v=0;else if(2===F)for(g=y+2;g<=M;g++)if(typeof(b=o[f[g]])!==j&&b!==it){v=b;break}typeof v!==j&&v!==it?(l=s.Jzt(f[y],{Width:n,Height:i},o,a,u),p=s.Jzt(f[g],{Width:n,Height:i},o,a,u),_=l.Width/2,c={X:l.X+_,Y:l.Y+_},m={X:p.X+_,Y:p.Y+_},d[y]={P1:c,P2:m}):y++}if(0<(w=d.length))for(t.strokeStyle=s.options.getColor(h.seriesColor),t.lineCap="round",t.lineWidth=s.Wzt(u),y=0;y<w;y++)(D=d[y])&&(t.beginPath(),c=D.P1,m=D.P2,t.moveTo(e+c.X,r+c.Y),t.lineTo(e+m.X,r+m.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,e,r){var n,i,o,a,u,r,s,f,y,c,e,n=this,i=n.options,o=n.setting.options,a=it,u=n.Sl(t,e),r=n.Qzt(e,r),s=r.length,f=i.getColor.bind(n);return typeof u!==j&&u!==it&&(n.Pzt!==ct&&n.Gzt!==-ct||n.qzt(e),u===n.Pzt&&o.showLow&&(a=f(o.lowMarkerColor)),typeof(a=u!==n.Gzt||!o.showHigh||typeof a!==j&&a!==it?a:f(o.highMarkerColor))!==j&&a!==it||(i.displayDateAxis?0===(y=d(r,t))&&o.showFirst&&(a=f(o.firstMarkerColor)):0===t&&o.showFirst&&(a=f(o.firstMarkerColor))),typeof a!==j&&a!==it||(i.displayDateAxis?(c=d(r,t))===s-1&&o.showLast&&(a=f(o.lastMarkerColor)):t===s-1&&o.showLast&&(a=f(o.lastMarkerColor))),typeof(a=u<0&&o.showNegative&&(typeof a===j||a===it)?f(o.negativeColor):a)!==j&&a!==it||(0===(e=i.sparklineType)?o.showMarkers&&(a=f(o.markersColor)):1!==e&&2!==e||(a=f(o.seriesColor)))),a===R||a===it?"Transparent":a},t.prototype.Vzt=function(t,e,r,n,i,o,a,u){for(var s,f,y,c,m,M,h,M,h,d,h,d,l,M,v,s=this,f={Width:n,Height:i},y=s.Qzt(o,a),c=y.length,m=s.options.sparklineType,v=0;v<c;v++)M=y[v],h=s.Xzt(M,o,a),M=s.Jzt(M,f,o,a,u),t.fillStyle!==h&&(t.fillStyle=h),0===m?(t.save(),h=e+M.X+M.Width/2,d=r+M.Y+M.Height/2,t.translate(h,d),t.rotate(45*et/180),t.fillRect(0-M.Width/2,0-M.Height/2,M.Width,M.Height),t.restore()):(h=e+M.X+M.Width/4,h=T(h),d=r+M.Y,l=M.Width/2,M=M.Height,t.fillRect(h,d,l,M))},t.prototype.Yzt=function(t,e,r,n,i,o,a,u){var s,f,a,n,i,a,o,s,f,s=this,f=s.setting&&s.setting.options;f&&f.displayXAxis&&s.$zt(o,a)&&(a={Width:n,Height:i},n=s.Zzt(u),i=a.Width-s.Zzt(u),o=a=T(s.tVt(a,o,u))+.5,s=s.options.getColor(f.axisColor),(f=u)<1&&(f=1),t.strokeStyle!==s&&(t.strokeStyle=s),t.lineWidth!==f&&(t.lineWidth=f),t.beginPath(),t.moveTo(e+n,r+a),t.lineTo(e+i,r+o),t.stroke())},t.prototype.nVt=function(t){var e,t,e=this.eVt(t);return e===-ct||(t=this.iVt(t))===ct||e===t||e*t<=0},t.prototype.$zt=function(t,e){var r,n,i,o,a,u,r=this.nVt(t);if(2===this.options.sparklineType&&(i=(n=this.Qzt(t,e)).length,!r)&&0<i)for(u=0;u<i;u++)if(typeof(a=t[o=n[u]])!==j&&a!==it)return!0;return r},t.prototype.rVt=function(t,e){var r=this.Lzt;return isNaN(r&&r.valueOf())&&this.oVt(t,e),this.Lzt},t.prototype.aVt=function(t,e){var r=this.Fzt;return isNaN(r&&r.valueOf())&&this.oVt(t,e),this.Fzt},t.prototype.oVt=function(t,e){for(var r,n,i,o,a,u,s,u,f,r=this,n=new Date(0,0,0),i=ct,o=r.Qzt(t,e),a=o.length,f=0;f<a;f++)s=e[u=o[f]],isNaN(s)||(u=r.Sl(u,t))!==it&&typeof u===j||isNaN(u)||typeof s!==j&&s!==it&&(n<s&&(n=s),s<i)&&(i=s);r.Fzt=n,r.Lzt=i},t.prototype.uVt=function(t,e,r,n){for(var i,o,a,u,s,f,y,c,m,M,h,d,l,e,i=this,o=i.rVt(e,r),a=i.aVt(e,r),u=[],c=i.Qzt(e,r),m=c.length,s=0;s<m;s++)(f=r[y=c[s]])&&!isNaN(f)&&u.push(f);if(u.sort(function(t,e){return t-e}),1<(M=u.length)&&o!==a){for(h=ct,l=void(d=0),s=1;s<M;s++)(f=(l=u[s])-u[s-1])<h&&0<f&&(h=f),d+=f;return e=(e=(t.Width-i.Zzt(n)-i.Zzt(n))*h/d/2)<2?2:e}return(t.Width-i.Zzt(n)-i.Zzt(n))/2},t.prototype.sVt=function(t,e,r,n){var i,e,i=this;return i.options.displayDateAxis?i.uVt(t,e,r,n):(e=i.Qzt(e,r).length,(t.Width-i.Zzt(n)-i.Zzt(n))/e)},t.prototype.cVt=function(t,e,r,n,i){var o,a,u,s,f,y,c,s,y,m,o=this,u=o.Zzt(i);return o.options.displayDateAxis?(a=o.sVt(t,r,n,i),(s=o.aVt(r,n))===(f=o.rVt(r,n))?u+a/2:(y=n[e])?(c=t.Width-u-o.Zzt(i),c-=a,s=s.valueOf()-f.valueOf(),u+T((y.valueOf()-f.valueOf())/s*c)):0):(a=o.sVt(t,r,n,i),y=d(o.Qzt(r,n),e),T(m=u+a*y))},t.prototype.fVt=function(t,e){var r,n,t,r=this,n=t.Width-r.Zzt(e)-r.Zzt(e);return n=at(n,0),t=t.Height-r.Zzt(e)-r.Zzt(e),{Width:n,Height:t=at(t,0)}},t.prototype.qzt=function(t){for(var e,r,n,i,e=this,r=t.length,i=0;i<r;i++)typeof(n=t[i])!==j&&n!==it&&((n="number"!=typeof n?0:n)<e.Pzt&&(e.Pzt=n),n>e.Gzt)&&(e.Gzt=n)},t.prototype.eVt=function(t){var e,t,r,e=this;return e.Gzt!==-ct&&e.Gzt||e.qzt(t),0===(r=(t=e.setting.options).maxAxisType)?e.Gzt:1===r?t.groupMaxValue:2===r?t.manualMax:e.Gzt},t.prototype.iVt=function(t){var e,t,r,e=this;return e.Pzt!==ct&&e.Pzt||e.qzt(t),0===(r=(t=e.setting.options).minAxisType)?e.Pzt:1===r?t.groupMinValue:2===r?t.manualMin:void 0},t.prototype.lVt=function(t,e,r,n){var t=this.fVt(t,n),n=this.eVt(r),i=this.iVt(r),o=n-i,a,u;if(n===i){if(0===n)return 0;o=ut(n)}return(a=(a=r[e])||0)*(u=t.Height/o)},t.prototype.hVt=function(t,e,r,n){var i,o,a,o,o,i=this,o=i.options.sparklineType;if(0===o)return i.lVt(t,e,r,n);if(1!==o)return 2===o?typeof(a=r[e])===j||a===it||0===a||isNaN(a)?0:(o=i.fVt(t,n),0<=a?o.Height/2:-o.Height/2):void 0;if(a=r[e],1===i.setting.options.displayEmptyCellsAs&&(typeof a===j||a===it))return 0;if((o=i.lVt(t,e,r,n))>-i.Bzt&&o<i.Bzt){if(0<a)return o+i.Bzt;if(a<0)return o-i.Bzt}return o},t.prototype.dVt=function(t,e,r){var n,i,o,e,a,e,n=this,i=n.fVt(t,r),o=n.eVt(e),e=n.iVt(e);if(o===-ct||e===ct)return t.Height/2;if(a=o-e,o===e){if(0===o)return t.Height/2;(a=o)<0&&(o=0)}return e=i.Height/a,n.Zzt(r)+o*e},t.prototype.tVt=function(t,e,r){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,e,r)},t.prototype.vVt=function(t,e,r,n){var i,t,n,o,a,t,a,u,i=this,t=i.fVt(t,n),n=i.eVt(r),o=i.iVt(r),a=n-o;if(n===o){if(0===n)return 0;a=n}return t=t.Height/a,typeof(a=i.Sl(e,r))!==j&&a!==it||(a=0),n!==o&&0<n*o?(u=0)<=a?(a-o)*t:(a-n)*t:a*t},t.prototype.mVt=function(t,e,r,n){var i,o,a,u,s,i=this,o=i.options.sparklineType;return 0===o?i.vVt(t,e,r,n):1===o?(a=i.vVt(t,e,r,n),-(u=i.Bzt)<a&&a<u&&0!==(s=typeof(s=i.Sl(e,r))!==j&&s!==it?s:0)?0<s?a+u:a-u:a):2===o?i.hVt(t,e,r,n):void 0},t.prototype.gVt=function(t,e,r,n,i){var o,a,n,u,s,f,y,f,y,s,t,r,o=this,a=o.sVt(e,r,n,i),n=o.cVt(e,t,r,n,i);return(a=T(a=a<0?0:a))%2==1&&(a+=1),u=o.hVt(e,t,r,i),s=o.tVt(e,r,i),f=o.eVt(r),y=o.iVt(r),f=f<(f=0)&&y<0?at(o.Zzt(i),s):0<=u?s-u:s,y=o.mVt(e,t,r,i),s=new _(n,f,a,ut(y)),0!==u&&(t=o.Zzt(i),s.Y<t&&s.Bottom<t+1?s.Height=T(s.Height+1):(r=e.Height-o.Zzt(i),s.Bottom>r&&s.Y>r-1&&(s.Y=r-y,s.Height=y))),s},t.prototype.Wzt=function(t){var t=this.setting.options.lineWeight*t;return t=t<1?1:t},t.prototype.Jzt=function(t,e,r,n,i){var o,a,n,i,t,u,r,o=this,a=o.Wzt(i);return++a<2&&(a=2),n=o.gVt(t,e,r,n,i),0===o.options.sparklineType&&(n.X=n.X+(n.Width-a)/2,typeof(i=o.Sl(t,r))!==j&&i!==it?(0<=i?n.Y-=a/2:n.Y=n.Bottom-a/2,n.Width=a,n.Height=a):(n.Width=0,n.Height=0)),o.setting.options.rightToLeft&&(t=n.X,r=(u=e.Width-t)-n.Width,n=new _(r,n.Y,n.Width,n.Height)),n},c.SparklineRender=t,c.SparklineExRenders={PIESPARKLINE:ee,AREASPARKLINE:ae,SCATTERSPARKLINE:se,BULLETSPARKLINE:Me,SPREADSPARKLINE:he,STACKEDSPARKLINE:ge,HBARSPARKLINE:we,VBARSPARKLINE:De,VARISPARKLINE:He,LOLLIPOPVARISPARKLINE:Ne,BOXPLOTSPARKLINE:ke,CASCADESPARKLINE:Pe,PARETOSPARKLINE:Ce,MONTHSPARKLINE:Ie,YEARSPARKLINE:Le,GAUGEKPISPARKLINE:Qe,HISTOGRAMSPARKLINE:or,IMAGESPARKLINE:ur}},canvas:function(t){t.exports=canvas}},n={},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e=t={},Object.defineProperty(e,"__esModule",{value:!0}),e.Slicers=e.Sparklines=e.Formatter=e.Commands=e.Common=void 0,i=o("./src/common/common.entry.ts"),e.Common=i,i=o("./src/plugins/commands/commands.entry.ts"),e.Commands=i,i=o("./src/plugins/formatter/formatter.entry.ts"),e.Formatter=i,i=o("./src/plugins/sparkline/sparkline.entry.ts"),e.Sparklines=i,i=o("./src/plugins/slicer/slicer.entry.ts"),e.Slicers=i,(a={}).Spread=t}(),t.exports=a.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,e,r)=>{t.exports=r("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={},t=i("./node_modules_local/@spreadjs/js-sheets-common/index.js"),(GC=void 0===GC?{}:GC).Spread=t})(),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd?define("@grapecity-software/spread-common",[],function(){return t}):"object"==typeof exports&&(exports.Spread=t.Spread)}(GC||{});
|
|
12
|
+
var GC;(()=>{var r,n,t;function i(t){var e,e,e=n[t];return void 0!==e||(e=n[t]={exports:{}},r[t](e,e.exports,i)),e.exports}r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var a;!function(){"use strict";var r,n,t,e,i;function o(t){var e,e,e=n[t];return void 0!==e||(e=n[t]={exports:{}},r[t].call(e.exports,e,e.exports,o)),e.exports}r={"./src/common/common.entry.ts":function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.B3=e.rbush=e.CultureManager=e.CultureInfo=e.zf=e.$T=e.st=e.ct=e.Uf=e.lt=e.ft=void 0,o=r("./src/common/util/colorhelper.ts"),Object.defineProperty(e,"ft",{enumerable:!0,get:function(){return o.ft}}),a=r("./src/common/util/types.ts"),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return a.lt}}),u=r("./src/common/util/arrayhelper.ts"),Object.defineProperty(e,"Uf",{enumerable:!0,get:function(){return u.Uf}}),s=r("./src/common/util/datetimehelper.ts"),Object.defineProperty(e,"ct",{enumerable:!0,get:function(){return s.ct}}),Object.defineProperty(e,"B3",{enumerable:!0,get:function(){return s.getSR}}),f=r("./src/common/util/numberhelper.ts"),Object.defineProperty(e,"st",{enumerable:!0,get:function(){return f.st}}),y=r("./src/common/util/regexhelper.ts"),Object.defineProperty(e,"$T",{enumerable:!0,get:function(){return y.$T}}),c=r("./src/common/util/stringhelper.ts"),Object.defineProperty(e,"zf",{enumerable:!0,get:function(){return c.zf}}),m=r("./src/common/util/rbush.ts"),Object.defineProperty(e,"rbush",{enumerable:!0,get:function(){return m.rbush}}),M=r("./src/common/util/common.ts"),Object.defineProperty(e,"HandleExcelSpecialDate",{set:function(t){M.HandleExcelSpecialDate=t},get:function(){return M.HandleExcelSpecialDate}}),i(r("./src/common/util/common.ts"),e),h=r("./src/common/culture/cultureInfo.ts"),Object.defineProperty(e,"CultureInfo",{enumerable:!0,get:function(){return h.CultureInfo}}),Object.defineProperty(e,"CultureManager",{enumerable:!0,get:function(){return h.CultureManager}}),i(r("./src/common/util/functionhelper.ts"),e)},"./src/common/culture/cultureInfo.ts":function(j,t,e){var r,n,u,a,i,f,o,s,y,n,c,e,m,M,h,d,E,e,n,l,r,v,p,g,F,R,b,n,_,w,D,H;function N(t){return t.split("\xa0").join(" ").toUpperCase()}function k(t){for(var e,r,n,e=[],r=0,n=t.length;r<n;r++)e[r]=N(t[r]);return e}function $(t,e,r){var t=N(t),e=e.indexOf(t);return e=-1===e?r.indexOf(t):e}function S(t){if(t){var t=t.charCodeAt(0);if(11904<=t&&t<12032||8208<=t&&t<8252||12288<=t&&t<40960||43360<=t&&t<43392||44032<=t&&t<55215||63744<=t&&t<64256||65280<=t&&t<65535)return!0}return!1}function I(t,e,r){var n;return" "===t||r&&"\u3000"===t?0:(n=r&&r(t),e.lineBreakingForbidStart&&-1!==e.lineBreakingForbidStart.indexOf(t)?!r||n?7:6:e.lineBreakingForbidEnd&&-1!==e.lineBreakingForbidEnd.indexOf(t)?!r||n?5:4:n?2:e.lineBreakingChar&&-1!==e.lineBreakingChar.indexOf(t)?3:1)}function x(t,e,r){var n,i,o,a,u,s;if(!t)return[];for(n=[t[0]],o=I(t[i=0],e,r),a=1;a<t.length;a++)u=I(t[a],e,r),h[s=o+""+u]&&n[++i]===f&&(n[i]=""),n[i]+=t[a],o=u;return n}function P(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"\xa4",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],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:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],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"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",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",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],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"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.predefinedFormats={},this.TimelineDateOrder=[M.quarterOrMonth,M.date,M.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]}}function C(){}function B(){var t,e,t=_.call(this)||this;return T.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),T.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!(e=["MMM yyyy","MMMM yyyy"]),e]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"}},t}function L(){var t,e,r,n,i,n,t=w.call(this)||this,e,r;return T.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u4ebf","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\u3007","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\u62fe","\u5104","\u9621","\u767e","\u62fe","\u842c","\u9621","\u767e","\u62fe",""],numbers:["\u3007","\u58f1","\u5f10","\u53c2","\u56db","\u4f0d","\u516d","\u4e03","\u516b","\u4e5d"]},3:{letters:o,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},{Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"}]),T.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],n=["1","2","3","4","5","6","7","8","9","10","11","12",""],n,"\u5348\u524d",!(n=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"]),["\u65e5\u66dc\u65e5","\u6708\u66dc\u65e5","\u706b\u66dc\u65e5","\u6c34\u66dc\u65e5","\u6728\u66dc\u65e5","\u91d1\u66dc\u65e5","\u571f\u66dc\u65e5"],"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],i,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd",["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",n,"ggge/mmmm/d\u65e5"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.QPt=['gggee"\u5e74"MM"\u6708"dd"\u65e5','gggee"\u5e74"M"\u6708"d"\u65e5','ge"\u5e74"M"\u6708"d"\u65e5','ggge"\u5e74"M"\u6708"d"\u65e5','ggee"\u5e74"M"\u6708"d"\u65e5','gge"\u5e74"M"\u6708"d"\u65e5'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\xa5-411]#,##0_);[Red]([$\xa5-411]#,##0)","[$\xa5-411]#,##0_);([$\xa5-411]#,##0)","[$\xa5-411]#,##0;[Red][$\xa5-411]#,##0","[$\xa5-411]#,##0;-[$\xa5-411]#,##0","[$\xa5-411]#,##0;[Red]-[$\xa5-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"\u6642"mm"\u5206";@','h"\u6642"mm"\u5206"ss"\u79d2";@'],Special:{"\u90f5\u4fbf\u756a\u53f7":"[<=999]000;[<=9999]000-00;000-0000","\u96fb\u8a71\u756a\u53f7\uff08\u6771\u4eac)":"[<=99999999]####-####;(00) ####-####","\u6b63\u8ca0\u8a18\u53f7 \uff08+ = \u25b3; - = \u25b2)":'"\u25b3" #,##0;"\u25b2" #,##0',"\u6f22\u6570\u5b57\uff08\u5341\u4e8c\u4e07\u4e09\u5343\u56db\u767e\uff09":"[DBNum1][$-411]General","\u5927\u5b57 (\u58f1\u62fe\u5f10\u842c\u53c2\u9621\u56db\u767e)":"[DBNum2][$-411]General","\u5168\u89d2 (\uff11\uff12\uff13\uff14\uff15)":"[DBNum3][$-411]0","\u5168\u89d2 \u6841\u533a\u5207\u308a\uff08\uff11\uff12,\uff13\uff14\uff15\uff09":"[DBNum3][$-411]#,##0"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},t.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d","\u300d","\u3002","\u3001","\u30fc"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b","\u300c","$","\uff04","\\","\uffe5"],lineBreakingStrategy:function(t,e){return x(t,e,S)}},t}function A(){var t,e,r,n,i,n,t=D.call(this)||this,e,r;return T.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"\xa5",!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",""],numbers:["\u25cb","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u4edf","\u4f70","\u62fe","\u4ebf","\u4edf","\u4f70","\u62fe","\u4e07","\u4edf","\u4f70","\u62fe",""],numbers:["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"]},3:{letters:o,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},{Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"}]),T.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],n=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],n,"\u4e0a\u5348",!(n=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"]),["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],1,"yyyy'\u5e74'M'\u6708'd'\u65e5' H:mm:ss","yyyy'\u5e74'M'\u6708'd'\u65e5'","H:mm:ss","M'\u6708'd'\u65e5'",i=["\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",""],i,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d",["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",n]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(t,e){return t.localeCompare(e,"zh")},t.predefinedFormats={Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$\xa5-804]#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]#,##0","[$\xa5-804]#,##0;[$\xa5-804]-#,##0","[$\xa5-804]#,##0;[Red][$\xa5-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"\u5e74"m"\u6708"d"\u65e5";@','[DBNum1][$-804]yyyy"\u5e74"m"\u6708";@','[DBNum1][$-804]m"\u6708"d"\u65e5";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"\u5e74"m"\u6708"d"\u65e5";@','yyyy"\u5e74"m"\u6708";@','m"\u6708"d"\u65e5";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"\u65f6"mm"\u5206";@','h"\u65f6"mm"\u5206"ss"\u79d2";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@','[$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2";@','[DBNum1][$-804]h"\u65f6"mm"\u5206";@','[DBNum1][$-804]\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206";@'],Special:{"\u90ae\u653f\u7f16\u7801":"000000","\u4e2d\u6587\u5c0f\u5199\u5b57\u6bcd":"[DBNum1][$-804]General","\u4e2d\u6587\u5927\u5199\u5b57\u6bcd":"[DBNum2][$-804]General"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},t.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,e){return x(t,e,S)}},t}function G(){var t,e,r,n,n,t=H.call(this)||this,e,r;return T.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,{1:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\uf9d1","\u4e03","\u516b","\u4e5d"]},2:{letters:["\u5146","\u9621","\u767e","\uf973","\u5104","\u9621","\u767e","\uf973","\u842c","\u9621","\u767e","\uf973",""],numbers:["\uf9b2","\u58f9","\u8cb3","\uf96b","\u56db","\u4f0d","\uf9d1","\u4e03","\u516b","\u4e5d"]},3:{letters:["\u5146","\u5343","\u767e","\u5341","\u5104","\u5343","\u767e","\u5341","\u4e07","\u5343","\u767e","\u5341",""],numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]},4:{letters:["\uc870","\ucc9c","\ubc31","\uc2ed","\uc5b5","\ucc9c","\ubc31","\uc2ed","\ub9cc","\ucc9c","\ubc31","\uc2ed",""],numbers:["\u25cb","\uc77c","\uc774","\uc0bc","\uc0ac","\uc624","\uc721","\uce60","\ud314","\uad6c"]}},{Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"}]),T.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],n=["1","2","3","4","5","6","7","8","9","10","11","12",""],n,"\uc624\uc804",!(n=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""]),["\uc77c\uc694\uc77c","\uc6d4\uc694\uc77c","\ud654\uc694\uc77c","\uc218\uc694\uc77c","\ubaa9\uc694\uc77c","\uae08\uc694\uc77c","\ud1a0\uc694\uc77c"],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'",n,n,"\uc11c\uae30","\uc624\ud6c4","yyyy-MM-dd",["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],"tt h:mm","yyyy'\ub144' M'\uc6d4'","yyyy\ub144/mmmm/d\uc77c"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red][$\u20a9-412]#,##0","[$\u20a9-412]#,##0;-[$\u20a9-412]#,##0","[$\u20a9-412]#,##0;[Red]-[$\u20a9-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',"yyyy-mm-dd;@",'yyyy"\ub144" m"\uc6d4" d"\uc77c";@','yy"\u5e74" m"\u6708" d"\u65e5";@','yyyy"\ub144" m"\uc6d4";@','m"\uc6d4" d"\uc77c";@',"yy-m-d;@","yy-m-d h:mm;@",'m"\u6708"d"\u65e5";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"\uc2dc" mm"\ubd84";@','h"\uc2dc" mm"\ubd84" ss"\ucd08";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84";@','[$-412]AM/PM h"\uc2dc" mm"\ubd84" ss"\ucd08";@'],Special:{"\uc6b0\ud3b8 \ubc88\ud638":"000-000","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 4\uc790\ub9ac)":"[<=999999]####-####;(0##) ####-####","\uc804\ud654 \ubc88\ud638 (\uad6d\ubc88 3\uc790\ub9ac)":"[<=9999999]###-####;(0##) ###-####","\uc8fc\ubbfc\ub4f1\ub85d\ubc88\ud638":"000000-0000000","\uc22b\uc790(\ud55c\uc790)":"[DBNum1][$-412]General","\uc22b\uc790(\ud55c\uc790-\uac16\uc740\uc790)":"[DBNum2][$-412]General","\uc22b\uc790(\ud55c\uae00)":"[DBNum4][$-412]General"}},t.TimelineDateOrder=[M.year,M.quarterOrMonth,M.date],t.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},t}function T(t,e,r){for(var n,i,o,a,n=this,o=0,a=e.length;o<a;o++)i=e[o],n[t][i]=r[o]}function z(t,e){var r;"object"==typeof document&&("function"!=typeof CustomEvent?(r=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):r=new CustomEvent("cultureChanged",{}),r.cultureInfo=t,i.gcCultureInfo=t,i.gcCultureObj=e,document.dispatchEvent(r))}function O(){this.KPt=1,this.JPt={}}r=this&&this.__extends||(b=function(t,e){return(b=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t.XPt=t.CultureInfo=t.TimelineDateOrder=void 0,n=e("./src/common/util/types.ts"),u=e("./src/common/util/common.ts"),a=e("./src/common/util/arrayhelper.ts"),i="undefined"!=typeof window?window:e.g,f=void 0,o=null,s=n.lt.y0,y=n.lt.Dh,e=["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"],m=(n=["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"]).concat(c=["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"]),s(n,function(t,r){s(c,function(t,e){t<c.length-4&&m.push(r+" "+e)})}),m=m.concat(e),s(e,function(t,r){s(c,function(t,e){t<c.length-4&&m.push(r+" "+e)})}),(n=M=t.TimelineDateOrder||(t.TimelineDateOrder={}))[n.year=1]="year",n[n.quarterOrMonth=2]="quarterOrMonth",n[n.date=3]="date",h={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1},P.prototype.u2e=function(){return[" "]},P.prototype.tCe=function(t){var e,r,n,e=this,r,n={lineBreakingChar:e.u2e()};return e.TextFormat&&e.TextFormat.lineBreakingStrategy?e.TextFormat.lineBreakingStrategy(t,n):x(t,n)},P.prototype.hse=function(t){var e;return this.TextFormat&&this.TextFormat.lineBreakingStrategy?(e={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart},this.TextFormat.lineBreakingStrategy(t,e)):x(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},P.prototype.qPt=function(){var t,e,e,r;return this.$Pt||(e=(e=[e=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),e+" h:mm",e+" h:mm:ss",e+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(m),1041===this.id&&(r=t.eraFormatter,e=(e=e.concat(this.QPt)).concat(r)),e=e.concat(t.preselectedFormatters),this.$Pt=e),this.$Pt},P.prototype.tGt=function(t){var e=this;return e.nGt||(e.nGt=k(e.DateTimeFormat.monthNames),e.eGt=k(e.DateTimeFormat.monthGenitiveNames)),$(t,e.nGt,e.eGt)},P.prototype.iGt=function(t){var e=this;return e.rGt||(e.rGt=k(e.DateTimeFormat.abbreviatedMonthNames),e.oGt=k(e.DateTimeFormat.abbreviatedMonthGenitiveNames)),$(t,e.rGt,e.oGt)},P.prototype.aGt=function(t){var e=this;return e.uGt||(e.uGt=k(e.DateTimeFormat.dayNames)),e.uGt.indexOf(N(t))},P.prototype.sGt=function(t){var e=this;return e.cGt||(e.cGt=k(e.DateTimeFormat.abbreviatedDayNames)),e.cGt.indexOf(N(t))},d=P,t.CultureInfo=d,C.fGt=function(t){return t>=C.lGt()&&t<=C.hGt()},C.dGt=function(){var t,e,r,t=d.eras;if(t===f)return this.vGt;for(e=[],r=0;r<t.length;r++)e[r]=new Date(t[r].startDate.replace(/-/g,"/"));return e},C.mGt=function(t){var e,r,n,i,o;switch(t){case"g":e="symbol",r=C.gGt;break;case"gg":e="abbreviation",r=C.pGt;break;case"ggg":e="name",r=C.DEt;break;default:return[]}if(i=[],(n=d.eras)===f)return r;for(o=0;o<n.length;o++)i[o]=n[o][e];return i},C.hGt=function(){var t,t,t=d.eras;return t!==f&&0<t.length?((t=new Date(t[t.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},C.lGt=function(){var t=d.eras;return t!==f&&0<t.length?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},C.wGt=function(){var t=d.eras;return t!==f?t.length:this.MGt},C.CGt=function(){var t,e,r,n,i,t=d.eras;if(t===f)return this.SGt;for(e=[],r=1;r<t.length;r++)n=new Date(t[r-1].startDate.replace(/-/g,"/")),i=new Date(t[r].startDate.replace(/-/g,"/")),e[r-1]=i.getFullYear()-n.getFullYear()+1;return e[r-1]=99,e},C.TGt=function(t){var e,r,n,e={AGt:-1,IGt:-1};if(!C.fGt(t)){if(!(t>C.hGt()))return e;t=C.hGt()}for(r=0;r<C.wGt();r++)if(t<(n=r+1!==C.wGt()?C.dGt()[r+1]:C.xGt(C.hGt(),1))){e.AGt=r,e.IGt=t.getFullYear()-C.dGt()[r].getFullYear()+1;break}return e},C.xGt=function(t,e){var t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return t.setMilliseconds(t.getMilliseconds()+e),new Date(t.valueOf())},C.NGt=function(t,e){var r;return C.dGt()[t].getFullYear()+e-1},C.kGt=function(t,e){var r,n;for(e=e.toUpperCase(),r=C.mGt(t),n=0;n<r.length;n++)if(r[n]===e)return n;return-1},C.DGt=function(t,e,r){var n,e,i,n,n,i,n=C,e=n.TGt(e),i=e.AGt;if(0<=i&&0<(n=n.mGt(t)).length)return n[i];if(0<=(n=e.IGt)){if("1"===(i=n.toString())&&r)return i="\u5143";if("ee"===t)return i=1===i.length?"0"+i:i;if("e"===t)return i}return""},C.vGt=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],C.MGt=5,C.SGt=[45,15,64,31,99],C.bGt=new Date(2117,11,31,23,59,59),C.yGt=new Date(1868,8,8),C._Gt=["1,m","2,t","3,s","4,h","5,r"],C.EGt=[0,1,2,3,0,1,2,3],C.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],C.gGt=["M","T","S","H","R"],C.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],C.jGt=99,C.eraExcelFormatter="[$-ja-JP-x-gannen]",C.eraInternalFormatter="[$-411]",t.XPt=C,r(B,_=d),e=B,r(L,w=d),n=L,r(A,D=d),A.prototype.u2e=function(){return[" ","\u3000"]},l=A,r(G,H=d),r=G,v={invariant:new d,"en-us":new e,"ja-jp":new n,"zh-cn":new l,"ko-kr":new r},p={},g=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8"],F=["wmk1","wmk2"],O.instance=function(){return this.OGt||(this.OGt=new this)},O.prototype.culture=function(t){if(0===arguments.length)return O.RGt;t&&O.RGt!==t&&(O.RGt=t.toLowerCase(),this.KPt++,z(O.RGt,O.OGt.getCultureInfo()))},O.prototype.addCultureInfo=function(t,e,r){var n,i,o,a,n;if(e&&e instanceof d){if(n=e.NumberFormat&&e.NumberFormat.numberDecimalSeparator,i=e.NumberFormat.arrayListSeparator,o=e.NumberFormat.arrayGroupSeparator,n===e.NumberFormat.listSeparator||o===i)throw(a=new u.ResourceManager(u.SR)).getResource().Exp_Separator;v[t.toLowerCase()]=e}r&&"object"==typeof r&&(n=t.toLowerCase(),p[n]=y(!0,{},r),this.KPt++)},O.prototype.getCultureInfoDict=function(){return v},O.prototype.getCultureInfo=function(t){var e,r,n;if(0===arguments.length)return v[O.RGt];for(n in"string"==typeof t&&(t=t.toLowerCase()),r=o,e=v)if(n===t||e[n].id!==f&&e[n].id===t){r=e[n];break}return r},O.prototype.getLanguage=function(t){var t;return"string"==typeof t?(t=t.toLowerCase(),p[t]):o},O.prototype.getResources=function(t){var e,e,e=this.culture().toLowerCase();return"string"==typeof(t=t!==o&&t!==f?t:e)&&(e=t.toLowerCase(),this.JPt[e])?this.BGt(this.JPt[e]):o},O.prototype.BGt=function(t){var e,r,n,i,o,t,e,e="PivotTables",r="Sheets",n="CalcEngine",i="Functions",o="TableFunctions",t=y(!0,{},t);return t[e]&&this.LGt(t[e],F),t[r]&&this.LGt(t[r],g),(e=t[n])&&(t[i]=e.wmt,t[o]=e.d2t,delete e.wmt,delete e.d2t),t},O.prototype.LGt=function(t,e){for(var r,n,i,r=0,n=e;r<n.length;r++)delete t[i=n[r]]},O.prototype.FGt=function(t,e,r){var n,i,o,n=p[t.toLowerCase()];for(i in e)a.Uf.OS(g,i)||null!==(o=this.PGt(n,i,r))&&"string"==typeof o&&"string"==typeof e[i]&&(e[i]=o);e.wmt&&n.Functions&&this.GGt(n.Functions,e.wmt),e.d2t&&n.TableFunctions&&y(!0,e.d2t,n.TableFunctions)},O.prototype.PGt=function(t,e,r){var n,i;if(t.hasOwnProperty(e))return t[e];if(r&&(n=t[r])&&"object"==typeof n&&n.hasOwnProperty(e))return n[e];for(i in t)if((n=t[i])&&"object"==typeof n&&n.hasOwnProperty(e))return n[e];return null},O.prototype.GGt=function(t,e){var r,n,i,o,a,u,s,f,r={};for(n in e)if(t.hasOwnProperty(n))for(s in i=e[n],o=t[n],a=i.parameters,u=o.parameters,i.description=o.description,a)u.hasOwnProperty(s)&&"string"==typeof(f=u[s])&&(a[s].name=f);return r},O.prototype.Fe=function(t){var t=this.getCultureInfo(t),t;return t=(t=t||v[O.RGt])||new d},O.prototype.xat=function(t,e){var r,t,n,r,t=(this.getCultureInfo(t)||this.getCultureInfo("en-US")).DateTimeFormat,n=t.filterDialogDateFormatter;return n=0<=e.indexOf("g")||0<=e.indexOf("e")?t.EraFilterDialogDateFormatter||n:n},O.RGt="en-us",t.CultureManager=O.instance()},"./src/common/util/arrayhelper.ts":function(t,e){var i,o,r;function a(t,e){var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],Array.isArray(n)?(t[r]=[],a(t[r],e[r])):n!==i&&"object"==typeof n?(t[r]={},a(t[r],e[r])):t[r]=e[r])}function n(){}Object.defineProperty(e,"__esModule",{value:!0}),e.Uf=void 0,i=null,o=void 0,n.Eit=function(t,e,r){t.splice(e,0,r)},n.ZP=function(t,e){t.push(e)},n.OS=function(t,e){return-1<t.indexOf(e)},n.VP=function(t,e){var e=t.indexOf(e);-1<e&&t.splice(e,1)},n.UGt=function(t,e){return t.slice(0,e).concat(t.slice(e+1))},n.hD=function(t,e,r){return t.indexOf(e,r)},n.d5=function(t,e,r){if(!(e<0))for(var n=0;n<r&&e+n<t.length;n++)t[e+n]=i},n.N2t=function(t,e){for(var r,n,n=r=(e=e<0?-1:e)+1;n<t.length;n++)if(t[n]!==o&&t[n]!==i)return n;return-1},n.tR=function(t){return t&&t.length},n.Gf=function(t){var e=[];return a(e,t),e},e.Uf=n},"./src/common/util/colorhelper.ts":function(t,e,i){var r,o,s,f,a,y,c,n,m,u;function M(t,e,r){return r<0&&(r+=240),240<r&&(r-=240),r<40?t+((e-t)*r+20)/40:r<120?e:r<160?t+((e-t)*(160-r)+20)/40:t}function h(t,e,r){var n,i,o,a,u;return 0===r?n=i=o=y(255*e/240+"",10):(u=a=void 0,n=d(a=2*e-(u=e<=120?y((e*(240+r)+120)/240+""):e+r-y((e*r+120)/240+"")),u,t+80),i=d(a,u,t),o=d(a,u,t-80)),{a:255,r:n,g:i,b:o}}function d(t,e,r){return s(y((255*M(t,e,r)+120)/240+""),255)}function l(t){var e,r,n,t,i,o,a,o,a,u,t,e=this,r=t.r,n=t.g,t=t.b,i=f(f(r,n),t),o=s(s(r,n),t),a=i+o;e.HGt=y((240*a+255)/510+"",10),0==(o=i-o)?(e.zGt=0,e.wv=160):(e.HGt<=120?e.zGt=y((240*o+a/2)/a+"",10):e.zGt=y((240*o+(510-a)/2)/(510-a)+"",10),a=(40*(i-r)+o/2)/o,u=(40*(i-n)+o/2)/o,t=(40*(i-t)+o/2)/o,e.wv=y(r===i?t-u+"":n===i?80+a-t+"":160+u-a+"",10),e.wv<0&&(e.wv+=240),240<e.wv&&(e.wv-=240))}function v(t){var e,r,n,i,e,o,a,u,e,n;return/^#[A-Fa-f0-9]+$/.test(t)?(e=t.replace(/^#/,""),i=n="",6===(r=e.length)||8===r?(n=e.substr(0,6),8===r&&(i=e.substr(6,2))):3!==r&&4!==r||(n=(e=e.split(3===r?/(.)/:/(..)/)).filter(Boolean).map(function(t){return parseInt(3===r?t+t:t,16)}).map(function(t){return t.toString(16).padStart(2,"0")}).join(""),4===r&&(i=e[3]+e[3])),[o=parseInt(n.slice(0,2),16),a=parseInt(n.slice(2,4),16),u=parseInt(n.slice(4,6),16),e=i?parseInt(i,16):255]):t.toLowerCase()in c?c[t.toLowerCase()]:null!==(n=m.exec(t))?(e=void 0===n[4]?255:255*+n[4],[n[1],n[2],n[3],e]):null}function p(){}Object.defineProperty(e,"__esModule",{value:!0}),e.ft=void 0,r=i("./src/common/util/numberhelper.ts"),o=r.st.VGt,s=Math.min,f=Math.max,a=Math.abs,y=parseInt,c={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},l.prototype.YGt=function(t){var e,r,n,e=this,r=e.HGt,n=e.ZGt(e.HGt,500,!0);return h(e.wv,r+(n-r)*t,e.zGt)},l.prototype.ZGt=function(t,e,r){if(0!==e){if(r)return 0<e?(t*(1e3-e)+241*e)/1e3:t*(e+1e3)/1e3;240<(t=(t+=240*e/1e3)<0?0:t)&&(t=240)}return t},n=l,m=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,p.j=function(t){var e,r,n,i,e=t.a,r=t.r,n=t.g,i=t.b;return 3===arguments.length&&(e=255,r=t,n=arguments[1],i=arguments[2]),4===arguments.length&&(e=t,r=arguments[1],n=arguments[2],i=arguments[3]),255===e?"#"+o(r,!0,2)+o(n,!0,2)+o(i,!0,2):"rgba("+r+","+n+","+i+","+e+")"},p.Tv=function(t,e){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(e):t.a===e.a&&t.r===e.r&&t.g===e.g&&t.b===e.b},p.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},p.Km=function(t,e){var r,n,i,t,o,r=255-a(t.r-e.r),n=255-a(t.g-e.g),i=255-a(t.b-e.b),t=a(t.a-e.a);return!!(.9<=(o=((r/=255)+(n/=255)+(i/=255))/3)&&t<=.05)},p.Uv=function(t){var e,r,n,e=255^t.r,r=255^t.g,n=255^t.b;return p.j(t.a,e,r,n)},p.WGt=function(t){var e,r,n,n;return"object"==typeof document&&((e=p.xf)||(r=document.createElement("canvas"))&&r.getContext&&(e=p.xf=r.getContext("2d",{willReadFrequently:!0})),e||((n=i("canvas"))&&n.createCanvas&&(r=n.createCanvas(2,2),e=p.xf=r.getContext("2d")),e))?(e.clearRect(1,1,1,1),e.fillStyle=t,e.fillRect(1,1,1,1),(n=e.getImageData(1,1,1,1))?n.data:null):v(t)},p._=function(t){var e,r,n,i,t;return t instanceof p||null!==t&&"object"==typeof t?t:(i=n=r=e=0,t&&(t=p.WGt(t))&&(r=t[0],n=t[1],i=t[2],e=t[3]),{a:e,r:r,g:n,b:i})},p.Cv=function(t,e){var t,e;return 0===e?t:(t=new n(t),e=y((0<e?(240-t.HGt)*e:t.HGt*e)+"",10),p.QGt(t.wv,t.HGt+e,t.zGt))},p.YGt=function(t,e){var t,r,t,t=p._(t),r,t=new n(t).YGt(e);return p.j(t)},p.Dz=M,p.QGt=h,e.ft=p},"./src/common/util/common.ts":function(t,e,r){var i,n,r,o,a;function u(t,e){this.res=t,this.KGt=e,this.JPt=i.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,e),this.KPt=0}function s(t,e,r,n){var i,o,a,u,s;if(t&&0<=r&&r<e){for(i=[],a=o=void 0,a=r;a<e;a++)void 0!==t[a]&&i.push(a);for(o=i.length,a=0;a<o;a++)s=t[u=i[o-a-1]],t[u]=null,t[Math.floor(u)+n]=s}}function f(t,e,r,n){var i,o,a,u,s,f;if(t&&0<=r&&r<e){for(i=[],a=r+n,u=o=void 0,u=r;u<e;u++)void 0!==t[u]&&(r<=u&&u<a?t[u]=null:a<=u&&i.push(u));for(o=i.length,u=0;u<o;u++)f=t[s=i[u]],t[s]=null,t[Math.floor(s)-n]=f}}function y(t,e){return t.hasOwnProperty(e)}function c(t,e){return t instanceof e}Object.defineProperty(e,"__esModule",{value:!0}),e.ut=e.kh=e.X8=e.J8=e.ResourceManager=e.SR=void 0,i=r("./src/common/culture/cultureInfo.ts"),n=r("./src/common/util/util.res.en.ts"),r=r("./src/common/util/types.ts"),e.SR={en:n},o=r.lt.Dh,u.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},u.prototype.XGt=function(t,e){var r,n;e&&(n=(r=i.CultureManager.culture()).toLowerCase(),this.JPt[n]=this.JPt[n]||{},this.JPt[n][e]=t,i.CultureManager.JPt=this.JPt)},u.prototype.JGt=function(t,e){var r,n,e,n,r=i.CultureManager.culture();return t&&r?(n=i.CultureManager.KPt,this.KPt!==n||e?(this.KPt=n,i.CultureManager.getLanguage(r)?(e=o(!0,{},t.en),i.CultureManager.FGt(r,e,this.KGt),e):(n=r.substr(0,2).toLowerCase(),t.hasOwnProperty(n)?t[n]:t.en)):void 0):{}},e.ResourceManager=u,e.J8=s,e.X8=f,e.kh=y,e.ut=c},"./src/common/util/datetimehelper.ts":function(t,P,e){var r,k,M,C,e,a,A,$,S,x,n,T,O,e,o,i;function j(t,e){if(r.HandleExcelSpecialDate)return r.HandleExcelSpecialDate.apply(null,[t,e]);switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();default:return}}function E(t,e,r,n){var i,o,a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,b,F,_,w,D,H,N,k,$,i=r.DateTimeFormat,o=i.Calendar.convert;if(!e||!e.length)return r&&r.name.length?o?E(t,i.fullDateTimePattern,r):t.toLocaleString():t.toString();function S(){return y||c||(y=m.test(e),c=!0),y}function x(t,e){return d?d[e]:j(t,e)}for(a=i.eras,s="",m=/([^d]|^)(d|dd)([^d]|$)/g,M=0,h=B(),!(u="s"===e)&&o&&(d=o.fromGregorian(t)),v=l=-2,p={y4:""},g=0;F=h.lastIndex,b=h.exec(e),F=e.slice(F,b?b.index:e.length),p.y4="",M+=R(F,p),s+=p.y4,b;g++)if(M%2==1)s+=b[0];else switch(_=x(t,0),w=t.getDay(),D=t.getHours(),H=t.getMinutes(),N=t.getSeconds(),k=t.getMilliseconds(),$=t.getTimezoneOffset(),b[0]){case"dddd":s+=i.dayNames[w];break;case"ddd":s+=i.abbreviatedDayNames[w];break;case"dd":y=!0,s+=A(x(t,2),2);break;case"d":y=!0,s+=x(t,2);break;case"MMMM":s+=(i.monthGenitiveNames&&S()?i.monthGenitiveNames:i.monthNames)[x(t,1)];break;case"MMM":s+=(i.abbreviatedMonthGenitiveNames&&S()?i.abbreviatedMonthGenitiveNames:i.abbreviatedMonthNames)[x(t,1)];break;case"MM":s+=A(x(t,1)+1,2);break;case"M":s+=x(t,1)+1;break;case"yyyy":case"yyy":s+=0<=l?C.XPt.DGt("ee",t,n):A(d?d[0]:_,4);break;case"yy":s+=0<=l?C.XPt.DGt("ee",t,n):A((d?d[0]:_)%100,2);break;case"y":s+=0<=l?C.XPt.DGt("e",t,n):((d?d[0]:_)%100).toString();break;case"hh":s+=A(f=0===(f=D%12)?12:f,2);break;case"h":s+=f=0===(f=D%12)?12:f;break;case"HH":s+=A(D,2);break;case"H":s+=D.toString();break;case"mm":s+=A(H,2);break;case"m":s+=H.toString();break;case"ss":s+=A(N,2);break;case"s":s+=N.toString();break;case"tt":s+=D<12?i.amDesignator:i.pmDesignator;break;case"t":s+=(D<12?i.amDesignator:i.pmDesignator).charAt(0);break;case"f":case"0":s+=A(k,3).charAt(0);break;case"ff":case"00":s+=A(k,3).substr(0,2);break;case"fff":case"000":s+=A(k,3);break;case"z":s+=((f=$/60)<=0?"+":"-")+T(O(f));break;case"zz":s+=((f=$/60)<=0?"+":"-")+A(T(O(f)),2);break;case"zzz":s+=((f=$/60)<=0?"+":"-")+A(T(O(f)),2)+":"+A(O($%60),2);break;case"g":case"gg":case"ggg":a&&(l=(l===g-1||(s+=C.XPt.DGt(b[0],t,n)),g));break;case"e":case"ee":a?v=(v===g-1||(s+=C.XPt.DGt(b[0],t,n)),g):s+=A(d?d[0]:_,4);break;case"/":s+=i.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(b[0]))throw new Error((0,P.getSR)().Exp_InvalidDateFormat);s+=b[0]}return s.toString()}function R(t,e){for(var r,n,i,o,a,r=0,n=x,i=0,o=t.length;i<o;i++)switch(a=t.charAt(i)){case'"':n?e.y4+="'":r++,n=x;break;case"\\":n&&(e.y4+="\\"),n=!n;break;default:e.y4+=a,n=x}return r}function I(t,e){var r,n,r,r=new Date,n;return t.DateTimeFormat.eras&&e<100&&(e+=(r=C.XPt.TGt(r).IGt)-r%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(e-=100),e}function B(){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|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g}function L(t,e,r){var n,i,o,a,u,s,f,y,c,m,m;if(t.qGt){if(t.qGt[e])return t.qGt[e]}else t.qGt={};for(n=(n=(n=e).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),i="^",o={y4:""},a=[],s=u=0,f=B();(y=f.exec(n))!==$;)if(o.y4="",c=n.slice(u,y.index),u=f.lastIndex,s+=R(c,o),i+=o.y4,s%2==1)i+=y[0];else{switch(y[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":i+="(\\D+)";break;case"tt":case"t":i+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":i+=r?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":i+="(\\d{2}|\\d{4})";break;case"fff":case"000":i+="(\\d{3})";break;case"ff":case"00":i+="(\\d{2})";break;case"f":case"0":i+="(\\d)";break;case"zzz":i+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i+="([+-]?\\d\\d?)";break;case"/":i+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,P.getSR)().Exp_InvalidDateFormat)}M.Uf.ZP(a,y[0])}return o.y4="",R(n.slice(u),o),m={$Gt:m=(i=i+o.y4+"$").toString().replace(/\s+/g,"\\s+"),QMt:a,tUt:new RegExp(m)},t.qGt[e]=m}function s(t){var t=t.getTimezoneOffset();return t=-402===(t=-507===(t=-321===(t=-485===t?-485-43/60:t)?-321-10/60:t)?-507-52/60:t)?-402-4/60:t}function f(){}Object.defineProperty(P,"__esModule",{value:!0}),P.ct=P.getSR=void 0,r=e("./src/common/util/common.ts"),k=e("./src/common/util/stringhelper.ts"),M=e("./src/common/util/arrayhelper.ts"),C=e("./src/common/culture/cultureInfo.ts"),e=e("./src/common/util/types.ts"),a=e.lt.ht,A=k.zf.B9t,$=null,S=parseInt,n=!(x=!1),T=Math.floor,O=Math.abs,e=new r.ResourceManager(r.SR,"Common"),P.getSR=e.getResource.bind(e),o={},f.L9t=function(t,e,r,n){return E(t,e,r=r||C.CultureManager.Fe(),n)},f.Pe=function(t,e,r){return E(t,e,r||C.CultureManager.Fe())},f.Mjt=function(t,e,r){var n,i,o,o,a,u=x,a=r;for(a.slice(1).forEach(function(t){t&&(u=!0)}),i=(a=u?a:a.concat(e.qPt())).length,n=1;n<i;n++)if((o=a[n])&&(u=!0,o=f.nUt(t,o,e)))return o;return $},f.yU=function(t,e,r){var n,i;return(e||r||void 0===(i=o[t]))&&(n=e?[t,e]:[t],i=f.Mjt(t,r||C.CultureManager.Fe(),n),e||r||(o[t]=i)),i&&new Date(i)},f.Z6t=function(t,e){return f.Mjt(t,C.CultureManager.Fe("invariant"),[t,e])},f.nUt=function(t,e,r){var n,i,e,o,a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,b,_,w,w,D,D,e,t,H,N,e;if(t=t.trim(),(o=(e=L(n=r.DateTimeFormat,e,i=1041===r.id)).tUt.exec(t))===$)return $;for(a=e.QMt,v=c=y=f=s=u=$,g=p=x,F=l=d=h=m=0,b=a.length;F<b;F++)if(_=o[F+1])switch(a[F]){case"dd":case"d":if((y=S(_,10))<1||31<y)return $;break;case"MMMM":if((f=r.tGt(_))<0||11<f)return $;break;case"MMM":if((f=r.iGt(_))<0||11<f)return $;break;case"M":case"MM":case"%M":if((f=S(_,10)-1)<0||11<f)return $;break;case"e":case"ee":if((s=i&&"\u5143"===_?1:I(r,S(_,10)))<0||9999<s)return $;break;case"y":case"yy":case"yyy":case"yyyy":if((s=S(_,10))<0||9999<s)return $;break;case"h":case"hh":case"H":case"HH":if((m=S(_,10))<0)return $;break;case"m":case"mm":if((h=S(_,10))<0||59<h)return $;break;case"s":case"ss":if((d=S(_,10))<0||59<d)return $;break;case"tt":case"t":if(p=(w=_.toUpperCase())===n.pmDesignator.toUpperCase(),g=w===n.amDesignator.toUpperCase(),p||g)break;return $;case"f":case"0":if((l=100*S(_,10))<0||999<l)return $;break;case"ff":case"00":if((l=10*S(_,10))<0||999<l)return $;break;case"fff":case"000":if((l=S(_,10))<0||999<l)return $;break;case"dddd":if((c=r.aGt(_))<0||6<c)return $;break;case"ddd":if((c=r.sGt(_))<0||6<c)return $;break;case"zzz":if(2!==(w=_.split(/:/)).length)return $;if((M=S(w[0],10))<-12||13<M)return $;if((D=S(w[1],10))<0||59<D)return $;v=60*M+(k.zf.fJ(_,"-")?-D:D);break;case"z":case"zz":if((M=S(_,10))<-12||13<M)return $;v=60*M;break;case"g":case"gg":case"ggg":if(!(D=_)||!n.eras)return $;if((u=C.XPt.kGt(a[F],D))<0)return $}if(t=(e=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(N=n.Calendar.convert)&&(H=N.fromGregorian(t)),N||(H=[t.getFullYear(),t.getMonth(),t.getDate()]),s===$?s=H[0]:s<100&&(n.eras&&u!==$?s=C.XPt.NGt(u||0,s):s+=30<=s?1900:2e3),f===$&&(f=H[1]),y===$&&(y=e?H[2]:1),N){if((t=N.toGregorian(s,f,y))===$)return $}else{if(t.setFullYear(s,f,y),t.getDate()!==y)return $;if(c!==$&&t.getDay()!==c)return $}return p&&m<12?m+=12:g&&12===m&&(m=0),t.setHours(m,h,d,l),v!==$&&(e=t.getMinutes()-(v+t.getTimezoneOffset()),t.setHours(t.getHours()+e/60,e%60)),t},f.Y0=function(t){var e,r,n,e,n,i,o,a,u,n,e=t-25569,r,n=0<=e?1:-1,e=s(new Date(864e5*e)),n=(864e5*t*1440+n-3181192704e6+864e5*e)/1440,i=new Date(n),o,a,u=s(new Date(n+36e5*(0<=e?1:-1)));return 60<=O(e-u)?new Date(n+60*(u-e)*1e3):(n=t+"",999===i.getMilliseconds()&&"33333333"===n.substr(n.length-8)?new Date(i.valueOf()+1):i)},f.dJ=function(t){var t;if("/OADate("===t.substr(0,8))return t=parseFloat(t.substr(8,t.length-10)),f.Y0(t)},f.Q0=function(t){return"/OADate("+f.o0(t)+")/"},f.o0=function(t){var e;return!a(t)&&(t="number"!=typeof t&&"string"!=typeof t?t:new Date(t))instanceof Date?(e=s(t),(1440*t.getTime()+3181192704e6-864e5*e)/124416e6):0},f._DT=function(t){var e,r,n,i,o,e=$,r=!0;if(a(t)?e=f.Y0(0):t instanceof Date?e=new Date(t.valueOf()):"string"==typeof t?((n=f.yU(t))||(isNaN(t)?!f.u6t(t)&&(n=new Date(t),isNaN(n.valueOf())&&(r=x),!(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(t.replace(/ |\n/g,"").trim()))||4!==o.length||-1!==o.indexOf(n.getFullYear().toString())&&-1!==o.indexOf((n.getMonth()+1).toString())&&-1!==o.indexOf(n.getDate().toString()))||(r=x):(n=f.Y0(parseFloat(t)))||(r=x)),e=n):"number"==typeof t?e=f.Y0(t):r=x,r)return e;throw(0,P.getSR)().Exp_InvalidCast},f.u6t=function(t){var e,n,r,i,o,e=C.CultureManager.Fe().DateTimeFormat,n=f.eUt,r=function(e,t){var r=0;return t.forEach(function(t){t&&-1<e.indexOf(t)&&r++}),1<r},i=function(t,e){var t,r;return!!(t&&-1<t.indexOf(" "))&&2<=(r=(t=t.split(" ")).length)&&e.indexOf(t[r-2])<=-1&&!isNaN(t[r-1])},o=function(e){var r=!1;return n.forEach(function(t){-1<e.indexOf(t)&&(r=!0)}),r};return r(t,e.monthNames)||r(t,e.abbreviatedMonthNames)||r(t,e.dayNames)||r(t,e.abbreviatedDayNames)||i(t,e.monthNames.concat(e.abbreviatedMonthNames))||o(t)},f.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},f.eUt=["@","#","!","`","^","$","*","(",")","&"],P.ct=f},"./src/common/util/functionhelper.ts":function(t,e,r){var z,K,J,V;function f(t){return t}function y(t,e,r,n,i,o,a,u,s,j,f){var y,c,m,M,h,d,l,v,p,g,F,b,_,w,D,H,N,k,$,E,R,I,B,S,x,P,C,A,L,G,T,O,N=r[J],k=r[V],$=e[J],E=e[V],R=n[J],I=n[V],B=1===k,S=1===E;if($===N&&E===k){for(l=N*k,y=A=C=P=x=0;y<N;y++)for(c=0;c<k;c++){if(M=o(r[y][c]),h=o(e[y][c]),t&&(K(M)||K(h)))return s;x+=M,P+=M*M,C+=h=j(h),A+=M*h}for(L=l*A-x*C,v=i?(C*P-x*A)/(l*P-x*x):0,(1<(G=(d=i?L/(l*P-x*x):A/P).toString()).indexOf("000000000000")||1<G.indexOf("999999999999"))&&(d=z.st.E8(d,12),v=z.st.E8(v,12)),p=[],y=0;y<R;y++)for(p[y]=[],c=0;c<I;c++){if(M=o(n[y][c]),t&&K(M))return s;p[y][c]=0==L?e[0][0]:f(z.st.tge(d*M,v))}return a?new a(p):p}if(S&&$===N||1===$&&E===k){for(M=[],h=[],D=k+1,H=k+2,y=0;y<N;y++){if(v=o(F=S?e[y][0]:e[0][y]),t&&K(v))return s;h[y]=B?j(v):v}for(y=0;y<N;y++)for(M[y]=[],c=0;c<k;c++){if(v=o(r[y][c]),t&&K(v))return s;M[y][c]=v}for(T=[],d=0;d<D;d++)for(T[d]=[],l=0;l<H;l++)T[d][l]=0;for(m=0;m<N;m++)for(T[0][D]+=h[m],y=0;y<k;y++)for(T[0][F=y+1]+=M[m][y],T[F][0]=T[0][F],T[F][D]+=M[m][y]*h[m],c=y;c<k;c++)T[_=c+1][F]+=M[m][y]*M[m][c],T[F][_]=T[_][F];for(T[0][0]=N,g=O=i?0:1;g<D;g++){if(t){if(0===T[g][g]){for(w=!1,c=g+1;!w&&c<D;c++)if(0!==T[c][g]){for(m=0;m<H;m++)_=T[g][m],T[g][m]=T[c][m],T[c][m]=_;w=!0}if(!w)return u}}else{for(y=g;y<D&&0===T[y][g];)y++;if(D<=y)return u;for(b=O;b<H;b++)F=T[g][b],T[g][b]=T[y][b],T[y][b]=F}for(F=1/T[g][g],b=O;b<H;b++)T[g][b]*=F;for(y=O;y<D;y++)if(y!==g)for(F=-T[y][g],b=0;b<H;b++)T[y][b]+=F*T[g][b];i||(T[0][D]=0)}for(p=[],S||(p[0]=[]),y=0;y<R;y++){for(S&&(p[y]=[]),F=T[0][D],c=0;c<k;c++){if(v=o(S?n[y][c]:n[c][y]),t&&K(v))return s;F+=T[c+1][D]*v}S?p[y][0]=f(F):p[0][y]=f(F)}return a?new a(p):p}return u}function n(t,e,r,n,i,o,a,u){return y(!0,t,e,r,n,i,o,u,a,f,f)}function i(t,e,r,n,i,o,a){for(var u,s,u=0;u<t[J];u++)for(s=0;s<t[V];s++)if(t[u][s]<=0)return o;return y(!1,t,e,r,n,f,i,a,null,Math.log,Math.exp)}Object.defineProperty(e,"__esModule",{value:!0}),e.iit=e.eit=void 0,z=r("./src/common/util/numberhelper.ts"),K=isNaN,J="rowCount",V="colCount",e.eit=n,e.iit=i},"./src/common/util/numberhelper.ts":function(j,t,e){var r,n,i,f,o,y,N,c,v,a,m,M,p,k,u,g,s,F,h,d,l,$,b,e,_,H,S,x,E,w,P,D;function R(t,e,r,n){return e&&0!==e.length&&"i"!==e?I(t,e,r.NumberFormat,n):r&&0<r.name.length?t.toLocaleString():t.toString()}function I(t,e,r,n){var i;return Z(t,G(e),r,n)}function B(t,e){for(var r,n,t,i,e,o,a,i,o,a,r=u(g(t)),n={iUt:1,rUt:0};10<=r;)r/=10,n.iUt++;return i=(t=t.toString()).search(/e/gi),e=t.indexOf(e),-1!==i?(a=$(t,0,i),i=$(t,i+1),o=0,-1!==e&&(o=$(a,e+1).length),a=M(i),n.rUt=o=(o=o-a)<0?0:o):(o=0,-1!==e&&(o=$(t,e+1).length),n.rUt=o),n}function L(t){for(var e,r,n,e={oUt:t.charAt(0),aUt:0,tUt:0},r="",n=1;n<t.length;n++)if("+"===(r=t.charAt(n)))e.aUt=1;else{if("-"!==r){if("0"!==r)throw new Error(_().Exp_InvalidExponentFormat);e.tUt=t.length-n;break}e.aUt=-1}return e}function G(t){for(var e,r,n,i,o,a,u,s,f,y,c,m,M,h,d,l,e={uUt:v,sUt:v,rCt:p,fxt:0,d0:0,cUt:0,fUt:v},r="",n=p,i=p,o=p,a=p,u=p,s=p,y=v,c=[],m=0;m<t.length;m++){if(f=t.charAt(m),n)r+=f,'"'===f&&(c.push(r),r="",n=p);else if(i){if("E"===y||"e"===y){if(!(0<=["+","-","0"].indexOf(f))){i=p,m--;continue}r+=f}else if("+"===y||"-"===y){if("0"!==f){i=p,m--;continue}r+=f}else if("0"===y){if("0"!==f){i=p,u||(u=k,e.fUt=L(r)),m--;continue}r+=f}}else if("*"!==y&&"_"!==y&&"\\"!==y||""===r)if("*"===f||"_"===f||"\\"===f)s=p,""!==r&&(c.push(r),r=""),r+=f;else if("'"===f)s=p,""!==r&&(c.push(r),r=""),c.push(f);else if('"'===f)s=p,n=k,""!==r&&(c.push(r),r=""),r+=f;else if(0<=w.indexOf(f))s=k,w.indexOf(y)<0&&""!==r&&(c.push(r),r=""),r+=f;else if("."!==f||o)if("%"===f)s=p,e.d0++,""!==r&&(c.push(r),r=""),c.push(f);else if("\u2030"===f)s=p,e.cUt++,""!==r&&(c.push(r),r=""),c.push(f);else if(","===f)if(s){for(M=void 0,""!==r&&(c.push(r),r=""),h=k,d="",l=m+1;l<t.length;l++)if(M=t.charAt(l),'"'===d)'"'===M&&(d="");else if("\\"===d||"_"===d)d="";else{if(0<=w.indexOf(M)){h=p;break}if("."===M||";"===M)break;d=M}h?e.fxt++:o||(M=t.charAt(m+1))&&0<=w.indexOf(M)&&(a=k)}else r+=f;else"E"===f||"e"===f?(s=p,i=k,""!==r&&(c.push(r),r="")):(s=p,0<=w.indexOf(y)&&""!==r&&(c.push(r),r="")),r+=f;else""!==r&&(c.push(r),r=""),e.uUt=c,c=[],o=k,s=p;else r+=f,c.push(r),r="";y=f}return""!==r&&(i&&!u&&(e.fUt=L(r)),c.push(r)),a&&(e.rCt=k),o?e.sUt=c:e.uUt=c,e}function z(t,e,r,n){for(var i,o,a,u,s,f,y,c,m,M,i=e[0],o=1,a=0,u=p,s=t.length,f=0;f<s;f++)if("number"===(y=t[f].type)){for(c="",M=(m=t[f].value).length-1;0<=M;){if(!(1<=i&&i<=9||0===i&&o===e.length))throw new Error(_().Exp_InvalidNumberGroupSize);/\d/gi.test(m[M])?(u&&(c&&t.push({type:"number",value:c}),t.push({type:"groupSeparator",value:r}),c="",u=p),a++):a=0,c=m[M]+c,a===i&&0<i&&(u=k,a=0,o<e.length)&&(i=e[o],o++),M--}c&&t.push({type:y,value:c})}else"fillingChar"===y&&(n.infillIndex=t.length-s),t.push({type:y,value:t[f].value});t.splice(0,s)}function K(t,e,r,n,i,o){var a,a,u,s,u,a=et(t,-e),a=(u=(a=(t=a=isFinite(a)?a:t).toString()).split(/e/i))[0],s=1<u.length?m(u[1],10):0;return a=(u=a.split("."))[0],u=1<u.length?u[1]:"",0<s?(a+=(u=c(u,s)).slice(0,s),u=$(u,s)):s<0&&(s=-s,u=(a=t<0?o+N(a.replace(o,""),1+s):N(a,1+s)).slice(-s,a.length)+u,a=a.slice(0,-s)),a+(u=0<e?i+(u=u.length>e?u.slice(0,e):c(u,e)):"")}function J(t,e,r,n){var t=t;return 0<e&&(t=O(t*s(100,e),15)),0<r&&(t=O(t*s(1e3,r),15)),t=0<n?O(t/s(1e3,n),15):t}function V(t){var e,r,n,e=v;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function C(t,e){return t===e||0!==t&&0!==e&&(g(t-e)<g(t)/D||(t=O(t,15),e=O(e,15),g(t-e)<g(t)/D))}function W(t,e){return C(t,-e)?0:t+e}function U(t,e,r){var n,i,o,a,r,u,t,n={value:t,exponentValue:0},i,o=B(t,".").iUt,a=g(t),r=r?r.length:1;if(1<=a)r<o?(n.value=t/s(10,o-=r),n.exponentValue=o):n.exponentValue=0,-1===e.aUt&&(e.aUt=0);else if(a<1&&0<a){for(e.aUt=-1,u=s(10,r);10*a<u&&!C(10*a,u);)a*=10,n.exponentValue++;t=s(10,n.exponentValue),n.value*=h<t?0:t}return n}function q(t,e,r,n,i,o,a,u){var s,f,y,c,m,M,u,h,d,l,v,p,g,F,b,_,w,D,H,s=u.numberGroupSizes,f=u.numberGroupSeparator,y=u.negativeSign,c=u.percentSymbol,m=u.perMilleSymbol,M=n.fUt,u=$(e,0,1);for(e=0===(h=1===(e=u===y?$(e,1):e).length&&"0"===e?0:e.length)?"":e,d=0,l="",v=t.length-1;0<=v;v--)if(p="",g=t[v],/^(0|#|\?)+/g.test(g)){if(l!==r){for(F=g.length,b=h-d-1;0<=b&&0<F;b--)p=(_=e.charAt(b))+p,F--,d++;for(w=F-1;0<=w;w--)d++,"0"===(D=g[w])?p=D+p:"?"===D&&(""!==p&&(o.push({type:"number",value:p}),p=""),o.push({type:"numberPlaceholder",value:D}));""!==(p=(l=g+l)===r&&d<h?e.substr(0,h-d)+p:p)&&o.push({type:"number",value:p})}}else n.fUt&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(g)?(a.replaceExponent=k,H="",H=(H=(H+=M.oUt)+x[M.aUt])+N(i.toString(),M.tUt),o.push({type:"exponent",value:H})):"_"===g[0]?o.push({type:"placeholder",value:g[1]}):"*"===g[0]?a.hasInfilling||(o.push({type:"fillingChar",value:g[1]}),a.hasInfilling=!0,a.infillIndex=o.length-1):"\\"===g[0]?2===g.length&&o.push({type:"text",value:g[1]}):'"'===g[0]&&'"'===g[g.length-1]?2<g.length&&o.push({type:"text",value:g.substr(1,g.length-2)}):g===c?o.push({type:"percent",value:g}):g===m?o.push({type:"permille",value:g}):P[g]?o.push({type:"currency",value:g}):o.push({type:"text",value:g});u===y&&r&&o.push({type:"text",value:u}),n.rCt===k&&z(o,s,f,a),o.reverse(),a.infillIndex=o.length-1-a.infillIndex}function Y(t,e,r,n,i,o,a,u,s){var f,y,c,s,m,M,h,d,l,v,p,g,F,b,_,w,D,f=s.numberDecimalSeparator,y=s.percentSymbol,c=s.perMilleSymbol,s=e.indexOf(f),m=i.fUt;for((0<s||n!==H||r!==S)&&a.push({type:"decimalSeparator",value:f}),M=-1!==s?e.substring(s+1):"",d="",l=h=0;l<t.length;l++)if(v=t[l],/^(0|#|\?)+/g.test(v)){if(p="",d!==r){for(g=v.length,F=0,b=h;0<g&&0<M.length-h;)p+=M.charAt(b),g--,h++,F++,b++;for(_=F;0<g;)w=v[_],_++,h++,g--,"0"===w?p+=w:"?"===w&&(""!==p&&(a.push({type:"number",value:p}),p=""),a.push({type:"numberPlaceholder",value:w}));""!==p&&a.push({type:"number",value:p}),d+=v}}else m&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)?(u.replaceExponent=k,D="",D=(D=(D+=m.oUt)+x[m.aUt])+N(o.toString(),m.tUt),a.push({type:"exponent",value:D})):"_"===v[0]?a.push({type:"placeholder",value:v[1]}):"*"===v[0]?(a.push({type:"fillingChar",value:v[1]}),u.hasInfilling&&a.splice(u.infillIndex,1),u.hasInfilling=!0,u.infillIndex=a.length-1):"\\"===v[0]?2===v.length&&a.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?2<v.length&&a.push({type:"text",value:v.substr(1,v.length-2)}):v===y?a.push({type:"percent",value:v}):v===c?a.push({type:"permille",value:v}):P[v]?a.push({type:"currency",value:v}):a.push({type:"text",value:v})}function X(t,e){var r,n,r=t,n;return r=-1!==t.indexOf(e)?t.replace(/0+$/,""):r}function Z(t,e,r,n){var i,o,a,u,s,f,f,y,c,m,M,h,d,t,y,c,l,i=[];return t=J(t,e.d0,e.cUt,e.fxt),o=e.uUt,a=e.sUt,(o||a)&&(u=V(o),s=(s=V(a))||"",e.fUt&&(t=(f=U(t,e.fUt,u)).value,f=f.exponentValue),y=B(t,"."),1<g(t)&&15<y.iUt+y.rUt&&(t=O(t,15)),c=r.numberGroupSizes,m=r.numberGroupSeparator,M=r.numberDecimalSeparator,h=r.negativeSign,t=K(t,d=F(y.rUt,s.length),c,m,M,h),""===(t=n?t:X(t,M))?i.push({type:"text",value:(o?o.join(""):"")+(a?a.join(""):"")}):(y={hasInfilling:p,infillIndex:-1,replaceExponent:p},"10"!==(c=t.split(M)[0])||isNaN(f)||(c="1",f+=(l=e&&e.fUt&&-1===e.fUt.aUt)?-1:1),o&&q(o,c,u,e,f,i,y,r),"0"!==c&&""===u&&a&&i.push({type:"number",value:c}),a&&Y(a,t,s,u,e,f,i,y,r))),i}function Q(t,e){var e,r,n,i,o,t,a,r,u,o,n,r,a,s,n,i,r;return(t=y(t)?"":f.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?M(t):t.match(/^0x[a-f0-9]+$/i)?m(t,10):(i=(n=A(t,e=e.NumberFormat,r=e.numberNegativePattern))[0],o=n[1],""===i&&1!==r&&(i=(n=A(t,e,1))[0],o=n[1]),""===i&&(i="+"),t=(r=(r=(o=o[0]===e.currencySymbol?$(o,1):o).indexOf("e"))<0?o.indexOf("E"):r)<0?(a=o,v):(a=$(o,0,r),$(o,r+1)),o=(n=a.indexOf("."))<0?(u=a,v):(u=$(a,0,n),$(a,n+".".length)),u=u.split(",").join(""),a=i+(u=","!==(r=",".replace(/\u00A0/g," "))?u.split(r).join(""):u),o!==v&&(a+="."+o),(s=a[a.length-1])===e.percentSymbol&&(a=$(a,0,a.length-1),-1===(n=(a=f.zf.s6t(a,"")).indexOf("."))&&(n=a.length),i="",a=i=(i=(i=i+$(a,0,n-2)+".")+$(a,n-2,2))+$(a,n+1)),t!==v&&(""===(r=A(t,e,1))[0]&&(r[0]="+"),a+="e"+r[0]+r[1]),a.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?M(a):NaN)}function A(t,e,r){var n,e,n=e.negativeSign,e=e.positiveSign;if(4!==r&&2!==r||(n=" "+n,e=" "+e),4===r||3===r){if(f.zf.dT(t,n))return["-",$(t,0,t.length-n.length)];if(f.zf.dT(t,e))return["+",$(t,0,t.length-e.length)]}else if(2===r||1===r){if(f.zf.fJ(t,n))return["-",$(t,n.length)];if(f.zf.fJ(t,e))return["+",$(t,e.length)]}else{if(0!==r)throw new Error("");if(f.zf.fJ(t,"(")&&f.zf.dT(t,")"))return["-",$(t,1,t.length-2)]}return["",t]}function tt(t,e,r){if(0!==g(u(t)-t))throw new Error(_().Exp_BadFormatSpecifier);var t=(0<=t?t:E+t+1).toString(16),t=e?t.toLowerCase():t.toUpperCase();return!y(r)&&t.length<r?N(t,r):t}function et(t,e){var r,n;return t=+t,e=+e,isNaN(t)||e%1!=0?NaN:(t=(r=t<0)?-t:t,typeof e===a||0===e?(t=Math.round(t),r?-t:t):(n=t.toString().split("e"),t=Math.round(+(n[0]+"e"+(n[1]?+n[1]-e:-e))),+((n=(t=r?-t:t).toString().split("e"))[0]+"e"+(n[1]?+n[1]+e:e))))}function T(t){var e=o.CultureManager.Fe().NumberFormat;return e="string"==typeof t?o.CultureManager.Fe(t).NumberFormat:e}function rt(t){var e,r,n,i,e="";if(Array.isArray(t)&&0<t.length)for(r=0;r<t.length;r++)n=t[r].type,i=t[r].value,"placeholder"===n?e+=" ":"fillingChar"!==n&&(e+="numberPlaceholder"===n?" ":i);return e}function O(t,e){return t="number"==typeof t&&t.toString().length>=e?+t.toPrecision(e):t}Object.defineProperty(t,"__esModule",{value:!0}),t.st=void 0,r=e("./src/common/util/common.ts"),n=e("./src/common/util/types.ts"),i=e("./src/common/util/regexhelper.ts"),f=e("./src/common/util/stringhelper.ts"),o=e("./src/common/culture/cultureInfo.ts"),y=n.lt.ht,N=f.zf.B9t,c=f.zf.lUt,v=null,a=void 0,m=parseInt,M=parseFloat,k=!(p=!1),u=Math.floor,g=Math.abs,s=Math.pow,F=Math.min,h=Number.MAX_VALUE,d="#dot#",l="#group#",$=function(t,e,r){return t.substr(e,r)},b=function(t){return i.$T.qT(t)},e=new r.ResourceManager(r.SR),_=e.getResource.bind(e),H="##################0",S="################",x={1:"+",0:"","-1":"-"},E=4294967295,w=["0","#","?"],P={"\xa4":"\xa4",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH\u20b5":"GH\u20b5","\u1265\u122d":"\u1265\u122d","\u0631.\u0633.\u200f":"\u0631.\u0633.\u200f",XDR:"XDR","\u062f.\u0625.\u200f":"\u062f.\u0625.\u200f","\u062f.\u0628.\u200f":"\u062f.\u0628.\u200f","\u062f.\u062c.\u200f":"\u062f.\u062c.\u200f","\u062c.\u0645.\u200f":"\u062c.\u0645.\u200f","\u20aa":"\u20aa","\u062f.\u0639.\u200f":"\u062f.\u0639.\u200f","\u062f.\u0627.\u200f":"\u062f.\u0627.\u200f","\u0641.\u062c.\u0642.\u200f":"\u0641.\u062c.\u0642.\u200f","\u062f.\u0643.\u200f":"\u062f.\u0643.\u200f","\u0644.\u0644.\u200f":"\u0644.\u0644.\u200f","\u062f.\u0644.\u200f":"\u062f.\u0644.\u200f","\u062f.\u0645.\u200f":"\u062f.\u0645.\u200f","\u0623.\u0645.\u200f":"\u0623.\u0645.\u200f","\u0631.\u0639.\u200f":"\u0631.\u0639.\u200f","\u0631.\u0642.\u200f":"\u0631.\u0642.\u200f","\u062c.\u0633.":"\u062c.\u0633.",S:"S","\xa3":"\xa3","\u0644.\u0633.\u200f":"\u0644.\u0633.\u200f","\u062f.\u062a.\u200f":"\u062f.\u062a.\u200f","\u0631.\u064a.\u200f":"\u0631.\u064a.\u200f","\u20b9":"\u20b9",TSh:"TSh","\u20ac":"\u20ac","\u20bc":"\u20bc","\u20bd":"\u20bd",K:"K","\u043b\u0432.":"\u043b\u0432.","\u20a6":"\u20a6",CFA:"CFA","\u09f3":"\u09f3","\xa5":"\xa5",KM:"KM","\u041a\u041c":"\u041a\u041c",USh:"USh","K\u010d":"K\u010d","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","\u0783.":"\u0783.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","\u20b1":"\u20b1",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","\u20a1":"\u20a1",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","\u20b2":"\u20b2","Bs.":"Bs.","\u0631\u064a\u0627\u0644":"\u0631\u064a\u0627\u0644",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","\u058f":"\u058f",ISK:"ISK","\u20be":"\u20be","\u200b":"\u200b","\u20b8":"\u20b8","\u17db":"\u17db","\u20a9":"\u20a9","\u0441\u043e\u043c":"\u0441\u043e\u043c",Kz:"Kz","\u20ad":"\u20ad",MTn:"MTn","\u0434\u0435\u043d":"\u0434\u0435\u043d","\u20ae":"\u20ae","\u0930\u0941":"\u0930\u0941","Afl.":"Afl.","\u07d6\u07d5.":"\u07d6\u07d5.","\u0440\u0443\u0431.":"\u0440\u0443\u0431.","z\u0142":"z\u0142","\u060b":"\u060b",R$:"R$",Db:"Db",RON:"RON","\u20b4":"\u20b4",MAD:"MAD","\u0dbb\u0dd4.":"\u0dbb\u0dd4.","Lek\xeb":"Lek\xeb",den:"den",RSD:"RSD","\u0434\u0438\u043d.":"\u0434\u0438\u043d.","\u0720.\u0723.\u200f":"\u0720.\u0723.\u200f","Rs.":"Rs.","\u0441\u043c\u043d":"\u0441\u043c\u043d","\u0e3f":"\u0e3f","m.":"m.","\u20ba":"\u20ba","\u2d37\u2d54":"\u2d37\u2d54","so\u02bbm":"so\u02bbm","\u0441\u045e\u043c":"\u0441\u045e\u043c","\u20ab":"\u20ab",HK$:"HK$",MOP:"MOP",NT$:"NT$"},D=Math.pow(2,48),t.st={yU:function(t){return Q(t,o.CultureManager.Fe())},Z6t:function(t){return Q(t,o.CultureManager.Fe("invariant"))},L9t:function(t,e,r,n){return R(t,e,r=r||o.CultureManager.Fe(),n)},Ge:function(t,e){var e,r,e;return t="string"==typeof t&&(r=(e=T(e)).numberDecimalSeparator,e=e.numberGroupSeparator,"."!==r&&(t=t.replace(b("[.]"),d)),","!==e&&(t=t.replace(b("[,]"),l)),"."!==r&&(t=t.replace(b(d),r)),","!==e)?t.replace(b(l),e):t},Jf:function(t,e){var e,r,e;return t="string"==typeof t&&(r=(e=T(e)).numberDecimalSeparator,e=e.numberGroupSeparator,"."!==r&&(t=t.replace(b("["+r+"]"),d)),","!==e&&(t=t.replace(b("["+e+"]"),l)),"."!==r&&(t=t.replace(b(d),".")),","!==e)?t.replace(b(l),","):t},hUt:function(t,e){var e,r,e;return!("string"==typeof t&&(r=(e=T(e)).numberDecimalSeparator,e=e.numberGroupSeparator,"."!==r&&"."!==e&&0<=t.indexOf(".")||","!==r&&","!==e&&0<=t.indexOf(",")))},dUt:function(t,e){return M(this.Jf(t,e))},VGt:tt,v0:G,vUt:Z,ukt:C,tge:W,mUt:rt,gUt:H,pUt:S,E8:O}},"./src/common/util/rbush.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.rbush=void 0;var o=Math.max,a=Math.min,m=Number.POSITIVE_INFINITY;function r(t,e){this.bUt=o(4,t||9),this.yUt=o(2,Math.ceil(.4*this.bUt)),e&&this.wUt(e),this.clear()}function y(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function u(t,e){c(t,0,t.children.length,e,t)}function c(t,e,r,n,i){(i=i||F(null)).minX=m,i.minY=m,i.maxX=-m,i.maxY=-m;for(var o=e,a=void 0;o<r;o++)a=t.children[o],M(i,t.leaf?n(a):a);return i}function M(t,e){t.minX=a(t.minX,e.minX),t.minY=a(t.minY,e.minY),t.maxX=o(t.maxX,e.maxX),t.maxY=o(t.maxY,e.maxY)}function s(t,e){return t.minX-e.minX}function f(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function l(t,e){return(o(e.maxX,t.maxX)-a(e.minX,t.minX))*(o(e.maxY,t.maxY)-a(e.minY,t.minY))}function v(t,e){var r=o(t.minX,e.minX),n=o(t.minY,e.minY),i=a(t.maxX,e.maxX),t=a(t.maxY,e.maxY);return o(0,i-r)*o(0,t-n)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&(0<=e.maxX&&e.maxX<=t.maxX||t.minX<0)&&(0<=e.maxY&&e.maxY<=t.maxY||t.minY<0)}function g(t,e){return(-1===t.minY||-1===e.minY||t.minY<=e.maxY&&e.minY<=t.maxY)&&(-1===t.minX||-1===e.minX||t.minX<=e.maxX&&e.minX<=t.maxX)}function F(t){return{children:t,height:1,leaf:!0,minX:m,minY:m,maxX:-m,maxY:-m}}(e.rbush=r).prototype={all:function(){return this.QP(this.data,[])},search:function(t){var e,r,n,i,o,a,u,s,e=this.data,r=[],n=this.toBBox;if(g(t,e))for(i=[];e;){for(o=0,a=e.children.length;o<a;o++)u=e.children[o],g(t,s=e.leaf?n(u):u)&&(e.leaf?r.push(u):p(t,s)?this.QP(u,r):i.push(u));e=i.pop()}return r},collides:function(t){var e,r,n,i,o,a,u,e=this.data,r=this.toBBox;if(g(t,e))for(n=[];e;){for(i=0,o=e.children.length;i<o;i++)if(a=e.children[i],g(t,u=e.leaf?r(a):a)){if(e.leaf||p(t,u))return!0;n.push(a)}e=n.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=F([]),this},remove:function(t,e){if(t)for(var r=this.data,n=this.toBBox(t),i=[],o=[],a,u,s,f;r||i.length;){if(r||(r=i.pop(),u=i[i.length-1],a=o.pop(),f=!0),r.leaf&&-1!==(s=y(t,r.children,e)))return r.children.splice(s,1),i.push(r),this.MUt(i),this;f||r.leaf||!p(r,n)?u?(a++,r=u.children[a],f=!1):r=null:(i.push(r),o.push(a),r=(u=r).children[a=0])}return this},toBBox:function(t){return t},compareMinX:s,compareMinY:f,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},CUt:function(t,e,r,n){for(var i,o,a,u,s,f,y,c;n.push(e),!e.leaf&&n.length-1!==r;){for(y=c=m,i=0,o=e.children.length;i<o;i++)s=h(a=e.children[i]),(f=l(t,a)-s)<c?(c=f,y=s<y?s:y,u=a):f===c&&s<y&&(y=s,u=a);e=u||e.children[0]}return e},Eit:function(t,e,r){var n,r,i,n,n=this.toBBox,r=r?t:n(t),i=[],n=this.CUt(r,this.data,e,i);for(n.children.push(t),M(n,r);0<=e&&i[e].children.length>this.bUt;)this.SUt(i,e),e--;this.TUt(r,i,e)},SUt:function(t,e){var r,n,i,i,n,r=t[e],n=r.children.length,i=this.yUt;this.AUt(r,i,n),i=this.IUt(r,i,n),(n=F(r.children.splice(i,r.children.length-i))).height=r.height,n.leaf=r.leaf,u(r,this.toBBox),u(n,this.toBBox),e?t[e-1].children.push(n):this.xUt(r,n)},xUt:function(t,e){this.data=F([t,e]),this.data.height=t.height+1,this.data.leaf=!1,u(this.data,this.toBBox)},IUt:function(t,e,r){for(var n,i,o,a,i,u,s,f,u=s=m,n=e;n<=r-e;n++)a=v(i=c(t,0,n,this.toBBox),o=c(t,n,r,this.toBBox)),i=h(i)+h(o),a<u?(u=a,f=n,s=i<s?i:s):a===u&&i<s&&(s=i,f=n);return f},AUt:function(t,e,r){var n=t.leaf?this.compareMinX:s,i=t.leaf?this.compareMinY:f,o,a;this.NUt(t,e,r,n)<this.NUt(t,e,r,i)&&t.children.sort(n)},NUt:function(t,e,r,n){t.children.sort(n);for(var i=this.toBBox,o=c(t,0,e,i),a=c(t,r-e,r,i),u=d(o)+d(a),s,f,s=e;s<r-e;s++)f=t.children[s],M(o,t.leaf?i(f):f),u+=d(o);for(s=r-e-1;e<=s;s--)f=t.children[s],M(a,t.leaf?i(f):f),u+=d(a);return u},TUt:function(t,e,r){for(var n=r;0<=n;n--)M(e[n],t)},MUt:function(t){for(var e=t.length-1,r=void 0;0<=e;e--)0===t[e].children.length?0<e?(r=t[e-1].children).splice(r.indexOf(t[e]),1):this.clear():u(t[e],this.toBBox)},wUt:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},"./src/common/util/regexhelper.ts":function(t,e,r){var i,n,o,a;function f(){}Object.defineProperty(e,"__esModule",{value:!0}),e.$T=void 0,i=r("./src/common/util/stringhelper.ts"),n=!0,o="empty",f.bue=function(t,e){var r;if(e&&f.yue[e]&&f.yue[e][t])r=f.yue[e][t];else try{null==e?(r=new RegExp(t),e=o):r=new RegExp(t,e),f.yue[e]||(f.yue[e]={}),f.yue[e][t]=r}catch(t){return null}return r.lastIndex=0,r},f.qT=function(t){var e=f.kUt[t],e;return(e=e||(f.kUt[t]=new RegExp(t,"g"))).lastIndex=0,e},f.OJ=function(t){var e=f.DUt[t],e;return(e=e||(f.DUt[t]=new RegExp(t,"gi"))).lastIndex=0,e},f.jJ=function(t,e,r){var n,i,o,a,u,s;if(f._Ut[t])return f.EUt[t];if(f.qT(n="[~?*]+").test(t)){for(i=[],o=t.split(""),u={".":!(a=void 0),"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},s=0;s<o.length;s++)"~"===(a=o[s])&&s<o.length-1?("*"===(a=o[++s])||"?"===a?i.push("\\"):e&&i.push("~"),i.push(a)):"?"===a?i.push("."):"*"===a?(i.push("[\\s\\S]"),i.push(r?"+":"*")):(u[a]&&i.push("\\"),i.push(a));return i.join("")}return null},f.tbt=function(t,e,r){var t=f.jJ(t,e,r),t;return t=t&&"^"+t+"$"},f.jUt=function(t,e){for(var r,n,r="#"+t+"0#",n=1;0<e.indexOf(r);)r=i.zf.qS(r,"#"+t+(n-1)+"#","#"+t+n+"#"),n++;return r},f.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},f.kUt={},f.DUt={},f.yue={},f._Ut={},f.EUt={},e.$T=f},"./src/common/util/stringhelper.ts":function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.zf=void 0;var o=e("./src/common/util/regexhelper.ts");function a(t,e,r){return t.substr(e,r)}function u(t){return null==t}function n(t,e,r,n){var i,e;if(u(e))throw new Error;return""===e||!(e.length>t.length)&&(i=t,e=e,r&&(i=t.toLowerCase(),e=e.toLowerCase()),n(i,e))}i.zf={OS:function(t,e,r){return r&&(t=t.toLowerCase(),e=e.toLowerCase()),""===e||0<=t.indexOf(e)},hD:function(t,e,r){var r,n;return r?(r=t.toLowerCase(),n=e.toLowerCase(),r.indexOf(n)):t.indexOf(e)},cJ:function(t,e){if(!e)return t;for(var r=t;a(r,0,e.length)===e;)r=a(r,e.length);return r},s6t:function(t,e){if(!e)return t;for(var r=t;a(r,r.length-e.length,e.length)===e;)r=a(r,0,r.length-e.length);return r},Eit:function(t,e,r){var n,i;if(e<0||e>t.length||u(r))throw new Error;return(n=a(t,0,e))+r+(i=a(t,e,t.length-e))},VP:function(t,e,r){var n,i;if(u(r)&&(r=t.length-e),e<0||r<0||e+r>t.length)throw new Error;return(n=a(t,0,e))+(i=a(t,e+r,t.length-e-r))},fJ:function(t,e,r){return n(t,e,r=void 0===r?!1:r,function(t,e){return t.slice(0,e.length)===e})},dT:function(t,e,r){return n(t,e,r=void 0===r?!1:r,function(t,e){return t.slice(-e.length)===e})},Vi:function(t,e,r,n){if(e)return r=(""+r).replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"+(n?"i":"")),r);throw new Error},OUt:function(t,e,r,n){return e=o.$T.D9t(e),i.zf.Vi(t,e,r,n)},gmt:function(t,e){var e=t.indexOf(e);return e<0||e>=t.length?t:a(t,0,e)},DU:function(t,e){for(var r=0,n=t.indexOf(e);0<=n;)r+=1,n=t.indexOf(e,n+1);return r},qS:function(t,e,r){return t.split(e).join(r)},I5:function(t,e){for(var r,n,i,r=t,n=0;n<e.length;n++)i=new RegExp("\\{"+n+"\\}","g"),r=r.replace(i,e[n]);return r},RUt:function(t,e,r){for(var n,i,n=t.toString(),i=n.length;i<e;i++)n=r?"0"+n:n+"0";return n},B9t:function(t,e){return i.zf.RUt(t,e,!0)},lUt:function(t,e){return i.zf.RUt(t,e,!1)},Dbt:function(t,e){return t===e||!t&&!e||t&&e&&t.toLowerCase()===e.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var e,r,e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},r=o.$T.qT("(?:&|<|>|\"|'|`)");return r.test(t)?t.replace(r,function(t){return e[t]}):t},dI:function(t){var e,r,e={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},r=o.$T.qT("(?:&|<|>|"|'|`)");return r.test(t)?t.replace(r,function(t){return e[t]}):t},TY:function(t){for(var e,r,e=t,r=/javascript:/gi;e.match(r);)e=e.replace(r,"");return e}}},"./src/common/util/types.ts":function(t,c){var o,a;Object.defineProperty(c,"__esModule",{value:!0}),c.lt=void 0,o="undefined"!=typeof window?window.File:null,a="undefined"!=typeof window?window.Blob:null,c.lt={BUt:null,y0:function(t,e){var r,n,i,o;if(c.lt.Gh(t))for(n=0,i=t.length;n<i&&!1!==(r=e.call(t[n],n,t[n]));n++);else for(o in t)if(t.hasOwnProperty(o)&&!1===(r=e.call(t[o],o,t[o])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===c.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===c.lt.Oh(t)},jh:function(t){return c.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var e,r,n,i,o,a;if(null===t)return"null";if(!(e=c.lt.BUt))for(e=c.lt.BUt={},n=0,i=(r=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;n<i;n++)e["[object "+r[n]+"]"]=r[n].toLowerCase();return o=e.toString,"object"==(a=typeof t)||"function"==a?e[o.call(t)]||"object":a},Rh:function(t,e,r){var n,i;if(e){if(i=[].indexOf)return i.call(e,t,r);for(n=e.length,r=(r=c.lt.ht(r)?0:r)<0?Math.max(0,n+r):r;r<n;r++)if(r in e&&e[r]===t)return r}return-1},Bh:function(t,e){var r=e.length,n=t.length,i=0;if("number"==typeof r)for(;i<r;i++)t[n]=e[i],n++;else for(;void 0!==e[i];)t[n]=e[i],n++,i++;return t.length=n,t},Lh:function(t,e,r){var n,i,o,a,u,i=[];if(c.lt.Gh(t))for(o=0,a=t.length;o<a;o++)null!==(n=e(t[o],o,r))&&(i[i.length]=n);else for(u in u=void 0,t)t.hasOwnProperty(u)&&null!==(n=e(t[u],u,r))&&(i[i.length]=n);return i.concat([])},Dh:function(){for(var t,e,r,n,i,o,a,n,u,s,f,y,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(f=t.length,y=!(s=1),"boolean"==typeof(u=t[0]||{})&&(y=u,u=t[1]||{},s=2),"object"==typeof u||c.lt.Eh(u)||(u={}),f===s&&(u=this,--s);s<f;s++)if(!c.lt.ht(a=t[s]))for(o in a)r=u[o],u!==(i=a[o])&&(n=c.lt.Nh(i),y&&i&&(c.lt.Ph(i)||n)?(n=n?r&&c.lt.Nh(r)?r:[]:r&&c.lt.Ph(r)?r:{},u[o]=c.lt.Dh(y,n,i)):void 0!==i&&(u[o]=i));return u},Fh:function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var e,r;if(!t||"object"!==c.lt.Oh(t)||t.nodeType||c.lt.Uh(t))return!1;e={}.hasOwnProperty;try{if(t.constructor&&!e.call(t,"constructor")&&!e.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(r in t);return void 0===r||e.call(t,r)},Gh:function(t){var e,r;return!c.lt.ht(t)&&(e=t.length,r=c.lt.Oh(t),!c.lt.Uh(t))&&(!(1!==t.nodeType||!e)||"array"===r||"function"!==r&&(0===e||"number"==typeof e&&0<e&&e-1 in t))},Hh:function(t,e){var e=e||[];return null!==t&&(c.lt.Gh(Object(t))?c.lt.Bh(e,"string"==typeof t?[t]:t):[].push.call(e,t)),e},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t,e){if(void 0===e&&(e=!0),!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||c.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var r,n,i;if(o&&t instanceof o)return new o([t],t.name,{type:t.type,lastModified:t.lastModified});if(a&&t instanceof a)return new a([t],{type:t.type});for(n in r=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(n)&&(i=t[n],t.hasOwnProperty(n))&&r[n]!==i&&(r[n]="object"==typeof i?c.lt.tv(i):i);return e&&(r.toString=t.toString,r.valueOf=t.valueOf),r}}},"./src/common/util/util.res.en.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Exp_Separator=e.Exp_InvalidCast=e.Exp_InvalidNumberFormat=e.Exp_BadFormatSpecifier=e.Exp_InvalidNumberGroupSize=e.Exp_InvalidSemicolons=e.Exp_InvalidExponentFormat=e.Exp_InvalidDateFormat=void 0,e.Exp_InvalidDateFormat="Invalid date format pattern",e.Exp_InvalidExponentFormat="invalid exponent format",e.Exp_InvalidSemicolons="invalid format : too many semicolons",e.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",e.Exp_BadFormatSpecifier="Bad Format Specifier",e.Exp_InvalidNumberFormat="Invalid number format pattern",e.Exp_InvalidCast="InvalidCastException",e.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},"./src/plugins/commands/commands.entry.ts":function(t,e,r){var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.UndoManager=e.CommandManager=e.Key=void 0,n=r("./src/plugins/commands/commands.ts"),Object.defineProperty(e,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(e,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}}),i=r("./src/plugins/commands/undomanager.ts"),Object.defineProperty(e,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,e){var a,s,r,n;function i(t,e,r){var n,i;this.jS=t,this.LUt=e,this.Zc=r,n=this,Object.defineProperty(n,"shortcutKey",{get:function(){return n.FUt},set:function(t){var e,e,r,e=n.FUt;e!==t&&((e=(i=n.jS.PUt)[e])&&0<=(r=e.indexOf(n))&&e.splice(r,1),n.FUt=t)&&((e=i[t])||(i[t]=e=[]),e.splice(0,0,n))}})}function o(t){this.DJ=t,this.aT={},this.GUt={},this.PUt={}}Object.defineProperty(e,"__esModule",{value:!0}),e.CommandManager=e.Key=void 0,(n=a=e.Key||(e.Key={}))[n.left=37]="left",n[n.right=39]="right",n[n.up=38]="up",n[n.down=40]="down",n[n.tab=9]="tab",n[n.enter=13]="enter",n[n.shift=16]="shift",n[n.ctrl=17]="ctrl",n[n.space=32]="space",n[n.altkey=18]="altkey",n[n.home=36]="home",n[n.end=35]="end",n[n.pup=33]="pup",n[n.pdn=34]="pdn",n[n.backspace=8]="backspace",n[n.del=46]="del",n[n.esc=27]="esc",n[n.a=65]="a",n[n.c=67]="c",n[n.v=86]="v",n[n.x=88]="x",n[n.z=90]="z",n[n.y=89]="y",i.prototype.canUndo=function(){var t;return this.LUt.canUndo},i.prototype.execute=function(t,e,r){var n,i,o,a,n=this,o=!0;n.LUt&&e&&n.LUt.canUndo&&n.jS.UUt({command:e,result:i,vM:r,actionType:r});try{o=!1!==(i=(a=n.LUt.execute||n.LUt)(t,e,1===r))}catch(t){o=!1}return e&&o&&n.jS.HUt({command:e,result:i,vM:r,actionType:r}),i},s=i,o.prototype.register=function(t,e,r,n,i,o,a){var u,e,u=this,e=new s(u,e,t);u[t]=e,r&&(e.shortcutKey=u.getShortcutKey(r,n,i,o,a))},o.prototype.getCommand=function(t){return this[t]},o.prototype.execute=function(t){var e=this[t.cmd];if(e)return e.execute(this.DJ,t,0)},o.prototype.setShortcutKey=function(t,e,r,n,i,o){var a,t,t,u,s,a=this;if(t)(t=a[t])&&(t.shortcutKey=a.getShortcutKey(e,r,n,i,o));else if(t=a.getShortcutKey(e,r,n,i,o),u=a.getCommands(t))for(s=u.length-1;0<=s;s--)u[s].shortcutKey=void 0},o.prototype.getShortcutKey=function(t,e,r,n,i){var o,o;if(t)return(o=(o="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):a[t])||t)+(e?"+ctrl":"")+(r?"+shift":"")+(n?"+alt":"")+(i?"+window":"")},o.prototype.getCommands=function(t){return this.PUt[t]},o.prototype.addListener=function(t,e){this.aT[t]=e},o.prototype.removeListener=function(t){delete this.aT[t]},o.prototype.HUt=function(t){var e,r,e=this.aT;for(r in e)e.hasOwnProperty(r)&&e[r](t)},o.prototype.cM=function(t,e){this.GUt[t]=e},o.prototype.zUt=function(t){delete this.GUt[t]},o.prototype.UUt=function(t){var e,r,e=this.GUt;for(r in e)e.hasOwnProperty(r)&&e[r](t)},o.prototype.L0=function(){this.DJ=null},e.CommandManager=o},"./src/plugins/commands/undomanager.ts":function(t,e){var r;function n(t,e,r){var n=this;n.DJ=t,n.VUt=e=e<0?2147483647:e,n.Hw=r,n.Nmt=[],n.kmt=[],n.YUt=!1}Object.defineProperty(e,"__esModule",{value:!0}),e.UndoManager=void 0,n.prototype.dM=function(t,e){var r,n,i,o,r=this;if(t){if(1===e)r.kmt.push(t);else{if(n=r.VUt,i=r.Nmt.length,0<n&&n<=i)for(o=0;o<i-n+1;o++)r.Nmt.shift();r.Nmt.push(t),0===e&&(r.kmt=[])}r.YUt=!0}},n.prototype.canUndo=function(){return 0<this.Nmt.length},n.prototype.undo=function(){var t,e,r,n,i,t=this,e=t.Nmt,r=!0;if(t.Hw&&t.canUndo()){n=e[e.length-1];try{(i=t.DJ.commandManager()[n.cmd])&&(n.hM=!0,r=i.execute(t.DJ,n,1))}catch(t){r=!1}delete n.hM,!1!==r&&(e.pop(),t.YUt=!0,t.kmt.push(n))}return r},n.prototype.canRedo=function(){return 0<this.kmt.length},n.prototype.redo=function(){var t,e,r,n,i,t=this,e=t.kmt,r=!0;if(t.Hw&&t.canRedo()){n=e[e.length-1];try{(i=t.DJ.commandManager()[n.cmd])&&(n.hM=!0,r=i.execute(t.DJ,n,2))}catch(t){r=!1}delete n.hM,!1!==r&&(e.pop(),t.YUt=!0,t.Nmt.push(n))}return r},n.prototype.getRedoStack=function(){return this.kmt.slice()},n.prototype.getUndoStack=function(){return this.Nmt.slice()},n.prototype.maxSize=function(t){var e=this;return arguments.length<1?e.VUt:(0<=t&&(e.VUt=t),e)},n.prototype.clear=function(){this.Nmt=[],this.kmt=[]},n.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},n.prototype.L0=function(){this.DJ=null},n.prototype.setNewChangeStatus=function(t){this.YUt=t},n.prototype.getNewChangeStatus=function(){return this.YUt},e.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,e,r){var n,i,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./src/plugins/formatter/formatter.ts"),e)},"./src/plugins/formatter/formatter.res.en.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Exp_InvalidCast=e.Exp_ValueIllegal=e.Exp_TokenIllegal=e.Exp_DuplicatedDescriptor=e.Exp_ValueIsNull=e.Exp_FormatIllegal=e.Exp_InvalidBackslash=e.Exp_TokenIsNull=void 0,e.Exp_TokenIsNull="token is null",e.Exp_InvalidBackslash="the '\\' cannot be evaluated",e.Exp_FormatIllegal="format is illegal.",e.Exp_ValueIsNull="value is null",e.Exp_DuplicatedDescriptor="The type of descriptor was added.",e.Exp_TokenIllegal="token is illegal.",e.Exp_ValueIllegal="value is illegal.",e.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(l,t,e){var E,p,v,g,R,F,r,e,e,f,s,b,_,w,m,I,B,L,c,G,z,K,J,V,D,W,y,U,q,Y,X,M,H,N,u,k,h,Z,$,d,S,Q,tt,et,rt,r,nt,it,ot,at,ut,st,ft,yt,ct,mt,Mt,ht,dt;function n(t,e){var e,t,r,n;if(xt.call(this,e),(e=this).Jq=t,r=T((t=e.Jq)[0],s,!1),n=t.indexOf("-"),!(r&&-1<n))throw new Error(f().Exp_TokenIllegal);e.ZUt=A(t,1,n-1),0<(t=p.zf.VP(t,0,n+1)).length&&(e.Iat=parseInt(t,16))}function i(t,e){this.formatCached=t,this.cultureName=e,this.typeName=""}function lt(t,e){var n,r,i,o,a,u,s,i;for(xt.call(this,e),n=this,u=0,s=(a=["<=","<>",">=",">","<","="]).length;u<s;u++)if(p.zf.fJ(t,r=a[u],!0)){i=p.zf.VP(t,0,r.length),i=parseFloat(i),H(i)||(o=i);break}if(o===b&&o===_)throw new Error(f().Exp_TokenIllegal);n.value=o,n.WUt=r,n.isMeetCondition=function(t){var e=n.WUt,r=n.value;switch(e){case"<=":return t<=r;case"<>":return t!==r;case">=":return r<=t;case">":return r<t;case"<":return t<r;case"=":return t===r}}}function x(t,e){xt.call(this,e);var e=this;if(e.token=t,e.type=parseInt(p.zf.VP(t,0,"dbnum".length),10),e.type<0||4<e.type)throw new Error(f().Exp_TokenIllegal)}function P(t,e,r,n,i,o){St.call(this,e,r,n,o);var e=this;e.pU=e.QUt(Nt(t)),e.KUt=i,e.JUt=2,e.Hc()}function vt(t,e){var e,t,r;if(xt.call(this,e),e=this,"h"===(t=h(t)[0]))r=3600;else if("m"===t)r=60;else{if("s"!==t)throw new Error(f().Exp_TokenIllegal);r=1}e.XUt=function(t){var t=t/1e3/r;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}function pt(t,e){var e,e;xt.call(this,e),null!==(e=V.exec(t))&&(e=Number(e[1]),0<=--e)&&e<J.length&&(t=J[e]),this.foreColor=t}function C(t,e,r,n){var r,n,i,t,e,t;function o(t,e){var r,n,i,o,a,u,s,r=[],n='"';if(t!==b&&""!==t){for(i=!1,a=!(o=[]),u=0;u<t.length;u++)(s=t[u])!==n||i||(a=!a),i||a||s!==e?o.push(s):(r.push(o.join("")),o=[]),i="\\"===s&&!i;r.push(o.join(""))}return r}St.call(this,e,r,n),(r=this).qUt=!1,r.JUt=1,r.$Ut=_t(t),n=Nt(t),-1<(i=(n=_t(n=e?Dt(n,r.j9t.Nat,r.j9t.currencySymbol()):n)).indexOf("/"))&&(t=o(n,"/"))&&2===t.length&&(r.tHt=t[1],e=t[0])&&(-1<(t=e.lastIndexOf(" "))?(r.nHt=A(e,0,t),r.eHt=A(e,t+1,e.length-t-1)):r.eHt=e),r.iHt=n}function o(t,e,r,n){St.call(this,e,r,n),0<arguments.length?(o.rHt(t)||$(),this.$Ut=t):this.$Ut="General",this.JUt=0}function a(t,e,r,n){var i,r,i=this;St.call(i,e,r,n),r=Nt(t,!1),r=Ht(r=_t(r=e?Dt(r,i.j9t.Nat,i.j9t.currencySymbol()):r)),i.pU=r,i.JUt=3}function A(t,e,r){return t.substr(e,r)}function gt(t){return g.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function Ft(t,e){if("\\"===t[e])throw new Error(f().Exp_InvalidBackslash);if(0<e-1&&e-1<t.length&&"\\"===t[e-1]){if(e-2<0)return 1;if(0<e-2&&e-2<t.length)return"\\"!==t[e-2]}}function bt(t){if(t)return"["+t+"]";throw new Error(f().Exp_TokenIsNull)}function _t(t){var e,r,n,i,o;if(t===_||t===b||""===t)return t;for(e="",n=!1,i=r=0;i<t.length;i++)'"'===(o=t[i])?(n=!n,e+=o):n?e+=o:"["===o?r++:"]"===o?--r<0&&(r=0):0===r&&(e+=o);return e.toString()}function wt(t){return t=Dt(t,"[",""),Dt(t,"]","")}function Dt(t,e,r){return!t||t===S.oHt||T(e,r,!0)?t:(e=e.replace(z,"\\$1"),t.replace(new RegExp(e,"g"),r))}function Ht(t){for(var e,r,n,i,o,e=t.length,r=!1,n="",i=0;i<e;i++)"\\"===(o=t.charAt(i))?(r=!r)&&"@"!==t.charAt(i+1)||(n+=o):(r=!1,n+=o);return n}function T(t,e,r){return r?h(t)===h(e):t===e}function Nt(t,e){var r,n,i,o;for(1===arguments.length&&(e=!0),r=!1,n="",i=0;i<t.length;i++){if('"'===(o=t[i]))r=!r;else if(!r&&!e&&"/"===o&&!Ft(t,i))continue;n+=o}return n}function kt(t){for(var e,r,n,i,o,e="",r=!1,n=0,i=t.length;n<i;n++)'"'===(o=t[n])&&(r=!r),"E"===o||r||(e+=h(o));return e}function $t(t,e){var r,n,i,o;if(t&&t!==S.oHt)for(n=kt(r=Nt(t)),i=0;i<e.length;i++)if(0===(o=n.indexOf(e[i]))||0<o&&"_"!==n[o-1]&&"*"!==n[o-1])return!0;return!1}function St(t,e,r,n){this.j9t=t,this.aHt=e,this.cultureName=r,this.O9t=n}function xt(t){this.Nat=t}function Pt(t){var e,t,r,t=wt(t);return t&&t!==S.oHt&&(r=t[0],-1<["<",">","="].indexOf(r)?(e=nt).Name="ConditionalFormatPart":p.zf.fJ(t,"DBNum",!0)?(e=it).Name="DBNumberFormatPart":T(t[0],s,!1)&&-1<t.indexOf("-")?(e=rt).Name="LocaleIDFormatPart":At(t)?(e=at).Name="ABSTimeFormatPart":t.indexOf(s)<0&&3<=t.length&&((e=ut).Name="ColorFormatPart")),e}function Ct(t,e){var r,t,r=!1,t=$t(t=t?t.toString():S.oHt,["general"])?ft:ot.a0(t)?ot:$t(t,["E+","E-","#",".",",","%","0","/","?"])||e?(r=!0,st):(r=!0,yt);return{uHt:r,uit:t}}function At(t){var e,r,n,e=h(t),r=e[0];if("h"===r||"m"===r||"s"===r){for(n=1;n<e.length;n++)if(r!==e[n])return;return 1}}function Tt(t,e,r){var t,r,t=t?t.cultureInfo():N(r);return(e<4||4===e&&("ko-kr"===r||"ko-kr"===t.name()))&&(r=t.NumberFormat.dbNumber)?r[e]:b}function Ot(t,e,r,n,i){var o,r,o=t;if(!M(n)&&e instanceof Date){if(!(r=Tt(r,n.type,i)))return t;o=n.sHt(o,r,!0),o=(o=(o=1===n.type?o.replace(new RegExp(B,"g"),L):o).replace("@"+m.cHt,v.ct.Pe(e,m.cHt))).replace("@"+m.fHt,v.ct.Pe(e,m.fHt)),o=n.sHt(o,r,!1)}return o}function jt(t,e,r,n,i){var o,a,u,s,f,y,c;if(!M(n)&&(o=Tt(r,n.type,i),!M(o)))for(a=!1,u=void 0,s=N(i),f=void 0,y=0,c=t.length;y<c;y++)"decimalSeparator"===t[y].type&&(a=!0,t[y].value=n.sHt(t[y].value,o,e),u=t[y].value),"number"===t[y].type&&(t[y].value=a?n.sHt(u+t[y].value,o,e).slice(1):n.sHt(t[y].value,o,e),"ja-JP"===s.name())&&1<t[y].value.length&&("\u4e00\u5343"!==(f=t[y].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[y].value=t[y].value.substr(1)));return t}function O(t,e){var r=this;0===arguments.length?(r.formatCached="General",r.E9t=new ft):r.Hc(t,e)}function j(t,e){var r,n,r=dt.call(this,t,e)||this,n=r;return n.lHt=!0,n.PropertyChanged=[],S.Ji(t)&&(t="General"),n.formatCached=t,n.cultureName=e,n.init(),r}function Et(t){for(var e,r,n,i,o,e=[],r=0,n=0,i=t.length,o=0;o<i;o++)"_"===t[o]?r++:(";"!==t[o]||0!==r&&r%2!=0||(e.push(t.substring(n,o)),n=o+1),r=0);return n<=i&&e.push(t.substring(n,i)),e}function Rt(i){for(var o,t,e,r,a,u,n,s,f,o=[],t=!1,e=!1,r="",a=function(t,e){return{type:t,content:e}},u=function(t){return!M(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},n=function(t,e){if(u(t)){for(var r=t,n=i[e+1];u(n)&&n.toLowerCase()===t.toLowerCase()&&(r+=n,e<i.length-1);)n=i[++e+1];o.push(a("symbolic",r))}else"a"===t&&"aaa"===i.slice(e,e+3).toLowerCase()?(o.push(a("symbolic",i.slice(e,e+3))),e+=2):o.push(a("text",t));return e},s=0;s<i.length;s++)if(f=i[s],t)o.push(a("text","\\"+f)),t=!1;else if(e&&'"'!==f)r+=f;else switch(f){case"\\":t=!0;break;case'"':e&&(o.push(a("text",'"'+r+'"')),r=""),e=!e;break;default:s=n(f,s)}return o}E=this&&this.__extends||(ht=function(t,e){return(ht=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ht(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t.Hf=t.FormatterBase=void 0,p=e("./src/common/util/stringhelper.ts"),v=e("./src/common/util/datetimehelper.ts"),g=e("./src/common/util/types.ts"),R=e("./src/common/util/numberhelper.ts"),F=e("./src/common/culture/cultureInfo.ts"),r=e("./src/common/util/common.ts"),e=e("./src/plugins/formatter/formatter.res.en.ts"),g.lt.Dh(r.SR.en,e),e=new r.ResourceManager(r.SR),f=e.getResource.bind(e),s="$",g.lt.dt=function(t,e){if(g.lt.ht(t))return"null"===e;if(e){if(e instanceof Function&&t instanceof e)return!0;if(typeof t===e)return!0;if("function"===e&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===e.toLowerCase())return!0;if("DateTime"===e)return t instanceof Date;var t;if("TimeSpan"===e)return t instanceof Date&&0<=(t=v.ct.o0(t))&&t<1;"string"==typeof e&&"undefined number boolean string".indexOf(e)}return!1},g.lt.q8=function(t,e){return!!R.st.hUt(t,e)&&("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=R.st.Jf(t,e),g.lt.dt(t,"number")||g.lt.dt(t,"DateTime")||g.lt.dt(t,"TimeSpan")||t&&!g.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(2<=t.length&&"0"===t[0]&&"x"===t[1]))},g.lt.uJ=function(t){return g.lt.ht(t)||""===t?0:g.lt.dt(t,"number")?t:g.lt.dt(t,"string")&&!isNaN(t)?R.st.yU(t):g.lt.dt(t,"boolean")?t?1:0:g.lt.dt(t,"DateTime")?v.ct.o0(t):g.lt.dt(t,"TimeSpan")?Math.floor(v.ct.o0(t)):parseFloat(t)},b=null,_=void 0,w=Math.abs,m={fHt:"yy",hHt:"y",cHt:"yyyy",dHt:"m",vHt:"mm",mHt:"mmm",gHt:"mmmm",pHt:"mmmmm",bHt:"d",yHt:"dd",wHt:"aaa",MHt:"aaaa",CHt:"h",SHt:"hh",THt:"m",AHt:"mm",IHt:"s",xHt:"ss",IGt:"e",NHt:"AM/PM",kHt:"A/P",DHt:"@mmmmm",_Ht:new Date(1899,11,30,0,0,0,0)},I=[m.hHt,m.fHt,m.cHt,m.dHt,m.vHt,m.mHt,m.gHt,m.pHt,m.bHt,m.yHt,m.wHt,m.MHt,m.CHt,m.SHt,m.THt,m.AHt,m.IHt,m.xHt,"ggg","gg","g","ee","e"],B="\u4e00\u5341",L="\u5341",c={EHt:0,jHt:1,OHt:2,_text:3},G=[{EHt:0,jHt:0,OHt:0,_text:0},{EHt:0,jHt:1,OHt:0,_text:0},{EHt:0,jHt:1,OHt:2,_text:0},{EHt:0,jHt:1,OHt:2,_text:3}],z=new RegExp("([.+?*$^\\[\\](){}|/])","g"),K=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["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"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss 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","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","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","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","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 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","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["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","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","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","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","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","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF 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","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF 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"]],J=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333"],V=new RegExp("color\\s*(\\d+)","i"),D=g.lt.dt,W=g.lt.Nh,y=R.st,U=y.gUt+"."+y.pUt,q=y.mUt,Y=y.L9t,X=y.E8,M=g.lt.ht,H=isNaN,N=function(t){return F.CultureManager.Fe(t)},u=function(t){return N(t).DateTimeFormat},k=function(t){return N(t).NumberFormat},h=function(t){return t&&t.toLowerCase()},Z=function(t){return t&&t.toUpperCase()},$=function(){throw new Error(f().Exp_FormatIllegal)},d=function(){return F.CultureManager.booleanMapping},S={oHt:"",I5:function(){for(var t,e,r,n,i,o,a,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return b;for(i=r[0],o=1;o<arguments.length;o++)a=new RegExp("\\{"+(o-1)+"\\}","gm"),i=i.replace(a,arguments[o]);return i},Ji:function(t){return!t||t===S.oHt}},tt=function(t){var t=t.charCodeAt(0);return 48<=t&&t<=57},et=function(t){var t=t.charCodeAt(0);return 9<=t&&t<=13||32===t||133===t||160===t},n.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=N(t.Iat)),t.RHt},n.prototype.currencySymbol=function(){return this.ZUt?p.zf.Vi(this.ZUt,"\\.",'"."'):S.oHt},n.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},n.prototype.toString=function(){return this.Jq?bt(this.Jq):S.oHt},n.Name="LocaleIDFormatPart",rt=n,i.prototype.format=function(t,e){return b},i.prototype.parse=function(t){return b},i.prototype.formatString=function(t){return this.formatCached},i.prototype.toJSON=function(){var t,e,t={};for(e in this)this.hasOwnProperty(e)&&(t[e]=this[e]);return t},i.prototype.fromJSON=function(t){if(t)for(var e in t)t[e]!==_&&(this[e]=t[e])},t.FormatterBase=r=i,lt.prototype.toString=function(){return bt(this.WUt+this.value.toString())},nt=lt,x.prototype.sHt=function(t,e,r){var n,i,o,a,u,s,f,y,c,m;if(!t||t===S.oHt)return t;for(u=!(a=o=-1),c=(i=n=t).length-1;0<=c;c--)m=i[c],!H(m)&&!T(m," ",!1)||T(m,".",!1)&&!u?(T(m,".",!1)&&(u=!0),-1===o&&(o=c),a=c):-1<a&&-1<o&&(s=A(i,a,o-a+1),f=parseFloat(s),H(f)||(y=x.numberString(s,e,r),n=p.zf.VP(n,a,o-a+1),n=p.zf.Eit(n,a,y)),u=!(a=o=-1));return-1<a&&-1<o&&(s=A(i,a,o-a+1),f=parseFloat(s),H(f)||(y=x.numberString(s,e,r),n=p.zf.VP(n,a,o-a+1),n=p.zf.Eit(n,a,y))),n},x.prototype.toString=function(){if(-1<this.type)return bt("DBNum"+this.type);throw new Error},x.numberString=function(t,e,r){var n,t,i,o,n=x.formatNumberString,t=t.split(".");if(t){if(1===t.length)return n(t[0],e.numbers,r?e.letters:b);if(2===t.length)return(i=n(t[0],e.numbers,r?e.letters:b))+"."+(o=n(t[1],e.numbers))}throw new Error(f().Exp_ValueIllegal)},x.formatNumberString=function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,n=t,i=0,a=0;if(2===arguments.length){for(u="";i<n.length;i++)o=A(n,i,1),u+=e[a=parseInt(o,10)];return u}if(3===arguments.length){if(!r)return x.formatNumberString(t,e);for(s=0,f="",y=n.length,c=!1,m=[];i<y;i++)-1<(M=r.length-1-i)?m.push(r[M].toString()):m.push(S.oHt);for(h=[],d=m.length-1;0<=d;d--)h[m.length-d-1]=m[d];for(m=h,l=!1,d=0;d<y;d++)o=A(n,d,1),a=parseInt(o,10),v=void 0,p=S.oHt,0<y-d-16?(v=e[a],l=!(p="")):d!==y-1&&d!==y-5&&d!==y-9&&d!==y-13?"0"===o?(p=v="",s+=1):s=(p=(v="0"!==o&&0!==s?e[0]+e[a]:e[a],m[d]),0):"0"!==o&&0!==s?(v=e[0]+e[a],p=m[d],s=0):"0"!==o&&0===s||l?(v=e[a],p=m[d],s=0,l=!1):("0"===o&&3<=s?p=v="":11<=y?v="":(v="",p=m[d]),s+=1),(g=v+p===S.oHt)||(c=!1),d!==y-13||c||(p=m[d],c=!0),d!==y-9||c||(p=m[d],c=!0),d===y-1&&(p=m[d],c=!0),f=f+v+p;return 0===(F=parseInt(t,10))?e[0]:f}},it=x,P.prototype.Hc=function(){var t,e,r,n,i,o,a,t=this,e={y4:t.pU},r;if(P.a0(e.y4)){if(n=t.BHt(e),i=u(this.cultureName).amDesignator&&u(this.cultureName).pmDesignator,t.hasJD=t.Vi(e.y4,m.pHt,'"'+m.DHt+'"',!0,!1,e,!1),t.Vi(e.y4,m.gHt,"MMMM",!0,!1,e,!1),t.Vi(e.y4,m.mHt,"MMM",!0,!1,e,!1),t.LHt(e.y4,e),t.Vi(e.y4,m.wHt,"ddd",!0,!0,e,!0),t.Vi(e.y4,m.MHt,"dddd",!0,!0,e,!0),n&&i||(t.Vi(e.y4,m.CHt,"H",!0,!0,e,!1),t.Vi(e.y4,m.SHt,"HH",!0,!0,e,!1)),t.aHt&&(t.j9t||N(t.cultureName).NumberFormat.dbNumber)&&(t.FHt=t.FHt||t.Vi(e.y4,m.cHt,'"@'+m.cHt+'"',!0,!1,e,!0),t.FHt=t.FHt||t.Vi(e.y4,m.fHt,'"@'+m.fHt+'"',!0,!1,e,!0)),t.KUt)for(o=0;o<t.KUt.length;o++)a=t.KUt[o],t.Vi(e.y4,a.Nat,"@"+a.Nat,!0,!0,e,!0);t.PHt=e.y4}else $()},P.prototype.formatString=function(){return this.pU},P.prototype.format=function(e){var t,r,n,i,o,a,u,s,f,y,c,t=this,r=S.oHt,n=b;try{if((n=(n=v.ct._DT(e))&&H(n.valueOf())?b:n)?e=n:r=e.toString(),n&&(r=v.ct.L9t(n,t.PHt,t.j9t&&t.j9t.cultureInfo()||N(t.cultureName),t.O9t),t.hasJD&&(i=N(t.cultureName).DateTimeFormat.monthNames[n.getMonth()],r=p.zf.Vi(r,m.DHt,A(i,0,1))),t.KUt))for(o=24*(v.ct.o0(n)-v.ct.o0(m._Ht))*60*60*1e3,a=0;a<t.KUt.length;a++)s=(u=t.KUt[a]).XUt(o),M(s)||(f=u.Nat.replace("[","\\[").replace("]","\\]"),y=u.Nat.replace("[","").replace("]",""),c=p.zf.B9t(s+"",y.length),r=p.zf.Vi(r,"@"+f,c))}catch(t){r=gt(e)}return Ot(r,e,t.j9t,t.aHt,t.cultureName)},P.prototype.parse=function(e){var t,e,r,r,n;if(!e||e===S.oHt)return b;if(t=this,"true"===(r=h(e=e)))return!0;if("false"===r)return!1;if(t.PHt&&(r=v.ct.nUt(e,t.PHt,N(t.cultureName))))return r;try{return(n=v.ct._DT(e))&&!H(n)?n:(n=new Date(e),H(n.valueOf())?e:n)}catch(t){return e}},P.prototype.QUt=function(t){for(var e,r,n,i,o,a,e=t,r="",n=!1,i=0;i<e.length;i++)'"'===(o=e[i])?n=!n:n||"Y"!==o&&"D"!==o&&"S"!==o&&"E"!==o&&"G"!==o&&("M"!==o||T("A",a=e[i-1],!0)||T("P",a,!0))||(o=h(o)),r+=o;return r},P.prototype.BHt=function(t){var e,r,n,i,o,a,e=u(this.cultureName).amDesignator,r=u(this.cultureName).pmDesignator,n=[m.NHt];for(n.push(e&&r?e+"/"+r:m.NHt),n.push(m.kHt),i=["tt","tt","t"],o=t.y4,a=0;a<3;a++){if(p.zf.OS(o,i[a]))return!0;if(p.zf.OS(o,n[a],!0))return t.y4=p.zf.Vi(o,n[a],i[a],!0),!0}return!1},P.prototype.LHt=function(t,e){for(var r,n,i,o,a,r=Rt(t),n=-1,i=-1,o=0;o<r.length;o++)"symbolic"===(a=r[o]).type?"m"===a.content[0].toLowerCase()?0<=n?(a.content=a.content.toLowerCase(),n=-1):(a.content=a.content.toUpperCase(),i=o):"s"===a.content[0].toLowerCase()?0<=i&&(r[i].content=r[i].content.toLowerCase(),i=-1):i=("h"===a.content[0].toLowerCase()&&(n=o),-1):"0"===a.content&&"."===r[o-1].content&&0<=i&&o===i+2&&(r[i].content=r[i].content.toLowerCase());e.y4=r.map(function(t){return t.content}).join("")},P.prototype.Vi=function(t,e,r,n,i,o,a){var u,s,f,y,c,m,M,h,d,l,v;if(n||i){for(u=[],s=!0,!P.hasDate(t)&&P.hasTime(t)&&(s=!1),f=!1,y=0;y<t.length;y++){if(c=t[y],P.hasTime(c)&&!f?s=!1:P.hasDate(c)&&!f&&(s=!0),n&&T(c,e[0],a)&&s||i&&T(c,e[0],a)&&!s){for(m=!0,M=0;M<e.length;M++)if(M+y>=t.length||!T(e[M],t[M+y],a)){m=!1;break}if(h=y+e.length-1,m&&1+h<t.length){for(d=t[h],l=-1,l=1+h;l<t.length&&T(d,t[l],a);l++);1+h<l&&(y=l,m=!1)}m&&!f&&u.splice(0,0,y)}'"'===c&&(f=!f)}if(o.y4=t,0<u.length){for(y=0;y<u.length;y++)o.y4=p.zf.VP(o.y4,v=u[y],e.length),o.y4=p.zf.Eit(o.y4,v,r);return!0}}return!1},P.hasTime=function(t){return-1<p.zf.hD(t,m.CHt[0],!0)||-1<p.zf.hD(t,m.IHt[0],!0)},P.hasDate=function(t){return-1<p.zf.hD(t,m.fHt[0],!0)||-1<p.zf.hD(t,m.bHt[0],!0)},P.a0=function(t,e){return $t(t,e||I)},ot=P,t.Hf=ot,vt.Name="ABSTimeFormatPart",at=vt,pt.prototype.toString=function(){return bt(this.foreColor)},pt.Name="ColorFormatPart",ut=pt,C.prototype.formatString=function(){return this.$Ut},C.prototype.format=function(t){var e,r,t,n,i,o,a,u,s,f,y,c,m,m,m,M,h,h,d,l,l,h;return D(t,"boolean")?t.toString().toUpperCase():(e=this,r=g.lt.uJ(t),H(r)||!isFinite(r)||H(t)?"string"==typeof t?t:b:(t=N(e.cultureName),e.eHt&&e.tHt?(f={value:0},y={value:0},c={value:0},m=e.GHt(),C.getFraction(r,m,f,y,c)?(1<(m=C.getGCD(y.value,c.value))&&(y.value/=m,c.value/=m),e.nHt?(s="",1===c.value&&(f.value+=y.value,y.value=0,c.value=0),(m=q(Y(f.value,e.nHt,t)))&&"0"!==m&&(s=s+m+" "),0===f.value&&r<0&&(s+=t.NumberFormat.negativeSign),0===r&&(s+="0"),i=e.tHt,o=parseFloat(i),!H(o)&&0<o&&(0!==y.value&&0!==c.value&&(y.value*=o/c.value),c.value=o,i=i.replace(/^\d+/,C.toNumberPlaceholder(o)),u=(a=Math.ceil(y.value))-y.value,y.value=u<=.5&&0<=u?parseFloat(a.toString()):parseFloat((a-1).toString())),M=e.eHt,h=parseFloat(M),H(h)||0!==h||(h=M.length,(l=(d=y.value.toString()).length)<h?M=M.substr(0,h-(h-l)):h<l&&(d=d.substr(0,l-(l-h)),y.value=parseInt(d,10))),l=e.UHt(y.value,c.value,M,i,t),0===y.value&&(l=l.replace(/./g," "),""===m)?"0 "+l:""===(s+=l)?"0":s):(s="",h=f.value*c.value+y.value,i=e.tHt,0<(o=parseFloat(i))?(h*=o/c.value,c.value=o,s+=(h=(u=(a=Math.ceil(h))-h)<=.5&&0<=u?parseFloat(a.toString()):parseFloat((a-1).toString()))+"/"+c.value):s+=e.UHt(h,c.value,e.eHt,e.tHt,t),0===h?"0":s)):r.toString()):jt(n=Y(r,e.iHt,t),e.qUt,e.j9t,e.aHt,e.cultureName)))},C.prototype.parse=function(t){var e,r,r,n,i,o,i,n,i,n,a,u,i,n,o,s,e=this;if(t&&t!==S.oHt){if("TRUE"===(r=Z(t))||r===d()&&d().boolean_true)return!0;if("FALSE"===r||r===d()&&d().boolean_false)return!1;if((r="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),n=e.eHt&&e.tHt,i=e.zHt(e.iHt).HHt,(n||i)&&(o=0,n&&e.nHt&&0<(i=(t=t.trim()).lastIndexOf(" "))&&i<t.length-1&&(o=parseInt(t.substr(0,i),10),t=t.substr(i+1)),0<(n=t.indexOf("/")))&&n<t.length-1&&(i=t.substr(0,n),n=t.substr(n+1),!(H(i)||H(n)||(a=parseInt(i,10),u=parseInt(n,10),H(a))||H(u)||0===u)))return o+a/u;if(t=e.VHt(t),t=e.YHt(t),n=(i=e.zHt(t)).HHt,o=i.$6t,e.ZHt(o)&&(o=p.zf.OUt(o,k(e.cultureName).numberGroupSeparator,"",!1),s=y.dUt(o,e.cultureName),!H(s))&&isFinite(s)){if(n&&(s=X(s/100,15)),r){if("-"===o.charAt(0)||"+"===o.charAt(0))return b;s=-1*w(s)}return s}}return b},C.prototype.GHt=function(){var t,e,r,n,i,t,e=this.tHt,r=0;if(e)for(n=e.length,i=0;i<n&&e[i].match(/[#?\d]/);i++)r++;return r},C.prototype.ZHt=function(t){for(var e,r,n,i,o,a,u,e="",r=0,n=0,i=0,o=b,a=k(this.cultureName),u=t.length-1;-1<u;u--){if(t[u]===a.numberDecimalSeparator)r++,0<i&&(o=!1),e="";else if("e"===h(t[u])){if(n++,e="",u===t.length-1)return!1}else if(t[u]===a.numberGroupSeparator)o=3===e.length,i++,e="";else if("-"===t[u]||"+"===t[u]){if(0<u&&"e"!==h(t[u-1]))return!1}else{if(!tt(t[u]))return!1;if(e+=t[u],0===u&&0===parseInt(e,10)&&o)return!1}if(1<r||1<n||!1===o)return!1}return!0},C.prototype.VHt=function(t){for(var e,r,n,t,i,o,a,a,u,e=t,r=[],n=0;n<e.length;n++)tt(e[n])&&r.push(n);for(i=[(t=k(this.cultureName)).currencyDecimalSeparator,t.currencyGroupSeparator,t.currencySymbol,s,t.nanSymbol,t.negativeInfinitySymbol,t.negativeSign,t.numberDecimalSeparator,t.numberGroupSeparator,t.percentDecimalSeparator,t.percentGroupSeparator,t.percentSymbol,t.perMilleSymbol,t.positiveInfinitySymbol,t.positiveSign],o=e.length-1;-1<o;o--)if(a=e[o],et(a)&&i.indexOf(a.toString())<=-1)(o<r[0]||r[r.length-1]<o)&&(e=p.zf.VP(e,o,1));else if(("-"===a||"+"===a)&&(a=0<o?e[o-1].toString():b,(u=["e","E","(",k(this.cultureName).currencySymbol,s]).indexOf(a)<0))break;return e},C.prototype.YHt=function(t){var e,r;if(p.zf.fJ(t,s)){if((e=p.zf.VP(t,0,1)).indexOf(s)<0)return e}else if(r=k(this.cultureName).currencySymbol,s!==r&&p.zf.fJ(t,r)&&(e=p.zf.VP(t,0,r.length)).indexOf(r)<0)return e;return t},C.prototype.zHt=function(t){var e,r,n,e=k(this.cultureName).percentSymbol,r=!0,n=t;return p.zf.fJ(t,e)?n=p.zf.VP(t,0,e.length):p.zf.dT(t,e)?n=p.zf.VP(t,t.length-e.length,e.length):r=!1,{$6t:n,HHt:r=p.zf.OS(n,e)?!1:r}},C.prototype.UHt=function(t,e,r,n,i){var o,a,u,s,i,o,o=q(Y(t,r,i)),a,u,s=q(Y("0."+e,"#."+n,i,!0)),i=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",o=o+"/"+s.substr(s.indexOf(i)+1);return""===r&&(o=t+o),""===n&&(o+=e),o},C.getGCD=function(t,e){var r,n,i;if(0===t)return w(e);if(0===e)return w(t);for(i=(r=Math.max(t,e))%(n=Math.min(t,e));0!==i;)i=(r=n)%(n=i);return w(n)},C.getFraction=function(t,e,r,n,i){var o,a,u,s,f,f,y,c,m,M,h,d,l,v,o=0,a=0,u=0,s=0,f=Math.ceil;for(0<t?o=1===(s=t-f(t)+1)?(s=0,t):f(t)-1:t<0&&(o=f(t),s=f(t)-t),f=Math.pow(10,e-1),(y=Math.pow(10,e)-1)<2&&(y=2),c=!1,m=0,M=f=f<2?2:f;M<=y&&(d=Math.round(h=M*s),v=w((l=d/M)-s),!((!c||v<w(m-s))&&(c=!0,m=l,a=d,u=M,v<1e-6)));M++);return r.value=o,n.value=a,i.value=u,c},C.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},st=C,o.rHt=function(t){for(var e,r,n,i,o,a,e="",r=!1,n=-1,i=t.length,o=0;o<i;o++)'"'===(a=t[o])?n=(r=!r)?o:-1:r||(e+=a);return 0<n&&(e+=t.substring(n,i)),!(0<=e.indexOf("0")||0<=e.indexOf("#")||0<=e.indexOf(".")||0<=e.indexOf("@"))},o.prototype.WHt=function(){var t,e,t=this;return t.QHt||(e=Dt(e=t.$Ut,"General",U),t.QHt=new st(e,t.j9t,t.aHt,t.cultureName),t.QHt.qUt=!0),t.QHt},o.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new st("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},o.prototype.formatString=function(){return p.zf.Vi(this.$Ut,"@NumberFormat","General")},o.prototype.format=function(t){var e,r,n,i,e=this;if(g.lt.q8(t,e.cultureName)){if(r=!e.j9t||e.j9t.allowScience(),(n=g.lt.uJ(t))!==_&&n!==b)return(99999999999<w(n)&&r||w(n)<1e-11&&0!==n?e.KHt():e.WHt()).format(t)}else{if(D(t,"string"))return i=Ht(i=p.zf.Vi(e.formatString(),'"',"")),t;if(D(t,"boolean"))return t.toString().toUpperCase()}return""},o.prototype.parse=function(t){var e,r,n,n,i,o,a,u,i,s,f,o,e,y,c;if(S.Ji(t))return b;if("number"==typeof t)return t;if(e=!1,r=t.trim(),0<(n=p.zf.hD(r,"-",!1))&&!T(r.charAt(n-1),"E",!0)&&(e=!0),o=(i=(n=N(this.cultureName)).DateTimeFormat).dateSeparator,a=i.timeSeparator,u=i.monthNames,i=i.abbreviatedMonthNames,s=function(t,e){var r,n,i;if(!e||0===e.length)return!1;for(r=!1,n=0,i=e.length;n<i;n++)if(p.zf.OS(t,e[n],!0)){r=!0;break}return r},(e||p.zf.OS(r,o,!1)||p.zf.OS(r,a,!1)||p.zf.OS(r,"/",!1)||p.zf.OS(r,":",!1)||p.zf.OS(r,"-",!1)||p.zf.OS(r,"\u5e74",!1)||p.zf.OS(r,"\u6708",!1)||p.zf.OS(r,"\u65e5",!1)||s(r,u)||s(r,i)||"ja-JP"===n.name()&&0<=F.XPt.gGt.indexOf(r[0].toUpperCase())&&p.zf.OS(r,".",!1))&&(f=v.ct.yU(r)))return f;if((e="-"===r.charAt(0))||"+"===r.charAt(0)){if("("===(r=p.zf.VP(r,0,1)).charAt(0)&&")"===r.charAt(r.length-1))return t}else if("("===r.charAt(0)&&")"===r.charAt(r.length-1)&&(y=!0,"-"===(r=(r=r.substring(1,r.length-1)).trim()).charAt(0)||"+"===r.charAt(0)))return t;return(o=this.WHt().parse(r))===b||o===_||(c=y&&D(o,"boolean"))?t:(y||e)&&D(o,"number")?-1*w(o):o},ft=o,a.prototype.format=function(t,e){var r,n,i,o,r=this;try{return i=n=void 0,i=t instanceof Date?v.ct.o0(t).toString():gt(t),o=r.XHt(r.pU),n=r.qHt(i,o.formatTokens,t,o.hasAtPart,e)}catch(t){return""}},a.prototype.parse=function(t){return t||""},a.prototype.formatString=function(){return this.pU},a.prototype.XHt=function(t){for(var e,r,n,i,o,a,u,e=[],r=!1,n="",i=!1,a=b,u=0;u<t.length;u++)o=t.charAt(u),i?('"'!==o?n+=o:(e.push(n+=o),n="",i=!1),a=o):"*"!==a&&"_"!==a&&"\\"!==a||""===n?"*"===o||"_"===o||"\\"===o?(a=o,""!==n&&(e.push(n),n=""),n+=o):"@"===o?(a=o,""!==n&&(e.push(n),n=""),e.push(o),r=!0):'"'===o?(a=o,""!==n&&e.push(n),n=o,i=!0):(n+=o,a=o):(e.push(n+=o),n="");return""!==n&&e.push(n),{formatTokens:e,hasAtPart:r}},a.prototype.qHt=function(t,e,r,n,i){var o,a,u,s,o=[],a=!1;if("string"!=typeof r||n||i)for(u=e.length-1;0<=u;u--)"*"===(s=e[u])[0]?a||(a=!0,o.push({type:"fillingChar",value:s[1]})):"_"===s[0]?o.push({type:"placeholder",value:s[1]}):'"'===s[0]&&'"'===s[s.length-1]?2<=s.length&&o.push({type:"text",value:s.substr(1,s.length-2)}):"\\@"===s?o.push({type:"text",value:"@"}):"@"===s[0]?o.push({type:"text",value:t}):o.push({type:"text",value:s});else o.push({type:"text",value:r});return o.reverse()},yt=a,ct=function(){return{pattern:K,formatter:["d-mmm","mmm-yy",u().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",u().shortDatePattern+" h:mm",u().shortDatePattern+" h:mm:ss",u().shortDatePattern+" h:mm:ss.0"]}},O.prototype.Hc=function(t,e){var r,n,i,o,a,u,s,f,y,c,m,M,M,h,d,l,d;for(t!==b&&t!==_||$(),(n=this).formatCached=r=t,o=i="",s=u=a=!1,f=[],y=0;y<t.length;y++)'"'===(c=t[y])?(u=!u,o+=c):u?o+=c:"["===c?(a&&$(),o&&(i=i||"",i+=o),o=c.toString(),a=!0):"]"===c?(a||$(),o?(m=(o+=c).toString(),(M=Pt(o.toString()))?"ABSTimeFormatPart"===M.Name?(f.push(new M(O.preProcessPart(m),m)),i+=o):m===F.XPt.eraExcelFormatter?(n.addPart(M,F.XPt.eraInternalFormatter),s=!0):n.addPart(M,m):(i+=M=O.partToNormalStr(m),r=Dt(t,m,M)),o=""):$(),a=!1):o+=c;o?a?$():i+=o:i=i||n.$Ht(),n.localeIDFormatPart&&(e=n.localeIDFormatPart.cultureInfo().name()),l=(d=Ct(i,h=n.conditionalFormatPart)).uit,d=d.uHt?r:i,l?n.E9t=new l(d,n.localeIDFormatPart,n.dbNumberFormatPart,e,0<f.length?f:b,s):$()},O.prototype.$Ht=function(){var e,t,r,e=this,t="";return t=e.dbNumberFormatPart&&!(r=O.proNames.some(function(t){return"dbNumberFormatPart"!==t&&e[t]}))?"General":t},O.prototype.formatString=function(){for(var t,e,r,n,i,t=this,e="",r=0,n=O.proNames.length;r<n;r++)t[i=O.proNames[r]]&&(e+=t[i].toString());return e+=t.E9t.formatString()},O.prototype.addPart=function(t,e){for(var r,n,i,o,a,u,r=this,n=O.proNames,i=O.preProcessPart(e),o=0,a=n.length;o<a;o++)if(T(u=n[o],t.Name,!0)){if(r[u])throw new Error(f().Exp_DuplicatedDescriptor);r[u]=new t(i,e)}},O.prototype.format=function(t,e){return this.E9t.format(t,e)},O.prototype.parse=function(t){return this.E9t.parse(t)},O.checkFormatter=function(t){if(!t||t===S.oHt)throw new Error(f().Exp_TokenIllegal)},O.preProcessPart=function(t){O.checkFormatter(t);var t=wt(t);return O.checkFormatter(t),t},O.partToNormalStr=function(t){var t=O.preProcessPart(t);return'"'+(t=t[0]===s?t.slice(1):t)+'"'},O.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],mt=O,E(j,dt=r),j.prototype.toJSON=function(){var t,e,t=this,e={formatCached:t.formatCached};return t.cultureName&&(e.customerCultureName=t.cultureName),"general"===h(t.formatCached)&&delete e.formatCached,e},j.prototype.hasFormattedColor=function(){var t,e,r,t=this;for(e in c)if(c.hasOwnProperty(e)&&(r=t.getFormatter(c[e]))&&r.colorFormatPart)return!0;return!1},j.prototype.formatString=function(t){var e,r,n,i,o,e=this;if(0===arguments.length){for(r=S.oHt,n=0,i=e.formatters.length;n<i;n++)r+=(o=e.formatters[n]).formatString(),n!==i-1&&(r+=";");return r}if(t)return e.formatters=b,e.formatCached=t,e.init(),e.tzt("formatString"),e;throw new Error(f().Exp_ValueIsNull)},j.prototype.getFormatter=function(t){var e=this;return e.formatters&&e.formatters[t]},j.prototype.getPreferredEditingFormatter=function(t){var e,r,n,i,e,r,r=u(this.cultureName),n=k(this.cultureName),i=j.defFormatter;return D(t,"TimeSpan")?i(r.longTimePattern):D(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",i(r.shortDatePattern+e)):g.lt.q8(t,this.cultureName)?1e21<=(r=g.lt.uJ(t))||r<=1e-17&&0<r||r<=-1e21||r<0&&-1e-17<=r?i(null!=(e=n.scientificNotation)?e:"0.##############E+00"):i(U):i("General")},j.prototype.getPreferredDisplayFormatter=function(t,e){var r,n,e,i,o,a,u,o,s,f,f,s,f,y,c,m,M,M,s,o,f,r,s,h,d,l,f,r=this,n=j.defFormatter;if((e=e||{value:b}).value=b,S.Ji(t))return new j;if(i=e.value=r.parse(e=t),D(i,"DateTime")||D(i,"TimeSpan")){for(a=(o=ct()).pattern,u=o.formatter,0<(f=(s=(o=N(r.cultureName)).DateTimeFormat).preselectedFormatters).length&&(a=a.concat([f]),u=u.concat([f[0]])),"ja-JP"===o.name()&&(a=a.concat([s.eraFormatter]),u=u.concat(["ge.M.d"]),f=o.QPt.filter(function(t){return"ggge"===t.substr(0,4)}),a=a.concat([f]),u=u.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),s=o.QPt.filter(function(t){return"gge"===t.substr(0,3)}),a=a.concat([s]),u=u.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),f=o.QPt.filter(function(t){return"ge"===t.substr(0,2)}),a=a.concat([f]),u=u.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),y=0;y<a.length;y++)for(c=a[y],m=0;m<c.length;m++)if(M=c[m],(M=v.ct.yU(t,M))&&M-i==0)return new j(u[y])}else if(g.lt.q8(i,r.cultureName)){if(o=(s=k(r.cultureName)).currencySymbol,f=s.numberDecimalSeparator,r=s.percentSymbol,s=s.numberGroupSeparator,h="E",f=(l=(d=p.zf.OS)(e,f))?".00":"",e[0]===o)return n(S.I5("{0}#,##0{1};[Red]({0}#,##0{1})",o,f));if(d(e,h,!0))return n("0.00E+00");if(e[0].toString()===r||e[e.length-1].toString()===r)return n(S.I5("0{0}%",f));if(d(e,s))return n(S.I5("#,##0{0}",f))}return n("General")},j.prototype.format=function(e,t){var r,n,i,o,n,a,u;if(D(e,"boolean"))return(e=d()?e?d().boolean_true:d().boolean_false:e).toString().toUpperCase();if(i=0,o=(r=this).vn(e)){n=o.colorFormatPart,t&&n&&(t.conditionalForeColor=t.value=n.foreColor),(n=g.lt.q8(e,r.cultureName))&&(i=g.lt.uJ(e)),a=S.oHt;try{n&&o===r.getFormatter(c.jHt)&&0!==this.expressionNumber?(a=o.format(o.considerNegSymbol?i:w(i)))===b&&D(e,"string")&&(a=e):(a=o.value)===_&&(u=!r.lHt&&o===r.getFormatter(c._text),a=o.format(e,n||u)),t&&(t.content=W(a)?a:[{type:"text",value:a}]),W(a)&&(a=y.mUt(a))}catch(t){D(e,"string")&&(a=e.toString())}return a}return n&&i<0?"-".toString():!D(e,"string")&&(e===_||e===b)?S.oHt:e.toString()},j.prototype.parse=function(t){var e=this;return e.formatters&&0<e.formatters.length?e.formatters[0].parse(t):b},j.prototype.init=function(){var t,e,r,n,i,t=this,e=t.formatCached;for(S.Ji(e)&&$(),t.formatters=[],r=Et(e),t.lHt=1===r.length,(!r||r.length<1||4<r.length)&&$(),n=0;n<r.length;n++)-1!==r[n].indexOf("@")&&-1===r[n].indexOf("\\@")&&(n!==r.length-1?$():this.hasAt=!0),i=new mt(r[n],t.cultureName),t.formatters.push(i);t.getFormatter(c.EHt)||$(),this.nzt()},j.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;c=g.lt.Dh({},G[t]),this.hasAt&&0!==this.expressionNumber&&(c._text=this.formatters.length-1)},j.prototype.vn=function(t){var e,r,n,i,i,o,t,a,u,s,f,y,e=this;if(e.nzt(),n=(r=e.getFormatter(c.EHt))&&r.conditionalFormatPart,i=e.getFormatter(c._text),n&&(c.OHt=2,this.hasAt||(c._text=3)),"string"==typeof t&&H(t))return i||(n?t:r);if(g.lt.q8(t,e.cultureName)||D(t,"boolean")){if(i=e.getFormatter(c.jHt),o=e.getFormatter(c.OHt),t=g.lt.uJ(t),a=n&&r.conditionalFormatPart.isMeetCondition(t),s=(u=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(t),f=void 0,e.lHt||(n?a:0<t||0===t&&!o))f=r;else if(u?s:t<0)f=i;else if(o)f=o;else if(i){if(n&&u)return{value:y=t+""};f=i}return f&&(!n||u||f!==i||o||(f.considerNegSymbol=!0),n&&u&&f===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(f.considerNegSymbol=!0),this.expressionNumber<=1)&&(f.considerNegSymbol=!0),f}return b},j.prototype.tzt=function(t){var e,r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},j.defFormatter=function(t){var e=j[t];return e||(e=new j(t),j[t]=e),e},t.GeneralFormatter=j},"./src/plugins/slicer/slicer.entry.ts":function(t,e,r){var n,i,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./src/plugins/slicer/slicer.ts"),e)},"./src/plugins/slicer/slicer.ts":function(t,e,r){var r,$,S,a,i,o,n,u,s,x,f,r,r;function v(t){return"object"==typeof t&&t!==S&&t.text!==$}function y(){}function c(t,e){var r,n,t;if(t!==S&&t!==$){if(N(t)===a)e.value=t;else if(N(t)===o)e.value=t?1:0;else if(t instanceof Date)e.value=x.o0(t);else{if(N(t)!==i)return;if(0===P(t=t.trim()))return;if(r=!1,"%"===t.charAt(P(t)-1)&&(r=!0,t=t.substr(0,P(t)-1)),2<=P(t)&&"0"===t[0]&&"x"===t[1])return;if(n=Number(t).valueOf(),isNaN(n)||!isFinite(n)){if(t=new Date(t),isNaN(t))return;n=x.o0(t)}r&&(n/=100),e.value=n}return 1}}function p(t){var e,r,n,i,o,a,u,s,f,y,c,m,M,h,d,l,e=t.ezt;for(e||(t.izt=[],t.rzt=[]),r=e?t.ozt:t.izt,n=t.azt,i=t.uzt,o=e?t.szt:t.rzt,a=t.Mct,u=t.czt,s=t.fzt,f=P(t.data),c={},m=0;m<f;m++){for(M=!1,h=void 0,d=0;d<P(a)&&(h=a[d],e&&h===t.lzt||(i[h]?(H(c[l=t.columnNames[h]])&&(c[l]=t.getColumnIndex(l)),y=t.fue(c[l],m),M=!i[h][y]):n[h]&&(M=!n[h][m]),!M));d++);!M&&e&&(u?(H(c[l=t.columnNames[h]])&&(c[l]=t.getColumnIndex(l)),M=!u[y=t.fue(c[l],m)]):s&&(M=!s[m])),M||(r[m]=!0)}for(d=0;d<P(r);d++)r[d]&&o.push(d)}function h(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?x.o0(t):t}function m(t){var e,r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<P(r);n++)e[(r[n]+"").toUpperCase()]=n}function g(t,e){var r,n,i,o,a,u,s,f,y,c,c,m,m,M,r=t.dzt,n=t.vzt,i=t.pzt,o=t.mzt,a=t.gzt,u=t.data,s=a[e]=[];for(t.bzt=[],r[e]=[],n[e]=[],i[e]={},o[e]=[],f={},y=0;y<P(u);y++)c=v(c=u[y][e])?c.text.trim():c,r[e].push(c),(m=f[h(c)])?(m.list.push(y),s[y]=m.index):(m=[y],n[e].push(c),o[e].push(m),M=P(o[e])-1,i[e][c]=M,s[y]=M,f[h(c)]={list:m,index:M})}function M(t,e,r){var n,i,o,a,u,s,f,y,c,c,m,M,h,d,l,n=t.yzt,i=t.getColumnIndex(e),o=[];if(i&&(a=t.ezt?t.wzt:t.Mzt[i],u=t.izt,a)){for(n[i]||t.Czt(i),s=[],f=n[i],y=0;y<P(f);y++)c=v(c=t.data[y][i])?c.value:c,s[f[y]]=c;for(m=t.Szt[i],y=0;y<P(a);y++){for(M=a[y],h=!1,l=(d=t.Tzt(s,M)).start;l<=d.end;l++)if(u[m[l]]){h=!0;break}h!==r&&o.push(M)}}return o}function d(t,e){var r,n,i,o,a,u,r=[],n=t.getColumnIndex(e);if(0<=n){for(i=P(t.getData(e)),o=t.ezt?t.ozt:t.izt,a=0;a<i;a++)o[a]||(u=t.fue(n,a),-1===r.indexOf(u)&&r.push(u));return r}}function l(t,e){var r,n,i,o,a,u,s,f,y,c,r=[],n={},i=t.getColumnIndex(e);if(0<=i)for(o=t.czt||t.fzt,a=t.uzt[i]||t.azt[i],u=t.ezt&&i===t.lzt?o:a,f=P((s=!!t.azt[i])?t.getData(e):t.getExclusiveData(e)),y=0;y<f;y++)!u||u[y]||n[c=s?t.fue(i,y):y]||(n[c]=!0,r.push(c));return r}function F(t,e){for(var r,n,i,o,a,u,s,f,y,c,m,M,r={},n=t.columnNames,o=P(n),i=0;i<o;i++)if(n[i]!==e)for(a=l(t,n[i]),u=0;u<P(a);u++)for(s=t.getRowIndexes(n[i],a[u]),f=0;f<P(s);f++)r[s[f]]||(r[s[f]]=!0);for(y={},o=P(t.data),i=0;i<o;i++)c=t.getExclusiveRowIndex(e,i),r[i]||(y[c]=!0);for(m=P(t.getExclusiveData(e)),M=[],i=0;i<m;i++)y[i]||M.push(i);return M}function b(t,e,r,n){var i,e,o,a,u,s,s,f,y,c,i=t.getColumnIndex(e),e=t.yzt;for(e[i]||t.Czt(i),o=[],a=e[i],u=0;u<P(a);u++)s=v(s=t.data[u][i])?s.value:s,o[a[u]]=s;for(f=[],u=0;u<P(r);u++)for(y=t.Tzt(o,r[u]),c=0;c<P(a);c++)a[c]>=y.start&&a[c]<=y.end&&(f[c]=!0);n?(t.fzt=f,t.wzt=r):(t.Mzt[i]=r,t.azt[i]=f,delete t.uzt[i],delete t.Azt[i]),p(t)}function _(t,e,r,n){for(var e,i,o,e=t.getColumnIndex(e),i=[],o=0;o<P(r);o++)i[r[o]]=!0;n?t.czt=i:(t.uzt[e]=i,t.Azt[e]=r,delete t.Mzt[e],delete t.azt[e]),p(t)}function w(t,e){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],e&&t.onFiltered()}function D(t,e){var r,n,r=this;for(r.hzt={},r.dzt=[],r.vzt=[],r.pzt=[],r.mzt=[],r.gzt=[],r.uzt=[],r.Azt=[],r.azt=[],r.Mzt=[],r.izt=[],r.rzt=[],r.Mct=[],r.szt=[],r.ozt=[],r.ezt=!1,r.aT=[],r.Upt=0,r.bzt=[],r.Szt=[],r.yzt=[],r.lue=0,r.Izt(t,e),n=0;n<P(r.data);n++)r.izt[n]=!0,r.rzt.push(n)}function H(t){return t===$||t===S}function N(t){return typeof t}function P(t){return t?t.length:0}Object.defineProperty(e,"__esModule",{value:!0}),e.GeneralSlicerData=e.xzt=e.SlicerAggregateType=e.FilteredOutDataType=void 0,r=r("./src/common/util/datetimehelper.ts"),$=void 0,S=null,a="number",i="string",o="boolean",n=r.ct.o0,(r=u=e.FilteredOutDataType||(e.FilteredOutDataType={}))[r.all=0]="all",r[r.byCurrentColumn=1]="byCurrentColumn",r[r.byOtherColumns=2]="byOtherColumns",(r=s=e.SlicerAggregateType||(e.SlicerAggregateType={}))[r.average=1]="average",r[r.count=2]="count",r[r.counta=3]="counta",r[r.max=4]="max",r[r.min=5]="min",r[r.product=6]="product",r[r.stdev=7]="stdev",r[r.stdevp=8]="stdevp",r[r.sum=9]="sum",r[r.vars=10]="vars",r[r.varp=11]="varp",y.o0=function(t){return n(t)},y.quickSort=function(t){for(var e,r,n,e=P(t),r=[],n=0;n<e;n++)r[n]={index:n,value:t[n]};return y.quickSortImp(r)},y.quickSortImp=function(t){var e,r,n,i,o,a,u,s,f,e=t.length;if(e<=1)return t;for(r=y,i=t[n=Math.floor(e*Math.random())],o=[],a=[],u=[],s=0;s<e;s++)(n===s?u:(f=r.sortCompare(t[s].value,i.value))<0?o:0<f?a:u).push(t[s]);return r.quickSortImp(o).concat(u,r.quickSortImp(a))},y.isEquals=function(t,e){return!(!H(t)&&""!==t||!H(e)&&""!==e)||(t instanceof Date&&e instanceof Date?t.valueOf()===e.valueOf():N(t)===i&&N(e)===i?t.toLowerCase()===e.toLowerCase():t===e)},y.isGreaterThan=function(t,e){var r=N(t),n=N(e);return r===o?t=t?1:0:t instanceof Date&&(t=y.o0(t)),n===o?e=e?1:0:e instanceof Date&&(e=y.o0(e)),r===n||r!==a&&n!==a?r===i&&n===i?t.toLowerCase()>e.toLowerCase():e<t:n===a},y.sortCompare=function(t,e){var r,n,i,o,r=y,n=-1,i=H(t)||""===t||N(t)===a&&isNaN(t),o=H(e)||""===e||N(e)===a&&isNaN(e);return i&&o?n=0:i?n=1:o?n=-1:r.isEquals(t,e)?n=0:r.isGreaterThan(t,e)&&(n=1),n},x=y,e.xzt=x,D.prototype.inPreview=function(){return this.ezt},D.prototype.Izt=function(t,e){var r=this;r.data=t,r.columnNames=e,m(r)},D.prototype.vue=function(t){var e=this;e.mue&&0===e.lue&&(e.Nzt("onDataChanged",t),e.mue=!1)},D.prototype.gue=function(){this.lue++},D.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},D.prototype.onDataChanged=function(t){for(var e,r,n,i,o,a,u,s,f,y,c,f,c,y,m,M,h,d,e=this,r=new Array(P(e.columnNames)),n=e.Azt,i=e.vzt,o=e.uzt,a=e.dzt,s={},u=0;u<P(t);u++)y=(f=t[u]).data,c=f.columnName,f=f.row,H(s[c])&&(s[c]=e.getColumnIndex(c)),c=s[c],f>=e.data.length&&e.onRowsAdded(f,1,!1),y=v(e.data[f][c]=y)?y.text:y,a[c]&&(a[c][f]=y),r[c]=!0;for(m=0;m<P(r);m++)if(r[m]){for(M=n[m],n[m]=M?[]:void 0,o[m]=M?[]:void 0,h=[],u=0;M&&u<P(M);u++)h.push(i[m][M[u]]);for(g(e,m),u=0;u<P(h);u++)d=e.pzt[m][h[u]],n[m].push(d),o[m][d]=!0}p(e),e.mue=!0,e.vue(t)},D.prototype.Nzt=function(t){for(var e,r,n,i,o,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];for(n=this.aT||[],i=0;i<P(n);i++)(o=n[i])[t]&&o[t].apply(o,e)},D.prototype.onColumnNameChanged=function(t,e){var r,n,i,r=this,n=r.hzt,i=r.getColumnIndex(t);i<0||(r.columnNames[i]=e,delete n[t.toUpperCase()],n[e.toUpperCase()]=i,r.Nzt("onColumnNameChanged",t,e))},D.prototype.onRowsAdded=function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,b,_,w,D,H,N,k,n=this,i=P(n.columnNames),o=n.data,a=n.dzt,u=n.vzt,s=n.mzt,f=n.gzt,y=n.uzt,c=n.Azt,m=n.izt,M=n.rzt,h=n.Mct;for(n.bzt=[],d=0;d<e;d++)o.splice(t,0,new Array(i));for(l=0;l<i;l++){for(d=0;d<e;d++)a[l]&&a[l].splice(t,0,$);if(g=void 0,p=u[l]){for(F=S,b=0;b<P(p);b++){for(_=s[l][b],w=0;w<P(_);w++)_[w]>=t&&(_[w]+=e);x.isEquals(p[b],S)&&(F=_,g=b)}for(F||(F=[],p.push(S),g=P(p)-1,n.pzt[l][S]=g,s[l].push(F),y[l]&&-1===h.indexOf(l)&&(y[l][g]=!0,c[l].push(g))),D=t;D<t+e;D++)F.push(D);for(v=t;v<t+e;v++)f[l].splice(v,0,g)}}for(H=!0,d=0;d<P(h);d++)N=f[l=h[d]][t],!0!==y[l][N]&&(H=!1);for(d=0;d<P(M);d++)M[d]>=t&&(M[d]+=e);for(v=P(o)-1;t+e<=v;v--)m[v]=m[v-e];for(k=0<P(h),v=t;v<t+e;v++)H&&M.push(v),m[v]=!k;r||n.Nzt("onRowsChanged",t,e,!0)},D.prototype.onRowsRemoved=function(t,e){this.kzt(t,e,!0)},D.prototype.kzt=function(t,e,r){var n,i,o,a,u,s,f,y,c,m,M,h,d,l,v,n=this,i=n.Azt,o=n.vzt,a=n.uzt,u=n.data,s=P(n.columnNames),f=n.dzt;for(u.splice(t,e),c=0;c<s;c++){if(f[c]&&f[c].splice(t,e),M=[],(m=i[c])&&r){for(y=0;y<P(m);y++){for(h=n.getRowIndexes(n.columnNames[c],m[y]),d=!0,l=0;l<P(h);l++)if(h[l]<t||h[l]>=t+e){d=!1;break}d||M.push(o[c][m[y]])}i[c]=[],a[c]=[]}if(g(n,c),m&&r)for(y=0;y<P(M);y++)v=n.pzt[c][M[y]],i[c].push(v),a[c][v]=!0}r&&p(n),n.Nzt("onRowsChanged",t,e,!1)},D.prototype.onColumnsRemoved=function(t,e){for(var r,n,i,o,a,u,s,f,y,c,m,M,h,r=this,n=r.data,i=[],o=r.Mct,a=t+e,u=t;u<a;u++)(s=r.columnNames[u])&&(f=u,i.push(s),-1!==o.indexOf(f))&&r.doUnfilter(s);for(y=r.uzt||r.azt,c=r.Azt||r.Mzt,m=r.hzt,u=0;u<P(n);u++)n[u].splice(t,e);for(M in r.bzt=[],r.columnNames.splice(t,e),r.dzt.splice(t,e),r.vzt.splice(t,e),r.pzt.splice(t,e),r.mzt.splice(t,e),r.gzt.splice(t,e),y.splice(t,e),c.splice(t,e),m)m[M]>=t+e&&(m[M]-=e);for(u=0;u<P(i);u++)delete m[(s=i[u]).toUpperCase()],t=r.getColumnIndex(s),-1!==(h=o.indexOf(t))&&o.splice(h,1),r.Nzt("onColumnRemoved",i[u])},D.prototype.Dzt=function(){return this.bzt},D.prototype._zt=function(){return this.Szt},D.prototype.Czt=function(t){var e,r,n,i,o,a,a,u,s,f,y,c,m,e=this,r=e.data;for(e.dzt[t]||g(e,t),n=P(r),i=[],o=0;o<n;o++)a=v(a=r[o][t])?a.value:a,i.push(a);for(u=x.quickSort(i),s=e.bzt[t]=[],f=e.Szt[t]=[],y=e.yzt[t]=[],c=0;c<P(u);c++)m=u[c],s.push(m.value),f.push(m.index),y[m.index]=c},D.prototype.getColumnIndex=function(t){var t=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===t?-1:t},D.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},D.prototype.getFilteredOutRowIndexes=function(){for(var t,e,r,n,i,t=this,e=P(t.data),r=t.ezt?t.ozt:t.izt,n=[],i=0;i<e;i++)r[i]||n.push(i);return n},D.prototype.getData=function(t,e){var r,n,i,o,t,t,e,a,u,s,r=this,n=r.dzt,i=r.getColumnIndex(t);if(0<=i){if(e){for(r.bzt[i]||r.Czt(i),o=n[i],t=r.bzt[i],e=(t=r.Tzt(t,e)).start,a=t.end,u=[],s=e;s<=a;s++)u.push(o[r.Szt[i][s]]);return u}return n[i]||g(r,i),n[i]}return[]},D.prototype.aggregateData=function(t,e,r){var n,t,i,r,t,o,r,o,n,t,i,n=this,t=n.getColumnIndex(t);return t<0?$:(n.bzt[t]||n.Czt(t),o=P(t=n.bzt[t]),i=(r=n.Tzt(t,r)).start,r=r.end,5===e?o<=i?$:t[i]:4===e?r<0?$:t[r]:3===e?r<i?0:r-i+1:(n=(o=n.Ezt(t,e,i,r)).data1,t=o.data2,i=o.data3,1===e?n/=t:7===e||10===e?(n=(i*t-n*n)/(i*(i-1)),n=7===e?Math.sqrt(n):n):8!==e&&11!==e||(n=(i*t-n*n)/(i*i),n=8===e?Math.sqrt(n):n),n))},D.prototype.Ezt=function(t,e,r,n){for(var i,o,a,u,s,f,i=6===e?1:0,o=0,a=0,u=r;u<=n;u++)(s=t[u])===S&&s===$||c(s,f={value:S})&&(s=f.value,1===e?(i+=s,o++):2===e?i++:9===e?i+=s:6===e?i*=s:7!==e&&8!==e&&10!==e&&11!==e||(i+=s,o+=s*s,a++));return{data1:i,data2:o,data3:a}},D.prototype.Tzt=function(t,e){var r=P(t),n,i,o,a;if(e){if(e.min===-1/0)n=0;else for(o=0;o<r;o++)if(a=t[o],x.isEquals(e.min,a)||x.isGreaterThan(a,e.min)){n=o;break}if(n===$&&(n=r),i===1/0)i=r-1;else{for(o=r-1;0<=o;o--)if(a=t[o],x.isEquals(a,e.max)||x.isGreaterThan(e.max,a)){i=o;break}i===$&&(i=-1)}}else n=0,i=r-1;return{start:n,end:i}},D.prototype.getExclusiveData=function(t){var e=this,r=e.vzt,t=e.getColumnIndex(t);return 0<=t?(r[t]||g(e,t),r[t]):[]},D.prototype.getRowIndexes=function(t,e){var r=this,t=r.getColumnIndex(t);return 0<=t?(r.gzt[t]||g(r,t),r.mzt[t][e]):[]},D.prototype.getExclusiveRowIndex=function(t,e){var r=this,t=r.getColumnIndex(t);return r.fue(t,e)},D.prototype.fue=function(t,e){var r=this,n=r.gzt;return 0<=t?(n[t]||g(r,t),n[t][e]):-1},D.prototype.getFilteredIndexes=function(t){var e=[],r;return this.jzt(t,e,{}),e},D.prototype.jzt=function(t,e,r){for(var n,i,o,a,u,u,n=this,i=n.ezt?n.szt:n.rzt,o=n.getColumnIndex(t),a=0;a<P(i);a++)u=i[a],H(u=n.fue(o,u))||(r[u]?r[u]++:(r[u]=1,e.push(u)))},D.prototype.getFilteredRanges=function(t){return M(this,t,!1)},D.prototype.getFilteredOutRanges=function(t){return M(this,t,!0)},D.prototype.getFilteredOutIndexes=function(t,e){var r=this;return(0===e?d:1===e?l:F)(r,t)},D.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},D.prototype.detachListener=function(t){for(var e,r,e=this.aT||[],r=0;r<P(e);r++)if(e[r]===t){e.splice(r,1);break}},D.prototype.suspendFilteredEvents=function(){this.Upt++},D.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},D.prototype.doFilter=function(t,e,r){this.Ozt(t,e,r),this.onFiltered()},D.prototype.Ozt=function(t,e,r){var n,i,o,n=this,i=n.Mct,o=n.getColumnIndex(t);o<0||(r?(n.ezt=!0,n.lzt=o):n.ezt&&w(n,!1),i.indexOf(o)<0&&i.push(o),e.ranges?b(n,t,e.ranges,r):_(n,t,e.exclusiveRowIndexes,r))},D.prototype.clearPreview=function(){w(this,!0)},D.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},D.prototype.Rzt=function(t){var e,t,t,e=this;e.ezt&&w(e,!1),(t=e.getColumnIndex(t))<0||(delete e.Mzt[t],delete e.azt[t],delete e.uzt[t],delete e.Azt[t],p(e),0<=(t=e.Mct.indexOf(t))&&e.Mct.splice(t,1))},D.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},D.prototype.getListener=function(){return this.aT},e.GeneralSlicerData=D},"./src/plugins/sparkline/sparkline.entry.ts":function(t,e,r){var n,i,n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&("get"in i?e.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r("./src/plugins/sparkline/sparkline.ts"),e)},"./src/plugins/sparkline/sparkline.ts":function(e,c,r){var n,i,m,M,nt,q,h,d,it,R,T,et,x,N,ot,at,rt,P,z,ut,K,j,st,ft,yt,ct,o,pt,mt,gt,Mt,k,V,J,Y,$,X,l,I,B,L,Z,Q,tt,C,Ft,bt,_t,wt,A,O,E,Dt,Ht,Nt,a,w,kt,$t,v,p,g,F,b,St,D,xt,Pt,Ct,At,Tt,Ot,jt,_,u,s,f;function Et(t){this.x=t.x,this.y=t.y}function Rt(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}function H(t,e){return{x:t,y:e}}function It(t,e,r,n){return{x:t,y:e,width:r,height:n}}function Bt(t,e){for(var r,n,i,o,a,r=t[0],n=r&&r.value?r.value:r,o=1,a=t.length;o<a;o++)i=(r=t[o])&&r.value?r.value:r,(e&&i<n||!e&&n<i)&&(n=i);return n}function G(t,e,r,n,i,o,a){o&&(t.strokeStyle=o),a&&(t.lineWidth=a),t.beginPath(),t.moveTo(e,r),t.lineTo(n,i),t.stroke()}function Lt(t,e,r,n,i,o,a){t.save(),o&&(t.strokeStyle=o),a&&(t.lineWidth=a),t.beginPath(),t.moveTo(e,r),t.lineTo(n,i),t.closePath(),t.stroke(),t.restore()}function Gt(t,e,r,n,i,o,a,u){var s,f,y,c,m,M,h,d,l;if(t.save(),s=[o,a],t.setLineDash)t.beginPath(),t.strokeStyle=u,t.setLineDash(s),t.stroke(),t.moveTo(e,r),t.lineTo(n,i);else for(t.beginPath(),t.lineWidth=1,t.strokeStyle=u,c=(n-e)/(f=z(P(n-e,2)+P(i-r,2))),m=(i-r)/f,h=M=0;M<f;)M+=d=ot(s[h%2],f-M),(l=++h%2)&&t.moveTo(e,r),e+=d*c,r+=d*m,l&&t.lineTo(e,r);t.stroke(),t.restore()}function ht(t,e,r,n,i,o,a,u,s,f,y,c){e?G(t,r,n,i,o,y,c):G(t,a,u,s,f,y,c)}function S(t,e,r,n,i,o,a,u){t.save(),a&&(t.fillStyle=a),t.textBaseline=u||Q,t.beginPath(),t.font=i,t.textAlign=o,t.fillText(n="string"==typeof n?n:n+"",e,r),t.restore()}function W(t,e,r,n,i,o,a){e=Math.floor(e),r=Math.floor(r),n=Math.floor(n),i=Math.floor(i),a%2!=0&&(e===n?(e+=.5,n+=.5):r===i&&(r+=.5,i+=.5)),G(t,e,r,n,i,o,a)}function zt(t,e,r,n,i,o,a,u,s,f){var y,c,m,M;switch(o=Math.round(o),a=Math.round(a),s){case 0:a=Math.round(r+u),M=Math.round(a),m=Math.round(o+u),y=Math.round((o+m)/2),c=Math.round(a-Math.sin(et/3)*u);break;case 1:o=Math.round(e+n-u),m=Math.round(o),M=Math.round(a+u),y=Math.round(o+Math.sin(et/3)*u),c=Math.round((a+M)/2);break;case 2:a=Math.round(r+i-u),M=Math.round(a),m=Math.round(o+u),y=Math.round((o+m)/2),c=Math.round(a+Math.sin(et/3)*u);break;case 3:o=e+u,m=Math.round(o),M=Math.round(a+u),y=Math.round(o-Math.sin(et/3)*u),c=Math.round((a+M)/2)}t.beginPath(),t.moveTo(o,a),t.lineTo(y,c),t.lineTo(m,M),t.closePath(),t.fillStyle=f,t.fill()}function Kt(t,e,r,n,i){t.beginPath(),t.fillStyle=i,t.arc(e,r,n,0,2*Math.PI),t.fill()}function Jt(t,e,r,n,i,o){var e;e?Kt(t,r+(e=i/2),n+e,e,o):lt(t,r,n,i,i,o)}function Vt(t,e,r,n,i,o,a,u,s,f,y,c,m,M,h){var d,l,v,p,g,F;s?(d=Math.floor(e+.5*n),l=Math.floor(u?f-y:f),v=Math.floor(c),p=Math.floor(y),g=Math.floor(d-M/2),F=Math.floor(u?l-M/2:l+p+M/2),W(t,d,l,d,l+p,o,v)):(d=Math.floor(u?f:f-y),l=Math.floor(r+.5*i),v=Math.floor(y),p=Math.floor(c),g=Math.floor(u?d+v+M/2:d-M/2),F=Math.floor(l-M/2),W(t,d,l,d+v,l,o,p)),m?Wt(t,e,r,n,i,g,F,M,s,u,o):s?Jt(t,h,g,u?F:F-=M,M,a):Jt(t,h,u?g-=M:g,F,M,a)}function Wt(t,e,r,n,i,o,a,u,s,f,y){t.save(),zt(t,e,r,n,i,o,a,u,s?f?0:2:f?1:3,y),t.restore()}function Ut(t,e,r,n,i,o,a,u,s,f,y,c,m,M){var h,d,f,o,l,h=4,d=void 0;t.save(),t.beginPath(),t.rect(e,r,n,i),t.clip(),t.font=s+Ft,t.fillStyle=V,t.fillStyle="black",f?(t.textBaseline=Z,0<(d=s+(f=m<M?M:m)+o+4+M/2)?(t.textAlign=I,y?t.fillText(u,e+n/2+M/2,c-f/2):t.fillText(u,e+n/2+M/2,c+f/2)):(t.textAlign=L,y?t.fillText(u,e+n/2,c-f-M/2-s):t.fillText(u,e+n/2,c+f+M/2+4))):(t.textBaseline=tt,0<(d=(o=t.measureText(u).width)+m+a+4+M/2)?m+M/2<o?y?(t.textAlign=B,t.fillText(u,c-4,r+i/2)):(t.textAlign=I,t.fillText(u,c+M/2,r+i/2)):(t.textAlign=L,y?t.fillText(u,c+m/2,r+i/2+s):t.fillText(u,c-m/2,r+i/2+s)):y?(t.textAlign=I,t.fillText(u,l=c+m+M/2+4,r+i/2)):(t.textAlign=B,t.fillText(u,l=c-m-M/2-4,r+i/2))),t.restore()}function qt(t){return m.ft.rp(h(t))<127.5?k:V}function dt(t,e,r,n,i,o,a,u){var s,f,y,c,u,s=u;return nt(u)&&(s=i),u=a?(f=e+s+o,c=n-2*s,y=t+i,r-2*i):(f=t+s,c=r-2*s,y=e+i,n-2*i),{left:f,top:y,width:c,height:u}}function Yt(t,e){for(var r,n,i,r=0,n=0,i=t.length;n<i;n++)r+=e&&!e(t[n])?0:t[n];return r}function Xt(t){return t*et/180}function Zt(t,e,r,n){for(var i,o,a,u,s,i=[],a=0,u=0,s=t.length;a<s;a++)e?(e(t[a])?i[u]=r?r(t[a]):t[a]:i[u]=0,u++):(o=yt(t[a]),!ft(o)&&isFinite(o)&&(i[u]=o,u++));return n&&n(i),i}function lt(t,e,r,n,i,o){var a=rt(e+n),u=rt(r+i);e=rt(e),r=rt(r),n=rt(a-e),i=rt(u-r),t.beginPath(),t.fillStyle=o,t.fillRect(e,r,n,i),t.fill()}function Qt(t,e,r){return t=ot(t,e),t=at(t,r)}function vt(t,e,r,n,i){t.save(),t.rect(e,r,n,i),t.clip()}function te(t,e){var r,n,i,o;return t&&e&&(r=at(t.x+t.width,e.x+e.width),n=at(t.y+t.height,e.y+e.height),i=ot(t.x,e.x),o=ot(t.y,e.y),r-i<=t.width+e.width)&&n-o<=t.height+e.height}function ee(t,e,r,n,i,o){var a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,a=r+i/2,u=n+o/2,s=5,f=ot(i,o)/2-5,y=-.5*et,m=a+f*N(y),M=u+f*x(y),h=[],d=[];if(!(f<=0)){for(p=re(v=(l=Zt(e.values,function(t){return!nt(t)&&!ft(t)&&isFinite(t)},function(t){return ut(t)},function(t){1===t.length&&(t[1]=1-t[0])})).length,e.colors),g=Yt(l),t.save(),F=0;F<v;F++)c=y+l[F]/g*2*et,t.beginPath(),t.moveTo(a,u),t.lineTo(m,M),t.arc(a,u,f,y,c,!1),t.lineTo(a,u),t.fillStyle=p[F],t.fill(),h.push(m),d.push(M),m=a+f*N(y=c),M=u+f*x(y);for(F=0;F<v;F++)G(t,a,u,h[F],d[F],k);t.restore()}}function re(t,e){var r,n,i,o,a,u,s,f,r=[],n=e.length;if(t<=n)r=e.slice(0,t);else{for(0===n?(r.push("darkgray"),n=1):r=e.slice(0),i=[],a=t-n+1,u=o=void 0,u=0;u<n;u++)i[u]=h(r[u]);for(u=n;u<t;u++){for(s in o=i[u%n])o.hasOwnProperty(s)&&(f=o[s],o[s]=T(f-f/a*(u/n)));o.a=255,r[u]=m.ft.j(o)}}return r}function ne(t){var e=f.call(this,H(t.x,t.y))||this;return e.value=t.value,e}function ie(t,e,r){return{x:t,y:e,value:r}}function oe(t){return isNaN(t)||t===1/0?0:t}function ae(r,t,e,n,i,o){var a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,b,_,w,t,s,t,D,H,N,k,$,S,x,P,C,A,T;if(r.save(),a=t.points,u=t.mini,s=t.maxi,f=t.line1,y=t.line2,c=t.colorPositive,m=t.colorNegative,M=5,a=Zt(a,function(t){return!nt(t)&&!ft(t)&&isFinite(t)}),c=nt(c)?"#787878":c,m=nt(m)?mt:m,t=Bt(a,!1),s=nt(s)?t:s,d=at(s,t),s=Bt(a,!0),u=nt(u)?s:u,h=ot(u,s),l=(l=(d=d<0?0:d)<(l=0)?d:0)<(h=0<h?0:h)?h-1:l,v=a.length,t=dt(e,n,i,o,5),p=t.left,g=t.top,F=t.width,b=t.height,_=oe(F/(v-1)),D=[],w=oe((d-h)/b))for($=k=void 0,S=g+oe((d-l)/w),P=x=void 0,C=0;C<v;C++)k=a[C],x=p+_*C,P=g+oe((d-k)/w),0===C&&D.push(new Pt(ie(x,S,l))),0<C&&k*a[C-1]<0&&(N=D[D.length-1])&&($=ue(N.x,N.y,x,P,S),D.push(new Pt(ie($,S,l)))),D.push(new Pt(ie(x,P,k))),C===v-1&&D.push(new Pt(ie(x,S,l)));for(r.beginPath(),A=0,T=D.length;A<T;A++)(H=D[A])&&(0===A?r.moveTo(H.x,H.y):r.lineTo(H.x,H.y),N=D[A-1],H.value===l)&&N&&(r.fillStyle=N.value>l?c:m,r.fill(),A!==T-1)&&(r.beginPath(),r.moveTo(H.x,H.y));function O(t){var t,e,t;t===it&&typeof t!==j||(t=Qt(t,d,h),t=rt(g+(e=0!==w?(d-t)/w:b/2))-.5,G(r,p,t,p+F,t,J))}O(f),O(y),r.restore()}function ue(t,e,r,n,i){return((e-i)*r+(i-n)*t)/(e-n)}function se(i,t,e,j,E,R){var r,n,I,B,L,G,o,a,u,s,f,y,z,c,K,m,M,J,V,h,d,l,v,p,g,F,b,_,W,U,q,b,w,D,H,N,k,$,S,x,P,t,C,A,T,O,t,r,n,e,r=t.points1,n=t.points2,I=t.minX,B=t.maxX,L=t.minY,G=t.maxY,o=t.hLine,a=t.vLine,u=t.xMinZone,s=t.xMaxZone,f=t.yMinZone,y=t.yMaxZone,z=t.tags,c=t.drawSymbol,K=t.drawLines,m=t.color1,M=t.color2,J=t.dash,V=4,t=dt(e,j,E,R,5),C=t.left,A=t.top,T=t.width,O=t.height;if(r&&!(r.length<=0)&&!((h=me(r)).length<=0||n&&0<n.length&&(d=me(n)).length<=0)){for(vt(i,e,j,E,R),i.beginPath(),c=!!nt(c)||c,m=nt(m)?pt:m,M=nt(M)?mt:M,X(h,L,G,I,B),!nt(u)&&!nt(s)&&!nt(f)&&!nt(y)&&p<=u&&u<=g&&p<=s&&s<=g&&l<=f&&f<=v&&l<=y&&y<=v&&(t=at(p,u),r=ot(g,s),n=at(l,f),e=ot(v,y),lt(i,C+(t-p)*T/(g-p),A+(v-(e=e<=n?n+1:e))*O/(v-l),((r=r<=t?t+1:r)-t)*T/(g-p),(e-n)*O/(v-l),Mt)),$=k=-ct,x=S=ct,_=h.length,F=0;F<_-1;F++)Y(h,F,m,Q),z&&(0===F&&($<D&&(k=w,$=D),D<x)&&(S=w,x=D),$<N&&(k=H,$=N),N<x)&&(S=H,x=N);if(d&&0<d.length)for(X(d,l,v,p,g),_=d.length,F=0;F<_-1;F++)Y(d,F,M,tt);z&&(Z(k,$,mt),Z(S,x,"#0000FF")),!nt(o)&&l<=o&&o<=v&&(P=rt(A+(v-o)*O/(v-l))-.5,ce(i,C,P,C+T,P,mt)),!nt(a)&&p<=a&&a<=g&&(P=rt(C+(a-p)*T/(g-p))-.5,ce(i,P,A,P,A+O,mt)),i.restore()}function Y(t,e,r,n){b=t[e],W=b.x,U=b.y,b=t[e+1],q=b.x,b=b.y,w=C+(W-p)*T/(g-p),H=C+(q-p)*T/(g-p),D=A+(v-U)*O/(v-l),N=A+(v-b)*O/(v-l),K&&ce(i,w,D,H,N,r,J),c&&(0===e&&n(w,D),n(H,N))}function X(t,e,r,n,i){var o,t,o=fe(t,!0),t=fe(t,!1);l=nt(L)?o.y:e,v=nt(G)?t.y:r,p=nt(I)?o.x:n,g=(g=nt(B)?t.x:i)<=p?p+1:g,v=v<=l?l+1:v}function Z(t,e,r){i.beginPath(),i.arc(t-2,e-2,2,0,2*et,!1),i.fillStyle=r,i.fill()}function Q(t,e){i.beginPath(),i.strokeStyle=m,i.arc(t-2,e-2,2,0,2*et,!1),i.stroke()}function tt(t,e){i.beginPath(),i.strokeStyle=M,i.strokeRect(t-2,e-2,4,4)}}function fe(t,e){for(var r,n,i,o,a,u,r=e?1:-1,n=e?ot:at,i=new D(H(r*ct,r*ct)),o=t.length,u=0;u<o;u++)a=t[u],i.x=n(i.x,a.x),i.y=n(i.y,a.y);return i}function ye(t,e,r,n){return r/n*(e-t)+t}function ce(t,e,r,n,i,o,a){var u,s,f,y,c,m,M,h,d,l,v,p,g,F,b,_,w;if(a){for(u=z(P(n-e,2)+P(i-r,2)),f=6,y=2,c=4,l=d=h=M=void(s=0),l=e<=n?(h=n,d=M=e,r):(h=e,d=M=n,i),p=r-(v=(i-r)/(n-e))*e,(m=[]).push(new D(H(d,l))),g=[6,4,2,4];s<u;)for(F=0,b=g.length;F<b;F++)(s+=g[F])<=u&&(d=ye(M,h,s,u),m.push(new D(H(d,l=v*d+p))));for(_=0,w=m.length;_<w-1;_+=2)G(t,m[_].x,m[_].y,m[_+1].x,m[_+1].y,o)}else G(t,e,r,n,i,o)}function me(t){var e,r,n,i,o,e=[],r=t.length;if(0<r)if(r<(n=t[0].length)){if(2<=r)for(i=0;i<n;i++)e.push(new D(H(t[0][i],t[1][i])))}else if(2<=n)for(o=0;o<r;o++)e.push(new D(H(t[o][0],t[o][1])));return e}function Me(a,t,u,s,f,y){var e,r,n,i,o,c,m,M,h,d,l,v,p,g,F,b,_,t,l,w,D,H,w,N,k,p,$,S,n,g,i,M,x,P,C,e=t.measure,r=t.target,n=t.maxi,i=t.good,o=t.bad,c=t.forecast,m=t.tickUnit,M=t.colorScheme,h=t.vertical,d=5,l=t.measureColor,v=t.targetColor,p=t.maxiColor,g=t.goodColor,F=t.badColor,b=t.forecastColor,_=t.allowMeasureOverMaxi,t=t.barSize;if(!(nt(n)||n<0)&&(nt(t)||!(ft(t)||t<=0))){if(1<t&&(t=1),e=nt(e)||e<0?0:e,i=nt(i)||i<0?0:i,o=nt(o)||o<0?0:o,r=nt(r)?0:r,c=nt(c)?0:c,m=nt(m)?0:m,M=nt(M)?"#A0A0A0":M,l=nt(l)?"#252525":l,n<e&&!_&&(e=n,l=mt),n<i&&(i=n,l=mt),n<o&&(o=n,l=mt),n<r&&(r=0,l=mt),n<c&&(c=n,l=mt),w=dt(u,s,f,y,5,y-10,h),D=w.left,H=w.width,a.save(),w=nt(t)?.2:(1-t)/2,N=nt(t)?.6:t,k=_?at(n,e):n,A(nt(p)?q(M,1.66):p,n,k,w,N),A(nt(g)?q(M,1.33):g,i,k,w,N),A(nt(F)?M:F,o,k,w,N),p=.25*t/.6,A(l,e,k,$=nt(t)?.375:(1-p)/2,S=nt(t)?.25:p),0<c&&(n=D,H<(g=H*(c/k))&&(g=H),i=nt(t)?3:3*t/.6,ht(a,h,u+.5*f,n,u+.5*f,n-g,n,s+.5*y,n+g,s+.5*y,nt(b)?"#3690BF":b,i)),0<r&&(M=rt(D-(h?1:-1)*H*(r/k))-.5,ht(a,h,u+f*w,M,u+f*(1-w),M,M,s+y*w,M,s+y*(1-w),nt(v)?mt:v,1)),0<m)for(x=T(k/m),P=void 0,C=0;C<=x;C++)P=rt(D-H/k*m*(h?1:-1)*C)-.5,ht(a,h,u,P,u+.05*f,P,P,s+y,P,s+.95*y,gt,1);a.restore()}function A(t,e,r,n,i){var o,t,e;a.fillStyle=t,H<(t=H*(e/r))&&!_&&(t=H),e=new xt(h?It(u+f*n,D-t,f*i,t):It(D,s+y*n,t,y*i)),a.fillRect(e.x,e.y,e.width,e.height)}}function he(t,e,r,n,i,o){var a,u,s,f,y,c,m,M,e,h,e,h,d,l,v,p,g,F,b,_,w,D,H,N,k,N,$,S,x,P,C,a=e.spreadData,u=e.showAverage,s=e.scaleStart,f=e.scaleEnd,y=e.style,c=e.colorScheme,m=e.vertical,M=5,e=a.length;if(!(e<=0)){for(h=a[0].key,e=a[e-1].key,s=nt(s)?h:s,f=nt(f)?e:f,y=nt(y)?4:y,c=nt(c)?gt:c,d=(h=dt(r,n,i,o,5,o-10,m)).left,l=h.width,v=h.top,p=h.height,vt(t,r,n,i,o),t.beginPath(),t.strokeStyle=c,t.fillStyle=c,b=Bt(a,!(t.lineWidth=2)),w=0,D=a.length;w<D;w++)if(N=(H=a[w]).key,k=H.value,g=d+(m?-1:1)*l*(N-s)/(f-s),g=m?(g=ot(g,d),at(g,d-l)):(g=at(g,d),ot(g,d+l)),g=rt(g),1===y)ht(t,m,N=v+p/2-(_=(_=k/2*p/b)<.5?.5:_),g,$=v+p/2+_,g,g,N,g,$);else if(4===y)ht(t,m,v,g,v+(_=(_=k*p/b)<1?1:_),g,g,v+p,g,v+p-_);else if(6===y)ht(t,m,v,g,v+p,g,g,v,g,v+p);else for(S=2,x=1;x<=k;x++){switch(y){case 2:F=v+p/2-5-(k/2-x)*p/b;break;case 3:F=v+p-5-(P=de(k,p,3,H.randomNumbers))[x-1];break;default:F=v+p-x*p/b}F=rt(F),t.beginPath(),t.fillRect(m?F:g,m?g:F,2,2)}u&&ht(t,m,v-5,g=d-(m?1:-1)*l*((C=le(a))-s)/(f-s),v+p+5,g,g,v-5,g,v+p+5,mt),t.restore()}}function de(t,e,r,n){for(var i,o,a,u,s,f,i=[],o=at(100,10*t),a=0,u=[],s=0;i.length<t;)f=T(n[s]*e),s++,(o<a||ve(f,u))&&(i.push(f),u.push([f-r,f+r])),a++;return i}function le(t){for(var e,r,n,i,o,e=0,r=0,n=0,i=t.length;n<i;n++)r+=(o=t[n]).value,e+=o.key*o.value;return 0===r?0:e/r}function ve(t,e){for(var r,n,i,r=0,n=e.length;r<n;r++)if((i=e[r])[0]<=t&&t<=i[1])return;return 1}function pe(i,t,e,r,n,o,a){var u,s,f,y,c,m,M,h,d,l,j,v,p,g,E,F,t,t,b,_,w,D,H,N,k,$,S,x,N,P,C,A,T,u=t.points,s=u&&u.length,f=t.colorRange,y=t.labelRange,c=t.maximum,m=t.targetRed,M=t.targetGreen,h=t.targetBlue,d=t.targetYellow,l=t.color,j=t.highlightPosition,v=t.vertical,p=t.textOrientation,g=t.textSize,E=5;if(!(nt(u)||s<=0)){if(l=nt(l)?gt:l,nt(f)||f.length!==s||ge(f))for(f=[],F=0;F<s;F++)f.push(q(l,1+F/s));for(t=Yt(u,function(t){return 0<t}),c=nt(c)||c<t?t:c,p=nt(p)?0:p,g=nt(g)||g<=0?10:g,g=ft(g)?g:g*a.zoomFactor,t=dt(e,r,n,o,5,o-10,v),b=t.left,_=t.width,w=t.top,D=t.height,i.save(),H=b,P=0,C=s;P<C;P++)(N=u[P])<=0||(N=N/c*_,x=v?(k=e+.15*n,S=.7*n,$=H-N,N):(k=H,S=N,$=r+.15*o,.7*o),A=P+1===j?mt:f[P],i.save(),i.fillStyle=A,i.fillRect(k,$,S,x),(T=y&&y[P])&&(i.save(),i.fillStyle=qt(A),i.textBaseline=tt,i.textAlign=L,i.font=g+Ft,i.rect(k,$,S,x),i.clip(),1===p?(i.translate(k+S/2,$),i.rotate(Math.PI/2),i.fillText(T,x/2,0)):i.fillText(T,k+S/2,$+x/2),i.restore()),H+=(v?-1:1)*N,i.restore());O(X,m,function(t){return 0<t}),O(Y,M),O(J,h),O("yellow",d),i.restore()}function O(t,e,r){var n,r;e!==it&&e!==R&&(e=c<e?c:e,!r||r(e))&&(r=(e=e<0?0:e)/c*_,v?(n=rt(b-r)-.5,G(i,w,n,w+D,n,t)):(n=rt(b+r)-.5,G(i,n,w,n,w+D,t)))}}function ge(t){for(var e=0,r=t.length;e<r;e++)if(nt(t[e]))return 1}function Fe(t,e,r,n,i,o){G(t,y(e),y(r),y(n),y(i),nt(o)?V:o,1)}function be(r,n,i,t,e){var t,o,a,u,s,f,t=.4*t;switch(n=y(n),i=y(i),r.beginPath(),r.moveTo(n,i),o=t/2,a=z(3)*t/2,u=t/z(3),e){case 0:s=[-o,0,o],f=[a,u,a];break;case 2:s=[-o,0,o],f=[-a,-u,-a];break;case 3:s=[a,u,a],f=[-o,0,o];break;case 1:s=[-a,-u,-a],f=[-o,0,o];break;default:s=[],f=[]}s.forEach(function(t,e){r.lineTo(y(n+t),y(i+f[e]))}),r.lineTo(n,i),r.closePath(),r.fillStyle=k,r.fill()}function _e(t,e,r,n,i,o,a){var u,s,f,y,r,c,m,M,h,d,l,v,p,g,u,y,F,r,p,r,r,t,b,u=r.value,s=r.colorScheme,f=r.axisVisible,y=r.barHeight,r=r.barWidth,c=5,m=5,M=!1,u=yt(u);if(!ft(u)){if(nt(y=0===t?y:r))F=.7;else{if(ft(y)||y<=0)return;F=Math.min(1,y)}1<u?(u=1,M=!0):u<-1&&(u=-1,M=!0),s=nt(s)?"grey":s,f=!!nt(f)||f,e.save(),0===t?(r=o-10,p=a*F,p=0<=u?(M&&(h=new D(H(n+5+r-5,i+a/2))),d=new xt(It(n+5,i+a*(1-F)/2,r*u,p)),l=new D(H(n+5,i+1)),v=new D(H(n+5,i+a)),1):(r=ut(r*u),M&&(h=new D(H(n+5+5,i+a/2))),d=new xt(It(n+o-5-r,i+a*(1-F)/2,r,p)),l=new D(H(n+o-5,i+1)),v=new D(H(n+o-5,i+a)),3),g=nt(y)?a:a*F):1===t&&(r=a-10,t=o*F,v=0<=u?(d=new xt(It(n+(1-F)/2*o,i+a-5-(b=r*u),t,b)),M&&(h=new D(H(n+o/2,i+a-5-b+5)),p=0),l=new D(H(n+1,i+a-5)),new D(H(n+o,i+a-5))):(u=ut(u),d=new xt(It(n+(1-F)/2*o,i+5,t,r*u)),M&&(h=new D(H(n+o/2,i+5+r-5)),p=2),l=new D(H(n+1,i+5)),new D(H(n+o,i+5))),g=nt(y)?o:o*F),e.beginPath(),d&&(lt(e,d.x,d.y,d.width,d.height,s),vt(e,d.x,d.y,d.width,d.height)),h&&be(e,h.x,h.y,g,p),e.restore(),f&&l&&Fe(e,l.x,l.y,v.x,v.y),e.restore()}}function y(t){return rt(t)-.5}function we(t,e,r,n,i,o){_e(0,t,e,r,n,i,o)}function De(t,e,r,n,i,o){_e(1,t,e,r,n,i,o)}function He(g,t,F,b,_,w,e){var r,n,i,o,a,u,D,s,f,H,N,y,c,m,k,$,r,j,E,S,R,M,h,x,e,t,d,d,d,t,P,C,c,c,l,v,p,s,r=t.variance,n=t.reference,i=t.mini,o=t.maxi,a=t.mark,u=t.tickUnit,D=t.legend,s=t.colorPositive,f=t.colorNegative,H=t.vertical,j=.5,E=.25,R=5,M=mt,h=pt,x=13*e.zoomFactor,e=yt(r);if(!(ft(e)||(f=nt(f)?X:f,s=nt(s)?Y:s,u=nt(u)?0:u,o=nt(o)?1:o,i=nt(i)?-1:i,(r=!nt(n))||(n=0),m=H?(N=b+w-5,y=w-10,c=_-20,-1):(N=F+5,y=_-10,c=w-20,1),D&&(t=yt(t.variance),ft(t)||(d=(d=t.toString()).substr(d.indexOf(".")+1).length,k=2<=d?(100*t).toFixed(d-2)+"%":(100*t).toFixed(0)+"%")),o<e&&(e=o,S=!0),e<i&&(e=i,S=!0),n=Qt(n,o,i),S&&($=Qt(c,60,15)),t=y/(d=ut(o-i)),P=N+m*ut(i-n)*t,(C=ut(e-n)*t)>ut(d)*t&&(C=ut(d+i)*t),c=N+m*y,H&&P<c)||!H&&c<P)){if(vt(g,F,b,_,w),n<e?A(s,0,5-y,y-5,0,1,b-P,Q,Z,P-F-_,I,B,-1,ut(o-e)*t):(C>ut(d)*t&&(C=ut(d+i)*t,P=N),A(f,1,-5,5,2,3,P-b-w,Z,Q,F-P,B,I,1,ut(i-e)*t)),r&&(c=N+m*(Math.abs(i-n)*t),O(F,c,F+_,c,c,b,c,b+w)),0<u)for(g.beginPath(),l=d/u,v=0;v<=l;v++)O(F,p=N+y/l*v*m,F+.1*_,p,p,b+.9*w,p,b+w,h,h);!nt(a)&&i<=a&&a<=o&&(g.beginPath(),s=N-(H?1:-1)*ut(i-a)*t,O(F,s,F+.33*_,s,s,b+.66*w,s,b+w,M,M),g.fill()),g.restore()}function A(t,e,r,n,i,o,a,u,s,f,y,c,m,M){var h,d,l,v,p,e;H?lt(g,h=F+.25*_,d=0===e?P-C:P,l=.5*_,v=C,t):lt(g,h=0===e?P:P-C,d=b+.25*w,l=C,v=.5*w,t),S&&(vt(g,h,d,l,v),H?be(g,F+_/2,N+r,$,i):be(g,N+n,b+w/2,$,o),g.restore()),D&&(p=void 0,e=0,S&&(e=.4*$*z(3)/2+5+2),g.save(),g.beginPath(),g.font=x+Ft,g.fillStyle=V,H?(g.textAlign=L,T(p=x+C+a,M,t,u,s,h,d,l,v,H),g.fillText(k,F+_/2,P+m*(C-e))):(g.textBaseline=tt,T(p=g.measureText(k).width+C+f,M,t,y,c,h,d,l,v,H),g.fillText(k,P+m*(e-C),b+w/2)),g.restore())}function T(t,e,r,n,i,o,a,u,s,f){f?g.textBaseline=n:g.textAlign=n,0<t&&e<C&&(g.rect(o,a,u,s),g.clip(),f?g.textBaseline=i:g.textAlign=i,g.fillStyle=qt(r))}function O(t,e,r,n,i,o,a,u,s,f){H?Fe(g,t,e,r,n,s):Fe(g,i,o,a,u,f)}}function Ne(t,e,r,n,i,o,j){var a,u,s,f,y,c,m,M,E,h,d,l,e,v,p,g,F,R,b,I,g,p,_,w,B,L,G,D,z,H,K,N,k,J,w,$,S,k,N,x,P,C,A,T,O,a=e.plannedValue,u=e.actualValue,s=e.index,f=e.absolute,y=e.reference,c=e.mini,m=e.maxi,M=e.tickUnit,E=e.legend,h=e.colorPositive,d=e.colorNegative,l=e.lollipopHeaderColor,e=e.vertical,I=[],w="",B=.9,L=10,G=13*j.zoomFactor,D=Mt,z=!1;if(!(0===a.length||0===u.length||s<0||s>=a.length||s>=u.length||m<=c||ft(u[s])||ft(a[s]))){if(d=nt(d)?X:d,h=nt(h)?Y:h,M=nt(M)?0:M,f=!nt(f)&&f,R=!nt(y),l=nt(l)?V:l,f){for(H=0;H<a.length&&H<u.length;H++)I.push(u[H]-a[H]);m=Bt(I,!1),c=Bt(I,!0),0<m&&0<c?c=0:m<0&&c<0&&(m=0),b=I[s],R=!(y=0)}else m=nt(m)?1:m,c=nt(c)?-1:c,b=(u[s]-a[s])/Math.abs(a[s]),((y=Qt(y,m,c))===m&&y<b||y===c&&b<y)&&(z=!0),nt(a[s])&&(z=!0);if(R||(y=0),g=e?(v=n+o-10,p=o-20,-1):(v=r+10,p=i-20,1),!f&&E?(0<(N=yt((K=b-y).toString()))&&(w="+"),!ft(N)&&isFinite(N)?F=w+(F=2<=(J=(k=N.toString()).substr(k.indexOf(".")+1).length)?(100*N).toFixed(2)+"%":100*N+"%"):isFinite(N)||(F=w+N)):F=(w=0<b?"+":w)+(F=2<=(J=(k=(N=yt(b)).toString()).substr(k.indexOf(".")+1).length)?N.toFixed(2):N),f?_=!1:(m<b&&(b=m,_=!0),b<c&&(b=c,_=!0)),$=p/(w=ut(m-c)),S=v+g*ut(c-y)*$,(k=ut(b-y)*$*.9)>ut(w)*$&&(k=ut(w+c)*$),N=v+g*p,!(e&&S<N||!e&&N<S))if(f||0!==a[s]&&!z){if(vt(t,r,n,i,o),x=ut(Math.ceil((m-y)/M)),P=ut(Math.floor((y-c)/M)),f){if(5/$<M)if(e){for(A=1;A<=x;A++)W(t,r,T=S+M*$*A*-1*.9,r+i,T,D,1);for(A=1;A<=P;A++)W(t,r,T=S+M*$*A*1*.9,r+i,T,D,1)}else{for(A=1;A<=x;A++)W(t,O=S+M*$*A*1*.9,n,O,n+o,D,1);for(A=1;A<=P;A++)W(t,O=S+M*$*A*-1*.9,n,O,n+o,D,1)}}else if(0<M&&M<=m&&5/$<M)if(t.beginPath(),e){for(C=10<.1*i?10:.1*i,A=1;A<=x;A++)W(t,r,T=S+M*$*A*-1*.9,r+C,T,D,1);for(A=1;A<=P;A++)W(t,r,T=S+M*$*A*1*.9,r+C,T,D,1)}else{for(C=10<.1*o?10:.1*o,A=1;A<=x;A++)W(t,O=S+M*$*A*1*.9,n+o-C,O,n+o,D,1);for(A=1;A<=P;A++)W(t,O=S+M*$*A*-1*.9,n+o-C,O,n+o,D,1)}g=Math.floor(12*j.zoomFactor),(p=Math.floor(4*j.zoomFactor))%2!=0&&(p+=1),g%2!=0&&(g+=1),y<b?Vt(t,r,n,i,o,h,l,!0,e,S,k,p,_,g,f):(k>ut(w)*$&&(k=ut(w+c)*$,S=v),Vt(t,r,n,i,o,d,l,!1,e,S,k,p,_,g,f)),E&&(y<b?Ut(t,r,n,i,o,n-S,S-r-i,F,G,e,!0,S,k,g):Ut(t,r,n,i,o,S-n-o,r-S,F,G,e,!1,S,k,g)),R&&(e?W(t,r,S,r+i,S,V,2):W(t,S,n,S,n+o,V,2)),t.restore()}else e?W(t,r,S,r+i,S,V,2):W(t,S,n,S,n+o,V,2)}}function ke(f,t,j,E,R,e){var r,n,I,i,o,a,u,s,y,c,B,m,M,h,d,i,o,a,u,l,v,p,g,F,L,j,E,R,e,G,b,_,w,z,K,J,V,D,H,N,k,$,S,x,W,U,P,C,P,C,P,q,i,o,u,Y,X,Z,A,i,o,T,O,Q,u,t,t,tt,r=t.points,n=t.boxPlotClass,I=t.showAverage,i=t.scaleStart,o=t.scaleEnd,a=t.acceptableStart,u=t.acceptableEnd,s=t.style,y=t.colorScheme,c=t.vertical,B=5,m=Bt(r,!1),M=Bt(r,!0);if(!(nt(r)||(r=Zt(r)).length<=0)){for((n=n===it||typeof n!==st?At:n.toLocaleLowerCase())!==At&&n!==Ct&&n!==Tt&&n!==Ot&&n!==jt&&(n=At),h=yt(i),h=ft(h)?M:h,d=yt(o),d=ft(d)?m:d,i=yt(a),o=yt(u),y!==it&&typeof y===st||(y="#D2D2D2"),(s===it||0!==s&&1!==s)&&(s=0),a=mt,M<h&&(y=a,h=M),d<m&&(y=a,d=m),vt(f,j,E,R,e),f.lineWidth=2,l=(u=dt(j,E,R,e,5,e-10,c)).left,v=u.width,p=u.top,g=u.height,F=c?-1:1,L=t.perc02,j=t.perc09,E=t.perc10,R=t.perc90,e=t.perc91,G=t.perc98,b=t.q1,z=M,K=m,V=J=1.5*(w=(_=t.q3)-b),D=t.stDev,H=Yt(r)/at(1,r.length),k=N=0,$=p+.1*g,S=.7*g,x=ut(d-h),W=0,U=r.length;W<U;W++)(P=r[W])<b&&b-1.5*w<=P&&P-(b-1.5*w)<J&&(J=P-(b-1.5*w),z=P),_<P&&P<=_+1.5*w&&_+1.5*w-P<V&&(V=_+1.5*w-P,K=P),C=!1,N=l+v*((P-h)/x)*F,n===Tt&&(P<=b-1.5*w||_+1.5*w<=P)&&(C=!0,k=P<=b-3*w||_+3*w<=P?0:1),n===Ct&&(P<=L||G<=P)&&(C=!0,k=1),n===jt&&(P<=H-2*D||H+2*D<=P)&&(C=!0,k=P<=H-3*D||H+3*D<=P?0:1),P=pt,C&&(1===s?1===k?rt(.2,.8,N,P):rt(.3,.7,N,P):((C=.1*g)<2&&(C=2),f.beginPath(),f.strokeStyle=P,P=p+.45*g,q=N,f.arc(c?P:q,c?q:P,C/2,0,2*Math.PI),f.stroke()));switch((i<h||d<o)&&(y="#C0FF00"),i=at(h,i),(o=ot(d,o))<i?y=a:i<o&&ht(f,c,u=p+.9*g,i=l+v*((i-h)/x)*F,u,o=l+v*((o-h)/x)*F,i,u,o,u,gt),X=ut(l+v*((_-h)/x)*F-(Y=l+v*((b-h)/x)*F)),A=l+v*(((Z=t.median)-h)/x)*F,n){case Ct:T=L,O=G;break;case Tt:T=z,O=K;break;case jt:X=ut(l+v*((H+D-h)/x)*F-(Y=l+v*((H-D-h)/x)*F)),A=l+v*((H-h)/x)*F,T=h<(Q=H-2*D)?Q:M,O=(Q=H+2*D)<d?Q:m,I=!1;break;default:T=M,O=m}i=l+v*((T-h)/x)*F,o=l+v*((O-h)/x)*F,u=pt,1===s?et("#F2F2F2",$,o,S,i-o,i,$,o-i,S):ht(f,c,t=p+.45*g,i,t,o,i,t,o,t,u),et(y,$,Y-X,S,X,Y,$,X,S),ht(f,c,$,A,$+S,A,A,$,A,$+S,u),0===s&&(ht(f,c,$+.3*S,o,$+.7*S,o,o,$+.3*S,o,$+.7*S,u),ht(f,c,$+.3*S,i,$+.7*S,i,i,$+.3*S,i,$+.7*S,u)),n!==Ct&&n!==Ot||(tt=t=void 0,O=n===Ct?(T=j,e):(T=E,R),t=l+v*((T-h)/x)*F,rt(.3,.7,tt=l+v*((O-h)/x)*F,u),rt(.3,.7,t,u)),I&&rt(.2,.8,N=l+v*((H-h)/x)*F,a),f.restore()}function et(t,e,r,n,i,o,a,u,s){c?lt(f,e,r,n,i,t):lt(f,o,a,u,s,t)}function rt(t,e,r,n){ht(f,c,$+S*t,r,$+S*e,r,r,$+S*t,r,$+S*e,n)}}function $e(t,e,r,n,i){e=rt(e),r=rt(r),e===(n=rt(n))&&(e=n-=.5),r===(i=rt(i))&&(r=i-=.5),t.moveTo(e,r),t.lineTo(n,i)}function U(t,e,r,n,i,o,a,u,s,f,y){t.beginPath(),t.strokeStyle=r,e?$e(t,n,i,o,a):$e(t,u,s,f,y),t.stroke()}function Se(t,e,r,n,i){t.rect(e,r,n,i),t.clip()}function xe(t,e,r,n,i,o){var a,u,s,f,y,c,m,M,h,d,l,v,p,o,a=o.labelText,u=o.fontSize,s=o.startBox,f=o.endBox,y=o.boxColor,c=o.isInRightOrTopOfBox,m=o.fillStyle;t.save(),t.beginPath(),t.font=u+Ft,l=1,m=nt(m)?V:m,o.vertical?(v=L,c?0<(M=u+f-(s-r))&&s-f-r<f?(p=Z,m=qt(y),d=s-f+1,Se(t,e,s-f,n,f)):(p=Q,d=s-f-1):d=0<(M=u-(r+i-s))&&r+i-s<f?(Se(t,e,s-f,n,f),p=Q,m=qt(y),s-1):(p=Z,s+1),t.textAlign=v,t.textBaseline=p,t.fillStyle=m,t.fillText(a,e+n/2,d)):(p=tt,o=t.measureText(a),c?h=0<(M=o.width+f-(e+n-s))&&e+n-(s+f)<f?(Se(t,s,r,f,i),v=B,m=qt(y),s+f-1):(v=I,s+f+1):0<(M=o.width-(s-e))&&s-e<f?(Se(t,s,r,f,i),h=s+1,v=I,m=qt(y)):(v=B,h=s-1),t.textAlign=v,t.textBaseline=p,t.fillStyle=m,t.fillText(a,h,r+i/2)),t.restore()}function Pe(t,e,r,n,i,o,j){var a,u,E,s,f,y,c,m,R,e,I,j,M,h,E,y,c,B,d,l,v,p,g,F,b,_,w,D,L,H,G,N,k,z,$,K,S,x,s,f,f,s,P,C,f,A,J,P,x,S,T,A,x,$,O,T,O,e,T,a=e.points,u=e.labels,E=e.pointIndex,s=e.minimum,f=e.maximum,y=e.colorPositive,c=e.colorNegative,m=e.vertical,R=e.itemTypeRange,e=e.colorTotal,I=5,j=13*j.zoomFactor;if(!nt(a)&&!((M=a.length)<=0||(h=parseInt(E,10),ft(h))||h<=0||M<h)){for(u=nt(u)?[]:u,c!==it&&typeof c===st||(c="#D6604D"),typeof e!==st&&(e=it),y=q(E=y=y!==it&&typeof y===st?y:"#8CBF64",1.3),B=q(c=c,1.3),d=1,F=[],D=_=b=g=p=v=l=0,L=M;D<L;D++)_=a[D],w=R[D],H=!1,G=1===d,(N=!nt(w))&&(w===_t?_=ut(_):w===bt?_=-ut(_):w===wt?(H=!0,G?l=_:_=l):N=!1),F[d]=[],k=F[d],ft(_)?(k[0]=0,k[1]=l,k[2]=0):(k[0]=ut(_),l=H?l:_+l,k[1]=0<_?v:l,k[2]=_),k[3]=d,p=ot(v,p),g=at(v,g),((z=d===M)&&!N||H)&&(b=p<0?-p:0,k[1]=0<_?0:_),N&&H&&!G||(v=_+v,z&&N&&(p=ot(v,p),g=at(v,g))),d++;$=!1,nt(w)||($=-1===(K=[bt,_t,wt]).indexOf(w)),(nt(w)||$)&&(l-=_),s=yt(s),ft(s)||0<s||p<s?s=S=p:b=-(S=s),f=yt(f),ft(f)||f<0||f<g?x=g:(x=f,b=-s),s=(f=dt(r,n,i,o,5,o-10,m)).left,P=f.width,C=f.top,f=f.height,A=m?-1:1,P=P/(J=x-S),vt(t,r,n,i,o),t.beginPath(),t.lineWidth=1,S=(x=F[h])[2],T=R[h-1],A=s+A*(x[1]+b)*P,x=x[0]*P,O=T===wt,T=(nt(T)||$)&&h===M||O,$=e&&T?e:1===h||T?0<=S?E:c:0<=S?y:B,m?lt(t,C,A-x,f,x,$):lt(t,A,C,x,f,$),m?(1!==h&&(h!==M?U(t,0<S,Mt,r,A,C+f,A,r,A-x,C+f,A-x):U(t,!0,Mt,r,O=s-(l+b)*P,C+f,O)),h!==M&&U(t,0<S,Mt,C,A-x,r+i,A-x,C,A,r+i,A)):(1!==h&&(h!==M?U(t,0<S,Mt,A,n,A,C+f,A+x,n,A+x,C+f):U(t,!0,Mt,e=s+(l+b)*P,n,e,C+f)),h!==M&&U(t,0<S,Mt,A+x,C,A+x,n+o,A,C,A,n+o)),T=u[h-1],0<u.length&&!nt(T)&&""!==T&&xe(t,r,n,i,o,{labelText:T,vertical:m,isInRightOrTopOfBox:0<S,fontSize:j,startBox:A,endBox:x,boxColor:$}),U(t,m,V,r,s-b*P,r+i,s-b*P,s+b*P,n,s+b*P,n+o),t.restore()}}function Ce(r,t,n,i,o,a,e){var u,s,f,y,c,m,M,h,e,d,l,v,t,p,g,s,F,b,_,w,D,H,N,p,j,M,k,$,t,p,S,M,x,P,C,A,m,T,f,O,u=t.points,s=t.pointIndex,f=t.colorRange,y=t.target,c=t.target2,m=t.highlightPosition,M=t.label,h=t.vertical,e=13*e.zoomFactor,d=t.targetColor,l=t.target2Color,v=t.labelColor,t=t.barSize;if(!nt(u)&&(nt(t)||!(ft(t)||t<=0))&&(1<t&&(t=1),!((p=u.length)<=0||(g=parseInt(s,10),ft(g))||g<=0||p<g))){for(f=nt(f)?[]:f,s=parseInt(M,10),s=ft(s)?0:s,F=1,_=[],w=b=0,D=u.length;w<D;w++)H=u[w],_[F]=[],N=_[F],H<0||ft(H)||nt(H)?(N[0]=1===F?0:b,N[1]=0):(b+=H,N[0]=1===F?0:b-H,N[1]=H),F++;j=5,p=nt(t)?5:h?o*(1-t)/2:a*(1-t)/2,M=dt(n,i,o,a,p,a-10,h,5),k=M.left,$=M.width,t=M.top,p=M.height,S=h?-1:1,M=$/b,vt(r,n,i,o,a),r.beginPath(),r.lineWidth=1,P=(x=_[g])[1],C=k+S*x[0]*M,A=x[1]*M,m=g===m?mt:0===f.length||typeof f[g-1]!==st?pt:f[g-1],h?lt(r,t,C-A,p,A,m):lt(r,C,t,A,p,m),1===s?T=(x[0]+P)/b*1e3:2===s&&(T=P/b*1e3),f=rt(T)/10+"%",1!==s&&2!==s||!f||xe(r,n,i,o,a,{labelText:f,vertical:h,isInRightOrTopOfBox:(x[0]+x[1])*M<$/2,fontSize:e,startBox:C,endBox:A,boxColor:m,fillStyle:v}),O=[nt(d)?"#8CBF64":d,nt(l)?"#EE5D5D":l],[y,c].forEach(function(t,e){var t,t,t=E(t),t=K(k+S*$*t);U(r,h,O[e],n,t,n+o,t,t,i,t,i+a)}),r.restore()}function E(t){var t=yt(t),t;return t=1<(t=(t=ft(t)?0:t)<0?0:t)?1:t}}function Ae(t,e){switch(e){case 2:var r;return t%4==0&&t%100!=0||t%400==0?29:28;case 4:case 6:case 9:case 11:return 30;default:return 31}}function Te(t,e,r){var e,r,n,i,o,e;return 1<(t=t<0?0:t)&&(t=1),e=h(e),r=h(r),n=e.a*(1-t)+r.a*t,i=e.r*(1-t)+r.r*t+"",o=e.g*(1-t)+r.g*t+"",e=e.b*(1-t)+r.b*t+"","rgba("+parseInt(i,10)+","+parseInt(o,10)+","+parseInt(e,10)+","+yt(n/255+"")+")"}function Oe(t,e,r){return t===e&&t===r?1:t<=e?0:r<=t?1:(t-e)/(r-e)}function je(t,e,r,n,i,o){var a=(o+i)/2;return i<=n&&n<=a?Te(Oe(n,i,a),t,e):Te(Oe(n,a,o),e,r)}function Ee(t){var e=ct,r=-ct;return t.forEach(function(t){t!==it&&t!==R&&(t<e&&(e=t),r<t)&&(r=t)}),{min:e,max:r}}function Re(t,r,n,i,o,a,u){var e,s,f;i?t.forEach(function(t,e){0!==t&&t!==it&&t!==R&&(r[n+e]=i[e]||r[n+e])}):(e=Ee(t),s=e.min,f=e.max,t.forEach(function(t,e){0!==t&&t!==it&&t!==R&&(r[n+e]=je(o,a,u,t,s,f))}))}function Ie(t,e,r,n,i,o){for(var a,u,s,f,y,c,m,M,h,d,l,v,p,g,F,b,_,w,D,a=e.year,u=e.month,s=e.values,f=e.emptyColor||"lightgray",y=e.startColor,c=e.middleColor,m=e.endColor,M="white",h=6,d=7,l=2,v=(i-14)/6,p=(o-16)/7,g=[],F=new Date(a,u-1,1).getDay(),b=0;b<42;b++)!(b<F)&&b<F+Ae(a,u)?g[b]=f:g[b]=M;for(Re(s,g,F,e.colors,y,c,m),t.save(),t.rect(r,n,i,o),t.clip(),t.beginPath(),w=_=0;w<6;w++)for(D=0;D<7;D++)t.fillStyle=g[_],_++,t.fillRect(r+w*v+2*(w+1),n+D*p+2*(D+1),v,p);t.restore()}function Be(t){for(var e,r,n,i,e=t.getFullYear(),r=t.getMonth(),n=t.getDate(),i=1;i<r+1;i++)n+=Ae(e,i);return n}function Le(t,e,r,n,i,o,a){for(var u,s,f,y,c,m,M,j,h,d,l,v,p,s,e,g,F,y,c,E,b,_,w,D,H,N,k,$,S,x,P,C,A,A,T,O,u=e.year,s=e.values,f=e.emptyColor||"lightgray",y=e.startColor,c=e.middleColor,m=e.endColor,M="white",j=7,h=parseInt(366/7+"",10)+2,d=[],l=new Date(u,0,1).getDay(),v=Be(new Date(u,11,31)),p=0;p<7*h;p++)d[p]=!(p<l)&&p<l+v?f:M;for(Re(s,d,l,e.colors,y,c,m),t.save(),t.rect(r,n,i,o),t.clip(),g=r+(e=15*(s=a.zoomFactor)),F=n,y=i-e,c=o,t.save(),t.translate(r+e/2,F+c),t.rotate(-Math.PI/2),t.font=13*s+Ft,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(u+"",c/2,0),t.restore(),b=(y-(E=2)*(h+1))/h,_=(c-16)/7,k=[],H=w=0;H<h;H++)for(D=0;D<7;D++)k[w]=N={x:g+H*b+2*(H+1),y:F+D*_+2*(D+1),w:b,h:_},t.fillStyle=d[w],w++,t.fillRect(N.x,N.y,N.w,N.h);for($=[],S={},x=0;x<12;x++)S[x]=Be(new Date(u,x,1))-1+l;for(P=S[11]+Ae(u,12)-1,H=w=0;H<h;H++)for(D=0;D<7;D++)l<=w&&w<l+v&&(A=(C=new Date(u,0,w-l+1)).getMonth(),N=k[w],(A=S[A])<=w&&w<7+A&&$.push({x1:N.x,y1:N.y-1,x2:N.x,y2:N.y+N.h+1}),w!==A&&0!==C.getDay()||$.push({x1:N.x-1,y1:N.y,x2:N.x+N.w+1+(w===A?2:0),y2:N.y}),P-7<w&&w<=P&&$.push({x1:N.x+N.w,y1:N.y-1,x2:N.x+N.w,y2:N.y+N.h+1}),w!==P&&6!==C.getDay()||$.push({x1:N.x-1-(w===P?2:0),y1:N.y+N.h,x2:N.x+N.w+1,y2:N.y+N.h})),w++;for(t.strokeStyle="black",t.lineWidth=2,T=0;T<$.length;T++)O=$[T],t.beginPath(),t.moveTo(O.x1,O.y1),t.lineTo(O.x2,O.y2),t.stroke();t.restore()}function Ge(t){var e,r,n,i,o,a,u,s,f,y,e=Xt(t.minAngle-90),r=Xt(t.maxAngle-90),n=t.minValueOption.value,i=t.maxValueOption.value,o=t.ranges,a=l,u=(r-e)/(i-n),s=[];return 0<o.length&&o.forEach(function(t){f=t.start,y=t.end,s.push({start:u*(f-n)+e,end:u*(y-n)+e,color:t.color})}),s.unshift({start:e,end:r,color:a}),{paintRanges:s,fillColor:a,targetValueRadian:u*(t.targetValueOption.value-n)+e,currentValueRadian:u*(t.currentValueOption.value-n)+e,minValueRadian:e,maxValueRadian:r}}function ze(t,e,r,n,i,o,a){var o,u,s,f,y,c,o,m,y,M,h,d,l,v,c,p,a,o=o.zoomFactor,u=t.currentValueOption.normalFontHeight*o,s=t.minValueOption.normalFontHeight*o,f=t.maxValueOption.normalFontHeight*o,y=t.minAngle,c=t.maxAngle,o=t.currentValueOption.normalFontWidth*o,m=90<ut(y)||90<ut(c),y=120<ut(y)||120<ut(c),c=b*ot(n,i);return a?(M=T(n/2*F),h=T(i*F),a=.03*(l=ot(M,d=m?h/2:h)),v={x:e+n/2,y:r+i/2+(m?0:l/2),outerRadius:l,innerRadius:l*t.radiusRatio,currentValuePoint:R,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:s<(p=(i-(m?2*l:l))/2),enoughShowMaxLabel:f<p,moreThanSemiCircle:m},m?y?2*u/3<p-a-at(f,s)&&o<n-2*c&&(v.currentValuePoint={x:v.x,y:v.y+l+a+u/2+at(f,s)},v.enoughShowCurrentLabel=!0):2*u/3<i/2-a&&o<n-2*c&&(v.currentValuePoint={x:v.x,y:v.y+2*a+u},v.enoughShowCurrentLabel=!0):u<p-a&&o<n-2*c&&(v.currentValuePoint={x:v.x,y:v.y+u},v.enoughShowCurrentLabel=!0)):(M=T(n/2*g),h=T(i*g),l=ot(M,d=m?h/2:h),v={x:e+n/2,y:r+i/2+(m?0:l/2),outerRadius:l,innerRadius:l*t.radiusRatio}),v}function Ke(t,e,r,n){return{x:t+N(r)*n,y:e+x(r)*n}}function Je(t,e){return ut(e.x-t.x)<.01?{x:e.x,y:e.y,textAlign:L}:e.x>t.x?{x:e.x+a,y:e.y,textAlign:I}:e.x<t.x?{x:e.x-a,y:e.y,textAlign:B}:{x:e.x,y:e.y,textAlign:I}}function Ve(e,t,r,n,i,o,a){var u,s,r,n,f,y,a,c,m,M,h,d,h,l,h,h,s,v,p,g,F,b,_,w,D,H,a,_,b,g,a,v,_,F,b,p,w,g,u=a.zoomFactor,s=!!nt(t.showLabel)||t.showLabel,r=ze(t,r,n,i,o,a,s);if(!(r.outerRadius<=0))return n={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=r.innerRadius,y=r.outerRadius,a=r.currentValuePoint,c=r.moreThanSemiCircle,m={x:r.x,y:r.y},h=(M=Ge(t)).paintRanges,d=M.fillColor,e.save(),h.forEach(function(t){e.beginPath(),e.strokeStyle=k,e.moveTo(m.x,m.y),e.fillStyle=t.color||d,e.arc(m.x,m.y,y,t.start,t.end,!1),e.lineTo(m.x,m.y),e.closePath(),e.fill(),e.stroke(),e.beginPath(),e.fillStyle=k,e.strokeStyle=k,e.moveTo(m.x,m.y),e.arc(m.x,m.y,f,t.start-St,t.end+St,!1),e.lineTo(m.x,m.y),e.closePath(),e.fill(),e.stroke()}),e.beginPath(),e.moveTo(m.x,m.y),e.fillStyle=V,e.arc(m.x,m.y,y*A,0,2*et,!1),e.fill(),h=Ke(m.x,m.y,M.targetValueRadian,f),l=Ke(m.x,m.y,M.targetValueRadian,y*E),Gt(e,h.x,h.y,l.x,l.y,Ht,Nt,$),h=Ke(m.x,m.y,M.currentValueRadian,y*E),G(e,m.x,m.y,h.x,h.y,V,O*y),s&&(e.save(),e.beginPath(),e.textAlign=C,e.fillStyle=$,h=t.minValueOption.normalFontHeight*u,s=t.maxValueOption.normalFontHeight*u,v=t.minValueOption.normalFontWidth*u,p=t.maxValueOption.normalFontWidth*u,g=M.minValueRadian,F=M.maxValueRadian,b=t.currentValueOption.normalFontHeight*u,_=t.currentValueOption.normalFontWidth*u,H=D=w=void 0,r.enoughShowCurrentLabel&&(S(e,a.x,a.y,t.currentValueOption.label,t.currentValueOption.fontAfterZoom,L),n.showCurrentLabel=!0,w={x:a.x-_/2,y:a.y-b,width:_,height:b}),r.enoughShowMinLabel&&ut(N(g)*y)+v<i/2-$t&&(a=Ke(m.x,m.y,M.minValueRadian,y),te(D={x:(_=Je(m,a)).x-v,y:_.y,width:v,height:h},w)||(S(e,_.x,_.y+T(h),t.minValueOption.label,t.minValueOption.fontAfterZoom,B),n.showMinLabel=!0)),r.enoughShowMaxLabel&&ut(N(F)*y)+p<i/2-$t&&(b=Ke(m.x,m.y,M.maxValueRadian,y),te(H={x:(g=Je(m,b)).x,y:g.y,width:p,height:s},w)||(S(e,g.x,g.y+T(s),t.maxValueOption.label,t.maxValueOption.fontAfterZoom,I),n.showMaxLabel=!0)),r.enoughShowTargetLabel&&(a=t.targetValueOption.normalFontWidth*u,v=t.targetValueOption.normalFontHeight*u,_=t.targetValueOption.label,l=Ke(m.x,m.y,M.targetValueRadian,F=y+3*v/2),b=Je(m,l),p=M.targetValueRadian,w=c?(o-2*F)/2+F:o-(o-y)/2,ut(N(p)*F)+a<i/2-$t)&&ut(x(p)*F)+v/2+$t/2<w&&(g=at(h,s)/2,S(e,b.x,b.y-(et<p?g:-g),_,t.targetValueOption.fontAfterZoom,b.textAlign),n.showTargetLabel=!0),e.restore()),e.restore(),n}function We(t,e,r,n,i,o){var o,a,u,s,f,y,c,m,M,t,h,d,o,e,o=o.zoomFactor,a=t.showLabel,u=t.minValueOption.normalFontHeight*o,s=t.maxValueOption.normalFontHeight*o,f=t.targetValueOption.normalFontHeight*o,y=t.currentValueOption.normalFontHeight*o,c=t.minValueOption.normalFontWidth*o,m=t.maxValueOption.normalFontWidth*o,M=t.targetValueOption.normalFontWidth*o,t=t.currentValueOption.normalFontWidth*o,o=.05*n,h=T(i*v),d=T(n*p),e={x:e+n*(1-p)/2,y:r+i*(v+(1-v)/2),graphWidth:d,graphHeight:h,targetValuePoint:R,currentValuePoint:R,minValuePoint:R,maxValuePoint:R};return a&&(u<(i-h)/2&&c<(n-d)/2-o&&(e.minValuePoint={x:e.x-c,y:e.y+u/3},e.enoughShowMinLabel=!0),s<(i-h)/2&&m<(n-d)/2-o&&(e.maxValuePoint={x:e.x-m,y:e.y-h+s/3},e.enoughShowMaxLabel=!0),(f<(i-h)/2||f/2<h)&&M<(n-d)/2-o-at(c,m)&&(e.targetValuePoint={x:e.x-M-at(c,m),y:R},e.enoughShowTargetLabel=!0),y<(i-h)/2||y/2<h)&&t<(n-d)/2-o&&(e.currentValuePoint={x:e.x+d+o,y:R},e.enoughShowCurrentLabel=!0),e}function Ue(t,e){var r,n,i,o,a,u,s,f,r=t.minValueOption.value,n=t.maxValueOption.value,i=t.ranges,o=l,a=e.graphHeight/(n-r),u=[];return 0<i.length&&i.forEach(function(t){s=t.start,f=t.end,u.push({start:e.y-a*(s-r),height:a*(f-s),color:t.color})}),u.unshift({start:e.y,height:e.graphHeight,color:o}),{paintRanges:u,fillColor:o,targetValueY:e.y-a*(t.targetValueOption.value-r),currentValueY:e.y-a*(t.currentValueOption.value-r)}}function qe(e,t,r,n,i,o,a){var u,s,f,y,c,m,r,M,i,a,h,d,l,v,p,t,g,F,b,_,w,u=a.zoomFactor,s=t.showLabel,f=t.minValueOption,y=t.maxValueOption,c=t.currentValueOption,m=t.targetValueOption,r=We(t,r,n,i,o,a),M=r.graphWidth,i=r.graphHeight;if(!(M<=0||i<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=r.currentValuePoint,d=r.targetValuePoint,l=r.minValuePoint,v=r.maxValuePoint,p={x:r.x,y:r.y},g=(t=Ue(t,r)).paintRanges,F=c.normalFontHeight*u,b=m.normalFontHeight*u,_=t.targetValueY,w=t.currentValueY,e.save(),g.forEach(function(t){lt(e,p.x,t.start,M,-t.height,t.color)}),Gt(e,p.x-(E-1)*M,_,p.x+M,_,Ht,Nt,$),G(e,p.x,w,p.x+M*E,w,V,Dt*i),s&&(e.save(),e.beginPath(),r.enoughShowMinLabel&&(S(e,l.x,l.y,f.label,f.fontAfterZoom,I,$),a.showMinLabel=!0),r.enoughShowMaxLabel&&(S(e,v.x,v.y,y.label,y.fontAfterZoom,I,$),a.showMaxLabel=!0),r.enoughShowTargetLabel&&!(o<_-n+b/2||_-n-kt<0)&&(S(e,d.x,t.targetValueY+m.normalFontHeight*u/3,m.label,m.fontAfterZoom,I,$),a.showTargetLabel=!0),r.enoughShowCurrentLabel&&!(o<w-n+F/2||w-n-kt<0)&&(S(e,h.x,t.currentValueY+c.normalFontHeight*u/3,c.label,c.fontAfterZoom,I,$),a.showCurrentLabel=!0),e.restore()),e.restore(),a}function Ye(t,e,r,n,i,o){var o,a,u,s,f,y,c,m,M,t,h,d,o,e,o=o.zoomFactor,a=t.showLabel,u=t.minValueOption.normalFontHeight*o,s=t.maxValueOption.normalFontHeight*o,f=t.targetValueOption.normalFontHeight*o,y=t.currentValueOption.normalFontHeight*o,c=t.minValueOption.normalFontWidth*o,m=t.maxValueOption.normalFontWidth*o,M=t.currentValueOption.normalFontWidth*o,t=t.targetValueOption.normalFontWidth*o,o=.1*ot(n,i),h=T(i*p),d=T(n*v),e={x:e+n*(1-v)/2,y:r+i*(1-p)/2,graphWidth:d,graphHeight:h,targetValuePoint:R,currentValuePoint:R,minValuePoint:R,maxValuePoint:R};return a&&((M<3*(n-d)/4||M<d)&&y<(i-h)/2-$t&&(e.currentValuePoint={x:R,y:e.y-y/2},e.enoughShowCurrentLabel=!0),(t<3*(n-d)/4||t<d)&&f<(i-h)/2-at(u,s)&&(e.targetValuePoint={x:R,y:e.y+h+at(u,s)+f/4*3},e.enoughShowTargetLabel=!0),c<3*(n-d)/4&&u<(i-h)/2-o&&(e.minValuePoint={x:e.x-c/2,y:e.y+h+u},e.enoughShowMinLabel=!0),m<3*(n-d)/4)&&s<(i-h)/2-o&&(e.maxValuePoint={x:e.x+d-m/2,y:e.y+h+s},e.enoughShowMaxLabel=!0),e}function Xe(t,e){var r,n,i,o,a,u,s,f,r=t.minValueOption.value,n=t.maxValueOption.value,i=t.ranges,o=l,a=e.graphWidth/(n-r),u=[];return 0<i.length&&i.forEach(function(t){s=t.start,f=t.end,u.push({start:e.x+a*(s-r),width:a*(f-s),color:t.color||o})}),u.unshift({start:e.x,width:e.graphWidth,color:o}),{paintRanges:u,fillColor:o,targetValueX:e.x+a*(t.targetValueOption.value-r),currentValueX:e.x+a*(t.currentValueOption.value-r)}}function Ze(e,t,r,n,i,o,a){var u,s,f,y,c,m,n,o,M,a,h,d,l,v,p,t,g,F,b,_,t,u=a.zoomFactor,s=t.showLabel,f=t.minValueOption,y=t.maxValueOption,c=t.currentValueOption,m=t.targetValueOption,n=Ye(t,r,n,i,o,a),o=n.graphWidth,M=n.graphHeight;if(!(o<=0||M<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=n.currentValuePoint,d=n.targetValuePoint,l=n.minValuePoint,v=n.maxValuePoint,p={x:n.x,y:n.y},g=(t=Xe(t,n)).paintRanges,F=c.normalFontWidth*u,b=m.normalFontWidth*u,_=t.targetValueX,t=t.currentValueX,e.save(),g.forEach(function(t){lt(e,t.start,p.y,t.width,M,t.color)}),Gt(e,_,p.y,_,p.y+M*E,Ht,Nt,$),Lt(e,t,p.y+M-1,t,p.y-M*(E-1)-1,V,o*Dt),s&&(e.save(),n.enoughShowMinLabel&&(S(e,l.x,l.y,f.label,f.fontAfterZoom,I,$),a.showMinLabel=!0),n.enoughShowMaxLabel&&(S(e,v.x,v.y,y.label,y.fontAfterZoom,I,$),a.showMaxLabel=!0),n.enoughShowTargetLabel&&!(i<_-r+b/2+w||_-r-b/2-w<0)&&(S(e,_-m.normalFontWidth*u/2,d.y,m.label,m.fontAfterZoom,I,$),a.showTargetLabel=!0),n.enoughShowCurrentLabel&&!(i<t-r+F/2+w||t-r-F/2-w<0)&&(S(e,t-c.normalFontWidth*u/2,h.y,c.label,c.fontAfterZoom,I,$),a.showCurrentLabel=!0),e.restore()),e.restore(),a}function Qe(t,e,r,n,i,o,a){t.save(),t.rect(r,n,i,o),t.clip(),0===e.gaugeType?Ve(t,e,r,n,i,o,a):1===e.gaugeType?qe(t,e,r,n,i,o,a):2===e.gaugeType&&Ze(t,e,r,n,i,o,a),t.restore()}function tr(t,e,r,n,i,o,a,u){var s,f,y,a,c,m,M,h,d,l,s=[],f=t.length,y=0,a=a.fontPixelSize;if(o&&(y=a+3),0!==f){for(c=n/f,m=t[0].value,M=1;M<f;M++)m=Math.max(m,t[M].value);for(h=0;h<f;h++)l=t[h].value/m*(i-y),s.push({x:e+h*c+c*(1-u)/2,textX:e+h*c,y:(d=r+i-y)-(l=l<0?0:l),width:c*u,textWidth:c,height:l,axis:t[h].axis})}return s}function er(t,e,r,n){t.save(),t.fillStyle=r;for(var i=0;i<e.length;i++)t.fillRect(e[i].x,e[i].y,e[i].width,e[i].height);t.restore()}function rr(t,e,r,n){var i,o,a,u,s;for(t.save(),i=r.fontPixelSize,o=ar(r),t.textAlign="center",t.fillStyle=n,a=0;a<e.length;a++)s=u=void 0,u=e[a].x+e[a].width/2,s=e[a].y+e[a].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(e[a].textX,e[a].y+e[a].height+1,e[a].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(e[a].axis,u,s),t.restore();t.restore()}function nr(t,e,r,n){var i,o,a,u,s,o;if("none"!==n){for(t.save(),t.lineWidth=1,t.strokeStyle=n,t.beginPath(),i=0;i<e.length;i++)a=(o=e[i]).x,u=o.y,s=o.width,0===(o=o.height)||0===s||(G(t,a,u,a+s,u),G(t,a,u+o,a+s,u+o),e[i-1]&&e[i-1].height>=o&&1===r||G(t,a,u,a,u+o),e[i+1]&&e[i+1].height>o&&1===r)||G(t,a+s,u,a+s,u+o);t.stroke(),t.closePath(),t.restore()}}function ir(t,e,r,n,i){var o,a,u,s,f,y,o=!1;for(t.save(),t.font=i,u=(r-6)/(a=e.length),s=0,f=e;s<f.length;s++)if(y=f[s],t.measureText(y.axis).width>u){o=!0;break}return t.restore(),o}function or(t,e,r,n,i,o,a){var u,s,f,y,c,m,M,e,h,r,n,u=e.barColor,s=e.values,f=e.paintLabel,y=e.barWidth,c=e.labelFontStyle,m=e.afterZoomFontStyle,M=e.edgeColor,e=e.labelColor;nt(c)||(o<3*(h=m.fontPixelSize)||ir(t,s,i,o,ar(m)))&&(f=!1),er(t,n=tr(s,r+3,n+3,i-6,o-6,f=f&&nt(c)&&(r=Math.floor(12<=o/3?12:Math.floor(o/3)),m.fontPixelSize=r,m.fontSize=r+"px",ir(t,s,i,o,ar(m)))?!1:f,m,y),u,M),nr(t,n,y,M),f&&rr(t,n,m,e)}function ar(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function ur(t,e,r,n,i,o,a){var r,n,i,o,u,s,f,y,e;t.save(),t.rect(r,n,i,o),t.clip(),r=e.clipX,n=e.clipY,i=e.clipWidth,o=e.clipHeight,u=e.paintX,s=e.paintY,f=e.paintWidth,y=e.paintHeight,e=e.img,0<i&&0<o&&0<f&&0<y&&t.drawImage(e,r,n,i,o,u,s,f,y),t.restore()}function sr(t,e,r,n){this.X=t,this.Y=e,this.Width=r,this.Height=n,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}function t(){this.Bzt=2,this.Lzt=o,this.Fzt=o,this.Pzt=ct,this.Gzt=-ct}n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),Object.defineProperty(c,"__esModule",{value:!0}),c.SparklineExRenders=c.SparklineRender=c.Uzt=c.Hzt=c.zzt=c.oCt=void 0,i=r("./src/common/util/types.ts"),m=r("./src/common/util/colorhelper.ts"),M=r("./src/common/util/arrayhelper.ts"),nt=i.lt.ht,q=m.ft.YGt,h=m.ft._,d=M.Uf.hD,c.oCt={},it=null,R=void 0,T=Math.floor,et=Math.PI,x=Math.sin,N=Math.cos,ot=Math.min,at=Math.max,rt=Math.round,P=Math.pow,z=Math.sqrt,ut=Math.abs,K=Math.ceil,j="undefined",st="string",ft=isNaN,yt=parseFloat,ct=Number.MAX_VALUE,o=new Date(""),pt="#969696",mt="#CB0000",gt="#646464",Mt="#DCDCDC",k="white",V="black",J="blue",Y="green",$="grey",X="red",l="lightgrey",I="left",B="right",L="center",Z="top",Q="bottom",tt="middle",C="start",Ft="px Arial",bt="-",_t="+",wt="=",A=.05,O=.03,E=1.06,Dt=.02,Ht=4,a=Nt=5,w=3,kt=10,$t=8,v=.8,p=.25,g=.9,F=.7,b=.1,St=1/45*et,xt=Rt,n(ne,f=D=Et),Pt=ne,Ct="7ns",At="5ns",Tt="tukey",Ot="bowley",jt="sigma3",c.zzt=Ve,c.Hzt=qe,c.Uzt=Ze,_=sr,t.prototype.paint=function(t,e,r,n,i,o){var a,u,s,f,a=this;a.options=e,a.setting=e.settings,u=e.values,s=e.dateValues,f=e.zoomFactor,t.save(),t.rect(r,n,i,o),t.clip(),t.beginPath(),0===e.sparklineType&&a.c6(t,r,n,i,o,u,s,f),a.Vzt(t,r,n,i,o,u,s,f),a.Yzt(t,r,n,i,o,u,s,f),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,e){var r,n,i,o,a,a,u,s,f,y,r=this.Kzt;if(!r)if(r=this.Kzt=[],n=t.length,this.options.displayDateAxis){for(a=e.length,u=[],(u=0<(a=ot(n,a))?e.slice(0,a):u).sort(function(t,e){return t===e?0:(t=t===c.oCt?0:t)-(e=e===c.oCt?0:e)}),s=u.length,y=f=void 0,i=0;i<s;i++)if(typeof(f=u[i])!==j&&f!==it){for(y=d(e,f);M.Uf.OS(r,y);)y=d(e,f,y+1);isNaN(f)||(o=t[y])!==R&&o!==it&&isNaN(o)&&o!==c.oCt||r.push(y)}}else for(i=0;i<n;i++)typeof(o=t[i])!==j&&o!==it&&isNaN(o)&&o!==c.oCt||r.push(i);return r},t.prototype.Sl=function(t,e){var e=e[t];return typeof e===j||e===it?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===c.oCt&&(e=0),e},t.prototype.c6=function(t,e,r,n,i,o,a,u){var s,f,y,c,m,M,h,d,l,v,p,l,g,F,b,_,w,D,s=this,f=s.Qzt(o,a),M=f.length-1;for(M<0&&(M=0),h=s.setting.options,d=s.linePos=[],F=h.displayEmptyCellsAs,y=0;y<M;y++)if(typeof(l=s.Sl(f[y],o))!==j&&l!==it){if(typeof(v=s.Sl(f[p=y+1],o))===j||v===it)if(1===F)v=0;else if(2===F)for(p=y+2;p<=M;p++)if(typeof(b=o[f[p]])!==j&&b!==it){v=b;break}typeof v!==j&&v!==it?(l=s.Jzt(f[y],{Width:n,Height:i},o,a,u),g=s.Jzt(f[p],{Width:n,Height:i},o,a,u),_=l.Width/2,c={X:l.X+_,Y:l.Y+_},m={X:g.X+_,Y:g.Y+_},d[y]={P1:c,P2:m}):y++}if(0<(w=d.length))for(t.strokeStyle=s.options.getColor(h.seriesColor),t.lineCap="round",t.lineWidth=s.Wzt(u),y=0;y<w;y++)(D=d[y])&&(t.beginPath(),c=D.P1,m=D.P2,t.moveTo(e+c.X,r+c.Y),t.lineTo(e+m.X,r+m.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,e,r){var n,i,o,a,u,r,s,f,y,c,e,n=this,i=n.options,o=n.setting.options,a=it,u=n.Sl(t,e),r=n.Qzt(e,r),s=r.length,f=i.getColor.bind(n);return typeof u!==j&&u!==it&&(n.Pzt!==ct&&n.Gzt!==-ct||n.qzt(e),u===n.Pzt&&o.showLow&&(a=f(o.lowMarkerColor)),typeof(a=u!==n.Gzt||!o.showHigh||typeof a!==j&&a!==it?a:f(o.highMarkerColor))!==j&&a!==it||(i.displayDateAxis?0===(y=d(r,t))&&o.showFirst&&(a=f(o.firstMarkerColor)):0===t&&o.showFirst&&(a=f(o.firstMarkerColor))),typeof a!==j&&a!==it||(i.displayDateAxis?(c=d(r,t))===s-1&&o.showLast&&(a=f(o.lastMarkerColor)):t===s-1&&o.showLast&&(a=f(o.lastMarkerColor))),typeof(a=u<0&&o.showNegative&&(typeof a===j||a===it)?f(o.negativeColor):a)!==j&&a!==it||(0===(e=i.sparklineType)?o.showMarkers&&(a=f(o.markersColor)):1!==e&&2!==e||(a=f(o.seriesColor)))),a===R||a===it?"Transparent":a},t.prototype.Vzt=function(t,e,r,n,i,o,a,u){for(var s,f,y,c,m,M,h,M,h,d,h,d,l,M,v,s=this,f={Width:n,Height:i},y=s.Qzt(o,a),c=y.length,m=s.options.sparklineType,v=0;v<c;v++)M=y[v],h=s.Xzt(M,o,a),M=s.Jzt(M,f,o,a,u),t.fillStyle!==h&&(t.fillStyle=h),0===m?(t.save(),h=e+M.X+M.Width/2,d=r+M.Y+M.Height/2,t.translate(h,d),t.rotate(45*et/180),t.fillRect(0-M.Width/2,0-M.Height/2,M.Width,M.Height),t.restore()):(h=e+M.X+M.Width/4,h=T(h),d=r+M.Y,l=M.Width/2,M=M.Height,t.fillRect(h,d,l,M))},t.prototype.Yzt=function(t,e,r,n,i,o,a,u){var s,f,a,n,i,a,o,s,f,s=this,f=s.setting&&s.setting.options;f&&f.displayXAxis&&s.$zt(o,a)&&(a={Width:n,Height:i},n=s.Zzt(u),i=a.Width-s.Zzt(u),o=a=T(s.tVt(a,o,u))+.5,s=s.options.getColor(f.axisColor),(f=u)<1&&(f=1),t.strokeStyle!==s&&(t.strokeStyle=s),t.lineWidth!==f&&(t.lineWidth=f),t.beginPath(),t.moveTo(e+n,r+a),t.lineTo(e+i,r+o),t.stroke())},t.prototype.nVt=function(t){var e,t,e=this.eVt(t);return e===-ct||(t=this.iVt(t))===ct||e===t||e*t<=0},t.prototype.$zt=function(t,e){var r,n,i,o,a,u,r=this.nVt(t);if(2===this.options.sparklineType&&(i=(n=this.Qzt(t,e)).length,!r)&&0<i)for(u=0;u<i;u++)if(typeof(a=t[o=n[u]])!==j&&a!==it)return!0;return r},t.prototype.rVt=function(t,e){var r=this.Lzt;return isNaN(r&&r.valueOf())&&this.oVt(t,e),this.Lzt},t.prototype.aVt=function(t,e){var r=this.Fzt;return isNaN(r&&r.valueOf())&&this.oVt(t,e),this.Fzt},t.prototype.oVt=function(t,e){for(var r,n,i,o,a,u,s,u,f,r=this,n=new Date(0,0,0),i=ct,o=r.Qzt(t,e),a=o.length,f=0;f<a;f++)s=e[u=o[f]],isNaN(s)||(u=r.Sl(u,t))!==it&&typeof u===j||isNaN(u)||typeof s!==j&&s!==it&&(n<s&&(n=s),s<i)&&(i=s);r.Fzt=n,r.Lzt=i},t.prototype.uVt=function(t,e,r,n){for(var i,o,a,u,s,f,y,c,m,M,h,d,l,e,i=this,o=i.rVt(e,r),a=i.aVt(e,r),u=[],c=i.Qzt(e,r),m=c.length,s=0;s<m;s++)(f=r[y=c[s]])&&!isNaN(f)&&u.push(f);if(u.sort(function(t,e){return t-e}),1<(M=u.length)&&o!==a){for(h=ct,l=void(d=0),s=1;s<M;s++)(f=(l=u[s])-u[s-1])<h&&0<f&&(h=f),d+=f;return e=(e=(t.Width-i.Zzt(n)-i.Zzt(n))*h/d/2)<2?2:e}return(t.Width-i.Zzt(n)-i.Zzt(n))/2},t.prototype.sVt=function(t,e,r,n){var i,e,i=this;return i.options.displayDateAxis?i.uVt(t,e,r,n):(e=i.Qzt(e,r).length,(t.Width-i.Zzt(n)-i.Zzt(n))/e)},t.prototype.cVt=function(t,e,r,n,i){var o,a,u,s,f,y,c,s,y,m,o=this,u=o.Zzt(i);return o.options.displayDateAxis?(a=o.sVt(t,r,n,i),(s=o.aVt(r,n))===(f=o.rVt(r,n))?u+a/2:(y=n[e])?(c=t.Width-u-o.Zzt(i),c-=a,s=s.valueOf()-f.valueOf(),u+T((y.valueOf()-f.valueOf())/s*c)):0):(a=o.sVt(t,r,n,i),y=d(o.Qzt(r,n),e),T(m=u+a*y))},t.prototype.fVt=function(t,e){var r,n,t,r=this,n=t.Width-r.Zzt(e)-r.Zzt(e);return n=at(n,0),t=t.Height-r.Zzt(e)-r.Zzt(e),{Width:n,Height:t=at(t,0)}},t.prototype.qzt=function(t){for(var e,r,n,i,e=this,r=t.length,i=0;i<r;i++)typeof(n=t[i])!==j&&n!==it&&((n="number"!=typeof n?0:n)<e.Pzt&&(e.Pzt=n),n>e.Gzt)&&(e.Gzt=n)},t.prototype.eVt=function(t){var e,t,r,e=this;return e.Gzt!==-ct&&e.Gzt||e.qzt(t),0===(r=(t=e.setting.options).maxAxisType)?e.Gzt:1===r?t.groupMaxValue:2===r?t.manualMax:e.Gzt},t.prototype.iVt=function(t){var e,t,r,e=this;return e.Pzt!==ct&&e.Pzt||e.qzt(t),0===(r=(t=e.setting.options).minAxisType)?e.Pzt:1===r?t.groupMinValue:2===r?t.manualMin:void 0},t.prototype.lVt=function(t,e,r,n){var t=this.fVt(t,n),n=this.eVt(r),i=this.iVt(r),o=n-i,a,u;if(n===i){if(0===n)return 0;o=ut(n)}return(a=(a=r[e])||0)*(u=t.Height/o)},t.prototype.hVt=function(t,e,r,n){var i,o,a,o,o,i=this,o=i.options.sparklineType;if(0===o)return i.lVt(t,e,r,n);if(1!==o)return 2===o?typeof(a=r[e])===j||a===it||0===a||isNaN(a)?0:(o=i.fVt(t,n),0<=a?o.Height/2:-o.Height/2):void 0;if(a=r[e],1===i.setting.options.displayEmptyCellsAs&&(typeof a===j||a===it))return 0;if((o=i.lVt(t,e,r,n))>-i.Bzt&&o<i.Bzt){if(0<a)return o+i.Bzt;if(a<0)return o-i.Bzt}return o},t.prototype.dVt=function(t,e,r){var n,i,o,e,a,e,n=this,i=n.fVt(t,r),o=n.eVt(e),e=n.iVt(e);if(o===-ct||e===ct)return t.Height/2;if(a=o-e,o===e){if(0===o)return t.Height/2;(a=o)<0&&(o=0)}return e=i.Height/a,n.Zzt(r)+o*e},t.prototype.tVt=function(t,e,r){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,e,r)},t.prototype.vVt=function(t,e,r,n){var i,t,n,o,a,t,a,u,i=this,t=i.fVt(t,n),n=i.eVt(r),o=i.iVt(r),a=n-o;if(n===o){if(0===n)return 0;a=n}return t=t.Height/a,typeof(a=i.Sl(e,r))!==j&&a!==it||(a=0),n!==o&&0<n*o?(u=0)<=a?(a-o)*t:(a-n)*t:a*t},t.prototype.mVt=function(t,e,r,n){var i,o,a,u,s,i=this,o=i.options.sparklineType;return 0===o?i.vVt(t,e,r,n):1===o?(a=i.vVt(t,e,r,n),-(u=i.Bzt)<a&&a<u&&0!==(s=typeof(s=i.Sl(e,r))!==j&&s!==it?s:0)?0<s?a+u:a-u:a):2===o?i.hVt(t,e,r,n):void 0},t.prototype.gVt=function(t,e,r,n,i){var o,a,n,u,s,f,y,f,y,s,t,r,o=this,a=o.sVt(e,r,n,i),n=o.cVt(e,t,r,n,i);return(a=T(a=a<0?0:a))%2==1&&(a+=1),u=o.hVt(e,t,r,i),s=o.tVt(e,r,i),f=o.eVt(r),y=o.iVt(r),f=f<(f=0)&&y<0?at(o.Zzt(i),s):0<=u?s-u:s,y=o.mVt(e,t,r,i),s=new _(n,f,a,ut(y)),0!==u&&(t=o.Zzt(i),s.Y<t&&s.Bottom<t+1?s.Height=T(s.Height+1):(r=e.Height-o.Zzt(i),s.Bottom>r&&s.Y>r-1&&(s.Y=r-y,s.Height=y))),s},t.prototype.Wzt=function(t){var t=this.setting.options.lineWeight*t;return t=t<1?1:t},t.prototype.Jzt=function(t,e,r,n,i){var o,a,n,i,t,u,r,o=this,a=o.Wzt(i);return++a<2&&(a=2),n=o.gVt(t,e,r,n,i),0===o.options.sparklineType&&(n.X=n.X+(n.Width-a)/2,typeof(i=o.Sl(t,r))!==j&&i!==it?(0<=i?n.Y-=a/2:n.Y=n.Bottom-a/2,n.Width=a,n.Height=a):(n.Width=0,n.Height=0)),o.setting.options.rightToLeft&&(t=n.X,r=(u=e.Width-t)-n.Width,n=new _(r,n.Y,n.Width,n.Height)),n},c.SparklineRender=t,c.SparklineExRenders={PIESPARKLINE:ee,AREASPARKLINE:ae,SCATTERSPARKLINE:se,BULLETSPARKLINE:Me,SPREADSPARKLINE:he,STACKEDSPARKLINE:pe,HBARSPARKLINE:we,VBARSPARKLINE:De,VARISPARKLINE:He,LOLLIPOPVARISPARKLINE:Ne,BOXPLOTSPARKLINE:ke,CASCADESPARKLINE:Pe,PARETOSPARKLINE:Ce,MONTHSPARKLINE:Ie,YEARSPARKLINE:Le,GAUGEKPISPARKLINE:Qe,HISTOGRAMSPARKLINE:or,IMAGESPARKLINE:ur}},canvas:function(t){t.exports=canvas}},n={},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e=t={},Object.defineProperty(e,"__esModule",{value:!0}),e.Slicers=e.Sparklines=e.Formatter=e.Commands=e.Common=void 0,i=o("./src/common/common.entry.ts"),e.Common=i,i=o("./src/plugins/commands/commands.entry.ts"),e.Commands=i,i=o("./src/plugins/formatter/formatter.entry.ts"),e.Formatter=i,i=o("./src/plugins/sparkline/sparkline.entry.ts"),e.Sparklines=i,i=o("./src/plugins/slicer/slicer.entry.ts"),e.Slicers=i,(a={}).Spread=t}(),t.exports=a.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,e,r)=>{t.exports=r("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={},t=i("./node_modules_local/@spreadjs/js-sheets-common/index.js"),(GC=void 0===GC?{}:GC).Spread=t})(),function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t:"function"==typeof define&&define.amd?define("@grapecity-software/spread-common",[],function(){return t}):"object"==typeof exports&&(exports.Spread=t.Spread)}(GC||{});
|
|
@@ -14483,6 +14483,7 @@ declare module GC{
|
|
|
14483
14483
|
* @property {boolean} [includeAutoMergedCells] - Whether to include the automatically merged cells when do save, default false.
|
|
14484
14484
|
* @property {boolean} [includeCalcModelCache] - [deprecated] Whether to include the extra data of calculation. Can be faster when open the file with those data, default false.
|
|
14485
14485
|
* @property {boolean} [includeUnusedNames] - Whether to include the unused custom name when do save, default true.
|
|
14486
|
+
* @property {boolean} [exportSharedFormula] - Whether to include the shared formula when do save, default true.
|
|
14486
14487
|
* @property {boolean} [includeEmptyRegionCells] - Whether to include any empty cells(cells with no data or only style) outside the used data range, default true.
|
|
14487
14488
|
* @property {string} [password] - Set the password to open the workbook.
|
|
14488
14489
|
*/
|
|
@@ -14495,6 +14496,7 @@ declare module GC{
|
|
|
14495
14496
|
rowHeadersAsFrozenColumns?: boolean;
|
|
14496
14497
|
columnHeadersAsFrozenRows?: boolean;
|
|
14497
14498
|
includeUnusedNames?: boolean;
|
|
14499
|
+
exportSharedFormula?: boolean;
|
|
14498
14500
|
includeEmptyRegionCells?: boolean;
|
|
14499
14501
|
includeAutoMergedCells?: boolean;
|
|
14500
14502
|
includeCalcModelCache?: boolean;
|
|
@@ -28637,7 +28639,7 @@ declare module GC{
|
|
|
28637
28639
|
* sheet.setCellType(1, 1, textCellType);
|
|
28638
28640
|
* ```
|
|
28639
28641
|
*/
|
|
28640
|
-
constructor();
|
|
28642
|
+
constructor(editorType?: GC.Spread.Sheets.CellTypes.EditorType);
|
|
28641
28643
|
}
|
|
28642
28644
|
}
|
|
28643
28645
|
|