@univerjs-pro/sheets-pivot 0.7.0-nightly.202505031606 → 0.7.0-nightly.202505041606

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 _0x23966e=_0x22dd;(function(_0x43d525,_0x391cc2){const _0x32e2e0=_0x22dd,_0x180c03=_0x43d525();while(!![]){try{const _0x38dbe8=-parseInt(_0x32e2e0(0x249))/0x1+parseInt(_0x32e2e0(0x1fe))/0x2*(-parseInt(_0x32e2e0(0x291))/0x3)+parseInt(_0x32e2e0(0x200))/0x4*(-parseInt(_0x32e2e0(0x26a))/0x5)+-parseInt(_0x32e2e0(0x207))/0x6+-parseInt(_0x32e2e0(0x29a))/0x7*(parseInt(_0x32e2e0(0x286))/0x8)+parseInt(_0x32e2e0(0x269))/0x9+parseInt(_0x32e2e0(0x1fa))/0xa;if(_0x38dbe8===_0x391cc2)break;else _0x180c03['push'](_0x180c03['shift']());}catch(_0x26a08c){_0x180c03['push'](_0x180c03['shift']());}}}(_0x2e12,0x8db84));var ee=Object[_0x23966e(0x24b)],te=(_0xb1dcdc,_0x2d8537,_0x5571ae)=>_0x2d8537 in _0xb1dcdc?ee(_0xb1dcdc,_0x2d8537,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5571ae}):_0xb1dcdc[_0x2d8537]=_0x5571ae,y=(_0x5dde42,_0x263d95,_0x286315)=>te(_0x5dde42,typeof _0x263d95!=_0x23966e(0x1bf)?_0x263d95+'':_0x263d95,_0x286315);const r=require('@univerjs-pro/engine-pivot'),l=require(_0x23966e(0x20d)),m=require('@univerjs/core'),R=require(_0x23966e(0x202)),A=require(_0x23966e(0x1f1)),ie=require(_0x23966e(0x23a));class x{constructor(_0x25583f,_0x583045,_0x4a4a32,_0x4659c8){const _0x23b176=_0x23966e;y(this,_0x23b176(0x1f6)),y(this,'subUnitId'),y(this,'pivotTableId'),y(this,_0x23b176(0x1ce)),(this[_0x23b176(0x1f6)]=_0x25583f,this[_0x23b176(0x209)]=_0x583045,this[_0x23b176(0x1da)]=_0x4a4a32,this['_injector']=_0x4659c8);}[_0x23966e(0x246)](){const _0x2a95d8=_0x23966e;return this['_injector']['get'](l['SheetsPivotTableConfigModel'])[_0x2a95d8(0x27a)](this[_0x2a95d8(0x1f6)],this[_0x2a95d8(0x209)],this['pivotTableId']);}[_0x23966e(0x203)](_0x4719dd){const _0x3ab531=_0x23966e,_0x40b110=this[_0x3ab531(0x1ce)]['get'](m[_0x3ab531(0x25d)]),_0x315120={'unitId':this[_0x3ab531(0x1f6)],'subUnitId':this[_0x3ab531(0x209)],'pivotTableId':this[_0x3ab531(0x1da)],'pivotTableConfig':_0x4719dd};return _0x40b110['executeCommand'](l[_0x3ab531(0x1d4)]['id'],_0x315120);}[_0x23966e(0x1c1)](_0x36c0f3){const _0xab28df=_0x23966e,_0x4916db=this[_0xab28df(0x1ce)][_0xab28df(0x219)](m[_0xab28df(0x25d)]),_0x1c5faf={'unitId':this[_0xab28df(0x1f6)],'subUnitId':this[_0xab28df(0x209)],'pivotTableId':this[_0xab28df(0x1da)],'resetArea':_0x36c0f3};return _0x4916db[_0xab28df(0x287)](l[_0xab28df(0x1f5)]['id'],_0x1c5faf);}[_0x23966e(0x27c)](){const _0x545d0c=_0x23966e;return this[_0x545d0c(0x1da)];}[_0x23966e(0x277)](_0x32c7c2){const _0x57b319=_0x23966e,_0x5c21d4=this[_0x57b319(0x1ce)][_0x57b319(0x219)](l[_0x57b319(0x1b0)])[_0x57b319(0x27a)](this[_0x57b319(0x1f6)],this[_0x57b319(0x209)],this[_0x57b319(0x1da)]),_0xe74e26=_0x5c21d4==null?void 0x0:_0x5c21d4['fieldsConfig'];if(_0xe74e26)return _0xe74e26[_0x57b319(0x1ec)][_0x32c7c2]||_0xe74e26[_0x57b319(0x23d)][_0x32c7c2];}[_0x23966e(0x296)](){const _0xa0ab09=_0x23966e,_0xa1ba9f=this[_0xa0ab09(0x1ce)],_0x206e79=this[_0xa0ab09(0x1f6)],_0x629a30=this['pivotTableId'],_0x5eb622=_0xa1ba9f[_0xa0ab09(0x219)](l[_0xa0ab09(0x1b0)])['getCollection'](_0x206e79,_0x629a30);if(_0x5eb622){const _0x2d2866=_0x5eb622[_0xa0ab09(0x214)],_0x13235e=_0x5eb622[_0xa0ab09(0x270)],_0x12aaa2=_0x5eb622['displayNameRecord'],_0x2421b9=[];for(const _0x2f04af of _0x2d2866){const _0x325fbb=_0x13235e[_0x2f04af];if(_0x325fbb){const _0x64966d={'id':_0x2f04af,'name':_0x325fbb[_0xa0ab09(0x24e)],'fieldDataType':_0x325fbb[_0xa0ab09(0x22a)]};_0x12aaa2&&_0x12aaa2[_0x2f04af]!==void 0x0&&(_0x64966d[_0xa0ab09(0x220)]=_0x12aaa2[_0x2f04af]),_0x2421b9[_0xa0ab09(0x250)](_0x64966d);}}return _0x2421b9;}return[];}[_0x23966e(0x273)](_0x11ccc5){const _0x363310=_0x23966e;var _0x478f2f;const _0x3401bb=this[_0x363310(0x1ce)]['get'](l[_0x363310(0x1b0)])[_0x363310(0x27a)](this[_0x363310(0x1f6)],this[_0x363310(0x209)],this['pivotTableId']),_0x4e3775=_0x3401bb==null?void 0x0:_0x3401bb['fieldsConfig'][_0x363310(0x22e)];return(_0x478f2f=_0x4e3775==null?void 0x0:_0x4e3775[_0x363310(0x27f)](_0x5b4aa7=>_0x5b4aa7[_0x363310(0x276)]===_0x11ccc5))==null?void 0x0:_0x478f2f[_0x363310(0x25b)];}['getValueFilters'](){const _0x5742ac=_0x23966e,_0x5a3ef8=this[_0x5742ac(0x1ce)][_0x5742ac(0x219)](l[_0x5742ac(0x1b0)])['getPivotTableConfig'](this['unitId'],this['subUnitId'],this['pivotTableId']),_0x211064=_0x5a3ef8==null?void 0x0:_0x5a3ef8[_0x5742ac(0x1bb)][_0x5742ac(0x22e)];return(_0x211064==null?void 0x0:_0x211064[_0x5742ac(0x240)]())||[];}['getFieldIdsByArea'](_0x48bbc4){const _0x7d70ae=_0x23966e,_0x3a7052=this[_0x7d70ae(0x1ce)][_0x7d70ae(0x219)](l[_0x7d70ae(0x1b0)])[_0x7d70ae(0x27a)](this['unitId'],this[_0x7d70ae(0x209)],this['pivotTableId']),_0x6907dc=_0x3a7052==null?void 0x0:_0x3a7052[_0x7d70ae(0x1bb)];if(_0x6907dc)switch(_0x48bbc4){case r[_0x7d70ae(0x1bc)][_0x7d70ae(0x27b)]:return _0x6907dc['columnFields']['concat']();case r[_0x7d70ae(0x1bc)]['Row']:return _0x6907dc['rowFields'][_0x7d70ae(0x240)]();case r[_0x7d70ae(0x1bc)][_0x7d70ae(0x1e9)]:return _0x6907dc['valueFields']['concat']();case r['PivotTableFiledAreaEnum'][_0x7d70ae(0x1f4)]:return _0x6907dc[_0x7d70ae(0x22d)][_0x7d70ae(0x240)]();case r[_0x7d70ae(0x1bc)][_0x7d70ae(0x1c4)]:return _0x6907dc[_0x7d70ae(0x217)]['concat']();}return[];}['getPivotTableRangeInfo'](){const _0x5e1425=_0x23966e;var _0x4c82ac;const _0x4f654b=(_0x4c82ac=this['_injector'][_0x5e1425(0x219)](l[_0x5e1425(0x1b0)])[_0x5e1425(0x212)](this[_0x5e1425(0x1f6)],this[_0x5e1425(0x209)],this['pivotTableId']))==null?void 0x0:_0x4c82ac[_0x5e1425(0x206)];if(_0x4f654b)return l['unionPivotViewRange'](_0x4f654b);}async[_0x23966e(0x25a)](){const _0x47a290=_0x23966e;return await this[_0x47a290(0x1ce)][_0x47a290(0x219)](m['ICommandService'])[_0x47a290(0x1cb)](l[_0x47a290(0x226)]['id'],{'unitId':this[_0x47a290(0x1f6)],'subUnitId':this['subUnitId'],'pivotTableId':this['pivotTableId']});}async[_0x23966e(0x266)](_0x256f00,_0x1551b0,_0xec0348){const _0x3de9e9=_0x23966e,_0x35b441=this[_0x3de9e9(0x1ce)],_0x4c8090=this[_0x3de9e9(0x1f6)],_0x2ddf54=this[_0x3de9e9(0x209)],_0x15c5dc=this[_0x3de9e9(0x1da)],_0x1ab2ee=_0x35b441['get'](m[_0x3de9e9(0x25d)]),_0x43d6b1=_0x35b441[_0x3de9e9(0x219)](l[_0x3de9e9(0x1b0)]),_0x43e283=_0x43d6b1[_0x3de9e9(0x27a)](_0x4c8090,_0x2ddf54,_0x15c5dc),_0x1d772b=_0x43d6b1[_0x3de9e9(0x282)](_0x4c8090,_0x15c5dc);if(!_0x43e283||!_0x1d772b)return!0x1;let _0x17a431=_0x256f00;typeof _0x17a431=='number'&&(_0x17a431=_0x43d6b1[_0x3de9e9(0x282)](_0x4c8090,_0x15c5dc)[_0x3de9e9(0x214)][_0x256f00]);const _0x463cfb={'unitId':_0x4c8090,'subUnitId':_0x2ddf54,'pivotTableId':_0x15c5dc,'dataFieldId':_0x17a431,'fieldArea':_0x1551b0,'index':_0xec0348};return _0x1ab2ee['executeCommand'](l[_0x3de9e9(0x205)]['id'],_0x463cfb);}async['removeField'](_0x30ab2f){const _0x2f683d=_0x23966e,_0x3d38e5=this[_0x2f683d(0x1ce)],_0x29e077=this[_0x2f683d(0x1f6)],_0x36b6a1=this['subUnitId'],_0x4cf3e4=this['pivotTableId'],_0x140ee1=_0x3d38e5[_0x2f683d(0x219)](m[_0x2f683d(0x25d)]),_0x1462c2={'unitId':_0x29e077,'subUnitId':_0x36b6a1,'pivotTableId':_0x4cf3e4,'fieldIds':_0x30ab2f};return _0x140ee1[_0x2f683d(0x287)](l[_0x2f683d(0x1c0)]['id'],_0x1462c2);}async[_0x23966e(0x21b)](_0x473052,_0x58323c,_0x249870){const _0x47d12a=_0x23966e,_0x4b7b72=this['_injector'],_0x46cd07=this[_0x47d12a(0x1f6)],_0x4cf8fc=this[_0x47d12a(0x209)],_0x59ab97=this[_0x47d12a(0x1da)],_0x471d9a=_0x4b7b72[_0x47d12a(0x219)](m[_0x47d12a(0x25d)]),_0x459984={'unitId':_0x46cd07,'subUnitId':_0x4cf8fc,'pivotTableId':_0x59ab97,'fieldId':_0x473052,'area':_0x58323c,'index':_0x249870};return _0x471d9a['executeCommand'](l[_0x47d12a(0x28f)]['id'],_0x459984);}async[_0x23966e(0x284)](_0x1c169e,_0x5e65ef){const _0xdad4cf=_0x23966e,_0x100bdd=this[_0xdad4cf(0x1ce)],_0x3e2af7=this['unitId'],_0x483a8d=this[_0xdad4cf(0x209)],_0x23b805=this[_0xdad4cf(0x1da)],_0x49c80c=_0x100bdd[_0xdad4cf(0x219)](m[_0xdad4cf(0x25d)]),_0xe2e71f={'unitId':_0x3e2af7,'subUnitId':_0x483a8d,'pivotTableId':_0x23b805,'position':_0x1c169e,'index':_0x5e65ef};return _0x49c80c[_0xdad4cf(0x287)](l[_0xdad4cf(0x26e)]['id'],_0xe2e71f);}async['setSubtotalType'](_0x50afda,_0x1f7a77){const _0x36f46e=_0x23966e,_0x9877f1=this['_injector'],_0x2b25ec=this[_0x36f46e(0x1f6)],_0x417a85=this[_0x36f46e(0x209)],_0x23892c=this[_0x36f46e(0x1da)],_0x2fe0f4=_0x9877f1[_0x36f46e(0x219)](m[_0x36f46e(0x25d)]),_0x673174={'unitId':_0x2b25ec,'subUnitId':_0x417a85,'pivotTableId':_0x23892c,'fieldId':_0x50afda,'subtotalType':_0x1f7a77};return _0x2fe0f4[_0x36f46e(0x287)](l[_0x36f46e(0x1e1)]['id'],_0x673174);}async[_0x23966e(0x1bd)](_0x5deae7,_0x42645a){const _0x511cc0=_0x23966e,_0x2cb945=this[_0x511cc0(0x1ce)],_0x46091d=this[_0x511cc0(0x1f6)],_0x8c086a=this[_0x511cc0(0x209)],_0x3e677f=this['pivotTableId'],_0x596c74=_0x2cb945[_0x511cc0(0x219)](m[_0x511cc0(0x25d)]),_0x34b02f={'unitId':_0x46091d,'subUnitId':_0x8c086a,'tableFieldId':_0x5deae7,'pivotTableId':_0x3e677f,'info':_0x42645a};return _0x596c74[_0x511cc0(0x287)](l[_0x511cc0(0x275)]['id'],_0x34b02f);}async[_0x23966e(0x1ee)](_0x9a9d8c,_0x329abc,_0x2da1de){const _0x3b4868=_0x23966e,_0x3db7c0=this[_0x3b4868(0x1ce)],_0x46c8d9=this[_0x3b4868(0x1f6)],_0x4e79b4=this[_0x3b4868(0x209)],_0xe45e44=this[_0x3b4868(0x1da)],_0x401b92=_0x3db7c0[_0x3b4868(0x219)](m['ICommandService']),_0x289b6a={'unitId':_0x46c8d9,'subUnitId':_0x4e79b4,'pivotTableId':_0xe45e44,'tableFieldId':_0x9a9d8c,'items':_0x329abc,'isAll':_0x2da1de};return _0x401b92[_0x3b4868(0x287)](l[_0x3b4868(0x24f)]['id'],_0x289b6a);}async[_0x23966e(0x20e)](_0x125de3,_0x438c7f){const _0x45f5b3=_0x23966e,_0x3c5331=this[_0x45f5b3(0x1ce)],_0x201536=this[_0x45f5b3(0x1f6)],_0xe742a4=this[_0x45f5b3(0x209)],_0x2acac6=this[_0x45f5b3(0x1da)],_0x19ceb6=_0x3c5331[_0x45f5b3(0x219)](m[_0x45f5b3(0x25d)]);if(_0x125de3===void 0x0)return console[_0x45f5b3(0x1dc)]('[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined'),!0x1;const _0x15bdb0=_0x438c7f&&{..._0x438c7f,'type':r[_0x45f5b3(0x1fb)][_0x45f5b3(0x1f7)]},_0x1f8aae={'unitId':_0x201536,'subUnitId':_0xe742a4,'pivotTableId':_0x2acac6,'fieldId':_0x125de3,'valueFilterInfo':_0x15bdb0};return _0x19ceb6['executeCommand'](l[_0x45f5b3(0x242)]['id'],_0x1f8aae);}async[_0x23966e(0x294)](_0x249b23,_0x4931dd){const _0x1874d8=_0x23966e,_0x472e63=this[_0x1874d8(0x1ce)],_0x358598=this['unitId'],_0x46e6e8=this[_0x1874d8(0x209)],_0x290365=this[_0x1874d8(0x1da)],_0x293d5f=_0x472e63['get'](m[_0x1874d8(0x25d)]),_0x17a041={'unitId':_0x358598,'subUnitId':_0x46e6e8,'pivotTableId':_0x290365,'fieldId':_0x249b23,'name':_0x4931dd};return _0x293d5f['executeCommand'](l[_0x1874d8(0x1ef)]['id'],_0x17a041);}async[_0x23966e(0x26d)](_0x5c3d7b,_0x191b9c,_0x3ea9e6){const _0x479d6d=_0x23966e,_0x58289a=this['_injector']['get'](m[_0x479d6d(0x25d)]),_0x536f82=this[_0x479d6d(0x1ce)][_0x479d6d(0x219)](m[_0x479d6d(0x1c2)])['getUnit'](this[_0x479d6d(0x1f6)]),_0x599564=_0x536f82==null?void 0x0:_0x536f82[_0x479d6d(0x237)](_0x5c3d7b);if(!_0x536f82||!_0x599564)throw new Error(_0x479d6d(0x24a));return _0x58289a[_0x479d6d(0x287)](l[_0x479d6d(0x20b)]['id'],{'pivotTableId':this[_0x479d6d(0x1da)],'targetCellInfo':{'subUnitId':_0x599564[_0x479d6d(0x285)](),'unitId':this[_0x479d6d(0x1f6)],'row':_0x191b9c,'col':_0x3ea9e6},'originTargetInfo':{'subUnitId':this[_0x479d6d(0x209)],'unitId':this[_0x479d6d(0x1f6)]}});}async[_0x23966e(0x259)](_0xcbf37c,_0x2bdd26){const _0x8d66d1=_0x23966e,_0x5d7045=this[_0x8d66d1(0x1ce)],_0x2edfdd=this[_0x8d66d1(0x1f6)],_0x502592=this['subUnitId'],_0x56b466=this[_0x8d66d1(0x1da)],_0x92982f=_0x5d7045[_0x8d66d1(0x219)](m[_0x8d66d1(0x25d)]),_0xa68cc={'unitId':_0x2edfdd,'subUnitId':_0x502592,'pivotTableId':_0x56b466,'tableFieldId':_0xcbf37c,'dateType':_0x2bdd26};return _0x92982f[_0x8d66d1(0x287)](l['UpdateDateGroupCommand']['id'],_0xa68cc);}}class oe extends R['FWorkbook']{async[_0x23966e(0x1b2)](_0x522dd6,_0x2ffbb9,_0x17bd4f){const _0x153750=_0x23966e,_0x3abdea=this[_0x153750(0x1ce)],_0x5cb2d7=_0x3abdea[_0x153750(0x219)](m[_0x153750(0x25d)]),_0x31b104=r[_0x153750(0x274)](0x8),_0xb3ddf6={'positionType':_0x2ffbb9,'pivotTableId':_0x31b104,'pivotTableConfig':{'targetCellInfo':_0x17bd4f,'sourceRangeInfo':_0x522dd6,'isEmpty':!0x0}};if(await _0x5cb2d7[_0x153750(0x287)](l[_0x153750(0x234)]['id'],_0xb3ddf6))return new x(_0x17bd4f[_0x153750(0x1f6)],_0x17bd4f[_0x153750(0x209)],_0x31b104,_0x3abdea);}[_0x23966e(0x1d0)](_0x831749,_0x4d31d6,_0x3addd6,_0x8e52d5){const _0xf3238=_0x23966e,_0x51ba60=this['_injector'],_0x533ff4=_0x51ba60[_0xf3238(0x219)](l[_0xf3238(0x281)])[_0xf3238(0x238)](_0x831749,_0x4d31d6,_0x3addd6,_0x8e52d5);if(_0x533ff4)return new x(_0x831749,_0x4d31d6,_0x533ff4,_0x51ba60);}['getPivotTableById'](_0x4c9c0a){const _0x3de5e2=_0x23966e,_0x4b6acb=this[_0x3de5e2(0x1ce)],_0xda6be1=_0x4b6acb['get'](l['SheetsPivotTableConfigModel'])[_0x3de5e2(0x224)](this[_0x3de5e2(0x1e2)](),_0x4c9c0a);if(_0xda6be1)return new x(_0xda6be1[_0x3de5e2(0x1f6)],_0xda6be1[_0x3de5e2(0x209)],_0x4c9c0a,_0x4b6acb);}}R[_0x23966e(0x278)][_0x23966e(0x29b)](oe);class ne extends R['FWorksheet']{[_0x23966e(0x1d0)](_0x1a5b72,_0x9eecbd){const _0x3a3262=_0x23966e,_0xb733a2=this[_0x3a3262(0x1ce)],_0xaa40e4=_0xb733a2[_0x3a3262(0x219)](l[_0x3a3262(0x281)]),_0x13c731=this['_workbook']['getUnitId'](),_0x177ad2=this[_0x3a3262(0x285)](),_0x49dc2d=_0xaa40e4[_0x3a3262(0x238)](_0x13c731,_0x177ad2,_0x1a5b72,_0x9eecbd);if(_0x49dc2d)return new x(_0x13c731,_0x177ad2,_0x49dc2d,_0xb733a2);}}R[_0x23966e(0x1d9)][_0x23966e(0x29b)](ne);class ae extends A['FEnum']{get[_0x23966e(0x22b)](){const _0x587a51=_0x23966e;return r[_0x587a51(0x22b)];}get['PivotFilterTypeEnum'](){const _0x1c6eb9=_0x23966e;return r[_0x1c6eb9(0x1fb)];}get[_0x23966e(0x1bc)](){const _0xe06413=_0x23966e;return r[_0xe06413(0x1bc)];}get[_0x23966e(0x1be)](){const _0x556a3f=_0x23966e;return r[_0x556a3f(0x1be)];}get[_0x23966e(0x26f)](){const _0x237fac=_0x23966e;return r[_0x237fac(0x26f)];}get[_0x23966e(0x1e5)](){const _0x4a9486=_0x23966e;return r[_0x4a9486(0x1e5)];}get[_0x23966e(0x25c)](){const _0x51da93=_0x23966e;return r[_0x51da93(0x25c)];}get['PivotFilterOperatorEnum'](){return r['ST_PivotFilterOperatorEnum'];}get[_0x23966e(0x235)](){const _0x39e336=_0x23966e;return l[_0x39e336(0x1b8)];}get[_0x23966e(0x223)](){const _0x4cf0a2=_0x23966e;return r[_0x4cf0a2(0x223)];}get[_0x23966e(0x1b6)](){const _0x13c4ff=_0x23966e;return r[_0x13c4ff(0x1b6)];}}A[_0x23966e(0x23e)][_0x23966e(0x29b)](ae);class se extends A[_0x23966e(0x21c)]{get[_0x23966e(0x261)](){const _0x3d678c=_0x23966e;return _0x3d678c(0x261);}get['BeforePivotTableAdd'](){const _0xbc14ad=_0x23966e;return _0xbc14ad(0x1f0);}get[_0x23966e(0x227)](){const _0x41def1=_0x23966e;return _0x41def1(0x227);}get[_0x23966e(0x1d5)](){const _0x7c1e33=_0x23966e;return _0x7c1e33(0x1d5);}get[_0x23966e(0x1eb)](){const _0x51f3df=_0x23966e;return _0x51f3df(0x1eb);}get[_0x23966e(0x1b3)](){const _0x5a2b06=_0x23966e;return _0x5a2b06(0x1b3);}get[_0x23966e(0x27e)](){const _0x165f58=_0x23966e;return _0x165f58(0x27e);}get[_0x23966e(0x1b4)](){const _0x239495=_0x23966e;return _0x239495(0x1b4);}get[_0x23966e(0x1db)](){const _0xac4d58=_0x23966e;return _0xac4d58(0x1db);}get[_0x23966e(0x1cf)](){const _0x21a4f9=_0x23966e;return _0x21a4f9(0x1cf);}get['PivotTableFieldSortChanged'](){return'PivotTableFieldSortChanged';}get[_0x23966e(0x1ca)](){const _0x451733=_0x23966e;return _0x451733(0x1ca);}get[_0x23966e(0x210)](){const _0x440e38=_0x23966e;return _0x440e38(0x210);}}A[_0x23966e(0x21c)][_0x23966e(0x29b)](se);const Z=_0x23966e(0x21a);function de(_0x1d59c4){return _0x1d59c4/0x3e8/0x15180+0x63e1;}function le(_0x25487b,_0x1e3e66,_0x136d49,_0x15e03d){const _0x27f575=_0x23966e;var _0x54a68b,_0x3397de,_0x1b3aef,_0x3ef784,_0x2a0064,_0x2fba0f,_0x3a8d9e,_0x23b72d,_0x2adaef,_0x5bc6af,_0x178f01,_0x556eb2,_0x54d063,_0x24f276,_0x283aba;const _0x23a4d3=[],_0x30a1dd=[],_0x159f7b=[],{showRowGrandTotal:_0x7bfa1b,showRowSubTotal:_0xd1910e}=_0x15e03d,{cornerView:_0x12ebdc,colView:_0xdae4ec,rowView:_0x5e715e,dataView:_0x2cace1,formatMap:_0x52bdc4}=_0x1e3e66,_0x2eac7e=_0x12ebdc[_0x27f575(0x28b)](),_0xa65a82=_0x12ebdc[_0x27f575(0x1e3)]();for(let _0x262b66=0x0;_0x262b66<_0x2eac7e;_0x262b66++)for(let _0x32079c=0x0;_0x32079c<_0xa65a82;_0x32079c++){const _0x14bae5={...(_0x3397de=(_0x54a68b=_0x12ebdc['data'])==null?void 0x0:_0x54a68b[_0x262b66])==null?void 0x0:_0x3397de[_0x32079c]};_0x14bae5['v']&&(_0x23a4d3[_0x262b66]||(_0x23a4d3[_0x262b66]=[]),_0x159f7b[_0x262b66]||(_0x159f7b[_0x262b66]=[]),_0x23a4d3[_0x262b66][_0x32079c]=_0x14bae5['v'],_0x159f7b[_0x262b66][_0x32079c]=_0x14bae5['v']);}for(let _0x35642a=0x0;_0x35642a<_0xdae4ec[_0x27f575(0x28b)]();_0x35642a++){const _0x82de57=(_0x3ef784=(_0x1b3aef=_0xdae4ec==null?void 0x0:_0xdae4ec['headerMap'])==null?void 0x0:_0x1b3aef[_0x35642a])==null?void 0x0:_0x3ef784[_0x27f575(0x216)],_0x589407=_0x82de57?_0x52bdc4[_0x82de57]:'';for(let _0x386baf=0x0;_0x386baf<_0xdae4ec['getColCount']();_0x386baf++){const _0x4e5d27={...(_0x2fba0f=(_0x2a0064=_0xdae4ec[_0x27f575(0x23f)])==null?void 0x0:_0x2a0064[_0x35642a])==null?void 0x0:_0x2fba0f[_0x386baf]};if((_0x4e5d27==null?void 0x0:_0x4e5d27['v'])!==void 0x0){let _0x1e29b2=_0x589407?m[_0x27f575(0x1b7)][_0x27f575(0x28e)](_0x589407,Number(_0x4e5d27['v'])):_0x4e5d27['v'];(_0x4e5d27==null?void 0x0:_0x4e5d27['s'])===r[_0x27f575(0x25f)]['Subtotal']?_0x1e29b2=_0x136d49?'小计\x20'+_0x1e29b2:_0x27f575(0x236)+_0x1e29b2:(_0x4e5d27==null?void 0x0:_0x4e5d27['s'])===r[_0x27f575(0x25f)][_0x27f575(0x258)]&&(_0x1e29b2=_0x136d49?_0x27f575(0x221)+_0x1e29b2:_0x27f575(0x218)+_0x1e29b2),(_0x4e5d27==null?void 0x0:_0x4e5d27['t'])===r[_0x27f575(0x1d6)][_0x27f575(0x21d)]&&(_0x1e29b2=_0x136d49?_0x27f575(0x279):_0x27f575(0x24d)),_0x23a4d3[_0x35642a]||(_0x23a4d3[_0x35642a]=[]),_0x159f7b[_0x35642a]||(_0x159f7b[_0x35642a]=[]),_0x23a4d3[_0x35642a][_0x386baf+_0xa65a82]=_0x1e29b2,_0x159f7b[_0x35642a][_0x386baf+_0xa65a82]=_0x1e29b2;}}}let _0x530da8=0x0,_0x255a86=0x0,_0x351eeb=0x0;for(let _0x1aa47d=0x0;_0x1aa47d<_0x5e715e[_0x27f575(0x28b)]();_0x1aa47d++){const _0x29864f=_0x5e715e[_0x27f575(0x1dd)][_0x1aa47d];if(!_0xd1910e&&_0x29864f[_0x27f575(0x20f)]&&_0x29864f['level']!==0x0){_0x351eeb++,_0x255a86=0x0;continue;}if(!(!_0x7bfa1b&&_0x29864f[_0x27f575(0x20f)]&&_0x29864f[_0x27f575(0x21f)]===0x0)){for(let _0x27b1e2=0x0;_0x27b1e2<_0x5e715e['getColCount']();_0x27b1e2++){const _0x18f2d2={...(_0x23b72d=(_0x3a8d9e=_0x5e715e[_0x27f575(0x23f)])==null?void 0x0:_0x3a8d9e[_0x1aa47d])==null?void 0x0:_0x23b72d[_0x27b1e2]},_0x2d69b7=(_0x5bc6af=(_0x2adaef=_0x5e715e==null?void 0x0:_0x5e715e[_0x27f575(0x1d7)])==null?void 0x0:_0x2adaef[_0x27b1e2])==null?void 0x0:_0x5bc6af[_0x27f575(0x216)],_0x498caa=_0x2d69b7?_0x52bdc4[_0x2d69b7]:'';if((_0x18f2d2==null?void 0x0:_0x18f2d2['v'])!==void 0x0){let _0x22b705=_0x498caa?m['numfmt'][_0x27f575(0x28e)](_0x498caa,Number(_0x18f2d2['v'])):_0x18f2d2['v'];(_0x18f2d2==null?void 0x0:_0x18f2d2['s'])===r[_0x27f575(0x25f)][_0x27f575(0x1cc)]?_0x22b705=_0x136d49?_0x27f575(0x1c8)+_0x22b705:_0x27f575(0x236)+_0x22b705:(_0x18f2d2==null?void 0x0:_0x18f2d2['s'])===r[_0x27f575(0x25f)][_0x27f575(0x258)]&&(_0x22b705=_0x136d49?_0x27f575(0x221)+_0x22b705:_0x27f575(0x218)+_0x22b705),(_0x18f2d2==null?void 0x0:_0x18f2d2['t'])===r[_0x27f575(0x1d6)]['blank']&&(_0x22b705=_0x136d49?'(空白)':_0x27f575(0x24d)),_0x23a4d3[_0x530da8+_0x2eac7e]||(_0x23a4d3[_0x530da8+_0x2eac7e]=[]);let _0xbac00=_0x30a1dd[_0x351eeb];_0xbac00||(_0xbac00=[..._0x159f7b],_0x30a1dd[_0x351eeb]=_0xbac00),_0xbac00[_0x255a86+_0x2eac7e]||(_0xbac00[_0x255a86+_0x2eac7e]=[]),_0xbac00[_0x255a86+_0x2eac7e][_0x27b1e2]=_0x22b705,_0x23a4d3[_0x530da8+_0x2eac7e][_0x27b1e2]=_0x22b705;}}_0x530da8++,_0x5e715e['info'][_0x1aa47d]['isBottomTotal']?(_0x351eeb++,_0x255a86=0x0):_0x255a86++;}}_0x530da8=0x0,_0x351eeb=0x0,_0x255a86=0x0;for(let _0x55704b=0x0;_0x55704b<_0x2cace1[_0x27f575(0x28b)]();_0x55704b++){const _0x548a4e=_0x5e715e[_0x27f575(0x1dd)][_0x55704b];if(!_0xd1910e&&_0x548a4e['isBottomTotal']&&_0x548a4e['level']!==0x0){_0x351eeb++,_0x255a86=0x0;continue;}if(!(!_0x7bfa1b&&_0x548a4e['isBottomTotal']&&_0x548a4e[_0x27f575(0x21f)]===0x0)){for(let _0x435b53=0x0;_0x435b53<_0x2cace1['getColCount']();_0x435b53++){const _0xb47ce8={...(_0x556eb2=(_0x178f01=_0x2cace1[_0x27f575(0x23f)])==null?void 0x0:_0x178f01[_0x55704b])==null?void 0x0:_0x556eb2[_0x435b53]};if(_0xb47ce8['v']){const _0x71350c=_0x5e715e[_0x27f575(0x1dd)][_0x55704b]['valueIndex'],_0x524bac=_0xdae4ec[_0x27f575(0x1dd)][_0x435b53][_0x27f575(0x245)],_0x2dca82=Math[_0x27f575(0x254)](_0x71350c,_0x524bac),_0x38fca2=_0x25487b[_0x27f575(0x1c5)]()[_0x27f575(0x240)]();let _0x10cb2e='';_0x2dca82<0x0?_0x10cb2e=(_0x54d063=_0x38fca2[0x0])!=null?_0x54d063:'':_0x10cb2e=(_0x24f276=_0x38fca2[_0x2dca82])!=null?_0x24f276:'';const _0xafc397=(_0x283aba=_0x52bdc4[_0x10cb2e])!=null?_0x283aba:'';_0x23a4d3[_0x530da8+_0x2eac7e]||(_0x23a4d3[_0x530da8+_0x2eac7e]=[]);let _0x419b61=_0x30a1dd[_0x351eeb];_0x419b61||(_0x419b61=[..._0x159f7b],_0x30a1dd[_0x351eeb]=_0x419b61),_0x419b61[_0x255a86+_0x2eac7e]||(_0x419b61[_0x255a86+_0x2eac7e]=[]);const _0x5dd107=_0xafc397?m[_0x27f575(0x1b7)][_0x27f575(0x28e)](_0xafc397,Number(_0xb47ce8['v'])):_0xb47ce8['v'];_0x419b61[_0x255a86+_0x2eac7e][_0x435b53+_0xa65a82]=_0x5dd107,_0x23a4d3[_0x530da8+_0x2eac7e][_0x435b53+_0xa65a82]=_0x5dd107;}}_0x530da8++,_0x5e715e[_0x27f575(0x1dd)][_0x55704b][_0x27f575(0x20f)]?(_0x351eeb++,_0x255a86=0x0):_0x255a86++;}}return{'dataArr':_0x23a4d3,'dataArrWithSplit':_0x30a1dd};}function _0x2e12(){const _0x68b4e4=['tableFieldId','hiddenFields','Grand\x20Total\x20','get','YYYY-MM-DD','updateFieldPosition','FEventName','blank','getDataFieldIdByDisplayName','level','displayName','总计\x20','startColumn','PivotTableChangeTypeEnum','getTargetByPivotTableId','Row','RemovePivotTableMutation','PivotTableRemoved','setSubtotal','setDisplayName','fieldDataType','PivotSubtotalTypeEnum','object','filterFields','valueFilter','endColumn','setOptions','forEach','[PivotTable]:\x20The\x20field\x20name\x20','setFilterInfo','AddPivotTableCommand','PositionTypeEnum','Total\x20','getSheetBySheetName','getPivotTableIdByCell','removeFieldWithName','rxjs','params','getFieldIds','measure','FEnum','data','concat','_firePivotTableFieldFilterChangedEvent','SetPivotValueFilterCommand','setFieldFormat','getCurrentLocale','valueIndex','getConfig','col','query','263690zTnneh','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','defineProperty','cancel','(blank)','name','SetPivotFilterCommand','push','_firePivotTableFieldSortChangedEvent','_isZhCN','Before\x20move\x20pivot\x20table\x20event\x20canceled','max','[PivotTable]:\x20add\x20field\x20','_firePivotTableValuePositionChangedEvent','getRangeData','GrandTotal','setDateGroupType','remove','filterInfo','PivotDataFieldSortOperatorEnum','ICommandService','_id','PivotCellStyleTypeEnum','sum','PivotTableAdded','getPivotSourceData','getFieldCountByArea','endRow','getTime','addField','_getSourceIdByName','_fireRenderPivotTableEvent','8507871LZnEpk','11035eFBKaU','getValuePosition','_firePivotTableFieldRemovedEvent','move','UpdatePivotValuePositionCommand','PivotDataFieldDataTypeEnum','fields','PivotTableFieldSortChanged','addValueFieldWithName','getValueFilter','generateHexNumber','SetPivotSortCommand','fieldId','getFieldSetting','FWorkbook','(空白)','getPivotTableConfig','Column','getPivotTableId','getFieldDataTypeByColumnIndex','PivotTableFieldRemoved','find','_firePivotTableRemovedEvent','SheetsPivotTableAdaptorModel','getCollection','_fireBeforeAddPivotTableEvent','updateValuePosition','getSheetId','776TKXUeC','executeCommand','_pivot','Event','iterateFieldByArea','getRowCount','getFieldDataType','onCommandExecuted','format','MovePivotFieldCommand','AddPivotTableWithConfigCommand','303ZqMTot','beforeCommandExecuted','_sourceData','renameField','addFieldWithSourceId','getSourceFieldsInfo','_fireAddPivotTableEvent','date','getResultByCalculate','42973pwKCuo','extend','_firePivotTableFieldSettingChangedEvent','DataFieldManager','range','SheetsPivotTableConfigModel','getValueIndex','addPivotTable','PivotTableFieldAdded','PivotTableFieldMoved','FUniver','PivotDateGroupFieldDateTypeEnum','numfmt','PositionType','_firePivotTableFieldMovedEvent','registerEventHandler','fieldsConfig','PivotTableFiledAreaEnum','setLabelSort','PivotTableValuePositionEnum','symbol','RemovePivotFieldCommand','reset','IUniverInstanceService','_firePivotTableFieldCollapsedEvent','Hidden','getValueFields','value','isArray','小计\x20','sheetName','PivotTableFieldSettingChanged','syncExecuteCommand','Subtotal','_fireBeforeMovePivotTableEvent','_injector','PivotTableFieldFilterChanged','getPivotTableByCell','startRow','fireEvent','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','SetPivotFieldsConfigCommand','PivotTableMoved','PivotViewCellValueTypeEnum','headerMap','_firePivotTableFieldAddedEvent','FWorksheet','pivotTableId','PivotTableFieldCollapseChanged','warn','info','setSubtotalType','addFieldWithName','length','SetPivotSubtotalTypeMutation','getId','getColCount','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','PivotDataFieldSortTypeEnum','getDimensionInfo','resetDimension','viewUpdate$','Value','getFieldById','PivotTableRendered','dimension','row','setLabelManualFilter','RenamePivotFieldMutation','BeforePivotTableAdd','@univerjs/core/facade','targetCellInfo','subtotal','Filter','ResetPivotFieldsConfigCommand','unitId','ValueFilter','getDataFieldByTableId','filter','23586750tPehJs','PivotFilterTypeEnum','disposeWithMe','LifecycleStages','19022eJlPnS','getNameWithColumnIndex','1044wazUDD','pipe','@univerjs/sheets/facade','setFieldsConfig','LocaleType','AddPivotFieldCommand','rangeInfo','1966194fCvxwW','_fireMovedPivotTableEvent','subUnitId','addFilterFieldWithName','MovePivotTableCommand','_initialize','@univerjs-pro/sheets-pivot','setValueFilter','isBottomTotal','PivotTableValuePositionChanged','subscribe','getPivotTableRangeInfo','count','fieldIds','dataFieldsCollection'];_0x2e12=function(){return _0x68b4e4;};return _0x2e12();}class re{constructor(_0x4797c3,_0x15f139,_0x188a8a,_0x3647ee){const _0x430019=_0x23966e;y(this,_0x430019(0x288)),y(this,_0x430019(0x293)),y(this,_0x430019(0x1ce)),y(this,_0x430019(0x252)),y(this,_0x430019(0x25e)),(this[_0x430019(0x1ce)]=_0x4797c3,this[_0x430019(0x288)]=_0x15f139,this[_0x430019(0x293)]=_0x188a8a,this['_id']=_0x3647ee);const _0x5ed33f=this['_injector'][_0x430019(0x219)](m['LocaleService']);this['_isZhCN']=_0x5ed33f[_0x430019(0x244)]()===m[_0x430019(0x204)]['ZH_CN'];}[_0x23966e(0x267)](_0x46868a){const _0x5f4b49=_0x23966e,_0x48fd18=this[_0x5f4b49(0x288)][_0x5f4b49(0x21e)](_0x46868a);if(!_0x48fd18)throw new Error(_0x5f4b49(0x232)+_0x46868a+_0x5f4b49(0x1e4));return _0x48fd18;}['addFieldWithName'](_0x527234,_0x1b6b6e){const _0x47edfa=_0x23966e,_0x2c196d=this[_0x47edfa(0x267)](_0x527234),_0x1f81b7=this[_0x47edfa(0x288)][_0x47edfa(0x295)](_0x2c196d,_0x1b6b6e);if(!_0x1f81b7)throw new Error(_0x47edfa(0x255)+_0x527234+'\x20failed.');if(_0x1b6b6e===r[_0x47edfa(0x1bc)][_0x47edfa(0x1e9)]){const _0x4685e8=_0x1f81b7[_0x47edfa(0x1e2)](),_0x2a3d95=this[_0x47edfa(0x288)]['getDataFieldByTableId'](_0x4685e8);if(_0x2a3d95){const _0x2e17b7=_0x2a3d95==null?void 0x0:_0x2a3d95[_0x47edfa(0x28c)]();this[_0x47edfa(0x288)][_0x47edfa(0x1de)](_0x4685e8,_0x2e17b7===r[_0x47edfa(0x26f)]['number']?r['PivotSubtotalTypeEnum'][_0x47edfa(0x260)]:r['PivotSubtotalTypeEnum'][_0x47edfa(0x213)]);}const _0x22359c=this['_pivot'][_0x47edfa(0x1b1)](),_0x376bea=this[_0x47edfa(0x288)][_0x47edfa(0x26b)](),_0x3a02ac=this[_0x47edfa(0x288)][_0x47edfa(0x263)](r[_0x47edfa(0x1bc)][_0x47edfa(0x1e9)]);if(_0x22359c===-0x1&&_0x3a02ac>0x1){const _0x23267c=_0x376bea===r['PivotTableValuePositionEnum']['None']?r['PivotTableValuePositionEnum'][_0x47edfa(0x27b)]:_0x376bea,_0x1a9a4f=_0x23267c===r[_0x47edfa(0x1be)]['Row']?r[_0x47edfa(0x1bc)][_0x47edfa(0x225)]:r[_0x47edfa(0x1bc)][_0x47edfa(0x27b)];this['_pivot'][_0x47edfa(0x284)](_0x23267c,this[_0x47edfa(0x288)][_0x47edfa(0x263)](_0x1a9a4f));}}else{if(_0x1b6b6e===r['PivotTableFiledAreaEnum'][_0x47edfa(0x225)]||_0x1b6b6e===r[_0x47edfa(0x1bc)][_0x47edfa(0x27b)]){const _0x4314da=_0x1f81b7[_0x47edfa(0x1e2)](),_0x4adb3a=this[_0x47edfa(0x288)][_0x47edfa(0x1f8)](_0x4314da);if(_0x4adb3a&&(_0x4adb3a==null?void 0x0:_0x4adb3a[_0x47edfa(0x28c)]())===r[_0x47edfa(0x26f)][_0x47edfa(0x298)]){const _0x248f9e=_0x4adb3a['getformat']();_0x248f9e&&this[_0x47edfa(0x288)][_0x47edfa(0x243)](_0x4314da,_0x248f9e);}}}return _0x1f81b7;}[_0x23966e(0x20a)](_0x2555cb,_0xfdf751){const _0x3f4095=_0x23966e,_0x27f325=this['_getSourceIdByName'](_0x2555cb),_0x461dc0=this['_pivot'][_0x3f4095(0x295)](_0x27f325,r[_0x3f4095(0x1bc)][_0x3f4095(0x1f4)]);return _0x461dc0[_0x3f4095(0x233)](_0xfdf751),_0x461dc0;}[_0x23966e(0x272)](_0x5cbbf6,_0x39bac5){const _0x5023c9=_0x23966e,_0x7254b1=this[_0x5023c9(0x1df)](_0x5cbbf6,r['PivotTableFiledAreaEnum']['Value']);return _0x39bac5!=null&&_0x39bac5[_0x5023c9(0x1f3)]&&_0x7254b1[_0x5023c9(0x228)](_0x39bac5==null?void 0x0:_0x39bac5[_0x5023c9(0x1f3)]),_0x7254b1;}[_0x23966e(0x239)](_0x20302c){const _0xfde8b4=_0x23966e,_0x1e8b4e=this['_getSourceIdByName'](_0x20302c);this[_0xfde8b4(0x288)]['getTableFieldsByDataFieldId'](_0x1e8b4e)[_0xfde8b4(0x231)](_0x42ef5e=>{const _0x42760d=_0xfde8b4,_0x4212d0=_0x42ef5e[_0x42760d(0x1e2)]();this[_0x42760d(0x288)]['removeField'](_0x4212d0);});}[_0x23966e(0x299)](_0x250128={}){const _0x5b5a00=_0x23966e,_0x516a18=this[_0x5b5a00(0x288)][_0x5b5a00(0x248)](),{dataArr:_0x1da27d,dataArrWithSplit:_0x94a98e}=le(this[_0x5b5a00(0x288)],_0x516a18,this['_isZhCN'],_0x250128);return{'dataArr':_0x1da27d,'dataArrWithSplit':_0x94a98e};}[_0x23966e(0x1ff)](_0x22edcd){const _0x436335=_0x23966e;return this[_0x436335(0x288)]['getFieldDisplayNames']()[_0x22edcd];}['reset'](){const _0x3e4a65=_0x23966e;this[_0x3e4a65(0x288)][_0x3e4a65(0x1c1)]();}[_0x23966e(0x1e7)](_0x20c7ce){const _0x20009a=_0x23966e;this[_0x20009a(0x288)][_0x20009a(0x1c1)](_0x20c7ce);}[_0x23966e(0x27d)](_0x64e74b){const _0x4e6af3=_0x23966e,_0x451e05=this[_0x4e6af3(0x288)][_0x4e6af3(0x215)],_0x300fe3=_0x451e05[_0x4e6af3(0x23c)]()[_0x64e74b];if(_0x300fe3)return _0x451e05[_0x4e6af3(0x1ea)](_0x300fe3)[_0x4e6af3(0x28c)]();}['getFieldDataTypeByFieldName'](_0x46137e){const _0x36593e=_0x23966e,_0x510f49=this[_0x36593e(0x267)](_0x46137e),_0x5ed2b4=this[_0x36593e(0x288)][_0x36593e(0x215)][_0x36593e(0x1ea)](_0x510f49);return _0x5ed2b4==null?void 0x0:_0x5ed2b4[_0x36593e(0x28c)]();}[_0x23966e(0x1e6)](){const _0x2bf689=_0x23966e,_0x176f1f={};return[[r['PivotTableFiledAreaEnum'][_0x2bf689(0x225)],'row'],[r['PivotTableFiledAreaEnum'][_0x2bf689(0x27b)],'column'],[r[_0x2bf689(0x1bc)]['Filter'],_0x2bf689(0x1f9)],[r[_0x2bf689(0x1bc)][_0x2bf689(0x1e9)],_0x2bf689(0x1c6)]][_0x2bf689(0x231)](_0x4d20b0=>{const _0x64900e=_0x2bf689,[_0x9ae1a3,_0x50cdae]=_0x4d20b0;this[_0x64900e(0x288)][_0x64900e(0x28a)](_0x9ae1a3,_0x4c5f9c=>{_0x176f1f[_0x50cdae]||(_0x176f1f[_0x50cdae]=[]),_0x176f1f[_0x50cdae]['push'](_0x4c5f9c['getSourceName']());});}),Object['keys'](_0x176f1f)[_0x2bf689(0x1e0)]>0x0?_0x176f1f:void 0x0;}[_0x23966e(0x262)](){const _0x1de8fd=_0x23966e;return this[_0x1de8fd(0x293)];}[_0x23966e(0x230)](_0x58d85d){const _0x46cbee=_0x23966e;this[_0x46cbee(0x288)][_0x46cbee(0x230)](_0x58d85d);}[_0x23966e(0x25a)](){const _0x1a833d=_0x23966e;this[_0x1a833d(0x288)]['dispose']();}}class ve extends r[_0x23966e(0x1ae)]{[_0x23966e(0x257)](_0x4db437){const _0x1ea125=_0x23966e;if(Array[_0x1ea125(0x1c7)](_0x4db437)&&_0x4db437[_0x1ea125(0x1e0)]>0x0){const _0x3f3cb2=[],_0xd80d40=_0x4db437[0x0],_0x181179={},_0x1cf5fe=_0x4db437[0x1];for(let _0x175996=0x0;_0x175996<_0x1cf5fe[_0x1ea125(0x1e0)];_0x175996++){const _0x3e3dd0=_0x1cf5fe[_0x175996];if(typeof _0x3e3dd0==_0x1ea125(0x22c)&&_0x3e3dd0 instanceof Date)_0x181179[_0x175996]=Z;else{if(typeof _0x3e3dd0=='string'){const _0x4b8131=new Date(_0x3e3dd0);Number['isNaN'](_0x4b8131[_0x1ea125(0x265)]())||(_0x181179[_0x175996]=Z);}}}for(let _0x53ad8c=0x1;_0x53ad8c<_0x4db437[_0x1ea125(0x1e0)];_0x53ad8c++){const _0x1d4d75=_0x4db437[_0x53ad8c],_0x54d0fa=[];for(let _0x51ce4c=0x0;_0x51ce4c<_0x1d4d75['length'];_0x51ce4c++)if(_0x181179[_0x51ce4c]){const _0xbba544=_0x1d4d75[_0x51ce4c],_0x1711fa=typeof _0xbba544==_0x1ea125(0x22c)&&_0xbba544 instanceof Date?_0xbba544:new Date(_0xbba544),_0x26624b={'v':de(_0x1711fa['getTime']()),'f':_0x181179[_0x51ce4c]};_0x54d0fa[_0x1ea125(0x250)](_0x26624b);}else _0x54d0fa[_0x1ea125(0x250)](_0x1d4d75[_0x51ce4c]);_0x3f3cb2[_0x1ea125(0x250)](_0x54d0fa);}return{'header':_0xd80d40,'data':_0x3f3cb2};}else throw new Error(_0x1ea125(0x1d3));}}class ce extends A[_0x23966e(0x1b5)]{[_0x23966e(0x20c)](_0x1085a1){const _0x17e86d=_0x23966e,_0x145ea9=_0x1085a1[_0x17e86d(0x219)](m['ICommandService']);this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)][_0x17e86d(0x1f0)],()=>_0x145ea9[_0x17e86d(0x292)](_0x194d97=>{const _0xf7d1c9=_0x17e86d;switch(_0x194d97['id']){case l[_0xf7d1c9(0x20b)]['id']:{const _0x51ad7c=_0x194d97[_0xf7d1c9(0x23b)];this[_0xf7d1c9(0x1cd)](_0x51ad7c);break;}}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)]['BeforePivotTableMove'],()=>_0x145ea9[_0x17e86d(0x292)](_0x149a50=>{const _0x247f3e=_0x17e86d;switch(_0x149a50['id']){case l['AddPivotTableWithConfigCommand']['id']:case l[_0x247f3e(0x234)]['id']:{const _0x438a98=_0x149a50[_0x247f3e(0x23b)];this['_fireBeforeAddPivotTableEvent'](_0x438a98);break;}}})),this['registerEventHandler'](this[_0x17e86d(0x289)][_0x17e86d(0x261)],()=>_0x145ea9[_0x17e86d(0x28d)](_0x3dea3f=>{const _0x1339d1=_0x17e86d;if(_0x3dea3f['id']===l[_0x1339d1(0x290)]['id']||_0x3dea3f['id']===l[_0x1339d1(0x234)]['id']){const _0x3e3b23=_0x3dea3f[_0x1339d1(0x23b)];this[_0x1339d1(0x297)](_0x3e3b23);}})),this['registerEventHandler'](this[_0x17e86d(0x289)]['PivotTableMoved'],()=>_0x145ea9[_0x17e86d(0x28d)](_0x1bbdf8=>{const _0x2456a5=_0x17e86d;if(_0x1bbdf8['id']===l[_0x2456a5(0x20b)]['id']){const _0x39f5b6=_0x1bbdf8[_0x2456a5(0x23b)];this[_0x2456a5(0x208)](_0x39f5b6);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)]['PivotTableRemoved'],()=>_0x145ea9[_0x17e86d(0x28d)](_0x4322fe=>{const _0x339aa1=_0x17e86d;if(_0x4322fe['id']===l[_0x339aa1(0x226)]['id']){const _0x46b669=_0x4322fe['params'];this[_0x339aa1(0x280)](_0x46b669);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)][_0x17e86d(0x1b3)],()=>_0x145ea9[_0x17e86d(0x28d)](_0x259462=>{const _0x402e84=_0x17e86d;if(_0x259462['id']===l[_0x402e84(0x205)]['id']){const _0x1d78a9=_0x259462[_0x402e84(0x23b)];this[_0x402e84(0x1d8)](_0x1d78a9);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)]['PivotTableFieldRemoved'],()=>_0x145ea9[_0x17e86d(0x28d)](_0x4a50f3=>{const _0x58a8ae=_0x17e86d;if(_0x4a50f3['id']===l[_0x58a8ae(0x1c0)]['id']){const _0x342aa0=_0x4a50f3[_0x58a8ae(0x23b)];this[_0x58a8ae(0x26c)](_0x342aa0);}})),this['registerEventHandler'](this[_0x17e86d(0x289)][_0x17e86d(0x1b4)],()=>_0x145ea9['onCommandExecuted'](_0x42ab8e=>{const _0x347436=_0x17e86d;if(_0x42ab8e['id']===l[_0x347436(0x28f)]['id']){const _0x7ae55b=_0x42ab8e[_0x347436(0x23b)];this[_0x347436(0x1b9)](_0x7ae55b);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)]['PivotTableFieldCollapseChanged'],()=>_0x145ea9[_0x17e86d(0x28d)](_0xb79233=>{const _0x39a6fd=_0x17e86d;if(_0xb79233['id']===l['SetPivotCollapseCommand']['id']){const _0x20ae08=_0xb79233[_0x39a6fd(0x23b)];this[_0x39a6fd(0x1c3)](_0x20ae08);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)]['PivotTableFieldFilterChanged'],()=>_0x145ea9[_0x17e86d(0x28d)](_0x51d978=>{const _0x418db0=_0x17e86d;if(_0x51d978['id']===l[_0x418db0(0x24f)]['id']){const _0xfa8bc5=_0x51d978[_0x418db0(0x23b)];this[_0x418db0(0x241)](_0xfa8bc5);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)][_0x17e86d(0x271)],()=>_0x145ea9['onCommandExecuted'](_0x1a2026=>{const _0x2adf0f=_0x17e86d;if(_0x1a2026['id']===l[_0x2adf0f(0x275)]['id']){const _0x1da65a=_0x1a2026[_0x2adf0f(0x23b)];this['_firePivotTableFieldSortChangedEvent'](_0x1da65a);}})),this[_0x17e86d(0x1ba)](this[_0x17e86d(0x289)]['PivotTableFieldSettingChanged'],()=>_0x145ea9[_0x17e86d(0x28d)](_0xb04a9c=>{const _0x2a33e5=_0x17e86d;if(_0xb04a9c['id']===l['UpdatePivotFieldSettingCommand']['id']){const _0x3b5577=_0xb04a9c['params'];this[_0x2a33e5(0x1ad)](_0x3b5577);}})),this['registerEventHandler'](this[_0x17e86d(0x289)]['PivotTableValuePositionChanged'],()=>_0x145ea9[_0x17e86d(0x28d)](_0x242135=>{const _0x5b666c=_0x17e86d;if(_0x242135['id']===l[_0x5b666c(0x26e)]['id']){const _0x51920e=_0x242135[_0x5b666c(0x23b)];this['_firePivotTableValuePositionChangedEvent'](_0x51920e);}}));const _0x3ccf3f=_0x1085a1['get'](m['LifecycleService']);this[_0x17e86d(0x1fc)](_0x3ccf3f['lifecycle$'][_0x17e86d(0x211)](_0x1856c6=>{const _0x30cfe3=_0x17e86d;if(_0x1856c6===m[_0x30cfe3(0x1fd)]['Ready']){const _0x3c37af=_0x1085a1['get'](l[_0x30cfe3(0x281)]);this[_0x30cfe3(0x1ba)](this['Event'][_0x30cfe3(0x1eb)],()=>_0x3c37af[_0x30cfe3(0x1e8)][_0x30cfe3(0x201)](ie['auditTime'](0x32))['subscribe'](_0x2ede14=>{const _0x320705=_0x30cfe3;this[_0x320705(0x268)](_0x2ede14);}));}}));}[_0x23966e(0x1d8)](_0x505e78){const _0x495825=_0x23966e;if(_0x505e78){const {unitId:_0x450ad0,subUnitId:_0x11b813,pivotTableId:_0x4821b6,dataFieldId:_0x3303dc,fieldArea:_0x33040b,index:_0x4ac11d}=_0x505e78;this[_0x495825(0x1d2)](this[_0x495825(0x289)][_0x495825(0x1b3)],{'unitId':_0x450ad0,'subUnitId':_0x11b813,'pivotTableId':_0x4821b6,'dataFieldId':_0x3303dc,'fieldArea':_0x33040b,'index':_0x4ac11d});}}[_0x23966e(0x26c)](_0x10bc0c){const _0x4b9438=_0x23966e;if(_0x10bc0c){const {unitId:_0x7de117,subUnitId:_0x1f090f,pivotTableId:_0x4f27ef,fieldIds:_0x223cdf}=_0x10bc0c;this['fireEvent'](this['Event'][_0x4b9438(0x27e)],{'unitId':_0x7de117,'subUnitId':_0x1f090f,'pivotTableId':_0x4f27ef,'fieldIds':_0x223cdf['concat']()});}}[_0x23966e(0x1b9)](_0x88d17b){const _0x12d6f1=_0x23966e;if(_0x88d17b){const {unitId:_0x2c4e9b,subUnitId:_0x5edb6a,pivotTableId:_0x39b903,fieldId:_0x3dc90f,area:_0x505a34,index:_0x3a200c}=_0x88d17b;this[_0x12d6f1(0x1d2)](this[_0x12d6f1(0x289)]['PivotTableFieldMoved'],{'unitId':_0x2c4e9b,'subUnitId':_0x5edb6a,'pivotTableId':_0x39b903,'fieldId':_0x3dc90f,'area':_0x505a34,'index':_0x3a200c});}}['_firePivotTableFieldCollapsedEvent'](_0x56c048){const _0x33310d=_0x23966e;if(_0x56c048){const {unitId:_0x5d98e8,subUnitId:_0x2c85d3,row:_0x235ad8,col:_0x6fd952,collapse:_0x332b06}=_0x56c048;this[_0x33310d(0x1d2)](this[_0x33310d(0x289)]['PivotTableFieldCollapseChanged'],{'unitId':_0x5d98e8,'subUnitId':_0x2c85d3,'row':_0x235ad8,'col':_0x6fd952,'collapse':_0x332b06});}}[_0x23966e(0x241)](_0x18bade){const _0x498b08=_0x23966e;if(_0x18bade){const {unitId:_0xbab9bc,subUnitId:_0x4f6b7f,pivotTableId:_0x1929a4,tableFieldId:_0x363bcb,items:_0x449a6a,isAll:_0x517e33}=_0x18bade;this['fireEvent'](this[_0x498b08(0x289)]['PivotTableFieldFilterChanged'],{'unitId':_0xbab9bc,'subUnitId':_0x4f6b7f,'pivotTableId':_0x1929a4,'tableFieldId':_0x363bcb,'items':_0x449a6a[_0x498b08(0x240)](),'isAll':_0x517e33});}}[_0x23966e(0x251)](_0x267d1f){const _0x48114e=_0x23966e;if(_0x267d1f){const {unitId:_0x4bf027,subUnitId:_0x172fec,pivotTableId:_0x3025b3,tableFieldId:_0x10e157,info:_0x286f1d}=_0x267d1f;this['fireEvent'](this['Event'][_0x48114e(0x271)],{'unitId':_0x4bf027,'subUnitId':_0x172fec,'pivotTableId':_0x3025b3,'tableFieldId':_0x10e157,'info':{..._0x286f1d}});}}['_firePivotTableFieldSettingChangedEvent'](_0x201753){const _0x397627=_0x23966e;if(_0x201753){const {unitId:_0x54c03b,subUnitId:_0x4d8c68,tableFieldId:_0x2cd4a5,pivotTableId:_0x1e7d00,displayName:_0x1aa5eb,format:_0x53f658,subtotalType:_0x4db33e,tableFieldInfo:_0x457425,dataFieldInfo:_0x2d118c}=_0x201753;this['fireEvent'](this[_0x397627(0x289)][_0x397627(0x1ca)],{'unitId':_0x54c03b,'subUnitId':_0x4d8c68,'tableFieldId':_0x2cd4a5,'pivotTableId':_0x1e7d00,'displayName':_0x1aa5eb,'format':_0x53f658,'subtotalType':_0x4db33e,'tableFieldInfo':_0x457425,'dataFieldInfo':_0x2d118c});}}[_0x23966e(0x256)](_0x434c7a){const _0x18ac3e=_0x23966e;if(_0x434c7a){const {pivotTableId:_0x4d0915,position:_0x57cede,index:_0x171340}=_0x434c7a;this[_0x18ac3e(0x1d2)](this[_0x18ac3e(0x289)][_0x18ac3e(0x210)],{'pivotTableId':_0x4d0915,'position':_0x57cede,'index':_0x171340});}}[_0x23966e(0x297)](_0x46d5a2){const _0x4c8f6b=_0x23966e;if(_0x46d5a2){const {positionType:_0x290b74,pivotTableId:_0x54ec01,pivotTableConfig:_0x139d01}=_0x46d5a2,{targetCellInfo:_0x54791c,sourceRangeInfo:_0x381c80}=_0x139d01,{unitId:_0x4a0d5f}=_0x54791c;this[_0x4c8f6b(0x1d2)](this[_0x4c8f6b(0x289)][_0x4c8f6b(0x261)],{'unitId':_0x4a0d5f,'positionType':_0x290b74,'pivotTableId':_0x54ec01,'sourceRangeInfo':{'startRow':_0x381c80[_0x4c8f6b(0x1af)][_0x4c8f6b(0x1d1)],'endRow':_0x381c80[_0x4c8f6b(0x1af)]['endRow'],'startColumn':_0x381c80[_0x4c8f6b(0x1af)]['startColumn'],'endColumn':_0x381c80[_0x4c8f6b(0x1af)][_0x4c8f6b(0x22f)],'unitId':_0x381c80[_0x4c8f6b(0x1f6)],'subUnitId':_0x381c80['subUnitId'],'sheetName':_0x381c80['sheetName']},'targetCellInfo':{'row':_0x54791c[_0x4c8f6b(0x1ed)],'column':_0x54791c[_0x4c8f6b(0x247)],'sheetName':_0x54791c[_0x4c8f6b(0x1c9)],'unitId':_0x54791c[_0x4c8f6b(0x1f6)],'subUnitId':_0x54791c['subUnitId']}});}}[_0x23966e(0x283)](_0x3dff69){const _0x31266d=_0x23966e;if(_0x3dff69){const {positionType:_0x14581a,pivotTableId:_0x3d8641,pivotTableConfig:_0x4991c6}=_0x3dff69,{targetCellInfo:_0x50de44,sourceRangeInfo:_0x28ea9a}=_0x4991c6,{unitId:_0x2dc551}=_0x50de44,_0xbb6846={'unitId':_0x2dc551,'positionType':_0x14581a,'pivotTableId':_0x3d8641,'sourceRangeInfo':{'startRow':_0x28ea9a[_0x31266d(0x1af)][_0x31266d(0x1d1)],'endRow':_0x28ea9a[_0x31266d(0x1af)][_0x31266d(0x264)],'startColumn':_0x28ea9a['range'][_0x31266d(0x222)],'endColumn':_0x28ea9a[_0x31266d(0x1af)][_0x31266d(0x22f)],'unitId':_0x28ea9a[_0x31266d(0x1f6)],'subUnitId':_0x28ea9a['subUnitId'],'sheetName':_0x28ea9a[_0x31266d(0x1c9)]},'targetCellInfo':{'row':_0x50de44[_0x31266d(0x1ed)],'column':_0x50de44[_0x31266d(0x247)],'sheetName':_0x50de44[_0x31266d(0x1c9)],'unitId':_0x50de44[_0x31266d(0x1f6)],'subUnitId':_0x50de44[_0x31266d(0x209)]},'cancel':!0x1};if(this[_0x31266d(0x1d2)](this[_0x31266d(0x289)][_0x31266d(0x1f0)],_0xbb6846),_0xbb6846[_0x31266d(0x24c)])throw new Error('Before\x20add\x20pivot\x20table\x20event\x20canceled');}}[_0x23966e(0x280)](_0x29ad6a){const _0x4e4d64=_0x23966e;if(_0x29ad6a){const {unitId:_0x44b108,pivotTableId:_0x427994}=_0x29ad6a;this[_0x4e4d64(0x1d2)](this['Event'][_0x4e4d64(0x227)],{'unitId':_0x44b108,'pivotTableId':_0x427994});}}[_0x23966e(0x1cd)](_0x1db2a8){const _0x4a99cb=_0x23966e;if(_0x1db2a8){const {originTargetInfo:_0x43d57b,pivotTableId:_0xec7bc5,targetCellInfo:_0x5e40eb}=_0x1db2a8,{unitId:_0x51f2a9}=_0x43d57b,_0x3a77bd=this[_0x4a99cb(0x1ce)][_0x4a99cb(0x219)](l[_0x4a99cb(0x1b0)])[_0x4a99cb(0x27a)](_0x43d57b[_0x4a99cb(0x1f6)],_0x43d57b['subUnitId'],_0xec7bc5);if(!_0x3a77bd)return;const _0x5898f0={'unitId':_0x51f2a9,'pivotTableId':_0xec7bc5,'originTargetInfo':{'row':_0x3a77bd['targetCellInfo'][_0x4a99cb(0x1ed)],'column':_0x3a77bd[_0x4a99cb(0x1f2)][_0x4a99cb(0x247)],'unitId':_0x3a77bd[_0x4a99cb(0x1f2)]['unitId'],'subUnitId':_0x3a77bd['targetCellInfo'][_0x4a99cb(0x209)]},'targetCellInfo':{'row':_0x5e40eb[_0x4a99cb(0x1ed)],'column':_0x5e40eb['col'],'unitId':_0x5e40eb[_0x4a99cb(0x1f6)],'subUnitId':_0x5e40eb[_0x4a99cb(0x209)]},'cancel':!0x1};if(this['fireEvent'](this[_0x4a99cb(0x289)]['BeforePivotTableMove'],_0x5898f0),_0x5898f0[_0x4a99cb(0x24c)])throw new Error(_0x4a99cb(0x253));}}[_0x23966e(0x208)](_0x258939){const _0x13011c=_0x23966e;if(_0x258939){const {originTargetInfo:_0x36a278,pivotTableId:_0x207694,targetCellInfo:_0x594206}=_0x258939,{unitId:_0x57a130}=_0x36a278,_0x4a678a=this[_0x13011c(0x1ce)][_0x13011c(0x219)](l[_0x13011c(0x1b0)])[_0x13011c(0x27a)](_0x36a278[_0x13011c(0x1f6)],_0x36a278[_0x13011c(0x209)],_0x207694);if(!_0x4a678a)return;this[_0x13011c(0x1d2)](this[_0x13011c(0x289)][_0x13011c(0x1d5)],{'unitId':_0x57a130,'pivotTableId':_0x207694,'originTargetInfo':{'row':_0x4a678a[_0x13011c(0x1f2)][_0x13011c(0x1ed)],'column':_0x4a678a[_0x13011c(0x1f2)][_0x13011c(0x247)],'unitId':_0x4a678a['targetCellInfo'][_0x13011c(0x1f6)],'subUnitId':_0x4a678a[_0x13011c(0x1f2)][_0x13011c(0x209)]},'targetCellInfo':{'row':_0x594206[_0x13011c(0x1ed)],'column':_0x594206[_0x13011c(0x247)],'unitId':_0x594206[_0x13011c(0x1f6)],'subUnitId':_0x594206['subUnitId']}});}}[_0x23966e(0x268)](_0x435196){const _0x318c46=_0x23966e;if(_0x435196){const {unitId:_0x354a1a,subUnitId:_0x22529,pivotTableId:_0x3ecf26,type:_0x3251d1,rangesCache:_0x3ba9f9,isEmpty:_0x4de4c7}=_0x435196;this[_0x318c46(0x1d2)](this[_0x318c46(0x289)][_0x318c46(0x1eb)],{'unitId':_0x354a1a,'subUnitId':_0x22529,'pivotTableId':_0x3ecf26,'changeType':_0x3251d1,'isEmpty':!!_0x4de4c7,'rangeInfo':_0x3ba9f9});}}['generatePivotTable'](_0x467840,_0x4f72c9){const _0x52cc92=_0x23966e,_0x3b1012=(_0x4f72c9?new _0x4f72c9():new ve())['createCollection'](_0x52cc92(0x23f),_0x467840),_0x3fdfd8=_0x467840[0x0];_0x3b1012[_0x52cc92(0x23c)]()[_0x52cc92(0x231)]((_0x10fcdb,_0x365aca)=>{const _0x83b563=_0x52cc92;_0x3b1012[_0x83b563(0x229)](_0x10fcdb,_0x3fdfd8[_0x365aca]);});const _0x1c70c8=r[_0x52cc92(0x274)](0x8),_0x4fb3cf=new r['PivotTable'](_0x3b1012,void 0x0,_0x1c70c8);return new re(this[_0x52cc92(0x1ce)],_0x4fb3cf,_0x467840,_0x1c70c8);}}function _0x22dd(_0xd12850,_0x4ebefb){const _0x2e1262=_0x2e12();return _0x22dd=function(_0x22dd2b,_0x234ce7){_0x22dd2b=_0x22dd2b-0x1ad;let _0x6de0c8=_0x2e1262[_0x22dd2b];return _0x6de0c8;},_0x22dd(_0xd12850,_0x4ebefb);}A[_0x23966e(0x1b5)][_0x23966e(0x29b)](ce);
1
+ 'use strict';const _0x1d63cb=_0x4ff0;(function(_0x460d36,_0xc5335b){const _0x37837d=_0x4ff0,_0x27416f=_0x460d36();while(!![]){try{const _0x5d796b=-parseInt(_0x37837d(0x20c))/0x1+parseInt(_0x37837d(0x2bc))/0x2*(parseInt(_0x37837d(0x225))/0x3)+-parseInt(_0x37837d(0x25b))/0x4*(parseInt(_0x37837d(0x2ae))/0x5)+parseInt(_0x37837d(0x23a))/0x6*(-parseInt(_0x37837d(0x24d))/0x7)+-parseInt(_0x37837d(0x2bf))/0x8+-parseInt(_0x37837d(0x2e0))/0x9*(parseInt(_0x37837d(0x284))/0xa)+parseInt(_0x37837d(0x224))/0xb;if(_0x5d796b===_0xc5335b)break;else _0x27416f['push'](_0x27416f['shift']());}catch(_0x4c3db6){_0x27416f['push'](_0x27416f['shift']());}}}(_0x2878,0x26c30));var ee=Object['defineProperty'],te=(_0x42b72d,_0x3d8e2a,_0x20a986)=>_0x3d8e2a in _0x42b72d?ee(_0x42b72d,_0x3d8e2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20a986}):_0x42b72d[_0x3d8e2a]=_0x20a986,y=(_0x5c90de,_0x474bef,_0x2a8061)=>te(_0x5c90de,typeof _0x474bef!=_0x1d63cb(0x2ab)?_0x474bef+'':_0x474bef,_0x2a8061);const r=require(_0x1d63cb(0x285)),l=require(_0x1d63cb(0x2d9)),m=require('@univerjs/core'),R=require(_0x1d63cb(0x274)),A=require(_0x1d63cb(0x257)),ie=require(_0x1d63cb(0x234));class x{constructor(_0x488ee0,_0x26d1c1,_0x146d50,_0x4da87d){const _0x5d5894=_0x1d63cb;y(this,_0x5d5894(0x2cf)),y(this,_0x5d5894(0x20e)),y(this,_0x5d5894(0x278)),y(this,'_injector'),(this['unitId']=_0x488ee0,this[_0x5d5894(0x20e)]=_0x26d1c1,this[_0x5d5894(0x278)]=_0x146d50,this[_0x5d5894(0x22a)]=_0x4da87d);}[_0x1d63cb(0x2c3)](){const _0x225565=_0x1d63cb;return this['_injector'][_0x225565(0x292)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x225565(0x2cf)],this[_0x225565(0x20e)],this['pivotTableId']);}[_0x1d63cb(0x203)](_0x4ca200){const _0xd8994b=_0x1d63cb,_0x10010f=this['_injector'][_0xd8994b(0x292)](m[_0xd8994b(0x253)]),_0x23930d={'unitId':this['unitId'],'subUnitId':this[_0xd8994b(0x20e)],'pivotTableId':this['pivotTableId'],'pivotTableConfig':_0x4ca200};return _0x10010f['executeCommand'](l[_0xd8994b(0x200)]['id'],_0x23930d);}[_0x1d63cb(0x28b)](_0x460f47){const _0x2fb4be=_0x1d63cb,_0x50c668=this['_injector'][_0x2fb4be(0x292)](m[_0x2fb4be(0x253)]),_0xa66032={'unitId':this['unitId'],'subUnitId':this['subUnitId'],'pivotTableId':this['pivotTableId'],'resetArea':_0x460f47};return _0x50c668['executeCommand'](l[_0x2fb4be(0x268)]['id'],_0xa66032);}[_0x1d63cb(0x249)](){const _0x4cd401=_0x1d63cb;return this[_0x4cd401(0x278)];}[_0x1d63cb(0x23d)](_0xc12bb8){const _0x27a985=_0x1d63cb,_0x3a570f=this[_0x27a985(0x22a)][_0x27a985(0x292)](l[_0x27a985(0x2bb)])[_0x27a985(0x2d5)](this['unitId'],this[_0x27a985(0x20e)],this[_0x27a985(0x278)]),_0x3700e8=_0x3a570f==null?void 0x0:_0x3a570f[_0x27a985(0x23f)];if(_0x3700e8)return _0x3700e8['dimension'][_0xc12bb8]||_0x3700e8[_0x27a985(0x2a8)][_0xc12bb8];}[_0x1d63cb(0x1f5)](){const _0x4ff76b=_0x1d63cb,_0x1d0f55=this[_0x4ff76b(0x22a)],_0x2f5076=this[_0x4ff76b(0x2cf)],_0x464ba1=this[_0x4ff76b(0x278)],_0x4fd974=_0x1d0f55[_0x4ff76b(0x292)](l['SheetsPivotTableConfigModel'])['getCollection'](_0x2f5076,_0x464ba1);if(_0x4fd974){const _0x1be448=_0x4fd974[_0x4ff76b(0x272)],_0x4a9d10=_0x4fd974[_0x4ff76b(0x1f4)],_0x454f36=_0x4fd974[_0x4ff76b(0x23c)],_0x34bdb1=[];for(const _0x11ce8a of _0x1be448){const _0x1f8d66=_0x4a9d10[_0x11ce8a];if(_0x1f8d66){const _0xf214b={'id':_0x11ce8a,'name':_0x1f8d66[_0x4ff76b(0x26a)],'fieldDataType':_0x1f8d66['fieldDataType']};_0x454f36&&_0x454f36[_0x11ce8a]!==void 0x0&&(_0xf214b[_0x4ff76b(0x2b2)]=_0x454f36[_0x11ce8a]),_0x34bdb1['push'](_0xf214b);}}return _0x34bdb1;}return[];}[_0x1d63cb(0x2e6)](_0x993e2b){const _0x144f39=_0x1d63cb;var _0x384bbb;const _0xb780a5=this[_0x144f39(0x22a)][_0x144f39(0x292)](l[_0x144f39(0x2bb)])[_0x144f39(0x2d5)](this[_0x144f39(0x2cf)],this[_0x144f39(0x20e)],this['pivotTableId']),_0x25d206=_0xb780a5==null?void 0x0:_0xb780a5[_0x144f39(0x23f)][_0x144f39(0x2df)];return(_0x384bbb=_0x25d206==null?void 0x0:_0x25d206[_0x144f39(0x206)](_0x24f2f1=>_0x24f2f1[_0x144f39(0x2bd)]===_0x993e2b))==null?void 0x0:_0x384bbb[_0x144f39(0x2af)];}[_0x1d63cb(0x20f)](){const _0x13a203=_0x1d63cb,_0x5c97f2=this[_0x13a203(0x22a)][_0x13a203(0x292)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this['unitId'],this[_0x13a203(0x20e)],this['pivotTableId']),_0x42c093=_0x5c97f2==null?void 0x0:_0x5c97f2[_0x13a203(0x23f)][_0x13a203(0x2df)];return(_0x42c093==null?void 0x0:_0x42c093[_0x13a203(0x27f)]())||[];}['getFieldIdsByArea'](_0x56f3b3){const _0x4dccc8=_0x1d63cb,_0x403e3d=this['_injector']['get'](l[_0x4dccc8(0x2bb)])[_0x4dccc8(0x2d5)](this[_0x4dccc8(0x2cf)],this[_0x4dccc8(0x20e)],this[_0x4dccc8(0x278)]),_0x39930f=_0x403e3d==null?void 0x0:_0x403e3d[_0x4dccc8(0x23f)];if(_0x39930f)switch(_0x56f3b3){case r[_0x4dccc8(0x291)][_0x4dccc8(0x258)]:return _0x39930f[_0x4dccc8(0x237)][_0x4dccc8(0x27f)]();case r[_0x4dccc8(0x291)][_0x4dccc8(0x2c7)]:return _0x39930f[_0x4dccc8(0x232)][_0x4dccc8(0x27f)]();case r['PivotTableFiledAreaEnum'][_0x4dccc8(0x251)]:return _0x39930f[_0x4dccc8(0x26e)][_0x4dccc8(0x27f)]();case r[_0x4dccc8(0x291)][_0x4dccc8(0x24a)]:return _0x39930f[_0x4dccc8(0x2e4)]['concat']();case r[_0x4dccc8(0x291)][_0x4dccc8(0x26d)]:return _0x39930f[_0x4dccc8(0x2b6)][_0x4dccc8(0x27f)]();}return[];}[_0x1d63cb(0x252)](){const _0xfc684e=_0x1d63cb;var _0x371d31;const _0x1b9157=(_0x371d31=this[_0xfc684e(0x22a)][_0xfc684e(0x292)](l[_0xfc684e(0x2bb)])[_0xfc684e(0x252)](this['unitId'],this['subUnitId'],this[_0xfc684e(0x278)]))==null?void 0x0:_0x371d31[_0xfc684e(0x241)];if(_0x1b9157)return l[_0xfc684e(0x22b)](_0x1b9157);}async[_0x1d63cb(0x2b3)](){const _0x2c19b8=_0x1d63cb;return await this['_injector'][_0x2c19b8(0x292)](m[_0x2c19b8(0x253)])[_0x2c19b8(0x2d4)](l[_0x2c19b8(0x238)]['id'],{'unitId':this[_0x2c19b8(0x2cf)],'subUnitId':this[_0x2c19b8(0x20e)],'pivotTableId':this[_0x2c19b8(0x278)]});}async[_0x1d63cb(0x275)](_0x5b70d5,_0x5be9c5,_0x7b4de1){const _0x3a99cf=_0x1d63cb,_0x22dc9a=this[_0x3a99cf(0x22a)],_0x3df129=this[_0x3a99cf(0x2cf)],_0x37b1a0=this[_0x3a99cf(0x20e)],_0x4f0d1a=this[_0x3a99cf(0x278)],_0x2d1e75=_0x22dc9a[_0x3a99cf(0x292)](m[_0x3a99cf(0x253)]),_0x3f69f8=_0x22dc9a[_0x3a99cf(0x292)](l[_0x3a99cf(0x2bb)]),_0x1ddf69=_0x3f69f8['getPivotTableConfig'](_0x3df129,_0x37b1a0,_0x4f0d1a),_0xb8a0e0=_0x3f69f8[_0x3a99cf(0x211)](_0x3df129,_0x4f0d1a);if(!_0x1ddf69||!_0xb8a0e0)return!0x1;let _0x5cf6d6=_0x5b70d5;typeof _0x5cf6d6==_0x3a99cf(0x25f)&&(_0x5cf6d6=_0x3f69f8[_0x3a99cf(0x211)](_0x3df129,_0x4f0d1a)[_0x3a99cf(0x272)][_0x5b70d5]);const _0x36eed5={'unitId':_0x3df129,'subUnitId':_0x37b1a0,'pivotTableId':_0x4f0d1a,'dataFieldId':_0x5cf6d6,'fieldArea':_0x5be9c5,'index':_0x7b4de1};return _0x2d1e75[_0x3a99cf(0x236)](l[_0x3a99cf(0x2e8)]['id'],_0x36eed5);}async[_0x1d63cb(0x1f3)](_0xdfbb21){const _0x50215e=_0x1d63cb,_0x39936a=this[_0x50215e(0x22a)],_0x4aff87=this[_0x50215e(0x2cf)],_0x40f3a6=this['subUnitId'],_0xa07fac=this['pivotTableId'],_0x3149a2=_0x39936a[_0x50215e(0x292)](m[_0x50215e(0x253)]),_0x3ed43f={'unitId':_0x4aff87,'subUnitId':_0x40f3a6,'pivotTableId':_0xa07fac,'fieldIds':_0xdfbb21};return _0x3149a2[_0x50215e(0x236)](l[_0x50215e(0x2d8)]['id'],_0x3ed43f);}async[_0x1d63cb(0x2be)](_0x3778ac,_0x28b26c,_0x9f55f5){const _0x968d22=_0x1d63cb,_0x1fe91f=this['_injector'],_0x19ef37=this[_0x968d22(0x2cf)],_0x7154=this['subUnitId'],_0x1a99e1=this['pivotTableId'],_0x18d79a=_0x1fe91f[_0x968d22(0x292)](m[_0x968d22(0x253)]),_0x465952={'unitId':_0x19ef37,'subUnitId':_0x7154,'pivotTableId':_0x1a99e1,'fieldId':_0x3778ac,'area':_0x28b26c,'index':_0x9f55f5};return _0x18d79a[_0x968d22(0x236)](l['MovePivotFieldCommand']['id'],_0x465952);}async[_0x1d63cb(0x271)](_0x810428,_0x31468b){const _0x11ccf5=_0x1d63cb,_0x5ddafa=this[_0x11ccf5(0x22a)],_0x37b39e=this[_0x11ccf5(0x2cf)],_0x176863=this['subUnitId'],_0x1b740b=this['pivotTableId'],_0x4fa149=_0x5ddafa[_0x11ccf5(0x292)](m[_0x11ccf5(0x253)]),_0x4ee39f={'unitId':_0x37b39e,'subUnitId':_0x176863,'pivotTableId':_0x1b740b,'position':_0x810428,'index':_0x31468b};return _0x4fa149[_0x11ccf5(0x236)](l[_0x11ccf5(0x255)]['id'],_0x4ee39f);}async['setSubtotalType'](_0x501a33,_0x218d9f){const _0x12a9fe=_0x1d63cb,_0xe32a0c=this[_0x12a9fe(0x22a)],_0x458105=this[_0x12a9fe(0x2cf)],_0x3558a2=this['subUnitId'],_0x1de7bf=this['pivotTableId'],_0x55a36b=_0xe32a0c[_0x12a9fe(0x292)](m[_0x12a9fe(0x253)]),_0x4ac4c2={'unitId':_0x458105,'subUnitId':_0x3558a2,'pivotTableId':_0x1de7bf,'fieldId':_0x501a33,'subtotalType':_0x218d9f};return _0x55a36b[_0x12a9fe(0x236)](l[_0x12a9fe(0x208)]['id'],_0x4ac4c2);}async['setLabelSort'](_0x37dfde,_0x8d7d97){const _0x29c4a1=_0x1d63cb,_0xbfe41d=this[_0x29c4a1(0x22a)],_0x31af20=this[_0x29c4a1(0x2cf)],_0x3e7829=this[_0x29c4a1(0x20e)],_0x4970c0=this[_0x29c4a1(0x278)],_0xe3fe79=_0xbfe41d[_0x29c4a1(0x292)](m[_0x29c4a1(0x253)]),_0x5f2698={'unitId':_0x31af20,'subUnitId':_0x3e7829,'tableFieldId':_0x37dfde,'pivotTableId':_0x4970c0,'info':_0x8d7d97};return _0xe3fe79[_0x29c4a1(0x236)](l['SetPivotSortCommand']['id'],_0x5f2698);}async[_0x1d63cb(0x29a)](_0x591509,_0x20483c,_0x6cdcef){const _0x33f4ad=_0x1d63cb,_0x5ec2d5=this[_0x33f4ad(0x22a)],_0x273352=this[_0x33f4ad(0x2cf)],_0xd1bc7b=this['subUnitId'],_0x303245=this[_0x33f4ad(0x278)],_0x3a6cbb=_0x5ec2d5[_0x33f4ad(0x292)](m['ICommandService']),_0x5f8eae={'unitId':_0x273352,'subUnitId':_0xd1bc7b,'pivotTableId':_0x303245,'tableFieldId':_0x591509,'items':_0x20483c,'isAll':_0x6cdcef};return _0x3a6cbb[_0x33f4ad(0x236)](l[_0x33f4ad(0x2e2)]['id'],_0x5f8eae);}async['setValueFilter'](_0x3dad01,_0x164322){const _0x30d989=_0x1d63cb,_0x2d26ef=this[_0x30d989(0x22a)],_0x2f4f6b=this[_0x30d989(0x2cf)],_0x2e5ed5=this['subUnitId'],_0x37183e=this['pivotTableId'],_0x24df37=_0x2d26ef[_0x30d989(0x292)](m[_0x30d989(0x253)]);if(_0x3dad01===void 0x0)return console[_0x30d989(0x2b5)]('[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined'),!0x1;const _0x20483a=_0x164322&&{..._0x164322,'type':r[_0x30d989(0x2c6)][_0x30d989(0x26f)]},_0x1591e1={'unitId':_0x2f4f6b,'subUnitId':_0x2e5ed5,'pivotTableId':_0x37183e,'fieldId':_0x3dad01,'valueFilterInfo':_0x20483a};return _0x24df37[_0x30d989(0x236)](l[_0x30d989(0x1fd)]['id'],_0x1591e1);}async[_0x1d63cb(0x2e9)](_0x2e5e8e,_0xab55af){const _0x1746fb=_0x1d63cb,_0x348cc9=this[_0x1746fb(0x22a)],_0x49ef2a=this['unitId'],_0x14b193=this[_0x1746fb(0x20e)],_0x45ea91=this['pivotTableId'],_0x10910d=_0x348cc9[_0x1746fb(0x292)](m[_0x1746fb(0x253)]),_0x2e473f={'unitId':_0x49ef2a,'subUnitId':_0x14b193,'pivotTableId':_0x45ea91,'fieldId':_0x2e5e8e,'name':_0xab55af};return _0x10910d[_0x1746fb(0x236)](l['RenamePivotFieldMutation']['id'],_0x2e473f);}async[_0x1d63cb(0x2cd)](_0xdca62c,_0x4b9fed,_0x2f03bb){const _0x55171f=_0x1d63cb,_0x4a1857=this[_0x55171f(0x22a)]['get'](m[_0x55171f(0x253)]),_0x381814=this[_0x55171f(0x22a)]['get'](m[_0x55171f(0x294)])[_0x55171f(0x228)](this[_0x55171f(0x2cf)]),_0x543965=_0x381814==null?void 0x0:_0x381814['getSheetBySheetName'](_0xdca62c);if(!_0x381814||!_0x543965)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');return _0x4a1857['executeCommand'](l['MovePivotTableCommand']['id'],{'pivotTableId':this['pivotTableId'],'targetCellInfo':{'subUnitId':_0x543965['getSheetId'](),'unitId':this[_0x55171f(0x2cf)],'row':_0x4b9fed,'col':_0x2f03bb},'originTargetInfo':{'subUnitId':this[_0x55171f(0x20e)],'unitId':this[_0x55171f(0x2cf)]}});}async['setDateGroupType'](_0xd62208,_0xb91012){const _0x38f32c=_0x1d63cb,_0xd5e70=this[_0x38f32c(0x22a)],_0x28b4e5=this[_0x38f32c(0x2cf)],_0x527bda=this['subUnitId'],_0x4821fd=this[_0x38f32c(0x278)],_0x213513=_0xd5e70[_0x38f32c(0x292)](m['ICommandService']),_0x2c0e48={'unitId':_0x28b4e5,'subUnitId':_0x527bda,'pivotTableId':_0x4821fd,'tableFieldId':_0xd62208,'dateType':_0xb91012};return _0x213513[_0x38f32c(0x236)](l[_0x38f32c(0x28f)]['id'],_0x2c0e48);}}class oe extends R['FWorkbook']{async[_0x1d63cb(0x2db)](_0x30bca0,_0x447aac,_0x51f219){const _0x19e9ad=_0x1d63cb,_0x2aaca4=this[_0x19e9ad(0x22a)],_0x39ddab=_0x2aaca4[_0x19e9ad(0x292)](m[_0x19e9ad(0x253)]),_0x11f0da=r[_0x19e9ad(0x2e1)](0x8),_0x592885={'positionType':_0x447aac,'pivotTableId':_0x11f0da,'pivotTableConfig':{'targetCellInfo':_0x51f219,'sourceRangeInfo':_0x30bca0,'isEmpty':!0x0}};if(await _0x39ddab[_0x19e9ad(0x236)](l[_0x19e9ad(0x250)]['id'],_0x592885))return new x(_0x51f219[_0x19e9ad(0x2cf)],_0x51f219[_0x19e9ad(0x20e)],_0x11f0da,_0x2aaca4);}[_0x1d63cb(0x286)](_0x408067,_0xb3f81,_0x20813f,_0x47836e){const _0x4a857d=_0x1d63cb,_0x59dc67=this[_0x4a857d(0x22a)],_0x13fbb4=_0x59dc67[_0x4a857d(0x292)](l[_0x4a857d(0x29e)])[_0x4a857d(0x299)](_0x408067,_0xb3f81,_0x20813f,_0x47836e);if(_0x13fbb4)return new x(_0x408067,_0xb3f81,_0x13fbb4,_0x59dc67);}[_0x1d63cb(0x230)](_0x347179){const _0x262ecf=_0x1d63cb,_0x3690a1=this[_0x262ecf(0x22a)],_0x3b4316=_0x3690a1[_0x262ecf(0x292)](l[_0x262ecf(0x2bb)])['getTargetByPivotTableId'](this[_0x262ecf(0x273)](),_0x347179);if(_0x3b4316)return new x(_0x3b4316[_0x262ecf(0x2cf)],_0x3b4316[_0x262ecf(0x20e)],_0x347179,_0x3690a1);}}function _0x4ff0(_0x231914,_0x2fb451){const _0x2878eb=_0x2878();return _0x4ff0=function(_0x4ff0bc,_0x49c902){_0x4ff0bc=_0x4ff0bc-0x1f0;let _0x293e48=_0x2878eb[_0x4ff0bc];return _0x293e48;},_0x4ff0(_0x231914,_0x2fb451);}R[_0x1d63cb(0x213)][_0x1d63cb(0x259)](oe);class ne extends R[_0x1d63cb(0x210)]{[_0x1d63cb(0x286)](_0xcd0173,_0x91641f){const _0x183f47=_0x1d63cb,_0x2d4d15=this[_0x183f47(0x22a)],_0x456a15=_0x2d4d15[_0x183f47(0x292)](l[_0x183f47(0x29e)]),_0xc4e627=this[_0x183f47(0x297)][_0x183f47(0x256)](),_0x205d67=this[_0x183f47(0x21a)](),_0x569aa2=_0x456a15[_0x183f47(0x299)](_0xc4e627,_0x205d67,_0xcd0173,_0x91641f);if(_0x569aa2)return new x(_0xc4e627,_0x205d67,_0x569aa2,_0x2d4d15);}}R[_0x1d63cb(0x210)][_0x1d63cb(0x259)](ne);class ae extends A[_0x1d63cb(0x214)]{get[_0x1d63cb(0x2a5)](){const _0x3e5810=_0x1d63cb;return r[_0x3e5810(0x2a5)];}get[_0x1d63cb(0x2c6)](){const _0x4ae83b=_0x1d63cb;return r[_0x4ae83b(0x2c6)];}get[_0x1d63cb(0x291)](){const _0x1b60cd=_0x1d63cb;return r[_0x1b60cd(0x291)];}get[_0x1d63cb(0x288)](){const _0x5f1498=_0x1d63cb;return r[_0x5f1498(0x288)];}get[_0x1d63cb(0x2b8)](){const _0x294353=_0x1d63cb;return r[_0x294353(0x2b8)];}get['PivotDataFieldSortTypeEnum'](){const _0x448877=_0x1d63cb;return r[_0x448877(0x22d)];}get[_0x1d63cb(0x2cb)](){const _0x3783b2=_0x1d63cb;return r[_0x3783b2(0x2cb)];}get[_0x1d63cb(0x2eb)](){const _0x5c782e=_0x1d63cb;return r[_0x5c782e(0x1ff)];}get[_0x1d63cb(0x242)](){const _0x5c6dca=_0x1d63cb;return l[_0x5c6dca(0x2a9)];}get[_0x1d63cb(0x29b)](){const _0x571ae6=_0x1d63cb;return r[_0x571ae6(0x29b)];}get[_0x1d63cb(0x287)](){const _0x10920c=_0x1d63cb;return r[_0x10920c(0x287)];}}A[_0x1d63cb(0x214)][_0x1d63cb(0x259)](ae);class se extends A[_0x1d63cb(0x26c)]{get[_0x1d63cb(0x21e)](){return'PivotTableAdded';}get['BeforePivotTableAdd'](){const _0x19fa5a=_0x1d63cb;return _0x19fa5a(0x264);}get[_0x1d63cb(0x2d0)](){const _0x119fad=_0x1d63cb;return _0x119fad(0x2d0);}get[_0x1d63cb(0x2e7)](){return'PivotTableMoved';}get[_0x1d63cb(0x2ec)](){const _0x385884=_0x1d63cb;return _0x385884(0x2ec);}get[_0x1d63cb(0x2dd)](){return'PivotTableFieldAdded';}get[_0x1d63cb(0x1f1)](){const _0x481d05=_0x1d63cb;return _0x481d05(0x1f1);}get[_0x1d63cb(0x263)](){const _0x38ef52=_0x1d63cb;return _0x38ef52(0x263);}get[_0x1d63cb(0x289)](){return'PivotTableFieldCollapseChanged';}get[_0x1d63cb(0x25c)](){const _0x446ec4=_0x1d63cb;return _0x446ec4(0x25c);}get[_0x1d63cb(0x240)](){const _0x53e347=_0x1d63cb;return _0x53e347(0x240);}get['PivotTableFieldSettingChanged'](){const _0x2ae184=_0x1d63cb;return _0x2ae184(0x201);}get[_0x1d63cb(0x1f2)](){const _0x329c40=_0x1d63cb;return _0x329c40(0x1f2);}}A[_0x1d63cb(0x26c)]['extend'](se);function _0x2878(){const _0x59d665=['BeforePivotTableMove','displayNameRecord','getFieldSetting','Ready','fieldsConfig','PivotTableFieldSortChanged','rangeInfo','PositionTypeEnum','createCollection','ZH_CN','level','_initialize','getValueIndex','None','getPivotTableId','Filter','_firePivotTableFieldFilterChangedEvent','_firePivotTableFieldSortChangedEvent','632429WYaRCO','小计\x20','MovePivotTableCommand','AddPivotTableCommand','Value','getPivotTableRangeInfo','ICommandService','Subtotal','UpdatePivotValuePositionCommand','getUnitId','@univerjs/core/facade','Column','extend','getColCount','276XjyXAT','PivotTableFieldFilterChanged','getPivotSourceData','getSourceName','number','data','_pivot','setSubtotal','PivotTableFieldMoved','BeforePivotTableAdd','isNaN','_firePivotTableFieldAddedEvent','length','ResetPivotFieldsConfigCommand','_fireMovedPivotTableEvent','name','getDimensionInfo','FEventName','Hidden','valueFields','ValueFilter','generatePivotTable','updateValuePosition','fieldIds','getId','@univerjs/sheets/facade','addField','value','getTableFieldsByDataFieldId','pivotTableId','startColumn','keys','setDisplayName','forEach','addValueFieldWithName','DataFieldManager','concat','getFieldDataTypeByColumnIndex','max','valueIndex','LocaleType','50TEoNbM','@univerjs-pro/engine-pivot','getPivotTableByCell','PivotDateGroupFieldDateTypeEnum','PivotTableValuePositionEnum','PivotTableFieldCollapseChanged','setFilterInfo','reset','SetPivotCollapseCommand','resetDimension','getValueFields','UpdateDateGroupCommand','sheetName','PivotTableFiledAreaEnum','get','_fireBeforeMovePivotTableEvent','IUniverInstanceService','row','subscribe','_workbook','_firePivotTableFieldCollapsedEvent','getPivotTableIdByCell','setLabelManualFilter','PivotTableChangeTypeEnum','getDataFieldByTableId','getFieldDisplayNames','SheetsPivotTableAdaptorModel','targetCellInfo','MovePivotFieldCommand','\x20failed.','dispose','总计\x20','push','PivotSubtotalTypeEnum','[PivotTable]:\x20The\x20field\x20name\x20','subtotal','measure','PositionType','getFieldById','symbol','iterateFieldByArea','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','3680GLzJpc','filterInfo','_firePivotTableValuePositionChangedEvent','format','displayName','remove','addFilterFieldWithName','warn','hiddenFields','numfmt','PivotDataFieldDataTypeEnum','UpdatePivotFieldSettingCommand','_isZhCN','SheetsPivotTableConfigModel','2duoxgk','fieldId','updateFieldPosition','1363904whWVhP','getValuePosition','sum','getFieldIds','getConfig','endRow','_getSourceIdByName','PivotFilterTypeEnum','Row','Grand\x20Total\x20','_fireAddPivotTableEvent','getRangeData','PivotDataFieldSortOperatorEnum','lifecycle$','move','_sourceData','unitId','PivotTableRemoved','count','getformat','LocaleService','syncExecuteCommand','getPivotTableConfig','getRowCount','dataFieldsCollection','RemovePivotFieldCommand','@univerjs-pro/sheets-pivot','_fireBeforeAddPivotTableEvent','addPivotTable','AddPivotTableWithConfigCommand','PivotTableFieldAdded','range','valueFilter','188559lRtbTK','generateHexNumber','SetPivotFilterCommand','string','filterFields','removeFieldWithName','getValueFilter','PivotTableMoved','AddPivotFieldCommand','renameField','Event','PivotFilterOperatorEnum','PivotTableRendered','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','_fireRenderPivotTableEvent','PivotTableFieldRemoved','PivotTableValuePositionChanged','removeField','fields','getSourceFieldsInfo','params','PivotTable','addFieldWithName','PivotCellStyleTypeEnum','getDataFieldIdByDisplayName','cancel','viewUpdate$','SetPivotValueFilterCommand','(空白)','ST_PivotFilterOperatorEnum','SetPivotFieldsConfigCommand','PivotTableFieldSettingChanged','_firePivotTableFieldSettingChangedEvent','setFieldsConfig','getNameWithColumnIndex','_firePivotTableFieldRemovedEvent','find','getFieldDataType','SetPivotSubtotalTypeMutation','pipe','startRow','(blank)','36745QUJYwK','GrandTotal','subUnitId','getValueFilters','FWorksheet','getCollection','Total\x20','FWorkbook','FEnum','disposeWithMe','_firePivotTableFieldMovedEvent','setOptions','col','fireEvent','getSheetId','registerEventHandler','tableFieldId','setSubtotalType','PivotTableAdded','query','blank','beforeCommandExecuted','getFieldCountByArea','_firePivotTableRemovedEvent','5340709YnFRHb','650145MyYSQW','getCurrentLocale','column','getUnit','info','_injector','unionPivotViewRange','onCommandExecuted','PivotDataFieldSortTypeEnum','PivotViewCellValueTypeEnum','object','getPivotTableById','isBottomTotal','rowFields','headerMap','rxjs','endColumn','executeCommand','columnFields','RemovePivotTableMutation','getTime','12myqdCt'];_0x2878=function(){return _0x59d665;};return _0x2878();}const Z='YYYY-MM-DD';function de(_0x2232ed){return _0x2232ed/0x3e8/0x15180+0x63e1;}function le(_0x597167,_0x498301,_0x55111b,_0x27391f){const _0x147ea8=_0x1d63cb;var _0x207401,_0x46e57c,_0x1643ac,_0x4b7018,_0x55af37,_0x1f0058,_0x4388bf,_0x458dda,_0x590fc6,_0x1ebc56,_0x50a8e8,_0x21ca8c,_0x29c22d,_0x103aed,_0x30ec64;const _0x1cc535=[],_0x30d9d6=[],_0x28b075=[],{showRowGrandTotal:_0x243c78,showRowSubTotal:_0x228223}=_0x27391f,{cornerView:_0x4090c2,colView:_0x3f8bde,rowView:_0x1bb5f7,dataView:_0x261c02,formatMap:_0x4964b1}=_0x498301,_0x10794f=_0x4090c2[_0x147ea8(0x2d6)](),_0x3050dc=_0x4090c2[_0x147ea8(0x25a)]();for(let _0x2bcc88=0x0;_0x2bcc88<_0x10794f;_0x2bcc88++)for(let _0xfbb6b5=0x0;_0xfbb6b5<_0x3050dc;_0xfbb6b5++){const _0x174e3f={...(_0x46e57c=(_0x207401=_0x4090c2[_0x147ea8(0x260)])==null?void 0x0:_0x207401[_0x2bcc88])==null?void 0x0:_0x46e57c[_0xfbb6b5]};_0x174e3f['v']&&(_0x1cc535[_0x2bcc88]||(_0x1cc535[_0x2bcc88]=[]),_0x28b075[_0x2bcc88]||(_0x28b075[_0x2bcc88]=[]),_0x1cc535[_0x2bcc88][_0xfbb6b5]=_0x174e3f['v'],_0x28b075[_0x2bcc88][_0xfbb6b5]=_0x174e3f['v']);}for(let _0x5b6ee2=0x0;_0x5b6ee2<_0x3f8bde[_0x147ea8(0x2d6)]();_0x5b6ee2++){const _0x2e9f37=(_0x4b7018=(_0x1643ac=_0x3f8bde==null?void 0x0:_0x3f8bde[_0x147ea8(0x233)])==null?void 0x0:_0x1643ac[_0x5b6ee2])==null?void 0x0:_0x4b7018[_0x147ea8(0x21c)],_0x980326=_0x2e9f37?_0x4964b1[_0x2e9f37]:'';for(let _0x2627cb=0x0;_0x2627cb<_0x3f8bde[_0x147ea8(0x25a)]();_0x2627cb++){const _0x47be5e={...(_0x1f0058=(_0x55af37=_0x3f8bde[_0x147ea8(0x260)])==null?void 0x0:_0x55af37[_0x5b6ee2])==null?void 0x0:_0x1f0058[_0x2627cb]};if((_0x47be5e==null?void 0x0:_0x47be5e['v'])!==void 0x0){let _0x5bd9e5=_0x980326?m[_0x147ea8(0x2b7)][_0x147ea8(0x2b1)](_0x980326,Number(_0x47be5e['v'])):_0x47be5e['v'];(_0x47be5e==null?void 0x0:_0x47be5e['s'])===r['PivotCellStyleTypeEnum'][_0x147ea8(0x254)]?_0x5bd9e5=_0x55111b?_0x147ea8(0x24e)+_0x5bd9e5:_0x147ea8(0x212)+_0x5bd9e5:(_0x47be5e==null?void 0x0:_0x47be5e['s'])===r[_0x147ea8(0x1f9)][_0x147ea8(0x20d)]&&(_0x5bd9e5=_0x55111b?_0x147ea8(0x2a3)+_0x5bd9e5:_0x147ea8(0x2c8)+_0x5bd9e5),(_0x47be5e==null?void 0x0:_0x47be5e['t'])===r[_0x147ea8(0x22e)][_0x147ea8(0x220)]&&(_0x5bd9e5=_0x55111b?_0x147ea8(0x1fe):'(blank)'),_0x1cc535[_0x5b6ee2]||(_0x1cc535[_0x5b6ee2]=[]),_0x28b075[_0x5b6ee2]||(_0x28b075[_0x5b6ee2]=[]),_0x1cc535[_0x5b6ee2][_0x2627cb+_0x3050dc]=_0x5bd9e5,_0x28b075[_0x5b6ee2][_0x2627cb+_0x3050dc]=_0x5bd9e5;}}}let _0x3de102=0x0,_0x179a34=0x0,_0x1aa717=0x0;for(let _0x7c0e0d=0x0;_0x7c0e0d<_0x1bb5f7[_0x147ea8(0x2d6)]();_0x7c0e0d++){const _0x57eca6=_0x1bb5f7[_0x147ea8(0x229)][_0x7c0e0d];if(!_0x228223&&_0x57eca6[_0x147ea8(0x231)]&&_0x57eca6[_0x147ea8(0x245)]!==0x0){_0x1aa717++,_0x179a34=0x0;continue;}if(!(!_0x243c78&&_0x57eca6[_0x147ea8(0x231)]&&_0x57eca6['level']===0x0)){for(let _0x41d8eb=0x0;_0x41d8eb<_0x1bb5f7[_0x147ea8(0x25a)]();_0x41d8eb++){const _0x1e99af={...(_0x458dda=(_0x4388bf=_0x1bb5f7[_0x147ea8(0x260)])==null?void 0x0:_0x4388bf[_0x7c0e0d])==null?void 0x0:_0x458dda[_0x41d8eb]},_0x51c72d=(_0x1ebc56=(_0x590fc6=_0x1bb5f7==null?void 0x0:_0x1bb5f7['headerMap'])==null?void 0x0:_0x590fc6[_0x41d8eb])==null?void 0x0:_0x1ebc56[_0x147ea8(0x21c)],_0x57c208=_0x51c72d?_0x4964b1[_0x51c72d]:'';if((_0x1e99af==null?void 0x0:_0x1e99af['v'])!==void 0x0){let _0x57f315=_0x57c208?m[_0x147ea8(0x2b7)]['format'](_0x57c208,Number(_0x1e99af['v'])):_0x1e99af['v'];(_0x1e99af==null?void 0x0:_0x1e99af['s'])===r[_0x147ea8(0x1f9)]['Subtotal']?_0x57f315=_0x55111b?_0x147ea8(0x24e)+_0x57f315:_0x147ea8(0x212)+_0x57f315:(_0x1e99af==null?void 0x0:_0x1e99af['s'])===r[_0x147ea8(0x1f9)][_0x147ea8(0x20d)]&&(_0x57f315=_0x55111b?_0x147ea8(0x2a3)+_0x57f315:_0x147ea8(0x2c8)+_0x57f315),(_0x1e99af==null?void 0x0:_0x1e99af['t'])===r[_0x147ea8(0x22e)][_0x147ea8(0x220)]&&(_0x57f315=_0x55111b?_0x147ea8(0x1fe):_0x147ea8(0x20b)),_0x1cc535[_0x3de102+_0x10794f]||(_0x1cc535[_0x3de102+_0x10794f]=[]);let _0x47f2af=_0x30d9d6[_0x1aa717];_0x47f2af||(_0x47f2af=[..._0x28b075],_0x30d9d6[_0x1aa717]=_0x47f2af),_0x47f2af[_0x179a34+_0x10794f]||(_0x47f2af[_0x179a34+_0x10794f]=[]),_0x47f2af[_0x179a34+_0x10794f][_0x41d8eb]=_0x57f315,_0x1cc535[_0x3de102+_0x10794f][_0x41d8eb]=_0x57f315;}}_0x3de102++,_0x1bb5f7[_0x147ea8(0x229)][_0x7c0e0d][_0x147ea8(0x231)]?(_0x1aa717++,_0x179a34=0x0):_0x179a34++;}}_0x3de102=0x0,_0x1aa717=0x0,_0x179a34=0x0;for(let _0x281d3e=0x0;_0x281d3e<_0x261c02[_0x147ea8(0x2d6)]();_0x281d3e++){const _0x5db5c3=_0x1bb5f7[_0x147ea8(0x229)][_0x281d3e];if(!_0x228223&&_0x5db5c3[_0x147ea8(0x231)]&&_0x5db5c3['level']!==0x0){_0x1aa717++,_0x179a34=0x0;continue;}if(!(!_0x243c78&&_0x5db5c3[_0x147ea8(0x231)]&&_0x5db5c3[_0x147ea8(0x245)]===0x0)){for(let _0xc3210c=0x0;_0xc3210c<_0x261c02[_0x147ea8(0x25a)]();_0xc3210c++){const _0x2e2c68={...(_0x21ca8c=(_0x50a8e8=_0x261c02[_0x147ea8(0x260)])==null?void 0x0:_0x50a8e8[_0x281d3e])==null?void 0x0:_0x21ca8c[_0xc3210c]};if(_0x2e2c68['v']){const _0x20c9fe=_0x1bb5f7[_0x147ea8(0x229)][_0x281d3e]['valueIndex'],_0x65941f=_0x3f8bde[_0x147ea8(0x229)][_0xc3210c][_0x147ea8(0x282)],_0x5cca62=Math[_0x147ea8(0x281)](_0x20c9fe,_0x65941f),_0x1d9650=_0x597167[_0x147ea8(0x28e)]()[_0x147ea8(0x27f)]();let _0x215d74='';_0x5cca62<0x0?_0x215d74=(_0x29c22d=_0x1d9650[0x0])!=null?_0x29c22d:'':_0x215d74=(_0x103aed=_0x1d9650[_0x5cca62])!=null?_0x103aed:'';const _0x4e787a=(_0x30ec64=_0x4964b1[_0x215d74])!=null?_0x30ec64:'';_0x1cc535[_0x3de102+_0x10794f]||(_0x1cc535[_0x3de102+_0x10794f]=[]);let _0x23aeef=_0x30d9d6[_0x1aa717];_0x23aeef||(_0x23aeef=[..._0x28b075],_0x30d9d6[_0x1aa717]=_0x23aeef),_0x23aeef[_0x179a34+_0x10794f]||(_0x23aeef[_0x179a34+_0x10794f]=[]);const _0x3ea522=_0x4e787a?m[_0x147ea8(0x2b7)][_0x147ea8(0x2b1)](_0x4e787a,Number(_0x2e2c68['v'])):_0x2e2c68['v'];_0x23aeef[_0x179a34+_0x10794f][_0xc3210c+_0x3050dc]=_0x3ea522,_0x1cc535[_0x3de102+_0x10794f][_0xc3210c+_0x3050dc]=_0x3ea522;}}_0x3de102++,_0x1bb5f7[_0x147ea8(0x229)][_0x281d3e]['isBottomTotal']?(_0x1aa717++,_0x179a34=0x0):_0x179a34++;}}return{'dataArr':_0x1cc535,'dataArrWithSplit':_0x30d9d6};}class re{constructor(_0x2e2680,_0x45e914,_0x247389,_0x4ebbb4){const _0x4945eb=_0x1d63cb;y(this,_0x4945eb(0x261)),y(this,_0x4945eb(0x2ce)),y(this,_0x4945eb(0x22a)),y(this,_0x4945eb(0x2ba)),y(this,'_id'),(this[_0x4945eb(0x22a)]=_0x2e2680,this[_0x4945eb(0x261)]=_0x45e914,this[_0x4945eb(0x2ce)]=_0x247389,this['_id']=_0x4ebbb4);const _0x4483ff=this[_0x4945eb(0x22a)][_0x4945eb(0x292)](m[_0x4945eb(0x2d3)]);this[_0x4945eb(0x2ba)]=_0x4483ff[_0x4945eb(0x226)]()===m[_0x4945eb(0x283)][_0x4945eb(0x244)];}[_0x1d63cb(0x2c5)](_0x2049b5){const _0x5657b1=_0x1d63cb,_0x4cb569=this[_0x5657b1(0x261)][_0x5657b1(0x1fa)](_0x2049b5);if(!_0x4cb569)throw new Error(_0x5657b1(0x2a6)+_0x2049b5+_0x5657b1(0x2ed));return _0x4cb569;}[_0x1d63cb(0x1f8)](_0x3406c4,_0x90adf5){const _0x3c71ff=_0x1d63cb,_0x1b6905=this[_0x3c71ff(0x2c5)](_0x3406c4),_0x509f26=this[_0x3c71ff(0x261)]['addFieldWithSourceId'](_0x1b6905,_0x90adf5);if(!_0x509f26)throw new Error('[PivotTable]:\x20add\x20field\x20'+_0x3406c4+_0x3c71ff(0x2a1));if(_0x90adf5===r[_0x3c71ff(0x291)][_0x3c71ff(0x251)]){const _0x3abdea=_0x509f26[_0x3c71ff(0x273)](),_0x3cb979=this[_0x3c71ff(0x261)][_0x3c71ff(0x29c)](_0x3abdea);if(_0x3cb979){const _0x125de5=_0x3cb979==null?void 0x0:_0x3cb979['getFieldDataType']();this[_0x3c71ff(0x261)][_0x3c71ff(0x21d)](_0x3abdea,_0x125de5===r[_0x3c71ff(0x2b8)][_0x3c71ff(0x25f)]?r['PivotSubtotalTypeEnum'][_0x3c71ff(0x2c1)]:r[_0x3c71ff(0x2a5)][_0x3c71ff(0x2d1)]);}const _0x55933e=this[_0x3c71ff(0x261)][_0x3c71ff(0x247)](),_0x14c424=this[_0x3c71ff(0x261)][_0x3c71ff(0x2c0)](),_0x23553e=this[_0x3c71ff(0x261)][_0x3c71ff(0x222)](r[_0x3c71ff(0x291)][_0x3c71ff(0x251)]);if(_0x55933e===-0x1&&_0x23553e>0x1){const _0x267e44=_0x14c424===r[_0x3c71ff(0x288)][_0x3c71ff(0x248)]?r['PivotTableValuePositionEnum']['Column']:_0x14c424,_0x498d89=_0x267e44===r[_0x3c71ff(0x288)][_0x3c71ff(0x2c7)]?r[_0x3c71ff(0x291)]['Row']:r['PivotTableFiledAreaEnum'][_0x3c71ff(0x258)];this[_0x3c71ff(0x261)][_0x3c71ff(0x271)](_0x267e44,this[_0x3c71ff(0x261)][_0x3c71ff(0x222)](_0x498d89));}}else{if(_0x90adf5===r[_0x3c71ff(0x291)][_0x3c71ff(0x2c7)]||_0x90adf5===r[_0x3c71ff(0x291)]['Column']){const _0x3b80ed=_0x509f26[_0x3c71ff(0x273)](),_0x5201dd=this[_0x3c71ff(0x261)][_0x3c71ff(0x29c)](_0x3b80ed);if(_0x5201dd&&(_0x5201dd==null?void 0x0:_0x5201dd[_0x3c71ff(0x207)]())===r[_0x3c71ff(0x2b8)]['date']){const _0x4b606e=_0x5201dd[_0x3c71ff(0x2d2)]();_0x4b606e&&this[_0x3c71ff(0x261)]['setFieldFormat'](_0x3b80ed,_0x4b606e);}}}return _0x509f26;}[_0x1d63cb(0x2b4)](_0x285239,_0x4dc761){const _0xccec08=_0x1d63cb,_0x35cb9f=this[_0xccec08(0x2c5)](_0x285239),_0x361fe8=this[_0xccec08(0x261)]['addFieldWithSourceId'](_0x35cb9f,r['PivotTableFiledAreaEnum'][_0xccec08(0x24a)]);return _0x361fe8[_0xccec08(0x28a)](_0x4dc761),_0x361fe8;}[_0x1d63cb(0x27d)](_0x4b4cdf,_0x99b3e){const _0x42634e=_0x1d63cb,_0x4f5431=this[_0x42634e(0x1f8)](_0x4b4cdf,r[_0x42634e(0x291)][_0x42634e(0x251)]);return _0x99b3e!=null&&_0x99b3e[_0x42634e(0x2a7)]&&_0x4f5431[_0x42634e(0x262)](_0x99b3e==null?void 0x0:_0x99b3e[_0x42634e(0x2a7)]),_0x4f5431;}[_0x1d63cb(0x2e5)](_0x558497){const _0x353981=_0x1d63cb,_0x2a6d28=this['_getSourceIdByName'](_0x558497);this['_pivot'][_0x353981(0x277)](_0x2a6d28)['forEach'](_0x3ffc96=>{const _0x15b7dc=_0x353981,_0x2e59c2=_0x3ffc96[_0x15b7dc(0x273)]();this[_0x15b7dc(0x261)][_0x15b7dc(0x1f3)](_0x2e59c2);});}['getResultByCalculate'](_0x281d63={}){const _0x5ad7a5=_0x1d63cb,_0x11dc93=this[_0x5ad7a5(0x261)][_0x5ad7a5(0x21f)](),{dataArr:_0x16bd90,dataArrWithSplit:_0x2ef29c}=le(this[_0x5ad7a5(0x261)],_0x11dc93,this['_isZhCN'],_0x281d63);return{'dataArr':_0x16bd90,'dataArrWithSplit':_0x2ef29c};}[_0x1d63cb(0x204)](_0x3f7c69){const _0x592f6e=_0x1d63cb;return this[_0x592f6e(0x261)][_0x592f6e(0x29d)]()[_0x3f7c69];}[_0x1d63cb(0x28b)](){const _0x37fb23=_0x1d63cb;this[_0x37fb23(0x261)][_0x37fb23(0x28b)]();}[_0x1d63cb(0x28d)](_0x196e42){const _0xf8a56d=_0x1d63cb;this[_0xf8a56d(0x261)][_0xf8a56d(0x28b)](_0x196e42);}[_0x1d63cb(0x280)](_0x7486ad){const _0x15bd1e=_0x1d63cb,_0x277e7d=this['_pivot'][_0x15bd1e(0x2d7)],_0x2d8bcb=_0x277e7d[_0x15bd1e(0x2c2)]()[_0x7486ad];if(_0x2d8bcb)return _0x277e7d['getFieldById'](_0x2d8bcb)[_0x15bd1e(0x207)]();}['getFieldDataTypeByFieldName'](_0x5af3f2){const _0x2b3bef=_0x1d63cb,_0x20620e=this[_0x2b3bef(0x2c5)](_0x5af3f2),_0x157af3=this[_0x2b3bef(0x261)]['dataFieldsCollection'][_0x2b3bef(0x2aa)](_0x20620e);return _0x157af3==null?void 0x0:_0x157af3[_0x2b3bef(0x207)]();}[_0x1d63cb(0x26b)](){const _0x31537e=_0x1d63cb,_0x4c0409={};return[[r[_0x31537e(0x291)][_0x31537e(0x2c7)],_0x31537e(0x295)],[r[_0x31537e(0x291)][_0x31537e(0x258)],_0x31537e(0x227)],[r[_0x31537e(0x291)][_0x31537e(0x24a)],'filter'],[r[_0x31537e(0x291)]['Value'],_0x31537e(0x276)]][_0x31537e(0x27c)](_0x181d57=>{const _0x9ecf89=_0x31537e,[_0x520ef3,_0x3383e8]=_0x181d57;this['_pivot'][_0x9ecf89(0x2ac)](_0x520ef3,_0x12c697=>{const _0x58dcc5=_0x9ecf89;_0x4c0409[_0x3383e8]||(_0x4c0409[_0x3383e8]=[]),_0x4c0409[_0x3383e8][_0x58dcc5(0x2a4)](_0x12c697[_0x58dcc5(0x25e)]());});}),Object[_0x31537e(0x27a)](_0x4c0409)[_0x31537e(0x267)]>0x0?_0x4c0409:void 0x0;}[_0x1d63cb(0x25d)](){return this['_sourceData'];}[_0x1d63cb(0x217)](_0x54dceb){const _0x4f1014=_0x1d63cb;this[_0x4f1014(0x261)][_0x4f1014(0x217)](_0x54dceb);}[_0x1d63cb(0x2b3)](){const _0x3938b5=_0x1d63cb;this['_pivot'][_0x3938b5(0x2a2)]();}}class ve extends r[_0x1d63cb(0x27e)]{[_0x1d63cb(0x2ca)](_0x369e01){const _0x251d19=_0x1d63cb;if(Array['isArray'](_0x369e01)&&_0x369e01[_0x251d19(0x267)]>0x0){const _0x5b905a=[],_0x1dfbda=_0x369e01[0x0],_0x304115={},_0x539ac8=_0x369e01[0x1];for(let _0x7e8681=0x0;_0x7e8681<_0x539ac8[_0x251d19(0x267)];_0x7e8681++){const _0x3e47fe=_0x539ac8[_0x7e8681];if(typeof _0x3e47fe==_0x251d19(0x22f)&&_0x3e47fe instanceof Date)_0x304115[_0x7e8681]=Z;else{if(typeof _0x3e47fe==_0x251d19(0x2e3)){const _0x1094cc=new Date(_0x3e47fe);Number[_0x251d19(0x265)](_0x1094cc[_0x251d19(0x239)]())||(_0x304115[_0x7e8681]=Z);}}}for(let _0xcf46aa=0x1;_0xcf46aa<_0x369e01['length'];_0xcf46aa++){const _0x3059e7=_0x369e01[_0xcf46aa],_0x40e765=[];for(let _0x391c5c=0x0;_0x391c5c<_0x3059e7[_0x251d19(0x267)];_0x391c5c++)if(_0x304115[_0x391c5c]){const _0x1a48ff=_0x3059e7[_0x391c5c],_0x4e5c5a=typeof _0x1a48ff=='object'&&_0x1a48ff instanceof Date?_0x1a48ff:new Date(_0x1a48ff),_0x3d2a9b={'v':de(_0x4e5c5a[_0x251d19(0x239)]()),'f':_0x304115[_0x391c5c]};_0x40e765[_0x251d19(0x2a4)](_0x3d2a9b);}else _0x40e765[_0x251d19(0x2a4)](_0x3059e7[_0x391c5c]);_0x5b905a[_0x251d19(0x2a4)](_0x40e765);}return{'header':_0x1dfbda,'data':_0x5b905a};}else throw new Error(_0x251d19(0x2ad));}}class ce extends A['FUniver']{[_0x1d63cb(0x246)](_0x4bad72){const _0x4b13ec=_0x1d63cb,_0x4e6814=_0x4bad72[_0x4b13ec(0x292)](m['ICommandService']);this[_0x4b13ec(0x21b)](this['Event']['BeforePivotTableAdd'],()=>_0x4e6814[_0x4b13ec(0x221)](_0x3256ac=>{const _0x60ef3d=_0x4b13ec;switch(_0x3256ac['id']){case l[_0x60ef3d(0x24f)]['id']:{const _0x4f012e=_0x3256ac[_0x60ef3d(0x1f6)];this[_0x60ef3d(0x293)](_0x4f012e);break;}}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x23b)],()=>_0x4e6814[_0x4b13ec(0x221)](_0x4414c4=>{const _0x2a1c30=_0x4b13ec;switch(_0x4414c4['id']){case l[_0x2a1c30(0x2dc)]['id']:case l[_0x2a1c30(0x250)]['id']:{const _0x4885d4=_0x4414c4[_0x2a1c30(0x1f6)];this[_0x2a1c30(0x2da)](_0x4885d4);break;}}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x21e)],()=>_0x4e6814['onCommandExecuted'](_0x25c718=>{const _0x22dcf0=_0x4b13ec;if(_0x25c718['id']===l[_0x22dcf0(0x2dc)]['id']||_0x25c718['id']===l[_0x22dcf0(0x250)]['id']){const _0x39f998=_0x25c718[_0x22dcf0(0x1f6)];this[_0x22dcf0(0x2c9)](_0x39f998);}})),this[_0x4b13ec(0x21b)](this['Event']['PivotTableMoved'],()=>_0x4e6814[_0x4b13ec(0x22c)](_0xf73e38=>{const _0x706625=_0x4b13ec;if(_0xf73e38['id']===l[_0x706625(0x24f)]['id']){const _0x2190a3=_0xf73e38['params'];this['_fireMovedPivotTableEvent'](_0x2190a3);}})),this['registerEventHandler'](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x2d0)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x539921=>{const _0x29f5ea=_0x4b13ec;if(_0x539921['id']===l[_0x29f5ea(0x238)]['id']){const _0x4c7ac2=_0x539921[_0x29f5ea(0x1f6)];this[_0x29f5ea(0x223)](_0x4c7ac2);}})),this['registerEventHandler'](this['Event'][_0x4b13ec(0x2dd)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x2c3d65=>{const _0x50123a=_0x4b13ec;if(_0x2c3d65['id']===l[_0x50123a(0x2e8)]['id']){const _0x50535c=_0x2c3d65['params'];this['_firePivotTableFieldAddedEvent'](_0x50535c);}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x1f1)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x1853fc=>{const _0x5e042d=_0x4b13ec;if(_0x1853fc['id']===l['RemovePivotFieldCommand']['id']){const _0x15a456=_0x1853fc[_0x5e042d(0x1f6)];this[_0x5e042d(0x205)](_0x15a456);}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)]['PivotTableFieldMoved'],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x2c7acb=>{const _0x200176=_0x4b13ec;if(_0x2c7acb['id']===l[_0x200176(0x2a0)]['id']){const _0x16582a=_0x2c7acb[_0x200176(0x1f6)];this[_0x200176(0x216)](_0x16582a);}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x289)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x296870=>{const _0x32c0a9=_0x4b13ec;if(_0x296870['id']===l[_0x32c0a9(0x28c)]['id']){const _0x2a7260=_0x296870[_0x32c0a9(0x1f6)];this[_0x32c0a9(0x298)](_0x2a7260);}})),this['registerEventHandler'](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x25c)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x20154e=>{const _0x564da8=_0x4b13ec;if(_0x20154e['id']===l[_0x564da8(0x2e2)]['id']){const _0x5673a3=_0x20154e[_0x564da8(0x1f6)];this[_0x564da8(0x24b)](_0x5673a3);}})),this['registerEventHandler'](this['Event'][_0x4b13ec(0x240)],()=>_0x4e6814['onCommandExecuted'](_0x7e9f8a=>{const _0x46d134=_0x4b13ec;if(_0x7e9f8a['id']===l['SetPivotSortCommand']['id']){const _0x8483eb=_0x7e9f8a[_0x46d134(0x1f6)];this[_0x46d134(0x24c)](_0x8483eb);}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x201)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x175afb=>{const _0x5cbc9e=_0x4b13ec;if(_0x175afb['id']===l[_0x5cbc9e(0x2b9)]['id']){const _0x1e7424=_0x175afb[_0x5cbc9e(0x1f6)];this[_0x5cbc9e(0x202)](_0x1e7424);}})),this[_0x4b13ec(0x21b)](this[_0x4b13ec(0x2ea)][_0x4b13ec(0x1f2)],()=>_0x4e6814[_0x4b13ec(0x22c)](_0x51b966=>{const _0x29251a=_0x4b13ec;if(_0x51b966['id']===l[_0x29251a(0x255)]['id']){const _0x3d19d8=_0x51b966[_0x29251a(0x1f6)];this[_0x29251a(0x2b0)](_0x3d19d8);}}));const _0xdb5a2f=_0x4bad72[_0x4b13ec(0x292)](m['LifecycleService']);this[_0x4b13ec(0x215)](_0xdb5a2f[_0x4b13ec(0x2cc)]['subscribe'](_0x231adc=>{const _0x282cbd=_0x4b13ec;if(_0x231adc===m['LifecycleStages'][_0x282cbd(0x23e)]){const _0x5cdda1=_0x4bad72[_0x282cbd(0x292)](l[_0x282cbd(0x29e)]);this[_0x282cbd(0x21b)](this[_0x282cbd(0x2ea)][_0x282cbd(0x2ec)],()=>_0x5cdda1[_0x282cbd(0x1fc)][_0x282cbd(0x209)](ie['auditTime'](0x32))[_0x282cbd(0x296)](_0x45203a=>{const _0x424a0e=_0x282cbd;this[_0x424a0e(0x1f0)](_0x45203a);}));}}));}[_0x1d63cb(0x266)](_0x319010){const _0x208002=_0x1d63cb;if(_0x319010){const {unitId:_0x4e894c,subUnitId:_0x7ef8a8,pivotTableId:_0x2253eb,dataFieldId:_0x429c6e,fieldArea:_0x440b84,index:_0x57934a}=_0x319010;this[_0x208002(0x219)](this[_0x208002(0x2ea)][_0x208002(0x2dd)],{'unitId':_0x4e894c,'subUnitId':_0x7ef8a8,'pivotTableId':_0x2253eb,'dataFieldId':_0x429c6e,'fieldArea':_0x440b84,'index':_0x57934a});}}[_0x1d63cb(0x205)](_0x3d6532){const _0xce799c=_0x1d63cb;if(_0x3d6532){const {unitId:_0x4bea03,subUnitId:_0x1c98b5,pivotTableId:_0x4928eb,fieldIds:_0x15f582}=_0x3d6532;this[_0xce799c(0x219)](this['Event'][_0xce799c(0x1f1)],{'unitId':_0x4bea03,'subUnitId':_0x1c98b5,'pivotTableId':_0x4928eb,'fieldIds':_0x15f582[_0xce799c(0x27f)]()});}}[_0x1d63cb(0x216)](_0x2df227){const _0x47680f=_0x1d63cb;if(_0x2df227){const {unitId:_0x214cfb,subUnitId:_0x440c51,pivotTableId:_0x1a6c90,fieldId:_0x46680d,area:_0x13fc47,index:_0x460692}=_0x2df227;this['fireEvent'](this[_0x47680f(0x2ea)][_0x47680f(0x263)],{'unitId':_0x214cfb,'subUnitId':_0x440c51,'pivotTableId':_0x1a6c90,'fieldId':_0x46680d,'area':_0x13fc47,'index':_0x460692});}}[_0x1d63cb(0x298)](_0x3cb7a9){const _0x1cefd2=_0x1d63cb;if(_0x3cb7a9){const {unitId:_0x8287d8,subUnitId:_0x32796f,row:_0x5c143c,col:_0xac2d9c,collapse:_0x600e5f}=_0x3cb7a9;this[_0x1cefd2(0x219)](this[_0x1cefd2(0x2ea)][_0x1cefd2(0x289)],{'unitId':_0x8287d8,'subUnitId':_0x32796f,'row':_0x5c143c,'col':_0xac2d9c,'collapse':_0x600e5f});}}['_firePivotTableFieldFilterChangedEvent'](_0x47d161){const _0x3459ae=_0x1d63cb;if(_0x47d161){const {unitId:_0x521335,subUnitId:_0x1182bb,pivotTableId:_0x28b0a8,tableFieldId:_0x35d307,items:_0x51b4e4,isAll:_0x307c14}=_0x47d161;this[_0x3459ae(0x219)](this[_0x3459ae(0x2ea)][_0x3459ae(0x25c)],{'unitId':_0x521335,'subUnitId':_0x1182bb,'pivotTableId':_0x28b0a8,'tableFieldId':_0x35d307,'items':_0x51b4e4[_0x3459ae(0x27f)](),'isAll':_0x307c14});}}['_firePivotTableFieldSortChangedEvent'](_0x4d0ed6){const _0x4bf399=_0x1d63cb;if(_0x4d0ed6){const {unitId:_0x332bdb,subUnitId:_0xcf8c66,pivotTableId:_0x15d9de,tableFieldId:_0x2f9e9d,info:_0x4ce07a}=_0x4d0ed6;this[_0x4bf399(0x219)](this[_0x4bf399(0x2ea)][_0x4bf399(0x240)],{'unitId':_0x332bdb,'subUnitId':_0xcf8c66,'pivotTableId':_0x15d9de,'tableFieldId':_0x2f9e9d,'info':{..._0x4ce07a}});}}[_0x1d63cb(0x202)](_0x11b516){const _0x1cbd1a=_0x1d63cb;if(_0x11b516){const {unitId:_0x1ba4a0,subUnitId:_0xa7bace,tableFieldId:_0x3f7e50,pivotTableId:_0x4cba28,displayName:_0x1785f0,format:_0x482174,subtotalType:_0x4f246d,tableFieldInfo:_0x487e31,dataFieldInfo:_0x31897}=_0x11b516;this['fireEvent'](this['Event'][_0x1cbd1a(0x201)],{'unitId':_0x1ba4a0,'subUnitId':_0xa7bace,'tableFieldId':_0x3f7e50,'pivotTableId':_0x4cba28,'displayName':_0x1785f0,'format':_0x482174,'subtotalType':_0x4f246d,'tableFieldInfo':_0x487e31,'dataFieldInfo':_0x31897});}}[_0x1d63cb(0x2b0)](_0x19cc00){const _0x13edcf=_0x1d63cb;if(_0x19cc00){const {pivotTableId:_0x32e726,position:_0x5dcd71,index:_0x1c0eaf}=_0x19cc00;this[_0x13edcf(0x219)](this[_0x13edcf(0x2ea)][_0x13edcf(0x1f2)],{'pivotTableId':_0x32e726,'position':_0x5dcd71,'index':_0x1c0eaf});}}[_0x1d63cb(0x2c9)](_0x243b32){const _0xe73c4d=_0x1d63cb;if(_0x243b32){const {positionType:_0x4fbb15,pivotTableId:_0x1ef0ce,pivotTableConfig:_0x1f7be5}=_0x243b32,{targetCellInfo:_0x509c1b,sourceRangeInfo:_0x3505e2}=_0x1f7be5,{unitId:_0x4bb0b5}=_0x509c1b;this[_0xe73c4d(0x219)](this[_0xe73c4d(0x2ea)]['PivotTableAdded'],{'unitId':_0x4bb0b5,'positionType':_0x4fbb15,'pivotTableId':_0x1ef0ce,'sourceRangeInfo':{'startRow':_0x3505e2[_0xe73c4d(0x2de)][_0xe73c4d(0x20a)],'endRow':_0x3505e2[_0xe73c4d(0x2de)]['endRow'],'startColumn':_0x3505e2[_0xe73c4d(0x2de)][_0xe73c4d(0x279)],'endColumn':_0x3505e2[_0xe73c4d(0x2de)][_0xe73c4d(0x235)],'unitId':_0x3505e2[_0xe73c4d(0x2cf)],'subUnitId':_0x3505e2[_0xe73c4d(0x20e)],'sheetName':_0x3505e2[_0xe73c4d(0x290)]},'targetCellInfo':{'row':_0x509c1b[_0xe73c4d(0x295)],'column':_0x509c1b[_0xe73c4d(0x218)],'sheetName':_0x509c1b[_0xe73c4d(0x290)],'unitId':_0x509c1b[_0xe73c4d(0x2cf)],'subUnitId':_0x509c1b['subUnitId']}});}}[_0x1d63cb(0x2da)](_0x21d4ca){const _0x3b2634=_0x1d63cb;if(_0x21d4ca){const {positionType:_0x293b10,pivotTableId:_0x252802,pivotTableConfig:_0x1107b8}=_0x21d4ca,{targetCellInfo:_0x523a01,sourceRangeInfo:_0x1423af}=_0x1107b8,{unitId:_0x1ee34d}=_0x523a01,_0x48ed51={'unitId':_0x1ee34d,'positionType':_0x293b10,'pivotTableId':_0x252802,'sourceRangeInfo':{'startRow':_0x1423af[_0x3b2634(0x2de)][_0x3b2634(0x20a)],'endRow':_0x1423af[_0x3b2634(0x2de)][_0x3b2634(0x2c4)],'startColumn':_0x1423af[_0x3b2634(0x2de)]['startColumn'],'endColumn':_0x1423af[_0x3b2634(0x2de)][_0x3b2634(0x235)],'unitId':_0x1423af[_0x3b2634(0x2cf)],'subUnitId':_0x1423af[_0x3b2634(0x20e)],'sheetName':_0x1423af[_0x3b2634(0x290)]},'targetCellInfo':{'row':_0x523a01['row'],'column':_0x523a01[_0x3b2634(0x218)],'sheetName':_0x523a01['sheetName'],'unitId':_0x523a01[_0x3b2634(0x2cf)],'subUnitId':_0x523a01[_0x3b2634(0x20e)]},'cancel':!0x1};if(this[_0x3b2634(0x219)](this['Event'][_0x3b2634(0x264)],_0x48ed51),_0x48ed51[_0x3b2634(0x1fb)])throw new Error('Before\x20add\x20pivot\x20table\x20event\x20canceled');}}['_firePivotTableRemovedEvent'](_0x234b05){const _0x34889c=_0x1d63cb;if(_0x234b05){const {unitId:_0x37d733,pivotTableId:_0x67ca9}=_0x234b05;this[_0x34889c(0x219)](this[_0x34889c(0x2ea)]['PivotTableRemoved'],{'unitId':_0x37d733,'pivotTableId':_0x67ca9});}}[_0x1d63cb(0x293)](_0x25ab17){const _0x569fee=_0x1d63cb;if(_0x25ab17){const {originTargetInfo:_0x2cec39,pivotTableId:_0x32bf0f,targetCellInfo:_0x2918d0}=_0x25ab17,{unitId:_0xab623e}=_0x2cec39,_0x3f85a8=this[_0x569fee(0x22a)][_0x569fee(0x292)](l[_0x569fee(0x2bb)])['getPivotTableConfig'](_0x2cec39[_0x569fee(0x2cf)],_0x2cec39['subUnitId'],_0x32bf0f);if(!_0x3f85a8)return;const _0x535408={'unitId':_0xab623e,'pivotTableId':_0x32bf0f,'originTargetInfo':{'row':_0x3f85a8['targetCellInfo'][_0x569fee(0x295)],'column':_0x3f85a8[_0x569fee(0x29f)][_0x569fee(0x218)],'unitId':_0x3f85a8['targetCellInfo'][_0x569fee(0x2cf)],'subUnitId':_0x3f85a8[_0x569fee(0x29f)][_0x569fee(0x20e)]},'targetCellInfo':{'row':_0x2918d0['row'],'column':_0x2918d0[_0x569fee(0x218)],'unitId':_0x2918d0[_0x569fee(0x2cf)],'subUnitId':_0x2918d0[_0x569fee(0x20e)]},'cancel':!0x1};if(this[_0x569fee(0x219)](this[_0x569fee(0x2ea)][_0x569fee(0x23b)],_0x535408),_0x535408[_0x569fee(0x1fb)])throw new Error('Before\x20move\x20pivot\x20table\x20event\x20canceled');}}[_0x1d63cb(0x269)](_0x5c73d1){const _0x198190=_0x1d63cb;if(_0x5c73d1){const {originTargetInfo:_0x7f557c,pivotTableId:_0x2d1f49,targetCellInfo:_0xee707}=_0x5c73d1,{unitId:_0x48916f}=_0x7f557c,_0x25dcc4=this[_0x198190(0x22a)][_0x198190(0x292)](l[_0x198190(0x2bb)])[_0x198190(0x2d5)](_0x7f557c[_0x198190(0x2cf)],_0x7f557c[_0x198190(0x20e)],_0x2d1f49);if(!_0x25dcc4)return;this[_0x198190(0x219)](this['Event'][_0x198190(0x2e7)],{'unitId':_0x48916f,'pivotTableId':_0x2d1f49,'originTargetInfo':{'row':_0x25dcc4[_0x198190(0x29f)][_0x198190(0x295)],'column':_0x25dcc4[_0x198190(0x29f)]['col'],'unitId':_0x25dcc4['targetCellInfo'][_0x198190(0x2cf)],'subUnitId':_0x25dcc4[_0x198190(0x29f)][_0x198190(0x20e)]},'targetCellInfo':{'row':_0xee707['row'],'column':_0xee707['col'],'unitId':_0xee707['unitId'],'subUnitId':_0xee707[_0x198190(0x20e)]}});}}[_0x1d63cb(0x1f0)](_0x5df727){const _0x5ec2dc=_0x1d63cb;if(_0x5df727){const {unitId:_0x3b7cac,subUnitId:_0xd21b,pivotTableId:_0x2d4f71,type:_0x56d96a,rangesCache:_0x5b5ab3,isEmpty:_0x14540f}=_0x5df727;this[_0x5ec2dc(0x219)](this[_0x5ec2dc(0x2ea)]['PivotTableRendered'],{'unitId':_0x3b7cac,'subUnitId':_0xd21b,'pivotTableId':_0x2d4f71,'changeType':_0x56d96a,'isEmpty':!!_0x14540f,'rangeInfo':_0x5b5ab3});}}[_0x1d63cb(0x270)](_0x1ff073,_0x26072b){const _0x41915d=_0x1d63cb,_0x20830d=(_0x26072b?new _0x26072b():new ve())[_0x41915d(0x243)]('data',_0x1ff073),_0x4177e6=_0x1ff073[0x0];_0x20830d[_0x41915d(0x2c2)]()['forEach']((_0x153238,_0x49f874)=>{const _0x381f4f=_0x41915d;_0x20830d[_0x381f4f(0x27b)](_0x153238,_0x4177e6[_0x49f874]);});const _0x18b5df=r[_0x41915d(0x2e1)](0x8),_0x2bec92=new r[(_0x41915d(0x1f7))](_0x20830d,void 0x0,_0x18b5df);return new re(this['_injector'],_0x2bec92,_0x1ff073,_0x18b5df);}}A['FUniver']['extend'](ce);