@univerjs-pro/engine-pivot 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2d7eb5=_0x420d;(function(_0x2039eb,_0x504721){const _0x1eb907=_0x420d,_0x271e98=_0x2039eb();while(!![]){try{const _0x321cd0=parseInt(_0x1eb907(0x3f9))/0x1+-parseInt(_0x1eb907(0x287))/0x2*(parseInt(_0x1eb907(0x278))/0x3)+-parseInt(_0x1eb907(0x4a8))/0x4+parseInt(_0x1eb907(0x448))/0x5*(parseInt(_0x1eb907(0x233))/0x6)+-parseInt(_0x1eb907(0x40e))/0x7*(-parseInt(_0x1eb907(0x20e))/0x8)+-parseInt(_0x1eb907(0x19e))/0x9*(parseInt(_0x1eb907(0x453))/0xa)+-parseInt(_0x1eb907(0x480))/0xb*(-parseInt(_0x1eb907(0x430))/0xc);if(_0x321cd0===_0x504721)break;else _0x271e98['push'](_0x271e98['shift']());}catch(_0x22fb9b){_0x271e98['push'](_0x271e98['shift']());}}}(_0xe0c7,0x3102d),Object[_0x2d7eb5(0x4ba)](exports,Symbol[_0x2d7eb5(0x276)],{'value':'Module'}));let e=require('@univerjs/core');const t={'TUPLE_PLACEHOLDER':_0x2d7eb5(0x3a4),'TUPLE_FIELD_SEPARATOR':_0x2d7eb5(0x28a),'COl_ROOT_PATH':_0x2d7eb5(0x28c),'ROW_ROOT_PATH':_0x2d7eb5(0x3ae),'BLANK_PLACEHOLDER':_0x2d7eb5(0x2ef),'isDev':!0x1,'defaultSortType':_0x2d7eb5(0x25a),'dateSystem':e[_0x2d7eb5(0x323)][_0x2d7eb5(0x2c8)],'maxLimitItemCount':0x3e8,'otherDataKey':_0x2d7eb5(0x32a)},n=_0x45d7c5=>t['dateSystem']=_0x45d7c5,r=_0x136aa3=>{_0x136aa3>0x0&&(t['maxLimitItemCount']=_0x136aa3);};let i=function(_0x2fcf86){const _0x36c28b=_0x2d7eb5;return _0x2fcf86[_0x2fcf86[_0x36c28b(0x288)]=0x1]='average',_0x2fcf86[_0x2fcf86[_0x36c28b(0x46a)]=0x2]=_0x36c28b(0x46a),_0x2fcf86[_0x2fcf86[_0x36c28b(0x38b)]=0x3]=_0x36c28b(0x38b),_0x2fcf86[_0x2fcf86[_0x36c28b(0x4bd)]=0x4]=_0x36c28b(0x4bd),_0x2fcf86[_0x2fcf86[_0x36c28b(0x4e2)]=0x5]=_0x36c28b(0x4e2),_0x2fcf86[_0x2fcf86['product']=0x6]=_0x36c28b(0x30c),_0x2fcf86[_0x2fcf86['stdDev']=0x7]=_0x36c28b(0x2d1),_0x2fcf86[_0x2fcf86[_0x36c28b(0x356)]=0x8]=_0x36c28b(0x356),_0x2fcf86[_0x2fcf86[_0x36c28b(0x3f5)]=0x9]=_0x36c28b(0x3f5),_0x2fcf86[_0x2fcf86[_0x36c28b(0x3d4)]=0xa]='var',_0x2fcf86[_0x2fcf86[_0x36c28b(0x4e5)]=0xb]=_0x36c28b(0x4e5),_0x2fcf86;}({}),a=function(_0x448508){const _0x3be018=_0x2d7eb5;return _0x448508[_0x448508[_0x3be018(0x4b7)]=0x1]='normal',_0x448508[_0x448508[_0x3be018(0x51b)]=0x2]=_0x3be018(0x51b),_0x448508[_0x448508[_0x3be018(0x527)]=0x3]=_0x3be018(0x527),_0x448508[_0x448508['percentOfGrandTotal']=0x4]=_0x3be018(0x2c4),_0x448508[_0x448508[_0x3be018(0x507)]=0x5]=_0x3be018(0x507),_0x448508[_0x448508[_0x3be018(0x2ec)]=0x6]=_0x3be018(0x2ec),_0x448508[_0x448508[_0x3be018(0x1c4)]=0x7]=_0x3be018(0x1c4),_0x448508[_0x448508['index']=0x8]=_0x3be018(0x51d),_0x448508[_0x448508[_0x3be018(0x304)]=0x9]='differenceFrom',_0x448508[_0x448508[_0x3be018(0x2f1)]=0xa]=_0x3be018(0x2f1),_0x448508[_0x448508['runningTotal']=0xb]=_0x3be018(0x515),_0x448508[_0x448508['percentRunningTotal']=0xc]=_0x3be018(0x38f),_0x448508[_0x448508[_0x3be018(0x33e)]=0xd]='percentOf',_0x448508[_0x448508['percentOfParent']=0xe]=_0x3be018(0x253),_0x448508[_0x448508[_0x3be018(0x4b2)]=0xf]='rankAscending',_0x448508[_0x448508[_0x3be018(0x386)]=0x10]=_0x3be018(0x386),_0x448508;}({}),o=function(_0x5be20a){const _0x1670e5=_0x2d7eb5;return _0x5be20a[_0x5be20a[_0x1670e5(0x444)]=0x1]=_0x1670e5(0x444),_0x5be20a[_0x5be20a[_0x1670e5(0x4eb)]=0x2]=_0x1670e5(0x4eb),_0x5be20a[_0x5be20a[_0x1670e5(0x43e)]=0x3]='next',_0x5be20a;}({}),s=function(_0x16b1ed){const _0x2fcb01=_0x2d7eb5;return _0x16b1ed[_0x16b1ed[_0x2fcb01(0x343)]=0x1]=_0x2fcb01(0x343),_0x16b1ed[_0x16b1ed[_0x2fcb01(0x4a1)]=0x2]='NotNumber',_0x16b1ed[_0x16b1ed[_0x2fcb01(0x23f)]=0x3]=_0x2fcb01(0x23f),_0x16b1ed[_0x16b1ed['NotName']=0x4]='NotName',_0x16b1ed[_0x16b1ed['BadReference']=0x5]=_0x2fcb01(0x38c),_0x16b1ed;}({}),c=function(_0x309878){const _0x2ca280=_0x2d7eb5;return _0x309878[_0x309878[_0x2ca280(0x33c)]=0x1]=_0x2ca280(0x33c),_0x309878[_0x309878[_0x2ca280(0x44f)]=0x2]=_0x2ca280(0x44f),_0x309878[_0x309878[_0x2ca280(0x4e7)]=0x3]=_0x2ca280(0x4e7),_0x309878[_0x309878['RecordFilter']=0x4]=_0x2ca280(0x2a2),_0x309878;}({}),l=function(_0xb2ad34){const _0x25beda=_0x2d7eb5;return _0xb2ad34[_0xb2ad34[_0x25beda(0x3b7)]=0x1]=_0x25beda(0x3b7),_0xb2ad34[_0xb2ad34[_0x25beda(0x237)]=0x2]='Row',_0xb2ad34[_0xb2ad34[_0x25beda(0x36f)]=0x3]=_0x25beda(0x36f),_0xb2ad34[_0xb2ad34[_0x25beda(0x23a)]=0x4]=_0x25beda(0x23a),_0xb2ad34[_0xb2ad34[_0x25beda(0x411)]=0x5]='Hidden',_0xb2ad34;}({}),u=function(_0x34b3ab){const _0x27fa5b=_0x2d7eb5;return _0x34b3ab[_0x34b3ab[_0x27fa5b(0x25f)]=-0x1]=_0x27fa5b(0x25f),_0x34b3ab[_0x34b3ab[_0x27fa5b(0x3b7)]=0x1]='Column',_0x34b3ab[_0x34b3ab[_0x27fa5b(0x237)]=0x2]='Row',_0x34b3ab;}({}),d=function(_0x278175){const _0x50d796=_0x2d7eb5;return _0x278175[_0x278175[_0x50d796(0x374)]=0x1]='text',_0x278175[_0x278175[_0x50d796(0x2c9)]=0x2]='number',_0x278175[_0x278175[_0x50d796(0x483)]=0x3]=_0x50d796(0x483),_0x278175[_0x278175[_0x50d796(0x398)]=0x4]=_0x50d796(0x398),_0x278175[_0x278175[_0x50d796(0x2fa)]=0x5]='blank',_0x278175[_0x278175[_0x50d796(0x2db)]=0x6]=_0x50d796(0x2db),_0x278175;}({}),f=function(_0x268b6f){const _0x401913=_0x2d7eb5;return _0x268b6f[_0x268b6f[_0x401913(0x414)]=0x1]=_0x401913(0x414),_0x268b6f[_0x268b6f[_0x401913(0x4c7)]=0x2]=_0x401913(0x4c7),_0x268b6f;}({}),p=function(_0x3338b1){const _0x353f9f=_0x2d7eb5;return _0x3338b1[_0x3338b1[_0x353f9f(0x53b)]=0x1]=_0x353f9f(0x53b),_0x3338b1[_0x3338b1[_0x353f9f(0x447)]=0x2]=_0x353f9f(0x447),_0x3338b1[_0x3338b1[_0x353f9f(0x36b)]=0x3]=_0x353f9f(0x36b),_0x3338b1;}({}),m=function(_0x7d8e1e){const _0x150371=_0x2d7eb5;return _0x7d8e1e[_0x7d8e1e[_0x150371(0x3b9)]=0x1]='captionBeginsWith',_0x7d8e1e[_0x7d8e1e[_0x150371(0x2ba)]=0x2]=_0x150371(0x2ba),_0x7d8e1e[_0x7d8e1e[_0x150371(0x26d)]=0x3]=_0x150371(0x26d),_0x7d8e1e[_0x7d8e1e[_0x150371(0x31d)]=0x4]='captionEndsWith',_0x7d8e1e[_0x7d8e1e[_0x150371(0x479)]=0x5]='captionEqual',_0x7d8e1e[_0x7d8e1e[_0x150371(0x4d7)]=0x6]=_0x150371(0x4d7),_0x7d8e1e[_0x7d8e1e[_0x150371(0x1c6)]=0x7]=_0x150371(0x1c6),_0x7d8e1e[_0x7d8e1e['captionLessThan']=0x8]='captionLessThan',_0x7d8e1e[_0x7d8e1e[_0x150371(0x47f)]=0x9]='captionLessThanOrEqual',_0x7d8e1e[_0x7d8e1e['captionNotBeginsWith']=0xa]='captionNotBeginsWith',_0x7d8e1e[_0x7d8e1e[_0x150371(0x3c5)]=0xb]=_0x150371(0x3c5),_0x7d8e1e[_0x7d8e1e[_0x150371(0x4d9)]=0xc]=_0x150371(0x4d9),_0x7d8e1e[_0x7d8e1e['captionNotEndsWith']=0xd]=_0x150371(0x219),_0x7d8e1e[_0x7d8e1e[_0x150371(0x38d)]=0xe]=_0x150371(0x38d),_0x7d8e1e[_0x7d8e1e['count']=0xf]=_0x150371(0x46a),_0x7d8e1e[_0x7d8e1e[_0x150371(0x211)]=0x10]=_0x150371(0x211),_0x7d8e1e[_0x7d8e1e[_0x150371(0x24c)]=0x11]=_0x150371(0x24c),_0x7d8e1e[_0x7d8e1e[_0x150371(0x389)]=0x12]=_0x150371(0x389),_0x7d8e1e[_0x7d8e1e[_0x150371(0x4c5)]=0x13]='dateNewerThanOrEqual',_0x7d8e1e[_0x7d8e1e[_0x150371(0x226)]=0x14]=_0x150371(0x226),_0x7d8e1e[_0x7d8e1e[_0x150371(0x439)]=0x15]=_0x150371(0x439),_0x7d8e1e[_0x7d8e1e[_0x150371(0x32c)]=0x16]=_0x150371(0x32c),_0x7d8e1e[_0x7d8e1e[_0x150371(0x1fa)]=0x17]='dateOlderThanOrEqual',_0x7d8e1e[_0x7d8e1e[_0x150371(0x41a)]=0x18]=_0x150371(0x41a),_0x7d8e1e[_0x7d8e1e[_0x150371(0x4b1)]=0x19]=_0x150371(0x4b1),_0x7d8e1e[_0x7d8e1e['lastWeek']=0x1a]=_0x150371(0x508),_0x7d8e1e[_0x7d8e1e[_0x150371(0x393)]=0x1b]=_0x150371(0x393),_0x7d8e1e[_0x7d8e1e['M1']=0x1c]='M1',_0x7d8e1e[_0x7d8e1e[_0x150371(0x364)]=0x1d]=_0x150371(0x364),_0x7d8e1e[_0x7d8e1e[_0x150371(0x437)]=0x1e]=_0x150371(0x437),_0x7d8e1e[_0x7d8e1e[_0x150371(0x41c)]=0x1f]=_0x150371(0x41c),_0x7d8e1e[_0x7d8e1e['M2']=0x20]='M2',_0x7d8e1e[_0x7d8e1e['M3']=0x21]='M3',_0x7d8e1e[_0x7d8e1e['M4']=0x22]='M4',_0x7d8e1e[_0x7d8e1e['M5']=0x23]='M5',_0x7d8e1e[_0x7d8e1e['M6']=0x24]='M6',_0x7d8e1e[_0x7d8e1e['M7']=0x25]='M7',_0x7d8e1e[_0x7d8e1e['M8']=0x26]='M8',_0x7d8e1e[_0x7d8e1e['M9']=0x27]='M9',_0x7d8e1e[_0x7d8e1e[_0x150371(0x370)]=0x28]=_0x150371(0x370),_0x7d8e1e[_0x7d8e1e['nextQuarter']=0x29]=_0x150371(0x4e1),_0x7d8e1e[_0x7d8e1e[_0x150371(0x528)]=0x2a]=_0x150371(0x528),_0x7d8e1e[_0x7d8e1e[_0x150371(0x43c)]=0x2b]=_0x150371(0x43c),_0x7d8e1e[_0x7d8e1e[_0x150371(0x221)]=0x2c]=_0x150371(0x221),_0x7d8e1e[_0x7d8e1e['Q1']=0x2d]='Q1',_0x7d8e1e[_0x7d8e1e['Q2']=0x2e]='Q2',_0x7d8e1e[_0x7d8e1e['Q3']=0x2f]='Q3',_0x7d8e1e[_0x7d8e1e['Q4']=0x30]='Q4',_0x7d8e1e[_0x7d8e1e[_0x150371(0x3f5)]=0x31]=_0x150371(0x3f5),_0x7d8e1e[_0x7d8e1e['thisMonth']=0x32]='thisMonth',_0x7d8e1e[_0x7d8e1e[_0x150371(0x344)]=0x33]=_0x150371(0x344),_0x7d8e1e[_0x7d8e1e[_0x150371(0x2f7)]=0x34]=_0x150371(0x2f7),_0x7d8e1e[_0x7d8e1e[_0x150371(0x247)]=0x35]=_0x150371(0x247),_0x7d8e1e[_0x7d8e1e[_0x150371(0x1c9)]=0x36]='today',_0x7d8e1e[_0x7d8e1e[_0x150371(0x4aa)]=0x37]='tomorrow',_0x7d8e1e[_0x7d8e1e['unknown']=0x38]=_0x150371(0x3b1),_0x7d8e1e[_0x7d8e1e['valueBetween']=0x39]=_0x150371(0x4fb),_0x7d8e1e[_0x7d8e1e['valueEqual']=0x3a]=_0x150371(0x421),_0x7d8e1e[_0x7d8e1e[_0x150371(0x384)]=0x3b]=_0x150371(0x384),_0x7d8e1e[_0x7d8e1e[_0x150371(0x341)]=0x3c]=_0x150371(0x341),_0x7d8e1e[_0x7d8e1e[_0x150371(0x1ea)]=0x3d]=_0x150371(0x1ea),_0x7d8e1e[_0x7d8e1e[_0x150371(0x2ce)]=0x3e]=_0x150371(0x2ce),_0x7d8e1e[_0x7d8e1e[_0x150371(0x217)]=0x3f]=_0x150371(0x217),_0x7d8e1e[_0x7d8e1e[_0x150371(0x358)]=0x40]=_0x150371(0x358),_0x7d8e1e[_0x7d8e1e[_0x150371(0x3c7)]=0x41]=_0x150371(0x3c7),_0x7d8e1e[_0x7d8e1e[_0x150371(0x29d)]=0x42]=_0x150371(0x29d),_0x7d8e1e;}({}),h=function(_0x33108f){const _0x271eeb=_0x2d7eb5;return _0x33108f[_0x33108f[_0x271eeb(0x2f6)]=0x1]=_0x271eeb(0x2f6),_0x33108f[_0x33108f[_0x271eeb(0x1e2)]=0x2]=_0x271eeb(0x1e2),_0x33108f[_0x33108f[_0x271eeb(0x1b7)]=0x3]='tabular',_0x33108f;}({}),g=function(_0x16725d){const _0x3daee0=_0x2d7eb5;return _0x16725d[_0x16725d[_0x3daee0(0x336)]=0x1]=_0x3daee0(0x336),_0x16725d[_0x16725d[_0x3daee0(0x234)]=0x2]=_0x3daee0(0x234),_0x16725d;}({}),_=function(_0x593642){const _0x2c0e8a=_0x2d7eb5;return _0x593642[_0x2c0e8a(0x34c)]='onQueryStart',_0x593642[_0x2c0e8a(0x45d)]=_0x2c0e8a(0x45d),_0x593642;}({}),v=function(_0x57fa37){const _0x3ca1d4=_0x2d7eb5;return _0x57fa37[_0x57fa37[_0x3ca1d4(0x495)]=0x1]=_0x3ca1d4(0x495),_0x57fa37[_0x57fa37[_0x3ca1d4(0x376)]=0x2]=_0x3ca1d4(0x376),_0x57fa37[_0x57fa37[_0x3ca1d4(0x49f)]=0x3]=_0x3ca1d4(0x49f),_0x57fa37[_0x57fa37[_0x3ca1d4(0x235)]=0x4]=_0x3ca1d4(0x235),_0x57fa37[_0x57fa37['customGroupField']=0x5]=_0x3ca1d4(0x252),_0x57fa37;}({}),y=function(_0x496fbe){const _0x4833bc=_0x2d7eb5;return _0x496fbe[_0x4833bc(0x39e)]=_0x4833bc(0x4e6),_0x496fbe[_0x4833bc(0x484)]=_0x4833bc(0x4c0),_0x496fbe;}({}),b=function(_0x367624){const _0x2f418a=_0x2d7eb5;return _0x367624['Year']=_0x2f418a(0x402),_0x367624[_0x2f418a(0x470)]='quarter',_0x367624[_0x2f418a(0x469)]=_0x2f418a(0x3e1),_0x367624['Day']='day',_0x367624[_0x2f418a(0x52e)]='hour',_0x367624[_0x2f418a(0x48e)]=_0x2f418a(0x3df),_0x367624[_0x2f418a(0x46d)]='second',_0x367624;}({}),ee=function(_0x5befe8){const _0x5125c5=_0x2d7eb5;return _0x5befe8['Minute']='minute',_0x5befe8[_0x5125c5(0x52e)]=_0x5125c5(0x1ae),_0x5befe8['HourMinute']=_0x5125c5(0x255),_0x5befe8[_0x5125c5(0x4ec)]=_0x5125c5(0x398),_0x5befe8[_0x5125c5(0x469)]=_0x5125c5(0x3e1),_0x5befe8[_0x5125c5(0x2ae)]='month-date',_0x5befe8[_0x5125c5(0x470)]='quarter',_0x5befe8['Year']=_0x5125c5(0x402),_0x5befe8[_0x5125c5(0x511)]=_0x5125c5(0x1b4),_0x5befe8[_0x5125c5(0x1eb)]=_0x5125c5(0x333),_0x5befe8[_0x5125c5(0x2bf)]=_0x5125c5(0x418),_0x5befe8;}({}),te=function(_0x29d320){const _0xd28bb7=_0x2d7eb5;return _0x29d320[_0xd28bb7(0x2e6)]='member',_0x29d320[_0xd28bb7(0x1bd)]=_0xd28bb7(0x4cc),_0x29d320['Value']=_0xd28bb7(0x414),_0x29d320;}({});function x(_0x206d14){const _0x4efa22=_0x2d7eb5;return Number[_0x4efa22(0x30e)](_0x206d14)&&_0x206d14>=0x10&&_0x206d14<=0x17;}function S(_0x221f78){const _0x64405c=_0x2d7eb5;return(_0x221f78==null?void 0x0:_0x221f78[_0x64405c(0x43b)])===0x1&&x(_0x221f78[_0x64405c(0x403)]);}function C(_0x57a053){const _0x51cdb1=_0x2d7eb5;if(!S(_0x57a053)||_0x57a053[_0x51cdb1(0x3a0)]!==void 0x0&&typeof _0x57a053[_0x51cdb1(0x3a0)]!=_0x51cdb1(0x483))throw TypeError('Invalid\x20pivot\x20date\x20filter.');let _0x1a7da0=_0x57a053['operator']===0x10||_0x57a053[_0x51cdb1(0x403)]===0x14,_0x13aee6=_0x1a7da0?_0x57a053['expected']:[_0x57a053[_0x51cdb1(0x2a0)]];if(!Array[_0x51cdb1(0x394)](_0x13aee6)||_0x13aee6['length']!==(_0x1a7da0?0x2:0x1)||_0x13aee6[_0x51cdb1(0x312)](_0x5e05cc=>typeof _0x5e05cc!='number'||!Number[_0x51cdb1(0x3ca)](_0x5e05cc))||_0x1a7da0&&_0x13aee6[0x0]>_0x13aee6[0x1])throw RangeError(_0x51cdb1(0x4b5));let _0x1b2101=_0x57a053[_0x51cdb1(0x3a0)]===!0x0,_0x3a5bfc=_0x1b2101?Math[_0x51cdb1(0x308)](_0x13aee6[0x0]):_0x13aee6[0x0],_0x1d2e71=_0x1b2101?Math[_0x51cdb1(0x308)](_0x13aee6[0x1]):_0x13aee6[0x1],_0x1f3dcf=_0x57a053['operator'];return _0x20e7a1=>{const _0x33d234=_0x51cdb1;if(!Number['isFinite'](_0x20e7a1))return!0x1;let _0x1023a4=_0x1b2101?Math[_0x33d234(0x308)](_0x20e7a1):_0x20e7a1;switch(_0x1f3dcf){case 0x10:return _0x1023a4>=_0x3a5bfc&&_0x1023a4<=_0x1d2e71;case 0x14:return _0x1023a4<_0x3a5bfc||_0x1023a4>_0x1d2e71;case 0x11:return _0x1023a4===_0x3a5bfc;case 0x15:return _0x1023a4!==_0x3a5bfc;case 0x12:return _0x1023a4>_0x3a5bfc;case 0x13:return _0x1023a4>=_0x3a5bfc;case 0x16:return _0x1023a4<_0x3a5bfc;case 0x17:return _0x1023a4<=_0x3a5bfc;default:return!0x1;}};}function w(_0x489a45){const _0x4466d2=_0x2d7eb5;return typeof _0x489a45==_0x4466d2(0x4c3)&&!!_0x489a45&&!Array[_0x4466d2(0x394)](_0x489a45)&&'v'in _0x489a45&&typeof _0x489a45['v']=='number'&&'f'in _0x489a45&&typeof _0x489a45['f']==_0x4466d2(0x1cd);}function T(_0x5eee77){const _0x555bd4=_0x2d7eb5;return typeof _0x5eee77==_0x555bd4(0x4c3)&&!!_0x5eee77&&!Array[_0x555bd4(0x394)](_0x5eee77)&&_0x555bd4(0x284)in _0x5eee77&&typeof _0x5eee77[_0x555bd4(0x284)]=='string';}function ne(_0x1ee488){const _0x5f2b68=_0x2d7eb5;let {operator:_0xd85094,expected:_0x4972fe}=_0x1ee488,_0x427119=String(Array[_0x5f2b68(0x394)](_0x4972fe)?_0x4972fe[0x0]:_0x4972fe),_0x555e18=Array['isArray'](_0x4972fe)?String(_0x4972fe[0x1]):_0x427119;return _0x47454b=>{const _0x8db33d=_0x5f2b68;switch(_0xd85094){case 0x1:return _0x47454b[_0x8db33d(0x4b4)](_0x427119);case 0x2:return _0x47454b>=_0x427119&&_0x47454b<=_0x555e18;case 0x3:return _0x47454b[_0x8db33d(0x3fd)](_0x427119);case 0x4:return _0x47454b[_0x8db33d(0x22f)](_0x427119);case 0x5:return _0x47454b===_0x427119;case 0x6:return _0x47454b>_0x427119;case 0x7:return _0x47454b>=_0x427119;case 0x8:return _0x47454b<_0x427119;case 0x9:return _0x47454b<=_0x427119;case 0xa:return!_0x47454b[_0x8db33d(0x4b4)](_0x427119);case 0xb:return _0x47454b<_0x427119||_0x47454b>_0x555e18;case 0xc:return!_0x47454b[_0x8db33d(0x3fd)](_0x427119);case 0xd:return!_0x47454b[_0x8db33d(0x22f)](_0x427119);case 0xe:return _0x47454b!==_0x427119;default:throw TypeError(_0x8db33d(0x1fd));}};}function re(_0x56e103){switch(_0x56e103){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(_0x439497,_0x267a50,_0x4243dc){const _0x45343c=_0x2d7eb5;let _0x41cbdd=Math[_0x45343c(0x4e2)](_0x439497['length'],Math[_0x45343c(0x4bd)](0x0,Math[_0x45343c(0x2ea)](_0x267a50)));if(_0x41cbdd===0x0)return;if(_0x41cbdd===_0x439497[_0x45343c(0x2a6)]){let _0x4c3040=_0x439497[0x0];for(let _0x3b80de=0x1;_0x3b80de<_0x439497[_0x45343c(0x2a6)];_0x3b80de++)_0x4c3040=_0x4243dc?Math[_0x45343c(0x4bd)](_0x4c3040,_0x439497[_0x3b80de]):Math['min'](_0x4c3040,_0x439497[_0x3b80de]);return _0x4c3040;}let _0x512ee1=[],_0x5c9d9b=_0x35bdca=>{const _0x2728ae=_0x45343c;_0x512ee1[_0x2728ae(0x466)](_0x35bdca);let _0x52eb06=_0x512ee1['length']-0x1;for(;_0x52eb06>0x0;){let _0x2f96d4=Math[_0x2728ae(0x308)]((_0x52eb06-0x1)/0x2);if(_0x512ee1[_0x2f96d4]<=_0x512ee1[_0x52eb06])break;[_0x512ee1[_0x2f96d4],_0x512ee1[_0x52eb06]]=[_0x512ee1[_0x52eb06],_0x512ee1[_0x2f96d4]],_0x52eb06=_0x2f96d4;}},_0x50ca12=_0x150db6=>{const _0x1b6e8c=_0x45343c;_0x512ee1[0x0]=_0x150db6;let _0x21dd31=0x0;for(;;){let _0x251e02=_0x21dd31*0x2+0x1,_0x174cd4=_0x251e02+0x1,_0x26b46e=_0x21dd31;if(_0x251e02<_0x512ee1[_0x1b6e8c(0x2a6)]&&_0x512ee1[_0x251e02]<_0x512ee1[_0x26b46e]&&(_0x26b46e=_0x251e02),_0x174cd4<_0x512ee1[_0x1b6e8c(0x2a6)]&&_0x512ee1[_0x174cd4]<_0x512ee1[_0x26b46e]&&(_0x26b46e=_0x174cd4),_0x26b46e===_0x21dd31)break;[_0x512ee1[_0x21dd31],_0x512ee1[_0x26b46e]]=[_0x512ee1[_0x26b46e],_0x512ee1[_0x21dd31]],_0x21dd31=_0x26b46e;}};for(let _0x441324 of _0x439497){let _0x3109a9=_0x4243dc?-_0x441324:_0x441324;_0x512ee1[_0x45343c(0x2a6)]<_0x41cbdd?_0x5c9d9b(_0x3109a9):_0x3109a9>_0x512ee1[0x0]&&_0x50ca12(_0x3109a9);}return _0x4243dc?-_0x512ee1[0x0]:_0x512ee1[0x0];}function ae(_0x35bab0){const _0x32ae08=_0x2d7eb5;let {operator:_0xe58ade,expected:_0x5c8d3d}=_0x35bab0;switch(_0xe58ade){case 0x39:return _0x179e7a=>_0x179e7a>=_0x5c8d3d[0x0]&&_0x179e7a<=_0x5c8d3d[0x1];case 0x3a:return _0x3f89fe=>_0x3f89fe===_0x5c8d3d;case 0x3b:return _0x5738ab=>_0x5738ab>_0x5c8d3d;case 0x3c:return _0x4a097f=>_0x4a097f>=_0x5c8d3d;case 0x3d:return _0x5304c3=>_0x5304c3<_0x5c8d3d;case 0x3e:return _0x502546=>_0x502546<=_0x5c8d3d;case 0x3f:return _0x14ce53=>_0x14ce53<_0x5c8d3d[0x0]||_0x14ce53>_0x5c8d3d[0x1];case 0x40:return _0x1a3ef3=>_0x1a3ef3!==_0x5c8d3d;default:return console['error'](_0x32ae08(0x4c2)+_0xe58ade),()=>!0x0;}}function oe(_0x995ed3){const _0x6dfc8b=_0x2d7eb5;let _0x349963=new Set(),_0x5e2c98=_0x995ed3[_0x6dfc8b(0x382)];return(_0x5e2c98==null?void 0x0:_0x5e2c98[_0x6dfc8b(0x43b)])===0x4?(le({'type':0x4,'selection':_0x5e2c98[_0x6dfc8b(0x20a)]})&&_0x349963[_0x6dfc8b(0x426)](_0x6dfc8b(0x519)),_0x5e2c98[_0x6dfc8b(0x4fe)]!==void 0x0&&_0x349963[_0x6dfc8b(0x426)]('condition')):_0x5e2c98&&O(_0x5e2c98)&&_0x349963[_0x6dfc8b(0x426)](_0x5e2c98['type']===0x1?_0x6dfc8b(0x4cc):_0x6dfc8b(0x519)),_0x995ed3[_0x6dfc8b(0x379)]&&_0x349963[_0x6dfc8b(0x426)](_0x6dfc8b(0x4cc)),_0x349963;}function se(_0x479e4b){const _0x40ab9f=_0x2d7eb5;let _0x574d00=new Map();for(let _0xcc3971 of Object[_0x40ab9f(0x2d4)](_0x479e4b[_0x40ab9f(0x375)])){var _0x58da34;let _0x26e879=_0x574d00[_0x40ab9f(0x4d0)](_0xcc3971[_0x40ab9f(0x2e0)])??new Set();if(oe(_0xcc3971)[_0x40ab9f(0x4ea)](_0xc8be3b=>_0x26e879[_0x40ab9f(0x426)](_0xc8be3b)),(_0x58da34=_0x479e4b[_0x40ab9f(0x2b6)])!=null&&_0x58da34[_0x40ab9f(0x312)](_0x319ede=>_0x319ede[_0x40ab9f(0x420)]===_0xcc3971['id'])&&_0x26e879[_0x40ab9f(0x426)](_0x40ab9f(0x414)),_0x26e879[_0x40ab9f(0x1ca)]>0x1)return!0x0;_0x574d00[_0x40ab9f(0x526)](_0xcc3971[_0x40ab9f(0x2e0)],_0x26e879);}return!0x1;}function E(_0x4d69c7){const _0x3467ef=_0x2d7eb5;if(_0x4d69c7==null)return{'type':e[_0x3467ef(0x502)][_0x3467ef(0x328)]};if(typeof _0x4d69c7==_0x3467ef(0x1cd))return{'type':e[_0x3467ef(0x502)][_0x3467ef(0x49c)],'value':_0x4d69c7};if(typeof _0x4d69c7==_0x3467ef(0x2c9)){if(!Number[_0x3467ef(0x3ca)](_0x4d69c7))throw RangeError(_0x3467ef(0x45a));return{'type':e[_0x3467ef(0x502)]['Number'],'value':_0x4d69c7};}if(typeof _0x4d69c7==_0x3467ef(0x483))return{'type':e[_0x3467ef(0x502)]['Boolean'],'value':_0x4d69c7};if(T(_0x4d69c7))return{'type':e[_0x3467ef(0x502)][_0x3467ef(0x369)],'value':_0x4d69c7['error']};if(w(_0x4d69c7)){if(!Number[_0x3467ef(0x3ca)](_0x4d69c7['v']))throw RangeError(_0x3467ef(0x256));return{'type':e[_0x3467ef(0x502)][_0x3467ef(0x4ec)],'value':_0x4d69c7['v']};}throw TypeError('Invalid\x20pivot\x20record\x20value.');}function ce(_0x445ef4){const _0x333687=_0x2d7eb5;let _0x2374d7=_0x445ef4;if(!A(_0x2374d7)||_0x2374d7[_0x333687(0x43b)]!==0x4)throw TypeError(_0x333687(0x490));let {selection:_0x2ae408,dateRange:_0x1548dd}=_0x2374d7;if(A(_0x1548dd)&&_0x1548dd[_0x333687(0x3a0)]!==void 0x0&&typeof _0x1548dd[_0x333687(0x3a0)]!=_0x333687(0x483))throw TypeError('Invalid\x20pivot\x20whole-day\x20mode.');if(_0x2ae408!==void 0x0){if(!A(_0x2ae408)||typeof _0x2ae408[_0x333687(0x4f4)]!=_0x333687(0x1cd))throw TypeError(_0x333687(0x505));if(_0x2ae408[_0x333687(0x4f4)]===e[_0x333687(0x4f2)][_0x333687(0x283)]){if('values'in _0x2ae408)throw TypeError('All\x20selection\x20cannot\x20contain\x20values.');}else{if(_0x2ae408[_0x333687(0x4f4)]!==e[_0x333687(0x4f2)][_0x333687(0x1df)]&&_0x2ae408['mode']!==e[_0x333687(0x4f2)]['Exclude']||!Array['isArray'](_0x2ae408[_0x333687(0x2d4)]))throw TypeError(_0x333687(0x505));else _0x2ae408[_0x333687(0x2d4)][_0x333687(0x4ea)](e['getRecordValueKey']);}}if(_0x1548dd!==void 0x0&&(!A(_0x1548dd)||typeof _0x1548dd[_0x333687(0x207)]!=_0x333687(0x2c9)||typeof _0x1548dd[_0x333687(0x307)]!=_0x333687(0x2c9)||!Number['isFinite'](_0x1548dd[_0x333687(0x207)])||!Number['isFinite'](_0x1548dd[_0x333687(0x307)])||_0x1548dd[_0x333687(0x207)]>_0x1548dd[_0x333687(0x307)]))throw RangeError(_0x333687(0x254));}function D(_0x36ec3b){return(_0x36ec3b==null?void 0x0:_0x36ec3b['type'])===0x4;}function O(_0x30efcb){const _0x59739b=_0x2d7eb5;return D(_0x30efcb)?(ce(_0x30efcb),le(_0x30efcb)):_0x30efcb[_0x59739b(0x43b)]!==0x3||_0x30efcb[_0x59739b(0x352)]!==!0x0;}function le(_0x1d593e){const _0x115f9c=_0x2d7eb5;var _0x484325,_0x339729;return _0x1d593e[_0x115f9c(0x4fe)]!==void 0x0||((_0x484325=_0x1d593e['selection'])==null?void 0x0:_0x484325['mode'])===e[_0x115f9c(0x4f2)][_0x115f9c(0x1df)]||((_0x339729=_0x1d593e[_0x115f9c(0x20a)])==null?void 0x0:_0x339729['mode'])===e[_0x115f9c(0x4f2)][_0x115f9c(0x26b)]&&_0x1d593e[_0x115f9c(0x20a)][_0x115f9c(0x2d4)][_0x115f9c(0x2a6)]>0x0;}function k(_0x20c693){const _0x55a1c5=_0x2d7eb5;if(_0x20c693)switch(_0x20c693[_0x55a1c5(0x43b)]){case 0x4:return ce(_0x20c693),{'type':0x4,..._0x20c693[_0x55a1c5(0x20a)]===void 0x0?null:{'selection':_0x20c693[_0x55a1c5(0x20a)][_0x55a1c5(0x4f4)]===e[_0x55a1c5(0x4f2)][_0x55a1c5(0x283)]?{'mode':e[_0x55a1c5(0x4f2)]['All']}:{'mode':_0x20c693[_0x55a1c5(0x20a)][_0x55a1c5(0x4f4)],'values':_0x20c693[_0x55a1c5(0x20a)][_0x55a1c5(0x2d4)][_0x55a1c5(0x39b)](_0x5d233c=>_0x5d233c[_0x55a1c5(0x43b)]===e[_0x55a1c5(0x502)][_0x55a1c5(0x328)]?{'type':e[_0x55a1c5(0x502)][_0x55a1c5(0x328)]}:{..._0x5d233c})}},..._0x20c693[_0x55a1c5(0x4fe)]===void 0x0?null:{'dateRange':{..._0x20c693[_0x55a1c5(0x4fe)]}}};case 0x3:return{..._0x20c693,'list':_0x20c693[_0x55a1c5(0x4b0)][_0x55a1c5(0x4f6)]()};case 0x1:return(_0x20c693['useWholeDay']!==void 0x0||x(_0x20c693[_0x55a1c5(0x403)]))&&C(_0x20c693),{..._0x20c693,'expected':Array[_0x55a1c5(0x394)](_0x20c693[_0x55a1c5(0x2a0)])?_0x20c693[_0x55a1c5(0x2a0)][_0x55a1c5(0x4f6)]():_0x20c693[_0x55a1c5(0x2a0)]};case 0x2:return{..._0x20c693,'expected':Array[_0x55a1c5(0x394)](_0x20c693[_0x55a1c5(0x2a0)])?_0x20c693[_0x55a1c5(0x2a0)][_0x55a1c5(0x4f6)]():_0x20c693['expected']};default:throw TypeError(_0x55a1c5(0x1f4));}}function A(_0x377f2c){const _0x2d6860=_0x2d7eb5;return typeof _0x377f2c=='object'&&!!_0x377f2c&&!Array[_0x2d6860(0x394)](_0x377f2c);}let ue=function(_0x460ff6){const _0xb475a3=_0x2d7eb5;return _0x460ff6[_0x460ff6[_0xb475a3(0x22e)]=0x0]=_0xb475a3(0x22e),_0x460ff6[_0x460ff6['SetSubtotalType']=0x1]=_0xb475a3(0x202),_0x460ff6[_0x460ff6[_0xb475a3(0x270)]=0x2]=_0xb475a3(0x270),_0x460ff6[_0x460ff6[_0xb475a3(0x1a0)]=0x3]=_0xb475a3(0x1a0),_0x460ff6[_0x460ff6[_0xb475a3(0x49e)]=0x4]='SetFilterInfo',_0x460ff6[_0x460ff6[_0xb475a3(0x267)]=0x5]=_0xb475a3(0x267),_0x460ff6[_0x460ff6[_0xb475a3(0x39d)]=0x6]=_0xb475a3(0x39d),_0x460ff6[_0x460ff6[_0xb475a3(0x25e)]=0x7]=_0xb475a3(0x25e),_0x460ff6[_0x460ff6['SetOptions']=0x8]=_0xb475a3(0x4de),_0x460ff6[_0x460ff6[_0xb475a3(0x2ac)]=0x9]='SetFieldFormat',_0x460ff6[_0x460ff6[_0xb475a3(0x26a)]=0xa]=_0xb475a3(0x26a),_0x460ff6[_0x460ff6[_0xb475a3(0x31a)]=0xb]=_0xb475a3(0x31a),_0x460ff6[_0x460ff6[_0xb475a3(0x1de)]=0xc]=_0xb475a3(0x1de),_0x460ff6[_0x460ff6[_0xb475a3(0x4af)]=0xd]='SetLayout',_0x460ff6[_0x460ff6[_0xb475a3(0x34f)]=0xe]='SetShowDataAs',_0x460ff6;}({}),de=function(_0x1efbe3){const _0xdc6ea0=_0x2d7eb5;return _0x1efbe3[_0x1efbe3['blank']=0x2]=_0xdc6ea0(0x2fa),_0x1efbe3[_0x1efbe3['date']=0x4]=_0xdc6ea0(0x398),_0x1efbe3[_0x1efbe3[_0xdc6ea0(0x2db)]=0x8]=_0xdc6ea0(0x2db),_0x1efbe3;}({}),fe=function(_0x3f5b2a){const _0x2f568d=_0x2d7eb5;return _0x3f5b2a[_0x3f5b2a[_0x2f568d(0x335)]=0x1]=_0x2f568d(0x335),_0x3f5b2a[_0x3f5b2a['FilterPartial']=0x2]=_0x2f568d(0x241),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x1ab)]=0x3]='FilterSingle',_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x3c8)]=0x4]=_0x2f568d(0x3c8),_0x3f5b2a[_0x3f5b2a['FilteredSortNone']=0x5]='FilteredSortNone',_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x464)]=0x6]=_0x2f568d(0x464),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x249)]=0x7]=_0x2f568d(0x249),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x37f)]=0x8]=_0x2f568d(0x37f),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x4ef)]=0x9]=_0x2f568d(0x4ef),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x314)]=0xa]='FilterNoneSortDesc',_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x45c)]=0xb]='Collapse',_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x366)]=0xc]='Expand',_0x3f5b2a[_0x3f5b2a['Subtotal']=0xd]=_0x2f568d(0x214),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x522)]=0xe]=_0x2f568d(0x522),_0x3f5b2a[_0x3f5b2a[_0x2f568d(0x3af)]=0xf]='MultipleGrandTotal',_0x3f5b2a;}({});function j(_0x4c3df9){'@babel/helpers - typeof';const _0x328bf7=_0x2d7eb5;return j=typeof Symbol==_0x328bf7(0x51e)&&typeof Symbol[_0x328bf7(0x327)]=='symbol'?function(_0x1a3008){return typeof _0x1a3008;}:function(_0x548c7c){const _0x58f79d=_0x328bf7;return _0x548c7c&&typeof Symbol=='function'&&_0x548c7c[_0x58f79d(0x388)]===Symbol&&_0x548c7c!==Symbol['prototype']?'symbol':typeof _0x548c7c;},j(_0x4c3df9);}function _0xe0c7(){const _0xb263ca=['isLeafNode','String','iterateFieldByArea','SetFilterInfo','dateGroupField','measureCount','NotNumber','NUMBER_GROUP_BEFORE_KEY','_columnTotalIndexes','dimensionIdList','data','colView','unionTupleInfo','208520OAvNgz','errorType','tomorrow','ensureTupleItemByString','endCollectChangeset','getFieldCountByArea','excelDateToUnixMilliseconds','SetLayout','list','lastQuarter','rankAscending','_fieldDataType','startsWith','Pivot\x20date\x20operands\x20must\x20be\x20finite\x20and\x20ordered.','rowDeep','normal','PivotViewItem','addCollection','defineProperty','Average\x20of\x20','isRowMultiMeasure','max','_canonicalTupleIndexes','dimensionSortInfo','excel-like','setLabelValue','Unknown\x20filter\x20operator:\x20','object','_overflowRecordIndexes','dateNewerThanOrEqual','findIndex','field','setDateFilterInfo','getMeasureInfoByIndex','shouldMultipleTotal','setValue','condition','baseFieldId','createDataFieldId','getFilterInfo','get','keys','normalizeExcelDateGrouping','shouldWriteSubtotalAtBottom','PivotTableChangeTypeEnum','resort','getIndex','captionGreaterThan','hasPivotMultipleFilters','captionNotContains','subTotal','leafCount','autoEnd','_getModel','SetOptions','_tupleKeysByLabel','setFieldFormat','nextQuarter','min','filterQueryInfo','getFieldFormat','varp','legacy','ManualFilter','isPivotDateFilter','_createValueFilterLevelPool','forEach','previous','Date','_bubbleDown','createSummaryLabelSortedMap','FilterNoneSortAsc','getUniqueDataFieldName','_nodes','FilterSelectionMode','daysInterval','mode','summaryManager','concat','getLevel','localeCompare','trim','writeParentRows','valueBetween','getValueFields','_addTupleRecord','dateRange','_isPeerType','_updateBlankItemKey','getFieldInfo','RecordValueType','getDisplayName','applyNodeValueType','Invalid\x20pivot\x20record\x20selection.','_parentColumnTotalIndexes','percentOfParentColumnTotal','lastWeek','getColIndexForRowHeader','call','setOptions','setDataFieldId','valueQueryInfo','updateFieldPosition','writeValueHeaderRow','getAutoDisplayNameFunction','YearMonth','groupInfo','valueFilterInfo','PivotTableValueField','runningTotal','doSummary','_applyValueSorts','getTupleItemsMap','member','\x20-\x20','percentOfColumnTotal','writeParentItemRow','index','function','combinePathMap','_squareSum','stringify','GrandTotal','calculateListSubtotal','_summaryManager','_getRawValue','set','percentOfRowTotal','nextWeek','getDirty','getDataFieldId','setShowDataAs','_fieldsCollection','setValueFilterInfo','Hour','registerCallbackWithEvent','getDataFieldType','ranges','_colLevelPool','colQueryInfo','generateHexNumber','\x20Σ值','Collator','valueIndex','random','_displayNames','_level','ascending','colMap','getIndexesByKey','getDataFieldBySourceName','colNodeTree','PivotSubtotalPositionEnum','_buildParentIndexes','writeBottomSubtotalRows','fill','COl_ROOT_PATH','queryData','dateType','removeValueFilterInfoByValueFieldId','isDateGroupFieldJSON','getValueFilterInfos','374670pTrUaJ','resetSort','RenameField','writeBottomSubtotalRow','_setValueFilterState','PivotDateGroupingMode','setDisplayName','showRowGrandTotal','_fieldIndexById','_id','iterateFieldDim','positions','assign','FilterSingle','PivotSubtotalTypeEnum','customFields','hour','isBaseGroupField','Product\x20of\x20','updateAllDisplayName','_summaryManagerCache','dataFields','year-month','setMaxLimitItemCount','showRowSubtotal','tabular','_getIndexedRawValue','_layout','rowQueryInfo','setPaths','headerMap','Condition','getFieldsAreaByType','_updateOtherItemKey','setDataRecordCount','writeLeafItemRow','dateGroupingMode','round','percentOfParentGrandTotal','getDefaultNumberGrouping','captionGreaterThanOrEqual','colCount','sortedList','today','size','getRangeData','_itemIndexMaps','string','getLastCol','writeRootValueHeaderRow','tupleMap','hasSort','doRowBrachNode','isManualPivotFilter','getTupleLabel','isLeaf','setStyle','cloneBufferModel','maxNumber','getValuePosition','setLeaf','Population\x20Standard\x20Deviation\x20of\x20','Sum\x20of\x20','getTupleType','SetValueFilter','Include','displayNameRecord','_queryData','outline','_prepareParentIndexes','getFieldIds','ROW_ROOT_PATH','createValueField','minNumber','getManualGroupValid','_showDataAsResolver','valueLessThan','YearQuarter','Invalid\x20multiple-filter\x20mode.','splice','second','reduce','EXCEL_DATE_AFTER_KEY','clearFieldFilters','join','colTableIdList','Unknown\x20pivot\x20filter\x20type.','sort','_getSortCompare','getItemKey','_sortCompareCache','Number','dateOlderThanOrEqual','getDataRecordCount','Invalid\x20pivot\x20condition\x20filter.','Unsupported\x20pivot\x20caption\x20operator.','setFilterInfo','startChangeStack','hasDate','hasBlank','SetSubtotalType','abs','createDataFieldFromJSON','_tupleGroupCache','setRowCount','startDate','addField','ensureTupleItem','selection','hasSourceName','host','dataFieldType','8NDIqSX','getDisplayNameByKey','__number_after__','dateBetween','every','The\x20displayName\x20','Subtotal','_buildNodeTreeImp','sortInfo','valueNotBetween','columnFields','captionNotEndsWith','getId','dimensionMap','getTableFieldById','doRowLeafNode','rangeKey','records','buildNodeTree','percent','split','day','includesCurrent','measure','dateNotBetween','PivotFilterCategory','tuple','fieldIds','shouldWriteLeafValuesUnderItem','setDateType','month-date','lastRow','AddField','endsWith','DataField','hasInteger','minDate','112392RqDSYK','bottom','textGroupField','getDateGroupValid','Row','repeatColLabels','setLevel','Filter','otherDataKey','_isDerivedType','toPrimitive','getColCount','NotFunction','writeLeafValueRow','FilterPartial','lossLessProperty','_buildCoordinateIndex','refreshGroupField','setSourceName','BLANK_PLACEHOLDER','thisYear','range','FilteredSortDesc','isExistField','_buildItemOrders','dateEqual','layoutPageOverThenDown','ready','endChangeStack','_getDerivedValue','Column\x20Labels','customGroupField','percentOfParent','Invalid\x20pivot\x20date\x20range.','hour-minute','Pivot\x20date\x20record\x20values\x20must\x20be\x20finite.','originalFieldId','getInfo','dayLabels','default','valuePosition','_model','layout','UpdateValuePosition','None','_calculateSubtotalImp','hasBoolean','rowCount','createCollection','_tupleItemCounter','options','_buildRankBuffer','SetSortInfo','getMinutes','_tupleIndexMap','SetCollapse','Exclude','layoutCol','captionContains','_buildPeerIndexes','_updateNumberItemKey','RemoveField','toString','getCell','PivotDataFieldTypeEnum','shouldMultipleNode','_changeStack','toStringTag','layoutHeadersWithoutColumnDimensions','108981GLwvGy','addValue','The\x20value\x20filter\x20info\x20is\x20invalid.','collapse','_heap','doColBranchNode','setSubtotal','dataRecordCount','setCollapse','_updateBooleanItemKey','sortMap','All','error','interval','_valueFilterInfo','12kcCrgs','average','getformat','-%$%-','_coordinates','-$-cr-$-','fields','iterate','renameField','setColCount','fromEntries','createRowInfo','collections','layoutValueLeafNode','Max\x20of\x20','getOriginFieldId','getHours','rowFields','PivotTableValuePositionEnum','tuples','_setPageFilterLabel','getTypeByKey','yesterday','startCollectChangeset','countN','expected','getNoUsedDataFieldIds','RecordFilter','_buildRunningTotalBuffer','rowTableIdList','combinePathMapList','length','layoutValueNodeSubtotal','The\x20field\x20','dataView','unit','_divide','SetFieldFormat','getIsLeaf','MonthDate','getTupleKey','_updateStringItemKey','updateFieldSourceInfo','getUniqueFieldId','updateDataFieldsCollection','setOther','measureIndexesMap','valueFilter','_getParentValue','setLastCol','PivotDataFieldSortOperatorEnum','captionBetween','setInfo','getRangeKey','Variance\x20of\x20','prepareShowDataAs','YearMonthDate','create','parentIndex','shouldSplitRootByValues','getGrouping','percentOfGrandTotal','getRowColCount','_count','format','Date1900','number','getPathKeyWithFiledId','getIndexesByPathStr','_getValueFilterTree','log2','valueLessThanOrEqual','getDate','hasNode','stdDev','layoutColFields','pageView','values','getRanges','BaseGroupField','setFieldFilterState','_getParentGroupKey','setLabelFilterInfo','entries','other','layoutCorner','setLastRow','getHeaderMapItem','_defaultSortLocale','dataFieldId','getRowIndexForColHeader','compare','compileRecordFilter','isDateValue','topTotalSize','Member','_getTupleCache','setFormat','types','ceil','_getCoordinateKeyWithoutField','percentOfParentRowTotal','_recordTupleKeys','buildPathMap','-$-blk-$-','_getIndexedTupleIndex','percentDifferenceFrom','createValueFieldByDataFieldId','createOrUpdateTuple','prepare','grandTotal','compact','thisWeek','getFieldById','setRange','blank','getSubtotal','sortChildrenByLabel','pageWrap','_updateItemKey','getFullYear','_dataIsValid','displayPaths','_fieldCount','hasText','differenceFrom','_generateModel','getConditionFilterInfo','endDate','floor','dataFieldsCollection','find','rowSubtotalPosition','product','_getCanonicalTupleIndex','isInteger','slice','subtotalMap','excelLike','some','_derivedValuesByValueField','FilterNoneSortDesc','getMonth','setName','colDeep','warn','isPivotTableFilterRestrictive','UpdateSource','itemSize','_parentRowTotalIndexes','captionEndsWith','getFieldDataType','getQueryData','setValueFilterState','from','isExistFieldName','DateSystem','getFieldIdByDisplayName','_percentDifference','\x20is\x20exist\x20in\x20the\x20pivot\x20table.','iterator','Blank','createSingleValueHeaderInfo','-$-oth-$-','reset','dateOlderThan','_itemsMap','getDataFieldByDataFieldId','layoutNoneColFields','setDirty','_clearSourceFilters','hasOwnProperty','year-quarter','sqrt','FilterAll','top','getValue','_getGroupInfo','getValueFilterInfo','_prepareDerivedBuffers','_prepareTotalIndexes','CustomFilter','getValueLabelCol','percentOf','getSortInfo','getLayout','valueGreaterThanOrEqual','getItemsMap','Div0','thisQuarter','has','_getIndexValue','calculateSubtotal','getRowLabelCol','_itemIndexMap','filterFields','_sum','onQueryStart','clear','layoutRowChildren','SetShowDataAs','_columnFieldIndexes','excelSerialToDateTimeParts','isAll','quarter','getTupleIndexesByKey','PivotErrorTypeEnum','stdDevp','squareSum','valueNotEqual','setValueSize','getGroupInfo','getNumberGroupValid','groups','layoutRowNodeToCursor','showDataAs','addHeaderMapItem','setGroupInfo','getTupleKeysByLabel','dimensionTableIdList','Invalid\x20pivot\x20date\x20grouping\x20mode.','M10','TUPLE_PLACEHOLDER','Expand','_excelLike','updateColumnSubtotal','Error','states','custom','createTupleWithoutCheck','getRowCount','getValueIndex','Value','nextMonth','_dateType','buildColPathMapForCollapse','getCollapse','text','dimension','numberGroupField','customOrder','getFormat','conditionFilter','UTC','_setDerivedNumber','_calculateValueFilter','getAutoDisplayName','subtotal','FilterNoneSortNone','_bounds','layoutRowFields','filterInfo','startContent','valueGreaterThan','repeatRowLabels','rankDescending','_keyCounter','constructor','dateNewerThan','setRowCollapseLevel','countNums','BadReference','captionNotEqual','dispose','percentRunningTotal','hasField','lastCol','displayName','lastYear','isArray','getName','maxDate','createLabelField','date','summary','shouldWriteMultiValueSubtotalAtBottom','map','_grouping','UpdateFieldPosition','Legacy','view','useWholeDay','writeParentRow','prototype','getPaths','-&&-','FieldsCollection','_summaryCacheState','getOptions','removeValueFilterInfo','measuresMap','autoStart','path','valueFields','iterateField','-$-rr-$-','MultipleGrandTotal','_max','unknown','cancelCollectChangeset','PivotDataFieldSortTypeEnum','setConditionFilterInfo','measureIdList','getNodeValue','Column','getGroupFieldsInfoByIds','captionBeginsWith','symbol','_recordKeys','getFilteredRecordIndexes','rowDimOrder','log10','Count\x20of\x20','start','setDateSystem','removeField','setRangeKey','MIN_VALUE','captionNotBetween','_createDerivedBuffer','yearToDate','BlankValue','createGrandTotalInfo','isFinite','_index','defaultSortType','_parentFieldIndexByValueField','dateSystem','_grandTotalIndex','Row\x20Labels','_buildTotalIndexes','repeatRowLabelsForNode','_rowFieldIndexes','var','allowMultipleFilters','layoutPage','hiddenFields','valueFilterMap','fromJSON','setParentIndex','_doValueFilter','query','setLayout','isValueFilterOperator','minute','toJSON','month','items','indexes','prepareLayoutCtx','node','getFieldPositionInfoById','_bubbleUp','collapseInfo','_preparePeerIndexes','_difference','end','doColLeafNode','getNode','groupByDate','getLastRow','valueFieldId','_applyLabelSorts','getUniqueValueFieldName','getShowDataAs','grouping','sum','PivotDataFieldDataTypeEnum','addNode','getAllIndexMap','49130MlcxAk','indexOf','getPivotDateGroupingMode','pop','includes','setGrouping','_getMemberType','setSubtotalType','_countN','year','operator','getCornerSize','colPathMap','rowView','GlobalConfig','sortNode','hasError','getRecordValueKey','info','itemTypes','variant','879473yMOsKI','setDefaultSortLocale','\x20is\x20not\x20in\x20the\x20pivot\x20table.','Hidden','getDataFieldByTableId','addFieldWithSourceId','value','valueSortInfo','_isDirty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','year-month-date','getRealSize','lastMonth','PivotDateGroupFieldDateTypeEnum','M12','rowNodeTree','_getCoordinateKey','members','fieldId','valueEqual','layoutGrandTotalValues','sortChildrenByValue','\x20is\x20already\x20in\x20the\x20pivot\x20table.','bottomTotalSize','add','layoutPageDownThenOver','_getFieldIndex','iterateFieldMeasure','setSortInfo','_updateErrorItemKey','TUPLE_FIELD_SEPARATOR','layoutColNode','Boolean','EXCEL_DATE_BEFORE_KEY','63540VlmqtF','getDataFieldItemInfo','_buildOrderedGroups','sortItems','invalid','colDimOrder','_tupleLabels','M11','hexCode','dateNotEqual','counter','type','nextYear','name','next','clearFilters','createLabelFieldByDataFieldId','getFieldsId','getTableFieldsByDataFieldId','_rowTotalIndexes','item','getPivotRecordMember','getItemSharedKey','descending','30kHEhNk','__number_before__','Missing\x20constrained\x20pivot\x20field:\x20','PivotFilterTypeEnum','getCellValue','isEmpty','tupleIndex','ValueFilter','getSortedMap','isColMultiMeasure','_rowLevelPool','50Ivhspj','formatMap','filter','PivotLayoutTypeEnum','createTuple','_peerIndexesByValueField','_peerUnionsByValueField','Pivot\x20numeric\x20record\x20values\x20must\x20be\x20finite.','baseItem','Collapse','onQueryEnd','_product','_tupleByCoordinate','_getIndex','_bufferModel','cornerView','iterateColLeafNodeChildren','FilteredSortAsc','sourceName','push','showColGrandTotal','_clearSourceFilterCategory','Month','count','buildColPathMap','writeLeafRows','Second','getSourceName','isBottom','Quarter','_readPathIntoCoordinate','paths','_callbacks','PivotTable','_min','_refreshExcelLike','updateRowSubtotal','layoutValueNode','captionEqual','ManualGroupField','maxLimitItemCount','isRecordErrorValue','hasDecimal','getNodeDisplayValue','captionLessThanOrEqual','814YTtNPq','getMeasureIndex','_parentFieldIndexes','boolean','ExcelLike','layoutRowNode','layoutColHeader','PivotView','addRecord','addRange','DateGroupField','setBlank','updateValuePosition','_tupleKeyCounter','Minute','_isParentType','Invalid\x20pivot\x20record\x20filter.','setPageIndex','writeGrandTotalRows','getFieldDisplayNames','_tupleTypes','defaultNormalField','isDev','_tupleItemsMap','unionTuples','_divideParent','_setDerivedError'];_0xe0c7=function(){return _0xb263ca;};return _0xe0c7();}function pe(_0x55ca85,_0x4db7b4){const _0x40822c=_0x2d7eb5;if(j(_0x55ca85)!=_0x40822c(0x4c3)||!_0x55ca85)return _0x55ca85;var _0x174c85;if(typeof Symbol<'u'&&(_0x174c85=_0x55ca85[Symbol[_0x40822c(0x23d)]])!==void 0x0){var _0x45b4d1=_0x174c85[_0x40822c(0x50a)](_0x55ca85,_0x4db7b4||_0x40822c(0x25a));if(j(_0x45b4d1)!='object')return _0x45b4d1;throw TypeError(_0x40822c(0x417));}return(_0x4db7b4==='string'?String:Number)(_0x55ca85);}function me(_0x14c1e6){const _0x581f46=_0x2d7eb5;var _0x127263=pe(_0x14c1e6,'string');return j(_0x127263)==_0x581f46(0x3ba)?_0x127263:_0x127263+'';}function M(_0x23b359,_0x38c1bb,_0x270a6d){return(_0x38c1bb=me(_0x38c1bb))in _0x23b359?Object['defineProperty'](_0x23b359,_0x38c1bb,{'value':_0x270a6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x23b359[_0x38c1bb]=_0x270a6d,_0x23b359;}function he(_0x1aed6d){const _0x1af91c=_0x2d7eb5;return typeof _0x1aed6d==_0x1af91c(0x2c9);}var N=class{constructor(){const _0x447c56=_0x2d7eb5;M(this,_0x447c56(0x34b),0x0),M(this,'_count',0x0),M(this,_0x447c56(0x401),0x0),M(this,_0x447c56(0x45e),0x1),M(this,'_min',0x1/0x0),M(this,_0x447c56(0x3b0),-0x1/0x0),M(this,'_squareSum',0x0);}[_0x2d7eb5(0x258)](){const _0x518b5a=_0x2d7eb5;return{'sum':this[_0x518b5a(0x34b)],'count':this[_0x518b5a(0x2c6)],'countN':this[_0x518b5a(0x401)],'product':this['_product'],'min':this[_0x518b5a(0x475)],'max':this['_max'],'squareSum':this['_squareSum']};}[_0x2d7eb5(0x32b)](){const _0x49310b=_0x2d7eb5;this[_0x49310b(0x34b)]=0x0,this[_0x49310b(0x2c6)]=0x0,this[_0x49310b(0x401)]=0x0,this[_0x49310b(0x45e)]=0x1,this[_0x49310b(0x475)]=0x1/0x0,this['_max']=-0x1/0x0,this['_squareSum']=0x0;}[_0x2d7eb5(0x279)](_0x3e5f33){const _0x242a7f=_0x2d7eb5;_0x3e5f33!=null&&(this[_0x242a7f(0x2c6)]+=0x1,he(_0x3e5f33)&&(this['_sum']+=_0x3e5f33,this[_0x242a7f(0x401)]+=0x1,this['_product']*=_0x3e5f33,this[_0x242a7f(0x475)]=Math[_0x242a7f(0x4e2)](this['_min'],_0x3e5f33),this[_0x242a7f(0x3b0)]=Math[_0x242a7f(0x4bd)](this[_0x242a7f(0x3b0)],_0x3e5f33),this[_0x242a7f(0x520)]+=_0x3e5f33*_0x3e5f33));}[_0x2d7eb5(0x498)](_0x5c071a){const _0x3d7288=_0x2d7eb5;for(let _0x36ce9b of _0x5c071a)this[_0x3d7288(0x34b)]+=_0x36ce9b[_0x3d7288(0x34b)],this[_0x3d7288(0x2c6)]+=_0x36ce9b['_count'],this[_0x3d7288(0x401)]+=_0x36ce9b[_0x3d7288(0x401)],this[_0x3d7288(0x45e)]*=_0x36ce9b['_product'],this[_0x3d7288(0x475)]=Math[_0x3d7288(0x4e2)](this['_min'],_0x36ce9b[_0x3d7288(0x475)]),this[_0x3d7288(0x3b0)]=Math[_0x3d7288(0x4bd)](this['_max'],_0x36ce9b[_0x3d7288(0x3b0)]),this[_0x3d7288(0x520)]+=_0x36ce9b['_squareSum'];}[_0x2d7eb5(0x4a7)](_0x1991b0){const _0x3fa959=_0x2d7eb5;this[_0x3fa959(0x34b)]+=_0x1991b0[_0x3fa959(0x3f5)],this[_0x3fa959(0x2c6)]+=_0x1991b0['count'],this['_countN']+=_0x1991b0[_0x3fa959(0x29f)],this[_0x3fa959(0x45e)]*=_0x1991b0[_0x3fa959(0x30c)],this[_0x3fa959(0x475)]=Math[_0x3fa959(0x4e2)](this[_0x3fa959(0x475)],_0x1991b0[_0x3fa959(0x4e2)]),this[_0x3fa959(0x3b0)]=Math[_0x3fa959(0x4bd)](this['_max'],_0x1991b0[_0x3fa959(0x4bd)]),this[_0x3fa959(0x520)]+=_0x1991b0[_0x3fa959(0x357)];}[_0x2d7eb5(0x2fb)](_0xab0e9b){const _0x499a4d=_0x2d7eb5;switch(_0xab0e9b){case 0x9:return this[_0x499a4d(0x34b)];case 0x2:return this['_count'];case 0x3:return this[_0x499a4d(0x401)];case 0x6:return Number[_0x499a4d(0x3ca)](this[_0x499a4d(0x45e)])?this['_product']:{'errorType':0x2};case 0x5:return this[_0x499a4d(0x401)]>0x0?this[_0x499a4d(0x475)]:0x0;case 0x4:return this[_0x499a4d(0x401)]>0x0?this['_max']:0x0;case 0x1:return this['_countN']>0x0?this['_sum']/this[_0x499a4d(0x401)]:{'errorType':0x1};case 0x7:return this[_0x499a4d(0x401)]>0x1?Math[_0x499a4d(0x334)](Math['max'](0x0,(this[_0x499a4d(0x401)]*this[_0x499a4d(0x520)]-this[_0x499a4d(0x34b)]*this[_0x499a4d(0x34b)])/(this[_0x499a4d(0x401)]*(this[_0x499a4d(0x401)]-0x1)))):{'errorType':0x1};case 0x8:return this[_0x499a4d(0x401)]>0x0?Math['sqrt'](Math[_0x499a4d(0x4bd)](0x0,(this[_0x499a4d(0x401)]*this['_squareSum']-this[_0x499a4d(0x34b)]*this[_0x499a4d(0x34b)])/(this['_countN']*this[_0x499a4d(0x401)]))):{'errorType':0x1};case 0xa:return this['_countN']>0x1?Math['max'](0x0,(this[_0x499a4d(0x401)]*this[_0x499a4d(0x520)]-this[_0x499a4d(0x34b)]*this[_0x499a4d(0x34b)])/(this['_countN']*(this['_countN']-0x1))):{'errorType':0x1};case 0xb:return this['_countN']>0x0?Math[_0x499a4d(0x4bd)](0x0,(this[_0x499a4d(0x401)]*this['_squareSum']-this[_0x499a4d(0x34b)]*this[_0x499a4d(0x34b)])/(this[_0x499a4d(0x401)]*this[_0x499a4d(0x401)])):{'errorType':0x1};}}};function ge(_0xb2030b){const _0x53180d=_0x2d7eb5;return(_0xb2030b==null?void 0x0:_0xb2030b[_0x53180d(0x1c2)])??'legacy';}function P(_0x27a99a){return _0x27a99a==null||_0x27a99a==='';}function F(_0x587640){return _0x587640===0x2||_0x587640===0x1||_0x587640===0x4||_0x587640===0x5;}function I(_0x40e2d8){return _0x40e2d8===0x2||_0x40e2d8===0x1;}function _e(_0x2ff885,_0x299886){const _0x35c7f9=_0x2d7eb5;let _0x1b2f1d='';switch(_0x299886){case 0x1:_0x1b2f1d=_0x35c7f9(0x4bb)+_0x2ff885;break;case 0x2:_0x1b2f1d=_0x35c7f9(0x3bf)+_0x2ff885;break;case 0x3:_0x1b2f1d=_0x35c7f9(0x3bf)+_0x2ff885;break;case 0x4:_0x1b2f1d=_0x35c7f9(0x295)+_0x2ff885;break;case 0x5:_0x1b2f1d='Min\x20of\x20'+_0x2ff885;break;case 0x6:_0x1b2f1d=_0x35c7f9(0x1b0)+_0x2ff885;break;case 0x7:_0x1b2f1d='Standard\x20Deviation\x20of\x20'+_0x2ff885;break;case 0x8:_0x1b2f1d=_0x35c7f9(0x1db)+_0x2ff885;break;case 0x9:_0x1b2f1d=_0x35c7f9(0x1dc)+_0x2ff885;break;case 0xa:_0x1b2f1d=_0x35c7f9(0x2bd)+_0x2ff885;break;case 0xb:_0x1b2f1d='Population\x20Variance\x20of\x20'+_0x2ff885;break;default:_0x1b2f1d=_0x2ff885;}return _0x1b2f1d;}function ve(_0x113ccd,_0x3c8ff3,_0x250658){const _0x11605f=_0x2d7eb5;let _0x211f92=Object[_0x11605f(0x3a2)][_0x11605f(0x332)][_0x11605f(0x50a)](_0x113ccd,_0x3c8ff3)?_0x113ccd[_0x3c8ff3]:void 0x0,_0x160f23=typeof _0x211f92==_0x11605f(0x483);return _0x250658===void 0x0?_0x160f23?_0x211f92:!0x1:_0x160f23?_0x211f92:_0x211f92!=null&&Object[_0x11605f(0x3a2)]['hasOwnProperty'][_0x11605f(0x50a)](_0x211f92,_0x250658)?_0x211f92[_0x250658]:!0x1;}function L(_0x2a6a82){const _0x5c797d=_0x2d7eb5;return _0x2a6a82[_0x5c797d(0x43b)]===0x3;}function ye(_0x3a1ece){const _0x16a285=_0x2d7eb5;return _0x3a1ece[_0x16a285(0x43b)]===0x1;}function R(_0x317726){const _0x33009d=_0x2d7eb5;let _0x46b21b='';for(let _0x53d618=0x0;_0x53d618<_0x317726;_0x53d618++){let _0x3f328e=Math[_0x33009d(0x308)](Math[_0x33009d(0x538)]()*0x10);_0x46b21b+=_0x3f328e[_0x33009d(0x271)](0x10);}return _0x46b21b['toUpperCase']();}function be(_0x11f0ba,_0x57d722){const _0x1f5a5c=_0x2d7eb5;let _0x4957fe=0x0,_0x218083=0x0,_0x171d9d=[];for(;_0x4957fe<_0x11f0ba[_0x1f5a5c(0x2a6)]&&_0x218083<_0x57d722[_0x1f5a5c(0x2a6)];)_0x11f0ba[_0x4957fe]===_0x57d722[_0x218083]?(_0x171d9d['push'](_0x11f0ba[_0x4957fe]),_0x4957fe++,_0x218083++):_0x11f0ba[_0x4957fe]<_0x57d722[_0x218083]?_0x4957fe++:_0x218083++;return _0x171d9d;}function xe(_0x556e70){if(_0x556e70['length']===0x0)return[];if(_0x556e70['length']===0x1)return _0x556e70[0x0];let _0x12fb16=_0x556e70[0x0];for(let _0x2dae5c=0x1;_0x2dae5c<_0x556e70['length'];_0x2dae5c++)_0x12fb16=be(_0x12fb16,_0x556e70[_0x2dae5c]);return _0x12fb16;}function z(_0x271280,_0x1759b1,_0x25f9e1){const _0x1fa231=_0x2d7eb5;_0x271280[_0x1fa231(0x399)]||={},_0x1759b1&&!_0x1759b1[_0x1fa231(0x399)]&&(_0x1759b1['summary']={});for(let _0x2deaf3 in _0x25f9e1){let _0x124f0f=_0x25f9e1[_0x2deaf3][_0x1fa231(0x4da)],_0xa6e24e=_0x271280[_0x1fa231(0x228)][_0x2deaf3],_0x302b74=_0xa6e24e[_0x1fa231(0x258)](),{sum:_0x51df7b,count:_0x56431f,countN:_0x977934,product:_0x567dce,min:_0x548fbf,max:_0x35e980,squareSum:_0x27b9f0}=_0x302b74;for(let _0x53d3eb of _0x124f0f)_0x302b74[_0x53d3eb]=_0xa6e24e[_0x1fa231(0x2fb)](_0x53d3eb);_0x271280[_0x1fa231(0x399)][_0x2deaf3]=_0x302b74,_0x1759b1&&(_0x1759b1[_0x1fa231(0x228)][_0x2deaf3]||(_0x1759b1[_0x1fa231(0x228)][_0x2deaf3]=new N()),_0x1759b1[_0x1fa231(0x228)][_0x2deaf3][_0x1fa231(0x4a7)]({'sum':_0x51df7b,'count':_0x56431f,'countN':_0x977934,'product':_0x567dce,'min':_0x548fbf,'max':_0x35e980,'squareSum':_0x27b9f0}));}}function Se(_0x2798a9){const _0x668360=_0x2d7eb5;let _0x4f08ed=0x1,_0x5383fe;return _0x2798a9?(L(_0x2798a9)?(_0x2798a9[_0x668360(0x4b0)]['length']===0x1&&(_0x4f08ed=0x3,_0x5383fe=_0x2798a9[_0x668360(0x4b0)][0x0]),_0x4f08ed=_0x2798a9['isAll']===!0x0?0x1:0x2):D(_0x2798a9)&&(_0x4f08ed=O(_0x2798a9)?0x2:0x1),{'value':_0x5383fe,'status':_0x4f08ed}):{'status':_0x4f08ed,'value':_0x5383fe};}function Ce(_0x25b1ae,_0x24689c,_0x2bd14d){const _0x5593bf=_0x2d7eb5;let _0x498b88=!0x1;if(_0x25b1ae&&(L(_0x25b1ae)?_0x498b88=_0x25b1ae[_0x5593bf(0x4b0)][_0x5593bf(0x2a6)]>0x0&&_0x25b1ae[_0x5593bf(0x352)]!==!0x0:ye(_0x25b1ae)?_0x498b88=!0x0:D(_0x25b1ae)&&(_0x498b88=O(_0x25b1ae)),_0x2bd14d&&(_0x498b88=!0x0)),_0x498b88)switch(_0x24689c==null?void 0x0:_0x24689c[_0x5593bf(0x43b)]){case 0x1:return 0x6;case 0x2:return 0x7;default:return 0x5;}else switch(_0x24689c==null?void 0x0:_0x24689c[_0x5593bf(0x43b)]){case 0x1:return 0x9;case 0x2:return 0xa;default:return 0x8;}}function we(_0x55264b,_0xf5aac6,_0x22e577){const _0xca0415=_0x2d7eb5;let _0x4fe481=_0xf5aac6||0x0,_0x267f74=_0x55264b[_0xca0415(0x1f2)](',');return _0x22e577?_0x267f74+'-'+String(_0x4fe481):_0x267f74;}var Te=class{constructor(){const _0x9133b5=_0x2d7eb5;M(this,_0x9133b5(0x27c),void 0x0),this[_0x9133b5(0x27c)]=[];}[_0x2d7eb5(0x466)](_0x49223f){const _0x46c2f2=_0x2d7eb5;this[_0x46c2f2(0x27c)][_0x46c2f2(0x466)](_0x49223f),this[_0x46c2f2(0x3e7)]();}[_0x2d7eb5(0x3fc)](){const _0x326d00=_0x2d7eb5;if(this[_0x326d00(0x1ca)]()===0x0)return;let _0x126282=this[_0x326d00(0x27c)][0x0],_0x21fc9a=this['_heap']['pop']();return this['size']()>0x0&&_0x21fc9a&&(this[_0x326d00(0x27c)][0x0]=_0x21fc9a,this[_0x326d00(0x4ed)]()),_0x126282;}[_0x2d7eb5(0x1ca)](){const _0xd7070=_0x2d7eb5;return this[_0xd7070(0x27c)][_0xd7070(0x2a6)];}[_0x2d7eb5(0x3e7)](){const _0x392b5b=_0x2d7eb5;let _0x17c36f=this[_0x392b5b(0x1ca)]()-0x1;for(;_0x17c36f>0x0;){let _0x199f95=Math[_0x392b5b(0x308)]((_0x17c36f-0x1)/0x2);if(this['_heap'][_0x199f95][0x0]<=this['_heap'][_0x17c36f][0x0])break;[this[_0x392b5b(0x27c)][_0x199f95],this[_0x392b5b(0x27c)][_0x17c36f]]=[this[_0x392b5b(0x27c)][_0x17c36f],this[_0x392b5b(0x27c)][_0x199f95]],_0x17c36f=_0x199f95;}}[_0x2d7eb5(0x4ed)](){const _0x15f900=_0x2d7eb5;let _0x6fbdca=0x0,_0x30549d=this[_0x15f900(0x1ca)](),_0x446165=this[_0x15f900(0x27c)][0x0];for(;;){let _0x22ac36=0x2*_0x6fbdca+0x1,_0x2f2bef=0x2*_0x6fbdca+0x2,_0x17ca6c,_0x38d6cb,_0x500752=null;if(_0x22ac36<_0x30549d&&(_0x17ca6c=this['_heap'][_0x22ac36],_0x17ca6c[0x0]<_0x446165[0x0]&&(_0x500752=_0x22ac36)),_0x2f2bef<_0x30549d&&(_0x38d6cb=this['_heap'][_0x2f2bef],(_0x500752===null&&_0x38d6cb[0x0]<_0x446165[0x0]||_0x500752!==null&&_0x38d6cb[0x0]<_0x17ca6c[0x0])&&(_0x500752=_0x2f2bef)),_0x500752===null)break;[this['_heap'][_0x6fbdca],this['_heap'][_0x500752]]=[this[_0x15f900(0x27c)][_0x500752],this['_heap'][_0x6fbdca]],_0x6fbdca=_0x500752;}}};function Ee(_0x48b0ae){const _0x517a03=_0x2d7eb5;let _0x5887fd=new Te(),_0x283fa1=[];for(let _0x278b16=0x0;_0x278b16<_0x48b0ae[_0x517a03(0x2a6)];_0x278b16++)_0x48b0ae[_0x278b16]['length']>0x0&&_0x5887fd[_0x517a03(0x466)]([_0x48b0ae[_0x278b16][0x0],_0x278b16,0x0]);for(;_0x5887fd[_0x517a03(0x1ca)]()>0x0;){let [_0x96eded,_0x4b94a2,_0x3302dd]=_0x5887fd[_0x517a03(0x3fc)]();if(_0x283fa1[_0x517a03(0x466)](_0x96eded),_0x3302dd+0x1<_0x48b0ae[_0x4b94a2][_0x517a03(0x2a6)]){let _0x119e13=_0x48b0ae[_0x4b94a2][_0x3302dd+0x1];_0x5887fd[_0x517a03(0x466)]([_0x119e13,_0x4b94a2,_0x3302dd+0x1]);}}return _0x283fa1;}function De(_0x54dde9,_0x3b5988){const _0x4945ae=_0x2d7eb5;if(typeof Intl<'u'&&Intl[_0x4945ae(0x536)]){let _0x1ace8f=_0x54dde9&&_0x54dde9!==_0x3b5988?[_0x54dde9,_0x3b5988]:[_0x54dde9??_0x3b5988];for(let _0xda8173 of _0x1ace8f)try{return new Intl['Collator'](_0xda8173,{'usage':_0x4945ae(0x1f5),'numeric':!0x1,'sensitivity':_0x4945ae(0x40d),'ignorePunctuation':!0x1})[_0x4945ae(0x2e2)];}catch{}return new Intl['Collator'](void 0x0,{'usage':_0x4945ae(0x1f5),'numeric':!0x1,'sensitivity':'variant','ignorePunctuation':!0x1})[_0x4945ae(0x2e2)];}return(_0x34bac8,_0x20b265)=>_0x34bac8[_0x4945ae(0x4f8)](_0x20b265);}function Oe(_0x3c73c7,_0xf025dd,_0x117503,_0x199051=De()){const _0x29e887=_0x2d7eb5;let _0x3de514=[],_0x1a98bf=[],_0x5d6b54=[],_0x1ec001=[];for(let _0xba8bf9=0x0;_0xba8bf9<_0x3c73c7[_0x29e887(0x2a6)];_0xba8bf9++){let _0x1035c4=_0x3c73c7[_0xba8bf9],_0x5e485b=_0xf025dd[_0xba8bf9];_0x5e485b===0x2?_0x3de514[_0x29e887(0x466)](_0x1035c4):_0x5e485b===0x1?_0x1a98bf['push'](_0x1035c4):_0x5e485b===0x4?_0x5d6b54['push'](_0x1035c4):_0x1ec001[_0x29e887(0x466)](_0x1035c4);}let _0x2bb42d=(_0x1350ac,_0x5b19b4)=>_0x199051(_0x1350ac,_0x5b19b4)||_0x117503[_0x1350ac]-_0x117503[_0x5b19b4];_0x3de514[_0x29e887(0x1f5)]((_0x1bf753,_0x1f8268)=>Number(_0x1bf753)-Number(_0x1f8268)),_0x1a98bf['sort'](_0x2bb42d),_0x5d6b54[_0x29e887(0x1f5)]((_0x2544c2,_0x573f45)=>Number(_0x2544c2)-Number(_0x573f45)),_0x1ec001[_0x29e887(0x1f5)](_0x2bb42d);let _0x230ec4=[..._0x3de514,..._0x1a98bf,..._0x5d6b54,..._0x1ec001],_0x3f97df={},_0x4d8060=0x0;for(let _0xd31c8e of _0x230ec4)_0x3f97df[_0xd31c8e]=_0x4d8060,_0x4d8060++;return _0x3f97df;}function ke(_0x54d8b8,_0xb0dbc5,_0x4fe2c5){const _0x2984b0=_0x2d7eb5;let _0x363ee0=ae({'type':0x1,'operator':_0xb0dbc5,'expected':_0x4fe2c5}),_0x2defce=[];for(let [_0x234a57,_0x5b4747]of Object[_0x2984b0(0x2da)](_0x54d8b8))_0x363ee0(Number(_0x234a57))&&_0x2defce['push'](_0x5b4747);return _0x2defce;}function Ae(_0x1b461a,_0x1f626d,_0x5b5286,_0x3d6642,_0x4e4d5e,_0x2f49f6){const _0x27dede=_0x2d7eb5;let _0x5672af=(_0x1f626d==null?void 0x0:_0x1f626d[_0x27dede(0x228)][_0x5b5286])||_0x1b461a[_0x4e4d5e]['tuple'],_0x2e913b=_0x5672af[_0x27dede(0x258)]();_0x1b461a[_0x4e4d5e]={'tuple':_0x5672af},_0x1b461a[_0x2f49f6]===void 0x0&&(_0x1b461a[_0x2f49f6]={'tuple':new N()}),_0x1b461a[_0x2f49f6][_0x27dede(0x228)]['unionTupleInfo'](_0x2e913b);}function je(_0x501e57){const _0x173937=_0x2d7eb5;return typeof _0x501e57!=_0x173937(0x2c9);}function Me(_0x3aa662){const _0x6d7ca2=_0x2d7eb5;return!('baseFieldId'in _0x3aa662)&&!('sortItems'in _0x3aa662)&&_0x6d7ca2(0x377)in _0x3aa662&&_0x3aa662[_0x6d7ca2(0x43b)]===0x3;}function Ne(_0x5ec085,_0x26f345=!0x0){const _0x27fae5=_0x2d7eb5;return(_0x26f345?new Date(Date['UTC'](0x76b,0xb,0x1e)):new Date(Date[_0x27fae5(0x37a)](0x770,0x0,0x1)))['getTime']()+_0x5ec085*0x5265c00;}function Pe(_0x4f4ee2){const _0x3f0eeb=_0x2d7eb5;return _0x4f4ee2[_0x3f0eeb(0x530)]()===0x3;}function B(_0x2622f0){const _0x3704df=_0x2d7eb5;return _0x2622f0[_0x3704df(0x530)]()!==0x1;}function Fe(_0x390db4){const _0x14a249=_0x2d7eb5;return _0x390db4[_0x14a249(0x20d)]===0x3;}function Ie(_0x7c49c7,_0x272f9d,_0x572e06=!0x0){const _0x2e7fd4=_0x2d7eb5;let _0x59b86c=Ne(_0x7c49c7,_0x572e06),_0x289340=new Date(_0x59b86c);switch(_0x272f9d){case _0x2e7fd4(0x402):return''+_0x289340['getFullYear']();case _0x2e7fd4(0x3e1):return''+(_0x289340['getMonth']()+0x1);case _0x2e7fd4(0x398):return''+_0x289340['getDate']();case _0x2e7fd4(0x22c):return _0x289340[_0x2e7fd4(0x315)]()+0x1+'_'+_0x289340[_0x2e7fd4(0x2cf)]();case _0x2e7fd4(0x1ae):return''+_0x289340[_0x2e7fd4(0x297)]();case _0x2e7fd4(0x3df):return''+_0x289340[_0x2e7fd4(0x268)]();case _0x2e7fd4(0x353):return''+(Math[_0x2e7fd4(0x308)](_0x289340[_0x2e7fd4(0x315)]()/0x3)+0x1);case _0x2e7fd4(0x255):return _0x289340[_0x2e7fd4(0x297)]()+'_'+_0x289340[_0x2e7fd4(0x268)]();case _0x2e7fd4(0x1b4):return _0x289340['getFullYear']()+'_'+(_0x289340[_0x2e7fd4(0x315)]()+0x1);case _0x2e7fd4(0x333):return _0x289340[_0x2e7fd4(0x2ff)]()+'_'+(Math['floor'](_0x289340[_0x2e7fd4(0x315)]()/0x3)+0x1);case'year-month-date':return _0x289340[_0x2e7fd4(0x2ff)]()+'_'+(_0x289340[_0x2e7fd4(0x315)]()+0x1)+'_'+_0x289340[_0x2e7fd4(0x2cf)]();}return'';}var V=class{[_0x2d7eb5(0x2af)](_0x34f86b){const _0x39aabc=_0x2d7eb5;return this[_0x39aabc(0x2ed)][_0x34f86b];}[_0x2d7eb5(0x518)](){const _0x366a40=_0x2d7eb5;return this[_0x366a40(0x497)];}['getTupleIndexesByKey'](_0x366731){const _0x128a13=_0x2d7eb5;return this[_0x128a13(0x269)][_0x366731]||[];}[_0x2d7eb5(0x1d4)](_0x33f02b){return this['_tupleLabels'][_0x33f02b];}['getTupleType'](_0x144140){const _0x2edad1=_0x2d7eb5;return this[_0x2edad1(0x494)][_0x144140];}[_0x2d7eb5(0x361)](_0x4c516d){const _0x1276ae=_0x2d7eb5;var _0x37748d;return((_0x37748d=this[_0x1276ae(0x4df)][_0x4c516d])==null?void 0x0:_0x37748d[_0x1276ae(0x4f6)]())||[];}constructor(_0x19572f,_0x15f37b,_0x4ec22d){const _0x1d3b6d=_0x2d7eb5;M(this,'id',void 0x0),M(this,'name',void 0x0),M(this,'hexCode',void 0x0),M(this,_0x1d3b6d(0x21e),void 0x0),M(this,_0x1d3b6d(0x21f),[]),M(this,_0x1d3b6d(0x3e2),[]),M(this,_0x1d3b6d(0x40c),[]),M(this,_0x1d3b6d(0x4b3),0x1),M(this,'hasInteger',!0x1),M(this,_0x1d3b6d(0x47d),!0x1),M(this,_0x1d3b6d(0x200),!0x1),M(this,_0x1d3b6d(0x201),!0x1),M(this,_0x1d3b6d(0x303),!0x1),M(this,'hasBoolean',!0x1),M(this,'hasError',!0x1),M(this,_0x1d3b6d(0x2c7),''),M(this,_0x1d3b6d(0x1d8),NaN),M(this,_0x1d3b6d(0x1e7),NaN),M(this,_0x1d3b6d(0x396),-0x1/0x0),M(this,_0x1d3b6d(0x232),0x1/0x0),M(this,'_itemIndexMap',void 0x0),M(this,'_itemsMap',{}),M(this,_0x1d3b6d(0x387),0x0),M(this,_0x1d3b6d(0x497),Object['create'](null)),M(this,_0x1d3b6d(0x269),Object[_0x1d3b6d(0x2c0)](null)),M(this,_0x1d3b6d(0x436),Object[_0x1d3b6d(0x2c0)](null)),M(this,'_tupleTypes',Object['create'](null)),M(this,_0x1d3b6d(0x2ed),[]),M(this,_0x1d3b6d(0x4df),Object[_0x1d3b6d(0x2c0)](null)),M(this,_0x1d3b6d(0x4c4),new Set()),M(this,_0x1d3b6d(0x48d),0x0),M(this,_0x1d3b6d(0x264),0x0),this['id']=_0x19572f,this[_0x1d3b6d(0x43d)]=_0x15f37b,this['hexCode']=_0x4ec22d,this[_0x1d3b6d(0x349)]={};}[_0x2d7eb5(0x2bc)](){return this['rangeKey'];}[_0x2d7eb5(0x289)](){return this['format'];}[_0x2d7eb5(0x3c3)](_0x39a052){const _0x12f5fe=_0x2d7eb5;this[_0x12f5fe(0x21e)]=_0x39a052;}['getId'](){return this['id'];}[_0x2d7eb5(0x395)](){return this['name'];}[_0x2d7eb5(0x316)](_0x4b10d5){const _0x4fcd20=_0x2d7eb5;this[_0x4fcd20(0x43d)]=_0x4b10d5;}[_0x2d7eb5(0x31e)](){const _0x5089c3=_0x2d7eb5;return this['hasDate']&&!this['hasText']&&!this[_0x5089c3(0x47d)]&&!this[_0x5089c3(0x231)]&&!this['hasBoolean']&&!this['hasError']?0x4:(this[_0x5089c3(0x47d)]||this[_0x5089c3(0x231)])&&!this['hasText']&&!this[_0x5089c3(0x200)]&&!this[_0x5089c3(0x261)]&&!this[_0x5089c3(0x409)]?0x2:this[_0x5089c3(0x4b3)];}[_0x2d7eb5(0x530)](){return 0x1;}[_0x2d7eb5(0x446)](_0x4c0e68){const _0x44d5c9=_0x2d7eb5;return this['hexCode']+t[_0x44d5c9(0x42c)]+this['_itemsMap'][_0x4c0e68];}[_0x2d7eb5(0x1f7)](_0x1593aa){const _0x19966e=_0x2d7eb5;let _0x2d0d24=this['records'][_0x1593aa];if(w(_0x2d0d24))return String(_0x2d0d24['v']);if(P(_0x2d0d24))return t['BLANK_PLACEHOLDER'];let _0x24fc0c=T(_0x2d0d24)?_0x2d0d24['error']:String(_0x2d0d24);return this[_0x19966e(0x32d)][_0x24fc0c]===void 0x0?t['otherDataKey']:_0x24fc0c;}[_0x2d7eb5(0x29c)](_0x143c18){const _0x3f52b1=_0x2d7eb5;return this[_0x3f52b1(0x40c)][this[_0x3f52b1(0x32d)][_0x143c18]];}[_0x2d7eb5(0x337)](_0x2883d1){const _0x1db432=_0x2d7eb5;return this[_0x1db432(0x21f)][_0x2883d1];}[_0x2d7eb5(0x488)](_0xcf15fb,_0x25764d){const _0x351240=_0x2d7eb5;w(_0xcf15fb)&&(this[_0x351240(0x2c7)]=_0xcf15fb['f'],this['_updateDateItemKey'](_0xcf15fb,_0x25764d));let _0x2dc78d=P(_0xcf15fb);_0x2dc78d&&this[_0x351240(0x500)](_0x25764d),typeof _0xcf15fb==_0x351240(0x2c9)&&this[_0x351240(0x26f)](_0xcf15fb,_0x25764d),!_0x2dc78d&&typeof _0xcf15fb==_0x351240(0x1cd)&&this[_0x351240(0x2b0)](_0xcf15fb,_0x25764d),typeof _0xcf15fb==_0x351240(0x483)&&this[_0x351240(0x281)](_0xcf15fb,_0x25764d),T(_0xcf15fb)&&this[_0x351240(0x42b)](_0xcf15fb[_0x351240(0x284)],_0x25764d),this[_0x351240(0x21f)][_0x351240(0x466)](_0xcf15fb),this['getDataFieldType']()===0x1&&this[_0x351240(0x4fd)](_0xcf15fb,_0x25764d);}[_0x2d7eb5(0x4fd)](_0x12ec8b,_0x38564f){const _0x518a95=_0x2d7eb5;let _0x490b52=this[_0x518a95(0x1f7)](this[_0x518a95(0x21f)][_0x518a95(0x2a6)]-0x1),_0x2bc2c4=0x1;w(_0x12ec8b)?_0x2bc2c4=0x4:P(_0x12ec8b)?_0x2bc2c4=0x5:typeof _0x12ec8b==_0x518a95(0x2c9)?_0x2bc2c4=0x2:typeof _0x12ec8b==_0x518a95(0x483)?_0x2bc2c4=0x3:T(_0x12ec8b)&&(_0x2bc2c4=0x6);let _0x4f53a6=_0x2bc2c4===0x1&&!_0x490b52['startsWith']('[')&&_0x490b52!==t[_0x518a95(0x23b)]?_0x490b52:JSON[_0x518a95(0x521)]([_0x2bc2c4,_0x490b52]);(this[_0x518a95(0x4c4)][_0x518a95(0x345)](_0x38564f)||this['_tupleItemsMap'][_0x4f53a6]===void 0x0&&_0x2bc2c4!==0x5&&this['_tupleKeyCounter']>=t[_0x518a95(0x47b)])&&(_0x490b52=t[_0x518a95(0x23b)],_0x2bc2c4=0x6,_0x4f53a6=t[_0x518a95(0x23b)]),this['_tupleItemsMap'][_0x4f53a6]===void 0x0&&(this[_0x518a95(0x497)][_0x4f53a6]=this['_tupleItemCounter']++,_0x2bc2c4!==0x5&&this['_tupleKeyCounter']++,this['_tupleIndexMap'][_0x4f53a6]=[],this[_0x518a95(0x436)][_0x4f53a6]=_0x490b52,this[_0x518a95(0x494)][_0x4f53a6]=_0x2bc2c4,(this['_tupleKeysByLabel'][_0x490b52]||=[])[_0x518a95(0x466)](_0x4f53a6)),this[_0x518a95(0x269)][_0x4f53a6][_0x518a95(0x466)](_0x38564f),this[_0x518a95(0x2ed)][_0x518a95(0x466)](_0x4f53a6);}['getIndexesByKey'](_0x14d23d){const _0x5043b7=_0x2d7eb5;return this[_0x5043b7(0x349)][_0x14d23d]||[];}['getAllIndexMap'](){const _0x10fe89=_0x2d7eb5;return this[_0x10fe89(0x349)];}['_updateDateItemKey'](_0x3edf07,_0x575615){const _0x596287=_0x2d7eb5;this[_0x596287(0x200)]||=!0x0,this[_0x596287(0x396)]=Math[_0x596287(0x4bd)](this[_0x596287(0x396)],_0x3edf07['v']),this['minDate']=Math[_0x596287(0x4e2)](this[_0x596287(0x232)],_0x3edf07['v']);let _0x8135f=String(_0x3edf07['v']);this[_0x596287(0x2fe)](_0x8135f,_0x575615,0x4);}[_0x2d7eb5(0x500)](_0x7dc722){const _0x31715a=_0x2d7eb5;this['hasBlank']||=!0x0;let _0x5f581b=t[_0x31715a(0x246)];this[_0x31715a(0x349)][_0x5f581b]===void 0x0?(this[_0x31715a(0x349)][_0x5f581b]=[_0x7dc722],this[_0x31715a(0x3e2)]['push'](_0x5f581b),this[_0x31715a(0x40c)][_0x31715a(0x466)](0x5),this[_0x31715a(0x32d)][_0x5f581b]=this['items'][_0x31715a(0x2a6)]-0x1):this['_itemIndexMap'][_0x5f581b][_0x31715a(0x466)](_0x7dc722);}[_0x2d7eb5(0x2b0)](_0x2c23e9,_0x37567c){const _0xe7094=_0x2d7eb5;this[_0xe7094(0x303)]||=!0x0,this[_0xe7094(0x2fe)](_0x2c23e9,_0x37567c,0x1);}['_updateNumberItemKey'](_0x87c87b,_0x557f33){const _0x3d497d=_0x2d7eb5;this[_0x3d497d(0x47d)]||=_0x87c87b%0x1!=0x0,this[_0x3d497d(0x231)]||=_0x87c87b%0x1==0x0,this[_0x3d497d(0x1d8)]=Math[_0x3d497d(0x4bd)](this['maxNumber'],_0x87c87b),this[_0x3d497d(0x1e7)]=Math['min'](this[_0x3d497d(0x1e7)],_0x87c87b);let _0x5092a7=String(_0x87c87b);this[_0x3d497d(0x2fe)](_0x5092a7,_0x557f33,0x2);}[_0x2d7eb5(0x281)](_0x3ea28f,_0x56a250){const _0x382057=_0x2d7eb5;this[_0x382057(0x261)]=!0x0,this[_0x382057(0x2fe)](String(_0x3ea28f),_0x56a250,0x3);}[_0x2d7eb5(0x42b)](_0x14a9f8,_0x548f49){const _0x1d329f=_0x2d7eb5;this[_0x1d329f(0x409)]=!0x0,this[_0x1d329f(0x2fe)](_0x14a9f8,_0x548f49,0x6);}[_0x2d7eb5(0x1bf)](_0x417745){const _0x51abd3=_0x2d7eb5;if(this[_0x51abd3(0x4c4)][_0x51abd3(0x426)](_0x417745),this['_itemIndexMap'][t[_0x51abd3(0x23b)]]===void 0x0){this['_itemIndexMap'][t[_0x51abd3(0x23b)]]=[_0x417745];let _0x486053=this[_0x51abd3(0x3e2)][_0x51abd3(0x466)](t[_0x51abd3(0x23b)]);this[_0x51abd3(0x32d)][t[_0x51abd3(0x23b)]]=_0x486053-0x1,this[_0x51abd3(0x40c)]['push'](0x6),this['_keyCounter']++;}else this[_0x51abd3(0x349)][t['otherDataKey']][_0x51abd3(0x466)](_0x417745);}[_0x2d7eb5(0x2fe)](_0x566eed,_0x2c1490,_0x401354){const _0x1ff9c7=_0x2d7eb5;if(this[_0x1ff9c7(0x349)][_0x566eed]===void 0x0){if(this[_0x1ff9c7(0x387)]>=t[_0x1ff9c7(0x47b)])return this[_0x1ff9c7(0x1bf)](_0x2c1490);this['_itemIndexMap'][_0x566eed]=[_0x2c1490];let _0x5e5cec=this[_0x1ff9c7(0x3e2)][_0x1ff9c7(0x466)](_0x566eed);this['_itemsMap'][_0x566eed]=_0x5e5cec-0x1,this['itemTypes'][_0x1ff9c7(0x466)](_0x401354),this[_0x1ff9c7(0x387)]++;}else this['_itemIndexMap'][_0x566eed]['push'](_0x2c1490);}['getItemsMap'](){const _0xcdc2aa=_0x2d7eb5;return this[_0xcdc2aa(0x32d)];}['getFieldInfo'](){const _0x4ef294=_0x2d7eb5;return{'id':this['id'],'name':this[_0x4ef294(0x43d)],'records':this['records'],'fieldDataType':this[_0x4ef294(0x31e)](),'maxNumber':this[_0x4ef294(0x1d8)],'minNumber':this[_0x4ef294(0x1e7)],'maxDate':this[_0x4ef294(0x396)],'minDate':this['minDate'],'format':this['format'],'rangeKey':this['rangeKey'],'dataFieldType':this[_0x4ef294(0x530)]()};}[_0x2d7eb5(0x3e0)](){const _0x148742=_0x2d7eb5;return{'id':this['id'],'name':this['name'],'fieldDataType':this[_0x148742(0x31e)](),'hexCode':this[_0x148742(0x438)],'rangeKey':this[_0x148742(0x21e)],'dataFieldType':this['getDataFieldType']()};}[_0x2d7eb5(0x3d9)](_0x4ced73){const _0x3cea6d=_0x2d7eb5;this[_0x3cea6d(0x43d)]=_0x4ced73[_0x3cea6d(0x43d)],this['id']=_0x4ced73['id'],this['rangeKey']=_0x4ced73[_0x3cea6d(0x21e)],this[_0x3cea6d(0x438)]=_0x4ced73[_0x3cea6d(0x438)];}[_0x2d7eb5(0x32b)](){const _0x797f66=_0x2d7eb5;this[_0x797f66(0x21f)]=[],this[_0x797f66(0x3e2)]=[],this[_0x797f66(0x40c)]=[],this[_0x797f66(0x349)]={},this[_0x797f66(0x231)]=!0x1,this[_0x797f66(0x47d)]=!0x1,this[_0x797f66(0x200)]=!0x1,this[_0x797f66(0x201)]=!0x1,this['hasText']=!0x1,this[_0x797f66(0x261)]=!0x1,this[_0x797f66(0x409)]=!0x1,this['format']='',this[_0x797f66(0x1d8)]=NaN,this[_0x797f66(0x1e7)]=NaN,this['maxDate']=-0x1/0x0,this['minDate']=0x1/0x0,this[_0x797f66(0x32d)]={},this[_0x797f66(0x387)]=0x0,this[_0x797f66(0x2ed)][_0x797f66(0x2a6)]=0x0,this[_0x797f66(0x48d)]=0x0,this[_0x797f66(0x264)]=0x0,this['_overflowRecordIndexes']['clear']();for(let _0x4fe8ea of[this[_0x797f66(0x497)],this['_tupleIndexMap'],this[_0x797f66(0x436)],this[_0x797f66(0x494)],this['_tupleKeysByLabel']])for(let _0x2712a4 of Object['keys'](_0x4fe8ea))delete _0x4fe8ea[_0x2712a4];}},H=class extends V{constructor(..._0x461399){const _0x55f209=_0x2d7eb5;super(..._0x461399),M(this,_0x55f209(0x257),void 0x0);}[_0x2d7eb5(0x2af)](_0x52a426){const _0xc09fdb=_0x2d7eb5;return this[_0xc09fdb(0x1f7)](_0x52a426);}[_0x2d7eb5(0x518)](){const _0x1eeba0=_0x2d7eb5;return this[_0x1eeba0(0x342)]();}[_0x2d7eb5(0x354)](_0x4e4a5b){return this['getIndexesByKey'](_0x4e4a5b);}[_0x2d7eb5(0x1d4)](_0x4c9b57){return _0x4c9b57;}['getTupleType'](_0x10dae1){const _0x49ed9b=_0x2d7eb5;return this[_0x49ed9b(0x29c)](_0x10dae1);}[_0x2d7eb5(0x361)](_0x334177){const _0x5078f3=_0x2d7eb5;return this[_0x5078f3(0x342)]()[_0x334177]===void 0x0?[]:[_0x334177];}[_0x2d7eb5(0x501)](){const _0x4ea301=_0x2d7eb5;return{...super[_0x4ea301(0x501)](),'originalFieldId':this[_0x4ea301(0x296)](),'dataFieldType':this[_0x4ea301(0x530)]()};}[_0x2d7eb5(0x3e0)](){const _0x4b142f=_0x2d7eb5;return{...super['toJSON'](),'originalFieldId':this[_0x4b142f(0x257)]};}};const Le=0x3b9aca00,Re=['year',_0x2d7eb5(0x353),_0x2d7eb5(0x3e1),_0x2d7eb5(0x223),_0x2d7eb5(0x1ae),'minute',_0x2d7eb5(0x1ee)];function ze(_0x5ebc0f){let _0x3d164c=0x1/0x0,_0x2d12d2=-0x1/0x0;for(let _0x2afad9 of _0x5ebc0f['records']){let _0x371717=_0x2afad9['v'];_0x3d164c=Math['min'](_0x3d164c,_0x371717),_0x2d12d2=Math['max'](_0x2d12d2,_0x371717);}return{'start':_0x3d164c,'end':_0x2d12d2};}function Be(_0x2e6c3e,_0x3e3714){const _0x2a5bdb=_0x2d7eb5;let {units:_0x47004a,daysInterval:_0x4d73d4=0x1}=_0x2e6c3e;if(!_0x47004a[_0x2a5bdb(0x2a6)]||new Set(_0x47004a)[_0x2a5bdb(0x1ca)]!==_0x47004a['length']||_0x47004a[_0x2a5bdb(0x312)](_0x5bfed0=>!Re[_0x2a5bdb(0x3fd)](_0x5bfed0))||!Number['isInteger'](_0x4d73d4)||_0x4d73d4<0x1||_0x4d73d4>0x1&&(_0x47004a[_0x2a5bdb(0x2a6)]!==0x1||_0x47004a[0x0]!==_0x2a5bdb(0x223)))return;let _0x28bc67=_0x3e3714[_0x2a5bdb(0x21f)],_0x32e9cd=t[_0x2a5bdb(0x3ce)];if(!_0x28bc67['length']||_0x28bc67[_0x2a5bdb(0x312)](_0x1830c9=>!w(_0x1830c9)||!(0x0,e['excelSerialToDateTimeParts'])(_0x1830c9['v'],{'dateSystem':_0x32e9cd})))return;let _0x57e66a=ze(_0x3e3714),_0x2c1bc7=_0x2e6c3e['autoStart']?_0x57e66a[_0x2a5bdb(0x3c0)]:_0x2e6c3e[_0x2a5bdb(0x3c0)],_0x2a007e=_0x2e6c3e[_0x2a5bdb(0x4dc)]?_0x57e66a[_0x2a5bdb(0x3eb)]:_0x2e6c3e[_0x2a5bdb(0x3eb)];if(!(_0x2c1bc7===void 0x0||_0x2a007e===void 0x0||_0x2c1bc7>_0x2a007e||!(0x0,e[_0x2a5bdb(0x351)])(_0x2c1bc7,{'dateSystem':_0x32e9cd})||!(0x0,e[_0x2a5bdb(0x351)])(_0x2a007e,{'dateSystem':_0x32e9cd})))return{..._0x2e6c3e,'units':Re[_0x2a5bdb(0x455)](_0x376835=>_0x47004a['includes'](_0x376835))};}const Ve=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function He(_0x1f48f5){const _0x2c2d19=_0x2d7eb5;return{..._0x1f48f5,..._0x1f48f5[_0x2c2d19(0x259)]?{'dayLabels':Object['freeze']([..._0x1f48f5[_0x2c2d19(0x259)]])}:{}};}function Ue(_0x316c93,_0x484df5,_0x2c6940,_0x34c8e6,_0x42c48c){const _0x130e75=_0x2d7eb5;if(_0x316c93[_0x130e75(0x259)])return _0x316c93[_0x130e75(0x259)][Ve[_0x34c8e6-0x1]+_0x42c48c-0x1];if(_0x316c93[_0x130e75(0x3ee)]===!0x1)return _0x42c48c;let _0x1e72fa=_0x316c93['daysInterval']??0x1;return Math[_0x130e75(0x308)](_0x2c6940)+Math[_0x130e75(0x308)]((Math['floor'](_0x484df5)-Math[_0x130e75(0x308)](_0x2c6940))/_0x1e72fa)*_0x1e72fa;}var We=class extends H{constructor(_0x2c9623,_0xbaf69b,_0x35fe2b,_0x16f2db,_0x103188,_0x30d30a){const _0x3df128=_0x2d7eb5;super(_0x2c9623,_0xbaf69b,_0x35fe2b),M(this,_0x3df128(0x300),!0x0),M(this,_0x3df128(0x371),void 0x0),M(this,'_excelLike',void 0x0),this['originalFieldId']=_0x16f2db,this['_dateType']=_0x103188??_0x3df128(0x402),this[_0x3df128(0x367)]=_0x30d30a&&He(_0x30d30a);}[_0x2d7eb5(0x22b)](_0x2c4429){const _0x176602=_0x2d7eb5;this[_0x176602(0x371)]=_0x2c4429;}['getDateType'](){const _0x2d541a=_0x2d7eb5;return this[_0x2d541a(0x371)];}[_0x2d7eb5(0x236)](){const _0x5809e5=_0x2d7eb5;return this[_0x5809e5(0x300)];}['refreshGroupField'](_0x57474f){const _0x49bee2=_0x2d7eb5;if(this[_0x49bee2(0x32b)](),this[_0x49bee2(0x300)]=!0x0,this[_0x49bee2(0x367)]){this[_0x49bee2(0x476)](_0x57474f);return;}let _0x5bb249=_0x57474f['records'],_0x5ea263=t[_0x49bee2(0x3ce)]===e['DateSystem'][_0x49bee2(0x2c8)];for(let _0x3ef945=0x0;_0x3ef945<_0x5bb249[_0x49bee2(0x2a6)];_0x3ef945++){let _0x335234=_0x5bb249[_0x3ef945];if(_0x335234==null)continue;if(!w(_0x335234)){this[_0x49bee2(0x300)]=!0x1;break;}let _0x3e1ae0=_0x335234['v'],_0x208b08=Ie(_0x3e1ae0,this['_dateType'],_0x5ea263);this['addRecord'](_0x208b08,_0x3ef945);}}['_refreshExcelLike'](_0x2b44af){const _0x1b3992=_0x2d7eb5;let _0x461e60=this['_excelLike'];if(!Be({..._0x461e60,'units':[_0x461e60[_0x1b3992(0x2aa)]]},_0x2b44af)||_0x461e60[_0x1b3992(0x259)]&&(_0x461e60[_0x1b3992(0x2aa)]!=='day'||(_0x461e60[_0x1b3992(0x4f3)]??0x1)!==0x1||_0x461e60['dayLabels']['length']!==0x16e)){this[_0x1b3992(0x300)]=!0x1;return;}let _0x40eaf3=_0x2b44af['records']['map'](_0x15ba4a=>_0x15ba4a['v']),_0x4352f6=ze(_0x2b44af),_0x5d31a4=_0x461e60['autoStart']?_0x4352f6[_0x1b3992(0x3c0)]:_0x461e60['start'],_0x40d4eb=_0x461e60[_0x1b3992(0x4dc)]?_0x4352f6[_0x1b3992(0x3eb)]:_0x461e60['end'],_0xa867ef=t['dateSystem'];for(let _0x1ffc33=0x0;_0x1ffc33<_0x40eaf3[_0x1b3992(0x2a6)];_0x1ffc33++){let _0x428467=_0x40eaf3[_0x1ffc33];if(_0x428467<_0x5d31a4){this['addRecord'](-0x1,_0x1ffc33);continue;}if(_0x428467>_0x40d4eb){this[_0x1b3992(0x488)](Le,_0x1ffc33);continue;}let _0x66c751=(0x0,e[_0x1b3992(0x351)])(_0x428467,{'dateSystem':_0xa867ef}),_0x2ff62b=(_0x428467-Math[_0x1b3992(0x308)](_0x428467))*0x15180,_0x3b8396=Math[_0x1b3992(0x1c3)](_0x2ff62b),_0x58b5eb=0x2**-0x34*Math[_0x1b3992(0x4bd)](0x1,Math[_0x1b3992(0x203)](_0x428467))*0x15180,_0x45d71c=Math[_0x1b3992(0x4e2)](0x1517f,Math[_0x1b3992(0x203)](_0x2ff62b-_0x3b8396)<=_0x58b5eb?_0x3b8396:Math[_0x1b3992(0x308)](_0x2ff62b)),_0x307b82;switch(_0x461e60[_0x1b3992(0x2aa)]){case _0x1b3992(0x402):_0x307b82=_0x66c751[_0x1b3992(0x402)];break;case'quarter':_0x307b82=Math[_0x1b3992(0x2ea)](_0x66c751['month']/0x3);break;case _0x1b3992(0x3e1):_0x307b82=_0x66c751[_0x1b3992(0x3e1)];break;case _0x1b3992(0x223):_0x307b82=Ue(_0x461e60,_0x428467,_0x5d31a4,_0x66c751[_0x1b3992(0x3e1)],_0x66c751['day']);break;case'hour':_0x307b82=Math[_0x1b3992(0x308)](_0x45d71c/0xe10);break;case'minute':_0x307b82=Math[_0x1b3992(0x308)](_0x45d71c/0x3c)%0x3c;break;case'second':_0x307b82=_0x45d71c%0x3c;}this[_0x1b3992(0x488)](_0x307b82,_0x1ffc33);}}['getGroupInfo'](){const _0x391f97=_0x2d7eb5;return{'type':0x3,'dateType':this[_0x391f97(0x371)],...this[_0x391f97(0x367)]?{'excelLike':{...this['_excelLike']}}:{}};}[_0x2d7eb5(0x530)](){return 0x3;}[_0x2d7eb5(0x296)](){const _0x4d61e8=_0x2d7eb5;return this[_0x4d61e8(0x257)];}[_0x2d7eb5(0x501)](){const _0x233d30=_0x2d7eb5;return{...super[_0x233d30(0x501)](),'dateType':this[_0x233d30(0x371)],'originalFieldId':this[_0x233d30(0x257)],...this[_0x233d30(0x367)]?{'excelLike':{...this[_0x233d30(0x367)]}}:{}};}[_0x2d7eb5(0x3e0)](){const _0x48203d=_0x2d7eb5;return{...super[_0x48203d(0x3e0)](),'dateType':this[_0x48203d(0x371)],'originalFieldId':this[_0x48203d(0x257)],...this[_0x48203d(0x367)]?{'excelLike':{...this['_excelLike']}}:{}};}[_0x2d7eb5(0x3d9)](_0x25b5e0){const _0x4cef6a=_0x2d7eb5;super['fromJSON'](_0x25b5e0),this[_0x4cef6a(0x371)]=(_0x25b5e0==null?void 0x0:_0x25b5e0[_0x4cef6a(0x546)])??_0x4cef6a(0x402),this[_0x4cef6a(0x257)]=_0x25b5e0['originalFieldId'],this[_0x4cef6a(0x367)]=_0x25b5e0['excelLike']&&He(_0x25b5e0[_0x4cef6a(0x311)]);}};function Ge(_0x32f90e,_0xb2f73a,_0x2a6862){const _0x3c9abc=_0x2d7eb5;return!!_0x32f90e&&typeof _0x32f90e['id']==_0x3c9abc(0x1cd)&&!!_0x32f90e['id']&&!_0xb2f73a[_0x3c9abc(0x345)](_0x32f90e['id'])&&typeof _0x32f90e[_0x3c9abc(0x43d)]==_0x3c9abc(0x1cd)&&!!_0x32f90e[_0x3c9abc(0x43d)][_0x3c9abc(0x4f9)]()&&!_0x2a6862[_0x3c9abc(0x345)](_0x32f90e[_0x3c9abc(0x43d)])&&Array[_0x3c9abc(0x394)](_0x32f90e[_0x3c9abc(0x41f)])&&_0x32f90e[_0x3c9abc(0x41f)][_0x3c9abc(0x2a6)]>=0x2;}function U(_0x143017,_0xc59511,_0x2eb836){const _0x528c31=_0x2d7eb5;if(!Array['isArray'](_0x143017==null?void 0x0:_0x143017[_0x528c31(0x35c)])||!_0x143017[_0x528c31(0x35c)][_0x528c31(0x2a6)])return;let _0x3b6601=new Set();if(_0xc59511)try{for(let _0x2d7e44 of _0xc59511[_0x528c31(0x21f)])_0x3b6601[_0x528c31(0x426)]((0x0,e[_0x528c31(0x40a)])(E(_0x2d7e44)));}catch{return;}let _0x4f8c4f=new Map(),_0x195930=_0x2eb836&&U(_0x2eb836);for(let _0x35b1f6 of(_0x195930==null?void 0x0:_0x195930[_0x528c31(0x35c)])??[])_0x4f8c4f['set'](_0x35b1f6['id'],new Set(_0x35b1f6['members']['map'](e[_0x528c31(0x40a)])));let _0x4e7385=new Set(),_0x3e13e6=new Set(),_0x5639f5=new Set(),_0x38d292=[];for(let _0x50b484 of _0x143017[_0x528c31(0x35c)]){if(!Ge(_0x50b484,_0x4e7385,_0x3e13e6))return;_0x4e7385[_0x528c31(0x426)](_0x50b484['id']),_0x3e13e6[_0x528c31(0x426)](_0x50b484[_0x528c31(0x43d)]);let _0x256306=[];for(let _0x5a1787 of _0x50b484[_0x528c31(0x41f)]){var _0x56383d;let _0x3e0c5a;try{_0x3e0c5a=(0x0,e[_0x528c31(0x40a)])(_0x5a1787);}catch{return;}if(_0x5639f5[_0x528c31(0x345)](_0x3e0c5a)||_0xc59511&&!_0x3b6601[_0x528c31(0x345)](_0x3e0c5a)&&!((_0x56383d=_0x4f8c4f['get'](_0x50b484['id']))!=null&&_0x56383d['has'](_0x3e0c5a)))return;_0x5639f5[_0x528c31(0x426)](_0x3e0c5a),_0x256306['push']({..._0x5a1787});}_0x38d292[_0x528c31(0x466)]({'id':_0x50b484['id'],'name':_0x50b484[_0x528c31(0x43d)],'members':_0x256306});}return{'groups':_0x38d292};}var W=class extends H{constructor(_0x4214f0,_0x4d973e,_0x4bb19d,_0x40fd37,_0x5f33b1){const _0xbcd426=_0x2d7eb5;super(_0x4214f0,_0x4d973e,_0x4bb19d),M(this,_0xbcd426(0x39c),void 0x0),M(this,_0xbcd426(0x300),!0x0),M(this,_0xbcd426(0x3bb),[]),M(this,_0xbcd426(0x539),new Map()),this['originalFieldId']=_0x40fd37,this[_0xbcd426(0x39c)]=U(_0x5f33b1)??_0x5f33b1;}[_0x2d7eb5(0x1e8)](){const _0x1b2300=_0x2d7eb5;return this[_0x1b2300(0x300)];}[_0x2d7eb5(0x2c3)](){const _0x1002b5=_0x2d7eb5;return U(this[_0x1002b5(0x39c)])??this[_0x1002b5(0x39c)];}[_0x2d7eb5(0x3fe)](_0x27bf65){this['_grouping']=U(_0x27bf65)??_0x27bf65;}[_0x2d7eb5(0x32b)](){const _0x197c0f=_0x2d7eb5;super[_0x197c0f(0x32b)](),this[_0x197c0f(0x3bb)]=[],this[_0x197c0f(0x539)][_0x197c0f(0x34d)]();}[_0x2d7eb5(0x1f7)](_0x4ef52e){const _0xeb81b5=_0x2d7eb5;let _0x267ee2=this[_0xeb81b5(0x3bb)][_0x4ef52e];return this[_0xeb81b5(0x342)]()[_0x267ee2]===void 0x0?t[_0xeb81b5(0x23b)]:_0x267ee2;}['getDisplayNameByKey'](_0x130dbc){const _0x311be0=_0x2d7eb5;return this[_0x311be0(0x539)][_0x311be0(0x4d0)](_0x130dbc)??_0x130dbc;}[_0x2d7eb5(0x244)](_0x44e979){const _0x1a87c2=_0x2d7eb5;this[_0x1a87c2(0x32b)]();let _0x57a081=U(this['_grouping']);if(this[_0x1a87c2(0x300)]=!!_0x57a081,!_0x57a081)return;let _0x4d7b6d=new Map();for(let _0x380b30 of _0x57a081[_0x1a87c2(0x35c)])for(let _0x550d9b of _0x380b30[_0x1a87c2(0x41f)])_0x4d7b6d[_0x1a87c2(0x526)]((0x0,e['getRecordValueKey'])(_0x550d9b),_0x380b30);for(let _0x4ea38d=0x0;_0x4ea38d<_0x44e979[_0x1a87c2(0x21f)]['length'];_0x4ea38d++){let _0x33a340=_0x44e979[_0x1a87c2(0x21f)][_0x4ea38d],_0x242c9a,_0x5454b4;try{_0x242c9a=E(_0x33a340),_0x5454b4=(0x0,e['getRecordValueKey'])(_0x242c9a);}catch{this['reset'](),this[_0x1a87c2(0x300)]=!0x1;return;}let _0x543b70=_0x4d7b6d['get'](_0x5454b4),_0x51f2a1=JSON[_0x1a87c2(0x521)](_0x543b70?['group',_0x543b70['id']]:[_0x1a87c2(0x519),_0x5454b4]),_0x43a7fb=(_0x543b70==null?void 0x0:_0x543b70[_0x1a87c2(0x43d)])??(_0x242c9a[_0x1a87c2(0x43b)]===e['RecordValueType'][_0x1a87c2(0x328)]?t[_0x1a87c2(0x246)]:String(_0x242c9a['value'])),_0x3a41e3=_0x543b70?0x1:this[_0x1a87c2(0x3ff)](_0x242c9a);super[_0x1a87c2(0x488)](_0x51f2a1,_0x4ea38d),this['records'][_0x4ea38d]=(_0x543b70==null?void 0x0:_0x543b70[_0x1a87c2(0x43d)])??_0x33a340,this['_recordKeys'][_0x4ea38d]=_0x51f2a1,this['_displayNames']['set'](_0x51f2a1,_0x43a7fb);let _0x44b08a=this['getItemsMap']()[_0x51f2a1];_0x44b08a!==void 0x0&&(this[_0x1a87c2(0x40c)][_0x44b08a]=_0x3a41e3);}}['_getMemberType'](_0x20cca7){const _0x4a353a=_0x2d7eb5;switch(_0x20cca7[_0x4a353a(0x43b)]){case e[_0x4a353a(0x502)]['Blank']:return 0x5;case e[_0x4a353a(0x502)][_0x4a353a(0x1f9)]:return 0x2;case e[_0x4a353a(0x502)][_0x4a353a(0x4ec)]:return 0x4;case e[_0x4a353a(0x502)][_0x4a353a(0x42e)]:return 0x3;case e[_0x4a353a(0x502)][_0x4a353a(0x369)]:return 0x6;default:return 0x1;}}[_0x2d7eb5(0x35a)](){}[_0x2d7eb5(0x530)](){return 0x4;}[_0x2d7eb5(0x296)](){return this['originalFieldId'];}['toJSON'](){const _0x561ee4=_0x2d7eb5;return{...super[_0x561ee4(0x3e0)](),'dataFieldType':0x4,'grouping':this[_0x561ee4(0x2c3)]()};}['fromJSON'](_0x3d5890){const _0x201141=_0x2d7eb5;super['fromJSON'](_0x3d5890),this[_0x201141(0x257)]=_0x3d5890[_0x201141(0x257)],this[_0x201141(0x39c)]=U(_0x3d5890[_0x201141(0x3f4)])??_0x3d5890[_0x201141(0x3f4)];}};const G=_0x2d7eb5(0x449),Ke=_0x2d7eb5(0x210);function qe(_0x29ad98,_0x3ea212){const _0x507f1d=_0x2d7eb5;if(!Number[_0x507f1d(0x3ca)](_0x29ad98[_0x507f1d(0x285)])||_0x29ad98[_0x507f1d(0x285)]<=0x0||!_0x3ea212['records']['length'])return;let _0x4a408a=0x1/0x0,_0x511813=-0x1/0x0;for(let _0xbc2a19 of _0x3ea212[_0x507f1d(0x21f)])if(!P(_0xbc2a19)){if(typeof _0xbc2a19!=_0x507f1d(0x2c9)||!Number[_0x507f1d(0x3ca)](_0xbc2a19))return;_0x4a408a=Math[_0x507f1d(0x4e2)](_0x4a408a,_0xbc2a19),_0x511813=Math[_0x507f1d(0x4bd)](_0x511813,_0xbc2a19);}let _0x2b1a3d=_0x29ad98[_0x507f1d(0x3aa)]?_0x4a408a:_0x29ad98[_0x507f1d(0x3c0)],_0x1f380b=_0x29ad98[_0x507f1d(0x4dc)]?_0x511813:_0x29ad98[_0x507f1d(0x3eb)];if(!(_0x2b1a3d===void 0x0||_0x1f380b===void 0x0||!Number[_0x507f1d(0x3ca)](_0x2b1a3d)||!Number[_0x507f1d(0x3ca)](_0x1f380b)||_0x2b1a3d>_0x1f380b))return{'start':_0x2b1a3d,'end':_0x1f380b};}function Je(_0x22287c,_0x1d5a43){return qe(_0x22287c,_0x1d5a43)?{..._0x22287c}:void 0x0;}function Ye(_0x457129){const _0x54b567=_0x2d7eb5;let _0x434f5a=qe({'autoStart':!0x0,'autoEnd':!0x0,'interval':0x1},_0x457129);if(!_0x434f5a)return;let _0x4c8a00=_0x434f5a[_0x54b567(0x3eb)]-_0x434f5a['start'];if(!Number[_0x54b567(0x3ca)](_0x4c8a00))return;let _0x195830=Math[_0x54b567(0x1c3)](Math[_0x54b567(0x3be)](_0x4c8a00||Math['abs'](_0x434f5a[_0x54b567(0x3c0)])||0x1))-0x1,_0x1579c4=Math[_0x54b567(0x4bd)](Number[_0x54b567(0x3c4)],0xa**_0x195830),_0x52af2c=_0x457129[_0x54b567(0x21f)][_0x54b567(0x212)](_0xbed387=>P(_0xbed387)||Number[_0x54b567(0x30e)](_0xbed387));return{'autoStart':!0x0,'autoEnd':!0x0,..._0x434f5a,'interval':_0x52af2c?Math[_0x54b567(0x4bd)](0x1,_0x1579c4):_0x1579c4};}var Xe=class extends H{constructor(_0x5aa14a,_0x2bfc0e,_0x17bcaa,_0x23fcab,_0x203bd7){const _0x19ec4e=_0x2d7eb5;super(_0x5aa14a,_0x2bfc0e,_0x17bcaa),M(this,_0x19ec4e(0x39c),void 0x0),M(this,'_dataIsValid',!0x0),M(this,_0x19ec4e(0x380),void 0x0),this[_0x19ec4e(0x257)]=_0x23fcab,this[_0x19ec4e(0x39c)]={..._0x203bd7};}[_0x2d7eb5(0x35b)](){const _0x546d87=_0x2d7eb5;return this[_0x546d87(0x300)];}['refreshGroupField'](_0x16b13f){const _0x4dc251=_0x2d7eb5;this[_0x4dc251(0x32b)]();let _0x429ad7=qe(this[_0x4dc251(0x39c)],_0x16b13f);if(this[_0x4dc251(0x380)]=_0x429ad7,this[_0x4dc251(0x300)]=!!_0x429ad7,!_0x429ad7)return;let {start:_0xae6116,end:_0x32d3d5}=_0x429ad7,_0x31b749=(_0x32d3d5-_0xae6116)/this[_0x4dc251(0x39c)][_0x4dc251(0x285)];if(!Number[_0x4dc251(0x3ca)](_0x31b749)){this[_0x4dc251(0x300)]=!0x1,this[_0x4dc251(0x380)]=void 0x0;return;}let _0x1465c7=Math[_0x4dc251(0x1c3)](_0x31b749),_0x1e830b=Math['min'](0x2**-0x34*0x8*Math[_0x4dc251(0x4bd)](0x1,Math[_0x4dc251(0x203)](_0x31b749)),0.000001),_0x5975f1=Math['abs'](_0x31b749-_0x1465c7)<=_0x1e830b?_0x1465c7:Math[_0x4dc251(0x2ea)](_0x31b749),_0x10948c=Math[_0x4dc251(0x4bd)](0x0,_0x5975f1-0x1);for(let _0x3c6f7d=0x0;_0x3c6f7d<_0x16b13f['records'][_0x4dc251(0x2a6)];_0x3c6f7d++){let _0x307197=_0x16b13f[_0x4dc251(0x21f)][_0x3c6f7d];if(P(_0x307197)){this[_0x4dc251(0x488)](_0x307197,_0x3c6f7d);continue;}let _0x2b31c7=_0x307197,_0x419100=Math[_0x4dc251(0x4e2)](0x2**-0x34*0x8*Math[_0x4dc251(0x4bd)](Math[_0x4dc251(0x203)](_0x2b31c7),Math[_0x4dc251(0x203)](_0xae6116)),this[_0x4dc251(0x39c)][_0x4dc251(0x285)]*0.000001),_0x4904bd=Math[_0x4dc251(0x4e2)](0x2**-0x34*0x8*Math[_0x4dc251(0x4bd)](Math['abs'](_0x2b31c7),Math[_0x4dc251(0x203)](_0x32d3d5)),this[_0x4dc251(0x39c)][_0x4dc251(0x285)]*0.000001);if(_0x2b31c7<_0xae6116&&_0xae6116-_0x2b31c7>_0x419100)this[_0x4dc251(0x488)](G,_0x3c6f7d);else{if(_0x2b31c7>_0x32d3d5&&_0x2b31c7-_0x32d3d5>_0x4904bd)this['addRecord'](Ke,_0x3c6f7d);else{let _0x5e5eee=(Math[_0x4dc251(0x4e2)](_0x32d3d5,Math['max'](_0xae6116,_0x2b31c7))-_0xae6116)/this[_0x4dc251(0x39c)][_0x4dc251(0x285)];if(!Number[_0x4dc251(0x3ca)](_0x5e5eee)){this[_0x4dc251(0x32b)](),this[_0x4dc251(0x300)]=!0x1;return;}let _0x278e44=Math[_0x4dc251(0x1c3)](_0x5e5eee),_0x4bee40=Math['min'](0x2**-0x34*0x8*Math['max'](0x1,Math[_0x4dc251(0x203)](_0x5e5eee)),0.000001),_0x384e64=Math[_0x4dc251(0x4e2)](_0x10948c,Math[_0x4dc251(0x203)](_0x5e5eee-_0x278e44)<=_0x4bee40?_0x278e44:Math[_0x4dc251(0x308)](_0x5e5eee)),_0x405e38=Number((_0xae6116+_0x384e64*this[_0x4dc251(0x39c)]['interval'])['toPrecision'](0xf));this['addRecord'](_0x405e38,_0x3c6f7d);}}}}['getGroupInfo'](){const _0x486ad5=_0x2d7eb5;return{'type':0x2,'grouping':{...this[_0x486ad5(0x39c)],...this['_bounds']}};}[_0x2d7eb5(0x530)](){return 0x2;}[_0x2d7eb5(0x296)](){const _0x1061e1=_0x2d7eb5;return this[_0x1061e1(0x257)];}[_0x2d7eb5(0x3e0)](){const _0x359609=_0x2d7eb5;return{...super[_0x359609(0x3e0)](),'dataFieldType':0x2,'grouping':{...this[_0x359609(0x39c)]}};}[_0x2d7eb5(0x3d9)](_0x166d29){const _0x37618e=_0x2d7eb5;super[_0x37618e(0x3d9)](_0x166d29),this[_0x37618e(0x257)]=_0x166d29[_0x37618e(0x257)],this[_0x37618e(0x39c)]={..._0x166d29['grouping']};}};function K(_0x40833f){const _0xb399c6=_0x2d7eb5;let _0x52aa13;if(Fe(_0x40833f))_0x52aa13=new We(_0x40833f['id'],_0x40833f[_0xb399c6(0x43d)],_0x40833f['hexCode'],_0x40833f['originalFieldId']);else{if(_0x40833f[_0xb399c6(0x20d)]===0x2){let _0x3721fe=_0x40833f;_0x52aa13=new Xe(_0x40833f['id'],_0x40833f[_0xb399c6(0x43d)],_0x40833f['hexCode'],_0x3721fe[_0xb399c6(0x257)],_0x3721fe[_0xb399c6(0x3f4)]);}else{if(_0x40833f[_0xb399c6(0x20d)]===0x4){let _0x2bfb01=_0x40833f;_0x52aa13=new W(_0x40833f['id'],_0x40833f[_0xb399c6(0x43d)],_0x40833f[_0xb399c6(0x438)],_0x2bfb01[_0xb399c6(0x257)],_0x2bfb01[_0xb399c6(0x3f4)]);}else _0x52aa13=new V(_0x40833f['id'],_0x40833f[_0xb399c6(0x43d)],_0x40833f[_0xb399c6(0x438)]);}}return _0x52aa13[_0xb399c6(0x3d9)](_0x40833f),_0x52aa13;}var Ze=class e{constructor(_0x571682){const _0x19f9c1=_0x2d7eb5;M(this,_0x19f9c1(0x229),[]),M(this,_0x19f9c1(0x1e0),{}),M(this,_0x19f9c1(0x1ad),{}),M(this,_0x19f9c1(0x248),void 0x0),M(this,'dataRecordCount',void 0x0),M(this,_0x19f9c1(0x20c),void 0x0),this[_0x19f9c1(0x20c)]=_0x571682;}[_0x2d7eb5(0x1e4)](){const _0x4cf07a=_0x2d7eb5;return this['fieldIds'][_0x4cf07a(0x4f6)]();}[_0x2d7eb5(0x493)](){const _0x210ed7=_0x2d7eb5;return this[_0x210ed7(0x1e4)]()[_0x210ed7(0x39b)](_0x1a507a=>this['getDisplayName'](_0x1a507a));}['getFieldIdByDisplayName'](_0x1f7497){const _0x12fa15=_0x2d7eb5;for(let _0xe351fc of this['fieldIds'])if(this[_0x12fa15(0x503)](_0xe351fc)===_0x1f7497)return _0xe351fc;}['getGroupFieldMap'](){const _0x1b6728=_0x2d7eb5;let _0x516f9f=new Map();for(let _0x2c20a0 of this['fieldIds']){let _0x5398f1=this[_0x1b6728(0x2f8)](_0x2c20a0);B(_0x5398f1)&&_0x516f9f[_0x1b6728(0x526)](_0x5398f1['getOriginFieldId'](),_0x5398f1['id']);}return _0x516f9f;}[_0x2d7eb5(0x3b8)](_0xce996c){const _0x585e5e=_0x2d7eb5;let _0x33a54c=[];for(let _0x319663 of _0xce996c){let _0x4b25a0=this[_0x585e5e(0x2f8)](_0x319663);if(_0x4b25a0&&!B(_0x4b25a0))for(let _0x318314 of this['fieldIds']){let _0x462a5d=this['getFieldById'](_0x318314);B(_0x462a5d)&&_0x462a5d[_0x585e5e(0x296)]()===_0x319663&&_0x33a54c[_0x585e5e(0x466)]([_0x318314,_0x319663]);}}return _0x33a54c;}[_0x2d7eb5(0x390)](_0x798dfd){const _0x2e6b19=_0x2d7eb5;return this[_0x2e6b19(0x229)][_0x2e6b19(0x3fd)](_0x798dfd);}[_0x2d7eb5(0x20b)](_0x20b214){const _0x34fd6b=_0x2d7eb5;return this['fieldIds'][_0x34fd6b(0x312)](_0x261638=>this['getFieldById'](_0x261638)[_0x34fd6b(0x43d)]===_0x20b214);}[_0x2d7eb5(0x2f9)](_0x1fb075){const _0x31efdc=_0x2d7eb5;_0x1fb075&&(this[_0x31efdc(0x248)]={..._0x1fb075});}[_0x2d7eb5(0x208)](_0x36b87c,_0x1d5ddb){const _0x3e37c4=_0x2d7eb5;this[_0x3e37c4(0x229)][_0x3e37c4(0x466)](_0x36b87c);let _0xf8384c=this[_0x3e37c4(0x4f0)](_0x1d5ddb);this[_0x3e37c4(0x1e0)][_0x36b87c]=_0xf8384c;}['deleteField'](_0x50d492){const _0x332043=_0x2d7eb5;let _0x46073c=this[_0x332043(0x229)]['indexOf'](_0x50d492);_0x46073c!==-0x1&&(this['fieldIds']['splice'](_0x46073c,0x1),delete this[_0x332043(0x1e0)][_0x50d492]);}[_0x2d7eb5(0x503)](_0x31170e){const _0x3184ee=_0x2d7eb5;let _0x2d1e7f=this[_0x3184ee(0x1e0)][_0x31170e];return _0x2d1e7f===void 0x0?this[_0x3184ee(0x2f8)](_0x31170e)[_0x3184ee(0x395)]():_0x2d1e7f;}[_0x2d7eb5(0x1a4)](_0x4876f3,_0x2287b5,_0x2ce197){const _0xc3c5ed=_0x2d7eb5;this['displayNameRecord'][_0x4876f3]=this[_0xc3c5ed(0x4f0)](_0x2287b5,_0x2ce197);}[_0x2d7eb5(0x4f0)](_0x5306d6,_0x337db9){const _0x5f2c01=_0x2d7eb5;return e['getUniqueDataFieldName'](_0x5306d6,_0x337db9||this[_0x5f2c01(0x1e0)]);}static['getUniqueDataFieldName'](_0x22d813,_0x3af5ed){const _0x4cc831=_0x2d7eb5;let _0x1b3980=new Set(Object[_0x4cc831(0x2d4)](_0x3af5ed)),_0x41e06f=_0x22d813,_0x3f1270=0x1;if(!_0x1b3980[_0x4cc831(0x345)](_0x41e06f))return _0x41e06f;for(;;){if(_0x41e06f=_0x22d813+'('+_0x3f1270+')',!_0x1b3980[_0x4cc831(0x345)](_0x41e06f))return _0x41e06f;_0x3f1270++;}}[_0x2d7eb5(0x1b1)](){const _0xaae332=_0x2d7eb5;let _0x371372={};for(let _0x3b17cc of this[_0xaae332(0x229)])_0x371372[_0x3b17cc]=this[_0xaae332(0x4f0)](this[_0xaae332(0x2f8)](_0x3b17cc)[_0xaae332(0x395)](),_0x371372);this[_0xaae332(0x1e0)]=_0x371372;}['getFieldById'](_0x43aaa6){const _0x166200=_0x2d7eb5;return this['customFields'][_0x43aaa6]?this[_0x166200(0x1ad)][_0x43aaa6]:this[_0x166200(0x20c)]['dataFields'][_0x43aaa6];}['setDataRecordCount'](_0xc8bc0a){this['dataRecordCount']=_0xc8bc0a;}[_0x2d7eb5(0x1fb)](){return this['dataRecordCount'];}[_0x2d7eb5(0x53e)](_0x3c4a6c){const _0x30d511=_0x2d7eb5;for(let _0x582127 of this[_0x30d511(0x229)])if(this[_0x30d511(0x2f8)](_0x582127)[_0x30d511(0x43d)]===_0x3c4a6c)return this[_0x30d511(0x2f8)](_0x582127);}[_0x2d7eb5(0x501)](){const _0x1ace44=_0x2d7eb5;let _0x38b56e=this[_0x1ace44(0x229)][_0x1ace44(0x39b)](_0x27410c=>this['getFieldById'](_0x27410c)['getFieldInfo']()),_0x59f1bc=Object['keys'](this[_0x1ace44(0x1ad)])['map'](_0x695cd5=>this[_0x1ace44(0x1ad)][_0x695cd5][_0x1ace44(0x501)]());return _0x38b56e[_0x1ace44(0x4f6)](_0x59f1bc);}[_0x2d7eb5(0x3e0)](){const _0x299f2c=_0x2d7eb5;let _0x9beff7={};for(let _0x2b446b of this[_0x299f2c(0x229)])_0x9beff7[_0x2b446b]=this[_0x299f2c(0x2f8)](_0x2b446b)[_0x299f2c(0x3e0)]();return{'fields':_0x9beff7,'fieldIds':this['fieldIds'][_0x299f2c(0x4f6)](),'displayNameRecord':{...this[_0x299f2c(0x1e0)]},'customFields':Object['keys'](this[_0x299f2c(0x1ad)])[_0x299f2c(0x39b)](_0x287f4f=>this[_0x299f2c(0x1ad)][_0x287f4f][_0x299f2c(0x3e0)]()),'dataRecordCount':this[_0x299f2c(0x27f)],'range':this['range']};}['fromJSON'](_0x17d123){const _0x578808=_0x2d7eb5;this['fieldIds']=_0x17d123[_0x578808(0x229)][_0x578808(0x4f6)](),this[_0x578808(0x1e0)]=_0x17d123[_0x578808(0x1e0)]?{..._0x17d123[_0x578808(0x1e0)]}:{};let _0x4f23a2=_0x17d123[_0x578808(0x28d)];for(let _0x319f61 in _0x4f23a2)this['host']['dataFields'][_0x319f61]||(this[_0x578808(0x20c)]['dataFields'][_0x319f61]=K(_0x4f23a2[_0x319f61]));this[_0x578808(0x1ad)]={};for(let _0x14d284 of _0x17d123[_0x578808(0x1ad)]){let _0x3f9392=K(_0x14d284);this[_0x578808(0x1ad)][_0x3f9392['id']]=_0x3f9392;}this[_0x578808(0x27f)]=_0x17d123[_0x578808(0x27f)],this[_0x578808(0x248)]=_0x17d123[_0x578808(0x248)];}[_0x2d7eb5(0x38e)](){const _0xd1b6a2=_0x2d7eb5;this['fieldIds']=[],this[_0xd1b6a2(0x1ad)]={},this[_0xd1b6a2(0x27f)]=0x0,delete this[_0xd1b6a2(0x20c)];}},Qe=class{constructor(){M(this,'dataFields',{}),M(this,'collections',{});}[_0x2d7eb5(0x2e3)](_0x53c8fe){throw Error('A\x20record\x20filter\x20evaluator\x20must\x20be\x20provided\x20by\x20the\x20host.');}['createDataFieldId'](){const _0x39b9da=_0x2d7eb5;let _0x1066ff=R(0x5);return this[_0x39b9da(0x1b3)][_0x1066ff]?this[_0x39b9da(0x4ce)]():_0x1066ff;}['getAutoDisplayNameFunction'](){return null;}[_0x2d7eb5(0x2a1)](_0x10cdbe){const _0x47d40b=_0x2d7eb5;let _0x5f29ee=this[_0x47d40b(0x293)][_0x10cdbe]['getFieldIds'](),_0xa5a0be=new Set();for(let _0x14db1e in this[_0x47d40b(0x293)])if(_0x14db1e!==_0x10cdbe){let _0x5196d6=this[_0x47d40b(0x293)][_0x14db1e][_0x47d40b(0x1e4)]();for(let _0x8d726d of _0x5196d6)_0xa5a0be[_0x47d40b(0x426)](_0x8d726d);}return _0x5f29ee['filter'](_0x374321=>!_0xa5a0be['has'](_0x374321));}[_0x2d7eb5(0x263)](_0x49aa7f,_0x271be3){const _0x4a0b41=_0x2d7eb5;this[_0x4a0b41(0x293)][_0x49aa7f]=new Ze(this);let {header:_0x21bc7e,data:_0x3df5fd}=this[_0x4a0b41(0x1cb)](_0x271be3),_0x5911f8=this[_0x4a0b41(0x293)][_0x49aa7f],_0x507909=[];for(let _0x2954bf of _0x21bc7e){let _0x18ee8a=this[_0x4a0b41(0x4ce)](),_0x507051=new V(_0x18ee8a,_0x2954bf,R(0x3));this['dataFields'][_0x18ee8a]=_0x507051,_0x5911f8[_0x4a0b41(0x229)][_0x4a0b41(0x466)](_0x18ee8a),_0x507909[_0x4a0b41(0x466)](_0x507051);}let _0x4e697f=0x0;for(let _0x181890 of _0x3df5fd){let _0x3c3886=0x0;for(let _0x5f3bd4 of _0x507909)_0x5f3bd4['addRecord'](_0x181890[_0x3c3886],_0x4e697f),_0x3c3886++;_0x4e697f++;}return _0x5911f8[_0x4a0b41(0x1c0)](_0x3df5fd['length']),_0x5911f8;}[_0x2d7eb5(0x38e)](){const _0x2afcab=_0x2d7eb5;for(let _0x14397f in this[_0x2afcab(0x293)])this[_0x2afcab(0x293)][_0x14397f]['dispose']();this[_0x2afcab(0x293)]={},this[_0x2afcab(0x1b3)]={};}[_0x2d7eb5(0x3e0)](){const _0x573e7d=_0x2d7eb5;let _0x4e8a48={};for(let _0x423c8b in this[_0x573e7d(0x293)])_0x4e8a48[_0x423c8b]=this[_0x573e7d(0x293)][_0x423c8b][_0x573e7d(0x3e0)]();let _0xa1868e={};for(let _0x35c3be in this['dataFields'])_0xa1868e[_0x35c3be]=this[_0x573e7d(0x1b3)][_0x35c3be][_0x573e7d(0x3e0)]();return{'collections':_0x4e8a48,'dataFields':_0xa1868e};}[_0x2d7eb5(0x4b9)](_0x2419fc,_0x539710,_0x4ec3ce,..._0x215587){const _0x19eb0a=_0x2d7eb5;this['collections'][_0x2419fc]=_0x539710,_0x539710[_0x19eb0a(0x2f9)](_0x4ec3ce);}[_0x2d7eb5(0x3d9)](_0x3eae0a){const _0x55619b=_0x2d7eb5;for(let _0x31d434 in _0x3eae0a[_0x55619b(0x293)]){let _0x499192=new Ze(this);_0x499192[_0x55619b(0x3d9)](_0x3eae0a[_0x55619b(0x293)][_0x31d434]),this[_0x55619b(0x4b9)](_0x31d434,_0x499192,_0x499192[_0x55619b(0x248)]);}for(let _0x4a47a6 in _0x3eae0a['dataFields'])this[_0x55619b(0x1b3)][_0x4a47a6]=K(_0x3eae0a['dataFields'][_0x4a47a6]);}};const $e='0.00%';function et(_0x502ea1){return _0x502ea1===0x2||_0x502ea1===0x3||_0x502ea1===0x4||_0x502ea1===0x5||_0x502ea1===0x6||_0x502ea1===0x7||_0x502ea1===0xa||_0x502ea1===0xc||_0x502ea1===0xd||_0x502ea1===0xe;}var tt=class{constructor(){const _0x101b9c=_0x2d7eb5;M(this,'pageView',new nt()),M(this,_0x101b9c(0x406),new it()),M(this,_0x101b9c(0x4a6),new at()),M(this,_0x101b9c(0x2a9),new q()),M(this,'cornerView',new q()),M(this,_0x101b9c(0x454),{}),M(this,_0x101b9c(0x512),{});}[_0x2d7eb5(0x360)](_0x54dd57){this['groupInfo']=_0x54dd57;}[_0x2d7eb5(0x2e8)](_0x3966a2,_0x157b90){const _0x55bee8=_0x2d7eb5;let _0x48f269={},_0x4b535c=new Set(_0x157b90['filter'](_0x56f007=>{const _0x22ecc9=_0x420d;var _0x23edb6;return et((_0x23edb6=_0x56f007[_0x22ecc9(0x35e)])==null?void 0x0:_0x23edb6['type']);})['map'](_0x22a5ab=>_0x22a5ab['id']));_0x3966a2[_0x55bee8(0x3ad)](_0x219ff8=>{const _0x2b8dba=_0x55bee8;let _0x4d14db=_0x219ff8[_0x2b8dba(0x378)]();_0x4d14db?_0x48f269[_0x219ff8['id']]=_0x4d14db:_0x4b535c[_0x2b8dba(0x345)](_0x219ff8['id'])&&(_0x48f269[_0x219ff8['id']]=$e);});for(let _0x2829ef of _0x4b535c)_0x48f269[_0x2829ef]??=$e;this[_0x55bee8(0x454)]=_0x48f269;}['toJSON'](){const _0x19e05b=_0x2d7eb5;let _0x4a9b4e={...this[_0x19e05b(0x454)]};return{'pageView':this[_0x19e05b(0x2d3)][_0x19e05b(0x3e0)](),'rowView':this[_0x19e05b(0x406)][_0x19e05b(0x3e0)](),'colView':this['colView'][_0x19e05b(0x3e0)](),'dataView':this['dataView'][_0x19e05b(0x3e0)](),'cornerView':this[_0x19e05b(0x462)][_0x19e05b(0x3e0)](),'groupInfo':this[_0x19e05b(0x512)],'formatMap':_0x4a9b4e};}['formJSON'](_0x828264){const _0x2e79ec=_0x2d7eb5;this[_0x2e79ec(0x2d3)]['fromJSON'](_0x828264[_0x2e79ec(0x2d3)]),this[_0x2e79ec(0x406)]['fromJSON'](_0x828264['rowView']),this[_0x2e79ec(0x4a6)]['fromJSON'](_0x828264[_0x2e79ec(0x4a6)]),this[_0x2e79ec(0x2a9)][_0x2e79ec(0x3d9)](_0x828264[_0x2e79ec(0x2a9)]),this[_0x2e79ec(0x462)]['fromJSON'](_0x828264[_0x2e79ec(0x462)]),this[_0x2e79ec(0x454)]={..._0x828264[_0x2e79ec(0x454)]},this[_0x2e79ec(0x512)]=_0x828264['groupInfo'];}},q=class{constructor(){const _0xa5ea81=_0x2d7eb5;M(this,_0xa5ea81(0x262),0x0),M(this,_0xa5ea81(0x1c7),0x0),M(this,_0xa5ea81(0x4a5),{}),M(this,'info',[]),M(this,_0xa5ea81(0x391),-0x1),M(this,_0xa5ea81(0x22d),-0x1);}[_0x2d7eb5(0x1ce)](){const _0xebed47=_0x2d7eb5;return this[_0xebed47(0x391)];}[_0x2d7eb5(0x3ef)](){const _0x28d2a9=_0x2d7eb5;return this[_0x28d2a9(0x22d)];}[_0x2d7eb5(0x4cb)](_0x19fd66,_0xf5fdc6,_0x4ca305){const _0x482667=_0x2d7eb5;let _0x3ac7da=this['getCell'](_0x19fd66,_0xf5fdc6);this[_0x482667(0x391)]=Math[_0x482667(0x4bd)](this['lastCol'],_0xf5fdc6),this['lastRow']=Math[_0x482667(0x4bd)](this['lastRow'],_0x19fd66),_0x3ac7da['v']=_0x4ca305;}[_0x2d7eb5(0x1d6)](_0x238924,_0x371295,_0x289837){let _0x110242=this['getCell'](_0x238924,_0x371295);_0x110242['s']=_0x289837;}[_0x2d7eb5(0x48b)](_0x4e6834,_0x320df6){let _0x4709f8=this['getCell'](_0x4e6834,_0x320df6);_0x4709f8['t']=0x2;}[_0x2d7eb5(0x2b4)](_0x1b875d,_0x37ae8c){const _0x35f505=_0x2d7eb5;let _0x459ede=this[_0x35f505(0x272)](_0x1b875d,_0x37ae8c);_0x459ede['t']=0x8;}[_0x2d7eb5(0x272)](_0x42d6b4,_0x244674){const _0x3fa654=_0x2d7eb5;return this[_0x3fa654(0x4a5)][_0x42d6b4]||(this['data'][_0x42d6b4]={}),this[_0x3fa654(0x4a5)][_0x42d6b4][_0x244674]||(this[_0x3fa654(0x4a5)][_0x42d6b4][_0x244674]={}),this['data'][_0x42d6b4][_0x244674];}['setInfo'](_0x457d6c,_0x33b896){const _0xa92184=_0x2d7eb5;this[_0xa92184(0x40b)][_0x457d6c]=_0x33b896;}['buildPathMap'](_0x8d1311){const _0x589aab=_0x2d7eb5;let _0x55bacb={},_0x46c983=0x0;return this['info'][_0x589aab(0x4ea)](_0x58af67=>{const _0x50c383=_0x589aab;let _0x1de1c2=we(_0x58af67[_0x50c383(0x472)],_0x58af67[_0x50c383(0x537)],_0x8d1311);_0x55bacb[_0x1de1c2]=_0x46c983,_0x46c983++;}),_0x55bacb;}[_0x2d7eb5(0x206)](_0x46f20d){const _0x1b65df=_0x2d7eb5;this[_0x1b65df(0x262)]=_0x46f20d;}[_0x2d7eb5(0x290)](_0x64ed15){const _0x1af52f=_0x2d7eb5;this[_0x1af52f(0x1c7)]=_0x64ed15;}[_0x2d7eb5(0x36d)](){const _0x3e3aae=_0x2d7eb5;return this[_0x3e3aae(0x262)];}[_0x2d7eb5(0x23e)](){const _0x55dab3=_0x2d7eb5;return this[_0x55dab3(0x1c7)];}['getValue'](_0x3df7f9,_0x5bd2b2){const _0x36410f=_0x2d7eb5;var _0x13d7e9;return(_0x13d7e9=this[_0x36410f(0x4a5)][_0x3df7f9])==null||(_0x13d7e9=_0x13d7e9[_0x5bd2b2])==null?void 0x0:_0x13d7e9['v'];}['getStyle'](_0x1bdc13,_0xff79f8){const _0x265013=_0x2d7eb5;var _0x2a63b3;return(_0x2a63b3=this[_0x265013(0x4a5)][_0x1bdc13])==null||(_0x2a63b3=_0x2a63b3[_0xff79f8])==null?void 0x0:_0x2a63b3['s'];}[_0x2d7eb5(0x3e0)](){const _0x2cf023=_0x2d7eb5;return{'data':this[_0x2cf023(0x4a5)],'info':this[_0x2cf023(0x40b)]['map'](_0x380512=>({..._0x380512,'paths':_0x380512[_0x2cf023(0x472)][_0x2cf023(0x4f6)]()})),'rowCount':this['rowCount'],'colCount':this[_0x2cf023(0x1c7)],'lastCol':this[_0x2cf023(0x391)],'lastRow':this[_0x2cf023(0x22d)]};}['fromJSON'](_0x5dfd62){const _0x282e8b=_0x2d7eb5;this[_0x282e8b(0x4a5)]=_0x5dfd62[_0x282e8b(0x4a5)],this['info']=_0x5dfd62[_0x282e8b(0x40b)][_0x282e8b(0x39b)](_0x2249de=>({..._0x2249de,'paths':_0x2249de[_0x282e8b(0x472)][_0x282e8b(0x4f6)]()})),this['rowCount']=_0x5dfd62[_0x282e8b(0x262)],this[_0x282e8b(0x1c7)]=_0x5dfd62['colCount'],this[_0x282e8b(0x391)]=_0x5dfd62['lastCol'],this[_0x282e8b(0x22d)]=_0x5dfd62[_0x282e8b(0x22d)];}},nt=class extends q{constructor(..._0x41a09f){const _0x31514b=_0x2d7eb5;super(..._0x41a09f),M(this,_0x31514b(0x531),[]),M(this,'lastCol',-0x1),M(this,_0x31514b(0x22d),-0x1);}[_0x2d7eb5(0x491)](_0x21685f,_0x39fc81,_0x35ac61){let _0x2c41a4=this['getCell'](_0x21685f,_0x39fc81);_0x2c41a4['i']=_0x35ac61;}[_0x2d7eb5(0x489)](_0x23fa8f){const _0x2ea33e=_0x2d7eb5;this[_0x2ea33e(0x531)][_0x2ea33e(0x466)](_0x23fa8f);}[_0x2d7eb5(0x2d5)](){const _0x25889a=_0x2d7eb5;return this[_0x25889a(0x531)];}['setLastCol'](_0x4864f7){const _0x2755ab=_0x2d7eb5;this[_0x2755ab(0x391)]=_0x4864f7;}[_0x2d7eb5(0x2dd)](_0x193977){const _0x522b2b=_0x2d7eb5;this[_0x522b2b(0x22d)]=_0x193977;}[_0x2d7eb5(0x1ce)](){const _0x5cc8e5=_0x2d7eb5;return this[_0x5cc8e5(0x391)];}[_0x2d7eb5(0x3ef)](){const _0x11da85=_0x2d7eb5;return this[_0x11da85(0x22d)];}['toJSON'](){const _0x1473ee=_0x2d7eb5;let _0x78ac09=this[_0x1473ee(0x531)]['map'](_0x2bf296=>({..._0x2bf296}));return{...super[_0x1473ee(0x3e0)](),'ranges':_0x78ac09,'lastCol':this[_0x1473ee(0x391)],'lastRow':this['lastRow']};}[_0x2d7eb5(0x3d9)](_0x375f7b){const _0x5d66f7=_0x2d7eb5;this[_0x5d66f7(0x531)]=_0x375f7b[_0x5d66f7(0x531)][_0x5d66f7(0x39b)](_0x5f05f7=>({..._0x5f05f7})),this['lastCol']=_0x375f7b[_0x5d66f7(0x391)],this[_0x5d66f7(0x22d)]=_0x375f7b[_0x5d66f7(0x22d)],super['fromJSON'](_0x375f7b);}},rt=class extends q{constructor(..._0x153146){const _0x5496f1=_0x2d7eb5;super(..._0x153146),M(this,_0x5496f1(0x1bc),[]);}[_0x2d7eb5(0x35f)](_0x2226dc,_0x366f7f){const _0x5478e7=_0x2d7eb5;this[_0x5478e7(0x1bc)][_0x2226dc]=_0x366f7f;}['getHeaderMapItem'](_0x19673c){const _0x3cdecf=_0x2d7eb5;return this[_0x3cdecf(0x1bc)][_0x19673c];}['toJSON'](){const _0xa07cbe=_0x2d7eb5;let _0x331746=this[_0xa07cbe(0x1bc)]['map'](_0x21daaa=>({..._0x21daaa}));return{...super[_0xa07cbe(0x3e0)](),'headerMap':_0x331746};}[_0x2d7eb5(0x3d9)](_0x4b82ff){const _0x12d4e5=_0x2d7eb5;this[_0x12d4e5(0x1bc)]=_0x4b82ff[_0x12d4e5(0x1bc)][_0x12d4e5(0x39b)](_0x4d4c2e=>({..._0x4d4c2e})),super[_0x12d4e5(0x3d9)](_0x4b82ff);}},it=class extends rt{[_0x2d7eb5(0x1ce)](){const _0x575179=_0x2d7eb5;return Math[_0x575179(0x4bd)](this[_0x575179(0x391)],this[_0x575179(0x1bc)][_0x575179(0x2a6)]-0x1);}},at=class extends rt{[_0x2d7eb5(0x3ef)](){const _0x41eefc=_0x2d7eb5;return Math[_0x41eefc(0x4bd)](this[_0x41eefc(0x22d)],this[_0x41eefc(0x1bc)][_0x41eefc(0x2a6)]-0x1);}};const ot=_0x2e61c1=>typeof _0x2e61c1==_0x2d7eb5(0x4c3)&&_0x2e61c1['prefix']!==void 0x0,st=_0x14f5ae=>typeof _0x14f5ae==_0x2d7eb5(0x4c3)&&_0x14f5ae[_0x2d7eb5(0x4a9)]!==void 0x0;function _0x420d(_0x31493c,_0x4aafd4){_0x31493c=_0x31493c-0x19b;const _0xe0c744=_0xe0c7();let _0x420d13=_0xe0c744[_0x31493c];return _0x420d13;}var ct=class{static[_0x2d7eb5(0x3e4)](_0x1654b6,_0x35aa1c,_0x4af3b5){const _0x21fabd=_0x2d7eb5;let _0xc65944=new tt(),_0x38082c=_0x35aa1c[_0x21fabd(0x4b6)],_0x5715ce=_0x35aa1c[_0x21fabd(0x317)],_0x55f2a7=_0x1654b6['getOptions'](),_0x126e6b=_0x55f2a7[_0x21fabd(0x2fd)]||0x1,_0x42df49=!!_0x55f2a7['pageOverThenDown'],_0x4661ee=_0x4af3b5[_0x21fabd(0x50d)],_0x1c8a84=_0x4af3b5['valueFilterInfo'],_0x336376={};for(let _0x16efa6 of _0x1c8a84)_0x336376[_0x16efa6[_0x21fabd(0x420)]]=_0x16efa6;let _0x94f24e=_0x1654b6[_0x21fabd(0x451)](),_0x51542d=_0x1654b6['isRowMultiMeasure'](),_0x119fa5=_0x1654b6[_0x21fabd(0x36e)]();_0x4661ee[_0x21fabd(0x2a6)]>0x1&&(_0x119fa5===-0x1&&(_0x119fa5=_0x5715ce),!_0x94f24e&&!_0x51542d&&(_0x94f24e=!0x0),_0x94f24e&&(_0x119fa5=Math[_0x21fabd(0x4e2)](_0x119fa5,_0x5715ce)),_0x51542d&&(_0x119fa5=Math['min'](_0x119fa5,_0x38082c)));let _0x2fb380=_0x4661ee['length'],_0x1f6c43={},_0x404402={},_0x18e864=0x0;for(let _0x183305 of _0x4661ee)_0x1f6c43[_0x183305['id']]=_0x183305,_0x404402[_0x183305['id']]=_0x18e864,_0x18e864++;let _0x44d3ae=!!_0x1654b6[_0x21fabd(0x3a7)]()[_0x21fabd(0x385)],_0x14da96=!!_0x1654b6['getOptions']()[_0x21fabd(0x238)],_0x3c6ec2=_0x1654b6['getOptions']()[_0x21fabd(0x1b6)]??!0x0,_0x59f07c=_0x1654b6[_0x21fabd(0x3a7)]()[_0x21fabd(0x1a5)]??!0x0,_0x17fa37=_0x1654b6['getOptions']()['showColSubtotal']??!0x0,_0x4b1a5c=_0x1654b6[_0x21fabd(0x3a7)]()[_0x21fabd(0x467)]??!0x0,_0x9b5fe1=_0x1654b6[_0x21fabd(0x3a7)]()[_0x21fabd(0x30b)]??0x1;return{'isColMultiMeasure':_0x94f24e,'isRowMultiMeasure':_0x51542d,'valueIndex':_0x119fa5,'rowDeep':_0x38082c,'colDeep':_0x5715ce,'rowNodeTree':_0x35aa1c[_0x21fabd(0x41d)],'colNodeTree':_0x35aa1c['colNodeTree'],'measuresMap':_0x1f6c43,'measureIndexesMap':_0x404402,'measureCount':_0x2fb380,'pageWrap':_0x126e6b,'pageOverThenDown':_0x42df49,'queryData':_0x4af3b5,'view':_0xc65944,'valueQueryInfo':_0x4661ee,'colMap':{},'summaryManager':_0x35aa1c,'collapseInfo':_0x4af3b5[_0x21fabd(0x3e8)],'repeatRowLabels':_0x44d3ae,'repeatColLabels':_0x14da96,'valueFilterMap':_0x336376,'showRowSubtotal':_0x3c6ec2,'showRowGrandTotal':_0x59f07c,'showColSubtotal':_0x17fa37,'showColGrandTotal':_0x4b1a5c,'rowSubtotalPosition':_0x9b5fe1};}static[_0x2d7eb5(0x3d6)](_0x142a39){const _0x828780=_0x2d7eb5;let {pageWrap:_0x2f93a2,pageOverThenDown:_0x22cfa7,view:_0x491b9d}=_0x142a39,_0x4533df=_0x491b9d[_0x828780(0x2d3)],_0x38ee5e=_0x142a39[_0x828780(0x545)][_0x828780(0x4e3)][_0x828780(0x39b)](({displayName:_0xbf5a64,filterInfo:_0x5e9b55,dataFieldId:_0x3bef9c})=>{const _0x1bed18=_0x828780;var _0x2d7ccf;let {status:_0xafbfcd,value:_0x283470}=Se(_0x5e9b55);if(_0x283470===void 0x0)return{'displayName':_0xbf5a64,'status':_0xafbfcd};let _0x2f7ced=(_0x2d7ccf=_0x142a39[_0x1bed18(0x4f5)][_0x1bed18(0x21b)][_0x3bef9c])==null?void 0x0:_0x2d7ccf[_0x1bed18(0x4c7)],_0x155a7b=_0x2f7ced==null?void 0x0:_0x2f7ced['getTypeByKey'](_0x283470);return{'displayName':_0xbf5a64,'status':_0xafbfcd,'value':_0x2f7ced instanceof W?_0x2f7ced[_0x1bed18(0x20f)](_0x283470):_0x283470,'itemType':_0x155a7b};});_0x22cfa7?this[_0x828780(0x24d)](_0x38ee5e,_0x4533df,_0x2f93a2):this['layoutPageDownThenOver'](_0x38ee5e,_0x4533df,_0x2f93a2);}static['_setPageFilterLabel'](_0x27ff60,_0x27f780,_0x51d11c,_0x5da149,_0x3d5376){const _0x3aff67=_0x2d7eb5;let {displayName:_0x80ce22,value:_0x916868,status:_0x3764f0,itemType:_0x6b3a67}=_0x3d5376;_0x27ff60[_0x3aff67(0x4cb)](_0x27f780,_0x51d11c,_0x80ce22),_0x27ff60[_0x3aff67(0x4cb)](_0x27f780,_0x51d11c+0x1,_0x916868),_0x27ff60['setStyle'](_0x27f780,_0x51d11c+0x1,_0x3764f0),_0x6b3a67===0x5?_0x27ff60['setBlank'](_0x27f780,_0x51d11c+0x1):_0x6b3a67===0x6&&_0x916868===t['otherDataKey']&&_0x27ff60[_0x3aff67(0x2b4)](_0x27f780,_0x51d11c+0x1),_0x27ff60[_0x3aff67(0x491)](_0x27f780,_0x51d11c,_0x5da149),_0x27ff60[_0x3aff67(0x491)](_0x27f780,_0x51d11c+0x1,_0x5da149);}static[_0x2d7eb5(0x24d)](_0x42c891,_0x2d9589,_0x518fa0=0x1){const _0x4cbdaf=_0x2d7eb5;let _0x5802a9=0x0,_0x57b94d=0x0,_0x101f75=0x0;for(let _0x243fa2 of _0x42c891)this[_0x4cbdaf(0x29b)](_0x2d9589,_0x57b94d,_0x5802a9*0x3,_0x101f75,_0x243fa2),_0x5802a9++,_0x5802a9===_0x518fa0&&(_0x5802a9=0x0,_0x57b94d++),_0x101f75++;let _0x3eeb69=_0x42c891['length'],_0x294cfb=Math[_0x4cbdaf(0x2ea)](_0x3eeb69/_0x518fa0),_0x36fd62=_0x3eeb69%_0x518fa0;for(let _0x584a6d=0x0;_0x584a6d<_0x518fa0;_0x584a6d++){let _0x5e6091=_0x36fd62>=_0x584a6d+0x1?_0x294cfb:_0x294cfb-0x1;_0x2d9589[_0x4cbdaf(0x489)]({'row':0x0,'col':_0x584a6d*0x3,'rowCount':_0x5e6091,'colCount':0x2});}_0x2d9589[_0x4cbdaf(0x2dd)](_0x294cfb-0x1);let _0x120166=_0x3eeb69>_0x518fa0?_0x518fa0*0x3-0x2:_0x3eeb69*0x3-0x2;_0x2d9589[_0x4cbdaf(0x2b8)](_0x120166),_0x2d9589[_0x4cbdaf(0x206)](_0x2d9589['lastRow']+0x1),_0x2d9589[_0x4cbdaf(0x290)](_0x2d9589[_0x4cbdaf(0x391)]+0x1);}static[_0x2d7eb5(0x427)](_0x182b59,_0x211f54,_0x8484d0=0x1){const _0x28b4cf=_0x2d7eb5;let _0x138a58=0x0,_0x5d4782=0x0,_0x1b48ce=0x0;for(let _0x51dcc4 of _0x182b59)this[_0x28b4cf(0x29b)](_0x211f54,_0x138a58,_0x5d4782*0x3,_0x1b48ce,_0x51dcc4),_0x138a58++,_0x138a58===_0x8484d0&&(_0x138a58=0x0,_0x5d4782++),_0x1b48ce++;let _0x4692bd=_0x182b59[_0x28b4cf(0x2a6)],_0x4b3f84=0x0;for(;_0x4b3f84<_0x4692bd;){let _0x18f4f9=Math['min'](_0x8484d0,_0x4692bd-_0x4b3f84);_0x211f54[_0x28b4cf(0x489)]({'row':0x0,'col':_0x4b3f84*0x3/_0x8484d0,'rowCount':_0x18f4f9,'colCount':0x2}),_0x4b3f84+=_0x8484d0;}_0x211f54[_0x28b4cf(0x2dd)](Math[_0x28b4cf(0x4e2)](_0x4692bd,_0x8484d0)-0x1),_0x211f54[_0x28b4cf(0x2b8)](Math['ceil'](_0x4692bd/_0x8484d0)*0x3-0x2),_0x211f54[_0x28b4cf(0x206)](_0x211f54[_0x28b4cf(0x22d)]+0x1),_0x211f54[_0x28b4cf(0x290)](_0x211f54['lastCol']+0x1);}static[_0x2d7eb5(0x26c)](_0xaae9e6){const _0x1a7495=_0x2d7eb5;this[_0x1a7495(0x486)](_0xaae9e6),this[_0x1a7495(0x2d2)](_0xaae9e6),_0xaae9e6[_0x1a7495(0x4f5)][_0x1a7495(0x2be)](_0xaae9e6[_0x1a7495(0x545)]);}static['layoutCorner'](_0xcc9687){}static[_0x2d7eb5(0x486)](_0x35694d){const _0x50cc52=_0x2d7eb5;let {colDeep:_0x4767af,view:_0x1ed2dc,isColMultiMeasure:_0x495836,valueIndex:_0x5665e1}=_0x35694d,_0xc1562e=_0x35694d[_0x50cc52(0x545)][_0x50cc52(0x533)],_0x2e9a5d=_0x1ed2dc['colView'],_0x1ab0a6=0x0,_0x25e302=!0x1;for(let _0x15f7ad=0x0;_0x15f7ad<_0x4767af;_0x15f7ad++){let {displayName:_0x5e2495,filterInfo:_0x3a2371,sortInfo:_0x13f707,id:_0x593504,dataFieldId:_0x51cc95}=_0xc1562e[_0x15f7ad];_0x4767af!==0x0&&_0x495836&&_0x15f7ad===_0x5665e1&&(_0x2e9a5d['setValue'](0x0,_0x1ab0a6,'\x20Σ值'),_0x25e302=!0x0,_0x1ab0a6++),_0x2e9a5d[_0x50cc52(0x4cb)](0x0,_0x1ab0a6,_0x5e2495),_0x2e9a5d[_0x50cc52(0x35f)](_0x1ab0a6+0x1,{'isValue':!0x1,'level':_0x15f7ad,'tableFieldId':_0x593504,'dataFieldId':_0x51cc95}),_0x2e9a5d[_0x50cc52(0x1d6)](0x0,_0x1ab0a6,Ce(_0x3a2371,_0x13f707,_0x35694d[_0x50cc52(0x3d8)][_0x593504])),_0x1ab0a6++;}_0x4767af!==0x0&&!_0x25e302&&_0x495836&&(_0x2e9a5d[_0x50cc52(0x4cb)](0x0,_0x1ab0a6,'\x20Σ值'),_0x2e9a5d[_0x50cc52(0x35f)](_0x1ab0a6+0x1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x2d7eb5(0x359)](_0xe9e67c){const _0x19d079=_0x2d7eb5;let {view:_0x2a7aab}=_0xe9e67c,{rowView:_0xebf9fe,colView:_0x1ac52e,dataView:_0x512ee3}=_0x2a7aab;_0x512ee3[_0x19d079(0x206)](_0xebf9fe[_0x19d079(0x36d)]()),_0x512ee3[_0x19d079(0x290)](_0x1ac52e[_0x19d079(0x23e)]());}static[_0x2d7eb5(0x32f)](_0x79ae7b,_0x13b9a6){const _0x26669e=_0x2d7eb5;let {measureCount:_0x3f5c3a,isColMultiMeasure:_0x39115b,valueQueryInfo:_0x3b82b3}=_0x79ae7b,_0x377667=_0x39115b?_0x3b82b3[_0x26669e(0x39b)](_0x2f1eae=>_0x2f1eae['id']):[],_0x504d1a=this['buildColPathMap'](_0x79ae7b,_0x13b9a6);return _0x3f5c3a===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x504d1a}:(this[_0x26669e(0x368)](_0x79ae7b,0x0,_0x13b9a6,_0x377667,_0x504d1a),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x39115b?_0x3f5c3a:0x1,'colPathMap':_0x504d1a});}static[_0x2d7eb5(0x2d2)](_0x334ba8){const _0x442c06=_0x2d7eb5;let {colNodeTree:_0x2e4291,view:_0x3c08a7,colDeep:_0x5968c3,isColMultiMeasure:_0x54bbfe,valueQueryInfo:_0xd87675,measureCount:_0x5c3335}=_0x334ba8,_0x4f1e86=_0x54bbfe?_0xd87675[_0x442c06(0x39b)](_0x3958e8=>_0x3958e8['id']):[],_0x39df9c=_0x5968c3===0x0?this[_0x442c06(0x32f)](_0x334ba8,_0x2e4291):this[_0x442c06(0x42d)](_0x334ba8,_0x2e4291,0x0,_0x4f1e86),_0x17bb4f=_0x3c08a7[_0x442c06(0x4a6)];if(_0x5c3335===0x0&&_0x5968c3===0x0)_0x17bb4f[_0x442c06(0x206)](0x0);else{if(_0x5c3335!==0x0&&_0x5968c3===0x0&&_0x54bbfe)_0x17bb4f['setRowCount'](0x1);else{if(_0x5c3335!==0x0&&_0x5968c3===0x0)_0x17bb4f[_0x442c06(0x206)](0x0);else{let _0x41dc7a=_0x5968c3===0x0?0x0:0x1,_0x1a0761=_0x54bbfe?_0x5968c3+0x1+_0x41dc7a:_0x5968c3+_0x41dc7a;_0x17bb4f[_0x442c06(0x206)](_0x1a0761);}}}_0x17bb4f['setColCount'](this['getRealSize'](_0x39df9c)),_0x334ba8[_0x442c06(0x53c)]=_0x17bb4f[_0x442c06(0x2ee)](_0x54bbfe);}static['isLeafNode'](_0x3d7369,_0x3b7fcd){const _0x20d171=_0x2d7eb5;return _0x3d7369[_0x20d171(0x4f7)]()===_0x3b7fcd;}static['getRealSize'](_0x31aa82){const _0x4de2bc=_0x2d7eb5;return _0x31aa82[_0x4de2bc(0x31b)]+_0x31aa82[_0x4de2bc(0x2e5)]+_0x31aa82[_0x4de2bc(0x425)];}static[_0x2d7eb5(0x3b6)](_0x26ea86,_0x435ba1,_0x423400){let {queryData:_0x2e0299,summaryManager:_0x23ec45}=_0x26ea86,{valueQueryInfo:_0x5b96b6}=_0x2e0299;return _0x23ec45['getCellValue'](_0x435ba1['getIndex'](),_0x5b96b6[_0x423400]);}static[_0x2d7eb5(0x3ec)](_0x3127e7,_0x5088f7,_0x2a2ef4,_0x5b7730){const _0x4d3d86=_0x2d7eb5;let {view:_0x28fab4,isColMultiMeasure:_0x2ebaac,valueIndex:_0x418acb,measureCount:_0x597755,measuresMap:_0x4498bb,measureIndexesMap:_0x48154a,colDeep:_0x323e13}=_0x3127e7,_0xa23a2f=_0x28fab4[_0x4d3d86(0x4a6)],_0xa2d292=_0x5088f7[_0x4d3d86(0x4f7)](),_0xc8230d=this[_0x4d3d86(0x274)](_0x2ebaac,_0xa2d292,_0x418acb),_0x2c1c96=this[_0x4d3d86(0x46b)](_0x3127e7,_0x5088f7),_0x42cf24=_0x5088f7['getFieldsId']();if(_0xc8230d){let _0x3e529b=0x0,_0x4e22a9=_0x323e13===0x0?0x0:0x1;for(let _0x1688ae of _0x5b7730){let _0x57bba5=this[_0x4d3d86(0x2e1)](_0xa2d292,_0x418acb,_0x2ebaac)+_0x4e22a9;_0xa23a2f['setValue'](_0x57bba5,_0x2a2ef4+_0x3e529b,_0x4498bb[_0x1688ae][_0x4d3d86(0x392)]),_0xa23a2f['setInfo'](_0x2a2ef4+_0x3e529b,{'level':_0xa2d292,'paths':_0x5088f7['getPaths'](),'valueIndex':_0x2ebaac?_0x3e529b:-0x1,'colPathMap':_0x2c1c96,'tableFieldId':_0x42cf24}),_0x3e529b++;}return{'itemSize':0x1*_0x597755,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x2c1c96};}{let _0x2cc2da=_0x2ebaac?_0x48154a[_0x5b7730[0x0]]:-0x1;return _0xa23a2f[_0x4d3d86(0x2bb)](_0x2a2ef4,{'level':_0xa2d292,'paths':_0x5088f7[_0x4d3d86(0x3a3)](),'valueIndex':_0x2cc2da,'colPathMap':_0x2c1c96,'tableFieldId':_0x42cf24}),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x2c1c96};}}static[_0x2d7eb5(0x46b)](_0xc6ef28,_0x2e9aba){const _0x47015f=_0x2d7eb5;let _0xab3f2b=[],_0x347f80={};return _0x347f80['']=_0x2e9aba['getIndex'](),_0x2e9aba[_0x47015f(0x2ad)]()||_0x2e9aba[_0x47015f(0x28e)](_0xca1cd7=>{const _0x1483cb=_0x47015f;this[_0x1483cb(0x463)](_0xc6ef28,_0xca1cd7,_0xab3f2b['concat']([_0xca1cd7[_0x1483cb(0x43d)]]),_0x347f80);}),_0x347f80;}static[_0x2d7eb5(0x463)](_0x4bdefc,_0x22cb13,_0x310293,_0x25f0cd){const _0x29d8d9=_0x2d7eb5;let {summaryManager:_0x4215b6}=_0x4bdefc,_0x4f5066=_0x4215b6[_0x29d8d9(0x2ca)](_0x310293,_0x4215b6[_0x29d8d9(0x2a4)]);_0x25f0cd[_0x4f5066]=_0x22cb13['getIndex'](),_0x22cb13[_0x29d8d9(0x1d5)]||_0x22cb13[_0x29d8d9(0x28e)](_0x50f1aa=>{const _0xa0e4e4=_0x29d8d9;let _0x1d29b1=_0x310293['concat']([_0x50f1aa[_0xa0e4e4(0x43d)]]);this[_0xa0e4e4(0x463)](_0x4bdefc,_0x50f1aa,_0x1d29b1,_0x25f0cd);});}static[_0x2d7eb5(0x372)](_0x1ae7cf,_0xa9504c,_0x1c68e7){const _0x3e457e=_0x2d7eb5;if(this['isLeafNode'](_0xa9504c,_0x1ae7cf['colDeep'])){let _0x4045ef=this[_0x3e457e(0x46b)](_0x1ae7cf,_0xa9504c);_0x1c68e7[_0x3e457e(0x466)](_0x4045ef);}else _0xa9504c['iterate'](_0x11315b=>{const _0x16b872=_0x3e457e;this[_0x16b872(0x372)](_0x1ae7cf,_0x11315b,_0x1c68e7);});}static[_0x2d7eb5(0x27d)](_0x8d498b,_0x4bc6fb,_0x135cbd,_0xef22fb){const _0xbee049=_0x2d7eb5;let {isColMultiMeasure:_0x2a0239,valueIndex:_0x377da8,view:_0x199057,measuresMap:_0x34cfac,summaryManager:_0x36b70b}=_0x8d498b,_0x1f60a1=_0x4bc6fb[_0xbee049(0x4f7)](),_0x24cae1=_0x135cbd,_0x1b3dcf={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':{}},_0xa5f2e2=[],_0x30a8b8=this['shouldMultipleNode'](_0x2a0239,_0x4bc6fb[_0xbee049(0x4f7)](),_0x377da8),_0x5214a9=_0x36b70b[_0xbee049(0x2ca)](_0x4bc6fb[_0xbee049(0x3a3)](),_0x36b70b[_0xbee049(0x1f3)]);if(_0x30a8b8){let _0x555c69=0x0;for(let _0x34c517 of _0xef22fb){let _0x4f9cd4=this[_0xbee049(0x2e1)](_0x1f60a1,_0x377da8,_0x2a0239);_0x199057['colView'][_0xbee049(0x4cb)](_0x4f9cd4+0x1,_0x24cae1,_0x34cfac[_0x34c517][_0xbee049(0x392)]),_0x4bc6fb[_0xbee049(0x28e)](_0x20e05d=>{const _0x1f107b=_0xbee049;let _0x38b6a7=this[_0x1f107b(0x42d)](_0x8d498b,_0x20e05d,_0x24cae1,[_0x34c517]),{itemSize:_0x55f4d9,topTotalSize:_0x215195,bottomTotalSize:_0x157768}=_0x38b6a7;_0x1b3dcf[_0x1f107b(0x31b)]+=_0x55f4d9,_0x1b3dcf[_0x1f107b(0x2e5)]+=_0x215195,_0x1b3dcf[_0x1f107b(0x425)]+=_0x157768,_0x24cae1+=this[_0x1f107b(0x419)](_0x38b6a7),_0x555c69===0x0&&_0xa5f2e2[_0x1f107b(0x466)](_0x38b6a7[_0x1f107b(0x405)]);}),_0x555c69++;}_0x1b3dcf['colPathMap']=_0x36b70b['combinePathMapList'](_0xa5f2e2,_0x5214a9),_0x24cae1++;}else _0x4bc6fb['iterate'](_0xf6bba5=>{const _0x1a85a8=_0xbee049;let _0x1e6306=this[_0x1a85a8(0x42d)](_0x8d498b,_0xf6bba5,_0x24cae1,_0xef22fb),{itemSize:_0x41d40f,topTotalSize:_0x3dce68,bottomTotalSize:_0x38636c}=_0x1e6306;_0x1b3dcf[_0x1a85a8(0x31b)]+=_0x41d40f,_0x1b3dcf[_0x1a85a8(0x2e5)]+=_0x3dce68,_0x1b3dcf['bottomTotalSize']+=_0x38636c,_0x24cae1+=this[_0x1a85a8(0x419)](_0x1e6306),_0xa5f2e2[_0x1a85a8(0x466)](_0x1e6306[_0x1a85a8(0x405)]);}),_0x1b3dcf[_0xbee049(0x405)]=_0x36b70b['combinePathMapList'](_0xa5f2e2,_0x5214a9);return _0x1b3dcf;}static[_0x2d7eb5(0x4ca)](_0x2c9fbc,_0x5d6bd4,_0x13dbe4){return _0x2c9fbc&&_0x5d6bd4<=_0x13dbe4;}static[_0x2d7eb5(0x274)](_0x36783c,_0x2f6c9c,_0x4d673f){return _0x36783c&&_0x2f6c9c===_0x4d673f;}static[_0x2d7eb5(0x2e1)](_0x3501ad,_0x2c1f72,_0x131565){return _0x131565?_0x3501ad<=_0x2c1f72?_0x3501ad:_0x3501ad+0x1:_0x3501ad;}static['setLabelValue'](_0x823ccf,_0xca91a5,_0x3b61d5,_0x23c901,_0xa54084,_0x519b8a){const _0x5b3f9f=_0x2d7eb5;_0x823ccf[_0x5b3f9f(0x4cb)](_0xca91a5,_0x3b61d5,_0x23c901),_0xa54084&&_0x823ccf['setBlank'](_0xca91a5,_0x3b61d5),_0x519b8a&&_0x823ccf[_0x5b3f9f(0x2b4)](_0xca91a5,_0x3b61d5);}static[_0x2d7eb5(0x42d)](_0x48c8c6,_0x5c4da9,_0x35d10d,_0x59e496){const _0x4322aa=_0x2d7eb5;let {view:_0x113221,colDeep:_0x338ed7,measureCount:_0x5d4228,isColMultiMeasure:_0x4d52aa,valueIndex:_0x2a666a,summaryManager:_0x1c4265}=_0x48c8c6,_0x2faa5d=_0x113221['colView'],_0x4fc44b=_0x5c4da9[_0x4322aa(0x392)],_0x3721e7=_0x5c4da9[_0x4322aa(0x43b)]===0x5,_0x36948e=_0x5c4da9[_0x4322aa(0x43b)]===0x6,_0x55b5e7=_0x5c4da9[_0x4322aa(0x43b)]===0x4||_0x5c4da9[_0x4322aa(0x43b)]===0x2?Number(_0x4fc44b):_0x4fc44b,_0x5c605e=_0x5c4da9['getLevel'](),_0x306aa2=this[_0x4322aa(0x2e1)](_0x5c605e,_0x2a666a,_0x4d52aa),_0x180204=this[_0x4322aa(0x4ca)](_0x4d52aa,_0x5c605e,_0x2a666a),_0x633acb=_0x5c4da9[_0x4322aa(0x373)](),_0x44ac30=this[_0x4322aa(0x49b)](_0x5c4da9,_0x338ed7);if(_0x5c605e!==0x0&&(this['setLabelValue'](_0x2faa5d,_0x306aa2,_0x35d10d,_0x55b5e7,_0x3721e7,_0x36948e),_0x44ac30||_0x2faa5d[_0x4322aa(0x1d6)](_0x306aa2,_0x35d10d,_0x633acb?0xb:0xc)),_0x633acb){if(_0x44ac30)return{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':this[_0x4322aa(0x46b)](_0x48c8c6,_0x5c4da9)};let _0x390ccc=[];this[_0x4322aa(0x372)](_0x48c8c6,_0x5c4da9,_0x390ccc);let _0x1e048c=_0x1c4265[_0x4322aa(0x2ca)](_0x5c4da9['getPaths'](),_0x1c4265[_0x4322aa(0x1f3)]),_0x45ca36=_0x1c4265[_0x4322aa(0x2a5)](_0x390ccc,_0x1e048c),_0x5d69e7=_0x5c605e!==0x0||_0x48c8c6['showColGrandTotal'];return _0x5d69e7&&this['updateColumnSubtotal'](_0x48c8c6,_0x35d10d,_0x5c4da9,_0x59e496,_0x45ca36),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x5d69e7?_0x180204?_0x5d4228:0x1:0x0,'colPathMap':_0x45ca36};}if(_0x44ac30)return this[_0x4322aa(0x3ec)](_0x48c8c6,_0x5c4da9,_0x35d10d,_0x59e496);{let _0xd3daf7=this[_0x4322aa(0x27d)](_0x48c8c6,_0x5c4da9,_0x35d10d,_0x59e496),_0xf30bc9=this[_0x4322aa(0x419)](_0xd3daf7);if(_0x48c8c6['repeatColLabels']&&_0x5c605e!==0x0){for(let _0x6fee32=_0x35d10d+0x1;_0x6fee32<_0x35d10d+_0xf30bc9;_0x6fee32++)this[_0x4322aa(0x4c1)](_0x2faa5d,_0x306aa2,_0x6fee32,_0x55b5e7,_0x3721e7,_0x36948e);}return(_0x5c605e===0x0?_0x48c8c6[_0x4322aa(0x317)]===0x0||_0x48c8c6[_0x4322aa(0x467)]:_0x48c8c6['showColSubtotal'])&&(this[_0x4322aa(0x368)](_0x48c8c6,_0x35d10d+_0xf30bc9,_0x5c4da9,_0x59e496,_0xd3daf7[_0x4322aa(0x405)]),_0x180204?_0xd3daf7[_0x4322aa(0x425)]+=_0x5d4228:_0xd3daf7[_0x4322aa(0x425)]++),_0xd3daf7;}}static[_0x2d7eb5(0x481)](_0x3ebe66,_0x228c59,_0x281331){return _0x3ebe66?_0x281331[_0x228c59[0x0]]:-0x1;}static['updateColumnSubtotal'](_0x398120,_0x2fd8c0,_0x4d0a4b,_0x553399,_0x92eb83){const _0x3d1978=_0x2d7eb5;let {view:_0x122842,isColMultiMeasure:_0x3c9a5a,valueIndex:_0x22be96,measuresMap:_0x2f6519,measureIndexesMap:_0x52402f,colDeep:_0xb7d02d,valueQueryInfo:_0x17c481}=_0x398120,_0x5d47b4=_0x122842[_0x3d1978(0x4a6)],_0x1e13b0=_0x4d0a4b[_0x3d1978(0x392)],_0x502df3=_0x4d0a4b[_0x3d1978(0x4f7)](),_0x1e6124=this[_0x3d1978(0x4ca)](_0x3c9a5a,_0x502df3,_0x22be96);if(_0x502df3===0x0){let _0x5b71c9=_0xb7d02d===0x0?0x0:0x1;if(_0x1e6124){let _0x5c2020=0x0;for(let _0x33ad11 of _0x553399){let {displayName:_0x378585}=_0x2f6519[_0x33ad11];_0x5d47b4[_0x3d1978(0x4cb)](_0x5b71c9,_0x5c2020+_0x2fd8c0,''+_0x378585),_0x5d47b4[_0x3d1978(0x1d6)](_0x5b71c9,_0x5c2020+_0x2fd8c0,0xf),_0x5d47b4[_0x3d1978(0x2bb)](_0x5c2020+_0x2fd8c0,{'level':_0x502df3,'paths':_0x4d0a4b[_0x3d1978(0x3a3)](),'valueIndex':_0x5c2020,'isBottomTotal':!0x0,'colPathMap':_0x92eb83,'tableFieldId':''}),_0x5c2020++;}}else{_0xb7d02d===0x0&&_0x17c481[_0x3d1978(0x2a6)]===0x1?_0x5d47b4[_0x3d1978(0x4cb)](_0x5b71c9,_0x2fd8c0,_0x17c481[0x0][_0x3d1978(0x392)]):(_0x5d47b4[_0x3d1978(0x4cb)](_0x5b71c9,_0x2fd8c0,''),_0x5d47b4['setStyle'](_0x5b71c9,_0x2fd8c0,0xe));let _0x4a76dc=this[_0x3d1978(0x481)](_0x3c9a5a,_0x553399,_0x52402f);_0x5d47b4[_0x3d1978(0x2bb)](_0x2fd8c0,{'level':_0x502df3,'paths':_0x4d0a4b[_0x3d1978(0x3a3)](),'valueIndex':_0x4a76dc,'isBottomTotal':!0x0,'colPathMap':_0x92eb83,'tableFieldId':''});}}else{let _0xc7b289=this['getRowIndexForColHeader'](_0x502df3,_0x22be96,_0x3c9a5a),_0x2a31e0=_0x4d0a4b[_0x3d1978(0x373)](),_0x50e99c=_0x4d0a4b[_0x3d1978(0x441)](),_0x178c8e=_0x4d0a4b[_0x3d1978(0x43b)]===0x5,_0x261366=_0x4d0a4b[_0x3d1978(0x43b)]===0x6;if(_0x2a31e0&&_0xc7b289++,_0x1e6124){let _0x5357be=0x0,_0xb23c18=_0x502df3;for(let _0x2699d6 of _0x553399){let {displayName:_0x563001}=_0x2f6519[_0x2699d6],_0x561fa4=_0x2a31e0?_0x563001:{'prefix':_0x4d0a4b[_0x3d1978(0x392)],'value':_0x563001};_0x5d47b4[_0x3d1978(0x1d6)](_0xb23c18,_0x2fd8c0+_0x5357be,0xd),this['setLabelValue'](_0x5d47b4,_0xb23c18,_0x2fd8c0+_0x5357be,_0x561fa4,!_0x2a31e0&&_0x178c8e,!_0x2a31e0&&_0x261366),_0x5d47b4[_0x3d1978(0x2bb)](_0x2fd8c0+_0x5357be,{'level':_0x502df3,'paths':_0x4d0a4b['getPaths'](),'valueIndex':_0x5357be,'isBottomTotal':!0x0,'colPathMap':_0x92eb83,'tableFieldId':_0x50e99c}),_0x5357be++;}}else{_0x2a31e0||(this[_0x3d1978(0x4c1)](_0x5d47b4,_0xc7b289,_0x2fd8c0,_0x1e13b0,_0x178c8e,_0x261366&&_0x4d0a4b['name']===t[_0x3d1978(0x23b)]),_0x5d47b4[_0x3d1978(0x1d6)](_0xc7b289,_0x2fd8c0,0xd));let _0x1fea30=this[_0x3d1978(0x481)](_0x3c9a5a,_0x553399,_0x52402f);_0x5d47b4[_0x3d1978(0x2bb)](_0x2fd8c0,{'level':_0x502df3,'paths':_0x4d0a4b[_0x3d1978(0x3a3)](),'valueIndex':_0x1fea30,'isBottomTotal':!0x0,'colPathMap':_0x92eb83,'tableFieldId':_0x50e99c});}}}},lt=class extends ct{static[_0x2d7eb5(0x25d)](_0x49bdf1,_0x2c4697,_0x51eb79){const _0x288cf3=_0x2d7eb5;let _0x462949=this[_0x288cf3(0x3e4)](_0x49bdf1,_0x2c4697,_0x51eb79);return this[_0x288cf3(0x3d6)](_0x462949),this[_0x288cf3(0x26c)](_0x462949),this['layoutRowFields'](_0x462949),this[_0x288cf3(0x277)](_0x462949),this[_0x288cf3(0x359)](_0x462949),this['layoutCorner'](_0x462949),_0x462949[_0x288cf3(0x39f)];}static['layoutHeadersWithoutColumnDimensions'](_0x24c5e3){const _0x3092ab=_0x2d7eb5;if(_0x24c5e3[_0x3092ab(0x317)]!==0x0)return;let _0xff0aab=_0x24c5e3['view']['colView'];(_0x24c5e3['rowDeep']!==0x0||_0x24c5e3[_0x3092ab(0x4a0)]===0x1||_0x24c5e3['isRowMultiMeasure'])&&(_0x24c5e3[_0x3092ab(0x4a0)]===0x1&&(_0xff0aab[_0x3092ab(0x4cb)](0x0,0x0,_0x24c5e3[_0x3092ab(0x50d)][0x0][_0x3092ab(0x392)]),_0xff0aab[_0x3092ab(0x2bb)](0x0,this[_0x3092ab(0x329)](_0x24c5e3,_0xff0aab['info'][0x0]))),_0xff0aab[_0x3092ab(0x206)](0x1));}static[_0x2d7eb5(0x329)](_0x18db84,_0x591d76){const _0x3d0f55=_0x2d7eb5;let _0x2c574a=_0x18db84['valueQueryInfo'][0x0];return{..._0x591d76,'tableFieldId':_0x2c574a['id'],'dataFieldId':_0x2c574a[_0x3d0f55(0x2e0)],'isValue':!0x0};}static[_0x2d7eb5(0x404)](_0x5ce6a1){const _0x28c4bb=_0x2d7eb5;let {rowDeep:_0x5057a1,colDeep:_0x92134a,measureCount:_0x4be5f6,isRowMultiMeasure:_0x435e20,isColMultiMeasure:_0x44dd6c}=_0x5ce6a1,_0x4da12a=_0x5ce6a1['view'][_0x28c4bb(0x4a6)][_0x28c4bb(0x36d)]();_0x4da12a===0x0&&_0x5057a1!==0x0&&(_0x4da12a=0x1);let _0x30c325=_0x5ce6a1[_0x28c4bb(0x39f)]['rowView'][_0x28c4bb(0x23e)]();return _0x5057a1===0x0&&(_0x4be5f6===0x0?_0x30c325=0x0:_0x4be5f6===0x1?(_0x30c325=_0x92134a===0x0?0x0:0x1,_0x4da12a=_0x92134a===0x0?0x1:_0x4da12a):_0x435e20?_0x30c325=0x1:_0x44dd6c&&(_0x30c325=0x0)),{'rowCount':_0x30c325,'colCount':_0x4da12a};}static[_0x2d7eb5(0x2dc)](_0x1b6305){const _0x294f69=_0x2d7eb5;let {rowDeep:_0x49d1ed,colDeep:_0x2651e7,view:_0x59454a,measureCount:_0x1169cb,isRowMultiMeasure:_0x48833c,valueIndex:_0x57a3f4}=_0x1b6305,_0x44d71e=_0x1b6305[_0x294f69(0x545)][_0x294f69(0x1ba)],_0x5babb8=_0x1b6305['queryData'][_0x294f69(0x50d)],_0x235edf=_0x59454a[_0x294f69(0x462)],_0x193d28=_0x59454a[_0x294f69(0x406)],{rowCount:_0x532b48,colCount:_0x321158}=this[_0x294f69(0x404)](_0x1b6305);_0x235edf['setRowCount'](_0x321158),_0x235edf[_0x294f69(0x290)](_0x532b48),_0x1169cb===0x1&&_0x2651e7>0x0&&_0x49d1ed>0x0&&_0x235edf[_0x294f69(0x4cb)](0x0,0x0,_0x5babb8[0x0][_0x294f69(0x392)]);let _0x47f986=0x0,_0x3c4f70=!0x1,_0x59ca0e=_0x321158-0x1;for(let _0x50f050=0x0;_0x50f050<_0x49d1ed;_0x50f050++){let {displayName:_0x5848cb,filterInfo:_0x219293,sortInfo:_0x502e18,dataFieldId:_0x3452b9,id:_0x1ce7ba}=_0x44d71e[_0x50f050];_0x48833c&&_0x50f050===_0x57a3f4&&(_0x235edf[_0x294f69(0x4cb)](_0x59ca0e,_0x47f986,_0x294f69(0x535)),_0x3c4f70=!0x0,_0x235edf[_0x294f69(0x2bb)](_0x47f986,{'paths':[],'level':-0x1,'tableFieldId':'','dataFieldId':'','valueIndex':-0x1,'isValue':!0x0}),_0x193d28['addHeaderMapItem'](_0x47f986,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}),_0x47f986++),_0x235edf['setValue'](_0x59ca0e,_0x47f986,_0x5848cb),_0x193d28[_0x294f69(0x35f)](_0x47f986,{'isValue':!0x1,'level':_0x50f050,'tableFieldId':_0x1ce7ba,'dataFieldId':_0x3452b9}),_0x235edf[_0x294f69(0x1d6)](_0x59ca0e,_0x47f986,Ce(_0x219293,_0x502e18,_0x1b6305[_0x294f69(0x3d8)][_0x1ce7ba])),_0x235edf[_0x294f69(0x2bb)](_0x47f986,{'paths':[],'level':_0x50f050,'tableFieldId':_0x1ce7ba,'dataFieldId':_0x3452b9,'valueIndex':-0x1}),_0x47f986++;}!_0x3c4f70&&_0x48833c&&(_0x235edf[_0x294f69(0x4cb)](_0x59ca0e,_0x47f986,_0x294f69(0x535)),_0x193d28[_0x294f69(0x35f)](_0x47f986,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x2d7eb5(0x381)](_0x241911){const _0x160654=_0x2d7eb5;let {rowNodeTree:_0x4f1bd8,view:_0x300040,rowDeep:_0x5120ef,colDeep:_0x1ad9a7,isRowMultiMeasure:_0x13251b,isColMultiMeasure:_0x125e7c,valueQueryInfo:_0x3da6b3,measureCount:_0x5734bc}=_0x241911,_0x37efed=_0x13251b?_0x3da6b3['map'](_0x5328d1=>_0x5328d1['id']):[],_0x3bddc7=this[_0x160654(0x485)](_0x241911,_0x4f1bd8,0x0,_0x37efed),_0x3acca8=_0x300040[_0x160654(0x406)];_0x3acca8['setRowCount'](this[_0x160654(0x419)](_0x3bddc7)),_0x5120ef===0x0?_0x5734bc===0x0||_0x125e7c?_0x3acca8[_0x160654(0x290)](0x0):_0x13251b?_0x3acca8[_0x160654(0x290)](0x1):_0x3acca8[_0x160654(0x290)](_0x1ad9a7===0x0?0x0:0x1):_0x3acca8[_0x160654(0x290)](_0x13251b?_0x5120ef+0x1:_0x5120ef);}static['doRowLeafNode'](_0x3005f9,_0x5e4c95,_0x393819,_0x621657){const _0x5e9db1=_0x2d7eb5;let {view:_0x102218,isRowMultiMeasure:_0x3c3939,valueIndex:_0x792ebc,measureCount:_0x22fe4d,measuresMap:_0x1e8adc,measureIndexesMap:_0x37685c}=_0x3005f9,_0x1fc753=_0x102218[_0x5e9db1(0x406)],_0x178846=_0x5e4c95[_0x5e9db1(0x4f7)](),_0x147b96=_0x5e4c95[_0x5e9db1(0x43b)]===0x5,_0x1f9d26=_0x5e4c95[_0x5e9db1(0x43b)]===0x6,_0x53267d=this[_0x5e9db1(0x274)](_0x3c3939,_0x178846,_0x792ebc),_0x40a536=_0x5e4c95[_0x5e9db1(0x441)]();if(_0x53267d){let _0x33fd4f=0x0;for(let _0x50899e of _0x621657){let _0x1c6c26=this[_0x5e9db1(0x509)](_0x178846,_0x792ebc,_0x3c3939)+0x1;_0x1fc753[_0x5e9db1(0x4cb)](_0x393819+_0x33fd4f,_0x1c6c26,_0x1e8adc[_0x50899e]['displayName']),_0x147b96&&_0x792ebc!==_0x5e4c95[_0x5e9db1(0x4f7)]()&&_0x1fc753['setBlank'](_0x393819+_0x33fd4f,_0x1c6c26),_0x1f9d26&&_0x792ebc!==_0x5e4c95[_0x5e9db1(0x4f7)]()&&_0x1fc753[_0x5e9db1(0x2b4)](_0x393819+_0x33fd4f,_0x1c6c26);let _0x44e6cd=_0x5e4c95[_0x5e9db1(0x3a3)]();_0x1fc753[_0x5e9db1(0x2bb)](_0x393819+_0x33fd4f,{'paths':_0x44e6cd,'valueIndex':_0x3c3939?_0x33fd4f:-0x1,'level':_0x178846,'tableFieldId':_0x40a536}),this[_0x5e9db1(0x3d2)](_0x3005f9,_0x5e4c95,_0x393819+_0x33fd4f),this['startContent'](_0x3005f9,_0x5e4c95,_0x393819+_0x33fd4f,_0x33fd4f),_0x33fd4f++;}return{'itemSize':0x1*_0x22fe4d,'topTotalSize':0x0,'bottomTotalSize':0x0};}{let _0x854ff5=_0x3c3939?_0x37685c[_0x621657[0x0]]:-0x1,_0x557e2c=_0x5e4c95['getPaths']();return _0x1fc753['setInfo'](_0x393819,{'level':_0x178846,'paths':_0x557e2c,'valueIndex':_0x854ff5,'tableFieldId':_0x40a536}),this[_0x5e9db1(0x3d2)](_0x3005f9,_0x5e4c95,_0x393819),_0x178846===0x0&&_0x22fe4d===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x854ff5}:(this[_0x5e9db1(0x383)](_0x3005f9,_0x5e4c95,_0x393819,_0x854ff5),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x854ff5});}}static[_0x2d7eb5(0x383)](_0x34e5d1,_0x13cf00,_0x272249,_0x1cfafc){const _0x11a94e=_0x2d7eb5;let {measureCount:_0x21358b}=_0x34e5d1;_0x21358b<=0x0||(_0x13cf00['iterate'](_0x28873e=>{const _0x1d5abd=_0x420d;this['layoutValueNode'](_0x34e5d1,_0x28873e,_0x272249,_0x1cfafc,[_0x28873e[_0x1d5abd(0x43d)]]);}),this[_0x11a94e(0x294)](_0x34e5d1,_0x13cf00,_0x272249,[],_0x1cfafc));}static[_0x2d7eb5(0x478)](_0x32e92b,_0x30b168,_0x2e15d7,_0x4fdef4,_0x1107db){const _0x4e9246=_0x2d7eb5;let _0x118523=_0x30b168[_0x4e9246(0x2ad)]();this[_0x4e9246(0x294)](_0x32e92b,_0x30b168,_0x2e15d7,_0x1107db,_0x4fdef4),_0x118523||(this[_0x4e9246(0x2a7)](_0x32e92b,_0x2e15d7),_0x30b168['iterate'](_0x548df2=>{const _0x171ffb=_0x4e9246;let _0x167614=_0x1107db[_0x171ffb(0x4f6)](_0x548df2['name']);this[_0x171ffb(0x478)](_0x32e92b,_0x548df2,_0x2e15d7,_0x4fdef4,_0x167614);}));}static[_0x2d7eb5(0x2a7)](_0x5572f6,_0x55139c){const _0x3880bc=_0x2d7eb5;let {view:_0x1e3529,summaryManager:_0x190624,valueQueryInfo:_0x2144fb,rowDeep:_0x7bbee2,measureCount:_0x2cf5c4}=_0x5572f6,_0x258697=_0x1e3529['dataView'],_0x2b3f7e=_0x1e3529[_0x3880bc(0x4a6)],_0x2ed234=_0x1e3529[_0x3880bc(0x406)][_0x3880bc(0x40b)][_0x55139c],_0x383a1a=_0x2ed234[_0x3880bc(0x472)];if(!(_0x2ed234['level']===_0x7bbee2||_0x2cf5c4<=0x0))for(let _0x3ce8c9=0x0;_0x3ce8c9<_0x2b3f7e[_0x3880bc(0x40b)][_0x3880bc(0x2a6)];_0x3ce8c9++){let _0x270a01=_0x2b3f7e['info'][_0x3ce8c9],{colPathMap:_0x853243}=_0x270a01,_0x1ddf7e=_0x190624['getPathKeyWithFiledId'](_0x383a1a,_0x190624[_0x3880bc(0x2a4)]),_0x52e6bc=_0x853243==null?void 0x0:_0x853243[_0x1ddf7e],_0x4d6c3d=this['getMeasureInfoByIndex'](_0x5572f6,_0x2144fb,_0x2ed234,_0x270a01);if(_0x52e6bc){let _0x18a9e9=_0x190624[_0x3880bc(0x44c)](_0x52e6bc,_0x4d6c3d);_0x18a9e9!==void 0x0&&_0x258697[_0x3880bc(0x4cb)](_0x55139c,_0x3ce8c9,_0x18a9e9);}}}static[_0x2d7eb5(0x4c9)](_0x487301,_0x19a68a,_0xf16bfa,_0x58b06f){let {isColMultiMeasure:_0x53c12d,isRowMultiMeasure:_0x535d17}=_0x487301;return _0x53c12d?_0x19a68a[_0x58b06f['valueIndex']]:_0x535d17?_0x19a68a[_0xf16bfa['valueIndex']]:_0x19a68a[0x0];}static[_0x2d7eb5(0x294)](_0x9e8eff,_0x3d67f3,_0x428c5d,_0x53d36e,_0x4d4d9f){const _0x1fbc9a=_0x2d7eb5;let {view:_0x399d7b,colMap:_0x4caa33,isColMultiMeasure:_0xdf96b0,measureCount:_0x5a5fcd}=_0x9e8eff,_0x237e68=_0x399d7b['dataView'],_0x2a6901=[];if(_0x4d4d9f===-0x1){if(_0xdf96b0){for(let _0x54b316=0x0;_0x54b316<_0x5a5fcd;_0x54b316++)_0x2a6901[_0x1fbc9a(0x466)](_0x54b316);}else _0x5a5fcd>0x0&&_0x2a6901[_0x1fbc9a(0x466)](0x0);}else _0x2a6901[_0x1fbc9a(0x466)](_0x4d4d9f);for(let _0x287029 of _0x2a6901){let _0x4b34bd=_0x4caa33[we(_0x53d36e,_0x287029,_0xdf96b0)],_0x7f8ede=this[_0x1fbc9a(0x3b6)](_0x9e8eff,_0x3d67f3,_0x287029);_0x7f8ede!==void 0x0&&_0x237e68['setValue'](_0x428c5d,_0x4b34bd,_0x7f8ede);}}static[_0x2d7eb5(0x509)](_0x441c12,_0x5da7a7,_0x284adc){return _0x284adc?_0x441c12<=_0x5da7a7?_0x441c12-0x1:_0x441c12:_0x441c12-0x1;}static[_0x2d7eb5(0x3d2)](_0x361d23,_0x19e8cf,_0x5bb43c){const _0x17cc56=_0x2d7eb5;if(!_0x361d23[_0x17cc56(0x385)])return;let _0x5578e2=_0x361d23[_0x17cc56(0x39f)][_0x17cc56(0x406)],_0x3ec9b5=_0x19e8cf[_0x17cc56(0x301)],_0x3ae1d7=Math[_0x17cc56(0x4e2)](_0x19e8cf[_0x17cc56(0x4f7)](),_0x361d23[_0x17cc56(0x4b6)]);for(let _0x341f2e=0x1;_0x341f2e<=_0x3ae1d7;_0x341f2e++){let _0x162cdd=this[_0x17cc56(0x509)](_0x341f2e,_0x361d23[_0x17cc56(0x537)],_0x361d23[_0x17cc56(0x4bc)]);_0x162cdd<0x0||_0x5578e2[_0x17cc56(0x4cb)](_0x5bb43c,_0x162cdd,_0x3ec9b5[_0x341f2e-0x1]);}}static[_0x2d7eb5(0x1d2)](_0x2cd340,_0xc906ea,_0x4e75e3,_0xf82dd){const _0xc4ca84=_0x2d7eb5;let {isRowMultiMeasure:_0x143664,valueIndex:_0x1dd4c8,view:_0x53609e,measuresMap:_0x148512}=_0x2cd340,_0x5a84e2=_0xc906ea[_0xc4ca84(0x4f7)](),_0x3789a3=_0x4e75e3,_0x45350b={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0},_0x2fb946=this[_0xc4ca84(0x274)](_0x143664,_0xc906ea[_0xc4ca84(0x4f7)](),_0x1dd4c8),_0x5a668f=_0xc906ea[_0xc4ca84(0x43b)]===0x5,_0x2492a3=_0xc906ea[_0xc4ca84(0x43b)]===0x6;if(_0x2fb946){for(let _0x4268c1 of _0xf82dd){let _0x4563ee=this['getColIndexForRowHeader'](_0x5a84e2,_0x1dd4c8,_0x143664),_0x31d070=_0x53609e[_0xc4ca84(0x406)];_0x31d070[_0xc4ca84(0x4cb)](_0x3789a3,_0x4563ee+0x1,_0x148512[_0x4268c1][_0xc4ca84(0x392)]),_0x5a668f&&_0x31d070[_0xc4ca84(0x48b)](_0x3789a3,_0x4563ee+0x1),_0x2492a3&&_0x31d070[_0xc4ca84(0x2b4)](_0x3789a3,_0x4563ee+0x1),_0xc906ea[_0xc4ca84(0x28e)](_0x2acea2=>{const _0x407ba5=_0xc4ca84;let _0x418248=this[_0x407ba5(0x485)](_0x2cd340,_0x2acea2,_0x3789a3,[_0x4268c1]),{itemSize:_0x3465c9,topTotalSize:_0x14e56b,bottomTotalSize:_0x2be065}=_0x418248;_0x45350b[_0x407ba5(0x31b)]+=_0x3465c9,_0x45350b[_0x407ba5(0x2e5)]+=_0x14e56b,_0x45350b[_0x407ba5(0x425)]+=_0x2be065,_0x3789a3+=this[_0x407ba5(0x419)](_0x418248);});}_0x3789a3++;}else _0xc906ea[_0xc4ca84(0x28e)](_0x44ca28=>{const _0x2c2311=_0xc4ca84;let _0x877f13=this[_0x2c2311(0x485)](_0x2cd340,_0x44ca28,_0x3789a3,_0xf82dd),{itemSize:_0x21afa3,topTotalSize:_0x4f6b91,bottomTotalSize:_0x53a512}=_0x877f13;_0x45350b[_0x2c2311(0x31b)]+=_0x21afa3,_0x45350b[_0x2c2311(0x2e5)]+=_0x4f6b91,_0x45350b['bottomTotalSize']+=_0x53a512,_0x3789a3+=this[_0x2c2311(0x419)](_0x877f13);});return _0x45350b;}static[_0x2d7eb5(0x485)](_0x40f4c2,_0x465441,_0xca3300,_0x254e86){const _0x256440=_0x2d7eb5;let {view:_0xfa15e0,rowDeep:_0x11c704,isRowMultiMeasure:_0x5e1df6,valueIndex:_0x5d3599,measureCount:_0x4ae21c,colDeep:_0xb46681,valueQueryInfo:_0x1ac1b0}=_0x40f4c2,_0xa8f693=_0xfa15e0['rowView'],_0x205f9a=_0x465441[_0x256440(0x392)],_0x290182=_0x465441[_0x256440(0x4f7)](),_0x547258=this[_0x256440(0x509)](_0x290182,_0x5d3599,_0x5e1df6),_0x4f061d=_0x465441[_0x256440(0x373)](),_0xbb813d=this['isLeafNode'](_0x465441,_0x11c704),_0x8f69c2=_0x465441[_0x256440(0x43b)]===0x5,_0x3d1061=_0x465441['type']===0x6,_0x554394=_0x465441[_0x256440(0x43b)]===0x4||_0x465441[_0x256440(0x43b)]===0x2,_0x28d7d6=_0x290182===0x0;if(!_0x28d7d6){let _0x4a5753=_0x554394?Number(_0x205f9a):_0x205f9a;_0xa8f693[_0x256440(0x4cb)](_0xca3300,_0x547258,_0x4a5753),_0x8f69c2&&_0xa8f693[_0x256440(0x48b)](_0xca3300,_0x547258),_0x3d1061&&_0xa8f693[_0x256440(0x2b4)](_0xca3300,_0x547258),_0xbb813d||_0xa8f693[_0x256440(0x1d6)](_0xca3300,_0x547258,_0x4f061d?0xb:0xc);}if(_0xbb813d){let _0x3b2e21=_0x28d7d6&&!_0x5e1df6&&_0x11c704===0x0&&_0xb46681!==0x0&&_0x1ac1b0['length']===0x1;_0x28d7d6&&!_0x5e1df6&&_0x4ae21c>0x0&&(_0x11c704===0x0?_0xb46681!==0x0&&_0xa8f693['setValue'](_0xca3300,0x0,_0x1ac1b0[0x0]['displayName']):_0xb46681!==0x0&&_0x1ac1b0[_0x256440(0x2a6)]===0x1?_0xa8f693['setValue'](_0xca3300,0x0,_0x1ac1b0[0x0][_0x256440(0x392)]):(_0xa8f693[_0x256440(0x4cb)](_0xca3300,0x0,''),_0xa8f693['setStyle'](_0xca3300,0x0,0xe)));let _0x4ab629=this[_0x256440(0x21d)](_0x40f4c2,_0x465441,_0xca3300,_0x254e86);return _0x3b2e21&&_0xa8f693['setInfo'](_0xca3300,this['createSingleValueHeaderInfo'](_0x40f4c2,_0xa8f693['info'][_0xca3300])),_0x4ab629;}{let _0x111f06=_0xca3300,_0x527e99={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0};_0x4f061d||(_0x527e99=this['doRowBrachNode'](_0x40f4c2,_0x465441,_0xca3300,_0x254e86),_0x111f06+=this[_0x256440(0x419)](_0x527e99));let _0x55d642=this[_0x256440(0x4ca)](_0x5e1df6,_0x290182,_0x5d3599);return(_0x28d7d6?_0x40f4c2[_0x256440(0x4b6)]===0x0||_0x40f4c2[_0x256440(0x1a5)]:_0x40f4c2['showRowSubtotal']||_0x4f061d)&&(this[_0x256440(0x477)](_0x40f4c2,_0x111f06,_0x465441,_0x254e86),_0x55d642?_0x527e99['bottomTotalSize']+=_0x4ae21c:_0x527e99[_0x256440(0x425)]++),_0x527e99;}}static[_0x2d7eb5(0x477)](_0x234830,_0xb2c48e,_0x277816,_0x558fc5){const _0x545a2c=_0x2d7eb5;let {view:_0x57a6b9,isRowMultiMeasure:_0x1aa6f5,valueIndex:_0x4d1278,measuresMap:_0x259239,measureIndexesMap:_0x471204,rowDeep:_0x5a76a2,colDeep:_0xbae18a,valueQueryInfo:_0x115c55}=_0x234830,_0x4a4049=_0x57a6b9[_0x545a2c(0x406)],_0x218c7c=_0x277816[_0x545a2c(0x4f7)](),_0x5b1002=this[_0x545a2c(0x4ca)](_0x1aa6f5,_0x218c7c,_0x4d1278);if(_0x218c7c===0x0){if(_0x5b1002){let _0x398033=0x0;for(let _0x3949ac of _0x558fc5){let {displayName:_0x4d74e3}=_0x259239[_0x3949ac];_0x4a4049[_0x545a2c(0x4cb)](_0x398033+_0xb2c48e,0x0,''+_0x4d74e3),_0x4a4049['setStyle'](_0x398033+_0xb2c48e,0x0,0xf),_0x4a4049[_0x545a2c(0x2bb)](_0x398033+_0xb2c48e,{'paths':_0x277816[_0x545a2c(0x3a3)](),'valueIndex':_0x398033,'isBottomTotal':!0x0,'level':_0x218c7c,'tableFieldId':''}),this['layoutValueNodeSubtotal'](_0x234830,_0xb2c48e+_0x398033),_0x398033++;}}else{_0x5a76a2===0x0&&_0xbae18a!==0x0&&_0x115c55[_0x545a2c(0x2a6)]===0x1?_0x4a4049[_0x545a2c(0x4cb)](_0xb2c48e,0x0,_0x115c55[0x0]['displayName']):(_0x4a4049['setValue'](_0xb2c48e,0x0,''),_0x4a4049[_0x545a2c(0x1d6)](_0xb2c48e,0x0,0xe));let _0x31e473=_0x1aa6f5?_0x471204[_0x558fc5[0x0]]:-0x1;_0x4a4049['setInfo'](_0xb2c48e,{'paths':_0x277816[_0x545a2c(0x3a3)](),'valueIndex':_0x31e473,'isBottomTotal':!0x0,'level':_0x218c7c,'tableFieldId':''}),_0x5a76a2===0x0&&_0xbae18a!==0x0&&_0x115c55['length']===0x1&&_0x4a4049[_0x545a2c(0x2bb)](_0xb2c48e,this[_0x545a2c(0x329)](_0x234830,_0x4a4049[_0x545a2c(0x40b)][_0xb2c48e])),this[_0x545a2c(0x2a7)](_0x234830,_0xb2c48e);}}else{let _0x301cd3=this['getColIndexForRowHeader'](_0x218c7c,_0x4d1278,_0x1aa6f5),_0x3b830e=_0x277816['getCollapse'](),_0x1bcf3e=_0x277816[_0x545a2c(0x441)](),_0xc7f807=_0x277816[_0x545a2c(0x43b)]===0x5,_0x185aa8=_0x277816[_0x545a2c(0x43b)]===0x6;if(_0x3b830e&&_0x301cd3++,_0x5b1002){let _0x50b9af=0x0,_0x1879bd=_0x234830[_0x545a2c(0x537)];for(let _0x493cad of _0x558fc5){let {displayName:_0x5d7606}=_0x259239[_0x493cad];if(_0x3b830e)_0x4a4049[_0x545a2c(0x4cb)](_0xb2c48e+_0x50b9af,_0x1879bd,_0x5d7606);else{let _0x17dd5e=_0x3b830e?''+_0x5d7606:{'prefix':_0x277816[_0x545a2c(0x392)],'value':_0x5d7606};_0x4a4049['setValue'](_0xb2c48e+_0x50b9af,_0x301cd3,_0x17dd5e),_0xc7f807&&_0x4a4049[_0x545a2c(0x48b)](_0xb2c48e+_0x50b9af,_0x301cd3),_0x185aa8&&_0x4a4049[_0x545a2c(0x2b4)](_0xb2c48e+_0x50b9af,_0x301cd3),_0x4a4049[_0x545a2c(0x1d6)](_0xb2c48e+_0x50b9af,_0x301cd3,0xd);}_0x4a4049['setInfo'](_0xb2c48e+_0x50b9af,{'paths':_0x277816[_0x545a2c(0x3a3)](),'valueIndex':_0x50b9af,'isBottomTotal':!0x0,'level':_0x218c7c,'tableFieldId':_0x1bcf3e}),this[_0x545a2c(0x2a7)](_0x234830,_0xb2c48e+_0x50b9af),_0x50b9af++;}}else{_0x3b830e||(this[_0x545a2c(0x4c1)](_0x4a4049,_0xb2c48e,_0x301cd3,_0x277816[_0x545a2c(0x392)],_0xc7f807,_0x185aa8&&_0x277816[_0x545a2c(0x43d)]===t[_0x545a2c(0x23b)]),_0x4a4049[_0x545a2c(0x1d6)](_0xb2c48e,_0x301cd3,0xd));let _0x54754f=_0x1aa6f5?_0x471204[_0x558fc5[0x0]]:-0x1;_0x4a4049['setInfo'](_0xb2c48e,{'paths':_0x277816[_0x545a2c(0x3a3)](),'valueIndex':_0x54754f,'isBottomTotal':!0x0,'level':_0x218c7c,'tableFieldId':_0x1bcf3e}),this[_0x545a2c(0x2a7)](_0x234830,_0xb2c48e);}}}},ut=class extends lt{static[_0x2d7eb5(0x25d)](_0x5d1fbc,_0x3ec913,_0xe39cb2){const _0x2f991e=_0x2d7eb5;let _0x48cc9a=this['prepareLayoutCtx'](_0x5d1fbc,_0x3ec913,_0xe39cb2);return this['layoutPage'](_0x48cc9a),this[_0x2f991e(0x26c)](_0x48cc9a),this[_0x2f991e(0x381)](_0x48cc9a),this[_0x2f991e(0x277)](_0x48cc9a),this[_0x2f991e(0x359)](_0x48cc9a),this[_0x2f991e(0x2dc)](_0x48cc9a),_0x48cc9a[_0x2f991e(0x39f)];}static['layoutRowFields'](_0x549191){const _0x1cb5a2=_0x2d7eb5;let {rowNodeTree:_0x280916,view:_0x185f34,isRowMultiMeasure:_0x5a184f,valueQueryInfo:_0x5434ec,measureCount:_0x29aee3,rowDeep:_0x537b27,showRowGrandTotal:_0x5e4a77}=_0x549191,_0x362309=_0x185f34[_0x1cb5a2(0x406)],_0x3a7a58=_0x5a184f?_0x5434ec[_0x1cb5a2(0x39b)](_0x45cd38=>_0x45cd38['id']):[],_0x3b43a5=0x0;if(_0x537b27===0x0)_0x29aee3>0x0&&(_0x3b43a5=this[_0x1cb5a2(0x492)](_0x549191,_0x280916,_0x3b43a5,_0x3a7a58));else{if(this[_0x1cb5a2(0x2c2)](_0x549191)){for(let _0xdd65f2 of _0x3a7a58)_0x3b43a5=this[_0x1cb5a2(0x1cf)](_0x549191,_0x3b43a5,_0xdd65f2),_0x3b43a5=this[_0x1cb5a2(0x34e)](_0x549191,_0x280916,_0x3b43a5,[_0xdd65f2]);}else _0x3b43a5=this['layoutRowChildren'](_0x549191,_0x280916,_0x3b43a5,_0x3a7a58);_0x5e4a77&&(_0x29aee3>0x0||_0x537b27>0x0)&&(_0x3b43a5=this[_0x1cb5a2(0x492)](_0x549191,_0x280916,_0x3b43a5,_0x3a7a58));}_0x362309[_0x1cb5a2(0x206)](_0x3b43a5),_0x362309['setColCount'](this[_0x1cb5a2(0x2c5)](_0x549191));}static[_0x2d7eb5(0x2c2)](_0x3b08f1){const _0x3fbcbc=_0x2d7eb5;return _0x3b08f1[_0x3fbcbc(0x4bc)]&&_0x3b08f1['valueIndex']===0x0;}static[_0x2d7eb5(0x34e)](_0x43b6be,_0x50c378,_0x34767e,_0xa5ab74){let _0x25a82c=_0x34767e;return _0x50c378['iterate'](_0xec5978=>{const _0x1c7ce4=_0x420d;_0x25a82c=this[_0x1c7ce4(0x35d)](_0x43b6be,_0xec5978,_0x25a82c,_0xa5ab74);}),_0x25a82c;}static[_0x2d7eb5(0x485)](_0x373a40,_0x53aa79,_0x48a7de,_0x42390d){const _0x58f9ad=_0x2d7eb5;return{'itemSize':this[_0x58f9ad(0x35d)](_0x373a40,_0x53aa79,_0x48a7de,_0x42390d)-_0x48a7de,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x2d7eb5(0x35d)](_0x5d200f,_0x16a3d8,_0x113c37,_0x13b19e){const _0x434a42=_0x2d7eb5;let _0x2ef77a=this[_0x434a42(0x49b)](_0x16a3d8,_0x5d200f['rowDeep']),_0x4db69f=_0x16a3d8[_0x434a42(0x373)]();if(!_0x2ef77a){if(this['shouldWriteMultiValueSubtotalAtBottom'](_0x5d200f,_0x16a3d8)&&!_0x4db69f){let _0x1e0d3e=this['writeParentItemRow'](_0x5d200f,_0x16a3d8,_0x113c37);if(this[_0x434a42(0x274)](_0x5d200f[_0x434a42(0x4bc)],_0x16a3d8[_0x434a42(0x4f7)](),_0x5d200f[_0x434a42(0x537)])){for(let _0x10fb16 of _0x13b19e)_0x1e0d3e=this['writeValueHeaderRow'](_0x5d200f,_0x16a3d8,_0x1e0d3e,_0x10fb16),_0x1e0d3e=this['layoutRowChildren'](_0x5d200f,_0x16a3d8,_0x1e0d3e,[_0x10fb16]);}else _0x1e0d3e=this['layoutRowChildren'](_0x5d200f,_0x16a3d8,_0x1e0d3e,_0x13b19e);return _0x5d200f[_0x434a42(0x1b6)]&&(_0x1e0d3e=this[_0x434a42(0x542)](_0x5d200f,_0x16a3d8,_0x1e0d3e,_0x13b19e)),_0x1e0d3e;}if(this['shouldWriteSubtotalAtBottom'](_0x5d200f)&&!_0x4db69f){let _0x1471f2=this[_0x434a42(0x51c)](_0x5d200f,_0x16a3d8,_0x113c37);return _0x1471f2=this[_0x434a42(0x34e)](_0x5d200f,_0x16a3d8,_0x1471f2,_0x13b19e),_0x5d200f[_0x434a42(0x1b6)]&&(_0x1471f2=this[_0x434a42(0x542)](_0x5d200f,_0x16a3d8,_0x1471f2,_0x13b19e)),_0x1471f2;}if(this[_0x434a42(0x274)](_0x5d200f['isRowMultiMeasure'],_0x16a3d8[_0x434a42(0x4f7)](),_0x5d200f[_0x434a42(0x537)])){let _0x5f27ed=_0x113c37;for(let _0x3e8b4c of _0x13b19e)_0x5f27ed=this[_0x434a42(0x4fa)](_0x5d200f,_0x16a3d8,_0x5f27ed,[_0x3e8b4c]),_0x4db69f||(_0x5f27ed=this[_0x434a42(0x34e)](_0x5d200f,_0x16a3d8,_0x5f27ed,[_0x3e8b4c]));return _0x5f27ed;}let _0x4d95b8=this[_0x434a42(0x4fa)](_0x5d200f,_0x16a3d8,_0x113c37,_0x13b19e);return _0x4db69f||(_0x4d95b8=this[_0x434a42(0x34e)](_0x5d200f,_0x16a3d8,_0x4d95b8,_0x13b19e)),_0x4d95b8;}return this['writeLeafRows'](_0x5d200f,_0x16a3d8,_0x113c37,_0x13b19e);}static[_0x2d7eb5(0x4d3)](_0x76f079){const _0x2c559b=_0x2d7eb5;return _0x76f079[_0x2c559b(0x30b)]===0x2;}static[_0x2d7eb5(0x39a)](_0x278b86,_0x17bc15){const _0x4cd1f3=_0x2d7eb5;return _0x278b86['isRowMultiMeasure']&&_0x278b86['valueIndex']>0x0&&_0x17bc15['getLevel']()<=_0x278b86[_0x4cd1f3(0x537)];}static[_0x2d7eb5(0x51c)](_0x146e56,_0x4953cc,_0x22f13f){const _0x2ead0a=_0x2d7eb5;let _0x5a22cf=this[_0x2ead0a(0x348)](_0x146e56,_0x4953cc[_0x2ead0a(0x4f7)]()),_0x23cfa0=this[_0x2ead0a(0x47e)](_0x4953cc),_0x24fbd2=_0x146e56['view'][_0x2ead0a(0x406)];return _0x24fbd2[_0x2ead0a(0x4cb)](_0x22f13f,_0x5a22cf,_0x23cfa0),this[_0x2ead0a(0x504)](_0x24fbd2,_0x22f13f,_0x5a22cf,_0x4953cc),_0x24fbd2[_0x2ead0a(0x1d6)](_0x22f13f,_0x5a22cf,0xc),_0x24fbd2['setInfo'](_0x22f13f,this[_0x2ead0a(0x292)](_0x4953cc,{'rowType':_0x2ead0a(0x444)})),_0x22f13f+0x1;}static[_0x2d7eb5(0x50f)](_0x4096e0,_0x4d1b42,_0x2fe06f,_0x27c9b0){const _0x275b10=_0x2d7eb5;let _0x5d12fb=this[_0x275b10(0x33d)](_0x4096e0,_0x4d1b42[_0x275b10(0x4f7)]()),_0x55d7db=_0x4096e0[_0x275b10(0x2b5)][_0x27c9b0],_0x3428ce=_0x4096e0['view'][_0x275b10(0x406)];return _0x3428ce['setValue'](_0x2fe06f,_0x5d12fb,_0x4096e0['measuresMap'][_0x27c9b0][_0x275b10(0x392)]),_0x3428ce['setInfo'](_0x2fe06f,this['createRowInfo'](_0x4d1b42,{'valueIndex':_0x55d7db,'isValue':!0x0,'dataFieldId':_0x4096e0[_0x275b10(0x3a9)][_0x27c9b0][_0x275b10(0x2e0)],'rowType':'value'})),_0x2fe06f+0x1;}static[_0x2d7eb5(0x1cf)](_0x500224,_0x39879f,_0xf4cad9){const _0x3fd312=_0x2d7eb5;let _0x976233=_0x500224[_0x3fd312(0x2b5)][_0xf4cad9],_0x2e130a=_0x500224[_0x3fd312(0x3a9)][_0xf4cad9],_0x4f54be=_0x500224[_0x3fd312(0x39f)][_0x3fd312(0x406)];return _0x4f54be['setValue'](_0x39879f,0x0,_0x2e130a[_0x3fd312(0x392)]),_0x4f54be[_0x3fd312(0x2bb)](_0x39879f,{'paths':[],'valueIndex':_0x976233,'level':-0x1,'tableFieldId':'','dataFieldId':_0x2e130a['dataFieldId'],'isValue':!0x0,'rowType':_0x3fd312(0x414)}),_0x39879f+0x1;}static[_0x2d7eb5(0x4fa)](_0x41de71,_0x576c00,_0x53caf9,_0x27ba1c){const _0x2bd7c4=_0x2d7eb5;if((_0x41de71['showRowSubtotal']||_0x576c00[_0x2bd7c4(0x373)]())&&_0x41de71[_0x2bd7c4(0x4bc)]&&_0x27ba1c[_0x2bd7c4(0x2a6)]>0x1&&this['shouldMultipleTotal'](_0x41de71[_0x2bd7c4(0x4bc)],_0x576c00[_0x2bd7c4(0x4f7)](),_0x41de71[_0x2bd7c4(0x537)])){let _0x32baf8=_0x53caf9;for(let _0x438662 of _0x27ba1c){let _0x1de7fe=_0x41de71[_0x2bd7c4(0x2b5)][_0x438662];this[_0x2bd7c4(0x3a1)](_0x41de71,_0x576c00,_0x32baf8,_0x1de7fe,_0x41de71['measuresMap'][_0x438662][_0x2bd7c4(0x392)]),_0x32baf8++;}return _0x32baf8;}let _0x1ca685=_0x41de71['isRowMultiMeasure']&&_0x27ba1c[_0x2bd7c4(0x2a6)]===0x1?_0x41de71[_0x2bd7c4(0x2b5)][_0x27ba1c[0x0]]:-0x1,_0x4a5462=_0x41de71[_0x2bd7c4(0x4bc)]&&_0x27ba1c[_0x2bd7c4(0x2a6)]===0x1&&_0x41de71[_0x2bd7c4(0x537)]>0x0&&_0x41de71[_0x2bd7c4(0x537)]<=_0x576c00[_0x2bd7c4(0x4f7)]()?_0x41de71[_0x2bd7c4(0x3a9)][_0x27ba1c[0x0]][_0x2bd7c4(0x392)]:void 0x0;return this['writeParentRow'](_0x41de71,_0x576c00,_0x53caf9,_0x1ca685,_0x4a5462),_0x53caf9+0x1;}static[_0x2d7eb5(0x3a1)](_0xe52f16,_0x4dad64,_0x3e1705,_0x53bb76,_0x3f021b){const _0xf94e27=_0x2d7eb5;let {showRowSubtotal:_0x393c57}=_0xe52f16,_0x59c6c4=_0x4dad64[_0xf94e27(0x373)](),_0x3678f2=_0x393c57||_0x59c6c4,_0x43dbe4=this[_0xf94e27(0x348)](_0xe52f16,_0x4dad64['getLevel']()),_0x32ad59=_0x3f021b?this[_0xf94e27(0x33d)](_0xe52f16,_0x4dad64['getLevel']()):_0x43dbe4,_0x32a7c6=this[_0xf94e27(0x47e)](_0x4dad64),_0x5cd178=_0xe52f16[_0xf94e27(0x39f)][_0xf94e27(0x406)];_0x5cd178['setValue'](_0x3e1705,_0x43dbe4,_0x32a7c6),this[_0xf94e27(0x504)](_0x5cd178,_0x3e1705,_0x43dbe4,_0x4dad64),_0x5cd178[_0xf94e27(0x1d6)](_0x3e1705,_0x43dbe4,_0x59c6c4?0xb:0xc),_0x3f021b&&_0x32ad59!==_0x43dbe4&&_0x5cd178['setValue'](_0x3e1705,_0x32ad59,_0x3f021b),_0x5cd178['setInfo'](_0x3e1705,this[_0xf94e27(0x292)](_0x4dad64,{'valueIndex':_0x53bb76,'isBottomTotal':_0x3678f2,'isSubtotal':_0x3678f2,'isTopTotal':_0x3678f2,'rowType':_0x3678f2?_0xf94e27(0x37e):_0xf94e27(0x444)})),_0x3678f2&&this['layoutValueNodeSubtotal'](_0xe52f16,_0x3e1705);}static['writeBottomSubtotalRows'](_0x675a2c,_0x20fdb3,_0x33c1a6,_0xf7c734){const _0x5d7ca1=_0x2d7eb5;let {isRowMultiMeasure:_0x43078f,measuresMap:_0x312ca6}=_0x675a2c;if(this['shouldMultipleTotal'](_0x43078f,_0x20fdb3[_0x5d7ca1(0x4f7)](),_0x675a2c[_0x5d7ca1(0x537)])){let _0x2d4c42=_0x33c1a6;for(let _0x97af89 of _0xf7c734){let _0x35ed6b=_0x675a2c[_0x5d7ca1(0x2b5)][_0x97af89];this[_0x5d7ca1(0x1a1)](_0x675a2c,_0x20fdb3,_0x2d4c42,_0x35ed6b,_0x312ca6[_0x97af89]['displayName']),_0x2d4c42++;}return _0x2d4c42;}return this[_0x5d7ca1(0x1a1)](_0x675a2c,_0x20fdb3,_0x33c1a6,_0x43078f?_0x675a2c[_0x5d7ca1(0x2b5)][_0xf7c734[0x0]]:-0x1),_0x33c1a6+0x1;}static['writeBottomSubtotalRow'](_0xb96e8b,_0x587ec2,_0x2f7801,_0x292807,_0x46ef19){const _0x1aebba=_0x2d7eb5;let _0x42189c=this[_0x1aebba(0x348)](_0xb96e8b,_0x587ec2[_0x1aebba(0x4f7)]()),_0xce9b29=this[_0x1aebba(0x47e)](_0x587ec2),_0x596e5b=_0xb96e8b[_0x1aebba(0x39f)][_0x1aebba(0x406)];_0x596e5b[_0x1aebba(0x4cb)](_0x2f7801,_0x42189c,_0x46ef19?{'prefix':String(_0xce9b29),'value':_0x46ef19}:_0xce9b29),this[_0x1aebba(0x504)](_0x596e5b,_0x2f7801,_0x42189c,_0x587ec2),_0x596e5b[_0x1aebba(0x1d6)](_0x2f7801,_0x42189c,0xd),_0x596e5b[_0x1aebba(0x2bb)](_0x2f7801,this[_0x1aebba(0x292)](_0x587ec2,{'valueIndex':_0x292807,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':'subtotal'})),this[_0x1aebba(0x2a7)](_0xb96e8b,_0x2f7801);}static['writeLeafRows'](_0x2dbe40,_0x574900,_0x4962bd,_0x520347){const _0x26cdc7=_0x2d7eb5;let {isRowMultiMeasure:_0x2caa18,valueIndex:_0x16e788,measureCount:_0x2af97b,measuresMap:_0x18bdf8,measureIndexesMap:_0x54f3d7}=_0x2dbe40;if(this[_0x26cdc7(0x274)](_0x2caa18,_0x574900[_0x26cdc7(0x4f7)](),_0x16e788)){if(this['shouldWriteLeafValuesUnderItem'](_0x2dbe40)){let _0x1b5481=this[_0x26cdc7(0x1c1)](_0x2dbe40,_0x574900,_0x4962bd);for(let _0xf0f8f4 of _0x520347){let _0x21d04b=_0x54f3d7[_0xf0f8f4];this['writeLeafValueRow'](_0x2dbe40,_0x574900,_0x1b5481,_0x21d04b,_0x18bdf8[_0xf0f8f4][_0x26cdc7(0x392)]),this['startContent'](_0x2dbe40,_0x574900,_0x1b5481,_0x21d04b),_0x1b5481++;}return _0x1b5481;}let _0x4709a1=_0x4962bd;for(let _0x4ee4d4 of _0x520347){let _0x40015f=_0x54f3d7[_0x4ee4d4],_0x4db002=this[_0x26cdc7(0x348)](_0x2dbe40,_0x574900[_0x26cdc7(0x4f7)]()),_0x49007c=this[_0x26cdc7(0x33d)](_0x2dbe40,_0x574900[_0x26cdc7(0x4f7)]()),_0x488869=this[_0x26cdc7(0x47e)](_0x574900),_0x510700=_0x2dbe40[_0x26cdc7(0x39f)][_0x26cdc7(0x406)];_0x510700[_0x26cdc7(0x4cb)](_0x4709a1,_0x4db002,_0x488869),this[_0x26cdc7(0x504)](_0x510700,_0x4709a1,_0x4db002,_0x574900),_0x49007c!==_0x4db002&&_0x510700[_0x26cdc7(0x4cb)](_0x4709a1,_0x49007c,_0x18bdf8[_0x4ee4d4]['displayName']),_0x510700[_0x26cdc7(0x2bb)](_0x4709a1,this[_0x26cdc7(0x292)](_0x574900,{'valueIndex':_0x40015f,'isLeaf':!0x0,'rowType':_0x26cdc7(0x444)})),this[_0x26cdc7(0x383)](_0x2dbe40,_0x574900,_0x4709a1,_0x40015f),_0x4709a1++;}return _0x4709a1;}let _0xcf3d95=_0x2caa18?_0x54f3d7[_0x520347[0x0]]:-0x1,_0xddbc92=this[_0x26cdc7(0x348)](_0x2dbe40,_0x574900[_0x26cdc7(0x4f7)]()),_0x50b6ee=this[_0x26cdc7(0x47e)](_0x574900),_0x290d17=_0x2dbe40['view'][_0x26cdc7(0x406)];return _0x290d17[_0x26cdc7(0x4cb)](_0x4962bd,_0xddbc92,_0x50b6ee),this[_0x26cdc7(0x504)](_0x290d17,_0x4962bd,_0xddbc92,_0x574900),_0x290d17[_0x26cdc7(0x2bb)](_0x4962bd,this[_0x26cdc7(0x292)](_0x574900,{'valueIndex':_0xcf3d95,'isLeaf':!0x0,'rowType':_0x26cdc7(0x444)})),_0x2af97b>0x0&&this[_0x26cdc7(0x383)](_0x2dbe40,_0x574900,_0x4962bd,_0xcf3d95),_0x4962bd+0x1;}static[_0x2d7eb5(0x22a)](_0x205f54){const _0x5cf19f=_0x2d7eb5;return _0x205f54[_0x5cf19f(0x4bc)]&&_0x205f54[_0x5cf19f(0x537)]>0x0;}static[_0x2d7eb5(0x1c1)](_0x467ce3,_0x28e3c1,_0x19dc3b){const _0x1746bf=_0x2d7eb5;let _0xb1f58e=this['getRowLabelCol'](_0x467ce3,_0x28e3c1[_0x1746bf(0x4f7)]()),_0x2bcafa=this[_0x1746bf(0x47e)](_0x28e3c1),_0xd7ece5=_0x467ce3[_0x1746bf(0x39f)]['rowView'];return _0xd7ece5[_0x1746bf(0x4cb)](_0x19dc3b,_0xb1f58e,_0x2bcafa),this[_0x1746bf(0x504)](_0xd7ece5,_0x19dc3b,_0xb1f58e,_0x28e3c1),_0xd7ece5[_0x1746bf(0x2bb)](_0x19dc3b,this[_0x1746bf(0x292)](_0x28e3c1,{'isLeaf':!0x0,'rowType':_0x1746bf(0x444)})),_0x19dc3b+0x1;}static[_0x2d7eb5(0x240)](_0x293a69,_0xb245cb,_0x2ad7bd,_0x2e78d2,_0x3d1eb6){const _0x56f54c=_0x2d7eb5;let _0x5b6537=this[_0x56f54c(0x33d)](_0x293a69,_0xb245cb['getLevel']()),_0x5c939b=_0x293a69[_0x56f54c(0x39f)][_0x56f54c(0x406)];_0x5c939b[_0x56f54c(0x4cb)](_0x2ad7bd,_0x5b6537,_0x3d1eb6),_0x5c939b[_0x56f54c(0x2bb)](_0x2ad7bd,this[_0x56f54c(0x292)](_0xb245cb,{'valueIndex':_0x2e78d2,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x56f54c(0x414)}));}static[_0x2d7eb5(0x492)](_0x54e365,_0x2957d5,_0x521244,_0x3e3fc9){const _0x554238=_0x2d7eb5;let {isRowMultiMeasure:_0x1d3f6e,measureCount:_0x22dedc,measuresMap:_0x2c50a4,measureIndexesMap:_0x581734}=_0x54e365,_0x262d97=_0x54e365[_0x554238(0x39f)][_0x554238(0x406)];if(this[_0x554238(0x4ca)](_0x1d3f6e,_0x2957d5[_0x554238(0x4f7)](),_0x54e365['valueIndex'])){let _0x7020f7=_0x521244;for(let _0x33dbd8 of _0x3e3fc9){let _0x143044=_0x581734[_0x33dbd8];_0x262d97[_0x554238(0x4cb)](_0x7020f7,0x0,_0x2c50a4[_0x33dbd8][_0x554238(0x392)]),_0x262d97[_0x554238(0x1d6)](_0x7020f7,0x0,0xf),_0x262d97[_0x554238(0x2bb)](_0x7020f7,this[_0x554238(0x3c9)](_0x2957d5,_0x143044)),this[_0x554238(0x422)](_0x54e365,_0x2957d5,_0x7020f7,_0x143044),_0x7020f7++;}return _0x7020f7;}if(_0x54e365['rowDeep']===0x0&&!_0x1d3f6e&&_0x22dedc>0x0)return _0x54e365[_0x554238(0x317)]!==0x0&&_0x262d97[_0x554238(0x4cb)](_0x521244,0x0,_0x54e365[_0x554238(0x50d)][0x0]['displayName']),_0x262d97[_0x554238(0x2bb)](_0x521244,this[_0x554238(0x3c9)](_0x2957d5,-0x1)),_0x54e365[_0x554238(0x317)]!==0x0&&_0x262d97['setInfo'](_0x521244,this[_0x554238(0x329)](_0x54e365,_0x262d97[_0x554238(0x40b)][_0x521244])),this['layoutGrandTotalValues'](_0x54e365,_0x2957d5,_0x521244,-0x1),_0x521244+0x1;if(_0x22dedc>0x0){let _0x477b36=_0x1d3f6e?_0x54e365['measureIndexesMap'][_0x3e3fc9[0x0]]:-0x1;return _0x262d97[_0x554238(0x4cb)](_0x521244,0x0,''),_0x262d97[_0x554238(0x1d6)](_0x521244,0x0,0xe),_0x262d97[_0x554238(0x2bb)](_0x521244,this[_0x554238(0x3c9)](_0x2957d5,_0x477b36)),this['layoutGrandTotalValues'](_0x54e365,_0x2957d5,_0x521244,_0x477b36),_0x521244+0x1;}return _0x54e365[_0x554238(0x4b6)]>0x0?(_0x262d97[_0x554238(0x4cb)](_0x521244,0x0,''),_0x262d97[_0x554238(0x1d6)](_0x521244,0x0,0xe),_0x262d97[_0x554238(0x2bb)](_0x521244,this[_0x554238(0x3c9)](_0x2957d5,-0x1)),_0x521244+0x1):_0x521244;}static['layoutGrandTotalValues'](_0x2ba3dd,_0x2d8786,_0x36d5c6,_0x1eb0c9){const _0x27b161=_0x2d7eb5;_0x2ba3dd[_0x27b161(0x4b6)]===0x0?this[_0x27b161(0x383)](_0x2ba3dd,_0x2d8786,_0x36d5c6,_0x1eb0c9):this[_0x27b161(0x2a7)](_0x2ba3dd,_0x36d5c6);}static[_0x2d7eb5(0x292)](_0x439d9c,_0x39ef8e){const _0x309cd5=_0x2d7eb5;return{'paths':_0x439d9c[_0x309cd5(0x3a3)](),'valueIndex':-0x1,'level':_0x439d9c[_0x309cd5(0x4f7)](),'tableFieldId':_0x439d9c[_0x309cd5(0x441)](),..._0x39ef8e};}static[_0x2d7eb5(0x3c9)](_0x509823,_0x4d1946){const _0x2db065=_0x2d7eb5;return{'paths':_0x509823[_0x2db065(0x3a3)](),'valueIndex':_0x4d1946,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x509823[_0x2db065(0x4f7)](),'tableFieldId':'','rowType':'grandTotal'};}static['getRowColCount'](_0x555a8c){const _0x4a6086=_0x2d7eb5;return _0x555a8c[_0x4a6086(0x4b6)]===0x0?_0x555a8c[_0x4a6086(0x4a0)]===0x0||_0x555a8c[_0x4a6086(0x451)]?0x0:_0x555a8c[_0x4a6086(0x4bc)]||_0x555a8c['colDeep']!==0x0?0x1:0x0:0x1;}static[_0x2d7eb5(0x348)](_0x345888,_0x183667){return 0x0;}static[_0x2d7eb5(0x33d)](_0xe83330,_0x38b15f){return 0x0;}static[_0x2d7eb5(0x47e)](_0x2202b4){const _0x27acae=_0x2d7eb5;return _0x2202b4[_0x27acae(0x43b)]===0x4||_0x2202b4['type']===0x2?Number(_0x2202b4[_0x27acae(0x392)]):_0x2202b4[_0x27acae(0x392)];}static[_0x2d7eb5(0x504)](_0x4288d7,_0x16c95e,_0x481174,_0x2c3259){const _0x1251a9=_0x2d7eb5;_0x2c3259['type']===0x5&&_0x4288d7[_0x1251a9(0x48b)](_0x16c95e,_0x481174),_0x2c3259['type']===0x6&&_0x4288d7['setOther'](_0x16c95e,_0x481174);}static[_0x2d7eb5(0x3d2)](_0x171ab6,_0x17442f,_0x365631){}static[_0x2d7eb5(0x486)](_0x2451e7){const _0x44503b=_0x2d7eb5;if(super['layoutColHeader'](_0x2451e7),_0x2451e7[_0x44503b(0x317)]===0x0)return;let _0x543054=_0x2451e7['view'][_0x44503b(0x4a6)],_0x14dd4d=_0x543054[_0x44503b(0x2de)](0x1);for(let _0x59f369=0x1;_0x59f369<=_0x543054[_0x44503b(0x1ce)]();_0x59f369++)_0x543054['setValue'](0x0,_0x59f369,'');_0x543054[_0x44503b(0x4cb)](0x0,0x0,_0x44503b(0x251)),_0x14dd4d&&_0x543054[_0x44503b(0x35f)](0x1,{..._0x14dd4d,'isColumnLabel':!0x0});}static[_0x2d7eb5(0x2dc)](_0x599c15){const _0x5d3d44=_0x2d7eb5;let {rowDeep:_0x5efb40,colDeep:_0x64c60,view:_0x267a97,measureCount:_0x20b38a}=_0x599c15,_0x4dcf3b=_0x599c15[_0x5d3d44(0x545)][_0x5d3d44(0x1ba)],_0x3a686a=_0x599c15[_0x5d3d44(0x545)][_0x5d3d44(0x50d)],_0x5bf923=_0x267a97[_0x5d3d44(0x462)],_0x4d311d=_0x267a97[_0x5d3d44(0x4a6)],_0x48a66f=_0x267a97['rowView'],_0x33d54e=_0x4d311d[_0x5d3d44(0x36d)]();_0x33d54e===0x0&&_0x5efb40!==0x0&&(_0x33d54e=0x1);let _0xe51825=_0x48a66f[_0x5d3d44(0x23e)]();if(_0x5bf923[_0x5d3d44(0x206)](_0x33d54e),_0x5bf923[_0x5d3d44(0x290)](_0xe51825),_0x5efb40===0x0&&_0x64c60===0x0&&_0x599c15[_0x5d3d44(0x4bc)]?_0x5bf923['setValue'](0x0,0x0,_0x5d3d44(0x535)):_0x5efb40===0x0&&_0x599c15[_0x5d3d44(0x4bc)]&&_0x5bf923[_0x5d3d44(0x4cb)](_0x33d54e-0x1,0x0,_0x5d3d44(0x535)),_0x20b38a===0x1&&_0x64c60>0x0&&_0x5efb40>0x0&&_0x5bf923[_0x5d3d44(0x4cb)](0x0,0x0,_0x3a686a[0x0]['displayName']),_0x5efb40===0x0)return;let _0x2177e7=_0x33d54e-0x1,{filterInfo:_0x4a0265,sortInfo:_0x206cd0,dataFieldId:_0x91d776,id:_0x24d6b5}=_0x4dcf3b[0x0];_0x5bf923[_0x5d3d44(0x4cb)](_0x2177e7,0x0,_0x5d3d44(0x3d0)),_0x5bf923['setStyle'](_0x2177e7,0x0,Ce(_0x4a0265,_0x206cd0,_0x599c15[_0x5d3d44(0x3d8)][_0x24d6b5])),_0x5bf923[_0x5d3d44(0x2bb)](0x0,{'paths':[],'level':0x0,'tableFieldId':_0x24d6b5,'dataFieldId':_0x91d776,'valueIndex':-0x1,'isRowLabel':!0x0}),_0x48a66f[_0x5d3d44(0x35f)](0x0,{'isValue':!0x1,'level':0x0,'tableFieldId':_0x24d6b5,'dataFieldId':_0x91d776});}},dt=class extends lt{static['layout'](_0xfc1f2f,_0x15e6b6,_0x1b35e4){const _0x5925fc=_0x2d7eb5;let _0x2f2e34=this[_0x5925fc(0x3e4)](_0xfc1f2f,_0x15e6b6,_0x1b35e4);return this['layoutPage'](_0x2f2e34),this['layoutCol'](_0x2f2e34),this[_0x5925fc(0x381)](_0x2f2e34),this['layoutHeadersWithoutColumnDimensions'](_0x2f2e34),this[_0x5925fc(0x359)](_0x2f2e34),this[_0x5925fc(0x2dc)](_0x2f2e34),_0x2f2e34[_0x5925fc(0x39f)];}static[_0x2d7eb5(0x381)](_0x55367e){const _0xaef95c=_0x2d7eb5;let {rowNodeTree:_0x181774,view:_0x370064,isRowMultiMeasure:_0x40e76b,valueQueryInfo:_0x335a8e,measureCount:_0x28aa4b,rowDeep:_0x5e28f7,showRowGrandTotal:_0x5540f4}=_0x55367e,_0x2306b5=_0x370064[_0xaef95c(0x406)],_0x44f6c2=_0x40e76b?_0x335a8e[_0xaef95c(0x39b)](_0x31d01b=>_0x31d01b['id']):[],_0x41bd3c=0x0;if(_0x5e28f7===0x0)_0x28aa4b>0x0&&(_0x41bd3c=this[_0xaef95c(0x492)](_0x55367e,_0x181774,_0x41bd3c,_0x44f6c2));else{if(this[_0xaef95c(0x2c2)](_0x55367e)){for(let _0x49f0ba of _0x44f6c2)_0x41bd3c=this[_0xaef95c(0x1cf)](_0x55367e,_0x41bd3c,_0x49f0ba),_0x41bd3c=this[_0xaef95c(0x34e)](_0x55367e,_0x181774,_0x41bd3c,[_0x49f0ba]);}else _0x41bd3c=this['layoutRowChildren'](_0x55367e,_0x181774,_0x41bd3c,_0x44f6c2);_0x5540f4&&(_0x28aa4b>0x0||_0x5e28f7>0x0)&&(_0x41bd3c=this[_0xaef95c(0x492)](_0x55367e,_0x181774,_0x41bd3c,_0x44f6c2));}_0x2306b5[_0xaef95c(0x206)](_0x41bd3c),_0x2306b5['setColCount'](this['getRowColCount'](_0x55367e));}static[_0x2d7eb5(0x2c2)](_0x545944){const _0x55125d=_0x2d7eb5;return _0x545944[_0x55125d(0x4bc)]&&_0x545944[_0x55125d(0x537)]===0x0;}static['layoutRowChildren'](_0x589fcf,_0x52e130,_0x270c55,_0x23cf14){let _0xd70166=_0x270c55;return _0x52e130['iterate'](_0x1bf5d6=>{_0xd70166=this['layoutRowNodeToCursor'](_0x589fcf,_0x1bf5d6,_0xd70166,_0x23cf14);}),_0xd70166;}static['layoutRowNode'](_0x3236e8,_0x3e34bd,_0xca905c,_0x5ea793){const _0x41799c=_0x2d7eb5;return{'itemSize':this[_0x41799c(0x35d)](_0x3236e8,_0x3e34bd,_0xca905c,_0x5ea793)-_0xca905c,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x2d7eb5(0x35d)](_0x5d1057,_0x1f5829,_0x513618,_0x40aa72){const _0x183608=_0x2d7eb5;let _0x3b84a1=this[_0x183608(0x49b)](_0x1f5829,_0x5d1057[_0x183608(0x4b6)]),_0x3ce861=_0x1f5829['getCollapse']();if(!_0x3b84a1){if(this[_0x183608(0x39a)](_0x5d1057,_0x1f5829)&&!_0x3ce861){let _0x38488e=this[_0x183608(0x51c)](_0x5d1057,_0x1f5829,_0x513618);if(this[_0x183608(0x274)](_0x5d1057[_0x183608(0x4bc)],_0x1f5829['getLevel'](),_0x5d1057[_0x183608(0x537)])){for(let _0xa3da2e of _0x40aa72)_0x38488e=this[_0x183608(0x50f)](_0x5d1057,_0x1f5829,_0x38488e,_0xa3da2e),_0x38488e=this[_0x183608(0x34e)](_0x5d1057,_0x1f5829,_0x38488e,[_0xa3da2e]);}else _0x38488e=this[_0x183608(0x34e)](_0x5d1057,_0x1f5829,_0x38488e,_0x40aa72);return _0x5d1057[_0x183608(0x1b6)]&&(_0x38488e=this[_0x183608(0x542)](_0x5d1057,_0x1f5829,_0x38488e,_0x40aa72)),_0x38488e;}if(this[_0x183608(0x4d3)](_0x5d1057)&&!_0x3ce861){let _0x549983=this['writeParentItemRow'](_0x5d1057,_0x1f5829,_0x513618);return _0x549983=this['layoutRowChildren'](_0x5d1057,_0x1f5829,_0x549983,_0x40aa72),_0x5d1057[_0x183608(0x1b6)]&&(_0x549983=this[_0x183608(0x542)](_0x5d1057,_0x1f5829,_0x549983,_0x40aa72)),_0x549983;}if(this['shouldMultipleNode'](_0x5d1057[_0x183608(0x4bc)],_0x1f5829[_0x183608(0x4f7)](),_0x5d1057[_0x183608(0x537)])){let _0x345ddd=_0x513618;for(let _0x19c860 of _0x40aa72)_0x345ddd=this[_0x183608(0x4fa)](_0x5d1057,_0x1f5829,_0x345ddd,[_0x19c860]),_0x3ce861||(_0x345ddd=this[_0x183608(0x34e)](_0x5d1057,_0x1f5829,_0x345ddd,[_0x19c860]));return _0x345ddd;}let _0x32f322=this['writeParentRows'](_0x5d1057,_0x1f5829,_0x513618,_0x40aa72);return _0x3ce861||(_0x32f322=this['layoutRowChildren'](_0x5d1057,_0x1f5829,_0x32f322,_0x40aa72)),_0x32f322;}return this[_0x183608(0x46c)](_0x5d1057,_0x1f5829,_0x513618,_0x40aa72);}static[_0x2d7eb5(0x4d3)](_0xcf7026){const _0x13000e=_0x2d7eb5;return _0xcf7026[_0x13000e(0x30b)]===0x2;}static[_0x2d7eb5(0x39a)](_0x9cf547,_0x32cf00){const _0xa0dde=_0x2d7eb5;return _0x9cf547[_0xa0dde(0x4bc)]&&_0x9cf547[_0xa0dde(0x537)]>0x0&&_0x32cf00[_0xa0dde(0x4f7)]()<=_0x9cf547['valueIndex'];}static['writeParentItemRow'](_0x149640,_0x251b8d,_0xd232fa){const _0x310398=_0x2d7eb5;let _0x255e83=this[_0x310398(0x348)](_0x149640,_0x251b8d[_0x310398(0x4f7)]()),_0x4db0f0=this[_0x310398(0x47e)](_0x251b8d),_0xc2eaa=_0x149640[_0x310398(0x39f)][_0x310398(0x406)];return _0xc2eaa[_0x310398(0x4cb)](_0xd232fa,_0x255e83,_0x4db0f0),this['applyNodeValueType'](_0xc2eaa,_0xd232fa,_0x255e83,_0x251b8d),this[_0x310398(0x3d2)](_0x149640,_0x251b8d,_0xd232fa),_0xc2eaa[_0x310398(0x1d6)](_0xd232fa,_0x255e83,0xc),_0xc2eaa['setInfo'](_0xd232fa,this[_0x310398(0x292)](_0x251b8d,{'rowType':_0x310398(0x444)})),_0xd232fa+0x1;}static[_0x2d7eb5(0x50f)](_0x3ebca1,_0x5c6e2a,_0x33c8f5,_0x2a0491){const _0x53c81b=_0x2d7eb5;let _0x56106b=this[_0x53c81b(0x33d)](_0x3ebca1,_0x5c6e2a[_0x53c81b(0x4f7)]()),_0x176eec=_0x3ebca1[_0x53c81b(0x2b5)][_0x2a0491],_0x4c4953=_0x3ebca1['view']['rowView'];return this['repeatRowLabelsForNode'](_0x3ebca1,_0x5c6e2a,_0x33c8f5),_0x4c4953[_0x53c81b(0x4cb)](_0x33c8f5,_0x56106b,_0x3ebca1['measuresMap'][_0x2a0491][_0x53c81b(0x392)]),_0x4c4953[_0x53c81b(0x2bb)](_0x33c8f5,this['createRowInfo'](_0x5c6e2a,{'valueIndex':_0x176eec,'isValue':!0x0,'dataFieldId':_0x3ebca1[_0x53c81b(0x3a9)][_0x2a0491]['dataFieldId'],'rowType':_0x53c81b(0x414)})),_0x33c8f5+0x1;}static[_0x2d7eb5(0x1cf)](_0x15f7e1,_0x3ae16e,_0x1e01d5){const _0x3fd0cf=_0x2d7eb5;let _0x34ff87=_0x15f7e1[_0x3fd0cf(0x2b5)][_0x1e01d5],_0x4f5d97=_0x15f7e1[_0x3fd0cf(0x3a9)][_0x1e01d5],_0x43317e=_0x15f7e1[_0x3fd0cf(0x39f)][_0x3fd0cf(0x406)];return _0x43317e['setValue'](_0x3ae16e,0x0,_0x4f5d97[_0x3fd0cf(0x392)]),_0x43317e[_0x3fd0cf(0x2bb)](_0x3ae16e,{'paths':[],'valueIndex':_0x34ff87,'level':-0x1,'tableFieldId':'','dataFieldId':_0x4f5d97['dataFieldId'],'isValue':!0x0,'rowType':_0x3fd0cf(0x414)}),_0x3ae16e+0x1;}static[_0x2d7eb5(0x4fa)](_0x1b3240,_0x39f7e4,_0x509b34,_0x2f5af6){const _0x4cfbf8=_0x2d7eb5;if((_0x1b3240[_0x4cfbf8(0x1b6)]||_0x39f7e4[_0x4cfbf8(0x373)]())&&_0x1b3240[_0x4cfbf8(0x4bc)]&&_0x2f5af6[_0x4cfbf8(0x2a6)]>0x1&&this['shouldMultipleTotal'](_0x1b3240[_0x4cfbf8(0x4bc)],_0x39f7e4[_0x4cfbf8(0x4f7)](),_0x1b3240[_0x4cfbf8(0x537)])){let _0x24ca5d=_0x509b34;for(let _0x58fe63 of _0x2f5af6){let _0x14125f=_0x1b3240[_0x4cfbf8(0x2b5)][_0x58fe63];this[_0x4cfbf8(0x3a1)](_0x1b3240,_0x39f7e4,_0x24ca5d,_0x14125f,_0x1b3240[_0x4cfbf8(0x3a9)][_0x58fe63][_0x4cfbf8(0x392)]),_0x24ca5d++;}return _0x24ca5d;}let _0x1e3c56=_0x1b3240['isRowMultiMeasure']&&_0x2f5af6[_0x4cfbf8(0x2a6)]===0x1?_0x1b3240[_0x4cfbf8(0x2b5)][_0x2f5af6[0x0]]:-0x1,_0x3b01e5=_0x1b3240[_0x4cfbf8(0x4bc)]&&_0x2f5af6['length']===0x1&&_0x1b3240[_0x4cfbf8(0x537)]>0x0&&_0x1b3240[_0x4cfbf8(0x537)]===_0x39f7e4['getLevel']()?_0x1b3240[_0x4cfbf8(0x3a9)][_0x2f5af6[0x0]]['displayName']:void 0x0;return this[_0x4cfbf8(0x3a1)](_0x1b3240,_0x39f7e4,_0x509b34,_0x1e3c56,_0x3b01e5),_0x509b34+0x1;}static[_0x2d7eb5(0x3a1)](_0x4c7a78,_0x393141,_0x308d52,_0x504a25,_0x1a484e){const _0x3bddb2=_0x2d7eb5;let {showRowSubtotal:_0xb5368c}=_0x4c7a78,_0x72dbc0=_0x393141[_0x3bddb2(0x373)](),_0x46b386=_0xb5368c||_0x72dbc0,_0x46d7a7=this['getRowLabelCol'](_0x4c7a78,_0x393141[_0x3bddb2(0x4f7)]()),_0x987470=_0x1a484e?this['getValueLabelCol'](_0x4c7a78,_0x393141[_0x3bddb2(0x4f7)]()):_0x46d7a7,_0x412bb0=this[_0x3bddb2(0x47e)](_0x393141),_0xd20960=_0x4c7a78[_0x3bddb2(0x39f)][_0x3bddb2(0x406)];_0xd20960['setValue'](_0x308d52,_0x46d7a7,_0x412bb0),this['applyNodeValueType'](_0xd20960,_0x308d52,_0x46d7a7,_0x393141),_0xd20960['setStyle'](_0x308d52,_0x46d7a7,_0x72dbc0?0xb:0xc),this[_0x3bddb2(0x3d2)](_0x4c7a78,_0x393141,_0x308d52),_0x1a484e&&_0xd20960[_0x3bddb2(0x4cb)](_0x308d52,_0x987470,_0x1a484e),_0xd20960[_0x3bddb2(0x2bb)](_0x308d52,this[_0x3bddb2(0x292)](_0x393141,{'valueIndex':_0x504a25,'isBottomTotal':_0x46b386,'isSubtotal':_0x46b386,'isTopTotal':_0x46b386,'rowType':_0x46b386?'subtotal':_0x3bddb2(0x444)})),_0x46b386&&this[_0x3bddb2(0x2a7)](_0x4c7a78,_0x308d52);}static[_0x2d7eb5(0x542)](_0x2a0553,_0x4277a6,_0x3ce4c9,_0x3c3306){const _0x548d50=_0x2d7eb5;let {isRowMultiMeasure:_0x5ed02d,measuresMap:_0x505223}=_0x2a0553;if(this[_0x548d50(0x4ca)](_0x5ed02d,_0x4277a6[_0x548d50(0x4f7)](),_0x2a0553[_0x548d50(0x537)])){let _0x326bfa=_0x3ce4c9;for(let _0x4c7164 of _0x3c3306){let _0x305dd2=_0x2a0553[_0x548d50(0x2b5)][_0x4c7164];this[_0x548d50(0x1a1)](_0x2a0553,_0x4277a6,_0x326bfa,_0x305dd2,_0x505223[_0x4c7164][_0x548d50(0x392)]),_0x326bfa++;}return _0x326bfa;}return this[_0x548d50(0x1a1)](_0x2a0553,_0x4277a6,_0x3ce4c9,_0x5ed02d?_0x2a0553[_0x548d50(0x2b5)][_0x3c3306[0x0]]:-0x1),_0x3ce4c9+0x1;}static[_0x2d7eb5(0x1a1)](_0x463c28,_0x1cba27,_0x3e9a51,_0x22da44,_0x2c8a7c){const _0xe0cf64=_0x2d7eb5;let _0x4c5252=this[_0xe0cf64(0x348)](_0x463c28,_0x1cba27['getLevel']()),_0x53d8e6=this['getNodeDisplayValue'](_0x1cba27),_0x1ca2f5=_0x463c28[_0xe0cf64(0x39f)]['rowView'];_0x1ca2f5[_0xe0cf64(0x4cb)](_0x3e9a51,_0x4c5252,_0x2c8a7c?{'prefix':String(_0x53d8e6),'value':_0x2c8a7c}:_0x53d8e6),this[_0xe0cf64(0x504)](_0x1ca2f5,_0x3e9a51,_0x4c5252,_0x1cba27),_0x1ca2f5['setStyle'](_0x3e9a51,_0x4c5252,0xd),this[_0xe0cf64(0x3d2)](_0x463c28,_0x1cba27,_0x3e9a51),_0x1ca2f5[_0xe0cf64(0x4cb)](_0x3e9a51,_0x4c5252,_0x2c8a7c?{'prefix':String(_0x53d8e6),'value':_0x2c8a7c}:_0x53d8e6),_0x1ca2f5['setInfo'](_0x3e9a51,this[_0xe0cf64(0x292)](_0x1cba27,{'valueIndex':_0x22da44,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0xe0cf64(0x37e)})),this[_0xe0cf64(0x2a7)](_0x463c28,_0x3e9a51);}static[_0x2d7eb5(0x46c)](_0x82e2f2,_0x4e4c8c,_0x4acccc,_0x13f49){const _0x270208=_0x2d7eb5;let {isRowMultiMeasure:_0x530527,valueIndex:_0x484ba2,measureCount:_0x5bf7e4,measuresMap:_0x51c5bb,measureIndexesMap:_0xf298d0}=_0x82e2f2;if(this['shouldMultipleNode'](_0x530527,_0x4e4c8c['getLevel'](),_0x484ba2)){if(this[_0x270208(0x22a)](_0x82e2f2)){let _0x5aa2e7=this[_0x270208(0x1c1)](_0x82e2f2,_0x4e4c8c,_0x4acccc);for(let _0x4b8e05 of _0x13f49){let _0xf2e100=_0xf298d0[_0x4b8e05];this['writeLeafValueRow'](_0x82e2f2,_0x4e4c8c,_0x5aa2e7,_0xf2e100,_0x51c5bb[_0x4b8e05]['displayName']),this['startContent'](_0x82e2f2,_0x4e4c8c,_0x5aa2e7,_0xf2e100),_0x5aa2e7++;}return _0x5aa2e7;}let _0x54659b=_0x4acccc;for(let _0x40ae77 of _0x13f49){let _0x1740e2=_0xf298d0[_0x40ae77],_0x66fe73=this['getRowLabelCol'](_0x82e2f2,_0x4e4c8c['getLevel']()),_0x35d6e7=this[_0x270208(0x33d)](_0x82e2f2,_0x4e4c8c[_0x270208(0x4f7)]()),_0x238848=this[_0x270208(0x47e)](_0x4e4c8c),_0x56448f=_0x82e2f2['view'][_0x270208(0x406)];_0x56448f['setValue'](_0x54659b,_0x66fe73,_0x238848),this[_0x270208(0x504)](_0x56448f,_0x54659b,_0x66fe73,_0x4e4c8c),this['repeatRowLabelsForNode'](_0x82e2f2,_0x4e4c8c,_0x54659b),_0x56448f[_0x270208(0x4cb)](_0x54659b,_0x35d6e7,_0x51c5bb[_0x40ae77]['displayName']),_0x56448f[_0x270208(0x2bb)](_0x54659b,this['createRowInfo'](_0x4e4c8c,{'valueIndex':_0x1740e2,'isLeaf':!0x0,'rowType':_0x270208(0x444)})),this[_0x270208(0x383)](_0x82e2f2,_0x4e4c8c,_0x54659b,_0x1740e2),_0x54659b++;}return _0x54659b;}let _0x4d4e14=_0x530527?_0xf298d0[_0x13f49[0x0]]:-0x1,_0x40ad97=this[_0x270208(0x348)](_0x82e2f2,_0x4e4c8c[_0x270208(0x4f7)]()),_0x2beb1b=this[_0x270208(0x47e)](_0x4e4c8c),_0x3d0219=_0x82e2f2['view']['rowView'];return _0x3d0219[_0x270208(0x4cb)](_0x4acccc,_0x40ad97,_0x2beb1b),this[_0x270208(0x504)](_0x3d0219,_0x4acccc,_0x40ad97,_0x4e4c8c),this[_0x270208(0x3d2)](_0x82e2f2,_0x4e4c8c,_0x4acccc),_0x3d0219['setInfo'](_0x4acccc,this[_0x270208(0x292)](_0x4e4c8c,{'valueIndex':_0x4d4e14,'isLeaf':!0x0,'rowType':_0x270208(0x444)})),_0x5bf7e4>0x0&&this[_0x270208(0x383)](_0x82e2f2,_0x4e4c8c,_0x4acccc,_0x4d4e14),_0x4acccc+0x1;}static[_0x2d7eb5(0x22a)](_0x8c2c3f){return _0x8c2c3f['isRowMultiMeasure']&&_0x8c2c3f['valueIndex']>0x0;}static[_0x2d7eb5(0x1c1)](_0x16193c,_0x34d594,_0x499232){const _0x26967c=_0x2d7eb5;let _0x14f6a1=this['getRowLabelCol'](_0x16193c,_0x34d594[_0x26967c(0x4f7)]()),_0x451512=this[_0x26967c(0x47e)](_0x34d594),_0x1a3505=_0x16193c[_0x26967c(0x39f)][_0x26967c(0x406)];return _0x1a3505[_0x26967c(0x4cb)](_0x499232,_0x14f6a1,_0x451512),this[_0x26967c(0x504)](_0x1a3505,_0x499232,_0x14f6a1,_0x34d594),this[_0x26967c(0x3d2)](_0x16193c,_0x34d594,_0x499232),_0x1a3505[_0x26967c(0x2bb)](_0x499232,this[_0x26967c(0x292)](_0x34d594,{'isLeaf':!0x0,'rowType':_0x26967c(0x444)})),_0x499232+0x1;}static[_0x2d7eb5(0x240)](_0x373db7,_0x2c4419,_0x55a655,_0x276bc4,_0x22ef36){const _0x3aab8a=_0x2d7eb5;let _0x179446=this[_0x3aab8a(0x33d)](_0x373db7,_0x2c4419[_0x3aab8a(0x4f7)]()),_0x51e04a=_0x373db7[_0x3aab8a(0x39f)][_0x3aab8a(0x406)];this[_0x3aab8a(0x3d2)](_0x373db7,_0x2c4419,_0x55a655),_0x51e04a['setValue'](_0x55a655,_0x179446,_0x22ef36),_0x51e04a[_0x3aab8a(0x2bb)](_0x55a655,this[_0x3aab8a(0x292)](_0x2c4419,{'valueIndex':_0x276bc4,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x3aab8a(0x414)}));}static['writeGrandTotalRows'](_0x36622c,_0x55dace,_0x3baa85,_0x2a8a12){const _0x5b2783=_0x2d7eb5;let {isRowMultiMeasure:_0x4927f4,measureCount:_0x1cebf1,measuresMap:_0x35fd9f,measureIndexesMap:_0x2884a1}=_0x36622c,_0x50a998=_0x36622c[_0x5b2783(0x39f)][_0x5b2783(0x406)];if(this[_0x5b2783(0x4ca)](_0x4927f4,_0x55dace[_0x5b2783(0x4f7)](),_0x36622c[_0x5b2783(0x537)])){let _0x110189=_0x3baa85;for(let _0x533cb4 of _0x2a8a12){let _0x32ecbe=_0x2884a1[_0x533cb4];_0x50a998[_0x5b2783(0x4cb)](_0x110189,0x0,_0x35fd9f[_0x533cb4][_0x5b2783(0x392)]),_0x50a998[_0x5b2783(0x1d6)](_0x110189,0x0,0xf),_0x50a998[_0x5b2783(0x2bb)](_0x110189,this[_0x5b2783(0x3c9)](_0x55dace,_0x32ecbe)),this[_0x5b2783(0x422)](_0x36622c,_0x55dace,_0x110189,_0x32ecbe),_0x110189++;}return _0x110189;}if(_0x36622c[_0x5b2783(0x4b6)]===0x0&&!_0x4927f4&&_0x1cebf1>0x0)return _0x36622c[_0x5b2783(0x317)]!==0x0&&_0x50a998[_0x5b2783(0x4cb)](_0x3baa85,0x0,_0x36622c['valueQueryInfo'][0x0][_0x5b2783(0x392)]),_0x50a998[_0x5b2783(0x2bb)](_0x3baa85,this[_0x5b2783(0x3c9)](_0x55dace,-0x1)),_0x36622c[_0x5b2783(0x317)]!==0x0&&_0x50a998[_0x5b2783(0x2bb)](_0x3baa85,this[_0x5b2783(0x329)](_0x36622c,_0x50a998[_0x5b2783(0x40b)][_0x3baa85])),this[_0x5b2783(0x422)](_0x36622c,_0x55dace,_0x3baa85,-0x1),_0x3baa85+0x1;if(_0x1cebf1>0x0){let _0x3e4107=_0x4927f4?_0x2884a1[_0x2a8a12[0x0]]:-0x1;return _0x50a998[_0x5b2783(0x4cb)](_0x3baa85,0x0,''),_0x50a998[_0x5b2783(0x1d6)](_0x3baa85,0x0,0xe),_0x50a998['setInfo'](_0x3baa85,this[_0x5b2783(0x3c9)](_0x55dace,_0x3e4107)),this['layoutGrandTotalValues'](_0x36622c,_0x55dace,_0x3baa85,_0x3e4107),_0x3baa85+0x1;}return _0x36622c[_0x5b2783(0x4b6)]>0x0?(_0x50a998[_0x5b2783(0x4cb)](_0x3baa85,0x0,''),_0x50a998[_0x5b2783(0x1d6)](_0x3baa85,0x0,0xe),_0x50a998[_0x5b2783(0x2bb)](_0x3baa85,this[_0x5b2783(0x3c9)](_0x55dace,-0x1)),_0x3baa85+0x1):_0x3baa85;}static['layoutGrandTotalValues'](_0x5486f4,_0x22e43b,_0x3d78bf,_0x13f102){const _0x5f01ce=_0x2d7eb5;_0x5486f4['rowDeep']===0x0?this[_0x5f01ce(0x383)](_0x5486f4,_0x22e43b,_0x3d78bf,_0x13f102):this[_0x5f01ce(0x2a7)](_0x5486f4,_0x3d78bf);}static[_0x2d7eb5(0x292)](_0x39c5e6,_0x2085d2){const _0x2e1903=_0x2d7eb5;return{'paths':_0x39c5e6[_0x2e1903(0x3a3)](),'valueIndex':-0x1,'level':_0x39c5e6[_0x2e1903(0x4f7)](),'tableFieldId':_0x39c5e6[_0x2e1903(0x441)](),..._0x2085d2};}static[_0x2d7eb5(0x3c9)](_0x42d621,_0x25aed0){const _0x3da50f=_0x2d7eb5;return{'paths':_0x42d621['getPaths'](),'valueIndex':_0x25aed0,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x42d621[_0x3da50f(0x4f7)](),'tableFieldId':'','rowType':_0x3da50f(0x2f5)};}static[_0x2d7eb5(0x2c5)](_0x5d5d48){const _0x46f0aa=_0x2d7eb5;let {rowDeep:_0x26fe06,isRowMultiMeasure:_0x32bfd5}=_0x5d5d48;return _0x26fe06===0x0?_0x5d5d48['measureCount']===0x0||_0x5d5d48[_0x46f0aa(0x451)]?0x0:_0x32bfd5||_0x5d5d48[_0x46f0aa(0x317)]!==0x0?0x1:0x0:_0x32bfd5?_0x26fe06+0x1:_0x26fe06;}static[_0x2d7eb5(0x348)](_0x13df75,_0x25d3f2){const _0x31733b=_0x2d7eb5;return this[_0x31733b(0x509)](_0x25d3f2,_0x13df75[_0x31733b(0x537)],_0x13df75[_0x31733b(0x4bc)]);}static[_0x2d7eb5(0x33d)](_0x118894,_0x18642){const _0x47e4a6=_0x2d7eb5;return this[_0x47e4a6(0x509)](_0x18642,_0x118894['valueIndex'],_0x118894[_0x47e4a6(0x4bc)])+0x1;}static[_0x2d7eb5(0x47e)](_0x2794b0){return _0x2794b0['type']===0x4||_0x2794b0['type']===0x2?Number(_0x2794b0['displayName']):_0x2794b0['displayName'];}static[_0x2d7eb5(0x504)](_0x302045,_0x3d9970,_0x19c991,_0x2fd6d3){const _0x483737=_0x2d7eb5;_0x2fd6d3[_0x483737(0x43b)]===0x5&&_0x302045[_0x483737(0x48b)](_0x3d9970,_0x19c991),_0x2fd6d3['type']===0x6&&_0x302045[_0x483737(0x2b4)](_0x3d9970,_0x19c991);}},ft=class{constructor(_0x428563,_0x2a1613,_0x376277){const _0x3bd46d=_0x2d7eb5;M(this,_0x3bd46d(0x3cb),void 0x0),M(this,_0x3bd46d(0x53a),void 0x0),M(this,_0x3bd46d(0x2c1),void 0x0),M(this,'paths',void 0x0),M(this,'isLeaf',void 0x0),M(this,'name',void 0x0),M(this,_0x3bd46d(0x392),void 0x0),M(this,_0x3bd46d(0x301),[]),M(this,_0x3bd46d(0x420),void 0x0),M(this,'collapse',void 0x0),M(this,'sortedList',[]),M(this,_0x3bd46d(0x1d1),!0x1),M(this,_0x3bd46d(0x43b),void 0x0),M(this,'_nodes',{}),this[_0x3bd46d(0x3cb)]=_0x428563,this[_0x3bd46d(0x420)]=_0x2a1613,this[_0x3bd46d(0x43b)]=_0x376277;}[_0x2d7eb5(0x373)](){const _0x52113f=_0x2d7eb5;return this[_0x52113f(0x27b)];}[_0x2d7eb5(0x280)](_0x48ed6c){this['collapse']=_0x48ed6c;}[_0x2d7eb5(0x441)](){const _0x3958b0=_0x2d7eb5;return this[_0x3958b0(0x420)];}[_0x2d7eb5(0x28e)](_0xa45c0a){const _0x450d73=_0x2d7eb5;if(this[_0x450d73(0x1d1)])for(let _0x1f95e8 of this['sortedList']){let _0xe5ba50=this[_0x450d73(0x4f1)][_0x1f95e8];_0xa45c0a(_0xe5ba50);}else{let _0x49e870=Object[_0x450d73(0x4d1)](this['_nodes']);for(let _0x209694=0x0;_0x209694<_0x49e870[_0x450d73(0x2a6)];_0x209694++){let _0x463c7a=this[_0x450d73(0x4f1)][_0x49e870[_0x209694]];_0xa45c0a(_0x463c7a);}}}[_0x2d7eb5(0x4d6)](){const _0x35cd16=_0x2d7eb5;return this[_0x35cd16(0x3cb)];}[_0x2d7eb5(0x2d0)](_0x2ac03a){const _0x3b172d=_0x2d7eb5;return this[_0x3b172d(0x4f1)][_0x2ac03a]!==void 0x0;}[_0x2d7eb5(0x3da)](_0x57242e){this['parentIndex']=_0x57242e;}[_0x2d7eb5(0x239)](_0xd79499){this['_level']=_0xd79499;}[_0x2d7eb5(0x4f7)](){const _0x265891=_0x2d7eb5;return this[_0x265891(0x53a)];}[_0x2d7eb5(0x1bb)](_0x563372){const _0x4916b1=_0x2d7eb5;this[_0x4916b1(0x472)]=_0x563372;}[_0x2d7eb5(0x3a3)](){const _0x442fed=_0x2d7eb5;return this[_0x442fed(0x472)];}[_0x2d7eb5(0x1da)](){this['isLeaf']=!0x0;}[_0x2d7eb5(0x2ad)](){const _0x5073cf=_0x2d7eb5;return!!this[_0x5073cf(0x1d5)];}[_0x2d7eb5(0x316)](_0x282d81){const _0x4f83f3=_0x2d7eb5;this[_0x4f83f3(0x43d)]=_0x282d81;}[_0x2d7eb5(0x3f7)](_0x1da565,_0x1651a4,_0x73c954,_0x1db6a2,_0x2b6448=_0x1651a4){const _0x48e19d=_0x2d7eb5;this[_0x48e19d(0x4f1)][_0x1651a4]=_0x1da565,_0x1da565[_0x48e19d(0x316)](_0x1651a4),_0x1da565[_0x48e19d(0x392)]=_0x2b6448,_0x1da565['displayPaths']=this[_0x48e19d(0x301)][_0x48e19d(0x4f6)](_0x2b6448),_0x1da565[_0x48e19d(0x3da)](this[_0x48e19d(0x3cb)]),_0x1da565[_0x48e19d(0x239)](this['_level']+0x1),_0x1da565[_0x48e19d(0x1bb)](this[_0x48e19d(0x472)]['concat'](_0x1651a4)),_0x73c954&&(this['sortNode'](_0x1651a4,_0x73c954,_0x1db6a2),this[_0x48e19d(0x1d1)]=!0x0);}[_0x2d7eb5(0x408)](_0x3136ce,_0x3e7e01,_0x161774){const _0x47ab87=_0x2d7eb5;let _0x4a4ccb=_0x3e7e01[_0x3136ce],_0x16901f=this[_0x47ab87(0x1c8)],_0x4d5308=0x0,_0x432f0e=_0x16901f['length'],_0x262117=_0x161774!==0x2;for(;_0x4d5308<_0x432f0e;){let _0x399153=Math['floor']((_0x4d5308+_0x432f0e)/0x2);(_0x262117?_0x3e7e01[_0x16901f[_0x399153]]-_0x4a4ccb:_0x4a4ccb-_0x3e7e01[_0x16901f[_0x399153]])<0x0?_0x4d5308=_0x399153+0x1:_0x432f0e=_0x399153;}_0x16901f[_0x47ab87(0x1ed)](_0x4d5308,0x0,_0x3136ce);}['sortChildrenByValue'](_0xf20fcd,_0x3eec58,_0x16139f,_0x4bcc35){const _0x5a5ef4=_0x2d7eb5;let _0x5055f3=Object[_0x5a5ef4(0x2d4)](this[_0x5a5ef4(0x4f1)]);_0x5055f3[_0x5a5ef4(0x312)](_0x554ebc=>_0x554ebc[_0x5a5ef4(0x420)]===_0xf20fcd)&&(this[_0x5a5ef4(0x1c8)]=_0x5055f3[_0x5a5ef4(0x39b)]((_0x2cc95b,_0x563059)=>({'node':_0x2cc95b,'index':_0x563059}))['sort']((_0xe4dd29,_0x3dd71d)=>{const _0x3bff40=_0x5a5ef4;let _0x40ec9a=_0x16139f(_0xe4dd29[_0x3bff40(0x3e5)][_0x3bff40(0x3cb)]),_0x4d6f27=_0x16139f(_0x3dd71d['node'][_0x3bff40(0x3cb)]);return _0x40ec9a===_0x4d6f27?_0x4bcc35(_0xe4dd29[_0x3bff40(0x3e5)][_0x3bff40(0x392)],_0x3dd71d[_0x3bff40(0x3e5)][_0x3bff40(0x392)])||_0xe4dd29['index']-_0x3dd71d[_0x3bff40(0x51d)]:_0x40ec9a===void 0x0?0x1:_0x4d6f27===void 0x0?-0x1:_0x3eec58===0x2?_0x4d6f27-_0x40ec9a:_0x40ec9a-_0x4d6f27;})[_0x5a5ef4(0x39b)](({node:_0x41cfe3})=>_0x41cfe3[_0x5a5ef4(0x43d)]),this[_0x5a5ef4(0x1d1)]=!0x0);for(let _0x30ecbb of _0x5055f3)_0x30ecbb[_0x5a5ef4(0x423)](_0xf20fcd,_0x3eec58,_0x16139f,_0x4bcc35);}[_0x2d7eb5(0x19f)](){const _0x55d868=_0x2d7eb5;this[_0x55d868(0x1c8)]=[],this[_0x55d868(0x1d1)]=!0x1,Object[_0x55d868(0x2d4)](this['_nodes'])[_0x55d868(0x4ea)](_0xe269cf=>_0xe269cf[_0x55d868(0x19f)]());}['sortChildrenByLabel'](_0x423b7f,_0xcaf9a4,_0x2fe35e){const _0x395b14=_0x2d7eb5;let _0x2ee9d5=Object[_0x395b14(0x2d4)](this[_0x395b14(0x4f1)]);_0x2ee9d5[_0x395b14(0x312)](_0x42465f=>_0x42465f[_0x395b14(0x420)]===_0x423b7f)&&(this[_0x395b14(0x1c8)]=_0x2ee9d5[_0x395b14(0x39b)]((_0x1b5936,_0x5f589)=>({'node':_0x1b5936,'index':_0x5f589}))[_0x395b14(0x1f5)]((_0x2f62f2,_0x29132c)=>{const _0x993b39=_0x395b14;let _0x5f1940=_0x2fe35e[_0x2f62f2[_0x993b39(0x3e5)]['name']],_0x26d820=_0x2fe35e[_0x29132c[_0x993b39(0x3e5)]['name']];return _0x5f1940===_0x26d820?_0x2f62f2['index']-_0x29132c['index']:_0x5f1940===void 0x0?0x1:_0x26d820===void 0x0?-0x1:_0xcaf9a4===0x2?_0x26d820-_0x5f1940:_0x5f1940-_0x26d820;})[_0x395b14(0x39b)](({node:_0x2c8c61})=>_0x2c8c61[_0x395b14(0x43d)]),this[_0x395b14(0x1d1)]=!0x0),_0x2ee9d5[_0x395b14(0x4ea)](_0x19bf39=>_0x19bf39[_0x395b14(0x2fc)](_0x423b7f,_0xcaf9a4,_0x2fe35e));}[_0x2d7eb5(0x3ed)](_0x41dc9a){const _0x4cf03b=_0x2d7eb5;return this[_0x4cf03b(0x4f1)][_0x41dc9a];}};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(_0x237b35){const _0x5e6f95=_0x2d7eb5;return typeof _0x237b35==_0x5e6f95(0x4c3);}var gt=class{constructor(_0x2ac527,_0x3bd227){const _0xbd9bed=_0x2d7eb5;this['_summaryManager']=_0x2ac527,this['_queryData']=_0x3bd227,M(this,'_fieldIndexById',{}),M(this,_0xbd9bed(0x1cc),[]),M(this,_0xbd9bed(0x3d3),[]),M(this,'_columnFieldIndexes',[]),M(this,_0xbd9bed(0x302),void 0x0),M(this,_0xbd9bed(0x28b),[]),M(this,_0xbd9bed(0x45f),new Map()),M(this,_0xbd9bed(0x4be),new Int32Array()),M(this,_0xbd9bed(0x443),void 0x0),M(this,_0xbd9bed(0x4a3),void 0x0),M(this,_0xbd9bed(0x3cf),-0x1),M(this,'_parentRowTotalIndexes',void 0x0),M(this,'_parentColumnTotalIndexes',void 0x0),M(this,'_parentFieldIndexes',new Map()),M(this,'_parentFieldIndexByValueField',{}),M(this,_0xbd9bed(0x458),{}),M(this,_0xbd9bed(0x459),{}),M(this,'_derivedValuesByValueField',{});let _0x28eed9=[..._0x3bd227[_0xbd9bed(0x1ba)],..._0x3bd227[_0xbd9bed(0x533)]];this[_0xbd9bed(0x302)]=_0x28eed9[_0xbd9bed(0x2a6)];for(let _0x33d6fe=0x0;_0x33d6fe<_0x28eed9[_0xbd9bed(0x2a6)];_0x33d6fe++){let _0x270724=_0x28eed9[_0x33d6fe];this[_0xbd9bed(0x1a6)][_0x270724['id']]=_0x33d6fe,this[_0xbd9bed(0x1cc)][_0x33d6fe]=_0x2ac527[_0xbd9bed(0x21b)][_0x270724[_0xbd9bed(0x2e0)]]['field']['getTupleItemsMap'](),_0x33d6fe<_0x3bd227[_0xbd9bed(0x1ba)]['length']?this['_rowFieldIndexes']['push'](_0x33d6fe):this[_0xbd9bed(0x350)][_0xbd9bed(0x466)](_0x33d6fe);}}[_0x2d7eb5(0x2f4)](){const _0x26f66e=_0x2d7eb5;this[_0x26f66e(0x243)]();let _0x1b8ca2=new Set(this[_0x26f66e(0x1e1)][_0x26f66e(0x50d)][_0x26f66e(0x39b)](_0x304789=>{const _0x4c6cb6=_0x26f66e;var _0x21776d;return(_0x21776d=_0x304789[_0x4c6cb6(0x35e)])==null?void 0x0:_0x21776d[_0x4c6cb6(0x43b)];}));this[_0x26f66e(0x33b)](_0x1b8ca2),this[_0x26f66e(0x1e3)](_0x1b8ca2),this['_preparePeerIndexes'](),this[_0x26f66e(0x33a)]();let _0x3261f1=new Int32Array(this[_0x26f66e(0x302)]);_0x3261f1[_0x26f66e(0x543)](-0x1),this[_0x26f66e(0x3cf)]=this[_0x26f66e(0x45f)]['get'](this[_0x26f66e(0x41e)](_0x3261f1))??-0x1;}[_0x2d7eb5(0x337)](_0x1bd02b,_0x531721){const _0xcb45e9=_0x2d7eb5;var _0x355696;let _0x1517f7=this[_0xcb45e9(0x525)](_0x1bd02b,_0x531721),_0x1aa06f=((_0x355696=_0x531721['showDataAs'])==null?void 0x0:_0x355696['type'])??0x1;if(this[_0xcb45e9(0x48f)](_0x1aa06f))return this[_0xcb45e9(0x2b7)](_0x1aa06f,_0x1517f7,_0x1bd02b,_0x531721);if(this[_0xcb45e9(0x4ff)](_0x1aa06f))return this['_getPeerValue'](_0x1aa06f,_0x1517f7,_0x1bd02b,_0x531721);if(this[_0xcb45e9(0x23c)](_0x1aa06f)){let _0x47cbc6=this['_derivedValuesByValueField'][_0x531721['id']];return this[_0xcb45e9(0x250)](_0x47cbc6,_0x1bd02b);}switch(_0x1aa06f){case 0x4:return this[_0xcb45e9(0x2ab)](_0x1517f7,this[_0xcb45e9(0x525)](this[_0xcb45e9(0x3cf)],_0x531721));case 0x3:return this[_0xcb45e9(0x2ab)](_0x1517f7,this[_0xcb45e9(0x1b8)](this[_0xcb45e9(0x443)],_0x1bd02b,_0x531721));case 0x2:return this['_divide'](_0x1517f7,this[_0xcb45e9(0x1b8)](this[_0xcb45e9(0x4a3)],_0x1bd02b,_0x531721));case 0x8:return this[_0xcb45e9(0x346)](_0x1517f7,_0x1bd02b,_0x531721);default:return _0x1517f7;}}[_0x2d7eb5(0x38e)](){const _0x925df0=_0x2d7eb5;for(let _0x2307f1 of Object[_0x925df0(0x4d1)](this[_0x925df0(0x459)]))this[_0x925df0(0x459)][_0x2307f1][_0x925df0(0x34d)](),delete this[_0x925df0(0x459)][_0x2307f1];this[_0x925df0(0x28b)]['length']=0x0,this['_tupleByCoordinate'][_0x925df0(0x34d)](),this[_0x925df0(0x4be)]=new Int32Array(),this[_0x925df0(0x443)]=void 0x0,this['_columnTotalIndexes']=void 0x0,this[_0x925df0(0x31c)]=void 0x0,this[_0x925df0(0x506)]=void 0x0,this['_parentFieldIndexes'][_0x925df0(0x34d)]();for(let _0x19a1e1 of Object['keys'](this['_parentFieldIndexByValueField']))delete this[_0x925df0(0x3cd)][_0x19a1e1];for(let _0x3b24bf of Object[_0x925df0(0x4d1)](this[_0x925df0(0x458)]))delete this['_peerIndexesByValueField'][_0x3b24bf];for(let _0x4ce255 of Object[_0x925df0(0x4d1)](this[_0x925df0(0x313)]))delete this[_0x925df0(0x313)][_0x4ce255];this['_grandTotalIndex']=-0x1;}[_0x2d7eb5(0x33b)](_0x4be415){const _0x303e58=_0x2d7eb5;let _0x3f8ff9=_0x4be415['has'](0x3)||_0x4be415[_0x303e58(0x345)](0x8),_0x179367=_0x4be415[_0x303e58(0x345)](0x2)||_0x4be415[_0x303e58(0x345)](0x8);_0x3f8ff9&&(this[_0x303e58(0x443)]=this[_0x303e58(0x3d1)](this[_0x303e58(0x350)])),_0x179367&&(this[_0x303e58(0x4a3)]=this[_0x303e58(0x3d1)](this[_0x303e58(0x3d3)]));}['_prepareParentIndexes'](_0x3ce9ae){const _0x51f2af=_0x2d7eb5;_0x3ce9ae[_0x51f2af(0x345)](0x6)&&(this['_parentRowTotalIndexes']=this[_0x51f2af(0x541)](this[_0x51f2af(0x3d3)])),_0x3ce9ae[_0x51f2af(0x345)](0x5)&&(this[_0x51f2af(0x506)]=this[_0x51f2af(0x541)](this[_0x51f2af(0x350)]));for(let _0x7f73b2 of this[_0x51f2af(0x1e1)][_0x51f2af(0x50d)]){var _0x312f3e,_0x35809d;if(((_0x312f3e=_0x7f73b2[_0x51f2af(0x35e)])==null?void 0x0:_0x312f3e[_0x51f2af(0x43b)])!==0xe&&((_0x35809d=_0x7f73b2[_0x51f2af(0x35e)])==null?void 0x0:_0x35809d[_0x51f2af(0x43b)])!==0x7)continue;let _0xcc20d6=this['_getFieldIndex'](_0x7f73b2['showDataAs'][_0x51f2af(0x4cd)]);if(_0xcc20d6<0x0||(this['_parentFieldIndexByValueField'][_0x7f73b2['id']]=_0xcc20d6,this[_0x51f2af(0x482)][_0x51f2af(0x345)](_0xcc20d6)))continue;let _0x469b66=_0xcc20d6<this['_rowFieldIndexes'][_0x51f2af(0x2a6)]?this[_0x51f2af(0x3d3)]:this['_columnFieldIndexes'];this[_0x51f2af(0x482)][_0x51f2af(0x526)](_0xcc20d6,this[_0x51f2af(0x541)](_0x469b66,_0xcc20d6));}}[_0x2d7eb5(0x3e9)](){const _0x3f6366=_0x2d7eb5;let _0x1781f6=new Map();for(let _0x197ffd of this[_0x3f6366(0x1e1)][_0x3f6366(0x50d)]){let _0x3d0875=_0x197ffd[_0x3f6366(0x35e)];if(!_0x3d0875||!this['_isPeerType'](_0x3d0875[_0x3f6366(0x43b)]))continue;let _0x5ac0c7=this[_0x3f6366(0x428)](_0x3d0875[_0x3f6366(0x4cd)]);if(_0x5ac0c7<0x0)continue;let _0x6e6e60=_0x3d0875['baseItemType']??0x1,_0x2d1a36=[...this[_0x3f6366(0x1e1)][_0x3f6366(0x1ba)],...this['_queryData'][_0x3f6366(0x533)]][_0x5ac0c7],_0x2d2b65=this[_0x3f6366(0x524)]['dimensionMap'][_0x2d1a36[_0x3f6366(0x2e0)]][_0x3f6366(0x4c7)][_0x3f6366(0x361)](_0x3d0875[_0x3f6366(0x45b)]);if(_0x6e6e60===0x1&&_0x2d2b65['length']>0x1){let _0x3b4bd5=new Map();for(let _0x3f0b25=0x0;_0x3f0b25<this['_coordinates']['length'];_0x3f0b25++){let _0x21315d=this[_0x3f6366(0x28b)][_0x3f0b25];if(!_0x21315d||_0x21315d[_0x5ac0c7]<0x0)continue;let _0x38221e=new N(),_0x1d5620=0x0,_0x1b6338=!0x1;for(let _0x45b3cd of _0x2d2b65){let _0x5c62aa=_0x21315d['slice']();_0x5c62aa[_0x5ac0c7]=this[_0x3f6366(0x1cc)][_0x5ac0c7][_0x45b3cd];let _0x3f496b=this[_0x3f6366(0x45f)]['get'](this[_0x3f6366(0x41e)](_0x5c62aa));_0x3f496b!==void 0x0&&(_0x38221e[_0x3f6366(0x4a7)](this[_0x3f6366(0x524)][_0x3f6366(0x29a)][_0x3f496b][_0x3f6366(0x228)][_0x197ffd[_0x3f6366(0x2e0)]][_0x3f6366(0x258)]()),_0x1b6338||=_0x3f496b===this[_0x3f6366(0x30d)](_0x3f0b25),_0x1d5620++);}_0x1d5620&&_0x3b4bd5[_0x3f6366(0x526)](_0x3f0b25,{'tuple':_0x38221e,'includesCurrent':_0x1b6338});}this[_0x3f6366(0x459)][_0x197ffd['id']]=_0x3b4bd5;continue;}let _0x35ce9d=_0x5ac0c7+':'+_0x6e6e60+':'+_0x3d0875[_0x3f6366(0x45b)],_0x31baf2=_0x1781f6[_0x3f6366(0x4d0)](_0x35ce9d);_0x31baf2||(_0x31baf2=this[_0x3f6366(0x26e)](_0x5ac0c7,_0x3d0875['baseItem'],_0x6e6e60),_0x1781f6[_0x3f6366(0x526)](_0x35ce9d,_0x31baf2)),this[_0x3f6366(0x458)][_0x197ffd['id']]=_0x31baf2;}}['_prepareDerivedBuffers'](){const _0x27aceb=_0x2d7eb5;for(let _0x1560a7 of this[_0x27aceb(0x1e1)][_0x27aceb(0x50d)]){let _0x231d35=_0x1560a7[_0x27aceb(0x35e)];if(!_0x231d35)continue;let _0x3feda3=this['_getFieldIndex'](_0x231d35[_0x27aceb(0x4cd)]);_0x3feda3<0x0||(_0x231d35[_0x27aceb(0x43b)]===0xb||_0x231d35[_0x27aceb(0x43b)]===0xc?this[_0x27aceb(0x313)][_0x1560a7['id']]=this[_0x27aceb(0x2a3)](_0x1560a7,_0x3feda3,_0x231d35[_0x27aceb(0x43b)]===0xc):(_0x231d35[_0x27aceb(0x43b)]===0xf||_0x231d35[_0x27aceb(0x43b)]===0x10)&&(this[_0x27aceb(0x313)][_0x1560a7['id']]=this[_0x27aceb(0x266)](_0x1560a7,_0x3feda3,_0x231d35['type']===0xf)));}}[_0x2d7eb5(0x243)](){const _0x28503f=_0x2d7eb5;let _0x593a29=this[_0x28503f(0x524)][_0x28503f(0x29a)][_0x28503f(0x2a6)];this[_0x28503f(0x4be)]=new Int32Array(_0x593a29),this[_0x28503f(0x4be)][_0x28503f(0x543)](-0x1);for(let [_0x161529,_0x2c69bc]of Object['entries'](this['_summaryManager'][_0x28503f(0x1d0)])){let _0x1bf491=new Int32Array(this[_0x28503f(0x302)]);_0x1bf491[_0x28503f(0x543)](-0x1),this[_0x28503f(0x471)](_0x161529,_0x1bf491);let _0x1257bb=this[_0x28503f(0x41e)](_0x1bf491),_0x30d750=this[_0x28503f(0x45f)][_0x28503f(0x4d0)](_0x1257bb);this['_coordinates'][_0x2c69bc]=_0x1bf491,_0x30d750===void 0x0?(this[_0x28503f(0x45f)][_0x28503f(0x526)](_0x1257bb,_0x2c69bc),this[_0x28503f(0x4be)][_0x2c69bc]=_0x2c69bc):this[_0x28503f(0x4be)][_0x2c69bc]=_0x30d750;}}[_0x2d7eb5(0x471)](_0x536152,_0x2484a2){const _0x311068=_0x2d7eb5;let _0x3602fd=_0x536152['split'](t[_0x311068(0x365)]);for(let _0x3d721f of _0x3602fd){let _0x540aa2=_0x3d721f[_0x311068(0x222)](t[_0x311068(0x42c)]);for(let _0x22711f=0x0;_0x22711f<_0x540aa2[_0x311068(0x2a6)]-0x1;_0x22711f++){let _0x50abfe=this[_0x311068(0x1a6)][_0x540aa2[_0x22711f]];if(_0x50abfe===void 0x0)continue;let _0x2d2a06=this[_0x311068(0x1cc)][_0x50abfe][_0x540aa2[_0x22711f+0x1]];_0x2d2a06!==void 0x0&&(_0x2484a2[_0x50abfe]=_0x2d2a06),_0x22711f++;}}}[_0x2d7eb5(0x3d1)](_0x1b7124){const _0xf442cd=_0x2d7eb5;let _0x305957=new Int32Array(this[_0xf442cd(0x524)][_0xf442cd(0x29a)][_0xf442cd(0x2a6)]);_0x305957['fill'](-0x1);for(let _0x297baf=0x0;_0x297baf<this[_0xf442cd(0x28b)][_0xf442cd(0x2a6)];_0x297baf++){let _0x2eb85f=this[_0xf442cd(0x28b)][_0x297baf];if(!_0x2eb85f)continue;let _0x4a079b=_0x2eb85f[_0xf442cd(0x30f)]();for(let _0x39d2b1 of _0x1b7124)_0x4a079b[_0x39d2b1]=-0x1;_0x305957[_0x297baf]=this[_0xf442cd(0x45f)][_0xf442cd(0x4d0)](this[_0xf442cd(0x41e)](_0x4a079b))??-0x1;}return _0x305957;}['_buildParentIndexes'](_0x36ba33,_0x42f806){const _0x112f4a=_0x2d7eb5;let _0xdf0e3a=new Int32Array(this[_0x112f4a(0x524)]['tuples'][_0x112f4a(0x2a6)]);_0xdf0e3a['fill'](-0x1);let _0x2e976b=_0x42f806===void 0x0?-0x1:_0x36ba33[_0x112f4a(0x3fa)](_0x42f806);for(let _0x15bd89=0x0;_0x15bd89<this[_0x112f4a(0x28b)][_0x112f4a(0x2a6)];_0x15bd89++){let _0x5e3df2=this['_coordinates'][_0x15bd89];if(!_0x5e3df2)continue;if(_0x42f806!==void 0x0){if(_0x2e976b<0x0||_0x5e3df2[_0x42f806]<0x0)continue;let _0x2fc4c6=_0x5e3df2[_0x112f4a(0x30f)]();for(let _0x5001a0=_0x2e976b+0x1;_0x5001a0<_0x36ba33[_0x112f4a(0x2a6)];_0x5001a0++)_0x2fc4c6[_0x36ba33[_0x5001a0]]=-0x1;_0xdf0e3a[_0x15bd89]=this[_0x112f4a(0x45f)][_0x112f4a(0x4d0)](this[_0x112f4a(0x41e)](_0x2fc4c6))??-0x1;continue;}let _0x3a62a2=-0x1;if(_0x42f806===void 0x0){for(let _0x424b3a=_0x36ba33[_0x112f4a(0x2a6)]-0x1;_0x424b3a>=0x0;_0x424b3a--)if(_0x5e3df2[_0x36ba33[_0x424b3a]]>=0x0){_0x3a62a2=_0x424b3a;break;}}if(_0x3a62a2<0x0){_0xdf0e3a[_0x15bd89]=this[_0x112f4a(0x4be)][_0x15bd89];continue;}let _0x344f12=_0x5e3df2[_0x112f4a(0x30f)]();for(let _0x335676=_0x3a62a2;_0x335676<_0x36ba33[_0x112f4a(0x2a6)];_0x335676++)_0x344f12[_0x36ba33[_0x335676]]=-0x1;_0xdf0e3a[_0x15bd89]=this[_0x112f4a(0x45f)][_0x112f4a(0x4d0)](this[_0x112f4a(0x41e)](_0x344f12))??-0x1;}return _0xdf0e3a;}['_getFieldIndex'](_0x137d8f){const _0x4882e1=_0x2d7eb5;let _0x13d455=this[_0x4882e1(0x1a6)][_0x137d8f];return _0x13d455===void 0x0?[...this[_0x4882e1(0x1e1)][_0x4882e1(0x1ba)],...this[_0x4882e1(0x1e1)][_0x4882e1(0x533)]][_0x4882e1(0x4c6)](_0x1961b3=>_0x1961b3[_0x4882e1(0x2e0)]===_0x137d8f):_0x13d455;}[_0x2d7eb5(0x48f)](_0x50c996){return _0x50c996===0x6||_0x50c996===0x5||_0x50c996===0x7||_0x50c996===0xe;}[_0x2d7eb5(0x4ff)](_0x50face){return _0x50face===0x9||_0x50face===0xa||_0x50face===0xd;}['_isDerivedType'](_0xe43071){return _0xe43071===0xb||_0xe43071===0xc||_0xe43071===0xf||_0xe43071===0x10;}[_0x2d7eb5(0x2b7)](_0x29f837,_0x3d1bef,_0x3b2552,_0x122d5b){const _0x4fc28d=_0x2d7eb5;if(_0x29f837===0x6)return this[_0x4fc28d(0x499)](_0x3d1bef,this['_getIndexedRawValue'](this['_parentRowTotalIndexes'],_0x3b2552,_0x122d5b));if(_0x29f837===0x5)return this[_0x4fc28d(0x499)](_0x3d1bef,this['_getIndexedRawValue'](this[_0x4fc28d(0x506)],_0x3b2552,_0x122d5b));let _0x5c8d86=this[_0x4fc28d(0x3cd)][_0x122d5b['id']];return this[_0x4fc28d(0x499)](_0x3d1bef,this['_getIndexedRawValue'](this[_0x4fc28d(0x482)][_0x4fc28d(0x4d0)](_0x5c8d86),_0x3b2552,_0x122d5b));}['_getPeerValue'](_0x590fc6,_0x2d0b9a,_0x375306,_0x194d6c){const _0x492402=_0x2d7eb5;var _0x44e9e8;let _0x8a9ccf=(_0x44e9e8=this[_0x492402(0x459)][_0x194d6c['id']])==null?void 0x0:_0x44e9e8['get'](this['_getCanonicalTupleIndex'](_0x375306));if(_0x8a9ccf){let _0x481f5f=_0x8a9ccf['tuple']['getSubtotal'](_0x194d6c[_0x492402(0x37e)]);return _0x590fc6===0xd?this[_0x492402(0x2ab)](_0x2d0b9a,_0x481f5f):_0x8a9ccf[_0x492402(0x224)]?void 0x0:_0x590fc6===0x9?this['_difference'](_0x2d0b9a,_0x481f5f):this['_percentDifference'](_0x2d0b9a,_0x481f5f);}let _0x20d77e=this[_0x492402(0x2f0)](this[_0x492402(0x458)][_0x194d6c['id']],_0x375306);if(_0x590fc6===0xd)return this[_0x492402(0x2ab)](_0x2d0b9a,this[_0x492402(0x525)](_0x20d77e,_0x194d6c));if(_0x20d77e<0x0||_0x20d77e===this['_getCanonicalTupleIndex'](_0x375306))return;let _0x4a6bbd=this[_0x492402(0x525)](_0x20d77e,_0x194d6c);return _0x590fc6===0x9?this[_0x492402(0x3ea)](_0x2d0b9a,_0x4a6bbd):this[_0x492402(0x325)](_0x2d0b9a,_0x4a6bbd);}[_0x2d7eb5(0x26e)](_0x597299,_0x341c8d,_0x2b2c27){const _0x547675=_0x2d7eb5;let _0x2bf470=new Int32Array(this[_0x547675(0x524)][_0x547675(0x29a)]['length']);_0x2bf470[_0x547675(0x543)](-0x1);let _0x59ff54=_0x597299<this[_0x547675(0x3d3)]['length']?this['_rowFieldIndexes']:this[_0x547675(0x350)],_0x406d09=_0x59ff54['indexOf'](_0x597299),_0x11456f=_0x2b2c27===0x1?void 0x0:this[_0x547675(0x24b)](_0x597299,_0x59ff54,_0x406d09),_0x5ad65f=[...this[_0x547675(0x1e1)][_0x547675(0x1ba)],...this[_0x547675(0x1e1)]['colQueryInfo']][_0x597299],_0x4e5af9=this[_0x547675(0x524)][_0x547675(0x21b)][_0x5ad65f[_0x547675(0x2e0)]][_0x547675(0x4c7)][_0x547675(0x361)](_0x341c8d)[0x0],_0x5a65eb=this[_0x547675(0x1cc)][_0x597299][_0x4e5af9];for(let _0x5207f4=0x0;_0x5207f4<this['_coordinates'][_0x547675(0x2a6)];_0x5207f4++){let _0x59d794=this[_0x547675(0x28b)][_0x5207f4];if(!_0x59d794||_0x59d794[_0x597299]<0x0)continue;let _0x4df2a=_0x5a65eb;if(_0x11456f){let _0x5f08fd=this['_getParentGroupKey'](_0x59d794,_0x59ff54,_0x406d09),_0x37334c=_0x11456f[_0x547675(0x4d0)](_0x5f08fd),_0x2da59e=_0x37334c==null?void 0x0:_0x37334c[_0x547675(0x1a9)][_0x547675(0x4d0)](_0x59d794[_0x597299]);if(_0x37334c&&_0x2da59e!==void 0x0){let _0x8b3919=_0x2b2c27===0x2?-0x1:0x1;_0x4df2a=_0x37334c['items'][_0x2da59e+_0x8b3919];}else _0x4df2a=void 0x0;}if(_0x4df2a===void 0x0)continue;let _0x5b7a94=_0x59d794[_0x547675(0x30f)]();_0x5b7a94[_0x597299]=_0x4df2a,_0x2bf470[_0x5207f4]=this[_0x547675(0x45f)]['get'](this[_0x547675(0x41e)](_0x5b7a94))??-0x1;}return _0x2bf470;}[_0x2d7eb5(0x24b)](_0x5d97c4,_0x1cf351,_0x53791d){const _0x1f247b=_0x2d7eb5;let _0x8e7c8=new Map(),_0x3a7eed=_0x5d97c4<this[_0x1f247b(0x3d3)]['length']?this['_summaryManager'][_0x1f247b(0x41d)]:this[_0x1f247b(0x524)][_0x1f247b(0x53f)],_0x17f3af=_0x575ac=>{const _0x47673f=_0x1f247b;if(_0x575ac[_0x47673f(0x4f7)]()===_0x53791d){let _0x5b0a56=[],_0x5f55fa=new Map();_0x575ac[_0x47673f(0x28e)](_0x404788=>{const _0x3eb46d=_0x47673f;let _0xd09b14=this[_0x3eb46d(0x1cc)][_0x5d97c4][_0x404788['name']];_0xd09b14!==void 0x0&&(_0x5f55fa[_0x3eb46d(0x526)](_0xd09b14,_0x5b0a56[_0x3eb46d(0x2a6)]),_0x5b0a56[_0x3eb46d(0x466)](_0xd09b14));}),_0x8e7c8['set'](this['_getParentNodeKey'](_0x575ac,_0x1cf351,_0x53791d),{'items':_0x5b0a56,'positions':_0x5f55fa});}else _0x575ac[_0x47673f(0x28e)](_0x17f3af);};return _0x17f3af(_0x3a7eed),_0x8e7c8;}['_getParentNodeKey'](_0x3ed1fd,_0x50397b,_0x125aca){const _0x500d6e=_0x2d7eb5;let _0x27b219=_0x3ed1fd[_0x500d6e(0x3a3)](),_0x4ccda4=[];for(let _0x2db8e3=0x0;_0x2db8e3<_0x125aca;_0x2db8e3++)_0x4ccda4[_0x500d6e(0x466)](this[_0x500d6e(0x1cc)][_0x50397b[_0x2db8e3]][_0x27b219[_0x2db8e3]]);return _0x4ccda4['join'](',');}[_0x2d7eb5(0x2d8)](_0x2ed2c8,_0x394e21,_0xf7ea0a){const _0xec3a05=_0x2d7eb5;let _0x24683d=[];for(let _0x262be8=0x0;_0x262be8<_0xf7ea0a;_0x262be8++)_0x24683d[_0xec3a05(0x466)](_0x2ed2c8[_0x394e21[_0x262be8]]);return _0x24683d['join'](',');}[_0x2d7eb5(0x432)](_0x22f410){const _0x43fb6b=_0x2d7eb5;let _0x1fd5e8=_0x22f410<this[_0x43fb6b(0x3d3)][_0x43fb6b(0x2a6)]?this[_0x43fb6b(0x3d3)]:this[_0x43fb6b(0x350)],_0x55d51d=_0x1fd5e8[_0x43fb6b(0x3fa)](_0x22f410),_0x4cea54=this[_0x43fb6b(0x24b)](_0x22f410,_0x1fd5e8,_0x55d51d),_0x1a4021=new Map();for(let _0x57a900 of this[_0x43fb6b(0x45f)][_0x43fb6b(0x2d4)]()){var _0x59e747;let _0x14c006=this['_coordinates'][_0x57a900];if(!_0x14c006||_0x14c006[_0x22f410]<0x0)continue;let _0x6b763f=this[_0x43fb6b(0x2d8)](_0x14c006,_0x1fd5e8,_0x55d51d),_0x29a63d=(_0x59e747=_0x4cea54['get'](_0x6b763f))==null?void 0x0:_0x59e747[_0x43fb6b(0x1a9)][_0x43fb6b(0x4d0)](_0x14c006[_0x22f410]);if(_0x29a63d===void 0x0)continue;let _0x1bab00=this['_getCoordinateKeyWithoutField'](_0x14c006,_0x22f410),_0x26a48a=_0x1a4021['get'](_0x1bab00);_0x26a48a||(_0x26a48a=[],_0x1a4021[_0x43fb6b(0x526)](_0x1bab00,_0x26a48a)),_0x26a48a[_0x29a63d]=_0x57a900;}return Array[_0x43fb6b(0x321)](_0x1a4021[_0x43fb6b(0x2d4)]());}[_0x2d7eb5(0x2eb)](_0x5104f5,_0x55b640){const _0x7b8314=_0x2d7eb5;let _0x28dad3=[];for(let _0x1ca650=0x0;_0x1ca650<_0x5104f5[_0x7b8314(0x2a6)];_0x1ca650++)_0x1ca650!==_0x55b640&&_0x28dad3[_0x7b8314(0x466)](_0x5104f5[_0x1ca650]);return _0x28dad3[_0x7b8314(0x1f2)](',');}['_buildRunningTotalBuffer'](_0x3a1295,_0x48836e,_0x26c124){const _0x3f3921=_0x2d7eb5;let _0x544433=this[_0x3f3921(0x3c6)]();for(let _0x32f877 of this[_0x3f3921(0x432)](_0x48836e)){let _0x2cc4c7=0x0;if(_0x26c124)for(let _0x2410ce of _0x32f877){let _0x1740e0=this[_0x3f3921(0x525)](_0x2410ce,_0x3a1295);typeof _0x1740e0=='number'&&(_0x2cc4c7+=_0x1740e0);}let _0x137070=0x0;for(let _0x2980dd of _0x32f877){let _0x4de18f=this[_0x3f3921(0x525)](_0x2980dd,_0x3a1295);_0x4de18f!==void 0x0&&(J(_0x4de18f)?this[_0x3f3921(0x49a)](_0x544433,_0x2980dd,_0x4de18f['errorType']):(_0x137070+=_0x4de18f,_0x26c124&&_0x2cc4c7===0x0?this['_setDerivedError'](_0x544433,_0x2980dd,0x1):this['_setDerivedNumber'](_0x544433,_0x2980dd,_0x26c124?_0x137070/_0x2cc4c7:_0x137070)));}}return _0x544433;}[_0x2d7eb5(0x266)](_0x5d6309,_0x1b0576,_0x313d40){const _0x809c8a=_0x2d7eb5;let _0x44917a=this['_createDerivedBuffer'](),_0x531471=[];for(let _0x18aab7 of this[_0x809c8a(0x432)](_0x1b0576)){_0x531471['length']=0x0;for(let _0x597725 of _0x18aab7){let _0x5b3d02=this[_0x809c8a(0x525)](_0x597725,_0x5d6309);typeof _0x5b3d02==_0x809c8a(0x2c9)?_0x531471[_0x809c8a(0x466)]({'tupleIndex':_0x597725,'value':_0x5b3d02}):J(_0x5b3d02)&&this['_setDerivedError'](_0x44917a,_0x597725,_0x5b3d02[_0x809c8a(0x4a9)]);}_0x531471[_0x809c8a(0x1f5)]((_0x304827,_0x16c920)=>_0x313d40?_0x304827[_0x809c8a(0x414)]-_0x16c920[_0x809c8a(0x414)]:_0x16c920[_0x809c8a(0x414)]-_0x304827[_0x809c8a(0x414)]);let _0xdcf4d1=0x0,_0x63f242;for(let _0x42cc63=0x0;_0x42cc63<_0x531471[_0x809c8a(0x2a6)];_0x42cc63++){let _0x345af2=_0x531471[_0x42cc63];(_0x63f242===void 0x0||_0x345af2[_0x809c8a(0x414)]!==_0x63f242)&&(_0xdcf4d1=_0x42cc63+0x1,_0x63f242=_0x345af2['value']),this[_0x809c8a(0x37b)](_0x44917a,_0x345af2[_0x809c8a(0x44e)],_0xdcf4d1);}}return _0x44917a;}[_0x2d7eb5(0x3c6)](){const _0x4e44eb=_0x2d7eb5;return{'values':new Float64Array(this[_0x4e44eb(0x524)]['tuples'][_0x4e44eb(0x2a6)]),'states':new Uint8Array(this[_0x4e44eb(0x524)][_0x4e44eb(0x29a)][_0x4e44eb(0x2a6)])};}[_0x2d7eb5(0x37b)](_0x47b37f,_0x46771e,_0x4e49d0){const _0x552d1d=_0x2d7eb5;_0x47b37f[_0x552d1d(0x2d4)][_0x46771e]=_0x4e49d0,_0x47b37f[_0x552d1d(0x36a)][_0x46771e]=0x1;}[_0x2d7eb5(0x49a)](_0x43b965,_0x30eec5,_0x5e2b93){const _0x579fdf=_0x2d7eb5;_0x43b965[_0x579fdf(0x36a)][_0x30eec5]=_0x5e2b93+0x1;}[_0x2d7eb5(0x250)](_0x34e443,_0x26352c){if(!_0x34e443)return;let _0x599eb3=this['_canonicalTupleIndexes'][_0x26352c],_0x3bd7d4=_0x599eb3<0x0?_0x26352c:_0x599eb3,_0x1db924=_0x34e443['states'][_0x3bd7d4];if(_0x1db924===0x1)return _0x34e443['values'][_0x3bd7d4];if(_0x1db924>0x1){let _0x4ea3bd=_0x1db924-0x1;return pt[_0x4ea3bd];}}[_0x2d7eb5(0x41e)](_0xf51d38){const _0x3defb6=_0x2d7eb5;return _0xf51d38[_0x3defb6(0x1f2)](',');}['_getRawValue'](_0x4a5fe5,_0x1f9b9f){const _0x1fe1bb=_0x2d7eb5;var _0xf46322;if(_0x4a5fe5<0x0)return;let _0x3525b8=this[_0x1fe1bb(0x524)][_0x1fe1bb(0x29a)][_0x4a5fe5];return _0x3525b8==null||(_0xf46322=_0x3525b8[_0x1fe1bb(0x399)])==null||(_0xf46322=_0xf46322[_0x1f9b9f['dataFieldId']])==null?void 0x0:_0xf46322[_0x1f9b9f[_0x1fe1bb(0x37e)]];}[_0x2d7eb5(0x1b8)](_0x30f575,_0x1cab85,_0x2f1553){const _0x25c6b9=_0x2d7eb5;return this[_0x25c6b9(0x525)](this[_0x25c6b9(0x2f0)](_0x30f575,_0x1cab85),_0x2f1553);}['_getIndexedTupleIndex'](_0x29a7a5,_0x3f0646){const _0x57d272=_0x2d7eb5;return(_0x29a7a5==null?void 0x0:_0x29a7a5[this[_0x57d272(0x30d)](_0x3f0646)])??-0x1;}[_0x2d7eb5(0x30d)](_0x1f0fcb){const _0x187f74=_0x2d7eb5;let _0x34bb40=this[_0x187f74(0x4be)][_0x1f0fcb];return _0x34bb40<0x0?_0x1f0fcb:_0x34bb40;}[_0x2d7eb5(0x2ab)](_0x43a5d2,_0x11f628){if(_0x43a5d2!==void 0x0){if(J(_0x43a5d2))return _0x43a5d2;if(_0x11f628!==void 0x0)return J(_0x11f628)?_0x11f628:_0x11f628===0x0?mt:_0x43a5d2/_0x11f628;}}[_0x2d7eb5(0x3ea)](_0xe2087,_0x9cf0ac){if(_0xe2087!==void 0x0){if(J(_0xe2087))return _0xe2087;if(_0x9cf0ac!==void 0x0)return J(_0x9cf0ac)?_0x9cf0ac:_0xe2087-_0x9cf0ac;}}[_0x2d7eb5(0x499)](_0x5e1bc8,_0x415328){if(_0x5e1bc8!==0x0||_0x415328!==0x0)return this['_divide'](_0x5e1bc8,_0x415328);}[_0x2d7eb5(0x325)](_0x3172ba,_0x2e626e){if(_0x3172ba!==void 0x0){if(J(_0x3172ba))return _0x3172ba;if(_0x2e626e!==void 0x0)return J(_0x2e626e)?_0x2e626e:_0x2e626e===0x0?mt:(_0x3172ba-_0x2e626e)/_0x2e626e;}}[_0x2d7eb5(0x346)](_0x1df71c,_0x18a3d3,_0x205d79){const _0x5a4308=_0x2d7eb5;if(_0x1df71c===void 0x0||J(_0x1df71c))return _0x1df71c;let _0x1af1c7=this[_0x5a4308(0x1b8)](this[_0x5a4308(0x443)],_0x18a3d3,_0x205d79),_0x164c2b=this[_0x5a4308(0x1b8)](this[_0x5a4308(0x4a3)],_0x18a3d3,_0x205d79),_0x440c1a=this[_0x5a4308(0x525)](this[_0x5a4308(0x3cf)],_0x205d79);return _0x1af1c7===void 0x0||_0x164c2b===void 0x0||_0x440c1a===void 0x0?ht:J(_0x1af1c7)?_0x1af1c7:J(_0x164c2b)?_0x164c2b:J(_0x440c1a)?_0x440c1a:_0x1af1c7===0x0||_0x164c2b===0x0?mt:_0x1df71c*_0x440c1a/(_0x1af1c7*_0x164c2b);}};function _t(_0x32d9e5,_0x499ce9,_0x290c9f,_0x1ab8f7){const _0x5217e4=_0x2d7eb5;if(_0x32d9e5[_0x5217e4(0x403)]!==0xf&&_0x32d9e5['operator']!==0x2c)return ae(_0x32d9e5);let _0x589610=_0x499ce9['map'](({v:_0x382536})=>{const _0x3bf828=_0x5217e4;var _0x2fc75c;return(_0x2fc75c=_0x290c9f[_0x382536])==null?void 0x0:_0x2fc75c[_0x3bf828(0x228)][_0x3bf828(0x2fb)](_0x1ab8f7);})[_0x5217e4(0x455)](_0x132bc4=>typeof _0x132bc4==_0x5217e4(0x2c9)&&Number['isFinite'](_0x132bc4)),_0xce50d1=_0x32d9e5['operator']===0x2c?Math[_0x5217e4(0x2ea)](_0x589610[_0x5217e4(0x2a6)]*Number(_0x32d9e5[_0x5217e4(0x2a0)])/0x64):Math['ceil'](Number(_0x32d9e5['expected'])),_0x1eac48=ie(_0x589610,Math[_0x5217e4(0x4e2)](_0x589610[_0x5217e4(0x2a6)],Math[_0x5217e4(0x4bd)](0x0,_0xce50d1)),!!_0x32d9e5['isBottom']);return _0x37b0e4=>_0x1eac48!==void 0x0&&(_0x32d9e5[_0x5217e4(0x46f)]?_0x37b0e4<=_0x1eac48:_0x37b0e4>=_0x1eac48);}var vt=class{constructor(_0x410526,_0x2b193a,_0x72207d){const _0x16bdea=_0x2d7eb5;M(this,'counter',void 0x0),M(this,_0x16bdea(0x3bd),void 0x0),M(this,_0x16bdea(0x435),void 0x0),M(this,_0x16bdea(0x2a4),void 0x0),M(this,_0x16bdea(0x1f3),void 0x0),M(this,_0x16bdea(0x4b6),void 0x0),M(this,_0x16bdea(0x317),void 0x0),M(this,_0x16bdea(0x4a0),void 0x0),M(this,'leafCount',void 0x0),M(this,_0x16bdea(0x3a9),{}),M(this,_0x16bdea(0x29a),[]),M(this,_0x16bdea(0x1d0),{}),M(this,_0x16bdea(0x4a4),[]),M(this,'dimensionTableIdList',[]),M(this,_0x16bdea(0x3b5),[]),M(this,'_rowLevelPool',{}),M(this,_0x16bdea(0x532),{}),M(this,_0x16bdea(0x41d),void 0x0),M(this,_0x16bdea(0x53f),void 0x0),M(this,_0x16bdea(0x21b),{}),M(this,_0x16bdea(0x51f),{}),M(this,_0x16bdea(0x3e8),void 0x0),M(this,_0x16bdea(0x4bf),{}),M(this,_0x16bdea(0x415),{}),M(this,_0x16bdea(0x513),[]),M(this,_0x16bdea(0x310),{}),M(this,'_showDataAsResolver',void 0x0),M(this,_0x16bdea(0x2df),void 0x0),M(this,_0x16bdea(0x1f8),new Map()),this['tuples']=_0x2b193a[_0x16bdea(0x29a)][_0x16bdea(0x4f6)]();let _0xd97f6a=_0x410526[_0x16bdea(0x1ba)],_0x37a104=_0x410526[_0x16bdea(0x533)],{tuples:_0x3ff3d6,dimensionMap:_0x4eb07d,dimensionTableIdList:_0x176f82,tupleMap:_0x4537a4,dimensionIdList:_0x29aacb,measuresMap:_0xbe09cd,measureIdList:_0x208f03}=_0x2b193a,_0xfaa752=_0xd97f6a[_0x16bdea(0x2a6)],_0x4fdaa3=_0x37a104[_0x16bdea(0x2a6)];this[_0x16bdea(0x362)]=_0x176f82,this[_0x16bdea(0x43a)]=_0x3ff3d6[_0x16bdea(0x2a6)],this[_0x16bdea(0x4db)]=_0x3ff3d6[_0x16bdea(0x2a6)],this[_0x16bdea(0x3e8)]=_0x410526[_0x16bdea(0x3e8)],this['tupleMap']={..._0x4537a4},this[_0x16bdea(0x3a9)]={..._0xbe09cd},this[_0x16bdea(0x3b5)]=_0x208f03,this[_0x16bdea(0x4a4)]=_0x29aacb,this['dimensionMap']=_0x4eb07d,this['valueFilterInfo']=_0x410526[_0x16bdea(0x513)],this[_0x16bdea(0x2df)]=_0x72207d;let _0x1b6aa2=_0x410526[_0x16bdea(0x50d)];for(let _0x2eb71e of _0x1b6aa2){let _0x58bcdb=_0x2eb71e['id'],_0x246951=_0x2eb71e[_0x16bdea(0x37e)];_0x246951!==void 0x0&&(this[_0x16bdea(0x310)][_0x58bcdb]={'subTotal':_0x246951,'dataFieldId':_0x2eb71e[_0x16bdea(0x2e0)]});}let _0x3ad62b=[],_0xd4bd30=[],_0x1a0ee6=new Map();for(let [_0x4022a1,_0x5b9328]of _0x176f82['entries']())_0x1a0ee6[_0x16bdea(0x526)](_0x5b9328,_0x4022a1);for(let _0x494396=0x0;_0x494396<_0xfaa752;_0x494396++){let _0x11c6a8=_0xd97f6a[_0x494396]['id'];_0x3ad62b[_0x16bdea(0x466)](_0x1a0ee6['get'](_0x11c6a8)),_0xd4bd30[_0x16bdea(0x466)](_0x11c6a8);}let _0x3361d7=[],_0xd5821e=[];for(let _0x38baf9=0x0;_0x38baf9<_0x4fdaa3;_0x38baf9++){let _0x3bda39=_0x37a104[_0x38baf9]['id'];_0x3361d7[_0x16bdea(0x466)](_0x1a0ee6['get'](_0x3bda39)),_0xd5821e[_0x16bdea(0x466)](_0x3bda39);}this[_0x16bdea(0x3bd)]=_0x3ad62b[_0x16bdea(0x4f6)](_0x3361d7),this[_0x16bdea(0x435)]=_0x3361d7[_0x16bdea(0x4f6)](_0x3ad62b),this[_0x16bdea(0x2a4)]=_0xd4bd30[_0x16bdea(0x4f6)](_0xd5821e),this[_0x16bdea(0x1f3)]=_0xd5821e[_0x16bdea(0x4f6)](_0xd4bd30),this[_0x16bdea(0x4b6)]=_0xfaa752,this[_0x16bdea(0x317)]=_0x4fdaa3,this[_0x16bdea(0x4a0)]=this[_0x16bdea(0x3b5)][_0x16bdea(0x2a6)],this[_0x16bdea(0x4ee)](_0x410526);}[_0x2d7eb5(0x4ee)](_0x1ad8c6){const _0x4eb18e=_0x2d7eb5;let {rowQueryInfo:_0x8df983,colQueryInfo:_0x3d15bf}=_0x1ad8c6;for(let _0x3781f0 of[..._0x8df983,..._0x3d15bf]){let _0x21181a=_0x3781f0['sortInfo'],_0x4761ef=_0x3781f0['id'];if(_0x21181a){if('baseFieldId'in _0x21181a)this[_0x4eb18e(0x415)][_0x4761ef]=_0x21181a;else{if(Me(_0x21181a)){let _0x96703d={},_0x57b3e3=_0x21181a[_0x4eb18e(0x377)];for(let _0x1aafd7=0x0;_0x1aafd7<_0x57b3e3['length'];_0x1aafd7++){let _0xbeaa1d=_0x57b3e3[_0x1aafd7];for(let _0x4a55d4 of this[_0x4eb18e(0x21b)][_0x3781f0[_0x4eb18e(0x2e0)]][_0x4eb18e(0x4c7)][_0x4eb18e(0x361)](_0xbeaa1d))_0x96703d[_0x4a55d4]=_0x1aafd7;}this['dimensionSortInfo'][_0x4761ef]={'type':_0x21181a[_0x4eb18e(0x43b)],'sortMap':_0x96703d};}else{let _0x28c7a7=this['getSortedMap'](_0x4761ef,this[_0x4eb18e(0x21b)][_0x3781f0[_0x4eb18e(0x2e0)]]['field'],_0x21181a['sortLocale']);this['dimensionSortInfo'][_0x4761ef]={'type':_0x21181a[_0x4eb18e(0x43b)],'sortMap':_0x28c7a7};}}}else{if(t[_0x4eb18e(0x3cc)]!==_0x4eb18e(0x25a)){let _0x609f82=t[_0x4eb18e(0x3cc)],_0xd49709=this[_0x4eb18e(0x450)](_0x4761ef,this[_0x4eb18e(0x21b)][_0x3781f0[_0x4eb18e(0x2e0)]][_0x4eb18e(0x4c7)]),_0x13aa1e=_0x609f82===_0x4eb18e(0x53b)?0x1:0x2;this['dimensionSortInfo'][_0x4761ef]={'type':_0x13aa1e,'sortMap':_0xd49709};}}}}[_0x2d7eb5(0x44c)](_0x40e512,_0x1e5fba){const _0x184a17=_0x2d7eb5;var _0xc66254;return this['_showDataAsResolver']?this['_showDataAsResolver']['getValue'](_0x40e512,_0x1e5fba):(_0xc66254=this['tuples'][_0x40e512])==null||(_0xc66254=_0xc66254[_0x184a17(0x399)])==null||(_0xc66254=_0xc66254[_0x1e5fba['dataFieldId']])==null?void 0x0:_0xc66254[_0x1e5fba[_0x184a17(0x37e)]];}[_0x2d7eb5(0x2be)](_0x3c64c7){const _0x1300e4=_0x2d7eb5;!this[_0x1300e4(0x1e9)]&&_0x3c64c7[_0x1300e4(0x50d)][_0x1300e4(0x312)](_0x3af2cb=>{const _0xe82ebf=_0x1300e4;var _0x57e345;return((_0x57e345=_0x3af2cb[_0xe82ebf(0x35e)])==null?void 0x0:_0x57e345[_0xe82ebf(0x43b)])&&_0x3af2cb[_0xe82ebf(0x35e)][_0xe82ebf(0x43b)]!==0x1;})&&(this['_showDataAsResolver']=new gt(this,_0x3c64c7),this[_0x1300e4(0x1e9)][_0x1300e4(0x2f4)]());}['clearShowDataAsCache'](){const _0x29690d=_0x2d7eb5;var _0x507e58;(_0x507e58=this['_showDataAsResolver'])==null||_0x507e58['dispose'](),this[_0x29690d(0x1e9)]=void 0x0;}[_0x2d7eb5(0x450)](_0x201189,_0x1681c8,_0x493521){const _0x255840=_0x2d7eb5;let _0x36c99e=this[_0x255840(0x4bf)][_0x201189];if(_0x36c99e&&_0x36c99e[_0x255840(0x282)])return _0x36c99e[_0x255840(0x282)];let _0x8a7e4f=_0x1681c8[_0x255840(0x518)](),_0x5dc19a=_0x1681c8 instanceof H?_0x1681c8[_0x255840(0x3e2)]:Object[_0x255840(0x4d1)](_0x8a7e4f),_0x5cc21c=_0x1681c8 instanceof H?_0x1681c8[_0x255840(0x40c)]:[];if(!(_0x1681c8 instanceof H)){for(let _0x5b08ab of _0x5dc19a)_0x5cc21c[_0x8a7e4f[_0x5b08ab]]=_0x1681c8[_0x255840(0x1dd)](_0x5b08ab);}if(!(_0x1681c8 instanceof H)||_0x1681c8 instanceof W){let _0x4728b1=_0x5541a3=>_0x5541a3===0x2?0x0:_0x5541a3===0x1?0x1:_0x5541a3===0x4?0x2:0x3,_0x31fcbc=this[_0x255840(0x1f6)](_0x493521),_0x527290=_0x5dc19a[_0x255840(0x30f)]()[_0x255840(0x1f5)]((_0x3bbdef,_0x1b5fb2)=>{const _0x217e67=_0x255840;let _0x2d56c1=_0x5cc21c[_0x8a7e4f[_0x3bbdef]],_0x59bf9f=_0x5cc21c[_0x8a7e4f[_0x1b5fb2]],_0x45219b=_0x4728b1(_0x2d56c1)-_0x4728b1(_0x59bf9f);if(_0x45219b)return _0x45219b;let _0x2bb9ce=_0x1681c8 instanceof W?_0x1681c8[_0x217e67(0x20f)](_0x3bbdef):_0x1681c8[_0x217e67(0x1d4)](_0x3bbdef),_0x1a7193=_0x1681c8 instanceof W?_0x1681c8['getDisplayNameByKey'](_0x1b5fb2):_0x1681c8[_0x217e67(0x1d4)](_0x1b5fb2);return _0x2d56c1===0x2||_0x2d56c1===0x4?Number(_0x2bb9ce)-Number(_0x1a7193)||_0x8a7e4f[_0x3bbdef]-_0x8a7e4f[_0x1b5fb2]:_0x31fcbc(_0x2bb9ce,_0x1a7193)||_0x8a7e4f[_0x3bbdef]-_0x8a7e4f[_0x1b5fb2];});return Object[_0x255840(0x291)](_0x527290[_0x255840(0x39b)]((_0x234c68,_0x42ebf8)=>[_0x234c68,_0x42ebf8]));}let _0x4a99ca=Oe(_0x5dc19a,_0x5cc21c,_0x8a7e4f,this[_0x255840(0x1f6)](_0x493521));if(_0x1681c8 instanceof Xe){let _0x26564e=Object['keys'](_0x4a99ca)[_0x255840(0x1f5)]((_0x1b7566,_0x370d93)=>_0x4a99ca[_0x1b7566]-_0x4a99ca[_0x370d93]),_0x25c123=[..._0x26564e[_0x255840(0x3fd)]('__number_before__')?[G]:[],..._0x26564e[_0x255840(0x455)](_0x471870=>_0x471870!==_0x255840(0x449)&&_0x471870!==_0x255840(0x210)),..._0x26564e[_0x255840(0x3fd)]('__number_after__')?[Ke]:[]];return Object[_0x255840(0x291)](_0x25c123[_0x255840(0x39b)]((_0x2e4453,_0xf3d7e6)=>[_0x2e4453,_0xf3d7e6]));}return _0x4a99ca;}['doSummary'](){const _0x2c4afe=_0x2d7eb5;let _0x5c42b5=this[_0x2c4afe(0x37c)]();this[_0x2c4afe(0x220)](_0x5c42b5),this[_0x2c4afe(0x347)](_0x5c42b5),this[_0x2c4afe(0x3f1)](),this[_0x2c4afe(0x517)]();}[_0x2d7eb5(0x4d5)](_0x14a103,_0xc9dc5f){const _0x26b282=_0x2d7eb5;this[_0x26b282(0x41d)][_0x26b282(0x19f)](),this['colNodeTree']!==this[_0x26b282(0x41d)]&&this[_0x26b282(0x53f)]['resetSort'](),this[_0x26b282(0x4bf)]={},this['valueSortInfo']={},this[_0x26b282(0x2df)]!==_0xc9dc5f&&(this['_defaultSortLocale']=_0xc9dc5f,this[_0x26b282(0x1f8)][_0x26b282(0x34d)]()),this[_0x26b282(0x4ee)](_0x14a103),this[_0x26b282(0x3f1)](),this[_0x26b282(0x517)]();}[_0x2d7eb5(0x3f1)](){const _0x352366=_0x2d7eb5;for(let [_0x5066a6,{type:_0x2da908,sortMap:_0x1dcd27}]of Object[_0x352366(0x2da)](this[_0x352366(0x4bf)]))this[_0x352366(0x41d)][_0x352366(0x2fc)](_0x5066a6,_0x2da908,_0x1dcd27),this[_0x352366(0x53f)]!==this[_0x352366(0x41d)]&&this[_0x352366(0x53f)]['sortChildrenByLabel'](_0x5066a6,_0x2da908,_0x1dcd27);}[_0x2d7eb5(0x517)](){const _0x3c2843=_0x2d7eb5;for(let [_0x1b05fb,_0x1d3c29]of Object[_0x3c2843(0x2da)](this[_0x3c2843(0x415)])){if(_0x1d3c29[_0x3c2843(0x433)]['length']>0x0)continue;let _0x1e98a2=this[_0x3c2843(0x310)][_0x1d3c29[_0x3c2843(0x4cd)]];if(!_0x1e98a2)continue;let _0x5adc24=_0x32d2ec=>{const _0x3d8575=_0x3c2843;var _0x539a37;let _0x399a84=(_0x539a37=this[_0x3d8575(0x29a)][_0x32d2ec])==null||(_0x539a37=_0x539a37[_0x3d8575(0x228)][_0x1e98a2[_0x3d8575(0x2e0)]])==null?void 0x0:_0x539a37[_0x3d8575(0x2fb)](_0x1e98a2['subTotal']);return typeof _0x399a84==_0x3d8575(0x2c9)?_0x399a84:void 0x0;},_0x2553dd=this[_0x3c2843(0x1f6)](_0x1d3c29['sortLocale']);this[_0x3c2843(0x41d)][_0x3c2843(0x423)](_0x1b05fb,_0x1d3c29[_0x3c2843(0x43b)],_0x5adc24,_0x2553dd),this['colNodeTree']!==this[_0x3c2843(0x41d)]&&this[_0x3c2843(0x53f)][_0x3c2843(0x423)](_0x1b05fb,_0x1d3c29['type'],_0x5adc24,_0x2553dd);}}['_getSortCompare'](_0x54f108){const _0x2918e2=_0x2d7eb5;let _0x4a9541=(_0x54f108??'')+'\x00'+(this['_defaultSortLocale']??''),_0x36aa7a=this[_0x2918e2(0x1f8)][_0x2918e2(0x4d0)](_0x4a9541);return _0x36aa7a||(_0x36aa7a=De(_0x54f108,this[_0x2918e2(0x2df)]),this[_0x2918e2(0x1f8)][_0x2918e2(0x526)](_0x4a9541,_0x36aa7a)),_0x36aa7a;}[_0x2d7eb5(0x460)](){const _0x899ae8=_0x2d7eb5;return this[_0x899ae8(0x43a)]++;}[_0x2d7eb5(0x220)](_0xe8331c){const _0x57d2ac=_0x2d7eb5;this[_0x57d2ac(0x41d)]=this[_0x57d2ac(0x215)](this[_0x57d2ac(0x3bd)],this[_0x57d2ac(0x2a4)],this[_0x57d2ac(0x452)],t[_0x57d2ac(0x1e5)],_0xe8331c),this[_0x57d2ac(0x53f)]=this[_0x57d2ac(0x4b6)]===0x0||this[_0x57d2ac(0x317)]===0x0?this['rowNodeTree']:this[_0x57d2ac(0x215)](this[_0x57d2ac(0x435)],this[_0x57d2ac(0x1f3)],this[_0x57d2ac(0x532)],t[_0x57d2ac(0x544)],_0xe8331c);}['_createValueFilterLevelPool'](_0x2711d2){const _0x26ac3e=_0x2d7eb5;let _0x155c4b={},_0x585d29=new Map(),_0x3b99a5=this['leafCount'],_0x297dba=_0x3b99a5+0x1,_0x572062=_0x2711d2[_0x26ac3e(0x2a6)];for(let _0x26e19d=0x0;_0x26e19d<this[_0x26ac3e(0x4db)];_0x26e19d++){let _0x555773=this[_0x26ac3e(0x29a)][_0x26e19d],_0x2b4687=_0x3b99a5;for(let _0x2b3ffb=0x0;_0x2b3ffb<_0x572062;_0x2b3ffb++){let _0x559dc6=_0x2b3ffb===_0x572062-0x1,_0x3e08e1=_0x555773[_0x26ac3e(0x3ab)][_0x2711d2[_0x2b3ffb]],_0x216ab0=_0x26e19d,_0x51caa7=!0x0;if(!_0x559dc6){let _0x11ad95=_0x585d29[_0x26ac3e(0x4d0)](_0x2b4687);_0x11ad95||(_0x11ad95=new Map(),_0x585d29[_0x26ac3e(0x526)](_0x2b4687,_0x11ad95));let _0x1e47c4=_0x11ad95[_0x26ac3e(0x4d0)](_0x3e08e1);_0x1e47c4===void 0x0?(_0x216ab0=_0x297dba++,_0x11ad95[_0x26ac3e(0x526)](_0x3e08e1,_0x216ab0)):(_0x216ab0=_0x1e47c4,_0x51caa7=!0x1);}if(_0x51caa7){let _0x12be13=_0x2b3ffb+0x1;_0x155c4b[_0x12be13]=_0x155c4b[_0x12be13]||[],_0x155c4b[_0x12be13][_0x26ac3e(0x466)]({'p':_0x2b4687,'v':_0x216ab0});}_0x2b4687=_0x216ab0;}}return _0x155c4b;}[_0x2d7eb5(0x36c)](_0x550b8d,_0x4ecce5,_0x5995a5){const _0x293803=_0x2d7eb5;let _0x10ef25={'path':_0x550b8d,'indexes':[],'tuple':{},'types':[]};for(let _0x32fe43 of this[_0x293803(0x3b5)]){let _0x57b251=new N();_0x10ef25[_0x293803(0x228)][_0x32fe43]=_0x57b251;}this['tuples'][_0x4ecce5]=_0x10ef25,this[_0x293803(0x1d0)][_0x5995a5]=_0x4ecce5;}['_buildNodeTreeImp'](_0x53bcf7,_0x25cb1a,_0xf534d9,_0x119285,_0xf2236d){const _0x24cffd=_0x2d7eb5;let _0x54f4fe=this['_getIndex'](),_0x3269b9=new ft(_0x54f4fe,'',0x1);_0x3269b9[_0x24cffd(0x3da)](-0x1),_0x3269b9[_0x24cffd(0x239)](0x0),_0x3269b9[_0x24cffd(0x1bb)]([]),this['createTupleWithoutCheck'](_0x3269b9[_0x24cffd(0x3a3)](),_0x54f4fe,_0x119285);let _0x453e47=this['collapseInfo'],_0x1dd86f=this['rowDeep']+this[_0x24cffd(0x317)],_0x2e512f=this[_0x24cffd(0x362)];for(let _0x4a300d=0x0;_0x4a300d<this['leafCount'];_0x4a300d++){if(_0xf2236d[_0x4a300d]===0x0)continue;let _0x199b56=this[_0x24cffd(0x29a)][_0x4a300d],_0x573fea=_0x3269b9,_0x5a0045=0x0;for(let _0x4bc624 of _0x53bcf7){let _0x417d90=_0x199b56[_0x24cffd(0x3ab)][_0x4bc624],_0x37ebc1=_0x199b56[_0x24cffd(0x2e9)][_0x4bc624],_0x18e77e=_0x2e512f[_0x4bc624];if(!_0x573fea[_0x24cffd(0x2d0)](_0x417d90)){let _0xcea3bf=_0x5a0045===_0x1dd86f-0x1,_0x369151=_0xcea3bf?_0x4a300d:this[_0x24cffd(0x460)](),_0x4fecc4=new ft(_0x369151,_0x18e77e,_0x37ebc1),_0x394d5c=this[_0x24cffd(0x21b)][this[_0x24cffd(0x4a4)][_0x4bc624]][_0x24cffd(0x4c7)];_0x4fecc4['setCollapse'](ve(_0x453e47,_0x18e77e,_0x394d5c['getTupleLabel'](_0x417d90)));let {sortMap:_0x34f1c,type:_0x2f0d37}=this['dimensionSortInfo'][_0x18e77e]??{},_0x1b9140=_0x394d5c instanceof W?_0x394d5c['getDisplayNameByKey'](_0x417d90):_0x394d5c[_0x24cffd(0x1d4)](_0x417d90);_0x573fea[_0x24cffd(0x3f7)](_0x4fecc4,_0x417d90,_0x34f1c,_0x2f0d37,_0x1b9140);let _0x210ddb=_0x4fecc4[_0x24cffd(0x4f7)]();_0xcea3bf?_0x4fecc4[_0x24cffd(0x1da)]():this[_0x24cffd(0x209)](_0x369151,_0x4fecc4[_0x24cffd(0x3a3)](),_0x25cb1a),_0xf534d9[_0x210ddb]=_0xf534d9[_0x210ddb]||[],_0xf534d9[_0x210ddb][_0x24cffd(0x466)]({'p':_0x573fea[_0x24cffd(0x4d6)](),'v':_0x369151});}_0x573fea=_0x573fea[_0x24cffd(0x3ed)](_0x417d90),_0x5a0045++;}}return _0x3269b9;}['combinePathMapList'](_0x5951f6,_0x332d31){const _0x56409b=_0x2d7eb5;if(this[_0x56409b(0x51f)][_0x332d31])return this[_0x56409b(0x51f)][_0x332d31];let _0x4150b7={};this[_0x56409b(0x51f)][_0x332d31]=_0x4150b7;let _0x534b4d={};for(let _0x451982 of _0x5951f6)for(let _0x267bd2 in _0x451982){let _0x19972c=[_0x332d31,_0x267bd2]['join'](t[_0x56409b(0x42c)]);if(_0x4150b7[_0x267bd2]===void 0x0){let _0x30331f=this[_0x56409b(0x460)]();this[_0x56409b(0x4ab)](_0x30331f,_0x19972c),_0x4150b7[_0x267bd2]=_0x30331f;}_0x534b4d[_0x19972c]===void 0x0&&(_0x534b4d[_0x19972c]=[]),_0x534b4d[_0x19972c][_0x56409b(0x466)](_0x451982[_0x267bd2]);}for(let _0x6c5cc in _0x534b4d){let _0x349204=_0x534b4d[_0x6c5cc],_0x128d8c=this[_0x56409b(0x29a)][this['tupleMap'][_0x6c5cc]];this[_0x56409b(0x523)](_0x128d8c,_0x349204);}return _0x4150b7;}['calculateListSubtotal'](_0x19aeda,_0x4acdcb){const _0x31d23f=_0x2d7eb5;_0x19aeda[_0x31d23f(0x399)]||={};let _0x4a9001=_0x19aeda['summary'];for(let _0x3348e8 in this['measuresMap']){let _0x1f5870=this[_0x31d23f(0x3a9)][_0x3348e8][_0x31d23f(0x4da)],_0x454f88=_0x19aeda['tuple'][_0x3348e8],_0x17f072=_0x4acdcb['map'](_0x43c05b=>this[_0x31d23f(0x29a)][_0x43c05b]['tuple'][_0x3348e8]);_0x454f88[_0x31d23f(0x498)](_0x17f072);let _0x1d497b=_0x454f88[_0x31d23f(0x258)]();for(let _0x4e644b of _0x1f5870)_0x1d497b[_0x4e644b]=_0x454f88[_0x31d23f(0x2fb)](_0x4e644b);_0x4a9001[_0x3348e8]=_0x1d497b;}}[_0x2d7eb5(0x347)](_0x17d02d){const _0x287569=_0x2d7eb5;this[_0x287569(0x260)](this[_0x287569(0x452)],_0x17d02d),this[_0x287569(0x260)](this[_0x287569(0x532)],_0x17d02d);let _0x28fffe=this['tuples'][this['rowNodeTree'][_0x287569(0x4d6)]()],_0x399d63=this[_0x287569(0x29a)][this['colNodeTree'][_0x287569(0x4d6)]()];this[_0x287569(0x4b6)]+this[_0x287569(0x317)]===0x0&&this[_0x287569(0x29a)][_0x287569(0x2a6)]>0x0&&z(this[_0x287569(0x29a)][0x0],_0x28fffe,this['measuresMap']),z(_0x28fffe,void 0x0,this[_0x287569(0x3a9)]),z(_0x399d63,void 0x0,this['measuresMap']);}['getPathKeyWithFiledId'](_0x1faddc,_0x26de6b){const _0x2585ba=_0x2d7eb5;let _0x23a509=[];for(let _0x475a42=0x0;_0x475a42<_0x1faddc[_0x2585ba(0x2a6)];_0x475a42++)_0x23a509['push'](''+_0x26de6b[_0x475a42]+t[_0x2585ba(0x42c)]+_0x1faddc[_0x475a42]);return _0x23a509[_0x2585ba(0x1f2)](t[_0x2585ba(0x365)]);}[_0x2d7eb5(0x209)](_0xb0ee5,_0x1fb027,_0x346ea3){const _0x45b52a=_0x2d7eb5;if(!this[_0x45b52a(0x29a)][_0xb0ee5]){let _0x526b19=this['getPathKeyWithFiledId'](_0x1fb027,_0x346ea3);this[_0x45b52a(0x36c)](_0x1fb027,_0xb0ee5,_0x526b19);}}[_0x2d7eb5(0x4ab)](_0x3d6020,_0x341f87){const _0x41e9a1=_0x2d7eb5;this['tuples'][_0x3d6020]||this[_0x41e9a1(0x457)]([],_0x341f87,_0x3d6020);}[_0x2d7eb5(0x457)](_0x2c59d9,_0x477f80,_0x589c6e){const _0x3c1a78=_0x2d7eb5;let _0x2dd0bc=_0x477f80||_0x2c59d9[_0x3c1a78(0x1f2)](t[_0x3c1a78(0x365)]);if(!this[_0x3c1a78(0x1d0)][_0x2dd0bc]){let _0x8e3659={'path':_0x2c59d9,'indexes':[],'tuple':{},'types':[]};for(let _0x1aca61 of this[_0x3c1a78(0x3b5)]){let _0x4ba769=new N();_0x8e3659[_0x3c1a78(0x228)][_0x1aca61]=_0x4ba769;}if(_0x589c6e===void 0x0){let _0x2f3549=this['tuples']['push'](_0x8e3659);this[_0x3c1a78(0x1d0)][_0x2dd0bc]=_0x2f3549-0x1;}else this['tuples'][_0x589c6e]=_0x8e3659,this[_0x3c1a78(0x1d0)][_0x2dd0bc]=_0x589c6e;}}[_0x2d7eb5(0x37c)](){const _0x1e7f11=_0x2d7eb5;let _0x9cbb5e=this[_0x1e7f11(0x513)],_0x3e752c=new Uint8Array(this['leafCount']);if(_0x3e752c[_0x1e7f11(0x543)](0x1),_0x9cbb5e[_0x1e7f11(0x2a6)]===0x0)return _0x3e752c;let _0x3d6d1d=this[_0x1e7f11(0x4e9)](this['rowDimOrder']),_0x2097eb=this['rowDeep']===0x0||this[_0x1e7f11(0x317)]===0x0?_0x3d6d1d:this['_createValueFilterLevelPool'](this[_0x1e7f11(0x435)]);for(let {fieldId:_0x6ecb32,filterInfo:_0x564252}of _0x9cbb5e)this['_doValueFilter'](_0x6ecb32,_0x564252[_0x1e7f11(0x3f0)],_0x564252,_0x3e752c,_0x3d6d1d,_0x2097eb);return _0x3e752c;}[_0x2d7eb5(0x3db)](_0x2edb5f,_0x510653,_0x23ab97,_0x5892f6,_0x1219dd,_0x37257e){const _0x194fdd=_0x2d7eb5;let _0x322a30=this[_0x194fdd(0x2cc)](_0x2edb5f,_0x1219dd,_0x37257e);if(_0x322a30){let {pool:_0x3b7d0f,fieldIdList:_0x571995}=_0x322a30,_0x558d11=_0x571995[_0x194fdd(0x3fa)](_0x2edb5f);if(_0x558d11===-0x1)return;let _0x663aa1=this['rowDeep']+this[_0x194fdd(0x317)],_0x565d0b=[],_0x1cd41e=this[_0x194fdd(0x310)][_0x510653][_0x194fdd(0x4da)],_0x45dd69=this[_0x194fdd(0x310)][_0x510653][_0x194fdd(0x2e0)];for(let _0xf3dca5=_0x663aa1;_0xf3dca5>_0x558d11;_0xf3dca5--)if(_0x3b7d0f[_0xf3dca5]){let _0x4cfd77=_0x3b7d0f[_0xf3dca5];for(let {p:_0x30a4fd,v:_0x4415d7}of _0x4cfd77)(_0x663aa1!==_0xf3dca5||_0x5892f6[_0x4415d7]!==0x0)&&Ae(_0x565d0b,_0xf3dca5===_0x663aa1?this[_0x194fdd(0x29a)][_0x4415d7]:void 0x0,_0x45dd69,_0x1cd41e,_0x4415d7,_0x30a4fd);}let _0x2be723=_0x3b7d0f[_0x558d11+0x1]??[],_0x2a75b9=_t(_0x23ab97,_0x2be723,_0x565d0b,_0x1cd41e),_0x1aa91e=new Set();for(let {v:_0x41841f}of _0x2be723){if(_0x565d0b[_0x41841f]===void 0x0)continue;let _0x3b1ada=_0x565d0b[_0x41841f][_0x194fdd(0x228)][_0x194fdd(0x2fb)](_0x1cd41e);je(_0x3b1ada)?_0x1aa91e[_0x194fdd(0x426)](_0x41841f):_0x2a75b9(_0x3b1ada)||_0x1aa91e[_0x194fdd(0x426)](_0x41841f);}let _0x232330=_0x558d11+0x1;if(_0x232330===_0x663aa1){for(let _0x21ee22 of _0x1aa91e)_0x5892f6[_0x21ee22]=0x0;return;}for(;_0x3b7d0f[_0x232330+0x1];){let _0x1f5bd5=new Set(),_0x2c4122=_0x3b7d0f[_0x232330+0x1];for(let {p:_0x2909a5,v:_0x6a908}of _0x2c4122)_0x1aa91e[_0x194fdd(0x345)](_0x2909a5)&&(_0x1f5bd5[_0x194fdd(0x426)](_0x6a908),_0x232330+0x1===_0x663aa1&&(_0x5892f6[_0x6a908]=0x0));_0x232330++,_0x1aa91e=_0x1f5bd5;}}}['_getValueFilterTree'](_0x6ad1,_0xa0a201,_0xcf5877){const _0x1f1b83=_0x2d7eb5;if(this[_0x1f1b83(0x4b6)]===0x0||this['colDeep']===0x0)return{'pool':_0xa0a201,'fieldIdList':this[_0x1f1b83(0x2a4)]};let _0x5ab4d1=this[_0x1f1b83(0x2a4)][_0x1f1b83(0x4c6)](_0x322533=>_0x322533===_0x6ad1);if(_0x5ab4d1>=0x0&&_0x5ab4d1<this[_0x1f1b83(0x4b6)])return{'pool':_0xa0a201,'fieldIdList':this['rowTableIdList']};let _0x93ded2=this[_0x1f1b83(0x1f3)][_0x1f1b83(0x4c6)](_0x477afb=>_0x477afb===_0x6ad1);return _0x93ded2>=0x0&&_0x93ded2<this[_0x1f1b83(0x317)]?{'pool':_0xcf5877,'fieldIdList':this[_0x1f1b83(0x1f3)]}:null;}['_calculateSubtotalImp'](_0x2cd307,_0x2a9829){const _0x33746f=_0x2d7eb5;let _0x3c15e3=this['rowDeep']+this['colDeep'];for(let _0x41a058=_0x3c15e3;_0x41a058>=0x0;_0x41a058--)if(_0x2cd307[_0x41a058]){let _0x2d9144=_0x2cd307[_0x41a058];for(let {p:_0x35b69b,v:_0x205ab4}of _0x2d9144){if(_0x205ab4<this[_0x33746f(0x4db)]&&_0x2a9829[_0x205ab4]===0x0)continue;let _0x28108b=this[_0x33746f(0x29a)][_0x205ab4];z(_0x28108b,this[_0x33746f(0x29a)][_0x35b69b],this[_0x33746f(0x3a9)]);}}}},yt=class{constructor(){const _0x11f9be=_0x2d7eb5;M(this,'tuples',[]),M(this,_0x11f9be(0x1d0),{}),M(this,_0x11f9be(0x3a9),{}),M(this,_0x11f9be(0x4a4),[]),M(this,'dimensionTableIdList',[]),M(this,_0x11f9be(0x3b5),[]),M(this,_0x11f9be(0x21b),{}),M(this,'rowDeep',0x0),M(this,_0x11f9be(0x317),0x0),M(this,_0x11f9be(0x52c),void 0x0);}[_0x2d7eb5(0x2f4)](_0xa7a192,_0x5de573){const _0x5f52b1=_0x2d7eb5;this[_0x5f52b1(0x52c)]=_0xa7a192;let {valueQueryInfo:_0xa26e40,rowQueryInfo:_0x42e627,colQueryInfo:_0x38cd37,filterQueryInfo:_0x5f141d,hiddenQueryInfo:_0x556a24=[]}=_0x5de573;for(let _0x51b825 of _0xa26e40){let _0x14e475=_0x51b825['dataFieldId'],_0x1ac56e=_0xa7a192[_0x5f52b1(0x2f8)](_0x14e475);if(!_0x1ac56e)continue;this[_0x5f52b1(0x3a9)][_0x14e475]||(this['measureIdList'][_0x5f52b1(0x466)](_0x14e475),this[_0x5f52b1(0x3a9)][_0x14e475]={'field':_0x1ac56e,'subTotal':[]});let _0x2463b7=this[_0x5f52b1(0x3a9)][_0x14e475],{subtotal:_0x1d5e77}=_0x51b825;_0x2463b7['subTotal']['includes'](_0x1d5e77)||_0x2463b7[_0x5f52b1(0x4da)][_0x5f52b1(0x466)](_0x1d5e77);}let _0x178876=_0x42e627['length']+_0x38cd37['length'],_0x2c39a2=0x0;for(let _0x1d9eec of[..._0x42e627,..._0x38cd37,..._0x5f141d,..._0x556a24]){let _0x5abc3c=_0xa7a192[_0x5f52b1(0x2f8)](_0x1d9eec['dataFieldId']);_0x5abc3c&&(this[_0x5f52b1(0x21b)][_0x1d9eec[_0x5f52b1(0x2e0)]]||(this[_0x5f52b1(0x21b)][_0x1d9eec['dataFieldId']]={'field':_0x5abc3c}),_0x2c39a2<_0x178876?(this[_0x5f52b1(0x4a4)]['push'](_0x1d9eec[_0x5f52b1(0x2e0)]),this[_0x5f52b1(0x362)][_0x5f52b1(0x466)](_0x1d9eec['id'])):_0x2c39a2<_0x178876+_0x5f141d[_0x5f52b1(0x2a6)]&&_0x1d9eec[_0x5f52b1(0x382)]&&L(_0x1d9eec[_0x5f52b1(0x382)])&&(_0x1d9eec[_0x5f52b1(0x382)][_0x5f52b1(0x352)]=_0x5abc3c[_0x5f52b1(0x3e2)][_0x5f52b1(0x2a6)]===_0x1d9eec[_0x5f52b1(0x382)][_0x5f52b1(0x4b0)][_0x5f52b1(0x2a6)]),_0x2c39a2++);}this['rowDeep']=_0x42e627['length'],this[_0x5f52b1(0x317)]=_0x38cd37['length'];}[_0x2d7eb5(0x455)](_0x1e22ba){const _0x31ca74=_0x2d7eb5;let {rowQueryInfo:_0x1ccce4,colQueryInfo:_0xdd2c72,filterQueryInfo:_0x196e68,hiddenQueryInfo:_0xaf4b5a=[]}=_0x1e22ba,_0x1b4d89=[],_0x10896f=!0x1,_0xe42ed5=[..._0x1ccce4,..._0xdd2c72,..._0x196e68,..._0xaf4b5a]['flatMap'](_0x2a4e3d=>_0x2a4e3d['conditionFilter']?[_0x2a4e3d,{..._0x2a4e3d,'filterInfo':_0x2a4e3d[_0x31ca74(0x379)],'conditionFilter':void 0x0}]:[_0x2a4e3d]);for(let {dataFieldId:_0x2d93d5,filterInfo:_0x363311}of _0xe42ed5){var _0x3dba78;if(_0x363311===void 0x0)continue;let _0x16c8c5=(_0x3dba78=this['dimensionMap'][_0x2d93d5])==null?void 0x0:_0x3dba78[_0x31ca74(0x4c7)];if(!_0x16c8c5)throw TypeError(_0x31ca74(0x44a)+_0x2d93d5);if(D(_0x363311)){if(!O(_0x363311))continue;let _0x2de6bd=this['_fieldsCollection'][_0x31ca74(0x20c)][_0x31ca74(0x2e3)](_0x363311);_0x10896f=!0x0;let _0x34065f=[];for(let _0x4e62d0=0x0;_0x4e62d0<_0x16c8c5[_0x31ca74(0x21f)][_0x31ca74(0x2a6)];_0x4e62d0++)_0x2de6bd(_0x16c8c5[_0x31ca74(0x21f)][_0x4e62d0])&&_0x34065f[_0x31ca74(0x466)](_0x4e62d0);_0x1b4d89[_0x31ca74(0x466)](_0x34065f);}else{if(L(_0x363311)){_0x10896f=!0x0;let {list:_0x2841d6}=_0x363311,_0x46265b=[];for(let _0x593156 of _0x2841d6)_0x46265b['push'](_0x16c8c5[_0x31ca74(0x53d)](_0x593156));_0x1b4d89[_0x31ca74(0x466)](Ee(_0x46265b));}else{if(ye(_0x363311)){if(_0x10896f=!0x0,S(_0x363311)){let _0x597f8e=C(_0x363311),_0x14f24e=[];for(let _0x486d91=0x0;_0x486d91<_0x16c8c5[_0x31ca74(0x21f)][_0x31ca74(0x2a6)];_0x486d91++){let _0x1c372e=_0x16c8c5['records'][_0x486d91];w(_0x1c372e)&&_0x597f8e(_0x1c372e['v'])&&_0x14f24e[_0x31ca74(0x466)](_0x486d91);}_0x1b4d89[_0x31ca74(0x466)](_0x14f24e);continue;}let {operator:_0x488929,expected:_0x4f7c25}=_0x363311;if(_0x488929>=0x1&&_0x488929<=0xe){let _0x13bbaa=ne(_0x363311),_0x5d4eb8=[];for(let _0x231881=0x0;_0x231881<_0x16c8c5[_0x31ca74(0x21f)][_0x31ca74(0x2a6)];_0x231881++){let _0x570373=_0x16c8c5['records'][_0x231881],_0xc64e1c=String(_0x570373??'');w(_0x570373)?_0xc64e1c=String(_0x570373['v']):T(_0x570373)&&(_0xc64e1c=_0x570373['error']),_0x13bbaa(_0xc64e1c)&&_0x5d4eb8[_0x31ca74(0x466)](_0x231881);}_0x1b4d89['push'](_0x5d4eb8);continue;}if(_0x16c8c5[_0x31ca74(0x31e)]()===0x2){let _0x413a8f=ke(_0x16c8c5[_0x31ca74(0x3f8)](),_0x488929,_0x4f7c25);_0x1b4d89[_0x31ca74(0x466)](Ee(_0x413a8f));}}}}}return!_0x10896f&&_0x1b4d89[_0x31ca74(0x2a6)]===0x0?{'isAll':!0x0,'list':[]}:{'isAll':!0x1,'list':xe(_0x1b4d89)};}[_0x2d7eb5(0x3dc)](_0x62714d,_0x57c021){const _0x37f59f=_0x2d7eb5;this['prepare'](_0x62714d,_0x57c021);let {isAll:_0x301cba,list:_0x2c3ece}=this[_0x37f59f(0x455)](_0x57c021);this['iterate'](_0x301cba,_0x2c3ece,_0x62714d['getDataRecordCount']());}[_0x2d7eb5(0x32b)](){const _0x6a8159=_0x2d7eb5;this[_0x6a8159(0x29a)]=[],this[_0x6a8159(0x3a9)]={},this[_0x6a8159(0x21b)]={},this['tupleMap']={},this['dimensionIdList']=[],this[_0x6a8159(0x362)]=[],this[_0x6a8159(0x3b5)]=[];}[_0x2d7eb5(0x28e)](_0x3cb0fb,_0x18c9da,_0x526578=0x0){const _0x5dfda9=_0x2d7eb5;let _0x11eb97=this[_0x5dfda9(0x362)];if(_0x3cb0fb)for(let _0x4818dc=0x0;_0x4818dc<_0x526578;_0x4818dc++){let _0x523767=[],_0x528622=[],_0x136992=[],_0x563faf=0x0;for(let _0x16a35d of this[_0x5dfda9(0x4a4)]){let _0x1ac749=this[_0x5dfda9(0x21b)][_0x16a35d][_0x5dfda9(0x4c7)],_0x349a91=_0x1ac749[_0x5dfda9(0x2af)](_0x4818dc);_0x136992[_0x5dfda9(0x466)](_0x11eb97[_0x563faf]+t[_0x5dfda9(0x42c)]+_0x349a91),_0x523767['push'](_0x349a91),_0x528622[_0x5dfda9(0x466)](_0x1ac749[_0x5dfda9(0x1dd)](_0x349a91)),_0x563faf++;}this['createOrUpdateTuple'](_0x523767,_0x136992,_0x4818dc,_0x528622);}for(let _0x4273f2 of _0x18c9da){let _0x5ec105=[],_0x2790fd=[],_0x296570=[],_0x28423d=0x0;for(let _0x39e9da of this[_0x5dfda9(0x4a4)]){let _0x2abbdf=this['dimensionMap'][_0x39e9da][_0x5dfda9(0x4c7)],_0x1e6fbc=_0x2abbdf[_0x5dfda9(0x2af)](_0x4273f2);_0x296570['push'](_0x11eb97[_0x28423d]+t[_0x5dfda9(0x42c)]+_0x1e6fbc),_0x5ec105[_0x5dfda9(0x466)](_0x1e6fbc),_0x2790fd[_0x5dfda9(0x466)](_0x2abbdf['getTupleType'](_0x1e6fbc)),_0x28423d++;}this['createOrUpdateTuple'](_0x5ec105,_0x296570,_0x4273f2,_0x2790fd);}}[_0x2d7eb5(0x2f3)](_0x2b8e9e,_0x4e529e,_0x2351ae,_0x19d363){const _0x3f2a2a=_0x2d7eb5;let _0x4ff047=_0x4e529e[_0x3f2a2a(0x1f2)](t[_0x3f2a2a(0x365)]);this['tupleMap'][_0x4ff047]===void 0x0&&this['createTuple'](_0x2b8e9e,_0x4ff047,void 0x0,_0x19d363);let _0x3a55f5=this[_0x3f2a2a(0x29a)][this['tupleMap'][_0x4ff047]];_0x3a55f5[_0x3f2a2a(0x3e3)][_0x3f2a2a(0x466)](_0x2351ae);for(let _0x3906e6 of this[_0x3f2a2a(0x3b5)]){let _0x2b91ea=_0x3a55f5['tuple'][_0x3906e6],_0x5c56a8=this['measuresMap'][_0x3906e6][_0x3f2a2a(0x4c7)]['getValue'](_0x2351ae);_0x2b91ea[_0x3f2a2a(0x279)](_0x5c56a8);}}['createTuple'](_0x4b109f,_0x305482,_0xf5640c,_0x3a5469=[]){const _0x23492e=_0x2d7eb5;let _0x298d34=_0x305482||_0x4b109f[_0x23492e(0x1f2)](t[_0x23492e(0x365)]);if(!this[_0x23492e(0x1d0)][_0x298d34]){let _0x4fdd34={'path':_0x4b109f,'types':_0x3a5469,'indexes':[],'tuple':{}};for(let _0x2a30e1 of this[_0x23492e(0x3b5)]){let _0x3b5c26=new N();_0x4fdd34[_0x23492e(0x228)][_0x2a30e1]=_0x3b5c26;}if(_0xf5640c===void 0x0){let _0x3b85f7=this[_0x23492e(0x29a)]['push'](_0x4fdd34);this[_0x23492e(0x1d0)][_0x298d34]=_0x3b85f7-0x1;}else this[_0x23492e(0x29a)][_0xf5640c]=_0x4fdd34,this['tupleMap'][_0x298d34]=_0xf5640c;}}};const bt=_0x17348f=>_0x17348f[_0x2d7eb5(0x4cd)]!==void 0x0,xt=_0x37fce2=>{const _0x76a9fb=_0x2d7eb5;if(bt(_0x37fce2)){let {type:_0x3959ca,baseFieldId:_0x4de26c,sortItems:_0x1b3958,sortLocale:_0x26b7f3}=_0x37fce2;return{'type':_0x3959ca,'baseFieldId':_0x4de26c,'sortItems':_0x1b3958[_0x76a9fb(0x4f6)](),..._0x26b7f3===void 0x0?{}:{'sortLocale':_0x26b7f3}};}return _0x76a9fb(0x377)in _0x37fce2?{..._0x37fce2,'customOrder':_0x37fce2[_0x76a9fb(0x377)]['concat']()}:{..._0x37fce2};},Y=_0x214de9=>({..._0x214de9}),St=()=>({'type':0x1,'baseFieldId':'','baseItem':''});var Ct=class{constructor(_0x3fe684,_0x1b8f8f,_0x47d780='',_0x1fe015){const _0x282ddd=_0x2d7eb5;M(this,_0x282ddd(0x2e0),void 0x0),M(this,'id',void 0x0),M(this,_0x282ddd(0x465),void 0x0),M(this,'displayName',void 0x0),M(this,'format',void 0x0),M(this,'lossLessProperty',void 0x0),this[_0x282ddd(0x2e0)]=_0x3fe684,this['id']=_0x1b8f8f,this[_0x282ddd(0x392)]=_0x47d780,this['sourceName']=_0x1fe015;}[_0x2d7eb5(0x21a)](){return this['id'];}[_0x2d7eb5(0x46e)](){return this['sourceName'];}[_0x2d7eb5(0x245)](_0x19ca3b){const _0x5ac206=_0x2d7eb5;this[_0x5ac206(0x465)]=_0x19ca3b;}[_0x2d7eb5(0x50c)](_0x10b168){this['dataFieldId']=_0x10b168;}['getDataFieldId'](){return this['dataFieldId'];}[_0x2d7eb5(0x378)](){const _0x513284=_0x2d7eb5;return this[_0x513284(0x2c7)];}['setFormat'](_0x5679d4){const _0x2c0fe0=_0x2d7eb5;this[_0x2c0fe0(0x2c7)]=_0x5679d4;}[_0x2d7eb5(0x1a4)](_0x6348d4){this['displayName']=_0x6348d4;}['getDisplayName'](){return this['displayName'];}},X=class extends Ct{constructor(_0x14f8a7,_0x1d293f,_0x697940='',_0x4e3f25){const _0x34754c=_0x2d7eb5;super(_0x14f8a7,_0x1d293f,_0x697940,_0x4e3f25),M(this,'subtotal',void 0x0),M(this,_0x34754c(0x35e),St());}['setSubtotal'](_0x1f1453){this['subtotal']=_0x1f1453;}[_0x2d7eb5(0x2fb)](){const _0x40aec8=_0x2d7eb5;return this[_0x40aec8(0x37e)];}['setShowDataAs'](_0x31e790){const _0x441e33=_0x2d7eb5;this[_0x441e33(0x35e)]=Y(_0x31e790);}[_0x2d7eb5(0x3f3)](){return Y(this['showDataAs']);}[_0x2d7eb5(0x31f)](){const _0x5d5fb4=_0x2d7eb5;return{'id':this['id'],'dataFieldId':this[_0x5d5fb4(0x2e0)],'displayName':this[_0x5d5fb4(0x392)],'subtotal':this[_0x5d5fb4(0x37e)],'showDataAs':Y(this[_0x5d5fb4(0x35e)])};}[_0x2d7eb5(0x3e0)](){const _0x534542=_0x2d7eb5;return{'id':this['id'],'dataFieldId':this[_0x534542(0x2e0)],'displayName':this['displayName'],'sourceName':this[_0x534542(0x465)],'subtotal':this[_0x534542(0x37e)],'format':this[_0x534542(0x2c7)],'showDataAs':Y(this[_0x534542(0x35e)])};}['fromJSON'](_0x1c73c2){const _0x56b767=_0x2d7eb5;this['id']=_0x1c73c2['id'],this[_0x56b767(0x2e0)]=_0x1c73c2['dataFieldId'],this[_0x56b767(0x392)]=_0x1c73c2[_0x56b767(0x392)],this[_0x56b767(0x465)]=_0x1c73c2['sourceName'],this['format']=_0x1c73c2[_0x56b767(0x2c7)],this[_0x56b767(0x37e)]=_0x1c73c2['subtotal'];let _0x1ec583=_0x1c73c2['showDataAs'];this[_0x56b767(0x35e)]=(_0x1ec583==null?void 0x0:_0x1ec583[_0x56b767(0x43b)])===void 0x0?St():Y(_0x1ec583);}},Z=class extends Ct{constructor(_0x14ea75,_0x204ad2,_0xf7b704='',_0x27ef48){const _0x12a653=_0x2d7eb5;super(_0x14ea75,_0x204ad2,_0xf7b704,_0x27ef48),M(this,_0x12a653(0x216),void 0x0),M(this,_0x12a653(0x382),void 0x0),M(this,_0x12a653(0x379),void 0x0);}[_0x2d7eb5(0x42a)](_0x248ea2){const _0x144185=_0x2d7eb5;this[_0x144185(0x216)]=_0x248ea2?xt(_0x248ea2):void 0x0;}[_0x2d7eb5(0x33f)](){const _0x1bf576=_0x2d7eb5;return this['sortInfo']?xt(this[_0x1bf576(0x216)]):void 0x0;}[_0x2d7eb5(0x1fe)](_0x495a8c){const _0x5267c3=_0x2d7eb5;this[_0x5267c3(0x382)]=D(_0x495a8c)||S(_0x495a8c)?k(_0x495a8c):_0x495a8c;}[_0x2d7eb5(0x4cf)](){const _0x2ea61e=_0x2d7eb5;return D(this[_0x2ea61e(0x382)])||S(this[_0x2ea61e(0x382)])?k(this['filterInfo']):this[_0x2ea61e(0x382)];}[_0x2d7eb5(0x306)](){const _0x1f92b8=_0x2d7eb5;var _0x1c1421;return k(this[_0x1f92b8(0x379)]??(((_0x1c1421=this[_0x1f92b8(0x382)])==null?void 0x0:_0x1c1421[_0x1f92b8(0x43b)])===0x1?this['filterInfo']:void 0x0));}['setConditionFilterInfo'](_0x3bfcf9){const _0x59c2f0=_0x2d7eb5;if(_0x3bfcf9!==void 0x0&&_0x3bfcf9['type']!==0x1&&(!D(_0x3bfcf9)||!_0x3bfcf9[_0x59c2f0(0x4fe)]||_0x3bfcf9[_0x59c2f0(0x20a)]!==void 0x0))throw TypeError('Invalid\x20pivot\x20condition\x20filter.');this[_0x59c2f0(0x379)]=k(_0x3bfcf9);}['getQueryData'](){const _0x458a58=_0x2d7eb5;return{'id':this['id'],'dataFieldId':this[_0x458a58(0x2e0)],'displayName':this[_0x458a58(0x392)],'sortInfo':this['getSortInfo'](),'filterInfo':this[_0x458a58(0x382)]&&(D(this[_0x458a58(0x382)])||S(this['filterInfo'])?k(this[_0x458a58(0x382)]):Object[_0x458a58(0x1aa)]({},this[_0x458a58(0x382)])),...this[_0x458a58(0x379)]?{'conditionFilter':this['getConditionFilterInfo']()}:{}};}[_0x2d7eb5(0x3e0)](){const _0x58ed78=_0x2d7eb5;return{'id':this['id'],'dataFieldId':this[_0x58ed78(0x2e0)],'displayName':this[_0x58ed78(0x392)],'format':this['format'],'sourceName':this[_0x58ed78(0x465)],'sortInfo':this['sortInfo']?xt(this[_0x58ed78(0x216)]):void 0x0,'filterInfo':D(this[_0x58ed78(0x382)])||S(this[_0x58ed78(0x382)])?k(this[_0x58ed78(0x382)]):this['filterInfo']||void 0x0,...this['conditionFilter']?{'conditionFilter':this[_0x58ed78(0x306)]()}:{}};}[_0x2d7eb5(0x3d9)](_0xc26dc1){const _0x57aace=_0x2d7eb5;var _0x352bc3;if(_0xc26dc1[_0x57aace(0x379)]&&(((_0x352bc3=_0xc26dc1[_0x57aace(0x382)])==null?void 0x0:_0x352bc3[_0x57aace(0x43b)])===0x1||D(_0xc26dc1[_0x57aace(0x382)])&&_0xc26dc1[_0x57aace(0x382)][_0x57aace(0x4fe)]!==void 0x0))throw TypeError('A\x20pivot\x20field\x20cannot\x20contain\x20two\x20date/label\x20conditions.');this['id']=_0xc26dc1['id'],this[_0x57aace(0x2e0)]=_0xc26dc1[_0x57aace(0x2e0)],this[_0x57aace(0x392)]=_0xc26dc1[_0x57aace(0x392)],this[_0x57aace(0x465)]=_0xc26dc1[_0x57aace(0x465)],this[_0x57aace(0x2c7)]=_0xc26dc1[_0x57aace(0x2c7)],_0xc26dc1[_0x57aace(0x216)]&&this['setSortInfo'](_0xc26dc1[_0x57aace(0x216)]),_0xc26dc1['filterInfo']&&(this[_0x57aace(0x382)]=D(_0xc26dc1[_0x57aace(0x382)])||S(_0xc26dc1[_0x57aace(0x382)])?k(_0xc26dc1['filterInfo']):_0xc26dc1['filterInfo']),this[_0x57aace(0x3b4)](_0xc26dc1[_0x57aace(0x379)]);}};function wt(_0x1afb9b,_0x24cec9=!0x0){const _0x78320b=_0x2d7eb5;let _0x232c72=new X(_0x1afb9b[_0x78320b(0x2e0)],_0x1afb9b['id'],_0x1afb9b['getDisplayName'](),_0x1afb9b[_0x78320b(0x465)]);if(_e(_0x1afb9b[_0x78320b(0x503)](),0x9),_0x232c72[_0x78320b(0x37e)]=0x9,_0x1afb9b[_0x78320b(0x242)]){let _0x2a220f=_0x1afb9b[_0x78320b(0x242)];_0x2a220f[_0x78320b(0x35e)]&&(_0x232c72[_0x78320b(0x35e)]=_0x2a220f['showDataAs']),_0x2a220f[_0x78320b(0x37e)]!==void 0x0&&(_0x232c72[_0x78320b(0x37e)]=_0x2a220f['subtotal']);}return _0x24cec9&&(_0x232c72[_0x78320b(0x242)]={'sortInfo':_0x1afb9b[_0x78320b(0x33f)](),'filterInfo':_0x1afb9b[_0x78320b(0x4cf)](),..._0x1afb9b['conditionFilter']?{'conditionFilter':_0x1afb9b[_0x78320b(0x306)]()}:{}}),_0x232c72;}function Tt(_0x52a22a,_0x560299=!0x0){const _0x28b1f6=_0x2d7eb5;let _0x2ebccb=new Z(_0x52a22a[_0x28b1f6(0x2e0)],_0x52a22a['id'],_0x52a22a[_0x28b1f6(0x503)](),_0x52a22a['sourceName']);if(_0x2ebccb[_0x28b1f6(0x1a4)](_0x52a22a['getDisplayName']()),_0x52a22a[_0x28b1f6(0x242)]){let _0x554dff=_0x52a22a['lossLessProperty'];_0x554dff[_0x28b1f6(0x216)]&&(_0x2ebccb[_0x28b1f6(0x216)]=_0x554dff[_0x28b1f6(0x216)]),_0x554dff[_0x28b1f6(0x382)]&&(_0x2ebccb[_0x28b1f6(0x382)]=D(_0x554dff[_0x28b1f6(0x382)])?k(_0x554dff[_0x28b1f6(0x382)]):_0x554dff[_0x28b1f6(0x382)]),_0x2ebccb['setConditionFilterInfo'](_0x554dff['conditionFilter']);}return _0x560299&&(_0x2ebccb[_0x28b1f6(0x242)]={'subtotal':_0x52a22a[_0x28b1f6(0x2fb)](),'showDataAs':_0x52a22a[_0x28b1f6(0x3f3)]()}),_0x2ebccb;}function Et(_0x4fae18){const _0x23c905=_0x2d7eb5;let {dataFieldId:_0x382a9f,id:_0x944205,sourceName:_0x5db07c}=_0x4fae18,_0x36a1a4=new X(_0x382a9f,_0x944205,'',_0x5db07c);return _0x36a1a4[_0x23c905(0x3d9)](_0x4fae18),_0x36a1a4;}function Dt(_0x55e729){let {dataFieldId:_0x2ae727,id:_0x592cc6,sourceName:_0x3ee578}=_0x55e729,_0x53a019=new Z(_0x2ae727,_0x592cc6,'',_0x3ee578);return _0x53a019['fromJSON'](_0x55e729),_0x53a019;}var Ot=class e{constructor(){const _0x5abea9=_0x2d7eb5;M(this,_0x5abea9(0x298),[]),M(this,'columnFields',[]),M(this,'valueFields',[]),M(this,'filterFields',[]),M(this,_0x5abea9(0x3d7),[]),M(this,_0x5abea9(0x375),Object['create'](null)),M(this,'measure',Object[_0x5abea9(0x2c0)](null)),M(this,_0x5abea9(0x537),-0x1),M(this,_0x5abea9(0x25b),-0x1),M(this,'layout',0x3),M(this,_0x5abea9(0x3e8),Object[_0x5abea9(0x2c0)](null)),M(this,_0x5abea9(0x265),void 0x0),M(this,_0x5abea9(0x275),void 0x0),M(this,'_isDirty',!0x0),M(this,_0x5abea9(0x286),[]),this['options']={'pageWrap':0x1,'pageOverThenDown':!0x1};}[_0x2d7eb5(0x1ff)](){const _0xfa2727=_0x2d7eb5;this[_0xfa2727(0x275)]=[];}[_0x2d7eb5(0x24f)](){const _0x2d3996=_0x2d7eb5;let _0x29d22d=this[_0x2d3996(0x275)];return delete this[_0x2d3996(0x275)],_0x29d22d;}[_0x2d7eb5(0x330)](_0x45b992){this['_isDirty']=_0x45b992;}[_0x2d7eb5(0x529)](){const _0x12788f=_0x2d7eb5;return this[_0x12788f(0x416)];}[_0x2d7eb5(0x50b)](_0xc33d63,_0xeb7b89=!0x1){const _0x15dca7=_0x2d7eb5;if(_0xc33d63['allowMultipleFilters']!==void 0x0&&typeof _0xc33d63[_0x15dca7(0x3d5)]!=_0x15dca7(0x483))throw TypeError(_0x15dca7(0x1ec));if(_0xc33d63[_0x15dca7(0x1c2)]!==void 0x0&&_0xc33d63[_0x15dca7(0x1c2)]!==_0x15dca7(0x4e6)&&_0xc33d63['dateGroupingMode']!==_0x15dca7(0x4c0))throw TypeError(_0x15dca7(0x363));!_0xeb7b89&&_0xc33d63[_0x15dca7(0x3d5)]===!0x1&&se(this[_0x15dca7(0x3e0)]())&&this[_0x15dca7(0x43f)]();let _0x2f9a71={...this[_0x15dca7(0x265)]},_0x19e10b=_0xeb7b89?{..._0xc33d63}:{...this[_0x15dca7(0x265)],..._0xc33d63},_0x4c2e7f=Object[_0x15dca7(0x4d1)](_0x19e10b);if(!(_0x4c2e7f['length']===Object[_0x15dca7(0x4d1)](_0x2f9a71)['length']&&_0x4c2e7f[_0x15dca7(0x212)](_0x32247d=>_0x2f9a71[_0x32247d]===_0x19e10b[_0x32247d]))&&(this[_0x15dca7(0x265)]={..._0x19e10b},this['_changeStack'])){let _0x41489b={'type':0x8,'oldOptions':_0x2f9a71,'newOptions':_0x19e10b};this[_0x15dca7(0x275)][_0x15dca7(0x466)](_0x41489b);}}[_0x2d7eb5(0x3a7)](){const _0x4f997d=_0x2d7eb5;return{...this[_0x4f997d(0x265)]};}[_0x2d7eb5(0x3dd)](_0x23e66a){const _0x5c96a5=_0x2d7eb5;let _0x118526=this[_0x5c96a5(0x25d)];if(_0x118526!==_0x23e66a&&(this[_0x5c96a5(0x25d)]=_0x23e66a,this[_0x5c96a5(0x275)])){let _0x68b5cd={'type':0xd,'oldLayout':_0x118526,'newLayout':_0x23e66a};this[_0x5c96a5(0x275)]['push'](_0x68b5cd);}}[_0x2d7eb5(0x340)](){const _0x3497b5=_0x2d7eb5;return this[_0x3497b5(0x25d)];}['setCollapse'](_0x355249,_0x2ef7af,_0x26a424,_0x924ce7){const _0x523bfb=_0x2d7eb5;let _0x3efc8a=this[_0x523bfb(0x3e8)][_0x355249];if(_0x26a424!==void 0x0){let _0xfea058=_0x3efc8a===!0x0?Object[_0x523bfb(0x291)]((_0x924ce7??[])[_0x523bfb(0x39b)](_0x126cfd=>[_0x126cfd,!0x0])):_0x3efc8a,_0x196d07=Object[_0x523bfb(0x1aa)](Object[_0x523bfb(0x2c0)](null),typeof _0xfea058==_0x523bfb(0x4c3)?_0xfea058:void 0x0);_0x196d07[_0x26a424]=_0x2ef7af===!0x0,this[_0x523bfb(0x3e8)][_0x355249]=_0x196d07;}else _0x2ef7af===void 0x0?delete this[_0x523bfb(0x3e8)][_0x355249]:this[_0x523bfb(0x3e8)][_0x355249]=typeof _0x2ef7af==_0x523bfb(0x4c3)?Object[_0x523bfb(0x1aa)](Object[_0x523bfb(0x2c0)](null),_0x2ef7af):_0x2ef7af;if(this['_changeStack']){let _0x11cb76=this[_0x523bfb(0x3e8)][_0x355249],_0x439451={'type':0xa,'fieldId':_0x355249,'collapse':typeof _0x11cb76==_0x523bfb(0x4c3)?{..._0x11cb76}:_0x11cb76,'previous':{'collapse':typeof _0x3efc8a==_0x523bfb(0x4c3)?{..._0x3efc8a}:_0x3efc8a}};this['_changeStack'][_0x523bfb(0x466)](_0x439451);}}[_0x2d7eb5(0x2d9)](_0x4eb910,_0x482939,_0x35c425){const _0x253040=_0x2d7eb5;let _0x310a55=this[_0x253040(0x375)][_0x4eb910];if(!_0x310a55)return;if(_0x482939===void 0x0){if(_0x35c425!==void 0x0){this['_clearSourceFilterCategory'](_0x310a55[_0x253040(0x2e0)],void 0x0,_0x35c425);return;}this[_0x253040(0x2d7)](_0x4eb910,void 0x0);return;}let _0x378113=D(_0x482939)||S(_0x482939)?k(_0x482939):_0x482939,_0x7f8be6=_0x310a55[_0x253040(0x4cf)](),_0x4a1ac8=_0x35c425??(_0x482939[_0x253040(0x43b)]===0x1||D(_0x482939)&&_0x482939[_0x253040(0x4fe)]!==void 0x0?_0x253040(0x4cc):_0x253040(0x519));if((D(_0x482939)?O({'type':0x4,..._0x4a1ac8==='member'?{'selection':_0x482939[_0x253040(0x20a)]}:{'dateRange':_0x482939['dateRange']}}):O(_0x482939))&&this[_0x253040(0x265)][_0x253040(0x3d5)]!==!0x0){this[_0x253040(0x331)](_0x310a55[_0x253040(0x2e0)],_0x4eb910),D(_0x378113)&&(_0x378113={'type':0x4,..._0x4a1ac8==='member'?{'selection':_0x378113['selection']}:{'dateRange':_0x378113[_0x253040(0x4fe)]}}),this['setFieldFilterState'](_0x4eb910,_0x378113);return;}this[_0x253040(0x468)](_0x310a55['dataFieldId'],_0x4eb910,_0x4a1ac8);let _0x573690=_0x310a55[_0x253040(0x306)]();if(D(_0x378113)){if(_0x4a1ac8===_0x253040(0x4cc)){if(_0x573690=void 0x0,(_0x7f8be6==null?void 0x0:_0x7f8be6[_0x253040(0x43b)])===0x3&&_0x378113[_0x253040(0x20a)]===void 0x0&&_0x378113[_0x253040(0x4fe)]){this[_0x253040(0x2d7)](_0x4eb910,_0x7f8be6,{'type':0x4,'dateRange':_0x378113[_0x253040(0x4fe)]});return;}D(_0x7f8be6)&&_0x378113[_0x253040(0x20a)]===void 0x0&&(_0x378113={..._0x378113,..._0x7f8be6['selection']?{'selection':_0x7f8be6[_0x253040(0x20a)]}:{}});}else D(_0x7f8be6)&&_0x7f8be6[_0x253040(0x4fe)]&&(_0x378113={..._0x378113,'dateRange':_0x7f8be6[_0x253040(0x4fe)]});}else _0x378113[_0x253040(0x43b)]===0x3&&D(_0x7f8be6)&&_0x7f8be6[_0x253040(0x4fe)]&&(_0x573690={'type':0x4,'dateRange':_0x7f8be6['dateRange']});if(_0x378113[_0x253040(0x43b)]===0x1&&_0x7f8be6&&_0x7f8be6[_0x253040(0x43b)]!==0x1){let _0x1c72f2=k(_0x7f8be6);D(_0x1c72f2)&&delete _0x1c72f2[_0x253040(0x4fe)],this[_0x253040(0x2d7)](_0x4eb910,_0x1c72f2,_0x378113);}else this[_0x253040(0x2d7)](_0x4eb910,_0x378113,_0x378113[_0x253040(0x43b)]===0x1?void 0x0:_0x573690);}[_0x2d7eb5(0x2d7)](_0x2496d8,_0x106636,_0x5165dd){const _0x43e510=_0x2d7eb5;if(this[_0x43e510(0x375)][_0x2496d8]){if(_0x5165dd&&((_0x106636==null?void 0x0:_0x106636[_0x43e510(0x43b)])===0x1||D(_0x106636)&&_0x106636[_0x43e510(0x4fe)]!==void 0x0))throw TypeError('Ambiguous\x20pivot\x20condition\x20state.');let _0x2444e6=k(_0x5165dd);if(_0x2444e6&&_0x2444e6[_0x43e510(0x43b)]!==0x1&&(!D(_0x2444e6)||!_0x2444e6[_0x43e510(0x4fe)]||_0x2444e6[_0x43e510(0x20a)]!==void 0x0))throw TypeError(_0x43e510(0x1fc));let _0xfedb71=this[_0x43e510(0x375)][_0x2496d8]['conditionFilter'],_0x443784=this[_0x43e510(0x375)][_0x2496d8][_0x43e510(0x4cf)](),_0x1e0df4=_0x443784===void 0x0||D(_0x443784)||S(_0x443784)?_0x443784:{..._0x443784};if(this['dimension'][_0x2496d8][_0x43e510(0x1fe)](_0x106636),this[_0x43e510(0x375)][_0x2496d8]['setConditionFilterInfo'](_0x2444e6),this[_0x43e510(0x275)]){let _0x4897a9={'type':0x4,'fieldId':_0x2496d8,'oldFilterInfo':_0x1e0df4,'newFilterInfo':D(_0x106636)||S(_0x106636)?k(_0x106636):_0x106636,..._0xfedb71||_0x5165dd?{'oldConditionFilter':k(_0xfedb71)??null,'newConditionFilter':k(_0x5165dd)??null}:{}};this[_0x43e510(0x275)][_0x43e510(0x466)](_0x4897a9);}this[_0x43e510(0x330)](!0x0);}}[_0x2d7eb5(0x52d)](_0x336b79,_0x3199f1,_0x88132){const _0xbf0fb6=_0x2d7eb5;this[_0xbf0fb6(0x1a2)](_0x336b79,_0x3199f1,_0x88132,!0x0);}['setValueFilterState'](_0x1abca7,_0x5dc455,_0x3094b8){const _0x3ab327=_0x2d7eb5;this[_0x3ab327(0x1a2)](_0x1abca7,_0x5dc455,_0x3094b8,!0x1);}[_0x2d7eb5(0x1a2)](_0x172089,_0x4a32fa,_0x4eade9,_0xac4299){const _0x5da9a5=_0x2d7eb5;let _0x1fc2f1=this['_valueFilterInfo'][_0x5da9a5(0x4c6)](_0x26bfdd=>_0x26bfdd[_0x5da9a5(0x420)]===_0x172089);if(_0x4a32fa===void 0x0&&_0x1fc2f1===-0x1)return;let {area:_0x43059e}=this[_0x5da9a5(0x3e6)](_0x172089);if(_0x4a32fa!==void 0x0&&(_0x43059e===void 0x0||!I(_0x43059e)||!this[_0x5da9a5(0x225)][_0x4a32fa[_0x5da9a5(0x3f0)]]||_0x4a32fa[_0x5da9a5(0x43b)]!==0x2||!re(_0x4a32fa[_0x5da9a5(0x403)]))){console[_0x5da9a5(0x284)](_0x5da9a5(0x27a));return;}if(_0xac4299&&_0x4a32fa&&this['options'][_0x5da9a5(0x3d5)]!==!0x0){let _0x5a1df2=this[_0x5da9a5(0x375)][_0x172089];this[_0x5da9a5(0x331)](_0x5a1df2[_0x5da9a5(0x2e0)],_0x172089,!0x0),(_0x5a1df2['filterInfo']||_0x5a1df2[_0x5da9a5(0x379)])&&this[_0x5da9a5(0x2d7)](_0x172089,void 0x0),_0x1fc2f1=this[_0x5da9a5(0x286)][_0x5da9a5(0x4c6)](_0x3fb041=>_0x3fb041['fieldId']===_0x172089);}else _0xac4299&&_0x4a32fa&&(this[_0x5da9a5(0x468)](this[_0x5da9a5(0x375)][_0x172089][_0x5da9a5(0x2e0)],_0x172089,_0x5da9a5(0x414)),_0x1fc2f1=this[_0x5da9a5(0x286)]['findIndex'](_0x485458=>_0x485458[_0x5da9a5(0x420)]===_0x172089));let _0x1863fd=_0x1fc2f1===-0x1?void 0x0:this['_valueFilterInfo'][_0x1fc2f1][_0x5da9a5(0x382)];_0x1fc2f1!==-0x1&&this[_0x5da9a5(0x286)][_0x5da9a5(0x1ed)](_0x1fc2f1,0x1);let _0x1374d0=-0x1;if(_0x4a32fa&&(_0x1374d0=!_0xac4299&&_0x4eade9!==void 0x0&&_0x4eade9>=0x0?Math[_0x5da9a5(0x4e2)](_0x4eade9,this[_0x5da9a5(0x286)][_0x5da9a5(0x2a6)]):_0x1fc2f1===-0x1?Math[_0x5da9a5(0x4e2)](Math['max'](_0x4eade9??this['_valueFilterInfo'][_0x5da9a5(0x2a6)],0x0),this[_0x5da9a5(0x286)]['length']):_0x1fc2f1,this[_0x5da9a5(0x286)][_0x5da9a5(0x1ed)](_0x1374d0,0x0,{'fieldId':_0x172089,'filterInfo':Q(_0x4a32fa)})),this[_0x5da9a5(0x275)]){let _0x1c5360={'type':0xc,'fieldId':_0x172089,'oldFilterInfo':Q(_0x1863fd),'filterInfo':Q(_0x4a32fa),'oldIndex':_0x1fc2f1,'newIndex':_0x1374d0};this['_changeStack'][_0x5da9a5(0x466)](_0x1c5360);}}[_0x2d7eb5(0x339)](_0x5342a4){const _0x48f295=_0x2d7eb5;let _0x1e40a3=this['_valueFilterInfo'][_0x48f295(0x30a)](_0x514e72=>_0x514e72[_0x48f295(0x420)]===_0x5342a4);return Q(_0x1e40a3==null?void 0x0:_0x1e40a3['filterInfo']);}[_0x2d7eb5(0x306)](_0x5a614f){const _0x306c5e=_0x2d7eb5;var _0x5bb2fe;return(_0x5bb2fe=this[_0x306c5e(0x375)][_0x5a614f])==null?void 0x0:_0x5bb2fe[_0x306c5e(0x306)]();}[_0x2d7eb5(0x1f1)](_0x5af72f){const _0x41a203=_0x2d7eb5;let _0x13aebf=this[_0x41a203(0x375)][_0x5af72f];_0x13aebf&&(this['_clearSourceFilters'](_0x13aebf[_0x41a203(0x2e0)],_0x5af72f),this[_0x41a203(0x2d7)](_0x5af72f,void 0x0));}[_0x2d7eb5(0x43f)](){const _0x160079=_0x2d7eb5;for(let _0x5a8195 of Object[_0x160079(0x2d4)](this[_0x160079(0x375)]))(_0x5a8195[_0x160079(0x382)]||_0x5a8195['conditionFilter'])&&this[_0x160079(0x2d7)](_0x5a8195['id'],void 0x0);for(let _0x3bcc65 of this[_0x160079(0x286)]['slice']())this[_0x160079(0x52d)](_0x3bcc65['fieldId'],void 0x0);}[_0x2d7eb5(0x331)](_0x59dd8a,_0x4693ee,_0x22233a=!0x1){const _0x4d6e12=_0x2d7eb5;for(let _0x45dcc2 of Object[_0x4d6e12(0x2d4)](this[_0x4d6e12(0x375)]))_0x45dcc2[_0x4d6e12(0x2e0)]===_0x59dd8a&&(_0x45dcc2['id']!==_0x4693ee&&(_0x45dcc2[_0x4d6e12(0x382)]||_0x45dcc2[_0x4d6e12(0x379)])&&this[_0x4d6e12(0x2d7)](_0x45dcc2['id'],void 0x0),_0x22233a&&_0x45dcc2['id']===_0x4693ee||this['setValueFilterInfo'](_0x45dcc2['id'],void 0x0));}[_0x2d7eb5(0x468)](_0x4e07ff,_0x15d7d3,_0x489787){const _0x2d2f0a=_0x2d7eb5;for(let _0x36b3f9 of Object['values'](this['dimension'])){if(_0x36b3f9['id']===_0x15d7d3||_0x36b3f9[_0x2d2f0a(0x2e0)]!==_0x4e07ff)continue;if(_0x489787===_0x2d2f0a(0x414)){this[_0x2d2f0a(0x320)](_0x36b3f9['id'],void 0x0);continue;}if(!oe(_0x36b3f9['toJSON']())[_0x2d2f0a(0x345)](_0x489787))continue;let _0x57e63f=_0x36b3f9[_0x2d2f0a(0x4cf)](),_0x4c7d4f=_0x36b3f9[_0x2d2f0a(0x379)];D(_0x57e63f)?(_0x57e63f=k(_0x57e63f),_0x489787===_0x2d2f0a(0x519)?delete _0x57e63f[_0x2d2f0a(0x20a)]:delete _0x57e63f[_0x2d2f0a(0x4fe)],!_0x57e63f[_0x2d2f0a(0x20a)]&&!_0x57e63f['dateRange']&&(_0x57e63f=void 0x0)):_0x57e63f&&_0x57e63f[_0x2d2f0a(0x43b)]===0x1==(_0x489787===_0x2d2f0a(0x4cc))&&(_0x57e63f=void 0x0),_0x489787===_0x2d2f0a(0x4cc)&&(_0x4c7d4f=void 0x0),(_0x57e63f!==_0x36b3f9[_0x2d2f0a(0x382)]||_0x4c7d4f!==_0x36b3f9[_0x2d2f0a(0x379)])&&this[_0x2d2f0a(0x2d7)](_0x36b3f9['id'],_0x57e63f,_0x4c7d4f);}}[_0x2d7eb5(0x19d)](){const _0x437bb4=_0x2d7eb5;return this[_0x437bb4(0x286)]['map']($);}[_0x2d7eb5(0x3a8)](_0x12c673){const _0x55d796=_0x2d7eb5;this[_0x55d796(0x286)][_0x55d796(0x30a)](_0x4860c9=>_0x4860c9[_0x55d796(0x420)]===_0x12c673)&&this[_0x55d796(0x52d)](_0x12c673,void 0x0);}[_0x2d7eb5(0x19b)](_0x20eb6e){const _0x2475bb=_0x2d7eb5;let _0x5581a8=this[_0x2475bb(0x286)][_0x2475bb(0x455)](_0x34003c=>_0x34003c['filterInfo'][_0x2475bb(0x3f0)]===_0x20eb6e);if(_0x5581a8&&_0x5581a8[_0x2475bb(0x2a6)]>0x0){let _0x15833d=_0x5581a8['length'];for(let _0x1dbb53=_0x15833d-0x1;_0x1dbb53>=0x0;_0x1dbb53--)this[_0x2475bb(0x52d)](_0x5581a8[_0x1dbb53]['fieldId'],void 0x0);}}[_0x2d7eb5(0x4e4)](_0x118279){const _0x5134ad=_0x2d7eb5;if(this['dimension'][_0x118279])return this[_0x5134ad(0x375)][_0x118279]['getFormat']();if(this['measure'][_0x118279])return this[_0x5134ad(0x225)][_0x118279][_0x5134ad(0x378)]();}['setFieldFormat'](_0x28916a,_0xacc6f1){const _0x501498=_0x2d7eb5;let _0x5c2c15;if(this['dimension'][_0x28916a]&&this['dimension'][_0x28916a]['setFormat'](_0xacc6f1),this[_0x501498(0x225)][_0x28916a]&&this[_0x501498(0x225)][_0x28916a][_0x501498(0x2e8)](_0xacc6f1),this[_0x501498(0x275)]&&(this['dimension'][_0x28916a]||this['measure'][_0x28916a])){let _0x4d4c03={'type':0x9,'fieldId':_0x28916a,'oldFormat':_0x5c2c15,'newFormat':_0xacc6f1};this['_changeStack'][_0x501498(0x466)](_0x4d4c03);}}[_0x2d7eb5(0x42a)](_0x5cf92d,_0x2b90d8){const _0x5b10bd=_0x2d7eb5;if(this[_0x5b10bd(0x375)][_0x5cf92d]){let _0x5beed7=this['dimension'][_0x5cf92d],_0x296894=_0x5beed7[_0x5b10bd(0x33f)]();if(_0x5beed7[_0x5b10bd(0x42a)](_0x2b90d8),this[_0x5b10bd(0x275)]){let _0x479d26={'type':0x5,'fieldId':_0x5cf92d,'newSortInfo':_0x5beed7[_0x5b10bd(0x33f)](),'oldSortInfo':_0x296894};this['_changeStack']['push'](_0x479d26);}}}[_0x2d7eb5(0x33f)](_0x170e5b){const _0x177e69=_0x2d7eb5;if(this[_0x177e69(0x375)][_0x170e5b])return this[_0x177e69(0x375)][_0x170e5b][_0x177e69(0x33f)]();}[_0x2d7eb5(0x4cf)](_0x252a54){const _0x234ad6=_0x2d7eb5;if(this[_0x234ad6(0x375)][_0x252a54])return this[_0x234ad6(0x375)][_0x252a54][_0x234ad6(0x4cf)]();}[_0x2d7eb5(0x3ad)](_0xba2e4){const _0x21bce1=_0x2d7eb5;Object[_0x21bce1(0x2d4)](this[_0x21bce1(0x375)])['forEach'](_0x2226ee=>{_0xba2e4(_0x2226ee);}),Object[_0x21bce1(0x2d4)](this[_0x21bce1(0x225)])[_0x21bce1(0x4ea)](_0x2ef57b=>{_0xba2e4(_0x2ef57b);});}['iterateFieldDim'](_0x3eefd4){const _0x625a7d=_0x2d7eb5;Object[_0x625a7d(0x2d4)](this[_0x625a7d(0x375)])[_0x625a7d(0x4ea)](_0x5117eb=>{_0x3eefd4(_0x5117eb);});}[_0x2d7eb5(0x429)](_0x45ad00){const _0x5edf77=_0x2d7eb5;Object[_0x5edf77(0x2d4)](this['measure'])[_0x5edf77(0x4ea)](_0x2f96ec=>{_0x45ad00(_0x2f96ec);});}['iterateFieldByArea'](_0x20211e,_0x48e95a){const _0x339d4c=_0x2d7eb5;this[_0x339d4c(0x1be)](_0x20211e)['forEach'](_0x5135cf=>{const _0x105633=_0x339d4c;let _0x4c6645=this[_0x105633(0x2f8)](_0x5135cf);_0x4c6645&&_0x48e95a(_0x4c6645);});}[_0x2d7eb5(0x208)](_0x535882,_0x18b51a,_0x15e3a6){const _0x5e06a0=_0x2d7eb5;if(this['getFieldById'](_0x535882['getId']())){console['error']('The\x20field\x20'+_0x535882['getId']()+_0x5e06a0(0x51a)+_0x535882[_0x5e06a0(0x503)]()+_0x5e06a0(0x424));return;}F(_0x18b51a)?this['dimension'][_0x535882['id']]=_0x535882:this[_0x5e06a0(0x225)][_0x535882['id']]=_0x535882;let _0x4a570d;switch(_0x18b51a){case 0x1:_0x4a570d=this[_0x5e06a0(0x218)];break;case 0x2:_0x4a570d=this[_0x5e06a0(0x298)];break;case 0x3:_0x4a570d=this[_0x5e06a0(0x3ac)];break;case 0x4:_0x4a570d=this[_0x5e06a0(0x34a)];break;case 0x5:_0x4a570d=this[_0x5e06a0(0x3d7)];}_0x15e3a6===void 0x0?_0x4a570d[_0x5e06a0(0x466)](_0x535882['id']):_0x4a570d[_0x5e06a0(0x1ed)](_0x15e3a6,0x0,_0x535882['id']);let _0x5076aa=_0x15e3a6===void 0x0?_0x4a570d['length']-0x1:_0x15e3a6;if(this[_0x5e06a0(0x275)]){let _0x497373={'type':0x0,'fieldJson':_0x535882['toJSON'](),'area':_0x18b51a,'index':_0x5076aa};this[_0x5e06a0(0x275)]['push'](_0x497373);}this[_0x5e06a0(0x330)](!0x0);}[_0x2d7eb5(0x3e6)](_0x3d4592){const _0x44c86c=_0x2d7eb5;let _0x5135da,_0x3246ec=-0x1;return this['columnFields']['indexOf'](_0x3d4592)===-0x1?this[_0x44c86c(0x298)]['indexOf'](_0x3d4592)===-0x1?this['valueFields'][_0x44c86c(0x3fa)](_0x3d4592)===-0x1?this[_0x44c86c(0x34a)]['indexOf'](_0x3d4592)===-0x1?this[_0x44c86c(0x3d7)][_0x44c86c(0x3fa)](_0x3d4592)!==-0x1&&(_0x5135da=0x5,_0x3246ec=this[_0x44c86c(0x3d7)]['indexOf'](_0x3d4592)):(_0x5135da=0x4,_0x3246ec=this[_0x44c86c(0x34a)][_0x44c86c(0x3fa)](_0x3d4592)):(_0x5135da=0x3,_0x3246ec=this['valueFields'][_0x44c86c(0x3fa)](_0x3d4592)):(_0x5135da=0x2,_0x3246ec=this['rowFields'][_0x44c86c(0x3fa)](_0x3d4592)):(_0x5135da=0x1,_0x3246ec=this[_0x44c86c(0x218)][_0x44c86c(0x3fa)](_0x3d4592)),{'area':_0x5135da,'index':_0x3246ec};}[_0x2d7eb5(0x2b1)](_0xcc1244,_0x29d8a1,_0x1b22a1){const _0x41cfa2=_0x2d7eb5;let _0x177d12=this[_0x41cfa2(0x2f8)](_0xcc1244);if(_0x177d12){let _0x54b283=_0x177d12[_0x41cfa2(0x46e)](),_0x5b4efc=_0x177d12[_0x41cfa2(0x52a)]();if(_0x177d12['setSourceName'](_0x29d8a1),_0x177d12[_0x41cfa2(0x50c)](_0x1b22a1),this[_0x41cfa2(0x275)]){let _0x30882f={'type':0xb,'tableFieldId':_0xcc1244,'oldSourceName':_0x54b283,'newSourceName':_0x29d8a1,'oldDataFieldId':_0x5b4efc,'newDataFieldId':_0x1b22a1};this['_changeStack'][_0x41cfa2(0x466)](_0x30882f);}this[_0x41cfa2(0x330)](!0x0);}}[_0x2d7eb5(0x1be)](_0x760c33){const _0x5506d0=_0x2d7eb5;switch(_0x760c33){case 0x1:return this[_0x5506d0(0x218)];case 0x2:return this[_0x5506d0(0x298)];case 0x3:return this[_0x5506d0(0x3ac)];case 0x4:return this['filterFields'];case 0x5:return this[_0x5506d0(0x3d7)];}}[_0x2d7eb5(0x2f8)](_0xaa3485){const _0x1a3941=_0x2d7eb5;if(this[_0x1a3941(0x375)][_0xaa3485])return this['dimension'][_0xaa3485];if(this[_0x1a3941(0x225)][_0xaa3485])return this[_0x1a3941(0x225)][_0xaa3485];}['isExistFieldName'](_0x3858bf){const _0x2c76ee=_0x2d7eb5;for(let _0x2dd97c of Object[_0x2c76ee(0x2d4)](this[_0x2c76ee(0x375)]))if(_0x2dd97c[_0x2c76ee(0x503)]()===_0x3858bf)return!0x0;for(let _0x784791 of Object[_0x2c76ee(0x2d4)](this[_0x2c76ee(0x225)]))if(_0x784791[_0x2c76ee(0x503)]()===_0x3858bf)return!0x0;return!0x1;}['renameField'](_0x56f70f,_0x569054){const _0x16d202=_0x2d7eb5;let {area:_0x19884e,index:_0x54650f}=this[_0x16d202(0x3e6)](_0x56f70f);if(_0x19884e===void 0x0||_0x54650f===-0x1){console[_0x16d202(0x318)](_0x16d202(0x2a8)+_0x56f70f+_0x16d202(0x410));return;}let _0x295366=this['getFieldById'](_0x56f70f);if(!_0x295366){console[_0x16d202(0x318)](_0x16d202(0x2a8)+_0x56f70f+_0x16d202(0x410));return;}let _0x2eca81=_0x295366['getDisplayName']();if(_0x2eca81!==_0x569054){if(this[_0x16d202(0x322)](_0x569054))console[_0x16d202(0x318)](_0x16d202(0x213)+_0x569054+_0x16d202(0x326));else{if(_0x295366[_0x16d202(0x1a4)](_0x569054),this[_0x16d202(0x275)]){let _0x1318f5={'type':0x3,'fieldId':_0x56f70f,'newName':_0x569054,'oldName':_0x2eca81};this[_0x16d202(0x275)]['push'](_0x1318f5);}}}}[_0x2d7eb5(0x3c2)](_0x59344b){const _0x4d9bf7=_0x2d7eb5;let {area:_0x253a94,index:_0x21faf4}=this[_0x4d9bf7(0x3e6)](_0x59344b);if(_0x253a94===void 0x0||_0x21faf4===-0x1){console[_0x4d9bf7(0x318)](_0x4d9bf7(0x2a8)+_0x59344b+_0x4d9bf7(0x410));return;}_0x253a94===0x3?this[_0x4d9bf7(0x19b)](_0x59344b):I(_0x253a94)&&this['removeValueFilterInfo'](_0x59344b),this['getFieldsAreaByType'](_0x253a94)[_0x4d9bf7(0x1ed)](_0x21faf4,0x1);let _0x3a3fc7;if(F(_0x253a94)?(_0x3a3fc7=this[_0x4d9bf7(0x375)][_0x59344b][_0x4d9bf7(0x3e0)](),delete this[_0x4d9bf7(0x375)][_0x59344b]):(_0x3a3fc7=this['measure'][_0x59344b][_0x4d9bf7(0x3e0)](),delete this[_0x4d9bf7(0x225)][_0x59344b]),this[_0x4d9bf7(0x275)]){let _0x4290fb={'type':0x2,'fieldId':_0x59344b,'fieldJson':_0x3a3fc7,'area':_0x253a94,'index':_0x21faf4};this[_0x4d9bf7(0x275)][_0x4d9bf7(0x466)](_0x4290fb);}this[_0x4d9bf7(0x330)](!0x0);}[_0x2d7eb5(0x50e)](_0x22e0b4,_0x4a9f44,_0x318648){const _0x52e5c1=_0x2d7eb5;let {area:_0x4bab60,index:_0x3c481b}=this['getFieldPositionInfoById'](_0x22e0b4);if(_0x4bab60===_0x4a9f44&&_0x3c481b===_0x318648)return;if(_0x4bab60===void 0x0&&_0x3c481b===-0x1){console[_0x52e5c1(0x318)](_0x52e5c1(0x2a8)+_0x22e0b4+_0x52e5c1(0x410));return;}let _0x407cb2=this[_0x52e5c1(0x1be)](_0x4a9f44);this[_0x52e5c1(0x1be)](_0x4bab60)['splice'](_0x3c481b,0x1),_0x407cb2[_0x52e5c1(0x1ed)](_0x318648,0x0,_0x22e0b4);let _0x56dd87=F(_0x4bab60);if(_0x56dd87!==F(_0x4a9f44)){if(_0x56dd87){let _0x1d92f0=this['dimension'][_0x22e0b4];delete this[_0x52e5c1(0x375)][_0x22e0b4];let _0xfb93b4=wt(_0x1d92f0);this[_0x52e5c1(0x225)][_0x22e0b4]=_0xfb93b4;}else{let _0x2053d4=this[_0x52e5c1(0x225)][_0x22e0b4];delete this[_0x52e5c1(0x225)][_0x22e0b4];let _0x14bbb8=Tt(_0x2053d4);this[_0x52e5c1(0x375)][_0x22e0b4]=_0x14bbb8;}}if(this[_0x52e5c1(0x275)]){let _0x351ade={'type':0x6,'fieldId':_0x22e0b4,'oldArea':_0x4bab60,'newArea':_0x4a9f44,'oldIndex':_0x3c481b,'newIndex':_0x318648};this[_0x52e5c1(0x275)][_0x52e5c1(0x466)](_0x351ade);}I(_0x4bab60)&&I(_0x4a9f44)||_0x4bab60===0x3&&_0x4a9f44===0x3||_0x4bab60===0x5&&_0x4a9f44===0x5||_0x4bab60===0x4&&_0x4a9f44===0x4||this['setDirty'](!0x0);}[_0x2d7eb5(0x48c)](_0x3b4a51,_0x17d564){const _0x2a8ff7=_0x2d7eb5;let _0x560986=this['valuePosition'],_0x1964e2=this[_0x2a8ff7(0x537)];if(this[_0x2a8ff7(0x25b)]=_0x3b4a51,this[_0x2a8ff7(0x537)]=_0x17d564,this[_0x2a8ff7(0x275)]){let _0x4fda67={'type':0x7,'oldValuePosition':_0x560986,'newValuePosition':_0x3b4a51,'oldIndex':_0x1964e2,'newIndex':_0x17d564};this[_0x2a8ff7(0x275)][_0x2a8ff7(0x466)](_0x4fda67);}}['getValueIndex'](){const _0x1691c8=_0x2d7eb5;return this[_0x1691c8(0x537)];}[_0x2d7eb5(0x1d9)](){const _0x2dcf84=_0x2d7eb5;return this[_0x2dcf84(0x25b)];}[_0x2d7eb5(0x451)](){const _0x430418=_0x2d7eb5;return this[_0x430418(0x3ac)][_0x430418(0x2a6)]<=0x1?!0x1:this[_0x430418(0x25b)]===0x1;}[_0x2d7eb5(0x4bc)](){const _0x2ea6b7=_0x2d7eb5;return this[_0x2ea6b7(0x3ac)][_0x2ea6b7(0x2a6)]<=0x1?!0x1:this['valuePosition']===0x2;}[_0x2d7eb5(0x44d)](){const _0x4a6376=_0x2d7eb5;return[]['concat'](this[_0x4a6376(0x298)],this[_0x4a6376(0x218)],this[_0x4a6376(0x3ac)],this[_0x4a6376(0x34a)])[_0x4a6376(0x2a6)]===0x0;}[_0x2d7eb5(0x400)](_0x838ed3,_0x34fb33){const _0x34f918=_0x2d7eb5;if(this[_0x34f918(0x225)][_0x838ed3]){let _0x407964=this[_0x34f918(0x225)][_0x838ed3]['getSubtotal']();if(this[_0x34f918(0x225)][_0x838ed3][_0x34f918(0x27e)](_0x34fb33),this[_0x34f918(0x275)]){let _0x29473c={'type':0x1,'fieldId':_0x838ed3,'newSubtotalType':_0x34fb33,'oldSubtotalType':_0x407964};this[_0x34f918(0x275)][_0x34f918(0x466)](_0x29473c);}this[_0x34f918(0x330)](!0x0);}}[_0x2d7eb5(0x3f3)](_0x533623){const _0x3b92f4=_0x2d7eb5;var _0x4f4041;return(_0x4f4041=this[_0x3b92f4(0x225)][_0x533623])==null?void 0x0:_0x4f4041[_0x3b92f4(0x3f3)]();}[_0x2d7eb5(0x52b)](_0x31c099,_0x2915c0){const _0x40be75=_0x2d7eb5;let _0xee7739=this['measure'][_0x31c099];if(!_0xee7739)return;let _0x4cfbf1=_0xee7739['getShowDataAs']();if(_0xee7739['setShowDataAs'](_0x2915c0),this[_0x40be75(0x275)]){let _0x2ccafd={'type':0xe,'fieldId':_0x31c099,'oldShowDataAs':_0x4cfbf1,'newShowDataAs':_0xee7739[_0x40be75(0x3f3)]()};this['_changeStack'][_0x40be75(0x466)](_0x2ccafd);}}[_0x2d7eb5(0x31f)](){const _0x3052d5=_0x2d7eb5;let _0xc6811e=this['dimension'],_0x39821a=[];for(let _0x920748 of this[_0x3052d5(0x298)])_0xc6811e[_0x920748]&&_0x39821a[_0x3052d5(0x466)](_0xc6811e[_0x920748]['getQueryData']());let _0x36f400=[];for(let _0x26f22d of this[_0x3052d5(0x218)])_0xc6811e[_0x26f22d]&&_0x36f400['push'](_0xc6811e[_0x26f22d][_0x3052d5(0x31f)]());let _0x30ab3e=[];for(let _0x472176 of this['filterFields'])_0xc6811e[_0x472176]&&_0x30ab3e[_0x3052d5(0x466)](_0xc6811e[_0x472176][_0x3052d5(0x31f)]());let _0x740c53=[];for(let _0x38db70 of this[_0x3052d5(0x3d7)])_0xc6811e[_0x38db70]&&_0x740c53[_0x3052d5(0x466)](_0xc6811e[_0x38db70]['getQueryData']());let _0x438b57=[];for(let _0x4a0ded of this[_0x3052d5(0x3ac)])this[_0x3052d5(0x225)][_0x4a0ded]&&_0x438b57['push'](this['measure'][_0x4a0ded][_0x3052d5(0x31f)]());let _0x5081d5=[];for(let _0x2475bc of this[_0x3052d5(0x286)]){let {fieldId:_0x988ab6,filterInfo:_0x45e0be}=_0x2475bc;_0xc6811e[_0x988ab6]&&this['measure'][_0x45e0be[_0x3052d5(0x3f0)]]&&_0x5081d5[_0x3052d5(0x466)]($(_0x2475bc));}return{'rowQueryInfo':_0x39821a,'colQueryInfo':_0x36f400,'filterQueryInfo':_0x30ab3e,'hiddenQueryInfo':_0x740c53,'valueQueryInfo':_0x438b57,'collapseInfo':{...this[_0x3052d5(0x3e8)]},'valueFilterInfo':_0x5081d5};}['reset'](_0x557952){const _0x597960=_0x2d7eb5;_0x557952===void 0x0?(this['rowFields']=[],this[_0x597960(0x218)]=[],this[_0x597960(0x3ac)]=[],this[_0x597960(0x34a)]=[],this[_0x597960(0x3d7)]=[],this[_0x597960(0x375)]=Object[_0x597960(0x2c0)](null),this[_0x597960(0x225)]=Object[_0x597960(0x2c0)](null),this[_0x597960(0x537)]=-0x1,this[_0x597960(0x25b)]=-0x1,this[_0x597960(0x3e8)]=Object[_0x597960(0x2c0)](null),this[_0x597960(0x265)]={}):_0x557952===0x1?(this[_0x597960(0x218)][_0x597960(0x4ea)](_0x2f53d6=>{delete this['dimension'][_0x2f53d6];}),this[_0x597960(0x218)]=[]):_0x557952===0x2?(this[_0x597960(0x298)][_0x597960(0x4ea)](_0x2d5f07=>{const _0xadcd10=_0x597960;delete this[_0xadcd10(0x375)][_0x2d5f07];}),this[_0x597960(0x298)]=[]):_0x557952===0x4?(this[_0x597960(0x34a)]['forEach'](_0x55c583=>{const _0x225752=_0x597960;delete this[_0x225752(0x375)][_0x55c583];}),this[_0x597960(0x34a)]=[]):_0x557952===0x3&&(this[_0x597960(0x3ac)][_0x597960(0x4ea)](_0x27408e=>{const _0x331ed7=_0x597960;delete this[_0x331ed7(0x225)][_0x27408e];}),this[_0x597960(0x537)]=-0x1,this['valuePosition']=-0x1,this[_0x597960(0x3ac)]=[]);}[_0x2d7eb5(0x3d9)](_0x411b61){const _0x59e372=_0x2d7eb5;this['dimension']=Object[_0x59e372(0x4d1)](_0x411b61[_0x59e372(0x375)])[_0x59e372(0x1ef)]((_0x2476ac,_0x531b38)=>{const _0x32a0b2=_0x59e372;let _0x4a6ebf=_0x411b61['dimension'][_0x531b38],_0x1d1401=new Z(_0x4a6ebf[_0x32a0b2(0x2e0)],_0x4a6ebf['id'],_0x4a6ebf[_0x32a0b2(0x392)],_0x4a6ebf['sourceName']);return _0x1d1401[_0x32a0b2(0x3d9)](_0x4a6ebf),_0x2476ac[_0x531b38]=_0x1d1401,_0x2476ac;},Object[_0x59e372(0x2c0)](null)),this[_0x59e372(0x225)]=Object[_0x59e372(0x4d1)](_0x411b61[_0x59e372(0x225)])[_0x59e372(0x1ef)]((_0x5c9189,_0x4a0c51)=>{const _0x7b4ed3=_0x59e372;let _0x120293=_0x411b61[_0x7b4ed3(0x225)][_0x4a0c51],_0x32dc12=new X(_0x120293[_0x7b4ed3(0x2e0)],_0x120293['id'],_0x120293['displayName'],_0x120293[_0x7b4ed3(0x465)]);return _0x32dc12['fromJSON'](_0x411b61['measure'][_0x4a0c51]),_0x5c9189[_0x4a0c51]=_0x32dc12,_0x5c9189;},Object[_0x59e372(0x2c0)](null)),this[_0x59e372(0x34a)]=_0x411b61[_0x59e372(0x34a)]['concat'](),this[_0x59e372(0x3d7)]=_0x411b61[_0x59e372(0x3d7)][_0x59e372(0x4f6)](),this[_0x59e372(0x298)]=_0x411b61['rowFields']['concat'](),this[_0x59e372(0x3ac)]=_0x411b61['valueFields'][_0x59e372(0x4f6)](),this[_0x59e372(0x218)]=_0x411b61[_0x59e372(0x218)]['concat'](),this['layout']=_0x411b61[_0x59e372(0x25d)]??0x3,this[_0x59e372(0x537)]=_0x411b61[_0x59e372(0x537)],this[_0x59e372(0x25b)]=_0x411b61[_0x59e372(0x25b)],this['collapseInfo']=Object[_0x59e372(0x1aa)](Object['create'](null),_0x411b61[_0x59e372(0x3e8)]),this[_0x59e372(0x265)]={..._0x411b61[_0x59e372(0x265)]},this[_0x59e372(0x286)]=_0x411b61[_0x59e372(0x2b6)]?_0x411b61[_0x59e372(0x2b6)][_0x59e372(0x39b)]($):[];}[_0x2d7eb5(0x3e0)](){const _0x25cc44=_0x2d7eb5;let _0x46709a=Object['keys'](this[_0x25cc44(0x375)])[_0x25cc44(0x1ef)]((_0x4a77b4,_0x47326a)=>(_0x4a77b4[_0x47326a]=this['dimension'][_0x47326a]['toJSON'](),_0x4a77b4),Object[_0x25cc44(0x2c0)](null)),_0x42f927=Object[_0x25cc44(0x4d1)](this[_0x25cc44(0x225)])[_0x25cc44(0x1ef)]((_0x301957,_0x3b983f)=>(_0x301957[_0x3b983f]=this[_0x25cc44(0x225)][_0x3b983f][_0x25cc44(0x3e0)](),_0x301957),Object[_0x25cc44(0x2c0)](null)),_0x3e3093=this[_0x25cc44(0x286)][_0x25cc44(0x39b)]($);return{'columnFields':this['columnFields'][_0x25cc44(0x4f6)](),'dimension':_0x46709a,'measure':_0x42f927,'filterFields':this[_0x25cc44(0x34a)][_0x25cc44(0x4f6)](),'hiddenFields':this[_0x25cc44(0x3d7)][_0x25cc44(0x4f6)](),'rowFields':this[_0x25cc44(0x298)][_0x25cc44(0x4f6)](),'valueFields':this['valueFields']['concat'](),'layout':this[_0x25cc44(0x25d)],'valueIndex':this[_0x25cc44(0x537)],'valuePosition':this[_0x25cc44(0x25b)],'collapseInfo':{...this[_0x25cc44(0x3e8)]},'options':{...this[_0x25cc44(0x265)]},'valueFilter':_0x3e3093};}[_0x2d7eb5(0x1d7)](){const _0x210d16=_0x2d7eb5;let _0x4b5d5e=new e();return _0x4b5d5e['fromJSON'](this[_0x210d16(0x3e0)]()),_0x4b5d5e['setDirty'](this['getDirty']()),_0x4b5d5e;}};function Q(_0x4dd056){const _0x2d2d72=_0x2d7eb5;if(_0x4dd056)return{..._0x4dd056,'expected':Array[_0x2d2d72(0x394)](_0x4dd056[_0x2d2d72(0x2a0)])?_0x4dd056[_0x2d2d72(0x2a0)][_0x2d2d72(0x4f6)]():_0x4dd056[_0x2d2d72(0x2a0)]};}function $(_0x54c1dd){const _0x3738e0=_0x2d7eb5;return{'fieldId':_0x54c1dd[_0x3738e0(0x420)],'filterInfo':Q(_0x54c1dd[_0x3738e0(0x382)])};}var kt=class e{static[_0x2d7eb5(0x52f)](_0x31a543,_0x3a0f0f){const _0x33943b=_0x2d7eb5;var _0x45cf38;this[_0x33943b(0x473)][_0x31a543]||(this['_callbacks'][_0x31a543]=[]),(_0x45cf38=this['_callbacks'][_0x31a543])==null||_0x45cf38[_0x33943b(0x466)](_0x3a0f0f);}static['unRegisterCallbackWithEvent'](_0x37c7df,_0xb3fcd0){const _0x53515c=_0x2d7eb5;let _0x47e9c0=this[_0x53515c(0x473)][_0x37c7df];if(_0x47e9c0){let _0x196a90=_0x47e9c0[_0x53515c(0x3fa)](_0xb3fcd0);_0x196a90!==-0x1&&_0x47e9c0[_0x53515c(0x1ed)](_0x196a90,0x1),_0x47e9c0['length']===0x0&&delete this[_0x53515c(0x473)][_0x37c7df];}}constructor(_0x2bba3f,_0x4a4b06,_0x177d86){const _0x49b66b=_0x2d7eb5;M(this,_0x49b66b(0x309),void 0x0),M(this,'_model',void 0x0),M(this,_0x49b66b(0x461),void 0x0),M(this,_0x49b66b(0x205),void 0x0),M(this,_0x49b66b(0x1b2),void 0x0),M(this,_0x49b66b(0x3a6),_0x49b66b(0x434)),M(this,_0x49b66b(0x2df),void 0x0),M(this,_0x49b66b(0x1a7),void 0x0),this[_0x49b66b(0x309)]=_0x2bba3f,_0x4a4b06?this['_model']=_0x4a4b06:this[_0x49b66b(0x305)](),_0x177d86&&(this['_id']=_0x177d86);}[_0x2d7eb5(0x2b3)](_0x419778){const _0x20a56d=_0x2d7eb5;this[_0x20a56d(0x309)]=_0x419778;}[_0x2d7eb5(0x3bc)](_0xdd88e9,_0x17786b){const _0x25e680=_0x2d7eb5;let _0x506e68=this[_0x25e680(0x4dd)]()[_0x25e680(0x31f)]();for(let _0xd9f4eb of[..._0x506e68[_0x25e680(0x1ba)],..._0x506e68[_0x25e680(0x533)],..._0x506e68[_0x25e680(0x4e3)],..._0x506e68['hiddenQueryInfo']??[]])_0xd9f4eb[_0x25e680(0x2e0)]===_0xdd88e9&&(_0x17786b===_0x25e680(0x4fe)&&(_0xd9f4eb[_0x25e680(0x379)]=void 0x0),_0xd9f4eb[_0x25e680(0x382)]&&(D(_0xd9f4eb[_0x25e680(0x382)])?delete _0xd9f4eb['filterInfo'][_0x17786b]:_0xd9f4eb['filterInfo'][_0x25e680(0x43b)]===0x1==(_0x17786b==='dateRange')&&(_0xd9f4eb[_0x25e680(0x382)]=void 0x0)));let _0x2c060a=new yt();return _0x2c060a['prepare'](this[_0x25e680(0x309)],_0x506e68),_0x2c060a[_0x25e680(0x455)](_0x506e68);}[_0x2d7eb5(0x4dd)](){const _0x35364e=_0x2d7eb5;return this[_0x35364e(0x461)]?this['_bufferModel']:this['_model'];}[_0x2d7eb5(0x29e)](){const _0x21833b=_0x2d7eb5;this[_0x21833b(0x461)]=this['_model'][_0x21833b(0x1d7)](),this[_0x21833b(0x461)][_0x21833b(0x1ff)]();}[_0x2d7eb5(0x4ac)](){const _0x2aefe5=_0x2d7eb5;let _0x2524dc=this[_0x2aefe5(0x461)],_0x540a5c=_0x2524dc['endChangeStack']();return _0x2524dc[_0x2aefe5(0x529)]()&&this[_0x2aefe5(0x25c)][_0x2aefe5(0x330)](!0x0),this[_0x2aefe5(0x3b2)](),_0x540a5c;}['cancelCollectChangeset'](){const _0x58960d=_0x2d7eb5;this[_0x58960d(0x205)]=void 0x0,this[_0x58960d(0x1b2)]=void 0x0,this[_0x58960d(0x3a6)]='invalid',this[_0x58960d(0x461)]=void 0x0;}[_0x2d7eb5(0x305)](){const _0x6dc220=_0x2d7eb5;this[_0x6dc220(0x25c)]=new Ot();}['createLabelFieldByDataFieldId'](_0x223170,_0x5bc427,_0x2cc875){const _0x40b6ee=_0x2d7eb5;let _0x4e7084=this[_0x40b6ee(0x309)][_0x40b6ee(0x2f8)](_0x223170);if(_0x4e7084){let _0x284b1e=_0x2cc875||this['getUniqueFieldId']();return t[_0x40b6ee(0x496)]&&(_0x284b1e=_0x5bc427+'-'+_0x284b1e),new Z(_0x4e7084[_0x40b6ee(0x21a)](),_0x284b1e,_0x5bc427||this[_0x40b6ee(0x309)]['getDisplayName'](_0x223170),_0x4e7084[_0x40b6ee(0x43d)]);}}[_0x2d7eb5(0x2f2)](_0x581684,_0x5d8839){const _0x2dd122=_0x2d7eb5;let _0x91335c=this['dataFieldsCollection'][_0x2dd122(0x2f8)](_0x581684);if(_0x91335c){let _0x126ffa=_0x91335c[_0x2dd122(0x31e)]()===0x2?0x9:0x2,_0x2b72eb=(this[_0x2dd122(0x309)][_0x2dd122(0x20c)][_0x2dd122(0x510)]()||_e)(this[_0x2dd122(0x309)][_0x2dd122(0x503)](_0x581684),_0x126ffa),_0x4f0e5c=_0x5d8839||this[_0x2dd122(0x2b2)]();t[_0x2dd122(0x496)]&&(_0x4f0e5c=_0x2b72eb+'-'+_0x4f0e5c);let _0x58ac67=new X(_0x91335c['getId'](),_0x4f0e5c,this[_0x2dd122(0x3f2)](_0x2b72eb),_0x91335c[_0x2dd122(0x43d)]);return _0x58ac67[_0x2dd122(0x27e)](_0x126ffa),_0x58ac67;}}[_0x2d7eb5(0x48c)](_0x1b5023,_0x3fa2cc){const _0x37f8b2=_0x2d7eb5;this[_0x37f8b2(0x4dd)]()[_0x37f8b2(0x48c)](_0x1b5023,_0x3fa2cc);}['isColMultiMeasure'](){const _0x3da3c1=_0x2d7eb5;return this[_0x3da3c1(0x4dd)]()[_0x3da3c1(0x451)]();}[_0x2d7eb5(0x4bc)](){const _0x248bbf=_0x2d7eb5;return this[_0x248bbf(0x4dd)]()[_0x248bbf(0x4bc)]();}[_0x2d7eb5(0x36e)](){const _0x254a89=_0x2d7eb5;return this[_0x254a89(0x4dd)]()[_0x254a89(0x36e)]();}[_0x2d7eb5(0x1d9)](){const _0x37636c=_0x2d7eb5;return this[_0x37636c(0x4dd)]()[_0x37636c(0x1d9)]();}[_0x2d7eb5(0x3ad)](_0x1d2bdd){const _0x341f27=_0x2d7eb5;this[_0x341f27(0x4dd)]()[_0x341f27(0x3ad)](_0x1d2bdd);}['iterateFieldDim'](_0x438f97){const _0x1328a7=_0x2d7eb5;this['_getModel']()[_0x1328a7(0x1a8)](_0x438f97);}['iterateFieldByArea'](_0x55c4c3,_0x48bfaa){const _0x177354=_0x2d7eb5;this[_0x177354(0x4dd)]()[_0x177354(0x49d)](_0x55c4c3,_0x48bfaa);}[_0x2d7eb5(0x4ad)](_0xe8e4cd){const _0x350629=_0x2d7eb5;return this[_0x350629(0x4dd)]()[_0x350629(0x1be)](_0xe8e4cd)[_0x350629(0x2a6)];}[_0x2d7eb5(0x4fc)](){const _0x232499=_0x2d7eb5;return this['_getModel']()[_0x232499(0x3ac)];}[_0x2d7eb5(0x3f2)](_0x50e148){const _0x4b6df9=_0x2d7eb5;let _0x3c592f=this[_0x4b6df9(0x4dd)]();if(!_0x3c592f[_0x4b6df9(0x322)](_0x50e148))return _0x50e148;let _0xe41897=0x1;for(;_0x3c592f[_0x4b6df9(0x322)](_0x50e148+String(_0xe41897));)_0xe41897++;return _0x50e148+String(_0xe41897);}[_0x2d7eb5(0x412)](_0xcefd61){const _0x312d5b=_0x2d7eb5;var _0x12abd3;let _0x16a51b=(_0x12abd3=this[_0x312d5b(0x4dd)]()[_0x312d5b(0x2f8)](_0xcefd61))==null?void 0x0:_0x12abd3['dataFieldId'];if(_0x16a51b)return this[_0x312d5b(0x309)][_0x312d5b(0x2f8)](_0x16a51b);}[_0x2d7eb5(0x442)](_0x57bda2){const _0x21ad68=_0x2d7eb5;let _0xf55248=[];return this[_0x21ad68(0x3ad)](_0x37ab02=>{const _0x10d03e=_0x21ad68;_0x37ab02[_0x10d03e(0x52a)]()===_0x57bda2&&_0xf55248['push'](_0x37ab02);}),_0xf55248;}[_0x2d7eb5(0x21c)](_0x3ad198){const _0x1a0a3e=_0x2d7eb5;return this[_0x1a0a3e(0x4dd)]()[_0x1a0a3e(0x2f8)](_0x3ad198);}[_0x2d7eb5(0x24a)](_0x52233e){const _0x2cb386=_0x2d7eb5;return!!this[_0x2cb386(0x4dd)]()['getFieldById'](_0x52233e);}[_0x2d7eb5(0x44d)](){return this['_getModel']()['isEmpty']();}[_0x2d7eb5(0x32e)](_0x736d3a){const _0x3eab4f=_0x2d7eb5;return this['dataFieldsCollection'][_0x3eab4f(0x2f8)](_0x736d3a);}['getDataFieldIdByDisplayName'](_0x4fe6de){const _0x42e1d8=_0x2d7eb5;return this[_0x42e1d8(0x309)][_0x42e1d8(0x324)](_0x4fe6de);}[_0x2d7eb5(0x493)](){const _0x488354=_0x2d7eb5;return this['dataFieldsCollection'][_0x488354(0x493)]();}[_0x2d7eb5(0x431)](_0x210ccd){const _0x5b63fc=_0x2d7eb5;return{'items':_0x210ccd[_0x5b63fc(0x3e2)],'itemTypes':_0x210ccd['itemTypes']};}['getUniqueFieldId'](){const _0x3f72b1=_0x2d7eb5;let _0x5b5213=Object[_0x3f72b1(0x4d1)](this[_0x3f72b1(0x4dd)]()['dimension'])['length']+Object[_0x3f72b1(0x4d1)](this[_0x3f72b1(0x4dd)]()['measure'])[_0x3f72b1(0x2a6)],_0x4f65a3=Math['max'](Math[_0x3f72b1(0x2ea)](Math[_0x3f72b1(0x2cd)](_0x5b5213)/0x4),0x2),_0x49cac0=R(_0x4f65a3);for(;this[_0x3f72b1(0x4dd)]()['getFieldById'](_0x49cac0);)_0x49cac0=R(_0x4f65a3);return _0x49cac0;}[_0x2d7eb5(0x413)](_0x1aaaa1,_0x58f3b3,_0x3f5bed,_0x500db6){const _0x3f0302=_0x2d7eb5;let _0xadcd5;if(_0xadcd5=F(_0x58f3b3)?this[_0x3f0302(0x440)](_0x1aaaa1,void 0x0,_0x500db6):this[_0x3f0302(0x2f2)](_0x1aaaa1,_0x500db6),_0xadcd5)return this[_0x3f0302(0x208)](_0xadcd5,_0x58f3b3,_0x3f5bed),_0xadcd5;}[_0x2d7eb5(0x50b)](_0xa0fe83,_0x100d29=!0x1){const _0x5baaa0=_0x2d7eb5;this[_0x5baaa0(0x4dd)]()[_0x5baaa0(0x50b)](_0xa0fe83,_0x100d29);}['setLayout'](_0x32a1e0){const _0x3c9da2=_0x2d7eb5;this[_0x3c9da2(0x4dd)]()[_0x3c9da2(0x3dd)](_0x32a1e0);}[_0x2d7eb5(0x340)](){const _0x53e06c=_0x2d7eb5;return this['_getModel']()[_0x53e06c(0x340)]();}[_0x2d7eb5(0x2b1)](_0x44441e,_0x1bc7f8,_0x382cb9){const _0x385bc5=_0x2d7eb5;this['_getModel']()[_0x385bc5(0x2b1)](_0x44441e,_0x1bc7f8,_0x382cb9);}[_0x2d7eb5(0x400)](_0x8ec1ad,_0x2e497a){const _0x235ca5=_0x2d7eb5;this[_0x235ca5(0x4dd)]()[_0x235ca5(0x400)](_0x8ec1ad,_0x2e497a);}[_0x2d7eb5(0x3f3)](_0x3d2474){const _0x1435ad=_0x2d7eb5;return this[_0x1435ad(0x4dd)]()[_0x1435ad(0x3f3)](_0x3d2474);}[_0x2d7eb5(0x52b)](_0x5887f6,_0x1e3cd8){const _0x1077ac=_0x2d7eb5;this[_0x1077ac(0x4dd)]()[_0x1077ac(0x52b)](_0x5887f6,_0x1e3cd8);}[_0x2d7eb5(0x28f)](_0x4e3e23,_0xc739b5){const _0x549d22=_0x2d7eb5;this[_0x549d22(0x4dd)]()[_0x549d22(0x28f)](_0x4e3e23,_0xc739b5);}[_0x2d7eb5(0x2d9)](_0x3f88b3,_0x1baf9f,_0x11c26f){const _0x249b73=_0x2d7eb5;this[_0x249b73(0x4dd)]()[_0x249b73(0x2d9)](_0x3f88b3,_0x1baf9f,_0x11c26f);}[_0x2d7eb5(0x306)](_0x1a52e1){const _0xb72e3d=_0x2d7eb5;return this[_0xb72e3d(0x4dd)]()[_0xb72e3d(0x306)](_0x1a52e1);}['clearFieldFilters'](_0x573930){const _0x26a779=_0x2d7eb5;this[_0x26a779(0x4dd)]()[_0x26a779(0x1f1)](_0x573930);}[_0x2d7eb5(0x2d7)](_0x51b580,_0x4bebaa,_0x361a24){const _0x1cec12=_0x2d7eb5;this[_0x1cec12(0x4dd)]()[_0x1cec12(0x2d7)](_0x51b580,_0x4bebaa,_0x361a24);}[_0x2d7eb5(0x4c8)](_0x58e62d,_0x118021){const _0x964a04=_0x2d7eb5;let _0x4d894a=this['getFilterInfo'](_0x58e62d);if(!this[_0x964a04(0x4dd)]()['dimension'][_0x58e62d])return!0x1;if(_0x118021===void 0x0)return!S(this[_0x964a04(0x306)](_0x58e62d))&&!(D(_0x4d894a)&&_0x4d894a[_0x964a04(0x4fe)])?!0x1:(this[_0x964a04(0x2d9)](_0x58e62d,void 0x0,_0x964a04(0x4cc)),!0x0);C(_0x118021);let _0x456aec=this[_0x964a04(0x412)](_0x58e62d);return!_0x456aec||_0x456aec[_0x964a04(0x31e)]()!==0x4?!0x1:(this[_0x964a04(0x2d9)](_0x58e62d,_0x118021,'condition'),!0x0);}[_0x2d7eb5(0x42a)](_0x54a902,_0x53ff38){const _0x50ee01=_0x2d7eb5;this[_0x50ee01(0x4dd)]()[_0x50ee01(0x42a)](_0x54a902,_0x53ff38),this[_0x50ee01(0x3a6)]==='ready'&&(this[_0x50ee01(0x3a6)]=_0x50ee01(0x1f5));}[_0x2d7eb5(0x40f)](_0x190d5d){const _0x2976ae=_0x2d7eb5;this[_0x2976ae(0x2df)]!==_0x190d5d&&(this[_0x2976ae(0x2df)]=_0x190d5d,this[_0x2976ae(0x3a6)]==='ready'&&(this[_0x2976ae(0x3a6)]=_0x2976ae(0x1f5)));}[_0x2d7eb5(0x33f)](_0xe7c9ab){const _0xd73217=_0x2d7eb5;return this[_0xd73217(0x4dd)]()[_0xd73217(0x33f)](_0xe7c9ab);}[_0x2d7eb5(0x4cf)](_0x187688){const _0xf03181=_0x2d7eb5;return this[_0xf03181(0x4dd)]()['getFilterInfo'](_0x187688);}['getFilterFieldIdByIndex'](_0x4a8be5){const _0x349139=_0x2d7eb5;return this[_0x349139(0x4dd)]()[_0x349139(0x34a)][_0x4a8be5];}[_0x2d7eb5(0x50e)](_0x16f59f,_0x46910b,_0x12e2ed){const _0x404cbf=_0x2d7eb5;let {area:_0x314ca4}=this['_getModel']()[_0x404cbf(0x3e6)](_0x16f59f);this[_0x404cbf(0x4dd)]()[_0x404cbf(0x50e)](_0x16f59f,_0x46910b,_0x12e2ed),_0x314ca4!==0x2&&_0x314ca4!==0x1||_0x46910b!==0x2&&_0x46910b!==0x1||(this[_0x404cbf(0x3a6)]=_0x404cbf(0x434));}[_0x2d7eb5(0x4e4)](_0x330b85){const _0x23032d=_0x2d7eb5;return this[_0x23032d(0x4dd)]()[_0x23032d(0x4e4)](_0x330b85);}[_0x2d7eb5(0x4e0)](_0x3fca2b,_0x207fea){const _0x451efa=_0x2d7eb5;this[_0x451efa(0x4dd)]()['setFieldFormat'](_0x3fca2b,_0x207fea);}[_0x2d7eb5(0x208)](_0x13f389,_0x2b15fe,_0x188a9d){this['_getModel']()['addField'](_0x13f389,_0x2b15fe,_0x188a9d);}[_0x2d7eb5(0x3c2)](_0x59ad7f){const _0x1c5a22=_0x2d7eb5;this['_getModel']()[_0x1c5a22(0x3c2)](_0x59ad7f);}[_0x2d7eb5(0x3a7)](){const _0x411c57=_0x2d7eb5;return this[_0x411c57(0x4dd)]()[_0x411c57(0x3a7)]();}['setCollapse'](_0x3378c9,_0x5535b7,_0x8d1bea){const _0x506651=_0x2d7eb5;var _0x49fcde;let _0x10a01d=this[_0x506651(0x4dd)](),_0x5552a4=_0x8d1bea!==void 0x0&&_0x10a01d[_0x506651(0x3e8)][_0x3378c9]===!0x0?(_0x49fcde=this[_0x506651(0x412)](_0x3378c9))==null?void 0x0:_0x49fcde[_0x506651(0x3e2)]:void 0x0;_0x10a01d[_0x506651(0x280)](_0x3378c9,_0x5535b7,_0x8d1bea,_0x5552a4),this['_summaryCacheState']=_0x506651(0x434);}[_0x2d7eb5(0x38a)](_0x125fd6){const _0x332613=_0x2d7eb5;let {rowFields:_0x5bfa37}=this[_0x332613(0x4dd)](),_0x592315=_0x5bfa37[_0x332613(0x3fa)](_0x125fd6);if(_0x592315<0x0)return!0x1;for(let _0x1b37ef=0x0;_0x1b37ef<_0x5bfa37['length']-0x1;_0x1b37ef++)this['setCollapse'](_0x5bfa37[_0x1b37ef],_0x1b37ef>=_0x592315);return!0x0;}[_0x2d7eb5(0x3e6)](_0xf55098){const _0xb641e5=_0x2d7eb5;return this[_0xb641e5(0x4dd)]()['getFieldPositionInfoById'](_0xf55098);}['_getTupleCache'](_0x45a296){const _0x2bae97=_0x2d7eb5;return(!this[_0x2bae97(0x205)]||this[_0x2bae97(0x4dd)]()[_0x2bae97(0x529)]())&&(this[_0x2bae97(0x205)]=new yt(),this[_0x2bae97(0x205)][_0x2bae97(0x3dc)](this[_0x2bae97(0x309)],_0x45a296),this['_summaryManagerCache']=void 0x0,this[_0x2bae97(0x3a6)]=_0x2bae97(0x434)),this[_0x2bae97(0x205)];}[_0x2d7eb5(0x338)](){const _0x55bf0e=_0x2d7eb5;let _0x5b065a={};return this['_getModel']()[_0x55bf0e(0x1a8)](_0x640404=>{const _0x423cd8=_0x55bf0e;let _0x5996cf=_0x640404[_0x423cd8(0x2e0)],_0x374661=this[_0x423cd8(0x309)][_0x423cd8(0x2f8)](_0x5996cf);if(B(_0x374661)){let _0x37df54=_0x374661[_0x423cd8(0x35a)]();_0x37df54&&(_0x5b065a[_0x640404[_0x423cd8(0x21a)]()]=_0x37df54);}}),_0x5b065a;}[_0x2d7eb5(0x52d)](_0x7f9a7d,_0x2dc617,_0x4c8e9d){const _0x2ad607=_0x2d7eb5;this[_0x2ad607(0x4dd)]()[_0x2ad607(0x52d)](_0x7f9a7d,_0x2dc617,_0x4c8e9d),this['_summaryCacheState']=_0x2ad607(0x434);}[_0x2d7eb5(0x320)](_0x1e447b,_0x654542,_0x3ffc64){const _0x20b36d=_0x2d7eb5;this[_0x20b36d(0x4dd)]()['setValueFilterState'](_0x1e447b,_0x654542,_0x3ffc64),this[_0x20b36d(0x3a6)]=_0x20b36d(0x434);}['getValueFilterInfos'](){const _0x34d8a0=_0x2d7eb5;return this[_0x34d8a0(0x4dd)]()[_0x34d8a0(0x19d)]();}[_0x2d7eb5(0x339)](_0x4b6827){const _0x297e95=_0x2d7eb5;return this[_0x297e95(0x4dd)]()[_0x297e95(0x339)](_0x4b6827);}[_0x2d7eb5(0x3a8)](_0x15d9cd){const _0x279315=_0x2d7eb5;this[_0x279315(0x4dd)]()['removeValueFilterInfo'](_0x15d9cd),this[_0x279315(0x3a6)]='invalid';}[_0x2d7eb5(0x19b)](_0x27350a){const _0x1f4a1c=_0x2d7eb5;this[_0x1f4a1c(0x4dd)]()[_0x1f4a1c(0x19b)](_0x27350a),this['_summaryCacheState']=_0x1f4a1c(0x434);}[_0x2d7eb5(0x2cb)](_0xe86b78){const _0x23b922=_0x2d7eb5;let _0x166062=this['_getTupleCache'](this[_0x23b922(0x4dd)]()[_0x23b922(0x31f)]()),_0x1515f4=new Map();for(let [_0x1a0059,_0x3b2ed7]of _0x166062[_0x23b922(0x362)][_0x23b922(0x2da)]())_0x1515f4['set'](_0x3b2ed7,_0x1a0059);return _0x166062[_0x23b922(0x29a)][_0x23b922(0x1ef)]((_0x37c4c6,_0x10d972)=>(_0xe86b78[_0x23b922(0x212)](_0x5c3afb=>{const _0x20105e=_0x23b922;let [_0x19b585,_0x452c67]=_0x5c3afb,_0x1f8acc=_0x10d972[_0x20105e(0x3ab)],_0x2bd043=_0x1515f4[_0x20105e(0x4d0)](_0x452c67);return _0x2bd043!==void 0x0&&_0x1f8acc[_0x2bd043]===_0x19b585;})&&_0x37c4c6[_0x23b922(0x466)](..._0x10d972[_0x23b922(0x3e3)]),_0x37c4c6),[])[_0x23b922(0x1f5)]((_0x3b4869,_0x523a0b)=>_0x3b4869-_0x523a0b);}['setDirty'](_0x57656b){const _0x551a9f=_0x2d7eb5;this[_0x551a9f(0x4dd)]()[_0x551a9f(0x330)](_0x57656b);}[_0x2d7eb5(0x32b)](_0x2a7ab1){const _0x1a631c=_0x2d7eb5;this['_getModel']()[_0x1a631c(0x32b)](_0x2a7ab1),this[_0x1a631c(0x3a6)]=_0x1a631c(0x434);}['query'](_0x5962c9){const _0x1bca48=_0x2d7eb5;let _0x13e609=e[_0x1bca48(0x473)][_0x1bca48(0x34c)];_0x13e609&&_0x13e609[_0x1bca48(0x4ea)](_0x5dc8e3=>{const _0x1b19c2=_0x1bca48;_0x5dc8e3(this[_0x1b19c2(0x1a7)]);});let _0x474d84=_0x5962c9||this['_getModel']()[_0x1bca48(0x31f)](),_0x305636=this[_0x1bca48(0x2e7)](_0x474d84),_0xa6e875;_0x5962c9?(_0xa6e875=new vt(_0x474d84,_0x305636,this[_0x1bca48(0x2df)]),_0xa6e875[_0x1bca48(0x516)]()):(!this['_summaryManagerCache']||this[_0x1bca48(0x3a6)]===_0x1bca48(0x434)?(this['_summaryManagerCache']=new vt(_0x474d84,_0x305636,this[_0x1bca48(0x2df)]),this[_0x1bca48(0x1b2)]['doSummary']()):this[_0x1bca48(0x3a6)]===_0x1bca48(0x1f5)&&this[_0x1bca48(0x1b2)][_0x1bca48(0x4d5)](_0x474d84,this[_0x1bca48(0x2df)]),_0xa6e875=this[_0x1bca48(0x1b2)],this[_0x1bca48(0x3a6)]=_0x1bca48(0x24e));let _0x552e3b;try{_0x552e3b=this[_0x1bca48(0x1b9)](_0xa6e875,_0x474d84);}finally{_0xa6e875['clearShowDataAsCache']();}_0x552e3b[_0x1bca48(0x2e8)](this[_0x1bca48(0x4dd)](),_0x474d84[_0x1bca48(0x50d)]);let _0x15ee2d=this[_0x1bca48(0x338)]();_0x552e3b[_0x1bca48(0x360)](_0x15ee2d),this[_0x1bca48(0x4dd)]()['setDirty'](!0x1);let _0xf68726=e[_0x1bca48(0x473)][_0x1bca48(0x45d)];return _0xf68726&&_0xf68726[_0x1bca48(0x4ea)](_0x4444d8=>{_0x4444d8(this['_id']);}),_0x552e3b;}[_0x2d7eb5(0x1b9)](_0x53d906,_0x359b41){const _0x4820b0=_0x2d7eb5;switch(this[_0x4820b0(0x340)]()){case 0x1:return ut[_0x4820b0(0x25d)](this,_0x53d906,_0x359b41);case 0x2:return dt[_0x4820b0(0x25d)](this,_0x53d906,_0x359b41);default:return lt[_0x4820b0(0x25d)](this,_0x53d906,_0x359b41);}}[_0x2d7eb5(0x3e0)](){const _0x22856f=_0x2d7eb5;return this[_0x22856f(0x4dd)]()[_0x22856f(0x3e0)]();}[_0x2d7eb5(0x3d9)](_0x303ac8){const _0x1257a9=_0x2d7eb5;this[_0x1257a9(0x4dd)]()[_0x1257a9(0x3d9)](_0x303ac8),this[_0x1257a9(0x330)](!0x0),this[_0x1257a9(0x3a6)]=_0x1257a9(0x434);}[_0x2d7eb5(0x38e)](){const _0x1c48ed=_0x2d7eb5;this[_0x1c48ed(0x309)]=null,this['_model']=null;}};M(kt,_0x2d7eb5(0x473),{}),exports[_0x2d7eb5(0x2d6)]=H,exports[_0x2d7eb5(0x230)]=V,exports['DataFieldManager']=Qe,exports[_0x2d7eb5(0x48a)]=We,exports[_0x2d7eb5(0x1f0)]=Le,exports[_0x2d7eb5(0x42f)]=-0x1,exports[_0x2d7eb5(0x3a5)]=Ze,exports[_0x2d7eb5(0x407)]=t,exports['LabelViewItem']=rt,exports[_0x2d7eb5(0x47a)]=W,exports['NUMBER_GROUP_AFTER_KEY']=Ke,exports[_0x2d7eb5(0x4a2)]=G,exports['NumberGroupField']=Xe,exports['PivotCallbackEnum']=_,exports['PivotCellStyleTypeEnum']=fe,exports[_0x2d7eb5(0x3f6)]=d,exports[_0x2d7eb5(0x2b9)]=p,exports[_0x2d7eb5(0x3b3)]=f,exports[_0x2d7eb5(0x273)]=v,exports[_0x2d7eb5(0x41b)]=ee,exports[_0x2d7eb5(0x1a3)]=y,exports[_0x2d7eb5(0x355)]=s,exports['PivotExcelDateGroupUnit']=b,exports[_0x2d7eb5(0x227)]=te,exports[_0x2d7eb5(0x44b)]=c,exports[_0x2d7eb5(0x456)]=h,exports['PivotShowAsBaseItemTypeEnum']=o,exports['PivotShowAsTypeEnum']=a,exports[_0x2d7eb5(0x540)]=g,exports[_0x2d7eb5(0x1ac)]=i,exports[_0x2d7eb5(0x474)]=kt,exports[_0x2d7eb5(0x4d4)]=ue,exports['PivotTableFiledAreaEnum']=l,exports['PivotTableLabelField']=Z,exports[_0x2d7eb5(0x514)]=X,exports[_0x2d7eb5(0x299)]=u,exports[_0x2d7eb5(0x487)]=tt,exports['PivotViewCellValueTypeEnum']=de,exports[_0x2d7eb5(0x4b8)]=q,exports['ST_PivotFilterOperatorEnum']=m,exports['compilePivotDateFilter']=C,exports[_0x2d7eb5(0x204)]=K,exports[_0x2d7eb5(0x397)]=Dt,exports['createPivotSortCompare']=De,exports[_0x2d7eb5(0x1e6)]=Et,exports[_0x2d7eb5(0x4ae)]=Ne,exports[_0x2d7eb5(0x534)]=R,exports[_0x2d7eb5(0x37d)]=_e,exports[_0x2d7eb5(0x1c5)]=Ye,exports[_0x2d7eb5(0x3fb)]=ge,exports[_0x2d7eb5(0x445)]=E,exports[_0x2d7eb5(0x4d8)]=se,exports[_0x2d7eb5(0x1af)]=B,exports['isDateGroupField']=Pe,exports[_0x2d7eb5(0x19c)]=Fe,exports[_0x2d7eb5(0x2e4)]=w,exports['isErrorValue']=st,exports[_0x2d7eb5(0x1d3)]=L,exports[_0x2d7eb5(0x4e8)]=S,exports[_0x2d7eb5(0x319)]=O,exports['isPrefixValue']=ot,exports[_0x2d7eb5(0x47c)]=T,exports[_0x2d7eb5(0x3de)]=re,exports[_0x2d7eb5(0x4d2)]=Be,exports['normalizeManualGrouping']=U,exports['normalizeNumberGrouping']=Je,exports[_0x2d7eb5(0x3c1)]=n,exports[_0x2d7eb5(0x1b5)]=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;