@grapecity-software/spread-common 18.2.0 → 18.2.2

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 18.2.0
3
+ * SpreadJS Library 18.2.2
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 t,r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var r;!function(){"use strict";var t,n={"./src/common/common.entry.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),h=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||M(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,e=n("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return e.ft}}),i=n("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return i.lt}}),o=n("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return o.Uf}}),u=n("./src/common/util/datetimehelper.ts"),Object.defineProperty(r,"ct",{enumerable:!0,get:function(){return u.ct}}),Object.defineProperty(r,"B3",{enumerable:!0,get:function(){return u.getSR}}),a=n("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return a.st}}),s=n("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return s.$T}}),f=n("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return f.zf}}),c=n("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return c.rbush}}),y=n("./src/common/util/common.ts"),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),h(n("./src/common/util/common.ts"),r),m=n("./src/common/culture/cultureInfo.ts"),Object.defineProperty(r,"CultureInfo",{enumerable:!0,get:function(){return m.CultureInfo}}),Object.defineProperty(r,"CultureManager",{enumerable:!0,get:function(){return m.CultureManager}}),h(n("./src/common/util/functionhelper.ts"),r)},"./src/common/culture/cultureInfo.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x=this&&this.qKr||(P=function(t,r){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},P(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}P(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),P;function C(t){return t.split("\xa0").join(" ").toUpperCase()}function A(t){var r,n,e=[];for(r=0,n=t.length;r<n;r++)e[r]=C(t[r]);return e}function T(t,r,n){var e=C(t),i=r.indexOf(e);return-1===i&&(i=n.indexOf(e)),i}function O(t){if(t){var r=t.charCodeAt(0);if(r>=11904&&r<12032||r>=8208&&r<8252||r>=12288&&r<40960||r>=43360&&r<43392||r>=44032&&r<55215||r>=63744&&r<64256||r>=65280&&r<65535)return!0}return!1}function j(t,r,n){if(" "===t||n&&"\u3000"===t)return 0;var e=n&&n(t);return r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!n||e?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!n||e?5:4:e?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1}function E(t,r,n){var e,i,o,u,a,f;if(!t)return[];for(e=[t[0]],i=0,o=j(t[0],r,n),u=1;u<t.length;u++)a=j(t[u],r,n),g[f=o+""+a]&&e[++i]===s&&(e[i]=""),e[i]+=t[u],o=a;return e}function R(t,r,n){var e,i,o,u=this;for(i=0,o=r.length;i<o;i++)e=r[i],u[t][e]=n[i]}function I(t,r){var n;"object"==typeof document&&("function"!=typeof CustomEvent?(n=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):n=new CustomEvent("cultureChanged",{}),n.cultureInfo=t,a.gcCultureInfo=t,a.gcCultureObj=r,document.dispatchEvent(n))}Object.defineProperty(r,"__esModule",{value:!0}),r.CultureManager=r.XPt=r.CultureInfo=r.TimelineDateOrder=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/util/regexhelper.ts"),a="undefined"!=typeof window?window:n.g,s=void 0,f=null,c=e.lt.y0,y=e.lt.Dh,m=(new Date).getFullYear(),d=["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"],l=(M=["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(h=["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"]),c(M,(function(t,r){c(h,(function(t,n){t<h.length-4&&l.push(r+" "+n)}))})),l=l.concat(d),c(d,(function(t,r){c(h,(function(t,n){t<h.length-4&&l.push(r+" "+n)}))})),function(t){t[t.year=1]="year",t[t.quarterOrMonth=2]="quarterOrMonth",t[t.date=3]="date"}(v=r.TimelineDateOrder||(r.TimelineDateOrder={})),g={"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=function(){function t(){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.fontScriptCode=s,this.predefinedFormats={},this.TimelineDateOrder=[v.quarterOrMonth,v.date,v.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=s}return t.prototype.mTe=function(){return[" "]},t.prototype.FAe=function(t){var r=this,n=r.mTe(),e={lineBreakingChar:n};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,e):E(t,e)},t.prototype.hse=function(t){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var r={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(t,r)}return E(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},t.prototype.qPt=function(){var t,r,n,e;return this.$Pt||(n=(n=[r=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),r+" h:mm",r+" h:mm:ss",r+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(l),1041===this.id&&(e=t.eraFormatter,n=(n=n.concat(this.QPt)).concat(e)),n=n.concat(t.preselectedFormatters),this.$Pt=n),this.$Pt},t.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=A(r.DateTimeFormat.monthNames),r.eGt=A(r.DateTimeFormat.monthGenitiveNames)),T(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=A(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=A(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),T(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=A(r.DateTimeFormat.dayNames)),r.uGt.indexOf(C(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=A(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(C(t))},t}(),r.CultureInfo=p,b=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,n=p.eras;if(n!==s){for(t=[],r=0;r<n.length;r++)t[r]=new Date(n[r].startDate.replace(/-/g,"/"));return t}return this.vGt},t.mGt=function(r){var n,e,i,o,u;switch(r){case"g":n="symbol",e=t.gGt;break;case"gg":n="abbreviation",e=t.pGt;break;case"ggg":n="name",e=t.DEt;break;default:return[]}if(o=[],(i=p.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][n];return o}return e},t.hGt=function(){var t,r=p.eras;return r!==s&&r.length>0?((t=new Date(r[r.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},t.lGt=function(){var t=p.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=p.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,n,e,i=p.eras;if(i!==s){for(t=[],r=1;r<i.length;r++)n=new Date(i[r-1].startDate.replace(/-/g,"/")),e=new Date(i[r].startDate.replace(/-/g,"/")),t[r-1]=e.getFullYear()-n.getFullYear()+1;return t[r-1]=99,t}return this.SGt},t.TGt=function(r){var n,e,i={AGt:-1,IGt:-1};if(!t.fGt(r)){if(!(r>t.hGt()))return i;r=t.hGt()}for(n=0;n<t.wGt();n++)if(r<(e=n+1!==t.wGt()?t.dGt()[n+1]:t.xGt(t.hGt(),1))){i.AGt=n,i.IGt=r.getFullYear()-t.dGt()[n].getFullYear()+1;break}return i},t.xGt=function(t,r){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return n.setMilliseconds(n.getMilliseconds()+r),new Date(n.valueOf())},t.NGt=function(r,n){var e;return t.dGt()[r].getFullYear()+n-1},t.kGt=function(r,n){var e,i;for(n=n.toUpperCase(),e=t.mGt(r),i=0;i<e.length;i++)if(e[i]===n)return i;return-1},t.DGt=function(r,n,e){var i,o,u,a=t,s=a.TGt(n),f=s.AGt;if(f>=0&&(i=a.mGt(r)).length>0)return i[f];if((o=s.IGt)>=0){if("1"===(u=o.toString())&&e)return u="\u5143";if("ee"===r)return 1===u.length&&(u="0"+u),u;if("e"===r)return u}return""},t.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)],t.MGt=5,t.SGt=[45,15,64,31,99],t.bGt=new Date(2117,11,31,23,59,59),t.yGt=new Date(1868,8,8),t._Gt=["1,m","2,t","3,s","4,h","5,r"],t.EGt=[0,1,2,3,0,1,2,3],t.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],t.gGt=["M","T","S","H","R"],t.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],t.jGt=99,t.eraExcelFormatter="[$-ja-JP-x-gannen]",t.eraInternalFormatter="[$-411]",t}(),r.XPt=b,F=function(t){function r(){var r,n=t.call(this)||this;return R.call(n,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],R.call(n,"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",!1,r]),n.DateTimeFormat.defaultDatePattern=n.DateTimeFormat.shortDatePattern+" H:mm:ss",n.name=function(){return"en-US"},n.displayName="English (United States)",n.id=1033,n.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"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},n}return x(r,t),r}(p),_=function(t){function r(){var r,n,e,i=t.call(this)||this,o={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:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},u={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"};return R.call(i,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",o,u]),r=["1","2","3","4","5","6","7","8","9","10","11","12",""],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",""],e=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],R.call(i,"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"],r,r,"\u5348\u524d",!1,["\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'",n,n,"\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",e,"ggge/mmmm/d\u65e5"]),i.DateTimeFormat.eras=!0,i.DateTimeFormat.defaultDatePattern=i.DateTimeFormat.shortDatePattern+" "+i.DateTimeFormat.longTimePattern,i.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'],i.name=function(){return"ja-JP"},i.id=1041,i.displayName="Japanese (Japan)",i.isJCKCulture=!0,i.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"},shortcut:{Number:"0.00",Currency:"[$\xa5-411]#,##0.00",Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},i.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],i.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},i.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,r){return E(t,r,O)}},i.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],i}return x(r,t),r}(p),w=function(t){function r(){var r,n,e,i=t.call(this)||this,o={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:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},a={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"};return R.call(i,"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",o,a]),r=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],n=["\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",""],e=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],R.call(i,"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"],r,r,"\u4e0a\u5348",!1,["\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'",n,n,"\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",e]),i.DateTimeFormat.defaultDatePattern=i.DateTimeFormat.shortDatePattern+" "+i.DateTimeFormat.longTimePattern,i.name=function(){return"zh-cn"},i.id=2052,i.displayName="Chinese (China)",i.isJCKCulture=!0,i.localeCompare=function(t,r){var n=t.localeCompare(r,"zh");return n<0&&t>="\u4e00"&&r<"\u4e00"||n>0&&r>="\u4e00"&&t<"\u4e00"?-n:n},i.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"},shortcut:{Number:"0.00",Currency:"[$\xa5-804]#,##0.00",Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},i.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],i.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},i.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return E(t,r,O)}},i.normalizeDateTimeString=function(t){var r,n;return u.$T.qT("^([0-9]{1,2}|[0-9]{4})\u5e74[0-9]{1,2}\u6708$").test(t)?(r=t.split("\u5e74"))[1].replace("\u6708","")+"/1/"+r[0]:u.$T.qT("^[0-9]{1,2}\u6708[0-9]{1,2}\u65e5$").test(t)?(r=t.split("\u6708"))[0]+"/"+r[1].replace("\u65e5","")+"/"+m:u.$T.qT("^(\u4e0a\u5348|\u4e0b\u5348)?[0-9]{1,2}\u65f6[0-9]{1,2}\u5206([0-9]{1,2}\u79d2)?$").test(t)?((n=(n=t.replace("\u65f6",":").replace("\u5206",":").replace("\u79d2","")).endsWith(":")?n+"00":n).startsWith("\u4e0a\u5348")&&(n=n.replace("\u4e0a\u5348","")+" AM"),n.startsWith("\u4e0b\u5348")&&(n=n.replace("\u4e0b\u5348","")+" PM"),n):t.includes("\u4e0a\u5348")||t.includes("\u4e0b\u5348")?t.replace("\u4e0a\u5348","am").replace("\u4e0b\u5348","pm"):f},i}return x(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(p),D=function(t){function r(){var r,n,e=t.call(this)||this,i={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"]}},o={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"};return R.call(e,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,i,o]),r=["1","2","3","4","5","6","7","8","9","10","11","12",""],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",""],R.call(e,"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"],r,r,"\uc624\uc804",!1,["\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"]),e.DateTimeFormat.defaultDatePattern=e.DateTimeFormat.shortDatePattern+" "+e.DateTimeFormat.longTimePattern,e.name=function(){return"ko-kr"},e.id=1042,e.displayName="Korean (Korea)",e.isJCKCulture=!0,e.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"},shortcut:{Number:"0.00",Currency:"[$\u20a9-412]#,##0.00",Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},e.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],e.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},e}return x(r,t),r}(p),H={invariant:new p,"en-us":new F,"ja-jp":new _,"zh-cn":new w,"ko-kr":new D},N={},$=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],k=["wmk1","wmk2"],S=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r){if(0===arguments.length)return t.RGt;r&&t.RGt!==r&&(t.RGt=r.toLowerCase(),this.KPt++,I(t.RGt,t.OGt.getCultureInfo()))},t.prototype.addCultureInfo=function(t,r,n){var e,o,u,a,s;if(r&&r instanceof p){if(e=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,o=r.NumberFormat.arrayListSeparator,u=r.NumberFormat.arrayGroupSeparator,e===r.NumberFormat.listSeparator||u===o)throw(a=new i.ResourceManager(i.SR)).getResource().Exp_Separator;H[t.toLowerCase()]=r}n&&"object"==typeof n&&(s=t.toLowerCase(),N[s]=y(!0,{},n),this.KPt++)},t.prototype.getCultureInfoDict=function(){return H},t.prototype.getCultureInfo=function(r){var n,e,i;if(0===arguments.length)return H[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),e=f,n=H)if(i===r||n[i].id!==s&&n[i].id===r){e=n[i];break}return e},t.prototype.getLanguage=function(t){if("string"==typeof t){var r=t.toLowerCase();return N[r]}return f},t.prototype.getResources=function(t){var r,n=this.culture().toLowerCase();return t!==f&&t!==s||(t=n),"string"==typeof t&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):f},t.prototype.BGt=function(t){var r,n="PivotTables",e="ReportSheet",i="GanttSheet",o="DataChart",u="Sheets",a="CalcEngine",s="Functions",f="TableFunctions",c=y(!0,{},t);return c[n]&&this.LGt(c[n],k),c[e]&&this.LGt(c[e],k),c[i]&&this.LGt(c[i],k),c[o]&&this.LGt(c[o],k),c[u]&&this.LGt(c[u],$),(r=c[a])&&(c[s]=r.wmt,c[f]=r.d2t,delete r.wmt,delete r.d2t),c},t.prototype.LGt=function(t,r){var n,e,i;for(n=0,e=r;n<e.length;n++)delete t[i=e[n]]},t.prototype.FGt=function(t,r,n){var e,i,u=N[t.toLowerCase()];for(e in r)o.Uf.OS($,e)||null!==(i=this.PGt(u,e,n))&&"string"==typeof i&&"string"==typeof r[e]&&(r[e]=i);r.wmt&&u.Functions&&this.GGt(u.Functions,r.wmt),r.d2t&&u.TableFunctions&&y(!0,r.d2t,u.TableFunctions)},t.prototype.PGt=function(t,r,n){var e,i;if(t.hasOwnProperty(r))return t[r];if(n&&(e=t[n])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];for(i in t)if((e=t[i])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];return null},t.prototype.GGt=function(t,r){var n,e,i,o,u,a,s,f={};for(n in r)if(t.hasOwnProperty(n))for(a in e=r[n],i=t[n],o=e.parameters,u=i.parameters,e.description=i.description,o)u.hasOwnProperty(a)&&"string"==typeof(s=u[a])&&(o[a].name=s);return f},t.prototype.Fe=function(r){var n=this.getCultureInfo(r);return n||(n=H[t.RGt])||(n=new p),n},t.prototype.xat=function(t,r){var n=this.getCultureInfo(t)||this.getCultureInfo("en-US"),e=n.DateTimeFormat,i=e.filterDialogDateFormatter;return(r.indexOf("g")>=0||r.indexOf("e")>=0)&&(i=e.EraFilterDialogDateFormatter||i),i},t.RGt="en-us",t}(),r.CultureManager=S.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var n,e,i;function o(t,r){var e,i;for(e in r)r.hasOwnProperty(e)&&(i=r[e],Array.isArray(i)?(t[e]=[],o(t[e],r[e])):i!==n&&"object"==typeof i?(t[e]={},o(t[e],r[e])):t[e]=r[e])}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,n=null,e=void 0,i=function(){function t(){}return t.Eit=function(t,r,n){t.splice(r,0,n)},t.ZP=function(t,r){t.push(r)},t.OS=function(t,r){return t.indexOf(r)>-1},t.VP=function(t,r){var n=t.indexOf(r);n>-1&&t.splice(n,1)},t.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},t.hD=function(t,r,n){return t.indexOf(r,n)},t.d5=function(t,r,e){if(!(r<0))for(var i=0;i<e&&r+i<t.length;i++)t[r+i]=n},t.N2t=function(t,r){var i,o;for(r<0&&(r=-1),o=i=r+1;o<t.length;o++)if(t[o]!==e&&t[o]!==n)return o;return-1},t.tR=function(t){return t&&t.length},t.Gf=function(t){var r=[];return o(r,t),r},t}(),r.Uf=i},"./src/common/util/colorhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m;function M(t,r,n){return n<0&&(n+=240),n>240&&(n-=240),n<40?t+((r-t)*n+20)/40:n<120?r:n<160?t+((r-t)*(160-n)+20)/40:t}function h(t,r,n){var e,i,o,u,a;return 0===n?e=i=o=s(255*r/240+"",10):(u=void 0,a=void 0,e=d(u=2*r-(a=r<=120?s((r*(240+n)+120)/240+""):r+n-s((r*n+120)/240+"")),a,t+80),i=d(u,a,t),o=d(u,a,t-80)),{a:255,r:e,g:i,b:o}}function d(t,r,n){return o(s((255*M(t,r,n)+120)/240+""),255)}function l(t){var r,n,e,i,o,u,a,s,c,m;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),e="",i="",6===(n=r.length)||8===n?(e=r.substr(0,6),8===n&&(i=r.substr(6,2))):3!==n&&4!==n||(e=(o=r.split(3===n?/(.)/:/(..)/)).filter(Boolean).map((function(t){return parseInt(3===n?t+t:t,16)})).map((function(t){return t.toString(16).padStart(2,"0")})).join(""),4===n&&(i=o[3]+o[3])),[u=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),c=i?parseInt(i,16):255]):t.toLowerCase()in f?f[t.toLowerCase()]:null!==(m=y.exec(t))?(c=void 0===m[4]?255:255*+m[4],[m[1],m[2],m[3],c]):null}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,e=n("./src/common/util/numberhelper.ts"),i=e.st.VGt,o=Math.min,u=Math.max,a=Math.abs,s=parseInt,f={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]},c=function(){function t(t){var r,n,e,i,a=this,f=t.r,c=t.g,y=t.b,m=u(u(f,c),y),M=o(o(f,c),y),h=m+M;a.HGt=s((240*h+255)/510+"",10),0===(r=m-M)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+h/2)/h+"",10):a.zGt=s((240*r+(510-h)/2)/(510-h)+"",10),n=(40*(m-f)+r/2)/r,e=(40*(m-c)+r/2)/r,i=(40*(m-y)+r/2)/r,a.wv=s(f===m?i-e+"":c===m?80+n-i+"":160+e-n+"",10),a.wv<0&&(a.wv+=240),a.wv>240&&(a.wv-=240))}return t.prototype.YGt=function(t){var r=this,n=r.HGt,e=r.ZGt(r.HGt,500,!0);return h(r.wv,n+(e-n)*t,r.zGt)},t.prototype.ZGt=function(t,r,n){return 0===r?t:n?r>0?(t*(1e3-r)+241*r)/1e3:t*(r+1e3)/1e3:((t+=240*r/1e3)<0&&(t=0),t>240&&(t=240),t)},t}(),y=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,m=function(){function t(){}return t.j=function(t){var r=t.a,n=t.r,e=t.g,o=t.b;return 3===arguments.length&&(r=255,n=arguments[0],e=arguments[1],o=arguments[2]),4===arguments.length&&(r=arguments[0],n=arguments[1],e=arguments[2],o=arguments[3]),255===r?"#"+i(n,!0,2)+i(e,!0,2)+i(o,!0,2):"rgba("+n+","+e+","+o+","+r+")"},t.Tv=function(t,r){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(r):t.a===r.a&&t.r===r.r&&t.g===r.g&&t.b===r.b},t.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},t.Km=function(t,r){var n,e=255-a(t.r-r.r),i=255-a(t.g-r.g),o=255-a(t.b-r.b),u=a(t.a-r.a);return!!((n=((e/=255)+(i/=255)+(o/=255))/3)>=.9&&u<=.05)},t.Uv=function(r){var n=255^r.r,e=255^r.g,i=255^r.b;return t.j(r.a,n,e,i)},t.WGt=function(r){var e,i,o,u;return"object"!=typeof document?l(r):((e=t.xf)||(i=document.createElement("canvas"))&&i.getContext&&(e=t.xf=i.getContext("2d",{willReadFrequently:!0})),e||((o=n("canvas"))&&o.createCanvas&&(i=o.createCanvas(2,2),e=t.xf=i.getContext("2d")),e)?(e.clearRect(1,1,1,1),e.fillStyle=r,e.fillRect(1,1,1,1),(u=e.getImageData(1,1,1,1))?u.data:null):l(r))},t._=function(r){var n,e,i,o,u;return r instanceof t||null!==r&&"object"==typeof r?r:(n=0,e=0,i=0,o=0,r&&(u=t.WGt(r))&&(e=u[0],i=u[1],o=u[2],n=u[3]),{a:n,r:e,g:i,b:o})},t.Cv=function(r,n){var e,i;return 0===n?r:(e=new c(r),i=s((n>0?(240-e.HGt)*n:e.HGt*n)+"",10),t.QGt(e.wv,e.HGt+i,e.zGt))},t.YGt=function(r,n){var e=t._(r),i=new c(e),o=i.YGt(n);return t.j(o)},t.Dz=M,t.QGt=h,t}(),r.ft=m},"./src/common/util/common.ts":function(t,r,n){var e,i,o,u,a;function s(t,r,n,e){var i,o,u,a,s;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=void 0,u=n;u<r;u++)void 0!==t[u]&&i.push(u);for(o=i.length,u=0;u<o;u++)s=t[a=i[o-u-1]],t[a]=null,t[Math.floor(a)+e]=s}}function f(t,r,n,e){var i,o,u,a,s,f;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=n+e,a=void 0,a=n;a<r;a++)void 0!==t[a]&&(n<=a&&a<u?t[a]=null:a>=u&&i.push(a));for(o=i.length,a=0;a<o;a++)f=t[s=i[a]],t[s]=null,t[Math.floor(s)-e]=f}}function c(t,r){return t.hasOwnProperty(r)}function y(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.X8=r.J8=r.ResourceManager=r.SR=void 0,e=n("./src/common/culture/cultureInfo.ts"),i=n("./src/common/util/util.res.en.ts"),o=n("./src/common/util/types.ts"),r.SR={en:i},u=o.lt.Dh,a=function(){function t(t,r){this.res=t,this.KGt=r,this.JPt=e.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,r),this.KPt=0}return t.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},t.prototype.XGt=function(t,r){var n,i;r&&(i=(n=e.CultureManager.culture()).toLowerCase(),this.JPt[i]=this.JPt[i]||{},this.JPt[i][r]=t,e.CultureManager.JPt=this.JPt)},t.prototype.JGt=function(t,r){var n,i,o,a=e.CultureManager.culture();if(t&&a){if(n=e.CultureManager.KPt,this.KPt===n&&!r)return;return this.KPt=n,e.CultureManager.getLanguage(a)?(i=u(!0,{},t.en),e.CultureManager.FGt(a,i,this.KGt),i):(o=a.substr(0,2).toLowerCase(),t.hasOwnProperty(o)?t[o]:t.en)}return{}},t}(),r.ResourceManager=a,r.J8=s,r.X8=f,r.kh=c,r.ut=y},"./src/common/util/datetimehelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g;function p(t,r){if(e.HandleExcelSpecialDate)return e.HandleExcelSpecialDate.apply(null,[t,r]);switch(r){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();default:return}}function b(t,n,e,i){var o,a,s,c,y,m,l,v,g,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E=e.DateTimeFormat,R=E.Calendar.convert;if(!n||!n.length)return e&&e.name.length?R?b(t,E.fullDateTimePattern,e):t.toLocaleString():t.toString();function I(){return y||m||(y=l.test(n),m=M),y}function B(t,r){return _?_[r]:p(t,r)}for(o=E.eras,s="",l=/([^d]|^)(d|dd)([^d]|$)/g,v=0,g=/\/|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,!(a="s"===n)&&R&&(_=R.fromGregorian(t)),w=-2,D=-2,H={y4:""},N=0;$=g.lastIndex,k=g.exec(n),S=n.slice($,k?k.index:n.length),H.y4="",v+=F(S,H),s+=H.y4,k;N++)if(v%2!=1)switch(x=B(t,0),P=t.getDay(),C=t.getHours(),A=t.getMinutes(),T=t.getSeconds(),O=t.getMilliseconds(),j=t.getTimezoneOffset(),k[0]){case"dddd":s+=E.dayNames[P];break;case"ddd":s+=E.abbreviatedDayNames[P];break;case"dd":y=M,s+=f(B(t,2),2);break;case"d":y=M,s+=B(t,2);break;case"MMMM":s+=E.monthGenitiveNames&&I()?E.monthGenitiveNames[B(t,1)]:E.monthNames[B(t,1)];break;case"MMM":s+=E.abbreviatedMonthGenitiveNames&&I()?E.abbreviatedMonthGenitiveNames[B(t,1)]:E.abbreviatedMonthNames[B(t,1)];break;case"MM":s+=f(B(t,1)+1,2);break;case"M":s+=B(t,1)+1;break;case"yyyy":case"yyy":s+=w>=0?u.XPt.DGt("ee",t,i):f(_?_[0]:x,4);break;case"yy":s+=w>=0?u.XPt.DGt("ee",t,i):f((_?_[0]:x)%100,2);break;case"y":s+=w>=0?u.XPt.DGt("e",t,i):((_?_[0]:x)%100).toString();break;case"hh":0===(c=C%12)&&(c=12),s+=f(c,2);break;case"h":0===(c=C%12)&&(c=12),s+=c;break;case"HH":s+=f(C,2);break;case"H":s+=C.toString();break;case"mm":s+=f(A,2);break;case"m":s+=A.toString();break;case"ss":s+=f(T,2);break;case"s":s+=T.toString();break;case"tt":s+=C<12?E.amDesignator:E.pmDesignator;break;case"t":s+=(C<12?E.amDesignator:E.pmDesignator).charAt(0);break;case"f":case"0":s+=f(O,3).charAt(0);break;case"ff":case"00":s+=f(O,3).substr(0,2);break;case"fff":case"000":s+=f(O,3);break;case"z":s+=((c=j/60)<=0?"+":"-")+h(d(c));break;case"zz":s+=((c=j/60)<=0?"+":"-")+f(h(d(c)),2);break;case"zzz":s+=((c=j/60)<=0?"+":"-")+f(h(d(c)),2)+":"+f(d(j%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(w===N-1){w=N;break}s+=u.XPt.DGt(k[0],t,i),w=N;break;case"e":case"ee":if(!o){s+=f(_?_[0]:x,4);break}if(D===N-1){D=N;break}s+=u.XPt.DGt(k[0],t,i),D=N;break;case"/":s+=E.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(k[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=k[0]}else s+=k[0];return s.toString()}function F(t,r){var n,e,i,o=0,u=m;for(n=0,e=t.length;n<e;n++)switch(i=t.charAt(n)){case'"':u?r.y4+="'":o++,u=m;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=m}return o}function _(t,r){var n,e=new Date,i=t.DateTimeFormat.eras;return i&&r<100&&(r+=(n=u.XPt.TGt(e).IGt)-n%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function w(){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 D(t,n,e){var i,u,a,s,f,y,m,M,h,d,l;if(t.qGt){if(t.qGt[n])return t.qGt[n]}else t.qGt={};for(i=(i=(i=n).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),u="^",a={y4:""},s=[],f=0,y=0,m=/\/|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;(M=m.exec(i))!==c;)if(a.y4="",h=i.slice(f,M.index),f=m.lastIndex,y+=F(h,a),u+=a.y4,y%2!=1){switch(M[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":u+="(\\D+)";break;case"tt":case"t":u+="(\\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":u+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":u+=e?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":u+="(\\d{2}|\\d{4})";break;case"fff":case"000":u+="(\\d{3})";break;case"ff":case"00":u+="(\\d{2})";break;case"f":case"0":u+="(\\d)";break;case"zzz":u+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":u+="([+-]?\\d\\d?)";break;case"/":u+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,r.getSR)().Exp_InvalidDateFormat)}o.Uf.ZP(s,M[0])}else u+=M[0];return a.y4="",F(i.slice(f),a),u+=a.y4,l={$Gt:d=(u+="$").toString().replace(/\s+/g,"\\s+"),QMt:s,tUt:new RegExp(d)},t.qGt[n]=l,l}function H(t){var r=t.getTimezoneOffset();return-485===r&&(r=-485-43/60),-321===r&&(r=-321-10/60),-507===r&&(r=-507-52/60),-402===r&&(r=-402-4/60),r}Object.defineProperty(r,"__esModule",{value:!0}),r.ct=r.getSR=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/stringhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/culture/cultureInfo.ts"),a=n("./src/common/util/types.ts"),s=a.lt.ht,f=i.zf.B9t,c=null,y=parseInt,m=!1,M=!0,h=Math.floor,d=Math.abs,l=new e.ResourceManager(e.SR,"Common"),r.getSR=l.getResource.bind(l),v={},g=function(){function t(){}return t.L9t=function(t,r,n,e){return n||(n=u.CultureManager.Fe()),b(t,r,n,e)},t.Pe=function(t,r,n){return b(t,r,n||u.CultureManager.Fe())},t.Mjt=function(r,n,e){var i,o,u,a,s,f=m;for((s=e).slice(1).forEach((function(t){t&&(f=!0)})),f||(s=s.concat(n.qPt())),o=s.length,i=1;i<o;i++)if((a=s[i])&&(f=M,u=t.nUt(r,a,n)))return u;return c},t.yU=function(r,n,e){var i,o;return n||e||void 0===(o=v[r])?(i=n?[r,n]:[r],o=t.Mjt(r,e||u.CultureManager.Fe(),i),n||e||(v[r]=o),o?new Date(o):o):o?new Date(o):o},t.Z6t=function(r,n){return t.Mjt(r,u.CultureManager.Fe("invariant"),[r,n])},t.nUt=function(t,r,n){var e,o,a,s,f,M,h,d,l,v,g,p,b,F,w,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I;if(t=t.trim(),(s=(a=D(e=n.DateTimeFormat,r,o=1041===n.id)).tUt.exec(t))===c)return c;for(f=a.QMt,M=c,h=c,d=c,l=c,v=c,g=0,b=0,F=0,w=0,H=c,N=m,$=m,k=0,S=f.length;k<S;k++)if(x=s[k+1])switch(f[k]){case"dd":case"d":if((l=y(x,10))<1||l>31)return c;break;case"MMMM":if((d=n.tGt(x))<0||d>11)return c;break;case"MMM":if((d=n.iGt(x))<0||d>11)return c;break;case"M":case"MM":case"%M":if((d=y(x,10)-1)<0||d>11)return c;break;case"e":case"ee":if((h=o&&"\u5143"===x?1:_(n,y(x,10)))<0||h>9999)return c;break;case"y":case"yy":case"yyy":case"yyyy":if((h=y(x,10))<0||h>9999)return c;break;case"h":case"hh":case"H":case"HH":if((g=y(x,10))<0)return c;break;case"m":case"mm":if((b=y(x,10))<0||b>59)return c;break;case"s":case"ss":if((F=y(x,10))<0||F>59)return c;break;case"tt":case"t":if(N=(P=x.toUpperCase())===e.pmDesignator.toUpperCase(),$=P===e.amDesignator.toUpperCase(),!N&&!$)return c;break;case"f":case"0":if((w=100*y(x,10))<0||w>999)return c;break;case"ff":case"00":if((w=10*y(x,10))<0||w>999)return c;break;case"fff":case"000":if((w=y(x,10))<0||w>999)return c;break;case"dddd":if((v=n.aGt(x))<0||v>6)return c;break;case"ddd":if((v=n.sGt(x))<0||v>6)return c;break;case"zzz":if(2!==(C=x.split(/:/)).length)return c;if((p=y(C[0],10))<-12||p>13)return c;if((A=y(C[1],10))<0||A>59)return c;H=60*p+(i.zf.fJ(x,"-")?-A:A);break;case"z":case"zz":if((p=y(x,10))<-12||p>13)return c;H=60*p;break;case"g":case"gg":case"ggg":if(!(T=x)||!e.eras)return c;if((M=u.XPt.kGt(f[k],T))<0)return c}if(j=(O=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=e.Calendar.convert)&&(E=R.fromGregorian(j)),R||(E=[j.getFullYear(),j.getMonth(),j.getDate()]),h===c?h=E[0]:h<100&&(e.eras&&M!==c?h=u.XPt.NGt(M||0,h):h+=h>=30?1900:2e3),d===c&&(d=E[1]),l===c&&(l=O?E[2]:1),R){if((j=R.toGregorian(h,d,l))===c)return c}else{if(j.setFullYear(h,d,l),j.getDate()!==l)return c;if(v!==c&&j.getDay()!==v)return c}return N&&g<12?g+=12:$&&12===g&&(g=0),j.setHours(g,b,F,w),H!==c&&(I=j.getMinutes()-(H+j.getTimezoneOffset()),j.setHours(j.getHours()+I/60,I%60)),j},t.Y0=function(t){var r=t-25569,n=new Date(864e5*r),e=H(n),i=Math.round(864e5*(t-25569+e/1440)),o=new Date(i),u=e>=0?1:-1,a=new Date(i+36e5*u),s=H(a);return d(e-s)>=60?new Date(i+60*(s-e)*1e3):o},t.dJ=function(r){if("/OADate("===r.substr(0,8)){var n=parseFloat(r.substr(8,r.length-10));return t.Y0(n)}},t.Q0=function(r){return"/OADate("+t.o0(r)+")/"},t.o0=function(t){if(s(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=H(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t._DT=function(n){var e,i,o,u=c,a=M;if(s(n)?u=t.Y0(0):n instanceof Date?u=new Date(n.valueOf()):"string"==typeof n?((e=t.yU(n))||(isNaN(n)?t.u6t(n)?a=m:(e=new Date(n),isNaN(e.valueOf())&&(a=m),(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(n.replace(/ |\n/g,"").trim()))&&4===o.length&&(-1!==o.indexOf(e.getFullYear().toString())&&-1!==o.indexOf((e.getMonth()+1).toString())&&-1!==o.indexOf(e.getDate().toString())||(a=m))):(e=t.Y0(parseFloat(n)))||(a=m)),u=e):"number"==typeof n?u=t.Y0(n):a=m,a)return u;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){var n=u.CultureManager.Fe().DateTimeFormat,e=t.eUt,i=function(t,r){var n=0;return r.forEach((function(r){r&&t.indexOf(r)>-1&&n++})),n>1},o=function(t,r){if(t&&t.indexOf(" ")>-1){var n=t.split(" "),e=n.length;return e>=2&&r.indexOf(n[e-2])<=-1&&!isNaN(n[e-1])}return!1},a=function(t){var r=!1;return e.forEach((function(n){t.indexOf(n)>-1&&(r=!0)})),r};return i(r,n.monthNames)||i(r,n.abbreviatedMonthNames)||i(r,n.dayNames)||i(r,n.abbreviatedDayNames)||o(r,n.monthNames.concat(n.abbreviatedMonthNames))||a(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t.eUt=["@","#","!","`","^","$","*","(",")","&"],t}(),r.ct=g},"./src/common/util/functionhelper.ts":function(t,r,n){var e,i,o,u;function a(t){return t}function s(t,r,n,a,s,f,c,y,m,M,h){var d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I=n[o],B=n[u],L=r[o],G=r[u],z=a[o],K=a[u],J=1===B,V=1===G;if(L===I&&G===B){for(P=0,C=0,A=0,T=0,F=I*B,d=0;d<I;d++)for(l=0;l<B;l++){if(g=f(n[d][l]),p=f(r[d][l]),t&&(i(g)||i(p)))return m;P+=g,C+=g*g,A+=p=M(p),T+=g*p}for(O=F*T-P*A,_=s?(A*C-P*T)/(F*C-P*P):0,((j=(b=s?O/(F*C-P*P):T/C).toString()).indexOf("000000000000")>1||j.indexOf("999999999999")>1)&&(b=e.st.E8(b,12),_=e.st.E8(_,12)),w=[],d=0;d<z;d++)for(w[d]=[],l=0;l<K;l++){if(g=f(a[d][l]),t&&i(g))return m;w[d][l]=0===O?r[0][0]:h(e.st.Jme(b*g,_))}return c?new c(w):w}if(V&&L===I||1===L&&G===B){for(g=[],p=[],S=B+1,x=B+2,d=0;d<I;d++){if(_=f(H=V?r[d][0]:r[0][d]),t&&i(_))return m;p[d]=J?M(_):_}for(d=0;d<I;d++)for(g[d]=[],l=0;l<B;l++){if(_=f(n[d][l]),t&&i(_))return m;g[d][l]=_}for(E=[],b=0;b<S;b++)for(E[b]=[],F=0;F<x;F++)E[b][F]=0;for(v=0;v<I;v++)for(E[0][S]+=p[v],d=0;d<B;d++)for(H=d+1,E[0][H]+=g[v][d],E[H][0]=E[0][H],E[H][S]+=g[v][d]*p[v],l=d;l<B;l++)E[$=l+1][H]+=g[v][d]*g[v][l],E[H][$]=E[$][H];for(E[0][0]=I,D=R=s?0:1;D<S;D++){if(t){if(0===E[D][D]){for(k=!1,l=D+1;!k&&l<S;l++)if(0!==E[l][D]){for(v=0;v<x;v++)$=E[D][v],E[D][v]=E[l][v],E[l][v]=$;k=!0}if(!k)return y}}else{for(d=D;d<S&&0===E[d][D];)d++;if(d>=S)return y;for(N=R;N<x;N++)H=E[D][N],E[D][N]=E[d][N],E[d][N]=H}for(H=1/E[D][D],N=R;N<x;N++)E[D][N]*=H;for(d=R;d<S;d++)if(d!==D)for(H=-E[d][D],N=0;N<x;N++)E[d][N]+=H*E[D][N];s||(E[0][S]=0)}for(w=[],V||(w[0]=[]),d=0;d<z;d++){for(V&&(w[d]=[]),H=E[0][S],l=0;l<B;l++){if(_=f(V?a[d][l]:a[l][d]),t&&i(_))return m;H+=E[l+1][S]*_}V?w[d][0]=h(H):w[0][d]=h(H)}return c?new c(w):w}return y}function f(t,r,n,e,i,o,u,f){return s(!0,t,r,n,e,i,o,f,u,a,a)}function c(t,r,n,e,i,f,c){var y,m;for(y=0;y<t[o];y++)for(m=0;m<t[u];m++)if(t[y][m]<=0)return f;return s(!1,t,r,n,e,a,i,c,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,e=n("./src/common/util/numberhelper.ts"),i=isNaN,o="rowCount",u="colCount",r.eit=f,r.iit=c},"./src/common/util/numberhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T;function O(t,r,n,e){return r&&0!==r.length&&"i"!==r?j(t,r,n.NumberFormat,e):n&&n.name.length>0?t.toLocaleString():t.toString()}function j(t,r,n,e){var i;return Y(t,I(r),n,e)}function E(t,r){for(var n,e,i,o,u,a,s,f,c=v(g(t)),y={iUt:1,rUt:0};c>=10&&Number.isFinite(c);)c/=10,y.iUt++;return e=(n=t.toString()).search(/e/gi),i=n.indexOf(r),-1!==e?(u=D(n,0,e),a=D(n,e+1),s=0,-1!==i&&(s=D(u,i+1).length),(o=s-(f=h(a)))<0&&(o=0),y.rUt=o):(o=0,-1!==i&&(o=D(n,i+1).length),y.rUt=o),y}function R(t){var r,n={oUt:t.charAt(0),aUt:0,tUt:0},e="";for(r=1;r<t.length;r++)if("+"===(e=t.charAt(r)))n.aUt=1;else{if("-"!==e){if("0"===e){n.tUt=t.length-r;break}throw new Error($().Exp_InvalidExponentFormat)}n.aUt=-1}return n}function I(t){var r,n,e,i,o,u,a={uUt:y,sUt:y,rCt:d,fxt:0,d0:0,cUt:0,fUt:y},s="",f=d,c=d,m=d,M=d,h=d,v=d,g=y,p=[];for(n=0;n<t.length;n++){if(r=t.charAt(n),f)s+=r,'"'===r&&(p.push(s),s="",f=d);else if(c){if("E"===g||"e"===g){if(!(["+","-","0"].indexOf(r)>=0)){c=d,n--;continue}s+=r}else if("+"===g||"-"===g){if("0"!==r){c=d,n--;continue}s+=r}else if("0"===g){if("0"!==r){c=d,h||(h=l,a.fUt=R(s)),n--;continue}s+=r}}else if("*"!==g&&"_"!==g&&"\\"!==g||""===s)if("*"===r||"_"===r||"\\"===r)v=d,""!==s&&(p.push(s),s=""),s+=r;else if("'"===r)v=d,""!==s&&(p.push(s),s=""),p.push(r);else if('"'===r)v=d,f=l,""!==s&&(p.push(s),s=""),s+=r;else if(C.indexOf(r)>=0)v=l,C.indexOf(g)<0&&""!==s&&(p.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=d,a.d0++,""!==s&&(p.push(s),s=""),p.push(r);else if("\u2030"===r)v=d,a.cUt++,""!==s&&(p.push(s),s=""),p.push(r);else if(","===r)if(v){for(e=void 0,""!==s&&(p.push(s),s=""),i=l,o="",u=n+1;u<t.length;u++)if(e=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(C.indexOf(e)>=0){i=d;break}if("."===e||";"===e)break;o=e}else o="";else'"'===e&&(o="");i?a.fxt++:m||(e=t.charAt(n+1))&&C.indexOf(e)>=0&&(M=l)}else s+=r;else"E"===r||"e"===r?(v=d,c=l,""!==s&&(p.push(s),s=""),s+=r):(v=d,C.indexOf(g)>=0&&""!==s&&(p.push(s),s=""),s+=r);else""!==s&&(p.push(s),s=""),a.uUt=p,p=[],m=l,v=d;else s+=r,p.push(s),s="";g=r}return""!==s&&(c&&!h&&(a.fUt=R(s)),p.push(s)),M&&(a.rCt=l),m?a.sUt=p:a.uUt=p,a}function B(t,r,n,e){var i,o,u,a,s,f=r[0],c=1,y=0,m=d,M=t.length;for(i=0;i<M;i++)if("number"===(o=t[i].type)){for(u="",s=(a=t[i].value).length-1;s>=0;){if(!(1<=f&&f<=9||0===f&&c===r.length))throw new Error($().Exp_InvalidNumberGroupSize);/\d/gi.test(a[s])?(m&&(u&&t.push({type:"number",value:u}),t.push({type:"groupSeparator",value:n}),u="",m=d),y++):y=0,u=a[s]+u,y===f&&f>0&&(m=l,y=0,c<r.length&&(f=r[c],c++)),s--}u&&t.push({type:o,value:u})}else"fillingChar"===o&&(e.infillIndex=t.length-M),t.push({type:o,value:t[i].value});return t.splice(0,M)}function L(t,r,n,e,i,o){var u,a,s,y,m=tt(t,-r);return isFinite(m)||(m=t),y=(u=(t=m).toString()).split(/e/i),u=y[0],s=y.length>1?M(y[1],10):0,y=u.split("."),u=y[0],a=y.length>1?y[1]:"",s>0?(u+=(a=c(a,s)).slice(0,s),a=D(a,s)):s<0&&(s=-s,a=(u=t<0?o+f(u.replace(o,""),s+1):f(u,s+1)).slice(-s,u.length)+a,u=u.slice(0,-s)),u+(a=r>0?i+(a=a.length>r?a.slice(0,r):c(a,r)):"")}function G(t,r,n,e){var i=t;return r>0&&(i=et(i*p(100,r),15)),n>0&&(i=et(i*p(1e3,n),15)),e>0&&(i=et(i/p(1e3,e),15)),i}function z(t){var r,n,e=y;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function K(t,r){return t===r||0!==t&&0!==r&&(g(t-r)<g(t)/T||(t=et(t,15),r=et(r,15),g(t-r)<g(t)/T))}function J(t,r){return K(t,-r)?0:t+r}function V(t,r,n){var e,i,o={value:t,exponentValue:0},u=E(t,"."),a=u.iUt,s=g(t),f=n?n.length:1;if(s>=1)a>f?(a-=f,o.value=t/p(10,a),o.exponentValue=a):o.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(s<1&&s>0){for(r.aUt=-1,e=p(10,f);10*s<e&&!K(10*s,e);)s*=10,o.exponentValue++;i=p(10,o.exponentValue),o.value*=i>F?0:i}return o}function W(t,r,n,e,i,o,u,a){var s,c,y,m,M,h,d,v,g,p,b,F,_=a.numberGroupSizes,w=a.numberGroupSeparator,H=a.negativeSign,N=a.percentSymbol,$=a.perMilleSymbol,k=e.fUt,S=D(r,0,1);for(S===H&&(r=D(r,1)),r=0===(s=1===r.length&&"0"===r?0:r.length)?"":r,c=0,y="",m=t.length-1;m>=0;m--)if(M="",h=t[m],/^(0|#|\?)+/g.test(h)){if(y!==n){for(d=h.length,v=s-c-1;v>=0&&d>0;v--)M=(g=r.charAt(v))+M,d--,c++;for(p=d-1;p>=0;p--)c++,"0"===(b=h[p])?M=b+M:"?"===b&&(""!==M&&(o.push({type:"number",value:M}),M=""),o.push({type:"numberPlaceholder",value:b}));(y=h+y)===n&&c<s&&(M=r.substr(0,s-c)+M),""!==M&&o.push({type:"number",value:M})}}else e.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(h)?(u.replaceExponent=l,F="",F+=k.oUt,F+=x[k.aUt],F+=f(i.toString(),k.tUt),o.push({type:"exponent",value:F})):"_"===h[0]?o.push({type:"placeholder",value:h[1]}):"*"===h[0]?u.hasInfilling||(o.push({type:"fillingChar",value:h[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===h[0]?2===h.length&&o.push({type:"text",value:h[1]}):'"'===h[0]&&'"'===h[h.length-1]?h.length>2&&o.push({type:"text",value:h.substr(1,h.length-2)}):h===N?o.push({type:"percent",value:h}):h===$?o.push({type:"permille",value:h}):A[h]?o.push({type:"currency",value:h}):o.push({type:"text",value:h});S===H&&n&&o.push({type:"text",value:S}),e.rCt===l&&B(o,_,w,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function U(t,r,n,e,i,o,u,a,s){var c,y,m,M,h,d,v,g,p,b,F,_,w=s.numberDecimalSeparator,D=s.percentSymbol,H=s.perMilleSymbol,N=r.indexOf(w),$=i.fUt;for((N>0||e!==k||n!==S)&&u.push({type:"decimalSeparator",value:w}),c=-1!==N?r.substring(N+1):"",y=0,m="",M=0;M<t.length;M++)if(h=t[M],/^(0|#|\?)+/g.test(h)){if(d="",m!==n){for(v=h.length,g=0,p=y;v>0&&c.length-y>0;)d+=c.charAt(p),v--,y++,g++,p++;for(b=g;v>0;)F=h[b],b++,y++,v--,"0"===F?d+=F:"?"===F&&(""!==d&&(u.push({type:"number",value:d}),d=""),u.push({type:"numberPlaceholder",value:F}));""!==d&&u.push({type:"number",value:d}),m+=h}}else $&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(h)?(a.replaceExponent=l,_="",_+=$.oUt,_+=x[$.aUt],_+=f(o.toString(),$.tUt),u.push({type:"exponent",value:_})):"_"===h[0]?u.push({type:"placeholder",value:h[1]}):"*"===h[0]?(u.push({type:"fillingChar",value:h[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===h[0]?2===h.length&&u.push({type:"text",value:h[1]}):'"'===h[0]&&'"'===h[h.length-1]?h.length>2&&u.push({type:"text",value:h.substr(1,h.length-2)}):h===D?u.push({type:"percent",value:h}):h===H?u.push({type:"permille",value:h}):A[h]?u.push({type:"currency",value:h}):u.push({type:"text",value:h})}function q(t,r){var n=t,e=t.indexOf(r);return-1!==e&&(n=t.replace(/0+$/,"")),n}function Y(t,r,n,e){var i,o,u,a,s,f,c,y,m,M,h,l,v,p,F,_,w=[];return t=G(t,r.d0,r.cUt,r.fxt),i=r.uUt,o=r.sUt,i||o?(u=z(i),(a=z(o))||(a=""),r.fUt&&(t=(f=V(t,r.fUt,u)).value,s=f.exponentValue),c=E(t,"."),g(t)>1&&c.iUt+c.rUt>15&&(t=et(t,15)),y=n.numberGroupSizes,m=n.numberGroupSeparator,M=n.numberDecimalSeparator,h=n.negativeSign,v=L(t,l=b(c.rUt,a.length),y,m,M,h),e||(v=q(v,M)),""===v?(w.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),w):(p={hasInfilling:d,infillIndex:-1,replaceExponent:d},"10"!==(F=v.split(M)[0])||isNaN(s)||(F="1",s+=(_=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),i&&W(i,F,u,r,s,w,p,n),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&w.push({type:"number",value:F}),o&&U(o,v,a,u,r,s,w,p,n)),w)):w}function X(t,r){var n,e,i,o,a,f,c,m,d,l,v,g,p,b,F,_,w;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?h(t):t.match(/^0x[a-f0-9]+$/i)?M(t,10):(o=(i=Z(t,n=r.NumberFormat,e=n.numberNegativePattern))[0],a=i[1],""===o&&1!==e&&(o=(i=Z(t,n,1))[0],a=i[1]),""===o&&(o="+"),a[0]===n.currencySymbol&&(a=D(a,1)),(m=a.indexOf("e"))<0&&(m=a.indexOf("E")),m<0?(c=a,f=y):(c=D(a,0,m),f=D(a,m+1)),(v=c.indexOf("."))<0?(d=c,l=y):(d=D(c,0,v),l=D(c,v+1)),d=d.split(",").join(""),","!==(g=",".replace(/\u00A0/g," "))&&(d=d.split(g).join("")),p=o+d,l!==y&&(p+="."+l),(b=p[p.length-1])===n.percentSymbol&&(p=D(p,0,p.length-1),-1===(F=(p=u.zf.s6t(p,"")).indexOf("."))&&(F=p.length),_="",_+=D(p,0,F-2),_+=".",_+=D(p,F-2,2),p=_+=D(p,F+1)),f!==y&&(""===(w=Z(f,n,1))[0]&&(w[0]="+"),p+="e"+w[0]+w[1]),p.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?h(p):NaN)}function Z(t,r,n){var e=r.negativeSign,i=r.positiveSign;if(4!==n&&2!==n||(e=" "+e,i=" "+i),4===n||3===n){if(u.zf.dT(t,e))return["-",D(t,0,t.length-e.length)];if(u.zf.dT(t,i))return["+",D(t,0,t.length-i.length)]}else if(2===n||1===n){if(u.zf.fJ(t,e))return["-",D(t,e.length)];if(u.zf.fJ(t,i))return["+",D(t,i.length)]}else{if(0!==n)throw new Error("");if(u.zf.fJ(t,"(")&&u.zf.dT(t,")"))return["-",D(t,1,t.length-2)]}return["",t]}function Q(t,r,n){if(0!==g(v(t)-t))throw new Error($().Exp_BadFormatSpecifier);var e=t>=0?t.toString(16):(P+t+1).toString(16);return e=r?e.toLowerCase():e.toUpperCase(),!s(n)&&e.length<n?f(e,n):e}function tt(t,r){var n,e;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(n=t<0)?-t:t,typeof r===m||0===r?(t=Math.round(t),n?-t:t):(e=t.toString().split("e"),t=Math.round(+(e[0]+"e"+(e[1]?+e[1]-r:-r))),+((e=(t=n?-t:t).toString().split("e"))[0]+"e"+(e[1]?+e[1]+r:r))))}function rt(t){var r=a.CultureManager.Fe().NumberFormat;return"string"==typeof t&&(r=a.CultureManager.Fe(t).NumberFormat),r}function nt(t){var r,n,e,i="";if(Array.isArray(t)&&t.length>0)for(r=0;r<t.length;r++)if(n=t[r].type,e=t[r].value,"placeholder"===n)i+=" ";else{if("fillingChar"===n)continue;i+="numberPlaceholder"===n?" ":e}return i}function et(t,r){return"number"==typeof t&&t.toString().length>=r&&(t=+t.toPrecision(r)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.st=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/types.ts"),o=n("./src/common/util/regexhelper.ts"),u=n("./src/common/util/stringhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=i.lt.ht,f=u.zf.B9t,c=u.zf.lUt,y=null,m=void 0,M=parseInt,h=parseFloat,d=!1,l=!0,v=Math.floor,g=Math.abs,p=Math.pow,b=Math.min,F=Number.MAX_VALUE,_="#dot#",w="#group#",D=function(t,r,n){return t.substr(r,n)},H=function(t){return o.$T.qT(t)},N=new e.ResourceManager(e.SR),$=N.getResource.bind(N),k="##################0",S="################",x={1:"+",0:"","-1":"-"},P=4294967295,C=["0","#","?"],A={"\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$"},T=Math.pow(2,48),r.st={yU:function(t){return X(t,a.CultureManager.Fe())},Z6t:function(t){return X(t,a.CultureManager.Fe("invariant"))},L9t:function(t,r,n,e){return n||(n=a.CultureManager.Fe()),O(t,r,n,e)},Ge:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("[.]"),_)),","!==i&&(t=t.replace(H("[,]"),w)),"."!==e&&(t=t.replace(H(_),e)),","!==i&&(t=t.replace(H(w),i))),t},Jf:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("["+e+"]"),_)),","!==i&&(t=t.replace(H("["+i+"]"),w)),"."!==e&&(t=t.replace(H(_),".")),","!==i&&(t=t.replace(H(w),","))),t},hUt:function(t,r){var n,e,i;return!("string"==typeof t&&(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&"."!==i&&t.indexOf(".")>=0||","!==e&&","!==i&&t.indexOf(",")>=0))},dUt:function(t,r){return h(this.Jf(t,r))},VGt:Q,v0:I,vUt:Y,ukt:K,Jme:J,mUt:nt,gUt:k,pUt:S,E8:et}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var n=Math.max,e=Math.min,i=Number.POSITIVE_INFINITY;function o(t,r){this.bUt=n(4,t||9),this.yUt=n(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function u(t,r,n){if(!n)return r.indexOf(t);for(var e=0;e<r.length;e++)if(n(t,r[e]))return e;return-1}function a(t,r){s(t,0,t.children.length,r,t)}function s(t,r,n,e,o){o||(o=g(null)),o.minX=i,o.minY=i,o.maxX=-i,o.maxY=-i;for(var u=r,a=void 0;u<n;u++)a=t.children[u],f(o,t.leaf?e(a):a);return o}function f(t,r){return t.minX=e(t.minX,r.minX),t.minY=e(t.minY,r.minY),t.maxX=n(t.maxX,r.maxX),t.maxY=n(t.maxY,r.maxY),t}function c(t,r){return t.minX-r.minX}function y(t,r){return t.minY-r.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function M(t){return t.maxX-t.minX+(t.maxY-t.minY)}function h(t,r){return(n(r.maxX,t.maxX)-e(r.minX,t.minX))*(n(r.maxY,t.maxY)-e(r.minY,t.minY))}function d(t,r){var i=n(t.minX,r.minX),o=n(t.minY,r.minY),u=e(t.maxX,r.maxX),a=e(t.maxY,r.maxY);return n(0,u-i)*n(0,a-o)}function l(t,r){return t.minX<=r.minX&&t.minY<=r.minY&&(r.maxX>=0&&r.maxX<=t.maxX||t.minX<0)&&(r.maxY>=0&&r.maxY<=t.maxY||t.minY<0)}function v(t,r){return(-1===t.minY||-1===r.minY||t.minY<=r.maxY&&r.minY<=t.maxY)&&(-1===t.minX||-1===r.minX||t.minX<=r.maxX&&r.minX<=t.maxX)}function g(t){return{children:t,height:1,leaf:!0,minX:i,minY:i,maxX:-i,maxY:-i}}r.rbush=o,o.prototype={all:function(){return this.QP(this.data,[])},search:function(t){var r,n,e,i,o,u=this.data,a=[],s=this.toBBox;if(!v(t,u))return a;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)i=u.children[n],v(t,o=u.leaf?s(i):i)&&(u.leaf?a.push(i):l(t,o)?this.QP(i,a):r.push(i));u=r.pop()}return a},collides:function(t){var r,n,e,i,o,u=this.data,a=this.toBBox;if(!v(t,u))return!1;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)if(i=u.children[n],v(t,o=u.leaf?a(i):i)){if(u.leaf||l(t,o))return!0;r.push(i)}u=r.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,r){if(!t)return this;for(var n=this.data,e=this.toBBox(t),i=[],o=[],a,s,f,c;n||i.length;){if(n||(n=i.pop(),s=i[i.length-1],a=o.pop(),c=!0),n.leaf&&-1!==(f=u(t,n.children,r)))return n.children.splice(f,1),i.push(n),this.MUt(i),this;c||n.leaf||!l(n,e)?s?(a++,n=s.children[a],c=!1):n=null:(i.push(n),o.push(a),a=0,s=n,n=n.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var n=[];t;)t.leaf?r.push.apply(r,t.children):n.push.apply(n,t.children),t=n.pop();return r},CUt:function(t,r,n,e){for(var o,u,a,s,f,c,y,M;e.push(r),!r.leaf&&e.length-1!==n;){for(y=M=i,o=0,u=r.children.length;o<u;o++)f=m(a=r.children[o]),(c=h(t,a)-f)<M?(M=c,y=f<y?f:y,s=a):c===M&&f<y&&(y=f,s=a);r=s||r.children[0]}return r},Eit:function(t,r,n){var e=this.toBBox,i=n?t:e(t),o=[],u=this.CUt(i,this.data,r,o);for(u.children.push(t),f(u,i);r>=0&&o[r].children.length>this.bUt;)this.SUt(o,r),r--;this.TUt(i,o,r)},SUt:function(t,r){var n,e,i=t[r],o=i.children.length,u=this.yUt;this.AUt(i,u,o),n=this.IUt(i,u,o),(e=g(i.children.splice(n,i.children.length-n))).height=i.height,e.leaf=i.leaf,a(i,this.toBBox),a(e,this.toBBox),r?t[r-1].children.push(e):this.xUt(i,e)},xUt:function(t,r){this.data=g([t,r]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},IUt:function(t,r,n){var e,o,u,a,f,c,y,M;for(c=y=i,e=r;e<=n-r;e++)a=d(o=s(t,0,e,this.toBBox),u=s(t,e,n,this.toBBox)),f=m(o)+m(u),a<c?(c=a,M=e,y=f<y?f:y):a===c&&f<y&&(y=f,M=e);return M},AUt:function(t,r,n){var e=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:y,o,u;this.NUt(t,r,n,e)<this.NUt(t,r,n,i)&&t.children.sort(e)},NUt:function(t,r,n,e){t.children.sort(e);var i=this.toBBox,o=s(t,0,r,i),u=s(t,n-r,n,i),a=M(o)+M(u),c,y;for(c=r;c<n-r;c++)y=t.children[c],f(o,t.leaf?i(y):y),a+=M(o);for(c=n-r-1;c>=r;c--)y=t.children[c],f(u,t.leaf?i(y):y),a+=M(u);return a},TUt:function(t,r,n){for(var e=n;e>=0;e--)f(r[e],t)},MUt:function(t){for(var r=t.length-1,n=void 0;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children).splice(n.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},wUt:function(t){var r=["return a"," - b",";"];this.compareMinX=new Function("a","b",r.join(t[0])),this.compareMinY=new Function("a","b",r.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,r,n){var e,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,e=n("./src/common/util/stringhelper.ts"),i=!0,o="empty",u=function(){function t(){}return t.bue=function(r,n){var e;if(n&&t.yue[n]&&t.yue[n][r])e=t.yue[n][r];else try{null==n?(e=new RegExp(r),n=o):e=new RegExp(r,n),t.yue[n]||(t.yue[n]={}),t.yue[n][r]=e}catch(t){return null}return e.lastIndex=0,e},t.qT=function(r){var n=t.kUt[r];return n||(n=t.kUt[r]=new RegExp(r,"g")),n.lastIndex=0,n},t.OJ=function(r){var n=t.DUt[r];return n||(n=t.DUt[r]=new RegExp(r,"gi")),n.lastIndex=0,n},t.jJ=function(r,n,e){var o,u,a,s,f,c;if(t._Ut[r])return t.EUt[r];if(o=n?"[?*]+":"[~?*]+",t.qT(o).test(r)){for(u=[],a=r.split(""),s=void 0,f={".":i,"+":i,$:i,"^":i,"[":i,"]":i,"(":i,")":i,"{":i,"}":i,"|":i,"/":i,"\\":i},c=0;c<a.length;c++)if("~"===(s=a[c])){if(!(c<a.length-1))break;"*"!==(s=a[++c])&&"?"!==s||u.push("\\"),u.push(s)}else"?"===s?u.push("."):"*"===s?(u.push("[\\s\\S]"),e?u.push("+"):u.push("*")):f[s]?(u.push("\\"),u.push(s)):u.push(s);return u.join("")}return null},t.tbt=function(r,n,e){var i=t.jJ(r,n,e);return i&&(i="^"+i+"$"),i},t.jUt=function(t,r){for(var n="#"+t+"0#",i=1;r.indexOf(n)>0;)n=e.zf.qS(n,"#"+t+(i-1)+"#","#"+t+i+"#"),i++;return n},t.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},t.kUt={},t.DUt={},t.yue={},t._Ut={},t.EUt={},t}(),r.$T=u},"./src/common/util/stringhelper.ts":function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.zf=void 0;var e=n("./src/common/util/regexhelper.ts");function i(t,r,n){return t.substr(r,n)}function o(t){return null==t}function u(t,r,n,e){var i,u;if(o(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,u=r,n&&(i=i.toLowerCase(),u=u.toLowerCase()),e(i,u))}r.zf={OS:function(t,r,n){return n&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||t.indexOf(r)>=0},hD:function(t,r,n){var e,i;return n?(e=t.toLowerCase(),i=r.toLowerCase(),e.indexOf(i)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var n=t;i(n,0,r.length)===r;)n=i(n,r.length);return n},s6t:function(t,r){if(!r)return t;for(var n=t;i(n,n.length-r.length,r.length)===r;)n=i(n,0,n.length-r.length);return n},Eit:function(t,r,n){var e,u;if(r<0||r>t.length||o(n))throw new Error;return(e=i(t,0,r))+n+(u=i(t,r,t.length-r))},VP:function(t,r,n){var e,u;if(o(n)&&(n=t.length-r),r<0||n<0||r+n>t.length)throw new Error;return(e=i(t,0,r))+(u=i(t,r+n,t.length-r-n))},fJ:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(0,r.length)===r}))},dT:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(-r.length)===r}))},Vi:function(t,r,n,e){if(!r)throw new Error;return n=(""+n).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(e?"i":"")),n)},OUt:function(t,n,i,o){return n=e.$T.D9t(n),r.zf.Vi(t,n,i,o)},gmt:function(t,r){var n=t.indexOf(r);return n<0||n>=t.length?t:i(t,0,n)},DU:function(t,r){for(var n=0,e=t.indexOf(r);e>=0;)n+=1,e=t.indexOf(r,e+1);return n},qS:function(t,r,n){return t.split(r).join(n)},I5:function(t,r){var n,e,i=t;for(n=0;n<r.length;n++)e=new RegExp("\\{"+n+"\\}","g"),i=i.replace(e,r[n]);return i},RUt:function(t,r,n){var e,i=t.toString();for(e=i.length;e<r;e++)i=n?"0"+i:i+"0";return i},B9t:function(t,n){return r.zf.RUt(t,n,!0)},lUt:function(t,n){return r.zf.RUt(t,n,!1)},Dbt:function(t,r){return t===r||!t&&!r||t&&r&&t.toLowerCase()===r.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},n=e.$T.qT("(?:&|<|>|\"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},dI:function(t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},n=e.$T.qT("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},TY:function(t){for(var r=t,n=/javascript:/gi;r.match(n);)r=r.replace(n,"");return r}}},"./src/common/util/types.ts":function(t,r){var n,e;Object.defineProperty(r,"__esModule",{value:!0}),r.lt=void 0,n="undefined"!=typeof window?window.File:null,e="undefined"!=typeof window?window.Blob:null,r.lt={BUt:null,y0:function(t,n){var e,i,o,u;if(r.lt.Gh(t))for(i=0,o=t.length;i<o&&!1!==(e=n.call(t[i],i,t[i]));i++);else for(u in t)if(t.hasOwnProperty(u)&&!1===(e=n.call(t[u],u,t[u])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===r.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===r.lt.Oh(t)},jh:function(t){return r.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var n,e,i,o,u,a;if(null===t)return"null";if(!(n=r.lt.BUt))for(n=r.lt.BUt={},i=0,o=(e=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;i<o;i++)n["[object "+e[i]+"]"]=e[i].toLowerCase();return u=n.toString,"object"===(a=typeof t)||"function"===a?n[u.call(t)]||"object":a},Rh:function(t,n,e){var i,o;if(n){if(o=[].indexOf)return o.call(n,t,e);for(i=n.length,r.lt.ht(e)&&(e=0),e=e<0?Math.max(0,i+e):e;e<i;e++)if(e in n&&n[e]===t)return e}return-1},Bh:function(t,r){var n=r.length,e=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[e]=r[i],e++;else for(;void 0!==r[i];)t[e]=r[i],e++,i++;return t.length=e,t},Lh:function(t,n,e){var i,o,u,a,s=[];if(r.lt.Gh(t))for(o=0,u=t.length;o<u;o++)null!==(i=n(t[o],o,e))&&(s[s.length]=i);else for(a in a=void 0,t)t.hasOwnProperty(a)&&null!==(i=n(t[a],a,e))&&(s[s.length]=i);return s.concat([])},Dh:function(){var t,n,e,i,o,u,a,s,f,c,y,m=[];for(t=0;t<arguments.length;t++)m[t]=arguments[t];for(s=m[0]||{},f=1,c=m.length,y=!1,"boolean"==typeof s&&(y=s,s=m[1]||{},f=2),"object"==typeof s||r.lt.Eh(s)||(s={}),c===f&&(s=this,--f);f<c;f++)if(u=m[f],!r.lt.ht(u))for(o in u)n=s[o],s!==(i=u[o])&&(e=r.lt.Nh(i),y&&i&&(r.lt.Ph(i)||e)?(a=e?n&&r.lt.Nh(n)?n:[]:n&&r.lt.Ph(n)?n:{},s[o]=r.lt.Dh(y,a,i)):void 0!==i&&(s[o]=i));return s},Fh:function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var n,e;if(!t||"object"!==r.lt.Oh(t)||t.nodeType||r.lt.Uh(t))return!1;n={}.hasOwnProperty;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)},Gh:function(t){if(r.lt.ht(t))return!1;var n=t.length,e=r.lt.Oh(t);return!r.lt.Uh(t)&&(!(1!==t.nodeType||!n)||("array"===e||"function"!==e&&(0===n||"number"==typeof n&&n>0&&n-1 in t)))},Hh:function(t,n){var e=n||[];return null!==t&&(r.lt.Gh(Object(t))?r.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,i){if(void 0===i&&(i=!0),!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||r.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var o,u,a;if(n&&t instanceof n)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(e&&t instanceof e)return new e([t],{type:t.type});for(u in o=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(u)&&(a=t[u],t.hasOwnProperty(u)&&o[u]!==a&&(o[u]="object"==typeof a?r.lt.tv(a):a));return i&&(o.toString=t.toString,o.valueOf=t.valueOf),o}}},"./src/common/util/util.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_Separator=r.Exp_InvalidCast=r.Exp_InvalidNumberFormat=r.Exp_BadFormatSpecifier=r.Exp_InvalidNumberGroupSize=r.Exp_InvalidSemicolons=r.Exp_InvalidExponentFormat=r.Exp_InvalidDateFormat=void 0,r.Exp_InvalidDateFormat="Invalid date format pattern",r.Exp_InvalidExponentFormat="invalid exponent format",r.Exp_InvalidSemicolons="invalid format : too many semicolons",r.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",r.Exp_BadFormatSpecifier="Bad Format Specifier",r.Exp_InvalidNumberFormat="Invalid number format pattern",r.Exp_InvalidCast="InvalidCastException",r.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},"./src/plugins/commands/commands.entry.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,e=n("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return e.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return e.CommandManager}}),i=n("./src/plugins/commands/undomanager.ts"),Object.defineProperty(r,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,r){var n,e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.CommandManager=r.Key=void 0,function(t){t[t.left=37]="left",t[t.right=39]="right",t[t.up=38]="up",t[t.down=40]="down",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.space=32]="space",t[t.altkey=18]="altkey",t[t.home=36]="home",t[t.end=35]="end",t[t.pup=33]="pup",t[t.pdn=34]="pdn",t[t.backspace=8]="backspace",t[t.del=46]="del",t[t.esc=27]="esc",t[t.a=65]="a",t[t.c=67]="c",t[t.v=86]="v",t[t.x=88]="x",t[t.z=90]="z",t[t.y=89]="y"}(n=r.Key||(r.Key={})),e=function(){function t(t,r,n){var e,i;this.jS=t,this.LUt=r,this.Zc=n,e=this,Object.defineProperty(e,"shortcutKey",{get:function(){return e.FUt},set:function(t){var r,n,o=e.FUt;o!==t&&((r=(i=e.jS.PUt)[o])&&(n=r.indexOf(e))>=0&&r.splice(n,1),e.FUt=t,t&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,e)))}})}return t.prototype.canUndo=function(){var t;return this.LUt.canUndo},t.prototype.execute=function(t,r,n){var e,i,o,u,a,s=this,f=!0,c=!0;if(s.LUt&&r&&(o={command:r,result:i,vM:n,actionType:n,metaData:null===(e=s.LUt)||void 0===e?void 0:e.metaData,r:null,isBefore:!0},s.jS.MGr(o),o.r&&(c=!1,i=!1)),c){try{f=!1!==(i=(u=s.LUt.execute||s.LUt)(t,r,1===n))}catch(t){f=!1}r&&f&&s.jS.HUt({command:s.Zro(r),result:i,vM:n,actionType:n})}return s.jS&&r&&(a={command:r,result:i,vM:n,actionType:n,isBefore:!1},s.jS.MGr(a)),i},t.prototype.Zro=function(t){return t&&!t.cmd&&(t.cmd=this.Zc),t},t}(),i=function(){function t(t){this.DJ=t,this.aT={},this.GUt={},this.yGr={},this.PUt={}}return t.prototype.register=function(t,r,n,i,o,u,a){var s=this,f=new e(s,r,t);s[t]=f,n&&(f.shortcutKey=s.getShortcutKey(n,i,o,u,a))},t.prototype.getCommand=function(t){return this[t]},t.prototype.execute=function(t){var r=this[t.cmd];if(r)return r.execute(this.DJ,t,0)},t.prototype.setShortcutKey=function(t,r,n,e,i,o){var u,a,s,f,c=this;if(t)(u=c[t])&&(u.shortcutKey=c.getShortcutKey(r,n,e,i,o));else if(a=c.getShortcutKey(r,n,e,i,o),s=c.getCommands(a))for(f=s.length-1;f>=0;f--)s[f].shortcutKey=void 0},t.prototype.getShortcutKey=function(t,r,e,i,o){if(t){var u="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):n[t];return u||(u=t),u+(r?"+ctrl":"")+(e?"+shift":"")+(i?"+alt":"")+(o?"+window":"")}},t.prototype.getCommands=function(t){return this.PUt[t]},t.prototype.addListener=function(t,r){this.aT[t]=r},t.prototype.removeListener=function(t){delete this.aT[t]},t.prototype.HUt=function(t){var r,n=this.aT;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.cM=function(t,r){this.GUt[t]=r},t.prototype.zUt=function(t){delete this.GUt[t]},t.prototype.MGr=function(t){var r,n=this.GUt;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.L0=function(){this.DJ=null},t}(),r.CommandManager=i},"./src/plugins/commands/undomanager.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=void 0;var n=function(){function t(t,r,n){var e=this;e.DJ=t,r<0&&(r=2147483647),e.VUt=r,e.Hw=n,e.Nmt=[],e.kmt=[],e.YUt=!1}return t.prototype.dM=function(t,r){var n,e,i,o=this;if(t){if(1===r)o.kmt.push(t);else{if(n=o.VUt,e=o.Nmt.length,n>0&&e>=n)for(i=0;i<e-n+1;i++)o.Nmt.shift();o.Nmt.push(t),0===r&&(o.kmt=[])}o.YUt=!0}},t.prototype.canUndo=function(){return this.Nmt.length>0},t.prototype.undo=function(){var t,r,n=this,e=n.Nmt,i=!0;if(n.Hw&&n.canUndo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,1))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.kmt.push(t))}return i},t.prototype.canRedo=function(){return this.kmt.length>0},t.prototype.redo=function(){var t,r,n=this,e=n.kmt,i=!0;if(n.Hw&&n.canRedo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,2))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.Nmt.push(t))}return i},t.prototype.getRedoStack=function(){return this.kmt.slice()},t.prototype.getUndoStack=function(){return this.Nmt.slice()},t.prototype.maxSize=function(t){var r=this;return arguments.length<1?r.VUt:(t>=0&&(r.VUt=t),r)},t.prototype.clear=function(){this.Nmt=[],this.kmt=[]},t.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},t.prototype.L0=function(){this.DJ=null},t.prototype.setNewChangeStatus=function(t){this.YUt=t},t.prototype.getNewChangeStatus=function(){return this.YUt},t}();r.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/formatter/formatter.ts"),r)},"./src/plugins/formatter/formatter.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_InvalidCast=r.Exp_ValueIllegal=r.Exp_TokenIllegal=r.Exp_DuplicatedDescriptor=r.Exp_ValueIsNull=r.Exp_FormatIllegal=r.Exp_InvalidBackslash=r.Exp_TokenIsNull=void 0,r.Exp_TokenIsNull="token is null",r.Exp_InvalidBackslash="the '\\' cannot be evaluated",r.Exp_FormatIllegal="format is illegal.",r.Exp_ValueIsNull="value is null",r.Exp_DuplicatedDescriptor="The type of descriptor was added.",r.Exp_TokenIllegal="token is illegal.",r.Exp_ValueIllegal="value is illegal.",r.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut=this&&this.qKr||(at=function(t,r){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},at(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}at(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),at;function st(t,r,n){return t.substr(r,n)}function ft(t){return o.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function ct(t,r){if("\\"===t[r])throw new Error(M().Exp_InvalidBackslash);if(r-1>0&&r-1<t.length&&"\\"===t[r-1]){if(r-2<0)return!0;if(r-2>0&&r-2<t.length)return"\\"!==t[r-2]}return!1}function yt(t){if(!t)throw new Error(M().Exp_TokenIsNull);return"["+t+"]"}function mt(t){var r,n,e,i,o;if(t===l||t===d||""===t)return t;for(r="",n=0,e=!1,i=0;i<t.length;i++)'"'===(o=t[i])?(e=!e,r+=o):e?r+=o:"["===o?n++:"]"===o?--n<0&&(n=0):0===n&&(r+=o);return r.toString()}function Mt(t){return t=ht(t,"[",""),ht(t,"]","")}function ht(t,r,n){return!t||t===K.oHt||lt(r,n,!0)?t:(r=r.replace(D,"\\$1"),t.replace(new RegExp(r,"g"),n))}function dt(t){var r,n,e=t.length,i=!1,o="";for(r=0;r<e;r++)"\\"===(n=t.charAt(r))?(i=!i)&&"@"!==t.charAt(r+1)||(o+=n):(i=!1,o+=n);return o}function lt(t,r,n){return n?B(t)===B(r):t===r}function vt(t,r){var n,e,i,o;for(1===arguments.length&&(r=!0),n=!1,e="",i=0;i<t.length;i++){if('"'===(o=t[i]))n=!n;else if(!n&&!r&&"/"===o&&!ct(t,i))continue;e+=o}return e}function gt(t){var r,n,e,i="",o=!1;for(r=0,n=t.length;r<n;r++)'"'===(e=t[r])&&(o=!o),"E"===e||o||(i+=B(e));return i}function pt(t,r){var n,e,i,o;if(!t||t===K.oHt)return!1;for(e=gt(n=vt(t)),i=0;i<r.length;i++)if(0===(o=e.indexOf(r[i]))||o>0&&"_"!==e[o-1]&&"*"!==e[o-1])return!0;return!1}function bt(t,r,n,e){this.j9t=t,this.aHt=r,this.cultureName=n,this.O9t=e}function Ft(t){this.Nat=t}function _t(t){var r,n,i=Mt(t);return i&&i!==K.oHt?(n=i[0],["<",">","="].indexOf(n)>-1?(r=q).Name="ConditionalFormatPart":e.zf.fJ(i,"DBNum",!0)?(r=Y).Name="DBNumberFormatPart":lt(i[0],h,!1)&&i.indexOf("-")>-1?(r=W).Name="LocaleIDFormatPart":Dt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(h)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function wt(t,r){var n,e=!1;return pt(t=t?t.toString():K.oHt,["general"])?n=rt:X.a0(t)?n=X:pt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(e=!0,n=tt):(e=!0,n=nt),{uHt:e,_type:n}}function Dt(t){var r,n=B(t),e=n[0];if("h"!==e&&"m"!==e&&"s"!==e)return!1;for(r=1;r<n.length;r++)if(e!==n[r])return!1;return!0}function Ht(t,r,n){var e,i;return e=t?t.cultureInfo():E(n),(r<4||4===r&&("ko-kr"===n||"ko-kr"===e.name()))&&(i=e.NumberFormat.dbNumber)?i[r]:d}function Nt(t,r,n,e,o){var u,a=t;if(!O(e)&&r instanceof Date){if(!(u=Ht(n,e.type,o)))return t;a=e.sHt(a,u,!0),1===e.type&&(a=a.replace(new RegExp(b,"g"),F)),a=(a=a.replace("@"+g.cHt,i.ct.Pe(r,g.cHt))).replace("@"+g.fHt,i.ct.Pe(r,g.fHt)),a=e.sHt(a,u,!1)}return a}function $t(t,r,n,e,i){var o,u,a,s,f,c,y;if(!O(e)&&(o=Ht(n,e.type,i),!O(o))){for(u=!1,a=void 0,s=E(i),f=void 0,c=0,y=t.length;c<y;c++)"decimalSeparator"===t[c].type&&(u=!0,t[c].value=e.sHt(t[c].value,o,r),a=t[c].value),"number"===t[c].type&&(t[c].value=u?e.sHt(a+t[c].value,o,r).slice(1):e.sHt(t[c].value,o,r),"ja-JP"===s.name()&&t[c].value.length>1&&("\u4e00\u5343"!==(f=t[c].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[c].value=t[c].value.substr(1))));return t}return t}function kt(t){var r,n=[],e=0,i=0,o=t.length;for(r=0;r<o;r++)"_"===t[r]?e++:(";"!==t[r]||0!==e&&e%2!=0||(n.push(t.substring(i,r)),i=r+1),e=0);return i<=o&&n.push(t.substring(i,o)),n}function St(t){var r,n,e=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!O(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},f=function(r,n){if(s(r)){for(var i=r,o=t[n+1];s(o)&&o.toLowerCase()===r.toLowerCase()&&(i+=o,n<t.length-1);)n++,o=t[n+1];e.push(a("symbolic",i))}else"a"===r&&"aaa"===t.slice(n,n+3).toLowerCase()?(e.push(a("symbolic",t.slice(n,n+3))),n+=2):e.push(a("text",r));return n};for(r=0;r<t.length;r++)if(n=t[r],i)e.push(a("text","\\"+n)),i=!1;else if(o&&'"'!==n)u+=n;else switch(n){case"\\":i=!0;break;case'"':o&&(e.push(a("text",'"'+u+'"')),u=""),o=!o;break;default:r=f(n,r)}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralFormatter=r.Hf=r.FormatterBase=void 0,e=n("./src/common/util/stringhelper.ts"),i=n("./src/common/util/datetimehelper.ts"),o=n("./src/common/util/types.ts"),u=n("./src/common/util/numberhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=n("./src/common/util/common.ts"),f=n("./src/plugins/formatter/formatter.res.en.ts"),c=n("./src/plugins/formatter/formatterGrammar/lexer.ts"),y=n("./src/plugins/formatter/formatterGrammar/parser.ts"),o.lt.Dh(s.SR.en,f),m=new s.ResourceManager(s.SR),M=m.getResource.bind(m),h="$",o.lt.dt=function(t,r){if(o.lt.ht(t))return"null"===r;if(!r)return!1;if(r instanceof Function&&t instanceof r)return!0;if(typeof t===r)return!0;if("function"===r&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===r.toLowerCase())return!0;if("DateTime"===r)return t instanceof Date;if("TimeSpan"===r){if(t instanceof Date){var n=i.ct.o0(t);return n>=0&&n<1}return!1}return"string"==typeof r&&"undefined number boolean string".indexOf(r),!1},o.lt.q8=function(t,r){return!!u.st.hUt(t,r)&&(("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=u.st.Jf(t,r),o.lt.dt(t,"number")||o.lt.dt(t,"DateTime")||o.lt.dt(t,"TimeSpan")||t&&!o.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(t.length>=2&&"0"===t[0]&&"x"===t[1])))},o.lt.uJ=function(t){return o.lt.ht(t)||""===t?0:o.lt.dt(t,"number")?t:o.lt.dt(t,"string")&&!isNaN(t)?u.st.yU(t):o.lt.dt(t,"boolean")?t?1:0:o.lt.dt(t,"DateTime")?i.ct.o0(t):o.lt.dt(t,"TimeSpan")?Math.floor(i.ct.o0(t)):parseFloat(t)},d=null,l=void 0,v=Math.abs,g={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)},p=[g.hHt,g.fHt,g.cHt,g.dHt,g.vHt,g.mHt,g.gHt,g.pHt,g.bHt,g.yHt,g.wHt,g.MHt,g.CHt,g.SHt,g.THt,g.AHt,g.IHt,g.xHt,"ggg","gg","g","ee","e"],b="\u4e00\u5341",F="\u5341",_={EHt:0,jHt:1,OHt:2,_text:3},w=[{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}],D=new RegExp("([.+?*$^\\[\\](){}|/])","g"),H=[["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"]],N=["#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"],$=new RegExp("color\\s*(\\d+)","i"),k=o.lt.dt,S=o.lt.Nh,x=u.st,P=x.gUt+"."+x.pUt,C=x.mUt,A=x.L9t,T=x.E8,O=o.lt.ht,j=isNaN,E=function(t){return a.CultureManager.Fe(t)},R=function(t){return E(t).DateTimeFormat},I=function(t){return E(t).NumberFormat},B=function(t){return t&&t.toLowerCase()},L=function(t){return t&&t.toUpperCase()},G=function(){throw new Error(M().Exp_FormatIllegal)},z=function(){return a.CultureManager.booleanMapping},K={oHt:"",I5:function(){var t,r,n,e,i,o,u=[];for(t=0;t<arguments.length;t++)u[t]=arguments[t];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return d;for(e=r[0],i=1;i<arguments.length;i++)o=new RegExp("\\{"+(i-1)+"\\}","gm"),e=e.replace(o,arguments[i]);return e},Ji:function(t){return!t||t===K.oHt}},J=function(t){var r=t.charCodeAt(0);return r>=48&&r<=57},V=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},W=function(){function t(t,r){var n,i,o,u;if(Ft.call(this,r),(n=this).Jq=t,o=lt((i=n.Jq)[0],h,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(M().Exp_TokenIllegal);n.ZUt=st(i,1,u-1),(i=e.zf.VP(i,0,u+1)).length>0&&(n.Iat=parseInt(i,16))}return t.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=E(t.Iat)),t.RHt},t.prototype.currencySymbol=function(){return this.ZUt?e.zf.Vi(this.ZUt,"\\.",'"."'):K.oHt},t.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},t.prototype.toString=function(){return this.Jq?yt(this.Jq):K.oHt},t.Name="LocaleIDFormatPart",t}(),U=function(){function t(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}return t.prototype.format=function(t,r){return d},t.prototype.parse=function(t){return d},t.prototype.formatString=function(t){return this.formatCached},t.prototype.toJSON=function(){var t,r={};for(t in this)this.hasOwnProperty(t)&&(r[t]=this[t]);return r},t.prototype.fromJSON=function(t){if(t)for(var r in t)t[r]!==l&&(this[r]=t[r])},t}(),r.FormatterBase=U,q=function(){function t(t,r){var n,i,o,u,a,s,f,c;for(Ft.call(this,r),n=this,s=0,f=(a=["<=","<>",">=",">","<","="]).length;s<f;s++)if(i=a[s],e.zf.fJ(t,i,!0)){o=e.zf.VP(t,0,i.length),c=parseFloat(o),j(c)||(u=c);break}if(u===d&&u===l)throw new Error(M().Exp_TokenIllegal);n.value=u,n.WUt=i,n.isMeetCondition=function(t){var r=n.WUt,e=n.value;switch(r){case"<=":return t<=e;case"<>":return t!==e;case">=":return t>=e;case">":return t>e;case"<":return t<e;case"=":return t===e}}}return t.prototype.toString=function(){return yt(this.WUt+this.value.toString())},t}(),Y=function(){function t(t,r){Ft.call(this,r);var n=this;if(n.token=t,n.type=parseInt(e.zf.VP(t,0,5),10),n.type<0||n.type>4)throw new Error(M().Exp_TokenIllegal)}return t.prototype.sHt=function(r,n,i){var o,u,a,s,f,c,y,m,M,h;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,f=!1,M=r.length-1;M>=0;M--)h=u[M],!j(h)&&!lt(h," ",!1)||lt(h,".",!1)&&!f?(lt(h,".",!1)&&(f=!0),-1===a&&(a=M),s=M):s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m)),a=-1,s=-1,f=!1);return s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m))),o},t.prototype.toString=function(){if(this.type>-1)return yt("DBNum"+this.type);throw new Error},t.numberString=function(r,n,e){var i,o,u=t.formatNumberString,a=r.split(".");if(a){if(1===a.length)return u(a[0],n.numbers,e?n.letters:d);if(2===a.length)return(i=u(a[0],n.numbers,e?n.letters:d))+"."+(o=u(a[1],n.numbers))}throw new Error(M().Exp_ValueIllegal)},t.formatNumberString=function(r,n,e){var i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p=r,b=0,F=0;if(2===arguments.length){for(o="";b<p.length;b++)i=st(p,b,1),o+=n[F=parseInt(i,10)];return o}if(3===arguments.length){if(!e)return t.formatNumberString(r,n);for(u=0,a="",s=p.length,f=!1,c=[];b<s;b++)(y=e.length-1-b)>-1?c.push(e[y].toString()):c.push(K.oHt);for(m=[],M=c.length-1;M>=0;M--)m[c.length-M-1]=c[M];for(c=m,h=!1,M=0;M<s;M++)i=st(p,M,1),F=parseInt(i,10),d=void 0,l=K.oHt,s-M-16>0?(d=n[F],l="",h=!0):M!==s-1&&M!==s-5&&M!==s-9&&M!==s-13?"0"===i?(d="",l="",u+=1):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[M],u=0):(d=n[F],l=c[M],u=0):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[M],u=0):"0"!==i&&0===u||h?(d=n[F],l=c[M],u=0,h=!1):"0"===i&&u>=3?(d="",l="",u+=1):s>=11?(d="",u+=1):(d="",l=c[M],u+=1),(v=d+l===K.oHt)||(f=!1),M!==s-13||f||(l=c[M],f=!0),M!==s-9||f||(l=c[M],f=!0),M===s-1&&(l=c[M],f=!0),a=a+d+l;return 0===(g=parseInt(r,10))?n[0]:a}},t}(),X=function(){function t(t,r,n,e,i,o){bt.call(this,r,n,e,o);var u=this;u.pU=u.QUt(vt(t)),u.KUt=i,u.JUt=2,u.Hc()}return t.prototype.Hc=function(){var r,n,e,i,o=this,u={y4:o.pU},a=t;if(a.a0(u.y4)){if(r=o.BHt(u),n=R(this.cultureName).amDesignator&&R(this.cultureName).pmDesignator,o.hasJD=o.Vi(u.y4,g.pHt,'"'+g.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,g.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,g.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,g.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,g.MHt,"dddd",!0,!0,u,!0),r&&n||(o.Vi(u.y4,g.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,g.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||E(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,g.cHt,'"@'+g.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,g.fHt,'"@'+g.fHt+'"',!0,!1,u,!0)),o.KUt)for(e=0;e<o.KUt.length;e++)i=o.KUt[e],o.Vi(u.y4,i.Nat,"@"+i.Nat,!0,!0,u,!0);o.PHt=u.y4}else G()},t.prototype.formatString=function(){return this.pU},t.prototype.format=function(t){var r,n,o,u,a,s,f,c,y=this,m=K.oHt,M=d;try{if((M=i.ct._DT(t))&&j(M.valueOf())&&(M=d),M?t=M:m=t.toString(),M&&(m=i.ct.L9t(M,y.PHt,y.j9t&&y.j9t.cultureInfo()||E(y.cultureName),y.O9t),y.hasJD&&(r=E(y.cultureName).DateTimeFormat.monthNames[M.getMonth()],m=e.zf.Vi(m,g.DHt,st(r,0,1))),y.KUt))for(n=24*(i.ct.o0(M)-i.ct.o0(g._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(n),O(a)||(s=u.Nat.replace("[","\\[").replace("]","\\]"),f=u.Nat.replace("[","").replace("]",""),c=e.zf.B9t(a+"",f.length),m=e.zf.Vi(m,"@"+s,c))}catch(r){m=ft(t)}return Nt(m,t,y.j9t,y.aHt,y.cultureName)},t.prototype.parse=function(t){var r,n,e,o,u;if(!t||t===K.oHt)return d;if(r=this,"true"===(e=B(n=t)))return!0;if("false"===e)return!1;if(r.PHt&&(o=i.ct.nUt(n,r.PHt,E(r.cultureName))))return o;try{return(u=i.ct._DT(n))&&!j(u)?u:(u=new Date(n),j(u.valueOf())?n:u)}catch(t){return n}},t.prototype.QUt=function(t){var r,n,e,i=t,o="",u=!1;for(r=0;r<i.length;r++)'"'===(n=i[r])?u=!u:u||("Y"===n||"D"===n||"S"===n||"E"===n||"G"===n?n=B(n):"M"===n&&(lt("A",e=i[r-1],!0)||lt("P",e,!0)||(n=B(n)))),o+=n;return o},t.prototype.BHt=function(t){var r,n,i,o=R(this.cultureName).amDesignator,u=R(this.cultureName).pmDesignator,a=[g.NHt];for(o&&u?a.push(o+"/"+u):a.push(g.NHt),a.push(g.kHt),r=["tt","tt","t"],n=t.y4,i=0;i<3;i++){if(e.zf.OS(n,r[i]))return!0;if(e.zf.OS(n,a[i],!0))return t.y4=e.zf.Vi(n,a[i],r[i],!0),!0}return!1},t.prototype.LHt=function(t,r){var n,e,i=St(t),o=-1,u=-1;for(n=0;n<i.length;n++)"symbolic"===(e=i[n]).type?"m"===e.content[0].toLowerCase()?o>=0?(e.content=e.content.toLowerCase(),o=-1):(e.content=e.content.toUpperCase(),u=n):"s"===e.content[0].toLowerCase()?u>=0&&(i[u].content=i[u].content.toLowerCase(),u=-1):"h"===e.content[0].toLowerCase()?(o=n,u=-1):u=-1:u>=0&&n>0&&"0"===e.content&&"."===i[n-1].content&&n===u+2&&(i[u].content=i[u].content.toLowerCase());r.y4=i.map((function(t){return t.content})).join("")},t.prototype.Vi=function(r,n,i,o,u,a,s){var f,c,y,m,M,h,d,l,v,g,p;if(o||u){for(f=[],c=!0,!t.hasDate(r)&&t.hasTime(r)&&(c=!1),y=!1,m=0;m<r.length;m++){if(M=r[m],t.hasTime(M)&&!y?c=!1:t.hasDate(M)&&!y&&(c=!0),o&&lt(M,n[0],s)&&c||u&&lt(M,n[0],s)&&!c){for(h=!0,d=0;d<n.length;d++)if(d+m>=r.length||!lt(n[d],r[d+m],s)){h=!1;break}if(l=m+n.length-1,h&&l+1<r.length){for(v=r[l],g=-1,g=l+1;g<r.length&&lt(v,r[g],s);g++);g>l+1&&(m=g,h=!1)}h&&!y&&f.splice(0,0,m)}'"'===M&&(y=!y)}if(a.y4=r,f.length>0){for(m=0;m<f.length;m++)p=f[m],a.y4=e.zf.VP(a.y4,p,n.length),a.y4=e.zf.Eit(a.y4,p,i);return!0}return!1}return!1},t.hasTime=function(t){return e.zf.hD(t,g.CHt[0],!0)>-1||e.zf.hD(t,g.IHt[0],!0)>-1},t.hasDate=function(t){return e.zf.hD(t,g.fHt[0],!0)>-1||e.zf.hD(t,g.bHt[0],!0)>-1},t.a0=function(t,r){return pt(t,r||p)},t}(),r.Hf=X,Z=function(){function t(t,r){var n,e,i;if(Ft.call(this,r),n=this,"h"===(e=B(t)[0]))i=3600;else if("m"===e)i=60;else{if("s"!==e)throw new Error(M().Exp_TokenIllegal);i=1}n.XUt=function(t){var r=t/1e3/i;return Math.abs(r-Math.round(r))<1e-6?Math.round(r):Math.floor(r)}}return t.Name="ABSTimeFormatPart",t}(),Q=function(){function t(t,r){var n,e;Ft.call(this,r),null!==(n=$.exec(t))&&(e=Number(n[1]),(e-=1)>=0&&e<N.length&&(t=N[e])),this.foreColor=t}return t.prototype.toString=function(){return yt(this.foreColor)},t.Name="ColorFormatPart",t}(),tt=function(){function t(t,r,n,e){var i,o,u,a,s,f;function c(t,r){var n,e,i,o,u,a=[],s='"';if(t===d||""===t)return a;for(n=!1,e=[],i=!1,o=0;o<t.length;o++)(u=t[o])!==s||n||(i=!i),n||i||u!==r?e.push(u):(a.push(e.join("")),e=[]),n="\\"===u&&!n;return a.push(e.join("")),a}bt.call(this,r,n,e),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=ht(o,i.j9t.Nat,i.j9t.currencySymbol())),(u=(o=mt(o)).indexOf("/"))>-1&&(a=c(o,"/"))&&2===a.length&&(i.tHt=a[1],(s=a[0])&&((f=s.lastIndexOf(" "))>-1?(i.nHt=st(s,0,f),i.eHt=st(s,f+1,s.length-f-1)):i.eHt=s)),i.iHt=o}return t.prototype.formatString=function(){return this.$Ut},t.prototype.format=function(r){var n,e,i,u,a,s,f,c,y,m,M,h,l,v,g,p,b,F,_,w,D,H;return k(r,"boolean")?r.toString().toUpperCase():(n=this,e=o.lt.uJ(r),j(e)||!isFinite(e)||j(r)?"string"==typeof r?r:d:(i=E(n.cultureName),n.eHt&&n.tHt?(m={value:0},M={value:0},h={value:0},l=n.GHt(),t.getFraction(e,l,m,M,h)?((v=t.getGCD(M.value,h.value))>1&&(M.value/=v,h.value/=v),n.nHt?(y="",1===h.value&&(m.value+=M.value,M.value=0,h.value=0),(g=C(A(m.value,n.nHt,i)))&&"0"!==g&&(y+=g,y+=" "),0===m.value&&e<0&&(y+=i.NumberFormat.negativeSign),0===e&&(y+="0"),a=n.tHt,s=parseFloat(a),!j(s)&&s>0&&(0!==M.value&&0!==h.value&&(M.value*=s/h.value),h.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),c=(f=Math.ceil(M.value))-M.value,M.value=c<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString())),p=n.eHt,b=parseFloat(p),j(b)||0!==b||((F=p.length)>(w=(_=M.value.toString()).length)?p=p.substr(0,F-(F-w)):F<w&&(_=_.substr(0,w-(w-F)),M.value=parseInt(_,10))),D=n.UHt(M.value,h.value,p,a,i),0===M.value&&(D=D.replace(/./g," "),""===g)?"0 "+D:""===(y+=D)?"0":y):(y="",H=m.value*h.value+M.value,a=n.tHt,(s=parseFloat(a))>0?(H*=s/h.value,h.value=s,y+=(H=(c=(f=Math.ceil(H))-H)<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString()))+"/"+h.value):y+=n.UHt(H,h.value,n.eHt,n.tHt,i),0===H?"0":y)):e.toString()):u=$t(u=A(e,n.iHt,i),n.qUt,n.j9t,n.aHt,n.cultureName)))},t.prototype.parse=function(t){var r,n,i,o,u,a,s,f,c,y,m,M,h,l,g,p=this;if(!t||t===K.oHt)return d;if("TRUE"===(r=L(t))||r===z()&&z().boolean_true)return!0;if("FALSE"===r||r===z()&&z().boolean_false)return!1;if((n="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),i=p.eHt&&p.tHt,o=p.zHt(p.iHt).HHt,(i||o)&&(u=0,i&&p.nHt&&0<(a=(t=t.trim()).lastIndexOf(" "))&&a<t.length-1&&(u=parseInt(t.substr(0,a),10),t=t.substr(a+1)),0<(s=t.indexOf("/"))&&s<t.length-1&&(f=t.substr(0,s),c=t.substr(s+1),!(j(f)||j(c)||(y=parseInt(f,10),m=parseInt(c,10),j(y)||j(m)||0===m)))))return u+y/m;if(t=p.VHt(t),t=p.YHt(t),h=(M=p.zHt(t)).HHt,l=M.$6t,p.ZHt(l)&&(l=e.zf.OUt(l,I(p.cultureName).numberGroupSeparator,"",!1),g=x.dUt(l,p.cultureName),!j(g)&&isFinite(g))){if(h&&(g=T(g/100,15)),n){if("-"===l.charAt(0)||"+"===l.charAt(0))return d;g=-1*v(g)}return g}return d},t.prototype.GHt=function(){var t,r,n=this,e=n.tHt,i=0;if(e)for(t=e.length,r=0;r<t&&e[r].match(/[#?\d]/);r++)i++;return i},t.prototype.ZHt=function(t){var r,n="",e=0,i=0,o=0,u=d,a=I(this.cultureName);for(r=t.length-1;r>-1;r--){if(t[r]===a.numberDecimalSeparator)e++,o>0&&(u=!1),n="";else if("e"===B(t[r])){if(i++,n="",r===t.length-1)return!1}else if(t[r]===a.numberGroupSeparator)u=3===n.length,o++,n="";else if("-"===t[r]||"+"===t[r]){if(r>0&&"e"!==B(t[r-1]))return!1}else{if(!J(t[r]))return!1;if(n+=t[r],0===r&&0===parseInt(n,10)&&u)return!1}if(e>1||i>1||!1===u)return!1}return!0},t.prototype.VHt=function(t){var r,n,i,o,u,a,s,f=t,c=[];for(r=0;r<f.length;r++)J(f[r])&&c.push(r);for(i=[(n=I(this.cultureName)).currencyDecimalSeparator,n.currencyGroupSeparator,n.currencySymbol,h,n.nanSymbol,n.negativeInfinitySymbol,n.negativeSign,n.numberDecimalSeparator,n.numberGroupSeparator,n.percentDecimalSeparator,n.percentGroupSeparator,n.percentSymbol,n.perMilleSymbol,n.positiveInfinitySymbol,n.positiveSign],o=f.length-1;o>-1;o--)if(u=f[o],V(u)&&i.indexOf(u.toString())<=-1)(o<c[0]||c[c.length-1]<o)&&(f=e.zf.VP(f,o,1));else if(("-"===u||"+"===u)&&(a=o>0?f[o-1].toString():d,(s=["e","E","(",I(this.cultureName).currencySymbol,h]).indexOf(a)<0))break;return f},t.prototype.YHt=function(t){var r,n;if(e.zf.fJ(t,h)){if((r=e.zf.VP(t,0,1)).indexOf(h)<0)return r}else if(n=I(this.cultureName).currencySymbol,h!==n&&e.zf.fJ(t,n)&&(r=e.zf.VP(t,0,n.length)).indexOf(n)<0)return r;return t},t.prototype.zHt=function(t){var r=I(this.cultureName).percentSymbol,n=!0,i=t;return e.zf.fJ(t,r)?i=e.zf.VP(t,0,r.length):e.zf.dT(t,r)?i=e.zf.VP(t,t.length-r.length,r.length):n=!1,e.zf.OS(i,r)&&(n=!1),{$6t:i,HHt:n}},t.prototype.UHt=function(t,r,n,e,i){var o=C(A(t,n,i)),u="0."+r,a="#."+e,s=C(A(u,a,i,!0)),f=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",c=o+"/"+s.substr(s.indexOf(f)+1);return""===n&&(c=t+c),""===e&&(c+=r),c},t.getGCD=function(t,r){var n,e,i;if(0===t)return v(r);if(0===r)return v(t);for(i=(n=Math.max(t,r))%(e=Math.min(t,r));0!==i;)i=(n=e)%(e=i);return v(e)},t.getFraction=function(t,r,n,e,i){var o,u,a,s,f,c,y,m,M,h=0,d=0,l=0,g=0,p=Math.ceil;for(t>0?1===(g=t-p(t)+1)?(g=0,h=t):h=p(t)-1:t<0&&(h=p(t),g=p(t)-t),(o=Math.pow(10,r-1))<2&&(o=2),(u=Math.pow(10,r)-1)<2&&(u=2),a=!1,s=0,f=o;f<=u&&(c=f*g,y=Math.round(c),M=v((m=y/f)-g),!((!a||M<v(s-g))&&(a=!0,s=m,d=y,l=f,M<1e-6)));f++);return n.value=h,e.value=d,i.value=l,a},t.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},t}(),rt=function(){function t(r,n,e,i){bt.call(this,n,e,i),arguments.length>0?(t.rHt(r)||G(),this.$Ut=r):this.$Ut="General",this.JUt=0}return t.rHt=function(t){var r,n,e="",i=!1,o=-1,u=t.length;for(r=0;r<u;r++)'"'===(n=t[r])?o=(i=!i)?r:-1:i||(e+=n);return o>0&&(e+=t.substring(o,u)),!(e.indexOf("0")>=0||e.indexOf("#")>=0||e.indexOf(".")>=0||e.indexOf("@")>=0)},t.prototype.WHt=function(){var t,r=this;return r.QHt||(t=ht(t=r.$Ut,"General",P),r.QHt=new tt(t,r.j9t,r.aHt,r.cultureName),r.QHt.qUt=!0),r.QHt},t.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new tt("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},t.prototype.formatString=function(){return e.zf.Vi(this.$Ut,"@NumberFormat","General")},t.prototype.format=function(t){var r,n,i,u=this;if(o.lt.q8(t,u.cultureName)){if(r=!u.j9t||u.j9t.allowScience(),(n=o.lt.uJ(t))!==l&&n!==d)return v(n)>99999999999&&r||v(n)<1e-11&&0!==n?u.KHt().format(t):u.WHt().format(t)}else{if(k(t,"string"))return i=dt(i=e.zf.Vi(u.formatString(),'"',"")),t;if(k(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,n,o,u,s,f,c,y,m,M,h,g,p,b,F;if(K.Ji(t))return d;if("number"==typeof t)return t;if(r=!1,n=t.trim(),(o=e.zf.hD(n,"-",!1))>0&&!lt(n.charAt(o-1),"E",!0)&&(r=!0),f=(s=(u=E(this.cultureName)).DateTimeFormat).dateSeparator,c=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,M=function(t,r){var n,i,o;if(!r||0===r.length)return!1;for(n=!1,i=0,o=r.length;i<o;i++)if(e.zf.OS(t,r[i],!0)){n=!0;break}return n},(r||e.zf.OS(n,f,!1)||e.zf.OS(n,c,!1)||e.zf.OS(n,"/",!1)||e.zf.OS(n,":",!1)||e.zf.OS(n,"-",!1)||e.zf.OS(n,"\u5e74",!1)||e.zf.OS(n,"\u6708",!1)||e.zf.OS(n,"\u65e5",!1)||M(n,y)||M(n,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(n[0].toUpperCase())>=0&&e.zf.OS(n,".",!1))&&(h=i.ct.yU(n)))return h;if((p="-"===n.charAt(0))||"+"===n.charAt(0)){if("("===(n=e.zf.VP(n,0,1)).charAt(0)&&")"===n.charAt(n.length-1))return t}else if("("===n.charAt(0)&&")"===n.charAt(n.length-1)&&(b=!0,"-"===(n=(n=n.substring(1,n.length-1)).trim()).charAt(0)||"+"===n.charAt(0)))return t;return(g=this.WHt().parse(n))!==d&&g!==l?(F=b&&k(g,"boolean"))?t:(b||p)&&k(g,"number")?-1*v(g):g:t},t}(),nt=function(){function t(t,r,n,e){var i,o=this;bt.call(o,r,n,e),i=vt(t,!1),r&&(i=ht(i,o.j9t.Nat,o.j9t.currencySymbol())),i=dt(i=mt(i)),o.pU=i,o.JUt=3}return t.prototype.format=function(t,r){var n,e,o,u=this;try{return n=void 0,e=void 0,e=t instanceof Date?i.ct.o0(t).toString():ft(t),o=u.XHt(u.pU),n=u.qHt(e,o.formatTokens,t,o.hasAtPart,r)}catch(t){return""}},t.prototype.parse=function(t){return t||""},t.prototype.formatString=function(){return this.pU},t.prototype.XHt=function(t){var r,n,e=[],i=!1,o="",u=!1,a=d;for(n=0;n<t.length;n++)r=t.charAt(n),u?('"'!==r?o+=r:(o+=r,e.push(o),o="",u=!1),a=r):"*"!==a&&"_"!==a&&"\\"!==a||""===o?"*"!==r&&"_"!==r&&"\\"!==r?"@"!==r?'"'!==r?(o+=r,a=r):(a=r,""!==o&&e.push(o),o=r,u=!0):(a=r,""!==o&&(e.push(o),o=""),e.push(r),i=!0):(a=r,""!==o&&(e.push(o),o=""),o+=r):(o+=r,e.push(o),o="");return""!==o&&e.push(o),{formatTokens:e,hasAtPart:i}},t.prototype.qHt=function(t,r,n,e,i){var o,u,a=[],s=!1;if("string"!=typeof n||e||i)for(o=r.length-1;o>=0;o--)"*"===(u=r[o])[0]?s||(s=!0,a.push({type:"fillingChar",value:u[1]})):"_"===u[0]?a.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&a.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?a.push({type:"text",value:"@"}):"@"===u[0]?a.push({type:"text",value:t}):a.push({type:"text",value:u});else a.push({type:"text",value:n});return a.reverse()},t}(),et=function(){return{pattern:H,formatter:["d-mmm","mmm-yy",R().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",R().shortDatePattern+" h:mm",R().shortDatePattern+" h:mm:ss",R().shortDatePattern+" h:mm:ss.0"]}},it=function(){function t(t,r){var n=this;0===arguments.length?(n.formatCached="General",n.E9t=new rt):n.Hc(t,r)}return t.prototype.Hc=function(r,n){var e,i,o,u,s,f,c,y,m,M,h,v,g,p,b,F,_;for(r!==d&&r!==l||G(),e=r,(i=this).formatCached=r,o="",u="",s=!1,f=!1,c=!1,y=[],m=0;m<r.length;m++)'"'===(M=r[m])?(f=!f,u+=M):f?u+=M:"["===M?(s&&G(),u&&(o||(o=""),o+=u),u=M.toString(),s=!0):"]"===M?(s||G(),u?(h=(u+=M).toString(),(v=_t(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(h),h)),o+=u):h===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),c=!0):i.addPart(v,h):(o+=g=t.partToNormalStr(h),e=ht(r,h,g)),u=""):G(),s=!1):u+=M;u?s?G():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(n=i.localeIDFormatPart.cultureInfo().name()),F=(b=wt(o,p=i.conditionalFormatPart))._type,_=b.uHt?e:o,F?i.E9t=new F(_,i.localeIDFormatPart,i.dbNumberFormatPart,n,y.length>0?y:d,c):G()},t.prototype.$Ht=function(){var r,n=this,e="";return n.dbNumberFormatPart&&((r=t.proNames.some((function(t){return"dbNumberFormatPart"!==t&&n[t]})))||(e="General")),e},t.prototype.formatString=function(){var r,n,e,i=this,o="";for(r=0,n=t.proNames.length;r<n;r++)i[e=t.proNames[r]]&&(o+=i[e].toString());return o+=i.E9t.formatString()},t.prototype.addPart=function(r,n){var e,i,o,u=this,a=t.proNames,s=t.preProcessPart(n);for(e=0,i=a.length;e<i;e++)if(lt(o=a[e],r.Name,!0)){if(u[o])throw new Error(M().Exp_DuplicatedDescriptor);u[o]=new r(s,n)}},t.prototype.format=function(t,r){return this.E9t.format(t,r)},t.prototype.parse=function(t){return this.E9t.parse(t)},t.checkFormatter=function(t){if(!t||t===K.oHt)throw new Error(M().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var n=Mt(r);return t.checkFormatter(n),n},t.partToNormalStr=function(r){var n=t.preProcessPart(r);return n[0]===h&&(n=n.slice(1)),'"'+n+'"'},t.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],t}(),ot=function(t){function r(r,n){var e=t.call(this,r,n)||this,i=e;return i.lHt=!0,i.PropertyChanged=[],K.Ji(r)&&(r="General"),i.formatCached=r,i.cultureName=n,i.init(),e}return ut(r,t),r.prototype.toJSON=function(){var t=this,r={formatCached:t.formatCached};return t.cultureName&&(r.customerCultureName=t.cultureName),"general"===B(t.formatCached)&&delete r.formatCached,r},r.prototype.hasFormattedColor=function(){var t,r,n=this;for(t in _)if(_.hasOwnProperty(t)&&(r=n.getFormatter(_[t]))&&r.colorFormatPart)return!0;return!1},r.prototype.formatString=function(t){var r,n,e,i,o=this;if(0===arguments.length){for(r=K.oHt,n=0,e=o.formatters.length;n<e;n++)r+=(i=o.formatters[n]).formatString(),n!==e-1&&(r+=";");return r}if(!t)throw new Error(M().Exp_ValueIsNull);return o.formatters=d,o.formatCached=t,o.init(),o.tzt("formatString"),o},r.prototype.getFormatter=function(t){var r=this;return r.formatters&&r.formatters[t]},r.prototype.getPreferredEditingFormatter=function(t){var n,e,i,u=R(this.cultureName),a=I(this.cultureName),s=r.defFormatter;return k(t,"TimeSpan")?s(u.longTimePattern):k(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",s(u.shortDatePattern+e)):o.lt.q8(t,this.cultureName)?s((i=o.lt.uJ(t))>=1e21||i<=1e-17&&i>0||i<=-1e21||i<0&&i>=-1e-17?null!==(n=a.scientificNotation)&&void 0!==n?n:"0.##############E+00":P):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,n){var u,a,s,f,c,y,m,M,h,l,v,g,p,b,F,_,w,D,H,N,$,S,x,P,C,A=this,T=r.defFormatter;if(n||(n={value:d}),n.value=d,K.Ji(t))return new r;if(u=t,a=n.value=A.parse(u),k(a,"DateTime")||k(a,"TimeSpan")){for(f=(s=et()).pattern,c=s.formatter,(M=(m=(y=E(A.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(f=f.concat([M]),c=c.concat([M[0]])),"ja-JP"===y.name()&&(f=f.concat([m.eraFormatter]),c=c.concat(["ge.M.d"]),h=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),f=f.concat([h]),c=c.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),l=y.QPt.filter((function(t){return"gge"===t.substr(0,3)})),f=f.concat([l]),c=c.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),v=y.QPt.filter((function(t){return"ge"===t.substr(0,2)})),f=f.concat([v]),c=c.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),g=0;g<f.length;g++)for(p=f[g],b=0;b<p.length;b++)if(F=p[b],(_=i.ct.yU(t,F))&&_-a===0)return new r(c[g])}else if(o.lt.q8(a,A.cultureName)){if(D=(w=I(A.cultureName)).currencySymbol,H=w.numberDecimalSeparator,N=w.percentSymbol,$=w.numberGroupSeparator,S="E",C=(P=(x=e.zf.OS)(u,H))?".00":"",u[0]===D)return T(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",D,C));if(x(u,S,!0))return T("0.00E+00");if(u[0].toString()===N||u[u.length-1].toString()===N)return T(K.I5("0{0}%",C));if(x(u,$))return T(K.I5("#,##0{0}",C))}return T("General")},r.prototype.format=function(t,r){var n,e,i,u,a,s,f;if(k(t,"boolean"))return z()&&(t=t?z().boolean_true:z().boolean_false),t.toString().toUpperCase();if(i=0,u=(n=this).vn(t)){a=u.colorFormatPart,r&&a&&(r.conditionalForeColor=r.value=a.foreColor),(e=o.lt.q8(t,n.cultureName))&&(i=o.lt.uJ(t)),s=K.oHt;try{e&&u===n.getFormatter(_.jHt)&&0!==this.expressionNumber?(s=u.format(u.considerNegSymbol?i:v(i)))===d&&k(t,"string")&&(s=t):(s=u.value)===l&&(f=!n.lHt&&u===n.getFormatter(_._text),s=u.format(t,e||f)),r&&(r.content=S(s)?s:[{type:"text",value:s}]),S(s)&&(s=x.mUt(s))}catch(r){k(t,"string")&&(s=t.toString())}return s}return e&&i<0?"-".toString():k(t,"string")?t.toString():t===l||t===d?K.oHt:t.toString()},r.prototype.parse=function(t){var r=this;return r.formatters&&r.formatters.length>0?r.formatters[0].parse(t):d},r.prototype.init=function(){var t,r,n,e=this,i=e.formatCached;for(K.Ji(i)&&G(),e.formatters=[],t=kt(i),e.lHt=1===t.length,(!t||t.length<1||t.length>4)&&G(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?G():this.hasAt=!0),n=new it(t[r],e.cultureName),e.formatters.push(n);e.getFormatter(_.EHt)||G(),this.nzt()},r.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;_=o.lt.Dh({},w[t]),this.hasAt&&0!==this.expressionNumber&&(_._text=this.formatters.length-1)},r.prototype.vn=function(t){var r,n,e,i,u,a,s,f,c,y,m,M=this;if(M.nzt(),n=(r=M.getFormatter(_.EHt))&&r.conditionalFormatPart,e=M.getFormatter(_._text),n&&(_.OHt=2,this.hasAt||(_._text=3)),"string"==typeof t&&j(t))return e||(n?t:r);if(o.lt.q8(t,M.cultureName)||k(t,"boolean")){if(i=M.getFormatter(_.jHt),u=M.getFormatter(_.OHt),a=o.lt.uJ(t),s=n&&r.conditionalFormatPart.isMeetCondition(a),c=(f=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(a),y=void 0,M.lHt||(n?s:a>0||0===a&&!u))y=r;else if(f?c:a<0)y=i;else if(u)y=u;else if(i){if(n&&f)return{value:m=a+""};y=i}return y&&(!n||f||y!==i||u||(y.considerNegSymbol=!0),n&&f&&y===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(y.considerNegSymbol=!0),this.expressionNumber<=1&&(y.considerNegSymbol=!0)),y}return d},r.prototype.tzt=function(t){var r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},r.defFormatter=function(t){var n=r[t];return n||(n=new r(t),r[t]=n),n},r.test=function(t){var r,n,e=!0;try{r=new c.Lexer(t),(n=new y.Parser(r)).parse()}catch(t){e=!1}return e},r}(U),r.GeneralFormatter=ot},"./src/plugins/formatter/formatterGrammar/interface.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=r.BACKSLASH=r.UNDERLINE=r.ASTERISK=r.DOUBLE_QUOTE=r.SEMICOLON=void 0,r.SEMICOLON=";",r.DOUBLE_QUOTE='"',r.ASTERISK="*",r.UNDERLINE="_",r.BACKSLASH="\\";var n=function(){throw new Error("Invalid Number Format")};r.throwError=n},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,n){var e,i,o,u,a;Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(t){var r;return!!["0","#","?",".","%",",","/",e.BACKSLASH,e.ASTERISK,e.UNDERLINE,"@"].find((function(r){return r===t}))},o=function(t){var r;return[e.BACKSLASH,e.ASTERISK,e.UNDERLINE].find((function(r){return r===t}))},u=function(t,r){return{type:t,value:r}},a=function(){function t(t){this.Fmt=[],this.DZe=t,this.vHr()}return t.prototype.vHr=function(){for(var t,r,n=0,a=this.DZe;n<a.length;n++)if(t=a[n],i(t)){if(o(t)){this.Fmt.push(u("symbol",t)),n<a.length-1&&(this.Fmt.push(u("char",a[n+1])),n++);continue}this.Fmt.push(u("symbol",t))}else if(t!==e.SEMICOLON){if(t===e.DOUBLE_QUOTE){if(-1!==(r=a.slice(n+1).search(e.DOUBLE_QUOTE))){r=r+n+1,this.Fmt.push(u("text",a.slice(n+1,r))),n=r;continue}(0,e.throwError)()}this.Fmt.push(u("char",t))}else this.Fmt.push(u("semicolon",t));this.Fmt.push(u("EOF",""))},t.prototype.jbi=function(){return this.Fmt.shift()},t}(),r.Lexer=a},"./src/plugins/formatter/formatterGrammar/parser.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(){function t(t){this.gHr=t,this.mHr=t.jbi()}return t.prototype.pHr=function(t){this.mHr.type===t?this.mHr=this.gHr.jbi():(0,e.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.mHr.type;)t.push(this.bHr()),t.length>4&&(0,e.throwError)();return{type:"numberFormat",body:t}},t.prototype.bHr=function(){for(var t,r=[];"semicolon"!==this.mHr.type&&"EOF"!==this.mHr.type;)"symbol"===(t=this.mHr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.mHr.type&&this.pHr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.mHr.value;return r===e.ASTERISK?(this.pHr("symbol"),t={type:"asterisk",body:this.mHr.value},this.pHr("char")):r===e.BACKSLASH?(this.pHr("symbol"),t={type:"char",body:this.mHr.value},this.pHr("char")):r===e.UNDERLINE?(this.pHr("symbol"),t={type:"underline",body:this.mHr.value},this.pHr("char")):(t={type:"symbol",body:this.mHr.value},this.pHr("symbol")),t},t.prototype.yHr=function(){var t,r=this.mHr.type;return"char"===r?(t={type:"char",body:this.mHr.value},this.pHr("char")):"text"===r&&(t={type:"text",body:this.mHr.value},this.pHr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M;function h(t){return"object"==typeof t&&t!==o&&t.text!==i}function d(t,r){var n,e,f;if(t===o||t===i)return!1;if(k(t)===u)r.value=t;else if(k(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if(k(t)!==a)return!1;if(0===S(t=t.trim()))return!1;if(n=!1,"%"===t.charAt(S(t)-1)&&(n=!0,t=t.substr(0,S(t)-1)),S(t)>=2&&"0"===t[0]&&"x"===t[1])return!1;if(e=Number(t).valueOf(),isNaN(e)||!isFinite(e)){if(f=new Date(t),isNaN(f))return!1;e=m.o0(f)}n&&(e/=100),r.value=e}return!0}function l(t){var r,n,e,i,o,u,a,s,f,c,y,m,M,h,d,l=t.ezt;for(l||(t.izt=[],t.rzt=[]),r=l?t.ozt:t.izt,n=t.azt,e=t.uzt,i=l?t.szt:t.rzt,o=t.Mct,u=t.czt,a=t.fzt,s=t.SIr(),c={},y=0;y<s;y++){for(m=!1,M=void 0,h=0;h<S(o)&&(M=o[h],l&&M===t.lzt||(e[M]?($(c[d=t.columnNames[M]])&&(c[d]=t.getColumnIndex(d)),f=t.fue(c[d],y),m=!e[M][f]):n[M]&&(m=!n[M][y]),!m));h++);!m&&l&&(u?($(c[d=t.columnNames[M]])&&(c[d]=t.getColumnIndex(d)),m=!u[f=t.fue(c[d],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(h=0;h<S(r);h++)r[h]&&i.push(h)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function g(t){var r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<S(r);n++)e[(r[n]+"").toUpperCase()]=n}function p(t,r){var n,e,i,o,u,a,s,f=t.vzt,c=t.pzt,y=t.mzt,m=t.gzt,M=m[r]=[];for(t.bzt=[],t.xIr(r,[]),f[r]=[],c[r]={},y[r]=[],n={},e=0;e<t.SIr();e++)o=h(i=t.JNr(e,r))?i.text.trim():i,t.TIr(r,o),(u=n[v(o)])?(u.list.push(e),M[e]=u.index):(a=[e],f[r].push(o),y[r].push(a),s=S(y[r])-1,c[r][o]=s,M[e]=s,n[v(o)]={list:a,index:s})}function b(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,d,l=t.yzt,v=t.getColumnIndex(r),g=[];if(!v)return g;if(e=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!e)return g;for(l[v]||t.Czt(v),o=[],u=l[v],a=0;a<S(u);a++)f=h(s=t.JNr(a,v))?s.value:s,o[u[a]]=f;for(c=t.Szt[v],a=0;a<S(e);a++){for(y=e[a],m=!1,d=(M=t.Tzt(o,y)).start;d<=M.end;d++)if(i[c[d]]){m=!0;break}m!==n&&g.push(y)}return g}function F(t,r){var n,e,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(n=S(t.getData(r)),e=t.ezt?t.ozt:t.izt,i=0;i<n;i++)e[i]||(o=t.fue(a,i),-1===u.indexOf(o)&&u.push(o));return u}}function _(t,r){var n,e,i,o,u,a,s,f=[],c={},y=t.getColumnIndex(r);if(y>=0)for(n=t.czt||t.fzt,e=t.uzt[y]||t.azt[y],i=t.ezt&&y===t.lzt?n:e,u=S((o=!!t.azt[y])?t.getData(r):t.getExclusiveData(r)),a=0;a<u;a++)i&&!i[a]&&(c[s=o?t.fue(y,a):a]||(c[s]=!0,f.push(s)));return f}function w(t,r){var n,e,i,o,u,a,s,f,c,y={},m=t.columnNames,M=S(m);for(n=0;n<M;n++)if(m[n]!==r)for(e=_(t,m[n]),i=0;i<S(e);i++)for(o=t.getRowIndexes(m[n],e[i]),u=0;u<S(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},M=t.SIr(),n=0;n<M;n++)s=t.getExclusiveRowIndex(r,n),y[n]||(a[s]=!0);for(f=S(t.getExclusiveData(r)),c=[],n=0;n<f;n++)a[n]||c.push(n);return c}function D(t,r,n,e){var i,o,u,a,s,f,c,y,m=t.getColumnIndex(r),M=t.yzt;for(M[m]||t.Czt(m),i=[],o=M[m],u=0;u<S(o);u++)s=h(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(f=[],u=0;u<S(n);u++)for(c=t.Tzt(i,n[u]),y=0;y<S(o);y++)o[y]>=c.start&&o[y]<=c.end&&(f[y]=!0);e?(t.fzt=f,t.wzt=n):(t.Mzt[m]=n,t.azt[m]=f,delete t.uzt[m],delete t.Azt[m]),l(t)}function H(t,r,n,e){var i,o=t.getColumnIndex(r),u=[];for(i=0;i<S(n);i++)u[n[i]]=!0;e?t.czt=u:(t.uzt[o]=u,t.Azt[o]=n,delete t.Mzt[o],delete t.azt[o]),l(t)}function N(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function $(t){return t===i||t===o}function k(t){return typeof t}function S(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,e=n("./src/common/util/datetimehelper.ts"),i=void 0,o=null,u="number",a="string",s="boolean",f=e.ct.o0,function(t){t[t.all=0]="all",t[t.byCurrentColumn=1]="byCurrentColumn",t[t.byOtherColumns=2]="byOtherColumns"}(c=r.FilteredOutDataType||(r.FilteredOutDataType={})),function(t){t[t.average=1]="average",t[t.count=2]="count",t[t.counta=3]="counta",t[t.max=4]="max",t[t.min=5]="min",t[t.product=6]="product",t[t.stdev=7]="stdev",t[t.stdevp=8]="stdevp",t[t.sum=9]="sum",t[t.vars=10]="vars",t[t.varp=11]="varp"}(y=r.SlicerAggregateType||(r.SlicerAggregateType={})),m=function(){function t(){}return t.o0=function(t){return f(t)},t.quickSort=function(r){var n,e=S(r),i=[];for(n=0;n<e;n++)i[n]={index:n,value:r[n]};return t.quickSortImp(i)},t.quickSortImp=function(r){var n,e,i,o,u,a,s,f,c=r.length;if(c<=1)return r;for(n=t,i=r[e=Math.floor(c*Math.random())],o=[],u=[],a=[],s=0;s<c;s++)e!==s?(f=n.sortCompare(r[s].value,i.value))<0?o.push(r[s]):f>0?u.push(r[s]):a.push(r[s]):a.push(r[s]);return n.quickSortImp(o).concat(a,n.quickSortImp(u))},t.isEquals=function(t,r){return!(!$(t)&&""!==t||!$(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():k(t)===a&&k(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,n){var e=k(r),i=k(n);return e===s?r=r?1:0:r instanceof Date&&(r=t.o0(r)),i===s?n=n?1:0:n instanceof Date&&(n=t.o0(n)),e===i||e!==u&&i!==u?e===a&&i===a?r.toLowerCase()>n.toLowerCase():r>n:i===u},t.sortCompare=function(r,n){var e=t,i=-1,o=$(r)||""===r||k(r)===u&&isNaN(r),a=$(n)||""===n||k(n)===u&&isNaN(n);return o&&a?i=0:o?i=1:a?i=-1:e.isEquals(r,n)?i=0:e.isGreaterThan(r,n)&&(i=1),i},t}(),r.xzt=m,M=function(){function t(t,r){var n=this;n.hzt={},n.dzt=[],n.vzt=[],n.pzt=[],n.mzt=[],n.gzt=[],n.uzt=[],n.Azt=[],n.azt=[],n.Mzt=[],n.izt=[],n.rzt=[],n.Mct=[],n.szt=[],n.ozt=[],n.ezt=!1,n.aT=[],n.Upt=0,n.bzt=[],n.Szt=[],n.yzt=[],n.lue=0,Object.defineProperty(n,"data",{get:function(){return this.VEt()},set:function(t){n.HY(t)}}),n.Izt(t,r),n.AIr()}return t.prototype.AIr=function(){var t,r=this;for(t=0;t<r.SIr();t++)r.izt[t]=!0,r.rzt.push(t)},t.prototype.VEt=function(){return this._data},t.prototype.HY=function(t){this._data=t},t.prototype.SIr=function(){return S(this._data)},t.prototype.JNr=function(t,r){return this._data[t][r]},t.prototype.IIr=function(t,r,n){this._data[t][r]=n},t.prototype.kIr=function(t,r){var n,e=this,i=this._data,o=S(e.columnNames);for(n=0;n<r;n++)i.splice(t,0,new Array(o))},t.prototype.tX=function(t,r){this._data.splice(t,r)},t.prototype.NIr=function(t,r){var n,e=this._data;for(n=0;n<S(e);n++)e[n].splice(t,r)},t.prototype.jIr=function(t,r,n){this.dzt[t][r]=n},t.prototype.DIr=function(t){return!!this.dzt[t]},t.prototype.jEe=function(t){return this.dzt[t]},t.prototype.xIr=function(t,r){this.dzt[t]=r},t.prototype.TIr=function(t,r){this.dzt[t].push(r)},t.prototype._Ir=function(t,r,n){this.dzt[t].splice(r,0,null!=n?n:i)},t.prototype.OIr=function(t,r,n){this.dzt[t].splice(r,n)},t.prototype.EIr=function(t,r){this.dzt.splice(t,r)},t.prototype.inPreview=function(){return this.ezt},t.prototype.Izt=function(t,r){var n=this;n._data=t,n.columnNames=r,g(n)},t.prototype.vue=function(t){var r=this;r.mue&&0===r.lue&&(r.Nzt("onDataChanged",t),r.mue=!1)},t.prototype.gue=function(){this.lue++},t.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},t.prototype.onDataChanged=function(t){var r,n,e,i,o,u,a,s,f,c,y,m=this,M=new Array(S(m.columnNames)),d=m.Azt,v=m.vzt,g=m.uzt,b={};for(r=0;r<S(t);r++)e=(n=t[r]).data,i=n.columnName,o=n.row,$(b[i])&&(b[i]=m.getColumnIndex(i)),u=b[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,e),a=h(e)?e.text:e,m.DIr(u)&&m.jIr(u,o,a),M[u]=!0;for(s=0;s<S(M);s++)if(M[s]){for(f=d[s],d[s]=f?[]:void 0,g[s]=f?[]:void 0,c=[],r=0;f&&r<S(f);r++)c.push(v[s][f[r]]);for(p(m,s),r=0;r<S(c);r++)y=m.pzt[s][c[r]],d[s].push(y),g[s][y]=!0}l(m),m.mue=!0,m.vue(t)},t.prototype.Nzt=function(t){var r,n,e,i,o=[];for(r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(n=this.aT||[],e=0;e<S(n);e++)(i=n[e])[t]&&i[t].apply(i,o)},t.prototype.onColumnNameChanged=function(t,r){var n=this,e=n.hzt,i=n.getColumnIndex(t);i<0||(n.columnNames[i]=r,delete e[t.toUpperCase()],e[r.toUpperCase()]=i,n.Nzt("onColumnNameChanged",t,r))},t.prototype.onRowsAdded=function(t,r,n){var e,i,u,a,s,f,c,y,M,h,d,l,v,g=this,p=S(g.columnNames),b=g.vzt,F=g.mzt,_=g.gzt,w=g.uzt,D=g.Azt,H=g.izt,N=g.rzt,$=g.Mct;for(g.bzt=[],g.kIr(t,r),i=0;i<p;i++){for(e=0;e<r;e++)g.DIr(i)&&g._Ir(i,t);if(s=void 0,a=b[i]){for(f=o,c=0;c<S(a);c++){for(y=F[i][c],M=0;M<S(y);M++)y[M]>=t&&(y[M]+=r);m.isEquals(a[c],o)&&(f=y,s=c)}for(f||(f=[],a.push(o),s=S(a)-1,g.pzt[i][o]=s,F[i].push(f),w[i]&&-1===$.indexOf(i)&&(w[i][s]=!0,D[i].push(s))),h=t;h<t+r;h++)f.push(h);for(u=t;u<t+r;u++)_[i].splice(u,0,s)}}for(d=!0,e=0;e<S($);e++)l=_[i=$[e]][t],!0!==w[i][l]&&(d=!1);for(e=0;e<S(N);e++)N[e]>=t&&(N[e]+=r);for(u=g.SIr()-1;u>=t+r;u--)H[u]=H[u-r];for(v=S($)>0,u=t;u<t+r;u++)d&&N.push(u),H[u]=!v;n||g.Nzt("onRowsChanged",t,r,!0)},t.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},t.prototype.kzt=function(t,r,n){var e,i,o,u,a,s,f,c,y=this,m=y.Azt,M=y.vzt,h=y.uzt,d=S(y.columnNames);for(y.tX(t,r),i=0;i<d;i++){if(y.DIr(i)&&y.OIr(i,t,r),u=[],(o=m[i])&&n){for(e=0;e<S(o);e++){for(a=y.getRowIndexes(y.columnNames[i],o[e]),s=!0,f=0;f<S(a);f++)if(a[f]<t||a[f]>=t+r){s=!1;break}s||u.push(M[i][o[e]])}m[i]=[],h[i]=[]}if(p(y,i),o&&n)for(e=0;e<S(u);e++)c=y.pzt[i][u[e]],m[i].push(c),h[i][c]=!0}n&&l(y),y.Nzt("onRowsChanged",t,r,!1)},t.prototype.onColumnsRemoved=function(t,r){var n,e,i,o,u,a,s,f,c=this,y=[],m=c.Mct,M=t+r;for(n=t;n<M;n++)(e=c.columnNames[n])&&(i=n,y.push(e),-1!==m.indexOf(i)&&c.doUnfilter(e));for(s in o=c.uzt||c.azt,u=c.Azt||c.Mzt,a=c.hzt,c.NIr(t,r),c.bzt=[],c.columnNames.splice(t,r),c.EIr(t,r),c.vzt.splice(t,r),c.pzt.splice(t,r),c.mzt.splice(t,r),c.gzt.splice(t,r),o.splice(t,r),u.splice(t,r),a)a[s]>=t+r&&(a[s]-=r);for(n=0;n<S(y);n++)delete a[(e=y[n]).toUpperCase()],t=c.getColumnIndex(e),-1!==(f=m.indexOf(t))&&m.splice(f,1),c.Nzt("onColumnRemoved",y[n])},t.prototype.Dzt=function(){return this.bzt},t.prototype._zt=function(){return this.Szt},t.prototype.Czt=function(t){var r,n,e,i,o,u,a,s,f,c,y,M=this;for(M.DIr(t)||p(M,t),r=M.SIr(),n=[],e=0;e<r;e++)o=h(i=M.JNr(e,t))?i.value:i,n.push(o);for(u=m.quickSort(n),a=M.bzt[t]=[],s=M.Szt[t]=[],f=M.yzt[t]=[],c=0;c<S(u);c++)y=u[c],a.push(y.value),s.push(y.index),f[y.index]=c},t.prototype.getColumnIndex=function(t){var r=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===r?-1:r},t.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},t.prototype.getFilteredOutRowIndexes=function(){var t,r=this,n=r.SIr(),e=r.ezt?r.ozt:r.izt,i=[];for(t=0;t<n;t++)e[t]||i.push(t);return i},t.prototype.getData=function(t,r){var n,e,i,o,u,a,s,f=this,c=f.getColumnIndex(t);if(c>=0){if(r){for(f.bzt[c]||f.Czt(c),n=f.jEe(c),e=f.bzt[c],o=(i=f.Tzt(e,r)).start,u=i.end,a=[],s=o;s<=u;s++)a.push(n[f.Szt[c][s]]);return a}return f.DIr(c)||p(f,c),f.jEe(c)}return[]},t.prototype.aggregateData=function(t,r,n){var e,o,u,a,s,f,c,y,m,M=this,h=M.getColumnIndex(t);return h<0?i:(M.bzt[h]||M.Czt(h),a=S(u=M.bzt[h]),e=(s=M.Tzt(u,n)).start,o=s.end,5===r?e>=a?i:u[e]:4===r?o<0?i:u[o]:3===r?o<e?0:o-e+1:(c=(f=M.Ezt(u,r,e,o)).data1,y=f.data2,m=f.data3,1===r?c/=y:7===r||10===r?(c=(m*y-c*c)/(m*(m-1)),c=7===r?Math.sqrt(c):c):8!==r&&11!==r||(c=(m*y-c*c)/(m*m),c=8===r?Math.sqrt(c):c),c))},t.prototype.Ezt=function(t,r,n,e){var u,a,s,f=6===r?1:0,c=0,y=0;for(u=n;u<=e;u++)(a=t[u])===o&&a===i||d(a,s={value:o})&&(a=s.value,1===r?(f+=a,c++):2===r?f++:9===r?f+=a:6===r?f*=a:7!==r&&8!==r&&10!==r&&11!==r||(f+=a,c+=a*a,y++));return{data1:f,data2:c,data3:y}},t.prototype.Tzt=function(t,r){var n=S(t),e,o,u,a;if(r){if(r.min===-1/0)e=0;else for(u=0;u<n;u++)if(a=t[u],m.isEquals(r.min,a)||m.isGreaterThan(a,r.min)){e=u;break}if(e===i&&(e=n),o===1/0)o=n-1;else{for(u=n-1;u>=0;u--)if(a=t[u],m.isEquals(a,r.max)||m.isGreaterThan(r.max,a)){o=u;break}o===i&&(o=-1)}}else e=0,o=n-1;return{start:e,end:o}},t.prototype.getExclusiveData=function(t){var r=this,n=r.vzt,e=r.getColumnIndex(t);return e>=0?(n[e]||p(r,e),n[e]):[]},t.prototype.getRowIndexes=function(t,r){var n=this,e=n.getColumnIndex(t);return e>=0?(n.gzt[e]||p(n,e),n.mzt[e][r]):[]},t.prototype.getExclusiveRowIndex=function(t,r){var n=this,e=n.getColumnIndex(t);return n.fue(e,r)},t.prototype.fue=function(t,r){var n=this,e=n.gzt;return t>=0?(e[t]||p(n,t),e[t][r]):-1},t.prototype.getFilteredIndexes=function(t){var r=[],n={};return this.jzt(t,r,n),r},t.prototype.jzt=function(t,r,n){var e,i,o,u=this,a=u.ezt?u.szt:u.rzt,s=u.getColumnIndex(t);for(e=0;e<S(a);e++)i=a[e],$(o=u.fue(s,i))||(n[o]?n[o]++:(n[o]=1,r.push(o)))},t.prototype.getFilteredRanges=function(t){return b(this,t,!1)},t.prototype.getFilteredOutRanges=function(t){return b(this,t,!0)},t.prototype.getFilteredOutIndexes=function(t,r){var n=this;return 0===r?F(n,t):1===r?_(n,t):w(n,t)},t.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},t.prototype.detachListener=function(t){var r,n=this.aT||[];for(r=0;r<S(n);r++)if(n[r]===t){n.splice(r,1);break}},t.prototype.suspendFilteredEvents=function(){this.Upt++},t.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},t.prototype.doFilter=function(t,r,n){this.Ozt(t,r,n),this.onFiltered()},t.prototype.Ozt=function(t,r,n){var e=this,i=e.Mct,o=e.getColumnIndex(t);o<0||(n?(e.ezt=!0,e.lzt=o):e.ezt&&N(e,!1),i.indexOf(o)<0&&i.push(o),r.ranges?D(e,t,r.ranges,n):H(e,t,r.exclusiveRowIndexes,n))},t.prototype.clearPreview=function(){N(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,n,e=this;e.ezt&&N(e,!1),(r=e.getColumnIndex(t))<0||(delete e.Mzt[r],delete e.azt[r],delete e.uzt[r],delete e.Azt[r],l(e),(n=e.Mct.indexOf(r))>=0&&e.Mct.splice(n,1))},t.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},t.prototype.getListener=function(){return this.aT},t}(),r.GeneralSlicerData=M},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht,dt,lt,vt,gt,pt,bt,Ft,_t,wt=this&&this.qKr||(Dt=function(t,r){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Dt(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Dt(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),Dt;function Ht(t,r){return{x:t,y:r}}function Nt(t,r,n,e){return{x:t,y:r,width:n,height:e}}function $t(t,r){var n,e,i,o=t[0],u=o&&o.value?o.value:o;for(e=1,i=t.length;e<i;e++)n=(o=t[e])&&o.value?o.value:o,(r&&u>n||!r&&u<n)&&(u=n);return u}function kt(t,r,n,e,i,o,u){o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.stroke()}function St(t,r,n,e,i,o,u){t.save(),o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.closePath(),t.stroke(),t.restore()}function xt(t,r,n,e,i,o,u,a){var s,f,c,y,m,M,h;if(t.save(),s=[o,u],t.setLineDash)t.beginPath(),t.strokeStyle=a,t.setLineDash(s),t.stroke(),t.moveTo(r,n),t.lineTo(e,i),t.stroke();else{for(t.beginPath(),t.lineWidth=1,t.strokeStyle=a,c={x:(e-r)/(f=b(p(e-r,2)+p(i-n,2))),y:(i-n)/f},y=0,m=0;y<f;)y+=M=l(s[m%2],f-y),(h=++m%2)&&t.moveTo(r,n),r+=M*c.x,n+=M*c.y,h&&t.lineTo(r,n);t.stroke()}t.restore()}function Pt(t,r,n,e,i,o,u,a,s,f,c,y){r?kt(t,n,e,i,o,c,y):kt(t,u,a,s,f,c,y)}function Ct(t,r,n,e,i,o,u,a){t.save(),u&&(t.fillStyle=u),t.textBaseline=a||K,t.beginPath(),t.font=i,t.textAlign=o,e="string"==typeof e?e:e+"",t.fillText(e,r,n),t.restore()}function At(t,r,n,e,i,o,u){r=Math.floor(r),n=Math.floor(n),e=Math.floor(e),i=Math.floor(i),u%2!=0&&(r===e?(r+=.5,e+=.5):n===i&&(n+=.5,i+=.5)),kt(t,r,n,e,i,o,u)}function Tt(t,r,n,e,i,o,u,a,s,f){var c,y,m,h;switch(o=Math.round(o),u=Math.round(u),s){case 0:u=Math.round(n+a),h=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u-Math.sin(M/3)*a);break;case 1:o=Math.round(r+e-a),m=Math.round(o),h=Math.round(u+a),c=Math.round(o+Math.sin(M/3)*a),y=Math.round((u+h)/2);break;case 2:u=Math.round(n+i-a),h=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u+Math.sin(M/3)*a);break;case 3:o=r+a,m=Math.round(o),h=Math.round(u+a),c=Math.round(o-Math.sin(M/3)*a),y=Math.round((u+h)/2)}t.beginPath(),t.moveTo(o,u),t.lineTo(c,y),t.lineTo(m,h),t.closePath(),t.fillStyle=f,t.fill()}function Ot(t,r,n,e,i){t.beginPath(),t.fillStyle=i,t.arc(r,n,e,0,2*Math.PI),t.fill()}function jt(t,r,n,e,i,o){if(r){var u=i/2;Ot(t,n+u,e+u,u,o)}else Jt(t,n,e,i,i,o)}function Et(t,r,n,e,i,o,u,a,s,f,c,y,m,M,h){var d,l,v,g,p,b;s?(d=Math.floor(r+.5*e),l=Math.floor(a?f-c:f),v=Math.floor(y),g=Math.floor(c),p=Math.floor(d-M/2),b=Math.floor(a?l-M/2:l+g+M/2),At(t,d,l,d,l+g,o,v)):(d=Math.floor(a?f:f-c),l=Math.floor(n+.5*i),v=Math.floor(c),g=Math.floor(y),p=Math.floor(a?d+v+M/2:d-M/2),b=Math.floor(l-M/2),At(t,d,l,d+v,l,o,g)),m?Rt(t,r,n,e,i,p,b,M,s,a,o):s?jt(t,h,p,a?b:b-=M,M,u):jt(t,h,a?p-=M:p,b,M,u)}function Rt(t,r,n,e,i,o,u,a,s,f,c){t.save(),Tt(t,r,n,e,i,o,u,a,s?f?0:2:f?1:3,c),t.restore()}function It(t,r,n,e,i,o,u,a,s,f,c,y,m,M){var h,d,l,v=4,g=void 0;t.save(),t.beginPath(),t.rect(r,n,e,i),t.clip(),t.font=s+W,t.fillStyle=T,t.fillStyle="black",f?(t.textBaseline=z,(g=s+(h=m<M?M:m)+o+v+M/2)>0?(t.textAlign=B,c?t.fillText(a,r+e/2+M/2,y-h/2):t.fillText(a,r+e/2+M/2,y+h/2)):(t.textAlign=G,c?t.fillText(a,r+e/2,y-h-M/2-s):t.fillText(a,r+e/2,y+h+M/2+v))):(t.textBaseline=J,(g=(d=t.measureText(a).width)+m+u+v+M/2)>0?d>m+M/2?c?(t.textAlign=L,t.fillText(a,y-v,n+i/2)):(t.textAlign=B,t.fillText(a,y+M/2,n+i/2)):(t.textAlign=G,c?t.fillText(a,y+m/2,n+i/2+s):t.fillText(a,y-m/2,n+i/2+s)):c?(t.textAlign=B,l=y+m+M/2+v,t.fillText(a,l,n+i/2)):(t.textAlign=L,l=y-m-M/2-v,t.fillText(a,l,n+i/2))),t.restore()}function Bt(t){return i.ft.rp(s(t))<127.5?A:T}function Lt(t,r,n,e,i,o,a,s){var f,c,y,m,M=s;return u(s)&&(M=i),a?(f=r+M+o,y=e-2*M,c=t+i,m=n-2*i):(f=t+M,y=n-2*M,c=r+i,m=e-2*i),{left:f,top:c,width:y,height:m}}function Gt(t,r){var n,e,i=0;for(n=0,e=t.length;n<e;n++)i+=r&&!r(t[n])?0:t[n];return i}function zt(t){return t*M/180}function Kt(t,r,n,e){var i,o,u,a,s=[];for(o=0,u=0,a=t.length;o<a;o++)r?(r(t[o])?s[u]=n?n(t[o]):t[o]:s[u]=0,u++):(i=N(t[o]),!H(i)&&isFinite(i)&&(s[u]=i,u++));return e&&e(s),s}function Jt(t,r,n,e,i,o){var u=g(r+e),a=g(n+i);r=g(r),n=g(n),e=g(u-r),i=g(a-n),t.beginPath(),t.fillStyle=o,t.fillRect(r,n,e,i),t.fill()}function Vt(t,r,n){return t=l(t,r),t=v(t,n)}function Wt(t,r,n,e,i){t.save(),t.rect(r,n,e,i),t.clip()}function Ut(t,r){var n,e,i,o;return!(!t||!r)&&(n=v(t.x+t.width,r.x+r.width),e=v(t.y+t.height,r.y+r.height),i=l(t.x,r.x),o=l(t.y,r.y),n-i<=t.width+r.width&&e-o<=t.height+r.height)}function qt(t,r,n,e,i,o){var a,s,f,c,y,m,v=n+i/2,g=e+o/2,p=5,b=l(i,o)/2-p,_=-.5*M,w=v+b*d(_),D=g+b*h(_),N=[],$=[];if(!(b<=0)){for(c=Yt(f=(s=Kt(r.values,(function(t){return!u(t)&&!H(t)&&isFinite(t)}),(function(t){return F(t)}),(function(t){1===t.length&&(t[1]=1-t[0])}))).length,r.colors),y=Gt(s),t.save(),m=0;m<f;m++)a=_+s[m]/y*2*M,t.beginPath(),t.moveTo(v,g),t.lineTo(w,D),t.arc(v,g,b,_,a,!1),t.lineTo(v,g),t.fillStyle=c[m],t.fill(),N.push(w),$.push(D),w=v+b*d(_=a),D=g+b*h(_);for(m=0;m<f;m++)kt(t,v,g,N[m],$[m],A);t.restore()}}function Yt(t,r){var n,e,o,u,a,f,c=[],y=r.length;if(t<=y)c=r.slice(0,t);else{for(0===y?(c.push("darkgray"),y=1):c=r.slice(0),n=[],e=void 0,o=t-y+1,u=void 0,u=0;u<y;u++)n[u]=s(c[u]);for(u=y;u<t;u++){for(a in e=n[u%y])e.hasOwnProperty(a)&&(f=e[a],e[a]=m(f-f/o*(u/y)));e.a=255,c[u]=i.ft.j(e)}}return c}function Xt(t,r,n){return{x:t,y:r,value:n}}function Zt(t){return isNaN(t)||t===1/0?0:t}function Qt(t,r,n,e,i,o){var a,s,f,y,m,M,h,d,p,b,F,_,D,N,$,k,S,P,C,A,T,j,E,R,I,B,L,G,z,K,J,V;if(t.save(),a=r.points,s=r.mini,f=r.maxi,y=r.line1,m=r.line2,M=r.colorPositive,h=r.colorNegative,d=5,a=Kt(a,(function(t){return!u(t)&&!H(t)&&isFinite(t)})),M=u(M)?"#787878":M,h=u(h)?x:h,C=$t(a,!1),f=u(f)?C:f,b=v(f,C),A=$t(a,!0),s=u(s)?A:s,p=l(s,A),F=(F=(F=0)>(b=b<0?0:b)?b:F)<(p=p>0?0:p)?p-1:F,_=a.length,T=Lt(n,e,i,o,d),D=T.left,N=T.top,$=T.width,k=T.height,S=Zt($/(_-1)),j=[],P=Zt((b-p)/k))for(I=void 0,B=void 0,L=N+Zt((b-F)/P),G=void 0,z=void 0,K=0;K<_;K++)I=a[K],G=D+S*K,z=N+Zt((b-I)/P),0===K&&j.push(new dt(Xt(G,L,F))),K>0&&I*a[K-1]<0&&(R=j[j.length-1])&&(B=tr(R.x,R.y,G,z,L),j.push(new dt(Xt(B,L,F)))),j.push(new dt(Xt(G,z,I))),K===_-1&&j.push(new dt(Xt(G,L,F)));for(t.beginPath(),J=0,V=j.length;J<V;J++)(E=j[J])&&(0===J?t.moveTo(E.x,E.y):t.lineTo(E.x,E.y),R=j[J-1],E.value===F&&R&&(t.fillStyle=R.value>F?M:h,t.fill(),J!==V-1&&(t.beginPath(),t.moveTo(E.x,E.y))));function W(r){var n,e,i;r===c&&typeof r!==w||(n=Vt(r,b,p),i=g(N+(e=0!==P?(b-n)/P:k/2))-.5,kt(t,D,i,D+$,i,O))}W(y),W(m),t.restore()}function tr(t,r,n,e,i){return((r-i)*n+(i-e)*t)/(r-e)}function rr(t,r,n,e,i,o){var a,s,f,c,y,m,h,d,p,b,F,_,w,D,H,N,k,P,A,T,O,j,E,R,I,B,L=r.points1,G=r.points2,z=r.minX,K=r.maxX,J=r.minY,V=r.maxY,W=r.hLine,U=r.vLine,q=r.xMinZone,Y=r.xMaxZone,X=r.yMinZone,Z=r.yMaxZone,Q=r.tags,tt=r.drawSymbol,rt=r.drawLines,nt=r.color1,et=r.color2,it=r.dash,ot=4,ut=Lt(n,e,i,o,5),at=ut.left,st=ut.top,ft=ut.width,ct=ut.height;if(L&&!(L.length<=0)&&!((a=or(L)).length<=0||G&&G.length>0&&(s=or(G)).length<=0)){for(Wt(t,n,e,i,o),t.beginPath(),tt=!!u(tt)||tt,nt=u(nt)?S:nt,et=u(et)?x:et,mt(a,J,V,z,K),!u(q)&&!u(Y)&&!u(X)&&!u(Z)&&y<=q&&q<=m&&y<=Y&&Y<=m&&f<=X&&X<=c&&f<=Z&&Z<=c&&((E=v(y,q))>=(R=l(m,Y))&&(R=E+1),(I=v(f,X))>=(B=l(c,Z))&&(B=I+1),Jt(t,at+(E-y)*ft/(m-y),st+(c-B)*ct/(c-f),(R-E)*ft/(m-y),(B-I)*ct/(c-f),C)),P=-$,A=-$,T=$,O=$,p=a.length,h=0;h<p-1;h++)yt(a,h,nt,ht),Q&&(0===h&&(H>A&&(P=D,A=H),H<O&&(T=D,O=H)),k>A&&(P=N,A=k),k<O&&(T=N,O=k));if(s&&s.length>0)for(mt(s,f,c,y,m),p=s.length,h=0;h<p-1;h++)yt(s,h,et,dt);Q&&(Mt(P,A,x),Mt(T,O,"#0000FF")),!u(W)&&f<=W&&W<=c&&(j=g(st+(c-W)*ct/(c-f))-.5,ir(t,at,j,at+ft,j,x)),!u(U)&&y<=U&&U<=m&&(j=g(at+(U-y)*ft/(m-y))-.5,ir(t,j,st,j,st+ct,x)),t.restore()}function yt(r,n,e,i){d=r[n],b=d.x,F=d.y,d=r[n+1],_=d.x,w=d.y,D=at+(b-y)*ft/(m-y),N=at+(_-y)*ft/(m-y),H=st+(c-F)*ct/(c-f),k=st+(c-w)*ct/(c-f),rt&&ir(t,D,H,N,k,e,it),tt&&(0===n&&i(D,H),i(N,k))}function mt(t,r,n,e,i){var o=nr(t,!0),a=nr(t,!1);f=u(J)?o.y:r,c=u(V)?a.y:n,y=u(z)?o.x:e,m=u(K)?a.x:i,m=y>=m?y+1:m,c=f>=c?f+1:c}function Mt(r,n,e){t.beginPath(),t.arc(r-ot/2,n-ot/2,ot/2,0,2*M,!1),t.fillStyle=e,t.fill()}function ht(r,n){t.beginPath(),t.strokeStyle=nt,t.arc(r-ot/2,n-ot/2,ot/2,0,2*M,!1),t.stroke()}function dt(r,n){t.beginPath(),t.strokeStyle=et,t.strokeRect(r-ot/2,n-ot/2,ot,ot)}}function nr(t,r){var n,e,i=r?1:-1,o=r?l:v,u=new Mt(Ht(i*$,i*$)),a=t.length;for(e=0;e<a;e++)n=t[e],u.x=o(u.x,n.x),u.y=o(u.y,n.y);return u}function er(t,r,n,e){return n/e*(r-t)+t}function ir(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,F,_,w,D,H;if(u){for(a=b(p(e-r,2)+p(i-n,2)),s=0,f=6,c=2,y=4,M=void 0,h=void 0,d=void 0,l=void 0,r<=e?(M=r,h=e,d=r,l=n):(M=e,h=r,d=e,l=i),g=n-(v=(i-n)/(e-r))*r,(m=[]).push(new Mt(Ht(d,l))),F=[f,y,c,y];s<a;)for(_=0,w=F.length;_<w;_++)(s+=F[_])<=a&&(l=v*(d=er(M,h,s,a))+g,m.push(new Mt(Ht(d,l))));for(D=0,H=m.length;D<H-1;D+=2)kt(t,m[D].x,m[D].y,m[D+1].x,m[D+1].y,o)}else kt(t,r,n,e,i,o)}function or(t){var r,n,e,i=[],o=t.length;if(o>0)if(o<(r=t[0].length)){if(o>=2)for(n=0;n<r;n++)i.push(new Mt(Ht(t[0][n],t[1][n])))}else if(r>=2)for(e=0;e<o;e++)i.push(new Mt(Ht(t[e][0],t[e][1])));return i}function ur(t,r,n,e,i,o){var s,f,c,y,M,h,d,l,p,b,F,_,w,D,N,$,k,S=r.measure,C=r.target,A=r.maxi,T=r.good,O=r.bad,j=r.forecast,E=r.tickUnit,R=r.colorScheme,I=r.vertical,B=5,L=r.measureColor,G=r.targetColor,z=r.maxiColor,K=r.goodColor,J=r.badColor,V=r.forecastColor,W=r.allowMeasureOverMaxi,U=r.barSize;if(!(u(A)||A<0)&&(u(U)||!(H(U)||U<=0))){if(U>1&&(U=1),S=u(S)||S<0?0:S,T=u(T)||T<0?0:T,O=u(O)||O<0?0:O,C=u(C)?0:C,j=u(j)?0:j,E=u(E)?0:E,R=u(R)?"#A0A0A0":R,s=u(L)?"#252525":L,S>A&&!W&&(S=A,s=x),T>A&&(T=A,s=x),O>A&&(O=A,s=x),C>A&&(C=0,s=x),j>A&&(j=A,s=x),f=Lt(n,e,i,o,B,o-2*B,I),c=f.left,y=f.width,t.save(),M=u(U)?.2:(1-U)/2,h=u(U)?.6:U,d=W?v(A,S):A,q(u(z)?a(R,1.66):z,A,d,M,h),q(u(K)?a(R,1.33):K,T,d,M,h),q(u(J)?R:J,O,d,M,h),l=.25*U/.6,q(s,S,d,p=u(U)?.375:(1-l)/2,b=u(U)?.25:l),j>0&&(F=c,(_=y*(j/d))>y&&(_=y),w=u(U)?3:3*U/.6,Pt(t,I,n+.5*i,F,n+.5*i,F-_,F,e+.5*o,F+_,e+.5*o,u(V)?"#3690BF":V,w)),C>0&&(D=g(c-(I?1:-1)*y*(C/d))-.5,Pt(t,I,n+i*M,D,n+i*(1-M),D,D,e+o*M,D,e+o*(1-M),u(G)?x:G,1)),E>0)for(N=m(d/E),$=void 0,k=0;k<=N;k++)$=g(c-y/d*E*(I?1:-1)*k)-.5,Pt(t,I,n,$,n+.05*i,$,$,e+o,$,e+.95*o,P,1);t.restore()}function q(r,u,a,s,f){var m,M,h;t.fillStyle=r,m=c,(M=y*(u/a))>y&&!W&&(M=y),h=new ht(I?Nt(n+i*s,m-M,i*f,M):Nt(m,e+o*s,M,o*f)),t.fillRect(h.x,h.y,h.width,h.height)}}function ar(t,r,n,e,i,o){var a,s,f,c,y,m,M,h,d,p,b,F,_,w,D,H,N,$,k,S,C,A,T=r.spreadData,O=r.showAverage,j=r.scaleStart,E=r.scaleEnd,R=r.style,I=r.colorScheme,B=r.vertical,L=5,G=T.length;if(!(G<=0)){for(a=T[0].key,s=T[G-1].key,j=u(j)?a:j,E=u(E)?s:E,R=u(R)?4:R,I=u(I)?P:I,c=(f=Lt(n,e,i,o,L,o-2*L,B)).left,y=f.width,m=f.top,M=f.height,Wt(t,n,e,i,o),t.beginPath(),t.strokeStyle=I,t.fillStyle=I,t.lineWidth=2,p=$t(T,!1),F=0,_=T.length;F<_;F++)if(D=(w=T[F]).key,H=w.value,h=c+(B?-1:1)*y*(D-j)/(E-j),B?(h=l(h,c),h=v(h,c-y)):(h=v(h,c),h=l(h,c+y)),h=g(h),1===R)Pt(t,B,N=m+M/2-(b=(b=H/2*M/p)<.5?.5:b),h,$=m+M/2+b,h,h,N,h,$);else if(4===R)Pt(t,B,m,h,m+(b=(b=H*M/p)<1?1:b),h,h,m+M,h,m+M-b);else if(6===R)Pt(t,B,m,h,m+M,h,h,m,h,m+M);else for(k=2,S=1;S<=H;S++){switch(R){case 2:d=m+M/2-L-(H/2-S)*M/p;break;case 3:d=m+M-L-(C=sr(H,M,k+1,w.randomNumbers))[S-1];break;default:d=m+M-S*M/p}d=g(d),t.beginPath(),t.fillRect(B?d:h,B?h:d,k,k)}O&&Pt(t,B,m-L,h=c-(B?1:-1)*y*((A=fr(T))-j)/(E-j),m+M+L,h,h,m-L,h,m+M+L,x),t.restore()}}function sr(t,r,n,e){for(var i,o=[],u=v(100,10*t),a=0,s=[],f=0;o.length<t;)i=m(e[f]*r),f++,(a>u||cr(i,s))&&(o.push(i),s.push([i-n,i+n])),a++;return o}function fr(t){var r,n,e,i=0,o=0;for(r=0,n=t.length;r<n;r++)o+=(e=t[r]).value,i+=e.key*e.value;return 0===o?0:i/o}function cr(t,r){var n,e,i;for(n=0,e=r.length;n<e;n++)if((i=r[n])[0]<=t&&t<=i[1])return!1;return!0}function yr(t,r,n,e,i,o,s){var f,m,M,h,d,l,v,p,b,F,_,w,D,N,$,k,S,C,A=r.points,T=A&&A.length,E=r.colorRange,I=r.labelRange,B=r.maximum,L=r.targetRed,z=r.targetGreen,K=r.targetBlue,V=r.targetYellow,U=r.color,q=r.highlightPosition,Y=r.vertical,X=r.textOrientation,Z=r.textSize,Q=5;if(!(u(A)||T<=0)){if(U=u(U)?P:U,u(E)||E.length!==T||mr(E))for(E=[],f=0;f<T;f++)E.push(a(U,1+f/T));for(m=Gt(A,(function(t){return t>0})),B=u(B)||B<m?m:B,X=u(X)?0:X,Z=u(Z)||Z<=0?10:Z,Z=H(Z)?Z:Z*s.zoomFactor,M=Lt(n,e,i,o,Q,o-2*Q,Y),h=M.left,d=M.width,l=M.top,v=M.height,t.save(),p=h,$=0,k=T;$<k;$++)(N=A[$])<=0||(b=N/B*d,Y?(F=n+.15*i,w=.7*i,_=p-b,D=b):(F=p,w=b,_=e+.15*o,D=.7*o),S=$+1===q?x:E[$],t.save(),t.fillStyle=S,t.fillRect(F,_,w,D),(C=I&&I[$])&&(t.save(),t.fillStyle=Bt(S),t.textBaseline=J,t.textAlign=G,t.font=Z+W,t.rect(F,_,w,D),t.clip(),1===X?(t.translate(F+w/2,_),t.rotate(Math.PI/2),t.fillText(C,D/2,0)):t.fillText(C,F+w/2,_+D/2),t.restore()),p+=(Y?-1:1)*b,t.restore());tt(R,L,(function(t){return t>0})),tt(j,z),tt(O,K),tt("yellow",V),t.restore()}function tt(r,n,e){var i,o;n!==c&&n!==y&&(n=n>B?B:n,e&&!e(n)||(o=(n=n<0?0:n)/B*d,Y?(i=g(h-o)-.5,kt(t,l,i,l+v,i,r)):(i=g(h+o)-.5,kt(t,i,l,i,l+v,r))))}}function mr(t){for(var r=0,n=t.length;r<n;r++)if(u(t[r]))return!0;return!1}function Mr(t,r,n,e,i,o){kt(t,lr(r),lr(n),lr(e),lr(i),u(o)?T:o,1)}function hr(t,r,n,e,i){var o,u,a,s,f,c=.4*e;switch(r=lr(r),n=lr(n),t.beginPath(),t.moveTo(r,n),o=c/2,u=b(3)*c/2,a=c/b(3),i){case 0:s=[-o,0,o],f=[u,a,u];break;case 2:s=[-o,0,o],f=[-u,-a,-u];break;case 3:s=[u,a,u],f=[-o,0,o];break;case 1:s=[-u,-a,-u],f=[-o,0,o];break;default:s=[],f=[]}s.forEach((function(e,i){t.lineTo(lr(r+e),lr(n+f[i]))})),t.lineTo(r,n),t.closePath(),t.fillStyle=A,t.fill()}function dr(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,b,_,w=n.value,D=n.colorScheme,$=n.axisVisible,k=n.barHeight,S=n.barWidth,x=5,P=5,C=!1,A=N(w);if(!H(A)){if(u(h=0===t?k:S))d=.7;else{if(H(h)||h<=0)return;d=Math.min(1,h)}A>1?(A=1,C=!0):A<-1&&(A=-1,C=!0),D=u(D)?"grey":D,$=!!u($)||$,r.save(),0===t?(l=o-2*x,v=a*d,A>=0?(C&&(s=new Mt(Ht(e+x+l-P,i+a/2))),f=new ht(Nt(e+x,i+a*(1-d)/2,l*A,v)),c=new Mt(Ht(e+x,i+1)),y=new Mt(Ht(e+x,i+a)),m=1):(g=F(l*A),C&&(s=new Mt(Ht(e+x+P,i+a/2))),f=new ht(Nt(e+o-x-g,i+a*(1-d)/2,g,v)),c=new Mt(Ht(e+o-x,i+1)),y=new Mt(Ht(e+o-x,i+a)),m=3),M=u(h)?a:a*d):1===t&&(p=a-2*x,b=o*d,A>=0?(f=new ht(Nt(e+(1-d)/2*o,i+a-x-(_=p*A),b,_)),C&&(s=new Mt(Ht(e+o/2,i+a-x-_+P)),m=0),c=new Mt(Ht(e+1,i+a-x)),y=new Mt(Ht(e+o,i+a-x))):(A=F(A),f=new ht(Nt(e+(1-d)/2*o,i+x,b,p*A)),C&&(s=new Mt(Ht(e+o/2,i+x+p-P)),m=2),c=new Mt(Ht(e+1,i+x)),y=new Mt(Ht(e+o,i+x))),M=u(h)?o:o*d),r.beginPath(),f&&(Jt(r,f.x,f.y,f.width,f.height,D),Wt(r,f.x,f.y,f.width,f.height)),s&&hr(r,s.x,s.y,M,m),r.restore(),$&&c&&Mr(r,c.x,c.y,y.x,y.y),r.restore()}}function lr(t){return g(t)-.5}function vr(t,r,n,e,i,o){dr(0,t,r,n,e,i,o)}function gr(t,r,n,e,i,o){dr(1,t,r,n,e,i,o)}function pr(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,_,w,D,$,k,P,C,A,O,E=r.variance,I=r.reference,V=r.mini,U=r.maxi,q=r.mark,Y=r.tickUnit,X=r.legend,Z=r.colorPositive,Q=r.colorNegative,tt=r.vertical,rt=.5,nt=.5-rt/2,et=5,it=x,ot=S,ut=13*a.zoomFactor,at=N(E);if(!(H(at)||(Q=u(Q)?R:Q,Z=u(Z)?j:Z,Y=u(Y)?0:Y,U=u(U)?1:U,V=u(V)?-1:V,(h=!u(I))||(I=0),tt?(s=e+o-et,f=o-2*et,c=i-4*et,y=-1):(s=n+et,f=i-2*et,c=o-4*et,y=1),X&&(l=N(r.variance),H(l)||(g=(v=l.toString()).substr(v.indexOf(".")+1).length,m=g>=2?(100*l).toFixed(g-2)+"%":(100*l).toFixed(0)+"%")),at>U&&(at=U,d=!0),at<V&&(at=V,d=!0),I=Vt(I,U,V),d&&(M=Vt(c,60,15)),_=f/(p=F(U-V)),w=s+y*F(V-I)*_,(D=F(at-I)*_)>F(p)*_&&(D=F(p+V)*_),$=s+y*f,tt&&w<$||!tt&&w>$))){if(Wt(t,n,e,i,o),at>I?st(Z,0,et-f,f-et,0,1,e-w,K,z,w-n-i,B,L,-1,F(U-at)*_):(D>F(p)*_&&(D=F(p+V)*_,w=s),st(Q,1,-et,et,2,3,w-e-o,z,K,n-w,L,B,1,F(V-at)*_)),h&&(k=s+y*(Math.abs(V-I)*_),ct(n,k,n+i,k,k,e,k,e+o)),Y>0)for(t.beginPath(),P=p/Y,C=0;C<=P;C++)ct(n,A=s+f/P*C*y,n+.1*i,A,A,e+.9*o,A,e+o,ot,ot);!u(q)&&V<=q&&q<=U&&(t.beginPath(),O=s-(tt?1:-1)*F(V-q)*_,ct(n,O,n+.33*i,O,O,e+.66*o,O,e+o,it,it),t.fill()),t.restore()}function st(r,u,a,f,c,y,h,l,v,g,p,F,_,H){var N,$,k,S,x,P;tt?Jt(t,N=n+nt*i,$=0===u?w-D:w,k=i*rt,S=D,r):Jt(t,N=0===u?w:w-D,$=e+nt*o,k=D,S=o*rt,r),d&&(Wt(t,N,$,k,S),tt?hr(t,n+i/2,s+a,M,c):hr(t,s+f,e+o/2,M,y),t.restore()),X&&(x=void 0,P=0,d&&(P=.4*M*b(3)/2+et+2),t.save(),t.beginPath(),t.font=ut+W,t.fillStyle=T,tt?(t.textAlign=G,ft(x=ut+D+h,H,r,l,v,N,$,k,S,tt),t.fillText(m,n+i/2,w+_*(D-P))):(t.textBaseline=J,ft(x=t.measureText(m).width+D+g,H,r,p,F,N,$,k,S,tt),t.fillText(m,w+_*(P-D),e+o/2)),t.restore())}function ft(r,n,e,i,o,u,a,s,f,c){c?t.textBaseline=i:t.textAlign=i,r>0&&n<D&&(t.rect(u,a,s,f),t.clip(),c?t.textBaseline=o:t.textAlign=o,t.fillStyle=Bt(e))}function ct(r,n,e,i,o,u,a,s,f,c){tt?Mr(t,r,n,e,i,f):Mr(t,o,u,a,s,c)}}function br(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,b,_,w,D,$,k,S,x,P,A,O,E,I,B=r.plannedValue,L=r.actualValue,G=r.index,z=r.absolute,K=r.reference,J=r.mini,V=r.maxi,W=r.tickUnit,U=r.legend,q=r.colorPositive,Y=r.colorNegative,X=r.lollipopHeaderColor,Z=r.vertical,Q=[],tt="",rt=.9,nt=10,et=13*a.zoomFactor,it=C,ot=!1;if(!(0===B.length||0===L.length||G<0||G>=B.length||G>=L.length||J>=V||H(L[G])||H(B[G]))){if(Y=u(Y)?R:Y,q=u(q)?j:q,W=u(W)?0:W,z=!u(z)&&z,m=!u(K),X=u(X)?T:X,z){for(v=0;v<B.length&&v<L.length;v++)Q.push(L[v]-B[v]);V=$t(Q,!1),J=$t(Q,!0),V>0&&J>0?J=0:V<0&&J<0&&(V=0),M=Q[G],K=0,m=!0}else V=u(V)?1:V,J=u(J)?-1:J,M=(L[G]-B[G])/Math.abs(B[G]),((K=Vt(K,V,J))===V&&M>K||K===J&&M<K)&&(ot=!0),u(B[G])&&(ot=!0);if(m||(K=0),Z?(s=e+o-nt,f=o-2*nt,c=-1):(s=n+nt,f=i-2*nt,c=1),!z&&U?((p=N((g=M-K).toString()))>0&&(tt="+"),!H(p)&&isFinite(p)?y=tt+(y=(_=(b=p.toString()).substr(b.indexOf(".")+1).length)>=2?(100*p).toFixed(2)+"%":100*p+"%"):isFinite(p)||(y=tt+p)):(M>0&&(tt="+"),y=tt+(y=(_=(b=(p=N(M)).toString()).substr(b.indexOf(".")+1).length)>=2?p.toFixed(2):p)),z?l=!1:(M>V&&(M=V,l=!0),M<J&&(M=J,l=!0)),D=f/(w=F(V-J)),$=s+c*F(J-K)*D,(k=F(M-K)*D*rt)>F(w)*D&&(k=F(w+J)*D),S=s+c*f,!(Z&&$<S||!Z&&$>S))if(z||0!==B[G]&&!ot){if(Wt(t,n,e,i,o),x=F(Math.ceil((V-K)/W)),P=F(Math.floor((K-J)/W)),z){if(W>5/D)if(Z){for(O=1;O<=x;O++)At(t,n,E=$+W*D*O*-1*rt,n+i,E,it,1);for(O=1;O<=P;O++)At(t,n,E=$+W*D*O*1*rt,n+i,E,it,1)}else{for(O=1;O<=x;O++)At(t,I=$+W*D*O*1*rt,e,I,e+o,it,1);for(O=1;O<=P;O++)At(t,I=$+W*D*O*-1*rt,e,I,e+o,it,1)}}else if(W>0&&W<=V&&W>5/D)if(t.beginPath(),Z){for(A=.1*i>10?10:.1*i,O=1;O<=x;O++)At(t,n,E=$+W*D*O*-1*rt,n+A,E,it,1);for(O=1;O<=P;O++)At(t,n,E=$+W*D*O*1*rt,n+A,E,it,1)}else{for(A=.1*o>10?10:.1*o,O=1;O<=x;O++)At(t,I=$+W*D*O*1*rt,e+o-A,I,e+o,it,1);for(O=1;O<=P;O++)At(t,I=$+W*D*O*-1*rt,e+o-A,I,e+o,it,1)}h=Math.floor(12*a.zoomFactor),(d=Math.floor(4*a.zoomFactor))%2!=0&&(d+=1),h%2!=0&&(h+=1),M>K?Et(t,n,e,i,o,q,X,!0,Z,$,k,d,l,h,z):(k>F(w)*D&&(k=F(w+J)*D,$=s),Et(t,n,e,i,o,Y,X,!1,Z,$,k,d,l,h,z)),U&&(M>K?It(t,n,e,i,o,e-$,$-n-i,y,et,Z,!0,$,k,h):It(t,n,e,i,o,$-e-o,n-$,y,et,Z,!1,$,k,h)),m&&(Z?At(t,n,$,n+i,$,T,2):At(t,$,e,$,e+o,T,2)),t.restore()}else Z?At(t,n,$,n+i,$,T,2):At(t,$,e,$,e+o,T,2)}}function Fr(t,r,n,e,i,o){var a,s,f,y,m,M,h,d,g,p,b,_,w,$,k,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht,dt,Ft,_t,wt=r.points,Dt=r.boxPlotClass,Ht=r.showAverage,Nt=r.scaleStart,kt=r.scaleEnd,St=r.acceptableStart,xt=r.acceptableEnd,Ct=r.style,At=r.colorScheme,Tt=r.vertical,Ot=5,jt=$t(wt,!1),Et=$t(wt,!0);if(!(u(wt)||(wt=Kt(wt)).length<=0)){for((Dt=Dt===c||typeof Dt!==D?vt:Dt.toLocaleLowerCase())!==vt&&Dt!==lt&&Dt!==gt&&Dt!==pt&&Dt!==bt&&(Dt=vt),a=N(Nt),a=H(a)?Et:a,s=N(kt),s=H(s)?jt:s,f=N(St),y=N(xt),At!==c&&typeof At===D||(At="#D2D2D2"),(Ct===c||0!==Ct&&1!==Ct)&&(Ct=0),m=x,a>Et&&(At=m,a=Et),s<jt&&(At=m,s=jt),Wt(t,n,e,i,o),t.lineWidth=2,h=(M=Lt(n,e,i,o,Ot,o-2*Ot,Tt)).left,d=M.width,g=M.top,p=M.height,b=Tt?-1:1,_=r.perc02,w=r.perc09,$=r.perc10,k=r.perc90,C=r.perc91,A=r.perc98,T=r.q1,E=Et,R=jt,I=1.5*(j=(O=r.q3)-T),B=1.5*j,L=r.stDev,G=Gt(wt)/v(1,wt.length),z=0,K=0,J=g+.1*p,V=.7*p,W=F(s-a),U=0,q=wt.length;U<q;U++)(Y=wt[U])<T&&Y>=T-1.5*j&&Y-(T-1.5*j)<I&&(I=Y-(T-1.5*j),E=Y),Y>O&&Y<=O+1.5*j&&O+1.5*j-Y<B&&(B=O+1.5*j-Y,R=Y),X=!1,z=h+b*(d*((Y-a)/W)),Dt===gt&&(Y<=T-1.5*j||Y>=O+1.5*j)&&(X=!0,K=Y<=T-3*j||Y>=O+3*j?0:1),Dt===lt&&(Y<=_||Y>=A)&&(X=!0,K=1),Dt===bt&&(Y<=G-2*L||Y>=G+2*L)&&(X=!0,K=Y<=G-3*L||Y>=G+3*L?0:1),Z=S,X&&(1===Ct?1===K?It(.2,.8,z,Z):It(.3,.7,z,Z):((Q=.1*p)<2&&(Q=2),t.beginPath(),t.strokeStyle=Z,tt=g+.45*p,rt=z,t.arc(Tt?tt:rt,Tt?rt:tt,Q/2,0,2*Math.PI),t.stroke()));switch((a>f||s<y)&&(At="#C0FF00"),(f=v(a,f))>(y=l(s,y))?At=m:f<y&&Pt(t,Tt,it=g+.9*p,nt=h+b*(d*((f-a)/W)),it,et=h+b*(d*((y-a)/W)),nt,it,et,it,P),ut=F(h+b*(d*((O-a)/W))-(ot=h+b*(d*((T-a)/W)))),st=h+b*(d*(((at=r.median)-a)/W)),Dt){case lt:yt=_,mt=A;break;case gt:yt=E,mt=R;break;case bt:ut=F(h+b*(d*((G+L-a)/W))-(ot=h+b*(d*((G-L-a)/W)))),st=h+b*(d*((G-a)/W)),yt=(Mt=G-2*L)>a?Mt:Et,mt=(Mt=G+2*L)<s?Mt:jt,Ht=!1;break;default:yt=Et,mt=jt}ft=h+b*(d*((yt-a)/W)),ct=h+b*(d*((mt-a)/W)),ht=S,1===Ct?Rt("#F2F2F2",J,ct,V,ft-ct,ft,J,ct-ft,V):Pt(t,Tt,dt=g+.45*p,ft,dt,ct,ft,dt,ct,dt,ht),Rt(At,J,ot-ut,V,ut,ot,J,ut,V),Pt(t,Tt,J,st,J+V,st,st,J,st,J+V,ht),0===Ct&&(Pt(t,Tt,J+.3*V,ct,J+.7*V,ct,ct,J+.3*V,ct,J+.7*V,ht),Pt(t,Tt,J+.3*V,ft,J+.7*V,ft,ft,J+.3*V,ft,J+.7*V,ht)),Dt!==lt&&Dt!==pt||(Ft=void 0,_t=void 0,Dt===lt?(yt=w,mt=C):(yt=$,mt=k),Ft=h+b*(d*((yt-a)/W)),It(.3,.7,_t=h+b*(d*((mt-a)/W)),ht),It(.3,.7,Ft,ht)),Ht&&It(.2,.8,z=h+b*(d*((G-a)/W)),m),t.restore()}function Rt(r,n,e,i,o,u,a,s,f){Tt?Jt(t,n,e,i,o,r):Jt(t,u,a,s,f,r)}function It(r,n,e,i){Pt(t,Tt,J+V*r,e,J+V*n,e,e,J+V*r,e,J+V*n,i)}}function _r(t,r,n,e,i){r=g(r),n=g(n),r===(e=g(e))&&(r=e-=.5),n===(i=g(i))&&(n=i-=.5),t.moveTo(r,n),t.lineTo(e,i)}function wr(t,r,n,e,i,o,u,a,s,f,c){t.beginPath(),t.strokeStyle=n,r?_r(t,e,i,o,u):_r(t,a,s,f,c),t.stroke()}function Dr(t,r,n,e,i){t.rect(r,n,e,i),t.clip()}function Hr(t,r,n,e,i,o){var a,s,f,c,y,m,M,h=o.labelText,d=o.fontSize,l=o.startBox,v=o.endBox,g=o.boxColor,p=o.isInRightOrTopOfBox,b=o.fillStyle;t.save(),t.beginPath(),t.font=d+W,c=1,b=u(b)?T:b,o.vertical?(y=G,p?(a=d+v-(l-n))>0&&l-v-n<v?(m=z,b=Bt(g),f=l-v+c,Dr(t,r,l-v,e,v)):(m=K,f=l-v-c):(a=d-(n+i-l))>0&&n+i-l<v?(Dr(t,r,l-v,e,v),m=K,b=Bt(g),f=l-c):(m=z,f=l+c),t.textAlign=y,t.textBaseline=m,t.fillStyle=b,t.fillText(h,r+e/2,f)):(m=J,M=t.measureText(h),p?(a=M.width+v-(r+e-l))>0&&r+e-(l+v)<v?(Dr(t,l,n,v,i),y=L,b=Bt(g),s=l+v-c):(y=B,s=l+v+c):(a=M.width-(l-r))>0&&l-r<v?(Dr(t,l,n,v,i),s=l+c,y=B,b=Bt(g)):(y=L,s=l-c),t.textAlign=y,t.textBaseline=m,t.fillStyle=b,t.fillText(h,s,n+i/2)),t.restore()}function Nr(t,r,n,e,i,o,s){var f,y,m,M,h,d,g,p,b,_,w,$,k,S,x,P,A,O,j,E,R,I,B,L,G,z,K,J,V,W,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht=r.points,dt=r.labels,lt=r.pointIndex,vt=r.minimum,gt=r.maximum,pt=r.colorPositive,bt=r.colorNegative,Ft=r.vertical,_t=r.itemTypeRange,wt=r.colorTotal,Dt=5,Ht=13*s.zoomFactor;if(!u(ht)&&!((f=ht.length)<=0||(y=parseInt(lt,10),H(y)||y<=0||y>f))){for(dt=u(dt)?[]:dt,pt!==c&&typeof pt===D||(pt="#8CBF64"),bt!==c&&typeof bt===D||(bt="#D6604D"),typeof wt!==D&&(wt=c),m=pt,M=a(pt,1.3),h=bt,d=a(bt,1.3),g=1,p=0,b=0,_=0,w=0,$=[],k=0,S=0,P=0,A=f;P<A;P++)S=ht[P],x=_t[P],O=!1,j=1===g,(E=!u(x))&&(x===q?S=F(S):x===U?S=-F(S):x===Y?(O=!0,j?p=S:S=p):E=!1),$[g]=[],R=$[g],H(S)?(R[0]=0,R[1]=p,R[2]=0):(R[0]=F(S),p=O?p:S+p,R[1]=S>0?b:p,R[2]=S),R[3]=g,_=l(b,_),w=v(b,w),((I=g===f)&&!E||O)&&(k=_<0?-_:0,R[1]=S>0?0:S),E&&O&&!j||(b=S+b,I&&E&&(_=l(b,_),w=v(b,w))),g++;B=!1,u(x)||(B=-1===(L=[U,q,Y]).indexOf(x)),(u(x)||B)&&(p-=S),K=N(vt),H(K)||K>0||K>_?(G=_,K=_):(G=K,k=-K),J=N(gt),H(J)||J<0||J<w?z=w:(z=J,k=-K),W=(V=Lt(n,e,i,o,Dt,o-2*Dt,Ft)).left,X=V.width,Z=V.top,Q=V.height,tt=Ft?-1:1,nt=X/(rt=z-G),Wt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,it=(et=$[y])[2],ot=_t[y-1],ut=W+tt*(et[1]+k)*nt,at=et[0]*nt,ft=ot===Y,ct=(u(ot)||B)&&y===f||ft,st=wt&&ct?wt:1===y||ct?it>=0?m:h:it>=0?M:d,Ft?Jt(t,Z,ut-at,Q,at,st):Jt(t,ut,Z,at,Q,st),Ft?(1!==y&&(y!==f?wr(t,it>0,C,n,ut,Z+Q,ut,n,ut-at,Z+Q,ut-at):wr(t,!0,C,n,yt=W-(p+k)*nt,Z+Q,yt)),y!==f&&wr(t,it>0,C,Z,ut-at,n+i,ut-at,Z,ut,n+i,ut)):(1!==y&&(y!==f?wr(t,it>0,C,ut,e,ut,Z+Q,ut+at,e,ut+at,Z+Q):wr(t,!0,C,mt=W+(p+k)*nt,e,mt,Z+Q)),y!==f&&wr(t,it>0,C,ut+at,Z,ut+at,e+o,ut,Z,ut,e+o)),Mt=dt[y-1],dt.length>0&&!u(Mt)&&""!==Mt&&Hr(t,n,e,i,o,{labelText:Mt,vertical:Ft,isInRightOrTopOfBox:it>0,fontSize:Ht,startBox:ut,endBox:at,boxColor:st}),wr(t,Ft,T,n,W-k*nt,n+i,W-k*nt,W+k*nt,e,W+k*nt,e+o),t.restore()}}function $r(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,p,b,F,w,$,k,P,C,A,T,O,j,E,R,I,B,L,G=r.points,z=r.pointIndex,K=r.colorRange,J=r.target,V=r.target2,W=r.highlightPosition,U=r.label,q=r.vertical,Y=13*a.zoomFactor,X=r.targetColor,Z=r.target2Color,Q=r.labelColor,tt=r.barSize;if(!u(G)&&(u(tt)||!(H(tt)||tt<=0))&&(tt>1&&(tt=1),!((s=G.length)<=0||(f=parseInt(z,10),H(f)||f<=0||f>s)))){for(K=u(K)?[]:K,c=parseInt(U,10),c=H(c)?0:c,y=1,m=0,M=[],h=0,d=G.length;h<d;h++)l=G[h],M[y]=[],v=M[y],l<0||H(l)||u(l)?(v[0]=1===y?0:m,v[1]=0):(m+=l,v[0]=1===y?0:m-l,v[1]=l),y++;b=5,p=u(tt)?b:q?i*(1-tt)/2:o*(1-tt)/2,F=Lt(n,e,i,o,p,o-2*b,q,b),w=F.left,$=F.width,k=F.top,P=F.height,C=q?-1:1,A=$/m,Wt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,O=(T=M[f])[1],j=w+C*T[0]*A,E=T[1]*A,R=f===W?x:0===K.length||typeof K[f-1]!==D?S:K[f-1],q?Jt(t,k,j-E,P,E,R):Jt(t,j,k,E,P,R),1===c?I=(T[0]+O)/m*1e3:2===c&&(I=O/m*1e3),B=g(I)/10+"%",1!==c&&2!==c||""===B||Hr(t,n,e,i,o,{labelText:B,vertical:q,isInRightOrTopOfBox:(T[0]+T[1])*A<$/2,fontSize:Y,startBox:j,endBox:E,boxColor:R,fillStyle:Q}),L=[u(X)?"#8CBF64":X,u(Z)?"#EE5D5D":Z],[J,V].forEach((function(r,u){var a=rt(r),s=_(w+C*$*a);wr(t,q,L[u],n,s,n+i,s,s,e,s,e+o)})),t.restore()}function rt(t){var r=N(t);return r=(r=(r=H(r)?0:r)<0?0:r)>1?1:r}}function kr(t,r){switch(r){case 2:var n;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 Sr(t,r,n){var e,i,o,u,a,f;return t<0&&(t=0),t>1&&(t=1),e=s(r),i=s(n),o=e.a*(1-t)+i.a*t,u=e.r*(1-t)+i.r*t+"",a=e.g*(1-t)+i.g*t+"",f=e.b*(1-t)+i.b*t+"","rgba("+parseInt(u,10)+","+parseInt(a,10)+","+parseInt(f,10)+","+N(o/255+"")+")"}function xr(t,r,n){return t===r&&t===n?1:t<=r?0:t>=n?1:(t-r)/(n-r)}function Pr(t,r,n,e,i,o){var u=(o+i)/2;return i<=e&&e<=u?Sr(xr(e,i,u),t,r):Sr(xr(e,u,o),r,n)}function Cr(t){var r=$,n=-$;return t.forEach((function(t){t!==c&&t!==y&&(r>t&&(r=t),n<t&&(n=t))})),{min:r,max:n}}function Ar(t,r,n,e,i,o,u){var a,s,f;e?t.forEach((function(t,i){0!==t&&t!==c&&t!==y&&(r[n+i]=e[i]||r[n+i])})):(a=Cr(t),s=a.min,f=a.max,t.forEach((function(t,e){0!==t&&t!==c&&t!==y&&(r[n+e]=Pr(i,o,u,t,s,f))})))}function Tr(t,r,n,e,i,o){var u,a,s,f,c=r.year,y=r.month,m=r.values,M=r.emptyColor||"lightgray",h=r.startColor,d=r.middleColor,l=r.endColor,v="white",g=6,p=7,b=2,F=(i-(g+1)*b)/g,_=(o-(p+1)*b)/p,w=[],D=new Date(c,y-1,1).getDay();for(u=0;u<g*p;u++)u<D?w[u]=v:u<D+kr(c,y)?w[u]=M:w[u]=v;for(Ar(m,w,D,r.colors,h,d,l),t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),a=0,s=0;s<g;s++)for(f=0;f<p;f++)t.fillStyle=w[a],a++,t.fillRect(n+s*F+(s+1)*b,e+f*_+(f+1)*b,F,_);t.restore()}function Or(t){var r,n=t.getFullYear(),e=t.getMonth(),i=t.getDate();for(r=1;r<e+1;r++)i+=kr(n,r);return i}function jr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P=r.year,C=r.values,A=r.emptyColor||"lightgray",T=r.startColor,O=r.middleColor,j=r.endColor,E="white",R=7,I=parseInt(366/R+"",10)+2,B=[],L=new Date(P,0,1).getDay(),G=Or(new Date(P,11,31));for(a=0;a<I*R;a++)B[a]=a<L?E:a<L+G?A:E;for(Ar(C,B,L,r.colors,T,O,j),t.save(),t.rect(n,e,i,o),t.clip(),c=n+(f=15*(s=u.zoomFactor)),y=e,m=i-f,M=o,t.save(),t.translate(n+f/2,y+M),t.rotate(-Math.PI/2),t.font=13*s+W,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(P+"",M/2,0),t.restore(),d=(m-(I+1)*(h=2))/I,l=(M-(R+1)*h)/R,v=0,F=[],p=0;p<I;p++)for(g=0;g<R;g++)b={x:c+p*d+(p+1)*h,y:y+g*l+(g+1)*h,w:d,h:l},F[v]=b,t.fillStyle=B[v],v++,t.fillRect(b.x,b.y,b.w,b.h);for(_=[],w={},D=0;D<12;D++)w[D]=Or(new Date(P,D,1))-1+L;for(H=w[11]+kr(P,12)-1,v=0,p=0;p<I;p++)for(g=0;g<R;g++)L<=v&&v<L+G&&(k=w[$=(N=new Date(P,0,v-L+1)).getMonth()],b=F[v],k<=v&&v<7+k&&_.push({x1:b.x,y1:b.y-h/2,x2:b.x,y2:b.y+b.h+h/2}),v!==k&&0!==N.getDay()||_.push({x1:b.x-h/2,y1:b.y,x2:b.x+b.w+h/2+(v===k?h:0),y2:b.y}),H-7<v&&v<=H&&_.push({x1:b.x+b.w,y1:b.y-h/2,x2:b.x+b.w,y2:b.y+b.h+h/2}),v!==H&&6!==N.getDay()||_.push({x1:b.x-h/2-(v===H?h:0),y1:b.y+b.h,x2:b.x+b.w+h/2,y2:b.y+b.h})),v++;for(t.strokeStyle="black",t.lineWidth=2,S=0;S<_.length;S++)x=_[S],t.beginPath(),t.moveTo(x.x1,x.y1),t.lineTo(x.x2,x.y2),t.stroke();t.restore()}function Er(t){var r,n,e=zt(t.minAngle-90),i=zt(t.maxAngle-90),o=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=I,f=(i-e)/(u-o),c=[];return a.length>0&&a.forEach((function(t){r=t.start,n=t.end,c.push({start:f*(r-o)+e,end:f*(n-o)+e,color:t.color})})),c.unshift({start:e,end:i,color:s}),{paintRanges:c,fillColor:s,targetValueRadian:f*(t.targetValueOption.value-o)+e,currentValueRadian:f*(t.currentValueOption.value-o)+e,minValueRadian:e,maxValueRadian:i}}function Rr(t,r,n,e,i,o,u){var a,s,f,c,M,h,d,g=o.zoomFactor,p=t.currentValueOption.normalFontHeight*g,b=t.minValueOption.normalFontHeight*g,_=t.maxValueOption.normalFontHeight*g,w=t.minAngle,D=t.maxAngle,H=t.currentValueOption.normalFontWidth*g,N=F(w)>90||F(D)>90,$=F(w)>120||F(D)>120,k=yt*l(e,i);return u?(a=m(e/2*ct),s=m(i*ct),c=l(a,f=N?s/2:s),h=(i-(N?2*c:c))/2,d=.03*c,M={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio,currentValuePoint:y,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:b<h,enoughShowMaxLabel:_<h,moreThanSemiCircle:N},N?$?2*p/3<h-d-v(_,b)&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+c+d+p/2+v(_,b)},M.enoughShowCurrentLabel=!0):2*p/3<i/2-d&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+2*d+p},M.enoughShowCurrentLabel=!0):p<h-d&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+p},M.enoughShowCurrentLabel=!0)):(a=m(e/2*ft),s=m(i*ft),c=l(a,f=N?s/2:s),M={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio}),M}function Ir(t,r,n,e){return{x:t+d(n)*e,y:r+h(n)*e}}function Br(t,r){return F(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:G}:r.x>t.x?{x:r.x+et,y:r.y,textAlign:B}:r.x<t.x?{x:r.x-et,y:r.y,textAlign:L}:{x:r.x,y:r.y,textAlign:B}}function Lr(t,r,n,e,i,o,a){var s,f,c,y,l,g,p,b,_,w,D,H,N,$,k,S,x,P,C,O,j,R,I,z,K,J,W,U,q,Y,tt,et,it,ot,at,st=a.zoomFactor,ft=!!u(r.showLabel)||r.showLabel,ct=Rr(r,n,e,i,o,a,ft);if(!(ct.outerRadius<=0))return s={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=ct.innerRadius,c=ct.outerRadius,y=ct.currentValuePoint,l=ct.moreThanSemiCircle,g={x:ct.x,y:ct.y},b=(p=Er(r)).paintRanges,_=p.fillColor,t.save(),b.forEach((function(r){t.beginPath(),t.strokeStyle=A,t.moveTo(g.x,g.y),t.fillStyle=r.color||_,t.arc(g.x,g.y,c,r.start,r.end,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=A,t.strokeStyle=A,t.moveTo(g.x,g.y),t.arc(g.x,g.y,f,r.start-mt,r.end+mt,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(g.x,g.y),t.fillStyle=T,t.arc(g.x,g.y,c*X,0,2*M,!1),t.fill(),w=Ir(g.x,g.y,p.targetValueRadian,f),D=Ir(g.x,g.y,p.targetValueRadian,c*Q),xt(t,w.x,w.y,D.x,D.y,rt,nt,E),H=Ir(g.x,g.y,p.currentValueRadian,c*Q),kt(t,g.x,g.y,H.x,H.y,T,Z*c),ft&&(t.save(),t.beginPath(),t.textAlign=V,t.fillStyle=E,N=r.minValueOption.normalFontHeight*st,$=r.maxValueOption.normalFontHeight*st,k=r.minValueOption.normalFontWidth*st,S=r.maxValueOption.normalFontWidth*st,x=p.minValueRadian,P=p.maxValueRadian,C=r.currentValueOption.normalFontHeight*st,O=r.currentValueOption.normalFontWidth*st,j=void 0,R=void 0,I=void 0,ct.enoughShowCurrentLabel&&(Ct(t,y.x,y.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,G),s.showCurrentLabel=!0,j={x:y.x-O/2,y:y.y-C,width:O,height:C}),ct.enoughShowMinLabel&&F(d(x)*c)+k<i/2-ut&&(z=Ir(g.x,g.y,p.minValueRadian,c),Ut(R={x:(K=Br(g,z)).x-k,y:K.y,width:k,height:N},j)||(Ct(t,K.x,K.y+m(N),r.minValueOption.label,r.minValueOption.fontAfterZoom,L),s.showMinLabel=!0)),ct.enoughShowMaxLabel&&F(d(P)*c)+S<i/2-ut&&(J=Ir(g.x,g.y,p.maxValueRadian,c),Ut(I={x:(W=Br(g,J)).x,y:W.y,width:S,height:$},j)||(Ct(t,W.x,W.y+m($),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,B),s.showMaxLabel=!0)),ct.enoughShowTargetLabel&&(U=r.targetValueOption.normalFontWidth*st,q=r.targetValueOption.normalFontHeight*st,Y=r.targetValueOption.label,tt=c+3*q/2,D=Ir(g.x,g.y,p.targetValueRadian,tt),et=Br(g,D),it=p.targetValueRadian,ot=l?(o-2*tt)/2+tt:o-(o-c)/2,F(d(it)*tt)+U<i/2-ut&&F(h(it)*tt)+q/2+ut/2<ot&&(at=v(N,$)/2,Ct(t,et.x,et.y-(it>M?at:-at),Y,r.targetValueOption.fontAfterZoom,et.textAlign),s.showTargetLabel=!0)),t.restore()),t.restore(),s}function Gr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,M=t.currentValueOption.normalFontHeight*u,h=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,l=t.targetValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,p=.05*e,b=m(i*at),F=m(e*st),_={x:r+e*(1-st)/2,y:n+i*(at+(1-at)/2),graphWidth:F,graphHeight:b,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&(s<(i-b)/2&&h<(e-F)/2-p&&(_.minValuePoint={x:_.x-h,y:_.y+s/3},_.enoughShowMinLabel=!0),f<(i-b)/2&&d<(e-F)/2-p&&(_.maxValuePoint={x:_.x-d,y:_.y-b+f/3},_.enoughShowMaxLabel=!0),(c<(i-b)/2||c/2<b)&&l<(e-F)/2-p-v(h,d)&&(_.targetValuePoint={x:_.x-l-v(h,d),y:y},_.enoughShowTargetLabel=!0),(M<(i-b)/2||M/2<b)&&g<(e-F)/2-p&&(_.currentValuePoint={x:_.x+F+p,y:y},_.enoughShowCurrentLabel=!0)),_}function zr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphHeight/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.y-s*(n-i),height:s*(e-n),color:t.color})})),f.unshift({start:r.y,height:r.graphHeight,color:a}),{paintRanges:f,fillColor:a,targetValueY:r.y-s*(t.targetValueOption.value-i),currentValueY:r.y-s*(t.currentValueOption.value-i)}}function Kr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p=u.zoomFactor,b=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Gr(r,n,e,i,o,u),N=H.graphWidth,$=H.graphHeight;if(!(N<=0||$<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},h=(M=zr(r,H)).paintRanges,d=w.normalFontHeight*p,l=D.normalFontHeight*p,v=M.targetValueY,g=M.currentValueY,t.save(),h.forEach((function(r){Jt(t,m.x,r.start,N,-r.height,r.color)})),xt(t,m.x-(Q-1)*N,v,m.x+N,v,rt,nt,E),kt(t,m.x,g,m.x+N*Q,g,T,tt*$),b&&(t.save(),t.beginPath(),H.enoughShowMinLabel&&(Ct(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Ct(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-e+l/2>o||v-e-ot<0)&&(Ct(t,f.x,M.targetValueY+D.normalFontHeight*p/3,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-e+d/2>o||g-e-ot<0)&&(Ct(t,s.x,M.currentValueY+w.normalFontHeight*p/3,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Jr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,M=t.currentValueOption.normalFontHeight*u,h=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,p=t.targetValueOption.normalFontWidth*u,b=.1*l(e,i),F=m(i*st),_=m(e*at),w={x:r+e*(1-at)/2,y:n+i*(1-st)/2,graphWidth:_,graphHeight:F,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&((g<3*(e-_)/4||g<_)&&M<(i-F)/2-ut&&(w.currentValuePoint={x:y,y:w.y-M/2},w.enoughShowCurrentLabel=!0),(p<3*(e-_)/4||p<_)&&c<(i-F)/2-v(s,f)&&(w.targetValuePoint={x:y,y:w.y+F+v(s,f)+c/4*3},w.enoughShowTargetLabel=!0),h<3*(e-_)/4&&s<(i-F)/2-b&&(w.minValuePoint={x:w.x-h/2,y:w.y+F+s},w.enoughShowMinLabel=!0),d<3*(e-_)/4&&f<(i-F)/2-b&&(w.maxValuePoint={x:w.x+_-d/2,y:w.y+F+f},w.enoughShowMaxLabel=!0)),w}function Vr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphWidth/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.x+s*(n-i),width:s*(e-n),color:t.color||a})})),f.unshift({start:r.x,width:r.graphWidth,color:a}),{paintRanges:f,fillColor:a,targetValueX:r.x+s*(t.targetValueOption.value-i),currentValueX:r.x+s*(t.currentValueOption.value-i)}}function Wr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p=u.zoomFactor,b=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Jr(r,n,e,i,o,u),N=H.graphWidth,$=H.graphHeight;if(!(N<=0||$<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},h=(M=Vr(r,H)).paintRanges,d=w.normalFontWidth*p,l=D.normalFontWidth*p,v=M.targetValueX,g=M.currentValueX,t.save(),h.forEach((function(r){Jt(t,r.start,m.y,r.width,$,r.color)})),xt(t,v,m.y,v,m.y+$*Q,rt,nt,E),St(t,g,m.y+$-1,g,m.y-$*(Q-1)-1,T,N*tt),b&&(t.save(),H.enoughShowMinLabel&&(Ct(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Ct(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-n+l/2+it>i||v-n-l/2-it<0)&&(Ct(t,v-D.normalFontWidth*p/2,f.y,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-n+d/2+it>i||g-n-d/2-it<0)&&(Ct(t,g-w.normalFontWidth*p/2,s.y,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Ur(t,r,n,e,i,o,u){t.save(),t.rect(n,e,i,o),t.clip(),0===r.gaugeType?Lr(t,r,n,e,i,o,u):1===r.gaugeType?Kr(t,r,n,e,i,o,u):2===r.gaugeType&&Wr(t,r,n,e,i,o,u),t.restore()}function qr(t,r,n,e,i,o,u,a){var s,f,c,y,m,M,h=[],d=t.length,l=0,v=u.fontPixelSize;if(o&&(l=v+3),0===d)return h;for(s=e/d,f=t[0].value,c=1;c<d;c++)f=Math.max(f,t[c].value);for(y=0;y<d;y++)m=n+i-l,(M=t[y].value/f*(i-l))<0&&(M=0),h.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-M,width:s*a,textWidth:s,height:M,axis:t[y].axis});return h}function Yr(t,r,n,e){t.save(),t.fillStyle=n;for(var i=0;i<r.length;i++)t.fillRect(r[i].x,r[i].y,r[i].width,r[i].height);t.restore()}function Xr(t,r,n,e){var i,o,u,a,s;for(t.save(),i=n.fontPixelSize,o=rn(n),t.textAlign="center",t.fillStyle=e,u=0;u<r.length;u++)a=void 0,s=void 0,a=r[u].x+r[u].width/2,s=r[u].y+r[u].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(r[u].textX,r[u].y+r[u].height+1,r[u].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(r[u].axis,a,s),t.restore();t.restore()}function Zr(t,r,n,e){var i,o,u,a,s,f;if("none"!==e){for(t.save(),t.lineWidth=1,t.strokeStyle=e,t.beginPath(),i=0;i<r.length;i++)u=(o=r[i]).x,a=o.y,s=o.width,0!==(f=o.height)&&0!==s&&(kt(t,u,a,u+s,a),kt(t,u,a+f,u+s,a+f),r[i-1]&&r[i-1].height>=f&&1===n||kt(t,u,a,u,a+f),r[i+1]&&r[i+1].height>f&&1===n||kt(t,u+s,a,u+s,a+f));t.stroke(),t.closePath(),t.restore()}}function Qr(t,r,n,e,i){var o,u,a,s,f,c=!1;for(t.save(),t.font=i,u=(n-6)/(o=r.length),a=0,s=r;a<s.length;a++)if(f=s[a],t.measureText(f.axis).width>u){c=!0;break}return t.restore(),c}function tn(t,r,n,e,i,o,a){var s,f,c,y=r.barColor,m=r.values,M=r.paintLabel,h=r.barWidth,d=r.labelFontStyle,l=r.afterZoomFontStyle,v=r.edgeColor,g=r.labelColor;u(d)||(o<3*(s=l.fontPixelSize)||Qr(t,m,i,o,rn(l)))&&(M=!1),M&&u(d)&&(f=Math.floor(o/3>=12?12:Math.floor(o/3)),l.fontPixelSize=f,l.fontSize=f+"px",Qr(t,m,i,o,rn(l))&&(M=!1)),Yr(t,c=qr(m,n+3,e+3,i-6,o-6,M,l,h),y,v),Zr(t,c,h,v),M&&Xr(t,c,l,g)}function rn(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function nn(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d;t.save(),t.rect(n,e,i,o),t.clip(),a=r.clipX,s=r.clipY,f=r.clipWidth,c=r.clipHeight,y=r.paintX,m=r.paintY,M=r.paintWidth,h=r.paintHeight,d=r.img,f>0&&c>0&&M>0&&h>0&&t.drawImage(d,a,s,f,c,y,m,M,h),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=r.SparklineRender=r.Uzt=r.Hzt=r.zzt=r.oCt=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/colorhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=e.lt.ht,a=i.ft.YGt,s=i.ft._,f=o.Uf.hD,r.oCt={},c=null,y=void 0,m=Math.floor,M=Math.PI,h=Math.sin,d=Math.cos,l=Math.min,v=Math.max,g=Math.round,p=Math.pow,b=Math.sqrt,F=Math.abs,_=Math.ceil,w="undefined",D="string",H=isNaN,N=parseFloat,$=Number.MAX_VALUE,k=new Date(""),S="#969696",x="#CB0000",P="#646464",C="#DCDCDC",A="white",T="black",O="blue",j="green",E="grey",R="red",I="lightgrey",B="left",L="right",G="center",z="top",K="bottom",J="middle",V="start",W="px Arial",U="-",q="+",Y="=",X=.05,Z=.03,Q=1.06,tt=.02,rt=4,nt=5,et=5,it=3,ot=10,ut=8,at=.8,st=.25,ft=.9,ct=.7,yt=.1,mt=1/45*M,Mt=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),ht=function(){function t(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}return t}(),dt=function(t){function r(r){var n=t.call(this,Ht(r.x,r.y))||this;return n.value=r.value,n}return wt(r,t),r}(Mt),lt="7ns",vt="5ns",gt="tukey",pt="bowley",bt="sigma3",r.zzt=Lr,r.Hzt=Kr,r.Uzt=Wr,Ft=function(){function t(t,r,n,e){this.X=t,this.Y=r,this.Width=n,this.Height=e,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}return t}(),_t=function(){function t(){this.Bzt=2,this.Lzt=k,this.Fzt=k,this.Pzt=$,this.Gzt=-$}return t.prototype.paint=function(t,r,n,e,i,o){var u,a,s,f=this;f.options=r,f.setting=r.settings,u=r.values,a=r.dateValues,s=r.zoomFactor,t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&f.c6(t,n,e,i,o,u,a,s),f.Vzt(t,n,e,i,o,u,a,s),f.Yzt(t,n,e,i,o,u,a,s),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,n){var e,i,u,a,s,m,M,h,d,v=this.Kzt;if(v)return v;if(v=this.Kzt=[],e=t.length,this.options.displayDateAxis){for(a=n.length,m=[],(s=l(e,a))>0&&(m=n.slice(0,s)),m.sort((function(t,n){return t===n?0:(t===r.oCt&&(t=0),n===r.oCt&&(n=0),t-n)})),M=m.length,h=void 0,d=void 0,i=0;i<M;i++)if(typeof(h=m[i])!==w&&h!==c){for(d=f(n,h);o.Uf.OS(v,d);)d=f(n,h,d+1);isNaN(h)||(u=t[d])!==y&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(d)}}else for(i=0;i<e;i++)typeof(u=t[i])!==w&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(i);return v},t.prototype.Sl=function(t,n){var e=n[t];return typeof e===w||e===c?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===r.oCt&&(e=0),e},t.prototype.c6=function(t,r,n,e,i,o,u,a){var s,f,y,m,M,h,d,l,v,g,p,b,F,_,D,H=this,N=H.Qzt(o,u),$=N.length-1;for($<0&&($=0),m=H.setting.options,M=H.linePos=[],p=m.displayEmptyCellsAs,s=0;s<$;s++)if(typeof(h=H.Sl(N[s],o))!==w&&h!==c){if(l=s+1,typeof(d=H.Sl(N[l],o))===w||d===c)if(1===p)d=0;else if(2===p)for(l=s+2;l<=$;l++)if(typeof(b=o[N[l]])!==w&&b!==c){d=b;break}typeof d!==w&&d!==c?(v=H.Jzt(N[s],{Width:e,Height:i},o,u,a),g=H.Jzt(N[l],{Width:e,Height:i},o,u,a),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:g.X+F,Y:g.Y+F},M[s]={P1:f,P2:y}):s++}if((_=M.length)>0)for(t.strokeStyle=H.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=H.Wzt(a),s=0;s<_;s++)(D=M[s])&&(t.beginPath(),f=D.P1,y=D.P2,t.moveTo(r+f.X,n+f.Y),t.lineTo(r+y.X,n+y.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,n){var e,i,o,u=this,a=u.options,s=u.setting.options,m=c,M=u.Sl(t,r),h=u.Qzt(r,n),d=h.length,l=a.getColor.bind(u);return typeof M!==w&&M!==c&&(u.Pzt!==$&&u.Gzt!==-$||u.qzt(r),M===u.Pzt&&s.showLow&&(m=l(s.lowMarkerColor)),M!==u.Gzt||!s.showHigh||typeof m!==w&&m!==c||(m=l(s.highMarkerColor)),typeof m!==w&&m!==c||(a.displayDateAxis?0===(e=f(h,t))&&s.showFirst&&(m=l(s.firstMarkerColor)):0===t&&s.showFirst&&(m=l(s.firstMarkerColor))),typeof m!==w&&m!==c||(a.displayDateAxis?(i=f(h,t))===d-1&&s.showLast&&(m=l(s.lastMarkerColor)):t===d-1&&s.showLast&&(m=l(s.lastMarkerColor))),M<0&&s.showNegative&&(typeof m===w||m===c)&&(m=l(s.negativeColor)),typeof m!==w&&m!==c||(0===(o=a.sparklineType)?s.showMarkers&&(m=l(s.markersColor)):(1===o||2===o)&&(m=l(s.seriesColor)))),m===y||m===c?"Transparent":m},t.prototype.Vzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,h,d,l,v,g,p,b=this,F={Width:e,Height:i},_=b.Qzt(o,u),w=_.length,D=b.options.sparklineType;for(p=0;p<w;p++)s=_[p],f=b.Xzt(s,o,u),c=b.Jzt(s,F,o,u,a),t.fillStyle!==f&&(t.fillStyle=f),0===D?(t.save(),y=r+c.X+c.Width/2,h=n+c.Y+c.Height/2,t.translate(y,h),t.rotate(45*M/180),t.fillRect(0-c.Width/2,0-c.Height/2,c.Width,c.Height),t.restore()):(d=r+c.X+c.Width/4,d=m(d),l=n+c.Y,v=c.Width/2,g=c.Height,t.fillRect(d,l,v,g))},t.prototype.Yzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,M,h,d,l=this,v=l.setting&&l.setting.options;v&&v.displayXAxis&&l.$zt(o,u)&&(s={Width:e,Height:i},f=l.Zzt(a),c=s.Width-l.Zzt(a),M=y=m(l.tVt(s,o,a))+.5,h=l.options.getColor(v.axisColor),(d=a)<1&&(d=1),t.strokeStyle!==h&&(t.strokeStyle=h),t.lineWidth!==d&&(t.lineWidth=d),t.beginPath(),t.moveTo(r+f,n+y),t.lineTo(r+c,n+M),t.stroke())},t.prototype.nVt=function(t){var r,n=this.eVt(t);return n===-$||(r=this.iVt(t))===$||(n===r||n*r<=0)},t.prototype.$zt=function(t,r){var n,e,i,o,u,a=this.nVt(t);if(2!==this.options.sparklineType)return a;if(e=(n=this.Qzt(t,r)).length,!a&&e>0)for(u=0;u<e;u++)if(typeof(o=t[i=n[u]])!==w&&o!==c)return!0;return a},t.prototype.rVt=function(t,r){var n=this.Lzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var n=this.Fzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){var n,e,i,o,u=this,a=new Date(0,0,0),s=$,f=u.Qzt(t,r),y=f.length;for(o=0;o<y;o++)e=r[n=f[o]],isNaN(e)||(i=u.Sl(n,t))!==c&&typeof i===w||isNaN(i)||typeof e!==w&&e!==c&&(e>a&&(a=e),e<s&&(s=e));u.Fzt=a,u.Lzt=s},t.prototype.uVt=function(t,r,n,e){var i,o,u,a,s,f,c,y,m=this,M=m.rVt(r,n),h=m.aVt(r,n),d=[],l=m.Qzt(r,n),v=l.length;for(i=0;i<v;i++)(o=n[u=l[i]])&&!isNaN(o)&&d.push(o);if(d.sort((function(t,r){return t-r})),(a=d.length)>1&&M!==h){for(s=$,f=0,c=void 0,i=1;i<a;i++)(o=(c=d[i])-d[i-1])<s&&o>0&&(s=o),f+=o;return(y=(t.Width-m.Zzt(e)-m.Zzt(e))*s/f/2)<2&&(y=2),y}return(t.Width-m.Zzt(e)-m.Zzt(e))/2},t.prototype.sVt=function(t,r,n,e){var i,o=this;return o.options.displayDateAxis?o.uVt(t,r,n,e):(i=o.Qzt(r,n).length,(t.Width-o.Zzt(e)-o.Zzt(e))/i)},t.prototype.cVt=function(t,r,n,e,i){var o,u,a,s,c,y,M,h,d=this,l=d.Zzt(i);return d.options.displayDateAxis?(o=d.sVt(t,n,e,i),(u=d.aVt(n,e))===(a=d.rVt(n,e))?l+o/2:(s=e[r])?(c=t.Width-l-d.Zzt(i),c-=o,y=u.valueOf()-a.valueOf(),l+m((s.valueOf()-a.valueOf())/y*c)):0):(o=d.sVt(t,n,e,i),M=f(d.Qzt(n,e),r),m(h=l+o*M))},t.prototype.fVt=function(t,r){var n,e=this,i=t.Width-e.Zzt(r)-e.Zzt(r);return i=v(i,0),n=t.Height-e.Zzt(r)-e.Zzt(r),{Width:i,Height:n=v(n,0)}},t.prototype.qzt=function(t){var r,n,e=this,i=t.length;for(n=0;n<i;n++)typeof(r=t[n])!==w&&r!==c&&("number"!=typeof r&&(r=0),r<e.Pzt&&(e.Pzt=r),r>e.Gzt&&(e.Gzt=r))},t.prototype.eVt=function(t){var r,n,e=this;return e.Gzt!==-$&&e.Gzt||e.qzt(t),0===(n=(r=e.setting.options).maxAxisType)?e.Gzt:1===n?r.groupMaxValue:2===n?r.manualMax:e.Gzt},t.prototype.iVt=function(t){var r,n,e=this;return e.Pzt!==$&&e.Pzt||e.qzt(t),0===(n=(r=e.setting.options).minAxisType)?e.Pzt:1===n?r.groupMinValue:2===n?r.manualMin:void 0},t.prototype.lVt=function(t,r,n,e){var i=this.fVt(t,e),o=this.eVt(n),u=this.iVt(n),a=o-u,s,f;if(o===u){if(0===o)return 0;a=F(o)}return(s=n[r])||(s=0),s*(f=i.Height/a)},t.prototype.hVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;if(0===s)return a.lVt(t,r,n,e);if(1===s){if(i=n[r],1===a.setting.options.displayEmptyCellsAs&&(typeof i===w||i===c))return 0;if((o=a.lVt(t,r,n,e))>-a.Bzt&&o<a.Bzt){if(i>0)return o+a.Bzt;if(i<0)return o-a.Bzt}return o}return 2===s?typeof(i=n[r])===w||i===c||0===i||isNaN(i)?0:(u=a.fVt(t,e),i>=0?u.Height/2:-u.Height/2):void 0},t.prototype.dVt=function(t,r,n){var e,i,o=this,u=o.fVt(t,n),a=o.eVt(r),s=o.iVt(r);if(a===-$||s===$)return t.Height/2;if(e=a-s,a===s){if(0===a)return t.Height/2;e=a,a<0&&(a=0)}return i=u.Height/e,o.Zzt(n)+a*i},t.prototype.tVt=function(t,r,n){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,n)},t.prototype.vVt=function(t,r,n,e){var i,o,u,a=this,s=a.fVt(t,e),f=a.eVt(n),y=a.iVt(n),m=f-y;if(f===y){if(0===f)return 0;m=f}return i=s.Height/m,typeof(o=a.Sl(r,n))!==w&&o!==c||(o=0),f!==y&&f*y>0?(u=0,u=o>=0?(o-y)*i:(o-f)*i):o*i},t.prototype.mVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;return 0===s?a.vVt(t,r,n,e):1===s?(i=a.vVt(t,r,n,e))>-(o=a.Bzt)&&i<o&&(typeof(u=a.Sl(r,n))!==w&&u!==c||(u=0),0!==u)?u>0?i+o:i-o:i:2===s?a.hVt(t,r,n,e):void 0},t.prototype.gVt=function(t,r,n,e,i){var o,u,a,s,f,c,y,M,h,d=this,l=d.sVt(r,n,e,i),g=d.cVt(r,t,n,e,i);return l<0&&(l=0),(l=m(l))%2==1&&(l+=1),o=d.hVt(r,t,n,i),u=d.tVt(r,n,i),a=d.eVt(n),s=d.iVt(n),f=0,a<0&&s<0?f=v(d.Zzt(i),u):(f=u,o>=0&&(f=u-o)),c=d.mVt(r,t,n,i),y=new Ft(g,f,l,F(c)),0!==o&&(M=d.Zzt(i),y.Y<M&&y.Bottom<M+1?y.Height=m(y.Height+1):(h=r.Height-d.Zzt(i),y.Bottom>h&&y.Y>h-1&&(y.Y=h-c,y.Height=c))),y},t.prototype.Wzt=function(t){var r=this.setting.options.lineWeight*t;return r<1&&(r=1),r},t.prototype.Jzt=function(t,r,n,e,i){var o,u,a,s,f,y=this,m=y.Wzt(i);return++m<2&&(m=2),o=y.gVt(t,r,n,e,i),0===y.options.sparklineType&&(o.X=o.X+(o.Width-m)/2,typeof(u=y.Sl(t,n))!==w&&u!==c?(u>=0?o.Y-=m/2:o.Y=o.Bottom-m/2,o.Width=m,o.Height=m):(o.Width=0,o.Height=0)),y.setting.options.rightToLeft&&(a=o.X,f=(s=r.Width-a)-o.Width,o=new Ft(f,o.Y,o.Width,o.Height)),o},t}(),r.SparklineRender=_t,r.SparklineExRenders={PIESPARKLINE:qt,AREASPARKLINE:Qt,SCATTERSPARKLINE:rr,BULLETSPARKLINE:ur,SPREADSPARKLINE:ar,STACKEDSPARKLINE:yr,HBARSPARKLINE:vr,VBARSPARKLINE:gr,VARISPARKLINE:pr,LOLLIPOPVARISPARKLINE:br,BOXPLOTSPARKLINE:Fr,CASCADESPARKLINE:Nr,PARETOSPARKLINE:$r,MONTHSPARKLINE:Tr,YEARSPARKLINE:jr,GAUGEKPISPARKLINE:Ur,HISTOGRAMSPARKLINE:tn,IMAGESPARKLINE:nn}},canvas:function(t){t.exports=canvas}},e={};function i(t){var r,o=e[t];return void 0!==o?o.exports:(r=e[t]={exports:{}},n[t].call(r.exports,r,r.exports,i),r.exports)}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t={},function(){var r,n,e,o,u,a=t;Object.defineProperty(a,"__esModule",{value:!0}),a.Slicers=a.Sparklines=a.Formatter=a.Commands=a.Common=void 0,r=i("./src/common/common.entry.ts"),a.Common=r,n=i("./src/plugins/commands/commands.entry.ts"),a.Commands=n,e=i("./src/plugins/formatter/formatter.entry.ts"),a.Formatter=e,o=i("./src/plugins/sparkline/sparkline.entry.ts"),a.Sparklines=o,u=i("./src/plugins/slicer/slicer.entry.ts"),a.Slicers=u}(),(r=void 0===r?{}:r).Spread=t}(),t.exports=r.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,r,n)=>{t.exports=n("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={};function e(t){var i,o=n[t];return void 0!==o?o.exports:(i=n[t]={exports:{}},r[t](i,i.exports,e),i.exports)}t=e("./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 t,r={"./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js":t=>{var r;!function(){"use strict";var t,n={"./src/common/common.entry.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),h=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||M(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,e=n("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return e.ft}}),i=n("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return i.lt}}),o=n("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return o.Uf}}),u=n("./src/common/util/datetimehelper.ts"),Object.defineProperty(r,"ct",{enumerable:!0,get:function(){return u.ct}}),Object.defineProperty(r,"B3",{enumerable:!0,get:function(){return u.getSR}}),a=n("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return a.st}}),s=n("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return s.$T}}),f=n("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return f.zf}}),c=n("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return c.rbush}}),y=n("./src/common/util/common.ts"),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),h(n("./src/common/util/common.ts"),r),m=n("./src/common/culture/cultureInfo.ts"),Object.defineProperty(r,"CultureInfo",{enumerable:!0,get:function(){return m.CultureInfo}}),Object.defineProperty(r,"CultureManager",{enumerable:!0,get:function(){return m.CultureManager}}),h(n("./src/common/util/functionhelper.ts"),r)},"./src/common/culture/cultureInfo.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x=this&&this.qKr||(P=function(t,r){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},P(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}P(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),P;function C(t){return t.split("\xa0").join(" ").toUpperCase()}function A(t){var r,n,e=[];for(r=0,n=t.length;r<n;r++)e[r]=C(t[r]);return e}function T(t,r,n){var e=C(t),i=r.indexOf(e);return-1===i&&(i=n.indexOf(e)),i}function O(t){if(t){var r=t.charCodeAt(0);if(r>=11904&&r<12032||r>=8208&&r<8252||r>=12288&&r<40960||r>=43360&&r<43392||r>=44032&&r<55215||r>=63744&&r<64256||r>=65280&&r<65535)return!0}return!1}function j(t,r,n){if(" "===t||n&&"\u3000"===t)return 0;var e=n&&n(t);return r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!n||e?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!n||e?5:4:e?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1}function E(t,r,n){var e,i,o,u,a,f;if(!t)return[];for(e=[t[0]],i=0,o=j(t[0],r,n),u=1;u<t.length;u++)a=j(t[u],r,n),g[f=o+""+a]&&e[++i]===s&&(e[i]=""),e[i]+=t[u],o=a;return e}function R(t,r,n){var e,i,o,u=this;for(i=0,o=r.length;i<o;i++)e=r[i],u[t][e]=n[i]}function I(t,r){var n;"object"==typeof document&&("function"!=typeof CustomEvent?(n=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):n=new CustomEvent("cultureChanged",{}),n.cultureInfo=t,a.gcCultureInfo=t,a.gcCultureObj=r,document.dispatchEvent(n))}Object.defineProperty(r,"__esModule",{value:!0}),r.CultureManager=r.XPt=r.CultureInfo=r.TimelineDateOrder=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/util/regexhelper.ts"),a="undefined"!=typeof window?window:n.g,s=void 0,f=null,c=e.lt.y0,y=e.lt.Dh,m=(new Date).getFullYear(),d=["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"],l=(M=["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(h=["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"]),c(M,(function(t,r){c(h,(function(t,n){t<h.length-4&&l.push(r+" "+n)}))})),l=l.concat(d),c(d,(function(t,r){c(h,(function(t,n){t<h.length-4&&l.push(r+" "+n)}))})),function(t){t[t.year=1]="year",t[t.quarterOrMonth=2]="quarterOrMonth",t[t.date=3]="date"}(v=r.TimelineDateOrder||(r.TimelineDateOrder={})),g={"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=function(){function t(){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.fontScriptCode=s,this.predefinedFormats={},this.TimelineDateOrder=[v.quarterOrMonth,v.date,v.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=s}return t.prototype.mTe=function(){return[" "]},t.prototype.FAe=function(t){var r=this,n=r.mTe(),e={lineBreakingChar:n};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,e):E(t,e)},t.prototype.hse=function(t){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var r={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(t,r)}return E(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},t.prototype.qPt=function(){var t,r,n,e;return this.$Pt||(n=(n=[r=(t=this.DateTimeFormat).shortDatePattern.replace(/m/g,"M"),r+" h:mm",r+" h:mm:ss",r+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"]).concat(l),1041===this.id&&(e=t.eraFormatter,n=(n=n.concat(this.QPt)).concat(e)),n=n.concat(t.preselectedFormatters),this.$Pt=n),this.$Pt},t.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=A(r.DateTimeFormat.monthNames),r.eGt=A(r.DateTimeFormat.monthGenitiveNames)),T(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=A(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=A(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),T(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=A(r.DateTimeFormat.dayNames)),r.uGt.indexOf(C(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=A(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(C(t))},t}(),r.CultureInfo=p,b=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,n=p.eras;if(n!==s){for(t=[],r=0;r<n.length;r++)t[r]=new Date(n[r].startDate.replace(/-/g,"/"));return t}return this.vGt},t.mGt=function(r){var n,e,i,o,u;switch(r){case"g":n="symbol",e=t.gGt;break;case"gg":n="abbreviation",e=t.pGt;break;case"ggg":n="name",e=t.DEt;break;default:return[]}if(o=[],(i=p.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][n];return o}return e},t.hGt=function(){var t,r=p.eras;return r!==s&&r.length>0?((t=new Date(r[r.length-1].startDate.replace(/-/g,"/"))).setFullYear(t.getFullYear()+99),t):this.bGt},t.lGt=function(){var t=p.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=p.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,n,e,i=p.eras;if(i!==s){for(t=[],r=1;r<i.length;r++)n=new Date(i[r-1].startDate.replace(/-/g,"/")),e=new Date(i[r].startDate.replace(/-/g,"/")),t[r-1]=e.getFullYear()-n.getFullYear()+1;return t[r-1]=99,t}return this.SGt},t.TGt=function(r){var n,e,i={AGt:-1,IGt:-1};if(!t.fGt(r)){if(!(r>t.hGt()))return i;r=t.hGt()}for(n=0;n<t.wGt();n++)if(r<(e=n+1!==t.wGt()?t.dGt()[n+1]:t.xGt(t.hGt(),1))){i.AGt=n,i.IGt=r.getFullYear()-t.dGt()[n].getFullYear()+1;break}return i},t.xGt=function(t,r){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return n.setMilliseconds(n.getMilliseconds()+r),new Date(n.valueOf())},t.NGt=function(r,n){var e;return t.dGt()[r].getFullYear()+n-1},t.kGt=function(r,n){var e,i;for(n=n.toUpperCase(),e=t.mGt(r),i=0;i<e.length;i++)if(e[i]===n)return i;return-1},t.DGt=function(r,n,e){var i,o,u,a=t,s=a.TGt(n),f=s.AGt;if(f>=0&&(i=a.mGt(r)).length>0)return i[f];if((o=s.IGt)>=0){if("1"===(u=o.toString())&&e)return u="\u5143";if("ee"===r)return 1===u.length&&(u="0"+u),u;if("e"===r)return u}return""},t.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)],t.MGt=5,t.SGt=[45,15,64,31,99],t.bGt=new Date(2117,11,31,23,59,59),t.yGt=new Date(1868,8,8),t._Gt=["1,m","2,t","3,s","4,h","5,r"],t.EGt=[0,1,2,3,0,1,2,3],t.DEt=["\u660e\u6cbb","\u5927\u6b63","\u662d\u548c","\u5e73\u6210","\u4ee4\u548c"],t.gGt=["M","T","S","H","R"],t.pGt=["\u660e","\u5927","\u662d","\u5e73","\u4ee4"],t.jGt=99,t.eraExcelFormatter="[$-ja-JP-x-gannen]",t.eraInternalFormatter="[$-411]",t}(),r.XPt=b,F=function(t){function r(){var r,n=t.call(this)||this;return R.call(n,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],R.call(n,"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",!1,r]),n.DateTimeFormat.defaultDatePattern=n.DateTimeFormat.shortDatePattern+" H:mm:ss",n.name=function(){return"en-US"},n.displayName="English (United States)",n.id=1033,n.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"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},n}return x(r,t),r}(p),_=function(t){function r(){var r,n,e,i=t.call(this)||this,o={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:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},u={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"};return R.call(i,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",o,u]),r=["1","2","3","4","5","6","7","8","9","10","11","12",""],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",""],e=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],R.call(i,"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"],r,r,"\u5348\u524d",!1,["\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'",n,n,"\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",e,"ggge/mmmm/d\u65e5"]),i.DateTimeFormat.eras=!0,i.DateTimeFormat.defaultDatePattern=i.DateTimeFormat.shortDatePattern+" "+i.DateTimeFormat.longTimePattern,i.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'],i.name=function(){return"ja-JP"},i.id=1041,i.displayName="Japanese (Japan)",i.isJCKCulture=!0,i.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"},shortcut:{Number:"0.00",Currency:"[$\xa5-411]#,##0.00",Accounting:'_-[$\xa5-411]* #,##0.00_-;-[$\xa5-411]* #,##0.00_-;_-[$\xa5-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},i.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],i.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},i.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,r){return E(t,r,O)}},i.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],i}return x(r,t),r}(p),w=function(t){function r(){var r,n,e,i=t.call(this)||this,o={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:f,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},a={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"};return R.call(i,"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",o,a]),r=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],n=["\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",""],e=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],R.call(i,"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"],r,r,"\u4e0a\u5348",!1,["\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'",n,n,"\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",e]),i.DateTimeFormat.defaultDatePattern=i.DateTimeFormat.shortDatePattern+" "+i.DateTimeFormat.longTimePattern,i.name=function(){return"zh-cn"},i.id=2052,i.displayName="Chinese (China)",i.isJCKCulture=!0,i.localeCompare=function(t,r){var n=t.localeCompare(r,"zh");return n<0&&t>="\u4e00"&&r<"\u4e00"||n>0&&r>="\u4e00"&&t<"\u4e00"?-n:n},i.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"},shortcut:{Number:"0.00",Currency:"[$\xa5-804]#,##0.00",Accounting:'_ [$\xa5-804]* #,##0.00_ ;_ [$\xa5-804]* -#,##0.00_ ;_ [$\xa5-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},i.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],i.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},i.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return E(t,r,O)}},i.normalizeDateTimeString=function(t){var r,n;return u.$T.qT("^([0-9]{1,2}|[0-9]{4})\u5e74[0-9]{1,2}\u6708$").test(t)?(r=t.split("\u5e74"))[1].replace("\u6708","")+"/1/"+r[0]:u.$T.qT("^[0-9]{1,2}\u6708[0-9]{1,2}\u65e5$").test(t)?(r=t.split("\u6708"))[0]+"/"+r[1].replace("\u65e5","")+"/"+m:u.$T.qT("^(\u4e0a\u5348|\u4e0b\u5348)?[0-9]{1,2}\u65f6[0-9]{1,2}\u5206([0-9]{1,2}\u79d2)?$").test(t)?((n=(n=t.replace("\u65f6",":").replace("\u5206",":").replace("\u79d2","")).endsWith(":")?n+"00":n).startsWith("\u4e0a\u5348")&&(n=n.replace("\u4e0a\u5348","")+" AM"),n.startsWith("\u4e0b\u5348")&&(n=n.replace("\u4e0b\u5348","")+" PM"),n):t.includes("\u4e0a\u5348")||t.includes("\u4e0b\u5348")?t.replace("\u4e0a\u5348","am").replace("\u4e0b\u5348","pm"):f},i}return x(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(p),D=function(t){function r(){var r,n,e=t.call(this)||this,i={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"]}},o={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"};return R.call(e,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,i,o]),r=["1","2","3","4","5","6","7","8","9","10","11","12",""],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",""],R.call(e,"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"],r,r,"\uc624\uc804",!1,["\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"]),e.DateTimeFormat.defaultDatePattern=e.DateTimeFormat.shortDatePattern+" "+e.DateTimeFormat.longTimePattern,e.name=function(){return"ko-kr"},e.id=1042,e.displayName="Korean (Korea)",e.isJCKCulture=!0,e.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"},shortcut:{Number:"0.00",Currency:"[$\u20a9-412]#,##0.00",Accounting:'_-[$\u20a9-412]* #,##0.00_-;-[$\u20a9-412]* #,##0.00_-;_-[$\u20a9-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"\ub144" m"\uc6d4" d"\uc77c" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},e.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],e.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},e}return x(r,t),r}(p),H={invariant:new p,"en-us":new F,"ja-jp":new _,"zh-cn":new w,"ko-kr":new D},N={},$=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],k=["wmk1","wmk2"],S=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r){if(0===arguments.length)return t.RGt;r&&t.RGt!==r&&(t.RGt=r.toLowerCase(),this.KPt++,I(t.RGt,t.OGt.getCultureInfo()))},t.prototype.addCultureInfo=function(t,r,n){var e,o,u,a,s;if(r&&r instanceof p){if(e=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,o=r.NumberFormat.arrayListSeparator,u=r.NumberFormat.arrayGroupSeparator,e===r.NumberFormat.listSeparator||u===o)throw(a=new i.ResourceManager(i.SR)).getResource().Exp_Separator;H[t.toLowerCase()]=r}n&&"object"==typeof n&&(s=t.toLowerCase(),N[s]=y(!0,{},n),this.KPt++)},t.prototype.getCultureInfoDict=function(){return H},t.prototype.getCultureInfo=function(r){var n,e,i;if(0===arguments.length)return H[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),e=f,n=H)if(i===r||n[i].id!==s&&n[i].id===r){e=n[i];break}return e},t.prototype.getLanguage=function(t){if("string"==typeof t){var r=t.toLowerCase();return N[r]}return f},t.prototype.getResources=function(t){var r,n=this.culture().toLowerCase();return t!==f&&t!==s||(t=n),"string"==typeof t&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):f},t.prototype.BGt=function(t){var r,n="PivotTables",e="ReportSheet",i="GanttSheet",o="DataChart",u="Sheets",a="CalcEngine",s="Functions",f="TableFunctions",c=y(!0,{},t);return c[n]&&this.LGt(c[n],k),c[e]&&this.LGt(c[e],k),c[i]&&this.LGt(c[i],k),c[o]&&this.LGt(c[o],k),c[u]&&this.LGt(c[u],$),(r=c[a])&&(c[s]=r.wmt,c[f]=r.d2t,delete r.wmt,delete r.d2t),c},t.prototype.LGt=function(t,r){var n,e,i;for(n=0,e=r;n<e.length;n++)delete t[i=e[n]]},t.prototype.FGt=function(t,r,n){var e,i,u=N[t.toLowerCase()];for(e in r)o.Uf.OS($,e)||null!==(i=this.PGt(u,e,n))&&"string"==typeof i&&"string"==typeof r[e]&&(r[e]=i);r.wmt&&u.Functions&&this.GGt(u.Functions,r.wmt),r.d2t&&u.TableFunctions&&y(!0,r.d2t,u.TableFunctions)},t.prototype.PGt=function(t,r,n){var e,i;if(t.hasOwnProperty(r))return t[r];if(n&&(e=t[n])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];for(i in t)if((e=t[i])&&"object"==typeof e&&e.hasOwnProperty(r))return e[r];return null},t.prototype.GGt=function(t,r){var n,e,i,o,u,a,s,f={};for(n in r)if(t.hasOwnProperty(n))for(a in e=r[n],i=t[n],o=e.parameters,u=i.parameters,e.description=i.description,o)u.hasOwnProperty(a)&&"string"==typeof(s=u[a])&&(o[a].name=s);return f},t.prototype.Fe=function(r){var n=this.getCultureInfo(r);return n||(n=H[t.RGt])||(n=new p),n},t.prototype.xat=function(t,r){var n=this.getCultureInfo(t)||this.getCultureInfo("en-US"),e=n.DateTimeFormat,i=e.filterDialogDateFormatter;return(r.indexOf("g")>=0||r.indexOf("e")>=0)&&(i=e.EraFilterDialogDateFormatter||i),i},t.RGt="en-us",t}(),r.CultureManager=S.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var n,e,i;function o(t,r){var e,i;for(e in r)r.hasOwnProperty(e)&&(i=r[e],Array.isArray(i)?(t[e]=[],o(t[e],r[e])):i!==n&&"object"==typeof i?(t[e]={},o(t[e],r[e])):t[e]=r[e])}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,n=null,e=void 0,i=function(){function t(){}return t.Eit=function(t,r,n){t.splice(r,0,n)},t.ZP=function(t,r){t.push(r)},t.OS=function(t,r){return t.indexOf(r)>-1},t.VP=function(t,r){var n=t.indexOf(r);n>-1&&t.splice(n,1)},t.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},t.hD=function(t,r,n){return t.indexOf(r,n)},t.d5=function(t,r,e){if(!(r<0))for(var i=0;i<e&&r+i<t.length;i++)t[r+i]=n},t.N2t=function(t,r){var i,o;for(r<0&&(r=-1),o=i=r+1;o<t.length;o++)if(t[o]!==e&&t[o]!==n)return o;return-1},t.tR=function(t){return t&&t.length},t.Gf=function(t){var r=[];return o(r,t),r},t}(),r.Uf=i},"./src/common/util/colorhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m;function M(t,r,n){return n<0&&(n+=240),n>240&&(n-=240),n<40?t+((r-t)*n+20)/40:n<120?r:n<160?t+((r-t)*(160-n)+20)/40:t}function h(t,r,n){var e,i,o,u,a;return 0===n?e=i=o=s(255*r/240+"",10):(u=void 0,a=void 0,e=d(u=2*r-(a=r<=120?s((r*(240+n)+120)/240+""):r+n-s((r*n+120)/240+"")),a,t+80),i=d(u,a,t),o=d(u,a,t-80)),{a:255,r:e,g:i,b:o}}function d(t,r,n){return o(s((255*M(t,r,n)+120)/240+""),255)}function l(t){var r,n,e,i,o,u,a,s,c,m;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),e="",i="",6===(n=r.length)||8===n?(e=r.substr(0,6),8===n&&(i=r.substr(6,2))):3!==n&&4!==n||(e=(o=r.split(3===n?/(.)/:/(..)/)).filter(Boolean).map((function(t){return parseInt(3===n?t+t:t,16)})).map((function(t){return t.toString(16).padStart(2,"0")})).join(""),4===n&&(i=o[3]+o[3])),[u=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),c=i?parseInt(i,16):255]):t.toLowerCase()in f?f[t.toLowerCase()]:null!==(m=y.exec(t))?(c=void 0===m[4]?255:255*+m[4],[m[1],m[2],m[3],c]):null}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,e=n("./src/common/util/numberhelper.ts"),i=e.st.VGt,o=Math.min,u=Math.max,a=Math.abs,s=parseInt,f={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]},c=function(){function t(t){var r,n,e,i,a=this,f=t.r,c=t.g,y=t.b,m=u(u(f,c),y),M=o(o(f,c),y),h=m+M;a.HGt=s((240*h+255)/510+"",10),0===(r=m-M)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+h/2)/h+"",10):a.zGt=s((240*r+(510-h)/2)/(510-h)+"",10),n=(40*(m-f)+r/2)/r,e=(40*(m-c)+r/2)/r,i=(40*(m-y)+r/2)/r,a.wv=s(f===m?i-e+"":c===m?80+n-i+"":160+e-n+"",10),a.wv<0&&(a.wv+=240),a.wv>240&&(a.wv-=240))}return t.prototype.YGt=function(t){var r=this,n=r.HGt,e=r.ZGt(r.HGt,500,!0);return h(r.wv,n+(e-n)*t,r.zGt)},t.prototype.ZGt=function(t,r,n){return 0===r?t:n?r>0?(t*(1e3-r)+241*r)/1e3:t*(r+1e3)/1e3:((t+=240*r/1e3)<0&&(t=0),t>240&&(t=240),t)},t}(),y=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/,m=function(){function t(){}return t.j=function(t){var r=t.a,n=t.r,e=t.g,o=t.b;return 3===arguments.length&&(r=255,n=arguments[0],e=arguments[1],o=arguments[2]),4===arguments.length&&(r=arguments[0],n=arguments[1],e=arguments[2],o=arguments[3]),255===r?"#"+i(n,!0,2)+i(e,!0,2)+i(o,!0,2):"rgba("+n+","+e+","+o+","+r+")"},t.Tv=function(t,r){return t.stops||t.type?JSON.stringify(t)===JSON.stringify(r):t.a===r.a&&t.r===r.r&&t.g===r.g&&t.b===r.b},t.rp=function(t){return(299*t.r+587*t.g+114*t.b)/1e3},t.Km=function(t,r){var n,e=255-a(t.r-r.r),i=255-a(t.g-r.g),o=255-a(t.b-r.b),u=a(t.a-r.a);return!!((n=((e/=255)+(i/=255)+(o/=255))/3)>=.9&&u<=.05)},t.Uv=function(r){var n=255^r.r,e=255^r.g,i=255^r.b;return t.j(r.a,n,e,i)},t.WGt=function(r){var e,i,o,u;return"object"!=typeof document?l(r):((e=t.xf)||(i=document.createElement("canvas"))&&i.getContext&&(e=t.xf=i.getContext("2d",{willReadFrequently:!0})),e||((o=n("canvas"))&&o.createCanvas&&(i=o.createCanvas(2,2),e=t.xf=i.getContext("2d")),e)?(e.clearRect(1,1,1,1),e.fillStyle=r,e.fillRect(1,1,1,1),(u=e.getImageData(1,1,1,1))?u.data:null):l(r))},t._=function(r){var n,e,i,o,u;return r instanceof t||null!==r&&"object"==typeof r?r:(n=0,e=0,i=0,o=0,r&&(u=t.WGt(r))&&(e=u[0],i=u[1],o=u[2],n=u[3]),{a:n,r:e,g:i,b:o})},t.Cv=function(r,n){var e,i;return 0===n?r:(e=new c(r),i=s((n>0?(240-e.HGt)*n:e.HGt*n)+"",10),t.QGt(e.wv,e.HGt+i,e.zGt))},t.YGt=function(r,n){var e=t._(r),i=new c(e),o=i.YGt(n);return t.j(o)},t.Dz=M,t.QGt=h,t}(),r.ft=m},"./src/common/util/common.ts":function(t,r,n){var e,i,o,u,a;function s(t,r,n,e){var i,o,u,a,s;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=void 0,u=n;u<r;u++)void 0!==t[u]&&i.push(u);for(o=i.length,u=0;u<o;u++)s=t[a=i[o-u-1]],t[a]=null,t[Math.floor(a)+e]=s}}function f(t,r,n,e){var i,o,u,a,s,f;if(t&&0<=n&&n<r){for(i=[],o=void 0,u=n+e,a=void 0,a=n;a<r;a++)void 0!==t[a]&&(n<=a&&a<u?t[a]=null:a>=u&&i.push(a));for(o=i.length,a=0;a<o;a++)f=t[s=i[a]],t[s]=null,t[Math.floor(s)-e]=f}}function c(t,r){return t.hasOwnProperty(r)}function y(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.X8=r.J8=r.ResourceManager=r.SR=void 0,e=n("./src/common/culture/cultureInfo.ts"),i=n("./src/common/util/util.res.en.ts"),o=n("./src/common/util/types.ts"),r.SR={en:i},u=o.lt.Dh,a=function(){function t(t,r){this.res=t,this.KGt=r,this.JPt=e.CultureManager.JPt,this.cachedResource=this.JGt(t,!0),this.XGt(this.cachedResource,r),this.KPt=0}return t.prototype.getResource=function(){var t=this.JGt(this.res,!this.cachedResource);return t&&(this.cachedResource=t),this.XGt(this.cachedResource,this.KGt),this.cachedResource},t.prototype.XGt=function(t,r){var n,i;r&&(i=(n=e.CultureManager.culture()).toLowerCase(),this.JPt[i]=this.JPt[i]||{},this.JPt[i][r]=t,e.CultureManager.JPt=this.JPt)},t.prototype.JGt=function(t,r){var n,i,o,a=e.CultureManager.culture();if(t&&a){if(n=e.CultureManager.KPt,this.KPt===n&&!r)return;return this.KPt=n,e.CultureManager.getLanguage(a)?(i=u(!0,{},t.en),e.CultureManager.FGt(a,i,this.KGt),i):(o=a.substr(0,2).toLowerCase(),t.hasOwnProperty(o)?t[o]:t.en)}return{}},t}(),r.ResourceManager=a,r.J8=s,r.X8=f,r.kh=c,r.ut=y},"./src/common/util/datetimehelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g;function p(t,r){if(e.HandleExcelSpecialDate)return e.HandleExcelSpecialDate.apply(null,[t,r]);switch(r){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();default:return}}function b(t,n,e,i){var o,a,s,c,y,m,l,v,g,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E=e.DateTimeFormat,R=E.Calendar.convert;if(!n||!n.length)return e&&e.name.length?R?b(t,E.fullDateTimePattern,e):t.toLocaleString():t.toString();function I(){return y||m||(y=l.test(n),m=M),y}function B(t,r){return _?_[r]:p(t,r)}for(o=E.eras,s="",l=/([^d]|^)(d|dd)([^d]|$)/g,v=0,g=/\/|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,!(a="s"===n)&&R&&(_=R.fromGregorian(t)),w=-2,D=-2,H={y4:""},N=0;$=g.lastIndex,k=g.exec(n),S=n.slice($,k?k.index:n.length),H.y4="",v+=F(S,H),s+=H.y4,k;N++)if(v%2!=1)switch(x=B(t,0),P=t.getDay(),C=t.getHours(),A=t.getMinutes(),T=t.getSeconds(),O=t.getMilliseconds(),j=t.getTimezoneOffset(),k[0]){case"dddd":s+=E.dayNames[P];break;case"ddd":s+=E.abbreviatedDayNames[P];break;case"dd":y=M,s+=f(B(t,2),2);break;case"d":y=M,s+=B(t,2);break;case"MMMM":s+=E.monthGenitiveNames&&I()?E.monthGenitiveNames[B(t,1)]:E.monthNames[B(t,1)];break;case"MMM":s+=E.abbreviatedMonthGenitiveNames&&I()?E.abbreviatedMonthGenitiveNames[B(t,1)]:E.abbreviatedMonthNames[B(t,1)];break;case"MM":s+=f(B(t,1)+1,2);break;case"M":s+=B(t,1)+1;break;case"yyyy":case"yyy":s+=w>=0?u.XPt.DGt("ee",t,i):f(_?_[0]:x,4);break;case"yy":s+=w>=0?u.XPt.DGt("ee",t,i):f((_?_[0]:x)%100,2);break;case"y":s+=w>=0?u.XPt.DGt("e",t,i):((_?_[0]:x)%100).toString();break;case"hh":0===(c=C%12)&&(c=12),s+=f(c,2);break;case"h":0===(c=C%12)&&(c=12),s+=c;break;case"HH":s+=f(C,2);break;case"H":s+=C.toString();break;case"mm":s+=f(A,2);break;case"m":s+=A.toString();break;case"ss":s+=f(T,2);break;case"s":s+=T.toString();break;case"tt":s+=C<12?E.amDesignator:E.pmDesignator;break;case"t":s+=(C<12?E.amDesignator:E.pmDesignator).charAt(0);break;case"f":case"0":s+=f(O,3).charAt(0);break;case"ff":case"00":s+=f(O,3).substr(0,2);break;case"fff":case"000":s+=f(O,3);break;case"z":s+=((c=j/60)<=0?"+":"-")+h(d(c));break;case"zz":s+=((c=j/60)<=0?"+":"-")+f(h(d(c)),2);break;case"zzz":s+=((c=j/60)<=0?"+":"-")+f(h(d(c)),2)+":"+f(d(j%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(w===N-1){w=N;break}s+=u.XPt.DGt(k[0],t,i),w=N;break;case"e":case"ee":if(!o){s+=f(_?_[0]:x,4);break}if(D===N-1){D=N;break}s+=u.XPt.DGt(k[0],t,i),D=N;break;case"/":s+=E.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(k[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=k[0]}else s+=k[0];return s.toString()}function F(t,r){var n,e,i,o=0,u=m;for(n=0,e=t.length;n<e;n++)switch(i=t.charAt(n)){case'"':u?r.y4+="'":o++,u=m;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=m}return o}function _(t,r){var n,e=new Date,i=t.DateTimeFormat.eras;return i&&r<100&&(r+=(n=u.XPt.TGt(e).IGt)-n%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function w(){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 D(t,n,e){var i,u,a,s,f,y,m,M,h,d,l;if(t.qGt){if(t.qGt[n])return t.qGt[n]}else t.qGt={};for(i=(i=(i=n).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),u="^",a={y4:""},s=[],f=0,y=0,m=/\/|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;(M=m.exec(i))!==c;)if(a.y4="",h=i.slice(f,M.index),f=m.lastIndex,y+=F(h,a),u+=a.y4,y%2!=1){switch(M[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":u+="(\\D+)";break;case"tt":case"t":u+="(\\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":u+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":u+=e?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":u+="(\\d{2}|\\d{4})";break;case"fff":case"000":u+="(\\d{3})";break;case"ff":case"00":u+="(\\d{2})";break;case"f":case"0":u+="(\\d)";break;case"zzz":u+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":u+="([+-]?\\d\\d?)";break;case"/":u+="/"===t.dateSeparator?"(\\/)":"([\\/\\"+t.dateSeparator+"])";break;default:throw new Error((0,r.getSR)().Exp_InvalidDateFormat)}o.Uf.ZP(s,M[0])}else u+=M[0];return a.y4="",F(i.slice(f),a),u+=a.y4,l={$Gt:d=(u+="$").toString().replace(/\s+/g,"\\s+"),QMt:s,tUt:new RegExp(d)},t.qGt[n]=l,l}function H(t){var r=t.getTimezoneOffset();return-485===r&&(r=-485-43/60),-321===r&&(r=-321-10/60),-507===r&&(r=-507-52/60),-402===r&&(r=-402-4/60),r}Object.defineProperty(r,"__esModule",{value:!0}),r.ct=r.getSR=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/stringhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=n("./src/common/culture/cultureInfo.ts"),a=n("./src/common/util/types.ts"),s=a.lt.ht,f=i.zf.B9t,c=null,y=parseInt,m=!1,M=!0,h=Math.floor,d=Math.abs,l=new e.ResourceManager(e.SR,"Common"),r.getSR=l.getResource.bind(l),v={},g=function(){function t(){}return t.L9t=function(t,r,n,e){return n||(n=u.CultureManager.Fe()),b(t,r,n,e)},t.Pe=function(t,r,n){return b(t,r,n||u.CultureManager.Fe())},t.Mjt=function(r,n,e){var i,o,u,a,s,f=m;for((s=e).slice(1).forEach((function(t){t&&(f=!0)})),f||(s=s.concat(n.qPt())),o=s.length,i=1;i<o;i++)if((a=s[i])&&(f=M,u=t.nUt(r,a,n)))return u;return c},t.yU=function(r,n,e){var i,o;return n||e||void 0===(o=v[r])?(i=n?[r,n]:[r],o=t.Mjt(r,e||u.CultureManager.Fe(),i),n||e||(v[r]=o),o?new Date(o):o):o?new Date(o):o},t.Z6t=function(r,n){return t.Mjt(r,u.CultureManager.Fe("invariant"),[r,n])},t.nUt=function(t,r,n){var e,o,a,s,f,M,h,d,l,v,g,p,b,F,w,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I;if(t=t.trim(),(s=(a=D(e=n.DateTimeFormat,r,o=1041===n.id)).tUt.exec(t))===c)return c;for(f=a.QMt,M=c,h=c,d=c,l=c,v=c,g=0,b=0,F=0,w=0,H=c,N=m,$=m,k=0,S=f.length;k<S;k++)if(x=s[k+1])switch(f[k]){case"dd":case"d":if((l=y(x,10))<1||l>31)return c;break;case"MMMM":if((d=n.tGt(x))<0||d>11)return c;break;case"MMM":if((d=n.iGt(x))<0||d>11)return c;break;case"M":case"MM":case"%M":if((d=y(x,10)-1)<0||d>11)return c;break;case"e":case"ee":if((h=o&&"\u5143"===x?1:_(n,y(x,10)))<0||h>9999)return c;break;case"y":case"yy":case"yyy":case"yyyy":if((h=y(x,10))<0||h>9999)return c;break;case"h":case"hh":case"H":case"HH":if((g=y(x,10))<0)return c;break;case"m":case"mm":if((b=y(x,10))<0||b>59)return c;break;case"s":case"ss":if((F=y(x,10))<0||F>59)return c;break;case"tt":case"t":if(N=(P=x.toUpperCase())===e.pmDesignator.toUpperCase(),$=P===e.amDesignator.toUpperCase(),!N&&!$)return c;break;case"f":case"0":if((w=100*y(x,10))<0||w>999)return c;break;case"ff":case"00":if((w=10*y(x,10))<0||w>999)return c;break;case"fff":case"000":if((w=y(x,10))<0||w>999)return c;break;case"dddd":if((v=n.aGt(x))<0||v>6)return c;break;case"ddd":if((v=n.sGt(x))<0||v>6)return c;break;case"zzz":if(2!==(C=x.split(/:/)).length)return c;if((p=y(C[0],10))<-12||p>13)return c;if((A=y(C[1],10))<0||A>59)return c;H=60*p+(i.zf.fJ(x,"-")?-A:A);break;case"z":case"zz":if((p=y(x,10))<-12||p>13)return c;H=60*p;break;case"g":case"gg":case"ggg":if(!(T=x)||!e.eras)return c;if((M=u.XPt.kGt(f[k],T))<0)return c}if(j=(O=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=e.Calendar.convert)&&(E=R.fromGregorian(j)),R||(E=[j.getFullYear(),j.getMonth(),j.getDate()]),h===c?h=E[0]:h<100&&(e.eras&&M!==c?h=u.XPt.NGt(M||0,h):h+=h>=30?1900:2e3),d===c&&(d=E[1]),l===c&&(l=O?E[2]:1),R){if((j=R.toGregorian(h,d,l))===c)return c}else{if(j.setFullYear(h,d,l),j.getDate()!==l)return c;if(v!==c&&j.getDay()!==v)return c}return N&&g<12?g+=12:$&&12===g&&(g=0),j.setHours(g,b,F,w),H!==c&&(I=j.getMinutes()-(H+j.getTimezoneOffset()),j.setHours(j.getHours()+I/60,I%60)),j},t.Y0=function(t){var r,n=t-25569,e=new Date(864e5*n),i=H(e),o=Math.round(864e5*(t-25569+i/1440)),u=new Date(o),a=i>=0?1:-1,s=new Date(o+36e5*a),f=H(s);if(d(i-f)>=60)if(r=new Date(o+60*(f-i)*1e3),i>f){if(-1===a||f===H(u))return r}else if(i<f&&(1===a||f===H(u)))return r;return u},t.dJ=function(r){if("/OADate("===r.substr(0,8)){var n=parseFloat(r.substr(8,r.length-10));return t.Y0(n)}},t.Q0=function(r){return"/OADate("+t.o0(r)+")/"},t.o0=function(t){if(s(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=H(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t._DT=function(n){var e,i,o,u=c,a=M;if(s(n)?u=t.Y0(0):n instanceof Date?u=new Date(n.valueOf()):"string"==typeof n?((e=t.yU(n))||(isNaN(n)?t.u6t(n)?a=m:(e=new Date(n),isNaN(e.valueOf())&&(a=m),(o=(i=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/).exec(n.replace(/ |\n/g,"").trim()))&&4===o.length&&(-1!==o.indexOf(e.getFullYear().toString())&&-1!==o.indexOf((e.getMonth()+1).toString())&&-1!==o.indexOf(e.getDate().toString())||(a=m))):(e=t.Y0(parseFloat(n)))||(a=m)),u=e):"number"==typeof n?u=t.Y0(n):a=m,a)return u;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){var n=u.CultureManager.Fe().DateTimeFormat,e=t.eUt,i=function(t,r){var n=0;return r.forEach((function(r){r&&t.indexOf(r)>-1&&n++})),n>1},o=function(t,r){if(t&&t.indexOf(" ")>-1){var n=t.split(" "),e=n.length;return e>=2&&r.indexOf(n[e-2])<=-1&&!isNaN(n[e-1])}return!1},a=function(t){var r=!1;return e.forEach((function(n){t.indexOf(n)>-1&&(r=!0)})),r};return i(r,n.monthNames)||i(r,n.abbreviatedMonthNames)||i(r,n.dayNames)||i(r,n.abbreviatedDayNames)||o(r,n.monthNames.concat(n.abbreviatedMonthNames))||a(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t.eUt=["@","#","!","`","^","$","*","(",")","&"],t}(),r.ct=g},"./src/common/util/functionhelper.ts":function(t,r,n){var e,i,o,u;function a(t){return t}function s(t,r,n,a,s,f,c,y,m,M,h){var d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I=n[o],B=n[u],L=r[o],G=r[u],z=a[o],K=a[u],J=1===B,V=1===G;if(L===I&&G===B){for(P=0,C=0,A=0,T=0,F=I*B,d=0;d<I;d++)for(l=0;l<B;l++){if(g=f(n[d][l]),p=f(r[d][l]),t&&(i(g)||i(p)))return m;P+=g,C+=g*g,A+=p=M(p),T+=g*p}for(O=F*T-P*A,_=s?(A*C-P*T)/(F*C-P*P):0,((j=(b=s?O/(F*C-P*P):T/C).toString()).indexOf("000000000000")>1||j.indexOf("999999999999")>1)&&(b=e.st.E8(b,12),_=e.st.E8(_,12)),w=[],d=0;d<z;d++)for(w[d]=[],l=0;l<K;l++){if(g=f(a[d][l]),t&&i(g))return m;w[d][l]=0===O?r[0][0]:h(e.st.Jme(b*g,_))}return c?new c(w):w}if(V&&L===I||1===L&&G===B){for(g=[],p=[],S=B+1,x=B+2,d=0;d<I;d++){if(_=f(H=V?r[d][0]:r[0][d]),t&&i(_))return m;p[d]=J?M(_):_}for(d=0;d<I;d++)for(g[d]=[],l=0;l<B;l++){if(_=f(n[d][l]),t&&i(_))return m;g[d][l]=_}for(E=[],b=0;b<S;b++)for(E[b]=[],F=0;F<x;F++)E[b][F]=0;for(v=0;v<I;v++)for(E[0][S]+=p[v],d=0;d<B;d++)for(H=d+1,E[0][H]+=g[v][d],E[H][0]=E[0][H],E[H][S]+=g[v][d]*p[v],l=d;l<B;l++)E[$=l+1][H]+=g[v][d]*g[v][l],E[H][$]=E[$][H];for(E[0][0]=I,D=R=s?0:1;D<S;D++){if(t){if(0===E[D][D]){for(k=!1,l=D+1;!k&&l<S;l++)if(0!==E[l][D]){for(v=0;v<x;v++)$=E[D][v],E[D][v]=E[l][v],E[l][v]=$;k=!0}if(!k)return y}}else{for(d=D;d<S&&0===E[d][D];)d++;if(d>=S)return y;for(N=R;N<x;N++)H=E[D][N],E[D][N]=E[d][N],E[d][N]=H}for(H=1/E[D][D],N=R;N<x;N++)E[D][N]*=H;for(d=R;d<S;d++)if(d!==D)for(H=-E[d][D],N=0;N<x;N++)E[d][N]+=H*E[D][N];s||(E[0][S]=0)}for(w=[],V||(w[0]=[]),d=0;d<z;d++){for(V&&(w[d]=[]),H=E[0][S],l=0;l<B;l++){if(_=f(V?a[d][l]:a[l][d]),t&&i(_))return m;H+=E[l+1][S]*_}V?w[d][0]=h(H):w[0][d]=h(H)}return c?new c(w):w}return y}function f(t,r,n,e,i,o,u,f){return s(!0,t,r,n,e,i,o,f,u,a,a)}function c(t,r,n,e,i,f,c){var y,m;for(y=0;y<t[o];y++)for(m=0;m<t[u];m++)if(t[y][m]<=0)return f;return s(!1,t,r,n,e,a,i,c,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,e=n("./src/common/util/numberhelper.ts"),i=isNaN,o="rowCount",u="colCount",r.eit=f,r.iit=c},"./src/common/util/numberhelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T;function O(t,r,n,e){return r&&0!==r.length&&"i"!==r?j(t,r,n.NumberFormat,e):n&&n.name.length>0?t.toLocaleString():t.toString()}function j(t,r,n,e){var i;return Y(t,I(r),n,e)}function E(t,r){for(var n,e,i,o,u,a,s,f,c=v(g(t)),y={iUt:1,rUt:0};c>=10&&Number.isFinite(c);)c/=10,y.iUt++;return e=(n=t.toString()).search(/e/gi),i=n.indexOf(r),-1!==e?(u=D(n,0,e),a=D(n,e+1),s=0,-1!==i&&(s=D(u,i+1).length),(o=s-(f=h(a)))<0&&(o=0),y.rUt=o):(o=0,-1!==i&&(o=D(n,i+1).length),y.rUt=o),y}function R(t){var r,n={oUt:t.charAt(0),aUt:0,tUt:0},e="";for(r=1;r<t.length;r++)if("+"===(e=t.charAt(r)))n.aUt=1;else{if("-"!==e){if("0"===e){n.tUt=t.length-r;break}throw new Error($().Exp_InvalidExponentFormat)}n.aUt=-1}return n}function I(t){var r,n,e,i,o,u,a={uUt:y,sUt:y,rCt:d,fxt:0,d0:0,cUt:0,fUt:y},s="",f=d,c=d,m=d,M=d,h=d,v=d,g=y,p=[];for(n=0;n<t.length;n++){if(r=t.charAt(n),f)s+=r,'"'===r&&(p.push(s),s="",f=d);else if(c){if("E"===g||"e"===g){if(!(["+","-","0"].indexOf(r)>=0)){c=d,n--;continue}s+=r}else if("+"===g||"-"===g){if("0"!==r){c=d,n--;continue}s+=r}else if("0"===g){if("0"!==r){c=d,h||(h=l,a.fUt=R(s)),n--;continue}s+=r}}else if("*"!==g&&"_"!==g&&"\\"!==g||""===s)if("*"===r||"_"===r||"\\"===r)v=d,""!==s&&(p.push(s),s=""),s+=r;else if("'"===r)v=d,""!==s&&(p.push(s),s=""),p.push(r);else if('"'===r)v=d,f=l,""!==s&&(p.push(s),s=""),s+=r;else if(C.indexOf(r)>=0)v=l,C.indexOf(g)<0&&""!==s&&(p.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=d,a.d0++,""!==s&&(p.push(s),s=""),p.push(r);else if("\u2030"===r)v=d,a.cUt++,""!==s&&(p.push(s),s=""),p.push(r);else if(","===r)if(v){for(e=void 0,""!==s&&(p.push(s),s=""),i=l,o="",u=n+1;u<t.length;u++)if(e=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(C.indexOf(e)>=0){i=d;break}if("."===e||";"===e)break;o=e}else o="";else'"'===e&&(o="");i?a.fxt++:m||(e=t.charAt(n+1))&&C.indexOf(e)>=0&&(M=l)}else s+=r;else"E"===r||"e"===r?(v=d,c=l,""!==s&&(p.push(s),s=""),s+=r):(v=d,C.indexOf(g)>=0&&""!==s&&(p.push(s),s=""),s+=r);else""!==s&&(p.push(s),s=""),a.uUt=p,p=[],m=l,v=d;else s+=r,p.push(s),s="";g=r}return""!==s&&(c&&!h&&(a.fUt=R(s)),p.push(s)),M&&(a.rCt=l),m?a.sUt=p:a.uUt=p,a}function B(t,r,n,e){var i,o,u,a,s,f=r[0],c=1,y=0,m=d,M=t.length;for(i=0;i<M;i++)if("number"===(o=t[i].type)){for(u="",s=(a=t[i].value).length-1;s>=0;){if(!(1<=f&&f<=9||0===f&&c===r.length))throw new Error($().Exp_InvalidNumberGroupSize);/\d/gi.test(a[s])?(m&&(u&&t.push({type:"number",value:u}),t.push({type:"groupSeparator",value:n}),u="",m=d),y++):y=0,u=a[s]+u,y===f&&f>0&&(m=l,y=0,c<r.length&&(f=r[c],c++)),s--}u&&t.push({type:o,value:u})}else"fillingChar"===o&&(e.infillIndex=t.length-M),t.push({type:o,value:t[i].value});return t.splice(0,M)}function L(t,r,n,e,i,o){var u,a,s,y,m=tt(t,-r);return isFinite(m)||(m=t),y=(u=(t=m).toString()).split(/e/i),u=y[0],s=y.length>1?M(y[1],10):0,y=u.split("."),u=y[0],a=y.length>1?y[1]:"",s>0?(u+=(a=c(a,s)).slice(0,s),a=D(a,s)):s<0&&(s=-s,a=(u=t<0?o+f(u.replace(o,""),s+1):f(u,s+1)).slice(-s,u.length)+a,u=u.slice(0,-s)),u+(a=r>0?i+(a=a.length>r?a.slice(0,r):c(a,r)):"")}function G(t,r,n,e){var i=t;return r>0&&(i=et(i*p(100,r),15)),n>0&&(i=et(i*p(1e3,n),15)),e>0&&(i=et(i/p(1e3,e),15)),i}function z(t){var r,n,e=y;if(t)for(e="",r=0;r<t.length;r++)n=t[r],/^(0|#|\?)+/g.test(n)&&(e+=n);return e}function K(t,r){return t===r||0!==t&&0!==r&&(g(t-r)<g(t)/T||(t=et(t,15),r=et(r,15),g(t-r)<g(t)/T))}function J(t,r){return K(t,-r)?0:t+r}function V(t,r,n){var e,i,o={value:t,exponentValue:0},u=E(t,"."),a=u.iUt,s=g(t),f=n?n.length:1;if(s>=1)a>f?(a-=f,o.value=t/p(10,a),o.exponentValue=a):o.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(s<1&&s>0){for(r.aUt=-1,e=p(10,f);10*s<e&&!K(10*s,e);)s*=10,o.exponentValue++;i=p(10,o.exponentValue),o.value*=i>F?0:i}return o}function W(t,r,n,e,i,o,u,a){var s,c,y,m,M,h,d,v,g,p,b,F,_=a.numberGroupSizes,w=a.numberGroupSeparator,H=a.negativeSign,N=a.percentSymbol,$=a.perMilleSymbol,k=e.fUt,S=D(r,0,1);for(S===H&&(r=D(r,1)),r=0===(s=1===r.length&&"0"===r?0:r.length)?"":r,c=0,y="",m=t.length-1;m>=0;m--)if(M="",h=t[m],/^(0|#|\?)+/g.test(h)){if(y!==n){for(d=h.length,v=s-c-1;v>=0&&d>0;v--)M=(g=r.charAt(v))+M,d--,c++;for(p=d-1;p>=0;p--)c++,"0"===(b=h[p])?M=b+M:"?"===b&&(""!==M&&(o.push({type:"number",value:M}),M=""),o.push({type:"numberPlaceholder",value:b}));(y=h+y)===n&&c<s&&(M=r.substr(0,s-c)+M),""!==M&&o.push({type:"number",value:M})}}else e.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(h)?(u.replaceExponent=l,F="",F+=k.oUt,F+=x[k.aUt],F+=f(i.toString(),k.tUt),o.push({type:"exponent",value:F})):"_"===h[0]?o.push({type:"placeholder",value:h[1]}):"*"===h[0]?u.hasInfilling||(o.push({type:"fillingChar",value:h[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===h[0]?2===h.length&&o.push({type:"text",value:h[1]}):'"'===h[0]&&'"'===h[h.length-1]?h.length>2&&o.push({type:"text",value:h.substr(1,h.length-2)}):h===N?o.push({type:"percent",value:h}):h===$?o.push({type:"permille",value:h}):A[h]?o.push({type:"currency",value:h}):o.push({type:"text",value:h});S===H&&n&&o.push({type:"text",value:S}),e.rCt===l&&B(o,_,w,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function U(t,r,n,e,i,o,u,a,s){var c,y,m,M,h,d,v,g,p,b,F,_,w=s.numberDecimalSeparator,D=s.percentSymbol,H=s.perMilleSymbol,N=r.indexOf(w),$=i.fUt;for((N>0||e!==k||n!==S)&&u.push({type:"decimalSeparator",value:w}),c=-1!==N?r.substring(N+1):"",y=0,m="",M=0;M<t.length;M++)if(h=t[M],/^(0|#|\?)+/g.test(h)){if(d="",m!==n){for(v=h.length,g=0,p=y;v>0&&c.length-y>0;)d+=c.charAt(p),v--,y++,g++,p++;for(b=g;v>0;)F=h[b],b++,y++,v--,"0"===F?d+=F:"?"===F&&(""!==d&&(u.push({type:"number",value:d}),d=""),u.push({type:"numberPlaceholder",value:F}));""!==d&&u.push({type:"number",value:d}),m+=h}}else $&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(h)?(a.replaceExponent=l,_="",_+=$.oUt,_+=x[$.aUt],_+=f(o.toString(),$.tUt),u.push({type:"exponent",value:_})):"_"===h[0]?u.push({type:"placeholder",value:h[1]}):"*"===h[0]?(u.push({type:"fillingChar",value:h[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===h[0]?2===h.length&&u.push({type:"text",value:h[1]}):'"'===h[0]&&'"'===h[h.length-1]?h.length>2&&u.push({type:"text",value:h.substr(1,h.length-2)}):h===D?u.push({type:"percent",value:h}):h===H?u.push({type:"permille",value:h}):A[h]?u.push({type:"currency",value:h}):u.push({type:"text",value:h})}function q(t,r){var n=t,e=t.indexOf(r);return-1!==e&&(n=t.replace(/0+$/,"")),n}function Y(t,r,n,e){var i,o,u,a,s,f,c,y,m,M,h,l,v,p,F,_,w=[];return t=G(t,r.d0,r.cUt,r.fxt),i=r.uUt,o=r.sUt,i||o?(u=z(i),(a=z(o))||(a=""),r.fUt&&(t=(f=V(t,r.fUt,u)).value,s=f.exponentValue),c=E(t,"."),g(t)>1&&c.iUt+c.rUt>15&&(t=et(t,15)),y=n.numberGroupSizes,m=n.numberGroupSeparator,M=n.numberDecimalSeparator,h=n.negativeSign,v=L(t,l=b(c.rUt,a.length),y,m,M,h),e||(v=q(v,M)),""===v?(w.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),w):(p={hasInfilling:d,infillIndex:-1,replaceExponent:d},"10"!==(F=v.split(M)[0])||isNaN(s)||(F="1",s+=(_=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),i&&W(i,F,u,r,s,w,p,n),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&w.push({type:"number",value:F}),o&&U(o,v,a,u,r,s,w,p,n)),w)):w}function X(t,r){var n,e,i,o,a,f,c,m,d,l,v,g,p,b,F,_,w;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?h(t):t.match(/^0x[a-f0-9]+$/i)?M(t,10):(o=(i=Z(t,n=r.NumberFormat,e=n.numberNegativePattern))[0],a=i[1],""===o&&1!==e&&(o=(i=Z(t,n,1))[0],a=i[1]),""===o&&(o="+"),a[0]===n.currencySymbol&&(a=D(a,1)),(m=a.indexOf("e"))<0&&(m=a.indexOf("E")),m<0?(c=a,f=y):(c=D(a,0,m),f=D(a,m+1)),(v=c.indexOf("."))<0?(d=c,l=y):(d=D(c,0,v),l=D(c,v+1)),d=d.split(",").join(""),","!==(g=",".replace(/\u00A0/g," "))&&(d=d.split(g).join("")),p=o+d,l!==y&&(p+="."+l),(b=p[p.length-1])===n.percentSymbol&&(p=D(p,0,p.length-1),-1===(F=(p=u.zf.s6t(p,"")).indexOf("."))&&(F=p.length),_="",_+=D(p,0,F-2),_+=".",_+=D(p,F-2,2),p=_+=D(p,F+1)),f!==y&&(""===(w=Z(f,n,1))[0]&&(w[0]="+"),p+="e"+w[0]+w[1]),p.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?h(p):NaN)}function Z(t,r,n){var e=r.negativeSign,i=r.positiveSign;if(4!==n&&2!==n||(e=" "+e,i=" "+i),4===n||3===n){if(u.zf.dT(t,e))return["-",D(t,0,t.length-e.length)];if(u.zf.dT(t,i))return["+",D(t,0,t.length-i.length)]}else if(2===n||1===n){if(u.zf.fJ(t,e))return["-",D(t,e.length)];if(u.zf.fJ(t,i))return["+",D(t,i.length)]}else{if(0!==n)throw new Error("");if(u.zf.fJ(t,"(")&&u.zf.dT(t,")"))return["-",D(t,1,t.length-2)]}return["",t]}function Q(t,r,n){if(0!==g(v(t)-t))throw new Error($().Exp_BadFormatSpecifier);var e=t>=0?t.toString(16):(P+t+1).toString(16);return e=r?e.toLowerCase():e.toUpperCase(),!s(n)&&e.length<n?f(e,n):e}function tt(t,r){var n,e;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(n=t<0)?-t:t,typeof r===m||0===r?(t=Math.round(t),n?-t:t):(e=t.toString().split("e"),t=Math.round(+(e[0]+"e"+(e[1]?+e[1]-r:-r))),+((e=(t=n?-t:t).toString().split("e"))[0]+"e"+(e[1]?+e[1]+r:r))))}function rt(t){var r=a.CultureManager.Fe().NumberFormat;return"string"==typeof t&&(r=a.CultureManager.Fe(t).NumberFormat),r}function nt(t){var r,n,e,i="";if(Array.isArray(t)&&t.length>0)for(r=0;r<t.length;r++)if(n=t[r].type,e=t[r].value,"placeholder"===n)i+=" ";else{if("fillingChar"===n)continue;i+="numberPlaceholder"===n?" ":e}return i}function et(t,r){return"number"==typeof t&&t.toString().length>=r&&(t=+t.toPrecision(r)),t}Object.defineProperty(r,"__esModule",{value:!0}),r.st=void 0,e=n("./src/common/util/common.ts"),i=n("./src/common/util/types.ts"),o=n("./src/common/util/regexhelper.ts"),u=n("./src/common/util/stringhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=i.lt.ht,f=u.zf.B9t,c=u.zf.lUt,y=null,m=void 0,M=parseInt,h=parseFloat,d=!1,l=!0,v=Math.floor,g=Math.abs,p=Math.pow,b=Math.min,F=Number.MAX_VALUE,_="#dot#",w="#group#",D=function(t,r,n){return t.substr(r,n)},H=function(t){return o.$T.qT(t)},N=new e.ResourceManager(e.SR),$=N.getResource.bind(N),k="##################0",S="################",x={1:"+",0:"","-1":"-"},P=4294967295,C=["0","#","?"],A={"\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$"},T=Math.pow(2,48),r.st={yU:function(t){return X(t,a.CultureManager.Fe())},Z6t:function(t){return X(t,a.CultureManager.Fe("invariant"))},L9t:function(t,r,n,e){return n||(n=a.CultureManager.Fe()),O(t,r,n,e)},Ge:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("[.]"),_)),","!==i&&(t=t.replace(H("[,]"),w)),"."!==e&&(t=t.replace(H(_),e)),","!==i&&(t=t.replace(H(w),i))),t},Jf:function(t,r){var n,e,i;return"string"!=typeof t||(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&(t=t.replace(H("["+e+"]"),_)),","!==i&&(t=t.replace(H("["+i+"]"),w)),"."!==e&&(t=t.replace(H(_),".")),","!==i&&(t=t.replace(H(w),","))),t},hUt:function(t,r){var n,e,i;return!("string"==typeof t&&(e=(n=rt(r)).numberDecimalSeparator,i=n.numberGroupSeparator,"."!==e&&"."!==i&&t.indexOf(".")>=0||","!==e&&","!==i&&t.indexOf(",")>=0))},dUt:function(t,r){return h(this.Jf(t,r))},VGt:Q,v0:I,vUt:Y,ukt:K,Jme:J,mUt:nt,gUt:k,pUt:S,E8:et}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var n=Math.max,e=Math.min,i=Number.POSITIVE_INFINITY;function o(t,r){this.bUt=n(4,t||9),this.yUt=n(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function u(t,r,n){if(!n)return r.indexOf(t);for(var e=0;e<r.length;e++)if(n(t,r[e]))return e;return-1}function a(t,r){s(t,0,t.children.length,r,t)}function s(t,r,n,e,o){o||(o=g(null)),o.minX=i,o.minY=i,o.maxX=-i,o.maxY=-i;for(var u=r,a=void 0;u<n;u++)a=t.children[u],f(o,t.leaf?e(a):a);return o}function f(t,r){return t.minX=e(t.minX,r.minX),t.minY=e(t.minY,r.minY),t.maxX=n(t.maxX,r.maxX),t.maxY=n(t.maxY,r.maxY),t}function c(t,r){return t.minX-r.minX}function y(t,r){return t.minY-r.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function M(t){return t.maxX-t.minX+(t.maxY-t.minY)}function h(t,r){return(n(r.maxX,t.maxX)-e(r.minX,t.minX))*(n(r.maxY,t.maxY)-e(r.minY,t.minY))}function d(t,r){var i=n(t.minX,r.minX),o=n(t.minY,r.minY),u=e(t.maxX,r.maxX),a=e(t.maxY,r.maxY);return n(0,u-i)*n(0,a-o)}function l(t,r){return t.minX<=r.minX&&t.minY<=r.minY&&(r.maxX>=0&&r.maxX<=t.maxX||t.minX<0)&&(r.maxY>=0&&r.maxY<=t.maxY||t.minY<0)}function v(t,r){return(-1===t.minY||-1===r.minY||t.minY<=r.maxY&&r.minY<=t.maxY)&&(-1===t.minX||-1===r.minX||t.minX<=r.maxX&&r.minX<=t.maxX)}function g(t){return{children:t,height:1,leaf:!0,minX:i,minY:i,maxX:-i,maxY:-i}}r.rbush=o,o.prototype={all:function(){return this.QP(this.data,[])},search:function(t){var r,n,e,i,o,u=this.data,a=[],s=this.toBBox;if(!v(t,u))return a;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)i=u.children[n],v(t,o=u.leaf?s(i):i)&&(u.leaf?a.push(i):l(t,o)?this.QP(i,a):r.push(i));u=r.pop()}return a},collides:function(t){var r,n,e,i,o,u=this.data,a=this.toBBox;if(!v(t,u))return!1;for(r=[];u;){for(n=0,e=u.children.length;n<e;n++)if(i=u.children[n],v(t,o=u.leaf?a(i):i)){if(u.leaf||l(t,o))return!0;r.push(i)}u=r.pop()}return!1},insert:function(t){return t&&this.Eit(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,r){if(!t)return this;for(var n=this.data,e=this.toBBox(t),i=[],o=[],a,s,f,c;n||i.length;){if(n||(n=i.pop(),s=i[i.length-1],a=o.pop(),c=!0),n.leaf&&-1!==(f=u(t,n.children,r)))return n.children.splice(f,1),i.push(n),this.MUt(i),this;c||n.leaf||!l(n,e)?s?(a++,n=s.children[a],c=!1):n=null:(i.push(n),o.push(a),a=0,s=n,n=n.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var n=[];t;)t.leaf?r.push.apply(r,t.children):n.push.apply(n,t.children),t=n.pop();return r},CUt:function(t,r,n,e){for(var o,u,a,s,f,c,y,M;e.push(r),!r.leaf&&e.length-1!==n;){for(y=M=i,o=0,u=r.children.length;o<u;o++)f=m(a=r.children[o]),(c=h(t,a)-f)<M?(M=c,y=f<y?f:y,s=a):c===M&&f<y&&(y=f,s=a);r=s||r.children[0]}return r},Eit:function(t,r,n){var e=this.toBBox,i=n?t:e(t),o=[],u=this.CUt(i,this.data,r,o);for(u.children.push(t),f(u,i);r>=0&&o[r].children.length>this.bUt;)this.SUt(o,r),r--;this.TUt(i,o,r)},SUt:function(t,r){var n,e,i=t[r],o=i.children.length,u=this.yUt;this.AUt(i,u,o),n=this.IUt(i,u,o),(e=g(i.children.splice(n,i.children.length-n))).height=i.height,e.leaf=i.leaf,a(i,this.toBBox),a(e,this.toBBox),r?t[r-1].children.push(e):this.xUt(i,e)},xUt:function(t,r){this.data=g([t,r]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},IUt:function(t,r,n){var e,o,u,a,f,c,y,M;for(c=y=i,e=r;e<=n-r;e++)a=d(o=s(t,0,e,this.toBBox),u=s(t,e,n,this.toBBox)),f=m(o)+m(u),a<c?(c=a,M=e,y=f<y?f:y):a===c&&f<y&&(y=f,M=e);return M},AUt:function(t,r,n){var e=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:y,o,u;this.NUt(t,r,n,e)<this.NUt(t,r,n,i)&&t.children.sort(e)},NUt:function(t,r,n,e){t.children.sort(e);var i=this.toBBox,o=s(t,0,r,i),u=s(t,n-r,n,i),a=M(o)+M(u),c,y;for(c=r;c<n-r;c++)y=t.children[c],f(o,t.leaf?i(y):y),a+=M(o);for(c=n-r-1;c>=r;c--)y=t.children[c],f(u,t.leaf?i(y):y),a+=M(u);return a},TUt:function(t,r,n){for(var e=n;e>=0;e--)f(r[e],t)},MUt:function(t){for(var r=t.length-1,n=void 0;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children).splice(n.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},wUt:function(t){var r=["return a"," - b",";"];this.compareMinX=new Function("a","b",r.join(t[0])),this.compareMinY=new Function("a","b",r.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,r,n){var e,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,e=n("./src/common/util/stringhelper.ts"),i=!0,o="empty",u=function(){function t(){}return t.bue=function(r,n){var e;if(n&&t.yue[n]&&t.yue[n][r])e=t.yue[n][r];else try{null==n?(e=new RegExp(r),n=o):e=new RegExp(r,n),t.yue[n]||(t.yue[n]={}),t.yue[n][r]=e}catch(t){return null}return e.lastIndex=0,e},t.qT=function(r){var n=t.kUt[r];return n||(n=t.kUt[r]=new RegExp(r,"g")),n.lastIndex=0,n},t.OJ=function(r){var n=t.DUt[r];return n||(n=t.DUt[r]=new RegExp(r,"gi")),n.lastIndex=0,n},t.jJ=function(r,n,e){var o,u,a,s,f,c;if(t._Ut[r])return t.EUt[r];if(o=n?"[?*]+":"[~?*]+",t.qT(o).test(r)){for(u=[],a=r.split(""),s=void 0,f={".":i,"+":i,$:i,"^":i,"[":i,"]":i,"(":i,")":i,"{":i,"}":i,"|":i,"/":i,"\\":i},c=0;c<a.length;c++)if("~"===(s=a[c])){if(!(c<a.length-1))break;"*"!==(s=a[++c])&&"?"!==s||u.push("\\"),u.push(s)}else"?"===s?u.push("."):"*"===s?(u.push("[\\s\\S]"),e?u.push("+"):u.push("*")):f[s]?(u.push("\\"),u.push(s)):u.push(s);return u.join("")}return null},t.tbt=function(r,n,e){var i=t.jJ(r,n,e);return i&&(i="^"+i+"$"),i},t.jUt=function(t,r){for(var n="#"+t+"0#",i=1;r.indexOf(n)>0;)n=e.zf.qS(n,"#"+t+(i-1)+"#","#"+t+i+"#"),i++;return n},t.D9t=function(t){return t.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},t.kUt={},t.DUt={},t.yue={},t._Ut={},t.EUt={},t}(),r.$T=u},"./src/common/util/stringhelper.ts":function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.zf=void 0;var e=n("./src/common/util/regexhelper.ts");function i(t,r,n){return t.substr(r,n)}function o(t){return null==t}function u(t,r,n,e){var i,u;if(o(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,u=r,n&&(i=i.toLowerCase(),u=u.toLowerCase()),e(i,u))}r.zf={OS:function(t,r,n){return n&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||t.indexOf(r)>=0},hD:function(t,r,n){var e,i;return n?(e=t.toLowerCase(),i=r.toLowerCase(),e.indexOf(i)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var n=t;i(n,0,r.length)===r;)n=i(n,r.length);return n},s6t:function(t,r){if(!r)return t;for(var n=t;i(n,n.length-r.length,r.length)===r;)n=i(n,0,n.length-r.length);return n},Eit:function(t,r,n){var e,u;if(r<0||r>t.length||o(n))throw new Error;return(e=i(t,0,r))+n+(u=i(t,r,t.length-r))},VP:function(t,r,n){var e,u;if(o(n)&&(n=t.length-r),r<0||n<0||r+n>t.length)throw new Error;return(e=i(t,0,r))+(u=i(t,r+n,t.length-r-n))},fJ:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(0,r.length)===r}))},dT:function(t,r,n){return void 0===n&&(n=!1),u(t,r,n,(function(t,r){return t.slice(-r.length)===r}))},Vi:function(t,r,n,e){if(!r)throw new Error;return n=(""+n).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(e?"i":"")),n)},OUt:function(t,n,i,o){return n=e.$T.D9t(n),r.zf.Vi(t,n,i,o)},gmt:function(t,r){var n=t.indexOf(r);return n<0||n>=t.length?t:i(t,0,n)},DU:function(t,r){for(var n=0,e=t.indexOf(r);e>=0;)n+=1,e=t.indexOf(r,e+1);return n},qS:function(t,r,n){return t.split(r).join(n)},I5:function(t,r){var n,e,i=t;for(n=0;n<r.length;n++)e=new RegExp("\\{"+n+"\\}","g"),i=i.replace(e,r[n]);return i},RUt:function(t,r,n){var e,i=t.toString();for(e=i.length;e<r;e++)i=n?"0"+i:i+"0";return i},B9t:function(t,n){return r.zf.RUt(t,n,!0)},lUt:function(t,n){return r.zf.RUt(t,n,!1)},Dbt:function(t,r){return t===r||!t&&!r||t&&r&&t.toLowerCase()===r.toLowerCase()},Gmt:function(t){return t.toUpperCase()},j0:function(t){var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},n=e.$T.qT("(?:&|<|>|\"|'|`)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},dI:function(t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},n=e.$T.qT("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return n.test(t)?t.replace(n,(function(t){return r[t]})):t},TY:function(t){for(var r=t,n=/javascript:/gi;r.match(n);)r=r.replace(n,"");return r}}},"./src/common/util/types.ts":function(t,r){var n,e;Object.defineProperty(r,"__esModule",{value:!0}),r.lt=void 0,n="undefined"!=typeof window?window.File:null,e="undefined"!=typeof window?window.Blob:null,r.lt={BUt:null,y0:function(t,n){var e,i,o,u;if(r.lt.Gh(t))for(i=0,o=t.length;i<o&&!1!==(e=n.call(t[i],i,t[i]));i++);else for(u in t)if(t.hasOwnProperty(u)&&!1===(e=n.call(t[u],u,t[u])))break;return t},_h:function(t){return!t||"object"==typeof t&&0===Object.keys(t).length},Eh:function(t){return"function"===r.lt.Oh(t)},Nh:function(t){return Array.isArray?Array.isArray(t):"array"===r.lt.Oh(t)},jh:function(t){return r.lt.OMt(t)&&(t=parseFloat(t)),!isNaN(t)&&isFinite(t)},OMt:function(t){return"string"==typeof t},Oh:function(t){var n,e,i,o,u,a;if(null===t)return"null";if(!(n=r.lt.BUt))for(n=r.lt.BUt={},i=0,o=(e=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;i<o;i++)n["[object "+e[i]+"]"]=e[i].toLowerCase();return u=n.toString,"object"===(a=typeof t)||"function"===a?n[u.call(t)]||"object":a},Rh:function(t,n,e){var i,o;if(n){if(o=[].indexOf)return o.call(n,t,e);for(i=n.length,r.lt.ht(e)&&(e=0),e=e<0?Math.max(0,i+e):e;e<i;e++)if(e in n&&n[e]===t)return e}return-1},Bh:function(t,r){var n=r.length,e=t.length,i=0;if("number"==typeof n)for(;i<n;i++)t[e]=r[i],e++;else for(;void 0!==r[i];)t[e]=r[i],e++,i++;return t.length=e,t},Lh:function(t,n,e){var i,o,u,a,s=[];if(r.lt.Gh(t))for(o=0,u=t.length;o<u;o++)null!==(i=n(t[o],o,e))&&(s[s.length]=i);else for(a in a=void 0,t)t.hasOwnProperty(a)&&null!==(i=n(t[a],a,e))&&(s[s.length]=i);return s.concat([])},Dh:function(){var t,n,e,i,o,u,a,s,f,c,y,m=[];for(t=0;t<arguments.length;t++)m[t]=arguments[t];for(s=m[0]||{},f=1,c=m.length,y=!1,"boolean"==typeof s&&(y=s,s=m[1]||{},f=2),"object"==typeof s||r.lt.Eh(s)||(s={}),c===f&&(s=this,--f);f<c;f++)if(u=m[f],!r.lt.ht(u))for(o in u)n=s[o],s!==(i=u[o])&&(e=r.lt.Nh(i),y&&i&&(r.lt.Ph(i)||e)?(a=e?n&&r.lt.Nh(n)?n:[]:n&&r.lt.Ph(n)?n:{},s[o]=r.lt.Dh(y,a,i)):void 0!==i&&(s[o]=i));return s},Fh:function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);function e(){this.constructor=t}e.prototype=r.prototype,t.prototype=new e},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var n,e;if(!t||"object"!==r.lt.Oh(t)||t.nodeType||r.lt.Uh(t))return!1;n={}.hasOwnProperty;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)},Gh:function(t){if(r.lt.ht(t))return!1;var n=t.length,e=r.lt.Oh(t);return!r.lt.Uh(t)&&(!(1!==t.nodeType||!n)||("array"===e||"function"!==e&&(0===n||"number"==typeof n&&n>0&&n-1 in t)))},Hh:function(t,n){var e=n||[];return null!==t&&(r.lt.Gh(Object(t))?r.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,i){if(void 0===i&&(i=!0),!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||r.lt.ht(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var o,u,a;if(n&&t instanceof n)return new n([t],t.name,{type:t.type,lastModified:t.lastModified});if(e&&t instanceof e)return new e([t],{type:t.type});for(u in o=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(u)&&(a=t[u],t.hasOwnProperty(u)&&o[u]!==a&&(o[u]="object"==typeof a?r.lt.tv(a):a));return i&&(o.toString=t.toString,o.valueOf=t.valueOf),o}}},"./src/common/util/util.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_Separator=r.Exp_InvalidCast=r.Exp_InvalidNumberFormat=r.Exp_BadFormatSpecifier=r.Exp_InvalidNumberGroupSize=r.Exp_InvalidSemicolons=r.Exp_InvalidExponentFormat=r.Exp_InvalidDateFormat=void 0,r.Exp_InvalidDateFormat="Invalid date format pattern",r.Exp_InvalidExponentFormat="invalid exponent format",r.Exp_InvalidSemicolons="invalid format : too many semicolons",r.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",r.Exp_BadFormatSpecifier="Bad Format Specifier",r.Exp_InvalidNumberFormat="Invalid number format pattern",r.Exp_InvalidCast="InvalidCastException",r.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},"./src/plugins/commands/commands.entry.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,e=n("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return e.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return e.CommandManager}}),i=n("./src/plugins/commands/undomanager.ts"),Object.defineProperty(r,"UndoManager",{enumerable:!0,get:function(){return i.UndoManager}})},"./src/plugins/commands/commands.ts":function(t,r){var n,e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.CommandManager=r.Key=void 0,function(t){t[t.left=37]="left",t[t.right=39]="right",t[t.up=38]="up",t[t.down=40]="down",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.shift=16]="shift",t[t.ctrl=17]="ctrl",t[t.space=32]="space",t[t.altkey=18]="altkey",t[t.home=36]="home",t[t.end=35]="end",t[t.pup=33]="pup",t[t.pdn=34]="pdn",t[t.backspace=8]="backspace",t[t.del=46]="del",t[t.esc=27]="esc",t[t.a=65]="a",t[t.c=67]="c",t[t.v=86]="v",t[t.x=88]="x",t[t.z=90]="z",t[t.y=89]="y"}(n=r.Key||(r.Key={})),e=function(){function t(t,r,n){var e,i;this.jS=t,this.LUt=r,this.Zc=n,e=this,Object.defineProperty(e,"shortcutKey",{get:function(){return e.FUt},set:function(t){var r,n,o=e.FUt;o!==t&&((r=(i=e.jS.PUt)[o])&&(n=r.indexOf(e))>=0&&r.splice(n,1),e.FUt=t,t&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,e)))}})}return t.prototype.canUndo=function(){var t;return this.LUt.canUndo},t.prototype.execute=function(t,r,n){var e,i,o,u,a,s=this,f=!0,c=!0;if(s.LUt&&r&&(o={command:r,result:i,vM:n,actionType:n,metaData:null===(e=s.LUt)||void 0===e?void 0:e.metaData,r:null,isBefore:!0},s.jS.MGr(o),o.r&&(c=!1,i=!1)),c){try{f=!1!==(i=(u=s.LUt.execute||s.LUt)(t,r,1===n))}catch(t){f=!1}r&&f&&s.jS.HUt({command:s.Zro(r),result:i,vM:n,actionType:n})}return s.jS&&r&&(a={command:r,result:i,vM:n,actionType:n,isBefore:!1},s.jS.MGr(a)),i},t.prototype.Zro=function(t){return t&&!t.cmd&&(t.cmd=this.Zc),t},t}(),i=function(){function t(t){this.DJ=t,this.aT={},this.GUt={},this.yGr={},this.PUt={}}return t.prototype.register=function(t,r,n,i,o,u,a){var s=this,f=new e(s,r,t);s[t]=f,n&&(f.shortcutKey=s.getShortcutKey(n,i,o,u,a))},t.prototype.getCommand=function(t){return this[t]},t.prototype.execute=function(t){var r=this[t.cmd];if(r)return r.execute(this.DJ,t,0)},t.prototype.setShortcutKey=function(t,r,n,e,i,o){var u,a,s,f,c=this;if(t)(u=c[t])&&(u.shortcutKey=c.getShortcutKey(r,n,e,i,o));else if(a=c.getShortcutKey(r,n,e,i,o),s=c.getCommands(a))for(f=s.length-1;f>=0;f--)s[f].shortcutKey=void 0},t.prototype.getShortcutKey=function(t,r,e,i,o){if(t){var u="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):n[t];return u||(u=t),u+(r?"+ctrl":"")+(e?"+shift":"")+(i?"+alt":"")+(o?"+window":"")}},t.prototype.getCommands=function(t){return this.PUt[t]},t.prototype.addListener=function(t,r){this.aT[t]=r},t.prototype.removeListener=function(t){delete this.aT[t]},t.prototype.HUt=function(t){var r,n=this.aT;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.cM=function(t,r){this.GUt[t]=r},t.prototype.zUt=function(t){delete this.GUt[t]},t.prototype.MGr=function(t){var r,n=this.GUt;for(r in n)n.hasOwnProperty(r)&&n[r](t)},t.prototype.L0=function(){this.DJ=null},t}(),r.CommandManager=i},"./src/plugins/commands/undomanager.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=void 0;var n=function(){function t(t,r,n){var e=this;e.DJ=t,r<0&&(r=2147483647),e.VUt=r,e.Hw=n,e.Nmt=[],e.kmt=[],e.YUt=!1}return t.prototype.dM=function(t,r){var n,e,i,o=this;if(t){if(1===r)o.kmt.push(t);else{if(n=o.VUt,e=o.Nmt.length,n>0&&e>=n)for(i=0;i<e-n+1;i++)o.Nmt.shift();o.Nmt.push(t),0===r&&(o.kmt=[])}o.YUt=!0}},t.prototype.canUndo=function(){return this.Nmt.length>0},t.prototype.undo=function(){var t,r,n=this,e=n.Nmt,i=!0;if(n.Hw&&n.canUndo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,1))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.kmt.push(t))}return i},t.prototype.canRedo=function(){return this.kmt.length>0},t.prototype.redo=function(){var t,r,n=this,e=n.kmt,i=!0;if(n.Hw&&n.canRedo()){t=e[e.length-1];try{(r=n.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(n.DJ,t,2))}catch(t){i=!1}delete t.hM,!1!==i&&(e.pop(),n.YUt=!0,n.Nmt.push(t))}return i},t.prototype.getRedoStack=function(){return this.kmt.slice()},t.prototype.getUndoStack=function(){return this.Nmt.slice()},t.prototype.maxSize=function(t){var r=this;return arguments.length<1?r.VUt:(t>=0&&(r.VUt=t),r)},t.prototype.clear=function(){this.Nmt=[],this.kmt=[]},t.prototype.aL=function(t){this.Nmt=this.Nmt.filter(t),this.kmt=this.kmt.filter(t)},t.prototype.L0=function(){this.DJ=null},t.prototype.setNewChangeStatus=function(t){this.YUt=t},t.prototype.getNewChangeStatus=function(){return this.YUt},t}();r.UndoManager=n},"./src/plugins/formatter/formatter.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/formatter/formatter.ts"),r)},"./src/plugins/formatter/formatter.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Exp_InvalidCast=r.Exp_ValueIllegal=r.Exp_TokenIllegal=r.Exp_DuplicatedDescriptor=r.Exp_ValueIsNull=r.Exp_FormatIllegal=r.Exp_InvalidBackslash=r.Exp_TokenIsNull=void 0,r.Exp_TokenIsNull="token is null",r.Exp_InvalidBackslash="the '\\' cannot be evaluated",r.Exp_FormatIllegal="format is illegal.",r.Exp_ValueIsNull="value is null",r.Exp_DuplicatedDescriptor="The type of descriptor was added.",r.Exp_TokenIllegal="token is illegal.",r.Exp_ValueIllegal="value is illegal.",r.Exp_InvalidCast="InvalidCastException"},"./src/plugins/formatter/formatter.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut=this&&this.qKr||(at=function(t,r){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},at(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}at(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),at;function st(t,r,n){return t.substr(r,n)}function ft(t){return o.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function ct(t,r){if("\\"===t[r])throw new Error(M().Exp_InvalidBackslash);if(r-1>0&&r-1<t.length&&"\\"===t[r-1]){if(r-2<0)return!0;if(r-2>0&&r-2<t.length)return"\\"!==t[r-2]}return!1}function yt(t){if(!t)throw new Error(M().Exp_TokenIsNull);return"["+t+"]"}function mt(t){var r,n,e,i,o;if(t===l||t===d||""===t)return t;for(r="",n=0,e=!1,i=0;i<t.length;i++)'"'===(o=t[i])?(e=!e,r+=o):e?r+=o:"["===o?n++:"]"===o?--n<0&&(n=0):0===n&&(r+=o);return r.toString()}function Mt(t){return t=ht(t,"[",""),ht(t,"]","")}function ht(t,r,n){return!t||t===K.oHt||lt(r,n,!0)?t:(r=r.replace(D,"\\$1"),t.replace(new RegExp(r,"g"),n))}function dt(t){var r,n,e=t.length,i=!1,o="";for(r=0;r<e;r++)"\\"===(n=t.charAt(r))?(i=!i)&&"@"!==t.charAt(r+1)||(o+=n):(i=!1,o+=n);return o}function lt(t,r,n){return n?B(t)===B(r):t===r}function vt(t,r){var n,e,i,o;for(1===arguments.length&&(r=!0),n=!1,e="",i=0;i<t.length;i++){if('"'===(o=t[i]))n=!n;else if(!n&&!r&&"/"===o&&!ct(t,i))continue;e+=o}return e}function gt(t){var r,n,e,i="",o=!1;for(r=0,n=t.length;r<n;r++)'"'===(e=t[r])&&(o=!o),"E"===e||o||(i+=B(e));return i}function pt(t,r){var n,e,i,o;if(!t||t===K.oHt)return!1;for(e=gt(n=vt(t)),i=0;i<r.length;i++)if(0===(o=e.indexOf(r[i]))||o>0&&"_"!==e[o-1]&&"*"!==e[o-1])return!0;return!1}function bt(t,r,n,e){this.j9t=t,this.aHt=r,this.cultureName=n,this.O9t=e}function Ft(t){this.Nat=t}function _t(t){var r,n,i=Mt(t);return i&&i!==K.oHt?(n=i[0],["<",">","="].indexOf(n)>-1?(r=q).Name="ConditionalFormatPart":e.zf.fJ(i,"DBNum",!0)?(r=Y).Name="DBNumberFormatPart":lt(i[0],h,!1)&&i.indexOf("-")>-1?(r=W).Name="LocaleIDFormatPart":Dt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(h)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function wt(t,r){var n,e=!1;return pt(t=t?t.toString():K.oHt,["general"])?n=rt:X.a0(t)?n=X:pt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(e=!0,n=tt):(e=!0,n=nt),{uHt:e,_type:n}}function Dt(t){var r,n=B(t),e=n[0];if("h"!==e&&"m"!==e&&"s"!==e)return!1;for(r=1;r<n.length;r++)if(e!==n[r])return!1;return!0}function Ht(t,r,n){var e,i;return e=t?t.cultureInfo():E(n),(r<4||4===r&&("ko-kr"===n||"ko-kr"===e.name()))&&(i=e.NumberFormat.dbNumber)?i[r]:d}function Nt(t,r,n,e,o){var u,a=t;if(!O(e)&&r instanceof Date){if(!(u=Ht(n,e.type,o)))return t;a=e.sHt(a,u,!0),1===e.type&&(a=a.replace(new RegExp(b,"g"),F)),a=(a=a.replace("@"+g.cHt,i.ct.Pe(r,g.cHt))).replace("@"+g.fHt,i.ct.Pe(r,g.fHt)),a=e.sHt(a,u,!1)}return a}function $t(t,r,n,e,i){var o,u,a,s,f,c,y;if(!O(e)&&(o=Ht(n,e.type,i),!O(o))){for(u=!1,a=void 0,s=E(i),f=void 0,c=0,y=t.length;c<y;c++)"decimalSeparator"===t[c].type&&(u=!0,t[c].value=e.sHt(t[c].value,o,r),a=t[c].value),"number"===t[c].type&&(t[c].value=u?e.sHt(a+t[c].value,o,r).slice(1):e.sHt(t[c].value,o,r),"ja-JP"===s.name()&&t[c].value.length>1&&("\u4e00\u5343"!==(f=t[c].value.substr(0,2))&&"\u4e00\u767e"!==f&&"\u4e00\u5341"!==f||(t[c].value=t[c].value.substr(1))));return t}return t}function kt(t){var r,n=[],e=0,i=0,o=t.length;for(r=0;r<o;r++)"_"===t[r]?e++:(";"!==t[r]||0!==e&&e%2!=0||(n.push(t.substring(i,r)),i=r+1),e=0);return i<=o&&n.push(t.substring(i,o)),n}function St(t){var r,n,e=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!O(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},f=function(r,n){if(s(r)){for(var i=r,o=t[n+1];s(o)&&o.toLowerCase()===r.toLowerCase()&&(i+=o,n<t.length-1);)n++,o=t[n+1];e.push(a("symbolic",i))}else"a"===r&&"aaa"===t.slice(n,n+3).toLowerCase()?(e.push(a("symbolic",t.slice(n,n+3))),n+=2):e.push(a("text",r));return n};for(r=0;r<t.length;r++)if(n=t[r],i)e.push(a("text","\\"+n)),i=!1;else if(o&&'"'!==n)u+=n;else switch(n){case"\\":i=!0;break;case'"':o&&(e.push(a("text",'"'+u+'"')),u=""),o=!o;break;default:r=f(n,r)}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralFormatter=r.Hf=r.FormatterBase=void 0,e=n("./src/common/util/stringhelper.ts"),i=n("./src/common/util/datetimehelper.ts"),o=n("./src/common/util/types.ts"),u=n("./src/common/util/numberhelper.ts"),a=n("./src/common/culture/cultureInfo.ts"),s=n("./src/common/util/common.ts"),f=n("./src/plugins/formatter/formatter.res.en.ts"),c=n("./src/plugins/formatter/formatterGrammar/lexer.ts"),y=n("./src/plugins/formatter/formatterGrammar/parser.ts"),o.lt.Dh(s.SR.en,f),m=new s.ResourceManager(s.SR),M=m.getResource.bind(m),h="$",o.lt.dt=function(t,r){if(o.lt.ht(t))return"null"===r;if(!r)return!1;if(r instanceof Function&&t instanceof r)return!0;if(typeof t===r)return!0;if("function"===r&&/^\s*\bfunction\b/.test(""+t))return!0;if(Object.prototype.toString.call(t).slice(8,-1).toLowerCase()===r.toLowerCase())return!0;if("DateTime"===r)return t instanceof Date;if("TimeSpan"===r){if(t instanceof Date){var n=i.ct.o0(t);return n>=0&&n<1}return!1}return"string"==typeof r&&"undefined number boolean string".indexOf(r),!1},o.lt.q8=function(t,r){return!!u.st.hUt(t,r)&&(("string"!=typeof t||-1===t.search(/[\r\n\t]/g))&&(t=u.st.Jf(t,r),o.lt.dt(t,"number")||o.lt.dt(t,"DateTime")||o.lt.dt(t,"TimeSpan")||t&&!o.lt.dt(t,"boolean")&&!isNaN(t)&&!isNaN(parseFloat(t))&&!(t.length>=2&&"0"===t[0]&&"x"===t[1])))},o.lt.uJ=function(t){return o.lt.ht(t)||""===t?0:o.lt.dt(t,"number")?t:o.lt.dt(t,"string")&&!isNaN(t)?u.st.yU(t):o.lt.dt(t,"boolean")?t?1:0:o.lt.dt(t,"DateTime")?i.ct.o0(t):o.lt.dt(t,"TimeSpan")?Math.floor(i.ct.o0(t)):parseFloat(t)},d=null,l=void 0,v=Math.abs,g={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)},p=[g.hHt,g.fHt,g.cHt,g.dHt,g.vHt,g.mHt,g.gHt,g.pHt,g.bHt,g.yHt,g.wHt,g.MHt,g.CHt,g.SHt,g.THt,g.AHt,g.IHt,g.xHt,"ggg","gg","g","ee","e"],b="\u4e00\u5341",F="\u5341",_={EHt:0,jHt:1,OHt:2,_text:3},w=[{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}],D=new RegExp("([.+?*$^\\[\\](){}|/])","g"),H=[["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"]],N=["#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"],$=new RegExp("color\\s*(\\d+)","i"),k=o.lt.dt,S=o.lt.Nh,x=u.st,P=x.gUt+"."+x.pUt,C=x.mUt,A=x.L9t,T=x.E8,O=o.lt.ht,j=isNaN,E=function(t){return a.CultureManager.Fe(t)},R=function(t){return E(t).DateTimeFormat},I=function(t){return E(t).NumberFormat},B=function(t){return t&&t.toLowerCase()},L=function(t){return t&&t.toUpperCase()},G=function(){throw new Error(M().Exp_FormatIllegal)},z=function(){return a.CultureManager.booleanMapping},K={oHt:"",I5:function(){var t,r,n,e,i,o,u=[];for(t=0;t<arguments.length;t++)u[t]=arguments[t];for(r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return d;for(e=r[0],i=1;i<arguments.length;i++)o=new RegExp("\\{"+(i-1)+"\\}","gm"),e=e.replace(o,arguments[i]);return e},Ji:function(t){return!t||t===K.oHt}},J=function(t){var r=t.charCodeAt(0);return r>=48&&r<=57},V=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},W=function(){function t(t,r){var n,i,o,u;if(Ft.call(this,r),(n=this).Jq=t,o=lt((i=n.Jq)[0],h,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(M().Exp_TokenIllegal);n.ZUt=st(i,1,u-1),(i=e.zf.VP(i,0,u+1)).length>0&&(n.Iat=parseInt(i,16))}return t.prototype.cultureInfo=function(){var t=this;return t.RHt||(t.RHt=E(t.Iat)),t.RHt},t.prototype.currencySymbol=function(){return this.ZUt?e.zf.Vi(this.ZUt,"\\.",'"."'):K.oHt},t.prototype.allowScience=function(){if(this.RHt)return!this.RHt.isJCKCulture},t.prototype.toString=function(){return this.Jq?yt(this.Jq):K.oHt},t.Name="LocaleIDFormatPart",t}(),U=function(){function t(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}return t.prototype.format=function(t,r){return d},t.prototype.parse=function(t){return d},t.prototype.formatString=function(t){return this.formatCached},t.prototype.toJSON=function(){var t,r={};for(t in this)this.hasOwnProperty(t)&&(r[t]=this[t]);return r},t.prototype.fromJSON=function(t){if(t)for(var r in t)t[r]!==l&&(this[r]=t[r])},t}(),r.FormatterBase=U,q=function(){function t(t,r){var n,i,o,u,a,s,f,c;for(Ft.call(this,r),n=this,s=0,f=(a=["<=","<>",">=",">","<","="]).length;s<f;s++)if(i=a[s],e.zf.fJ(t,i,!0)){o=e.zf.VP(t,0,i.length),c=parseFloat(o),j(c)||(u=c);break}if(u===d&&u===l)throw new Error(M().Exp_TokenIllegal);n.value=u,n.WUt=i,n.isMeetCondition=function(t){var r=n.WUt,e=n.value;switch(r){case"<=":return t<=e;case"<>":return t!==e;case">=":return t>=e;case">":return t>e;case"<":return t<e;case"=":return t===e}}}return t.prototype.toString=function(){return yt(this.WUt+this.value.toString())},t}(),Y=function(){function t(t,r){Ft.call(this,r);var n=this;if(n.token=t,n.type=parseInt(e.zf.VP(t,0,5),10),n.type<0||n.type>4)throw new Error(M().Exp_TokenIllegal)}return t.prototype.sHt=function(r,n,i){var o,u,a,s,f,c,y,m,M,h;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,f=!1,M=r.length-1;M>=0;M--)h=u[M],!j(h)&&!lt(h," ",!1)||lt(h,".",!1)&&!f?(lt(h,".",!1)&&(f=!0),-1===a&&(a=M),s=M):s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m)),a=-1,s=-1,f=!1);return s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),j(y)||(m=t.numberString(c,n,i),o=e.zf.VP(o,s,a-s+1),o=e.zf.Eit(o,s,m))),o},t.prototype.toString=function(){if(this.type>-1)return yt("DBNum"+this.type);throw new Error},t.numberString=function(r,n,e){var i,o,u=t.formatNumberString,a=r.split(".");if(a){if(1===a.length)return u(a[0],n.numbers,e?n.letters:d);if(2===a.length)return(i=u(a[0],n.numbers,e?n.letters:d))+"."+(o=u(a[1],n.numbers))}throw new Error(M().Exp_ValueIllegal)},t.formatNumberString=function(r,n,e){var i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p=r,b=0,F=0;if(2===arguments.length){for(o="";b<p.length;b++)i=st(p,b,1),o+=n[F=parseInt(i,10)];return o}if(3===arguments.length){if(!e)return t.formatNumberString(r,n);for(u=0,a="",s=p.length,f=!1,c=[];b<s;b++)(y=e.length-1-b)>-1?c.push(e[y].toString()):c.push(K.oHt);for(m=[],M=c.length-1;M>=0;M--)m[c.length-M-1]=c[M];for(c=m,h=!1,M=0;M<s;M++)i=st(p,M,1),F=parseInt(i,10),d=void 0,l=K.oHt,s-M-16>0?(d=n[F],l="",h=!0):M!==s-1&&M!==s-5&&M!==s-9&&M!==s-13?"0"===i?(d="",l="",u+=1):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[M],u=0):(d=n[F],l=c[M],u=0):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[M],u=0):"0"!==i&&0===u||h?(d=n[F],l=c[M],u=0,h=!1):"0"===i&&u>=3?(d="",l="",u+=1):s>=11?(d="",u+=1):(d="",l=c[M],u+=1),(v=d+l===K.oHt)||(f=!1),M!==s-13||f||(l=c[M],f=!0),M!==s-9||f||(l=c[M],f=!0),M===s-1&&(l=c[M],f=!0),a=a+d+l;return 0===(g=parseInt(r,10))?n[0]:a}},t}(),X=function(){function t(t,r,n,e,i,o){bt.call(this,r,n,e,o);var u=this;u.pU=u.QUt(vt(t)),u.KUt=i,u.JUt=2,u.Hc()}return t.prototype.Hc=function(){var r,n,e,i,o=this,u={y4:o.pU},a=t;if(a.a0(u.y4)){if(r=o.BHt(u),n=R(this.cultureName).amDesignator&&R(this.cultureName).pmDesignator,o.hasJD=o.Vi(u.y4,g.pHt,'"'+g.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,g.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,g.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,g.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,g.MHt,"dddd",!0,!0,u,!0),r&&n||(o.Vi(u.y4,g.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,g.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||E(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,g.cHt,'"@'+g.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,g.fHt,'"@'+g.fHt+'"',!0,!1,u,!0)),o.KUt)for(e=0;e<o.KUt.length;e++)i=o.KUt[e],o.Vi(u.y4,i.Nat,"@"+i.Nat,!0,!0,u,!0);o.PHt=u.y4}else G()},t.prototype.formatString=function(){return this.pU},t.prototype.format=function(t){var r,n,o,u,a,s,f,c,y=this,m=K.oHt,M=d;try{if((M=i.ct._DT(t))&&j(M.valueOf())&&(M=d),M?t=M:m=t.toString(),M&&(m=i.ct.L9t(M,y.PHt,y.j9t&&y.j9t.cultureInfo()||E(y.cultureName),y.O9t),y.hasJD&&(r=E(y.cultureName).DateTimeFormat.monthNames[M.getMonth()],m=e.zf.Vi(m,g.DHt,st(r,0,1))),y.KUt))for(n=24*(i.ct.o0(M)-i.ct.o0(g._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(n),O(a)||(s=u.Nat.replace("[","\\[").replace("]","\\]"),f=u.Nat.replace("[","").replace("]",""),c=e.zf.B9t(a+"",f.length),m=e.zf.Vi(m,"@"+s,c))}catch(r){m=ft(t)}return Nt(m,t,y.j9t,y.aHt,y.cultureName)},t.prototype.parse=function(t){var r,n,e,o,u;if(!t||t===K.oHt)return d;if(r=this,"true"===(e=B(n=t)))return!0;if("false"===e)return!1;if(r.PHt&&(o=i.ct.nUt(n,r.PHt,E(r.cultureName))))return o;try{return(u=i.ct._DT(n))&&!j(u)?u:(u=new Date(n),j(u.valueOf())?n:u)}catch(t){return n}},t.prototype.QUt=function(t){var r,n,e,i=t,o="",u=!1;for(r=0;r<i.length;r++)'"'===(n=i[r])?u=!u:u||("Y"===n||"D"===n||"S"===n||"E"===n||"G"===n?n=B(n):"M"===n&&(lt("A",e=i[r-1],!0)||lt("P",e,!0)||(n=B(n)))),o+=n;return o},t.prototype.BHt=function(t){var r,n,i,o=R(this.cultureName).amDesignator,u=R(this.cultureName).pmDesignator,a=[g.NHt];for(o&&u?a.push(o+"/"+u):a.push(g.NHt),a.push(g.kHt),r=["tt","tt","t"],n=t.y4,i=0;i<3;i++){if(e.zf.OS(n,r[i]))return!0;if(e.zf.OS(n,a[i],!0))return t.y4=e.zf.Vi(n,a[i],r[i],!0),!0}return!1},t.prototype.LHt=function(t,r){var n,e,i=St(t),o=-1,u=-1;for(n=0;n<i.length;n++)"symbolic"===(e=i[n]).type?"m"===e.content[0].toLowerCase()?o>=0?(e.content=e.content.toLowerCase(),o=-1):(e.content=e.content.toUpperCase(),u=n):"s"===e.content[0].toLowerCase()?u>=0&&(i[u].content=i[u].content.toLowerCase(),u=-1):"h"===e.content[0].toLowerCase()?(o=n,u=-1):u=-1:u>=0&&n>0&&"0"===e.content&&"."===i[n-1].content&&n===u+2&&(i[u].content=i[u].content.toLowerCase());r.y4=i.map((function(t){return t.content})).join("")},t.prototype.Vi=function(r,n,i,o,u,a,s){var f,c,y,m,M,h,d,l,v,g,p;if(o||u){for(f=[],c=!0,!t.hasDate(r)&&t.hasTime(r)&&(c=!1),y=!1,m=0;m<r.length;m++){if(M=r[m],t.hasTime(M)&&!y?c=!1:t.hasDate(M)&&!y&&(c=!0),o&&lt(M,n[0],s)&&c||u&&lt(M,n[0],s)&&!c){for(h=!0,d=0;d<n.length;d++)if(d+m>=r.length||!lt(n[d],r[d+m],s)){h=!1;break}if(l=m+n.length-1,h&&l+1<r.length){for(v=r[l],g=-1,g=l+1;g<r.length&&lt(v,r[g],s);g++);g>l+1&&(m=g,h=!1)}h&&!y&&f.splice(0,0,m)}'"'===M&&(y=!y)}if(a.y4=r,f.length>0){for(m=0;m<f.length;m++)p=f[m],a.y4=e.zf.VP(a.y4,p,n.length),a.y4=e.zf.Eit(a.y4,p,i);return!0}return!1}return!1},t.hasTime=function(t){return e.zf.hD(t,g.CHt[0],!0)>-1||e.zf.hD(t,g.IHt[0],!0)>-1},t.hasDate=function(t){return e.zf.hD(t,g.fHt[0],!0)>-1||e.zf.hD(t,g.bHt[0],!0)>-1},t.a0=function(t,r){return pt(t,r||p)},t}(),r.Hf=X,Z=function(){function t(t,r){var n,e,i;if(Ft.call(this,r),n=this,"h"===(e=B(t)[0]))i=3600;else if("m"===e)i=60;else{if("s"!==e)throw new Error(M().Exp_TokenIllegal);i=1}n.XUt=function(t){var r=t/1e3/i;return Math.abs(r-Math.round(r))<1e-6?Math.round(r):Math.floor(r)}}return t.Name="ABSTimeFormatPart",t}(),Q=function(){function t(t,r){var n,e;Ft.call(this,r),null!==(n=$.exec(t))&&(e=Number(n[1]),(e-=1)>=0&&e<N.length&&(t=N[e])),this.foreColor=t}return t.prototype.toString=function(){return yt(this.foreColor)},t.Name="ColorFormatPart",t}(),tt=function(){function t(t,r,n,e){var i,o,u,a,s,f;function c(t,r){var n,e,i,o,u,a=[],s='"';if(t===d||""===t)return a;for(n=!1,e=[],i=!1,o=0;o<t.length;o++)(u=t[o])!==s||n||(i=!i),n||i||u!==r?e.push(u):(a.push(e.join("")),e=[]),n="\\"===u&&!n;return a.push(e.join("")),a}bt.call(this,r,n,e),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=ht(o,i.j9t.Nat,i.j9t.currencySymbol())),(u=(o=mt(o)).indexOf("/"))>-1&&(a=c(o,"/"))&&2===a.length&&(i.tHt=a[1],(s=a[0])&&((f=s.lastIndexOf(" "))>-1?(i.nHt=st(s,0,f),i.eHt=st(s,f+1,s.length-f-1)):i.eHt=s)),i.iHt=o}return t.prototype.formatString=function(){return this.$Ut},t.prototype.format=function(r){var n,e,i,u,a,s,f,c,y,m,M,h,l,v,g,p,b,F,_,w,D,H;return k(r,"boolean")?r.toString().toUpperCase():(n=this,e=o.lt.uJ(r),j(e)||!isFinite(e)||j(r)?"string"==typeof r?r:d:(i=E(n.cultureName),n.eHt&&n.tHt?(m={value:0},M={value:0},h={value:0},l=n.GHt(),t.getFraction(e,l,m,M,h)?((v=t.getGCD(M.value,h.value))>1&&(M.value/=v,h.value/=v),n.nHt?(y="",1===h.value&&(m.value+=M.value,M.value=0,h.value=0),(g=C(A(m.value,n.nHt,i)))&&"0"!==g&&(y+=g,y+=" "),0===m.value&&e<0&&(y+=i.NumberFormat.negativeSign),0===e&&(y+="0"),a=n.tHt,s=parseFloat(a),!j(s)&&s>0&&(0!==M.value&&0!==h.value&&(M.value*=s/h.value),h.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),c=(f=Math.ceil(M.value))-M.value,M.value=c<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString())),p=n.eHt,b=parseFloat(p),j(b)||0!==b||((F=p.length)>(w=(_=M.value.toString()).length)?p=p.substr(0,F-(F-w)):F<w&&(_=_.substr(0,w-(w-F)),M.value=parseInt(_,10))),D=n.UHt(M.value,h.value,p,a,i),0===M.value&&(D=D.replace(/./g," "),""===g)?"0 "+D:""===(y+=D)?"0":y):(y="",H=m.value*h.value+M.value,a=n.tHt,(s=parseFloat(a))>0?(H*=s/h.value,h.value=s,y+=(H=(c=(f=Math.ceil(H))-H)<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString()))+"/"+h.value):y+=n.UHt(H,h.value,n.eHt,n.tHt,i),0===H?"0":y)):e.toString()):u=$t(u=A(e,n.iHt,i),n.qUt,n.j9t,n.aHt,n.cultureName)))},t.prototype.parse=function(t){var r,n,i,o,u,a,s,f,c,y,m,M,h,l,g,p=this;if(!t||t===K.oHt)return d;if("TRUE"===(r=L(t))||r===z()&&z().boolean_true)return!0;if("FALSE"===r||r===z()&&z().boolean_false)return!1;if((n="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),i=p.eHt&&p.tHt,o=p.zHt(p.iHt).HHt,(i||o)&&(u=0,i&&p.nHt&&0<(a=(t=t.trim()).lastIndexOf(" "))&&a<t.length-1&&(u=parseInt(t.substr(0,a),10),t=t.substr(a+1)),0<(s=t.indexOf("/"))&&s<t.length-1&&(f=t.substr(0,s),c=t.substr(s+1),!(j(f)||j(c)||(y=parseInt(f,10),m=parseInt(c,10),j(y)||j(m)||0===m)))))return u+y/m;if(t=p.VHt(t),t=p.YHt(t),h=(M=p.zHt(t)).HHt,l=M.$6t,p.ZHt(l)&&(l=e.zf.OUt(l,I(p.cultureName).numberGroupSeparator,"",!1),g=x.dUt(l,p.cultureName),!j(g)&&isFinite(g))){if(h&&(g=T(g/100,15)),n){if("-"===l.charAt(0)||"+"===l.charAt(0))return d;g=-1*v(g)}return g}return d},t.prototype.GHt=function(){var t,r,n=this,e=n.tHt,i=0;if(e)for(t=e.length,r=0;r<t&&e[r].match(/[#?\d]/);r++)i++;return i},t.prototype.ZHt=function(t){var r,n="",e=0,i=0,o=0,u=d,a=I(this.cultureName);for(r=t.length-1;r>-1;r--){if(t[r]===a.numberDecimalSeparator)e++,o>0&&(u=!1),n="";else if("e"===B(t[r])){if(i++,n="",r===t.length-1)return!1}else if(t[r]===a.numberGroupSeparator)u=3===n.length,o++,n="";else if("-"===t[r]||"+"===t[r]){if(r>0&&"e"!==B(t[r-1]))return!1}else{if(!J(t[r]))return!1;if(n+=t[r],0===r&&0===parseInt(n,10)&&u)return!1}if(e>1||i>1||!1===u)return!1}return!0},t.prototype.VHt=function(t){var r,n,i,o,u,a,s,f=t,c=[];for(r=0;r<f.length;r++)J(f[r])&&c.push(r);for(i=[(n=I(this.cultureName)).currencyDecimalSeparator,n.currencyGroupSeparator,n.currencySymbol,h,n.nanSymbol,n.negativeInfinitySymbol,n.negativeSign,n.numberDecimalSeparator,n.numberGroupSeparator,n.percentDecimalSeparator,n.percentGroupSeparator,n.percentSymbol,n.perMilleSymbol,n.positiveInfinitySymbol,n.positiveSign],o=f.length-1;o>-1;o--)if(u=f[o],V(u)&&i.indexOf(u.toString())<=-1)(o<c[0]||c[c.length-1]<o)&&(f=e.zf.VP(f,o,1));else if(("-"===u||"+"===u)&&(a=o>0?f[o-1].toString():d,(s=["e","E","(",I(this.cultureName).currencySymbol,h]).indexOf(a)<0))break;return f},t.prototype.YHt=function(t){var r,n;if(e.zf.fJ(t,h)){if((r=e.zf.VP(t,0,1)).indexOf(h)<0)return r}else if(n=I(this.cultureName).currencySymbol,h!==n&&e.zf.fJ(t,n)&&(r=e.zf.VP(t,0,n.length)).indexOf(n)<0)return r;return t},t.prototype.zHt=function(t){var r=I(this.cultureName).percentSymbol,n=!0,i=t;return e.zf.fJ(t,r)?i=e.zf.VP(t,0,r.length):e.zf.dT(t,r)?i=e.zf.VP(t,t.length-r.length,r.length):n=!1,e.zf.OS(i,r)&&(n=!1),{$6t:i,HHt:n}},t.prototype.UHt=function(t,r,n,e,i){var o=C(A(t,n,i)),u="0."+r,a="#."+e,s=C(A(u,a,i,!0)),f=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",c=o+"/"+s.substr(s.indexOf(f)+1);return""===n&&(c=t+c),""===e&&(c+=r),c},t.getGCD=function(t,r){var n,e,i;if(0===t)return v(r);if(0===r)return v(t);for(i=(n=Math.max(t,r))%(e=Math.min(t,r));0!==i;)i=(n=e)%(e=i);return v(e)},t.getFraction=function(t,r,n,e,i){var o,u,a,s,f,c,y,m,M,h=0,d=0,l=0,g=0,p=Math.ceil;for(t>0?1===(g=t-p(t)+1)?(g=0,h=t):h=p(t)-1:t<0&&(h=p(t),g=p(t)-t),(o=Math.pow(10,r-1))<2&&(o=2),(u=Math.pow(10,r)-1)<2&&(u=2),a=!1,s=0,f=o;f<=u&&(c=f*g,y=Math.round(c),M=v((m=y/f)-g),!((!a||M<v(s-g))&&(a=!0,s=m,d=y,l=f,M<1e-6)));f++);return n.value=h,e.value=d,i.value=l,a},t.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},t}(),rt=function(){function t(r,n,e,i){bt.call(this,n,e,i),arguments.length>0?(t.rHt(r)||G(),this.$Ut=r):this.$Ut="General",this.JUt=0}return t.rHt=function(t){var r,n,e="",i=!1,o=-1,u=t.length;for(r=0;r<u;r++)'"'===(n=t[r])?o=(i=!i)?r:-1:i||(e+=n);return o>0&&(e+=t.substring(o,u)),!(e.indexOf("0")>=0||e.indexOf("#")>=0||e.indexOf(".")>=0||e.indexOf("@")>=0)},t.prototype.WHt=function(){var t,r=this;return r.QHt||(t=ht(t=r.$Ut,"General",P),r.QHt=new tt(t,r.j9t,r.aHt,r.cultureName),r.QHt.qUt=!0),r.QHt},t.prototype.KHt=function(){var t=this;return t.JHt||(t.JHt=new tt("0.#####E+00",t.j9t,t.aHt,t.cultureName),t.JHt.qUt=!0),t.JHt},t.prototype.formatString=function(){return e.zf.Vi(this.$Ut,"@NumberFormat","General")},t.prototype.format=function(t){var r,n,i,u=this;if(o.lt.q8(t,u.cultureName)){if(r=!u.j9t||u.j9t.allowScience(),(n=o.lt.uJ(t))!==l&&n!==d)return v(n)>99999999999&&r||v(n)<1e-11&&0!==n?u.KHt().format(t):u.WHt().format(t)}else{if(k(t,"string"))return i=dt(i=e.zf.Vi(u.formatString(),'"',"")),t;if(k(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,n,o,u,s,f,c,y,m,M,h,g,p,b,F;if(K.Ji(t))return d;if("number"==typeof t)return t;if(r=!1,n=t.trim(),(o=e.zf.hD(n,"-",!1))>0&&!lt(n.charAt(o-1),"E",!0)&&(r=!0),f=(s=(u=E(this.cultureName)).DateTimeFormat).dateSeparator,c=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,M=function(t,r){var n,i,o;if(!r||0===r.length)return!1;for(n=!1,i=0,o=r.length;i<o;i++)if(e.zf.OS(t,r[i],!0)){n=!0;break}return n},(r||e.zf.OS(n,f,!1)||e.zf.OS(n,c,!1)||e.zf.OS(n,"/",!1)||e.zf.OS(n,":",!1)||e.zf.OS(n,"-",!1)||e.zf.OS(n,"\u5e74",!1)||e.zf.OS(n,"\u6708",!1)||e.zf.OS(n,"\u65e5",!1)||M(n,y)||M(n,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(n[0].toUpperCase())>=0&&e.zf.OS(n,".",!1))&&(h=i.ct.yU(n)))return h;if((p="-"===n.charAt(0))||"+"===n.charAt(0)){if("("===(n=e.zf.VP(n,0,1)).charAt(0)&&")"===n.charAt(n.length-1))return t}else if("("===n.charAt(0)&&")"===n.charAt(n.length-1)&&(b=!0,"-"===(n=(n=n.substring(1,n.length-1)).trim()).charAt(0)||"+"===n.charAt(0)))return t;return(g=this.WHt().parse(n))!==d&&g!==l?(F=b&&k(g,"boolean"))?t:(b||p)&&k(g,"number")?-1*v(g):g:t},t}(),nt=function(){function t(t,r,n,e){var i,o=this;bt.call(o,r,n,e),i=vt(t,!1),r&&(i=ht(i,o.j9t.Nat,o.j9t.currencySymbol())),i=dt(i=mt(i)),o.pU=i,o.JUt=3}return t.prototype.format=function(t,r){var n,e,o,u=this;try{return n=void 0,e=void 0,e=t instanceof Date?i.ct.o0(t).toString():ft(t),o=u.XHt(u.pU),n=u.qHt(e,o.formatTokens,t,o.hasAtPart,r)}catch(t){return""}},t.prototype.parse=function(t){return t||""},t.prototype.formatString=function(){return this.pU},t.prototype.XHt=function(t){var r,n,e=[],i=!1,o="",u=!1,a=d;for(n=0;n<t.length;n++)r=t.charAt(n),u?('"'!==r?o+=r:(o+=r,e.push(o),o="",u=!1),a=r):"*"!==a&&"_"!==a&&"\\"!==a||""===o?"*"!==r&&"_"!==r&&"\\"!==r?"@"!==r?'"'!==r?(o+=r,a=r):(a=r,""!==o&&e.push(o),o=r,u=!0):(a=r,""!==o&&(e.push(o),o=""),e.push(r),i=!0):(a=r,""!==o&&(e.push(o),o=""),o+=r):(o+=r,e.push(o),o="");return""!==o&&e.push(o),{formatTokens:e,hasAtPart:i}},t.prototype.qHt=function(t,r,n,e,i){var o,u,a=[],s=!1;if("string"!=typeof n||e||i)for(o=r.length-1;o>=0;o--)"*"===(u=r[o])[0]?s||(s=!0,a.push({type:"fillingChar",value:u[1]})):"_"===u[0]?a.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&a.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?a.push({type:"text",value:"@"}):"@"===u[0]?a.push({type:"text",value:t}):a.push({type:"text",value:u});else a.push({type:"text",value:n});return a.reverse()},t}(),et=function(){return{pattern:H,formatter:["d-mmm","mmm-yy",R().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",R().shortDatePattern+" h:mm",R().shortDatePattern+" h:mm:ss",R().shortDatePattern+" h:mm:ss.0"]}},it=function(){function t(t,r){var n=this;0===arguments.length?(n.formatCached="General",n.E9t=new rt):n.Hc(t,r)}return t.prototype.Hc=function(r,n){var e,i,o,u,s,f,c,y,m,M,h,v,g,p,b,F,_;for(r!==d&&r!==l||G(),e=r,(i=this).formatCached=r,o="",u="",s=!1,f=!1,c=!1,y=[],m=0;m<r.length;m++)'"'===(M=r[m])?(f=!f,u+=M):f?u+=M:"["===M?(s&&G(),u&&(o||(o=""),o+=u),u=M.toString(),s=!0):"]"===M?(s||G(),u?(h=(u+=M).toString(),(v=_t(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(h),h)),o+=u):h===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),c=!0):i.addPart(v,h):(o+=g=t.partToNormalStr(h),e=ht(r,h,g)),u=""):G(),s=!1):u+=M;u?s?G():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(n=i.localeIDFormatPart.cultureInfo().name()),F=(b=wt(o,p=i.conditionalFormatPart))._type,_=b.uHt?e:o,F?i.E9t=new F(_,i.localeIDFormatPart,i.dbNumberFormatPart,n,y.length>0?y:d,c):G()},t.prototype.$Ht=function(){var r,n=this,e="";return n.dbNumberFormatPart&&((r=t.proNames.some((function(t){return"dbNumberFormatPart"!==t&&n[t]})))||(e="General")),e},t.prototype.formatString=function(){var r,n,e,i=this,o="";for(r=0,n=t.proNames.length;r<n;r++)i[e=t.proNames[r]]&&(o+=i[e].toString());return o+=i.E9t.formatString()},t.prototype.addPart=function(r,n){var e,i,o,u=this,a=t.proNames,s=t.preProcessPart(n);for(e=0,i=a.length;e<i;e++)if(lt(o=a[e],r.Name,!0)){if(u[o])throw new Error(M().Exp_DuplicatedDescriptor);u[o]=new r(s,n)}},t.prototype.format=function(t,r){return this.E9t.format(t,r)},t.prototype.parse=function(t){return this.E9t.parse(t)},t.checkFormatter=function(t){if(!t||t===K.oHt)throw new Error(M().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var n=Mt(r);return t.checkFormatter(n),n},t.partToNormalStr=function(r){var n=t.preProcessPart(r);return n[0]===h&&(n=n.slice(1)),'"'+n+'"'},t.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],t}(),ot=function(t){function r(r,n){var e=t.call(this,r,n)||this,i=e;return i.lHt=!0,i.PropertyChanged=[],K.Ji(r)&&(r="General"),i.formatCached=r,i.cultureName=n,i.init(),e}return ut(r,t),r.prototype.toJSON=function(){var t=this,r={formatCached:t.formatCached};return t.cultureName&&(r.customerCultureName=t.cultureName),"general"===B(t.formatCached)&&delete r.formatCached,r},r.prototype.hasFormattedColor=function(){var t,r,n=this;for(t in _)if(_.hasOwnProperty(t)&&(r=n.getFormatter(_[t]))&&r.colorFormatPart)return!0;return!1},r.prototype.formatString=function(t){var r,n,e,i,o=this;if(0===arguments.length){for(r=K.oHt,n=0,e=o.formatters.length;n<e;n++)r+=(i=o.formatters[n]).formatString(),n!==e-1&&(r+=";");return r}if(!t)throw new Error(M().Exp_ValueIsNull);return o.formatters=d,o.formatCached=t,o.init(),o.tzt("formatString"),o},r.prototype.getFormatter=function(t){var r=this;return r.formatters&&r.formatters[t]},r.prototype.getPreferredEditingFormatter=function(t){var n,e,i,u=R(this.cultureName),a=I(this.cultureName),s=r.defFormatter;return k(t,"TimeSpan")?s(u.longTimePattern):k(t,"DateTime")?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",s(u.shortDatePattern+e)):o.lt.q8(t,this.cultureName)?s((i=o.lt.uJ(t))>=1e21||i<=1e-17&&i>0||i<=-1e21||i<0&&i>=-1e-17?null!==(n=a.scientificNotation)&&void 0!==n?n:"0.##############E+00":P):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,n){var u,a,s,f,c,y,m,M,h,l,v,g,p,b,F,_,w,D,H,N,$,S,x,P,C,A=this,T=r.defFormatter;if(n||(n={value:d}),n.value=d,K.Ji(t))return new r;if(u=t,a=n.value=A.parse(u),k(a,"DateTime")||k(a,"TimeSpan")){for(f=(s=et()).pattern,c=s.formatter,(M=(m=(y=E(A.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(f=f.concat([M]),c=c.concat([M[0]])),"ja-JP"===y.name()&&(f=f.concat([m.eraFormatter]),c=c.concat(["ge.M.d"]),h=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),f=f.concat([h]),c=c.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),l=y.QPt.filter((function(t){return"gge"===t.substr(0,3)})),f=f.concat([l]),c=c.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),v=y.QPt.filter((function(t){return"ge"===t.substr(0,2)})),f=f.concat([v]),c=c.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),g=0;g<f.length;g++)for(p=f[g],b=0;b<p.length;b++)if(F=p[b],(_=i.ct.yU(t,F))&&_-a===0)return new r(c[g])}else if(o.lt.q8(a,A.cultureName)){if(D=(w=I(A.cultureName)).currencySymbol,H=w.numberDecimalSeparator,N=w.percentSymbol,$=w.numberGroupSeparator,S="E",C=(P=(x=e.zf.OS)(u,H))?".00":"",u[0]===D)return T(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",D,C));if(x(u,S,!0))return T("0.00E+00");if(u[0].toString()===N||u[u.length-1].toString()===N)return T(K.I5("0{0}%",C));if(x(u,$))return T(K.I5("#,##0{0}",C))}return T("General")},r.prototype.format=function(t,r){var n,e,i,u,a,s,f;if(k(t,"boolean"))return z()&&(t=t?z().boolean_true:z().boolean_false),t.toString().toUpperCase();if(i=0,u=(n=this).vn(t)){a=u.colorFormatPart,r&&a&&(r.conditionalForeColor=r.value=a.foreColor),(e=o.lt.q8(t,n.cultureName))&&(i=o.lt.uJ(t)),s=K.oHt;try{e&&u===n.getFormatter(_.jHt)&&0!==this.expressionNumber?(s=u.format(u.considerNegSymbol?i:v(i)))===d&&k(t,"string")&&(s=t):(s=u.value)===l&&(f=!n.lHt&&u===n.getFormatter(_._text),s=u.format(t,e||f)),r&&(r.content=S(s)?s:[{type:"text",value:s}]),S(s)&&(s=x.mUt(s))}catch(r){k(t,"string")&&(s=t.toString())}return s}return e&&i<0?"-".toString():k(t,"string")?t.toString():t===l||t===d?K.oHt:t.toString()},r.prototype.parse=function(t){var r=this;return r.formatters&&r.formatters.length>0?r.formatters[0].parse(t):d},r.prototype.init=function(){var t,r,n,e=this,i=e.formatCached;for(K.Ji(i)&&G(),e.formatters=[],t=kt(i),e.lHt=1===t.length,(!t||t.length<1||t.length>4)&&G(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?G():this.hasAt=!0),n=new it(t[r],e.cultureName),e.formatters.push(n);e.getFormatter(_.EHt)||G(),this.nzt()},r.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;_=o.lt.Dh({},w[t]),this.hasAt&&0!==this.expressionNumber&&(_._text=this.formatters.length-1)},r.prototype.vn=function(t){var r,n,e,i,u,a,s,f,c,y,m,M=this;if(M.nzt(),n=(r=M.getFormatter(_.EHt))&&r.conditionalFormatPart,e=M.getFormatter(_._text),n&&(_.OHt=2,this.hasAt||(_._text=3)),"string"==typeof t&&j(t))return e||(n?t:r);if(o.lt.q8(t,M.cultureName)||k(t,"boolean")){if(i=M.getFormatter(_.jHt),u=M.getFormatter(_.OHt),a=o.lt.uJ(t),s=n&&r.conditionalFormatPart.isMeetCondition(a),c=(f=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(a),y=void 0,M.lHt||(n?s:a>0||0===a&&!u))y=r;else if(f?c:a<0)y=i;else if(u)y=u;else if(i){if(n&&f)return{value:m=a+""};y=i}return y&&(!n||f||y!==i||u||(y.considerNegSymbol=!0),n&&f&&y===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(y.considerNegSymbol=!0),this.expressionNumber<=1&&(y.considerNegSymbol=!0)),y}return d},r.prototype.tzt=function(t){var r,n,e=this;if(e.PropertyChanged)for(r=0;r<e.PropertyChanged.length;r++)"function"==typeof(n=e.PropertyChanged[r])&&n(e,t)},r.defFormatter=function(t){var n=r[t];return n||(n=new r(t),r[t]=n),n},r.test=function(t){var r,n,e=!0;try{r=new c.Lexer(t),(n=new y.Parser(r)).parse()}catch(t){e=!1}return e},r}(U),r.GeneralFormatter=ot},"./src/plugins/formatter/formatterGrammar/interface.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=r.BACKSLASH=r.UNDERLINE=r.ASTERISK=r.DOUBLE_QUOTE=r.SEMICOLON=void 0,r.SEMICOLON=";",r.DOUBLE_QUOTE='"',r.ASTERISK="*",r.UNDERLINE="_",r.BACKSLASH="\\";var n=function(){throw new Error("Invalid Number Format")};r.throwError=n},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,n){var e,i,o,u,a;Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(t){var r;return!!["0","#","?",".","%",",","/",e.BACKSLASH,e.ASTERISK,e.UNDERLINE,"@"].find((function(r){return r===t}))},o=function(t){var r;return[e.BACKSLASH,e.ASTERISK,e.UNDERLINE].find((function(r){return r===t}))},u=function(t,r){return{type:t,value:r}},a=function(){function t(t){this.Fmt=[],this.DZe=t,this.vHr()}return t.prototype.vHr=function(){for(var t,r,n=0,a=this.DZe;n<a.length;n++)if(t=a[n],i(t)){if(o(t)){this.Fmt.push(u("symbol",t)),n<a.length-1&&(this.Fmt.push(u("char",a[n+1])),n++);continue}this.Fmt.push(u("symbol",t))}else if(t!==e.SEMICOLON){if(t===e.DOUBLE_QUOTE){if(-1!==(r=a.slice(n+1).search(e.DOUBLE_QUOTE))){r=r+n+1,this.Fmt.push(u("text",a.slice(n+1,r))),n=r;continue}(0,e.throwError)()}this.Fmt.push(u("char",t))}else this.Fmt.push(u("semicolon",t));this.Fmt.push(u("EOF",""))},t.prototype.jbi=function(){return this.Fmt.shift()},t}(),r.Lexer=a},"./src/plugins/formatter/formatterGrammar/parser.ts":function(t,r,n){var e,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,e=n("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(){function t(t){this.gHr=t,this.mHr=t.jbi()}return t.prototype.pHr=function(t){this.mHr.type===t?this.mHr=this.gHr.jbi():(0,e.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.mHr.type;)t.push(this.bHr()),t.length>4&&(0,e.throwError)();return{type:"numberFormat",body:t}},t.prototype.bHr=function(){for(var t,r=[];"semicolon"!==this.mHr.type&&"EOF"!==this.mHr.type;)"symbol"===(t=this.mHr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.mHr.type&&this.pHr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.mHr.value;return r===e.ASTERISK?(this.pHr("symbol"),t={type:"asterisk",body:this.mHr.value},this.pHr("char")):r===e.BACKSLASH?(this.pHr("symbol"),t={type:"char",body:this.mHr.value},this.pHr("char")):r===e.UNDERLINE?(this.pHr("symbol"),t={type:"underline",body:this.mHr.value},this.pHr("char")):(t={type:"symbol",body:this.mHr.value},this.pHr("symbol")),t},t.prototype.yHr=function(){var t,r=this.mHr.type;return"char"===r?(t={type:"char",body:this.mHr.value},this.pHr("char")):"text"===r&&(t={type:"text",body:this.mHr.value},this.pHr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M;function h(t){return"object"==typeof t&&t!==o&&t.text!==i}function d(t,r){var n,e,f;if(t===o||t===i)return!1;if(k(t)===u)r.value=t;else if(k(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if(k(t)!==a)return!1;if(0===S(t=t.trim()))return!1;if(n=!1,"%"===t.charAt(S(t)-1)&&(n=!0,t=t.substr(0,S(t)-1)),S(t)>=2&&"0"===t[0]&&"x"===t[1])return!1;if(e=Number(t).valueOf(),isNaN(e)||!isFinite(e)){if(f=new Date(t),isNaN(f))return!1;e=m.o0(f)}n&&(e/=100),r.value=e}return!0}function l(t){var r,n,e,i,o,u,a,s,f,c,y,m,M,h,d,l=t.ezt;for(l||(t.izt=[],t.rzt=[]),r=l?t.ozt:t.izt,n=t.azt,e=t.uzt,i=l?t.szt:t.rzt,o=t.Mct,u=t.czt,a=t.fzt,s=t.SIr(),c={},y=0;y<s;y++){for(m=!1,M=void 0,h=0;h<S(o)&&(M=o[h],l&&M===t.lzt||(e[M]?($(c[d=t.columnNames[M]])&&(c[d]=t.getColumnIndex(d)),f=t.fue(c[d],y),m=!e[M][f]):n[M]&&(m=!n[M][y]),!m));h++);!m&&l&&(u?($(c[d=t.columnNames[M]])&&(c[d]=t.getColumnIndex(d)),m=!u[f=t.fue(c[d],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(h=0;h<S(r);h++)r[h]&&i.push(h)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function g(t){var r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<S(r);n++)e[(r[n]+"").toUpperCase()]=n}function p(t,r){var n,e,i,o,u,a,s,f=t.vzt,c=t.pzt,y=t.mzt,m=t.gzt,M=m[r]=[];for(t.bzt=[],t.xIr(r,[]),f[r]=[],c[r]={},y[r]=[],n={},e=0;e<t.SIr();e++)o=h(i=t.JNr(e,r))?i.text.trim():i,t.TIr(r,o),(u=n[v(o)])?(u.list.push(e),M[e]=u.index):(a=[e],f[r].push(o),y[r].push(a),s=S(y[r])-1,c[r][o]=s,M[e]=s,n[v(o)]={list:a,index:s})}function b(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,d,l=t.yzt,v=t.getColumnIndex(r),g=[];if(!v)return g;if(e=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!e)return g;for(l[v]||t.Czt(v),o=[],u=l[v],a=0;a<S(u);a++)f=h(s=t.JNr(a,v))?s.value:s,o[u[a]]=f;for(c=t.Szt[v],a=0;a<S(e);a++){for(y=e[a],m=!1,d=(M=t.Tzt(o,y)).start;d<=M.end;d++)if(i[c[d]]){m=!0;break}m!==n&&g.push(y)}return g}function F(t,r){var n,e,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(n=S(t.getData(r)),e=t.ezt?t.ozt:t.izt,i=0;i<n;i++)e[i]||(o=t.fue(a,i),-1===u.indexOf(o)&&u.push(o));return u}}function _(t,r){var n,e,i,o,u,a,s,f=[],c={},y=t.getColumnIndex(r);if(y>=0)for(n=t.czt||t.fzt,e=t.uzt[y]||t.azt[y],i=t.ezt&&y===t.lzt?n:e,u=S((o=!!t.azt[y])?t.getData(r):t.getExclusiveData(r)),a=0;a<u;a++)i&&!i[a]&&(c[s=o?t.fue(y,a):a]||(c[s]=!0,f.push(s)));return f}function w(t,r){var n,e,i,o,u,a,s,f,c,y={},m=t.columnNames,M=S(m);for(n=0;n<M;n++)if(m[n]!==r)for(e=_(t,m[n]),i=0;i<S(e);i++)for(o=t.getRowIndexes(m[n],e[i]),u=0;u<S(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},M=t.SIr(),n=0;n<M;n++)s=t.getExclusiveRowIndex(r,n),y[n]||(a[s]=!0);for(f=S(t.getExclusiveData(r)),c=[],n=0;n<f;n++)a[n]||c.push(n);return c}function D(t,r,n,e){var i,o,u,a,s,f,c,y,m=t.getColumnIndex(r),M=t.yzt;for(M[m]||t.Czt(m),i=[],o=M[m],u=0;u<S(o);u++)s=h(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(f=[],u=0;u<S(n);u++)for(c=t.Tzt(i,n[u]),y=0;y<S(o);y++)o[y]>=c.start&&o[y]<=c.end&&(f[y]=!0);e?(t.fzt=f,t.wzt=n):(t.Mzt[m]=n,t.azt[m]=f,delete t.uzt[m],delete t.Azt[m]),l(t)}function H(t,r,n,e){var i,o=t.getColumnIndex(r),u=[];for(i=0;i<S(n);i++)u[n[i]]=!0;e?t.czt=u:(t.uzt[o]=u,t.Azt[o]=n,delete t.Mzt[o],delete t.azt[o]),l(t)}function N(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function $(t){return t===i||t===o}function k(t){return typeof t}function S(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,e=n("./src/common/util/datetimehelper.ts"),i=void 0,o=null,u="number",a="string",s="boolean",f=e.ct.o0,function(t){t[t.all=0]="all",t[t.byCurrentColumn=1]="byCurrentColumn",t[t.byOtherColumns=2]="byOtherColumns"}(c=r.FilteredOutDataType||(r.FilteredOutDataType={})),function(t){t[t.average=1]="average",t[t.count=2]="count",t[t.counta=3]="counta",t[t.max=4]="max",t[t.min=5]="min",t[t.product=6]="product",t[t.stdev=7]="stdev",t[t.stdevp=8]="stdevp",t[t.sum=9]="sum",t[t.vars=10]="vars",t[t.varp=11]="varp"}(y=r.SlicerAggregateType||(r.SlicerAggregateType={})),m=function(){function t(){}return t.o0=function(t){return f(t)},t.quickSort=function(r){var n,e=S(r),i=[];for(n=0;n<e;n++)i[n]={index:n,value:r[n]};return t.quickSortImp(i)},t.quickSortImp=function(r){var n,e,i,o,u,a,s,f,c=r.length;if(c<=1)return r;for(n=t,i=r[e=Math.floor(c*Math.random())],o=[],u=[],a=[],s=0;s<c;s++)e!==s?(f=n.sortCompare(r[s].value,i.value))<0?o.push(r[s]):f>0?u.push(r[s]):a.push(r[s]):a.push(r[s]);return n.quickSortImp(o).concat(a,n.quickSortImp(u))},t.isEquals=function(t,r){return!(!$(t)&&""!==t||!$(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():k(t)===a&&k(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,n){var e=k(r),i=k(n);return e===s?r=r?1:0:r instanceof Date&&(r=t.o0(r)),i===s?n=n?1:0:n instanceof Date&&(n=t.o0(n)),e===i||e!==u&&i!==u?e===a&&i===a?r.toLowerCase()>n.toLowerCase():r>n:i===u},t.sortCompare=function(r,n){var e=t,i=-1,o=$(r)||""===r||k(r)===u&&isNaN(r),a=$(n)||""===n||k(n)===u&&isNaN(n);return o&&a?i=0:o?i=1:a?i=-1:e.isEquals(r,n)?i=0:e.isGreaterThan(r,n)&&(i=1),i},t}(),r.xzt=m,M=function(){function t(t,r){var n=this;n.hzt={},n.dzt=[],n.vzt=[],n.pzt=[],n.mzt=[],n.gzt=[],n.uzt=[],n.Azt=[],n.azt=[],n.Mzt=[],n.izt=[],n.rzt=[],n.Mct=[],n.szt=[],n.ozt=[],n.ezt=!1,n.aT=[],n.Upt=0,n.bzt=[],n.Szt=[],n.yzt=[],n.lue=0,Object.defineProperty(n,"data",{get:function(){return this.VEt()},set:function(t){n.HY(t)}}),n.Izt(t,r),n.AIr()}return t.prototype.AIr=function(){var t,r=this;for(t=0;t<r.SIr();t++)r.izt[t]=!0,r.rzt.push(t)},t.prototype.VEt=function(){return this._data},t.prototype.HY=function(t){this._data=t},t.prototype.SIr=function(){return S(this._data)},t.prototype.JNr=function(t,r){return this._data[t][r]},t.prototype.IIr=function(t,r,n){this._data[t][r]=n},t.prototype.kIr=function(t,r){var n,e=this,i=this._data,o=S(e.columnNames);for(n=0;n<r;n++)i.splice(t,0,new Array(o))},t.prototype.tX=function(t,r){this._data.splice(t,r)},t.prototype.NIr=function(t,r){var n,e=this._data;for(n=0;n<S(e);n++)e[n].splice(t,r)},t.prototype.jIr=function(t,r,n){this.dzt[t][r]=n},t.prototype.DIr=function(t){return!!this.dzt[t]},t.prototype.jEe=function(t){return this.dzt[t]},t.prototype.xIr=function(t,r){this.dzt[t]=r},t.prototype.TIr=function(t,r){this.dzt[t].push(r)},t.prototype._Ir=function(t,r,n){this.dzt[t].splice(r,0,null!=n?n:i)},t.prototype.OIr=function(t,r,n){this.dzt[t].splice(r,n)},t.prototype.EIr=function(t,r){this.dzt.splice(t,r)},t.prototype.inPreview=function(){return this.ezt},t.prototype.Izt=function(t,r){var n=this;n._data=t,n.columnNames=r,g(n)},t.prototype.vue=function(t){var r=this;r.mue&&0===r.lue&&(r.Nzt("onDataChanged",t),r.mue=!1)},t.prototype.gue=function(){this.lue++},t.prototype.pue=function(){var t=this;t.lue--,t.lue<=0&&(t.lue=0,t.vue())},t.prototype.onDataChanged=function(t){var r,n,e,i,o,u,a,s,f,c,y,m=this,M=new Array(S(m.columnNames)),d=m.Azt,v=m.vzt,g=m.uzt,b={};for(r=0;r<S(t);r++)e=(n=t[r]).data,i=n.columnName,o=n.row,$(b[i])&&(b[i]=m.getColumnIndex(i)),u=b[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,e),a=h(e)?e.text:e,m.DIr(u)&&m.jIr(u,o,a),M[u]=!0;for(s=0;s<S(M);s++)if(M[s]){for(f=d[s],d[s]=f?[]:void 0,g[s]=f?[]:void 0,c=[],r=0;f&&r<S(f);r++)c.push(v[s][f[r]]);for(p(m,s),r=0;r<S(c);r++)y=m.pzt[s][c[r]],d[s].push(y),g[s][y]=!0}l(m),m.mue=!0,m.vue(t)},t.prototype.Nzt=function(t){var r,n,e,i,o=[];for(r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(n=this.aT||[],e=0;e<S(n);e++)(i=n[e])[t]&&i[t].apply(i,o)},t.prototype.onColumnNameChanged=function(t,r){var n=this,e=n.hzt,i=n.getColumnIndex(t);i<0||(n.columnNames[i]=r,delete e[t.toUpperCase()],e[r.toUpperCase()]=i,n.Nzt("onColumnNameChanged",t,r))},t.prototype.onRowsAdded=function(t,r,n){var e,i,u,a,s,f,c,y,M,h,d,l,v,g=this,p=S(g.columnNames),b=g.vzt,F=g.mzt,_=g.gzt,w=g.uzt,D=g.Azt,H=g.izt,N=g.rzt,$=g.Mct;for(g.bzt=[],g.kIr(t,r),i=0;i<p;i++){for(e=0;e<r;e++)g.DIr(i)&&g._Ir(i,t);if(s=void 0,a=b[i]){for(f=o,c=0;c<S(a);c++){for(y=F[i][c],M=0;M<S(y);M++)y[M]>=t&&(y[M]+=r);m.isEquals(a[c],o)&&(f=y,s=c)}for(f||(f=[],a.push(o),s=S(a)-1,g.pzt[i][o]=s,F[i].push(f),w[i]&&-1===$.indexOf(i)&&(w[i][s]=!0,D[i].push(s))),h=t;h<t+r;h++)f.push(h);for(u=t;u<t+r;u++)_[i].splice(u,0,s)}}for(d=!0,e=0;e<S($);e++)l=_[i=$[e]][t],!0!==w[i][l]&&(d=!1);for(e=0;e<S(N);e++)N[e]>=t&&(N[e]+=r);for(u=g.SIr()-1;u>=t+r;u--)H[u]=H[u-r];for(v=S($)>0,u=t;u<t+r;u++)d&&N.push(u),H[u]=!v;n||g.Nzt("onRowsChanged",t,r,!0)},t.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},t.prototype.kzt=function(t,r,n){var e,i,o,u,a,s,f,c,y=this,m=y.Azt,M=y.vzt,h=y.uzt,d=S(y.columnNames);for(y.tX(t,r),i=0;i<d;i++){if(y.DIr(i)&&y.OIr(i,t,r),u=[],(o=m[i])&&n){for(e=0;e<S(o);e++){for(a=y.getRowIndexes(y.columnNames[i],o[e]),s=!0,f=0;f<S(a);f++)if(a[f]<t||a[f]>=t+r){s=!1;break}s||u.push(M[i][o[e]])}m[i]=[],h[i]=[]}if(p(y,i),o&&n)for(e=0;e<S(u);e++)c=y.pzt[i][u[e]],m[i].push(c),h[i][c]=!0}n&&l(y),y.Nzt("onRowsChanged",t,r,!1)},t.prototype.onColumnsRemoved=function(t,r){var n,e,i,o,u,a,s,f,c=this,y=[],m=c.Mct,M=t+r;for(n=t;n<M;n++)(e=c.columnNames[n])&&(i=n,y.push(e),-1!==m.indexOf(i)&&c.doUnfilter(e));for(s in o=c.uzt||c.azt,u=c.Azt||c.Mzt,a=c.hzt,c.NIr(t,r),c.bzt=[],c.columnNames.splice(t,r),c.EIr(t,r),c.vzt.splice(t,r),c.pzt.splice(t,r),c.mzt.splice(t,r),c.gzt.splice(t,r),o.splice(t,r),u.splice(t,r),a)a[s]>=t+r&&(a[s]-=r);for(n=0;n<S(y);n++)delete a[(e=y[n]).toUpperCase()],t=c.getColumnIndex(e),-1!==(f=m.indexOf(t))&&m.splice(f,1),c.Nzt("onColumnRemoved",y[n])},t.prototype.Dzt=function(){return this.bzt},t.prototype._zt=function(){return this.Szt},t.prototype.Czt=function(t){var r,n,e,i,o,u,a,s,f,c,y,M=this;for(M.DIr(t)||p(M,t),r=M.SIr(),n=[],e=0;e<r;e++)o=h(i=M.JNr(e,t))?i.value:i,n.push(o);for(u=m.quickSort(n),a=M.bzt[t]=[],s=M.Szt[t]=[],f=M.yzt[t]=[],c=0;c<S(u);c++)y=u[c],a.push(y.value),s.push(y.index),f[y.index]=c},t.prototype.getColumnIndex=function(t){var r=this.hzt[null==t?void 0:t.toUpperCase()];return void 0===r?-1:r},t.prototype.getFilteredRowIndexes=function(){var t=this;return t.ezt?t.szt:t.rzt},t.prototype.getFilteredOutRowIndexes=function(){var t,r=this,n=r.SIr(),e=r.ezt?r.ozt:r.izt,i=[];for(t=0;t<n;t++)e[t]||i.push(t);return i},t.prototype.getData=function(t,r){var n,e,i,o,u,a,s,f=this,c=f.getColumnIndex(t);if(c>=0){if(r){for(f.bzt[c]||f.Czt(c),n=f.jEe(c),e=f.bzt[c],o=(i=f.Tzt(e,r)).start,u=i.end,a=[],s=o;s<=u;s++)a.push(n[f.Szt[c][s]]);return a}return f.DIr(c)||p(f,c),f.jEe(c)}return[]},t.prototype.aggregateData=function(t,r,n){var e,o,u,a,s,f,c,y,m,M=this,h=M.getColumnIndex(t);return h<0?i:(M.bzt[h]||M.Czt(h),a=S(u=M.bzt[h]),e=(s=M.Tzt(u,n)).start,o=s.end,5===r?e>=a?i:u[e]:4===r?o<0?i:u[o]:3===r?o<e?0:o-e+1:(c=(f=M.Ezt(u,r,e,o)).data1,y=f.data2,m=f.data3,1===r?c/=y:7===r||10===r?(c=(m*y-c*c)/(m*(m-1)),c=7===r?Math.sqrt(c):c):8!==r&&11!==r||(c=(m*y-c*c)/(m*m),c=8===r?Math.sqrt(c):c),c))},t.prototype.Ezt=function(t,r,n,e){var u,a,s,f=6===r?1:0,c=0,y=0;for(u=n;u<=e;u++)(a=t[u])===o&&a===i||d(a,s={value:o})&&(a=s.value,1===r?(f+=a,c++):2===r?f++:9===r?f+=a:6===r?f*=a:7!==r&&8!==r&&10!==r&&11!==r||(f+=a,c+=a*a,y++));return{data1:f,data2:c,data3:y}},t.prototype.Tzt=function(t,r){var n=S(t),e,o,u,a;if(r){if(r.min===-1/0)e=0;else for(u=0;u<n;u++)if(a=t[u],m.isEquals(r.min,a)||m.isGreaterThan(a,r.min)){e=u;break}if(e===i&&(e=n),o===1/0)o=n-1;else{for(u=n-1;u>=0;u--)if(a=t[u],m.isEquals(a,r.max)||m.isGreaterThan(r.max,a)){o=u;break}o===i&&(o=-1)}}else e=0,o=n-1;return{start:e,end:o}},t.prototype.getExclusiveData=function(t){var r=this,n=r.vzt,e=r.getColumnIndex(t);return e>=0?(n[e]||p(r,e),n[e]):[]},t.prototype.getRowIndexes=function(t,r){var n=this,e=n.getColumnIndex(t);return e>=0?(n.gzt[e]||p(n,e),n.mzt[e][r]):[]},t.prototype.getExclusiveRowIndex=function(t,r){var n=this,e=n.getColumnIndex(t);return n.fue(e,r)},t.prototype.fue=function(t,r){var n=this,e=n.gzt;return t>=0?(e[t]||p(n,t),e[t][r]):-1},t.prototype.getFilteredIndexes=function(t){var r=[],n={};return this.jzt(t,r,n),r},t.prototype.jzt=function(t,r,n){var e,i,o,u=this,a=u.ezt?u.szt:u.rzt,s=u.getColumnIndex(t);for(e=0;e<S(a);e++)i=a[e],$(o=u.fue(s,i))||(n[o]?n[o]++:(n[o]=1,r.push(o)))},t.prototype.getFilteredRanges=function(t){return b(this,t,!1)},t.prototype.getFilteredOutRanges=function(t){return b(this,t,!0)},t.prototype.getFilteredOutIndexes=function(t,r){var n=this;return 0===r?F(n,t):1===r?_(n,t):w(n,t)},t.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},t.prototype.detachListener=function(t){var r,n=this.aT||[];for(r=0;r<S(n);r++)if(n[r]===t){n.splice(r,1);break}},t.prototype.suspendFilteredEvents=function(){this.Upt++},t.prototype.resumeFilteredEvents=function(){var t=this;t.Upt--,0===t.Upt&&t.onFiltered()},t.prototype.doFilter=function(t,r,n){this.Ozt(t,r,n),this.onFiltered()},t.prototype.Ozt=function(t,r,n){var e=this,i=e.Mct,o=e.getColumnIndex(t);o<0||(n?(e.ezt=!0,e.lzt=o):e.ezt&&N(e,!1),i.indexOf(o)<0&&i.push(o),r.ranges?D(e,t,r.ranges,n):H(e,t,r.exclusiveRowIndexes,n))},t.prototype.clearPreview=function(){N(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,n,e=this;e.ezt&&N(e,!1),(r=e.getColumnIndex(t))<0||(delete e.Mzt[r],delete e.azt[r],delete e.uzt[r],delete e.Azt[r],l(e),(n=e.Mct.indexOf(r))>=0&&e.Mct.splice(n,1))},t.prototype.onFiltered=function(){var t=this;0===t.Upt&&t.Nzt("onFiltered",{rowIndexes:t.getFilteredRowIndexes(),isPreview:t.ezt})},t.prototype.getListener=function(){return this.aT},t}(),r.GeneralSlicerData=M},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,n){var e=this&&this.JKr||(Object.create?function(t,r,n,e){void 0===e&&(e=n);var i=Object.getOwnPropertyDescriptor(r,n);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,i)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.XKr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht,dt,lt,vt,gt,pt,bt,Ft,_t,wt=this&&this.qKr||(Dt=function(t,r){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Dt(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Dt(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),Dt;function Ht(t,r){return{x:t,y:r}}function Nt(t,r,n,e){return{x:t,y:r,width:n,height:e}}function $t(t,r){var n,e,i,o=t[0],u=o&&o.value?o.value:o;for(e=1,i=t.length;e<i;e++)n=(o=t[e])&&o.value?o.value:o,(r&&u>n||!r&&u<n)&&(u=n);return u}function kt(t,r,n,e,i,o,u){o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.stroke()}function St(t,r,n,e,i,o,u){t.save(),o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,n),t.lineTo(e,i),t.closePath(),t.stroke(),t.restore()}function xt(t,r,n,e,i,o,u,a){var s,f,c,y,m,M,h;if(t.save(),s=[o,u],t.setLineDash)t.beginPath(),t.strokeStyle=a,t.setLineDash(s),t.stroke(),t.moveTo(r,n),t.lineTo(e,i),t.stroke();else{for(t.beginPath(),t.lineWidth=1,t.strokeStyle=a,c={x:(e-r)/(f=b(p(e-r,2)+p(i-n,2))),y:(i-n)/f},y=0,m=0;y<f;)y+=M=l(s[m%2],f-y),(h=++m%2)&&t.moveTo(r,n),r+=M*c.x,n+=M*c.y,h&&t.lineTo(r,n);t.stroke()}t.restore()}function Pt(t,r,n,e,i,o,u,a,s,f,c,y){r?kt(t,n,e,i,o,c,y):kt(t,u,a,s,f,c,y)}function Ct(t,r,n,e,i,o,u,a){t.save(),u&&(t.fillStyle=u),t.textBaseline=a||K,t.beginPath(),t.font=i,t.textAlign=o,e="string"==typeof e?e:e+"",t.fillText(e,r,n),t.restore()}function At(t,r,n,e,i,o,u){r=Math.floor(r),n=Math.floor(n),e=Math.floor(e),i=Math.floor(i),u%2!=0&&(r===e?(r+=.5,e+=.5):n===i&&(n+=.5,i+=.5)),kt(t,r,n,e,i,o,u)}function Tt(t,r,n,e,i,o,u,a,s,f){var c,y,m,h;switch(o=Math.round(o),u=Math.round(u),s){case 0:u=Math.round(n+a),h=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u-Math.sin(M/3)*a);break;case 1:o=Math.round(r+e-a),m=Math.round(o),h=Math.round(u+a),c=Math.round(o+Math.sin(M/3)*a),y=Math.round((u+h)/2);break;case 2:u=Math.round(n+i-a),h=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u+Math.sin(M/3)*a);break;case 3:o=r+a,m=Math.round(o),h=Math.round(u+a),c=Math.round(o-Math.sin(M/3)*a),y=Math.round((u+h)/2)}t.beginPath(),t.moveTo(o,u),t.lineTo(c,y),t.lineTo(m,h),t.closePath(),t.fillStyle=f,t.fill()}function Ot(t,r,n,e,i){t.beginPath(),t.fillStyle=i,t.arc(r,n,e,0,2*Math.PI),t.fill()}function jt(t,r,n,e,i,o){if(r){var u=i/2;Ot(t,n+u,e+u,u,o)}else Jt(t,n,e,i,i,o)}function Et(t,r,n,e,i,o,u,a,s,f,c,y,m,M,h){var d,l,v,g,p,b;s?(d=Math.floor(r+.5*e),l=Math.floor(a?f-c:f),v=Math.floor(y),g=Math.floor(c),p=Math.floor(d-M/2),b=Math.floor(a?l-M/2:l+g+M/2),At(t,d,l,d,l+g,o,v)):(d=Math.floor(a?f:f-c),l=Math.floor(n+.5*i),v=Math.floor(c),g=Math.floor(y),p=Math.floor(a?d+v+M/2:d-M/2),b=Math.floor(l-M/2),At(t,d,l,d+v,l,o,g)),m?Rt(t,r,n,e,i,p,b,M,s,a,o):s?jt(t,h,p,a?b:b-=M,M,u):jt(t,h,a?p-=M:p,b,M,u)}function Rt(t,r,n,e,i,o,u,a,s,f,c){t.save(),Tt(t,r,n,e,i,o,u,a,s?f?0:2:f?1:3,c),t.restore()}function It(t,r,n,e,i,o,u,a,s,f,c,y,m,M){var h,d,l,v=4,g=void 0;t.save(),t.beginPath(),t.rect(r,n,e,i),t.clip(),t.font=s+W,t.fillStyle=T,t.fillStyle="black",f?(t.textBaseline=z,(g=s+(h=m<M?M:m)+o+v+M/2)>0?(t.textAlign=B,c?t.fillText(a,r+e/2+M/2,y-h/2):t.fillText(a,r+e/2+M/2,y+h/2)):(t.textAlign=G,c?t.fillText(a,r+e/2,y-h-M/2-s):t.fillText(a,r+e/2,y+h+M/2+v))):(t.textBaseline=J,(g=(d=t.measureText(a).width)+m+u+v+M/2)>0?d>m+M/2?c?(t.textAlign=L,t.fillText(a,y-v,n+i/2)):(t.textAlign=B,t.fillText(a,y+M/2,n+i/2)):(t.textAlign=G,c?t.fillText(a,y+m/2,n+i/2+s):t.fillText(a,y-m/2,n+i/2+s)):c?(t.textAlign=B,l=y+m+M/2+v,t.fillText(a,l,n+i/2)):(t.textAlign=L,l=y-m-M/2-v,t.fillText(a,l,n+i/2))),t.restore()}function Bt(t){return i.ft.rp(s(t))<127.5?A:T}function Lt(t,r,n,e,i,o,a,s){var f,c,y,m,M=s;return u(s)&&(M=i),a?(f=r+M+o,y=e-2*M,c=t+i,m=n-2*i):(f=t+M,y=n-2*M,c=r+i,m=e-2*i),{left:f,top:c,width:y,height:m}}function Gt(t,r){var n,e,i=0;for(n=0,e=t.length;n<e;n++)i+=r&&!r(t[n])?0:t[n];return i}function zt(t){return t*M/180}function Kt(t,r,n,e){var i,o,u,a,s=[];for(o=0,u=0,a=t.length;o<a;o++)r?(r(t[o])?s[u]=n?n(t[o]):t[o]:s[u]=0,u++):(i=N(t[o]),!H(i)&&isFinite(i)&&(s[u]=i,u++));return e&&e(s),s}function Jt(t,r,n,e,i,o){var u=g(r+e),a=g(n+i);r=g(r),n=g(n),e=g(u-r),i=g(a-n),t.beginPath(),t.fillStyle=o,t.fillRect(r,n,e,i),t.fill()}function Vt(t,r,n){return t=l(t,r),t=v(t,n)}function Wt(t,r,n,e,i){t.save(),t.rect(r,n,e,i),t.clip()}function Ut(t,r){var n,e,i,o;return!(!t||!r)&&(n=v(t.x+t.width,r.x+r.width),e=v(t.y+t.height,r.y+r.height),i=l(t.x,r.x),o=l(t.y,r.y),n-i<=t.width+r.width&&e-o<=t.height+r.height)}function qt(t,r,n,e,i,o){var a,s,f,c,y,m,v=n+i/2,g=e+o/2,p=5,b=l(i,o)/2-p,_=-.5*M,w=v+b*d(_),D=g+b*h(_),N=[],$=[];if(!(b<=0)){for(c=Yt(f=(s=Kt(r.values,(function(t){return!u(t)&&!H(t)&&isFinite(t)}),(function(t){return F(t)}),(function(t){1===t.length&&(t[1]=1-t[0])}))).length,r.colors),y=Gt(s),t.save(),m=0;m<f;m++)a=_+s[m]/y*2*M,t.beginPath(),t.moveTo(v,g),t.lineTo(w,D),t.arc(v,g,b,_,a,!1),t.lineTo(v,g),t.fillStyle=c[m],t.fill(),N.push(w),$.push(D),w=v+b*d(_=a),D=g+b*h(_);for(m=0;m<f;m++)kt(t,v,g,N[m],$[m],A);t.restore()}}function Yt(t,r){var n,e,o,u,a,f,c=[],y=r.length;if(t<=y)c=r.slice(0,t);else{for(0===y?(c.push("darkgray"),y=1):c=r.slice(0),n=[],e=void 0,o=t-y+1,u=void 0,u=0;u<y;u++)n[u]=s(c[u]);for(u=y;u<t;u++){for(a in e=n[u%y])e.hasOwnProperty(a)&&(f=e[a],e[a]=m(f-f/o*(u/y)));e.a=255,c[u]=i.ft.j(e)}}return c}function Xt(t,r,n){return{x:t,y:r,value:n}}function Zt(t){return isNaN(t)||t===1/0?0:t}function Qt(t,r,n,e,i,o){var a,s,f,y,m,M,h,d,p,b,F,_,D,N,$,k,S,P,C,A,T,j,E,R,I,B,L,G,z,K,J,V;if(t.save(),a=r.points,s=r.mini,f=r.maxi,y=r.line1,m=r.line2,M=r.colorPositive,h=r.colorNegative,d=5,a=Kt(a,(function(t){return!u(t)&&!H(t)&&isFinite(t)})),M=u(M)?"#787878":M,h=u(h)?x:h,C=$t(a,!1),f=u(f)?C:f,b=v(f,C),A=$t(a,!0),s=u(s)?A:s,p=l(s,A),F=(F=(F=0)>(b=b<0?0:b)?b:F)<(p=p>0?0:p)?p-1:F,_=a.length,T=Lt(n,e,i,o,d),D=T.left,N=T.top,$=T.width,k=T.height,S=Zt($/(_-1)),j=[],P=Zt((b-p)/k))for(I=void 0,B=void 0,L=N+Zt((b-F)/P),G=void 0,z=void 0,K=0;K<_;K++)I=a[K],G=D+S*K,z=N+Zt((b-I)/P),0===K&&j.push(new dt(Xt(G,L,F))),K>0&&I*a[K-1]<0&&(R=j[j.length-1])&&(B=tr(R.x,R.y,G,z,L),j.push(new dt(Xt(B,L,F)))),j.push(new dt(Xt(G,z,I))),K===_-1&&j.push(new dt(Xt(G,L,F)));for(t.beginPath(),J=0,V=j.length;J<V;J++)(E=j[J])&&(0===J?t.moveTo(E.x,E.y):t.lineTo(E.x,E.y),R=j[J-1],E.value===F&&R&&(t.fillStyle=R.value>F?M:h,t.fill(),J!==V-1&&(t.beginPath(),t.moveTo(E.x,E.y))));function W(r){var n,e,i;r===c&&typeof r!==w||(n=Vt(r,b,p),i=g(N+(e=0!==P?(b-n)/P:k/2))-.5,kt(t,D,i,D+$,i,O))}W(y),W(m),t.restore()}function tr(t,r,n,e,i){return((r-i)*n+(i-e)*t)/(r-e)}function rr(t,r,n,e,i,o){var a,s,f,c,y,m,h,d,p,b,F,_,w,D,H,N,k,P,A,T,O,j,E,R,I,B,L=r.points1,G=r.points2,z=r.minX,K=r.maxX,J=r.minY,V=r.maxY,W=r.hLine,U=r.vLine,q=r.xMinZone,Y=r.xMaxZone,X=r.yMinZone,Z=r.yMaxZone,Q=r.tags,tt=r.drawSymbol,rt=r.drawLines,nt=r.color1,et=r.color2,it=r.dash,ot=4,ut=Lt(n,e,i,o,5),at=ut.left,st=ut.top,ft=ut.width,ct=ut.height;if(L&&!(L.length<=0)&&!((a=or(L)).length<=0||G&&G.length>0&&(s=or(G)).length<=0)){for(Wt(t,n,e,i,o),t.beginPath(),tt=!!u(tt)||tt,nt=u(nt)?S:nt,et=u(et)?x:et,mt(a,J,V,z,K),!u(q)&&!u(Y)&&!u(X)&&!u(Z)&&y<=q&&q<=m&&y<=Y&&Y<=m&&f<=X&&X<=c&&f<=Z&&Z<=c&&((E=v(y,q))>=(R=l(m,Y))&&(R=E+1),(I=v(f,X))>=(B=l(c,Z))&&(B=I+1),Jt(t,at+(E-y)*ft/(m-y),st+(c-B)*ct/(c-f),(R-E)*ft/(m-y),(B-I)*ct/(c-f),C)),P=-$,A=-$,T=$,O=$,p=a.length,h=0;h<p-1;h++)yt(a,h,nt,ht),Q&&(0===h&&(H>A&&(P=D,A=H),H<O&&(T=D,O=H)),k>A&&(P=N,A=k),k<O&&(T=N,O=k));if(s&&s.length>0)for(mt(s,f,c,y,m),p=s.length,h=0;h<p-1;h++)yt(s,h,et,dt);Q&&(Mt(P,A,x),Mt(T,O,"#0000FF")),!u(W)&&f<=W&&W<=c&&(j=g(st+(c-W)*ct/(c-f))-.5,ir(t,at,j,at+ft,j,x)),!u(U)&&y<=U&&U<=m&&(j=g(at+(U-y)*ft/(m-y))-.5,ir(t,j,st,j,st+ct,x)),t.restore()}function yt(r,n,e,i){d=r[n],b=d.x,F=d.y,d=r[n+1],_=d.x,w=d.y,D=at+(b-y)*ft/(m-y),N=at+(_-y)*ft/(m-y),H=st+(c-F)*ct/(c-f),k=st+(c-w)*ct/(c-f),rt&&ir(t,D,H,N,k,e,it),tt&&(0===n&&i(D,H),i(N,k))}function mt(t,r,n,e,i){var o=nr(t,!0),a=nr(t,!1);f=u(J)?o.y:r,c=u(V)?a.y:n,y=u(z)?o.x:e,m=u(K)?a.x:i,m=y>=m?y+1:m,c=f>=c?f+1:c}function Mt(r,n,e){t.beginPath(),t.arc(r-ot/2,n-ot/2,ot/2,0,2*M,!1),t.fillStyle=e,t.fill()}function ht(r,n){t.beginPath(),t.strokeStyle=nt,t.arc(r-ot/2,n-ot/2,ot/2,0,2*M,!1),t.stroke()}function dt(r,n){t.beginPath(),t.strokeStyle=et,t.strokeRect(r-ot/2,n-ot/2,ot,ot)}}function nr(t,r){var n,e,i=r?1:-1,o=r?l:v,u=new Mt(Ht(i*$,i*$)),a=t.length;for(e=0;e<a;e++)n=t[e],u.x=o(u.x,n.x),u.y=o(u.y,n.y);return u}function er(t,r,n,e){return n/e*(r-t)+t}function ir(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,F,_,w,D,H;if(u){for(a=b(p(e-r,2)+p(i-n,2)),s=0,f=6,c=2,y=4,M=void 0,h=void 0,d=void 0,l=void 0,r<=e?(M=r,h=e,d=r,l=n):(M=e,h=r,d=e,l=i),g=n-(v=(i-n)/(e-r))*r,(m=[]).push(new Mt(Ht(d,l))),F=[f,y,c,y];s<a;)for(_=0,w=F.length;_<w;_++)(s+=F[_])<=a&&(l=v*(d=er(M,h,s,a))+g,m.push(new Mt(Ht(d,l))));for(D=0,H=m.length;D<H-1;D+=2)kt(t,m[D].x,m[D].y,m[D+1].x,m[D+1].y,o)}else kt(t,r,n,e,i,o)}function or(t){var r,n,e,i=[],o=t.length;if(o>0)if(o<(r=t[0].length)){if(o>=2)for(n=0;n<r;n++)i.push(new Mt(Ht(t[0][n],t[1][n])))}else if(r>=2)for(e=0;e<o;e++)i.push(new Mt(Ht(t[e][0],t[e][1])));return i}function ur(t,r,n,e,i,o){var s,f,c,y,M,h,d,l,p,b,F,_,w,D,N,$,k,S=r.measure,C=r.target,A=r.maxi,T=r.good,O=r.bad,j=r.forecast,E=r.tickUnit,R=r.colorScheme,I=r.vertical,B=5,L=r.measureColor,G=r.targetColor,z=r.maxiColor,K=r.goodColor,J=r.badColor,V=r.forecastColor,W=r.allowMeasureOverMaxi,U=r.barSize;if(!(u(A)||A<0)&&(u(U)||!(H(U)||U<=0))){if(U>1&&(U=1),S=u(S)||S<0?0:S,T=u(T)||T<0?0:T,O=u(O)||O<0?0:O,C=u(C)?0:C,j=u(j)?0:j,E=u(E)?0:E,R=u(R)?"#A0A0A0":R,s=u(L)?"#252525":L,S>A&&!W&&(S=A,s=x),T>A&&(T=A,s=x),O>A&&(O=A,s=x),C>A&&(C=0,s=x),j>A&&(j=A,s=x),f=Lt(n,e,i,o,B,o-2*B,I),c=f.left,y=f.width,t.save(),M=u(U)?.2:(1-U)/2,h=u(U)?.6:U,d=W?v(A,S):A,q(u(z)?a(R,1.66):z,A,d,M,h),q(u(K)?a(R,1.33):K,T,d,M,h),q(u(J)?R:J,O,d,M,h),l=.25*U/.6,q(s,S,d,p=u(U)?.375:(1-l)/2,b=u(U)?.25:l),j>0&&(F=c,(_=y*(j/d))>y&&(_=y),w=u(U)?3:3*U/.6,Pt(t,I,n+.5*i,F,n+.5*i,F-_,F,e+.5*o,F+_,e+.5*o,u(V)?"#3690BF":V,w)),C>0&&(D=g(c-(I?1:-1)*y*(C/d))-.5,Pt(t,I,n+i*M,D,n+i*(1-M),D,D,e+o*M,D,e+o*(1-M),u(G)?x:G,1)),E>0)for(N=m(d/E),$=void 0,k=0;k<=N;k++)$=g(c-y/d*E*(I?1:-1)*k)-.5,Pt(t,I,n,$,n+.05*i,$,$,e+o,$,e+.95*o,P,1);t.restore()}function q(r,u,a,s,f){var m,M,h;t.fillStyle=r,m=c,(M=y*(u/a))>y&&!W&&(M=y),h=new ht(I?Nt(n+i*s,m-M,i*f,M):Nt(m,e+o*s,M,o*f)),t.fillRect(h.x,h.y,h.width,h.height)}}function ar(t,r,n,e,i,o){var a,s,f,c,y,m,M,h,d,p,b,F,_,w,D,H,N,$,k,S,C,A,T=r.spreadData,O=r.showAverage,j=r.scaleStart,E=r.scaleEnd,R=r.style,I=r.colorScheme,B=r.vertical,L=5,G=T.length;if(!(G<=0)){for(a=T[0].key,s=T[G-1].key,j=u(j)?a:j,E=u(E)?s:E,R=u(R)?4:R,I=u(I)?P:I,c=(f=Lt(n,e,i,o,L,o-2*L,B)).left,y=f.width,m=f.top,M=f.height,Wt(t,n,e,i,o),t.beginPath(),t.strokeStyle=I,t.fillStyle=I,t.lineWidth=2,p=$t(T,!1),F=0,_=T.length;F<_;F++)if(D=(w=T[F]).key,H=w.value,h=c+(B?-1:1)*y*(D-j)/(E-j),B?(h=l(h,c),h=v(h,c-y)):(h=v(h,c),h=l(h,c+y)),h=g(h),1===R)Pt(t,B,N=m+M/2-(b=(b=H/2*M/p)<.5?.5:b),h,$=m+M/2+b,h,h,N,h,$);else if(4===R)Pt(t,B,m,h,m+(b=(b=H*M/p)<1?1:b),h,h,m+M,h,m+M-b);else if(6===R)Pt(t,B,m,h,m+M,h,h,m,h,m+M);else for(k=2,S=1;S<=H;S++){switch(R){case 2:d=m+M/2-L-(H/2-S)*M/p;break;case 3:d=m+M-L-(C=sr(H,M,k+1,w.randomNumbers))[S-1];break;default:d=m+M-S*M/p}d=g(d),t.beginPath(),t.fillRect(B?d:h,B?h:d,k,k)}O&&Pt(t,B,m-L,h=c-(B?1:-1)*y*((A=fr(T))-j)/(E-j),m+M+L,h,h,m-L,h,m+M+L,x),t.restore()}}function sr(t,r,n,e){for(var i,o=[],u=v(100,10*t),a=0,s=[],f=0;o.length<t;)i=m(e[f]*r),f++,(a>u||cr(i,s))&&(o.push(i),s.push([i-n,i+n])),a++;return o}function fr(t){var r,n,e,i=0,o=0;for(r=0,n=t.length;r<n;r++)o+=(e=t[r]).value,i+=e.key*e.value;return 0===o?0:i/o}function cr(t,r){var n,e,i;for(n=0,e=r.length;n<e;n++)if((i=r[n])[0]<=t&&t<=i[1])return!1;return!0}function yr(t,r,n,e,i,o,s){var f,m,M,h,d,l,v,p,b,F,_,w,D,N,$,k,S,C,A=r.points,T=A&&A.length,E=r.colorRange,I=r.labelRange,B=r.maximum,L=r.targetRed,z=r.targetGreen,K=r.targetBlue,V=r.targetYellow,U=r.color,q=r.highlightPosition,Y=r.vertical,X=r.textOrientation,Z=r.textSize,Q=5;if(!(u(A)||T<=0)){if(U=u(U)?P:U,u(E)||E.length!==T||mr(E))for(E=[],f=0;f<T;f++)E.push(a(U,1+f/T));for(m=Gt(A,(function(t){return t>0})),B=u(B)||B<m?m:B,X=u(X)?0:X,Z=u(Z)||Z<=0?10:Z,Z=H(Z)?Z:Z*s.zoomFactor,M=Lt(n,e,i,o,Q,o-2*Q,Y),h=M.left,d=M.width,l=M.top,v=M.height,t.save(),p=h,$=0,k=T;$<k;$++)(N=A[$])<=0||(b=N/B*d,Y?(F=n+.15*i,w=.7*i,_=p-b,D=b):(F=p,w=b,_=e+.15*o,D=.7*o),S=$+1===q?x:E[$],t.save(),t.fillStyle=S,t.fillRect(F,_,w,D),(C=I&&I[$])&&(t.save(),t.fillStyle=Bt(S),t.textBaseline=J,t.textAlign=G,t.font=Z+W,t.rect(F,_,w,D),t.clip(),1===X?(t.translate(F+w/2,_),t.rotate(Math.PI/2),t.fillText(C,D/2,0)):t.fillText(C,F+w/2,_+D/2),t.restore()),p+=(Y?-1:1)*b,t.restore());tt(R,L,(function(t){return t>0})),tt(j,z),tt(O,K),tt("yellow",V),t.restore()}function tt(r,n,e){var i,o;n!==c&&n!==y&&(n=n>B?B:n,e&&!e(n)||(o=(n=n<0?0:n)/B*d,Y?(i=g(h-o)-.5,kt(t,l,i,l+v,i,r)):(i=g(h+o)-.5,kt(t,i,l,i,l+v,r))))}}function mr(t){for(var r=0,n=t.length;r<n;r++)if(u(t[r]))return!0;return!1}function Mr(t,r,n,e,i,o){kt(t,lr(r),lr(n),lr(e),lr(i),u(o)?T:o,1)}function hr(t,r,n,e,i){var o,u,a,s,f,c=.4*e;switch(r=lr(r),n=lr(n),t.beginPath(),t.moveTo(r,n),o=c/2,u=b(3)*c/2,a=c/b(3),i){case 0:s=[-o,0,o],f=[u,a,u];break;case 2:s=[-o,0,o],f=[-u,-a,-u];break;case 3:s=[u,a,u],f=[-o,0,o];break;case 1:s=[-u,-a,-u],f=[-o,0,o];break;default:s=[],f=[]}s.forEach((function(e,i){t.lineTo(lr(r+e),lr(n+f[i]))})),t.lineTo(r,n),t.closePath(),t.fillStyle=A,t.fill()}function dr(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,b,_,w=n.value,D=n.colorScheme,$=n.axisVisible,k=n.barHeight,S=n.barWidth,x=5,P=5,C=!1,A=N(w);if(!H(A)){if(u(h=0===t?k:S))d=.7;else{if(H(h)||h<=0)return;d=Math.min(1,h)}A>1?(A=1,C=!0):A<-1&&(A=-1,C=!0),D=u(D)?"grey":D,$=!!u($)||$,r.save(),0===t?(l=o-2*x,v=a*d,A>=0?(C&&(s=new Mt(Ht(e+x+l-P,i+a/2))),f=new ht(Nt(e+x,i+a*(1-d)/2,l*A,v)),c=new Mt(Ht(e+x,i+1)),y=new Mt(Ht(e+x,i+a)),m=1):(g=F(l*A),C&&(s=new Mt(Ht(e+x+P,i+a/2))),f=new ht(Nt(e+o-x-g,i+a*(1-d)/2,g,v)),c=new Mt(Ht(e+o-x,i+1)),y=new Mt(Ht(e+o-x,i+a)),m=3),M=u(h)?a:a*d):1===t&&(p=a-2*x,b=o*d,A>=0?(f=new ht(Nt(e+(1-d)/2*o,i+a-x-(_=p*A),b,_)),C&&(s=new Mt(Ht(e+o/2,i+a-x-_+P)),m=0),c=new Mt(Ht(e+1,i+a-x)),y=new Mt(Ht(e+o,i+a-x))):(A=F(A),f=new ht(Nt(e+(1-d)/2*o,i+x,b,p*A)),C&&(s=new Mt(Ht(e+o/2,i+x+p-P)),m=2),c=new Mt(Ht(e+1,i+x)),y=new Mt(Ht(e+o,i+x))),M=u(h)?o:o*d),r.beginPath(),f&&(Jt(r,f.x,f.y,f.width,f.height,D),Wt(r,f.x,f.y,f.width,f.height)),s&&hr(r,s.x,s.y,M,m),r.restore(),$&&c&&Mr(r,c.x,c.y,y.x,y.y),r.restore()}}function lr(t){return g(t)-.5}function vr(t,r,n,e,i,o){dr(0,t,r,n,e,i,o)}function gr(t,r,n,e,i,o){dr(1,t,r,n,e,i,o)}function pr(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,_,w,D,$,k,P,C,A,O,E=r.variance,I=r.reference,V=r.mini,U=r.maxi,q=r.mark,Y=r.tickUnit,X=r.legend,Z=r.colorPositive,Q=r.colorNegative,tt=r.vertical,rt=.5,nt=.5-rt/2,et=5,it=x,ot=S,ut=13*a.zoomFactor,at=N(E);if(!(H(at)||(Q=u(Q)?R:Q,Z=u(Z)?j:Z,Y=u(Y)?0:Y,U=u(U)?1:U,V=u(V)?-1:V,(h=!u(I))||(I=0),tt?(s=e+o-et,f=o-2*et,c=i-4*et,y=-1):(s=n+et,f=i-2*et,c=o-4*et,y=1),X&&(l=N(r.variance),H(l)||(g=(v=l.toString()).substr(v.indexOf(".")+1).length,m=g>=2?(100*l).toFixed(g-2)+"%":(100*l).toFixed(0)+"%")),at>U&&(at=U,d=!0),at<V&&(at=V,d=!0),I=Vt(I,U,V),d&&(M=Vt(c,60,15)),_=f/(p=F(U-V)),w=s+y*F(V-I)*_,(D=F(at-I)*_)>F(p)*_&&(D=F(p+V)*_),$=s+y*f,tt&&w<$||!tt&&w>$))){if(Wt(t,n,e,i,o),at>I?st(Z,0,et-f,f-et,0,1,e-w,K,z,w-n-i,B,L,-1,F(U-at)*_):(D>F(p)*_&&(D=F(p+V)*_,w=s),st(Q,1,-et,et,2,3,w-e-o,z,K,n-w,L,B,1,F(V-at)*_)),h&&(k=s+y*(Math.abs(V-I)*_),ct(n,k,n+i,k,k,e,k,e+o)),Y>0)for(t.beginPath(),P=p/Y,C=0;C<=P;C++)ct(n,A=s+f/P*C*y,n+.1*i,A,A,e+.9*o,A,e+o,ot,ot);!u(q)&&V<=q&&q<=U&&(t.beginPath(),O=s-(tt?1:-1)*F(V-q)*_,ct(n,O,n+.33*i,O,O,e+.66*o,O,e+o,it,it),t.fill()),t.restore()}function st(r,u,a,f,c,y,h,l,v,g,p,F,_,H){var N,$,k,S,x,P;tt?Jt(t,N=n+nt*i,$=0===u?w-D:w,k=i*rt,S=D,r):Jt(t,N=0===u?w:w-D,$=e+nt*o,k=D,S=o*rt,r),d&&(Wt(t,N,$,k,S),tt?hr(t,n+i/2,s+a,M,c):hr(t,s+f,e+o/2,M,y),t.restore()),X&&(x=void 0,P=0,d&&(P=.4*M*b(3)/2+et+2),t.save(),t.beginPath(),t.font=ut+W,t.fillStyle=T,tt?(t.textAlign=G,ft(x=ut+D+h,H,r,l,v,N,$,k,S,tt),t.fillText(m,n+i/2,w+_*(D-P))):(t.textBaseline=J,ft(x=t.measureText(m).width+D+g,H,r,p,F,N,$,k,S,tt),t.fillText(m,w+_*(P-D),e+o/2)),t.restore())}function ft(r,n,e,i,o,u,a,s,f,c){c?t.textBaseline=i:t.textAlign=i,r>0&&n<D&&(t.rect(u,a,s,f),t.clip(),c?t.textBaseline=o:t.textAlign=o,t.fillStyle=Bt(e))}function ct(r,n,e,i,o,u,a,s,f,c){tt?Mr(t,r,n,e,i,f):Mr(t,o,u,a,s,c)}}function br(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,g,p,b,_,w,D,$,k,S,x,P,A,O,E,I,B=r.plannedValue,L=r.actualValue,G=r.index,z=r.absolute,K=r.reference,J=r.mini,V=r.maxi,W=r.tickUnit,U=r.legend,q=r.colorPositive,Y=r.colorNegative,X=r.lollipopHeaderColor,Z=r.vertical,Q=[],tt="",rt=.9,nt=10,et=13*a.zoomFactor,it=C,ot=!1;if(!(0===B.length||0===L.length||G<0||G>=B.length||G>=L.length||J>=V||H(L[G])||H(B[G]))){if(Y=u(Y)?R:Y,q=u(q)?j:q,W=u(W)?0:W,z=!u(z)&&z,m=!u(K),X=u(X)?T:X,z){for(v=0;v<B.length&&v<L.length;v++)Q.push(L[v]-B[v]);V=$t(Q,!1),J=$t(Q,!0),V>0&&J>0?J=0:V<0&&J<0&&(V=0),M=Q[G],K=0,m=!0}else V=u(V)?1:V,J=u(J)?-1:J,M=(L[G]-B[G])/Math.abs(B[G]),((K=Vt(K,V,J))===V&&M>K||K===J&&M<K)&&(ot=!0),u(B[G])&&(ot=!0);if(m||(K=0),Z?(s=e+o-nt,f=o-2*nt,c=-1):(s=n+nt,f=i-2*nt,c=1),!z&&U?((p=N((g=M-K).toString()))>0&&(tt="+"),!H(p)&&isFinite(p)?y=tt+(y=(_=(b=p.toString()).substr(b.indexOf(".")+1).length)>=2?(100*p).toFixed(2)+"%":100*p+"%"):isFinite(p)||(y=tt+p)):(M>0&&(tt="+"),y=tt+(y=(_=(b=(p=N(M)).toString()).substr(b.indexOf(".")+1).length)>=2?p.toFixed(2):p)),z?l=!1:(M>V&&(M=V,l=!0),M<J&&(M=J,l=!0)),D=f/(w=F(V-J)),$=s+c*F(J-K)*D,(k=F(M-K)*D*rt)>F(w)*D&&(k=F(w+J)*D),S=s+c*f,!(Z&&$<S||!Z&&$>S))if(z||0!==B[G]&&!ot){if(Wt(t,n,e,i,o),x=F(Math.ceil((V-K)/W)),P=F(Math.floor((K-J)/W)),z){if(W>5/D)if(Z){for(O=1;O<=x;O++)At(t,n,E=$+W*D*O*-1*rt,n+i,E,it,1);for(O=1;O<=P;O++)At(t,n,E=$+W*D*O*1*rt,n+i,E,it,1)}else{for(O=1;O<=x;O++)At(t,I=$+W*D*O*1*rt,e,I,e+o,it,1);for(O=1;O<=P;O++)At(t,I=$+W*D*O*-1*rt,e,I,e+o,it,1)}}else if(W>0&&W<=V&&W>5/D)if(t.beginPath(),Z){for(A=.1*i>10?10:.1*i,O=1;O<=x;O++)At(t,n,E=$+W*D*O*-1*rt,n+A,E,it,1);for(O=1;O<=P;O++)At(t,n,E=$+W*D*O*1*rt,n+A,E,it,1)}else{for(A=.1*o>10?10:.1*o,O=1;O<=x;O++)At(t,I=$+W*D*O*1*rt,e+o-A,I,e+o,it,1);for(O=1;O<=P;O++)At(t,I=$+W*D*O*-1*rt,e+o-A,I,e+o,it,1)}h=Math.floor(12*a.zoomFactor),(d=Math.floor(4*a.zoomFactor))%2!=0&&(d+=1),h%2!=0&&(h+=1),M>K?Et(t,n,e,i,o,q,X,!0,Z,$,k,d,l,h,z):(k>F(w)*D&&(k=F(w+J)*D,$=s),Et(t,n,e,i,o,Y,X,!1,Z,$,k,d,l,h,z)),U&&(M>K?It(t,n,e,i,o,e-$,$-n-i,y,et,Z,!0,$,k,h):It(t,n,e,i,o,$-e-o,n-$,y,et,Z,!1,$,k,h)),m&&(Z?At(t,n,$,n+i,$,T,2):At(t,$,e,$,e+o,T,2)),t.restore()}else Z?At(t,n,$,n+i,$,T,2):At(t,$,e,$,e+o,T,2)}}function Fr(t,r,n,e,i,o){var a,s,f,y,m,M,h,d,g,p,b,_,w,$,k,C,A,T,O,j,E,R,I,B,L,G,z,K,J,V,W,U,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht,dt,Ft,_t,wt=r.points,Dt=r.boxPlotClass,Ht=r.showAverage,Nt=r.scaleStart,kt=r.scaleEnd,St=r.acceptableStart,xt=r.acceptableEnd,Ct=r.style,At=r.colorScheme,Tt=r.vertical,Ot=5,jt=$t(wt,!1),Et=$t(wt,!0);if(!(u(wt)||(wt=Kt(wt)).length<=0)){for((Dt=Dt===c||typeof Dt!==D?vt:Dt.toLocaleLowerCase())!==vt&&Dt!==lt&&Dt!==gt&&Dt!==pt&&Dt!==bt&&(Dt=vt),a=N(Nt),a=H(a)?Et:a,s=N(kt),s=H(s)?jt:s,f=N(St),y=N(xt),At!==c&&typeof At===D||(At="#D2D2D2"),(Ct===c||0!==Ct&&1!==Ct)&&(Ct=0),m=x,a>Et&&(At=m,a=Et),s<jt&&(At=m,s=jt),Wt(t,n,e,i,o),t.lineWidth=2,h=(M=Lt(n,e,i,o,Ot,o-2*Ot,Tt)).left,d=M.width,g=M.top,p=M.height,b=Tt?-1:1,_=r.perc02,w=r.perc09,$=r.perc10,k=r.perc90,C=r.perc91,A=r.perc98,T=r.q1,E=Et,R=jt,I=1.5*(j=(O=r.q3)-T),B=1.5*j,L=r.stDev,G=Gt(wt)/v(1,wt.length),z=0,K=0,J=g+.1*p,V=.7*p,W=F(s-a),U=0,q=wt.length;U<q;U++)(Y=wt[U])<T&&Y>=T-1.5*j&&Y-(T-1.5*j)<I&&(I=Y-(T-1.5*j),E=Y),Y>O&&Y<=O+1.5*j&&O+1.5*j-Y<B&&(B=O+1.5*j-Y,R=Y),X=!1,z=h+b*(d*((Y-a)/W)),Dt===gt&&(Y<=T-1.5*j||Y>=O+1.5*j)&&(X=!0,K=Y<=T-3*j||Y>=O+3*j?0:1),Dt===lt&&(Y<=_||Y>=A)&&(X=!0,K=1),Dt===bt&&(Y<=G-2*L||Y>=G+2*L)&&(X=!0,K=Y<=G-3*L||Y>=G+3*L?0:1),Z=S,X&&(1===Ct?1===K?It(.2,.8,z,Z):It(.3,.7,z,Z):((Q=.1*p)<2&&(Q=2),t.beginPath(),t.strokeStyle=Z,tt=g+.45*p,rt=z,t.arc(Tt?tt:rt,Tt?rt:tt,Q/2,0,2*Math.PI),t.stroke()));switch((a>f||s<y)&&(At="#C0FF00"),(f=v(a,f))>(y=l(s,y))?At=m:f<y&&Pt(t,Tt,it=g+.9*p,nt=h+b*(d*((f-a)/W)),it,et=h+b*(d*((y-a)/W)),nt,it,et,it,P),ut=F(h+b*(d*((O-a)/W))-(ot=h+b*(d*((T-a)/W)))),st=h+b*(d*(((at=r.median)-a)/W)),Dt){case lt:yt=_,mt=A;break;case gt:yt=E,mt=R;break;case bt:ut=F(h+b*(d*((G+L-a)/W))-(ot=h+b*(d*((G-L-a)/W)))),st=h+b*(d*((G-a)/W)),yt=(Mt=G-2*L)>a?Mt:Et,mt=(Mt=G+2*L)<s?Mt:jt,Ht=!1;break;default:yt=Et,mt=jt}ft=h+b*(d*((yt-a)/W)),ct=h+b*(d*((mt-a)/W)),ht=S,1===Ct?Rt("#F2F2F2",J,ct,V,ft-ct,ft,J,ct-ft,V):Pt(t,Tt,dt=g+.45*p,ft,dt,ct,ft,dt,ct,dt,ht),Rt(At,J,ot-ut,V,ut,ot,J,ut,V),Pt(t,Tt,J,st,J+V,st,st,J,st,J+V,ht),0===Ct&&(Pt(t,Tt,J+.3*V,ct,J+.7*V,ct,ct,J+.3*V,ct,J+.7*V,ht),Pt(t,Tt,J+.3*V,ft,J+.7*V,ft,ft,J+.3*V,ft,J+.7*V,ht)),Dt!==lt&&Dt!==pt||(Ft=void 0,_t=void 0,Dt===lt?(yt=w,mt=C):(yt=$,mt=k),Ft=h+b*(d*((yt-a)/W)),It(.3,.7,_t=h+b*(d*((mt-a)/W)),ht),It(.3,.7,Ft,ht)),Ht&&It(.2,.8,z=h+b*(d*((G-a)/W)),m),t.restore()}function Rt(r,n,e,i,o,u,a,s,f){Tt?Jt(t,n,e,i,o,r):Jt(t,u,a,s,f,r)}function It(r,n,e,i){Pt(t,Tt,J+V*r,e,J+V*n,e,e,J+V*r,e,J+V*n,i)}}function _r(t,r,n,e,i){r=g(r),n=g(n),r===(e=g(e))&&(r=e-=.5),n===(i=g(i))&&(n=i-=.5),t.moveTo(r,n),t.lineTo(e,i)}function wr(t,r,n,e,i,o,u,a,s,f,c){t.beginPath(),t.strokeStyle=n,r?_r(t,e,i,o,u):_r(t,a,s,f,c),t.stroke()}function Dr(t,r,n,e,i){t.rect(r,n,e,i),t.clip()}function Hr(t,r,n,e,i,o){var a,s,f,c,y,m,M,h=o.labelText,d=o.fontSize,l=o.startBox,v=o.endBox,g=o.boxColor,p=o.isInRightOrTopOfBox,b=o.fillStyle;t.save(),t.beginPath(),t.font=d+W,c=1,b=u(b)?T:b,o.vertical?(y=G,p?(a=d+v-(l-n))>0&&l-v-n<v?(m=z,b=Bt(g),f=l-v+c,Dr(t,r,l-v,e,v)):(m=K,f=l-v-c):(a=d-(n+i-l))>0&&n+i-l<v?(Dr(t,r,l-v,e,v),m=K,b=Bt(g),f=l-c):(m=z,f=l+c),t.textAlign=y,t.textBaseline=m,t.fillStyle=b,t.fillText(h,r+e/2,f)):(m=J,M=t.measureText(h),p?(a=M.width+v-(r+e-l))>0&&r+e-(l+v)<v?(Dr(t,l,n,v,i),y=L,b=Bt(g),s=l+v-c):(y=B,s=l+v+c):(a=M.width-(l-r))>0&&l-r<v?(Dr(t,l,n,v,i),s=l+c,y=B,b=Bt(g)):(y=L,s=l-c),t.textAlign=y,t.textBaseline=m,t.fillStyle=b,t.fillText(h,s,n+i/2)),t.restore()}function Nr(t,r,n,e,i,o,s){var f,y,m,M,h,d,g,p,b,_,w,$,k,S,x,P,A,O,j,E,R,I,B,L,G,z,K,J,V,W,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,Mt,ht=r.points,dt=r.labels,lt=r.pointIndex,vt=r.minimum,gt=r.maximum,pt=r.colorPositive,bt=r.colorNegative,Ft=r.vertical,_t=r.itemTypeRange,wt=r.colorTotal,Dt=5,Ht=13*s.zoomFactor;if(!u(ht)&&!((f=ht.length)<=0||(y=parseInt(lt,10),H(y)||y<=0||y>f))){for(dt=u(dt)?[]:dt,pt!==c&&typeof pt===D||(pt="#8CBF64"),bt!==c&&typeof bt===D||(bt="#D6604D"),typeof wt!==D&&(wt=c),m=pt,M=a(pt,1.3),h=bt,d=a(bt,1.3),g=1,p=0,b=0,_=0,w=0,$=[],k=0,S=0,P=0,A=f;P<A;P++)S=ht[P],x=_t[P],O=!1,j=1===g,(E=!u(x))&&(x===q?S=F(S):x===U?S=-F(S):x===Y?(O=!0,j?p=S:S=p):E=!1),$[g]=[],R=$[g],H(S)?(R[0]=0,R[1]=p,R[2]=0):(R[0]=F(S),p=O?p:S+p,R[1]=S>0?b:p,R[2]=S),R[3]=g,_=l(b,_),w=v(b,w),((I=g===f)&&!E||O)&&(k=_<0?-_:0,R[1]=S>0?0:S),E&&O&&!j||(b=S+b,I&&E&&(_=l(b,_),w=v(b,w))),g++;B=!1,u(x)||(B=-1===(L=[U,q,Y]).indexOf(x)),(u(x)||B)&&(p-=S),K=N(vt),H(K)||K>0||K>_?(G=_,K=_):(G=K,k=-K),J=N(gt),H(J)||J<0||J<w?z=w:(z=J,k=-K),W=(V=Lt(n,e,i,o,Dt,o-2*Dt,Ft)).left,X=V.width,Z=V.top,Q=V.height,tt=Ft?-1:1,nt=X/(rt=z-G),Wt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,it=(et=$[y])[2],ot=_t[y-1],ut=W+tt*(et[1]+k)*nt,at=et[0]*nt,ft=ot===Y,ct=(u(ot)||B)&&y===f||ft,st=wt&&ct?wt:1===y||ct?it>=0?m:h:it>=0?M:d,Ft?Jt(t,Z,ut-at,Q,at,st):Jt(t,ut,Z,at,Q,st),Ft?(1!==y&&(y!==f?wr(t,it>0,C,n,ut,Z+Q,ut,n,ut-at,Z+Q,ut-at):wr(t,!0,C,n,yt=W-(p+k)*nt,Z+Q,yt)),y!==f&&wr(t,it>0,C,Z,ut-at,n+i,ut-at,Z,ut,n+i,ut)):(1!==y&&(y!==f?wr(t,it>0,C,ut,e,ut,Z+Q,ut+at,e,ut+at,Z+Q):wr(t,!0,C,mt=W+(p+k)*nt,e,mt,Z+Q)),y!==f&&wr(t,it>0,C,ut+at,Z,ut+at,e+o,ut,Z,ut,e+o)),Mt=dt[y-1],dt.length>0&&!u(Mt)&&""!==Mt&&Hr(t,n,e,i,o,{labelText:Mt,vertical:Ft,isInRightOrTopOfBox:it>0,fontSize:Ht,startBox:ut,endBox:at,boxColor:st}),wr(t,Ft,T,n,W-k*nt,n+i,W-k*nt,W+k*nt,e,W+k*nt,e+o),t.restore()}}function $r(t,r,n,e,i,o,a){var s,f,c,y,m,M,h,d,l,v,p,b,F,w,$,k,P,C,A,T,O,j,E,R,I,B,L,G=r.points,z=r.pointIndex,K=r.colorRange,J=r.target,V=r.target2,W=r.highlightPosition,U=r.label,q=r.vertical,Y=13*a.zoomFactor,X=r.targetColor,Z=r.target2Color,Q=r.labelColor,tt=r.barSize;if(!u(G)&&(u(tt)||!(H(tt)||tt<=0))&&(tt>1&&(tt=1),!((s=G.length)<=0||(f=parseInt(z,10),H(f)||f<=0||f>s)))){for(K=u(K)?[]:K,c=parseInt(U,10),c=H(c)?0:c,y=1,m=0,M=[],h=0,d=G.length;h<d;h++)l=G[h],M[y]=[],v=M[y],l<0||H(l)||u(l)?(v[0]=1===y?0:m,v[1]=0):(m+=l,v[0]=1===y?0:m-l,v[1]=l),y++;b=5,p=u(tt)?b:q?i*(1-tt)/2:o*(1-tt)/2,F=Lt(n,e,i,o,p,o-2*b,q,b),w=F.left,$=F.width,k=F.top,P=F.height,C=q?-1:1,A=$/m,Wt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,O=(T=M[f])[1],j=w+C*T[0]*A,E=T[1]*A,R=f===W?x:0===K.length||typeof K[f-1]!==D?S:K[f-1],q?Jt(t,k,j-E,P,E,R):Jt(t,j,k,E,P,R),1===c?I=(T[0]+O)/m*1e3:2===c&&(I=O/m*1e3),B=g(I)/10+"%",1!==c&&2!==c||""===B||Hr(t,n,e,i,o,{labelText:B,vertical:q,isInRightOrTopOfBox:(T[0]+T[1])*A<$/2,fontSize:Y,startBox:j,endBox:E,boxColor:R,fillStyle:Q}),L=[u(X)?"#8CBF64":X,u(Z)?"#EE5D5D":Z],[J,V].forEach((function(r,u){var a=rt(r),s=_(w+C*$*a);wr(t,q,L[u],n,s,n+i,s,s,e,s,e+o)})),t.restore()}function rt(t){var r=N(t);return r=(r=(r=H(r)?0:r)<0?0:r)>1?1:r}}function kr(t,r){switch(r){case 2:var n;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 Sr(t,r,n){var e,i,o,u,a,f;return t<0&&(t=0),t>1&&(t=1),e=s(r),i=s(n),o=e.a*(1-t)+i.a*t,u=e.r*(1-t)+i.r*t+"",a=e.g*(1-t)+i.g*t+"",f=e.b*(1-t)+i.b*t+"","rgba("+parseInt(u,10)+","+parseInt(a,10)+","+parseInt(f,10)+","+N(o/255+"")+")"}function xr(t,r,n){return t===r&&t===n?1:t<=r?0:t>=n?1:(t-r)/(n-r)}function Pr(t,r,n,e,i,o){var u=(o+i)/2;return i<=e&&e<=u?Sr(xr(e,i,u),t,r):Sr(xr(e,u,o),r,n)}function Cr(t){var r=$,n=-$;return t.forEach((function(t){t!==c&&t!==y&&(r>t&&(r=t),n<t&&(n=t))})),{min:r,max:n}}function Ar(t,r,n,e,i,o,u){var a,s,f;e?t.forEach((function(t,i){0!==t&&t!==c&&t!==y&&(r[n+i]=e[i]||r[n+i])})):(a=Cr(t),s=a.min,f=a.max,t.forEach((function(t,e){0!==t&&t!==c&&t!==y&&(r[n+e]=Pr(i,o,u,t,s,f))})))}function Tr(t,r,n,e,i,o){var u,a,s,f,c=r.year,y=r.month,m=r.values,M=r.emptyColor||"lightgray",h=r.startColor,d=r.middleColor,l=r.endColor,v="white",g=6,p=7,b=2,F=(i-(g+1)*b)/g,_=(o-(p+1)*b)/p,w=[],D=new Date(c,y-1,1).getDay();for(u=0;u<g*p;u++)u<D?w[u]=v:u<D+kr(c,y)?w[u]=M:w[u]=v;for(Ar(m,w,D,r.colors,h,d,l),t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),a=0,s=0;s<g;s++)for(f=0;f<p;f++)t.fillStyle=w[a],a++,t.fillRect(n+s*F+(s+1)*b,e+f*_+(f+1)*b,F,_);t.restore()}function Or(t){var r,n=t.getFullYear(),e=t.getMonth(),i=t.getDate();for(r=1;r<e+1;r++)i+=kr(n,r);return i}function jr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p,b,F,_,w,D,H,N,$,k,S,x,P=r.year,C=r.values,A=r.emptyColor||"lightgray",T=r.startColor,O=r.middleColor,j=r.endColor,E="white",R=7,I=parseInt(366/R+"",10)+2,B=[],L=new Date(P,0,1).getDay(),G=Or(new Date(P,11,31));for(a=0;a<I*R;a++)B[a]=a<L?E:a<L+G?A:E;for(Ar(C,B,L,r.colors,T,O,j),t.save(),t.rect(n,e,i,o),t.clip(),c=n+(f=15*(s=u.zoomFactor)),y=e,m=i-f,M=o,t.save(),t.translate(n+f/2,y+M),t.rotate(-Math.PI/2),t.font=13*s+W,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(P+"",M/2,0),t.restore(),d=(m-(I+1)*(h=2))/I,l=(M-(R+1)*h)/R,v=0,F=[],p=0;p<I;p++)for(g=0;g<R;g++)b={x:c+p*d+(p+1)*h,y:y+g*l+(g+1)*h,w:d,h:l},F[v]=b,t.fillStyle=B[v],v++,t.fillRect(b.x,b.y,b.w,b.h);for(_=[],w={},D=0;D<12;D++)w[D]=Or(new Date(P,D,1))-1+L;for(H=w[11]+kr(P,12)-1,v=0,p=0;p<I;p++)for(g=0;g<R;g++)L<=v&&v<L+G&&(k=w[$=(N=new Date(P,0,v-L+1)).getMonth()],b=F[v],k<=v&&v<7+k&&_.push({x1:b.x,y1:b.y-h/2,x2:b.x,y2:b.y+b.h+h/2}),v!==k&&0!==N.getDay()||_.push({x1:b.x-h/2,y1:b.y,x2:b.x+b.w+h/2+(v===k?h:0),y2:b.y}),H-7<v&&v<=H&&_.push({x1:b.x+b.w,y1:b.y-h/2,x2:b.x+b.w,y2:b.y+b.h+h/2}),v!==H&&6!==N.getDay()||_.push({x1:b.x-h/2-(v===H?h:0),y1:b.y+b.h,x2:b.x+b.w+h/2,y2:b.y+b.h})),v++;for(t.strokeStyle="black",t.lineWidth=2,S=0;S<_.length;S++)x=_[S],t.beginPath(),t.moveTo(x.x1,x.y1),t.lineTo(x.x2,x.y2),t.stroke();t.restore()}function Er(t){var r,n,e=zt(t.minAngle-90),i=zt(t.maxAngle-90),o=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=I,f=(i-e)/(u-o),c=[];return a.length>0&&a.forEach((function(t){r=t.start,n=t.end,c.push({start:f*(r-o)+e,end:f*(n-o)+e,color:t.color})})),c.unshift({start:e,end:i,color:s}),{paintRanges:c,fillColor:s,targetValueRadian:f*(t.targetValueOption.value-o)+e,currentValueRadian:f*(t.currentValueOption.value-o)+e,minValueRadian:e,maxValueRadian:i}}function Rr(t,r,n,e,i,o,u){var a,s,f,c,M,h,d,g=o.zoomFactor,p=t.currentValueOption.normalFontHeight*g,b=t.minValueOption.normalFontHeight*g,_=t.maxValueOption.normalFontHeight*g,w=t.minAngle,D=t.maxAngle,H=t.currentValueOption.normalFontWidth*g,N=F(w)>90||F(D)>90,$=F(w)>120||F(D)>120,k=yt*l(e,i);return u?(a=m(e/2*ct),s=m(i*ct),c=l(a,f=N?s/2:s),h=(i-(N?2*c:c))/2,d=.03*c,M={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio,currentValuePoint:y,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:b<h,enoughShowMaxLabel:_<h,moreThanSemiCircle:N},N?$?2*p/3<h-d-v(_,b)&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+c+d+p/2+v(_,b)},M.enoughShowCurrentLabel=!0):2*p/3<i/2-d&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+2*d+p},M.enoughShowCurrentLabel=!0):p<h-d&&H<e-2*k&&(M.currentValuePoint={x:M.x,y:M.y+p},M.enoughShowCurrentLabel=!0)):(a=m(e/2*ft),s=m(i*ft),c=l(a,f=N?s/2:s),M={x:r+e/2,y:n+i/2+(N?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio}),M}function Ir(t,r,n,e){return{x:t+d(n)*e,y:r+h(n)*e}}function Br(t,r){return F(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:G}:r.x>t.x?{x:r.x+et,y:r.y,textAlign:B}:r.x<t.x?{x:r.x-et,y:r.y,textAlign:L}:{x:r.x,y:r.y,textAlign:B}}function Lr(t,r,n,e,i,o,a){var s,f,c,y,l,g,p,b,_,w,D,H,N,$,k,S,x,P,C,O,j,R,I,z,K,J,W,U,q,Y,tt,et,it,ot,at,st=a.zoomFactor,ft=!!u(r.showLabel)||r.showLabel,ct=Rr(r,n,e,i,o,a,ft);if(!(ct.outerRadius<=0))return s={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},f=ct.innerRadius,c=ct.outerRadius,y=ct.currentValuePoint,l=ct.moreThanSemiCircle,g={x:ct.x,y:ct.y},b=(p=Er(r)).paintRanges,_=p.fillColor,t.save(),b.forEach((function(r){t.beginPath(),t.strokeStyle=A,t.moveTo(g.x,g.y),t.fillStyle=r.color||_,t.arc(g.x,g.y,c,r.start,r.end,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=A,t.strokeStyle=A,t.moveTo(g.x,g.y),t.arc(g.x,g.y,f,r.start-mt,r.end+mt,!1),t.lineTo(g.x,g.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(g.x,g.y),t.fillStyle=T,t.arc(g.x,g.y,c*X,0,2*M,!1),t.fill(),w=Ir(g.x,g.y,p.targetValueRadian,f),D=Ir(g.x,g.y,p.targetValueRadian,c*Q),xt(t,w.x,w.y,D.x,D.y,rt,nt,E),H=Ir(g.x,g.y,p.currentValueRadian,c*Q),kt(t,g.x,g.y,H.x,H.y,T,Z*c),ft&&(t.save(),t.beginPath(),t.textAlign=V,t.fillStyle=E,N=r.minValueOption.normalFontHeight*st,$=r.maxValueOption.normalFontHeight*st,k=r.minValueOption.normalFontWidth*st,S=r.maxValueOption.normalFontWidth*st,x=p.minValueRadian,P=p.maxValueRadian,C=r.currentValueOption.normalFontHeight*st,O=r.currentValueOption.normalFontWidth*st,j=void 0,R=void 0,I=void 0,ct.enoughShowCurrentLabel&&(Ct(t,y.x,y.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,G),s.showCurrentLabel=!0,j={x:y.x-O/2,y:y.y-C,width:O,height:C}),ct.enoughShowMinLabel&&F(d(x)*c)+k<i/2-ut&&(z=Ir(g.x,g.y,p.minValueRadian,c),Ut(R={x:(K=Br(g,z)).x-k,y:K.y,width:k,height:N},j)||(Ct(t,K.x,K.y+m(N),r.minValueOption.label,r.minValueOption.fontAfterZoom,L),s.showMinLabel=!0)),ct.enoughShowMaxLabel&&F(d(P)*c)+S<i/2-ut&&(J=Ir(g.x,g.y,p.maxValueRadian,c),Ut(I={x:(W=Br(g,J)).x,y:W.y,width:S,height:$},j)||(Ct(t,W.x,W.y+m($),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,B),s.showMaxLabel=!0)),ct.enoughShowTargetLabel&&(U=r.targetValueOption.normalFontWidth*st,q=r.targetValueOption.normalFontHeight*st,Y=r.targetValueOption.label,tt=c+3*q/2,D=Ir(g.x,g.y,p.targetValueRadian,tt),et=Br(g,D),it=p.targetValueRadian,ot=l?(o-2*tt)/2+tt:o-(o-c)/2,F(d(it)*tt)+U<i/2-ut&&F(h(it)*tt)+q/2+ut/2<ot&&(at=v(N,$)/2,Ct(t,et.x,et.y-(it>M?at:-at),Y,r.targetValueOption.fontAfterZoom,et.textAlign),s.showTargetLabel=!0)),t.restore()),t.restore(),s}function Gr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,M=t.currentValueOption.normalFontHeight*u,h=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,l=t.targetValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,p=.05*e,b=m(i*at),F=m(e*st),_={x:r+e*(1-st)/2,y:n+i*(at+(1-at)/2),graphWidth:F,graphHeight:b,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&(s<(i-b)/2&&h<(e-F)/2-p&&(_.minValuePoint={x:_.x-h,y:_.y+s/3},_.enoughShowMinLabel=!0),f<(i-b)/2&&d<(e-F)/2-p&&(_.maxValuePoint={x:_.x-d,y:_.y-b+f/3},_.enoughShowMaxLabel=!0),(c<(i-b)/2||c/2<b)&&l<(e-F)/2-p-v(h,d)&&(_.targetValuePoint={x:_.x-l-v(h,d),y:y},_.enoughShowTargetLabel=!0),(M<(i-b)/2||M/2<b)&&g<(e-F)/2-p&&(_.currentValuePoint={x:_.x+F+p,y:y},_.enoughShowCurrentLabel=!0)),_}function zr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphHeight/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.y-s*(n-i),height:s*(e-n),color:t.color})})),f.unshift({start:r.y,height:r.graphHeight,color:a}),{paintRanges:f,fillColor:a,targetValueY:r.y-s*(t.targetValueOption.value-i),currentValueY:r.y-s*(t.currentValueOption.value-i)}}function Kr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p=u.zoomFactor,b=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Gr(r,n,e,i,o,u),N=H.graphWidth,$=H.graphHeight;if(!(N<=0||$<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},h=(M=zr(r,H)).paintRanges,d=w.normalFontHeight*p,l=D.normalFontHeight*p,v=M.targetValueY,g=M.currentValueY,t.save(),h.forEach((function(r){Jt(t,m.x,r.start,N,-r.height,r.color)})),xt(t,m.x-(Q-1)*N,v,m.x+N,v,rt,nt,E),kt(t,m.x,g,m.x+N*Q,g,T,tt*$),b&&(t.save(),t.beginPath(),H.enoughShowMinLabel&&(Ct(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Ct(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-e+l/2>o||v-e-ot<0)&&(Ct(t,f.x,M.targetValueY+D.normalFontHeight*p/3,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-e+d/2>o||g-e-ot<0)&&(Ct(t,s.x,M.currentValueY+w.normalFontHeight*p/3,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Jr(t,r,n,e,i,o){var u=o.zoomFactor,a=t.showLabel,s=t.minValueOption.normalFontHeight*u,f=t.maxValueOption.normalFontHeight*u,c=t.targetValueOption.normalFontHeight*u,M=t.currentValueOption.normalFontHeight*u,h=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,g=t.currentValueOption.normalFontWidth*u,p=t.targetValueOption.normalFontWidth*u,b=.1*l(e,i),F=m(i*st),_=m(e*at),w={x:r+e*(1-at)/2,y:n+i*(1-st)/2,graphWidth:_,graphHeight:F,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&((g<3*(e-_)/4||g<_)&&M<(i-F)/2-ut&&(w.currentValuePoint={x:y,y:w.y-M/2},w.enoughShowCurrentLabel=!0),(p<3*(e-_)/4||p<_)&&c<(i-F)/2-v(s,f)&&(w.targetValuePoint={x:y,y:w.y+F+v(s,f)+c/4*3},w.enoughShowTargetLabel=!0),h<3*(e-_)/4&&s<(i-F)/2-b&&(w.minValuePoint={x:w.x-h/2,y:w.y+F+s},w.enoughShowMinLabel=!0),d<3*(e-_)/4&&f<(i-F)/2-b&&(w.maxValuePoint={x:w.x+_-d/2,y:w.y+F+f},w.enoughShowMaxLabel=!0)),w}function Vr(t,r){var n,e,i=t.minValueOption.value,o=t.maxValueOption.value,u=t.ranges,a=I,s=r.graphWidth/(o-i),f=[];return u.length>0&&u.forEach((function(t){n=t.start,e=t.end,f.push({start:r.x+s*(n-i),width:s*(e-n),color:t.color||a})})),f.unshift({start:r.x,width:r.graphWidth,color:a}),{paintRanges:f,fillColor:a,targetValueX:r.x+s*(t.targetValueOption.value-i),currentValueX:r.x+s*(t.currentValueOption.value-i)}}function Wr(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d,l,v,g,p=u.zoomFactor,b=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Jr(r,n,e,i,o,u),N=H.graphWidth,$=H.graphHeight;if(!(N<=0||$<=0))return a={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},s=H.currentValuePoint,f=H.targetValuePoint,c=H.minValuePoint,y=H.maxValuePoint,m={x:H.x,y:H.y},h=(M=Vr(r,H)).paintRanges,d=w.normalFontWidth*p,l=D.normalFontWidth*p,v=M.targetValueX,g=M.currentValueX,t.save(),h.forEach((function(r){Jt(t,r.start,m.y,r.width,$,r.color)})),xt(t,v,m.y,v,m.y+$*Q,rt,nt,E),St(t,g,m.y+$-1,g,m.y-$*(Q-1)-1,T,N*tt),b&&(t.save(),H.enoughShowMinLabel&&(Ct(t,c.x,c.y,F.label,F.fontAfterZoom,B,E),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Ct(t,y.x,y.y,_.label,_.fontAfterZoom,B,E),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-n+l/2+it>i||v-n-l/2-it<0)&&(Ct(t,v-D.normalFontWidth*p/2,f.y,D.label,D.fontAfterZoom,B,E),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(g-n+d/2+it>i||g-n-d/2-it<0)&&(Ct(t,g-w.normalFontWidth*p/2,s.y,w.label,w.fontAfterZoom,B,E),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Ur(t,r,n,e,i,o,u){t.save(),t.rect(n,e,i,o),t.clip(),0===r.gaugeType?Lr(t,r,n,e,i,o,u):1===r.gaugeType?Kr(t,r,n,e,i,o,u):2===r.gaugeType&&Wr(t,r,n,e,i,o,u),t.restore()}function qr(t,r,n,e,i,o,u,a){var s,f,c,y,m,M,h=[],d=t.length,l=0,v=u.fontPixelSize;if(o&&(l=v+3),0===d)return h;for(s=e/d,f=t[0].value,c=1;c<d;c++)f=Math.max(f,t[c].value);for(y=0;y<d;y++)m=n+i-l,(M=t[y].value/f*(i-l))<0&&(M=0),h.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-M,width:s*a,textWidth:s,height:M,axis:t[y].axis});return h}function Yr(t,r,n,e){t.save(),t.fillStyle=n;for(var i=0;i<r.length;i++)t.fillRect(r[i].x,r[i].y,r[i].width,r[i].height);t.restore()}function Xr(t,r,n,e){var i,o,u,a,s;for(t.save(),i=n.fontPixelSize,o=rn(n),t.textAlign="center",t.fillStyle=e,u=0;u<r.length;u++)a=void 0,s=void 0,a=r[u].x+r[u].width/2,s=r[u].y+r[u].height+5+i,t.save(),t.font=o,t.beginPath(),t.rect(r[u].textX,r[u].y+r[u].height+1,r[u].textWidth,i+3),t.clip(),t.textBaseline="bottom",t.fillText(r[u].axis,a,s),t.restore();t.restore()}function Zr(t,r,n,e){var i,o,u,a,s,f;if("none"!==e){for(t.save(),t.lineWidth=1,t.strokeStyle=e,t.beginPath(),i=0;i<r.length;i++)u=(o=r[i]).x,a=o.y,s=o.width,0!==(f=o.height)&&0!==s&&(kt(t,u,a,u+s,a),kt(t,u,a+f,u+s,a+f),r[i-1]&&r[i-1].height>=f&&1===n||kt(t,u,a,u,a+f),r[i+1]&&r[i+1].height>f&&1===n||kt(t,u+s,a,u+s,a+f));t.stroke(),t.closePath(),t.restore()}}function Qr(t,r,n,e,i){var o,u,a,s,f,c=!1;for(t.save(),t.font=i,u=(n-6)/(o=r.length),a=0,s=r;a<s.length;a++)if(f=s[a],t.measureText(f.axis).width>u){c=!0;break}return t.restore(),c}function tn(t,r,n,e,i,o,a){var s,f,c,y=r.barColor,m=r.values,M=r.paintLabel,h=r.barWidth,d=r.labelFontStyle,l=r.afterZoomFontStyle,v=r.edgeColor,g=r.labelColor;u(d)||(o<3*(s=l.fontPixelSize)||Qr(t,m,i,o,rn(l)))&&(M=!1),M&&u(d)&&(f=Math.floor(o/3>=12?12:Math.floor(o/3)),l.fontPixelSize=f,l.fontSize=f+"px",Qr(t,m,i,o,rn(l))&&(M=!1)),Yr(t,c=qr(m,n+3,e+3,i-6,o-6,M,l,h),y,v),Zr(t,c,h,v),M&&Xr(t,c,l,g)}function rn(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function nn(t,r,n,e,i,o,u){var a,s,f,c,y,m,M,h,d;t.save(),t.rect(n,e,i,o),t.clip(),a=r.clipX,s=r.clipY,f=r.clipWidth,c=r.clipHeight,y=r.paintX,m=r.paintY,M=r.paintWidth,h=r.paintHeight,d=r.img,f>0&&c>0&&M>0&&h>0&&t.drawImage(d,a,s,f,c,y,m,M,h),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=r.SparklineRender=r.Uzt=r.Hzt=r.zzt=r.oCt=void 0,e=n("./src/common/util/types.ts"),i=n("./src/common/util/colorhelper.ts"),o=n("./src/common/util/arrayhelper.ts"),u=e.lt.ht,a=i.ft.YGt,s=i.ft._,f=o.Uf.hD,r.oCt={},c=null,y=void 0,m=Math.floor,M=Math.PI,h=Math.sin,d=Math.cos,l=Math.min,v=Math.max,g=Math.round,p=Math.pow,b=Math.sqrt,F=Math.abs,_=Math.ceil,w="undefined",D="string",H=isNaN,N=parseFloat,$=Number.MAX_VALUE,k=new Date(""),S="#969696",x="#CB0000",P="#646464",C="#DCDCDC",A="white",T="black",O="blue",j="green",E="grey",R="red",I="lightgrey",B="left",L="right",G="center",z="top",K="bottom",J="middle",V="start",W="px Arial",U="-",q="+",Y="=",X=.05,Z=.03,Q=1.06,tt=.02,rt=4,nt=5,et=5,it=3,ot=10,ut=8,at=.8,st=.25,ft=.9,ct=.7,yt=.1,mt=1/45*M,Mt=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),ht=function(){function t(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}return t}(),dt=function(t){function r(r){var n=t.call(this,Ht(r.x,r.y))||this;return n.value=r.value,n}return wt(r,t),r}(Mt),lt="7ns",vt="5ns",gt="tukey",pt="bowley",bt="sigma3",r.zzt=Lr,r.Hzt=Kr,r.Uzt=Wr,Ft=function(){function t(t,r,n,e){this.X=t,this.Y=r,this.Width=n,this.Height=e,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}return t}(),_t=function(){function t(){this.Bzt=2,this.Lzt=k,this.Fzt=k,this.Pzt=$,this.Gzt=-$}return t.prototype.paint=function(t,r,n,e,i,o){var u,a,s,f=this;f.options=r,f.setting=r.settings,u=r.values,a=r.dateValues,s=r.zoomFactor,t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&f.c6(t,n,e,i,o,u,a,s),f.Vzt(t,n,e,i,o,u,a,s),f.Yzt(t,n,e,i,o,u,a,s),t.restore()},t.prototype.Zzt=function(t){return 0===this.options.sparklineType?3+this.Wzt(t)+1:3},t.prototype.Qzt=function(t,n){var e,i,u,a,s,m,M,h,d,v=this.Kzt;if(v)return v;if(v=this.Kzt=[],e=t.length,this.options.displayDateAxis){for(a=n.length,m=[],(s=l(e,a))>0&&(m=n.slice(0,s)),m.sort((function(t,n){return t===n?0:(t===r.oCt&&(t=0),n===r.oCt&&(n=0),t-n)})),M=m.length,h=void 0,d=void 0,i=0;i<M;i++)if(typeof(h=m[i])!==w&&h!==c){for(d=f(n,h);o.Uf.OS(v,d);)d=f(n,h,d+1);isNaN(h)||(u=t[d])!==y&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(d)}}else for(i=0;i<e;i++)typeof(u=t[i])!==w&&u!==c&&isNaN(u)&&u!==r.oCt||v.push(i);return v},t.prototype.Sl=function(t,n){var e=n[t];return typeof e===w||e===c?1===this.setting.options.displayEmptyCellsAs&&(e=0):e===r.oCt&&(e=0),e},t.prototype.c6=function(t,r,n,e,i,o,u,a){var s,f,y,m,M,h,d,l,v,g,p,b,F,_,D,H=this,N=H.Qzt(o,u),$=N.length-1;for($<0&&($=0),m=H.setting.options,M=H.linePos=[],p=m.displayEmptyCellsAs,s=0;s<$;s++)if(typeof(h=H.Sl(N[s],o))!==w&&h!==c){if(l=s+1,typeof(d=H.Sl(N[l],o))===w||d===c)if(1===p)d=0;else if(2===p)for(l=s+2;l<=$;l++)if(typeof(b=o[N[l]])!==w&&b!==c){d=b;break}typeof d!==w&&d!==c?(v=H.Jzt(N[s],{Width:e,Height:i},o,u,a),g=H.Jzt(N[l],{Width:e,Height:i},o,u,a),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:g.X+F,Y:g.Y+F},M[s]={P1:f,P2:y}):s++}if((_=M.length)>0)for(t.strokeStyle=H.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=H.Wzt(a),s=0;s<_;s++)(D=M[s])&&(t.beginPath(),f=D.P1,y=D.P2,t.moveTo(r+f.X,n+f.Y),t.lineTo(r+y.X,n+y.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,n){var e,i,o,u=this,a=u.options,s=u.setting.options,m=c,M=u.Sl(t,r),h=u.Qzt(r,n),d=h.length,l=a.getColor.bind(u);return typeof M!==w&&M!==c&&(u.Pzt!==$&&u.Gzt!==-$||u.qzt(r),M===u.Pzt&&s.showLow&&(m=l(s.lowMarkerColor)),M!==u.Gzt||!s.showHigh||typeof m!==w&&m!==c||(m=l(s.highMarkerColor)),typeof m!==w&&m!==c||(a.displayDateAxis?0===(e=f(h,t))&&s.showFirst&&(m=l(s.firstMarkerColor)):0===t&&s.showFirst&&(m=l(s.firstMarkerColor))),typeof m!==w&&m!==c||(a.displayDateAxis?(i=f(h,t))===d-1&&s.showLast&&(m=l(s.lastMarkerColor)):t===d-1&&s.showLast&&(m=l(s.lastMarkerColor))),M<0&&s.showNegative&&(typeof m===w||m===c)&&(m=l(s.negativeColor)),typeof m!==w&&m!==c||(0===(o=a.sparklineType)?s.showMarkers&&(m=l(s.markersColor)):(1===o||2===o)&&(m=l(s.seriesColor)))),m===y||m===c?"Transparent":m},t.prototype.Vzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,h,d,l,v,g,p,b=this,F={Width:e,Height:i},_=b.Qzt(o,u),w=_.length,D=b.options.sparklineType;for(p=0;p<w;p++)s=_[p],f=b.Xzt(s,o,u),c=b.Jzt(s,F,o,u,a),t.fillStyle!==f&&(t.fillStyle=f),0===D?(t.save(),y=r+c.X+c.Width/2,h=n+c.Y+c.Height/2,t.translate(y,h),t.rotate(45*M/180),t.fillRect(0-c.Width/2,0-c.Height/2,c.Width,c.Height),t.restore()):(d=r+c.X+c.Width/4,d=m(d),l=n+c.Y,v=c.Width/2,g=c.Height,t.fillRect(d,l,v,g))},t.prototype.Yzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,M,h,d,l=this,v=l.setting&&l.setting.options;v&&v.displayXAxis&&l.$zt(o,u)&&(s={Width:e,Height:i},f=l.Zzt(a),c=s.Width-l.Zzt(a),M=y=m(l.tVt(s,o,a))+.5,h=l.options.getColor(v.axisColor),(d=a)<1&&(d=1),t.strokeStyle!==h&&(t.strokeStyle=h),t.lineWidth!==d&&(t.lineWidth=d),t.beginPath(),t.moveTo(r+f,n+y),t.lineTo(r+c,n+M),t.stroke())},t.prototype.nVt=function(t){var r,n=this.eVt(t);return n===-$||(r=this.iVt(t))===$||(n===r||n*r<=0)},t.prototype.$zt=function(t,r){var n,e,i,o,u,a=this.nVt(t);if(2!==this.options.sparklineType)return a;if(e=(n=this.Qzt(t,r)).length,!a&&e>0)for(u=0;u<e;u++)if(typeof(o=t[i=n[u]])!==w&&o!==c)return!0;return a},t.prototype.rVt=function(t,r){var n=this.Lzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var n=this.Fzt;return isNaN(n&&n.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){var n,e,i,o,u=this,a=new Date(0,0,0),s=$,f=u.Qzt(t,r),y=f.length;for(o=0;o<y;o++)e=r[n=f[o]],isNaN(e)||(i=u.Sl(n,t))!==c&&typeof i===w||isNaN(i)||typeof e!==w&&e!==c&&(e>a&&(a=e),e<s&&(s=e));u.Fzt=a,u.Lzt=s},t.prototype.uVt=function(t,r,n,e){var i,o,u,a,s,f,c,y,m=this,M=m.rVt(r,n),h=m.aVt(r,n),d=[],l=m.Qzt(r,n),v=l.length;for(i=0;i<v;i++)(o=n[u=l[i]])&&!isNaN(o)&&d.push(o);if(d.sort((function(t,r){return t-r})),(a=d.length)>1&&M!==h){for(s=$,f=0,c=void 0,i=1;i<a;i++)(o=(c=d[i])-d[i-1])<s&&o>0&&(s=o),f+=o;return(y=(t.Width-m.Zzt(e)-m.Zzt(e))*s/f/2)<2&&(y=2),y}return(t.Width-m.Zzt(e)-m.Zzt(e))/2},t.prototype.sVt=function(t,r,n,e){var i,o=this;return o.options.displayDateAxis?o.uVt(t,r,n,e):(i=o.Qzt(r,n).length,(t.Width-o.Zzt(e)-o.Zzt(e))/i)},t.prototype.cVt=function(t,r,n,e,i){var o,u,a,s,c,y,M,h,d=this,l=d.Zzt(i);return d.options.displayDateAxis?(o=d.sVt(t,n,e,i),(u=d.aVt(n,e))===(a=d.rVt(n,e))?l+o/2:(s=e[r])?(c=t.Width-l-d.Zzt(i),c-=o,y=u.valueOf()-a.valueOf(),l+m((s.valueOf()-a.valueOf())/y*c)):0):(o=d.sVt(t,n,e,i),M=f(d.Qzt(n,e),r),m(h=l+o*M))},t.prototype.fVt=function(t,r){var n,e=this,i=t.Width-e.Zzt(r)-e.Zzt(r);return i=v(i,0),n=t.Height-e.Zzt(r)-e.Zzt(r),{Width:i,Height:n=v(n,0)}},t.prototype.qzt=function(t){var r,n,e=this,i=t.length;for(n=0;n<i;n++)typeof(r=t[n])!==w&&r!==c&&("number"!=typeof r&&(r=0),r<e.Pzt&&(e.Pzt=r),r>e.Gzt&&(e.Gzt=r))},t.prototype.eVt=function(t){var r,n,e=this;return e.Gzt!==-$&&e.Gzt||e.qzt(t),0===(n=(r=e.setting.options).maxAxisType)?e.Gzt:1===n?r.groupMaxValue:2===n?r.manualMax:e.Gzt},t.prototype.iVt=function(t){var r,n,e=this;return e.Pzt!==$&&e.Pzt||e.qzt(t),0===(n=(r=e.setting.options).minAxisType)?e.Pzt:1===n?r.groupMinValue:2===n?r.manualMin:void 0},t.prototype.lVt=function(t,r,n,e){var i=this.fVt(t,e),o=this.eVt(n),u=this.iVt(n),a=o-u,s,f;if(o===u){if(0===o)return 0;a=F(o)}return(s=n[r])||(s=0),s*(f=i.Height/a)},t.prototype.hVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;if(0===s)return a.lVt(t,r,n,e);if(1===s){if(i=n[r],1===a.setting.options.displayEmptyCellsAs&&(typeof i===w||i===c))return 0;if((o=a.lVt(t,r,n,e))>-a.Bzt&&o<a.Bzt){if(i>0)return o+a.Bzt;if(i<0)return o-a.Bzt}return o}return 2===s?typeof(i=n[r])===w||i===c||0===i||isNaN(i)?0:(u=a.fVt(t,e),i>=0?u.Height/2:-u.Height/2):void 0},t.prototype.dVt=function(t,r,n){var e,i,o=this,u=o.fVt(t,n),a=o.eVt(r),s=o.iVt(r);if(a===-$||s===$)return t.Height/2;if(e=a-s,a===s){if(0===a)return t.Height/2;e=a,a<0&&(a=0)}return i=u.Height/e,o.Zzt(n)+a*i},t.prototype.tVt=function(t,r,n){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,n)},t.prototype.vVt=function(t,r,n,e){var i,o,u,a=this,s=a.fVt(t,e),f=a.eVt(n),y=a.iVt(n),m=f-y;if(f===y){if(0===f)return 0;m=f}return i=s.Height/m,typeof(o=a.Sl(r,n))!==w&&o!==c||(o=0),f!==y&&f*y>0?(u=0,u=o>=0?(o-y)*i:(o-f)*i):o*i},t.prototype.mVt=function(t,r,n,e){var i,o,u,a=this,s=a.options.sparklineType;return 0===s?a.vVt(t,r,n,e):1===s?(i=a.vVt(t,r,n,e))>-(o=a.Bzt)&&i<o&&(typeof(u=a.Sl(r,n))!==w&&u!==c||(u=0),0!==u)?u>0?i+o:i-o:i:2===s?a.hVt(t,r,n,e):void 0},t.prototype.gVt=function(t,r,n,e,i){var o,u,a,s,f,c,y,M,h,d=this,l=d.sVt(r,n,e,i),g=d.cVt(r,t,n,e,i);return l<0&&(l=0),(l=m(l))%2==1&&(l+=1),o=d.hVt(r,t,n,i),u=d.tVt(r,n,i),a=d.eVt(n),s=d.iVt(n),f=0,a<0&&s<0?f=v(d.Zzt(i),u):(f=u,o>=0&&(f=u-o)),c=d.mVt(r,t,n,i),y=new Ft(g,f,l,F(c)),0!==o&&(M=d.Zzt(i),y.Y<M&&y.Bottom<M+1?y.Height=m(y.Height+1):(h=r.Height-d.Zzt(i),y.Bottom>h&&y.Y>h-1&&(y.Y=h-c,y.Height=c))),y},t.prototype.Wzt=function(t){var r=this.setting.options.lineWeight*t;return r<1&&(r=1),r},t.prototype.Jzt=function(t,r,n,e,i){var o,u,a,s,f,y=this,m=y.Wzt(i);return++m<2&&(m=2),o=y.gVt(t,r,n,e,i),0===y.options.sparklineType&&(o.X=o.X+(o.Width-m)/2,typeof(u=y.Sl(t,n))!==w&&u!==c?(u>=0?o.Y-=m/2:o.Y=o.Bottom-m/2,o.Width=m,o.Height=m):(o.Width=0,o.Height=0)),y.setting.options.rightToLeft&&(a=o.X,f=(s=r.Width-a)-o.Width,o=new Ft(f,o.Y,o.Width,o.Height)),o},t}(),r.SparklineRender=_t,r.SparklineExRenders={PIESPARKLINE:qt,AREASPARKLINE:Qt,SCATTERSPARKLINE:rr,BULLETSPARKLINE:ur,SPREADSPARKLINE:ar,STACKEDSPARKLINE:yr,HBARSPARKLINE:vr,VBARSPARKLINE:gr,VARISPARKLINE:pr,LOLLIPOPVARISPARKLINE:br,BOXPLOTSPARKLINE:Fr,CASCADESPARKLINE:Nr,PARETOSPARKLINE:$r,MONTHSPARKLINE:Tr,YEARSPARKLINE:jr,GAUGEKPISPARKLINE:Ur,HISTOGRAMSPARKLINE:tn,IMAGESPARKLINE:nn}},canvas:function(t){t.exports=canvas}},e={};function i(t){var r,o=e[t];return void 0!==o?o.exports:(r=e[t]={exports:{}},n[t].call(r.exports,r,r.exports,i),r.exports)}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t={},function(){var r,n,e,o,u,a=t;Object.defineProperty(a,"__esModule",{value:!0}),a.Slicers=a.Sparklines=a.Formatter=a.Commands=a.Common=void 0,r=i("./src/common/common.entry.ts"),a.Common=r,n=i("./src/plugins/commands/commands.entry.ts"),a.Commands=n,e=i("./src/plugins/formatter/formatter.entry.ts"),a.Formatter=e,o=i("./src/plugins/sparkline/sparkline.entry.ts"),a.Sparklines=o,u=i("./src/plugins/slicer/slicer.entry.ts"),a.Slicers=u}(),(r=void 0===r?{}:r).Spread=t}(),t.exports=r.Spread},"./node_modules_local/@spreadjs/js-sheets-common/index.js":(t,r,n)=>{t.exports=n("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},n={};function e(t){var i,o=n[t];return void 0!==o?o.exports:(i=n[t]={exports:{}},r[t](i,i.exports,e),i.exports)}t=e("./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||{});