@univerjs-pro/engine-pivot 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2f46(_0x32ab48,_0x484cc9){_0x32ab48=_0x32ab48-0xa8;const _0x38ed31=_0x38ed();let _0x2f4696=_0x38ed31[_0x32ab48];return _0x2f4696;}(function(_0x2cc4d4,_0x256816){const _0x5860c4=_0x2f46,_0x15c23d=_0x2cc4d4();while(!![]){try{const _0x4592d5=-parseInt(_0x5860c4(0x190))/0x1+-parseInt(_0x5860c4(0x300))/0x2+parseInt(_0x5860c4(0x1ec))/0x3+parseInt(_0x5860c4(0x23f))/0x4+parseInt(_0x5860c4(0x33e))/0x5+-parseInt(_0x5860c4(0x280))/0x6+-parseInt(_0x5860c4(0x22e))/0x7*(-parseInt(_0x5860c4(0x3f8))/0x8);if(_0x4592d5===_0x256816)break;else _0x15c23d['push'](_0x15c23d['shift']());}catch(_0x31232d){_0x15c23d['push'](_0x15c23d['shift']());}}}(_0x38ed,0x460da),function(_0x3b7219,_0xb2a42){const _0x286e32=_0x2f46;typeof exports==_0x286e32(0x131)&&typeof module<'u'?_0xb2a42(exports,require('@univerjs/core')):typeof define==_0x286e32(0x1dd)&&define[_0x286e32(0x1ea)]?define([_0x286e32(0x183),_0x286e32(0x258)],_0xb2a42):(_0x3b7219=typeof globalThis<'u'?globalThis:_0x3b7219||self,_0xb2a42(_0x3b7219[_0x286e32(0x445)]={},_0x3b7219[_0x286e32(0x276)]));}(this,function(_0x2d46b1,_0x4f2705){const _0x973ad6=_0x2f46;Object[_0x973ad6(0x166)](_0x2d46b1,Symbol['toStringTag'],{'value':_0x973ad6(0x1c5)});let _0x7cc867={'TUPLE_PLACEHOLDER':_0x973ad6(0xc7),'TUPLE_FIELD_SEPARATOR':_0x973ad6(0x43a),'COl_ROOT_PATH':_0x973ad6(0x442),'ROW_ROOT_PATH':'-$-rr-$-','BLANK_PLACEHOLDER':'-$-blk-$-','isDev':!0x1,'defaultSortType':'default','dateSystem':_0x4f2705[_0x973ad6(0x43b)][_0x973ad6(0x127)],'maxLimitItemCount':0x3e8,'otherDataKey':'-$-oth-$-'},_0x236c1d=_0x6d673b=>_0x7cc867[_0x973ad6(0x3a8)]=_0x6d673b,_0x2ced43=_0x3485af=>{const _0x5eb1b7=_0x973ad6;_0x3485af>0x0&&(_0x7cc867[_0x5eb1b7(0x121)]=_0x3485af);},_0x2fe122=function(_0x4adf36){const _0x82faf7=_0x973ad6;return _0x4adf36[_0x4adf36['average']=0x1]=_0x82faf7(0x37b),_0x4adf36[_0x4adf36[_0x82faf7(0x285)]=0x2]=_0x82faf7(0x285),_0x4adf36[_0x4adf36[_0x82faf7(0x3aa)]=0x3]=_0x82faf7(0x3aa),_0x4adf36[_0x4adf36[_0x82faf7(0x18f)]=0x4]=_0x82faf7(0x18f),_0x4adf36[_0x4adf36[_0x82faf7(0x411)]=0x5]='min',_0x4adf36[_0x4adf36[_0x82faf7(0x373)]=0x6]='product',_0x4adf36[_0x4adf36[_0x82faf7(0x2fe)]=0x7]=_0x82faf7(0x2fe),_0x4adf36[_0x4adf36[_0x82faf7(0x27b)]=0x8]=_0x82faf7(0x27b),_0x4adf36[_0x4adf36[_0x82faf7(0x29d)]=0x9]=_0x82faf7(0x29d),_0x4adf36[_0x4adf36[_0x82faf7(0x1c4)]=0xa]=_0x82faf7(0x1c4),_0x4adf36[_0x4adf36[_0x82faf7(0x154)]=0xb]=_0x82faf7(0x154),_0x4adf36;}({}),_0x482c01=function(_0x4c60b9){const _0x107973=_0x973ad6;return _0x4c60b9[_0x4c60b9[_0x107973(0x408)]=0x1]=_0x107973(0x408),_0x4c60b9[_0x4c60b9[_0x107973(0x3d9)]=0x2]=_0x107973(0x3d9),_0x4c60b9[_0x4c60b9[_0x107973(0x1ff)]=0x3]=_0x107973(0x1ff),_0x4c60b9[_0x4c60b9[_0x107973(0x43d)]=0x4]=_0x107973(0x43d),_0x4c60b9[_0x4c60b9[_0x107973(0x2de)]=0x5]=_0x107973(0x2de),_0x4c60b9[_0x4c60b9[_0x107973(0x42b)]=0x6]='percentOfParentRowTotal',_0x4c60b9[_0x4c60b9[_0x107973(0x2c4)]=0x7]='percentOfParentGrandTotal',_0x4c60b9[_0x4c60b9['index']=0x8]=_0x107973(0xb8),_0x4c60b9[_0x4c60b9[_0x107973(0x10a)]=0x9]=_0x107973(0x10a),_0x4c60b9[_0x4c60b9[_0x107973(0x2f9)]=0xa]=_0x107973(0x2f9),_0x4c60b9[_0x4c60b9[_0x107973(0x2a5)]=0xb]='runningTotal',_0x4c60b9[_0x4c60b9['percentRunningTotal']=0xc]='percentRunningTotal',_0x4c60b9[_0x4c60b9[_0x107973(0x16a)]=0xd]=_0x107973(0x16a),_0x4c60b9[_0x4c60b9[_0x107973(0x37e)]=0xe]=_0x107973(0x37e),_0x4c60b9[_0x4c60b9[_0x107973(0x2be)]=0xf]=_0x107973(0x2be),_0x4c60b9[_0x4c60b9[_0x107973(0x24d)]=0x10]='rankDescending',_0x4c60b9;}({}),_0x535ad2=function(_0x442309){const _0x2f1def=_0x973ad6;return _0x442309[_0x442309[_0x2f1def(0x3c0)]=0x1]=_0x2f1def(0x3c0),_0x442309[_0x442309[_0x2f1def(0x416)]=0x2]=_0x2f1def(0x416),_0x442309[_0x442309[_0x2f1def(0x216)]=0x3]=_0x2f1def(0x216),_0x442309;}({}),_0x139e72=function(_0x4ea7be){const _0x2054de=_0x973ad6;return _0x4ea7be[_0x4ea7be[_0x2054de(0xfd)]=0x1]=_0x2054de(0xfd),_0x4ea7be[_0x4ea7be['NotNumber']=0x2]=_0x2054de(0x293),_0x4ea7be[_0x4ea7be[_0x2054de(0x393)]=0x3]=_0x2054de(0x393),_0x4ea7be[_0x4ea7be[_0x2054de(0x22a)]=0x4]='NotName',_0x4ea7be[_0x4ea7be[_0x2054de(0x36e)]=0x5]=_0x2054de(0x36e),_0x4ea7be;}({}),_0x4f2f01=function(_0x49e408){const _0x553f58=_0x973ad6;return _0x49e408[_0x49e408[_0x553f58(0xb1)]=0x1]='CustomFilter',_0x49e408[_0x49e408[_0x553f58(0x28f)]=0x2]='ValueFilter',_0x49e408[_0x49e408[_0x553f58(0xf3)]=0x3]=_0x553f58(0xf3),_0x49e408[_0x49e408[_0x553f58(0x202)]=0x4]='RecordFilter',_0x49e408;}({}),_0x11dd42=function(_0x1897fc){const _0x199f46=_0x973ad6;return _0x1897fc[_0x1897fc[_0x199f46(0x15c)]=0x1]=_0x199f46(0x15c),_0x1897fc[_0x1897fc[_0x199f46(0x385)]=0x2]=_0x199f46(0x385),_0x1897fc[_0x1897fc[_0x199f46(0x3e8)]=0x3]=_0x199f46(0x3e8),_0x1897fc[_0x1897fc[_0x199f46(0x3cd)]=0x4]='Filter',_0x1897fc[_0x1897fc[_0x199f46(0x182)]=0x5]='Hidden',_0x1897fc;}({}),_0x36a291=function(_0x32bec8){const _0x5948d8=_0x973ad6;return _0x32bec8[_0x32bec8[_0x5948d8(0xbc)]=-0x1]=_0x5948d8(0xbc),_0x32bec8[_0x32bec8['Column']=0x1]=_0x5948d8(0x15c),_0x32bec8[_0x32bec8['Row']=0x2]=_0x5948d8(0x385),_0x32bec8;}({}),_0x175d8a=function(_0x1b27d1){const _0x2bc6f5=_0x973ad6;return _0x1b27d1[_0x1b27d1[_0x2bc6f5(0x1c2)]=0x1]=_0x2bc6f5(0x1c2),_0x1b27d1[_0x1b27d1[_0x2bc6f5(0x347)]=0x2]=_0x2bc6f5(0x347),_0x1b27d1[_0x1b27d1[_0x2bc6f5(0x3bd)]=0x3]=_0x2bc6f5(0x3bd),_0x1b27d1[_0x1b27d1[_0x2bc6f5(0x136)]=0x4]=_0x2bc6f5(0x136),_0x1b27d1[_0x1b27d1[_0x2bc6f5(0x2f1)]=0x5]=_0x2bc6f5(0x2f1),_0x1b27d1[_0x1b27d1[_0x2bc6f5(0x37f)]=0x6]=_0x2bc6f5(0x37f),_0x1b27d1;}({}),_0x1afa1e=function(_0x367a49){const _0x6bac14=_0x973ad6;return _0x367a49[_0x367a49['value']=0x1]=_0x6bac14(0x226),_0x367a49[_0x367a49[_0x6bac14(0x26e)]=0x2]=_0x6bac14(0x26e),_0x367a49;}({}),_0x4316e8=function(_0xa02f2c){const _0x209299=_0x973ad6;return _0xa02f2c[_0xa02f2c[_0x209299(0xb0)]=0x1]=_0x209299(0xb0),_0xa02f2c[_0xa02f2c['descending']=0x2]=_0x209299(0x31d),_0xa02f2c[_0xa02f2c['custom']=0x3]=_0x209299(0xe0),_0xa02f2c;}({}),_0x40c6ac=function(_0x2dad71){const _0x1c14b9=_0x973ad6;return _0x2dad71[_0x2dad71[_0x1c14b9(0x434)]=0x1]=_0x1c14b9(0x434),_0x2dad71[_0x2dad71[_0x1c14b9(0x3db)]=0x2]=_0x1c14b9(0x3db),_0x2dad71[_0x2dad71[_0x1c14b9(0x320)]=0x3]='captionContains',_0x2dad71[_0x2dad71['captionEndsWith']=0x4]=_0x1c14b9(0x16c),_0x2dad71[_0x2dad71[_0x1c14b9(0x19c)]=0x5]=_0x1c14b9(0x19c),_0x2dad71[_0x2dad71[_0x1c14b9(0x1ab)]=0x6]='captionGreaterThan',_0x2dad71[_0x2dad71[_0x1c14b9(0x38d)]=0x7]=_0x1c14b9(0x38d),_0x2dad71[_0x2dad71[_0x1c14b9(0x109)]=0x8]='captionLessThan',_0x2dad71[_0x2dad71['captionLessThanOrEqual']=0x9]=_0x1c14b9(0x21a),_0x2dad71[_0x2dad71[_0x1c14b9(0x24e)]=0xa]=_0x1c14b9(0x24e),_0x2dad71[_0x2dad71[_0x1c14b9(0x146)]=0xb]=_0x1c14b9(0x146),_0x2dad71[_0x2dad71[_0x1c14b9(0x366)]=0xc]=_0x1c14b9(0x366),_0x2dad71[_0x2dad71[_0x1c14b9(0x1a6)]=0xd]=_0x1c14b9(0x1a6),_0x2dad71[_0x2dad71['captionNotEqual']=0xe]=_0x1c14b9(0x319),_0x2dad71[_0x2dad71['count']=0xf]='count',_0x2dad71[_0x2dad71[_0x1c14b9(0x448)]=0x10]='dateBetween',_0x2dad71[_0x2dad71[_0x1c14b9(0x243)]=0x11]=_0x1c14b9(0x243),_0x2dad71[_0x2dad71['dateNewerThan']=0x12]=_0x1c14b9(0x387),_0x2dad71[_0x2dad71['dateNewerThanOrEqual']=0x13]=_0x1c14b9(0x1d3),_0x2dad71[_0x2dad71[_0x1c14b9(0x379)]=0x14]=_0x1c14b9(0x379),_0x2dad71[_0x2dad71[_0x1c14b9(0x3e5)]=0x15]='dateNotEqual',_0x2dad71[_0x2dad71[_0x1c14b9(0x431)]=0x16]=_0x1c14b9(0x431),_0x2dad71[_0x2dad71['dateOlderThanOrEqual']=0x17]=_0x1c14b9(0x362),_0x2dad71[_0x2dad71[_0x1c14b9(0x39b)]=0x18]=_0x1c14b9(0x39b),_0x2dad71[_0x2dad71[_0x1c14b9(0x114)]=0x19]='lastQuarter',_0x2dad71[_0x2dad71[_0x1c14b9(0x2a8)]=0x1a]=_0x1c14b9(0x2a8),_0x2dad71[_0x2dad71[_0x1c14b9(0xdb)]=0x1b]=_0x1c14b9(0xdb),_0x2dad71[_0x2dad71['M1']=0x1c]='M1',_0x2dad71[_0x2dad71[_0x1c14b9(0x16f)]=0x1d]='M10',_0x2dad71[_0x2dad71[_0x1c14b9(0x23d)]=0x1e]='M11',_0x2dad71[_0x2dad71[_0x1c14b9(0x261)]=0x1f]=_0x1c14b9(0x261),_0x2dad71[_0x2dad71['M2']=0x20]='M2',_0x2dad71[_0x2dad71['M3']=0x21]='M3',_0x2dad71[_0x2dad71['M4']=0x22]='M4',_0x2dad71[_0x2dad71['M5']=0x23]='M5',_0x2dad71[_0x2dad71['M6']=0x24]='M6',_0x2dad71[_0x2dad71['M7']=0x25]='M7',_0x2dad71[_0x2dad71['M8']=0x26]='M8',_0x2dad71[_0x2dad71['M9']=0x27]='M9',_0x2dad71[_0x2dad71['nextMonth']=0x28]=_0x1c14b9(0x2b7),_0x2dad71[_0x2dad71[_0x1c14b9(0x176)]=0x29]=_0x1c14b9(0x176),_0x2dad71[_0x2dad71[_0x1c14b9(0x357)]=0x2a]=_0x1c14b9(0x357),_0x2dad71[_0x2dad71[_0x1c14b9(0x22f)]=0x2b]=_0x1c14b9(0x22f),_0x2dad71[_0x2dad71[_0x1c14b9(0x116)]=0x2c]='percent',_0x2dad71[_0x2dad71['Q1']=0x2d]='Q1',_0x2dad71[_0x2dad71['Q2']=0x2e]='Q2',_0x2dad71[_0x2dad71['Q3']=0x2f]='Q3',_0x2dad71[_0x2dad71['Q4']=0x30]='Q4',_0x2dad71[_0x2dad71[_0x1c14b9(0x29d)]=0x31]=_0x1c14b9(0x29d),_0x2dad71[_0x2dad71[_0x1c14b9(0x1fc)]=0x32]=_0x1c14b9(0x1fc),_0x2dad71[_0x2dad71[_0x1c14b9(0x3cc)]=0x33]='thisQuarter',_0x2dad71[_0x2dad71[_0x1c14b9(0x1d2)]=0x34]=_0x1c14b9(0x1d2),_0x2dad71[_0x2dad71[_0x1c14b9(0x196)]=0x35]=_0x1c14b9(0x196),_0x2dad71[_0x2dad71[_0x1c14b9(0xef)]=0x36]=_0x1c14b9(0xef),_0x2dad71[_0x2dad71[_0x1c14b9(0x278)]=0x37]=_0x1c14b9(0x278),_0x2dad71[_0x2dad71[_0x1c14b9(0x301)]=0x38]='unknown',_0x2dad71[_0x2dad71[_0x1c14b9(0x3b0)]=0x39]=_0x1c14b9(0x3b0),_0x2dad71[_0x2dad71[_0x1c14b9(0x244)]=0x3a]='valueEqual',_0x2dad71[_0x2dad71[_0x1c14b9(0x24a)]=0x3b]='valueGreaterThan',_0x2dad71[_0x2dad71[_0x1c14b9(0x456)]=0x3c]='valueGreaterThanOrEqual',_0x2dad71[_0x2dad71[_0x1c14b9(0x402)]=0x3d]='valueLessThan',_0x2dad71[_0x2dad71[_0x1c14b9(0x330)]=0x3e]=_0x1c14b9(0x330),_0x2dad71[_0x2dad71['valueNotBetween']=0x3f]=_0x1c14b9(0x20f),_0x2dad71[_0x2dad71[_0x1c14b9(0x1a2)]=0x40]=_0x1c14b9(0x1a2),_0x2dad71[_0x2dad71[_0x1c14b9(0xf6)]=0x41]=_0x1c14b9(0xf6),_0x2dad71[_0x2dad71[_0x1c14b9(0x39e)]=0x42]='yesterday',_0x2dad71;}({}),_0x50cab6=function(_0x4ee1b3){const _0x137ba4=_0x973ad6;return _0x4ee1b3[_0x4ee1b3[_0x137ba4(0x2bb)]=0x1]=_0x137ba4(0x2bb),_0x4ee1b3[_0x4ee1b3['outline']=0x2]=_0x137ba4(0xeb),_0x4ee1b3[_0x4ee1b3[_0x137ba4(0x1c7)]=0x3]=_0x137ba4(0x1c7),_0x4ee1b3;}({}),_0x1283fe=function(_0x1f489c){const _0x498352=_0x973ad6;return _0x1f489c[_0x1f489c[_0x498352(0x2ee)]=0x1]=_0x498352(0x2ee),_0x1f489c[_0x1f489c[_0x498352(0x17a)]=0x2]=_0x498352(0x17a),_0x1f489c;}({}),_0x274ebf=function(_0xf515f8){const _0x4c4936=_0x973ad6;return _0xf515f8[_0x4c4936(0x2ef)]=_0x4c4936(0x2ef),_0xf515f8[_0x4c4936(0x3e3)]=_0x4c4936(0x3e3),_0xf515f8;}({}),_0x31478e=function(_0x780002){const _0x70204a=_0x973ad6;return _0x780002[_0x780002[_0x70204a(0x13e)]=0x1]=_0x70204a(0x13e),_0x780002[_0x780002['numberGroupField']=0x2]='numberGroupField',_0x780002[_0x780002[_0x70204a(0x113)]=0x3]='dateGroupField',_0x780002[_0x780002[_0x70204a(0xa9)]=0x4]=_0x70204a(0xa9),_0x780002[_0x780002[_0x70204a(0x31c)]=0x5]=_0x70204a(0x31c),_0x780002;}({}),_0x260e4d=function(_0x3590d7){const _0x571a46=_0x973ad6;return _0x3590d7['Legacy']='legacy',_0x3590d7['ExcelLike']=_0x571a46(0x143),_0x3590d7;}({}),_0x340c21=function(_0x54ce11){const _0x3a1538=_0x973ad6;return _0x54ce11[_0x3a1538(0x42a)]='year',_0x54ce11[_0x3a1538(0xcf)]=_0x3a1538(0xd9),_0x54ce11['Month']=_0x3a1538(0x3e2),_0x54ce11[_0x3a1538(0x367)]=_0x3a1538(0x2b9),_0x54ce11[_0x3a1538(0x371)]='hour',_0x54ce11['Minute']='minute',_0x54ce11[_0x3a1538(0xbf)]='second',_0x54ce11;}({}),_0x4cd535=function(_0x41ac7d){const _0x32d7b9=_0x973ad6;return _0x41ac7d[_0x32d7b9(0x29a)]=_0x32d7b9(0x3d2),_0x41ac7d[_0x32d7b9(0x371)]=_0x32d7b9(0x255),_0x41ac7d[_0x32d7b9(0x15f)]=_0x32d7b9(0xfc),_0x41ac7d[_0x32d7b9(0x24f)]='date',_0x41ac7d[_0x32d7b9(0x32c)]=_0x32d7b9(0x3e2),_0x41ac7d[_0x32d7b9(0x356)]=_0x32d7b9(0x432),_0x41ac7d[_0x32d7b9(0xcf)]=_0x32d7b9(0xd9),_0x41ac7d[_0x32d7b9(0x42a)]=_0x32d7b9(0xd3),_0x41ac7d[_0x32d7b9(0x2fa)]='year-month',_0x41ac7d[_0x32d7b9(0x142)]=_0x32d7b9(0x1e3),_0x41ac7d[_0x32d7b9(0x119)]='year-month-date',_0x41ac7d;}({}),_0x36cca4=function(_0x4f62f6){const _0x56a010=_0x973ad6;return _0x4f62f6[_0x56a010(0x14d)]='member',_0x4f62f6['Condition']=_0x56a010(0x25f),_0x4f62f6[_0x56a010(0x3e8)]=_0x56a010(0x226),_0x4f62f6;}({});function _0x4255ab(_0xca28af){const _0x2169e6=_0x973ad6;return Number[_0x2169e6(0x3b9)](_0xca28af)&&_0xca28af>=0x10&&_0xca28af<=0x17;}function _0x494aed(_0x1af25b){const _0x2e1e47=_0x973ad6;return(_0x1af25b==null?void 0x0:_0x1af25b[_0x2e1e47(0x37a)])===0x1&&_0x4255ab(_0x1af25b[_0x2e1e47(0x2d3)]);}function _0x8788d8(_0x210c07){const _0x565406=_0x973ad6;if(!_0x494aed(_0x210c07)||_0x210c07[_0x565406(0x317)]!==void 0x0&&typeof _0x210c07[_0x565406(0x317)]!=_0x565406(0x3bd))throw TypeError('Invalid\x20pivot\x20date\x20filter.');let _0x4b9399=_0x210c07[_0x565406(0x2d3)]===0x10||_0x210c07[_0x565406(0x2d3)]===0x14,_0x2d590e=_0x4b9399?_0x210c07[_0x565406(0x3ba)]:[_0x210c07[_0x565406(0x3ba)]];if(!Array[_0x565406(0x454)](_0x2d590e)||_0x2d590e[_0x565406(0x155)]!==(_0x4b9399?0x2:0x1)||_0x2d590e[_0x565406(0x2b4)](_0x351e53=>typeof _0x351e53!=_0x565406(0x347)||!Number['isFinite'](_0x351e53))||_0x4b9399&&_0x2d590e[0x0]>_0x2d590e[0x1])throw RangeError(_0x565406(0x126));let _0x2e2a29=_0x210c07[_0x565406(0x317)]===!0x0,_0x167473=_0x2e2a29?Math[_0x565406(0x433)](_0x2d590e[0x0]):_0x2d590e[0x0],_0x5a49cb=_0x2e2a29?Math[_0x565406(0x433)](_0x2d590e[0x1]):_0x2d590e[0x1],_0x3151c5=_0x210c07[_0x565406(0x2d3)];return _0x5a92b5=>{const _0x180823=_0x565406;if(!Number[_0x180823(0x1dc)](_0x5a92b5))return!0x1;let _0x3bfe0b=_0x2e2a29?Math[_0x180823(0x433)](_0x5a92b5):_0x5a92b5;switch(_0x3151c5){case 0x10:return _0x3bfe0b>=_0x167473&&_0x3bfe0b<=_0x5a49cb;case 0x14:return _0x3bfe0b<_0x167473||_0x3bfe0b>_0x5a49cb;case 0x11:return _0x3bfe0b===_0x167473;case 0x15:return _0x3bfe0b!==_0x167473;case 0x12:return _0x3bfe0b>_0x167473;case 0x13:return _0x3bfe0b>=_0x167473;case 0x16:return _0x3bfe0b<_0x167473;case 0x17:return _0x3bfe0b<=_0x167473;default:return!0x1;}};}function _0x121f25(_0x38217a){const _0x4c0cec=_0x973ad6;return typeof _0x38217a==_0x4c0cec(0x131)&&!!_0x38217a&&!Array[_0x4c0cec(0x454)](_0x38217a)&&'v'in _0x38217a&&typeof _0x38217a['v']==_0x4c0cec(0x347)&&'f'in _0x38217a&&typeof _0x38217a['f']==_0x4c0cec(0x14b);}function _0x134f06(_0x278cb5){const _0x2d89ba=_0x973ad6;return typeof _0x278cb5==_0x2d89ba(0x131)&&!!_0x278cb5&&!Array[_0x2d89ba(0x454)](_0x278cb5)&&_0x2d89ba(0x2d0)in _0x278cb5&&typeof _0x278cb5['error']=='string';}function _0x3fe34c(_0x594ba2){const _0x483255=_0x973ad6;let {operator:_0x382c2c,expected:_0xe62019}=_0x594ba2,_0xafe8e2=String(Array[_0x483255(0x454)](_0xe62019)?_0xe62019[0x0]:_0xe62019),_0x208f12=Array[_0x483255(0x454)](_0xe62019)?String(_0xe62019[0x1]):_0xafe8e2;return _0x361e78=>{const _0x516944=_0x483255;switch(_0x382c2c){case 0x1:return _0x361e78['startsWith'](_0xafe8e2);case 0x2:return _0x361e78>=_0xafe8e2&&_0x361e78<=_0x208f12;case 0x3:return _0x361e78[_0x516944(0x180)](_0xafe8e2);case 0x4:return _0x361e78[_0x516944(0x308)](_0xafe8e2);case 0x5:return _0x361e78===_0xafe8e2;case 0x6:return _0x361e78>_0xafe8e2;case 0x7:return _0x361e78>=_0xafe8e2;case 0x8:return _0x361e78<_0xafe8e2;case 0x9:return _0x361e78<=_0xafe8e2;case 0xa:return!_0x361e78[_0x516944(0x43e)](_0xafe8e2);case 0xb:return _0x361e78<_0xafe8e2||_0x361e78>_0x208f12;case 0xc:return!_0x361e78[_0x516944(0x180)](_0xafe8e2);case 0xd:return!_0x361e78[_0x516944(0x308)](_0xafe8e2);case 0xe:return _0x361e78!==_0xafe8e2;default:throw TypeError(_0x516944(0x368));}};}function _0x3bf3d4(_0x3da204){switch(_0x3da204){case 0xf:case 0x2c:case 0x39:case 0x3a:case 0x3b:case 0x3c:case 0x3d:case 0x3e:case 0x3f:case 0x40:return!0x0;default:return!0x1;}}function _0x2669e0(_0x3baaa5,_0xc5e82,_0x3da84c){const _0x4d75f4=_0x973ad6;let _0x473284=Math[_0x4d75f4(0x411)](_0x3baaa5['length'],Math['max'](0x0,Math[_0x4d75f4(0xab)](_0xc5e82)));if(_0x473284===0x0)return;if(_0x473284===_0x3baaa5['length']){let _0x33c771=_0x3baaa5[0x0];for(let _0x5f5a74=0x1;_0x5f5a74<_0x3baaa5['length'];_0x5f5a74++)_0x33c771=_0x3da84c?Math[_0x4d75f4(0x18f)](_0x33c771,_0x3baaa5[_0x5f5a74]):Math[_0x4d75f4(0x411)](_0x33c771,_0x3baaa5[_0x5f5a74]);return _0x33c771;}let _0x35bb16=[],_0x238258=_0x26e469=>{const _0x130ea8=_0x4d75f4;_0x35bb16[_0x130ea8(0x1b4)](_0x26e469);let _0x506627=_0x35bb16[_0x130ea8(0x155)]-0x1;for(;_0x506627>0x0;){let _0x5c1686=Math[_0x130ea8(0x433)]((_0x506627-0x1)/0x2);if(_0x35bb16[_0x5c1686]<=_0x35bb16[_0x506627])break;[_0x35bb16[_0x5c1686],_0x35bb16[_0x506627]]=[_0x35bb16[_0x506627],_0x35bb16[_0x5c1686]],_0x506627=_0x5c1686;}},_0x522af2=_0x2c0be6=>{const _0x14fd7f=_0x4d75f4;_0x35bb16[0x0]=_0x2c0be6;let _0x1e7013=0x0;for(;;){let _0x5e4b67=_0x1e7013*0x2+0x1,_0x36e0a5=_0x5e4b67+0x1,_0x308525=_0x1e7013;if(_0x5e4b67<_0x35bb16[_0x14fd7f(0x155)]&&_0x35bb16[_0x5e4b67]<_0x35bb16[_0x308525]&&(_0x308525=_0x5e4b67),_0x36e0a5<_0x35bb16['length']&&_0x35bb16[_0x36e0a5]<_0x35bb16[_0x308525]&&(_0x308525=_0x36e0a5),_0x308525===_0x1e7013)break;[_0x35bb16[_0x1e7013],_0x35bb16[_0x308525]]=[_0x35bb16[_0x308525],_0x35bb16[_0x1e7013]],_0x1e7013=_0x308525;}};for(let _0x4c8f23 of _0x3baaa5){let _0x36fc66=_0x3da84c?-_0x4c8f23:_0x4c8f23;_0x35bb16[_0x4d75f4(0x155)]<_0x473284?_0x238258(_0x36fc66):_0x36fc66>_0x35bb16[0x0]&&_0x522af2(_0x36fc66);}return _0x3da84c?-_0x35bb16[0x0]:_0x35bb16[0x0];}function _0xbe72fb(_0x3f566b){const _0x495a1c=_0x973ad6;let {operator:_0x299325,expected:_0x4c7a76}=_0x3f566b;switch(_0x299325){case 0x39:return _0x8f2e65=>_0x8f2e65>=_0x4c7a76[0x0]&&_0x8f2e65<=_0x4c7a76[0x1];case 0x3a:return _0x1b2db8=>_0x1b2db8===_0x4c7a76;case 0x3b:return _0x69b429=>_0x69b429>_0x4c7a76;case 0x3c:return _0x8dcef7=>_0x8dcef7>=_0x4c7a76;case 0x3d:return _0x2465f9=>_0x2465f9<_0x4c7a76;case 0x3e:return _0x9d6c8a=>_0x9d6c8a<=_0x4c7a76;case 0x3f:return _0x388893=>_0x388893<_0x4c7a76[0x0]||_0x388893>_0x4c7a76[0x1];case 0x40:return _0x56da5a=>_0x56da5a!==_0x4c7a76;default:return console[_0x495a1c(0x2d0)](_0x495a1c(0x384)+_0x299325),()=>!0x0;}}function _0x18b6d7(_0x2e97bc){const _0x32c4e1=_0x973ad6;let _0x34096f=new Set(),_0xb64050=_0x2e97bc[_0x32c4e1(0x3e9)];return(_0xb64050==null?void 0x0:_0xb64050['type'])===0x4?(_0x550776({'type':0x4,'selection':_0xb64050[_0x32c4e1(0x39c)]})&&_0x34096f['add'](_0x32c4e1(0x2cf)),_0xb64050[_0x32c4e1(0x3a6)]!==void 0x0&&_0x34096f[_0x32c4e1(0x1d4)](_0x32c4e1(0x25f))):_0xb64050&&_0x205762(_0xb64050)&&_0x34096f[_0x32c4e1(0x1d4)](_0xb64050[_0x32c4e1(0x37a)]===0x1?_0x32c4e1(0x25f):'member'),_0x2e97bc['conditionFilter']&&_0x34096f[_0x32c4e1(0x1d4)](_0x32c4e1(0x25f)),_0x34096f;}function _0x490b64(_0x576890){const _0xfc4491=_0x973ad6;let _0x255d29=new Map();for(let _0x199284 of Object[_0xfc4491(0x1ce)](_0x576890[_0xfc4491(0x282)])){var _0x172428;let _0x5b1d84=_0x255d29['get'](_0x199284[_0xfc4491(0x2a7)])??new Set();if(_0x18b6d7(_0x199284)['forEach'](_0x226424=>_0x5b1d84['add'](_0x226424)),(_0x172428=_0x576890[_0xfc4491(0x350)])!=null&&_0x172428['some'](_0x5d7a42=>_0x5d7a42[_0xfc4491(0xe9)]===_0x199284['id'])&&_0x5b1d84['add'](_0xfc4491(0x226)),_0x5b1d84['size']>0x1)return!0x0;_0x255d29[_0xfc4491(0xf5)](_0x199284[_0xfc4491(0x2a7)],_0x5b1d84);}return!0x1;}function _0x3cc8ed(_0x387441){const _0x5b0d07=_0x973ad6;if(_0x387441==null)return{'type':_0x4f2705[_0x5b0d07(0x171)][_0x5b0d07(0x443)]};if(typeof _0x387441==_0x5b0d07(0x14b))return{'type':_0x4f2705[_0x5b0d07(0x171)][_0x5b0d07(0x101)],'value':_0x387441};if(typeof _0x387441==_0x5b0d07(0x347)){if(!Number[_0x5b0d07(0x1dc)](_0x387441))throw RangeError(_0x5b0d07(0x20d));return{'type':_0x4f2705[_0x5b0d07(0x171)][_0x5b0d07(0x32a)],'value':_0x387441};}if(typeof _0x387441==_0x5b0d07(0x3bd))return{'type':_0x4f2705[_0x5b0d07(0x171)][_0x5b0d07(0x3f9)],'value':_0x387441};if(_0x134f06(_0x387441))return{'type':_0x4f2705[_0x5b0d07(0x171)][_0x5b0d07(0x27a)],'value':_0x387441[_0x5b0d07(0x2d0)]};if(_0x121f25(_0x387441)){if(!Number[_0x5b0d07(0x1dc)](_0x387441['v']))throw RangeError(_0x5b0d07(0x44b));return{'type':_0x4f2705['RecordValueType']['Date'],'value':_0x387441['v']};}throw TypeError(_0x5b0d07(0x355));}function _0x25bc39(_0x4da4ed){const _0xd57028=_0x973ad6;let _0xe14c62=_0x4da4ed;if(!_0x2fabe4(_0xe14c62)||_0xe14c62[_0xd57028(0x37a)]!==0x4)throw TypeError(_0xd57028(0x110));let {selection:_0x3f6244,dateRange:_0x45ff90}=_0xe14c62;if(_0x2fabe4(_0x45ff90)&&_0x45ff90[_0xd57028(0x317)]!==void 0x0&&typeof _0x45ff90[_0xd57028(0x317)]!='boolean')throw TypeError(_0xd57028(0x3c5));if(_0x3f6244!==void 0x0){if(!_0x2fabe4(_0x3f6244)||typeof _0x3f6244[_0xd57028(0x412)]!=_0xd57028(0x14b))throw TypeError(_0xd57028(0x22b));if(_0x3f6244[_0xd57028(0x412)]===_0x4f2705[_0xd57028(0x251)][_0xd57028(0xff)]){if('values'in _0x3f6244)throw TypeError('All\x20selection\x20cannot\x20contain\x20values.');}else{if(_0x3f6244[_0xd57028(0x412)]!==_0x4f2705[_0xd57028(0x251)]['Include']&&_0x3f6244[_0xd57028(0x412)]!==_0x4f2705['FilterSelectionMode'][_0xd57028(0x3a7)]||!Array[_0xd57028(0x454)](_0x3f6244[_0xd57028(0x1ce)]))throw TypeError('Invalid\x20pivot\x20record\x20selection.');else _0x3f6244[_0xd57028(0x1ce)]['forEach'](_0x4f2705['getRecordValueKey']);}}if(_0x45ff90!==void 0x0&&(!_0x2fabe4(_0x45ff90)||typeof _0x45ff90[_0xd57028(0x2e2)]!=_0xd57028(0x347)||typeof _0x45ff90[_0xd57028(0x11e)]!='number'||!Number[_0xd57028(0x1dc)](_0x45ff90[_0xd57028(0x2e2)])||!Number[_0xd57028(0x1dc)](_0x45ff90[_0xd57028(0x11e)])||_0x45ff90[_0xd57028(0x2e2)]>_0x45ff90[_0xd57028(0x11e)]))throw RangeError(_0xd57028(0x297));}function _0x47ba55(_0x12afb7){const _0x366fd3=_0x973ad6;return(_0x12afb7==null?void 0x0:_0x12afb7[_0x366fd3(0x37a)])===0x4;}function _0x205762(_0x182e57){const _0x3804f2=_0x973ad6;return _0x47ba55(_0x182e57)?(_0x25bc39(_0x182e57),_0x550776(_0x182e57)):_0x182e57['type']!==0x3||_0x182e57[_0x3804f2(0x19f)]!==!0x0;}function _0x550776(_0x254885){const _0x19a448=_0x973ad6;var _0x202b7c,_0x43fbd8;return _0x254885[_0x19a448(0x3a6)]!==void 0x0||((_0x202b7c=_0x254885[_0x19a448(0x39c)])==null?void 0x0:_0x202b7c['mode'])===_0x4f2705[_0x19a448(0x251)][_0x19a448(0x31a)]||((_0x43fbd8=_0x254885[_0x19a448(0x39c)])==null?void 0x0:_0x43fbd8[_0x19a448(0x412)])===_0x4f2705[_0x19a448(0x251)]['Exclude']&&_0x254885[_0x19a448(0x39c)][_0x19a448(0x1ce)][_0x19a448(0x155)]>0x0;}function _0x117c74(_0x339448){const _0x4463b6=_0x973ad6;if(_0x339448)switch(_0x339448[_0x4463b6(0x37a)]){case 0x4:return _0x25bc39(_0x339448),{'type':0x4,..._0x339448[_0x4463b6(0x39c)]===void 0x0?null:{'selection':_0x339448[_0x4463b6(0x39c)]['mode']===_0x4f2705[_0x4463b6(0x251)][_0x4463b6(0xff)]?{'mode':_0x4f2705[_0x4463b6(0x251)][_0x4463b6(0xff)]}:{'mode':_0x339448[_0x4463b6(0x39c)]['mode'],'values':_0x339448[_0x4463b6(0x39c)][_0x4463b6(0x1ce)][_0x4463b6(0x3cb)](_0x3a1350=>_0x3a1350['type']===_0x4f2705[_0x4463b6(0x171)][_0x4463b6(0x443)]?{'type':_0x4f2705[_0x4463b6(0x171)][_0x4463b6(0x443)]}:{..._0x3a1350})}},..._0x339448[_0x4463b6(0x3a6)]===void 0x0?null:{'dateRange':{..._0x339448[_0x4463b6(0x3a6)]}}};case 0x3:return{..._0x339448,'list':_0x339448[_0x4463b6(0x364)][_0x4463b6(0x383)]()};case 0x1:return(_0x339448[_0x4463b6(0x317)]!==void 0x0||_0x4255ab(_0x339448[_0x4463b6(0x2d3)]))&&_0x8788d8(_0x339448),{..._0x339448,'expected':Array['isArray'](_0x339448[_0x4463b6(0x3ba)])?_0x339448[_0x4463b6(0x3ba)][_0x4463b6(0x383)]():_0x339448[_0x4463b6(0x3ba)]};case 0x2:return{..._0x339448,'expected':Array[_0x4463b6(0x454)](_0x339448[_0x4463b6(0x3ba)])?_0x339448[_0x4463b6(0x3ba)][_0x4463b6(0x383)]():_0x339448['expected']};default:throw TypeError(_0x4463b6(0x26b));}}function _0x2fabe4(_0x16db40){const _0x1321e3=_0x973ad6;return typeof _0x16db40==_0x1321e3(0x131)&&!!_0x16db40&&!Array[_0x1321e3(0x454)](_0x16db40);}let _0x3f81ff=function(_0x59aad5){const _0x2d614e=_0x973ad6;return _0x59aad5[_0x59aad5[_0x2d614e(0x3ee)]=0x0]=_0x2d614e(0x3ee),_0x59aad5[_0x59aad5[_0x2d614e(0x1bc)]=0x1]='SetSubtotalType',_0x59aad5[_0x59aad5['RemoveField']=0x2]=_0x2d614e(0x1b5),_0x59aad5[_0x59aad5[_0x2d614e(0x3ac)]=0x3]=_0x2d614e(0x3ac),_0x59aad5[_0x59aad5[_0x2d614e(0x291)]=0x4]=_0x2d614e(0x291),_0x59aad5[_0x59aad5[_0x2d614e(0xf7)]=0x5]=_0x2d614e(0xf7),_0x59aad5[_0x59aad5[_0x2d614e(0x194)]=0x6]=_0x2d614e(0x194),_0x59aad5[_0x59aad5[_0x2d614e(0x26a)]=0x7]=_0x2d614e(0x26a),_0x59aad5[_0x59aad5['SetOptions']=0x8]=_0x2d614e(0x22d),_0x59aad5[_0x59aad5[_0x2d614e(0x2ac)]=0x9]=_0x2d614e(0x2ac),_0x59aad5[_0x59aad5['SetCollapse']=0xa]='SetCollapse',_0x59aad5[_0x59aad5[_0x2d614e(0x42f)]=0xb]='UpdateSource',_0x59aad5[_0x59aad5[_0x2d614e(0x3b7)]=0xc]='SetValueFilter',_0x59aad5[_0x59aad5['SetLayout']=0xd]=_0x2d614e(0x1c1),_0x59aad5[_0x59aad5[_0x2d614e(0x30e)]=0xe]=_0x2d614e(0x30e),_0x59aad5;}({}),_0x20923a=function(_0x1152f6){const _0x37d2e7=_0x973ad6;return _0x1152f6[_0x1152f6[_0x37d2e7(0x2f1)]=0x2]=_0x37d2e7(0x2f1),_0x1152f6[_0x1152f6['date']=0x4]=_0x37d2e7(0x136),_0x1152f6[_0x1152f6[_0x37d2e7(0x37f)]=0x8]=_0x37d2e7(0x37f),_0x1152f6;}({}),_0x23bc36=function(_0x1d854a){const _0x14f1f1=_0x973ad6;return _0x1d854a[_0x1d854a[_0x14f1f1(0x2ad)]=0x1]=_0x14f1f1(0x2ad),_0x1d854a[_0x1d854a[_0x14f1f1(0x294)]=0x2]=_0x14f1f1(0x294),_0x1d854a[_0x1d854a[_0x14f1f1(0x399)]=0x3]=_0x14f1f1(0x399),_0x1d854a[_0x1d854a[_0x14f1f1(0x1a8)]=0x4]=_0x14f1f1(0x1a8),_0x1d854a[_0x1d854a[_0x14f1f1(0x141)]=0x5]=_0x14f1f1(0x141),_0x1d854a[_0x1d854a['FilteredSortAsc']=0x6]=_0x14f1f1(0x34c),_0x1d854a[_0x1d854a[_0x14f1f1(0x18e)]=0x7]=_0x14f1f1(0x18e),_0x1d854a[_0x1d854a[_0x14f1f1(0xe3)]=0x8]=_0x14f1f1(0xe3),_0x1d854a[_0x1d854a['FilterNoneSortAsc']=0x9]=_0x14f1f1(0x352),_0x1d854a[_0x1d854a[_0x14f1f1(0x234)]=0xa]='FilterNoneSortDesc',_0x1d854a[_0x1d854a[_0x14f1f1(0xe1)]=0xb]='Collapse',_0x1d854a[_0x1d854a[_0x14f1f1(0x34f)]=0xc]='Expand',_0x1d854a[_0x1d854a['Subtotal']=0xd]=_0x14f1f1(0x41f),_0x1d854a[_0x1d854a[_0x14f1f1(0xea)]=0xe]=_0x14f1f1(0xea),_0x1d854a[_0x1d854a['MultipleGrandTotal']=0xf]=_0x14f1f1(0x157),_0x1d854a;}({});function _0xf71f09(_0x1a50c2){'@babel/helpers - typeof';const _0x2943bc=_0x973ad6;return _0xf71f09=typeof Symbol=='function'&&typeof Symbol[_0x2943bc(0xd0)]==_0x2943bc(0x2c1)?function(_0x565137){return typeof _0x565137;}:function(_0x84f537){const _0x2f8795=_0x2943bc;return _0x84f537&&typeof Symbol=='function'&&_0x84f537[_0x2f8795(0x2aa)]===Symbol&&_0x84f537!==Symbol[_0x2f8795(0x40c)]?_0x2f8795(0x2c1):typeof _0x84f537;},_0xf71f09(_0x1a50c2);}function _0x3c11a1(_0x5433a6,_0x393575){const _0x1df5f5=_0x973ad6;if(_0xf71f09(_0x5433a6)!='object'||!_0x5433a6)return _0x5433a6;var _0x43d108;if(typeof Symbol<'u'&&(_0x43d108=_0x5433a6[Symbol['toPrimitive']])!==void 0x0){var _0x4c2ba2=_0x43d108['call'](_0x5433a6,_0x393575||_0x1df5f5(0x386));if(_0xf71f09(_0x4c2ba2)!=_0x1df5f5(0x131))return _0x4c2ba2;throw TypeError(_0x1df5f5(0x307));}return(_0x393575===_0x1df5f5(0x14b)?String:Number)(_0x5433a6);}function _0x3bb2b6(_0x52aeae){const _0x303714=_0x973ad6;var _0x2cb01f=_0x3c11a1(_0x52aeae,_0x303714(0x14b));return _0xf71f09(_0x2cb01f)==_0x303714(0x2c1)?_0x2cb01f:_0x2cb01f+'';}function _0x5dd0e0(_0x86ad3,_0x24da55,_0xe8d32b){return(_0x24da55=_0x3bb2b6(_0x24da55))in _0x86ad3?Object['defineProperty'](_0x86ad3,_0x24da55,{'value':_0xe8d32b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x86ad3[_0x24da55]=_0xe8d32b,_0x86ad3;}function _0x4cca6a(_0x51fa5c){return typeof _0x51fa5c=='number';}var _0x14f785=class{constructor(){const _0x5b25eb=_0x973ad6;_0x5dd0e0(this,_0x5b25eb(0x1bb),0x0),_0x5dd0e0(this,_0x5b25eb(0x145),0x0),_0x5dd0e0(this,_0x5b25eb(0x1f4),0x0),_0x5dd0e0(this,'_product',0x1),_0x5dd0e0(this,_0x5b25eb(0xb9),0x1/0x0),_0x5dd0e0(this,_0x5b25eb(0x1cd),-0x1/0x0),_0x5dd0e0(this,'_squareSum',0x0);}[_0x973ad6(0x391)](){const _0x47950a=_0x973ad6;return{'sum':this[_0x47950a(0x1bb)],'count':this['_count'],'countN':this[_0x47950a(0x1f4)],'product':this['_product'],'min':this[_0x47950a(0xb9)],'max':this[_0x47950a(0x1cd)],'squareSum':this[_0x47950a(0x12c)]};}[_0x973ad6(0x2f8)](){const _0xa15516=_0x973ad6;this['_sum']=0x0,this['_count']=0x0,this['_countN']=0x0,this['_product']=0x1,this[_0xa15516(0xb9)]=0x1/0x0,this[_0xa15516(0x1cd)]=-0x1/0x0,this[_0xa15516(0x12c)]=0x0;}[_0x973ad6(0x233)](_0x385e8c){const _0x12fd7e=_0x973ad6;_0x385e8c!=null&&(this[_0x12fd7e(0x145)]+=0x1,_0x4cca6a(_0x385e8c)&&(this['_sum']+=_0x385e8c,this[_0x12fd7e(0x1f4)]+=0x1,this[_0x12fd7e(0x115)]*=_0x385e8c,this[_0x12fd7e(0xb9)]=Math[_0x12fd7e(0x411)](this[_0x12fd7e(0xb9)],_0x385e8c),this['_max']=Math[_0x12fd7e(0x18f)](this[_0x12fd7e(0x1cd)],_0x385e8c),this[_0x12fd7e(0x12c)]+=_0x385e8c*_0x385e8c));}['unionTuples'](_0x432c57){const _0x33119b=_0x973ad6;for(let _0x637144 of _0x432c57)this[_0x33119b(0x1bb)]+=_0x637144[_0x33119b(0x1bb)],this['_count']+=_0x637144[_0x33119b(0x145)],this['_countN']+=_0x637144[_0x33119b(0x1f4)],this[_0x33119b(0x115)]*=_0x637144[_0x33119b(0x115)],this[_0x33119b(0xb9)]=Math[_0x33119b(0x411)](this[_0x33119b(0xb9)],_0x637144[_0x33119b(0xb9)]),this[_0x33119b(0x1cd)]=Math['max'](this['_max'],_0x637144[_0x33119b(0x1cd)]),this['_squareSum']+=_0x637144[_0x33119b(0x12c)];}[_0x973ad6(0x264)](_0x813bd4){const _0x293ae2=_0x973ad6;this[_0x293ae2(0x1bb)]+=_0x813bd4[_0x293ae2(0x29d)],this[_0x293ae2(0x145)]+=_0x813bd4[_0x293ae2(0x285)],this['_countN']+=_0x813bd4['countN'],this['_product']*=_0x813bd4[_0x293ae2(0x373)],this[_0x293ae2(0xb9)]=Math[_0x293ae2(0x411)](this[_0x293ae2(0xb9)],_0x813bd4['min']),this[_0x293ae2(0x1cd)]=Math[_0x293ae2(0x18f)](this[_0x293ae2(0x1cd)],_0x813bd4[_0x293ae2(0x18f)]),this[_0x293ae2(0x12c)]+=_0x813bd4[_0x293ae2(0x1b9)];}[_0x973ad6(0x348)](_0x5d74b9){const _0x46048d=_0x973ad6;switch(_0x5d74b9){case 0x9:return this['_sum'];case 0x2:return this[_0x46048d(0x145)];case 0x3:return this[_0x46048d(0x1f4)];case 0x6:return Number[_0x46048d(0x1dc)](this['_product'])?this[_0x46048d(0x115)]:{'errorType':0x2};case 0x5:return this[_0x46048d(0x1f4)]>0x0?this[_0x46048d(0xb9)]:0x0;case 0x4:return this[_0x46048d(0x1f4)]>0x0?this[_0x46048d(0x1cd)]:0x0;case 0x1:return this[_0x46048d(0x1f4)]>0x0?this['_sum']/this[_0x46048d(0x1f4)]:{'errorType':0x1};case 0x7:return this[_0x46048d(0x1f4)]>0x1?Math[_0x46048d(0x396)](Math['max'](0x0,(this[_0x46048d(0x1f4)]*this[_0x46048d(0x12c)]-this[_0x46048d(0x1bb)]*this[_0x46048d(0x1bb)])/(this[_0x46048d(0x1f4)]*(this[_0x46048d(0x1f4)]-0x1)))):{'errorType':0x1};case 0x8:return this[_0x46048d(0x1f4)]>0x0?Math[_0x46048d(0x396)](Math['max'](0x0,(this['_countN']*this['_squareSum']-this[_0x46048d(0x1bb)]*this[_0x46048d(0x1bb)])/(this['_countN']*this[_0x46048d(0x1f4)]))):{'errorType':0x1};case 0xa:return this['_countN']>0x1?Math[_0x46048d(0x18f)](0x0,(this['_countN']*this['_squareSum']-this[_0x46048d(0x1bb)]*this[_0x46048d(0x1bb)])/(this[_0x46048d(0x1f4)]*(this[_0x46048d(0x1f4)]-0x1))):{'errorType':0x1};case 0xb:return this[_0x46048d(0x1f4)]>0x0?Math['max'](0x0,(this[_0x46048d(0x1f4)]*this[_0x46048d(0x12c)]-this[_0x46048d(0x1bb)]*this[_0x46048d(0x1bb)])/(this[_0x46048d(0x1f4)]*this[_0x46048d(0x1f4)])):{'errorType':0x1};}}};function _0x1b1bf4(_0x858284){const _0x4b2a06=_0x973ad6;return(_0x858284==null?void 0x0:_0x858284[_0x4b2a06(0x310)])??_0x4b2a06(0x3ce);}function _0x5f172d(_0x4eee31){return _0x4eee31==null||_0x4eee31==='';}function _0x44c3b6(_0xd60f68){return _0xd60f68===0x2||_0xd60f68===0x1||_0xd60f68===0x4||_0xd60f68===0x5;}function _0x347249(_0x2ec4e8){return _0x2ec4e8===0x2||_0x2ec4e8===0x1;}function _0x47005a(_0x290bbf,_0x4b2b32){const _0x536d42=_0x973ad6;let _0x98e8f3='';switch(_0x4b2b32){case 0x1:_0x98e8f3=_0x536d42(0x35c)+_0x290bbf;break;case 0x2:_0x98e8f3='Count\x20of\x20'+_0x290bbf;break;case 0x3:_0x98e8f3=_0x536d42(0x2f2)+_0x290bbf;break;case 0x4:_0x98e8f3=_0x536d42(0x440)+_0x290bbf;break;case 0x5:_0x98e8f3='Min\x20of\x20'+_0x290bbf;break;case 0x6:_0x98e8f3=_0x536d42(0xda)+_0x290bbf;break;case 0x7:_0x98e8f3='Standard\x20Deviation\x20of\x20'+_0x290bbf;break;case 0x8:_0x98e8f3=_0x536d42(0x273)+_0x290bbf;break;case 0x9:_0x98e8f3=_0x536d42(0x2af)+_0x290bbf;break;case 0xa:_0x98e8f3=_0x536d42(0x1c9)+_0x290bbf;break;case 0xb:_0x98e8f3=_0x536d42(0xaa)+_0x290bbf;break;default:_0x98e8f3=_0x290bbf;}return _0x98e8f3;}function _0x4a5d5c(_0x2c3f44,_0x36a37d,_0x2689c8){const _0x2d7a2a=_0x973ad6;let _0x24d964=Object[_0x2d7a2a(0x40c)][_0x2d7a2a(0x156)][_0x2d7a2a(0x1f6)](_0x2c3f44,_0x36a37d)?_0x2c3f44[_0x36a37d]:void 0x0,_0x266baa=typeof _0x24d964=='boolean';return _0x2689c8===void 0x0?_0x266baa?_0x24d964:!0x1:_0x266baa?_0x24d964:_0x24d964!=null&&Object[_0x2d7a2a(0x40c)][_0x2d7a2a(0x156)][_0x2d7a2a(0x1f6)](_0x24d964,_0x2689c8)?_0x24d964[_0x2689c8]:!0x1;}function _0x3a5a2a(_0x581ae0){const _0x191ea6=_0x973ad6;return _0x581ae0[_0x191ea6(0x37a)]===0x3;}function _0x355dcd(_0x20d0bd){return _0x20d0bd['type']===0x1;}function _0x50c5c5(_0x27888f){const _0xb291c6=_0x973ad6;let _0x2d6967='';for(let _0x1bc698=0x0;_0x1bc698<_0x27888f;_0x1bc698++){let _0x502b72=Math[_0xb291c6(0x433)](Math[_0xb291c6(0x2d4)]()*0x10);_0x2d6967+=_0x502b72[_0xb291c6(0x346)](0x10);}return _0x2d6967[_0xb291c6(0x25e)]();}function _0x2ace12(_0x505985,_0x210579){const _0x527fc6=_0x973ad6;let _0x472c8f=0x0,_0xe9238a=0x0,_0x43a7f5=[];for(;_0x472c8f<_0x505985[_0x527fc6(0x155)]&&_0xe9238a<_0x210579['length'];)_0x505985[_0x472c8f]===_0x210579[_0xe9238a]?(_0x43a7f5['push'](_0x505985[_0x472c8f]),_0x472c8f++,_0xe9238a++):_0x505985[_0x472c8f]<_0x210579[_0xe9238a]?_0x472c8f++:_0xe9238a++;return _0x43a7f5;}function _0x1c02b4(_0x1c0b60){const _0x23452f=_0x973ad6;if(_0x1c0b60[_0x23452f(0x155)]===0x0)return[];if(_0x1c0b60[_0x23452f(0x155)]===0x1)return _0x1c0b60[0x0];let _0x2610be=_0x1c0b60[0x0];for(let _0x2f73c3=0x1;_0x2f73c3<_0x1c0b60[_0x23452f(0x155)];_0x2f73c3++)_0x2610be=_0x2ace12(_0x2610be,_0x1c0b60[_0x2f73c3]);return _0x2610be;}function _0x13844c(_0x262c1c,_0x4860e8,_0x54839b){const _0xe0443a=_0x973ad6;_0x262c1c[_0xe0443a(0xe5)]||={},_0x4860e8&&!_0x4860e8[_0xe0443a(0xe5)]&&(_0x4860e8[_0xe0443a(0xe5)]={});for(let _0x555d10 in _0x54839b){let _0x3d14f0=_0x54839b[_0x555d10][_0xe0443a(0x2c9)],_0xb38c48=_0x262c1c[_0xe0443a(0x405)][_0x555d10],_0x3fa43e=_0xb38c48[_0xe0443a(0x391)](),{sum:_0x4d78b7,count:_0x4575ac,countN:_0x720228,product:_0x358beb,min:_0x477169,max:_0x59e99e,squareSum:_0x23db8f}=_0x3fa43e;for(let _0x507ce7 of _0x3d14f0)_0x3fa43e[_0x507ce7]=_0xb38c48[_0xe0443a(0x348)](_0x507ce7);_0x262c1c['summary'][_0x555d10]=_0x3fa43e,_0x4860e8&&(_0x4860e8[_0xe0443a(0x405)][_0x555d10]||(_0x4860e8[_0xe0443a(0x405)][_0x555d10]=new _0x14f785()),_0x4860e8[_0xe0443a(0x405)][_0x555d10][_0xe0443a(0x264)]({'sum':_0x4d78b7,'count':_0x4575ac,'countN':_0x720228,'product':_0x358beb,'min':_0x477169,'max':_0x59e99e,'squareSum':_0x23db8f}));}}function _0xa04c5f(_0x14baca){const _0x83d4c1=_0x973ad6;let _0x102f9a=0x1,_0x39a8c3;return _0x14baca?(_0x3a5a2a(_0x14baca)?(_0x14baca[_0x83d4c1(0x364)][_0x83d4c1(0x155)]===0x1&&(_0x102f9a=0x3,_0x39a8c3=_0x14baca[_0x83d4c1(0x364)][0x0]),_0x102f9a=_0x14baca[_0x83d4c1(0x19f)]===!0x0?0x1:0x2):_0x47ba55(_0x14baca)&&(_0x102f9a=_0x205762(_0x14baca)?0x2:0x1),{'value':_0x39a8c3,'status':_0x102f9a}):{'status':_0x102f9a,'value':_0x39a8c3};}function _0x24ba7a(_0x4df0a0,_0x43f30c,_0x1aa9b6){const _0x182313=_0x973ad6;let _0x4ad3e5=!0x1;if(_0x4df0a0&&(_0x3a5a2a(_0x4df0a0)?_0x4ad3e5=_0x4df0a0[_0x182313(0x364)][_0x182313(0x155)]>0x0&&_0x4df0a0[_0x182313(0x19f)]!==!0x0:_0x355dcd(_0x4df0a0)?_0x4ad3e5=!0x0:_0x47ba55(_0x4df0a0)&&(_0x4ad3e5=_0x205762(_0x4df0a0)),_0x1aa9b6&&(_0x4ad3e5=!0x0)),_0x4ad3e5)switch(_0x43f30c==null?void 0x0:_0x43f30c[_0x182313(0x37a)]){case 0x1:return 0x6;case 0x2:return 0x7;default:return 0x5;}else switch(_0x43f30c==null?void 0x0:_0x43f30c[_0x182313(0x37a)]){case 0x1:return 0x9;case 0x2:return 0xa;default:return 0x8;}}function _0x1e1259(_0x140c41,_0x585c89,_0x28036b){const _0xbfaaa8=_0x973ad6;let _0x4cf990=_0x585c89||0x0,_0x419a1d=_0x140c41[_0xbfaaa8(0x31b)](',');return _0x28036b?_0x419a1d+'-'+String(_0x4cf990):_0x419a1d;}var _0x482990=class{constructor(){const _0x22208a=_0x973ad6;_0x5dd0e0(this,_0x22208a(0x122),void 0x0),this[_0x22208a(0x122)]=[];}[_0x973ad6(0x1b4)](_0x14cc4f){const _0xb52555=_0x973ad6;this[_0xb52555(0x122)]['push'](_0x14cc4f),this[_0xb52555(0x3dd)]();}[_0x973ad6(0x2da)](){const _0x14a832=_0x973ad6;if(this[_0x14a832(0xba)]()===0x0)return;let _0x5a8690=this[_0x14a832(0x122)][0x0],_0x528600=this[_0x14a832(0x122)][_0x14a832(0x2da)]();return this[_0x14a832(0xba)]()>0x0&&_0x528600&&(this[_0x14a832(0x122)][0x0]=_0x528600,this[_0x14a832(0x2c7)]()),_0x5a8690;}[_0x973ad6(0xba)](){const _0x490cc5=_0x973ad6;return this[_0x490cc5(0x122)]['length'];}[_0x973ad6(0x3dd)](){const _0x570dca=_0x973ad6;let _0x19f172=this[_0x570dca(0xba)]()-0x1;for(;_0x19f172>0x0;){let _0x4b1880=Math[_0x570dca(0x433)]((_0x19f172-0x1)/0x2);if(this[_0x570dca(0x122)][_0x4b1880][0x0]<=this[_0x570dca(0x122)][_0x19f172][0x0])break;[this['_heap'][_0x4b1880],this[_0x570dca(0x122)][_0x19f172]]=[this[_0x570dca(0x122)][_0x19f172],this[_0x570dca(0x122)][_0x4b1880]],_0x19f172=_0x4b1880;}}[_0x973ad6(0x2c7)](){const _0x1ffaa0=_0x973ad6;let _0x1e1665=0x0,_0x575040=this['size'](),_0x536b54=this[_0x1ffaa0(0x122)][0x0];for(;;){let _0x1bc275=0x2*_0x1e1665+0x1,_0x3909b5=0x2*_0x1e1665+0x2,_0x4c1fc9,_0x4fd0a3,_0x48435f=null;if(_0x1bc275<_0x575040&&(_0x4c1fc9=this[_0x1ffaa0(0x122)][_0x1bc275],_0x4c1fc9[0x0]<_0x536b54[0x0]&&(_0x48435f=_0x1bc275)),_0x3909b5<_0x575040&&(_0x4fd0a3=this['_heap'][_0x3909b5],(_0x48435f===null&&_0x4fd0a3[0x0]<_0x536b54[0x0]||_0x48435f!==null&&_0x4fd0a3[0x0]<_0x4c1fc9[0x0])&&(_0x48435f=_0x3909b5)),_0x48435f===null)break;[this[_0x1ffaa0(0x122)][_0x1e1665],this[_0x1ffaa0(0x122)][_0x48435f]]=[this[_0x1ffaa0(0x122)][_0x48435f],this[_0x1ffaa0(0x122)][_0x1e1665]],_0x1e1665=_0x48435f;}}};function _0xe6a658(_0x383dd6){const _0x185c10=_0x973ad6;let _0x2c68b3=new _0x482990(),_0x4405a9=[];for(let _0x69f087=0x0;_0x69f087<_0x383dd6[_0x185c10(0x155)];_0x69f087++)_0x383dd6[_0x69f087][_0x185c10(0x155)]>0x0&&_0x2c68b3[_0x185c10(0x1b4)]([_0x383dd6[_0x69f087][0x0],_0x69f087,0x0]);for(;_0x2c68b3[_0x185c10(0xba)]()>0x0;){let [_0x57ae05,_0x3df055,_0x1eaacd]=_0x2c68b3[_0x185c10(0x2da)]();if(_0x4405a9[_0x185c10(0x1b4)](_0x57ae05),_0x1eaacd+0x1<_0x383dd6[_0x3df055][_0x185c10(0x155)]){let _0x3c5bd7=_0x383dd6[_0x3df055][_0x1eaacd+0x1];_0x2c68b3['push']([_0x3c5bd7,_0x3df055,_0x1eaacd+0x1]);}}return _0x4405a9;}function _0x422e73(_0x23a1b0,_0x38d458){const _0x297e55=_0x973ad6;if(typeof Intl<'u'&&Intl['Collator']){let _0x4d0cdc=_0x23a1b0&&_0x23a1b0!==_0x38d458?[_0x23a1b0,_0x38d458]:[_0x23a1b0??_0x38d458];for(let _0x357493 of _0x4d0cdc)try{return new Intl[(_0x297e55(0x3d8))](_0x357493,{'usage':'sort','numeric':!0x1,'sensitivity':_0x297e55(0x1d1),'ignorePunctuation':!0x1})[_0x297e55(0x1c0)];}catch{}return new Intl[(_0x297e55(0x3d8))](void 0x0,{'usage':_0x297e55(0x345),'numeric':!0x1,'sensitivity':_0x297e55(0x1d1),'ignorePunctuation':!0x1})['compare'];}return(_0x1679ea,_0x3f67bf)=>_0x1679ea['localeCompare'](_0x3f67bf);}function _0x5f2a0b(_0x4ece54,_0x53c48e,_0x1512d4,_0x3fb07d=_0x422e73()){const _0x2c8485=_0x973ad6;let _0x6ea2de=[],_0xf58239=[],_0x13cf59=[],_0x545da7=[];for(let _0x102dd3=0x0;_0x102dd3<_0x4ece54[_0x2c8485(0x155)];_0x102dd3++){let _0x5e0be6=_0x4ece54[_0x102dd3],_0x592d75=_0x53c48e[_0x102dd3];_0x592d75===0x2?_0x6ea2de[_0x2c8485(0x1b4)](_0x5e0be6):_0x592d75===0x1?_0xf58239[_0x2c8485(0x1b4)](_0x5e0be6):_0x592d75===0x4?_0x13cf59['push'](_0x5e0be6):_0x545da7[_0x2c8485(0x1b4)](_0x5e0be6);}let _0x15c680=(_0x4fdec2,_0x2932b6)=>_0x3fb07d(_0x4fdec2,_0x2932b6)||_0x1512d4[_0x4fdec2]-_0x1512d4[_0x2932b6];_0x6ea2de['sort']((_0x1e4804,_0x1b4246)=>Number(_0x1e4804)-Number(_0x1b4246)),_0xf58239[_0x2c8485(0x345)](_0x15c680),_0x13cf59[_0x2c8485(0x345)]((_0x125b73,_0x2dd070)=>Number(_0x125b73)-Number(_0x2dd070)),_0x545da7[_0x2c8485(0x345)](_0x15c680);let _0x3896e8=[..._0x6ea2de,..._0xf58239,..._0x13cf59,..._0x545da7],_0xb7bd0c={},_0x25129f=0x0;for(let _0x5551f4 of _0x3896e8)_0xb7bd0c[_0x5551f4]=_0x25129f,_0x25129f++;return _0xb7bd0c;}function _0x3192d0(_0x1dc0b7,_0x34be2b,_0xc597ac){const _0x5c5ab0=_0x973ad6;let _0x38524a=_0xbe72fb({'type':0x1,'operator':_0x34be2b,'expected':_0xc597ac}),_0x3deb79=[];for(let [_0x6ffe61,_0xdd31d0]of Object[_0x5c5ab0(0xfb)](_0x1dc0b7))_0x38524a(Number(_0x6ffe61))&&_0x3deb79['push'](_0xdd31d0);return _0x3deb79;}function _0x23ba03(_0x3ef9b6,_0x5b8c4a,_0x4abdc1,_0x4738b6,_0xf6977a,_0x283cd5){const _0x3a9a9f=_0x973ad6;let _0x49c359=(_0x5b8c4a==null?void 0x0:_0x5b8c4a['tuple'][_0x4abdc1])||_0x3ef9b6[_0xf6977a][_0x3a9a9f(0x405)],_0x5a325f=_0x49c359['getInfo']();_0x3ef9b6[_0xf6977a]={'tuple':_0x49c359},_0x3ef9b6[_0x283cd5]===void 0x0&&(_0x3ef9b6[_0x283cd5]={'tuple':new _0x14f785()}),_0x3ef9b6[_0x283cd5]['tuple']['unionTupleInfo'](_0x5a325f);}function _0x471804(_0x1453b6){const _0xd44e76=_0x973ad6;return typeof _0x1453b6!=_0xd44e76(0x347);}function _0x5b7936(_0x2ccde5){const _0x10d060=_0x973ad6;return!(_0x10d060(0x30f)in _0x2ccde5)&&!('sortItems'in _0x2ccde5)&&_0x10d060(0x409)in _0x2ccde5&&_0x2ccde5[_0x10d060(0x37a)]===0x3;}function _0x2a9fe4(_0x22a758,_0x4f90ca=!0x0){const _0x19c7f8=_0x973ad6;return(_0x4f90ca?new Date(Date[_0x19c7f8(0x444)](0x76b,0xb,0x1e)):new Date(Date['UTC'](0x770,0x0,0x1)))[_0x19c7f8(0x107)]()+_0x22a758*0x5265c00;}function _0x272b43(_0xc14fbf){return _0xc14fbf['getDataFieldType']()===0x3;}function _0x385e0d(_0xb5db23){const _0x845f4d=_0x973ad6;return _0xb5db23[_0x845f4d(0x2b6)]()!==0x1;}function _0x2bbd2d(_0x1db5af){const _0x2d421b=_0x973ad6;return _0x1db5af[_0x2d421b(0x270)]===0x3;}function _0x306794(_0x4523d0,_0x4078b2,_0x86a440=!0x0){const _0x12080b=_0x973ad6;let _0x51b0de=_0x2a9fe4(_0x4523d0,_0x86a440),_0x44639d=new Date(_0x51b0de);switch(_0x4078b2){case'year':return''+_0x44639d[_0x12080b(0x263)]();case'month':return''+(_0x44639d['getMonth']()+0x1);case _0x12080b(0x136):return''+_0x44639d[_0x12080b(0x17d)]();case _0x12080b(0x432):return _0x44639d[_0x12080b(0x406)]()+0x1+'_'+_0x44639d[_0x12080b(0x17d)]();case _0x12080b(0x255):return''+_0x44639d[_0x12080b(0x3f4)]();case _0x12080b(0x3d2):return''+_0x44639d[_0x12080b(0x3f0)]();case _0x12080b(0xd9):return''+(Math['floor'](_0x44639d[_0x12080b(0x406)]()/0x3)+0x1);case _0x12080b(0xfc):return _0x44639d[_0x12080b(0x3f4)]()+'_'+_0x44639d['getMinutes']();case _0x12080b(0xcc):return _0x44639d['getFullYear']()+'_'+(_0x44639d[_0x12080b(0x406)]()+0x1);case _0x12080b(0x1e3):return _0x44639d[_0x12080b(0x263)]()+'_'+(Math['floor'](_0x44639d[_0x12080b(0x406)]()/0x3)+0x1);case _0x12080b(0x256):return _0x44639d[_0x12080b(0x263)]()+'_'+(_0x44639d['getMonth']()+0x1)+'_'+_0x44639d['getDate']();}return'';}var _0x28e774=class{[_0x973ad6(0x1c3)](_0x39fc6d){return this['_recordTupleKeys'][_0x39fc6d];}['getTupleItemsMap'](){const _0x45e069=_0x973ad6;return this[_0x45e069(0xd8)];}['getTupleIndexesByKey'](_0x24fc35){return this['_tupleIndexMap'][_0x24fc35]||[];}[_0x973ad6(0x1fd)](_0x53aca2){const _0x538341=_0x973ad6;return this[_0x538341(0x299)][_0x53aca2];}[_0x973ad6(0x424)](_0x10fad6){return this['_tupleTypes'][_0x10fad6];}[_0x973ad6(0xc8)](_0x3b22fd){const _0x2e99d6=_0x973ad6;var _0x4f939b;return((_0x4f939b=this[_0x2e99d6(0x316)][_0x3b22fd])==null?void 0x0:_0x4f939b[_0x2e99d6(0x383)]())||[];}constructor(_0x19df05,_0x5363f0,_0x3a4f66){const _0x2417a9=_0x973ad6;_0x5dd0e0(this,'id',void 0x0),_0x5dd0e0(this,_0x2417a9(0x25a),void 0x0),_0x5dd0e0(this,'hexCode',void 0x0),_0x5dd0e0(this,_0x2417a9(0x3a5),void 0x0),_0x5dd0e0(this,_0x2417a9(0xb7),[]),_0x5dd0e0(this,_0x2417a9(0x1ca),[]),_0x5dd0e0(this,_0x2417a9(0x1b8),[]),_0x5dd0e0(this,'_fieldDataType',0x1),_0x5dd0e0(this,_0x2417a9(0x2dd),!0x1),_0x5dd0e0(this,_0x2417a9(0x32d),!0x1),_0x5dd0e0(this,_0x2417a9(0x198),!0x1),_0x5dd0e0(this,_0x2417a9(0xf4),!0x1),_0x5dd0e0(this,_0x2417a9(0x3b1),!0x1),_0x5dd0e0(this,'hasBoolean',!0x1),_0x5dd0e0(this,'hasError',!0x1),_0x5dd0e0(this,_0x2417a9(0x3bb),''),_0x5dd0e0(this,_0x2417a9(0x2d5),NaN),_0x5dd0e0(this,_0x2417a9(0x35f),NaN),_0x5dd0e0(this,_0x2417a9(0x452),-0x1/0x0),_0x5dd0e0(this,'minDate',0x1/0x0),_0x5dd0e0(this,'_itemIndexMap',void 0x0),_0x5dd0e0(this,_0x2417a9(0x30c),{}),_0x5dd0e0(this,_0x2417a9(0x2db),0x0),_0x5dd0e0(this,_0x2417a9(0xd8),Object[_0x2417a9(0x37c)](null)),_0x5dd0e0(this,_0x2417a9(0x3e6),Object[_0x2417a9(0x37c)](null)),_0x5dd0e0(this,'_tupleLabels',Object[_0x2417a9(0x37c)](null)),_0x5dd0e0(this,_0x2417a9(0x284),Object[_0x2417a9(0x37c)](null)),_0x5dd0e0(this,_0x2417a9(0x441),[]),_0x5dd0e0(this,'_tupleKeysByLabel',Object[_0x2417a9(0x37c)](null)),_0x5dd0e0(this,'_overflowRecordIndexes',new Set()),_0x5dd0e0(this,_0x2417a9(0x2a1),0x0),_0x5dd0e0(this,_0x2417a9(0x174),0x0),this['id']=_0x19df05,this[_0x2417a9(0x25a)]=_0x5363f0,this[_0x2417a9(0x2f3)]=_0x3a4f66,this[_0x2417a9(0x298)]={};}[_0x973ad6(0x14c)](){return this['rangeKey'];}[_0x973ad6(0xb3)](){const _0x448051=_0x973ad6;return this[_0x448051(0x3bb)];}['setRangeKey'](_0x442ca3){this['rangeKey']=_0x442ca3;}['getId'](){return this['id'];}[_0x973ad6(0x1d0)](){const _0xc02a04=_0x973ad6;return this[_0xc02a04(0x25a)];}[_0x973ad6(0x21d)](_0x439281){const _0x4a4672=_0x973ad6;this[_0x4a4672(0x25a)]=_0x439281;}[_0x973ad6(0x42c)](){const _0x5eafeb=_0x973ad6;return this[_0x5eafeb(0x198)]&&!this[_0x5eafeb(0x3b1)]&&!this[_0x5eafeb(0x32d)]&&!this['hasInteger']&&!this[_0x5eafeb(0x10c)]&&!this[_0x5eafeb(0x2ae)]?0x4:(this[_0x5eafeb(0x32d)]||this[_0x5eafeb(0x2dd)])&&!this[_0x5eafeb(0x3b1)]&&!this[_0x5eafeb(0x198)]&&!this['hasBoolean']&&!this[_0x5eafeb(0x2ae)]?0x2:this[_0x5eafeb(0x2a4)];}['getDataFieldType'](){return 0x1;}[_0x973ad6(0xb4)](_0x494506){const _0x362581=_0x973ad6;return this[_0x362581(0x2f3)]+_0x7cc867[_0x362581(0x208)]+this[_0x362581(0x30c)][_0x494506];}[_0x973ad6(0x390)](_0xa524e6){const _0x4fcc8a=_0x973ad6;let _0x477e04=this['records'][_0xa524e6];if(_0x121f25(_0x477e04))return String(_0x477e04['v']);if(_0x5f172d(_0x477e04))return _0x7cc867[_0x4fcc8a(0x1bf)];let _0x3f039e=_0x134f06(_0x477e04)?_0x477e04[_0x4fcc8a(0x2d0)]:String(_0x477e04);return this[_0x4fcc8a(0x30c)][_0x3f039e]===void 0x0?_0x7cc867[_0x4fcc8a(0x3fe)]:_0x3f039e;}[_0x973ad6(0x33c)](_0x1767bc){const _0x2a1c1d=_0x973ad6;return this[_0x2a1c1d(0x1b8)][this['_itemsMap'][_0x1767bc]];}['getValue'](_0xe986e7){return this['records'][_0xe986e7];}[_0x973ad6(0x358)](_0x218207,_0x31ae0b){const _0x305e7f=_0x973ad6;_0x121f25(_0x218207)&&(this[_0x305e7f(0x3bb)]=_0x218207['f'],this[_0x305e7f(0x302)](_0x218207,_0x31ae0b));let _0xe5a334=_0x5f172d(_0x218207);_0xe5a334&&this[_0x305e7f(0x3c4)](_0x31ae0b),typeof _0x218207==_0x305e7f(0x347)&&this[_0x305e7f(0x1fa)](_0x218207,_0x31ae0b),!_0xe5a334&&typeof _0x218207==_0x305e7f(0x14b)&&this[_0x305e7f(0x19d)](_0x218207,_0x31ae0b),typeof _0x218207==_0x305e7f(0x3bd)&&this[_0x305e7f(0x419)](_0x218207,_0x31ae0b),_0x134f06(_0x218207)&&this[_0x305e7f(0x17f)](_0x218207['error'],_0x31ae0b),this[_0x305e7f(0xb7)][_0x305e7f(0x1b4)](_0x218207),this[_0x305e7f(0x2b6)]()===0x1&&this[_0x305e7f(0x3f2)](_0x218207,_0x31ae0b);}[_0x973ad6(0x3f2)](_0x490a5f,_0x1c453b){const _0x12bf05=_0x973ad6;let _0xe7ae82=this[_0x12bf05(0x390)](this['records'][_0x12bf05(0x155)]-0x1),_0xdc90f3=0x1;_0x121f25(_0x490a5f)?_0xdc90f3=0x4:_0x5f172d(_0x490a5f)?_0xdc90f3=0x5:typeof _0x490a5f==_0x12bf05(0x347)?_0xdc90f3=0x2:typeof _0x490a5f==_0x12bf05(0x3bd)?_0xdc90f3=0x3:_0x134f06(_0x490a5f)&&(_0xdc90f3=0x6);let _0x11be3b=_0xdc90f3===0x1&&!_0xe7ae82['startsWith']('[')&&_0xe7ae82!==_0x7cc867[_0x12bf05(0x3fe)]?_0xe7ae82:JSON[_0x12bf05(0x17e)]([_0xdc90f3,_0xe7ae82]);(this['_overflowRecordIndexes']['has'](_0x1c453b)||this[_0x12bf05(0xd8)][_0x11be3b]===void 0x0&&_0xdc90f3!==0x5&&this[_0x12bf05(0x2a1)]>=_0x7cc867['maxLimitItemCount'])&&(_0xe7ae82=_0x7cc867[_0x12bf05(0x3fe)],_0xdc90f3=0x6,_0x11be3b=_0x7cc867[_0x12bf05(0x3fe)]),this[_0x12bf05(0xd8)][_0x11be3b]===void 0x0&&(this[_0x12bf05(0xd8)][_0x11be3b]=this[_0x12bf05(0x174)]++,_0xdc90f3!==0x5&&this[_0x12bf05(0x2a1)]++,this[_0x12bf05(0x3e6)][_0x11be3b]=[],this[_0x12bf05(0x299)][_0x11be3b]=_0xe7ae82,this[_0x12bf05(0x284)][_0x11be3b]=_0xdc90f3,(this[_0x12bf05(0x316)][_0xe7ae82]||=[])[_0x12bf05(0x1b4)](_0x11be3b)),this[_0x12bf05(0x3e6)][_0x11be3b][_0x12bf05(0x1b4)](_0x1c453b),this[_0x12bf05(0x441)]['push'](_0x11be3b);}['getIndexesByKey'](_0x248137){const _0x4d6cdd=_0x973ad6;return this[_0x4d6cdd(0x298)][_0x248137]||[];}['getAllIndexMap'](){const _0x17434b=_0x973ad6;return this[_0x17434b(0x298)];}[_0x973ad6(0x302)](_0x3d2d96,_0x99dab5){const _0x20670b=_0x973ad6;this[_0x20670b(0x198)]||=!0x0,this['maxDate']=Math[_0x20670b(0x18f)](this['maxDate'],_0x3d2d96['v']),this[_0x20670b(0xce)]=Math[_0x20670b(0x411)](this[_0x20670b(0xce)],_0x3d2d96['v']);let _0xb1984=String(_0x3d2d96['v']);this['_updateItemKey'](_0xb1984,_0x99dab5,0x4);}['_updateBlankItemKey'](_0x5cdaaf){const _0x4fb958=_0x973ad6;this[_0x4fb958(0xf4)]||=!0x0;let _0x2e5ae8=_0x7cc867[_0x4fb958(0x1bf)];this[_0x4fb958(0x298)][_0x2e5ae8]===void 0x0?(this[_0x4fb958(0x298)][_0x2e5ae8]=[_0x5cdaaf],this[_0x4fb958(0x1ca)]['push'](_0x2e5ae8),this[_0x4fb958(0x1b8)][_0x4fb958(0x1b4)](0x5),this[_0x4fb958(0x30c)][_0x2e5ae8]=this[_0x4fb958(0x1ca)]['length']-0x1):this[_0x4fb958(0x298)][_0x2e5ae8][_0x4fb958(0x1b4)](_0x5cdaaf);}['_updateStringItemKey'](_0x5e7196,_0x3d82c9){const _0x2cb1b8=_0x973ad6;this[_0x2cb1b8(0x3b1)]||=!0x0,this[_0x2cb1b8(0x21b)](_0x5e7196,_0x3d82c9,0x1);}[_0x973ad6(0x1fa)](_0x2f73c9,_0x466df6){const _0x3e69ca=_0x973ad6;this['hasDecimal']||=_0x2f73c9%0x1!=0x0,this[_0x3e69ca(0x2dd)]||=_0x2f73c9%0x1==0x0,this[_0x3e69ca(0x2d5)]=Math[_0x3e69ca(0x18f)](this[_0x3e69ca(0x2d5)],_0x2f73c9),this[_0x3e69ca(0x35f)]=Math['min'](this[_0x3e69ca(0x35f)],_0x2f73c9);let _0x299b28=String(_0x2f73c9);this[_0x3e69ca(0x21b)](_0x299b28,_0x466df6,0x2);}[_0x973ad6(0x419)](_0x2da59f,_0x15e0f2){const _0x450327=_0x973ad6;this[_0x450327(0x10c)]=!0x0,this[_0x450327(0x21b)](String(_0x2da59f),_0x15e0f2,0x3);}['_updateErrorItemKey'](_0x547b51,_0x387f19){const _0x2c1763=_0x973ad6;this[_0x2c1763(0x2ae)]=!0x0,this[_0x2c1763(0x21b)](_0x547b51,_0x387f19,0x6);}[_0x973ad6(0xd4)](_0x4e4b93){const _0x1cc95b=_0x973ad6;if(this[_0x1cc95b(0x1e9)][_0x1cc95b(0x1d4)](_0x4e4b93),this[_0x1cc95b(0x298)][_0x7cc867['otherDataKey']]===void 0x0){this[_0x1cc95b(0x298)][_0x7cc867[_0x1cc95b(0x3fe)]]=[_0x4e4b93];let _0x13c31c=this['items']['push'](_0x7cc867[_0x1cc95b(0x3fe)]);this[_0x1cc95b(0x30c)][_0x7cc867[_0x1cc95b(0x3fe)]]=_0x13c31c-0x1,this[_0x1cc95b(0x1b8)][_0x1cc95b(0x1b4)](0x6),this['_keyCounter']++;}else this['_itemIndexMap'][_0x7cc867[_0x1cc95b(0x3fe)]][_0x1cc95b(0x1b4)](_0x4e4b93);}[_0x973ad6(0x21b)](_0x398c86,_0x11fa67,_0x4d7fe8){const _0x4c920a=_0x973ad6;if(this[_0x4c920a(0x298)][_0x398c86]===void 0x0){if(this[_0x4c920a(0x2db)]>=_0x7cc867['maxLimitItemCount'])return this['_updateOtherItemKey'](_0x11fa67);this['_itemIndexMap'][_0x398c86]=[_0x11fa67];let _0x3efcbf=this[_0x4c920a(0x1ca)][_0x4c920a(0x1b4)](_0x398c86);this[_0x4c920a(0x30c)][_0x398c86]=_0x3efcbf-0x1,this[_0x4c920a(0x1b8)][_0x4c920a(0x1b4)](_0x4d7fe8),this[_0x4c920a(0x2db)]++;}else this[_0x4c920a(0x298)][_0x398c86][_0x4c920a(0x1b4)](_0x11fa67);}[_0x973ad6(0x3c2)](){return this['_itemsMap'];}[_0x973ad6(0x19e)](){const _0x19b8e6=_0x973ad6;return{'id':this['id'],'name':this['name'],'records':this[_0x19b8e6(0xb7)],'fieldDataType':this[_0x19b8e6(0x42c)](),'maxNumber':this[_0x19b8e6(0x2d5)],'minNumber':this[_0x19b8e6(0x35f)],'maxDate':this['maxDate'],'minDate':this[_0x19b8e6(0xce)],'format':this['format'],'rangeKey':this['rangeKey'],'dataFieldType':this[_0x19b8e6(0x2b6)]()};}[_0x973ad6(0x2e8)](){const _0x3c7f73=_0x973ad6;return{'id':this['id'],'name':this[_0x3c7f73(0x25a)],'fieldDataType':this[_0x3c7f73(0x42c)](),'hexCode':this['hexCode'],'rangeKey':this[_0x3c7f73(0x3a5)],'dataFieldType':this[_0x3c7f73(0x2b6)]()};}['fromJSON'](_0x2dcc94){const _0x5b8760=_0x973ad6;this[_0x5b8760(0x25a)]=_0x2dcc94[_0x5b8760(0x25a)],this['id']=_0x2dcc94['id'],this[_0x5b8760(0x3a5)]=_0x2dcc94[_0x5b8760(0x3a5)],this[_0x5b8760(0x2f3)]=_0x2dcc94[_0x5b8760(0x2f3)];}[_0x973ad6(0x2f8)](){const _0x2679f1=_0x973ad6;this[_0x2679f1(0xb7)]=[],this['items']=[],this[_0x2679f1(0x1b8)]=[],this['_itemIndexMap']={},this['hasInteger']=!0x1,this['hasDecimal']=!0x1,this[_0x2679f1(0x198)]=!0x1,this[_0x2679f1(0xf4)]=!0x1,this[_0x2679f1(0x3b1)]=!0x1,this[_0x2679f1(0x10c)]=!0x1,this[_0x2679f1(0x2ae)]=!0x1,this[_0x2679f1(0x3bb)]='',this[_0x2679f1(0x2d5)]=NaN,this['minNumber']=NaN,this['maxDate']=-0x1/0x0,this[_0x2679f1(0xce)]=0x1/0x0,this[_0x2679f1(0x30c)]={},this[_0x2679f1(0x2db)]=0x0,this[_0x2679f1(0x441)][_0x2679f1(0x155)]=0x0,this[_0x2679f1(0x2a1)]=0x0,this['_tupleItemCounter']=0x0,this[_0x2679f1(0x1e9)][_0x2679f1(0x1fb)]();for(let _0x49bae8 of[this['_tupleItemsMap'],this[_0x2679f1(0x3e6)],this[_0x2679f1(0x299)],this[_0x2679f1(0x284)],this['_tupleKeysByLabel']])for(let _0xc623b6 of Object[_0x2679f1(0x254)](_0x49bae8))delete _0x49bae8[_0xc623b6];}},_0x9953dc=class extends _0x28e774{constructor(..._0x3babfc){const _0x29650d=_0x973ad6;super(..._0x3babfc),_0x5dd0e0(this,_0x29650d(0x3b2),void 0x0);}[_0x973ad6(0x1c3)](_0x13437b){const _0x150c46=_0x973ad6;return this[_0x150c46(0x390)](_0x13437b);}[_0x973ad6(0x415)](){return this['getItemsMap']();}[_0x973ad6(0x195)](_0x390318){const _0x3b1089=_0x973ad6;return this[_0x3b1089(0x229)](_0x390318);}['getTupleLabel'](_0x1a6311){return _0x1a6311;}['getTupleType'](_0x110c2d){const _0x3e1f21=_0x973ad6;return this[_0x3e1f21(0x33c)](_0x110c2d);}[_0x973ad6(0xc8)](_0x2c4c66){const _0x3843c3=_0x973ad6;return this[_0x3843c3(0x3c2)]()[_0x2c4c66]===void 0x0?[]:[_0x2c4c66];}[_0x973ad6(0x19e)](){const _0x5abd38=_0x973ad6;return{...super['getFieldInfo'](),'originalFieldId':this['getOriginFieldId'](),'dataFieldType':this[_0x5abd38(0x2b6)]()};}[_0x973ad6(0x2e8)](){const _0x3531f6=_0x973ad6;return{...super['toJSON'](),'originalFieldId':this[_0x3531f6(0x3b2)]};}};let _0x393a9c=0x3b9aca00,_0x34fe26=['year',_0x973ad6(0xd9),_0x973ad6(0x3e2),_0x973ad6(0x2b9),_0x973ad6(0x255),'minute',_0x973ad6(0x3be)];function _0x46c47d(_0x160c08){const _0x364f81=_0x973ad6;let _0x111edf=0x1/0x0,_0x4b22ce=-0x1/0x0;for(let _0xdfca84 of _0x160c08[_0x364f81(0xb7)]){let _0x274c67=_0xdfca84['v'];_0x111edf=Math[_0x364f81(0x411)](_0x111edf,_0x274c67),_0x4b22ce=Math[_0x364f81(0x18f)](_0x4b22ce,_0x274c67);}return{'start':_0x111edf,'end':_0x4b22ce};}function _0x33a29a(_0x4506df,_0x48d71b){const _0x23f345=_0x973ad6;let {units:_0x679c15,daysInterval:_0x31cad0=0x1}=_0x4506df;if(!_0x679c15[_0x23f345(0x155)]||new Set(_0x679c15)[_0x23f345(0xba)]!==_0x679c15[_0x23f345(0x155)]||_0x679c15[_0x23f345(0x2b4)](_0x1f73c2=>!_0x34fe26[_0x23f345(0x180)](_0x1f73c2))||!Number[_0x23f345(0x3b9)](_0x31cad0)||_0x31cad0<0x1||_0x31cad0>0x1&&(_0x679c15[_0x23f345(0x155)]!==0x1||_0x679c15[0x0]!==_0x23f345(0x2b9)))return;let _0x1cff4b=_0x48d71b[_0x23f345(0xb7)],_0x33a845=_0x7cc867[_0x23f345(0x3a8)];if(!_0x1cff4b['length']||_0x1cff4b[_0x23f345(0x2b4)](_0x302fec=>!_0x121f25(_0x302fec)||!(0x0,_0x4f2705[_0x23f345(0x1b1)])(_0x302fec['v'],{'dateSystem':_0x33a845})))return;let _0x13f406=_0x46c47d(_0x48d71b),_0x403d98=_0x4506df[_0x23f345(0x28b)]?_0x13f406[_0x23f345(0x18d)]:_0x4506df[_0x23f345(0x18d)],_0x53221b=_0x4506df[_0x23f345(0x3fb)]?_0x13f406['end']:_0x4506df[_0x23f345(0x1a0)];if(!(_0x403d98===void 0x0||_0x53221b===void 0x0||_0x403d98>_0x53221b||!(0x0,_0x4f2705[_0x23f345(0x1b1)])(_0x403d98,{'dateSystem':_0x33a845})||!(0x0,_0x4f2705[_0x23f345(0x1b1)])(_0x53221b,{'dateSystem':_0x33a845})))return{..._0x4506df,'units':_0x34fe26[_0x23f345(0x1b6)](_0x3c0a5b=>_0x679c15[_0x23f345(0x180)](_0x3c0a5b))};}let _0xe0ea76=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function _0x27d8df(_0x16ec0c){const _0x4dc3a8=_0x973ad6;return{..._0x16ec0c,..._0x16ec0c[_0x4dc3a8(0x204)]?{'dayLabels':Object[_0x4dc3a8(0x414)]([..._0x16ec0c[_0x4dc3a8(0x204)]])}:{}};}function _0x38c71c(_0x54b09d,_0x1d781c,_0x1a8be0,_0x544afc,_0x3bc9f1){const _0xefbea9=_0x973ad6;if(_0x54b09d[_0xefbea9(0x204)])return _0x54b09d[_0xefbea9(0x204)][_0xe0ea76[_0x544afc-0x1]+_0x3bc9f1-0x1];if(_0x54b09d[_0xefbea9(0xbe)]===!0x1)return _0x3bc9f1;let _0x46e1ba=_0x54b09d[_0xefbea9(0x29e)]??0x1;return Math[_0xefbea9(0x433)](_0x1a8be0)+Math[_0xefbea9(0x433)]((Math[_0xefbea9(0x433)](_0x1d781c)-Math[_0xefbea9(0x433)](_0x1a8be0))/_0x46e1ba)*_0x46e1ba;}var _0x40a922=class extends _0x9953dc{constructor(_0x593d3f,_0x177706,_0x157c06,_0x3e5e1f,_0x18d7c2,_0x59f053){const _0x3f392e=_0x973ad6;super(_0x593d3f,_0x177706,_0x157c06),_0x5dd0e0(this,_0x3f392e(0xb5),!0x0),_0x5dd0e0(this,_0x3f392e(0x430),void 0x0),_0x5dd0e0(this,'_excelLike',void 0x0),this[_0x3f392e(0x3b2)]=_0x3e5e1f,this[_0x3f392e(0x430)]=_0x18d7c2??_0x3f392e(0xd3),this['_excelLike']=_0x59f053&&_0x27d8df(_0x59f053);}[_0x973ad6(0x332)](_0x15c786){const _0x339a19=_0x973ad6;this[_0x339a19(0x430)]=_0x15c786;}[_0x973ad6(0x2cd)](){const _0x1a0ea3=_0x973ad6;return this[_0x1a0ea3(0x430)];}[_0x973ad6(0x1b7)](){return this['_dataIsValid'];}[_0x973ad6(0x217)](_0x242476){const _0x2ddc2=_0x973ad6;if(this[_0x2ddc2(0x2f8)](),this[_0x2ddc2(0xb5)]=!0x0,this[_0x2ddc2(0x1e6)]){this[_0x2ddc2(0x1cf)](_0x242476);return;}let _0x298a3b=_0x242476[_0x2ddc2(0xb7)],_0x2691dd=_0x7cc867['dateSystem']===_0x4f2705['DateSystem'][_0x2ddc2(0x127)];for(let _0x23430e=0x0;_0x23430e<_0x298a3b[_0x2ddc2(0x155)];_0x23430e++){let _0x3de12b=_0x298a3b[_0x23430e];if(_0x3de12b==null)continue;if(!_0x121f25(_0x3de12b)){this['_dataIsValid']=!0x1;break;}let _0x5b7c42=_0x3de12b['v'],_0x1ee0c6=_0x306794(_0x5b7c42,this[_0x2ddc2(0x430)],_0x2691dd);this[_0x2ddc2(0x358)](_0x1ee0c6,_0x23430e);}}[_0x973ad6(0x1cf)](_0x1210c){const _0xf9f76c=_0x973ad6;let _0x290891=this[_0xf9f76c(0x1e6)];if(!_0x33a29a({..._0x290891,'units':[_0x290891[_0xf9f76c(0x436)]]},_0x1210c)||_0x290891[_0xf9f76c(0x204)]&&(_0x290891[_0xf9f76c(0x436)]!==_0xf9f76c(0x2b9)||(_0x290891[_0xf9f76c(0x29e)]??0x1)!==0x1||_0x290891[_0xf9f76c(0x204)]['length']!==0x16e)){this[_0xf9f76c(0xb5)]=!0x1;return;}let _0x5f390a=_0x1210c[_0xf9f76c(0xb7)]['map'](_0x2329f8=>_0x2329f8['v']),_0x290e03=_0x46c47d(_0x1210c),_0x3955b7=_0x290891[_0xf9f76c(0x28b)]?_0x290e03[_0xf9f76c(0x18d)]:_0x290891[_0xf9f76c(0x18d)],_0x966898=_0x290891['autoEnd']?_0x290e03['end']:_0x290891[_0xf9f76c(0x1a0)],_0x3df3b6=_0x7cc867[_0xf9f76c(0x3a8)];for(let _0x1484aa=0x0;_0x1484aa<_0x5f390a['length'];_0x1484aa++){let _0x5c1287=_0x5f390a[_0x1484aa];if(_0x5c1287<_0x3955b7){this[_0xf9f76c(0x358)](-0x1,_0x1484aa);continue;}if(_0x5c1287>_0x966898){this[_0xf9f76c(0x358)](_0x393a9c,_0x1484aa);continue;}let _0x3c4117=(0x0,_0x4f2705['excelSerialToDateTimeParts'])(_0x5c1287,{'dateSystem':_0x3df3b6}),_0xc07757=(_0x5c1287-Math[_0xf9f76c(0x433)](_0x5c1287))*0x15180,_0xbfc738=Math[_0xf9f76c(0x388)](_0xc07757),_0x40c9a6=0x2**-0x34*Math[_0xf9f76c(0x18f)](0x1,Math[_0xf9f76c(0x140)](_0x5c1287))*0x15180,_0x5937fc=Math['min'](0x1517f,Math[_0xf9f76c(0x140)](_0xc07757-_0xbfc738)<=_0x40c9a6?_0xbfc738:Math[_0xf9f76c(0x433)](_0xc07757)),_0x203e9c;switch(_0x290891[_0xf9f76c(0x436)]){case'year':_0x203e9c=_0x3c4117['year'];break;case _0xf9f76c(0xd9):_0x203e9c=Math[_0xf9f76c(0xab)](_0x3c4117[_0xf9f76c(0x3e2)]/0x3);break;case _0xf9f76c(0x3e2):_0x203e9c=_0x3c4117[_0xf9f76c(0x3e2)];break;case'day':_0x203e9c=_0x38c71c(_0x290891,_0x5c1287,_0x3955b7,_0x3c4117[_0xf9f76c(0x3e2)],_0x3c4117['day']);break;case _0xf9f76c(0x255):_0x203e9c=Math[_0xf9f76c(0x433)](_0x5937fc/0xe10);break;case'minute':_0x203e9c=Math['floor'](_0x5937fc/0x3c)%0x3c;break;case _0xf9f76c(0x3be):_0x203e9c=_0x5937fc%0x3c;}this[_0xf9f76c(0x358)](_0x203e9c,_0x1484aa);}}[_0x973ad6(0x394)](){const _0x193da7=_0x973ad6;return{'type':0x3,'dateType':this[_0x193da7(0x430)],...this[_0x193da7(0x1e6)]?{'excelLike':{...this['_excelLike']}}:{}};}['getDataFieldType'](){return 0x3;}['getOriginFieldId'](){const _0x3efc69=_0x973ad6;return this[_0x3efc69(0x3b2)];}[_0x973ad6(0x19e)](){const _0x47e136=_0x973ad6;return{...super[_0x47e136(0x19e)](),'dateType':this[_0x47e136(0x430)],'originalFieldId':this[_0x47e136(0x3b2)],...this['_excelLike']?{'excelLike':{...this[_0x47e136(0x1e6)]}}:{}};}['toJSON'](){const _0x34ce86=_0x973ad6;return{...super['toJSON'](),'dateType':this[_0x34ce86(0x430)],'originalFieldId':this[_0x34ce86(0x3b2)],...this[_0x34ce86(0x1e6)]?{'excelLike':{...this[_0x34ce86(0x1e6)]}}:{}};}[_0x973ad6(0x12f)](_0x4b7b11){const _0x12bc34=_0x973ad6;super[_0x12bc34(0x12f)](_0x4b7b11),this[_0x12bc34(0x430)]=(_0x4b7b11==null?void 0x0:_0x4b7b11[_0x12bc34(0x20b)])??_0x12bc34(0xd3),this[_0x12bc34(0x3b2)]=_0x4b7b11[_0x12bc34(0x3b2)],this['_excelLike']=_0x4b7b11['excelLike']&&_0x27d8df(_0x4b7b11[_0x12bc34(0x2dc)]);}};function _0x241b86(_0x1af0f9,_0x377733,_0x50cf63){const _0x8d6ed2=_0x973ad6;return!!_0x1af0f9&&typeof _0x1af0f9['id']==_0x8d6ed2(0x14b)&&!!_0x1af0f9['id']&&!_0x377733[_0x8d6ed2(0x259)](_0x1af0f9['id'])&&typeof _0x1af0f9[_0x8d6ed2(0x25a)]==_0x8d6ed2(0x14b)&&!!_0x1af0f9['name'][_0x8d6ed2(0x2cb)]()&&!_0x50cf63['has'](_0x1af0f9[_0x8d6ed2(0x25a)])&&Array[_0x8d6ed2(0x454)](_0x1af0f9['members'])&&_0x1af0f9[_0x8d6ed2(0x1eb)][_0x8d6ed2(0x155)]>=0x2;}function _0x3c785c(_0x4097bb,_0x2697af,_0xf89a88){const _0x1c0b08=_0x973ad6;if(!Array[_0x1c0b08(0x454)](_0x4097bb==null?void 0x0:_0x4097bb[_0x1c0b08(0x32e)])||!_0x4097bb[_0x1c0b08(0x32e)][_0x1c0b08(0x155)])return;let _0x4c92ad=new Set();if(_0x2697af)try{for(let _0x19f554 of _0x2697af[_0x1c0b08(0xb7)])_0x4c92ad[_0x1c0b08(0x1d4)]((0x0,_0x4f2705[_0x1c0b08(0x38a)])(_0x3cc8ed(_0x19f554)));}catch{return;}let _0x36c36b=new Map(),_0x3ee9de=_0xf89a88&&_0x3c785c(_0xf89a88);for(let _0x1695ef of(_0x3ee9de==null?void 0x0:_0x3ee9de[_0x1c0b08(0x32e)])??[])_0x36c36b[_0x1c0b08(0xf5)](_0x1695ef['id'],new Set(_0x1695ef['members'][_0x1c0b08(0x3cb)](_0x4f2705[_0x1c0b08(0x38a)])));let _0x1fd834=new Set(),_0x463364=new Set(),_0x53df2b=new Set(),_0x1a8ab7=[];for(let _0x480ffc of _0x4097bb[_0x1c0b08(0x32e)]){if(!_0x241b86(_0x480ffc,_0x1fd834,_0x463364))return;_0x1fd834[_0x1c0b08(0x1d4)](_0x480ffc['id']),_0x463364['add'](_0x480ffc[_0x1c0b08(0x25a)]);let _0xd2adf3=[];for(let _0x550527 of _0x480ffc[_0x1c0b08(0x1eb)]){var _0x2e27d6;let _0x40ee32;try{_0x40ee32=(0x0,_0x4f2705[_0x1c0b08(0x38a)])(_0x550527);}catch{return;}if(_0x53df2b[_0x1c0b08(0x259)](_0x40ee32)||_0x2697af&&!_0x4c92ad[_0x1c0b08(0x259)](_0x40ee32)&&!((_0x2e27d6=_0x36c36b[_0x1c0b08(0x1aa)](_0x480ffc['id']))!=null&&_0x2e27d6[_0x1c0b08(0x259)](_0x40ee32)))return;_0x53df2b[_0x1c0b08(0x1d4)](_0x40ee32),_0xd2adf3[_0x1c0b08(0x1b4)]({..._0x550527});}_0x1a8ab7[_0x1c0b08(0x1b4)]({'id':_0x480ffc['id'],'name':_0x480ffc[_0x1c0b08(0x25a)],'members':_0xd2adf3});}return{'groups':_0x1a8ab7};}var _0x5e7805=class extends _0x9953dc{constructor(_0x3ba609,_0x497f20,_0x48f424,_0x5f4bc8,_0x460bd6){const _0x2ed5af=_0x973ad6;super(_0x3ba609,_0x497f20,_0x48f424),_0x5dd0e0(this,_0x2ed5af(0x418),void 0x0),_0x5dd0e0(this,_0x2ed5af(0xb5),!0x0),_0x5dd0e0(this,_0x2ed5af(0x1df),[]),_0x5dd0e0(this,'_displayNames',new Map()),this['originalFieldId']=_0x5f4bc8,this[_0x2ed5af(0x418)]=_0x3c785c(_0x460bd6)??_0x460bd6;}[_0x973ad6(0x16d)](){const _0x612717=_0x973ad6;return this[_0x612717(0xb5)];}['getGrouping'](){const _0x42810d=_0x973ad6;return _0x3c785c(this[_0x42810d(0x418)])??this[_0x42810d(0x418)];}[_0x973ad6(0x2ff)](_0x5560ef){this['_grouping']=_0x3c785c(_0x5560ef)??_0x5560ef;}[_0x973ad6(0x2f8)](){const _0x52f89e=_0x973ad6;super[_0x52f89e(0x2f8)](),this['_recordKeys']=[],this['_displayNames'][_0x52f89e(0x1fb)]();}[_0x973ad6(0x390)](_0x3b0770){const _0x27260f=_0x973ad6;let _0x51f8fc=this[_0x27260f(0x1df)][_0x3b0770];return this['getItemsMap']()[_0x51f8fc]===void 0x0?_0x7cc867[_0x27260f(0x3fe)]:_0x51f8fc;}[_0x973ad6(0x2e9)](_0x15495d){const _0x135fd1=_0x973ad6;return this['_displayNames'][_0x135fd1(0x1aa)](_0x15495d)??_0x15495d;}[_0x973ad6(0x217)](_0x19637c){const _0x5a0dc0=_0x973ad6;this['reset']();let _0xe02559=_0x3c785c(this[_0x5a0dc0(0x418)]);if(this[_0x5a0dc0(0xb5)]=!!_0xe02559,!_0xe02559)return;let _0x8b1afa=new Map();for(let _0x4196aa of _0xe02559[_0x5a0dc0(0x32e)])for(let _0x19a51a of _0x4196aa['members'])_0x8b1afa[_0x5a0dc0(0xf5)]((0x0,_0x4f2705[_0x5a0dc0(0x38a)])(_0x19a51a),_0x4196aa);for(let _0x392e6e=0x0;_0x392e6e<_0x19637c[_0x5a0dc0(0xb7)]['length'];_0x392e6e++){let _0x309e9d=_0x19637c['records'][_0x392e6e],_0xe7924a,_0x3ec9f3;try{_0xe7924a=_0x3cc8ed(_0x309e9d),_0x3ec9f3=(0x0,_0x4f2705[_0x5a0dc0(0x38a)])(_0xe7924a);}catch{this['reset'](),this[_0x5a0dc0(0xb5)]=!0x1;return;}let _0x5957d8=_0x8b1afa['get'](_0x3ec9f3),_0x30b8cd=JSON[_0x5a0dc0(0x17e)](_0x5957d8?[_0x5a0dc0(0x1e5),_0x5957d8['id']]:[_0x5a0dc0(0x2cf),_0x3ec9f3]),_0x23c4ff=(_0x5957d8==null?void 0x0:_0x5957d8[_0x5a0dc0(0x25a)])??(_0xe7924a[_0x5a0dc0(0x37a)]===_0x4f2705['RecordValueType'][_0x5a0dc0(0x443)]?_0x7cc867[_0x5a0dc0(0x1bf)]:String(_0xe7924a['value'])),_0x3f3856=_0x5957d8?0x1:this['_getMemberType'](_0xe7924a);super[_0x5a0dc0(0x358)](_0x30b8cd,_0x392e6e),this['records'][_0x392e6e]=(_0x5957d8==null?void 0x0:_0x5957d8[_0x5a0dc0(0x25a)])??_0x309e9d,this[_0x5a0dc0(0x1df)][_0x392e6e]=_0x30b8cd,this[_0x5a0dc0(0x36f)][_0x5a0dc0(0xf5)](_0x30b8cd,_0x23c4ff);let _0x5e21ca=this['getItemsMap']()[_0x30b8cd];_0x5e21ca!==void 0x0&&(this[_0x5a0dc0(0x1b8)][_0x5e21ca]=_0x3f3856);}}[_0x973ad6(0x3b8)](_0x9df6c7){const _0x50a691=_0x973ad6;switch(_0x9df6c7[_0x50a691(0x37a)]){case _0x4f2705[_0x50a691(0x171)][_0x50a691(0x443)]:return 0x5;case _0x4f2705[_0x50a691(0x171)][_0x50a691(0x32a)]:return 0x2;case _0x4f2705['RecordValueType'][_0x50a691(0x24f)]:return 0x4;case _0x4f2705[_0x50a691(0x171)][_0x50a691(0x3f9)]:return 0x3;case _0x4f2705[_0x50a691(0x171)]['Error']:return 0x6;default:return 0x1;}}[_0x973ad6(0x394)](){}['getDataFieldType'](){return 0x4;}[_0x973ad6(0x343)](){const _0x42f15e=_0x973ad6;return this[_0x42f15e(0x3b2)];}['toJSON'](){const _0xcac3d5=_0x973ad6;return{...super[_0xcac3d5(0x2e8)](),'dataFieldType':0x4,'grouping':this[_0xcac3d5(0x2a0)]()};}[_0x973ad6(0x12f)](_0x1b7e00){const _0x46d245=_0x973ad6;super[_0x46d245(0x12f)](_0x1b7e00),this[_0x46d245(0x3b2)]=_0x1b7e00['originalFieldId'],this[_0x46d245(0x418)]=_0x3c785c(_0x1b7e00[_0x46d245(0x153)])??_0x1b7e00['grouping'];}};let _0x5a60b8='__number_before__',_0x504b1b=_0x973ad6(0x253);function _0x48a83b(_0x208fec,_0x2fbad4){const _0x161099=_0x973ad6;if(!Number[_0x161099(0x1dc)](_0x208fec[_0x161099(0x2f4)])||_0x208fec[_0x161099(0x2f4)]<=0x0||!_0x2fbad4[_0x161099(0xb7)][_0x161099(0x155)])return;let _0x55995e=0x1/0x0,_0x2b1eb6=-0x1/0x0;for(let _0x2d4367 of _0x2fbad4[_0x161099(0xb7)])if(!_0x5f172d(_0x2d4367)){if(typeof _0x2d4367!=_0x161099(0x347)||!Number[_0x161099(0x1dc)](_0x2d4367))return;_0x55995e=Math[_0x161099(0x411)](_0x55995e,_0x2d4367),_0x2b1eb6=Math[_0x161099(0x18f)](_0x2b1eb6,_0x2d4367);}let _0x465448=_0x208fec[_0x161099(0x28b)]?_0x55995e:_0x208fec[_0x161099(0x18d)],_0x3cb344=_0x208fec[_0x161099(0x3fb)]?_0x2b1eb6:_0x208fec['end'];if(!(_0x465448===void 0x0||_0x3cb344===void 0x0||!Number['isFinite'](_0x465448)||!Number[_0x161099(0x1dc)](_0x3cb344)||_0x465448>_0x3cb344))return{'start':_0x465448,'end':_0x3cb344};}function _0x2c7892(_0x55e822,_0x32d1b5){return _0x48a83b(_0x55e822,_0x32d1b5)?{..._0x55e822}:void 0x0;}function _0x4b348d(_0x48fecc){const _0x158be8=_0x973ad6;let _0x28214e=_0x48a83b({'autoStart':!0x0,'autoEnd':!0x0,'interval':0x1},_0x48fecc);if(!_0x28214e)return;let _0x97abbf=_0x28214e[_0x158be8(0x1a0)]-_0x28214e[_0x158be8(0x18d)];if(!Number[_0x158be8(0x1dc)](_0x97abbf))return;let _0x6239c4=Math[_0x158be8(0x388)](Math[_0x158be8(0x11f)](_0x97abbf||Math[_0x158be8(0x140)](_0x28214e[_0x158be8(0x18d)])||0x1))-0x1,_0x16954a=Math['max'](Number[_0x158be8(0x1af)],0xa**_0x6239c4),_0x25c94e=_0x48fecc[_0x158be8(0xb7)][_0x158be8(0x1f0)](_0x484a4b=>_0x5f172d(_0x484a4b)||Number[_0x158be8(0x3b9)](_0x484a4b));return{'autoStart':!0x0,'autoEnd':!0x0,..._0x28214e,'interval':_0x25c94e?Math[_0x158be8(0x18f)](0x1,_0x16954a):_0x16954a};}var _0x55af82=class extends _0x9953dc{constructor(_0x7e86a9,_0x30969f,_0x2a77b4,_0x4a60f5,_0x21d793){const _0xe5a82d=_0x973ad6;super(_0x7e86a9,_0x30969f,_0x2a77b4),_0x5dd0e0(this,_0xe5a82d(0x418),void 0x0),_0x5dd0e0(this,_0xe5a82d(0xb5),!0x0),_0x5dd0e0(this,_0xe5a82d(0x120),void 0x0),this[_0xe5a82d(0x3b2)]=_0x4a60f5,this[_0xe5a82d(0x418)]={..._0x21d793};}[_0x973ad6(0x149)](){const _0x6e1712=_0x973ad6;return this[_0x6e1712(0xb5)];}[_0x973ad6(0x217)](_0xa355f4){const _0x131a5d=_0x973ad6;this[_0x131a5d(0x2f8)]();let _0x3ef321=_0x48a83b(this[_0x131a5d(0x418)],_0xa355f4);if(this['_bounds']=_0x3ef321,this[_0x131a5d(0xb5)]=!!_0x3ef321,!_0x3ef321)return;let {start:_0x141c6c,end:_0x3f603e}=_0x3ef321,_0x4bf8dd=(_0x3f603e-_0x141c6c)/this['_grouping'][_0x131a5d(0x2f4)];if(!Number[_0x131a5d(0x1dc)](_0x4bf8dd)){this[_0x131a5d(0xb5)]=!0x1,this[_0x131a5d(0x120)]=void 0x0;return;}let _0x5c17c7=Math[_0x131a5d(0x388)](_0x4bf8dd),_0x526307=Math[_0x131a5d(0x411)](0x2**-0x34*0x8*Math[_0x131a5d(0x18f)](0x1,Math[_0x131a5d(0x140)](_0x4bf8dd)),0.000001),_0x1c0b55=Math[_0x131a5d(0x140)](_0x4bf8dd-_0x5c17c7)<=_0x526307?_0x5c17c7:Math[_0x131a5d(0xab)](_0x4bf8dd),_0x585f1b=Math[_0x131a5d(0x18f)](0x0,_0x1c0b55-0x1);for(let _0x5a7032=0x0;_0x5a7032<_0xa355f4[_0x131a5d(0xb7)][_0x131a5d(0x155)];_0x5a7032++){let _0x30c0b8=_0xa355f4[_0x131a5d(0xb7)][_0x5a7032];if(_0x5f172d(_0x30c0b8)){this[_0x131a5d(0x358)](_0x30c0b8,_0x5a7032);continue;}let _0x22aa69=_0x30c0b8,_0x5d1f2c=Math[_0x131a5d(0x411)](0x2**-0x34*0x8*Math[_0x131a5d(0x18f)](Math[_0x131a5d(0x140)](_0x22aa69),Math[_0x131a5d(0x140)](_0x141c6c)),this[_0x131a5d(0x418)][_0x131a5d(0x2f4)]*0.000001),_0x14ee4c=Math[_0x131a5d(0x411)](0x2**-0x34*0x8*Math[_0x131a5d(0x18f)](Math[_0x131a5d(0x140)](_0x22aa69),Math['abs'](_0x3f603e)),this[_0x131a5d(0x418)][_0x131a5d(0x2f4)]*0.000001);if(_0x22aa69<_0x141c6c&&_0x141c6c-_0x22aa69>_0x5d1f2c)this[_0x131a5d(0x358)](_0x5a60b8,_0x5a7032);else{if(_0x22aa69>_0x3f603e&&_0x22aa69-_0x3f603e>_0x14ee4c)this[_0x131a5d(0x358)](_0x504b1b,_0x5a7032);else{let _0x5ecbe0=(Math[_0x131a5d(0x411)](_0x3f603e,Math[_0x131a5d(0x18f)](_0x141c6c,_0x22aa69))-_0x141c6c)/this[_0x131a5d(0x418)][_0x131a5d(0x2f4)];if(!Number[_0x131a5d(0x1dc)](_0x5ecbe0)){this[_0x131a5d(0x2f8)](),this['_dataIsValid']=!0x1;return;}let _0x3f43f7=Math['round'](_0x5ecbe0),_0x28ae36=Math[_0x131a5d(0x411)](0x2**-0x34*0x8*Math[_0x131a5d(0x18f)](0x1,Math['abs'](_0x5ecbe0)),0.000001),_0x4ca455=Math[_0x131a5d(0x411)](_0x585f1b,Math[_0x131a5d(0x140)](_0x5ecbe0-_0x3f43f7)<=_0x28ae36?_0x3f43f7:Math[_0x131a5d(0x433)](_0x5ecbe0)),_0x528e31=Number((_0x141c6c+_0x4ca455*this['_grouping'][_0x131a5d(0x2f4)])['toPrecision'](0xf));this['addRecord'](_0x528e31,_0x5a7032);}}}}[_0x973ad6(0x394)](){const _0x1d2fa1=_0x973ad6;return{'type':0x2,'grouping':{...this[_0x1d2fa1(0x418)],...this['_bounds']}};}[_0x973ad6(0x2b6)](){return 0x2;}['getOriginFieldId'](){const _0x1caa5b=_0x973ad6;return this[_0x1caa5b(0x3b2)];}['toJSON'](){const _0x2c7324=_0x973ad6;return{...super[_0x2c7324(0x2e8)](),'dataFieldType':0x2,'grouping':{...this[_0x2c7324(0x418)]}};}[_0x973ad6(0x12f)](_0x2e491b){const _0x4ceff0=_0x973ad6;super[_0x4ceff0(0x12f)](_0x2e491b),this['originalFieldId']=_0x2e491b[_0x4ceff0(0x3b2)],this[_0x4ceff0(0x418)]={..._0x2e491b[_0x4ceff0(0x153)]};}};function _0x41fb5e(_0x4ea0fb){const _0xab07fa=_0x973ad6;let _0x397dbb;if(_0x2bbd2d(_0x4ea0fb))_0x397dbb=new _0x40a922(_0x4ea0fb['id'],_0x4ea0fb[_0xab07fa(0x25a)],_0x4ea0fb[_0xab07fa(0x2f3)],_0x4ea0fb['originalFieldId']);else{if(_0x4ea0fb[_0xab07fa(0x270)]===0x2){let _0x37cece=_0x4ea0fb;_0x397dbb=new _0x55af82(_0x4ea0fb['id'],_0x4ea0fb[_0xab07fa(0x25a)],_0x4ea0fb[_0xab07fa(0x2f3)],_0x37cece[_0xab07fa(0x3b2)],_0x37cece[_0xab07fa(0x153)]);}else{if(_0x4ea0fb[_0xab07fa(0x270)]===0x4){let _0x395636=_0x4ea0fb;_0x397dbb=new _0x5e7805(_0x4ea0fb['id'],_0x4ea0fb[_0xab07fa(0x25a)],_0x4ea0fb[_0xab07fa(0x2f3)],_0x395636[_0xab07fa(0x3b2)],_0x395636['grouping']);}else _0x397dbb=new _0x28e774(_0x4ea0fb['id'],_0x4ea0fb['name'],_0x4ea0fb[_0xab07fa(0x2f3)]);}}return _0x397dbb[_0xab07fa(0x12f)](_0x4ea0fb),_0x397dbb;}var _0x19c6cd=class _0x21128a{constructor(_0x6067ba){const _0x2163c9=_0x973ad6;_0x5dd0e0(this,'fieldIds',[]),_0x5dd0e0(this,_0x2163c9(0x2f7),{}),_0x5dd0e0(this,_0x2163c9(0x413),{}),_0x5dd0e0(this,_0x2163c9(0x137),void 0x0),_0x5dd0e0(this,_0x2163c9(0x266),void 0x0),_0x5dd0e0(this,'host',void 0x0),this[_0x2163c9(0x3b3)]=_0x6067ba;}[_0x973ad6(0x192)](){const _0x16b1b6=_0x973ad6;return this[_0x16b1b6(0x222)][_0x16b1b6(0x383)]();}[_0x973ad6(0x203)](){const _0x423978=_0x973ad6;return this[_0x423978(0x192)]()[_0x423978(0x3cb)](_0x129695=>this[_0x423978(0x17c)](_0x129695));}[_0x973ad6(0x267)](_0x3e6267){const _0x162bc6=_0x973ad6;for(let _0x5bd870 of this[_0x162bc6(0x222)])if(this[_0x162bc6(0x17c)](_0x5bd870)===_0x3e6267)return _0x5bd870;}[_0x973ad6(0x27d)](){const _0x4152c7=_0x973ad6;let _0x146546=new Map();for(let _0x58413e of this[_0x4152c7(0x222)]){let _0x8f4586=this['getFieldById'](_0x58413e);_0x385e0d(_0x8f4586)&&_0x146546['set'](_0x8f4586[_0x4152c7(0x343)](),_0x8f4586['id']);}return _0x146546;}['getGroupFieldsInfoByIds'](_0xdd8c79){const _0x178bce=_0x973ad6;let _0x14bc7e=[];for(let _0x3fa6f0 of _0xdd8c79){let _0x513734=this[_0x178bce(0x31e)](_0x3fa6f0);if(_0x513734&&!_0x385e0d(_0x513734))for(let _0x34daaa of this[_0x178bce(0x222)]){let _0x4a4577=this[_0x178bce(0x31e)](_0x34daaa);_0x385e0d(_0x4a4577)&&_0x4a4577[_0x178bce(0x343)]()===_0x3fa6f0&&_0x14bc7e[_0x178bce(0x1b4)]([_0x34daaa,_0x3fa6f0]);}}return _0x14bc7e;}[_0x973ad6(0x18c)](_0x52fdb4){const _0xc8ade1=_0x973ad6;return this[_0xc8ade1(0x222)][_0xc8ade1(0x180)](_0x52fdb4);}[_0x973ad6(0xc2)](_0x5a6761){const _0x226f7f=_0x973ad6;return this[_0x226f7f(0x222)][_0x226f7f(0x2b4)](_0x1c8789=>this[_0x226f7f(0x31e)](_0x1c8789)[_0x226f7f(0x25a)]===_0x5a6761);}['setRange'](_0xb5ec83){const _0x192b45=_0x973ad6;_0xb5ec83&&(this[_0x192b45(0x137)]={..._0xb5ec83});}[_0x973ad6(0x1c8)](_0x5b9c07,_0x18c5e5){const _0x1150f2=_0x973ad6;this[_0x1150f2(0x222)][_0x1150f2(0x1b4)](_0x5b9c07);let _0x58d3f7=this[_0x1150f2(0x237)](_0x18c5e5);this[_0x1150f2(0x2f7)][_0x5b9c07]=_0x58d3f7;}['deleteField'](_0x5aec01){const _0xd29b83=_0x973ad6;let _0x2cf8be=this['fieldIds'][_0xd29b83(0x40f)](_0x5aec01);_0x2cf8be!==-0x1&&(this[_0xd29b83(0x222)][_0xd29b83(0x3d4)](_0x2cf8be,0x1),delete this[_0xd29b83(0x2f7)][_0x5aec01]);}[_0x973ad6(0x17c)](_0xcf5172){const _0x1b71f9=_0x973ad6;let _0x24f941=this[_0x1b71f9(0x2f7)][_0xcf5172];return _0x24f941===void 0x0?this['getFieldById'](_0xcf5172)[_0x1b71f9(0x1d0)]():_0x24f941;}[_0x973ad6(0x209)](_0x411288,_0x64012c,_0x4c428a){const _0x226f54=_0x973ad6;this[_0x226f54(0x2f7)][_0x411288]=this['getUniqueDataFieldName'](_0x64012c,_0x4c428a);}[_0x973ad6(0x237)](_0x44bc07,_0x1de776){const _0x1a9397=_0x973ad6;return _0x21128a[_0x1a9397(0x237)](_0x44bc07,_0x1de776||this[_0x1a9397(0x2f7)]);}static[_0x973ad6(0x237)](_0xb6eee1,_0x222a0a){const _0x371636=_0x973ad6;let _0x1dc6d0=new Set(Object[_0x371636(0x1ce)](_0x222a0a)),_0xfb23c3=_0xb6eee1,_0x41d8b7=0x1;if(!_0x1dc6d0[_0x371636(0x259)](_0xfb23c3))return _0xfb23c3;for(;;){if(_0xfb23c3=_0xb6eee1+'('+_0x41d8b7+')',!_0x1dc6d0[_0x371636(0x259)](_0xfb23c3))return _0xfb23c3;_0x41d8b7++;}}[_0x973ad6(0xcd)](){const _0x32a8b8=_0x973ad6;let _0x450cdd={};for(let _0x385ed3 of this[_0x32a8b8(0x222)])_0x450cdd[_0x385ed3]=this[_0x32a8b8(0x237)](this[_0x32a8b8(0x31e)](_0x385ed3)[_0x32a8b8(0x1d0)](),_0x450cdd);this[_0x32a8b8(0x2f7)]=_0x450cdd;}['getFieldById'](_0xb7e0f){const _0x4a25b0=_0x973ad6;return this[_0x4a25b0(0x413)][_0xb7e0f]?this[_0x4a25b0(0x413)][_0xb7e0f]:this[_0x4a25b0(0x3b3)][_0x4a25b0(0xaf)][_0xb7e0f];}['setDataRecordCount'](_0x1f479a){const _0x415c70=_0x973ad6;this[_0x415c70(0x266)]=_0x1f479a;}[_0x973ad6(0x3bf)](){const _0x1398ce=_0x973ad6;return this[_0x1398ce(0x266)];}[_0x973ad6(0x17b)](_0x3e3677){const _0x3c7709=_0x973ad6;for(let _0x1d2c45 of this[_0x3c7709(0x222)])if(this[_0x3c7709(0x31e)](_0x1d2c45)['name']===_0x3e3677)return this[_0x3c7709(0x31e)](_0x1d2c45);}[_0x973ad6(0x19e)](){const _0x542bfc=_0x973ad6;let _0x266308=this[_0x542bfc(0x222)][_0x542bfc(0x3cb)](_0x2df70b=>this[_0x542bfc(0x31e)](_0x2df70b)[_0x542bfc(0x19e)]()),_0x1ae331=Object[_0x542bfc(0x254)](this[_0x542bfc(0x413)])[_0x542bfc(0x3cb)](_0x52c7e6=>this['customFields'][_0x52c7e6][_0x542bfc(0x19e)]());return _0x266308[_0x542bfc(0x383)](_0x1ae331);}[_0x973ad6(0x2e8)](){const _0x144764=_0x973ad6;let _0x5c622d={};for(let _0x3bbce4 of this['fieldIds'])_0x5c622d[_0x3bbce4]=this[_0x144764(0x31e)](_0x3bbce4)[_0x144764(0x2e8)]();return{'fields':_0x5c622d,'fieldIds':this['fieldIds'][_0x144764(0x383)](),'displayNameRecord':{...this[_0x144764(0x2f7)]},'customFields':Object[_0x144764(0x254)](this['customFields'])['map'](_0x24fd9a=>this[_0x144764(0x413)][_0x24fd9a][_0x144764(0x2e8)]()),'dataRecordCount':this[_0x144764(0x266)],'range':this[_0x144764(0x137)]};}[_0x973ad6(0x12f)](_0x117d32){const _0x25fa75=_0x973ad6;this[_0x25fa75(0x222)]=_0x117d32[_0x25fa75(0x222)][_0x25fa75(0x383)](),this[_0x25fa75(0x2f7)]=_0x117d32[_0x25fa75(0x2f7)]?{..._0x117d32[_0x25fa75(0x2f7)]}:{};let _0x538c3c=_0x117d32['fields'];for(let _0x56a502 in _0x538c3c)this[_0x25fa75(0x3b3)][_0x25fa75(0xaf)][_0x56a502]||(this[_0x25fa75(0x3b3)]['dataFields'][_0x56a502]=_0x41fb5e(_0x538c3c[_0x56a502]));this[_0x25fa75(0x413)]={};for(let _0x121ab4 of _0x117d32[_0x25fa75(0x413)]){let _0x21d0ea=_0x41fb5e(_0x121ab4);this[_0x25fa75(0x413)][_0x21d0ea['id']]=_0x21d0ea;}this[_0x25fa75(0x266)]=_0x117d32[_0x25fa75(0x266)],this['range']=_0x117d32['range'];}[_0x973ad6(0x359)](){const _0x4d58a0=_0x973ad6;this[_0x4d58a0(0x222)]=[],this[_0x4d58a0(0x413)]={},this[_0x4d58a0(0x266)]=0x0,delete this[_0x4d58a0(0x3b3)];}},_0x16ef65=class{constructor(){const _0x27bbe8=_0x973ad6;_0x5dd0e0(this,_0x27bbe8(0xaf),{}),_0x5dd0e0(this,_0x27bbe8(0x1a9),{});}[_0x973ad6(0x3cf)](_0x4931cf){const _0x4190e3=_0x973ad6;throw Error(_0x4190e3(0x223));}[_0x973ad6(0x447)](){const _0x17fa8a=_0x973ad6;let _0x2d2abe=_0x50c5c5(0x5);return this['dataFields'][_0x2d2abe]?this[_0x17fa8a(0x447)]():_0x2d2abe;}['getAutoDisplayNameFunction'](){return null;}[_0x973ad6(0x274)](_0x505eae){const _0x58d3e3=_0x973ad6;let _0x56fbfd=this[_0x58d3e3(0x1a9)][_0x505eae][_0x58d3e3(0x192)](),_0x11241e=new Set();for(let _0x2dd3e4 in this['collections'])if(_0x2dd3e4!==_0x505eae){let _0x5d7085=this[_0x58d3e3(0x1a9)][_0x2dd3e4][_0x58d3e3(0x192)]();for(let _0x4e478e of _0x5d7085)_0x11241e['add'](_0x4e478e);}return _0x56fbfd[_0x58d3e3(0x1b6)](_0x13c69f=>!_0x11241e[_0x58d3e3(0x259)](_0x13c69f));}[_0x973ad6(0x246)](_0x4c8e4f,_0x1c5555){const _0x477978=_0x973ad6;this[_0x477978(0x1a9)][_0x4c8e4f]=new _0x19c6cd(this);let {header:_0x52beba,data:_0x1042c8}=this[_0x477978(0xc4)](_0x1c5555),_0x2e8c56=this[_0x477978(0x1a9)][_0x4c8e4f],_0x429898=[];for(let _0x295b5d of _0x52beba){let _0xbe6053=this[_0x477978(0x447)](),_0x419ceb=new _0x28e774(_0xbe6053,_0x295b5d,_0x50c5c5(0x3));this[_0x477978(0xaf)][_0xbe6053]=_0x419ceb,_0x2e8c56['fieldIds'][_0x477978(0x1b4)](_0xbe6053),_0x429898[_0x477978(0x1b4)](_0x419ceb);}let _0x903756=0x0;for(let _0x2197ca of _0x1042c8){let _0x3bc913=0x0;for(let _0x5d0883 of _0x429898)_0x5d0883[_0x477978(0x358)](_0x2197ca[_0x3bc913],_0x903756),_0x3bc913++;_0x903756++;}return _0x2e8c56['setDataRecordCount'](_0x1042c8[_0x477978(0x155)]),_0x2e8c56;}['dispose'](){const _0x617117=_0x973ad6;for(let _0x5ffd98 in this[_0x617117(0x1a9)])this['collections'][_0x5ffd98][_0x617117(0x359)]();this[_0x617117(0x1a9)]={},this[_0x617117(0xaf)]={};}[_0x973ad6(0x2e8)](){const _0xb5c39c=_0x973ad6;let _0x24a531={};for(let _0x321826 in this[_0xb5c39c(0x1a9)])_0x24a531[_0x321826]=this[_0xb5c39c(0x1a9)][_0x321826][_0xb5c39c(0x2e8)]();let _0x3ab446={};for(let _0x419c14 in this['dataFields'])_0x3ab446[_0x419c14]=this['dataFields'][_0x419c14][_0xb5c39c(0x2e8)]();return{'collections':_0x24a531,'dataFields':_0x3ab446};}[_0x973ad6(0x2d7)](_0x206d5f,_0x54a8b8,_0x5384db,..._0x1d82eb){const _0x103cf5=_0x973ad6;this['collections'][_0x206d5f]=_0x54a8b8,_0x54a8b8[_0x103cf5(0x21f)](_0x5384db);}[_0x973ad6(0x12f)](_0x2f4e13){const _0x5c80ea=_0x973ad6;for(let _0x5106fb in _0x2f4e13[_0x5c80ea(0x1a9)]){let _0x36c3cf=new _0x19c6cd(this);_0x36c3cf['fromJSON'](_0x2f4e13['collections'][_0x5106fb]),this[_0x5c80ea(0x2d7)](_0x5106fb,_0x36c3cf,_0x36c3cf[_0x5c80ea(0x137)]);}for(let _0x59b364 in _0x2f4e13[_0x5c80ea(0xaf)])this[_0x5c80ea(0xaf)][_0x59b364]=_0x41fb5e(_0x2f4e13[_0x5c80ea(0xaf)][_0x59b364]);}};let _0x403c72='0.00%';function _0x3dfae7(_0x48ccdb){return _0x48ccdb===0x2||_0x48ccdb===0x3||_0x48ccdb===0x4||_0x48ccdb===0x5||_0x48ccdb===0x6||_0x48ccdb===0x7||_0x48ccdb===0xa||_0x48ccdb===0xc||_0x48ccdb===0xd||_0x48ccdb===0xe;}var _0x30759c=class{constructor(){const _0x570ee6=_0x973ad6;_0x5dd0e0(this,'pageView',new _0x389d12()),_0x5dd0e0(this,'rowView',new _0x2abd94()),_0x5dd0e0(this,_0x570ee6(0x265),new _0x6a7ea()),_0x5dd0e0(this,_0x570ee6(0x2bf),new _0x4c1c4a()),_0x5dd0e0(this,'cornerView',new _0x4c1c4a()),_0x5dd0e0(this,_0x570ee6(0x159),{}),_0x5dd0e0(this,_0x570ee6(0x3eb),{});}[_0x973ad6(0x44f)](_0x5f404a){this['groupInfo']=_0x5f404a;}[_0x973ad6(0x220)](_0x2f50ee,_0x3c78e4){const _0x278234=_0x973ad6;let _0x3b21dc={},_0x5bb5eb=new Set(_0x3c78e4[_0x278234(0x1b6)](_0x575df9=>{const _0xa18222=_0x278234;var _0x322cfe;return _0x3dfae7((_0x322cfe=_0x575df9[_0xa18222(0x210)])==null?void 0x0:_0x322cfe[_0xa18222(0x37a)]);})['map'](_0x5b36f4=>_0x5b36f4['id']));_0x2f50ee['iterateField'](_0x3b6880=>{const _0x3938ea=_0x278234;let _0xde2e4a=_0x3b6880[_0x3938ea(0x423)]();_0xde2e4a?_0x3b21dc[_0x3b6880['id']]=_0xde2e4a:_0x5bb5eb['has'](_0x3b6880['id'])&&(_0x3b21dc[_0x3b6880['id']]=_0x403c72);});for(let _0x24b85d of _0x5bb5eb)_0x3b21dc[_0x24b85d]??=_0x403c72;this[_0x278234(0x159)]=_0x3b21dc;}[_0x973ad6(0x2e8)](){const _0x2e4915=_0x973ad6;let _0x1f4f90={...this['formatMap']};return{'pageView':this[_0x2e4915(0x170)]['toJSON'](),'rowView':this['rowView'][_0x2e4915(0x2e8)](),'colView':this[_0x2e4915(0x265)][_0x2e4915(0x2e8)](),'dataView':this[_0x2e4915(0x2bf)][_0x2e4915(0x2e8)](),'cornerView':this[_0x2e4915(0x3dc)]['toJSON'](),'groupInfo':this[_0x2e4915(0x3eb)],'formatMap':_0x1f4f90};}['formJSON'](_0x23b940){const _0x1f9961=_0x973ad6;this[_0x1f9961(0x170)][_0x1f9961(0x12f)](_0x23b940['pageView']),this[_0x1f9961(0x337)]['fromJSON'](_0x23b940[_0x1f9961(0x337)]),this[_0x1f9961(0x265)]['fromJSON'](_0x23b940[_0x1f9961(0x265)]),this[_0x1f9961(0x2bf)][_0x1f9961(0x12f)](_0x23b940['dataView']),this['cornerView'][_0x1f9961(0x12f)](_0x23b940[_0x1f9961(0x3dc)]),this['formatMap']={..._0x23b940['formatMap']},this[_0x1f9961(0x3eb)]=_0x23b940['groupInfo'];}},_0x4c1c4a=class{constructor(){const _0x168b7b=_0x973ad6;_0x5dd0e0(this,_0x168b7b(0x240),0x0),_0x5dd0e0(this,_0x168b7b(0x2ba),0x0),_0x5dd0e0(this,_0x168b7b(0x41b),{}),_0x5dd0e0(this,_0x168b7b(0x42d),[]),_0x5dd0e0(this,_0x168b7b(0x340),-0x1),_0x5dd0e0(this,_0x168b7b(0x212),-0x1);}['getLastCol'](){const _0x373daa=_0x973ad6;return this[_0x373daa(0x340)];}[_0x973ad6(0x1d7)](){const _0x5f0b44=_0x973ad6;return this[_0x5f0b44(0x212)];}[_0x973ad6(0x3ab)](_0x12f0de,_0x3dc1af,_0x1c6ffb){const _0x30c77f=_0x973ad6;let _0x50c8ee=this[_0x30c77f(0xc6)](_0x12f0de,_0x3dc1af);this[_0x30c77f(0x340)]=Math[_0x30c77f(0x18f)](this[_0x30c77f(0x340)],_0x3dc1af),this[_0x30c77f(0x212)]=Math[_0x30c77f(0x18f)](this[_0x30c77f(0x212)],_0x12f0de),_0x50c8ee['v']=_0x1c6ffb;}['setStyle'](_0x494ab9,_0x2406f8,_0x2f8354){const _0x2ebc81=_0x973ad6;let _0x4750f8=this[_0x2ebc81(0xc6)](_0x494ab9,_0x2406f8);_0x4750f8['s']=_0x2f8354;}[_0x973ad6(0x26c)](_0x3f5d83,_0x54aee4){const _0x5d6424=_0x973ad6;let _0x22a2ea=this[_0x5d6424(0xc6)](_0x3f5d83,_0x54aee4);_0x22a2ea['t']=0x2;}[_0x973ad6(0x13c)](_0x629c9f,_0x32c1b6){const _0x13e5a6=_0x973ad6;let _0x5c06a4=this[_0x13e5a6(0xc6)](_0x629c9f,_0x32c1b6);_0x5c06a4['t']=0x8;}[_0x973ad6(0xc6)](_0x221fb3,_0x403aa0){const _0x30ff18=_0x973ad6;return this[_0x30ff18(0x41b)][_0x221fb3]||(this['data'][_0x221fb3]={}),this[_0x30ff18(0x41b)][_0x221fb3][_0x403aa0]||(this[_0x30ff18(0x41b)][_0x221fb3][_0x403aa0]={}),this[_0x30ff18(0x41b)][_0x221fb3][_0x403aa0];}[_0x973ad6(0x189)](_0x1e8a70,_0x4df99a){const _0x56cee6=_0x973ad6;this[_0x56cee6(0x42d)][_0x1e8a70]=_0x4df99a;}[_0x973ad6(0x314)](_0x6f1ef4){const _0x4c6a1e=_0x973ad6;let _0x3b0572={},_0x525bab=0x0;return this[_0x4c6a1e(0x42d)][_0x4c6a1e(0x351)](_0x301697=>{const _0x35968f=_0x4c6a1e;let _0x2c132a=_0x1e1259(_0x301697[_0x35968f(0x218)],_0x301697['valueIndex'],_0x6f1ef4);_0x3b0572[_0x2c132a]=_0x525bab,_0x525bab++;}),_0x3b0572;}[_0x973ad6(0x252)](_0x6ca12a){this['rowCount']=_0x6ca12a;}[_0x973ad6(0x296)](_0x282523){const _0xaff8be=_0x973ad6;this[_0xaff8be(0x2ba)]=_0x282523;}[_0x973ad6(0xee)](){return this['rowCount'];}[_0x973ad6(0x2c6)](){const _0x551179=_0x973ad6;return this[_0x551179(0x2ba)];}['getValue'](_0x476c5a,_0x3b057c){const _0x24a8da=_0x973ad6;var _0x5dd2b3;return(_0x5dd2b3=this[_0x24a8da(0x41b)][_0x476c5a])==null||(_0x5dd2b3=_0x5dd2b3[_0x3b057c])==null?void 0x0:_0x5dd2b3['v'];}[_0x973ad6(0x20c)](_0x246184,_0x35b270){const _0x39f95a=_0x973ad6;var _0x24e764;return(_0x24e764=this[_0x39f95a(0x41b)][_0x246184])==null||(_0x24e764=_0x24e764[_0x35b270])==null?void 0x0:_0x24e764['s'];}[_0x973ad6(0x2e8)](){const _0x4344b9=_0x973ad6;return{'data':this[_0x4344b9(0x41b)],'info':this[_0x4344b9(0x42d)][_0x4344b9(0x3cb)](_0x3bd9d=>({..._0x3bd9d,'paths':_0x3bd9d[_0x4344b9(0x218)][_0x4344b9(0x383)]()})),'rowCount':this[_0x4344b9(0x240)],'colCount':this['colCount'],'lastCol':this[_0x4344b9(0x340)],'lastRow':this[_0x4344b9(0x212)]};}[_0x973ad6(0x12f)](_0x4afec7){const _0x1557ce=_0x973ad6;this[_0x1557ce(0x41b)]=_0x4afec7[_0x1557ce(0x41b)],this[_0x1557ce(0x42d)]=_0x4afec7[_0x1557ce(0x42d)][_0x1557ce(0x3cb)](_0x48f1d3=>({..._0x48f1d3,'paths':_0x48f1d3[_0x1557ce(0x218)][_0x1557ce(0x383)]()})),this[_0x1557ce(0x240)]=_0x4afec7[_0x1557ce(0x240)],this['colCount']=_0x4afec7[_0x1557ce(0x2ba)],this[_0x1557ce(0x340)]=_0x4afec7[_0x1557ce(0x340)],this[_0x1557ce(0x212)]=_0x4afec7[_0x1557ce(0x212)];}},_0x389d12=class extends _0x4c1c4a{constructor(..._0x1de851){const _0x5abdc8=_0x973ad6;super(..._0x1de851),_0x5dd0e0(this,_0x5abdc8(0x437),[]),_0x5dd0e0(this,'lastCol',-0x1),_0x5dd0e0(this,_0x5abdc8(0x212),-0x1);}['setPageIndex'](_0x500dfe,_0x3dff31,_0x3484cd){const _0x1c139c=_0x973ad6;let _0x4c9834=this[_0x1c139c(0xc6)](_0x500dfe,_0x3dff31);_0x4c9834['i']=_0x3484cd;}[_0x973ad6(0x449)](_0x2af1c1){const _0x59a8c9=_0x973ad6;this[_0x59a8c9(0x437)][_0x59a8c9(0x1b4)](_0x2af1c1);}[_0x973ad6(0x16b)](){const _0x3e58bc=_0x973ad6;return this[_0x3e58bc(0x437)];}['setLastCol'](_0x44b63e){this['lastCol']=_0x44b63e;}[_0x973ad6(0x26d)](_0x2a40a9){const _0x3dd2f2=_0x973ad6;this[_0x3dd2f2(0x212)]=_0x2a40a9;}[_0x973ad6(0x30b)](){const _0x2d3535=_0x973ad6;return this[_0x2d3535(0x340)];}[_0x973ad6(0x1d7)](){const _0x3dcaf1=_0x973ad6;return this[_0x3dcaf1(0x212)];}[_0x973ad6(0x2e8)](){const _0x4d6c8f=_0x973ad6;let _0x295d64=this[_0x4d6c8f(0x437)]['map'](_0x353f07=>({..._0x353f07}));return{...super['toJSON'](),'ranges':_0x295d64,'lastCol':this[_0x4d6c8f(0x340)],'lastRow':this[_0x4d6c8f(0x212)]};}['fromJSON'](_0x3646de){const _0x1a56c1=_0x973ad6;this[_0x1a56c1(0x437)]=_0x3646de[_0x1a56c1(0x437)][_0x1a56c1(0x3cb)](_0xeaf8ac=>({..._0xeaf8ac})),this[_0x1a56c1(0x340)]=_0x3646de[_0x1a56c1(0x340)],this['lastRow']=_0x3646de['lastRow'],super[_0x1a56c1(0x12f)](_0x3646de);}},_0x4dd482=class extends _0x4c1c4a{constructor(..._0x480031){const _0x495841=_0x973ad6;super(..._0x480031),_0x5dd0e0(this,_0x495841(0x1f3),[]);}['addHeaderMapItem'](_0x1ed48e,_0x497a81){this['headerMap'][_0x1ed48e]=_0x497a81;}['getHeaderMapItem'](_0x46898a){const _0x43555d=_0x973ad6;return this[_0x43555d(0x1f3)][_0x46898a];}['toJSON'](){let _0x2849e8=this['headerMap']['map'](_0x3c7d9e=>({..._0x3c7d9e}));return{...super['toJSON'](),'headerMap':_0x2849e8};}['fromJSON'](_0x15e5bc){const _0x3f3471=_0x973ad6;this[_0x3f3471(0x1f3)]=_0x15e5bc[_0x3f3471(0x1f3)]['map'](_0x2efe1e=>({..._0x2efe1e})),super['fromJSON'](_0x15e5bc);}},_0x2abd94=class extends _0x4dd482{[_0x973ad6(0x30b)](){const _0x1f0c7d=_0x973ad6;return Math[_0x1f0c7d(0x18f)](this[_0x1f0c7d(0x340)],this['headerMap']['length']-0x1);}},_0x6a7ea=class extends _0x4dd482{['getLastRow'](){const _0x46103a=_0x973ad6;return Math[_0x46103a(0x18f)](this['lastRow'],this[_0x46103a(0x1f3)][_0x46103a(0x155)]-0x1);}};let _0x52adfb=_0x30bf36=>typeof _0x30bf36=='object'&&_0x30bf36[_0x973ad6(0x169)]!==void 0x0,_0x3386be=_0xcf84d6=>typeof _0xcf84d6==_0x973ad6(0x131)&&_0xcf84d6['errorType']!==void 0x0;var _0x1218e0=class{static['prepareLayoutCtx'](_0x3c3fd9,_0x278773,_0x2a6485){const _0x9a2c56=_0x973ad6;let _0xee9582=new _0x30759c(),_0x23e7fe=_0x278773[_0x9a2c56(0x3ec)],_0x4d1380=_0x278773[_0x9a2c56(0x1a3)],_0x5c765a=_0x3c3fd9[_0x9a2c56(0x179)](),_0x4465ee=_0x5c765a['pageWrap']||0x1,_0x350746=!!_0x5c765a[_0x9a2c56(0x185)],_0x236ecf=_0x2a6485[_0x9a2c56(0x2f5)],_0x42ff91=_0x2a6485['valueFilterInfo'],_0xaed5d9={};for(let _0x5bd084 of _0x42ff91)_0xaed5d9[_0x5bd084[_0x9a2c56(0xe9)]]=_0x5bd084;let _0x5e85df=_0x3c3fd9[_0x9a2c56(0x20e)](),_0x23f590=_0x3c3fd9[_0x9a2c56(0x3d0)](),_0x59b618=_0x3c3fd9[_0x9a2c56(0x1d9)]();_0x236ecf[_0x9a2c56(0x155)]>0x1&&(_0x59b618===-0x1&&(_0x59b618=_0x4d1380),!_0x5e85df&&!_0x23f590&&(_0x5e85df=!0x0),_0x5e85df&&(_0x59b618=Math[_0x9a2c56(0x411)](_0x59b618,_0x4d1380)),_0x23f590&&(_0x59b618=Math[_0x9a2c56(0x411)](_0x59b618,_0x23e7fe)));let _0x2f0898=_0x236ecf[_0x9a2c56(0x155)],_0x5aee4={},_0x1389ad={},_0x2fec1b=0x0;for(let _0x2c4acd of _0x236ecf)_0x5aee4[_0x2c4acd['id']]=_0x2c4acd,_0x1389ad[_0x2c4acd['id']]=_0x2fec1b,_0x2fec1b++;let _0x8c0d19=!!_0x3c3fd9[_0x9a2c56(0x179)]()[_0x9a2c56(0x1da)],_0x3706d6=!!_0x3c3fd9[_0x9a2c56(0x179)]()['repeatColLabels'],_0x5f126b=_0x3c3fd9['getOptions']()[_0x9a2c56(0x15a)]??!0x0,_0x1c272b=_0x3c3fd9['getOptions']()[_0x9a2c56(0x3c9)]??!0x0,_0x590177=_0x3c3fd9[_0x9a2c56(0x179)]()[_0x9a2c56(0xfe)]??!0x0,_0x1a3457=_0x3c3fd9[_0x9a2c56(0x179)]()[_0x9a2c56(0x161)]??!0x0,_0x551a3b=_0x3c3fd9['getOptions']()[_0x9a2c56(0x435)]??0x1;return{'isColMultiMeasure':_0x5e85df,'isRowMultiMeasure':_0x23f590,'valueIndex':_0x59b618,'rowDeep':_0x23e7fe,'colDeep':_0x4d1380,'rowNodeTree':_0x278773['rowNodeTree'],'colNodeTree':_0x278773['colNodeTree'],'measuresMap':_0x5aee4,'measureIndexesMap':_0x1389ad,'measureCount':_0x2f0898,'pageWrap':_0x4465ee,'pageOverThenDown':_0x350746,'queryData':_0x2a6485,'view':_0xee9582,'valueQueryInfo':_0x236ecf,'colMap':{},'summaryManager':_0x278773,'collapseInfo':_0x2a6485[_0x9a2c56(0x369)],'repeatRowLabels':_0x8c0d19,'repeatColLabels':_0x3706d6,'valueFilterMap':_0xaed5d9,'showRowSubtotal':_0x5f126b,'showRowGrandTotal':_0x1c272b,'showColSubtotal':_0x590177,'showColGrandTotal':_0x1a3457,'rowSubtotalPosition':_0x551a3b};}static[_0x973ad6(0x2fc)](_0x375172){const _0x4e5354=_0x973ad6;let {pageWrap:_0x2590cd,pageOverThenDown:_0x4c0797,view:_0x27b2d0}=_0x375172,_0x45c19f=_0x27b2d0[_0x4e5354(0x170)],_0xdd6d1f=_0x375172[_0x4e5354(0x24c)][_0x4e5354(0x3d3)]['map'](({displayName:_0x2a1a9e,filterInfo:_0x1950e0,dataFieldId:_0x400638})=>{const _0x2d5aed=_0x4e5354;var _0x13ca8a;let {status:_0x59e343,value:_0x285848}=_0xa04c5f(_0x1950e0);if(_0x285848===void 0x0)return{'displayName':_0x2a1a9e,'status':_0x59e343};let _0x424e60=(_0x13ca8a=_0x375172['summaryManager'][_0x2d5aed(0x363)][_0x400638])==null?void 0x0:_0x13ca8a['field'],_0x15e0b9=_0x424e60==null?void 0x0:_0x424e60[_0x2d5aed(0x33c)](_0x285848);return{'displayName':_0x2a1a9e,'status':_0x59e343,'value':_0x424e60 instanceof _0x5e7805?_0x424e60[_0x2d5aed(0x2e9)](_0x285848):_0x285848,'itemType':_0x15e0b9};});_0x4c0797?this[_0x4e5354(0x44d)](_0xdd6d1f,_0x45c19f,_0x2590cd):this['layoutPageDownThenOver'](_0xdd6d1f,_0x45c19f,_0x2590cd);}static[_0x973ad6(0x401)](_0x5524dd,_0x1297cc,_0x40158a,_0x407e7d,_0x745a08){const _0x4253d0=_0x973ad6;let {displayName:_0x319606,value:_0x3ae93a,status:_0x42de0c,itemType:_0x19092a}=_0x745a08;_0x5524dd['setValue'](_0x1297cc,_0x40158a,_0x319606),_0x5524dd[_0x4253d0(0x3ab)](_0x1297cc,_0x40158a+0x1,_0x3ae93a),_0x5524dd['setStyle'](_0x1297cc,_0x40158a+0x1,_0x42de0c),_0x19092a===0x5?_0x5524dd[_0x4253d0(0x26c)](_0x1297cc,_0x40158a+0x1):_0x19092a===0x6&&_0x3ae93a===_0x7cc867[_0x4253d0(0x3fe)]&&_0x5524dd[_0x4253d0(0x13c)](_0x1297cc,_0x40158a+0x1),_0x5524dd[_0x4253d0(0x11a)](_0x1297cc,_0x40158a,_0x407e7d),_0x5524dd[_0x4253d0(0x11a)](_0x1297cc,_0x40158a+0x1,_0x407e7d);}static['layoutPageOverThenDown'](_0x7f2a1c,_0x2e0c84,_0x13884e=0x1){const _0x5443e7=_0x973ad6;let _0x26e430=0x0,_0x2cc791=0x0,_0x55ac1d=0x0;for(let _0x4f9dd6 of _0x7f2a1c)this['_setPageFilterLabel'](_0x2e0c84,_0x2cc791,_0x26e430*0x3,_0x55ac1d,_0x4f9dd6),_0x26e430++,_0x26e430===_0x13884e&&(_0x26e430=0x0,_0x2cc791++),_0x55ac1d++;let _0x3261b3=_0x7f2a1c['length'],_0x46a25e=Math[_0x5443e7(0xab)](_0x3261b3/_0x13884e),_0x4bee1c=_0x3261b3%_0x13884e;for(let _0x553522=0x0;_0x553522<_0x13884e;_0x553522++){let _0x1f7f64=_0x4bee1c>=_0x553522+0x1?_0x46a25e:_0x46a25e-0x1;_0x2e0c84[_0x5443e7(0x449)]({'row':0x0,'col':_0x553522*0x3,'rowCount':_0x1f7f64,'colCount':0x2});}_0x2e0c84['setLastRow'](_0x46a25e-0x1);let _0x3027bf=_0x3261b3>_0x13884e?_0x13884e*0x3-0x2:_0x3261b3*0x3-0x2;_0x2e0c84['setLastCol'](_0x3027bf),_0x2e0c84[_0x5443e7(0x252)](_0x2e0c84[_0x5443e7(0x212)]+0x1),_0x2e0c84[_0x5443e7(0x296)](_0x2e0c84[_0x5443e7(0x340)]+0x1);}static[_0x973ad6(0x102)](_0x27b8ce,_0x4f7be3,_0x261b65=0x1){const _0x42afc6=_0x973ad6;let _0x5922ad=0x0,_0x3d7cb0=0x0,_0x42dcf7=0x0;for(let _0x17cb85 of _0x27b8ce)this[_0x42afc6(0x401)](_0x4f7be3,_0x5922ad,_0x3d7cb0*0x3,_0x42dcf7,_0x17cb85),_0x5922ad++,_0x5922ad===_0x261b65&&(_0x5922ad=0x0,_0x3d7cb0++),_0x42dcf7++;let _0x597880=_0x27b8ce[_0x42afc6(0x155)],_0x43f4de=0x0;for(;_0x43f4de<_0x597880;){let _0x3fcb90=Math[_0x42afc6(0x411)](_0x261b65,_0x597880-_0x43f4de);_0x4f7be3[_0x42afc6(0x449)]({'row':0x0,'col':_0x43f4de*0x3/_0x261b65,'rowCount':_0x3fcb90,'colCount':0x2}),_0x43f4de+=_0x261b65;}_0x4f7be3[_0x42afc6(0x26d)](Math[_0x42afc6(0x411)](_0x597880,_0x261b65)-0x1),_0x4f7be3['setLastCol'](Math[_0x42afc6(0xab)](_0x597880/_0x261b65)*0x3-0x2),_0x4f7be3['setRowCount'](_0x4f7be3[_0x42afc6(0x212)]+0x1),_0x4f7be3['setColCount'](_0x4f7be3[_0x42afc6(0x340)]+0x1);}static['layoutCol'](_0x20bd9f){const _0x30214f=_0x973ad6;this['layoutColHeader'](_0x20bd9f),this[_0x30214f(0xd5)](_0x20bd9f),_0x20bd9f[_0x30214f(0xbb)][_0x30214f(0x322)](_0x20bd9f['queryData']);}static[_0x973ad6(0x23b)](_0x3a97a9){}static[_0x973ad6(0x1e1)](_0x519fb3){const _0x482342=_0x973ad6;let {colDeep:_0x598fda,view:_0x46606f,isColMultiMeasure:_0x39da0b,valueIndex:_0x4d7cab}=_0x519fb3,_0x31dc0e=_0x519fb3[_0x482342(0x24c)]['colQueryInfo'],_0x515dfd=_0x46606f[_0x482342(0x265)],_0xaffa00=0x0,_0x3b6235=!0x1;for(let _0xbf5c97=0x0;_0xbf5c97<_0x598fda;_0xbf5c97++){let {displayName:_0x3d0a59,filterInfo:_0x446b02,sortInfo:_0x588eef,id:_0x15986a,dataFieldId:_0x58ee42}=_0x31dc0e[_0xbf5c97];_0x598fda!==0x0&&_0x39da0b&&_0xbf5c97===_0x4d7cab&&(_0x515dfd[_0x482342(0x3ab)](0x0,_0xaffa00,_0x482342(0x3d1)),_0x3b6235=!0x0,_0xaffa00++),_0x515dfd[_0x482342(0x3ab)](0x0,_0xaffa00,_0x3d0a59),_0x515dfd[_0x482342(0x3ed)](_0xaffa00+0x1,{'isValue':!0x1,'level':_0xbf5c97,'tableFieldId':_0x15986a,'dataFieldId':_0x58ee42}),_0x515dfd[_0x482342(0x372)](0x0,_0xaffa00,_0x24ba7a(_0x446b02,_0x588eef,_0x519fb3[_0x482342(0x2fd)][_0x15986a])),_0xaffa00++;}_0x598fda!==0x0&&!_0x3b6235&&_0x39da0b&&(_0x515dfd[_0x482342(0x3ab)](0x0,_0xaffa00,_0x482342(0x3d1)),_0x515dfd[_0x482342(0x3ed)](_0xaffa00+0x1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x973ad6(0xcb)](_0x4d1938){const _0x26e211=_0x973ad6;let {view:_0x57954a}=_0x4d1938,{rowView:_0x2120d2,colView:_0x451270,dataView:_0x209deb}=_0x57954a;_0x209deb[_0x26e211(0x252)](_0x2120d2[_0x26e211(0xee)]()),_0x209deb[_0x26e211(0x296)](_0x451270['getColCount']());}static[_0x973ad6(0x2d2)](_0x4ae061,_0x2c0ba8){const _0x29318b=_0x973ad6;let {measureCount:_0x27be69,isColMultiMeasure:_0x5b4ae1,valueQueryInfo:_0x56998d}=_0x4ae061,_0x18e0c7=_0x5b4ae1?_0x56998d[_0x29318b(0x3cb)](_0x454828=>_0x454828['id']):[],_0x406e75=this[_0x29318b(0x201)](_0x4ae061,_0x2c0ba8);return _0x27be69===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x406e75}:(this[_0x29318b(0x39a)](_0x4ae061,0x0,_0x2c0ba8,_0x18e0c7,_0x406e75),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x5b4ae1?_0x27be69:0x1,'colPathMap':_0x406e75});}static[_0x973ad6(0xd5)](_0x2ff154){const _0xbeebf9=_0x973ad6;let {colNodeTree:_0x2f5168,view:_0x415e78,colDeep:_0x236130,isColMultiMeasure:_0xc158b,valueQueryInfo:_0x149a32,measureCount:_0x4f2023}=_0x2ff154,_0x273d58=_0xc158b?_0x149a32['map'](_0x4b6cfa=>_0x4b6cfa['id']):[],_0x3f6aa5=_0x236130===0x0?this[_0xbeebf9(0x2d2)](_0x2ff154,_0x2f5168):this['layoutColNode'](_0x2ff154,_0x2f5168,0x0,_0x273d58),_0x11b318=_0x415e78['colView'];if(_0x4f2023===0x0&&_0x236130===0x0)_0x11b318[_0xbeebf9(0x252)](0x0);else{if(_0x4f2023!==0x0&&_0x236130===0x0&&_0xc158b)_0x11b318['setRowCount'](0x1);else{if(_0x4f2023!==0x0&&_0x236130===0x0)_0x11b318[_0xbeebf9(0x252)](0x0);else{let _0x4d70bc=_0x236130===0x0?0x0:0x1,_0x487d24=_0xc158b?_0x236130+0x1+_0x4d70bc:_0x236130+_0x4d70bc;_0x11b318['setRowCount'](_0x487d24);}}}_0x11b318[_0xbeebf9(0x296)](this['getRealSize'](_0x3f6aa5)),_0x2ff154[_0xbeebf9(0x3d5)]=_0x11b318['buildPathMap'](_0xc158b);}static[_0x973ad6(0x3f1)](_0xb39251,_0x1382d9){return _0xb39251['getLevel']()===_0x1382d9;}static[_0x973ad6(0x25b)](_0xad229d){const _0x15c2e0=_0x973ad6;return _0xad229d[_0x15c2e0(0x375)]+_0xad229d['topTotalSize']+_0xad229d[_0x15c2e0(0x42e)];}static[_0x973ad6(0x3a4)](_0xf93ee3,_0x3fd165,_0x52b9ea){const _0x24c406=_0x973ad6;let {queryData:_0x129147,summaryManager:_0x2fa6b6}=_0xf93ee3,{valueQueryInfo:_0x47fcc1}=_0x129147;return _0x2fa6b6[_0x24c406(0x3de)](_0x3fd165[_0x24c406(0x2a2)](),_0x47fcc1[_0x52b9ea]);}static[_0x973ad6(0x2d6)](_0x5aaaab,_0x11aa18,_0x9ed9f0,_0x27abef){const _0x17607c=_0x973ad6;let {view:_0x147bfc,isColMultiMeasure:_0x3d0525,valueIndex:_0x45713f,measureCount:_0x3ed203,measuresMap:_0x23182f,measureIndexesMap:_0x263efe,colDeep:_0x34ab24}=_0x5aaaab,_0x21df9f=_0x147bfc[_0x17607c(0x265)],_0x5e2977=_0x11aa18[_0x17607c(0x323)](),_0x1a444e=this[_0x17607c(0x29b)](_0x3d0525,_0x5e2977,_0x45713f),_0x16ef3d=this[_0x17607c(0x201)](_0x5aaaab,_0x11aa18),_0x5485f9=_0x11aa18[_0x17607c(0x260)]();if(_0x1a444e){let _0x48f696=0x0,_0x2d156c=_0x34ab24===0x0?0x0:0x1;for(let _0x36ec9c of _0x27abef){let _0x398813=this[_0x17607c(0x34b)](_0x5e2977,_0x45713f,_0x3d0525)+_0x2d156c;_0x21df9f[_0x17607c(0x3ab)](_0x398813,_0x9ed9f0+_0x48f696,_0x23182f[_0x36ec9c]['displayName']),_0x21df9f[_0x17607c(0x189)](_0x9ed9f0+_0x48f696,{'level':_0x5e2977,'paths':_0x11aa18[_0x17607c(0x3a1)](),'valueIndex':_0x3d0525?_0x48f696:-0x1,'colPathMap':_0x16ef3d,'tableFieldId':_0x5485f9}),_0x48f696++;}return{'itemSize':0x1*_0x3ed203,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x16ef3d};}{let _0x3b5a5e=_0x3d0525?_0x263efe[_0x27abef[0x0]]:-0x1;return _0x21df9f[_0x17607c(0x189)](_0x9ed9f0,{'level':_0x5e2977,'paths':_0x11aa18[_0x17607c(0x3a1)](),'valueIndex':_0x3b5a5e,'colPathMap':_0x16ef3d,'tableFieldId':_0x5485f9}),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x16ef3d};}}static['buildColPathMap'](_0x26f3a8,_0x31ecc1){const _0x593653=_0x973ad6;let _0xe56bf0=[],_0x41e73c={};return _0x41e73c['']=_0x31ecc1[_0x593653(0x2a2)](),_0x31ecc1[_0x593653(0x12d)]()||_0x31ecc1[_0x593653(0x1a4)](_0x5cc94e=>{const _0x192f9c=_0x593653;this[_0x192f9c(0x457)](_0x26f3a8,_0x5cc94e,_0xe56bf0['concat']([_0x5cc94e[_0x192f9c(0x25a)]]),_0x41e73c);}),_0x41e73c;}static[_0x973ad6(0x457)](_0x16b839,_0x180631,_0x3172d0,_0x59c19d){const _0x55f055=_0x973ad6;let {summaryManager:_0x3cc86e}=_0x16b839,_0x32596e=_0x3cc86e[_0x55f055(0x421)](_0x3172d0,_0x3cc86e[_0x55f055(0x214)]);_0x59c19d[_0x32596e]=_0x180631[_0x55f055(0x2a2)](),_0x180631[_0x55f055(0xd7)]||_0x180631[_0x55f055(0x1a4)](_0x168140=>{const _0x235774=_0x55f055;let _0x42a128=_0x3172d0['concat']([_0x168140[_0x235774(0x25a)]]);this['iterateColLeafNodeChildren'](_0x16b839,_0x168140,_0x42a128,_0x59c19d);});}static[_0x973ad6(0x191)](_0x1b600d,_0x18f0a5,_0x11f5ac){const _0x1d8e50=_0x973ad6;if(this['isLeafNode'](_0x18f0a5,_0x1b600d['colDeep'])){let _0xee4ea2=this[_0x1d8e50(0x201)](_0x1b600d,_0x18f0a5);_0x11f5ac[_0x1d8e50(0x1b4)](_0xee4ea2);}else _0x18f0a5[_0x1d8e50(0x1a4)](_0x159750=>{this['buildColPathMapForCollapse'](_0x1b600d,_0x159750,_0x11f5ac);});}static[_0x973ad6(0x344)](_0x2e8e17,_0x51b65c,_0x3a26a3,_0x479803){const _0x213eff=_0x973ad6;let {isColMultiMeasure:_0x5b2dd2,valueIndex:_0x45b704,view:_0x438b52,measuresMap:_0xd18902,summaryManager:_0x5d1a6d}=_0x2e8e17,_0x3e95d9=_0x51b65c['getLevel'](),_0x3c7e58=_0x3a26a3,_0x4a09d6={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':{}},_0x354731=[],_0x1ba290=this[_0x213eff(0x29b)](_0x5b2dd2,_0x51b65c[_0x213eff(0x323)](),_0x45b704),_0x5c4259=_0x5d1a6d['getPathKeyWithFiledId'](_0x51b65c['getPaths'](),_0x5d1a6d[_0x213eff(0x10d)]);if(_0x1ba290){let _0x3021ac=0x0;for(let _0x391e0b of _0x479803){let _0x211fa7=this[_0x213eff(0x34b)](_0x3e95d9,_0x45b704,_0x5b2dd2);_0x438b52[_0x213eff(0x265)][_0x213eff(0x3ab)](_0x211fa7+0x1,_0x3c7e58,_0xd18902[_0x391e0b][_0x213eff(0x27c)]),_0x51b65c[_0x213eff(0x1a4)](_0x44b3be=>{const _0x280c76=_0x213eff;let _0x1d628c=this['layoutColNode'](_0x2e8e17,_0x44b3be,_0x3c7e58,[_0x391e0b]),{itemSize:_0x42e9db,topTotalSize:_0x5308d3,bottomTotalSize:_0x29244f}=_0x1d628c;_0x4a09d6[_0x280c76(0x375)]+=_0x42e9db,_0x4a09d6[_0x280c76(0x238)]+=_0x5308d3,_0x4a09d6[_0x280c76(0x42e)]+=_0x29244f,_0x3c7e58+=this['getRealSize'](_0x1d628c),_0x3021ac===0x0&&_0x354731[_0x280c76(0x1b4)](_0x1d628c[_0x280c76(0x139)]);}),_0x3021ac++;}_0x4a09d6[_0x213eff(0x139)]=_0x5d1a6d['combinePathMapList'](_0x354731,_0x5c4259),_0x3c7e58++;}else _0x51b65c['iterate'](_0x253e22=>{const _0x5dbec8=_0x213eff;let _0x4834ce=this['layoutColNode'](_0x2e8e17,_0x253e22,_0x3c7e58,_0x479803),{itemSize:_0x13c2e1,topTotalSize:_0x181ea6,bottomTotalSize:_0x3caf9e}=_0x4834ce;_0x4a09d6['itemSize']+=_0x13c2e1,_0x4a09d6[_0x5dbec8(0x238)]+=_0x181ea6,_0x4a09d6[_0x5dbec8(0x42e)]+=_0x3caf9e,_0x3c7e58+=this[_0x5dbec8(0x25b)](_0x4834ce),_0x354731[_0x5dbec8(0x1b4)](_0x4834ce[_0x5dbec8(0x139)]);}),_0x4a09d6[_0x213eff(0x139)]=_0x5d1a6d[_0x213eff(0xdd)](_0x354731,_0x5c4259);return _0x4a09d6;}static['shouldMultipleTotal'](_0x5c26c0,_0x41dd20,_0x59ac01){return _0x5c26c0&&_0x41dd20<=_0x59ac01;}static['shouldMultipleNode'](_0x1439fe,_0x532791,_0x13feca){return _0x1439fe&&_0x532791===_0x13feca;}static[_0x973ad6(0x34b)](_0x48b8f5,_0x24c038,_0x51e1b1){return _0x51e1b1?_0x48b8f5<=_0x24c038?_0x48b8f5:_0x48b8f5+0x1:_0x48b8f5;}static[_0x973ad6(0x44c)](_0x27fd8c,_0x2c2572,_0x4ec3a9,_0x158439,_0x377293,_0x4607c5){const _0x4ce8cc=_0x973ad6;_0x27fd8c[_0x4ce8cc(0x3ab)](_0x2c2572,_0x4ec3a9,_0x158439),_0x377293&&_0x27fd8c[_0x4ce8cc(0x26c)](_0x2c2572,_0x4ec3a9),_0x4607c5&&_0x27fd8c['setOther'](_0x2c2572,_0x4ec3a9);}static[_0x973ad6(0x3a0)](_0x1ec552,_0x4977fd,_0x53ba89,_0x580388){const _0x41dff5=_0x973ad6;let {view:_0x375dc8,colDeep:_0xc5ee3c,measureCount:_0x4397f7,isColMultiMeasure:_0xaae01f,valueIndex:_0x2a06da,summaryManager:_0x1e62b1}=_0x1ec552,_0x23d9c1=_0x375dc8[_0x41dff5(0x265)],_0x1a0ca6=_0x4977fd[_0x41dff5(0x27c)],_0x542e7b=_0x4977fd[_0x41dff5(0x37a)]===0x5,_0x53d252=_0x4977fd['type']===0x6,_0x20fbdc=_0x4977fd[_0x41dff5(0x37a)]===0x4||_0x4977fd[_0x41dff5(0x37a)]===0x2?Number(_0x1a0ca6):_0x1a0ca6,_0x254c73=_0x4977fd[_0x41dff5(0x323)](),_0x4fc8d6=this[_0x41dff5(0x34b)](_0x254c73,_0x2a06da,_0xaae01f),_0x5bfd26=this[_0x41dff5(0x342)](_0xaae01f,_0x254c73,_0x2a06da),_0x2df015=_0x4977fd['getCollapse'](),_0x5cacba=this['isLeafNode'](_0x4977fd,_0xc5ee3c);if(_0x254c73!==0x0&&(this['setLabelValue'](_0x23d9c1,_0x4fc8d6,_0x53ba89,_0x20fbdc,_0x542e7b,_0x53d252),_0x5cacba||_0x23d9c1[_0x41dff5(0x372)](_0x4fc8d6,_0x53ba89,_0x2df015?0xb:0xc)),_0x2df015){if(_0x5cacba)return{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':this[_0x41dff5(0x201)](_0x1ec552,_0x4977fd)};let _0x3b46bb=[];this['buildColPathMapForCollapse'](_0x1ec552,_0x4977fd,_0x3b46bb);let _0x4f5b7d=_0x1e62b1[_0x41dff5(0x421)](_0x4977fd[_0x41dff5(0x3a1)](),_0x1e62b1['colTableIdList']),_0x14b6a4=_0x1e62b1[_0x41dff5(0xdd)](_0x3b46bb,_0x4f5b7d),_0x2202a5=_0x254c73!==0x0||_0x1ec552[_0x41dff5(0x161)];return _0x2202a5&&this[_0x41dff5(0x39a)](_0x1ec552,_0x53ba89,_0x4977fd,_0x580388,_0x14b6a4),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x2202a5?_0x5bfd26?_0x4397f7:0x1:0x0,'colPathMap':_0x14b6a4};}if(_0x5cacba)return this[_0x41dff5(0x2d6)](_0x1ec552,_0x4977fd,_0x53ba89,_0x580388);{let _0x365acf=this[_0x41dff5(0x344)](_0x1ec552,_0x4977fd,_0x53ba89,_0x580388),_0x128e07=this[_0x41dff5(0x25b)](_0x365acf);if(_0x1ec552['repeatColLabels']&&_0x254c73!==0x0){for(let _0x2598c3=_0x53ba89+0x1;_0x2598c3<_0x53ba89+_0x128e07;_0x2598c3++)this[_0x41dff5(0x44c)](_0x23d9c1,_0x4fc8d6,_0x2598c3,_0x20fbdc,_0x542e7b,_0x53d252);}return(_0x254c73===0x0?_0x1ec552[_0x41dff5(0x1a3)]===0x0||_0x1ec552['showColGrandTotal']:_0x1ec552[_0x41dff5(0xfe)])&&(this[_0x41dff5(0x39a)](_0x1ec552,_0x53ba89+_0x128e07,_0x4977fd,_0x580388,_0x365acf[_0x41dff5(0x139)]),_0x5bfd26?_0x365acf[_0x41dff5(0x42e)]+=_0x4397f7:_0x365acf[_0x41dff5(0x42e)]++),_0x365acf;}}static[_0x973ad6(0x426)](_0x2f1010,_0x2eb8c4,_0x5406c6){return _0x2f1010?_0x5406c6[_0x2eb8c4[0x0]]:-0x1;}static[_0x973ad6(0x39a)](_0x5bc0ed,_0x5e62a2,_0x3cf21c,_0x3186e0,_0x2a4a4c){const _0x4d85d0=_0x973ad6;let {view:_0x536213,isColMultiMeasure:_0x4c41fd,valueIndex:_0x292dab,measuresMap:_0x7cad89,measureIndexesMap:_0x4885f9,colDeep:_0x192e39,valueQueryInfo:_0x2d289f}=_0x5bc0ed,_0x5592d4=_0x536213[_0x4d85d0(0x265)],_0x5acf36=_0x3cf21c['displayName'],_0x3490d4=_0x3cf21c[_0x4d85d0(0x323)](),_0xa77af4=this[_0x4d85d0(0x342)](_0x4c41fd,_0x3490d4,_0x292dab);if(_0x3490d4===0x0){let _0x2f78be=_0x192e39===0x0?0x0:0x1;if(_0xa77af4){let _0x117f43=0x0;for(let _0x568545 of _0x3186e0){let {displayName:_0x17288b}=_0x7cad89[_0x568545];_0x5592d4[_0x4d85d0(0x3ab)](_0x2f78be,_0x117f43+_0x5e62a2,''+_0x17288b),_0x5592d4[_0x4d85d0(0x372)](_0x2f78be,_0x117f43+_0x5e62a2,0xf),_0x5592d4[_0x4d85d0(0x189)](_0x117f43+_0x5e62a2,{'level':_0x3490d4,'paths':_0x3cf21c[_0x4d85d0(0x3a1)](),'valueIndex':_0x117f43,'isBottomTotal':!0x0,'colPathMap':_0x2a4a4c,'tableFieldId':''}),_0x117f43++;}}else{_0x192e39===0x0&&_0x2d289f[_0x4d85d0(0x155)]===0x1?_0x5592d4['setValue'](_0x2f78be,_0x5e62a2,_0x2d289f[0x0]['displayName']):(_0x5592d4[_0x4d85d0(0x3ab)](_0x2f78be,_0x5e62a2,''),_0x5592d4[_0x4d85d0(0x372)](_0x2f78be,_0x5e62a2,0xe));let _0x234baf=this[_0x4d85d0(0x426)](_0x4c41fd,_0x3186e0,_0x4885f9);_0x5592d4[_0x4d85d0(0x189)](_0x5e62a2,{'level':_0x3490d4,'paths':_0x3cf21c['getPaths'](),'valueIndex':_0x234baf,'isBottomTotal':!0x0,'colPathMap':_0x2a4a4c,'tableFieldId':''});}}else{let _0x2dfa84=this[_0x4d85d0(0x34b)](_0x3490d4,_0x292dab,_0x4c41fd),_0x32ead9=_0x3cf21c[_0x4d85d0(0x173)](),_0x34596e=_0x3cf21c[_0x4d85d0(0x260)](),_0xcea144=_0x3cf21c[_0x4d85d0(0x37a)]===0x5,_0x6627b4=_0x3cf21c[_0x4d85d0(0x37a)]===0x6;if(_0x32ead9&&_0x2dfa84++,_0xa77af4){let _0x30633d=0x0,_0x9a50fc=_0x3490d4;for(let _0x483d96 of _0x3186e0){let {displayName:_0x33426b}=_0x7cad89[_0x483d96],_0x1d3f2c=_0x32ead9?_0x33426b:{'prefix':_0x3cf21c['displayName'],'value':_0x33426b};_0x5592d4['setStyle'](_0x9a50fc,_0x5e62a2+_0x30633d,0xd),this[_0x4d85d0(0x44c)](_0x5592d4,_0x9a50fc,_0x5e62a2+_0x30633d,_0x1d3f2c,!_0x32ead9&&_0xcea144,!_0x32ead9&&_0x6627b4),_0x5592d4[_0x4d85d0(0x189)](_0x5e62a2+_0x30633d,{'level':_0x3490d4,'paths':_0x3cf21c[_0x4d85d0(0x3a1)](),'valueIndex':_0x30633d,'isBottomTotal':!0x0,'colPathMap':_0x2a4a4c,'tableFieldId':_0x34596e}),_0x30633d++;}}else{_0x32ead9||(this[_0x4d85d0(0x44c)](_0x5592d4,_0x2dfa84,_0x5e62a2,_0x5acf36,_0xcea144,_0x6627b4&&_0x3cf21c[_0x4d85d0(0x25a)]===_0x7cc867[_0x4d85d0(0x3fe)]),_0x5592d4['setStyle'](_0x2dfa84,_0x5e62a2,0xd));let _0x254adb=this[_0x4d85d0(0x426)](_0x4c41fd,_0x3186e0,_0x4885f9);_0x5592d4['setInfo'](_0x5e62a2,{'level':_0x3490d4,'paths':_0x3cf21c['getPaths'](),'valueIndex':_0x254adb,'isBottomTotal':!0x0,'colPathMap':_0x2a4a4c,'tableFieldId':_0x34596e});}}}},_0x105e2b=class extends _0x1218e0{static['layout'](_0x580e7d,_0x312b22,_0x59a093){const _0x4e5390=_0x973ad6;let _0x11a58e=this[_0x4e5390(0x25d)](_0x580e7d,_0x312b22,_0x59a093);return this[_0x4e5390(0x2fc)](_0x11a58e),this['layoutCol'](_0x11a58e),this['layoutRowFields'](_0x11a58e),this[_0x4e5390(0x3bc)](_0x11a58e),this[_0x4e5390(0xcb)](_0x11a58e),this[_0x4e5390(0x23b)](_0x11a58e),_0x11a58e[_0x4e5390(0x1b2)];}static[_0x973ad6(0x3bc)](_0x100b0e){const _0x493d04=_0x973ad6;if(_0x100b0e['colDeep']!==0x0)return;let _0x4ea558=_0x100b0e[_0x493d04(0x1b2)][_0x493d04(0x265)];(_0x100b0e[_0x493d04(0x3ec)]!==0x0||_0x100b0e[_0x493d04(0x135)]===0x1||_0x100b0e[_0x493d04(0x3d0)])&&(_0x100b0e[_0x493d04(0x135)]===0x1&&(_0x4ea558[_0x493d04(0x3ab)](0x0,0x0,_0x100b0e[_0x493d04(0x2f5)][0x0][_0x493d04(0x27c)]),_0x4ea558[_0x493d04(0x189)](0x0,this[_0x493d04(0x1f9)](_0x100b0e,_0x4ea558['info'][0x0]))),_0x4ea558[_0x493d04(0x252)](0x1));}static[_0x973ad6(0x1f9)](_0xbf2abf,_0x309502){const _0x263dbe=_0x973ad6;let _0x1948e6=_0xbf2abf[_0x263dbe(0x2f5)][0x0];return{..._0x309502,'tableFieldId':_0x1948e6['id'],'dataFieldId':_0x1948e6[_0x263dbe(0x2a7)],'isValue':!0x0};}static[_0x973ad6(0x35e)](_0x17de43){const _0x5ebbd9=_0x973ad6;let {rowDeep:_0x1564c9,colDeep:_0x5998ca,measureCount:_0x5aad64,isRowMultiMeasure:_0x31eb0a,isColMultiMeasure:_0x13a152}=_0x17de43,_0xc7babe=_0x17de43['view'][_0x5ebbd9(0x265)][_0x5ebbd9(0xee)]();_0xc7babe===0x0&&_0x1564c9!==0x0&&(_0xc7babe=0x1);let _0xb7fbcb=_0x17de43[_0x5ebbd9(0x1b2)][_0x5ebbd9(0x337)][_0x5ebbd9(0x2c6)]();return _0x1564c9===0x0&&(_0x5aad64===0x0?_0xb7fbcb=0x0:_0x5aad64===0x1?(_0xb7fbcb=_0x5998ca===0x0?0x0:0x1,_0xc7babe=_0x5998ca===0x0?0x1:_0xc7babe):_0x31eb0a?_0xb7fbcb=0x1:_0x13a152&&(_0xb7fbcb=0x0)),{'rowCount':_0xb7fbcb,'colCount':_0xc7babe};}static['layoutCorner'](_0x1b5a15){const _0x218c05=_0x973ad6;let {rowDeep:_0x49687d,colDeep:_0x51a1e2,view:_0x5322e7,measureCount:_0xc23900,isRowMultiMeasure:_0x571ced,valueIndex:_0xecb34a}=_0x1b5a15,_0x1d5349=_0x1b5a15[_0x218c05(0x24c)][_0x218c05(0x28c)],_0x48522d=_0x1b5a15[_0x218c05(0x24c)][_0x218c05(0x2f5)],_0x380a62=_0x5322e7['cornerView'],_0x5c9e7f=_0x5322e7[_0x218c05(0x337)],{rowCount:_0x23d8ab,colCount:_0x2c6c7d}=this['getCornerSize'](_0x1b5a15);_0x380a62[_0x218c05(0x252)](_0x2c6c7d),_0x380a62[_0x218c05(0x296)](_0x23d8ab),_0xc23900===0x1&&_0x51a1e2>0x0&&_0x49687d>0x0&&_0x380a62[_0x218c05(0x3ab)](0x0,0x0,_0x48522d[0x0][_0x218c05(0x27c)]);let _0x4d5981=0x0,_0x50205c=!0x1,_0x7e6da2=_0x2c6c7d-0x1;for(let _0x1e452f=0x0;_0x1e452f<_0x49687d;_0x1e452f++){let {displayName:_0x1d172e,filterInfo:_0x3bf4d5,sortInfo:_0x42cc3a,dataFieldId:_0x3f1e41,id:_0x1b10cc}=_0x1d5349[_0x1e452f];_0x571ced&&_0x1e452f===_0xecb34a&&(_0x380a62[_0x218c05(0x3ab)](_0x7e6da2,_0x4d5981,_0x218c05(0x3d1)),_0x50205c=!0x0,_0x380a62[_0x218c05(0x189)](_0x4d5981,{'paths':[],'level':-0x1,'tableFieldId':'','dataFieldId':'','valueIndex':-0x1,'isValue':!0x0}),_0x5c9e7f['addHeaderMapItem'](_0x4d5981,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}),_0x4d5981++),_0x380a62[_0x218c05(0x3ab)](_0x7e6da2,_0x4d5981,_0x1d172e),_0x5c9e7f['addHeaderMapItem'](_0x4d5981,{'isValue':!0x1,'level':_0x1e452f,'tableFieldId':_0x1b10cc,'dataFieldId':_0x3f1e41}),_0x380a62['setStyle'](_0x7e6da2,_0x4d5981,_0x24ba7a(_0x3bf4d5,_0x42cc3a,_0x1b5a15[_0x218c05(0x2fd)][_0x1b10cc])),_0x380a62[_0x218c05(0x189)](_0x4d5981,{'paths':[],'level':_0x1e452f,'tableFieldId':_0x1b10cc,'dataFieldId':_0x3f1e41,'valueIndex':-0x1}),_0x4d5981++;}!_0x50205c&&_0x571ced&&(_0x380a62[_0x218c05(0x3ab)](_0x7e6da2,_0x4d5981,_0x218c05(0x3d1)),_0x5c9e7f[_0x218c05(0x3ed)](_0x4d5981,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x973ad6(0x2a6)](_0x3a2ff8){const _0x337f24=_0x973ad6;let {rowNodeTree:_0x2c87fc,view:_0x326c9a,rowDeep:_0x54cfed,colDeep:_0x5bb5be,isRowMultiMeasure:_0x4afe0f,isColMultiMeasure:_0x25ee89,valueQueryInfo:_0x125d94,measureCount:_0x5bc6a7}=_0x3a2ff8,_0x2ab7fb=_0x4afe0f?_0x125d94[_0x337f24(0x3cb)](_0x132506=>_0x132506['id']):[],_0x5a5c7a=this['layoutRowNode'](_0x3a2ff8,_0x2c87fc,0x0,_0x2ab7fb),_0x16aec0=_0x326c9a[_0x337f24(0x337)];_0x16aec0[_0x337f24(0x252)](this[_0x337f24(0x25b)](_0x5a5c7a)),_0x54cfed===0x0?_0x5bc6a7===0x0||_0x25ee89?_0x16aec0[_0x337f24(0x296)](0x0):_0x4afe0f?_0x16aec0[_0x337f24(0x296)](0x1):_0x16aec0[_0x337f24(0x296)](_0x5bb5be===0x0?0x0:0x1):_0x16aec0['setColCount'](_0x4afe0f?_0x54cfed+0x1:_0x54cfed);}static[_0x973ad6(0x31f)](_0x30e25c,_0xc7a2dc,_0x239deb,_0x35f2fc){const _0x12924c=_0x973ad6;let {view:_0x80c550,isRowMultiMeasure:_0x33b8f6,valueIndex:_0x2ff00c,measureCount:_0x11f472,measuresMap:_0x527428,measureIndexesMap:_0x20f77b}=_0x30e25c,_0x3408dd=_0x80c550['rowView'],_0xcc1bbd=_0xc7a2dc[_0x12924c(0x323)](),_0x5f24e3=_0xc7a2dc[_0x12924c(0x37a)]===0x5,_0xa09732=_0xc7a2dc['type']===0x6,_0x135d02=this[_0x12924c(0x29b)](_0x33b8f6,_0xcc1bbd,_0x2ff00c),_0x512dad=_0xc7a2dc[_0x12924c(0x260)]();if(_0x135d02){let _0x391870=0x0;for(let _0x31a66e of _0x35f2fc){let _0x49a849=this[_0x12924c(0xec)](_0xcc1bbd,_0x2ff00c,_0x33b8f6)+0x1;_0x3408dd[_0x12924c(0x3ab)](_0x239deb+_0x391870,_0x49a849,_0x527428[_0x31a66e]['displayName']),_0x5f24e3&&_0x2ff00c!==_0xc7a2dc[_0x12924c(0x323)]()&&_0x3408dd[_0x12924c(0x26c)](_0x239deb+_0x391870,_0x49a849),_0xa09732&&_0x2ff00c!==_0xc7a2dc[_0x12924c(0x323)]()&&_0x3408dd[_0x12924c(0x13c)](_0x239deb+_0x391870,_0x49a849);let _0x39d481=_0xc7a2dc[_0x12924c(0x3a1)]();_0x3408dd[_0x12924c(0x189)](_0x239deb+_0x391870,{'paths':_0x39d481,'valueIndex':_0x33b8f6?_0x391870:-0x1,'level':_0xcc1bbd,'tableFieldId':_0x512dad}),this[_0x12924c(0xbd)](_0x30e25c,_0xc7a2dc,_0x239deb+_0x391870),this[_0x12924c(0x132)](_0x30e25c,_0xc7a2dc,_0x239deb+_0x391870,_0x391870),_0x391870++;}return{'itemSize':0x1*_0x11f472,'topTotalSize':0x0,'bottomTotalSize':0x0};}{let _0x208eb2=_0x33b8f6?_0x20f77b[_0x35f2fc[0x0]]:-0x1,_0x3bcd08=_0xc7a2dc[_0x12924c(0x3a1)]();return _0x3408dd[_0x12924c(0x189)](_0x239deb,{'level':_0xcc1bbd,'paths':_0x3bcd08,'valueIndex':_0x208eb2,'tableFieldId':_0x512dad}),this[_0x12924c(0xbd)](_0x30e25c,_0xc7a2dc,_0x239deb),_0xcc1bbd===0x0&&_0x11f472===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x208eb2}:(this[_0x12924c(0x132)](_0x30e25c,_0xc7a2dc,_0x239deb,_0x208eb2),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x208eb2});}}static[_0x973ad6(0x132)](_0x49029b,_0x1f854d,_0x44de8d,_0x176b20){const _0x4a718f=_0x973ad6;let {measureCount:_0x46e898}=_0x49029b;_0x46e898<=0x0||(_0x1f854d[_0x4a718f(0x1a4)](_0x526cb8=>{const _0x41fd1a=_0x4a718f;this[_0x41fd1a(0x311)](_0x49029b,_0x526cb8,_0x44de8d,_0x176b20,[_0x526cb8[_0x41fd1a(0x25a)]]);}),this[_0x4a718f(0x427)](_0x49029b,_0x1f854d,_0x44de8d,[],_0x176b20));}static[_0x973ad6(0x311)](_0x4f08eb,_0x11685,_0x40a3ce,_0x2593fb,_0x3bd5e2){const _0x20ea3d=_0x973ad6;let _0x5df746=_0x11685[_0x20ea3d(0x12d)]();this[_0x20ea3d(0x427)](_0x4f08eb,_0x11685,_0x40a3ce,_0x3bd5e2,_0x2593fb),_0x5df746||(this[_0x20ea3d(0x18a)](_0x4f08eb,_0x40a3ce),_0x11685[_0x20ea3d(0x1a4)](_0x5b23f9=>{const _0x4db94b=_0x20ea3d;let _0x1fd590=_0x3bd5e2[_0x4db94b(0x383)](_0x5b23f9[_0x4db94b(0x25a)]);this[_0x4db94b(0x311)](_0x4f08eb,_0x5b23f9,_0x40a3ce,_0x2593fb,_0x1fd590);}));}static[_0x973ad6(0x18a)](_0x321d30,_0x3cce63){const _0x2a5165=_0x973ad6;let {view:_0x86ab59,summaryManager:_0x2b5a8e,valueQueryInfo:_0x1310c5,rowDeep:_0x528508,measureCount:_0x157bf8}=_0x321d30,_0x581fcb=_0x86ab59[_0x2a5165(0x2bf)],_0x3de27d=_0x86ab59[_0x2a5165(0x265)],_0x565d20=_0x86ab59[_0x2a5165(0x337)][_0x2a5165(0x42d)][_0x3cce63],_0x2e9cc2=_0x565d20[_0x2a5165(0x218)];if(!(_0x565d20[_0x2a5165(0x10b)]===_0x528508||_0x157bf8<=0x0))for(let _0x2b970a=0x0;_0x2b970a<_0x3de27d[_0x2a5165(0x42d)][_0x2a5165(0x155)];_0x2b970a++){let _0x12ee5a=_0x3de27d[_0x2a5165(0x42d)][_0x2b970a],{colPathMap:_0x148dcc}=_0x12ee5a,_0x513330=_0x2b5a8e['getPathKeyWithFiledId'](_0x2e9cc2,_0x2b5a8e[_0x2a5165(0x214)]),_0x55bfab=_0x148dcc==null?void 0x0:_0x148dcc[_0x513330],_0x210525=this[_0x2a5165(0x3c7)](_0x321d30,_0x1310c5,_0x565d20,_0x12ee5a);if(_0x55bfab){let _0x4c098b=_0x2b5a8e[_0x2a5165(0x3de)](_0x55bfab,_0x210525);_0x4c098b!==void 0x0&&_0x581fcb[_0x2a5165(0x3ab)](_0x3cce63,_0x2b970a,_0x4c098b);}}}static[_0x973ad6(0x3c7)](_0x23ba43,_0x385a07,_0x157256,_0x2c2115){const _0xc7a4c3=_0x973ad6;let {isColMultiMeasure:_0x4cf4ce,isRowMultiMeasure:_0xd042fe}=_0x23ba43;return _0x4cf4ce?_0x385a07[_0x2c2115[_0xc7a4c3(0x403)]]:_0xd042fe?_0x385a07[_0x157256[_0xc7a4c3(0x403)]]:_0x385a07[0x0];}static[_0x973ad6(0x427)](_0x3b60fd,_0x14a5e8,_0x21a80d,_0x248992,_0x3cd67c){const _0x35114f=_0x973ad6;let {view:_0x17deba,colMap:_0x2cc7bb,isColMultiMeasure:_0x433506,measureCount:_0x34323e}=_0x3b60fd,_0x68b8e9=_0x17deba[_0x35114f(0x2bf)],_0x8a93e9=[];if(_0x3cd67c===-0x1){if(_0x433506){for(let _0x23f982=0x0;_0x23f982<_0x34323e;_0x23f982++)_0x8a93e9['push'](_0x23f982);}else _0x34323e>0x0&&_0x8a93e9[_0x35114f(0x1b4)](0x0);}else _0x8a93e9[_0x35114f(0x1b4)](_0x3cd67c);for(let _0x15c62b of _0x8a93e9){let _0x29b3ce=_0x2cc7bb[_0x1e1259(_0x248992,_0x15c62b,_0x433506)],_0x3fa256=this[_0x35114f(0x3a4)](_0x3b60fd,_0x14a5e8,_0x15c62b);_0x3fa256!==void 0x0&&_0x68b8e9[_0x35114f(0x3ab)](_0x21a80d,_0x29b3ce,_0x3fa256);}}static[_0x973ad6(0xec)](_0x3c7a3d,_0x1c92ce,_0x2098af){return _0x2098af?_0x3c7a3d<=_0x1c92ce?_0x3c7a3d-0x1:_0x3c7a3d:_0x3c7a3d-0x1;}static[_0x973ad6(0xbd)](_0x382c58,_0x17b803,_0x278785){const _0x17c00c=_0x973ad6;if(!_0x382c58['repeatRowLabels'])return;let _0x55625b=_0x382c58['view'][_0x17c00c(0x337)],_0x88de8c=_0x17b803[_0x17c00c(0x200)],_0x1e347e=Math[_0x17c00c(0x411)](_0x17b803[_0x17c00c(0x323)](),_0x382c58[_0x17c00c(0x3ec)]);for(let _0x3d1f02=0x1;_0x3d1f02<=_0x1e347e;_0x3d1f02++){let _0x53c3e3=this[_0x17c00c(0xec)](_0x3d1f02,_0x382c58[_0x17c00c(0x403)],_0x382c58[_0x17c00c(0x3d0)]);_0x53c3e3<0x0||_0x55625b[_0x17c00c(0x3ab)](_0x278785,_0x53c3e3,_0x88de8c[_0x3d1f02-0x1]);}}static['doRowBrachNode'](_0x32d640,_0x4178ca,_0x224d46,_0x4f414c){const _0x52f6e9=_0x973ad6;let {isRowMultiMeasure:_0x531966,valueIndex:_0x416872,view:_0x226f5a,measuresMap:_0x1fb98e}=_0x32d640,_0x404a7c=_0x4178ca[_0x52f6e9(0x323)](),_0x4b1344=_0x224d46,_0x314e31={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0},_0x380aaa=this[_0x52f6e9(0x29b)](_0x531966,_0x4178ca[_0x52f6e9(0x323)](),_0x416872),_0x3dec0b=_0x4178ca['type']===0x5,_0x129cd2=_0x4178ca[_0x52f6e9(0x37a)]===0x6;if(_0x380aaa){for(let _0x48f60a of _0x4f414c){let _0x2e7476=this[_0x52f6e9(0xec)](_0x404a7c,_0x416872,_0x531966),_0x1ce3bc=_0x226f5a[_0x52f6e9(0x337)];_0x1ce3bc['setValue'](_0x4b1344,_0x2e7476+0x1,_0x1fb98e[_0x48f60a][_0x52f6e9(0x27c)]),_0x3dec0b&&_0x1ce3bc[_0x52f6e9(0x26c)](_0x4b1344,_0x2e7476+0x1),_0x129cd2&&_0x1ce3bc[_0x52f6e9(0x13c)](_0x4b1344,_0x2e7476+0x1),_0x4178ca[_0x52f6e9(0x1a4)](_0x233c6a=>{const _0x260532=_0x52f6e9;let _0x2c45cb=this[_0x260532(0x16e)](_0x32d640,_0x233c6a,_0x4b1344,[_0x48f60a]),{itemSize:_0xb77339,topTotalSize:_0x27790d,bottomTotalSize:_0x433697}=_0x2c45cb;_0x314e31['itemSize']+=_0xb77339,_0x314e31[_0x260532(0x238)]+=_0x27790d,_0x314e31[_0x260532(0x42e)]+=_0x433697,_0x4b1344+=this['getRealSize'](_0x2c45cb);});}_0x4b1344++;}else _0x4178ca[_0x52f6e9(0x1a4)](_0x72e070=>{const _0x1396fd=_0x52f6e9;let _0x10bb25=this[_0x1396fd(0x16e)](_0x32d640,_0x72e070,_0x4b1344,_0x4f414c),{itemSize:_0x4863c7,topTotalSize:_0x4b0145,bottomTotalSize:_0x4ccae8}=_0x10bb25;_0x314e31['itemSize']+=_0x4863c7,_0x314e31[_0x1396fd(0x238)]+=_0x4b0145,_0x314e31[_0x1396fd(0x42e)]+=_0x4ccae8,_0x4b1344+=this['getRealSize'](_0x10bb25);});return _0x314e31;}static[_0x973ad6(0x16e)](_0x32d8d3,_0x22de24,_0xec4746,_0x455fc6){const _0x2091fa=_0x973ad6;let {view:_0x4761eb,rowDeep:_0x1e6d63,isRowMultiMeasure:_0x3308f9,valueIndex:_0x3ece30,measureCount:_0x194675,colDeep:_0x342ea6,valueQueryInfo:_0x58e572}=_0x32d8d3,_0x695d5f=_0x4761eb['rowView'],_0x5cd19a=_0x22de24[_0x2091fa(0x27c)],_0x2709a9=_0x22de24[_0x2091fa(0x323)](),_0x50f668=this[_0x2091fa(0xec)](_0x2709a9,_0x3ece30,_0x3308f9),_0x554dc5=_0x22de24[_0x2091fa(0x173)](),_0x107c6f=this[_0x2091fa(0x3f1)](_0x22de24,_0x1e6d63),_0x3cc236=_0x22de24[_0x2091fa(0x37a)]===0x5,_0x461057=_0x22de24[_0x2091fa(0x37a)]===0x6,_0xc3d374=_0x22de24[_0x2091fa(0x37a)]===0x4||_0x22de24[_0x2091fa(0x37a)]===0x2,_0x4d92d7=_0x2709a9===0x0;if(!_0x4d92d7){let _0x3b4875=_0xc3d374?Number(_0x5cd19a):_0x5cd19a;_0x695d5f[_0x2091fa(0x3ab)](_0xec4746,_0x50f668,_0x3b4875),_0x3cc236&&_0x695d5f[_0x2091fa(0x26c)](_0xec4746,_0x50f668),_0x461057&&_0x695d5f[_0x2091fa(0x13c)](_0xec4746,_0x50f668),_0x107c6f||_0x695d5f['setStyle'](_0xec4746,_0x50f668,_0x554dc5?0xb:0xc);}if(_0x107c6f){let _0x57ecc8=_0x4d92d7&&!_0x3308f9&&_0x1e6d63===0x0&&_0x342ea6!==0x0&&_0x58e572[_0x2091fa(0x155)]===0x1;_0x4d92d7&&!_0x3308f9&&_0x194675>0x0&&(_0x1e6d63===0x0?_0x342ea6!==0x0&&_0x695d5f['setValue'](_0xec4746,0x0,_0x58e572[0x0][_0x2091fa(0x27c)]):_0x342ea6!==0x0&&_0x58e572[_0x2091fa(0x155)]===0x1?_0x695d5f[_0x2091fa(0x3ab)](_0xec4746,0x0,_0x58e572[0x0][_0x2091fa(0x27c)]):(_0x695d5f[_0x2091fa(0x3ab)](_0xec4746,0x0,''),_0x695d5f[_0x2091fa(0x372)](_0xec4746,0x0,0xe)));let _0x34e62b=this[_0x2091fa(0x31f)](_0x32d8d3,_0x22de24,_0xec4746,_0x455fc6);return _0x57ecc8&&_0x695d5f[_0x2091fa(0x189)](_0xec4746,this[_0x2091fa(0x1f9)](_0x32d8d3,_0x695d5f[_0x2091fa(0x42d)][_0xec4746])),_0x34e62b;}{let _0x34bb7b=_0xec4746,_0x2d04d6={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0};_0x554dc5||(_0x2d04d6=this[_0x2091fa(0x32b)](_0x32d8d3,_0x22de24,_0xec4746,_0x455fc6),_0x34bb7b+=this[_0x2091fa(0x25b)](_0x2d04d6));let _0x4dd881=this[_0x2091fa(0x342)](_0x3308f9,_0x2709a9,_0x3ece30);return(_0x4d92d7?_0x32d8d3['rowDeep']===0x0||_0x32d8d3[_0x2091fa(0x3c9)]:_0x32d8d3[_0x2091fa(0x15a)]||_0x554dc5)&&(this[_0x2091fa(0x2bd)](_0x32d8d3,_0x34bb7b,_0x22de24,_0x455fc6),_0x4dd881?_0x2d04d6[_0x2091fa(0x42e)]+=_0x194675:_0x2d04d6['bottomTotalSize']++),_0x2d04d6;}}static[_0x973ad6(0x2bd)](_0x11b9e6,_0x3baec4,_0x40f740,_0x1d1695){const _0x380cb6=_0x973ad6;let {view:_0x3f2bbb,isRowMultiMeasure:_0x4791b9,valueIndex:_0x434ca1,measuresMap:_0x46658e,measureIndexesMap:_0x593918,rowDeep:_0x25e1a3,colDeep:_0x4e97e8,valueQueryInfo:_0x333442}=_0x11b9e6,_0x2a159c=_0x3f2bbb[_0x380cb6(0x337)],_0x5ccd4d=_0x40f740['getLevel'](),_0x27a034=this[_0x380cb6(0x342)](_0x4791b9,_0x5ccd4d,_0x434ca1);if(_0x5ccd4d===0x0){if(_0x27a034){let _0xba1d1a=0x0;for(let _0x5d95f4 of _0x1d1695){let {displayName:_0x2a80da}=_0x46658e[_0x5d95f4];_0x2a159c[_0x380cb6(0x3ab)](_0xba1d1a+_0x3baec4,0x0,''+_0x2a80da),_0x2a159c[_0x380cb6(0x372)](_0xba1d1a+_0x3baec4,0x0,0xf),_0x2a159c['setInfo'](_0xba1d1a+_0x3baec4,{'paths':_0x40f740['getPaths'](),'valueIndex':_0xba1d1a,'isBottomTotal':!0x0,'level':_0x5ccd4d,'tableFieldId':''}),this[_0x380cb6(0x18a)](_0x11b9e6,_0x3baec4+_0xba1d1a),_0xba1d1a++;}}else{_0x25e1a3===0x0&&_0x4e97e8!==0x0&&_0x333442[_0x380cb6(0x155)]===0x1?_0x2a159c[_0x380cb6(0x3ab)](_0x3baec4,0x0,_0x333442[0x0][_0x380cb6(0x27c)]):(_0x2a159c[_0x380cb6(0x3ab)](_0x3baec4,0x0,''),_0x2a159c[_0x380cb6(0x372)](_0x3baec4,0x0,0xe));let _0x30f8f3=_0x4791b9?_0x593918[_0x1d1695[0x0]]:-0x1;_0x2a159c[_0x380cb6(0x189)](_0x3baec4,{'paths':_0x40f740[_0x380cb6(0x3a1)](),'valueIndex':_0x30f8f3,'isBottomTotal':!0x0,'level':_0x5ccd4d,'tableFieldId':''}),_0x25e1a3===0x0&&_0x4e97e8!==0x0&&_0x333442[_0x380cb6(0x155)]===0x1&&_0x2a159c[_0x380cb6(0x189)](_0x3baec4,this['createSingleValueHeaderInfo'](_0x11b9e6,_0x2a159c['info'][_0x3baec4])),this[_0x380cb6(0x18a)](_0x11b9e6,_0x3baec4);}}else{let _0x16b271=this['getColIndexForRowHeader'](_0x5ccd4d,_0x434ca1,_0x4791b9),_0x32e089=_0x40f740[_0x380cb6(0x173)](),_0x73bda3=_0x40f740[_0x380cb6(0x260)](),_0x3809ed=_0x40f740[_0x380cb6(0x37a)]===0x5,_0x1df1a1=_0x40f740[_0x380cb6(0x37a)]===0x6;if(_0x32e089&&_0x16b271++,_0x27a034){let _0x379317=0x0,_0x50ddb5=_0x11b9e6['valueIndex'];for(let _0x1d0586 of _0x1d1695){let {displayName:_0x5f3979}=_0x46658e[_0x1d0586];if(_0x32e089)_0x2a159c[_0x380cb6(0x3ab)](_0x3baec4+_0x379317,_0x50ddb5,_0x5f3979);else{let _0x5b2a5a=_0x32e089?''+_0x5f3979:{'prefix':_0x40f740[_0x380cb6(0x27c)],'value':_0x5f3979};_0x2a159c[_0x380cb6(0x3ab)](_0x3baec4+_0x379317,_0x16b271,_0x5b2a5a),_0x3809ed&&_0x2a159c[_0x380cb6(0x26c)](_0x3baec4+_0x379317,_0x16b271),_0x1df1a1&&_0x2a159c[_0x380cb6(0x13c)](_0x3baec4+_0x379317,_0x16b271),_0x2a159c[_0x380cb6(0x372)](_0x3baec4+_0x379317,_0x16b271,0xd);}_0x2a159c[_0x380cb6(0x189)](_0x3baec4+_0x379317,{'paths':_0x40f740[_0x380cb6(0x3a1)](),'valueIndex':_0x379317,'isBottomTotal':!0x0,'level':_0x5ccd4d,'tableFieldId':_0x73bda3}),this['layoutValueNodeSubtotal'](_0x11b9e6,_0x3baec4+_0x379317),_0x379317++;}}else{_0x32e089||(this[_0x380cb6(0x44c)](_0x2a159c,_0x3baec4,_0x16b271,_0x40f740['displayName'],_0x3809ed,_0x1df1a1&&_0x40f740[_0x380cb6(0x25a)]===_0x7cc867[_0x380cb6(0x3fe)]),_0x2a159c[_0x380cb6(0x372)](_0x3baec4,_0x16b271,0xd));let _0x2395f4=_0x4791b9?_0x593918[_0x1d1695[0x0]]:-0x1;_0x2a159c[_0x380cb6(0x189)](_0x3baec4,{'paths':_0x40f740[_0x380cb6(0x3a1)](),'valueIndex':_0x2395f4,'isBottomTotal':!0x0,'level':_0x5ccd4d,'tableFieldId':_0x73bda3}),this[_0x380cb6(0x18a)](_0x11b9e6,_0x3baec4);}}}},_0x3670c5=class extends _0x105e2b{static[_0x973ad6(0x378)](_0x28a7c4,_0x2b35ee,_0x174222){const _0x2ec6f4=_0x973ad6;let _0x276ab3=this['prepareLayoutCtx'](_0x28a7c4,_0x2b35ee,_0x174222);return this['layoutPage'](_0x276ab3),this[_0x2ec6f4(0x1d6)](_0x276ab3),this[_0x2ec6f4(0x2a6)](_0x276ab3),this['layoutHeadersWithoutColumnDimensions'](_0x276ab3),this[_0x2ec6f4(0xcb)](_0x276ab3),this[_0x2ec6f4(0x23b)](_0x276ab3),_0x276ab3['view'];}static['layoutRowFields'](_0x45be3c){const _0x367d8a=_0x973ad6;let {rowNodeTree:_0x2adaad,view:_0x484d56,isRowMultiMeasure:_0x24d6de,valueQueryInfo:_0x32ea55,measureCount:_0x14302e,rowDeep:_0x539dd4,showRowGrandTotal:_0x594994}=_0x45be3c,_0x44338f=_0x484d56[_0x367d8a(0x337)],_0x47c6e5=_0x24d6de?_0x32ea55[_0x367d8a(0x3cb)](_0x7a84ad=>_0x7a84ad['id']):[],_0x3e511e=0x0;if(_0x539dd4===0x0)_0x14302e>0x0&&(_0x3e511e=this[_0x367d8a(0x178)](_0x45be3c,_0x2adaad,_0x3e511e,_0x47c6e5));else{if(this[_0x367d8a(0x225)](_0x45be3c)){for(let _0x1efaa9 of _0x47c6e5)_0x3e511e=this[_0x367d8a(0xc5)](_0x45be3c,_0x3e511e,_0x1efaa9),_0x3e511e=this[_0x367d8a(0x381)](_0x45be3c,_0x2adaad,_0x3e511e,[_0x1efaa9]);}else _0x3e511e=this[_0x367d8a(0x381)](_0x45be3c,_0x2adaad,_0x3e511e,_0x47c6e5);_0x594994&&(_0x14302e>0x0||_0x539dd4>0x0)&&(_0x3e511e=this[_0x367d8a(0x178)](_0x45be3c,_0x2adaad,_0x3e511e,_0x47c6e5));}_0x44338f[_0x367d8a(0x252)](_0x3e511e),_0x44338f[_0x367d8a(0x296)](this[_0x367d8a(0xc0)](_0x45be3c));}static[_0x973ad6(0x225)](_0x4c2ee7){const _0x5e9f0a=_0x973ad6;return _0x4c2ee7['isRowMultiMeasure']&&_0x4c2ee7[_0x5e9f0a(0x403)]===0x0;}static['layoutRowChildren'](_0x170a90,_0x5b10dc,_0x17c2d2,_0x212fbe){const _0x849b32=_0x973ad6;let _0x3eefda=_0x17c2d2;return _0x5b10dc[_0x849b32(0x1a4)](_0x38a1f2=>{_0x3eefda=this['layoutRowNodeToCursor'](_0x170a90,_0x38a1f2,_0x3eefda,_0x212fbe);}),_0x3eefda;}static[_0x973ad6(0x16e)](_0x12538b,_0x34558a,_0x3eb3b9,_0x253ab9){const _0x6cf96f=_0x973ad6;return{'itemSize':this[_0x6cf96f(0x382)](_0x12538b,_0x34558a,_0x3eb3b9,_0x253ab9)-_0x3eb3b9,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x973ad6(0x382)](_0x3f0eb6,_0x2d27e7,_0x15b8d5,_0x5e8c2b){const _0x4e1311=_0x973ad6;let _0xe11f8d=this[_0x4e1311(0x3f1)](_0x2d27e7,_0x3f0eb6['rowDeep']),_0x450a36=_0x2d27e7['getCollapse']();if(!_0xe11f8d){if(this[_0x4e1311(0x44a)](_0x3f0eb6,_0x2d27e7)&&!_0x450a36){let _0xf744df=this[_0x4e1311(0x43c)](_0x3f0eb6,_0x2d27e7,_0x15b8d5);if(this[_0x4e1311(0x29b)](_0x3f0eb6[_0x4e1311(0x3d0)],_0x2d27e7[_0x4e1311(0x323)](),_0x3f0eb6[_0x4e1311(0x403)])){for(let _0x10d85d of _0x5e8c2b)_0xf744df=this['writeValueHeaderRow'](_0x3f0eb6,_0x2d27e7,_0xf744df,_0x10d85d),_0xf744df=this[_0x4e1311(0x381)](_0x3f0eb6,_0x2d27e7,_0xf744df,[_0x10d85d]);}else _0xf744df=this[_0x4e1311(0x381)](_0x3f0eb6,_0x2d27e7,_0xf744df,_0x5e8c2b);return _0x3f0eb6[_0x4e1311(0x15a)]&&(_0xf744df=this[_0x4e1311(0x3ea)](_0x3f0eb6,_0x2d27e7,_0xf744df,_0x5e8c2b)),_0xf744df;}if(this[_0x4e1311(0x3c3)](_0x3f0eb6)&&!_0x450a36){let _0x25fe67=this[_0x4e1311(0x43c)](_0x3f0eb6,_0x2d27e7,_0x15b8d5);return _0x25fe67=this[_0x4e1311(0x381)](_0x3f0eb6,_0x2d27e7,_0x25fe67,_0x5e8c2b),_0x3f0eb6[_0x4e1311(0x15a)]&&(_0x25fe67=this[_0x4e1311(0x3ea)](_0x3f0eb6,_0x2d27e7,_0x25fe67,_0x5e8c2b)),_0x25fe67;}if(this[_0x4e1311(0x29b)](_0x3f0eb6[_0x4e1311(0x3d0)],_0x2d27e7[_0x4e1311(0x323)](),_0x3f0eb6[_0x4e1311(0x403)])){let _0x25c9e8=_0x15b8d5;for(let _0x34e54a of _0x5e8c2b)_0x25c9e8=this['writeParentRows'](_0x3f0eb6,_0x2d27e7,_0x25c9e8,[_0x34e54a]),_0x450a36||(_0x25c9e8=this['layoutRowChildren'](_0x3f0eb6,_0x2d27e7,_0x25c9e8,[_0x34e54a]));return _0x25c9e8;}let _0x3bb360=this['writeParentRows'](_0x3f0eb6,_0x2d27e7,_0x15b8d5,_0x5e8c2b);return _0x450a36||(_0x3bb360=this['layoutRowChildren'](_0x3f0eb6,_0x2d27e7,_0x3bb360,_0x5e8c2b)),_0x3bb360;}return this['writeLeafRows'](_0x3f0eb6,_0x2d27e7,_0x15b8d5,_0x5e8c2b);}static['shouldWriteSubtotalAtBottom'](_0x575f32){const _0xdb37c2=_0x973ad6;return _0x575f32[_0xdb37c2(0x435)]===0x2;}static['shouldWriteMultiValueSubtotalAtBottom'](_0x495025,_0x5b721c){const _0x5eb0ce=_0x973ad6;return _0x495025['isRowMultiMeasure']&&_0x495025[_0x5eb0ce(0x403)]>0x0&&_0x5b721c[_0x5eb0ce(0x323)]()<=_0x495025[_0x5eb0ce(0x403)];}static[_0x973ad6(0x43c)](_0x548504,_0x4ae364,_0x5b4b4a){const _0x215870=_0x973ad6;let _0x52718e=this['getRowLabelCol'](_0x548504,_0x4ae364[_0x215870(0x323)]()),_0x42493a=this['getNodeDisplayValue'](_0x4ae364),_0x1d82d4=_0x548504['view'][_0x215870(0x337)];return _0x1d82d4[_0x215870(0x3ab)](_0x5b4b4a,_0x52718e,_0x42493a),this['applyNodeValueType'](_0x1d82d4,_0x5b4b4a,_0x52718e,_0x4ae364),_0x1d82d4[_0x215870(0x372)](_0x5b4b4a,_0x52718e,0xc),_0x1d82d4[_0x215870(0x189)](_0x5b4b4a,this[_0x215870(0x133)](_0x4ae364,{'rowType':_0x215870(0x3c0)})),_0x5b4b4a+0x1;}static[_0x973ad6(0x36c)](_0x11fcc5,_0x19b98e,_0x37172a,_0x236aee){const _0x875b1f=_0x973ad6;let _0x57908c=this[_0x875b1f(0x13d)](_0x11fcc5,_0x19b98e[_0x875b1f(0x323)]()),_0x3c3112=_0x11fcc5['measureIndexesMap'][_0x236aee],_0x3cabca=_0x11fcc5[_0x875b1f(0x1b2)]['rowView'];return _0x3cabca[_0x875b1f(0x3ab)](_0x37172a,_0x57908c,_0x11fcc5[_0x875b1f(0x29c)][_0x236aee][_0x875b1f(0x27c)]),_0x3cabca[_0x875b1f(0x189)](_0x37172a,this['createRowInfo'](_0x19b98e,{'valueIndex':_0x3c3112,'isValue':!0x0,'dataFieldId':_0x11fcc5[_0x875b1f(0x29c)][_0x236aee][_0x875b1f(0x2a7)],'rowType':_0x875b1f(0x226)})),_0x37172a+0x1;}static[_0x973ad6(0xc5)](_0x307555,_0xb6bea0,_0x396431){const _0x57f45e=_0x973ad6;let _0x59b917=_0x307555['measureIndexesMap'][_0x396431],_0x122fb6=_0x307555[_0x57f45e(0x29c)][_0x396431],_0x14d4ad=_0x307555[_0x57f45e(0x1b2)][_0x57f45e(0x337)];return _0x14d4ad[_0x57f45e(0x3ab)](_0xb6bea0,0x0,_0x122fb6['displayName']),_0x14d4ad[_0x57f45e(0x189)](_0xb6bea0,{'paths':[],'valueIndex':_0x59b917,'level':-0x1,'tableFieldId':'','dataFieldId':_0x122fb6['dataFieldId'],'isValue':!0x0,'rowType':_0x57f45e(0x226)}),_0xb6bea0+0x1;}static[_0x973ad6(0x2e5)](_0xc058b5,_0x9da16,_0x417d7f,_0x3227b4){const _0x3b0909=_0x973ad6;if((_0xc058b5[_0x3b0909(0x15a)]||_0x9da16['getCollapse']())&&_0xc058b5[_0x3b0909(0x3d0)]&&_0x3227b4[_0x3b0909(0x155)]>0x1&&this[_0x3b0909(0x342)](_0xc058b5[_0x3b0909(0x3d0)],_0x9da16[_0x3b0909(0x323)](),_0xc058b5[_0x3b0909(0x403)])){let _0x63d39=_0x417d7f;for(let _0x230494 of _0x3227b4){let _0x1d303c=_0xc058b5[_0x3b0909(0x36b)][_0x230494];this[_0x3b0909(0x1bd)](_0xc058b5,_0x9da16,_0x63d39,_0x1d303c,_0xc058b5[_0x3b0909(0x29c)][_0x230494][_0x3b0909(0x27c)]),_0x63d39++;}return _0x63d39;}let _0x1c96bc=_0xc058b5[_0x3b0909(0x3d0)]&&_0x3227b4[_0x3b0909(0x155)]===0x1?_0xc058b5[_0x3b0909(0x36b)][_0x3227b4[0x0]]:-0x1,_0x5af77f=_0xc058b5['isRowMultiMeasure']&&_0x3227b4[_0x3b0909(0x155)]===0x1&&_0xc058b5[_0x3b0909(0x403)]>0x0&&_0xc058b5[_0x3b0909(0x403)]<=_0x9da16['getLevel']()?_0xc058b5[_0x3b0909(0x29c)][_0x3227b4[0x0]][_0x3b0909(0x27c)]:void 0x0;return this[_0x3b0909(0x1bd)](_0xc058b5,_0x9da16,_0x417d7f,_0x1c96bc,_0x5af77f),_0x417d7f+0x1;}static[_0x973ad6(0x1bd)](_0x1c08af,_0x51cab0,_0x361dae,_0x5a4eb9,_0x304f35){const _0x1f9506=_0x973ad6;let {showRowSubtotal:_0x1b1d7f}=_0x1c08af,_0x260d0c=_0x51cab0[_0x1f9506(0x173)](),_0x39b817=_0x1b1d7f||_0x260d0c,_0x2cb756=this[_0x1f9506(0xc3)](_0x1c08af,_0x51cab0['getLevel']()),_0x5394eb=_0x304f35?this[_0x1f9506(0x13d)](_0x1c08af,_0x51cab0[_0x1f9506(0x323)]()):_0x2cb756,_0x1e470d=this[_0x1f9506(0x10e)](_0x51cab0),_0x158764=_0x1c08af[_0x1f9506(0x1b2)]['rowView'];_0x158764[_0x1f9506(0x3ab)](_0x361dae,_0x2cb756,_0x1e470d),this[_0x1f9506(0x304)](_0x158764,_0x361dae,_0x2cb756,_0x51cab0),_0x158764[_0x1f9506(0x372)](_0x361dae,_0x2cb756,_0x260d0c?0xb:0xc),_0x304f35&&_0x5394eb!==_0x2cb756&&_0x158764['setValue'](_0x361dae,_0x5394eb,_0x304f35),_0x158764['setInfo'](_0x361dae,this[_0x1f9506(0x133)](_0x51cab0,{'valueIndex':_0x5a4eb9,'isBottomTotal':_0x39b817,'isSubtotal':_0x39b817,'isTopTotal':_0x39b817,'rowType':_0x39b817?_0x1f9506(0x2e0):'item'})),_0x39b817&&this['layoutValueNodeSubtotal'](_0x1c08af,_0x361dae);}static[_0x973ad6(0x3ea)](_0x3628f5,_0x129f81,_0x1d168b,_0x3bcbed){const _0x5472b3=_0x973ad6;let {isRowMultiMeasure:_0x2afe92,measuresMap:_0x24d087}=_0x3628f5;if(this[_0x5472b3(0x342)](_0x2afe92,_0x129f81[_0x5472b3(0x323)](),_0x3628f5['valueIndex'])){let _0x3ac0d0=_0x1d168b;for(let _0x344feb of _0x3bcbed){let _0x229cdd=_0x3628f5[_0x5472b3(0x36b)][_0x344feb];this[_0x5472b3(0x2b0)](_0x3628f5,_0x129f81,_0x3ac0d0,_0x229cdd,_0x24d087[_0x344feb]['displayName']),_0x3ac0d0++;}return _0x3ac0d0;}return this[_0x5472b3(0x2b0)](_0x3628f5,_0x129f81,_0x1d168b,_0x2afe92?_0x3628f5[_0x5472b3(0x36b)][_0x3bcbed[0x0]]:-0x1),_0x1d168b+0x1;}static[_0x973ad6(0x2b0)](_0x34650c,_0xeaef1b,_0x473f63,_0x2500b9,_0x5026e0){const _0x10ba71=_0x973ad6;let _0x299a4f=this[_0x10ba71(0xc3)](_0x34650c,_0xeaef1b[_0x10ba71(0x323)]()),_0x18a211=this[_0x10ba71(0x10e)](_0xeaef1b),_0x4af08c=_0x34650c['view'][_0x10ba71(0x337)];_0x4af08c[_0x10ba71(0x3ab)](_0x473f63,_0x299a4f,_0x5026e0?{'prefix':String(_0x18a211),'value':_0x5026e0}:_0x18a211),this[_0x10ba71(0x304)](_0x4af08c,_0x473f63,_0x299a4f,_0xeaef1b),_0x4af08c[_0x10ba71(0x372)](_0x473f63,_0x299a4f,0xd),_0x4af08c[_0x10ba71(0x189)](_0x473f63,this[_0x10ba71(0x133)](_0xeaef1b,{'valueIndex':_0x2500b9,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0x10ba71(0x2e0)})),this[_0x10ba71(0x18a)](_0x34650c,_0x473f63);}static[_0x973ad6(0x1d8)](_0x4168f3,_0xc96014,_0x2c7bc5,_0x3d77e8){const _0x59efc3=_0x973ad6;let {isRowMultiMeasure:_0x3a3b4b,valueIndex:_0x5aebc7,measureCount:_0x53700f,measuresMap:_0x54fdca,measureIndexesMap:_0x56fb3d}=_0x4168f3;if(this[_0x59efc3(0x29b)](_0x3a3b4b,_0xc96014['getLevel'](),_0x5aebc7)){if(this['shouldWriteLeafValuesUnderItem'](_0x4168f3)){let _0x1b74f8=this[_0x59efc3(0x221)](_0x4168f3,_0xc96014,_0x2c7bc5);for(let _0x59df56 of _0x3d77e8){let _0x289367=_0x56fb3d[_0x59df56];this[_0x59efc3(0x239)](_0x4168f3,_0xc96014,_0x1b74f8,_0x289367,_0x54fdca[_0x59df56][_0x59efc3(0x27c)]),this['startContent'](_0x4168f3,_0xc96014,_0x1b74f8,_0x289367),_0x1b74f8++;}return _0x1b74f8;}let _0x5cea22=_0x2c7bc5;for(let _0x5477ee of _0x3d77e8){let _0x17907e=_0x56fb3d[_0x5477ee],_0x50d7bf=this['getRowLabelCol'](_0x4168f3,_0xc96014[_0x59efc3(0x323)]()),_0x21cd1=this[_0x59efc3(0x13d)](_0x4168f3,_0xc96014[_0x59efc3(0x323)]()),_0x123d6c=this[_0x59efc3(0x10e)](_0xc96014),_0xbc7a01=_0x4168f3[_0x59efc3(0x1b2)][_0x59efc3(0x337)];_0xbc7a01[_0x59efc3(0x3ab)](_0x5cea22,_0x50d7bf,_0x123d6c),this['applyNodeValueType'](_0xbc7a01,_0x5cea22,_0x50d7bf,_0xc96014),_0x21cd1!==_0x50d7bf&&_0xbc7a01[_0x59efc3(0x3ab)](_0x5cea22,_0x21cd1,_0x54fdca[_0x5477ee][_0x59efc3(0x27c)]),_0xbc7a01[_0x59efc3(0x189)](_0x5cea22,this[_0x59efc3(0x133)](_0xc96014,{'valueIndex':_0x17907e,'isLeaf':!0x0,'rowType':_0x59efc3(0x3c0)})),this['startContent'](_0x4168f3,_0xc96014,_0x5cea22,_0x17907e),_0x5cea22++;}return _0x5cea22;}let _0x3b371b=_0x3a3b4b?_0x56fb3d[_0x3d77e8[0x0]]:-0x1,_0x47599e=this[_0x59efc3(0xc3)](_0x4168f3,_0xc96014[_0x59efc3(0x323)]()),_0x4b664a=this[_0x59efc3(0x10e)](_0xc96014),_0x42f135=_0x4168f3[_0x59efc3(0x1b2)][_0x59efc3(0x337)];return _0x42f135[_0x59efc3(0x3ab)](_0x2c7bc5,_0x47599e,_0x4b664a),this['applyNodeValueType'](_0x42f135,_0x2c7bc5,_0x47599e,_0xc96014),_0x42f135[_0x59efc3(0x189)](_0x2c7bc5,this[_0x59efc3(0x133)](_0xc96014,{'valueIndex':_0x3b371b,'isLeaf':!0x0,'rowType':'item'})),_0x53700f>0x0&&this[_0x59efc3(0x132)](_0x4168f3,_0xc96014,_0x2c7bc5,_0x3b371b),_0x2c7bc5+0x1;}static[_0x973ad6(0x1a7)](_0x5a568b){return _0x5a568b['isRowMultiMeasure']&&_0x5a568b['valueIndex']>0x0;}static[_0x973ad6(0x221)](_0x4c1132,_0x4763c6,_0x37876e){const _0x3c3ba8=_0x973ad6;let _0x3213ee=this[_0x3c3ba8(0xc3)](_0x4c1132,_0x4763c6['getLevel']()),_0x1f18b8=this[_0x3c3ba8(0x10e)](_0x4763c6),_0x21a05a=_0x4c1132[_0x3c3ba8(0x1b2)][_0x3c3ba8(0x337)];return _0x21a05a[_0x3c3ba8(0x3ab)](_0x37876e,_0x3213ee,_0x1f18b8),this[_0x3c3ba8(0x304)](_0x21a05a,_0x37876e,_0x3213ee,_0x4763c6),_0x21a05a[_0x3c3ba8(0x189)](_0x37876e,this['createRowInfo'](_0x4763c6,{'isLeaf':!0x0,'rowType':_0x3c3ba8(0x3c0)})),_0x37876e+0x1;}static['writeLeafValueRow'](_0x221847,_0x36d9f3,_0x48c2d4,_0x56dba8,_0x1a014a){const _0x15f5a0=_0x973ad6;let _0xae7bbb=this['getValueLabelCol'](_0x221847,_0x36d9f3['getLevel']()),_0x494dfb=_0x221847[_0x15f5a0(0x1b2)][_0x15f5a0(0x337)];_0x494dfb[_0x15f5a0(0x3ab)](_0x48c2d4,_0xae7bbb,_0x1a014a),_0x494dfb[_0x15f5a0(0x189)](_0x48c2d4,this[_0x15f5a0(0x133)](_0x36d9f3,{'valueIndex':_0x56dba8,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x15f5a0(0x226)}));}static['writeGrandTotalRows'](_0x5194be,_0x35bcb9,_0xc29211,_0x3c9f20){const _0x415001=_0x973ad6;let {isRowMultiMeasure:_0x225749,measureCount:_0x1166a9,measuresMap:_0x415b77,measureIndexesMap:_0x4bdcd4}=_0x5194be,_0x1e5cfb=_0x5194be[_0x415001(0x1b2)]['rowView'];if(this[_0x415001(0x342)](_0x225749,_0x35bcb9['getLevel'](),_0x5194be[_0x415001(0x403)])){let _0x3b8e59=_0xc29211;for(let _0x150251 of _0x3c9f20){let _0x56c998=_0x4bdcd4[_0x150251];_0x1e5cfb[_0x415001(0x3ab)](_0x3b8e59,0x0,_0x415b77[_0x150251][_0x415001(0x27c)]),_0x1e5cfb[_0x415001(0x372)](_0x3b8e59,0x0,0xf),_0x1e5cfb[_0x415001(0x189)](_0x3b8e59,this[_0x415001(0xf1)](_0x35bcb9,_0x56c998)),this[_0x415001(0xfa)](_0x5194be,_0x35bcb9,_0x3b8e59,_0x56c998),_0x3b8e59++;}return _0x3b8e59;}if(_0x5194be['rowDeep']===0x0&&!_0x225749&&_0x1166a9>0x0)return _0x5194be[_0x415001(0x1a3)]!==0x0&&_0x1e5cfb['setValue'](_0xc29211,0x0,_0x5194be[_0x415001(0x2f5)][0x0][_0x415001(0x27c)]),_0x1e5cfb['setInfo'](_0xc29211,this['createGrandTotalInfo'](_0x35bcb9,-0x1)),_0x5194be[_0x415001(0x1a3)]!==0x0&&_0x1e5cfb['setInfo'](_0xc29211,this[_0x415001(0x1f9)](_0x5194be,_0x1e5cfb[_0x415001(0x42d)][_0xc29211])),this[_0x415001(0xfa)](_0x5194be,_0x35bcb9,_0xc29211,-0x1),_0xc29211+0x1;if(_0x1166a9>0x0){let _0x35ff98=_0x225749?_0x5194be[_0x415001(0x36b)][_0x3c9f20[0x0]]:-0x1;return _0x1e5cfb[_0x415001(0x3ab)](_0xc29211,0x0,''),_0x1e5cfb[_0x415001(0x372)](_0xc29211,0x0,0xe),_0x1e5cfb[_0x415001(0x189)](_0xc29211,this[_0x415001(0xf1)](_0x35bcb9,_0x35ff98)),this[_0x415001(0xfa)](_0x5194be,_0x35bcb9,_0xc29211,_0x35ff98),_0xc29211+0x1;}return _0x5194be[_0x415001(0x3ec)]>0x0?(_0x1e5cfb['setValue'](_0xc29211,0x0,''),_0x1e5cfb[_0x415001(0x372)](_0xc29211,0x0,0xe),_0x1e5cfb[_0x415001(0x189)](_0xc29211,this[_0x415001(0xf1)](_0x35bcb9,-0x1)),_0xc29211+0x1):_0xc29211;}static[_0x973ad6(0xfa)](_0x3af7cb,_0x4579c4,_0x72276,_0x49eeb2){const _0x40bb75=_0x973ad6;_0x3af7cb[_0x40bb75(0x3ec)]===0x0?this[_0x40bb75(0x132)](_0x3af7cb,_0x4579c4,_0x72276,_0x49eeb2):this['layoutValueNodeSubtotal'](_0x3af7cb,_0x72276);}static[_0x973ad6(0x133)](_0x2c28f7,_0x5f2d7c){const _0x4d699c=_0x973ad6;return{'paths':_0x2c28f7[_0x4d699c(0x3a1)](),'valueIndex':-0x1,'level':_0x2c28f7[_0x4d699c(0x323)](),'tableFieldId':_0x2c28f7[_0x4d699c(0x260)](),..._0x5f2d7c};}static[_0x973ad6(0xf1)](_0x4b2fdc,_0x98ed2e){const _0x58f3fb=_0x973ad6;return{'paths':_0x4b2fdc['getPaths'](),'valueIndex':_0x98ed2e,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x4b2fdc['getLevel'](),'tableFieldId':'','rowType':_0x58f3fb(0x15b)};}static[_0x973ad6(0xc0)](_0x723007){const _0xb3d06b=_0x973ad6;return _0x723007['rowDeep']===0x0?_0x723007[_0xb3d06b(0x135)]===0x0||_0x723007['isColMultiMeasure']?0x0:_0x723007[_0xb3d06b(0x3d0)]||_0x723007[_0xb3d06b(0x1a3)]!==0x0?0x1:0x0:0x1;}static[_0x973ad6(0xc3)](_0x1fc701,_0x35b46f){return 0x0;}static[_0x973ad6(0x13d)](_0x258899,_0x3760a9){return 0x0;}static['getNodeDisplayValue'](_0x3f601d){const _0x1eb04e=_0x973ad6;return _0x3f601d['type']===0x4||_0x3f601d['type']===0x2?Number(_0x3f601d['displayName']):_0x3f601d[_0x1eb04e(0x27c)];}static[_0x973ad6(0x304)](_0x1f51bf,_0x20404a,_0x24fa7a,_0x5d803c){const _0x1d4406=_0x973ad6;_0x5d803c[_0x1d4406(0x37a)]===0x5&&_0x1f51bf[_0x1d4406(0x26c)](_0x20404a,_0x24fa7a),_0x5d803c['type']===0x6&&_0x1f51bf[_0x1d4406(0x13c)](_0x20404a,_0x24fa7a);}static[_0x973ad6(0xbd)](_0x40bcaf,_0x16ca91,_0x53809e){}static[_0x973ad6(0x1e1)](_0x5af7e1){const _0x4af415=_0x973ad6;if(super[_0x4af415(0x1e1)](_0x5af7e1),_0x5af7e1[_0x4af415(0x1a3)]===0x0)return;let _0x57d6dc=_0x5af7e1[_0x4af415(0x1b2)][_0x4af415(0x265)],_0x32a6fd=_0x57d6dc['getHeaderMapItem'](0x1);for(let _0x27de35=0x1;_0x27de35<=_0x57d6dc[_0x4af415(0x30b)]();_0x27de35++)_0x57d6dc[_0x4af415(0x3ab)](0x0,_0x27de35,'');_0x57d6dc[_0x4af415(0x3ab)](0x0,0x0,'Column\x20Labels'),_0x32a6fd&&_0x57d6dc['addHeaderMapItem'](0x1,{..._0x32a6fd,'isColumnLabel':!0x0});}static[_0x973ad6(0x23b)](_0x4aa5aa){const _0x2ea958=_0x973ad6;let {rowDeep:_0x5772e3,colDeep:_0x27b86b,view:_0x53f135,measureCount:_0x4511d4}=_0x4aa5aa,_0x510965=_0x4aa5aa[_0x2ea958(0x24c)][_0x2ea958(0x28c)],_0x108650=_0x4aa5aa[_0x2ea958(0x24c)][_0x2ea958(0x2f5)],_0x1358ee=_0x53f135['cornerView'],_0x5e35ec=_0x53f135[_0x2ea958(0x265)],_0xe9f520=_0x53f135['rowView'],_0x214104=_0x5e35ec[_0x2ea958(0xee)]();_0x214104===0x0&&_0x5772e3!==0x0&&(_0x214104=0x1);let _0x274d96=_0xe9f520[_0x2ea958(0x2c6)]();if(_0x1358ee[_0x2ea958(0x252)](_0x214104),_0x1358ee[_0x2ea958(0x296)](_0x274d96),_0x5772e3===0x0&&_0x27b86b===0x0&&_0x4aa5aa[_0x2ea958(0x3d0)]?_0x1358ee[_0x2ea958(0x3ab)](0x0,0x0,_0x2ea958(0x3d1)):_0x5772e3===0x0&&_0x4aa5aa[_0x2ea958(0x3d0)]&&_0x1358ee[_0x2ea958(0x3ab)](_0x214104-0x1,0x0,_0x2ea958(0x3d1)),_0x4511d4===0x1&&_0x27b86b>0x0&&_0x5772e3>0x0&&_0x1358ee[_0x2ea958(0x3ab)](0x0,0x0,_0x108650[0x0][_0x2ea958(0x27c)]),_0x5772e3===0x0)return;let _0x2d2bd9=_0x214104-0x1,{filterInfo:_0xef9072,sortInfo:_0x2922f0,dataFieldId:_0x3b66a9,id:_0x1da7e9}=_0x510965[0x0];_0x1358ee[_0x2ea958(0x3ab)](_0x2d2bd9,0x0,'Row\x20Labels'),_0x1358ee['setStyle'](_0x2d2bd9,0x0,_0x24ba7a(_0xef9072,_0x2922f0,_0x4aa5aa[_0x2ea958(0x2fd)][_0x1da7e9])),_0x1358ee['setInfo'](0x0,{'paths':[],'level':0x0,'tableFieldId':_0x1da7e9,'dataFieldId':_0x3b66a9,'valueIndex':-0x1,'isRowLabel':!0x0}),_0xe9f520[_0x2ea958(0x3ed)](0x0,{'isValue':!0x1,'level':0x0,'tableFieldId':_0x1da7e9,'dataFieldId':_0x3b66a9});}},_0x20575e=class extends _0x105e2b{static['layout'](_0x163323,_0x41e0a2,_0x1cb00c){const _0x41f13e=_0x973ad6;let _0x165562=this[_0x41f13e(0x25d)](_0x163323,_0x41e0a2,_0x1cb00c);return this['layoutPage'](_0x165562),this[_0x41f13e(0x1d6)](_0x165562),this[_0x41f13e(0x2a6)](_0x165562),this['layoutHeadersWithoutColumnDimensions'](_0x165562),this[_0x41f13e(0xcb)](_0x165562),this[_0x41f13e(0x23b)](_0x165562),_0x165562['view'];}static['layoutRowFields'](_0x2dcbba){const _0x3cb987=_0x973ad6;let {rowNodeTree:_0x15a5b3,view:_0x2adf93,isRowMultiMeasure:_0x4a4b95,valueQueryInfo:_0x3b9981,measureCount:_0x4a7632,rowDeep:_0x4f80b5,showRowGrandTotal:_0x3b15b7}=_0x2dcbba,_0x392752=_0x2adf93[_0x3cb987(0x337)],_0x29459a=_0x4a4b95?_0x3b9981[_0x3cb987(0x3cb)](_0x552cf4=>_0x552cf4['id']):[],_0x55fa9b=0x0;if(_0x4f80b5===0x0)_0x4a7632>0x0&&(_0x55fa9b=this[_0x3cb987(0x178)](_0x2dcbba,_0x15a5b3,_0x55fa9b,_0x29459a));else{if(this[_0x3cb987(0x225)](_0x2dcbba)){for(let _0x9d02b9 of _0x29459a)_0x55fa9b=this[_0x3cb987(0xc5)](_0x2dcbba,_0x55fa9b,_0x9d02b9),_0x55fa9b=this['layoutRowChildren'](_0x2dcbba,_0x15a5b3,_0x55fa9b,[_0x9d02b9]);}else _0x55fa9b=this[_0x3cb987(0x381)](_0x2dcbba,_0x15a5b3,_0x55fa9b,_0x29459a);_0x3b15b7&&(_0x4a7632>0x0||_0x4f80b5>0x0)&&(_0x55fa9b=this[_0x3cb987(0x178)](_0x2dcbba,_0x15a5b3,_0x55fa9b,_0x29459a));}_0x392752[_0x3cb987(0x252)](_0x55fa9b),_0x392752['setColCount'](this[_0x3cb987(0xc0)](_0x2dcbba));}static[_0x973ad6(0x225)](_0x4fed72){const _0x26d650=_0x973ad6;return _0x4fed72[_0x26d650(0x3d0)]&&_0x4fed72['valueIndex']===0x0;}static[_0x973ad6(0x381)](_0x3c648c,_0x5aacdc,_0x47311e,_0x45075b){let _0x4dd243=_0x47311e;return _0x5aacdc['iterate'](_0x32c2a1=>{const _0x590343=_0x2f46;_0x4dd243=this[_0x590343(0x382)](_0x3c648c,_0x32c2a1,_0x4dd243,_0x45075b);}),_0x4dd243;}static[_0x973ad6(0x16e)](_0x139b82,_0x6a261d,_0x62d7fb,_0x4248ae){return{'itemSize':this['layoutRowNodeToCursor'](_0x139b82,_0x6a261d,_0x62d7fb,_0x4248ae)-_0x62d7fb,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x973ad6(0x382)](_0x3c5b99,_0x43a5bd,_0x3e2b52,_0x43664e){const _0x561b19=_0x973ad6;let _0xd78938=this[_0x561b19(0x3f1)](_0x43a5bd,_0x3c5b99['rowDeep']),_0x4243ef=_0x43a5bd[_0x561b19(0x173)]();if(!_0xd78938){if(this[_0x561b19(0x44a)](_0x3c5b99,_0x43a5bd)&&!_0x4243ef){let _0x1c0007=this['writeParentItemRow'](_0x3c5b99,_0x43a5bd,_0x3e2b52);if(this['shouldMultipleNode'](_0x3c5b99['isRowMultiMeasure'],_0x43a5bd[_0x561b19(0x323)](),_0x3c5b99[_0x561b19(0x403)])){for(let _0x1cfc19 of _0x43664e)_0x1c0007=this[_0x561b19(0x36c)](_0x3c5b99,_0x43a5bd,_0x1c0007,_0x1cfc19),_0x1c0007=this['layoutRowChildren'](_0x3c5b99,_0x43a5bd,_0x1c0007,[_0x1cfc19]);}else _0x1c0007=this['layoutRowChildren'](_0x3c5b99,_0x43a5bd,_0x1c0007,_0x43664e);return _0x3c5b99[_0x561b19(0x15a)]&&(_0x1c0007=this[_0x561b19(0x3ea)](_0x3c5b99,_0x43a5bd,_0x1c0007,_0x43664e)),_0x1c0007;}if(this[_0x561b19(0x3c3)](_0x3c5b99)&&!_0x4243ef){let _0x41f01e=this[_0x561b19(0x43c)](_0x3c5b99,_0x43a5bd,_0x3e2b52);return _0x41f01e=this['layoutRowChildren'](_0x3c5b99,_0x43a5bd,_0x41f01e,_0x43664e),_0x3c5b99[_0x561b19(0x15a)]&&(_0x41f01e=this[_0x561b19(0x3ea)](_0x3c5b99,_0x43a5bd,_0x41f01e,_0x43664e)),_0x41f01e;}if(this[_0x561b19(0x29b)](_0x3c5b99[_0x561b19(0x3d0)],_0x43a5bd[_0x561b19(0x323)](),_0x3c5b99[_0x561b19(0x403)])){let _0x192596=_0x3e2b52;for(let _0x4842f0 of _0x43664e)_0x192596=this[_0x561b19(0x2e5)](_0x3c5b99,_0x43a5bd,_0x192596,[_0x4842f0]),_0x4243ef||(_0x192596=this[_0x561b19(0x381)](_0x3c5b99,_0x43a5bd,_0x192596,[_0x4842f0]));return _0x192596;}let _0x43c939=this[_0x561b19(0x2e5)](_0x3c5b99,_0x43a5bd,_0x3e2b52,_0x43664e);return _0x4243ef||(_0x43c939=this['layoutRowChildren'](_0x3c5b99,_0x43a5bd,_0x43c939,_0x43664e)),_0x43c939;}return this[_0x561b19(0x1d8)](_0x3c5b99,_0x43a5bd,_0x3e2b52,_0x43664e);}static[_0x973ad6(0x3c3)](_0x364ff3){const _0x73e4a1=_0x973ad6;return _0x364ff3[_0x73e4a1(0x435)]===0x2;}static[_0x973ad6(0x44a)](_0x262275,_0x2bd28a){const _0x451a8e=_0x973ad6;return _0x262275[_0x451a8e(0x3d0)]&&_0x262275['valueIndex']>0x0&&_0x2bd28a[_0x451a8e(0x323)]()<=_0x262275[_0x451a8e(0x403)];}static[_0x973ad6(0x43c)](_0x1a3c53,_0x7cf81,_0x53511f){const _0x19794f=_0x973ad6;let _0x2236b3=this[_0x19794f(0xc3)](_0x1a3c53,_0x7cf81[_0x19794f(0x323)]()),_0x5ebf77=this[_0x19794f(0x10e)](_0x7cf81),_0xf820bd=_0x1a3c53['view']['rowView'];return _0xf820bd[_0x19794f(0x3ab)](_0x53511f,_0x2236b3,_0x5ebf77),this[_0x19794f(0x304)](_0xf820bd,_0x53511f,_0x2236b3,_0x7cf81),this[_0x19794f(0xbd)](_0x1a3c53,_0x7cf81,_0x53511f),_0xf820bd[_0x19794f(0x372)](_0x53511f,_0x2236b3,0xc),_0xf820bd['setInfo'](_0x53511f,this['createRowInfo'](_0x7cf81,{'rowType':'item'})),_0x53511f+0x1;}static[_0x973ad6(0x36c)](_0x5b48bb,_0x541158,_0x4b2321,_0x241ca5){const _0x250c14=_0x973ad6;let _0xec07bc=this['getValueLabelCol'](_0x5b48bb,_0x541158[_0x250c14(0x323)]()),_0x45ee13=_0x5b48bb[_0x250c14(0x36b)][_0x241ca5],_0x31e07d=_0x5b48bb[_0x250c14(0x1b2)][_0x250c14(0x337)];return this[_0x250c14(0xbd)](_0x5b48bb,_0x541158,_0x4b2321),_0x31e07d[_0x250c14(0x3ab)](_0x4b2321,_0xec07bc,_0x5b48bb['measuresMap'][_0x241ca5][_0x250c14(0x27c)]),_0x31e07d[_0x250c14(0x189)](_0x4b2321,this[_0x250c14(0x133)](_0x541158,{'valueIndex':_0x45ee13,'isValue':!0x0,'dataFieldId':_0x5b48bb['measuresMap'][_0x241ca5][_0x250c14(0x2a7)],'rowType':_0x250c14(0x226)})),_0x4b2321+0x1;}static['writeRootValueHeaderRow'](_0x795e44,_0x539046,_0xd51578){const _0x40ea9f=_0x973ad6;let _0x50d61b=_0x795e44['measureIndexesMap'][_0xd51578],_0x56521e=_0x795e44[_0x40ea9f(0x29c)][_0xd51578],_0x2f4726=_0x795e44[_0x40ea9f(0x1b2)][_0x40ea9f(0x337)];return _0x2f4726[_0x40ea9f(0x3ab)](_0x539046,0x0,_0x56521e['displayName']),_0x2f4726[_0x40ea9f(0x189)](_0x539046,{'paths':[],'valueIndex':_0x50d61b,'level':-0x1,'tableFieldId':'','dataFieldId':_0x56521e[_0x40ea9f(0x2a7)],'isValue':!0x0,'rowType':_0x40ea9f(0x226)}),_0x539046+0x1;}static[_0x973ad6(0x2e5)](_0x231351,_0x77694b,_0x256321,_0xb9492b){const _0x188104=_0x973ad6;if((_0x231351[_0x188104(0x15a)]||_0x77694b[_0x188104(0x173)]())&&_0x231351[_0x188104(0x3d0)]&&_0xb9492b['length']>0x1&&this['shouldMultipleTotal'](_0x231351[_0x188104(0x3d0)],_0x77694b[_0x188104(0x323)](),_0x231351['valueIndex'])){let _0x590148=_0x256321;for(let _0x305cd8 of _0xb9492b){let _0x32cd1a=_0x231351[_0x188104(0x36b)][_0x305cd8];this[_0x188104(0x1bd)](_0x231351,_0x77694b,_0x590148,_0x32cd1a,_0x231351['measuresMap'][_0x305cd8][_0x188104(0x27c)]),_0x590148++;}return _0x590148;}let _0x4a70aa=_0x231351[_0x188104(0x3d0)]&&_0xb9492b[_0x188104(0x155)]===0x1?_0x231351[_0x188104(0x36b)][_0xb9492b[0x0]]:-0x1,_0xdb141=_0x231351[_0x188104(0x3d0)]&&_0xb9492b[_0x188104(0x155)]===0x1&&_0x231351[_0x188104(0x403)]>0x0&&_0x231351[_0x188104(0x403)]===_0x77694b['getLevel']()?_0x231351[_0x188104(0x29c)][_0xb9492b[0x0]][_0x188104(0x27c)]:void 0x0;return this['writeParentRow'](_0x231351,_0x77694b,_0x256321,_0x4a70aa,_0xdb141),_0x256321+0x1;}static[_0x973ad6(0x1bd)](_0x5ca186,_0x325650,_0x1a4b29,_0x550b9b,_0x1269b3){const _0x2e4dd4=_0x973ad6;let {showRowSubtotal:_0x125ee1}=_0x5ca186,_0x585e96=_0x325650[_0x2e4dd4(0x173)](),_0xbd16e6=_0x125ee1||_0x585e96,_0x51d777=this['getRowLabelCol'](_0x5ca186,_0x325650[_0x2e4dd4(0x323)]()),_0x13f00b=_0x1269b3?this[_0x2e4dd4(0x13d)](_0x5ca186,_0x325650[_0x2e4dd4(0x323)]()):_0x51d777,_0x4b5225=this['getNodeDisplayValue'](_0x325650),_0x504823=_0x5ca186['view']['rowView'];_0x504823[_0x2e4dd4(0x3ab)](_0x1a4b29,_0x51d777,_0x4b5225),this[_0x2e4dd4(0x304)](_0x504823,_0x1a4b29,_0x51d777,_0x325650),_0x504823[_0x2e4dd4(0x372)](_0x1a4b29,_0x51d777,_0x585e96?0xb:0xc),this['repeatRowLabelsForNode'](_0x5ca186,_0x325650,_0x1a4b29),_0x1269b3&&_0x504823[_0x2e4dd4(0x3ab)](_0x1a4b29,_0x13f00b,_0x1269b3),_0x504823[_0x2e4dd4(0x189)](_0x1a4b29,this[_0x2e4dd4(0x133)](_0x325650,{'valueIndex':_0x550b9b,'isBottomTotal':_0xbd16e6,'isSubtotal':_0xbd16e6,'isTopTotal':_0xbd16e6,'rowType':_0xbd16e6?'subtotal':'item'})),_0xbd16e6&&this[_0x2e4dd4(0x18a)](_0x5ca186,_0x1a4b29);}static[_0x973ad6(0x3ea)](_0x210dce,_0x45f2a9,_0xfd862c,_0x2dcd93){const _0x16a578=_0x973ad6;let {isRowMultiMeasure:_0x3b9a70,measuresMap:_0x1ad526}=_0x210dce;if(this[_0x16a578(0x342)](_0x3b9a70,_0x45f2a9[_0x16a578(0x323)](),_0x210dce[_0x16a578(0x403)])){let _0x4f0e00=_0xfd862c;for(let _0x1f1b25 of _0x2dcd93){let _0x314f25=_0x210dce[_0x16a578(0x36b)][_0x1f1b25];this['writeBottomSubtotalRow'](_0x210dce,_0x45f2a9,_0x4f0e00,_0x314f25,_0x1ad526[_0x1f1b25][_0x16a578(0x27c)]),_0x4f0e00++;}return _0x4f0e00;}return this[_0x16a578(0x2b0)](_0x210dce,_0x45f2a9,_0xfd862c,_0x3b9a70?_0x210dce[_0x16a578(0x36b)][_0x2dcd93[0x0]]:-0x1),_0xfd862c+0x1;}static[_0x973ad6(0x2b0)](_0x23c6ba,_0x25c76a,_0x2cc9a5,_0x395e24,_0x3c012d){const _0x205364=_0x973ad6;let _0x43dc04=this[_0x205364(0xc3)](_0x23c6ba,_0x25c76a[_0x205364(0x323)]()),_0x3586a0=this[_0x205364(0x10e)](_0x25c76a),_0x521246=_0x23c6ba[_0x205364(0x1b2)][_0x205364(0x337)];_0x521246['setValue'](_0x2cc9a5,_0x43dc04,_0x3c012d?{'prefix':String(_0x3586a0),'value':_0x3c012d}:_0x3586a0),this[_0x205364(0x304)](_0x521246,_0x2cc9a5,_0x43dc04,_0x25c76a),_0x521246['setStyle'](_0x2cc9a5,_0x43dc04,0xd),this[_0x205364(0xbd)](_0x23c6ba,_0x25c76a,_0x2cc9a5),_0x521246[_0x205364(0x3ab)](_0x2cc9a5,_0x43dc04,_0x3c012d?{'prefix':String(_0x3586a0),'value':_0x3c012d}:_0x3586a0),_0x521246[_0x205364(0x189)](_0x2cc9a5,this[_0x205364(0x133)](_0x25c76a,{'valueIndex':_0x395e24,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0x205364(0x2e0)})),this[_0x205364(0x18a)](_0x23c6ba,_0x2cc9a5);}static['writeLeafRows'](_0x48610b,_0xb332e4,_0x40f59e,_0x294151){const _0x36413e=_0x973ad6;let {isRowMultiMeasure:_0xdb89e5,valueIndex:_0x5ef70f,measureCount:_0x541db3,measuresMap:_0x551f54,measureIndexesMap:_0x19cd35}=_0x48610b;if(this[_0x36413e(0x29b)](_0xdb89e5,_0xb332e4[_0x36413e(0x323)](),_0x5ef70f)){if(this['shouldWriteLeafValuesUnderItem'](_0x48610b)){let _0x15db2a=this[_0x36413e(0x221)](_0x48610b,_0xb332e4,_0x40f59e);for(let _0x4e3626 of _0x294151){let _0x5c2e19=_0x19cd35[_0x4e3626];this['writeLeafValueRow'](_0x48610b,_0xb332e4,_0x15db2a,_0x5c2e19,_0x551f54[_0x4e3626][_0x36413e(0x27c)]),this[_0x36413e(0x132)](_0x48610b,_0xb332e4,_0x15db2a,_0x5c2e19),_0x15db2a++;}return _0x15db2a;}let _0x2af42f=_0x40f59e;for(let _0xf30319 of _0x294151){let _0x532d59=_0x19cd35[_0xf30319],_0x3a74e7=this[_0x36413e(0xc3)](_0x48610b,_0xb332e4['getLevel']()),_0x58b17f=this[_0x36413e(0x13d)](_0x48610b,_0xb332e4[_0x36413e(0x323)]()),_0x3dca55=this['getNodeDisplayValue'](_0xb332e4),_0x15c7c3=_0x48610b['view'][_0x36413e(0x337)];_0x15c7c3[_0x36413e(0x3ab)](_0x2af42f,_0x3a74e7,_0x3dca55),this[_0x36413e(0x304)](_0x15c7c3,_0x2af42f,_0x3a74e7,_0xb332e4),this['repeatRowLabelsForNode'](_0x48610b,_0xb332e4,_0x2af42f),_0x15c7c3[_0x36413e(0x3ab)](_0x2af42f,_0x58b17f,_0x551f54[_0xf30319]['displayName']),_0x15c7c3[_0x36413e(0x189)](_0x2af42f,this[_0x36413e(0x133)](_0xb332e4,{'valueIndex':_0x532d59,'isLeaf':!0x0,'rowType':_0x36413e(0x3c0)})),this['startContent'](_0x48610b,_0xb332e4,_0x2af42f,_0x532d59),_0x2af42f++;}return _0x2af42f;}let _0x1c161c=_0xdb89e5?_0x19cd35[_0x294151[0x0]]:-0x1,_0xc27373=this['getRowLabelCol'](_0x48610b,_0xb332e4[_0x36413e(0x323)]()),_0x302b59=this[_0x36413e(0x10e)](_0xb332e4),_0x3712d0=_0x48610b[_0x36413e(0x1b2)][_0x36413e(0x337)];return _0x3712d0[_0x36413e(0x3ab)](_0x40f59e,_0xc27373,_0x302b59),this['applyNodeValueType'](_0x3712d0,_0x40f59e,_0xc27373,_0xb332e4),this['repeatRowLabelsForNode'](_0x48610b,_0xb332e4,_0x40f59e),_0x3712d0[_0x36413e(0x189)](_0x40f59e,this[_0x36413e(0x133)](_0xb332e4,{'valueIndex':_0x1c161c,'isLeaf':!0x0,'rowType':_0x36413e(0x3c0)})),_0x541db3>0x0&&this['startContent'](_0x48610b,_0xb332e4,_0x40f59e,_0x1c161c),_0x40f59e+0x1;}static[_0x973ad6(0x1a7)](_0x2c6507){const _0x4c47ae=_0x973ad6;return _0x2c6507[_0x4c47ae(0x3d0)]&&_0x2c6507['valueIndex']>0x0;}static[_0x973ad6(0x221)](_0x8f641c,_0x4363b3,_0x3e7dbc){const _0x3f9552=_0x973ad6;let _0x3b56c6=this[_0x3f9552(0xc3)](_0x8f641c,_0x4363b3['getLevel']()),_0x802714=this['getNodeDisplayValue'](_0x4363b3),_0x66298e=_0x8f641c['view'][_0x3f9552(0x337)];return _0x66298e[_0x3f9552(0x3ab)](_0x3e7dbc,_0x3b56c6,_0x802714),this[_0x3f9552(0x304)](_0x66298e,_0x3e7dbc,_0x3b56c6,_0x4363b3),this['repeatRowLabelsForNode'](_0x8f641c,_0x4363b3,_0x3e7dbc),_0x66298e[_0x3f9552(0x189)](_0x3e7dbc,this[_0x3f9552(0x133)](_0x4363b3,{'isLeaf':!0x0,'rowType':'item'})),_0x3e7dbc+0x1;}static[_0x973ad6(0x239)](_0x27e113,_0xe95fe5,_0x2043f1,_0x5d3315,_0x4ee9c9){const _0x15fa38=_0x973ad6;let _0x599690=this[_0x15fa38(0x13d)](_0x27e113,_0xe95fe5[_0x15fa38(0x323)]()),_0x31747e=_0x27e113[_0x15fa38(0x1b2)]['rowView'];this[_0x15fa38(0xbd)](_0x27e113,_0xe95fe5,_0x2043f1),_0x31747e[_0x15fa38(0x3ab)](_0x2043f1,_0x599690,_0x4ee9c9),_0x31747e[_0x15fa38(0x189)](_0x2043f1,this[_0x15fa38(0x133)](_0xe95fe5,{'valueIndex':_0x5d3315,'isLeaf':!0x0,'isValue':!0x0,'rowType':'value'}));}static[_0x973ad6(0x178)](_0x40f50a,_0x3075ed,_0x49a4ed,_0x35a4a0){const _0x34bcdf=_0x973ad6;let {isRowMultiMeasure:_0x45c62b,measureCount:_0x57d743,measuresMap:_0x136a7,measureIndexesMap:_0x31b738}=_0x40f50a,_0x185a90=_0x40f50a['view'][_0x34bcdf(0x337)];if(this[_0x34bcdf(0x342)](_0x45c62b,_0x3075ed[_0x34bcdf(0x323)](),_0x40f50a[_0x34bcdf(0x403)])){let _0x3a4106=_0x49a4ed;for(let _0xa10a81 of _0x35a4a0){let _0x310951=_0x31b738[_0xa10a81];_0x185a90[_0x34bcdf(0x3ab)](_0x3a4106,0x0,_0x136a7[_0xa10a81][_0x34bcdf(0x27c)]),_0x185a90[_0x34bcdf(0x372)](_0x3a4106,0x0,0xf),_0x185a90[_0x34bcdf(0x189)](_0x3a4106,this[_0x34bcdf(0xf1)](_0x3075ed,_0x310951)),this[_0x34bcdf(0xfa)](_0x40f50a,_0x3075ed,_0x3a4106,_0x310951),_0x3a4106++;}return _0x3a4106;}if(_0x40f50a['rowDeep']===0x0&&!_0x45c62b&&_0x57d743>0x0)return _0x40f50a[_0x34bcdf(0x1a3)]!==0x0&&_0x185a90[_0x34bcdf(0x3ab)](_0x49a4ed,0x0,_0x40f50a[_0x34bcdf(0x2f5)][0x0][_0x34bcdf(0x27c)]),_0x185a90[_0x34bcdf(0x189)](_0x49a4ed,this['createGrandTotalInfo'](_0x3075ed,-0x1)),_0x40f50a['colDeep']!==0x0&&_0x185a90[_0x34bcdf(0x189)](_0x49a4ed,this[_0x34bcdf(0x1f9)](_0x40f50a,_0x185a90[_0x34bcdf(0x42d)][_0x49a4ed])),this['layoutGrandTotalValues'](_0x40f50a,_0x3075ed,_0x49a4ed,-0x1),_0x49a4ed+0x1;if(_0x57d743>0x0){let _0xea80ef=_0x45c62b?_0x31b738[_0x35a4a0[0x0]]:-0x1;return _0x185a90[_0x34bcdf(0x3ab)](_0x49a4ed,0x0,''),_0x185a90['setStyle'](_0x49a4ed,0x0,0xe),_0x185a90[_0x34bcdf(0x189)](_0x49a4ed,this[_0x34bcdf(0xf1)](_0x3075ed,_0xea80ef)),this[_0x34bcdf(0xfa)](_0x40f50a,_0x3075ed,_0x49a4ed,_0xea80ef),_0x49a4ed+0x1;}return _0x40f50a[_0x34bcdf(0x3ec)]>0x0?(_0x185a90[_0x34bcdf(0x3ab)](_0x49a4ed,0x0,''),_0x185a90['setStyle'](_0x49a4ed,0x0,0xe),_0x185a90['setInfo'](_0x49a4ed,this['createGrandTotalInfo'](_0x3075ed,-0x1)),_0x49a4ed+0x1):_0x49a4ed;}static[_0x973ad6(0xfa)](_0x1ea847,_0x36fdf8,_0xaa4527,_0x338f1d){const _0xb938e2=_0x973ad6;_0x1ea847[_0xb938e2(0x3ec)]===0x0?this[_0xb938e2(0x132)](_0x1ea847,_0x36fdf8,_0xaa4527,_0x338f1d):this['layoutValueNodeSubtotal'](_0x1ea847,_0xaa4527);}static[_0x973ad6(0x133)](_0x4a4ea9,_0xc1b0fd){const _0x204e9c=_0x973ad6;return{'paths':_0x4a4ea9[_0x204e9c(0x3a1)](),'valueIndex':-0x1,'level':_0x4a4ea9[_0x204e9c(0x323)](),'tableFieldId':_0x4a4ea9['getFieldsId'](),..._0xc1b0fd};}static['createGrandTotalInfo'](_0x5cae9b,_0x330ae7){const _0x31e0bd=_0x973ad6;return{'paths':_0x5cae9b[_0x31e0bd(0x3a1)](),'valueIndex':_0x330ae7,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x5cae9b[_0x31e0bd(0x323)](),'tableFieldId':'','rowType':_0x31e0bd(0x15b)};}static[_0x973ad6(0xc0)](_0x231cf7){const _0x677a52=_0x973ad6;let {rowDeep:_0x1c1a50,isRowMultiMeasure:_0x52effa}=_0x231cf7;return _0x1c1a50===0x0?_0x231cf7[_0x677a52(0x135)]===0x0||_0x231cf7['isColMultiMeasure']?0x0:_0x52effa||_0x231cf7['colDeep']!==0x0?0x1:0x0:_0x52effa?_0x1c1a50+0x1:_0x1c1a50;}static[_0x973ad6(0xc3)](_0x2f21e0,_0x58a03e){const _0x2eff14=_0x973ad6;return this[_0x2eff14(0xec)](_0x58a03e,_0x2f21e0[_0x2eff14(0x403)],_0x2f21e0['isRowMultiMeasure']);}static['getValueLabelCol'](_0xeab62b,_0x507909){const _0x356644=_0x973ad6;return this['getColIndexForRowHeader'](_0x507909,_0xeab62b[_0x356644(0x403)],_0xeab62b[_0x356644(0x3d0)])+0x1;}static['getNodeDisplayValue'](_0x423b9c){const _0x457808=_0x973ad6;return _0x423b9c[_0x457808(0x37a)]===0x4||_0x423b9c[_0x457808(0x37a)]===0x2?Number(_0x423b9c[_0x457808(0x27c)]):_0x423b9c[_0x457808(0x27c)];}static['applyNodeValueType'](_0x56532e,_0x514c1b,_0x1f2979,_0x5f6ba0){const _0x45cb58=_0x973ad6;_0x5f6ba0['type']===0x5&&_0x56532e['setBlank'](_0x514c1b,_0x1f2979),_0x5f6ba0[_0x45cb58(0x37a)]===0x6&&_0x56532e[_0x45cb58(0x13c)](_0x514c1b,_0x1f2979);}},_0x235579=class{constructor(_0xf22fc5,_0x3b08cd,_0x22dc50){const _0x54c6a1=_0x973ad6;_0x5dd0e0(this,_0x54c6a1(0x148),void 0x0),_0x5dd0e0(this,_0x54c6a1(0x28d),void 0x0),_0x5dd0e0(this,_0x54c6a1(0x3d7),void 0x0),_0x5dd0e0(this,_0x54c6a1(0x218),void 0x0),_0x5dd0e0(this,'isLeaf',void 0x0),_0x5dd0e0(this,_0x54c6a1(0x25a),void 0x0),_0x5dd0e0(this,'displayName',void 0x0),_0x5dd0e0(this,'displayPaths',[]),_0x5dd0e0(this,_0x54c6a1(0xe9),void 0x0),_0x5dd0e0(this,_0x54c6a1(0x2d9),void 0x0),_0x5dd0e0(this,_0x54c6a1(0x147),[]),_0x5dd0e0(this,_0x54c6a1(0x10f),!0x1),_0x5dd0e0(this,_0x54c6a1(0x37a),void 0x0),_0x5dd0e0(this,'_nodes',{}),this[_0x54c6a1(0x148)]=_0xf22fc5,this[_0x54c6a1(0xe9)]=_0x3b08cd,this[_0x54c6a1(0x37a)]=_0x22dc50;}[_0x973ad6(0x173)](){const _0x58d021=_0x973ad6;return this[_0x58d021(0x2d9)];}[_0x973ad6(0x1ed)](_0x48e479){const _0x4e4311=_0x973ad6;this[_0x4e4311(0x2d9)]=_0x48e479;}[_0x973ad6(0x260)](){const _0x1881d3=_0x973ad6;return this[_0x1881d3(0xe9)];}[_0x973ad6(0x1a4)](_0x1157a6){const _0x5f52f3=_0x973ad6;if(this[_0x5f52f3(0x10f)])for(let _0x5f33b7 of this[_0x5f52f3(0x147)]){let _0x7c7614=this[_0x5f52f3(0x2ab)][_0x5f33b7];_0x1157a6(_0x7c7614);}else{let _0x6e9ec4=Object['keys'](this[_0x5f52f3(0x2ab)]);for(let _0x3cc149=0x0;_0x3cc149<_0x6e9ec4['length'];_0x3cc149++){let _0x293cac=this['_nodes'][_0x6e9ec4[_0x3cc149]];_0x1157a6(_0x293cac);}}}[_0x973ad6(0x2a2)](){const _0x274f5a=_0x973ad6;return this[_0x274f5a(0x148)];}[_0x973ad6(0x2ea)](_0x4014b2){return this['_nodes'][_0x4014b2]!==void 0x0;}[_0x973ad6(0x249)](_0x3de937){this['parentIndex']=_0x3de937;}['setLevel'](_0x213786){const _0x11dceb=_0x973ad6;this[_0x11dceb(0x28d)]=_0x213786;}['getLevel'](){return this['_level'];}[_0x973ad6(0x2b3)](_0x7bf607){this['paths']=_0x7bf607;}[_0x973ad6(0x3a1)](){const _0x1d5d7d=_0x973ad6;return this[_0x1d5d7d(0x218)];}['setLeaf'](){const _0x3b5b38=_0x973ad6;this[_0x3b5b38(0xd7)]=!0x0;}[_0x973ad6(0x12d)](){return!!this['isLeaf'];}['setName'](_0x1eee81){const _0x4bdf50=_0x973ad6;this[_0x4bdf50(0x25a)]=_0x1eee81;}[_0x973ad6(0xe4)](_0x2239ea,_0x53a602,_0x407b57,_0x53bee5,_0xaf5dc1=_0x53a602){const _0xf31ddf=_0x973ad6;this[_0xf31ddf(0x2ab)][_0x53a602]=_0x2239ea,_0x2239ea['setName'](_0x53a602),_0x2239ea[_0xf31ddf(0x27c)]=_0xaf5dc1,_0x2239ea[_0xf31ddf(0x200)]=this[_0xf31ddf(0x200)][_0xf31ddf(0x383)](_0xaf5dc1),_0x2239ea['setParentIndex'](this[_0xf31ddf(0x148)]),_0x2239ea[_0xf31ddf(0x305)](this[_0xf31ddf(0x28d)]+0x1),_0x2239ea[_0xf31ddf(0x2b3)](this[_0xf31ddf(0x218)][_0xf31ddf(0x383)](_0x53a602)),_0x407b57&&(this[_0xf31ddf(0xe7)](_0x53a602,_0x407b57,_0x53bee5),this[_0xf31ddf(0x10f)]=!0x0);}[_0x973ad6(0xe7)](_0x1f43b6,_0x565eab,_0x3bcb17){const _0x57f24f=_0x973ad6;let _0x5833c8=_0x565eab[_0x1f43b6],_0x2cc95a=this[_0x57f24f(0x147)],_0x5c04ef=0x0,_0xe2636e=_0x2cc95a[_0x57f24f(0x155)],_0x17dd5e=_0x3bcb17!==0x2;for(;_0x5c04ef<_0xe2636e;){let _0x33c0d5=Math['floor']((_0x5c04ef+_0xe2636e)/0x2);(_0x17dd5e?_0x565eab[_0x2cc95a[_0x33c0d5]]-_0x5833c8:_0x5833c8-_0x565eab[_0x2cc95a[_0x33c0d5]])<0x0?_0x5c04ef=_0x33c0d5+0x1:_0xe2636e=_0x33c0d5;}_0x2cc95a[_0x57f24f(0x3d4)](_0x5c04ef,0x0,_0x1f43b6);}[_0x973ad6(0x3a3)](_0x214941,_0x37f7ef,_0x37e9e6,_0x2e4adb){const _0x484a70=_0x973ad6;let _0x4c915d=Object[_0x484a70(0x1ce)](this[_0x484a70(0x2ab)]);_0x4c915d['some'](_0x2d0e27=>_0x2d0e27['fieldId']===_0x214941)&&(this[_0x484a70(0x147)]=_0x4c915d[_0x484a70(0x3cb)]((_0x134fa0,_0x380655)=>({'node':_0x134fa0,'index':_0x380655}))[_0x484a70(0x345)]((_0x2d4b1b,_0x4e92a5)=>{const _0x4e9d22=_0x484a70;let _0x493832=_0x37e9e6(_0x2d4b1b['node'][_0x4e9d22(0x148)]),_0x3d6d14=_0x37e9e6(_0x4e92a5[_0x4e9d22(0x329)][_0x4e9d22(0x148)]);return _0x493832===_0x3d6d14?_0x2e4adb(_0x2d4b1b['node']['displayName'],_0x4e92a5[_0x4e9d22(0x329)]['displayName'])||_0x2d4b1b['index']-_0x4e92a5[_0x4e9d22(0xb8)]:_0x493832===void 0x0?0x1:_0x3d6d14===void 0x0?-0x1:_0x37f7ef===0x2?_0x3d6d14-_0x493832:_0x493832-_0x3d6d14;})[_0x484a70(0x3cb)](({node:_0x3cd39a})=>_0x3cd39a[_0x484a70(0x25a)]),this[_0x484a70(0x10f)]=!0x0);for(let _0x1938b0 of _0x4c915d)_0x1938b0['sortChildrenByValue'](_0x214941,_0x37f7ef,_0x37e9e6,_0x2e4adb);}[_0x973ad6(0x39d)](){const _0x198aa2=_0x973ad6;this[_0x198aa2(0x147)]=[],this['hasSort']=!0x1,Object[_0x198aa2(0x1ce)](this['_nodes'])[_0x198aa2(0x351)](_0x193adc=>_0x193adc[_0x198aa2(0x39d)]());}[_0x973ad6(0x327)](_0x33767a,_0x38e709,_0x3ef8c5){const _0x1794d2=_0x973ad6;let _0x42302e=Object['values'](this[_0x1794d2(0x2ab)]);_0x42302e[_0x1794d2(0x2b4)](_0x2ba938=>_0x2ba938[_0x1794d2(0xe9)]===_0x33767a)&&(this[_0x1794d2(0x147)]=_0x42302e[_0x1794d2(0x3cb)]((_0x2fef2d,_0x595cf3)=>({'node':_0x2fef2d,'index':_0x595cf3}))['sort']((_0x18f3df,_0x23db85)=>{const _0x1b35b4=_0x1794d2;let _0x4ba233=_0x3ef8c5[_0x18f3df[_0x1b35b4(0x329)][_0x1b35b4(0x25a)]],_0x190e65=_0x3ef8c5[_0x23db85['node'][_0x1b35b4(0x25a)]];return _0x4ba233===_0x190e65?_0x18f3df[_0x1b35b4(0xb8)]-_0x23db85[_0x1b35b4(0xb8)]:_0x4ba233===void 0x0?0x1:_0x190e65===void 0x0?-0x1:_0x38e709===0x2?_0x190e65-_0x4ba233:_0x4ba233-_0x190e65;})['map'](({node:_0x584709})=>_0x584709[_0x1794d2(0x25a)]),this['hasSort']=!0x0),_0x42302e['forEach'](_0xa799a9=>_0xa799a9[_0x1794d2(0x327)](_0x33767a,_0x38e709,_0x3ef8c5));}[_0x973ad6(0x150)](_0x8e6c47){const _0x545799=_0x973ad6;return this[_0x545799(0x2ab)][_0x8e6c47];}};let _0x5aac79={0x1:{'errorType':0x1},0x2:{'errorType':0x2},0x3:{'errorType':0x3},0x4:{'errorType':0x4},0x5:{'errorType':0x5}},_0x380793=_0x5aac79[0x1],_0x24b8f8=_0x5aac79[0x2];function _0x5428ba(_0x489e2f){const _0x210dbf=_0x973ad6;return typeof _0x489e2f==_0x210dbf(0x131);}var _0x2c1eac=class{constructor(_0x1a204c,_0x1c846c){const _0x105dcb=_0x973ad6;this[_0x105dcb(0x395)]=_0x1a204c,this[_0x105dcb(0x14e)]=_0x1c846c,_0x5dd0e0(this,_0x105dcb(0x206),{}),_0x5dd0e0(this,_0x105dcb(0x2fb),[]),_0x5dd0e0(this,_0x105dcb(0x205),[]),_0x5dd0e0(this,_0x105dcb(0xa8),[]),_0x5dd0e0(this,_0x105dcb(0x11c),void 0x0),_0x5dd0e0(this,'_coordinates',[]),_0x5dd0e0(this,_0x105dcb(0x118),new Map()),_0x5dd0e0(this,_0x105dcb(0x2b1),new Int32Array()),_0x5dd0e0(this,_0x105dcb(0x124),void 0x0),_0x5dd0e0(this,_0x105dcb(0x1cb),void 0x0),_0x5dd0e0(this,_0x105dcb(0x331),-0x1),_0x5dd0e0(this,_0x105dcb(0x380),void 0x0),_0x5dd0e0(this,_0x105dcb(0x21c),void 0x0),_0x5dd0e0(this,_0x105dcb(0x1ac),new Map()),_0x5dd0e0(this,_0x105dcb(0x13b),{}),_0x5dd0e0(this,_0x105dcb(0x111),{}),_0x5dd0e0(this,_0x105dcb(0x43f),{}),_0x5dd0e0(this,'_derivedValuesByValueField',{});let _0x3f6ea8=[..._0x1c846c[_0x105dcb(0x28c)],..._0x1c846c[_0x105dcb(0x325)]];this[_0x105dcb(0x11c)]=_0x3f6ea8[_0x105dcb(0x155)];for(let _0x5aec7c=0x0;_0x5aec7c<_0x3f6ea8[_0x105dcb(0x155)];_0x5aec7c++){let _0x41aea3=_0x3f6ea8[_0x5aec7c];this['_fieldIndexById'][_0x41aea3['id']]=_0x5aec7c,this[_0x105dcb(0x2fb)][_0x5aec7c]=_0x1a204c[_0x105dcb(0x363)][_0x41aea3['dataFieldId']][_0x105dcb(0x26e)][_0x105dcb(0x415)](),_0x5aec7c<_0x1c846c[_0x105dcb(0x28c)][_0x105dcb(0x155)]?this[_0x105dcb(0x205)]['push'](_0x5aec7c):this['_columnFieldIndexes']['push'](_0x5aec7c);}}['prepare'](){const _0x3fedf8=_0x973ad6;this[_0x3fedf8(0x3e1)]();let _0x798dfe=new Set(this['_queryData'][_0x3fedf8(0x2f5)][_0x3fedf8(0x3cb)](_0x5dd1b6=>{const _0x42bbb9=_0x3fedf8;var _0x4f408e;return(_0x4f408e=_0x5dd1b6[_0x42bbb9(0x210)])==null?void 0x0:_0x4f408e[_0x42bbb9(0x37a)];}));this[_0x3fedf8(0x2ce)](_0x798dfe),this[_0x3fedf8(0x392)](_0x798dfe),this[_0x3fedf8(0x44e)](),this[_0x3fedf8(0x37d)]();let _0x560c62=new Int32Array(this[_0x3fedf8(0x11c)]);_0x560c62[_0x3fedf8(0x2e7)](-0x1),this[_0x3fedf8(0x331)]=this['_tupleByCoordinate']['get'](this[_0x3fedf8(0x1cc)](_0x560c62))??-0x1;}[_0x973ad6(0x326)](_0x3b7c63,_0x2d37ba){const _0x924f86=_0x973ad6;var _0x56c62f;let _0xfd4589=this[_0x924f86(0x2c5)](_0x3b7c63,_0x2d37ba),_0x145b98=((_0x56c62f=_0x2d37ba['showDataAs'])==null?void 0x0:_0x56c62f['type'])??0x1;if(this[_0x924f86(0x455)](_0x145b98))return this[_0x924f86(0xae)](_0x145b98,_0xfd4589,_0x3b7c63,_0x2d37ba);if(this[_0x924f86(0x34d)](_0x145b98))return this['_getPeerValue'](_0x145b98,_0xfd4589,_0x3b7c63,_0x2d37ba);if(this[_0x924f86(0x28e)](_0x145b98)){let _0x2cb707=this[_0x924f86(0x2ed)][_0x2d37ba['id']];return this[_0x924f86(0x2c8)](_0x2cb707,_0x3b7c63);}switch(_0x145b98){case 0x4:return this[_0x924f86(0x211)](_0xfd4589,this[_0x924f86(0x2c5)](this['_grandTotalIndex'],_0x2d37ba));case 0x3:return this[_0x924f86(0x211)](_0xfd4589,this['_getIndexedRawValue'](this[_0x924f86(0x124)],_0x3b7c63,_0x2d37ba));case 0x2:return this[_0x924f86(0x211)](_0xfd4589,this['_getIndexedRawValue'](this['_columnTotalIndexes'],_0x3b7c63,_0x2d37ba));case 0x8:return this[_0x924f86(0x3e4)](_0xfd4589,_0x3b7c63,_0x2d37ba);default:return _0xfd4589;}}[_0x973ad6(0x359)](){const _0x296a2c=_0x973ad6;for(let _0xbbeeb7 of Object[_0x296a2c(0x254)](this[_0x296a2c(0x43f)]))this[_0x296a2c(0x43f)][_0xbbeeb7][_0x296a2c(0x1fb)](),delete this[_0x296a2c(0x43f)][_0xbbeeb7];this[_0x296a2c(0x2c2)][_0x296a2c(0x155)]=0x0,this[_0x296a2c(0x118)]['clear'](),this[_0x296a2c(0x2b1)]=new Int32Array(),this['_rowTotalIndexes']=void 0x0,this[_0x296a2c(0x1cb)]=void 0x0,this[_0x296a2c(0x380)]=void 0x0,this[_0x296a2c(0x21c)]=void 0x0,this[_0x296a2c(0x1ac)][_0x296a2c(0x1fb)]();for(let _0x145c8a of Object[_0x296a2c(0x254)](this[_0x296a2c(0x13b)]))delete this[_0x296a2c(0x13b)][_0x145c8a];for(let _0x50d9b4 of Object[_0x296a2c(0x254)](this['_peerIndexesByValueField']))delete this['_peerIndexesByValueField'][_0x50d9b4];for(let _0x15c04c of Object[_0x296a2c(0x254)](this['_derivedValuesByValueField']))delete this[_0x296a2c(0x2ed)][_0x15c04c];this[_0x296a2c(0x331)]=-0x1;}[_0x973ad6(0x2ce)](_0x2bc028){const _0xe7e34a=_0x973ad6;let _0x58561e=_0x2bc028[_0xe7e34a(0x259)](0x3)||_0x2bc028[_0xe7e34a(0x259)](0x8),_0x1e597d=_0x2bc028['has'](0x2)||_0x2bc028[_0xe7e34a(0x259)](0x8);_0x58561e&&(this['_rowTotalIndexes']=this[_0xe7e34a(0x15e)](this[_0xe7e34a(0xa8)])),_0x1e597d&&(this[_0xe7e34a(0x1cb)]=this[_0xe7e34a(0x15e)](this['_rowFieldIndexes']));}[_0x973ad6(0x392)](_0x33b9a1){const _0x17dcfa=_0x973ad6;_0x33b9a1['has'](0x6)&&(this['_parentRowTotalIndexes']=this[_0x17dcfa(0x3a2)](this['_rowFieldIndexes'])),_0x33b9a1['has'](0x5)&&(this[_0x17dcfa(0x21c)]=this[_0x17dcfa(0x3a2)](this[_0x17dcfa(0xa8)]));for(let _0x570ab5 of this[_0x17dcfa(0x14e)][_0x17dcfa(0x2f5)]){var _0x196e46,_0x38d463;if(((_0x196e46=_0x570ab5[_0x17dcfa(0x210)])==null?void 0x0:_0x196e46['type'])!==0xe&&((_0x38d463=_0x570ab5[_0x17dcfa(0x210)])==null?void 0x0:_0x38d463[_0x17dcfa(0x37a)])!==0x7)continue;let _0x507879=this['_getFieldIndex'](_0x570ab5[_0x17dcfa(0x210)][_0x17dcfa(0x30f)]);if(_0x507879<0x0||(this[_0x17dcfa(0x13b)][_0x570ab5['id']]=_0x507879,this['_parentFieldIndexes'][_0x17dcfa(0x259)](_0x507879)))continue;let _0x1680ca=_0x507879<this['_rowFieldIndexes'][_0x17dcfa(0x155)]?this[_0x17dcfa(0x205)]:this[_0x17dcfa(0xa8)];this[_0x17dcfa(0x1ac)][_0x17dcfa(0xf5)](_0x507879,this['_buildParentIndexes'](_0x1680ca,_0x507879));}}[_0x973ad6(0x44e)](){const _0x35234e=_0x973ad6;let _0x4174f3=new Map();for(let _0x301615 of this[_0x35234e(0x14e)][_0x35234e(0x2f5)]){let _0x17232e=_0x301615[_0x35234e(0x210)];if(!_0x17232e||!this[_0x35234e(0x34d)](_0x17232e[_0x35234e(0x37a)]))continue;let _0x4cb7fb=this[_0x35234e(0x33d)](_0x17232e[_0x35234e(0x30f)]);if(_0x4cb7fb<0x0)continue;let _0x10081d=_0x17232e['baseItemType']??0x1,_0x3c17a7=[...this['_queryData']['rowQueryInfo'],...this[_0x35234e(0x14e)]['colQueryInfo']][_0x4cb7fb],_0x5223f9=this[_0x35234e(0x395)]['dimensionMap'][_0x3c17a7[_0x35234e(0x2a7)]][_0x35234e(0x26e)][_0x35234e(0xc8)](_0x17232e[_0x35234e(0xca)]);if(_0x10081d===0x1&&_0x5223f9[_0x35234e(0x155)]>0x1){let _0x5243cb=new Map();for(let _0x546b46=0x0;_0x546b46<this[_0x35234e(0x2c2)][_0x35234e(0x155)];_0x546b46++){let _0x424e3b=this[_0x35234e(0x2c2)][_0x546b46];if(!_0x424e3b||_0x424e3b[_0x4cb7fb]<0x0)continue;let _0x24fe36=new _0x14f785(),_0x38f9cf=0x0,_0x1743e6=!0x1;for(let _0x41f717 of _0x5223f9){let _0x2960f8=_0x424e3b['slice']();_0x2960f8[_0x4cb7fb]=this[_0x35234e(0x2fb)][_0x4cb7fb][_0x41f717];let _0x171f31=this[_0x35234e(0x118)]['get'](this[_0x35234e(0x1cc)](_0x2960f8));_0x171f31!==void 0x0&&(_0x24fe36['unionTupleInfo'](this[_0x35234e(0x395)][_0x35234e(0x12a)][_0x171f31][_0x35234e(0x405)][_0x301615['dataFieldId']][_0x35234e(0x391)]()),_0x1743e6||=_0x171f31===this[_0x35234e(0x241)](_0x546b46),_0x38f9cf++);}_0x38f9cf&&_0x5243cb[_0x35234e(0xf5)](_0x546b46,{'tuple':_0x24fe36,'includesCurrent':_0x1743e6});}this[_0x35234e(0x43f)][_0x301615['id']]=_0x5243cb;continue;}let _0x4550b9=_0x4cb7fb+':'+_0x10081d+':'+_0x17232e[_0x35234e(0xca)],_0xf42eca=_0x4174f3[_0x35234e(0x1aa)](_0x4550b9);_0xf42eca||(_0xf42eca=this[_0x35234e(0x134)](_0x4cb7fb,_0x17232e[_0x35234e(0xca)],_0x10081d),_0x4174f3[_0x35234e(0xf5)](_0x4550b9,_0xf42eca)),this[_0x35234e(0x111)][_0x301615['id']]=_0xf42eca;}}[_0x973ad6(0x37d)](){const _0x54a614=_0x973ad6;for(let _0x5ba150 of this[_0x54a614(0x14e)][_0x54a614(0x2f5)]){let _0x24dcfc=_0x5ba150[_0x54a614(0x210)];if(!_0x24dcfc)continue;let _0x505744=this[_0x54a614(0x33d)](_0x24dcfc[_0x54a614(0x30f)]);_0x505744<0x0||(_0x24dcfc[_0x54a614(0x37a)]===0xb||_0x24dcfc[_0x54a614(0x37a)]===0xc?this[_0x54a614(0x2ed)][_0x5ba150['id']]=this[_0x54a614(0x3d6)](_0x5ba150,_0x505744,_0x24dcfc[_0x54a614(0x37a)]===0xc):(_0x24dcfc[_0x54a614(0x37a)]===0xf||_0x24dcfc[_0x54a614(0x37a)]===0x10)&&(this[_0x54a614(0x2ed)][_0x5ba150['id']]=this[_0x54a614(0x41c)](_0x5ba150,_0x505744,_0x24dcfc[_0x54a614(0x37a)]===0xf)));}}['_buildCoordinateIndex'](){const _0x5e994a=_0x973ad6;let _0x38a8f9=this[_0x5e994a(0x395)][_0x5e994a(0x12a)][_0x5e994a(0x155)];this['_canonicalTupleIndexes']=new Int32Array(_0x38a8f9),this['_canonicalTupleIndexes'][_0x5e994a(0x2e7)](-0x1);for(let [_0x16cfe5,_0x166ff4]of Object['entries'](this[_0x5e994a(0x395)]['tupleMap'])){let _0x36810b=new Int32Array(this['_fieldCount']);_0x36810b[_0x5e994a(0x2e7)](-0x1),this[_0x5e994a(0x349)](_0x16cfe5,_0x36810b);let _0x4f7aba=this[_0x5e994a(0x1cc)](_0x36810b),_0x5787e3=this['_tupleByCoordinate']['get'](_0x4f7aba);this[_0x5e994a(0x2c2)][_0x166ff4]=_0x36810b,_0x5787e3===void 0x0?(this['_tupleByCoordinate'][_0x5e994a(0xf5)](_0x4f7aba,_0x166ff4),this[_0x5e994a(0x2b1)][_0x166ff4]=_0x166ff4):this[_0x5e994a(0x2b1)][_0x166ff4]=_0x5787e3;}}[_0x973ad6(0x349)](_0x2324e1,_0x1f6d71){const _0x2121e8=_0x973ad6;let _0x2c8b33=_0x2324e1[_0x2121e8(0x40e)](_0x7cc867[_0x2121e8(0xde)]);for(let _0x47280b of _0x2c8b33){let _0x47af7=_0x47280b[_0x2121e8(0x40e)](_0x7cc867[_0x2121e8(0x208)]);for(let _0x6ea4c5=0x0;_0x6ea4c5<_0x47af7[_0x2121e8(0x155)]-0x1;_0x6ea4c5++){let _0x1abbb7=this[_0x2121e8(0x206)][_0x47af7[_0x6ea4c5]];if(_0x1abbb7===void 0x0)continue;let _0x2a3cfa=this[_0x2121e8(0x2fb)][_0x1abbb7][_0x47af7[_0x6ea4c5+0x1]];_0x2a3cfa!==void 0x0&&(_0x1f6d71[_0x1abbb7]=_0x2a3cfa),_0x6ea4c5++;}}}[_0x973ad6(0x15e)](_0xb3b20a){const _0xfbbcee=_0x973ad6;let _0xfeeb07=new Int32Array(this[_0xfbbcee(0x395)]['tuples'][_0xfbbcee(0x155)]);_0xfeeb07['fill'](-0x1);for(let _0x5d0d6e=0x0;_0x5d0d6e<this[_0xfbbcee(0x2c2)][_0xfbbcee(0x155)];_0x5d0d6e++){let _0x53dd53=this[_0xfbbcee(0x2c2)][_0x5d0d6e];if(!_0x53dd53)continue;let _0xdc4ac9=_0x53dd53[_0xfbbcee(0x41a)]();for(let _0x3eb3fe of _0xb3b20a)_0xdc4ac9[_0x3eb3fe]=-0x1;_0xfeeb07[_0x5d0d6e]=this[_0xfbbcee(0x118)][_0xfbbcee(0x1aa)](this[_0xfbbcee(0x1cc)](_0xdc4ac9))??-0x1;}return _0xfeeb07;}[_0x973ad6(0x3a2)](_0x529f4a,_0x586ff3){const _0x164ea7=_0x973ad6;let _0x2cc76f=new Int32Array(this[_0x164ea7(0x395)]['tuples'][_0x164ea7(0x155)]);_0x2cc76f[_0x164ea7(0x2e7)](-0x1);let _0x5f486d=_0x586ff3===void 0x0?-0x1:_0x529f4a[_0x164ea7(0x40f)](_0x586ff3);for(let _0x101476=0x0;_0x101476<this[_0x164ea7(0x2c2)][_0x164ea7(0x155)];_0x101476++){let _0x8e6fca=this[_0x164ea7(0x2c2)][_0x101476];if(!_0x8e6fca)continue;if(_0x586ff3!==void 0x0){if(_0x5f486d<0x0||_0x8e6fca[_0x586ff3]<0x0)continue;let _0x120ca3=_0x8e6fca['slice']();for(let _0x1d25f0=_0x5f486d+0x1;_0x1d25f0<_0x529f4a['length'];_0x1d25f0++)_0x120ca3[_0x529f4a[_0x1d25f0]]=-0x1;_0x2cc76f[_0x101476]=this[_0x164ea7(0x118)][_0x164ea7(0x1aa)](this['_getCoordinateKey'](_0x120ca3))??-0x1;continue;}let _0x5b03da=-0x1;if(_0x586ff3===void 0x0){for(let _0x11625e=_0x529f4a[_0x164ea7(0x155)]-0x1;_0x11625e>=0x0;_0x11625e--)if(_0x8e6fca[_0x529f4a[_0x11625e]]>=0x0){_0x5b03da=_0x11625e;break;}}if(_0x5b03da<0x0){_0x2cc76f[_0x101476]=this[_0x164ea7(0x2b1)][_0x101476];continue;}let _0x5b9c61=_0x8e6fca[_0x164ea7(0x41a)]();for(let _0x3de02f=_0x5b03da;_0x3de02f<_0x529f4a['length'];_0x3de02f++)_0x5b9c61[_0x529f4a[_0x3de02f]]=-0x1;_0x2cc76f[_0x101476]=this[_0x164ea7(0x118)][_0x164ea7(0x1aa)](this[_0x164ea7(0x1cc)](_0x5b9c61))??-0x1;}return _0x2cc76f;}[_0x973ad6(0x33d)](_0x442a93){const _0x4294f1=_0x973ad6;let _0x40f0b1=this[_0x4294f1(0x206)][_0x442a93];return _0x40f0b1===void 0x0?[...this[_0x4294f1(0x14e)][_0x4294f1(0x28c)],...this[_0x4294f1(0x14e)][_0x4294f1(0x325)]]['findIndex'](_0x66e569=>_0x66e569[_0x4294f1(0x2a7)]===_0x442a93):_0x40f0b1;}[_0x973ad6(0x455)](_0x93f138){return _0x93f138===0x6||_0x93f138===0x5||_0x93f138===0x7||_0x93f138===0xe;}[_0x973ad6(0x34d)](_0x3df712){return _0x3df712===0x9||_0x3df712===0xa||_0x3df712===0xd;}['_isDerivedType'](_0x5e30ba){return _0x5e30ba===0xb||_0x5e30ba===0xc||_0x5e30ba===0xf||_0x5e30ba===0x10;}['_getParentValue'](_0x35b36e,_0xdb2deb,_0x4af74e,_0x308e1f){const _0x2ec0b1=_0x973ad6;if(_0x35b36e===0x6)return this[_0x2ec0b1(0x175)](_0xdb2deb,this['_getIndexedRawValue'](this[_0x2ec0b1(0x380)],_0x4af74e,_0x308e1f));if(_0x35b36e===0x5)return this[_0x2ec0b1(0x175)](_0xdb2deb,this['_getIndexedRawValue'](this[_0x2ec0b1(0x21c)],_0x4af74e,_0x308e1f));let _0xe2543b=this[_0x2ec0b1(0x13b)][_0x308e1f['id']];return this['_divideParent'](_0xdb2deb,this[_0x2ec0b1(0x420)](this[_0x2ec0b1(0x1ac)]['get'](_0xe2543b),_0x4af74e,_0x308e1f));}[_0x973ad6(0x1e8)](_0xd73826,_0x3c966e,_0x423b14,_0x2e585c){const _0x4d9184=_0x973ad6;var _0x54efcb;let _0x533e01=(_0x54efcb=this['_peerUnionsByValueField'][_0x2e585c['id']])==null?void 0x0:_0x54efcb[_0x4d9184(0x1aa)](this[_0x4d9184(0x241)](_0x423b14));if(_0x533e01){let _0xd261d=_0x533e01[_0x4d9184(0x405)][_0x4d9184(0x348)](_0x2e585c[_0x4d9184(0x2e0)]);return _0xd73826===0xd?this['_divide'](_0x3c966e,_0xd261d):_0x533e01[_0x4d9184(0x104)]?void 0x0:_0xd73826===0x9?this[_0x4d9184(0x245)](_0x3c966e,_0xd261d):this[_0x4d9184(0x228)](_0x3c966e,_0xd261d);}let _0x37a001=this[_0x4d9184(0x407)](this[_0x4d9184(0x111)][_0x2e585c['id']],_0x423b14);if(_0xd73826===0xd)return this['_divide'](_0x3c966e,this[_0x4d9184(0x2c5)](_0x37a001,_0x2e585c));if(_0x37a001<0x0||_0x37a001===this[_0x4d9184(0x241)](_0x423b14))return;let _0x42fdb3=this[_0x4d9184(0x2c5)](_0x37a001,_0x2e585c);return _0xd73826===0x9?this[_0x4d9184(0x245)](_0x3c966e,_0x42fdb3):this[_0x4d9184(0x228)](_0x3c966e,_0x42fdb3);}[_0x973ad6(0x134)](_0x10d493,_0x4a11a9,_0x247e23){const _0x4c4234=_0x973ad6;let _0x321f72=new Int32Array(this[_0x4c4234(0x395)][_0x4c4234(0x12a)][_0x4c4234(0x155)]);_0x321f72['fill'](-0x1);let _0x5cbcd7=_0x10d493<this[_0x4c4234(0x205)][_0x4c4234(0x155)]?this[_0x4c4234(0x205)]:this[_0x4c4234(0xa8)],_0x3cb969=_0x5cbcd7[_0x4c4234(0x40f)](_0x10d493),_0x414d95=_0x247e23===0x1?void 0x0:this[_0x4c4234(0x335)](_0x10d493,_0x5cbcd7,_0x3cb969),_0x2c5c05=[...this[_0x4c4234(0x14e)][_0x4c4234(0x28c)],...this['_queryData'][_0x4c4234(0x325)]][_0x10d493],_0x10e2f3=this[_0x4c4234(0x395)]['dimensionMap'][_0x2c5c05[_0x4c4234(0x2a7)]]['field'][_0x4c4234(0xc8)](_0x4a11a9)[0x0],_0x55f2b0=this[_0x4c4234(0x2fb)][_0x10d493][_0x10e2f3];for(let _0x2e7207=0x0;_0x2e7207<this[_0x4c4234(0x2c2)][_0x4c4234(0x155)];_0x2e7207++){let _0x100160=this[_0x4c4234(0x2c2)][_0x2e7207];if(!_0x100160||_0x100160[_0x10d493]<0x0)continue;let _0x21fb48=_0x55f2b0;if(_0x414d95){let _0x498eb3=this[_0x4c4234(0x30d)](_0x100160,_0x5cbcd7,_0x3cb969),_0xc3a50b=_0x414d95[_0x4c4234(0x1aa)](_0x498eb3),_0x1f7e9e=_0xc3a50b==null?void 0x0:_0xc3a50b['positions'][_0x4c4234(0x1aa)](_0x100160[_0x10d493]);if(_0xc3a50b&&_0x1f7e9e!==void 0x0){let _0x5d934c=_0x247e23===0x2?-0x1:0x1;_0x21fb48=_0xc3a50b['items'][_0x1f7e9e+_0x5d934c];}else _0x21fb48=void 0x0;}if(_0x21fb48===void 0x0)continue;let _0xa046ff=_0x100160[_0x4c4234(0x41a)]();_0xa046ff[_0x10d493]=_0x21fb48,_0x321f72[_0x2e7207]=this[_0x4c4234(0x118)]['get'](this[_0x4c4234(0x1cc)](_0xa046ff))??-0x1;}return _0x321f72;}[_0x973ad6(0x335)](_0x2dff6f,_0x57e09e,_0x3b6c78){const _0x231e52=_0x973ad6;let _0x27d0bc=new Map(),_0x2b1bd9=_0x2dff6f<this[_0x231e52(0x205)][_0x231e52(0x155)]?this[_0x231e52(0x395)][_0x231e52(0x24b)]:this[_0x231e52(0x395)][_0x231e52(0x2d1)],_0x9500bf=_0x4d5b53=>{const _0x47f233=_0x231e52;if(_0x4d5b53[_0x47f233(0x323)]()===_0x3b6c78){let _0xd3c024=[],_0x42b930=new Map();_0x4d5b53['iterate'](_0x2ebd42=>{const _0x273e37=_0x47f233;let _0x58baea=this['_itemIndexMaps'][_0x2dff6f][_0x2ebd42[_0x273e37(0x25a)]];_0x58baea!==void 0x0&&(_0x42b930['set'](_0x58baea,_0xd3c024[_0x273e37(0x155)]),_0xd3c024[_0x273e37(0x1b4)](_0x58baea));}),_0x27d0bc['set'](this[_0x47f233(0x318)](_0x4d5b53,_0x57e09e,_0x3b6c78),{'items':_0xd3c024,'positions':_0x42b930});}else _0x4d5b53[_0x47f233(0x1a4)](_0x9500bf);};return _0x9500bf(_0x2b1bd9),_0x27d0bc;}['_getParentNodeKey'](_0x10c85f,_0x12bd4c,_0x50ef09){const _0x4aab39=_0x973ad6;let _0x50cd60=_0x10c85f['getPaths'](),_0x247e47=[];for(let _0x3403a2=0x0;_0x3403a2<_0x50ef09;_0x3403a2++)_0x247e47[_0x4aab39(0x1b4)](this[_0x4aab39(0x2fb)][_0x12bd4c[_0x3403a2]][_0x50cd60[_0x3403a2]]);return _0x247e47['join'](',');}[_0x973ad6(0x30d)](_0x532f99,_0xe62587,_0x40ffef){const _0x2c1539=_0x973ad6;let _0x1f0d96=[];for(let _0x5d7513=0x0;_0x5d7513<_0x40ffef;_0x5d7513++)_0x1f0d96[_0x2c1539(0x1b4)](_0x532f99[_0xe62587[_0x5d7513]]);return _0x1f0d96[_0x2c1539(0x31b)](',');}[_0x973ad6(0x130)](_0x4096f3){const _0x53dfd9=_0x973ad6;let _0x2187be=_0x4096f3<this[_0x53dfd9(0x205)][_0x53dfd9(0x155)]?this['_rowFieldIndexes']:this[_0x53dfd9(0xa8)],_0x52f981=_0x2187be[_0x53dfd9(0x40f)](_0x4096f3),_0xd3ba45=this['_buildItemOrders'](_0x4096f3,_0x2187be,_0x52f981),_0x5840ff=new Map();for(let _0x2b0d19 of this[_0x53dfd9(0x118)][_0x53dfd9(0x1ce)]()){var _0x4a4dc1;let _0x36b71f=this[_0x53dfd9(0x2c2)][_0x2b0d19];if(!_0x36b71f||_0x36b71f[_0x4096f3]<0x0)continue;let _0x3471f6=this[_0x53dfd9(0x30d)](_0x36b71f,_0x2187be,_0x52f981),_0x1f2d02=(_0x4a4dc1=_0xd3ba45['get'](_0x3471f6))==null?void 0x0:_0x4a4dc1[_0x53dfd9(0x353)][_0x53dfd9(0x1aa)](_0x36b71f[_0x4096f3]);if(_0x1f2d02===void 0x0)continue;let _0x3e0b66=this[_0x53dfd9(0x247)](_0x36b71f,_0x4096f3),_0x2a2b4a=_0x5840ff['get'](_0x3e0b66);_0x2a2b4a||(_0x2a2b4a=[],_0x5840ff[_0x53dfd9(0xf5)](_0x3e0b66,_0x2a2b4a)),_0x2a2b4a[_0x1f2d02]=_0x2b0d19;}return Array[_0x53dfd9(0x339)](_0x5840ff[_0x53dfd9(0x1ce)]());}['_getCoordinateKeyWithoutField'](_0x2c411e,_0x2e8486){const _0xb58ca9=_0x973ad6;let _0x4f52ae=[];for(let _0x45638f=0x0;_0x45638f<_0x2c411e[_0xb58ca9(0x155)];_0x45638f++)_0x45638f!==_0x2e8486&&_0x4f52ae[_0xb58ca9(0x1b4)](_0x2c411e[_0x45638f]);return _0x4f52ae[_0xb58ca9(0x31b)](',');}['_buildRunningTotalBuffer'](_0x1eba72,_0x411f3e,_0x487073){const _0xc6cf1f=_0x973ad6;let _0x6be46e=this[_0xc6cf1f(0x112)]();for(let _0x380b8e of this['_buildOrderedGroups'](_0x411f3e)){let _0x328b17=0x0;if(_0x487073)for(let _0x11ee94 of _0x380b8e){let _0x41b9e7=this[_0xc6cf1f(0x2c5)](_0x11ee94,_0x1eba72);typeof _0x41b9e7==_0xc6cf1f(0x347)&&(_0x328b17+=_0x41b9e7);}let _0x1b00b6=0x0;for(let _0x510a84 of _0x380b8e){let _0x89c17d=this[_0xc6cf1f(0x2c5)](_0x510a84,_0x1eba72);_0x89c17d!==void 0x0&&(_0x5428ba(_0x89c17d)?this[_0xc6cf1f(0xe6)](_0x6be46e,_0x510a84,_0x89c17d[_0xc6cf1f(0x1f5)]):(_0x1b00b6+=_0x89c17d,_0x487073&&_0x328b17===0x0?this[_0xc6cf1f(0xe6)](_0x6be46e,_0x510a84,0x1):this['_setDerivedNumber'](_0x6be46e,_0x510a84,_0x487073?_0x1b00b6/_0x328b17:_0x1b00b6)));}}return _0x6be46e;}[_0x973ad6(0x41c)](_0x185659,_0x306ad9,_0x28da57){const _0x11d6eb=_0x973ad6;let _0x2bdb33=this[_0x11d6eb(0x112)](),_0x438f30=[];for(let _0x127d08 of this[_0x11d6eb(0x130)](_0x306ad9)){_0x438f30['length']=0x0;for(let _0x269da9 of _0x127d08){let _0x343bfb=this[_0x11d6eb(0x2c5)](_0x269da9,_0x185659);typeof _0x343bfb==_0x11d6eb(0x347)?_0x438f30[_0x11d6eb(0x1b4)]({'tupleIndex':_0x269da9,'value':_0x343bfb}):_0x5428ba(_0x343bfb)&&this[_0x11d6eb(0xe6)](_0x2bdb33,_0x269da9,_0x343bfb[_0x11d6eb(0x1f5)]);}_0x438f30[_0x11d6eb(0x345)]((_0x21ca28,_0x1a5b72)=>_0x28da57?_0x21ca28['value']-_0x1a5b72[_0x11d6eb(0x226)]:_0x1a5b72[_0x11d6eb(0x226)]-_0x21ca28[_0x11d6eb(0x226)]);let _0x481b42=0x0,_0x339cb5;for(let _0x818cbb=0x0;_0x818cbb<_0x438f30[_0x11d6eb(0x155)];_0x818cbb++){let _0x40c9ef=_0x438f30[_0x818cbb];(_0x339cb5===void 0x0||_0x40c9ef[_0x11d6eb(0x226)]!==_0x339cb5)&&(_0x481b42=_0x818cbb+0x1,_0x339cb5=_0x40c9ef[_0x11d6eb(0x226)]),this['_setDerivedNumber'](_0x2bdb33,_0x40c9ef[_0x11d6eb(0x39f)],_0x481b42);}}return _0x2bdb33;}[_0x973ad6(0x112)](){const _0x254c8f=_0x973ad6;return{'values':new Float64Array(this[_0x254c8f(0x395)][_0x254c8f(0x12a)][_0x254c8f(0x155)]),'states':new Uint8Array(this[_0x254c8f(0x395)][_0x254c8f(0x12a)][_0x254c8f(0x155)])};}[_0x973ad6(0xf0)](_0x1169ca,_0x3fb24a,_0x2af958){const _0x27795c=_0x973ad6;_0x1169ca[_0x27795c(0x1ce)][_0x3fb24a]=_0x2af958,_0x1169ca['states'][_0x3fb24a]=0x1;}[_0x973ad6(0xe6)](_0x66a6c0,_0x5626c8,_0x35b2dc){const _0x505754=_0x973ad6;_0x66a6c0[_0x505754(0x315)][_0x5626c8]=_0x35b2dc+0x1;}[_0x973ad6(0x2c8)](_0xb73618,_0x1d6aeb){const _0x129fb9=_0x973ad6;if(!_0xb73618)return;let _0x29f843=this[_0x129fb9(0x2b1)][_0x1d6aeb],_0x7cdd73=_0x29f843<0x0?_0x1d6aeb:_0x29f843,_0x2abb89=_0xb73618['states'][_0x7cdd73];if(_0x2abb89===0x1)return _0xb73618[_0x129fb9(0x1ce)][_0x7cdd73];if(_0x2abb89>0x1){let _0x3f9595=_0x2abb89-0x1;return _0x5aac79[_0x3f9595];}}['_getCoordinateKey'](_0x24c970){return _0x24c970['join'](',');}[_0x973ad6(0x2c5)](_0xb614ae,_0x14579f){const _0xd9c23a=_0x973ad6;var _0x377e71;if(_0xb614ae<0x0)return;let _0x574f2e=this[_0xd9c23a(0x395)][_0xd9c23a(0x12a)][_0xb614ae];return _0x574f2e==null||(_0x377e71=_0x574f2e[_0xd9c23a(0xe5)])==null||(_0x377e71=_0x377e71[_0x14579f[_0xd9c23a(0x2a7)]])==null?void 0x0:_0x377e71[_0x14579f[_0xd9c23a(0x2e0)]];}[_0x973ad6(0x420)](_0x4ce5fc,_0x5b66f1,_0x1b1e49){const _0x4a4803=_0x973ad6;return this[_0x4a4803(0x2c5)](this['_getIndexedTupleIndex'](_0x4ce5fc,_0x5b66f1),_0x1b1e49);}[_0x973ad6(0x407)](_0xe9c648,_0x30d4cf){const _0xc7a84a=_0x973ad6;return(_0xe9c648==null?void 0x0:_0xe9c648[this[_0xc7a84a(0x241)](_0x30d4cf)])??-0x1;}[_0x973ad6(0x241)](_0x254d98){let _0x4d5012=this['_canonicalTupleIndexes'][_0x254d98];return _0x4d5012<0x0?_0x254d98:_0x4d5012;}['_divide'](_0x43998f,_0x29c08a){if(_0x43998f!==void 0x0){if(_0x5428ba(_0x43998f))return _0x43998f;if(_0x29c08a!==void 0x0)return _0x5428ba(_0x29c08a)?_0x29c08a:_0x29c08a===0x0?_0x380793:_0x43998f/_0x29c08a;}}[_0x973ad6(0x245)](_0xbc032,_0x25f031){if(_0xbc032!==void 0x0){if(_0x5428ba(_0xbc032))return _0xbc032;if(_0x25f031!==void 0x0)return _0x5428ba(_0x25f031)?_0x25f031:_0xbc032-_0x25f031;}}[_0x973ad6(0x175)](_0x236a8c,_0x1df1fe){if(_0x236a8c!==0x0||_0x1df1fe!==0x0)return this['_divide'](_0x236a8c,_0x1df1fe);}[_0x973ad6(0x228)](_0x11878c,_0x177c31){if(_0x11878c!==void 0x0){if(_0x5428ba(_0x11878c))return _0x11878c;if(_0x177c31!==void 0x0)return _0x5428ba(_0x177c31)?_0x177c31:_0x177c31===0x0?_0x380793:(_0x11878c-_0x177c31)/_0x177c31;}}[_0x973ad6(0x3e4)](_0x1245e6,_0x2f8c41,_0x5bb848){const _0x3458c1=_0x973ad6;if(_0x1245e6===void 0x0||_0x5428ba(_0x1245e6))return _0x1245e6;let _0x3c1936=this[_0x3458c1(0x420)](this['_rowTotalIndexes'],_0x2f8c41,_0x5bb848),_0x599308=this[_0x3458c1(0x420)](this[_0x3458c1(0x1cb)],_0x2f8c41,_0x5bb848),_0x25a7f1=this[_0x3458c1(0x2c5)](this[_0x3458c1(0x331)],_0x5bb848);return _0x3c1936===void 0x0||_0x599308===void 0x0||_0x25a7f1===void 0x0?_0x24b8f8:_0x5428ba(_0x3c1936)?_0x3c1936:_0x5428ba(_0x599308)?_0x599308:_0x5428ba(_0x25a7f1)?_0x25a7f1:_0x3c1936===0x0||_0x599308===0x0?_0x380793:_0x1245e6*_0x25a7f1/(_0x3c1936*_0x599308);}};function _0x27eced(_0x429a08,_0x16e689,_0x4d2ad8,_0x177f71){const _0x5ae0f8=_0x973ad6;if(_0x429a08[_0x5ae0f8(0x2d3)]!==0xf&&_0x429a08[_0x5ae0f8(0x2d3)]!==0x2c)return _0xbe72fb(_0x429a08);let _0x24c965=_0x16e689[_0x5ae0f8(0x3cb)](({v:_0x4c2810})=>{const _0x5e9c8f=_0x5ae0f8;var _0x3f607a;return(_0x3f607a=_0x4d2ad8[_0x4c2810])==null?void 0x0:_0x3f607a['tuple'][_0x5e9c8f(0x348)](_0x177f71);})['filter'](_0x3a718f=>typeof _0x3a718f==_0x5ae0f8(0x347)&&Number['isFinite'](_0x3a718f)),_0x1cdc45=_0x429a08['operator']===0x2c?Math[_0x5ae0f8(0xab)](_0x24c965[_0x5ae0f8(0x155)]*Number(_0x429a08[_0x5ae0f8(0x3ba)])/0x64):Math[_0x5ae0f8(0xab)](Number(_0x429a08[_0x5ae0f8(0x3ba)])),_0x4da156=_0x2669e0(_0x24c965,Math[_0x5ae0f8(0x411)](_0x24c965[_0x5ae0f8(0x155)],Math[_0x5ae0f8(0x18f)](0x0,_0x1cdc45)),!!_0x429a08[_0x5ae0f8(0x1f2)]);return _0x44ae5a=>_0x4da156!==void 0x0&&(_0x429a08[_0x5ae0f8(0x1f2)]?_0x44ae5a<=_0x4da156:_0x44ae5a>=_0x4da156);}var _0x1af349=class{constructor(_0x42124b,_0x44657a,_0x158678){const _0x58c0a3=_0x973ad6;_0x5dd0e0(this,_0x58c0a3(0x250),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x453),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x3c1),void 0x0),_0x5dd0e0(this,'rowTableIdList',void 0x0),_0x5dd0e0(this,_0x58c0a3(0x10d),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x3ec),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x1a3),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x135),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x1ef),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x29c),{}),_0x5dd0e0(this,_0x58c0a3(0x12a),[]),_0x5dd0e0(this,'tupleMap',{}),_0x5dd0e0(this,_0x58c0a3(0x230),[]),_0x5dd0e0(this,'dimensionTableIdList',[]),_0x5dd0e0(this,_0x58c0a3(0x3ef),[]),_0x5dd0e0(this,_0x58c0a3(0x35b),{}),_0x5dd0e0(this,_0x58c0a3(0x354),{}),_0x5dd0e0(this,_0x58c0a3(0x24b),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x2d1),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x363),{}),_0x5dd0e0(this,_0x58c0a3(0x193),{}),_0x5dd0e0(this,_0x58c0a3(0x369),void 0x0),_0x5dd0e0(this,_0x58c0a3(0x186),{}),_0x5dd0e0(this,_0x58c0a3(0x18b),{}),_0x5dd0e0(this,_0x58c0a3(0x1e7),[]),_0x5dd0e0(this,_0x58c0a3(0x3b6),{}),_0x5dd0e0(this,_0x58c0a3(0x257),void 0x0),_0x5dd0e0(this,'_defaultSortLocale',void 0x0),_0x5dd0e0(this,_0x58c0a3(0x324),new Map()),this[_0x58c0a3(0x12a)]=_0x44657a[_0x58c0a3(0x12a)][_0x58c0a3(0x383)]();let _0xe5e288=_0x42124b[_0x58c0a3(0x28c)],_0x2ec506=_0x42124b[_0x58c0a3(0x325)],{tuples:_0x3bef1f,dimensionMap:_0x42f46b,dimensionTableIdList:_0xe69174,tupleMap:_0x1d5f0c,dimensionIdList:_0x2231a7,measuresMap:_0xf9db91,measureIdList:_0x235d61}=_0x44657a,_0x2812e5=_0xe5e288[_0x58c0a3(0x155)],_0x559b6f=_0x2ec506[_0x58c0a3(0x155)];this[_0x58c0a3(0x25c)]=_0xe69174,this[_0x58c0a3(0x250)]=_0x3bef1f[_0x58c0a3(0x155)],this[_0x58c0a3(0x1ef)]=_0x3bef1f[_0x58c0a3(0x155)],this[_0x58c0a3(0x369)]=_0x42124b[_0x58c0a3(0x369)],this[_0x58c0a3(0x33f)]={..._0x1d5f0c},this[_0x58c0a3(0x29c)]={..._0xf9db91},this['measureIdList']=_0x235d61,this[_0x58c0a3(0x230)]=_0x2231a7,this[_0x58c0a3(0x363)]=_0x42f46b,this[_0x58c0a3(0x1e7)]=_0x42124b['valueFilterInfo'],this[_0x58c0a3(0x400)]=_0x158678;let _0x368047=_0x42124b[_0x58c0a3(0x2f5)];for(let _0x4516e0 of _0x368047){let _0x45e1c2=_0x4516e0['id'],_0x28f9f3=_0x4516e0[_0x58c0a3(0x2e0)];_0x28f9f3!==void 0x0&&(this[_0x58c0a3(0x3b6)][_0x45e1c2]={'subTotal':_0x28f9f3,'dataFieldId':_0x4516e0['dataFieldId']});}let _0x47d078=[],_0x15ba3c=[],_0x3777d5=new Map();for(let [_0xac9fa1,_0x4bba71]of _0xe69174[_0x58c0a3(0xfb)]())_0x3777d5[_0x58c0a3(0xf5)](_0x4bba71,_0xac9fa1);for(let _0x34b9f4=0x0;_0x34b9f4<_0x2812e5;_0x34b9f4++){let _0x2c8769=_0xe5e288[_0x34b9f4]['id'];_0x47d078[_0x58c0a3(0x1b4)](_0x3777d5['get'](_0x2c8769)),_0x15ba3c[_0x58c0a3(0x1b4)](_0x2c8769);}let _0x52cac1=[],_0x23cfed=[];for(let _0x486e62=0x0;_0x486e62<_0x559b6f;_0x486e62++){let _0x1eb06e=_0x2ec506[_0x486e62]['id'];_0x52cac1['push'](_0x3777d5[_0x58c0a3(0x1aa)](_0x1eb06e)),_0x23cfed[_0x58c0a3(0x1b4)](_0x1eb06e);}this[_0x58c0a3(0x453)]=_0x47d078[_0x58c0a3(0x383)](_0x52cac1),this[_0x58c0a3(0x3c1)]=_0x52cac1['concat'](_0x47d078),this[_0x58c0a3(0x214)]=_0x15ba3c[_0x58c0a3(0x383)](_0x23cfed),this['colTableIdList']=_0x23cfed[_0x58c0a3(0x383)](_0x15ba3c),this[_0x58c0a3(0x3ec)]=_0x2812e5,this[_0x58c0a3(0x1a3)]=_0x559b6f,this[_0x58c0a3(0x135)]=this['measureIdList'][_0x58c0a3(0x155)],this[_0x58c0a3(0x2a9)](_0x42124b);}[_0x973ad6(0x2a9)](_0x5dc0c4){const _0x2772ab=_0x973ad6;let {rowQueryInfo:_0x2de433,colQueryInfo:_0x1b8930}=_0x5dc0c4;for(let _0x2265e1 of[..._0x2de433,..._0x1b8930]){let _0xb811ae=_0x2265e1[_0x2772ab(0x288)],_0x491820=_0x2265e1['id'];if(_0xb811ae){if(_0x2772ab(0x30f)in _0xb811ae)this[_0x2772ab(0x18b)][_0x491820]=_0xb811ae;else{if(_0x5b7936(_0xb811ae)){let _0xc33dcb={},_0x4c739a=_0xb811ae['customOrder'];for(let _0x3dbfe8=0x0;_0x3dbfe8<_0x4c739a[_0x2772ab(0x155)];_0x3dbfe8++){let _0x4bf52b=_0x4c739a[_0x3dbfe8];for(let _0x49e71d of this[_0x2772ab(0x363)][_0x2265e1[_0x2772ab(0x2a7)]][_0x2772ab(0x26e)][_0x2772ab(0xc8)](_0x4bf52b))_0xc33dcb[_0x49e71d]=_0x3dbfe8;}this['dimensionSortInfo'][_0x491820]={'type':_0xb811ae['type'],'sortMap':_0xc33dcb};}else{let _0xb9680f=this[_0x2772ab(0x451)](_0x491820,this[_0x2772ab(0x363)][_0x2265e1[_0x2772ab(0x2a7)]]['field'],_0xb811ae[_0x2772ab(0x295)]);this[_0x2772ab(0x186)][_0x491820]={'type':_0xb811ae[_0x2772ab(0x37a)],'sortMap':_0xb9680f};}}}else{if(_0x7cc867['defaultSortType']!==_0x2772ab(0x386)){let _0xcac62b=_0x7cc867[_0x2772ab(0x2cc)],_0x49c1d1=this['getSortedMap'](_0x491820,this['dimensionMap'][_0x2265e1['dataFieldId']][_0x2772ab(0x26e)]),_0x1fbdab=_0xcac62b===_0x2772ab(0xb0)?0x1:0x2;this['dimensionSortInfo'][_0x491820]={'type':_0x1fbdab,'sortMap':_0x49c1d1};}}}}[_0x973ad6(0x3de)](_0x34b232,_0x1a1faa){const _0x59459a=_0x973ad6;var _0x19d5d3;return this[_0x59459a(0x257)]?this[_0x59459a(0x257)][_0x59459a(0x326)](_0x34b232,_0x1a1faa):(_0x19d5d3=this[_0x59459a(0x12a)][_0x34b232])==null||(_0x19d5d3=_0x19d5d3['summary'])==null||(_0x19d5d3=_0x19d5d3[_0x1a1faa[_0x59459a(0x2a7)]])==null?void 0x0:_0x19d5d3[_0x1a1faa['subtotal']];}['prepareShowDataAs'](_0x5bbb09){const _0x16c7d0=_0x973ad6;!this[_0x16c7d0(0x257)]&&_0x5bbb09['valueQueryInfo'][_0x16c7d0(0x2b4)](_0x4d1a54=>{const _0x4fc67e=_0x16c7d0;var _0x5170e2;return((_0x5170e2=_0x4d1a54[_0x4fc67e(0x210)])==null?void 0x0:_0x5170e2[_0x4fc67e(0x37a)])&&_0x4d1a54[_0x4fc67e(0x210)]['type']!==0x1;})&&(this[_0x16c7d0(0x257)]=new _0x2c1eac(this,_0x5bbb09),this[_0x16c7d0(0x257)][_0x16c7d0(0x377)]());}[_0x973ad6(0x1e2)](){const _0x3e44c2=_0x973ad6;var _0x503319;(_0x503319=this[_0x3e44c2(0x257)])==null||_0x503319['dispose'](),this[_0x3e44c2(0x257)]=void 0x0;}[_0x973ad6(0x451)](_0x1b0e11,_0x762872,_0x4318de){const _0x4e8ded=_0x973ad6;let _0x820e84=this['dimensionSortInfo'][_0x1b0e11];if(_0x820e84&&_0x820e84[_0x4e8ded(0x163)])return _0x820e84['sortMap'];let _0x9b6c3e=_0x762872[_0x4e8ded(0x415)](),_0x2cff11=_0x762872 instanceof _0x9953dc?_0x762872[_0x4e8ded(0x1ca)]:Object['keys'](_0x9b6c3e),_0x291c27=_0x762872 instanceof _0x9953dc?_0x762872[_0x4e8ded(0x1b8)]:[];if(!(_0x762872 instanceof _0x9953dc)){for(let _0x45f85c of _0x2cff11)_0x291c27[_0x9b6c3e[_0x45f85c]]=_0x762872[_0x4e8ded(0x424)](_0x45f85c);}if(!(_0x762872 instanceof _0x9953dc)||_0x762872 instanceof _0x5e7805){let _0x3f448e=_0x10e508=>_0x10e508===0x2?0x0:_0x10e508===0x1?0x1:_0x10e508===0x4?0x2:0x3,_0x5141cd=this[_0x4e8ded(0x1c6)](_0x4318de),_0x2d017a=_0x2cff11[_0x4e8ded(0x41a)]()[_0x4e8ded(0x345)]((_0x1c7c74,_0x45380e)=>{const _0x562b35=_0x4e8ded;let _0x3b919a=_0x291c27[_0x9b6c3e[_0x1c7c74]],_0x47246c=_0x291c27[_0x9b6c3e[_0x45380e]],_0x539c50=_0x3f448e(_0x3b919a)-_0x3f448e(_0x47246c);if(_0x539c50)return _0x539c50;let _0x27eca4=_0x762872 instanceof _0x5e7805?_0x762872[_0x562b35(0x2e9)](_0x1c7c74):_0x762872[_0x562b35(0x1fd)](_0x1c7c74),_0x3ca08d=_0x762872 instanceof _0x5e7805?_0x762872['getDisplayNameByKey'](_0x45380e):_0x762872[_0x562b35(0x1fd)](_0x45380e);return _0x3b919a===0x2||_0x3b919a===0x4?Number(_0x27eca4)-Number(_0x3ca08d)||_0x9b6c3e[_0x1c7c74]-_0x9b6c3e[_0x45380e]:_0x5141cd(_0x27eca4,_0x3ca08d)||_0x9b6c3e[_0x1c7c74]-_0x9b6c3e[_0x45380e];});return Object[_0x4e8ded(0x422)](_0x2d017a[_0x4e8ded(0x3cb)]((_0x2625ef,_0x4f072d)=>[_0x2625ef,_0x4f072d]));}let _0x29d302=_0x5f2a0b(_0x2cff11,_0x291c27,_0x9b6c3e,this[_0x4e8ded(0x1c6)](_0x4318de));if(_0x762872 instanceof _0x55af82){let _0x4e429a=Object[_0x4e8ded(0x254)](_0x29d302)[_0x4e8ded(0x345)]((_0x1d3da0,_0x4d5798)=>_0x29d302[_0x1d3da0]-_0x29d302[_0x4d5798]),_0x31d25c=[..._0x4e429a['includes']('__number_before__')?[_0x5a60b8]:[],..._0x4e429a[_0x4e8ded(0x1b6)](_0x52686f=>_0x52686f!==_0x4e8ded(0x22c)&&_0x52686f!=='__number_after__'),..._0x4e429a[_0x4e8ded(0x180)](_0x4e8ded(0x253))?[_0x504b1b]:[]];return Object[_0x4e8ded(0x422)](_0x31d25c[_0x4e8ded(0x3cb)]((_0x581b19,_0x3fcfb0)=>[_0x581b19,_0x3fcfb0]));}return _0x29d302;}[_0x973ad6(0x236)](){const _0xab26d0=_0x973ad6;let _0x5982a0=this[_0xab26d0(0x268)]();this[_0xab26d0(0x19a)](_0x5982a0),this[_0xab26d0(0xb2)](_0x5982a0),this[_0xab26d0(0x28a)](),this['_applyValueSorts']();}[_0x973ad6(0x13a)](_0xb62f99,_0x17b5c6){const _0x3e7f65=_0x973ad6;this[_0x3e7f65(0x24b)][_0x3e7f65(0x39d)](),this['colNodeTree']!==this[_0x3e7f65(0x24b)]&&this[_0x3e7f65(0x2d1)][_0x3e7f65(0x39d)](),this[_0x3e7f65(0x186)]={},this[_0x3e7f65(0x18b)]={},this[_0x3e7f65(0x400)]!==_0x17b5c6&&(this[_0x3e7f65(0x400)]=_0x17b5c6,this['_sortCompareCache'][_0x3e7f65(0x1fb)]()),this[_0x3e7f65(0x2a9)](_0xb62f99),this[_0x3e7f65(0x28a)](),this[_0x3e7f65(0x11d)]();}['_applyLabelSorts'](){const _0x2e60ce=_0x973ad6;for(let [_0x2d6b06,{type:_0x227fec,sortMap:_0x14cb3f}]of Object[_0x2e60ce(0xfb)](this[_0x2e60ce(0x186)]))this[_0x2e60ce(0x24b)]['sortChildrenByLabel'](_0x2d6b06,_0x227fec,_0x14cb3f),this[_0x2e60ce(0x2d1)]!==this[_0x2e60ce(0x24b)]&&this[_0x2e60ce(0x2d1)][_0x2e60ce(0x327)](_0x2d6b06,_0x227fec,_0x14cb3f);}[_0x973ad6(0x11d)](){const _0x505631=_0x973ad6;for(let [_0x4e6a71,_0x158a16]of Object[_0x505631(0xfb)](this[_0x505631(0x18b)])){if(_0x158a16[_0x505631(0x2a3)][_0x505631(0x155)]>0x0)continue;let _0x15854a=this[_0x505631(0x3b6)][_0x158a16[_0x505631(0x30f)]];if(!_0x15854a)continue;let _0x4d7a01=_0x2d3368=>{const _0x2d43f6=_0x505631;var _0x3fcf6e;let _0x4af221=(_0x3fcf6e=this['tuples'][_0x2d3368])==null||(_0x3fcf6e=_0x3fcf6e['tuple'][_0x15854a[_0x2d43f6(0x2a7)]])==null?void 0x0:_0x3fcf6e[_0x2d43f6(0x348)](_0x15854a[_0x2d43f6(0x2c9)]);return typeof _0x4af221==_0x2d43f6(0x347)?_0x4af221:void 0x0;},_0x253a40=this[_0x505631(0x1c6)](_0x158a16['sortLocale']);this[_0x505631(0x24b)][_0x505631(0x3a3)](_0x4e6a71,_0x158a16['type'],_0x4d7a01,_0x253a40),this['colNodeTree']!==this[_0x505631(0x24b)]&&this[_0x505631(0x2d1)][_0x505631(0x3a3)](_0x4e6a71,_0x158a16['type'],_0x4d7a01,_0x253a40);}}[_0x973ad6(0x1c6)](_0x31dcbd){const _0x46c556=_0x973ad6;let _0x56ebe1=(_0x31dcbd??'')+'\x00'+(this[_0x46c556(0x400)]??''),_0x454f5d=this[_0x46c556(0x324)][_0x46c556(0x1aa)](_0x56ebe1);return _0x454f5d||(_0x454f5d=_0x422e73(_0x31dcbd,this['_defaultSortLocale']),this[_0x46c556(0x324)][_0x46c556(0xf5)](_0x56ebe1,_0x454f5d)),_0x454f5d;}[_0x973ad6(0x224)](){return this['counter']++;}[_0x973ad6(0x19a)](_0x18b919){const _0x4857da=_0x973ad6;this[_0x4857da(0x24b)]=this[_0x4857da(0x417)](this[_0x4857da(0x453)],this[_0x4857da(0x214)],this[_0x4857da(0x35b)],_0x7cc867[_0x4857da(0x199)],_0x18b919),this[_0x4857da(0x2d1)]=this[_0x4857da(0x3ec)]===0x0||this['colDeep']===0x0?this[_0x4857da(0x24b)]:this[_0x4857da(0x417)](this[_0x4857da(0x3c1)],this[_0x4857da(0x10d)],this[_0x4857da(0x354)],_0x7cc867[_0x4857da(0x333)],_0x18b919);}[_0x973ad6(0x1f7)](_0x246951){const _0x573531=_0x973ad6;let _0x3165f9={},_0x592d0a=new Map(),_0x550086=this[_0x573531(0x1ef)],_0x5825ad=_0x550086+0x1,_0x28839b=_0x246951[_0x573531(0x155)];for(let _0x400ded=0x0;_0x400ded<this[_0x573531(0x1ef)];_0x400ded++){let _0x524f97=this[_0x573531(0x12a)][_0x400ded],_0x3c64e6=_0x550086;for(let _0x31ff43=0x0;_0x31ff43<_0x28839b;_0x31ff43++){let _0x1db0c2=_0x31ff43===_0x28839b-0x1,_0x4d5a53=_0x524f97[_0x573531(0x281)][_0x246951[_0x31ff43]],_0x4f5978=_0x400ded,_0x1df126=!0x0;if(!_0x1db0c2){let _0x5a55eb=_0x592d0a['get'](_0x3c64e6);_0x5a55eb||(_0x5a55eb=new Map(),_0x592d0a[_0x573531(0xf5)](_0x3c64e6,_0x5a55eb));let _0x2b1677=_0x5a55eb[_0x573531(0x1aa)](_0x4d5a53);_0x2b1677===void 0x0?(_0x4f5978=_0x5825ad++,_0x5a55eb[_0x573531(0xf5)](_0x4d5a53,_0x4f5978)):(_0x4f5978=_0x2b1677,_0x1df126=!0x1);}if(_0x1df126){let _0x13d522=_0x31ff43+0x1;_0x3165f9[_0x13d522]=_0x3165f9[_0x13d522]||[],_0x3165f9[_0x13d522][_0x573531(0x1b4)]({'p':_0x3c64e6,'v':_0x4f5978});}_0x3c64e6=_0x4f5978;}}return _0x3165f9;}[_0x973ad6(0x168)](_0x340128,_0xcdbb9b,_0x38a701){const _0x5705f5=_0x973ad6;let _0xae3cee={'path':_0x340128,'indexes':[],'tuple':{},'types':[]};for(let _0x2846e2 of this[_0x5705f5(0x3ef)]){let _0x5619ab=new _0x14f785();_0xae3cee[_0x5705f5(0x405)][_0x2846e2]=_0x5619ab;}this[_0x5705f5(0x12a)][_0xcdbb9b]=_0xae3cee,this['tupleMap'][_0x38a701]=_0xcdbb9b;}[_0x973ad6(0x417)](_0x421aa6,_0x5c0645,_0x4a091e,_0x5a1376,_0x12ec13){const _0x3f3cfc=_0x973ad6;let _0xa6f76d=this[_0x3f3cfc(0x224)](),_0x3b905c=new _0x235579(_0xa6f76d,'',0x1);_0x3b905c[_0x3f3cfc(0x249)](-0x1),_0x3b905c[_0x3f3cfc(0x305)](0x0),_0x3b905c['setPaths']([]),this[_0x3f3cfc(0x168)](_0x3b905c[_0x3f3cfc(0x3a1)](),_0xa6f76d,_0x5a1376);let _0x500490=this['collapseInfo'],_0x4def86=this[_0x3f3cfc(0x3ec)]+this['colDeep'],_0x27ac0b=this[_0x3f3cfc(0x25c)];for(let _0xbe070f=0x0;_0xbe070f<this[_0x3f3cfc(0x1ef)];_0xbe070f++){if(_0x12ec13[_0xbe070f]===0x0)continue;let _0x1af3ee=this[_0x3f3cfc(0x12a)][_0xbe070f],_0x5eecde=_0x3b905c,_0x2b1260=0x0;for(let _0x50f6b4 of _0x421aa6){let _0x191623=_0x1af3ee['path'][_0x50f6b4],_0x4f0532=_0x1af3ee[_0x3f3cfc(0x398)][_0x50f6b4],_0x4491de=_0x27ac0b[_0x50f6b4];if(!_0x5eecde[_0x3f3cfc(0x2ea)](_0x191623)){let _0x4a5b3c=_0x2b1260===_0x4def86-0x1,_0x1a12b8=_0x4a5b3c?_0xbe070f:this[_0x3f3cfc(0x224)](),_0x57eee3=new _0x235579(_0x1a12b8,_0x4491de,_0x4f0532),_0x2dade9=this[_0x3f3cfc(0x363)][this[_0x3f3cfc(0x230)][_0x50f6b4]][_0x3f3cfc(0x26e)];_0x57eee3[_0x3f3cfc(0x1ed)](_0x4a5d5c(_0x500490,_0x4491de,_0x2dade9[_0x3f3cfc(0x1fd)](_0x191623)));let {sortMap:_0x43ac6f,type:_0x2ede9d}=this[_0x3f3cfc(0x186)][_0x4491de]??{},_0xa1982b=_0x2dade9 instanceof _0x5e7805?_0x2dade9[_0x3f3cfc(0x2e9)](_0x191623):_0x2dade9['getTupleLabel'](_0x191623);_0x5eecde[_0x3f3cfc(0xe4)](_0x57eee3,_0x191623,_0x43ac6f,_0x2ede9d,_0xa1982b);let _0x8dbd97=_0x57eee3[_0x3f3cfc(0x323)]();_0x4a5b3c?_0x57eee3[_0x3f3cfc(0x158)]():this[_0x3f3cfc(0xe2)](_0x1a12b8,_0x57eee3[_0x3f3cfc(0x3a1)](),_0x5c0645),_0x4a091e[_0x8dbd97]=_0x4a091e[_0x8dbd97]||[],_0x4a091e[_0x8dbd97][_0x3f3cfc(0x1b4)]({'p':_0x5eecde[_0x3f3cfc(0x2a2)](),'v':_0x1a12b8});}_0x5eecde=_0x5eecde['getNode'](_0x191623),_0x2b1260++;}}return _0x3b905c;}[_0x973ad6(0xdd)](_0x581d49,_0xc77980){const _0x4492b8=_0x973ad6;if(this[_0x4492b8(0x193)][_0xc77980])return this['combinePathMap'][_0xc77980];let _0xccd337={};this[_0x4492b8(0x193)][_0xc77980]=_0xccd337;let _0x5c8dad={};for(let _0x1a2891 of _0x581d49)for(let _0x4c1e9f in _0x1a2891){let _0x1dcf70=[_0xc77980,_0x4c1e9f][_0x4492b8(0x31b)](_0x7cc867['TUPLE_FIELD_SEPARATOR']);if(_0xccd337[_0x4c1e9f]===void 0x0){let _0x3e2ccb=this['_getIndex']();this[_0x4492b8(0x40b)](_0x3e2ccb,_0x1dcf70),_0xccd337[_0x4c1e9f]=_0x3e2ccb;}_0x5c8dad[_0x1dcf70]===void 0x0&&(_0x5c8dad[_0x1dcf70]=[]),_0x5c8dad[_0x1dcf70][_0x4492b8(0x1b4)](_0x1a2891[_0x4c1e9f]);}for(let _0x1682ee in _0x5c8dad){let _0x2a060e=_0x5c8dad[_0x1682ee],_0x48d724=this['tuples'][this[_0x4492b8(0x33f)][_0x1682ee]];this[_0x4492b8(0x2ec)](_0x48d724,_0x2a060e);}return _0xccd337;}[_0x973ad6(0x2ec)](_0x4d9d97,_0x3dfb99){const _0xfa8938=_0x973ad6;_0x4d9d97['summary']||={};let _0x212e45=_0x4d9d97[_0xfa8938(0xe5)];for(let _0x1fd04c in this[_0xfa8938(0x29c)]){let _0x34ce76=this[_0xfa8938(0x29c)][_0x1fd04c]['subTotal'],_0x505d0b=_0x4d9d97[_0xfa8938(0x405)][_0x1fd04c],_0x28efc0=_0x3dfb99[_0xfa8938(0x3cb)](_0x3eed19=>this[_0xfa8938(0x12a)][_0x3eed19][_0xfa8938(0x405)][_0x1fd04c]);_0x505d0b[_0xfa8938(0x3fa)](_0x28efc0);let _0x502d0f=_0x505d0b[_0xfa8938(0x391)]();for(let _0x23c3a4 of _0x34ce76)_0x502d0f[_0x23c3a4]=_0x505d0b[_0xfa8938(0x348)](_0x23c3a4);_0x212e45[_0x1fd04c]=_0x502d0f;}}[_0x973ad6(0xb2)](_0x3a05d8){const _0x1efc44=_0x973ad6;this[_0x1efc44(0x181)](this[_0x1efc44(0x35b)],_0x3a05d8),this[_0x1efc44(0x181)](this[_0x1efc44(0x354)],_0x3a05d8);let _0x14e6d6=this[_0x1efc44(0x12a)][this[_0x1efc44(0x24b)][_0x1efc44(0x2a2)]()],_0x5cc90d=this[_0x1efc44(0x12a)][this[_0x1efc44(0x2d1)][_0x1efc44(0x2a2)]()];this[_0x1efc44(0x3ec)]+this['colDeep']===0x0&&this['tuples'][_0x1efc44(0x155)]>0x0&&_0x13844c(this[_0x1efc44(0x12a)][0x0],_0x14e6d6,this['measuresMap']),_0x13844c(_0x14e6d6,void 0x0,this['measuresMap']),_0x13844c(_0x5cc90d,void 0x0,this[_0x1efc44(0x29c)]);}[_0x973ad6(0x421)](_0x1f328f,_0x3786db){const _0x4c7657=_0x973ad6;let _0x48ad83=[];for(let _0x4a8b7e=0x0;_0x4a8b7e<_0x1f328f['length'];_0x4a8b7e++)_0x48ad83[_0x4c7657(0x1b4)](''+_0x3786db[_0x4a8b7e]+_0x7cc867['TUPLE_FIELD_SEPARATOR']+_0x1f328f[_0x4a8b7e]);return _0x48ad83['join'](_0x7cc867[_0x4c7657(0xde)]);}['ensureTupleItem'](_0x5860b0,_0xc0c612,_0x1b6edd){const _0x1e9128=_0x973ad6;if(!this['tuples'][_0x5860b0]){let _0x4abcfa=this[_0x1e9128(0x421)](_0xc0c612,_0x1b6edd);this[_0x1e9128(0x168)](_0xc0c612,_0x5860b0,_0x4abcfa);}}[_0x973ad6(0x40b)](_0xe1df18,_0x33a4af){const _0x5e57f8=_0x973ad6;this['tuples'][_0xe1df18]||this[_0x5e57f8(0x103)]([],_0x33a4af,_0xe1df18);}[_0x973ad6(0x103)](_0xf38be6,_0x12911b,_0x126ad4){const _0x1b66f7=_0x973ad6;let _0x5cbe4f=_0x12911b||_0xf38be6[_0x1b66f7(0x31b)](_0x7cc867[_0x1b66f7(0xde)]);if(!this[_0x1b66f7(0x33f)][_0x5cbe4f]){let _0x380fc0={'path':_0xf38be6,'indexes':[],'tuple':{},'types':[]};for(let _0x54ab49 of this['measureIdList']){let _0xd02683=new _0x14f785();_0x380fc0[_0x1b66f7(0x405)][_0x54ab49]=_0xd02683;}if(_0x126ad4===void 0x0){let _0xbc112a=this[_0x1b66f7(0x12a)]['push'](_0x380fc0);this[_0x1b66f7(0x33f)][_0x5cbe4f]=_0xbc112a-0x1;}else this['tuples'][_0x126ad4]=_0x380fc0,this[_0x1b66f7(0x33f)][_0x5cbe4f]=_0x126ad4;}}['_calculateValueFilter'](){const _0x216ae4=_0x973ad6;let _0x2f8dbc=this[_0x216ae4(0x1e7)],_0x4c2175=new Uint8Array(this['leafCount']);if(_0x4c2175['fill'](0x1),_0x2f8dbc[_0x216ae4(0x155)]===0x0)return _0x4c2175;let _0xa95bfa=this['_createValueFilterLevelPool'](this[_0x216ae4(0x453)]),_0x2754a4=this[_0x216ae4(0x3ec)]===0x0||this['colDeep']===0x0?_0xa95bfa:this['_createValueFilterLevelPool'](this[_0x216ae4(0x3c1)]);for(let {fieldId:_0x3d53f9,filterInfo:_0x49fba7}of _0x2f8dbc)this[_0x216ae4(0x38f)](_0x3d53f9,_0x49fba7[_0x216ae4(0x2f0)],_0x49fba7,_0x4c2175,_0xa95bfa,_0x2754a4);return _0x4c2175;}[_0x973ad6(0x38f)](_0x28f850,_0x510878,_0x2da48e,_0x54e202,_0x374a37,_0x5e114d){const _0x3d5cfe=_0x973ad6;let _0x4f0373=this[_0x3d5cfe(0x36d)](_0x28f850,_0x374a37,_0x5e114d);if(_0x4f0373){let {pool:_0x3199b3,fieldIdList:_0x23d983}=_0x4f0373,_0x4880ec=_0x23d983[_0x3d5cfe(0x40f)](_0x28f850);if(_0x4880ec===-0x1)return;let _0xe8ae1=this[_0x3d5cfe(0x3ec)]+this['colDeep'],_0x44502a=[],_0x4b3b0e=this['subtotalMap'][_0x510878]['subTotal'],_0x3f12ce=this[_0x3d5cfe(0x3b6)][_0x510878][_0x3d5cfe(0x2a7)];for(let _0x5a6a85=_0xe8ae1;_0x5a6a85>_0x4880ec;_0x5a6a85--)if(_0x3199b3[_0x5a6a85]){let _0x1bf04=_0x3199b3[_0x5a6a85];for(let {p:_0x5c327a,v:_0x405c14}of _0x1bf04)(_0xe8ae1!==_0x5a6a85||_0x54e202[_0x405c14]!==0x0)&&_0x23ba03(_0x44502a,_0x5a6a85===_0xe8ae1?this['tuples'][_0x405c14]:void 0x0,_0x3f12ce,_0x4b3b0e,_0x405c14,_0x5c327a);}let _0x2fb4d6=_0x3199b3[_0x4880ec+0x1]??[],_0x2db943=_0x27eced(_0x2da48e,_0x2fb4d6,_0x44502a,_0x4b3b0e),_0x269c24=new Set();for(let {v:_0x278292}of _0x2fb4d6){if(_0x44502a[_0x278292]===void 0x0)continue;let _0x8c138c=_0x44502a[_0x278292][_0x3d5cfe(0x405)]['getSubtotal'](_0x4b3b0e);_0x471804(_0x8c138c)?_0x269c24[_0x3d5cfe(0x1d4)](_0x278292):_0x2db943(_0x8c138c)||_0x269c24[_0x3d5cfe(0x1d4)](_0x278292);}let _0x4c999f=_0x4880ec+0x1;if(_0x4c999f===_0xe8ae1){for(let _0xe6056d of _0x269c24)_0x54e202[_0xe6056d]=0x0;return;}for(;_0x3199b3[_0x4c999f+0x1];){let _0x27957b=new Set(),_0x1e3c50=_0x3199b3[_0x4c999f+0x1];for(let {p:_0x12c16e,v:_0x454322}of _0x1e3c50)_0x269c24[_0x3d5cfe(0x259)](_0x12c16e)&&(_0x27957b['add'](_0x454322),_0x4c999f+0x1===_0xe8ae1&&(_0x54e202[_0x454322]=0x0));_0x4c999f++,_0x269c24=_0x27957b;}}}['_getValueFilterTree'](_0x1cdbc2,_0x14a8a3,_0x1c8881){const _0x169bee=_0x973ad6;if(this[_0x169bee(0x3ec)]===0x0||this[_0x169bee(0x1a3)]===0x0)return{'pool':_0x14a8a3,'fieldIdList':this[_0x169bee(0x214)]};let _0x32d155=this['rowTableIdList'][_0x169bee(0x27e)](_0x5b6eeb=>_0x5b6eeb===_0x1cdbc2);if(_0x32d155>=0x0&&_0x32d155<this[_0x169bee(0x3ec)])return{'pool':_0x14a8a3,'fieldIdList':this['rowTableIdList']};let _0x404e44=this['colTableIdList'][_0x169bee(0x27e)](_0x42e830=>_0x42e830===_0x1cdbc2);return _0x404e44>=0x0&&_0x404e44<this[_0x169bee(0x1a3)]?{'pool':_0x1c8881,'fieldIdList':this['colTableIdList']}:null;}[_0x973ad6(0x181)](_0x3822cf,_0x786381){const _0x1095e7=_0x973ad6;let _0x48e9f4=this['rowDeep']+this[_0x1095e7(0x1a3)];for(let _0x94d515=_0x48e9f4;_0x94d515>=0x0;_0x94d515--)if(_0x3822cf[_0x94d515]){let _0x43c71c=_0x3822cf[_0x94d515];for(let {p:_0x4172b4,v:_0x58c6e9}of _0x43c71c){if(_0x58c6e9<this[_0x1095e7(0x1ef)]&&_0x786381[_0x58c6e9]===0x0)continue;let _0x5f4920=this[_0x1095e7(0x12a)][_0x58c6e9];_0x13844c(_0x5f4920,this['tuples'][_0x4172b4],this[_0x1095e7(0x29c)]);}}}},_0x34e6bd=class{constructor(){const _0x513095=_0x973ad6;_0x5dd0e0(this,_0x513095(0x12a),[]),_0x5dd0e0(this,_0x513095(0x33f),{}),_0x5dd0e0(this,'measuresMap',{}),_0x5dd0e0(this,_0x513095(0x230),[]),_0x5dd0e0(this,'dimensionTableIdList',[]),_0x5dd0e0(this,_0x513095(0x3ef),[]),_0x5dd0e0(this,_0x513095(0x363),{}),_0x5dd0e0(this,_0x513095(0x3ec),0x0),_0x5dd0e0(this,_0x513095(0x1a3),0x0),_0x5dd0e0(this,'_fieldsCollection',void 0x0);}[_0x973ad6(0x377)](_0x4ae46c,_0x581a9c){const _0x3e0ed4=_0x973ad6;this[_0x3e0ed4(0x23c)]=_0x4ae46c;let {valueQueryInfo:_0x1cf2b0,rowQueryInfo:_0x4d75d9,colQueryInfo:_0x265859,filterQueryInfo:_0x549f29,hiddenQueryInfo:_0x5336dd=[]}=_0x581a9c;for(let _0x27f1db of _0x1cf2b0){let _0x343865=_0x27f1db[_0x3e0ed4(0x2a7)],_0x55211f=_0x4ae46c[_0x3e0ed4(0x31e)](_0x343865);if(!_0x55211f)continue;this['measuresMap'][_0x343865]||(this[_0x3e0ed4(0x3ef)][_0x3e0ed4(0x1b4)](_0x343865),this[_0x3e0ed4(0x29c)][_0x343865]={'field':_0x55211f,'subTotal':[]});let _0x46757a=this[_0x3e0ed4(0x29c)][_0x343865],{subtotal:_0x5ebdc9}=_0x27f1db;_0x46757a[_0x3e0ed4(0x2c9)][_0x3e0ed4(0x180)](_0x5ebdc9)||_0x46757a[_0x3e0ed4(0x2c9)][_0x3e0ed4(0x1b4)](_0x5ebdc9);}let _0x3ee088=_0x4d75d9[_0x3e0ed4(0x155)]+_0x265859['length'],_0x3d2f1f=0x0;for(let _0x4a28f4 of[..._0x4d75d9,..._0x265859,..._0x549f29,..._0x5336dd]){let _0x4acf64=_0x4ae46c['getFieldById'](_0x4a28f4[_0x3e0ed4(0x2a7)]);_0x4acf64&&(this[_0x3e0ed4(0x363)][_0x4a28f4[_0x3e0ed4(0x2a7)]]||(this[_0x3e0ed4(0x363)][_0x4a28f4[_0x3e0ed4(0x2a7)]]={'field':_0x4acf64}),_0x3d2f1f<_0x3ee088?(this[_0x3e0ed4(0x230)][_0x3e0ed4(0x1b4)](_0x4a28f4[_0x3e0ed4(0x2a7)]),this['dimensionTableIdList']['push'](_0x4a28f4['id'])):_0x3d2f1f<_0x3ee088+_0x549f29[_0x3e0ed4(0x155)]&&_0x4a28f4[_0x3e0ed4(0x3e9)]&&_0x3a5a2a(_0x4a28f4[_0x3e0ed4(0x3e9)])&&(_0x4a28f4[_0x3e0ed4(0x3e9)][_0x3e0ed4(0x19f)]=_0x4acf64[_0x3e0ed4(0x1ca)]['length']===_0x4a28f4[_0x3e0ed4(0x3e9)][_0x3e0ed4(0x364)][_0x3e0ed4(0x155)]),_0x3d2f1f++);}this['rowDeep']=_0x4d75d9[_0x3e0ed4(0x155)],this[_0x3e0ed4(0x1a3)]=_0x265859[_0x3e0ed4(0x155)];}['filter'](_0x5078f3){const _0x1197df=_0x973ad6;let {rowQueryInfo:_0x44177f,colQueryInfo:_0x37e8f8,filterQueryInfo:_0x5d0134,hiddenQueryInfo:_0x11611b=[]}=_0x5078f3,_0x168123=[],_0x3142ba=!0x1,_0x83bb02=[..._0x44177f,..._0x37e8f8,..._0x5d0134,..._0x11611b][_0x1197df(0x172)](_0x429b88=>_0x429b88[_0x1197df(0x1a1)]?[_0x429b88,{..._0x429b88,'filterInfo':_0x429b88['conditionFilter'],'conditionFilter':void 0x0}]:[_0x429b88]);for(let {dataFieldId:_0x3a35e2,filterInfo:_0x3c4028}of _0x83bb02){var _0x5b4f00;if(_0x3c4028===void 0x0)continue;let _0x4f8434=(_0x5b4f00=this['dimensionMap'][_0x3a35e2])==null?void 0x0:_0x5b4f00[_0x1197df(0x26e)];if(!_0x4f8434)throw TypeError('Missing\x20constrained\x20pivot\x20field:\x20'+_0x3a35e2);if(_0x47ba55(_0x3c4028)){if(!_0x205762(_0x3c4028))continue;let _0x55ea9c=this[_0x1197df(0x23c)][_0x1197df(0x3b3)]['compileRecordFilter'](_0x3c4028);_0x3142ba=!0x0;let _0x3b896d=[];for(let _0x3e1645=0x0;_0x3e1645<_0x4f8434[_0x1197df(0xb7)][_0x1197df(0x155)];_0x3e1645++)_0x55ea9c(_0x4f8434[_0x1197df(0xb7)][_0x3e1645])&&_0x3b896d[_0x1197df(0x1b4)](_0x3e1645);_0x168123[_0x1197df(0x1b4)](_0x3b896d);}else{if(_0x3a5a2a(_0x3c4028)){_0x3142ba=!0x0;let {list:_0x121a22}=_0x3c4028,_0x173822=[];for(let _0x4ffc37 of _0x121a22)_0x173822[_0x1197df(0x1b4)](_0x4f8434['getIndexesByKey'](_0x4ffc37));_0x168123['push'](_0xe6a658(_0x173822));}else{if(_0x355dcd(_0x3c4028)){if(_0x3142ba=!0x0,_0x494aed(_0x3c4028)){let _0x546338=_0x8788d8(_0x3c4028),_0x255de9=[];for(let _0x28d4cc=0x0;_0x28d4cc<_0x4f8434['records']['length'];_0x28d4cc++){let _0x4acea7=_0x4f8434[_0x1197df(0xb7)][_0x28d4cc];_0x121f25(_0x4acea7)&&_0x546338(_0x4acea7['v'])&&_0x255de9[_0x1197df(0x1b4)](_0x28d4cc);}_0x168123[_0x1197df(0x1b4)](_0x255de9);continue;}let {operator:_0x265d4b,expected:_0x50d41b}=_0x3c4028;if(_0x265d4b>=0x1&&_0x265d4b<=0xe){let _0x4567f0=_0x3fe34c(_0x3c4028),_0x3b02ad=[];for(let _0x348047=0x0;_0x348047<_0x4f8434[_0x1197df(0xb7)]['length'];_0x348047++){let _0x21f0db=_0x4f8434[_0x1197df(0xb7)][_0x348047],_0x1b3a05=String(_0x21f0db??'');_0x121f25(_0x21f0db)?_0x1b3a05=String(_0x21f0db['v']):_0x134f06(_0x21f0db)&&(_0x1b3a05=_0x21f0db[_0x1197df(0x2d0)]),_0x4567f0(_0x1b3a05)&&_0x3b02ad[_0x1197df(0x1b4)](_0x348047);}_0x168123[_0x1197df(0x1b4)](_0x3b02ad);continue;}if(_0x4f8434[_0x1197df(0x42c)]()===0x2){let _0x5ee83f=_0x3192d0(_0x4f8434['getAllIndexMap'](),_0x265d4b,_0x50d41b);_0x168123[_0x1197df(0x1b4)](_0xe6a658(_0x5ee83f));}}}}}return!_0x3142ba&&_0x168123['length']===0x0?{'isAll':!0x0,'list':[]}:{'isAll':!0x1,'list':_0x1c02b4(_0x168123)};}['query'](_0x12f900,_0x5c1249){const _0x1c5e3c=_0x973ad6;this[_0x1c5e3c(0x377)](_0x12f900,_0x5c1249);let {isAll:_0x9d34c9,list:_0x3967a7}=this['filter'](_0x5c1249);this[_0x1c5e3c(0x1a4)](_0x9d34c9,_0x3967a7,_0x12f900['getDataRecordCount']());}[_0x973ad6(0x2f8)](){const _0x3a646f=_0x973ad6;this[_0x3a646f(0x12a)]=[],this[_0x3a646f(0x29c)]={},this[_0x3a646f(0x363)]={},this[_0x3a646f(0x33f)]={},this[_0x3a646f(0x230)]=[],this[_0x3a646f(0x25c)]=[],this['measureIdList']=[];}[_0x973ad6(0x1a4)](_0x57339a,_0x143c5a,_0x379961=0x0){const _0x5846ad=_0x973ad6;let _0x41e4e9=this['dimensionTableIdList'];if(_0x57339a)for(let _0x34e6ee=0x0;_0x34e6ee<_0x379961;_0x34e6ee++){let _0x3df350=[],_0x1bcd18=[],_0x3d3f40=[],_0x2c5d1e=0x0;for(let _0x56b916 of this[_0x5846ad(0x230)]){let _0x2d148a=this[_0x5846ad(0x363)][_0x56b916]['field'],_0x50e62f=_0x2d148a[_0x5846ad(0x1c3)](_0x34e6ee);_0x3d3f40[_0x5846ad(0x1b4)](_0x41e4e9[_0x2c5d1e]+_0x7cc867['TUPLE_FIELD_SEPARATOR']+_0x50e62f),_0x3df350[_0x5846ad(0x1b4)](_0x50e62f),_0x1bcd18['push'](_0x2d148a[_0x5846ad(0x424)](_0x50e62f)),_0x2c5d1e++;}this['createOrUpdateTuple'](_0x3df350,_0x3d3f40,_0x34e6ee,_0x1bcd18);}for(let _0x203669 of _0x143c5a){let _0xb9a122=[],_0x204591=[],_0x2e50a1=[],_0x5956cc=0x0;for(let _0x197a1a of this[_0x5846ad(0x230)]){let _0x400e1a=this['dimensionMap'][_0x197a1a][_0x5846ad(0x26e)],_0x115735=_0x400e1a[_0x5846ad(0x1c3)](_0x203669);_0x2e50a1['push'](_0x41e4e9[_0x5956cc]+_0x7cc867[_0x5846ad(0x208)]+_0x115735),_0xb9a122['push'](_0x115735),_0x204591[_0x5846ad(0x1b4)](_0x400e1a[_0x5846ad(0x424)](_0x115735)),_0x5956cc++;}this[_0x5846ad(0x12e)](_0xb9a122,_0x2e50a1,_0x203669,_0x204591);}}['createOrUpdateTuple'](_0xd843a3,_0x59ac61,_0x2d3c97,_0x471352){const _0x930a01=_0x973ad6;let _0x5a040e=_0x59ac61[_0x930a01(0x31b)](_0x7cc867[_0x930a01(0xde)]);this[_0x930a01(0x33f)][_0x5a040e]===void 0x0&&this[_0x930a01(0x103)](_0xd843a3,_0x5a040e,void 0x0,_0x471352);let _0x2c0734=this['tuples'][this[_0x930a01(0x33f)][_0x5a040e]];_0x2c0734[_0x930a01(0x1ba)][_0x930a01(0x1b4)](_0x2d3c97);for(let _0x50a4bc of this['measureIdList']){let _0x3c6258=_0x2c0734[_0x930a01(0x405)][_0x50a4bc],_0x38843c=this['measuresMap'][_0x50a4bc]['field'][_0x930a01(0x326)](_0x2d3c97);_0x3c6258[_0x930a01(0x233)](_0x38843c);}}[_0x973ad6(0x103)](_0x38e436,_0x1a1b0a,_0x233923,_0x3f2f4e=[]){const _0x2a15e4=_0x973ad6;let _0xd34b71=_0x1a1b0a||_0x38e436[_0x2a15e4(0x31b)](_0x7cc867['TUPLE_PLACEHOLDER']);if(!this[_0x2a15e4(0x33f)][_0xd34b71]){let _0x54b8cc={'path':_0x38e436,'types':_0x3f2f4e,'indexes':[],'tuple':{}};for(let _0x4e5f19 of this['measureIdList']){let _0x1175bd=new _0x14f785();_0x54b8cc[_0x2a15e4(0x405)][_0x4e5f19]=_0x1175bd;}if(_0x233923===void 0x0){let _0x5efbc7=this[_0x2a15e4(0x12a)]['push'](_0x54b8cc);this[_0x2a15e4(0x33f)][_0xd34b71]=_0x5efbc7-0x1;}else this['tuples'][_0x233923]=_0x54b8cc,this[_0x2a15e4(0x33f)][_0xd34b71]=_0x233923;}}};let _0x520894=_0x3e431c=>_0x3e431c[_0x973ad6(0x30f)]!==void 0x0,_0x20a56b=_0x5a9a3b=>{const _0x3398a3=_0x973ad6;if(_0x520894(_0x5a9a3b)){let {type:_0x2737d0,baseFieldId:_0x27d02f,sortItems:_0x41c85e,sortLocale:_0x2043d6}=_0x5a9a3b;return{'type':_0x2737d0,'baseFieldId':_0x27d02f,'sortItems':_0x41c85e[_0x3398a3(0x383)](),..._0x2043d6===void 0x0?{}:{'sortLocale':_0x2043d6}};}return _0x3398a3(0x409)in _0x5a9a3b?{..._0x5a9a3b,'customOrder':_0x5a9a3b[_0x3398a3(0x409)][_0x3398a3(0x383)]()}:{..._0x5a9a3b};},_0x4e0328=_0x3063b9=>({..._0x3063b9}),_0x238bb2=()=>({'type':0x1,'baseFieldId':'','baseItem':''});var _0x4cca33=class{constructor(_0x3facfc,_0x2751d0,_0x259c69='',_0x1701f6){const _0xdbcb4=_0x973ad6;_0x5dd0e0(this,_0xdbcb4(0x2a7),void 0x0),_0x5dd0e0(this,'id',void 0x0),_0x5dd0e0(this,'sourceName',void 0x0),_0x5dd0e0(this,_0xdbcb4(0x27c),void 0x0),_0x5dd0e0(this,'format',void 0x0),_0x5dd0e0(this,_0xdbcb4(0x292),void 0x0),this[_0xdbcb4(0x2a7)]=_0x3facfc,this['id']=_0x2751d0,this[_0xdbcb4(0x27c)]=_0x259c69,this['sourceName']=_0x1701f6;}[_0x973ad6(0x36a)](){return this['id'];}[_0x973ad6(0x117)](){const _0x50f1d7=_0x973ad6;return this[_0x50f1d7(0x165)];}[_0x973ad6(0x312)](_0x115a39){const _0x2815bc=_0x973ad6;this[_0x2815bc(0x165)]=_0x115a39;}[_0x973ad6(0x108)](_0xcb8fbf){const _0x5837ff=_0x973ad6;this[_0x5837ff(0x2a7)]=_0xcb8fbf;}['getDataFieldId'](){const _0x4c9b85=_0x973ad6;return this[_0x4c9b85(0x2a7)];}[_0x973ad6(0x423)](){return this['format'];}[_0x973ad6(0x220)](_0x831ced){const _0x44362e=_0x973ad6;this[_0x44362e(0x3bb)]=_0x831ced;}[_0x973ad6(0x209)](_0x4746de){const _0x5a38ea=_0x973ad6;this[_0x5a38ea(0x27c)]=_0x4746de;}[_0x973ad6(0x17c)](){const _0x17335a=_0x973ad6;return this[_0x17335a(0x27c)];}},_0x3ea467=class extends _0x4cca33{constructor(_0x5544fe,_0x277553,_0x36d27d='',_0x327b76){super(_0x5544fe,_0x277553,_0x36d27d,_0x327b76),_0x5dd0e0(this,'subtotal',void 0x0),_0x5dd0e0(this,'showDataAs',_0x238bb2());}[_0x973ad6(0x3ad)](_0x27cc3e){const _0x5c3ece=_0x973ad6;this[_0x5c3ece(0x2e0)]=_0x27cc3e;}[_0x973ad6(0x348)](){const _0x765fc5=_0x973ad6;return this[_0x765fc5(0x2e0)];}[_0x973ad6(0x279)](_0x5a3c41){this['showDataAs']=_0x4e0328(_0x5a3c41);}[_0x973ad6(0x33a)](){const _0x26b602=_0x973ad6;return _0x4e0328(this[_0x26b602(0x210)]);}['getQueryData'](){const _0x3c9894=_0x973ad6;return{'id':this['id'],'dataFieldId':this[_0x3c9894(0x2a7)],'displayName':this[_0x3c9894(0x27c)],'subtotal':this[_0x3c9894(0x2e0)],'showDataAs':_0x4e0328(this['showDataAs'])};}[_0x973ad6(0x2e8)](){const _0xfc2517=_0x973ad6;return{'id':this['id'],'dataFieldId':this[_0xfc2517(0x2a7)],'displayName':this[_0xfc2517(0x27c)],'sourceName':this[_0xfc2517(0x165)],'subtotal':this[_0xfc2517(0x2e0)],'format':this['format'],'showDataAs':_0x4e0328(this[_0xfc2517(0x210)])};}[_0x973ad6(0x12f)](_0x46b8a0){const _0x51a842=_0x973ad6;this['id']=_0x46b8a0['id'],this[_0x51a842(0x2a7)]=_0x46b8a0[_0x51a842(0x2a7)],this[_0x51a842(0x27c)]=_0x46b8a0[_0x51a842(0x27c)],this['sourceName']=_0x46b8a0[_0x51a842(0x165)],this[_0x51a842(0x3bb)]=_0x46b8a0[_0x51a842(0x3bb)],this[_0x51a842(0x2e0)]=_0x46b8a0[_0x51a842(0x2e0)];let _0x1342e9=_0x46b8a0[_0x51a842(0x210)];this[_0x51a842(0x210)]=(_0x1342e9==null?void 0x0:_0x1342e9[_0x51a842(0x37a)])===void 0x0?_0x238bb2():_0x4e0328(_0x1342e9);}},_0xd515e0=class extends _0x4cca33{constructor(_0x3534dd,_0x520ad5,_0x3a7486='',_0x164eed){const _0x1df7f9=_0x973ad6;super(_0x3534dd,_0x520ad5,_0x3a7486,_0x164eed),_0x5dd0e0(this,'sortInfo',void 0x0),_0x5dd0e0(this,'filterInfo',void 0x0),_0x5dd0e0(this,_0x1df7f9(0x1a1),void 0x0);}[_0x973ad6(0x2eb)](_0x2353e0){this['sortInfo']=_0x2353e0?_0x20a56b(_0x2353e0):void 0x0;}[_0x973ad6(0x138)](){const _0x516109=_0x973ad6;return this['sortInfo']?_0x20a56b(this[_0x516109(0x288)]):void 0x0;}[_0x973ad6(0xed)](_0x20766d){const _0x79c8c5=_0x973ad6;this[_0x79c8c5(0x3e9)]=_0x47ba55(_0x20766d)||_0x494aed(_0x20766d)?_0x117c74(_0x20766d):_0x20766d;}['getFilterInfo'](){const _0x386707=_0x973ad6;return _0x47ba55(this['filterInfo'])||_0x494aed(this['filterInfo'])?_0x117c74(this[_0x386707(0x3e9)]):this['filterInfo'];}[_0x973ad6(0x269)](){const _0x3cfa28=_0x973ad6;var _0x4efbf9;return _0x117c74(this[_0x3cfa28(0x1a1)]??(((_0x4efbf9=this['filterInfo'])==null?void 0x0:_0x4efbf9['type'])===0x1?this[_0x3cfa28(0x3e9)]:void 0x0));}[_0x973ad6(0x13f)](_0x1e846c){const _0x1488cf=_0x973ad6;if(_0x1e846c!==void 0x0&&_0x1e846c[_0x1488cf(0x37a)]!==0x1&&(!_0x47ba55(_0x1e846c)||!_0x1e846c[_0x1488cf(0x3a6)]||_0x1e846c[_0x1488cf(0x39c)]!==void 0x0))throw TypeError(_0x1488cf(0x41d));this[_0x1488cf(0x1a1)]=_0x117c74(_0x1e846c);}['getQueryData'](){const _0x49aacc=_0x973ad6;return{'id':this['id'],'dataFieldId':this[_0x49aacc(0x2a7)],'displayName':this[_0x49aacc(0x27c)],'sortInfo':this[_0x49aacc(0x138)](),'filterInfo':this[_0x49aacc(0x3e9)]&&(_0x47ba55(this['filterInfo'])||_0x494aed(this[_0x49aacc(0x3e9)])?_0x117c74(this[_0x49aacc(0x3e9)]):Object['assign']({},this[_0x49aacc(0x3e9)])),...this[_0x49aacc(0x1a1)]?{'conditionFilter':this[_0x49aacc(0x269)]()}:{}};}[_0x973ad6(0x2e8)](){const _0x39dafa=_0x973ad6;return{'id':this['id'],'dataFieldId':this[_0x39dafa(0x2a7)],'displayName':this['displayName'],'format':this[_0x39dafa(0x3bb)],'sourceName':this['sourceName'],'sortInfo':this['sortInfo']?_0x20a56b(this[_0x39dafa(0x288)]):void 0x0,'filterInfo':_0x47ba55(this[_0x39dafa(0x3e9)])||_0x494aed(this[_0x39dafa(0x3e9)])?_0x117c74(this['filterInfo']):this[_0x39dafa(0x3e9)]||void 0x0,...this[_0x39dafa(0x1a1)]?{'conditionFilter':this[_0x39dafa(0x269)]()}:{}};}['fromJSON'](_0x759329){const _0x3b9ed7=_0x973ad6;var _0x37259a;if(_0x759329[_0x3b9ed7(0x1a1)]&&(((_0x37259a=_0x759329[_0x3b9ed7(0x3e9)])==null?void 0x0:_0x37259a[_0x3b9ed7(0x37a)])===0x1||_0x47ba55(_0x759329[_0x3b9ed7(0x3e9)])&&_0x759329['filterInfo'][_0x3b9ed7(0x3a6)]!==void 0x0))throw TypeError('A\x20pivot\x20field\x20cannot\x20contain\x20two\x20date/label\x20conditions.');this['id']=_0x759329['id'],this[_0x3b9ed7(0x2a7)]=_0x759329['dataFieldId'],this[_0x3b9ed7(0x27c)]=_0x759329['displayName'],this[_0x3b9ed7(0x165)]=_0x759329[_0x3b9ed7(0x165)],this['format']=_0x759329[_0x3b9ed7(0x3bb)],_0x759329[_0x3b9ed7(0x288)]&&this[_0x3b9ed7(0x2eb)](_0x759329[_0x3b9ed7(0x288)]),_0x759329[_0x3b9ed7(0x3e9)]&&(this[_0x3b9ed7(0x3e9)]=_0x47ba55(_0x759329[_0x3b9ed7(0x3e9)])||_0x494aed(_0x759329[_0x3b9ed7(0x3e9)])?_0x117c74(_0x759329[_0x3b9ed7(0x3e9)]):_0x759329['filterInfo']),this[_0x3b9ed7(0x13f)](_0x759329[_0x3b9ed7(0x1a1)]);}};function _0x549f73(_0x27935a,_0x23363d=!0x0){const _0x342b3f=_0x973ad6;let _0x42c2ce=new _0x3ea467(_0x27935a['dataFieldId'],_0x27935a['id'],_0x27935a['getDisplayName'](),_0x27935a['sourceName']);if(_0x47005a(_0x27935a[_0x342b3f(0x17c)](),0x9),_0x42c2ce[_0x342b3f(0x2e0)]=0x9,_0x27935a['lossLessProperty']){let _0x5bc06b=_0x27935a[_0x342b3f(0x292)];_0x5bc06b['showDataAs']&&(_0x42c2ce[_0x342b3f(0x210)]=_0x5bc06b['showDataAs']),_0x5bc06b[_0x342b3f(0x2e0)]!==void 0x0&&(_0x42c2ce[_0x342b3f(0x2e0)]=_0x5bc06b[_0x342b3f(0x2e0)]);}return _0x23363d&&(_0x42c2ce['lossLessProperty']={'sortInfo':_0x27935a[_0x342b3f(0x138)](),'filterInfo':_0x27935a[_0x342b3f(0x1ae)](),..._0x27935a[_0x342b3f(0x1a1)]?{'conditionFilter':_0x27935a[_0x342b3f(0x269)]()}:{}}),_0x42c2ce;}function _0x4ea35b(_0x33a235,_0x4ce17f=!0x0){const _0x2f8aad=_0x973ad6;let _0x34f4a6=new _0xd515e0(_0x33a235['dataFieldId'],_0x33a235['id'],_0x33a235[_0x2f8aad(0x17c)](),_0x33a235[_0x2f8aad(0x165)]);if(_0x34f4a6[_0x2f8aad(0x209)](_0x33a235[_0x2f8aad(0x17c)]()),_0x33a235[_0x2f8aad(0x292)]){let _0x23e7ac=_0x33a235[_0x2f8aad(0x292)];_0x23e7ac[_0x2f8aad(0x288)]&&(_0x34f4a6[_0x2f8aad(0x288)]=_0x23e7ac[_0x2f8aad(0x288)]),_0x23e7ac[_0x2f8aad(0x3e9)]&&(_0x34f4a6['filterInfo']=_0x47ba55(_0x23e7ac[_0x2f8aad(0x3e9)])?_0x117c74(_0x23e7ac[_0x2f8aad(0x3e9)]):_0x23e7ac[_0x2f8aad(0x3e9)]),_0x34f4a6[_0x2f8aad(0x13f)](_0x23e7ac[_0x2f8aad(0x1a1)]);}return _0x4ce17f&&(_0x34f4a6[_0x2f8aad(0x292)]={'subtotal':_0x33a235[_0x2f8aad(0x348)](),'showDataAs':_0x33a235['getShowDataAs']()}),_0x34f4a6;}function _0x69aecd(_0x49cb42){const _0x3cf12f=_0x973ad6;let {dataFieldId:_0x4e379d,id:_0x5404e5,sourceName:_0x50b688}=_0x49cb42,_0x2ff375=new _0x3ea467(_0x4e379d,_0x5404e5,'',_0x50b688);return _0x2ff375[_0x3cf12f(0x12f)](_0x49cb42),_0x2ff375;}function _0x1f2248(_0x36306a){let {dataFieldId:_0x548335,id:_0x28cb16,sourceName:_0x12331b}=_0x36306a,_0xf09a27=new _0xd515e0(_0x548335,_0x28cb16,'',_0x12331b);return _0xf09a27['fromJSON'](_0x36306a),_0xf09a27;}var _0x4a6faa=class _0x4c1a00{constructor(){const _0x25f3a2=_0x973ad6;_0x5dd0e0(this,_0x25f3a2(0x167),[]),_0x5dd0e0(this,_0x25f3a2(0x2b8),[]),_0x5dd0e0(this,_0x25f3a2(0x14a),[]),_0x5dd0e0(this,'filterFields',[]),_0x5dd0e0(this,_0x25f3a2(0x34e),[]),_0x5dd0e0(this,_0x25f3a2(0x282),Object[_0x25f3a2(0x37c)](null)),_0x5dd0e0(this,_0x25f3a2(0x365),Object[_0x25f3a2(0x37c)](null)),_0x5dd0e0(this,_0x25f3a2(0x403),-0x1),_0x5dd0e0(this,_0x25f3a2(0x1ee),-0x1),_0x5dd0e0(this,_0x25f3a2(0x378),0x3),_0x5dd0e0(this,_0x25f3a2(0x369),Object['create'](null)),_0x5dd0e0(this,_0x25f3a2(0x1d5),void 0x0),_0x5dd0e0(this,_0x25f3a2(0x376),void 0x0),_0x5dd0e0(this,'_isDirty',!0x0),_0x5dd0e0(this,_0x25f3a2(0x361),[]),this[_0x25f3a2(0x1d5)]={'pageWrap':0x1,'pageOverThenDown':!0x1};}[_0x973ad6(0x184)](){const _0x230803=_0x973ad6;this[_0x230803(0x376)]=[];}['endChangeStack'](){const _0x19f81b=_0x973ad6;let _0x2893f5=this[_0x19f81b(0x376)];return delete this[_0x19f81b(0x376)],_0x2893f5;}['setDirty'](_0x5048a2){const _0x500742=_0x973ad6;this[_0x500742(0x151)]=_0x5048a2;}['getDirty'](){const _0x1e194c=_0x973ad6;return this[_0x1e194c(0x151)];}['setOptions'](_0x2f68b3,_0x2a3522=!0x1){const _0x437312=_0x973ad6;if(_0x2f68b3[_0x437312(0x1f8)]!==void 0x0&&typeof _0x2f68b3['allowMultipleFilters']!=_0x437312(0x3bd))throw TypeError(_0x437312(0x26f));if(_0x2f68b3[_0x437312(0x310)]!==void 0x0&&_0x2f68b3[_0x437312(0x310)]!==_0x437312(0x3ce)&&_0x2f68b3['dateGroupingMode']!==_0x437312(0x143))throw TypeError('Invalid\x20pivot\x20date\x20grouping\x20mode.');!_0x2a3522&&_0x2f68b3['allowMultipleFilters']===!0x1&&_0x490b64(this[_0x437312(0x2e8)]())&&this[_0x437312(0x177)]();let _0x5b26c3={...this['options']},_0x486407=_0x2a3522?{..._0x2f68b3}:{...this[_0x437312(0x1d5)],..._0x2f68b3},_0x342d40=Object[_0x437312(0x254)](_0x486407);if(!(_0x342d40['length']===Object['keys'](_0x5b26c3)[_0x437312(0x155)]&&_0x342d40[_0x437312(0x1f0)](_0xbcc545=>_0x5b26c3[_0xbcc545]===_0x486407[_0xbcc545]))&&(this['options']={..._0x486407},this[_0x437312(0x376)])){let _0x1d6074={'type':0x8,'oldOptions':_0x5b26c3,'newOptions':_0x486407};this['_changeStack'][_0x437312(0x1b4)](_0x1d6074);}}[_0x973ad6(0x179)](){const _0x57cb48=_0x973ad6;return{...this[_0x57cb48(0x1d5)]};}['setLayout'](_0x276c47){const _0x1ab703=_0x973ad6;let _0x357bd8=this[_0x1ab703(0x378)];if(_0x357bd8!==_0x276c47&&(this[_0x1ab703(0x378)]=_0x276c47,this[_0x1ab703(0x376)])){let _0x2d5b3e={'type':0xd,'oldLayout':_0x357bd8,'newLayout':_0x276c47};this['_changeStack'][_0x1ab703(0x1b4)](_0x2d5b3e);}}['getLayout'](){const _0x9d1743=_0x973ad6;return this[_0x9d1743(0x378)];}[_0x973ad6(0x1ed)](_0x346c3c,_0x29ddc9,_0x256967,_0x33b4c4){const _0x3a69e2=_0x973ad6;let _0x504797=this[_0x3a69e2(0x369)][_0x346c3c];if(_0x256967!==void 0x0){let _0xe5ae31=_0x504797===!0x0?Object[_0x3a69e2(0x422)]((_0x33b4c4??[])['map'](_0x23e3c9=>[_0x23e3c9,!0x0])):_0x504797,_0x370d12=Object[_0x3a69e2(0xc9)](Object[_0x3a69e2(0x37c)](null),typeof _0xe5ae31==_0x3a69e2(0x131)?_0xe5ae31:void 0x0);_0x370d12[_0x256967]=_0x29ddc9===!0x0,this['collapseInfo'][_0x346c3c]=_0x370d12;}else _0x29ddc9===void 0x0?delete this[_0x3a69e2(0x369)][_0x346c3c]:this[_0x3a69e2(0x369)][_0x346c3c]=typeof _0x29ddc9==_0x3a69e2(0x131)?Object[_0x3a69e2(0xc9)](Object['create'](null),_0x29ddc9):_0x29ddc9;if(this[_0x3a69e2(0x376)]){let _0x237ecc=this[_0x3a69e2(0x369)][_0x346c3c],_0x4c9d6b={'type':0xa,'fieldId':_0x346c3c,'collapse':typeof _0x237ecc=='object'?{..._0x237ecc}:_0x237ecc,'previous':{'collapse':typeof _0x504797==_0x3a69e2(0x131)?{..._0x504797}:_0x504797}};this['_changeStack']['push'](_0x4c9d6b);}}[_0x973ad6(0x336)](_0x1715a3,_0x4384a8,_0x2a18e0){const _0x4f8b7c=_0x973ad6;let _0x5c5cf9=this[_0x4f8b7c(0x282)][_0x1715a3];if(!_0x5c5cf9)return;if(_0x4384a8===void 0x0){if(_0x2a18e0!==void 0x0){this[_0x4f8b7c(0x306)](_0x5c5cf9['dataFieldId'],void 0x0,_0x2a18e0);return;}this[_0x4f8b7c(0x1de)](_0x1715a3,void 0x0);return;}let _0xed84e6=_0x47ba55(_0x4384a8)||_0x494aed(_0x4384a8)?_0x117c74(_0x4384a8):_0x4384a8,_0x7a56ef=_0x5c5cf9[_0x4f8b7c(0x1ae)](),_0x17d939=_0x2a18e0??(_0x4384a8[_0x4f8b7c(0x37a)]===0x1||_0x47ba55(_0x4384a8)&&_0x4384a8[_0x4f8b7c(0x3a6)]!==void 0x0?_0x4f8b7c(0x25f):_0x4f8b7c(0x2cf));if((_0x47ba55(_0x4384a8)?_0x205762({'type':0x4,..._0x17d939===_0x4f8b7c(0x2cf)?{'selection':_0x4384a8['selection']}:{'dateRange':_0x4384a8[_0x4f8b7c(0x3a6)]}}):_0x205762(_0x4384a8))&&this['options']['allowMultipleFilters']!==!0x0){this[_0x4f8b7c(0x303)](_0x5c5cf9[_0x4f8b7c(0x2a7)],_0x1715a3),_0x47ba55(_0xed84e6)&&(_0xed84e6={'type':0x4,..._0x17d939===_0x4f8b7c(0x2cf)?{'selection':_0xed84e6[_0x4f8b7c(0x39c)]}:{'dateRange':_0xed84e6[_0x4f8b7c(0x3a6)]}}),this[_0x4f8b7c(0x1de)](_0x1715a3,_0xed84e6);return;}this[_0x4f8b7c(0x306)](_0x5c5cf9['dataFieldId'],_0x1715a3,_0x17d939);let _0x34292c=_0x5c5cf9[_0x4f8b7c(0x269)]();if(_0x47ba55(_0xed84e6)){if(_0x17d939===_0x4f8b7c(0x25f)){if(_0x34292c=void 0x0,(_0x7a56ef==null?void 0x0:_0x7a56ef[_0x4f8b7c(0x37a)])===0x3&&_0xed84e6[_0x4f8b7c(0x39c)]===void 0x0&&_0xed84e6[_0x4f8b7c(0x3a6)]){this[_0x4f8b7c(0x1de)](_0x1715a3,_0x7a56ef,{'type':0x4,'dateRange':_0xed84e6['dateRange']});return;}_0x47ba55(_0x7a56ef)&&_0xed84e6[_0x4f8b7c(0x39c)]===void 0x0&&(_0xed84e6={..._0xed84e6,..._0x7a56ef[_0x4f8b7c(0x39c)]?{'selection':_0x7a56ef['selection']}:{}});}else _0x47ba55(_0x7a56ef)&&_0x7a56ef[_0x4f8b7c(0x3a6)]&&(_0xed84e6={..._0xed84e6,'dateRange':_0x7a56ef[_0x4f8b7c(0x3a6)]});}else _0xed84e6[_0x4f8b7c(0x37a)]===0x3&&_0x47ba55(_0x7a56ef)&&_0x7a56ef[_0x4f8b7c(0x3a6)]&&(_0x34292c={'type':0x4,'dateRange':_0x7a56ef[_0x4f8b7c(0x3a6)]});if(_0xed84e6[_0x4f8b7c(0x37a)]===0x1&&_0x7a56ef&&_0x7a56ef[_0x4f8b7c(0x37a)]!==0x1){let _0x30100f=_0x117c74(_0x7a56ef);_0x47ba55(_0x30100f)&&delete _0x30100f['dateRange'],this[_0x4f8b7c(0x1de)](_0x1715a3,_0x30100f,_0xed84e6);}else this[_0x4f8b7c(0x1de)](_0x1715a3,_0xed84e6,_0xed84e6[_0x4f8b7c(0x37a)]===0x1?void 0x0:_0x34292c);}[_0x973ad6(0x1de)](_0x99e504,_0x3ba05a,_0x3b1b13){const _0xbec6cc=_0x973ad6;if(this[_0xbec6cc(0x282)][_0x99e504]){if(_0x3b1b13&&((_0x3ba05a==null?void 0x0:_0x3ba05a[_0xbec6cc(0x37a)])===0x1||_0x47ba55(_0x3ba05a)&&_0x3ba05a[_0xbec6cc(0x3a6)]!==void 0x0))throw TypeError(_0xbec6cc(0x128));let _0x34d179=_0x117c74(_0x3b1b13);if(_0x34d179&&_0x34d179[_0xbec6cc(0x37a)]!==0x1&&(!_0x47ba55(_0x34d179)||!_0x34d179[_0xbec6cc(0x3a6)]||_0x34d179[_0xbec6cc(0x39c)]!==void 0x0))throw TypeError(_0xbec6cc(0x41d));let _0x26bd7b=this[_0xbec6cc(0x282)][_0x99e504][_0xbec6cc(0x1a1)],_0x4e70a2=this[_0xbec6cc(0x282)][_0x99e504]['getFilterInfo'](),_0x719a65=_0x4e70a2===void 0x0||_0x47ba55(_0x4e70a2)||_0x494aed(_0x4e70a2)?_0x4e70a2:{..._0x4e70a2};if(this[_0xbec6cc(0x282)][_0x99e504][_0xbec6cc(0xed)](_0x3ba05a),this['dimension'][_0x99e504]['setConditionFilterInfo'](_0x34d179),this['_changeStack']){let _0x2ea8e0={'type':0x4,'fieldId':_0x99e504,'oldFilterInfo':_0x719a65,'newFilterInfo':_0x47ba55(_0x3ba05a)||_0x494aed(_0x3ba05a)?_0x117c74(_0x3ba05a):_0x3ba05a,..._0x26bd7b||_0x3b1b13?{'oldConditionFilter':_0x117c74(_0x26bd7b)??null,'newConditionFilter':_0x117c74(_0x3b1b13)??null}:{}};this[_0xbec6cc(0x376)]['push'](_0x2ea8e0);}this[_0xbec6cc(0xd1)](!0x0);}}[_0x973ad6(0x1be)](_0xb9a722,_0x48d989,_0x3af64a){const _0x3325f5=_0x973ad6;this[_0x3325f5(0x370)](_0xb9a722,_0x48d989,_0x3af64a,!0x0);}['setValueFilterState'](_0x1d0c52,_0x421231,_0x4fdf7f){const _0x55bb74=_0x973ad6;this[_0x55bb74(0x370)](_0x1d0c52,_0x421231,_0x4fdf7f,!0x1);}[_0x973ad6(0x370)](_0x3fc517,_0x45c695,_0x5d01bb,_0x473fc8){const _0x151fd2=_0x973ad6;let _0x166832=this[_0x151fd2(0x361)]['findIndex'](_0x3c58e4=>_0x3c58e4['fieldId']===_0x3fc517);if(_0x45c695===void 0x0&&_0x166832===-0x1)return;let {area:_0x134946}=this['getFieldPositionInfoById'](_0x3fc517);if(_0x45c695!==void 0x0&&(_0x134946===void 0x0||!_0x347249(_0x134946)||!this[_0x151fd2(0x365)][_0x45c695[_0x151fd2(0x2f0)]]||_0x45c695[_0x151fd2(0x37a)]!==0x2||!_0x3bf3d4(_0x45c695['operator']))){console[_0x151fd2(0x2d0)]('The\x20value\x20filter\x20info\x20is\x20invalid.');return;}if(_0x473fc8&&_0x45c695&&this[_0x151fd2(0x1d5)][_0x151fd2(0x1f8)]!==!0x0){let _0x5547fb=this[_0x151fd2(0x282)][_0x3fc517];this['_clearSourceFilters'](_0x5547fb[_0x151fd2(0x2a7)],_0x3fc517,!0x0),(_0x5547fb[_0x151fd2(0x3e9)]||_0x5547fb[_0x151fd2(0x1a1)])&&this[_0x151fd2(0x1de)](_0x3fc517,void 0x0),_0x166832=this[_0x151fd2(0x361)][_0x151fd2(0x27e)](_0x1c12c0=>_0x1c12c0['fieldId']===_0x3fc517);}else _0x473fc8&&_0x45c695&&(this[_0x151fd2(0x306)](this[_0x151fd2(0x282)][_0x3fc517][_0x151fd2(0x2a7)],_0x3fc517,'value'),_0x166832=this[_0x151fd2(0x361)][_0x151fd2(0x27e)](_0xecd9e7=>_0xecd9e7['fieldId']===_0x3fc517));let _0x3381d6=_0x166832===-0x1?void 0x0:this[_0x151fd2(0x361)][_0x166832]['filterInfo'];_0x166832!==-0x1&&this['_valueFilterInfo'][_0x151fd2(0x3d4)](_0x166832,0x1);let _0x17faf7=-0x1;if(_0x45c695&&(_0x17faf7=!_0x473fc8&&_0x5d01bb!==void 0x0&&_0x5d01bb>=0x0?Math[_0x151fd2(0x411)](_0x5d01bb,this[_0x151fd2(0x361)][_0x151fd2(0x155)]):_0x166832===-0x1?Math[_0x151fd2(0x411)](Math[_0x151fd2(0x18f)](_0x5d01bb??this[_0x151fd2(0x361)][_0x151fd2(0x155)],0x0),this[_0x151fd2(0x361)][_0x151fd2(0x155)]):_0x166832,this['_valueFilterInfo'][_0x151fd2(0x3d4)](_0x17faf7,0x0,{'fieldId':_0x3fc517,'filterInfo':_0x15b810(_0x45c695)})),this[_0x151fd2(0x376)]){let _0x19d884={'type':0xc,'fieldId':_0x3fc517,'oldFilterInfo':_0x15b810(_0x3381d6),'filterInfo':_0x15b810(_0x45c695),'oldIndex':_0x166832,'newIndex':_0x17faf7};this[_0x151fd2(0x376)][_0x151fd2(0x1b4)](_0x19d884);}}[_0x973ad6(0x275)](_0x57ae84){const _0x2920bb=_0x973ad6;let _0x5c96f0=this[_0x2920bb(0x361)][_0x2920bb(0x2c0)](_0x52c230=>_0x52c230[_0x2920bb(0xe9)]===_0x57ae84);return _0x15b810(_0x5c96f0==null?void 0x0:_0x5c96f0[_0x2920bb(0x3e9)]);}['getConditionFilterInfo'](_0x2fd0e5){const _0x1601f6=_0x973ad6;var _0x8e2c36;return(_0x8e2c36=this['dimension'][_0x2fd0e5])==null?void 0x0:_0x8e2c36[_0x1601f6(0x269)]();}[_0x973ad6(0xdc)](_0xcec06d){const _0x2d105f=_0x973ad6;let _0x28d86a=this[_0x2d105f(0x282)][_0xcec06d];_0x28d86a&&(this[_0x2d105f(0x303)](_0x28d86a[_0x2d105f(0x2a7)],_0xcec06d),this[_0x2d105f(0x1de)](_0xcec06d,void 0x0));}['clearFilters'](){const _0x41cb33=_0x973ad6;for(let _0x1a707d of Object[_0x41cb33(0x1ce)](this[_0x41cb33(0x282)]))(_0x1a707d['filterInfo']||_0x1a707d['conditionFilter'])&&this[_0x41cb33(0x1de)](_0x1a707d['id'],void 0x0);for(let _0x2438e7 of this[_0x41cb33(0x361)][_0x41cb33(0x41a)]())this[_0x41cb33(0x1be)](_0x2438e7[_0x41cb33(0xe9)],void 0x0);}[_0x973ad6(0x303)](_0x32d75d,_0x103fb1,_0x1fb660=!0x1){const _0x163d43=_0x973ad6;for(let _0x23cc73 of Object[_0x163d43(0x1ce)](this[_0x163d43(0x282)]))_0x23cc73[_0x163d43(0x2a7)]===_0x32d75d&&(_0x23cc73['id']!==_0x103fb1&&(_0x23cc73[_0x163d43(0x3e9)]||_0x23cc73[_0x163d43(0x1a1)])&&this[_0x163d43(0x1de)](_0x23cc73['id'],void 0x0),_0x1fb660&&_0x23cc73['id']===_0x103fb1||this[_0x163d43(0x1be)](_0x23cc73['id'],void 0x0));}[_0x973ad6(0x306)](_0x54e07f,_0x212b44,_0x3d2b5a){const _0x17d81c=_0x973ad6;for(let _0xdc059e of Object['values'](this['dimension'])){if(_0xdc059e['id']===_0x212b44||_0xdc059e[_0x17d81c(0x2a7)]!==_0x54e07f)continue;if(_0x3d2b5a===_0x17d81c(0x226)){this[_0x17d81c(0x313)](_0xdc059e['id'],void 0x0);continue;}if(!_0x18b6d7(_0xdc059e[_0x17d81c(0x2e8)]())['has'](_0x3d2b5a))continue;let _0x23d4cf=_0xdc059e['getFilterInfo'](),_0x1d337a=_0xdc059e[_0x17d81c(0x1a1)];_0x47ba55(_0x23d4cf)?(_0x23d4cf=_0x117c74(_0x23d4cf),_0x3d2b5a===_0x17d81c(0x2cf)?delete _0x23d4cf[_0x17d81c(0x39c)]:delete _0x23d4cf[_0x17d81c(0x3a6)],!_0x23d4cf[_0x17d81c(0x39c)]&&!_0x23d4cf[_0x17d81c(0x3a6)]&&(_0x23d4cf=void 0x0)):_0x23d4cf&&_0x23d4cf[_0x17d81c(0x37a)]===0x1==(_0x3d2b5a===_0x17d81c(0x25f))&&(_0x23d4cf=void 0x0),_0x3d2b5a===_0x17d81c(0x25f)&&(_0x1d337a=void 0x0),(_0x23d4cf!==_0xdc059e[_0x17d81c(0x3e9)]||_0x1d337a!==_0xdc059e[_0x17d81c(0x1a1)])&&this[_0x17d81c(0x1de)](_0xdc059e['id'],_0x23d4cf,_0x1d337a);}}['getValueFilterInfos'](){const _0x2d4165=_0x973ad6;return this[_0x2d4165(0x361)][_0x2d4165(0x3cb)](_0x1b5fe8);}[_0x973ad6(0x341)](_0x4db2ea){const _0x53b706=_0x973ad6;this[_0x53b706(0x361)][_0x53b706(0x2c0)](_0x24ba87=>_0x24ba87[_0x53b706(0xe9)]===_0x4db2ea)&&this[_0x53b706(0x1be)](_0x4db2ea,void 0x0);}[_0x973ad6(0x321)](_0x556ee4){const _0x28f917=_0x973ad6;let _0x3421a5=this[_0x28f917(0x361)]['filter'](_0x2128d6=>_0x2128d6['filterInfo'][_0x28f917(0x2f0)]===_0x556ee4);if(_0x3421a5&&_0x3421a5[_0x28f917(0x155)]>0x0){let _0xb33bc4=_0x3421a5['length'];for(let _0x4b87b6=_0xb33bc4-0x1;_0x4b87b6>=0x0;_0x4b87b6--)this[_0x28f917(0x1be)](_0x3421a5[_0x4b87b6][_0x28f917(0xe9)],void 0x0);}}[_0x973ad6(0x3f3)](_0x29b081){const _0x2e56b8=_0x973ad6;if(this[_0x2e56b8(0x282)][_0x29b081])return this[_0x2e56b8(0x282)][_0x29b081][_0x2e56b8(0x423)]();if(this[_0x2e56b8(0x365)][_0x29b081])return this[_0x2e56b8(0x365)][_0x29b081][_0x2e56b8(0x423)]();}[_0x973ad6(0x1db)](_0x5217be,_0x5bc10b){const _0x25b838=_0x973ad6;let _0x23e33f;if(this[_0x25b838(0x282)][_0x5217be]&&this[_0x25b838(0x282)][_0x5217be][_0x25b838(0x220)](_0x5bc10b),this[_0x25b838(0x365)][_0x5217be]&&this[_0x25b838(0x365)][_0x5217be][_0x25b838(0x220)](_0x5bc10b),this[_0x25b838(0x376)]&&(this['dimension'][_0x5217be]||this['measure'][_0x5217be])){let _0x3720d1={'type':0x9,'fieldId':_0x5217be,'oldFormat':_0x23e33f,'newFormat':_0x5bc10b};this[_0x25b838(0x376)][_0x25b838(0x1b4)](_0x3720d1);}}[_0x973ad6(0x2eb)](_0x2c65ce,_0x244116){const _0x50fde7=_0x973ad6;if(this['dimension'][_0x2c65ce]){let _0x5002a4=this['dimension'][_0x2c65ce],_0x4c567f=_0x5002a4['getSortInfo']();if(_0x5002a4['setSortInfo'](_0x244116),this[_0x50fde7(0x376)]){let _0x472c8c={'type':0x5,'fieldId':_0x2c65ce,'newSortInfo':_0x5002a4[_0x50fde7(0x138)](),'oldSortInfo':_0x4c567f};this['_changeStack'][_0x50fde7(0x1b4)](_0x472c8c);}}}['getSortInfo'](_0x91420){const _0x4733f6=_0x973ad6;if(this['dimension'][_0x91420])return this['dimension'][_0x91420][_0x4733f6(0x138)]();}['getFilterInfo'](_0x594edb){const _0x124719=_0x973ad6;if(this[_0x124719(0x282)][_0x594edb])return this[_0x124719(0x282)][_0x594edb][_0x124719(0x1ae)]();}[_0x973ad6(0x38c)](_0x173d94){const _0x38386d=_0x973ad6;Object[_0x38386d(0x1ce)](this[_0x38386d(0x282)])[_0x38386d(0x351)](_0xa0e152=>{_0x173d94(_0xa0e152);}),Object[_0x38386d(0x1ce)](this[_0x38386d(0x365)])[_0x38386d(0x351)](_0x4ef818=>{_0x173d94(_0x4ef818);});}[_0x973ad6(0x188)](_0x3b392b){const _0x2a3064=_0x973ad6;Object[_0x2a3064(0x1ce)](this[_0x2a3064(0x282)])['forEach'](_0xa79530=>{_0x3b392b(_0xa79530);});}[_0x973ad6(0x397)](_0x585ffc){const _0x20b481=_0x973ad6;Object['values'](this['measure'])[_0x20b481(0x351)](_0x44f624=>{_0x585ffc(_0x44f624);});}[_0x973ad6(0x3c8)](_0x1cd4c9,_0x13d005){const _0x344685=_0x973ad6;this[_0x344685(0x286)](_0x1cd4c9)[_0x344685(0x351)](_0xe6ec49=>{const _0xf8d6de=_0x344685;let _0x26b046=this[_0xf8d6de(0x31e)](_0xe6ec49);_0x26b046&&_0x13d005(_0x26b046);});}['addField'](_0x3ccf4e,_0x19533e,_0x16423c){const _0x158c1b=_0x973ad6;if(this[_0x158c1b(0x31e)](_0x3ccf4e[_0x158c1b(0x36a)]())){console[_0x158c1b(0x2d0)](_0x158c1b(0x289)+_0x3ccf4e['getId']()+_0x158c1b(0x277)+_0x3ccf4e['getDisplayName']()+_0x158c1b(0x3af));return;}_0x44c3b6(_0x19533e)?this['dimension'][_0x3ccf4e['id']]=_0x3ccf4e:this[_0x158c1b(0x365)][_0x3ccf4e['id']]=_0x3ccf4e;let _0x4170ad;switch(_0x19533e){case 0x1:_0x4170ad=this['columnFields'];break;case 0x2:_0x4170ad=this['rowFields'];break;case 0x3:_0x4170ad=this[_0x158c1b(0x14a)];break;case 0x4:_0x4170ad=this[_0x158c1b(0x1e0)];break;case 0x5:_0x4170ad=this['hiddenFields'];}_0x16423c===void 0x0?_0x4170ad[_0x158c1b(0x1b4)](_0x3ccf4e['id']):_0x4170ad[_0x158c1b(0x3d4)](_0x16423c,0x0,_0x3ccf4e['id']);let _0x57a4c5=_0x16423c===void 0x0?_0x4170ad['length']-0x1:_0x16423c;if(this[_0x158c1b(0x376)]){let _0x2e9b55={'type':0x0,'fieldJson':_0x3ccf4e[_0x158c1b(0x2e8)](),'area':_0x19533e,'index':_0x57a4c5};this['_changeStack'][_0x158c1b(0x1b4)](_0x2e9b55);}this['setDirty'](!0x0);}['getFieldPositionInfoById'](_0x2e3bee){const _0x1117cc=_0x973ad6;let _0x2975d6,_0x4c1fd7=-0x1;return this[_0x1117cc(0x2b8)][_0x1117cc(0x40f)](_0x2e3bee)===-0x1?this[_0x1117cc(0x167)]['indexOf'](_0x2e3bee)===-0x1?this['valueFields'][_0x1117cc(0x40f)](_0x2e3bee)===-0x1?this[_0x1117cc(0x1e0)]['indexOf'](_0x2e3bee)===-0x1?this[_0x1117cc(0x34e)][_0x1117cc(0x40f)](_0x2e3bee)!==-0x1&&(_0x2975d6=0x5,_0x4c1fd7=this['hiddenFields'][_0x1117cc(0x40f)](_0x2e3bee)):(_0x2975d6=0x4,_0x4c1fd7=this[_0x1117cc(0x1e0)][_0x1117cc(0x40f)](_0x2e3bee)):(_0x2975d6=0x3,_0x4c1fd7=this[_0x1117cc(0x14a)][_0x1117cc(0x40f)](_0x2e3bee)):(_0x2975d6=0x2,_0x4c1fd7=this['rowFields'][_0x1117cc(0x40f)](_0x2e3bee)):(_0x2975d6=0x1,_0x4c1fd7=this['columnFields']['indexOf'](_0x2e3bee)),{'area':_0x2975d6,'index':_0x4c1fd7};}[_0x973ad6(0x123)](_0x16ce18,_0x2720f1,_0x1a6a78){const _0x4228d1=_0x973ad6;let _0x3a5cb5=this[_0x4228d1(0x31e)](_0x16ce18);if(_0x3a5cb5){let _0x2dc965=_0x3a5cb5[_0x4228d1(0x117)](),_0x44f023=_0x3a5cb5['getDataFieldId']();if(_0x3a5cb5['setSourceName'](_0x2720f1),_0x3a5cb5[_0x4228d1(0x108)](_0x1a6a78),this[_0x4228d1(0x376)]){let _0x4f261a={'type':0xb,'tableFieldId':_0x16ce18,'oldSourceName':_0x2dc965,'newSourceName':_0x2720f1,'oldDataFieldId':_0x44f023,'newDataFieldId':_0x1a6a78};this[_0x4228d1(0x376)][_0x4228d1(0x1b4)](_0x4f261a);}this[_0x4228d1(0xd1)](!0x0);}}[_0x973ad6(0x286)](_0x4c85d0){const _0x3108e9=_0x973ad6;switch(_0x4c85d0){case 0x1:return this[_0x3108e9(0x2b8)];case 0x2:return this[_0x3108e9(0x167)];case 0x3:return this[_0x3108e9(0x14a)];case 0x4:return this[_0x3108e9(0x1e0)];case 0x5:return this['hiddenFields'];}}['getFieldById'](_0x48404a){const _0x244fdf=_0x973ad6;if(this[_0x244fdf(0x282)][_0x48404a])return this[_0x244fdf(0x282)][_0x48404a];if(this[_0x244fdf(0x365)][_0x48404a])return this[_0x244fdf(0x365)][_0x48404a];}[_0x973ad6(0x389)](_0x39ff4f){const _0x30ddb9=_0x973ad6;for(let _0x935217 of Object[_0x30ddb9(0x1ce)](this[_0x30ddb9(0x282)]))if(_0x935217[_0x30ddb9(0x17c)]()===_0x39ff4f)return!0x0;for(let _0x262e37 of Object['values'](this[_0x30ddb9(0x365)]))if(_0x262e37[_0x30ddb9(0x17c)]()===_0x39ff4f)return!0x0;return!0x1;}[_0x973ad6(0x3fc)](_0x3bb37e,_0x1130f0){const _0x2ebed0=_0x973ad6;let {area:_0x3d9431,index:_0x2e9d80}=this[_0x2ebed0(0x100)](_0x3bb37e);if(_0x3d9431===void 0x0||_0x2e9d80===-0x1){console[_0x2ebed0(0x2bc)](_0x2ebed0(0x289)+_0x3bb37e+_0x2ebed0(0x38e));return;}let _0x22ba1c=this['getFieldById'](_0x3bb37e);if(!_0x22ba1c){console[_0x2ebed0(0x2bc)](_0x2ebed0(0x289)+_0x3bb37e+_0x2ebed0(0x38e));return;}let _0x3d3164=_0x22ba1c[_0x2ebed0(0x17c)]();if(_0x3d3164!==_0x1130f0){if(this[_0x2ebed0(0x389)](_0x1130f0))console['warn'](_0x2ebed0(0x125)+_0x1130f0+'\x20is\x20exist\x20in\x20the\x20pivot\x20table.');else{if(_0x22ba1c['setDisplayName'](_0x1130f0),this[_0x2ebed0(0x376)]){let _0x3e62df={'type':0x3,'fieldId':_0x3bb37e,'newName':_0x1130f0,'oldName':_0x3d3164};this[_0x2ebed0(0x376)][_0x2ebed0(0x1b4)](_0x3e62df);}}}}['removeField'](_0x4ee468){const _0x493cad=_0x973ad6;let {area:_0xd0ba,index:_0x464939}=this['getFieldPositionInfoById'](_0x4ee468);if(_0xd0ba===void 0x0||_0x464939===-0x1){console[_0x493cad(0x2bc)](_0x493cad(0x289)+_0x4ee468+_0x493cad(0x38e));return;}_0xd0ba===0x3?this[_0x493cad(0x321)](_0x4ee468):_0x347249(_0xd0ba)&&this['removeValueFilterInfo'](_0x4ee468),this[_0x493cad(0x286)](_0xd0ba)[_0x493cad(0x3d4)](_0x464939,0x1);let _0x5ee142;if(_0x44c3b6(_0xd0ba)?(_0x5ee142=this[_0x493cad(0x282)][_0x4ee468]['toJSON'](),delete this[_0x493cad(0x282)][_0x4ee468]):(_0x5ee142=this[_0x493cad(0x365)][_0x4ee468][_0x493cad(0x2e8)](),delete this[_0x493cad(0x365)][_0x4ee468]),this[_0x493cad(0x376)]){let _0x17c493={'type':0x2,'fieldId':_0x4ee468,'fieldJson':_0x5ee142,'area':_0xd0ba,'index':_0x464939};this[_0x493cad(0x376)]['push'](_0x17c493);}this[_0x493cad(0xd1)](!0x0);}[_0x973ad6(0x262)](_0x4f9c4b,_0x2588bb,_0x6a9507){const _0x3182f2=_0x973ad6;let {area:_0x53500a,index:_0x829486}=this[_0x3182f2(0x100)](_0x4f9c4b);if(_0x53500a===_0x2588bb&&_0x829486===_0x6a9507)return;if(_0x53500a===void 0x0&&_0x829486===-0x1){console['warn'](_0x3182f2(0x289)+_0x4f9c4b+_0x3182f2(0x38e));return;}let _0x48b4dd=this['getFieldsAreaByType'](_0x2588bb);this['getFieldsAreaByType'](_0x53500a)[_0x3182f2(0x3d4)](_0x829486,0x1),_0x48b4dd[_0x3182f2(0x3d4)](_0x6a9507,0x0,_0x4f9c4b);let _0x2c4b84=_0x44c3b6(_0x53500a);if(_0x2c4b84!==_0x44c3b6(_0x2588bb)){if(_0x2c4b84){let _0x2ca068=this[_0x3182f2(0x282)][_0x4f9c4b];delete this['dimension'][_0x4f9c4b];let _0x1cc2c0=_0x549f73(_0x2ca068);this[_0x3182f2(0x365)][_0x4f9c4b]=_0x1cc2c0;}else{let _0x5e0611=this['measure'][_0x4f9c4b];delete this[_0x3182f2(0x365)][_0x4f9c4b];let _0x41f09f=_0x4ea35b(_0x5e0611);this['dimension'][_0x4f9c4b]=_0x41f09f;}}if(this[_0x3182f2(0x376)]){let _0x36d33e={'type':0x6,'fieldId':_0x4f9c4b,'oldArea':_0x53500a,'newArea':_0x2588bb,'oldIndex':_0x829486,'newIndex':_0x6a9507};this[_0x3182f2(0x376)][_0x3182f2(0x1b4)](_0x36d33e);}_0x347249(_0x53500a)&&_0x347249(_0x2588bb)||_0x53500a===0x3&&_0x2588bb===0x3||_0x53500a===0x5&&_0x2588bb===0x5||_0x53500a===0x4&&_0x2588bb===0x4||this[_0x3182f2(0xd1)](!0x0);}[_0x973ad6(0x35a)](_0x2c07e7,_0x57d72b){const _0xa3c77b=_0x973ad6;let _0x4c675b=this[_0xa3c77b(0x1ee)],_0x4f5651=this[_0xa3c77b(0x403)];if(this['valuePosition']=_0x2c07e7,this['valueIndex']=_0x57d72b,this['_changeStack']){let _0x12f378={'type':0x7,'oldValuePosition':_0x4c675b,'newValuePosition':_0x2c07e7,'oldIndex':_0x4f5651,'newIndex':_0x57d72b};this[_0xa3c77b(0x376)][_0xa3c77b(0x1b4)](_0x12f378);}}[_0x973ad6(0x1d9)](){const _0x64e323=_0x973ad6;return this[_0x64e323(0x403)];}[_0x973ad6(0x3f7)](){const _0x4da690=_0x973ad6;return this[_0x4da690(0x1ee)];}['isColMultiMeasure'](){const _0x1cf6e7=_0x973ad6;return this[_0x1cf6e7(0x14a)][_0x1cf6e7(0x155)]<=0x1?!0x1:this[_0x1cf6e7(0x1ee)]===0x1;}['isRowMultiMeasure'](){const _0x474949=_0x973ad6;return this['valueFields'][_0x474949(0x155)]<=0x1?!0x1:this[_0x474949(0x1ee)]===0x2;}[_0x973ad6(0x30a)](){const _0x5f3a9d=_0x973ad6;return[][_0x5f3a9d(0x383)](this[_0x5f3a9d(0x167)],this['columnFields'],this['valueFields'],this[_0x5f3a9d(0x1e0)])[_0x5f3a9d(0x155)]===0x0;}[_0x973ad6(0x33b)](_0x1e21de,_0x467a68){const _0x5414b2=_0x973ad6;if(this[_0x5414b2(0x365)][_0x1e21de]){let _0x48a5ad=this[_0x5414b2(0x365)][_0x1e21de][_0x5414b2(0x348)]();if(this[_0x5414b2(0x365)][_0x1e21de][_0x5414b2(0x3ad)](_0x467a68),this[_0x5414b2(0x376)]){let _0x2af335={'type':0x1,'fieldId':_0x1e21de,'newSubtotalType':_0x467a68,'oldSubtotalType':_0x48a5ad};this[_0x5414b2(0x376)][_0x5414b2(0x1b4)](_0x2af335);}this[_0x5414b2(0xd1)](!0x0);}}[_0x973ad6(0x33a)](_0x5d039a){const _0x3e649d=_0x973ad6;var _0x12e1b8;return(_0x12e1b8=this[_0x3e649d(0x365)][_0x5d039a])==null?void 0x0:_0x12e1b8[_0x3e649d(0x33a)]();}[_0x973ad6(0x279)](_0x53c110,_0x4220d1){const _0x4c7d78=_0x973ad6;let _0x2df608=this['measure'][_0x53c110];if(!_0x2df608)return;let _0xeeedca=_0x2df608[_0x4c7d78(0x33a)]();if(_0x2df608['setShowDataAs'](_0x4220d1),this[_0x4c7d78(0x376)]){let _0x259d70={'type':0xe,'fieldId':_0x53c110,'oldShowDataAs':_0xeeedca,'newShowDataAs':_0x2df608[_0x4c7d78(0x33a)]()};this['_changeStack']['push'](_0x259d70);}}[_0x973ad6(0x14f)](){const _0x5dcdbd=_0x973ad6;let _0x563e08=this[_0x5dcdbd(0x282)],_0x9fefa8=[];for(let _0x4d4189 of this[_0x5dcdbd(0x167)])_0x563e08[_0x4d4189]&&_0x9fefa8[_0x5dcdbd(0x1b4)](_0x563e08[_0x4d4189][_0x5dcdbd(0x14f)]());let _0x2088fb=[];for(let _0x2403c6 of this[_0x5dcdbd(0x2b8)])_0x563e08[_0x2403c6]&&_0x2088fb['push'](_0x563e08[_0x2403c6][_0x5dcdbd(0x14f)]());let _0x55003d=[];for(let _0x4886c5 of this['filterFields'])_0x563e08[_0x4886c5]&&_0x55003d[_0x5dcdbd(0x1b4)](_0x563e08[_0x4886c5][_0x5dcdbd(0x14f)]());let _0x140928=[];for(let _0x20c6ce of this[_0x5dcdbd(0x34e)])_0x563e08[_0x20c6ce]&&_0x140928[_0x5dcdbd(0x1b4)](_0x563e08[_0x20c6ce][_0x5dcdbd(0x14f)]());let _0x1ab639=[];for(let _0x23d569 of this[_0x5dcdbd(0x14a)])this[_0x5dcdbd(0x365)][_0x23d569]&&_0x1ab639[_0x5dcdbd(0x1b4)](this['measure'][_0x23d569][_0x5dcdbd(0x14f)]());let _0x3e0911=[];for(let _0x4105d5 of this[_0x5dcdbd(0x361)]){let {fieldId:_0x117575,filterInfo:_0x5e9727}=_0x4105d5;_0x563e08[_0x117575]&&this[_0x5dcdbd(0x365)][_0x5e9727[_0x5dcdbd(0x2f0)]]&&_0x3e0911[_0x5dcdbd(0x1b4)](_0x1b5fe8(_0x4105d5));}return{'rowQueryInfo':_0x9fefa8,'colQueryInfo':_0x2088fb,'filterQueryInfo':_0x55003d,'hiddenQueryInfo':_0x140928,'valueQueryInfo':_0x1ab639,'collapseInfo':{...this['collapseInfo']},'valueFilterInfo':_0x3e0911};}[_0x973ad6(0x2f8)](_0x38a958){const _0x33dda8=_0x973ad6;_0x38a958===void 0x0?(this[_0x33dda8(0x167)]=[],this['columnFields']=[],this['valueFields']=[],this[_0x33dda8(0x1e0)]=[],this[_0x33dda8(0x34e)]=[],this[_0x33dda8(0x282)]=Object[_0x33dda8(0x37c)](null),this[_0x33dda8(0x365)]=Object['create'](null),this[_0x33dda8(0x403)]=-0x1,this[_0x33dda8(0x1ee)]=-0x1,this[_0x33dda8(0x369)]=Object[_0x33dda8(0x37c)](null),this[_0x33dda8(0x1d5)]={}):_0x38a958===0x1?(this[_0x33dda8(0x2b8)][_0x33dda8(0x351)](_0x5ebd54=>{const _0x59fd20=_0x33dda8;delete this[_0x59fd20(0x282)][_0x5ebd54];}),this[_0x33dda8(0x2b8)]=[]):_0x38a958===0x2?(this['rowFields'][_0x33dda8(0x351)](_0x1e006b=>{const _0x25a778=_0x33dda8;delete this[_0x25a778(0x282)][_0x1e006b];}),this[_0x33dda8(0x167)]=[]):_0x38a958===0x4?(this[_0x33dda8(0x1e0)][_0x33dda8(0x351)](_0x2074ed=>{const _0x1642e4=_0x33dda8;delete this[_0x1642e4(0x282)][_0x2074ed];}),this['filterFields']=[]):_0x38a958===0x3&&(this[_0x33dda8(0x14a)][_0x33dda8(0x351)](_0xa42167=>{const _0x159c30=_0x33dda8;delete this[_0x159c30(0x365)][_0xa42167];}),this[_0x33dda8(0x403)]=-0x1,this[_0x33dda8(0x1ee)]=-0x1,this['valueFields']=[]);}[_0x973ad6(0x12f)](_0x1b8a54){const _0x58b67a=_0x973ad6;this[_0x58b67a(0x282)]=Object[_0x58b67a(0x254)](_0x1b8a54['dimension'])[_0x58b67a(0x2e4)]((_0x35e7cc,_0x2364cd)=>{const _0x95b16d=_0x58b67a;let _0x3a806e=_0x1b8a54[_0x95b16d(0x282)][_0x2364cd],_0x58631c=new _0xd515e0(_0x3a806e['dataFieldId'],_0x3a806e['id'],_0x3a806e[_0x95b16d(0x27c)],_0x3a806e[_0x95b16d(0x165)]);return _0x58631c[_0x95b16d(0x12f)](_0x3a806e),_0x35e7cc[_0x2364cd]=_0x58631c,_0x35e7cc;},Object[_0x58b67a(0x37c)](null)),this['measure']=Object[_0x58b67a(0x254)](_0x1b8a54[_0x58b67a(0x365)])['reduce']((_0x52a7e0,_0x225b18)=>{const _0x46ac9c=_0x58b67a;let _0x5bb9a7=_0x1b8a54['measure'][_0x225b18],_0x4a4d1b=new _0x3ea467(_0x5bb9a7[_0x46ac9c(0x2a7)],_0x5bb9a7['id'],_0x5bb9a7[_0x46ac9c(0x27c)],_0x5bb9a7[_0x46ac9c(0x165)]);return _0x4a4d1b[_0x46ac9c(0x12f)](_0x1b8a54[_0x46ac9c(0x365)][_0x225b18]),_0x52a7e0[_0x225b18]=_0x4a4d1b,_0x52a7e0;},Object[_0x58b67a(0x37c)](null)),this['filterFields']=_0x1b8a54['filterFields'][_0x58b67a(0x383)](),this['hiddenFields']=_0x1b8a54[_0x58b67a(0x34e)][_0x58b67a(0x383)](),this[_0x58b67a(0x167)]=_0x1b8a54['rowFields'][_0x58b67a(0x383)](),this['valueFields']=_0x1b8a54['valueFields'][_0x58b67a(0x383)](),this[_0x58b67a(0x2b8)]=_0x1b8a54[_0x58b67a(0x2b8)][_0x58b67a(0x383)](),this['layout']=_0x1b8a54[_0x58b67a(0x378)]??0x3,this[_0x58b67a(0x403)]=_0x1b8a54[_0x58b67a(0x403)],this[_0x58b67a(0x1ee)]=_0x1b8a54[_0x58b67a(0x1ee)],this[_0x58b67a(0x369)]=Object[_0x58b67a(0xc9)](Object[_0x58b67a(0x37c)](null),_0x1b8a54[_0x58b67a(0x369)]),this['options']={..._0x1b8a54[_0x58b67a(0x1d5)]},this['_valueFilterInfo']=_0x1b8a54['valueFilter']?_0x1b8a54[_0x58b67a(0x350)]['map'](_0x1b5fe8):[];}[_0x973ad6(0x2e8)](){const _0x4201d8=_0x973ad6;let _0x241ce3=Object['keys'](this[_0x4201d8(0x282)])[_0x4201d8(0x2e4)]((_0x53eb5e,_0x39daae)=>(_0x53eb5e[_0x39daae]=this['dimension'][_0x39daae][_0x4201d8(0x2e8)](),_0x53eb5e),Object[_0x4201d8(0x37c)](null)),_0x95bbfa=Object[_0x4201d8(0x254)](this[_0x4201d8(0x365)])[_0x4201d8(0x2e4)]((_0x5c8787,_0x595450)=>(_0x5c8787[_0x595450]=this[_0x4201d8(0x365)][_0x595450][_0x4201d8(0x2e8)](),_0x5c8787),Object[_0x4201d8(0x37c)](null)),_0x5e737b=this[_0x4201d8(0x361)][_0x4201d8(0x3cb)](_0x1b5fe8);return{'columnFields':this[_0x4201d8(0x2b8)][_0x4201d8(0x383)](),'dimension':_0x241ce3,'measure':_0x95bbfa,'filterFields':this[_0x4201d8(0x1e0)][_0x4201d8(0x383)](),'hiddenFields':this[_0x4201d8(0x34e)][_0x4201d8(0x383)](),'rowFields':this['rowFields'][_0x4201d8(0x383)](),'valueFields':this[_0x4201d8(0x14a)][_0x4201d8(0x383)](),'layout':this[_0x4201d8(0x378)],'valueIndex':this[_0x4201d8(0x403)],'valuePosition':this['valuePosition'],'collapseInfo':{...this['collapseInfo']},'options':{...this['options']},'valueFilter':_0x5e737b};}[_0x973ad6(0x197)](){const _0x10cbe6=_0x973ad6;let _0x149025=new _0x4c1a00();return _0x149025[_0x10cbe6(0x12f)](this['toJSON']()),_0x149025[_0x10cbe6(0xd1)](this[_0x10cbe6(0x271)]()),_0x149025;}};function _0x15b810(_0x353561){const _0x166c14=_0x973ad6;if(_0x353561)return{..._0x353561,'expected':Array[_0x166c14(0x454)](_0x353561[_0x166c14(0x3ba)])?_0x353561[_0x166c14(0x3ba)][_0x166c14(0x383)]():_0x353561[_0x166c14(0x3ba)]};}function _0x1b5fe8(_0x203158){const _0x3cee7e=_0x973ad6;return{'fieldId':_0x203158[_0x3cee7e(0xe9)],'filterInfo':_0x15b810(_0x203158[_0x3cee7e(0x3e9)])};}var _0x48aada=class _0x81847c{static[_0x973ad6(0x3b4)](_0x560be1,_0x27ce22){const _0x4f8b1c=_0x973ad6;var _0x11ffaf;this[_0x4f8b1c(0x3c6)][_0x560be1]||(this['_callbacks'][_0x560be1]=[]),(_0x11ffaf=this['_callbacks'][_0x560be1])==null||_0x11ffaf[_0x4f8b1c(0x1b4)](_0x27ce22);}static['unRegisterCallbackWithEvent'](_0x2b61df,_0x520769){const _0x2346d7=_0x973ad6;let _0x5b8214=this[_0x2346d7(0x3c6)][_0x2b61df];if(_0x5b8214){let _0x4ea9b1=_0x5b8214['indexOf'](_0x520769);_0x4ea9b1!==-0x1&&_0x5b8214[_0x2346d7(0x3d4)](_0x4ea9b1,0x1),_0x5b8214[_0x2346d7(0x155)]===0x0&&delete this[_0x2346d7(0x3c6)][_0x2b61df];}}constructor(_0x2704f4,_0x264cf9,_0x324859){const _0x1cfa7c=_0x973ad6;_0x5dd0e0(this,_0x1cfa7c(0x338),void 0x0),_0x5dd0e0(this,_0x1cfa7c(0x235),void 0x0),_0x5dd0e0(this,_0x1cfa7c(0x35d),void 0x0),_0x5dd0e0(this,_0x1cfa7c(0x1f1),void 0x0),_0x5dd0e0(this,_0x1cfa7c(0x129),void 0x0),_0x5dd0e0(this,'_summaryCacheState',_0x1cfa7c(0x2ca)),_0x5dd0e0(this,_0x1cfa7c(0x400),void 0x0),_0x5dd0e0(this,_0x1cfa7c(0x360),void 0x0),this[_0x1cfa7c(0x338)]=_0x2704f4,_0x264cf9?this[_0x1cfa7c(0x235)]=_0x264cf9:this[_0x1cfa7c(0x428)](),_0x324859&&(this[_0x1cfa7c(0x360)]=_0x324859);}['updateDataFieldsCollection'](_0x5e0bbb){const _0x1289d8=_0x973ad6;this[_0x1289d8(0x338)]=_0x5e0bbb;}[_0x973ad6(0x1fe)](_0x3ab5d7,_0x35e031){const _0x3cad91=_0x973ad6;let _0x366acb=this[_0x3cad91(0x20a)]()['getQueryData']();for(let _0x565c2f of[..._0x366acb[_0x3cad91(0x28c)],..._0x366acb[_0x3cad91(0x325)],..._0x366acb[_0x3cad91(0x3d3)],..._0x366acb[_0x3cad91(0xf2)]??[]])_0x565c2f['dataFieldId']===_0x3ab5d7&&(_0x35e031===_0x3cad91(0x3a6)&&(_0x565c2f[_0x3cad91(0x1a1)]=void 0x0),_0x565c2f[_0x3cad91(0x3e9)]&&(_0x47ba55(_0x565c2f[_0x3cad91(0x3e9)])?delete _0x565c2f[_0x3cad91(0x3e9)][_0x35e031]:_0x565c2f[_0x3cad91(0x3e9)][_0x3cad91(0x37a)]===0x1==(_0x35e031===_0x3cad91(0x3a6))&&(_0x565c2f['filterInfo']=void 0x0)));let _0x3571d7=new _0x34e6bd();return _0x3571d7[_0x3cad91(0x377)](this[_0x3cad91(0x338)],_0x366acb),_0x3571d7[_0x3cad91(0x1b6)](_0x366acb);}[_0x973ad6(0x20a)](){const _0x3567a4=_0x973ad6;return this[_0x3567a4(0x35d)]?this[_0x3567a4(0x35d)]:this['_model'];}[_0x973ad6(0x164)](){const _0x53c768=_0x973ad6;this[_0x53c768(0x35d)]=this[_0x53c768(0x235)][_0x53c768(0x197)](),this[_0x53c768(0x35d)]['startChangeStack']();}[_0x973ad6(0x1ad)](){const _0x4e60e2=_0x973ad6;let _0x120e21=this[_0x4e60e2(0x35d)],_0x8a2afb=_0x120e21['endChangeStack']();return _0x120e21['getDirty']()&&this[_0x4e60e2(0x235)][_0x4e60e2(0xd1)](!0x0),this[_0x4e60e2(0x2e1)](),_0x8a2afb;}[_0x973ad6(0x2e1)](){const _0x25fecb=_0x973ad6;this[_0x25fecb(0x1f1)]=void 0x0,this['_summaryManagerCache']=void 0x0,this[_0x25fecb(0x2e3)]=_0x25fecb(0x2ca),this[_0x25fecb(0x35d)]=void 0x0;}[_0x973ad6(0x428)](){const _0x15f58d=_0x973ad6;this[_0x15f58d(0x235)]=new _0x4a6faa();}[_0x973ad6(0xdf)](_0x3899da,_0x32324f,_0x1b6d12){const _0x8ee8e3=_0x973ad6;let _0x2314c2=this[_0x8ee8e3(0x338)][_0x8ee8e3(0x31e)](_0x3899da);if(_0x2314c2){let _0x2901f5=_0x1b6d12||this[_0x8ee8e3(0xac)]();return _0x7cc867[_0x8ee8e3(0x227)]&&(_0x2901f5=_0x32324f+'-'+_0x2901f5),new _0xd515e0(_0x2314c2[_0x8ee8e3(0x36a)](),_0x2901f5,_0x32324f||this[_0x8ee8e3(0x338)]['getDisplayName'](_0x3899da),_0x2314c2[_0x8ee8e3(0x25a)]);}}[_0x973ad6(0x34a)](_0x3a623e,_0x34181d){const _0x3ec29f=_0x973ad6;let _0x5cf195=this[_0x3ec29f(0x338)][_0x3ec29f(0x31e)](_0x3a623e);if(_0x5cf195){let _0x28891e=_0x5cf195['getFieldDataType']()===0x2?0x9:0x2,_0x2db206=(this['dataFieldsCollection'][_0x3ec29f(0x3b3)][_0x3ec29f(0x1e4)]()||_0x47005a)(this[_0x3ec29f(0x338)][_0x3ec29f(0x17c)](_0x3a623e),_0x28891e),_0x4bc3af=_0x34181d||this[_0x3ec29f(0xac)]();_0x7cc867[_0x3ec29f(0x227)]&&(_0x4bc3af=_0x2db206+'-'+_0x4bc3af);let _0x1b163a=new _0x3ea467(_0x5cf195['getId'](),_0x4bc3af,this[_0x3ec29f(0x160)](_0x2db206),_0x5cf195[_0x3ec29f(0x25a)]);return _0x1b163a[_0x3ec29f(0x3ad)](_0x28891e),_0x1b163a;}}[_0x973ad6(0x35a)](_0xb4d5dd,_0x21ff06){const _0xc0e3b1=_0x973ad6;this[_0xc0e3b1(0x20a)]()[_0xc0e3b1(0x35a)](_0xb4d5dd,_0x21ff06);}[_0x973ad6(0x20e)](){const _0x470499=_0x973ad6;return this['_getModel']()[_0x470499(0x20e)]();}['isRowMultiMeasure'](){const _0x3a6010=_0x973ad6;return this[_0x3a6010(0x20a)]()[_0x3a6010(0x3d0)]();}[_0x973ad6(0x1d9)](){const _0x22a400=_0x973ad6;return this[_0x22a400(0x20a)]()[_0x22a400(0x1d9)]();}[_0x973ad6(0x3f7)](){const _0x395b7c=_0x973ad6;return this[_0x395b7c(0x20a)]()[_0x395b7c(0x3f7)]();}[_0x973ad6(0x38c)](_0x2852bb){const _0x555606=_0x973ad6;this[_0x555606(0x20a)]()[_0x555606(0x38c)](_0x2852bb);}[_0x973ad6(0x188)](_0x28b707){const _0x227d0f=_0x973ad6;this[_0x227d0f(0x20a)]()[_0x227d0f(0x188)](_0x28b707);}[_0x973ad6(0x3c8)](_0x354bb9,_0xab99cd){const _0x52c7d3=_0x973ad6;this['_getModel']()[_0x52c7d3(0x3c8)](_0x354bb9,_0xab99cd);}[_0x973ad6(0x2b5)](_0x66f10f){const _0x30497a=_0x973ad6;return this['_getModel']()[_0x30497a(0x286)](_0x66f10f)[_0x30497a(0x155)];}[_0x973ad6(0x425)](){const _0x45636b=_0x973ad6;return this[_0x45636b(0x20a)]()[_0x45636b(0x14a)];}[_0x973ad6(0x160)](_0xdd9706){const _0x4b556d=_0x973ad6;let _0x3a6a26=this[_0x4b556d(0x20a)]();if(!_0x3a6a26[_0x4b556d(0x389)](_0xdd9706))return _0xdd9706;let _0x528dea=0x1;for(;_0x3a6a26[_0x4b556d(0x389)](_0xdd9706+String(_0x528dea));)_0x528dea++;return _0xdd9706+String(_0x528dea);}[_0x973ad6(0xd6)](_0x306cdb){const _0x1fb0ce=_0x973ad6;var _0x498e23;let _0x5b6bbb=(_0x498e23=this[_0x1fb0ce(0x20a)]()['getFieldById'](_0x306cdb))==null?void 0x0:_0x498e23[_0x1fb0ce(0x2a7)];if(_0x5b6bbb)return this['dataFieldsCollection']['getFieldById'](_0x5b6bbb);}[_0x973ad6(0x40d)](_0x2d77e1){const _0x1c1c32=_0x973ad6;let _0x958f08=[];return this[_0x1c1c32(0x38c)](_0x52bf30=>{const _0x416001=_0x1c1c32;_0x52bf30[_0x416001(0x1b3)]()===_0x2d77e1&&_0x958f08[_0x416001(0x1b4)](_0x52bf30);}),_0x958f08;}[_0x973ad6(0x3ff)](_0x550928){const _0x4d8ede=_0x973ad6;return this['_getModel']()[_0x4d8ede(0x31e)](_0x550928);}['isExistField'](_0x2d6988){const _0x32f5d7=_0x973ad6;return!!this['_getModel']()[_0x32f5d7(0x31e)](_0x2d6988);}[_0x973ad6(0x30a)](){const _0x320913=_0x973ad6;return this[_0x320913(0x20a)]()[_0x320913(0x30a)]();}['getDataFieldByDataFieldId'](_0x3424e7){const _0x1c7a33=_0x973ad6;return this[_0x1c7a33(0x338)][_0x1c7a33(0x31e)](_0x3424e7);}[_0x973ad6(0x144)](_0x45a3d9){const _0x3607=_0x973ad6;return this[_0x3607(0x338)][_0x3607(0x267)](_0x45a3d9);}[_0x973ad6(0x203)](){const _0x284db7=_0x973ad6;return this[_0x284db7(0x338)][_0x284db7(0x203)]();}[_0x973ad6(0x152)](_0x3f4e18){const _0x504b8f=_0x973ad6;return{'items':_0x3f4e18[_0x504b8f(0x1ca)],'itemTypes':_0x3f4e18[_0x504b8f(0x1b8)]};}[_0x973ad6(0xac)](){const _0x4307ad=_0x973ad6;let _0x325fcc=Object[_0x4307ad(0x254)](this['_getModel']()[_0x4307ad(0x282)])[_0x4307ad(0x155)]+Object['keys'](this[_0x4307ad(0x20a)]()[_0x4307ad(0x365)])[_0x4307ad(0x155)],_0x4c2c10=Math[_0x4307ad(0x18f)](Math[_0x4307ad(0xab)](Math[_0x4307ad(0x334)](_0x325fcc)/0x4),0x2),_0x31e4b7=_0x50c5c5(_0x4c2c10);for(;this[_0x4307ad(0x20a)]()[_0x4307ad(0x31e)](_0x31e4b7);)_0x31e4b7=_0x50c5c5(_0x4c2c10);return _0x31e4b7;}[_0x973ad6(0x32f)](_0x3909a8,_0x211577,_0x407d9b,_0x34f5e7){const _0xdf88ad=_0x973ad6;let _0x144489;if(_0x144489=_0x44c3b6(_0x211577)?this[_0xdf88ad(0xdf)](_0x3909a8,void 0x0,_0x34f5e7):this['createValueFieldByDataFieldId'](_0x3909a8,_0x34f5e7),_0x144489)return this[_0xdf88ad(0x1c8)](_0x144489,_0x211577,_0x407d9b),_0x144489;}[_0x973ad6(0x3f5)](_0x3bff01,_0x18ec05=!0x1){const _0x10336e=_0x973ad6;this[_0x10336e(0x20a)]()['setOptions'](_0x3bff01,_0x18ec05);}[_0x973ad6(0x3a9)](_0x10c015){const _0x5f0338=_0x973ad6;this[_0x5f0338(0x20a)]()['setLayout'](_0x10c015);}[_0x973ad6(0xf9)](){const _0x2a6a58=_0x973ad6;return this['_getModel']()[_0x2a6a58(0xf9)]();}[_0x973ad6(0x123)](_0x411ebd,_0x367733,_0x13a2f3){const _0x14de25=_0x973ad6;this[_0x14de25(0x20a)]()[_0x14de25(0x123)](_0x411ebd,_0x367733,_0x13a2f3);}[_0x973ad6(0x33b)](_0x24f4e0,_0x1a0f21){const _0x4a2ce6=_0x973ad6;this[_0x4a2ce6(0x20a)]()[_0x4a2ce6(0x33b)](_0x24f4e0,_0x1a0f21);}[_0x973ad6(0x33a)](_0x5273a8){const _0x4a5dc1=_0x973ad6;return this['_getModel']()[_0x4a5dc1(0x33a)](_0x5273a8);}[_0x973ad6(0x279)](_0x54db91,_0x5c43b4){const _0x570dfb=_0x973ad6;this['_getModel']()[_0x570dfb(0x279)](_0x54db91,_0x5c43b4);}['renameField'](_0x550fd7,_0x283ae5){const _0x21760c=_0x973ad6;this[_0x21760c(0x20a)]()['renameField'](_0x550fd7,_0x283ae5);}[_0x973ad6(0x336)](_0x1ab094,_0x38b84a,_0x4a29ec){const _0x422bcc=_0x973ad6;this[_0x422bcc(0x20a)]()[_0x422bcc(0x336)](_0x1ab094,_0x38b84a,_0x4a29ec);}[_0x973ad6(0x269)](_0x5c12fc){const _0xdc9e17=_0x973ad6;return this[_0xdc9e17(0x20a)]()[_0xdc9e17(0x269)](_0x5c12fc);}[_0x973ad6(0xdc)](_0x56d47f){const _0x11a2c5=_0x973ad6;this[_0x11a2c5(0x20a)]()[_0x11a2c5(0xdc)](_0x56d47f);}[_0x973ad6(0x1de)](_0x30f4e2,_0x50afb5,_0x208223){const _0x1b6397=_0x973ad6;this['_getModel']()[_0x1b6397(0x1de)](_0x30f4e2,_0x50afb5,_0x208223);}['setDateFilterInfo'](_0x32efd3,_0xa2e67b){const _0xa074dc=_0x973ad6;let _0xba4c01=this[_0xa074dc(0x1ae)](_0x32efd3);if(!this[_0xa074dc(0x20a)]()[_0xa074dc(0x282)][_0x32efd3])return!0x1;if(_0xa2e67b===void 0x0)return!_0x494aed(this['getConditionFilterInfo'](_0x32efd3))&&!(_0x47ba55(_0xba4c01)&&_0xba4c01['dateRange'])?!0x1:(this[_0xa074dc(0x336)](_0x32efd3,void 0x0,'condition'),!0x0);_0x8788d8(_0xa2e67b);let _0x1705a7=this[_0xa074dc(0xd6)](_0x32efd3);return!_0x1705a7||_0x1705a7[_0xa074dc(0x42c)]()!==0x4?!0x1:(this[_0xa074dc(0x336)](_0x32efd3,_0xa2e67b,_0xa074dc(0x25f)),!0x0);}[_0x973ad6(0x2eb)](_0x271911,_0x31a86b){const _0x23620a=_0x973ad6;this['_getModel']()[_0x23620a(0x2eb)](_0x271911,_0x31a86b),this[_0x23620a(0x2e3)]===_0x23620a(0x27f)&&(this[_0x23620a(0x2e3)]=_0x23620a(0x345));}[_0x973ad6(0x248)](_0xd9be17){const _0xca61d8=_0x973ad6;this[_0xca61d8(0x400)]!==_0xd9be17&&(this['_defaultSortLocale']=_0xd9be17,this['_summaryCacheState']===_0xca61d8(0x27f)&&(this[_0xca61d8(0x2e3)]='sort'));}['getSortInfo'](_0x21d157){const _0xeef6d0=_0x973ad6;return this[_0xeef6d0(0x20a)]()[_0xeef6d0(0x138)](_0x21d157);}[_0x973ad6(0x1ae)](_0x4645be){const _0x30bd7b=_0x973ad6;return this[_0x30bd7b(0x20a)]()['getFilterInfo'](_0x4645be);}[_0x973ad6(0x21e)](_0x4ae134){const _0x3d72df=_0x973ad6;return this[_0x3d72df(0x20a)]()[_0x3d72df(0x1e0)][_0x4ae134];}[_0x973ad6(0x262)](_0x586a9e,_0x457cd6,_0xa086cb){const _0x3fb50d=_0x973ad6;let {area:_0x21198d}=this['_getModel']()['getFieldPositionInfoById'](_0x586a9e);this[_0x3fb50d(0x20a)]()['updateFieldPosition'](_0x586a9e,_0x457cd6,_0xa086cb),_0x21198d!==0x2&&_0x21198d!==0x1||_0x457cd6!==0x2&&_0x457cd6!==0x1||(this[_0x3fb50d(0x2e3)]=_0x3fb50d(0x2ca));}[_0x973ad6(0x3f3)](_0x239e19){const _0x91fa31=_0x973ad6;return this[_0x91fa31(0x20a)]()[_0x91fa31(0x3f3)](_0x239e19);}[_0x973ad6(0x1db)](_0x374306,_0x2ed9ee){const _0xe921d8=_0x973ad6;this[_0xe921d8(0x20a)]()[_0xe921d8(0x1db)](_0x374306,_0x2ed9ee);}['addField'](_0x481a26,_0x42f1be,_0x483582){const _0x34a01e=_0x973ad6;this[_0x34a01e(0x20a)]()['addField'](_0x481a26,_0x42f1be,_0x483582);}[_0x973ad6(0x15d)](_0x4c8789){const _0xd533cd=_0x973ad6;this[_0xd533cd(0x20a)]()[_0xd533cd(0x15d)](_0x4c8789);}[_0x973ad6(0x179)](){const _0x55c129=_0x973ad6;return this[_0x55c129(0x20a)]()[_0x55c129(0x179)]();}[_0x973ad6(0x1ed)](_0x4d8023,_0x441946,_0x22cf53){const _0x87d9c3=_0x973ad6;var _0x4fa0b7;let _0x381fc0=this['_getModel'](),_0x18c9b0=_0x22cf53!==void 0x0&&_0x381fc0[_0x87d9c3(0x369)][_0x4d8023]===!0x0?(_0x4fa0b7=this[_0x87d9c3(0xd6)](_0x4d8023))==null?void 0x0:_0x4fa0b7[_0x87d9c3(0x1ca)]:void 0x0;_0x381fc0['setCollapse'](_0x4d8023,_0x441946,_0x22cf53,_0x18c9b0),this[_0x87d9c3(0x2e3)]=_0x87d9c3(0x2ca);}[_0x973ad6(0x429)](_0x4d9e7a){const _0x1a31c0=_0x973ad6;let {rowFields:_0xcd1da1}=this[_0x1a31c0(0x20a)](),_0x7f8be=_0xcd1da1[_0x1a31c0(0x40f)](_0x4d9e7a);if(_0x7f8be<0x0)return!0x1;for(let _0x5c493f=0x0;_0x5c493f<_0xcd1da1['length']-0x1;_0x5c493f++)this['setCollapse'](_0xcd1da1[_0x5c493f],_0x5c493f>=_0x7f8be);return!0x0;}[_0x973ad6(0x100)](_0x530642){const _0x100016=_0x973ad6;return this['_getModel']()[_0x100016(0x100)](_0x530642);}[_0x973ad6(0x1a5)](_0x44ae16){const _0x51ff1b=_0x973ad6;return(!this['_tupleGroupCache']||this[_0x51ff1b(0x20a)]()[_0x51ff1b(0x271)]())&&(this[_0x51ff1b(0x1f1)]=new _0x34e6bd(),this[_0x51ff1b(0x1f1)]['query'](this[_0x51ff1b(0x338)],_0x44ae16),this[_0x51ff1b(0x129)]=void 0x0,this[_0x51ff1b(0x2e3)]='invalid'),this[_0x51ff1b(0x1f1)];}[_0x973ad6(0x232)](){const _0x1e5446=_0x973ad6;let _0x4bd981={};return this[_0x1e5446(0x20a)]()[_0x1e5446(0x188)](_0x188345=>{const _0xb60905=_0x1e5446;let _0x164f2b=_0x188345[_0xb60905(0x2a7)],_0xd6e4e5=this[_0xb60905(0x338)]['getFieldById'](_0x164f2b);if(_0x385e0d(_0xd6e4e5)){let _0xc366ec=_0xd6e4e5[_0xb60905(0x394)]();_0xc366ec&&(_0x4bd981[_0x188345[_0xb60905(0x36a)]()]=_0xc366ec);}}),_0x4bd981;}[_0x973ad6(0x1be)](_0x3ffea2,_0x51085e,_0x80dff7){const _0x59c769=_0x973ad6;this[_0x59c769(0x20a)]()[_0x59c769(0x1be)](_0x3ffea2,_0x51085e,_0x80dff7),this[_0x59c769(0x2e3)]='invalid';}[_0x973ad6(0x313)](_0x4a32b1,_0x166939,_0x56c0cb){const _0x374d64=_0x973ad6;this[_0x374d64(0x20a)]()[_0x374d64(0x313)](_0x4a32b1,_0x166939,_0x56c0cb),this['_summaryCacheState']=_0x374d64(0x2ca);}['getValueFilterInfos'](){const _0x593de8=_0x973ad6;return this[_0x593de8(0x20a)]()['getValueFilterInfos']();}[_0x973ad6(0x275)](_0x5cf66d){const _0x492730=_0x973ad6;return this[_0x492730(0x20a)]()[_0x492730(0x275)](_0x5cf66d);}[_0x973ad6(0x341)](_0x45ae8c){const _0x1c0b4c=_0x973ad6;this[_0x1c0b4c(0x20a)]()[_0x1c0b4c(0x341)](_0x45ae8c),this[_0x1c0b4c(0x2e3)]=_0x1c0b4c(0x2ca);}['removeValueFilterInfoByValueFieldId'](_0x12985e){const _0x15ef8e=_0x973ad6;this['_getModel']()[_0x15ef8e(0x321)](_0x12985e),this[_0x15ef8e(0x2e3)]=_0x15ef8e(0x2ca);}[_0x973ad6(0x2b2)](_0x1a7371){const _0x313f4e=_0x973ad6;let _0x139458=this['_getTupleCache'](this[_0x313f4e(0x20a)]()[_0x313f4e(0x14f)]()),_0x1c3e4a=new Map();for(let [_0x35dc96,_0x36f7d5]of _0x139458[_0x313f4e(0x25c)][_0x313f4e(0xfb)]())_0x1c3e4a[_0x313f4e(0xf5)](_0x36f7d5,_0x35dc96);return _0x139458[_0x313f4e(0x12a)][_0x313f4e(0x2e4)]((_0x4ae5eb,_0x1921da)=>(_0x1a7371[_0x313f4e(0x1f0)](_0x57a640=>{const _0x1fe9bd=_0x313f4e;let [_0x14d1b4,_0x10c57b]=_0x57a640,_0xd5d7d3=_0x1921da[_0x1fe9bd(0x281)],_0x2c63a7=_0x1c3e4a[_0x1fe9bd(0x1aa)](_0x10c57b);return _0x2c63a7!==void 0x0&&_0xd5d7d3[_0x2c63a7]===_0x14d1b4;})&&_0x4ae5eb[_0x313f4e(0x1b4)](..._0x1921da[_0x313f4e(0x1ba)]),_0x4ae5eb),[])['sort']((_0x2e8af2,_0x3c912f)=>_0x2e8af2-_0x3c912f);}[_0x973ad6(0xd1)](_0x5b5d4d){const _0x4c576a=_0x973ad6;this[_0x4c576a(0x20a)]()[_0x4c576a(0xd1)](_0x5b5d4d);}[_0x973ad6(0x2f8)](_0x33584b){const _0x240b4b=_0x973ad6;this[_0x240b4b(0x20a)]()['reset'](_0x33584b),this[_0x240b4b(0x2e3)]=_0x240b4b(0x2ca);}['query'](_0x4b35fd){const _0x4ef786=_0x973ad6;let _0x2c2eec=_0x81847c[_0x4ef786(0x3c6)][_0x4ef786(0x2ef)];_0x2c2eec&&_0x2c2eec[_0x4ef786(0x351)](_0x37379b=>{const _0x2c5cce=_0x4ef786;_0x37379b(this[_0x2c5cce(0x360)]);});let _0x94856d=_0x4b35fd||this['_getModel']()[_0x4ef786(0x14f)](),_0x50b5f4=this[_0x4ef786(0x1a5)](_0x94856d),_0x109147;_0x4b35fd?(_0x109147=new _0x1af349(_0x94856d,_0x50b5f4,this[_0x4ef786(0x400)]),_0x109147[_0x4ef786(0x236)]()):(!this['_summaryManagerCache']||this[_0x4ef786(0x2e3)]===_0x4ef786(0x2ca)?(this[_0x4ef786(0x129)]=new _0x1af349(_0x94856d,_0x50b5f4,this['_defaultSortLocale']),this[_0x4ef786(0x129)][_0x4ef786(0x236)]()):this['_summaryCacheState']===_0x4ef786(0x345)&&this[_0x4ef786(0x129)][_0x4ef786(0x13a)](_0x94856d,this[_0x4ef786(0x400)]),_0x109147=this[_0x4ef786(0x129)],this[_0x4ef786(0x2e3)]='ready');let _0x420131;try{_0x420131=this['_layout'](_0x109147,_0x94856d);}finally{_0x109147['clearShowDataAsCache']();}_0x420131[_0x4ef786(0x220)](this[_0x4ef786(0x20a)](),_0x94856d[_0x4ef786(0x2f5)]);let _0x43dc57=this[_0x4ef786(0x232)]();_0x420131[_0x4ef786(0x44f)](_0x43dc57),this['_getModel']()[_0x4ef786(0xd1)](!0x1);let _0x37705a=_0x81847c['_callbacks'][_0x4ef786(0x3e3)];return _0x37705a&&_0x37705a[_0x4ef786(0x351)](_0x44114b=>{const _0x2c4bf5=_0x4ef786;_0x44114b(this[_0x2c4bf5(0x360)]);}),_0x420131;}['_layout'](_0x8d7556,_0x386857){const _0x2354ce=_0x973ad6;switch(this[_0x2354ce(0xf9)]()){case 0x1:return _0x3670c5[_0x2354ce(0x378)](this,_0x8d7556,_0x386857);case 0x2:return _0x20575e[_0x2354ce(0x378)](this,_0x8d7556,_0x386857);default:return _0x105e2b[_0x2354ce(0x378)](this,_0x8d7556,_0x386857);}}[_0x973ad6(0x2e8)](){const _0x1e5665=_0x973ad6;return this['_getModel']()[_0x1e5665(0x2e8)]();}[_0x973ad6(0x12f)](_0xe5d9c5){const _0x42033d=_0x973ad6;this[_0x42033d(0x20a)]()[_0x42033d(0x12f)](_0xe5d9c5),this[_0x42033d(0xd1)](!0x0),this[_0x42033d(0x2e3)]=_0x42033d(0x2ca);}[_0x973ad6(0x359)](){const _0x15eba7=_0x973ad6;this[_0x15eba7(0x338)]=null,this[_0x15eba7(0x235)]=null;}};_0x5dd0e0(_0x48aada,_0x973ad6(0x3c6),{}),_0x2d46b1[_0x973ad6(0x213)]=_0x9953dc,_0x2d46b1['DataField']=_0x28e774,_0x2d46b1[_0x973ad6(0x106)]=_0x16ef65,_0x2d46b1[_0x973ad6(0x290)]=_0x40a922,_0x2d46b1[_0x973ad6(0xad)]=_0x393a9c,_0x2d46b1[_0x973ad6(0x374)]=-0x1,_0x2d46b1[_0x973ad6(0x272)]=_0x19c6cd,_0x2d46b1[_0x973ad6(0x450)]=_0x7cc867,_0x2d46b1[_0x973ad6(0x207)]=_0x4dd482,_0x2d46b1['ManualGroupField']=_0x5e7805,_0x2d46b1[_0x973ad6(0x23a)]=_0x504b1b,_0x2d46b1['NUMBER_GROUP_BEFORE_KEY']=_0x5a60b8,_0x2d46b1[_0x973ad6(0x215)]=_0x55af82,_0x2d46b1[_0x973ad6(0xb6)]=_0x274ebf,_0x2d46b1[_0x973ad6(0x410)]=_0x23bc36,_0x2d46b1[_0x973ad6(0xd2)]=_0x175d8a,_0x2d46b1[_0x973ad6(0x162)]=_0x4316e8,_0x2d46b1[_0x973ad6(0x40a)]=_0x1afa1e,_0x2d46b1[_0x973ad6(0x3b5)]=_0x31478e,_0x2d46b1[_0x973ad6(0x3df)]=_0x4cd535,_0x2d46b1[_0x973ad6(0x12b)]=_0x260e4d,_0x2d46b1[_0x973ad6(0x2c3)]=_0x139e72,_0x2d46b1['PivotExcelDateGroupUnit']=_0x340c21,_0x2d46b1[_0x973ad6(0x3ca)]=_0x36cca4,_0x2d46b1[_0x973ad6(0x439)]=_0x4f2f01,_0x2d46b1[_0x973ad6(0x187)]=_0x50cab6,_0x2d46b1[_0x973ad6(0x328)]=_0x535ad2,_0x2d46b1[_0x973ad6(0x3fd)]=_0x482c01,_0x2d46b1[_0x973ad6(0x1b0)]=_0x1283fe,_0x2d46b1[_0x973ad6(0x3e7)]=_0x2fe122,_0x2d46b1['PivotTable']=_0x48aada,_0x2d46b1[_0x973ad6(0x2f6)]=_0x3f81ff,_0x2d46b1[_0x973ad6(0x29f)]=_0x11dd42,_0x2d46b1[_0x973ad6(0xf8)]=_0xd515e0,_0x2d46b1[_0x973ad6(0x41e)]=_0x3ea467,_0x2d46b1[_0x973ad6(0x438)]=_0x36a291,_0x2d46b1[_0x973ad6(0xc1)]=_0x30759c,_0x2d46b1[_0x973ad6(0x3da)]=_0x20923a,_0x2d46b1[_0x973ad6(0x219)]=_0x4c1c4a,_0x2d46b1['ST_PivotFilterOperatorEnum']=_0x40c6ac,_0x2d46b1[_0x973ad6(0x3ae)]=_0x8788d8,_0x2d46b1[_0x973ad6(0x287)]=_0x41fb5e,_0x2d46b1['createLabelField']=_0x1f2248,_0x2d46b1['createPivotSortCompare']=_0x422e73,_0x2d46b1['createValueField']=_0x69aecd,_0x2d46b1[_0x973ad6(0x3e0)]=_0x2a9fe4,_0x2d46b1[_0x973ad6(0x404)]=_0x50c5c5,_0x2d46b1[_0x973ad6(0x2e6)]=_0x47005a,_0x2d46b1[_0x973ad6(0x309)]=_0x4b348d,_0x2d46b1['getPivotDateGroupingMode']=_0x1b1bf4,_0x2d46b1[_0x973ad6(0x283)]=_0x3cc8ed,_0x2d46b1[_0x973ad6(0x242)]=_0x490b64,_0x2d46b1['isBaseGroupField']=_0x385e0d,_0x2d46b1['isDateGroupField']=_0x272b43,_0x2d46b1[_0x973ad6(0x23e)]=_0x2bbd2d,_0x2d46b1['isDateValue']=_0x121f25,_0x2d46b1['isErrorValue']=_0x3386be,_0x2d46b1[_0x973ad6(0x19b)]=_0x3a5a2a,_0x2d46b1[_0x973ad6(0x2df)]=_0x494aed,_0x2d46b1[_0x973ad6(0xe8)]=_0x205762,_0x2d46b1[_0x973ad6(0x3f6)]=_0x52adfb,_0x2d46b1[_0x973ad6(0x105)]=_0x134f06,_0x2d46b1[_0x973ad6(0x446)]=_0x3bf3d4,_0x2d46b1[_0x973ad6(0x2d8)]=_0x33a29a,_0x2d46b1[_0x973ad6(0x11b)]=_0x3c785c,_0x2d46b1[_0x973ad6(0x231)]=_0x2c7892,_0x2d46b1[_0x973ad6(0x38b)]=_0x236c1d,_0x2d46b1['setMaxLimitItemCount']=_0x2ced43;}));function _0x38ed(){const _0x40d5ed=['hiddenFields','Expand','valueFilter','forEach','FilterNoneSortAsc','positions','_colLevelPool','Invalid\x20pivot\x20record\x20value.','MonthDate','nextWeek','addRecord','dispose','updateValuePosition','_rowLevelPool','Average\x20of\x20','_bufferModel','getCornerSize','minNumber','_id','_valueFilterInfo','dateOlderThanOrEqual','dimensionMap','list','measure','captionNotContains','Day','Unsupported\x20pivot\x20caption\x20operator.','collapseInfo','getId','measureIndexesMap','writeValueHeaderRow','_getValueFilterTree','BadReference','_displayNames','_setValueFilterState','Hour','setStyle','product','EXCEL_DATE_BEFORE_KEY','itemSize','_changeStack','prepare','layout','dateNotBetween','type','average','create','_prepareDerivedBuffers','percentOfParent','other','_parentRowTotalIndexes','layoutRowChildren','layoutRowNodeToCursor','concat','Unknown\x20filter\x20operator:\x20','Row','default','dateNewerThan','round','isExistFieldName','getRecordValueKey','setDateSystem','iterateField','captionGreaterThanOrEqual','\x20is\x20not\x20in\x20the\x20pivot\x20table.','_doValueFilter','getItemKey','getInfo','_prepareParentIndexes','NotFunction','getGroupInfo','_summaryManager','sqrt','iterateFieldMeasure','types','FilterSingle','updateColumnSubtotal','lastMonth','selection','resetSort','yesterday','tupleIndex','layoutColNode','getPaths','_buildParentIndexes','sortChildrenByValue','getNodeValue','rangeKey','dateRange','Exclude','dateSystem','setLayout','countNums','setValue','RenameField','setSubtotal','compilePivotDateFilter','\x20is\x20already\x20in\x20the\x20pivot\x20table.','valueBetween','hasText','originalFieldId','host','registerCallbackWithEvent','PivotDataFieldTypeEnum','subtotalMap','SetValueFilter','_getMemberType','isInteger','expected','format','layoutHeadersWithoutColumnDimensions','boolean','second','getDataRecordCount','item','colDimOrder','getItemsMap','shouldWriteSubtotalAtBottom','_updateBlankItemKey','Invalid\x20pivot\x20whole-day\x20mode.','_callbacks','getMeasureInfoByIndex','iterateFieldByArea','showRowGrandTotal','PivotFilterCategory','map','thisQuarter','Filter','legacy','compileRecordFilter','isRowMultiMeasure','\x20Σ值','minute','filterQueryInfo','splice','colMap','_buildRunningTotalBuffer','parentIndex','Collator','percentOfColumnTotal','PivotViewCellValueTypeEnum','captionBetween','cornerView','_bubbleUp','getCellValue','PivotDateGroupFieldDateTypeEnum','excelDateToUnixMilliseconds','_buildCoordinateIndex','month','onQueryEnd','_getIndexValue','dateNotEqual','_tupleIndexMap','PivotSubtotalTypeEnum','Value','filterInfo','writeBottomSubtotalRows','groupInfo','rowDeep','addHeaderMapItem','AddField','measureIdList','getMinutes','isLeafNode','_addTupleRecord','getFieldFormat','getHours','setOptions','isPrefixValue','getValuePosition','764472Qrueab','Boolean','unionTuples','autoEnd','renameField','PivotShowAsTypeEnum','otherDataKey','getTableFieldById','_defaultSortLocale','_setPageFilterLabel','valueLessThan','valueIndex','generateHexNumber','tuple','getMonth','_getIndexedTupleIndex','normal','customOrder','PivotDataFieldSortTypeEnum','ensureTupleItemByString','prototype','getTableFieldsByDataFieldId','split','indexOf','PivotCellStyleTypeEnum','min','mode','customFields','freeze','getTupleItemsMap','previous','_buildNodeTreeImp','_grouping','_updateBooleanItemKey','slice','data','_buildRankBuffer','Invalid\x20pivot\x20condition\x20filter.','PivotTableValueField','Subtotal','_getIndexedRawValue','getPathKeyWithFiledId','fromEntries','getFormat','getTupleType','getValueFields','getMeasureIndex','layoutValueLeafNode','_generateModel','setRowCollapseLevel','Year','percentOfParentRowTotal','getFieldDataType','info','bottomTotalSize','UpdateSource','_dateType','dateOlderThan','month-date','floor','captionBeginsWith','rowSubtotalPosition','unit','ranges','PivotTableValuePositionEnum','PivotFilterTypeEnum','-%$%-','DateSystem','writeParentItemRow','percentOfGrandTotal','startsWith','_peerUnionsByValueField','Max\x20of\x20','_recordTupleKeys','-$-cr-$-','Blank','UTC','UniverProEnginePivot','isValueFilterOperator','createDataFieldId','dateBetween','addRange','shouldWriteMultiValueSubtotalAtBottom','Pivot\x20date\x20record\x20values\x20must\x20be\x20finite.','setLabelValue','layoutPageOverThenDown','_preparePeerIndexes','setGroupInfo','GlobalConfig','getSortedMap','maxDate','rowDimOrder','isArray','_isParentType','valueGreaterThanOrEqual','iterateColLeafNodeChildren','_columnFieldIndexes','textGroupField','Population\x20Variance\x20of\x20','ceil','getUniqueFieldId','EXCEL_DATE_AFTER_KEY','_getParentValue','dataFields','ascending','CustomFilter','calculateSubtotal','getformat','getItemSharedKey','_dataIsValid','PivotCallbackEnum','records','index','_min','size','summaryManager','None','repeatRowLabelsForNode','groupByDate','Second','getRowColCount','PivotView','hasSourceName','getRowLabelCol','getRangeData','writeRootValueHeaderRow','getCell','-&&-','getTupleKeysByLabel','assign','baseItem','setValueSize','year-month','updateAllDisplayName','minDate','Quarter','iterator','setDirty','PivotDataFieldDataTypeEnum','year','_updateOtherItemKey','layoutColFields','getDataFieldByTableId','isLeaf','_tupleItemsMap','quarter','Product\x20of\x20','lastYear','clearFieldFilters','combinePathMapList','TUPLE_PLACEHOLDER','createLabelFieldByDataFieldId','custom','Collapse','ensureTupleItem','FilterNoneSortNone','addNode','summary','_setDerivedError','sortNode','isPivotTableFilterRestrictive','fieldId','GrandTotal','outline','getColIndexForRowHeader','setFilterInfo','getRowCount','today','_setDerivedNumber','createGrandTotalInfo','hiddenQueryInfo','ManualFilter','hasBlank','set','yearToDate','SetSortInfo','PivotTableLabelField','getLayout','layoutGrandTotalValues','entries','hour-minute','Div0','showColSubtotal','All','getFieldPositionInfoById','String','layoutPageDownThenOver','createTuple','includesCurrent','isRecordErrorValue','DataFieldManager','getTime','setDataFieldId','captionLessThan','differenceFrom','level','hasBoolean','colTableIdList','getNodeDisplayValue','hasSort','Invalid\x20pivot\x20record\x20filter.','_peerIndexesByValueField','_createDerivedBuffer','dateGroupField','lastQuarter','_product','percent','getSourceName','_tupleByCoordinate','YearMonthDate','setPageIndex','normalizeManualGrouping','_fieldCount','_applyValueSorts','endDate','log10','_bounds','maxLimitItemCount','_heap','updateFieldSourceInfo','_rowTotalIndexes','The\x20displayName\x20','Pivot\x20date\x20operands\x20must\x20be\x20finite\x20and\x20ordered.','Date1900','Ambiguous\x20pivot\x20condition\x20state.','_summaryManagerCache','tuples','PivotDateGroupingMode','_squareSum','getIsLeaf','createOrUpdateTuple','fromJSON','_buildOrderedGroups','object','startContent','createRowInfo','_buildPeerIndexes','measureCount','date','range','getSortInfo','colPathMap','resort','_parentFieldIndexByValueField','setOther','getValueLabelCol','defaultNormalField','setConditionFilterInfo','abs','FilteredSortNone','YearQuarter','excel-like','getDataFieldIdByDisplayName','_count','captionNotBetween','sortedList','_index','getNumberGroupValid','valueFields','string','getRangeKey','Member','_queryData','getQueryData','getNode','_isDirty','getDataFieldItemInfo','grouping','varp','length','hasOwnProperty','MultipleGrandTotal','setLeaf','formatMap','showRowSubtotal','grandTotal','Column','removeField','_buildTotalIndexes','HourMinute','getUniqueValueFieldName','showColGrandTotal','PivotDataFieldSortOperatorEnum','sortMap','startCollectChangeset','sourceName','defineProperty','rowFields','createTupleWithoutCheck','prefix','percentOf','getRanges','captionEndsWith','getManualGroupValid','layoutRowNode','M10','pageView','RecordValueType','flatMap','getCollapse','_tupleItemCounter','_divideParent','nextQuarter','clearFilters','writeGrandTotalRows','getOptions','bottom','getDataFieldBySourceName','getDisplayName','getDate','stringify','_updateErrorItemKey','includes','_calculateSubtotalImp','Hidden','exports','startChangeStack','pageOverThenDown','dimensionSortInfo','PivotLayoutTypeEnum','iterateFieldDim','setInfo','layoutValueNodeSubtotal','valueSortInfo','hasField','start','FilteredSortDesc','max','124864cRSzDP','buildColPathMapForCollapse','getFieldIds','combinePathMap','UpdateFieldPosition','getTupleIndexesByKey','thisYear','cloneBufferModel','hasDate','ROW_ROOT_PATH','buildNodeTree','isManualPivotFilter','captionEqual','_updateStringItemKey','getFieldInfo','isAll','end','conditionFilter','valueNotEqual','colDeep','iterate','_getTupleCache','captionNotEndsWith','shouldWriteLeafValuesUnderItem','BlankValue','collections','get','captionGreaterThan','_parentFieldIndexes','endCollectChangeset','getFilterInfo','MIN_VALUE','PivotSubtotalPositionEnum','excelSerialToDateTimeParts','view','getDataFieldId','push','RemoveField','filter','getDateGroupValid','itemTypes','squareSum','indexes','_sum','SetSubtotalType','writeParentRow','setValueFilterInfo','BLANK_PLACEHOLDER','compare','SetLayout','text','getTupleKey','var','Module','_getSortCompare','tabular','addField','Variance\x20of\x20','items','_columnTotalIndexes','_getCoordinateKey','_max','values','_refreshExcelLike','getName','variant','thisWeek','dateNewerThanOrEqual','add','options','layoutCol','getLastRow','writeLeafRows','getValueIndex','repeatRowLabels','setFieldFormat','isFinite','function','setFieldFilterState','_recordKeys','filterFields','layoutColHeader','clearShowDataAsCache','year-quarter','getAutoDisplayNameFunction','group','_excelLike','valueFilterInfo','_getPeerValue','_overflowRecordIndexes','amd','members','1316406PwOcyl','setCollapse','valuePosition','leafCount','every','_tupleGroupCache','isBottom','headerMap','_countN','errorType','call','_createValueFilterLevelPool','allowMultipleFilters','createSingleValueHeaderInfo','_updateNumberItemKey','clear','thisMonth','getTupleLabel','getFilteredRecordIndexes','percentOfRowTotal','displayPaths','buildColPathMap','RecordFilter','getFieldDisplayNames','dayLabels','_rowFieldIndexes','_fieldIndexById','LabelViewItem','TUPLE_FIELD_SEPARATOR','setDisplayName','_getModel','dateType','getStyle','Pivot\x20numeric\x20record\x20values\x20must\x20be\x20finite.','isColMultiMeasure','valueNotBetween','showDataAs','_divide','lastRow','BaseGroupField','rowTableIdList','NumberGroupField','next','refreshGroupField','paths','PivotViewItem','captionLessThanOrEqual','_updateItemKey','_parentColumnTotalIndexes','setName','getFilterFieldIdByIndex','setRange','setFormat','writeLeafItemRow','fieldIds','A\x20record\x20filter\x20evaluator\x20must\x20be\x20provided\x20by\x20the\x20host.','_getIndex','shouldSplitRootByValues','value','isDev','_percentDifference','getIndexesByKey','NotName','Invalid\x20pivot\x20record\x20selection.','__number_before__','SetOptions','49JbPKWe','nextYear','dimensionIdList','normalizeNumberGrouping','_getGroupInfo','addValue','FilterNoneSortDesc','_model','doSummary','getUniqueDataFieldName','topTotalSize','writeLeafValueRow','NUMBER_GROUP_AFTER_KEY','layoutCorner','_fieldsCollection','M11','isDateGroupFieldJSON','264928BkMzlL','rowCount','_getCanonicalTupleIndex','hasPivotMultipleFilters','dateEqual','valueEqual','_difference','createCollection','_getCoordinateKeyWithoutField','setDefaultSortLocale','setParentIndex','valueGreaterThan','rowNodeTree','queryData','rankDescending','captionNotBeginsWith','Date','counter','FilterSelectionMode','setRowCount','__number_after__','keys','hour','year-month-date','_showDataAsResolver','@univerjs/core','has','name','getRealSize','dimensionTableIdList','prepareLayoutCtx','toUpperCase','condition','getFieldsId','M12','updateFieldPosition','getFullYear','unionTupleInfo','colView','dataRecordCount','getFieldIdByDisplayName','_calculateValueFilter','getConditionFilterInfo','UpdateValuePosition','Unknown\x20pivot\x20filter\x20type.','setBlank','setLastRow','field','Invalid\x20multiple-filter\x20mode.','dataFieldType','getDirty','FieldsCollection','Population\x20Standard\x20Deviation\x20of\x20','getNoUsedDataFieldIds','getValueFilterInfo','UniverCore','\x20-\x20','tomorrow','setShowDataAs','Error','stdDevp','displayName','getGroupFieldMap','findIndex','ready','2297130LVOsnP','path','dimension','getPivotRecordMember','_tupleTypes','count','getFieldsAreaByType','createDataFieldFromJSON','sortInfo','The\x20field\x20','_applyLabelSorts','autoStart','rowQueryInfo','_level','_isDerivedType','ValueFilter','DateGroupField','SetFilterInfo','lossLessProperty','NotNumber','FilterPartial','sortLocale','setColCount','Invalid\x20pivot\x20date\x20range.','_itemIndexMap','_tupleLabels','Minute','shouldMultipleNode','measuresMap','sum','daysInterval','PivotTableFiledAreaEnum','getGrouping','_tupleKeyCounter','getIndex','sortItems','_fieldDataType','runningTotal','layoutRowFields','dataFieldId','lastWeek','createSummaryLabelSortedMap','constructor','_nodes','SetFieldFormat','FilterAll','hasError','Sum\x20of\x20','writeBottomSubtotalRow','_canonicalTupleIndexes','getIndexesByPathStr','setPaths','some','getFieldCountByArea','getDataFieldType','nextMonth','columnFields','day','colCount','compact','warn','updateRowSubtotal','rankAscending','dataView','find','symbol','_coordinates','PivotErrorTypeEnum','percentOfParentGrandTotal','_getRawValue','getColCount','_bubbleDown','_getDerivedValue','subTotal','invalid','trim','defaultSortType','getDateType','_prepareTotalIndexes','member','error','colNodeTree','layoutNoneColFields','operator','random','maxNumber','doColLeafNode','addCollection','normalizeExcelDateGrouping','collapse','pop','_keyCounter','excelLike','hasInteger','percentOfParentColumnTotal','isPivotDateFilter','subtotal','cancelCollectChangeset','startDate','_summaryCacheState','reduce','writeParentRows','getAutoDisplayName','fill','toJSON','getDisplayNameByKey','hasNode','setSortInfo','calculateListSubtotal','_derivedValuesByValueField','top','onQueryStart','valueFieldId','blank','Count\x20of\x20','hexCode','interval','valueQueryInfo','PivotTableChangeTypeEnum','displayNameRecord','reset','percentDifferenceFrom','YearMonth','_itemIndexMaps','layoutPage','valueFilterMap','stdDev','setGrouping','818354SweYzr','unknown','_updateDateItemKey','_clearSourceFilters','applyNodeValueType','setLevel','_clearSourceFilterCategory','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endsWith','getDefaultNumberGrouping','isEmpty','getLastCol','_itemsMap','_getParentGroupKey','SetShowDataAs','baseFieldId','dateGroupingMode','layoutValueNode','setSourceName','setValueFilterState','buildPathMap','states','_tupleKeysByLabel','useWholeDay','_getParentNodeKey','captionNotEqual','Include','join','customGroupField','descending','getFieldById','doRowLeafNode','captionContains','removeValueFilterInfoByValueFieldId','prepareShowDataAs','getLevel','_sortCompareCache','colQueryInfo','getValue','sortChildrenByLabel','PivotShowAsBaseItemTypeEnum','node','Number','doRowBrachNode','Month','hasDecimal','groups','addFieldWithSourceId','valueLessThanOrEqual','_grandTotalIndex','setDateType','COl_ROOT_PATH','log2','_buildItemOrders','setLabelFilterInfo','rowView','dataFieldsCollection','from','getShowDataAs','setSubtotalType','getTypeByKey','_getFieldIndex','149435VxyXYj','tupleMap','lastCol','removeValueFilterInfo','shouldMultipleTotal','getOriginFieldId','doColBranchNode','sort','toString','number','getSubtotal','_readPathIntoCoordinate','createValueFieldByDataFieldId','getRowIndexForColHeader','FilteredSortAsc','_isPeerType'];_0x38ed=function(){return _0x40d5ed;};return _0x38ed();}
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs/core")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverProEnginePivot={},e.UniverCore))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let n={TUPLE_PLACEHOLDER:`-&&-`,TUPLE_FIELD_SEPARATOR:`-%$%-`,COl_ROOT_PATH:`-$-cr-$-`,ROW_ROOT_PATH:`-$-rr-$-`,BLANK_PLACEHOLDER:`-$-blk-$-`,isDev:!1,defaultSortType:`default`,dateSystem:t.DateSystem.Date1900,maxLimitItemCount:1e3,otherDataKey:`-$-oth-$-`},r=e=>n.dateSystem=e,i=e=>{e>0&&(n.maxLimitItemCount=e)},a=/* @__PURE__ */ function(e){return e[e.average=1]=`average`,e[e.count=2]=`count`,e[e.countNums=3]=`countNums`,e[e.max=4]=`max`,e[e.min=5]=`min`,e[e.product=6]=`product`,e[e.stdDev=7]=`stdDev`,e[e.stdDevp=8]=`stdDevp`,e[e.sum=9]=`sum`,e[e.var=10]=`var`,e[e.varp=11]=`varp`,e}({}),o=/* @__PURE__ */ function(e){return e[e.normal=1]=`normal`,e[e.percentOfColumnTotal=2]=`percentOfColumnTotal`,e[e.percentOfRowTotal=3]=`percentOfRowTotal`,e[e.percentOfGrandTotal=4]=`percentOfGrandTotal`,e[e.percentOfParentColumnTotal=5]=`percentOfParentColumnTotal`,e[e.percentOfParentRowTotal=6]=`percentOfParentRowTotal`,e[e.percentOfParentGrandTotal=7]=`percentOfParentGrandTotal`,e[e.index=8]=`index`,e[e.differenceFrom=9]=`differenceFrom`,e[e.percentDifferenceFrom=10]=`percentDifferenceFrom`,e[e.runningTotal=11]=`runningTotal`,e[e.percentRunningTotal=12]=`percentRunningTotal`,e[e.percentOf=13]=`percentOf`,e[e.percentOfParent=14]=`percentOfParent`,e[e.rankAscending=15]=`rankAscending`,e[e.rankDescending=16]=`rankDescending`,e}({}),s=/* @__PURE__ */ function(e){return e[e.item=1]=`item`,e[e.previous=2]=`previous`,e[e.next=3]=`next`,e}({}),c=/* @__PURE__ */ function(e){return e[e.Div0=1]=`Div0`,e[e.NotNumber=2]=`NotNumber`,e[e.NotFunction=3]=`NotFunction`,e[e.NotName=4]=`NotName`,e[e.BadReference=5]=`BadReference`,e}({}),l=/* @__PURE__ */ function(e){return e[e.CustomFilter=1]=`CustomFilter`,e[e.ValueFilter=2]=`ValueFilter`,e[e.ManualFilter=3]=`ManualFilter`,e[e.RecordFilter=4]=`RecordFilter`,e}({}),u=/* @__PURE__ */ function(e){return e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e[e.Value=3]=`Value`,e[e.Filter=4]=`Filter`,e[e.Hidden=5]=`Hidden`,e}({}),d=/* @__PURE__ */ function(e){return e[e.None=-1]=`None`,e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e}({}),f=/* @__PURE__ */ function(e){return e[e.text=1]=`text`,e[e.number=2]=`number`,e[e.boolean=3]=`boolean`,e[e.date=4]=`date`,e[e.blank=5]=`blank`,e[e.other=6]=`other`,e}({}),p=/* @__PURE__ */ function(e){return e[e.value=1]=`value`,e[e.field=2]=`field`,e}({}),m=/* @__PURE__ */ function(e){return e[e.ascending=1]=`ascending`,e[e.descending=2]=`descending`,e[e.custom=3]=`custom`,e}({}),h=/* @__PURE__ */ function(e){return e[e.captionBeginsWith=1]=`captionBeginsWith`,e[e.captionBetween=2]=`captionBetween`,e[e.captionContains=3]=`captionContains`,e[e.captionEndsWith=4]=`captionEndsWith`,e[e.captionEqual=5]=`captionEqual`,e[e.captionGreaterThan=6]=`captionGreaterThan`,e[e.captionGreaterThanOrEqual=7]=`captionGreaterThanOrEqual`,e[e.captionLessThan=8]=`captionLessThan`,e[e.captionLessThanOrEqual=9]=`captionLessThanOrEqual`,e[e.captionNotBeginsWith=10]=`captionNotBeginsWith`,e[e.captionNotBetween=11]=`captionNotBetween`,e[e.captionNotContains=12]=`captionNotContains`,e[e.captionNotEndsWith=13]=`captionNotEndsWith`,e[e.captionNotEqual=14]=`captionNotEqual`,e[e.count=15]=`count`,e[e.dateBetween=16]=`dateBetween`,e[e.dateEqual=17]=`dateEqual`,e[e.dateNewerThan=18]=`dateNewerThan`,e[e.dateNewerThanOrEqual=19]=`dateNewerThanOrEqual`,e[e.dateNotBetween=20]=`dateNotBetween`,e[e.dateNotEqual=21]=`dateNotEqual`,e[e.dateOlderThan=22]=`dateOlderThan`,e[e.dateOlderThanOrEqual=23]=`dateOlderThanOrEqual`,e[e.lastMonth=24]=`lastMonth`,e[e.lastQuarter=25]=`lastQuarter`,e[e.lastWeek=26]=`lastWeek`,e[e.lastYear=27]=`lastYear`,e[e.M1=28]=`M1`,e[e.M10=29]=`M10`,e[e.M11=30]=`M11`,e[e.M12=31]=`M12`,e[e.M2=32]=`M2`,e[e.M3=33]=`M3`,e[e.M4=34]=`M4`,e[e.M5=35]=`M5`,e[e.M6=36]=`M6`,e[e.M7=37]=`M7`,e[e.M8=38]=`M8`,e[e.M9=39]=`M9`,e[e.nextMonth=40]=`nextMonth`,e[e.nextQuarter=41]=`nextQuarter`,e[e.nextWeek=42]=`nextWeek`,e[e.nextYear=43]=`nextYear`,e[e.percent=44]=`percent`,e[e.Q1=45]=`Q1`,e[e.Q2=46]=`Q2`,e[e.Q3=47]=`Q3`,e[e.Q4=48]=`Q4`,e[e.sum=49]=`sum`,e[e.thisMonth=50]=`thisMonth`,e[e.thisQuarter=51]=`thisQuarter`,e[e.thisWeek=52]=`thisWeek`,e[e.thisYear=53]=`thisYear`,e[e.today=54]=`today`,e[e.tomorrow=55]=`tomorrow`,e[e.unknown=56]=`unknown`,e[e.valueBetween=57]=`valueBetween`,e[e.valueEqual=58]=`valueEqual`,e[e.valueGreaterThan=59]=`valueGreaterThan`,e[e.valueGreaterThanOrEqual=60]=`valueGreaterThanOrEqual`,e[e.valueLessThan=61]=`valueLessThan`,e[e.valueLessThanOrEqual=62]=`valueLessThanOrEqual`,e[e.valueNotBetween=63]=`valueNotBetween`,e[e.valueNotEqual=64]=`valueNotEqual`,e[e.yearToDate=65]=`yearToDate`,e[e.yesterday=66]=`yesterday`,e}({}),g=/* @__PURE__ */ function(e){return e[e.compact=1]=`compact`,e[e.outline=2]=`outline`,e[e.tabular=3]=`tabular`,e}({}),_=/* @__PURE__ */ function(e){return e[e.top=1]=`top`,e[e.bottom=2]=`bottom`,e}({}),v=/* @__PURE__ */ function(e){return e.onQueryStart=`onQueryStart`,e.onQueryEnd=`onQueryEnd`,e}({}),y=/* @__PURE__ */ function(e){return e[e.defaultNormalField=1]=`defaultNormalField`,e[e.numberGroupField=2]=`numberGroupField`,e[e.dateGroupField=3]=`dateGroupField`,e[e.textGroupField=4]=`textGroupField`,e[e.customGroupField=5]=`customGroupField`,e}({}),b=/* @__PURE__ */ function(e){return e.Legacy=`legacy`,e.ExcelLike=`excel-like`,e}({}),ee=/* @__PURE__ */ function(e){return e.Year=`year`,e.Quarter=`quarter`,e.Month=`month`,e.Day=`day`,e.Hour=`hour`,e.Minute=`minute`,e.Second=`second`,e}({}),te=/* @__PURE__ */ function(e){return e.Minute=`minute`,e.Hour=`hour`,e.HourMinute=`hour-minute`,e.Date=`date`,e.Month=`month`,e.MonthDate=`month-date`,e.Quarter=`quarter`,e.Year=`year`,e.YearMonth=`year-month`,e.YearQuarter=`year-quarter`,e.YearMonthDate=`year-month-date`,e}({}),ne=/* @__PURE__ */ function(e){return e.Member=`member`,e.Condition=`condition`,e.Value=`value`,e}({});function re(e){return Number.isInteger(e)&&e>=16&&e<=23}function x(e){return(e==null?void 0:e.type)===1&&re(e.operator)}function S(e){if(!x(e)||e.useWholeDay!==void 0&&typeof e.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot date filter.`);let t=e.operator===16||e.operator===20,n=t?e.expected:[e.expected];if(!Array.isArray(n)||n.length!==(t?2:1)||n.some(e=>typeof e!=`number`||!Number.isFinite(e))||t&&n[0]>n[1])throw RangeError(`Pivot date operands must be finite and ordered.`);let r=e.useWholeDay===!0,i=r?Math.floor(n[0]):n[0],a=r?Math.floor(n[1]):n[1],o=e.operator;return e=>{if(!Number.isFinite(e))return!1;let t=r?Math.floor(e):e;switch(o){case 16:return t>=i&&t<=a;case 20:return t<i||t>a;case 17:return t===i;case 21:return t!==i;case 18:return t>i;case 19:return t>=i;case 22:return t<i;case 23:return t<=i;default:return!1}}}function C(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`v`in e&&typeof e.v==`number`&&`f`in e&&typeof e.f==`string`}function w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`}function ie(e){let{operator:t,expected:n}=e,r=String(Array.isArray(n)?n[0]:n),i=Array.isArray(n)?String(n[1]):r;return e=>{switch(t){case 1:return e.startsWith(r);case 2:return e>=r&&e<=i;case 3:return e.includes(r);case 4:return e.endsWith(r);case 5:return e===r;case 6:return e>r;case 7:return e>=r;case 8:return e<r;case 9:return e<=r;case 10:return!e.startsWith(r);case 11:return e<r||e>i;case 12:return!e.includes(r);case 13:return!e.endsWith(r);case 14:return e!==r;default:throw TypeError(`Unsupported pivot caption operator.`)}}}function ae(e){switch(e){case 15:case 44:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:return!0;default:return!1}}function oe(e,t,n){let r=Math.min(e.length,Math.max(0,Math.ceil(t)));if(r===0)return;if(r===e.length){let t=e[0];for(let r=1;r<e.length;r++)t=n?Math.max(t,e[r]):Math.min(t,e[r]);return t}let i=[],a=e=>{i.push(e);let t=i.length-1;for(;t>0;){let e=Math.floor((t-1)/2);if(i[e]<=i[t])break;[i[e],i[t]]=[i[t],i[e]],t=e}},o=e=>{i[0]=e;let t=0;for(;;){let e=t*2+1,n=e+1,r=t;if(e<i.length&&i[e]<i[r]&&(r=e),n<i.length&&i[n]<i[r]&&(r=n),r===t)break;[i[t],i[r]]=[i[r],i[t]],t=r}};for(let t of e){let e=n?-t:t;i.length<r?a(e):e>i[0]&&o(e)}return n?-i[0]:i[0]}function se(e){let{operator:t,expected:n}=e;switch(t){case 57:return e=>e>=n[0]&&e<=n[1];case 58:return e=>e===n;case 59:return e=>e>n;case 60:return e=>e>=n;case 61:return e=>e<n;case 62:return e=>e<=n;case 63:return e=>e<n[0]||e>n[1];case 64:return e=>e!==n;default:return console.error(`Unknown filter operator: ${t}`),()=>!0}}function ce(e){let t=/* @__PURE__ */ new Set,n=e.filterInfo;return(n==null?void 0:n.type)===4?(fe({type:4,selection:n.selection})&&t.add(`member`),n.dateRange!==void 0&&t.add(`condition`)):n&&E(n)&&t.add(n.type===1?`condition`:`member`),e.conditionFilter&&t.add(`condition`),t}function le(e){let t=/* @__PURE__ */ new Map;for(let r of Object.values(e.dimension)){var n;let i=t.get(r.dataFieldId)??/* @__PURE__ */ new Set;if(ce(r).forEach(e=>i.add(e)),(n=e.valueFilter)!=null&&n.some(e=>e.fieldId===r.id)&&i.add(`value`),i.size>1)return!0;t.set(r.dataFieldId,i)}return!1}function ue(e){if(e==null)return{type:t.RecordValueType.Blank};if(typeof e==`string`)return{type:t.RecordValueType.String,value:e};if(typeof e==`number`){if(!Number.isFinite(e))throw RangeError(`Pivot numeric record values must be finite.`);return{type:t.RecordValueType.Number,value:e}}if(typeof e==`boolean`)return{type:t.RecordValueType.Boolean,value:e};if(w(e))return{type:t.RecordValueType.Error,value:e.error};if(C(e)){if(!Number.isFinite(e.v))throw RangeError(`Pivot date record values must be finite.`);return{type:t.RecordValueType.Date,value:e.v}}throw TypeError(`Invalid pivot record value.`)}function de(e){let n=e;if(!O(n)||n.type!==4)throw TypeError(`Invalid pivot record filter.`);let{selection:r,dateRange:i}=n;if(O(i)&&i.useWholeDay!==void 0&&typeof i.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot whole-day mode.`);if(r!==void 0){if(!O(r)||typeof r.mode!=`string`)throw TypeError(`Invalid pivot record selection.`);if(r.mode===t.FilterSelectionMode.All){if(`values`in r)throw TypeError(`All selection cannot contain values.`)}else if(r.mode!==t.FilterSelectionMode.Include&&r.mode!==t.FilterSelectionMode.Exclude||!Array.isArray(r.values))throw TypeError(`Invalid pivot record selection.`);else r.values.forEach(t.getRecordValueKey)}if(i!==void 0&&(!O(i)||typeof i.startDate!=`number`||typeof i.endDate!=`number`||!Number.isFinite(i.startDate)||!Number.isFinite(i.endDate)||i.startDate>i.endDate))throw RangeError(`Invalid pivot date range.`)}function T(e){return(e==null?void 0:e.type)===4}function E(e){return T(e)?(de(e),fe(e)):e.type!==3||e.isAll!==!0}function fe(e){var n,r;return e.dateRange!==void 0||((n=e.selection)==null?void 0:n.mode)===t.FilterSelectionMode.Include||((r=e.selection)==null?void 0:r.mode)===t.FilterSelectionMode.Exclude&&e.selection.values.length>0}function D(e){if(e)switch(e.type){case 4:return de(e),{type:4,...e.selection===void 0?null:{selection:e.selection.mode===t.FilterSelectionMode.All?{mode:t.FilterSelectionMode.All}:{mode:e.selection.mode,values:e.selection.values.map(e=>e.type===t.RecordValueType.Blank?{type:t.RecordValueType.Blank}:{...e})}},...e.dateRange===void 0?null:{dateRange:{...e.dateRange}}};case 3:return{...e,list:e.list.concat()};case 1:return(e.useWholeDay!==void 0||re(e.operator))&&S(e),{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected};case 2:return{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected};default:throw TypeError(`Unknown pivot filter type.`)}}function O(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}let pe=/* @__PURE__ */ function(e){return e[e.AddField=0]=`AddField`,e[e.SetSubtotalType=1]=`SetSubtotalType`,e[e.RemoveField=2]=`RemoveField`,e[e.RenameField=3]=`RenameField`,e[e.SetFilterInfo=4]=`SetFilterInfo`,e[e.SetSortInfo=5]=`SetSortInfo`,e[e.UpdateFieldPosition=6]=`UpdateFieldPosition`,e[e.UpdateValuePosition=7]=`UpdateValuePosition`,e[e.SetOptions=8]=`SetOptions`,e[e.SetFieldFormat=9]=`SetFieldFormat`,e[e.SetCollapse=10]=`SetCollapse`,e[e.UpdateSource=11]=`UpdateSource`,e[e.SetValueFilter=12]=`SetValueFilter`,e[e.SetLayout=13]=`SetLayout`,e[e.SetShowDataAs=14]=`SetShowDataAs`,e}({}),me=/* @__PURE__ */ function(e){return e[e.blank=2]=`blank`,e[e.date=4]=`date`,e[e.other=8]=`other`,e}({}),he=/* @__PURE__ */ function(e){return e[e.FilterAll=1]=`FilterAll`,e[e.FilterPartial=2]=`FilterPartial`,e[e.FilterSingle=3]=`FilterSingle`,e[e.BlankValue=4]=`BlankValue`,e[e.FilteredSortNone=5]=`FilteredSortNone`,e[e.FilteredSortAsc=6]=`FilteredSortAsc`,e[e.FilteredSortDesc=7]=`FilteredSortDesc`,e[e.FilterNoneSortNone=8]=`FilterNoneSortNone`,e[e.FilterNoneSortAsc=9]=`FilterNoneSortAsc`,e[e.FilterNoneSortDesc=10]=`FilterNoneSortDesc`,e[e.Collapse=11]=`Collapse`,e[e.Expand=12]=`Expand`,e[e.Subtotal=13]=`Subtotal`,e[e.GrandTotal=14]=`GrandTotal`,e[e.MultipleGrandTotal=15]=`MultipleGrandTotal`,e}({});function k(e){"@babel/helpers - typeof";return k=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},k(e)}function ge(e,t){if(k(e)!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(k(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _e(e){var t=ge(e,`string`);return k(t)==`symbol`?t:t+``}function A(e,t,n){return(t=_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){return typeof e==`number`}var j=class{constructor(){A(this,`_sum`,0),A(this,`_count`,0),A(this,`_countN`,0),A(this,`_product`,1),A(this,`_min`,1/0),A(this,`_max`,-1/0),A(this,`_squareSum`,0)}getInfo(){return{sum:this._sum,count:this._count,countN:this._countN,product:this._product,min:this._min,max:this._max,squareSum:this._squareSum}}reset(){this._sum=0,this._count=0,this._countN=0,this._product=1,this._min=1/0,this._max=-1/0,this._squareSum=0}addValue(e){e!=null&&(this._count+=1,ve(e)&&(this._sum+=e,this._countN+=1,this._product*=e,this._min=Math.min(this._min,e),this._max=Math.max(this._max,e),this._squareSum+=e*e))}unionTuples(e){for(let t of e)this._sum+=t._sum,this._count+=t._count,this._countN+=t._countN,this._product*=t._product,this._min=Math.min(this._min,t._min),this._max=Math.max(this._max,t._max),this._squareSum+=t._squareSum}unionTupleInfo(e){this._sum+=e.sum,this._count+=e.count,this._countN+=e.countN,this._product*=e.product,this._min=Math.min(this._min,e.min),this._max=Math.max(this._max,e.max),this._squareSum+=e.squareSum}getSubtotal(e){switch(e){case 9:return this._sum;case 2:return this._count;case 3:return this._countN;case 6:return Number.isFinite(this._product)?this._product:{errorType:2};case 5:return this._countN>0?this._min:0;case 4:return this._countN>0?this._max:0;case 1:return this._countN>0?this._sum/this._countN:{errorType:1};case 7:return this._countN>1?Math.sqrt(Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*(this._countN-1)))):{errorType:1};case 8:return this._countN>0?Math.sqrt(Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*this._countN))):{errorType:1};case 10:return this._countN>1?Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*(this._countN-1))):{errorType:1};case 11:return this._countN>0?Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*this._countN)):{errorType:1}}}};function ye(e){return(e==null?void 0:e.dateGroupingMode)??`legacy`}function M(e){return e==null||e===``}function N(e){return e===2||e===1||e===4||e===5}function P(e){return e===2||e===1}function F(e,t){let n=``;switch(t){case 1:n=`Average of ${e}`;break;case 2:n=`Count of ${e}`;break;case 3:n=`Count of ${e}`;break;case 4:n=`Max of ${e}`;break;case 5:n=`Min of ${e}`;break;case 6:n=`Product of ${e}`;break;case 7:n=`Standard Deviation of ${e}`;break;case 8:n=`Population Standard Deviation of ${e}`;break;case 9:n=`Sum of ${e}`;break;case 10:n=`Variance of ${e}`;break;case 11:n=`Population Variance of ${e}`;break;default:n=e}return n}function be(e,t,n){let r=Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,i=typeof r==`boolean`;return n===void 0?i?r:!1:i?r:r!=null&&Object.prototype.hasOwnProperty.call(r,n)?r[n]:!1}function I(e){return e.type===3}function xe(e){return e.type===1}function L(e){let t=``;for(let n=0;n<e;n++){let e=Math.floor(Math.random()*16);t+=e.toString(16)}return t.toUpperCase()}function Se(e,t){let n=0,r=0,i=[];for(;n<e.length&&r<t.length;)e[n]===t[r]?(i.push(e[n]),n++,r++):e[n]<t[r]?n++:r++;return i}function Ce(e){if(e.length===0)return[];if(e.length===1)return e[0];let t=e[0];for(let n=1;n<e.length;n++)t=Se(t,e[n]);return t}function R(e,t,n){e.summary||={},t&&!t.summary&&(t.summary={});for(let r in n){let i=n[r].subTotal,a=e.tuple[r],o=a.getInfo(),{sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}=o;for(let e of i)o[e]=a.getSubtotal(e);e.summary[r]=o,t&&(t.tuple[r]||(t.tuple[r]=new j),t.tuple[r].unionTupleInfo({sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}))}}function we(e){let t=1,n;return e?(I(e)?(e.list.length===1&&(t=3,n=e.list[0]),t=e.isAll===!0?1:2):T(e)&&(t=E(e)?2:1),{value:n,status:t}):{status:t,value:n}}function Te(e,t,n){let r=!1;if(e&&(I(e)?r=e.list.length>0&&e.isAll!==!0:xe(e)?r=!0:T(e)&&(r=E(e)),n&&(r=!0)),r)switch(t==null?void 0:t.type){case 1:return 6;case 2:return 7;default:return 5}else switch(t==null?void 0:t.type){case 1:return 9;case 2:return 10;default:return 8}}function Ee(e,t,n){let r=t||0,i=e.join(`,`);return n?`${i}-${String(r)}`:i}var De=class{constructor(){A(this,`_heap`,void 0),this._heap=[]}push(e){this._heap.push(e),this._bubbleUp()}pop(){if(this.size()===0)return;let e=this._heap[0],t=this._heap.pop();return this.size()>0&&t&&(this._heap[0]=t,this._bubbleDown()),e}size(){return this._heap.length}_bubbleUp(){let e=this.size()-1;for(;e>0;){let t=Math.floor((e-1)/2);if(this._heap[t][0]<=this._heap[e][0])break;[this._heap[t],this._heap[e]]=[this._heap[e],this._heap[t]],e=t}}_bubbleDown(){let e=0,t=this.size(),n=this._heap[0];for(;;){let r=2*e+1,i=2*e+2,a,o,s=null;if(r<t&&(a=this._heap[r],a[0]<n[0]&&(s=r)),i<t&&(o=this._heap[i],(s===null&&o[0]<n[0]||s!==null&&o[0]<a[0])&&(s=i)),s===null)break;[this._heap[e],this._heap[s]]=[this._heap[s],this._heap[e]],e=s}}};function Oe(e){let t=new De,n=[];for(let n=0;n<e.length;n++)e[n].length>0&&t.push([e[n][0],n,0]);for(;t.size()>0;){let[r,i,a]=t.pop();if(n.push(r),a+1<e[i].length){let n=e[i][a+1];t.push([n,i,a+1])}}return n}function z(e,t){if(typeof Intl<`u`&&Intl.Collator){let n=e&&e!==t?[e,t]:[e??t];for(let e of n)try{return new Intl.Collator(e,{usage:`sort`,numeric:!1,sensitivity:`variant`,ignorePunctuation:!1}).compare}catch{}return new Intl.Collator(void 0,{usage:`sort`,numeric:!1,sensitivity:`variant`,ignorePunctuation:!1}).compare}return(e,t)=>e.localeCompare(t)}function ke(e,t,n,r=z()){let i=[],a=[],o=[],s=[];for(let n=0;n<e.length;n++){let r=e[n],c=t[n];c===2?i.push(r):c===1?a.push(r):c===4?o.push(r):s.push(r)}let c=(e,t)=>r(e,t)||n[e]-n[t];i.sort((e,t)=>Number(e)-Number(t)),a.sort(c),o.sort((e,t)=>Number(e)-Number(t)),s.sort(c);let l=[...i,...a,...o,...s],u={},d=0;for(let e of l)u[e]=d,d++;return u}function Ae(e,t,n){let r=se({type:1,operator:t,expected:n}),i=[];for(let[t,n]of Object.entries(e))r(Number(t))&&i.push(n);return i}function je(e,t,n,r,i,a){let o=(t==null?void 0:t.tuple[n])||e[i].tuple,s=o.getInfo();e[i]={tuple:o},e[a]===void 0&&(e[a]={tuple:new j}),e[a].tuple.unionTupleInfo(s)}function Me(e){return typeof e!=`number`}function Ne(e){return!(`baseFieldId`in e)&&!(`sortItems`in e)&&`customOrder`in e&&e.type===3}function Pe(e,t=!0){return(t?new Date(Date.UTC(1899,11,30)):new Date(Date.UTC(1904,0,1))).getTime()+e*864e5}function Fe(e){return e.getDataFieldType()===3}function B(e){return e.getDataFieldType()!==1}function Ie(e){return e.dataFieldType===3}function Le(e,t,n=!0){let r=Pe(e,n),i=new Date(r);switch(t){case`year`:return`${i.getFullYear()}`;case`month`:return`${i.getMonth()+1}`;case`date`:return`${i.getDate()}`;case`month-date`:return`${i.getMonth()+1}_${i.getDate()}`;case`hour`:return`${i.getHours()}`;case`minute`:return`${i.getMinutes()}`;case`quarter`:return`${Math.floor(i.getMonth()/3)+1}`;case`hour-minute`:return`${i.getHours()}_${i.getMinutes()}`;case`year-month`:return`${i.getFullYear()}_${i.getMonth()+1}`;case`year-quarter`:return`${i.getFullYear()}_${Math.floor(i.getMonth()/3)+1}`;case`year-month-date`:return`${i.getFullYear()}_${i.getMonth()+1}_${i.getDate()}`}return``}var V=class{getTupleKey(e){return this._recordTupleKeys[e]}getTupleItemsMap(){return this._tupleItemsMap}getTupleIndexesByKey(e){return this._tupleIndexMap[e]||[]}getTupleLabel(e){return this._tupleLabels[e]}getTupleType(e){return this._tupleTypes[e]}getTupleKeysByLabel(e){var t;return((t=this._tupleKeysByLabel[e])==null?void 0:t.concat())||[]}constructor(e,t,n){A(this,`id`,void 0),A(this,`name`,void 0),A(this,`hexCode`,void 0),A(this,`rangeKey`,void 0),A(this,`records`,[]),A(this,`items`,[]),A(this,`itemTypes`,[]),A(this,`_fieldDataType`,1),A(this,`hasInteger`,!1),A(this,`hasDecimal`,!1),A(this,`hasDate`,!1),A(this,`hasBlank`,!1),A(this,`hasText`,!1),A(this,`hasBoolean`,!1),A(this,`hasError`,!1),A(this,`format`,``),A(this,`maxNumber`,NaN),A(this,`minNumber`,NaN),A(this,`maxDate`,-1/0),A(this,`minDate`,1/0),A(this,`_itemIndexMap`,void 0),A(this,`_itemsMap`,{}),A(this,`_keyCounter`,0),A(this,`_tupleItemsMap`,Object.create(null)),A(this,`_tupleIndexMap`,Object.create(null)),A(this,`_tupleLabels`,Object.create(null)),A(this,`_tupleTypes`,Object.create(null)),A(this,`_recordTupleKeys`,[]),A(this,`_tupleKeysByLabel`,Object.create(null)),A(this,`_overflowRecordIndexes`,/* @__PURE__ */ new Set),A(this,`_tupleKeyCounter`,0),A(this,`_tupleItemCounter`,0),this.id=e,this.name=t,this.hexCode=n,this._itemIndexMap={}}getRangeKey(){return this.rangeKey}getformat(){return this.format}setRangeKey(e){this.rangeKey=e}getId(){return this.id}getName(){return this.name}setName(e){this.name=e}getFieldDataType(){return this.hasDate&&!this.hasText&&!this.hasDecimal&&!this.hasInteger&&!this.hasBoolean&&!this.hasError?4:(this.hasDecimal||this.hasInteger)&&!this.hasText&&!this.hasDate&&!this.hasBoolean&&!this.hasError?2:this._fieldDataType}getDataFieldType(){return 1}getItemSharedKey(e){return this.hexCode+n.TUPLE_FIELD_SEPARATOR+this._itemsMap[e]}getItemKey(e){let t=this.records[e];if(C(t))return String(t.v);if(M(t))return n.BLANK_PLACEHOLDER;let r=w(t)?t.error:String(t);return this._itemsMap[r]===void 0?n.otherDataKey:r}getTypeByKey(e){return this.itemTypes[this._itemsMap[e]]}getValue(e){return this.records[e]}addRecord(e,t){C(e)&&(this.format=e.f,this._updateDateItemKey(e,t));let n=M(e);n&&this._updateBlankItemKey(t),typeof e==`number`&&this._updateNumberItemKey(e,t),!n&&typeof e==`string`&&this._updateStringItemKey(e,t),typeof e==`boolean`&&this._updateBooleanItemKey(e,t),w(e)&&this._updateErrorItemKey(e.error,t),this.records.push(e),this.getDataFieldType()===1&&this._addTupleRecord(e,t)}_addTupleRecord(e,t){let r=this.getItemKey(this.records.length-1),i=1;C(e)?i=4:M(e)?i=5:typeof e==`number`?i=2:typeof e==`boolean`?i=3:w(e)&&(i=6);let a=i===1&&!r.startsWith(`[`)&&r!==n.otherDataKey?r:JSON.stringify([i,r]);(this._overflowRecordIndexes.has(t)||this._tupleItemsMap[a]===void 0&&i!==5&&this._tupleKeyCounter>=n.maxLimitItemCount)&&(r=n.otherDataKey,i=6,a=n.otherDataKey),this._tupleItemsMap[a]===void 0&&(this._tupleItemsMap[a]=this._tupleItemCounter++,i!==5&&this._tupleKeyCounter++,this._tupleIndexMap[a]=[],this._tupleLabels[a]=r,this._tupleTypes[a]=i,(this._tupleKeysByLabel[r]||=[]).push(a)),this._tupleIndexMap[a].push(t),this._recordTupleKeys.push(a)}getIndexesByKey(e){return this._itemIndexMap[e]||[]}getAllIndexMap(){return this._itemIndexMap}_updateDateItemKey(e,t){this.hasDate||=!0,this.maxDate=Math.max(this.maxDate,e.v),this.minDate=Math.min(this.minDate,e.v);let n=String(e.v);this._updateItemKey(n,t,4)}_updateBlankItemKey(e){this.hasBlank||=!0;let t=n.BLANK_PLACEHOLDER;this._itemIndexMap[t]===void 0?(this._itemIndexMap[t]=[e],this.items.push(t),this.itemTypes.push(5),this._itemsMap[t]=this.items.length-1):this._itemIndexMap[t].push(e)}_updateStringItemKey(e,t){this.hasText||=!0,this._updateItemKey(e,t,1)}_updateNumberItemKey(e,t){this.hasDecimal||=e%1!=0,this.hasInteger||=e%1==0,this.maxNumber=Math.max(this.maxNumber,e),this.minNumber=Math.min(this.minNumber,e);let n=String(e);this._updateItemKey(n,t,2)}_updateBooleanItemKey(e,t){this.hasBoolean=!0,this._updateItemKey(String(e),t,3)}_updateErrorItemKey(e,t){this.hasError=!0,this._updateItemKey(e,t,6)}_updateOtherItemKey(e){if(this._overflowRecordIndexes.add(e),this._itemIndexMap[n.otherDataKey]===void 0){this._itemIndexMap[n.otherDataKey]=[e];let t=this.items.push(n.otherDataKey);this._itemsMap[n.otherDataKey]=t-1,this.itemTypes.push(6),this._keyCounter++}else this._itemIndexMap[n.otherDataKey].push(e)}_updateItemKey(e,t,r){if(this._itemIndexMap[e]===void 0){if(this._keyCounter>=n.maxLimitItemCount)return this._updateOtherItemKey(t);this._itemIndexMap[e]=[t];let i=this.items.push(e);this._itemsMap[e]=i-1,this.itemTypes.push(r),this._keyCounter++}else this._itemIndexMap[e].push(t)}getItemsMap(){return this._itemsMap}getFieldInfo(){return{id:this.id,name:this.name,records:this.records,fieldDataType:this.getFieldDataType(),maxNumber:this.maxNumber,minNumber:this.minNumber,maxDate:this.maxDate,minDate:this.minDate,format:this.format,rangeKey:this.rangeKey,dataFieldType:this.getDataFieldType()}}toJSON(){return{id:this.id,name:this.name,fieldDataType:this.getFieldDataType(),hexCode:this.hexCode,rangeKey:this.rangeKey,dataFieldType:this.getDataFieldType()}}fromJSON(e){this.name=e.name,this.id=e.id,this.rangeKey=e.rangeKey,this.hexCode=e.hexCode}reset(){this.records=[],this.items=[],this.itemTypes=[],this._itemIndexMap={},this.hasInteger=!1,this.hasDecimal=!1,this.hasDate=!1,this.hasBlank=!1,this.hasText=!1,this.hasBoolean=!1,this.hasError=!1,this.format=``,this.maxNumber=NaN,this.minNumber=NaN,this.maxDate=-1/0,this.minDate=1/0,this._itemsMap={},this._keyCounter=0,this._recordTupleKeys.length=0,this._tupleKeyCounter=0,this._tupleItemCounter=0,this._overflowRecordIndexes.clear();for(let e of[this._tupleItemsMap,this._tupleIndexMap,this._tupleLabels,this._tupleTypes,this._tupleKeysByLabel])for(let t of Object.keys(e))delete e[t]}},H=class extends V{constructor(...e){super(...e),A(this,`originalFieldId`,void 0)}getTupleKey(e){return this.getItemKey(e)}getTupleItemsMap(){return this.getItemsMap()}getTupleIndexesByKey(e){return this.getIndexesByKey(e)}getTupleLabel(e){return e}getTupleType(e){return this.getTypeByKey(e)}getTupleKeysByLabel(e){return this.getItemsMap()[e]===void 0?[]:[e]}getFieldInfo(){return{...super.getFieldInfo(),originalFieldId:this.getOriginFieldId(),dataFieldType:this.getDataFieldType()}}toJSON(){return{...super.toJSON(),originalFieldId:this.originalFieldId}}};let Re=1e9,ze=[`year`,`quarter`,`month`,`day`,`hour`,`minute`,`second`];function Be(e){let t=1/0,n=-1/0;for(let r of e.records){let e=r.v;t=Math.min(t,e),n=Math.max(n,e)}return{start:t,end:n}}function Ve(e,r){let{units:i,daysInterval:a=1}=e;if(!i.length||new Set(i).size!==i.length||i.some(e=>!ze.includes(e))||!Number.isInteger(a)||a<1||a>1&&(i.length!==1||i[0]!==`day`))return;let o=r.records,s=n.dateSystem;if(!o.length||o.some(e=>!C(e)||!(0,t.excelSerialToDateTimeParts)(e.v,{dateSystem:s})))return;let c=Be(r),l=e.autoStart?c.start:e.start,u=e.autoEnd?c.end:e.end;if(!(l===void 0||u===void 0||l>u||!(0,t.excelSerialToDateTimeParts)(l,{dateSystem:s})||!(0,t.excelSerialToDateTimeParts)(u,{dateSystem:s})))return{...e,units:ze.filter(e=>i.includes(e))}}let He=[0,31,60,91,121,152,182,213,244,274,305,335];function Ue(e){return{...e,...e.dayLabels?{dayLabels:Object.freeze([...e.dayLabels])}:{}}}function We(e,t,n,r,i){if(e.dayLabels)return e.dayLabels[He[r-1]+i-1];if(e.groupByDate===!1)return i;let a=e.daysInterval??1;return Math.floor(n)+Math.floor((Math.floor(t)-Math.floor(n))/a)*a}var Ge=class extends H{constructor(e,t,n,r,i,a){super(e,t,n),A(this,`_dataIsValid`,!0),A(this,`_dateType`,void 0),A(this,`_excelLike`,void 0),this.originalFieldId=r,this._dateType=i??`year`,this._excelLike=a&&Ue(a)}setDateType(e){this._dateType=e}getDateType(){return this._dateType}getDateGroupValid(){return this._dataIsValid}refreshGroupField(e){if(this.reset(),this._dataIsValid=!0,this._excelLike){this._refreshExcelLike(e);return}let r=e.records,i=n.dateSystem===t.DateSystem.Date1900;for(let e=0;e<r.length;e++){let t=r[e];if(t==null)continue;if(!C(t)){this._dataIsValid=!1;break}let n=t.v,a=Le(n,this._dateType,i);this.addRecord(a,e)}}_refreshExcelLike(e){let r=this._excelLike;if(!Ve({...r,units:[r.unit]},e)||r.dayLabels&&(r.unit!==`day`||(r.daysInterval??1)!==1||r.dayLabels.length!==366)){this._dataIsValid=!1;return}let i=e.records.map(e=>e.v),a=Be(e),o=r.autoStart?a.start:r.start,s=r.autoEnd?a.end:r.end,c=n.dateSystem;for(let e=0;e<i.length;e++){let n=i[e];if(n<o){this.addRecord(-1,e);continue}if(n>s){this.addRecord(Re,e);continue}let a=(0,t.excelSerialToDateTimeParts)(n,{dateSystem:c}),l=(n-Math.floor(n))*86400,u=Math.round(l),d=2**-52*Math.max(1,Math.abs(n))*86400,f=Math.min(86399,Math.abs(l-u)<=d?u:Math.floor(l)),p;switch(r.unit){case`year`:p=a.year;break;case`quarter`:p=Math.ceil(a.month/3);break;case`month`:p=a.month;break;case`day`:p=We(r,n,o,a.month,a.day);break;case`hour`:p=Math.floor(f/3600);break;case`minute`:p=Math.floor(f/60)%60;break;case`second`:p=f%60}this.addRecord(p,e)}}getGroupInfo(){return{type:3,dateType:this._dateType,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}getDataFieldType(){return 3}getOriginFieldId(){return this.originalFieldId}getFieldInfo(){return{...super.getFieldInfo(),dateType:this._dateType,originalFieldId:this.originalFieldId,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}toJSON(){return{...super.toJSON(),dateType:this._dateType,originalFieldId:this.originalFieldId,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}fromJSON(e){super.fromJSON(e),this._dateType=(e==null?void 0:e.dateType)??`year`,this.originalFieldId=e.originalFieldId,this._excelLike=e.excelLike&&Ue(e.excelLike)}};function Ke(e,t,n){return!!e&&typeof e.id==`string`&&!!e.id&&!t.has(e.id)&&typeof e.name==`string`&&!!e.name.trim()&&!n.has(e.name)&&Array.isArray(e.members)&&e.members.length>=2}function U(e,n,r){if(!Array.isArray(e==null?void 0:e.groups)||!e.groups.length)return;let i=/* @__PURE__ */ new Set;if(n)try{for(let e of n.records)i.add((0,t.getRecordValueKey)(ue(e)))}catch{return}let a=/* @__PURE__ */ new Map,o=r&&U(r);for(let e of(o==null?void 0:o.groups)??[])a.set(e.id,new Set(e.members.map(t.getRecordValueKey)));let s=/* @__PURE__ */ new Set,c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Set,u=[];for(let r of e.groups){if(!Ke(r,s,c))return;s.add(r.id),c.add(r.name);let e=[];for(let o of r.members){var d;let s;try{s=(0,t.getRecordValueKey)(o)}catch{return}if(l.has(s)||n&&!i.has(s)&&!((d=a.get(r.id))!=null&&d.has(s)))return;l.add(s),e.push({...o})}u.push({id:r.id,name:r.name,members:e})}return{groups:u}}var W=class extends H{constructor(e,t,n,r,i){super(e,t,n),A(this,`_grouping`,void 0),A(this,`_dataIsValid`,!0),A(this,`_recordKeys`,[]),A(this,`_displayNames`,/* @__PURE__ */ new Map),this.originalFieldId=r,this._grouping=U(i)??i}getManualGroupValid(){return this._dataIsValid}getGrouping(){return U(this._grouping)??this._grouping}setGrouping(e){this._grouping=U(e)??e}reset(){super.reset(),this._recordKeys=[],this._displayNames.clear()}getItemKey(e){let t=this._recordKeys[e];return this.getItemsMap()[t]===void 0?n.otherDataKey:t}getDisplayNameByKey(e){return this._displayNames.get(e)??e}refreshGroupField(e){this.reset();let r=U(this._grouping);if(this._dataIsValid=!!r,!r)return;let i=/* @__PURE__ */ new Map;for(let e of r.groups)for(let n of e.members)i.set((0,t.getRecordValueKey)(n),e);for(let r=0;r<e.records.length;r++){let a=e.records[r],o,s;try{o=ue(a),s=(0,t.getRecordValueKey)(o)}catch{this.reset(),this._dataIsValid=!1;return}let c=i.get(s),l=JSON.stringify(c?[`group`,c.id]:[`member`,s]),u=(c==null?void 0:c.name)??(o.type===t.RecordValueType.Blank?n.BLANK_PLACEHOLDER:String(o.value)),d=c?1:this._getMemberType(o);super.addRecord(l,r),this.records[r]=(c==null?void 0:c.name)??a,this._recordKeys[r]=l,this._displayNames.set(l,u);let f=this.getItemsMap()[l];f!==void 0&&(this.itemTypes[f]=d)}}_getMemberType(e){switch(e.type){case t.RecordValueType.Blank:return 5;case t.RecordValueType.Number:return 2;case t.RecordValueType.Date:return 4;case t.RecordValueType.Boolean:return 3;case t.RecordValueType.Error:return 6;default:return 1}}getGroupInfo(){}getDataFieldType(){return 4}getOriginFieldId(){return this.originalFieldId}toJSON(){return{...super.toJSON(),dataFieldType:4,grouping:this.getGrouping()}}fromJSON(e){super.fromJSON(e),this.originalFieldId=e.originalFieldId,this._grouping=U(e.grouping)??e.grouping}};let qe=`__number_before__`,Je=`__number_after__`;function Ye(e,t){if(!Number.isFinite(e.interval)||e.interval<=0||!t.records.length)return;let n=1/0,r=-1/0;for(let e of t.records)if(!M(e)){if(typeof e!=`number`||!Number.isFinite(e))return;n=Math.min(n,e),r=Math.max(r,e)}let i=e.autoStart?n:e.start,a=e.autoEnd?r:e.end;if(!(i===void 0||a===void 0||!Number.isFinite(i)||!Number.isFinite(a)||i>a))return{start:i,end:a}}function Xe(e,t){return Ye(e,t)?{...e}:void 0}function Ze(e){let t=Ye({autoStart:!0,autoEnd:!0,interval:1},e);if(!t)return;let n=t.end-t.start;if(!Number.isFinite(n))return;let r=Math.round(Math.log10(n||Math.abs(t.start)||1))-1,i=Math.max(Number.MIN_VALUE,10**r),a=e.records.every(e=>M(e)||Number.isInteger(e));return{autoStart:!0,autoEnd:!0,...t,interval:a?Math.max(1,i):i}}var Qe=class extends H{constructor(e,t,n,r,i){super(e,t,n),A(this,`_grouping`,void 0),A(this,`_dataIsValid`,!0),A(this,`_bounds`,void 0),this.originalFieldId=r,this._grouping={...i}}getNumberGroupValid(){return this._dataIsValid}refreshGroupField(e){this.reset();let t=Ye(this._grouping,e);if(this._bounds=t,this._dataIsValid=!!t,!t)return;let{start:n,end:r}=t,i=(r-n)/this._grouping.interval;if(!Number.isFinite(i)){this._dataIsValid=!1,this._bounds=void 0;return}let a=Math.round(i),o=Math.min(2**-52*8*Math.max(1,Math.abs(i)),1e-6),s=Math.abs(i-a)<=o?a:Math.ceil(i),c=Math.max(0,s-1);for(let t=0;t<e.records.length;t++){let i=e.records[t];if(M(i)){this.addRecord(i,t);continue}let a=i,o=Math.min(2**-52*8*Math.max(Math.abs(a),Math.abs(n)),this._grouping.interval*1e-6),s=Math.min(2**-52*8*Math.max(Math.abs(a),Math.abs(r)),this._grouping.interval*1e-6);if(a<n&&n-a>o)this.addRecord(qe,t);else if(a>r&&a-r>s)this.addRecord(Je,t);else{let e=(Math.min(r,Math.max(n,a))-n)/this._grouping.interval;if(!Number.isFinite(e)){this.reset(),this._dataIsValid=!1;return}let i=Math.round(e),o=Math.min(2**-52*8*Math.max(1,Math.abs(e)),1e-6),s=Math.min(c,Math.abs(e-i)<=o?i:Math.floor(e)),l=Number((n+s*this._grouping.interval).toPrecision(15));this.addRecord(l,t)}}}getGroupInfo(){return{type:2,grouping:{...this._grouping,...this._bounds}}}getDataFieldType(){return 2}getOriginFieldId(){return this.originalFieldId}toJSON(){return{...super.toJSON(),dataFieldType:2,grouping:{...this._grouping}}}fromJSON(e){super.fromJSON(e),this.originalFieldId=e.originalFieldId,this._grouping={...e.grouping}}};function G(e){let t;if(Ie(e))t=new Ge(e.id,e.name,e.hexCode,e.originalFieldId);else if(e.dataFieldType===2){let n=e;t=new Qe(e.id,e.name,e.hexCode,n.originalFieldId,n.grouping)}else if(e.dataFieldType===4){let n=e;t=new W(e.id,e.name,e.hexCode,n.originalFieldId,n.grouping)}else t=new V(e.id,e.name,e.hexCode);return t.fromJSON(e),t}var $e=class e{constructor(e){A(this,`fieldIds`,[]),A(this,`displayNameRecord`,{}),A(this,`customFields`,{}),A(this,`range`,void 0),A(this,`dataRecordCount`,void 0),A(this,`host`,void 0),this.host=e}getFieldIds(){return this.fieldIds.concat()}getFieldDisplayNames(){return this.getFieldIds().map(e=>this.getDisplayName(e))}getFieldIdByDisplayName(e){for(let t of this.fieldIds)if(this.getDisplayName(t)===e)return t}getGroupFieldMap(){let e=/* @__PURE__ */ new Map;for(let t of this.fieldIds){let n=this.getFieldById(t);B(n)&&e.set(n.getOriginFieldId(),n.id)}return e}getGroupFieldsInfoByIds(e){let t=[];for(let n of e){let e=this.getFieldById(n);if(e&&!B(e))for(let e of this.fieldIds){let r=this.getFieldById(e);B(r)&&r.getOriginFieldId()===n&&t.push([e,n])}}return t}hasField(e){return this.fieldIds.includes(e)}hasSourceName(e){return this.fieldIds.some(t=>this.getFieldById(t).name===e)}setRange(e){e&&(this.range={...e})}addField(e,t){this.fieldIds.push(e);let n=this.getUniqueDataFieldName(t);this.displayNameRecord[e]=n}deleteField(e){let t=this.fieldIds.indexOf(e);t!==-1&&(this.fieldIds.splice(t,1),delete this.displayNameRecord[e])}getDisplayName(e){let t=this.displayNameRecord[e];return t===void 0?this.getFieldById(e).getName():t}setDisplayName(e,t,n){this.displayNameRecord[e]=this.getUniqueDataFieldName(t,n)}getUniqueDataFieldName(t,n){return e.getUniqueDataFieldName(t,n||this.displayNameRecord)}static getUniqueDataFieldName(e,t){let n=new Set(Object.values(t)),r=e,i=1;if(!n.has(r))return r;for(;;){if(r=`${e}(${i})`,!n.has(r))return r;i++}}updateAllDisplayName(){let e={};for(let t of this.fieldIds)e[t]=this.getUniqueDataFieldName(this.getFieldById(t).getName(),e);this.displayNameRecord=e}getFieldById(e){return this.customFields[e]?this.customFields[e]:this.host.dataFields[e]}setDataRecordCount(e){this.dataRecordCount=e}getDataRecordCount(){return this.dataRecordCount}getDataFieldBySourceName(e){for(let t of this.fieldIds)if(this.getFieldById(t).name===e)return this.getFieldById(t)}getFieldInfo(){let e=this.fieldIds.map(e=>this.getFieldById(e).getFieldInfo()),t=Object.keys(this.customFields).map(e=>this.customFields[e].getFieldInfo());return e.concat(t)}toJSON(){let e={};for(let t of this.fieldIds)e[t]=this.getFieldById(t).toJSON();return{fields:e,fieldIds:this.fieldIds.concat(),displayNameRecord:{...this.displayNameRecord},customFields:Object.keys(this.customFields).map(e=>this.customFields[e].toJSON()),dataRecordCount:this.dataRecordCount,range:this.range}}fromJSON(e){this.fieldIds=e.fieldIds.concat(),this.displayNameRecord=e.displayNameRecord?{...e.displayNameRecord}:{};let t=e.fields;for(let e in t)this.host.dataFields[e]||(this.host.dataFields[e]=G(t[e]));this.customFields={};for(let t of e.customFields){let e=G(t);this.customFields[e.id]=e}this.dataRecordCount=e.dataRecordCount,this.range=e.range}dispose(){this.fieldIds=[],this.customFields={},this.dataRecordCount=0,delete this.host}},et=class{constructor(){A(this,`dataFields`,{}),A(this,`collections`,{})}compileRecordFilter(e){throw Error(`A record filter evaluator must be provided by the host.`)}createDataFieldId(){let e=L(5);return this.dataFields[e]?this.createDataFieldId():e}getAutoDisplayNameFunction(){return null}getNoUsedDataFieldIds(e){let t=this.collections[e].getFieldIds(),n=/* @__PURE__ */ new Set;for(let t in this.collections)if(t!==e){let e=this.collections[t].getFieldIds();for(let t of e)n.add(t)}return t.filter(e=>!n.has(e))}createCollection(e,t){this.collections[e]=new $e(this);let{header:n,data:r}=this.getRangeData(t),i=this.collections[e],a=[];for(let e of n){let t=this.createDataFieldId(),n=new V(t,e,L(3));this.dataFields[t]=n,i.fieldIds.push(t),a.push(n)}let o=0;for(let e of r){let t=0;for(let n of a)n.addRecord(e[t],o),t++;o++}return i.setDataRecordCount(r.length),i}dispose(){for(let e in this.collections)this.collections[e].dispose();this.collections={},this.dataFields={}}toJSON(){let e={};for(let t in this.collections)e[t]=this.collections[t].toJSON();let t={};for(let e in this.dataFields)t[e]=this.dataFields[e].toJSON();return{collections:e,dataFields:t}}addCollection(e,t,n,...r){this.collections[e]=t,t.setRange(n)}fromJSON(e){for(let t in e.collections){let n=new $e(this);n.fromJSON(e.collections[t]),this.addCollection(t,n,n.range)}for(let t in e.dataFields)this.dataFields[t]=G(e.dataFields[t])}};let tt=`0.00%`;function nt(e){return e===2||e===3||e===4||e===5||e===6||e===7||e===10||e===12||e===13||e===14}var rt=class{constructor(){A(this,`pageView`,new it),A(this,`rowView`,new ot),A(this,`colView`,new st),A(this,`dataView`,new K),A(this,`cornerView`,new K),A(this,`formatMap`,{}),A(this,`groupInfo`,{})}setGroupInfo(e){this.groupInfo=e}setFormat(e,t){let n={},r=new Set(t.filter(e=>{var t;return nt((t=e.showDataAs)==null?void 0:t.type)}).map(e=>e.id));e.iterateField(e=>{let t=e.getFormat();t?n[e.id]=t:r.has(e.id)&&(n[e.id]=tt)});for(let e of r)n[e]??=tt;this.formatMap=n}toJSON(){let e={...this.formatMap};return{pageView:this.pageView.toJSON(),rowView:this.rowView.toJSON(),colView:this.colView.toJSON(),dataView:this.dataView.toJSON(),cornerView:this.cornerView.toJSON(),groupInfo:this.groupInfo,formatMap:e}}formJSON(e){this.pageView.fromJSON(e.pageView),this.rowView.fromJSON(e.rowView),this.colView.fromJSON(e.colView),this.dataView.fromJSON(e.dataView),this.cornerView.fromJSON(e.cornerView),this.formatMap={...e.formatMap},this.groupInfo=e.groupInfo}},K=class{constructor(){A(this,`rowCount`,0),A(this,`colCount`,0),A(this,`data`,{}),A(this,`info`,[]),A(this,`lastCol`,-1),A(this,`lastRow`,-1)}getLastCol(){return this.lastCol}getLastRow(){return this.lastRow}setValue(e,t,n){let r=this.getCell(e,t);this.lastCol=Math.max(this.lastCol,t),this.lastRow=Math.max(this.lastRow,e),r.v=n}setStyle(e,t,n){let r=this.getCell(e,t);r.s=n}setBlank(e,t){let n=this.getCell(e,t);n.t=2}setOther(e,t){let n=this.getCell(e,t);n.t=8}getCell(e,t){return this.data[e]||(this.data[e]={}),this.data[e][t]||(this.data[e][t]={}),this.data[e][t]}setInfo(e,t){this.info[e]=t}buildPathMap(e){let t={},n=0;return this.info.forEach(r=>{let i=Ee(r.paths,r.valueIndex,e);t[i]=n,n++}),t}setRowCount(e){this.rowCount=e}setColCount(e){this.colCount=e}getRowCount(){return this.rowCount}getColCount(){return this.colCount}getValue(e,t){var n;return(n=this.data[e])==null||(n=n[t])==null?void 0:n.v}getStyle(e,t){var n;return(n=this.data[e])==null||(n=n[t])==null?void 0:n.s}toJSON(){return{data:this.data,info:this.info.map(e=>({...e,paths:e.paths.concat()})),rowCount:this.rowCount,colCount:this.colCount,lastCol:this.lastCol,lastRow:this.lastRow}}fromJSON(e){this.data=e.data,this.info=e.info.map(e=>({...e,paths:e.paths.concat()})),this.rowCount=e.rowCount,this.colCount=e.colCount,this.lastCol=e.lastCol,this.lastRow=e.lastRow}},it=class extends K{constructor(...e){super(...e),A(this,`ranges`,[]),A(this,`lastCol`,-1),A(this,`lastRow`,-1)}setPageIndex(e,t,n){let r=this.getCell(e,t);r.i=n}addRange(e){this.ranges.push(e)}getRanges(){return this.ranges}setLastCol(e){this.lastCol=e}setLastRow(e){this.lastRow=e}getLastCol(){return this.lastCol}getLastRow(){return this.lastRow}toJSON(){let e=this.ranges.map(e=>({...e}));return{...super.toJSON(),ranges:e,lastCol:this.lastCol,lastRow:this.lastRow}}fromJSON(e){this.ranges=e.ranges.map(e=>({...e})),this.lastCol=e.lastCol,this.lastRow=e.lastRow,super.fromJSON(e)}},at=class extends K{constructor(...e){super(...e),A(this,`headerMap`,[])}addHeaderMapItem(e,t){this.headerMap[e]=t}getHeaderMapItem(e){return this.headerMap[e]}toJSON(){let e=this.headerMap.map(e=>({...e}));return{...super.toJSON(),headerMap:e}}fromJSON(e){this.headerMap=e.headerMap.map(e=>({...e})),super.fromJSON(e)}},ot=class extends at{getLastCol(){return Math.max(this.lastCol,this.headerMap.length-1)}},st=class extends at{getLastRow(){return Math.max(this.lastRow,this.headerMap.length-1)}};let ct=e=>typeof e==`object`&&e.prefix!==void 0,lt=e=>typeof e==`object`&&e.errorType!==void 0;var ut=class{static prepareLayoutCtx(e,t,n){let r=new rt,i=t.rowDeep,a=t.colDeep,o=e.getOptions(),s=o.pageWrap||1,c=!!o.pageOverThenDown,l=n.valueQueryInfo,u=n.valueFilterInfo,d={};for(let e of u)d[e.fieldId]=e;let f=e.isColMultiMeasure(),p=e.isRowMultiMeasure(),m=e.getValueIndex();l.length>1&&(m===-1&&(m=a),!f&&!p&&(f=!0),f&&(m=Math.min(m,a)),p&&(m=Math.min(m,i)));let h=l.length,g={},_={},v=0;for(let e of l)g[e.id]=e,_[e.id]=v,v++;let y=!!e.getOptions().repeatRowLabels,b=!!e.getOptions().repeatColLabels,ee=e.getOptions().showRowSubtotal??!0,te=e.getOptions().showRowGrandTotal??!0,ne=e.getOptions().showColSubtotal??!0,re=e.getOptions().showColGrandTotal??!0,x=e.getOptions().rowSubtotalPosition??1;return{isColMultiMeasure:f,isRowMultiMeasure:p,valueIndex:m,rowDeep:i,colDeep:a,rowNodeTree:t.rowNodeTree,colNodeTree:t.colNodeTree,measuresMap:g,measureIndexesMap:_,measureCount:h,pageWrap:s,pageOverThenDown:c,queryData:n,view:r,valueQueryInfo:l,colMap:{},summaryManager:t,collapseInfo:n.collapseInfo,repeatRowLabels:y,repeatColLabels:b,valueFilterMap:d,showRowSubtotal:ee,showRowGrandTotal:te,showColSubtotal:ne,showColGrandTotal:re,rowSubtotalPosition:x}}static layoutPage(e){let{pageWrap:t,pageOverThenDown:n,view:r}=e,i=r.pageView,a=e.queryData.filterQueryInfo.map(({displayName:t,filterInfo:n,dataFieldId:r})=>{var i;let{status:a,value:o}=we(n);if(o===void 0)return{displayName:t,status:a};let s=(i=e.summaryManager.dimensionMap[r])==null?void 0:i.field,c=s==null?void 0:s.getTypeByKey(o);return{displayName:t,status:a,value:s instanceof W?s.getDisplayNameByKey(o):o,itemType:c}});n?this.layoutPageOverThenDown(a,i,t):this.layoutPageDownThenOver(a,i,t)}static _setPageFilterLabel(e,t,r,i,a){let{displayName:o,value:s,status:c,itemType:l}=a;e.setValue(t,r,o),e.setValue(t,r+1,s),e.setStyle(t,r+1,c),l===5?e.setBlank(t,r+1):l===6&&s===n.otherDataKey&&e.setOther(t,r+1),e.setPageIndex(t,r,i),e.setPageIndex(t,r+1,i)}static layoutPageOverThenDown(e,t,n=1){let r=0,i=0,a=0;for(let o of e)this._setPageFilterLabel(t,i,r*3,a,o),r++,r===n&&(r=0,i++),a++;let o=e.length,s=Math.ceil(o/n),c=o%n;for(let e=0;e<n;e++){let n=c>=e+1?s:s-1;t.addRange({row:0,col:e*3,rowCount:n,colCount:2})}t.setLastRow(s-1);let l=o>n?n*3-2:o*3-2;t.setLastCol(l),t.setRowCount(t.lastRow+1),t.setColCount(t.lastCol+1)}static layoutPageDownThenOver(e,t,n=1){let r=0,i=0,a=0;for(let o of e)this._setPageFilterLabel(t,r,i*3,a,o),r++,r===n&&(r=0,i++),a++;let o=e.length,s=0;for(;s<o;){let e=Math.min(n,o-s);t.addRange({row:0,col:s*3/n,rowCount:e,colCount:2}),s+=n}t.setLastRow(Math.min(o,n)-1),t.setLastCol(Math.ceil(o/n)*3-2),t.setRowCount(t.lastRow+1),t.setColCount(t.lastCol+1)}static layoutCol(e){this.layoutColHeader(e),this.layoutColFields(e),e.summaryManager.prepareShowDataAs(e.queryData)}static layoutCorner(e){}static layoutColHeader(e){let{colDeep:t,view:n,isColMultiMeasure:r,valueIndex:i}=e,a=e.queryData.colQueryInfo,o=n.colView,s=0,c=!1;for(let n=0;n<t;n++){let{displayName:l,filterInfo:u,sortInfo:d,id:f,dataFieldId:p}=a[n];t!==0&&r&&n===i&&(o.setValue(0,s,` Σ值`),c=!0,s++),o.setValue(0,s,l),o.addHeaderMapItem(s+1,{isValue:!1,level:n,tableFieldId:f,dataFieldId:p}),o.setStyle(0,s,Te(u,d,e.valueFilterMap[f])),s++}t!==0&&!c&&r&&(o.setValue(0,s,` Σ值`),o.addHeaderMapItem(s+1,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}))}static setValueSize(e){let{view:t}=e,{rowView:n,colView:r,dataView:i}=t;i.setRowCount(n.getRowCount()),i.setColCount(r.getColCount())}static layoutNoneColFields(e,t){let{measureCount:n,isColMultiMeasure:r,valueQueryInfo:i}=e,a=r?i.map(e=>e.id):[],o=this.buildColPathMap(e,t);return n===0?{itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:o}:(this.updateColumnSubtotal(e,0,t,a,o),{itemSize:0,topTotalSize:0,bottomTotalSize:r?n:1,colPathMap:o})}static layoutColFields(e){let{colNodeTree:t,view:n,colDeep:r,isColMultiMeasure:i,valueQueryInfo:a,measureCount:o}=e,s=i?a.map(e=>e.id):[],c=r===0?this.layoutNoneColFields(e,t):this.layoutColNode(e,t,0,s),l=n.colView;if(o===0&&r===0)l.setRowCount(0);else if(o!==0&&r===0&&i)l.setRowCount(1);else if(o!==0&&r===0)l.setRowCount(0);else{let e=r===0?0:1,t=i?r+1+e:r+e;l.setRowCount(t)}l.setColCount(this.getRealSize(c)),e.colMap=l.buildPathMap(i)}static isLeafNode(e,t){return e.getLevel()===t}static getRealSize(e){return e.itemSize+e.topTotalSize+e.bottomTotalSize}static getNodeValue(e,t,n){let{queryData:r,summaryManager:i}=e,{valueQueryInfo:a}=r;return i.getCellValue(t.getIndex(),a[n])}static doColLeafNode(e,t,n,r){let{view:i,isColMultiMeasure:a,valueIndex:o,measureCount:s,measuresMap:c,measureIndexesMap:l,colDeep:u}=e,d=i.colView,f=t.getLevel(),p=this.shouldMultipleNode(a,f,o),m=this.buildColPathMap(e,t),h=t.getFieldsId();if(p){let e=0,i=u===0?0:1;for(let s of r){let r=this.getRowIndexForColHeader(f,o,a)+i;d.setValue(r,n+e,c[s].displayName),d.setInfo(n+e,{level:f,paths:t.getPaths(),valueIndex:a?e:-1,colPathMap:m,tableFieldId:h}),e++}return{itemSize:1*s,topTotalSize:0,bottomTotalSize:0,colPathMap:m}}{let e=a?l[r[0]]:-1;return d.setInfo(n,{level:f,paths:t.getPaths(),valueIndex:e,colPathMap:m,tableFieldId:h}),{itemSize:1,topTotalSize:0,bottomTotalSize:0,colPathMap:m}}}static buildColPathMap(e,t){let n=[],r={};return r[``]=t.getIndex(),t.getIsLeaf()||t.iterate(t=>{this.iterateColLeafNodeChildren(e,t,n.concat([t.name]),r)}),r}static iterateColLeafNodeChildren(e,t,n,r){let{summaryManager:i}=e,a=i.getPathKeyWithFiledId(n,i.rowTableIdList);r[a]=t.getIndex(),t.isLeaf||t.iterate(t=>{let i=n.concat([t.name]);this.iterateColLeafNodeChildren(e,t,i,r)})}static buildColPathMapForCollapse(e,t,n){if(this.isLeafNode(t,e.colDeep)){let r=this.buildColPathMap(e,t);n.push(r)}else t.iterate(t=>{this.buildColPathMapForCollapse(e,t,n)})}static doColBranchNode(e,t,n,r){let{isColMultiMeasure:i,valueIndex:a,view:o,measuresMap:s,summaryManager:c}=e,l=t.getLevel(),u=n,d={itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:{}},f=[],p=this.shouldMultipleNode(i,t.getLevel(),a),m=c.getPathKeyWithFiledId(t.getPaths(),c.colTableIdList);if(p){let n=0;for(let c of r){let r=this.getRowIndexForColHeader(l,a,i);o.colView.setValue(r+1,u,s[c].displayName),t.iterate(t=>{let r=this.layoutColNode(e,t,u,[c]),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=r;d.itemSize+=i,d.topTotalSize+=a,d.bottomTotalSize+=o,u+=this.getRealSize(r),n===0&&f.push(r.colPathMap)}),n++}d.colPathMap=c.combinePathMapList(f,m),u++}else t.iterate(t=>{let n=this.layoutColNode(e,t,u,r),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=n;d.itemSize+=i,d.topTotalSize+=a,d.bottomTotalSize+=o,u+=this.getRealSize(n),f.push(n.colPathMap)}),d.colPathMap=c.combinePathMapList(f,m);return d}static shouldMultipleTotal(e,t,n){return e&&t<=n}static shouldMultipleNode(e,t,n){return e&&t===n}static getRowIndexForColHeader(e,t,n){return n?e<=t?e:e+1:e}static setLabelValue(e,t,n,r,i,a){e.setValue(t,n,r),i&&e.setBlank(t,n),a&&e.setOther(t,n)}static layoutColNode(e,t,n,r){let{view:i,colDeep:a,measureCount:o,isColMultiMeasure:s,valueIndex:c,summaryManager:l}=e,u=i.colView,d=t.displayName,f=t.type===5,p=t.type===6,m=t.type===4||t.type===2?Number(d):d,h=t.getLevel(),g=this.getRowIndexForColHeader(h,c,s),_=this.shouldMultipleTotal(s,h,c),v=t.getCollapse(),y=this.isLeafNode(t,a);if(h!==0&&(this.setLabelValue(u,g,n,m,f,p),y||u.setStyle(g,n,v?11:12)),v){if(y)return{itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:this.buildColPathMap(e,t)};let i=[];this.buildColPathMapForCollapse(e,t,i);let a=l.getPathKeyWithFiledId(t.getPaths(),l.colTableIdList),s=l.combinePathMapList(i,a),c=h!==0||e.showColGrandTotal;return c&&this.updateColumnSubtotal(e,n,t,r,s),{itemSize:0,topTotalSize:0,bottomTotalSize:c?_?o:1:0,colPathMap:s}}if(y)return this.doColLeafNode(e,t,n,r);{let i=this.doColBranchNode(e,t,n,r),a=this.getRealSize(i);if(e.repeatColLabels&&h!==0)for(let e=n+1;e<n+a;e++)this.setLabelValue(u,g,e,m,f,p);return(h===0?e.colDeep===0||e.showColGrandTotal:e.showColSubtotal)&&(this.updateColumnSubtotal(e,n+a,t,r,i.colPathMap),_?i.bottomTotalSize+=o:i.bottomTotalSize++),i}}static getMeasureIndex(e,t,n){return e?n[t[0]]:-1}static updateColumnSubtotal(e,t,r,i,a){let{view:o,isColMultiMeasure:s,valueIndex:c,measuresMap:l,measureIndexesMap:u,colDeep:d,valueQueryInfo:f}=e,p=o.colView,m=r.displayName,h=r.getLevel(),g=this.shouldMultipleTotal(s,h,c);if(h===0){let e=d===0?0:1;if(g){let n=0;for(let o of i){let{displayName:i}=l[o];p.setValue(e,n+t,`${i}`),p.setStyle(e,n+t,15),p.setInfo(n+t,{level:h,paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,colPathMap:a,tableFieldId:``}),n++}}else{d===0&&f.length===1?p.setValue(e,t,f[0].displayName):(p.setValue(e,t,``),p.setStyle(e,t,14));let n=this.getMeasureIndex(s,i,u);p.setInfo(t,{level:h,paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,colPathMap:a,tableFieldId:``})}}else{let e=this.getRowIndexForColHeader(h,c,s),o=r.getCollapse(),d=r.getFieldsId(),f=r.type===5,_=r.type===6;if(o&&e++,g){let e=0,n=h;for(let s of i){let{displayName:i}=l[s],c=o?i:{prefix:r.displayName,value:i};p.setStyle(n,t+e,13),this.setLabelValue(p,n,t+e,c,!o&&f,!o&&_),p.setInfo(t+e,{level:h,paths:r.getPaths(),valueIndex:e,isBottomTotal:!0,colPathMap:a,tableFieldId:d}),e++}}else{o||(this.setLabelValue(p,e,t,m,f,_&&r.name===n.otherDataKey),p.setStyle(e,t,13));let c=this.getMeasureIndex(s,i,u);p.setInfo(t,{level:h,paths:r.getPaths(),valueIndex:c,isBottomTotal:!0,colPathMap:a,tableFieldId:d})}}}},dt=class extends ut{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutHeadersWithoutColumnDimensions(e){if(e.colDeep!==0)return;let t=e.view.colView;(e.rowDeep!==0||e.measureCount===1||e.isRowMultiMeasure)&&(e.measureCount===1&&(t.setValue(0,0,e.valueQueryInfo[0].displayName),t.setInfo(0,this.createSingleValueHeaderInfo(e,t.info[0]))),t.setRowCount(1))}static createSingleValueHeaderInfo(e,t){let n=e.valueQueryInfo[0];return{...t,tableFieldId:n.id,dataFieldId:n.dataFieldId,isValue:!0}}static getCornerSize(e){let{rowDeep:t,colDeep:n,measureCount:r,isRowMultiMeasure:i,isColMultiMeasure:a}=e,o=e.view.colView.getRowCount();o===0&&t!==0&&(o=1);let s=e.view.rowView.getColCount();return t===0&&(r===0?s=0:r===1?(s=n===0?0:1,o=n===0?1:o):i?s=1:a&&(s=0)),{rowCount:s,colCount:o}}static layoutCorner(e){let{rowDeep:t,colDeep:n,view:r,measureCount:i,isRowMultiMeasure:a,valueIndex:o}=e,s=e.queryData.rowQueryInfo,c=e.queryData.valueQueryInfo,l=r.cornerView,u=r.rowView,{rowCount:d,colCount:f}=this.getCornerSize(e);l.setRowCount(f),l.setColCount(d),i===1&&n>0&&t>0&&l.setValue(0,0,c[0].displayName);let p=0,m=!1,h=f-1;for(let n=0;n<t;n++){let{displayName:t,filterInfo:r,sortInfo:i,dataFieldId:c,id:d}=s[n];a&&n===o&&(l.setValue(h,p,` Σ值`),m=!0,l.setInfo(p,{paths:[],level:-1,tableFieldId:``,dataFieldId:``,valueIndex:-1,isValue:!0}),u.addHeaderMapItem(p,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}),p++),l.setValue(h,p,t),u.addHeaderMapItem(p,{isValue:!1,level:n,tableFieldId:d,dataFieldId:c}),l.setStyle(h,p,Te(r,i,e.valueFilterMap[d])),l.setInfo(p,{paths:[],level:n,tableFieldId:d,dataFieldId:c,valueIndex:-1}),p++}!m&&a&&(l.setValue(h,p,` Σ值`),u.addHeaderMapItem(p,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}))}static layoutRowFields(e){let{rowNodeTree:t,view:n,rowDeep:r,colDeep:i,isRowMultiMeasure:a,isColMultiMeasure:o,valueQueryInfo:s,measureCount:c}=e,l=a?s.map(e=>e.id):[],u=this.layoutRowNode(e,t,0,l),d=n.rowView;d.setRowCount(this.getRealSize(u)),r===0?c===0||o?d.setColCount(0):a?d.setColCount(1):d.setColCount(i===0?0:1):d.setColCount(a?r+1:r)}static doRowLeafNode(e,t,n,r){let{view:i,isRowMultiMeasure:a,valueIndex:o,measureCount:s,measuresMap:c,measureIndexesMap:l}=e,u=i.rowView,d=t.getLevel(),f=t.type===5,p=t.type===6,m=this.shouldMultipleNode(a,d,o),h=t.getFieldsId();if(m){let i=0;for(let s of r){let r=this.getColIndexForRowHeader(d,o,a)+1;u.setValue(n+i,r,c[s].displayName),f&&o!==t.getLevel()&&u.setBlank(n+i,r),p&&o!==t.getLevel()&&u.setOther(n+i,r);let l=t.getPaths();u.setInfo(n+i,{paths:l,valueIndex:a?i:-1,level:d,tableFieldId:h}),this.repeatRowLabelsForNode(e,t,n+i),this.startContent(e,t,n+i,i),i++}return{itemSize:1*s,topTotalSize:0,bottomTotalSize:0}}{let i=a?l[r[0]]:-1,o=t.getPaths();return u.setInfo(n,{level:d,paths:o,valueIndex:i,tableFieldId:h}),this.repeatRowLabelsForNode(e,t,n),d===0&&s===0?{itemSize:0,topTotalSize:0,bottomTotalSize:0,valueIndex:i}:(this.startContent(e,t,n,i),{itemSize:1,topTotalSize:0,bottomTotalSize:0,valueIndex:i})}}static startContent(e,t,n,r){let{measureCount:i}=e;i<=0||(t.iterate(t=>{this.layoutValueNode(e,t,n,r,[t.name])}),this.layoutValueLeafNode(e,t,n,[],r))}static layoutValueNode(e,t,n,r,i){let a=t.getIsLeaf();this.layoutValueLeafNode(e,t,n,i,r),a||(this.layoutValueNodeSubtotal(e,n),t.iterate(t=>{let a=i.concat(t.name);this.layoutValueNode(e,t,n,r,a)}))}static layoutValueNodeSubtotal(e,t){let{view:n,summaryManager:r,valueQueryInfo:i,rowDeep:a,measureCount:o}=e,s=n.dataView,c=n.colView,l=n.rowView.info[t],u=l.paths;if(!(l.level===a||o<=0))for(let n=0;n<c.info.length;n++){let a=c.info[n],{colPathMap:o}=a,d=r.getPathKeyWithFiledId(u,r.rowTableIdList),f=o==null?void 0:o[d],p=this.getMeasureInfoByIndex(e,i,l,a);if(f){let e=r.getCellValue(f,p);e!==void 0&&s.setValue(t,n,e)}}}static getMeasureInfoByIndex(e,t,n,r){let{isColMultiMeasure:i,isRowMultiMeasure:a}=e;return i?t[r.valueIndex]:a?t[n.valueIndex]:t[0]}static layoutValueLeafNode(e,t,n,r,i){let{view:a,colMap:o,isColMultiMeasure:s,measureCount:c}=e,l=a.dataView,u=[];if(i===-1){if(s)for(let e=0;e<c;e++)u.push(e);else c>0&&u.push(0)}else u.push(i);for(let i of u){let a=o[Ee(r,i,s)],c=this.getNodeValue(e,t,i);c!==void 0&&l.setValue(n,a,c)}}static getColIndexForRowHeader(e,t,n){return n?e<=t?e-1:e:e-1}static repeatRowLabelsForNode(e,t,n){if(!e.repeatRowLabels)return;let r=e.view.rowView,i=t.displayPaths,a=Math.min(t.getLevel(),e.rowDeep);for(let t=1;t<=a;t++){let a=this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure);a<0||r.setValue(n,a,i[t-1])}}static doRowBrachNode(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,view:o,measuresMap:s}=e,c=t.getLevel(),l=n,u={itemSize:0,topTotalSize:0,bottomTotalSize:0},d=this.shouldMultipleNode(i,t.getLevel(),a),f=t.type===5,p=t.type===6;if(d){for(let n of r){let r=this.getColIndexForRowHeader(c,a,i),d=o.rowView;d.setValue(l,r+1,s[n].displayName),f&&d.setBlank(l,r+1),p&&d.setOther(l,r+1),t.iterate(t=>{let r=this.layoutRowNode(e,t,l,[n]),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=r;u.itemSize+=i,u.topTotalSize+=a,u.bottomTotalSize+=o,l+=this.getRealSize(r)})}l++}else t.iterate(t=>{let n=this.layoutRowNode(e,t,l,r),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=n;u.itemSize+=i,u.topTotalSize+=a,u.bottomTotalSize+=o,l+=this.getRealSize(n)});return u}static layoutRowNode(e,t,n,r){let{view:i,rowDeep:a,isRowMultiMeasure:o,valueIndex:s,measureCount:c,colDeep:l,valueQueryInfo:u}=e,d=i.rowView,f=t.displayName,p=t.getLevel(),m=this.getColIndexForRowHeader(p,s,o),h=t.getCollapse(),g=this.isLeafNode(t,a),_=t.type===5,v=t.type===6,y=t.type===4||t.type===2,b=p===0;if(!b){let e=y?Number(f):f;d.setValue(n,m,e),_&&d.setBlank(n,m),v&&d.setOther(n,m),g||d.setStyle(n,m,h?11:12)}if(g){let i=b&&!o&&a===0&&l!==0&&u.length===1;b&&!o&&c>0&&(a===0?l!==0&&d.setValue(n,0,u[0].displayName):l!==0&&u.length===1?d.setValue(n,0,u[0].displayName):(d.setValue(n,0,``),d.setStyle(n,0,14)));let s=this.doRowLeafNode(e,t,n,r);return i&&d.setInfo(n,this.createSingleValueHeaderInfo(e,d.info[n])),s}{let i=n,a={itemSize:0,topTotalSize:0,bottomTotalSize:0};h||(a=this.doRowBrachNode(e,t,n,r),i+=this.getRealSize(a));let l=this.shouldMultipleTotal(o,p,s);return(b?e.rowDeep===0||e.showRowGrandTotal:e.showRowSubtotal||h)&&(this.updateRowSubtotal(e,i,t,r),l?a.bottomTotalSize+=c:a.bottomTotalSize++),a}}static updateRowSubtotal(e,t,r,i){let{view:a,isRowMultiMeasure:o,valueIndex:s,measuresMap:c,measureIndexesMap:l,rowDeep:u,colDeep:d,valueQueryInfo:f}=e,p=a.rowView,m=r.getLevel(),h=this.shouldMultipleTotal(o,m,s);if(m===0){if(h){let n=0;for(let a of i){let{displayName:i}=c[a];p.setValue(n+t,0,`${i}`),p.setStyle(n+t,0,15),p.setInfo(n+t,{paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,level:m,tableFieldId:``}),this.layoutValueNodeSubtotal(e,t+n),n++}}else{u===0&&d!==0&&f.length===1?p.setValue(t,0,f[0].displayName):(p.setValue(t,0,``),p.setStyle(t,0,14));let n=o?l[i[0]]:-1;p.setInfo(t,{paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,level:m,tableFieldId:``}),u===0&&d!==0&&f.length===1&&p.setInfo(t,this.createSingleValueHeaderInfo(e,p.info[t])),this.layoutValueNodeSubtotal(e,t)}}else{let a=this.getColIndexForRowHeader(m,s,o),u=r.getCollapse(),d=r.getFieldsId(),f=r.type===5,g=r.type===6;if(u&&a++,h){let n=0,o=e.valueIndex;for(let s of i){let{displayName:i}=c[s];if(u)p.setValue(t+n,o,i);else{let e=u?`${i}`:{prefix:r.displayName,value:i};p.setValue(t+n,a,e),f&&p.setBlank(t+n,a),g&&p.setOther(t+n,a),p.setStyle(t+n,a,13)}p.setInfo(t+n,{paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,t+n),n++}}else{u||(this.setLabelValue(p,t,a,r.displayName,f,g&&r.name===n.otherDataKey),p.setStyle(t,a,13));let s=o?l[i[0]]:-1;p.setInfo(t,{paths:r.getPaths(),valueIndex:s,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,t)}}}},ft=class extends dt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutRowFields(e){let{rowNodeTree:t,view:n,isRowMultiMeasure:r,valueQueryInfo:i,measureCount:a,rowDeep:o,showRowGrandTotal:s}=e,c=n.rowView,l=r?i.map(e=>e.id):[],u=0;if(o===0)a>0&&(u=this.writeGrandTotalRows(e,t,u,l));else{if(this.shouldSplitRootByValues(e))for(let n of l)u=this.writeRootValueHeaderRow(e,u,n),u=this.layoutRowChildren(e,t,u,[n]);else u=this.layoutRowChildren(e,t,u,l);s&&(a>0||o>0)&&(u=this.writeGrandTotalRows(e,t,u,l))}c.setRowCount(u),c.setColCount(this.getRowColCount(e))}static shouldSplitRootByValues(e){return e.isRowMultiMeasure&&e.valueIndex===0}static layoutRowChildren(e,t,n,r){let i=n;return t.iterate(t=>{i=this.layoutRowNodeToCursor(e,t,i,r)}),i}static layoutRowNode(e,t,n,r){return{itemSize:this.layoutRowNodeToCursor(e,t,n,r)-n,topTotalSize:0,bottomTotalSize:0}}static layoutRowNodeToCursor(e,t,n,r){let i=this.isLeafNode(t,e.rowDeep),a=t.getCollapse();if(!i){if(this.shouldWriteMultiValueSubtotalAtBottom(e,t)&&!a){let i=this.writeParentItemRow(e,t,n);if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex))for(let n of r)i=this.writeValueHeaderRow(e,t,i,n),i=this.layoutRowChildren(e,t,i,[n]);else i=this.layoutRowChildren(e,t,i,r);return e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldWriteSubtotalAtBottom(e)&&!a){let i=this.writeParentItemRow(e,t,n);return i=this.layoutRowChildren(e,t,i,r),e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r)i=this.writeParentRows(e,t,i,[n]),a||(i=this.layoutRowChildren(e,t,i,[n]));return i}let i=this.writeParentRows(e,t,n,r);return a||(i=this.layoutRowChildren(e,t,i,r)),i}return this.writeLeafRows(e,t,n,r)}static shouldWriteSubtotalAtBottom(e){return e.rowSubtotalPosition===2}static shouldWriteMultiValueSubtotalAtBottom(e,t){return e.isRowMultiMeasure&&e.valueIndex>0&&t.getLevel()<=e.valueIndex}static writeParentItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),a.setStyle(n,r,12),a.setInfo(n,this.createRowInfo(t,{rowType:`item`})),n+1}static writeValueHeaderRow(e,t,n,r){let i=this.getValueLabelCol(e,t.getLevel()),a=e.measureIndexesMap[r],o=e.view.rowView;return o.setValue(n,i,e.measuresMap[r].displayName),o.setInfo(n,this.createRowInfo(t,{valueIndex:a,isValue:!0,dataFieldId:e.measuresMap[r].dataFieldId,rowType:`value`})),n+1}static writeRootValueHeaderRow(e,t,n){let r=e.measureIndexesMap[n],i=e.measuresMap[n],a=e.view.rowView;return a.setValue(t,0,i.displayName),a.setInfo(t,{paths:[],valueIndex:r,level:-1,tableFieldId:``,dataFieldId:i.dataFieldId,isValue:!0,rowType:`value`}),t+1}static writeParentRows(e,t,n,r){if((e.showRowSubtotal||t.getCollapse())&&e.isRowMultiMeasure&&r.length>1&&this.shouldMultipleTotal(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeParentRow(e,t,i,r,e.measuresMap[n].displayName),i++}return i}let i=e.isRowMultiMeasure&&r.length===1?e.measureIndexesMap[r[0]]:-1,a=e.isRowMultiMeasure&&r.length===1&&e.valueIndex>0&&e.valueIndex<=t.getLevel()?e.measuresMap[r[0]].displayName:void 0;return this.writeParentRow(e,t,n,i,a),n+1}static writeParentRow(e,t,n,r,i){let{showRowSubtotal:a}=e,o=t.getCollapse(),s=a||o,c=this.getRowLabelCol(e,t.getLevel()),l=i?this.getValueLabelCol(e,t.getLevel()):c,u=this.getNodeDisplayValue(t),d=e.view.rowView;d.setValue(n,c,u),this.applyNodeValueType(d,n,c,t),d.setStyle(n,c,o?11:12),i&&l!==c&&d.setValue(n,l,i),d.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:s,isSubtotal:s,isTopTotal:s,rowType:s?`subtotal`:`item`})),s&&this.layoutValueNodeSubtotal(e,n)}static writeBottomSubtotalRows(e,t,n,r){let{isRowMultiMeasure:i,measuresMap:a}=e;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeBottomSubtotalRow(e,t,i,r,a[n].displayName),i++}return i}return this.writeBottomSubtotalRow(e,t,n,i?e.measureIndexesMap[r[0]]:-1),n+1}static writeBottomSubtotalRow(e,t,n,r,i){let a=this.getRowLabelCol(e,t.getLevel()),o=this.getNodeDisplayValue(t),s=e.view.rowView;s.setValue(n,a,i?{prefix:String(o),value:i}:o),this.applyNodeValueType(s,n,a,t),s.setStyle(n,a,13),s.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:!0,isSubtotal:!0,rowType:`subtotal`})),this.layoutValueNodeSubtotal(e,n)}static writeLeafRows(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,measureCount:o,measuresMap:s,measureIndexesMap:c}=e;if(this.shouldMultipleNode(i,t.getLevel(),a)){if(this.shouldWriteLeafValuesUnderItem(e)){let i=this.writeLeafItemRow(e,t,n);for(let n of r){let r=c[n];this.writeLeafValueRow(e,t,i,r,s[n].displayName),this.startContent(e,t,i,r),i++}return i}let i=n;for(let n of r){let r=c[n],a=this.getRowLabelCol(e,t.getLevel()),o=this.getValueLabelCol(e,t.getLevel()),l=this.getNodeDisplayValue(t),u=e.view.rowView;u.setValue(i,a,l),this.applyNodeValueType(u,i,a,t),o!==a&&u.setValue(i,o,s[n].displayName),u.setInfo(i,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,rowType:`item`})),this.startContent(e,t,i,r),i++}return i}let l=i?c[r[0]]:-1,u=this.getRowLabelCol(e,t.getLevel()),d=this.getNodeDisplayValue(t),f=e.view.rowView;return f.setValue(n,u,d),this.applyNodeValueType(f,n,u,t),f.setInfo(n,this.createRowInfo(t,{valueIndex:l,isLeaf:!0,rowType:`item`})),o>0&&this.startContent(e,t,n,l),n+1}static shouldWriteLeafValuesUnderItem(e){return e.isRowMultiMeasure&&e.valueIndex>0}static writeLeafItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),a.setInfo(n,this.createRowInfo(t,{isLeaf:!0,rowType:`item`})),n+1}static writeLeafValueRow(e,t,n,r,i){let a=this.getValueLabelCol(e,t.getLevel()),o=e.view.rowView;o.setValue(n,a,i),o.setInfo(n,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,isValue:!0,rowType:`value`}))}static writeGrandTotalRows(e,t,n,r){let{isRowMultiMeasure:i,measureCount:a,measuresMap:o,measureIndexesMap:s}=e,c=e.view.rowView;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=s[n];c.setValue(i,0,o[n].displayName),c.setStyle(i,0,15),c.setInfo(i,this.createGrandTotalInfo(t,r)),this.layoutGrandTotalValues(e,t,i,r),i++}return i}if(e.rowDeep===0&&!i&&a>0)return e.colDeep!==0&&c.setValue(n,0,e.valueQueryInfo[0].displayName),c.setInfo(n,this.createGrandTotalInfo(t,-1)),e.colDeep!==0&&c.setInfo(n,this.createSingleValueHeaderInfo(e,c.info[n])),this.layoutGrandTotalValues(e,t,n,-1),n+1;if(a>0){let a=i?e.measureIndexesMap[r[0]]:-1;return c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,a)),this.layoutGrandTotalValues(e,t,n,a),n+1}return e.rowDeep>0?(c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,-1)),n+1):n}static layoutGrandTotalValues(e,t,n,r){e.rowDeep===0?this.startContent(e,t,n,r):this.layoutValueNodeSubtotal(e,n)}static createRowInfo(e,t){return{paths:e.getPaths(),valueIndex:-1,level:e.getLevel(),tableFieldId:e.getFieldsId(),...t}}static createGrandTotalInfo(e,t){return{paths:e.getPaths(),valueIndex:t,isBottomTotal:!0,isSubtotal:!0,level:e.getLevel(),tableFieldId:``,rowType:`grandTotal`}}static getRowColCount(e){return e.rowDeep===0?e.measureCount===0||e.isColMultiMeasure?0:e.isRowMultiMeasure||e.colDeep!==0?1:0:1}static getRowLabelCol(e,t){return 0}static getValueLabelCol(e,t){return 0}static getNodeDisplayValue(e){return e.type===4||e.type===2?Number(e.displayName):e.displayName}static applyNodeValueType(e,t,n,r){r.type===5&&e.setBlank(t,n),r.type===6&&e.setOther(t,n)}static repeatRowLabelsForNode(e,t,n){}static layoutColHeader(e){if(super.layoutColHeader(e),e.colDeep===0)return;let t=e.view.colView,n=t.getHeaderMapItem(1);for(let e=1;e<=t.getLastCol();e++)t.setValue(0,e,``);t.setValue(0,0,`Column Labels`),n&&t.addHeaderMapItem(1,{...n,isColumnLabel:!0})}static layoutCorner(e){let{rowDeep:t,colDeep:n,view:r,measureCount:i}=e,a=e.queryData.rowQueryInfo,o=e.queryData.valueQueryInfo,s=r.cornerView,c=r.colView,l=r.rowView,u=c.getRowCount();u===0&&t!==0&&(u=1);let d=l.getColCount();if(s.setRowCount(u),s.setColCount(d),t===0&&n===0&&e.isRowMultiMeasure?s.setValue(0,0,` Σ值`):t===0&&e.isRowMultiMeasure&&s.setValue(u-1,0,` Σ值`),i===1&&n>0&&t>0&&s.setValue(0,0,o[0].displayName),t===0)return;let f=u-1,{filterInfo:p,sortInfo:m,dataFieldId:h,id:g}=a[0];s.setValue(f,0,`Row Labels`),s.setStyle(f,0,Te(p,m,e.valueFilterMap[g])),s.setInfo(0,{paths:[],level:0,tableFieldId:g,dataFieldId:h,valueIndex:-1,isRowLabel:!0}),l.addHeaderMapItem(0,{isValue:!1,level:0,tableFieldId:g,dataFieldId:h})}},pt=class extends dt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutRowFields(e){let{rowNodeTree:t,view:n,isRowMultiMeasure:r,valueQueryInfo:i,measureCount:a,rowDeep:o,showRowGrandTotal:s}=e,c=n.rowView,l=r?i.map(e=>e.id):[],u=0;if(o===0)a>0&&(u=this.writeGrandTotalRows(e,t,u,l));else{if(this.shouldSplitRootByValues(e))for(let n of l)u=this.writeRootValueHeaderRow(e,u,n),u=this.layoutRowChildren(e,t,u,[n]);else u=this.layoutRowChildren(e,t,u,l);s&&(a>0||o>0)&&(u=this.writeGrandTotalRows(e,t,u,l))}c.setRowCount(u),c.setColCount(this.getRowColCount(e))}static shouldSplitRootByValues(e){return e.isRowMultiMeasure&&e.valueIndex===0}static layoutRowChildren(e,t,n,r){let i=n;return t.iterate(t=>{i=this.layoutRowNodeToCursor(e,t,i,r)}),i}static layoutRowNode(e,t,n,r){return{itemSize:this.layoutRowNodeToCursor(e,t,n,r)-n,topTotalSize:0,bottomTotalSize:0}}static layoutRowNodeToCursor(e,t,n,r){let i=this.isLeafNode(t,e.rowDeep),a=t.getCollapse();if(!i){if(this.shouldWriteMultiValueSubtotalAtBottom(e,t)&&!a){let i=this.writeParentItemRow(e,t,n);if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex))for(let n of r)i=this.writeValueHeaderRow(e,t,i,n),i=this.layoutRowChildren(e,t,i,[n]);else i=this.layoutRowChildren(e,t,i,r);return e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldWriteSubtotalAtBottom(e)&&!a){let i=this.writeParentItemRow(e,t,n);return i=this.layoutRowChildren(e,t,i,r),e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r)i=this.writeParentRows(e,t,i,[n]),a||(i=this.layoutRowChildren(e,t,i,[n]));return i}let i=this.writeParentRows(e,t,n,r);return a||(i=this.layoutRowChildren(e,t,i,r)),i}return this.writeLeafRows(e,t,n,r)}static shouldWriteSubtotalAtBottom(e){return e.rowSubtotalPosition===2}static shouldWriteMultiValueSubtotalAtBottom(e,t){return e.isRowMultiMeasure&&e.valueIndex>0&&t.getLevel()<=e.valueIndex}static writeParentItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),this.repeatRowLabelsForNode(e,t,n),a.setStyle(n,r,12),a.setInfo(n,this.createRowInfo(t,{rowType:`item`})),n+1}static writeValueHeaderRow(e,t,n,r){let i=this.getValueLabelCol(e,t.getLevel()),a=e.measureIndexesMap[r],o=e.view.rowView;return this.repeatRowLabelsForNode(e,t,n),o.setValue(n,i,e.measuresMap[r].displayName),o.setInfo(n,this.createRowInfo(t,{valueIndex:a,isValue:!0,dataFieldId:e.measuresMap[r].dataFieldId,rowType:`value`})),n+1}static writeRootValueHeaderRow(e,t,n){let r=e.measureIndexesMap[n],i=e.measuresMap[n],a=e.view.rowView;return a.setValue(t,0,i.displayName),a.setInfo(t,{paths:[],valueIndex:r,level:-1,tableFieldId:``,dataFieldId:i.dataFieldId,isValue:!0,rowType:`value`}),t+1}static writeParentRows(e,t,n,r){if((e.showRowSubtotal||t.getCollapse())&&e.isRowMultiMeasure&&r.length>1&&this.shouldMultipleTotal(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeParentRow(e,t,i,r,e.measuresMap[n].displayName),i++}return i}let i=e.isRowMultiMeasure&&r.length===1?e.measureIndexesMap[r[0]]:-1,a=e.isRowMultiMeasure&&r.length===1&&e.valueIndex>0&&e.valueIndex===t.getLevel()?e.measuresMap[r[0]].displayName:void 0;return this.writeParentRow(e,t,n,i,a),n+1}static writeParentRow(e,t,n,r,i){let{showRowSubtotal:a}=e,o=t.getCollapse(),s=a||o,c=this.getRowLabelCol(e,t.getLevel()),l=i?this.getValueLabelCol(e,t.getLevel()):c,u=this.getNodeDisplayValue(t),d=e.view.rowView;d.setValue(n,c,u),this.applyNodeValueType(d,n,c,t),d.setStyle(n,c,o?11:12),this.repeatRowLabelsForNode(e,t,n),i&&d.setValue(n,l,i),d.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:s,isSubtotal:s,isTopTotal:s,rowType:s?`subtotal`:`item`})),s&&this.layoutValueNodeSubtotal(e,n)}static writeBottomSubtotalRows(e,t,n,r){let{isRowMultiMeasure:i,measuresMap:a}=e;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeBottomSubtotalRow(e,t,i,r,a[n].displayName),i++}return i}return this.writeBottomSubtotalRow(e,t,n,i?e.measureIndexesMap[r[0]]:-1),n+1}static writeBottomSubtotalRow(e,t,n,r,i){let a=this.getRowLabelCol(e,t.getLevel()),o=this.getNodeDisplayValue(t),s=e.view.rowView;s.setValue(n,a,i?{prefix:String(o),value:i}:o),this.applyNodeValueType(s,n,a,t),s.setStyle(n,a,13),this.repeatRowLabelsForNode(e,t,n),s.setValue(n,a,i?{prefix:String(o),value:i}:o),s.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:!0,isSubtotal:!0,rowType:`subtotal`})),this.layoutValueNodeSubtotal(e,n)}static writeLeafRows(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,measureCount:o,measuresMap:s,measureIndexesMap:c}=e;if(this.shouldMultipleNode(i,t.getLevel(),a)){if(this.shouldWriteLeafValuesUnderItem(e)){let i=this.writeLeafItemRow(e,t,n);for(let n of r){let r=c[n];this.writeLeafValueRow(e,t,i,r,s[n].displayName),this.startContent(e,t,i,r),i++}return i}let i=n;for(let n of r){let r=c[n],a=this.getRowLabelCol(e,t.getLevel()),o=this.getValueLabelCol(e,t.getLevel()),l=this.getNodeDisplayValue(t),u=e.view.rowView;u.setValue(i,a,l),this.applyNodeValueType(u,i,a,t),this.repeatRowLabelsForNode(e,t,i),u.setValue(i,o,s[n].displayName),u.setInfo(i,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,rowType:`item`})),this.startContent(e,t,i,r),i++}return i}let l=i?c[r[0]]:-1,u=this.getRowLabelCol(e,t.getLevel()),d=this.getNodeDisplayValue(t),f=e.view.rowView;return f.setValue(n,u,d),this.applyNodeValueType(f,n,u,t),this.repeatRowLabelsForNode(e,t,n),f.setInfo(n,this.createRowInfo(t,{valueIndex:l,isLeaf:!0,rowType:`item`})),o>0&&this.startContent(e,t,n,l),n+1}static shouldWriteLeafValuesUnderItem(e){return e.isRowMultiMeasure&&e.valueIndex>0}static writeLeafItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),this.repeatRowLabelsForNode(e,t,n),a.setInfo(n,this.createRowInfo(t,{isLeaf:!0,rowType:`item`})),n+1}static writeLeafValueRow(e,t,n,r,i){let a=this.getValueLabelCol(e,t.getLevel()),o=e.view.rowView;this.repeatRowLabelsForNode(e,t,n),o.setValue(n,a,i),o.setInfo(n,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,isValue:!0,rowType:`value`}))}static writeGrandTotalRows(e,t,n,r){let{isRowMultiMeasure:i,measureCount:a,measuresMap:o,measureIndexesMap:s}=e,c=e.view.rowView;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=s[n];c.setValue(i,0,o[n].displayName),c.setStyle(i,0,15),c.setInfo(i,this.createGrandTotalInfo(t,r)),this.layoutGrandTotalValues(e,t,i,r),i++}return i}if(e.rowDeep===0&&!i&&a>0)return e.colDeep!==0&&c.setValue(n,0,e.valueQueryInfo[0].displayName),c.setInfo(n,this.createGrandTotalInfo(t,-1)),e.colDeep!==0&&c.setInfo(n,this.createSingleValueHeaderInfo(e,c.info[n])),this.layoutGrandTotalValues(e,t,n,-1),n+1;if(a>0){let a=i?s[r[0]]:-1;return c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,a)),this.layoutGrandTotalValues(e,t,n,a),n+1}return e.rowDeep>0?(c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,-1)),n+1):n}static layoutGrandTotalValues(e,t,n,r){e.rowDeep===0?this.startContent(e,t,n,r):this.layoutValueNodeSubtotal(e,n)}static createRowInfo(e,t){return{paths:e.getPaths(),valueIndex:-1,level:e.getLevel(),tableFieldId:e.getFieldsId(),...t}}static createGrandTotalInfo(e,t){return{paths:e.getPaths(),valueIndex:t,isBottomTotal:!0,isSubtotal:!0,level:e.getLevel(),tableFieldId:``,rowType:`grandTotal`}}static getRowColCount(e){let{rowDeep:t,isRowMultiMeasure:n}=e;return t===0?e.measureCount===0||e.isColMultiMeasure?0:n||e.colDeep!==0?1:0:n?t+1:t}static getRowLabelCol(e,t){return this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure)}static getValueLabelCol(e,t){return this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure)+1}static getNodeDisplayValue(e){return e.type===4||e.type===2?Number(e.displayName):e.displayName}static applyNodeValueType(e,t,n,r){r.type===5&&e.setBlank(t,n),r.type===6&&e.setOther(t,n)}},mt=class{constructor(e,t,n){A(this,`_index`,void 0),A(this,`_level`,void 0),A(this,`parentIndex`,void 0),A(this,`paths`,void 0),A(this,`isLeaf`,void 0),A(this,`name`,void 0),A(this,`displayName`,void 0),A(this,`displayPaths`,[]),A(this,`fieldId`,void 0),A(this,`collapse`,void 0),A(this,`sortedList`,[]),A(this,`hasSort`,!1),A(this,`type`,void 0),A(this,`_nodes`,{}),this._index=e,this.fieldId=t,this.type=n}getCollapse(){return this.collapse}setCollapse(e){this.collapse=e}getFieldsId(){return this.fieldId}iterate(e){if(this.hasSort)for(let t of this.sortedList){let n=this._nodes[t];e(n)}else{let t=Object.keys(this._nodes);for(let n=0;n<t.length;n++){let r=this._nodes[t[n]];e(r)}}}getIndex(){return this._index}hasNode(e){return this._nodes[e]!==void 0}setParentIndex(e){this.parentIndex=e}setLevel(e){this._level=e}getLevel(){return this._level}setPaths(e){this.paths=e}getPaths(){return this.paths}setLeaf(){this.isLeaf=!0}getIsLeaf(){return!!this.isLeaf}setName(e){this.name=e}addNode(e,t,n,r,i=t){this._nodes[t]=e,e.setName(t),e.displayName=i,e.displayPaths=this.displayPaths.concat(i),e.setParentIndex(this._index),e.setLevel(this._level+1),e.setPaths(this.paths.concat(t)),n&&(this.sortNode(t,n,r),this.hasSort=!0)}sortNode(e,t,n){let r=t[e],i=this.sortedList,a=0,o=i.length,s=n!==2;for(;a<o;){let e=Math.floor((a+o)/2);(s?t[i[e]]-r:r-t[i[e]])<0?a=e+1:o=e}i.splice(a,0,e)}sortChildrenByValue(e,t,n,r){let i=Object.values(this._nodes);i.some(t=>t.fieldId===e)&&(this.sortedList=i.map((e,t)=>({node:e,index:t})).sort((e,i)=>{let a=n(e.node._index),o=n(i.node._index);return a===o?r(e.node.displayName,i.node.displayName)||e.index-i.index:a===void 0?1:o===void 0?-1:t===2?o-a:a-o}).map(({node:e})=>e.name),this.hasSort=!0);for(let a of i)a.sortChildrenByValue(e,t,n,r)}resetSort(){this.sortedList=[],this.hasSort=!1,Object.values(this._nodes).forEach(e=>e.resetSort())}sortChildrenByLabel(e,t,n){let r=Object.values(this._nodes);r.some(t=>t.fieldId===e)&&(this.sortedList=r.map((e,t)=>({node:e,index:t})).sort((e,r)=>{let i=n[e.node.name],a=n[r.node.name];return i===a?e.index-r.index:i===void 0?1:a===void 0?-1:t===2?a-i:i-a}).map(({node:e})=>e.name),this.hasSort=!0),r.forEach(r=>r.sortChildrenByLabel(e,t,n))}getNode(e){return this._nodes[e]}};let ht={1:{errorType:1},2:{errorType:2},3:{errorType:3},4:{errorType:4},5:{errorType:5}},gt=ht[1],_t=ht[2];function q(e){return typeof e==`object`}var vt=class{constructor(e,t){this._summaryManager=e,this._queryData=t,A(this,`_fieldIndexById`,{}),A(this,`_itemIndexMaps`,[]),A(this,`_rowFieldIndexes`,[]),A(this,`_columnFieldIndexes`,[]),A(this,`_fieldCount`,void 0),A(this,`_coordinates`,[]),A(this,`_tupleByCoordinate`,/* @__PURE__ */ new Map),A(this,`_canonicalTupleIndexes`,/* @__PURE__ */ new Int32Array),A(this,`_rowTotalIndexes`,void 0),A(this,`_columnTotalIndexes`,void 0),A(this,`_grandTotalIndex`,-1),A(this,`_parentRowTotalIndexes`,void 0),A(this,`_parentColumnTotalIndexes`,void 0),A(this,`_parentFieldIndexes`,/* @__PURE__ */ new Map),A(this,`_parentFieldIndexByValueField`,{}),A(this,`_peerIndexesByValueField`,{}),A(this,`_peerUnionsByValueField`,{}),A(this,`_derivedValuesByValueField`,{});let n=[...t.rowQueryInfo,...t.colQueryInfo];this._fieldCount=n.length;for(let r=0;r<n.length;r++){let i=n[r];this._fieldIndexById[i.id]=r,this._itemIndexMaps[r]=e.dimensionMap[i.dataFieldId].field.getTupleItemsMap(),r<t.rowQueryInfo.length?this._rowFieldIndexes.push(r):this._columnFieldIndexes.push(r)}}prepare(){this._buildCoordinateIndex();let e=new Set(this._queryData.valueQueryInfo.map(e=>{var t;return(t=e.showDataAs)==null?void 0:t.type}));this._prepareTotalIndexes(e),this._prepareParentIndexes(e),this._preparePeerIndexes(),this._prepareDerivedBuffers();let t=new Int32Array(this._fieldCount);t.fill(-1),this._grandTotalIndex=this._tupleByCoordinate.get(this._getCoordinateKey(t))??-1}getValue(e,t){var n;let r=this._getRawValue(e,t),i=((n=t.showDataAs)==null?void 0:n.type)??1;if(this._isParentType(i))return this._getParentValue(i,r,e,t);if(this._isPeerType(i))return this._getPeerValue(i,r,e,t);if(this._isDerivedType(i)){let n=this._derivedValuesByValueField[t.id];return this._getDerivedValue(n,e)}switch(i){case 4:return this._divide(r,this._getRawValue(this._grandTotalIndex,t));case 3:return this._divide(r,this._getIndexedRawValue(this._rowTotalIndexes,e,t));case 2:return this._divide(r,this._getIndexedRawValue(this._columnTotalIndexes,e,t));case 8:return this._getIndexValue(r,e,t);default:return r}}dispose(){for(let e of Object.keys(this._peerUnionsByValueField))this._peerUnionsByValueField[e].clear(),delete this._peerUnionsByValueField[e];this._coordinates.length=0,this._tupleByCoordinate.clear(),this._canonicalTupleIndexes=/* @__PURE__ */ new Int32Array,this._rowTotalIndexes=void 0,this._columnTotalIndexes=void 0,this._parentRowTotalIndexes=void 0,this._parentColumnTotalIndexes=void 0,this._parentFieldIndexes.clear();for(let e of Object.keys(this._parentFieldIndexByValueField))delete this._parentFieldIndexByValueField[e];for(let e of Object.keys(this._peerIndexesByValueField))delete this._peerIndexesByValueField[e];for(let e of Object.keys(this._derivedValuesByValueField))delete this._derivedValuesByValueField[e];this._grandTotalIndex=-1}_prepareTotalIndexes(e){let t=e.has(3)||e.has(8),n=e.has(2)||e.has(8);t&&(this._rowTotalIndexes=this._buildTotalIndexes(this._columnFieldIndexes)),n&&(this._columnTotalIndexes=this._buildTotalIndexes(this._rowFieldIndexes))}_prepareParentIndexes(e){e.has(6)&&(this._parentRowTotalIndexes=this._buildParentIndexes(this._rowFieldIndexes)),e.has(5)&&(this._parentColumnTotalIndexes=this._buildParentIndexes(this._columnFieldIndexes));for(let e of this._queryData.valueQueryInfo){var t,n;if(((t=e.showDataAs)==null?void 0:t.type)!==14&&((n=e.showDataAs)==null?void 0:n.type)!==7)continue;let r=this._getFieldIndex(e.showDataAs.baseFieldId);if(r<0||(this._parentFieldIndexByValueField[e.id]=r,this._parentFieldIndexes.has(r)))continue;let i=r<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes;this._parentFieldIndexes.set(r,this._buildParentIndexes(i,r))}}_preparePeerIndexes(){let e=/* @__PURE__ */ new Map;for(let t of this._queryData.valueQueryInfo){let n=t.showDataAs;if(!n||!this._isPeerType(n.type))continue;let r=this._getFieldIndex(n.baseFieldId);if(r<0)continue;let i=n.baseItemType??1,a=[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo][r],o=this._summaryManager.dimensionMap[a.dataFieldId].field.getTupleKeysByLabel(n.baseItem);if(i===1&&o.length>1){let e=/* @__PURE__ */ new Map;for(let n=0;n<this._coordinates.length;n++){let i=this._coordinates[n];if(!i||i[r]<0)continue;let a=new j,s=0,c=!1;for(let e of o){let o=i.slice();o[r]=this._itemIndexMaps[r][e];let l=this._tupleByCoordinate.get(this._getCoordinateKey(o));l!==void 0&&(a.unionTupleInfo(this._summaryManager.tuples[l].tuple[t.dataFieldId].getInfo()),c||=l===this._getCanonicalTupleIndex(n),s++)}s&&e.set(n,{tuple:a,includesCurrent:c})}this._peerUnionsByValueField[t.id]=e;continue}let s=`${r}:${i}:${n.baseItem}`,c=e.get(s);c||(c=this._buildPeerIndexes(r,n.baseItem,i),e.set(s,c)),this._peerIndexesByValueField[t.id]=c}}_prepareDerivedBuffers(){for(let e of this._queryData.valueQueryInfo){let t=e.showDataAs;if(!t)continue;let n=this._getFieldIndex(t.baseFieldId);n<0||(t.type===11||t.type===12?this._derivedValuesByValueField[e.id]=this._buildRunningTotalBuffer(e,n,t.type===12):(t.type===15||t.type===16)&&(this._derivedValuesByValueField[e.id]=this._buildRankBuffer(e,n,t.type===15)))}}_buildCoordinateIndex(){let e=this._summaryManager.tuples.length;this._canonicalTupleIndexes=new Int32Array(e),this._canonicalTupleIndexes.fill(-1);for(let[e,t]of Object.entries(this._summaryManager.tupleMap)){let n=new Int32Array(this._fieldCount);n.fill(-1),this._readPathIntoCoordinate(e,n);let r=this._getCoordinateKey(n),i=this._tupleByCoordinate.get(r);this._coordinates[t]=n,i===void 0?(this._tupleByCoordinate.set(r,t),this._canonicalTupleIndexes[t]=t):this._canonicalTupleIndexes[t]=i}}_readPathIntoCoordinate(e,t){let r=e.split(n.TUPLE_PLACEHOLDER);for(let e of r){let r=e.split(n.TUPLE_FIELD_SEPARATOR);for(let e=0;e<r.length-1;e++){let n=this._fieldIndexById[r[e]];if(n===void 0)continue;let i=this._itemIndexMaps[n][r[e+1]];i!==void 0&&(t[n]=i),e++}}}_buildTotalIndexes(e){let t=new Int32Array(this._summaryManager.tuples.length);t.fill(-1);for(let n=0;n<this._coordinates.length;n++){let r=this._coordinates[n];if(!r)continue;let i=r.slice();for(let t of e)i[t]=-1;t[n]=this._tupleByCoordinate.get(this._getCoordinateKey(i))??-1}return t}_buildParentIndexes(e,t){let n=new Int32Array(this._summaryManager.tuples.length);n.fill(-1);let r=t===void 0?-1:e.indexOf(t);for(let i=0;i<this._coordinates.length;i++){let a=this._coordinates[i];if(!a)continue;if(t!==void 0){if(r<0||a[t]<0)continue;let o=a.slice();for(let t=r+1;t<e.length;t++)o[e[t]]=-1;n[i]=this._tupleByCoordinate.get(this._getCoordinateKey(o))??-1;continue}let o=-1;if(t===void 0){for(let t=e.length-1;t>=0;t--)if(a[e[t]]>=0){o=t;break}}if(o<0){n[i]=this._canonicalTupleIndexes[i];continue}let s=a.slice();for(let t=o;t<e.length;t++)s[e[t]]=-1;n[i]=this._tupleByCoordinate.get(this._getCoordinateKey(s))??-1}return n}_getFieldIndex(e){let t=this._fieldIndexById[e];return t===void 0?[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo].findIndex(t=>t.dataFieldId===e):t}_isParentType(e){return e===6||e===5||e===7||e===14}_isPeerType(e){return e===9||e===10||e===13}_isDerivedType(e){return e===11||e===12||e===15||e===16}_getParentValue(e,t,n,r){if(e===6)return this._divideParent(t,this._getIndexedRawValue(this._parentRowTotalIndexes,n,r));if(e===5)return this._divideParent(t,this._getIndexedRawValue(this._parentColumnTotalIndexes,n,r));let i=this._parentFieldIndexByValueField[r.id];return this._divideParent(t,this._getIndexedRawValue(this._parentFieldIndexes.get(i),n,r))}_getPeerValue(e,t,n,r){var i;let a=(i=this._peerUnionsByValueField[r.id])==null?void 0:i.get(this._getCanonicalTupleIndex(n));if(a){let n=a.tuple.getSubtotal(r.subtotal);return e===13?this._divide(t,n):a.includesCurrent?void 0:e===9?this._difference(t,n):this._percentDifference(t,n)}let o=this._getIndexedTupleIndex(this._peerIndexesByValueField[r.id],n);if(e===13)return this._divide(t,this._getRawValue(o,r));if(o<0||o===this._getCanonicalTupleIndex(n))return;let s=this._getRawValue(o,r);return e===9?this._difference(t,s):this._percentDifference(t,s)}_buildPeerIndexes(e,t,n){let r=new Int32Array(this._summaryManager.tuples.length);r.fill(-1);let i=e<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes,a=i.indexOf(e),o=n===1?void 0:this._buildItemOrders(e,i,a),s=[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo][e],c=this._summaryManager.dimensionMap[s.dataFieldId].field.getTupleKeysByLabel(t)[0],l=this._itemIndexMaps[e][c];for(let t=0;t<this._coordinates.length;t++){let s=this._coordinates[t];if(!s||s[e]<0)continue;let c=l;if(o){let t=this._getParentGroupKey(s,i,a),r=o.get(t),l=r==null?void 0:r.positions.get(s[e]);if(r&&l!==void 0){let e=n===2?-1:1;c=r.items[l+e]}else c=void 0}if(c===void 0)continue;let u=s.slice();u[e]=c,r[t]=this._tupleByCoordinate.get(this._getCoordinateKey(u))??-1}return r}_buildItemOrders(e,t,n){let r=/* @__PURE__ */ new Map,i=e<this._rowFieldIndexes.length?this._summaryManager.rowNodeTree:this._summaryManager.colNodeTree,a=i=>{if(i.getLevel()===n){let a=[],o=/* @__PURE__ */ new Map;i.iterate(t=>{let n=this._itemIndexMaps[e][t.name];n!==void 0&&(o.set(n,a.length),a.push(n))}),r.set(this._getParentNodeKey(i,t,n),{items:a,positions:o})}else i.iterate(a)};return a(i),r}_getParentNodeKey(e,t,n){let r=e.getPaths(),i=[];for(let e=0;e<n;e++)i.push(this._itemIndexMaps[t[e]][r[e]]);return i.join(`,`)}_getParentGroupKey(e,t,n){let r=[];for(let i=0;i<n;i++)r.push(e[t[i]]);return r.join(`,`)}_buildOrderedGroups(e){let t=e<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes,n=t.indexOf(e),r=this._buildItemOrders(e,t,n),i=/* @__PURE__ */ new Map;for(let o of this._tupleByCoordinate.values()){var a;let s=this._coordinates[o];if(!s||s[e]<0)continue;let c=this._getParentGroupKey(s,t,n),l=(a=r.get(c))==null?void 0:a.positions.get(s[e]);if(l===void 0)continue;let u=this._getCoordinateKeyWithoutField(s,e),d=i.get(u);d||(d=[],i.set(u,d)),d[l]=o}return Array.from(i.values())}_getCoordinateKeyWithoutField(e,t){let n=[];for(let r=0;r<e.length;r++)r!==t&&n.push(e[r]);return n.join(`,`)}_buildRunningTotalBuffer(e,t,n){let r=this._createDerivedBuffer();for(let i of this._buildOrderedGroups(t)){let t=0;if(n)for(let n of i){let r=this._getRawValue(n,e);typeof r==`number`&&(t+=r)}let a=0;for(let o of i){let i=this._getRawValue(o,e);i!==void 0&&(q(i)?this._setDerivedError(r,o,i.errorType):(a+=i,n&&t===0?this._setDerivedError(r,o,1):this._setDerivedNumber(r,o,n?a/t:a)))}}return r}_buildRankBuffer(e,t,n){let r=this._createDerivedBuffer(),i=[];for(let a of this._buildOrderedGroups(t)){i.length=0;for(let t of a){let n=this._getRawValue(t,e);typeof n==`number`?i.push({tupleIndex:t,value:n}):q(n)&&this._setDerivedError(r,t,n.errorType)}i.sort((e,t)=>n?e.value-t.value:t.value-e.value);let t=0,o;for(let e=0;e<i.length;e++){let n=i[e];(o===void 0||n.value!==o)&&(t=e+1,o=n.value),this._setDerivedNumber(r,n.tupleIndex,t)}}return r}_createDerivedBuffer(){return{values:new Float64Array(this._summaryManager.tuples.length),states:new Uint8Array(this._summaryManager.tuples.length)}}_setDerivedNumber(e,t,n){e.values[t]=n,e.states[t]=1}_setDerivedError(e,t,n){e.states[t]=n+1}_getDerivedValue(e,t){if(!e)return;let n=this._canonicalTupleIndexes[t],r=n<0?t:n,i=e.states[r];if(i===1)return e.values[r];if(i>1){let e=i-1;return ht[e]}}_getCoordinateKey(e){return e.join(`,`)}_getRawValue(e,t){var n;if(e<0)return;let r=this._summaryManager.tuples[e];return r==null||(n=r.summary)==null||(n=n[t.dataFieldId])==null?void 0:n[t.subtotal]}_getIndexedRawValue(e,t,n){return this._getRawValue(this._getIndexedTupleIndex(e,t),n)}_getIndexedTupleIndex(e,t){return(e==null?void 0:e[this._getCanonicalTupleIndex(t)])??-1}_getCanonicalTupleIndex(e){let t=this._canonicalTupleIndexes[e];return t<0?e:t}_divide(e,t){if(e!==void 0){if(q(e))return e;if(t!==void 0)return q(t)?t:t===0?gt:e/t}}_difference(e,t){if(e!==void 0){if(q(e))return e;if(t!==void 0)return q(t)?t:e-t}}_divideParent(e,t){if(e!==0||t!==0)return this._divide(e,t)}_percentDifference(e,t){if(e!==void 0){if(q(e))return e;if(t!==void 0)return q(t)?t:t===0?gt:(e-t)/t}}_getIndexValue(e,t,n){if(e===void 0||q(e))return e;let r=this._getIndexedRawValue(this._rowTotalIndexes,t,n),i=this._getIndexedRawValue(this._columnTotalIndexes,t,n),a=this._getRawValue(this._grandTotalIndex,n);return r===void 0||i===void 0||a===void 0?_t:q(r)?r:q(i)?i:q(a)?a:r===0||i===0?gt:e*a/(r*i)}};function yt(e,t,n,r){if(e.operator!==15&&e.operator!==44)return se(e);let i=t.map(({v:e})=>{var t;return(t=n[e])==null?void 0:t.tuple.getSubtotal(r)}).filter(e=>typeof e==`number`&&Number.isFinite(e)),a=e.operator===44?Math.ceil(i.length*Number(e.expected)/100):Math.ceil(Number(e.expected)),o=oe(i,Math.min(i.length,Math.max(0,a)),!!e.isBottom);return t=>o!==void 0&&(e.isBottom?t<=o:t>=o)}var bt=class{constructor(e,t,n){A(this,`counter`,void 0),A(this,`rowDimOrder`,void 0),A(this,`colDimOrder`,void 0),A(this,`rowTableIdList`,void 0),A(this,`colTableIdList`,void 0),A(this,`rowDeep`,void 0),A(this,`colDeep`,void 0),A(this,`measureCount`,void 0),A(this,`leafCount`,void 0),A(this,`measuresMap`,{}),A(this,`tuples`,[]),A(this,`tupleMap`,{}),A(this,`dimensionIdList`,[]),A(this,`dimensionTableIdList`,[]),A(this,`measureIdList`,[]),A(this,`_rowLevelPool`,{}),A(this,`_colLevelPool`,{}),A(this,`rowNodeTree`,void 0),A(this,`colNodeTree`,void 0),A(this,`dimensionMap`,{}),A(this,`combinePathMap`,{}),A(this,`collapseInfo`,void 0),A(this,`dimensionSortInfo`,{}),A(this,`valueSortInfo`,{}),A(this,`valueFilterInfo`,[]),A(this,`subtotalMap`,{}),A(this,`_showDataAsResolver`,void 0),A(this,`_defaultSortLocale`,void 0),A(this,`_sortCompareCache`,/* @__PURE__ */ new Map),this.tuples=t.tuples.concat();let r=e.rowQueryInfo,i=e.colQueryInfo,{tuples:a,dimensionMap:o,dimensionTableIdList:s,tupleMap:c,dimensionIdList:l,measuresMap:u,measureIdList:d}=t,f=r.length,p=i.length;this.dimensionTableIdList=s,this.counter=a.length,this.leafCount=a.length,this.collapseInfo=e.collapseInfo,this.tupleMap={...c},this.measuresMap={...u},this.measureIdList=d,this.dimensionIdList=l,this.dimensionMap=o,this.valueFilterInfo=e.valueFilterInfo,this._defaultSortLocale=n;let m=e.valueQueryInfo;for(let e of m){let t=e.id,n=e.subtotal;n!==void 0&&(this.subtotalMap[t]={subTotal:n,dataFieldId:e.dataFieldId})}let h=[],g=[],_=/* @__PURE__ */ new Map;for(let[e,t]of s.entries())_.set(t,e);for(let e=0;e<f;e++){let t=r[e].id;h.push(_.get(t)),g.push(t)}let v=[],y=[];for(let e=0;e<p;e++){let t=i[e].id;v.push(_.get(t)),y.push(t)}this.rowDimOrder=h.concat(v),this.colDimOrder=v.concat(h),this.rowTableIdList=g.concat(y),this.colTableIdList=y.concat(g),this.rowDeep=f,this.colDeep=p,this.measureCount=this.measureIdList.length,this.createSummaryLabelSortedMap(e)}createSummaryLabelSortedMap(e){let{rowQueryInfo:t,colQueryInfo:r}=e;for(let e of[...t,...r]){let t=e.sortInfo,r=e.id;if(t){if(`baseFieldId`in t)this.valueSortInfo[r]=t;else if(Ne(t)){let n={},i=t.customOrder;for(let t=0;t<i.length;t++){let r=i[t];for(let i of this.dimensionMap[e.dataFieldId].field.getTupleKeysByLabel(r))n[i]=t}this.dimensionSortInfo[r]={type:t.type,sortMap:n}}else{let n=this.getSortedMap(r,this.dimensionMap[e.dataFieldId].field,t.sortLocale);this.dimensionSortInfo[r]={type:t.type,sortMap:n}}}else if(n.defaultSortType!=="default"){let t=n.defaultSortType,i=this.getSortedMap(r,this.dimensionMap[e.dataFieldId].field),a=t===`ascending`?1:2;this.dimensionSortInfo[r]={type:a,sortMap:i}}}}getCellValue(e,t){var n;return this._showDataAsResolver?this._showDataAsResolver.getValue(e,t):(n=this.tuples[e])==null||(n=n.summary)==null||(n=n[t.dataFieldId])==null?void 0:n[t.subtotal]}prepareShowDataAs(e){!this._showDataAsResolver&&e.valueQueryInfo.some(e=>{var t;return((t=e.showDataAs)==null?void 0:t.type)&&e.showDataAs.type!==1})&&(this._showDataAsResolver=new vt(this,e),this._showDataAsResolver.prepare())}clearShowDataAsCache(){var e;(e=this._showDataAsResolver)==null||e.dispose(),this._showDataAsResolver=void 0}getSortedMap(e,t,n){let r=this.dimensionSortInfo[e];if(r&&r.sortMap)return r.sortMap;let i=t.getTupleItemsMap(),a=t instanceof H?t.items:Object.keys(i),o=t instanceof H?t.itemTypes:[];if(!(t instanceof H))for(let e of a)o[i[e]]=t.getTupleType(e);if(!(t instanceof H)||t instanceof W){let e=e=>e===2?0:e===1?1:e===4?2:3,r=this._getSortCompare(n),s=a.slice().sort((n,a)=>{let s=o[i[n]],c=o[i[a]],l=e(s)-e(c);if(l)return l;let u=t instanceof W?t.getDisplayNameByKey(n):t.getTupleLabel(n),d=t instanceof W?t.getDisplayNameByKey(a):t.getTupleLabel(a);return s===2||s===4?Number(u)-Number(d)||i[n]-i[a]:r(u,d)||i[n]-i[a]});return Object.fromEntries(s.map((e,t)=>[e,t]))}let s=ke(a,o,i,this._getSortCompare(n));if(t instanceof Qe){let e=Object.keys(s).sort((e,t)=>s[e]-s[t]),t=[...e.includes(`__number_before__`)?[qe]:[],...e.filter(e=>e!==`__number_before__`&&e!==`__number_after__`),...e.includes(`__number_after__`)?[Je]:[]];return Object.fromEntries(t.map((e,t)=>[e,t]))}return s}doSummary(){let e=this._calculateValueFilter();this.buildNodeTree(e),this.calculateSubtotal(e),this._applyLabelSorts(),this._applyValueSorts()}resort(e,t){this.rowNodeTree.resetSort(),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.resetSort(),this.dimensionSortInfo={},this.valueSortInfo={},this._defaultSortLocale!==t&&(this._defaultSortLocale=t,this._sortCompareCache.clear()),this.createSummaryLabelSortedMap(e),this._applyLabelSorts(),this._applyValueSorts()}_applyLabelSorts(){for(let[e,{type:t,sortMap:n}]of Object.entries(this.dimensionSortInfo))this.rowNodeTree.sortChildrenByLabel(e,t,n),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.sortChildrenByLabel(e,t,n)}_applyValueSorts(){for(let[e,t]of Object.entries(this.valueSortInfo)){if(t.sortItems.length>0)continue;let n=this.subtotalMap[t.baseFieldId];if(!n)continue;let r=e=>{var t;let r=(t=this.tuples[e])==null||(t=t.tuple[n.dataFieldId])==null?void 0:t.getSubtotal(n.subTotal);return typeof r==`number`?r:void 0},i=this._getSortCompare(t.sortLocale);this.rowNodeTree.sortChildrenByValue(e,t.type,r,i),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.sortChildrenByValue(e,t.type,r,i)}}_getSortCompare(e){let t=`${e??``}\u0000${this._defaultSortLocale??``}`,n=this._sortCompareCache.get(t);return n||(n=z(e,this._defaultSortLocale),this._sortCompareCache.set(t,n)),n}_getIndex(){return this.counter++}buildNodeTree(e){this.rowNodeTree=this._buildNodeTreeImp(this.rowDimOrder,this.rowTableIdList,this._rowLevelPool,n.ROW_ROOT_PATH,e),this.colNodeTree=this.rowDeep===0||this.colDeep===0?this.rowNodeTree:this._buildNodeTreeImp(this.colDimOrder,this.colTableIdList,this._colLevelPool,n.COl_ROOT_PATH,e)}_createValueFilterLevelPool(e){let t={},n=/* @__PURE__ */ new Map,r=this.leafCount,i=r+1,a=e.length;for(let o=0;o<this.leafCount;o++){let s=this.tuples[o],c=r;for(let r=0;r<a;r++){let l=r===a-1,u=s.path[e[r]],d=o,f=!0;if(!l){let e=n.get(c);e||(e=/* @__PURE__ */ new Map,n.set(c,e));let t=e.get(u);t===void 0?(d=i++,e.set(u,d)):(d=t,f=!1)}if(f){let e=r+1;t[e]=t[e]||[],t[e].push({p:c,v:d})}c=d}}return t}createTupleWithoutCheck(e,t,n){let r={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let t=new j;r.tuple[e]=t}this.tuples[t]=r,this.tupleMap[n]=t}_buildNodeTreeImp(e,t,n,r,i){let a=this._getIndex(),o=new mt(a,``,1);o.setParentIndex(-1),o.setLevel(0),o.setPaths([]),this.createTupleWithoutCheck(o.getPaths(),a,r);let s=this.collapseInfo,c=this.rowDeep+this.colDeep,l=this.dimensionTableIdList;for(let r=0;r<this.leafCount;r++){if(i[r]===0)continue;let a=this.tuples[r],u=o,d=0;for(let i of e){let e=a.path[i],o=a.types[i],f=l[i];if(!u.hasNode(e)){let a=d===c-1,l=a?r:this._getIndex(),p=new mt(l,f,o),m=this.dimensionMap[this.dimensionIdList[i]].field;p.setCollapse(be(s,f,m.getTupleLabel(e)));let{sortMap:h,type:g}=this.dimensionSortInfo[f]??{},_=m instanceof W?m.getDisplayNameByKey(e):m.getTupleLabel(e);u.addNode(p,e,h,g,_);let v=p.getLevel();a?p.setLeaf():this.ensureTupleItem(l,p.getPaths(),t),n[v]=n[v]||[],n[v].push({p:u.getIndex(),v:l})}u=u.getNode(e),d++}}return o}combinePathMapList(e,t){if(this.combinePathMap[t])return this.combinePathMap[t];let r={};this.combinePathMap[t]=r;let i={};for(let a of e)for(let e in a){let o=[t,e].join(n.TUPLE_FIELD_SEPARATOR);if(r[e]===void 0){let t=this._getIndex();this.ensureTupleItemByString(t,o),r[e]=t}i[o]===void 0&&(i[o]=[]),i[o].push(a[e])}for(let e in i){let t=i[e],n=this.tuples[this.tupleMap[e]];this.calculateListSubtotal(n,t)}return r}calculateListSubtotal(e,t){e.summary||={};let n=e.summary;for(let r in this.measuresMap){let i=this.measuresMap[r].subTotal,a=e.tuple[r],o=t.map(e=>this.tuples[e].tuple[r]);a.unionTuples(o);let s=a.getInfo();for(let e of i)s[e]=a.getSubtotal(e);n[r]=s}}calculateSubtotal(e){this._calculateSubtotalImp(this._rowLevelPool,e),this._calculateSubtotalImp(this._colLevelPool,e);let t=this.tuples[this.rowNodeTree.getIndex()],n=this.tuples[this.colNodeTree.getIndex()];this.rowDeep+this.colDeep===0&&this.tuples.length>0&&R(this.tuples[0],t,this.measuresMap),R(t,void 0,this.measuresMap),R(n,void 0,this.measuresMap)}getPathKeyWithFiledId(e,t){let r=[];for(let i=0;i<e.length;i++)r.push(`${t[i]}${n.TUPLE_FIELD_SEPARATOR}${e[i]}`);return r.join(n.TUPLE_PLACEHOLDER)}ensureTupleItem(e,t,n){if(!this.tuples[e]){let r=this.getPathKeyWithFiledId(t,n);this.createTupleWithoutCheck(t,e,r)}}ensureTupleItemByString(e,t){this.tuples[e]||this.createTuple([],t,e)}createTuple(e,t,r){let i=t||e.join(n.TUPLE_PLACEHOLDER);if(!this.tupleMap[i]){let t={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let n=new j;t.tuple[e]=n}if(r===void 0){let e=this.tuples.push(t);this.tupleMap[i]=e-1}else this.tuples[r]=t,this.tupleMap[i]=r}}_calculateValueFilter(){let e=this.valueFilterInfo,t=new Uint8Array(this.leafCount);if(t.fill(1),e.length===0)return t;let n=this._createValueFilterLevelPool(this.rowDimOrder),r=this.rowDeep===0||this.colDeep===0?n:this._createValueFilterLevelPool(this.colDimOrder);for(let{fieldId:i,filterInfo:a}of e)this._doValueFilter(i,a.valueFieldId,a,t,n,r);return t}_doValueFilter(e,t,n,r,i,a){let o=this._getValueFilterTree(e,i,a);if(o){let{pool:i,fieldIdList:a}=o,s=a.indexOf(e);if(s===-1)return;let c=this.rowDeep+this.colDeep,l=[],u=this.subtotalMap[t].subTotal,d=this.subtotalMap[t].dataFieldId;for(let e=c;e>s;e--)if(i[e]){let t=i[e];for(let{p:n,v:i}of t)(c!==e||r[i]!==0)&&je(l,e===c?this.tuples[i]:void 0,d,u,i,n)}let f=i[s+1]??[],p=yt(n,f,l,u),m=/* @__PURE__ */ new Set;for(let{v:e}of f){if(l[e]===void 0)continue;let t=l[e].tuple.getSubtotal(u);Me(t)?m.add(e):p(t)||m.add(e)}let h=s+1;if(h===c){for(let e of m)r[e]=0;return}for(;i[h+1];){let e=/* @__PURE__ */ new Set,t=i[h+1];for(let{p:n,v:i}of t)m.has(n)&&(e.add(i),h+1===c&&(r[i]=0));h++,m=e}}}_getValueFilterTree(e,t,n){if(this.rowDeep===0||this.colDeep===0)return{pool:t,fieldIdList:this.rowTableIdList};let r=this.rowTableIdList.findIndex(t=>t===e);if(r>=0&&r<this.rowDeep)return{pool:t,fieldIdList:this.rowTableIdList};let i=this.colTableIdList.findIndex(t=>t===e);return i>=0&&i<this.colDeep?{pool:n,fieldIdList:this.colTableIdList}:null}_calculateSubtotalImp(e,t){let n=this.rowDeep+this.colDeep;for(let r=n;r>=0;r--)if(e[r]){let n=e[r];for(let{p:e,v:r}of n){if(r<this.leafCount&&t[r]===0)continue;let n=this.tuples[r];R(n,this.tuples[e],this.measuresMap)}}}},xt=class{constructor(){A(this,`tuples`,[]),A(this,`tupleMap`,{}),A(this,`measuresMap`,{}),A(this,`dimensionIdList`,[]),A(this,`dimensionTableIdList`,[]),A(this,`measureIdList`,[]),A(this,`dimensionMap`,{}),A(this,`rowDeep`,0),A(this,`colDeep`,0),A(this,`_fieldsCollection`,void 0)}prepare(e,t){this._fieldsCollection=e;let{valueQueryInfo:n,rowQueryInfo:r,colQueryInfo:i,filterQueryInfo:a,hiddenQueryInfo:o=[]}=t;for(let t of n){let n=t.dataFieldId,r=e.getFieldById(n);if(!r)continue;this.measuresMap[n]||(this.measureIdList.push(n),this.measuresMap[n]={field:r,subTotal:[]});let i=this.measuresMap[n],{subtotal:a}=t;i.subTotal.includes(a)||i.subTotal.push(a)}let s=r.length+i.length,c=0;for(let t of[...r,...i,...a,...o]){let n=e.getFieldById(t.dataFieldId);n&&(this.dimensionMap[t.dataFieldId]||(this.dimensionMap[t.dataFieldId]={field:n}),c<s?(this.dimensionIdList.push(t.dataFieldId),this.dimensionTableIdList.push(t.id)):c<s+a.length&&t.filterInfo&&I(t.filterInfo)&&(t.filterInfo.isAll=n.items.length===t.filterInfo.list.length),c++)}this.rowDeep=r.length,this.colDeep=i.length}filter(e){let{rowQueryInfo:t,colQueryInfo:n,filterQueryInfo:r,hiddenQueryInfo:i=[]}=e,a=[],o=!1,s=[...t,...n,...r,...i].flatMap(e=>e.conditionFilter?[e,{...e,filterInfo:e.conditionFilter,conditionFilter:void 0}]:[e]);for(let{dataFieldId:e,filterInfo:t}of s){var c;if(t===void 0)continue;let n=(c=this.dimensionMap[e])==null?void 0:c.field;if(!n)throw TypeError(`Missing constrained pivot field: ${e}`);if(T(t)){if(!E(t))continue;let e=this._fieldsCollection.host.compileRecordFilter(t);o=!0;let r=[];for(let t=0;t<n.records.length;t++)e(n.records[t])&&r.push(t);a.push(r)}else if(I(t)){o=!0;let{list:e}=t,r=[];for(let t of e)r.push(n.getIndexesByKey(t));a.push(Oe(r))}else if(xe(t)){if(o=!0,x(t)){let e=S(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t];C(i)&&e(i.v)&&r.push(t)}a.push(r);continue}let{operator:e,expected:r}=t;if(e>=1&&e<=14){let e=ie(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t],a=String(i??``);C(i)?a=String(i.v):w(i)&&(a=i.error),e(a)&&r.push(t)}a.push(r);continue}if(n.getFieldDataType()===2){let t=Ae(n.getAllIndexMap(),e,r);a.push(Oe(t))}}}return!o&&a.length===0?{isAll:!0,list:[]}:{isAll:!1,list:Ce(a)}}query(e,t){this.prepare(e,t);let{isAll:n,list:r}=this.filter(t);this.iterate(n,r,e.getDataRecordCount())}reset(){this.tuples=[],this.measuresMap={},this.dimensionMap={},this.tupleMap={},this.dimensionIdList=[],this.dimensionTableIdList=[],this.measureIdList=[]}iterate(e,t,r=0){let i=this.dimensionTableIdList;if(e)for(let e=0;e<r;e++){let t=[],r=[],a=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);a.push(i[o]+n.TUPLE_FIELD_SEPARATOR+l),t.push(l),r.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(t,a,e,r)}for(let e of t){let t=[],r=[],a=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);a.push(i[o]+n.TUPLE_FIELD_SEPARATOR+l),t.push(l),r.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(t,a,e,r)}}createOrUpdateTuple(e,t,r,i){let a=t.join(n.TUPLE_PLACEHOLDER);this.tupleMap[a]===void 0&&this.createTuple(e,a,void 0,i);let o=this.tuples[this.tupleMap[a]];o.indexes.push(r);for(let e of this.measureIdList){let t=o.tuple[e],n=this.measuresMap[e].field.getValue(r);t.addValue(n)}}createTuple(e,t,r,i=[]){let a=t||e.join(n.TUPLE_PLACEHOLDER);if(!this.tupleMap[a]){let t={path:e,types:i,indexes:[],tuple:{}};for(let e of this.measureIdList){let n=new j;t.tuple[e]=n}if(r===void 0){let e=this.tuples.push(t);this.tupleMap[a]=e-1}else this.tuples[r]=t,this.tupleMap[a]=r}}};let St=e=>e.baseFieldId!==void 0,J=e=>{if(St(e)){let{type:t,baseFieldId:n,sortItems:r,sortLocale:i}=e;return{type:t,baseFieldId:n,sortItems:r.concat(),...i===void 0?{}:{sortLocale:i}}}return`customOrder`in e?{...e,customOrder:e.customOrder.concat()}:{...e}},Y=e=>({...e}),Ct=()=>({type:1,baseFieldId:``,baseItem:``});var wt=class{constructor(e,t,n=``,r){A(this,`dataFieldId`,void 0),A(this,`id`,void 0),A(this,`sourceName`,void 0),A(this,`displayName`,void 0),A(this,`format`,void 0),A(this,`lossLessProperty`,void 0),this.dataFieldId=e,this.id=t,this.displayName=n,this.sourceName=r}getId(){return this.id}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}setDataFieldId(e){this.dataFieldId=e}getDataFieldId(){return this.dataFieldId}getFormat(){return this.format}setFormat(e){this.format=e}setDisplayName(e){this.displayName=e}getDisplayName(){return this.displayName}},X=class extends wt{constructor(e,t,n=``,r){super(e,t,n,r),A(this,`subtotal`,void 0),A(this,`showDataAs`,Ct())}setSubtotal(e){this.subtotal=e}getSubtotal(){return this.subtotal}setShowDataAs(e){this.showDataAs=Y(e)}getShowDataAs(){return Y(this.showDataAs)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,subtotal:this.subtotal,showDataAs:Y(this.showDataAs)}}toJSON(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sourceName:this.sourceName,subtotal:this.subtotal,format:this.format,showDataAs:Y(this.showDataAs)}}fromJSON(e){this.id=e.id,this.dataFieldId=e.dataFieldId,this.displayName=e.displayName,this.sourceName=e.sourceName,this.format=e.format,this.subtotal=e.subtotal;let t=e.showDataAs;this.showDataAs=(t==null?void 0:t.type)===void 0?Ct():Y(t)}},Z=class extends wt{constructor(e,t,n=``,r){super(e,t,n,r),A(this,`sortInfo`,void 0),A(this,`filterInfo`,void 0),A(this,`conditionFilter`,void 0)}setSortInfo(e){this.sortInfo=e?J(e):void 0}getSortInfo(){return this.sortInfo?J(this.sortInfo):void 0}setFilterInfo(e){this.filterInfo=T(e)||x(e)?D(e):e}getFilterInfo(){return T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):this.filterInfo}getConditionFilterInfo(){var e;return D(this.conditionFilter??(((e=this.filterInfo)==null?void 0:e.type)===1?this.filterInfo:void 0))}setConditionFilterInfo(e){if(e!==void 0&&e.type!==1&&(!T(e)||!e.dateRange||e.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);this.conditionFilter=D(e)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sortInfo:this.getSortInfo(),filterInfo:this.filterInfo&&(T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):Object.assign({},this.filterInfo)),...this.conditionFilter?{conditionFilter:this.getConditionFilterInfo()}:{}}}toJSON(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,format:this.format,sourceName:this.sourceName,sortInfo:this.sortInfo?J(this.sortInfo):void 0,filterInfo:T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):this.filterInfo||void 0,...this.conditionFilter?{conditionFilter:this.getConditionFilterInfo()}:{}}}fromJSON(e){var t;if(e.conditionFilter&&(((t=e.filterInfo)==null?void 0:t.type)===1||T(e.filterInfo)&&e.filterInfo.dateRange!==void 0))throw TypeError(`A pivot field cannot contain two date/label conditions.`);this.id=e.id,this.dataFieldId=e.dataFieldId,this.displayName=e.displayName,this.sourceName=e.sourceName,this.format=e.format,e.sortInfo&&this.setSortInfo(e.sortInfo),e.filterInfo&&(this.filterInfo=T(e.filterInfo)||x(e.filterInfo)?D(e.filterInfo):e.filterInfo),this.setConditionFilterInfo(e.conditionFilter)}};function Tt(e,t=!0){let n=new X(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(F(e.getDisplayName(),9),n.subtotal=9,e.lossLessProperty){let t=e.lossLessProperty;t.showDataAs&&(n.showDataAs=t.showDataAs),t.subtotal!==void 0&&(n.subtotal=t.subtotal)}return t&&(n.lossLessProperty={sortInfo:e.getSortInfo(),filterInfo:e.getFilterInfo(),...e.conditionFilter?{conditionFilter:e.getConditionFilterInfo()}:{}}),n}function Et(e,t=!0){let n=new Z(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(n.setDisplayName(e.getDisplayName()),e.lossLessProperty){let t=e.lossLessProperty;t.sortInfo&&(n.sortInfo=t.sortInfo),t.filterInfo&&(n.filterInfo=T(t.filterInfo)?D(t.filterInfo):t.filterInfo),n.setConditionFilterInfo(t.conditionFilter)}return t&&(n.lossLessProperty={subtotal:e.getSubtotal(),showDataAs:e.getShowDataAs()}),n}function Dt(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new X(t,n,``,r);return i.fromJSON(e),i}function Ot(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new Z(t,n,``,r);return i.fromJSON(e),i}var kt=class e{constructor(){A(this,`rowFields`,[]),A(this,`columnFields`,[]),A(this,`valueFields`,[]),A(this,`filterFields`,[]),A(this,`hiddenFields`,[]),A(this,`dimension`,Object.create(null)),A(this,`measure`,Object.create(null)),A(this,`valueIndex`,-1),A(this,`valuePosition`,-1),A(this,`layout`,3),A(this,`collapseInfo`,Object.create(null)),A(this,`options`,void 0),A(this,`_changeStack`,void 0),A(this,`_isDirty`,!0),A(this,`_valueFilterInfo`,[]),this.options={pageWrap:1,pageOverThenDown:!1}}startChangeStack(){this._changeStack=[]}endChangeStack(){let e=this._changeStack;return delete this._changeStack,e}setDirty(e){this._isDirty=e}getDirty(){return this._isDirty}setOptions(e,t=!1){if(e.allowMultipleFilters!==void 0&&typeof e.allowMultipleFilters!=`boolean`)throw TypeError(`Invalid multiple-filter mode.`);if(e.dateGroupingMode!==void 0&&e.dateGroupingMode!==`legacy`&&e.dateGroupingMode!==`excel-like`)throw TypeError(`Invalid pivot date grouping mode.`);!t&&e.allowMultipleFilters===!1&&le(this.toJSON())&&this.clearFilters();let n={...this.options},r=t?{...e}:{...this.options,...e},i=Object.keys(r);if(!(i.length===Object.keys(n).length&&i.every(e=>n[e]===r[e]))&&(this.options={...r},this._changeStack)){let e={type:8,oldOptions:n,newOptions:r};this._changeStack.push(e)}}getOptions(){return{...this.options}}setLayout(e){let t=this.layout;if(t!==e&&(this.layout=e,this._changeStack)){let n={type:13,oldLayout:t,newLayout:e};this._changeStack.push(n)}}getLayout(){return this.layout}setCollapse(e,t,n,r){let i=this.collapseInfo[e];if(n!==void 0){let a=i===!0?Object.fromEntries((r??[]).map(e=>[e,!0])):i,o=Object.assign(Object.create(null),typeof a==`object`?a:void 0);o[n]=t===!0,this.collapseInfo[e]=o}else t===void 0?delete this.collapseInfo[e]:this.collapseInfo[e]=typeof t==`object`?Object.assign(Object.create(null),t):t;if(this._changeStack){let t=this.collapseInfo[e],n={type:10,fieldId:e,collapse:typeof t==`object`?{...t}:t,previous:{collapse:typeof i==`object`?{...i}:i}};this._changeStack.push(n)}}setLabelFilterInfo(e,t,n){let r=this.dimension[e];if(!r)return;if(t===void 0){if(n!==void 0){this._clearSourceFilterCategory(r.dataFieldId,void 0,n);return}this.setFieldFilterState(e,void 0);return}let i=T(t)||x(t)?D(t):t,a=r.getFilterInfo(),o=n??(t.type===1||T(t)&&t.dateRange!==void 0?`condition`:`member`);if((T(t)?E({type:4,...o===`member`?{selection:t.selection}:{dateRange:t.dateRange}}):E(t))&&this.options.allowMultipleFilters!==!0){this._clearSourceFilters(r.dataFieldId,e),T(i)&&(i={type:4,...o===`member`?{selection:i.selection}:{dateRange:i.dateRange}}),this.setFieldFilterState(e,i);return}this._clearSourceFilterCategory(r.dataFieldId,e,o);let s=r.getConditionFilterInfo();if(T(i)){if(o===`condition`){if(s=void 0,(a==null?void 0:a.type)===3&&i.selection===void 0&&i.dateRange){this.setFieldFilterState(e,a,{type:4,dateRange:i.dateRange});return}T(a)&&i.selection===void 0&&(i={...i,...a.selection?{selection:a.selection}:{}})}else T(a)&&a.dateRange&&(i={...i,dateRange:a.dateRange})}else i.type===3&&T(a)&&a.dateRange&&(s={type:4,dateRange:a.dateRange});if(i.type===1&&a&&a.type!==1){let t=D(a);T(t)&&delete t.dateRange,this.setFieldFilterState(e,t,i)}else this.setFieldFilterState(e,i,i.type===1?void 0:s)}setFieldFilterState(e,t,n){if(this.dimension[e]){if(n&&((t==null?void 0:t.type)===1||T(t)&&t.dateRange!==void 0))throw TypeError(`Ambiguous pivot condition state.`);let r=D(n);if(r&&r.type!==1&&(!T(r)||!r.dateRange||r.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);let i=this.dimension[e].conditionFilter,a=this.dimension[e].getFilterInfo(),o=a===void 0||T(a)||x(a)?a:{...a};if(this.dimension[e].setFilterInfo(t),this.dimension[e].setConditionFilterInfo(r),this._changeStack){let r={type:4,fieldId:e,oldFilterInfo:o,newFilterInfo:T(t)||x(t)?D(t):t,...i||n?{oldConditionFilter:D(i)??null,newConditionFilter:D(n)??null}:{}};this._changeStack.push(r)}this.setDirty(!0)}}setValueFilterInfo(e,t,n){this._setValueFilterState(e,t,n,!0)}setValueFilterState(e,t,n){this._setValueFilterState(e,t,n,!1)}_setValueFilterState(e,t,n,r){let i=this._valueFilterInfo.findIndex(t=>t.fieldId===e);if(t===void 0&&i===-1)return;let{area:a}=this.getFieldPositionInfoById(e);if(t!==void 0&&(a===void 0||!P(a)||!this.measure[t.valueFieldId]||t.type!==2||!ae(t.operator))){console.error(`The value filter info is invalid.`);return}if(r&&t&&this.options.allowMultipleFilters!==!0){let t=this.dimension[e];this._clearSourceFilters(t.dataFieldId,e,!0),(t.filterInfo||t.conditionFilter)&&this.setFieldFilterState(e,void 0),i=this._valueFilterInfo.findIndex(t=>t.fieldId===e)}else r&&t&&(this._clearSourceFilterCategory(this.dimension[e].dataFieldId,e,`value`),i=this._valueFilterInfo.findIndex(t=>t.fieldId===e));let o=i===-1?void 0:this._valueFilterInfo[i].filterInfo;i!==-1&&this._valueFilterInfo.splice(i,1);let s=-1;if(t&&(s=!r&&n!==void 0&&n>=0?Math.min(n,this._valueFilterInfo.length):i===-1?Math.min(Math.max(n??this._valueFilterInfo.length,0),this._valueFilterInfo.length):i,this._valueFilterInfo.splice(s,0,{fieldId:e,filterInfo:Q(t)})),this._changeStack){let n={type:12,fieldId:e,oldFilterInfo:Q(o),filterInfo:Q(t),oldIndex:i,newIndex:s};this._changeStack.push(n)}}getValueFilterInfo(e){let t=this._valueFilterInfo.find(t=>t.fieldId===e);return Q(t==null?void 0:t.filterInfo)}getConditionFilterInfo(e){var t;return(t=this.dimension[e])==null?void 0:t.getConditionFilterInfo()}clearFieldFilters(e){let t=this.dimension[e];t&&(this._clearSourceFilters(t.dataFieldId,e),this.setFieldFilterState(e,void 0))}clearFilters(){for(let e of Object.values(this.dimension))(e.filterInfo||e.conditionFilter)&&this.setFieldFilterState(e.id,void 0);for(let e of this._valueFilterInfo.slice())this.setValueFilterInfo(e.fieldId,void 0)}_clearSourceFilters(e,t,n=!1){for(let r of Object.values(this.dimension))r.dataFieldId===e&&(r.id!==t&&(r.filterInfo||r.conditionFilter)&&this.setFieldFilterState(r.id,void 0),n&&r.id===t||this.setValueFilterInfo(r.id,void 0))}_clearSourceFilterCategory(e,t,n){for(let r of Object.values(this.dimension)){if(r.id===t||r.dataFieldId!==e)continue;if(n===`value`){this.setValueFilterState(r.id,void 0);continue}if(!ce(r.toJSON()).has(n))continue;let i=r.getFilterInfo(),a=r.conditionFilter;T(i)?(i=D(i),n===`member`?delete i.selection:delete i.dateRange,!i.selection&&!i.dateRange&&(i=void 0)):i&&i.type===1==(n===`condition`)&&(i=void 0),n===`condition`&&(a=void 0),(i!==r.filterInfo||a!==r.conditionFilter)&&this.setFieldFilterState(r.id,i,a)}}getValueFilterInfos(){return this._valueFilterInfo.map($)}removeValueFilterInfo(e){this._valueFilterInfo.find(t=>t.fieldId===e)&&this.setValueFilterInfo(e,void 0)}removeValueFilterInfoByValueFieldId(e){let t=this._valueFilterInfo.filter(t=>t.filterInfo.valueFieldId===e);if(t&&t.length>0){let e=t.length;for(let n=e-1;n>=0;n--)this.setValueFilterInfo(t[n].fieldId,void 0)}}getFieldFormat(e){if(this.dimension[e])return this.dimension[e].getFormat();if(this.measure[e])return this.measure[e].getFormat()}setFieldFormat(e,t){let n;if(this.dimension[e]&&this.dimension[e].setFormat(t),this.measure[e]&&this.measure[e].setFormat(t),this._changeStack&&(this.dimension[e]||this.measure[e])){let r={type:9,fieldId:e,oldFormat:n,newFormat:t};this._changeStack.push(r)}}setSortInfo(e,t){if(this.dimension[e]){let n=this.dimension[e],r=n.getSortInfo();if(n.setSortInfo(t),this._changeStack){let t={type:5,fieldId:e,newSortInfo:n.getSortInfo(),oldSortInfo:r};this._changeStack.push(t)}}}getSortInfo(e){if(this.dimension[e])return this.dimension[e].getSortInfo()}getFilterInfo(e){if(this.dimension[e])return this.dimension[e].getFilterInfo()}iterateField(e){Object.values(this.dimension).forEach(t=>{e(t)}),Object.values(this.measure).forEach(t=>{e(t)})}iterateFieldDim(e){Object.values(this.dimension).forEach(t=>{e(t)})}iterateFieldMeasure(e){Object.values(this.measure).forEach(t=>{e(t)})}iterateFieldByArea(e,t){this.getFieldsAreaByType(e).forEach(e=>{let n=this.getFieldById(e);n&&t(n)})}addField(e,t,n){if(this.getFieldById(e.getId())){console.error(`The field ${e.getId()} - ${e.getDisplayName()} is already in the pivot table.`);return}N(t)?this.dimension[e.id]=e:this.measure[e.id]=e;let r;switch(t){case 1:r=this.columnFields;break;case 2:r=this.rowFields;break;case 3:r=this.valueFields;break;case 4:r=this.filterFields;break;case 5:r=this.hiddenFields}n===void 0?r.push(e.id):r.splice(n,0,e.id);let i=n===void 0?r.length-1:n;if(this._changeStack){let n={type:0,fieldJson:e.toJSON(),area:t,index:i};this._changeStack.push(n)}this.setDirty(!0)}getFieldPositionInfoById(e){let t,n=-1;return this.columnFields.indexOf(e)===-1?this.rowFields.indexOf(e)===-1?this.valueFields.indexOf(e)===-1?this.filterFields.indexOf(e)===-1?this.hiddenFields.indexOf(e)!==-1&&(t=5,n=this.hiddenFields.indexOf(e)):(t=4,n=this.filterFields.indexOf(e)):(t=3,n=this.valueFields.indexOf(e)):(t=2,n=this.rowFields.indexOf(e)):(t=1,n=this.columnFields.indexOf(e)),{area:t,index:n}}updateFieldSourceInfo(e,t,n){let r=this.getFieldById(e);if(r){let i=r.getSourceName(),a=r.getDataFieldId();if(r.setSourceName(t),r.setDataFieldId(n),this._changeStack){let r={type:11,tableFieldId:e,oldSourceName:i,newSourceName:t,oldDataFieldId:a,newDataFieldId:n};this._changeStack.push(r)}this.setDirty(!0)}}getFieldsAreaByType(e){switch(e){case 1:return this.columnFields;case 2:return this.rowFields;case 3:return this.valueFields;case 4:return this.filterFields;case 5:return this.hiddenFields}}getFieldById(e){if(this.dimension[e])return this.dimension[e];if(this.measure[e])return this.measure[e]}isExistFieldName(e){for(let t of Object.values(this.dimension))if(t.getDisplayName()===e)return!0;for(let t of Object.values(this.measure))if(t.getDisplayName()===e)return!0;return!1}renameField(e,t){let{area:n,index:r}=this.getFieldPositionInfoById(e);if(n===void 0||r===-1){console.warn(`The field ${e} is not in the pivot table.`);return}let i=this.getFieldById(e);if(!i){console.warn(`The field ${e} is not in the pivot table.`);return}let a=i.getDisplayName();if(a!==t){if(this.isExistFieldName(t))console.warn(`The displayName ${t} is exist in the pivot table.`);else if(i.setDisplayName(t),this._changeStack){let n={type:3,fieldId:e,newName:t,oldName:a};this._changeStack.push(n)}}}removeField(e){let{area:t,index:n}=this.getFieldPositionInfoById(e);if(t===void 0||n===-1){console.warn(`The field ${e} is not in the pivot table.`);return}t===3?this.removeValueFilterInfoByValueFieldId(e):P(t)&&this.removeValueFilterInfo(e),this.getFieldsAreaByType(t).splice(n,1);let r;if(N(t)?(r=this.dimension[e].toJSON(),delete this.dimension[e]):(r=this.measure[e].toJSON(),delete this.measure[e]),this._changeStack){let i={type:2,fieldId:e,fieldJson:r,area:t,index:n};this._changeStack.push(i)}this.setDirty(!0)}updateFieldPosition(e,t,n){let{area:r,index:i}=this.getFieldPositionInfoById(e);if(r===t&&i===n)return;if(r===void 0&&i===-1){console.warn(`The field ${e} is not in the pivot table.`);return}let a=this.getFieldsAreaByType(t);this.getFieldsAreaByType(r).splice(i,1),a.splice(n,0,e);let o=N(r);if(o!==N(t)){if(o){let t=this.dimension[e];delete this.dimension[e];let n=Tt(t);this.measure[e]=n}else{let t=this.measure[e];delete this.measure[e];let n=Et(t);this.dimension[e]=n}}if(this._changeStack){let a={type:6,fieldId:e,oldArea:r,newArea:t,oldIndex:i,newIndex:n};this._changeStack.push(a)}P(r)&&P(t)||r===3&&t===3||r===5&&t===5||r===4&&t===4||this.setDirty(!0)}updateValuePosition(e,t){let n=this.valuePosition,r=this.valueIndex;if(this.valuePosition=e,this.valueIndex=t,this._changeStack){let i={type:7,oldValuePosition:n,newValuePosition:e,oldIndex:r,newIndex:t};this._changeStack.push(i)}}getValueIndex(){return this.valueIndex}getValuePosition(){return this.valuePosition}isColMultiMeasure(){return this.valueFields.length<=1?!1:this.valuePosition===1}isRowMultiMeasure(){return this.valueFields.length<=1?!1:this.valuePosition===2}isEmpty(){return[].concat(this.rowFields,this.columnFields,this.valueFields,this.filterFields).length===0}setSubtotalType(e,t){if(this.measure[e]){let n=this.measure[e].getSubtotal();if(this.measure[e].setSubtotal(t),this._changeStack){let r={type:1,fieldId:e,newSubtotalType:t,oldSubtotalType:n};this._changeStack.push(r)}this.setDirty(!0)}}getShowDataAs(e){var t;return(t=this.measure[e])==null?void 0:t.getShowDataAs()}setShowDataAs(e,t){let n=this.measure[e];if(!n)return;let r=n.getShowDataAs();if(n.setShowDataAs(t),this._changeStack){let t={type:14,fieldId:e,oldShowDataAs:r,newShowDataAs:n.getShowDataAs()};this._changeStack.push(t)}}getQueryData(){let e=this.dimension,t=[];for(let n of this.rowFields)e[n]&&t.push(e[n].getQueryData());let n=[];for(let t of this.columnFields)e[t]&&n.push(e[t].getQueryData());let r=[];for(let t of this.filterFields)e[t]&&r.push(e[t].getQueryData());let i=[];for(let t of this.hiddenFields)e[t]&&i.push(e[t].getQueryData());let a=[];for(let e of this.valueFields)this.measure[e]&&a.push(this.measure[e].getQueryData());let o=[];for(let t of this._valueFilterInfo){let{fieldId:n,filterInfo:r}=t;e[n]&&this.measure[r.valueFieldId]&&o.push($(t))}return{rowQueryInfo:t,colQueryInfo:n,filterQueryInfo:r,hiddenQueryInfo:i,valueQueryInfo:a,collapseInfo:{...this.collapseInfo},valueFilterInfo:o}}reset(e){e===void 0?(this.rowFields=[],this.columnFields=[],this.valueFields=[],this.filterFields=[],this.hiddenFields=[],this.dimension=Object.create(null),this.measure=Object.create(null),this.valueIndex=-1,this.valuePosition=-1,this.collapseInfo=Object.create(null),this.options={}):e===1?(this.columnFields.forEach(e=>{delete this.dimension[e]}),this.columnFields=[]):e===2?(this.rowFields.forEach(e=>{delete this.dimension[e]}),this.rowFields=[]):e===4?(this.filterFields.forEach(e=>{delete this.dimension[e]}),this.filterFields=[]):e===3&&(this.valueFields.forEach(e=>{delete this.measure[e]}),this.valueIndex=-1,this.valuePosition=-1,this.valueFields=[])}fromJSON(e){this.dimension=Object.keys(e.dimension).reduce((t,n)=>{let r=e.dimension[n],i=new Z(r.dataFieldId,r.id,r.displayName,r.sourceName);return i.fromJSON(r),t[n]=i,t},Object.create(null)),this.measure=Object.keys(e.measure).reduce((t,n)=>{let r=e.measure[n],i=new X(r.dataFieldId,r.id,r.displayName,r.sourceName);return i.fromJSON(e.measure[n]),t[n]=i,t},Object.create(null)),this.filterFields=e.filterFields.concat(),this.hiddenFields=e.hiddenFields.concat(),this.rowFields=e.rowFields.concat(),this.valueFields=e.valueFields.concat(),this.columnFields=e.columnFields.concat(),this.layout=e.layout??3,this.valueIndex=e.valueIndex,this.valuePosition=e.valuePosition,this.collapseInfo=Object.assign(Object.create(null),e.collapseInfo),this.options={...e.options},this._valueFilterInfo=e.valueFilter?e.valueFilter.map($):[]}toJSON(){let e=Object.keys(this.dimension).reduce((e,t)=>(e[t]=this.dimension[t].toJSON(),e),Object.create(null)),t=Object.keys(this.measure).reduce((e,t)=>(e[t]=this.measure[t].toJSON(),e),Object.create(null)),n=this._valueFilterInfo.map($);return{columnFields:this.columnFields.concat(),dimension:e,measure:t,filterFields:this.filterFields.concat(),hiddenFields:this.hiddenFields.concat(),rowFields:this.rowFields.concat(),valueFields:this.valueFields.concat(),layout:this.layout,valueIndex:this.valueIndex,valuePosition:this.valuePosition,collapseInfo:{...this.collapseInfo},options:{...this.options},valueFilter:n}}cloneBufferModel(){let t=new e;return t.fromJSON(this.toJSON()),t.setDirty(this.getDirty()),t}};function Q(e){if(e)return{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected}}function $(e){return{fieldId:e.fieldId,filterInfo:Q(e.filterInfo)}}var At=class e{static registerCallbackWithEvent(e,t){var n;this._callbacks[e]||(this._callbacks[e]=[]),(n=this._callbacks[e])==null||n.push(t)}static unRegisterCallbackWithEvent(e,t){let n=this._callbacks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&delete this._callbacks[e]}}constructor(e,t,n){A(this,`dataFieldsCollection`,void 0),A(this,`_model`,void 0),A(this,`_bufferModel`,void 0),A(this,`_tupleGroupCache`,void 0),A(this,`_summaryManagerCache`,void 0),A(this,`_summaryCacheState`,`invalid`),A(this,`_defaultSortLocale`,void 0),A(this,`_id`,void 0),this.dataFieldsCollection=e,t?this._model=t:this._generateModel(),n&&(this._id=n)}updateDataFieldsCollection(e){this.dataFieldsCollection=e}getFilteredRecordIndexes(e,t){let n=this._getModel().getQueryData();for(let r of[...n.rowQueryInfo,...n.colQueryInfo,...n.filterQueryInfo,...n.hiddenQueryInfo??[]])r.dataFieldId===e&&(t===`dateRange`&&(r.conditionFilter=void 0),r.filterInfo&&(T(r.filterInfo)?delete r.filterInfo[t]:r.filterInfo.type===1==(t===`dateRange`)&&(r.filterInfo=void 0)));let r=new xt;return r.prepare(this.dataFieldsCollection,n),r.filter(n)}_getModel(){return this._bufferModel?this._bufferModel:this._model}startCollectChangeset(){this._bufferModel=this._model.cloneBufferModel(),this._bufferModel.startChangeStack()}endCollectChangeset(){let e=this._bufferModel,t=e.endChangeStack();return e.getDirty()&&this._model.setDirty(!0),this.cancelCollectChangeset(),t}cancelCollectChangeset(){this._tupleGroupCache=void 0,this._summaryManagerCache=void 0,this._summaryCacheState=`invalid`,this._bufferModel=void 0}_generateModel(){this._model=new kt}createLabelFieldByDataFieldId(e,t,r){let i=this.dataFieldsCollection.getFieldById(e);if(i){let a=r||this.getUniqueFieldId();return n.isDev&&(a=`${t}-${a}`),new Z(i.getId(),a,t||this.dataFieldsCollection.getDisplayName(e),i.name)}}createValueFieldByDataFieldId(e,t){let r=this.dataFieldsCollection.getFieldById(e);if(r){let i=r.getFieldDataType()===2?9:2,a=(this.dataFieldsCollection.host.getAutoDisplayNameFunction()||F)(this.dataFieldsCollection.getDisplayName(e),i),o=t||this.getUniqueFieldId();n.isDev&&(o=`${a}-${o}`);let s=new X(r.getId(),o,this.getUniqueValueFieldName(a),r.name);return s.setSubtotal(i),s}}updateValuePosition(e,t){this._getModel().updateValuePosition(e,t)}isColMultiMeasure(){return this._getModel().isColMultiMeasure()}isRowMultiMeasure(){return this._getModel().isRowMultiMeasure()}getValueIndex(){return this._getModel().getValueIndex()}getValuePosition(){return this._getModel().getValuePosition()}iterateField(e){this._getModel().iterateField(e)}iterateFieldDim(e){this._getModel().iterateFieldDim(e)}iterateFieldByArea(e,t){this._getModel().iterateFieldByArea(e,t)}getFieldCountByArea(e){return this._getModel().getFieldsAreaByType(e).length}getValueFields(){return this._getModel().valueFields}getUniqueValueFieldName(e){let t=this._getModel();if(!t.isExistFieldName(e))return e;let n=1;for(;t.isExistFieldName(e+String(n));)n++;return e+String(n)}getDataFieldByTableId(e){var t;let n=(t=this._getModel().getFieldById(e))==null?void 0:t.dataFieldId;if(n)return this.dataFieldsCollection.getFieldById(n)}getTableFieldsByDataFieldId(e){let t=[];return this.iterateField(n=>{n.getDataFieldId()===e&&t.push(n)}),t}getTableFieldById(e){return this._getModel().getFieldById(e)}isExistField(e){return!!this._getModel().getFieldById(e)}isEmpty(){return this._getModel().isEmpty()}getDataFieldByDataFieldId(e){return this.dataFieldsCollection.getFieldById(e)}getDataFieldIdByDisplayName(e){return this.dataFieldsCollection.getFieldIdByDisplayName(e)}getFieldDisplayNames(){return this.dataFieldsCollection.getFieldDisplayNames()}getDataFieldItemInfo(e){return{items:e.items,itemTypes:e.itemTypes}}getUniqueFieldId(){let e=Object.keys(this._getModel().dimension).length+Object.keys(this._getModel().measure).length,t=Math.max(Math.ceil(Math.log2(e)/4),2),n=L(t);for(;this._getModel().getFieldById(n);)n=L(t);return n}addFieldWithSourceId(e,t,n,r){let i;if(i=N(t)?this.createLabelFieldByDataFieldId(e,void 0,r):this.createValueFieldByDataFieldId(e,r),i)return this.addField(i,t,n),i}setOptions(e,t=!1){this._getModel().setOptions(e,t)}setLayout(e){this._getModel().setLayout(e)}getLayout(){return this._getModel().getLayout()}updateFieldSourceInfo(e,t,n){this._getModel().updateFieldSourceInfo(e,t,n)}setSubtotalType(e,t){this._getModel().setSubtotalType(e,t)}getShowDataAs(e){return this._getModel().getShowDataAs(e)}setShowDataAs(e,t){this._getModel().setShowDataAs(e,t)}renameField(e,t){this._getModel().renameField(e,t)}setLabelFilterInfo(e,t,n){this._getModel().setLabelFilterInfo(e,t,n)}getConditionFilterInfo(e){return this._getModel().getConditionFilterInfo(e)}clearFieldFilters(e){this._getModel().clearFieldFilters(e)}setFieldFilterState(e,t,n){this._getModel().setFieldFilterState(e,t,n)}setDateFilterInfo(e,t){let n=this.getFilterInfo(e);if(!this._getModel().dimension[e])return!1;if(t===void 0)return!x(this.getConditionFilterInfo(e))&&!(T(n)&&n.dateRange)?!1:(this.setLabelFilterInfo(e,void 0,`condition`),!0);S(t);let r=this.getDataFieldByTableId(e);return!r||r.getFieldDataType()!==4?!1:(this.setLabelFilterInfo(e,t,`condition`),!0)}setSortInfo(e,t){this._getModel().setSortInfo(e,t),this._summaryCacheState===`ready`&&(this._summaryCacheState=`sort`)}setDefaultSortLocale(e){this._defaultSortLocale!==e&&(this._defaultSortLocale=e,this._summaryCacheState===`ready`&&(this._summaryCacheState=`sort`))}getSortInfo(e){return this._getModel().getSortInfo(e)}getFilterInfo(e){return this._getModel().getFilterInfo(e)}getFilterFieldIdByIndex(e){return this._getModel().filterFields[e]}updateFieldPosition(e,t,n){let{area:r}=this._getModel().getFieldPositionInfoById(e);this._getModel().updateFieldPosition(e,t,n),r!==2&&r!==1||t!==2&&t!==1||(this._summaryCacheState=`invalid`)}getFieldFormat(e){return this._getModel().getFieldFormat(e)}setFieldFormat(e,t){this._getModel().setFieldFormat(e,t)}addField(e,t,n){this._getModel().addField(e,t,n)}removeField(e){this._getModel().removeField(e)}getOptions(){return this._getModel().getOptions()}setCollapse(e,t,n){var r;let i=this._getModel(),a=n!==void 0&&i.collapseInfo[e]===!0?(r=this.getDataFieldByTableId(e))==null?void 0:r.items:void 0;i.setCollapse(e,t,n,a),this._summaryCacheState=`invalid`}setRowCollapseLevel(e){let{rowFields:t}=this._getModel(),n=t.indexOf(e);if(n<0)return!1;for(let e=0;e<t.length-1;e++)this.setCollapse(t[e],e>=n);return!0}getFieldPositionInfoById(e){return this._getModel().getFieldPositionInfoById(e)}_getTupleCache(e){return(!this._tupleGroupCache||this._getModel().getDirty())&&(this._tupleGroupCache=new xt,this._tupleGroupCache.query(this.dataFieldsCollection,e),this._summaryManagerCache=void 0,this._summaryCacheState=`invalid`),this._tupleGroupCache}_getGroupInfo(){let e={};return this._getModel().iterateFieldDim(t=>{let n=t.dataFieldId,r=this.dataFieldsCollection.getFieldById(n);if(B(r)){let n=r.getGroupInfo();n&&(e[t.getId()]=n)}}),e}setValueFilterInfo(e,t,n){this._getModel().setValueFilterInfo(e,t,n),this._summaryCacheState=`invalid`}setValueFilterState(e,t,n){this._getModel().setValueFilterState(e,t,n),this._summaryCacheState=`invalid`}getValueFilterInfos(){return this._getModel().getValueFilterInfos()}getValueFilterInfo(e){return this._getModel().getValueFilterInfo(e)}removeValueFilterInfo(e){this._getModel().removeValueFilterInfo(e),this._summaryCacheState=`invalid`}removeValueFilterInfoByValueFieldId(e){this._getModel().removeValueFilterInfoByValueFieldId(e),this._summaryCacheState=`invalid`}getIndexesByPathStr(e){let t=this._getTupleCache(this._getModel().getQueryData()),n=/* @__PURE__ */ new Map;for(let[e,r]of t.dimensionTableIdList.entries())n.set(r,e);return t.tuples.reduce((t,r)=>(e.every(e=>{let[t,i]=e,a=r.path,o=n.get(i);return o!==void 0&&a[o]===t})&&t.push(...r.indexes),t),[]).sort((e,t)=>e-t)}setDirty(e){this._getModel().setDirty(e)}reset(e){this._getModel().reset(e),this._summaryCacheState=`invalid`}query(t){let n=e._callbacks.onQueryStart;n&&n.forEach(e=>{e(this._id)});let r=t||this._getModel().getQueryData(),i=this._getTupleCache(r),a;t?(a=new bt(r,i,this._defaultSortLocale),a.doSummary()):(!this._summaryManagerCache||this._summaryCacheState===`invalid`?(this._summaryManagerCache=new bt(r,i,this._defaultSortLocale),this._summaryManagerCache.doSummary()):this._summaryCacheState===`sort`&&this._summaryManagerCache.resort(r,this._defaultSortLocale),a=this._summaryManagerCache,this._summaryCacheState=`ready`);let o;try{o=this._layout(a,r)}finally{a.clearShowDataAsCache()}o.setFormat(this._getModel(),r.valueQueryInfo);let s=this._getGroupInfo();o.setGroupInfo(s),this._getModel().setDirty(!1);let c=e._callbacks.onQueryEnd;return c&&c.forEach(e=>{e(this._id)}),o}_layout(e,t){switch(this.getLayout()){case 1:return ft.layout(this,e,t);case 2:return pt.layout(this,e,t);default:return dt.layout(this,e,t)}}toJSON(){return this._getModel().toJSON()}fromJSON(e){this._getModel().fromJSON(e),this.setDirty(!0),this._summaryCacheState=`invalid`}dispose(){this.dataFieldsCollection=null,this._model=null}};A(At,`_callbacks`,{}),e.BaseGroupField=H,e.DataField=V,e.DataFieldManager=et,e.DateGroupField=Ge,e.EXCEL_DATE_AFTER_KEY=Re,e.EXCEL_DATE_BEFORE_KEY=-1,e.FieldsCollection=$e,e.GlobalConfig=n,e.LabelViewItem=at,e.ManualGroupField=W,e.NUMBER_GROUP_AFTER_KEY=Je,e.NUMBER_GROUP_BEFORE_KEY=qe,e.NumberGroupField=Qe,e.PivotCallbackEnum=v,e.PivotCellStyleTypeEnum=he,e.PivotDataFieldDataTypeEnum=f,e.PivotDataFieldSortOperatorEnum=m,e.PivotDataFieldSortTypeEnum=p,e.PivotDataFieldTypeEnum=y,e.PivotDateGroupFieldDateTypeEnum=te,e.PivotDateGroupingMode=b,e.PivotErrorTypeEnum=c,e.PivotExcelDateGroupUnit=ee,e.PivotFilterCategory=ne,e.PivotFilterTypeEnum=l,e.PivotLayoutTypeEnum=g,e.PivotShowAsBaseItemTypeEnum=s,e.PivotShowAsTypeEnum=o,e.PivotSubtotalPositionEnum=_,e.PivotSubtotalTypeEnum=a,e.PivotTable=At,e.PivotTableChangeTypeEnum=pe,e.PivotTableFiledAreaEnum=u,e.PivotTableLabelField=Z,e.PivotTableValueField=X,e.PivotTableValuePositionEnum=d,e.PivotView=rt,e.PivotViewCellValueTypeEnum=me,e.PivotViewItem=K,e.ST_PivotFilterOperatorEnum=h,e.compilePivotDateFilter=S,e.createDataFieldFromJSON=G,e.createLabelField=Ot,e.createPivotSortCompare=z,e.createValueField=Dt,e.excelDateToUnixMilliseconds=Pe,e.generateHexNumber=L,e.getAutoDisplayName=F,e.getDefaultNumberGrouping=Ze,e.getPivotDateGroupingMode=ye,e.getPivotRecordMember=ue,e.hasPivotMultipleFilters=le,e.isBaseGroupField=B,e.isDateGroupField=Fe,e.isDateGroupFieldJSON=Ie,e.isDateValue=C,e.isErrorValue=lt,e.isManualPivotFilter=I,e.isPivotDateFilter=x,e.isPivotTableFilterRestrictive=E,e.isPrefixValue=ct,e.isRecordErrorValue=w,e.isValueFilterOperator=ae,e.normalizeExcelDateGrouping=Ve,e.normalizeManualGrouping=U,e.normalizeNumberGrouping=Xe,e.setDateSystem=r,e.setMaxLimitItemCount=i});