@univerjs-pro/sheets-pivot 0.6.5 → 0.6.6-experimental.20250317-28d180b

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/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xef4c23=_0xafc5;(function(_0x1e0e3d,_0x5acc9d){const _0x2b3b2f=_0xafc5,_0x3b72d2=_0x1e0e3d();while(!![]){try{const _0x411ca0=parseInt(_0x2b3b2f(0xf1))/0x1+-parseInt(_0x2b3b2f(0x114))/0x2+parseInt(_0x2b3b2f(0x191))/0x3*(parseInt(_0x2b3b2f(0xd1))/0x4)+-parseInt(_0x2b3b2f(0x16d))/0x5+-parseInt(_0x2b3b2f(0xe9))/0x6*(-parseInt(_0x2b3b2f(0xe8))/0x7)+parseInt(_0x2b3b2f(0x190))/0x8*(parseInt(_0x2b3b2f(0xc6))/0x9)+parseInt(_0x2b3b2f(0x18b))/0xa*(-parseInt(_0x2b3b2f(0x166))/0xb);if(_0x411ca0===_0x5acc9d)break;else _0x3b72d2['push'](_0x3b72d2['shift']());}catch(_0x16d636){_0x3b72d2['push'](_0x3b72d2['shift']());}}}(_0x34c9,0xed1a2));var ee=Object[_0xef4c23(0x16b)],te=(_0x4eb8a3,_0x4c054d,_0x3fa52a)=>_0x4c054d in _0x4eb8a3?ee(_0x4eb8a3,_0x4c054d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fa52a}):_0x4eb8a3[_0x4c054d]=_0x3fa52a,S=(_0x3d4114,_0x2ba06e,_0x2c2819)=>te(_0x3d4114,typeof _0x2ba06e!=_0xef4c23(0x182)?_0x2ba06e+'':_0x2ba06e,_0x2c2819);function _0xafc5(_0x4ea00c,_0x4b12fd){const _0x34c9ba=_0x34c9();return _0xafc5=function(_0xafc53c,_0x4e7aa6){_0xafc53c=_0xafc53c-0xab;let _0x3b525d=_0x34c9ba[_0xafc53c];return _0x3b525d;},_0xafc5(_0x4ea00c,_0x4b12fd);}const r=require(_0xef4c23(0x165)),l=require(_0xef4c23(0x14b)),m=require('@univerjs/core'),R=require(_0xef4c23(0x185)),A=require(_0xef4c23(0xe1)),ie=require('rxjs');class x{constructor(_0x9a7934,_0x179264,_0x208cad,_0x268845){const _0x21024a=_0xef4c23;S(this,_0x21024a(0x133)),S(this,_0x21024a(0xe3)),S(this,_0x21024a(0x16f)),S(this,_0x21024a(0x15c)),(this[_0x21024a(0x133)]=_0x9a7934,this[_0x21024a(0xe3)]=_0x179264,this['pivotTableId']=_0x208cad,this[_0x21024a(0x15c)]=_0x268845);}[_0xef4c23(0x179)](){const _0x54f1dc=_0xef4c23;return this[_0x54f1dc(0x15c)][_0x54f1dc(0xab)](l[_0x54f1dc(0xc9)])['getPivotTableConfig'](this[_0x54f1dc(0x133)],this['subUnitId'],this[_0x54f1dc(0x16f)]);}[_0xef4c23(0x136)](_0x140294){const _0x48f004=_0xef4c23,_0x488dc3=this[_0x48f004(0x15c)][_0x48f004(0xab)](m[_0x48f004(0x11b)]),_0x582829={'unitId':this[_0x48f004(0x133)],'subUnitId':this[_0x48f004(0xe3)],'pivotTableId':this[_0x48f004(0x16f)],'pivotTableConfig':_0x140294};return _0x488dc3['executeCommand'](l[_0x48f004(0x139)]['id'],_0x582829);}[_0xef4c23(0x129)](_0x691161){const _0x8ef500=_0xef4c23,_0x5397ee=this[_0x8ef500(0x15c)][_0x8ef500(0xab)](m[_0x8ef500(0x11b)]),_0x240622={'unitId':this['unitId'],'subUnitId':this[_0x8ef500(0xe3)],'pivotTableId':this[_0x8ef500(0x16f)],'resetArea':_0x691161};return _0x5397ee[_0x8ef500(0x145)](l[_0x8ef500(0x116)]['id'],_0x240622);}[_0xef4c23(0xb0)](){const _0x2ad754=_0xef4c23;return this[_0x2ad754(0x16f)];}['getFieldSetting'](_0x51ce28){const _0x5988d3=_0xef4c23,_0x5a8016=this['_injector']['get'](l[_0x5988d3(0xc9)])[_0x5988d3(0xef)](this['unitId'],this['subUnitId'],this[_0x5988d3(0x16f)]),_0x2aaa41=_0x5a8016==null?void 0x0:_0x5a8016[_0x5988d3(0xe5)];if(_0x2aaa41)return _0x2aaa41[_0x5988d3(0x176)][_0x51ce28]||_0x2aaa41[_0x5988d3(0x13e)][_0x51ce28];}[_0xef4c23(0xd6)](){const _0x39090e=_0xef4c23,_0x33887d=this[_0x39090e(0x15c)],_0x198836=this[_0x39090e(0x133)],_0x4f62b3=this['pivotTableId'],_0x4a8536=_0x33887d[_0x39090e(0xab)](l[_0x39090e(0xc9)])[_0x39090e(0x10c)](_0x198836,_0x4f62b3);if(_0x4a8536){const _0x51473b=_0x4a8536[_0x39090e(0x137)],_0x3f18e6=_0x4a8536[_0x39090e(0x175)],_0x30813a=_0x4a8536['displayNameRecord'],_0x39816e=[];for(const _0x5076eb of _0x51473b){const _0x33fac3=_0x3f18e6[_0x5076eb];if(_0x33fac3){const _0x44ae50={'id':_0x5076eb,'name':_0x33fac3['name'],'fieldDataType':_0x33fac3[_0x39090e(0x12f)]};_0x30813a&&_0x30813a[_0x5076eb]!==void 0x0&&(_0x44ae50[_0x39090e(0x183)]=_0x30813a[_0x5076eb]),_0x39816e[_0x39090e(0xf2)](_0x44ae50);}}return _0x39816e;}return[];}[_0xef4c23(0x100)](_0x23e53b){const _0x5f3fa7=_0xef4c23;var _0x101b5c;const _0x3a5fae=this['_injector'][_0x5f3fa7(0xab)](l[_0x5f3fa7(0xc9)])[_0x5f3fa7(0xef)](this[_0x5f3fa7(0x133)],this[_0x5f3fa7(0xe3)],this[_0x5f3fa7(0x16f)]),_0x3f15ec=_0x3a5fae==null?void 0x0:_0x3a5fae[_0x5f3fa7(0xe5)][_0x5f3fa7(0xe4)];return(_0x101b5c=_0x3f15ec==null?void 0x0:_0x3f15ec[_0x5f3fa7(0x18a)](_0x32fbf2=>_0x32fbf2['fieldId']===_0x23e53b))==null?void 0x0:_0x101b5c['filterInfo'];}[_0xef4c23(0x105)](){const _0x3e6184=_0xef4c23,_0x1294f3=this[_0x3e6184(0x15c)][_0x3e6184(0xab)](l[_0x3e6184(0xc9)])[_0x3e6184(0xef)](this[_0x3e6184(0x133)],this[_0x3e6184(0xe3)],this[_0x3e6184(0x16f)]),_0xac5de8=_0x1294f3==null?void 0x0:_0x1294f3[_0x3e6184(0xe5)][_0x3e6184(0xe4)];return(_0xac5de8==null?void 0x0:_0xac5de8[_0x3e6184(0x184)]())||[];}[_0xef4c23(0x10f)](_0x249571){const _0xfd462e=_0xef4c23,_0x3a3337=this[_0xfd462e(0x15c)]['get'](l['SheetsPivotTableConfigModel'])[_0xfd462e(0xef)](this[_0xfd462e(0x133)],this[_0xfd462e(0xe3)],this['pivotTableId']),_0x3ae809=_0x3a3337==null?void 0x0:_0x3a3337['fieldsConfig'];if(_0x3ae809)switch(_0x249571){case r[_0xfd462e(0x10d)][_0xfd462e(0x12b)]:return _0x3ae809[_0xfd462e(0x17f)]['concat']();case r[_0xfd462e(0x10d)][_0xfd462e(0xe0)]:return _0x3ae809['rowFields']['concat']();case r['PivotTableFiledAreaEnum'][_0xfd462e(0xcd)]:return _0x3ae809[_0xfd462e(0x121)][_0xfd462e(0x184)]();case r[_0xfd462e(0x10d)][_0xfd462e(0x193)]:return _0x3ae809['filterFields'][_0xfd462e(0x184)]();case r[_0xfd462e(0x10d)][_0xfd462e(0xbb)]:return _0x3ae809[_0xfd462e(0x130)][_0xfd462e(0x184)]();}return[];}['getPivotTableRangeInfo'](){const _0xb8056a=_0xef4c23;var _0x662e49;const _0x57bf10=(_0x662e49=this[_0xb8056a(0x15c)][_0xb8056a(0xab)](l['SheetsPivotTableConfigModel'])[_0xb8056a(0xb4)](this[_0xb8056a(0x133)],this[_0xb8056a(0xe3)],this['pivotTableId']))==null?void 0x0:_0x662e49[_0xb8056a(0x162)];if(_0x57bf10)return l[_0xb8056a(0xe2)](_0x57bf10);}async['remove'](){const _0xe0417f=_0xef4c23;return await this[_0xe0417f(0x15c)][_0xe0417f(0xab)](m['ICommandService'])[_0xe0417f(0x149)](l[_0xe0417f(0x164)]['id'],{'unitId':this[_0xe0417f(0x133)],'subUnitId':this[_0xe0417f(0xe3)],'pivotTableId':this['pivotTableId']});}async[_0xef4c23(0x12a)](_0x52310b,_0x52b09d,_0x4da82c){const _0x3e4e51=_0xef4c23,_0x102c8b=this[_0x3e4e51(0x15c)],_0x36bf9f=this['unitId'],_0x5a12e6=this[_0x3e4e51(0xe3)],_0x54f050=this[_0x3e4e51(0x16f)],_0x179b79=_0x102c8b[_0x3e4e51(0xab)](m[_0x3e4e51(0x11b)]),_0x672f29=_0x102c8b[_0x3e4e51(0xab)](l['SheetsPivotTableConfigModel']),_0x228fc9=_0x672f29[_0x3e4e51(0xef)](_0x36bf9f,_0x5a12e6,_0x54f050),_0x3ee703=_0x672f29['getCollection'](_0x36bf9f,_0x54f050);if(!_0x228fc9||!_0x3ee703)return!0x1;let _0x47de54=_0x52310b;typeof _0x47de54==_0x3e4e51(0x177)&&(_0x47de54=_0x672f29[_0x3e4e51(0x10c)](_0x36bf9f,_0x54f050)['fieldIds'][_0x52310b]);const _0x46a5d9={'unitId':_0x36bf9f,'subUnitId':_0x5a12e6,'pivotTableId':_0x54f050,'dataFieldId':_0x47de54,'fieldArea':_0x52b09d,'index':_0x4da82c};return _0x179b79[_0x3e4e51(0x145)](l[_0x3e4e51(0x148)]['id'],_0x46a5d9);}async[_0xef4c23(0x127)](_0xe3e40e){const _0x1b8bd=_0xef4c23,_0x3e00b4=this[_0x1b8bd(0x15c)],_0x2f6e5a=this[_0x1b8bd(0x133)],_0x4b232b=this[_0x1b8bd(0xe3)],_0x433504=this[_0x1b8bd(0x16f)],_0x1ea327=_0x3e00b4[_0x1b8bd(0xab)](m[_0x1b8bd(0x11b)]),_0x1f4edb={'unitId':_0x2f6e5a,'subUnitId':_0x4b232b,'pivotTableId':_0x433504,'fieldIds':_0xe3e40e};return _0x1ea327['executeCommand'](l['RemovePivotFieldCommand']['id'],_0x1f4edb);}async[_0xef4c23(0x197)](_0x459c68,_0x19fb80,_0x1812a5){const _0x2b7dc9=_0xef4c23,_0x539736=this[_0x2b7dc9(0x15c)],_0x282818=this[_0x2b7dc9(0x133)],_0x39ae44=this[_0x2b7dc9(0xe3)],_0x3b99ff=this['pivotTableId'],_0x1f63e0=_0x539736[_0x2b7dc9(0xab)](m['ICommandService']),_0x14b009={'unitId':_0x282818,'subUnitId':_0x39ae44,'pivotTableId':_0x3b99ff,'fieldId':_0x459c68,'area':_0x19fb80,'index':_0x1812a5};return _0x1f63e0[_0x2b7dc9(0x145)](l['MovePivotFieldCommand']['id'],_0x14b009);}async[_0xef4c23(0x141)](_0x46c970,_0x5e1ed4){const _0x560a28=_0xef4c23,_0x3c0a4c=this[_0x560a28(0x15c)],_0x3ca028=this[_0x560a28(0x133)],_0x944148=this[_0x560a28(0xe3)],_0xf5594c=this[_0x560a28(0x16f)],_0x31670a=_0x3c0a4c[_0x560a28(0xab)](m[_0x560a28(0x11b)]),_0x566310={'unitId':_0x3ca028,'subUnitId':_0x944148,'pivotTableId':_0xf5594c,'position':_0x46c970,'index':_0x5e1ed4};return _0x31670a[_0x560a28(0x145)](l['UpdatePivotValuePositionCommand']['id'],_0x566310);}async[_0xef4c23(0xdb)](_0x342e33,_0x208556){const _0xa5cb9c=_0xef4c23,_0x4778ec=this['_injector'],_0x1811ad=this[_0xa5cb9c(0x133)],_0x8e43a9=this[_0xa5cb9c(0xe3)],_0x2c4551=this[_0xa5cb9c(0x16f)],_0x38e07b=_0x4778ec[_0xa5cb9c(0xab)](m[_0xa5cb9c(0x11b)]),_0x1f8f98={'unitId':_0x1811ad,'subUnitId':_0x8e43a9,'pivotTableId':_0x2c4551,'fieldId':_0x342e33,'subtotalType':_0x208556};return _0x38e07b[_0xa5cb9c(0x145)](l[_0xa5cb9c(0x126)]['id'],_0x1f8f98);}async['setLabelSort'](_0x4d8b36,_0x4a8be4){const _0x2809d9=_0xef4c23,_0x2665f8=this[_0x2809d9(0x15c)],_0x593a93=this[_0x2809d9(0x133)],_0x41c464=this[_0x2809d9(0xe3)],_0x203e8c=this[_0x2809d9(0x16f)],_0xfc1c2c=_0x2665f8[_0x2809d9(0xab)](m[_0x2809d9(0x11b)]),_0x5513b2={'unitId':_0x593a93,'subUnitId':_0x41c464,'tableFieldId':_0x4d8b36,'pivotTableId':_0x203e8c,'info':_0x4a8be4};return _0xfc1c2c['executeCommand'](l['SetPivotSortCommand']['id'],_0x5513b2);}async[_0xef4c23(0x142)](_0x4b4196,_0xfe2485,_0x18fe88){const _0x2b1935=_0xef4c23,_0x392011=this[_0x2b1935(0x15c)],_0x339efa=this['unitId'],_0x3bc9ca=this[_0x2b1935(0xe3)],_0x246321=this[_0x2b1935(0x16f)],_0x5c6d26=_0x392011['get'](m['ICommandService']),_0x17b574={'unitId':_0x339efa,'subUnitId':_0x3bc9ca,'pivotTableId':_0x246321,'tableFieldId':_0x4b4196,'items':_0xfe2485,'isAll':_0x18fe88};return _0x5c6d26['executeCommand'](l[_0x2b1935(0x169)]['id'],_0x17b574);}async['setValueFilter'](_0xc7cbdf,_0x5d8aaa){const _0xd78887=_0xef4c23,_0x5b6dfa=this[_0xd78887(0x15c)],_0x341f3a=this[_0xd78887(0x133)],_0x4cf0aa=this[_0xd78887(0xe3)],_0x33aad8=this[_0xd78887(0x16f)],_0x5324d9=_0x5b6dfa[_0xd78887(0xab)](m[_0xd78887(0x11b)]);if(_0xc7cbdf===void 0x0)return console[_0xd78887(0x14f)](_0xd78887(0x10b)),!0x1;const _0x1da61e=_0x5d8aaa&&{..._0x5d8aaa,'type':r[_0xd78887(0xb2)][_0xd78887(0xf9)]},_0x239cde={'unitId':_0x341f3a,'subUnitId':_0x4cf0aa,'pivotTableId':_0x33aad8,'fieldId':_0xc7cbdf,'valueFilterInfo':_0x1da61e};return _0x5324d9['executeCommand'](l[_0xd78887(0x11a)]['id'],_0x239cde);}async['renameField'](_0x54d4ec,_0x54fb8b){const _0x48bed7=_0xef4c23,_0x3d3f87=this[_0x48bed7(0x15c)],_0x5eca66=this[_0x48bed7(0x133)],_0x34a49d=this[_0x48bed7(0xe3)],_0x2e415d=this[_0x48bed7(0x16f)],_0x53ad9c=_0x3d3f87['get'](m[_0x48bed7(0x11b)]),_0x36e901={'unitId':_0x5eca66,'subUnitId':_0x34a49d,'pivotTableId':_0x2e415d,'fieldId':_0x54d4ec,'name':_0x54fb8b};return _0x53ad9c[_0x48bed7(0x145)](l[_0x48bed7(0xfe)]['id'],_0x36e901);}async['move'](_0xac8bd2,_0x523f66,_0x666569){const _0x97ccc4=_0xef4c23,_0xf8003f=this[_0x97ccc4(0x15c)]['get'](m[_0x97ccc4(0x11b)]),_0x3278e6=this[_0x97ccc4(0x15c)][_0x97ccc4(0xab)](m['IUniverInstanceService'])['getUnit'](this['unitId']),_0x41820b=_0x3278e6==null?void 0x0:_0x3278e6['getSheetBySheetName'](_0xac8bd2);if(!_0x3278e6||!_0x41820b)throw new Error(_0x97ccc4(0x118));return _0xf8003f[_0x97ccc4(0x145)](l[_0x97ccc4(0x163)]['id'],{'pivotTableId':this[_0x97ccc4(0x16f)],'targetCellInfo':{'subUnitId':_0x41820b['getSheetId'](),'unitId':this['unitId'],'row':_0x523f66,'col':_0x666569},'originTargetInfo':{'subUnitId':this[_0x97ccc4(0xe3)],'unitId':this[_0x97ccc4(0x133)]}});}}class oe extends R[_0xef4c23(0x160)]{async[_0xef4c23(0xc5)](_0xbfc8d9,_0x5413ef,_0x58325){const _0x3b813f=_0xef4c23,_0x3d1047=this[_0x3b813f(0x15c)],_0x40a7c1=_0x3d1047[_0x3b813f(0xab)](m[_0x3b813f(0x11b)]),_0x41ed9a=r['generateHexNumber'](0x8),_0x36de4c={'positionType':_0x5413ef,'pivotTableId':_0x41ed9a,'pivotTableConfig':{'targetCellInfo':_0x58325,'sourceRangeInfo':_0xbfc8d9,'isEmpty':!0x0}};if(await _0x40a7c1[_0x3b813f(0x145)](l[_0x3b813f(0x18c)]['id'],_0x36de4c))return new x(_0x58325['unitId'],_0x58325[_0x3b813f(0xe3)],_0x41ed9a,_0x3d1047);}[_0xef4c23(0xbc)](_0x2d815e,_0x279809,_0x394ebe,_0x4750bd){const _0x6c94b1=_0xef4c23,_0x3028bd=this[_0x6c94b1(0x15c)],_0x75ea08=_0x3028bd['get'](l[_0x6c94b1(0x188)])[_0x6c94b1(0x181)](_0x2d815e,_0x279809,_0x394ebe,_0x4750bd);if(_0x75ea08)return new x(_0x2d815e,_0x279809,_0x75ea08,_0x3028bd);}['getPivotTableById'](_0x4b8804){const _0x3a342e=_0xef4c23,_0x302651=this[_0x3a342e(0x15c)],_0x2fb9ab=_0x302651['get'](l[_0x3a342e(0xc9)])[_0x3a342e(0x14e)](this[_0x3a342e(0x151)](),_0x4b8804);if(_0x2fb9ab)return new x(_0x2fb9ab[_0x3a342e(0x133)],_0x2fb9ab['subUnitId'],_0x4b8804,_0x302651);}}R[_0xef4c23(0x160)][_0xef4c23(0xba)](oe);class ne extends R['FWorksheet']{[_0xef4c23(0xbc)](_0x50cb8c,_0x397594){const _0x8aed5f=_0xef4c23,_0x134be3=this[_0x8aed5f(0x15c)],_0x4fb4aa=_0x134be3['get'](l[_0x8aed5f(0x188)]),_0x4c18d2=this[_0x8aed5f(0x159)][_0x8aed5f(0xb5)](),_0x2f60fd=this[_0x8aed5f(0xc4)](),_0x45ee2f=_0x4fb4aa[_0x8aed5f(0x181)](_0x4c18d2,_0x2f60fd,_0x50cb8c,_0x397594);if(_0x45ee2f)return new x(_0x4c18d2,_0x2f60fd,_0x45ee2f,_0x134be3);}}R[_0xef4c23(0x194)]['extend'](ne);class ae extends A[_0xef4c23(0xc7)]{get['PivotSubtotalTypeEnum'](){return r['PivotSubtotalTypeEnum'];}get['PivotFilterTypeEnum'](){const _0x566347=_0xef4c23;return r[_0x566347(0xb2)];}get[_0xef4c23(0x10d)](){const _0x179001=_0xef4c23;return r[_0x179001(0x10d)];}get['PivotTableValuePositionEnum'](){return r['PivotTableValuePositionEnum'];}get[_0xef4c23(0x199)](){const _0x5e5707=_0xef4c23;return r[_0x5e5707(0x199)];}get[_0xef4c23(0x18d)](){const _0x1741f4=_0xef4c23;return r[_0x1741f4(0x18d)];}get[_0xef4c23(0x192)](){return r['PivotDataFieldSortOperatorEnum'];}get['PivotFilterOperatorEnum'](){const _0x2dc8d4=_0xef4c23;return r[_0x2dc8d4(0xbe)];}get[_0xef4c23(0x119)](){const _0x1e57b8=_0xef4c23;return l[_0x1e57b8(0x124)];}get[_0xef4c23(0xdc)](){const _0x11fd1f=_0xef4c23;return r[_0x11fd1f(0xdc)];}}A[_0xef4c23(0xc7)][_0xef4c23(0xba)](ae);class se extends A[_0xef4c23(0x12c)]{get[_0xef4c23(0x157)](){const _0x423c5f=_0xef4c23;return _0x423c5f(0x157);}get['BeforePivotTableAdd'](){return'BeforePivotTableAdd';}get[_0xef4c23(0x161)](){const _0x557c47=_0xef4c23;return _0x557c47(0x161);}get[_0xef4c23(0xb6)](){const _0x52b556=_0xef4c23;return _0x52b556(0xb6);}get[_0xef4c23(0x171)](){return'PivotTableRendered';}get[_0xef4c23(0xb8)](){const _0x125a15=_0xef4c23;return _0x125a15(0xb8);}get[_0xef4c23(0x13f)](){return'PivotTableFieldRemoved';}get['PivotTableFieldMoved'](){return'PivotTableFieldMoved';}get[_0xef4c23(0x10a)](){return'PivotTableFieldCollapseChanged';}get[_0xef4c23(0xc2)](){const _0x219f6f=_0xef4c23;return _0x219f6f(0xc2);}get[_0xef4c23(0xd4)](){const _0x388275=_0xef4c23;return _0x388275(0xd4);}get['PivotTableFieldSettingChanged'](){const _0x566fff=_0xef4c23;return _0x566fff(0x18e);}get[_0xef4c23(0xb9)](){const _0x586f85=_0xef4c23;return _0x586f85(0xb9);}}A['FEventName'][_0xef4c23(0xba)](se);const Z=_0xef4c23(0x138);function de(_0x327b9f){return _0x327b9f/0x3e8/0x15180+0x63e1;}function le(_0x49ef6a,_0x5a2d28,_0x5abe89,_0x39be35){const _0x53be7f=_0xef4c23;var _0x248e8d,_0x3d9365,_0x390f1e,_0x5820df,_0x196871,_0xbaa79b,_0x2c3133,_0x40fdb5,_0x5dabde,_0x4e1210,_0x4da2b0,_0x27d005,_0x38ff65,_0x150eba,_0x4d3753;const _0x4011b9=[],_0x5a4fd1=[],_0x415d9d=[],{showRowGrandTotal:_0x863269,showRowSubTotal:_0x5b1b34}=_0x39be35,{cornerView:_0x27870c,colView:_0xa1b0f8,rowView:_0xb2bb1f,dataView:_0x1938eb,formatMap:_0x2b21bc}=_0x5a2d28,_0x5e85b8=_0x27870c[_0x53be7f(0x103)](),_0xe01588=_0x27870c['getColCount']();for(let _0x5ea6bd=0x0;_0x5ea6bd<_0x5e85b8;_0x5ea6bd++)for(let _0xb714c=0x0;_0xb714c<_0xe01588;_0xb714c++){const _0x539b16={...(_0x3d9365=(_0x248e8d=_0x27870c[_0x53be7f(0xd5)])==null?void 0x0:_0x248e8d[_0x5ea6bd])==null?void 0x0:_0x3d9365[_0xb714c]};_0x539b16['v']&&(_0x4011b9[_0x5ea6bd]||(_0x4011b9[_0x5ea6bd]=[]),_0x415d9d[_0x5ea6bd]||(_0x415d9d[_0x5ea6bd]=[]),_0x4011b9[_0x5ea6bd][_0xb714c]=_0x539b16['v'],_0x415d9d[_0x5ea6bd][_0xb714c]=_0x539b16['v']);}for(let _0x10dc70=0x0;_0x10dc70<_0xa1b0f8['getRowCount']();_0x10dc70++){const _0x57941a=(_0x5820df=(_0x390f1e=_0xa1b0f8==null?void 0x0:_0xa1b0f8[_0x53be7f(0x17a)])==null?void 0x0:_0x390f1e[_0x10dc70])==null?void 0x0:_0x5820df[_0x53be7f(0x128)],_0x34536d=_0x57941a?_0x2b21bc[_0x57941a]:'';for(let _0x1cac96=0x0;_0x1cac96<_0xa1b0f8[_0x53be7f(0xcc)]();_0x1cac96++){const _0xdc0941={...(_0xbaa79b=(_0x196871=_0xa1b0f8['data'])==null?void 0x0:_0x196871[_0x10dc70])==null?void 0x0:_0xbaa79b[_0x1cac96]};if((_0xdc0941==null?void 0x0:_0xdc0941['v'])!==void 0x0){let _0x34b489=_0x34536d?m['numfmt'][_0x53be7f(0xfc)](_0x34536d,Number(_0xdc0941['v'])):_0xdc0941['v'];(_0xdc0941==null?void 0x0:_0xdc0941['s'])===r[_0x53be7f(0x111)]['Subtotal']?_0x34b489=_0x5abe89?_0x53be7f(0x196)+_0x34b489:_0x53be7f(0xf4)+_0x34b489:(_0xdc0941==null?void 0x0:_0xdc0941['s'])===r[_0x53be7f(0x111)][_0x53be7f(0xb7)]&&(_0x34b489=_0x5abe89?_0x53be7f(0x172)+_0x34b489:'Grand\x20Total\x20'+_0x34b489),(_0xdc0941==null?void 0x0:_0xdc0941['t'])===r[_0x53be7f(0x158)]['blank']&&(_0x34b489=_0x5abe89?_0x53be7f(0x144):_0x53be7f(0x13d)),_0x4011b9[_0x10dc70]||(_0x4011b9[_0x10dc70]=[]),_0x415d9d[_0x10dc70]||(_0x415d9d[_0x10dc70]=[]),_0x4011b9[_0x10dc70][_0x1cac96+_0xe01588]=_0x34b489,_0x415d9d[_0x10dc70][_0x1cac96+_0xe01588]=_0x34b489;}}}let _0x151302=0x0,_0x11e81e=0x0,_0x22f9e0=0x0;for(let _0x2bd6da=0x0;_0x2bd6da<_0xb2bb1f[_0x53be7f(0x103)]();_0x2bd6da++){const _0x17f53b=_0xb2bb1f[_0x53be7f(0xd3)][_0x2bd6da];if(!_0x5b1b34&&_0x17f53b[_0x53be7f(0xca)]&&_0x17f53b[_0x53be7f(0xdd)]!==0x0){_0x22f9e0++,_0x11e81e=0x0;continue;}if(!(!_0x863269&&_0x17f53b[_0x53be7f(0xca)]&&_0x17f53b[_0x53be7f(0xdd)]===0x0)){for(let _0x51fe52=0x0;_0x51fe52<_0xb2bb1f[_0x53be7f(0xcc)]();_0x51fe52++){const _0x117338={...(_0x40fdb5=(_0x2c3133=_0xb2bb1f['data'])==null?void 0x0:_0x2c3133[_0x2bd6da])==null?void 0x0:_0x40fdb5[_0x51fe52]},_0x288da2=(_0x4e1210=(_0x5dabde=_0xb2bb1f==null?void 0x0:_0xb2bb1f[_0x53be7f(0x17a)])==null?void 0x0:_0x5dabde[_0x51fe52])==null?void 0x0:_0x4e1210[_0x53be7f(0x128)],_0x518210=_0x288da2?_0x2b21bc[_0x288da2]:'';if((_0x117338==null?void 0x0:_0x117338['v'])!==void 0x0){let _0x124bb9=_0x518210?m['numfmt'][_0x53be7f(0xfc)](_0x518210,Number(_0x117338['v'])):_0x117338['v'];(_0x117338==null?void 0x0:_0x117338['s'])===r['PivotCellStyleTypeEnum'][_0x53be7f(0x13a)]?_0x124bb9=_0x5abe89?_0x53be7f(0x196)+_0x124bb9:_0x53be7f(0xf4)+_0x124bb9:(_0x117338==null?void 0x0:_0x117338['s'])===r['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x124bb9=_0x5abe89?_0x53be7f(0x172)+_0x124bb9:_0x53be7f(0x15a)+_0x124bb9),(_0x117338==null?void 0x0:_0x117338['t'])===r['PivotViewCellValueTypeEnum'][_0x53be7f(0xed)]&&(_0x124bb9=_0x5abe89?_0x53be7f(0x144):_0x53be7f(0x13d)),_0x4011b9[_0x151302+_0x5e85b8]||(_0x4011b9[_0x151302+_0x5e85b8]=[]);let _0x4bb5e3=_0x5a4fd1[_0x22f9e0];_0x4bb5e3||(_0x4bb5e3=[..._0x415d9d],_0x5a4fd1[_0x22f9e0]=_0x4bb5e3),_0x4bb5e3[_0x11e81e+_0x5e85b8]||(_0x4bb5e3[_0x11e81e+_0x5e85b8]=[]),_0x4bb5e3[_0x11e81e+_0x5e85b8][_0x51fe52]=_0x124bb9,_0x4011b9[_0x151302+_0x5e85b8][_0x51fe52]=_0x124bb9;}}_0x151302++,_0xb2bb1f[_0x53be7f(0xd3)][_0x2bd6da][_0x53be7f(0xca)]?(_0x22f9e0++,_0x11e81e=0x0):_0x11e81e++;}}_0x151302=0x0,_0x22f9e0=0x0,_0x11e81e=0x0;for(let _0x587e5b=0x0;_0x587e5b<_0x1938eb[_0x53be7f(0x103)]();_0x587e5b++){const _0x4a687e=_0xb2bb1f[_0x53be7f(0xd3)][_0x587e5b];if(!_0x5b1b34&&_0x4a687e[_0x53be7f(0xca)]&&_0x4a687e['level']!==0x0){_0x22f9e0++,_0x11e81e=0x0;continue;}if(!(!_0x863269&&_0x4a687e[_0x53be7f(0xca)]&&_0x4a687e[_0x53be7f(0xdd)]===0x0)){for(let _0x157591=0x0;_0x157591<_0x1938eb[_0x53be7f(0xcc)]();_0x157591++){const _0x4bbb2e={...(_0x27d005=(_0x4da2b0=_0x1938eb['data'])==null?void 0x0:_0x4da2b0[_0x587e5b])==null?void 0x0:_0x27d005[_0x157591]};if(_0x4bbb2e['v']){const _0x24f612=_0xb2bb1f[_0x53be7f(0xd3)][_0x587e5b][_0x53be7f(0x122)],_0x8a5f22=_0xa1b0f8[_0x53be7f(0xd3)][_0x157591][_0x53be7f(0x122)],_0x4eab6e=Math[_0x53be7f(0x11d)](_0x24f612,_0x8a5f22),_0x18807e=_0x49ef6a[_0x53be7f(0x178)]()[_0x53be7f(0x184)]();let _0x32e27f='';_0x4eab6e<0x0?_0x32e27f=(_0x38ff65=_0x18807e[0x0])!=null?_0x38ff65:'':_0x32e27f=(_0x150eba=_0x18807e[_0x4eab6e])!=null?_0x150eba:'';const _0x113cb3=(_0x4d3753=_0x2b21bc[_0x32e27f])!=null?_0x4d3753:'';_0x4011b9[_0x151302+_0x5e85b8]||(_0x4011b9[_0x151302+_0x5e85b8]=[]);let _0x47518b=_0x5a4fd1[_0x22f9e0];_0x47518b||(_0x47518b=[..._0x415d9d],_0x5a4fd1[_0x22f9e0]=_0x47518b),_0x47518b[_0x11e81e+_0x5e85b8]||(_0x47518b[_0x11e81e+_0x5e85b8]=[]);const _0x1ce8d8=_0x113cb3?m[_0x53be7f(0x146)][_0x53be7f(0xfc)](_0x113cb3,Number(_0x4bbb2e['v'])):_0x4bbb2e['v'];_0x47518b[_0x11e81e+_0x5e85b8][_0x157591+_0xe01588]=_0x1ce8d8,_0x4011b9[_0x151302+_0x5e85b8][_0x157591+_0xe01588]=_0x1ce8d8;}}_0x151302++,_0xb2bb1f[_0x53be7f(0xd3)][_0x587e5b][_0x53be7f(0xca)]?(_0x22f9e0++,_0x11e81e=0x0):_0x11e81e++;}}return{'dataArr':_0x4011b9,'dataArrWithSplit':_0x5a4fd1};}function _0x34c9(){const _0x472ca3=['_firePivotTableFieldAddedEvent','8vJbLKA','1705941BMtKwt','PivotDataFieldSortOperatorEnum','Filter','FWorksheet','_firePivotTableFieldSettingChangedEvent','小计\x20','updateFieldPosition','_firePivotTableFieldSortChangedEvent','PivotDataFieldDataTypeEnum','forEach','getFieldDataType','row','get','getNameWithColumnIndex','_firePivotTableFieldRemovedEvent','viewUpdate$','startColumn','getPivotTableId','remove','PivotFilterTypeEnum','Before\x20add\x20pivot\x20table\x20event\x20canceled','getPivotTableRangeInfo','getUnitId','PivotTableMoved','GrandTotal','PivotTableFieldAdded','PivotTableValuePositionChanged','extend','Hidden','getPivotTableByCell','_firePivotTableFieldFilterChangedEvent','ST_PivotFilterOperatorEnum','setFieldFormat','endRow','isArray','PivotTableFieldFilterChanged','Before\x20move\x20pivot\x20table\x20event\x20canceled','getSheetId','addPivotTable','6949044MnwyKs','FEnum','getResultByCalculate','SheetsPivotTableConfigModel','isBottomTotal','cancel','getColCount','Value','getDataFieldIdByDisplayName','LifecycleStages','getFieldDataTypeByColumnIndex','12alGXls','_isZhCN','info','PivotTableFieldSortChanged','data','getSourceFieldsInfo','LifecycleService','getValueIndex','sum','BeforePivotTableMove','setSubtotalType','PivotTableChangeTypeEnum','level','getRangeData','filter','Row','@univerjs/core/facade','unionPivotViewRange','subUnitId','valueFilter','fieldsConfig','value','string','484757fCyYqj','6kbMWyJ','LocaleType','date','_fireBeforeMovePivotTableEvent','blank','startRow','getPivotTableConfig','PivotSubtotalTypeEnum','1612116jBuXwM','push','disposeWithMe','Total\x20','FUniver','getTime','_getSourceIdByName','params','ValueFilter','AddPivotTableWithConfigCommand','[PivotTable]:\x20The\x20field\x20name\x20','format','range','RenamePivotFieldMutation','setOptions','getValueFilter','_firePivotTableFieldCollapsedEvent','SetPivotCollapseCommand','getRowCount','getDataFieldByTableId','getValueFilters','object','_fireMovedPivotTableEvent','Event','addFieldWithSourceId','PivotTableFieldCollapseChanged','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','getCollection','PivotTableFiledAreaEnum','_firePivotTableFieldMovedEvent','getFieldIdsByArea','subscribe','PivotCellStyleTypeEnum','setDisplayName','getformat','2072800JEgOzy','_sourceData','ResetPivotFieldsConfigCommand','addFieldWithName','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','PositionTypeEnum','SetPivotValueFilterCommand','ICommandService','addFilterFieldWithName','max','createCollection','LocaleService','registerEventHandler','valueFields','valueIndex','addValueFieldWithName','PositionType','lifecycle$','SetPivotSubtotalTypeMutation','removeField','tableFieldId','reset','addField','Column','FEventName','auditTime','length','fieldDataType','hiddenFields','[PivotTable]:\x20add\x20field\x20','ZH_CN','unitId','Ready','UpdatePivotFieldSettingCommand','setFieldsConfig','fieldIds','YYYY-MM-DD','SetPivotFieldsConfigCommand','Subtotal','BeforePivotTableAdd','_firePivotTableValuePositionChangedEvent','(blank)','measure','PivotTableFieldRemoved','PivotTable','updateValuePosition','setLabelManualFilter','iterateFieldByArea','(空白)','executeCommand','numfmt','_pivot','AddPivotFieldCommand','syncExecuteCommand','fireEvent','@univerjs-pro/sheets-pivot','onCommandExecuted','\x20failed.','getTargetByPivotTableId','warn','getFieldDisplayNames','getId','PivotTableFieldMoved','dataFieldsCollection','DataFieldManager','sheetName','dispose','PivotTableAdded','PivotViewCellValueTypeEnum','_workbook','Grand\x20Total\x20','_id','_injector','_fireBeforeAddPivotTableEvent','resetDimension','generatePivotTable','FWorkbook','PivotTableRemoved','rangeInfo','MovePivotTableCommand','RemovePivotTableMutation','@univerjs-pro/engine-pivot','6436529rOQZGV','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','getFieldById','SetPivotFilterCommand','beforeCommandExecuted','defineProperty','targetCellInfo','7833575Bxsrdu','PivotTableValuePositionEnum','pivotTableId','col','PivotTableRendered','总计\x20','subtotal','_fireAddPivotTableEvent','fields','dimension','number','getValueFields','getConfig','headerMap','_firePivotTableRemovedEvent','endColumn','setFilterInfo','UpdatePivotValuePositionCommand','columnFields','getFieldCountByArea','getPivotTableIdByCell','symbol','displayName','concat','@univerjs/sheets/facade','keys','query','SheetsPivotTableAdaptorModel','getFieldIds','find','10ILhIYW','AddPivotTableCommand','PivotDataFieldSortTypeEnum','PivotTableFieldSettingChanged'];_0x34c9=function(){return _0x472ca3;};return _0x34c9();}class re{constructor(_0x37380c,_0x20c285,_0x23daa7,_0x49ca5c){const _0x223273=_0xef4c23;S(this,_0x223273(0x147)),S(this,_0x223273(0x115)),S(this,_0x223273(0x15c)),S(this,_0x223273(0xd2)),S(this,'_id'),(this[_0x223273(0x15c)]=_0x37380c,this[_0x223273(0x147)]=_0x20c285,this['_sourceData']=_0x23daa7,this[_0x223273(0x15b)]=_0x49ca5c);const _0x88c89e=this['_injector'][_0x223273(0xab)](m[_0x223273(0x11f)]);this['_isZhCN']=_0x88c89e['getCurrentLocale']()===m[_0x223273(0xea)][_0x223273(0x132)];}[_0xef4c23(0xf7)](_0x434e5b){const _0x1c379b=_0xef4c23,_0x2fdc06=this[_0x1c379b(0x147)][_0x1c379b(0xce)](_0x434e5b);if(!_0x2fdc06)throw new Error(_0x1c379b(0xfb)+_0x434e5b+_0x1c379b(0x167));return _0x2fdc06;}[_0xef4c23(0x117)](_0xcf9a38,_0x1d35e3){const _0x3c653c=_0xef4c23,_0x4cdf3c=this[_0x3c653c(0xf7)](_0xcf9a38),_0x7bacf1=this['_pivot'][_0x3c653c(0x109)](_0x4cdf3c,_0x1d35e3);if(!_0x7bacf1)throw new Error(_0x3c653c(0x131)+_0xcf9a38+_0x3c653c(0x14d));if(_0x1d35e3===r[_0x3c653c(0x10d)]['Value']){const _0x17ee03=_0x7bacf1[_0x3c653c(0x151)](),_0x39690a=this['_pivot'][_0x3c653c(0x104)](_0x17ee03);if(_0x39690a){const _0x22783e=_0x39690a==null?void 0x0:_0x39690a[_0x3c653c(0x19b)]();this[_0x3c653c(0x147)][_0x3c653c(0xdb)](_0x17ee03,_0x22783e===r[_0x3c653c(0x199)]['number']?r[_0x3c653c(0xf0)][_0x3c653c(0xd9)]:r['PivotSubtotalTypeEnum']['count']);}const _0x2d49dd=this['_pivot'][_0x3c653c(0xd8)](),_0x5b86e3=this[_0x3c653c(0x147)]['getValuePosition'](),_0x4231f9=this[_0x3c653c(0x147)]['getFieldCountByArea'](r[_0x3c653c(0x10d)][_0x3c653c(0xcd)]);if(_0x2d49dd===-0x1&&_0x4231f9>0x1){const _0x3931f7=_0x5b86e3===r[_0x3c653c(0x16e)]['None']?r[_0x3c653c(0x16e)][_0x3c653c(0x12b)]:_0x5b86e3,_0x3e805c=_0x3931f7===r['PivotTableValuePositionEnum'][_0x3c653c(0xe0)]?r[_0x3c653c(0x10d)]['Row']:r[_0x3c653c(0x10d)]['Column'];this['_pivot'][_0x3c653c(0x141)](_0x3931f7,this[_0x3c653c(0x147)][_0x3c653c(0x180)](_0x3e805c));}}else{if(_0x1d35e3===r[_0x3c653c(0x10d)][_0x3c653c(0xe0)]||_0x1d35e3===r['PivotTableFiledAreaEnum'][_0x3c653c(0x12b)]){const _0x206c60=_0x7bacf1[_0x3c653c(0x151)](),_0x1d8585=this[_0x3c653c(0x147)][_0x3c653c(0x104)](_0x206c60);if(_0x1d8585&&(_0x1d8585==null?void 0x0:_0x1d8585['getFieldDataType']())===r['PivotDataFieldDataTypeEnum'][_0x3c653c(0xeb)]){const _0x1f4a8c=_0x1d8585[_0x3c653c(0x113)]();_0x1f4a8c&&this['_pivot'][_0x3c653c(0xbf)](_0x206c60,_0x1f4a8c);}}}return _0x7bacf1;}[_0xef4c23(0x11c)](_0x1fb43f,_0x11a3a7){const _0x1d02e7=_0xef4c23,_0x5cd5e9=this[_0x1d02e7(0xf7)](_0x1fb43f),_0x1b9fb7=this[_0x1d02e7(0x147)][_0x1d02e7(0x109)](_0x5cd5e9,r['PivotTableFiledAreaEnum'][_0x1d02e7(0x193)]);return _0x1b9fb7[_0x1d02e7(0x17d)](_0x11a3a7),_0x1b9fb7;}[_0xef4c23(0x123)](_0x5f2389,_0x243551){const _0x54b222=_0xef4c23,_0x44ae0e=this[_0x54b222(0x117)](_0x5f2389,r['PivotTableFiledAreaEnum'][_0x54b222(0xcd)]);return _0x243551!=null&&_0x243551[_0x54b222(0x173)]&&_0x44ae0e['setSubtotal'](_0x243551==null?void 0x0:_0x243551['subtotal']),_0x44ae0e;}['removeFieldWithName'](_0x19df2e){const _0x33c3a4=_0xef4c23,_0x56c2ac=this['_getSourceIdByName'](_0x19df2e);this[_0x33c3a4(0x147)]['getTableFieldsByDataFieldId'](_0x56c2ac)[_0x33c3a4(0x19a)](_0x2af390=>{const _0x5e6fbd=_0x33c3a4,_0x6edcdb=_0x2af390['getId']();this[_0x5e6fbd(0x147)][_0x5e6fbd(0x127)](_0x6edcdb);});}[_0xef4c23(0xc8)](_0x421ca4={}){const _0x4ccb92=_0xef4c23,_0x32db06=this[_0x4ccb92(0x147)][_0x4ccb92(0x187)](),{dataArr:_0x493ccb,dataArrWithSplit:_0x511f76}=le(this[_0x4ccb92(0x147)],_0x32db06,this[_0x4ccb92(0xd2)],_0x421ca4);return{'dataArr':_0x493ccb,'dataArrWithSplit':_0x511f76};}[_0xef4c23(0xac)](_0x1bef94){const _0x224245=_0xef4c23;return this[_0x224245(0x147)][_0x224245(0x150)]()[_0x1bef94];}[_0xef4c23(0x129)](){const _0x2340c5=_0xef4c23;this[_0x2340c5(0x147)]['reset']();}[_0xef4c23(0x15e)](_0x32df0b){const _0x15ff40=_0xef4c23;this[_0x15ff40(0x147)]['reset'](_0x32df0b);}[_0xef4c23(0xd0)](_0x2346c3){const _0x4540e4=_0xef4c23,_0x44260b=this[_0x4540e4(0x147)][_0x4540e4(0x153)],_0x4835ac=_0x44260b['getFieldIds']()[_0x2346c3];if(_0x4835ac)return _0x44260b[_0x4540e4(0x168)](_0x4835ac)['getFieldDataType']();}['getFieldDataTypeByFieldName'](_0x3f98bf){const _0x3a79e9=_0xef4c23,_0x5dcc53=this[_0x3a79e9(0xf7)](_0x3f98bf),_0x5cecac=this[_0x3a79e9(0x147)][_0x3a79e9(0x153)][_0x3a79e9(0x168)](_0x5dcc53);return _0x5cecac==null?void 0x0:_0x5cecac['getFieldDataType']();}['getDimensionInfo'](){const _0xffb6c8=_0xef4c23,_0x96c0ee={};return[[r[_0xffb6c8(0x10d)][_0xffb6c8(0xe0)],_0xffb6c8(0x19c)],[r[_0xffb6c8(0x10d)][_0xffb6c8(0x12b)],'column'],[r['PivotTableFiledAreaEnum'][_0xffb6c8(0x193)],_0xffb6c8(0xdf)],[r[_0xffb6c8(0x10d)][_0xffb6c8(0xcd)],_0xffb6c8(0xe6)]][_0xffb6c8(0x19a)](_0x541463=>{const _0x4df589=_0xffb6c8,[_0x5c6337,_0x10feaa]=_0x541463;this['_pivot'][_0x4df589(0x143)](_0x5c6337,_0x343e86=>{const _0x1bc3b2=_0x4df589;_0x96c0ee[_0x10feaa]||(_0x96c0ee[_0x10feaa]=[]),_0x96c0ee[_0x10feaa][_0x1bc3b2(0xf2)](_0x343e86['getSourceName']());});}),Object[_0xffb6c8(0x186)](_0x96c0ee)['length']>0x0?_0x96c0ee:void 0x0;}['getPivotSourceData'](){const _0x12eab1=_0xef4c23;return this[_0x12eab1(0x115)];}[_0xef4c23(0xff)](_0x14dd42){const _0x2bb21a=_0xef4c23;this['_pivot'][_0x2bb21a(0xff)](_0x14dd42);}[_0xef4c23(0xb1)](){const _0x2c07ee=_0xef4c23;this[_0x2c07ee(0x147)][_0x2c07ee(0x156)]();}}class ve extends r[_0xef4c23(0x154)]{[_0xef4c23(0xde)](_0x1fab45){const _0x164679=_0xef4c23;if(Array[_0x164679(0xc1)](_0x1fab45)&&_0x1fab45[_0x164679(0x12e)]>0x0){const _0x5c5c0c=[],_0x28366f=_0x1fab45[0x0],_0x40fec3={},_0x507383=_0x1fab45[0x1];for(let _0x446dba=0x0;_0x446dba<_0x507383[_0x164679(0x12e)];_0x446dba++){const _0x1c2df9=_0x507383[_0x446dba];if(typeof _0x1c2df9==_0x164679(0x106)&&_0x1c2df9 instanceof Date)_0x40fec3[_0x446dba]=Z;else{if(typeof _0x1c2df9==_0x164679(0xe7)){const _0x312b3c=new Date(_0x1c2df9);Number['isNaN'](_0x312b3c[_0x164679(0xf6)]())||(_0x40fec3[_0x446dba]=Z);}}}for(let _0x1eb86d=0x1;_0x1eb86d<_0x1fab45[_0x164679(0x12e)];_0x1eb86d++){const _0x2eb9fd=_0x1fab45[_0x1eb86d],_0x4e747c=[];for(let _0x55bc7c=0x0;_0x55bc7c<_0x2eb9fd[_0x164679(0x12e)];_0x55bc7c++)if(_0x40fec3[_0x55bc7c]){const _0x93cc17=_0x2eb9fd[_0x55bc7c],_0x37b688=typeof _0x93cc17==_0x164679(0x106)&&_0x93cc17 instanceof Date?_0x93cc17:new Date(_0x93cc17),_0x2cfbb6={'v':de(_0x37b688[_0x164679(0xf6)]()),'f':_0x40fec3[_0x55bc7c]};_0x4e747c[_0x164679(0xf2)](_0x2cfbb6);}else _0x4e747c[_0x164679(0xf2)](_0x2eb9fd[_0x55bc7c]);_0x5c5c0c[_0x164679(0xf2)](_0x4e747c);}return{'header':_0x28366f,'data':_0x5c5c0c};}else throw new Error('[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array');}}class ce extends A[_0xef4c23(0xf5)]{['_initialize'](_0x2545b0){const _0x155ddb=_0xef4c23,_0x5d0a3a=_0x2545b0['get'](m[_0x155ddb(0x11b)]);this['registerEventHandler'](this[_0x155ddb(0x108)]['BeforePivotTableAdd'],()=>_0x5d0a3a[_0x155ddb(0x16a)](_0xcfedbb=>{const _0x188b8e=_0x155ddb;switch(_0xcfedbb['id']){case l['MovePivotTableCommand']['id']:{const _0x359a69=_0xcfedbb['params'];this[_0x188b8e(0xec)](_0x359a69);break;}}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)]['BeforePivotTableMove'],()=>_0x5d0a3a[_0x155ddb(0x16a)](_0x799c82=>{const _0x1ed12b=_0x155ddb;switch(_0x799c82['id']){case l[_0x1ed12b(0xfa)]['id']:case l['AddPivotTableCommand']['id']:{const _0x42d761=_0x799c82[_0x1ed12b(0xf8)];this[_0x1ed12b(0x15d)](_0x42d761);break;}}})),this['registerEventHandler'](this[_0x155ddb(0x108)][_0x155ddb(0x157)],()=>_0x5d0a3a[_0x155ddb(0x14c)](_0x4932f5=>{const _0x2c111b=_0x155ddb;if(_0x4932f5['id']===l[_0x2c111b(0xfa)]['id']||_0x4932f5['id']===l[_0x2c111b(0x18c)]['id']){const _0x4b3eda=_0x4932f5[_0x2c111b(0xf8)];this[_0x2c111b(0x174)](_0x4b3eda);}})),this['registerEventHandler'](this[_0x155ddb(0x108)]['PivotTableMoved'],()=>_0x5d0a3a['onCommandExecuted'](_0xa8a10b=>{const _0x3db22b=_0x155ddb;if(_0xa8a10b['id']===l[_0x3db22b(0x163)]['id']){const _0x878c29=_0xa8a10b[_0x3db22b(0xf8)];this[_0x3db22b(0x107)](_0x878c29);}})),this['registerEventHandler'](this[_0x155ddb(0x108)][_0x155ddb(0x161)],()=>_0x5d0a3a['onCommandExecuted'](_0x182f5a=>{const _0x1faff1=_0x155ddb;if(_0x182f5a['id']===l['RemovePivotTableMutation']['id']){const _0x374c21=_0x182f5a['params'];this[_0x1faff1(0x17b)](_0x374c21);}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)][_0x155ddb(0xb8)],()=>_0x5d0a3a[_0x155ddb(0x14c)](_0x17a866=>{const _0x464aa=_0x155ddb;if(_0x17a866['id']===l[_0x464aa(0x148)]['id']){const _0x57d266=_0x17a866[_0x464aa(0xf8)];this[_0x464aa(0x18f)](_0x57d266);}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)]['PivotTableFieldRemoved'],()=>_0x5d0a3a['onCommandExecuted'](_0x5d5ec9=>{const _0x56dc5e=_0x155ddb;if(_0x5d5ec9['id']===l['RemovePivotFieldCommand']['id']){const _0x2525a7=_0x5d5ec9[_0x56dc5e(0xf8)];this[_0x56dc5e(0xad)](_0x2525a7);}})),this[_0x155ddb(0x120)](this['Event'][_0x155ddb(0x152)],()=>_0x5d0a3a[_0x155ddb(0x14c)](_0x10324a=>{if(_0x10324a['id']===l['MovePivotFieldCommand']['id']){const _0x3d15b4=_0x10324a['params'];this['_firePivotTableFieldMovedEvent'](_0x3d15b4);}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)][_0x155ddb(0x10a)],()=>_0x5d0a3a['onCommandExecuted'](_0x4242a6=>{const _0x2701f9=_0x155ddb;if(_0x4242a6['id']===l[_0x2701f9(0x102)]['id']){const _0x28ada4=_0x4242a6[_0x2701f9(0xf8)];this['_firePivotTableFieldCollapsedEvent'](_0x28ada4);}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)][_0x155ddb(0xc2)],()=>_0x5d0a3a['onCommandExecuted'](_0x4183d7=>{const _0x33342a=_0x155ddb;if(_0x4183d7['id']===l[_0x33342a(0x169)]['id']){const _0x227af5=_0x4183d7[_0x33342a(0xf8)];this['_firePivotTableFieldFilterChangedEvent'](_0x227af5);}})),this['registerEventHandler'](this[_0x155ddb(0x108)]['PivotTableFieldSortChanged'],()=>_0x5d0a3a['onCommandExecuted'](_0x39910f=>{const _0xbc92a6=_0x155ddb;if(_0x39910f['id']===l['SetPivotSortCommand']['id']){const _0x4654bc=_0x39910f[_0xbc92a6(0xf8)];this['_firePivotTableFieldSortChangedEvent'](_0x4654bc);}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)][_0x155ddb(0x18e)],()=>_0x5d0a3a[_0x155ddb(0x14c)](_0x3d419b=>{const _0x1038cb=_0x155ddb;if(_0x3d419b['id']===l[_0x1038cb(0x135)]['id']){const _0xf08444=_0x3d419b[_0x1038cb(0xf8)];this['_firePivotTableFieldSettingChangedEvent'](_0xf08444);}})),this[_0x155ddb(0x120)](this[_0x155ddb(0x108)][_0x155ddb(0xb9)],()=>_0x5d0a3a[_0x155ddb(0x14c)](_0x539e76=>{const _0x3b6391=_0x155ddb;if(_0x539e76['id']===l[_0x3b6391(0x17e)]['id']){const _0x53bc82=_0x539e76[_0x3b6391(0xf8)];this[_0x3b6391(0x13c)](_0x53bc82);}}));const _0x124db6=_0x2545b0[_0x155ddb(0xab)](m[_0x155ddb(0xd7)]);this[_0x155ddb(0xf3)](_0x124db6[_0x155ddb(0x125)][_0x155ddb(0x110)](_0xb67018=>{const _0x3633f3=_0x155ddb;if(_0xb67018===m[_0x3633f3(0xcf)][_0x3633f3(0x134)]){const _0x46769a=_0x2545b0['get'](l[_0x3633f3(0x188)]);this[_0x3633f3(0x120)](this[_0x3633f3(0x108)][_0x3633f3(0x171)],()=>_0x46769a[_0x3633f3(0xae)]['pipe'](ie[_0x3633f3(0x12d)](0x32))['subscribe'](_0x1aedd7=>{this['_fireRenderPivotTableEvent'](_0x1aedd7);}));}}));}[_0xef4c23(0x18f)](_0x4947ac){const _0x419ea2=_0xef4c23;if(_0x4947ac){const {unitId:_0x533a74,subUnitId:_0x117d02,pivotTableId:_0x3451fd,dataFieldId:_0xbffc22,fieldArea:_0x4a01da,index:_0x35b6d4}=_0x4947ac;this[_0x419ea2(0x14a)](this[_0x419ea2(0x108)]['PivotTableFieldAdded'],{'unitId':_0x533a74,'subUnitId':_0x117d02,'pivotTableId':_0x3451fd,'dataFieldId':_0xbffc22,'fieldArea':_0x4a01da,'index':_0x35b6d4});}}['_firePivotTableFieldRemovedEvent'](_0x4349bb){const _0xe48777=_0xef4c23;if(_0x4349bb){const {unitId:_0x2be6f6,subUnitId:_0x56cb5d,pivotTableId:_0x11b17e,fieldIds:_0xfe2c19}=_0x4349bb;this['fireEvent'](this[_0xe48777(0x108)][_0xe48777(0x13f)],{'unitId':_0x2be6f6,'subUnitId':_0x56cb5d,'pivotTableId':_0x11b17e,'fieldIds':_0xfe2c19[_0xe48777(0x184)]()});}}[_0xef4c23(0x10e)](_0x332652){const _0x3cc4c1=_0xef4c23;if(_0x332652){const {unitId:_0x25974d,subUnitId:_0x3d7310,pivotTableId:_0x3027e1,fieldId:_0xb5b0f3,area:_0x589e0c,index:_0x4472af}=_0x332652;this[_0x3cc4c1(0x14a)](this[_0x3cc4c1(0x108)][_0x3cc4c1(0x152)],{'unitId':_0x25974d,'subUnitId':_0x3d7310,'pivotTableId':_0x3027e1,'fieldId':_0xb5b0f3,'area':_0x589e0c,'index':_0x4472af});}}[_0xef4c23(0x101)](_0xd15432){const _0x2f29a3=_0xef4c23;if(_0xd15432){const {unitId:_0x150488,subUnitId:_0x28c3a2,row:_0x15ff94,col:_0x2a1a01,collapse:_0x563bb7}=_0xd15432;this[_0x2f29a3(0x14a)](this[_0x2f29a3(0x108)][_0x2f29a3(0x10a)],{'unitId':_0x150488,'subUnitId':_0x28c3a2,'row':_0x15ff94,'col':_0x2a1a01,'collapse':_0x563bb7});}}[_0xef4c23(0xbd)](_0x3cc366){const _0x345ac6=_0xef4c23;if(_0x3cc366){const {unitId:_0x25105e,subUnitId:_0x5bdf09,pivotTableId:_0x4e80bc,tableFieldId:_0x59366d,items:_0x1f8af0,isAll:_0x283fa5}=_0x3cc366;this[_0x345ac6(0x14a)](this[_0x345ac6(0x108)][_0x345ac6(0xc2)],{'unitId':_0x25105e,'subUnitId':_0x5bdf09,'pivotTableId':_0x4e80bc,'tableFieldId':_0x59366d,'items':_0x1f8af0[_0x345ac6(0x184)](),'isAll':_0x283fa5});}}[_0xef4c23(0x198)](_0x2ce9c7){const _0x37763c=_0xef4c23;if(_0x2ce9c7){const {unitId:_0x2cb396,subUnitId:_0x4c7206,pivotTableId:_0x3cd2ba,tableFieldId:_0x257fd5,info:_0x11cf05}=_0x2ce9c7;this[_0x37763c(0x14a)](this[_0x37763c(0x108)][_0x37763c(0xd4)],{'unitId':_0x2cb396,'subUnitId':_0x4c7206,'pivotTableId':_0x3cd2ba,'tableFieldId':_0x257fd5,'info':{..._0x11cf05}});}}[_0xef4c23(0x195)](_0x16e24e){const _0x374af2=_0xef4c23;if(_0x16e24e){const {unitId:_0x5b7c05,subUnitId:_0x13aeea,tableFieldId:_0x371630,pivotTableId:_0x109aa1,displayName:_0x3cc7a3,format:_0x50e9db,subtotalType:_0x2f663a,tableFieldInfo:_0x4e5d2e,dataFieldInfo:_0x4a3868}=_0x16e24e;this[_0x374af2(0x14a)](this[_0x374af2(0x108)]['PivotTableFieldSettingChanged'],{'unitId':_0x5b7c05,'subUnitId':_0x13aeea,'tableFieldId':_0x371630,'pivotTableId':_0x109aa1,'displayName':_0x3cc7a3,'format':_0x50e9db,'subtotalType':_0x2f663a,'tableFieldInfo':_0x4e5d2e,'dataFieldInfo':_0x4a3868});}}['_firePivotTableValuePositionChangedEvent'](_0x26c15c){const _0x552be2=_0xef4c23;if(_0x26c15c){const {pivotTableId:_0x1c85fe,position:_0x3cfb0c,index:_0x494d43}=_0x26c15c;this[_0x552be2(0x14a)](this[_0x552be2(0x108)][_0x552be2(0xb9)],{'pivotTableId':_0x1c85fe,'position':_0x3cfb0c,'index':_0x494d43});}}[_0xef4c23(0x174)](_0x3bce9c){const _0x8d2c56=_0xef4c23;if(_0x3bce9c){const {positionType:_0x1c2ac4,pivotTableId:_0x4d660c,pivotTableConfig:_0xa1f2ff}=_0x3bce9c,{targetCellInfo:_0x173475,sourceRangeInfo:_0x58a333}=_0xa1f2ff,{unitId:_0x2c17ce}=_0x173475;this[_0x8d2c56(0x14a)](this[_0x8d2c56(0x108)][_0x8d2c56(0x157)],{'unitId':_0x2c17ce,'positionType':_0x1c2ac4,'pivotTableId':_0x4d660c,'sourceRangeInfo':{'startRow':_0x58a333['range'][_0x8d2c56(0xee)],'endRow':_0x58a333[_0x8d2c56(0xfd)][_0x8d2c56(0xc0)],'startColumn':_0x58a333[_0x8d2c56(0xfd)]['startColumn'],'endColumn':_0x58a333[_0x8d2c56(0xfd)][_0x8d2c56(0x17c)],'unitId':_0x58a333[_0x8d2c56(0x133)],'subUnitId':_0x58a333[_0x8d2c56(0xe3)],'sheetName':_0x58a333['sheetName']},'targetCellInfo':{'row':_0x173475['row'],'column':_0x173475[_0x8d2c56(0x170)],'sheetName':_0x173475[_0x8d2c56(0x155)],'unitId':_0x173475[_0x8d2c56(0x133)],'subUnitId':_0x173475[_0x8d2c56(0xe3)]}});}}['_fireBeforeAddPivotTableEvent'](_0x47db04){const _0x525abd=_0xef4c23;if(_0x47db04){const {positionType:_0x507521,pivotTableId:_0x1d12e2,pivotTableConfig:_0x53e27a}=_0x47db04,{targetCellInfo:_0x3688f4,sourceRangeInfo:_0x3c4e27}=_0x53e27a,{unitId:_0x4df330}=_0x3688f4,_0x436312={'unitId':_0x4df330,'positionType':_0x507521,'pivotTableId':_0x1d12e2,'sourceRangeInfo':{'startRow':_0x3c4e27[_0x525abd(0xfd)][_0x525abd(0xee)],'endRow':_0x3c4e27[_0x525abd(0xfd)][_0x525abd(0xc0)],'startColumn':_0x3c4e27[_0x525abd(0xfd)][_0x525abd(0xaf)],'endColumn':_0x3c4e27[_0x525abd(0xfd)][_0x525abd(0x17c)],'unitId':_0x3c4e27[_0x525abd(0x133)],'subUnitId':_0x3c4e27['subUnitId'],'sheetName':_0x3c4e27[_0x525abd(0x155)]},'targetCellInfo':{'row':_0x3688f4[_0x525abd(0x19c)],'column':_0x3688f4['col'],'sheetName':_0x3688f4[_0x525abd(0x155)],'unitId':_0x3688f4['unitId'],'subUnitId':_0x3688f4['subUnitId']},'cancel':!0x1};if(this[_0x525abd(0x14a)](this['Event'][_0x525abd(0x13b)],_0x436312),_0x436312[_0x525abd(0xcb)])throw new Error(_0x525abd(0xb3));}}[_0xef4c23(0x17b)](_0x49434a){const _0x4619d7=_0xef4c23;if(_0x49434a){const {unitId:_0xdf47ce,pivotTableId:_0x579f4e}=_0x49434a;this[_0x4619d7(0x14a)](this[_0x4619d7(0x108)][_0x4619d7(0x161)],{'unitId':_0xdf47ce,'pivotTableId':_0x579f4e});}}[_0xef4c23(0xec)](_0x5bfdcc){const _0x4821ef=_0xef4c23;if(_0x5bfdcc){const {originTargetInfo:_0x80ff97,pivotTableId:_0x61381e,targetCellInfo:_0x20a55c}=_0x5bfdcc,{unitId:_0x41cee9}=_0x80ff97,_0xb5fa53=this[_0x4821ef(0x15c)][_0x4821ef(0xab)](l[_0x4821ef(0xc9)])[_0x4821ef(0xef)](_0x80ff97[_0x4821ef(0x133)],_0x80ff97['subUnitId'],_0x61381e);if(!_0xb5fa53)return;const _0x13ee29={'unitId':_0x41cee9,'pivotTableId':_0x61381e,'originTargetInfo':{'row':_0xb5fa53['targetCellInfo'][_0x4821ef(0x19c)],'column':_0xb5fa53[_0x4821ef(0x16c)][_0x4821ef(0x170)],'unitId':_0xb5fa53['targetCellInfo'][_0x4821ef(0x133)],'subUnitId':_0xb5fa53[_0x4821ef(0x16c)][_0x4821ef(0xe3)]},'targetCellInfo':{'row':_0x20a55c[_0x4821ef(0x19c)],'column':_0x20a55c['col'],'unitId':_0x20a55c[_0x4821ef(0x133)],'subUnitId':_0x20a55c[_0x4821ef(0xe3)]},'cancel':!0x1};if(this[_0x4821ef(0x14a)](this[_0x4821ef(0x108)][_0x4821ef(0xda)],_0x13ee29),_0x13ee29['cancel'])throw new Error(_0x4821ef(0xc3));}}[_0xef4c23(0x107)](_0x2721ee){const _0x2bfcc3=_0xef4c23;if(_0x2721ee){const {originTargetInfo:_0x66f223,pivotTableId:_0x591c4c,targetCellInfo:_0xfc8d42}=_0x2721ee,{unitId:_0x51c277}=_0x66f223,_0x5d5495=this['_injector']['get'](l[_0x2bfcc3(0xc9)])[_0x2bfcc3(0xef)](_0x66f223[_0x2bfcc3(0x133)],_0x66f223[_0x2bfcc3(0xe3)],_0x591c4c);if(!_0x5d5495)return;this[_0x2bfcc3(0x14a)](this['Event']['PivotTableMoved'],{'unitId':_0x51c277,'pivotTableId':_0x591c4c,'originTargetInfo':{'row':_0x5d5495[_0x2bfcc3(0x16c)][_0x2bfcc3(0x19c)],'column':_0x5d5495[_0x2bfcc3(0x16c)][_0x2bfcc3(0x170)],'unitId':_0x5d5495[_0x2bfcc3(0x16c)][_0x2bfcc3(0x133)],'subUnitId':_0x5d5495[_0x2bfcc3(0x16c)][_0x2bfcc3(0xe3)]},'targetCellInfo':{'row':_0xfc8d42[_0x2bfcc3(0x19c)],'column':_0xfc8d42[_0x2bfcc3(0x170)],'unitId':_0xfc8d42[_0x2bfcc3(0x133)],'subUnitId':_0xfc8d42['subUnitId']}});}}['_fireRenderPivotTableEvent'](_0x432cae){const _0x4f4e29=_0xef4c23;if(_0x432cae){const {unitId:_0xf3d6df,subUnitId:_0x1d72d0,pivotTableId:_0x5b5e86,type:_0xd3be47,rangesCache:_0x2f32f4,isEmpty:_0x515cca}=_0x432cae;this[_0x4f4e29(0x14a)](this[_0x4f4e29(0x108)]['PivotTableRendered'],{'unitId':_0xf3d6df,'subUnitId':_0x1d72d0,'pivotTableId':_0x5b5e86,'changeType':_0xd3be47,'isEmpty':!!_0x515cca,'rangeInfo':_0x2f32f4});}}[_0xef4c23(0x15f)](_0x2dee17,_0x5a2e4d){const _0x3dfa10=_0xef4c23,_0x3ea571=(_0x5a2e4d?new _0x5a2e4d():new ve())[_0x3dfa10(0x11e)](_0x3dfa10(0xd5),_0x2dee17),_0x42b574=_0x2dee17[0x0];_0x3ea571[_0x3dfa10(0x189)]()[_0x3dfa10(0x19a)]((_0x3593aa,_0x28ba1f)=>{const _0xce53b=_0x3dfa10;_0x3ea571[_0xce53b(0x112)](_0x3593aa,_0x42b574[_0x28ba1f]);});const _0x356a14=r['generateHexNumber'](0x8),_0x139930=new r[(_0x3dfa10(0x140))](_0x3ea571,void 0x0,_0x356a14);return new re(this['_injector'],_0x139930,_0x2dee17,_0x356a14);}}A[_0xef4c23(0xf5)]['extend'](ce);
1
+ 'use strict';const _0x554119=_0x516e;(function(_0x118778,_0x1868c4){const _0x4361bf=_0x516e,_0xb378c3=_0x118778();while(!![]){try{const _0x518e12=parseInt(_0x4361bf(0xe9))/0x1*(parseInt(_0x4361bf(0xf2))/0x2)+parseInt(_0x4361bf(0x121))/0x3*(parseInt(_0x4361bf(0x131))/0x4)+parseInt(_0x4361bf(0x12b))/0x5*(parseInt(_0x4361bf(0x8f))/0x6)+-parseInt(_0x4361bf(0xc6))/0x7*(-parseInt(_0x4361bf(0x123))/0x8)+parseInt(_0x4361bf(0xf6))/0x9+-parseInt(_0x4361bf(0xa1))/0xa+-parseInt(_0x4361bf(0x124))/0xb;if(_0x518e12===_0x1868c4)break;else _0xb378c3['push'](_0xb378c3['shift']());}catch(_0x1f4235){_0xb378c3['push'](_0xb378c3['shift']());}}}(_0x1ba1,0xf0749));var ee=Object[_0x554119(0x17c)],te=(_0x566c5a,_0x445369,_0x1f2fc0)=>_0x445369 in _0x566c5a?ee(_0x566c5a,_0x445369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f2fc0}):_0x566c5a[_0x445369]=_0x1f2fc0,S=(_0x2d4456,_0x391457,_0x25fa6e)=>te(_0x2d4456,typeof _0x391457!=_0x554119(0x175)?_0x391457+'':_0x391457,_0x25fa6e);const r=require(_0x554119(0xba)),l=require('@univerjs-pro/sheets-pivot'),m=require('@univerjs/core'),R=require(_0x554119(0x11b)),A=require(_0x554119(0x127)),ie=require(_0x554119(0x122));class x{constructor(_0x1e1af1,_0x1f3bc0,_0x21c2be,_0x21d1d9){const _0x48bbef=_0x554119;S(this,_0x48bbef(0xaf)),S(this,_0x48bbef(0xf1)),S(this,_0x48bbef(0x165)),S(this,'_injector'),(this[_0x48bbef(0xaf)]=_0x1e1af1,this[_0x48bbef(0xf1)]=_0x1f3bc0,this[_0x48bbef(0x165)]=_0x21c2be,this[_0x48bbef(0xf7)]=_0x21d1d9);}[_0x554119(0x178)](){const _0x94f166=_0x554119;return this['_injector'][_0x94f166(0xd5)](l[_0x94f166(0x158)])[_0x94f166(0xc3)](this[_0x94f166(0xaf)],this[_0x94f166(0xf1)],this[_0x94f166(0x165)]);}[_0x554119(0x167)](_0x556993){const _0x1e7348=_0x554119,_0x2666d1=this[_0x1e7348(0xf7)][_0x1e7348(0xd5)](m['ICommandService']),_0x1c1b4f={'unitId':this[_0x1e7348(0xaf)],'subUnitId':this[_0x1e7348(0xf1)],'pivotTableId':this[_0x1e7348(0x165)],'pivotTableConfig':_0x556993};return _0x2666d1[_0x1e7348(0xf9)](l['SetPivotFieldsConfigCommand']['id'],_0x1c1b4f);}['reset'](_0x13ccaf){const _0x2ab5f0=_0x554119,_0x2b1c39=this[_0x2ab5f0(0xf7)][_0x2ab5f0(0xd5)](m[_0x2ab5f0(0xcd)]),_0x38adc9={'unitId':this[_0x2ab5f0(0xaf)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x2ab5f0(0x165)],'resetArea':_0x13ccaf};return _0x2b1c39[_0x2ab5f0(0xf9)](l['ResetPivotFieldsConfigCommand']['id'],_0x38adc9);}['getPivotTableId'](){const _0x5db636=_0x554119;return this[_0x5db636(0x165)];}[_0x554119(0xdc)](_0x21fcdf){const _0x394a1b=_0x554119,_0x30775f=this[_0x394a1b(0xf7)][_0x394a1b(0xd5)](l[_0x394a1b(0x158)])[_0x394a1b(0xc3)](this[_0x394a1b(0xaf)],this[_0x394a1b(0xf1)],this[_0x394a1b(0x165)]),_0x184520=_0x30775f==null?void 0x0:_0x30775f['fieldsConfig'];if(_0x184520)return _0x184520[_0x394a1b(0x14d)][_0x21fcdf]||_0x184520[_0x394a1b(0x129)][_0x21fcdf];}['getSourceFieldsInfo'](){const _0x3a861a=_0x554119,_0xd27500=this[_0x3a861a(0xf7)],_0x1c1a77=this[_0x3a861a(0xaf)],_0x53f005=this[_0x3a861a(0x165)],_0x3e93a1=_0xd27500[_0x3a861a(0xd5)](l[_0x3a861a(0x158)])['getCollection'](_0x1c1a77,_0x53f005);if(_0x3e93a1){const _0x68fffa=_0x3e93a1[_0x3a861a(0x10a)],_0x83b01=_0x3e93a1[_0x3a861a(0xa4)],_0x1556bb=_0x3e93a1['displayNameRecord'],_0x17a8f9=[];for(const _0x4bbd63 of _0x68fffa){const _0x3063d1=_0x83b01[_0x4bbd63];if(_0x3063d1){const _0x10c734={'id':_0x4bbd63,'name':_0x3063d1[_0x3a861a(0x159)],'fieldDataType':_0x3063d1[_0x3a861a(0x16b)]};_0x1556bb&&_0x1556bb[_0x4bbd63]!==void 0x0&&(_0x10c734[_0x3a861a(0x16e)]=_0x1556bb[_0x4bbd63]),_0x17a8f9[_0x3a861a(0xd7)](_0x10c734);}}return _0x17a8f9;}return[];}[_0x554119(0xfd)](_0x1add5b){const _0x5215c5=_0x554119;var _0x16d425;const _0x5e1d91=this['_injector'][_0x5215c5(0xd5)](l[_0x5215c5(0x158)])[_0x5215c5(0xc3)](this['unitId'],this['subUnitId'],this[_0x5215c5(0x165)]),_0x575fab=_0x5e1d91==null?void 0x0:_0x5e1d91[_0x5215c5(0x9b)]['valueFilter'];return(_0x16d425=_0x575fab==null?void 0x0:_0x575fab[_0x5215c5(0xd4)](_0x5c27d6=>_0x5c27d6[_0x5215c5(0x10c)]===_0x1add5b))==null?void 0x0:_0x16d425[_0x5215c5(0x132)];}[_0x554119(0xe1)](){const _0x51edb9=_0x554119,_0xeff4b9=this[_0x51edb9(0xf7)]['get'](l[_0x51edb9(0x158)])[_0x51edb9(0xc3)](this['unitId'],this[_0x51edb9(0xf1)],this['pivotTableId']),_0x6cd022=_0xeff4b9==null?void 0x0:_0xeff4b9[_0x51edb9(0x9b)][_0x51edb9(0xdd)];return(_0x6cd022==null?void 0x0:_0x6cd022[_0x51edb9(0xe8)]())||[];}[_0x554119(0x152)](_0x51545d){const _0x37cdf5=_0x554119,_0x5346ce=this['_injector']['get'](l[_0x37cdf5(0x158)])['getPivotTableConfig'](this['unitId'],this[_0x37cdf5(0xf1)],this[_0x37cdf5(0x165)]),_0x14ad0f=_0x5346ce==null?void 0x0:_0x5346ce[_0x37cdf5(0x9b)];if(_0x14ad0f)switch(_0x51545d){case r['PivotTableFiledAreaEnum'][_0x37cdf5(0x130)]:return _0x14ad0f['columnFields']['concat']();case r[_0x37cdf5(0x111)][_0x37cdf5(0x176)]:return _0x14ad0f[_0x37cdf5(0x112)][_0x37cdf5(0xe8)]();case r[_0x37cdf5(0x111)][_0x37cdf5(0x102)]:return _0x14ad0f[_0x37cdf5(0x12f)][_0x37cdf5(0xe8)]();case r[_0x37cdf5(0x111)][_0x37cdf5(0xd1)]:return _0x14ad0f[_0x37cdf5(0x161)][_0x37cdf5(0xe8)]();case r[_0x37cdf5(0x111)][_0x37cdf5(0x9f)]:return _0x14ad0f[_0x37cdf5(0x149)][_0x37cdf5(0xe8)]();}return[];}['getPivotTableRangeInfo'](){const _0x364343=_0x554119;var _0x5a25f7;const _0x14b81d=(_0x5a25f7=this[_0x364343(0xf7)]['get'](l[_0x364343(0x158)])[_0x364343(0x12e)](this[_0x364343(0xaf)],this[_0x364343(0xf1)],this[_0x364343(0x165)]))==null?void 0x0:_0x5a25f7[_0x364343(0x11a)];if(_0x14b81d)return l[_0x364343(0xa2)](_0x14b81d);}async[_0x554119(0x137)](){const _0x4da4f6=_0x554119;return await this[_0x4da4f6(0xf7)]['get'](m['ICommandService'])[_0x4da4f6(0x11d)](l['RemovePivotTableMutation']['id'],{'unitId':this[_0x4da4f6(0xaf)],'subUnitId':this[_0x4da4f6(0xf1)],'pivotTableId':this['pivotTableId']});}async['addField'](_0x1b0eeb,_0x3341c6,_0x513f6f){const _0x403bf4=_0x554119,_0x26cb73=this[_0x403bf4(0xf7)],_0x27a005=this[_0x403bf4(0xaf)],_0x584b07=this[_0x403bf4(0xf1)],_0x17f9df=this[_0x403bf4(0x165)],_0x2c60c3=_0x26cb73[_0x403bf4(0xd5)](m[_0x403bf4(0xcd)]),_0x2f1ed0=_0x26cb73[_0x403bf4(0xd5)](l[_0x403bf4(0x158)]),_0x3b62f6=_0x2f1ed0[_0x403bf4(0xc3)](_0x27a005,_0x584b07,_0x17f9df),_0x38b4fa=_0x2f1ed0[_0x403bf4(0xe6)](_0x27a005,_0x17f9df);if(!_0x3b62f6||!_0x38b4fa)return!0x1;let _0x500b1d=_0x1b0eeb;typeof _0x500b1d==_0x403bf4(0x138)&&(_0x500b1d=_0x2f1ed0[_0x403bf4(0xe6)](_0x27a005,_0x17f9df)[_0x403bf4(0x10a)][_0x1b0eeb]);const _0x3cb0c6={'unitId':_0x27a005,'subUnitId':_0x584b07,'pivotTableId':_0x17f9df,'dataFieldId':_0x500b1d,'fieldArea':_0x3341c6,'index':_0x513f6f};return _0x2c60c3[_0x403bf4(0xf9)](l[_0x403bf4(0x171)]['id'],_0x3cb0c6);}async[_0x554119(0xb0)](_0x2f248f){const _0xef91f4=_0x554119,_0x25428f=this[_0xef91f4(0xf7)],_0x4488f5=this[_0xef91f4(0xaf)],_0x566490=this[_0xef91f4(0xf1)],_0x338a35=this['pivotTableId'],_0x3df33a=_0x25428f[_0xef91f4(0xd5)](m['ICommandService']),_0x47dbc3={'unitId':_0x4488f5,'subUnitId':_0x566490,'pivotTableId':_0x338a35,'fieldIds':_0x2f248f};return _0x3df33a[_0xef91f4(0xf9)](l['RemovePivotFieldCommand']['id'],_0x47dbc3);}async[_0x554119(0x105)](_0x116b98,_0x238250,_0x5c95a3){const _0x5dc938=_0x554119,_0x9a410b=this['_injector'],_0x513dee=this['unitId'],_0x48724a=this['subUnitId'],_0x1da33a=this[_0x5dc938(0x165)],_0x37a408=_0x9a410b[_0x5dc938(0xd5)](m['ICommandService']),_0x1202aa={'unitId':_0x513dee,'subUnitId':_0x48724a,'pivotTableId':_0x1da33a,'fieldId':_0x116b98,'area':_0x238250,'index':_0x5c95a3};return _0x37a408[_0x5dc938(0xf9)](l[_0x5dc938(0x164)]['id'],_0x1202aa);}async[_0x554119(0x92)](_0x152fa8,_0x17debf){const _0x50f7a4=_0x554119,_0x1ec331=this[_0x50f7a4(0xf7)],_0x50c4a4=this['unitId'],_0x3d7e64=this['subUnitId'],_0x880603=this[_0x50f7a4(0x165)],_0x51360b=_0x1ec331[_0x50f7a4(0xd5)](m[_0x50f7a4(0xcd)]),_0x8218db={'unitId':_0x50c4a4,'subUnitId':_0x3d7e64,'pivotTableId':_0x880603,'position':_0x152fa8,'index':_0x17debf};return _0x51360b[_0x50f7a4(0xf9)](l[_0x50f7a4(0x96)]['id'],_0x8218db);}async[_0x554119(0x114)](_0x294da2,_0x2b8129){const _0x1cd7c4=_0x554119,_0x17a054=this[_0x1cd7c4(0xf7)],_0x4b02e2=this[_0x1cd7c4(0xaf)],_0x2df6b4=this[_0x1cd7c4(0xf1)],_0x483aa4=this[_0x1cd7c4(0x165)],_0x13fabf=_0x17a054[_0x1cd7c4(0xd5)](m[_0x1cd7c4(0xcd)]),_0x3500d6={'unitId':_0x4b02e2,'subUnitId':_0x2df6b4,'pivotTableId':_0x483aa4,'fieldId':_0x294da2,'subtotalType':_0x2b8129};return _0x13fabf[_0x1cd7c4(0xf9)](l[_0x1cd7c4(0xd3)]['id'],_0x3500d6);}async[_0x554119(0xae)](_0x1ebca7,_0x3b004d){const _0x5c3a30=_0x554119,_0x30c745=this[_0x5c3a30(0xf7)],_0x324ee7=this[_0x5c3a30(0xaf)],_0x1d0b37=this['subUnitId'],_0x5ed8fe=this['pivotTableId'],_0x41fef4=_0x30c745[_0x5c3a30(0xd5)](m[_0x5c3a30(0xcd)]),_0x1b29fe={'unitId':_0x324ee7,'subUnitId':_0x1d0b37,'tableFieldId':_0x1ebca7,'pivotTableId':_0x5ed8fe,'info':_0x3b004d};return _0x41fef4[_0x5c3a30(0xf9)](l[_0x5c3a30(0x142)]['id'],_0x1b29fe);}async[_0x554119(0xac)](_0x4f9900,_0x186473,_0x4df971){const _0xa1f99e=_0x554119,_0x218c9e=this[_0xa1f99e(0xf7)],_0x4bfe98=this[_0xa1f99e(0xaf)],_0x5a9cab=this['subUnitId'],_0x2e91d5=this[_0xa1f99e(0x165)],_0x4f52ef=_0x218c9e[_0xa1f99e(0xd5)](m[_0xa1f99e(0xcd)]),_0x43d6d1={'unitId':_0x4bfe98,'subUnitId':_0x5a9cab,'pivotTableId':_0x2e91d5,'tableFieldId':_0x4f9900,'items':_0x186473,'isAll':_0x4df971};return _0x4f52ef[_0xa1f99e(0xf9)](l['SetPivotFilterCommand']['id'],_0x43d6d1);}async[_0x554119(0x11c)](_0x369521,_0x448cd2){const _0x8758d6=_0x554119,_0x58acd2=this[_0x8758d6(0xf7)],_0x28670b=this[_0x8758d6(0xaf)],_0xf22cde=this[_0x8758d6(0xf1)],_0x4c4c0b=this[_0x8758d6(0x165)],_0x3ab735=_0x58acd2[_0x8758d6(0xd5)](m[_0x8758d6(0xcd)]);if(_0x369521===void 0x0)return console['warn'](_0x8758d6(0x16d)),!0x1;const _0x29f4da=_0x448cd2&&{..._0x448cd2,'type':r[_0x8758d6(0x14e)][_0x8758d6(0xb1)]},_0xe562e8={'unitId':_0x28670b,'subUnitId':_0xf22cde,'pivotTableId':_0x4c4c0b,'fieldId':_0x369521,'valueFilterInfo':_0x29f4da};return _0x3ab735[_0x8758d6(0xf9)](l['SetPivotValueFilterCommand']['id'],_0xe562e8);}async['renameField'](_0x5397a0,_0x11f01e){const _0x5f0c66=_0x554119,_0x5effbd=this[_0x5f0c66(0xf7)],_0x2f4a7d=this['unitId'],_0x48b261=this['subUnitId'],_0x57857e=this[_0x5f0c66(0x165)],_0x2d8033=_0x5effbd[_0x5f0c66(0xd5)](m[_0x5f0c66(0xcd)]),_0xb53ea5={'unitId':_0x2f4a7d,'subUnitId':_0x48b261,'pivotTableId':_0x57857e,'fieldId':_0x5397a0,'name':_0x11f01e};return _0x2d8033['executeCommand'](l['RenamePivotFieldMutation']['id'],_0xb53ea5);}async[_0x554119(0x100)](_0x322b51,_0x52afb0,_0x470675){const _0x5b80cd=_0x554119,_0x188cfb=this[_0x5b80cd(0xf7)][_0x5b80cd(0xd5)](m[_0x5b80cd(0xcd)]),_0x180b9f=this[_0x5b80cd(0xf7)][_0x5b80cd(0xd5)](m['IUniverInstanceService'])[_0x5b80cd(0x109)](this['unitId']),_0x10a1e3=_0x180b9f==null?void 0x0:_0x180b9f[_0x5b80cd(0x113)](_0x322b51);if(!_0x180b9f||!_0x10a1e3)throw new Error(_0x5b80cd(0x10b));return _0x188cfb[_0x5b80cd(0xf9)](l[_0x5b80cd(0xf3)]['id'],{'pivotTableId':this['pivotTableId'],'targetCellInfo':{'subUnitId':_0x10a1e3['getSheetId'](),'unitId':this[_0x5b80cd(0xaf)],'row':_0x52afb0,'col':_0x470675},'originTargetInfo':{'subUnitId':this['subUnitId'],'unitId':this[_0x5b80cd(0xaf)]}});}}class oe extends R[_0x554119(0xa5)]{async[_0x554119(0x146)](_0x50832a,_0x42a30d,_0x544d92){const _0x39963c=_0x554119,_0x55a1db=this['_injector'],_0x55e8c3=_0x55a1db[_0x39963c(0xd5)](m['ICommandService']),_0x79c4a3=r['generateHexNumber'](0x8),_0x41f75c={'positionType':_0x42a30d,'pivotTableId':_0x79c4a3,'pivotTableConfig':{'targetCellInfo':_0x544d92,'sourceRangeInfo':_0x50832a,'isEmpty':!0x0}};if(await _0x55e8c3[_0x39963c(0xf9)](l[_0x39963c(0xd9)]['id'],_0x41f75c))return new x(_0x544d92[_0x39963c(0xaf)],_0x544d92[_0x39963c(0xf1)],_0x79c4a3,_0x55a1db);}[_0x554119(0x14f)](_0x427b47,_0x4dda7b,_0x348268,_0x4daf07){const _0xfe2ffd=_0x554119,_0x462e41=this[_0xfe2ffd(0xf7)],_0x2b4192=_0x462e41['get'](l['SheetsPivotTableAdaptorModel'])[_0xfe2ffd(0x143)](_0x427b47,_0x4dda7b,_0x348268,_0x4daf07);if(_0x2b4192)return new x(_0x427b47,_0x4dda7b,_0x2b4192,_0x462e41);}[_0x554119(0x10d)](_0x2ef99d){const _0x1fb0b2=_0x554119,_0x4b9697=this[_0x1fb0b2(0xf7)],_0x13f432=_0x4b9697[_0x1fb0b2(0xd5)](l['SheetsPivotTableConfigModel'])[_0x1fb0b2(0x179)](this['getId'](),_0x2ef99d);if(_0x13f432)return new x(_0x13f432[_0x1fb0b2(0xaf)],_0x13f432['subUnitId'],_0x2ef99d,_0x4b9697);}}function _0x516e(_0xcb3e75,_0x4fd7d5){const _0x1ba159=_0x1ba1();return _0x516e=function(_0x516e11,_0x4b8f4d){_0x516e11=_0x516e11-0x8d;let _0x379bcd=_0x1ba159[_0x516e11];return _0x379bcd;},_0x516e(_0xcb3e75,_0x4fd7d5);}R[_0x554119(0xa5)][_0x554119(0xd6)](oe);class ne extends R[_0x554119(0xdf)]{[_0x554119(0x14f)](_0x487b91,_0x10fe61){const _0x401979=_0x554119,_0x5dd7ad=this[_0x401979(0xf7)],_0x45dd83=_0x5dd7ad[_0x401979(0xd5)](l[_0x401979(0x99)]),_0x4fc6bf=this[_0x401979(0x150)][_0x401979(0x120)](),_0x517138=this['getSheetId'](),_0x43159b=_0x45dd83[_0x401979(0x143)](_0x4fc6bf,_0x517138,_0x487b91,_0x10fe61);if(_0x43159b)return new x(_0x4fc6bf,_0x517138,_0x43159b,_0x5dd7ad);}}R['FWorksheet'][_0x554119(0xd6)](ne);class ae extends A[_0x554119(0x13e)]{get['PivotSubtotalTypeEnum'](){const _0x17f1ca=_0x554119;return r[_0x17f1ca(0xec)];}get[_0x554119(0x14e)](){const _0xedf8d7=_0x554119;return r[_0xedf8d7(0x14e)];}get[_0x554119(0x111)](){const _0xa13b62=_0x554119;return r[_0xa13b62(0x111)];}get[_0x554119(0xc0)](){const _0x31affe=_0x554119;return r[_0x31affe(0xc0)];}get[_0x554119(0x135)](){const _0x52750c=_0x554119;return r[_0x52750c(0x135)];}get['PivotDataFieldSortTypeEnum'](){const _0x26944b=_0x554119;return r[_0x26944b(0x13d)];}get[_0x554119(0x11f)](){return r['PivotDataFieldSortOperatorEnum'];}get[_0x554119(0x147)](){return r['ST_PivotFilterOperatorEnum'];}get[_0x554119(0xce)](){const _0x1eaf6b=_0x554119;return l[_0x1eaf6b(0xaa)];}get[_0x554119(0xe2)](){return r['PivotTableChangeTypeEnum'];}}A[_0x554119(0x13e)][_0x554119(0xd6)](ae);class se extends A[_0x554119(0xcc)]{get[_0x554119(0x17f)](){const _0x22aa88=_0x554119;return _0x22aa88(0x17f);}get[_0x554119(0x116)](){return'BeforePivotTableAdd';}get[_0x554119(0x14a)](){const _0x407e7d=_0x554119;return _0x407e7d(0x14a);}get[_0x554119(0x110)](){return'PivotTableMoved';}get[_0x554119(0x13f)](){const _0xab5bff=_0x554119;return _0xab5bff(0x13f);}get[_0x554119(0xb5)](){const _0x113340=_0x554119;return _0x113340(0xb5);}get[_0x554119(0x140)](){const _0x495ba9=_0x554119;return _0x495ba9(0x140);}get['PivotTableFieldMoved'](){return'PivotTableFieldMoved';}get['PivotTableFieldCollapseChanged'](){return'PivotTableFieldCollapseChanged';}get[_0x554119(0x108)](){const _0x5ac7c5=_0x554119;return _0x5ac7c5(0x108);}get[_0x554119(0x13a)](){return'PivotTableFieldSortChanged';}get[_0x554119(0x107)](){const _0x2cd79a=_0x554119;return _0x2cd79a(0x107);}get['PivotTableValuePositionChanged'](){const _0x5cb878=_0x554119;return _0x5cb878(0xb4);}}function _0x1ba1(){const _0x42644e=['unitId','removeField','ValueFilter','_fireBeforeMovePivotTableEvent','_fireRenderPivotTableEvent','PivotTableValuePositionChanged','PivotTableFieldAdded','registerEventHandler','setFilterInfo','onCommandExecuted','_firePivotTableFieldRemovedEvent','@univerjs-pro/engine-pivot','BeforePivotTableMove','format','date','_pivot','PivotTableFieldMoved','PivotTableValuePositionEnum','headerMap','Ready','getPivotTableConfig','getFieldIds','addFieldWithName','4539542BubXju','_firePivotTableFieldMovedEvent','getFieldDataTypeByFieldName','addFieldWithSourceId','getColCount','_getSourceIdByName','FEventName','ICommandService','PositionTypeEnum','info','(blank)','Filter','_firePivotTableFieldSettingChangedEvent','SetPivotSubtotalTypeMutation','find','get','extend','push','reset','AddPivotTableCommand','string','LifecycleStages','getFieldSetting','valueFilter','addValueFieldWithName','FWorksheet','getRowCount','getValueFilters','PivotTableChangeTypeEnum','getTime','UpdatePivotFieldSettingCommand','PivotTable','getCollection','startRow','concat','18058gTubgv','getDataFieldByTableId','targetCellInfo','PivotSubtotalTypeEnum','_isZhCN','getFieldById','[PivotTable]:\x20add\x20field\x20','PivotCellStyleTypeEnum','subUnitId','206sbaRMN','MovePivotTableCommand','RemovePivotFieldCommand','col','12268665WqBiow','_injector','getFieldDataType','executeCommand','level','subtotal','fireEvent','getValueFilter','getFieldDisplayNames','count','move','lifecycle$','Value','startColumn','endRow','updateFieldPosition','getDataFieldIdByDisplayName','PivotTableFieldSettingChanged','PivotTableFieldFilterChanged','getUnit','fieldIds','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','fieldId','getPivotTableById','query','setDisplayName','PivotTableMoved','PivotTableFiledAreaEnum','rowFields','getSheetBySheetName','setSubtotalType','isArray','BeforePivotTableAdd','LocaleService','auditTime','小计\x20','rangeInfo','@univerjs/sheets/facade','setValueFilter','syncExecuteCommand','YYYY-MM-DD','PivotDataFieldSortOperatorEnum','getUnitId','3501uNoNiO','rxjs','24DzuFgC','69925845bpkLJN','AddPivotTableWithConfigCommand','setSubtotal','@univerjs/core/facade','\x20failed.','measure','总计\x20','1864705jgOVdV','Before\x20add\x20pivot\x20table\x20event\x20canceled','numfmt','getPivotTableRangeInfo','valueFields','Column','5900DnnMni','filterInfo','keys','Total\x20','PivotDataFieldDataTypeEnum','value','remove','number','SetPivotFilterCommand','PivotTableFieldSortChanged','setFieldFormat','_fireAddPivotTableEvent','PivotDataFieldSortTypeEnum','FEnum','PivotTableRendered','PivotTableFieldRemoved','_firePivotTableValuePositionChangedEvent','SetPivotSortCommand','getPivotTableIdByCell','getTableFieldsByDataFieldId','getCurrentLocale','addPivotTable','PivotFilterOperatorEnum','range','hiddenFields','PivotTableRemoved','PivotTableFieldCollapseChanged','data','dimension','PivotFilterTypeEnum','getPivotTableByCell','_workbook','getValueIndex','getFieldIdsByArea','getFieldDataTypeByColumnIndex','_firePivotTableFieldAddedEvent','filter','isNaN','tableFieldId','SheetsPivotTableConfigModel','name','_firePivotTableFieldCollapsedEvent','FUniver','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','getformat','row','length','cancel','filterFields','blank','sheetName','MovePivotFieldCommand','pivotTableId','getFieldCountByArea','setFieldsConfig','resetDimension','disposeWithMe','[PivotTable]:\x20The\x20field\x20name\x20','fieldDataType','_initialize','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','displayName','_fireBeforeAddPivotTableEvent','params','AddPivotFieldCommand','beforeCommandExecuted','Event','Before\x20move\x20pivot\x20table\x20event\x20canceled','symbol','Row','LocaleType','getConfig','getTargetByPivotTableId','column','_firePivotTableFieldFilterChangedEvent','defineProperty','dataFieldsCollection','_id','PivotTableAdded','sum','GrandTotal','12RPOmbE','forEach','generateHexNumber','updateValuePosition','isBottomTotal','getValuePosition','Grand\x20Total\x20','UpdatePivotValuePositionCommand','LifecycleService','DataFieldManager','SheetsPivotTableAdaptorModel','Subtotal','fieldsConfig','subscribe','_firePivotTableFieldSortChangedEvent','object','Hidden','valueIndex','2940840rBrMTF','unionPivotViewRange','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','fields','FWorkbook','RemovePivotTableMutation','_fireMovedPivotTableEvent','getId','PivotViewCellValueTypeEnum','PositionType','setOptions','setLabelManualFilter','_sourceData','setLabelSort'];_0x1ba1=function(){return _0x42644e;};return _0x1ba1();}A[_0x554119(0xcc)][_0x554119(0xd6)](se);const Z=_0x554119(0x11e);function de(_0xc68b7d){return _0xc68b7d/0x3e8/0x15180+0x63e1;}function le(_0xe04b5b,_0x4a67f7,_0x536421,_0x47afa9){const _0x1095b3=_0x554119;var _0x42414c,_0x1a6840,_0x2292ba,_0x5ee333,_0x4b93c5,_0x4ab7ee,_0x97f8aa,_0x2f12b4,_0xa3ff0b,_0x3bbe2e,_0x4cb84c,_0x5c617c,_0x1b9512,_0x2bc246,_0x546fbe;const _0x112009=[],_0x324d87=[],_0x915b5d=[],{showRowGrandTotal:_0x5042ce,showRowSubTotal:_0x914d16}=_0x47afa9,{cornerView:_0x157316,colView:_0x3dc026,rowView:_0x2fb7be,dataView:_0x290026,formatMap:_0x480dd4}=_0x4a67f7,_0x4c580a=_0x157316[_0x1095b3(0xe0)](),_0x167641=_0x157316[_0x1095b3(0xca)]();for(let _0x354a7b=0x0;_0x354a7b<_0x4c580a;_0x354a7b++)for(let _0x373728=0x0;_0x373728<_0x167641;_0x373728++){const _0x5def70={...(_0x1a6840=(_0x42414c=_0x157316[_0x1095b3(0x14c)])==null?void 0x0:_0x42414c[_0x354a7b])==null?void 0x0:_0x1a6840[_0x373728]};_0x5def70['v']&&(_0x112009[_0x354a7b]||(_0x112009[_0x354a7b]=[]),_0x915b5d[_0x354a7b]||(_0x915b5d[_0x354a7b]=[]),_0x112009[_0x354a7b][_0x373728]=_0x5def70['v'],_0x915b5d[_0x354a7b][_0x373728]=_0x5def70['v']);}for(let _0x257ac2=0x0;_0x257ac2<_0x3dc026[_0x1095b3(0xe0)]();_0x257ac2++){const _0x12e831=(_0x5ee333=(_0x2292ba=_0x3dc026==null?void 0x0:_0x3dc026[_0x1095b3(0xc1)])==null?void 0x0:_0x2292ba[_0x257ac2])==null?void 0x0:_0x5ee333[_0x1095b3(0x157)],_0x493735=_0x12e831?_0x480dd4[_0x12e831]:'';for(let _0x41b2b1=0x0;_0x41b2b1<_0x3dc026[_0x1095b3(0xca)]();_0x41b2b1++){const _0x49ec7e={...(_0x4ab7ee=(_0x4b93c5=_0x3dc026[_0x1095b3(0x14c)])==null?void 0x0:_0x4b93c5[_0x257ac2])==null?void 0x0:_0x4ab7ee[_0x41b2b1]};if((_0x49ec7e==null?void 0x0:_0x49ec7e['v'])!==void 0x0){let _0x4e2d91=_0x493735?m[_0x1095b3(0x12d)][_0x1095b3(0xbc)](_0x493735,Number(_0x49ec7e['v'])):_0x49ec7e['v'];(_0x49ec7e==null?void 0x0:_0x49ec7e['s'])===r[_0x1095b3(0xf0)]['Subtotal']?_0x4e2d91=_0x536421?_0x1095b3(0x119)+_0x4e2d91:_0x1095b3(0x134)+_0x4e2d91:(_0x49ec7e==null?void 0x0:_0x49ec7e['s'])===r[_0x1095b3(0xf0)][_0x1095b3(0x8e)]&&(_0x4e2d91=_0x536421?_0x1095b3(0x12a)+_0x4e2d91:_0x1095b3(0x95)+_0x4e2d91),(_0x49ec7e==null?void 0x0:_0x49ec7e['t'])===r['PivotViewCellValueTypeEnum'][_0x1095b3(0x162)]&&(_0x4e2d91=_0x536421?'(空白)':'(blank)'),_0x112009[_0x257ac2]||(_0x112009[_0x257ac2]=[]),_0x915b5d[_0x257ac2]||(_0x915b5d[_0x257ac2]=[]),_0x112009[_0x257ac2][_0x41b2b1+_0x167641]=_0x4e2d91,_0x915b5d[_0x257ac2][_0x41b2b1+_0x167641]=_0x4e2d91;}}}let _0x3ea86a=0x0,_0x4682a3=0x0,_0x824c30=0x0;for(let _0x4c6d91=0x0;_0x4c6d91<_0x2fb7be[_0x1095b3(0xe0)]();_0x4c6d91++){const _0x3ebda8=_0x2fb7be[_0x1095b3(0xcf)][_0x4c6d91];if(!_0x914d16&&_0x3ebda8[_0x1095b3(0x93)]&&_0x3ebda8[_0x1095b3(0xfa)]!==0x0){_0x824c30++,_0x4682a3=0x0;continue;}if(!(!_0x5042ce&&_0x3ebda8[_0x1095b3(0x93)]&&_0x3ebda8['level']===0x0)){for(let _0x356b98=0x0;_0x356b98<_0x2fb7be['getColCount']();_0x356b98++){const _0xc24b06={...(_0x2f12b4=(_0x97f8aa=_0x2fb7be[_0x1095b3(0x14c)])==null?void 0x0:_0x97f8aa[_0x4c6d91])==null?void 0x0:_0x2f12b4[_0x356b98]},_0x3f9e63=(_0x3bbe2e=(_0xa3ff0b=_0x2fb7be==null?void 0x0:_0x2fb7be[_0x1095b3(0xc1)])==null?void 0x0:_0xa3ff0b[_0x356b98])==null?void 0x0:_0x3bbe2e[_0x1095b3(0x157)],_0x4a174f=_0x3f9e63?_0x480dd4[_0x3f9e63]:'';if((_0xc24b06==null?void 0x0:_0xc24b06['v'])!==void 0x0){let _0x3a08b5=_0x4a174f?m[_0x1095b3(0x12d)][_0x1095b3(0xbc)](_0x4a174f,Number(_0xc24b06['v'])):_0xc24b06['v'];(_0xc24b06==null?void 0x0:_0xc24b06['s'])===r[_0x1095b3(0xf0)][_0x1095b3(0x9a)]?_0x3a08b5=_0x536421?_0x1095b3(0x119)+_0x3a08b5:_0x1095b3(0x134)+_0x3a08b5:(_0xc24b06==null?void 0x0:_0xc24b06['s'])===r[_0x1095b3(0xf0)][_0x1095b3(0x8e)]&&(_0x3a08b5=_0x536421?_0x1095b3(0x12a)+_0x3a08b5:_0x1095b3(0x95)+_0x3a08b5),(_0xc24b06==null?void 0x0:_0xc24b06['t'])===r[_0x1095b3(0xa9)][_0x1095b3(0x162)]&&(_0x3a08b5=_0x536421?'(空白)':_0x1095b3(0xd0)),_0x112009[_0x3ea86a+_0x4c580a]||(_0x112009[_0x3ea86a+_0x4c580a]=[]);let _0x2adb96=_0x324d87[_0x824c30];_0x2adb96||(_0x2adb96=[..._0x915b5d],_0x324d87[_0x824c30]=_0x2adb96),_0x2adb96[_0x4682a3+_0x4c580a]||(_0x2adb96[_0x4682a3+_0x4c580a]=[]),_0x2adb96[_0x4682a3+_0x4c580a][_0x356b98]=_0x3a08b5,_0x112009[_0x3ea86a+_0x4c580a][_0x356b98]=_0x3a08b5;}}_0x3ea86a++,_0x2fb7be['info'][_0x4c6d91][_0x1095b3(0x93)]?(_0x824c30++,_0x4682a3=0x0):_0x4682a3++;}}_0x3ea86a=0x0,_0x824c30=0x0,_0x4682a3=0x0;for(let _0xb0c749=0x0;_0xb0c749<_0x290026[_0x1095b3(0xe0)]();_0xb0c749++){const _0x301c8d=_0x2fb7be[_0x1095b3(0xcf)][_0xb0c749];if(!_0x914d16&&_0x301c8d[_0x1095b3(0x93)]&&_0x301c8d['level']!==0x0){_0x824c30++,_0x4682a3=0x0;continue;}if(!(!_0x5042ce&&_0x301c8d[_0x1095b3(0x93)]&&_0x301c8d['level']===0x0)){for(let _0x34dd2a=0x0;_0x34dd2a<_0x290026[_0x1095b3(0xca)]();_0x34dd2a++){const _0x374a6a={...(_0x5c617c=(_0x4cb84c=_0x290026[_0x1095b3(0x14c)])==null?void 0x0:_0x4cb84c[_0xb0c749])==null?void 0x0:_0x5c617c[_0x34dd2a]};if(_0x374a6a['v']){const _0x972376=_0x2fb7be[_0x1095b3(0xcf)][_0xb0c749][_0x1095b3(0xa0)],_0x506aa2=_0x3dc026[_0x1095b3(0xcf)][_0x34dd2a]['valueIndex'],_0x57d643=Math['max'](_0x972376,_0x506aa2),_0x21d6b8=_0xe04b5b['getValueFields']()['concat']();let _0x26c790='';_0x57d643<0x0?_0x26c790=(_0x1b9512=_0x21d6b8[0x0])!=null?_0x1b9512:'':_0x26c790=(_0x2bc246=_0x21d6b8[_0x57d643])!=null?_0x2bc246:'';const _0x19f0b8=(_0x546fbe=_0x480dd4[_0x26c790])!=null?_0x546fbe:'';_0x112009[_0x3ea86a+_0x4c580a]||(_0x112009[_0x3ea86a+_0x4c580a]=[]);let _0x405b85=_0x324d87[_0x824c30];_0x405b85||(_0x405b85=[..._0x915b5d],_0x324d87[_0x824c30]=_0x405b85),_0x405b85[_0x4682a3+_0x4c580a]||(_0x405b85[_0x4682a3+_0x4c580a]=[]);const _0x5cfa1b=_0x19f0b8?m[_0x1095b3(0x12d)][_0x1095b3(0xbc)](_0x19f0b8,Number(_0x374a6a['v'])):_0x374a6a['v'];_0x405b85[_0x4682a3+_0x4c580a][_0x34dd2a+_0x167641]=_0x5cfa1b,_0x112009[_0x3ea86a+_0x4c580a][_0x34dd2a+_0x167641]=_0x5cfa1b;}}_0x3ea86a++,_0x2fb7be[_0x1095b3(0xcf)][_0xb0c749]['isBottomTotal']?(_0x824c30++,_0x4682a3=0x0):_0x4682a3++;}}return{'dataArr':_0x112009,'dataArrWithSplit':_0x324d87};}class re{constructor(_0x21dfbf,_0x275803,_0xeb9e1b,_0x281e24){const _0x125bf4=_0x554119;S(this,_0x125bf4(0xbe)),S(this,_0x125bf4(0xad)),S(this,_0x125bf4(0xf7)),S(this,'_isZhCN'),S(this,_0x125bf4(0x17e)),(this[_0x125bf4(0xf7)]=_0x21dfbf,this[_0x125bf4(0xbe)]=_0x275803,this[_0x125bf4(0xad)]=_0xeb9e1b,this[_0x125bf4(0x17e)]=_0x281e24);const _0x5a060c=this[_0x125bf4(0xf7)][_0x125bf4(0xd5)](m[_0x125bf4(0x117)]);this[_0x125bf4(0xed)]=_0x5a060c[_0x125bf4(0x145)]()===m[_0x125bf4(0x177)]['ZH_CN'];}[_0x554119(0xcb)](_0x215b78){const _0x1995c6=_0x554119,_0xd1cc03=this[_0x1995c6(0xbe)][_0x1995c6(0x106)](_0x215b78);if(!_0xd1cc03)throw new Error(_0x1995c6(0x16a)+_0x215b78+_0x1995c6(0xa3));return _0xd1cc03;}[_0x554119(0xc5)](_0x1c1907,_0xe0eeac){const _0x462a83=_0x554119,_0x510921=this[_0x462a83(0xcb)](_0x1c1907),_0x462441=this['_pivot'][_0x462a83(0xc9)](_0x510921,_0xe0eeac);if(!_0x462441)throw new Error(_0x462a83(0xef)+_0x1c1907+_0x462a83(0x128));if(_0xe0eeac===r[_0x462a83(0x111)][_0x462a83(0x102)]){const _0x1890c1=_0x462441[_0x462a83(0xa8)](),_0x156e0d=this[_0x462a83(0xbe)]['getDataFieldByTableId'](_0x1890c1);if(_0x156e0d){const _0x1a9b5d=_0x156e0d==null?void 0x0:_0x156e0d[_0x462a83(0xf8)]();this[_0x462a83(0xbe)][_0x462a83(0x114)](_0x1890c1,_0x1a9b5d===r[_0x462a83(0x135)]['number']?r[_0x462a83(0xec)][_0x462a83(0x8d)]:r[_0x462a83(0xec)][_0x462a83(0xff)]);}const _0x25a1dc=this[_0x462a83(0xbe)][_0x462a83(0x151)](),_0x37af9b=this[_0x462a83(0xbe)][_0x462a83(0x94)](),_0x143a51=this[_0x462a83(0xbe)][_0x462a83(0x166)](r[_0x462a83(0x111)][_0x462a83(0x102)]);if(_0x25a1dc===-0x1&&_0x143a51>0x1){const _0xa71e95=_0x37af9b===r[_0x462a83(0xc0)]['None']?r[_0x462a83(0xc0)]['Column']:_0x37af9b,_0x5e5e6d=_0xa71e95===r['PivotTableValuePositionEnum']['Row']?r[_0x462a83(0x111)]['Row']:r[_0x462a83(0x111)][_0x462a83(0x130)];this['_pivot'][_0x462a83(0x92)](_0xa71e95,this['_pivot'][_0x462a83(0x166)](_0x5e5e6d));}}else{if(_0xe0eeac===r[_0x462a83(0x111)][_0x462a83(0x176)]||_0xe0eeac===r[_0x462a83(0x111)][_0x462a83(0x130)]){const _0xdeefc0=_0x462441[_0x462a83(0xa8)](),_0xcae9d6=this['_pivot'][_0x462a83(0xea)](_0xdeefc0);if(_0xcae9d6&&(_0xcae9d6==null?void 0x0:_0xcae9d6[_0x462a83(0xf8)]())===r[_0x462a83(0x135)][_0x462a83(0xbd)]){const _0x17efa9=_0xcae9d6[_0x462a83(0x15d)]();_0x17efa9&&this[_0x462a83(0xbe)][_0x462a83(0x13b)](_0xdeefc0,_0x17efa9);}}}return _0x462441;}['addFilterFieldWithName'](_0x326cfa,_0x2a0b30){const _0x2b9fc4=_0x554119,_0x3acf34=this[_0x2b9fc4(0xcb)](_0x326cfa),_0x9e82fb=this[_0x2b9fc4(0xbe)][_0x2b9fc4(0xc9)](_0x3acf34,r['PivotTableFiledAreaEnum'][_0x2b9fc4(0xd1)]);return _0x9e82fb[_0x2b9fc4(0xb7)](_0x2a0b30),_0x9e82fb;}[_0x554119(0xde)](_0x2a5edd,_0x49d875){const _0x3b18d7=_0x554119,_0x3fdf04=this[_0x3b18d7(0xc5)](_0x2a5edd,r['PivotTableFiledAreaEnum'][_0x3b18d7(0x102)]);return _0x49d875!=null&&_0x49d875['subtotal']&&_0x3fdf04[_0x3b18d7(0x126)](_0x49d875==null?void 0x0:_0x49d875[_0x3b18d7(0xfb)]),_0x3fdf04;}['removeFieldWithName'](_0x2bef19){const _0x5c611b=_0x554119,_0x2efbc6=this[_0x5c611b(0xcb)](_0x2bef19);this[_0x5c611b(0xbe)][_0x5c611b(0x144)](_0x2efbc6)[_0x5c611b(0x90)](_0x10e11a=>{const _0x3f6316=_0x5c611b,_0x15275a=_0x10e11a['getId']();this[_0x3f6316(0xbe)][_0x3f6316(0xb0)](_0x15275a);});}['getResultByCalculate'](_0x3c6535={}){const _0x7712b9=_0x554119,_0x40a725=this[_0x7712b9(0xbe)][_0x7712b9(0x10e)](),{dataArr:_0x38bef2,dataArrWithSplit:_0x3be78b}=le(this['_pivot'],_0x40a725,this[_0x7712b9(0xed)],_0x3c6535);return{'dataArr':_0x38bef2,'dataArrWithSplit':_0x3be78b};}['getNameWithColumnIndex'](_0x196a7e){const _0x1bbd21=_0x554119;return this[_0x1bbd21(0xbe)][_0x1bbd21(0xfe)]()[_0x196a7e];}[_0x554119(0xd8)](){const _0x13e53a=_0x554119;this[_0x13e53a(0xbe)][_0x13e53a(0xd8)]();}[_0x554119(0x168)](_0x386ba6){const _0x233520=_0x554119;this[_0x233520(0xbe)][_0x233520(0xd8)](_0x386ba6);}[_0x554119(0x153)](_0x384531){const _0x3a5b2c=_0x554119,_0x12195d=this[_0x3a5b2c(0xbe)][_0x3a5b2c(0x17d)],_0x2f1f24=_0x12195d[_0x3a5b2c(0xc4)]()[_0x384531];if(_0x2f1f24)return _0x12195d[_0x3a5b2c(0xee)](_0x2f1f24)[_0x3a5b2c(0xf8)]();}[_0x554119(0xc8)](_0x566021){const _0x55395b=_0x554119,_0x34112=this[_0x55395b(0xcb)](_0x566021),_0x16d4ff=this['_pivot']['dataFieldsCollection']['getFieldById'](_0x34112);return _0x16d4ff==null?void 0x0:_0x16d4ff[_0x55395b(0xf8)]();}['getDimensionInfo'](){const _0x48ccef=_0x554119,_0x568be8={};return[[r[_0x48ccef(0x111)][_0x48ccef(0x176)],_0x48ccef(0x15e)],[r[_0x48ccef(0x111)][_0x48ccef(0x130)],_0x48ccef(0x17a)],[r[_0x48ccef(0x111)][_0x48ccef(0xd1)],_0x48ccef(0x155)],[r[_0x48ccef(0x111)][_0x48ccef(0x102)],_0x48ccef(0x136)]][_0x48ccef(0x90)](_0x3d8e4f=>{const [_0xbc6a70,_0x11e794]=_0x3d8e4f;this['_pivot']['iterateFieldByArea'](_0xbc6a70,_0x3a72f2=>{const _0x2436d1=_0x516e;_0x568be8[_0x11e794]||(_0x568be8[_0x11e794]=[]),_0x568be8[_0x11e794][_0x2436d1(0xd7)](_0x3a72f2['getSourceName']());});}),Object[_0x48ccef(0x133)](_0x568be8)[_0x48ccef(0x15f)]>0x0?_0x568be8:void 0x0;}['getPivotSourceData'](){const _0x3f029d=_0x554119;return this[_0x3f029d(0xad)];}[_0x554119(0xab)](_0xc69403){const _0x1f6c2e=_0x554119;this[_0x1f6c2e(0xbe)][_0x1f6c2e(0xab)](_0xc69403);}[_0x554119(0x137)](){const _0x6c8391=_0x554119;this[_0x6c8391(0xbe)]['dispose']();}}class ve extends r[_0x554119(0x98)]{['getRangeData'](_0x4d3215){const _0x5a51bd=_0x554119;if(Array[_0x5a51bd(0x115)](_0x4d3215)&&_0x4d3215[_0x5a51bd(0x15f)]>0x0){const _0x5ae0de=[],_0x5aa5c1=_0x4d3215[0x0],_0x1abfa4={},_0x50f3a9=_0x4d3215[0x1];for(let _0x20d07f=0x0;_0x20d07f<_0x50f3a9[_0x5a51bd(0x15f)];_0x20d07f++){const _0x58df7b=_0x50f3a9[_0x20d07f];if(typeof _0x58df7b=='object'&&_0x58df7b instanceof Date)_0x1abfa4[_0x20d07f]=Z;else{if(typeof _0x58df7b==_0x5a51bd(0xda)){const _0x48b7c7=new Date(_0x58df7b);Number[_0x5a51bd(0x156)](_0x48b7c7[_0x5a51bd(0xe3)]())||(_0x1abfa4[_0x20d07f]=Z);}}}for(let _0x135f54=0x1;_0x135f54<_0x4d3215[_0x5a51bd(0x15f)];_0x135f54++){const _0x3a8c98=_0x4d3215[_0x135f54],_0x5e2a48=[];for(let _0x484ffb=0x0;_0x484ffb<_0x3a8c98[_0x5a51bd(0x15f)];_0x484ffb++)if(_0x1abfa4[_0x484ffb]){const _0x4add1c=_0x3a8c98[_0x484ffb],_0x19ebaf=typeof _0x4add1c==_0x5a51bd(0x9e)&&_0x4add1c instanceof Date?_0x4add1c:new Date(_0x4add1c),_0xefa2b8={'v':de(_0x19ebaf[_0x5a51bd(0xe3)]()),'f':_0x1abfa4[_0x484ffb]};_0x5e2a48['push'](_0xefa2b8);}else _0x5e2a48['push'](_0x3a8c98[_0x484ffb]);_0x5ae0de[_0x5a51bd(0xd7)](_0x5e2a48);}return{'header':_0x5aa5c1,'data':_0x5ae0de};}else throw new Error(_0x5a51bd(0x15c));}}class ce extends A['FUniver']{[_0x554119(0x16c)](_0x7e655c){const _0x367f61=_0x554119,_0x4f331d=_0x7e655c[_0x367f61(0xd5)](m['ICommandService']);this[_0x367f61(0xb6)](this[_0x367f61(0x173)][_0x367f61(0x116)],()=>_0x4f331d[_0x367f61(0x172)](_0x42b3cf=>{const _0x1224f0=_0x367f61;switch(_0x42b3cf['id']){case l[_0x1224f0(0xf3)]['id']:{const _0x556e0a=_0x42b3cf[_0x1224f0(0x170)];this['_fireBeforeMovePivotTableEvent'](_0x556e0a);break;}}})),this['registerEventHandler'](this['Event'][_0x367f61(0xbb)],()=>_0x4f331d[_0x367f61(0x172)](_0x4604f5=>{const _0x395f7a=_0x367f61;switch(_0x4604f5['id']){case l[_0x395f7a(0x125)]['id']:case l[_0x395f7a(0xd9)]['id']:{const _0x1fbe32=_0x4604f5[_0x395f7a(0x170)];this[_0x395f7a(0x16f)](_0x1fbe32);break;}}})),this['registerEventHandler'](this[_0x367f61(0x173)][_0x367f61(0x17f)],()=>_0x4f331d[_0x367f61(0xb8)](_0x2c5cbc=>{const _0x334ac8=_0x367f61;if(_0x2c5cbc['id']===l[_0x334ac8(0x125)]['id']||_0x2c5cbc['id']===l['AddPivotTableCommand']['id']){const _0x540728=_0x2c5cbc[_0x334ac8(0x170)];this[_0x334ac8(0x13c)](_0x540728);}})),this[_0x367f61(0xb6)](this[_0x367f61(0x173)][_0x367f61(0x110)],()=>_0x4f331d[_0x367f61(0xb8)](_0x44d7a0=>{const _0x563c69=_0x367f61;if(_0x44d7a0['id']===l[_0x563c69(0xf3)]['id']){const _0x17024a=_0x44d7a0[_0x563c69(0x170)];this[_0x563c69(0xa7)](_0x17024a);}})),this[_0x367f61(0xb6)](this['Event'][_0x367f61(0x14a)],()=>_0x4f331d['onCommandExecuted'](_0x2192cf=>{const _0x91ddfb=_0x367f61;if(_0x2192cf['id']===l[_0x91ddfb(0xa6)]['id']){const _0x4d7523=_0x2192cf[_0x91ddfb(0x170)];this['_firePivotTableRemovedEvent'](_0x4d7523);}})),this['registerEventHandler'](this['Event']['PivotTableFieldAdded'],()=>_0x4f331d[_0x367f61(0xb8)](_0x5a3072=>{const _0x211d5a=_0x367f61;if(_0x5a3072['id']===l[_0x211d5a(0x171)]['id']){const _0x229f1c=_0x5a3072[_0x211d5a(0x170)];this[_0x211d5a(0x154)](_0x229f1c);}})),this[_0x367f61(0xb6)](this[_0x367f61(0x173)][_0x367f61(0x140)],()=>_0x4f331d[_0x367f61(0xb8)](_0x414b90=>{const _0x1c2c6a=_0x367f61;if(_0x414b90['id']===l[_0x1c2c6a(0xf4)]['id']){const _0x4d7468=_0x414b90['params'];this[_0x1c2c6a(0xb9)](_0x4d7468);}})),this[_0x367f61(0xb6)](this[_0x367f61(0x173)]['PivotTableFieldMoved'],()=>_0x4f331d[_0x367f61(0xb8)](_0x47df07=>{const _0x493b98=_0x367f61;if(_0x47df07['id']===l[_0x493b98(0x164)]['id']){const _0x12144b=_0x47df07[_0x493b98(0x170)];this[_0x493b98(0xc7)](_0x12144b);}})),this[_0x367f61(0xb6)](this['Event'][_0x367f61(0x14b)],()=>_0x4f331d[_0x367f61(0xb8)](_0x1b60fe=>{const _0x5c8de=_0x367f61;if(_0x1b60fe['id']===l['SetPivotCollapseCommand']['id']){const _0xfe0be=_0x1b60fe[_0x5c8de(0x170)];this[_0x5c8de(0x15a)](_0xfe0be);}})),this['registerEventHandler'](this[_0x367f61(0x173)]['PivotTableFieldFilterChanged'],()=>_0x4f331d[_0x367f61(0xb8)](_0x28b2ad=>{const _0x4cb709=_0x367f61;if(_0x28b2ad['id']===l[_0x4cb709(0x139)]['id']){const _0x2b53cc=_0x28b2ad[_0x4cb709(0x170)];this[_0x4cb709(0x17b)](_0x2b53cc);}})),this[_0x367f61(0xb6)](this[_0x367f61(0x173)][_0x367f61(0x13a)],()=>_0x4f331d[_0x367f61(0xb8)](_0x3e0130=>{const _0x2ca298=_0x367f61;if(_0x3e0130['id']===l[_0x2ca298(0x142)]['id']){const _0xac8731=_0x3e0130[_0x2ca298(0x170)];this[_0x2ca298(0x9d)](_0xac8731);}})),this[_0x367f61(0xb6)](this['Event'][_0x367f61(0x107)],()=>_0x4f331d[_0x367f61(0xb8)](_0x4c0701=>{const _0x2a582c=_0x367f61;if(_0x4c0701['id']===l[_0x2a582c(0xe4)]['id']){const _0x45eb18=_0x4c0701['params'];this[_0x2a582c(0xd2)](_0x45eb18);}})),this[_0x367f61(0xb6)](this[_0x367f61(0x173)]['PivotTableValuePositionChanged'],()=>_0x4f331d[_0x367f61(0xb8)](_0xaa90f0=>{const _0x5f322a=_0x367f61;if(_0xaa90f0['id']===l[_0x5f322a(0x96)]['id']){const _0x265462=_0xaa90f0['params'];this[_0x5f322a(0x141)](_0x265462);}}));const _0x291465=_0x7e655c[_0x367f61(0xd5)](m[_0x367f61(0x97)]);this[_0x367f61(0x169)](_0x291465[_0x367f61(0x101)]['subscribe'](_0x27d8a5=>{const _0x4b3d1f=_0x367f61;if(_0x27d8a5===m[_0x4b3d1f(0xdb)][_0x4b3d1f(0xc2)]){const _0x3f6ccb=_0x7e655c[_0x4b3d1f(0xd5)](l['SheetsPivotTableAdaptorModel']);this[_0x4b3d1f(0xb6)](this['Event'][_0x4b3d1f(0x13f)],()=>_0x3f6ccb['viewUpdate$']['pipe'](ie[_0x4b3d1f(0x118)](0x32))[_0x4b3d1f(0x9c)](_0x59ad8c=>{const _0x29da07=_0x4b3d1f;this[_0x29da07(0xb3)](_0x59ad8c);}));}}));}[_0x554119(0x154)](_0x3907fd){const _0x3dac1f=_0x554119;if(_0x3907fd){const {unitId:_0x578e6d,subUnitId:_0x356f62,pivotTableId:_0x5268c5,dataFieldId:_0x21fa27,fieldArea:_0x4e78dc,index:_0x29f37e}=_0x3907fd;this['fireEvent'](this[_0x3dac1f(0x173)]['PivotTableFieldAdded'],{'unitId':_0x578e6d,'subUnitId':_0x356f62,'pivotTableId':_0x5268c5,'dataFieldId':_0x21fa27,'fieldArea':_0x4e78dc,'index':_0x29f37e});}}['_firePivotTableFieldRemovedEvent'](_0x4cce90){const _0x28acd9=_0x554119;if(_0x4cce90){const {unitId:_0x42ff18,subUnitId:_0x2b1feb,pivotTableId:_0x34a9d8,fieldIds:_0x4c3557}=_0x4cce90;this[_0x28acd9(0xfc)](this['Event'][_0x28acd9(0x140)],{'unitId':_0x42ff18,'subUnitId':_0x2b1feb,'pivotTableId':_0x34a9d8,'fieldIds':_0x4c3557[_0x28acd9(0xe8)]()});}}[_0x554119(0xc7)](_0x4be43f){const _0x1d6533=_0x554119;if(_0x4be43f){const {unitId:_0x464016,subUnitId:_0x124c94,pivotTableId:_0x1721bb,fieldId:_0x21ae92,area:_0x13b0ca,index:_0xaf9bb3}=_0x4be43f;this[_0x1d6533(0xfc)](this['Event'][_0x1d6533(0xbf)],{'unitId':_0x464016,'subUnitId':_0x124c94,'pivotTableId':_0x1721bb,'fieldId':_0x21ae92,'area':_0x13b0ca,'index':_0xaf9bb3});}}['_firePivotTableFieldCollapsedEvent'](_0x3aa962){const _0x29350c=_0x554119;if(_0x3aa962){const {unitId:_0x2e7956,subUnitId:_0x58b226,row:_0x37568b,col:_0x3db28a,collapse:_0x2ed30e}=_0x3aa962;this[_0x29350c(0xfc)](this[_0x29350c(0x173)]['PivotTableFieldCollapseChanged'],{'unitId':_0x2e7956,'subUnitId':_0x58b226,'row':_0x37568b,'col':_0x3db28a,'collapse':_0x2ed30e});}}[_0x554119(0x17b)](_0x27c573){const _0x30e3d3=_0x554119;if(_0x27c573){const {unitId:_0xbc1bf6,subUnitId:_0x503004,pivotTableId:_0xd78338,tableFieldId:_0x205753,items:_0x99538e,isAll:_0x2ad004}=_0x27c573;this[_0x30e3d3(0xfc)](this['Event'][_0x30e3d3(0x108)],{'unitId':_0xbc1bf6,'subUnitId':_0x503004,'pivotTableId':_0xd78338,'tableFieldId':_0x205753,'items':_0x99538e[_0x30e3d3(0xe8)](),'isAll':_0x2ad004});}}[_0x554119(0x9d)](_0x727f5a){if(_0x727f5a){const {unitId:_0x3a370c,subUnitId:_0x24cb0f,pivotTableId:_0x1425b9,tableFieldId:_0x48864f,info:_0x41e9a2}=_0x727f5a;this['fireEvent'](this['Event']['PivotTableFieldSortChanged'],{'unitId':_0x3a370c,'subUnitId':_0x24cb0f,'pivotTableId':_0x1425b9,'tableFieldId':_0x48864f,'info':{..._0x41e9a2}});}}[_0x554119(0xd2)](_0x29d9d6){const _0x39a0dd=_0x554119;if(_0x29d9d6){const {unitId:_0x19e451,subUnitId:_0x229aa7,tableFieldId:_0xf7f4da,pivotTableId:_0x3f0184,displayName:_0x5b59dc,format:_0x396433,subtotalType:_0x208227,tableFieldInfo:_0x3bfd93,dataFieldInfo:_0x287afc}=_0x29d9d6;this[_0x39a0dd(0xfc)](this[_0x39a0dd(0x173)][_0x39a0dd(0x107)],{'unitId':_0x19e451,'subUnitId':_0x229aa7,'tableFieldId':_0xf7f4da,'pivotTableId':_0x3f0184,'displayName':_0x5b59dc,'format':_0x396433,'subtotalType':_0x208227,'tableFieldInfo':_0x3bfd93,'dataFieldInfo':_0x287afc});}}[_0x554119(0x141)](_0x4c4a85){const _0x8597a2=_0x554119;if(_0x4c4a85){const {pivotTableId:_0x2f7178,position:_0x123a04,index:_0x5927b4}=_0x4c4a85;this[_0x8597a2(0xfc)](this[_0x8597a2(0x173)]['PivotTableValuePositionChanged'],{'pivotTableId':_0x2f7178,'position':_0x123a04,'index':_0x5927b4});}}[_0x554119(0x13c)](_0x5f5ae2){const _0x579832=_0x554119;if(_0x5f5ae2){const {positionType:_0x9c1b24,pivotTableId:_0x2ea17c,pivotTableConfig:_0x3f4605}=_0x5f5ae2,{targetCellInfo:_0x4ee92a,sourceRangeInfo:_0x4ba27f}=_0x3f4605,{unitId:_0x5b7ba9}=_0x4ee92a;this[_0x579832(0xfc)](this[_0x579832(0x173)][_0x579832(0x17f)],{'unitId':_0x5b7ba9,'positionType':_0x9c1b24,'pivotTableId':_0x2ea17c,'sourceRangeInfo':{'startRow':_0x4ba27f[_0x579832(0x148)][_0x579832(0xe7)],'endRow':_0x4ba27f[_0x579832(0x148)]['endRow'],'startColumn':_0x4ba27f[_0x579832(0x148)][_0x579832(0x103)],'endColumn':_0x4ba27f[_0x579832(0x148)]['endColumn'],'unitId':_0x4ba27f['unitId'],'subUnitId':_0x4ba27f[_0x579832(0xf1)],'sheetName':_0x4ba27f[_0x579832(0x163)]},'targetCellInfo':{'row':_0x4ee92a[_0x579832(0x15e)],'column':_0x4ee92a[_0x579832(0xf5)],'sheetName':_0x4ee92a[_0x579832(0x163)],'unitId':_0x4ee92a[_0x579832(0xaf)],'subUnitId':_0x4ee92a[_0x579832(0xf1)]}});}}[_0x554119(0x16f)](_0x3d37c7){const _0x1efcf9=_0x554119;if(_0x3d37c7){const {positionType:_0x5512bd,pivotTableId:_0xea9c0b,pivotTableConfig:_0x5a6a15}=_0x3d37c7,{targetCellInfo:_0x3f7b51,sourceRangeInfo:_0x5b3bcb}=_0x5a6a15,{unitId:_0x3145ea}=_0x3f7b51,_0x16edd6={'unitId':_0x3145ea,'positionType':_0x5512bd,'pivotTableId':_0xea9c0b,'sourceRangeInfo':{'startRow':_0x5b3bcb[_0x1efcf9(0x148)]['startRow'],'endRow':_0x5b3bcb[_0x1efcf9(0x148)][_0x1efcf9(0x104)],'startColumn':_0x5b3bcb[_0x1efcf9(0x148)][_0x1efcf9(0x103)],'endColumn':_0x5b3bcb[_0x1efcf9(0x148)]['endColumn'],'unitId':_0x5b3bcb[_0x1efcf9(0xaf)],'subUnitId':_0x5b3bcb[_0x1efcf9(0xf1)],'sheetName':_0x5b3bcb['sheetName']},'targetCellInfo':{'row':_0x3f7b51[_0x1efcf9(0x15e)],'column':_0x3f7b51[_0x1efcf9(0xf5)],'sheetName':_0x3f7b51[_0x1efcf9(0x163)],'unitId':_0x3f7b51[_0x1efcf9(0xaf)],'subUnitId':_0x3f7b51[_0x1efcf9(0xf1)]},'cancel':!0x1};if(this[_0x1efcf9(0xfc)](this['Event']['BeforePivotTableAdd'],_0x16edd6),_0x16edd6[_0x1efcf9(0x160)])throw new Error(_0x1efcf9(0x12c));}}['_firePivotTableRemovedEvent'](_0x5124dd){const _0xd63398=_0x554119;if(_0x5124dd){const {unitId:_0x472134,pivotTableId:_0x562132}=_0x5124dd;this[_0xd63398(0xfc)](this[_0xd63398(0x173)][_0xd63398(0x14a)],{'unitId':_0x472134,'pivotTableId':_0x562132});}}[_0x554119(0xb2)](_0x38df5f){const _0x325d52=_0x554119;if(_0x38df5f){const {originTargetInfo:_0x51c37a,pivotTableId:_0x14e504,targetCellInfo:_0x4f634f}=_0x38df5f,{unitId:_0x376844}=_0x51c37a,_0x3f6d5=this[_0x325d52(0xf7)][_0x325d52(0xd5)](l['SheetsPivotTableConfigModel'])[_0x325d52(0xc3)](_0x51c37a[_0x325d52(0xaf)],_0x51c37a[_0x325d52(0xf1)],_0x14e504);if(!_0x3f6d5)return;const _0x19f7e9={'unitId':_0x376844,'pivotTableId':_0x14e504,'originTargetInfo':{'row':_0x3f6d5['targetCellInfo'][_0x325d52(0x15e)],'column':_0x3f6d5['targetCellInfo'][_0x325d52(0xf5)],'unitId':_0x3f6d5[_0x325d52(0xeb)]['unitId'],'subUnitId':_0x3f6d5['targetCellInfo']['subUnitId']},'targetCellInfo':{'row':_0x4f634f['row'],'column':_0x4f634f[_0x325d52(0xf5)],'unitId':_0x4f634f[_0x325d52(0xaf)],'subUnitId':_0x4f634f[_0x325d52(0xf1)]},'cancel':!0x1};if(this['fireEvent'](this['Event'][_0x325d52(0xbb)],_0x19f7e9),_0x19f7e9[_0x325d52(0x160)])throw new Error(_0x325d52(0x174));}}['_fireMovedPivotTableEvent'](_0x1d6d09){const _0x30dd08=_0x554119;if(_0x1d6d09){const {originTargetInfo:_0x47c690,pivotTableId:_0x346b50,targetCellInfo:_0x2034b4}=_0x1d6d09,{unitId:_0xc63435}=_0x47c690,_0x1e0b7f=this[_0x30dd08(0xf7)]['get'](l[_0x30dd08(0x158)])[_0x30dd08(0xc3)](_0x47c690[_0x30dd08(0xaf)],_0x47c690['subUnitId'],_0x346b50);if(!_0x1e0b7f)return;this['fireEvent'](this[_0x30dd08(0x173)][_0x30dd08(0x110)],{'unitId':_0xc63435,'pivotTableId':_0x346b50,'originTargetInfo':{'row':_0x1e0b7f[_0x30dd08(0xeb)][_0x30dd08(0x15e)],'column':_0x1e0b7f[_0x30dd08(0xeb)]['col'],'unitId':_0x1e0b7f['targetCellInfo']['unitId'],'subUnitId':_0x1e0b7f[_0x30dd08(0xeb)][_0x30dd08(0xf1)]},'targetCellInfo':{'row':_0x2034b4[_0x30dd08(0x15e)],'column':_0x2034b4[_0x30dd08(0xf5)],'unitId':_0x2034b4['unitId'],'subUnitId':_0x2034b4[_0x30dd08(0xf1)]}});}}[_0x554119(0xb3)](_0x395856){const _0x124a92=_0x554119;if(_0x395856){const {unitId:_0x504d8b,subUnitId:_0x2b5159,pivotTableId:_0xd6216e,type:_0x17a765,rangesCache:_0x4d5b6c,isEmpty:_0x3a7932}=_0x395856;this[_0x124a92(0xfc)](this[_0x124a92(0x173)]['PivotTableRendered'],{'unitId':_0x504d8b,'subUnitId':_0x2b5159,'pivotTableId':_0xd6216e,'changeType':_0x17a765,'isEmpty':!!_0x3a7932,'rangeInfo':_0x4d5b6c});}}['generatePivotTable'](_0x35d029,_0x16eeff){const _0x285a47=_0x554119,_0x250bd4=(_0x16eeff?new _0x16eeff():new ve())['createCollection'](_0x285a47(0x14c),_0x35d029),_0x186e2f=_0x35d029[0x0];_0x250bd4[_0x285a47(0xc4)]()[_0x285a47(0x90)]((_0x4cde0e,_0x5adf01)=>{const _0x2c599f=_0x285a47;_0x250bd4[_0x2c599f(0x10f)](_0x4cde0e,_0x186e2f[_0x5adf01]);});const _0x4c86b8=r[_0x285a47(0x91)](0x8),_0x550a71=new r[(_0x285a47(0xe5))](_0x250bd4,void 0x0,_0x4c86b8);return new re(this['_injector'],_0x550a71,_0x35d029,_0x4c86b8);}}A[_0x554119(0x15b)][_0x554119(0xd6)](ce);