@grapecity-software/spread-common 19.0.3 → 19.1.1

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 19.0.3
3
+ * SpreadJS Library 19.1.1
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,h,M,d=this&&this.hJr||(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]}),l=this&&this.dJr||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||d(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),r.Events=r.UserManager=r.UUIDGenerator=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"),m=n("./src/common/util/uuid-helper.ts"),Object.defineProperty(r,"UUIDGenerator",{enumerable:!0,get:function(){return m.UUIDGenerator}}),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),l(n("./src/common/util/common.ts"),r),h=n("./src/common/culture/cultureInfo.ts"),Object.defineProperty(r,"CultureInfo",{enumerable:!0,get:function(){return h.CultureInfo}}),Object.defineProperty(r,"CultureManager",{enumerable:!0,get:function(){return h.CultureManager}}),l(n("./src/common/util/functionhelper.ts"),r),M=n("./src/common/users/users.entry.ts"),Object.defineProperty(r,"UserManager",{enumerable:!0,get:function(){return M.UserManager}}),Object.defineProperty(r,"Events",{enumerable:!0,get:function(){return M.Events}})},"./src/common/culture/cultureInfo.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O=this&&this.vJr||(T=function(t,r){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},T(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}T(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),T;function E(t){return t.split("\xa0").join(" ").toUpperCase()}function j(t){var r,n,e=[];for(r=0,n=t.length;r<n;r++)e[r]=E(t[r]);return e}function R(t,r,n){var e=E(t),i=r.indexOf(e);return-1===i&&(i=n.indexOf(e)),i}function I(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 B(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 G(t,r,n){var e,i,o,u,a,f;if(!t)return[];for(e=[t[0]],i=0,o=B(t[0],r,n),u=1;u<t.length;u++)a=B(t[u],r,n),b[f=o+""+a]&&e[++i]===s&&(e[i]=""),e[i]+=t[u],o=a;return e}function L(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 z(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=(h=["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(M=["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(h,(function(t,r){c(M,(function(t,n){t<M.length-4&&l.push(r+" "+n)}))})),l=l.concat(d),c(d,(function(t,r){c(M,(function(t,n){t<M.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={})),b={"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},g=function(){function t(){this.instanceType="CultureInfo",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.register=function(r,n){t.registry[r]=n},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):G(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 G(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=j(r.DateTimeFormat.monthNames),r.eGt=j(r.DateTimeFormat.monthGenitiveNames)),R(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=j(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=j(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),R(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=j(r.DateTimeFormat.dayNames)),r.uGt.indexOf(E(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=j(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(E(t))},t.prototype.toInstanceJSON=function(){var t=this,r=["NumberFormat","DateTimeFormat","TextFormat","LocalNumberFormat","predefinedFormats","displayName","isJCKCulture","fontScriptCode","equalCharacters","TimelineDateOrder","TimelineDateSuffix"],n={cultureName:this.name(),instanceType:this.instanceType};return r.forEach((function(r){var e;void 0!==t[r]&&(n[r]=JSON.parse(JSON.stringify(t[r])))})),n.DateTimeFormat.qGt=void 0,n},t.fromInstanceJSON=function(r){var n=t.registry[r.instanceType],e=n?new n:new t;return r&&Object.assign(e,r),e.name=function(){return e.cultureName},e},t.registry={},t}(),r.CultureInfo=g,p=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,n=g.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=g.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][n];return o}return e},t.hGt=function(){var t,r=g.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=g.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=g.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,n,e,i=g.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=p,F="ENCulture",_=function(t){function r(){var r,n=t.call(this)||this;return n.instanceType=F,L.call(n,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],L.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 O(r,t),r}(g),g.register(F,_),w="JACulture",D=function(t){function r(){var r,n,e,i,o,u=t.call(this)||this;return u.instanceType=w,r={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"]}},n={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"},L.call(u,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",r,n]),e=["1","2","3","4","5","6","7","8","9","10","11","12",""],i=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],o=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],L.call(u,"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"],e,e,"\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'",i,i,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd",["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",o,"ggge/mmmm/d\u65e5"]),u.DateTimeFormat.eras=!0,u.DateTimeFormat.defaultDatePattern=u.DateTimeFormat.shortDatePattern+" "+u.DateTimeFormat.longTimePattern,u.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'],u.name=function(){return"ja-JP"},u.id=1041,u.displayName="Japanese (Japan)",u.isJCKCulture=!0,u.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_-;_-* "-"??_-;_-@_-'}},u.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],u.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},u.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 G(t,r,I)}},u.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],u}return O(r,t),r}(g),g.register(w,D),H="ZHCulture",$=function(t){function r(){var r,n,e,i,o,a=t.call(this)||this;return a.instanceType=H,r={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"]}},n={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"},L.call(a,"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",r,n]),e=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],i=["\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",""],o=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],L.call(a,"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"],e,e,"\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'",i,i,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d",["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",o]),a.DateTimeFormat.defaultDatePattern=a.DateTimeFormat.shortDatePattern+" "+a.DateTimeFormat.longTimePattern,a.name=function(){return"zh-cn"},a.id=2052,a.displayName="Chinese (China)",a.isJCKCulture=!0,a.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},a.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_ ;_ * "-"??_ ;_ @_ '}},a.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],a.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},a.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return G(t,r,I)}},a.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},a}return O(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(g),g.register(H,$),N="KOCulture",x=function(t){function r(){var r,n,e,i,o=t.call(this)||this;return o.instanceType=N,r={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"]}},n={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"},L.call(o,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,r,n]),e=["1","2","3","4","5","6","7","8","9","10","11","12",""],i=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""],L.call(o,"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"],e,e,"\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'",i,i,"\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"]),o.DateTimeFormat.defaultDatePattern=o.DateTimeFormat.shortDatePattern+" "+o.DateTimeFormat.longTimePattern,o.name=function(){return"ko-kr"},o.id=1042,o.displayName="Korean (Korea)",o.isJCKCulture=!0,o.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_-;_-* "-"??_-;_-@_-'}},o.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],o.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},o}return O(r,t),r}(g),g.register(N,x),k={invariant:new g,"en-us":new _,"ja-jp":new D,"zh-cn":new $,"ko-kr":new x},S={},C=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],P=["wmk1","wmk2"],A=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r,n){if(0===arguments.length)return t.RGt;r&&(r=r.toLowerCase(),(t.RGt!==r||n)&&(t.RGt=r,this.KPt++,z(t.RGt,t.OGt.getCultureInfo())))},t.prototype.addCultureInfo=function(t,r,n){var e,o,u,a,s;if(r&&r instanceof g){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;k[t.toLowerCase()]=r}n&&"object"==typeof n&&(s=t.toLowerCase(),S[s]=y(!0,{},n),this.KPt++)},t.prototype.getCultureInfoDict=function(){return k},t.prototype.getCultureInfo=function(r){var n,e,i;if(0===arguments.length)return k[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),e=f,n=k)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 S[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],P),c[e]&&this.LGt(c[e],P),c[i]&&this.LGt(c[i],P),c[o]&&this.LGt(c[o],P),c[u]&&this.LGt(c[u],C),(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,a,s=S[t.toLowerCase()];for(e in r)o.Uf.OS(C,e)||(u=null!==(i=this.PGt(s,e,n))&&"string"==typeof i&&"string"==typeof r[e],a=null!==i&&"object"==typeof i&&!Array.isArray(i),(u||a)&&(r[e]=i));r.wmt&&s.Functions&&this.GGt(s.Functions,r.wmt),r.d2t&&s.TableFunctions&&y(!0,r.d2t,s.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=k[t.RGt])||(n=new g),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=A.instance()},"./src/common/users/users.entry.ts":function(t,r,n){var e=this&&this.hJr||(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.dJr||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/common/users/users.ts"),r)},"./src/common/users/users.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Error_InvalidRemoteConfigurationForUserFetching=r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=r.Error_FailedToFetchUsers=r.Error_RemoteConfigurationForUserFetchingNotProvided=r.GUEST_USER=void 0,r.GUEST_USER="Guest",r.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",r.Error_FailedToFetchUsers="Failed to fetch users: ",r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",r.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},"./src/common/users/users.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l=this&&this.pJr||function(t,r,n,e){function i(t){return t instanceof n?t:new n((function(r){r(t)}))}return new(n||(n=Promise))((function(n,o){function u(t){try{s(e.next(t))}catch(t){o(t)}}function a(t){try{s(e.throw(t))}catch(t){o(t)}}function s(t){t.done?n(t.value):i(t.value).then(u,a)}s((e=e.apply(t,r||[])).next())}))},v=this&&this.gJr||function(t,r){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},e,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(n=0)),n;)try{if(e=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return n.label++,{value:a[1],done:!1};case 5:n.label++,i=a[1],a=[0];continue;case 7:a=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){n=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(6===a[0]&&n.label<o[1]){n.label=o[1],o=a;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(a);break}o[2]&&n.ops.pop(),n.trys.pop();continue}a=r.call(t,n)}catch(t){a=[6,t],i=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.UserManager=r.Events=void 0,e=n("./src/common/users/users.res.en.ts"),i=n("./src/common/util/common.ts"),o=n("./src/common/util/uuid-helper.ts"),u=n("./src/common/util/types.ts"),a=n("./src/common/util/arrayhelper.ts"),u.lt.Dh(i.SR.en,e),s=new i.ResourceManager(i.SR),f=s.getResource.bind(s),c=u.lt.ht,y=a.Uf.Gf,m=u.lt.tv,h=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"],M=function(){function t(){}return t.CurrentUserChanged="CurrentUserChanged",t}(),r.Events=M,d=function(){function t(t){var r=o.UUIDGenerator.secureUpperCaseUUID(),n={id:r,name:"",color:"#26A69A"};Object.defineProperty(n,"name",{get:function(){return f().GUEST_USER},enumerable:!0,configurable:!0}),this.Ewo=r,this.upo=[n],this.hpo=n.id,this.options=t,this.cpo=0,this.aT=new Map([[M.CurrentUserChanged,[]]])}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.configure=function(t){this.options=t},t.prototype.Hfo=function(t){var r,n=this.upo;for(r=0;r<n.length;r++)if(n[r].id===t)return m(n[r])},t.prototype.get=function(t){var r;return l(this,void 0,void 0,(function(){var n;return v(this,(function(e){switch(e.label){case 0:return(null===(r=this.options)||void 0===r?void 0:r.get)?t===this.Ewo?[2,this.Hfo(t)]:[4,this.options.get(t)]:[3,2];case 1:return(n=e.sent())&&this.ZP(n),[2,n];case 2:return[2,this.Hfo(t)]}}))}))},t.prototype.Tdo=function(t){t||(t=o.UUIDGenerator.secureUpperCaseUUID());var r=this.Hfo(t);return r||(r={id:t,name:f().GUEST_USER}),this.ZP(r),r},t.prototype.fpo=function(t){var r=this;Array.isArray(t)&&t.forEach((function(t){t&&!t.color&&(t.color=r.lpo(t.id))}))},t.prototype.dvo=function(t){var r;return l(this,void 0,void 0,(function(){var n,e;return v(this,(function(i){switch(i.label){case 0:return(null===(r=(n=this).options)||void 0===r?void 0:r.search)?[4,n.options.search(t)]:[3,2];case 1:return e=i.sent(),n.fpo(e),[2,e];case 2:return[2,[]]}}))}))},t.prototype.bind=function(t,r){this.aT.has(t)||this.aT.set(t,[]);var n=this.aT.get(t);Array.isArray(n)&&n.push(r)},t.prototype.current=function(t){var r,n=this;return c(t)||(r=n.hpo)!==t&&(n.hpo=t,Promise.all([n.get(r),n.get(t)]).then((function(e){var i=e[0],o=e[1];r===n.Ewo&&(n.upo=n.upo.filter((function(t){return t.id!==n.Ewo})),delete n.Ewo),n.dpo(i,o,r,t)})).catch((function(e){n.dpo(void 0,void 0,r,t)}))),n.hpo},t.prototype.dpo=function(t,r,n,e){var i=this;t||(t=i.Hfo(n)),r||(r=i.Hfo(e)),i.ki(M.CurrentUserChanged,{oldCurrentUser:t,newCurrentUser:r})},t.prototype.Ufo=function(){return y(this.upo)},t.prototype.unbind=function(t,r){if(this.aT.has(t)){var n=this.aT.get(t);if(!Array.isArray(n))return;r?n.splice(n.indexOf(r),1):n.splice(0)}},t.prototype.ki=function(t,r){if(this.aT.has(t)){var n=this.aT.get(t);if(!Array.isArray(n))return;n.forEach((function(n){n(t,r)}))}},t.prototype.xji=function(t){var r;t&&(this.fpo(t),this.upo=t||[])},t.prototype.Np=function(){return y(this.upo)},t.prototype.vpo=function(){var t,r=this.cpo,n=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:h.length;return this.cpo=(r+1)%n,r},t.prototype.ago=function(t){var r,n,e=0;if(!t||0===t.length)return e;for(r=0;r<t.length;r++)e=(e<<5)-e+(n=t.charCodeAt(r)),e&=e;return Math.abs(e)},t.prototype.ugo=function(t){var r,n=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)?this.options.colorScheme.length:h.length,e=this.ago(t);return e%n},t.prototype.lpo=function(t){var r,n,e,i=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)||h;return t?i[n=this.ugo(t)]:i[e=this.vpo()]},t.prototype.ZP=function(t){var r,n=this.upo;for(r=0;r<n.length;r++)if(n[r].id===t.id)return n[r]=t,void(t.color||(t.color=this.lpo(t.id)));t.color||(t.color=this.lpo(t.id)),n.push(t)},t.prototype.ZX=function(t,r){var n={id:t||o.UUIDGenerator.secureUpperCaseUUID(),name:r||f().GUEST_USER};return this.ZP(n),n},t.prototype.VP=function(t){this.upo=this.upo.filter((function(r){return r.id!==t}))},t.prototype.L0=function(){this.aT.clear(),this.upo=[],this.hpo=""},t}(),r.UserManager=d.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 h(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 M(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*h(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),h=o(o(f,c),y),M=m+h;a.HGt=s((240*M+255)/510+"",10),0===(r=m-h)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+M/2)/M+"",10):a.zGt=s((240*r+(510-M)/2)/(510-M)+"",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 M(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=h,t.QGt=M,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,c,y,m;if(t&&0<=r){for(i=[],o=void 0,u=void 0,s=0,f=a=Array.from(t.keys());s<f.length;s++)(c=f[s])>=r&&i.push(c);for(i.sort((function(t,r){return t-r})),o=i.length,u=0;u<o;u++)c=i[o-u-1],y=t.get(c),t.delete(c),m=c+n,t.set(m,y),e&&e(y,m)}}function c(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 y(t,r,n,e){var i,o,u,a,s,f,c,y,m,h;if(t&&0<=r){for(i=[],o=void 0,u=r+n,a=void 0,f=0,c=s=Array.from(t.keys());f<c.length;f++)y=c[f],t.has(y)&&(r<=y&&y<u?(e&&e(t.get(y),-1),t.delete(y)):y>=u&&i.push(y));for(i.sort((function(t,r){return t-r})),o=i.length,a=0;a<o;a++)y=i[a],m=t.get(y),t.delete(y),h=y-n,t.set(h,m),e&&e(m,h)}}function m(t,r){return t.hasOwnProperty(r)}function h(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.Cho=r.X8=r.who=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.who=f,r.X8=c,r.Cho=y,r.kh=m,r.ut=h},"./src/common/util/datetimehelper.ts":function(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g,p,F;function _(t,r){return-1!==t.indexOf(r)&&t.indexOf(r)===t.lastIndexOf(r)}function w(t,r){return new Date(t,r+1,0).getDate()}function D(t,r){var n,e=Number(r),i=(new Date).getFullYear();return!(t>12||0===t||3===r.length||4===r.length&&e<1900)&&(e>(n=w(i,t-1))?(e<30?"20":"19")+e+"/"+t+"/1":i+"/"+t+"/"+e)}function H(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 $(t,n,e,i){var o,a,s,f,y,m,h,v,b,g,p,F,_,w,D,x,k,S,C,P,A,O,T,E,j=e.DateTimeFormat,R=j.Calendar.convert;if(!n||!n.length)return e&&e.name.length?R?$(t,j.fullDateTimePattern,e):t.toLocaleString():t.toString();function I(){return y||m||(y=h.test(n),m=M),y}function B(t,r){return g?g[r]:H(t,r)}for(o=j.eras,s="",h=/([^d]|^)(d|dd)([^d]|$)/g,v=0,b=/\/|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&&(g=R.fromGregorian(t)),p=-2,F=-2,_={y4:""},w=0;D=b.lastIndex,x=b.exec(n),k=n.slice(D,x?x.index:n.length),_.y4="",v+=N(k,_),s+=_.y4,x;w++)if(v%2!=1)switch(S=B(t,0),C=t.getDay(),P=t.getHours(),A=t.getMinutes(),O=t.getSeconds(),T=t.getMilliseconds(),E=t.getTimezoneOffset(),x[0]){case"dddd":s+=j.dayNames[C];break;case"ddd":s+=j.abbreviatedDayNames[C];break;case"dd":y=M,s+=c(B(t,2),2);break;case"d":y=M,s+=B(t,2);break;case"MMMM":s+=j.monthGenitiveNames&&I()?j.monthGenitiveNames[B(t,1)]:j.monthNames[B(t,1)];break;case"MMM":s+=j.abbreviatedMonthGenitiveNames&&I()?j.abbreviatedMonthGenitiveNames[B(t,1)]:j.abbreviatedMonthNames[B(t,1)];break;case"MM":s+=c(B(t,1)+1,2);break;case"M":s+=B(t,1)+1;break;case"yyyy":case"yyy":s+=p>=0?u.XPt.DGt("ee",t,i):c(g?g[0]:S,4);break;case"yy":s+=p>=0?u.XPt.DGt("ee",t,i):c((g?g[0]:S)%100,2);break;case"y":s+=p>=0?u.XPt.DGt("e",t,i):((g?g[0]:S)%100).toString();break;case"hh":0===(f=P%12)&&(f=12),s+=c(f,2);break;case"h":0===(f=P%12)&&(f=12),s+=f;break;case"HH":s+=c(P,2);break;case"H":s+=P.toString();break;case"mm":s+=c(A,2);break;case"m":s+=A.toString();break;case"ss":s+=c(O,2);break;case"s":s+=O.toString();break;case"tt":s+=P<12?j.amDesignator:j.pmDesignator;break;case"t":s+=(P<12?j.amDesignator:j.pmDesignator).charAt(0);break;case"f":case"0":s+=c(T,3).charAt(0);break;case"ff":case"00":s+=c(T,3).substr(0,2);break;case"fff":case"000":s+=c(T,3);break;case"z":s+=((f=E/60)<=0?"+":"-")+d(l(f));break;case"zz":s+=((f=E/60)<=0?"+":"-")+c(d(l(f)),2);break;case"zzz":s+=((f=E/60)<=0?"+":"-")+c(d(l(f)),2)+":"+c(l(E%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(p===w-1){p=w;break}s+=u.XPt.DGt(x[0],t,i),p=w;break;case"e":case"ee":if(!o){s+=c(g?g[0]:S,4);break}if(F===w-1){F=w;break}s+=u.XPt.DGt(x[0],t,i),F=w;break;case"/":s+=j.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(x[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=x[0]}else s+=x[0];return s.toString()}function N(t,r){var n,e,i,o=0,u=h;for(n=0,e=t.length;n<e;n++)switch(i=t.charAt(n)){case'"':u?r.y4+="'":o++,u=h;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=h}return o}function x(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 k(){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 S(t,n,e){var i,u,a,s,f,c,m,h,M,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,c=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;(h=m.exec(i))!==y;)if(a.y4="",M=i.slice(f,h.index),f=m.lastIndex,c+=N(M,a),u+=a.y4,c%2!=1){switch(h[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,h[0])}else u+=h[0];return a.y4="",N(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 C(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=n("./src/common/util/regexhelper.ts"),f=a.lt.ht,c=i.zf.B9t,y=null,m=parseInt,h=!1,M=!0,d=Math.floor,l=Math.abs,v=new e.ResourceManager(e.SR,"Common"),r.getSR=v.getResource.bind(v),b={},g="January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec",p={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12},F=function(){function t(){}return t.L9t=function(t,r,n,e){return n||(n=u.CultureManager.Fe()),$(t,r,n,e)},t.Pe=function(t,r,n){return $(t,r,n||u.CultureManager.Fe())},t.Mjt=function(r,n,e){var i,o,u,a,s,f=h;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 y},t.yU=function(r,n,e){var i,o;return n||e||void 0===(o=b[r])?(i=n?[r,n]:[r],o=t.Mjt(r,e||u.CultureManager.Fe(),i),n||e||(b[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,c,M,d,l,v,b,g,p,F,_,w,D,H,$,N,k,C,P,A,O,T,E,j,R,I;if(t=t.trim(),(s=(a=S(e=n.DateTimeFormat,r,o=1041===n.id)).tUt.exec(t))===y)return y;for(f=a.QMt,c=y,M=y,d=y,l=y,v=y,b=0,p=0,F=0,_=0,w=y,D=h,H=h,$=0,N=f.length;$<N;$++)if(k=s[$+1])switch(f[$]){case"dd":case"d":if((l=m(k,10))<1||l>31)return y;break;case"MMMM":if((d=n.tGt(k))<0||d>11)return y;break;case"MMM":if((d=n.iGt(k))<0||d>11)return y;break;case"M":case"MM":case"%M":if((d=m(k,10)-1)<0||d>11)return y;break;case"e":case"ee":if((M=o&&"\u5143"===k?1:x(n,m(k,10)))<0||M>9999)return y;break;case"y":case"yy":case"yyy":case"yyyy":if((M=m(k,10))<0||M>9999)return y;break;case"h":case"hh":case"H":case"HH":if((b=m(k,10))<0)return y;break;case"m":case"mm":if((p=m(k,10))<0||p>59)return y;break;case"s":case"ss":if((F=m(k,10))<0||F>59)return y;break;case"tt":case"t":if(D=(C=k.toUpperCase())===e.pmDesignator.toUpperCase(),H=C===e.amDesignator.toUpperCase(),!D&&!H)return y;break;case"f":case"0":if((_=100*m(k,10))<0||_>999)return y;break;case"ff":case"00":if((_=10*m(k,10))<0||_>999)return y;break;case"fff":case"000":if((_=m(k,10))<0||_>999)return y;break;case"dddd":if((v=n.aGt(k))<0||v>6)return y;break;case"ddd":if((v=n.sGt(k))<0||v>6)return y;break;case"zzz":if(2!==(P=k.split(/:/)).length)return y;if((g=m(P[0],10))<-12||g>13)return y;if((A=m(P[1],10))<0||A>59)return y;w=60*g+(i.zf.fJ(k,"-")?-A:A);break;case"z":case"zz":if((g=m(k,10))<-12||g>13)return y;w=60*g;break;case"g":case"gg":case"ggg":if(!(O=k)||!e.eras)return y;if((c=u.XPt.kGt(f[$],O))<0)return y}if(E=(T=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=e.Calendar.convert)&&(j=R.fromGregorian(E)),R||(j=[E.getFullYear(),E.getMonth(),E.getDate()]),M===y?M=j[0]:M<100&&(e.eras&&c!==y?M=u.XPt.NGt(c||0,M):M+=M>=30?1900:2e3),d===y&&(d=j[1]),l===y&&(l=T?j[2]:1),R){if((E=R.toGregorian(M,d,l))===y)return y}else{if(E.setFullYear(M,d,l),E.getDate()!==l)return y;if(v!==y&&E.getDay()!==v)return y}return D&&b<12?b+=12:H&&12===b&&(b=0),E.setHours(b,p,F,_),w!==y&&(I=E.getMinutes()-(w+E.getTimezoneOffset()),E.setHours(E.getHours()+I/60,I%60)),E},t.Y0=function(t){var r,n=t-25569,e=new Date(864e5*n),i=C(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=C(s);if(l(i-f)>=60)if(r=new Date(o+60*(f-i)*1e3),i>f){if(-1===a||f===C(u))return r}else if(i<f&&(1===a||f===C(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(f(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=C(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t.eaa=function(r){var n,e,i,o,a,f,c,m,h,M,d,l,v,b,F,w,H,$,N,x;if(s.$T.qT("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})?$").test(r))return n=new Date(r),isNaN(n.valueOf())?y:n;if(e=r,r=r.trim(),o=(i=u.CultureManager.Fe())&&i.DateTimeFormat&&i.DateTimeFormat.shortDatePattern,(a=i&&i.normalizeDateTimeString&&i.normalizeDateTimeString(r))&&(r=a),r=r.replace(s.$T.qT("[ ]*([/\\-: ])[ ]*"),"$1"),o&&o.indexOf("d")<o.indexOf("M"))return t.yU(r);if(f=(new Date).getFullYear(),c=void 0,m=void 0,r.indexOf(":")>0){if(_(r,":")&&s.$T.qT("([0-2]?[0-9]):[0-5]?[0-9]\\.[0-9]*").test(r)&&(r=r.replace(s.$T.qT("([0-2]?[0-9]):"),"00:$1:")),h=s.$T.OJ("^(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)|(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)$"),!(M=r.match(h))||1!==M.length)return y;if(c=M[0],s.$T.OJ("\\.\\s+[AP]M").test(c))return y;if(c.endsWith(".")&&(c+="0"),0===(r=r.replace(h,"")).length)m="1899/12/30 "+c;else{if(" "!==r[0]&&" "!==r[r.length-1])return y;r=r.trim()}}if(!m){if(d=!0,s.$T.qT("^[0-9]{1,2}[-/]([0-9]{4}|0)$").test(r))m=r.replace(/[-/]/,"/1/");else if(s.$T.OJ("^(((".concat(g,")[\\s-/]?[0-9]{4}))$")).test(r))m="1"+r.replace(/[-/]/,"");else if(s.$T.OJ("^(([0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}))$").test(r)){if(l=r.split(/(\/|\-)/),!(F=D(v=Number(l[0]),b=l[2])))return y;m=F}else if(s.$T.OJ("^((".concat(g,")[/-\\s]?[0-9]{1,2})$")).test(r)){if(w=r.match(s.$T.OJ("^(".concat(g,")")))[0],!(F=D(v=p[w.substring(0,3).toUpperCase()],b=r.match(s.$T.OJ("\\d+"))[0])))return y;m=F}else if(s.$T.OJ("^([0-9]{1,2}[/-\\s]?(".concat(g,"))$")).test(r))d=!1,m=r.replace(/[-/\s]/,"")+f;else if(s.$T.OJ("^(([0-9]{4}/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}/[0-9]{4})|([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}-[0-9]{1,2}-[0-9]{4})|([0-9]{1,2}-(".concat(g,")-[0-9]{4})|([0-9]{1,2}/(").concat(g,")/[0-9]{4})|([0-9]{1,2}\\s+(").concat(g,")\\s+[0-9]{4}))$")).test(r))m=r;else if(s.$T.OJ("^(((0?[1-9]|10|11|12)-[0-9]{1,2}-[0-9]{1,2})|((0?[1-9]|10|11|12)/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/(".concat(g,")/[0-9]{1,2})|([0-9]{1,2}-(").concat(g,")-[0-9]{1,2})|([0-9]{1,2}\\s+(").concat(g,")\\s+[0-9]{1,2}))$")).test(r))$=+(H=r.split(/[-/\s]/))[2],H[2]=""+($<30?$+2e3:$+1900),m=H.join("/");else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]))$")).test(r))N=r.length,m=r.substr(0,N-1)+"200"+r[N-1];else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]{2}))$")).test(r))N=r.length,$=+r.substr(N-2),m=r.substr(0,N-2)+($<30?20:19)+$;else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]{4}))$")).test(r))m=r;else if(s.$T.OJ("^(".concat(g,"),?\\s*[0-9]{1,2},\\s+[0-9]{4}$")).test(r))m=r;else{if(!s.$T.OJ("^(".concat(g,"),?\\s*[0-9]{1,2},\\s+[0-9]{1,2}$")).test(r))return y;$=+r.match(/\d+$/)[0],m=r.replace(/\d+$/,""+($<30?2e3+$:1900+$))}if(m=m+" "+(c||"00:00:00"),d&&" "===e[0])return y}return x=new Date(m),isNaN(x.valueOf())?y:x},t._DT=function(n){var e,i=y,o=M;if(f(n)?i=t.Y0(0):n instanceof Date?i=new Date(n.valueOf()):"string"==typeof n?((e=t.yU(n))||(isNaN(n)?(e=t.eaa(n))||(o=h):(e=t.Y0(parseFloat(n)))||(o=h)),i=e):"number"==typeof n?i=t.Y0(n):o=h,o)return i;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){return!t.eaa(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t}(),r.ct=F},"./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,h,M){var d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O,T,E,j,R,I=n[o],B=n[u],G=r[o],L=r[u],z=a[o],K=a[u],J=1===B,U=1===L;if(G===I&&L===B){for(C=0,P=0,A=0,O=0,F=I*B,d=0;d<I;d++)for(l=0;l<B;l++){if(b=f(n[d][l]),g=f(r[d][l]),t&&(i(b)||i(g)))return m;C+=b,P+=b*b,A+=g=h(g),O+=b*g}for(T=F*O-C*A,_=s?(A*P-C*O)/(F*P-C*C):0,((E=(p=s?T/(F*P-C*C):O/P).toString()).indexOf("000000000000")>1||E.indexOf("999999999999")>1)&&(p=e.st.E8(p,12),_=e.st.E8(_,12)),w=[],d=0;d<z;d++)for(w[d]=[],l=0;l<K;l++){if(b=f(a[d][l]),t&&i(b))return m;w[d][l]=0===T?r[0][0]:M(e.st.Jme(p*b,_))}return c?new c(w):w}if(U&&G===I||1===G&&L===B){for(b=[],g=[],k=B+1,S=B+2,d=0;d<I;d++){if(_=f(H=U?r[d][0]:r[0][d]),t&&i(_))return m;g[d]=J?h(_):_}for(d=0;d<I;d++)for(b[d]=[],l=0;l<B;l++){if(_=f(n[d][l]),t&&i(_))return m;b[d][l]=_}for(j=[],p=0;p<k;p++)for(j[p]=[],F=0;F<S;F++)j[p][F]=0;for(v=0;v<I;v++)for(j[0][k]+=g[v],d=0;d<B;d++)for(H=d+1,j[0][H]+=b[v][d],j[H][0]=j[0][H],j[H][k]+=b[v][d]*g[v],l=d;l<B;l++)j[N=l+1][H]+=b[v][d]*b[v][l],j[H][N]=j[N][H];for(j[0][0]=I,D=R=s?0:1;D<k;D++){if(t){if(0===j[D][D]){for(x=!1,l=D+1;!x&&l<k;l++)if(0!==j[l][D]){for(v=0;v<S;v++)N=j[D][v],j[D][v]=j[l][v],j[l][v]=N;x=!0}if(!x)return y}}else{for(d=D;d<k&&0===j[d][D];)d++;if(d>=k)return y;for($=R;$<S;$++)H=j[D][$],j[D][$]=j[d][$],j[d][$]=H}for(H=1/j[D][D],$=R;$<S;$++)j[D][$]*=H;for(d=R;d<k;d++)if(d!==D)for(H=-j[d][D],$=0;$<S;$++)j[d][$]+=H*j[D][$];s||(j[0][k]=0)}for(w=[],U||(w[0]=[]),d=0;d<z;d++){for(U&&(w[d]=[]),H=j[0][k],l=0;l<B;l++){if(_=f(U?a[d][l]:a[l][d]),t&&i(_))return m;H+=j[l+1][k]*_}U?w[d][0]=M(H):w[0][d]=M(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,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O;function T(t,r,n,e){return r&&0!==r.length&&"i"!==r?E(t,r,n.NumberFormat,e):n&&n.name.length>0?t.toLocaleString():t.toString()}function E(t,r,n,e){var i;return Y(t,I(r),n,e)}function j(t,r){for(var n,e,i,o,u,a,s,f,c=v(b(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=M(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(N().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,h=d,M=d,v=d,b=y,g=[];for(n=0;n<t.length;n++){if(r=t.charAt(n),f)s+=r,'"'===r&&(g.push(s),s="",f=d);else if(c){if("E"===b||"e"===b){if(!(["+","-","0"].indexOf(r)>=0)){c=d,n--;continue}s+=r}else if("+"===b||"-"===b){if("0"!==r){c=d,n--;continue}s+=r}else if("0"===b){if("0"!==r){c=d,M||(M=l,a.fUt=R(s)),n--;continue}s+=r}}else if("*"!==b&&"_"!==b&&"\\"!==b||""===s)if("*"===r||"_"===r||"\\"===r)v=d,""!==s&&(g.push(s),s=""),s+=r;else if("'"===r)v=d,""!==s&&(g.push(s),s=""),g.push(r);else if('"'===r)v=d,f=l,""!==s&&(g.push(s),s=""),s+=r;else if(P.indexOf(r)>=0)v=l,P.indexOf(b)<0&&""!==s&&(g.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=d,a.d0++,""!==s&&(g.push(s),s=""),g.push(r);else if("\u2030"===r)v=d,a.cUt++,""!==s&&(g.push(s),s=""),g.push(r);else if(","===r)if(v){for(e=void 0,""!==s&&(g.push(s),s=""),i=l,o="",u=n+1;u<t.length;u++)if(e=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(P.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))&&P.indexOf(e)>=0&&(h=l)}else s+=r;else"E"===r||"e"===r?(v=d,c=l,""!==s&&(g.push(s),s=""),s+=r):(v=d,P.indexOf(b)>=0&&""!==s&&(g.push(s),s=""),s+=r);else""!==s&&(g.push(s),s=""),a.uUt=g,g=[],m=l,v=d;else s+=r,g.push(s),s="";b=r}return""!==s&&(c&&!M&&(a.fUt=R(s)),g.push(s)),h&&(a.rCt=l),m?a.sUt=g:a.uUt=g,a}function B(t,r,n,e){var i,o,u,a,s,f=r[0],c=1,y=0,m=d,h=t.length;for(i=0;i<h;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(N().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-h),t.push({type:o,value:t[i].value});return t.splice(0,h)}function G(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?h(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 L(t,r,n,e){var i=t;return r>0&&(i=et(i*g(100,r),15)),n>0&&(i=et(i*g(1e3,n),15)),e>0&&(i=et(i/g(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&&(b(t-r)<b(t)/O||(t=et(t,15),r=et(r,15),b(t-r)<b(t)/O))}function J(t,r){return K(t,-r)?0:t+r}function U(t,r,n){var e,i,o={value:t,exponentValue:0},u=j(t,"."),a=u.iUt,s=b(t),f=n?n.length:1;if(s>=1)a>f?(a-=f,o.value=t/g(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=g(10,f);10*s<e&&!K(10*s,e);)s*=10,o.exponentValue++;i=g(10,o.exponentValue),o.value*=i>F?0:i}return o}function V(t,r,n,e,i,o,u,a){var s,c,y,m,h,M,d,v,b,g,p,F,_=a.numberGroupSizes,w=a.numberGroupSeparator,H=a.negativeSign,$=a.percentSymbol,N=a.perMilleSymbol,x=e.fUt,k=D(r,0,1);for(k===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(h="",M=t[m],/^(0|#|\?)+/g.test(M)){if(y!==n){for(d=M.length,v=s-c-1;v>=0&&d>0;v--)h=(b=r.charAt(v))+h,d--,c++;for(g=d-1;g>=0;g--)c++,"0"===(p=M[g])?h=p+h:"?"===p&&(""!==h&&(o.push({type:"number",value:h}),h=""),o.push({type:"numberPlaceholder",value:p}));(y=M+y)===n&&c<s&&(h=r.substr(0,s-c)+h),""!==h&&o.push({type:"number",value:h})}}else e.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(M)?(u.replaceExponent=l,F="",F+=x.oUt,F+=S[x.aUt],F+=f(i.toString(),x.tUt),o.push({type:"exponent",value:F})):"_"===M[0]?o.push({type:"placeholder",value:M[1]}):"*"===M[0]?u.hasInfilling||(o.push({type:"fillingChar",value:M[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===M[0]?2===M.length&&o.push({type:"text",value:M[1]}):'"'===M[0]&&'"'===M[M.length-1]?M.length>2&&o.push({type:"text",value:M.substr(1,M.length-2)}):M===$?o.push({type:"percent",value:M}):M===N?o.push({type:"permille",value:M}):A[M]?o.push({type:"currency",value:M}):o.push({type:"text",value:M});k===H&&n&&o.push({type:"text",value:k}),e.rCt===l&&B(o,_,w,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function W(t,r,n,e,i,o,u,a,s){var c,y,m,h,M,d,v,b,g,p,F,_,w=s.numberDecimalSeparator,D=s.percentSymbol,H=s.perMilleSymbol,$=r.indexOf(w),N=i.fUt;for(($>0||e!==x||n!==k)&&u.push({type:"decimalSeparator",value:w}),c=-1!==$?r.substring($+1):"",y=0,m="",h=0;h<t.length;h++)if(M=t[h],/^(0|#|\?)+/g.test(M)){if(d="",m!==n){for(v=M.length,b=0,g=y;v>0&&c.length-y>0;)d+=c.charAt(g),v--,y++,b++,g++;for(p=b;v>0;)F=M[p],p++,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+=M}}else N&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(M)?(a.replaceExponent=l,_="",_+=N.oUt,_+=S[N.aUt],_+=f(o.toString(),N.tUt),u.push({type:"exponent",value:_})):"_"===M[0]?u.push({type:"placeholder",value:M[1]}):"*"===M[0]?(u.push({type:"fillingChar",value:M[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===M[0]?2===M.length&&u.push({type:"text",value:M[1]}):'"'===M[0]&&'"'===M[M.length-1]?M.length>2&&u.push({type:"text",value:M.substr(1,M.length-2)}):M===D?u.push({type:"percent",value:M}):M===H?u.push({type:"permille",value:M}):A[M]?u.push({type:"currency",value:M}):u.push({type:"text",value:M})}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,h,M,l,v,g,F,_,w=[];return t=L(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=U(t,r.fUt,u)).value,s=f.exponentValue),c=j(t,"."),b(t)>1&&c.iUt+c.rUt>15&&(t=et(t,15)),y=n.numberGroupSizes,m=n.numberGroupSeparator,h=n.numberDecimalSeparator,M=n.negativeSign,v=G(t,l=p(c.rUt,a.length),y,m,h,M),e||(v=q(v,h)),""===v?(w.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),w):(g={hasInfilling:d,infillIndex:-1,replaceExponent:d},"10"!==(F=v.split(h)[0])||isNaN(s)||(F="1",s+=(_=r&&r.fUt&&-1===r.fUt.aUt)?-1:1),i&&V(i,F,u,r,s,w,g,n),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&w.push({type:"number",value:F}),o&&W(o,v,a,u,r,s,w,g,n)),w)):w}function X(t,r){var n,e,i,o,a,f,c,m,d,l,v,b,g,p,F,_,w;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?M(t):t.match(/^0x[a-f0-9]+$/i)?h(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(""),","!==(b=",".replace(/\u00A0/g," "))&&(d=d.split(b).join("")),g=o+d,l!==y&&(g+="."+l),(p=g[g.length-1])===n.percentSymbol&&(g=D(g,0,g.length-1),-1===(F=(g=u.zf.s6t(g,"")).indexOf("."))&&(F=g.length),_="",_+=D(g,0,F-2),_+=".",_+=D(g,F-2,2),g=_+=D(g,F+1)),f!==y&&(""===(w=Z(f,n,1))[0]&&(w[0]="+"),g+="e"+w[0]+w[1]),g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?M(g):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!==b(v(t)-t))throw new Error(N().Exp_BadFormatSpecifier);var e=t>=0?t.toString(16):(C+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,h=parseInt,M=parseFloat,d=!1,l=!0,v=Math.floor,b=Math.abs,g=Math.pow,p=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)},$=new e.ResourceManager(e.SR),N=$.getResource.bind($),x="##################0",k="################",S={1:"+",0:"","-1":"-"},C=4294967295,P=["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$"},O=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()),T(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 M(this.Jf(t,r))},VGt:Q,v0:I,vUt:Y,ukt:K,Jme:J,mUt:nt,gUt:x,pUt:k,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=b(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 h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function M(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 b(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=b([]),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,h;e.push(r),!r.leaf&&e.length-1!==n;){for(y=h=i,o=0,u=r.children.length;o<u;o++)f=m(a=r.children[o]),(c=M(t,a)-f)<h?(h=c,y=f<y?f:y,s=a):c===h&&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=b(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=b([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,h;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,h=e,y=f<y?f:y):a===c&&f<y&&(y=f,h=e);return h},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=h(o)+h(u),c,y;for(c=r;c<n-r;c++)y=t.children[c],f(o,t.leaf?i(y):y),a+=h(o);for(c=n-r-1;c>=r;c--)y=t.children[c],f(u,t.leaf?i(y):y),a+=h(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){var r,n,e=t;for(e=e.replace(/[\t\n\r\f\v]/g,""),r=/javascript:/gi;e.match(r);)e=e.replace(r,"");try{if("javascript:"===(n=new URL(e)).protocol)return""}catch(t){}return e}}},"./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){if(!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 i,o,u;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(o in i=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(o)&&(u=t[o],t.hasOwnProperty(o)&&i[o]!==u&&(i[o]="object"==typeof u?r.lt.tv(u):u));return i}}},"./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/common/util/uuid-helper.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UUIDGenerator=void 0;var n=function(){function t(){}return t.wrap=function(t){return"{".concat(t.toUpperCase(),"}")},t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=16*Math.random()|0,n="x"===t?r:3&r|8;return n.toString(16)}))},t.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},t.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},t.isValidUpperCaseUUID=function(t){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(t)},t}();r.UUIDGenerator=n},"./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.Kro(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.Kro=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.hJr||(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.dJr||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,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O,T,E,j,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut=this&&this.vJr||(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(h().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(h().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 ht(t){return t=Mt(t,"[",""),Mt(t,"]","")}function Mt(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 bt(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 gt(t,r){var n,e,i,o;if(!t||t===K.oHt)return!1;for(e=bt(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 pt(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=ht(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],M,!1)&&i.indexOf("-")>-1?(r=V).Name="LocaleIDFormatPart":Dt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(M)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function wt(t,r){var n,e=!1;return gt(t=t?t.toString():K.oHt,["general"])?n=rt:X.a0(t)?n=X:gt(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():j(n),(r<4||4===r&&("ko-kr"===n||"ko-kr"===e.name()))&&(i=e.NumberFormat.dbNumber)?i[r]:d}function $t(t,r,n,e,o){var u,a=t;if(!T(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(p,"g"),F)),a=(a=a.replace("@"+b.cHt,i.ct.Pe(r,b.cHt))).replace("@"+b.fHt,i.ct.Pe(r,b.fHt)),a=e.sHt(a,u,!1)}return a}function Nt(t,r,n,e,i){var o,u,a,s,f,c,y;if(!T(e)&&(o=Ht(n,e.type,i),!T(o))){for(u=!1,a=void 0,s=j(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 xt(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 kt(t){var r,n,e=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!T(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),h=m.getResource.bind(m),M="$",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,b={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)},g=[b.hHt,b.fHt,b.cHt,b.dHt,b.vHt,b.mHt,b.gHt,b.pHt,b.bHt,b.yHt,b.wHt,b.MHt,b.CHt,b.SHt,b.THt,b.AHt,b.IHt,b.xHt,"ggg","gg","g","ee","e"],p="\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"]],$=["#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"],N=new RegExp("color\\s*(\\d+)","i"),x=o.lt.dt,k=o.lt.Nh,S=u.st,C=S.gUt+"."+S.pUt,P=S.mUt,A=S.L9t,O=S.E8,T=o.lt.ht,E=isNaN,j=function(t){return a.CultureManager.Fe(t)},R=function(t){return j(t).DateTimeFormat},I=function(t){return j(t).NumberFormat},B=function(t){return t&&t.toLowerCase()},G=function(t){return t&&t.toUpperCase()},L=function(){throw new Error(h().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},U=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},V=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],M,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(h().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=j(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}(),W=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=W,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),E(c)||(u=c);break}if(u===d&&u===l)throw new Error(h().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(h().Exp_TokenIllegal)}return t.prototype.sHt=function(r,n,i){var o,u,a,s,f,c,y,m,h,M;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,f=!1,h=r.length-1;h>=0;h--)M=u[h],!E(M)&&!lt(M," ",!1)||lt(M,".",!1)&&!f?(lt(M,".",!1)&&(f=!0),-1===a&&(a=h),s=h):s>-1&&a>-1&&(c=st(u,s,a-s+1),y=parseFloat(c),E(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),E(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(h().Exp_ValueIllegal)},t.formatNumberString=function(r,n,e){var i,o,u,a,s,f,c,y,m,h,M,d,l,v,b,g=r,p=0,F=0;if(2===arguments.length){for(o="";p<g.length;p++)i=st(g,p,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=g.length,f=!1,c=[];p<s;p++)(y=e.length-1-p)>-1?c.push(e[y].toString()):c.push(K.oHt);for(m=[],h=c.length-1;h>=0;h--)m[c.length-h-1]=c[h];for(c=m,M=!1,h=0;h<s;h++)i=st(g,h,1),F=parseInt(i,10),d=void 0,l=K.oHt,s-h-16>0?(d=n[F],l="",M=!0):h!==s-1&&h!==s-5&&h!==s-9&&h!==s-13?"0"===i?(d="",l="",u+=1):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[h],u=0):(d=n[F],l=c[h],u=0):"0"!==i&&0!==u?(d=n[0]+n[F],l=c[h],u=0):"0"!==i&&0===u||M?(d=n[F],l=c[h],u=0,M=!1):"0"===i&&u>=3?(d="",l="",u+=1):s>=11?(d="",u+=1):(d="",l=c[h],u+=1),(v=d+l===K.oHt)||(f=!1),h!==s-13||f||(l=c[h],f=!0),h!==s-9||f||(l=c[h],f=!0),h===s-1&&(l=c[h],f=!0),a=a+d+l;return 0===(b=parseInt(r,10))?n[0]:a}},t}(),X=function(){function t(t,r,n,e,i,o){pt.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,b.pHt,'"'+b.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,b.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,b.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,b.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,b.MHt,"dddd",!0,!0,u,!0),r&&n||(o.Vi(u.y4,b.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,b.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||j(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,b.cHt,'"@'+b.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,b.fHt,'"@'+b.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 L()},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,h=d;try{if((h=i.ct._DT(t))&&E(h.valueOf())&&(h=d),h?t=h:m=t.toString(),h&&(m=i.ct.L9t(h,y.PHt,y.j9t&&y.j9t.cultureInfo()||j(y.cultureName),y.O9t),y.hasJD&&(r=j(y.cultureName).DateTimeFormat.monthNames[h.getMonth()],m=e.zf.Vi(m,b.DHt,st(r,0,1))),y.KUt))for(n=24*(i.ct.o0(h)-i.ct.o0(b._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(n),T(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 $t(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,j(r.cultureName))))return o;try{return(u=i.ct._DT(n))&&!E(u)?u:(u=new Date(n),E(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=[b.NHt];for(o&&u?a.push(o+"/"+u):a.push(b.NHt),a.push(b.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=kt(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,h,M,d,l,v,b,g;if(o||u){for(f=[],c=!0,!t.hasDate(r)&&t.hasTime(r)&&(c=!1),y=!1,m=0;m<r.length;m++){if(h=r[m],t.hasTime(h)&&!y?c=!1:t.hasDate(h)&&!y&&(c=!0),o&&lt(h,n[0],s)&&c||u&&lt(h,n[0],s)&&!c){for(M=!0,d=0;d<n.length;d++)if(d+m>=r.length||!lt(n[d],r[d+m],s)){M=!1;break}if(l=m+n.length-1,M&&l+1<r.length){for(v=r[l],b=-1,b=l+1;b<r.length&&lt(v,r[b],s);b++);b>l+1&&(m=b,M=!1)}M&&!y&&f.splice(0,0,m)}'"'===h&&(y=!y)}if(a.y4=r,f.length>0){for(m=0;m<f.length;m++)g=f[m],a.y4=e.zf.VP(a.y4,g,n.length),a.y4=e.zf.Eit(a.y4,g,i);return!0}return!1}return!1},t.hasTime=function(t){return e.zf.hD(t,b.CHt[0],!0)>-1||e.zf.hD(t,b.IHt[0],!0)>-1},t.hasDate=function(t){return e.zf.hD(t,b.fHt[0],!0)>-1||e.zf.hD(t,b.bHt[0],!0)>-1},t.a0=function(t,r){return gt(t,r||g)},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(h().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=N.exec(t))&&(e=Number(n[1]),(e-=1)>=0&&e<$.length&&(t=$[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}pt.call(this,r,n,e),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=Mt(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,h,M,l,v,b,g,p,F,_,w,D,H;return x(r,"boolean")?r.toString().toUpperCase():(n=this,e=o.lt.uJ(r),E(e)||!isFinite(e)||E(r)?"string"==typeof r?r:d:(i=j(n.cultureName),n.eHt&&n.tHt?(m={value:0},h={value:0},M={value:0},l=n.GHt(),t.getFraction(e,l,m,h,M)?((v=t.getGCD(h.value,M.value))>1&&(h.value/=v,M.value/=v),n.nHt?(y="",1===M.value&&(m.value+=h.value,h.value=0,M.value=0),(b=P(A(m.value,n.nHt,i)))&&"0"!==b&&(y+=b,y+=" "),0===m.value&&e<0&&(y+=i.NumberFormat.negativeSign),0===e&&(y+="0"),a=n.tHt,s=parseFloat(a),!E(s)&&s>0&&(0!==h.value&&0!==M.value&&(h.value*=s/M.value),M.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),c=(f=Math.ceil(h.value))-h.value,h.value=c<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString())),g=n.eHt,p=parseFloat(g),E(p)||0!==p||((F=g.length)>(w=(_=h.value.toString()).length)?g=g.substr(0,F-(F-w)):F<w&&(_=_.substr(0,w-(w-F)),h.value=parseInt(_,10))),D=n.UHt(h.value,M.value,g,a,i),0===h.value&&(D=D.replace(/./g," "),""===b)?"0 "+D:""===(y+=D)?"0":y):(y="",H=m.value*M.value+h.value,a=n.tHt,(s=parseFloat(a))>0?(H*=s/M.value,M.value=s,y+=(H=(c=(f=Math.ceil(H))-H)<=.5&&c>=0?parseFloat(f.toString()):parseFloat((f-1).toString()))+"/"+M.value):y+=n.UHt(H,M.value,n.eHt,n.tHt,i),0===H?"0":y)):e.toString()):u=Nt(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,h,M,l,b,g=this;if(!t||t===K.oHt)return d;if("TRUE"===(r=G(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=g.eHt&&g.tHt,o=g.zHt(g.iHt).HHt,(i||o)&&(u=0,i&&g.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),!(E(f)||E(c)||(y=parseInt(f,10),m=parseInt(c,10),E(y)||E(m)||0===m)))))return u+y/m;if(t=g.VHt(t),t=g.YHt(t),M=(h=g.zHt(t)).HHt,l=h.$6t,g.ZHt(l)&&(l=e.zf.OUt(l,I(g.cultureName).numberGroupSeparator,"",!1),b=S.dUt(l,g.cultureName),!E(b)&&isFinite(b))){if(M&&(b=O(b/100,15)),n){if("-"===l.charAt(0)||"+"===l.charAt(0))return d;b=-1*v(b)}return b}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,M,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],U(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,M]).indexOf(a)<0))break;return f},t.prototype.YHt=function(t){var r,n;if(e.zf.fJ(t,M)){if((r=e.zf.VP(t,0,1)).indexOf(M)<0)return r}else if(n=I(this.cultureName).currencySymbol,M!==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=P(A(t,n,i)),u="0."+r,a="#."+e,s=P(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,h,M=0,d=0,l=0,b=0,g=Math.ceil;for(t>0?1===(b=t-g(t)+1)?(b=0,M=t):M=g(t)-1:t<0&&(M=g(t),b=g(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*b,y=Math.round(c),h=v((m=y/f)-b),!((!a||h<v(s-b))&&(a=!0,s=m,d=y,l=f,h<1e-6)));f++);return n.value=M,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){pt.call(this,n,e,i),arguments.length>0?(t.rHt(r)||L(),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=Mt(t=r.$Ut,"General",C),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(x(t,"string"))return i=dt(i=e.zf.Vi(u.formatString(),'"',"")),t;if(x(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,n,o,u,s,f,c,y,m,h,M,b,g,p,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=j(this.cultureName)).DateTimeFormat).dateSeparator,c=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,h=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)||h(n,y)||h(n,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(n[0].toUpperCase())>=0&&e.zf.OS(n,".",!1))&&(M=i.ct.yU(n)))return M;if((g="-"===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)&&(p=!0,"-"===(n=(n=n.substring(1,n.length-1)).trim()).charAt(0)||"+"===n.charAt(0)))return t;return(b=this.WHt().parse(n))!==d&&b!==l?(F=p&&x(b,"boolean"))?t:(p||g)&&x(b,"number")?-1*v(b):b:t},t}(),nt=function(){function t(t,r,n,e){var i,o=this;pt.call(o,r,n,e),i=vt(t,!1),r&&(i=Mt(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,h,M,v,b,g,p,F,_;for(r!==d&&r!==l||L(),e=r,(i=this).formatCached=r,o="",u="",s=!1,f=!1,c=!1,y=[],m=0;m<r.length;m++)'"'===(h=r[m])?(f=!f,u+=h):f?u+=h:"["===h?(s&&L(),u&&(o||(o=""),o+=u),u=h.toString(),s=!0):"]"===h?(s||L(),u?(M=(u+=h).toString(),(v=_t(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(M),M)),o+=u):M===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),c=!0):i.addPart(v,M):(o+=b=t.partToNormalStr(M),e=Mt(r,M,b)),u=""):L(),s=!1):u+=h;u?s?L():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(n=i.localeIDFormatPart.cultureInfo().name()),F=(p=wt(o,g=i.conditionalFormatPart))._type,_=p.uHt?e:o,F?i.E9t=new F(_,i.localeIDFormatPart,i.dbNumberFormatPart,n,y.length>0?y:d,c):L()},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(h().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(h().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var n=ht(r);return t.checkFormatter(n),n},t.partToNormalStr=function(r){var n=t.preProcessPart(r);return n[0]===M&&(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(h().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 x(t,"TimeSpan")?s(u.longTimePattern):x(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":C):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,n){var u,a,s,f,c,y,m,h,M,l,v,b,g,p,F,_,w,D,H,$,N,k,S,C,P,A=this,O=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),x(a,"DateTime")||x(a,"TimeSpan")){for(f=(s=et()).pattern,c=s.formatter,(h=(m=(y=j(A.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(f=f.concat([h]),c=c.concat([h[0]])),"ja-JP"===y.name()&&(f=f.concat([m.eraFormatter]),c=c.concat(["ge.M.d"]),M=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),f=f.concat([M]),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'])),b=0;b<f.length;b++)for(g=f[b],p=0;p<g.length;p++)if(F=g[p],(_=i.ct.yU(t,F))&&_-a===0)return new r(c[b])}else if(o.lt.q8(a,A.cultureName)){if(D=(w=I(A.cultureName)).currencySymbol,H=w.numberDecimalSeparator,$=w.percentSymbol,N=w.numberGroupSeparator,k="E",P=(C=(S=e.zf.OS)(u,H))?".00":"",u[0]===D)return O(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",D,P));if(S(u,k,!0))return O("0.00E+00");if(u[0].toString()===$||u[u.length-1].toString()===$)return O(K.I5("0{0}%",P));if(S(u,N))return O(K.I5("#,##0{0}",P))}return O("General")},r.prototype.format=function(t,r){var n,e,i,u,a,s,f;if(x(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&&x(t,"string")&&(s=t):(s=u.value)===l&&(f=!n.lHt&&u===n.getFormatter(_._text),s=u.format(t,e||f)),r&&(r.content=k(s)?s:[{type:"text",value:s}]),k(s)&&(s=S.mUt(s))}catch(r){x(t,"string")&&(s=t.toString())}return s}return e&&i<0?"-".toString():x(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)&&L(),e.formatters=[],t=xt(i),e.lHt=1===t.length,(!t||t.length<1||t.length>4)&&L(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?L():this.hasAt=!0),n=new it(t[r],e.cultureName),e.formatters.push(n);e.getFormatter(_.EHt)||L(),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,h=this;if(h.nzt(),n=(r=h.getFormatter(_.EHt))&&r.conditionalFormatPart,e=h.getFormatter(_._text),n&&(_.OHt=2,this.hasAt||(_._text=3)),"string"==typeof t&&E(t))return e||(n?t:r);if(o.lt.q8(t,h.cultureName)||x(t,"boolean")){if(i=h.getFormatter(_.jHt),u=h.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,h.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}(W),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.bHr=t,this.SYr=t.jbi()}return t.prototype.TYr=function(t){this.SYr.type===t?this.SYr=this.bHr.jbi():(0,e.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.SYr.type;)t.push(this.xYr()),t.length>4&&(0,e.throwError)();return{type:"numberFormat",body:t}},t.prototype.xYr=function(){for(var t,r=[];"semicolon"!==this.SYr.type&&"EOF"!==this.SYr.type;)"symbol"===(t=this.SYr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.SYr.type&&this.TYr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.SYr.value;return r===e.ASTERISK?(this.TYr("symbol"),t={type:"asterisk",body:this.SYr.value},this.TYr("char")):r===e.BACKSLASH?(this.TYr("symbol"),t={type:"char",body:this.SYr.value},this.TYr("char")):r===e.UNDERLINE?(this.TYr("symbol"),t={type:"underline",body:this.SYr.value},this.TYr("char")):(t={type:"symbol",body:this.SYr.value},this.TYr("symbol")),t},t.prototype.yHr=function(){var t,r=this.SYr.type;return"char"===r?(t={type:"char",body:this.SYr.value},this.TYr("char")):"text"===r&&(t={type:"text",body:this.SYr.value},this.TYr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,n){var e=this&&this.hJr||(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.dJr||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,h;function M(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(x(t)===u)r.value=t;else if(x(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if(x(t)!==a)return!1;if(0===k(t=t.trim()))return!1;if(n=!1,"%"===t.charAt(k(t)-1)&&(n=!0,t=t.substr(0,k(t)-1)),k(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,h,M,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,h=void 0,M=0;M<k(o)&&(h=o[M],l&&h===t.lzt||(e[h]?(N(c[d=t.columnNames[h]])&&(c[d]=t.getColumnIndex(d)),f=t.fue(c[d],y),m=!e[h][f]):n[h]&&(m=!n[h][y]),!m));M++);!m&&l&&(u?(N(c[d=t.columnNames[h]])&&(c[d]=t.getColumnIndex(d)),m=!u[f=t.fue(c[d],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(M=0;M<k(r);M++)r[M]&&i.push(M)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function b(t){var r,n,e=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,n=0;n<k(r);n++)e[(r[n]+"").toUpperCase()]=n}function g(t,r){var n,e,i,o,u,a,s,f=t.vzt,c=t.pzt,y=t.mzt,m=t.gzt,h=m[r]=[];for(t.bzt=[],t.xIr(r,[]),f[r]=[],c[r]={},y[r]=[],n={},e=0;e<t.SIr();e++)o=M(i=t.JNr(e,r))?i.text.trim():i,t.TIr(r,o),(u=n[v(o)])?(u.list.push(e),h[e]=u.index):(a=[e],f[r].push(o),y[r].push(a),s=k(y[r])-1,c[r][o]=s,h[e]=s,n[v(o)]={list:a,index:s})}function p(t,r,n){var e,i,o,u,a,s,f,c,y,m,h,d,l=t.yzt,v=t.getColumnIndex(r),b=[];if(!v)return b;if(e=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!e)return b;for(l[v]||t.Czt(v),o=[],u=l[v],a=0;a<k(u);a++)f=M(s=t.JNr(a,v))?s.value:s,o[u[a]]=f;for(c=t.Szt[v],a=0;a<k(e);a++){for(y=e[a],m=!1,d=(h=t.Tzt(o,y)).start;d<=h.end;d++)if(i[c[d]]){m=!0;break}m!==n&&b.push(y)}return b}function F(t,r){var n,e,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(n=k(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=k((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,h=k(m);for(n=0;n<h;n++)if(m[n]!==r)for(e=_(t,m[n]),i=0;i<k(e);i++)for(o=t.getRowIndexes(m[n],e[i]),u=0;u<k(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},h=t.SIr(),n=0;n<h;n++)s=t.getExclusiveRowIndex(r,n),y[n]||(a[s]=!0);for(f=k(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),h=t.yzt;for(h[m]||t.Czt(m),i=[],o=h[m],u=0;u<k(o);u++)s=M(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(f=[],u=0;u<k(n);u++)for(c=t.Tzt(i,n[u]),y=0;y<k(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<k(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 $(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function N(t){return t===i||t===o}function x(t){return typeof t}function k(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=k(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!(!N(t)&&""!==t||!N(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():x(t)===a&&x(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,n){var e=x(r),i=x(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=N(r)||""===r||x(r)===u&&isNaN(r),a=N(n)||""===n||x(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,h=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 k(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=k(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<k(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,b(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,h=new Array(k(m.columnNames)),d=m.Azt,v=m.vzt,b=m.uzt,p={};for(r=0;r<k(t);r++)e=(n=t[r]).data,i=n.columnName,o=n.row,N(p[i])&&(p[i]=m.getColumnIndex(i)),u=p[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,e),a=M(e)?e.text:e,m.DIr(u)&&m.jIr(u,o,a),h[u]=!0;for(s=0;s<k(h);s++)if(h[s]){for(f=d[s],d[s]=f?[]:void 0,b[s]=f?[]:void 0,c=[],r=0;f&&r<k(f);r++)c.push(v[s][f[r]]);for(g(m,s),r=0;r<k(c);r++)y=m.pzt[s][c[r]],d[s].push(y),b[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<k(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,h,M,d,l,v,b=this,g=k(b.columnNames),p=b.vzt,F=b.mzt,_=b.gzt,w=b.uzt,D=b.Azt,H=b.izt,$=b.rzt,N=b.Mct;for(b.bzt=[],b.kIr(t,r),i=0;i<g;i++){for(e=0;e<r;e++)b.DIr(i)&&b._Ir(i,t);if(s=void 0,a=p[i]){for(f=o,c=0;c<k(a);c++){for(y=F[i][c],h=0;h<k(y);h++)y[h]>=t&&(y[h]+=r);m.isEquals(a[c],o)&&(f=y,s=c)}for(f||(f=[],a.push(o),s=k(a)-1,b.pzt[i][o]=s,F[i].push(f),w[i]&&-1===N.indexOf(i)&&(w[i][s]=!0,D[i].push(s))),M=t;M<t+r;M++)f.push(M);for(u=t;u<t+r;u++)_[i].splice(u,0,s)}}for(d=!0,e=0;e<k(N);e++)l=_[i=N[e]][t],!0!==w[i][l]&&(d=!1);for(e=0;e<k($);e++)$[e]>=t&&($[e]+=r);for(u=b.SIr()-1;u>=t+r;u--)H[u]=H[u-r];for(v=k(N)>0,u=t;u<t+r;u++)d&&$.push(u),H[u]=!v;n||b.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,h=y.vzt,M=y.uzt,d=k(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<k(o);e++){for(a=y.getRowIndexes(y.columnNames[i],o[e]),s=!0,f=0;f<k(a);f++)if(a[f]<t||a[f]>=t+r){s=!1;break}s||u.push(h[i][o[e]])}m[i]=[],M[i]=[]}if(g(y,i),o&&n)for(e=0;e<k(u);e++)c=y.pzt[i][u[e]],m[i].push(c),M[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,h=t+r;for(n=t;n<h;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<k(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,h=this;for(h.DIr(t)||g(h,t),r=h.SIr(),n=[],e=0;e<r;e++)o=M(i=h.JNr(e,t))?i.value:i,n.push(o);for(u=m.quickSort(n),a=h.bzt[t]=[],s=h.Szt[t]=[],f=h.yzt[t]=[],c=0;c<k(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)||g(f,c),f.jEe(c)}return[]},t.prototype.aggregateData=function(t,r,n){var e,o,u,a,s,f,c,y,m,h=this,M=h.getColumnIndex(t);return M<0?i:(h.bzt[M]||h.Czt(M),a=k(u=h.bzt[M]),e=(s=h.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=h.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=k(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]||g(r,e),n[e]):[]},t.prototype.getRowIndexes=function(t,r){var n=this,e=n.getColumnIndex(t);return e>=0?(n.gzt[e]||g(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]||g(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<k(a);e++)i=a[e],N(o=u.fue(s,i))||(n[o]?n[o]++:(n[o]=1,r.push(o)))},t.prototype.getFilteredRanges=function(t){return p(this,t,!1)},t.prototype.getFilteredOutRanges=function(t){return p(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<k(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&&$(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(){$(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,n,e=this;e.ezt&&$(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=h},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,n){var e=this&&this.hJr||(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.dJr||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,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C,P,A,O,T,E,j,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt,dt,lt,vt,bt,gt,pt,Ft,_t,wt=this&&this.vJr||(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 $t(t,r,n,e){return{x:t,y:r,width:n,height:e}}function Nt(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 xt(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 kt(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 St(t,r,n,e,i,o,u,a){var s,f,c,y,m,h,M;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=p(g(e-r,2)+g(i-n,2))),y:(i-n)/f},y=0,m=0;y<f;)y+=h=l(s[m%2],f-y),(M=++m%2)&&t.moveTo(r,n),r+=h*c.x,n+=h*c.y,M&&t.lineTo(r,n);t.stroke()}t.restore()}function Ct(t,r,n,e,i,o,u,a,s,f,c,y){r?xt(t,n,e,i,o,c,y):xt(t,u,a,s,f,c,y)}function Pt(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)),xt(t,r,n,e,i,o,u)}function Ot(t,r,n,e,i,o,u,a,s,f){var c,y,m,M;switch(o=Math.round(o),u=Math.round(u),s){case 0:u=Math.round(n+a),M=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u-Math.sin(h/3)*a);break;case 1:o=Math.round(r+e-a),m=Math.round(o),M=Math.round(u+a),c=Math.round(o+Math.sin(h/3)*a),y=Math.round((u+M)/2);break;case 2:u=Math.round(n+i-a),M=Math.round(u),m=Math.round(o+a),c=Math.round((o+m)/2),y=Math.round(u+Math.sin(h/3)*a);break;case 3:o=r+a,m=Math.round(o),M=Math.round(u+a),c=Math.round(o-Math.sin(h/3)*a),y=Math.round((u+M)/2)}t.beginPath(),t.moveTo(o,u),t.lineTo(c,y),t.lineTo(m,M),t.closePath(),t.fillStyle=f,t.fill()}function Tt(t,r,n,e,i){t.beginPath(),t.fillStyle=i,t.arc(r,n,e,0,2*Math.PI),t.fill()}function Et(t,r,n,e,i,o){if(r){var u=i/2;Tt(t,n+u,e+u,u,o)}else Jt(t,n,e,i,i,o)}function jt(t,r,n,e,i,o,u,a,s,f,c,y,m,h,M){var d,l,v,b,g,p;s?(d=Math.floor(r+.5*e),l=Math.floor(a?f-c:f),v=Math.floor(y),b=Math.floor(c),g=Math.floor(d-h/2),p=Math.floor(a?l-h/2:l+b+h/2),At(t,d,l,d,l+b,o,v)):(d=Math.floor(a?f:f-c),l=Math.floor(n+.5*i),v=Math.floor(c),b=Math.floor(y),g=Math.floor(a?d+v+h/2:d-h/2),p=Math.floor(l-h/2),At(t,d,l,d+v,l,o,b)),m?Rt(t,r,n,e,i,g,p,h,s,a,o):s?Et(t,M,g,a?p:p-=h,h,u):Et(t,M,a?g-=h:g,p,h,u)}function Rt(t,r,n,e,i,o,u,a,s,f,c){t.save(),Ot(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,h){var M,d,l,v=4,b=void 0;t.save(),t.beginPath(),t.rect(r,n,e,i),t.clip(),t.font=s+V,t.fillStyle=O,t.fillStyle="black",f?(t.textBaseline=z,(b=s+(M=m<h?h:m)+o+v+h/2)>0?(t.textAlign=B,c?t.fillText(a,r+e/2+h/2,y-M/2):t.fillText(a,r+e/2+h/2,y+M/2)):(t.textAlign=L,c?t.fillText(a,r+e/2,y-M-h/2-s):t.fillText(a,r+e/2,y+M+h/2+v))):(t.textBaseline=J,(b=(d=t.measureText(a).width)+m+u+v+h/2)>0?d>m+h/2?c?(t.textAlign=G,t.fillText(a,y-v,n+i/2)):(t.textAlign=B,t.fillText(a,y+h/2,n+i/2)):(t.textAlign=L,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+h/2+v,t.fillText(a,l,n+i/2)):(t.textAlign=G,l=y-m-h/2-v,t.fillText(a,l,n+i/2))),t.restore()}function Bt(t){return i.ft.rp(s(t))<127.5?A:O}function Gt(t,r,n,e,i,o,a,s){var f,c,y,m,h=s;return u(s)&&(h=i),a?(f=r+h+o,y=e-2*h,c=t+i,m=n-2*i):(f=t+h,y=n-2*h,c=r+i,m=e-2*i),{left:f,top:c,width:y,height:m}}function Lt(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*h/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=$(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=b(r+e),a=b(n+i);r=b(r),n=b(n),e=b(u-r),i=b(a-n),t.beginPath(),t.fillStyle=o,t.fillRect(r,n,e,i),t.fill()}function Ut(t,r,n){return t=l(t,r),t=v(t,n)}function Vt(t,r,n,e,i){t.save(),t.rect(r,n,e,i),t.clip()}function Wt(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,b=e+o/2,g=5,p=l(i,o)/2-g,_=-.5*h,w=v+p*d(_),D=b+p*M(_),$=[],N=[];if(!(p<=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=Lt(s),t.save(),m=0;m<f;m++)a=_+s[m]/y*2*h,t.beginPath(),t.moveTo(v,b),t.lineTo(w,D),t.arc(v,b,p,_,a,!1),t.lineTo(v,b),t.fillStyle=c[m],t.fill(),$.push(w),N.push(D),w=v+p*d(_=a),D=b+p*M(_);for(m=0;m<f;m++)xt(t,v,b,$[m],N[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,h,M,d,g,p,F,_,D,$,N,x,k,C,P,A,O,E,j,R,I,B,G,L,z,K,J,U;if(t.save(),a=r.points,s=r.mini,f=r.maxi,y=r.line1,m=r.line2,h=r.colorPositive,M=r.colorNegative,d=5,a=Kt(a,(function(t){return!u(t)&&!H(t)&&isFinite(t)})),h=u(h)?"#787878":h,M=u(M)?S:M,P=Nt(a,!1),f=u(f)?P:f,p=v(f,P),A=Nt(a,!0),s=u(s)?A:s,g=l(s,A),F=(F=(F=0)>(p=p<0?0:p)?p:F)<(g=g>0?0:g)?g-1:F,_=a.length,O=Gt(n,e,i,o,d),D=O.left,$=O.top,N=O.width,x=O.height,k=Zt(N/(_-1)),E=[],C=Zt((p-g)/x))for(I=void 0,B=void 0,G=$+Zt((p-F)/C),L=void 0,z=void 0,K=0;K<_;K++)I=a[K],L=D+k*K,z=$+Zt((p-I)/C),0===K&&E.push(new dt(Xt(L,G,F))),K>0&&I*a[K-1]<0&&(R=E[E.length-1])&&(B=tr(R.x,R.y,L,z,G),E.push(new dt(Xt(B,G,F)))),E.push(new dt(Xt(L,z,I))),K===_-1&&E.push(new dt(Xt(L,G,F)));for(t.beginPath(),J=0,U=E.length;J<U;J++)(j=E[J])&&(0===J?t.moveTo(j.x,j.y):t.lineTo(j.x,j.y),R=E[J-1],j.value===F&&R&&(t.fillStyle=R.value>F?h:M,t.fill(),J!==U-1&&(t.beginPath(),t.moveTo(j.x,j.y))));function V(r){var n,e,i;r===c&&typeof r!==w||(n=Ut(r,p,g),i=b($+(e=0!==C?(p-n)/C:x/2))-.5,xt(t,D,i,D+N,i,T))}V(y),V(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,M,d,g,p,F,_,w,D,H,$,x,C,A,O,T,E,j,R,I,B,G=r.points1,L=r.points2,z=r.minX,K=r.maxX,J=r.minY,U=r.maxY,V=r.hLine,W=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=Gt(n,e,i,o,5),at=ut.left,st=ut.top,ft=ut.width,ct=ut.height;if(G&&!(G.length<=0)&&!((a=or(G)).length<=0||L&&L.length>0&&(s=or(L)).length<=0)){for(Vt(t,n,e,i,o),t.beginPath(),tt=!!u(tt)||tt,nt=u(nt)?k:nt,et=u(et)?S:et,mt(a,J,U,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&&((j=v(y,q))>=(R=l(m,Y))&&(R=j+1),(I=v(f,X))>=(B=l(c,Z))&&(B=I+1),Jt(t,at+(j-y)*ft/(m-y),st+(c-B)*ct/(c-f),(R-j)*ft/(m-y),(B-I)*ct/(c-f),P)),C=-N,A=-N,O=N,T=N,g=a.length,M=0;M<g-1;M++)yt(a,M,nt,Mt),Q&&(0===M&&(H>A&&(C=D,A=H),H<T&&(O=D,T=H)),x>A&&(C=$,A=x),x<T&&(O=$,T=x));if(s&&s.length>0)for(mt(s,f,c,y,m),g=s.length,M=0;M<g-1;M++)yt(s,M,et,dt);Q&&(ht(C,A,S),ht(O,T,"#0000FF")),!u(V)&&f<=V&&V<=c&&(E=b(st+(c-V)*ct/(c-f))-.5,ir(t,at,E,at+ft,E,S)),!u(W)&&y<=W&&W<=m&&(E=b(at+(W-y)*ft/(m-y))-.5,ir(t,E,st,E,st+ct,S)),t.restore()}function yt(r,n,e,i){d=r[n],p=d.x,F=d.y,d=r[n+1],_=d.x,w=d.y,D=at+(p-y)*ft/(m-y),$=at+(_-y)*ft/(m-y),H=st+(c-F)*ct/(c-f),x=st+(c-w)*ct/(c-f),rt&&ir(t,D,H,$,x,e,it),tt&&(0===n&&i(D,H),i($,x))}function mt(t,r,n,e,i){var o=nr(t,!0),a=nr(t,!1);f=u(J)?o.y:r,c=u(U)?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 ht(r,n,e){t.beginPath(),t.arc(r-ot/2,n-ot/2,ot/2,0,2*h,!1),t.fillStyle=e,t.fill()}function Mt(r,n){t.beginPath(),t.strokeStyle=nt,t.arc(r-ot/2,n-ot/2,ot/2,0,2*h,!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 ht(Ht(i*N,i*N)),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,h,M,d,l,v,b,F,_,w,D,H;if(u){for(a=p(g(e-r,2)+g(i-n,2)),s=0,f=6,c=2,y=4,h=void 0,M=void 0,d=void 0,l=void 0,r<=e?(h=r,M=e,d=r,l=n):(h=e,M=r,d=e,l=i),b=n-(v=(i-n)/(e-r))*r,(m=[]).push(new ht(Ht(d,l))),F=[f,y,c,y];s<a;)for(_=0,w=F.length;_<w;_++)(s+=F[_])<=a&&(l=v*(d=er(h,M,s,a))+b,m.push(new ht(Ht(d,l))));for(D=0,H=m.length;D<H-1;D+=2)xt(t,m[D].x,m[D].y,m[D+1].x,m[D+1].y,o)}else xt(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 ht(Ht(t[0][n],t[1][n])))}else if(r>=2)for(e=0;e<o;e++)i.push(new ht(Ht(t[e][0],t[e][1])));return i}function ur(t,r,n,e,i,o){var s,f,c,y,h,M,d,l,g,p,F,_,w,D,$,N,x,k=r.measure,P=r.target,A=r.maxi,O=r.good,T=r.bad,E=r.forecast,j=r.tickUnit,R=r.colorScheme,I=r.vertical,B=5,G=r.measureColor,L=r.targetColor,z=r.maxiColor,K=r.goodColor,J=r.badColor,U=r.forecastColor,V=r.allowMeasureOverMaxi,W=r.barSize;if(!(u(A)||A<0)&&(u(W)||!(H(W)||W<=0))){if(W>1&&(W=1),k=u(k)||k<0?0:k,O=u(O)||O<0?0:O,T=u(T)||T<0?0:T,P=u(P)?0:P,E=u(E)?0:E,j=u(j)?0:j,R=u(R)?"#A0A0A0":R,s=u(G)?"#252525":G,k>A&&!V&&(k=A,s=S),O>A&&(O=A,s=S),T>A&&(T=A,s=S),P>A&&(P=0,s=S),E>A&&(E=A,s=S),f=Gt(n,e,i,o,B,o-2*B,I),c=f.left,y=f.width,t.save(),h=u(W)?.2:(1-W)/2,M=u(W)?.6:W,d=V?v(A,k):A,q(u(z)?a(R,1.66):z,A,d,h,M),q(u(K)?a(R,1.33):K,O,d,h,M),q(u(J)?R:J,T,d,h,M),l=.25*W/.6,q(s,k,d,g=u(W)?.375:(1-l)/2,p=u(W)?.25:l),E>0&&(F=c,(_=y*(E/d))>y&&(_=y),w=u(W)?3:3*W/.6,Ct(t,I,n+.5*i,F,n+.5*i,F-_,F,e+.5*o,F+_,e+.5*o,u(U)?"#3690BF":U,w)),P>0&&(D=b(c-(I?1:-1)*y*(P/d))-.5,Ct(t,I,n+i*h,D,n+i*(1-h),D,D,e+o*h,D,e+o*(1-h),u(L)?S:L,1)),j>0)for($=m(d/j),N=void 0,x=0;x<=$;x++)N=b(c-y/d*j*(I?1:-1)*x)-.5,Ct(t,I,n,N,n+.05*i,N,N,e+o,N,e+.95*o,C,1);t.restore()}function q(r,u,a,s,f){var m,h,M;t.fillStyle=r,m=c,(h=y*(u/a))>y&&!V&&(h=y),M=new Mt(I?$t(n+i*s,m-h,i*f,h):$t(m,e+o*s,h,o*f)),t.fillRect(M.x,M.y,M.width,M.height)}}function ar(t,r,n,e,i,o){var a,s,f,c,y,m,h,M,d,g,p,F,_,w,D,H,$,N,x,k,P,A,O=r.spreadData,T=r.showAverage,E=r.scaleStart,j=r.scaleEnd,R=r.style,I=r.colorScheme,B=r.vertical,G=5,L=O.length;if(!(L<=0)){for(a=O[0].key,s=O[L-1].key,E=u(E)?a:E,j=u(j)?s:j,R=u(R)?4:R,I=u(I)?C:I,c=(f=Gt(n,e,i,o,G,o-2*G,B)).left,y=f.width,m=f.top,h=f.height,Vt(t,n,e,i,o),t.beginPath(),t.strokeStyle=I,t.fillStyle=I,t.lineWidth=2,g=Nt(O,!1),F=0,_=O.length;F<_;F++)if(D=(w=O[F]).key,H=w.value,M=c+(B?-1:1)*y*(D-E)/(j-E),B?(M=l(M,c),M=v(M,c-y)):(M=v(M,c),M=l(M,c+y)),M=b(M),1===R)Ct(t,B,$=m+h/2-(p=(p=H/2*h/g)<.5?.5:p),M,N=m+h/2+p,M,M,$,M,N);else if(4===R)Ct(t,B,m,M,m+(p=(p=H*h/g)<1?1:p),M,M,m+h,M,m+h-p);else if(6===R)Ct(t,B,m,M,m+h,M,M,m,M,m+h);else for(x=2,k=1;k<=H;k++){switch(R){case 2:d=m+h/2-G-(H/2-k)*h/g;break;case 3:d=m+h-G-(P=sr(H,h,x+1,w.randomNumbers))[k-1];break;default:d=m+h-k*h/g}d=b(d),t.beginPath(),t.fillRect(B?d:M,B?M:d,x,x)}T&&Ct(t,B,m-G,M=c-(B?1:-1)*y*((A=fr(O))-E)/(j-E),m+h+G,M,M,m-G,M,m+h+G,S),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,h,M,d,l,v,g,p,F,_,w,D,$,N,x,k,P,A=r.points,O=A&&A.length,j=r.colorRange,I=r.labelRange,B=r.maximum,G=r.targetRed,z=r.targetGreen,K=r.targetBlue,U=r.targetYellow,W=r.color,q=r.highlightPosition,Y=r.vertical,X=r.textOrientation,Z=r.textSize,Q=5;if(!(u(A)||O<=0)){if(W=u(W)?C:W,u(j)||j.length!==O||mr(j))for(j=[],f=0;f<O;f++)j.push(a(W,1+f/O));for(m=Lt(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,h=Gt(n,e,i,o,Q,o-2*Q,Y),M=h.left,d=h.width,l=h.top,v=h.height,t.save(),g=M,N=0,x=O;N<x;N++)($=A[N])<=0||(p=$/B*d,Y?(F=n+.15*i,w=.7*i,_=g-p,D=p):(F=g,w=p,_=e+.15*o,D=.7*o),k=N+1===q?S:j[N],t.save(),t.fillStyle=k,t.fillRect(F,_,w,D),(P=I&&I[N])&&(t.save(),t.fillStyle=Bt(k),t.textBaseline=J,t.textAlign=L,t.font=Z+V,t.rect(F,_,w,D),t.clip(),1===X?(t.translate(F+w/2,_),t.rotate(Math.PI/2),t.fillText(P,D/2,0)):t.fillText(P,F+w/2,_+D/2),t.restore()),g+=(Y?-1:1)*p,t.restore());tt(R,G,(function(t){return t>0})),tt(E,z),tt(T,K),tt("yellow",U),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=b(M-o)-.5,xt(t,l,i,l+v,i,r)):(i=b(M+o)-.5,xt(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 hr(t,r,n,e,i,o){xt(t,lr(r),lr(n),lr(e),lr(i),u(o)?O:o,1)}function Mr(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=p(3)*c/2,a=c/p(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,h,M,d,l,v,b,g,p,_,w=n.value,D=n.colorScheme,N=n.axisVisible,x=n.barHeight,k=n.barWidth,S=5,C=5,P=!1,A=$(w);if(!H(A)){if(u(M=0===t?x:k))d=.7;else{if(H(M)||M<=0)return;d=Math.min(1,M)}A>1?(A=1,P=!0):A<-1&&(A=-1,P=!0),D=u(D)?"grey":D,N=!!u(N)||N,r.save(),0===t?(l=o-2*S,v=a*d,A>=0?(P&&(s=new ht(Ht(e+S+l-C,i+a/2))),f=new Mt($t(e+S,i+a*(1-d)/2,l*A,v)),c=new ht(Ht(e+S,i+1)),y=new ht(Ht(e+S,i+a)),m=1):(b=F(l*A),P&&(s=new ht(Ht(e+S+C,i+a/2))),f=new Mt($t(e+o-S-b,i+a*(1-d)/2,b,v)),c=new ht(Ht(e+o-S,i+1)),y=new ht(Ht(e+o-S,i+a)),m=3),h=u(M)?a:a*d):1===t&&(g=a-2*S,p=o*d,A>=0?(f=new Mt($t(e+(1-d)/2*o,i+a-S-(_=g*A),p,_)),P&&(s=new ht(Ht(e+o/2,i+a-S-_+C)),m=0),c=new ht(Ht(e+1,i+a-S)),y=new ht(Ht(e+o,i+a-S))):(A=F(A),f=new Mt($t(e+(1-d)/2*o,i+S,p,g*A)),P&&(s=new ht(Ht(e+o/2,i+S+g-C)),m=2),c=new ht(Ht(e+1,i+S)),y=new ht(Ht(e+o,i+S))),h=u(M)?o:o*d),r.beginPath(),f&&(Jt(r,f.x,f.y,f.width,f.height,D),Vt(r,f.x,f.y,f.width,f.height)),s&&Mr(r,s.x,s.y,h,m),r.restore(),N&&c&&hr(r,c.x,c.y,y.x,y.y),r.restore()}}function lr(t){return b(t)-.5}function vr(t,r,n,e,i,o){dr(0,t,r,n,e,i,o)}function br(t,r,n,e,i,o){dr(1,t,r,n,e,i,o)}function gr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,b,g,_,w,D,N,x,C,P,A,T,j=r.variance,I=r.reference,U=r.mini,W=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=S,ot=k,ut=13*a.zoomFactor,at=$(j);if(!(H(at)||(Q=u(Q)?R:Q,Z=u(Z)?E:Z,Y=u(Y)?0:Y,W=u(W)?1:W,U=u(U)?-1:U,(M=!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=$(r.variance),H(l)||(b=(v=l.toString()).substr(v.indexOf(".")+1).length,m=b>=2?(100*l).toFixed(b-2)+"%":(100*l).toFixed(0)+"%")),at>W&&(at=W,d=!0),at<U&&(at=U,d=!0),I=Ut(I,W,U),d&&(h=Ut(c,60,15)),_=f/(g=F(W-U)),w=s+y*F(U-I)*_,(D=F(at-I)*_)>F(g)*_&&(D=F(g+U)*_),N=s+y*f,tt&&w<N||!tt&&w>N))){if(Vt(t,n,e,i,o),at>I?st(Z,0,et-f,f-et,0,1,e-w,K,z,w-n-i,B,G,-1,F(W-at)*_):(D>F(g)*_&&(D=F(g+U)*_,w=s),st(Q,1,-et,et,2,3,w-e-o,z,K,n-w,G,B,1,F(U-at)*_)),M&&(x=s+y*(Math.abs(U-I)*_),ct(n,x,n+i,x,x,e,x,e+o)),Y>0)for(t.beginPath(),C=g/Y,P=0;P<=C;P++)ct(n,A=s+f/C*P*y,n+.1*i,A,A,e+.9*o,A,e+o,ot,ot);!u(q)&&U<=q&&q<=W&&(t.beginPath(),T=s-(tt?1:-1)*F(U-q)*_,ct(n,T,n+.33*i,T,T,e+.66*o,T,e+o,it,it),t.fill()),t.restore()}function st(r,u,a,f,c,y,M,l,v,b,g,F,_,H){var $,N,x,k,S,C;tt?Jt(t,$=n+nt*i,N=0===u?w-D:w,x=i*rt,k=D,r):Jt(t,$=0===u?w:w-D,N=e+nt*o,x=D,k=o*rt,r),d&&(Vt(t,$,N,x,k),tt?Mr(t,n+i/2,s+a,h,c):Mr(t,s+f,e+o/2,h,y),t.restore()),X&&(S=void 0,C=0,d&&(C=.4*h*p(3)/2+et+2),t.save(),t.beginPath(),t.font=ut+V,t.fillStyle=O,tt?(t.textAlign=L,ft(S=ut+D+M,H,r,l,v,$,N,x,k,tt),t.fillText(m,n+i/2,w+_*(D-C))):(t.textBaseline=J,ft(S=t.measureText(m).width+D+b,H,r,g,F,$,N,x,k,tt),t.fillText(m,w+_*(C-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?hr(t,r,n,e,i,f):hr(t,o,u,a,s,c)}}function pr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,b,g,p,_,w,D,N,x,k,S,C,A,T,j,I,B=r.plannedValue,G=r.actualValue,L=r.index,z=r.absolute,K=r.reference,J=r.mini,U=r.maxi,V=r.tickUnit,W=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=P,ot=!1;if(!(0===B.length||0===G.length||L<0||L>=B.length||L>=G.length||J>=U||H(G[L])||H(B[L]))){if(Y=u(Y)?R:Y,q=u(q)?E:q,V=u(V)?0:V,z=!u(z)&&z,m=!u(K),X=u(X)?O:X,z){for(v=0;v<B.length&&v<G.length;v++)Q.push(G[v]-B[v]);U=Nt(Q,!1),J=Nt(Q,!0),U>0&&J>0?J=0:U<0&&J<0&&(U=0),h=Q[L],K=0,m=!0}else U=u(U)?1:U,J=u(J)?-1:J,h=(G[L]-B[L])/Math.abs(B[L]),((K=Ut(K,U,J))===U&&h>K||K===J&&h<K)&&(ot=!0),u(B[L])&&(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&&W?((g=$((b=h-K).toString()))>0&&(tt="+"),!H(g)&&isFinite(g)?y=tt+(y=(_=(p=g.toString()).substr(p.indexOf(".")+1).length)>=2?(100*g).toFixed(2)+"%":100*g+"%"):isFinite(g)||(y=tt+g)):(h>0&&(tt="+"),y=tt+(y=(_=(p=(g=$(h)).toString()).substr(p.indexOf(".")+1).length)>=2?g.toFixed(2):g)),z?l=!1:(h>U&&(h=U,l=!0),h<J&&(h=J,l=!0)),D=f/(w=F(U-J)),N=s+c*F(J-K)*D,(x=F(h-K)*D*rt)>F(w)*D&&(x=F(w+J)*D),k=s+c*f,!(Z&&N<k||!Z&&N>k))if(z||0!==B[L]&&!ot){if(Vt(t,n,e,i,o),S=F(Math.ceil((U-K)/V)),C=F(Math.floor((K-J)/V)),z){if(V>5/D)if(Z){for(T=1;T<=S;T++)At(t,n,j=N+V*D*T*-1*rt,n+i,j,it,1);for(T=1;T<=C;T++)At(t,n,j=N+V*D*T*1*rt,n+i,j,it,1)}else{for(T=1;T<=S;T++)At(t,I=N+V*D*T*1*rt,e,I,e+o,it,1);for(T=1;T<=C;T++)At(t,I=N+V*D*T*-1*rt,e,I,e+o,it,1)}}else if(V>0&&V<=U&&V>5/D)if(t.beginPath(),Z){for(A=.1*i>10?10:.1*i,T=1;T<=S;T++)At(t,n,j=N+V*D*T*-1*rt,n+A,j,it,1);for(T=1;T<=C;T++)At(t,n,j=N+V*D*T*1*rt,n+A,j,it,1)}else{for(A=.1*o>10?10:.1*o,T=1;T<=S;T++)At(t,I=N+V*D*T*1*rt,e+o-A,I,e+o,it,1);for(T=1;T<=C;T++)At(t,I=N+V*D*T*-1*rt,e+o-A,I,e+o,it,1)}M=Math.floor(12*a.zoomFactor),(d=Math.floor(4*a.zoomFactor))%2!=0&&(d+=1),M%2!=0&&(M+=1),h>K?jt(t,n,e,i,o,q,X,!0,Z,N,x,d,l,M,z):(x>F(w)*D&&(x=F(w+J)*D,N=s),jt(t,n,e,i,o,Y,X,!1,Z,N,x,d,l,M,z)),W&&(h>K?It(t,n,e,i,o,e-N,N-n-i,y,et,Z,!0,N,x,M):It(t,n,e,i,o,N-e-o,n-N,y,et,Z,!1,N,x,M)),m&&(Z?At(t,n,N,n+i,N,O,2):At(t,N,e,N,e+o,O,2)),t.restore()}else Z?At(t,n,N,n+i,N,O,2):At(t,N,e,N,e+o,O,2)}}function Fr(t,r,n,e,i,o){var a,s,f,y,m,h,M,d,b,g,p,_,w,N,x,P,A,O,T,E,j,R,I,B,G,L,z,K,J,U,V,W,q,Y,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt,dt,Ft,_t,wt=r.points,Dt=r.boxPlotClass,Ht=r.showAverage,$t=r.scaleStart,xt=r.scaleEnd,kt=r.acceptableStart,St=r.acceptableEnd,Pt=r.style,At=r.colorScheme,Ot=r.vertical,Tt=5,Et=Nt(wt,!1),jt=Nt(wt,!0);if(!(u(wt)||(wt=Kt(wt)).length<=0)){for((Dt=Dt===c||typeof Dt!==D?vt:Dt.toLocaleLowerCase())!==vt&&Dt!==lt&&Dt!==bt&&Dt!==gt&&Dt!==pt&&(Dt=vt),a=$($t),a=H(a)?jt:a,s=$(xt),s=H(s)?Et:s,f=$(kt),y=$(St),At!==c&&typeof At===D||(At="#D2D2D2"),(Pt===c||0!==Pt&&1!==Pt)&&(Pt=0),m=S,a>jt&&(At=m,a=jt),s<Et&&(At=m,s=Et),Vt(t,n,e,i,o),t.lineWidth=2,M=(h=Gt(n,e,i,o,Tt,o-2*Tt,Ot)).left,d=h.width,b=h.top,g=h.height,p=Ot?-1:1,_=r.perc02,w=r.perc09,N=r.perc10,x=r.perc90,P=r.perc91,A=r.perc98,O=r.q1,j=jt,R=Et,I=1.5*(E=(T=r.q3)-O),B=1.5*E,G=r.stDev,L=Lt(wt)/v(1,wt.length),z=0,K=0,J=b+.1*g,U=.7*g,V=F(s-a),W=0,q=wt.length;W<q;W++)(Y=wt[W])<O&&Y>=O-1.5*E&&Y-(O-1.5*E)<I&&(I=Y-(O-1.5*E),j=Y),Y>T&&Y<=T+1.5*E&&T+1.5*E-Y<B&&(B=T+1.5*E-Y,R=Y),X=!1,z=M+p*(d*((Y-a)/V)),Dt===bt&&(Y<=O-1.5*E||Y>=T+1.5*E)&&(X=!0,K=Y<=O-3*E||Y>=T+3*E?0:1),Dt===lt&&(Y<=_||Y>=A)&&(X=!0,K=1),Dt===pt&&(Y<=L-2*G||Y>=L+2*G)&&(X=!0,K=Y<=L-3*G||Y>=L+3*G?0:1),Z=k,X&&(1===Pt?1===K?It(.2,.8,z,Z):It(.3,.7,z,Z):((Q=.1*g)<2&&(Q=2),t.beginPath(),t.strokeStyle=Z,tt=b+.45*g,rt=z,t.arc(Ot?tt:rt,Ot?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&&Ct(t,Ot,it=b+.9*g,nt=M+p*(d*((f-a)/V)),it,et=M+p*(d*((y-a)/V)),nt,it,et,it,C),ut=F(M+p*(d*((T-a)/V))-(ot=M+p*(d*((O-a)/V)))),st=M+p*(d*(((at=r.median)-a)/V)),Dt){case lt:yt=_,mt=A;break;case bt:yt=j,mt=R;break;case pt:ut=F(M+p*(d*((L+G-a)/V))-(ot=M+p*(d*((L-G-a)/V)))),st=M+p*(d*((L-a)/V)),yt=(ht=L-2*G)>a?ht:jt,mt=(ht=L+2*G)<s?ht:Et,Ht=!1;break;default:yt=jt,mt=Et}ft=M+p*(d*((yt-a)/V)),ct=M+p*(d*((mt-a)/V)),Mt=k,1===Pt?Rt("#F2F2F2",J,ct,U,ft-ct,ft,J,ct-ft,U):Ct(t,Ot,dt=b+.45*g,ft,dt,ct,ft,dt,ct,dt,Mt),Rt(At,J,ot-ut,U,ut,ot,J,ut,U),Ct(t,Ot,J,st,J+U,st,st,J,st,J+U,Mt),0===Pt&&(Ct(t,Ot,J+.3*U,ct,J+.7*U,ct,ct,J+.3*U,ct,J+.7*U,Mt),Ct(t,Ot,J+.3*U,ft,J+.7*U,ft,ft,J+.3*U,ft,J+.7*U,Mt)),Dt!==lt&&Dt!==gt||(Ft=void 0,_t=void 0,Dt===lt?(yt=w,mt=P):(yt=N,mt=x),Ft=M+p*(d*((yt-a)/V)),It(.3,.7,_t=M+p*(d*((mt-a)/V)),Mt),It(.3,.7,Ft,Mt)),Ht&&It(.2,.8,z=M+p*(d*((L-a)/V)),m),t.restore()}function Rt(r,n,e,i,o,u,a,s,f){Ot?Jt(t,n,e,i,o,r):Jt(t,u,a,s,f,r)}function It(r,n,e,i){Ct(t,Ot,J+U*r,e,J+U*n,e,e,J+U*r,e,J+U*n,i)}}function _r(t,r,n,e,i){r=b(r),n=b(n),r===(e=b(e))&&(r=e-=.5),n===(i=b(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,h,M=o.labelText,d=o.fontSize,l=o.startBox,v=o.endBox,b=o.boxColor,g=o.isInRightOrTopOfBox,p=o.fillStyle;t.save(),t.beginPath(),t.font=d+V,c=1,p=u(p)?O:p,o.vertical?(y=L,g?(a=d+v-(l-n))>0&&l-v-n<v?(m=z,p=Bt(b),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,p=Bt(b),f=l-c):(m=z,f=l+c),t.textAlign=y,t.textBaseline=m,t.fillStyle=p,t.fillText(M,r+e/2,f)):(m=J,h=t.measureText(M),g?(a=h.width+v-(r+e-l))>0&&r+e-(l+v)<v?(Dr(t,l,n,v,i),y=G,p=Bt(b),s=l+v-c):(y=B,s=l+v+c):(a=h.width-(l-r))>0&&l-r<v?(Dr(t,l,n,v,i),s=l+c,y=B,p=Bt(b)):(y=G,s=l-c),t.textAlign=y,t.textBaseline=m,t.fillStyle=p,t.fillText(M,s,n+i/2)),t.restore()}function $r(t,r,n,e,i,o,s){var f,y,m,h,M,d,b,g,p,_,w,N,x,k,S,C,A,T,E,j,R,I,B,G,L,z,K,J,U,V,X,Z,Q,tt,rt,nt,et,it,ot,ut,at,st,ft,ct,yt,mt,ht,Mt=r.points,dt=r.labels,lt=r.pointIndex,vt=r.minimum,bt=r.maximum,gt=r.colorPositive,pt=r.colorNegative,Ft=r.vertical,_t=r.itemTypeRange,wt=r.colorTotal,Dt=5,Ht=13*s.zoomFactor;if(!u(Mt)&&!((f=Mt.length)<=0)&&_t&&(y=parseInt(lt,10),!(H(y)||y<=0||y>f))){for(dt=u(dt)?[]:dt,gt!==c&&typeof gt===D||(gt="#8CBF64"),pt!==c&&typeof pt===D||(pt="#D6604D"),typeof wt!==D&&(wt=c),m=gt,h=a(gt,1.3),M=pt,d=a(pt,1.3),b=1,g=0,p=0,_=0,w=0,N=[],x=0,k=0,C=0,A=f;C<A;C++)k=Mt[C],S=_t[C],T=!1,E=1===b,(j=!u(S))&&(S===q?k=F(k):S===W?k=-F(k):S===Y?(T=!0,E?g=k:k=g):j=!1),N[b]=[],R=N[b],H(k)?(R[0]=0,R[1]=g,R[2]=0):(R[0]=F(k),g=T?g:k+g,R[1]=k>0?p:g,R[2]=k),R[3]=b,_=l(p,_),w=v(p,w),((I=b===f)&&!j||T)&&(x=_<0?-_:0,R[1]=k>0?0:k),j&&T&&!E||(p=k+p,I&&j&&(_=l(p,_),w=v(p,w))),b++;B=!1,u(S)||(B=-1===(G=[W,q,Y]).indexOf(S)),(u(S)||B)&&(g-=k),K=$(vt),H(K)||K>0||K>_?(L=_,K=_):(L=K,x=-K),J=$(bt),H(J)||J<0||J<w?z=w:(z=J,x=-K),V=(U=Gt(n,e,i,o,Dt,o-2*Dt,Ft)).left,X=U.width,Z=U.top,Q=U.height,tt=Ft?-1:1,nt=X/(rt=z-L),Vt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,it=(et=N[y])[2],ot=_t[y-1],ut=V+tt*(et[1]+x)*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:M:it>=0?h: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,P,n,ut,Z+Q,ut,n,ut-at,Z+Q,ut-at):wr(t,!0,P,n,yt=V-(g+x)*nt,Z+Q,yt)),y!==f&&wr(t,it>0,P,Z,ut-at,n+i,ut-at,Z,ut,n+i,ut)):(1!==y&&(y!==f?wr(t,it>0,P,ut,e,ut,Z+Q,ut+at,e,ut+at,Z+Q):wr(t,!0,P,mt=V+(g+x)*nt,e,mt,Z+Q)),y!==f&&wr(t,it>0,P,ut+at,Z,ut+at,e+o,ut,Z,ut,e+o)),ht=dt[y-1],dt.length>0&&!u(ht)&&""!==ht&&Hr(t,n,e,i,o,{labelText:ht,vertical:Ft,isInRightOrTopOfBox:it>0,fontSize:Ht,startBox:ut,endBox:at,boxColor:st}),wr(t,Ft,O,n,V-x*nt,n+i,V-x*nt,V+x*nt,e,V+x*nt,e+o),t.restore()}}function Nr(t,r,n,e,i,o,a){var s,f,c,y,m,h,M,d,l,v,g,p,F,w,N,x,C,P,A,O,T,E,j,R,I,B,G,L=r.points,z=r.pointIndex,K=r.colorRange,J=r.target,U=r.target2,V=r.highlightPosition,W=r.label,q=r.vertical,Y=13*a.zoomFactor,X=r.targetColor,Z=r.target2Color,Q=r.labelColor,tt=r.barSize;if(!u(L)&&(u(tt)||!(H(tt)||tt<=0))&&(tt>1&&(tt=1),!((s=L.length)<=0||(f=parseInt(z,10),H(f)||f<=0||f>s)))){for(K=u(K)?[]:K,c=parseInt(W,10),c=H(c)?0:c,y=1,m=0,h=[],M=0,d=L.length;M<d;M++)l=L[M],h[y]=[],v=h[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++;p=5,g=u(tt)?p:q?i*(1-tt)/2:o*(1-tt)/2,F=Gt(n,e,i,o,g,o-2*p,q,p),w=F.left,N=F.width,x=F.top,C=F.height,P=q?-1:1,A=N/m,Vt(t,n,e,i,o),t.beginPath(),t.lineWidth=1,T=(O=h[f])[1],E=w+P*O[0]*A,j=O[1]*A,R=f===V?S:0===K.length||typeof K[f-1]!==D?k:K[f-1],q?Jt(t,x,E-j,C,j,R):Jt(t,E,x,j,C,R),1===c?I=(O[0]+T)/m*1e3:2===c&&(I=T/m*1e3),B=b(I)/10+"%",1!==c&&2!==c||""===B||Hr(t,n,e,i,o,{labelText:B,vertical:q,isInRightOrTopOfBox:(O[0]+O[1])*A<N/2,fontSize:Y,startBox:E,endBox:j,boxColor:R,fillStyle:Q}),G=[u(X)?"#8CBF64":X,u(Z)?"#EE5D5D":Z],[J,U].forEach((function(r,u){var a=rt(r),s=_(w+P*N*a);wr(t,q,G[u],n,s,n+i,s,s,e,s,e+o)})),t.restore()}function rt(t){var r=$(t);return r=(r=(r=H(r)?0:r)<0?0:r)>1?1:r}}function xr(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 kr(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)+","+$(o/255+"")+")"}function Sr(t,r,n){return t===r&&t===n?1:t<=r?0:t>=n?1:(t-r)/(n-r)}function Cr(t,r,n,e,i,o){var u=(o+i)/2;return i<=e&&e<=u?kr(Sr(e,i,u),t,r):kr(Sr(e,u,o),r,n)}function Pr(t){var r=N,n=-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=Pr(t),s=a.min,f=a.max,t.forEach((function(t,e){0!==t&&t!==c&&t!==y&&(r[n+e]=Cr(i,o,u,t,s,f))})))}function Or(t,r,n,e,i,o){var u,a,s,f,c=r.year,y=r.month,m=r.values,h=r.emptyColor||"lightgray",M=r.startColor,d=r.middleColor,l=r.endColor,v="white",b=6,g=7,p=2,F=(i-(b+1)*p)/b,_=(o-(g+1)*p)/g,w=[],D=new Date(c,y-1,1).getDay();for(u=0;u<b*g;u++)u<D?w[u]=v:u<D+xr(c,y)?w[u]=h:w[u]=v;for(Ar(m,w,D,r.colors,M,d,l),t.save(),t.rect(n,e,i,o),t.clip(),t.beginPath(),a=0,s=0;s<b;s++)for(f=0;f<g;f++)t.fillStyle=w[a],a++,t.fillRect(n+s*F+(s+1)*p,e+f*_+(f+1)*p,F,_);t.restore()}function Tr(t){var r,n=t.getFullYear(),e=t.getMonth(),i=t.getDate();for(r=1;r<e+1;r++)i+=xr(n,r);return i}function Er(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,b,g,p,F,_,w,D,H,$,N,x,k,S,C=r.year,P=r.values,A=r.emptyColor||"lightgray",O=r.startColor,T=r.middleColor,E=r.endColor,j="white",R=7,I=parseInt(366/R+"",10)+2,B=[],G=new Date(C,0,1).getDay(),L=Tr(new Date(C,11,31));for(a=0;a<I*R;a++)B[a]=a<G?j:a<G+L?A:j;for(Ar(P,B,G,r.colors,O,T,E),t.save(),t.rect(n,e,i,o),t.clip(),c=n+(f=15*(s=u.zoomFactor)),y=e,m=i-f,h=o,t.save(),t.translate(n+f/2,y+h),t.rotate(-Math.PI/2),t.font=13*s+V,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(C+"",h/2,0),t.restore(),d=(m-(I+1)*(M=2))/I,l=(h-(R+1)*M)/R,v=0,F=[],g=0;g<I;g++)for(b=0;b<R;b++)p={x:c+g*d+(g+1)*M,y:y+b*l+(b+1)*M,w:d,h:l},F[v]=p,t.fillStyle=B[v],v++,t.fillRect(p.x,p.y,p.w,p.h);for(_=[],w={},D=0;D<12;D++)w[D]=Tr(new Date(C,D,1))-1+G;for(H=w[11]+xr(C,12)-1,v=0,g=0;g<I;g++)for(b=0;b<R;b++)G<=v&&v<G+L&&(x=w[N=($=new Date(C,0,v-G+1)).getMonth()],p=F[v],x<=v&&v<7+x&&_.push({x1:p.x,y1:p.y-M/2,x2:p.x,y2:p.y+p.h+M/2}),v!==x&&0!==$.getDay()||_.push({x1:p.x-M/2,y1:p.y,x2:p.x+p.w+M/2+(v===x?M:0),y2:p.y}),H-7<v&&v<=H&&_.push({x1:p.x+p.w,y1:p.y-M/2,x2:p.x+p.w,y2:p.y+p.h+M/2}),v!==H&&6!==$.getDay()||_.push({x1:p.x-M/2-(v===H?M:0),y1:p.y+p.h,x2:p.x+p.w+M/2,y2:p.y+p.h})),v++;for(t.strokeStyle="black",t.lineWidth=2,k=0;k<_.length;k++)S=_[k],t.beginPath(),t.moveTo(S.x1,S.y1),t.lineTo(S.x2,S.y2),t.stroke();t.restore()}function jr(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,h,M,d,b=o.zoomFactor,g=t.currentValueOption.normalFontHeight*b,p=t.minValueOption.normalFontHeight*b,_=t.maxValueOption.normalFontHeight*b,w=t.minAngle,D=t.maxAngle,H=t.currentValueOption.normalFontWidth*b,$=F(w)>90||F(D)>90,N=F(w)>120||F(D)>120,x=yt*l(e,i);return u?(a=m(e/2*ct),s=m(i*ct),c=l(a,f=$?s/2:s),M=(i-($?2*c:c))/2,d=.03*c,h={x:r+e/2,y:n+i/2+($?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio,currentValuePoint:y,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:p<M,enoughShowMaxLabel:_<M,moreThanSemiCircle:$},$?N?2*g/3<M-d-v(_,p)&&H<e-2*x&&(h.currentValuePoint={x:h.x,y:h.y+c+d+g/2+v(_,p)},h.enoughShowCurrentLabel=!0):2*g/3<i/2-d&&H<e-2*x&&(h.currentValuePoint={x:h.x,y:h.y+2*d+g},h.enoughShowCurrentLabel=!0):g<M-d&&H<e-2*x&&(h.currentValuePoint={x:h.x,y:h.y+g},h.enoughShowCurrentLabel=!0)):(a=m(e/2*ft),s=m(i*ft),c=l(a,f=$?s/2:s),h={x:r+e/2,y:n+i/2+($?0:c/2),outerRadius:c,innerRadius:c*t.radiusRatio}),h}function Ir(t,r,n,e){return{x:t+d(n)*e,y:r+M(n)*e}}function Br(t,r){return F(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:L}: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:G}:{x:r.x,y:r.y,textAlign:B}}function Gr(t,r,n,e,i,o,a){var s,f,c,y,l,b,g,p,_,w,D,H,$,N,x,k,S,C,P,T,E,R,I,z,K,J,V,W,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,b={x:ct.x,y:ct.y},p=(g=jr(r)).paintRanges,_=g.fillColor,t.save(),p.forEach((function(r){t.beginPath(),t.strokeStyle=A,t.moveTo(b.x,b.y),t.fillStyle=r.color||_,t.arc(b.x,b.y,c,r.start,r.end,!1),t.lineTo(b.x,b.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=A,t.strokeStyle=A,t.moveTo(b.x,b.y),t.arc(b.x,b.y,f,r.start-mt,r.end+mt,!1),t.lineTo(b.x,b.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(b.x,b.y),t.fillStyle=O,t.arc(b.x,b.y,c*X,0,2*h,!1),t.fill(),w=Ir(b.x,b.y,g.targetValueRadian,f),D=Ir(b.x,b.y,g.targetValueRadian,c*Q),St(t,w.x,w.y,D.x,D.y,rt,nt,j),H=Ir(b.x,b.y,g.currentValueRadian,c*Q),xt(t,b.x,b.y,H.x,H.y,O,Z*c),ft&&(t.save(),t.beginPath(),t.textAlign=U,t.fillStyle=j,$=r.minValueOption.normalFontHeight*st,N=r.maxValueOption.normalFontHeight*st,x=r.minValueOption.normalFontWidth*st,k=r.maxValueOption.normalFontWidth*st,S=g.minValueRadian,C=g.maxValueRadian,P=r.currentValueOption.normalFontHeight*st,T=r.currentValueOption.normalFontWidth*st,E=void 0,R=void 0,I=void 0,ct.enoughShowCurrentLabel&&(Pt(t,y.x,y.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,L),s.showCurrentLabel=!0,E={x:y.x-T/2,y:y.y-P,width:T,height:P}),ct.enoughShowMinLabel&&F(d(S)*c)+x<i/2-ut&&(z=Ir(b.x,b.y,g.minValueRadian,c),Wt(R={x:(K=Br(b,z)).x-x,y:K.y,width:x,height:$},E)||(Pt(t,K.x,K.y+m($),r.minValueOption.label,r.minValueOption.fontAfterZoom,G),s.showMinLabel=!0)),ct.enoughShowMaxLabel&&F(d(C)*c)+k<i/2-ut&&(J=Ir(b.x,b.y,g.maxValueRadian,c),Wt(I={x:(V=Br(b,J)).x,y:V.y,width:k,height:N},E)||(Pt(t,V.x,V.y+m(N),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,B),s.showMaxLabel=!0)),ct.enoughShowTargetLabel&&(W=r.targetValueOption.normalFontWidth*st,q=r.targetValueOption.normalFontHeight*st,Y=r.targetValueOption.label,tt=c+3*q/2,D=Ir(b.x,b.y,g.targetValueRadian,tt),et=Br(b,D),it=g.targetValueRadian,ot=l?(o-2*tt)/2+tt:o-(o-c)/2,F(d(it)*tt)+W<i/2-ut&&F(M(it)*tt)+q/2+ut/2<ot&&(at=v($,N)/2,Pt(t,et.x,et.y-(it>h?at:-at),Y,r.targetValueOption.fontAfterZoom,et.textAlign),s.showTargetLabel=!0)),t.restore()),t.restore(),s}function Lr(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,h=t.currentValueOption.normalFontHeight*u,M=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,l=t.targetValueOption.normalFontWidth*u,b=t.currentValueOption.normalFontWidth*u,g=.05*e,p=m(i*at),F=m(e*st),_={x:r+e*(1-st)/2,y:n+i*(at+(1-at)/2),graphWidth:F,graphHeight:p,targetValuePoint:y,currentValuePoint:y,minValuePoint:y,maxValuePoint:y};return a&&(s<(i-p)/2&&M<(e-F)/2-g&&(_.minValuePoint={x:_.x-M,y:_.y+s/3},_.enoughShowMinLabel=!0),f<(i-p)/2&&d<(e-F)/2-g&&(_.maxValuePoint={x:_.x-d,y:_.y-p+f/3},_.enoughShowMaxLabel=!0),(c<(i-p)/2||c/2<p)&&l<(e-F)/2-g-v(M,d)&&(_.targetValuePoint={x:_.x-l-v(M,d),y:y},_.enoughShowTargetLabel=!0),(h<(i-p)/2||h/2<p)&&b<(e-F)/2-g&&(_.currentValuePoint={x:_.x+F+g,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,h,M,d,l,v,b,g=u.zoomFactor,p=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Lr(r,n,e,i,o,u),$=H.graphWidth,N=H.graphHeight;if(!($<=0||N<=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},M=(h=zr(r,H)).paintRanges,d=w.normalFontHeight*g,l=D.normalFontHeight*g,v=h.targetValueY,b=h.currentValueY,t.save(),M.forEach((function(r){Jt(t,m.x,r.start,$,-r.height,r.color)})),St(t,m.x-(Q-1)*$,v,m.x+$,v,rt,nt,j),xt(t,m.x,b,m.x+$*Q,b,O,tt*N),p&&(t.save(),t.beginPath(),H.enoughShowMinLabel&&(Pt(t,c.x,c.y,F.label,F.fontAfterZoom,B,j),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Pt(t,y.x,y.y,_.label,_.fontAfterZoom,B,j),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-e+l/2>o||v-e-ot<0)&&(Pt(t,f.x,h.targetValueY+D.normalFontHeight*g/3,D.label,D.fontAfterZoom,B,j),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(b-e+d/2>o||b-e-ot<0)&&(Pt(t,s.x,h.currentValueY+w.normalFontHeight*g/3,w.label,w.fontAfterZoom,B,j),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,h=t.currentValueOption.normalFontHeight*u,M=t.minValueOption.normalFontWidth*u,d=t.maxValueOption.normalFontWidth*u,b=t.currentValueOption.normalFontWidth*u,g=t.targetValueOption.normalFontWidth*u,p=.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&&((b<3*(e-_)/4||b<_)&&h<(i-F)/2-ut&&(w.currentValuePoint={x:y,y:w.y-h/2},w.enoughShowCurrentLabel=!0),(g<3*(e-_)/4||g<_)&&c<(i-F)/2-v(s,f)&&(w.targetValuePoint={x:y,y:w.y+F+v(s,f)+c/4*3},w.enoughShowTargetLabel=!0),M<3*(e-_)/4&&s<(i-F)/2-p&&(w.minValuePoint={x:w.x-M/2,y:w.y+F+s},w.enoughShowMinLabel=!0),d<3*(e-_)/4&&f<(i-F)/2-p&&(w.maxValuePoint={x:w.x+_-d/2,y:w.y+F+f},w.enoughShowMaxLabel=!0)),w}function Ur(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 Vr(t,r,n,e,i,o,u){var a,s,f,c,y,m,h,M,d,l,v,b,g=u.zoomFactor,p=r.showLabel,F=r.minValueOption,_=r.maxValueOption,w=r.currentValueOption,D=r.targetValueOption,H=Jr(r,n,e,i,o,u),$=H.graphWidth,N=H.graphHeight;if(!($<=0||N<=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},M=(h=Ur(r,H)).paintRanges,d=w.normalFontWidth*g,l=D.normalFontWidth*g,v=h.targetValueX,b=h.currentValueX,t.save(),M.forEach((function(r){Jt(t,r.start,m.y,r.width,N,r.color)})),St(t,v,m.y,v,m.y+N*Q,rt,nt,j),kt(t,b,m.y+N-1,b,m.y-N*(Q-1)-1,O,$*tt),p&&(t.save(),H.enoughShowMinLabel&&(Pt(t,c.x,c.y,F.label,F.fontAfterZoom,B,j),a.showMinLabel=!0),H.enoughShowMaxLabel&&(Pt(t,y.x,y.y,_.label,_.fontAfterZoom,B,j),a.showMaxLabel=!0),H.enoughShowTargetLabel&&!(v-n+l/2+it>i||v-n-l/2-it<0)&&(Pt(t,v-D.normalFontWidth*g/2,f.y,D.label,D.fontAfterZoom,B,j),a.showTargetLabel=!0),H.enoughShowCurrentLabel&&!(b-n+d/2+it>i||b-n-d/2-it<0)&&(Pt(t,b-w.normalFontWidth*g/2,s.y,w.label,w.fontAfterZoom,B,j),a.showCurrentLabel=!0),t.restore()),t.restore(),a}function Wr(t,r,n,e,i,o,u){t.save(),t.rect(n,e,i,o),t.clip(),0===r.gaugeType?Gr(t,r,n,e,i,o,u):1===r.gaugeType?Kr(t,r,n,e,i,o,u):2===r.gaugeType&&Vr(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,h,M=[],d=t.length,l=0,v=u.fontPixelSize;if(o&&(l=v+3),0===d)return M;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,(h=t[y].value/f*(i-l))<0&&(h=0),M.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-h,width:s*a,textWidth:s,height:h,axis:t[y].axis});return M}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&&(xt(t,u,a,u+s,a),xt(t,u,a+f,u+s,a+f),r[i-1]&&r[i-1].height>=f&&1===n||xt(t,u,a,u,a+f),r[i+1]&&r[i+1].height>f&&1===n||xt(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,h=r.paintLabel,M=r.barWidth,d=r.labelFontStyle,l=r.afterZoomFontStyle,v=r.edgeColor,b=r.labelColor;u(d)||(o<3*(s=l.fontPixelSize)||Qr(t,m,i,o,rn(l)))&&(h=!1),h&&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))&&(h=!1)),Yr(t,c=qr(m,n+3,e+3,i-6,o-6,h,l,M),y,v),Zr(t,c,M,v),h&&Xr(t,c,l,b)}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,h,M,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,h=r.paintWidth,M=r.paintHeight,d=r.img,f>0&&c>0&&h>0&&M>0&&t.drawImage(d,a,s,f,c,y,m,h,M),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,h=Math.PI,M=Math.sin,d=Math.cos,l=Math.min,v=Math.max,b=Math.round,g=Math.pow,p=Math.sqrt,F=Math.abs,_=Math.ceil,w="undefined",D="string",H=isNaN,$=parseFloat,N=Number.MAX_VALUE,x=new Date(""),k="#969696",S="#CB0000",C="#646464",P="#DCDCDC",A="white",O="black",T="blue",E="green",j="grey",R="red",I="lightgrey",B="left",G="right",L="center",z="top",K="bottom",J="middle",U="start",V="px Arial",W="-",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*h,ht=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),Mt=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}(ht),lt="7ns",vt="5ns",bt="tukey",gt="bowley",pt="sigma3",r.zzt=Gr,r.Hzt=Kr,r.Uzt=Vr,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=x,this.Fzt=x,this.Pzt=N,this.Gzt=-N}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,h,M,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)})),h=m.length,M=void 0,d=void 0,i=0;i<h;i++)if(typeof(M=m[i])!==w&&M!==c){for(d=f(n,M);o.Uf.OS(v,d);)d=f(n,M,d+1);isNaN(M)||(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,h,M,d,l,v,b,g,p,F,_,D,H=this,$=H.Qzt(o,u),N=$.length-1;for(N<0&&(N=0),m=H.setting.options,h=H.linePos=[],g=m.displayEmptyCellsAs,s=0;s<N;s++)if(typeof(M=H.Sl($[s],o))!==w&&M!==c){if(l=s+1,typeof(d=H.Sl($[l],o))===w||d===c)if(1===g)d=0;else if(2===g)for(l=s+2;l<=N;l++)if(typeof(p=o[$[l]])!==w&&p!==c){d=p;break}typeof d!==w&&d!==c?(v=H.Jzt($[s],{Width:e,Height:i},o,u,a),b=H.Jzt($[l],{Width:e,Height:i},o,u,a),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:b.X+F,Y:b.Y+F},h[s]={P1:f,P2:y}):s++}if((_=h.length)>0)for(t.strokeStyle=H.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=H.Wzt(a),s=0;s<_;s++)(D=h[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,h=u.Sl(t,r),M=u.Qzt(r,n),d=M.length,l=a.getColor.bind(u);return typeof h!==w&&h!==c&&(u.Pzt!==N&&u.Gzt!==-N||u.qzt(r),h===u.Pzt&&s.showLow&&(m=l(s.lowMarkerColor)),h!==u.Gzt||!s.showHigh||typeof m!==w&&m!==c||(m=l(s.highMarkerColor)),typeof m!==w&&m!==c||(a.displayDateAxis?0===(e=f(M,t))&&s.showFirst&&(m=l(s.firstMarkerColor)):0===t&&s.showFirst&&(m=l(s.firstMarkerColor))),typeof m!==w&&m!==c||(a.displayDateAxis?(i=f(M,t))===d-1&&s.showLast&&(m=l(s.lastMarkerColor)):t===d-1&&s.showLast&&(m=l(s.lastMarkerColor))),h<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,M,d,l,v,b,g,p=this,F={Width:e,Height:i},_=p.Qzt(o,u),w=_.length,D=p.options.sparklineType;for(g=0;g<w;g++)s=_[g],f=p.Xzt(s,o,u),c=p.Jzt(s,F,o,u,a),t.fillStyle!==f&&(t.fillStyle=f),0===D?(t.save(),y=r+c.X+c.Width/2,M=n+c.Y+c.Height/2,t.translate(y,M),t.rotate(45*h/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,b=c.Height,t.fillRect(d,l,v,b))},t.prototype.Yzt=function(t,r,n,e,i,o,u,a){var s,f,c,y,h,M,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),h=y=m(l.tVt(s,o,a))+.5,M=l.options.getColor(v.axisColor),(d=a)<1&&(d=1),t.strokeStyle!==M&&(t.strokeStyle=M),t.lineWidth!==d&&(t.lineWidth=d),t.beginPath(),t.moveTo(r+f,n+y),t.lineTo(r+c,n+h),t.stroke())},t.prototype.nVt=function(t){var r,n=this.eVt(t);return n===-N||(r=this.iVt(t))===N||(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=N,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,h=m.rVt(r,n),M=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&&h!==M){for(s=N,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,h,M,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),h=f(d.Qzt(n,e),r),m(M=l+o*h))},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!==-N&&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!==N&&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===-N||s===N)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,h,M,d=this,l=d.sVt(r,n,e,i),b=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(b,f,l,F(c)),0!==o&&(h=d.Zzt(i),y.Y<h&&y.Bottom<h+1?y.Height=m(y.Height+1):(M=r.Height-d.Zzt(i),y.Bottom>M&&y.Y>M-1&&(y.Y=M-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:br,VARISPARKLINE:gr,LOLLIPOPVARISPARKLINE:pr,BOXPLOTSPARKLINE:Fr,CASCADESPARKLINE:$r,PARETOSPARKLINE:Nr,MONTHSPARKLINE:Or,YEARSPARKLINE:Er,GAUGEKPISPARKLINE:Wr,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,e={"./src/common/common.entry.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M=this&&this.hJr||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),v=this&&this.dJr||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||M(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),r.daa=r.Events=r.UserManager=r.UUIDGenerator=r.B3=r.rbush=r.CultureManager=r.CultureInfo=r.zf=r.$T=r.st=r.ct=r.Uf=r.lt=r.ft=void 0,n=e("./src/common/util/colorhelper.ts"),Object.defineProperty(r,"ft",{enumerable:!0,get:function(){return n.ft}}),i=e("./src/common/util/types.ts"),Object.defineProperty(r,"lt",{enumerable:!0,get:function(){return i.lt}}),o=e("./src/common/util/arrayhelper.ts"),Object.defineProperty(r,"Uf",{enumerable:!0,get:function(){return o.Uf}}),u=e("./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=e("./src/common/util/numberhelper.ts"),Object.defineProperty(r,"st",{enumerable:!0,get:function(){return a.st}}),s=e("./src/common/util/regexhelper.ts"),Object.defineProperty(r,"$T",{enumerable:!0,get:function(){return s.$T}}),c=e("./src/common/util/stringhelper.ts"),Object.defineProperty(r,"zf",{enumerable:!0,get:function(){return c.zf}}),f=e("./src/common/util/rbush.ts"),Object.defineProperty(r,"rbush",{enumerable:!0,get:function(){return f.rbush}}),y=e("./src/common/util/common.ts"),m=e("./src/common/util/uuid-helper.ts"),Object.defineProperty(r,"UUIDGenerator",{enumerable:!0,get:function(){return m.UUIDGenerator}}),l=e("./src/common/richdata/richdatahelper.ts"),Object.defineProperty(r,"daa",{enumerable:!0,get:function(){return l.daa}}),Object.defineProperty(r,"HandleExcelSpecialDate",{set:function(t){y.HandleExcelSpecialDate=t},get:function(){return y.HandleExcelSpecialDate}}),v(e("./src/common/util/common.ts"),r),d=e("./src/common/culture/cultureInfo.ts"),Object.defineProperty(r,"CultureInfo",{enumerable:!0,get:function(){return d.CultureInfo}}),Object.defineProperty(r,"CultureManager",{enumerable:!0,get:function(){return d.CultureManager}}),v(e("./src/common/util/functionhelper.ts"),r),h=e("./src/common/users/users.entry.ts"),Object.defineProperty(r,"UserManager",{enumerable:!0,get:function(){return h.UserManager}}),Object.defineProperty(r,"Events",{enumerable:!0,get:function(){return h.Events}})},"./src/common/culture/cultureInfo.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O=this&&this.vJr||(j=function(t,r){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},j(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 e(){this.constructor=t}j(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),j;function T(t){return t.split("\xa0").join(" ").toUpperCase()}function E(t){var r,e,n=[];for(r=0,e=t.length;r<e;r++)n[r]=T(t[r]);return n}function R(t,r,e){var n=T(t),i=r.indexOf(n);return-1===i&&(i=e.indexOf(n)),i}function I(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 B(t,r,e){if(" "===t||e&&"\u3000"===t)return 0;var n=e&&e(t);return r.lineBreakingForbidStart&&-1!==r.lineBreakingForbidStart.indexOf(t)?!e||n?7:6:r.lineBreakingForbidEnd&&-1!==r.lineBreakingForbidEnd.indexOf(t)?!e||n?5:4:n?2:r.lineBreakingChar&&-1!==r.lineBreakingChar.indexOf(t)?3:1}function G(t,r,e){var n,i,o,u,a,c;if(!t)return[];for(n=[t[0]],i=0,o=B(t[0],r,e),u=1;u<t.length;u++)a=B(t[u],r,e),p[c=o+""+a]&&n[++i]===s&&(n[i]=""),n[i]+=t[u],o=a;return n}function L(t,r,e){var n,i,o,u=this;for(i=0,o=r.length;i<o;i++)n=r[i],u[t][n]=e[i]}function z(t,r){var e;"object"==typeof document&&("function"!=typeof CustomEvent?(e=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):e=new CustomEvent("cultureChanged",{}),e.cultureInfo=t,a.gcCultureInfo=t,a.gcCultureObj=r,document.dispatchEvent(e))}Object.defineProperty(r,"__esModule",{value:!0}),r.CultureManager=r.XPt=r.CultureInfo=r.TimelineDateOrder=void 0,n=e("./src/common/util/types.ts"),i=e("./src/common/util/common.ts"),o=e("./src/common/util/arrayhelper.ts"),u=e("./src/common/util/regexhelper.ts"),a="undefined"!=typeof window?window:e.g,s=void 0,c=null,f=n.lt.y0,y=n.lt.Dh,m=(new Date).getFullYear(),h=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],M=(l=["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(d=["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"]),f(l,(function(t,r){f(d,(function(t,e){t<d.length-4&&M.push(r+" "+e)}))})),M=M.concat(h),f(h,(function(t,r){f(d,(function(t,e){t<d.length-4&&M.push(r+" "+e)}))})),function(t){t[t.year=1]="year",t[t.quarterOrMonth=2]="quarterOrMonth",t[t.date=3]="date"}(v=r.TimelineDateOrder||(r.TimelineDateOrder={})),p={"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},g=function(){function t(){this.instanceType="CultureInfo",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.register=function(r,e){t.registry[r]=e},t.prototype.mTe=function(){return[" "]},t.prototype.FAe=function(t){var r=this,e=r.mTe(),n={lineBreakingChar:e};return r.TextFormat&&r.TextFormat.lineBreakingStrategy?r.TextFormat.lineBreakingStrategy(t,n):G(t,n)},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 G(t,this.TextFormat||{lineBreakingChar:[" ","-"]})},t.prototype.qPt=function(){var t,r,e,n;return this.$Pt||(e=(e=[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(M),1041===this.id&&(n=t.eraFormatter,e=(e=e.concat(this.QPt)).concat(n)),e=e.concat(t.preselectedFormatters),this.$Pt=e),this.$Pt},t.prototype.tGt=function(t){var r=this;return r.nGt||(r.nGt=E(r.DateTimeFormat.monthNames),r.eGt=E(r.DateTimeFormat.monthGenitiveNames)),R(t,r.nGt,r.eGt)},t.prototype.iGt=function(t){var r=this;return r.rGt||(r.rGt=E(r.DateTimeFormat.abbreviatedMonthNames),r.oGt=E(r.DateTimeFormat.abbreviatedMonthGenitiveNames)),R(t,r.rGt,r.oGt)},t.prototype.aGt=function(t){var r=this;return r.uGt||(r.uGt=E(r.DateTimeFormat.dayNames)),r.uGt.indexOf(T(t))},t.prototype.sGt=function(t){var r=this;return r.cGt||(r.cGt=E(r.DateTimeFormat.abbreviatedDayNames)),r.cGt.indexOf(T(t))},t.prototype.toInstanceJSON=function(){var t=this,r=["NumberFormat","DateTimeFormat","TextFormat","LocalNumberFormat","predefinedFormats","displayName","isJCKCulture","fontScriptCode","equalCharacters","TimelineDateOrder","TimelineDateSuffix"],e={cultureName:this.name(),instanceType:this.instanceType};return r.forEach((function(r){var n;void 0!==t[r]&&(e[r]=JSON.parse(JSON.stringify(t[r])))})),e.DateTimeFormat.qGt=void 0,e},t.fromInstanceJSON=function(r){var e=t.registry[r.instanceType],n=e?new e:new t;return r&&Object.assign(n,r),n.name=function(){return n.cultureName},n},t.registry={},t}(),r.CultureInfo=g,b=function(){function t(){}return t.fGt=function(r){return r>=t.lGt()&&r<=t.hGt()},t.dGt=function(){var t,r,e=g.eras;if(e!==s){for(t=[],r=0;r<e.length;r++)t[r]=new Date(e[r].startDate.replace(/-/g,"/"));return t}return this.vGt},t.mGt=function(r){var e,n,i,o,u;switch(r){case"g":e="symbol",n=t.gGt;break;case"gg":e="abbreviation",n=t.pGt;break;case"ggg":e="name",n=t.DEt;break;default:return[]}if(o=[],(i=g.eras)!==s){for(u=0;u<i.length;u++)o[u]=i[u][e];return o}return n},t.hGt=function(){var t,r=g.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=g.eras;return t!==s&&t.length>0?new Date(t[0].startDate.replace(/-/g,"/")):this.yGt},t.wGt=function(){var t=g.eras;return t!==s?t.length:this.MGt},t.CGt=function(){var t,r,e,n,i=g.eras;if(i!==s){for(t=[],r=1;r<i.length;r++)e=new Date(i[r-1].startDate.replace(/-/g,"/")),n=new Date(i[r].startDate.replace(/-/g,"/")),t[r-1]=n.getFullYear()-e.getFullYear()+1;return t[r-1]=99,t}return this.SGt},t.TGt=function(r){var e,n,i={AGt:-1,IGt:-1};if(!t.fGt(r)){if(!(r>t.hGt()))return i;r=t.hGt()}for(e=0;e<t.wGt();e++)if(r<(n=e+1!==t.wGt()?t.dGt()[e+1]:t.xGt(t.hGt(),1))){i.AGt=e,i.IGt=r.getFullYear()-t.dGt()[e].getFullYear()+1;break}return i},t.xGt=function(t,r){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());return e.setMilliseconds(e.getMilliseconds()+r),new Date(e.valueOf())},t.NGt=function(r,e){var n;return t.dGt()[r].getFullYear()+e-1},t.kGt=function(r,e){var n,i;for(e=e.toUpperCase(),n=t.mGt(r),i=0;i<n.length;i++)if(n[i]===e)return i;return-1},t.DGt=function(r,e,n){var i,o,u,a=t,s=a.TGt(e),c=s.AGt;if(c>=0&&(i=a.mGt(r)).length>0)return i[c];if((o=s.IGt)>=0){if("1"===(u=o.toString())&&n)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="ENCulture",k=function(t){function r(){var r,e=t.call(this)||this;return e.instanceType=F,L.call(e,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]),r=["MMM yyyy","MMMM yyyy"],L.call(e,"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]),e.DateTimeFormat.defaultDatePattern=e.DateTimeFormat.shortDatePattern+" H:mm:ss",e.name=function(){return"en-US"},e.displayName="English (United States)",e.id=1033,e.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);_(* "-"??_);_(@_)'}},e}return O(r,t),r}(g),g.register(F,k),_="JACulture",w=function(t){function r(){var r,e,n,i,o,u=t.call(this)||this;return u.instanceType=_,r={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:c,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},e={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u5104",Trillions:"\u5146"},L.call(u,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"\xa5",!1,"NaN (\u975e\u6570\u5024)","-\u221e",1,1,"+\u221e",r,e]),n=["1","2","3","4","5","6","7","8","9","10","11","12",""],i=["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708",""],o=["yyyy\u5e74M\u6708d\u65e5","yyyy\u5e74M\u6708dd\u65e5","yyyy\u5e74MM\u6708d\u65e5","yyyy\u5e74MM\u6708dd\u65e5"],L.call(u,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],n,n,"\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'",i,i,"\u897f\u66a6 (\u65e5\u672c\u8a9e)","\u5348\u5f8c","yyyy/MM/dd",["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",o,"ggge/mmmm/d\u65e5"]),u.DateTimeFormat.eras=!0,u.DateTimeFormat.defaultDatePattern=u.DateTimeFormat.shortDatePattern+" "+u.DateTimeFormat.longTimePattern,u.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'],u.name=function(){return"ja-JP"},u.id=1041,u.displayName="Japanese (Japan)",u.isJCKCulture=!0,u.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_-;_-* "-"??_-;_-@_-'}},u.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],u.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"\u6708",date:"\u65e5"},u.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 G(t,r,I)}},u.equalCharacters=["\u2015\u309d\u309e\u30a0\u30fd\u30fe\u30fc","\u3190\u3191\u31e4\u31e5","\u2038\u204a",".\u2024","&\u204b","%\u204f","$\u2052","#\u2057",'"\u204d',"\u2039\u2053"],u}return O(r,t),r}(g),g.register(_,w),D="ZHCulture",x=function(t){function r(){var r,e,n,i,o,a=t.call(this)||this;return a.instanceType=D,r={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:c,numbers:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"]}},e={Hundreds:"\u767e",Thousands:"\u5343",Millions:"\u767e\u4e07",Billions:"\u5341\u4ebf",Trillions:"\u5146"},L.call(a,"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",r,e]),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",""],i=["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708",""],o=["yyyy\u5e74M\u6708","M\u6708d\u65e5","yyyy\u5e74M\u6708d\u65e5","h\u65f6mm\u5206","h\u65f6mm\u5206ss\u79d2"],L.call(a,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],n,n,"\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'",i,i,"\u516c\u5386","\u4e0b\u5348","yyyy/M/d",["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],"H:mm","yyyy'\u5e74'M'\u6708'","yyyy\u5e74/mmmm/d\u65e5",o]),a.DateTimeFormat.defaultDatePattern=a.DateTimeFormat.shortDatePattern+" "+a.DateTimeFormat.longTimePattern,a.name=function(){return"zh-cn"},a.id=2052,a.displayName="Chinese (China)",a.isJCKCulture=!0,a.localeCompare=function(t,r){var e=t.localeCompare(r,"zh");return e<0&&t>="\u4e00"&&r<"\u4e00"||e>0&&r>="\u4e00"&&t<"\u4e00"?-e:e},a.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_ ;_ * "-"??_ ;_ @_ '}},a.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],a.TimelineDateSuffix={year:"\u5e74",quarter:"",month:"",date:"\u65e5"},a.TextFormat={lineBreakingChar:[" ","\u3000","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","\uff01","\uff05","\uff09","\uff0c","\uff0e","\uff1a","\uff1b","\uff1f","\uff3d","\uff5d"],lineBreakingForbidEnd:["(","[","{","\uff08","\uff3b","\uff5b"],lineBreakingStrategy:function(t,r){return G(t,r,I)}},a.normalizeDateTimeString=function(t){var r,e;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)?((e=(e=t.replace("\u65f6",":").replace("\u5206",":").replace("\u79d2","")).endsWith(":")?e+"00":e).startsWith("\u4e0a\u5348")&&(e=e.replace("\u4e0a\u5348","")+" AM"),e.startsWith("\u4e0b\u5348")&&(e=e.replace("\u4e0b\u5348","")+" PM"),e):t.includes("\u4e0a\u5348")||t.includes("\u4e0b\u5348")?t.replace("\u4e0a\u5348","am").replace("\u4e0b\u5348","pm"):c},a}return O(r,t),r.prototype.mTe=function(){return[" ","\u3000"]},r}(g),g.register(D,x),H="KOCulture",N=function(t){function r(){var r,e,n,i,o=t.call(this)||this;return o.instanceType=H,r={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"]}},e={Hundreds:"\ubc31",Thousands:"\ucc9c",Millions:"\ubc31\ub9cc",Billions:"10\uc5b5",Trillions:"\uc870"},L.call(o,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"\u20a9",!1,r,e]),n=["1","2","3","4","5","6","7","8","9","10","11","12",""],i=["1\uc6d4","2\uc6d4","3\uc6d4","4\uc6d4","5\uc6d4","6\uc6d4","7\uc6d4","8\uc6d4","9\uc6d4","10\uc6d4","11\uc6d4","12\uc6d4",""],L.call(o,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["\uc77c","\uc6d4","\ud654","\uc218","\ubaa9","\uae08","\ud1a0"],n,n,"\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'",i,i,"\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"]),o.DateTimeFormat.defaultDatePattern=o.DateTimeFormat.shortDatePattern+" "+o.DateTimeFormat.longTimePattern,o.name=function(){return"ko-kr"},o.id=1042,o.displayName="Korean (Korea)",o.isJCKCulture=!0,o.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_-;_-* "-"??_-;_-@_-'}},o.TimelineDateOrder=[v.year,v.quarterOrMonth,v.date],o.TimelineDateSuffix={year:"\ub144",quarter:"",month:"\uc6d4",date:"\uc77c"},o}return O(r,t),r}(g),g.register(H,N),$={invariant:new g,"en-us":new k,"ja-jp":new w,"zh-cn":new x,"ko-kr":new N},S={},A=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],P=["wmk1","wmk2"],C=function(){function t(){this.KPt=1,this.JPt={}}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.culture=function(r,e){if(0===arguments.length)return t.RGt;r&&(r=r.toLowerCase(),(t.RGt!==r||e)&&(t.RGt=r,this.KPt++,z(t.RGt,t.OGt.getCultureInfo())))},t.prototype.addCultureInfo=function(t,r,e){var n,o,u,a,s;if(r&&r instanceof g){if(n=r.NumberFormat&&r.NumberFormat.numberDecimalSeparator,o=r.NumberFormat.arrayListSeparator,u=r.NumberFormat.arrayGroupSeparator,n===r.NumberFormat.listSeparator||u===o)throw(a=new i.ResourceManager(i.SR)).getResource().Exp_Separator;$[t.toLowerCase()]=r}e&&"object"==typeof e&&(s=t.toLowerCase(),S[s]=y(!0,{},e),this.KPt++)},t.prototype.getCultureInfoDict=function(){return $},t.prototype.getCultureInfo=function(r){var e,n,i;if(0===arguments.length)return $[t.RGt];for(i in"string"==typeof r&&(r=r.toLowerCase()),n=c,e=$)if(i===r||e[i].id!==s&&e[i].id===r){n=e[i];break}return n},t.prototype.getLanguage=function(t){if("string"==typeof t){var r=t.toLowerCase();return S[r]}return c},t.prototype.getResources=function(t){var r,e=this.culture().toLowerCase();return t!==c&&t!==s||(t=e),"string"==typeof t&&(r=t.toLowerCase(),this.JPt[r])?this.BGt(this.JPt[r]):c},t.prototype.BGt=function(t){var r,e="PivotTables",n="ReportSheet",i="GanttSheet",o="DataChart",u="Sheets",a="CalcEngine",s="Functions",c="TableFunctions",f=y(!0,{},t);return f[e]&&this.LGt(f[e],P),f[n]&&this.LGt(f[n],P),f[i]&&this.LGt(f[i],P),f[o]&&this.LGt(f[o],P),f[u]&&this.LGt(f[u],A),(r=f[a])&&(f[s]=r.wmt,f[c]=r.d2t,delete r.wmt,delete r.d2t),f},t.prototype.LGt=function(t,r){var e,n,i;for(e=0,n=r;e<n.length;e++)delete t[i=n[e]]},t.prototype.FGt=function(t,r,e){var n,i,u,a,s=S[t.toLowerCase()];for(n in r)o.Uf.OS(A,n)||(u=null!==(i=this.PGt(s,n,e))&&"string"==typeof i&&"string"==typeof r[n],a=null!==i&&"object"==typeof i&&!Array.isArray(i),(u||a)&&(r[n]=i));r.wmt&&s.Functions&&this.GGt(s.Functions,r.wmt),r.d2t&&s.TableFunctions&&y(!0,r.d2t,s.TableFunctions)},t.prototype.PGt=function(t,r,e){var n,i;if(t.hasOwnProperty(r))return t[r];if(e&&(n=t[e])&&"object"==typeof n&&n.hasOwnProperty(r))return n[r];for(i in t)if((n=t[i])&&"object"==typeof n&&n.hasOwnProperty(r))return n[r];return null},t.prototype.GGt=function(t,r){var e,n,i,o,u,a,s,c={};for(e in r)if(t.hasOwnProperty(e))for(a in n=r[e],i=t[e],o=n.parameters,u=i.parameters,n.description=i.description,o)u.hasOwnProperty(a)&&"string"==typeof(s=u[a])&&(o[a].name=s);return c},t.prototype.Fe=function(r){var e=this.getCultureInfo(r);return e||(e=$[t.RGt])||(e=new g),e},t.prototype.xat=function(t,r){var e=this.getCultureInfo(t)||this.getCultureInfo("en-US"),n=e.DateTimeFormat,i=n.filterDialogDateFormatter;return(r.indexOf("g")>=0||r.indexOf("e")>=0)&&(i=n.EraFilterDialogDateFormatter||i),i},t.RGt="en-us",t}(),r.CultureManager=C.instance()},"./src/common/richdata/richdatahelper.ts":function(t,r,e){var n,i,o;Object.defineProperty(r,"__esModule",{value:!0}),r.daa=void 0,n=e("./src/common/util/types.ts"),i=n.lt.ht,o=function(){function t(){}return t.vSr=function(r,e,n){var o,u;i(r)||i(e)||(o=r.toLowerCase(),t.vaa[o]=e,-1===(u=t.Uyn.indexOf(o))&&(void 0!==n&&n>=0&&n<t.Uyn.length?t.Uyn.splice(n,0,o):t.Uyn.push(o)))},t.maa=function(r){var e,n;i(r)||(e=r.toLowerCase(),delete t.vaa[e],-1!==(n=t.Uyn.indexOf(e))&&t.Uyn.splice(n,1))},t.yLi=function(r){if(!i(r))return t.vaa[r.toLowerCase()]},t.Laa=function(r){if(i(r)||"object"!=typeof r)return!1;var e=r.richDataType;return"string"==typeof e&&t.vaa.hasOwnProperty(e.toLowerCase())},t.Sv=function(r,e){var n,o,u,a,s,c,f,y,m,l,d,h,M;return i(r)||i(e)?i(r)?i(e)?0:1:-1:(n=t.Laa(r),o=t.Laa(e),u="boolean"==typeof r,a="boolean"==typeof e,n&&o?(s=r.richDataType,c=e.richDataType,(f=null==s?void 0:s.toLowerCase())!==(y=null==c?void 0:c.toLowerCase())?(m=t.Uyn.indexOf(f),l=t.Uyn.indexOf(y),(d=-1===m?Number.MAX_SAFE_INTEGER:m)-(h=-1===l?Number.MAX_SAFE_INTEGER:l)):(M=t.vaa[f])?M.compare(r,e):0):n?a?-1:1:o?u?1:-1:0)},t.vaa={},t.Uyn=[],t}(),r.daa=o},"./src/common/users/users.entry.ts":function(t,r,e){var n=this&&this.hJr||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),i=this&&this.dJr||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./src/common/users/users.ts"),r)},"./src/common/users/users.res.en.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Error_InvalidRemoteConfigurationForUserFetching=r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=r.Error_FailedToFetchUsers=r.Error_RemoteConfigurationForUserFetchingNotProvided=r.GUEST_USER=void 0,r.GUEST_USER="Guest",r.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",r.Error_FailedToFetchUsers="Failed to fetch users: ",r.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",r.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},"./src/common/users/users.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M=this&&this.pJr||function(t,r,e,n){function i(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{s(n.next(t))}catch(t){o(t)}}function a(t){try{s(n.throw(t))}catch(t){o(t)}}function s(t){t.done?e(t.value):i(t.value).then(u,a)}s((n=n.apply(t,r||[])).next())}))},v=this&&this.gJr||function(t,r){var e={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(a){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(e=0)),e;)try{if(n=1,i&&(o=2&a[0]?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(!(o=e.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){e=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(6===a[0]&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=r.call(t,e)}catch(t){a=[6,t],i=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.UserManager=r.Events=void 0,n=e("./src/common/users/users.res.en.ts"),i=e("./src/common/util/common.ts"),o=e("./src/common/util/uuid-helper.ts"),u=e("./src/common/util/types.ts"),a=e("./src/common/util/arrayhelper.ts"),u.lt.Dh(i.SR.en,n),s=new i.ResourceManager(i.SR),c=s.getResource.bind(s),f=u.lt.ht,y=a.Uf.Gf,m=u.lt.tv,l=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"],d=function(){function t(){}return t.CurrentUserChanged="CurrentUserChanged",t}(),r.Events=d,h=function(){function t(t){var r=o.UUIDGenerator.secureUpperCaseUUID(),e={id:r,name:"",color:"#26A69A"};Object.defineProperty(e,"name",{get:function(){return c().GUEST_USER},enumerable:!0,configurable:!0}),this.Owo=r,this.upo=[e],this.hpo=e.id,this.options=t,this.cpo=0,this.aT=new Map([[d.CurrentUserChanged,[]]])}return t.instance=function(){return this.OGt||(this.OGt=new this)},t.prototype.configure=function(t){this.options=t},t.prototype.Hfo=function(t){var r,e=this.upo;for(r=0;r<e.length;r++)if(e[r].id===t)return m(e[r])},t.prototype.get=function(t){var r;return M(this,void 0,void 0,(function(){var e;return v(this,(function(n){switch(n.label){case 0:return(null===(r=this.options)||void 0===r?void 0:r.get)?t===this.Owo?[2,this.Hfo(t)]:[4,this.options.get(t)]:[3,2];case 1:return(e=n.sent())&&this.ZP(e),[2,e];case 2:return[2,this.Hfo(t)]}}))}))},t.prototype.Tdo=function(t){t||(t=o.UUIDGenerator.secureUpperCaseUUID());var r=this.Hfo(t);return r||(r={id:t,name:c().GUEST_USER}),this.ZP(r),r},t.prototype.fpo=function(t){var r=this;Array.isArray(t)&&t.forEach((function(t){t&&!t.color&&(t.color=r.lpo(t.id))}))},t.prototype.dvo=function(t){var r;return M(this,void 0,void 0,(function(){var e,n;return v(this,(function(i){switch(i.label){case 0:return(null===(r=(e=this).options)||void 0===r?void 0:r.search)?[4,e.options.search(t)]:[3,2];case 1:return n=i.sent(),e.fpo(n),[2,n];case 2:return[2,[]]}}))}))},t.prototype.bind=function(t,r){this.aT.has(t)||this.aT.set(t,[]);var e=this.aT.get(t);Array.isArray(e)&&e.push(r)},t.prototype.current=function(t){var r,e=this;return f(t)||(r=e.hpo)!==t&&(e.hpo=t,Promise.all([e.get(r),e.get(t)]).then((function(n){var i=n[0],o=n[1];r===e.Owo&&(e.upo=e.upo.filter((function(t){return t.id!==e.Owo})),delete e.Owo),e.dpo(i,o,r,t)})).catch((function(n){e.dpo(void 0,void 0,r,t)}))),e.hpo},t.prototype.dpo=function(t,r,e,n){var i=this;t||(t=i.Hfo(e)),r||(r=i.Hfo(n)),i.ki(d.CurrentUserChanged,{oldCurrentUser:t,newCurrentUser:r})},t.prototype.Ufo=function(){return y(this.upo)},t.prototype.unbind=function(t,r){if(this.aT.has(t)){var e=this.aT.get(t);if(!Array.isArray(e))return;r?e.splice(e.indexOf(r),1):e.splice(0)}},t.prototype.ki=function(t,r){if(this.aT.has(t)){var e=this.aT.get(t);if(!Array.isArray(e))return;e.forEach((function(e){e(t,r)}))}},t.prototype.xji=function(t){var r;t&&(this.fpo(t),this.upo=t||[])},t.prototype.Np=function(){return y(this.upo)},t.prototype.vpo=function(){var t,r=this.cpo,e=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:l.length;return this.cpo=(r+1)%e,r},t.prototype.ago=function(t){var r,e,n=0;if(!t||0===t.length)return n;for(r=0;r<t.length;r++)n=(n<<5)-n+(e=t.charCodeAt(r)),n&=n;return Math.abs(n)},t.prototype.ugo=function(t){var r,e=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)?this.options.colorScheme.length:l.length,n=this.ago(t);return n%e},t.prototype.lpo=function(t){var r,e,n,i=(null===(r=this.options)||void 0===r?void 0:r.colorScheme)||l;return t?i[e=this.ugo(t)]:i[n=this.vpo()]},t.prototype.ZP=function(t){var r,e=this.upo;for(r=0;r<e.length;r++)if(e[r].id===t.id)return e[r]=t,void(t.color||(t.color=this.lpo(t.id)));t.color||(t.color=this.lpo(t.id)),e.push(t)},t.prototype.ZX=function(t,r){var e={id:t||o.UUIDGenerator.secureUpperCaseUUID(),name:r||c().GUEST_USER};return this.ZP(e),e},t.prototype.VP=function(t){this.upo=this.upo.filter((function(r){return r.id!==t}))},t.prototype.L0=function(){this.aT.clear(),this.upo=[],this.hpo=""},t}(),r.UserManager=h.instance()},"./src/common/util/arrayhelper.ts":function(t,r){var e,n,i;function o(t,r){var n,i;for(n in r)r.hasOwnProperty(n)&&(i=r[n],Array.isArray(i)?(t[n]=[],o(t[n],r[n])):i!==e&&"object"==typeof i?(t[n]={},o(t[n],r[n])):t[n]=r[n])}Object.defineProperty(r,"__esModule",{value:!0}),r.Uf=void 0,e=null,n=void 0,i=function(){function t(){}return t.Eit=function(t,r,e){t.splice(r,0,e)},t.ZP=function(t,r){t.push(r)},t.OS=function(t,r){return t.indexOf(r)>-1},t.VP=function(t,r){var e=t.indexOf(r);e>-1&&t.splice(e,1)},t.UGt=function(t,r){return t.slice(0,r).concat(t.slice(r+1))},t.hD=function(t,r,e){return t.indexOf(r,e)},t.d5=function(t,r,n){if(!(r<0))for(var i=0;i<n&&r+i<t.length;i++)t[r+i]=e},t.N2t=function(t,r){var i,o;for(r<0&&(r=-1),o=i=r+1;o<t.length;o++)if(t[o]!==n&&t[o]!==e)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,e){var n,i,o,u,a,s,c,f,y,m;function l(t,r,e){return e<0&&(e+=240),e>240&&(e-=240),e<40?t+((r-t)*e+20)/40:e<120?r:e<160?t+((r-t)*(160-e)+20)/40:t}function d(t,r,e){var n,i,o,u,a;return 0===e?n=i=o=s(255*r/240+"",10):(u=void 0,a=void 0,n=h(u=2*r-(a=r<=120?s((r*(240+e)+120)/240+""):r+e-s((r*e+120)/240+"")),a,t+80),i=h(u,a,t),o=h(u,a,t-80)),{a:255,r:n,g:i,b:o}}function h(t,r,e){return o(s((255*l(t,r,e)+120)/240+""),255)}function M(t){var r,e,n,i,o,u,a,s,f,m;return/^#[A-Fa-f0-9]+$/.test(t)?(r=t.replace(/^#/,""),n="",i="",6===(e=r.length)||8===e?(n=r.substr(0,6),8===e&&(i=r.substr(6,2))):3!==e&&4!==e||(n=(o=r.split(3===e?/(.)/:/(..)/)).filter(Boolean).map((function(t){return parseInt(3===e?t+t:t,16)})).map((function(t){return t.toString(16).padStart(2,"0")})).join(""),4===e&&(i=o[3]+o[3])),[u=parseInt(n.slice(0,2),16),a=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16),f=i?parseInt(i,16):255]):t.toLowerCase()in c?c[t.toLowerCase()]:null!==(m=y.exec(t))?(f=void 0===m[4]?255:255*+m[4],[m[1],m[2],m[3],f]):null}Object.defineProperty(r,"__esModule",{value:!0}),r.ft=void 0,n=e("./src/common/util/numberhelper.ts"),i=n.st.VGt,o=Math.min,u=Math.max,a=Math.abs,s=parseInt,c={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},f=function(){function t(t){var r,e,n,i,a=this,c=t.r,f=t.g,y=t.b,m=u(u(c,f),y),l=o(o(c,f),y),d=m+l;a.HGt=s((240*d+255)/510+"",10),0===(r=m-l)?(a.zGt=0,a.wv=160):(a.HGt<=120?a.zGt=s((240*r+d/2)/d+"",10):a.zGt=s((240*r+(510-d)/2)/(510-d)+"",10),e=(40*(m-c)+r/2)/r,n=(40*(m-f)+r/2)/r,i=(40*(m-y)+r/2)/r,a.wv=s(c===m?i-n+"":f===m?80+e-i+"":160+n-e+"",10),a.wv<0&&(a.wv+=240),a.wv>240&&(a.wv-=240))}return t.prototype.YGt=function(t){var r=this,e=r.HGt,n=r.ZGt(r.HGt,500,!0);return d(r.wv,e+(n-e)*t,r.zGt)},t.prototype.ZGt=function(t,r,e){return 0===r?t:e?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,e=t.r,n=t.g,o=t.b;return 3===arguments.length&&(r=255,e=arguments[0],n=arguments[1],o=arguments[2]),4===arguments.length&&(r=arguments[0],e=arguments[1],n=arguments[2],o=arguments[3]),255===r?"#"+i(e,!0,2)+i(n,!0,2)+i(o,!0,2):"rgba("+e+","+n+","+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 e,n=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!!((e=((n/=255)+(i/=255)+(o/=255))/3)>=.9&&u<=.05)},t.Uv=function(r){var e=255^r.r,n=255^r.g,i=255^r.b;return t.j(r.a,e,n,i)},t.WGt=function(r){var n,i,o,u;return"object"!=typeof document?M(r):((n=t.xf)||(i=document.createElement("canvas"))&&i.getContext&&(n=t.xf=i.getContext("2d",{willReadFrequently:!0})),n||((o=e("canvas"))&&o.createCanvas&&(i=o.createCanvas(2,2),n=t.xf=i.getContext("2d")),n)?(n.clearRect(1,1,1,1),n.fillStyle=r,n.fillRect(1,1,1,1),(u=n.getImageData(1,1,1,1))?u.data:null):M(r))},t._=function(r){var e,n,i,o,u;return r instanceof t||null!==r&&"object"==typeof r?r:(e=0,n=0,i=0,o=0,r&&(u=t.WGt(r))&&(n=u[0],i=u[1],o=u[2],e=u[3]),{a:e,r:n,g:i,b:o})},t.Cv=function(r,e){var n,i;return 0===e?r:(n=new f(r),i=s((e>0?(240-n.HGt)*e:n.HGt*e)+"",10),t.QGt(n.wv,n.HGt+i,n.zGt))},t.YGt=function(r,e){var n=t._(r),i=new f(n),o=i.YGt(e);return t.j(o)},t.Dz=l,t.QGt=d,t}(),r.ft=m},"./src/common/util/common.ts":function(t,r,e){var n,i,o,u,a;function s(t,r,e,n){var i,o,u,a,s;if(t&&0<=e&&e<r){for(i=[],o=void 0,u=void 0,u=e;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)+n]=s}}function c(t,r,e,n){var i,o,u,a,s,c,f,y,m;if(t&&0<=r){for(i=[],o=void 0,u=void 0,s=0,c=a=Array.from(t.keys());s<c.length;s++)(f=c[s])>=r&&i.push(f);for(i.sort((function(t,r){return t-r})),o=i.length,u=0;u<o;u++)f=i[o-u-1],y=t.get(f),t.delete(f),m=f+e,t.set(m,y),n&&n(y,m)}}function f(t,r,e,n){var i,o,u,a,s,c;if(t&&0<=e&&e<r){for(i=[],o=void 0,u=e+n,a=void 0,a=e;a<r;a++)void 0!==t[a]&&(e<=a&&a<u?t[a]=null:a>=u&&i.push(a));for(o=i.length,a=0;a<o;a++)c=t[s=i[a]],t[s]=null,t[Math.floor(s)-n]=c}}function y(t,r,e,n){var i,o,u,a,s,c,f,y,m,l;if(t&&0<=r){for(i=[],o=void 0,u=r+e,a=void 0,c=0,f=s=Array.from(t.keys());c<f.length;c++)y=f[c],t.has(y)&&(r<=y&&y<u?(n&&n(t.get(y),-1),t.delete(y)):y>=u&&i.push(y));for(i.sort((function(t,r){return t-r})),o=i.length,a=0;a<o;a++)y=i[a],m=t.get(y),t.delete(y),l=y-e,t.set(l,m),n&&n(m,l)}}function m(t,r){return t.hasOwnProperty(r)}function l(t,r){return t instanceof r}Object.defineProperty(r,"__esModule",{value:!0}),r.ut=r.kh=r.Cho=r.X8=r.who=r.J8=r.ResourceManager=r.SR=void 0,n=e("./src/common/culture/cultureInfo.ts"),i=e("./src/common/util/util.res.en.ts"),o=e("./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=n.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 e,i;r&&(i=(e=n.CultureManager.culture()).toLowerCase(),this.JPt[i]=this.JPt[i]||{},this.JPt[i][r]=t,n.CultureManager.JPt=this.JPt)},t.prototype.JGt=function(t,r){var e,i,o,a=n.CultureManager.culture();if(t&&a){if(e=n.CultureManager.KPt,this.KPt===e&&!r)return;return this.KPt=e,n.CultureManager.getLanguage(a)?(i=u(!0,{},t.en),n.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.who=c,r.X8=f,r.Cho=y,r.kh=m,r.ut=l},"./src/common/util/datetimehelper.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M,v,p,g,b,F;function k(t,r){return-1!==t.indexOf(r)&&t.indexOf(r)===t.lastIndexOf(r)}function _(t,r){return new Date(t,r+1,0).getDate()}function w(t,r){var e,n=Number(r),i=(new Date).getFullYear();return!(t>12||0===t||3===r.length||4===r.length&&n<1900)&&(n>(e=_(i,t-1))?(n<30?"20":"19")+n+"/"+t+"/1":i+"/"+t+"/"+n)}function D(t,r){if(n.HandleExcelSpecialDate)return n.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 x(t,e,n,i){var o,a,s,c,y,m,l,v,p,g,b,F,k,_,w,N,$,S,A,P,C,O,j,T,E=n.DateTimeFormat,R=E.Calendar.convert;if(!e||!e.length)return n&&n.name.length?R?x(t,E.fullDateTimePattern,n):t.toLocaleString():t.toString();function I(){return y||m||(y=l.test(e),m=d),y}function B(t,r){return g?g[r]:D(t,r)}for(o=E.eras,s="",l=/([^d]|^)(d|dd)([^d]|$)/g,v=0,p=/\/|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"===e)&&R&&(g=R.fromGregorian(t)),b=-2,F=-2,k={y4:""},_=0;w=p.lastIndex,N=p.exec(e),$=e.slice(w,N?N.index:e.length),k.y4="",v+=H($,k),s+=k.y4,N;_++)if(v%2!=1)switch(S=B(t,0),A=t.getDay(),P=t.getHours(),C=t.getMinutes(),O=t.getSeconds(),j=t.getMilliseconds(),T=t.getTimezoneOffset(),N[0]){case"dddd":s+=E.dayNames[A];break;case"ddd":s+=E.abbreviatedDayNames[A];break;case"dd":y=d,s+=f(B(t,2),2);break;case"d":y=d,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+=b>=0?u.XPt.DGt("ee",t,i):f(g?g[0]:S,4);break;case"yy":s+=b>=0?u.XPt.DGt("ee",t,i):f((g?g[0]:S)%100,2);break;case"y":s+=b>=0?u.XPt.DGt("e",t,i):((g?g[0]:S)%100).toString();break;case"hh":0===(c=P%12)&&(c=12),s+=f(c,2);break;case"h":0===(c=P%12)&&(c=12),s+=c;break;case"HH":s+=f(P,2);break;case"H":s+=P.toString();break;case"mm":s+=f(C,2);break;case"m":s+=C.toString();break;case"ss":s+=f(O,2);break;case"s":s+=O.toString();break;case"tt":s+=P<12?E.amDesignator:E.pmDesignator;break;case"t":s+=(P<12?E.amDesignator:E.pmDesignator).charAt(0);break;case"f":case"0":s+=f(j,3).charAt(0);break;case"ff":case"00":s+=f(j,3).substr(0,2);break;case"fff":case"000":s+=f(j,3);break;case"z":s+=((c=T/60)<=0?"+":"-")+h(M(c));break;case"zz":s+=((c=T/60)<=0?"+":"-")+f(h(M(c)),2);break;case"zzz":s+=((c=T/60)<=0?"+":"-")+f(h(M(c)),2)+":"+f(M(T%60),2);break;case"g":case"gg":case"ggg":if(!o)break;if(b===_-1){b=_;break}s+=u.XPt.DGt(N[0],t,i),b=_;break;case"e":case"ee":if(!o){s+=f(g?g[0]:S,4);break}if(F===_-1){F=_;break}s+=u.XPt.DGt(N[0],t,i),F=_;break;case"/":s+=E.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(N[0]))throw new Error((0,r.getSR)().Exp_InvalidDateFormat);s+=N[0]}else s+=N[0];return s.toString()}function H(t,r){var e,n,i,o=0,u=l;for(e=0,n=t.length;e<n;e++)switch(i=t.charAt(e)){case'"':u?r.y4+="'":o++,u=l;break;case"\\":u&&(r.y4+="\\"),u=!u;break;default:r.y4+=i,u=l}return o}function N(t,r){var e,n=new Date,i=t.DateTimeFormat.eras;return i&&r<100&&(r+=(e=u.XPt.TGt(n).IGt)-e%100)>t.DateTimeFormat.Calendar.TwoDigitYearMax&&(r-=100),r}function $(){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 S(t,e,n){var i,u,a,s,c,f,m,l,d,h,M;if(t.qGt){if(t.qGt[e])return t.qGt[e]}else t.qGt={};for(i=(i=(i=e).replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),u="^",a={y4:""},s=[],c=0,f=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;(l=m.exec(i))!==y;)if(a.y4="",d=i.slice(c,l.index),c=m.lastIndex,f+=H(d,a),u+=a.y4,f%2!=1){switch(l[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+=n?"(\\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,l[0])}else u+=l[0];return a.y4="",H(i.slice(c),a),u+=a.y4,M={$Gt:h=(u+="$").toString().replace(/\s+/g,"\\s+"),QMt:s,tUt:new RegExp(h)},t.qGt[e]=M,M}function A(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,n=e("./src/common/util/common.ts"),i=e("./src/common/util/stringhelper.ts"),o=e("./src/common/util/arrayhelper.ts"),u=e("./src/common/culture/cultureInfo.ts"),a=e("./src/common/util/types.ts"),s=e("./src/common/util/regexhelper.ts"),c=a.lt.ht,f=i.zf.B9t,y=null,m=parseInt,l=!1,d=!0,h=Math.floor,M=Math.abs,v=new n.ResourceManager(n.SR,"Common"),r.getSR=v.getResource.bind(v),p={},g="January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec",b={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12},F=function(){function t(){}return t.L9t=function(t,r,e,n){return e||(e=u.CultureManager.Fe()),x(t,r,e,n)},t.Pe=function(t,r,e){return x(t,r,e||u.CultureManager.Fe())},t.Mjt=function(r,e,n){var i,o,u,a,s,c=l;for((s=n).slice(1).forEach((function(t){t&&(c=!0)})),c||(s=s.concat(e.qPt())),o=s.length,i=1;i<o;i++)if((a=s[i])&&(c=d,u=t.nUt(r,a,e)))return u;return y},t.yU=function(r,e,n){var i,o;return e||n||void 0===(o=p[r])?(i=e?[r,e]:[r],o=t.Mjt(r,n||u.CultureManager.Fe(),i),e||n||(p[r]=o),o?new Date(o):o):o?new Date(o):o},t.Z6t=function(r,e){return t.Mjt(r,u.CultureManager.Fe("invariant"),[r,e])},t.nUt=function(t,r,e){var n,o,a,s,c,f,d,h,M,v,p,g,b,F,k,_,w,D,x,H,$,A,P,C,O,j,T,E,R,I;if(t=t.trim(),(s=(a=S(n=e.DateTimeFormat,r,o=1041===e.id)).tUt.exec(t))===y)return y;for(c=a.QMt,f=y,d=y,h=y,M=y,v=y,p=0,b=0,F=0,k=0,_=y,w=l,D=l,x=0,H=c.length;x<H;x++)if($=s[x+1])switch(c[x]){case"dd":case"d":if((M=m($,10))<1||M>31)return y;break;case"MMMM":if((h=e.tGt($))<0||h>11)return y;break;case"MMM":if((h=e.iGt($))<0||h>11)return y;break;case"M":case"MM":case"%M":if((h=m($,10)-1)<0||h>11)return y;break;case"e":case"ee":if((d=o&&"\u5143"===$?1:N(e,m($,10)))<0||d>9999)return y;break;case"y":case"yy":case"yyy":case"yyyy":if((d=m($,10))<0||d>9999)return y;break;case"h":case"hh":case"H":case"HH":if((p=m($,10))<0)return y;break;case"m":case"mm":if((b=m($,10))<0||b>59)return y;break;case"s":case"ss":if((F=m($,10))<0||F>59)return y;break;case"tt":case"t":if(w=(A=$.toUpperCase())===n.pmDesignator.toUpperCase(),D=A===n.amDesignator.toUpperCase(),!w&&!D)return y;break;case"f":case"0":if((k=100*m($,10))<0||k>999)return y;break;case"ff":case"00":if((k=10*m($,10))<0||k>999)return y;break;case"fff":case"000":if((k=m($,10))<0||k>999)return y;break;case"dddd":if((v=e.aGt($))<0||v>6)return y;break;case"ddd":if((v=e.sGt($))<0||v>6)return y;break;case"zzz":if(2!==(P=$.split(/:/)).length)return y;if((g=m(P[0],10))<-12||g>13)return y;if((C=m(P[1],10))<0||C>59)return y;_=60*g+(i.zf.fJ($,"-")?-C:C);break;case"z":case"zz":if((g=m($,10))<-12||g>13)return y;_=60*g;break;case"g":case"gg":case"ggg":if(!(O=$)||!n.eras)return y;if((f=u.XPt.kGt(c[x],O))<0)return y}if(T=(j=/^(\d|\d\d|\d\d\d):/.test(t))?new Date(1899,11,30):new Date,(R=n.Calendar.convert)&&(E=R.fromGregorian(T)),R||(E=[T.getFullYear(),T.getMonth(),T.getDate()]),d===y?d=E[0]:d<100&&(n.eras&&f!==y?d=u.XPt.NGt(f||0,d):d+=d>=30?1900:2e3),h===y&&(h=E[1]),M===y&&(M=j?E[2]:1),R){if((T=R.toGregorian(d,h,M))===y)return y}else{if(T.setFullYear(d,h,M),T.getDate()!==M)return y;if(v!==y&&T.getDay()!==v)return y}return w&&p<12?p+=12:D&&12===p&&(p=0),T.setHours(p,b,F,k),_!==y&&(I=T.getMinutes()-(_+T.getTimezoneOffset()),T.setHours(T.getHours()+I/60,I%60)),T},t.Y0=function(t){var r,e=t-25569,n=new Date(864e5*e),i=A(n),o=Math.round(864e5*(t-25569+i/1440)),u=new Date(o),a=i>=0?1:-1,s=new Date(o+36e5*a),c=A(s);if(M(i-c)>=60)if(r=new Date(o+60*(c-i)*1e3),i>c){if(-1===a||c===A(u))return r}else if(i<c&&(1===a||c===A(u)))return r;return u},t.dJ=function(r){if("/OADate("===r.substr(0,8)){var e=parseFloat(r.substr(8,r.length-10));return t.Y0(e)}},t.Q0=function(r){return"/OADate("+t.o0(r)+")/"},t.o0=function(t){if(c(t))return 0;if("number"!=typeof t&&"string"!=typeof t||(t=new Date(t)),t instanceof Date){var r=A(t);return(1440*t.getTime()+3181192704e6-864e5*r)/124416e6}return 0},t.Maa=function(r){var e,n,i,o,a,c,f,m,l,d,h,M,v,p,F,_,D,x,H,N;if(s.$T.qT("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})?$").test(r))return e=new Date(r),isNaN(e.valueOf())?y:e;if(n=r,r=r.trim(),o=(i=u.CultureManager.Fe())&&i.DateTimeFormat&&i.DateTimeFormat.shortDatePattern,(a=i&&i.normalizeDateTimeString&&i.normalizeDateTimeString(r))&&(r=a),r=r.replace(s.$T.qT("[ ]*([/\\-: ])[ ]*"),"$1"),o&&o.indexOf("d")<o.indexOf("M"))return t.yU(r);if(c=(new Date).getFullYear(),f=void 0,m=void 0,r.indexOf(":")>0){if(k(r,":")&&s.$T.qT("([0-2]?[0-9]):[0-5]?[0-9]\\.[0-9]*").test(r)&&(r=r.replace(s.$T.qT("([0-2]?[0-9]):"),"00:$1:")),l=s.$T.OJ("^(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)|(([0-2]?[0-9]):([0-5]?[0-9])(:[0-5]?[0-9](\\.[0-9]*)?)?(\\s+[AP]M)?)$"),!(d=r.match(l))||1!==d.length)return y;if(f=d[0],s.$T.OJ("\\.\\s+[AP]M").test(f))return y;if(f.endsWith(".")&&(f+="0"),0===(r=r.replace(l,"")).length)m="1899/12/30 "+f;else{if(" "!==r[0]&&" "!==r[r.length-1])return y;r=r.trim()}}if(!m){if(h=!0,s.$T.qT("^[0-9]{1,2}[-/]([0-9]{4}|0)$").test(r))m=r.replace(/[-/]/,"/1/");else if(s.$T.OJ("^(((".concat(g,")[\\s-/]?[0-9]{4}))$")).test(r))m="1"+r.replace(/[-/]/,"");else if(s.$T.OJ("^(([0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}))$").test(r)){if(M=r.split(/(\/|\-)/),!(F=w(v=Number(M[0]),p=M[2])))return y;m=F}else if(s.$T.OJ("^((".concat(g,")[/-\\s]?[0-9]{1,2})$")).test(r)){if(_=r.match(s.$T.OJ("^(".concat(g,")")))[0],!(F=w(v=b[_.substring(0,3).toUpperCase()],p=r.match(s.$T.OJ("\\d+"))[0])))return y;m=F}else if(s.$T.OJ("^([0-9]{1,2}[/-\\s]?(".concat(g,"))$")).test(r))h=!1,m=r.replace(/[-/\s]/,"")+c;else if(s.$T.OJ("^(([0-9]{4}/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/[0-9]{1,2}/[0-9]{4})|([0-9]{4}-[0-9]{1,2}-[0-9]{1,2})|([0-9]{1,2}-[0-9]{1,2}-[0-9]{4})|([0-9]{1,2}-(".concat(g,")-[0-9]{4})|([0-9]{1,2}/(").concat(g,")/[0-9]{4})|([0-9]{1,2}\\s+(").concat(g,")\\s+[0-9]{4}))$")).test(r))m=r;else if(s.$T.OJ("^(((0?[1-9]|10|11|12)-[0-9]{1,2}-[0-9]{1,2})|((0?[1-9]|10|11|12)/[0-9]{1,2}/[0-9]{1,2})|([0-9]{1,2}/(".concat(g,")/[0-9]{1,2})|([0-9]{1,2}-(").concat(g,")-[0-9]{1,2})|([0-9]{1,2}\\s+(").concat(g,")\\s+[0-9]{1,2}))$")).test(r))x=+(D=r.split(/[-/\s]/))[2],D[2]=""+(x<30?x+2e3:x+1900),m=D.join("/");else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]))$")).test(r))H=r.length,m=r.substr(0,H-1)+"200"+r[H-1];else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]{2}))$")).test(r))H=r.length,x=+r.substr(H-2),m=r.substr(0,H-2)+(x<30?20:19)+x;else if(s.$T.OJ("^(([0-9]{1,2}(".concat(g,")\\s?[0-9]{4}))$")).test(r))m=r;else if(s.$T.OJ("^(".concat(g,"),?\\s*[0-9]{1,2},\\s+[0-9]{4}$")).test(r))m=r;else{if(!s.$T.OJ("^(".concat(g,"),?\\s*[0-9]{1,2},\\s+[0-9]{1,2}$")).test(r))return y;x=+r.match(/\d+$/)[0],m=r.replace(/\d+$/,""+(x<30?2e3+x:1900+x))}if(m=m+" "+(f||"00:00:00"),h&&" "===n[0])return y}return N=new Date(m),isNaN(N.valueOf())?y:N},t._DT=function(e){var n,i=y,o=d;if(c(e)?i=t.Y0(0):e instanceof Date?i=new Date(e.valueOf()):"string"==typeof e?((n=t.yU(e))||(isNaN(e)?(n=t.Maa(e))||(o=l):(n=t.Y0(parseFloat(e)))||(o=l)),i=n):"number"==typeof e?i=t.Y0(e):o=l,o)return i;throw(0,r.getSR)().Exp_InvalidCast},t.u6t=function(r){return!t.Maa(r)},t.W0=function(t){return t&&(t.constructor===Date||t.getUTCDate&&t.setFullYear)},t}(),r.ct=F},"./src/common/util/functionhelper.ts":function(t,r,e){var n,i,o,u;function a(t){return t}function s(t,r,e,a,s,c,f,y,m,l,d){var h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T,E,R,I=e[o],B=e[u],G=r[o],L=r[u],z=a[o],K=a[u],J=1===B,U=1===L;if(G===I&&L===B){for(A=0,P=0,C=0,O=0,F=I*B,h=0;h<I;h++)for(M=0;M<B;M++){if(p=c(e[h][M]),g=c(r[h][M]),t&&(i(p)||i(g)))return m;A+=p,P+=p*p,C+=g=l(g),O+=p*g}for(j=F*O-A*C,k=s?(C*P-A*O)/(F*P-A*A):0,((T=(b=s?j/(F*P-A*A):O/P).toString()).indexOf("000000000000")>1||T.indexOf("999999999999")>1)&&(b=n.st.E8(b,12),k=n.st.E8(k,12)),_=[],h=0;h<z;h++)for(_[h]=[],M=0;M<K;M++){if(p=c(a[h][M]),t&&i(p))return m;_[h][M]=0===j?r[0][0]:d(n.st.Jme(b*p,k))}return f?new f(_):_}if(U&&G===I||1===G&&L===B){for(p=[],g=[],$=B+1,S=B+2,h=0;h<I;h++){if(k=c(D=U?r[h][0]:r[0][h]),t&&i(k))return m;g[h]=J?l(k):k}for(h=0;h<I;h++)for(p[h]=[],M=0;M<B;M++){if(k=c(e[h][M]),t&&i(k))return m;p[h][M]=k}for(E=[],b=0;b<$;b++)for(E[b]=[],F=0;F<S;F++)E[b][F]=0;for(v=0;v<I;v++)for(E[0][$]+=g[v],h=0;h<B;h++)for(D=h+1,E[0][D]+=p[v][h],E[D][0]=E[0][D],E[D][$]+=p[v][h]*g[v],M=h;M<B;M++)E[H=M+1][D]+=p[v][h]*p[v][M],E[D][H]=E[H][D];for(E[0][0]=I,w=R=s?0:1;w<$;w++){if(t){if(0===E[w][w]){for(N=!1,M=w+1;!N&&M<$;M++)if(0!==E[M][w]){for(v=0;v<S;v++)H=E[w][v],E[w][v]=E[M][v],E[M][v]=H;N=!0}if(!N)return y}}else{for(h=w;h<$&&0===E[h][w];)h++;if(h>=$)return y;for(x=R;x<S;x++)D=E[w][x],E[w][x]=E[h][x],E[h][x]=D}for(D=1/E[w][w],x=R;x<S;x++)E[w][x]*=D;for(h=R;h<$;h++)if(h!==w)for(D=-E[h][w],x=0;x<S;x++)E[h][x]+=D*E[w][x];s||(E[0][$]=0)}for(_=[],U||(_[0]=[]),h=0;h<z;h++){for(U&&(_[h]=[]),D=E[0][$],M=0;M<B;M++){if(k=c(U?a[h][M]:a[M][h]),t&&i(k))return m;D+=E[M+1][$]*k}U?_[h][0]=d(D):_[0][h]=d(D)}return f?new f(_):_}return y}function c(t,r,e,n,i,o,u,c){return s(!0,t,r,e,n,i,o,c,u,a,a)}function f(t,r,e,n,i,c,f){var y,m;for(y=0;y<t[o];y++)for(m=0;m<t[u];m++)if(t[y][m]<=0)return c;return s(!1,t,r,e,n,a,i,f,null,Math.log,Math.exp)}Object.defineProperty(r,"__esModule",{value:!0}),r.iit=r.eit=void 0,n=e("./src/common/util/numberhelper.ts"),i=isNaN,o="rowCount",u="colCount",r.eit=c,r.iit=f},"./src/common/util/numberhelper.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O;function j(t,r,e,n){return r&&0!==r.length&&"i"!==r?T(t,r,e.NumberFormat,n):e&&e.name.length>0?t.toLocaleString():t.toString()}function T(t,r,e,n){var i;return q(t,I(r),e,n)}function E(t,r){for(var e,n,i,o,u,a,s,c,f=v(p(t)),y={iUt:1,rUt:0};f>=10&&Number.isFinite(f);)f/=10,y.iUt++;return n=(e=t.toString()).search(/e/gi),i=e.indexOf(r),-1!==n?(u=w(e,0,n),a=w(e,n+1),s=0,-1!==i&&(s=w(u,i+1).length),(o=s-(c=d(a)))<0&&(o=0),y.rUt=o):(o=0,-1!==i&&(o=w(e,i+1).length),y.rUt=o),y}function R(t){var r,e={oUt:t.charAt(0),aUt:0,g_o:0,tUt:0},n="";for(r=1;r<t.length;r++)if("+"===(n=t.charAt(r)))e.aUt=1,e.g_o=1;else{if("-"!==n){if("0"===n){e.tUt=t.length-r;break}throw new Error(H().Exp_InvalidExponentFormat)}e.aUt=-1,e.g_o=-1}return e}function I(t){var r,e,n,i,o,u,a={uUt:y,sUt:y,rCt:h,fxt:0,d0:0,cUt:0,fUt:y},s="",c=h,f=h,m=h,l=h,d=h,v=h,p=y,g=[];for(e=0;e<t.length;e++){if(r=t.charAt(e),c)s+=r,'"'===r&&(g.push(s),s="",c=h);else if(f){if("E"===p||"e"===p){if(!(["+","-","0"].indexOf(r)>=0)){f=h,e--;continue}s+=r}else if("+"===p||"-"===p){if("0"!==r){f=h,e--;continue}s+=r}else if("0"===p){if("0"!==r){f=h,d||(d=M,a.fUt=R(s)),e--;continue}s+=r}}else if("*"!==p&&"_"!==p&&"\\"!==p||""===s)if("*"===r||"_"===r||"\\"===r)v=h,""!==s&&(g.push(s),s=""),s+=r;else if("'"===r)v=h,""!==s&&(g.push(s),s=""),g.push(r);else if('"'===r)v=h,c=M,""!==s&&(g.push(s),s=""),s+=r;else if(P.indexOf(r)>=0)v=M,P.indexOf(p)<0&&""!==s&&(g.push(s),s=""),s+=r;else if("."!==r||m)if("%"===r)v=h,a.d0++,""!==s&&(g.push(s),s=""),g.push(r);else if("\u2030"===r)v=h,a.cUt++,""!==s&&(g.push(s),s=""),g.push(r);else if(","===r)if(v){for(n=void 0,""!==s&&(g.push(s),s=""),i=M,o="",u=e+1;u<t.length;u++)if(n=t.charAt(u),'"'!==o)if("\\"!==o&&"_"!==o){if(P.indexOf(n)>=0){i=h;break}if("."===n||";"===n)break;o=n}else o="";else'"'===n&&(o="");i?a.fxt++:m||(n=t.charAt(e+1))&&P.indexOf(n)>=0&&(l=M)}else s+=r;else"E"===r||"e"===r?(v=h,f=M,""!==s&&(g.push(s),s=""),s+=r):(v=h,P.indexOf(p)>=0&&""!==s&&(g.push(s),s=""),s+=r);else""!==s&&(g.push(s),s=""),a.uUt=g,g=[],m=M,v=h;else s+=r,g.push(s),s="";p=r}return""!==s&&(f&&!d&&(a.fUt=R(s)),g.push(s)),l&&(a.rCt=M),m?a.sUt=g:a.uUt=g,a}function B(t,r,e,n){var i,o,u,a,s,c=r[0],f=1,y=0,m=h,l=t.length;for(i=0;i<l;i++)if("number"===(o=t[i].type)){for(u="",s=(a=t[i].value).length-1;s>=0;){if(!(1<=c&&c<=9||0===c&&f===r.length))throw new Error(H().Exp_InvalidNumberGroupSize);/\d/gi.test(a[s])?(m&&(u&&t.push({type:"number",value:u}),t.push({type:"groupSeparator",value:e}),u="",m=h),y++):y=0,u=a[s]+u,y===c&&c>0&&(m=M,y=0,f<r.length&&(c=r[f],f++)),s--}u&&t.push({type:o,value:u})}else"fillingChar"===o&&(n.infillIndex=t.length-l),t.push({type:o,value:t[i].value});return t.splice(0,l)}function G(t,r,e,n,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?l(y[1],10):0,y=u.split("."),u=y[0],a=y.length>1?y[1]:"",s>0?(u+=(a=f(a,s)).slice(0,s),a=w(a,s)):s<0&&(s=-s,a=(u=t<0?o+c(u.replace(o,""),s+1):c(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):f(a,r)):"")}function L(t,r,e,n){var i=t;return r>0&&(i=nt(i*g(100,r),15)),e>0&&(i=nt(i*g(1e3,e),15)),n>0&&(i=nt(i/g(1e3,n),15)),i}function z(t){var r,e,n=y;if(t)for(n="",r=0;r<t.length;r++)e=t[r],/^(0|#|\?)+/g.test(e)&&(n+=e);return n}function K(t,r){return t===r||0!==t&&0!==r&&(p(t-r)<p(t)/O||(t=nt(t,15),r=nt(r,15),p(t-r)<p(t)/O))}function J(t,r){return K(t,-r)?0:t+r}function U(t,r,e){var n,i,o={value:t,exponentValue:0},u=E(t,"."),a=u.iUt,s=p(t),c=e?e.length:1;if(s>=1)a>c?(a-=c,o.value=t/g(10,a),o.exponentValue=a):o.exponentValue=0,-1===r.aUt&&(r.aUt=0);else if(s<1&&s>0){for(r.aUt=-1,n=g(10,c);10*s<n&&!K(10*s,n);)s*=10,o.exponentValue++;i=g(10,o.exponentValue),o.value*=i>F?0:i}return o}function V(t,r,e,n,i,o,u,a){var s,f,y,m,l,d,h,v,p,g,b,F,k=a.numberGroupSizes,_=a.numberGroupSeparator,D=a.negativeSign,x=a.percentSymbol,H=a.perMilleSymbol,N=n.fUt,$=w(r,0,1);for($===D&&(r=w(r,1)),r=0===(s=1===r.length&&"0"===r?0:r.length)?"":r,f=0,y="",m=t.length-1;m>=0;m--)if(l="",d=t[m],/^(0|#|\?)+/g.test(d)){if(y!==e){for(h=d.length,v=s-f-1;v>=0&&h>0;v--)l=(p=r.charAt(v))+l,h--,f++;for(g=h-1;g>=0;g--)f++,"0"===(b=d[g])?l=b+l:"?"===b&&(""!==l&&(o.push({type:"number",value:l}),l=""),o.push({type:"numberPlaceholder",value:b}));(y=d+y)===e&&f<s&&(l=r.substr(0,s-f)+l),""!==l&&o.push({type:"number",value:l})}}else n.fUt&&!u.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(d)?(u.replaceExponent=M,F="",F+=N.oUt,F+=S[N.aUt],F+=c(i.toString(),N.tUt),o.push({type:"exponent",value:F})):"_"===d[0]?o.push({type:"placeholder",value:d[1]}):"*"===d[0]?u.hasInfilling||(o.push({type:"fillingChar",value:d[1]}),u.hasInfilling=!0,u.infillIndex=o.length-1):"\\"===d[0]?2===d.length&&o.push({type:"text",value:d[1]}):'"'===d[0]&&'"'===d[d.length-1]?d.length>2&&o.push({type:"text",value:d.substr(1,d.length-2)}):d===x?o.push({type:"percent",value:d}):d===H?o.push({type:"permille",value:d}):C[d]?o.push({type:"currency",value:d}):o.push({type:"text",value:d});$===D&&e&&o.push({type:"text",value:$}),n.rCt===M&&B(o,k,_,u),o.reverse(),u.infillIndex=o.length-1-u.infillIndex}function W(t,r,e,n,i,o,u,a,s){var f,y,m,l,d,h,v,p,g,b,F,k,_=s.numberDecimalSeparator,w=s.percentSymbol,D=s.perMilleSymbol,x=r.indexOf(_),H=i.fUt;for((x>0||n!==N||e!==$)&&u.push({type:"decimalSeparator",value:_}),f=-1!==x?r.substring(x+1):"",y=0,m="",l=0;l<t.length;l++)if(d=t[l],/^(0|#|\?)+/g.test(d)){if(h="",m!==e){for(v=d.length,p=0,g=y;v>0&&f.length-y>0;)h+=f.charAt(g),v--,y++,p++,g++;for(b=p;v>0;)F=d[b],b++,y++,v--,"0"===F?h+=F:"?"===F&&(""!==h&&(u.push({type:"number",value:h}),h=""),u.push({type:"numberPlaceholder",value:F}));""!==h&&u.push({type:"number",value:h}),m+=d}}else H&&!a.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(d)?(a.replaceExponent=M,k="",k+=H.oUt,k+=S[H.aUt],k+=c(o.toString(),H.tUt),u.push({type:"exponent",value:k})):"_"===d[0]?u.push({type:"placeholder",value:d[1]}):"*"===d[0]?(u.push({type:"fillingChar",value:d[1]}),a.hasInfilling&&u.splice(a.infillIndex,1),a.hasInfilling=!0,a.infillIndex=u.length-1):"\\"===d[0]?2===d.length&&u.push({type:"text",value:d[1]}):'"'===d[0]&&'"'===d[d.length-1]?d.length>2&&u.push({type:"text",value:d.substr(1,d.length-2)}):d===w?u.push({type:"percent",value:d}):d===D?u.push({type:"permille",value:d}):C[d]?u.push({type:"currency",value:d}):u.push({type:"text",value:d})}function Y(t,r){var e=t,n=t.indexOf(r);return-1!==n&&(e=t.replace(/0+$/,"")),e}function q(t,r,e,n){var i,o,u,a,s,c,f,y,m,l,d,M,v,g,F,k,_=[];return t=L(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=(c=U(t,r.fUt,u)).value,s=c.exponentValue),f=E(t,"."),p(t)>1&&f.iUt+f.rUt>15&&(t=nt(t,15)),y=e.numberGroupSizes,m=e.numberGroupSeparator,l=e.numberDecimalSeparator,d=e.negativeSign,v=G(t,M=b(f.rUt,a.length),y,m,l,d),n||(v=Y(v,l)),""===v?(_.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),_):(g={hasInfilling:h,infillIndex:-1,replaceExponent:h},"10"!==(F=v.split(l)[0])||isNaN(s)||(F="1",s+=(k=r&&r.fUt&&-1===r.fUt.aUt)?-1:1,r&&r.fUt&&0===s&&(r.fUt.aUt=1===r.fUt.g_o?1:0)),i&&V(i,F,u,r,s,_,g,e),t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||("0"!==F&&""===u&&o&&_.push({type:"number",value:F}),o&&W(o,v,a,u,r,s,_,g,e)),_)):_}function X(t,r){var e,n,i,o,a,c,f,m,h,M,v,p,g,b,F,k,_;return(t=s(t)?"":u.zf.s6t(t,"")).match(/^[+-]?infinity$/i)?d(t):t.match(/^0x[a-f0-9]+$/i)?l(t,10):(o=(i=Z(t,e=r.NumberFormat,n=e.numberNegativePattern))[0],a=i[1],""===o&&1!==n&&(o=(i=Z(t,e,1))[0],a=i[1]),""===o&&(o="+"),a[0]===e.currencySymbol&&(a=w(a,1)),(m=a.indexOf("e"))<0&&(m=a.indexOf("E")),m<0?(f=a,c=y):(f=w(a,0,m),c=w(a,m+1)),(v=f.indexOf("."))<0?(h=f,M=y):(h=w(f,0,v),M=w(f,v+1)),h=h.split(",").join(""),","!==(p=",".replace(/\u00A0/g," "))&&(h=h.split(p).join("")),g=o+h,M!==y&&(g+="."+M),(b=g[g.length-1])===e.percentSymbol&&(g=w(g,0,g.length-1),-1===(F=(g=u.zf.s6t(g,"")).indexOf("."))&&(F=g.length),k="",k+=w(g,0,F-2),k+=".",k+=w(g,F-2,2),g=k+=w(g,F+1)),c!==y&&(""===(_=Z(c,e,1))[0]&&(_[0]="+"),g+="e"+_[0]+_[1]),g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?d(g):NaN)}function Z(t,r,e){var n=r.negativeSign,i=r.positiveSign;if(4!==e&&2!==e||(n=" "+n,i=" "+i),4===e||3===e){if(u.zf.dT(t,n))return["-",w(t,0,t.length-n.length)];if(u.zf.dT(t,i))return["+",w(t,0,t.length-i.length)]}else if(2===e||1===e){if(u.zf.fJ(t,n))return["-",w(t,n.length)];if(u.zf.fJ(t,i))return["+",w(t,i.length)]}else{if(0!==e)throw new Error("");if(u.zf.fJ(t,"(")&&u.zf.dT(t,")"))return["-",w(t,1,t.length-2)]}return["",t]}function Q(t,r,e){if(0!==p(v(t)-t))throw new Error(H().Exp_BadFormatSpecifier);var n=t>=0?t.toString(16):(A+t+1).toString(16);return n=r?n.toLowerCase():n.toUpperCase(),!s(e)&&n.length<e?c(n,e):n}function tt(t,r){var e,n;return t=+t,r=+r,isNaN(t)||r%1!=0?NaN:(t=(e=t<0)?-t:t,typeof r===m||0===r?(t=Math.round(t),e?-t:t):(n=t.toString().split("e"),t=Math.round(+(n[0]+"e"+(n[1]?+n[1]-r:-r))),+((n=(t=e?-t:t).toString().split("e"))[0]+"e"+(n[1]?+n[1]+r:r))))}function rt(t){var r=a.CultureManager.Fe().NumberFormat;return"string"==typeof t&&(r=a.CultureManager.Fe(t).NumberFormat),r}function et(t){var r,e,n,i="";if(Array.isArray(t)&&t.length>0)for(r=0;r<t.length;r++)if(e=t[r].type,n=t[r].value,"placeholder"===e)i+=" ";else{if("fillingChar"===e)continue;i+="numberPlaceholder"===e?" ":n}return i}function nt(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,n=e("./src/common/util/common.ts"),i=e("./src/common/util/types.ts"),o=e("./src/common/util/regexhelper.ts"),u=e("./src/common/util/stringhelper.ts"),a=e("./src/common/culture/cultureInfo.ts"),s=i.lt.ht,c=u.zf.B9t,f=u.zf.lUt,y=null,m=void 0,l=parseInt,d=parseFloat,h=!1,M=!0,v=Math.floor,p=Math.abs,g=Math.pow,b=Math.min,F=Number.MAX_VALUE,k="#dot#",_="#group#",w=function(t,r,e){return t.substr(r,e)},D=function(t){return o.$T.qT(t)},x=new n.ResourceManager(n.SR),H=x.getResource.bind(x),N="##################0",$="################",S={1:"+",0:"","-1":"-"},A=4294967295,P=["0","#","?"],C={"\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$"},O=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,e,n){return e||(e=a.CultureManager.Fe()),j(t,r,e,n)},Ge:function(t,r){var e,n,i;return"string"!=typeof t||(n=(e=rt(r)).numberDecimalSeparator,i=e.numberGroupSeparator,"."!==n&&(t=t.replace(D("[.]"),k)),","!==i&&(t=t.replace(D("[,]"),_)),"."!==n&&(t=t.replace(D(k),n)),","!==i&&(t=t.replace(D(_),i))),t},Jf:function(t,r){var e,n,i;return"string"!=typeof t||(n=(e=rt(r)).numberDecimalSeparator,i=e.numberGroupSeparator,"."!==n&&(t=t.replace(D("["+n+"]"),k)),","!==i&&(t=t.replace(D("["+i+"]"),_)),"."!==n&&(t=t.replace(D(k),".")),","!==i&&(t=t.replace(D(_),","))),t},hUt:function(t,r){var e,n,i;return!("string"==typeof t&&(n=(e=rt(r)).numberDecimalSeparator,i=e.numberGroupSeparator,"."!==n&&"."!==i&&t.indexOf(".")>=0||","!==n&&","!==i&&t.indexOf(",")>=0))},dUt:function(t,r){return d(this.Jf(t,r))},VGt:Q,v0:I,vUt:q,ukt:K,Jme:J,mUt:et,gUt:N,pUt:$,E8:nt}},"./src/common/util/rbush.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rbush=void 0;var e=Math.max,n=Math.min,i=Number.POSITIVE_INFINITY;function o(t,r){this.bUt=e(4,t||9),this.yUt=e(2,Math.ceil(.4*this.bUt)),r&&this.wUt(r),this.clear()}function u(t,r,e){if(!e)return r.indexOf(t);for(var n=0;n<r.length;n++)if(e(t,r[n]))return n;return-1}function a(t,r){s(t,0,t.children.length,r,t)}function s(t,r,e,n,o){o||(o=p(null)),o.minX=i,o.minY=i,o.maxX=-i,o.maxY=-i;for(var u=r,a=void 0;u<e;u++)a=t.children[u],c(o,t.leaf?n(a):a);return o}function c(t,r){return t.minX=n(t.minX,r.minX),t.minY=n(t.minY,r.minY),t.maxX=e(t.maxX,r.maxX),t.maxY=e(t.maxY,r.maxY),t}function f(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 l(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,r){return(e(r.maxX,t.maxX)-n(r.minX,t.minX))*(e(r.maxY,t.maxY)-n(r.minY,t.minY))}function h(t,r){var i=e(t.minX,r.minX),o=e(t.minY,r.minY),u=n(t.maxX,r.maxX),a=n(t.maxY,r.maxY);return e(0,u-i)*e(0,a-o)}function M(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 p(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,e,n,i,o,u=this.data,a=[],s=this.toBBox;if(!v(t,u))return a;for(r=[];u;){for(e=0,n=u.children.length;e<n;e++)i=u.children[e],v(t,o=u.leaf?s(i):i)&&(u.leaf?a.push(i):M(t,o)?this.QP(i,a):r.push(i));u=r.pop()}return a},collides:function(t){var r,e,n,i,o,u=this.data,a=this.toBBox;if(!v(t,u))return!1;for(r=[];u;){for(e=0,n=u.children.length;e<n;e++)if(i=u.children[e],v(t,o=u.leaf?a(i):i)){if(u.leaf||M(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=p([]),this},remove:function(t,r){if(!t)return this;for(var e=this.data,n=this.toBBox(t),i=[],o=[],a,s,c,f;e||i.length;){if(e||(e=i.pop(),s=i[i.length-1],a=o.pop(),f=!0),e.leaf&&-1!==(c=u(t,e.children,r)))return e.children.splice(c,1),i.push(e),this.MUt(i),this;f||e.leaf||!M(e,n)?s?(a++,e=s.children[a],f=!1):e=null:(i.push(e),o.push(a),a=0,s=e,e=e.children[0])}return this},toBBox:function(t){return t},compareMinX:f,compareMinY:y,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},QP:function(t,r){for(var e=[];t;)t.leaf?r.push.apply(r,t.children):e.push.apply(e,t.children),t=e.pop();return r},CUt:function(t,r,e,n){for(var o,u,a,s,c,f,y,l;n.push(r),!r.leaf&&n.length-1!==e;){for(y=l=i,o=0,u=r.children.length;o<u;o++)c=m(a=r.children[o]),(f=d(t,a)-c)<l?(l=f,y=c<y?c:y,s=a):f===l&&c<y&&(y=c,s=a);r=s||r.children[0]}return r},Eit:function(t,r,e){var n=this.toBBox,i=e?t:n(t),o=[],u=this.CUt(i,this.data,r,o);for(u.children.push(t),c(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 e,n,i=t[r],o=i.children.length,u=this.yUt;this.AUt(i,u,o),e=this.IUt(i,u,o),(n=p(i.children.splice(e,i.children.length-e))).height=i.height,n.leaf=i.leaf,a(i,this.toBBox),a(n,this.toBBox),r?t[r-1].children.push(n):this.xUt(i,n)},xUt:function(t,r){this.data=p([t,r]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},IUt:function(t,r,e){var n,o,u,a,c,f,y,l;for(f=y=i,n=r;n<=e-r;n++)a=h(o=s(t,0,n,this.toBBox),u=s(t,n,e,this.toBBox)),c=m(o)+m(u),a<f?(f=a,l=n,y=c<y?c:y):a===f&&c<y&&(y=c,l=n);return l},AUt:function(t,r,e){var n=t.leaf?this.compareMinX:f,i=t.leaf?this.compareMinY:y,o,u;this.NUt(t,r,e,n)<this.NUt(t,r,e,i)&&t.children.sort(n)},NUt:function(t,r,e,n){t.children.sort(n);var i=this.toBBox,o=s(t,0,r,i),u=s(t,e-r,e,i),a=l(o)+l(u),f,y;for(f=r;f<e-r;f++)y=t.children[f],c(o,t.leaf?i(y):y),a+=l(o);for(f=e-r-1;f>=r;f--)y=t.children[f],c(u,t.leaf?i(y):y),a+=l(u);return a},TUt:function(t,r,e){for(var n=e;n>=0;n--)c(r[n],t)},MUt:function(t){for(var r=t.length-1,e=void 0;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.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,e){var n,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.$T=void 0,n=e("./src/common/util/stringhelper.ts"),i=!0,o="empty",u=function(){function t(){}return t.bue=function(r,e){var n;if(e&&t.yue[e]&&t.yue[e][r])n=t.yue[e][r];else try{null==e?(n=new RegExp(r),e=o):n=new RegExp(r,e),t.yue[e]||(t.yue[e]={}),t.yue[e][r]=n}catch(t){return null}return n.lastIndex=0,n},t.qT=function(r){var e=t.kUt[r];return e||(e=t.kUt[r]=new RegExp(r,"g")),e.lastIndex=0,e},t.OJ=function(r){var e=t.DUt[r];return e||(e=t.DUt[r]=new RegExp(r,"gi")),e.lastIndex=0,e},t.jJ=function(r,e,n){var o,u,a,s,c,f;if(t._Ut[r])return t.EUt[r];if(o=e?"[?*]+":"[~?*]+",t.qT(o).test(r)){for(u=[],a=r.split(""),s=void 0,c={".":i,"+":i,$:i,"^":i,"[":i,"]":i,"(":i,")":i,"{":i,"}":i,"|":i,"/":i,"\\":i},f=0;f<a.length;f++)if("~"===(s=a[f])){if(!(f<a.length-1))break;"*"!==(s=a[++f])&&"?"!==s||u.push("\\"),u.push(s)}else"?"===s?u.push("."):"*"===s?(u.push("[\\s\\S]"),n?u.push("+"):u.push("*")):c[s]?(u.push("\\"),u.push(s)):u.push(s);return u.join("")}return null},t.tbt=function(r,e,n){var i=t.jJ(r,e,n);return i&&(i="^"+i+"$"),i},t.jUt=function(t,r){for(var e="#"+t+"0#",i=1;r.indexOf(e)>0;)e=n.zf.qS(e,"#"+t+(i-1)+"#","#"+t+i+"#"),i++;return e},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,e){Object.defineProperty(r,"__esModule",{value:!0}),r.zf=void 0;var n=e("./src/common/util/regexhelper.ts");function i(t,r,e){return t.substr(r,e)}function o(t){return null==t}function u(t,r,e,n){var i,u;if(o(r))throw new Error;return""===r||!(r.length>t.length)&&(i=t,u=r,e&&(i=i.toLowerCase(),u=u.toLowerCase()),n(i,u))}r.zf={OS:function(t,r,e){return e&&(t=t.toLowerCase(),r=r.toLowerCase()),""===r||t.indexOf(r)>=0},hD:function(t,r,e){var n,i;return e?(n=t.toLowerCase(),i=r.toLowerCase(),n.indexOf(i)):t.indexOf(r)},cJ:function(t,r){if(!r)return t;for(var e=t;i(e,0,r.length)===r;)e=i(e,r.length);return e},s6t:function(t,r){if(!r)return t;for(var e=t;i(e,e.length-r.length,r.length)===r;)e=i(e,0,e.length-r.length);return e},Eit:function(t,r,e){var n,u;if(r<0||r>t.length||o(e))throw new Error;return(n=i(t,0,r))+e+(u=i(t,r,t.length-r))},VP:function(t,r,e){var n,u;if(o(e)&&(e=t.length-r),r<0||e<0||r+e>t.length)throw new Error;return(n=i(t,0,r))+(u=i(t,r+e,t.length-r-e))},fJ:function(t,r,e){return void 0===e&&(e=!1),u(t,r,e,(function(t,r){return t.slice(0,r.length)===r}))},dT:function(t,r,e){return void 0===e&&(e=!1),u(t,r,e,(function(t,r){return t.slice(-r.length)===r}))},Vi:function(t,r,e,n){if(!r)throw new Error;return e=(""+e).replace(/\$/g,"$$$$"),t.replace(new RegExp(r,"g"+(n?"i":"")),e)},OUt:function(t,e,i,o){return e=n.$T.D9t(e),r.zf.Vi(t,e,i,o)},gmt:function(t,r){var e=t.indexOf(r);return e<0||e>=t.length?t:i(t,0,e)},DU:function(t,r){for(var e=0,n=t.indexOf(r);n>=0;)e+=1,n=t.indexOf(r,n+1);return e},qS:function(t,r,e){return t.split(r).join(e)},I5:function(t,r){var e,n,i=t;for(e=0;e<r.length;e++)n=new RegExp("\\{"+e+"\\}","g"),i=i.replace(n,r[e]);return i},RUt:function(t,r,e){var n,i=t.toString();for(n=i.length;n<r;n++)i=e?"0"+i:i+"0";return i},B9t:function(t,e){return r.zf.RUt(t,e,!0)},lUt:function(t,e){return r.zf.RUt(t,e,!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;"},e=n.$T.qT("(?:&|<|>|\"|'|`)");return e.test(t)?t.replace(e,(function(t){return r[t]})):t},dI:function(t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},e=n.$T.qT("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return e.test(t)?t.replace(e,(function(t){return r[t]})):t},TY:function(t){var r,e,n=t;for(n=n.replace(/[\t\n\r\f\v]/g,""),r=/javascript:/gi;n.match(r);)n=n.replace(r,"");try{if("javascript:"===(e=new URL(n)).protocol)return""}catch(t){}return n}}},"./src/common/util/types.ts":function(t,r){var e,n;Object.defineProperty(r,"__esModule",{value:!0}),r.lt=void 0,e="undefined"!=typeof window?window.File:null,n="undefined"!=typeof window?window.Blob:null,r.lt={BUt:null,y0:function(t,e){var n,i,o,u;if(r.lt.Gh(t))for(i=0,o=t.length;i<o&&!1!==(n=e.call(t[i],i,t[i]));i++);else for(u in t)if(t.hasOwnProperty(u)&&!1===(n=e.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 e,n,i,o,u,a;if(null===t)return"null";if(!(e=r.lt.BUt))for(e=r.lt.BUt={},i=0,o=(n=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"]).length;i<o;i++)e["[object "+n[i]+"]"]=n[i].toLowerCase();return u=e.toString,"object"===(a=typeof t)||"function"===a?e[u.call(t)]||"object":a},Rh:function(t,e,n){var i,o;if(e){if(o=[].indexOf)return o.call(e,t,n);for(i=e.length,r.lt.ht(n)&&(n=0),n=n<0?Math.max(0,i+n):n;n<i;n++)if(n in e&&e[n]===t)return n}return-1},Bh:function(t,r){var e=r.length,n=t.length,i=0;if("number"==typeof e)for(;i<e;i++)t[n]=r[i],n++;else for(;void 0!==r[i];)t[n]=r[i],n++,i++;return t.length=n,t},Lh:function(t,e,n){var i,o,u,a,s=[];if(r.lt.Gh(t))for(o=0,u=t.length;o<u;o++)null!==(i=e(t[o],o,n))&&(s[s.length]=i);else for(a in a=void 0,t)t.hasOwnProperty(a)&&null!==(i=e(t[a],a,n))&&(s[s.length]=i);return s.concat([])},Dh:function(){var t,e,n,i,o,u,a,s,c,f,y,m=[];for(t=0;t<arguments.length;t++)m[t]=arguments[t];for(s=m[0]||{},c=1,f=m.length,y=!1,"boolean"==typeof s&&(y=s,s=m[1]||{},c=2),"object"==typeof s||r.lt.Eh(s)||(s={}),f===c&&(s=this,--c);c<f;c++)if(u=m[c],!r.lt.ht(u))for(o in u)e=s[o],s!==(i=u[o])&&(n=r.lt.Nh(i),y&&i&&(r.lt.Ph(i)||n)?(a=n?e&&r.lt.Nh(e)?e:[]:e&&r.lt.Ph(e)?e:{},s[o]=r.lt.Dh(y,a,i)):void 0!==i&&(s[o]=i));return s},Fh:function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);function n(){this.constructor=t}n.prototype=r.prototype,t.prototype=new n},Uh:function(t){return null!==t&&t===t.window},Ph:function(t){var e,n;if(!t||"object"!==r.lt.Oh(t)||t.nodeType||r.lt.Uh(t))return!1;e={}.hasOwnProperty;try{if(t.constructor&&!e.call(t,"constructor")&&!e.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(n in t);return void 0===n||e.call(t,n)},Gh:function(t){if(r.lt.ht(t))return!1;var e=t.length,n=r.lt.Oh(t);return!r.lt.Uh(t)&&(!(1!==t.nodeType||!e)||("array"===n||"function"!==n&&(0===e||"number"==typeof e&&e>0&&e-1 in t)))},Hh:function(t,e){var n=e||[];return null!==t&&(r.lt.Gh(Object(t))?r.lt.Bh(n,"string"==typeof t?[t]:t):[].push.call(n,t)),n},dt:null,ht:function(t){return null==t},q8:null,uJ:null,tv:function(t){if(!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 i,o,u;if(e&&t instanceof e)return new e([t],t.name,{type:t.type,lastModified:t.lastModified});if(n&&t instanceof n)return new n([t],{type:t.type});for(o in i=t instanceof Object?new t.constructor:new t.constructor(t.valueOf()),t)t.hasOwnProperty(o)&&(u=t[o],t.hasOwnProperty(o)&&i[o]!==u&&(i[o]="object"==typeof u?r.lt.tv(u):u));return i}}},"./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/common/util/uuid-helper.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UUIDGenerator=void 0;var e=function(){function t(){}return t.wrap=function(t){return"{".concat(t.toUpperCase(),"}")},t.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=16*Math.random()|0,e="x"===t?r:3&r|8;return e.toString(16)}))},t.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},t.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},t.isValidUpperCaseUUID=function(t){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(t)},t}();r.UUIDGenerator=e},"./src/plugins/commands/commands.entry.ts":function(t,r,e){var n,i;Object.defineProperty(r,"__esModule",{value:!0}),r.UndoManager=r.CommandManager=r.Key=void 0,n=e("./src/plugins/commands/commands.ts"),Object.defineProperty(r,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(r,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}}),i=e("./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 e,n,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"}(e=r.Key||(r.Key={})),n=function(){function t(t,r,e){var n,i;this.jS=t,this.LUt=r,this.Zc=e,n=this,Object.defineProperty(n,"shortcutKey",{get:function(){return n.FUt},set:function(t){var r,e,o=n.FUt;o!==t&&((r=(i=n.jS.PUt)[o])&&(e=r.indexOf(n))>=0&&r.splice(e,1),n.FUt=t,t&&((r=i[t])||(i[t]=r=[]),r.splice(0,0,n)))}})}return t.prototype.canUndo=function(){var t;return this.LUt.canUndo},t.prototype.execute=function(t,r,e){var n,i,o,u,a,s=this,c=!0,f=!0;if(s.LUt&&r&&(o={command:r,result:i,vM:e,actionType:e,metaData:null===(n=s.LUt)||void 0===n?void 0:n.metaData,r:null,isBefore:!0},s.jS.MGr(o),o.r&&(f=!1,i=!1)),f){try{c=!1!==(i=(u=s.LUt.execute||s.LUt)(t,r,1===e))}catch(t){c=!1}r&&c&&s.jS.HUt({command:s.Kro(r),result:i,vM:e,actionType:e})}return s.jS&&r&&(a={command:r,result:i,vM:e,actionType:e,isBefore:!1},s.jS.MGr(a)),i},t.prototype.Kro=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,e,i,o,u,a){var s=this,c=new n(s,r,t);s[t]=c,e&&(c.shortcutKey=s.getShortcutKey(e,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,e,n,i,o){var u,a,s,c,f=this;if(t)(u=f[t])&&(u.shortcutKey=f.getShortcutKey(r,e,n,i,o));else if(a=f.getShortcutKey(r,e,n,i,o),s=f.getCommands(a))for(c=s.length-1;c>=0;c--)s[c].shortcutKey=void 0},t.prototype.getShortcutKey=function(t,r,n,i,o){if(t){var u="A".charCodeAt(0)<=t&&t<="Z".charCodeAt(0)?String.fromCharCode(t):e[t];return u||(u=t),u+(r?"+ctrl":"")+(n?"+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,e=this.aT;for(r in e)e.hasOwnProperty(r)&&e[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,e=this.GUt;for(r in e)e.hasOwnProperty(r)&&e[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 e=function(){function t(t,r,e){var n=this;n.DJ=t,r<0&&(r=2147483647),n.VUt=r,n.Hw=e,n.Nmt=[],n.kmt=[],n.YUt=!1}return t.prototype.dM=function(t,r){var e,n,i,o=this;if(t){if(1===r)o.kmt.push(t);else{if(e=o.VUt,n=o.Nmt.length,e>0&&n>=e)for(i=0;i<n-e+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,e=this,n=e.Nmt,i=!0;if(e.Hw&&e.canUndo()){t=n[n.length-1];try{(r=e.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(e.DJ,t,1))}catch(t){i=!1}delete t.hM,!1!==i&&(n.pop(),e.YUt=!0,e.kmt.push(t))}return i},t.prototype.canRedo=function(){return this.kmt.length>0},t.prototype.redo=function(){var t,r,e=this,n=e.kmt,i=!0;if(e.Hw&&e.canRedo()){t=n[n.length-1];try{(r=e.DJ.commandManager()[t.cmd])&&(t.hM=!0,i=r.execute(e.DJ,t,2))}catch(t){i=!1}delete t.hM,!1!==i&&(n.pop(),e.YUt=!0,e.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=e},"./src/plugins/formatter/formatter.entry.ts":function(t,r,e){var n=this&&this.hJr||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),i=this&&this.dJr||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./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,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T,E,R,I,B,G,L,z,K,J,U,V,W,Y,q,X,Z,Q,tt,rt,et,nt,it,ot,ut=this&&this.vJr||(at=function(t,r){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},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 e(){this.constructor=t}at(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),at;function st(t,r,e){return t.substr(r,e)}function ct(t){return o.lt.ht(t)?"":"boolean"==typeof t?t?"TRUE":"FALSE":"string"==typeof t?t:t.toString()}function ft(t,r){if("\\"===t[r])throw new Error(l().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(l().Exp_TokenIsNull);return"["+t+"]"}function mt(t){var r,e,n,i,o;if(t===M||t===h||""===t)return t;for(r="",e=0,n=!1,i=0;i<t.length;i++)'"'===(o=t[i])?(n=!n,r+=o):n?r+=o:"["===o?e++:"]"===o?--e<0&&(e=0):0===e&&(r+=o);return r.toString()}function lt(t){return t=dt(t,"[",""),dt(t,"]","")}function dt(t,r,e){return!t||t===K.oHt||Mt(r,e,!0)?t:(r=r.replace(w,"\\$1"),t.replace(new RegExp(r,"g"),e))}function ht(t){var r,e,n=t.length,i=!1,o="";for(r=0;r<n;r++)"\\"===(e=t.charAt(r))?(i=!i)&&"@"!==t.charAt(r+1)||(o+=e):(i=!1,o+=e);return o}function Mt(t,r,e){return e?B(t)===B(r):t===r}function vt(t,r){var e,n,i,o;for(1===arguments.length&&(r=!0),e=!1,n="",i=0;i<t.length;i++){if('"'===(o=t[i]))e=!e;else if(!e&&!r&&"/"===o&&!ft(t,i))continue;n+=o}return n}function pt(t){var r,e,n,i="",o=!1;for(r=0,e=t.length;r<e;r++)'"'===(n=t[r])&&(o=!o),"E"===n||o||(i+=B(n));return i}function gt(t,r){var e,n,i,o;if(!t||t===K.oHt)return!1;for(n=pt(e=vt(t)),i=0;i<r.length;i++)if(0===(o=n.indexOf(r[i]))||o>0&&"_"!==n[o-1]&&"*"!==n[o-1])return!0;return!1}function bt(t,r,e,n){this.j9t=t,this.aHt=r,this.cultureName=e,this.O9t=n}function Ft(t){this.Nat=t}function kt(t){var r,e,i=lt(t);return i&&i!==K.oHt?(e=i[0],["<",">","="].indexOf(e)>-1?(r=Y).Name="ConditionalFormatPart":n.zf.fJ(i,"DBNum",!0)?(r=q).Name="DBNumberFormatPart":Mt(i[0],d,!1)&&i.indexOf("-")>-1?(r=V).Name="LocaleIDFormatPart":wt(i)?(r=Z).Name="ABSTimeFormatPart":i.indexOf(d)<0&&i.length>=3&&((r=Q).Name="ColorFormatPart"),r):r}function _t(t,r){var e,n=!1;return gt(t=t?t.toString():K.oHt,["general"])?e=rt:X.a0(t)?e=X:gt(t,["E+","E-","#",".",",","%","0","/","?"])||r?(n=!0,e=tt):(n=!0,e=et),{uHt:n,_type:e}}function wt(t){var r,e=B(t),n=e[0];if("h"!==n&&"m"!==n&&"s"!==n)return!1;for(r=1;r<e.length;r++)if(n!==e[r])return!1;return!0}function Dt(t,r,e){var n,i;return n=t?t.cultureInfo():E(e),(r<4||4===r&&("ko-kr"===e||"ko-kr"===n.name()))&&(i=n.NumberFormat.dbNumber)?i[r]:h}function xt(t,r,e,n,o){var u,a=t;if(!j(n)&&r instanceof Date){if(!(u=Dt(e,n.type,o)))return t;a=n.sHt(a,u,!0),1===n.type&&(a=a.replace(new RegExp(b,"g"),F)),a=(a=a.replace("@"+p.cHt,i.ct.Pe(r,p.cHt))).replace("@"+p.fHt,i.ct.Pe(r,p.fHt)),a=n.sHt(a,u,!1)}return a}function Ht(t,r,e,n,i){var o,u,a,s,c,f,y;if(!j(n)&&(o=Dt(e,n.type,i),!j(o))){for(u=!1,a=void 0,s=E(i),c=void 0,f=0,y=t.length;f<y;f++)"decimalSeparator"===t[f].type&&(u=!0,t[f].value=n.sHt(t[f].value,o,r),a=t[f].value),"number"===t[f].type&&(t[f].value=u?n.sHt(a+t[f].value,o,r).slice(1):n.sHt(t[f].value,o,r),"ja-JP"===s.name()&&t[f].value.length>1&&("\u4e00\u5343"!==(c=t[f].value.substr(0,2))&&"\u4e00\u767e"!==c&&"\u4e00\u5341"!==c||(t[f].value=t[f].value.substr(1))));return t}return t}function Nt(t){var r,e=[],n=0,i=0,o=t.length;for(r=0;r<o;r++)"_"===t[r]?n++:(";"!==t[r]||0!==n&&n%2!=0||(e.push(t.substring(i,r)),i=r+1),n=0);return i<=o&&e.push(t.substring(i,o)),e}function $t(t){var r,e,n=[],i=!1,o=!1,u="",a=function(t,r){return{type:t,content:r}},s=function(t){return!j(t)&&-1!=="yYdDhHmMsSeE".indexOf(t)},c=function(r,e){if(s(r)){for(var i=r,o=t[e+1];s(o)&&o.toLowerCase()===r.toLowerCase()&&(i+=o,e<t.length-1);)e++,o=t[e+1];n.push(a("symbolic",i))}else"a"===r&&"aaa"===t.slice(e,e+3).toLowerCase()?(n.push(a("symbolic",t.slice(e,e+3))),e+=2):n.push(a("text",r));return e};for(r=0;r<t.length;r++)if(e=t[r],i)n.push(a("text","\\"+e)),i=!1;else if(o&&'"'!==e)u+=e;else switch(e){case"\\":i=!0;break;case'"':o&&(n.push(a("text",'"'+u+'"')),u=""),o=!o;break;default:r=c(e,r)}return n}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralFormatter=r.Hf=r.FormatterBase=void 0,n=e("./src/common/util/stringhelper.ts"),i=e("./src/common/util/datetimehelper.ts"),o=e("./src/common/util/types.ts"),u=e("./src/common/util/numberhelper.ts"),a=e("./src/common/culture/cultureInfo.ts"),s=e("./src/common/util/common.ts"),c=e("./src/plugins/formatter/formatter.res.en.ts"),f=e("./src/plugins/formatter/formatterGrammar/lexer.ts"),y=e("./src/plugins/formatter/formatterGrammar/parser.ts"),o.lt.Dh(s.SR.en,c),m=new s.ResourceManager(s.SR),l=m.getResource.bind(m),d="$",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 e=i.ct.o0(t);return e>=0&&e<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)},h=null,M=void 0,v=Math.abs,p={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)},g=[p.hHt,p.fHt,p.cHt,p.dHt,p.vHt,p.mHt,p.gHt,p.pHt,p.bHt,p.yHt,p.wHt,p.MHt,p.CHt,p.SHt,p.THt,p.AHt,p.IHt,p.xHt,"ggg","gg","g","ee","e"],b="\u4e00\u5341",F="\u5341",k={EHt:0,jHt:1,OHt:2,_text:3},_=[{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}],w=new RegExp("([.+?*$^\\[\\](){}|/])","g"),D=[["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"]],x=["#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"],H=new RegExp("color\\s*(\\d+)","i"),N=o.lt.dt,$=o.lt.Nh,S=u.st,A=S.gUt+"."+S.pUt,P=S.mUt,C=S.L9t,O=S.E8,j=o.lt.ht,T=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()},G=function(t){return t&&t.toUpperCase()},L=function(){throw new Error(l().Exp_FormatIllegal)},z=function(){return a.CultureManager.booleanMapping},K={oHt:"",I5:function(){var t,r,e,n,i,o,u=[];for(t=0;t<arguments.length;t++)u[t]=arguments[t];for(r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(0===arguments.length)return h;for(n=r[0],i=1;i<arguments.length;i++)o=new RegExp("\\{"+(i-1)+"\\}","gm"),n=n.replace(o,arguments[i]);return n},Ji:function(t){return!t||t===K.oHt}},J=function(t){var r=t.charCodeAt(0);return r>=48&&r<=57},U=function(t){var r=t.charCodeAt(0);return r>=9&&r<=13||32===r||133===r||160===r},V=function(){function t(t,r){var e,i,o,u;if(Ft.call(this,r),(e=this).Jq=t,o=Mt((i=e.Jq)[0],d,!1),u=i.indexOf("-"),!(o&&u>-1))throw new Error(l().Exp_TokenIllegal);e.ZUt=st(i,1,u-1),(i=n.zf.VP(i,0,u+1)).length>0&&(e.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?n.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}(),W=function(){function t(t,r){this.formatCached=t,this.cultureName=r,this.typeName=""}return t.prototype.format=function(t,r){return h},t.prototype.parse=function(t){return h},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]!==M&&(this[r]=t[r])},t}(),r.FormatterBase=W,Y=function(){function t(t,r){var e,i,o,u,a,s,c,f;for(Ft.call(this,r),e=this,s=0,c=(a=["<=","<>",">=",">","<","="]).length;s<c;s++)if(i=a[s],n.zf.fJ(t,i,!0)){o=n.zf.VP(t,0,i.length),f=parseFloat(o),T(f)||(u=f);break}if(u===h&&u===M)throw new Error(l().Exp_TokenIllegal);e.value=u,e.WUt=i,e.isMeetCondition=function(t){var r=e.WUt,n=e.value;switch(r){case"<=":return t<=n;case"<>":return t!==n;case">=":return t>=n;case">":return t>n;case"<":return t<n;case"=":return t===n}}}return t.prototype.toString=function(){return yt(this.WUt+this.value.toString())},t}(),q=function(){function t(t,r){Ft.call(this,r);var e=this;if(e.token=t,e.type=parseInt(n.zf.VP(t,0,5),10),e.type<0||e.type>4)throw new Error(l().Exp_TokenIllegal)}return t.prototype.sHt=function(r,e,i){var o,u,a,s,c,f,y,m,l,d;if(!r||r===K.oHt)return r;for(o=r,u=r,a=-1,s=-1,c=!1,l=r.length-1;l>=0;l--)d=u[l],!T(d)&&!Mt(d," ",!1)||Mt(d,".",!1)&&!c?(Mt(d,".",!1)&&(c=!0),-1===a&&(a=l),s=l):s>-1&&a>-1&&(f=st(u,s,a-s+1),y=parseFloat(f),T(y)||(m=t.numberString(f,e,i),o=n.zf.VP(o,s,a-s+1),o=n.zf.Eit(o,s,m)),a=-1,s=-1,c=!1);return s>-1&&a>-1&&(f=st(u,s,a-s+1),y=parseFloat(f),T(y)||(m=t.numberString(f,e,i),o=n.zf.VP(o,s,a-s+1),o=n.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,e,n){var i,o,u=t.formatNumberString,a=r.split(".");if(a){if(1===a.length)return u(a[0],e.numbers,n?e.letters:h);if(2===a.length)return(i=u(a[0],e.numbers,n?e.letters:h))+"."+(o=u(a[1],e.numbers))}throw new Error(l().Exp_ValueIllegal)},t.formatNumberString=function(r,e,n){var i,o,u,a,s,c,f,y,m,l,d,h,M,v,p,g=r,b=0,F=0;if(2===arguments.length){for(o="";b<g.length;b++)i=st(g,b,1),o+=e[F=parseInt(i,10)];return o}if(3===arguments.length){if(!n)return t.formatNumberString(r,e);for(u=0,a="",s=g.length,c=!1,f=[];b<s;b++)(y=n.length-1-b)>-1?f.push(n[y].toString()):f.push(K.oHt);for(m=[],l=f.length-1;l>=0;l--)m[f.length-l-1]=f[l];for(f=m,d=!1,l=0;l<s;l++)i=st(g,l,1),F=parseInt(i,10),h=void 0,M=K.oHt,s-l-16>0?(h=e[F],M="",d=!0):l!==s-1&&l!==s-5&&l!==s-9&&l!==s-13?"0"===i?(h="",M="",u+=1):"0"!==i&&0!==u?(h=e[0]+e[F],M=f[l],u=0):(h=e[F],M=f[l],u=0):"0"!==i&&0!==u?(h=e[0]+e[F],M=f[l],u=0):"0"!==i&&0===u||d?(h=e[F],M=f[l],u=0,d=!1):"0"===i&&u>=3?(h="",M="",u+=1):s>=11?(h="",u+=1):(h="",M=f[l],u+=1),(v=h+M===K.oHt)||(c=!1),l!==s-13||c||(M=f[l],c=!0),l!==s-9||c||(M=f[l],c=!0),l===s-1&&(M=f[l],c=!0),a=a+h+M;return 0===(p=parseInt(r,10))?e[0]:a}},t}(),X=function(){function t(t,r,e,n,i,o){bt.call(this,r,e,n,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,e,n,i,o=this,u={y4:o.pU},a=t;if(a.a0(u.y4)){if(r=o.BHt(u),e=R(this.cultureName).amDesignator&&R(this.cultureName).pmDesignator,o.hasJD=o.Vi(u.y4,p.pHt,'"'+p.DHt+'"',!0,!1,u,!1),o.Vi(u.y4,p.gHt,"MMMM",!0,!1,u,!1),o.Vi(u.y4,p.mHt,"MMM",!0,!1,u,!1),o.LHt(u.y4,u),o.Vi(u.y4,p.wHt,"ddd",!0,!0,u,!0),o.Vi(u.y4,p.MHt,"dddd",!0,!0,u,!0),r&&e||(o.Vi(u.y4,p.CHt,"H",!0,!0,u,!1),o.Vi(u.y4,p.SHt,"HH",!0,!0,u,!1)),o.aHt&&(o.j9t||E(o.cultureName).NumberFormat.dbNumber)&&(o.FHt=o.FHt||o.Vi(u.y4,p.cHt,'"@'+p.cHt+'"',!0,!1,u,!0),o.FHt=o.FHt||o.Vi(u.y4,p.fHt,'"@'+p.fHt+'"',!0,!1,u,!0)),o.KUt)for(n=0;n<o.KUt.length;n++)i=o.KUt[n],o.Vi(u.y4,i.Nat,"@"+i.Nat,!0,!0,u,!0);o.PHt=u.y4}else L()},t.prototype.formatString=function(){return this.pU},t.prototype.format=function(t){var r,e,o,u,a,s,c,f,y=this,m=K.oHt,l=h;try{if((l=i.ct._DT(t))&&T(l.valueOf())&&(l=h),l?t=l:m=t.toString(),l&&(m=i.ct.L9t(l,y.PHt,y.j9t&&y.j9t.cultureInfo()||E(y.cultureName),y.O9t),y.hasJD&&(r=E(y.cultureName).DateTimeFormat.monthNames[l.getMonth()],m=n.zf.Vi(m,p.DHt,st(r,0,1))),y.KUt))for(e=24*(i.ct.o0(l)-i.ct.o0(p._Ht))*60*60*1e3,o=0;o<y.KUt.length;o++)a=(u=y.KUt[o]).XUt(e),j(a)||(s=u.Nat.replace("[","\\[").replace("]","\\]"),c=u.Nat.replace("[","").replace("]",""),f=n.zf.B9t(a+"",c.length),m=n.zf.Vi(m,"@"+s,f))}catch(r){m=ct(t)}return xt(m,t,y.j9t,y.aHt,y.cultureName)},t.prototype.parse=function(t){var r,e,n,o,u;if(!t||t===K.oHt)return h;if(r=this,"true"===(n=B(e=t)))return!0;if("false"===n)return!1;if(r.PHt&&(o=i.ct.nUt(e,r.PHt,E(r.cultureName))))return o;try{return(u=i.ct._DT(e))&&!T(u)?u:(u=new Date(e),T(u.valueOf())?e:u)}catch(t){return e}},t.prototype.QUt=function(t){var r,e,n,i=t,o="",u=!1;for(r=0;r<i.length;r++)'"'===(e=i[r])?u=!u:u||("Y"===e||"D"===e||"S"===e||"E"===e||"G"===e?e=B(e):"M"===e&&(Mt("A",n=i[r-1],!0)||Mt("P",n,!0)||(e=B(e)))),o+=e;return o},t.prototype.BHt=function(t){var r,e,i,o=R(this.cultureName).amDesignator,u=R(this.cultureName).pmDesignator,a=[p.NHt];for(o&&u?a.push(o+"/"+u):a.push(p.NHt),a.push(p.kHt),r=["tt","tt","t"],e=t.y4,i=0;i<3;i++){if(n.zf.OS(e,r[i]))return!0;if(n.zf.OS(e,a[i],!0))return t.y4=n.zf.Vi(e,a[i],r[i],!0),!0}return!1},t.prototype.LHt=function(t,r){var e,n,i=$t(t),o=-1,u=-1;for(e=0;e<i.length;e++)"symbolic"===(n=i[e]).type?"m"===n.content[0].toLowerCase()?o>=0?(n.content=n.content.toLowerCase(),o=-1):(n.content=n.content.toUpperCase(),u=e):"s"===n.content[0].toLowerCase()?u>=0&&(i[u].content=i[u].content.toLowerCase(),u=-1):"h"===n.content[0].toLowerCase()?(o=e,u=-1):u=-1:u>=0&&e>0&&"0"===n.content&&"."===i[e-1].content&&e===u+2&&(i[u].content=i[u].content.toLowerCase());r.y4=i.map((function(t){return t.content})).join("")},t.prototype.Vi=function(r,e,i,o,u,a,s){var c,f,y,m,l,d,h,M,v,p,g;if(o||u){for(c=[],f=!0,!t.hasDate(r)&&t.hasTime(r)&&(f=!1),y=!1,m=0;m<r.length;m++){if(l=r[m],t.hasTime(l)&&!y?f=!1:t.hasDate(l)&&!y&&(f=!0),o&&Mt(l,e[0],s)&&f||u&&Mt(l,e[0],s)&&!f){for(d=!0,h=0;h<e.length;h++)if(h+m>=r.length||!Mt(e[h],r[h+m],s)){d=!1;break}if(M=m+e.length-1,d&&M+1<r.length){for(v=r[M],p=-1,p=M+1;p<r.length&&Mt(v,r[p],s);p++);p>M+1&&(m=p,d=!1)}d&&!y&&c.splice(0,0,m)}'"'===l&&(y=!y)}if(a.y4=r,c.length>0){for(m=0;m<c.length;m++)g=c[m],a.y4=n.zf.VP(a.y4,g,e.length),a.y4=n.zf.Eit(a.y4,g,i);return!0}return!1}return!1},t.hasTime=function(t){return n.zf.hD(t,p.CHt[0],!0)>-1||n.zf.hD(t,p.IHt[0],!0)>-1},t.hasDate=function(t){return n.zf.hD(t,p.fHt[0],!0)>-1||n.zf.hD(t,p.bHt[0],!0)>-1},t.a0=function(t,r){return gt(t,r||g)},t}(),r.Hf=X,Z=function(){function t(t,r){var e,n,i;if(Ft.call(this,r),e=this,"h"===(n=B(t)[0]))i=3600;else if("m"===n)i=60;else{if("s"!==n)throw new Error(l().Exp_TokenIllegal);i=1}e.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 e,n;Ft.call(this,r),null!==(e=H.exec(t))&&(n=Number(e[1]),(n-=1)>=0&&n<x.length&&(t=x[n])),this.foreColor=t}return t.prototype.toString=function(){return yt(this.foreColor)},t.Name="ColorFormatPart",t}(),tt=function(){function t(t,r,e,n){var i,o,u,a,s,c;function f(t,r){var e,n,i,o,u,a=[],s='"';if(t===h||""===t)return a;for(e=!1,n=[],i=!1,o=0;o<t.length;o++)(u=t[o])!==s||e||(i=!i),e||i||u!==r?n.push(u):(a.push(n.join("")),n=[]),e="\\"===u&&!e;return a.push(n.join("")),a}bt.call(this,r,e,n),(i=this).qUt=!1,i.JUt=1,i.$Ut=mt(t),o=vt(t),r&&(o=dt(o,i.j9t.Nat,i.j9t.currencySymbol())),(u=(o=mt(o)).indexOf("/"))>-1&&(a=f(o,"/"))&&2===a.length&&(i.tHt=a[1],(s=a[0])&&((c=s.lastIndexOf(" "))>-1?(i.nHt=st(s,0,c),i.eHt=st(s,c+1,s.length-c-1)):i.eHt=s)),i.iHt=o}return t.prototype.formatString=function(){return this.$Ut},t.prototype.format=function(r){var e,n,i,u,a,s,c,f,y,m,l,d,M,v,p,g,b,F,k,_,w,D;return N(r,"boolean")?r.toString().toUpperCase():(e=this,n=o.lt.uJ(r),T(n)||!isFinite(n)||T(r)?"string"==typeof r?r:h:(i=E(e.cultureName),e.eHt&&e.tHt?(m={value:0},l={value:0},d={value:0},M=e.GHt(),t.getFraction(n,M,m,l,d)?((v=t.getGCD(l.value,d.value))>1&&(l.value/=v,d.value/=v),e.nHt?(y="",1===d.value&&(m.value+=l.value,l.value=0,d.value=0),(p=P(C(m.value,e.nHt,i)))&&"0"!==p&&(y+=p,y+=" "),0===m.value&&n<0&&(y+=i.NumberFormat.negativeSign),0===n&&(y+="0"),a=e.tHt,s=parseFloat(a),!T(s)&&s>0&&(0!==l.value&&0!==d.value&&(l.value*=s/d.value),d.value=s,a=a.replace(/^\d+/,t.toNumberPlaceholder(s)),f=(c=Math.ceil(l.value))-l.value,l.value=f<=.5&&f>=0?parseFloat(c.toString()):parseFloat((c-1).toString())),g=e.eHt,b=parseFloat(g),T(b)||0!==b||((F=g.length)>(_=(k=l.value.toString()).length)?g=g.substr(0,F-(F-_)):F<_&&(k=k.substr(0,_-(_-F)),l.value=parseInt(k,10))),w=e.UHt(l.value,d.value,g,a,i),0===l.value&&(w=w.replace(/./g," "),""===p)?"0 "+w:""===(y+=w)?"0":y):(y="",D=m.value*d.value+l.value,a=e.tHt,(s=parseFloat(a))>0?(D*=s/d.value,d.value=s,y+=(D=(f=(c=Math.ceil(D))-D)<=.5&&f>=0?parseFloat(c.toString()):parseFloat((c-1).toString()))+"/"+d.value):y+=e.UHt(D,d.value,e.eHt,e.tHt,i),0===D?"0":y)):n.toString()):u=Ht(u=C(n,e.iHt,i),e.qUt,e.j9t,e.aHt,e.cultureName)))},t.prototype.parse=function(t){var r,e,i,o,u,a,s,c,f,y,m,l,d,M,p,g=this;if(!t||t===K.oHt)return h;if("TRUE"===(r=G(t))||r===z()&&z().boolean_true)return!0;if("FALSE"===r||r===z()&&z().boolean_false)return!1;if((e="("===t.charAt(0)&&")"===t.charAt(t.length-1))&&(t=t.substring(1,t.length-1)),i=g.eHt&&g.tHt,o=g.zHt(g.iHt).HHt,(i||o)&&(u=0,i&&g.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&&(c=t.substr(0,s),f=t.substr(s+1),!(T(c)||T(f)||(y=parseInt(c,10),m=parseInt(f,10),T(y)||T(m)||0===m)))))return u+y/m;if(t=g.VHt(t),t=g.YHt(t),d=(l=g.zHt(t)).HHt,M=l.$6t,g.ZHt(M)&&(M=n.zf.OUt(M,I(g.cultureName).numberGroupSeparator,"",!1),p=S.dUt(M,g.cultureName),!T(p)&&isFinite(p))){if(d&&(p=O(p/100,15)),e){if("-"===M.charAt(0)||"+"===M.charAt(0))return h;p=-1*v(p)}return p}return h},t.prototype.GHt=function(){var t,r,e=this,n=e.tHt,i=0;if(n)for(t=n.length,r=0;r<t&&n[r].match(/[#?\d]/);r++)i++;return i},t.prototype.ZHt=function(t){var r,e="",n=0,i=0,o=0,u=h,a=I(this.cultureName);for(r=t.length-1;r>-1;r--){if(t[r]===a.numberDecimalSeparator)n++,o>0&&(u=!1),e="";else if("e"===B(t[r])){if(i++,e="",r===t.length-1)return!1}else if(t[r]===a.numberGroupSeparator)u=3===e.length,o++,e="";else if("-"===t[r]||"+"===t[r]){if(r>0&&"e"!==B(t[r-1]))return!1}else{if(!J(t[r]))return!1;if(e+=t[r],0===r&&0===parseInt(e,10)&&u)return!1}if(n>1||i>1||!1===u)return!1}return!0},t.prototype.VHt=function(t){var r,e,i,o,u,a,s,c=t,f=[];for(r=0;r<c.length;r++)J(c[r])&&f.push(r);for(i=[(e=I(this.cultureName)).currencyDecimalSeparator,e.currencyGroupSeparator,e.currencySymbol,d,e.nanSymbol,e.negativeInfinitySymbol,e.negativeSign,e.numberDecimalSeparator,e.numberGroupSeparator,e.percentDecimalSeparator,e.percentGroupSeparator,e.percentSymbol,e.perMilleSymbol,e.positiveInfinitySymbol,e.positiveSign],o=c.length-1;o>-1;o--)if(u=c[o],U(u)&&i.indexOf(u.toString())<=-1)(o<f[0]||f[f.length-1]<o)&&(c=n.zf.VP(c,o,1));else if(("-"===u||"+"===u)&&(a=o>0?c[o-1].toString():h,(s=["e","E","(",I(this.cultureName).currencySymbol,d]).indexOf(a)<0))break;return c},t.prototype.YHt=function(t){var r,e;if(n.zf.fJ(t,d)){if((r=n.zf.VP(t,0,1)).indexOf(d)<0)return r}else if(e=I(this.cultureName).currencySymbol,d!==e&&n.zf.fJ(t,e)&&(r=n.zf.VP(t,0,e.length)).indexOf(e)<0)return r;return t},t.prototype.zHt=function(t){var r=I(this.cultureName).percentSymbol,e=!0,i=t;return n.zf.fJ(t,r)?i=n.zf.VP(t,0,r.length):n.zf.dT(t,r)?i=n.zf.VP(t,t.length-r.length,r.length):e=!1,n.zf.OS(i,r)&&(e=!1),{$6t:i,HHt:e}},t.prototype.UHt=function(t,r,e,n,i){var o=P(C(t,e,i)),u="0."+r,a="#."+n,s=P(C(u,a,i,!0)),c=i&&i.NumberFormat&&i.NumberFormat.numberDecimalSeparator||".",f=o+"/"+s.substr(s.indexOf(c)+1);return""===e&&(f=t+f),""===n&&(f+=r),f},t.getGCD=function(t,r){var e,n,i;if(0===t)return v(r);if(0===r)return v(t);for(i=(e=Math.max(t,r))%(n=Math.min(t,r));0!==i;)i=(e=n)%(n=i);return v(n)},t.getFraction=function(t,r,e,n,i){var o,u,a,s,c,f,y,m,l,d=0,h=0,M=0,p=0,g=Math.ceil;for(t>0?1===(p=t-g(t)+1)?(p=0,d=t):d=g(t)-1:t<0&&(d=g(t),p=g(t)-t),(o=Math.pow(10,r-1))<2&&(o=2),(u=Math.pow(10,r)-1)<2&&(u=2),a=!1,s=0,c=o;c<=u&&(f=c*p,y=Math.round(f),l=v((m=y/c)-p),!((!a||l<v(s-p))&&(a=!0,s=m,h=y,M=c,l<1e-6)));c++);return e.value=d,n.value=h,i.value=M,a},t.toNumberPlaceholder=function(t){return t.toString().replace(/\d/g,"?")},t}(),rt=function(){function t(r,e,n,i){bt.call(this,e,n,i),arguments.length>0?(t.rHt(r)||L(),this.$Ut=r):this.$Ut="General",this.JUt=0}return t.rHt=function(t){var r,e,n="",i=!1,o=-1,u=t.length;for(r=0;r<u;r++)'"'===(e=t[r])?o=(i=!i)?r:-1:i||(n+=e);return o>0&&(n+=t.substring(o,u)),!(n.indexOf("0")>=0||n.indexOf("#")>=0||n.indexOf(".")>=0||n.indexOf("@")>=0)},t.prototype.WHt=function(){var t,r=this;return r.QHt||(t=dt(t=r.$Ut,"General",A),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 n.zf.Vi(this.$Ut,"@NumberFormat","General")},t.prototype.format=function(t){var r,e,i,u=this;if(o.lt.q8(t,u.cultureName)){if(r=!u.j9t||u.j9t.allowScience(),(e=o.lt.uJ(t))!==M&&e!==h)return v(e)>99999999999&&r||v(e)<1e-11&&0!==e?u.KHt().format(t):u.WHt().format(t)}else{if(N(t,"string"))return i=ht(i=n.zf.Vi(u.formatString(),'"',"")),t;if(N(t,"boolean"))return t.toString().toUpperCase()}return""},t.prototype.parse=function(t){var r,e,o,u,s,c,f,y,m,l,d,p,g,b,F;if(K.Ji(t))return h;if("number"==typeof t)return t;if(r=!1,e=t.trim(),(o=n.zf.hD(e,"-",!1))>0&&!Mt(e.charAt(o-1),"E",!0)&&(r=!0),c=(s=(u=E(this.cultureName)).DateTimeFormat).dateSeparator,f=s.timeSeparator,y=s.monthNames,m=s.abbreviatedMonthNames,l=function(t,r){var e,i,o;if(!r||0===r.length)return!1;for(e=!1,i=0,o=r.length;i<o;i++)if(n.zf.OS(t,r[i],!0)){e=!0;break}return e},(r||n.zf.OS(e,c,!1)||n.zf.OS(e,f,!1)||n.zf.OS(e,"/",!1)||n.zf.OS(e,":",!1)||n.zf.OS(e,"-",!1)||n.zf.OS(e,"\u5e74",!1)||n.zf.OS(e,"\u6708",!1)||n.zf.OS(e,"\u65e5",!1)||l(e,y)||l(e,m)||"ja-JP"===u.name()&&a.XPt.gGt.indexOf(e[0].toUpperCase())>=0&&n.zf.OS(e,".",!1))&&(d=i.ct.yU(e)))return d;if((g="-"===e.charAt(0))||"+"===e.charAt(0)){if("("===(e=n.zf.VP(e,0,1)).charAt(0)&&")"===e.charAt(e.length-1))return t}else if("("===e.charAt(0)&&")"===e.charAt(e.length-1)&&(b=!0,"-"===(e=(e=e.substring(1,e.length-1)).trim()).charAt(0)||"+"===e.charAt(0)))return t;return(p=this.WHt().parse(e))!==h&&p!==M?(F=b&&N(p,"boolean"))?t:(b||g)&&N(p,"number")?-1*v(p):p:t},t}(),et=function(){function t(t,r,e,n){var i,o=this;bt.call(o,r,e,n),i=vt(t,!1),r&&(i=dt(i,o.j9t.Nat,o.j9t.currencySymbol())),i=ht(i=mt(i)),o.pU=i,o.JUt=3}return t.prototype.format=function(t,r){var e,n,o,u=this;try{return e=void 0,n=void 0,n=t instanceof Date?i.ct.o0(t).toString():ct(t),o=u.XHt(u.pU),e=u.qHt(n,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,e,n=[],i=!1,o="",u=!1,a=h;for(e=0;e<t.length;e++)r=t.charAt(e),u?('"'!==r?o+=r:(o+=r,n.push(o),o="",u=!1),a=r):"*"!==a&&"_"!==a&&"\\"!==a||""===o?"*"!==r&&"_"!==r&&"\\"!==r?"@"!==r?'"'!==r?(o+=r,a=r):(a=r,""!==o&&n.push(o),o=r,u=!0):(a=r,""!==o&&(n.push(o),o=""),n.push(r),i=!0):(a=r,""!==o&&(n.push(o),o=""),o+=r):(o+=r,n.push(o),o="");return""!==o&&n.push(o),{formatTokens:n,hasAtPart:i}},t.prototype.qHt=function(t,r,e,n,i){var o,u,a=[],s=!1;if("string"!=typeof e||n||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:e});return a.reverse()},t}(),nt=function(){return{pattern:D,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 e=this;0===arguments.length?(e.formatCached="General",e.E9t=new rt):e.Hc(t,r)}return t.prototype.Hc=function(r,e){var n,i,o,u,s,c,f,y,m,l,d,v,p,g,b,F,k;for(r!==h&&r!==M||L(),n=r,(i=this).formatCached=r,o="",u="",s=!1,c=!1,f=!1,y=[],m=0;m<r.length;m++)'"'===(l=r[m])?(c=!c,u+=l):c?u+=l:"["===l?(s&&L(),u&&(o||(o=""),o+=u),u=l.toString(),s=!0):"]"===l?(s||L(),u?(d=(u+=l).toString(),(v=kt(u.toString()))?"ABSTimeFormatPart"===v.Name?(y.push(new v(t.preProcessPart(d),d)),o+=u):d===a.XPt.eraExcelFormatter?(i.addPart(v,a.XPt.eraInternalFormatter),f=!0):i.addPart(v,d):(o+=p=t.partToNormalStr(d),n=dt(r,d,p)),u=""):L(),s=!1):u+=l;u?s?L():o+=u:o||(o=i.$Ht()),i.localeIDFormatPart&&(e=i.localeIDFormatPart.cultureInfo().name()),F=(b=_t(o,g=i.conditionalFormatPart))._type,k=b.uHt?n:o,F?i.E9t=new F(k,i.localeIDFormatPart,i.dbNumberFormatPart,e,y.length>0?y:h,f):L()},t.prototype.$Ht=function(){var r,e=this,n="";return e.dbNumberFormatPart&&((r=t.proNames.some((function(t){return"dbNumberFormatPart"!==t&&e[t]})))||(n="General")),n},t.prototype.formatString=function(){var r,e,n,i=this,o="";for(r=0,e=t.proNames.length;r<e;r++)i[n=t.proNames[r]]&&(o+=i[n].toString());return o+=i.E9t.formatString()},t.prototype.addPart=function(r,e){var n,i,o,u=this,a=t.proNames,s=t.preProcessPart(e);for(n=0,i=a.length;n<i;n++)if(Mt(o=a[n],r.Name,!0)){if(u[o])throw new Error(l().Exp_DuplicatedDescriptor);u[o]=new r(s,e)}},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(l().Exp_TokenIllegal)},t.preProcessPart=function(r){t.checkFormatter(r);var e=lt(r);return t.checkFormatter(e),e},t.partToNormalStr=function(r){var e=t.preProcessPart(r);return e[0]===d&&(e=e.slice(1)),'"'+e+'"'},t.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],t}(),ot=function(t){function r(r,e){var n=t.call(this,r,e)||this,i=n;return i.lHt=!0,i.PropertyChanged=[],K.Ji(r)&&(r="General"),i.formatCached=r,i.cultureName=e,i.init(),n}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,e=this;for(t in k)if(k.hasOwnProperty(t)&&(r=e.getFormatter(k[t]))&&r.colorFormatPart)return!0;return!1},r.prototype.formatString=function(t){var r,e,n,i,o=this;if(0===arguments.length){for(r=K.oHt,e=0,n=o.formatters.length;e<n;e++)r+=(i=o.formatters[e]).formatString(),e!==n-1&&(r+=";");return r}if(!t)throw new Error(l().Exp_ValueIsNull);return o.formatters=h,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 e,n,i,u=R(this.cultureName),a=I(this.cultureName),s=r.defFormatter;return N(t,"TimeSpan")?s(u.longTimePattern):N(t,"DateTime")?(n=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds()?"":" h:mm:ss",s(u.shortDatePattern+n)):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!==(e=a.scientificNotation)&&void 0!==e?e:"0.##############E+00":A):s("General")},r.prototype.getPreferredDisplayFormatter=function(t,e){var u,a,s,c,f,y,m,l,d,M,v,p,g,b,F,k,_,w,D,x,H,$,S,A,P,C=this,O=r.defFormatter;if(e||(e={value:h}),e.value=h,K.Ji(t))return new r;if(u=t,a=e.value=C.parse(u),N(a,"DateTime")||N(a,"TimeSpan")){for(c=(s=nt()).pattern,f=s.formatter,(l=(m=(y=E(C.cultureName)).DateTimeFormat).preselectedFormatters).length>0&&(c=c.concat([l]),f=f.concat([l[0]])),"ja-JP"===y.name()&&(c=c.concat([m.eraFormatter]),f=f.concat(["ge.M.d"]),d=y.QPt.filter((function(t){return"ggge"===t.substr(0,4)})),c=c.concat([d]),f=f.concat(['ggge"\u5e74"M"\u6708"d"\u65e5']),M=y.QPt.filter((function(t){return"gge"===t.substr(0,3)})),c=c.concat([M]),f=f.concat(['gge"\u5e74"M"\u6708"d"\u65e5']),v=y.QPt.filter((function(t){return"ge"===t.substr(0,2)})),c=c.concat([v]),f=f.concat(['ge"\u5e74"M"\u6708"d"\u65e5'])),p=0;p<c.length;p++)for(g=c[p],b=0;b<g.length;b++)if(F=g[b],(k=i.ct.yU(t,F))&&k-a===0)return new r(f[p])}else if(o.lt.q8(a,C.cultureName)){if(w=(_=I(C.cultureName)).currencySymbol,D=_.numberDecimalSeparator,x=_.percentSymbol,H=_.numberGroupSeparator,$="E",P=(A=(S=n.zf.OS)(u,D))?".00":"",u[0]===w)return O(K.I5("{0}#,##0{1};[Red]({0}#,##0{1})",w,P));if(S(u,$,!0))return O("0.00E+00");if(u[0].toString()===x||u[u.length-1].toString()===x)return O(K.I5("0{0}%",P));if(S(u,H))return O(K.I5("#,##0{0}",P))}return O("General")},r.prototype.format=function(t,r){var e,n,i,u,a,s,c;if(N(t,"boolean"))return z()&&(t=t?z().boolean_true:z().boolean_false),t.toString().toUpperCase();if(i=0,u=(e=this).vn(t)){a=u.colorFormatPart,r&&a&&(r.conditionalForeColor=r.value=a.foreColor),(n=o.lt.q8(t,e.cultureName))&&(i=o.lt.uJ(t)),s=K.oHt;try{n&&u===e.getFormatter(k.jHt)&&0!==this.expressionNumber?(s=u.format(u.considerNegSymbol?i:v(i)))===h&&N(t,"string")&&(s=t):(s=u.value)===M&&(c=!e.lHt&&u===e.getFormatter(k._text),s=u.format(t,n||c)),r&&(r.content=$(s)?s:[{type:"text",value:s}]),$(s)&&(s=S.mUt(s))}catch(r){N(t,"string")&&(s=t.toString())}return s}return n&&i<0?"-".toString():N(t,"string")?t.toString():t===M||t===h?K.oHt:t.toString()},r.prototype.parse=function(t){var r=this;return r.formatters&&r.formatters.length>0?r.formatters[0].parse(t):h},r.prototype.init=function(){var t,r,e,n=this,i=n.formatCached;for(K.Ji(i)&&L(),n.formatters=[],t=Nt(i),n.lHt=1===t.length,(!t||t.length<1||t.length>4)&&L(),r=0;r<t.length;r++)-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?L():this.hasAt=!0),e=new it(t[r],n.cultureName),n.formatters.push(e);n.getFormatter(k.EHt)||L(),this.nzt()},r.prototype.nzt=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var t=(0===this.expressionNumber?1:this.expressionNumber)-1;k=o.lt.Dh({},_[t]),this.hasAt&&0!==this.expressionNumber&&(k._text=this.formatters.length-1)},r.prototype.vn=function(t){var r,e,n,i,u,a,s,c,f,y,m,l=this;if(l.nzt(),e=(r=l.getFormatter(k.EHt))&&r.conditionalFormatPart,n=l.getFormatter(k._text),e&&(k.OHt=2,this.hasAt||(k._text=3)),"string"==typeof t&&T(t))return n||(e?t:r);if(o.lt.q8(t,l.cultureName)||N(t,"boolean")){if(i=l.getFormatter(k.jHt),u=l.getFormatter(k.OHt),a=o.lt.uJ(t),s=e&&r.conditionalFormatPart.isMeetCondition(a),f=(c=i&&i.conditionalFormatPart)&&i.conditionalFormatPart.isMeetCondition(a),y=void 0,l.lHt||(e?s:a>0||0===a&&!u))y=r;else if(c?f:a<0)y=i;else if(u)y=u;else if(i){if(e&&c)return{value:m=a+""};y=i}return y&&(!e||c||y!==i||u||(y.considerNegSymbol=!0),e&&c&&y===i&&i.conditionalFormatPart&&i.conditionalFormatPart.isMeetCondition(1e-10)&&(y.considerNegSymbol=!0),this.expressionNumber<=1&&(y.considerNegSymbol=!0)),y}return h},r.prototype.tzt=function(t){var r,e,n=this;if(n.PropertyChanged)for(r=0;r<n.PropertyChanged.length;r++)"function"==typeof(e=n.PropertyChanged[r])&&e(n,t)},r.defFormatter=function(t){var e=r[t];return e||(e=new r(t),r[t]=e),e},r.test=function(t){var r,e,n=!0;try{r=new f.Lexer(t),(e=new y.Parser(r)).parse()}catch(t){n=!1}return n},r}(W),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 e=function(){throw new Error("Invalid Number Format")};r.throwError=e},"./src/plugins/formatter/formatterGrammar/lexer.ts":function(t,r,e){var n,i,o,u,a;Object.defineProperty(r,"__esModule",{value:!0}),r.Lexer=void 0,n=e("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(t){var r;return!!["0","#","?",".","%",",","/",n.BACKSLASH,n.ASTERISK,n.UNDERLINE,"@"].find((function(r){return r===t}))},o=function(t){var r;return[n.BACKSLASH,n.ASTERISK,n.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,e=0,a=this.DZe;e<a.length;e++)if(t=a[e],i(t)){if(o(t)){this.Fmt.push(u("symbol",t)),e<a.length-1&&(this.Fmt.push(u("char",a[e+1])),e++);continue}this.Fmt.push(u("symbol",t))}else if(t!==n.SEMICOLON){if(t===n.DOUBLE_QUOTE){if(-1!==(r=a.slice(e+1).search(n.DOUBLE_QUOTE))){r=r+e+1,this.Fmt.push(u("text",a.slice(e+1,r))),e=r;continue}(0,n.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,e){var n,i;Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0,n=e("./src/plugins/formatter/formatterGrammar/interface.ts"),i=function(){function t(t){this.bHr=t,this.SYr=t.jbi()}return t.prototype.TYr=function(t){this.SYr.type===t?this.SYr=this.bHr.jbi():(0,n.throwError)()},t.prototype.parse=function(){for(var t=[];"EOF"!==this.SYr.type;)t.push(this.xYr()),t.length>4&&(0,n.throwError)();return{type:"numberFormat",body:t}},t.prototype.xYr=function(){for(var t,r=[];"semicolon"!==this.SYr.type&&"EOF"!==this.SYr.type;)"symbol"===(t=this.SYr.type)?r.push(this.wHr()):r.push(this.yHr());return"semicolon"===this.SYr.type&&this.TYr("semicolon"),{type:"formatPart",body:r}},t.prototype.wHr=function(){var t,r=this.SYr.value;return r===n.ASTERISK?(this.TYr("symbol"),t={type:"asterisk",body:this.SYr.value},this.TYr("char")):r===n.BACKSLASH?(this.TYr("symbol"),t={type:"char",body:this.SYr.value},this.TYr("char")):r===n.UNDERLINE?(this.TYr("symbol"),t={type:"underline",body:this.SYr.value},this.TYr("char")):(t={type:"symbol",body:this.SYr.value},this.TYr("symbol")),t},t.prototype.yHr=function(){var t,r=this.SYr.type;return"char"===r?(t={type:"char",body:this.SYr.value},this.TYr("char")):"text"===r&&(t={type:"text",body:this.SYr.value},this.TYr("text")),t},t}(),r.Parser=i},"./src/plugins/slicer/slicer.entry.ts":function(t,r,e){var n=this&&this.hJr||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),i=this&&this.dJr||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./src/plugins/slicer/slicer.ts"),r)},"./src/plugins/slicer/slicer.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l;function d(t){return"object"==typeof t&&t!==o&&t.text!==i}function h(t,r){var e,n,c;if(t===o||t===i)return!1;if(N(t)===u)r.value=t;else if(N(t)===s)r.value=t?1:0;else if(t instanceof Date)r.value=m.o0(t);else{if(N(t)!==a)return!1;if(0===$(t=t.trim()))return!1;if(e=!1,"%"===t.charAt($(t)-1)&&(e=!0,t=t.substr(0,$(t)-1)),$(t)>=2&&"0"===t[0]&&"x"===t[1])return!1;if(n=Number(t).valueOf(),isNaN(n)||!isFinite(n)){if(c=new Date(t),isNaN(c))return!1;n=m.o0(c)}e&&(n/=100),r.value=n}return!0}function M(t){var r,e,n,i,o,u,a,s,c,f,y,m,l,d,h,M=t.ezt;for(M||(t.izt=[],t.rzt=[]),r=M?t.ozt:t.izt,e=t.azt,n=t.uzt,i=M?t.szt:t.rzt,o=t.Mct,u=t.czt,a=t.fzt,s=t.SIr(),f={},y=0;y<s;y++){for(m=!1,l=void 0,d=0;d<$(o)&&(l=o[d],M&&l===t.lzt||(n[l]?(H(f[h=t.columnNames[l]])&&(f[h]=t.getColumnIndex(h)),c=t.fue(f[h],y),m=!n[l][c]):e[l]&&(m=!e[l][y]),!m));d++);!m&&M&&(u?(H(f[h=t.columnNames[l]])&&(f[h]=t.getColumnIndex(h)),m=!u[c=t.fue(f[h],y)]):a&&(m=!a[y])),m||(r[y]=!0)}for(d=0;d<$(r);d++)r[d]&&i.push(d)}function v(t){return"string"==typeof t?t.toLowerCase():t instanceof Date?m.o0(t):t}function p(t){var r,e,n=t.hzt={};for(t.dzt=[],t.vzt=[],t.mzt=[],t.gzt=[],r=t.columnNames,e=0;e<$(r);e++)n[(r[e]+"").toUpperCase()]=e}function g(t,r){var e,n,i,o,u,a,s,c=t.vzt,f=t.pzt,y=t.mzt,m=t.gzt,l=m[r]=[];for(t.bzt=[],t.xIr(r,[]),c[r]=[],f[r]={},y[r]=[],e={},n=0;n<t.SIr();n++)o=d(i=t.JNr(n,r))?i.text.trim():i,t.TIr(r,o),(u=e[v(o)])?(u.list.push(n),l[n]=u.index):(a=[n],c[r].push(o),y[r].push(a),s=$(y[r])-1,f[r][o]=s,l[n]=s,e[v(o)]={list:a,index:s})}function b(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,h,M=t.yzt,v=t.getColumnIndex(r),p=[];if(!v)return p;if(n=t.ezt?t.wzt:t.Mzt[v],i=t.izt,!n)return p;for(M[v]||t.Czt(v),o=[],u=M[v],a=0;a<$(u);a++)c=d(s=t.JNr(a,v))?s.value:s,o[u[a]]=c;for(f=t.Szt[v],a=0;a<$(n);a++){for(y=n[a],m=!1,h=(l=t.Tzt(o,y)).start;h<=l.end;h++)if(i[f[h]]){m=!0;break}m!==e&&p.push(y)}return p}function F(t,r){var e,n,i,o,u=[],a=t.getColumnIndex(r);if(a>=0){for(e=$(t.getData(r)),n=t.ezt?t.ozt:t.izt,i=0;i<e;i++)n[i]||(o=t.fue(a,i),-1===u.indexOf(o)&&u.push(o));return u}}function k(t,r){var e,n,i,o,u,a,s,c=[],f={},y=t.getColumnIndex(r);if(y>=0)for(e=t.czt||t.fzt,n=t.uzt[y]||t.azt[y],i=t.ezt&&y===t.lzt?e:n,u=$((o=!!t.azt[y])?t.getData(r):t.getExclusiveData(r)),a=0;a<u;a++)i&&!i[a]&&(f[s=o?t.fue(y,a):a]||(f[s]=!0,c.push(s)));return c}function _(t,r){var e,n,i,o,u,a,s,c,f,y={},m=t.columnNames,l=$(m);for(e=0;e<l;e++)if(m[e]!==r)for(n=k(t,m[e]),i=0;i<$(n);i++)for(o=t.getRowIndexes(m[e],n[i]),u=0;u<$(o);u++)y[o[u]]||(y[o[u]]=!0);for(a={},l=t.SIr(),e=0;e<l;e++)s=t.getExclusiveRowIndex(r,e),y[e]||(a[s]=!0);for(c=$(t.getExclusiveData(r)),f=[],e=0;e<c;e++)a[e]||f.push(e);return f}function w(t,r,e,n){var i,o,u,a,s,c,f,y,m=t.getColumnIndex(r),l=t.yzt;for(l[m]||t.Czt(m),i=[],o=l[m],u=0;u<$(o);u++)s=d(a=t.JNr(u,m))?a.value:a,i[o[u]]=s;for(c=[],u=0;u<$(e);u++)for(f=t.Tzt(i,e[u]),y=0;y<$(o);y++)o[y]>=f.start&&o[y]<=f.end&&(c[y]=!0);n?(t.fzt=c,t.wzt=e):(t.Mzt[m]=e,t.azt[m]=c,delete t.uzt[m],delete t.Azt[m]),M(t)}function D(t,r,e,n){var i,o=t.getColumnIndex(r),u=[];for(i=0;i<$(e);i++)u[e[i]]=!0;n?t.czt=u:(t.uzt[o]=u,t.Azt[o]=e,delete t.Mzt[o],delete t.azt[o]),M(t)}function x(t,r){t.ezt=!1,t.czt=[],t.szt=[],t.ozt=[],t.fzt=[],r&&t.onFiltered()}function H(t){return t===i||t===o}function N(t){return typeof t}function $(t){return t?t.length:0}Object.defineProperty(r,"__esModule",{value:!0}),r.GeneralSlicerData=r.xzt=r.SlicerAggregateType=r.FilteredOutDataType=void 0,n=e("./src/common/util/datetimehelper.ts"),i=void 0,o=null,u="number",a="string",s="boolean",c=n.ct.o0,function(t){t[t.all=0]="all",t[t.byCurrentColumn=1]="byCurrentColumn",t[t.byOtherColumns=2]="byOtherColumns"}(f=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 c(t)},t.quickSort=function(r){var e,n=$(r),i=[];for(e=0;e<n;e++)i[e]={index:e,value:r[e]};return t.quickSortImp(i)},t.quickSortImp=function(r){var e,n,i,o,u,a,s,c,f=r.length;if(f<=1)return r;for(e=t,i=r[n=Math.floor(f*Math.random())],o=[],u=[],a=[],s=0;s<f;s++)n!==s?(c=e.sortCompare(r[s].value,i.value))<0?o.push(r[s]):c>0?u.push(r[s]):a.push(r[s]):a.push(r[s]);return e.quickSortImp(o).concat(a,e.quickSortImp(u))},t.isEquals=function(t,r){return!(!H(t)&&""!==t||!H(r)&&""!==r)||(t instanceof Date&&r instanceof Date?t.valueOf()===r.valueOf():N(t)===a&&N(r)===a?t.toLowerCase()===r.toLowerCase():t===r)},t.isGreaterThan=function(r,e){var n=N(r),i=N(e);return n===s?r=r?1:0:r instanceof Date&&(r=t.o0(r)),i===s?e=e?1:0:e instanceof Date&&(e=t.o0(e)),n===i||n!==u&&i!==u?n===a&&i===a?r.toLowerCase()>e.toLowerCase():r>e:i===u},t.sortCompare=function(r,e){var n=t,i=-1,o=H(r)||""===r||N(r)===u&&isNaN(r),a=H(e)||""===e||N(e)===u&&isNaN(e);return o&&a?i=0:o?i=1:a?i=-1:n.isEquals(r,e)?i=0:n.isGreaterThan(r,e)&&(i=1),i},t}(),r.xzt=m,l=function(){function t(t,r){var e=this;e.hzt={},e.dzt=[],e.vzt=[],e.pzt=[],e.mzt=[],e.gzt=[],e.uzt=[],e.Azt=[],e.azt=[],e.Mzt=[],e.izt=[],e.rzt=[],e.Mct=[],e.szt=[],e.ozt=[],e.ezt=!1,e.aT=[],e.Upt=0,e.bzt=[],e.Szt=[],e.yzt=[],e.lue=0,Object.defineProperty(e,"data",{get:function(){return this.VEt()},set:function(t){e.HY(t)}}),e.Izt(t,r),e.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 $(this._data)},t.prototype.JNr=function(t,r){return this._data[t][r]},t.prototype.IIr=function(t,r,e){this._data[t][r]=e},t.prototype.kIr=function(t,r){var e,n=this,i=this._data,o=$(n.columnNames);for(e=0;e<r;e++)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 e,n=this._data;for(e=0;e<$(n);e++)n[e].splice(t,r)},t.prototype.jIr=function(t,r,e){this.dzt[t][r]=e},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,e){this.dzt[t].splice(r,0,null!=e?e:i)},t.prototype.OIr=function(t,r,e){this.dzt[t].splice(r,e)},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 e=this;e._data=t,e.columnNames=r,p(e)},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,e,n,i,o,u,a,s,c,f,y,m=this,l=new Array($(m.columnNames)),h=m.Azt,v=m.vzt,p=m.uzt,b={};for(r=0;r<$(t);r++)n=(e=t[r]).data,i=e.columnName,o=e.row,H(b[i])&&(b[i]=m.getColumnIndex(i)),u=b[i],o>=m.SIr()&&m.onRowsAdded(o,1,!1),m.IIr(o,u,n),a=d(n)?n.text:n,m.DIr(u)&&m.jIr(u,o,a),l[u]=!0;for(s=0;s<$(l);s++)if(l[s]){for(c=h[s],h[s]=c?[]:void 0,p[s]=c?[]:void 0,f=[],r=0;c&&r<$(c);r++)f.push(v[s][c[r]]);for(g(m,s),r=0;r<$(f);r++)y=m.pzt[s][f[r]],h[s].push(y),p[s][y]=!0}M(m),m.mue=!0,m.vue(t)},t.prototype.Nzt=function(t){var r,e,n,i,o=[];for(r=1;r<arguments.length;r++)o[r-1]=arguments[r];for(e=this.aT||[],n=0;n<$(e);n++)(i=e[n])[t]&&i[t].apply(i,o)},t.prototype.onColumnNameChanged=function(t,r){var e=this,n=e.hzt,i=e.getColumnIndex(t);i<0||(e.columnNames[i]=r,delete n[t.toUpperCase()],n[r.toUpperCase()]=i,e.Nzt("onColumnNameChanged",t,r))},t.prototype.onRowsAdded=function(t,r,e){var n,i,u,a,s,c,f,y,l,d,h,M,v,p=this,g=$(p.columnNames),b=p.vzt,F=p.mzt,k=p.gzt,_=p.uzt,w=p.Azt,D=p.izt,x=p.rzt,H=p.Mct;for(p.bzt=[],p.kIr(t,r),i=0;i<g;i++){for(n=0;n<r;n++)p.DIr(i)&&p._Ir(i,t);if(s=void 0,a=b[i]){for(c=o,f=0;f<$(a);f++){for(y=F[i][f],l=0;l<$(y);l++)y[l]>=t&&(y[l]+=r);m.isEquals(a[f],o)&&(c=y,s=f)}for(c||(c=[],a.push(o),s=$(a)-1,p.pzt[i][o]=s,F[i].push(c),_[i]&&-1===H.indexOf(i)&&(_[i][s]=!0,w[i].push(s))),d=t;d<t+r;d++)c.push(d);for(u=t;u<t+r;u++)k[i].splice(u,0,s)}}for(h=!0,n=0;n<$(H);n++)M=k[i=H[n]][t],!0!==_[i][M]&&(h=!1);for(n=0;n<$(x);n++)x[n]>=t&&(x[n]+=r);for(u=p.SIr()-1;u>=t+r;u--)D[u]=D[u-r];for(v=$(H)>0,u=t;u<t+r;u++)h&&x.push(u),D[u]=!v;e||p.Nzt("onRowsChanged",t,r,!0)},t.prototype.onRowsRemoved=function(t,r){this.kzt(t,r,!0)},t.prototype.kzt=function(t,r,e){var n,i,o,u,a,s,c,f,y=this,m=y.Azt,l=y.vzt,d=y.uzt,h=$(y.columnNames);for(y.tX(t,r),i=0;i<h;i++){if(y.DIr(i)&&y.OIr(i,t,r),u=[],(o=m[i])&&e){for(n=0;n<$(o);n++){for(a=y.getRowIndexes(y.columnNames[i],o[n]),s=!0,c=0;c<$(a);c++)if(a[c]<t||a[c]>=t+r){s=!1;break}s||u.push(l[i][o[n]])}m[i]=[],d[i]=[]}if(g(y,i),o&&e)for(n=0;n<$(u);n++)f=y.pzt[i][u[n]],m[i].push(f),d[i][f]=!0}e&&M(y),y.Nzt("onRowsChanged",t,r,!1)},t.prototype.onColumnsRemoved=function(t,r){var e,n,i,o,u,a,s,c,f=this,y=[],m=f.Mct,l=t+r;for(e=t;e<l;e++)(n=f.columnNames[e])&&(i=e,y.push(n),-1!==m.indexOf(i)&&f.doUnfilter(n));for(s in o=f.uzt||f.azt,u=f.Azt||f.Mzt,a=f.hzt,f.NIr(t,r),f.bzt=[],f.columnNames.splice(t,r),f.EIr(t,r),f.vzt.splice(t,r),f.pzt.splice(t,r),f.mzt.splice(t,r),f.gzt.splice(t,r),o.splice(t,r),u.splice(t,r),a)a[s]>=t+r&&(a[s]-=r);for(e=0;e<$(y);e++)delete a[(n=y[e]).toUpperCase()],t=f.getColumnIndex(n),-1!==(c=m.indexOf(t))&&m.splice(c,1),f.Nzt("onColumnRemoved",y[e])},t.prototype.Dzt=function(){return this.bzt},t.prototype._zt=function(){return this.Szt},t.prototype.Czt=function(t){var r,e,n,i,o,u,a,s,c,f,y,l=this;for(l.DIr(t)||g(l,t),r=l.SIr(),e=[],n=0;n<r;n++)o=d(i=l.JNr(n,t))?i.value:i,e.push(o);for(u=m.quickSort(e),a=l.bzt[t]=[],s=l.Szt[t]=[],c=l.yzt[t]=[],f=0;f<$(u);f++)y=u[f],a.push(y.value),s.push(y.index),c[y.index]=f},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,e=r.SIr(),n=r.ezt?r.ozt:r.izt,i=[];for(t=0;t<e;t++)n[t]||i.push(t);return i},t.prototype.getData=function(t,r){var e,n,i,o,u,a,s,c=this,f=c.getColumnIndex(t);if(f>=0){if(r){for(c.bzt[f]||c.Czt(f),e=c.jEe(f),n=c.bzt[f],o=(i=c.Tzt(n,r)).start,u=i.end,a=[],s=o;s<=u;s++)a.push(e[c.Szt[f][s]]);return a}return c.DIr(f)||g(c,f),c.jEe(f)}return[]},t.prototype.aggregateData=function(t,r,e){var n,o,u,a,s,c,f,y,m,l=this,d=l.getColumnIndex(t);return d<0?i:(l.bzt[d]||l.Czt(d),a=$(u=l.bzt[d]),n=(s=l.Tzt(u,e)).start,o=s.end,5===r?n>=a?i:u[n]:4===r?o<0?i:u[o]:3===r?o<n?0:o-n+1:(f=(c=l.Ezt(u,r,n,o)).data1,y=c.data2,m=c.data3,1===r?f/=y:7===r||10===r?(f=(m*y-f*f)/(m*(m-1)),f=7===r?Math.sqrt(f):f):8!==r&&11!==r||(f=(m*y-f*f)/(m*m),f=8===r?Math.sqrt(f):f),f))},t.prototype.Ezt=function(t,r,e,n){var u,a,s,c=6===r?1:0,f=0,y=0;for(u=e;u<=n;u++)(a=t[u])===o&&a===i||h(a,s={value:o})&&(a=s.value,1===r?(c+=a,f++):2===r?c++:9===r?c+=a:6===r?c*=a:7!==r&&8!==r&&10!==r&&11!==r||(c+=a,f+=a*a,y++));return{data1:c,data2:f,data3:y}},t.prototype.Tzt=function(t,r){var e=$(t),n,o,u,a;if(r){if(r.min===-1/0)n=0;else for(u=0;u<e;u++)if(a=t[u],m.isEquals(r.min,a)||m.isGreaterThan(a,r.min)){n=u;break}if(n===i&&(n=e),o===1/0)o=e-1;else{for(u=e-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 n=0,o=e-1;return{start:n,end:o}},t.prototype.getExclusiveData=function(t){var r=this,e=r.vzt,n=r.getColumnIndex(t);return n>=0?(e[n]||g(r,n),e[n]):[]},t.prototype.getRowIndexes=function(t,r){var e=this,n=e.getColumnIndex(t);return n>=0?(e.gzt[n]||g(e,n),e.mzt[n][r]):[]},t.prototype.getExclusiveRowIndex=function(t,r){var e=this,n=e.getColumnIndex(t);return e.fue(n,r)},t.prototype.fue=function(t,r){var e=this,n=e.gzt;return t>=0?(n[t]||g(e,t),n[t][r]):-1},t.prototype.getFilteredIndexes=function(t){var r=[],e={};return this.jzt(t,r,e),r},t.prototype.jzt=function(t,r,e){var n,i,o,u=this,a=u.ezt?u.szt:u.rzt,s=u.getColumnIndex(t);for(n=0;n<$(a);n++)i=a[n],H(o=u.fue(s,i))||(e[o]?e[o]++:(e[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 e=this;return 0===r?F(e,t):1===r?k(e,t):_(e,t)},t.prototype.attachListener=function(t){-1===this.aT.indexOf(t)&&this.aT.push(t)},t.prototype.detachListener=function(t){var r,e=this.aT||[];for(r=0;r<$(e);r++)if(e[r]===t){e.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,e){this.Ozt(t,r,e),this.onFiltered()},t.prototype.Ozt=function(t,r,e){var n=this,i=n.Mct,o=n.getColumnIndex(t);o<0||(e?(n.ezt=!0,n.lzt=o):n.ezt&&x(n,!1),i.indexOf(o)<0&&i.push(o),r.ranges?w(n,t,r.ranges,e):D(n,t,r.exclusiveRowIndexes,e))},t.prototype.clearPreview=function(){x(this,!0)},t.prototype.doUnfilter=function(t){this.Rzt(t),this.onFiltered()},t.prototype.Rzt=function(t){var r,e,n=this;n.ezt&&x(n,!1),(r=n.getColumnIndex(t))<0||(delete n.Mzt[r],delete n.azt[r],delete n.uzt[r],delete n.Azt[r],M(n),(e=n.Mct.indexOf(r))>=0&&n.Mct.splice(e,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=l},"./src/plugins/sparkline/sparkline-render.ts":function(t,r,e){var n,i,o,u,a,s;Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineRender=r.oCt=void 0,n=e("./src/common/util/arrayhelper.ts"),i=e("./src/plugins/sparkline/sparklines/common.ts"),r.oCt={},o=n.Uf.hD,u=new Date(""),a=function(){function t(t,r,e,n){this.X=t,this.Y=r,this.Width=e,this.Height=n,this.Left=this.X,this.Right=this.Left+this.Width,this.Top=this.Y,this.Bottom=this.Y+this.Height}return t}(),s=function(){function t(){this.Bzt=2,this.Lzt=u,this.Fzt=u,this.Pzt=i.NUMBER_MAX_VALUE,this.Gzt=-i.NUMBER_MAX_VALUE}return t.prototype.paint=function(t,r,e,n,i,o){var u,a,s,c=this;c.options=r,c.setting=r.settings,u=r.values,a=r.dateValues,s=r.zoomFactor,t.save(),t.rect(e,n,i,o),t.clip(),t.beginPath(),0===r.sparklineType&&c.c6(t,e,n,i,o,u,a,s),c.Vzt(t,e,n,i,o,u,a,s),c.Yzt(t,e,n,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,e){var u,a,s,c,f,y,m,l,d,h=this.Kzt;if(h)return h;if(h=this.Kzt=[],u=t.length,this.options.displayDateAxis){for(c=e.length,y=[],(f=(0,i.Math_min)(u,c))>0&&(y=e.slice(0,f)),y.sort((function(t,e){return t===e?0:(t===r.oCt&&(t=0),e===r.oCt&&(e=0),t-e)})),m=y.length,l=void 0,d=void 0,a=0;a<m;a++)if(typeof(l=y[a])!==i.const_undefined&&l!==i.keyword_null){for(d=o(e,l);n.Uf.OS(h,d);)d=o(e,l,d+1);isNaN(l)||(s=t[d])!==i.keyword_undefined&&s!==i.keyword_null&&isNaN(s)&&s!==r.oCt||h.push(d)}}else for(a=0;a<u;a++)typeof(s=t[a])!==i.const_undefined&&s!==i.keyword_null&&isNaN(s)&&s!==r.oCt||h.push(a);return h},t.prototype.Sl=function(t,e){var n=e[t];return typeof n===i.const_undefined||n===i.keyword_null?1===this.setting.options.displayEmptyCellsAs&&(n=0):n===r.oCt&&(n=0),n},t.prototype.c6=function(t,r,e,n,o,u,a,s){var c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w=this,D=w.Qzt(u,a),x=D.length-1;for(x<0&&(x=0),m=w.setting.options,l=w.linePos=[],g=m.displayEmptyCellsAs,c=0;c<x;c++)if(typeof(d=w.Sl(D[c],u))!==i.const_undefined&&d!==i.keyword_null){if(M=c+1,typeof(h=w.Sl(D[M],u))===i.const_undefined||h===i.keyword_null)if(1===g)h=0;else if(2===g)for(M=c+2;M<=x;M++)if(typeof(b=u[D[M]])!==i.const_undefined&&b!==i.keyword_null){h=b;break}typeof h!==i.const_undefined&&h!==i.keyword_null?(v=w.Jzt(D[c],{Width:n,Height:o},u,a,s),p=w.Jzt(D[M],{Width:n,Height:o},u,a,s),F=v.Width/2,f={X:v.X+F,Y:v.Y+F},y={X:p.X+F,Y:p.Y+F},l[c]={P1:f,P2:y}):c++}if((k=l.length)>0)for(t.strokeStyle=w.options.getColor(m.seriesColor),t.lineCap="round",t.lineWidth=w.Wzt(s),c=0;c<k;c++)(_=l[c])&&(t.beginPath(),f=_.P1,y=_.P2,t.moveTo(r+f.X,e+f.Y),t.lineTo(r+y.X,e+y.Y),t.stroke(),t.closePath())},t.prototype.Xzt=function(t,r,e){var n,u,a,s=this,c=s.options,f=s.setting.options,y=i.keyword_null,m=s.Sl(t,r),l=s.Qzt(r,e),d=l.length,h=c.getColor.bind(s);return typeof m!==i.const_undefined&&m!==i.keyword_null&&(s.Pzt!==i.NUMBER_MAX_VALUE&&s.Gzt!==-i.NUMBER_MAX_VALUE||s.qzt(r),m===s.Pzt&&f.showLow&&(y=h(f.lowMarkerColor)),m!==s.Gzt||!f.showHigh||typeof y!==i.const_undefined&&y!==i.keyword_null||(y=h(f.highMarkerColor)),typeof y!==i.const_undefined&&y!==i.keyword_null||(c.displayDateAxis?0===(n=o(l,t))&&f.showFirst&&(y=h(f.firstMarkerColor)):0===t&&f.showFirst&&(y=h(f.firstMarkerColor))),typeof y!==i.const_undefined&&y!==i.keyword_null||(c.displayDateAxis?(u=o(l,t))===d-1&&f.showLast&&(y=h(f.lastMarkerColor)):t===d-1&&f.showLast&&(y=h(f.lastMarkerColor))),m<0&&f.showNegative&&(typeof y===i.const_undefined||y===i.keyword_null)&&(y=h(f.negativeColor)),typeof y!==i.const_undefined&&y!==i.keyword_null||(0===(a=c.sparklineType)?f.showMarkers&&(y=h(f.markersColor)):1!==a&&2!==a||(y=h(f.seriesColor)))),y===i.keyword_undefined||y===i.keyword_null?"Transparent":y},t.prototype.Vzt=function(t,r,e,n,o,u,a,s){var c,f,y,m,l,d,h,M,v,p,g=this,b={Width:n,Height:o},F=g.Qzt(u,a),k=F.length,_=g.options.sparklineType;for(p=0;p<k;p++)c=F[p],f=g.Xzt(c,u,a),y=g.Jzt(c,b,u,a,s),t.fillStyle!==f&&(t.fillStyle=f),0===_?(t.save(),m=r+y.X+y.Width/2,l=e+y.Y+y.Height/2,t.translate(m,l),t.rotate(45*i.Math_PI/180),t.fillRect(0-y.Width/2,0-y.Height/2,y.Width,y.Height),t.restore()):(d=r+y.X+y.Width/4,d=(0,i.Math_floor)(d),h=e+y.Y,M=y.Width/2,v=y.Height,t.fillRect(d,h,M,v))},t.prototype.Yzt=function(t,r,e,n,o,u,a,s){var c,f,y,m,l,d,h,M=this,v=M.setting&&M.setting.options;v&&v.displayXAxis&&M.$zt(u,a)&&(c={Width:n,Height:o},f=M.Zzt(s),y=c.Width-M.Zzt(s),l=m=(0,i.Math_floor)(M.tVt(c,u,s))+.5,d=M.options.getColor(v.axisColor),(h=s)<1&&(h=1),t.strokeStyle!==d&&(t.strokeStyle=d),t.lineWidth!==h&&(t.lineWidth=h),t.beginPath(),t.moveTo(r+f,e+m),t.lineTo(r+y,e+l),t.stroke())},t.prototype.nVt=function(t){var r,e=this.eVt(t);return e===-i.NUMBER_MAX_VALUE||(r=this.iVt(t))===i.NUMBER_MAX_VALUE||(e===r||e*r<=0)},t.prototype.$zt=function(t,r){var e,n,o,u,a,s=this.nVt(t);if(2!==this.options.sparklineType)return s;if(n=(e=this.Qzt(t,r)).length,!s&&n>0)for(a=0;a<n;a++)if(typeof(u=t[o=e[a]])!==i.const_undefined&&u!==i.keyword_null)return!0;return s},t.prototype.rVt=function(t,r){var e=this.Lzt;return isNaN(e&&e.valueOf())&&this.oVt(t,r),this.Lzt},t.prototype.aVt=function(t,r){var e=this.Fzt;return isNaN(e&&e.valueOf())&&this.oVt(t,r),this.Fzt},t.prototype.oVt=function(t,r){var e,n,o,u,a=this,s=new Date(0,0,0),c=i.NUMBER_MAX_VALUE,f=a.Qzt(t,r),y=f.length;for(u=0;u<y;u++)n=r[e=f[u]],isNaN(n)||(o=a.Sl(e,t))!==i.keyword_null&&typeof o===i.const_undefined||isNaN(o)||typeof n!==i.const_undefined&&n!==i.keyword_null&&(n>s&&(s=n),n<c&&(c=n));a.Fzt=s,a.Lzt=c},t.prototype.uVt=function(t,r,e,n){var o,u,a,s,c,f,y,m,l=this,d=l.rVt(r,e),h=l.aVt(r,e),M=[],v=l.Qzt(r,e),p=v.length;for(o=0;o<p;o++)(u=e[a=v[o]])&&!isNaN(u)&&M.push(u);if(M.sort((function(t,r){return t-r})),(s=M.length)>1&&d!==h){for(c=i.NUMBER_MAX_VALUE,f=0,y=void 0,o=1;o<s;o++)(u=(y=M[o])-M[o-1])<c&&u>0&&(c=u),f+=u;return(m=(t.Width-l.Zzt(n)-l.Zzt(n))*c/f/2)<2&&(m=2),m}return(t.Width-l.Zzt(n)-l.Zzt(n))/2},t.prototype.sVt=function(t,r,e,n){var i,o=this;return o.options.displayDateAxis?o.uVt(t,r,e,n):(i=o.Qzt(r,e).length,(t.Width-o.Zzt(n)-o.Zzt(n))/i)},t.prototype.cVt=function(t,r,e,n,u){var a,s,c,f,y,m,l,d,h=this,M=h.Zzt(u);return h.options.displayDateAxis?(a=h.sVt(t,e,n,u),(s=h.aVt(e,n))===(c=h.rVt(e,n))?M+a/2:(f=n[r])?(y=t.Width-M-h.Zzt(u),y-=a,m=s.valueOf()-c.valueOf(),M+(0,i.Math_floor)((f.valueOf()-c.valueOf())/m*y)):0):(d=M+(a=h.sVt(t,e,n,u))*(l=o(h.Qzt(e,n),r)),(0,i.Math_floor)(d))},t.prototype.fVt=function(t,r){var e,n=this,o=t.Width-n.Zzt(r)-n.Zzt(r);return o=(0,i.Math_max)(o,0),e=t.Height-n.Zzt(r)-n.Zzt(r),{Width:o,Height:e=(0,i.Math_max)(e,0)}},t.prototype.qzt=function(t){var r,e,n=this,o=t.length;for(e=0;e<o;e++)typeof(r=t[e])!==i.const_undefined&&r!==i.keyword_null&&("number"!=typeof r&&(r=0),r<n.Pzt&&(n.Pzt=r),r>n.Gzt&&(n.Gzt=r))},t.prototype.eVt=function(t){var r,e,n=this;return n.Gzt!==-i.NUMBER_MAX_VALUE&&n.Gzt||n.qzt(t),0===(e=(r=n.setting.options).maxAxisType)?n.Gzt:1===e?r.groupMaxValue:2===e?r.manualMax:n.Gzt},t.prototype.iVt=function(t){var r,e,n=this;return n.Pzt!==i.NUMBER_MAX_VALUE&&n.Pzt||n.qzt(t),0===(e=(r=n.setting.options).minAxisType)?n.Pzt:1===e?r.groupMinValue:2===e?r.manualMin:void 0},t.prototype.lVt=function(t,r,e,n){var o=this.fVt(t,n),u=this.eVt(e),a=this.iVt(e),s=u-a,c,f;if(u===a){if(0===u)return 0;s=(0,i.Math_abs)(u)}return(c=e[r])||(c=0),c*(f=o.Height/s)},t.prototype.hVt=function(t,r,e,n){var o,u,a,s=this,c=s.options.sparklineType;if(0===c)return s.lVt(t,r,e,n);if(1===c){if(o=e[r],1===s.setting.options.displayEmptyCellsAs&&(typeof o===i.const_undefined||o===i.keyword_null))return 0;if((u=s.lVt(t,r,e,n))>-s.Bzt&&u<s.Bzt){if(o>0)return u+s.Bzt;if(o<0)return u-s.Bzt}return u}return 2===c?typeof(o=e[r])===i.const_undefined||o===i.keyword_null||0===o||isNaN(o)?0:(a=s.fVt(t,n),o>=0?a.Height/2:-a.Height/2):void 0},t.prototype.dVt=function(t,r,e){var n,o,u=this,a=u.fVt(t,e),s=u.eVt(r),c=u.iVt(r);if(s===-i.NUMBER_MAX_VALUE||c===i.NUMBER_MAX_VALUE)return t.Height/2;if(n=s-c,s===c){if(0===s)return t.Height/2;n=s,s<0&&(s=0)}return o=a.Height/n,u.Zzt(e)+s*o},t.prototype.tVt=function(t,r,e){return 2===this.options.sparklineType?t.Height/2:this.dVt(t,r,e)},t.prototype.vVt=function(t,r,e,n){var o,u,a,s=this,c=s.fVt(t,n),f=s.eVt(e),y=s.iVt(e),m=f-y;if(f===y){if(0===f)return 0;m=f}return o=c.Height/m,typeof(u=s.Sl(r,e))!==i.const_undefined&&u!==i.keyword_null||(u=0),f!==y&&f*y>0?(a=0,a=u>=0?(u-y)*o:(u-f)*o):u*o},t.prototype.mVt=function(t,r,e,n){var o,u,a,s=this,c=s.options.sparklineType;return 0===c?s.vVt(t,r,e,n):1===c?(o=s.vVt(t,r,e,n))>-(u=s.Bzt)&&o<u&&(typeof(a=s.Sl(r,e))!==i.const_undefined&&a!==i.keyword_null||(a=0),0!==a)?a>0?o+u:o-u:o:2===c?s.hVt(t,r,e,n):void 0},t.prototype.gVt=function(t,r,e,n,o){var u,s,c,f,y,m,l,d,h,M=this,v=M.sVt(r,e,n,o),p=M.cVt(r,t,e,n,o);return v<0&&(v=0),(v=(0,i.Math_floor)(v))%2==1&&(v+=1),u=M.hVt(r,t,e,o),s=M.tVt(r,e,o),c=M.eVt(e),f=M.iVt(e),y=0,c<0&&f<0?y=(0,i.Math_max)(M.Zzt(o),s):(y=s,u>=0&&(y=s-u)),m=M.mVt(r,t,e,o),l=new a(p,y,v,(0,i.Math_abs)(m)),0!==u&&(d=M.Zzt(o),l.Y<d&&l.Bottom<d+1?l.Height=(0,i.Math_floor)(l.Height+1):(h=r.Height-M.Zzt(o),l.Bottom>h&&l.Y>h-1&&(l.Y=h-m,l.Height=m))),l},t.prototype.Wzt=function(t){var r=this.setting.options.lineWeight*t;return r<1&&(r=1),r},t.prototype.Jzt=function(t,r,e,n,o){var u,s,c,f,y,m=this,l=m.Wzt(o);return++l<2&&(l=2),u=m.gVt(t,r,e,n,o),0===m.options.sparklineType&&(u.X=u.X+(u.Width-l)/2,typeof(s=m.Sl(t,e))!==i.const_undefined&&s!==i.keyword_null?(s>=0?u.Y-=l/2:u.Y=u.Bottom-l/2,u.Width=l,u.Height=l):(u.Width=0,u.Height=0)),m.setting.options.rightToLeft&&(c=u.X,y=(f=r.Width-c)-u.Width,u=new a(y,u.Y,u.Width,u.Height)),u},t}(),r.SparklineRender=s},"./src/plugins/sparkline/sparkline.entry.ts":function(t,r,e){var n=this&&this.hJr||(Object.create?function(t,r,e,n){void 0===n&&(n=e);var i=Object.getOwnPropertyDescriptor(r,e);i&&!("get"in i?!r.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return r[e]}}),Object.defineProperty(t,n,i)}:function(t,r,e,n){void 0===n&&(n=e),t[n]=r[e]}),i=this&&this.dJr||function(t,r){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(r,e)||n(r,t,e)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./src/plugins/sparkline/sparkline.ts"),r)},"./src/plugins/sparkline/sparkline.ts":function(t,r,e){var n,i,o,u;Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=r.Uzt=r.Hzt=r.zzt=r.SparklineRender=r.oCt=void 0,n=e("./src/plugins/sparkline/sparkline-render.ts"),Object.defineProperty(r,"oCt",{enumerable:!0,get:function(){return n.oCt}}),i=e("./src/plugins/sparkline/sparkline-render.ts"),Object.defineProperty(r,"SparklineRender",{enumerable:!0,get:function(){return i.SparklineRender}}),o=e("./src/plugins/sparkline/sparklines/gauge-kpi-sparkline.ts"),Object.defineProperty(r,"zzt",{enumerable:!0,get:function(){return o.zzt}}),Object.defineProperty(r,"Hzt",{enumerable:!0,get:function(){return o.Hzt}}),Object.defineProperty(r,"Uzt",{enumerable:!0,get:function(){return o.Uzt}}),u=e("./src/plugins/sparkline/sparklines/index.ts"),Object.defineProperty(r,"SparklineExRenders",{enumerable:!0,get:function(){return u.SparklineExRenders}})},"./src/plugins/sparkline/sparklines/accumulate-sparkline.ts":function(t,r,e){var n,i,o,u;function a(t,r,e,i,o){r=(0,n.Math_round)(r),e=(0,n.Math_round)(e),r===(i=(0,n.Math_round)(i))&&(r=i-=.5),e===(o=(0,n.Math_round)(o))&&(e=o-=.5),t.moveTo(r,e),t.lineTo(i,o)}function s(t,r,e,n,i,o,u,s,c,f,y){t.beginPath(),t.strokeStyle=e,r?a(t,n,i,o,u):a(t,s,c,f,y),t.stroke()}function c(t,r,e,n,i){t.rect(r,e,n,i),t.clip()}function f(t,r,e,i,o,u){var a,s,f,y,m,l,d,h=u.labelText,M=u.fontSize,v=u.startBox,p=u.endBox,g=u.boxColor,b=u.isInRightOrTopOfBox,F=u.fillStyle;t.save(),t.beginPath(),t.font=M+n.PX_ARIAL,y=1,F=(0,n.isNullOrUndefined)(F)?n.BLACK_COLOR:F,u.vertical?(m=n.CENTER_ALIGN,b?(a=M+p-(v-e))>0&&v-p-e<p?(l=n.TOP_ALIGN,F=(0,n.getTextColor)(g),f=v-p+y,c(t,r,v-p,i,p)):(l=n.BOTTOM_ALIGN,f=v-p-y):(a=M-(e+o-v))>0&&e+o-v<p?(c(t,r,v-p,i,p),l=n.BOTTOM_ALIGN,F=(0,n.getTextColor)(g),f=v-y):(l=n.TOP_ALIGN,f=v+y),t.textAlign=m,t.textBaseline=l,t.fillStyle=F,t.fillText(h,r+i/2,f)):(l=n.MIDDLE_ALIGN,d=t.measureText(h),b?(a=d.width+p-(r+i-v))>0&&r+i-(v+p)<p?(c(t,v,e,p,o),m=n.RIGHT_ALIGN,F=(0,n.getTextColor)(g),s=v+p-y):(m=n.LEFT_ALIGN,s=v+p+y):(a=d.width-(v-r))>0&&v-r<p?(c(t,v,e,p,o),s=v+y,m=n.LEFT_ALIGN,F=(0,n.getTextColor)(g)):(m=n.RIGHT_ALIGN,s=v-y),t.textAlign=m,t.textBaseline=l,t.fillStyle=F,t.fillText(h,s,e+o/2)),t.restore()}function y(t,r,e,a,c,y,m){var l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T,E,R,I,B,G,L,z,K,J,U,V,W,Y,q,X,Z,Q,tt,rt,et,nt,it,ot,ut=r.points,at=r.labels,st=r.pointIndex,ct=r.minimum,ft=r.maximum,yt=r.colorPositive,mt=r.colorNegative,lt=r.vertical,dt=r.itemTypeRange,ht=r.colorTotal,Mt=5,vt=13*m.zoomFactor;if(!(0,n.isNullOrUndefined)(ut)&&!((l=ut.length)<=0)&&dt&&(d=parseInt(st,10),!((0,n.isNotANumber)(d)||d<=0||d>l))){for(at=(0,n.isNullOrUndefined)(at)?[]:at,yt!==n.keyword_null&&typeof yt===n.const_string||(yt="#8CBF64"),mt!==n.keyword_null&&typeof mt===n.const_string||(mt="#D6604D"),typeof ht!==n.const_string&&(ht=n.keyword_null),h=yt,M=(0,n.getLighterColor)(yt,1.3),v=mt,p=(0,n.getLighterColor)(mt,1.3),g=1,b=0,F=0,k=0,_=0,w=[],D=0,x=0,N=0,$=l;N<$;N++)x=ut[N],H=dt[N],S=!1,A=1===g,(P=!(0,n.isNullOrUndefined)(H))&&(H===o?x=(0,n.Math_abs)(x):H===i?x=-(0,n.Math_abs)(x):H===u?(S=!0,A?b=x:x=b):P=!1),w[g]=[],C=w[g],(0,n.isNotANumber)(x)?(C[0]=0,C[1]=b,C[2]=0):(C[0]=(0,n.Math_abs)(x),b=S?b:x+b,C[1]=x>0?F:b,C[2]=x),C[3]=g,k=(0,n.Math_min)(F,k),_=(0,n.Math_max)(F,_),((O=g===l)&&!P||S)&&(D=k<0?-k:0,C[1]=x>0?0:x),P&&S&&!A||(F=x+F,O&&P&&(k=(0,n.Math_min)(F,k),_=(0,n.Math_max)(F,_))),g++;j=!1,(0,n.isNullOrUndefined)(H)||(j=-1===(T=[i,o,u]).indexOf(H)),((0,n.isNullOrUndefined)(H)||j)&&(b-=x),I=(0,n.convertFloat)(ct),(0,n.isNotANumber)(I)||I>0||I>k?(E=k,I=k):(E=I,D=-I),B=(0,n.convertFloat)(ft),(0,n.isNotANumber)(B)||B<0||B<_?R=_:(R=B,D=-I),L=(G=(0,n.getPlotRect)(e,a,c,y,Mt,y-2*Mt,lt)).left,z=G.width,K=G.top,J=G.height,U=lt?-1:1,W=z/(V=R-E),(0,n.clipContext)(t,e,a,c,y),t.beginPath(),t.lineWidth=1,q=(Y=w[d])[2],X=dt[d-1],Z=L+U*(Y[1]+D)*W,Q=Y[0]*W,rt=X===u,et=((0,n.isNullOrUndefined)(X)||j)&&d===l||rt,tt=ht&&et?ht:1===d||et?q>=0?h:v:q>=0?M:p,lt?(0,n.paintRect)(t,K,Z-Q,J,Q,tt):(0,n.paintRect)(t,Z,K,Q,J,tt),lt?(1!==d&&(d!==l?s(t,q>0,n.DEFAULT_COLOR4,e,Z,K+J,Z,e,Z-Q,K+J,Z-Q):(nt=L-(b+D)*W,s(t,!0,n.DEFAULT_COLOR4,e,nt,K+J,nt))),d!==l&&s(t,q>0,n.DEFAULT_COLOR4,K,Z-Q,e+c,Z-Q,K,Z,e+c,Z)):(1!==d&&(d!==l?s(t,q>0,n.DEFAULT_COLOR4,Z,a,Z,K+J,Z+Q,a,Z+Q,K+J):(it=L+(b+D)*W,s(t,!0,n.DEFAULT_COLOR4,it,a,it,K+J))),d!==l&&s(t,q>0,n.DEFAULT_COLOR4,Z+Q,K,Z+Q,a+y,Z,K,Z,a+y)),ot=at[d-1],at.length>0&&!(0,n.isNullOrUndefined)(ot)&&""!==ot&&f(t,e,a,c,y,{labelText:ot,vertical:lt,isInRightOrTopOfBox:q>0,fontSize:vt,startBox:Z,endBox:Q,boxColor:tt}),s(t,lt,n.BLACK_COLOR,e,L-D*W,e+c,L-D*W,L+D*W,a,L+D*W,a+y),t.restore()}}function m(t,r,e,i,o,u,a){var c,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T,E=r.points,R=r.pointIndex,I=r.colorRange,B=r.target,G=r.target2,L=r.highlightPosition,z=r.label,K=r.vertical,J=13*a.zoomFactor,U=r.targetColor,V=r.target2Color,W=r.labelColor,Y=r.barSize;if(!(0,n.isNullOrUndefined)(E)&&((0,n.isNullOrUndefined)(Y)||!((0,n.isNotANumber)(Y)||Y<=0))&&(Y>1&&(Y=1),!((c=E.length)<=0||(y=parseInt(R,10),(0,n.isNotANumber)(y)||y<=0||y>c)))){for(I=(0,n.isNullOrUndefined)(I)?[]:I,m=parseInt(z,10),m=(0,n.isNotANumber)(m)?0:m,l=1,d=0,h=[],M=0,v=E.length;M<v;M++)p=E[M],h[l]=[],g=h[l],p<0||(0,n.isNotANumber)(p)||(0,n.isNullOrUndefined)(p)?(g[0]=1===l?0:d,g[1]=0):(d+=p,g[0]=1===l?0:d-p,g[1]=p),l++;F=5,b=(0,n.isNullOrUndefined)(Y)?F:K?o*(1-Y)/2:u*(1-Y)/2,k=(0,n.getPlotRect)(e,i,o,u,b,u-2*F,K,F),_=k.left,w=k.width,D=k.top,x=k.height,H=K?-1:1,N=w/d,(0,n.clipContext)(t,e,i,o,u),t.beginPath(),t.lineWidth=1,S=($=h[y])[1],A=_+H*$[0]*N,P=$[1]*N,C=y===L?n.DEFAULT_COLOR2:0===I.length||typeof I[y-1]!==n.const_string?n.DEFAULT_COLOR1:I[y-1],K?(0,n.paintRect)(t,D,A-P,x,P,C):(0,n.paintRect)(t,A,D,P,x,C),1===m?O=($[0]+S)/d*1e3:2===m&&(O=S/d*1e3),j=(0,n.Math_round)(O)/10+"%",1!==m&&2!==m||""===j||f(t,e,i,o,u,{labelText:j,vertical:K,isInRightOrTopOfBox:($[0]+$[1])*N<w/2,fontSize:J,startBox:A,endBox:P,boxColor:C,fillStyle:W}),T=[(0,n.isNullOrUndefined)(U)?"#8CBF64":U,(0,n.isNullOrUndefined)(V)?"#EE5D5D":V],[B,G].forEach((function(r,a){var c=q(r),f=(0,n.Math_ceil)(_+H*w*c);s(t,K,T[a],e,f,e+o,f,f,i,f,i+u)})),t.restore()}function q(t){var r=(0,n.convertFloat)(t);return r=(r=(r=(0,n.isNotANumber)(r)?0:r)<0?0:r)>1?1:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.paretoSparkline_paint=r.cascadeSparkline_paint=void 0,n=e("./src/plugins/sparkline/sparklines/common.ts"),i="-",o="+",u="=",r.cascadeSparkline_paint=y,r.paretoSparkline_paint=m},"./src/plugins/sparkline/sparklines/area-sparkline.ts":function(t,r,e){var n,i,o=this&&this.vJr||(u=function(t,r){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},u(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 e(){this.constructor=t}u(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}),u;function a(t,r,e){return{x:t,y:r,value:e}}function s(t){return isNaN(t)||t===1/0?0:t}function c(t,r,e,o,u,c){var y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T,E,R,I,B,G,L;if(t.save(),y=r.points,m=r.mini,l=r.maxi,d=r.line1,h=r.line2,M=r.colorPositive,v=r.colorNegative,p=5,y=(0,n.fixValues)(y,(function(t){return!(0,n.isNullOrUndefined)(t)&&!(0,n.isNotANumber)(t)&&isFinite(t)})),M=(0,n.isNullOrUndefined)(M)?"#787878":M,v=(0,n.isNullOrUndefined)(v)?n.DEFAULT_COLOR2:v,$=(0,n.getMinOrMax)(y,!1),l=(0,n.isNullOrUndefined)(l)?$:l,b=(0,n.Math_max)(l,$),S=(0,n.getMinOrMax)(y,!0),m=(0,n.isNullOrUndefined)(m)?S:m,g=(0,n.Math_min)(m,S),F=(F=(F=0)>(b=b<0?0:b)?b:F)<(g=g>0?0:g)?g-1:F,k=y.length,A=(0,n.getPlotRect)(e,o,u,c,p),_=A.left,w=A.top,D=A.width,x=A.height,H=s(D/(k-1)),P=[],N=s((b-g)/x))for(j=void 0,T=void 0,E=w+s((b-F)/N),R=void 0,I=void 0,B=0;B<k;B++)j=y[B],R=_+H*B,I=w+s((b-j)/N),0===B&&P.push(new i(a(R,E,F))),B>0&&j*y[B-1]<0&&(O=P[P.length-1])&&(T=f(O.x,O.y,R,I,E),P.push(new i(a(T,E,F)))),P.push(new i(a(R,I,j))),B===k-1&&P.push(new i(a(R,E,F)));for(t.beginPath(),G=0,L=P.length;G<L;G++)(C=P[G])&&(0===G?t.moveTo(C.x,C.y):t.lineTo(C.x,C.y),O=P[G-1],C.value===F&&O&&(t.fillStyle=O.value>F?M:v,t.fill(),G!==L-1&&(t.beginPath(),t.moveTo(C.x,C.y))));function z(r){var e,i,o;r===n.keyword_null&&typeof r!==n.const_undefined||(e=(0,n.adjustValue)(r,b,g),i=0!==N?(b-e)/N:x/2,o=(0,n.Math_round)(w+i)-.5,(0,n.drawLine)(t,_,o,_+D,o,n.BLUE_COLOR))}z(d),z(h),t.restore()}function f(t,r,e,n,i){return((r-i)*e+(i-n)*t)/(r-n)}Object.defineProperty(r,"__esModule",{value:!0}),r.areaSparkline_paint=void 0,n=e("./src/plugins/sparkline/sparklines/common.ts"),i=function(t){function r(r){var e=t.call(this,(0,n.createIPoint)(r.x,r.y))||this;return e.value=r.value,e}return o(r,t),r}(n.Point),r.areaSparkline_paint=c},"./src/plugins/sparkline/sparklines/bar-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.lollipopVariSparkline_paint=r.variSparkline_paint=r.vBarSparkline_paint=r.hBarSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,i,o,u,a){r=Math.floor(r),e=Math.floor(e),i=Math.floor(i),o=Math.floor(o),a%2!=0&&(r===i?(r+=.5,i+=.5):e===o&&(e+=.5,o+=.5)),(0,n.drawLine)(t,r,e,i,o,u,a)}function o(t,r,e,i,o,u){(0,n.drawLine)(t,s(r),s(e),s(i),s(o),(0,n.isNullOrUndefined)(u)?n.BLACK_COLOR:u,1)}function u(t,r,e,i,o){var u,a,c,f,y,m=.4*i;switch(r=s(r),e=s(e),t.beginPath(),t.moveTo(r,e),u=m/2,a=(0,n.Math_sqrt)(3)*m/2,c=m/(0,n.Math_sqrt)(3),o){case 0:f=[-u,0,u],y=[a,c,a];break;case 2:f=[-u,0,u],y=[-a,-c,-a];break;case 3:f=[a,c,a],y=[-u,0,u];break;case 1:f=[-a,-c,-a],y=[-u,0,u];break;default:f=[],y=[]}f.forEach((function(n,i){t.lineTo(s(r+n),s(e+y[i]))})),t.lineTo(r,e),t.closePath(),t.fillStyle=n.WHITE_COLOR,t.fill()}function a(t,r,e,i,a,s,c){var f,y,m,l,d,h,M,v,p,g,b,F,k,_,w=e.value,D=e.colorScheme,x=e.axisVisible,H=e.barHeight,N=e.barWidth,$=5,S=5,A=!1,P=(0,n.convertFloat)(w);if(!(0,n.isNotANumber)(P)){if(M=0===t?H:N,(0,n.isNullOrUndefined)(M))v=.7;else{if((0,n.isNotANumber)(M)||M<=0)return;v=Math.min(1,M)}P>1?(P=1,A=!0):P<-1&&(P=-1,A=!0),D=(0,n.isNullOrUndefined)(D)?"grey":D,x=!!(0,n.isNullOrUndefined)(x)||x,r.save(),0===t?(p=s-2*$,g=c*v,P>=0?(A&&(f=new n.Point((0,n.createIPoint)(i+$+p-S,a+c/2))),y=new n.Rect((0,n.createIRect)(i+$,a+c*(1-v)/2,p*P,g)),m=new n.Point((0,n.createIPoint)(i+$,a+1)),l=new n.Point((0,n.createIPoint)(i+$,a+c)),d=1):(b=(0,n.Math_abs)(p*P),A&&(f=new n.Point((0,n.createIPoint)(i+$+S,a+c/2))),y=new n.Rect((0,n.createIRect)(i+s-$-b,a+c*(1-v)/2,b,g)),m=new n.Point((0,n.createIPoint)(i+s-$,a+1)),l=new n.Point((0,n.createIPoint)(i+s-$,a+c)),d=3),h=(0,n.isNullOrUndefined)(M)?c:c*v):1===t&&(F=c-2*$,k=s*v,P>=0?(_=F*P,y=new n.Rect((0,n.createIRect)(i+(1-v)/2*s,a+c-$-_,k,_)),A&&(f=new n.Point((0,n.createIPoint)(i+s/2,a+c-$-_+S)),d=0),m=new n.Point((0,n.createIPoint)(i+1,a+c-$)),l=new n.Point((0,n.createIPoint)(i+s,a+c-$))):(P=(0,n.Math_abs)(P),y=new n.Rect((0,n.createIRect)(i+(1-v)/2*s,a+$,k,F*P)),A&&(f=new n.Point((0,n.createIPoint)(i+s/2,a+$+F-S)),d=2),m=new n.Point((0,n.createIPoint)(i+1,a+$)),l=new n.Point((0,n.createIPoint)(i+s,a+$))),h=(0,n.isNullOrUndefined)(M)?s:s*v),r.beginPath(),y&&((0,n.paintRect)(r,y.x,y.y,y.width,y.height,D),(0,n.clipContext)(r,y.x,y.y,y.width,y.height)),f&&u(r,f.x,f.y,h,d),r.restore(),x&&m&&o(r,m.x,m.y,l.x,l.y),r.restore()}}function s(t){return(0,n.Math_round)(t)-.5}function c(t,r,e,n,i,o){a(0,t,r,e,n,i,o)}function f(t,r,e,n,i,o){a(1,t,r,e,n,i,o)}function y(t,r,e,i,a,s,c){var f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A=r.variance,P=r.reference,C=r.mini,O=r.maxi,j=r.mark,T=r.tickUnit,E=r.legend,R=r.colorPositive,I=r.colorNegative,B=r.vertical,G=.5,L=.5-G/2,z=5,K=n.DEFAULT_COLOR2,J=n.DEFAULT_COLOR1,U=13*c.zoomFactor,V=(0,n.convertFloat)(A);if(!((0,n.isNotANumber)(V)||(I=(0,n.isNullOrUndefined)(I)?n.RED_COLOR:I,R=(0,n.isNullOrUndefined)(R)?n.GREEN_COLOR:R,T=(0,n.isNullOrUndefined)(T)?0:T,O=(0,n.isNullOrUndefined)(O)?1:O,C=(0,n.isNullOrUndefined)(C)?-1:C,(M=!(0,n.isNullOrUndefined)(P))||(P=0),B?(f=i+s-z,y=s-2*z,m=a-4*z,l=-1):(f=e+z,y=a-2*z,m=s-4*z,l=1),E&&(p=(0,n.convertFloat)(r.variance),(0,n.isNotANumber)(p)||(b=(g=p.toString()).substr(g.indexOf(".")+1).length,d=b>=2?(100*p).toFixed(b-2)+"%":(100*p).toFixed(0)+"%")),V>O&&(V=O,v=!0),V<C&&(V=C,v=!0),P=(0,n.adjustValue)(P,O,C),v&&(h=(0,n.adjustValue)(m,60,15)),k=y/(F=(0,n.Math_abs)(O-C)),_=f+l*(0,n.Math_abs)(C-P)*k,(w=(0,n.Math_abs)(V-P)*k)>(0,n.Math_abs)(F)*k&&(w=(0,n.Math_abs)(F+C)*k),D=f+l*y,B&&_<D||!B&&_>D))){if((0,n.clipContext)(t,e,i,a,s),V>P?W(R,0,z-y,y-z,0,1,i-_,n.BOTTOM_ALIGN,n.TOP_ALIGN,_-e-a,n.LEFT_ALIGN,n.RIGHT_ALIGN,-1,(0,n.Math_abs)(O-V)*k):(w>(0,n.Math_abs)(F)*k&&(w=(0,n.Math_abs)(F+C)*k,_=f),W(I,1,-z,z,2,3,_-i-s,n.TOP_ALIGN,n.BOTTOM_ALIGN,e-_,n.RIGHT_ALIGN,n.LEFT_ALIGN,1,(0,n.Math_abs)(C-V)*k)),M&&(x=f+l*(Math.abs(C-P)*k),q(e,x,e+a,x,x,i,x,i+s)),T>0)for(t.beginPath(),H=F/T,N=0;N<=H;N++)q(e,$=f+y/H*N*l,e+.1*a,$,$,i+.9*s,$,i+s,J,J);!(0,n.isNullOrUndefined)(j)&&C<=j&&j<=O&&(t.beginPath(),S=f-(B?1:-1)*(0,n.Math_abs)(C-j)*k,q(e,S,e+.33*a,S,S,i+.66*s,S,i+s,K,K),t.fill()),t.restore()}function W(r,o,c,y,m,l,M,p,g,b,F,k,D,x){var H,N,$,S,A,P;B?(H=e+L*a,N=0===o?_-w:_,$=a*G,S=w,(0,n.paintRect)(t,H,N,$,S,r)):(H=0===o?_:_-w,N=i+L*s,$=w,S=s*G,(0,n.paintRect)(t,H,N,$,S,r)),v&&((0,n.clipContext)(t,H,N,$,S),B?u(t,e+a/2,f+c,h,m):u(t,f+y,i+s/2,h,l),t.restore()),E&&(A=void 0,P=0,v&&(P=.4*h*(0,n.Math_sqrt)(3)/2+z+2),t.save(),t.beginPath(),t.font=U+n.PX_ARIAL,t.fillStyle=n.BLACK_COLOR,B?(t.textAlign=n.CENTER_ALIGN,Y(A=U+w+M,x,r,p,g,H,N,$,S,B),t.fillText(d,e+a/2,_+D*(w-P))):(t.textBaseline=n.MIDDLE_ALIGN,Y(A=t.measureText(d).width+w+b,x,r,F,k,H,N,$,S,B),t.fillText(d,_+D*(P-w),i+s/2)),t.restore())}function Y(r,e,i,o,u,a,s,c,f,y){y?t.textBaseline=o:t.textAlign=o,r>0&&e<w&&(t.rect(a,s,c,f),t.clip(),y?t.textBaseline=u:t.textAlign=u,t.fillStyle=(0,n.getTextColor)(i))}function q(r,e,n,i,u,a,s,c,f,y){B?o(t,r,e,n,i,f):o(t,u,a,s,c,y)}}function m(t,r,e,i,o,u,a,s,c,f,y,m,l,d){var h,M,v,p=4,g=void 0;t.save(),t.beginPath(),t.rect(r,e,i,o),t.clip(),t.font=c+n.PX_ARIAL,t.fillStyle=n.BLACK_COLOR,t.fillStyle="black",f?(t.textBaseline=n.TOP_ALIGN,(g=c+(h=l<d?d:l)+u+p+d/2)>0?(t.textAlign=n.LEFT_ALIGN,y?t.fillText(s,r+i/2+d/2,m-h/2):t.fillText(s,r+i/2+d/2,m+h/2)):(t.textAlign=n.CENTER_ALIGN,y?t.fillText(s,r+i/2,m-h-d/2-c):t.fillText(s,r+i/2,m+h+d/2+p))):(t.textBaseline=n.MIDDLE_ALIGN,(g=(M=t.measureText(s).width)+l+a+p+d/2)>0?M>l+d/2?y?(t.textAlign=n.RIGHT_ALIGN,t.fillText(s,m-p,e+o/2)):(t.textAlign=n.LEFT_ALIGN,t.fillText(s,m+d/2,e+o/2)):(t.textAlign=n.CENTER_ALIGN,y?t.fillText(s,m+l/2,e+o/2+c):t.fillText(s,m-l/2,e+o/2+c)):y?(t.textAlign=n.LEFT_ALIGN,v=m+l+d/2+p,t.fillText(s,v,e+o/2)):(t.textAlign=n.RIGHT_ALIGN,v=m-l-d/2-p,t.fillText(s,v,e+o/2))),t.restore()}function l(t,r,e,n,i){t.beginPath(),t.fillStyle=i,t.arc(r,e,n,0,2*Math.PI),t.fill()}function d(t,r,e,i,o,u){if(r){var a=o/2;l(t,e+a,i+a,a,u)}else(0,n.paintRect)(t,e,i,o,o,u)}function h(t,r,e,i,o,u,a,s,c,f){var y,m,l,d;switch(u=Math.round(u),a=Math.round(a),c){case 0:a=Math.round(e+s),d=Math.round(a),l=Math.round(u+s),y=Math.round((u+l)/2),m=Math.round(a-Math.sin(n.Math_PI/3)*s);break;case 1:u=Math.round(r+i-s),l=Math.round(u),d=Math.round(a+s),y=Math.round(u+Math.sin(n.Math_PI/3)*s),m=Math.round((a+d)/2);break;case 2:a=Math.round(e+o-s),d=Math.round(a),l=Math.round(u+s),y=Math.round((u+l)/2),m=Math.round(a+Math.sin(n.Math_PI/3)*s);break;case 3:u=r+s,l=Math.round(u),d=Math.round(a+s),y=Math.round(u-Math.sin(n.Math_PI/3)*s),m=Math.round((a+d)/2)}t.beginPath(),t.moveTo(u,a),t.lineTo(y,m),t.lineTo(l,d),t.closePath(),t.fillStyle=f,t.fill()}function M(t,r,e,n,i,o,u,a,s,c,f){t.save(),h(t,r,e,n,i,o,u,a,s?c?0:2:c?1:3,f),t.restore()}function v(t,r,e,n,o,u,a,s,c,f,y,m,l,h,v){var p,g,b,F,k,_;c?(p=Math.floor(r+.5*n),g=Math.floor(s?f-y:f),b=Math.floor(m),F=Math.floor(y),k=Math.floor(p-h/2),_=Math.floor(s?g-h/2:g+F+h/2),i(t,p,g,p,g+F,u,b)):(p=Math.floor(s?f:f-y),g=Math.floor(e+.5*o),b=Math.floor(y),F=Math.floor(m),k=Math.floor(s?p+b+h/2:p-h/2),_=Math.floor(g-h/2),i(t,p,g,p+b,g,u,F)),l?M(t,r,e,n,o,k,_,h,c,s,u):c?d(t,v,k,s?_:_-=h,h,a):d(t,v,s?k-=h:k,_,h,a)}function p(t,r,e,o,u,a,s){var c,f,y,l,d,h,M,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T=r.plannedValue,E=r.actualValue,R=r.index,I=r.absolute,B=r.reference,G=r.mini,L=r.maxi,z=r.tickUnit,K=r.legend,J=r.colorPositive,U=r.colorNegative,V=r.lollipopHeaderColor,W=r.vertical,Y=[],q="",X=.9,Z=10,Q=13*s.zoomFactor,tt=n.DEFAULT_COLOR4,rt=!1;if(!(0===T.length||0===E.length||R<0||R>=T.length||R>=E.length||G>=L||(0,n.isNotANumber)(E[R])||(0,n.isNotANumber)(T[R]))){if(U=(0,n.isNullOrUndefined)(U)?n.RED_COLOR:U,J=(0,n.isNullOrUndefined)(J)?n.GREEN_COLOR:J,z=(0,n.isNullOrUndefined)(z)?0:z,I=!(0,n.isNullOrUndefined)(I)&&I,d=!(0,n.isNullOrUndefined)(B),V=(0,n.isNullOrUndefined)(V)?n.BLACK_COLOR:V,I){for(b=0;b<T.length&&b<E.length;b++)Y.push(E[b]-T[b]);L=(0,n.getMinOrMax)(Y,!1),G=(0,n.getMinOrMax)(Y,!0),L>0&&G>0?G=0:L<0&&G<0&&(L=0),h=Y[R],B=0,d=!0}else L=(0,n.isNullOrUndefined)(L)?1:L,G=(0,n.isNullOrUndefined)(G)?-1:G,h=(E[R]-T[R])/Math.abs(T[R]),((B=(0,n.adjustValue)(B,L,G))===L&&h>B||B===G&&h<B)&&(rt=!0),(0,n.isNullOrUndefined)(T[R])&&(rt=!0);if(d||(B=0),W?(c=o+a-Z,f=a-2*Z,y=-1):(c=e+Z,f=u-2*Z,y=1),!I&&K?(F=h-B,(k=(0,n.convertFloat)(F.toString()))>0&&(q="+"),!(0,n.isNotANumber)(k)&&isFinite(k)?l=q+(l=(w=(_=k.toString()).substr(_.indexOf(".")+1).length)>=2?(100*k).toFixed(2)+"%":100*k+"%"):isFinite(k)||(l=q+k)):(h>0&&(q="+"),l=q+(l=(w=(_=(k=(0,n.convertFloat)(h)).toString()).substr(_.indexOf(".")+1).length)>=2?k.toFixed(2):k)),I?g=!1:(h>L&&(h=L,g=!0),h<G&&(h=G,g=!0)),x=f/(D=(0,n.Math_abs)(L-G)),H=c+y*(0,n.Math_abs)(G-B)*x,(N=(0,n.Math_abs)(h-B)*x*X)>(0,n.Math_abs)(D)*x&&(N=(0,n.Math_abs)(D+G)*x),$=c+y*f,!(W&&H<$||!W&&H>$))if(I||0!==T[R]&&!rt){if((0,n.clipContext)(t,e,o,u,a),S=(0,n.Math_abs)(Math.ceil((L-B)/z)),A=(0,n.Math_abs)(Math.floor((B-G)/z)),I){if(z>5/x)if(W){for(C=1;C<=S;C++)i(t,e,O=H+z*x*C*-1*X,e+u,O,tt,1);for(C=1;C<=A;C++)i(t,e,O=H+z*x*C*1*X,e+u,O,tt,1)}else{for(C=1;C<=S;C++)i(t,j=H+z*x*C*1*X,o,j,o+a,tt,1);for(C=1;C<=A;C++)i(t,j=H+z*x*C*-1*X,o,j,o+a,tt,1)}}else if(z>0&&z<=L&&z>5/x)if(t.beginPath(),W){for(P=.1*u>10?10:.1*u,C=1;C<=S;C++)i(t,e,O=H+z*x*C*-1*X,e+P,O,tt,1);for(C=1;C<=A;C++)i(t,e,O=H+z*x*C*1*X,e+P,O,tt,1)}else{for(P=.1*a>10?10:.1*a,C=1;C<=S;C++)i(t,j=H+z*x*C*1*X,o+a-P,j,o+a,tt,1);for(C=1;C<=A;C++)i(t,j=H+z*x*C*-1*X,o+a-P,j,o+a,tt,1)}M=Math.floor(12*s.zoomFactor),(p=Math.floor(4*s.zoomFactor))%2!=0&&(p+=1),M%2!=0&&(M+=1),h>B?v(t,e,o,u,a,J,V,!0,W,H,N,p,g,M,I):(N>(0,n.Math_abs)(D)*x&&(N=(0,n.Math_abs)(D+G)*x,H=c),v(t,e,o,u,a,U,V,!1,W,H,N,p,g,M,I)),K&&(h>B?m(t,e,o,u,a,o-H,H-e-u,l,Q,W,!0,H,N,M):m(t,e,o,u,a,H-o-a,e-H,l,Q,W,!1,H,N,M)),d&&(W?i(t,e,H,e+u,H,n.BLACK_COLOR,2):i(t,H,o,H,o+a,n.BLACK_COLOR,2)),t.restore()}else W?i(t,e,H,e+u,H,n.BLACK_COLOR,2):i(t,H,o,H,o+a,n.BLACK_COLOR,2)}}r.hBarSparkline_paint=c,r.vBarSparkline_paint=f,r.variSparkline_paint=y,r.lollipopVariSparkline_paint=p},"./src/plugins/sparkline/sparklines/box-plot-sparkline.ts":function(t,r,e){var n,i,o,u,a,s;function c(t,r,e,c,f,y){var m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T,E,R,I,B,G,L,z,K,J,U,V,W,Y,q,X,Z,Q,tt,rt,et,nt,it,ot,ut,at,st,ct,ft,yt,mt,lt=r.points,dt=r.boxPlotClass,ht=r.showAverage,Mt=r.scaleStart,vt=r.scaleEnd,pt=r.acceptableStart,gt=r.acceptableEnd,bt=r.style,Ft=r.colorScheme,kt=r.vertical,_t=5,wt=(0,n.getMinOrMax)(lt,!1),Dt=(0,n.getMinOrMax)(lt,!0);if(!((0,n.isNullOrUndefined)(lt)||(lt=(0,n.fixValues)(lt)).length<=0)){for((dt=dt===n.keyword_null||typeof dt!==n.const_string?o:dt.toLocaleLowerCase())!==o&&dt!==i&&dt!==u&&dt!==a&&dt!==s&&(dt=o),m=(0,n.convertFloat)(Mt),m=(0,n.isNotANumber)(m)?Dt:m,l=(0,n.convertFloat)(vt),l=(0,n.isNotANumber)(l)?wt:l,d=(0,n.convertFloat)(pt),h=(0,n.convertFloat)(gt),Ft!==n.keyword_null&&typeof Ft===n.const_string||(Ft="#D2D2D2"),(bt===n.keyword_null||0!==bt&&1!==bt)&&(bt=0),M=n.DEFAULT_COLOR2,m>Dt&&(Ft=M,m=Dt),l<wt&&(Ft=M,l=wt),(0,n.clipContext)(t,e,c,f,y),t.lineWidth=2,p=(v=(0,n.getPlotRect)(e,c,f,y,_t,y-2*_t,kt)).left,g=v.width,b=v.top,F=v.height,k=kt?-1:1,_=r.perc02,w=r.perc09,D=r.perc10,x=r.perc90,H=r.perc91,N=r.perc98,$=r.q1,P=Dt,C=wt,O=1.5*(A=(S=r.q3)-$),j=1.5*A,T=r.stDev,E=(0,n.getSum)(lt)/(0,n.Math_max)(1,lt.length),R=0,I=0,B=b+.1*F,G=.7*F,L=(0,n.Math_abs)(l-m),z=0,K=lt.length;z<K;z++)(J=lt[z])<$&&J>=$-1.5*A&&J-($-1.5*A)<O&&(O=J-($-1.5*A),P=J),J>S&&J<=S+1.5*A&&S+1.5*A-J<j&&(j=S+1.5*A-J,C=J),U=!1,R=p+k*(g*((J-m)/L)),dt===u&&(J<=$-1.5*A||J>=S+1.5*A)&&(U=!0,I=J<=$-3*A||J>=S+3*A?0:1),dt===i&&(J<=_||J>=N)&&(U=!0,I=1),dt===s&&(J<=E-2*T||J>=E+2*T)&&(U=!0,I=J<=E-3*T||J>=E+3*T?0:1),V=n.DEFAULT_COLOR1,U&&(1===bt?1===I?Ht(.2,.8,R,V):Ht(.3,.7,R,V):((W=.1*F)<2&&(W=2),t.beginPath(),t.strokeStyle=V,Y=b+.45*F,q=R,t.arc(kt?Y:q,kt?q:Y,W/2,0,2*Math.PI),t.stroke()));switch((m>d||l<h)&&(Ft="#C0FF00"),(d=(0,n.Math_max)(m,d))>(h=(0,n.Math_min)(l,h))?Ft=M:d<h&&(X=p+k*(g*((d-m)/L)),Z=p+k*(g*((h-m)/L)),Q=b+.9*F,(0,n.drawLines)(t,kt,Q,X,Q,Z,X,Q,Z,Q,n.DEFAULT_COLOR3)),tt=p+k*(g*(($-m)/L)),rt=(0,n.Math_abs)(p+k*(g*((S-m)/L))-tt),nt=p+k*(g*(((et=r.median)-m)/L)),dt){case i:ut=_,at=N;break;case u:ut=P,at=C;break;case s:tt=p+k*(g*((E-T-m)/L)),rt=(0,n.Math_abs)(p+k*(g*((E+T-m)/L))-tt),nt=p+k*(g*((E-m)/L)),ut=(st=E-2*T)>m?st:Dt,at=(st=E+2*T)<l?st:wt,ht=!1;break;default:ut=Dt,at=wt}it=p+k*(g*((ut-m)/L)),ot=p+k*(g*((at-m)/L)),ct=n.DEFAULT_COLOR1,1===bt?xt("#F2F2F2",B,ot,G,it-ot,it,B,ot-it,G):(ft=b+.45*F,(0,n.drawLines)(t,kt,ft,it,ft,ot,it,ft,ot,ft,ct)),xt(Ft,B,tt-rt,G,rt,tt,B,rt,G),(0,n.drawLines)(t,kt,B,nt,B+G,nt,nt,B,nt,B+G,ct),0===bt&&((0,n.drawLines)(t,kt,B+.3*G,ot,B+.7*G,ot,ot,B+.3*G,ot,B+.7*G,ct),(0,n.drawLines)(t,kt,B+.3*G,it,B+.7*G,it,it,B+.3*G,it,B+.7*G,ct)),dt!==i&&dt!==a||(yt=void 0,mt=void 0,dt===i?(ut=w,at=H):(ut=D,at=x),yt=p+k*(g*((ut-m)/L)),Ht(.3,.7,mt=p+k*(g*((at-m)/L)),ct),Ht(.3,.7,yt,ct)),ht&&Ht(.2,.8,R=p+k*(g*((E-m)/L)),M),t.restore()}function xt(r,e,i,o,u,a,s,c,f){kt?(0,n.paintRect)(t,e,i,o,u,r):(0,n.paintRect)(t,a,s,c,f,r)}function Ht(r,e,i,o){(0,n.drawLines)(t,kt,B+G*r,i,B+G*e,i,i,B+G*r,i,B+G*e,o)}}Object.defineProperty(r,"__esModule",{value:!0}),r.boxPlotSparkline_paint=void 0,n=e("./src/plugins/sparkline/sparklines/common.ts"),i="7ns",o="5ns",u="tukey",a="bowley",s="sigma3",r.boxPlotSparkline_paint=c},"./src/plugins/sparkline/sparklines/bullet-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.bulletSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,i,o,u){var a,s,c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w=r.measure,D=r.target,x=r.maxi,H=r.good,N=r.bad,$=r.forecast,S=r.tickUnit,A=r.colorScheme,P=r.vertical,C=5,O=r.measureColor,j=r.targetColor,T=r.maxiColor,E=r.goodColor,R=r.badColor,I=r.forecastColor,B=r.allowMeasureOverMaxi,G=r.barSize;if(!((0,n.isNullOrUndefined)(x)||x<0)&&((0,n.isNullOrUndefined)(G)||!((0,n.isNotANumber)(G)||G<=0))){if(G>1&&(G=1),w=(0,n.isNullOrUndefined)(w)||w<0?0:w,H=(0,n.isNullOrUndefined)(H)||H<0?0:H,N=(0,n.isNullOrUndefined)(N)||N<0?0:N,D=(0,n.isNullOrUndefined)(D)?0:D,$=(0,n.isNullOrUndefined)($)?0:$,S=(0,n.isNullOrUndefined)(S)?0:S,A=(0,n.isNullOrUndefined)(A)?"#A0A0A0":A,a=(0,n.isNullOrUndefined)(O)?"#252525":O,w>x&&!B&&(w=x,a=n.DEFAULT_COLOR2),H>x&&(H=x,a=n.DEFAULT_COLOR2),N>x&&(N=x,a=n.DEFAULT_COLOR2),D>x&&(D=0,a=n.DEFAULT_COLOR2),$>x&&($=x,a=n.DEFAULT_COLOR2),s=(0,n.getPlotRect)(e,i,o,u,C,u-2*C,P),c=s.left,f=s.width,t.save(),y=(0,n.isNullOrUndefined)(G)?.2:(1-G)/2,m=(0,n.isNullOrUndefined)(G)?.6:G,l=B?(0,n.Math_max)(x,w):x,L((0,n.isNullOrUndefined)(T)?(0,n.getLighterColor)(A,1.66):T,x,l,y,m),L((0,n.isNullOrUndefined)(E)?(0,n.getLighterColor)(A,1.33):E,H,l,y,m),L((0,n.isNullOrUndefined)(R)?A:R,N,l,y,m),d=.25*G/.6,L(a,w,l,h=(0,n.isNullOrUndefined)(G)?.375:(1-d)/2,M=(0,n.isNullOrUndefined)(G)?.25:d),$>0&&(v=c,(p=f*($/l))>f&&(p=f),g=(0,n.isNullOrUndefined)(G)?3:3*G/.6,(0,n.drawLines)(t,P,e+.5*o,v,e+.5*o,v-p,v,i+.5*u,v+p,i+.5*u,(0,n.isNullOrUndefined)(I)?"#3690BF":I,g)),D>0&&(b=(0,n.Math_round)(c-(P?1:-1)*f*(D/l))-.5,(0,n.drawLines)(t,P,e+o*y,b,e+o*(1-y),b,b,i+u*y,b,i+u*(1-y),(0,n.isNullOrUndefined)(j)?n.DEFAULT_COLOR2:j,1)),S>0)for(F=(0,n.Math_floor)(l/S),k=void 0,_=0;_<=F;_++)k=(0,n.Math_round)(c-f/l*S*(P?1:-1)*_)-.5,(0,n.drawLines)(t,P,e,k,e+.05*o,k,k,i+u,k,i+.95*u,n.DEFAULT_COLOR3,1);t.restore()}function L(r,a,s,y,m){var l,d,h;t.fillStyle=r,l=c,(d=f*(a/s))>f&&!B&&(d=f),h=P?new n.Rect((0,n.createIRect)(e+o*y,l-d,o*m,d)):new n.Rect((0,n.createIRect)(l,i+u*y,d,u*m)),t.fillRect(h.x,h.y,h.width,h.height)}}r.bulletSparkline_paint=i},"./src/plugins/sparkline/sparklines/calendar-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.yearSparkline_paint=r.monthSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r){switch(r){case 2:var e;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 o(t,r,e){var i,o,u,a,s,c;return t<0&&(t=0),t>1&&(t=1),i=(0,n.parseColor)(r),o=(0,n.parseColor)(e),u=i.a*(1-t)+o.a*t,a=i.r*(1-t)+o.r*t+"",s=i.g*(1-t)+o.g*t+"",c=i.b*(1-t)+o.b*t+"","rgba("+parseInt(a,10)+","+parseInt(s,10)+","+parseInt(c,10)+","+(0,n.convertFloat)(u/255+"")+")"}function u(t,r,e){return t===r&&t===e?1:t<=r?0:t>=e?1:(t-r)/(e-r)}function a(t,r,e,n,i,a){var s=(a+i)/2;return i<=n&&n<=s?o(u(n,i,s),t,r):o(u(n,s,a),r,e)}function s(t){var r=n.NUMBER_MAX_VALUE,e=-n.NUMBER_MAX_VALUE;return t.forEach((function(t){t!==n.keyword_null&&t!==n.keyword_undefined&&(r>t&&(r=t),e<t&&(e=t))})),{min:r,max:e}}function c(t,r,e,i,o,u,c){var f,y,m;i?t.forEach((function(t,o){0!==t&&t!==n.keyword_null&&t!==n.keyword_undefined&&(r[e+o]=i[o]||r[e+o])})):(f=s(t),y=f.min,m=f.max,t.forEach((function(t,i){0!==t&&t!==n.keyword_null&&t!==n.keyword_undefined&&(r[e+i]=a(o,u,c,t,y,m))})))}function f(t,r,e,n,o,u){var a,s,f,y,m=r.year,l=r.month,d=r.values,h=r.emptyColor||"lightgray",M=r.startColor,v=r.middleColor,p=r.endColor,g="white",b=6,F=7,k=2,_=(o-(b+1)*k)/b,w=(u-(F+1)*k)/F,D=[],x=new Date(m,l-1,1).getDay();for(a=0;a<b*F;a++)a<x?D[a]=g:a<x+i(m,l)?D[a]=h:D[a]=g;for(c(d,D,x,r.colors,M,v,p),t.save(),t.rect(e,n,o,u),t.clip(),t.beginPath(),s=0,f=0;f<b;f++)for(y=0;y<F;y++)t.fillStyle=D[s],s++,t.fillRect(e+f*_+(f+1)*k,n+y*w+(y+1)*k,_,w);t.restore()}function y(t){var r,e=t.getFullYear(),n=t.getMonth(),o=t.getDate();for(r=1;r<n+1;r++)o+=i(e,r);return o}function m(t,r,e,o,u,a,s){var f,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j=r.year,T=r.values,E=r.emptyColor||"lightgray",R=r.startColor,I=r.middleColor,B=r.endColor,G="white",L=7,z=parseInt(366/L+"",10)+2,K=[],J=new Date(j,0,1).getDay(),U=y(new Date(j,11,31));for(f=0;f<z*L;f++)K[f]=f<J?G:f<J+U?E:G;for(c(T,K,J,r.colors,R,I,B),t.save(),t.rect(e,o,u,a),t.clip(),d=e+(l=15*(m=s.zoomFactor)),h=o,M=u-l,v=a,t.save(),t.translate(e+l/2,h+v),t.rotate(-Math.PI/2),t.font=13*m+n.PX_ARIAL,t.fillStyle="black",t.textBaseline="middle",t.textAlign="center",t.fillText(j+"",v/2,0),t.restore(),g=(M-(z+1)*(p=2))/z,b=(v-(L+1)*p)/L,F=0,D=[],_=0;_<z;_++)for(k=0;k<L;k++)w={x:d+_*g+(_+1)*p,y:h+k*b+(k+1)*p,w:g,h:b},D[F]=w,t.fillStyle=K[F],F++,t.fillRect(w.x,w.y,w.w,w.h);for(x=[],H={},N=0;N<12;N++)H[N]=y(new Date(j,N,1))-1+J;for($=H[11]+i(j,12)-1,F=0,_=0;_<z;_++)for(k=0;k<L;k++)J<=F&&F<J+U&&(P=H[A=(S=new Date(j,0,F-J+1)).getMonth()],w=D[F],P<=F&&F<7+P&&x.push({x1:w.x,y1:w.y-p/2,x2:w.x,y2:w.y+w.h+p/2}),F!==P&&0!==S.getDay()||x.push({x1:w.x-p/2,y1:w.y,x2:w.x+w.w+p/2+(F===P?p:0),y2:w.y}),$-7<F&&F<=$&&x.push({x1:w.x+w.w,y1:w.y-p/2,x2:w.x+w.w,y2:w.y+w.h+p/2}),F!==$&&6!==S.getDay()||x.push({x1:w.x-p/2-(F===$?p:0),y1:w.y+w.h,x2:w.x+w.w+p/2,y2:w.y+w.h})),F++;for(t.strokeStyle="black",t.lineWidth=2,C=0;C<x.length;C++)O=x[C],t.beginPath(),t.moveTo(O.x1,O.y1),t.lineTo(O.x2,O.y2),t.stroke();t.restore()}r.monthSparkline_paint=f,r.yearSparkline_paint=m},"./src/plugins/sparkline/sparklines/common.ts":function(t,r,e){var n,i,o,u;function a(t,r){return{x:t,y:r}}function s(t,r,e,n){return{x:t,y:r,width:e,height:n}}function c(t,r,e,n,i,o,u){o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,e),t.lineTo(n,i),t.stroke()}function f(t,r,e,n,i,o,u,a,s,f,y,m){r?c(t,e,n,i,o,y,m):c(t,u,a,s,f,y,m)}function y(t,e,n,i,o,u,a,s){t.save(),a&&(t.fillStyle=a),t.textBaseline=s||r.BOTTOM_ALIGN,t.beginPath(),t.font=o,t.textAlign=u,i="string"==typeof i?i:i+"",t.fillText(i,e,n),t.restore()}function m(t){return t*r.Math_PI/180}function l(t,r){var e,n,i,o=t[0],u=o&&o.value?o.value:o;for(n=1,i=t.length;n<i;n++)e=(o=t[n])&&o.value?o.value:o,(r&&u>e||!r&&u<e)&&(u=e);return u}function d(t,r){var e,n,i=0;for(e=0,n=t.length;e<n;e++)i+=r&&!r(t[e])?0:t[e];return i}function h(t,e,n,i){var o,u,a,s,c=[];for(u=0,a=0,s=t.length;u<s;u++)e?(e(t[u])?c[a]=n?n(t[u]):t[u]:c[a]=0,a++):(o=(0,r.convertFloat)(t[u]),!(0,r.isNotANumber)(o)&&isFinite(o)&&(c[a]=o,a++));return i&&i(c),c}function M(t,e,n,i,o,u){var a=(0,r.Math_round)(e+i),s=(0,r.Math_round)(n+o);e=(0,r.Math_round)(e),n=(0,r.Math_round)(n),i=(0,r.Math_round)(a-e),o=(0,r.Math_round)(s-n),t.beginPath(),t.fillStyle=u,t.fillRect(e,n,i,o),t.fill()}function v(t,r,e,n,i){t.save(),t.rect(r,e,n,i),t.clip()}function p(t){return n.ft.rp((0,r.parseColor)(t))<127.5?r.WHITE_COLOR:r.BLACK_COLOR}function g(t,e,n,i,o,u,a,s){var c,f,y,m,l=s;return(0,r.isNullOrUndefined)(s)&&(l=o),a?(c=e+l+u,y=i-2*l,f=t+o,m=n-2*o):(c=t+l,y=n-2*l,f=e+o,m=i-2*o),{left:c,top:f,width:y,height:m}}function b(t,e,n){return t=(0,r.Math_min)(t,e),t=(0,r.Math_max)(t,n)}function F(t,e){var n,i,o,u;return!(!t||!e)&&(n=(0,r.Math_max)(t.x+t.width,e.x+e.width),i=(0,r.Math_max)(t.y+t.height,e.y+e.height),o=(0,r.Math_min)(t.x,e.x),u=(0,r.Math_min)(t.y,e.y),n-o<=t.width+e.width&&i-u<=t.height+e.height)}Object.defineProperty(r,"__esModule",{value:!0}),r.paintRect=r.fixValues=r.getSum=r.getMinOrMax=r.angleToRadian=r.drawText=r.drawLines=r.drawLine=r.Rect=r.Point=r.createIRect=r.createIPoint=r.PX_ARIAL=r.MIDDLE_ALIGN=r.BOTTOM_ALIGN=r.TOP_ALIGN=r.CENTER_ALIGN=r.RIGHT_ALIGN=r.LEFT_ALIGN=r.RED_COLOR=r.GREEN_COLOR=r.BLUE_COLOR=r.BLACK_COLOR=r.WHITE_COLOR=r.DEFAULT_COLOR4=r.DEFAULT_COLOR3=r.DEFAULT_COLOR2=r.DEFAULT_COLOR1=r.NUMBER_MAX_VALUE=r.convertFloat=r.isNotANumber=r.const_string=r.const_undefined=r.Math_ceil=r.Math_abs=r.Math_sqrt=r.Math_pow=r.Math_round=r.Math_max=r.Math_min=r.Math_cos=r.Math_sin=r.Math_PI=r.Math_floor=r.keyword_undefined=r.keyword_null=r.colorToString=r.parseColor=r.getLighterColor=r.isNullOrUndefined=void 0,r.isRectsIntersect=r.adjustValue=r.getPlotRect=r.getTextColor=r.clipContext=void 0,n=e("./src/common/util/colorhelper.ts"),i=e("./src/common/util/types.ts"),r.isNullOrUndefined=i.lt.ht,r.getLighterColor=n.ft.YGt,r.parseColor=n.ft._,r.colorToString=n.ft.j,r.keyword_null=null,r.keyword_undefined=void 0,r.Math_floor=Math.floor,r.Math_PI=Math.PI,r.Math_sin=Math.sin,r.Math_cos=Math.cos,r.Math_min=Math.min,r.Math_max=Math.max,r.Math_round=Math.round,r.Math_pow=Math.pow,r.Math_sqrt=Math.sqrt,r.Math_abs=Math.abs,r.Math_ceil=Math.ceil,r.const_undefined="undefined",r.const_string="string",r.isNotANumber=isNaN,r.convertFloat=parseFloat,r.NUMBER_MAX_VALUE=Number.MAX_VALUE,r.DEFAULT_COLOR1="#969696",r.DEFAULT_COLOR2="#CB0000",r.DEFAULT_COLOR3="#646464",r.DEFAULT_COLOR4="#DCDCDC",r.WHITE_COLOR="white",r.BLACK_COLOR="black",r.BLUE_COLOR="blue",r.GREEN_COLOR="green",r.RED_COLOR="red",r.LEFT_ALIGN="left",r.RIGHT_ALIGN="right",r.CENTER_ALIGN="center",r.TOP_ALIGN="top",r.BOTTOM_ALIGN="bottom",r.MIDDLE_ALIGN="middle",r.PX_ARIAL="px Arial",r.createIPoint=a,r.createIRect=s,o=function(){function t(t){this.x=t.x,this.y=t.y}return t}(),r.Point=o,u=function(){function t(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}return t}(),r.Rect=u,r.drawLine=c,r.drawLines=f,r.drawText=y,r.angleToRadian=m,r.getMinOrMax=l,r.getSum=d,r.fixValues=h,r.paintRect=M,r.clipContext=v,r.getTextColor=p,r.getPlotRect=g,r.adjustValue=b,r.isRectsIntersect=F},"./src/plugins/sparkline/sparklines/gauge-kpi-sparkline.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M,v,p,g,b,F,k;function _(t,r,e,n,i,o,u){t.save(),o&&(t.strokeStyle=o),u&&(t.lineWidth=u),t.beginPath(),t.moveTo(r,e),t.lineTo(n,i),t.closePath(),t.stroke(),t.restore()}function w(t,r,e,i,o,u,a,s){var c,f,y,m,l,d,h;if(t.save(),c=[u,a],t.setLineDash)t.beginPath(),t.strokeStyle=s,t.setLineDash(c),t.stroke(),t.moveTo(r,e),t.lineTo(i,o),t.stroke();else{for(t.beginPath(),t.lineWidth=1,t.strokeStyle=s,y={x:(i-r)/(f=(0,n.Math_sqrt)((0,n.Math_pow)(i-r,2)+(0,n.Math_pow)(o-e,2))),y:(o-e)/f},m=0,l=0;m<f;)m+=d=(0,n.Math_min)(c[l%2],f-m),(h=++l%2)&&t.moveTo(r,e),r+=d*y.x,e+=d*y.y,h&&t.lineTo(r,e);t.stroke()}t.restore()}function D(t){var r,e,i=(0,n.angleToRadian)(t.minAngle-90),u=(0,n.angleToRadian)(t.maxAngle-90),a=t.minValueOption.value,s=t.maxValueOption.value,c=t.ranges,f=o,y=(u-i)/(s-a),m=[];return c.length>0&&c.forEach((function(t){r=t.start,e=t.end,m.push({start:y*(r-a)+i,end:y*(e-a)+i,color:t.color})})),m.unshift({start:i,end:u,color:f}),{paintRanges:m,fillColor:f,targetValueRadian:y*(t.targetValueOption.value-a)+i,currentValueRadian:y*(t.currentValueOption.value-a)+i,minValueRadian:i,maxValueRadian:u}}function x(t,r,e,i,o,u,a){var s,c,f,y,m,l,d,h=u.zoomFactor,M=t.currentValueOption.normalFontHeight*h,v=t.minValueOption.normalFontHeight*h,p=t.maxValueOption.normalFontHeight*h,k=t.minAngle,_=t.maxAngle,w=t.currentValueOption.normalFontWidth*h,D=(0,n.Math_abs)(k)>90||(0,n.Math_abs)(_)>90,x=(0,n.Math_abs)(k)>120||(0,n.Math_abs)(_)>120,H=F*(0,n.Math_min)(i,o);return a?(s=(0,n.Math_floor)(i/2*b),c=(0,n.Math_floor)(o*b),f=D?c/2:c,y=(0,n.Math_min)(s,f),l=(o-(D?2*y:y))/2,d=.03*y,m={x:r+i/2,y:e+o/2+(D?0:y/2),outerRadius:y,innerRadius:y*t.radiusRatio,currentValuePoint:n.keyword_undefined,enoughShowCurrentLabel:!1,enoughShowTargetLabel:!0,enoughShowMinLabel:v<l,enoughShowMaxLabel:p<l,moreThanSemiCircle:D},D?x?2*M/3<l-d-(0,n.Math_max)(p,v)&&w<i-2*H&&(m.currentValuePoint={x:m.x,y:m.y+y+d+M/2+(0,n.Math_max)(p,v)},m.enoughShowCurrentLabel=!0):2*M/3<o/2-d&&w<i-2*H&&(m.currentValuePoint={x:m.x,y:m.y+2*d+M},m.enoughShowCurrentLabel=!0):M<l-d&&w<i-2*H&&(m.currentValuePoint={x:m.x,y:m.y+M},m.enoughShowCurrentLabel=!0)):(s=(0,n.Math_floor)(i/2*g),c=(0,n.Math_floor)(o*g),f=D?c/2:c,y=(0,n.Math_min)(s,f),m={x:r+i/2,y:e+o/2+(D?0:y/2),outerRadius:y,innerRadius:y*t.radiusRatio}),m}function H(t,r,e,i){return{x:t+(0,n.Math_cos)(e)*i,y:r+(0,n.Math_sin)(e)*i}}function N(t,r){return(0,n.Math_abs)(r.x-t.x)<.01?{x:r.x,y:r.y,textAlign:n.CENTER_ALIGN}:r.x>t.x?{x:r.x+l,y:r.y,textAlign:n.LEFT_ALIGN}:r.x<t.x?{x:r.x-l,y:r.y,textAlign:n.RIGHT_ALIGN}:{x:r.x,y:r.y,textAlign:n.LEFT_ALIGN}}function $(t,r,e,o,f,l,d){var h,v,p,g,b,F,_,$,S,A,P,C,O,j,T,E,R,I,B,G,L,z,K,J,U,V,W,Y,q,X,Z,Q,tt,rt,et,nt=d.zoomFactor,it=!!(0,n.isNullOrUndefined)(r.showLabel)||r.showLabel,ot=x(r,e,o,f,l,d,it);if(!(ot.outerRadius<=0))return h={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},v=ot.innerRadius,p=ot.outerRadius,g=ot.currentValuePoint,b=ot.moreThanSemiCircle,F={x:ot.x,y:ot.y},$=(_=D(r)).paintRanges,S=_.fillColor,t.save(),$.forEach((function(r){t.beginPath(),t.strokeStyle=n.WHITE_COLOR,t.moveTo(F.x,F.y),t.fillStyle=r.color||S,t.arc(F.x,F.y,p,r.start,r.end,!1),t.lineTo(F.x,F.y),t.closePath(),t.fill(),t.stroke(),t.beginPath(),t.fillStyle=n.WHITE_COLOR,t.strokeStyle=n.WHITE_COLOR,t.moveTo(F.x,F.y),t.arc(F.x,F.y,v,r.start-k,r.end+k,!1),t.lineTo(F.x,F.y),t.closePath(),t.fill(),t.stroke()})),t.beginPath(),t.moveTo(F.x,F.y),t.fillStyle=n.BLACK_COLOR,t.arc(F.x,F.y,p*a,0,2*n.Math_PI,!1),t.fill(),A=H(F.x,F.y,_.targetValueRadian,v),P=H(F.x,F.y,_.targetValueRadian,p*c),w(t,A.x,A.y,P.x,P.y,y,m,i),C=H(F.x,F.y,_.currentValueRadian,p*c),(0,n.drawLine)(t,F.x,F.y,C.x,C.y,n.BLACK_COLOR,s*p),it&&(t.save(),t.beginPath(),t.textAlign=u,t.fillStyle=i,O=r.minValueOption.normalFontHeight*nt,j=r.maxValueOption.normalFontHeight*nt,T=r.minValueOption.normalFontWidth*nt,E=r.maxValueOption.normalFontWidth*nt,R=_.minValueRadian,I=_.maxValueRadian,B=r.currentValueOption.normalFontHeight*nt,G=r.currentValueOption.normalFontWidth*nt,L=void 0,z=void 0,K=void 0,ot.enoughShowCurrentLabel&&((0,n.drawText)(t,g.x,g.y,r.currentValueOption.label,r.currentValueOption.fontAfterZoom,n.CENTER_ALIGN),h.showCurrentLabel=!0,L={x:g.x-G/2,y:g.y-B,width:G,height:B}),ot.enoughShowMinLabel&&(0,n.Math_abs)((0,n.Math_cos)(R)*p)+T<f/2-M&&(J=H(F.x,F.y,_.minValueRadian,p),z={x:(U=N(F,J)).x-T,y:U.y,width:T,height:O},(0,n.isRectsIntersect)(z,L)||((0,n.drawText)(t,U.x,U.y+(0,n.Math_floor)(O),r.minValueOption.label,r.minValueOption.fontAfterZoom,n.RIGHT_ALIGN),h.showMinLabel=!0)),ot.enoughShowMaxLabel&&(0,n.Math_abs)((0,n.Math_cos)(I)*p)+E<f/2-M&&(V=H(F.x,F.y,_.maxValueRadian,p),K={x:(W=N(F,V)).x,y:W.y,width:E,height:j},(0,n.isRectsIntersect)(K,L)||((0,n.drawText)(t,W.x,W.y+(0,n.Math_floor)(j),r.maxValueOption.label,r.maxValueOption.fontAfterZoom,n.LEFT_ALIGN),h.showMaxLabel=!0)),ot.enoughShowTargetLabel&&(Y=r.targetValueOption.normalFontWidth*nt,q=r.targetValueOption.normalFontHeight*nt,X=r.targetValueOption.label,Z=p+3*q/2,P=H(F.x,F.y,_.targetValueRadian,Z),Q=N(F,P),tt=_.targetValueRadian,rt=b?(l-2*Z)/2+Z:l-(l-p)/2,(0,n.Math_abs)((0,n.Math_cos)(tt)*Z)+Y<f/2-M&&(0,n.Math_abs)((0,n.Math_sin)(tt)*Z)+q/2+M/2<rt&&(et=(0,n.Math_max)(O,j)/2,(0,n.drawText)(t,Q.x,Q.y-(tt>n.Math_PI?et:-et),X,r.targetValueOption.fontAfterZoom,Q.textAlign),h.showTargetLabel=!0)),t.restore()),t.restore(),h}function S(t,r,e,i,o,u){var a=u.zoomFactor,s=t.showLabel,c=t.minValueOption.normalFontHeight*a,f=t.maxValueOption.normalFontHeight*a,y=t.targetValueOption.normalFontHeight*a,m=t.currentValueOption.normalFontHeight*a,l=t.minValueOption.normalFontWidth*a,d=t.maxValueOption.normalFontWidth*a,h=t.targetValueOption.normalFontWidth*a,M=t.currentValueOption.normalFontWidth*a,g=(0,n.Math_floor)(o*v),b=(0,n.Math_floor)(i*p),F=.05*i,k={x:r+i*(1-p)/2,y:e+o*(v+(1-v)/2),graphWidth:b,graphHeight:g,targetValuePoint:n.keyword_undefined,currentValuePoint:n.keyword_undefined,minValuePoint:n.keyword_undefined,maxValuePoint:n.keyword_undefined};return s&&(c<(o-g)/2&&l<(i-b)/2-F&&(k.minValuePoint={x:k.x-l,y:k.y+c/3},k.enoughShowMinLabel=!0),f<(o-g)/2&&d<(i-b)/2-F&&(k.maxValuePoint={x:k.x-d,y:k.y-g+f/3},k.enoughShowMaxLabel=!0),(y<(o-g)/2||y/2<g)&&h<(i-b)/2-F-(0,n.Math_max)(l,d)&&(k.targetValuePoint={x:k.x-h-(0,n.Math_max)(l,d),y:n.keyword_undefined},k.enoughShowTargetLabel=!0),(m<(o-g)/2||m/2<g)&&M<(i-b)/2-F&&(k.currentValuePoint={x:k.x+b+F,y:n.keyword_undefined},k.enoughShowCurrentLabel=!0)),k}function A(t,r){var e,n,i=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=o,c=r.graphHeight/(u-i),f=[];return a.length>0&&a.forEach((function(t){e=t.start,n=t.end,f.push({start:r.y-c*(e-i),height:c*(n-e),color:t.color})})),f.unshift({start:r.y,height:r.graphHeight,color:s}),{paintRanges:f,fillColor:s,targetValueY:r.y-c*(t.targetValueOption.value-i),currentValueY:r.y-c*(t.currentValueOption.value-i)}}function P(t,r,e,o,u,a,s){var l,d,M,v,p,g,b,F,k,_,D,x,H=s.zoomFactor,N=r.showLabel,$=r.minValueOption,P=r.maxValueOption,C=r.currentValueOption,O=r.targetValueOption,j=S(r,e,o,u,a,s),T=j.graphWidth,E=j.graphHeight;if(!(T<=0||E<=0))return l={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},d=j.currentValuePoint,M=j.targetValuePoint,v=j.minValuePoint,p=j.maxValuePoint,g={x:j.x,y:j.y},F=(b=A(r,j)).paintRanges,k=C.normalFontHeight*H,_=O.normalFontHeight*H,D=b.targetValueY,x=b.currentValueY,t.save(),F.forEach((function(r){(0,n.paintRect)(t,g.x,r.start,T,-r.height,r.color)})),w(t,g.x-(c-1)*T,D,g.x+T,D,y,m,i),(0,n.drawLine)(t,g.x,x,g.x+T*c,x,n.BLACK_COLOR,f*E),N&&(t.save(),t.beginPath(),j.enoughShowMinLabel&&((0,n.drawText)(t,v.x,v.y,$.label,$.fontAfterZoom,n.LEFT_ALIGN,i),l.showMinLabel=!0),j.enoughShowMaxLabel&&((0,n.drawText)(t,p.x,p.y,P.label,P.fontAfterZoom,n.LEFT_ALIGN,i),l.showMaxLabel=!0),j.enoughShowTargetLabel&&!(D-o+_/2>a||D-o-h<0)&&((0,n.drawText)(t,M.x,b.targetValueY+O.normalFontHeight*H/3,O.label,O.fontAfterZoom,n.LEFT_ALIGN,i),l.showTargetLabel=!0),j.enoughShowCurrentLabel&&!(x-o+k/2>a||x-o-h<0)&&((0,n.drawText)(t,d.x,b.currentValueY+C.normalFontHeight*H/3,C.label,C.fontAfterZoom,n.LEFT_ALIGN,i),l.showCurrentLabel=!0),t.restore()),t.restore(),l}function C(t,r,e,i,o,u){var a=u.zoomFactor,s=t.showLabel,c=t.minValueOption.normalFontHeight*a,f=t.maxValueOption.normalFontHeight*a,y=t.targetValueOption.normalFontHeight*a,m=t.currentValueOption.normalFontHeight*a,l=t.minValueOption.normalFontWidth*a,d=t.maxValueOption.normalFontWidth*a,h=t.currentValueOption.normalFontWidth*a,g=t.targetValueOption.normalFontWidth*a,b=.1*(0,n.Math_min)(i,o),F=(0,n.Math_floor)(o*p),k=(0,n.Math_floor)(i*v),_={x:r+i*(1-v)/2,y:e+o*(1-p)/2,graphWidth:k,graphHeight:F,targetValuePoint:n.keyword_undefined,currentValuePoint:n.keyword_undefined,minValuePoint:n.keyword_undefined,maxValuePoint:n.keyword_undefined};return s&&((h<3*(i-k)/4||h<k)&&m<(o-F)/2-M&&(_.currentValuePoint={x:n.keyword_undefined,y:_.y-m/2},_.enoughShowCurrentLabel=!0),(g<3*(i-k)/4||g<k)&&y<(o-F)/2-(0,n.Math_max)(c,f)&&(_.targetValuePoint={x:n.keyword_undefined,y:_.y+F+(0,n.Math_max)(c,f)+y/4*3},_.enoughShowTargetLabel=!0),l<3*(i-k)/4&&c<(o-F)/2-b&&(_.minValuePoint={x:_.x-l/2,y:_.y+F+c},_.enoughShowMinLabel=!0),d<3*(i-k)/4&&f<(o-F)/2-b&&(_.maxValuePoint={x:_.x+k-d/2,y:_.y+F+f},_.enoughShowMaxLabel=!0)),_}function O(t,r){var e,n,i=t.minValueOption.value,u=t.maxValueOption.value,a=t.ranges,s=o,c=r.graphWidth/(u-i),f=[];return a.length>0&&a.forEach((function(t){e=t.start,n=t.end,f.push({start:r.x+c*(e-i),width:c*(n-e),color:t.color||s})})),f.unshift({start:r.x,width:r.graphWidth,color:s}),{paintRanges:f,fillColor:s,targetValueX:r.x+c*(t.targetValueOption.value-i),currentValueX:r.x+c*(t.currentValueOption.value-i)}}function j(t,r,e,o,u,a,s){var l,h,M,v,p,g,b,F,k,D,x,H,N=s.zoomFactor,$=r.showLabel,S=r.minValueOption,A=r.maxValueOption,P=r.currentValueOption,j=r.targetValueOption,T=C(r,e,o,u,a,s),E=T.graphWidth,R=T.graphHeight;if(!(E<=0||R<=0))return l={showTargetLabel:!1,showCurrentLabel:!1,showMinLabel:!1,showMaxLabel:!1},h=T.currentValuePoint,M=T.targetValuePoint,v=T.minValuePoint,p=T.maxValuePoint,g={x:T.x,y:T.y},F=(b=O(r,T)).paintRanges,k=P.normalFontWidth*N,D=j.normalFontWidth*N,x=b.targetValueX,H=b.currentValueX,t.save(),F.forEach((function(r){(0,n.paintRect)(t,r.start,g.y,r.width,R,r.color)})),w(t,x,g.y,x,g.y+R*c,y,m,i),_(t,H,g.y+R-1,H,g.y-R*(c-1)-1,n.BLACK_COLOR,E*f),$&&(t.save(),T.enoughShowMinLabel&&((0,n.drawText)(t,v.x,v.y,S.label,S.fontAfterZoom,n.LEFT_ALIGN,i),l.showMinLabel=!0),T.enoughShowMaxLabel&&((0,n.drawText)(t,p.x,p.y,A.label,A.fontAfterZoom,n.LEFT_ALIGN,i),l.showMaxLabel=!0),T.enoughShowTargetLabel&&!(x-e+D/2+d>u||x-e-D/2-d<0)&&((0,n.drawText)(t,x-j.normalFontWidth*N/2,M.y,j.label,j.fontAfterZoom,n.LEFT_ALIGN,i),l.showTargetLabel=!0),T.enoughShowCurrentLabel&&!(H-e+k/2+d>u||H-e-k/2-d<0)&&((0,n.drawText)(t,H-P.normalFontWidth*N/2,h.y,P.label,P.fontAfterZoom,n.LEFT_ALIGN,i),l.showCurrentLabel=!0),t.restore()),t.restore(),l}function T(t,r,e,n,i,o,u){t.save(),t.rect(e,n,i,o),t.clip(),0===r.gaugeType?$(t,r,e,n,i,o,u):1===r.gaugeType?P(t,r,e,n,i,o,u):2===r.gaugeType&&j(t,r,e,n,i,o,u),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.gaugeKPISparkline_paint=r.Uzt=r.Hzt=r.zzt=void 0,n=e("./src/plugins/sparkline/sparklines/common.ts"),i="grey",o="lightgrey",u="start",a=.05,s=.03,c=1.06,f=.02,y=4,m=5,l=5,d=3,h=10,M=8,v=.8,p=.25,g=.9,b=.7,F=.1,k=1/45*n.Math_PI,r.zzt=$,r.Hzt=P,r.Uzt=j,r.gaugeKPISparkline_paint=T},"./src/plugins/sparkline/sparklines/histogram-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.histogramSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,n,i,o,u,a){var s,c,f,y,m,l,d=[],h=t.length,M=0,v=u.fontPixelSize;if(o&&(M=v+3),0===h)return d;for(s=n/h,c=t[0].value,f=1;f<h;f++)c=Math.max(c,t[f].value);for(y=0;y<h;y++)m=e+i-M,(l=t[y].value/c*(i-M))<0&&(l=0),d.push({x:r+y*s+s*(1-a)/2,textX:r+y*s,y:m-l,width:s*a,textWidth:s,height:l,axis:t[y].axis});return d}function o(t,r,e,n){t.save(),t.fillStyle=e;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 u(t,r,e,n){var i,o,u,a,s;for(t.save(),i=e.fontPixelSize,o=c(e),t.textAlign="center",t.fillStyle=n,u=0;u<r.length;u++)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 a(t,r,e,i){var o,u,a,s,c,f;if("none"!==i){for(t.save(),t.lineWidth=1,t.strokeStyle=i,t.beginPath(),o=0;o<r.length;o++)a=(u=r[o]).x,s=u.y,c=u.width,0!==(f=u.height)&&0!==c&&((0,n.drawLine)(t,a,s,a+c,s),(0,n.drawLine)(t,a,s+f,a+c,s+f),r[o-1]&&r[o-1].height>=f&&1===e||(0,n.drawLine)(t,a,s,a,s+f),r[o+1]&&r[o+1].height>f&&1===e||(0,n.drawLine)(t,a+c,s,a+c,s+f));t.stroke(),t.closePath(),t.restore()}}function s(t,r,e,n,i){var o,u,a,s,c,f=!1;for(t.save(),t.font=i,u=(e-6)/(o=r.length),a=0,s=r;a<s.length;a++)if(c=s[a],t.measureText(c.axis).width>u){f=!0;break}return t.restore(),f}function c(t){return"".concat(t.fontStyle," ").concat(t.fontWeight," ").concat(t.fontSize," ").concat(t.fontFamily)}function f(t,r,e,f,y,m,l){var d,h,M,v=r.barColor,p=r.values,g=r.paintLabel,b=r.barWidth,F=r.labelFontStyle,k=r.afterZoomFontStyle,_=r.edgeColor,w=r.labelColor;(0,n.isNullOrUndefined)(F)||(m<3*(d=k.fontPixelSize)||s(t,p,y,m,c(k)))&&(g=!1),g&&(0,n.isNullOrUndefined)(F)&&(h=Math.floor(m/3>=12?12:Math.floor(m/3)),k.fontPixelSize=h,k.fontSize=h+"px",s(t,p,y,m,c(k))&&(g=!1)),o(t,M=i(p,e+3,f+3,y-6,m-6,g,k,b),v,_),a(t,M,b,_),g&&u(t,M,k,w)}r.histogramSparkline_paint=f},"./src/plugins/sparkline/sparklines/image-sparkline.ts":function(t,r){function e(t,r,e,n,i,o,u){var a,s,c,f,y,m,l,d,h;t.save(),t.rect(e,n,i,o),t.clip(),a=r.clipX,s=r.clipY,c=r.clipWidth,f=r.clipHeight,y=r.paintX,m=r.paintY,l=r.paintWidth,d=r.paintHeight,h=r.img,c>0&&f>0&&l>0&&d>0&&t.drawImage(h,a,s,c,f,y,m,l,d),t.restore()}Object.defineProperty(r,"__esModule",{value:!0}),r.imageSparkline_paint=void 0,r.imageSparkline_paint=e},"./src/plugins/sparkline/sparklines/index.ts":function(t,r,e){var n,i,o,u,a,s,c,f,y,m,l,d,h,M;Object.defineProperty(r,"__esModule",{value:!0}),r.SparklineExRenders=void 0,n=e("./src/plugins/sparkline/sparklines/accumulate-sparkline.ts"),i=e("./src/plugins/sparkline/sparklines/area-sparkline.ts"),o=e("./src/plugins/sparkline/sparklines/bar-sparkline.ts"),u=e("./src/plugins/sparkline/sparklines/box-plot-sparkline.ts"),a=e("./src/plugins/sparkline/sparklines/bullet-sparkline.ts"),s=e("./src/plugins/sparkline/sparklines/calendar-sparkline.ts"),c=e("./src/plugins/sparkline/sparklines/gauge-kpi-sparkline.ts"),f=e("./src/plugins/sparkline/sparklines/histogram-sparkline.ts"),y=e("./src/plugins/sparkline/sparklines/image-sparkline.ts"),m=e("./src/plugins/sparkline/sparklines/pie-sparkline.ts"),l=e("./src/plugins/sparkline/sparklines/progress-sparkline.ts"),d=e("./src/plugins/sparkline/sparklines/scatter-sparkline.ts"),h=e("./src/plugins/sparkline/sparklines/spread-sparkline.ts"),M=e("./src/plugins/sparkline/sparklines/stacked-sparkline.ts"),r.SparklineExRenders={PIESPARKLINE:m.pieSparkline_paint,AREASPARKLINE:i.areaSparkline_paint,SCATTERSPARKLINE:d.scatterSparkline_paint,BULLETSPARKLINE:a.bulletSparkline_paint,SPREADSPARKLINE:h.spreadSparkline_paint,STACKEDSPARKLINE:M.stackedSparkline_paint,HBARSPARKLINE:o.hBarSparkline_paint,VBARSPARKLINE:o.vBarSparkline_paint,VARISPARKLINE:o.variSparkline_paint,LOLLIPOPVARISPARKLINE:o.lollipopVariSparkline_paint,BOXPLOTSPARKLINE:u.boxPlotSparkline_paint,CASCADESPARKLINE:n.cascadeSparkline_paint,PARETOSPARKLINE:n.paretoSparkline_paint,MONTHSPARKLINE:s.monthSparkline_paint,YEARSPARKLINE:s.yearSparkline_paint,GAUGEKPISPARKLINE:c.gaugeKPISparkline_paint,HISTOGRAMSPARKLINE:f.histogramSparkline_paint,IMAGESPARKLINE:y.imageSparkline_paint,PROGRESSSPARKLINE:l.progressSparkline_paint}},"./src/plugins/sparkline/sparklines/pie-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.pieSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,i,u,a){var s,c,f,y,m,l,d=e+u/2,h=i+a/2,M=5,v=(0,n.Math_min)(u,a)/2-M,p=-.5*n.Math_PI,g=d+v*(0,n.Math_cos)(p),b=h+v*(0,n.Math_sin)(p),F=[],k=[];if(!(v<=0)){for(y=o(f=(c=(0,n.fixValues)(r.values,(function(t){return!(0,n.isNullOrUndefined)(t)&&!(0,n.isNotANumber)(t)&&isFinite(t)}),(function(t){return(0,n.Math_abs)(t)}),(function(t){1===t.length&&(t[1]=1-t[0])}))).length,r.colors),m=(0,n.getSum)(c),t.save(),l=0;l<f;l++)s=p+c[l]/m*2*n.Math_PI,t.beginPath(),t.moveTo(d,h),t.lineTo(g,b),t.arc(d,h,v,p,s,!1),t.lineTo(d,h),t.fillStyle=y[l],t.fill(),F.push(g),k.push(b),p=s,g=d+v*(0,n.Math_cos)(p),b=h+v*(0,n.Math_sin)(p);for(l=0;l<f;l++)(0,n.drawLine)(t,d,h,F[l],k[l],n.WHITE_COLOR);t.restore()}}function o(t,r){var e,i,o,u,a,s,c=[],f=r.length;if(t<=f)c=r.slice(0,t);else{for(0===f?(c.push("darkgray"),f=1):c=r.slice(0),e=[],i=void 0,o=t-f+1,u=void 0,u=0;u<f;u++)e[u]=(0,n.parseColor)(c[u]);for(u=f;u<t;u++){for(a in i=e[u%f])i.hasOwnProperty(a)&&(s=i[a],i[a]=(0,n.Math_floor)(s-s/o*(u/f)));i.a=255,c[u]=(0,n.colorToString)(i)}}return c}r.pieSparkline_paint=i},"./src/plugins/sparkline/sparklines/progress-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.progressSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/progress-sparkline/index.ts");Object.defineProperty(r,"progressSparkline_paint",{enumerable:!0,get:function(){return n.progressSparkline_paint}})},"./src/plugins/sparkline/sparklines/progress-sparkline/constants.ts":function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PROGRESS_SPARKLINE_RADIAL_TICK_LENGTH_RATIO=r.PROGRESS_SPARKLINE_RADIAL_TICK_WIDTH=r.PROGRESS_SPARKLINE_RADIAL_TICK_COUNT=r.PROGRESS_SPARKLINE_ARC_TEXT_CENTER_Y_RATIO=r.PROGRESS_SPARKLINE_RADIAL_GAP_ANGLE=r.PROGRESS_SPARKLINE_ARC_SWEEP_ANGLE=r.PROGRESS_SPARKLINE_ARC_START_ANGLE=r.PROGRESS_SPARKLINE_RADIAL_SWEEP_ANGLE=r.PROGRESS_SPARKLINE_RADIAL_START_ANGLE=r.PROGRESS_SPARKLINE_CHECKBOX_MARK_BOTTOM_RATIO=r.PROGRESS_SPARKLINE_CHECKBOX_MARK_TOP_RATIO=r.PROGRESS_SPARKLINE_CHECKBOX_MARK_RIGHT_RATIO=r.PROGRESS_SPARKLINE_CHECKBOX_MARK_MID_Y_RATIO=r.PROGRESS_SPARKLINE_CHECKBOX_MARK_MID_X_RATIO=r.PROGRESS_SPARKLINE_CHECKBOX_MARK_LEFT_RATIO=r.PROGRESS_SPARKLINE_CHECKBOX_BOX_RADIUS_RATIO=r.PROGRESS_SPARKLINE_DISCRETE_SEGMENT_RADIUS=r.PROGRESS_SPARKLINE_DISCRETE_GAP=r.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT=r.PROGRESS_SPARKLINE_RIGHT_TEXT_MIN_HEIGHT_RATIO=r.PROGRESS_SPARKLINE_RIGHT_TEXT_PREFERRED_HEIGHT_RATIO=r.PROGRESS_SPARKLINE_RIGHT_TEXT_MAX_WIDTH_RATIO=r.PROGRESS_SPARKLINE_TEXT_MEASURE_FALLBACK_WIDTH=r.PROGRESS_SPARKLINE_TEXT_FALLBACK_FONT_SIZE=r.PROGRESS_SPARKLINE_TEXT_FONT_MAX=r.PROGRESS_SPARKLINE_TEXT_FONT_MIN=r.PROGRESS_SPARKLINE_DEFAULT_ZOOM_FACTOR=r.PROGRESS_SPARKLINE_FONT_FIT_STEP=r.PROGRESS_SPARKLINE_PERCENT_SCALE=r.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL=r.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_COUNT_MIN=r.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_SPACING_MIN=r.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_SPACING_RATIO=r.PROGRESS_SPARKLINE_LINEAR_STRIPED_ALPHA=r.PROGRESS_SPARKLINE_LINEAR_STRIPED_LIGHTEN_FACTOR=r.PROGRESS_SPARKLINE_LINEAR_STRIPED_LINE_WIDTH_MIN=r.PROGRESS_SPARKLINE_LINEAR_DOTTED_GAP=r.PROGRESS_SPARKLINE_LINEAR_DOTTED_DIAMETER=r.PROGRESS_SPARKLINE_LINEAR_HATCHED_PITCH=r.PROGRESS_SPARKLINE_LINEAR_STRIPED_LINE_WIDTH=r.PROGRESS_SPARKLINE_LINEAR_STRIPED_PITCH=r.PROGRESS_SPARKLINE_CONTENT_PADDING_Y=r.PROGRESS_SPARKLINE_CONTENT_PADDING_X=r.PROGRESS_SPARKLINE_LINEAR_TEXT_PADDING=r.PROGRESS_SPARKLINE_LINEAR_TEXT_GAP=r.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_MAX=r.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_MIN=r.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_RATIO=r.PROGRESS_SPARKLINE_DEFAULT_BAND_COLOR=r.PROGRESS_SPARKLINE_DEFAULT_BAR_COLOR=void 0,r.PROGRESS_SPARKLINE_RING_TEXT_FONT_SIZE_RATIO=r.PROGRESS_SPARKLINE_ARC_TEXT_FONT_SIZE_RATIO=r.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_HEIGHT_RATIO=r.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_WIDTH_RATIO=r.PROGRESS_SPARKLINE_ARC_CENTER_Y_RATIO=r.PROGRESS_SPARKLINE_ARC_RADIUS_HEIGHT_RATIO=r.PROGRESS_SPARKLINE_ARC_BOUNDARY_INSET_STROKE_RATIO=r.PROGRESS_SPARKLINE_ARC_BOUNDARY_INSET=r.PROGRESS_SPARKLINE_RING_KNOB_INNER_DOT_RATIO=r.PROGRESS_SPARKLINE_RING_KNOB_RADIUS_RATIO=r.PROGRESS_SPARKLINE_RADIAL_TEXT_SAFE_RADIUS_RATIO=r.PROGRESS_SPARKLINE_RING_STROKE_KNOB_MIN=r.PROGRESS_SPARKLINE_RING_STROKE_KNOB_RATIO=r.PROGRESS_SPARKLINE_RING_STROKE_THICK_MIN=r.PROGRESS_SPARKLINE_RING_STROKE_THICK_RATIO=r.PROGRESS_SPARKLINE_RING_STROKE_MEDIUM_RATIO=r.PROGRESS_SPARKLINE_RADIAL_STROKE_MIN=r.PROGRESS_SPARKLINE_ARC_STROKE_MIN_DIM_RATIO=r.PROGRESS_SPARKLINE_ARC_STROKE_HEIGHT_RATIO=r.PROGRESS_SPARKLINE_RADIAL_COMPLETED_COUNT_EPSILON=r.PROGRESS_SPARKLINE_RADIAL_SEGMENT_SWEEP_RATIO=r.PROGRESS_SPARKLINE_RADIAL_PATTERN_CENTER_OFFSET_RATIO=r.PROGRESS_SPARKLINE_RADIAL_DOT_COUNT=r.PROGRESS_SPARKLINE_RADIAL_DASH_SPAN_STROKE_RATIO=r.PROGRESS_SPARKLINE_RADIAL_DASH_RATIO=r.PROGRESS_SPARKLINE_RADIAL_DASH_COUNT=void 0,r.PROGRESS_SPARKLINE_DEFAULT_BAR_COLOR="Accent 1",r.PROGRESS_SPARKLINE_DEFAULT_BAND_COLOR="Accent 1 80",r.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_RATIO=.42,r.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_MIN=4,r.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_MAX=12,r.PROGRESS_SPARKLINE_LINEAR_TEXT_GAP=6,r.PROGRESS_SPARKLINE_LINEAR_TEXT_PADDING=8,r.PROGRESS_SPARKLINE_CONTENT_PADDING_X=4,r.PROGRESS_SPARKLINE_CONTENT_PADDING_Y=3,r.PROGRESS_SPARKLINE_LINEAR_STRIPED_PITCH=6,r.PROGRESS_SPARKLINE_LINEAR_STRIPED_LINE_WIDTH=1,r.PROGRESS_SPARKLINE_LINEAR_HATCHED_PITCH=5,r.PROGRESS_SPARKLINE_LINEAR_DOTTED_DIAMETER=1.6,r.PROGRESS_SPARKLINE_LINEAR_DOTTED_GAP=4,r.PROGRESS_SPARKLINE_LINEAR_STRIPED_LINE_WIDTH_MIN=.75,r.PROGRESS_SPARKLINE_LINEAR_STRIPED_LIGHTEN_FACTOR=1.4,r.PROGRESS_SPARKLINE_LINEAR_STRIPED_ALPHA=.35,r.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_SPACING_RATIO=1.8,r.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_SPACING_MIN=2,r.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_COUNT_MIN=2,r.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL=1,r.PROGRESS_SPARKLINE_PERCENT_SCALE=100,r.PROGRESS_SPARKLINE_FONT_FIT_STEP=1,r.PROGRESS_SPARKLINE_DEFAULT_ZOOM_FACTOR=1,r.PROGRESS_SPARKLINE_TEXT_FONT_MIN=8,r.PROGRESS_SPARKLINE_TEXT_FONT_MAX=16,r.PROGRESS_SPARKLINE_TEXT_FALLBACK_FONT_SIZE=10,r.PROGRESS_SPARKLINE_TEXT_MEASURE_FALLBACK_WIDTH=16,r.PROGRESS_SPARKLINE_RIGHT_TEXT_MAX_WIDTH_RATIO=.4,r.PROGRESS_SPARKLINE_RIGHT_TEXT_PREFERRED_HEIGHT_RATIO=.92,r.PROGRESS_SPARKLINE_RIGHT_TEXT_MIN_HEIGHT_RATIO=.36,r.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT=10,r.PROGRESS_SPARKLINE_DISCRETE_GAP=2,r.PROGRESS_SPARKLINE_DISCRETE_SEGMENT_RADIUS=2,r.PROGRESS_SPARKLINE_CHECKBOX_BOX_RADIUS_RATIO=.15,r.PROGRESS_SPARKLINE_CHECKBOX_MARK_LEFT_RATIO=.22,r.PROGRESS_SPARKLINE_CHECKBOX_MARK_MID_X_RATIO=.45,r.PROGRESS_SPARKLINE_CHECKBOX_MARK_MID_Y_RATIO=.7,r.PROGRESS_SPARKLINE_CHECKBOX_MARK_RIGHT_RATIO=.78,r.PROGRESS_SPARKLINE_CHECKBOX_MARK_TOP_RATIO=.32,r.PROGRESS_SPARKLINE_CHECKBOX_MARK_BOTTOM_RATIO=.55,r.PROGRESS_SPARKLINE_RADIAL_START_ANGLE=-90,r.PROGRESS_SPARKLINE_RADIAL_SWEEP_ANGLE=360,r.PROGRESS_SPARKLINE_ARC_START_ANGLE=180,r.PROGRESS_SPARKLINE_ARC_SWEEP_ANGLE=180,r.PROGRESS_SPARKLINE_RADIAL_GAP_ANGLE=20,r.PROGRESS_SPARKLINE_ARC_TEXT_CENTER_Y_RATIO=.35,r.PROGRESS_SPARKLINE_RADIAL_TICK_COUNT=60,r.PROGRESS_SPARKLINE_RADIAL_TICK_WIDTH=1.5,r.PROGRESS_SPARKLINE_RADIAL_TICK_LENGTH_RATIO=.5,r.PROGRESS_SPARKLINE_RADIAL_DASH_COUNT=21,r.PROGRESS_SPARKLINE_RADIAL_DASH_RATIO=.66,r.PROGRESS_SPARKLINE_RADIAL_DASH_SPAN_STROKE_RATIO=1.5,r.PROGRESS_SPARKLINE_RADIAL_DOT_COUNT=32,r.PROGRESS_SPARKLINE_RADIAL_PATTERN_CENTER_OFFSET_RATIO=.5,r.PROGRESS_SPARKLINE_RADIAL_SEGMENT_SWEEP_RATIO=.56,r.PROGRESS_SPARKLINE_RADIAL_COMPLETED_COUNT_EPSILON=1e-6,r.PROGRESS_SPARKLINE_ARC_STROKE_HEIGHT_RATIO=.18,r.PROGRESS_SPARKLINE_ARC_STROKE_MIN_DIM_RATIO=.16,r.PROGRESS_SPARKLINE_RADIAL_STROKE_MIN=6,r.PROGRESS_SPARKLINE_RING_STROKE_MEDIUM_RATIO=.13,r.PROGRESS_SPARKLINE_RING_STROKE_THICK_RATIO=.18,r.PROGRESS_SPARKLINE_RING_STROKE_THICK_MIN=8,r.PROGRESS_SPARKLINE_RING_STROKE_KNOB_RATIO=.06,r.PROGRESS_SPARKLINE_RING_STROKE_KNOB_MIN=3,r.PROGRESS_SPARKLINE_RADIAL_TEXT_SAFE_RADIUS_RATIO=.75,r.PROGRESS_SPARKLINE_RING_KNOB_RADIUS_RATIO=1.1,r.PROGRESS_SPARKLINE_RING_KNOB_INNER_DOT_RATIO=.45,r.PROGRESS_SPARKLINE_ARC_BOUNDARY_INSET=1,r.PROGRESS_SPARKLINE_ARC_BOUNDARY_INSET_STROKE_RATIO=.15,r.PROGRESS_SPARKLINE_ARC_RADIUS_HEIGHT_RATIO=.52,r.PROGRESS_SPARKLINE_ARC_CENTER_Y_RATIO=.58,r.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_WIDTH_RATIO=1.7,r.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_HEIGHT_RATIO=.9,r.PROGRESS_SPARKLINE_ARC_TEXT_FONT_SIZE_RATIO=.55,r.PROGRESS_SPARKLINE_RING_TEXT_FONT_SIZE_RATIO=.42},"./src/plugins/sparkline/sparklines/progress-sparkline/definitions.ts":function(t,r,e){var n,i;function o(t){return t.modeDefinition.bucket===i.ProgressVisualBucket.barContinuous}function u(t){return t.modeDefinition.bucket===i.ProgressVisualBucket.barDiscrete}function a(t){return t.modeDefinition.bucket===i.ProgressVisualBucket.ring}function s(t){return t.modeDefinition.bucket===i.ProgressVisualBucket.arc}function c(t){switch(t){case i.BarContinuousDecoration.none:return{capStyle:i.ProgressSparklineBarCapStyle.round,progressDecoration:i.ProgressSparklineBarProgressDecoration.none,trackDecoration:i.ProgressSparklineBarTrackDecoration.none};case i.BarContinuousDecoration.striped:return{capStyle:i.ProgressSparklineBarCapStyle.round,progressDecoration:i.ProgressSparklineBarProgressDecoration.striped,trackDecoration:i.ProgressSparklineBarTrackDecoration.none};case i.BarContinuousDecoration.hatched:return{capStyle:i.ProgressSparklineBarCapStyle.square,progressDecoration:i.ProgressSparklineBarProgressDecoration.none,trackDecoration:i.ProgressSparklineBarTrackDecoration.hatched};case i.BarContinuousDecoration.dottedTrack:return{capStyle:i.ProgressSparklineBarCapStyle.square,progressDecoration:i.ProgressSparklineBarProgressDecoration.none,trackDecoration:i.ProgressSparklineBarTrackDecoration.dotted}}}function f(t){switch(t){case i.BarDiscreteDecoration.segmented:return{discreteStyle:i.ProgressSparklineBarDiscreteStyle.segmented};case i.BarDiscreteDecoration.bubble:return{discreteStyle:i.ProgressSparklineBarDiscreteStyle.bubble};case i.BarDiscreteDecoration.checkbox:return{discreteStyle:i.ProgressSparklineBarDiscreteStyle.checkbox}}}function y(t){switch(t){case i.RingDecoration.none:return{strokePattern:i.ProgressSparklineRingStrokePattern.solid,isGap:!1,isThick:!1,overlay:i.ProgressSparklineRingOverlay.none};case i.RingDecoration.gap:return{strokePattern:i.ProgressSparklineRingStrokePattern.solid,isGap:!0,isThick:!1,overlay:i.ProgressSparklineRingOverlay.none};case i.RingDecoration.thick:return{strokePattern:i.ProgressSparklineRingStrokePattern.solid,isGap:!1,isThick:!0,overlay:i.ProgressSparklineRingOverlay.none};case i.RingDecoration.ticks:return{strokePattern:i.ProgressSparklineRingStrokePattern.ticks,isGap:!1,isThick:!1,overlay:i.ProgressSparklineRingOverlay.none};case i.RingDecoration.dash:return{strokePattern:i.ProgressSparklineRingStrokePattern.dash,isGap:!1,isThick:!1,overlay:i.ProgressSparklineRingOverlay.none};case i.RingDecoration.knob:return{strokePattern:i.ProgressSparklineRingStrokePattern.solid,isGap:!1,isThick:!1,overlay:i.ProgressSparklineRingOverlay.knob};case i.RingDecoration.dots:return{strokePattern:i.ProgressSparklineRingStrokePattern.dots,isGap:!1,isThick:!1,overlay:i.ProgressSparklineRingOverlay.none}}}Object.defineProperty(r,"__esModule",{value:!0}),r.getRingContinuousVisual=r.getBarDiscreteVisual=r.getBarContinuousVisual=r.isArcNormalizedValue=r.isRingNormalizedValue=r.isBarDiscreteNormalizedValue=r.isBarContinuousNormalizedValue=r.modeToDefinition=void 0,i=e("./src/plugins/sparkline/sparklines/progress-sparkline/types.ts"),r.modeToDefinition=((n={})[i.ProgressSparklineMode.barContinuous]={mode:i.ProgressSparklineMode.barContinuous,bucket:i.ProgressVisualBucket.barContinuous,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarContinuousDecoration.none},n[i.ProgressSparklineMode.barStriped]={mode:i.ProgressSparklineMode.barStriped,bucket:i.ProgressVisualBucket.barContinuous,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarContinuousDecoration.striped},n[i.ProgressSparklineMode.barSegmented]={mode:i.ProgressSparklineMode.barSegmented,bucket:i.ProgressVisualBucket.barDiscrete,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarDiscreteDecoration.segmented},n[i.ProgressSparklineMode.ring]={mode:i.ProgressSparklineMode.ring,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.none},n[i.ProgressSparklineMode.arc]={mode:i.ProgressSparklineMode.arc,bucket:i.ProgressVisualBucket.arc,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.arc,decoration:i.ArcDecoration.none},n[i.ProgressSparklineMode.barHatched]={mode:i.ProgressSparklineMode.barHatched,bucket:i.ProgressVisualBucket.barContinuous,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarContinuousDecoration.hatched},n[i.ProgressSparklineMode.barBubble]={mode:i.ProgressSparklineMode.barBubble,bucket:i.ProgressVisualBucket.barDiscrete,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarDiscreteDecoration.bubble},n[i.ProgressSparklineMode.barDottedTrack]={mode:i.ProgressSparklineMode.barDottedTrack,bucket:i.ProgressVisualBucket.barContinuous,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarContinuousDecoration.dottedTrack},n[i.ProgressSparklineMode.barCheckbox]={mode:i.ProgressSparklineMode.barCheckbox,bucket:i.ProgressVisualBucket.barDiscrete,textAnchor:i.ProgressSparklineTextAnchor.right,geometry:i.ProgressSparklineGeometry.bar,decoration:i.BarDiscreteDecoration.checkbox},n[i.ProgressSparklineMode.ringGap]={mode:i.ProgressSparklineMode.ringGap,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.gap},n[i.ProgressSparklineMode.ringThick]={mode:i.ProgressSparklineMode.ringThick,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.thick},n[i.ProgressSparklineMode.ringTicks]={mode:i.ProgressSparklineMode.ringTicks,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.ticks},n[i.ProgressSparklineMode.ringDash]={mode:i.ProgressSparklineMode.ringDash,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.dash},n[i.ProgressSparklineMode.ringDots]={mode:i.ProgressSparklineMode.ringDots,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.dots},n[i.ProgressSparklineMode.ringKnob]={mode:i.ProgressSparklineMode.ringKnob,bucket:i.ProgressVisualBucket.ring,textAnchor:i.ProgressSparklineTextAnchor.center,geometry:i.ProgressSparklineGeometry.ring,decoration:i.RingDecoration.knob},n),r.isBarContinuousNormalizedValue=o,r.isBarDiscreteNormalizedValue=u,r.isRingNormalizedValue=a,r.isArcNormalizedValue=s,r.getBarContinuousVisual=c,r.getBarDiscreteVisual=f,r.getRingContinuousVisual=y},"./src/plugins/sparkline/sparklines/progress-sparkline/index.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.progressSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/progress-sparkline/paint.ts");Object.defineProperty(r,"progressSparkline_paint",{enumerable:!0,get:function(){return n.progressSparkline_paint}})},"./src/plugins/sparkline/sparklines/progress-sparkline/paint.ts":function(t,r,e){var n,i,o,u;function a(t){var r,e=y(t);return Number.isFinite(e)&&e===(0,n.Math_floor)(e)?(r=e,o.modeToDefinition[r]?r:null):null}function s(t,r,e){var i,o=typeof t===n.const_string&&t?t:r;if(e&&"function"==typeof e.getColor)try{if(typeof(i=e.getColor(o))===n.const_string&&i)return i}catch(t){}return o}function c(t,r){var e=s(t&&t.barColor,i.PROGRESS_SPARKLINE_DEFAULT_BAR_COLOR,r),n=s(t&&t.bandColor,i.PROGRESS_SPARKLINE_DEFAULT_BAND_COLOR,r);return{barColor:e,bandColor:n}}function f(t){return(0,n.isNullOrUndefined)(t)||""===t}function y(t){if("number"==typeof t)return t;if("string"==typeof t){var r=t.trim();return""===r?NaN:Number(r)}return NaN}function m(t){if(f(t))return 0;var r=y(t);return Number.isFinite(r)?r<0?0:r>1?1:r:null}function l(t){if(f(t))return!0;if("boolean"==typeof t)return t;if("number"==typeof t)return Number.isFinite(t)?0!==t:null;if("string"==typeof t){var r=t.trim().toUpperCase();if("TRUE"===r)return!0;if("FALSE"===r)return!1}return null}function d(t){return(0,n.Math_round)((0,n.adjustValue)(t,1,0)*i.PROGRESS_SPARKLINE_PERCENT_SCALE)+"%"}function h(t,r,e){var o=0;if(t&&r)try{o=t.measureText(r).width}catch(t){o=0}return(0,n.Math_max)(o,i.PROGRESS_SPARKLINE_TEXT_MEASURE_FALLBACK_WIDTH*e)}function M(t,r){var e=(0,n.Math_max)(t.width,0),o=(0,n.Math_max)(t.height,0),u=(0,n.Math_min)(i.PROGRESS_SPARKLINE_CONTENT_PADDING_X*r,(0,n.Math_max)(e/2,0)),a=(0,n.Math_min)(i.PROGRESS_SPARKLINE_CONTENT_PADDING_Y*r,(0,n.Math_max)(o/2,0));return(0,n.createIRect)(t.x+u,t.y+a,(0,n.Math_max)(e-2*u,0),(0,n.Math_max)(o-2*a,0))}function v(t,r,e,o){var a,s,c,f,y=R(o),m=M(e,y),l=(0,n.createIRect)(m.x,m.y,m.width,m.height),d=(0,n.createIRect)(m.x,m.y,0,0),v=i.PROGRESS_SPARKLINE_LINEAR_TEXT_GAP*y,p=i.PROGRESS_SPARKLINE_LINEAR_TEXT_PADDING*y;return r.showValue&&r.modeDefinition.textAnchor===u.ProgressSparklineTextAnchor.right&&m.width>0?(a=h(t,r.text,y),s=(0,n.Math_min)(m.width*i.PROGRESS_SPARKLINE_RIGHT_TEXT_MAX_WIDTH_RATIO,a+p),f=(c=(0,n.Math_max)(m.width-s-v,0))>0?v:0,l=(0,n.createIRect)(m.x,m.y,c,m.height),d=(0,n.createIRect)(m.x+c+f,m.y,(0,n.Math_max)(m.width-c-f,0),m.height)):r.showValue&&(d=(0,n.createIRect)(m.x,m.y,m.width,m.height)),{graphicRect:l,textRect:d}}function p(t,r,e,o){return r<=0||e<=0?0:t.geometry===u.ProgressSparklineGeometry.arc?(0,n.Math_max)((0,n.Math_min)(e*i.PROGRESS_SPARKLINE_ARC_STROKE_HEIGHT_RATIO,r*i.PROGRESS_SPARKLINE_ARC_STROKE_MIN_DIM_RATIO),i.PROGRESS_SPARKLINE_RADIAL_STROKE_MIN*o):t.decoration===u.RingDecoration.thick?(0,n.Math_max)(r*i.PROGRESS_SPARKLINE_RING_STROKE_THICK_RATIO,i.PROGRESS_SPARKLINE_RING_STROKE_THICK_MIN*o):t.decoration===u.RingDecoration.knob?(0,n.Math_max)(r*i.PROGRESS_SPARKLINE_RING_STROKE_KNOB_RATIO,i.PROGRESS_SPARKLINE_RING_STROKE_KNOB_MIN*o):(0,n.Math_max)(r*i.PROGRESS_SPARKLINE_RING_STROKE_MEDIUM_RATIO,i.PROGRESS_SPARKLINE_RADIAL_STROKE_MIN*o)}function g(t,r){return(0,n.Math_max)(t*i.PROGRESS_SPARKLINE_RING_KNOB_RADIUS_RATIO,i.PROGRESS_SPARKLINE_RING_STROKE_KNOB_MIN*r)}function b(t,r){return(0,n.Math_max)(t-r*i.PROGRESS_SPARKLINE_RADIAL_TEXT_SAFE_RADIUS_RATIO,0)}function F(t){return t.geometry===u.ProgressSparklineGeometry.arc?{startAngle:i.PROGRESS_SPARKLINE_ARC_START_ANGLE,sweepAngle:i.PROGRESS_SPARKLINE_ARC_SWEEP_ANGLE}:t.decoration===u.RingDecoration.gap?{startAngle:i.PROGRESS_SPARKLINE_RADIAL_START_ANGLE+i.PROGRESS_SPARKLINE_RADIAL_GAP_ANGLE/2,sweepAngle:i.PROGRESS_SPARKLINE_RADIAL_SWEEP_ANGLE-i.PROGRESS_SPARKLINE_RADIAL_GAP_ANGLE}:{startAngle:i.PROGRESS_SPARKLINE_RADIAL_START_ANGLE,sweepAngle:i.PROGRESS_SPARKLINE_RADIAL_SWEEP_ANGLE}}function k(t,r){var e,n,i,u=a(t&&t.mode);return null===u?null:(e=o.modeToDefinition[u],null===(n=m(t&&t.progress))||null===(i=l(t&&t.showValue))?null:{modeDefinition:e,progress:n,showValue:i,text:d(n),colors:c(t,r)})}function _(t,r,e,o){var u=R(o),a=v(t,r,e,o),s=a.graphicRect,c=(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_MIN,(0,n.Math_min)(s.height*i.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_RATIO,i.PROGRESS_SPARKLINE_LINEAR_TRACK_HEIGHT_MAX*u));return c=(0,n.Math_min)(c,s.height),{graphicRect:s,textRect:a.textRect,trackHeight:c,trackRadius:c/2,discreteGap:i.PROGRESS_SPARKLINE_DISCRETE_GAP*u,progressLength:s.width*r.progress,completedDiscreteSteps:(0,n.Math_round)(r.progress*i.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT)}}function w(t,r,e,i){var o=R(i),u=v(t,r,e,i),a=u.graphicRect,s=(0,n.Math_min)(a.width,a.height),c=p(r.modeDefinition,s,a.height,o),f=F(r.modeDefinition);return{graphicRect:a,center:(0,n.createIPoint)(a.x+a.width/2,a.y+a.height/2),minDim:s,radialStroke:c,radialStartAngle:f.startAngle,radialSweepAngle:f.sweepAngle}}function D(t){var r=(0,n.Math_max)((0,n.Math_min)(t.trackHeight,t.graphicRect.height),0),e=(0,n.createIRect)(t.graphicRect.x,t.graphicRect.y+(t.graphicRect.height-r)/2,(0,n.Math_max)(t.graphicRect.width,0),r),i=(0,n.Math_min)((0,n.Math_max)(t.progressLength,0),e.width),o=(0,n.createIRect)(e.x,e.y,i,e.height);return{trackRect:e,completedRect:o,completedWidth:i}}function x(t,r,e,n){e.trackRect.width<=0||e.trackRect.height<=0||(N(t,e.trackRect.x,e.trackRect.y,e.trackRect.width,e.trackRect.height,n,r.colors.bandColor),e.completedWidth>0&&N(t,e.completedRect.x,e.completedRect.y,e.completedRect.width,e.completedRect.height,n,r.colors.barColor))}function H(t,r,e,i,o,u){var a=(0,n.Math_max)(0,(0,n.Math_min)(u,i/2,o/2));a<=0?t.rect(r,e,i,o):(t.moveTo(r+a,e),t.lineTo(r+i-a,e),t.arcTo(r+i,e,r+i,e+a,a),t.lineTo(r+i,e+o-a),t.arcTo(r+i,e+o,r+i-a,e+o,a),t.lineTo(r+a,e+o),t.arcTo(r,e+o,r,e+o-a,a),t.lineTo(r,e+a),t.arcTo(r,e,r+a,e,a),t.closePath())}function N(t,r,e,n,i,o,u){n<=0||i<=0||(t.beginPath(),H(t,r,e,n,i,o),t.fillStyle=u,t.fill())}function $(t,r,e,n,i){t.beginPath(),t.rect(r,e,n,i),t.clip()}function S(t,r,e,o,a,s){var c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,N,S,A;if(!(e.trackRect.width<=0||e.trackRect.height<=0)){if(c=R(s),t.save(),t.beginPath(),H(t,e.trackRect.x,e.trackRect.y,e.trackRect.width,e.trackRect.height,o),t.clip(),a===u.ProgressSparklineBarDecoration.stripedProgress){if(e.completedWidth<=0)return void t.restore();for(f=(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_STRIPED_PITCH*c,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL),y=(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_STRIPED_LINE_WIDTH*c,i.PROGRESS_SPARKLINE_LINEAR_STRIPED_LINE_WIDTH_MIN),m=(0,n.getLighterColor)(r.colors.barColor,i.PROGRESS_SPARKLINE_LINEAR_STRIPED_LIGHTEN_FACTOR),$(t,e.trackRect.x,e.trackRect.y,e.completedWidth,e.trackRect.height),t.beginPath(),l=-e.trackRect.height;l<=e.completedWidth+e.trackRect.height;l+=f)t.moveTo(e.trackRect.x+l,e.trackRect.y+e.trackRect.height),t.lineTo(e.trackRect.x+l+e.trackRect.height,e.trackRect.y);return t.lineWidth=y,t.strokeStyle=m,t.globalAlpha=i.PROGRESS_SPARKLINE_LINEAR_STRIPED_ALPHA,t.stroke(),void t.restore()}if((d=e.trackRect.width-e.completedWidth)>0){if(t.save(),$(t,e.trackRect.x+e.completedWidth,e.trackRect.y,d,e.trackRect.height),t.beginPath(),a===u.ProgressSparklineBarDecoration.hatchedTrack){for(h=(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_HATCHED_PITCH*c,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL),l=-e.trackRect.height;l<=d+e.trackRect.height;l+=h)M=e.trackRect.x+e.completedWidth+l,t.moveTo(M,e.trackRect.y+e.trackRect.height),t.lineTo(M+e.trackRect.height,e.trackRect.y),t.moveTo(M+e.trackRect.height,e.trackRect.y+e.trackRect.height),t.lineTo(M,e.trackRect.y);t.lineWidth=(0,n.Math_max)(c,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL),t.strokeStyle=r.colors.bandColor,t.stroke()}else{for(p=(v=(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_DOTTED_DIAMETER*c,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL))/2,g=v+(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_DOTTED_GAP*c,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL),M=e.trackRect.x+e.completedWidth+p,b=e.trackRect.x+e.trackRect.width-p,F=e.trackRect.y+p,k=e.trackRect.y+e.trackRect.height-p,_=(0,n.Math_max)(v*i.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_SPACING_RATIO,i.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_SPACING_MIN*c),D=(w=(0,n.Math_max)(i.PROGRESS_SPARKLINE_LINEAR_DOTTED_ROW_COUNT_MIN,(0,n.Math_floor)(e.trackRect.height/_)))>1?(k-F)/(w-1):0,x=0;x<w;x++)for(N=F+D*x,A=M+(S=x%2==0?0:g/2);A<=b;A+=g)t.moveTo(A+p,N),t.arc(A,N,p,0,2*n.Math_PI,!1);t.fillStyle=r.colors.bandColor,t.fill()}t.restore()}e.completedWidth>0&&(t.fillStyle=r.colors.barColor,t.fillRect(e.trackRect.x,e.trackRect.y,e.completedWidth,e.trackRect.height)),t.lineWidth=(0,n.Math_max)(c,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL),t.strokeStyle=r.colors.barColor,t.strokeRect(e.trackRect.x,e.trackRect.y,e.trackRect.width,e.trackRect.height),t.restore()}}function A(t,r){return t&&/(\d+(\.\d+)?)px/.test(t)?t.replace(/(\d+(\.\d+)?)px/,r+"px"):r+n.PX_ARIAL}function P(t,r){var e=t&&t.font;return e&&/(\d+(\.\d+)?)px/.test(e)?e:(r||i.PROGRESS_SPARKLINE_TEXT_FALLBACK_FONT_SIZE)+n.PX_ARIAL}function C(t,r,e,o,u,a){var s,c,f=i.PROGRESS_SPARKLINE_TEXT_FONT_MIN*o,y=i.PROGRESS_SPARKLINE_TEXT_FONT_MAX*o;if(e.width<=0||e.height<=0)return 0;for(s=a&&a>0?a:e.height,(c=(0,n.Math_min)((0,n.Math_max)(s*i.PROGRESS_SPARKLINE_RIGHT_TEXT_PREFERRED_HEIGHT_RATIO,e.height*i.PROGRESS_SPARKLINE_RIGHT_TEXT_MIN_HEIGHT_RATIO),y))<f&&(c=f),t.save();c>f&&(t.font=A(u,c),!(t.measureText(r).width<=e.width));)c-=i.PROGRESS_SPARKLINE_FONT_FIT_STEP;return t.restore(),(0,n.Math_max)(f,(0,n.Math_min)(c,y))}function O(t,r,e,i,o,u,a){var s,c;!r||e.width<=0||e.height<=0||(c=C(t,r,e,s=R(a),o,u))<=0||(t.save(),t.font=A(o,c),t.textAlign=n.RIGHT_ALIGN,t.textBaseline=n.MIDDLE_ALIGN,t.fillStyle=i,t.fillText(r,e.x+e.width,e.y+e.height/2),t.restore())}function j(t,r,e,n){if(!(!r.showValue||!r.text||e.textRect.width<=0||e.textRect.height<=0)){var o=P(t,i.PROGRESS_SPARKLINE_TEXT_FALLBACK_FONT_SIZE);O(t,r.text,e.textRect,r.colors.barColor,o,e.trackHeight,n)}}function T(t,r){return r.capStyle===u.ProgressSparklineBarCapStyle.square?0:t.trackRadius}function E(t,r,e,n){var i,a,s;e.graphicRect.width>0&&e.graphicRect.height>0&&(i=(0,o.getBarContinuousVisual)(r.modeDefinition.decoration),a=D(e),s=T(e,i),i.trackDecoration===u.ProgressSparklineBarTrackDecoration.hatched?S(t,r,a,s,u.ProgressSparklineBarDecoration.hatchedTrack,n):i.trackDecoration===u.ProgressSparklineBarTrackDecoration.dotted?S(t,r,a,s,u.ProgressSparklineBarDecoration.dottedTrack,n):x(t,r,a,s),i.progressDecoration===u.ProgressSparklineBarProgressDecoration.striped&&S(t,r,a,s,u.ProgressSparklineBarDecoration.stripedProgress,n)),j(t,r,e,n)}function R(t){return t&&t.zoomFactor>0?t.zoomFactor:i.PROGRESS_SPARKLINE_DEFAULT_ZOOM_FACTOR}function I(t){var r=(0,n.Math_max)((i.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT-1)*t.discreteGap,0);return(0,n.Math_max)((t.graphicRect.width-r)/i.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT,0)}function B(t,r,e,o){var u,a,s,c,f,y,m=R(o),l=I(e);if(!(l<=0||e.graphicRect.height<=0))for(u=(0,n.Math_min)(e.trackHeight,e.graphicRect.height),a=e.graphicRect.y+(e.graphicRect.height-u)/2,s=i.PROGRESS_SPARKLINE_DISCRETE_SEGMENT_RADIUS*m,c=e.graphicRect.x,f=0;f<i.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT;f++)N(t,c,a,l,u,s,y=f<e.completedDiscreteSteps?r.colors.barColor:r.colors.bandColor),c+=l+e.discreteGap}function G(t,r,e,o){var u,a,s,c,f,y,m,l=R(o),d=I(e),h=(0,n.Math_min)(d,e.graphicRect.height);if(!(h<=0))for(a=(u=h)/2,s=(0,n.Math_max)(i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL,l),c=e.graphicRect.y+e.graphicRect.height/2,f=e.graphicRect.x,y=0;y<i.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT;y++)m=f+d/2,t.beginPath(),t.arc(m,c,a,0,2*n.Math_PI),y<e.completedDiscreteSteps?(t.fillStyle=r.colors.barColor,t.fill()):(t.lineWidth=s,t.strokeStyle=r.colors.bandColor,t.stroke()),f+=d+e.discreteGap}function L(t,r,e,o,u){var a=r+o*i.PROGRESS_SPARKLINE_CHECKBOX_MARK_LEFT_RATIO,s=r+o*i.PROGRESS_SPARKLINE_CHECKBOX_MARK_MID_X_RATIO,c=e+o*i.PROGRESS_SPARKLINE_CHECKBOX_MARK_MID_Y_RATIO,f=r+o*i.PROGRESS_SPARKLINE_CHECKBOX_MARK_RIGHT_RATIO,y=e+o*i.PROGRESS_SPARKLINE_CHECKBOX_MARK_TOP_RATIO,m=e+o*i.PROGRESS_SPARKLINE_CHECKBOX_MARK_BOTTOM_RATIO;t.beginPath(),t.moveTo(a,m),t.lineTo(s,c),t.lineTo(f,y),t.lineCap="round",t.lineJoin="round",t.lineWidth=u,t.strokeStyle=n.WHITE_COLOR,t.stroke()}function z(t,r,e,o){var u,a,s,c,f,y,m,l=R(o),d=I(e),h=(0,n.Math_min)(d,e.graphicRect.height);if(!(h<=0))for(u=(0,n.Math_max)(i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL,l),a=e.graphicRect.x,s=e.graphicRect.y+(e.graphicRect.height-h)/2,c=0;c<i.PROGRESS_SPARKLINE_DISCRETE_STEP_COUNT;c++)f=a+(d-h)/2,m=(y=c<e.completedDiscreteSteps)?r.colors.barColor:r.colors.bandColor,N(t,f,s,h,h,h*i.PROGRESS_SPARKLINE_CHECKBOX_BOX_RADIUS_RATIO,m),y&&L(t,f,s,h,u),a+=d+e.discreteGap}function K(t){return(0,n.adjustValue)("number"==typeof t&&isFinite(t)?t:0,1,0)}function J(t){var r=(0,n.Math_max)(t.radialStroke,0),e=(0,n.Math_max)(t.minDim/2-r/2,0),i=t.center.x,o=t.center.y,u=b(e,r),a=u/(0,n.Math_sqrt)(2);return{centerX:i,centerY:o,radius:e,stroke:r,startRadian:(0,n.angleToRadian)(t.radialStartAngle),sweepRadian:(0,n.angleToRadian)(t.radialSweepAngle),textSafeRect:(0,n.createIRect)(i-a,o-a,2*a,2*a)}}function U(t,r,e,n){var i,o=w(t,r,e,n);o.graphicRect.width<=0||o.graphicRect.height<=0||(nt(t,r,i=J(o),n),it(t,r,rt(i),i.centerX,i.centerY,n,void 0,i))}function V(t){var r=(0,n.Math_max)(t.radialStroke,0),e=(0,n.Math_max)(i.PROGRESS_SPARKLINE_ARC_BOUNDARY_INSET,r*i.PROGRESS_SPARKLINE_ARC_BOUNDARY_INSET_STROKE_RATIO),o=t.graphicRect.width/2-r/2-e,u=t.graphicRect.height*i.PROGRESS_SPARKLINE_ARC_RADIUS_HEIGHT_RATIO-r/2-e,a=(0,n.Math_max)((0,n.Math_min)(o,u),0),s=t.graphicRect.x+t.graphicRect.width/2,c=t.graphicRect.y+t.graphicRect.height*i.PROGRESS_SPARKLINE_ARC_CENTER_Y_RATIO,f=c-a*i.PROGRESS_SPARKLINE_ARC_TEXT_CENTER_Y_RATIO,y=b(a,r),m=y*i.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_WIDTH_RATIO,l=y*i.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_HEIGHT_RATIO;return{centerX:s,centerY:c,radius:a,stroke:r,startRadian:(0,n.angleToRadian)(t.radialStartAngle),sweepRadian:(0,n.angleToRadian)(t.radialSweepAngle),textCenterX:s,textCenterY:f,textSafeRect:(0,n.createIRect)(s-m/2,f-l/2,m,l)}}function W(t,r){var e=K(r);return{start:t.startRadian,end:t.startRadian+t.sweepRadian*e,anticlockwise:!1}}function Y(t,r,e,n,i,o){var u,a=K(e);r.radius<=0||r.stroke<=0||a<=0||(u=W(r,a),t.beginPath(),t.lineWidth=i||r.stroke,t.lineCap=o||"round",t.strokeStyle=n,t.arc(r.centerX,r.centerY,r.radius,u.start,u.end,u.anticlockwise),t.stroke())}function q(t,r){var e=K(r);return t.startRadian+t.sweepRadian*e}function X(t,r){return r<=0?0:(0,n.Math_max)(0,(0,n.Math_min)((0,n.Math_floor)(K(t)*r+i.PROGRESS_SPARKLINE_RADIAL_COMPLETED_COUNT_EPSILON),r))}function Z(t,r,e,o,a){var s,c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$;if(!(e.radius<=0||e.stroke<=0)){if(o===u.ProgressSparklineRadialPattern.dash)return s=K(r.progress),c=e.radius*e.sweepRadian,m=(f=(0,n.Math_max)(c/i.PROGRESS_SPARKLINE_RADIAL_DASH_COUNT,e.stroke*i.PROGRESS_SPARKLINE_RADIAL_DASH_SPAN_STROKE_RATIO))-(y=f*i.PROGRESS_SPARKLINE_RADIAL_DASH_RATIO),l=W(e,s),t.save(),Y(t,e,1,r.colors.bandColor,e.stroke,"butt"),s>0&&(t.beginPath(),t.setLineDash([y,m]),t.lineWidth=e.stroke,t.lineCap="butt",t.strokeStyle=r.colors.barColor,t.arc(e.centerX,e.centerY,e.radius,l.start,l.end,l.anticlockwise),t.stroke(),t.setLineDash([])),void t.restore();if(d=o===u.ProgressSparklineRadialPattern.ticks?i.PROGRESS_SPARKLINE_RADIAL_TICK_COUNT:i.PROGRESS_SPARKLINE_RADIAL_DOT_COUNT,h=X(r.progress,d),t.save(),o!==u.ProgressSparklineRadialPattern.ticks){for(x=(D=e.sweepRadian/d)*i.PROGRESS_SPARKLINE_RADIAL_SEGMENT_SWEEP_RATIO,t.lineWidth=e.stroke,t.lineCap="butt",F=0;F<d;F++)N=(H=q(e,(F+i.PROGRESS_SPARKLINE_RADIAL_PATTERN_CENTER_OFFSET_RATIO)/d))-x/2,$=H+x/2,t.beginPath(),t.strokeStyle=F<h?r.colors.barColor:r.colors.bandColor,t.arc(e.centerX,e.centerY,e.radius,N,$,!1),t.stroke();t.restore()}else{for(M=R(a),v=(0,n.Math_max)(i.PROGRESS_SPARKLINE_RADIAL_TICK_WIDTH*M,i.PROGRESS_SPARKLINE_MIN_VISIBLE_PIXEL),p=e.stroke*i.PROGRESS_SPARKLINE_RADIAL_TICK_LENGTH_RATIO,g=(0,n.Math_max)(e.radius+e.stroke/2-v/2,0),b=(0,n.Math_max)(g-p,0),t.lineWidth=v,t.lineCap="round",F=0;F<d;F++)k=q(e,(F+i.PROGRESS_SPARKLINE_RADIAL_PATTERN_CENTER_OFFSET_RATIO)/d),_=(0,n.Math_cos)(k),w=(0,n.Math_sin)(k),t.beginPath(),t.moveTo(e.centerX+b*_,e.centerY+b*w),t.lineTo(e.centerX+g*_,e.centerY+g*w),t.strokeStyle=n.WHITE_COLOR,t.stroke();t.restore()}}}function Q(t,r,e,o){var u,a,s,c,f;e.radius<=0||e.stroke<=0||(u=R(o),a=q(e,r.progress),s=g(e.stroke,u),c=e.centerX+(0,n.Math_cos)(a)*e.radius,f=e.centerY+(0,n.Math_sin)(a)*e.radius,t.save(),t.beginPath(),t.fillStyle=r.colors.barColor,t.arc(c,f,s,0,2*n.Math_PI,!1),t.fill(),t.beginPath(),t.fillStyle=n.WHITE_COLOR,t.arc(c,f,s*i.PROGRESS_SPARKLINE_RING_KNOB_INNER_DOT_RATIO,0,2*n.Math_PI,!1),t.fill(),t.restore())}function tt(t,r,e,o,u,a,s){var c,f=R(u),y=i.PROGRESS_SPARKLINE_TEXT_FONT_MIN*f,m=i.PROGRESS_SPARKLINE_TEXT_FONT_MAX*f,l=b(e.radius,e.stroke),d=e.isArc?a?a.textSafeRect.width:l*i.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_WIDTH_RATIO:s?s.textSafeRect.width:2*l,h=e.isArc?a?a.textSafeRect.height:l*i.PROGRESS_SPARKLINE_ARC_TEXT_SAFE_HEIGHT_RATIO:s?s.textSafeRect.height:2*l;if(d<=0||h<=0)return 0;for((c=(0,n.Math_min)(l*(e.isArc?i.PROGRESS_SPARKLINE_ARC_TEXT_FONT_SIZE_RATIO:i.PROGRESS_SPARKLINE_RING_TEXT_FONT_SIZE_RATIO),m))<y&&(c=y),t.save();c>y&&(t.font=A(o,c),!(t.measureText(r.text).width<=d));)c-=i.PROGRESS_SPARKLINE_FONT_FIT_STEP;return t.restore(),(0,n.Math_max)(y,(0,n.Math_min)(c,m))}function rt(t){return{centerX:t.centerX,centerY:t.centerY,radius:t.radius,stroke:t.stroke,startRadian:t.startRadian,sweepRadian:t.sweepRadian,isArc:!1}}function et(t,r,e){e.radius<=0||e.stroke<=0||(t.save(),Y(t,e,1,r.colors.bandColor),Y(t,e,r.progress,r.colors.barColor),t.restore())}function nt(t,r,e,i){var a,s,c=(0,o.getRingContinuousVisual)(r.modeDefinition.decoration),f=rt(e);if(!(f.radius<=0||f.stroke<=0||c.overlay===u.ProgressSparklineRingOverlay.knob&&(a=R(i),s=g(f.stroke,a),f.radius=(0,n.Math_max)(f.radius-s,0),f.radius<=0)))return c.strokePattern===u.ProgressSparklineRingStrokePattern.ticks?(t.save(),Y(t,f,1,r.colors.bandColor),t.restore(),Z(t,r,f,u.ProgressSparklineRadialPattern.ticks,i),t.save(),Y(t,f,r.progress,r.colors.barColor),void t.restore()):void(c.strokePattern!==u.ProgressSparklineRingStrokePattern.dash?c.strokePattern!==u.ProgressSparklineRingStrokePattern.dots?(et(t,r,f),c.overlay===u.ProgressSparklineRingOverlay.knob&&Q(t,r,f,i)):Z(t,r,f,u.ProgressSparklineRadialPattern.dots,i):Z(t,r,f,u.ProgressSparklineRadialPattern.dash,i))}function it(t,r,e,o,u,a,s,c){var f,y;r.showValue&&r.text&&((y=tt(t,r,e,f=P(t,i.PROGRESS_SPARKLINE_TEXT_FALLBACK_FONT_SIZE),a,s,c))<=0||(0,n.drawText)(t,o,u,r.text,A(f,y),n.CENTER_ALIGN,r.colors.barColor,n.MIDDLE_ALIGN))}function ot(t,r,e,n){var i=V(e),o={centerX:i.centerX,centerY:i.centerY,radius:i.radius,stroke:i.stroke,startRadian:i.startRadian,sweepRadian:i.sweepRadian,isArc:!0};o.radius<=0||o.stroke<=0||(t.save(),Y(t,o,1,r.colors.bandColor,void 0,"round"),Y(t,o,r.progress,r.colors.barColor,void 0,"round"),t.restore(),it(t,r,o,i.textCenterX,i.textCenterY,n,i))}function ut(t,r,e,n){if(e.graphicRect.width>0&&e.graphicRect.height>0){var i=(0,o.getBarDiscreteVisual)(r.modeDefinition.decoration);i.discreteStyle===u.ProgressSparklineBarDiscreteStyle.segmented?B(t,r,e,n):i.discreteStyle===u.ProgressSparklineBarDiscreteStyle.bubble?G(t,r,e,n):i.discreteStyle===u.ProgressSparklineBarDiscreteStyle.checkbox&&z(t,r,e,n)}j(t,r,e,n)}function at(t,r,e,i,u,a,s){var c,f,y,m=k(r,s);if(m)if(c=(0,n.createIRect)(e,i,u,a),(0,o.isBarContinuousNormalizedValue)(m))E(t,m,f=_(t,m,c,s),s);else if((0,o.isBarDiscreteNormalizedValue)(m))ut(t,m,f=_(t,m,c,s),s);else if((0,o.isRingNormalizedValue)(m))U(t,m,c,s);else if((0,o.isArcNormalizedValue)(m)){if((y=w(t,m,c,s)).graphicRect.width<=0||y.graphicRect.height<=0)return;ot(t,m,y,s)}}Object.defineProperty(r,"__esModule",{value:!0}),r.progressSparkline_paint=void 0,n=e("./src/plugins/sparkline/sparklines/common.ts"),i=e("./src/plugins/sparkline/sparklines/progress-sparkline/constants.ts"),o=e("./src/plugins/sparkline/sparklines/progress-sparkline/definitions.ts"),u=e("./src/plugins/sparkline/sparklines/progress-sparkline/types.ts"),r.progressSparkline_paint=at},"./src/plugins/sparkline/sparklines/progress-sparkline/types.ts":function(t,r){var e,n,i,o,u,a,s,c,f,y,m,l,d,h,M,v;Object.defineProperty(r,"__esModule",{value:!0}),r.ProgressSparklineRadialPattern=r.ProgressSparklineTextAnchor=r.ProgressVisualBucket=r.ProgressSparklineMode=r.ArcDecoration=r.RingDecoration=r.BarDiscreteDecoration=r.BarContinuousDecoration=r.ProgressSparklineBarDecoration=r.ProgressSparklineRingOverlay=r.ProgressSparklineRingStrokePattern=r.ProgressSparklineBarDiscreteStyle=r.ProgressSparklineBarTrackDecoration=r.ProgressSparklineBarProgressDecoration=r.ProgressSparklineBarCapStyle=r.ProgressSparklineGeometry=void 0,function(t){t.bar="bar",t.ring="ring",t.arc="arc"}(e=r.ProgressSparklineGeometry||(r.ProgressSparklineGeometry={})),function(t){t.round="round",t.square="square"}(n=r.ProgressSparklineBarCapStyle||(r.ProgressSparklineBarCapStyle={})),function(t){t.none="none",t.striped="striped"}(i=r.ProgressSparklineBarProgressDecoration||(r.ProgressSparklineBarProgressDecoration={})),function(t){t.none="none",t.hatched="hatched",t.dotted="dotted"}(o=r.ProgressSparklineBarTrackDecoration||(r.ProgressSparklineBarTrackDecoration={})),function(t){t.segmented="segmented",t.bubble="bubble",t.checkbox="checkbox"}(u=r.ProgressSparklineBarDiscreteStyle||(r.ProgressSparklineBarDiscreteStyle={})),function(t){t.solid="solid",t.dash="dash",t.ticks="ticks",t.dots="dots"}(a=r.ProgressSparklineRingStrokePattern||(r.ProgressSparklineRingStrokePattern={})),function(t){t.none="none",t.knob="knob"}(s=r.ProgressSparklineRingOverlay||(r.ProgressSparklineRingOverlay={})),function(t){t.stripedProgress="striped-progress",t.hatchedTrack="hatched-track",t.dottedTrack="dotted-track"}(c=r.ProgressSparklineBarDecoration||(r.ProgressSparklineBarDecoration={})),function(t){t.none="none",t.striped="striped",t.hatched="hatched",t.dottedTrack="dotted-track"}(f=r.BarContinuousDecoration||(r.BarContinuousDecoration={})),function(t){t.segmented="segmented",t.bubble="bubble",t.checkbox="checkbox"}(y=r.BarDiscreteDecoration||(r.BarDiscreteDecoration={})),function(t){t.none="none",t.gap="gap",t.thick="thick",t.ticks="ticks",t.dash="dash",t.knob="knob",t.dots="dots"}(m=r.RingDecoration||(r.RingDecoration={})),function(t){t.none="none"}(l=r.ArcDecoration||(r.ArcDecoration={})),function(t){t[t.barContinuous=0]="barContinuous",t[t.barStriped=1]="barStriped",t[t.barSegmented=2]="barSegmented",t[t.ring=3]="ring",t[t.arc=4]="arc",t[t.barHatched=5]="barHatched",t[t.barBubble=6]="barBubble",t[t.barDottedTrack=7]="barDottedTrack",t[t.barCheckbox=8]="barCheckbox",t[t.ringGap=9]="ringGap",t[t.ringThick=10]="ringThick",t[t.ringTicks=11]="ringTicks",t[t.ringDash=12]="ringDash",t[t.ringDots=13]="ringDots",t[t.ringKnob=14]="ringKnob"}(d=r.ProgressSparklineMode||(r.ProgressSparklineMode={})),function(t){t.barContinuous="bar-continuous",t.barDiscrete="bar-discrete",t.ring="ring",t.arc="arc"}(h=r.ProgressVisualBucket||(r.ProgressVisualBucket={})),function(t){t.right="right",t.center="center"}(M=r.ProgressSparklineTextAnchor||(r.ProgressSparklineTextAnchor={})),function(t){t.ticks="ticks",t.dash="dash",t.dots="dots"}(v=r.ProgressSparklineRadialPattern||(r.ProgressSparklineRadialPattern={}))},"./src/plugins/sparkline/sparklines/scatter-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.scatterSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,i,u,c){var f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A,P,C,O,j,T=r.points1,E=r.points2,R=r.minX,I=r.maxX,B=r.minY,G=r.maxY,L=r.hLine,z=r.vLine,K=r.xMinZone,J=r.xMaxZone,U=r.yMinZone,V=r.yMaxZone,W=r.tags,Y=r.drawSymbol,q=r.drawLines,X=r.color1,Z=r.color2,Q=r.dash,tt=4,rt=(0,n.getPlotRect)(e,i,u,c,5),et=rt.left,nt=rt.top,it=rt.width,ot=rt.height;if(T&&!(T.length<=0)&&!((f=s(T)).length<=0||E&&E.length>0&&(y=s(E)).length<=0)){for((0,n.clipContext)(t,e,i,u,c),t.beginPath(),Y=!!(0,n.isNullOrUndefined)(Y)||Y,X=(0,n.isNullOrUndefined)(X)?n.DEFAULT_COLOR1:X,Z=(0,n.isNullOrUndefined)(Z)?n.DEFAULT_COLOR2:Z,at(f,B,G,R,I),!(0,n.isNullOrUndefined)(K)&&!(0,n.isNullOrUndefined)(J)&&!(0,n.isNullOrUndefined)(U)&&!(0,n.isNullOrUndefined)(V)&&d<=K&&K<=h&&d<=J&&J<=h&&m<=U&&U<=l&&m<=V&&V<=l&&((P=(0,n.Math_max)(d,K))>=(C=(0,n.Math_min)(h,J))&&(C=P+1),(O=(0,n.Math_max)(m,U))>=(j=(0,n.Math_min)(l,V))&&(j=O+1),(0,n.paintRect)(t,et+(P-d)*it/(h-d),nt+(l-j)*ot/(l-m),(C-P)*it/(h-d),(j-O)*ot/(l-m),n.DEFAULT_COLOR4)),H=-n.NUMBER_MAX_VALUE,N=-n.NUMBER_MAX_VALUE,$=n.NUMBER_MAX_VALUE,S=n.NUMBER_MAX_VALUE,p=f.length,M=0;M<p-1;M++)ut(f,M,X,ct),W&&(0===M&&(w>N&&(H=_,N=w),w<S&&($=_,S=w)),x>N&&(H=D,N=x),x<S&&($=D,S=x));if(y&&y.length>0)for(at(y,m,l,d,h),p=y.length,M=0;M<p-1;M++)ut(y,M,Z,ft);W&&(st(H,N,n.DEFAULT_COLOR2),st($,S,"#0000FF")),!(0,n.isNullOrUndefined)(L)&&m<=L&&L<=l&&(A=(0,n.Math_round)(nt+(l-L)*ot/(l-m))-.5,a(t,et,A,et+it,A,n.DEFAULT_COLOR2)),!(0,n.isNullOrUndefined)(z)&&d<=z&&z<=h&&(A=(0,n.Math_round)(et+(z-d)*it/(h-d))-.5,a(t,A,nt,A,nt+ot,n.DEFAULT_COLOR2)),t.restore()}function ut(r,e,n,i){v=r[e],g=v.x,b=v.y,v=r[e+1],F=v.x,k=v.y,_=et+(g-d)*it/(h-d),D=et+(F-d)*it/(h-d),w=nt+(l-b)*ot/(l-m),x=nt+(l-k)*ot/(l-m),q&&a(t,_,w,D,x,n,Q),Y&&(0===e&&i(_,w),i(D,x))}function at(t,r,e,i,u){var a=o(t,!0),s=o(t,!1);m=(0,n.isNullOrUndefined)(B)?a.y:r,l=(0,n.isNullOrUndefined)(G)?s.y:e,d=(0,n.isNullOrUndefined)(R)?a.x:i,h=(0,n.isNullOrUndefined)(I)?s.x:u,h=d>=h?d+1:h,l=m>=l?m+1:l}function st(r,e,i){t.beginPath(),t.arc(r-tt/2,e-tt/2,tt/2,0,2*n.Math_PI,!1),t.fillStyle=i,t.fill()}function ct(r,e){t.beginPath(),t.strokeStyle=X,t.arc(r-tt/2,e-tt/2,tt/2,0,2*n.Math_PI,!1),t.stroke()}function ft(r,e){t.beginPath(),t.strokeStyle=Z,t.strokeRect(r-tt/2,e-tt/2,tt,tt)}}function o(t,r){var e,i,o=r?1:-1,u=r?n.Math_min:n.Math_max,a=new n.Point((0,n.createIPoint)(o*n.NUMBER_MAX_VALUE,o*n.NUMBER_MAX_VALUE)),s=t.length;for(i=0;i<s;i++)e=t[i],a.x=u(a.x,e.x),a.y=u(a.y,e.y);return a}function u(t,r,e,n){return e/n*(r-t)+t}function a(t,r,e,i,o,a,s){var c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D;if(s){for(c=(0,n.Math_sqrt)((0,n.Math_pow)(i-r,2)+(0,n.Math_pow)(o-e,2)),f=0,y=6,m=2,l=4,h=void 0,M=void 0,v=void 0,p=void 0,r<=i?(h=r,M=i,v=r,p=e):(h=i,M=r,v=i,p=o),b=e-(g=(o-e)/(i-r))*r,(d=[]).push(new n.Point((0,n.createIPoint)(v,p))),F=[y,l,m,l];f<c;)for(k=0,_=F.length;k<_;k++)(f+=F[k])<=c&&(p=g*(v=u(h,M,f,c))+b,d.push(new n.Point((0,n.createIPoint)(v,p))));for(w=0,D=d.length;w<D-1;w+=2)(0,n.drawLine)(t,d[w].x,d[w].y,d[w+1].x,d[w+1].y,a)}else(0,n.drawLine)(t,r,e,i,o,a)}function s(t){var r,e,i,o=[],u=t.length;if(u>0)if(u<(r=t[0].length)){if(u>=2)for(e=0;e<r;e++)o.push(new n.Point((0,n.createIPoint)(t[0][e],t[1][e])))}else if(r>=2)for(i=0;i<u;i++)o.push(new n.Point((0,n.createIPoint)(t[i][0],t[i][1])));return o}r.scatterSparkline_paint=i},"./src/plugins/sparkline/sparklines/spread-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.spreadSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,i,a,s){var c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H,N,$,S,A=r.spreadData,P=r.showAverage,C=r.scaleStart,O=r.scaleEnd,j=r.style,T=r.colorScheme,E=r.vertical,R=5,I=A.length;if(!(I<=0)){for(c=A[0].key,f=A[I-1].key,C=(0,n.isNullOrUndefined)(C)?c:C,O=(0,n.isNullOrUndefined)(O)?f:O,j=(0,n.isNullOrUndefined)(j)?4:j,T=(0,n.isNullOrUndefined)(T)?n.DEFAULT_COLOR3:T,m=(y=(0,n.getPlotRect)(e,i,a,s,R,s-2*R,E)).left,l=y.width,d=y.top,h=y.height,(0,n.clipContext)(t,e,i,a,s),t.beginPath(),t.strokeStyle=T,t.fillStyle=T,t.lineWidth=2,p=(0,n.getMinOrMax)(A,!1),b=0,F=A.length;b<F;b++)if(_=(k=A[b]).key,w=k.value,M=m+(E?-1:1)*l*(_-C)/(O-C),E?(M=(0,n.Math_min)(M,m),M=(0,n.Math_max)(M,m-l)):(M=(0,n.Math_max)(M,m),M=(0,n.Math_min)(M,m+l)),M=(0,n.Math_round)(M),1===j)D=d+h/2-(g=(g=w/2*h/p)<.5?.5:g),x=d+h/2+g,(0,n.drawLines)(t,E,D,M,x,M,M,D,M,x);else if(4===j)g=(g=w*h/p)<1?1:g,(0,n.drawLines)(t,E,d,M,d+g,M,M,d+h,M,d+h-g);else if(6===j)(0,n.drawLines)(t,E,d,M,d+h,M,M,d,M,d+h);else for(H=2,N=1;N<=w;N++){switch(j){case 2:v=d+h/2-R-(w/2-N)*h/p;break;case 3:v=d+h-R-($=o(w,h,H+1,k.randomNumbers))[N-1];break;default:v=d+h-N*h/p}v=(0,n.Math_round)(v),t.beginPath(),t.fillRect(E?v:M,E?M:v,H,H)}P&&(M=m-(E?1:-1)*l*((S=u(A))-C)/(O-C),(0,n.drawLines)(t,E,d-R,M,d+h+R,M,M,d-R,M,d+h+R,n.DEFAULT_COLOR2)),t.restore()}}function o(t,r,e,i){for(var o,u=[],s=(0,n.Math_max)(100,10*t),c=0,f=[],y=0;u.length<t;)o=(0,n.Math_floor)(i[y]*r),y++,(c>s||a(o,f))&&(u.push(o),f.push([o-e,o+e])),c++;return u}function u(t){var r,e,n,i=0,o=0;for(r=0,e=t.length;r<e;r++)o+=(n=t[r]).value,i+=n.key*n.value;return 0===o?0:i/o}function a(t,r){var e,n,i;for(e=0,n=r.length;e<n;e++)if((i=r[e])[0]<=t&&t<=i[1])return!1;return!0}r.spreadSparkline_paint=i},"./src/plugins/sparkline/sparklines/stacked-sparkline.ts":function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.stackedSparkline_paint=void 0;var n=e("./src/plugins/sparkline/sparklines/common.ts");function i(t,r,e,i,u,a,s){var c,f,y,m,l,d,h,M,v,p,g,b,F,k,_,w,D,x,H=r.points,N=H&&H.length,$=r.colorRange,S=r.labelRange,A=r.maximum,P=r.targetRed,C=r.targetGreen,O=r.targetBlue,j=r.targetYellow,T=r.color,E=r.highlightPosition,R=r.vertical,I=r.textOrientation,B=r.textSize,G=5;if(!((0,n.isNullOrUndefined)(H)||N<=0)){if(T=(0,n.isNullOrUndefined)(T)?n.DEFAULT_COLOR3:T,(0,n.isNullOrUndefined)($)||$.length!==N||o($))for($=[],c=0;c<N;c++)$.push((0,n.getLighterColor)(T,1+c/N));for(f=(0,n.getSum)(H,(function(t){return t>0})),A=(0,n.isNullOrUndefined)(A)||A<f?f:A,I=(0,n.isNullOrUndefined)(I)?0:I,B=(0,n.isNullOrUndefined)(B)||B<=0?10:B,B=(0,n.isNotANumber)(B)?B:B*s.zoomFactor,y=(0,n.getPlotRect)(e,i,u,a,G,a-2*G,R),m=y.left,l=y.width,d=y.top,h=y.height,t.save(),M=m,_=0,w=N;_<w;_++)(k=H[_])<=0||(v=k/A*l,R?(p=e+.15*u,b=.7*u,g=M-v,F=v):(p=M,b=v,g=i+.15*a,F=.7*a),D=_+1===E?n.DEFAULT_COLOR2:$[_],t.save(),t.fillStyle=D,t.fillRect(p,g,b,F),(x=S&&S[_])&&(t.save(),t.fillStyle=(0,n.getTextColor)(D),t.textBaseline=n.MIDDLE_ALIGN,t.textAlign=n.CENTER_ALIGN,t.font=B+n.PX_ARIAL,t.rect(p,g,b,F),t.clip(),1===I?(t.translate(p+b/2,g),t.rotate(Math.PI/2),t.fillText(x,F/2,0)):t.fillText(x,p+b/2,g+F/2),t.restore()),M+=(R?-1:1)*v,t.restore());L(n.RED_COLOR,P,(function(t){return t>0})),L(n.GREEN_COLOR,C),L(n.BLUE_COLOR,O),L("yellow",j),t.restore()}function L(r,e,i){var o,u;e!==n.keyword_null&&e!==n.keyword_undefined&&(e=e>A?A:e,i&&!i(e)||(u=(e=e<0?0:e)/A*l,R?(o=(0,n.Math_round)(m-u)-.5,(0,n.drawLine)(t,d,o,d+h,o,r)):(o=(0,n.Math_round)(m+u)-.5,(0,n.drawLine)(t,o,d,o,d+h,r))))}}function o(t){for(var r=0,e=t.length;r<e;r++)if((0,n.isNullOrUndefined)(t[r]))return!0;return!1}r.stackedSparkline_paint=i},canvas:function(t){t.exports=canvas}},n={};function i(t){var r,o=n[t];return void 0!==o?o.exports:(r=n[t]={exports:{}},e[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,e,n,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,e=i("./src/plugins/commands/commands.entry.ts"),a.Commands=e,n=i("./src/plugins/formatter/formatter.entry.ts"),a.Formatter=n,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,e)=>{t.exports=e("./node_modules_local/@spreadjs/js-sheets-common/dist/gc.spread.common.js")}},e={};function n(t){var i,o=e[t];return void 0!==o?o.exports:(i=e[t]={exports:{}},r[t](i,i.exports,n),i.exports)}t=n("./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||{});