@univerjs-pro/engine-pivot 1.5.0 → 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/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5ad6b7=_0x391c;(function(_0x24f701,_0x3e49c6){const _0x5cc8c7=_0x391c,_0x478b16=_0x24f701();while(!![]){try{const _0x5015c9=parseInt(_0x5cc8c7(0x179))/0x1+parseInt(_0x5cc8c7(0x1d5))/0x2+-parseInt(_0x5cc8c7(0x315))/0x3*(-parseInt(_0x5cc8c7(0x27b))/0x4)+-parseInt(_0x5cc8c7(0x17e))/0x5*(-parseInt(_0x5cc8c7(0x32b))/0x6)+-parseInt(_0x5cc8c7(0x1fd))/0x7+-parseInt(_0x5cc8c7(0x4c7))/0x8*(-parseInt(_0x5cc8c7(0x38f))/0x9)+parseInt(_0x5cc8c7(0x260))/0xa*(-parseInt(_0x5cc8c7(0x399))/0xb);if(_0x5015c9===_0x3e49c6)break;else _0x478b16['push'](_0x478b16['shift']());}catch(_0x13979f){_0x478b16['push'](_0x478b16['shift']());}}}(_0x1055,0x6566f),Object[_0x5ad6b7(0x18f)](exports,Symbol['toStringTag'],{'value':_0x5ad6b7(0x1c1)}));let e=require('@univerjs/core');const t={'TUPLE_PLACEHOLDER':'-&&-','TUPLE_FIELD_SEPARATOR':_0x5ad6b7(0x387),'COl_ROOT_PATH':_0x5ad6b7(0x19c),'ROW_ROOT_PATH':_0x5ad6b7(0x21a),'BLANK_PLACEHOLDER':'-$-blk-$-','isDev':!0x1,'defaultSortType':'default','dateSystem':e[_0x5ad6b7(0x182)][_0x5ad6b7(0x212)],'maxLimitItemCount':0x3e8,'otherDataKey':_0x5ad6b7(0x1a6)},n=_0x4a4312=>t['dateSystem']=_0x4a4312,r=_0x3d7721=>{const _0x135aa1=_0x5ad6b7;_0x3d7721>0x0&&(t[_0x135aa1(0x423)]=_0x3d7721);};let i=function(_0x3b330a){const _0x14332a=_0x5ad6b7;return _0x3b330a[_0x3b330a['average']=0x1]=_0x14332a(0x459),_0x3b330a[_0x3b330a[_0x14332a(0x1d9)]=0x2]=_0x14332a(0x1d9),_0x3b330a[_0x3b330a[_0x14332a(0x1fb)]=0x3]='countNums',_0x3b330a[_0x3b330a['max']=0x4]=_0x14332a(0x278),_0x3b330a[_0x3b330a[_0x14332a(0x3ef)]=0x5]=_0x14332a(0x3ef),_0x3b330a[_0x3b330a['product']=0x6]=_0x14332a(0x31f),_0x3b330a[_0x3b330a[_0x14332a(0x478)]=0x7]=_0x14332a(0x478),_0x3b330a[_0x3b330a[_0x14332a(0x1ed)]=0x8]='stdDevp',_0x3b330a[_0x3b330a[_0x14332a(0x2f3)]=0x9]=_0x14332a(0x2f3),_0x3b330a[_0x3b330a[_0x14332a(0x33a)]=0xa]=_0x14332a(0x33a),_0x3b330a[_0x3b330a[_0x14332a(0x2af)]=0xb]=_0x14332a(0x2af),_0x3b330a;}({}),a=function(_0x397cbd){const _0x3c4263=_0x5ad6b7;return _0x397cbd[_0x397cbd[_0x3c4263(0x406)]=0x1]=_0x3c4263(0x406),_0x397cbd[_0x397cbd['percentOfColumnTotal']=0x2]='percentOfColumnTotal',_0x397cbd[_0x397cbd[_0x3c4263(0x41a)]=0x3]='percentOfRowTotal',_0x397cbd[_0x397cbd['percentOfGrandTotal']=0x4]=_0x3c4263(0x482),_0x397cbd[_0x397cbd[_0x3c4263(0x2f5)]=0x5]=_0x3c4263(0x2f5),_0x397cbd[_0x397cbd['percentOfParentRowTotal']=0x6]=_0x3c4263(0x243),_0x397cbd[_0x397cbd[_0x3c4263(0x28b)]=0x7]='percentOfParentGrandTotal',_0x397cbd[_0x397cbd[_0x3c4263(0x186)]=0x8]=_0x3c4263(0x186),_0x397cbd[_0x397cbd[_0x3c4263(0x2a1)]=0x9]='differenceFrom',_0x397cbd[_0x397cbd[_0x3c4263(0x4a4)]=0xa]='percentDifferenceFrom',_0x397cbd[_0x397cbd[_0x3c4263(0x451)]=0xb]=_0x3c4263(0x451),_0x397cbd[_0x397cbd['percentRunningTotal']=0xc]=_0x3c4263(0x2e7),_0x397cbd[_0x397cbd[_0x3c4263(0x381)]=0xd]=_0x3c4263(0x381),_0x397cbd[_0x397cbd[_0x3c4263(0x4e1)]=0xe]='percentOfParent',_0x397cbd[_0x397cbd[_0x3c4263(0x35f)]=0xf]='rankAscending',_0x397cbd[_0x397cbd['rankDescending']=0x10]=_0x3c4263(0x410),_0x397cbd;}({}),o=function(_0x124a93){const _0x3f87e6=_0x5ad6b7;return _0x124a93[_0x124a93[_0x3f87e6(0x2a5)]=0x1]=_0x3f87e6(0x2a5),_0x124a93[_0x124a93[_0x3f87e6(0x218)]=0x2]=_0x3f87e6(0x218),_0x124a93[_0x124a93[_0x3f87e6(0x198)]=0x3]=_0x3f87e6(0x198),_0x124a93;}({}),s=function(_0x5d3393){const _0x4fe56a=_0x5ad6b7;return _0x5d3393[_0x5d3393['Div0']=0x1]='Div0',_0x5d3393[_0x5d3393[_0x4fe56a(0x3a0)]=0x2]=_0x4fe56a(0x3a0),_0x5d3393[_0x5d3393[_0x4fe56a(0x498)]=0x3]='NotFunction',_0x5d3393[_0x5d3393[_0x4fe56a(0x48f)]=0x4]=_0x4fe56a(0x48f),_0x5d3393[_0x5d3393['BadReference']=0x5]=_0x4fe56a(0x395),_0x5d3393;}({}),c=function(_0x17437b){const _0x17cf7b=_0x5ad6b7;return _0x17437b[_0x17437b[_0x17cf7b(0x193)]=0x1]='CustomFilter',_0x17437b[_0x17437b[_0x17cf7b(0x295)]=0x2]=_0x17cf7b(0x295),_0x17437b[_0x17437b[_0x17cf7b(0x24b)]=0x3]=_0x17cf7b(0x24b),_0x17437b[_0x17437b[_0x17cf7b(0x464)]=0x4]='RecordFilter',_0x17437b;}({}),l=function(_0xe9eeb9){const _0x39eec4=_0x5ad6b7;return _0xe9eeb9[_0xe9eeb9['Column']=0x1]=_0x39eec4(0x3ca),_0xe9eeb9[_0xe9eeb9['Row']=0x2]=_0x39eec4(0x1d7),_0xe9eeb9[_0xe9eeb9[_0x39eec4(0x21f)]=0x3]=_0x39eec4(0x21f),_0xe9eeb9[_0xe9eeb9[_0x39eec4(0x448)]=0x4]=_0x39eec4(0x448),_0xe9eeb9[_0xe9eeb9[_0x39eec4(0x1c4)]=0x5]=_0x39eec4(0x1c4),_0xe9eeb9;}({}),u=function(_0x4cf868){const _0x277810=_0x5ad6b7;return _0x4cf868[_0x4cf868[_0x277810(0x3f3)]=-0x1]='None',_0x4cf868[_0x4cf868[_0x277810(0x3ca)]=0x1]=_0x277810(0x3ca),_0x4cf868[_0x4cf868['Row']=0x2]=_0x277810(0x1d7),_0x4cf868;}({}),d=function(_0x267f8a){const _0x1f56b5=_0x5ad6b7;return _0x267f8a[_0x267f8a[_0x1f56b5(0x444)]=0x1]='text',_0x267f8a[_0x267f8a[_0x1f56b5(0x3f4)]=0x2]=_0x1f56b5(0x3f4),_0x267f8a[_0x267f8a[_0x1f56b5(0x228)]=0x3]=_0x1f56b5(0x228),_0x267f8a[_0x267f8a[_0x1f56b5(0x34f)]=0x4]=_0x1f56b5(0x34f),_0x267f8a[_0x267f8a[_0x1f56b5(0x342)]=0x5]=_0x1f56b5(0x342),_0x267f8a[_0x267f8a['other']=0x6]=_0x1f56b5(0x1da),_0x267f8a;}({}),f=function(_0x52bb6a){const _0x349dce=_0x5ad6b7;return _0x52bb6a[_0x52bb6a['value']=0x1]=_0x349dce(0x414),_0x52bb6a[_0x52bb6a[_0x349dce(0x25e)]=0x2]=_0x349dce(0x25e),_0x52bb6a;}({}),p=function(_0x14b85f){const _0x51d8cf=_0x5ad6b7;return _0x14b85f[_0x14b85f['ascending']=0x1]=_0x51d8cf(0x465),_0x14b85f[_0x14b85f[_0x51d8cf(0x426)]=0x2]='descending',_0x14b85f[_0x14b85f[_0x51d8cf(0x356)]=0x3]='custom',_0x14b85f;}({}),m=function(_0x6a8bdf){const _0x10c428=_0x5ad6b7;return _0x6a8bdf[_0x6a8bdf[_0x10c428(0x368)]=0x1]=_0x10c428(0x368),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x484)]=0x2]='captionBetween',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x211)]=0x3]=_0x10c428(0x211),_0x6a8bdf[_0x6a8bdf['captionEndsWith']=0x4]=_0x10c428(0x3a7),_0x6a8bdf[_0x6a8bdf['captionEqual']=0x5]=_0x10c428(0x486),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x192)]=0x6]=_0x10c428(0x192),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x21e)]=0x7]='captionGreaterThanOrEqual',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x4af)]=0x8]=_0x10c428(0x4af),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2f7)]=0x9]=_0x10c428(0x2f7),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x27e)]=0xa]='captionNotBeginsWith',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x153)]=0xb]=_0x10c428(0x153),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x3d5)]=0xc]=_0x10c428(0x3d5),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2db)]=0xd]=_0x10c428(0x2db),_0x6a8bdf[_0x6a8bdf['captionNotEqual']=0xe]=_0x10c428(0x2b2),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x1d9)]=0xf]=_0x10c428(0x1d9),_0x6a8bdf[_0x6a8bdf['dateBetween']=0x10]='dateBetween',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x33e)]=0x11]=_0x10c428(0x33e),_0x6a8bdf[_0x6a8bdf['dateNewerThan']=0x12]='dateNewerThan',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x372)]=0x13]='dateNewerThanOrEqual',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x19e)]=0x14]='dateNotBetween',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2d9)]=0x15]='dateNotEqual',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x44e)]=0x16]=_0x10c428(0x44e),_0x6a8bdf[_0x6a8bdf['dateOlderThanOrEqual']=0x17]='dateOlderThanOrEqual',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x160)]=0x18]=_0x10c428(0x160),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x469)]=0x19]='lastQuarter',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x45a)]=0x1a]=_0x10c428(0x45a),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x33c)]=0x1b]=_0x10c428(0x33c),_0x6a8bdf[_0x6a8bdf['M1']=0x1c]='M1',_0x6a8bdf[_0x6a8bdf['M10']=0x1d]=_0x10c428(0x303),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2b1)]=0x1e]=_0x10c428(0x2b1),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x216)]=0x1f]='M12',_0x6a8bdf[_0x6a8bdf['M2']=0x20]='M2',_0x6a8bdf[_0x6a8bdf['M3']=0x21]='M3',_0x6a8bdf[_0x6a8bdf['M4']=0x22]='M4',_0x6a8bdf[_0x6a8bdf['M5']=0x23]='M5',_0x6a8bdf[_0x6a8bdf['M6']=0x24]='M6',_0x6a8bdf[_0x6a8bdf['M7']=0x25]='M7',_0x6a8bdf[_0x6a8bdf['M8']=0x26]='M8',_0x6a8bdf[_0x6a8bdf['M9']=0x27]='M9',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2c8)]=0x28]=_0x10c428(0x2c8),_0x6a8bdf[_0x6a8bdf['nextQuarter']=0x29]=_0x10c428(0x2a7),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x3e4)]=0x2a]=_0x10c428(0x3e4),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2fb)]=0x2b]=_0x10c428(0x2fb),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x1b8)]=0x2c]='percent',_0x6a8bdf[_0x6a8bdf['Q1']=0x2d]='Q1',_0x6a8bdf[_0x6a8bdf['Q2']=0x2e]='Q2',_0x6a8bdf[_0x6a8bdf['Q3']=0x2f]='Q3',_0x6a8bdf[_0x6a8bdf['Q4']=0x30]='Q4',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2f3)]=0x31]='sum',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x320)]=0x32]=_0x10c428(0x320),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x21c)]=0x33]=_0x10c428(0x21c),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x449)]=0x34]='thisWeek',_0x6a8bdf[_0x6a8bdf['thisYear']=0x35]=_0x10c428(0x453),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x298)]=0x36]=_0x10c428(0x298),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x3ff)]=0x37]=_0x10c428(0x3ff),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x407)]=0x38]=_0x10c428(0x407),_0x6a8bdf[_0x6a8bdf['valueBetween']=0x39]=_0x10c428(0x28d),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x33f)]=0x3a]=_0x10c428(0x33f),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2e8)]=0x3b]=_0x10c428(0x2e8),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x477)]=0x3c]=_0x10c428(0x477),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x400)]=0x3d]='valueLessThan',_0x6a8bdf[_0x6a8bdf[_0x10c428(0x352)]=0x3e]=_0x10c428(0x352),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x2ea)]=0x3f]=_0x10c428(0x2ea),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x45d)]=0x40]=_0x10c428(0x45d),_0x6a8bdf[_0x6a8bdf['yearToDate']=0x41]=_0x10c428(0x284),_0x6a8bdf[_0x6a8bdf[_0x10c428(0x439)]=0x42]=_0x10c428(0x439),_0x6a8bdf;}({}),h=function(_0x4be8bb){const _0x12cbd5=_0x5ad6b7;return _0x4be8bb[_0x4be8bb['compact']=0x1]=_0x12cbd5(0x1cd),_0x4be8bb[_0x4be8bb[_0x12cbd5(0x2b4)]=0x2]=_0x12cbd5(0x2b4),_0x4be8bb[_0x4be8bb['tabular']=0x3]=_0x12cbd5(0x4b4),_0x4be8bb;}({}),g=function(_0x74e8c7){const _0x2edebf=_0x5ad6b7;return _0x74e8c7[_0x74e8c7[_0x2edebf(0x2e6)]=0x1]=_0x2edebf(0x2e6),_0x74e8c7[_0x74e8c7['bottom']=0x2]=_0x2edebf(0x4c4),_0x74e8c7;}({}),_=function(_0x2fe243){const _0x5d3a86=_0x5ad6b7;return _0x2fe243[_0x5d3a86(0x33b)]='onQueryStart',_0x2fe243[_0x5d3a86(0x386)]=_0x5d3a86(0x386),_0x2fe243;}({}),v=function(_0x31fb94){const _0x16b071=_0x5ad6b7;return _0x31fb94[_0x31fb94[_0x16b071(0x172)]=0x1]='defaultNormalField',_0x31fb94[_0x31fb94['numberGroupField']=0x2]=_0x16b071(0x4d7),_0x31fb94[_0x31fb94[_0x16b071(0x47e)]=0x3]=_0x16b071(0x47e),_0x31fb94[_0x31fb94['textGroupField']=0x4]='textGroupField',_0x31fb94[_0x31fb94[_0x16b071(0x4ad)]=0x5]='customGroupField',_0x31fb94;}({}),y=function(_0xe7d556){const _0x1f2fb5=_0x5ad6b7;return _0xe7d556[_0x1f2fb5(0x2ba)]=_0x1f2fb5(0x296),_0xe7d556[_0x1f2fb5(0x380)]=_0x1f2fb5(0x281),_0xe7d556;}({}),b=function(_0x44f959){const _0x56cdb8=_0x5ad6b7;return _0x44f959['Year']=_0x56cdb8(0x2c5),_0x44f959[_0x56cdb8(0x2c6)]=_0x56cdb8(0x2c9),_0x44f959[_0x56cdb8(0x438)]=_0x56cdb8(0x456),_0x44f959['Day']=_0x56cdb8(0x34d),_0x44f959['Hour']='hour',_0x44f959['Minute']='minute',_0x44f959[_0x56cdb8(0x411)]=_0x56cdb8(0x329),_0x44f959;}({}),ee=function(_0x36cac3){const _0x169266=_0x5ad6b7;return _0x36cac3[_0x169266(0x44c)]='minute',_0x36cac3[_0x169266(0x27d)]='hour',_0x36cac3[_0x169266(0x190)]=_0x169266(0x480),_0x36cac3[_0x169266(0x36e)]=_0x169266(0x34f),_0x36cac3[_0x169266(0x438)]='month',_0x36cac3[_0x169266(0x46c)]=_0x169266(0x435),_0x36cac3['Quarter']='quarter',_0x36cac3[_0x169266(0x4c2)]=_0x169266(0x2c5),_0x36cac3[_0x169266(0x4db)]=_0x169266(0x2d4),_0x36cac3['YearQuarter']=_0x169266(0x302),_0x36cac3['YearMonthDate']=_0x169266(0x427),_0x36cac3;}({}),te=function(_0x1005f4){const _0x4bc810=_0x5ad6b7;return _0x1005f4[_0x4bc810(0x41c)]='member',_0x1005f4[_0x4bc810(0x4d9)]='condition',_0x1005f4[_0x4bc810(0x21f)]=_0x4bc810(0x414),_0x1005f4;}({});function x(_0x45b1a0){const _0x1891b3=_0x5ad6b7;return Number[_0x1891b3(0x4b0)](_0x45b1a0)&&_0x45b1a0>=0x10&&_0x45b1a0<=0x17;}function S(_0x5723e2){const _0x194af2=_0x5ad6b7;return(_0x5723e2==null?void 0x0:_0x5723e2[_0x194af2(0x3b6)])===0x1&&x(_0x5723e2[_0x194af2(0x24c)]);}function C(_0x28ca40){const _0x3fb704=_0x5ad6b7;if(!S(_0x28ca40)||_0x28ca40[_0x3fb704(0x2c1)]!==void 0x0&&typeof _0x28ca40[_0x3fb704(0x2c1)]!=_0x3fb704(0x228))throw TypeError(_0x3fb704(0x318));let _0x21523d=_0x28ca40[_0x3fb704(0x24c)]===0x10||_0x28ca40['operator']===0x14,_0x452b55=_0x21523d?_0x28ca40['expected']:[_0x28ca40[_0x3fb704(0x2ee)]];if(!Array[_0x3fb704(0x3d2)](_0x452b55)||_0x452b55['length']!==(_0x21523d?0x2:0x1)||_0x452b55[_0x3fb704(0x467)](_0x42fddb=>typeof _0x42fddb!=_0x3fb704(0x3f4)||!Number[_0x3fb704(0x2bc)](_0x42fddb))||_0x21523d&&_0x452b55[0x0]>_0x452b55[0x1])throw RangeError(_0x3fb704(0x23a));let _0x1737b1=_0x28ca40[_0x3fb704(0x2c1)]===!0x0,_0x5b1f81=_0x1737b1?Math['floor'](_0x452b55[0x0]):_0x452b55[0x0],_0x3c2042=_0x1737b1?Math[_0x3fb704(0x409)](_0x452b55[0x1]):_0x452b55[0x1],_0x4332b6=_0x28ca40['operator'];return _0x254f11=>{const _0x5dac54=_0x3fb704;if(!Number['isFinite'](_0x254f11))return!0x1;let _0x28325e=_0x1737b1?Math[_0x5dac54(0x409)](_0x254f11):_0x254f11;switch(_0x4332b6){case 0x10:return _0x28325e>=_0x5b1f81&&_0x28325e<=_0x3c2042;case 0x14:return _0x28325e<_0x5b1f81||_0x28325e>_0x3c2042;case 0x11:return _0x28325e===_0x5b1f81;case 0x15:return _0x28325e!==_0x5b1f81;case 0x12:return _0x28325e>_0x5b1f81;case 0x13:return _0x28325e>=_0x5b1f81;case 0x16:return _0x28325e<_0x5b1f81;case 0x17:return _0x28325e<=_0x5b1f81;default:return!0x1;}};}function w(_0x531b74){const _0x46dacc=_0x5ad6b7;return typeof _0x531b74=='object'&&!!_0x531b74&&!Array[_0x46dacc(0x3d2)](_0x531b74)&&'v'in _0x531b74&&typeof _0x531b74['v']==_0x46dacc(0x3f4)&&'f'in _0x531b74&&typeof _0x531b74['f']=='string';}function T(_0x1bdd7c){return typeof _0x1bdd7c=='object'&&!!_0x1bdd7c&&!Array['isArray'](_0x1bdd7c)&&'error'in _0x1bdd7c&&typeof _0x1bdd7c['error']=='string';}function ne(_0x19e762){const _0x255324=_0x5ad6b7;let {operator:_0x2e9696,expected:_0x3bc199}=_0x19e762,_0x14f15c=String(Array['isArray'](_0x3bc199)?_0x3bc199[0x0]:_0x3bc199),_0x5c5236=Array[_0x255324(0x3d2)](_0x3bc199)?String(_0x3bc199[0x1]):_0x14f15c;return _0x1f72a0=>{const _0x300fd3=_0x255324;switch(_0x2e9696){case 0x1:return _0x1f72a0[_0x300fd3(0x20b)](_0x14f15c);case 0x2:return _0x1f72a0>=_0x14f15c&&_0x1f72a0<=_0x5c5236;case 0x3:return _0x1f72a0[_0x300fd3(0x4da)](_0x14f15c);case 0x4:return _0x1f72a0[_0x300fd3(0x142)](_0x14f15c);case 0x5:return _0x1f72a0===_0x14f15c;case 0x6:return _0x1f72a0>_0x14f15c;case 0x7:return _0x1f72a0>=_0x14f15c;case 0x8:return _0x1f72a0<_0x14f15c;case 0x9:return _0x1f72a0<=_0x14f15c;case 0xa:return!_0x1f72a0[_0x300fd3(0x20b)](_0x14f15c);case 0xb:return _0x1f72a0<_0x14f15c||_0x1f72a0>_0x5c5236;case 0xc:return!_0x1f72a0[_0x300fd3(0x4da)](_0x14f15c);case 0xd:return!_0x1f72a0[_0x300fd3(0x142)](_0x14f15c);case 0xe:return _0x1f72a0!==_0x14f15c;default:throw TypeError(_0x300fd3(0x27f));}};}function re(_0x4e8181){switch(_0x4e8181){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 ie(_0x2dfa91,_0xbac6f9,_0x5e99f8){const _0x186486=_0x5ad6b7;let _0x29969b=Math[_0x186486(0x3ef)](_0x2dfa91[_0x186486(0x3cc)],Math['max'](0x0,Math['ceil'](_0xbac6f9)));if(_0x29969b===0x0)return;if(_0x29969b===_0x2dfa91[_0x186486(0x3cc)]){let _0x334b42=_0x2dfa91[0x0];for(let _0x45f515=0x1;_0x45f515<_0x2dfa91[_0x186486(0x3cc)];_0x45f515++)_0x334b42=_0x5e99f8?Math[_0x186486(0x278)](_0x334b42,_0x2dfa91[_0x45f515]):Math['min'](_0x334b42,_0x2dfa91[_0x45f515]);return _0x334b42;}let _0x9df732=[],_0x1a24f4=_0x353e44=>{const _0x373bb9=_0x186486;_0x9df732[_0x373bb9(0x3ed)](_0x353e44);let _0x3f9610=_0x9df732[_0x373bb9(0x3cc)]-0x1;for(;_0x3f9610>0x0;){let _0xfa744b=Math[_0x373bb9(0x409)]((_0x3f9610-0x1)/0x2);if(_0x9df732[_0xfa744b]<=_0x9df732[_0x3f9610])break;[_0x9df732[_0xfa744b],_0x9df732[_0x3f9610]]=[_0x9df732[_0x3f9610],_0x9df732[_0xfa744b]],_0x3f9610=_0xfa744b;}},_0x1afea5=_0x206ddf=>{const _0xdc5a41=_0x186486;_0x9df732[0x0]=_0x206ddf;let _0x4428f3=0x0;for(;;){let _0x154405=_0x4428f3*0x2+0x1,_0x403778=_0x154405+0x1,_0x25c2a6=_0x4428f3;if(_0x154405<_0x9df732[_0xdc5a41(0x3cc)]&&_0x9df732[_0x154405]<_0x9df732[_0x25c2a6]&&(_0x25c2a6=_0x154405),_0x403778<_0x9df732[_0xdc5a41(0x3cc)]&&_0x9df732[_0x403778]<_0x9df732[_0x25c2a6]&&(_0x25c2a6=_0x403778),_0x25c2a6===_0x4428f3)break;[_0x9df732[_0x4428f3],_0x9df732[_0x25c2a6]]=[_0x9df732[_0x25c2a6],_0x9df732[_0x4428f3]],_0x4428f3=_0x25c2a6;}};for(let _0x4dea58 of _0x2dfa91){let _0x35c11f=_0x5e99f8?-_0x4dea58:_0x4dea58;_0x9df732['length']<_0x29969b?_0x1a24f4(_0x35c11f):_0x35c11f>_0x9df732[0x0]&&_0x1afea5(_0x35c11f);}return _0x5e99f8?-_0x9df732[0x0]:_0x9df732[0x0];}function ae(_0x15c641){const _0x465538=_0x5ad6b7;let {operator:_0x3d4794,expected:_0x506cff}=_0x15c641;switch(_0x3d4794){case 0x39:return _0x16e5d=>_0x16e5d>=_0x506cff[0x0]&&_0x16e5d<=_0x506cff[0x1];case 0x3a:return _0x2b430e=>_0x2b430e===_0x506cff;case 0x3b:return _0x94bde7=>_0x94bde7>_0x506cff;case 0x3c:return _0x5c2262=>_0x5c2262>=_0x506cff;case 0x3d:return _0x48463b=>_0x48463b<_0x506cff;case 0x3e:return _0xc2b4d1=>_0xc2b4d1<=_0x506cff;case 0x3f:return _0x1273ab=>_0x1273ab<_0x506cff[0x0]||_0x1273ab>_0x506cff[0x1];case 0x40:return _0x370f79=>_0x370f79!==_0x506cff;default:return console[_0x465538(0x442)](_0x465538(0x2b8)+_0x3d4794),()=>!0x0;}}function oe(_0x396c16){const _0x15acdd=_0x5ad6b7;let _0x5a246b=new Set(),_0x10e0d0=_0x396c16['filterInfo'];return(_0x10e0d0==null?void 0x0:_0x10e0d0[_0x15acdd(0x3b6)])===0x4?(le({'type':0x4,'selection':_0x10e0d0[_0x15acdd(0x1df)]})&&_0x5a246b[_0x15acdd(0x39f)]('member'),_0x10e0d0[_0x15acdd(0x41b)]!==void 0x0&&_0x5a246b['add'](_0x15acdd(0x4b9))):_0x10e0d0&&O(_0x10e0d0)&&_0x5a246b[_0x15acdd(0x39f)](_0x10e0d0[_0x15acdd(0x3b6)]===0x1?_0x15acdd(0x4b9):_0x15acdd(0x32f)),_0x396c16[_0x15acdd(0x43c)]&&_0x5a246b[_0x15acdd(0x39f)](_0x15acdd(0x4b9)),_0x5a246b;}function se(_0x39cc08){const _0x56b1a8=_0x5ad6b7;let _0x41e6de=new Map();for(let _0x28eff5 of Object[_0x56b1a8(0x44b)](_0x39cc08[_0x56b1a8(0x2cc)])){var _0x1464de;let _0x4739ea=_0x41e6de[_0x56b1a8(0x16d)](_0x28eff5[_0x56b1a8(0x2ab)])??new Set();if(oe(_0x28eff5)['forEach'](_0x3db477=>_0x4739ea[_0x56b1a8(0x39f)](_0x3db477)),(_0x1464de=_0x39cc08[_0x56b1a8(0x148)])!=null&&_0x1464de[_0x56b1a8(0x467)](_0x4b115e=>_0x4b115e[_0x56b1a8(0x2c3)]===_0x28eff5['id'])&&_0x4739ea[_0x56b1a8(0x39f)]('value'),_0x4739ea['size']>0x1)return!0x0;_0x41e6de[_0x56b1a8(0x34a)](_0x28eff5[_0x56b1a8(0x2ab)],_0x4739ea);}return!0x1;}function E(_0x47245a){const _0x2e7929=_0x5ad6b7;if(_0x47245a==null)return{'type':e['RecordValueType']['Blank']};if(typeof _0x47245a==_0x2e7929(0x3c4))return{'type':e[_0x2e7929(0x196)][_0x2e7929(0x268)],'value':_0x47245a};if(typeof _0x47245a==_0x2e7929(0x3f4)){if(!Number[_0x2e7929(0x2bc)](_0x47245a))throw RangeError(_0x2e7929(0x336));return{'type':e[_0x2e7929(0x196)][_0x2e7929(0x1fa)],'value':_0x47245a};}if(typeof _0x47245a==_0x2e7929(0x228))return{'type':e['RecordValueType'][_0x2e7929(0x220)],'value':_0x47245a};if(T(_0x47245a))return{'type':e[_0x2e7929(0x196)][_0x2e7929(0x313)],'value':_0x47245a[_0x2e7929(0x442)]};if(w(_0x47245a)){if(!Number[_0x2e7929(0x2bc)](_0x47245a['v']))throw RangeError(_0x2e7929(0x2b7));return{'type':e['RecordValueType'][_0x2e7929(0x36e)],'value':_0x47245a['v']};}throw TypeError('Invalid\x20pivot\x20record\x20value.');}function ce(_0x677f6){const _0x32d20d=_0x5ad6b7;let _0x482d51=_0x677f6;if(!A(_0x482d51)||_0x482d51[_0x32d20d(0x3b6)]!==0x4)throw TypeError(_0x32d20d(0x31c));let {selection:_0x5b0ed2,dateRange:_0x45116f}=_0x482d51;if(A(_0x45116f)&&_0x45116f[_0x32d20d(0x2c1)]!==void 0x0&&typeof _0x45116f[_0x32d20d(0x2c1)]!='boolean')throw TypeError('Invalid\x20pivot\x20whole-day\x20mode.');if(_0x5b0ed2!==void 0x0){if(!A(_0x5b0ed2)||typeof _0x5b0ed2['mode']!='string')throw TypeError('Invalid\x20pivot\x20record\x20selection.');if(_0x5b0ed2['mode']===e[_0x32d20d(0x17b)][_0x32d20d(0x2a8)]){if(_0x32d20d(0x44b)in _0x5b0ed2)throw TypeError(_0x32d20d(0x325));}else{if(_0x5b0ed2['mode']!==e[_0x32d20d(0x17b)]['Include']&&_0x5b0ed2[_0x32d20d(0x43f)]!==e[_0x32d20d(0x17b)][_0x32d20d(0x443)]||!Array['isArray'](_0x5b0ed2[_0x32d20d(0x44b)]))throw TypeError(_0x32d20d(0x272));else _0x5b0ed2[_0x32d20d(0x44b)][_0x32d20d(0x334)](e['getRecordValueKey']);}}if(_0x45116f!==void 0x0&&(!A(_0x45116f)||typeof _0x45116f[_0x32d20d(0x20f)]!=_0x32d20d(0x3f4)||typeof _0x45116f[_0x32d20d(0x458)]!=_0x32d20d(0x3f4)||!Number['isFinite'](_0x45116f['startDate'])||!Number[_0x32d20d(0x2bc)](_0x45116f['endDate'])||_0x45116f['startDate']>_0x45116f[_0x32d20d(0x458)]))throw RangeError(_0x32d20d(0x1ce));}function D(_0x2552dd){const _0x269b34=_0x5ad6b7;return(_0x2552dd==null?void 0x0:_0x2552dd[_0x269b34(0x3b6)])===0x4;}function O(_0x3e4780){const _0x11792a=_0x5ad6b7;return D(_0x3e4780)?(ce(_0x3e4780),le(_0x3e4780)):_0x3e4780[_0x11792a(0x3b6)]!==0x3||_0x3e4780[_0x11792a(0x1d4)]!==!0x0;}function le(_0x14d09d){const _0x565781=_0x5ad6b7;var _0x10d676,_0x809fb2;return _0x14d09d[_0x565781(0x41b)]!==void 0x0||((_0x10d676=_0x14d09d['selection'])==null?void 0x0:_0x10d676[_0x565781(0x43f)])===e[_0x565781(0x17b)][_0x565781(0x35a)]||((_0x809fb2=_0x14d09d['selection'])==null?void 0x0:_0x809fb2[_0x565781(0x43f)])===e[_0x565781(0x17b)][_0x565781(0x443)]&&_0x14d09d['selection'][_0x565781(0x44b)][_0x565781(0x3cc)]>0x0;}function k(_0x34d353){const _0x4e1ae5=_0x5ad6b7;if(_0x34d353)switch(_0x34d353[_0x4e1ae5(0x3b6)]){case 0x4:return ce(_0x34d353),{'type':0x4,..._0x34d353[_0x4e1ae5(0x1df)]===void 0x0?null:{'selection':_0x34d353['selection'][_0x4e1ae5(0x43f)]===e[_0x4e1ae5(0x17b)][_0x4e1ae5(0x2a8)]?{'mode':e['FilterSelectionMode']['All']}:{'mode':_0x34d353['selection'][_0x4e1ae5(0x43f)],'values':_0x34d353['selection'][_0x4e1ae5(0x44b)]['map'](_0xa682e0=>_0xa682e0['type']===e['RecordValueType'][_0x4e1ae5(0x4c5)]?{'type':e[_0x4e1ae5(0x196)][_0x4e1ae5(0x4c5)]}:{..._0xa682e0})}},..._0x34d353[_0x4e1ae5(0x41b)]===void 0x0?null:{'dateRange':{..._0x34d353[_0x4e1ae5(0x41b)]}}};case 0x3:return{..._0x34d353,'list':_0x34d353['list']['concat']()};case 0x1:return(_0x34d353[_0x4e1ae5(0x2c1)]!==void 0x0||x(_0x34d353[_0x4e1ae5(0x24c)]))&&C(_0x34d353),{..._0x34d353,'expected':Array[_0x4e1ae5(0x3d2)](_0x34d353[_0x4e1ae5(0x2ee)])?_0x34d353['expected'][_0x4e1ae5(0x14f)]():_0x34d353[_0x4e1ae5(0x2ee)]};case 0x2:return{..._0x34d353,'expected':Array[_0x4e1ae5(0x3d2)](_0x34d353['expected'])?_0x34d353[_0x4e1ae5(0x2ee)][_0x4e1ae5(0x14f)]():_0x34d353[_0x4e1ae5(0x2ee)]};default:throw TypeError(_0x4e1ae5(0x3ab));}}function A(_0x4711bf){const _0x320d35=_0x5ad6b7;return typeof _0x4711bf==_0x320d35(0x4ba)&&!!_0x4711bf&&!Array['isArray'](_0x4711bf);}let ue=function(_0x4c20ff){const _0x4922f5=_0x5ad6b7;return _0x4c20ff[_0x4c20ff[_0x4922f5(0x3f6)]=0x0]=_0x4922f5(0x3f6),_0x4c20ff[_0x4c20ff[_0x4922f5(0x1dc)]=0x1]=_0x4922f5(0x1dc),_0x4c20ff[_0x4c20ff[_0x4922f5(0x45b)]=0x2]='RemoveField',_0x4c20ff[_0x4c20ff[_0x4922f5(0x3d1)]=0x3]=_0x4922f5(0x3d1),_0x4c20ff[_0x4c20ff[_0x4922f5(0x339)]=0x4]=_0x4922f5(0x339),_0x4c20ff[_0x4c20ff['SetSortInfo']=0x5]=_0x4922f5(0x2e4),_0x4c20ff[_0x4c20ff[_0x4922f5(0x203)]=0x6]=_0x4922f5(0x203),_0x4c20ff[_0x4c20ff['UpdateValuePosition']=0x7]=_0x4922f5(0x28c),_0x4c20ff[_0x4c20ff[_0x4922f5(0x213)]=0x8]=_0x4922f5(0x213),_0x4c20ff[_0x4c20ff[_0x4922f5(0x2f2)]=0x9]=_0x4922f5(0x2f2),_0x4c20ff[_0x4c20ff[_0x4922f5(0x447)]=0xa]=_0x4922f5(0x447),_0x4c20ff[_0x4c20ff[_0x4922f5(0x1c8)]=0xb]=_0x4922f5(0x1c8),_0x4c20ff[_0x4c20ff[_0x4922f5(0x365)]=0xc]=_0x4922f5(0x365),_0x4c20ff[_0x4c20ff[_0x4922f5(0x15b)]=0xd]=_0x4922f5(0x15b),_0x4c20ff[_0x4c20ff[_0x4922f5(0x180)]=0xe]=_0x4922f5(0x180),_0x4c20ff;}({}),de=function(_0x431dbb){const _0xed7c9c=_0x5ad6b7;return _0x431dbb[_0x431dbb[_0xed7c9c(0x342)]=0x2]='blank',_0x431dbb[_0x431dbb[_0xed7c9c(0x34f)]=0x4]=_0xed7c9c(0x34f),_0x431dbb[_0x431dbb[_0xed7c9c(0x1da)]=0x8]=_0xed7c9c(0x1da),_0x431dbb;}({}),fe=function(_0x2f1a6c){const _0x2cfd69=_0x5ad6b7;return _0x2f1a6c[_0x2f1a6c['FilterAll']=0x1]=_0x2cfd69(0x42c),_0x2f1a6c[_0x2f1a6c['FilterPartial']=0x2]=_0x2cfd69(0x289),_0x2f1a6c[_0x2f1a6c['FilterSingle']=0x3]=_0x2cfd69(0x3bc),_0x2f1a6c[_0x2f1a6c['BlankValue']=0x4]=_0x2cfd69(0x28a),_0x2f1a6c[_0x2f1a6c['FilteredSortNone']=0x5]=_0x2cfd69(0x30d),_0x2f1a6c[_0x2f1a6c[_0x2cfd69(0x4cd)]=0x6]=_0x2cfd69(0x4cd),_0x2f1a6c[_0x2f1a6c[_0x2cfd69(0x437)]=0x7]=_0x2cfd69(0x437),_0x2f1a6c[_0x2f1a6c[_0x2cfd69(0x18e)]=0x8]='FilterNoneSortNone',_0x2f1a6c[_0x2f1a6c[_0x2cfd69(0x35d)]=0x9]=_0x2cfd69(0x35d),_0x2f1a6c[_0x2f1a6c['FilterNoneSortDesc']=0xa]='FilterNoneSortDesc',_0x2f1a6c[_0x2f1a6c['Collapse']=0xb]=_0x2cfd69(0x35e),_0x2f1a6c[_0x2f1a6c['Expand']=0xc]='Expand',_0x2f1a6c[_0x2f1a6c['Subtotal']=0xd]=_0x2cfd69(0x23d),_0x2f1a6c[_0x2f1a6c[_0x2cfd69(0x2dd)]=0xe]=_0x2cfd69(0x2dd),_0x2f1a6c[_0x2f1a6c[_0x2cfd69(0x299)]=0xf]=_0x2cfd69(0x299),_0x2f1a6c;}({});function j(_0x233618){'@babel/helpers - typeof';const _0x3698f2=_0x5ad6b7;return j=typeof Symbol==_0x3698f2(0x321)&&typeof Symbol['iterator']=='symbol'?function(_0x274e37){return typeof _0x274e37;}:function(_0x4792ba){const _0x512956=_0x3698f2;return _0x4792ba&&typeof Symbol==_0x512956(0x321)&&_0x4792ba[_0x512956(0x31d)]===Symbol&&_0x4792ba!==Symbol[_0x512956(0x226)]?_0x512956(0x41e):typeof _0x4792ba;},j(_0x233618);}function pe(_0x2446c2,_0x17a8d0){const _0x2280c7=_0x5ad6b7;if(j(_0x2446c2)!='object'||!_0x2446c2)return _0x2446c2;var _0x85f712;if(typeof Symbol<'u'&&(_0x85f712=_0x2446c2[Symbol[_0x2280c7(0x441)]])!==void 0x0){var _0x192a70=_0x85f712['call'](_0x2446c2,_0x17a8d0||_0x2280c7(0x232));if(j(_0x192a70)!='object')return _0x192a70;throw TypeError(_0x2280c7(0x29c));}return(_0x17a8d0===_0x2280c7(0x3c4)?String:Number)(_0x2446c2);}function me(_0x3ea11f){const _0x113587=_0x5ad6b7;var _0x3b52d9=pe(_0x3ea11f,_0x113587(0x3c4));return j(_0x3b52d9)==_0x113587(0x41e)?_0x3b52d9:_0x3b52d9+'';}function M(_0x3a3290,_0x214e65,_0x25cd3e){const _0x17c3bf=_0x5ad6b7;return(_0x214e65=me(_0x214e65))in _0x3a3290?Object[_0x17c3bf(0x18f)](_0x3a3290,_0x214e65,{'value':_0x25cd3e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a3290[_0x214e65]=_0x25cd3e,_0x3a3290;}function he(_0x30f8f0){const _0x5a5106=_0x5ad6b7;return typeof _0x30f8f0==_0x5a5106(0x3f4);}var N=class{constructor(){const _0x3c3baa=_0x5ad6b7;M(this,_0x3c3baa(0x371),0x0),M(this,_0x3c3baa(0x22c),0x0),M(this,_0x3c3baa(0x354),0x0),M(this,'_product',0x1),M(this,_0x3c3baa(0x2fc),0x1/0x0),M(this,_0x3c3baa(0x479),-0x1/0x0),M(this,_0x3c3baa(0x2fe),0x0);}[_0x5ad6b7(0x422)](){const _0x169e85=_0x5ad6b7;return{'sum':this[_0x169e85(0x371)],'count':this[_0x169e85(0x22c)],'countN':this[_0x169e85(0x354)],'product':this[_0x169e85(0x158)],'min':this['_min'],'max':this[_0x169e85(0x479)],'squareSum':this['_squareSum']};}[_0x5ad6b7(0x3ee)](){const _0x239d4f=_0x5ad6b7;this[_0x239d4f(0x371)]=0x0,this[_0x239d4f(0x22c)]=0x0,this[_0x239d4f(0x354)]=0x0,this[_0x239d4f(0x158)]=0x1,this['_min']=0x1/0x0,this[_0x239d4f(0x479)]=-0x1/0x0,this['_squareSum']=0x0;}[_0x5ad6b7(0x2d7)](_0x97fbe7){const _0x5dc25f=_0x5ad6b7;_0x97fbe7!=null&&(this['_count']+=0x1,he(_0x97fbe7)&&(this[_0x5dc25f(0x371)]+=_0x97fbe7,this['_countN']+=0x1,this[_0x5dc25f(0x158)]*=_0x97fbe7,this['_min']=Math['min'](this[_0x5dc25f(0x2fc)],_0x97fbe7),this[_0x5dc25f(0x479)]=Math[_0x5dc25f(0x278)](this[_0x5dc25f(0x479)],_0x97fbe7),this[_0x5dc25f(0x2fe)]+=_0x97fbe7*_0x97fbe7));}['unionTuples'](_0xd7eeb3){const _0x14dd36=_0x5ad6b7;for(let _0x5a58cb of _0xd7eeb3)this['_sum']+=_0x5a58cb[_0x14dd36(0x371)],this[_0x14dd36(0x22c)]+=_0x5a58cb['_count'],this['_countN']+=_0x5a58cb[_0x14dd36(0x354)],this[_0x14dd36(0x158)]*=_0x5a58cb['_product'],this[_0x14dd36(0x2fc)]=Math[_0x14dd36(0x3ef)](this[_0x14dd36(0x2fc)],_0x5a58cb[_0x14dd36(0x2fc)]),this[_0x14dd36(0x479)]=Math[_0x14dd36(0x278)](this[_0x14dd36(0x479)],_0x5a58cb[_0x14dd36(0x479)]),this[_0x14dd36(0x2fe)]+=_0x5a58cb[_0x14dd36(0x2fe)];}['unionTupleInfo'](_0x1a7b35){const _0x4d5793=_0x5ad6b7;this['_sum']+=_0x1a7b35[_0x4d5793(0x2f3)],this[_0x4d5793(0x22c)]+=_0x1a7b35[_0x4d5793(0x1d9)],this[_0x4d5793(0x354)]+=_0x1a7b35[_0x4d5793(0x3a9)],this[_0x4d5793(0x158)]*=_0x1a7b35[_0x4d5793(0x31f)],this[_0x4d5793(0x2fc)]=Math[_0x4d5793(0x3ef)](this['_min'],_0x1a7b35['min']),this[_0x4d5793(0x479)]=Math['max'](this[_0x4d5793(0x479)],_0x1a7b35[_0x4d5793(0x278)]),this[_0x4d5793(0x2fe)]+=_0x1a7b35[_0x4d5793(0x159)];}['getSubtotal'](_0x2c28c5){const _0x8998e4=_0x5ad6b7;switch(_0x2c28c5){case 0x9:return this[_0x8998e4(0x371)];case 0x2:return this[_0x8998e4(0x22c)];case 0x3:return this[_0x8998e4(0x354)];case 0x6:return Number[_0x8998e4(0x2bc)](this[_0x8998e4(0x158)])?this[_0x8998e4(0x158)]:{'errorType':0x2};case 0x5:return this['_countN']>0x0?this['_min']:0x0;case 0x4:return this[_0x8998e4(0x354)]>0x0?this['_max']:0x0;case 0x1:return this[_0x8998e4(0x354)]>0x0?this[_0x8998e4(0x371)]/this[_0x8998e4(0x354)]:{'errorType':0x1};case 0x7:return this[_0x8998e4(0x354)]>0x1?Math[_0x8998e4(0x446)](Math[_0x8998e4(0x278)](0x0,(this['_countN']*this['_squareSum']-this[_0x8998e4(0x371)]*this[_0x8998e4(0x371)])/(this[_0x8998e4(0x354)]*(this[_0x8998e4(0x354)]-0x1)))):{'errorType':0x1};case 0x8:return this[_0x8998e4(0x354)]>0x0?Math[_0x8998e4(0x446)](Math[_0x8998e4(0x278)](0x0,(this[_0x8998e4(0x354)]*this[_0x8998e4(0x2fe)]-this[_0x8998e4(0x371)]*this[_0x8998e4(0x371)])/(this[_0x8998e4(0x354)]*this[_0x8998e4(0x354)]))):{'errorType':0x1};case 0xa:return this[_0x8998e4(0x354)]>0x1?Math[_0x8998e4(0x278)](0x0,(this[_0x8998e4(0x354)]*this['_squareSum']-this[_0x8998e4(0x371)]*this[_0x8998e4(0x371)])/(this[_0x8998e4(0x354)]*(this[_0x8998e4(0x354)]-0x1))):{'errorType':0x1};case 0xb:return this['_countN']>0x0?Math['max'](0x0,(this[_0x8998e4(0x354)]*this[_0x8998e4(0x2fe)]-this['_sum']*this[_0x8998e4(0x371)])/(this[_0x8998e4(0x354)]*this[_0x8998e4(0x354)])):{'errorType':0x1};}}};function ge(_0x5d9eae){const _0x5d7fe8=_0x5ad6b7;return(_0x5d9eae==null?void 0x0:_0x5d9eae[_0x5d7fe8(0x2ed)])??'legacy';}function P(_0x2b87f2){return _0x2b87f2==null||_0x2b87f2==='';}function F(_0x595727){return _0x595727===0x2||_0x595727===0x1||_0x595727===0x4||_0x595727===0x5;}function I(_0x49fe48){return _0x49fe48===0x2||_0x49fe48===0x1;}function _e(_0x4911d7,_0x557d44){const _0x297fa6=_0x5ad6b7;let _0xb9c687='';switch(_0x557d44){case 0x1:_0xb9c687='Average\x20of\x20'+_0x4911d7;break;case 0x2:_0xb9c687='Count\x20of\x20'+_0x4911d7;break;case 0x3:_0xb9c687=_0x297fa6(0x1a4)+_0x4911d7;break;case 0x4:_0xb9c687='Max\x20of\x20'+_0x4911d7;break;case 0x5:_0xb9c687=_0x297fa6(0x383)+_0x4911d7;break;case 0x6:_0xb9c687=_0x297fa6(0x4cc)+_0x4911d7;break;case 0x7:_0xb9c687='Standard\x20Deviation\x20of\x20'+_0x4911d7;break;case 0x8:_0xb9c687=_0x297fa6(0x496)+_0x4911d7;break;case 0x9:_0xb9c687=_0x297fa6(0x155)+_0x4911d7;break;case 0xa:_0xb9c687='Variance\x20of\x20'+_0x4911d7;break;case 0xb:_0xb9c687=_0x297fa6(0x238)+_0x4911d7;break;default:_0xb9c687=_0x4911d7;}return _0xb9c687;}function ve(_0x46e6b6,_0x4b3810,_0x511097){const _0x2d951b=_0x5ad6b7;let _0x2892ef=Object[_0x2d951b(0x226)]['hasOwnProperty'][_0x2d951b(0x317)](_0x46e6b6,_0x4b3810)?_0x46e6b6[_0x4b3810]:void 0x0,_0x43b35d=typeof _0x2892ef=='boolean';return _0x511097===void 0x0?_0x43b35d?_0x2892ef:!0x1:_0x43b35d?_0x2892ef:_0x2892ef!=null&&Object['prototype'][_0x2d951b(0x16b)]['call'](_0x2892ef,_0x511097)?_0x2892ef[_0x511097]:!0x1;}function L(_0x50f1ec){const _0x5b22cb=_0x5ad6b7;return _0x50f1ec[_0x5b22cb(0x3b6)]===0x3;}function ye(_0x104775){const _0x43055c=_0x5ad6b7;return _0x104775[_0x43055c(0x3b6)]===0x1;}function R(_0x41c214){const _0x300fe5=_0x5ad6b7;let _0x308d7f='';for(let _0x4ddc8f=0x0;_0x4ddc8f<_0x41c214;_0x4ddc8f++){let _0x418f81=Math[_0x300fe5(0x409)](Math['random']()*0x10);_0x308d7f+=_0x418f81[_0x300fe5(0x249)](0x10);}return _0x308d7f['toUpperCase']();}function be(_0x244129,_0x26fe12){const _0x3c2f6d=_0x5ad6b7;let _0x24ab71=0x0,_0x70fb60=0x0,_0x517849=[];for(;_0x24ab71<_0x244129[_0x3c2f6d(0x3cc)]&&_0x70fb60<_0x26fe12[_0x3c2f6d(0x3cc)];)_0x244129[_0x24ab71]===_0x26fe12[_0x70fb60]?(_0x517849[_0x3c2f6d(0x3ed)](_0x244129[_0x24ab71]),_0x24ab71++,_0x70fb60++):_0x244129[_0x24ab71]<_0x26fe12[_0x70fb60]?_0x24ab71++:_0x70fb60++;return _0x517849;}function xe(_0x26efbe){const _0x50d3e2=_0x5ad6b7;if(_0x26efbe['length']===0x0)return[];if(_0x26efbe[_0x50d3e2(0x3cc)]===0x1)return _0x26efbe[0x0];let _0x3981d4=_0x26efbe[0x0];for(let _0x1c760b=0x1;_0x1c760b<_0x26efbe[_0x50d3e2(0x3cc)];_0x1c760b++)_0x3981d4=be(_0x3981d4,_0x26efbe[_0x1c760b]);return _0x3981d4;}function z(_0x1acf77,_0x24b0c9,_0x2e8f0c){const _0x351c6e=_0x5ad6b7;_0x1acf77['summary']||={},_0x24b0c9&&!_0x24b0c9[_0x351c6e(0x222)]&&(_0x24b0c9[_0x351c6e(0x222)]={});for(let _0x531272 in _0x2e8f0c){let _0x5ed110=_0x2e8f0c[_0x531272][_0x351c6e(0x396)],_0x2727a0=_0x1acf77[_0x351c6e(0x39e)][_0x531272],_0x325345=_0x2727a0[_0x351c6e(0x422)](),{sum:_0x563ae5,count:_0x1528f9,countN:_0x5f507b,product:_0x477de3,min:_0x1602c2,max:_0x47fd9c,squareSum:_0x7727fd}=_0x325345;for(let _0x33a49e of _0x5ed110)_0x325345[_0x33a49e]=_0x2727a0[_0x351c6e(0x1db)](_0x33a49e);_0x1acf77[_0x351c6e(0x222)][_0x531272]=_0x325345,_0x24b0c9&&(_0x24b0c9[_0x351c6e(0x39e)][_0x531272]||(_0x24b0c9[_0x351c6e(0x39e)][_0x531272]=new N()),_0x24b0c9['tuple'][_0x531272][_0x351c6e(0x44d)]({'sum':_0x563ae5,'count':_0x1528f9,'countN':_0x5f507b,'product':_0x477de3,'min':_0x1602c2,'max':_0x47fd9c,'squareSum':_0x7727fd}));}}function Se(_0x3c856d){const _0x484c23=_0x5ad6b7;let _0x411dd2=0x1,_0x423d3d;return _0x3c856d?(L(_0x3c856d)?(_0x3c856d['list'][_0x484c23(0x3cc)]===0x1&&(_0x411dd2=0x3,_0x423d3d=_0x3c856d[_0x484c23(0x39b)][0x0]),_0x411dd2=_0x3c856d['isAll']===!0x0?0x1:0x2):D(_0x3c856d)&&(_0x411dd2=O(_0x3c856d)?0x2:0x1),{'value':_0x423d3d,'status':_0x411dd2}):{'status':_0x411dd2,'value':_0x423d3d};}function Ce(_0xaf542c,_0x4fb110,_0x250357){const _0x39e27a=_0x5ad6b7;let _0x13135e=!0x1;if(_0xaf542c&&(L(_0xaf542c)?_0x13135e=_0xaf542c[_0x39e27a(0x39b)]['length']>0x0&&_0xaf542c[_0x39e27a(0x1d4)]!==!0x0:ye(_0xaf542c)?_0x13135e=!0x0:D(_0xaf542c)&&(_0x13135e=O(_0xaf542c)),_0x250357&&(_0x13135e=!0x0)),_0x13135e)switch(_0x4fb110==null?void 0x0:_0x4fb110[_0x39e27a(0x3b6)]){case 0x1:return 0x6;case 0x2:return 0x7;default:return 0x5;}else switch(_0x4fb110==null?void 0x0:_0x4fb110[_0x39e27a(0x3b6)]){case 0x1:return 0x9;case 0x2:return 0xa;default:return 0x8;}}function we(_0x447491,_0x3762b4,_0xd35437){const _0x20f45f=_0x5ad6b7;let _0x1d460e=_0x3762b4||0x0,_0x352f6e=_0x447491[_0x20f45f(0x1b0)](',');return _0xd35437?_0x352f6e+'-'+String(_0x1d460e):_0x352f6e;}var Te=class{constructor(){const _0x2dde87=_0x5ad6b7;M(this,'_heap',void 0x0),this[_0x2dde87(0x48e)]=[];}[_0x5ad6b7(0x3ed)](_0x3d2d8f){const _0x38ca8e=_0x5ad6b7;this[_0x38ca8e(0x48e)]['push'](_0x3d2d8f),this['_bubbleUp']();}[_0x5ad6b7(0x1b7)](){const _0x4a4344=_0x5ad6b7;if(this[_0x4a4344(0x4a5)]()===0x0)return;let _0x1bdb46=this[_0x4a4344(0x48e)][0x0],_0x44bffc=this[_0x4a4344(0x48e)][_0x4a4344(0x1b7)]();return this['size']()>0x0&&_0x44bffc&&(this[_0x4a4344(0x48e)][0x0]=_0x44bffc,this[_0x4a4344(0x219)]()),_0x1bdb46;}[_0x5ad6b7(0x4a5)](){const _0x512dc3=_0x5ad6b7;return this[_0x512dc3(0x48e)][_0x512dc3(0x3cc)];}[_0x5ad6b7(0x250)](){const _0x47825d=_0x5ad6b7;let _0x371023=this[_0x47825d(0x4a5)]()-0x1;for(;_0x371023>0x0;){let _0x3cccc9=Math[_0x47825d(0x409)]((_0x371023-0x1)/0x2);if(this['_heap'][_0x3cccc9][0x0]<=this[_0x47825d(0x48e)][_0x371023][0x0])break;[this['_heap'][_0x3cccc9],this['_heap'][_0x371023]]=[this[_0x47825d(0x48e)][_0x371023],this['_heap'][_0x3cccc9]],_0x371023=_0x3cccc9;}}[_0x5ad6b7(0x219)](){const _0x3b51b3=_0x5ad6b7;let _0x2f97df=0x0,_0x31e549=this[_0x3b51b3(0x4a5)](),_0x27ce4f=this[_0x3b51b3(0x48e)][0x0];for(;;){let _0x187105=0x2*_0x2f97df+0x1,_0x4ecc86=0x2*_0x2f97df+0x2,_0x5efc75,_0x2f0218,_0xb98620=null;if(_0x187105<_0x31e549&&(_0x5efc75=this[_0x3b51b3(0x48e)][_0x187105],_0x5efc75[0x0]<_0x27ce4f[0x0]&&(_0xb98620=_0x187105)),_0x4ecc86<_0x31e549&&(_0x2f0218=this['_heap'][_0x4ecc86],(_0xb98620===null&&_0x2f0218[0x0]<_0x27ce4f[0x0]||_0xb98620!==null&&_0x2f0218[0x0]<_0x5efc75[0x0])&&(_0xb98620=_0x4ecc86)),_0xb98620===null)break;[this['_heap'][_0x2f97df],this[_0x3b51b3(0x48e)][_0xb98620]]=[this[_0x3b51b3(0x48e)][_0xb98620],this[_0x3b51b3(0x48e)][_0x2f97df]],_0x2f97df=_0xb98620;}}};function Ee(_0x1bc481){const _0x356854=_0x5ad6b7;let _0x4f36ab=new Te(),_0x41a058=[];for(let _0x1e5401=0x0;_0x1e5401<_0x1bc481[_0x356854(0x3cc)];_0x1e5401++)_0x1bc481[_0x1e5401][_0x356854(0x3cc)]>0x0&&_0x4f36ab[_0x356854(0x3ed)]([_0x1bc481[_0x1e5401][0x0],_0x1e5401,0x0]);for(;_0x4f36ab[_0x356854(0x4a5)]()>0x0;){let [_0xdd03bc,_0x67980a,_0x22fc98]=_0x4f36ab['pop']();if(_0x41a058[_0x356854(0x3ed)](_0xdd03bc),_0x22fc98+0x1<_0x1bc481[_0x67980a][_0x356854(0x3cc)]){let _0x10fa1d=_0x1bc481[_0x67980a][_0x22fc98+0x1];_0x4f36ab[_0x356854(0x3ed)]([_0x10fa1d,_0x67980a,_0x22fc98+0x1]);}}return _0x41a058;}function De(_0x3d75d9,_0x10122e){const _0x766003=_0x5ad6b7;if(typeof Intl<'u'&&Intl[_0x766003(0x4c1)]){let _0x4f4546=_0x3d75d9&&_0x3d75d9!==_0x10122e?[_0x3d75d9,_0x10122e]:[_0x3d75d9??_0x10122e];for(let _0x28432f of _0x4f4546)try{return new Intl['Collator'](_0x28432f,{'usage':_0x766003(0x3dc),'numeric':!0x1,'sensitivity':_0x766003(0x4b1),'ignorePunctuation':!0x1})[_0x766003(0x46e)];}catch{}return new Intl['Collator'](void 0x0,{'usage':_0x766003(0x3dc),'numeric':!0x1,'sensitivity':_0x766003(0x4b1),'ignorePunctuation':!0x1})[_0x766003(0x46e)];}return(_0x103a6b,_0x38c9fe)=>_0x103a6b[_0x766003(0x23e)](_0x38c9fe);}function Oe(_0x4b760e,_0xe3feec,_0x554477,_0x4077ce=De()){const _0x29ff86=_0x5ad6b7;let _0x3c8e5f=[],_0x43c62f=[],_0x2fb050=[],_0x6f691d=[];for(let _0x326aea=0x0;_0x326aea<_0x4b760e['length'];_0x326aea++){let _0x116507=_0x4b760e[_0x326aea],_0x205b70=_0xe3feec[_0x326aea];_0x205b70===0x2?_0x3c8e5f[_0x29ff86(0x3ed)](_0x116507):_0x205b70===0x1?_0x43c62f['push'](_0x116507):_0x205b70===0x4?_0x2fb050[_0x29ff86(0x3ed)](_0x116507):_0x6f691d[_0x29ff86(0x3ed)](_0x116507);}let _0x139854=(_0x460af9,_0x5181a8)=>_0x4077ce(_0x460af9,_0x5181a8)||_0x554477[_0x460af9]-_0x554477[_0x5181a8];_0x3c8e5f[_0x29ff86(0x3dc)]((_0xce7960,_0x5c6f1f)=>Number(_0xce7960)-Number(_0x5c6f1f)),_0x43c62f[_0x29ff86(0x3dc)](_0x139854),_0x2fb050[_0x29ff86(0x3dc)]((_0x5a0949,_0x317a1)=>Number(_0x5a0949)-Number(_0x317a1)),_0x6f691d[_0x29ff86(0x3dc)](_0x139854);let _0x5707c0=[..._0x3c8e5f,..._0x43c62f,..._0x2fb050,..._0x6f691d],_0x3b468d={},_0x27b98f=0x0;for(let _0x3e9a4a of _0x5707c0)_0x3b468d[_0x3e9a4a]=_0x27b98f,_0x27b98f++;return _0x3b468d;}function ke(_0x1dccb1,_0x291337,_0x3f5692){const _0x28773a=_0x5ad6b7;let _0x552889=ae({'type':0x1,'operator':_0x291337,'expected':_0x3f5692}),_0x57bcc8=[];for(let [_0x5e88f8,_0x32bb1e]of Object['entries'](_0x1dccb1))_0x552889(Number(_0x5e88f8))&&_0x57bcc8[_0x28773a(0x3ed)](_0x32bb1e);return _0x57bcc8;}function Ae(_0x1c4c0c,_0x2f8d41,_0xc27de5,_0x4530d0,_0x3618c3,_0x1b3760){const _0x552927=_0x5ad6b7;let _0x4accbf=(_0x2f8d41==null?void 0x0:_0x2f8d41[_0x552927(0x39e)][_0xc27de5])||_0x1c4c0c[_0x3618c3]['tuple'],_0x3d64b5=_0x4accbf[_0x552927(0x422)]();_0x1c4c0c[_0x3618c3]={'tuple':_0x4accbf},_0x1c4c0c[_0x1b3760]===void 0x0&&(_0x1c4c0c[_0x1b3760]={'tuple':new N()}),_0x1c4c0c[_0x1b3760][_0x552927(0x39e)][_0x552927(0x44d)](_0x3d64b5);}function je(_0x4e4d0f){const _0x26dbd8=_0x5ad6b7;return typeof _0x4e4d0f!=_0x26dbd8(0x3f4);}function Me(_0x4cd19f){const _0x12abd2=_0x5ad6b7;return!(_0x12abd2(0x4a8)in _0x4cd19f)&&!('sortItems'in _0x4cd19f)&&'customOrder'in _0x4cd19f&&_0x4cd19f['type']===0x3;}function Ne(_0x3f917e,_0x593c8b=!0x0){const _0x14c263=_0x5ad6b7;return(_0x593c8b?new Date(Date[_0x14c263(0x1ac)](0x76b,0xb,0x1e)):new Date(Date[_0x14c263(0x1ac)](0x770,0x0,0x1)))[_0x14c263(0x2e5)]()+_0x3f917e*0x5265c00;}function Pe(_0x5203c2){const _0x8a537c=_0x5ad6b7;return _0x5203c2[_0x8a537c(0x1d1)]()===0x3;}function B(_0x2aaaae){const _0x205508=_0x5ad6b7;return _0x2aaaae[_0x205508(0x1d1)]()!==0x1;}function Fe(_0x1486b5){const _0x1f94d2=_0x5ad6b7;return _0x1486b5[_0x1f94d2(0x38a)]===0x3;}function Ie(_0x45d321,_0xb6550,_0x30311a=!0x0){const _0x42bc04=_0x5ad6b7;let _0x3f2a2b=Ne(_0x45d321,_0x30311a),_0x49edb5=new Date(_0x3f2a2b);switch(_0xb6550){case _0x42bc04(0x2c5):return''+_0x49edb5[_0x42bc04(0x259)]();case'month':return''+(_0x49edb5[_0x42bc04(0x1a7)]()+0x1);case _0x42bc04(0x34f):return''+_0x49edb5[_0x42bc04(0x457)]();case _0x42bc04(0x435):return _0x49edb5[_0x42bc04(0x1a7)]()+0x1+'_'+_0x49edb5[_0x42bc04(0x457)]();case _0x42bc04(0x174):return''+_0x49edb5[_0x42bc04(0x33d)]();case _0x42bc04(0x236):return''+_0x49edb5['getMinutes']();case _0x42bc04(0x2c9):return''+(Math[_0x42bc04(0x409)](_0x49edb5[_0x42bc04(0x1a7)]()/0x3)+0x1);case _0x42bc04(0x480):return _0x49edb5[_0x42bc04(0x33d)]()+'_'+_0x49edb5[_0x42bc04(0x2ae)]();case'year-month':return _0x49edb5['getFullYear']()+'_'+(_0x49edb5['getMonth']()+0x1);case _0x42bc04(0x302):return _0x49edb5['getFullYear']()+'_'+(Math['floor'](_0x49edb5[_0x42bc04(0x1a7)]()/0x3)+0x1);case _0x42bc04(0x427):return _0x49edb5[_0x42bc04(0x259)]()+'_'+(_0x49edb5['getMonth']()+0x1)+'_'+_0x49edb5[_0x42bc04(0x457)]();}return'';}var V=class{[_0x5ad6b7(0x3be)](_0x300534){return this['_recordTupleKeys'][_0x300534];}[_0x5ad6b7(0x4de)](){const _0x59f7a8=_0x5ad6b7;return this[_0x59f7a8(0x331)];}[_0x5ad6b7(0x34b)](_0x42ce98){return this['_tupleIndexMap'][_0x42ce98]||[];}[_0x5ad6b7(0x3a6)](_0x2e0c9b){return this['_tupleLabels'][_0x2e0c9b];}[_0x5ad6b7(0x4d0)](_0x1dd02f){return this['_tupleTypes'][_0x1dd02f];}['getTupleKeysByLabel'](_0x7abda6){const _0x523fb4=_0x5ad6b7;var _0x3e63eb;return((_0x3e63eb=this[_0x523fb4(0x2ac)][_0x7abda6])==null?void 0x0:_0x3e63eb[_0x523fb4(0x14f)]())||[];}constructor(_0x4be263,_0x2586f7,_0x50cd0b){const _0x3d88f3=_0x5ad6b7;M(this,'id',void 0x0),M(this,_0x3d88f3(0x43b),void 0x0),M(this,'hexCode',void 0x0),M(this,_0x3d88f3(0x26c),void 0x0),M(this,_0x3d88f3(0x2bd),[]),M(this,'items',[]),M(this,_0x3d88f3(0x36f),[]),M(this,_0x3d88f3(0x2bb),0x1),M(this,_0x3d88f3(0x1e2),!0x1),M(this,_0x3d88f3(0x316),!0x1),M(this,_0x3d88f3(0x476),!0x1),M(this,_0x3d88f3(0x2ce),!0x1),M(this,'hasText',!0x1),M(this,_0x3d88f3(0x3b3),!0x1),M(this,_0x3d88f3(0x3ad),!0x1),M(this,_0x3d88f3(0x2aa),''),M(this,_0x3d88f3(0x1b6),NaN),M(this,'minNumber',NaN),M(this,'maxDate',-0x1/0x0),M(this,_0x3d88f3(0x189),0x1/0x0),M(this,'_itemIndexMap',void 0x0),M(this,'_itemsMap',{}),M(this,_0x3d88f3(0x17d),0x0),M(this,'_tupleItemsMap',Object[_0x3d88f3(0x3a2)](null)),M(this,'_tupleIndexMap',Object['create'](null)),M(this,_0x3d88f3(0x4cb),Object[_0x3d88f3(0x3a2)](null)),M(this,'_tupleTypes',Object['create'](null)),M(this,_0x3d88f3(0x164),[]),M(this,_0x3d88f3(0x2ac),Object[_0x3d88f3(0x3a2)](null)),M(this,_0x3d88f3(0x18d),new Set()),M(this,_0x3d88f3(0x473),0x0),M(this,_0x3d88f3(0x280),0x0),this['id']=_0x4be263,this[_0x3d88f3(0x43b)]=_0x2586f7,this[_0x3d88f3(0x271)]=_0x50cd0b,this[_0x3d88f3(0x1d6)]={};}[_0x5ad6b7(0x3cf)](){return this['rangeKey'];}[_0x5ad6b7(0x46d)](){const _0x38d2e8=_0x5ad6b7;return this[_0x38d2e8(0x2aa)];}[_0x5ad6b7(0x205)](_0x2d3b3f){const _0x4f7947=_0x5ad6b7;this[_0x4f7947(0x26c)]=_0x2d3b3f;}[_0x5ad6b7(0x431)](){return this['id'];}[_0x5ad6b7(0x24a)](){return this['name'];}[_0x5ad6b7(0x445)](_0x43dee9){const _0x998203=_0x5ad6b7;this[_0x998203(0x43b)]=_0x43dee9;}['getFieldDataType'](){const _0x3da115=_0x5ad6b7;return this[_0x3da115(0x476)]&&!this[_0x3da115(0x2de)]&&!this[_0x3da115(0x316)]&&!this[_0x3da115(0x1e2)]&&!this[_0x3da115(0x3b3)]&&!this[_0x3da115(0x3ad)]?0x4:(this[_0x3da115(0x316)]||this[_0x3da115(0x1e2)])&&!this['hasText']&&!this['hasDate']&&!this['hasBoolean']&&!this[_0x3da115(0x3ad)]?0x2:this[_0x3da115(0x2bb)];}[_0x5ad6b7(0x1d1)](){return 0x1;}[_0x5ad6b7(0x42d)](_0x56685c){const _0x10aac7=_0x5ad6b7;return this['hexCode']+t[_0x10aac7(0x390)]+this[_0x10aac7(0x1ff)][_0x56685c];}['getItemKey'](_0x3fd0e0){const _0x59617a=_0x5ad6b7;let _0x43e89e=this[_0x59617a(0x2bd)][_0x3fd0e0];if(w(_0x43e89e))return String(_0x43e89e['v']);if(P(_0x43e89e))return t[_0x59617a(0x301)];let _0x246bdc=T(_0x43e89e)?_0x43e89e[_0x59617a(0x442)]:String(_0x43e89e);return this[_0x59617a(0x1ff)][_0x246bdc]===void 0x0?t[_0x59617a(0x2f4)]:_0x246bdc;}[_0x5ad6b7(0x178)](_0x58c5e2){const _0x511126=_0x5ad6b7;return this[_0x511126(0x36f)][this[_0x511126(0x1ff)][_0x58c5e2]];}['getValue'](_0x2ff4d0){const _0x30dde5=_0x5ad6b7;return this[_0x30dde5(0x2bd)][_0x2ff4d0];}[_0x5ad6b7(0x2e2)](_0x59ac67,_0x3c6635){const _0x452101=_0x5ad6b7;w(_0x59ac67)&&(this[_0x452101(0x2aa)]=_0x59ac67['f'],this['_updateDateItemKey'](_0x59ac67,_0x3c6635));let _0x327d0a=P(_0x59ac67);_0x327d0a&&this['_updateBlankItemKey'](_0x3c6635),typeof _0x59ac67=='number'&&this[_0x452101(0x38b)](_0x59ac67,_0x3c6635),!_0x327d0a&&typeof _0x59ac67==_0x452101(0x3c4)&&this[_0x452101(0x2f6)](_0x59ac67,_0x3c6635),typeof _0x59ac67==_0x452101(0x228)&&this['_updateBooleanItemKey'](_0x59ac67,_0x3c6635),T(_0x59ac67)&&this[_0x452101(0x3ae)](_0x59ac67[_0x452101(0x442)],_0x3c6635),this[_0x452101(0x2bd)][_0x452101(0x3ed)](_0x59ac67),this[_0x452101(0x1d1)]()===0x1&&this[_0x452101(0x1a1)](_0x59ac67,_0x3c6635);}[_0x5ad6b7(0x1a1)](_0x132283,_0x575ed3){const _0x14c2ef=_0x5ad6b7;let _0x311d3a=this[_0x14c2ef(0x42a)](this['records'][_0x14c2ef(0x3cc)]-0x1),_0x190148=0x1;w(_0x132283)?_0x190148=0x4:P(_0x132283)?_0x190148=0x5:typeof _0x132283==_0x14c2ef(0x3f4)?_0x190148=0x2:typeof _0x132283==_0x14c2ef(0x228)?_0x190148=0x3:T(_0x132283)&&(_0x190148=0x6);let _0x132f92=_0x190148===0x1&&!_0x311d3a[_0x14c2ef(0x20b)]('[')&&_0x311d3a!==t[_0x14c2ef(0x2f4)]?_0x311d3a:JSON['stringify']([_0x190148,_0x311d3a]);(this[_0x14c2ef(0x18d)]['has'](_0x575ed3)||this[_0x14c2ef(0x331)][_0x132f92]===void 0x0&&_0x190148!==0x5&&this[_0x14c2ef(0x473)]>=t[_0x14c2ef(0x423)])&&(_0x311d3a=t[_0x14c2ef(0x2f4)],_0x190148=0x6,_0x132f92=t['otherDataKey']),this[_0x14c2ef(0x331)][_0x132f92]===void 0x0&&(this[_0x14c2ef(0x331)][_0x132f92]=this['_tupleItemCounter']++,_0x190148!==0x5&&this[_0x14c2ef(0x473)]++,this[_0x14c2ef(0x326)][_0x132f92]=[],this[_0x14c2ef(0x4cb)][_0x132f92]=_0x311d3a,this['_tupleTypes'][_0x132f92]=_0x190148,(this[_0x14c2ef(0x2ac)][_0x311d3a]||=[])[_0x14c2ef(0x3ed)](_0x132f92)),this[_0x14c2ef(0x326)][_0x132f92]['push'](_0x575ed3),this[_0x14c2ef(0x164)]['push'](_0x132f92);}[_0x5ad6b7(0x1ba)](_0x4d2868){return this['_itemIndexMap'][_0x4d2868]||[];}['getAllIndexMap'](){return this['_itemIndexMap'];}[_0x5ad6b7(0x2d8)](_0x2207ae,_0x802db9){const _0x5ee3aa=_0x5ad6b7;this[_0x5ee3aa(0x476)]||=!0x0,this['maxDate']=Math[_0x5ee3aa(0x278)](this[_0x5ee3aa(0x3aa)],_0x2207ae['v']),this[_0x5ee3aa(0x189)]=Math[_0x5ee3aa(0x3ef)](this[_0x5ee3aa(0x189)],_0x2207ae['v']);let _0x21a8c4=String(_0x2207ae['v']);this['_updateItemKey'](_0x21a8c4,_0x802db9,0x4);}[_0x5ad6b7(0x4c6)](_0x4a7c97){const _0x599535=_0x5ad6b7;this[_0x599535(0x2ce)]||=!0x0;let _0x11a261=t[_0x599535(0x301)];this['_itemIndexMap'][_0x11a261]===void 0x0?(this[_0x599535(0x1d6)][_0x11a261]=[_0x4a7c97],this[_0x599535(0x2e3)][_0x599535(0x3ed)](_0x11a261),this[_0x599535(0x36f)][_0x599535(0x3ed)](0x5),this[_0x599535(0x1ff)][_0x11a261]=this[_0x599535(0x2e3)][_0x599535(0x3cc)]-0x1):this[_0x599535(0x1d6)][_0x11a261]['push'](_0x4a7c97);}['_updateStringItemKey'](_0x177b3c,_0x308336){const _0x27ab3d=_0x5ad6b7;this[_0x27ab3d(0x2de)]||=!0x0,this[_0x27ab3d(0x3e1)](_0x177b3c,_0x308336,0x1);}['_updateNumberItemKey'](_0x47ad9d,_0x44fc3c){const _0x547349=_0x5ad6b7;this[_0x547349(0x316)]||=_0x47ad9d%0x1!=0x0,this[_0x547349(0x1e2)]||=_0x47ad9d%0x1==0x0,this['maxNumber']=Math[_0x547349(0x278)](this[_0x547349(0x1b6)],_0x47ad9d),this['minNumber']=Math[_0x547349(0x3ef)](this['minNumber'],_0x47ad9d);let _0x1536f3=String(_0x47ad9d);this[_0x547349(0x3e1)](_0x1536f3,_0x44fc3c,0x2);}[_0x5ad6b7(0x176)](_0x5c3ea0,_0x3d4621){const _0x5784da=_0x5ad6b7;this[_0x5784da(0x3b3)]=!0x0,this[_0x5784da(0x3e1)](String(_0x5c3ea0),_0x3d4621,0x3);}[_0x5ad6b7(0x3ae)](_0x46876e,_0x36d8e0){const _0x4fc50d=_0x5ad6b7;this[_0x4fc50d(0x3ad)]=!0x0,this[_0x4fc50d(0x3e1)](_0x46876e,_0x36d8e0,0x6);}[_0x5ad6b7(0x32a)](_0x2c281c){const _0x550809=_0x5ad6b7;if(this[_0x550809(0x18d)][_0x550809(0x39f)](_0x2c281c),this[_0x550809(0x1d6)][t['otherDataKey']]===void 0x0){this[_0x550809(0x1d6)][t[_0x550809(0x2f4)]]=[_0x2c281c];let _0x1de74c=this['items'][_0x550809(0x3ed)](t[_0x550809(0x2f4)]);this[_0x550809(0x1ff)][t[_0x550809(0x2f4)]]=_0x1de74c-0x1,this[_0x550809(0x36f)]['push'](0x6),this[_0x550809(0x17d)]++;}else this['_itemIndexMap'][t['otherDataKey']][_0x550809(0x3ed)](_0x2c281c);}['_updateItemKey'](_0x23fc4c,_0x406ea1,_0x33987f){const _0x16e636=_0x5ad6b7;if(this[_0x16e636(0x1d6)][_0x23fc4c]===void 0x0){if(this[_0x16e636(0x17d)]>=t[_0x16e636(0x423)])return this['_updateOtherItemKey'](_0x406ea1);this[_0x16e636(0x1d6)][_0x23fc4c]=[_0x406ea1];let _0x116e81=this['items'][_0x16e636(0x3ed)](_0x23fc4c);this[_0x16e636(0x1ff)][_0x23fc4c]=_0x116e81-0x1,this['itemTypes'][_0x16e636(0x3ed)](_0x33987f),this[_0x16e636(0x17d)]++;}else this[_0x16e636(0x1d6)][_0x23fc4c]['push'](_0x406ea1);}['getItemsMap'](){const _0x454f95=_0x5ad6b7;return this[_0x454f95(0x1ff)];}['getFieldInfo'](){const _0x4790f1=_0x5ad6b7;return{'id':this['id'],'name':this['name'],'records':this['records'],'fieldDataType':this[_0x4790f1(0x282)](),'maxNumber':this[_0x4790f1(0x1b6)],'minNumber':this['minNumber'],'maxDate':this[_0x4790f1(0x3aa)],'minDate':this[_0x4790f1(0x189)],'format':this[_0x4790f1(0x2aa)],'rangeKey':this[_0x4790f1(0x26c)],'dataFieldType':this[_0x4790f1(0x1d1)]()};}[_0x5ad6b7(0x3ba)](){const _0x5b6cce=_0x5ad6b7;return{'id':this['id'],'name':this[_0x5b6cce(0x43b)],'fieldDataType':this['getFieldDataType'](),'hexCode':this['hexCode'],'rangeKey':this[_0x5b6cce(0x26c)],'dataFieldType':this[_0x5b6cce(0x1d1)]()};}[_0x5ad6b7(0x29f)](_0x9c18c2){const _0x875298=_0x5ad6b7;this[_0x875298(0x43b)]=_0x9c18c2[_0x875298(0x43b)],this['id']=_0x9c18c2['id'],this['rangeKey']=_0x9c18c2['rangeKey'],this['hexCode']=_0x9c18c2[_0x875298(0x271)];}[_0x5ad6b7(0x3ee)](){const _0x1d5186=_0x5ad6b7;this['records']=[],this[_0x1d5186(0x2e3)]=[],this['itemTypes']=[],this[_0x1d5186(0x1d6)]={},this[_0x1d5186(0x1e2)]=!0x1,this[_0x1d5186(0x316)]=!0x1,this[_0x1d5186(0x476)]=!0x1,this[_0x1d5186(0x2ce)]=!0x1,this[_0x1d5186(0x2de)]=!0x1,this['hasBoolean']=!0x1,this[_0x1d5186(0x3ad)]=!0x1,this[_0x1d5186(0x2aa)]='',this['maxNumber']=NaN,this['minNumber']=NaN,this['maxDate']=-0x1/0x0,this[_0x1d5186(0x189)]=0x1/0x0,this[_0x1d5186(0x1ff)]={},this[_0x1d5186(0x17d)]=0x0,this[_0x1d5186(0x164)][_0x1d5186(0x3cc)]=0x0,this['_tupleKeyCounter']=0x0,this[_0x1d5186(0x280)]=0x0,this['_overflowRecordIndexes'][_0x1d5186(0x404)]();for(let _0x1c5c6c of[this[_0x1d5186(0x331)],this[_0x1d5186(0x326)],this[_0x1d5186(0x4cb)],this[_0x1d5186(0x1e8)],this[_0x1d5186(0x2ac)]])for(let _0x332e82 of Object[_0x1d5186(0x3ce)](_0x1c5c6c))delete _0x1c5c6c[_0x332e82];}},H=class extends V{constructor(..._0x2e1957){super(..._0x2e1957),M(this,'originalFieldId',void 0x0);}[_0x5ad6b7(0x3be)](_0x24841f){const _0x5f4ffc=_0x5ad6b7;return this[_0x5f4ffc(0x42a)](_0x24841f);}['getTupleItemsMap'](){const _0x4343fe=_0x5ad6b7;return this[_0x4343fe(0x1a2)]();}[_0x5ad6b7(0x34b)](_0x4abc82){const _0x5e78a5=_0x5ad6b7;return this[_0x5e78a5(0x1ba)](_0x4abc82);}[_0x5ad6b7(0x3a6)](_0x4233ad){return _0x4233ad;}[_0x5ad6b7(0x4d0)](_0x440d05){return this['getTypeByKey'](_0x440d05);}[_0x5ad6b7(0x1cb)](_0x43e9cb){const _0x1f9fa4=_0x5ad6b7;return this[_0x1f9fa4(0x1a2)]()[_0x43e9cb]===void 0x0?[]:[_0x43e9cb];}[_0x5ad6b7(0x4bb)](){const _0x2672e4=_0x5ad6b7;return{...super[_0x2672e4(0x4bb)](),'originalFieldId':this['getOriginFieldId'](),'dataFieldType':this['getDataFieldType']()};}[_0x5ad6b7(0x3ba)](){const _0x44240a=_0x5ad6b7;return{...super[_0x44240a(0x3ba)](),'originalFieldId':this['originalFieldId']};}};const Le=0x3b9aca00,Re=[_0x5ad6b7(0x2c5),'quarter',_0x5ad6b7(0x456),_0x5ad6b7(0x34d),_0x5ad6b7(0x174),'minute',_0x5ad6b7(0x329)];function ze(_0x2bdd0a){const _0x5c8be3=_0x5ad6b7;let _0x347a1f=0x1/0x0,_0x29f9ff=-0x1/0x0;for(let _0x10acdf of _0x2bdd0a[_0x5c8be3(0x2bd)]){let _0x410744=_0x10acdf['v'];_0x347a1f=Math[_0x5c8be3(0x3ef)](_0x347a1f,_0x410744),_0x29f9ff=Math[_0x5c8be3(0x278)](_0x29f9ff,_0x410744);}return{'start':_0x347a1f,'end':_0x29f9ff};}function Be(_0x4d2c6f,_0x2309a6){const _0x351430=_0x5ad6b7;let {units:_0x4fb167,daysInterval:_0x271f29=0x1}=_0x4d2c6f;if(!_0x4fb167[_0x351430(0x3cc)]||new Set(_0x4fb167)['size']!==_0x4fb167['length']||_0x4fb167[_0x351430(0x467)](_0x5cd1ac=>!Re[_0x351430(0x4da)](_0x5cd1ac))||!Number[_0x351430(0x4b0)](_0x271f29)||_0x271f29<0x1||_0x271f29>0x1&&(_0x4fb167[_0x351430(0x3cc)]!==0x1||_0x4fb167[0x0]!==_0x351430(0x34d)))return;let _0x3a7d9e=_0x2309a6[_0x351430(0x2bd)],_0x487622=t[_0x351430(0x493)];if(!_0x3a7d9e[_0x351430(0x3cc)]||_0x3a7d9e['some'](_0x3c5d2a=>!w(_0x3c5d2a)||!(0x0,e[_0x351430(0x255)])(_0x3c5d2a['v'],{'dateSystem':_0x487622})))return;let _0xb4f912=ze(_0x2309a6),_0x3a31b1=_0x4d2c6f[_0x351430(0x4a6)]?_0xb4f912[_0x351430(0x2d3)]:_0x4d2c6f[_0x351430(0x2d3)],_0x1c18c9=_0x4d2c6f['autoEnd']?_0xb4f912['end']:_0x4d2c6f['end'];if(!(_0x3a31b1===void 0x0||_0x1c18c9===void 0x0||_0x3a31b1>_0x1c18c9||!(0x0,e[_0x351430(0x255)])(_0x3a31b1,{'dateSystem':_0x487622})||!(0x0,e[_0x351430(0x255)])(_0x1c18c9,{'dateSystem':_0x487622})))return{..._0x4d2c6f,'units':Re[_0x351430(0x152)](_0x5bf44a=>_0x4fb167[_0x351430(0x4da)](_0x5bf44a))};}const Ve=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function He(_0x50362d){const _0x1243aa=_0x5ad6b7;return{..._0x50362d,..._0x50362d[_0x1243aa(0x47c)]?{'dayLabels':Object[_0x1243aa(0x45e)]([..._0x50362d[_0x1243aa(0x47c)]])}:{}};}function Ue(_0x6a5f7,_0x43c742,_0x18c866,_0x13e24d,_0x2e8399){const _0x5d5336=_0x5ad6b7;if(_0x6a5f7[_0x5d5336(0x47c)])return _0x6a5f7['dayLabels'][Ve[_0x13e24d-0x1]+_0x2e8399-0x1];if(_0x6a5f7[_0x5d5336(0x269)]===!0x1)return _0x2e8399;let _0x1bc43e=_0x6a5f7[_0x5d5336(0x2b6)]??0x1;return Math[_0x5d5336(0x409)](_0x18c866)+Math[_0x5d5336(0x409)]((Math['floor'](_0x43c742)-Math[_0x5d5336(0x409)](_0x18c866))/_0x1bc43e)*_0x1bc43e;}function _0x391c(_0x1599f7,_0x1b8271){_0x1599f7=_0x1599f7-0x141;const _0x105510=_0x1055();let _0x391cfb=_0x105510[_0x1599f7];return _0x391cfb;}var We=class extends H{constructor(_0x7ffb2c,_0x36e6c4,_0x1ec74e,_0x528389,_0x3d7378,_0xcf0758){const _0x4f1fea=_0x5ad6b7;super(_0x7ffb2c,_0x36e6c4,_0x1ec74e),M(this,_0x4f1fea(0x1d8),!0x0),M(this,_0x4f1fea(0x40d),void 0x0),M(this,'_excelLike',void 0x0),this[_0x4f1fea(0x239)]=_0x528389,this[_0x4f1fea(0x40d)]=_0x3d7378??_0x4f1fea(0x2c5),this[_0x4f1fea(0x26a)]=_0xcf0758&&He(_0xcf0758);}[_0x5ad6b7(0x43e)](_0xb3525d){this['_dateType']=_0xb3525d;}[_0x5ad6b7(0x265)](){const _0x5898da=_0x5ad6b7;return this[_0x5898da(0x40d)];}[_0x5ad6b7(0x4a2)](){const _0x20df3d=_0x5ad6b7;return this[_0x20df3d(0x1d8)];}[_0x5ad6b7(0x143)](_0x25d1a3){const _0x3a5fd6=_0x5ad6b7;if(this[_0x3a5fd6(0x3ee)](),this['_dataIsValid']=!0x0,this[_0x3a5fd6(0x26a)]){this[_0x3a5fd6(0x1ab)](_0x25d1a3);return;}let _0x39ff55=_0x25d1a3[_0x3a5fd6(0x2bd)],_0x4810f6=t[_0x3a5fd6(0x493)]===e[_0x3a5fd6(0x182)][_0x3a5fd6(0x212)];for(let _0x4722c0=0x0;_0x4722c0<_0x39ff55[_0x3a5fd6(0x3cc)];_0x4722c0++){let _0x15075e=_0x39ff55[_0x4722c0];if(_0x15075e==null)continue;if(!w(_0x15075e)){this[_0x3a5fd6(0x1d8)]=!0x1;break;}let _0x48cd57=_0x15075e['v'],_0x50a674=Ie(_0x48cd57,this['_dateType'],_0x4810f6);this[_0x3a5fd6(0x2e2)](_0x50a674,_0x4722c0);}}[_0x5ad6b7(0x1ab)](_0x376a84){const _0x29d6c6=_0x5ad6b7;let _0x5c688f=this[_0x29d6c6(0x26a)];if(!Be({..._0x5c688f,'units':[_0x5c688f[_0x29d6c6(0x309)]]},_0x376a84)||_0x5c688f[_0x29d6c6(0x47c)]&&(_0x5c688f[_0x29d6c6(0x309)]!==_0x29d6c6(0x34d)||(_0x5c688f[_0x29d6c6(0x2b6)]??0x1)!==0x1||_0x5c688f[_0x29d6c6(0x47c)][_0x29d6c6(0x3cc)]!==0x16e)){this['_dataIsValid']=!0x1;return;}let _0x235414=_0x376a84[_0x29d6c6(0x2bd)][_0x29d6c6(0x3c7)](_0x42bfe7=>_0x42bfe7['v']),_0x37c8d7=ze(_0x376a84),_0x421279=_0x5c688f[_0x29d6c6(0x4a6)]?_0x37c8d7['start']:_0x5c688f[_0x29d6c6(0x2d3)],_0x5e176c=_0x5c688f['autoEnd']?_0x37c8d7[_0x29d6c6(0x3bb)]:_0x5c688f[_0x29d6c6(0x3bb)],_0x4b0c3e=t[_0x29d6c6(0x493)];for(let _0x4cf093=0x0;_0x4cf093<_0x235414[_0x29d6c6(0x3cc)];_0x4cf093++){let _0x184ca6=_0x235414[_0x4cf093];if(_0x184ca6<_0x421279){this['addRecord'](-0x1,_0x4cf093);continue;}if(_0x184ca6>_0x5e176c){this[_0x29d6c6(0x2e2)](Le,_0x4cf093);continue;}let _0x1373d3=(0x0,e[_0x29d6c6(0x255)])(_0x184ca6,{'dateSystem':_0x4b0c3e}),_0x1593dc=(_0x184ca6-Math[_0x29d6c6(0x409)](_0x184ca6))*0x15180,_0x4745ac=Math[_0x29d6c6(0x2a3)](_0x1593dc),_0x50ba34=0x2**-0x34*Math[_0x29d6c6(0x278)](0x1,Math[_0x29d6c6(0x2b5)](_0x184ca6))*0x15180,_0x257958=Math['min'](0x1517f,Math[_0x29d6c6(0x2b5)](_0x1593dc-_0x4745ac)<=_0x50ba34?_0x4745ac:Math[_0x29d6c6(0x409)](_0x1593dc)),_0x3f7c35;switch(_0x5c688f[_0x29d6c6(0x309)]){case _0x29d6c6(0x2c5):_0x3f7c35=_0x1373d3[_0x29d6c6(0x2c5)];break;case _0x29d6c6(0x2c9):_0x3f7c35=Math[_0x29d6c6(0x183)](_0x1373d3['month']/0x3);break;case'month':_0x3f7c35=_0x1373d3[_0x29d6c6(0x456)];break;case _0x29d6c6(0x34d):_0x3f7c35=Ue(_0x5c688f,_0x184ca6,_0x421279,_0x1373d3['month'],_0x1373d3['day']);break;case _0x29d6c6(0x174):_0x3f7c35=Math[_0x29d6c6(0x409)](_0x257958/0xe10);break;case _0x29d6c6(0x236):_0x3f7c35=Math['floor'](_0x257958/0x3c)%0x3c;break;case _0x29d6c6(0x329):_0x3f7c35=_0x257958%0x3c;}this['addRecord'](_0x3f7c35,_0x4cf093);}}[_0x5ad6b7(0x200)](){const _0x39f8c6=_0x5ad6b7;return{'type':0x3,'dateType':this['_dateType'],...this[_0x39f8c6(0x26a)]?{'excelLike':{...this[_0x39f8c6(0x26a)]}}:{}};}[_0x5ad6b7(0x1d1)](){return 0x3;}['getOriginFieldId'](){const _0x28bd5e=_0x5ad6b7;return this[_0x28bd5e(0x239)];}[_0x5ad6b7(0x4bb)](){const _0xe92943=_0x5ad6b7;return{...super[_0xe92943(0x4bb)](),'dateType':this[_0xe92943(0x40d)],'originalFieldId':this[_0xe92943(0x239)],...this['_excelLike']?{'excelLike':{...this[_0xe92943(0x26a)]}}:{}};}['toJSON'](){const _0x3d56e8=_0x5ad6b7;return{...super[_0x3d56e8(0x3ba)](),'dateType':this[_0x3d56e8(0x40d)],'originalFieldId':this[_0x3d56e8(0x239)],...this[_0x3d56e8(0x26a)]?{'excelLike':{...this['_excelLike']}}:{}};}[_0x5ad6b7(0x29f)](_0x15fbc5){const _0x4ef74a=_0x5ad6b7;super[_0x4ef74a(0x29f)](_0x15fbc5),this['_dateType']=(_0x15fbc5==null?void 0x0:_0x15fbc5[_0x4ef74a(0x144)])??_0x4ef74a(0x2c5),this[_0x4ef74a(0x239)]=_0x15fbc5[_0x4ef74a(0x239)],this['_excelLike']=_0x15fbc5[_0x4ef74a(0x37d)]&&He(_0x15fbc5[_0x4ef74a(0x37d)]);}};function Ge(_0x420449,_0x137d1d,_0x4d7c07){const _0x350fbf=_0x5ad6b7;return!!_0x420449&&typeof _0x420449['id']==_0x350fbf(0x3c4)&&!!_0x420449['id']&&!_0x137d1d['has'](_0x420449['id'])&&typeof _0x420449[_0x350fbf(0x43b)]==_0x350fbf(0x3c4)&&!!_0x420449[_0x350fbf(0x43b)][_0x350fbf(0x24e)]()&&!_0x4d7c07['has'](_0x420449[_0x350fbf(0x43b)])&&Array[_0x350fbf(0x3d2)](_0x420449['members'])&&_0x420449[_0x350fbf(0x1de)][_0x350fbf(0x3cc)]>=0x2;}function U(_0x3d8ddc,_0x2a7922,_0x111ff0){const _0x1947c1=_0x5ad6b7;if(!Array['isArray'](_0x3d8ddc==null?void 0x0:_0x3d8ddc[_0x1947c1(0x3eb)])||!_0x3d8ddc[_0x1947c1(0x3eb)][_0x1947c1(0x3cc)])return;let _0xb1e0fb=new Set();if(_0x2a7922)try{for(let _0x563a3b of _0x2a7922[_0x1947c1(0x2bd)])_0xb1e0fb[_0x1947c1(0x39f)]((0x0,e[_0x1947c1(0x3d0)])(E(_0x563a3b)));}catch{return;}let _0x746cbb=new Map(),_0x648eec=_0x111ff0&&U(_0x111ff0);for(let _0x5803a9 of(_0x648eec==null?void 0x0:_0x648eec[_0x1947c1(0x3eb)])??[])_0x746cbb['set'](_0x5803a9['id'],new Set(_0x5803a9[_0x1947c1(0x1de)]['map'](e[_0x1947c1(0x3d0)])));let _0x12be7c=new Set(),_0x1cbfb3=new Set(),_0x4435ce=new Set(),_0x37411a=[];for(let _0x15f3e4 of _0x3d8ddc[_0x1947c1(0x3eb)]){if(!Ge(_0x15f3e4,_0x12be7c,_0x1cbfb3))return;_0x12be7c[_0x1947c1(0x39f)](_0x15f3e4['id']),_0x1cbfb3['add'](_0x15f3e4[_0x1947c1(0x43b)]);let _0x41bea2=[];for(let _0x121bd0 of _0x15f3e4[_0x1947c1(0x1de)]){var _0x59f8ee;let _0x4a9a5d;try{_0x4a9a5d=(0x0,e[_0x1947c1(0x3d0)])(_0x121bd0);}catch{return;}if(_0x4435ce[_0x1947c1(0x3b0)](_0x4a9a5d)||_0x2a7922&&!_0xb1e0fb[_0x1947c1(0x3b0)](_0x4a9a5d)&&!((_0x59f8ee=_0x746cbb[_0x1947c1(0x16d)](_0x15f3e4['id']))!=null&&_0x59f8ee[_0x1947c1(0x3b0)](_0x4a9a5d)))return;_0x4435ce[_0x1947c1(0x39f)](_0x4a9a5d),_0x41bea2[_0x1947c1(0x3ed)]({..._0x121bd0});}_0x37411a[_0x1947c1(0x3ed)]({'id':_0x15f3e4['id'],'name':_0x15f3e4[_0x1947c1(0x43b)],'members':_0x41bea2});}return{'groups':_0x37411a};}var W=class extends H{constructor(_0x1f4b48,_0x5977c5,_0x4886e4,_0x1747ec,_0x5ae52c){const _0x1e8541=_0x5ad6b7;super(_0x1f4b48,_0x5977c5,_0x4886e4),M(this,_0x1e8541(0x47d),void 0x0),M(this,_0x1e8541(0x1d8),!0x0),M(this,_0x1e8541(0x2f8),[]),M(this,_0x1e8541(0x421),new Map()),this[_0x1e8541(0x239)]=_0x1747ec,this['_grouping']=U(_0x5ae52c)??_0x5ae52c;}[_0x5ad6b7(0x418)](){const _0x4f1f09=_0x5ad6b7;return this[_0x4f1f09(0x1d8)];}[_0x5ad6b7(0x46b)](){return U(this['_grouping'])??this['_grouping'];}[_0x5ad6b7(0x461)](_0x2728be){const _0x29ff31=_0x5ad6b7;this[_0x29ff31(0x47d)]=U(_0x2728be)??_0x2728be;}[_0x5ad6b7(0x3ee)](){const _0x48c1c9=_0x5ad6b7;super['reset'](),this[_0x48c1c9(0x2f8)]=[],this[_0x48c1c9(0x421)][_0x48c1c9(0x404)]();}[_0x5ad6b7(0x42a)](_0x20fe34){const _0x3da465=_0x5ad6b7;let _0x620a53=this[_0x3da465(0x2f8)][_0x20fe34];return this[_0x3da465(0x1a2)]()[_0x620a53]===void 0x0?t['otherDataKey']:_0x620a53;}[_0x5ad6b7(0x4c3)](_0x5dc747){const _0x35b223=_0x5ad6b7;return this[_0x35b223(0x421)][_0x35b223(0x16d)](_0x5dc747)??_0x5dc747;}[_0x5ad6b7(0x143)](_0x25f4f5){const _0x69a61=_0x5ad6b7;this[_0x69a61(0x3ee)]();let _0x3dd4a9=U(this[_0x69a61(0x47d)]);if(this[_0x69a61(0x1d8)]=!!_0x3dd4a9,!_0x3dd4a9)return;let _0x5662dd=new Map();for(let _0x472657 of _0x3dd4a9[_0x69a61(0x3eb)])for(let _0x5be81e of _0x472657[_0x69a61(0x1de)])_0x5662dd[_0x69a61(0x34a)]((0x0,e[_0x69a61(0x3d0)])(_0x5be81e),_0x472657);for(let _0x32223e=0x0;_0x32223e<_0x25f4f5[_0x69a61(0x2bd)][_0x69a61(0x3cc)];_0x32223e++){let _0x5b755f=_0x25f4f5[_0x69a61(0x2bd)][_0x32223e],_0x3ff01e,_0x12c4d1;try{_0x3ff01e=E(_0x5b755f),_0x12c4d1=(0x0,e[_0x69a61(0x3d0)])(_0x3ff01e);}catch{this[_0x69a61(0x3ee)](),this['_dataIsValid']=!0x1;return;}let _0x5f2c05=_0x5662dd[_0x69a61(0x16d)](_0x12c4d1),_0xdf6686=JSON[_0x69a61(0x4a9)](_0x5f2c05?[_0x69a61(0x4a3),_0x5f2c05['id']]:[_0x69a61(0x32f),_0x12c4d1]),_0x238a4b=(_0x5f2c05==null?void 0x0:_0x5f2c05[_0x69a61(0x43b)])??(_0x3ff01e[_0x69a61(0x3b6)]===e[_0x69a61(0x196)]['Blank']?t[_0x69a61(0x301)]:String(_0x3ff01e[_0x69a61(0x414)])),_0x4612f3=_0x5f2c05?0x1:this[_0x69a61(0x1bc)](_0x3ff01e);super[_0x69a61(0x2e2)](_0xdf6686,_0x32223e),this[_0x69a61(0x2bd)][_0x32223e]=(_0x5f2c05==null?void 0x0:_0x5f2c05[_0x69a61(0x43b)])??_0x5b755f,this[_0x69a61(0x2f8)][_0x32223e]=_0xdf6686,this['_displayNames'][_0x69a61(0x34a)](_0xdf6686,_0x238a4b);let _0x47f5f7=this['getItemsMap']()[_0xdf6686];_0x47f5f7!==void 0x0&&(this[_0x69a61(0x36f)][_0x47f5f7]=_0x4612f3);}}[_0x5ad6b7(0x1bc)](_0x568028){const _0x335be3=_0x5ad6b7;switch(_0x568028[_0x335be3(0x3b6)]){case e['RecordValueType'][_0x335be3(0x4c5)]:return 0x5;case e['RecordValueType'][_0x335be3(0x1fa)]:return 0x2;case e[_0x335be3(0x196)][_0x335be3(0x36e)]:return 0x4;case e['RecordValueType'][_0x335be3(0x220)]:return 0x3;case e[_0x335be3(0x196)][_0x335be3(0x313)]:return 0x6;default:return 0x1;}}[_0x5ad6b7(0x200)](){}[_0x5ad6b7(0x1d1)](){return 0x4;}[_0x5ad6b7(0x1f5)](){const _0x2db920=_0x5ad6b7;return this[_0x2db920(0x239)];}[_0x5ad6b7(0x3ba)](){const _0x470a40=_0x5ad6b7;return{...super[_0x470a40(0x3ba)](),'dataFieldType':0x4,'grouping':this['getGrouping']()};}[_0x5ad6b7(0x29f)](_0x431e44){const _0x5b4b79=_0x5ad6b7;super['fromJSON'](_0x431e44),this[_0x5b4b79(0x239)]=_0x431e44[_0x5b4b79(0x239)],this[_0x5b4b79(0x47d)]=U(_0x431e44[_0x5b4b79(0x460)])??_0x431e44[_0x5b4b79(0x460)];}};const G=_0x5ad6b7(0x149),Ke=_0x5ad6b7(0x347);function qe(_0x1d20e1,_0x333532){const _0x557957=_0x5ad6b7;if(!Number['isFinite'](_0x1d20e1[_0x557957(0x1f2)])||_0x1d20e1[_0x557957(0x1f2)]<=0x0||!_0x333532['records']['length'])return;let _0x3ca1ae=0x1/0x0,_0x211099=-0x1/0x0;for(let _0x3ff36b of _0x333532[_0x557957(0x2bd)])if(!P(_0x3ff36b)){if(typeof _0x3ff36b!=_0x557957(0x3f4)||!Number[_0x557957(0x2bc)](_0x3ff36b))return;_0x3ca1ae=Math[_0x557957(0x3ef)](_0x3ca1ae,_0x3ff36b),_0x211099=Math['max'](_0x211099,_0x3ff36b);}let _0x5bdd70=_0x1d20e1[_0x557957(0x4a6)]?_0x3ca1ae:_0x1d20e1[_0x557957(0x2d3)],_0xc69b10=_0x1d20e1['autoEnd']?_0x211099:_0x1d20e1['end'];if(!(_0x5bdd70===void 0x0||_0xc69b10===void 0x0||!Number[_0x557957(0x2bc)](_0x5bdd70)||!Number[_0x557957(0x2bc)](_0xc69b10)||_0x5bdd70>_0xc69b10))return{'start':_0x5bdd70,'end':_0xc69b10};}function Je(_0x495ab1,_0x4d95cf){return qe(_0x495ab1,_0x4d95cf)?{..._0x495ab1}:void 0x0;}function Ye(_0x12eb49){const _0x4f4552=_0x5ad6b7;let _0x224801=qe({'autoStart':!0x0,'autoEnd':!0x0,'interval':0x1},_0x12eb49);if(!_0x224801)return;let _0x4d4034=_0x224801[_0x4f4552(0x3bb)]-_0x224801['start'];if(!Number[_0x4f4552(0x2bc)](_0x4d4034))return;let _0x22e060=Math['round'](Math[_0x4f4552(0x308)](_0x4d4034||Math[_0x4f4552(0x2b5)](_0x224801[_0x4f4552(0x2d3)])||0x1))-0x1,_0x2515d9=Math[_0x4f4552(0x278)](Number[_0x4f4552(0x37f)],0xa**_0x22e060),_0x20773d=_0x12eb49[_0x4f4552(0x2bd)][_0x4f4552(0x3d9)](_0x201eec=>P(_0x201eec)||Number[_0x4f4552(0x4b0)](_0x201eec));return{'autoStart':!0x0,'autoEnd':!0x0,..._0x224801,'interval':_0x20773d?Math[_0x4f4552(0x278)](0x1,_0x2515d9):_0x2515d9};}var Xe=class extends H{constructor(_0x2f776b,_0x3497eb,_0x2ee29e,_0x338374,_0x3f28d3){const _0x30bd69=_0x5ad6b7;super(_0x2f776b,_0x3497eb,_0x2ee29e),M(this,_0x30bd69(0x47d),void 0x0),M(this,_0x30bd69(0x1d8),!0x0),M(this,_0x30bd69(0x392),void 0x0),this['originalFieldId']=_0x338374,this[_0x30bd69(0x47d)]={..._0x3f28d3};}[_0x5ad6b7(0x1e5)](){const _0x47c7e7=_0x5ad6b7;return this[_0x47c7e7(0x1d8)];}[_0x5ad6b7(0x143)](_0x4c0cb2){const _0x461ad6=_0x5ad6b7;this['reset']();let _0x36af56=qe(this[_0x461ad6(0x47d)],_0x4c0cb2);if(this[_0x461ad6(0x392)]=_0x36af56,this['_dataIsValid']=!!_0x36af56,!_0x36af56)return;let {start:_0x41b5a0,end:_0x1f0fdc}=_0x36af56,_0x4d769a=(_0x1f0fdc-_0x41b5a0)/this[_0x461ad6(0x47d)]['interval'];if(!Number['isFinite'](_0x4d769a)){this[_0x461ad6(0x1d8)]=!0x1,this[_0x461ad6(0x392)]=void 0x0;return;}let _0x15aee1=Math['round'](_0x4d769a),_0x1772ea=Math[_0x461ad6(0x3ef)](0x2**-0x34*0x8*Math[_0x461ad6(0x278)](0x1,Math[_0x461ad6(0x2b5)](_0x4d769a)),0.000001),_0x3318ac=Math[_0x461ad6(0x2b5)](_0x4d769a-_0x15aee1)<=_0x1772ea?_0x15aee1:Math[_0x461ad6(0x183)](_0x4d769a),_0x2a621d=Math[_0x461ad6(0x278)](0x0,_0x3318ac-0x1);for(let _0x3d7239=0x0;_0x3d7239<_0x4c0cb2[_0x461ad6(0x2bd)][_0x461ad6(0x3cc)];_0x3d7239++){let _0x9a55e0=_0x4c0cb2['records'][_0x3d7239];if(P(_0x9a55e0)){this['addRecord'](_0x9a55e0,_0x3d7239);continue;}let _0x5c835=_0x9a55e0,_0x3415aa=Math[_0x461ad6(0x3ef)](0x2**-0x34*0x8*Math[_0x461ad6(0x278)](Math['abs'](_0x5c835),Math['abs'](_0x41b5a0)),this[_0x461ad6(0x47d)][_0x461ad6(0x1f2)]*0.000001),_0x530d73=Math[_0x461ad6(0x3ef)](0x2**-0x34*0x8*Math[_0x461ad6(0x278)](Math[_0x461ad6(0x2b5)](_0x5c835),Math[_0x461ad6(0x2b5)](_0x1f0fdc)),this[_0x461ad6(0x47d)]['interval']*0.000001);if(_0x5c835<_0x41b5a0&&_0x41b5a0-_0x5c835>_0x3415aa)this[_0x461ad6(0x2e2)](G,_0x3d7239);else{if(_0x5c835>_0x1f0fdc&&_0x5c835-_0x1f0fdc>_0x530d73)this[_0x461ad6(0x2e2)](Ke,_0x3d7239);else{let _0x8f2044=(Math[_0x461ad6(0x3ef)](_0x1f0fdc,Math[_0x461ad6(0x278)](_0x41b5a0,_0x5c835))-_0x41b5a0)/this[_0x461ad6(0x47d)]['interval'];if(!Number[_0x461ad6(0x2bc)](_0x8f2044)){this[_0x461ad6(0x3ee)](),this['_dataIsValid']=!0x1;return;}let _0x5d4342=Math[_0x461ad6(0x2a3)](_0x8f2044),_0x4484c1=Math[_0x461ad6(0x3ef)](0x2**-0x34*0x8*Math[_0x461ad6(0x278)](0x1,Math[_0x461ad6(0x2b5)](_0x8f2044)),0.000001),_0x130eec=Math[_0x461ad6(0x3ef)](_0x2a621d,Math[_0x461ad6(0x2b5)](_0x8f2044-_0x5d4342)<=_0x4484c1?_0x5d4342:Math[_0x461ad6(0x409)](_0x8f2044)),_0x4be836=Number((_0x41b5a0+_0x130eec*this[_0x461ad6(0x47d)][_0x461ad6(0x1f2)])['toPrecision'](0xf));this[_0x461ad6(0x2e2)](_0x4be836,_0x3d7239);}}}}[_0x5ad6b7(0x200)](){const _0x234961=_0x5ad6b7;return{'type':0x2,'grouping':{...this[_0x234961(0x47d)],...this[_0x234961(0x392)]}};}['getDataFieldType'](){return 0x2;}[_0x5ad6b7(0x1f5)](){const _0x30beb2=_0x5ad6b7;return this[_0x30beb2(0x239)];}[_0x5ad6b7(0x3ba)](){const _0x1c6d97=_0x5ad6b7;return{...super[_0x1c6d97(0x3ba)](),'dataFieldType':0x2,'grouping':{...this[_0x1c6d97(0x47d)]}};}[_0x5ad6b7(0x29f)](_0xbb9f89){const _0x3f1d20=_0x5ad6b7;super[_0x3f1d20(0x29f)](_0xbb9f89),this[_0x3f1d20(0x239)]=_0xbb9f89[_0x3f1d20(0x239)],this[_0x3f1d20(0x47d)]={..._0xbb9f89[_0x3f1d20(0x460)]};}};function K(_0x47febb){const _0x50a276=_0x5ad6b7;let _0x1987cc;if(Fe(_0x47febb))_0x1987cc=new We(_0x47febb['id'],_0x47febb['name'],_0x47febb[_0x50a276(0x271)],_0x47febb[_0x50a276(0x239)]);else{if(_0x47febb[_0x50a276(0x38a)]===0x2){let _0x5463eb=_0x47febb;_0x1987cc=new Xe(_0x47febb['id'],_0x47febb[_0x50a276(0x43b)],_0x47febb[_0x50a276(0x271)],_0x5463eb['originalFieldId'],_0x5463eb[_0x50a276(0x460)]);}else{if(_0x47febb[_0x50a276(0x38a)]===0x4){let _0x30ef1f=_0x47febb;_0x1987cc=new W(_0x47febb['id'],_0x47febb[_0x50a276(0x43b)],_0x47febb[_0x50a276(0x271)],_0x30ef1f[_0x50a276(0x239)],_0x30ef1f[_0x50a276(0x460)]);}else _0x1987cc=new V(_0x47febb['id'],_0x47febb[_0x50a276(0x43b)],_0x47febb[_0x50a276(0x271)]);}}return _0x1987cc[_0x50a276(0x29f)](_0x47febb),_0x1987cc;}function _0x1055(){const _0x52290b=['lastYear','getHours','dateEqual','valueEqual','_colLevelPool','filterFields','blank','prefix','showRowSubtotal','getOptions','invalid','__number_after__','createSummaryLabelSortedMap','filterQueryInfo','set','getTupleIndexesByKey','calculateListSubtotal','day','_buildPeerIndexes','date','writeRootValueHeaderRow','Invalid\x20multiple-filter\x20mode.','valueLessThanOrEqual','shouldMultipleNode','_countN','shouldWriteLeafValuesUnderItem','custom','hiddenFields','indexOf','layoutCol','Include','includesCurrent','getFieldsId','FilterNoneSortAsc','Collapse','rankAscending','The\x20field\x20','_fieldIndexById','getSortedMap','isPrefixValue','getRowLabelCol','SetValueFilter','layoutRowChildren','_buildRankBuffer','captionBeginsWith','clearFieldFilters','_columnTotalIndexes','_setDerivedError','colNodeTree','pageWrap','Date','itemTypes','sortMap','_sum','dateNewerThanOrEqual','rowDeep','resetSort','Invalid\x20pivot\x20date\x20grouping\x20mode.','isEmpty','tupleIndex','updateValuePosition','path','getFieldPositionInfoById','flatMap','getLastRow','excelLike','isPivotTableFilterRestrictive','MIN_VALUE','ExcelLike','percentOf','setRange','Min\x20of\x20','filterInfo','rowCount','onQueryEnd','-%$%-','writeParentRow','PivotViewCellValueTypeEnum','dataFieldType','_updateNumberItemKey','PivotTableLabelField','PivotDateGroupingMode','setLabelFilterInfo','18DvKdSq','TUPLE_FIELD_SEPARATOR','colDeep','_bounds','unionTuples','PivotTable','BadReference','subTotal','layoutNoneColFields','baseItem','11VbLNOC','getSortInfo','list','_parentFieldIndexes','layoutRowNodeToCursor','tuple','add','NotNumber','buildPathMap','create','_nodes','cornerView','sortInfo','getTupleLabel','captionEndsWith','showColGrandTotal','countN','maxDate','Unknown\x20pivot\x20filter\x20type.','_getValueFilterTree','hasError','_updateErrorItemKey','compilePivotDateFilter','has','_divideParent','getCornerSize','hasBoolean','layoutHeadersWithoutColumnDimensions','fields','type','_getIndex','valueIndex','colView','toJSON','end','FilterSingle','reduce','getTupleKey','iterateField','createTuple','_valueFilterInfo','_divide','getColIndexForRowHeader','string','_rowFieldIndexes','\x20-\x20','map','node','states','Column','getFormat','length','layoutPageOverThenDown','keys','getRangeKey','getRecordValueKey','RenameField','isArray','indexes','_getTupleCache','captionNotContains','summaryManager','setPageIndex','valuePosition','every','repeatRowLabelsForNode','PivotDateGroupFieldDateTypeEnum','sort','_buildCoordinateIndex','GlobalConfig','sortLocale','valueQueryInfo','_updateItemKey','createLabelFieldByDataFieldId','DataField','nextWeek','createPivotSortCompare','positions','PivotTableValuePositionEnum','setLabelValue','LabelViewItem','getValueLabelCol','groups','endCollectChangeset','push','reset','min','dataFields','getValueFilterInfos','_summaryManagerCache','None','number','layoutRowFields','AddField','endChangeStack','dimensionSortInfo','getRowCount','normalizeNumberGrouping','displayName','getSourceName','assign','defaultSortType','tomorrow','valueLessThan','_getParentGroupKey','_itemIndexMaps','lastRow','clear','getValue','normal','unknown','data','floor','colMap','getMeasureIndex','setCollapse','_dateType','parentIndex','\x20Σ值','rankDescending','Second','createCollection','getFieldFormat','value','_getDerivedValue','_getGroupInfo','createTupleWithoutCheck','getManualGroupValid','writeValueHeaderRow','percentOfRowTotal','dateRange','Member','sortNode','symbol','setValueFilterInfo','getRowColCount','_displayNames','getInfo','maxLimitItemCount','isDateGroupField','_prepareParentIndexes','descending','year-month-date','combinePathMapList','_changeStack','getItemKey','setFormat','FilterAll','getItemSharedKey','isExistFieldName','getPathKeyWithFiledId','getValueFilterInfo','getId','valueFilterMap','isErrorValue','_showDataAsResolver','month-date','layout','FilteredSortDesc','Month','yesterday','layoutColFields','name','conditionFilter','createDataFieldId','setDateType','mode','_level','toPrimitive','error','Exclude','text','setName','sqrt','SetCollapse','Filter','thisWeek','setValue','values','Minute','unionTupleInfo','dateOlderThan','range','colCount','runningTotal','customFields','thisYear','hasNode','isDev','month','getDate','endDate','average','lastWeek','RemoveField','_summaryManager','valueNotEqual','freeze','measureCount','grouping','setGrouping','_getFieldIndex','removeValueFilterInfoByValueFieldId','RecordFilter','ascending','setShowDataAs','some','getAutoDisplayNameFunction','lastQuarter','_setPageFilterLabel','getGrouping','MonthDate','getformat','compare','find','PivotTableFiledAreaEnum','iterateFieldDim','ManualGroupField','_tupleKeyCounter','_tupleByCoordinate','compileRecordFilter','hasDate','valueGreaterThanOrEqual','stdDev','_max','_isPeerType','measure','dayLabels','_grouping','dateGroupField','_rowLevelPool','hour-minute','getFieldIds','percentOfGrandTotal','addRange','captionBetween','getPivotDateGroupingMode','captionEqual','_getIndexedTupleIndex','rowSubtotalPosition','rowQueryInfo','sourceName','createValueFieldByDataFieldId','getUniqueFieldId','iterate','_heap','NotName','createLabelField','colPathMap','PivotErrorTypeEnum','dateSystem','getCollapse','ranges','Population\x20Standard\x20Deviation\x20of\x20','iterateColLeafNodeChildren','NotFunction','setStyle','clearFilters','getFilterInfo','dataView','slice','fromEntries','_tupleGroupCache','_summaryCacheState','PivotViewItem','getDateGroupValid','group','percentDifferenceFrom','size','autoStart','_getCoordinateKeyWithoutField','baseFieldId','stringify','createRowInfo','getDirty','excelDateToUnixMilliseconds','customGroupField','layoutValueNode','captionLessThan','isInteger','variant','rowNodeTree','renameField','tabular','entries','startContent','NUMBER_GROUP_AFTER_KEY','getDisplayName','condition','object','getFieldInfo','setLastRow','_getCanonicalTupleIndex','getLayout','_canonicalTupleIndexes','doColBranchNode','Collator','Year','getDisplayNameByKey','bottom','Blank','_updateBlankItemKey','2918568aocLBq','TUPLE_PLACEHOLDER','getDataFieldByDataFieldId','_peerIndexesByValueField','_tupleLabels','Product\x20of\x20','FilteredSortAsc','shouldMultipleTotal','DateGroupField','getTupleType','createSingleValueHeaderInfo','layoutPage','isValueFilterOperator','repeatRowLabels','dimensionTableIdList','warn','numberGroupField','doRowLeafNode','Condition','includes','YearMonth','getLastCol','PivotShowAsBaseItemTypeEnum','getTupleItemsMap','getShowDataAs','_createValueFilterLevelPool','percentOfParent','setRowCount','isDateGroupFieldJSON','endsWith','refreshGroupField','dateType','PivotSubtotalPositionEnum','writeGrandTotalRows','dataRecordCount','valueFilter','__number_before__','_fieldsCollection','shouldSplitRootByValues','buildNodeTree','_isDirty','ensureTupleItem','concat','PivotCellStyleTypeEnum','addHeaderMapItem','filter','captionNotBetween','_bufferModel','Sum\x20of\x20','ST_PivotFilterOperatorEnum','getRanges','_product','squareSum','getIndex','SetLayout','setSubtotal','getIsLeaf','sortedList','cloneBufferModel','lastMonth','setFilterInfo','headerMap','host','_recordTupleKeys','setMaxLimitItemCount','iterateFieldByArea','leafCount','getRealSize','_getIndexValue','_parentRowTotalIndexes','hasOwnProperty','setBlank','get','setSortInfo','updateRowSubtotal','_createDerivedBuffer','_peerUnionsByValueField','defaultNormalField','updateAllDisplayName','hour','layoutValueNodeSubtotal','_updateBooleanItemKey','getGroupFieldsInfoByIds','getTypeByKey','409023GMZShw','createGrandTotalInfo','FilterSelectionMode','getRangeData','_keyCounter','15RfkGwq','_applyLabelSorts','SetShowDataAs','_clearSourceFilters','DateSystem','ceil','ensureTupleItemByString','getCellValue','index','_applyValueSorts','PivotTableChangeTypeEnum','minDate','queryData','updateColumnSubtotal','_coordinates','_overflowRecordIndexes','FilterNoneSortNone','defineProperty','HourMinute','dataFieldsCollection','captionGreaterThan','CustomFilter','PivotShowAsTypeEnum','options','RecordValueType','lastCol','next','_buildOrderedGroups','layoutColNode','_prepareTotalIndexes','-$-cr-$-','getColCount','dateNotBetween','removeValueFilterInfo','setFieldFilterState','_addTupleRecord','getItemsMap','writeParentItemRow','Count\x20of\x20','columnFields','-$-oth-$-','getMonth','PivotTableValueField','The\x20value\x20filter\x20info\x20is\x20invalid.','_buildTotalIndexes','_refreshExcelLike','UTC','ready','_isParentType','_parentFieldIndexByValueField','join','splice','isLeaf','applyNodeValueType','dimensionIdList','getDefaultNumberGrouping','maxNumber','pop','percent','hasSourceName','getIndexesByKey','_doValueFilter','_getMemberType','_percentDifference','tuples','normalizeExcelDateGrouping','ROW_ROOT_PATH','Module','normalizeManualGrouping','split','Hidden','_columnFieldIndexes','_getIndexedRawValue','writeLeafRows','UpdateSource','getFieldDisplayNames','itemSize','getTupleKeysByLabel','isExistField','compact','Invalid\x20pivot\x20date\x20range.','isRowMultiMeasure','createOrUpdateTuple','getDataFieldType','getGroupFieldMap','layoutGrandTotalValues','isAll','705634tgFlxJ','_itemIndexMap','Row','_dataIsValid','count','other','getSubtotal','SetSubtotalType','_layout','members','selection','getMeasureInfoByIndex','prepare','hasInteger','_getParentNodeKey','generateHexNumber','getNumberGroupValid','doColLeafNode','hasSort','_tupleTypes','_parentColumnTotalIndexes','setInfo','shouldWriteMultiValueSubtotalAtBottom','NUMBER_GROUP_BEFORE_KEY','stdDevp','setLastCol','topTotalSize','measureIdList','allowMultipleFilters','interval','isLeafNode','addFieldWithSourceId','getOriginFieldId','getLevel','sortChildrenByValue','errorType','setLeaf','Number','countNums','_fieldCount','1074535EiVlMZ','writeBottomSubtotalRow','_itemsMap','getGroupInfo','pageOverThenDown','prepareLayoutCtx','UpdateFieldPosition','_defaultSortLocale','setRangeKey','findIndex','getValueIndex','startChangeStack','getFieldCountByArea','getDataFieldId','startsWith','info','showDataAs','_rowTotalIndexes','startDate','showRowGrandTotal','captionContains','Date1900','SetOptions','rowFields','getTableFieldsByDataFieldId','M12','lossLessProperty','previous','_bubbleDown','-$-rr-$-','setDataFieldId','thisQuarter','subtotalMap','captionGreaterThanOrEqual','Value','Boolean','_buildNodeTreeImp','summary','subtotal','Ambiguous\x20pivot\x20condition\x20state.','calculateSubtotal','prototype','getStyle','boolean','getDataFieldByTableId','setFieldFormat','getFieldById','_count','_difference','writeLeafValueRow','_grandTotalIndex','Column\x20Labels','measureIndexesMap','default','The\x20displayName\x20','_sortCompareCache','setLevel','minute','updateDataFieldsCollection','Population\x20Variance\x20of\x20','originalFieldId','Pivot\x20date\x20operands\x20must\x20be\x20finite\x20and\x20ordered.','layoutColHeader','collapse','Subtotal','localeCompare','getRowIndexForColHeader','colTableIdList','rowTableIdList','getFilterFieldIdByIndex','percentOfParentRowTotal','writeLeafItemRow','setDisplayName','valueFields','_model','getUniqueDataFieldName','toString','getName','ManualFilter','operator','hasPivotMultipleFilters','trim','cancelCollectChangeset','_bubbleUp','grandTotal','getNodeValue','isRecordErrorValue','query','excelSerialToDateTimeParts','setDataRecordCount','getNodeDisplayValue','removeField','getFullYear','prepareShowDataAs','_calculateSubtotalImp','PivotDataFieldTypeEnum','displayNameRecord','field','tupleMap','24478310fLuWGk','getValuePosition','_setValueFilterState','colDimOrder','getHeaderMapItem','getDateType','valueFilterInfo','getFieldIdByDisplayName','String','groupByDate','_excelLike','getQueryData','rangeKey','PivotLayoutTypeEnum','COl_ROOT_PATH','view','startCollectChangeset','hexCode','Invalid\x20pivot\x20record\x20selection.','setConditionFilterInfo','getPaths','buildColPathMapForCollapse','writeBottomSubtotalRows','_setDerivedNumber','max','_index','displayPaths','86880WVsDNj','PivotFilterTypeEnum','Hour','captionNotBeginsWith','Unsupported\x20pivot\x20caption\x20operator.','_tupleItemCounter','excel-like','getFieldDataType','setLayout','yearToDate','isBottom','pageView','setGroupInfo','setPaths','FilterPartial','BlankValue','percentOfParentGrandTotal','UpdateValuePosition','valueBetween','EXCEL_DATE_BEFORE_KEY','setColCount','createDataFieldFromJSON','setOther','addCollection','rowView','dispose','ValueFilter','legacy','customOrder','today','MultipleGrandTotal','getCell','setValueSize','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','counter','_buildRunningTotalBuffer','fromJSON','valueSortInfo','differenceFrom','bottomTotalSize','round','resort','item','getDataRecordCount','nextQuarter','All','buildColPathMap','format','dataFieldId','_tupleKeysByLabel','doRowBrachNode','getMinutes','varp','_readPathIntoCoordinate','M11','captionNotEqual','iterateFieldMeasure','outline','abs','daysInterval','Pivot\x20date\x20record\x20values\x20must\x20be\x20finite.','Unknown\x20filter\x20operator:\x20','addNode','Legacy','_fieldDataType','isFinite','records','_getCoordinateKey','layoutValueLeafNode','valueFieldId','useWholeDay','layoutRowNode','fieldId','collections','year','Quarter','groupInfo','nextMonth','quarter','_getRawValue','setDirty','dimension','setSubtotalType','hasBlank','getConditionFilterInfo','_calculateValueFilter','getFieldsAreaByType','colQueryInfo','start','year-month','setRowCollapseLevel','_callbacks','addValue','_updateDateItemKey','dateNotEqual','PivotSubtotalTypeEnum','captionNotEndsWith','\x20is\x20not\x20in\x20the\x20pivot\x20table.','GrandTotal','hasText','layoutCorner','clearShowDataAsCache','getNoUsedDataFieldIds','addRecord','items','SetSortInfo','getTime','top','percentRunningTotal','valueGreaterThan','level','valueNotBetween','formatMap','_prepareDerivedBuffers','dateGroupingMode','expected','log2','updateFieldSourceInfo','dimensionMap','SetFieldFormat','sum','otherDataKey','percentOfParentColumnTotal','_updateStringItemKey','captionLessThanOrEqual','_recordKeys','measuresMap','setOptions','nextYear','_min','repeatColLabels','_squareSum','shouldWriteSubtotalAtBottom','addField','BLANK_PLACEHOLDER','year-quarter','M10','PivotFilterCategory','paths','_id','writeParentRows','log10','unit','_clearSourceFilterCategory','collapseInfo','_buildParentIndexes','FilteredSortNone','PivotView','updateFieldPosition','setValueFilterState','hiddenQueryInfo','_getSortCompare','Error','fill','111zNVfSF','hasDecimal','call','Invalid\x20pivot\x20date\x20filter.','_queryData','_derivedValuesByValueField','combinePathMap','Invalid\x20pivot\x20record\x20filter.','constructor','_getParentValue','product','thisMonth','function','getAllIndexMap','fieldIds','_getModel','All\x20selection\x20cannot\x20contain\x20values.','_tupleIndexMap','rowDimOrder','_isDerivedType','second','_updateOtherItemKey','1443114ygjfdI','\x20is\x20exist\x20in\x20the\x20pivot\x20table.','getDataFieldBySourceName','isColMultiMeasure','member','showColSubtotal','_tupleItemsMap','sortChildrenByLabel','getNode','forEach','0.00%','Pivot\x20numeric\x20record\x20values\x20must\x20be\x20finite.','getDataFieldItemInfo','getDataFieldIdByDisplayName','SetFilterInfo','var','onQueryStart'];_0x1055=function(){return _0x52290b;};return _0x1055();}var Ze=class e{constructor(_0x239e76){const _0x3532cb=_0x5ad6b7;M(this,_0x3532cb(0x323),[]),M(this,_0x3532cb(0x25d),{}),M(this,_0x3532cb(0x452),{}),M(this,_0x3532cb(0x44f),void 0x0),M(this,_0x3532cb(0x147),void 0x0),M(this,_0x3532cb(0x163),void 0x0),this[_0x3532cb(0x163)]=_0x239e76;}[_0x5ad6b7(0x481)](){const _0x46fc83=_0x5ad6b7;return this[_0x46fc83(0x323)]['concat']();}['getFieldDisplayNames'](){const _0x303e65=_0x5ad6b7;return this[_0x303e65(0x481)]()[_0x303e65(0x3c7)](_0x4814df=>this[_0x303e65(0x4b8)](_0x4814df));}[_0x5ad6b7(0x267)](_0xef1d95){const _0x56c893=_0x5ad6b7;for(let _0x252f19 of this['fieldIds'])if(this[_0x56c893(0x4b8)](_0x252f19)===_0xef1d95)return _0x252f19;}[_0x5ad6b7(0x1d2)](){const _0x4304fb=_0x5ad6b7;let _0x583b01=new Map();for(let _0x18033a of this[_0x4304fb(0x323)]){let _0x20c1b2=this[_0x4304fb(0x22b)](_0x18033a);B(_0x20c1b2)&&_0x583b01[_0x4304fb(0x34a)](_0x20c1b2[_0x4304fb(0x1f5)](),_0x20c1b2['id']);}return _0x583b01;}[_0x5ad6b7(0x177)](_0x32db28){const _0x2c3c2c=_0x5ad6b7;let _0x5c498d=[];for(let _0x179eb1 of _0x32db28){let _0x14b02b=this[_0x2c3c2c(0x22b)](_0x179eb1);if(_0x14b02b&&!B(_0x14b02b))for(let _0x57a093 of this[_0x2c3c2c(0x323)]){let _0x20d052=this[_0x2c3c2c(0x22b)](_0x57a093);B(_0x20d052)&&_0x20d052['getOriginFieldId']()===_0x179eb1&&_0x5c498d[_0x2c3c2c(0x3ed)]([_0x57a093,_0x179eb1]);}}return _0x5c498d;}['hasField'](_0x3ec10d){const _0x352f33=_0x5ad6b7;return this['fieldIds'][_0x352f33(0x4da)](_0x3ec10d);}[_0x5ad6b7(0x1b9)](_0x1da834){const _0x54e22f=_0x5ad6b7;return this[_0x54e22f(0x323)][_0x54e22f(0x467)](_0x202290=>this[_0x54e22f(0x22b)](_0x202290)['name']===_0x1da834);}['setRange'](_0x4f8795){const _0x59a444=_0x5ad6b7;_0x4f8795&&(this[_0x59a444(0x44f)]={..._0x4f8795});}[_0x5ad6b7(0x300)](_0x471feb,_0x2e6b6a){const _0x6cce76=_0x5ad6b7;this[_0x6cce76(0x323)]['push'](_0x471feb);let _0x5a755b=this[_0x6cce76(0x248)](_0x2e6b6a);this[_0x6cce76(0x25d)][_0x471feb]=_0x5a755b;}['deleteField'](_0x4b3808){const _0x533101=_0x5ad6b7;let _0x265219=this[_0x533101(0x323)][_0x533101(0x358)](_0x4b3808);_0x265219!==-0x1&&(this['fieldIds'][_0x533101(0x1b1)](_0x265219,0x1),delete this[_0x533101(0x25d)][_0x4b3808]);}[_0x5ad6b7(0x4b8)](_0x4aad9b){const _0x46d33d=_0x5ad6b7;let _0x5ad945=this['displayNameRecord'][_0x4aad9b];return _0x5ad945===void 0x0?this['getFieldById'](_0x4aad9b)[_0x46d33d(0x24a)]():_0x5ad945;}['setDisplayName'](_0x3946b6,_0x344465,_0x50790a){const _0x5f376b=_0x5ad6b7;this[_0x5f376b(0x25d)][_0x3946b6]=this[_0x5f376b(0x248)](_0x344465,_0x50790a);}['getUniqueDataFieldName'](_0x5883d0,_0x2d1a83){const _0x5eae16=_0x5ad6b7;return e['getUniqueDataFieldName'](_0x5883d0,_0x2d1a83||this[_0x5eae16(0x25d)]);}static[_0x5ad6b7(0x248)](_0x4a7c3a,_0x1e250a){const _0x513d98=_0x5ad6b7;let _0x451282=new Set(Object[_0x513d98(0x44b)](_0x1e250a)),_0x24fae7=_0x4a7c3a,_0x368df5=0x1;if(!_0x451282[_0x513d98(0x3b0)](_0x24fae7))return _0x24fae7;for(;;){if(_0x24fae7=_0x4a7c3a+'('+_0x368df5+')',!_0x451282[_0x513d98(0x3b0)](_0x24fae7))return _0x24fae7;_0x368df5++;}}[_0x5ad6b7(0x173)](){const _0x4f43e3=_0x5ad6b7;let _0x1ede1e={};for(let _0x16a4ff of this[_0x4f43e3(0x323)])_0x1ede1e[_0x16a4ff]=this[_0x4f43e3(0x248)](this['getFieldById'](_0x16a4ff)[_0x4f43e3(0x24a)](),_0x1ede1e);this[_0x4f43e3(0x25d)]=_0x1ede1e;}[_0x5ad6b7(0x22b)](_0x500cb9){const _0x35a441=_0x5ad6b7;return this[_0x35a441(0x452)][_0x500cb9]?this[_0x35a441(0x452)][_0x500cb9]:this[_0x35a441(0x163)][_0x35a441(0x3f0)][_0x500cb9];}[_0x5ad6b7(0x256)](_0xd8dae4){const _0x463d4b=_0x5ad6b7;this[_0x463d4b(0x147)]=_0xd8dae4;}[_0x5ad6b7(0x2a6)](){const _0x4c0d88=_0x5ad6b7;return this[_0x4c0d88(0x147)];}[_0x5ad6b7(0x32d)](_0x2e1ba5){const _0x30e5b2=_0x5ad6b7;for(let _0x2e11b9 of this['fieldIds'])if(this[_0x30e5b2(0x22b)](_0x2e11b9)[_0x30e5b2(0x43b)]===_0x2e1ba5)return this[_0x30e5b2(0x22b)](_0x2e11b9);}[_0x5ad6b7(0x4bb)](){const _0x15bf25=_0x5ad6b7;let _0x4d03bc=this[_0x15bf25(0x323)][_0x15bf25(0x3c7)](_0xfa7c30=>this[_0x15bf25(0x22b)](_0xfa7c30)[_0x15bf25(0x4bb)]()),_0x210d2c=Object[_0x15bf25(0x3ce)](this[_0x15bf25(0x452)])[_0x15bf25(0x3c7)](_0x500e27=>this[_0x15bf25(0x452)][_0x500e27]['getFieldInfo']());return _0x4d03bc['concat'](_0x210d2c);}['toJSON'](){const _0x187895=_0x5ad6b7;let _0x135c61={};for(let _0x49e418 of this[_0x187895(0x323)])_0x135c61[_0x49e418]=this[_0x187895(0x22b)](_0x49e418)[_0x187895(0x3ba)]();return{'fields':_0x135c61,'fieldIds':this['fieldIds']['concat'](),'displayNameRecord':{...this[_0x187895(0x25d)]},'customFields':Object['keys'](this['customFields'])[_0x187895(0x3c7)](_0x5408b8=>this['customFields'][_0x5408b8][_0x187895(0x3ba)]()),'dataRecordCount':this[_0x187895(0x147)],'range':this[_0x187895(0x44f)]};}[_0x5ad6b7(0x29f)](_0x12731c){const _0x7cbfb5=_0x5ad6b7;this[_0x7cbfb5(0x323)]=_0x12731c[_0x7cbfb5(0x323)][_0x7cbfb5(0x14f)](),this[_0x7cbfb5(0x25d)]=_0x12731c[_0x7cbfb5(0x25d)]?{..._0x12731c[_0x7cbfb5(0x25d)]}:{};let _0x3054d0=_0x12731c[_0x7cbfb5(0x3b5)];for(let _0x5cd8db in _0x3054d0)this[_0x7cbfb5(0x163)][_0x7cbfb5(0x3f0)][_0x5cd8db]||(this[_0x7cbfb5(0x163)][_0x7cbfb5(0x3f0)][_0x5cd8db]=K(_0x3054d0[_0x5cd8db]));this[_0x7cbfb5(0x452)]={};for(let _0x26a2eb of _0x12731c[_0x7cbfb5(0x452)]){let _0x339949=K(_0x26a2eb);this[_0x7cbfb5(0x452)][_0x339949['id']]=_0x339949;}this[_0x7cbfb5(0x147)]=_0x12731c[_0x7cbfb5(0x147)],this[_0x7cbfb5(0x44f)]=_0x12731c['range'];}[_0x5ad6b7(0x294)](){const _0x45a145=_0x5ad6b7;this['fieldIds']=[],this[_0x45a145(0x452)]={},this[_0x45a145(0x147)]=0x0,delete this[_0x45a145(0x163)];}},Qe=class{constructor(){const _0x453286=_0x5ad6b7;M(this,_0x453286(0x3f0),{}),M(this,_0x453286(0x2c4),{});}[_0x5ad6b7(0x475)](_0x577ae1){throw Error('A\x20record\x20filter\x20evaluator\x20must\x20be\x20provided\x20by\x20the\x20host.');}[_0x5ad6b7(0x43d)](){const _0x8b702b=_0x5ad6b7;let _0x48c189=R(0x5);return this[_0x8b702b(0x3f0)][_0x48c189]?this[_0x8b702b(0x43d)]():_0x48c189;}[_0x5ad6b7(0x468)](){return null;}[_0x5ad6b7(0x2e1)](_0x457690){const _0x38021f=_0x5ad6b7;let _0x76926=this[_0x38021f(0x2c4)][_0x457690][_0x38021f(0x481)](),_0x2be28d=new Set();for(let _0x3bb1fb in this[_0x38021f(0x2c4)])if(_0x3bb1fb!==_0x457690){let _0x25e7b7=this['collections'][_0x3bb1fb]['getFieldIds']();for(let _0x4d6c9b of _0x25e7b7)_0x2be28d[_0x38021f(0x39f)](_0x4d6c9b);}return _0x76926['filter'](_0x559fae=>!_0x2be28d[_0x38021f(0x3b0)](_0x559fae));}[_0x5ad6b7(0x412)](_0x39cb9f,_0x5614ed){const _0x462306=_0x5ad6b7;this[_0x462306(0x2c4)][_0x39cb9f]=new Ze(this);let {header:_0x478409,data:_0x2a5f27}=this[_0x462306(0x17c)](_0x5614ed),_0x8c2ee5=this['collections'][_0x39cb9f],_0x5cd4ce=[];for(let _0xfbd23e of _0x478409){let _0x2ec56b=this['createDataFieldId'](),_0x5b85ec=new V(_0x2ec56b,_0xfbd23e,R(0x3));this[_0x462306(0x3f0)][_0x2ec56b]=_0x5b85ec,_0x8c2ee5[_0x462306(0x323)][_0x462306(0x3ed)](_0x2ec56b),_0x5cd4ce[_0x462306(0x3ed)](_0x5b85ec);}let _0x5a22ed=0x0;for(let _0xe807c6 of _0x2a5f27){let _0x31ffb2=0x0;for(let _0x1bfa32 of _0x5cd4ce)_0x1bfa32['addRecord'](_0xe807c6[_0x31ffb2],_0x5a22ed),_0x31ffb2++;_0x5a22ed++;}return _0x8c2ee5[_0x462306(0x256)](_0x2a5f27[_0x462306(0x3cc)]),_0x8c2ee5;}[_0x5ad6b7(0x294)](){const _0x1462ab=_0x5ad6b7;for(let _0x115872 in this[_0x1462ab(0x2c4)])this[_0x1462ab(0x2c4)][_0x115872][_0x1462ab(0x294)]();this[_0x1462ab(0x2c4)]={},this[_0x1462ab(0x3f0)]={};}[_0x5ad6b7(0x3ba)](){const _0x1ac526=_0x5ad6b7;let _0x1f1950={};for(let _0x18076a in this[_0x1ac526(0x2c4)])_0x1f1950[_0x18076a]=this[_0x1ac526(0x2c4)][_0x18076a]['toJSON']();let _0x5e85c2={};for(let _0x226dfc in this[_0x1ac526(0x3f0)])_0x5e85c2[_0x226dfc]=this['dataFields'][_0x226dfc][_0x1ac526(0x3ba)]();return{'collections':_0x1f1950,'dataFields':_0x5e85c2};}[_0x5ad6b7(0x292)](_0x5ad8cf,_0x16aa04,_0x29a2db,..._0x28e7df){const _0x3d9333=_0x5ad6b7;this[_0x3d9333(0x2c4)][_0x5ad8cf]=_0x16aa04,_0x16aa04[_0x3d9333(0x382)](_0x29a2db);}[_0x5ad6b7(0x29f)](_0x4f50df){const _0x1c0438=_0x5ad6b7;for(let _0x3b82c4 in _0x4f50df[_0x1c0438(0x2c4)]){let _0x230ec6=new Ze(this);_0x230ec6[_0x1c0438(0x29f)](_0x4f50df[_0x1c0438(0x2c4)][_0x3b82c4]),this[_0x1c0438(0x292)](_0x3b82c4,_0x230ec6,_0x230ec6[_0x1c0438(0x44f)]);}for(let _0x231d25 in _0x4f50df['dataFields'])this[_0x1c0438(0x3f0)][_0x231d25]=K(_0x4f50df[_0x1c0438(0x3f0)][_0x231d25]);}};const $e=_0x5ad6b7(0x335);function et(_0x4a66c4){return _0x4a66c4===0x2||_0x4a66c4===0x3||_0x4a66c4===0x4||_0x4a66c4===0x5||_0x4a66c4===0x6||_0x4a66c4===0x7||_0x4a66c4===0xa||_0x4a66c4===0xc||_0x4a66c4===0xd||_0x4a66c4===0xe;}var tt=class{constructor(){const _0x1d3b92=_0x5ad6b7;M(this,_0x1d3b92(0x286),new nt()),M(this,_0x1d3b92(0x293),new it()),M(this,'colView',new at()),M(this,_0x1d3b92(0x49c),new q()),M(this,_0x1d3b92(0x3a4),new q()),M(this,'formatMap',{}),M(this,_0x1d3b92(0x2c7),{});}['setGroupInfo'](_0x342c56){const _0x21d3b6=_0x5ad6b7;this[_0x21d3b6(0x2c7)]=_0x342c56;}[_0x5ad6b7(0x42b)](_0x2c3c44,_0x59b02d){const _0xcf0654=_0x5ad6b7;let _0x59e6bf={},_0x36c1f3=new Set(_0x59b02d[_0xcf0654(0x152)](_0x4ef55f=>{const _0x5be6b8=_0xcf0654;var _0x1b729c;return et((_0x1b729c=_0x4ef55f[_0x5be6b8(0x20d)])==null?void 0x0:_0x1b729c[_0x5be6b8(0x3b6)]);})[_0xcf0654(0x3c7)](_0x34d082=>_0x34d082['id']));_0x2c3c44[_0xcf0654(0x3bf)](_0x1a9727=>{const _0x24c8a9=_0xcf0654;let _0x31bd2e=_0x1a9727['getFormat']();_0x31bd2e?_0x59e6bf[_0x1a9727['id']]=_0x31bd2e:_0x36c1f3[_0x24c8a9(0x3b0)](_0x1a9727['id'])&&(_0x59e6bf[_0x1a9727['id']]=$e);});for(let _0x9c8a62 of _0x36c1f3)_0x59e6bf[_0x9c8a62]??=$e;this['formatMap']=_0x59e6bf;}[_0x5ad6b7(0x3ba)](){const _0x5b2764=_0x5ad6b7;let _0xfa9445={...this[_0x5b2764(0x2eb)]};return{'pageView':this[_0x5b2764(0x286)][_0x5b2764(0x3ba)](),'rowView':this[_0x5b2764(0x293)][_0x5b2764(0x3ba)](),'colView':this[_0x5b2764(0x3b9)][_0x5b2764(0x3ba)](),'dataView':this['dataView'][_0x5b2764(0x3ba)](),'cornerView':this[_0x5b2764(0x3a4)]['toJSON'](),'groupInfo':this[_0x5b2764(0x2c7)],'formatMap':_0xfa9445};}['formJSON'](_0xbea0fb){const _0x37a75f=_0x5ad6b7;this[_0x37a75f(0x286)][_0x37a75f(0x29f)](_0xbea0fb[_0x37a75f(0x286)]),this[_0x37a75f(0x293)]['fromJSON'](_0xbea0fb[_0x37a75f(0x293)]),this['colView'][_0x37a75f(0x29f)](_0xbea0fb[_0x37a75f(0x3b9)]),this['dataView'][_0x37a75f(0x29f)](_0xbea0fb[_0x37a75f(0x49c)]),this[_0x37a75f(0x3a4)][_0x37a75f(0x29f)](_0xbea0fb[_0x37a75f(0x3a4)]),this[_0x37a75f(0x2eb)]={..._0xbea0fb[_0x37a75f(0x2eb)]},this[_0x37a75f(0x2c7)]=_0xbea0fb[_0x37a75f(0x2c7)];}},q=class{constructor(){const _0x204f70=_0x5ad6b7;M(this,_0x204f70(0x385),0x0),M(this,'colCount',0x0),M(this,_0x204f70(0x408),{}),M(this,'info',[]),M(this,_0x204f70(0x197),-0x1),M(this,_0x204f70(0x403),-0x1);}[_0x5ad6b7(0x4dc)](){const _0x15548b=_0x5ad6b7;return this[_0x15548b(0x197)];}[_0x5ad6b7(0x37c)](){const _0x281be3=_0x5ad6b7;return this[_0x281be3(0x403)];}[_0x5ad6b7(0x44a)](_0x280642,_0x40aca6,_0x49323c){const _0x2ce91a=_0x5ad6b7;let _0x12bc09=this[_0x2ce91a(0x29a)](_0x280642,_0x40aca6);this[_0x2ce91a(0x197)]=Math['max'](this[_0x2ce91a(0x197)],_0x40aca6),this[_0x2ce91a(0x403)]=Math[_0x2ce91a(0x278)](this[_0x2ce91a(0x403)],_0x280642),_0x12bc09['v']=_0x49323c;}[_0x5ad6b7(0x499)](_0x4e2998,_0x3c9bad,_0x48447a){const _0x31b3ab=_0x5ad6b7;let _0x54bb7d=this[_0x31b3ab(0x29a)](_0x4e2998,_0x3c9bad);_0x54bb7d['s']=_0x48447a;}['setBlank'](_0x1d7942,_0x281191){let _0x375f0a=this['getCell'](_0x1d7942,_0x281191);_0x375f0a['t']=0x2;}[_0x5ad6b7(0x291)](_0x5499a9,_0x2a03ef){const _0x50a245=_0x5ad6b7;let _0x15978e=this[_0x50a245(0x29a)](_0x5499a9,_0x2a03ef);_0x15978e['t']=0x8;}[_0x5ad6b7(0x29a)](_0x2cbc65,_0x17e448){const _0x40457e=_0x5ad6b7;return this[_0x40457e(0x408)][_0x2cbc65]||(this[_0x40457e(0x408)][_0x2cbc65]={}),this['data'][_0x2cbc65][_0x17e448]||(this[_0x40457e(0x408)][_0x2cbc65][_0x17e448]={}),this[_0x40457e(0x408)][_0x2cbc65][_0x17e448];}[_0x5ad6b7(0x1ea)](_0x3e5609,_0x6a58dd){const _0x503f11=_0x5ad6b7;this[_0x503f11(0x20c)][_0x3e5609]=_0x6a58dd;}[_0x5ad6b7(0x3a1)](_0x5a405b){const _0x1f3e84=_0x5ad6b7;let _0x291117={},_0x3413e5=0x0;return this[_0x1f3e84(0x20c)][_0x1f3e84(0x334)](_0x492cdc=>{const _0x6a4920=_0x1f3e84;let _0x32e1ea=we(_0x492cdc[_0x6a4920(0x305)],_0x492cdc[_0x6a4920(0x3b8)],_0x5a405b);_0x291117[_0x32e1ea]=_0x3413e5,_0x3413e5++;}),_0x291117;}['setRowCount'](_0x58d426){const _0x3c7fc3=_0x5ad6b7;this[_0x3c7fc3(0x385)]=_0x58d426;}[_0x5ad6b7(0x28f)](_0x136a8a){const _0x3b6417=_0x5ad6b7;this[_0x3b6417(0x450)]=_0x136a8a;}[_0x5ad6b7(0x3f9)](){const _0x16b34b=_0x5ad6b7;return this[_0x16b34b(0x385)];}[_0x5ad6b7(0x19d)](){const _0x25c402=_0x5ad6b7;return this[_0x25c402(0x450)];}[_0x5ad6b7(0x405)](_0x234570,_0x412f68){const _0x1099e2=_0x5ad6b7;var _0x4fd56b;return(_0x4fd56b=this[_0x1099e2(0x408)][_0x234570])==null||(_0x4fd56b=_0x4fd56b[_0x412f68])==null?void 0x0:_0x4fd56b['v'];}[_0x5ad6b7(0x227)](_0x1fb7c1,_0x3527d6){const _0x50811d=_0x5ad6b7;var _0x1276f3;return(_0x1276f3=this[_0x50811d(0x408)][_0x1fb7c1])==null||(_0x1276f3=_0x1276f3[_0x3527d6])==null?void 0x0:_0x1276f3['s'];}[_0x5ad6b7(0x3ba)](){const _0x147d71=_0x5ad6b7;return{'data':this[_0x147d71(0x408)],'info':this[_0x147d71(0x20c)][_0x147d71(0x3c7)](_0xefaeac=>({..._0xefaeac,'paths':_0xefaeac['paths'][_0x147d71(0x14f)]()})),'rowCount':this[_0x147d71(0x385)],'colCount':this[_0x147d71(0x450)],'lastCol':this[_0x147d71(0x197)],'lastRow':this['lastRow']};}['fromJSON'](_0x155cc3){const _0x265cd0=_0x5ad6b7;this[_0x265cd0(0x408)]=_0x155cc3[_0x265cd0(0x408)],this[_0x265cd0(0x20c)]=_0x155cc3[_0x265cd0(0x20c)][_0x265cd0(0x3c7)](_0x5f28d5=>({..._0x5f28d5,'paths':_0x5f28d5[_0x265cd0(0x305)][_0x265cd0(0x14f)]()})),this[_0x265cd0(0x385)]=_0x155cc3[_0x265cd0(0x385)],this[_0x265cd0(0x450)]=_0x155cc3[_0x265cd0(0x450)],this[_0x265cd0(0x197)]=_0x155cc3[_0x265cd0(0x197)],this[_0x265cd0(0x403)]=_0x155cc3[_0x265cd0(0x403)];}},nt=class extends q{constructor(..._0x33bc61){const _0x5cba6f=_0x5ad6b7;super(..._0x33bc61),M(this,_0x5cba6f(0x495),[]),M(this,_0x5cba6f(0x197),-0x1),M(this,_0x5cba6f(0x403),-0x1);}['setPageIndex'](_0x213e6c,_0x2fca8b,_0x17feb3){let _0x183ddb=this['getCell'](_0x213e6c,_0x2fca8b);_0x183ddb['i']=_0x17feb3;}[_0x5ad6b7(0x483)](_0x12e4d6){const _0x844c99=_0x5ad6b7;this[_0x844c99(0x495)][_0x844c99(0x3ed)](_0x12e4d6);}[_0x5ad6b7(0x157)](){const _0x2548d6=_0x5ad6b7;return this[_0x2548d6(0x495)];}['setLastCol'](_0x552370){const _0x2a4c77=_0x5ad6b7;this[_0x2a4c77(0x197)]=_0x552370;}[_0x5ad6b7(0x4bc)](_0x2bcf53){const _0x13e611=_0x5ad6b7;this[_0x13e611(0x403)]=_0x2bcf53;}['getLastCol'](){const _0x31bc06=_0x5ad6b7;return this[_0x31bc06(0x197)];}[_0x5ad6b7(0x37c)](){return this['lastRow'];}[_0x5ad6b7(0x3ba)](){const _0x2f56ee=_0x5ad6b7;let _0x100787=this[_0x2f56ee(0x495)][_0x2f56ee(0x3c7)](_0x1c9ef1=>({..._0x1c9ef1}));return{...super[_0x2f56ee(0x3ba)](),'ranges':_0x100787,'lastCol':this[_0x2f56ee(0x197)],'lastRow':this[_0x2f56ee(0x403)]};}['fromJSON'](_0x49ed3a){const _0x462434=_0x5ad6b7;this[_0x462434(0x495)]=_0x49ed3a[_0x462434(0x495)][_0x462434(0x3c7)](_0x59b193=>({..._0x59b193})),this[_0x462434(0x197)]=_0x49ed3a[_0x462434(0x197)],this['lastRow']=_0x49ed3a[_0x462434(0x403)],super[_0x462434(0x29f)](_0x49ed3a);}},rt=class extends q{constructor(..._0x1c9270){const _0x5054b1=_0x5ad6b7;super(..._0x1c9270),M(this,_0x5054b1(0x162),[]);}[_0x5ad6b7(0x151)](_0x25deee,_0x2f395f){const _0x19fa78=_0x5ad6b7;this[_0x19fa78(0x162)][_0x25deee]=_0x2f395f;}[_0x5ad6b7(0x264)](_0x4bb86f){const _0x3a148a=_0x5ad6b7;return this[_0x3a148a(0x162)][_0x4bb86f];}[_0x5ad6b7(0x3ba)](){const _0x3d155a=_0x5ad6b7;let _0x1d4dd0=this[_0x3d155a(0x162)][_0x3d155a(0x3c7)](_0x8fe692=>({..._0x8fe692}));return{...super[_0x3d155a(0x3ba)](),'headerMap':_0x1d4dd0};}['fromJSON'](_0x5d57fb){const _0x3b3cb0=_0x5ad6b7;this['headerMap']=_0x5d57fb[_0x3b3cb0(0x162)][_0x3b3cb0(0x3c7)](_0x4d336e=>({..._0x4d336e})),super[_0x3b3cb0(0x29f)](_0x5d57fb);}},it=class extends rt{['getLastCol'](){const _0x2d58ed=_0x5ad6b7;return Math[_0x2d58ed(0x278)](this[_0x2d58ed(0x197)],this[_0x2d58ed(0x162)][_0x2d58ed(0x3cc)]-0x1);}},at=class extends rt{['getLastRow'](){const _0x2e44ca=_0x5ad6b7;return Math[_0x2e44ca(0x278)](this[_0x2e44ca(0x403)],this[_0x2e44ca(0x162)][_0x2e44ca(0x3cc)]-0x1);}};const ot=_0x54f8e2=>typeof _0x54f8e2=='object'&&_0x54f8e2[_0x5ad6b7(0x343)]!==void 0x0,st=_0x22e4df=>typeof _0x22e4df==_0x5ad6b7(0x4ba)&&_0x22e4df['errorType']!==void 0x0;var ct=class{static[_0x5ad6b7(0x202)](_0x10f17d,_0xb9a3df,_0x3ee027){const _0x3fcc71=_0x5ad6b7;let _0x3fee2e=new tt(),_0x426545=_0xb9a3df['rowDeep'],_0x571b79=_0xb9a3df[_0x3fcc71(0x391)],_0x17dccf=_0x10f17d['getOptions'](),_0xa0a46a=_0x17dccf[_0x3fcc71(0x36d)]||0x1,_0x4199f8=!!_0x17dccf[_0x3fcc71(0x201)],_0x39f4b1=_0x3ee027[_0x3fcc71(0x3e0)],_0x928fde=_0x3ee027[_0x3fcc71(0x266)],_0x4cfc25={};for(let _0x1acec8 of _0x928fde)_0x4cfc25[_0x1acec8[_0x3fcc71(0x2c3)]]=_0x1acec8;let _0x95e0f6=_0x10f17d['isColMultiMeasure'](),_0x1b3e18=_0x10f17d['isRowMultiMeasure'](),_0x299b6f=_0x10f17d['getValueIndex']();_0x39f4b1[_0x3fcc71(0x3cc)]>0x1&&(_0x299b6f===-0x1&&(_0x299b6f=_0x571b79),!_0x95e0f6&&!_0x1b3e18&&(_0x95e0f6=!0x0),_0x95e0f6&&(_0x299b6f=Math[_0x3fcc71(0x3ef)](_0x299b6f,_0x571b79)),_0x1b3e18&&(_0x299b6f=Math['min'](_0x299b6f,_0x426545)));let _0x3f5d4f=_0x39f4b1[_0x3fcc71(0x3cc)],_0x3d170d={},_0x3fa2b0={},_0x147154=0x0;for(let _0x5c6767 of _0x39f4b1)_0x3d170d[_0x5c6767['id']]=_0x5c6767,_0x3fa2b0[_0x5c6767['id']]=_0x147154,_0x147154++;let _0x4010b6=!!_0x10f17d['getOptions']()[_0x3fcc71(0x4d4)],_0x580c3e=!!_0x10f17d[_0x3fcc71(0x345)]()['repeatColLabels'],_0x46e5ed=_0x10f17d['getOptions']()[_0x3fcc71(0x344)]??!0x0,_0x4d0c50=_0x10f17d[_0x3fcc71(0x345)]()[_0x3fcc71(0x210)]??!0x0,_0x22127b=_0x10f17d[_0x3fcc71(0x345)]()[_0x3fcc71(0x330)]??!0x0,_0x4ac6fc=_0x10f17d[_0x3fcc71(0x345)]()[_0x3fcc71(0x3a8)]??!0x0,_0x552f12=_0x10f17d['getOptions']()[_0x3fcc71(0x488)]??0x1;return{'isColMultiMeasure':_0x95e0f6,'isRowMultiMeasure':_0x1b3e18,'valueIndex':_0x299b6f,'rowDeep':_0x426545,'colDeep':_0x571b79,'rowNodeTree':_0xb9a3df[_0x3fcc71(0x4b2)],'colNodeTree':_0xb9a3df[_0x3fcc71(0x36c)],'measuresMap':_0x3d170d,'measureIndexesMap':_0x3fa2b0,'measureCount':_0x3f5d4f,'pageWrap':_0xa0a46a,'pageOverThenDown':_0x4199f8,'queryData':_0x3ee027,'view':_0x3fee2e,'valueQueryInfo':_0x39f4b1,'colMap':{},'summaryManager':_0xb9a3df,'collapseInfo':_0x3ee027[_0x3fcc71(0x30b)],'repeatRowLabels':_0x4010b6,'repeatColLabels':_0x580c3e,'valueFilterMap':_0x4cfc25,'showRowSubtotal':_0x46e5ed,'showRowGrandTotal':_0x4d0c50,'showColSubtotal':_0x22127b,'showColGrandTotal':_0x4ac6fc,'rowSubtotalPosition':_0x552f12};}static[_0x5ad6b7(0x4d2)](_0x4bd498){const _0x579229=_0x5ad6b7;let {pageWrap:_0x208945,pageOverThenDown:_0x3be593,view:_0x1512a0}=_0x4bd498,_0x404536=_0x1512a0[_0x579229(0x286)],_0x223dd8=_0x4bd498['queryData'][_0x579229(0x349)][_0x579229(0x3c7)](({displayName:_0x439d0a,filterInfo:_0x166261,dataFieldId:_0x2fd2cc})=>{const _0x226f8a=_0x579229;var _0x364bed;let {status:_0x36fb83,value:_0x3ffae0}=Se(_0x166261);if(_0x3ffae0===void 0x0)return{'displayName':_0x439d0a,'status':_0x36fb83};let _0xb65b0f=(_0x364bed=_0x4bd498[_0x226f8a(0x3d6)][_0x226f8a(0x2f1)][_0x2fd2cc])==null?void 0x0:_0x364bed[_0x226f8a(0x25e)],_0x66ad96=_0xb65b0f==null?void 0x0:_0xb65b0f[_0x226f8a(0x178)](_0x3ffae0);return{'displayName':_0x439d0a,'status':_0x36fb83,'value':_0xb65b0f instanceof W?_0xb65b0f[_0x226f8a(0x4c3)](_0x3ffae0):_0x3ffae0,'itemType':_0x66ad96};});_0x3be593?this[_0x579229(0x3cd)](_0x223dd8,_0x404536,_0x208945):this['layoutPageDownThenOver'](_0x223dd8,_0x404536,_0x208945);}static['_setPageFilterLabel'](_0xb14a79,_0x4bb0e3,_0x1ee637,_0x44393e,_0xd2a0ac){const _0x21b1f=_0x5ad6b7;let {displayName:_0x4b5a9a,value:_0x34de2e,status:_0x4342b5,itemType:_0x23be2d}=_0xd2a0ac;_0xb14a79[_0x21b1f(0x44a)](_0x4bb0e3,_0x1ee637,_0x4b5a9a),_0xb14a79[_0x21b1f(0x44a)](_0x4bb0e3,_0x1ee637+0x1,_0x34de2e),_0xb14a79[_0x21b1f(0x499)](_0x4bb0e3,_0x1ee637+0x1,_0x4342b5),_0x23be2d===0x5?_0xb14a79[_0x21b1f(0x16c)](_0x4bb0e3,_0x1ee637+0x1):_0x23be2d===0x6&&_0x34de2e===t[_0x21b1f(0x2f4)]&&_0xb14a79['setOther'](_0x4bb0e3,_0x1ee637+0x1),_0xb14a79[_0x21b1f(0x3d7)](_0x4bb0e3,_0x1ee637,_0x44393e),_0xb14a79[_0x21b1f(0x3d7)](_0x4bb0e3,_0x1ee637+0x1,_0x44393e);}static[_0x5ad6b7(0x3cd)](_0x4dc79f,_0x5d87d1,_0x361ab5=0x1){const _0x5a49f7=_0x5ad6b7;let _0x5713bc=0x0,_0x3ab514=0x0,_0x40fcc4=0x0;for(let _0x406167 of _0x4dc79f)this['_setPageFilterLabel'](_0x5d87d1,_0x3ab514,_0x5713bc*0x3,_0x40fcc4,_0x406167),_0x5713bc++,_0x5713bc===_0x361ab5&&(_0x5713bc=0x0,_0x3ab514++),_0x40fcc4++;let _0x3a9bb6=_0x4dc79f[_0x5a49f7(0x3cc)],_0x53a3c6=Math[_0x5a49f7(0x183)](_0x3a9bb6/_0x361ab5),_0x3df2d6=_0x3a9bb6%_0x361ab5;for(let _0xb91e72=0x0;_0xb91e72<_0x361ab5;_0xb91e72++){let _0x3cb94e=_0x3df2d6>=_0xb91e72+0x1?_0x53a3c6:_0x53a3c6-0x1;_0x5d87d1[_0x5a49f7(0x483)]({'row':0x0,'col':_0xb91e72*0x3,'rowCount':_0x3cb94e,'colCount':0x2});}_0x5d87d1[_0x5a49f7(0x4bc)](_0x53a3c6-0x1);let _0x533033=_0x3a9bb6>_0x361ab5?_0x361ab5*0x3-0x2:_0x3a9bb6*0x3-0x2;_0x5d87d1[_0x5a49f7(0x1ee)](_0x533033),_0x5d87d1[_0x5a49f7(0x4e2)](_0x5d87d1[_0x5a49f7(0x403)]+0x1),_0x5d87d1[_0x5a49f7(0x28f)](_0x5d87d1[_0x5a49f7(0x197)]+0x1);}static['layoutPageDownThenOver'](_0x55bb00,_0x4f7335,_0x25c00b=0x1){const _0x3f82a9=_0x5ad6b7;let _0x197c00=0x0,_0x26df9c=0x0,_0x13f635=0x0;for(let _0x120383 of _0x55bb00)this[_0x3f82a9(0x46a)](_0x4f7335,_0x197c00,_0x26df9c*0x3,_0x13f635,_0x120383),_0x197c00++,_0x197c00===_0x25c00b&&(_0x197c00=0x0,_0x26df9c++),_0x13f635++;let _0x278d81=_0x55bb00['length'],_0x49c9d2=0x0;for(;_0x49c9d2<_0x278d81;){let _0x57a193=Math['min'](_0x25c00b,_0x278d81-_0x49c9d2);_0x4f7335['addRange']({'row':0x0,'col':_0x49c9d2*0x3/_0x25c00b,'rowCount':_0x57a193,'colCount':0x2}),_0x49c9d2+=_0x25c00b;}_0x4f7335[_0x3f82a9(0x4bc)](Math[_0x3f82a9(0x3ef)](_0x278d81,_0x25c00b)-0x1),_0x4f7335[_0x3f82a9(0x1ee)](Math[_0x3f82a9(0x183)](_0x278d81/_0x25c00b)*0x3-0x2),_0x4f7335[_0x3f82a9(0x4e2)](_0x4f7335[_0x3f82a9(0x403)]+0x1),_0x4f7335['setColCount'](_0x4f7335[_0x3f82a9(0x197)]+0x1);}static[_0x5ad6b7(0x359)](_0x89339c){const _0x6d77f3=_0x5ad6b7;this[_0x6d77f3(0x23b)](_0x89339c),this[_0x6d77f3(0x43a)](_0x89339c),_0x89339c['summaryManager'][_0x6d77f3(0x25a)](_0x89339c[_0x6d77f3(0x18a)]);}static[_0x5ad6b7(0x2df)](_0x183eaa){}static[_0x5ad6b7(0x23b)](_0x2feb96){const _0x53e799=_0x5ad6b7;let {colDeep:_0xef326c,view:_0x180e56,isColMultiMeasure:_0x5b97a3,valueIndex:_0x2591c6}=_0x2feb96,_0x31bac0=_0x2feb96[_0x53e799(0x18a)][_0x53e799(0x2d2)],_0x915ed5=_0x180e56[_0x53e799(0x3b9)],_0x2cc2e5=0x0,_0x31e047=!0x1;for(let _0x26e4f5=0x0;_0x26e4f5<_0xef326c;_0x26e4f5++){let {displayName:_0x448f91,filterInfo:_0x3e0927,sortInfo:_0x2131f6,id:_0x19b53d,dataFieldId:_0x114a91}=_0x31bac0[_0x26e4f5];_0xef326c!==0x0&&_0x5b97a3&&_0x26e4f5===_0x2591c6&&(_0x915ed5[_0x53e799(0x44a)](0x0,_0x2cc2e5,_0x53e799(0x40f)),_0x31e047=!0x0,_0x2cc2e5++),_0x915ed5[_0x53e799(0x44a)](0x0,_0x2cc2e5,_0x448f91),_0x915ed5[_0x53e799(0x151)](_0x2cc2e5+0x1,{'isValue':!0x1,'level':_0x26e4f5,'tableFieldId':_0x19b53d,'dataFieldId':_0x114a91}),_0x915ed5[_0x53e799(0x499)](0x0,_0x2cc2e5,Ce(_0x3e0927,_0x2131f6,_0x2feb96[_0x53e799(0x432)][_0x19b53d])),_0x2cc2e5++;}_0xef326c!==0x0&&!_0x31e047&&_0x5b97a3&&(_0x915ed5['setValue'](0x0,_0x2cc2e5,_0x53e799(0x40f)),_0x915ed5[_0x53e799(0x151)](_0x2cc2e5+0x1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x5ad6b7(0x29b)](_0x1f54d9){const _0x5b694=_0x5ad6b7;let {view:_0x5c4ea4}=_0x1f54d9,{rowView:_0x3044db,colView:_0x378638,dataView:_0x3b0a1b}=_0x5c4ea4;_0x3b0a1b[_0x5b694(0x4e2)](_0x3044db[_0x5b694(0x3f9)]()),_0x3b0a1b[_0x5b694(0x28f)](_0x378638[_0x5b694(0x19d)]());}static[_0x5ad6b7(0x397)](_0x436378,_0x2ad01a){const _0x1f94fe=_0x5ad6b7;let {measureCount:_0x3f0693,isColMultiMeasure:_0x56add2,valueQueryInfo:_0x8584ed}=_0x436378,_0xaf7023=_0x56add2?_0x8584ed[_0x1f94fe(0x3c7)](_0x3530e3=>_0x3530e3['id']):[],_0x18aca5=this['buildColPathMap'](_0x436378,_0x2ad01a);return _0x3f0693===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x18aca5}:(this['updateColumnSubtotal'](_0x436378,0x0,_0x2ad01a,_0xaf7023,_0x18aca5),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x56add2?_0x3f0693:0x1,'colPathMap':_0x18aca5});}static['layoutColFields'](_0x311e6f){const _0x5940ce=_0x5ad6b7;let {colNodeTree:_0x23f15f,view:_0x502034,colDeep:_0x30f29b,isColMultiMeasure:_0x8643d7,valueQueryInfo:_0x3e26ba,measureCount:_0x3c0cb1}=_0x311e6f,_0x3e34ef=_0x8643d7?_0x3e26ba[_0x5940ce(0x3c7)](_0x277453=>_0x277453['id']):[],_0x341476=_0x30f29b===0x0?this['layoutNoneColFields'](_0x311e6f,_0x23f15f):this[_0x5940ce(0x19a)](_0x311e6f,_0x23f15f,0x0,_0x3e34ef),_0x301897=_0x502034[_0x5940ce(0x3b9)];if(_0x3c0cb1===0x0&&_0x30f29b===0x0)_0x301897['setRowCount'](0x0);else{if(_0x3c0cb1!==0x0&&_0x30f29b===0x0&&_0x8643d7)_0x301897[_0x5940ce(0x4e2)](0x1);else{if(_0x3c0cb1!==0x0&&_0x30f29b===0x0)_0x301897[_0x5940ce(0x4e2)](0x0);else{let _0x48e014=_0x30f29b===0x0?0x0:0x1,_0x464203=_0x8643d7?_0x30f29b+0x1+_0x48e014:_0x30f29b+_0x48e014;_0x301897['setRowCount'](_0x464203);}}}_0x301897[_0x5940ce(0x28f)](this[_0x5940ce(0x168)](_0x341476)),_0x311e6f[_0x5940ce(0x40a)]=_0x301897[_0x5940ce(0x3a1)](_0x8643d7);}static[_0x5ad6b7(0x1f3)](_0x29758b,_0x1aaf6f){const _0x3cfb72=_0x5ad6b7;return _0x29758b[_0x3cfb72(0x1f6)]()===_0x1aaf6f;}static['getRealSize'](_0x520218){const _0x407a59=_0x5ad6b7;return _0x520218['itemSize']+_0x520218['topTotalSize']+_0x520218[_0x407a59(0x2a2)];}static[_0x5ad6b7(0x252)](_0x221d78,_0x33a7db,_0x33552f){const _0x60cd5a=_0x5ad6b7;let {queryData:_0x8573b0,summaryManager:_0x4bc542}=_0x221d78,{valueQueryInfo:_0x40c940}=_0x8573b0;return _0x4bc542[_0x60cd5a(0x185)](_0x33a7db[_0x60cd5a(0x15a)](),_0x40c940[_0x33552f]);}static[_0x5ad6b7(0x1e6)](_0x4b9950,_0x1b7c1b,_0x5783a6,_0x3cf9b5){const _0xea4682=_0x5ad6b7;let {view:_0x4795b3,isColMultiMeasure:_0x476b35,valueIndex:_0x2d8bf4,measureCount:_0x315712,measuresMap:_0x430d0f,measureIndexesMap:_0x21707b,colDeep:_0x4d2cf1}=_0x4b9950,_0x4bb8bb=_0x4795b3[_0xea4682(0x3b9)],_0x150344=_0x1b7c1b[_0xea4682(0x1f6)](),_0x1d6b8a=this[_0xea4682(0x353)](_0x476b35,_0x150344,_0x2d8bf4),_0x231199=this[_0xea4682(0x2a9)](_0x4b9950,_0x1b7c1b),_0x1a7e13=_0x1b7c1b[_0xea4682(0x35c)]();if(_0x1d6b8a){let _0x58eb21=0x0,_0x18270a=_0x4d2cf1===0x0?0x0:0x1;for(let _0x1e1439 of _0x3cf9b5){let _0x976f80=this['getRowIndexForColHeader'](_0x150344,_0x2d8bf4,_0x476b35)+_0x18270a;_0x4bb8bb[_0xea4682(0x44a)](_0x976f80,_0x5783a6+_0x58eb21,_0x430d0f[_0x1e1439][_0xea4682(0x3fb)]),_0x4bb8bb[_0xea4682(0x1ea)](_0x5783a6+_0x58eb21,{'level':_0x150344,'paths':_0x1b7c1b[_0xea4682(0x274)](),'valueIndex':_0x476b35?_0x58eb21:-0x1,'colPathMap':_0x231199,'tableFieldId':_0x1a7e13}),_0x58eb21++;}return{'itemSize':0x1*_0x315712,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x231199};}{let _0xc06022=_0x476b35?_0x21707b[_0x3cf9b5[0x0]]:-0x1;return _0x4bb8bb[_0xea4682(0x1ea)](_0x5783a6,{'level':_0x150344,'paths':_0x1b7c1b[_0xea4682(0x274)](),'valueIndex':_0xc06022,'colPathMap':_0x231199,'tableFieldId':_0x1a7e13}),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x231199};}}static[_0x5ad6b7(0x2a9)](_0x237958,_0x5960fe){const _0x423bbd=_0x5ad6b7;let _0x4efbce=[],_0x19e15e={};return _0x19e15e['']=_0x5960fe[_0x423bbd(0x15a)](),_0x5960fe[_0x423bbd(0x15d)]()||_0x5960fe['iterate'](_0x2d2119=>{const _0x3d66af=_0x423bbd;this['iterateColLeafNodeChildren'](_0x237958,_0x2d2119,_0x4efbce[_0x3d66af(0x14f)]([_0x2d2119['name']]),_0x19e15e);}),_0x19e15e;}static[_0x5ad6b7(0x497)](_0x1f44a7,_0x1ddd60,_0x5dae2f,_0x2ddd39){const _0x5ed7cc=_0x5ad6b7;let {summaryManager:_0x559991}=_0x1f44a7,_0x51217a=_0x559991[_0x5ed7cc(0x42f)](_0x5dae2f,_0x559991[_0x5ed7cc(0x241)]);_0x2ddd39[_0x51217a]=_0x1ddd60[_0x5ed7cc(0x15a)](),_0x1ddd60[_0x5ed7cc(0x1b2)]||_0x1ddd60[_0x5ed7cc(0x48d)](_0x908e9f=>{const _0x5f28f0=_0x5ed7cc;let _0x178ae7=_0x5dae2f[_0x5f28f0(0x14f)]([_0x908e9f[_0x5f28f0(0x43b)]]);this[_0x5f28f0(0x497)](_0x1f44a7,_0x908e9f,_0x178ae7,_0x2ddd39);});}static['buildColPathMapForCollapse'](_0x22f100,_0x333b77,_0x38c580){const _0x48ef52=_0x5ad6b7;if(this[_0x48ef52(0x1f3)](_0x333b77,_0x22f100[_0x48ef52(0x391)])){let _0xe6667d=this['buildColPathMap'](_0x22f100,_0x333b77);_0x38c580[_0x48ef52(0x3ed)](_0xe6667d);}else _0x333b77['iterate'](_0x570c22=>{const _0x140a01=_0x48ef52;this[_0x140a01(0x275)](_0x22f100,_0x570c22,_0x38c580);});}static['doColBranchNode'](_0x20da7a,_0x109fe9,_0x5e27f8,_0x150129){const _0x36f6f3=_0x5ad6b7;let {isColMultiMeasure:_0x10fee6,valueIndex:_0x14229e,view:_0x12a2f7,measuresMap:_0x1a3eb3,summaryManager:_0x556f39}=_0x20da7a,_0x469450=_0x109fe9[_0x36f6f3(0x1f6)](),_0x306b3c=_0x5e27f8,_0x154459={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':{}},_0x2dbe29=[],_0x23359f=this[_0x36f6f3(0x353)](_0x10fee6,_0x109fe9[_0x36f6f3(0x1f6)](),_0x14229e),_0x516e49=_0x556f39['getPathKeyWithFiledId'](_0x109fe9[_0x36f6f3(0x274)](),_0x556f39['colTableIdList']);if(_0x23359f){let _0x7148fd=0x0;for(let _0x14bf6d of _0x150129){let _0x3ad5e0=this[_0x36f6f3(0x23f)](_0x469450,_0x14229e,_0x10fee6);_0x12a2f7[_0x36f6f3(0x3b9)]['setValue'](_0x3ad5e0+0x1,_0x306b3c,_0x1a3eb3[_0x14bf6d]['displayName']),_0x109fe9[_0x36f6f3(0x48d)](_0x5c03c9=>{const _0x49d368=_0x36f6f3;let _0x2766ad=this[_0x49d368(0x19a)](_0x20da7a,_0x5c03c9,_0x306b3c,[_0x14bf6d]),{itemSize:_0x1b9952,topTotalSize:_0x3488e6,bottomTotalSize:_0x123830}=_0x2766ad;_0x154459['itemSize']+=_0x1b9952,_0x154459[_0x49d368(0x1ef)]+=_0x3488e6,_0x154459[_0x49d368(0x2a2)]+=_0x123830,_0x306b3c+=this[_0x49d368(0x168)](_0x2766ad),_0x7148fd===0x0&&_0x2dbe29['push'](_0x2766ad[_0x49d368(0x491)]);}),_0x7148fd++;}_0x154459[_0x36f6f3(0x491)]=_0x556f39[_0x36f6f3(0x428)](_0x2dbe29,_0x516e49),_0x306b3c++;}else _0x109fe9['iterate'](_0xf48743=>{const _0xdb23b6=_0x36f6f3;let _0xb05102=this[_0xdb23b6(0x19a)](_0x20da7a,_0xf48743,_0x306b3c,_0x150129),{itemSize:_0x4683e7,topTotalSize:_0x34e058,bottomTotalSize:_0x3b58fc}=_0xb05102;_0x154459[_0xdb23b6(0x1ca)]+=_0x4683e7,_0x154459[_0xdb23b6(0x1ef)]+=_0x34e058,_0x154459[_0xdb23b6(0x2a2)]+=_0x3b58fc,_0x306b3c+=this[_0xdb23b6(0x168)](_0xb05102),_0x2dbe29[_0xdb23b6(0x3ed)](_0xb05102[_0xdb23b6(0x491)]);}),_0x154459[_0x36f6f3(0x491)]=_0x556f39[_0x36f6f3(0x428)](_0x2dbe29,_0x516e49);return _0x154459;}static['shouldMultipleTotal'](_0xda4ff4,_0x191b8a,_0x317a48){return _0xda4ff4&&_0x191b8a<=_0x317a48;}static[_0x5ad6b7(0x353)](_0x5ab982,_0x3f7f53,_0x545a0d){return _0x5ab982&&_0x3f7f53===_0x545a0d;}static[_0x5ad6b7(0x23f)](_0x4043d7,_0x486cb8,_0x5c17b1){return _0x5c17b1?_0x4043d7<=_0x486cb8?_0x4043d7:_0x4043d7+0x1:_0x4043d7;}static[_0x5ad6b7(0x3e8)](_0x4e891f,_0x2106dc,_0x235b10,_0x360c82,_0x4bd657,_0x58b9d9){const _0x517a2a=_0x5ad6b7;_0x4e891f[_0x517a2a(0x44a)](_0x2106dc,_0x235b10,_0x360c82),_0x4bd657&&_0x4e891f[_0x517a2a(0x16c)](_0x2106dc,_0x235b10),_0x58b9d9&&_0x4e891f[_0x517a2a(0x291)](_0x2106dc,_0x235b10);}static[_0x5ad6b7(0x19a)](_0x30007e,_0x888909,_0x417bb9,_0xe0923d){const _0x4c51d8=_0x5ad6b7;let {view:_0x1bd632,colDeep:_0x53463e,measureCount:_0x5588fc,isColMultiMeasure:_0x2d0e94,valueIndex:_0x398881,summaryManager:_0x4159ac}=_0x30007e,_0x4d423a=_0x1bd632[_0x4c51d8(0x3b9)],_0x55e600=_0x888909['displayName'],_0x5d85b1=_0x888909[_0x4c51d8(0x3b6)]===0x5,_0x5c612a=_0x888909['type']===0x6,_0x2b968f=_0x888909[_0x4c51d8(0x3b6)]===0x4||_0x888909[_0x4c51d8(0x3b6)]===0x2?Number(_0x55e600):_0x55e600,_0x34dc96=_0x888909[_0x4c51d8(0x1f6)](),_0xc2bb51=this[_0x4c51d8(0x23f)](_0x34dc96,_0x398881,_0x2d0e94),_0x25fc86=this[_0x4c51d8(0x4ce)](_0x2d0e94,_0x34dc96,_0x398881),_0x16f015=_0x888909[_0x4c51d8(0x494)](),_0x53b6a2=this['isLeafNode'](_0x888909,_0x53463e);if(_0x34dc96!==0x0&&(this[_0x4c51d8(0x3e8)](_0x4d423a,_0xc2bb51,_0x417bb9,_0x2b968f,_0x5d85b1,_0x5c612a),_0x53b6a2||_0x4d423a[_0x4c51d8(0x499)](_0xc2bb51,_0x417bb9,_0x16f015?0xb:0xc)),_0x16f015){if(_0x53b6a2)return{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':this['buildColPathMap'](_0x30007e,_0x888909)};let _0x5252cd=[];this['buildColPathMapForCollapse'](_0x30007e,_0x888909,_0x5252cd);let _0x291ab4=_0x4159ac[_0x4c51d8(0x42f)](_0x888909[_0x4c51d8(0x274)](),_0x4159ac[_0x4c51d8(0x240)]),_0x1adabf=_0x4159ac[_0x4c51d8(0x428)](_0x5252cd,_0x291ab4),_0x2593d4=_0x34dc96!==0x0||_0x30007e['showColGrandTotal'];return _0x2593d4&&this[_0x4c51d8(0x18b)](_0x30007e,_0x417bb9,_0x888909,_0xe0923d,_0x1adabf),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x2593d4?_0x25fc86?_0x5588fc:0x1:0x0,'colPathMap':_0x1adabf};}if(_0x53b6a2)return this[_0x4c51d8(0x1e6)](_0x30007e,_0x888909,_0x417bb9,_0xe0923d);{let _0x2bdf39=this[_0x4c51d8(0x4c0)](_0x30007e,_0x888909,_0x417bb9,_0xe0923d),_0x225a55=this['getRealSize'](_0x2bdf39);if(_0x30007e[_0x4c51d8(0x2fd)]&&_0x34dc96!==0x0){for(let _0x4bb824=_0x417bb9+0x1;_0x4bb824<_0x417bb9+_0x225a55;_0x4bb824++)this[_0x4c51d8(0x3e8)](_0x4d423a,_0xc2bb51,_0x4bb824,_0x2b968f,_0x5d85b1,_0x5c612a);}return(_0x34dc96===0x0?_0x30007e['colDeep']===0x0||_0x30007e['showColGrandTotal']:_0x30007e['showColSubtotal'])&&(this['updateColumnSubtotal'](_0x30007e,_0x417bb9+_0x225a55,_0x888909,_0xe0923d,_0x2bdf39[_0x4c51d8(0x491)]),_0x25fc86?_0x2bdf39[_0x4c51d8(0x2a2)]+=_0x5588fc:_0x2bdf39[_0x4c51d8(0x2a2)]++),_0x2bdf39;}}static['getMeasureIndex'](_0x46243b,_0x5eb0c7,_0x4090af){return _0x46243b?_0x4090af[_0x5eb0c7[0x0]]:-0x1;}static['updateColumnSubtotal'](_0x226826,_0x5ea018,_0x406c5a,_0x114dec,_0x3142e9){const _0x488a37=_0x5ad6b7;let {view:_0xd2d20c,isColMultiMeasure:_0x35e5e9,valueIndex:_0x550100,measuresMap:_0x1968cd,measureIndexesMap:_0x5edbdc,colDeep:_0x4ff3b3,valueQueryInfo:_0x1549eb}=_0x226826,_0x3bd513=_0xd2d20c['colView'],_0x4cf176=_0x406c5a[_0x488a37(0x3fb)],_0x278f60=_0x406c5a[_0x488a37(0x1f6)](),_0x4f2358=this[_0x488a37(0x4ce)](_0x35e5e9,_0x278f60,_0x550100);if(_0x278f60===0x0){let _0x3244c2=_0x4ff3b3===0x0?0x0:0x1;if(_0x4f2358){let _0x753992=0x0;for(let _0x4c8da1 of _0x114dec){let {displayName:_0xff3835}=_0x1968cd[_0x4c8da1];_0x3bd513[_0x488a37(0x44a)](_0x3244c2,_0x753992+_0x5ea018,''+_0xff3835),_0x3bd513[_0x488a37(0x499)](_0x3244c2,_0x753992+_0x5ea018,0xf),_0x3bd513[_0x488a37(0x1ea)](_0x753992+_0x5ea018,{'level':_0x278f60,'paths':_0x406c5a[_0x488a37(0x274)](),'valueIndex':_0x753992,'isBottomTotal':!0x0,'colPathMap':_0x3142e9,'tableFieldId':''}),_0x753992++;}}else{_0x4ff3b3===0x0&&_0x1549eb[_0x488a37(0x3cc)]===0x1?_0x3bd513[_0x488a37(0x44a)](_0x3244c2,_0x5ea018,_0x1549eb[0x0][_0x488a37(0x3fb)]):(_0x3bd513[_0x488a37(0x44a)](_0x3244c2,_0x5ea018,''),_0x3bd513[_0x488a37(0x499)](_0x3244c2,_0x5ea018,0xe));let _0x149d63=this[_0x488a37(0x40b)](_0x35e5e9,_0x114dec,_0x5edbdc);_0x3bd513[_0x488a37(0x1ea)](_0x5ea018,{'level':_0x278f60,'paths':_0x406c5a[_0x488a37(0x274)](),'valueIndex':_0x149d63,'isBottomTotal':!0x0,'colPathMap':_0x3142e9,'tableFieldId':''});}}else{let _0x18454a=this[_0x488a37(0x23f)](_0x278f60,_0x550100,_0x35e5e9),_0x5414d9=_0x406c5a['getCollapse'](),_0x45c26b=_0x406c5a[_0x488a37(0x35c)](),_0x2a7e20=_0x406c5a[_0x488a37(0x3b6)]===0x5,_0x4247ff=_0x406c5a[_0x488a37(0x3b6)]===0x6;if(_0x5414d9&&_0x18454a++,_0x4f2358){let _0x5a75d4=0x0,_0x12715e=_0x278f60;for(let _0x1ffc27 of _0x114dec){let {displayName:_0x312e98}=_0x1968cd[_0x1ffc27],_0x4b1b2=_0x5414d9?_0x312e98:{'prefix':_0x406c5a['displayName'],'value':_0x312e98};_0x3bd513[_0x488a37(0x499)](_0x12715e,_0x5ea018+_0x5a75d4,0xd),this[_0x488a37(0x3e8)](_0x3bd513,_0x12715e,_0x5ea018+_0x5a75d4,_0x4b1b2,!_0x5414d9&&_0x2a7e20,!_0x5414d9&&_0x4247ff),_0x3bd513[_0x488a37(0x1ea)](_0x5ea018+_0x5a75d4,{'level':_0x278f60,'paths':_0x406c5a['getPaths'](),'valueIndex':_0x5a75d4,'isBottomTotal':!0x0,'colPathMap':_0x3142e9,'tableFieldId':_0x45c26b}),_0x5a75d4++;}}else{_0x5414d9||(this[_0x488a37(0x3e8)](_0x3bd513,_0x18454a,_0x5ea018,_0x4cf176,_0x2a7e20,_0x4247ff&&_0x406c5a['name']===t['otherDataKey']),_0x3bd513[_0x488a37(0x499)](_0x18454a,_0x5ea018,0xd));let _0x300e97=this[_0x488a37(0x40b)](_0x35e5e9,_0x114dec,_0x5edbdc);_0x3bd513[_0x488a37(0x1ea)](_0x5ea018,{'level':_0x278f60,'paths':_0x406c5a[_0x488a37(0x274)](),'valueIndex':_0x300e97,'isBottomTotal':!0x0,'colPathMap':_0x3142e9,'tableFieldId':_0x45c26b});}}}},lt=class extends ct{static[_0x5ad6b7(0x436)](_0x1b8ad6,_0x25677f,_0x46bd4b){const _0x2bc3aa=_0x5ad6b7;let _0x2f291f=this[_0x2bc3aa(0x202)](_0x1b8ad6,_0x25677f,_0x46bd4b);return this[_0x2bc3aa(0x4d2)](_0x2f291f),this[_0x2bc3aa(0x359)](_0x2f291f),this[_0x2bc3aa(0x3f5)](_0x2f291f),this['layoutHeadersWithoutColumnDimensions'](_0x2f291f),this[_0x2bc3aa(0x29b)](_0x2f291f),this[_0x2bc3aa(0x2df)](_0x2f291f),_0x2f291f[_0x2bc3aa(0x26f)];}static[_0x5ad6b7(0x3b4)](_0x5c34e7){const _0x349ac1=_0x5ad6b7;if(_0x5c34e7[_0x349ac1(0x391)]!==0x0)return;let _0x2c842b=_0x5c34e7[_0x349ac1(0x26f)][_0x349ac1(0x3b9)];(_0x5c34e7[_0x349ac1(0x373)]!==0x0||_0x5c34e7['measureCount']===0x1||_0x5c34e7[_0x349ac1(0x1cf)])&&(_0x5c34e7['measureCount']===0x1&&(_0x2c842b[_0x349ac1(0x44a)](0x0,0x0,_0x5c34e7[_0x349ac1(0x3e0)][0x0][_0x349ac1(0x3fb)]),_0x2c842b['setInfo'](0x0,this[_0x349ac1(0x4d1)](_0x5c34e7,_0x2c842b[_0x349ac1(0x20c)][0x0]))),_0x2c842b[_0x349ac1(0x4e2)](0x1));}static[_0x5ad6b7(0x4d1)](_0x2ae1a5,_0x42cba8){const _0x556ac6=_0x5ad6b7;let _0x34b7bb=_0x2ae1a5[_0x556ac6(0x3e0)][0x0];return{..._0x42cba8,'tableFieldId':_0x34b7bb['id'],'dataFieldId':_0x34b7bb[_0x556ac6(0x2ab)],'isValue':!0x0};}static[_0x5ad6b7(0x3b2)](_0xb1240){const _0x3b24a8=_0x5ad6b7;let {rowDeep:_0x4b2ee8,colDeep:_0x19d2a4,measureCount:_0x2ee395,isRowMultiMeasure:_0x4f4fff,isColMultiMeasure:_0x3b032d}=_0xb1240,_0x5a5f0e=_0xb1240[_0x3b24a8(0x26f)][_0x3b24a8(0x3b9)][_0x3b24a8(0x3f9)]();_0x5a5f0e===0x0&&_0x4b2ee8!==0x0&&(_0x5a5f0e=0x1);let _0x40cd43=_0xb1240[_0x3b24a8(0x26f)][_0x3b24a8(0x293)][_0x3b24a8(0x19d)]();return _0x4b2ee8===0x0&&(_0x2ee395===0x0?_0x40cd43=0x0:_0x2ee395===0x1?(_0x40cd43=_0x19d2a4===0x0?0x0:0x1,_0x5a5f0e=_0x19d2a4===0x0?0x1:_0x5a5f0e):_0x4f4fff?_0x40cd43=0x1:_0x3b032d&&(_0x40cd43=0x0)),{'rowCount':_0x40cd43,'colCount':_0x5a5f0e};}static['layoutCorner'](_0x3b3374){const _0x4b1b69=_0x5ad6b7;let {rowDeep:_0x34517c,colDeep:_0x2759ba,view:_0x42d085,measureCount:_0x44c3df,isRowMultiMeasure:_0x344886,valueIndex:_0x10835e}=_0x3b3374,_0x475d00=_0x3b3374['queryData'][_0x4b1b69(0x489)],_0x22389e=_0x3b3374['queryData']['valueQueryInfo'],_0x5c7811=_0x42d085['cornerView'],_0x42382d=_0x42d085['rowView'],{rowCount:_0x1d2dd2,colCount:_0x32c8bc}=this[_0x4b1b69(0x3b2)](_0x3b3374);_0x5c7811[_0x4b1b69(0x4e2)](_0x32c8bc),_0x5c7811[_0x4b1b69(0x28f)](_0x1d2dd2),_0x44c3df===0x1&&_0x2759ba>0x0&&_0x34517c>0x0&&_0x5c7811[_0x4b1b69(0x44a)](0x0,0x0,_0x22389e[0x0][_0x4b1b69(0x3fb)]);let _0x3653b=0x0,_0x3f62f9=!0x1,_0x203f24=_0x32c8bc-0x1;for(let _0x302c28=0x0;_0x302c28<_0x34517c;_0x302c28++){let {displayName:_0x377ded,filterInfo:_0x5a7f45,sortInfo:_0x518556,dataFieldId:_0x208d1f,id:_0x4af9cf}=_0x475d00[_0x302c28];_0x344886&&_0x302c28===_0x10835e&&(_0x5c7811[_0x4b1b69(0x44a)](_0x203f24,_0x3653b,_0x4b1b69(0x40f)),_0x3f62f9=!0x0,_0x5c7811[_0x4b1b69(0x1ea)](_0x3653b,{'paths':[],'level':-0x1,'tableFieldId':'','dataFieldId':'','valueIndex':-0x1,'isValue':!0x0}),_0x42382d[_0x4b1b69(0x151)](_0x3653b,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}),_0x3653b++),_0x5c7811[_0x4b1b69(0x44a)](_0x203f24,_0x3653b,_0x377ded),_0x42382d[_0x4b1b69(0x151)](_0x3653b,{'isValue':!0x1,'level':_0x302c28,'tableFieldId':_0x4af9cf,'dataFieldId':_0x208d1f}),_0x5c7811[_0x4b1b69(0x499)](_0x203f24,_0x3653b,Ce(_0x5a7f45,_0x518556,_0x3b3374[_0x4b1b69(0x432)][_0x4af9cf])),_0x5c7811[_0x4b1b69(0x1ea)](_0x3653b,{'paths':[],'level':_0x302c28,'tableFieldId':_0x4af9cf,'dataFieldId':_0x208d1f,'valueIndex':-0x1}),_0x3653b++;}!_0x3f62f9&&_0x344886&&(_0x5c7811['setValue'](_0x203f24,_0x3653b,_0x4b1b69(0x40f)),_0x42382d['addHeaderMapItem'](_0x3653b,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static['layoutRowFields'](_0x7d985){const _0x4e2371=_0x5ad6b7;let {rowNodeTree:_0xdafa15,view:_0x3c475c,rowDeep:_0x2ddca7,colDeep:_0x2d97cc,isRowMultiMeasure:_0x25b8bb,isColMultiMeasure:_0x154221,valueQueryInfo:_0x13f571,measureCount:_0x540227}=_0x7d985,_0x2790ed=_0x25b8bb?_0x13f571[_0x4e2371(0x3c7)](_0x5508f4=>_0x5508f4['id']):[],_0x3ae3ec=this[_0x4e2371(0x2c2)](_0x7d985,_0xdafa15,0x0,_0x2790ed),_0x38cbb5=_0x3c475c[_0x4e2371(0x293)];_0x38cbb5[_0x4e2371(0x4e2)](this[_0x4e2371(0x168)](_0x3ae3ec)),_0x2ddca7===0x0?_0x540227===0x0||_0x154221?_0x38cbb5[_0x4e2371(0x28f)](0x0):_0x25b8bb?_0x38cbb5[_0x4e2371(0x28f)](0x1):_0x38cbb5[_0x4e2371(0x28f)](_0x2d97cc===0x0?0x0:0x1):_0x38cbb5[_0x4e2371(0x28f)](_0x25b8bb?_0x2ddca7+0x1:_0x2ddca7);}static['doRowLeafNode'](_0x43d847,_0x482dda,_0x5452fe,_0x407ada){const _0x1a4ec1=_0x5ad6b7;let {view:_0x1556a3,isRowMultiMeasure:_0x373ea2,valueIndex:_0x2bafcf,measureCount:_0x10e649,measuresMap:_0x3972b8,measureIndexesMap:_0x52439d}=_0x43d847,_0xcabd2f=_0x1556a3[_0x1a4ec1(0x293)],_0x17d076=_0x482dda[_0x1a4ec1(0x1f6)](),_0x457bfe=_0x482dda[_0x1a4ec1(0x3b6)]===0x5,_0x563f64=_0x482dda[_0x1a4ec1(0x3b6)]===0x6,_0x2cb9c7=this[_0x1a4ec1(0x353)](_0x373ea2,_0x17d076,_0x2bafcf),_0x9d207b=_0x482dda[_0x1a4ec1(0x35c)]();if(_0x2cb9c7){let _0x4c1d23=0x0;for(let _0x5aa285 of _0x407ada){let _0x4f78db=this[_0x1a4ec1(0x3c3)](_0x17d076,_0x2bafcf,_0x373ea2)+0x1;_0xcabd2f[_0x1a4ec1(0x44a)](_0x5452fe+_0x4c1d23,_0x4f78db,_0x3972b8[_0x5aa285][_0x1a4ec1(0x3fb)]),_0x457bfe&&_0x2bafcf!==_0x482dda[_0x1a4ec1(0x1f6)]()&&_0xcabd2f[_0x1a4ec1(0x16c)](_0x5452fe+_0x4c1d23,_0x4f78db),_0x563f64&&_0x2bafcf!==_0x482dda[_0x1a4ec1(0x1f6)]()&&_0xcabd2f[_0x1a4ec1(0x291)](_0x5452fe+_0x4c1d23,_0x4f78db);let _0x5b14c7=_0x482dda[_0x1a4ec1(0x274)]();_0xcabd2f[_0x1a4ec1(0x1ea)](_0x5452fe+_0x4c1d23,{'paths':_0x5b14c7,'valueIndex':_0x373ea2?_0x4c1d23:-0x1,'level':_0x17d076,'tableFieldId':_0x9d207b}),this[_0x1a4ec1(0x3da)](_0x43d847,_0x482dda,_0x5452fe+_0x4c1d23),this[_0x1a4ec1(0x4b6)](_0x43d847,_0x482dda,_0x5452fe+_0x4c1d23,_0x4c1d23),_0x4c1d23++;}return{'itemSize':0x1*_0x10e649,'topTotalSize':0x0,'bottomTotalSize':0x0};}{let _0x110767=_0x373ea2?_0x52439d[_0x407ada[0x0]]:-0x1,_0x256e01=_0x482dda['getPaths']();return _0xcabd2f[_0x1a4ec1(0x1ea)](_0x5452fe,{'level':_0x17d076,'paths':_0x256e01,'valueIndex':_0x110767,'tableFieldId':_0x9d207b}),this[_0x1a4ec1(0x3da)](_0x43d847,_0x482dda,_0x5452fe),_0x17d076===0x0&&_0x10e649===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x110767}:(this[_0x1a4ec1(0x4b6)](_0x43d847,_0x482dda,_0x5452fe,_0x110767),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x110767});}}static[_0x5ad6b7(0x4b6)](_0x3ccf33,_0x1d13f2,_0x540aaf,_0x3c132c){const _0x35ba23=_0x5ad6b7;let {measureCount:_0x8e29b1}=_0x3ccf33;_0x8e29b1<=0x0||(_0x1d13f2[_0x35ba23(0x48d)](_0x18449a=>{const _0xc7d3f1=_0x35ba23;this[_0xc7d3f1(0x4ae)](_0x3ccf33,_0x18449a,_0x540aaf,_0x3c132c,[_0x18449a[_0xc7d3f1(0x43b)]]);}),this[_0x35ba23(0x2bf)](_0x3ccf33,_0x1d13f2,_0x540aaf,[],_0x3c132c));}static[_0x5ad6b7(0x4ae)](_0xf7499b,_0x3b92ea,_0x5b381e,_0x3e60d5,_0x46dca9){const _0x4e09a0=_0x5ad6b7;let _0x1b0694=_0x3b92ea['getIsLeaf']();this[_0x4e09a0(0x2bf)](_0xf7499b,_0x3b92ea,_0x5b381e,_0x46dca9,_0x3e60d5),_0x1b0694||(this[_0x4e09a0(0x175)](_0xf7499b,_0x5b381e),_0x3b92ea['iterate'](_0x15de83=>{const _0x4b3025=_0x4e09a0;let _0x5f15be=_0x46dca9['concat'](_0x15de83[_0x4b3025(0x43b)]);this['layoutValueNode'](_0xf7499b,_0x15de83,_0x5b381e,_0x3e60d5,_0x5f15be);}));}static[_0x5ad6b7(0x175)](_0x21d465,_0x55ee8d){const _0x350806=_0x5ad6b7;let {view:_0x318672,summaryManager:_0x435f28,valueQueryInfo:_0x3c7a8d,rowDeep:_0x15953e,measureCount:_0x26a3fb}=_0x21d465,_0x330e45=_0x318672[_0x350806(0x49c)],_0x497eba=_0x318672[_0x350806(0x3b9)],_0x192722=_0x318672[_0x350806(0x293)]['info'][_0x55ee8d],_0x5c3cd9=_0x192722[_0x350806(0x305)];if(!(_0x192722[_0x350806(0x2e9)]===_0x15953e||_0x26a3fb<=0x0))for(let _0x53332b=0x0;_0x53332b<_0x497eba[_0x350806(0x20c)]['length'];_0x53332b++){let _0xfa0f57=_0x497eba[_0x350806(0x20c)][_0x53332b],{colPathMap:_0x4b33bf}=_0xfa0f57,_0x47176e=_0x435f28['getPathKeyWithFiledId'](_0x5c3cd9,_0x435f28[_0x350806(0x241)]),_0x544c65=_0x4b33bf==null?void 0x0:_0x4b33bf[_0x47176e],_0x3d6ecc=this[_0x350806(0x1e0)](_0x21d465,_0x3c7a8d,_0x192722,_0xfa0f57);if(_0x544c65){let _0x3a38d5=_0x435f28[_0x350806(0x185)](_0x544c65,_0x3d6ecc);_0x3a38d5!==void 0x0&&_0x330e45['setValue'](_0x55ee8d,_0x53332b,_0x3a38d5);}}}static[_0x5ad6b7(0x1e0)](_0xa9779b,_0x19ae36,_0x54ab8a,_0x1b29dc){const _0x5039e5=_0x5ad6b7;let {isColMultiMeasure:_0x580e7e,isRowMultiMeasure:_0x51c1ad}=_0xa9779b;return _0x580e7e?_0x19ae36[_0x1b29dc[_0x5039e5(0x3b8)]]:_0x51c1ad?_0x19ae36[_0x54ab8a[_0x5039e5(0x3b8)]]:_0x19ae36[0x0];}static['layoutValueLeafNode'](_0x34b222,_0x26c0a0,_0x35256c,_0x4556ca,_0x3780b5){const _0x206ad0=_0x5ad6b7;let {view:_0x4cf347,colMap:_0x584a21,isColMultiMeasure:_0x18d88a,measureCount:_0x1c0f28}=_0x34b222,_0x33a119=_0x4cf347[_0x206ad0(0x49c)],_0x3205cd=[];if(_0x3780b5===-0x1){if(_0x18d88a){for(let _0x3f296c=0x0;_0x3f296c<_0x1c0f28;_0x3f296c++)_0x3205cd['push'](_0x3f296c);}else _0x1c0f28>0x0&&_0x3205cd['push'](0x0);}else _0x3205cd[_0x206ad0(0x3ed)](_0x3780b5);for(let _0x593987 of _0x3205cd){let _0x37ab25=_0x584a21[we(_0x4556ca,_0x593987,_0x18d88a)],_0x420d66=this['getNodeValue'](_0x34b222,_0x26c0a0,_0x593987);_0x420d66!==void 0x0&&_0x33a119[_0x206ad0(0x44a)](_0x35256c,_0x37ab25,_0x420d66);}}static[_0x5ad6b7(0x3c3)](_0x424ae7,_0xeb2d49,_0x4bcb69){return _0x4bcb69?_0x424ae7<=_0xeb2d49?_0x424ae7-0x1:_0x424ae7:_0x424ae7-0x1;}static[_0x5ad6b7(0x3da)](_0x24bf5a,_0x52b366,_0x37c0cd){const _0x34ab10=_0x5ad6b7;if(!_0x24bf5a[_0x34ab10(0x4d4)])return;let _0x427452=_0x24bf5a['view'][_0x34ab10(0x293)],_0x2db73f=_0x52b366['displayPaths'],_0x3f8a92=Math[_0x34ab10(0x3ef)](_0x52b366[_0x34ab10(0x1f6)](),_0x24bf5a[_0x34ab10(0x373)]);for(let _0x4cb618=0x1;_0x4cb618<=_0x3f8a92;_0x4cb618++){let _0x10ae52=this[_0x34ab10(0x3c3)](_0x4cb618,_0x24bf5a['valueIndex'],_0x24bf5a[_0x34ab10(0x1cf)]);_0x10ae52<0x0||_0x427452[_0x34ab10(0x44a)](_0x37c0cd,_0x10ae52,_0x2db73f[_0x4cb618-0x1]);}}static[_0x5ad6b7(0x2ad)](_0x5727f0,_0x22fdac,_0x1b2f3,_0x27e4c8){const _0x2d8f6e=_0x5ad6b7;let {isRowMultiMeasure:_0x18db9b,valueIndex:_0x304b52,view:_0x1c6df1,measuresMap:_0xc5a46d}=_0x5727f0,_0x40d111=_0x22fdac['getLevel'](),_0xec8ccf=_0x1b2f3,_0x4775c0={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0},_0x565ee6=this[_0x2d8f6e(0x353)](_0x18db9b,_0x22fdac['getLevel'](),_0x304b52),_0x50762d=_0x22fdac['type']===0x5,_0x53cd4a=_0x22fdac[_0x2d8f6e(0x3b6)]===0x6;if(_0x565ee6){for(let _0x50c463 of _0x27e4c8){let _0x5b5b32=this[_0x2d8f6e(0x3c3)](_0x40d111,_0x304b52,_0x18db9b),_0xe06f54=_0x1c6df1[_0x2d8f6e(0x293)];_0xe06f54[_0x2d8f6e(0x44a)](_0xec8ccf,_0x5b5b32+0x1,_0xc5a46d[_0x50c463][_0x2d8f6e(0x3fb)]),_0x50762d&&_0xe06f54[_0x2d8f6e(0x16c)](_0xec8ccf,_0x5b5b32+0x1),_0x53cd4a&&_0xe06f54[_0x2d8f6e(0x291)](_0xec8ccf,_0x5b5b32+0x1),_0x22fdac['iterate'](_0x15712c=>{const _0x2de10d=_0x2d8f6e;let _0x3c51c4=this[_0x2de10d(0x2c2)](_0x5727f0,_0x15712c,_0xec8ccf,[_0x50c463]),{itemSize:_0x494982,topTotalSize:_0x24cb49,bottomTotalSize:_0x36c6bc}=_0x3c51c4;_0x4775c0[_0x2de10d(0x1ca)]+=_0x494982,_0x4775c0[_0x2de10d(0x1ef)]+=_0x24cb49,_0x4775c0[_0x2de10d(0x2a2)]+=_0x36c6bc,_0xec8ccf+=this[_0x2de10d(0x168)](_0x3c51c4);});}_0xec8ccf++;}else _0x22fdac['iterate'](_0x23646d=>{const _0x2200b7=_0x2d8f6e;let _0x20313c=this['layoutRowNode'](_0x5727f0,_0x23646d,_0xec8ccf,_0x27e4c8),{itemSize:_0xcf0a0f,topTotalSize:_0x3415bd,bottomTotalSize:_0x1176ac}=_0x20313c;_0x4775c0['itemSize']+=_0xcf0a0f,_0x4775c0[_0x2200b7(0x1ef)]+=_0x3415bd,_0x4775c0[_0x2200b7(0x2a2)]+=_0x1176ac,_0xec8ccf+=this[_0x2200b7(0x168)](_0x20313c);});return _0x4775c0;}static[_0x5ad6b7(0x2c2)](_0x374bfe,_0x211dca,_0xf99cb9,_0x3b6745){const _0x558f43=_0x5ad6b7;let {view:_0x51fc47,rowDeep:_0x54b141,isRowMultiMeasure:_0x14ec32,valueIndex:_0x1b7d65,measureCount:_0x419506,colDeep:_0x4d5eb3,valueQueryInfo:_0x4304df}=_0x374bfe,_0x4ebd56=_0x51fc47[_0x558f43(0x293)],_0xbb7c8e=_0x211dca['displayName'],_0x4e04d6=_0x211dca[_0x558f43(0x1f6)](),_0x518d7e=this[_0x558f43(0x3c3)](_0x4e04d6,_0x1b7d65,_0x14ec32),_0x58e54b=_0x211dca[_0x558f43(0x494)](),_0x189bc9=this[_0x558f43(0x1f3)](_0x211dca,_0x54b141),_0x231b26=_0x211dca[_0x558f43(0x3b6)]===0x5,_0x51a277=_0x211dca[_0x558f43(0x3b6)]===0x6,_0x40ce22=_0x211dca['type']===0x4||_0x211dca[_0x558f43(0x3b6)]===0x2,_0x37ad6d=_0x4e04d6===0x0;if(!_0x37ad6d){let _0x4a3e7d=_0x40ce22?Number(_0xbb7c8e):_0xbb7c8e;_0x4ebd56[_0x558f43(0x44a)](_0xf99cb9,_0x518d7e,_0x4a3e7d),_0x231b26&&_0x4ebd56[_0x558f43(0x16c)](_0xf99cb9,_0x518d7e),_0x51a277&&_0x4ebd56[_0x558f43(0x291)](_0xf99cb9,_0x518d7e),_0x189bc9||_0x4ebd56['setStyle'](_0xf99cb9,_0x518d7e,_0x58e54b?0xb:0xc);}if(_0x189bc9){let _0x59a023=_0x37ad6d&&!_0x14ec32&&_0x54b141===0x0&&_0x4d5eb3!==0x0&&_0x4304df[_0x558f43(0x3cc)]===0x1;_0x37ad6d&&!_0x14ec32&&_0x419506>0x0&&(_0x54b141===0x0?_0x4d5eb3!==0x0&&_0x4ebd56[_0x558f43(0x44a)](_0xf99cb9,0x0,_0x4304df[0x0][_0x558f43(0x3fb)]):_0x4d5eb3!==0x0&&_0x4304df['length']===0x1?_0x4ebd56['setValue'](_0xf99cb9,0x0,_0x4304df[0x0][_0x558f43(0x3fb)]):(_0x4ebd56[_0x558f43(0x44a)](_0xf99cb9,0x0,''),_0x4ebd56[_0x558f43(0x499)](_0xf99cb9,0x0,0xe)));let _0x2d3005=this[_0x558f43(0x4d8)](_0x374bfe,_0x211dca,_0xf99cb9,_0x3b6745);return _0x59a023&&_0x4ebd56[_0x558f43(0x1ea)](_0xf99cb9,this['createSingleValueHeaderInfo'](_0x374bfe,_0x4ebd56[_0x558f43(0x20c)][_0xf99cb9])),_0x2d3005;}{let _0x74bbfe=_0xf99cb9,_0x235534={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0};_0x58e54b||(_0x235534=this[_0x558f43(0x2ad)](_0x374bfe,_0x211dca,_0xf99cb9,_0x3b6745),_0x74bbfe+=this[_0x558f43(0x168)](_0x235534));let _0x1bf17f=this[_0x558f43(0x4ce)](_0x14ec32,_0x4e04d6,_0x1b7d65);return(_0x37ad6d?_0x374bfe[_0x558f43(0x373)]===0x0||_0x374bfe[_0x558f43(0x210)]:_0x374bfe[_0x558f43(0x344)]||_0x58e54b)&&(this[_0x558f43(0x16f)](_0x374bfe,_0x74bbfe,_0x211dca,_0x3b6745),_0x1bf17f?_0x235534[_0x558f43(0x2a2)]+=_0x419506:_0x235534['bottomTotalSize']++),_0x235534;}}static['updateRowSubtotal'](_0x4d9907,_0x12d07d,_0x2bbfd0,_0xea907c){const _0x49ddcc=_0x5ad6b7;let {view:_0xc0639b,isRowMultiMeasure:_0x518426,valueIndex:_0x1daa1b,measuresMap:_0x40b881,measureIndexesMap:_0x4fdcdc,rowDeep:_0x2e2bc1,colDeep:_0x2d0767,valueQueryInfo:_0x2252a0}=_0x4d9907,_0x7855be=_0xc0639b['rowView'],_0x17e334=_0x2bbfd0[_0x49ddcc(0x1f6)](),_0x449d48=this['shouldMultipleTotal'](_0x518426,_0x17e334,_0x1daa1b);if(_0x17e334===0x0){if(_0x449d48){let _0x55675d=0x0;for(let _0x152a11 of _0xea907c){let {displayName:_0x1a49f6}=_0x40b881[_0x152a11];_0x7855be[_0x49ddcc(0x44a)](_0x55675d+_0x12d07d,0x0,''+_0x1a49f6),_0x7855be[_0x49ddcc(0x499)](_0x55675d+_0x12d07d,0x0,0xf),_0x7855be[_0x49ddcc(0x1ea)](_0x55675d+_0x12d07d,{'paths':_0x2bbfd0['getPaths'](),'valueIndex':_0x55675d,'isBottomTotal':!0x0,'level':_0x17e334,'tableFieldId':''}),this['layoutValueNodeSubtotal'](_0x4d9907,_0x12d07d+_0x55675d),_0x55675d++;}}else{_0x2e2bc1===0x0&&_0x2d0767!==0x0&&_0x2252a0[_0x49ddcc(0x3cc)]===0x1?_0x7855be[_0x49ddcc(0x44a)](_0x12d07d,0x0,_0x2252a0[0x0][_0x49ddcc(0x3fb)]):(_0x7855be[_0x49ddcc(0x44a)](_0x12d07d,0x0,''),_0x7855be['setStyle'](_0x12d07d,0x0,0xe));let _0x34f7e3=_0x518426?_0x4fdcdc[_0xea907c[0x0]]:-0x1;_0x7855be['setInfo'](_0x12d07d,{'paths':_0x2bbfd0['getPaths'](),'valueIndex':_0x34f7e3,'isBottomTotal':!0x0,'level':_0x17e334,'tableFieldId':''}),_0x2e2bc1===0x0&&_0x2d0767!==0x0&&_0x2252a0[_0x49ddcc(0x3cc)]===0x1&&_0x7855be[_0x49ddcc(0x1ea)](_0x12d07d,this[_0x49ddcc(0x4d1)](_0x4d9907,_0x7855be['info'][_0x12d07d])),this[_0x49ddcc(0x175)](_0x4d9907,_0x12d07d);}}else{let _0x396d01=this[_0x49ddcc(0x3c3)](_0x17e334,_0x1daa1b,_0x518426),_0x481277=_0x2bbfd0[_0x49ddcc(0x494)](),_0x11968c=_0x2bbfd0[_0x49ddcc(0x35c)](),_0x27a2be=_0x2bbfd0[_0x49ddcc(0x3b6)]===0x5,_0x3f0762=_0x2bbfd0[_0x49ddcc(0x3b6)]===0x6;if(_0x481277&&_0x396d01++,_0x449d48){let _0x44d421=0x0,_0x2243d2=_0x4d9907[_0x49ddcc(0x3b8)];for(let _0x1bbbe7 of _0xea907c){let {displayName:_0xec6fd}=_0x40b881[_0x1bbbe7];if(_0x481277)_0x7855be[_0x49ddcc(0x44a)](_0x12d07d+_0x44d421,_0x2243d2,_0xec6fd);else{let _0xd800e9=_0x481277?''+_0xec6fd:{'prefix':_0x2bbfd0[_0x49ddcc(0x3fb)],'value':_0xec6fd};_0x7855be[_0x49ddcc(0x44a)](_0x12d07d+_0x44d421,_0x396d01,_0xd800e9),_0x27a2be&&_0x7855be[_0x49ddcc(0x16c)](_0x12d07d+_0x44d421,_0x396d01),_0x3f0762&&_0x7855be[_0x49ddcc(0x291)](_0x12d07d+_0x44d421,_0x396d01),_0x7855be[_0x49ddcc(0x499)](_0x12d07d+_0x44d421,_0x396d01,0xd);}_0x7855be['setInfo'](_0x12d07d+_0x44d421,{'paths':_0x2bbfd0['getPaths'](),'valueIndex':_0x44d421,'isBottomTotal':!0x0,'level':_0x17e334,'tableFieldId':_0x11968c}),this[_0x49ddcc(0x175)](_0x4d9907,_0x12d07d+_0x44d421),_0x44d421++;}}else{_0x481277||(this[_0x49ddcc(0x3e8)](_0x7855be,_0x12d07d,_0x396d01,_0x2bbfd0['displayName'],_0x27a2be,_0x3f0762&&_0x2bbfd0[_0x49ddcc(0x43b)]===t[_0x49ddcc(0x2f4)]),_0x7855be['setStyle'](_0x12d07d,_0x396d01,0xd));let _0x4c8aeb=_0x518426?_0x4fdcdc[_0xea907c[0x0]]:-0x1;_0x7855be['setInfo'](_0x12d07d,{'paths':_0x2bbfd0[_0x49ddcc(0x274)](),'valueIndex':_0x4c8aeb,'isBottomTotal':!0x0,'level':_0x17e334,'tableFieldId':_0x11968c}),this[_0x49ddcc(0x175)](_0x4d9907,_0x12d07d);}}}},ut=class extends lt{static[_0x5ad6b7(0x436)](_0x10c0ce,_0x1dc6c5,_0x132bbd){const _0x1a7af9=_0x5ad6b7;let _0x5a6da4=this[_0x1a7af9(0x202)](_0x10c0ce,_0x1dc6c5,_0x132bbd);return this[_0x1a7af9(0x4d2)](_0x5a6da4),this[_0x1a7af9(0x359)](_0x5a6da4),this[_0x1a7af9(0x3f5)](_0x5a6da4),this['layoutHeadersWithoutColumnDimensions'](_0x5a6da4),this[_0x1a7af9(0x29b)](_0x5a6da4),this[_0x1a7af9(0x2df)](_0x5a6da4),_0x5a6da4[_0x1a7af9(0x26f)];}static[_0x5ad6b7(0x3f5)](_0x25276f){const _0x222fad=_0x5ad6b7;let {rowNodeTree:_0xa73f9d,view:_0x4f2b44,isRowMultiMeasure:_0x2a6c5b,valueQueryInfo:_0x433578,measureCount:_0x5ee9b9,rowDeep:_0x24a78f,showRowGrandTotal:_0x188dd6}=_0x25276f,_0x4626aa=_0x4f2b44[_0x222fad(0x293)],_0x2111b1=_0x2a6c5b?_0x433578[_0x222fad(0x3c7)](_0x36d38c=>_0x36d38c['id']):[],_0x214013=0x0;if(_0x24a78f===0x0)_0x5ee9b9>0x0&&(_0x214013=this[_0x222fad(0x146)](_0x25276f,_0xa73f9d,_0x214013,_0x2111b1));else{if(this[_0x222fad(0x14b)](_0x25276f)){for(let _0x3cee58 of _0x2111b1)_0x214013=this[_0x222fad(0x350)](_0x25276f,_0x214013,_0x3cee58),_0x214013=this[_0x222fad(0x366)](_0x25276f,_0xa73f9d,_0x214013,[_0x3cee58]);}else _0x214013=this[_0x222fad(0x366)](_0x25276f,_0xa73f9d,_0x214013,_0x2111b1);_0x188dd6&&(_0x5ee9b9>0x0||_0x24a78f>0x0)&&(_0x214013=this['writeGrandTotalRows'](_0x25276f,_0xa73f9d,_0x214013,_0x2111b1));}_0x4626aa[_0x222fad(0x4e2)](_0x214013),_0x4626aa['setColCount'](this[_0x222fad(0x420)](_0x25276f));}static[_0x5ad6b7(0x14b)](_0x1b23e7){const _0xa4158=_0x5ad6b7;return _0x1b23e7[_0xa4158(0x1cf)]&&_0x1b23e7[_0xa4158(0x3b8)]===0x0;}static[_0x5ad6b7(0x366)](_0x44fc1a,_0x21acc3,_0x371d20,_0x1cbf0){const _0x44877d=_0x5ad6b7;let _0x485164=_0x371d20;return _0x21acc3[_0x44877d(0x48d)](_0x151219=>{const _0x56595c=_0x44877d;_0x485164=this[_0x56595c(0x39d)](_0x44fc1a,_0x151219,_0x485164,_0x1cbf0);}),_0x485164;}static['layoutRowNode'](_0x1268ad,_0x20c3b8,_0x3c0b00,_0x4cc3e6){const _0x2eed78=_0x5ad6b7;return{'itemSize':this[_0x2eed78(0x39d)](_0x1268ad,_0x20c3b8,_0x3c0b00,_0x4cc3e6)-_0x3c0b00,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x5ad6b7(0x39d)](_0x2c5dde,_0x3d0da6,_0x1f3f31,_0x439aa8){const _0x3f6566=_0x5ad6b7;let _0x3689cd=this['isLeafNode'](_0x3d0da6,_0x2c5dde[_0x3f6566(0x373)]),_0x40dd65=_0x3d0da6[_0x3f6566(0x494)]();if(!_0x3689cd){if(this[_0x3f6566(0x1eb)](_0x2c5dde,_0x3d0da6)&&!_0x40dd65){let _0x579d4f=this['writeParentItemRow'](_0x2c5dde,_0x3d0da6,_0x1f3f31);if(this[_0x3f6566(0x353)](_0x2c5dde[_0x3f6566(0x1cf)],_0x3d0da6['getLevel'](),_0x2c5dde[_0x3f6566(0x3b8)])){for(let _0x3bd57c of _0x439aa8)_0x579d4f=this[_0x3f6566(0x419)](_0x2c5dde,_0x3d0da6,_0x579d4f,_0x3bd57c),_0x579d4f=this[_0x3f6566(0x366)](_0x2c5dde,_0x3d0da6,_0x579d4f,[_0x3bd57c]);}else _0x579d4f=this['layoutRowChildren'](_0x2c5dde,_0x3d0da6,_0x579d4f,_0x439aa8);return _0x2c5dde[_0x3f6566(0x344)]&&(_0x579d4f=this[_0x3f6566(0x276)](_0x2c5dde,_0x3d0da6,_0x579d4f,_0x439aa8)),_0x579d4f;}if(this[_0x3f6566(0x2ff)](_0x2c5dde)&&!_0x40dd65){let _0x1c14ed=this[_0x3f6566(0x1a3)](_0x2c5dde,_0x3d0da6,_0x1f3f31);return _0x1c14ed=this[_0x3f6566(0x366)](_0x2c5dde,_0x3d0da6,_0x1c14ed,_0x439aa8),_0x2c5dde[_0x3f6566(0x344)]&&(_0x1c14ed=this['writeBottomSubtotalRows'](_0x2c5dde,_0x3d0da6,_0x1c14ed,_0x439aa8)),_0x1c14ed;}if(this[_0x3f6566(0x353)](_0x2c5dde['isRowMultiMeasure'],_0x3d0da6[_0x3f6566(0x1f6)](),_0x2c5dde[_0x3f6566(0x3b8)])){let _0x40b268=_0x1f3f31;for(let _0x54f042 of _0x439aa8)_0x40b268=this[_0x3f6566(0x307)](_0x2c5dde,_0x3d0da6,_0x40b268,[_0x54f042]),_0x40dd65||(_0x40b268=this[_0x3f6566(0x366)](_0x2c5dde,_0x3d0da6,_0x40b268,[_0x54f042]));return _0x40b268;}let _0x1a7f4a=this[_0x3f6566(0x307)](_0x2c5dde,_0x3d0da6,_0x1f3f31,_0x439aa8);return _0x40dd65||(_0x1a7f4a=this['layoutRowChildren'](_0x2c5dde,_0x3d0da6,_0x1a7f4a,_0x439aa8)),_0x1a7f4a;}return this[_0x3f6566(0x1c7)](_0x2c5dde,_0x3d0da6,_0x1f3f31,_0x439aa8);}static['shouldWriteSubtotalAtBottom'](_0x4742f5){const _0x1c3b3c=_0x5ad6b7;return _0x4742f5[_0x1c3b3c(0x488)]===0x2;}static[_0x5ad6b7(0x1eb)](_0x2253a6,_0x4540e4){const _0x2c5f28=_0x5ad6b7;return _0x2253a6[_0x2c5f28(0x1cf)]&&_0x2253a6[_0x2c5f28(0x3b8)]>0x0&&_0x4540e4['getLevel']()<=_0x2253a6['valueIndex'];}static[_0x5ad6b7(0x1a3)](_0x422e5b,_0x967815,_0x81215d){const _0x4fbb17=_0x5ad6b7;let _0x3e35fb=this[_0x4fbb17(0x364)](_0x422e5b,_0x967815['getLevel']()),_0x353c45=this[_0x4fbb17(0x257)](_0x967815),_0x1d08cc=_0x422e5b['view']['rowView'];return _0x1d08cc[_0x4fbb17(0x44a)](_0x81215d,_0x3e35fb,_0x353c45),this[_0x4fbb17(0x1b3)](_0x1d08cc,_0x81215d,_0x3e35fb,_0x967815),_0x1d08cc[_0x4fbb17(0x499)](_0x81215d,_0x3e35fb,0xc),_0x1d08cc[_0x4fbb17(0x1ea)](_0x81215d,this[_0x4fbb17(0x4aa)](_0x967815,{'rowType':_0x4fbb17(0x2a5)})),_0x81215d+0x1;}static[_0x5ad6b7(0x419)](_0x248b00,_0x393d90,_0xcab7e,_0xb72fcf){const _0x223858=_0x5ad6b7;let _0x42f481=this['getValueLabelCol'](_0x248b00,_0x393d90['getLevel']()),_0x4c84fa=_0x248b00[_0x223858(0x231)][_0xb72fcf],_0x5e5aa5=_0x248b00['view'][_0x223858(0x293)];return _0x5e5aa5['setValue'](_0xcab7e,_0x42f481,_0x248b00[_0x223858(0x2f9)][_0xb72fcf][_0x223858(0x3fb)]),_0x5e5aa5[_0x223858(0x1ea)](_0xcab7e,this[_0x223858(0x4aa)](_0x393d90,{'valueIndex':_0x4c84fa,'isValue':!0x0,'dataFieldId':_0x248b00[_0x223858(0x2f9)][_0xb72fcf][_0x223858(0x2ab)],'rowType':_0x223858(0x414)})),_0xcab7e+0x1;}static[_0x5ad6b7(0x350)](_0x3b01d4,_0x413918,_0x4672f3){const _0x5bb2af=_0x5ad6b7;let _0x5373cd=_0x3b01d4[_0x5bb2af(0x231)][_0x4672f3],_0xaa4570=_0x3b01d4[_0x5bb2af(0x2f9)][_0x4672f3],_0x43adf9=_0x3b01d4['view'][_0x5bb2af(0x293)];return _0x43adf9[_0x5bb2af(0x44a)](_0x413918,0x0,_0xaa4570[_0x5bb2af(0x3fb)]),_0x43adf9[_0x5bb2af(0x1ea)](_0x413918,{'paths':[],'valueIndex':_0x5373cd,'level':-0x1,'tableFieldId':'','dataFieldId':_0xaa4570['dataFieldId'],'isValue':!0x0,'rowType':_0x5bb2af(0x414)}),_0x413918+0x1;}static['writeParentRows'](_0x4aa187,_0x69cfff,_0x430a8c,_0x4b4814){const _0x94447b=_0x5ad6b7;if((_0x4aa187[_0x94447b(0x344)]||_0x69cfff[_0x94447b(0x494)]())&&_0x4aa187['isRowMultiMeasure']&&_0x4b4814['length']>0x1&&this[_0x94447b(0x4ce)](_0x4aa187[_0x94447b(0x1cf)],_0x69cfff[_0x94447b(0x1f6)](),_0x4aa187[_0x94447b(0x3b8)])){let _0x5106d0=_0x430a8c;for(let _0x5d5c6a of _0x4b4814){let _0x914271=_0x4aa187['measureIndexesMap'][_0x5d5c6a];this[_0x94447b(0x388)](_0x4aa187,_0x69cfff,_0x5106d0,_0x914271,_0x4aa187['measuresMap'][_0x5d5c6a][_0x94447b(0x3fb)]),_0x5106d0++;}return _0x5106d0;}let _0x568bfe=_0x4aa187['isRowMultiMeasure']&&_0x4b4814[_0x94447b(0x3cc)]===0x1?_0x4aa187[_0x94447b(0x231)][_0x4b4814[0x0]]:-0x1,_0x52b870=_0x4aa187[_0x94447b(0x1cf)]&&_0x4b4814[_0x94447b(0x3cc)]===0x1&&_0x4aa187[_0x94447b(0x3b8)]>0x0&&_0x4aa187[_0x94447b(0x3b8)]<=_0x69cfff[_0x94447b(0x1f6)]()?_0x4aa187['measuresMap'][_0x4b4814[0x0]][_0x94447b(0x3fb)]:void 0x0;return this[_0x94447b(0x388)](_0x4aa187,_0x69cfff,_0x430a8c,_0x568bfe,_0x52b870),_0x430a8c+0x1;}static[_0x5ad6b7(0x388)](_0x3490bc,_0x53d334,_0x305742,_0x3ba874,_0x1b654e){const _0x2fe651=_0x5ad6b7;let {showRowSubtotal:_0x2a3007}=_0x3490bc,_0x368df2=_0x53d334['getCollapse'](),_0x3d82e4=_0x2a3007||_0x368df2,_0x100d36=this['getRowLabelCol'](_0x3490bc,_0x53d334['getLevel']()),_0x316cb4=_0x1b654e?this[_0x2fe651(0x3ea)](_0x3490bc,_0x53d334[_0x2fe651(0x1f6)]()):_0x100d36,_0xebca74=this[_0x2fe651(0x257)](_0x53d334),_0x28ef38=_0x3490bc[_0x2fe651(0x26f)][_0x2fe651(0x293)];_0x28ef38[_0x2fe651(0x44a)](_0x305742,_0x100d36,_0xebca74),this[_0x2fe651(0x1b3)](_0x28ef38,_0x305742,_0x100d36,_0x53d334),_0x28ef38['setStyle'](_0x305742,_0x100d36,_0x368df2?0xb:0xc),_0x1b654e&&_0x316cb4!==_0x100d36&&_0x28ef38[_0x2fe651(0x44a)](_0x305742,_0x316cb4,_0x1b654e),_0x28ef38[_0x2fe651(0x1ea)](_0x305742,this[_0x2fe651(0x4aa)](_0x53d334,{'valueIndex':_0x3ba874,'isBottomTotal':_0x3d82e4,'isSubtotal':_0x3d82e4,'isTopTotal':_0x3d82e4,'rowType':_0x3d82e4?_0x2fe651(0x223):_0x2fe651(0x2a5)})),_0x3d82e4&&this[_0x2fe651(0x175)](_0x3490bc,_0x305742);}static[_0x5ad6b7(0x276)](_0x5e0475,_0x59e135,_0x29802f,_0x5a639b){const _0xe0bc02=_0x5ad6b7;let {isRowMultiMeasure:_0x30fa5b,measuresMap:_0x7b877f}=_0x5e0475;if(this[_0xe0bc02(0x4ce)](_0x30fa5b,_0x59e135[_0xe0bc02(0x1f6)](),_0x5e0475[_0xe0bc02(0x3b8)])){let _0x164a37=_0x29802f;for(let _0x4bdfbd of _0x5a639b){let _0x5e8f55=_0x5e0475[_0xe0bc02(0x231)][_0x4bdfbd];this[_0xe0bc02(0x1fe)](_0x5e0475,_0x59e135,_0x164a37,_0x5e8f55,_0x7b877f[_0x4bdfbd][_0xe0bc02(0x3fb)]),_0x164a37++;}return _0x164a37;}return this[_0xe0bc02(0x1fe)](_0x5e0475,_0x59e135,_0x29802f,_0x30fa5b?_0x5e0475[_0xe0bc02(0x231)][_0x5a639b[0x0]]:-0x1),_0x29802f+0x1;}static['writeBottomSubtotalRow'](_0x422458,_0x28f16d,_0x436eff,_0x3f5567,_0x3ab13f){const _0x16d193=_0x5ad6b7;let _0x5dc092=this['getRowLabelCol'](_0x422458,_0x28f16d[_0x16d193(0x1f6)]()),_0x5a9ff8=this[_0x16d193(0x257)](_0x28f16d),_0x4223de=_0x422458[_0x16d193(0x26f)][_0x16d193(0x293)];_0x4223de[_0x16d193(0x44a)](_0x436eff,_0x5dc092,_0x3ab13f?{'prefix':String(_0x5a9ff8),'value':_0x3ab13f}:_0x5a9ff8),this[_0x16d193(0x1b3)](_0x4223de,_0x436eff,_0x5dc092,_0x28f16d),_0x4223de[_0x16d193(0x499)](_0x436eff,_0x5dc092,0xd),_0x4223de[_0x16d193(0x1ea)](_0x436eff,this['createRowInfo'](_0x28f16d,{'valueIndex':_0x3f5567,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':'subtotal'})),this[_0x16d193(0x175)](_0x422458,_0x436eff);}static[_0x5ad6b7(0x1c7)](_0x4259af,_0x319fee,_0x286be1,_0x3e2fbf){const _0x58d36a=_0x5ad6b7;let {isRowMultiMeasure:_0x1127fe,valueIndex:_0x299ce0,measureCount:_0x556c4e,measuresMap:_0xd4ffc,measureIndexesMap:_0x18eeef}=_0x4259af;if(this[_0x58d36a(0x353)](_0x1127fe,_0x319fee[_0x58d36a(0x1f6)](),_0x299ce0)){if(this[_0x58d36a(0x355)](_0x4259af)){let _0xa0c4a2=this[_0x58d36a(0x244)](_0x4259af,_0x319fee,_0x286be1);for(let _0x2bb16a of _0x3e2fbf){let _0x399e16=_0x18eeef[_0x2bb16a];this[_0x58d36a(0x22e)](_0x4259af,_0x319fee,_0xa0c4a2,_0x399e16,_0xd4ffc[_0x2bb16a][_0x58d36a(0x3fb)]),this['startContent'](_0x4259af,_0x319fee,_0xa0c4a2,_0x399e16),_0xa0c4a2++;}return _0xa0c4a2;}let _0x32a8f1=_0x286be1;for(let _0x3b38d8 of _0x3e2fbf){let _0x56d3cd=_0x18eeef[_0x3b38d8],_0x3284ba=this[_0x58d36a(0x364)](_0x4259af,_0x319fee[_0x58d36a(0x1f6)]()),_0x3411fd=this[_0x58d36a(0x3ea)](_0x4259af,_0x319fee[_0x58d36a(0x1f6)]()),_0x1fb42a=this['getNodeDisplayValue'](_0x319fee),_0x2d6318=_0x4259af[_0x58d36a(0x26f)]['rowView'];_0x2d6318['setValue'](_0x32a8f1,_0x3284ba,_0x1fb42a),this['applyNodeValueType'](_0x2d6318,_0x32a8f1,_0x3284ba,_0x319fee),_0x3411fd!==_0x3284ba&&_0x2d6318['setValue'](_0x32a8f1,_0x3411fd,_0xd4ffc[_0x3b38d8][_0x58d36a(0x3fb)]),_0x2d6318[_0x58d36a(0x1ea)](_0x32a8f1,this[_0x58d36a(0x4aa)](_0x319fee,{'valueIndex':_0x56d3cd,'isLeaf':!0x0,'rowType':'item'})),this[_0x58d36a(0x4b6)](_0x4259af,_0x319fee,_0x32a8f1,_0x56d3cd),_0x32a8f1++;}return _0x32a8f1;}let _0x58d1b0=_0x1127fe?_0x18eeef[_0x3e2fbf[0x0]]:-0x1,_0x185df1=this[_0x58d36a(0x364)](_0x4259af,_0x319fee['getLevel']()),_0x342531=this[_0x58d36a(0x257)](_0x319fee),_0x1791e9=_0x4259af['view']['rowView'];return _0x1791e9['setValue'](_0x286be1,_0x185df1,_0x342531),this[_0x58d36a(0x1b3)](_0x1791e9,_0x286be1,_0x185df1,_0x319fee),_0x1791e9[_0x58d36a(0x1ea)](_0x286be1,this['createRowInfo'](_0x319fee,{'valueIndex':_0x58d1b0,'isLeaf':!0x0,'rowType':_0x58d36a(0x2a5)})),_0x556c4e>0x0&&this[_0x58d36a(0x4b6)](_0x4259af,_0x319fee,_0x286be1,_0x58d1b0),_0x286be1+0x1;}static[_0x5ad6b7(0x355)](_0x348a3f){const _0x2ad9b1=_0x5ad6b7;return _0x348a3f[_0x2ad9b1(0x1cf)]&&_0x348a3f['valueIndex']>0x0;}static[_0x5ad6b7(0x244)](_0x4501d9,_0x48422c,_0x3b32ed){const _0x225f79=_0x5ad6b7;let _0x5d8a09=this[_0x225f79(0x364)](_0x4501d9,_0x48422c['getLevel']()),_0x517989=this[_0x225f79(0x257)](_0x48422c),_0x215b3d=_0x4501d9['view'][_0x225f79(0x293)];return _0x215b3d[_0x225f79(0x44a)](_0x3b32ed,_0x5d8a09,_0x517989),this[_0x225f79(0x1b3)](_0x215b3d,_0x3b32ed,_0x5d8a09,_0x48422c),_0x215b3d[_0x225f79(0x1ea)](_0x3b32ed,this['createRowInfo'](_0x48422c,{'isLeaf':!0x0,'rowType':_0x225f79(0x2a5)})),_0x3b32ed+0x1;}static[_0x5ad6b7(0x22e)](_0x52c3ab,_0x2eb38d,_0x483690,_0x298533,_0x274b68){const _0x98765d=_0x5ad6b7;let _0x58b1a=this['getValueLabelCol'](_0x52c3ab,_0x2eb38d[_0x98765d(0x1f6)]()),_0x56ee8d=_0x52c3ab[_0x98765d(0x26f)][_0x98765d(0x293)];_0x56ee8d['setValue'](_0x483690,_0x58b1a,_0x274b68),_0x56ee8d[_0x98765d(0x1ea)](_0x483690,this[_0x98765d(0x4aa)](_0x2eb38d,{'valueIndex':_0x298533,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x98765d(0x414)}));}static['writeGrandTotalRows'](_0x3e7629,_0x56995b,_0x2359d4,_0x532d2a){const _0x4213e1=_0x5ad6b7;let {isRowMultiMeasure:_0x16a870,measureCount:_0x1a028e,measuresMap:_0x50595f,measureIndexesMap:_0x389058}=_0x3e7629,_0x3d2d7d=_0x3e7629[_0x4213e1(0x26f)][_0x4213e1(0x293)];if(this[_0x4213e1(0x4ce)](_0x16a870,_0x56995b[_0x4213e1(0x1f6)](),_0x3e7629['valueIndex'])){let _0x133d1b=_0x2359d4;for(let _0x29f2d8 of _0x532d2a){let _0x119d95=_0x389058[_0x29f2d8];_0x3d2d7d[_0x4213e1(0x44a)](_0x133d1b,0x0,_0x50595f[_0x29f2d8][_0x4213e1(0x3fb)]),_0x3d2d7d[_0x4213e1(0x499)](_0x133d1b,0x0,0xf),_0x3d2d7d[_0x4213e1(0x1ea)](_0x133d1b,this[_0x4213e1(0x17a)](_0x56995b,_0x119d95)),this['layoutGrandTotalValues'](_0x3e7629,_0x56995b,_0x133d1b,_0x119d95),_0x133d1b++;}return _0x133d1b;}if(_0x3e7629['rowDeep']===0x0&&!_0x16a870&&_0x1a028e>0x0)return _0x3e7629[_0x4213e1(0x391)]!==0x0&&_0x3d2d7d[_0x4213e1(0x44a)](_0x2359d4,0x0,_0x3e7629[_0x4213e1(0x3e0)][0x0]['displayName']),_0x3d2d7d[_0x4213e1(0x1ea)](_0x2359d4,this[_0x4213e1(0x17a)](_0x56995b,-0x1)),_0x3e7629[_0x4213e1(0x391)]!==0x0&&_0x3d2d7d[_0x4213e1(0x1ea)](_0x2359d4,this['createSingleValueHeaderInfo'](_0x3e7629,_0x3d2d7d[_0x4213e1(0x20c)][_0x2359d4])),this[_0x4213e1(0x1d3)](_0x3e7629,_0x56995b,_0x2359d4,-0x1),_0x2359d4+0x1;if(_0x1a028e>0x0){let _0x2422f9=_0x16a870?_0x3e7629['measureIndexesMap'][_0x532d2a[0x0]]:-0x1;return _0x3d2d7d[_0x4213e1(0x44a)](_0x2359d4,0x0,''),_0x3d2d7d[_0x4213e1(0x499)](_0x2359d4,0x0,0xe),_0x3d2d7d[_0x4213e1(0x1ea)](_0x2359d4,this['createGrandTotalInfo'](_0x56995b,_0x2422f9)),this['layoutGrandTotalValues'](_0x3e7629,_0x56995b,_0x2359d4,_0x2422f9),_0x2359d4+0x1;}return _0x3e7629[_0x4213e1(0x373)]>0x0?(_0x3d2d7d['setValue'](_0x2359d4,0x0,''),_0x3d2d7d[_0x4213e1(0x499)](_0x2359d4,0x0,0xe),_0x3d2d7d[_0x4213e1(0x1ea)](_0x2359d4,this[_0x4213e1(0x17a)](_0x56995b,-0x1)),_0x2359d4+0x1):_0x2359d4;}static[_0x5ad6b7(0x1d3)](_0x412a8d,_0x28832b,_0x53f361,_0x2bdfdc){const _0x53c936=_0x5ad6b7;_0x412a8d[_0x53c936(0x373)]===0x0?this[_0x53c936(0x4b6)](_0x412a8d,_0x28832b,_0x53f361,_0x2bdfdc):this['layoutValueNodeSubtotal'](_0x412a8d,_0x53f361);}static[_0x5ad6b7(0x4aa)](_0x5c8af1,_0x272def){const _0x17736d=_0x5ad6b7;return{'paths':_0x5c8af1[_0x17736d(0x274)](),'valueIndex':-0x1,'level':_0x5c8af1['getLevel'](),'tableFieldId':_0x5c8af1[_0x17736d(0x35c)](),..._0x272def};}static[_0x5ad6b7(0x17a)](_0x1a6530,_0x1bf484){const _0x2adcc1=_0x5ad6b7;return{'paths':_0x1a6530[_0x2adcc1(0x274)](),'valueIndex':_0x1bf484,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x1a6530[_0x2adcc1(0x1f6)](),'tableFieldId':'','rowType':'grandTotal'};}static[_0x5ad6b7(0x420)](_0x5c6334){const _0xfe2d4e=_0x5ad6b7;return _0x5c6334[_0xfe2d4e(0x373)]===0x0?_0x5c6334[_0xfe2d4e(0x45f)]===0x0||_0x5c6334[_0xfe2d4e(0x32e)]?0x0:_0x5c6334[_0xfe2d4e(0x1cf)]||_0x5c6334[_0xfe2d4e(0x391)]!==0x0?0x1:0x0:0x1;}static[_0x5ad6b7(0x364)](_0x53c396,_0x12bc75){return 0x0;}static[_0x5ad6b7(0x3ea)](_0x282f76,_0x43a082){return 0x0;}static[_0x5ad6b7(0x257)](_0x54923b){const _0x2e5807=_0x5ad6b7;return _0x54923b[_0x2e5807(0x3b6)]===0x4||_0x54923b[_0x2e5807(0x3b6)]===0x2?Number(_0x54923b['displayName']):_0x54923b[_0x2e5807(0x3fb)];}static[_0x5ad6b7(0x1b3)](_0x449bfb,_0x61f1fb,_0x55b8c0,_0x2bf51a){const _0x2f072a=_0x5ad6b7;_0x2bf51a[_0x2f072a(0x3b6)]===0x5&&_0x449bfb[_0x2f072a(0x16c)](_0x61f1fb,_0x55b8c0),_0x2bf51a[_0x2f072a(0x3b6)]===0x6&&_0x449bfb[_0x2f072a(0x291)](_0x61f1fb,_0x55b8c0);}static['repeatRowLabelsForNode'](_0x456e0f,_0x1336b3,_0x33422a){}static[_0x5ad6b7(0x23b)](_0x1f2964){const _0x20bf8=_0x5ad6b7;if(super[_0x20bf8(0x23b)](_0x1f2964),_0x1f2964[_0x20bf8(0x391)]===0x0)return;let _0x2facc4=_0x1f2964['view'][_0x20bf8(0x3b9)],_0x15570a=_0x2facc4['getHeaderMapItem'](0x1);for(let _0x5da7ba=0x1;_0x5da7ba<=_0x2facc4[_0x20bf8(0x4dc)]();_0x5da7ba++)_0x2facc4[_0x20bf8(0x44a)](0x0,_0x5da7ba,'');_0x2facc4[_0x20bf8(0x44a)](0x0,0x0,_0x20bf8(0x230)),_0x15570a&&_0x2facc4[_0x20bf8(0x151)](0x1,{..._0x15570a,'isColumnLabel':!0x0});}static[_0x5ad6b7(0x2df)](_0x133e80){const _0x356f91=_0x5ad6b7;let {rowDeep:_0x1ec7e8,colDeep:_0x5ced76,view:_0x4f6968,measureCount:_0x5da43b}=_0x133e80,_0x22e4b9=_0x133e80[_0x356f91(0x18a)][_0x356f91(0x489)],_0x125b58=_0x133e80[_0x356f91(0x18a)][_0x356f91(0x3e0)],_0x32e59a=_0x4f6968[_0x356f91(0x3a4)],_0x501644=_0x4f6968[_0x356f91(0x3b9)],_0x503335=_0x4f6968[_0x356f91(0x293)],_0x56c344=_0x501644[_0x356f91(0x3f9)]();_0x56c344===0x0&&_0x1ec7e8!==0x0&&(_0x56c344=0x1);let _0x2c6808=_0x503335[_0x356f91(0x19d)]();if(_0x32e59a[_0x356f91(0x4e2)](_0x56c344),_0x32e59a[_0x356f91(0x28f)](_0x2c6808),_0x1ec7e8===0x0&&_0x5ced76===0x0&&_0x133e80['isRowMultiMeasure']?_0x32e59a[_0x356f91(0x44a)](0x0,0x0,_0x356f91(0x40f)):_0x1ec7e8===0x0&&_0x133e80[_0x356f91(0x1cf)]&&_0x32e59a[_0x356f91(0x44a)](_0x56c344-0x1,0x0,_0x356f91(0x40f)),_0x5da43b===0x1&&_0x5ced76>0x0&&_0x1ec7e8>0x0&&_0x32e59a[_0x356f91(0x44a)](0x0,0x0,_0x125b58[0x0][_0x356f91(0x3fb)]),_0x1ec7e8===0x0)return;let _0x2ae28e=_0x56c344-0x1,{filterInfo:_0x2adcdd,sortInfo:_0xe08581,dataFieldId:_0xfbfa08,id:_0x56cd27}=_0x22e4b9[0x0];_0x32e59a[_0x356f91(0x44a)](_0x2ae28e,0x0,'Row\x20Labels'),_0x32e59a[_0x356f91(0x499)](_0x2ae28e,0x0,Ce(_0x2adcdd,_0xe08581,_0x133e80['valueFilterMap'][_0x56cd27])),_0x32e59a[_0x356f91(0x1ea)](0x0,{'paths':[],'level':0x0,'tableFieldId':_0x56cd27,'dataFieldId':_0xfbfa08,'valueIndex':-0x1,'isRowLabel':!0x0}),_0x503335['addHeaderMapItem'](0x0,{'isValue':!0x1,'level':0x0,'tableFieldId':_0x56cd27,'dataFieldId':_0xfbfa08});}},dt=class extends lt{static['layout'](_0xf2c5fe,_0x1d9282,_0x5d1b36){const _0x3e0da4=_0x5ad6b7;let _0x5f05fa=this[_0x3e0da4(0x202)](_0xf2c5fe,_0x1d9282,_0x5d1b36);return this[_0x3e0da4(0x4d2)](_0x5f05fa),this[_0x3e0da4(0x359)](_0x5f05fa),this['layoutRowFields'](_0x5f05fa),this[_0x3e0da4(0x3b4)](_0x5f05fa),this[_0x3e0da4(0x29b)](_0x5f05fa),this['layoutCorner'](_0x5f05fa),_0x5f05fa[_0x3e0da4(0x26f)];}static['layoutRowFields'](_0x405ad7){const _0x129d52=_0x5ad6b7;let {rowNodeTree:_0x8e06a,view:_0x12861f,isRowMultiMeasure:_0x3dc6e9,valueQueryInfo:_0x3d429d,measureCount:_0x3854f1,rowDeep:_0x32fbfc,showRowGrandTotal:_0x2e12f3}=_0x405ad7,_0x2ad44a=_0x12861f['rowView'],_0x49e9ff=_0x3dc6e9?_0x3d429d['map'](_0x367a35=>_0x367a35['id']):[],_0x4c0c99=0x0;if(_0x32fbfc===0x0)_0x3854f1>0x0&&(_0x4c0c99=this['writeGrandTotalRows'](_0x405ad7,_0x8e06a,_0x4c0c99,_0x49e9ff));else{if(this[_0x129d52(0x14b)](_0x405ad7)){for(let _0x230ec4 of _0x49e9ff)_0x4c0c99=this[_0x129d52(0x350)](_0x405ad7,_0x4c0c99,_0x230ec4),_0x4c0c99=this[_0x129d52(0x366)](_0x405ad7,_0x8e06a,_0x4c0c99,[_0x230ec4]);}else _0x4c0c99=this[_0x129d52(0x366)](_0x405ad7,_0x8e06a,_0x4c0c99,_0x49e9ff);_0x2e12f3&&(_0x3854f1>0x0||_0x32fbfc>0x0)&&(_0x4c0c99=this[_0x129d52(0x146)](_0x405ad7,_0x8e06a,_0x4c0c99,_0x49e9ff));}_0x2ad44a[_0x129d52(0x4e2)](_0x4c0c99),_0x2ad44a['setColCount'](this[_0x129d52(0x420)](_0x405ad7));}static['shouldSplitRootByValues'](_0xbb9366){const _0x250d00=_0x5ad6b7;return _0xbb9366[_0x250d00(0x1cf)]&&_0xbb9366['valueIndex']===0x0;}static['layoutRowChildren'](_0x56df2b,_0x35d392,_0x11b7ed,_0x2acf00){const _0x198644=_0x5ad6b7;let _0x4e4d78=_0x11b7ed;return _0x35d392[_0x198644(0x48d)](_0x47e92e=>{_0x4e4d78=this['layoutRowNodeToCursor'](_0x56df2b,_0x47e92e,_0x4e4d78,_0x2acf00);}),_0x4e4d78;}static[_0x5ad6b7(0x2c2)](_0x55f6df,_0x158b0c,_0x5655e9,_0x45e04a){return{'itemSize':this['layoutRowNodeToCursor'](_0x55f6df,_0x158b0c,_0x5655e9,_0x45e04a)-_0x5655e9,'topTotalSize':0x0,'bottomTotalSize':0x0};}static['layoutRowNodeToCursor'](_0x86d832,_0x52dc6f,_0x255142,_0x52710e){const _0xe873ee=_0x5ad6b7;let _0x55e37b=this[_0xe873ee(0x1f3)](_0x52dc6f,_0x86d832['rowDeep']),_0x3b78d4=_0x52dc6f[_0xe873ee(0x494)]();if(!_0x55e37b){if(this['shouldWriteMultiValueSubtotalAtBottom'](_0x86d832,_0x52dc6f)&&!_0x3b78d4){let _0x3b488a=this['writeParentItemRow'](_0x86d832,_0x52dc6f,_0x255142);if(this[_0xe873ee(0x353)](_0x86d832[_0xe873ee(0x1cf)],_0x52dc6f[_0xe873ee(0x1f6)](),_0x86d832[_0xe873ee(0x3b8)])){for(let _0x1869ff of _0x52710e)_0x3b488a=this[_0xe873ee(0x419)](_0x86d832,_0x52dc6f,_0x3b488a,_0x1869ff),_0x3b488a=this[_0xe873ee(0x366)](_0x86d832,_0x52dc6f,_0x3b488a,[_0x1869ff]);}else _0x3b488a=this['layoutRowChildren'](_0x86d832,_0x52dc6f,_0x3b488a,_0x52710e);return _0x86d832[_0xe873ee(0x344)]&&(_0x3b488a=this['writeBottomSubtotalRows'](_0x86d832,_0x52dc6f,_0x3b488a,_0x52710e)),_0x3b488a;}if(this['shouldWriteSubtotalAtBottom'](_0x86d832)&&!_0x3b78d4){let _0x374507=this[_0xe873ee(0x1a3)](_0x86d832,_0x52dc6f,_0x255142);return _0x374507=this[_0xe873ee(0x366)](_0x86d832,_0x52dc6f,_0x374507,_0x52710e),_0x86d832['showRowSubtotal']&&(_0x374507=this[_0xe873ee(0x276)](_0x86d832,_0x52dc6f,_0x374507,_0x52710e)),_0x374507;}if(this[_0xe873ee(0x353)](_0x86d832[_0xe873ee(0x1cf)],_0x52dc6f[_0xe873ee(0x1f6)](),_0x86d832[_0xe873ee(0x3b8)])){let _0x46d885=_0x255142;for(let _0x580cfd of _0x52710e)_0x46d885=this[_0xe873ee(0x307)](_0x86d832,_0x52dc6f,_0x46d885,[_0x580cfd]),_0x3b78d4||(_0x46d885=this['layoutRowChildren'](_0x86d832,_0x52dc6f,_0x46d885,[_0x580cfd]));return _0x46d885;}let _0x575712=this[_0xe873ee(0x307)](_0x86d832,_0x52dc6f,_0x255142,_0x52710e);return _0x3b78d4||(_0x575712=this['layoutRowChildren'](_0x86d832,_0x52dc6f,_0x575712,_0x52710e)),_0x575712;}return this[_0xe873ee(0x1c7)](_0x86d832,_0x52dc6f,_0x255142,_0x52710e);}static[_0x5ad6b7(0x2ff)](_0x13aaa0){return _0x13aaa0['rowSubtotalPosition']===0x2;}static[_0x5ad6b7(0x1eb)](_0x4a3dad,_0x2e713c){const _0x36a6e1=_0x5ad6b7;return _0x4a3dad[_0x36a6e1(0x1cf)]&&_0x4a3dad[_0x36a6e1(0x3b8)]>0x0&&_0x2e713c[_0x36a6e1(0x1f6)]()<=_0x4a3dad[_0x36a6e1(0x3b8)];}static['writeParentItemRow'](_0x5f29ee,_0x2c3635,_0x146a91){const _0x5e0331=_0x5ad6b7;let _0x5732af=this[_0x5e0331(0x364)](_0x5f29ee,_0x2c3635[_0x5e0331(0x1f6)]()),_0x74ee2d=this[_0x5e0331(0x257)](_0x2c3635),_0x1bf002=_0x5f29ee[_0x5e0331(0x26f)]['rowView'];return _0x1bf002[_0x5e0331(0x44a)](_0x146a91,_0x5732af,_0x74ee2d),this[_0x5e0331(0x1b3)](_0x1bf002,_0x146a91,_0x5732af,_0x2c3635),this['repeatRowLabelsForNode'](_0x5f29ee,_0x2c3635,_0x146a91),_0x1bf002['setStyle'](_0x146a91,_0x5732af,0xc),_0x1bf002[_0x5e0331(0x1ea)](_0x146a91,this[_0x5e0331(0x4aa)](_0x2c3635,{'rowType':_0x5e0331(0x2a5)})),_0x146a91+0x1;}static['writeValueHeaderRow'](_0x55c6e7,_0xa8aa34,_0x4bd7c3,_0x12b0b5){const _0x1fd66e=_0x5ad6b7;let _0x11384c=this['getValueLabelCol'](_0x55c6e7,_0xa8aa34[_0x1fd66e(0x1f6)]()),_0x2bfa99=_0x55c6e7[_0x1fd66e(0x231)][_0x12b0b5],_0x3ad6a8=_0x55c6e7['view']['rowView'];return this[_0x1fd66e(0x3da)](_0x55c6e7,_0xa8aa34,_0x4bd7c3),_0x3ad6a8['setValue'](_0x4bd7c3,_0x11384c,_0x55c6e7['measuresMap'][_0x12b0b5][_0x1fd66e(0x3fb)]),_0x3ad6a8['setInfo'](_0x4bd7c3,this['createRowInfo'](_0xa8aa34,{'valueIndex':_0x2bfa99,'isValue':!0x0,'dataFieldId':_0x55c6e7['measuresMap'][_0x12b0b5][_0x1fd66e(0x2ab)],'rowType':_0x1fd66e(0x414)})),_0x4bd7c3+0x1;}static[_0x5ad6b7(0x350)](_0x466b4a,_0xb5aea,_0xf4cd43){const _0x3be2fb=_0x5ad6b7;let _0x2dd473=_0x466b4a[_0x3be2fb(0x231)][_0xf4cd43],_0x4f0355=_0x466b4a['measuresMap'][_0xf4cd43],_0x360ce6=_0x466b4a[_0x3be2fb(0x26f)][_0x3be2fb(0x293)];return _0x360ce6['setValue'](_0xb5aea,0x0,_0x4f0355[_0x3be2fb(0x3fb)]),_0x360ce6[_0x3be2fb(0x1ea)](_0xb5aea,{'paths':[],'valueIndex':_0x2dd473,'level':-0x1,'tableFieldId':'','dataFieldId':_0x4f0355[_0x3be2fb(0x2ab)],'isValue':!0x0,'rowType':_0x3be2fb(0x414)}),_0xb5aea+0x1;}static[_0x5ad6b7(0x307)](_0x56d9da,_0x4ab58b,_0x20d60c,_0x598133){const _0x2b46ab=_0x5ad6b7;if((_0x56d9da[_0x2b46ab(0x344)]||_0x4ab58b[_0x2b46ab(0x494)]())&&_0x56d9da[_0x2b46ab(0x1cf)]&&_0x598133[_0x2b46ab(0x3cc)]>0x1&&this[_0x2b46ab(0x4ce)](_0x56d9da[_0x2b46ab(0x1cf)],_0x4ab58b[_0x2b46ab(0x1f6)](),_0x56d9da[_0x2b46ab(0x3b8)])){let _0x28f5d5=_0x20d60c;for(let _0x47698b of _0x598133){let _0x30f4bd=_0x56d9da[_0x2b46ab(0x231)][_0x47698b];this[_0x2b46ab(0x388)](_0x56d9da,_0x4ab58b,_0x28f5d5,_0x30f4bd,_0x56d9da[_0x2b46ab(0x2f9)][_0x47698b][_0x2b46ab(0x3fb)]),_0x28f5d5++;}return _0x28f5d5;}let _0x219088=_0x56d9da['isRowMultiMeasure']&&_0x598133['length']===0x1?_0x56d9da['measureIndexesMap'][_0x598133[0x0]]:-0x1,_0x22396f=_0x56d9da[_0x2b46ab(0x1cf)]&&_0x598133[_0x2b46ab(0x3cc)]===0x1&&_0x56d9da[_0x2b46ab(0x3b8)]>0x0&&_0x56d9da[_0x2b46ab(0x3b8)]===_0x4ab58b[_0x2b46ab(0x1f6)]()?_0x56d9da[_0x2b46ab(0x2f9)][_0x598133[0x0]]['displayName']:void 0x0;return this['writeParentRow'](_0x56d9da,_0x4ab58b,_0x20d60c,_0x219088,_0x22396f),_0x20d60c+0x1;}static[_0x5ad6b7(0x388)](_0x3ac657,_0x2f9140,_0x45f246,_0x37215d,_0x44e308){const _0x399b0a=_0x5ad6b7;let {showRowSubtotal:_0x3ba55f}=_0x3ac657,_0x1af8b=_0x2f9140['getCollapse'](),_0x49b004=_0x3ba55f||_0x1af8b,_0x42e031=this[_0x399b0a(0x364)](_0x3ac657,_0x2f9140[_0x399b0a(0x1f6)]()),_0x301898=_0x44e308?this[_0x399b0a(0x3ea)](_0x3ac657,_0x2f9140['getLevel']()):_0x42e031,_0x33a851=this[_0x399b0a(0x257)](_0x2f9140),_0x5e849f=_0x3ac657[_0x399b0a(0x26f)][_0x399b0a(0x293)];_0x5e849f[_0x399b0a(0x44a)](_0x45f246,_0x42e031,_0x33a851),this[_0x399b0a(0x1b3)](_0x5e849f,_0x45f246,_0x42e031,_0x2f9140),_0x5e849f['setStyle'](_0x45f246,_0x42e031,_0x1af8b?0xb:0xc),this[_0x399b0a(0x3da)](_0x3ac657,_0x2f9140,_0x45f246),_0x44e308&&_0x5e849f[_0x399b0a(0x44a)](_0x45f246,_0x301898,_0x44e308),_0x5e849f[_0x399b0a(0x1ea)](_0x45f246,this[_0x399b0a(0x4aa)](_0x2f9140,{'valueIndex':_0x37215d,'isBottomTotal':_0x49b004,'isSubtotal':_0x49b004,'isTopTotal':_0x49b004,'rowType':_0x49b004?_0x399b0a(0x223):'item'})),_0x49b004&&this[_0x399b0a(0x175)](_0x3ac657,_0x45f246);}static[_0x5ad6b7(0x276)](_0x2ba0f4,_0xbc40d,_0x43177b,_0xc56d29){const _0x1fcee1=_0x5ad6b7;let {isRowMultiMeasure:_0x2a4f64,measuresMap:_0x452f9c}=_0x2ba0f4;if(this[_0x1fcee1(0x4ce)](_0x2a4f64,_0xbc40d[_0x1fcee1(0x1f6)](),_0x2ba0f4[_0x1fcee1(0x3b8)])){let _0x25891a=_0x43177b;for(let _0x29c123 of _0xc56d29){let _0x55c730=_0x2ba0f4[_0x1fcee1(0x231)][_0x29c123];this[_0x1fcee1(0x1fe)](_0x2ba0f4,_0xbc40d,_0x25891a,_0x55c730,_0x452f9c[_0x29c123][_0x1fcee1(0x3fb)]),_0x25891a++;}return _0x25891a;}return this[_0x1fcee1(0x1fe)](_0x2ba0f4,_0xbc40d,_0x43177b,_0x2a4f64?_0x2ba0f4['measureIndexesMap'][_0xc56d29[0x0]]:-0x1),_0x43177b+0x1;}static[_0x5ad6b7(0x1fe)](_0x1e5c68,_0xda76dc,_0x328f06,_0x5a8da5,_0x6eafbd){const _0x350147=_0x5ad6b7;let _0x2157ff=this[_0x350147(0x364)](_0x1e5c68,_0xda76dc[_0x350147(0x1f6)]()),_0x2844ba=this[_0x350147(0x257)](_0xda76dc),_0x57d119=_0x1e5c68[_0x350147(0x26f)][_0x350147(0x293)];_0x57d119[_0x350147(0x44a)](_0x328f06,_0x2157ff,_0x6eafbd?{'prefix':String(_0x2844ba),'value':_0x6eafbd}:_0x2844ba),this[_0x350147(0x1b3)](_0x57d119,_0x328f06,_0x2157ff,_0xda76dc),_0x57d119['setStyle'](_0x328f06,_0x2157ff,0xd),this[_0x350147(0x3da)](_0x1e5c68,_0xda76dc,_0x328f06),_0x57d119[_0x350147(0x44a)](_0x328f06,_0x2157ff,_0x6eafbd?{'prefix':String(_0x2844ba),'value':_0x6eafbd}:_0x2844ba),_0x57d119['setInfo'](_0x328f06,this[_0x350147(0x4aa)](_0xda76dc,{'valueIndex':_0x5a8da5,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0x350147(0x223)})),this[_0x350147(0x175)](_0x1e5c68,_0x328f06);}static['writeLeafRows'](_0x1603a5,_0x56eace,_0x1a2d37,_0xabfd11){const _0x324168=_0x5ad6b7;let {isRowMultiMeasure:_0x38223a,valueIndex:_0x2cd6ab,measureCount:_0x45532c,measuresMap:_0x4258e6,measureIndexesMap:_0x598975}=_0x1603a5;if(this[_0x324168(0x353)](_0x38223a,_0x56eace[_0x324168(0x1f6)](),_0x2cd6ab)){if(this[_0x324168(0x355)](_0x1603a5)){let _0x38052b=this[_0x324168(0x244)](_0x1603a5,_0x56eace,_0x1a2d37);for(let _0x2eac91 of _0xabfd11){let _0x41d54a=_0x598975[_0x2eac91];this['writeLeafValueRow'](_0x1603a5,_0x56eace,_0x38052b,_0x41d54a,_0x4258e6[_0x2eac91][_0x324168(0x3fb)]),this['startContent'](_0x1603a5,_0x56eace,_0x38052b,_0x41d54a),_0x38052b++;}return _0x38052b;}let _0x12b04a=_0x1a2d37;for(let _0x27b2e7 of _0xabfd11){let _0x17f5f3=_0x598975[_0x27b2e7],_0x35fac2=this[_0x324168(0x364)](_0x1603a5,_0x56eace['getLevel']()),_0x2b0ae2=this[_0x324168(0x3ea)](_0x1603a5,_0x56eace[_0x324168(0x1f6)]()),_0x21bd54=this['getNodeDisplayValue'](_0x56eace),_0x37e2df=_0x1603a5['view'][_0x324168(0x293)];_0x37e2df[_0x324168(0x44a)](_0x12b04a,_0x35fac2,_0x21bd54),this['applyNodeValueType'](_0x37e2df,_0x12b04a,_0x35fac2,_0x56eace),this[_0x324168(0x3da)](_0x1603a5,_0x56eace,_0x12b04a),_0x37e2df[_0x324168(0x44a)](_0x12b04a,_0x2b0ae2,_0x4258e6[_0x27b2e7]['displayName']),_0x37e2df[_0x324168(0x1ea)](_0x12b04a,this[_0x324168(0x4aa)](_0x56eace,{'valueIndex':_0x17f5f3,'isLeaf':!0x0,'rowType':_0x324168(0x2a5)})),this[_0x324168(0x4b6)](_0x1603a5,_0x56eace,_0x12b04a,_0x17f5f3),_0x12b04a++;}return _0x12b04a;}let _0x47ee6a=_0x38223a?_0x598975[_0xabfd11[0x0]]:-0x1,_0x115d38=this[_0x324168(0x364)](_0x1603a5,_0x56eace[_0x324168(0x1f6)]()),_0x5103a1=this[_0x324168(0x257)](_0x56eace),_0x2b9f53=_0x1603a5[_0x324168(0x26f)][_0x324168(0x293)];return _0x2b9f53['setValue'](_0x1a2d37,_0x115d38,_0x5103a1),this[_0x324168(0x1b3)](_0x2b9f53,_0x1a2d37,_0x115d38,_0x56eace),this[_0x324168(0x3da)](_0x1603a5,_0x56eace,_0x1a2d37),_0x2b9f53['setInfo'](_0x1a2d37,this['createRowInfo'](_0x56eace,{'valueIndex':_0x47ee6a,'isLeaf':!0x0,'rowType':'item'})),_0x45532c>0x0&&this[_0x324168(0x4b6)](_0x1603a5,_0x56eace,_0x1a2d37,_0x47ee6a),_0x1a2d37+0x1;}static['shouldWriteLeafValuesUnderItem'](_0x24596d){const _0xc342d1=_0x5ad6b7;return _0x24596d[_0xc342d1(0x1cf)]&&_0x24596d[_0xc342d1(0x3b8)]>0x0;}static['writeLeafItemRow'](_0x44f7f8,_0x188661,_0x51ce97){const _0x176ce7=_0x5ad6b7;let _0x291c47=this['getRowLabelCol'](_0x44f7f8,_0x188661[_0x176ce7(0x1f6)]()),_0x3f915d=this[_0x176ce7(0x257)](_0x188661),_0x4bbf72=_0x44f7f8[_0x176ce7(0x26f)][_0x176ce7(0x293)];return _0x4bbf72[_0x176ce7(0x44a)](_0x51ce97,_0x291c47,_0x3f915d),this[_0x176ce7(0x1b3)](_0x4bbf72,_0x51ce97,_0x291c47,_0x188661),this[_0x176ce7(0x3da)](_0x44f7f8,_0x188661,_0x51ce97),_0x4bbf72[_0x176ce7(0x1ea)](_0x51ce97,this[_0x176ce7(0x4aa)](_0x188661,{'isLeaf':!0x0,'rowType':_0x176ce7(0x2a5)})),_0x51ce97+0x1;}static[_0x5ad6b7(0x22e)](_0x59d4da,_0x43c6f5,_0x4b2dda,_0x18fbc5,_0x5c82a1){const _0x33fd8e=_0x5ad6b7;let _0x5bff7e=this['getValueLabelCol'](_0x59d4da,_0x43c6f5[_0x33fd8e(0x1f6)]()),_0xa5aa25=_0x59d4da['view'][_0x33fd8e(0x293)];this['repeatRowLabelsForNode'](_0x59d4da,_0x43c6f5,_0x4b2dda),_0xa5aa25[_0x33fd8e(0x44a)](_0x4b2dda,_0x5bff7e,_0x5c82a1),_0xa5aa25[_0x33fd8e(0x1ea)](_0x4b2dda,this[_0x33fd8e(0x4aa)](_0x43c6f5,{'valueIndex':_0x18fbc5,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x33fd8e(0x414)}));}static[_0x5ad6b7(0x146)](_0x34d93a,_0x4dae66,_0x3cdb09,_0x2f14c4){const _0x7d8631=_0x5ad6b7;let {isRowMultiMeasure:_0x21cb7b,measureCount:_0x3eff14,measuresMap:_0x4a04a6,measureIndexesMap:_0x4872ba}=_0x34d93a,_0x344e87=_0x34d93a[_0x7d8631(0x26f)][_0x7d8631(0x293)];if(this[_0x7d8631(0x4ce)](_0x21cb7b,_0x4dae66['getLevel'](),_0x34d93a[_0x7d8631(0x3b8)])){let _0x41856a=_0x3cdb09;for(let _0xbb21a1 of _0x2f14c4){let _0x35a96a=_0x4872ba[_0xbb21a1];_0x344e87[_0x7d8631(0x44a)](_0x41856a,0x0,_0x4a04a6[_0xbb21a1][_0x7d8631(0x3fb)]),_0x344e87[_0x7d8631(0x499)](_0x41856a,0x0,0xf),_0x344e87['setInfo'](_0x41856a,this[_0x7d8631(0x17a)](_0x4dae66,_0x35a96a)),this[_0x7d8631(0x1d3)](_0x34d93a,_0x4dae66,_0x41856a,_0x35a96a),_0x41856a++;}return _0x41856a;}if(_0x34d93a[_0x7d8631(0x373)]===0x0&&!_0x21cb7b&&_0x3eff14>0x0)return _0x34d93a[_0x7d8631(0x391)]!==0x0&&_0x344e87[_0x7d8631(0x44a)](_0x3cdb09,0x0,_0x34d93a[_0x7d8631(0x3e0)][0x0]['displayName']),_0x344e87[_0x7d8631(0x1ea)](_0x3cdb09,this[_0x7d8631(0x17a)](_0x4dae66,-0x1)),_0x34d93a[_0x7d8631(0x391)]!==0x0&&_0x344e87[_0x7d8631(0x1ea)](_0x3cdb09,this['createSingleValueHeaderInfo'](_0x34d93a,_0x344e87['info'][_0x3cdb09])),this[_0x7d8631(0x1d3)](_0x34d93a,_0x4dae66,_0x3cdb09,-0x1),_0x3cdb09+0x1;if(_0x3eff14>0x0){let _0x13e764=_0x21cb7b?_0x4872ba[_0x2f14c4[0x0]]:-0x1;return _0x344e87[_0x7d8631(0x44a)](_0x3cdb09,0x0,''),_0x344e87['setStyle'](_0x3cdb09,0x0,0xe),_0x344e87[_0x7d8631(0x1ea)](_0x3cdb09,this['createGrandTotalInfo'](_0x4dae66,_0x13e764)),this['layoutGrandTotalValues'](_0x34d93a,_0x4dae66,_0x3cdb09,_0x13e764),_0x3cdb09+0x1;}return _0x34d93a[_0x7d8631(0x373)]>0x0?(_0x344e87['setValue'](_0x3cdb09,0x0,''),_0x344e87['setStyle'](_0x3cdb09,0x0,0xe),_0x344e87[_0x7d8631(0x1ea)](_0x3cdb09,this['createGrandTotalInfo'](_0x4dae66,-0x1)),_0x3cdb09+0x1):_0x3cdb09;}static['layoutGrandTotalValues'](_0x30fb43,_0x59b852,_0x3e74cc,_0x3f7888){const _0x2f75f1=_0x5ad6b7;_0x30fb43[_0x2f75f1(0x373)]===0x0?this[_0x2f75f1(0x4b6)](_0x30fb43,_0x59b852,_0x3e74cc,_0x3f7888):this[_0x2f75f1(0x175)](_0x30fb43,_0x3e74cc);}static['createRowInfo'](_0x4115c0,_0x88f36){const _0x568e1e=_0x5ad6b7;return{'paths':_0x4115c0[_0x568e1e(0x274)](),'valueIndex':-0x1,'level':_0x4115c0[_0x568e1e(0x1f6)](),'tableFieldId':_0x4115c0[_0x568e1e(0x35c)](),..._0x88f36};}static[_0x5ad6b7(0x17a)](_0x3ea6a4,_0x52688c){const _0x4234c7=_0x5ad6b7;return{'paths':_0x3ea6a4[_0x4234c7(0x274)](),'valueIndex':_0x52688c,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x3ea6a4[_0x4234c7(0x1f6)](),'tableFieldId':'','rowType':_0x4234c7(0x251)};}static[_0x5ad6b7(0x420)](_0x518962){const _0x5d29e0=_0x5ad6b7;let {rowDeep:_0x5d7710,isRowMultiMeasure:_0x539194}=_0x518962;return _0x5d7710===0x0?_0x518962[_0x5d29e0(0x45f)]===0x0||_0x518962[_0x5d29e0(0x32e)]?0x0:_0x539194||_0x518962[_0x5d29e0(0x391)]!==0x0?0x1:0x0:_0x539194?_0x5d7710+0x1:_0x5d7710;}static[_0x5ad6b7(0x364)](_0x5b1d6b,_0x47dc70){const _0x5d3570=_0x5ad6b7;return this['getColIndexForRowHeader'](_0x47dc70,_0x5b1d6b[_0x5d3570(0x3b8)],_0x5b1d6b[_0x5d3570(0x1cf)]);}static[_0x5ad6b7(0x3ea)](_0x119eb9,_0x10c151){const _0x35e85b=_0x5ad6b7;return this[_0x35e85b(0x3c3)](_0x10c151,_0x119eb9[_0x35e85b(0x3b8)],_0x119eb9['isRowMultiMeasure'])+0x1;}static[_0x5ad6b7(0x257)](_0x1232e2){const _0x417a0b=_0x5ad6b7;return _0x1232e2['type']===0x4||_0x1232e2[_0x417a0b(0x3b6)]===0x2?Number(_0x1232e2[_0x417a0b(0x3fb)]):_0x1232e2[_0x417a0b(0x3fb)];}static['applyNodeValueType'](_0x376de3,_0x251b11,_0x36e071,_0x11c22c){const _0x41149d=_0x5ad6b7;_0x11c22c['type']===0x5&&_0x376de3[_0x41149d(0x16c)](_0x251b11,_0x36e071),_0x11c22c['type']===0x6&&_0x376de3['setOther'](_0x251b11,_0x36e071);}},ft=class{constructor(_0x3e2eda,_0x523d87,_0x4c51c0){const _0x33c8b4=_0x5ad6b7;M(this,_0x33c8b4(0x279),void 0x0),M(this,_0x33c8b4(0x440),void 0x0),M(this,_0x33c8b4(0x40e),void 0x0),M(this,_0x33c8b4(0x305),void 0x0),M(this,_0x33c8b4(0x1b2),void 0x0),M(this,_0x33c8b4(0x43b),void 0x0),M(this,_0x33c8b4(0x3fb),void 0x0),M(this,'displayPaths',[]),M(this,_0x33c8b4(0x2c3),void 0x0),M(this,'collapse',void 0x0),M(this,_0x33c8b4(0x15e),[]),M(this,'hasSort',!0x1),M(this,_0x33c8b4(0x3b6),void 0x0),M(this,_0x33c8b4(0x3a3),{}),this[_0x33c8b4(0x279)]=_0x3e2eda,this[_0x33c8b4(0x2c3)]=_0x523d87,this[_0x33c8b4(0x3b6)]=_0x4c51c0;}[_0x5ad6b7(0x494)](){return this['collapse'];}[_0x5ad6b7(0x40c)](_0x46c953){const _0x13ce3b=_0x5ad6b7;this[_0x13ce3b(0x23c)]=_0x46c953;}[_0x5ad6b7(0x35c)](){const _0x1b24d5=_0x5ad6b7;return this[_0x1b24d5(0x2c3)];}[_0x5ad6b7(0x48d)](_0x3e1e84){const _0xe08137=_0x5ad6b7;if(this['hasSort'])for(let _0x19dcf7 of this[_0xe08137(0x15e)]){let _0x302f2e=this['_nodes'][_0x19dcf7];_0x3e1e84(_0x302f2e);}else{let _0x50d325=Object[_0xe08137(0x3ce)](this[_0xe08137(0x3a3)]);for(let _0x45a57f=0x0;_0x45a57f<_0x50d325[_0xe08137(0x3cc)];_0x45a57f++){let _0x1e4029=this[_0xe08137(0x3a3)][_0x50d325[_0x45a57f]];_0x3e1e84(_0x1e4029);}}}['getIndex'](){const _0x216793=_0x5ad6b7;return this[_0x216793(0x279)];}[_0x5ad6b7(0x454)](_0x2b91fd){const _0x5e803=_0x5ad6b7;return this[_0x5e803(0x3a3)][_0x2b91fd]!==void 0x0;}['setParentIndex'](_0x23ad2a){const _0x8491cf=_0x5ad6b7;this[_0x8491cf(0x40e)]=_0x23ad2a;}[_0x5ad6b7(0x235)](_0xfeea9d){const _0x24fcf4=_0x5ad6b7;this[_0x24fcf4(0x440)]=_0xfeea9d;}[_0x5ad6b7(0x1f6)](){const _0x4c6bea=_0x5ad6b7;return this[_0x4c6bea(0x440)];}[_0x5ad6b7(0x288)](_0x449ae8){const _0x5ae904=_0x5ad6b7;this[_0x5ae904(0x305)]=_0x449ae8;}[_0x5ad6b7(0x274)](){return this['paths'];}[_0x5ad6b7(0x1f9)](){this['isLeaf']=!0x0;}[_0x5ad6b7(0x15d)](){const _0x20aaa5=_0x5ad6b7;return!!this[_0x20aaa5(0x1b2)];}[_0x5ad6b7(0x445)](_0x3d2326){const _0x4ac11f=_0x5ad6b7;this[_0x4ac11f(0x43b)]=_0x3d2326;}[_0x5ad6b7(0x2b9)](_0xce219c,_0x1bb7df,_0x1f534d,_0x4660ae,_0x3854a5=_0x1bb7df){const _0x45d979=_0x5ad6b7;this[_0x45d979(0x3a3)][_0x1bb7df]=_0xce219c,_0xce219c[_0x45d979(0x445)](_0x1bb7df),_0xce219c['displayName']=_0x3854a5,_0xce219c['displayPaths']=this[_0x45d979(0x27a)][_0x45d979(0x14f)](_0x3854a5),_0xce219c['setParentIndex'](this[_0x45d979(0x279)]),_0xce219c['setLevel'](this[_0x45d979(0x440)]+0x1),_0xce219c[_0x45d979(0x288)](this[_0x45d979(0x305)][_0x45d979(0x14f)](_0x1bb7df)),_0x1f534d&&(this[_0x45d979(0x41d)](_0x1bb7df,_0x1f534d,_0x4660ae),this['hasSort']=!0x0);}[_0x5ad6b7(0x41d)](_0x588ee2,_0x2fdce0,_0x30dbb7){const _0x3410fe=_0x5ad6b7;let _0x5a62bc=_0x2fdce0[_0x588ee2],_0x4b46aa=this['sortedList'],_0x2a9367=0x0,_0x19fb81=_0x4b46aa[_0x3410fe(0x3cc)],_0x54d242=_0x30dbb7!==0x2;for(;_0x2a9367<_0x19fb81;){let _0x5b87ae=Math[_0x3410fe(0x409)]((_0x2a9367+_0x19fb81)/0x2);(_0x54d242?_0x2fdce0[_0x4b46aa[_0x5b87ae]]-_0x5a62bc:_0x5a62bc-_0x2fdce0[_0x4b46aa[_0x5b87ae]])<0x0?_0x2a9367=_0x5b87ae+0x1:_0x19fb81=_0x5b87ae;}_0x4b46aa[_0x3410fe(0x1b1)](_0x2a9367,0x0,_0x588ee2);}[_0x5ad6b7(0x1f7)](_0x26a4df,_0x5836c5,_0xb96216,_0x5d30d){const _0x453605=_0x5ad6b7;let _0x3ab78f=Object[_0x453605(0x44b)](this[_0x453605(0x3a3)]);_0x3ab78f[_0x453605(0x467)](_0x30f532=>_0x30f532[_0x453605(0x2c3)]===_0x26a4df)&&(this[_0x453605(0x15e)]=_0x3ab78f[_0x453605(0x3c7)]((_0x4c2317,_0x44941c)=>({'node':_0x4c2317,'index':_0x44941c}))[_0x453605(0x3dc)]((_0x5203da,_0xeeec56)=>{const _0xe05836=_0x453605;let _0x18e4fd=_0xb96216(_0x5203da[_0xe05836(0x3c8)][_0xe05836(0x279)]),_0x3e8cb1=_0xb96216(_0xeeec56[_0xe05836(0x3c8)][_0xe05836(0x279)]);return _0x18e4fd===_0x3e8cb1?_0x5d30d(_0x5203da['node'][_0xe05836(0x3fb)],_0xeeec56['node'][_0xe05836(0x3fb)])||_0x5203da[_0xe05836(0x186)]-_0xeeec56[_0xe05836(0x186)]:_0x18e4fd===void 0x0?0x1:_0x3e8cb1===void 0x0?-0x1:_0x5836c5===0x2?_0x3e8cb1-_0x18e4fd:_0x18e4fd-_0x3e8cb1;})['map'](({node:_0x336190})=>_0x336190[_0x453605(0x43b)]),this['hasSort']=!0x0);for(let _0x45544c of _0x3ab78f)_0x45544c[_0x453605(0x1f7)](_0x26a4df,_0x5836c5,_0xb96216,_0x5d30d);}['resetSort'](){const _0x2295c4=_0x5ad6b7;this[_0x2295c4(0x15e)]=[],this[_0x2295c4(0x1e7)]=!0x1,Object[_0x2295c4(0x44b)](this[_0x2295c4(0x3a3)])[_0x2295c4(0x334)](_0x51acc2=>_0x51acc2[_0x2295c4(0x374)]());}[_0x5ad6b7(0x332)](_0xf9cfba,_0x48ebda,_0x5ca0bc){const _0x1ed3b3=_0x5ad6b7;let _0x6b8c55=Object[_0x1ed3b3(0x44b)](this[_0x1ed3b3(0x3a3)]);_0x6b8c55['some'](_0x17664d=>_0x17664d[_0x1ed3b3(0x2c3)]===_0xf9cfba)&&(this[_0x1ed3b3(0x15e)]=_0x6b8c55[_0x1ed3b3(0x3c7)]((_0x578785,_0x25437d)=>({'node':_0x578785,'index':_0x25437d}))[_0x1ed3b3(0x3dc)]((_0x15a535,_0x58497e)=>{const _0x59213f=_0x1ed3b3;let _0x2a1add=_0x5ca0bc[_0x15a535[_0x59213f(0x3c8)]['name']],_0x44cf80=_0x5ca0bc[_0x58497e[_0x59213f(0x3c8)][_0x59213f(0x43b)]];return _0x2a1add===_0x44cf80?_0x15a535[_0x59213f(0x186)]-_0x58497e[_0x59213f(0x186)]:_0x2a1add===void 0x0?0x1:_0x44cf80===void 0x0?-0x1:_0x48ebda===0x2?_0x44cf80-_0x2a1add:_0x2a1add-_0x44cf80;})[_0x1ed3b3(0x3c7)](({node:_0x1b0243})=>_0x1b0243[_0x1ed3b3(0x43b)]),this['hasSort']=!0x0),_0x6b8c55[_0x1ed3b3(0x334)](_0x346965=>_0x346965[_0x1ed3b3(0x332)](_0xf9cfba,_0x48ebda,_0x5ca0bc));}[_0x5ad6b7(0x333)](_0xf3e894){return this['_nodes'][_0xf3e894];}};const pt={0x1:{'errorType':0x1},0x2:{'errorType':0x2},0x3:{'errorType':0x3},0x4:{'errorType':0x4},0x5:{'errorType':0x5}},mt=pt[0x1],ht=pt[0x2];function J(_0x374631){const _0x34656f=_0x5ad6b7;return typeof _0x374631==_0x34656f(0x4ba);}var gt=class{constructor(_0x2f76b1,_0x5ad178){const _0xcb7cc9=_0x5ad6b7;this[_0xcb7cc9(0x45c)]=_0x2f76b1,this['_queryData']=_0x5ad178,M(this,_0xcb7cc9(0x361),{}),M(this,'_itemIndexMaps',[]),M(this,'_rowFieldIndexes',[]),M(this,_0xcb7cc9(0x1c5),[]),M(this,'_fieldCount',void 0x0),M(this,_0xcb7cc9(0x18c),[]),M(this,_0xcb7cc9(0x474),new Map()),M(this,_0xcb7cc9(0x4bf),new Int32Array()),M(this,_0xcb7cc9(0x20e),void 0x0),M(this,'_columnTotalIndexes',void 0x0),M(this,'_grandTotalIndex',-0x1),M(this,_0xcb7cc9(0x16a),void 0x0),M(this,_0xcb7cc9(0x1e9),void 0x0),M(this,_0xcb7cc9(0x39c),new Map()),M(this,_0xcb7cc9(0x1af),{}),M(this,_0xcb7cc9(0x4ca),{}),M(this,_0xcb7cc9(0x171),{}),M(this,_0xcb7cc9(0x31a),{});let _0x241e27=[..._0x5ad178['rowQueryInfo'],..._0x5ad178['colQueryInfo']];this['_fieldCount']=_0x241e27[_0xcb7cc9(0x3cc)];for(let _0x5c2ab0=0x0;_0x5c2ab0<_0x241e27[_0xcb7cc9(0x3cc)];_0x5c2ab0++){let _0x7eaee5=_0x241e27[_0x5c2ab0];this[_0xcb7cc9(0x361)][_0x7eaee5['id']]=_0x5c2ab0,this[_0xcb7cc9(0x402)][_0x5c2ab0]=_0x2f76b1[_0xcb7cc9(0x2f1)][_0x7eaee5[_0xcb7cc9(0x2ab)]][_0xcb7cc9(0x25e)][_0xcb7cc9(0x4de)](),_0x5c2ab0<_0x5ad178[_0xcb7cc9(0x489)][_0xcb7cc9(0x3cc)]?this[_0xcb7cc9(0x3c5)]['push'](_0x5c2ab0):this[_0xcb7cc9(0x1c5)][_0xcb7cc9(0x3ed)](_0x5c2ab0);}}[_0x5ad6b7(0x1e1)](){const _0x24964c=_0x5ad6b7;this[_0x24964c(0x3dd)]();let _0x52c84b=new Set(this[_0x24964c(0x319)][_0x24964c(0x3e0)][_0x24964c(0x3c7)](_0x5e8a6=>{const _0x1f1552=_0x24964c;var _0x3f156f;return(_0x3f156f=_0x5e8a6[_0x1f1552(0x20d)])==null?void 0x0:_0x3f156f[_0x1f1552(0x3b6)];}));this[_0x24964c(0x19b)](_0x52c84b),this[_0x24964c(0x425)](_0x52c84b),this['_preparePeerIndexes'](),this[_0x24964c(0x2ec)]();let _0x53748e=new Int32Array(this[_0x24964c(0x1fc)]);_0x53748e['fill'](-0x1),this[_0x24964c(0x22f)]=this[_0x24964c(0x474)][_0x24964c(0x16d)](this[_0x24964c(0x2be)](_0x53748e))??-0x1;}[_0x5ad6b7(0x405)](_0x101c3f,_0x19251d){const _0x56653f=_0x5ad6b7;var _0x140fea;let _0x166267=this['_getRawValue'](_0x101c3f,_0x19251d),_0x3b0dad=((_0x140fea=_0x19251d[_0x56653f(0x20d)])==null?void 0x0:_0x140fea[_0x56653f(0x3b6)])??0x1;if(this['_isParentType'](_0x3b0dad))return this['_getParentValue'](_0x3b0dad,_0x166267,_0x101c3f,_0x19251d);if(this[_0x56653f(0x47a)](_0x3b0dad))return this['_getPeerValue'](_0x3b0dad,_0x166267,_0x101c3f,_0x19251d);if(this[_0x56653f(0x328)](_0x3b0dad)){let _0x5ad6b5=this[_0x56653f(0x31a)][_0x19251d['id']];return this[_0x56653f(0x415)](_0x5ad6b5,_0x101c3f);}switch(_0x3b0dad){case 0x4:return this[_0x56653f(0x3c2)](_0x166267,this[_0x56653f(0x2ca)](this[_0x56653f(0x22f)],_0x19251d));case 0x3:return this[_0x56653f(0x3c2)](_0x166267,this[_0x56653f(0x1c6)](this[_0x56653f(0x20e)],_0x101c3f,_0x19251d));case 0x2:return this['_divide'](_0x166267,this[_0x56653f(0x1c6)](this[_0x56653f(0x36a)],_0x101c3f,_0x19251d));case 0x8:return this['_getIndexValue'](_0x166267,_0x101c3f,_0x19251d);default:return _0x166267;}}[_0x5ad6b7(0x294)](){const _0x3d6118=_0x5ad6b7;for(let _0x5815ad of Object[_0x3d6118(0x3ce)](this['_peerUnionsByValueField']))this[_0x3d6118(0x171)][_0x5815ad][_0x3d6118(0x404)](),delete this[_0x3d6118(0x171)][_0x5815ad];this[_0x3d6118(0x18c)][_0x3d6118(0x3cc)]=0x0,this[_0x3d6118(0x474)][_0x3d6118(0x404)](),this[_0x3d6118(0x4bf)]=new Int32Array(),this[_0x3d6118(0x20e)]=void 0x0,this[_0x3d6118(0x36a)]=void 0x0,this[_0x3d6118(0x16a)]=void 0x0,this[_0x3d6118(0x1e9)]=void 0x0,this['_parentFieldIndexes'][_0x3d6118(0x404)]();for(let _0x411964 of Object[_0x3d6118(0x3ce)](this[_0x3d6118(0x1af)]))delete this['_parentFieldIndexByValueField'][_0x411964];for(let _0xccf255 of Object[_0x3d6118(0x3ce)](this['_peerIndexesByValueField']))delete this['_peerIndexesByValueField'][_0xccf255];for(let _0x124d0e of Object['keys'](this[_0x3d6118(0x31a)]))delete this['_derivedValuesByValueField'][_0x124d0e];this[_0x3d6118(0x22f)]=-0x1;}[_0x5ad6b7(0x19b)](_0x5b1594){const _0x1678e2=_0x5ad6b7;let _0x450cb0=_0x5b1594[_0x1678e2(0x3b0)](0x3)||_0x5b1594[_0x1678e2(0x3b0)](0x8),_0x9a29e8=_0x5b1594[_0x1678e2(0x3b0)](0x2)||_0x5b1594[_0x1678e2(0x3b0)](0x8);_0x450cb0&&(this[_0x1678e2(0x20e)]=this[_0x1678e2(0x1aa)](this['_columnFieldIndexes'])),_0x9a29e8&&(this['_columnTotalIndexes']=this[_0x1678e2(0x1aa)](this[_0x1678e2(0x3c5)]));}[_0x5ad6b7(0x425)](_0x52c49b){const _0xec0e12=_0x5ad6b7;_0x52c49b[_0xec0e12(0x3b0)](0x6)&&(this['_parentRowTotalIndexes']=this[_0xec0e12(0x30c)](this['_rowFieldIndexes'])),_0x52c49b['has'](0x5)&&(this[_0xec0e12(0x1e9)]=this[_0xec0e12(0x30c)](this['_columnFieldIndexes']));for(let _0x43be1 of this[_0xec0e12(0x319)][_0xec0e12(0x3e0)]){var _0x3de351,_0x253a06;if(((_0x3de351=_0x43be1['showDataAs'])==null?void 0x0:_0x3de351[_0xec0e12(0x3b6)])!==0xe&&((_0x253a06=_0x43be1[_0xec0e12(0x20d)])==null?void 0x0:_0x253a06['type'])!==0x7)continue;let _0x45fd04=this['_getFieldIndex'](_0x43be1[_0xec0e12(0x20d)][_0xec0e12(0x4a8)]);if(_0x45fd04<0x0||(this[_0xec0e12(0x1af)][_0x43be1['id']]=_0x45fd04,this[_0xec0e12(0x39c)][_0xec0e12(0x3b0)](_0x45fd04)))continue;let _0x3e4a84=_0x45fd04<this[_0xec0e12(0x3c5)][_0xec0e12(0x3cc)]?this['_rowFieldIndexes']:this[_0xec0e12(0x1c5)];this['_parentFieldIndexes'][_0xec0e12(0x34a)](_0x45fd04,this[_0xec0e12(0x30c)](_0x3e4a84,_0x45fd04));}}['_preparePeerIndexes'](){const _0x589e9e=_0x5ad6b7;let _0x9fbe65=new Map();for(let _0x4665ff of this['_queryData']['valueQueryInfo']){let _0x30101f=_0x4665ff[_0x589e9e(0x20d)];if(!_0x30101f||!this[_0x589e9e(0x47a)](_0x30101f[_0x589e9e(0x3b6)]))continue;let _0x4cd4a3=this[_0x589e9e(0x462)](_0x30101f[_0x589e9e(0x4a8)]);if(_0x4cd4a3<0x0)continue;let _0x230c11=_0x30101f['baseItemType']??0x1,_0x3746dc=[...this[_0x589e9e(0x319)][_0x589e9e(0x489)],...this[_0x589e9e(0x319)][_0x589e9e(0x2d2)]][_0x4cd4a3],_0x51f3ae=this['_summaryManager'][_0x589e9e(0x2f1)][_0x3746dc[_0x589e9e(0x2ab)]][_0x589e9e(0x25e)]['getTupleKeysByLabel'](_0x30101f['baseItem']);if(_0x230c11===0x1&&_0x51f3ae[_0x589e9e(0x3cc)]>0x1){let _0x58f90c=new Map();for(let _0x1edb8e=0x0;_0x1edb8e<this[_0x589e9e(0x18c)][_0x589e9e(0x3cc)];_0x1edb8e++){let _0x4e59ed=this[_0x589e9e(0x18c)][_0x1edb8e];if(!_0x4e59ed||_0x4e59ed[_0x4cd4a3]<0x0)continue;let _0x58f5dc=new N(),_0x29f0c8=0x0,_0x96c8de=!0x1;for(let _0x1d33f6 of _0x51f3ae){let _0x59c89f=_0x4e59ed[_0x589e9e(0x49d)]();_0x59c89f[_0x4cd4a3]=this['_itemIndexMaps'][_0x4cd4a3][_0x1d33f6];let _0x43141b=this[_0x589e9e(0x474)][_0x589e9e(0x16d)](this[_0x589e9e(0x2be)](_0x59c89f));_0x43141b!==void 0x0&&(_0x58f5dc[_0x589e9e(0x44d)](this[_0x589e9e(0x45c)][_0x589e9e(0x1be)][_0x43141b]['tuple'][_0x4665ff[_0x589e9e(0x2ab)]][_0x589e9e(0x422)]()),_0x96c8de||=_0x43141b===this['_getCanonicalTupleIndex'](_0x1edb8e),_0x29f0c8++);}_0x29f0c8&&_0x58f90c[_0x589e9e(0x34a)](_0x1edb8e,{'tuple':_0x58f5dc,'includesCurrent':_0x96c8de});}this[_0x589e9e(0x171)][_0x4665ff['id']]=_0x58f90c;continue;}let _0x17d673=_0x4cd4a3+':'+_0x230c11+':'+_0x30101f[_0x589e9e(0x398)],_0x2edca6=_0x9fbe65['get'](_0x17d673);_0x2edca6||(_0x2edca6=this['_buildPeerIndexes'](_0x4cd4a3,_0x30101f[_0x589e9e(0x398)],_0x230c11),_0x9fbe65[_0x589e9e(0x34a)](_0x17d673,_0x2edca6)),this['_peerIndexesByValueField'][_0x4665ff['id']]=_0x2edca6;}}[_0x5ad6b7(0x2ec)](){const _0x5d0e31=_0x5ad6b7;for(let _0x46b664 of this[_0x5d0e31(0x319)][_0x5d0e31(0x3e0)]){let _0x27c665=_0x46b664[_0x5d0e31(0x20d)];if(!_0x27c665)continue;let _0x20eb95=this[_0x5d0e31(0x462)](_0x27c665[_0x5d0e31(0x4a8)]);_0x20eb95<0x0||(_0x27c665['type']===0xb||_0x27c665[_0x5d0e31(0x3b6)]===0xc?this[_0x5d0e31(0x31a)][_0x46b664['id']]=this[_0x5d0e31(0x29e)](_0x46b664,_0x20eb95,_0x27c665[_0x5d0e31(0x3b6)]===0xc):(_0x27c665['type']===0xf||_0x27c665[_0x5d0e31(0x3b6)]===0x10)&&(this[_0x5d0e31(0x31a)][_0x46b664['id']]=this['_buildRankBuffer'](_0x46b664,_0x20eb95,_0x27c665['type']===0xf)));}}['_buildCoordinateIndex'](){const _0x1f0603=_0x5ad6b7;let _0x5d8873=this[_0x1f0603(0x45c)]['tuples']['length'];this['_canonicalTupleIndexes']=new Int32Array(_0x5d8873),this['_canonicalTupleIndexes']['fill'](-0x1);for(let [_0x5b0635,_0x501d15]of Object[_0x1f0603(0x4b5)](this[_0x1f0603(0x45c)][_0x1f0603(0x25f)])){let _0x5b6194=new Int32Array(this[_0x1f0603(0x1fc)]);_0x5b6194['fill'](-0x1),this[_0x1f0603(0x2b0)](_0x5b0635,_0x5b6194);let _0x1e8daa=this[_0x1f0603(0x2be)](_0x5b6194),_0x55541e=this['_tupleByCoordinate'][_0x1f0603(0x16d)](_0x1e8daa);this[_0x1f0603(0x18c)][_0x501d15]=_0x5b6194,_0x55541e===void 0x0?(this['_tupleByCoordinate'][_0x1f0603(0x34a)](_0x1e8daa,_0x501d15),this[_0x1f0603(0x4bf)][_0x501d15]=_0x501d15):this[_0x1f0603(0x4bf)][_0x501d15]=_0x55541e;}}[_0x5ad6b7(0x2b0)](_0x4ac9c4,_0xae9893){const _0x39dbe0=_0x5ad6b7;let _0x4e07f2=_0x4ac9c4[_0x39dbe0(0x1c3)](t['TUPLE_PLACEHOLDER']);for(let _0x9cfd55 of _0x4e07f2){let _0x96d26b=_0x9cfd55[_0x39dbe0(0x1c3)](t[_0x39dbe0(0x390)]);for(let _0x20d16a=0x0;_0x20d16a<_0x96d26b[_0x39dbe0(0x3cc)]-0x1;_0x20d16a++){let _0x38bbd8=this[_0x39dbe0(0x361)][_0x96d26b[_0x20d16a]];if(_0x38bbd8===void 0x0)continue;let _0x39b761=this['_itemIndexMaps'][_0x38bbd8][_0x96d26b[_0x20d16a+0x1]];_0x39b761!==void 0x0&&(_0xae9893[_0x38bbd8]=_0x39b761),_0x20d16a++;}}}[_0x5ad6b7(0x1aa)](_0x4b2cec){const _0x24305a=_0x5ad6b7;let _0x5671f0=new Int32Array(this[_0x24305a(0x45c)][_0x24305a(0x1be)][_0x24305a(0x3cc)]);_0x5671f0[_0x24305a(0x314)](-0x1);for(let _0x44cb21=0x0;_0x44cb21<this[_0x24305a(0x18c)]['length'];_0x44cb21++){let _0xd84ca=this['_coordinates'][_0x44cb21];if(!_0xd84ca)continue;let _0x123f20=_0xd84ca[_0x24305a(0x49d)]();for(let _0x8b2599 of _0x4b2cec)_0x123f20[_0x8b2599]=-0x1;_0x5671f0[_0x44cb21]=this['_tupleByCoordinate'][_0x24305a(0x16d)](this['_getCoordinateKey'](_0x123f20))??-0x1;}return _0x5671f0;}[_0x5ad6b7(0x30c)](_0x262b44,_0x5d62e3){const _0x25789a=_0x5ad6b7;let _0x81b0cf=new Int32Array(this[_0x25789a(0x45c)]['tuples'][_0x25789a(0x3cc)]);_0x81b0cf['fill'](-0x1);let _0xc2c9d8=_0x5d62e3===void 0x0?-0x1:_0x262b44[_0x25789a(0x358)](_0x5d62e3);for(let _0x35143b=0x0;_0x35143b<this[_0x25789a(0x18c)][_0x25789a(0x3cc)];_0x35143b++){let _0x3e00c5=this[_0x25789a(0x18c)][_0x35143b];if(!_0x3e00c5)continue;if(_0x5d62e3!==void 0x0){if(_0xc2c9d8<0x0||_0x3e00c5[_0x5d62e3]<0x0)continue;let _0x2a4cf8=_0x3e00c5[_0x25789a(0x49d)]();for(let _0x534c2c=_0xc2c9d8+0x1;_0x534c2c<_0x262b44['length'];_0x534c2c++)_0x2a4cf8[_0x262b44[_0x534c2c]]=-0x1;_0x81b0cf[_0x35143b]=this['_tupleByCoordinate'][_0x25789a(0x16d)](this[_0x25789a(0x2be)](_0x2a4cf8))??-0x1;continue;}let _0x51cad9=-0x1;if(_0x5d62e3===void 0x0){for(let _0x1c102f=_0x262b44['length']-0x1;_0x1c102f>=0x0;_0x1c102f--)if(_0x3e00c5[_0x262b44[_0x1c102f]]>=0x0){_0x51cad9=_0x1c102f;break;}}if(_0x51cad9<0x0){_0x81b0cf[_0x35143b]=this[_0x25789a(0x4bf)][_0x35143b];continue;}let _0x113575=_0x3e00c5[_0x25789a(0x49d)]();for(let _0x7525af=_0x51cad9;_0x7525af<_0x262b44['length'];_0x7525af++)_0x113575[_0x262b44[_0x7525af]]=-0x1;_0x81b0cf[_0x35143b]=this[_0x25789a(0x474)][_0x25789a(0x16d)](this['_getCoordinateKey'](_0x113575))??-0x1;}return _0x81b0cf;}[_0x5ad6b7(0x462)](_0x2ddce1){const _0x20b595=_0x5ad6b7;let _0x4288ab=this[_0x20b595(0x361)][_0x2ddce1];return _0x4288ab===void 0x0?[...this[_0x20b595(0x319)][_0x20b595(0x489)],...this[_0x20b595(0x319)]['colQueryInfo']][_0x20b595(0x206)](_0x596a98=>_0x596a98[_0x20b595(0x2ab)]===_0x2ddce1):_0x4288ab;}[_0x5ad6b7(0x1ae)](_0x414773){return _0x414773===0x6||_0x414773===0x5||_0x414773===0x7||_0x414773===0xe;}[_0x5ad6b7(0x47a)](_0x135144){return _0x135144===0x9||_0x135144===0xa||_0x135144===0xd;}[_0x5ad6b7(0x328)](_0x495ca5){return _0x495ca5===0xb||_0x495ca5===0xc||_0x495ca5===0xf||_0x495ca5===0x10;}[_0x5ad6b7(0x31e)](_0x314a70,_0x409b42,_0x51e402,_0x292c13){const _0x452ec6=_0x5ad6b7;if(_0x314a70===0x6)return this[_0x452ec6(0x3b1)](_0x409b42,this[_0x452ec6(0x1c6)](this['_parentRowTotalIndexes'],_0x51e402,_0x292c13));if(_0x314a70===0x5)return this[_0x452ec6(0x3b1)](_0x409b42,this[_0x452ec6(0x1c6)](this[_0x452ec6(0x1e9)],_0x51e402,_0x292c13));let _0x4463ca=this[_0x452ec6(0x1af)][_0x292c13['id']];return this[_0x452ec6(0x3b1)](_0x409b42,this[_0x452ec6(0x1c6)](this[_0x452ec6(0x39c)][_0x452ec6(0x16d)](_0x4463ca),_0x51e402,_0x292c13));}['_getPeerValue'](_0x40abef,_0x50e704,_0x84c6ba,_0x1bc4b2){const _0x203685=_0x5ad6b7;var _0x42ea83;let _0x21da67=(_0x42ea83=this[_0x203685(0x171)][_0x1bc4b2['id']])==null?void 0x0:_0x42ea83[_0x203685(0x16d)](this['_getCanonicalTupleIndex'](_0x84c6ba));if(_0x21da67){let _0x48771a=_0x21da67[_0x203685(0x39e)][_0x203685(0x1db)](_0x1bc4b2['subtotal']);return _0x40abef===0xd?this[_0x203685(0x3c2)](_0x50e704,_0x48771a):_0x21da67[_0x203685(0x35b)]?void 0x0:_0x40abef===0x9?this[_0x203685(0x22d)](_0x50e704,_0x48771a):this[_0x203685(0x1bd)](_0x50e704,_0x48771a);}let _0x38e3e7=this['_getIndexedTupleIndex'](this[_0x203685(0x4ca)][_0x1bc4b2['id']],_0x84c6ba);if(_0x40abef===0xd)return this[_0x203685(0x3c2)](_0x50e704,this[_0x203685(0x2ca)](_0x38e3e7,_0x1bc4b2));if(_0x38e3e7<0x0||_0x38e3e7===this[_0x203685(0x4bd)](_0x84c6ba))return;let _0x4e2df7=this[_0x203685(0x2ca)](_0x38e3e7,_0x1bc4b2);return _0x40abef===0x9?this['_difference'](_0x50e704,_0x4e2df7):this[_0x203685(0x1bd)](_0x50e704,_0x4e2df7);}[_0x5ad6b7(0x34e)](_0x305cc3,_0x1405d0,_0x135d53){const _0x147c99=_0x5ad6b7;let _0x5a8252=new Int32Array(this[_0x147c99(0x45c)][_0x147c99(0x1be)][_0x147c99(0x3cc)]);_0x5a8252[_0x147c99(0x314)](-0x1);let _0x54dd3e=_0x305cc3<this[_0x147c99(0x3c5)][_0x147c99(0x3cc)]?this['_rowFieldIndexes']:this['_columnFieldIndexes'],_0x7f09da=_0x54dd3e[_0x147c99(0x358)](_0x305cc3),_0x165b91=_0x135d53===0x1?void 0x0:this['_buildItemOrders'](_0x305cc3,_0x54dd3e,_0x7f09da),_0x3cc559=[...this[_0x147c99(0x319)][_0x147c99(0x489)],...this['_queryData'][_0x147c99(0x2d2)]][_0x305cc3],_0x534cf4=this[_0x147c99(0x45c)][_0x147c99(0x2f1)][_0x3cc559[_0x147c99(0x2ab)]][_0x147c99(0x25e)][_0x147c99(0x1cb)](_0x1405d0)[0x0],_0x4f543b=this[_0x147c99(0x402)][_0x305cc3][_0x534cf4];for(let _0x56bd83=0x0;_0x56bd83<this['_coordinates'][_0x147c99(0x3cc)];_0x56bd83++){let _0x44dd57=this[_0x147c99(0x18c)][_0x56bd83];if(!_0x44dd57||_0x44dd57[_0x305cc3]<0x0)continue;let _0x437c7c=_0x4f543b;if(_0x165b91){let _0x35c1e3=this[_0x147c99(0x401)](_0x44dd57,_0x54dd3e,_0x7f09da),_0x566b61=_0x165b91[_0x147c99(0x16d)](_0x35c1e3),_0x1c8659=_0x566b61==null?void 0x0:_0x566b61[_0x147c99(0x3e6)][_0x147c99(0x16d)](_0x44dd57[_0x305cc3]);if(_0x566b61&&_0x1c8659!==void 0x0){let _0x335d12=_0x135d53===0x2?-0x1:0x1;_0x437c7c=_0x566b61[_0x147c99(0x2e3)][_0x1c8659+_0x335d12];}else _0x437c7c=void 0x0;}if(_0x437c7c===void 0x0)continue;let _0x3f7956=_0x44dd57[_0x147c99(0x49d)]();_0x3f7956[_0x305cc3]=_0x437c7c,_0x5a8252[_0x56bd83]=this['_tupleByCoordinate'][_0x147c99(0x16d)](this[_0x147c99(0x2be)](_0x3f7956))??-0x1;}return _0x5a8252;}['_buildItemOrders'](_0x760d4b,_0x19ca84,_0x2a3791){const _0x3e86f2=_0x5ad6b7;let _0x5255e6=new Map(),_0x3baa39=_0x760d4b<this[_0x3e86f2(0x3c5)][_0x3e86f2(0x3cc)]?this[_0x3e86f2(0x45c)][_0x3e86f2(0x4b2)]:this[_0x3e86f2(0x45c)][_0x3e86f2(0x36c)],_0x1c0063=_0x2d09de=>{const _0x40605c=_0x3e86f2;if(_0x2d09de[_0x40605c(0x1f6)]()===_0x2a3791){let _0x439805=[],_0x2e4c11=new Map();_0x2d09de[_0x40605c(0x48d)](_0x1a41de=>{const _0x111a33=_0x40605c;let _0x3ae7e2=this['_itemIndexMaps'][_0x760d4b][_0x1a41de[_0x111a33(0x43b)]];_0x3ae7e2!==void 0x0&&(_0x2e4c11['set'](_0x3ae7e2,_0x439805[_0x111a33(0x3cc)]),_0x439805[_0x111a33(0x3ed)](_0x3ae7e2));}),_0x5255e6[_0x40605c(0x34a)](this[_0x40605c(0x1e3)](_0x2d09de,_0x19ca84,_0x2a3791),{'items':_0x439805,'positions':_0x2e4c11});}else _0x2d09de['iterate'](_0x1c0063);};return _0x1c0063(_0x3baa39),_0x5255e6;}[_0x5ad6b7(0x1e3)](_0x498974,_0x3865ad,_0x589cb4){const _0x9948bb=_0x5ad6b7;let _0x1d1c68=_0x498974[_0x9948bb(0x274)](),_0x262033=[];for(let _0x1b5898=0x0;_0x1b5898<_0x589cb4;_0x1b5898++)_0x262033[_0x9948bb(0x3ed)](this[_0x9948bb(0x402)][_0x3865ad[_0x1b5898]][_0x1d1c68[_0x1b5898]]);return _0x262033[_0x9948bb(0x1b0)](',');}[_0x5ad6b7(0x401)](_0x34c524,_0x349f92,_0x444a94){const _0x470daf=_0x5ad6b7;let _0x4a0343=[];for(let _0x530e43=0x0;_0x530e43<_0x444a94;_0x530e43++)_0x4a0343[_0x470daf(0x3ed)](_0x34c524[_0x349f92[_0x530e43]]);return _0x4a0343[_0x470daf(0x1b0)](',');}[_0x5ad6b7(0x199)](_0x409f7a){const _0xfb42e2=_0x5ad6b7;let _0x22da28=_0x409f7a<this[_0xfb42e2(0x3c5)]['length']?this[_0xfb42e2(0x3c5)]:this[_0xfb42e2(0x1c5)],_0x1c6414=_0x22da28[_0xfb42e2(0x358)](_0x409f7a),_0x3c9ee0=this['_buildItemOrders'](_0x409f7a,_0x22da28,_0x1c6414),_0x1d5c34=new Map();for(let _0x35bd3b of this['_tupleByCoordinate'][_0xfb42e2(0x44b)]()){var _0xce24f5;let _0x122290=this[_0xfb42e2(0x18c)][_0x35bd3b];if(!_0x122290||_0x122290[_0x409f7a]<0x0)continue;let _0x10579f=this[_0xfb42e2(0x401)](_0x122290,_0x22da28,_0x1c6414),_0x222153=(_0xce24f5=_0x3c9ee0['get'](_0x10579f))==null?void 0x0:_0xce24f5[_0xfb42e2(0x3e6)][_0xfb42e2(0x16d)](_0x122290[_0x409f7a]);if(_0x222153===void 0x0)continue;let _0x2d6ccf=this[_0xfb42e2(0x4a7)](_0x122290,_0x409f7a),_0x4126bf=_0x1d5c34['get'](_0x2d6ccf);_0x4126bf||(_0x4126bf=[],_0x1d5c34[_0xfb42e2(0x34a)](_0x2d6ccf,_0x4126bf)),_0x4126bf[_0x222153]=_0x35bd3b;}return Array['from'](_0x1d5c34[_0xfb42e2(0x44b)]());}[_0x5ad6b7(0x4a7)](_0x54e13a,_0x3887d2){const _0x14bc8e=_0x5ad6b7;let _0xa3b6d6=[];for(let _0x51ddce=0x0;_0x51ddce<_0x54e13a[_0x14bc8e(0x3cc)];_0x51ddce++)_0x51ddce!==_0x3887d2&&_0xa3b6d6[_0x14bc8e(0x3ed)](_0x54e13a[_0x51ddce]);return _0xa3b6d6[_0x14bc8e(0x1b0)](',');}[_0x5ad6b7(0x29e)](_0x1896d7,_0x397e24,_0xf079c){const _0x82ada3=_0x5ad6b7;let _0x15fe8d=this[_0x82ada3(0x170)]();for(let _0x2f6a96 of this['_buildOrderedGroups'](_0x397e24)){let _0x4f779c=0x0;if(_0xf079c)for(let _0x5360d0 of _0x2f6a96){let _0x5378fd=this[_0x82ada3(0x2ca)](_0x5360d0,_0x1896d7);typeof _0x5378fd==_0x82ada3(0x3f4)&&(_0x4f779c+=_0x5378fd);}let _0x2699f6=0x0;for(let _0xb06c3b of _0x2f6a96){let _0x253387=this[_0x82ada3(0x2ca)](_0xb06c3b,_0x1896d7);_0x253387!==void 0x0&&(J(_0x253387)?this['_setDerivedError'](_0x15fe8d,_0xb06c3b,_0x253387[_0x82ada3(0x1f8)]):(_0x2699f6+=_0x253387,_0xf079c&&_0x4f779c===0x0?this[_0x82ada3(0x36b)](_0x15fe8d,_0xb06c3b,0x1):this[_0x82ada3(0x277)](_0x15fe8d,_0xb06c3b,_0xf079c?_0x2699f6/_0x4f779c:_0x2699f6)));}}return _0x15fe8d;}[_0x5ad6b7(0x367)](_0x2bcfe6,_0x4c3151,_0x2fcbdd){const _0x196282=_0x5ad6b7;let _0x3a7d56=this[_0x196282(0x170)](),_0x42dbe0=[];for(let _0xe9d8b7 of this[_0x196282(0x199)](_0x4c3151)){_0x42dbe0['length']=0x0;for(let _0x501ae0 of _0xe9d8b7){let _0x2c1ef5=this[_0x196282(0x2ca)](_0x501ae0,_0x2bcfe6);typeof _0x2c1ef5=='number'?_0x42dbe0[_0x196282(0x3ed)]({'tupleIndex':_0x501ae0,'value':_0x2c1ef5}):J(_0x2c1ef5)&&this[_0x196282(0x36b)](_0x3a7d56,_0x501ae0,_0x2c1ef5[_0x196282(0x1f8)]);}_0x42dbe0['sort']((_0x25a705,_0xcb9b50)=>_0x2fcbdd?_0x25a705[_0x196282(0x414)]-_0xcb9b50[_0x196282(0x414)]:_0xcb9b50['value']-_0x25a705['value']);let _0x15f78a=0x0,_0x216cf6;for(let _0x5dd11a=0x0;_0x5dd11a<_0x42dbe0[_0x196282(0x3cc)];_0x5dd11a++){let _0x319485=_0x42dbe0[_0x5dd11a];(_0x216cf6===void 0x0||_0x319485[_0x196282(0x414)]!==_0x216cf6)&&(_0x15f78a=_0x5dd11a+0x1,_0x216cf6=_0x319485[_0x196282(0x414)]),this[_0x196282(0x277)](_0x3a7d56,_0x319485[_0x196282(0x377)],_0x15f78a);}}return _0x3a7d56;}[_0x5ad6b7(0x170)](){const _0x214bd5=_0x5ad6b7;return{'values':new Float64Array(this[_0x214bd5(0x45c)][_0x214bd5(0x1be)][_0x214bd5(0x3cc)]),'states':new Uint8Array(this[_0x214bd5(0x45c)]['tuples']['length'])};}[_0x5ad6b7(0x277)](_0x397aa8,_0x1f3da0,_0x4e9684){const _0x4b61a5=_0x5ad6b7;_0x397aa8['values'][_0x1f3da0]=_0x4e9684,_0x397aa8[_0x4b61a5(0x3c9)][_0x1f3da0]=0x1;}[_0x5ad6b7(0x36b)](_0xaf1954,_0x59e9fa,_0x59ca41){const _0x47f0bf=_0x5ad6b7;_0xaf1954[_0x47f0bf(0x3c9)][_0x59e9fa]=_0x59ca41+0x1;}['_getDerivedValue'](_0x1e3762,_0x5800b3){const _0xa3b50=_0x5ad6b7;if(!_0x1e3762)return;let _0x1a7013=this[_0xa3b50(0x4bf)][_0x5800b3],_0x524bc3=_0x1a7013<0x0?_0x5800b3:_0x1a7013,_0x441b4d=_0x1e3762['states'][_0x524bc3];if(_0x441b4d===0x1)return _0x1e3762['values'][_0x524bc3];if(_0x441b4d>0x1){let _0x3412ef=_0x441b4d-0x1;return pt[_0x3412ef];}}[_0x5ad6b7(0x2be)](_0x390cf2){const _0x28e13e=_0x5ad6b7;return _0x390cf2[_0x28e13e(0x1b0)](',');}['_getRawValue'](_0x5a4584,_0x51e561){const _0x4a2797=_0x5ad6b7;var _0x4bcfa8;if(_0x5a4584<0x0)return;let _0x5aced8=this[_0x4a2797(0x45c)][_0x4a2797(0x1be)][_0x5a4584];return _0x5aced8==null||(_0x4bcfa8=_0x5aced8[_0x4a2797(0x222)])==null||(_0x4bcfa8=_0x4bcfa8[_0x51e561[_0x4a2797(0x2ab)]])==null?void 0x0:_0x4bcfa8[_0x51e561[_0x4a2797(0x223)]];}[_0x5ad6b7(0x1c6)](_0x5f4376,_0x209cf3,_0x529a8d){const _0x17ab3f=_0x5ad6b7;return this['_getRawValue'](this[_0x17ab3f(0x487)](_0x5f4376,_0x209cf3),_0x529a8d);}[_0x5ad6b7(0x487)](_0x4f47c0,_0x314c1b){return(_0x4f47c0==null?void 0x0:_0x4f47c0[this['_getCanonicalTupleIndex'](_0x314c1b)])??-0x1;}[_0x5ad6b7(0x4bd)](_0x53c287){const _0x182dfa=_0x5ad6b7;let _0x25a70c=this[_0x182dfa(0x4bf)][_0x53c287];return _0x25a70c<0x0?_0x53c287:_0x25a70c;}[_0x5ad6b7(0x3c2)](_0x358f09,_0x560734){if(_0x358f09!==void 0x0){if(J(_0x358f09))return _0x358f09;if(_0x560734!==void 0x0)return J(_0x560734)?_0x560734:_0x560734===0x0?mt:_0x358f09/_0x560734;}}[_0x5ad6b7(0x22d)](_0x514374,_0x4bae45){if(_0x514374!==void 0x0){if(J(_0x514374))return _0x514374;if(_0x4bae45!==void 0x0)return J(_0x4bae45)?_0x4bae45:_0x514374-_0x4bae45;}}[_0x5ad6b7(0x3b1)](_0x2441d6,_0x494fec){const _0x47a8df=_0x5ad6b7;if(_0x2441d6!==0x0||_0x494fec!==0x0)return this[_0x47a8df(0x3c2)](_0x2441d6,_0x494fec);}[_0x5ad6b7(0x1bd)](_0x142100,_0x312f5e){if(_0x142100!==void 0x0){if(J(_0x142100))return _0x142100;if(_0x312f5e!==void 0x0)return J(_0x312f5e)?_0x312f5e:_0x312f5e===0x0?mt:(_0x142100-_0x312f5e)/_0x312f5e;}}[_0x5ad6b7(0x169)](_0x169b2c,_0x2c23ea,_0x49f748){const _0x3429ce=_0x5ad6b7;if(_0x169b2c===void 0x0||J(_0x169b2c))return _0x169b2c;let _0x2ec7e9=this[_0x3429ce(0x1c6)](this[_0x3429ce(0x20e)],_0x2c23ea,_0x49f748),_0x80d8=this[_0x3429ce(0x1c6)](this[_0x3429ce(0x36a)],_0x2c23ea,_0x49f748),_0x45b596=this[_0x3429ce(0x2ca)](this[_0x3429ce(0x22f)],_0x49f748);return _0x2ec7e9===void 0x0||_0x80d8===void 0x0||_0x45b596===void 0x0?ht:J(_0x2ec7e9)?_0x2ec7e9:J(_0x80d8)?_0x80d8:J(_0x45b596)?_0x45b596:_0x2ec7e9===0x0||_0x80d8===0x0?mt:_0x169b2c*_0x45b596/(_0x2ec7e9*_0x80d8);}};function _t(_0x18525f,_0x3f6b7d,_0xc85d7f,_0x57b5b1){const _0x64032f=_0x5ad6b7;if(_0x18525f[_0x64032f(0x24c)]!==0xf&&_0x18525f[_0x64032f(0x24c)]!==0x2c)return ae(_0x18525f);let _0x29a772=_0x3f6b7d[_0x64032f(0x3c7)](({v:_0x19cc7b})=>{const _0x3eb8c3=_0x64032f;var _0x339035;return(_0x339035=_0xc85d7f[_0x19cc7b])==null?void 0x0:_0x339035[_0x3eb8c3(0x39e)]['getSubtotal'](_0x57b5b1);})[_0x64032f(0x152)](_0x1c4fc2=>typeof _0x1c4fc2==_0x64032f(0x3f4)&&Number[_0x64032f(0x2bc)](_0x1c4fc2)),_0x4d85f4=_0x18525f[_0x64032f(0x24c)]===0x2c?Math[_0x64032f(0x183)](_0x29a772[_0x64032f(0x3cc)]*Number(_0x18525f[_0x64032f(0x2ee)])/0x64):Math['ceil'](Number(_0x18525f[_0x64032f(0x2ee)])),_0x292eb2=ie(_0x29a772,Math[_0x64032f(0x3ef)](_0x29a772['length'],Math['max'](0x0,_0x4d85f4)),!!_0x18525f[_0x64032f(0x285)]);return _0x5b5598=>_0x292eb2!==void 0x0&&(_0x18525f[_0x64032f(0x285)]?_0x5b5598<=_0x292eb2:_0x5b5598>=_0x292eb2);}var vt=class{constructor(_0x543bf3,_0x22d317,_0x31f84c){const _0x1e853c=_0x5ad6b7;M(this,'counter',void 0x0),M(this,'rowDimOrder',void 0x0),M(this,_0x1e853c(0x263),void 0x0),M(this,_0x1e853c(0x241),void 0x0),M(this,_0x1e853c(0x240),void 0x0),M(this,'rowDeep',void 0x0),M(this,_0x1e853c(0x391),void 0x0),M(this,_0x1e853c(0x45f),void 0x0),M(this,_0x1e853c(0x167),void 0x0),M(this,_0x1e853c(0x2f9),{}),M(this,_0x1e853c(0x1be),[]),M(this,'tupleMap',{}),M(this,'dimensionIdList',[]),M(this,_0x1e853c(0x4d5),[]),M(this,_0x1e853c(0x1f0),[]),M(this,_0x1e853c(0x47f),{}),M(this,_0x1e853c(0x340),{}),M(this,_0x1e853c(0x4b2),void 0x0),M(this,_0x1e853c(0x36c),void 0x0),M(this,_0x1e853c(0x2f1),{}),M(this,_0x1e853c(0x31b),{}),M(this,'collapseInfo',void 0x0),M(this,'dimensionSortInfo',{}),M(this,_0x1e853c(0x2a0),{}),M(this,_0x1e853c(0x266),[]),M(this,'subtotalMap',{}),M(this,_0x1e853c(0x434),void 0x0),M(this,_0x1e853c(0x204),void 0x0),M(this,_0x1e853c(0x234),new Map()),this[_0x1e853c(0x1be)]=_0x22d317[_0x1e853c(0x1be)]['concat']();let _0x2d035b=_0x543bf3['rowQueryInfo'],_0x22d4c9=_0x543bf3[_0x1e853c(0x2d2)],{tuples:_0x210266,dimensionMap:_0x328613,dimensionTableIdList:_0x4f4bf1,tupleMap:_0x54879f,dimensionIdList:_0x402ae5,measuresMap:_0x11460a,measureIdList:_0x263977}=_0x22d317,_0x5cd2fe=_0x2d035b[_0x1e853c(0x3cc)],_0x1f7748=_0x22d4c9[_0x1e853c(0x3cc)];this[_0x1e853c(0x4d5)]=_0x4f4bf1,this[_0x1e853c(0x29d)]=_0x210266[_0x1e853c(0x3cc)],this['leafCount']=_0x210266[_0x1e853c(0x3cc)],this['collapseInfo']=_0x543bf3[_0x1e853c(0x30b)],this[_0x1e853c(0x25f)]={..._0x54879f},this[_0x1e853c(0x2f9)]={..._0x11460a},this[_0x1e853c(0x1f0)]=_0x263977,this['dimensionIdList']=_0x402ae5,this['dimensionMap']=_0x328613,this[_0x1e853c(0x266)]=_0x543bf3[_0x1e853c(0x266)],this[_0x1e853c(0x204)]=_0x31f84c;let _0x58cb97=_0x543bf3[_0x1e853c(0x3e0)];for(let _0x2a597a of _0x58cb97){let _0x2782a5=_0x2a597a['id'],_0x466264=_0x2a597a['subtotal'];_0x466264!==void 0x0&&(this['subtotalMap'][_0x2782a5]={'subTotal':_0x466264,'dataFieldId':_0x2a597a[_0x1e853c(0x2ab)]});}let _0x63356a=[],_0x84f2a=[],_0x1a565c=new Map();for(let [_0x5a5e2d,_0x4805ab]of _0x4f4bf1['entries']())_0x1a565c['set'](_0x4805ab,_0x5a5e2d);for(let _0x1ff6f5=0x0;_0x1ff6f5<_0x5cd2fe;_0x1ff6f5++){let _0x29e9b4=_0x2d035b[_0x1ff6f5]['id'];_0x63356a['push'](_0x1a565c[_0x1e853c(0x16d)](_0x29e9b4)),_0x84f2a[_0x1e853c(0x3ed)](_0x29e9b4);}let _0x3af4c0=[],_0x398306=[];for(let _0x5e9155=0x0;_0x5e9155<_0x1f7748;_0x5e9155++){let _0xe2272b=_0x22d4c9[_0x5e9155]['id'];_0x3af4c0['push'](_0x1a565c[_0x1e853c(0x16d)](_0xe2272b)),_0x398306[_0x1e853c(0x3ed)](_0xe2272b);}this['rowDimOrder']=_0x63356a['concat'](_0x3af4c0),this[_0x1e853c(0x263)]=_0x3af4c0['concat'](_0x63356a),this['rowTableIdList']=_0x84f2a[_0x1e853c(0x14f)](_0x398306),this[_0x1e853c(0x240)]=_0x398306[_0x1e853c(0x14f)](_0x84f2a),this[_0x1e853c(0x373)]=_0x5cd2fe,this['colDeep']=_0x1f7748,this[_0x1e853c(0x45f)]=this[_0x1e853c(0x1f0)]['length'],this['createSummaryLabelSortedMap'](_0x543bf3);}[_0x5ad6b7(0x348)](_0xf1d34e){const _0x211eda=_0x5ad6b7;let {rowQueryInfo:_0x43569d,colQueryInfo:_0x3f0572}=_0xf1d34e;for(let _0x1f33f8 of[..._0x43569d,..._0x3f0572]){let _0x159756=_0x1f33f8['sortInfo'],_0x34f575=_0x1f33f8['id'];if(_0x159756){if(_0x211eda(0x4a8)in _0x159756)this[_0x211eda(0x2a0)][_0x34f575]=_0x159756;else{if(Me(_0x159756)){let _0x3b71c6={},_0x5516dd=_0x159756[_0x211eda(0x297)];for(let _0x48571d=0x0;_0x48571d<_0x5516dd[_0x211eda(0x3cc)];_0x48571d++){let _0x419355=_0x5516dd[_0x48571d];for(let _0x1ceb04 of this[_0x211eda(0x2f1)][_0x1f33f8['dataFieldId']][_0x211eda(0x25e)][_0x211eda(0x1cb)](_0x419355))_0x3b71c6[_0x1ceb04]=_0x48571d;}this[_0x211eda(0x3f8)][_0x34f575]={'type':_0x159756[_0x211eda(0x3b6)],'sortMap':_0x3b71c6};}else{let _0x3d7230=this['getSortedMap'](_0x34f575,this[_0x211eda(0x2f1)][_0x1f33f8[_0x211eda(0x2ab)]][_0x211eda(0x25e)],_0x159756[_0x211eda(0x3df)]);this[_0x211eda(0x3f8)][_0x34f575]={'type':_0x159756[_0x211eda(0x3b6)],'sortMap':_0x3d7230};}}}else{if(t[_0x211eda(0x3fe)]!==_0x211eda(0x232)){let _0x2578fc=t[_0x211eda(0x3fe)],_0x3161e0=this[_0x211eda(0x362)](_0x34f575,this['dimensionMap'][_0x1f33f8[_0x211eda(0x2ab)]][_0x211eda(0x25e)]),_0x5a5912=_0x2578fc==='ascending'?0x1:0x2;this[_0x211eda(0x3f8)][_0x34f575]={'type':_0x5a5912,'sortMap':_0x3161e0};}}}}[_0x5ad6b7(0x185)](_0x9325c,_0xc1ed7b){const _0x365b7b=_0x5ad6b7;var _0x15b51d;return this[_0x365b7b(0x434)]?this[_0x365b7b(0x434)]['getValue'](_0x9325c,_0xc1ed7b):(_0x15b51d=this[_0x365b7b(0x1be)][_0x9325c])==null||(_0x15b51d=_0x15b51d[_0x365b7b(0x222)])==null||(_0x15b51d=_0x15b51d[_0xc1ed7b['dataFieldId']])==null?void 0x0:_0x15b51d[_0xc1ed7b[_0x365b7b(0x223)]];}[_0x5ad6b7(0x25a)](_0x1f3207){const _0xc4e677=_0x5ad6b7;!this[_0xc4e677(0x434)]&&_0x1f3207[_0xc4e677(0x3e0)][_0xc4e677(0x467)](_0x3a8980=>{const _0x1dbf7a=_0xc4e677;var _0x1d7899;return((_0x1d7899=_0x3a8980[_0x1dbf7a(0x20d)])==null?void 0x0:_0x1d7899['type'])&&_0x3a8980[_0x1dbf7a(0x20d)][_0x1dbf7a(0x3b6)]!==0x1;})&&(this[_0xc4e677(0x434)]=new gt(this,_0x1f3207),this[_0xc4e677(0x434)][_0xc4e677(0x1e1)]());}[_0x5ad6b7(0x2e0)](){const _0x213d83=_0x5ad6b7;var _0x1a6fc8;(_0x1a6fc8=this[_0x213d83(0x434)])==null||_0x1a6fc8[_0x213d83(0x294)](),this[_0x213d83(0x434)]=void 0x0;}[_0x5ad6b7(0x362)](_0x58d28a,_0x58ac40,_0x3a7a41){const _0x23a516=_0x5ad6b7;let _0x1de138=this[_0x23a516(0x3f8)][_0x58d28a];if(_0x1de138&&_0x1de138['sortMap'])return _0x1de138[_0x23a516(0x370)];let _0x3b9c94=_0x58ac40[_0x23a516(0x4de)](),_0x2d88dd=_0x58ac40 instanceof H?_0x58ac40[_0x23a516(0x2e3)]:Object[_0x23a516(0x3ce)](_0x3b9c94),_0x38cf58=_0x58ac40 instanceof H?_0x58ac40['itemTypes']:[];if(!(_0x58ac40 instanceof H)){for(let _0x98032 of _0x2d88dd)_0x38cf58[_0x3b9c94[_0x98032]]=_0x58ac40[_0x23a516(0x4d0)](_0x98032);}if(!(_0x58ac40 instanceof H)||_0x58ac40 instanceof W){let _0x157c5b=_0x196513=>_0x196513===0x2?0x0:_0x196513===0x1?0x1:_0x196513===0x4?0x2:0x3,_0x129f31=this[_0x23a516(0x312)](_0x3a7a41),_0x343f0b=_0x2d88dd[_0x23a516(0x49d)]()['sort']((_0x2ef360,_0x1f1ec8)=>{const _0x34c8b3=_0x23a516;let _0x40988c=_0x38cf58[_0x3b9c94[_0x2ef360]],_0x121cb1=_0x38cf58[_0x3b9c94[_0x1f1ec8]],_0x293d28=_0x157c5b(_0x40988c)-_0x157c5b(_0x121cb1);if(_0x293d28)return _0x293d28;let _0x21ead2=_0x58ac40 instanceof W?_0x58ac40['getDisplayNameByKey'](_0x2ef360):_0x58ac40['getTupleLabel'](_0x2ef360),_0x452e22=_0x58ac40 instanceof W?_0x58ac40[_0x34c8b3(0x4c3)](_0x1f1ec8):_0x58ac40[_0x34c8b3(0x3a6)](_0x1f1ec8);return _0x40988c===0x2||_0x40988c===0x4?Number(_0x21ead2)-Number(_0x452e22)||_0x3b9c94[_0x2ef360]-_0x3b9c94[_0x1f1ec8]:_0x129f31(_0x21ead2,_0x452e22)||_0x3b9c94[_0x2ef360]-_0x3b9c94[_0x1f1ec8];});return Object[_0x23a516(0x49e)](_0x343f0b[_0x23a516(0x3c7)]((_0x5bb390,_0x367b24)=>[_0x5bb390,_0x367b24]));}let _0x4e913d=Oe(_0x2d88dd,_0x38cf58,_0x3b9c94,this['_getSortCompare'](_0x3a7a41));if(_0x58ac40 instanceof Xe){let _0x1a6a58=Object['keys'](_0x4e913d)['sort']((_0x28b930,_0xee66e9)=>_0x4e913d[_0x28b930]-_0x4e913d[_0xee66e9]),_0x1fd6be=[..._0x1a6a58[_0x23a516(0x4da)]('__number_before__')?[G]:[],..._0x1a6a58[_0x23a516(0x152)](_0x45ee8f=>_0x45ee8f!=='__number_before__'&&_0x45ee8f!==_0x23a516(0x347)),..._0x1a6a58['includes'](_0x23a516(0x347))?[Ke]:[]];return Object[_0x23a516(0x49e)](_0x1fd6be['map']((_0xca4cc3,_0x535777)=>[_0xca4cc3,_0x535777]));}return _0x4e913d;}['doSummary'](){const _0x3f7df8=_0x5ad6b7;let _0x16ef54=this[_0x3f7df8(0x2d0)]();this[_0x3f7df8(0x14c)](_0x16ef54),this[_0x3f7df8(0x225)](_0x16ef54),this[_0x3f7df8(0x17f)](),this[_0x3f7df8(0x187)]();}[_0x5ad6b7(0x2a4)](_0x37aaf8,_0x240564){const _0x471c51=_0x5ad6b7;this[_0x471c51(0x4b2)][_0x471c51(0x374)](),this[_0x471c51(0x36c)]!==this[_0x471c51(0x4b2)]&&this[_0x471c51(0x36c)]['resetSort'](),this[_0x471c51(0x3f8)]={},this[_0x471c51(0x2a0)]={},this[_0x471c51(0x204)]!==_0x240564&&(this[_0x471c51(0x204)]=_0x240564,this[_0x471c51(0x234)][_0x471c51(0x404)]()),this['createSummaryLabelSortedMap'](_0x37aaf8),this[_0x471c51(0x17f)](),this[_0x471c51(0x187)]();}[_0x5ad6b7(0x17f)](){const _0x35b4be=_0x5ad6b7;for(let [_0x4264fa,{type:_0x12298e,sortMap:_0x5a256f}]of Object[_0x35b4be(0x4b5)](this[_0x35b4be(0x3f8)]))this[_0x35b4be(0x4b2)][_0x35b4be(0x332)](_0x4264fa,_0x12298e,_0x5a256f),this['colNodeTree']!==this['rowNodeTree']&&this['colNodeTree']['sortChildrenByLabel'](_0x4264fa,_0x12298e,_0x5a256f);}[_0x5ad6b7(0x187)](){const _0x54f481=_0x5ad6b7;for(let [_0x1fdbc5,_0x1c2e14]of Object[_0x54f481(0x4b5)](this[_0x54f481(0x2a0)])){if(_0x1c2e14['sortItems'][_0x54f481(0x3cc)]>0x0)continue;let _0x39dcb4=this['subtotalMap'][_0x1c2e14['baseFieldId']];if(!_0x39dcb4)continue;let _0x1b6fa0=_0x5cafbc=>{const _0x3ca4e1=_0x54f481;var _0x17bc4f;let _0x33e676=(_0x17bc4f=this[_0x3ca4e1(0x1be)][_0x5cafbc])==null||(_0x17bc4f=_0x17bc4f['tuple'][_0x39dcb4[_0x3ca4e1(0x2ab)]])==null?void 0x0:_0x17bc4f[_0x3ca4e1(0x1db)](_0x39dcb4[_0x3ca4e1(0x396)]);return typeof _0x33e676=='number'?_0x33e676:void 0x0;},_0x46df8d=this['_getSortCompare'](_0x1c2e14['sortLocale']);this[_0x54f481(0x4b2)][_0x54f481(0x1f7)](_0x1fdbc5,_0x1c2e14[_0x54f481(0x3b6)],_0x1b6fa0,_0x46df8d),this[_0x54f481(0x36c)]!==this[_0x54f481(0x4b2)]&&this[_0x54f481(0x36c)][_0x54f481(0x1f7)](_0x1fdbc5,_0x1c2e14[_0x54f481(0x3b6)],_0x1b6fa0,_0x46df8d);}}[_0x5ad6b7(0x312)](_0x2ca87f){const _0x3b6a5f=_0x5ad6b7;let _0x9c7648=(_0x2ca87f??'')+'\x00'+(this[_0x3b6a5f(0x204)]??''),_0x592e7d=this[_0x3b6a5f(0x234)][_0x3b6a5f(0x16d)](_0x9c7648);return _0x592e7d||(_0x592e7d=De(_0x2ca87f,this[_0x3b6a5f(0x204)]),this['_sortCompareCache'][_0x3b6a5f(0x34a)](_0x9c7648,_0x592e7d)),_0x592e7d;}[_0x5ad6b7(0x3b7)](){return this['counter']++;}[_0x5ad6b7(0x14c)](_0xd57d57){const _0x44f55f=_0x5ad6b7;this['rowNodeTree']=this[_0x44f55f(0x221)](this[_0x44f55f(0x327)],this[_0x44f55f(0x241)],this['_rowLevelPool'],t[_0x44f55f(0x1c0)],_0xd57d57),this[_0x44f55f(0x36c)]=this[_0x44f55f(0x373)]===0x0||this[_0x44f55f(0x391)]===0x0?this['rowNodeTree']:this['_buildNodeTreeImp'](this[_0x44f55f(0x263)],this[_0x44f55f(0x240)],this['_colLevelPool'],t[_0x44f55f(0x26e)],_0xd57d57);}[_0x5ad6b7(0x4e0)](_0x539f10){const _0x189132=_0x5ad6b7;let _0x30ff0b={},_0x5be8c6=new Map(),_0x323bcd=this[_0x189132(0x167)],_0x3749e6=_0x323bcd+0x1,_0x436d2a=_0x539f10[_0x189132(0x3cc)];for(let _0x2b2911=0x0;_0x2b2911<this[_0x189132(0x167)];_0x2b2911++){let _0x3600e3=this['tuples'][_0x2b2911],_0x4306ca=_0x323bcd;for(let _0x22fb85=0x0;_0x22fb85<_0x436d2a;_0x22fb85++){let _0x3c9dad=_0x22fb85===_0x436d2a-0x1,_0x503b40=_0x3600e3[_0x189132(0x379)][_0x539f10[_0x22fb85]],_0x2d1c86=_0x2b2911,_0x1122a1=!0x0;if(!_0x3c9dad){let _0x59c9ac=_0x5be8c6[_0x189132(0x16d)](_0x4306ca);_0x59c9ac||(_0x59c9ac=new Map(),_0x5be8c6[_0x189132(0x34a)](_0x4306ca,_0x59c9ac));let _0x3c758e=_0x59c9ac[_0x189132(0x16d)](_0x503b40);_0x3c758e===void 0x0?(_0x2d1c86=_0x3749e6++,_0x59c9ac[_0x189132(0x34a)](_0x503b40,_0x2d1c86)):(_0x2d1c86=_0x3c758e,_0x1122a1=!0x1);}if(_0x1122a1){let _0x52481e=_0x22fb85+0x1;_0x30ff0b[_0x52481e]=_0x30ff0b[_0x52481e]||[],_0x30ff0b[_0x52481e]['push']({'p':_0x4306ca,'v':_0x2d1c86});}_0x4306ca=_0x2d1c86;}}return _0x30ff0b;}[_0x5ad6b7(0x417)](_0x2d9b63,_0x19553c,_0x2d7357){const _0x1b828d=_0x5ad6b7;let _0x5efb01={'path':_0x2d9b63,'indexes':[],'tuple':{},'types':[]};for(let _0x181548 of this[_0x1b828d(0x1f0)]){let _0x32ffd3=new N();_0x5efb01[_0x1b828d(0x39e)][_0x181548]=_0x32ffd3;}this['tuples'][_0x19553c]=_0x5efb01,this[_0x1b828d(0x25f)][_0x2d7357]=_0x19553c;}[_0x5ad6b7(0x221)](_0x290e04,_0x3a1dc8,_0x13ac06,_0x5449b7,_0x6e7d6f){const _0x538091=_0x5ad6b7;let _0x5bacb4=this['_getIndex'](),_0x3a1e63=new ft(_0x5bacb4,'',0x1);_0x3a1e63['setParentIndex'](-0x1),_0x3a1e63[_0x538091(0x235)](0x0),_0x3a1e63['setPaths']([]),this[_0x538091(0x417)](_0x3a1e63[_0x538091(0x274)](),_0x5bacb4,_0x5449b7);let _0x416082=this[_0x538091(0x30b)],_0x51a8d5=this[_0x538091(0x373)]+this['colDeep'],_0x284019=this[_0x538091(0x4d5)];for(let _0x18023a=0x0;_0x18023a<this[_0x538091(0x167)];_0x18023a++){if(_0x6e7d6f[_0x18023a]===0x0)continue;let _0x1f162f=this['tuples'][_0x18023a],_0x254377=_0x3a1e63,_0x1bb954=0x0;for(let _0x3372a6 of _0x290e04){let _0xc323fe=_0x1f162f[_0x538091(0x379)][_0x3372a6],_0x1ed43c=_0x1f162f['types'][_0x3372a6],_0x49d9b0=_0x284019[_0x3372a6];if(!_0x254377['hasNode'](_0xc323fe)){let _0xf94147=_0x1bb954===_0x51a8d5-0x1,_0x4da462=_0xf94147?_0x18023a:this['_getIndex'](),_0x1e3362=new ft(_0x4da462,_0x49d9b0,_0x1ed43c),_0x414553=this[_0x538091(0x2f1)][this['dimensionIdList'][_0x3372a6]][_0x538091(0x25e)];_0x1e3362[_0x538091(0x40c)](ve(_0x416082,_0x49d9b0,_0x414553[_0x538091(0x3a6)](_0xc323fe)));let {sortMap:_0xde597,type:_0x2d52a0}=this[_0x538091(0x3f8)][_0x49d9b0]??{},_0x258493=_0x414553 instanceof W?_0x414553[_0x538091(0x4c3)](_0xc323fe):_0x414553[_0x538091(0x3a6)](_0xc323fe);_0x254377[_0x538091(0x2b9)](_0x1e3362,_0xc323fe,_0xde597,_0x2d52a0,_0x258493);let _0x13c168=_0x1e3362[_0x538091(0x1f6)]();_0xf94147?_0x1e3362[_0x538091(0x1f9)]():this[_0x538091(0x14e)](_0x4da462,_0x1e3362[_0x538091(0x274)](),_0x3a1dc8),_0x13ac06[_0x13c168]=_0x13ac06[_0x13c168]||[],_0x13ac06[_0x13c168][_0x538091(0x3ed)]({'p':_0x254377['getIndex'](),'v':_0x4da462});}_0x254377=_0x254377[_0x538091(0x333)](_0xc323fe),_0x1bb954++;}}return _0x3a1e63;}[_0x5ad6b7(0x428)](_0x9c08b,_0x481ceb){const _0x1d6ee8=_0x5ad6b7;if(this['combinePathMap'][_0x481ceb])return this[_0x1d6ee8(0x31b)][_0x481ceb];let _0x2ddd15={};this['combinePathMap'][_0x481ceb]=_0x2ddd15;let _0x6603fe={};for(let _0x1a0830 of _0x9c08b)for(let _0x3ce0bf in _0x1a0830){let _0x2a2c75=[_0x481ceb,_0x3ce0bf][_0x1d6ee8(0x1b0)](t[_0x1d6ee8(0x390)]);if(_0x2ddd15[_0x3ce0bf]===void 0x0){let _0xe3cf00=this[_0x1d6ee8(0x3b7)]();this[_0x1d6ee8(0x184)](_0xe3cf00,_0x2a2c75),_0x2ddd15[_0x3ce0bf]=_0xe3cf00;}_0x6603fe[_0x2a2c75]===void 0x0&&(_0x6603fe[_0x2a2c75]=[]),_0x6603fe[_0x2a2c75][_0x1d6ee8(0x3ed)](_0x1a0830[_0x3ce0bf]);}for(let _0x39cfa2 in _0x6603fe){let _0x2e4425=_0x6603fe[_0x39cfa2],_0x482a96=this['tuples'][this[_0x1d6ee8(0x25f)][_0x39cfa2]];this[_0x1d6ee8(0x34c)](_0x482a96,_0x2e4425);}return _0x2ddd15;}['calculateListSubtotal'](_0x54206e,_0x302463){const _0x17bd1e=_0x5ad6b7;_0x54206e[_0x17bd1e(0x222)]||={};let _0x17d253=_0x54206e[_0x17bd1e(0x222)];for(let _0x2735e1 in this[_0x17bd1e(0x2f9)]){let _0x4eaca8=this[_0x17bd1e(0x2f9)][_0x2735e1][_0x17bd1e(0x396)],_0x3fcc0f=_0x54206e[_0x17bd1e(0x39e)][_0x2735e1],_0x49a1b4=_0x302463[_0x17bd1e(0x3c7)](_0xcb5ebd=>this[_0x17bd1e(0x1be)][_0xcb5ebd]['tuple'][_0x2735e1]);_0x3fcc0f[_0x17bd1e(0x393)](_0x49a1b4);let _0x4e2b6a=_0x3fcc0f[_0x17bd1e(0x422)]();for(let _0x5e4320 of _0x4eaca8)_0x4e2b6a[_0x5e4320]=_0x3fcc0f[_0x17bd1e(0x1db)](_0x5e4320);_0x17d253[_0x2735e1]=_0x4e2b6a;}}['calculateSubtotal'](_0x2c32a2){const _0xed6ef9=_0x5ad6b7;this[_0xed6ef9(0x25b)](this[_0xed6ef9(0x47f)],_0x2c32a2),this[_0xed6ef9(0x25b)](this['_colLevelPool'],_0x2c32a2);let _0x310dcc=this[_0xed6ef9(0x1be)][this[_0xed6ef9(0x4b2)]['getIndex']()],_0x34b5c0=this['tuples'][this[_0xed6ef9(0x36c)][_0xed6ef9(0x15a)]()];this[_0xed6ef9(0x373)]+this['colDeep']===0x0&&this[_0xed6ef9(0x1be)][_0xed6ef9(0x3cc)]>0x0&&z(this[_0xed6ef9(0x1be)][0x0],_0x310dcc,this[_0xed6ef9(0x2f9)]),z(_0x310dcc,void 0x0,this[_0xed6ef9(0x2f9)]),z(_0x34b5c0,void 0x0,this[_0xed6ef9(0x2f9)]);}[_0x5ad6b7(0x42f)](_0x23b07f,_0x4b7f22){const _0x2d9297=_0x5ad6b7;let _0x59bf6b=[];for(let _0x51c030=0x0;_0x51c030<_0x23b07f[_0x2d9297(0x3cc)];_0x51c030++)_0x59bf6b['push'](''+_0x4b7f22[_0x51c030]+t[_0x2d9297(0x390)]+_0x23b07f[_0x51c030]);return _0x59bf6b['join'](t[_0x2d9297(0x4c8)]);}['ensureTupleItem'](_0x136a29,_0x5b5f1c,_0xb7c3ef){const _0x26eac7=_0x5ad6b7;if(!this['tuples'][_0x136a29]){let _0x40f6a7=this[_0x26eac7(0x42f)](_0x5b5f1c,_0xb7c3ef);this[_0x26eac7(0x417)](_0x5b5f1c,_0x136a29,_0x40f6a7);}}[_0x5ad6b7(0x184)](_0x392856,_0x59f555){const _0x5c86d1=_0x5ad6b7;this[_0x5c86d1(0x1be)][_0x392856]||this[_0x5c86d1(0x3c0)]([],_0x59f555,_0x392856);}[_0x5ad6b7(0x3c0)](_0x316195,_0x5b2163,_0x48d417){const _0x248812=_0x5ad6b7;let _0x2dd1a9=_0x5b2163||_0x316195[_0x248812(0x1b0)](t['TUPLE_PLACEHOLDER']);if(!this[_0x248812(0x25f)][_0x2dd1a9]){let _0x1070ef={'path':_0x316195,'indexes':[],'tuple':{},'types':[]};for(let _0x2d2769 of this['measureIdList']){let _0x1c80b2=new N();_0x1070ef[_0x248812(0x39e)][_0x2d2769]=_0x1c80b2;}if(_0x48d417===void 0x0){let _0x34c39e=this[_0x248812(0x1be)]['push'](_0x1070ef);this['tupleMap'][_0x2dd1a9]=_0x34c39e-0x1;}else this['tuples'][_0x48d417]=_0x1070ef,this['tupleMap'][_0x2dd1a9]=_0x48d417;}}[_0x5ad6b7(0x2d0)](){const _0x2bd513=_0x5ad6b7;let _0x2aef37=this['valueFilterInfo'],_0x2ea09a=new Uint8Array(this[_0x2bd513(0x167)]);if(_0x2ea09a[_0x2bd513(0x314)](0x1),_0x2aef37[_0x2bd513(0x3cc)]===0x0)return _0x2ea09a;let _0x15c21a=this['_createValueFilterLevelPool'](this[_0x2bd513(0x327)]),_0x18b1ce=this[_0x2bd513(0x373)]===0x0||this[_0x2bd513(0x391)]===0x0?_0x15c21a:this[_0x2bd513(0x4e0)](this['colDimOrder']);for(let {fieldId:_0x42344a,filterInfo:_0x3f5eb5}of _0x2aef37)this[_0x2bd513(0x1bb)](_0x42344a,_0x3f5eb5['valueFieldId'],_0x3f5eb5,_0x2ea09a,_0x15c21a,_0x18b1ce);return _0x2ea09a;}[_0x5ad6b7(0x1bb)](_0x9bcd90,_0x13ef6b,_0x434d03,_0x3bfa4f,_0x3a2bdb,_0x14e4e4){const _0x23e293=_0x5ad6b7;let _0x352b2f=this[_0x23e293(0x3ac)](_0x9bcd90,_0x3a2bdb,_0x14e4e4);if(_0x352b2f){let {pool:_0x39c6fc,fieldIdList:_0x13f4c6}=_0x352b2f,_0x45c0cd=_0x13f4c6[_0x23e293(0x358)](_0x9bcd90);if(_0x45c0cd===-0x1)return;let _0x33c19e=this[_0x23e293(0x373)]+this[_0x23e293(0x391)],_0x428502=[],_0x27d4be=this[_0x23e293(0x21d)][_0x13ef6b][_0x23e293(0x396)],_0x2da705=this['subtotalMap'][_0x13ef6b][_0x23e293(0x2ab)];for(let _0x30563b=_0x33c19e;_0x30563b>_0x45c0cd;_0x30563b--)if(_0x39c6fc[_0x30563b]){let _0x46b8a2=_0x39c6fc[_0x30563b];for(let {p:_0xa2331a,v:_0x58b74b}of _0x46b8a2)(_0x33c19e!==_0x30563b||_0x3bfa4f[_0x58b74b]!==0x0)&&Ae(_0x428502,_0x30563b===_0x33c19e?this[_0x23e293(0x1be)][_0x58b74b]:void 0x0,_0x2da705,_0x27d4be,_0x58b74b,_0xa2331a);}let _0x396e38=_0x39c6fc[_0x45c0cd+0x1]??[],_0x295206=_t(_0x434d03,_0x396e38,_0x428502,_0x27d4be),_0xf63ad2=new Set();for(let {v:_0x3446dc}of _0x396e38){if(_0x428502[_0x3446dc]===void 0x0)continue;let _0x5b8a31=_0x428502[_0x3446dc][_0x23e293(0x39e)][_0x23e293(0x1db)](_0x27d4be);je(_0x5b8a31)?_0xf63ad2[_0x23e293(0x39f)](_0x3446dc):_0x295206(_0x5b8a31)||_0xf63ad2['add'](_0x3446dc);}let _0x350842=_0x45c0cd+0x1;if(_0x350842===_0x33c19e){for(let _0x1d93e1 of _0xf63ad2)_0x3bfa4f[_0x1d93e1]=0x0;return;}for(;_0x39c6fc[_0x350842+0x1];){let _0x330f59=new Set(),_0x1af17f=_0x39c6fc[_0x350842+0x1];for(let {p:_0x4e9908,v:_0x55e784}of _0x1af17f)_0xf63ad2['has'](_0x4e9908)&&(_0x330f59['add'](_0x55e784),_0x350842+0x1===_0x33c19e&&(_0x3bfa4f[_0x55e784]=0x0));_0x350842++,_0xf63ad2=_0x330f59;}}}[_0x5ad6b7(0x3ac)](_0x2b9c18,_0x1a81fd,_0x31c6eb){const _0x172eed=_0x5ad6b7;if(this[_0x172eed(0x373)]===0x0||this[_0x172eed(0x391)]===0x0)return{'pool':_0x1a81fd,'fieldIdList':this[_0x172eed(0x241)]};let _0x382317=this[_0x172eed(0x241)]['findIndex'](_0x6de6f0=>_0x6de6f0===_0x2b9c18);if(_0x382317>=0x0&&_0x382317<this[_0x172eed(0x373)])return{'pool':_0x1a81fd,'fieldIdList':this[_0x172eed(0x241)]};let _0x7e1d02=this[_0x172eed(0x240)][_0x172eed(0x206)](_0x3dfefe=>_0x3dfefe===_0x2b9c18);return _0x7e1d02>=0x0&&_0x7e1d02<this[_0x172eed(0x391)]?{'pool':_0x31c6eb,'fieldIdList':this[_0x172eed(0x240)]}:null;}[_0x5ad6b7(0x25b)](_0x2b5b78,_0x346213){const _0x4c622c=_0x5ad6b7;let _0x44cf20=this[_0x4c622c(0x373)]+this['colDeep'];for(let _0x423c4f=_0x44cf20;_0x423c4f>=0x0;_0x423c4f--)if(_0x2b5b78[_0x423c4f]){let _0x471a6b=_0x2b5b78[_0x423c4f];for(let {p:_0x17d0bd,v:_0x4e97b2}of _0x471a6b){if(_0x4e97b2<this[_0x4c622c(0x167)]&&_0x346213[_0x4e97b2]===0x0)continue;let _0x45518f=this[_0x4c622c(0x1be)][_0x4e97b2];z(_0x45518f,this[_0x4c622c(0x1be)][_0x17d0bd],this['measuresMap']);}}}},yt=class{constructor(){const _0x3c8d19=_0x5ad6b7;M(this,_0x3c8d19(0x1be),[]),M(this,_0x3c8d19(0x25f),{}),M(this,'measuresMap',{}),M(this,_0x3c8d19(0x1b4),[]),M(this,_0x3c8d19(0x4d5),[]),M(this,_0x3c8d19(0x1f0),[]),M(this,_0x3c8d19(0x2f1),{}),M(this,_0x3c8d19(0x373),0x0),M(this,_0x3c8d19(0x391),0x0),M(this,_0x3c8d19(0x14a),void 0x0);}[_0x5ad6b7(0x1e1)](_0x2b7823,_0x276275){const _0x1141ae=_0x5ad6b7;this[_0x1141ae(0x14a)]=_0x2b7823;let {valueQueryInfo:_0x23f05a,rowQueryInfo:_0x30ad88,colQueryInfo:_0x41ce8c,filterQueryInfo:_0x2dd708,hiddenQueryInfo:_0x52b4b3=[]}=_0x276275;for(let _0x49e2a3 of _0x23f05a){let _0x52ca83=_0x49e2a3['dataFieldId'],_0x13f101=_0x2b7823[_0x1141ae(0x22b)](_0x52ca83);if(!_0x13f101)continue;this[_0x1141ae(0x2f9)][_0x52ca83]||(this[_0x1141ae(0x1f0)][_0x1141ae(0x3ed)](_0x52ca83),this[_0x1141ae(0x2f9)][_0x52ca83]={'field':_0x13f101,'subTotal':[]});let _0x172af5=this[_0x1141ae(0x2f9)][_0x52ca83],{subtotal:_0x355bd9}=_0x49e2a3;_0x172af5[_0x1141ae(0x396)][_0x1141ae(0x4da)](_0x355bd9)||_0x172af5[_0x1141ae(0x396)]['push'](_0x355bd9);}let _0x21e987=_0x30ad88[_0x1141ae(0x3cc)]+_0x41ce8c['length'],_0x4b63c2=0x0;for(let _0x554301 of[..._0x30ad88,..._0x41ce8c,..._0x2dd708,..._0x52b4b3]){let _0x2e0cbd=_0x2b7823[_0x1141ae(0x22b)](_0x554301[_0x1141ae(0x2ab)]);_0x2e0cbd&&(this[_0x1141ae(0x2f1)][_0x554301[_0x1141ae(0x2ab)]]||(this[_0x1141ae(0x2f1)][_0x554301[_0x1141ae(0x2ab)]]={'field':_0x2e0cbd}),_0x4b63c2<_0x21e987?(this['dimensionIdList'][_0x1141ae(0x3ed)](_0x554301[_0x1141ae(0x2ab)]),this[_0x1141ae(0x4d5)]['push'](_0x554301['id'])):_0x4b63c2<_0x21e987+_0x2dd708[_0x1141ae(0x3cc)]&&_0x554301[_0x1141ae(0x384)]&&L(_0x554301[_0x1141ae(0x384)])&&(_0x554301[_0x1141ae(0x384)]['isAll']=_0x2e0cbd[_0x1141ae(0x2e3)][_0x1141ae(0x3cc)]===_0x554301[_0x1141ae(0x384)][_0x1141ae(0x39b)][_0x1141ae(0x3cc)]),_0x4b63c2++);}this[_0x1141ae(0x373)]=_0x30ad88[_0x1141ae(0x3cc)],this['colDeep']=_0x41ce8c[_0x1141ae(0x3cc)];}[_0x5ad6b7(0x152)](_0x143d7e){const _0xa6800f=_0x5ad6b7;let {rowQueryInfo:_0x20c288,colQueryInfo:_0xaf85be,filterQueryInfo:_0x308552,hiddenQueryInfo:_0x2a53aa=[]}=_0x143d7e,_0x1d8184=[],_0x519c4e=!0x1,_0x181c26=[..._0x20c288,..._0xaf85be,..._0x308552,..._0x2a53aa][_0xa6800f(0x37b)](_0x4e2780=>_0x4e2780[_0xa6800f(0x43c)]?[_0x4e2780,{..._0x4e2780,'filterInfo':_0x4e2780[_0xa6800f(0x43c)],'conditionFilter':void 0x0}]:[_0x4e2780]);for(let {dataFieldId:_0x485480,filterInfo:_0xe587cb}of _0x181c26){var _0x3526b2;if(_0xe587cb===void 0x0)continue;let _0x4cde8c=(_0x3526b2=this[_0xa6800f(0x2f1)][_0x485480])==null?void 0x0:_0x3526b2[_0xa6800f(0x25e)];if(!_0x4cde8c)throw TypeError('Missing\x20constrained\x20pivot\x20field:\x20'+_0x485480);if(D(_0xe587cb)){if(!O(_0xe587cb))continue;let _0x1df201=this[_0xa6800f(0x14a)][_0xa6800f(0x163)]['compileRecordFilter'](_0xe587cb);_0x519c4e=!0x0;let _0x2d6687=[];for(let _0x226812=0x0;_0x226812<_0x4cde8c[_0xa6800f(0x2bd)][_0xa6800f(0x3cc)];_0x226812++)_0x1df201(_0x4cde8c[_0xa6800f(0x2bd)][_0x226812])&&_0x2d6687['push'](_0x226812);_0x1d8184['push'](_0x2d6687);}else{if(L(_0xe587cb)){_0x519c4e=!0x0;let {list:_0x1c923e}=_0xe587cb,_0x529ed0=[];for(let _0x35c2cd of _0x1c923e)_0x529ed0[_0xa6800f(0x3ed)](_0x4cde8c['getIndexesByKey'](_0x35c2cd));_0x1d8184[_0xa6800f(0x3ed)](Ee(_0x529ed0));}else{if(ye(_0xe587cb)){if(_0x519c4e=!0x0,S(_0xe587cb)){let _0x21fe85=C(_0xe587cb),_0x7b7200=[];for(let _0x3cd5a4=0x0;_0x3cd5a4<_0x4cde8c[_0xa6800f(0x2bd)][_0xa6800f(0x3cc)];_0x3cd5a4++){let _0x464145=_0x4cde8c[_0xa6800f(0x2bd)][_0x3cd5a4];w(_0x464145)&&_0x21fe85(_0x464145['v'])&&_0x7b7200[_0xa6800f(0x3ed)](_0x3cd5a4);}_0x1d8184[_0xa6800f(0x3ed)](_0x7b7200);continue;}let {operator:_0x4d1462,expected:_0x4d0e1a}=_0xe587cb;if(_0x4d1462>=0x1&&_0x4d1462<=0xe){let _0x1f745a=ne(_0xe587cb),_0x128fdb=[];for(let _0x5a9df7=0x0;_0x5a9df7<_0x4cde8c[_0xa6800f(0x2bd)][_0xa6800f(0x3cc)];_0x5a9df7++){let _0x4188cd=_0x4cde8c[_0xa6800f(0x2bd)][_0x5a9df7],_0x2fdb80=String(_0x4188cd??'');w(_0x4188cd)?_0x2fdb80=String(_0x4188cd['v']):T(_0x4188cd)&&(_0x2fdb80=_0x4188cd[_0xa6800f(0x442)]),_0x1f745a(_0x2fdb80)&&_0x128fdb['push'](_0x5a9df7);}_0x1d8184['push'](_0x128fdb);continue;}if(_0x4cde8c[_0xa6800f(0x282)]()===0x2){let _0x79ebe=ke(_0x4cde8c[_0xa6800f(0x322)](),_0x4d1462,_0x4d0e1a);_0x1d8184['push'](Ee(_0x79ebe));}}}}}return!_0x519c4e&&_0x1d8184[_0xa6800f(0x3cc)]===0x0?{'isAll':!0x0,'list':[]}:{'isAll':!0x1,'list':xe(_0x1d8184)};}['query'](_0x2f9fed,_0x1bdfe0){const _0x3e898d=_0x5ad6b7;this['prepare'](_0x2f9fed,_0x1bdfe0);let {isAll:_0x6b2343,list:_0x4ae926}=this[_0x3e898d(0x152)](_0x1bdfe0);this[_0x3e898d(0x48d)](_0x6b2343,_0x4ae926,_0x2f9fed[_0x3e898d(0x2a6)]());}[_0x5ad6b7(0x3ee)](){const _0x59b27e=_0x5ad6b7;this[_0x59b27e(0x1be)]=[],this[_0x59b27e(0x2f9)]={},this[_0x59b27e(0x2f1)]={},this[_0x59b27e(0x25f)]={},this[_0x59b27e(0x1b4)]=[],this[_0x59b27e(0x4d5)]=[],this['measureIdList']=[];}['iterate'](_0x2ef0ba,_0x5e36fe,_0x1a3b17=0x0){const _0x3bc5ff=_0x5ad6b7;let _0x2b7eed=this[_0x3bc5ff(0x4d5)];if(_0x2ef0ba)for(let _0x1a6553=0x0;_0x1a6553<_0x1a3b17;_0x1a6553++){let _0x66bf2f=[],_0x3568ed=[],_0x19c3d8=[],_0x379050=0x0;for(let _0x4694b8 of this[_0x3bc5ff(0x1b4)]){let _0x60efac=this['dimensionMap'][_0x4694b8][_0x3bc5ff(0x25e)],_0x4a99dd=_0x60efac[_0x3bc5ff(0x3be)](_0x1a6553);_0x19c3d8[_0x3bc5ff(0x3ed)](_0x2b7eed[_0x379050]+t['TUPLE_FIELD_SEPARATOR']+_0x4a99dd),_0x66bf2f[_0x3bc5ff(0x3ed)](_0x4a99dd),_0x3568ed[_0x3bc5ff(0x3ed)](_0x60efac[_0x3bc5ff(0x4d0)](_0x4a99dd)),_0x379050++;}this['createOrUpdateTuple'](_0x66bf2f,_0x19c3d8,_0x1a6553,_0x3568ed);}for(let _0x407ba1 of _0x5e36fe){let _0x424e68=[],_0x24e61c=[],_0x8db072=[],_0x321c8c=0x0;for(let _0xd26ce of this['dimensionIdList']){let _0x3f951d=this[_0x3bc5ff(0x2f1)][_0xd26ce][_0x3bc5ff(0x25e)],_0xbf74ae=_0x3f951d[_0x3bc5ff(0x3be)](_0x407ba1);_0x8db072[_0x3bc5ff(0x3ed)](_0x2b7eed[_0x321c8c]+t[_0x3bc5ff(0x390)]+_0xbf74ae),_0x424e68['push'](_0xbf74ae),_0x24e61c[_0x3bc5ff(0x3ed)](_0x3f951d[_0x3bc5ff(0x4d0)](_0xbf74ae)),_0x321c8c++;}this[_0x3bc5ff(0x1d0)](_0x424e68,_0x8db072,_0x407ba1,_0x24e61c);}}['createOrUpdateTuple'](_0x753901,_0x1d449b,_0x4fe536,_0x2aa09f){const _0xaed21c=_0x5ad6b7;let _0x550650=_0x1d449b[_0xaed21c(0x1b0)](t[_0xaed21c(0x4c8)]);this[_0xaed21c(0x25f)][_0x550650]===void 0x0&&this[_0xaed21c(0x3c0)](_0x753901,_0x550650,void 0x0,_0x2aa09f);let _0x54cdd1=this[_0xaed21c(0x1be)][this[_0xaed21c(0x25f)][_0x550650]];_0x54cdd1[_0xaed21c(0x3d3)]['push'](_0x4fe536);for(let _0x25678b of this[_0xaed21c(0x1f0)]){let _0x25ac2c=_0x54cdd1[_0xaed21c(0x39e)][_0x25678b],_0x2c97c0=this['measuresMap'][_0x25678b][_0xaed21c(0x25e)][_0xaed21c(0x405)](_0x4fe536);_0x25ac2c['addValue'](_0x2c97c0);}}[_0x5ad6b7(0x3c0)](_0x2f38b6,_0xcacfaf,_0x4eb1b8,_0x5c4d26=[]){const _0x7a0daf=_0x5ad6b7;let _0x493ba2=_0xcacfaf||_0x2f38b6[_0x7a0daf(0x1b0)](t['TUPLE_PLACEHOLDER']);if(!this[_0x7a0daf(0x25f)][_0x493ba2]){let _0xe0073f={'path':_0x2f38b6,'types':_0x5c4d26,'indexes':[],'tuple':{}};for(let _0x575e6e of this[_0x7a0daf(0x1f0)]){let _0x39f517=new N();_0xe0073f[_0x7a0daf(0x39e)][_0x575e6e]=_0x39f517;}if(_0x4eb1b8===void 0x0){let _0x943e9=this[_0x7a0daf(0x1be)][_0x7a0daf(0x3ed)](_0xe0073f);this[_0x7a0daf(0x25f)][_0x493ba2]=_0x943e9-0x1;}else this[_0x7a0daf(0x1be)][_0x4eb1b8]=_0xe0073f,this['tupleMap'][_0x493ba2]=_0x4eb1b8;}}};const bt=_0x4a05c1=>_0x4a05c1[_0x5ad6b7(0x4a8)]!==void 0x0,xt=_0x524a4f=>{const _0x4475b6=_0x5ad6b7;if(bt(_0x524a4f)){let {type:_0x4f7e2c,baseFieldId:_0x5d87a9,sortItems:_0x34a828,sortLocale:_0x324936}=_0x524a4f;return{'type':_0x4f7e2c,'baseFieldId':_0x5d87a9,'sortItems':_0x34a828[_0x4475b6(0x14f)](),..._0x324936===void 0x0?{}:{'sortLocale':_0x324936}};}return _0x4475b6(0x297)in _0x524a4f?{..._0x524a4f,'customOrder':_0x524a4f[_0x4475b6(0x297)][_0x4475b6(0x14f)]()}:{..._0x524a4f};},Y=_0x534854=>({..._0x534854}),St=()=>({'type':0x1,'baseFieldId':'','baseItem':''});var Ct=class{constructor(_0x1adaa7,_0x381688,_0x1e2b0f='',_0x21f63f){const _0x7a422=_0x5ad6b7;M(this,_0x7a422(0x2ab),void 0x0),M(this,'id',void 0x0),M(this,_0x7a422(0x48a),void 0x0),M(this,_0x7a422(0x3fb),void 0x0),M(this,_0x7a422(0x2aa),void 0x0),M(this,_0x7a422(0x217),void 0x0),this['dataFieldId']=_0x1adaa7,this['id']=_0x381688,this[_0x7a422(0x3fb)]=_0x1e2b0f,this[_0x7a422(0x48a)]=_0x21f63f;}[_0x5ad6b7(0x431)](){return this['id'];}[_0x5ad6b7(0x3fc)](){return this['sourceName'];}['setSourceName'](_0x38eb19){this['sourceName']=_0x38eb19;}[_0x5ad6b7(0x21b)](_0x192a76){this['dataFieldId']=_0x192a76;}['getDataFieldId'](){const _0x1977ce=_0x5ad6b7;return this[_0x1977ce(0x2ab)];}[_0x5ad6b7(0x3cb)](){const _0x28bed6=_0x5ad6b7;return this[_0x28bed6(0x2aa)];}[_0x5ad6b7(0x42b)](_0x5e8ae6){const _0x5d0eb1=_0x5ad6b7;this[_0x5d0eb1(0x2aa)]=_0x5e8ae6;}['setDisplayName'](_0x1cfdcc){const _0x4517f9=_0x5ad6b7;this[_0x4517f9(0x3fb)]=_0x1cfdcc;}[_0x5ad6b7(0x4b8)](){const _0x191629=_0x5ad6b7;return this[_0x191629(0x3fb)];}},X=class extends Ct{constructor(_0x1df860,_0x39a311,_0x35fbd2='',_0x156d3a){const _0x592a6e=_0x5ad6b7;super(_0x1df860,_0x39a311,_0x35fbd2,_0x156d3a),M(this,_0x592a6e(0x223),void 0x0),M(this,'showDataAs',St());}[_0x5ad6b7(0x15c)](_0xfdc4f){this['subtotal']=_0xfdc4f;}[_0x5ad6b7(0x1db)](){const _0x41f662=_0x5ad6b7;return this[_0x41f662(0x223)];}[_0x5ad6b7(0x466)](_0x429f71){this['showDataAs']=Y(_0x429f71);}[_0x5ad6b7(0x4df)](){const _0xca014a=_0x5ad6b7;return Y(this[_0xca014a(0x20d)]);}['getQueryData'](){const _0x59d6b1=_0x5ad6b7;return{'id':this['id'],'dataFieldId':this['dataFieldId'],'displayName':this[_0x59d6b1(0x3fb)],'subtotal':this['subtotal'],'showDataAs':Y(this[_0x59d6b1(0x20d)])};}[_0x5ad6b7(0x3ba)](){const _0x43573e=_0x5ad6b7;return{'id':this['id'],'dataFieldId':this['dataFieldId'],'displayName':this[_0x43573e(0x3fb)],'sourceName':this[_0x43573e(0x48a)],'subtotal':this[_0x43573e(0x223)],'format':this[_0x43573e(0x2aa)],'showDataAs':Y(this[_0x43573e(0x20d)])};}[_0x5ad6b7(0x29f)](_0x51cf2a){const _0x4451d4=_0x5ad6b7;this['id']=_0x51cf2a['id'],this[_0x4451d4(0x2ab)]=_0x51cf2a[_0x4451d4(0x2ab)],this[_0x4451d4(0x3fb)]=_0x51cf2a['displayName'],this['sourceName']=_0x51cf2a['sourceName'],this[_0x4451d4(0x2aa)]=_0x51cf2a['format'],this['subtotal']=_0x51cf2a['subtotal'];let _0x3ddfb8=_0x51cf2a['showDataAs'];this['showDataAs']=(_0x3ddfb8==null?void 0x0:_0x3ddfb8[_0x4451d4(0x3b6)])===void 0x0?St():Y(_0x3ddfb8);}},Z=class extends Ct{constructor(_0x138946,_0x51adc8,_0x3613d5='',_0x3e2d81){const _0x3b955f=_0x5ad6b7;super(_0x138946,_0x51adc8,_0x3613d5,_0x3e2d81),M(this,_0x3b955f(0x3a5),void 0x0),M(this,_0x3b955f(0x384),void 0x0),M(this,_0x3b955f(0x43c),void 0x0);}[_0x5ad6b7(0x16e)](_0x33808e){const _0x562bfa=_0x5ad6b7;this[_0x562bfa(0x3a5)]=_0x33808e?xt(_0x33808e):void 0x0;}['getSortInfo'](){const _0x529970=_0x5ad6b7;return this[_0x529970(0x3a5)]?xt(this[_0x529970(0x3a5)]):void 0x0;}[_0x5ad6b7(0x161)](_0x3a6717){this['filterInfo']=D(_0x3a6717)||S(_0x3a6717)?k(_0x3a6717):_0x3a6717;}[_0x5ad6b7(0x49b)](){const _0x224ff9=_0x5ad6b7;return D(this[_0x224ff9(0x384)])||S(this[_0x224ff9(0x384)])?k(this[_0x224ff9(0x384)]):this[_0x224ff9(0x384)];}[_0x5ad6b7(0x2cf)](){const _0x54ed10=_0x5ad6b7;var _0x411ffa;return k(this[_0x54ed10(0x43c)]??(((_0x411ffa=this['filterInfo'])==null?void 0x0:_0x411ffa[_0x54ed10(0x3b6)])===0x1?this[_0x54ed10(0x384)]:void 0x0));}[_0x5ad6b7(0x273)](_0xdde287){const _0x102e83=_0x5ad6b7;if(_0xdde287!==void 0x0&&_0xdde287['type']!==0x1&&(!D(_0xdde287)||!_0xdde287[_0x102e83(0x41b)]||_0xdde287['selection']!==void 0x0))throw TypeError('Invalid\x20pivot\x20condition\x20filter.');this[_0x102e83(0x43c)]=k(_0xdde287);}[_0x5ad6b7(0x26b)](){const _0x568cbc=_0x5ad6b7;return{'id':this['id'],'dataFieldId':this[_0x568cbc(0x2ab)],'displayName':this['displayName'],'sortInfo':this[_0x568cbc(0x39a)](),'filterInfo':this[_0x568cbc(0x384)]&&(D(this[_0x568cbc(0x384)])||S(this[_0x568cbc(0x384)])?k(this['filterInfo']):Object[_0x568cbc(0x3fd)]({},this[_0x568cbc(0x384)])),...this[_0x568cbc(0x43c)]?{'conditionFilter':this['getConditionFilterInfo']()}:{}};}[_0x5ad6b7(0x3ba)](){const _0xb92d45=_0x5ad6b7;return{'id':this['id'],'dataFieldId':this[_0xb92d45(0x2ab)],'displayName':this[_0xb92d45(0x3fb)],'format':this[_0xb92d45(0x2aa)],'sourceName':this[_0xb92d45(0x48a)],'sortInfo':this[_0xb92d45(0x3a5)]?xt(this[_0xb92d45(0x3a5)]):void 0x0,'filterInfo':D(this[_0xb92d45(0x384)])||S(this[_0xb92d45(0x384)])?k(this[_0xb92d45(0x384)]):this[_0xb92d45(0x384)]||void 0x0,...this[_0xb92d45(0x43c)]?{'conditionFilter':this[_0xb92d45(0x2cf)]()}:{}};}[_0x5ad6b7(0x29f)](_0x1df76a){const _0x24a238=_0x5ad6b7;var _0x6b13a;if(_0x1df76a['conditionFilter']&&(((_0x6b13a=_0x1df76a[_0x24a238(0x384)])==null?void 0x0:_0x6b13a[_0x24a238(0x3b6)])===0x1||D(_0x1df76a[_0x24a238(0x384)])&&_0x1df76a[_0x24a238(0x384)][_0x24a238(0x41b)]!==void 0x0))throw TypeError('A\x20pivot\x20field\x20cannot\x20contain\x20two\x20date/label\x20conditions.');this['id']=_0x1df76a['id'],this['dataFieldId']=_0x1df76a[_0x24a238(0x2ab)],this[_0x24a238(0x3fb)]=_0x1df76a['displayName'],this['sourceName']=_0x1df76a[_0x24a238(0x48a)],this[_0x24a238(0x2aa)]=_0x1df76a['format'],_0x1df76a[_0x24a238(0x3a5)]&&this['setSortInfo'](_0x1df76a[_0x24a238(0x3a5)]),_0x1df76a[_0x24a238(0x384)]&&(this[_0x24a238(0x384)]=D(_0x1df76a['filterInfo'])||S(_0x1df76a[_0x24a238(0x384)])?k(_0x1df76a[_0x24a238(0x384)]):_0x1df76a['filterInfo']),this[_0x24a238(0x273)](_0x1df76a[_0x24a238(0x43c)]);}};function wt(_0x461513,_0x2a08a1=!0x0){const _0x37c48f=_0x5ad6b7;let _0x584418=new X(_0x461513[_0x37c48f(0x2ab)],_0x461513['id'],_0x461513[_0x37c48f(0x4b8)](),_0x461513['sourceName']);if(_e(_0x461513['getDisplayName'](),0x9),_0x584418[_0x37c48f(0x223)]=0x9,_0x461513[_0x37c48f(0x217)]){let _0x29a35e=_0x461513['lossLessProperty'];_0x29a35e[_0x37c48f(0x20d)]&&(_0x584418[_0x37c48f(0x20d)]=_0x29a35e[_0x37c48f(0x20d)]),_0x29a35e['subtotal']!==void 0x0&&(_0x584418[_0x37c48f(0x223)]=_0x29a35e[_0x37c48f(0x223)]);}return _0x2a08a1&&(_0x584418[_0x37c48f(0x217)]={'sortInfo':_0x461513[_0x37c48f(0x39a)](),'filterInfo':_0x461513[_0x37c48f(0x49b)](),..._0x461513[_0x37c48f(0x43c)]?{'conditionFilter':_0x461513['getConditionFilterInfo']()}:{}}),_0x584418;}function Tt(_0x33b92a,_0x527a1d=!0x0){const _0x3fa0cc=_0x5ad6b7;let _0x1ed9cc=new Z(_0x33b92a[_0x3fa0cc(0x2ab)],_0x33b92a['id'],_0x33b92a[_0x3fa0cc(0x4b8)](),_0x33b92a[_0x3fa0cc(0x48a)]);if(_0x1ed9cc[_0x3fa0cc(0x245)](_0x33b92a[_0x3fa0cc(0x4b8)]()),_0x33b92a[_0x3fa0cc(0x217)]){let _0x1193f9=_0x33b92a[_0x3fa0cc(0x217)];_0x1193f9[_0x3fa0cc(0x3a5)]&&(_0x1ed9cc[_0x3fa0cc(0x3a5)]=_0x1193f9[_0x3fa0cc(0x3a5)]),_0x1193f9[_0x3fa0cc(0x384)]&&(_0x1ed9cc[_0x3fa0cc(0x384)]=D(_0x1193f9[_0x3fa0cc(0x384)])?k(_0x1193f9[_0x3fa0cc(0x384)]):_0x1193f9['filterInfo']),_0x1ed9cc['setConditionFilterInfo'](_0x1193f9[_0x3fa0cc(0x43c)]);}return _0x527a1d&&(_0x1ed9cc[_0x3fa0cc(0x217)]={'subtotal':_0x33b92a['getSubtotal'](),'showDataAs':_0x33b92a[_0x3fa0cc(0x4df)]()}),_0x1ed9cc;}function Et(_0x46efdf){const _0x5a2663=_0x5ad6b7;let {dataFieldId:_0x5550da,id:_0x4517d3,sourceName:_0x1df301}=_0x46efdf,_0x38594a=new X(_0x5550da,_0x4517d3,'',_0x1df301);return _0x38594a[_0x5a2663(0x29f)](_0x46efdf),_0x38594a;}function Dt(_0x18f652){let {dataFieldId:_0x239d19,id:_0x32748c,sourceName:_0x91e78f}=_0x18f652,_0xc41013=new Z(_0x239d19,_0x32748c,'',_0x91e78f);return _0xc41013['fromJSON'](_0x18f652),_0xc41013;}var Ot=class e{constructor(){const _0x2c9b32=_0x5ad6b7;M(this,_0x2c9b32(0x214),[]),M(this,'columnFields',[]),M(this,_0x2c9b32(0x246),[]),M(this,'filterFields',[]),M(this,_0x2c9b32(0x357),[]),M(this,_0x2c9b32(0x2cc),Object['create'](null)),M(this,_0x2c9b32(0x47b),Object[_0x2c9b32(0x3a2)](null)),M(this,_0x2c9b32(0x3b8),-0x1),M(this,_0x2c9b32(0x3d8),-0x1),M(this,_0x2c9b32(0x436),0x3),M(this,_0x2c9b32(0x30b),Object[_0x2c9b32(0x3a2)](null)),M(this,_0x2c9b32(0x195),void 0x0),M(this,_0x2c9b32(0x429),void 0x0),M(this,_0x2c9b32(0x14d),!0x0),M(this,_0x2c9b32(0x3c1),[]),this[_0x2c9b32(0x195)]={'pageWrap':0x1,'pageOverThenDown':!0x1};}[_0x5ad6b7(0x208)](){const _0x1d3cb4=_0x5ad6b7;this[_0x1d3cb4(0x429)]=[];}[_0x5ad6b7(0x3f7)](){const _0x2c29b4=_0x5ad6b7;let _0x385070=this['_changeStack'];return delete this[_0x2c29b4(0x429)],_0x385070;}['setDirty'](_0x440386){const _0x583df2=_0x5ad6b7;this[_0x583df2(0x14d)]=_0x440386;}[_0x5ad6b7(0x4ab)](){const _0x2f52d6=_0x5ad6b7;return this[_0x2f52d6(0x14d)];}['setOptions'](_0x47235d,_0x59e781=!0x1){const _0x4c0f88=_0x5ad6b7;if(_0x47235d[_0x4c0f88(0x1f1)]!==void 0x0&&typeof _0x47235d[_0x4c0f88(0x1f1)]!='boolean')throw TypeError(_0x4c0f88(0x351));if(_0x47235d['dateGroupingMode']!==void 0x0&&_0x47235d[_0x4c0f88(0x2ed)]!==_0x4c0f88(0x296)&&_0x47235d[_0x4c0f88(0x2ed)]!==_0x4c0f88(0x281))throw TypeError(_0x4c0f88(0x375));!_0x59e781&&_0x47235d[_0x4c0f88(0x1f1)]===!0x1&&se(this[_0x4c0f88(0x3ba)]())&&this[_0x4c0f88(0x49a)]();let _0x4b4df8={...this[_0x4c0f88(0x195)]},_0xd60a18=_0x59e781?{..._0x47235d}:{...this[_0x4c0f88(0x195)],..._0x47235d},_0x4ed5e9=Object[_0x4c0f88(0x3ce)](_0xd60a18);if(!(_0x4ed5e9[_0x4c0f88(0x3cc)]===Object['keys'](_0x4b4df8)[_0x4c0f88(0x3cc)]&&_0x4ed5e9[_0x4c0f88(0x3d9)](_0x405dc5=>_0x4b4df8[_0x405dc5]===_0xd60a18[_0x405dc5]))&&(this[_0x4c0f88(0x195)]={..._0xd60a18},this[_0x4c0f88(0x429)])){let _0x41670a={'type':0x8,'oldOptions':_0x4b4df8,'newOptions':_0xd60a18};this[_0x4c0f88(0x429)][_0x4c0f88(0x3ed)](_0x41670a);}}[_0x5ad6b7(0x345)](){const _0x2c5709=_0x5ad6b7;return{...this[_0x2c5709(0x195)]};}['setLayout'](_0x1198d9){const _0x36a8c7=_0x5ad6b7;let _0x14e5a9=this[_0x36a8c7(0x436)];if(_0x14e5a9!==_0x1198d9&&(this[_0x36a8c7(0x436)]=_0x1198d9,this[_0x36a8c7(0x429)])){let _0x5265b3={'type':0xd,'oldLayout':_0x14e5a9,'newLayout':_0x1198d9};this['_changeStack'][_0x36a8c7(0x3ed)](_0x5265b3);}}[_0x5ad6b7(0x4be)](){return this['layout'];}[_0x5ad6b7(0x40c)](_0x256695,_0xc8089e,_0x1eb049,_0xdfc8f5){const _0x361762=_0x5ad6b7;let _0x152cba=this[_0x361762(0x30b)][_0x256695];if(_0x1eb049!==void 0x0){let _0x1748c6=_0x152cba===!0x0?Object[_0x361762(0x49e)]((_0xdfc8f5??[])[_0x361762(0x3c7)](_0xa72aec=>[_0xa72aec,!0x0])):_0x152cba,_0x3b1315=Object[_0x361762(0x3fd)](Object[_0x361762(0x3a2)](null),typeof _0x1748c6==_0x361762(0x4ba)?_0x1748c6:void 0x0);_0x3b1315[_0x1eb049]=_0xc8089e===!0x0,this[_0x361762(0x30b)][_0x256695]=_0x3b1315;}else _0xc8089e===void 0x0?delete this[_0x361762(0x30b)][_0x256695]:this[_0x361762(0x30b)][_0x256695]=typeof _0xc8089e==_0x361762(0x4ba)?Object['assign'](Object[_0x361762(0x3a2)](null),_0xc8089e):_0xc8089e;if(this[_0x361762(0x429)]){let _0xb6e4=this[_0x361762(0x30b)][_0x256695],_0x35db0c={'type':0xa,'fieldId':_0x256695,'collapse':typeof _0xb6e4==_0x361762(0x4ba)?{..._0xb6e4}:_0xb6e4,'previous':{'collapse':typeof _0x152cba==_0x361762(0x4ba)?{..._0x152cba}:_0x152cba}};this['_changeStack'][_0x361762(0x3ed)](_0x35db0c);}}[_0x5ad6b7(0x38e)](_0x39be44,_0xcad88e,_0x25fe76){const _0x1927f9=_0x5ad6b7;let _0x3e40bb=this[_0x1927f9(0x2cc)][_0x39be44];if(!_0x3e40bb)return;if(_0xcad88e===void 0x0){if(_0x25fe76!==void 0x0){this[_0x1927f9(0x30a)](_0x3e40bb['dataFieldId'],void 0x0,_0x25fe76);return;}this[_0x1927f9(0x1a0)](_0x39be44,void 0x0);return;}let _0x11cd4a=D(_0xcad88e)||S(_0xcad88e)?k(_0xcad88e):_0xcad88e,_0x11788e=_0x3e40bb['getFilterInfo'](),_0x46bba5=_0x25fe76??(_0xcad88e['type']===0x1||D(_0xcad88e)&&_0xcad88e['dateRange']!==void 0x0?_0x1927f9(0x4b9):_0x1927f9(0x32f));if((D(_0xcad88e)?O({'type':0x4,..._0x46bba5==='member'?{'selection':_0xcad88e[_0x1927f9(0x1df)]}:{'dateRange':_0xcad88e['dateRange']}}):O(_0xcad88e))&&this[_0x1927f9(0x195)][_0x1927f9(0x1f1)]!==!0x0){this[_0x1927f9(0x181)](_0x3e40bb[_0x1927f9(0x2ab)],_0x39be44),D(_0x11cd4a)&&(_0x11cd4a={'type':0x4,..._0x46bba5===_0x1927f9(0x32f)?{'selection':_0x11cd4a[_0x1927f9(0x1df)]}:{'dateRange':_0x11cd4a[_0x1927f9(0x41b)]}}),this['setFieldFilterState'](_0x39be44,_0x11cd4a);return;}this[_0x1927f9(0x30a)](_0x3e40bb[_0x1927f9(0x2ab)],_0x39be44,_0x46bba5);let _0x4b7021=_0x3e40bb['getConditionFilterInfo']();if(D(_0x11cd4a)){if(_0x46bba5===_0x1927f9(0x4b9)){if(_0x4b7021=void 0x0,(_0x11788e==null?void 0x0:_0x11788e[_0x1927f9(0x3b6)])===0x3&&_0x11cd4a[_0x1927f9(0x1df)]===void 0x0&&_0x11cd4a['dateRange']){this['setFieldFilterState'](_0x39be44,_0x11788e,{'type':0x4,'dateRange':_0x11cd4a['dateRange']});return;}D(_0x11788e)&&_0x11cd4a[_0x1927f9(0x1df)]===void 0x0&&(_0x11cd4a={..._0x11cd4a,..._0x11788e[_0x1927f9(0x1df)]?{'selection':_0x11788e[_0x1927f9(0x1df)]}:{}});}else D(_0x11788e)&&_0x11788e[_0x1927f9(0x41b)]&&(_0x11cd4a={..._0x11cd4a,'dateRange':_0x11788e['dateRange']});}else _0x11cd4a[_0x1927f9(0x3b6)]===0x3&&D(_0x11788e)&&_0x11788e['dateRange']&&(_0x4b7021={'type':0x4,'dateRange':_0x11788e['dateRange']});if(_0x11cd4a['type']===0x1&&_0x11788e&&_0x11788e['type']!==0x1){let _0x1661d2=k(_0x11788e);D(_0x1661d2)&&delete _0x1661d2['dateRange'],this[_0x1927f9(0x1a0)](_0x39be44,_0x1661d2,_0x11cd4a);}else this[_0x1927f9(0x1a0)](_0x39be44,_0x11cd4a,_0x11cd4a[_0x1927f9(0x3b6)]===0x1?void 0x0:_0x4b7021);}[_0x5ad6b7(0x1a0)](_0x1bfb5f,_0x474346,_0x5bac81){const _0x568904=_0x5ad6b7;if(this[_0x568904(0x2cc)][_0x1bfb5f]){if(_0x5bac81&&((_0x474346==null?void 0x0:_0x474346[_0x568904(0x3b6)])===0x1||D(_0x474346)&&_0x474346[_0x568904(0x41b)]!==void 0x0))throw TypeError(_0x568904(0x224));let _0x50e05f=k(_0x5bac81);if(_0x50e05f&&_0x50e05f[_0x568904(0x3b6)]!==0x1&&(!D(_0x50e05f)||!_0x50e05f['dateRange']||_0x50e05f[_0x568904(0x1df)]!==void 0x0))throw TypeError('Invalid\x20pivot\x20condition\x20filter.');let _0x7ce390=this[_0x568904(0x2cc)][_0x1bfb5f][_0x568904(0x43c)],_0x3ab3d7=this[_0x568904(0x2cc)][_0x1bfb5f][_0x568904(0x49b)](),_0x58a7d1=_0x3ab3d7===void 0x0||D(_0x3ab3d7)||S(_0x3ab3d7)?_0x3ab3d7:{..._0x3ab3d7};if(this['dimension'][_0x1bfb5f][_0x568904(0x161)](_0x474346),this['dimension'][_0x1bfb5f][_0x568904(0x273)](_0x50e05f),this['_changeStack']){let _0x334ce2={'type':0x4,'fieldId':_0x1bfb5f,'oldFilterInfo':_0x58a7d1,'newFilterInfo':D(_0x474346)||S(_0x474346)?k(_0x474346):_0x474346,..._0x7ce390||_0x5bac81?{'oldConditionFilter':k(_0x7ce390)??null,'newConditionFilter':k(_0x5bac81)??null}:{}};this['_changeStack']['push'](_0x334ce2);}this[_0x568904(0x2cb)](!0x0);}}[_0x5ad6b7(0x41f)](_0x51cc6d,_0x28e12e,_0xeecbd1){const _0x5c73f9=_0x5ad6b7;this[_0x5c73f9(0x262)](_0x51cc6d,_0x28e12e,_0xeecbd1,!0x0);}['setValueFilterState'](_0x204ba3,_0x41ce90,_0x1c4245){const _0x221563=_0x5ad6b7;this[_0x221563(0x262)](_0x204ba3,_0x41ce90,_0x1c4245,!0x1);}['_setValueFilterState'](_0x28e9cc,_0x36b9a8,_0x201908,_0x1d8640){const _0x38d040=_0x5ad6b7;let _0x1382fa=this[_0x38d040(0x3c1)][_0x38d040(0x206)](_0x8e4650=>_0x8e4650[_0x38d040(0x2c3)]===_0x28e9cc);if(_0x36b9a8===void 0x0&&_0x1382fa===-0x1)return;let {area:_0x2835c8}=this['getFieldPositionInfoById'](_0x28e9cc);if(_0x36b9a8!==void 0x0&&(_0x2835c8===void 0x0||!I(_0x2835c8)||!this[_0x38d040(0x47b)][_0x36b9a8[_0x38d040(0x2c0)]]||_0x36b9a8[_0x38d040(0x3b6)]!==0x2||!re(_0x36b9a8['operator']))){console[_0x38d040(0x442)](_0x38d040(0x1a9));return;}if(_0x1d8640&&_0x36b9a8&&this['options']['allowMultipleFilters']!==!0x0){let _0x51c0ce=this[_0x38d040(0x2cc)][_0x28e9cc];this[_0x38d040(0x181)](_0x51c0ce['dataFieldId'],_0x28e9cc,!0x0),(_0x51c0ce['filterInfo']||_0x51c0ce['conditionFilter'])&&this['setFieldFilterState'](_0x28e9cc,void 0x0),_0x1382fa=this['_valueFilterInfo'][_0x38d040(0x206)](_0xb4003f=>_0xb4003f[_0x38d040(0x2c3)]===_0x28e9cc);}else _0x1d8640&&_0x36b9a8&&(this[_0x38d040(0x30a)](this['dimension'][_0x28e9cc][_0x38d040(0x2ab)],_0x28e9cc,_0x38d040(0x414)),_0x1382fa=this[_0x38d040(0x3c1)][_0x38d040(0x206)](_0x30da0e=>_0x30da0e[_0x38d040(0x2c3)]===_0x28e9cc));let _0x285919=_0x1382fa===-0x1?void 0x0:this['_valueFilterInfo'][_0x1382fa][_0x38d040(0x384)];_0x1382fa!==-0x1&&this[_0x38d040(0x3c1)][_0x38d040(0x1b1)](_0x1382fa,0x1);let _0x7da72a=-0x1;if(_0x36b9a8&&(_0x7da72a=!_0x1d8640&&_0x201908!==void 0x0&&_0x201908>=0x0?Math[_0x38d040(0x3ef)](_0x201908,this[_0x38d040(0x3c1)][_0x38d040(0x3cc)]):_0x1382fa===-0x1?Math['min'](Math[_0x38d040(0x278)](_0x201908??this[_0x38d040(0x3c1)][_0x38d040(0x3cc)],0x0),this[_0x38d040(0x3c1)]['length']):_0x1382fa,this[_0x38d040(0x3c1)]['splice'](_0x7da72a,0x0,{'fieldId':_0x28e9cc,'filterInfo':Q(_0x36b9a8)})),this[_0x38d040(0x429)]){let _0x13aee2={'type':0xc,'fieldId':_0x28e9cc,'oldFilterInfo':Q(_0x285919),'filterInfo':Q(_0x36b9a8),'oldIndex':_0x1382fa,'newIndex':_0x7da72a};this[_0x38d040(0x429)][_0x38d040(0x3ed)](_0x13aee2);}}['getValueFilterInfo'](_0x3f7580){const _0x2d2470=_0x5ad6b7;let _0x4aa594=this[_0x2d2470(0x3c1)][_0x2d2470(0x46f)](_0x20a38e=>_0x20a38e[_0x2d2470(0x2c3)]===_0x3f7580);return Q(_0x4aa594==null?void 0x0:_0x4aa594[_0x2d2470(0x384)]);}[_0x5ad6b7(0x2cf)](_0xeeefd4){var _0x380d94;return(_0x380d94=this['dimension'][_0xeeefd4])==null?void 0x0:_0x380d94['getConditionFilterInfo']();}[_0x5ad6b7(0x369)](_0xef130e){const _0x18b597=_0x5ad6b7;let _0x1d2cec=this[_0x18b597(0x2cc)][_0xef130e];_0x1d2cec&&(this['_clearSourceFilters'](_0x1d2cec[_0x18b597(0x2ab)],_0xef130e),this[_0x18b597(0x1a0)](_0xef130e,void 0x0));}[_0x5ad6b7(0x49a)](){const _0x7f7087=_0x5ad6b7;for(let _0x5ebd1a of Object[_0x7f7087(0x44b)](this['dimension']))(_0x5ebd1a[_0x7f7087(0x384)]||_0x5ebd1a[_0x7f7087(0x43c)])&&this[_0x7f7087(0x1a0)](_0x5ebd1a['id'],void 0x0);for(let _0x4fead7 of this[_0x7f7087(0x3c1)][_0x7f7087(0x49d)]())this[_0x7f7087(0x41f)](_0x4fead7['fieldId'],void 0x0);}['_clearSourceFilters'](_0x34456f,_0x5256c6,_0x4e1d11=!0x1){const _0x350246=_0x5ad6b7;for(let _0x2d8728 of Object[_0x350246(0x44b)](this[_0x350246(0x2cc)]))_0x2d8728[_0x350246(0x2ab)]===_0x34456f&&(_0x2d8728['id']!==_0x5256c6&&(_0x2d8728[_0x350246(0x384)]||_0x2d8728[_0x350246(0x43c)])&&this[_0x350246(0x1a0)](_0x2d8728['id'],void 0x0),_0x4e1d11&&_0x2d8728['id']===_0x5256c6||this[_0x350246(0x41f)](_0x2d8728['id'],void 0x0));}['_clearSourceFilterCategory'](_0x4f5441,_0x200829,_0x23448a){const _0x2490ba=_0x5ad6b7;for(let _0x252b9b of Object['values'](this[_0x2490ba(0x2cc)])){if(_0x252b9b['id']===_0x200829||_0x252b9b[_0x2490ba(0x2ab)]!==_0x4f5441)continue;if(_0x23448a===_0x2490ba(0x414)){this[_0x2490ba(0x310)](_0x252b9b['id'],void 0x0);continue;}if(!oe(_0x252b9b[_0x2490ba(0x3ba)]())[_0x2490ba(0x3b0)](_0x23448a))continue;let _0x3ef36c=_0x252b9b[_0x2490ba(0x49b)](),_0x39854f=_0x252b9b[_0x2490ba(0x43c)];D(_0x3ef36c)?(_0x3ef36c=k(_0x3ef36c),_0x23448a==='member'?delete _0x3ef36c['selection']:delete _0x3ef36c[_0x2490ba(0x41b)],!_0x3ef36c[_0x2490ba(0x1df)]&&!_0x3ef36c['dateRange']&&(_0x3ef36c=void 0x0)):_0x3ef36c&&_0x3ef36c[_0x2490ba(0x3b6)]===0x1==(_0x23448a===_0x2490ba(0x4b9))&&(_0x3ef36c=void 0x0),_0x23448a===_0x2490ba(0x4b9)&&(_0x39854f=void 0x0),(_0x3ef36c!==_0x252b9b[_0x2490ba(0x384)]||_0x39854f!==_0x252b9b[_0x2490ba(0x43c)])&&this[_0x2490ba(0x1a0)](_0x252b9b['id'],_0x3ef36c,_0x39854f);}}[_0x5ad6b7(0x3f1)](){const _0xe95615=_0x5ad6b7;return this[_0xe95615(0x3c1)]['map']($);}[_0x5ad6b7(0x19f)](_0x27c5d0){const _0xa5b553=_0x5ad6b7;this['_valueFilterInfo']['find'](_0x437395=>_0x437395[_0xa5b553(0x2c3)]===_0x27c5d0)&&this[_0xa5b553(0x41f)](_0x27c5d0,void 0x0);}[_0x5ad6b7(0x463)](_0x302cb7){const _0x54e467=_0x5ad6b7;let _0x5648e4=this[_0x54e467(0x3c1)]['filter'](_0x111926=>_0x111926[_0x54e467(0x384)][_0x54e467(0x2c0)]===_0x302cb7);if(_0x5648e4&&_0x5648e4['length']>0x0){let _0x13ae42=_0x5648e4['length'];for(let _0x15019a=_0x13ae42-0x1;_0x15019a>=0x0;_0x15019a--)this['setValueFilterInfo'](_0x5648e4[_0x15019a][_0x54e467(0x2c3)],void 0x0);}}[_0x5ad6b7(0x413)](_0x5e295e){const _0x39a4a0=_0x5ad6b7;if(this[_0x39a4a0(0x2cc)][_0x5e295e])return this[_0x39a4a0(0x2cc)][_0x5e295e][_0x39a4a0(0x3cb)]();if(this[_0x39a4a0(0x47b)][_0x5e295e])return this[_0x39a4a0(0x47b)][_0x5e295e]['getFormat']();}[_0x5ad6b7(0x22a)](_0xa05587,_0x5661ba){const _0x4f60f7=_0x5ad6b7;let _0x2ee3fb;if(this[_0x4f60f7(0x2cc)][_0xa05587]&&this[_0x4f60f7(0x2cc)][_0xa05587][_0x4f60f7(0x42b)](_0x5661ba),this[_0x4f60f7(0x47b)][_0xa05587]&&this[_0x4f60f7(0x47b)][_0xa05587][_0x4f60f7(0x42b)](_0x5661ba),this[_0x4f60f7(0x429)]&&(this[_0x4f60f7(0x2cc)][_0xa05587]||this[_0x4f60f7(0x47b)][_0xa05587])){let _0x28ee87={'type':0x9,'fieldId':_0xa05587,'oldFormat':_0x2ee3fb,'newFormat':_0x5661ba};this[_0x4f60f7(0x429)][_0x4f60f7(0x3ed)](_0x28ee87);}}['setSortInfo'](_0x555b9c,_0x24c61f){const _0x533d7b=_0x5ad6b7;if(this[_0x533d7b(0x2cc)][_0x555b9c]){let _0x25e1e3=this[_0x533d7b(0x2cc)][_0x555b9c],_0x429094=_0x25e1e3[_0x533d7b(0x39a)]();if(_0x25e1e3[_0x533d7b(0x16e)](_0x24c61f),this['_changeStack']){let _0x28aa59={'type':0x5,'fieldId':_0x555b9c,'newSortInfo':_0x25e1e3['getSortInfo'](),'oldSortInfo':_0x429094};this['_changeStack'][_0x533d7b(0x3ed)](_0x28aa59);}}}[_0x5ad6b7(0x39a)](_0x1cbaea){const _0x19826f=_0x5ad6b7;if(this[_0x19826f(0x2cc)][_0x1cbaea])return this[_0x19826f(0x2cc)][_0x1cbaea]['getSortInfo']();}['getFilterInfo'](_0x2623f3){const _0x12d8c5=_0x5ad6b7;if(this['dimension'][_0x2623f3])return this[_0x12d8c5(0x2cc)][_0x2623f3][_0x12d8c5(0x49b)]();}[_0x5ad6b7(0x3bf)](_0x3c4ef3){const _0x11a963=_0x5ad6b7;Object[_0x11a963(0x44b)](this[_0x11a963(0x2cc)])['forEach'](_0x37d707=>{_0x3c4ef3(_0x37d707);}),Object[_0x11a963(0x44b)](this['measure'])[_0x11a963(0x334)](_0x3b787b=>{_0x3c4ef3(_0x3b787b);});}['iterateFieldDim'](_0x5a223c){const _0x85d1ec=_0x5ad6b7;Object[_0x85d1ec(0x44b)](this[_0x85d1ec(0x2cc)])[_0x85d1ec(0x334)](_0x7079f=>{_0x5a223c(_0x7079f);});}[_0x5ad6b7(0x2b3)](_0x25a5f6){const _0x583432=_0x5ad6b7;Object['values'](this[_0x583432(0x47b)])[_0x583432(0x334)](_0x385d15=>{_0x25a5f6(_0x385d15);});}[_0x5ad6b7(0x166)](_0x132180,_0x347169){const _0x123cc0=_0x5ad6b7;this[_0x123cc0(0x2d1)](_0x132180)[_0x123cc0(0x334)](_0x717bc0=>{let _0x34e659=this['getFieldById'](_0x717bc0);_0x34e659&&_0x347169(_0x34e659);});}[_0x5ad6b7(0x300)](_0x5dfdac,_0x3d37af,_0x38a68a){const _0x175d8f=_0x5ad6b7;if(this[_0x175d8f(0x22b)](_0x5dfdac['getId']())){console[_0x175d8f(0x442)]('The\x20field\x20'+_0x5dfdac[_0x175d8f(0x431)]()+_0x175d8f(0x3c6)+_0x5dfdac[_0x175d8f(0x4b8)]()+'\x20is\x20already\x20in\x20the\x20pivot\x20table.');return;}F(_0x3d37af)?this['dimension'][_0x5dfdac['id']]=_0x5dfdac:this[_0x175d8f(0x47b)][_0x5dfdac['id']]=_0x5dfdac;let _0x5ce99d;switch(_0x3d37af){case 0x1:_0x5ce99d=this['columnFields'];break;case 0x2:_0x5ce99d=this[_0x175d8f(0x214)];break;case 0x3:_0x5ce99d=this[_0x175d8f(0x246)];break;case 0x4:_0x5ce99d=this[_0x175d8f(0x341)];break;case 0x5:_0x5ce99d=this[_0x175d8f(0x357)];}_0x38a68a===void 0x0?_0x5ce99d['push'](_0x5dfdac['id']):_0x5ce99d[_0x175d8f(0x1b1)](_0x38a68a,0x0,_0x5dfdac['id']);let _0x549146=_0x38a68a===void 0x0?_0x5ce99d[_0x175d8f(0x3cc)]-0x1:_0x38a68a;if(this[_0x175d8f(0x429)]){let _0x5c5b3c={'type':0x0,'fieldJson':_0x5dfdac[_0x175d8f(0x3ba)](),'area':_0x3d37af,'index':_0x549146};this['_changeStack'][_0x175d8f(0x3ed)](_0x5c5b3c);}this[_0x175d8f(0x2cb)](!0x0);}[_0x5ad6b7(0x37a)](_0x213361){const _0x21aa1a=_0x5ad6b7;let _0x2ed98d,_0x3770a4=-0x1;return this['columnFields'][_0x21aa1a(0x358)](_0x213361)===-0x1?this[_0x21aa1a(0x214)]['indexOf'](_0x213361)===-0x1?this['valueFields']['indexOf'](_0x213361)===-0x1?this[_0x21aa1a(0x341)]['indexOf'](_0x213361)===-0x1?this[_0x21aa1a(0x357)][_0x21aa1a(0x358)](_0x213361)!==-0x1&&(_0x2ed98d=0x5,_0x3770a4=this['hiddenFields']['indexOf'](_0x213361)):(_0x2ed98d=0x4,_0x3770a4=this[_0x21aa1a(0x341)][_0x21aa1a(0x358)](_0x213361)):(_0x2ed98d=0x3,_0x3770a4=this[_0x21aa1a(0x246)]['indexOf'](_0x213361)):(_0x2ed98d=0x2,_0x3770a4=this[_0x21aa1a(0x214)]['indexOf'](_0x213361)):(_0x2ed98d=0x1,_0x3770a4=this[_0x21aa1a(0x1a5)]['indexOf'](_0x213361)),{'area':_0x2ed98d,'index':_0x3770a4};}[_0x5ad6b7(0x2f0)](_0x18bd93,_0x4505a5,_0x36ae2b){const _0x110aeb=_0x5ad6b7;let _0x4ce4e5=this[_0x110aeb(0x22b)](_0x18bd93);if(_0x4ce4e5){let _0x3b9a30=_0x4ce4e5[_0x110aeb(0x3fc)](),_0x508ce8=_0x4ce4e5[_0x110aeb(0x20a)]();if(_0x4ce4e5['setSourceName'](_0x4505a5),_0x4ce4e5[_0x110aeb(0x21b)](_0x36ae2b),this[_0x110aeb(0x429)]){let _0x1068b3={'type':0xb,'tableFieldId':_0x18bd93,'oldSourceName':_0x3b9a30,'newSourceName':_0x4505a5,'oldDataFieldId':_0x508ce8,'newDataFieldId':_0x36ae2b};this[_0x110aeb(0x429)]['push'](_0x1068b3);}this[_0x110aeb(0x2cb)](!0x0);}}[_0x5ad6b7(0x2d1)](_0x1227b1){const _0x2d56ae=_0x5ad6b7;switch(_0x1227b1){case 0x1:return this[_0x2d56ae(0x1a5)];case 0x2:return this[_0x2d56ae(0x214)];case 0x3:return this[_0x2d56ae(0x246)];case 0x4:return this[_0x2d56ae(0x341)];case 0x5:return this[_0x2d56ae(0x357)];}}[_0x5ad6b7(0x22b)](_0x79ee69){const _0xcd0228=_0x5ad6b7;if(this[_0xcd0228(0x2cc)][_0x79ee69])return this['dimension'][_0x79ee69];if(this[_0xcd0228(0x47b)][_0x79ee69])return this[_0xcd0228(0x47b)][_0x79ee69];}[_0x5ad6b7(0x42e)](_0x1bb983){const _0x595280=_0x5ad6b7;for(let _0x4f4770 of Object[_0x595280(0x44b)](this[_0x595280(0x2cc)]))if(_0x4f4770[_0x595280(0x4b8)]()===_0x1bb983)return!0x0;for(let _0x192a87 of Object[_0x595280(0x44b)](this['measure']))if(_0x192a87['getDisplayName']()===_0x1bb983)return!0x0;return!0x1;}[_0x5ad6b7(0x4b3)](_0x43d874,_0x355723){const _0x349447=_0x5ad6b7;let {area:_0x1dd660,index:_0x3cdfca}=this[_0x349447(0x37a)](_0x43d874);if(_0x1dd660===void 0x0||_0x3cdfca===-0x1){console['warn'](_0x349447(0x360)+_0x43d874+_0x349447(0x2dc));return;}let _0xbdfd4d=this[_0x349447(0x22b)](_0x43d874);if(!_0xbdfd4d){console[_0x349447(0x4d6)](_0x349447(0x360)+_0x43d874+_0x349447(0x2dc));return;}let _0x44b026=_0xbdfd4d[_0x349447(0x4b8)]();if(_0x44b026!==_0x355723){if(this[_0x349447(0x42e)](_0x355723))console[_0x349447(0x4d6)](_0x349447(0x233)+_0x355723+_0x349447(0x32c));else{if(_0xbdfd4d[_0x349447(0x245)](_0x355723),this[_0x349447(0x429)]){let _0x52ee50={'type':0x3,'fieldId':_0x43d874,'newName':_0x355723,'oldName':_0x44b026};this[_0x349447(0x429)]['push'](_0x52ee50);}}}}['removeField'](_0x36db66){const _0x2c2b44=_0x5ad6b7;let {area:_0x249a5d,index:_0x3702c2}=this['getFieldPositionInfoById'](_0x36db66);if(_0x249a5d===void 0x0||_0x3702c2===-0x1){console['warn'](_0x2c2b44(0x360)+_0x36db66+_0x2c2b44(0x2dc));return;}_0x249a5d===0x3?this[_0x2c2b44(0x463)](_0x36db66):I(_0x249a5d)&&this['removeValueFilterInfo'](_0x36db66),this[_0x2c2b44(0x2d1)](_0x249a5d)['splice'](_0x3702c2,0x1);let _0xf57b58;if(F(_0x249a5d)?(_0xf57b58=this['dimension'][_0x36db66][_0x2c2b44(0x3ba)](),delete this['dimension'][_0x36db66]):(_0xf57b58=this['measure'][_0x36db66][_0x2c2b44(0x3ba)](),delete this[_0x2c2b44(0x47b)][_0x36db66]),this[_0x2c2b44(0x429)]){let _0x11e683={'type':0x2,'fieldId':_0x36db66,'fieldJson':_0xf57b58,'area':_0x249a5d,'index':_0x3702c2};this[_0x2c2b44(0x429)][_0x2c2b44(0x3ed)](_0x11e683);}this['setDirty'](!0x0);}[_0x5ad6b7(0x30f)](_0x30bf32,_0x5a22cc,_0x29c733){const _0x49d16d=_0x5ad6b7;let {area:_0x23ccff,index:_0x2ccbf1}=this['getFieldPositionInfoById'](_0x30bf32);if(_0x23ccff===_0x5a22cc&&_0x2ccbf1===_0x29c733)return;if(_0x23ccff===void 0x0&&_0x2ccbf1===-0x1){console[_0x49d16d(0x4d6)](_0x49d16d(0x360)+_0x30bf32+_0x49d16d(0x2dc));return;}let _0x5cb5a6=this[_0x49d16d(0x2d1)](_0x5a22cc);this[_0x49d16d(0x2d1)](_0x23ccff)[_0x49d16d(0x1b1)](_0x2ccbf1,0x1),_0x5cb5a6[_0x49d16d(0x1b1)](_0x29c733,0x0,_0x30bf32);let _0x26b10e=F(_0x23ccff);if(_0x26b10e!==F(_0x5a22cc)){if(_0x26b10e){let _0x38f320=this[_0x49d16d(0x2cc)][_0x30bf32];delete this[_0x49d16d(0x2cc)][_0x30bf32];let _0x8766d5=wt(_0x38f320);this[_0x49d16d(0x47b)][_0x30bf32]=_0x8766d5;}else{let _0x2a12b0=this['measure'][_0x30bf32];delete this[_0x49d16d(0x47b)][_0x30bf32];let _0xdf75b3=Tt(_0x2a12b0);this[_0x49d16d(0x2cc)][_0x30bf32]=_0xdf75b3;}}if(this['_changeStack']){let _0x46ae99={'type':0x6,'fieldId':_0x30bf32,'oldArea':_0x23ccff,'newArea':_0x5a22cc,'oldIndex':_0x2ccbf1,'newIndex':_0x29c733};this['_changeStack'][_0x49d16d(0x3ed)](_0x46ae99);}I(_0x23ccff)&&I(_0x5a22cc)||_0x23ccff===0x3&&_0x5a22cc===0x3||_0x23ccff===0x5&&_0x5a22cc===0x5||_0x23ccff===0x4&&_0x5a22cc===0x4||this[_0x49d16d(0x2cb)](!0x0);}[_0x5ad6b7(0x378)](_0x4717cf,_0x48cb18){const _0x5afeee=_0x5ad6b7;let _0x123712=this['valuePosition'],_0x446932=this['valueIndex'];if(this[_0x5afeee(0x3d8)]=_0x4717cf,this[_0x5afeee(0x3b8)]=_0x48cb18,this[_0x5afeee(0x429)]){let _0x3fcc69={'type':0x7,'oldValuePosition':_0x123712,'newValuePosition':_0x4717cf,'oldIndex':_0x446932,'newIndex':_0x48cb18};this[_0x5afeee(0x429)][_0x5afeee(0x3ed)](_0x3fcc69);}}[_0x5ad6b7(0x207)](){const _0xc3562=_0x5ad6b7;return this[_0xc3562(0x3b8)];}[_0x5ad6b7(0x261)](){const _0x45af72=_0x5ad6b7;return this[_0x45af72(0x3d8)];}[_0x5ad6b7(0x32e)](){const _0x3d145a=_0x5ad6b7;return this[_0x3d145a(0x246)][_0x3d145a(0x3cc)]<=0x1?!0x1:this['valuePosition']===0x1;}[_0x5ad6b7(0x1cf)](){const _0x4203f1=_0x5ad6b7;return this[_0x4203f1(0x246)][_0x4203f1(0x3cc)]<=0x1?!0x1:this[_0x4203f1(0x3d8)]===0x2;}[_0x5ad6b7(0x376)](){const _0x18dbe0=_0x5ad6b7;return[][_0x18dbe0(0x14f)](this['rowFields'],this[_0x18dbe0(0x1a5)],this[_0x18dbe0(0x246)],this['filterFields'])['length']===0x0;}[_0x5ad6b7(0x2cd)](_0x3a2c7f,_0x51d204){const _0x594ed0=_0x5ad6b7;if(this[_0x594ed0(0x47b)][_0x3a2c7f]){let _0x2e5c67=this[_0x594ed0(0x47b)][_0x3a2c7f][_0x594ed0(0x1db)]();if(this[_0x594ed0(0x47b)][_0x3a2c7f][_0x594ed0(0x15c)](_0x51d204),this[_0x594ed0(0x429)]){let _0x24e35a={'type':0x1,'fieldId':_0x3a2c7f,'newSubtotalType':_0x51d204,'oldSubtotalType':_0x2e5c67};this[_0x594ed0(0x429)][_0x594ed0(0x3ed)](_0x24e35a);}this['setDirty'](!0x0);}}[_0x5ad6b7(0x4df)](_0x4d99cd){const _0x144774=_0x5ad6b7;var _0x17b8c3;return(_0x17b8c3=this['measure'][_0x4d99cd])==null?void 0x0:_0x17b8c3[_0x144774(0x4df)]();}['setShowDataAs'](_0x36a0d9,_0x45025d){const _0x2ae186=_0x5ad6b7;let _0x4c5b37=this['measure'][_0x36a0d9];if(!_0x4c5b37)return;let _0x31c0c4=_0x4c5b37[_0x2ae186(0x4df)]();if(_0x4c5b37[_0x2ae186(0x466)](_0x45025d),this['_changeStack']){let _0x2901e8={'type':0xe,'fieldId':_0x36a0d9,'oldShowDataAs':_0x31c0c4,'newShowDataAs':_0x4c5b37[_0x2ae186(0x4df)]()};this[_0x2ae186(0x429)][_0x2ae186(0x3ed)](_0x2901e8);}}[_0x5ad6b7(0x26b)](){const _0x3663d7=_0x5ad6b7;let _0x1695ba=this['dimension'],_0x189273=[];for(let _0x325db6 of this[_0x3663d7(0x214)])_0x1695ba[_0x325db6]&&_0x189273[_0x3663d7(0x3ed)](_0x1695ba[_0x325db6][_0x3663d7(0x26b)]());let _0xfca743=[];for(let _0x28ccf5 of this['columnFields'])_0x1695ba[_0x28ccf5]&&_0xfca743[_0x3663d7(0x3ed)](_0x1695ba[_0x28ccf5][_0x3663d7(0x26b)]());let _0x5571e3=[];for(let _0x294fa9 of this[_0x3663d7(0x341)])_0x1695ba[_0x294fa9]&&_0x5571e3[_0x3663d7(0x3ed)](_0x1695ba[_0x294fa9][_0x3663d7(0x26b)]());let _0xd85567=[];for(let _0xc19fff of this['hiddenFields'])_0x1695ba[_0xc19fff]&&_0xd85567[_0x3663d7(0x3ed)](_0x1695ba[_0xc19fff][_0x3663d7(0x26b)]());let _0x3efc5c=[];for(let _0x5e868 of this['valueFields'])this[_0x3663d7(0x47b)][_0x5e868]&&_0x3efc5c[_0x3663d7(0x3ed)](this[_0x3663d7(0x47b)][_0x5e868][_0x3663d7(0x26b)]());let _0x4adf14=[];for(let _0x3c4882 of this['_valueFilterInfo']){let {fieldId:_0xa7fb4,filterInfo:_0x59f6af}=_0x3c4882;_0x1695ba[_0xa7fb4]&&this['measure'][_0x59f6af[_0x3663d7(0x2c0)]]&&_0x4adf14['push']($(_0x3c4882));}return{'rowQueryInfo':_0x189273,'colQueryInfo':_0xfca743,'filterQueryInfo':_0x5571e3,'hiddenQueryInfo':_0xd85567,'valueQueryInfo':_0x3efc5c,'collapseInfo':{...this[_0x3663d7(0x30b)]},'valueFilterInfo':_0x4adf14};}[_0x5ad6b7(0x3ee)](_0x2284f8){const _0x5ed95a=_0x5ad6b7;_0x2284f8===void 0x0?(this[_0x5ed95a(0x214)]=[],this['columnFields']=[],this[_0x5ed95a(0x246)]=[],this[_0x5ed95a(0x341)]=[],this[_0x5ed95a(0x357)]=[],this[_0x5ed95a(0x2cc)]=Object[_0x5ed95a(0x3a2)](null),this[_0x5ed95a(0x47b)]=Object[_0x5ed95a(0x3a2)](null),this[_0x5ed95a(0x3b8)]=-0x1,this['valuePosition']=-0x1,this[_0x5ed95a(0x30b)]=Object['create'](null),this[_0x5ed95a(0x195)]={}):_0x2284f8===0x1?(this[_0x5ed95a(0x1a5)][_0x5ed95a(0x334)](_0x333d68=>{const _0x1dc7c7=_0x5ed95a;delete this[_0x1dc7c7(0x2cc)][_0x333d68];}),this[_0x5ed95a(0x1a5)]=[]):_0x2284f8===0x2?(this['rowFields'][_0x5ed95a(0x334)](_0x3d1e3f=>{const _0x133e2=_0x5ed95a;delete this[_0x133e2(0x2cc)][_0x3d1e3f];}),this[_0x5ed95a(0x214)]=[]):_0x2284f8===0x4?(this[_0x5ed95a(0x341)][_0x5ed95a(0x334)](_0x35c083=>{const _0x547297=_0x5ed95a;delete this[_0x547297(0x2cc)][_0x35c083];}),this[_0x5ed95a(0x341)]=[]):_0x2284f8===0x3&&(this[_0x5ed95a(0x246)][_0x5ed95a(0x334)](_0x18e856=>{const _0x30ab1d=_0x5ed95a;delete this[_0x30ab1d(0x47b)][_0x18e856];}),this['valueIndex']=-0x1,this[_0x5ed95a(0x3d8)]=-0x1,this[_0x5ed95a(0x246)]=[]);}[_0x5ad6b7(0x29f)](_0x21ac31){const _0x1fc222=_0x5ad6b7;this[_0x1fc222(0x2cc)]=Object['keys'](_0x21ac31['dimension'])[_0x1fc222(0x3bd)]((_0x26ae33,_0x2c988e)=>{const _0x2ff31e=_0x1fc222;let _0xd096e2=_0x21ac31[_0x2ff31e(0x2cc)][_0x2c988e],_0x2f6ae2=new Z(_0xd096e2['dataFieldId'],_0xd096e2['id'],_0xd096e2[_0x2ff31e(0x3fb)],_0xd096e2[_0x2ff31e(0x48a)]);return _0x2f6ae2[_0x2ff31e(0x29f)](_0xd096e2),_0x26ae33[_0x2c988e]=_0x2f6ae2,_0x26ae33;},Object['create'](null)),this[_0x1fc222(0x47b)]=Object['keys'](_0x21ac31[_0x1fc222(0x47b)])[_0x1fc222(0x3bd)]((_0x1ceacc,_0x447358)=>{const _0x574578=_0x1fc222;let _0x497f4f=_0x21ac31[_0x574578(0x47b)][_0x447358],_0x956149=new X(_0x497f4f[_0x574578(0x2ab)],_0x497f4f['id'],_0x497f4f[_0x574578(0x3fb)],_0x497f4f[_0x574578(0x48a)]);return _0x956149['fromJSON'](_0x21ac31['measure'][_0x447358]),_0x1ceacc[_0x447358]=_0x956149,_0x1ceacc;},Object[_0x1fc222(0x3a2)](null)),this['filterFields']=_0x21ac31[_0x1fc222(0x341)][_0x1fc222(0x14f)](),this[_0x1fc222(0x357)]=_0x21ac31['hiddenFields']['concat'](),this['rowFields']=_0x21ac31[_0x1fc222(0x214)]['concat'](),this[_0x1fc222(0x246)]=_0x21ac31['valueFields'][_0x1fc222(0x14f)](),this['columnFields']=_0x21ac31[_0x1fc222(0x1a5)][_0x1fc222(0x14f)](),this[_0x1fc222(0x436)]=_0x21ac31[_0x1fc222(0x436)]??0x3,this[_0x1fc222(0x3b8)]=_0x21ac31[_0x1fc222(0x3b8)],this['valuePosition']=_0x21ac31[_0x1fc222(0x3d8)],this['collapseInfo']=Object[_0x1fc222(0x3fd)](Object['create'](null),_0x21ac31[_0x1fc222(0x30b)]),this[_0x1fc222(0x195)]={..._0x21ac31[_0x1fc222(0x195)]},this[_0x1fc222(0x3c1)]=_0x21ac31[_0x1fc222(0x148)]?_0x21ac31[_0x1fc222(0x148)]['map']($):[];}[_0x5ad6b7(0x3ba)](){const _0x486394=_0x5ad6b7;let _0x15b3ab=Object[_0x486394(0x3ce)](this['dimension'])[_0x486394(0x3bd)]((_0x4c02eb,_0x1153f1)=>(_0x4c02eb[_0x1153f1]=this['dimension'][_0x1153f1][_0x486394(0x3ba)](),_0x4c02eb),Object[_0x486394(0x3a2)](null)),_0xd34a9b=Object[_0x486394(0x3ce)](this[_0x486394(0x47b)])['reduce']((_0xa648df,_0x31e1ea)=>(_0xa648df[_0x31e1ea]=this[_0x486394(0x47b)][_0x31e1ea][_0x486394(0x3ba)](),_0xa648df),Object[_0x486394(0x3a2)](null)),_0x6cb25d=this['_valueFilterInfo'][_0x486394(0x3c7)]($);return{'columnFields':this['columnFields'][_0x486394(0x14f)](),'dimension':_0x15b3ab,'measure':_0xd34a9b,'filterFields':this['filterFields'][_0x486394(0x14f)](),'hiddenFields':this[_0x486394(0x357)][_0x486394(0x14f)](),'rowFields':this['rowFields']['concat'](),'valueFields':this['valueFields'][_0x486394(0x14f)](),'layout':this[_0x486394(0x436)],'valueIndex':this[_0x486394(0x3b8)],'valuePosition':this[_0x486394(0x3d8)],'collapseInfo':{...this[_0x486394(0x30b)]},'options':{...this[_0x486394(0x195)]},'valueFilter':_0x6cb25d};}[_0x5ad6b7(0x15f)](){const _0x145c77=_0x5ad6b7;let _0x28c803=new e();return _0x28c803[_0x145c77(0x29f)](this[_0x145c77(0x3ba)]()),_0x28c803[_0x145c77(0x2cb)](this['getDirty']()),_0x28c803;}};function Q(_0x42ada8){const _0x10fde9=_0x5ad6b7;if(_0x42ada8)return{..._0x42ada8,'expected':Array['isArray'](_0x42ada8['expected'])?_0x42ada8[_0x10fde9(0x2ee)][_0x10fde9(0x14f)]():_0x42ada8[_0x10fde9(0x2ee)]};}function $(_0x527e05){const _0x12bd1e=_0x5ad6b7;return{'fieldId':_0x527e05['fieldId'],'filterInfo':Q(_0x527e05[_0x12bd1e(0x384)])};}var kt=class e{static['registerCallbackWithEvent'](_0x105ada,_0x65dab8){const _0x54fd18=_0x5ad6b7;var _0x4b2df7;this['_callbacks'][_0x105ada]||(this[_0x54fd18(0x2d6)][_0x105ada]=[]),(_0x4b2df7=this[_0x54fd18(0x2d6)][_0x105ada])==null||_0x4b2df7[_0x54fd18(0x3ed)](_0x65dab8);}static['unRegisterCallbackWithEvent'](_0x3b7f2d,_0x444ae9){const _0x26321b=_0x5ad6b7;let _0x451ed9=this['_callbacks'][_0x3b7f2d];if(_0x451ed9){let _0x43dc5b=_0x451ed9[_0x26321b(0x358)](_0x444ae9);_0x43dc5b!==-0x1&&_0x451ed9['splice'](_0x43dc5b,0x1),_0x451ed9[_0x26321b(0x3cc)]===0x0&&delete this[_0x26321b(0x2d6)][_0x3b7f2d];}}constructor(_0x3bdddc,_0x2f2d48,_0x35cb73){const _0x3944e2=_0x5ad6b7;M(this,_0x3944e2(0x191),void 0x0),M(this,_0x3944e2(0x247),void 0x0),M(this,_0x3944e2(0x154),void 0x0),M(this,_0x3944e2(0x49f),void 0x0),M(this,_0x3944e2(0x3f2),void 0x0),M(this,_0x3944e2(0x4a0),_0x3944e2(0x346)),M(this,_0x3944e2(0x204),void 0x0),M(this,'_id',void 0x0),this['dataFieldsCollection']=_0x3bdddc,_0x2f2d48?this[_0x3944e2(0x247)]=_0x2f2d48:this['_generateModel'](),_0x35cb73&&(this[_0x3944e2(0x306)]=_0x35cb73);}[_0x5ad6b7(0x237)](_0xeb5201){const _0x19f75b=_0x5ad6b7;this[_0x19f75b(0x191)]=_0xeb5201;}['getFilteredRecordIndexes'](_0x215b73,_0x517642){const _0x174c25=_0x5ad6b7;let _0x21b115=this[_0x174c25(0x324)]()[_0x174c25(0x26b)]();for(let _0x51ad48 of[..._0x21b115[_0x174c25(0x489)],..._0x21b115[_0x174c25(0x2d2)],..._0x21b115[_0x174c25(0x349)],..._0x21b115[_0x174c25(0x311)]??[]])_0x51ad48[_0x174c25(0x2ab)]===_0x215b73&&(_0x517642===_0x174c25(0x41b)&&(_0x51ad48['conditionFilter']=void 0x0),_0x51ad48[_0x174c25(0x384)]&&(D(_0x51ad48[_0x174c25(0x384)])?delete _0x51ad48[_0x174c25(0x384)][_0x517642]:_0x51ad48['filterInfo']['type']===0x1==(_0x517642===_0x174c25(0x41b))&&(_0x51ad48['filterInfo']=void 0x0)));let _0x5e75d1=new yt();return _0x5e75d1[_0x174c25(0x1e1)](this[_0x174c25(0x191)],_0x21b115),_0x5e75d1[_0x174c25(0x152)](_0x21b115);}[_0x5ad6b7(0x324)](){const _0x14da59=_0x5ad6b7;return this[_0x14da59(0x154)]?this[_0x14da59(0x154)]:this['_model'];}[_0x5ad6b7(0x270)](){const _0x31a418=_0x5ad6b7;this[_0x31a418(0x154)]=this['_model']['cloneBufferModel'](),this['_bufferModel'][_0x31a418(0x208)]();}[_0x5ad6b7(0x3ec)](){const _0x17118a=_0x5ad6b7;let _0x2382bb=this[_0x17118a(0x154)],_0x359c9c=_0x2382bb[_0x17118a(0x3f7)]();return _0x2382bb[_0x17118a(0x4ab)]()&&this[_0x17118a(0x247)]['setDirty'](!0x0),this[_0x17118a(0x24f)](),_0x359c9c;}[_0x5ad6b7(0x24f)](){const _0x25214f=_0x5ad6b7;this[_0x25214f(0x49f)]=void 0x0,this[_0x25214f(0x3f2)]=void 0x0,this[_0x25214f(0x4a0)]=_0x25214f(0x346),this[_0x25214f(0x154)]=void 0x0;}['_generateModel'](){const _0x174703=_0x5ad6b7;this[_0x174703(0x247)]=new Ot();}[_0x5ad6b7(0x3e2)](_0x26709e,_0x480899,_0x1382cf){const _0x5b36da=_0x5ad6b7;let _0x54395d=this['dataFieldsCollection'][_0x5b36da(0x22b)](_0x26709e);if(_0x54395d){let _0x9bc90=_0x1382cf||this[_0x5b36da(0x48c)]();return t[_0x5b36da(0x455)]&&(_0x9bc90=_0x480899+'-'+_0x9bc90),new Z(_0x54395d[_0x5b36da(0x431)](),_0x9bc90,_0x480899||this['dataFieldsCollection'][_0x5b36da(0x4b8)](_0x26709e),_0x54395d[_0x5b36da(0x43b)]);}}[_0x5ad6b7(0x48b)](_0x3194c7,_0xd84312){const _0x482d5b=_0x5ad6b7;let _0x386405=this[_0x482d5b(0x191)]['getFieldById'](_0x3194c7);if(_0x386405){let _0x1c9b64=_0x386405[_0x482d5b(0x282)]()===0x2?0x9:0x2,_0x1f3f7b=(this[_0x482d5b(0x191)][_0x482d5b(0x163)]['getAutoDisplayNameFunction']()||_e)(this[_0x482d5b(0x191)][_0x482d5b(0x4b8)](_0x3194c7),_0x1c9b64),_0x48a15b=_0xd84312||this[_0x482d5b(0x48c)]();t['isDev']&&(_0x48a15b=_0x1f3f7b+'-'+_0x48a15b);let _0x2a1e09=new X(_0x386405[_0x482d5b(0x431)](),_0x48a15b,this['getUniqueValueFieldName'](_0x1f3f7b),_0x386405[_0x482d5b(0x43b)]);return _0x2a1e09[_0x482d5b(0x15c)](_0x1c9b64),_0x2a1e09;}}[_0x5ad6b7(0x378)](_0x3d26e6,_0x355488){const _0x1d0462=_0x5ad6b7;this[_0x1d0462(0x324)]()[_0x1d0462(0x378)](_0x3d26e6,_0x355488);}[_0x5ad6b7(0x32e)](){const _0x53d461=_0x5ad6b7;return this[_0x53d461(0x324)]()[_0x53d461(0x32e)]();}[_0x5ad6b7(0x1cf)](){const _0x25efa0=_0x5ad6b7;return this[_0x25efa0(0x324)]()['isRowMultiMeasure']();}['getValueIndex'](){const _0x45ca9c=_0x5ad6b7;return this[_0x45ca9c(0x324)]()[_0x45ca9c(0x207)]();}[_0x5ad6b7(0x261)](){const _0x5d474d=_0x5ad6b7;return this['_getModel']()[_0x5d474d(0x261)]();}[_0x5ad6b7(0x3bf)](_0xab054a){const _0x38d060=_0x5ad6b7;this[_0x38d060(0x324)]()['iterateField'](_0xab054a);}[_0x5ad6b7(0x471)](_0xf3b898){const _0x4f89ee=_0x5ad6b7;this['_getModel']()[_0x4f89ee(0x471)](_0xf3b898);}[_0x5ad6b7(0x166)](_0xb591bc,_0x1abd7a){const _0x5813d5=_0x5ad6b7;this[_0x5813d5(0x324)]()[_0x5813d5(0x166)](_0xb591bc,_0x1abd7a);}[_0x5ad6b7(0x209)](_0x4e6af1){const _0x31a4a8=_0x5ad6b7;return this[_0x31a4a8(0x324)]()['getFieldsAreaByType'](_0x4e6af1)[_0x31a4a8(0x3cc)];}['getValueFields'](){const _0x51873f=_0x5ad6b7;return this[_0x51873f(0x324)]()[_0x51873f(0x246)];}['getUniqueValueFieldName'](_0x3eb3f3){const _0x402a49=_0x5ad6b7;let _0x2be3df=this['_getModel']();if(!_0x2be3df['isExistFieldName'](_0x3eb3f3))return _0x3eb3f3;let _0x2f2b00=0x1;for(;_0x2be3df[_0x402a49(0x42e)](_0x3eb3f3+String(_0x2f2b00));)_0x2f2b00++;return _0x3eb3f3+String(_0x2f2b00);}[_0x5ad6b7(0x229)](_0x2375c7){const _0x204d1d=_0x5ad6b7;var _0x3cf009;let _0x3b1f7a=(_0x3cf009=this[_0x204d1d(0x324)]()[_0x204d1d(0x22b)](_0x2375c7))==null?void 0x0:_0x3cf009[_0x204d1d(0x2ab)];if(_0x3b1f7a)return this['dataFieldsCollection'][_0x204d1d(0x22b)](_0x3b1f7a);}[_0x5ad6b7(0x215)](_0x23ddf6){const _0x1efa76=_0x5ad6b7;let _0x356e05=[];return this[_0x1efa76(0x3bf)](_0x1e9479=>{const _0x561c68=_0x1efa76;_0x1e9479[_0x561c68(0x20a)]()===_0x23ddf6&&_0x356e05[_0x561c68(0x3ed)](_0x1e9479);}),_0x356e05;}['getTableFieldById'](_0x571d8c){const _0x1ff8a2=_0x5ad6b7;return this[_0x1ff8a2(0x324)]()[_0x1ff8a2(0x22b)](_0x571d8c);}[_0x5ad6b7(0x1cc)](_0x2b3f8a){const _0x1d0741=_0x5ad6b7;return!!this[_0x1d0741(0x324)]()['getFieldById'](_0x2b3f8a);}[_0x5ad6b7(0x376)](){const _0x46ad77=_0x5ad6b7;return this[_0x46ad77(0x324)]()[_0x46ad77(0x376)]();}[_0x5ad6b7(0x4c9)](_0x575896){return this['dataFieldsCollection']['getFieldById'](_0x575896);}[_0x5ad6b7(0x338)](_0x6ac8ee){const _0x5e287a=_0x5ad6b7;return this[_0x5e287a(0x191)][_0x5e287a(0x267)](_0x6ac8ee);}[_0x5ad6b7(0x1c9)](){const _0xde346e=_0x5ad6b7;return this[_0xde346e(0x191)][_0xde346e(0x1c9)]();}[_0x5ad6b7(0x337)](_0x51798a){const _0x8a8e41=_0x5ad6b7;return{'items':_0x51798a[_0x8a8e41(0x2e3)],'itemTypes':_0x51798a[_0x8a8e41(0x36f)]};}['getUniqueFieldId'](){const _0x2c54c0=_0x5ad6b7;let _0x11ca47=Object[_0x2c54c0(0x3ce)](this[_0x2c54c0(0x324)]()[_0x2c54c0(0x2cc)])['length']+Object[_0x2c54c0(0x3ce)](this[_0x2c54c0(0x324)]()[_0x2c54c0(0x47b)])[_0x2c54c0(0x3cc)],_0x3ddd21=Math[_0x2c54c0(0x278)](Math[_0x2c54c0(0x183)](Math[_0x2c54c0(0x2ef)](_0x11ca47)/0x4),0x2),_0x4d26a6=R(_0x3ddd21);for(;this[_0x2c54c0(0x324)]()[_0x2c54c0(0x22b)](_0x4d26a6);)_0x4d26a6=R(_0x3ddd21);return _0x4d26a6;}[_0x5ad6b7(0x1f4)](_0xf62008,_0xbc51cc,_0x2b1fb1,_0x562a9f){const _0x5e8b0=_0x5ad6b7;let _0x7d49cc;if(_0x7d49cc=F(_0xbc51cc)?this[_0x5e8b0(0x3e2)](_0xf62008,void 0x0,_0x562a9f):this[_0x5e8b0(0x48b)](_0xf62008,_0x562a9f),_0x7d49cc)return this[_0x5e8b0(0x300)](_0x7d49cc,_0xbc51cc,_0x2b1fb1),_0x7d49cc;}[_0x5ad6b7(0x2fa)](_0x74cae2,_0xc75b1b=!0x1){const _0x466302=_0x5ad6b7;this[_0x466302(0x324)]()['setOptions'](_0x74cae2,_0xc75b1b);}['setLayout'](_0x5c6bf4){const _0x547c56=_0x5ad6b7;this[_0x547c56(0x324)]()[_0x547c56(0x283)](_0x5c6bf4);}['getLayout'](){const _0x3f0c0a=_0x5ad6b7;return this[_0x3f0c0a(0x324)]()[_0x3f0c0a(0x4be)]();}['updateFieldSourceInfo'](_0x41ab8b,_0x352685,_0x1cfaae){const _0x4f7460=_0x5ad6b7;this[_0x4f7460(0x324)]()[_0x4f7460(0x2f0)](_0x41ab8b,_0x352685,_0x1cfaae);}[_0x5ad6b7(0x2cd)](_0x56ff44,_0x5df499){const _0x57a8be=_0x5ad6b7;this[_0x57a8be(0x324)]()['setSubtotalType'](_0x56ff44,_0x5df499);}[_0x5ad6b7(0x4df)](_0x49e0e4){const _0x48b692=_0x5ad6b7;return this['_getModel']()[_0x48b692(0x4df)](_0x49e0e4);}['setShowDataAs'](_0x4d5b36,_0x4b7455){const _0x5b7ebc=_0x5ad6b7;this[_0x5b7ebc(0x324)]()[_0x5b7ebc(0x466)](_0x4d5b36,_0x4b7455);}[_0x5ad6b7(0x4b3)](_0x2c10ed,_0x30f2bc){const _0x334379=_0x5ad6b7;this[_0x334379(0x324)]()[_0x334379(0x4b3)](_0x2c10ed,_0x30f2bc);}[_0x5ad6b7(0x38e)](_0x23e734,_0x49935c,_0x33cc61){const _0x1213d5=_0x5ad6b7;this[_0x1213d5(0x324)]()[_0x1213d5(0x38e)](_0x23e734,_0x49935c,_0x33cc61);}[_0x5ad6b7(0x2cf)](_0x3a5a4c){return this['_getModel']()['getConditionFilterInfo'](_0x3a5a4c);}[_0x5ad6b7(0x369)](_0x4afda0){const _0x27417e=_0x5ad6b7;this[_0x27417e(0x324)]()['clearFieldFilters'](_0x4afda0);}[_0x5ad6b7(0x1a0)](_0x3d32f5,_0x5e0814,_0x21d256){const _0x46c17f=_0x5ad6b7;this[_0x46c17f(0x324)]()['setFieldFilterState'](_0x3d32f5,_0x5e0814,_0x21d256);}['setDateFilterInfo'](_0x21df26,_0x7c662d){const _0x1d4e98=_0x5ad6b7;let _0x1c3d34=this[_0x1d4e98(0x49b)](_0x21df26);if(!this[_0x1d4e98(0x324)]()['dimension'][_0x21df26])return!0x1;if(_0x7c662d===void 0x0)return!S(this[_0x1d4e98(0x2cf)](_0x21df26))&&!(D(_0x1c3d34)&&_0x1c3d34['dateRange'])?!0x1:(this['setLabelFilterInfo'](_0x21df26,void 0x0,_0x1d4e98(0x4b9)),!0x0);C(_0x7c662d);let _0x3ae343=this[_0x1d4e98(0x229)](_0x21df26);return!_0x3ae343||_0x3ae343[_0x1d4e98(0x282)]()!==0x4?!0x1:(this[_0x1d4e98(0x38e)](_0x21df26,_0x7c662d,_0x1d4e98(0x4b9)),!0x0);}[_0x5ad6b7(0x16e)](_0x46dbc8,_0x4e1cfa){const _0xd225e3=_0x5ad6b7;this[_0xd225e3(0x324)]()['setSortInfo'](_0x46dbc8,_0x4e1cfa),this[_0xd225e3(0x4a0)]===_0xd225e3(0x1ad)&&(this[_0xd225e3(0x4a0)]=_0xd225e3(0x3dc));}['setDefaultSortLocale'](_0xcc55ad){const _0x365899=_0x5ad6b7;this[_0x365899(0x204)]!==_0xcc55ad&&(this[_0x365899(0x204)]=_0xcc55ad,this[_0x365899(0x4a0)]===_0x365899(0x1ad)&&(this['_summaryCacheState']='sort'));}[_0x5ad6b7(0x39a)](_0x514b21){const _0x16605b=_0x5ad6b7;return this[_0x16605b(0x324)]()[_0x16605b(0x39a)](_0x514b21);}[_0x5ad6b7(0x49b)](_0x1dfa8d){const _0x7cbd22=_0x5ad6b7;return this['_getModel']()[_0x7cbd22(0x49b)](_0x1dfa8d);}[_0x5ad6b7(0x242)](_0x40273d){const _0x1b1b73=_0x5ad6b7;return this[_0x1b1b73(0x324)]()[_0x1b1b73(0x341)][_0x40273d];}['updateFieldPosition'](_0x1f40a4,_0x21f6ef,_0x44bf04){const _0x2bc235=_0x5ad6b7;let {area:_0xcc0771}=this[_0x2bc235(0x324)]()['getFieldPositionInfoById'](_0x1f40a4);this[_0x2bc235(0x324)]()[_0x2bc235(0x30f)](_0x1f40a4,_0x21f6ef,_0x44bf04),_0xcc0771!==0x2&&_0xcc0771!==0x1||_0x21f6ef!==0x2&&_0x21f6ef!==0x1||(this[_0x2bc235(0x4a0)]=_0x2bc235(0x346));}[_0x5ad6b7(0x413)](_0x5ba51e){const _0x28afb5=_0x5ad6b7;return this[_0x28afb5(0x324)]()['getFieldFormat'](_0x5ba51e);}['setFieldFormat'](_0x5f6e85,_0x5788f1){this['_getModel']()['setFieldFormat'](_0x5f6e85,_0x5788f1);}[_0x5ad6b7(0x300)](_0x153e76,_0x442357,_0x1317a4){const _0x3e41dd=_0x5ad6b7;this[_0x3e41dd(0x324)]()[_0x3e41dd(0x300)](_0x153e76,_0x442357,_0x1317a4);}[_0x5ad6b7(0x258)](_0x43758f){const _0x4a8208=_0x5ad6b7;this[_0x4a8208(0x324)]()[_0x4a8208(0x258)](_0x43758f);}['getOptions'](){const _0x26ab08=_0x5ad6b7;return this[_0x26ab08(0x324)]()[_0x26ab08(0x345)]();}[_0x5ad6b7(0x40c)](_0xa893c7,_0x5b58b0,_0x2e0337){const _0x366284=_0x5ad6b7;var _0x2064d0;let _0x5d74c6=this['_getModel'](),_0x1da59e=_0x2e0337!==void 0x0&&_0x5d74c6['collapseInfo'][_0xa893c7]===!0x0?(_0x2064d0=this['getDataFieldByTableId'](_0xa893c7))==null?void 0x0:_0x2064d0[_0x366284(0x2e3)]:void 0x0;_0x5d74c6[_0x366284(0x40c)](_0xa893c7,_0x5b58b0,_0x2e0337,_0x1da59e),this[_0x366284(0x4a0)]=_0x366284(0x346);}[_0x5ad6b7(0x2d5)](_0x2c0d0e){const _0x54f7aa=_0x5ad6b7;let {rowFields:_0x4ede1f}=this[_0x54f7aa(0x324)](),_0x1186d1=_0x4ede1f[_0x54f7aa(0x358)](_0x2c0d0e);if(_0x1186d1<0x0)return!0x1;for(let _0x5af0b4=0x0;_0x5af0b4<_0x4ede1f['length']-0x1;_0x5af0b4++)this[_0x54f7aa(0x40c)](_0x4ede1f[_0x5af0b4],_0x5af0b4>=_0x1186d1);return!0x0;}[_0x5ad6b7(0x37a)](_0xe874a2){const _0x484a17=_0x5ad6b7;return this[_0x484a17(0x324)]()[_0x484a17(0x37a)](_0xe874a2);}['_getTupleCache'](_0x294f8){const _0x13828f=_0x5ad6b7;return(!this[_0x13828f(0x49f)]||this['_getModel']()['getDirty']())&&(this['_tupleGroupCache']=new yt(),this[_0x13828f(0x49f)][_0x13828f(0x254)](this[_0x13828f(0x191)],_0x294f8),this[_0x13828f(0x3f2)]=void 0x0,this[_0x13828f(0x4a0)]=_0x13828f(0x346)),this[_0x13828f(0x49f)];}[_0x5ad6b7(0x416)](){let _0x191fc2={};return this['_getModel']()['iterateFieldDim'](_0x3397ab=>{const _0x41c854=_0x391c;let _0x1364ee=_0x3397ab[_0x41c854(0x2ab)],_0x694f6=this['dataFieldsCollection']['getFieldById'](_0x1364ee);if(B(_0x694f6)){let _0x219871=_0x694f6[_0x41c854(0x200)]();_0x219871&&(_0x191fc2[_0x3397ab['getId']()]=_0x219871);}}),_0x191fc2;}['setValueFilterInfo'](_0x3bc479,_0xcc3d9c,_0x10b0f7){const _0x2cb230=_0x5ad6b7;this[_0x2cb230(0x324)]()[_0x2cb230(0x41f)](_0x3bc479,_0xcc3d9c,_0x10b0f7),this[_0x2cb230(0x4a0)]=_0x2cb230(0x346);}['setValueFilterState'](_0xcc2267,_0x30e013,_0x417bfa){const _0x4a9726=_0x5ad6b7;this['_getModel']()[_0x4a9726(0x310)](_0xcc2267,_0x30e013,_0x417bfa),this['_summaryCacheState']=_0x4a9726(0x346);}[_0x5ad6b7(0x3f1)](){return this['_getModel']()['getValueFilterInfos']();}[_0x5ad6b7(0x430)](_0x4ef0ab){const _0x51b80d=_0x5ad6b7;return this['_getModel']()[_0x51b80d(0x430)](_0x4ef0ab);}[_0x5ad6b7(0x19f)](_0x53a15d){const _0x16d334=_0x5ad6b7;this[_0x16d334(0x324)]()[_0x16d334(0x19f)](_0x53a15d),this[_0x16d334(0x4a0)]=_0x16d334(0x346);}[_0x5ad6b7(0x463)](_0x3a299b){const _0x51bad2=_0x5ad6b7;this['_getModel']()[_0x51bad2(0x463)](_0x3a299b),this['_summaryCacheState']=_0x51bad2(0x346);}['getIndexesByPathStr'](_0x143e15){const _0x1a4c8b=_0x5ad6b7;let _0x5c5412=this[_0x1a4c8b(0x3d4)](this['_getModel']()['getQueryData']()),_0x1061ef=new Map();for(let [_0x10da3a,_0x13c959]of _0x5c5412[_0x1a4c8b(0x4d5)]['entries']())_0x1061ef[_0x1a4c8b(0x34a)](_0x13c959,_0x10da3a);return _0x5c5412[_0x1a4c8b(0x1be)][_0x1a4c8b(0x3bd)]((_0x15026f,_0x1a2d91)=>(_0x143e15[_0x1a4c8b(0x3d9)](_0x2865a4=>{let [_0x13e307,_0x2ed0c4]=_0x2865a4,_0x29656d=_0x1a2d91['path'],_0xc09d76=_0x1061ef['get'](_0x2ed0c4);return _0xc09d76!==void 0x0&&_0x29656d[_0xc09d76]===_0x13e307;})&&_0x15026f[_0x1a4c8b(0x3ed)](..._0x1a2d91['indexes']),_0x15026f),[])[_0x1a4c8b(0x3dc)]((_0xa5446b,_0x36fe46)=>_0xa5446b-_0x36fe46);}[_0x5ad6b7(0x2cb)](_0x183538){const _0xc938b9=_0x5ad6b7;this[_0xc938b9(0x324)]()[_0xc938b9(0x2cb)](_0x183538);}[_0x5ad6b7(0x3ee)](_0x2823ca){this['_getModel']()['reset'](_0x2823ca),this['_summaryCacheState']='invalid';}[_0x5ad6b7(0x254)](_0x199182){const _0x392e1e=_0x5ad6b7;let _0x4e6dae=e[_0x392e1e(0x2d6)][_0x392e1e(0x33b)];_0x4e6dae&&_0x4e6dae[_0x392e1e(0x334)](_0x223ddb=>{_0x223ddb(this['_id']);});let _0x1e72c0=_0x199182||this[_0x392e1e(0x324)]()[_0x392e1e(0x26b)](),_0x104704=this[_0x392e1e(0x3d4)](_0x1e72c0),_0x198bdd;_0x199182?(_0x198bdd=new vt(_0x1e72c0,_0x104704,this['_defaultSortLocale']),_0x198bdd['doSummary']()):(!this[_0x392e1e(0x3f2)]||this[_0x392e1e(0x4a0)]==='invalid'?(this[_0x392e1e(0x3f2)]=new vt(_0x1e72c0,_0x104704,this[_0x392e1e(0x204)]),this['_summaryManagerCache']['doSummary']()):this['_summaryCacheState']===_0x392e1e(0x3dc)&&this[_0x392e1e(0x3f2)][_0x392e1e(0x2a4)](_0x1e72c0,this['_defaultSortLocale']),_0x198bdd=this[_0x392e1e(0x3f2)],this[_0x392e1e(0x4a0)]=_0x392e1e(0x1ad));let _0x2fcaa4;try{_0x2fcaa4=this[_0x392e1e(0x1dd)](_0x198bdd,_0x1e72c0);}finally{_0x198bdd[_0x392e1e(0x2e0)]();}_0x2fcaa4[_0x392e1e(0x42b)](this['_getModel'](),_0x1e72c0[_0x392e1e(0x3e0)]);let _0x1ca9d0=this[_0x392e1e(0x416)]();_0x2fcaa4[_0x392e1e(0x287)](_0x1ca9d0),this['_getModel']()[_0x392e1e(0x2cb)](!0x1);let _0x43e548=e[_0x392e1e(0x2d6)][_0x392e1e(0x386)];return _0x43e548&&_0x43e548[_0x392e1e(0x334)](_0x863c8e=>{_0x863c8e(this['_id']);}),_0x2fcaa4;}[_0x5ad6b7(0x1dd)](_0x38478b,_0x17e0ee){const _0x4d0c8b=_0x5ad6b7;switch(this['getLayout']()){case 0x1:return ut[_0x4d0c8b(0x436)](this,_0x38478b,_0x17e0ee);case 0x2:return dt['layout'](this,_0x38478b,_0x17e0ee);default:return lt[_0x4d0c8b(0x436)](this,_0x38478b,_0x17e0ee);}}[_0x5ad6b7(0x3ba)](){const _0x8f4614=_0x5ad6b7;return this[_0x8f4614(0x324)]()['toJSON']();}['fromJSON'](_0x36f4d8){const _0x3fe315=_0x5ad6b7;this[_0x3fe315(0x324)]()[_0x3fe315(0x29f)](_0x36f4d8),this[_0x3fe315(0x2cb)](!0x0),this[_0x3fe315(0x4a0)]=_0x3fe315(0x346);}[_0x5ad6b7(0x294)](){const _0x5c9f49=_0x5ad6b7;this['dataFieldsCollection']=null,this[_0x5c9f49(0x247)]=null;}};M(kt,'_callbacks',{}),exports['BaseGroupField']=H,exports[_0x5ad6b7(0x3e3)]=V,exports['DataFieldManager']=Qe,exports[_0x5ad6b7(0x4cf)]=We,exports['EXCEL_DATE_AFTER_KEY']=Le,exports[_0x5ad6b7(0x28e)]=-0x1,exports['FieldsCollection']=Ze,exports[_0x5ad6b7(0x3de)]=t,exports[_0x5ad6b7(0x3e9)]=rt,exports[_0x5ad6b7(0x472)]=W,exports[_0x5ad6b7(0x4b7)]=Ke,exports[_0x5ad6b7(0x1ec)]=G,exports['NumberGroupField']=Xe,exports['PivotCallbackEnum']=_,exports[_0x5ad6b7(0x150)]=fe,exports['PivotDataFieldDataTypeEnum']=d,exports['PivotDataFieldSortOperatorEnum']=p,exports['PivotDataFieldSortTypeEnum']=f,exports[_0x5ad6b7(0x25c)]=v,exports[_0x5ad6b7(0x3db)]=ee,exports[_0x5ad6b7(0x38d)]=y,exports[_0x5ad6b7(0x492)]=s,exports['PivotExcelDateGroupUnit']=b,exports[_0x5ad6b7(0x304)]=te,exports[_0x5ad6b7(0x27c)]=c,exports[_0x5ad6b7(0x26d)]=h,exports[_0x5ad6b7(0x4dd)]=o,exports[_0x5ad6b7(0x194)]=a,exports[_0x5ad6b7(0x145)]=g,exports[_0x5ad6b7(0x2da)]=i,exports[_0x5ad6b7(0x394)]=kt,exports[_0x5ad6b7(0x188)]=ue,exports[_0x5ad6b7(0x470)]=l,exports[_0x5ad6b7(0x38c)]=Z,exports[_0x5ad6b7(0x1a8)]=X,exports[_0x5ad6b7(0x3e7)]=u,exports[_0x5ad6b7(0x30e)]=tt,exports[_0x5ad6b7(0x389)]=de,exports[_0x5ad6b7(0x4a1)]=q,exports[_0x5ad6b7(0x156)]=m,exports[_0x5ad6b7(0x3af)]=C,exports[_0x5ad6b7(0x290)]=K,exports[_0x5ad6b7(0x490)]=Dt,exports[_0x5ad6b7(0x3e5)]=De,exports['createValueField']=Et,exports[_0x5ad6b7(0x4ac)]=Ne,exports[_0x5ad6b7(0x1e4)]=R,exports['getAutoDisplayName']=_e,exports[_0x5ad6b7(0x1b5)]=Ye,exports[_0x5ad6b7(0x485)]=ge,exports['getPivotRecordMember']=E,exports[_0x5ad6b7(0x24d)]=se,exports['isBaseGroupField']=B,exports[_0x5ad6b7(0x424)]=Pe,exports[_0x5ad6b7(0x141)]=Fe,exports['isDateValue']=w,exports[_0x5ad6b7(0x433)]=st,exports['isManualPivotFilter']=L,exports['isPivotDateFilter']=S,exports[_0x5ad6b7(0x37e)]=O,exports[_0x5ad6b7(0x363)]=ot,exports[_0x5ad6b7(0x253)]=T,exports[_0x5ad6b7(0x4d3)]=re,exports[_0x5ad6b7(0x1bf)]=Be,exports[_0x5ad6b7(0x1c2)]=U,exports[_0x5ad6b7(0x3fa)]=Je,exports['setDateSystem']=n,exports[_0x5ad6b7(0x165)]=r;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@univerjs/core");const t={TUPLE_PLACEHOLDER:`-&&-`,TUPLE_FIELD_SEPARATOR:`-%$%-`,COl_ROOT_PATH:`-$-cr-$-`,ROW_ROOT_PATH:`-$-rr-$-`,BLANK_PLACEHOLDER:`-$-blk-$-`,isDev:!1,defaultSortType:`default`,dateSystem:e.DateSystem.Date1900,maxLimitItemCount:1e3,otherDataKey:`-$-oth-$-`},n=e=>t.dateSystem=e,r=e=>{e>0&&(t.maxLimitItemCount=e)};let i=/* @__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}({}),a=/* @__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}({}),o=/* @__PURE__ */ function(e){return e[e.item=1]=`item`,e[e.previous=2]=`previous`,e[e.next=3]=`next`,e}({}),s=/* @__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}({}),c=/* @__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}({}),l=/* @__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}({}),u=/* @__PURE__ */ function(e){return e[e.None=-1]=`None`,e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e}({}),d=/* @__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}({}),f=/* @__PURE__ */ function(e){return e[e.value=1]=`value`,e[e.field=2]=`field`,e}({}),p=/* @__PURE__ */ function(e){return e[e.ascending=1]=`ascending`,e[e.descending=2]=`descending`,e[e.custom=3]=`custom`,e}({}),m=/* @__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}({}),h=/* @__PURE__ */ function(e){return e[e.compact=1]=`compact`,e[e.outline=2]=`outline`,e[e.tabular=3]=`tabular`,e}({}),g=/* @__PURE__ */ function(e){return e[e.top=1]=`top`,e[e.bottom=2]=`bottom`,e}({}),_=/* @__PURE__ */ function(e){return e.onQueryStart=`onQueryStart`,e.onQueryEnd=`onQueryEnd`,e}({}),v=/* @__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}({}),y=/* @__PURE__ */ function(e){return e.Legacy=`legacy`,e.ExcelLike=`excel-like`,e}({}),b=/* @__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}({}),ee=/* @__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}({}),te=/* @__PURE__ */ function(e){return e.Member=`member`,e.Condition=`condition`,e.Value=`value`,e}({});function x(e){return Number.isInteger(e)&&e>=16&&e<=23}function S(e){return(e==null?void 0:e.type)===1&&x(e.operator)}function C(e){if(!S(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 w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`v`in e&&typeof e.v==`number`&&`f`in e&&typeof e.f==`string`}function T(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`}function ne(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 re(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 ie(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 ae(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 oe(e){let t=/* @__PURE__ */ new Set,n=e.filterInfo;return(n==null?void 0:n.type)===4?(le({type:4,selection:n.selection})&&t.add(`member`),n.dateRange!==void 0&&t.add(`condition`)):n&&O(n)&&t.add(n.type===1?`condition`:`member`),e.conditionFilter&&t.add(`condition`),t}function se(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(oe(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 E(t){if(t==null)return{type:e.RecordValueType.Blank};if(typeof t==`string`)return{type:e.RecordValueType.String,value:t};if(typeof t==`number`){if(!Number.isFinite(t))throw RangeError(`Pivot numeric record values must be finite.`);return{type:e.RecordValueType.Number,value:t}}if(typeof t==`boolean`)return{type:e.RecordValueType.Boolean,value:t};if(T(t))return{type:e.RecordValueType.Error,value:t.error};if(w(t)){if(!Number.isFinite(t.v))throw RangeError(`Pivot date record values must be finite.`);return{type:e.RecordValueType.Date,value:t.v}}throw TypeError(`Invalid pivot record value.`)}function ce(t){let n=t;if(!A(n)||n.type!==4)throw TypeError(`Invalid pivot record filter.`);let{selection:r,dateRange:i}=n;if(A(i)&&i.useWholeDay!==void 0&&typeof i.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot whole-day mode.`);if(r!==void 0){if(!A(r)||typeof r.mode!=`string`)throw TypeError(`Invalid pivot record selection.`);if(r.mode===e.FilterSelectionMode.All){if(`values`in r)throw TypeError(`All selection cannot contain values.`)}else if(r.mode!==e.FilterSelectionMode.Include&&r.mode!==e.FilterSelectionMode.Exclude||!Array.isArray(r.values))throw TypeError(`Invalid pivot record selection.`);else r.values.forEach(e.getRecordValueKey)}if(i!==void 0&&(!A(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 D(e){return(e==null?void 0:e.type)===4}function O(e){return D(e)?(ce(e),le(e)):e.type!==3||e.isAll!==!0}function le(t){var n,r;return t.dateRange!==void 0||((n=t.selection)==null?void 0:n.mode)===e.FilterSelectionMode.Include||((r=t.selection)==null?void 0:r.mode)===e.FilterSelectionMode.Exclude&&t.selection.values.length>0}function k(t){if(t)switch(t.type){case 4:return ce(t),{type:4,...t.selection===void 0?null:{selection:t.selection.mode===e.FilterSelectionMode.All?{mode:e.FilterSelectionMode.All}:{mode:t.selection.mode,values:t.selection.values.map(t=>t.type===e.RecordValueType.Blank?{type:e.RecordValueType.Blank}:{...t})}},...t.dateRange===void 0?null:{dateRange:{...t.dateRange}}};case 3:return{...t,list:t.list.concat()};case 1:return(t.useWholeDay!==void 0||x(t.operator))&&C(t),{...t,expected:Array.isArray(t.expected)?t.expected.concat():t.expected};case 2:return{...t,expected:Array.isArray(t.expected)?t.expected.concat():t.expected};default:throw TypeError(`Unknown pivot filter type.`)}}function A(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}let ue=/* @__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}({}),de=/* @__PURE__ */ function(e){return e[e.blank=2]=`blank`,e[e.date=4]=`date`,e[e.other=8]=`other`,e}({}),fe=/* @__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 j(e){"@babel/helpers - typeof";return j=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},j(e)}function pe(e,t){if(j(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(j(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function me(e){var t=pe(e,`string`);return j(t)==`symbol`?t:t+``}function M(e,t,n){return(t=me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e){return typeof e==`number`}var N=class{constructor(){M(this,`_sum`,0),M(this,`_count`,0),M(this,`_countN`,0),M(this,`_product`,1),M(this,`_min`,1/0),M(this,`_max`,-1/0),M(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,he(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 ge(e){return(e==null?void 0:e.dateGroupingMode)??`legacy`}function P(e){return e==null||e===``}function F(e){return e===2||e===1||e===4||e===5}function I(e){return e===2||e===1}function _e(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 ve(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 L(e){return e.type===3}function ye(e){return e.type===1}function R(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 be(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 xe(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=be(t,e[n]);return t}function z(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 N),t.tuple[r].unionTupleInfo({sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}))}}function Se(e){let t=1,n;return e?(L(e)?(e.list.length===1&&(t=3,n=e.list[0]),t=e.isAll===!0?1:2):D(e)&&(t=O(e)?2:1),{value:n,status:t}):{status:t,value:n}}function Ce(e,t,n){let r=!1;if(e&&(L(e)?r=e.list.length>0&&e.isAll!==!0:ye(e)?r=!0:D(e)&&(r=O(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 we(e,t,n){let r=t||0,i=e.join(`,`);return n?`${i}-${String(r)}`:i}var Te=class{constructor(){M(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 Ee(e){let t=new Te,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 De(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 Oe(e,t,n,r=De()){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 ke(e,t,n){let r=ae({type:1,operator:t,expected:n}),i=[];for(let[t,n]of Object.entries(e))r(Number(t))&&i.push(n);return i}function Ae(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 N}),e[a].tuple.unionTupleInfo(s)}function je(e){return typeof e!=`number`}function Me(e){return!(`baseFieldId`in e)&&!(`sortItems`in e)&&`customOrder`in e&&e.type===3}function Ne(e,t=!0){return(t?new Date(Date.UTC(1899,11,30)):new Date(Date.UTC(1904,0,1))).getTime()+e*864e5}function Pe(e){return e.getDataFieldType()===3}function B(e){return e.getDataFieldType()!==1}function Fe(e){return e.dataFieldType===3}function Ie(e,t,n=!0){let r=Ne(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){M(this,`id`,void 0),M(this,`name`,void 0),M(this,`hexCode`,void 0),M(this,`rangeKey`,void 0),M(this,`records`,[]),M(this,`items`,[]),M(this,`itemTypes`,[]),M(this,`_fieldDataType`,1),M(this,`hasInteger`,!1),M(this,`hasDecimal`,!1),M(this,`hasDate`,!1),M(this,`hasBlank`,!1),M(this,`hasText`,!1),M(this,`hasBoolean`,!1),M(this,`hasError`,!1),M(this,`format`,``),M(this,`maxNumber`,NaN),M(this,`minNumber`,NaN),M(this,`maxDate`,-1/0),M(this,`minDate`,1/0),M(this,`_itemIndexMap`,void 0),M(this,`_itemsMap`,{}),M(this,`_keyCounter`,0),M(this,`_tupleItemsMap`,Object.create(null)),M(this,`_tupleIndexMap`,Object.create(null)),M(this,`_tupleLabels`,Object.create(null)),M(this,`_tupleTypes`,Object.create(null)),M(this,`_recordTupleKeys`,[]),M(this,`_tupleKeysByLabel`,Object.create(null)),M(this,`_overflowRecordIndexes`,/* @__PURE__ */ new Set),M(this,`_tupleKeyCounter`,0),M(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+t.TUPLE_FIELD_SEPARATOR+this._itemsMap[e]}getItemKey(e){let n=this.records[e];if(w(n))return String(n.v);if(P(n))return t.BLANK_PLACEHOLDER;let r=T(n)?n.error:String(n);return this._itemsMap[r]===void 0?t.otherDataKey:r}getTypeByKey(e){return this.itemTypes[this._itemsMap[e]]}getValue(e){return this.records[e]}addRecord(e,t){w(e)&&(this.format=e.f,this._updateDateItemKey(e,t));let n=P(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),T(e)&&this._updateErrorItemKey(e.error,t),this.records.push(e),this.getDataFieldType()===1&&this._addTupleRecord(e,t)}_addTupleRecord(e,n){let r=this.getItemKey(this.records.length-1),i=1;w(e)?i=4:P(e)?i=5:typeof e==`number`?i=2:typeof e==`boolean`?i=3:T(e)&&(i=6);let a=i===1&&!r.startsWith(`[`)&&r!==t.otherDataKey?r:JSON.stringify([i,r]);(this._overflowRecordIndexes.has(n)||this._tupleItemsMap[a]===void 0&&i!==5&&this._tupleKeyCounter>=t.maxLimitItemCount)&&(r=t.otherDataKey,i=6,a=t.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(n),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 n=t.BLANK_PLACEHOLDER;this._itemIndexMap[n]===void 0?(this._itemIndexMap[n]=[e],this.items.push(n),this.itemTypes.push(5),this._itemsMap[n]=this.items.length-1):this._itemIndexMap[n].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[t.otherDataKey]===void 0){this._itemIndexMap[t.otherDataKey]=[e];let n=this.items.push(t.otherDataKey);this._itemsMap[t.otherDataKey]=n-1,this.itemTypes.push(6),this._keyCounter++}else this._itemIndexMap[t.otherDataKey].push(e)}_updateItemKey(e,n,r){if(this._itemIndexMap[e]===void 0){if(this._keyCounter>=t.maxLimitItemCount)return this._updateOtherItemKey(n);this._itemIndexMap[e]=[n];let i=this.items.push(e);this._itemsMap[e]=i-1,this.itemTypes.push(r),this._keyCounter++}else this._itemIndexMap[e].push(n)}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),M(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}}};const Le=1e9,Re=[`year`,`quarter`,`month`,`day`,`hour`,`minute`,`second`];function ze(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 Be(n,r){let{units:i,daysInterval:a=1}=n;if(!i.length||new Set(i).size!==i.length||i.some(e=>!Re.includes(e))||!Number.isInteger(a)||a<1||a>1&&(i.length!==1||i[0]!==`day`))return;let o=r.records,s=t.dateSystem;if(!o.length||o.some(t=>!w(t)||!(0,e.excelSerialToDateTimeParts)(t.v,{dateSystem:s})))return;let c=ze(r),l=n.autoStart?c.start:n.start,u=n.autoEnd?c.end:n.end;if(!(l===void 0||u===void 0||l>u||!(0,e.excelSerialToDateTimeParts)(l,{dateSystem:s})||!(0,e.excelSerialToDateTimeParts)(u,{dateSystem:s})))return{...n,units:Re.filter(e=>i.includes(e))}}const Ve=[0,31,60,91,121,152,182,213,244,274,305,335];function He(e){return{...e,...e.dayLabels?{dayLabels:Object.freeze([...e.dayLabels])}:{}}}function Ue(e,t,n,r,i){if(e.dayLabels)return e.dayLabels[Ve[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 We=class extends H{constructor(e,t,n,r,i,a){super(e,t,n),M(this,`_dataIsValid`,!0),M(this,`_dateType`,void 0),M(this,`_excelLike`,void 0),this.originalFieldId=r,this._dateType=i??`year`,this._excelLike=a&&He(a)}setDateType(e){this._dateType=e}getDateType(){return this._dateType}getDateGroupValid(){return this._dataIsValid}refreshGroupField(n){if(this.reset(),this._dataIsValid=!0,this._excelLike){this._refreshExcelLike(n);return}let r=n.records,i=t.dateSystem===e.DateSystem.Date1900;for(let e=0;e<r.length;e++){let t=r[e];if(t==null)continue;if(!w(t)){this._dataIsValid=!1;break}let n=t.v,a=Ie(n,this._dateType,i);this.addRecord(a,e)}}_refreshExcelLike(n){let r=this._excelLike;if(!Be({...r,units:[r.unit]},n)||r.dayLabels&&(r.unit!==`day`||(r.daysInterval??1)!==1||r.dayLabels.length!==366)){this._dataIsValid=!1;return}let i=n.records.map(e=>e.v),a=ze(n),o=r.autoStart?a.start:r.start,s=r.autoEnd?a.end:r.end,c=t.dateSystem;for(let t=0;t<i.length;t++){let n=i[t];if(n<o){this.addRecord(-1,t);continue}if(n>s){this.addRecord(Le,t);continue}let a=(0,e.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=Ue(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,t)}}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&&He(e.excelLike)}};function Ge(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(t,n,r){if(!Array.isArray(t==null?void 0:t.groups)||!t.groups.length)return;let i=/* @__PURE__ */ new Set;if(n)try{for(let t of n.records)i.add((0,e.getRecordValueKey)(E(t)))}catch{return}let a=/* @__PURE__ */ new Map,o=r&&U(r);for(let t of(o==null?void 0:o.groups)??[])a.set(t.id,new Set(t.members.map(e.getRecordValueKey)));let s=/* @__PURE__ */ new Set,c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Set,u=[];for(let r of t.groups){if(!Ge(r,s,c))return;s.add(r.id),c.add(r.name);let t=[];for(let o of r.members){var d;let s;try{s=(0,e.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),t.push({...o})}u.push({id:r.id,name:r.name,members:t})}return{groups:u}}var W=class extends H{constructor(e,t,n,r,i){super(e,t,n),M(this,`_grouping`,void 0),M(this,`_dataIsValid`,!0),M(this,`_recordKeys`,[]),M(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 n=this._recordKeys[e];return this.getItemsMap()[n]===void 0?t.otherDataKey:n}getDisplayNameByKey(e){return this._displayNames.get(e)??e}refreshGroupField(n){this.reset();let r=U(this._grouping);if(this._dataIsValid=!!r,!r)return;let i=/* @__PURE__ */ new Map;for(let t of r.groups)for(let n of t.members)i.set((0,e.getRecordValueKey)(n),t);for(let r=0;r<n.records.length;r++){let a=n.records[r],o,s;try{o=E(a),s=(0,e.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===e.RecordValueType.Blank?t.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(t){switch(t.type){case e.RecordValueType.Blank:return 5;case e.RecordValueType.Number:return 2;case e.RecordValueType.Date:return 4;case e.RecordValueType.Boolean:return 3;case e.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}};const G=`__number_before__`,Ke=`__number_after__`;function qe(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(!P(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 Je(e,t){return qe(e,t)?{...e}:void 0}function Ye(e){let t=qe({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=>P(e)||Number.isInteger(e));return{autoStart:!0,autoEnd:!0,...t,interval:a?Math.max(1,i):i}}var Xe=class extends H{constructor(e,t,n,r,i){super(e,t,n),M(this,`_grouping`,void 0),M(this,`_dataIsValid`,!0),M(this,`_bounds`,void 0),this.originalFieldId=r,this._grouping={...i}}getNumberGroupValid(){return this._dataIsValid}refreshGroupField(e){this.reset();let t=qe(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(P(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(G,t);else if(a>r&&a-r>s)this.addRecord(Ke,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 K(e){let t;if(Fe(e))t=new We(e.id,e.name,e.hexCode,e.originalFieldId);else if(e.dataFieldType===2){let n=e;t=new Xe(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 Ze=class e{constructor(e){M(this,`fieldIds`,[]),M(this,`displayNameRecord`,{}),M(this,`customFields`,{}),M(this,`range`,void 0),M(this,`dataRecordCount`,void 0),M(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]=K(t[e]));this.customFields={};for(let t of e.customFields){let e=K(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}},Qe=class{constructor(){M(this,`dataFields`,{}),M(this,`collections`,{})}compileRecordFilter(e){throw Error(`A record filter evaluator must be provided by the host.`)}createDataFieldId(){let e=R(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 Ze(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,R(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 Ze(this);n.fromJSON(e.collections[t]),this.addCollection(t,n,n.range)}for(let t in e.dataFields)this.dataFields[t]=K(e.dataFields[t])}};const $e=`0.00%`;function et(e){return e===2||e===3||e===4||e===5||e===6||e===7||e===10||e===12||e===13||e===14}var tt=class{constructor(){M(this,`pageView`,new nt),M(this,`rowView`,new it),M(this,`colView`,new at),M(this,`dataView`,new q),M(this,`cornerView`,new q),M(this,`formatMap`,{}),M(this,`groupInfo`,{})}setGroupInfo(e){this.groupInfo=e}setFormat(e,t){let n={},r=new Set(t.filter(e=>{var t;return et((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]=$e)});for(let e of r)n[e]??=$e;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}},q=class{constructor(){M(this,`rowCount`,0),M(this,`colCount`,0),M(this,`data`,{}),M(this,`info`,[]),M(this,`lastCol`,-1),M(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=we(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}},nt=class extends q{constructor(...e){super(...e),M(this,`ranges`,[]),M(this,`lastCol`,-1),M(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)}},rt=class extends q{constructor(...e){super(...e),M(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)}},it=class extends rt{getLastCol(){return Math.max(this.lastCol,this.headerMap.length-1)}},at=class extends rt{getLastRow(){return Math.max(this.lastRow,this.headerMap.length-1)}};const ot=e=>typeof e==`object`&&e.prefix!==void 0,st=e=>typeof e==`object`&&e.errorType!==void 0;var ct=class{static prepareLayoutCtx(e,t,n){let r=new tt,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,x=e.getOptions().showColSubtotal??!0,S=e.getOptions().showColGrandTotal??!0,C=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:x,showColGrandTotal:S,rowSubtotalPosition:C}}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}=Se(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,n,r,i,a){let{displayName:o,value:s,status:c,itemType:l}=a;e.setValue(n,r,o),e.setValue(n,r+1,s),e.setStyle(n,r+1,c),l===5?e.setBlank(n,r+1):l===6&&s===t.otherDataKey&&e.setOther(n,r+1),e.setPageIndex(n,r,i),e.setPageIndex(n,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,Ce(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,n,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 t=0;for(let o of i){let{displayName:i}=l[o];p.setValue(e,t+n,`${i}`),p.setStyle(e,t+n,15),p.setInfo(t+n,{level:h,paths:r.getPaths(),valueIndex:t,isBottomTotal:!0,colPathMap:a,tableFieldId:``}),t++}}else{d===0&&f.length===1?p.setValue(e,n,f[0].displayName):(p.setValue(e,n,``),p.setStyle(e,n,14));let t=this.getMeasureIndex(s,i,u);p.setInfo(n,{level:h,paths:r.getPaths(),valueIndex:t,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,t=h;for(let s of i){let{displayName:i}=l[s],c=o?i:{prefix:r.displayName,value:i};p.setStyle(t,n+e,13),this.setLabelValue(p,t,n+e,c,!o&&f,!o&&_),p.setInfo(n+e,{level:h,paths:r.getPaths(),valueIndex:e,isBottomTotal:!0,colPathMap:a,tableFieldId:d}),e++}}else{o||(this.setLabelValue(p,e,n,m,f,_&&r.name===t.otherDataKey),p.setStyle(e,n,13));let c=this.getMeasureIndex(s,i,u);p.setInfo(n,{level:h,paths:r.getPaths(),valueIndex:c,isBottomTotal:!0,colPathMap:a,tableFieldId:d})}}}},lt=class extends ct{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,Ce(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[we(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,n,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 t=0;for(let a of i){let{displayName:i}=c[a];p.setValue(t+n,0,`${i}`),p.setStyle(t+n,0,15),p.setInfo(t+n,{paths:r.getPaths(),valueIndex:t,isBottomTotal:!0,level:m,tableFieldId:``}),this.layoutValueNodeSubtotal(e,n+t),t++}}else{u===0&&d!==0&&f.length===1?p.setValue(n,0,f[0].displayName):(p.setValue(n,0,``),p.setStyle(n,0,14));let t=o?l[i[0]]:-1;p.setInfo(n,{paths:r.getPaths(),valueIndex:t,isBottomTotal:!0,level:m,tableFieldId:``}),u===0&&d!==0&&f.length===1&&p.setInfo(n,this.createSingleValueHeaderInfo(e,p.info[n])),this.layoutValueNodeSubtotal(e,n)}}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 t=0,o=e.valueIndex;for(let s of i){let{displayName:i}=c[s];if(u)p.setValue(n+t,o,i);else{let e=u?`${i}`:{prefix:r.displayName,value:i};p.setValue(n+t,a,e),f&&p.setBlank(n+t,a),g&&p.setOther(n+t,a),p.setStyle(n+t,a,13)}p.setInfo(n+t,{paths:r.getPaths(),valueIndex:t,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,n+t),t++}}else{u||(this.setLabelValue(p,n,a,r.displayName,f,g&&r.name===t.otherDataKey),p.setStyle(n,a,13));let s=o?l[i[0]]:-1;p.setInfo(n,{paths:r.getPaths(),valueIndex:s,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,n)}}}},ut=class extends lt{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,Ce(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})}},dt=class extends lt{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)}},ft=class{constructor(e,t,n){M(this,`_index`,void 0),M(this,`_level`,void 0),M(this,`parentIndex`,void 0),M(this,`paths`,void 0),M(this,`isLeaf`,void 0),M(this,`name`,void 0),M(this,`displayName`,void 0),M(this,`displayPaths`,[]),M(this,`fieldId`,void 0),M(this,`collapse`,void 0),M(this,`sortedList`,[]),M(this,`hasSort`,!1),M(this,`type`,void 0),M(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]}};const pt={1:{errorType:1},2:{errorType:2},3:{errorType:3},4:{errorType:4},5:{errorType:5}},mt=pt[1],ht=pt[2];function J(e){return typeof e==`object`}var gt=class{constructor(e,t){this._summaryManager=e,this._queryData=t,M(this,`_fieldIndexById`,{}),M(this,`_itemIndexMaps`,[]),M(this,`_rowFieldIndexes`,[]),M(this,`_columnFieldIndexes`,[]),M(this,`_fieldCount`,void 0),M(this,`_coordinates`,[]),M(this,`_tupleByCoordinate`,/* @__PURE__ */ new Map),M(this,`_canonicalTupleIndexes`,/* @__PURE__ */ new Int32Array),M(this,`_rowTotalIndexes`,void 0),M(this,`_columnTotalIndexes`,void 0),M(this,`_grandTotalIndex`,-1),M(this,`_parentRowTotalIndexes`,void 0),M(this,`_parentColumnTotalIndexes`,void 0),M(this,`_parentFieldIndexes`,/* @__PURE__ */ new Map),M(this,`_parentFieldIndexByValueField`,{}),M(this,`_peerIndexesByValueField`,{}),M(this,`_peerUnionsByValueField`,{}),M(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 N,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,n){let r=e.split(t.TUPLE_PLACEHOLDER);for(let e of r){let r=e.split(t.TUPLE_FIELD_SEPARATOR);for(let e=0;e<r.length-1;e++){let t=this._fieldIndexById[r[e]];if(t===void 0)continue;let i=this._itemIndexMaps[t][r[e+1]];i!==void 0&&(n[t]=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&&(J(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}):J(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 pt[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(J(e))return e;if(t!==void 0)return J(t)?t:t===0?mt:e/t}}_difference(e,t){if(e!==void 0){if(J(e))return e;if(t!==void 0)return J(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(J(e))return e;if(t!==void 0)return J(t)?t:t===0?mt:(e-t)/t}}_getIndexValue(e,t,n){if(e===void 0||J(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?ht:J(r)?r:J(i)?i:J(a)?a:r===0||i===0?mt:e*a/(r*i)}};function _t(e,t,n,r){if(e.operator!==15&&e.operator!==44)return ae(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=ie(i,Math.min(i.length,Math.max(0,a)),!!e.isBottom);return t=>o!==void 0&&(e.isBottom?t<=o:t>=o)}var vt=class{constructor(e,t,n){M(this,`counter`,void 0),M(this,`rowDimOrder`,void 0),M(this,`colDimOrder`,void 0),M(this,`rowTableIdList`,void 0),M(this,`colTableIdList`,void 0),M(this,`rowDeep`,void 0),M(this,`colDeep`,void 0),M(this,`measureCount`,void 0),M(this,`leafCount`,void 0),M(this,`measuresMap`,{}),M(this,`tuples`,[]),M(this,`tupleMap`,{}),M(this,`dimensionIdList`,[]),M(this,`dimensionTableIdList`,[]),M(this,`measureIdList`,[]),M(this,`_rowLevelPool`,{}),M(this,`_colLevelPool`,{}),M(this,`rowNodeTree`,void 0),M(this,`colNodeTree`,void 0),M(this,`dimensionMap`,{}),M(this,`combinePathMap`,{}),M(this,`collapseInfo`,void 0),M(this,`dimensionSortInfo`,{}),M(this,`valueSortInfo`,{}),M(this,`valueFilterInfo`,[]),M(this,`subtotalMap`,{}),M(this,`_showDataAsResolver`,void 0),M(this,`_defaultSortLocale`,void 0),M(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:n,colQueryInfo:r}=e;for(let e of[...n,...r]){let n=e.sortInfo,r=e.id;if(n){if(`baseFieldId`in n)this.valueSortInfo[r]=n;else if(Me(n)){let t={},i=n.customOrder;for(let n=0;n<i.length;n++){let r=i[n];for(let i of this.dimensionMap[e.dataFieldId].field.getTupleKeysByLabel(r))t[i]=n}this.dimensionSortInfo[r]={type:n.type,sortMap:t}}else{let t=this.getSortedMap(r,this.dimensionMap[e.dataFieldId].field,n.sortLocale);this.dimensionSortInfo[r]={type:n.type,sortMap:t}}}else if(t.defaultSortType!=="default"){let n=t.defaultSortType,i=this.getSortedMap(r,this.dimensionMap[e.dataFieldId].field),a=n===`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 gt(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=Oe(a,o,i,this._getSortCompare(n));if(t instanceof Xe){let e=Object.keys(s).sort((e,t)=>s[e]-s[t]),t=[...e.includes(`__number_before__`)?[G]:[],...e.filter(e=>e!==`__number_before__`&&e!==`__number_after__`),...e.includes(`__number_after__`)?[Ke]:[]];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=De(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,t.ROW_ROOT_PATH,e),this.colNodeTree=this.rowDeep===0||this.colDeep===0?this.rowNodeTree:this._buildNodeTreeImp(this.colDimOrder,this.colTableIdList,this._colLevelPool,t.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 N;r.tuple[e]=t}this.tuples[t]=r,this.tupleMap[n]=t}_buildNodeTreeImp(e,t,n,r,i){let a=this._getIndex(),o=new ft(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 ft(l,f,o),m=this.dimensionMap[this.dimensionIdList[i]].field;p.setCollapse(ve(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,n){if(this.combinePathMap[n])return this.combinePathMap[n];let r={};this.combinePathMap[n]=r;let i={};for(let a of e)for(let e in a){let o=[n,e].join(t.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&&z(this.tuples[0],t,this.measuresMap),z(t,void 0,this.measuresMap),z(n,void 0,this.measuresMap)}getPathKeyWithFiledId(e,n){let r=[];for(let i=0;i<e.length;i++)r.push(`${n[i]}${t.TUPLE_FIELD_SEPARATOR}${e[i]}`);return r.join(t.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,n,r){let i=n||e.join(t.TUPLE_PLACEHOLDER);if(!this.tupleMap[i]){let t={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let n=new N;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)&&Ae(l,e===c?this.tuples[i]:void 0,d,u,i,n)}let f=i[s+1]??[],p=_t(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);je(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];z(n,this.tuples[e],this.measuresMap)}}}},yt=class{constructor(){M(this,`tuples`,[]),M(this,`tupleMap`,{}),M(this,`measuresMap`,{}),M(this,`dimensionIdList`,[]),M(this,`dimensionTableIdList`,[]),M(this,`measureIdList`,[]),M(this,`dimensionMap`,{}),M(this,`rowDeep`,0),M(this,`colDeep`,0),M(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&&L(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(D(t)){if(!O(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(L(t)){o=!0;let{list:e}=t,r=[];for(let t of e)r.push(n.getIndexesByKey(t));a.push(Ee(r))}else if(ye(t)){if(o=!0,S(t)){let e=C(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t];w(i)&&e(i.v)&&r.push(t)}a.push(r);continue}let{operator:e,expected:r}=t;if(e>=1&&e<=14){let e=ne(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t],a=String(i??``);w(i)?a=String(i.v):T(i)&&(a=i.error),e(a)&&r.push(t)}a.push(r);continue}if(n.getFieldDataType()===2){let t=ke(n.getAllIndexMap(),e,r);a.push(Ee(t))}}}return!o&&a.length===0?{isAll:!0,list:[]}:{isAll:!1,list:xe(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,n,r=0){let i=this.dimensionTableIdList;if(e)for(let e=0;e<r;e++){let n=[],r=[],a=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);a.push(i[o]+t.TUPLE_FIELD_SEPARATOR+l),n.push(l),r.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(n,a,e,r)}for(let e of n){let n=[],r=[],a=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);a.push(i[o]+t.TUPLE_FIELD_SEPARATOR+l),n.push(l),r.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(n,a,e,r)}}createOrUpdateTuple(e,n,r,i){let a=n.join(t.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,n,r,i=[]){let a=n||e.join(t.TUPLE_PLACEHOLDER);if(!this.tupleMap[a]){let t={path:e,types:i,indexes:[],tuple:{}};for(let e of this.measureIdList){let n=new N;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}}};const bt=e=>e.baseFieldId!==void 0,xt=e=>{if(bt(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}),St=()=>({type:1,baseFieldId:``,baseItem:``});var Ct=class{constructor(e,t,n=``,r){M(this,`dataFieldId`,void 0),M(this,`id`,void 0),M(this,`sourceName`,void 0),M(this,`displayName`,void 0),M(this,`format`,void 0),M(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 Ct{constructor(e,t,n=``,r){super(e,t,n,r),M(this,`subtotal`,void 0),M(this,`showDataAs`,St())}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?St():Y(t)}},Z=class extends Ct{constructor(e,t,n=``,r){super(e,t,n,r),M(this,`sortInfo`,void 0),M(this,`filterInfo`,void 0),M(this,`conditionFilter`,void 0)}setSortInfo(e){this.sortInfo=e?xt(e):void 0}getSortInfo(){return this.sortInfo?xt(this.sortInfo):void 0}setFilterInfo(e){this.filterInfo=D(e)||S(e)?k(e):e}getFilterInfo(){return D(this.filterInfo)||S(this.filterInfo)?k(this.filterInfo):this.filterInfo}getConditionFilterInfo(){var e;return k(this.conditionFilter??(((e=this.filterInfo)==null?void 0:e.type)===1?this.filterInfo:void 0))}setConditionFilterInfo(e){if(e!==void 0&&e.type!==1&&(!D(e)||!e.dateRange||e.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);this.conditionFilter=k(e)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sortInfo:this.getSortInfo(),filterInfo:this.filterInfo&&(D(this.filterInfo)||S(this.filterInfo)?k(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?xt(this.sortInfo):void 0,filterInfo:D(this.filterInfo)||S(this.filterInfo)?k(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||D(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=D(e.filterInfo)||S(e.filterInfo)?k(e.filterInfo):e.filterInfo),this.setConditionFilterInfo(e.conditionFilter)}};function wt(e,t=!0){let n=new X(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(_e(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 Tt(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=D(t.filterInfo)?k(t.filterInfo):t.filterInfo),n.setConditionFilterInfo(t.conditionFilter)}return t&&(n.lossLessProperty={subtotal:e.getSubtotal(),showDataAs:e.getShowDataAs()}),n}function Et(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new X(t,n,``,r);return i.fromJSON(e),i}function Dt(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new Z(t,n,``,r);return i.fromJSON(e),i}var Ot=class e{constructor(){M(this,`rowFields`,[]),M(this,`columnFields`,[]),M(this,`valueFields`,[]),M(this,`filterFields`,[]),M(this,`hiddenFields`,[]),M(this,`dimension`,Object.create(null)),M(this,`measure`,Object.create(null)),M(this,`valueIndex`,-1),M(this,`valuePosition`,-1),M(this,`layout`,3),M(this,`collapseInfo`,Object.create(null)),M(this,`options`,void 0),M(this,`_changeStack`,void 0),M(this,`_isDirty`,!0),M(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&&se(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=D(t)||S(t)?k(t):t,a=r.getFilterInfo(),o=n??(t.type===1||D(t)&&t.dateRange!==void 0?`condition`:`member`);if((D(t)?O({type:4,...o===`member`?{selection:t.selection}:{dateRange:t.dateRange}}):O(t))&&this.options.allowMultipleFilters!==!0){this._clearSourceFilters(r.dataFieldId,e),D(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(D(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}D(a)&&i.selection===void 0&&(i={...i,...a.selection?{selection:a.selection}:{}})}else D(a)&&a.dateRange&&(i={...i,dateRange:a.dateRange})}else i.type===3&&D(a)&&a.dateRange&&(s={type:4,dateRange:a.dateRange});if(i.type===1&&a&&a.type!==1){let t=k(a);D(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||D(t)&&t.dateRange!==void 0))throw TypeError(`Ambiguous pivot condition state.`);let r=k(n);if(r&&r.type!==1&&(!D(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||D(a)||S(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:D(t)||S(t)?k(t):t,...i||n?{oldConditionFilter:k(i)??null,newConditionFilter:k(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||!I(a)||!this.measure[t.valueFieldId]||t.type!==2||!re(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(!oe(r.toJSON()).has(n))continue;let i=r.getFilterInfo(),a=r.conditionFilter;D(i)?(i=k(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}F(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):I(t)&&this.removeValueFilterInfo(e),this.getFieldsAreaByType(t).splice(n,1);let r;if(F(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=F(r);if(o!==F(t)){if(o){let t=this.dimension[e];delete this.dimension[e];let n=wt(t);this.measure[e]=n}else{let t=this.measure[e];delete this.measure[e];let n=Tt(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)}I(r)&&I(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 kt=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){M(this,`dataFieldsCollection`,void 0),M(this,`_model`,void 0),M(this,`_bufferModel`,void 0),M(this,`_tupleGroupCache`,void 0),M(this,`_summaryManagerCache`,void 0),M(this,`_summaryCacheState`,`invalid`),M(this,`_defaultSortLocale`,void 0),M(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&&(D(r.filterInfo)?delete r.filterInfo[t]:r.filterInfo.type===1==(t===`dateRange`)&&(r.filterInfo=void 0)));let r=new yt;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 Ot}createLabelFieldByDataFieldId(e,n,r){let i=this.dataFieldsCollection.getFieldById(e);if(i){let a=r||this.getUniqueFieldId();return t.isDev&&(a=`${n}-${a}`),new Z(i.getId(),a,n||this.dataFieldsCollection.getDisplayName(e),i.name)}}createValueFieldByDataFieldId(e,n){let r=this.dataFieldsCollection.getFieldById(e);if(r){let i=r.getFieldDataType()===2?9:2,a=(this.dataFieldsCollection.host.getAutoDisplayNameFunction()||_e)(this.dataFieldsCollection.getDisplayName(e),i),o=n||this.getUniqueFieldId();t.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=R(t);for(;this._getModel().getFieldById(n);)n=R(t);return n}addFieldWithSourceId(e,t,n,r){let i;if(i=F(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!S(this.getConditionFilterInfo(e))&&!(D(n)&&n.dateRange)?!1:(this.setLabelFilterInfo(e,void 0,`condition`),!0);C(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 yt,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 vt(r,i,this._defaultSortLocale),a.doSummary()):(!this._summaryManagerCache||this._summaryCacheState===`invalid`?(this._summaryManagerCache=new vt(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 ut.layout(this,e,t);case 2:return dt.layout(this,e,t);default:return lt.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}};M(kt,`_callbacks`,{}),exports.BaseGroupField=H,exports.DataField=V,exports.DataFieldManager=Qe,exports.DateGroupField=We,exports.EXCEL_DATE_AFTER_KEY=Le,exports.EXCEL_DATE_BEFORE_KEY=-1,exports.FieldsCollection=Ze,exports.GlobalConfig=t,exports.LabelViewItem=rt,exports.ManualGroupField=W,exports.NUMBER_GROUP_AFTER_KEY=Ke,exports.NUMBER_GROUP_BEFORE_KEY=G,exports.NumberGroupField=Xe,exports.PivotCallbackEnum=_,exports.PivotCellStyleTypeEnum=fe,exports.PivotDataFieldDataTypeEnum=d,exports.PivotDataFieldSortOperatorEnum=p,exports.PivotDataFieldSortTypeEnum=f,exports.PivotDataFieldTypeEnum=v,exports.PivotDateGroupFieldDateTypeEnum=ee,exports.PivotDateGroupingMode=y,exports.PivotErrorTypeEnum=s,exports.PivotExcelDateGroupUnit=b,exports.PivotFilterCategory=te,exports.PivotFilterTypeEnum=c,exports.PivotLayoutTypeEnum=h,exports.PivotShowAsBaseItemTypeEnum=o,exports.PivotShowAsTypeEnum=a,exports.PivotSubtotalPositionEnum=g,exports.PivotSubtotalTypeEnum=i,exports.PivotTable=kt,exports.PivotTableChangeTypeEnum=ue,exports.PivotTableFiledAreaEnum=l,exports.PivotTableLabelField=Z,exports.PivotTableValueField=X,exports.PivotTableValuePositionEnum=u,exports.PivotView=tt,exports.PivotViewCellValueTypeEnum=de,exports.PivotViewItem=q,exports.ST_PivotFilterOperatorEnum=m,exports.compilePivotDateFilter=C,exports.createDataFieldFromJSON=K,exports.createLabelField=Dt,exports.createPivotSortCompare=De,exports.createValueField=Et,exports.excelDateToUnixMilliseconds=Ne,exports.generateHexNumber=R,exports.getAutoDisplayName=_e,exports.getDefaultNumberGrouping=Ye,exports.getPivotDateGroupingMode=ge,exports.getPivotRecordMember=E,exports.hasPivotMultipleFilters=se,exports.isBaseGroupField=B,exports.isDateGroupField=Pe,exports.isDateGroupFieldJSON=Fe,exports.isDateValue=w,exports.isErrorValue=st,exports.isManualPivotFilter=L,exports.isPivotDateFilter=S,exports.isPivotTableFilterRestrictive=O,exports.isPrefixValue=ot,exports.isRecordErrorValue=T,exports.isValueFilterOperator=re,exports.normalizeExcelDateGrouping=Be,exports.normalizeManualGrouping=U,exports.normalizeNumberGrouping=Je,exports.setDateSystem=n,exports.setMaxLimitItemCount=r;
|