@univerjs-pro/sheets-pivot 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/common/const.d.ts +40 -40
  41. package/lib/types/controllers/const.d.ts +1 -1
  42. package/lib/umd/facade.js +1 -1
  43. package/lib/umd/index.js +1 -1
  44. package/lib/umd/locale/ca-ES.js +1 -1
  45. package/lib/umd/locale/en-US.js +1 -1
  46. package/lib/umd/locale/es-ES.js +1 -1
  47. package/lib/umd/locale/fa-IR.js +1 -1
  48. package/lib/umd/locale/fr-FR.js +1 -1
  49. package/lib/umd/locale/ja-JP.js +1 -1
  50. package/lib/umd/locale/ko-KR.js +1 -1
  51. package/lib/umd/locale/ru-RU.js +1 -1
  52. package/lib/umd/locale/vi-VN.js +1 -1
  53. package/lib/umd/locale/zh-CN.js +1 -1
  54. package/lib/umd/locale/zh-TW.js +1 -1
  55. package/package.json +10 -10
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3575a0,_0x187735){const _0x168751=_0xe5fb,_0x3261cb=_0x3575a0();while(!![]){try{const _0x5ebbd3=parseInt(_0x168751(0x331))/0x1+parseInt(_0x168751(0x342))/0x2*(-parseInt(_0x168751(0x1ca))/0x3)+parseInt(_0x168751(0x336))/0x4*(parseInt(_0x168751(0x256))/0x5)+parseInt(_0x168751(0x1b9))/0x6+-parseInt(_0x168751(0x39b))/0x7*(parseInt(_0x168751(0x1e7))/0x8)+parseInt(_0x168751(0x130))/0x9+-parseInt(_0x168751(0x245))/0xa*(parseInt(_0x168751(0x1a7))/0xb);if(_0x5ebbd3===_0x187735)break;else _0x3261cb['push'](_0x3261cb['shift']());}catch(_0x234bff){_0x3261cb['push'](_0x3261cb['shift']());}}}(_0x4ee1,0x5ad7d),function(_0x48a626,_0x10c219){const _0x51b710=_0xe5fb;typeof exports==_0x51b710(0x412)&&typeof module<'u'?_0x10c219(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define=='function'&&define[_0x51b710(0x139)]?define([_0x51b710(0x227),_0x51b710(0x210),_0x51b710(0x2f3),_0x51b710(0x321),_0x51b710(0x2c3),_0x51b710(0x1e8),_0x51b710(0x3fe),_0x51b710(0x2e4),'@univerjs/rpc',_0x51b710(0x352)],_0x10c219):(_0x48a626=typeof globalThis<'u'?globalThis:_0x48a626||self,_0x10c219(_0x48a626['UniverProSheetsPivot']={},_0x48a626['UniverProEnginePivot'],_0x48a626[_0x51b710(0x1f6)],_0x48a626[_0x51b710(0x228)],_0x48a626[_0x51b710(0x386)],_0x48a626[_0x51b710(0x1e8)],_0x48a626[_0x51b710(0x23c)],_0x48a626[_0x51b710(0x3d5)],_0x48a626[_0x51b710(0x427)],_0x48a626[_0x51b710(0x184)]));}(this,function(_0x47953f,_0x16b0d8,_0x49f92f,_0x3a3769,_0x29b248,_0x3818d9,_0x3e3faf,_0x4f3d47,_0x347967,_0x276b80){'use strict';const _0x5565f1=_0xe5fb;var _0x51382a=Object['defineProperty'],_0x126888=(_0x5c1062,_0x5bae92,_0x4738df)=>_0x5bae92 in _0x5c1062?_0x51382a(_0x5c1062,_0x5bae92,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4738df}):_0x5c1062[_0x5bae92]=_0x4738df,_0x246801=(_0x23f8f6,_0xfdd742,_0x3168a3)=>_0x126888(_0x23f8f6,typeof _0xfdd742!=_0x5565f1(0x2b3)?_0xfdd742+'':_0xfdd742,_0x3168a3);const _0x3e4104=Number['parseInt'](0x69216348),_0x240c1f=0x10,_0x5078db=0x1,_0x5eb740='SHEET_PIVOT_TABLE_PLUGIN',_0x29054f=0x1,_0x35615d=_0x5565f1(0x1f1),_0x58bcc4=_0x5565f1(0x374),_0x34e63c=_0x5565f1(0x13b),_0x1ee523=_0x5565f1(0x3a1),_0x3698da=_0x5565f1(0x3a1),_0x43e74a=_0x5565f1(0x3e2),_0x346460=_0x5565f1(0x218),_0x471cb5='#FFFFFF',_0x177e2f=_0x5565f1(0x141),_0x253ac9=_0x5565f1(0x218),_0x507851=_0x5565f1(0x3d0),_0x2e8d6c=_0x5565f1(0x1c4),_0x1fdf30=0xe,_0x4c45a2=0x6;var _0x3ad7fb=(_0x449603=>(_0x449603[_0x5565f1(0x1fd)]='existing',_0x449603[_0x5565f1(0x22b)]=_0x5565f1(0x1d5),_0x449603))(_0x3ad7fb||{});const _0x1e7e8c={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x576efe=0x1e,_0x11b34c={'b':{'s':0x1,'cl':{'rgb':_0x34e63c}},'l':{'s':0x1,'cl':{'rgb':_0x34e63c}},'r':{'s':0x1,'cl':{'rgb':_0x34e63c}},'t':{'s':0x1,'cl':{'rgb':_0x34e63c}}},_0x42d7b5={'bg':{'rgb':_0x35615d},'ht':0x2,'vt':0x2,'tb':0x1},_0x1ff51d={'bg':{'rgb':_0x58bcc4},'ht':0x2,'vt':0x2,'tb':0x1},_0x136b96={'rowStyle':{'bg':{'rgb':_0x2e8d6c},'bd':_0x11b34c,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x253ac9},'bd':null,'cl':{'rgb':_0x507851},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x11b34c,'bg':{'rgb':_0x177e2f},'vt':0x2},'cornerStyle':{'bd':_0x11b34c,'bg':{'rgb':_0x43e74a},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x11b34c,'bg':{'rgb':_0x1ee523},'vt':0x2},'leafStyle':{'bd':_0x11b34c,'bg':{'rgb':_0x3698da},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x346460},'cl':{'rgb':_0x471cb5},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x11b34c,'vt':0x2}};function _0x411eb8(_0x35ff95,_0x55a3f3,_0x4b0c87){const _0x51aa36=_0x5565f1,_0x75a7e2=_0x35ff95[_0x51aa36(0x326)](_0x49f92f['LocaleService']),_0x42329a=_0x4b0c87[_0x51aa36(0x36c)]('_');switch(_0x55a3f3){case _0x16b0d8[_0x51aa36(0x3ba)]['Year']:return _0x75a7e2['t'](_0x51aa36(0x24b),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)][_0x51aa36(0x230)]:return _0x75a7e2['t'](_0x51aa36(0x181),..._0x42329a);case _0x16b0d8['PivotDateGroupFieldDateTypeEnum'][_0x51aa36(0x14e)]:return _0x75a7e2['t'](_0x51aa36(0x1a1),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)][_0x51aa36(0x360)]:return _0x75a7e2['t'](_0x51aa36(0x33a),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)][_0x51aa36(0x3c0)]:return _0x75a7e2['t'](_0x51aa36(0x32d),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)][_0x51aa36(0x253)]:return _0x75a7e2['t'](_0x51aa36(0x340),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)][_0x51aa36(0x140)]:return _0x75a7e2['t'](_0x51aa36(0x2b6),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)][_0x51aa36(0x293)]:return _0x75a7e2['t'](_0x51aa36(0x1a5),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)]['YearMonthDate']:return _0x75a7e2['t'](_0x51aa36(0x3bc),..._0x42329a);case _0x16b0d8[_0x51aa36(0x3ba)]['YearQuarter']:return _0x75a7e2['t'](_0x51aa36(0x217),..._0x42329a);}return'';}const _0x4c26a3=(_0x17fe4f,_0xee8c93,_0x5baed2,_0x131d5a)=>{const _0x5600c0=_0x5565f1;let _0x265aa0;const _0x5ed5dd=_0x17fe4f[_0x5600c0(0x326)](_0x49f92f[_0x5600c0(0x26f)])[_0x5600c0(0x244)](_0x49f92f[_0x5600c0(0x1b7)][_0x5600c0(0x3da)]);if(!_0x5ed5dd)return null;const _0x535ca9=_0x5ed5dd[_0x5600c0(0x2dd)]();let _0x1d1bf1;if(_0x5baed2&&(_0x1d1bf1=_0x535ca9[_0x5600c0(0x3c9)](_0x5baed2)),_0xee8c93!=null&&_0xee8c93['v']||(_0xee8c93==null?void 0x0:_0xee8c93['v'])===0x0){_0x265aa0||(_0x265aa0={});const _0x3ffdb2=_0x266eeb(_0xee8c93['v']);typeof _0x3ffdb2=='number'?_0x265aa0['t']=_0x49f92f[_0x5600c0(0x183)]['NUMBER']:typeof _0x3ffdb2==_0x5600c0(0x2fa)&&(_0x265aa0['t']=_0x49f92f[_0x5600c0(0x183)]['STRING']),_0x265aa0['v']=_0x3ffdb2;}if((_0xee8c93!=null&&_0xee8c93['i']||(_0xee8c93==null?void 0x0:_0xee8c93['i'])===0x0)&&(_0x265aa0||(_0x265aa0={}),_0x265aa0['fi']=_0xee8c93['i']),_0xee8c93!=null&&_0xee8c93['s']&&(_0x265aa0||(_0x265aa0={}),_0x265aa0[_0x5600c0(0x403)]=_0xee8c93['s']),_0x5baed2&&(_0x265aa0||(_0x265aa0={}),_0x265aa0['s']=_0x1d1bf1),_0x131d5a&&_0x265aa0!=null&&_0x265aa0['v']&&_0x265aa0['pbt']!==_0x16b0d8[_0x5600c0(0x3f9)][_0x5600c0(0x367)]&&_0x265aa0[_0x5600c0(0x403)]!==_0x16b0d8[_0x5600c0(0x3f9)][_0x5600c0(0x366)]){const _0x41989d=String(_0x265aa0['v']),{dateType:_0x9c86bc}=_0x131d5a;_0x265aa0['v']=_0x411eb8(_0x17fe4f,_0x9c86bc,_0x41989d),_0x265aa0['t']=_0x49f92f[_0x5600c0(0x183)][_0x5600c0(0x3ca)];}return _0x265aa0;},_0x57f126=(_0x40f466,_0x367868,_0x1c3e45,_0x4a8b57)=>{const _0x28181a=_0x5565f1;var _0x555f74,_0x2ec35a,_0x41d187,_0x2551fd,_0x597951,_0x2f21df,_0x4563c7,_0x1f7c33,_0x305527,_0xc3bd0,_0x31af7d,_0x37bccb,_0x52b0cf,_0x39448d;const _0x3df2fc=_0x1c3e45[_0x28181a(0x1d0)],{cornerView:_0x30d5cb,rowView:_0x17556b,colView:_0x3b0c81,dataView:_0x19557f,pageView:_0x804050,formatMap:_0x3d2c20,groupInfo:_0x170fb2}=_0x367868,{row:_0x406353,col:_0xbfe3ac}=_0x3df2fc,_0x1375ea=new _0x49f92f[(_0x28181a(0x38d))](),_0x16df47={},_0x212297={},_0x5b917a={},_0x38f7ac={},_0x1d1075={};let _0x1ed49c=_0x406353,_0x44f288=_0xbfe3ac;Object['keys'](_0x804050['data'])['forEach'](_0x1f0462=>{const _0x539e18=_0x28181a;Object[_0x539e18(0x37a)](_0x804050[_0x539e18(0x2c1)][Number(_0x1f0462)])['forEach'](_0x27198e=>{const _0x2d69de=_0x539e18,_0x1ad597={..._0x804050[_0x2d69de(0x2c1)][Number(_0x1f0462)][Number(_0x27198e)]};_0x1375ea[_0x2d69de(0x3c9)](Number(_0x1f0462)+_0x1ed49c,Number(_0x27198e)+_0x44f288,_0x4c26a3(_0x40f466,_0x1ad597,_0x136b96[_0x2d69de(0x2b2)]));});});const _0x5575bf=Object[_0x28181a(0x37a)](_0x804050[_0x28181a(0x2c1)])['length'];_0x1ed49c+=_0x5575bf+(_0x5575bf?_0x29054f:0x0);const _0x5ccbdc=_0x30d5cb[_0x28181a(0x2fb)](),_0x1b347f=_0x30d5cb['getColCount']();for(let _0xb134ad=0x0;_0xb134ad<_0x5ccbdc;_0xb134ad++)for(let _0x1be11b=0x0;_0x1be11b<_0x1b347f;_0x1be11b++){const _0x1b12ed={...(_0x2ec35a=(_0x555f74=_0x30d5cb[_0x28181a(0x2c1)])==null?void 0x0:_0x555f74[_0xb134ad])==null?void 0x0:_0x2ec35a[_0x1be11b]};_0x1b12ed&&((_0x41d187=_0x17556b[_0x28181a(0x2cc)][_0x1be11b])!=null&&_0x41d187[_0x28181a(0x17d)])&&_0x1be11b===_0x1b347f-0x1&&_0xb134ad===_0x5ccbdc-0x1&&(_0x1b12ed['v']=''+_0x4a8b57[_0x28181a(0x31c)]),_0x1375ea[_0x28181a(0x3c9)](_0xb134ad+_0x1ed49c,_0x1be11b+_0x44f288,_0x4c26a3(_0x40f466,_0x1b12ed,_0x136b96['cornerStyle']));}for(let _0x3e9752=0x0;_0x3e9752<_0x30d5cb[_0x28181a(0x40a)]['length'];_0x3e9752++)_0x30d5cb[_0x28181a(0x40a)][_0x3e9752]&&(_0x5b917a[''+(_0x3e9752+_0x44f288)]=_0x30d5cb[_0x28181a(0x40a)][_0x3e9752]);_0x44f288+=_0x1b347f;const _0x554be2=_0x3b0c81[_0x28181a(0x2cc)],_0x2c71e6=_0x3b0c81[_0x28181a(0x1ef)]()>=0x0?_0x3b0c81[_0x28181a(0x1ef)]()+0x1:0x0,_0x39a461=_0x3b0c81[_0x28181a(0x1f8)]()>=0x0?_0x3b0c81[_0x28181a(0x1f8)]()+0x1:0x0;for(let _0x58d2b3=0x0;_0x58d2b3<_0x39a461;_0x58d2b3++){for(let _0x3f458f=0x0;_0x3f458f<_0x2c71e6;_0x3f458f++){const _0x57ce03={...(_0x597951=(_0x2551fd=_0x3b0c81[_0x28181a(0x2c1)])==null?void 0x0:_0x2551fd[_0x3f458f])==null?void 0x0:_0x597951[_0x58d2b3]},_0x16b1e1=(_0x2f21df=_0x554be2[_0x3f458f])==null?void 0x0:_0x2f21df[_0x28181a(0x292)],_0x3b7ce4=_0x3d2c20[_0x16b1e1],_0x5365a3=_0x170fb2[_0x16b1e1];_0x57ce03&&(_0x57ce03['v']=_0xb1d466(_0x57ce03,_0x3f458f===0x0&&((_0x4563c7=_0x3b0c81[_0x28181a(0x365)](_0x58d2b3+0x1))==null?void 0x0:_0x4563c7['isValue']),_0x3b7ce4,_0x4a8b57));let _0x4391df;_0x3b7ce4?_0x4391df={..._0x136b96['colStyle'],'n':{'pattern':_0x3b7ce4}}:_0x4391df={..._0x136b96[_0x28181a(0x308)]},_0x1375ea[_0x28181a(0x3c9)](_0x3f458f+_0x1ed49c,_0x58d2b3+_0x44f288,_0x4c26a3(_0x40f466,_0x57ce03,_0x4391df,_0x5365a3));}_0x3b0c81[_0x28181a(0x40a)][_0x58d2b3]&&(_0x212297[''+(_0x58d2b3+_0x44f288)]=_0x3b0c81[_0x28181a(0x40a)][_0x58d2b3]),_0x3b0c81[_0x28181a(0x2cc)][_0x58d2b3+0x1]&&(_0x1d1075[''+(_0x58d2b3+_0x1ed49c+0x1)]=_0x3b0c81[_0x28181a(0x2cc)][_0x58d2b3+0x1]);}_0x1ed49c+=_0x5ccbdc;const _0x536f05=_0x17556b['headerMap'],_0x5a3490=_0x17556b[_0x28181a(0x1ef)]()>=0x0?_0x17556b[_0x28181a(0x1ef)]()+0x1:0x0,_0x52c57e=_0x17556b['getLastCol']()>=0x0?_0x17556b[_0x28181a(0x1f8)]()+0x1:0x0;for(let _0x5ab608=0x0;_0x5ab608<_0x5a3490;_0x5ab608++){for(let _0x29a6bb=0x0;_0x29a6bb<_0x52c57e;_0x29a6bb++){const _0x40cba4={...(_0x305527=(_0x1f7c33=_0x17556b['data'])==null?void 0x0:_0x1f7c33[_0x5ab608])==null?void 0x0:_0x305527[_0x29a6bb]},_0x2e840f=(_0xc3bd0=_0x536f05[_0x29a6bb])==null?void 0x0:_0xc3bd0[_0x28181a(0x292)],_0x429e46=_0x3d2c20[_0x2e840f],_0x1b61bd=_0x170fb2[_0x2e840f];_0x40cba4&&(_0x40cba4['v']=_0xb1d466(_0x40cba4,!0x1,_0x429e46,_0x4a8b57));let _0x5a0961;_0x17556b[_0x28181a(0x40a)][_0x5ab608][_0x28181a(0x29c)]===_0x17556b['getColCount']()?_0x5a0961=_0x136b96[_0x28181a(0x2c6)]:_0x17556b['info'][_0x5ab608][_0x28181a(0x1e2)]?_0x5a0961=_0x17556b[_0x28181a(0x40a)][_0x5ab608][_0x28181a(0x29c)]===0x0?_0x136b96['grandTotal']:_0x136b96[_0x28181a(0x398)]:_0x5a0961=_0x136b96[_0x28181a(0x117)],_0x429e46&&(_0x5a0961={..._0x5a0961,'n':{'pattern':_0x429e46}}),_0x1375ea[_0x28181a(0x3c9)](_0x5ab608+_0x1ed49c,_0x29a6bb+_0xbfe3ac,_0x4c26a3(_0x40f466,_0x40cba4,_0x5a0961,_0x1b61bd));}_0x17556b[_0x28181a(0x40a)][_0x5ab608]&&(_0x16df47[''+(_0x5ab608+_0x1ed49c)]=_0x17556b[_0x28181a(0x40a)][_0x5ab608]),_0x17556b['headerMap'][_0x5ab608]&&(_0x38f7ac[''+(_0x5ab608+_0xbfe3ac)]=_0x17556b['headerMap'][_0x5ab608]);}const _0x543bb7=_0x19557f[_0x28181a(0x2fb)](),_0x43c4d6=_0x19557f[_0x28181a(0x2c0)]();for(let _0x1bf85c=0x0;_0x1bf85c<_0x543bb7;_0x1bf85c++)for(let _0xa30dc1=0x0;_0xa30dc1<_0x43c4d6;_0xa30dc1++){const _0x5306dc={...(_0x37bccb=(_0x31af7d=_0x19557f[_0x28181a(0x2c1)])==null?void 0x0:_0x31af7d[_0x1bf85c])==null?void 0x0:_0x37bccb[_0xa30dc1]};let _0x25e35e;_0x17556b['info'][_0x1bf85c]['isBottomTotal']?_0x25e35e=_0x17556b[_0x28181a(0x40a)][_0x1bf85c][_0x28181a(0x29c)]===0x0?_0x136b96[_0x28181a(0x377)]:_0x136b96[_0x28181a(0x398)]:_0x25e35e=_0x136b96['dataStyle'];const _0x3b444f=_0x17556b[_0x28181a(0x40a)][_0x1bf85c][_0x28181a(0x400)],_0x3b59dc=_0x3b0c81[_0x28181a(0x40a)][_0xa30dc1][_0x28181a(0x400)],_0xa782d3=Math[_0x28181a(0x3b0)](_0x3b444f,_0x3b59dc),_0x1f82bc=_0x1c3e45[_0x28181a(0x1be)][_0x28181a(0x276)][_0x28181a(0x2f7)]();let _0x4c43df='';_0xa782d3<0x0?_0x4c43df=(_0x52b0cf=_0x1f82bc[0x0])!=null?_0x52b0cf:'':_0x4c43df=(_0x39448d=_0x1f82bc[_0xa782d3])!=null?_0x39448d:'';const _0x39c84b=_0x3d2c20[_0x4c43df];_0x39c84b&&(_0x25e35e={..._0x25e35e,'n':{'pattern':_0x39c84b}}),_0x1375ea[_0x28181a(0x3c9)](_0x1bf85c+_0x1ed49c,_0xa30dc1+_0x44f288,_0x4c26a3(_0x40f466,_0x5306dc,_0x25e35e));}return{'valueMatrix':_0x1375ea,'rowInfo':_0x16df47,'colInfo':_0x212297,'cornerInfo':_0x5b917a,'rowHeaderMap':_0x38f7ac,'colHeaderMap':_0x1d1075};};function _0xb1d466(_0x5f2e40,_0x49256f,_0x2ec1db,_0x2d0695){const _0x133c2a=_0x5565f1;let _0x50365d=_0x5f2e40['v'];_0x49256f&&(_0x50365d=''+_0x2d0695[_0x133c2a(0x31c)]);const _0x564fa5=_0x5f2e40['t']&&(_0x5f2e40['t']&_0x16b0d8[_0x133c2a(0x381)][_0x133c2a(0x351)])>0x0;_0x564fa5&&(_0x50365d=''+_0x2d0695[_0x133c2a(0x3cb)]);const _0x21aba4=_0x5f2e40['t']&&(_0x5f2e40['t']&_0x16b0d8[_0x133c2a(0x381)][_0x133c2a(0x3db)])>0x0;if(_0x21aba4&&(_0x50365d=''+_0x2d0695[_0x133c2a(0x2e6)]),_0x5f2e40['s']===_0x16b0d8['PivotCellStyleTypeEnum'][_0x133c2a(0x366)]){let _0x4b54e9=_0x50365d,_0x4010e3='';_0x16b0d8[_0x133c2a(0x224)](_0x50365d)&&(_0x4b54e9=_0x50365d[_0x133c2a(0x21d)],_0x4010e3=_0x50365d[_0x133c2a(0x41c)]);const _0x3e6d14=_0x2ec1db&&!_0x564fa5&&!_0x21aba4?_0x49f92f['numfmt'][_0x133c2a(0x40c)](_0x2ec1db,Number(_0x4b54e9)):_0x4b54e9;_0x4010e3?_0x50365d=_0x3e6d14+'\x20'+_0x4010e3:_0x50365d=_0x3e6d14+'\x20'+_0x2d0695[_0x133c2a(0x199)];}else _0x5f2e40['s']===_0x16b0d8[_0x133c2a(0x3f9)][_0x133c2a(0x367)]&&(_0x50365d=_0x50365d+'\x20'+_0x2d0695[_0x133c2a(0x2ef)]);return _0x50365d;}function _0x266eeb(_0x1cf2eb){const _0x258b97=_0x5565f1;if(_0x16b0d8[_0x258b97(0x225)](_0x1cf2eb)){const {errorType:_0x17defc}=_0x1cf2eb;switch(_0x17defc){case _0x16b0d8['PivotErrorTypeEnum'][_0x258b97(0x3ea)]:return _0x3a3769[_0x258b97(0x151)][_0x258b97(0x1d6)];case _0x16b0d8[_0x258b97(0x418)][_0x258b97(0x1c7)]:return _0x3a3769['ErrorType']['NUM'];case _0x16b0d8[_0x258b97(0x418)][_0x258b97(0x3f8)]:return _0x3a3769[_0x258b97(0x151)][_0x258b97(0x2f8)];case _0x16b0d8[_0x258b97(0x418)][_0x258b97(0x2db)]:return _0x3a3769[_0x258b97(0x151)][_0x258b97(0x2f8)];case _0x16b0d8[_0x258b97(0x418)][_0x258b97(0x443)]:return _0x3a3769[_0x258b97(0x151)][_0x258b97(0x284)];}}return _0x1cf2eb;}function _0x290256(_0x1f2b2e,_0x15706c,_0x2b426b=!0x1,_0x498606=!0x1){const _0x5be5df=_0x5565f1,{data:_0x5db333}=_0x15706c,_0x27f6b2=_0x15706c['getRowCount'](),_0x13f7df=_0x15706c['getColCount']();if(_0x27f6b2<=0x0||_0x13f7df<=0x0)return[];const _0x50eb5c=_0x15706c[_0x5be5df(0x1f8)](),_0x840276=_0x15706c[_0x5be5df(0x1ef)](),_0x561c55=_0x498606?_0x840276>=0x0?_0x840276+0x1:0x0:_0x27f6b2,_0x51b193=_0x498606?_0x50eb5c>=0x0?_0x50eb5c+0x1:0x0:_0x13f7df,{row:_0x31c254,col:_0x59c9a5}=_0x1f2b2e,_0x204d8c=_0x31c254,_0x3a3ffc=_0x59c9a5;if(_0x2b426b){const _0x22d555=[];for(const [_0x307f07,_0x25e151]of Object['entries'](_0x5db333))for(const [_0x519db3,_0x18689c]of Object[_0x5be5df(0x15f)](_0x25e151))_0x22d555[_0x5be5df(0x254)](_0x49f92f[_0x5be5df(0x42d)](_0x204d8c+Number(_0x307f07),_0x3a3ffc+Number(_0x519db3)));return _0x22d555;}else{const _0x124f87=_0x498606?_0x561c55>0x0?0x1:0x0:0x1,_0x1881d7=_0x498606?_0x51b193>0x0?0x1:0x0:0x1,_0x3e6794=_0x31c254+_0x561c55-_0x124f87,_0x23bcc1=_0x59c9a5+_0x51b193-_0x1881d7;return[{'startRow':_0x204d8c,'startColumn':_0x3a3ffc,'endRow':_0x3e6794,'endColumn':_0x23bcc1}];}}const _0x511ea3=_0x5565f1(0x1af),_0x279ac7=_0x5565f1(0x162);var _0x3175a8=(_0x24769b=>(_0x24769b['Filter']=_0x5565f1(0x209),_0x24769b[_0x5565f1(0x270)]=_0x5565f1(0x1e1),_0x24769b[_0x5565f1(0x35b)]=_0x5565f1(0x195),_0x24769b[_0x5565f1(0x33d)]='AddPivotTableWithConfig',_0x24769b[_0x5565f1(0x18f)]=_0x5565f1(0x32f),_0x24769b[_0x5565f1(0x12a)]=_0x5565f1(0x208),_0x24769b[_0x5565f1(0x235)]=_0x5565f1(0x2c7),_0x24769b[_0x5565f1(0x2fe)]=_0x5565f1(0x231),_0x24769b['SetPivotFilter']=_0x5565f1(0x1f5),_0x24769b[_0x5565f1(0x3fd)]=_0x5565f1(0x304),_0x24769b[_0x5565f1(0x2d1)]='setPivotSetting',_0x24769b['UpdatePivotSource']='updatePivotSource',_0x24769b['UpdateValuePosition']=_0x5565f1(0x323),_0x24769b['DrillDown']='drillDown',_0x24769b[_0x5565f1(0x252)]=_0x5565f1(0x2c8),_0x24769b[_0x5565f1(0x13d)]=_0x5565f1(0x13c),_0x24769b[_0x5565f1(0x3a3)]=_0x5565f1(0x3ed),_0x24769b))(_0x3175a8||{});const _0x8dba5={'sheets-pivot.blankValue':_0x5565f1(0x237),'sheets-pivot.columnName':_0x5565f1(0x2f6),'sheets-pivot.subTotalText':_0x5565f1(0x279),'sheets-pivot.grandTotalText':_0x5565f1(0x3e9),'sheets-pivot.valueText':_0x5565f1(0x359),'sheets-pivot.averageName':'Average\x20of\x20','sheets-pivot.countName':_0x5565f1(0x136),'sheets-pivot.countNumsName':_0x5565f1(0x136),'sheets-pivot.maxName':_0x5565f1(0x18e),'sheets-pivot.minName':_0x5565f1(0x43e),'sheets-pivot.productName':_0x5565f1(0x28d),'sheets-pivot.stdDevName':_0x5565f1(0x1c0),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x5565f1(0x429),'sheets-pivot.varName':_0x5565f1(0x1b2),'sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':_0x5565f1(0x366),'sheets-pivot.grandTotal':_0x5565f1(0x3e9),'sheets-pivot.value':_0x5565f1(0x41c),'sheets-pivot.blank':_0x5565f1(0x351),'sheets-pivot.other':_0x5565f1(0x3db),'sheets-pivot.emptyPivot.filter':_0x5565f1(0x34a),'sheets-pivot.emptyPivot.row':_0x5565f1(0x3b6),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},_0x41e9cb={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x2d81a5=_0x49f92f[_0x5565f1(0x2ca)](_0x5565f1(0x1ab)),_0x3c8d53=_0x49f92f[_0x5565f1(0x397)](_0x5565f1(0x29d));var _0x37eb19=(_0x535300=>(_0x535300[_0x5565f1(0x436)]=_0x5565f1(0x436),_0x535300[_0x5565f1(0x43d)]='delete',_0x535300['update']='update',_0x535300))(_0x37eb19||{}),_0x1e0edb=(_0x3281da=>(_0x3281da[_0x5565f1(0x2d5)]=_0x5565f1(0x436),_0x3281da[_0x5565f1(0x369)]=_0x5565f1(0x246),_0x3281da['Delete']=_0x5565f1(0x43d),_0x3281da))(_0x1e0edb||{});const _0x44b295={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x17b),'handler':()=>!0x0},_0x187dbf={'type':_0x49f92f['CommandType'][_0x5565f1(0x1fc)],'id':_0x5565f1(0x399),'handler':()=>!0x0},_0xd023a5={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x25a),'handler':()=>!0x0},_0x3bac17={'type':_0x49f92f[_0x5565f1(0x1ae)]['MUTATION'],'id':_0x5565f1(0x154),'handler':()=>!0x0},_0x389da5={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x1b0),'handler':()=>!0x0};var _0xfb2bd3=Object[_0x5565f1(0x14a)],_0x58dfa2=(_0x276775,_0x3a7432,_0x5043a7,_0x3d242d)=>{const _0x50b759=_0x5565f1;for(var _0x15a892=_0x3d242d>0x1?void 0x0:_0x3d242d?_0xfb2bd3(_0x3a7432,_0x5043a7):_0x3a7432,_0x41dbcd=_0x276775[_0x50b759(0x37f)]-0x1,_0xab7f0;_0x41dbcd>=0x0;_0x41dbcd--)(_0xab7f0=_0x276775[_0x41dbcd])&&(_0x15a892=_0xab7f0(_0x15a892)||_0x15a892);return _0x15a892;},_0x2172f3=(_0x5cc4e9,_0x1a7cf0)=>(_0x3d3e85,_0xe0622d)=>_0x1a7cf0(_0x3d3e85,_0xe0622d,_0x5cc4e9);_0x47953f['SheetsPivotRPCService']=class extends _0x49f92f['Disposable']{constructor(_0x2ad4bd){const _0x1c603e=_0x5565f1;super(),_0x246801(this,_0x1c603e(0x332),new Map()),this[_0x1c603e(0x393)]=_0x2ad4bd;}[_0x5565f1(0x335)](_0x1df426){const _0x40c405=_0x5565f1,{version:_0x43ec1e}=_0x1df426,_0x4a46cf=this[_0x40c405(0x332)]['get'](_0x43ec1e);_0x4a46cf&&(_0x4a46cf(_0x1df426),this[_0x40c405(0x332)][_0x40c405(0x43d)](_0x43ec1e));}[_0x5565f1(0x236)](_0x31b120){return new Promise((_0x283e23,_0x5e5282)=>{const _0x23be28=_0xe5fb,_0x1b6e6c=this[_0x23be28(0x42a)]();this[_0x23be28(0x332)][_0x23be28(0x246)](_0x1b6e6c,_0x283e23),this['_commandService'][_0x23be28(0x41e)](_0x44b295['id'],{'version':_0x1b6e6c,..._0x31b120},{'onlyLocal':!0x0});});}[_0x5565f1(0x42a)](){const _0x5b15c1=_0x5565f1;return Math[_0x5b15c1(0x344)]()['toString'](0x24)[_0x5b15c1(0x2d4)](0x2,0x10);}},_0x47953f[_0x5565f1(0x3f1)]=_0x58dfa2([_0x2172f3(0x0,_0x49f92f['Inject'](_0x49f92f[_0x5565f1(0x3fc)]))],_0x47953f[_0x5565f1(0x3f1)]);const _0x53dc2e={0x0:'V',0x1:'b',0x2:'Q',0x3:'u',0x4:'Z',0x5:'t',0x6:'J',0x7:'h',0x8:'a',0x9:'w','L':'0','z':'1','I':'2','N':'3','l':'4','C':'5','G':'6','u':'7','t':'8','Z':'9','f':'c','d':'d','r':'e','c':'f','w':'g','q':'i','E':'j','V':'k','B':'l','Y':'m','y':'n','K':'o','S':'p','b':'q','v':'r','D':'s','h':'v','R':'x','n':'y','s':'z','e':'A','x':'B','U':'C','Q':'D','X':'E','P':'F','a':'G','W':'H','i':'I','T':'K','j':'L','A':'M','H':'N','m':'O','J':'P','F':'R','p':'S','k':'T','M':'U','o':'W','O':'X','g':'Y'},_0x18631d='c3yf5qKy\x20drfvnS5qKy(BqfryDr,\x20S31BqfTrn)\x20{\x20\x20\x20\x205vn\x20{\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20BqfryDriycKJ8v5evv8n\x20=\x20BqfryDr.DSBq5(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20KvqwqyArDD8wr\x20=\x206pmH.S8vDr(85K1(BqfryDriycKJ8v5evv8n[I]));\x20\x20\x20\x20\x20\x20\x20\x20qc\x20(!KvqwqyArDD8wr.3d)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20KvqwqyArDD8wr.3d\x20=\x20H3Y1rv(BqfryDriycKJ8v5evv8n[l]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20qDoKvVrv\x20=\x205nSrKc\x20oKvVrvaBK18BpfKSr\x20!==\x20\x273ydrcqyrd\x27\x20&&\x20DrBc\x20qyD58yfrKc\x20oKvVrvaBK18BpfKSr;\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20qDxvK9Drv\x20=\x205nSrKc\x209qydK9\x20!==\x20\x273ydrcqyrd\x27\x20&&\x205nSrKc\x209qydK9.BKf85qKy\x20!==\x20\x273ydrcqyrd\x27;\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20fKy5rR5\x20=\x20qDoKvVrv\x20?\x20DrBc\x20:\x20(qDxvK9Drv\x20?\x209qydK9\x20:\x20wBK18Bk7qD);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20YrDD8wroKvd\x20=\x20fKy5rR5.__x8DrGl__.S8vDr(BqfryDriycKJ8v5evv8n[I]);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20YrDD8wr\x20=\x20fKy5rR5.__WrR__.D5vqywqcn(YrDD8wroKvd);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20Dqwy853vroKvd\x20=\x20fKy5rR5.__x8DrGl__.S8vDr(BqfryDriycKJ8v5evv8n[N]);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20Dqwy853vr\x20=\x20fKy5rR5.__WrR__.D5vqywqcn(Dqwy853vroKvd);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20Dqwy08Bqd\x20=\x20fKy5rR5.__hrvqcn__(Dqwy853vr,\x20YrDD8wr,\x20S31BqfTrn);\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20dKY8qy\x20=\x20KvqwqyArDD8wr.dY;\x20\x20\x20\x20\x20\x20\x20\x20c3yf5qKy\x20qDQKY8qyA85f7qyw(KJ855rvy,\x20KWKD5)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20S855rvy\x20=\x20KJ855rvy.vrSB8fr(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x207KD5\x20=\x20KWKD5.vrSB8fr(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20S855rvyJ8v5D\x20=\x20S855rvy.DSBq5(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x207KD5J8v5D\x20=\x207KD5.DSBq5(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qc\x20(!S855rvy.qyfB3drD(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vr53vy\x20S855rvy\x20===\x207KD5;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qc\x20(S855rvyJ8v5D.Bryw57\x20<\x20I\x20||\x20S855rvyJ8v5D[L]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vr53vy\x20c8BDr;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20S855rvyp3ccqR\x20=\x20S855rvyJ8v5D.DBqfr(z).EKqy(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x207KD5p3ccqR\x20=\x207KD5J8v5D.DBqfr(-S855rvyJ8v5D.Bryw57\x20+\x20z).EKqy(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20vr53vy\x20S855rvyp3ccqR\x20===\x207KD5p3ccqR;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20Br5\x20dKY8qy08Bqd\x20=\x20c8BDr;\x20\x20\x20\x20\x20\x20\x20\x20qc\x20(qDxvK9Drv)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dKY8qy08Bqd\x20=\x20(dKY8qy\x20&&\x20dKY8qy.Bryw57)\x20?\x20dKY8qy.DKYr((dYi5rY)\x20=>\x20qDQKY8qyA85f7qyw(dYi5rY,\x20BKf85qKy.7KD5y8Yr))\x20:\x205v3r;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qc\x20(BKf85qKy.7KD5y8Yr\x20===\x20\x27BKf8B7KD5\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dKY8qy08Bqd\x20=\x205v3r;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20}\x20rBDr\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dKY8qy08Bqd\x20=\x205v3r;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20fKyD5\x20h8Bqd\x20=\x20Dqwy08Bqd\x20&&\x20dKY8qy08Bqd;\x20\x20\x20\x20\x20\x20\x20\x20vr53vy\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h8Bqd,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YrDD8wr:\x20KvqwqyArDD8wr,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20f85f7\x20(rvvKv)\x20{\x20\x20\x20\x20\x20\x20\x20\x20vr53vy\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h8Bqd:\x20c8BDr,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YrDD8wr:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0x37fcf3=_0x3fc299=>{const _0x5ba1c7=_0x5565f1;var _0x27fed5;return((_0x27fed5=_0x3fc299[_0x5ba1c7(0x357)])==null?void 0x0:_0x27fed5[_0x5ba1c7(0x2b9)]['replace'](/\r\n$/,''))||'';};class _0x47dfc5 extends _0x16b0d8['DataFieldManager']{constructor(_0x3a7c9a,_0x2e8c93){const _0x12d091=_0x5565f1;super(),_0x246801(this,_0x12d091(0x295),{}),_0x246801(this,_0x12d091(0x23b)),_0x246801(this,_0x12d091(0x260)),(this['_univerInstanceService']=_0x2e8c93,this[_0x12d091(0x260)]=_0x3a7c9a);}['initDataRanges'](){const _0x3cf379=_0x5565f1;for(const _0x155392 in this[_0x3cf379(0x37c)]){const _0x38ecd1=this[_0x3cf379(0x37c)][_0x155392],_0x15b648=_0x38ecd1[_0x3cf379(0x2a4)]();this[_0x3cf379(0x295)][_0x15b648]=_0x38ecd1['getId']();}}[_0x5565f1(0x239)](){const _0x3ea4ca=_0x5565f1,_0x142289=this['_host'];return _0x3c038e[_0x3ea4ca(0x118)](_0x142289);}[_0x5565f1(0x178)](_0x5d9640){const _0x4f3a98=_0x5565f1,_0x40b702=this[_0x4f3a98(0x37c)][_0x5d9640][_0x4f3a98(0x36b)];delete this[_0x4f3a98(0x37c)][_0x5d9640],delete this[_0x4f3a98(0x295)][_0x40b702];}[_0x5565f1(0x198)](_0x51cfaf){const _0x1ac21f=_0x5565f1;this[_0x1ac21f(0x37c)][_0x51cfaf[_0x1ac21f(0x428)]()]=_0x51cfaf;}[_0x5565f1(0x156)](_0xcbc8df){const _0x2f7988=_0x5565f1;var _0x37f272,_0x2fc4a0;const _0xf01a5d=this[_0x2f7988(0x260)][_0x2f7988(0x442)](_0xcbc8df);if(_0xf01a5d){const {unitId:_0x42faec,subUnitId:_0x2a4fa8}=_0xf01a5d,_0x132b5b=(_0x37f272=this[_0x2f7988(0x260)][_0x2f7988(0x215)](_0x42faec,_0x2a4fa8,_0xcbc8df))==null?void 0x0:_0x37f272['sourceRangeInfo'];this[_0x2f7988(0x260)][_0x2f7988(0x242)]({'token':_0xcbc8df,'type':_0x37eb19[_0x2f7988(0x43d)],'dataRangeInfo':_0x132b5b});}(_0x2fc4a0=this['getCollection'](_0xcbc8df))==null||_0x2fc4a0['dispose'](),delete this[_0x2f7988(0x40d)][_0xcbc8df];}[_0x5565f1(0x2a4)](_0x77158e,_0x33bc6d){const _0x57e211=_0x5565f1,{sheetName:_0x3f362e,unitId:_0x27892d,range:_0x4d4c39}=_0x77158e,{startRow:_0x14f176,endRow:_0x25023a}=_0x4d4c39;return _0x3a3769[_0x57e211(0x2ff)](_0x27892d,_0x3f362e,{'startRow':_0x14f176,'endRow':_0x25023a,'startColumn':_0x33bc6d,'endColumn':_0x33bc6d});}[_0x5565f1(0x267)](_0x26352b){const _0x1b3255=_0x5565f1;return this[_0x1b3255(0x37c)][this['rangeKeyMap'][_0x26352b]];}[_0x5565f1(0x1f3)](_0x5e6ca3,_0x5e0c03){this['rangeKeyMap'][_0x5e6ca3]=_0x5e0c03;}[_0x5565f1(0x11f)](_0x2ad7ff,_0x11b775){const _0x2cfb0f=_0x5565f1;this['rangeKeyMap'][_0x11b775]=this[_0x2cfb0f(0x295)][_0x2ad7ff],delete this['rangeKeyMap'][_0x2ad7ff];}[_0x5565f1(0x3cf)](_0x2a119b,_0x41963b,_0x11d04c,_0x3f9ff0){const _0x57e8ed=_0x5565f1,_0x11f28d=new _0x16b0d8[(_0x57e8ed(0x330))](this);_0x11f28d[_0x57e8ed(0x401)](_0x41963b);const _0x1fbe3b=[];let _0x544f14=0x0;for(const _0x597412 of _0x11f28d['fieldIds']){const _0xb90563=this[_0x57e8ed(0x2a4)](_0x11d04c,_0x544f14),_0x13b196=this[_0x57e8ed(0x37c)][_0x597412];_0x13b196&&(_0x13b196['rangeKey']=_0xb90563,this[_0x57e8ed(0x1f3)](_0xb90563,_0x597412),_0x1fbe3b[_0x57e8ed(0x254)]({'index':_0x544f14,'dataField':_0x13b196})),_0x544f14++;}return this['addCollection'](_0x2a119b,_0x11f28d,_0x11d04c,_0x3f9ff0),{'collection':_0x11f28d,'updateDataFieldList':_0x1fbe3b};}['getRangeStartEndInfo'](_0x50cf58,_0x358c4d){const _0x4cd2b9=_0x5565f1;return _0x50cf58[_0x4cd2b9(0x2ad)]===_0x49f92f[_0x4cd2b9(0x164)][_0x4cd2b9(0x2cb)]?{'startRow':0x0,'startColumn':_0x50cf58[_0x4cd2b9(0x421)],'endRow':_0x358c4d[_0x4cd2b9(0x2fb)]()-0x1,'endColumn':_0x50cf58['endColumn']}:{'startRow':_0x50cf58[_0x4cd2b9(0x34c)],'startColumn':_0x50cf58[_0x4cd2b9(0x421)],'endRow':_0x50cf58[_0x4cd2b9(0x2b0)],'endColumn':_0x50cf58['endColumn']};}[_0x5565f1(0x3e4)](_0xc30d3c){const _0x473f45=_0x5565f1,{sheetName:_0x8485fc,range:_0x26ae83}=_0xc30d3c,_0x15e55a=this['_univerInstanceService']['getCurrentUnitForType'](_0x49f92f[_0x473f45(0x1b7)][_0x473f45(0x3da)]),_0x4881b1=_0x15e55a['getSheetBySheetName'](_0x8485fc),_0x410591=_0x4881b1['getCellMatrix'](),{startColumn:_0xd9da6d,startRow:_0x33cd52,endColumn:_0xd6f219}=this['getRangeStartEndInfo'](_0x26ae83,_0x4881b1),_0x3fe5c7=_0x15e55a[_0x473f45(0x2dd)](),_0x277f54=new _0x16b0d8[(_0x473f45(0x330))](this);_0x277f54[_0x473f45(0x389)](_0xc30d3c);const _0x26a154=[],_0x5645c0={};for(let _0x1890db=_0xd9da6d;_0x1890db<=_0xd6f219;_0x1890db++){const _0xac51ce=_0x410591[_0x473f45(0x1b6)](_0x33cd52,_0x1890db),_0x1aded4=this[_0x473f45(0x2a4)](_0xc30d3c,_0x1890db),_0x3cdf0d=this[_0x473f45(0x267)](_0x1aded4);if(_0x3cdf0d)_0x277f54[_0x473f45(0x30b)](_0x3cdf0d[_0x473f45(0x428)](),_0x3cdf0d[_0x473f45(0x2f9)]());else{const _0x39c432=this[_0x473f45(0x3f2)]();let _0x236a02=this['adjustSheetCellData'](_0xac51ce,_0x3fe5c7,_0x5645c0);_0x16b0d8[_0x473f45(0x37d)](_0x236a02)&&(_0x236a02=_0x49f92f['numfmt'][_0x473f45(0x40c)](_0x236a02['f'],Number(_0x236a02['v'])));const _0x53d328=this[_0x473f45(0x146)](_0x236a02,_0x1890db),_0x387b0e=new _0x16b0d8['DataField'](_0x39c432,_0x53d328,_0x16b0d8[_0x473f45(0x33f)](0x3));_0x387b0e[_0x473f45(0x36b)]=_0x1aded4,this[_0x473f45(0x37c)][_0x39c432]=_0x387b0e,_0x277f54['addField'](_0x39c432,_0x53d328),_0x26a154[_0x473f45(0x254)]({'index':_0x1890db,'dataField':_0x387b0e});}}return{'updateDataFieldList':_0x26a154,'collection':_0x277f54};}[_0x5565f1(0x1cb)](_0x101316){const _0xa53851=_0x5565f1;return this[_0xa53851(0x260)]['getTextInfo']()['sheets-pivot.columnName']+'\x20'+_0x49f92f['numberToABC'](_0x101316);}[_0x5565f1(0x146)](_0x322a52,_0x50aced){return _0x322a52==null||_0x322a52===''?this['_getAutoName'](_0x50aced):String(_0x322a52);}[_0x5565f1(0x312)](_0x3ea923){const _0xbd17ca=_0x5565f1;return this[_0xbd17ca(0x40d)][_0x3ea923];}[_0x5565f1(0x21e)](_0x124da8,_0x1fd51c,_0x24fd39,_0x790d71){const _0x38500a=_0x5565f1;this[_0x38500a(0x40d)][_0x124da8]=_0x1fd51c,_0x1fd51c[_0x38500a(0x389)](_0x24fd39),this[_0x38500a(0x260)]['broadcastCollectionChange']({'token':_0x124da8,'type':_0x37eb19['add'],'dataRangeInfo':_0x24fd39,'targetCellInfo':_0x790d71});}['handleMoveRange'](_0x2dce61,_0x16338b){const _0x5c4a38=_0x5565f1,_0x1ffe31=this[_0x5c4a38(0x312)](_0x2dce61),_0x2e51f6=_0x1ffe31[_0x5c4a38(0x35a)]();let _0x5d826d=0x0;for(const _0x58b124 of _0x2e51f6){const _0x1c9899=_0x1ffe31['getFieldById'](_0x58b124),_0xb01021=this[_0x5c4a38(0x2a4)](_0x16338b,_0x5d826d);this[_0x5c4a38(0x11f)](_0x1c9899[_0x5c4a38(0x36b)],_0xb01021),_0x5d826d++;}}[_0x5565f1(0x371)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x5565f1(0x1c6)](_0x2e2f46,_0x48d5dd){const _0x5ce6f3=_0x5565f1;if(this[_0x5ce6f3(0x312)](_0x2e2f46)){const _0x5787a3=this['getRangeKeyList'](_0x48d5dd),_0x541dcc=[];for(const _0xb9eef7 of _0x5787a3)this[_0x5ce6f3(0x295)][_0xb9eef7]!==void 0x0&&_0x541dcc['push'](this['rangeKeyMap'][_0xb9eef7]);const _0x363e18=this[_0x5ce6f3(0x405)](_0x2e2f46),_0x5eaced=[],_0x3c77bf=new Set(_0x541dcc);for(const _0x3ffc9a of _0x363e18)_0x3c77bf['has'](_0x3ffc9a)||_0x5eaced[_0x5ce6f3(0x254)](_0x3ffc9a);return _0x5eaced;}}[_0x5565f1(0x419)](_0x46ef65,_0x1ec0a8,_0x292fa2,_0x2c2a20,_0x191fcc){const _0x4aef4b=_0x5565f1;return _0x1ec0a8&&_0x1ec0a8[_0x4aef4b(0x1b6)](_0x2c2a20,_0x191fcc)?_0x1ec0a8[_0x4aef4b(0x1b6)](_0x2c2a20,_0x191fcc):_0x292fa2&&_0x292fa2[_0x4aef4b(0x1b6)](_0x2c2a20,_0x191fcc)?_0x292fa2[_0x4aef4b(0x1b6)](_0x2c2a20,_0x191fcc):_0x46ef65['getValue'](_0x2c2a20,_0x191fcc);}[_0x5565f1(0x3d2)](_0x4a8ce2,_0x4b1e43,_0x565c12,_0x5373b8){const _0x3e979a=_0x5565f1,_0x43d13e=this[_0x3e979a(0x37c)][_0x4a8ce2];if(!_0x43d13e)return;const {subUnitId:_0x158349,range:_0x4faaaf,unitId:_0x5766e9}=_0x4b1e43,_0x50b439=this[_0x3e979a(0x23b)][_0x3e979a(0x3c5)](_0x5766e9);if(!_0x50b439){console['error']('workbook\x20is\x20not\x20found');return;}const _0x2a8802=_0x50b439[_0x3e979a(0x222)](_0x158349),_0x2eb841=_0x2a8802[_0x3e979a(0x22d)](),{arrayFormulaCellDataMatrix:_0x158ed2,unitDataMatrix:_0xb4b163}=_0x5373b8||{},{startRow:_0x2df9d7,startColumn:_0x58f440,endRow:_0x139352}=this['getRangeStartEndInfo'](_0x4faaaf,_0x2a8802);_0x43d13e['reset']();const _0x27aeb2=_0x50b439[_0x3e979a(0x2dd)](),_0x3ff5b6={},_0x592851=this[_0x3e979a(0x419)](_0x2eb841,_0x158ed2,_0xb4b163,_0x2df9d7,_0x58f440+_0x565c12);let _0x3566aa=this[_0x3e979a(0x2bd)](_0x592851,_0x27aeb2,_0x3ff5b6);_0x16b0d8[_0x3e979a(0x37d)](_0x3566aa)&&(_0x3566aa=_0x49f92f[_0x3e979a(0x115)][_0x3e979a(0x40c)](_0x3566aa['f'],Number(_0x3566aa['v'])));const _0x589164=this[_0x3e979a(0x146)](_0x3566aa,_0x58f440+_0x565c12);_0x43d13e[_0x3e979a(0x272)](_0x589164);for(let _0x128d9b=_0x2df9d7+0x1;_0x128d9b<=_0x139352;_0x128d9b++){const _0xec5744=this[_0x3e979a(0x419)](_0x2eb841,_0x158ed2,_0xb4b163,_0x128d9b,_0x58f440+_0x565c12);_0x43d13e[_0x3e979a(0x2cd)](this[_0x3e979a(0x2bd)](_0xec5744,_0x27aeb2,_0x3ff5b6),_0x128d9b-0x1-_0x2df9d7);}}['refreshData'](_0x1650fa,_0x54898c,_0x6f7bd7){const _0x4e976a=_0x5565f1,{subUnitId:_0x2de599,range:_0x1f60c6,unitId:_0x5985be}=_0x6f7bd7,_0x59ff7e=this[_0x4e976a(0x23b)][_0x4e976a(0x3c5)](_0x5985be);if(!_0x59ff7e){console[_0x4e976a(0x328)](_0x4e976a(0x157));return;}const _0x492cbd=_0x59ff7e[_0x4e976a(0x222)](_0x2de599),_0x4663ba=_0x492cbd[_0x4e976a(0x22d)](),{startRow:_0x3dafce,startColumn:_0x10e0c5,endRow:_0x2a0e71}=this[_0x4e976a(0x3a0)](_0x1f60c6,_0x492cbd),_0x4743db=_0x59ff7e[_0x4e976a(0x2dd)](),_0x59f096={};for(const {dataField:_0x188ad1,index:_0x1e5aa2}of _0x54898c){_0x188ad1[_0x4e976a(0x3ee)]();const _0x53e62c=this[_0x4e976a(0x419)](_0x4663ba,void 0x0,void 0x0,_0x3dafce,_0x10e0c5+_0x1e5aa2);let _0x4b2bd6=this[_0x4e976a(0x2bd)](_0x53e62c,_0x4743db,_0x59f096);_0x16b0d8['isDateValue'](_0x4b2bd6)&&(_0x4b2bd6=_0x49f92f[_0x4e976a(0x115)][_0x4e976a(0x40c)](_0x4b2bd6['f'],Number(_0x4b2bd6['v'])));const _0x1eedab=this['uniqueDataFieldName'](_0x4b2bd6,_0x10e0c5+_0x1e5aa2);_0x188ad1[_0x4e976a(0x272)](_0x1eedab);}_0x1650fa[_0x4e976a(0x20c)]();for(let _0x54b8d8=_0x3dafce+0x1;_0x54b8d8<=_0x2a0e71;_0x54b8d8++)for(const {index:_0x3cb226,dataField:_0xf52fd4}of _0x54898c){const _0x1286b7=_0x4663ba[_0x4e976a(0x1b6)](_0x54b8d8,_0x10e0c5+_0x3cb226);_0xf52fd4[_0x4e976a(0x2cd)](this[_0x4e976a(0x2bd)](_0x1286b7,_0x4743db,_0x59f096),_0x54b8d8-0x1-_0x3dafce);}_0x1650fa[_0x4e976a(0x14c)](_0x2a0e71-_0x3dafce);}[_0x5565f1(0x212)](_0x13c305){const _0x5c7470=_0x5565f1,{range:_0x32dca1}=_0x13c305,{startColumn:_0x2a5b03,endColumn:_0x22fd53}=_0x32dca1,_0x32583f=[];for(let _0x3c84fa=_0x2a5b03;_0x3c84fa<=_0x22fd53;_0x3c84fa++)_0x32583f[_0x5c7470(0x254)](this['getRangeKey'](_0x13c305,_0x3c84fa));return _0x32583f;}[_0x5565f1(0x2bd)](_0x10f0ed,_0x18f5e8,_0x15ed5f){const _0x6cfa6e=_0x5565f1;if(_0x10f0ed){const {s:_0x3269d4,v:_0x385675,t:_0x3b535e,p:_0x39c249}=_0x10f0ed;if(_0x39c249)return _0x37fcf3(_0x39c249);const _0xb3d1ac=_0x18f5e8[_0x6cfa6e(0x326)](_0x3269d4);if(_0xb3d1ac&&_0x3b535e===_0x49f92f[_0x6cfa6e(0x183)][_0x6cfa6e(0x372)]&&_0xb3d1ac['n']){const {pattern:_0x54eef2}=_0xb3d1ac['n'];_0x15ed5f[_0x54eef2]||(_0x15ed5f[_0x54eef2]=_0x49f92f[_0x6cfa6e(0x115)][_0x6cfa6e(0x2a9)](_0x54eef2));const _0x1ada54=_0x15ed5f[_0x54eef2],_0x13f5fc=_0x1ada54['isDate'];if(_0x1ada54[_0x6cfa6e(0x424)])return String(_0x385675);if(_0x13f5fc)return{'v':_0x385675,'f':_0x54eef2};}if(_0x3b535e===_0x49f92f[_0x6cfa6e(0x183)][_0x6cfa6e(0x372)])return Number(_0x385675);if(_0x3b535e===_0x49f92f[_0x6cfa6e(0x183)][_0x6cfa6e(0x3ca)]||_0x3b535e===_0x49f92f[_0x6cfa6e(0x183)][_0x6cfa6e(0x395)])return String(_0x385675);if(_0x3b535e===void 0x0){const _0x16b482=Number(_0x385675);if(!Number['isNaN'](_0x16b482)&&String(_0x16b482)===_0x385675)return _0x16b482;}return _0x385675!=null?_0x385675:null;}else return null;}[_0x5565f1(0x435)](_0x479d38){const _0x4213d3=_0x5565f1,{sheetName:_0x5bf06d,range:_0x4cf611,unitId:_0x1b6943}=_0x479d38,_0x4ab76e=this[_0x4213d3(0x23b)]['getUnit'](_0x1b6943);if(!_0x4ab76e)return console[_0x4213d3(0x328)](_0x4213d3(0x157)),{'header':[],'data':[]};const _0x569d27=_0x4ab76e[_0x4213d3(0x1d9)](_0x5bf06d),_0xc81ceb=_0x569d27[_0x4213d3(0x22d)](),{startRow:_0x4bc9e3,startColumn:_0x5d77d1,endRow:_0x28269d,endColumn:_0x3d5ae7}=this[_0x4213d3(0x3a0)](_0x4cf611,_0x569d27),_0x380a13=_0x4ab76e[_0x4213d3(0x2dd)](),_0x3f79fe=[],_0x12acc9=[],_0x35a4e6={};for(let _0xe09cc7=_0x4bc9e3;_0xe09cc7<=_0x28269d;_0xe09cc7++){const _0x3052e8=[];for(let _0x1f320c=_0x5d77d1;_0x1f320c<=_0x3d5ae7;_0x1f320c++){const _0x575521=_0xc81ceb['getValue'](_0xe09cc7,_0x1f320c);_0xe09cc7===_0x4bc9e3?_0x3f79fe[_0x4213d3(0x254)](_0x575521==null?null:String(_0x575521['v'])):_0x3052e8['push'](this[_0x4213d3(0x2bd)](_0x575521,_0x380a13,_0x35a4e6));}_0x12acc9[_0x4213d3(0x254)](_0x3052e8);}return{'header':_0x3f79fe,'data':_0x12acc9};}[_0x5565f1(0x1d4)](){const _0x174196=_0x5565f1;return super[_0x174196(0x1d4)]();}[_0x5565f1(0x401)](_0x460360){const _0x37a0a8=_0x5565f1;super[_0x37a0a8(0x401)](_0x460360),this[_0x37a0a8(0x375)]();}[_0x5565f1(0x355)](){const _0x50a280=_0x5565f1;super[_0x50a280(0x355)](),this[_0x50a280(0x295)]={},this['_host']=null;}}const _0x233bc8=_0x4df635=>{const _0x34767b=_0x5565f1,{targetCellInfo:_0x439c40}=_0x4df635,{matrixCache:_0x2466bd,rangesCache:_0xdf6669}=_0x115cc1({'filter':_0x34767b(0x34a),'row':'Row','column':_0x34767b(0x28b),'values':_0x34767b(0x221)},_0x439c40),_0x38a916=new _0x49f92f['ObjectMatrix']();return _0x2466bd[_0x34767b(0x3e5)]((_0xda7b41,_0x3fc9b6,_0x3dde28)=>{_0x38a916['setValue'](_0xda7b41,_0x3fc9b6,_0x3dde28);}),{'matrix':_0x38a916,'rangesCache':_0xdf6669};},_0x65e555=_0x2e99da=>{const _0x5ec055=_0x5565f1;let _0xc07e98;if(_0x2e99da!=null&&_0x2e99da['v']||(_0x2e99da==null?void 0x0:_0x2e99da['v'])===0x0){_0xc07e98||(_0xc07e98={});const _0x552952=_0x266eeb(_0x2e99da['v']);typeof _0x552952==_0x5ec055(0x394)?_0xc07e98['t']=_0x49f92f['CellValueType'][_0x5ec055(0x372)]:typeof _0x552952==_0x5ec055(0x2fa)&&(_0xc07e98['t']=_0x49f92f[_0x5ec055(0x183)][_0x5ec055(0x3ca)]),_0xc07e98['v']=_0x552952;}return _0xc07e98;},_0x45059f=(_0x443c80,_0x5735e4,_0x523b7d)=>{const _0x575bf2=_0x5565f1;var _0x3329c0,_0x38d64d,_0x1141d7,_0x478dfd,_0x29286b,_0x452cdd,_0x63ad40,_0x1ae771,_0x1314c5,_0x16ddb0,_0x2f9b7a,_0x7a5104;const {cornerView:_0x3ca7fd,rowView:_0x500600,colView:_0x4da9cd,dataView:_0x2452a9,pageView:_0x275bc5,formatMap:_0x1aa1e0}=_0x443c80,{row:_0x6cf229,col:_0x53345d}=_0x5735e4,_0x5dc1e2=new _0x49f92f['ObjectMatrix']();let _0x59758b=_0x6cf229,_0x410130=_0x53345d;Object[_0x575bf2(0x37a)](_0x275bc5[_0x575bf2(0x2c1)])[_0x575bf2(0x350)](_0x5d5668=>{const _0x511e47=_0x575bf2;Object[_0x511e47(0x37a)](_0x275bc5[_0x511e47(0x2c1)][Number(_0x5d5668)])[_0x511e47(0x350)](_0x5cdae9=>{const _0x295279=_0x511e47,_0x19457f={..._0x275bc5[_0x295279(0x2c1)][Number(_0x5d5668)][Number(_0x5cdae9)]};_0x5dc1e2['setValue'](Number(_0x5d5668)+_0x59758b,Number(_0x5cdae9)+_0x410130,_0x65e555(_0x19457f));});});const _0x412990=Object[_0x575bf2(0x37a)](_0x275bc5['data'])[_0x575bf2(0x37f)];_0x59758b+=_0x412990+(_0x412990?_0x29054f:0x0);const _0x299448=_0x3ca7fd['getRowCount'](),_0x378a98=_0x3ca7fd[_0x575bf2(0x2c0)]();for(let _0x2f5d3d=0x0;_0x2f5d3d<_0x299448;_0x2f5d3d++)for(let _0x4f81be=0x0;_0x4f81be<_0x378a98;_0x4f81be++){const _0x376e41={...(_0x38d64d=(_0x3329c0=_0x3ca7fd[_0x575bf2(0x2c1)])==null?void 0x0:_0x3329c0[_0x2f5d3d])==null?void 0x0:_0x38d64d[_0x4f81be]};_0x376e41&&((_0x1141d7=_0x500600[_0x575bf2(0x2cc)][_0x4f81be])!=null&&_0x1141d7[_0x575bf2(0x17d)])&&_0x4f81be===_0x378a98-0x1&&_0x2f5d3d===_0x299448-0x1&&(_0x376e41['v']=''+_0x523b7d[_0x575bf2(0x31c)]),_0x5dc1e2[_0x575bf2(0x3c9)](_0x2f5d3d+_0x59758b,_0x4f81be+_0x410130,_0x65e555(_0x376e41));}_0x410130+=_0x378a98;const _0x178ff3=_0x4da9cd[_0x575bf2(0x2cc)],_0x589040=_0x4da9cd[_0x575bf2(0x1ef)]()>=0x0?_0x4da9cd[_0x575bf2(0x1ef)]()+0x1:0x0,_0x301c5d=_0x4da9cd[_0x575bf2(0x1f8)]()>=0x0?_0x4da9cd[_0x575bf2(0x1f8)]()+0x1:0x0;for(let _0x473b9d=0x0;_0x473b9d<_0x301c5d;_0x473b9d++)for(let _0x24e92c=0x0;_0x24e92c<_0x589040;_0x24e92c++){const _0x3e81c1={...(_0x29286b=(_0x478dfd=_0x4da9cd[_0x575bf2(0x2c1)])==null?void 0x0:_0x478dfd[_0x473b9d])==null?void 0x0:_0x29286b[_0x24e92c]},_0x2ce32f=(_0x452cdd=_0x178ff3[_0x473b9d])==null?void 0x0:_0x452cdd[_0x575bf2(0x292)],_0x57eb8d=_0x1aa1e0[_0x2ce32f];_0x3e81c1&&(_0x3e81c1['v']=_0xb1d466(_0x3e81c1,_0x473b9d===0x0&&((_0x63ad40=_0x4da9cd[_0x575bf2(0x365)](_0x24e92c+0x1))==null?void 0x0:_0x63ad40[_0x575bf2(0x17d)]),_0x57eb8d,_0x523b7d)),_0x5dc1e2[_0x575bf2(0x3c9)](_0x473b9d+_0x59758b,_0x24e92c+_0x410130,_0x65e555(_0x3e81c1));}_0x59758b+=_0x299448;const _0x534f97=_0x500600[_0x575bf2(0x2cc)],_0x297691=_0x500600[_0x575bf2(0x1ef)]()>=0x0?_0x500600[_0x575bf2(0x1ef)]()+0x1:0x0,_0x266710=_0x500600[_0x575bf2(0x1f8)]()>=0x0?_0x500600[_0x575bf2(0x1f8)]()+0x1:0x0;for(let _0x3b6b23=0x0;_0x3b6b23<_0x297691;_0x3b6b23++)for(let _0x332a30=0x0;_0x332a30<_0x266710;_0x332a30++){const _0x18031a={...(_0x1314c5=(_0x1ae771=_0x500600['data'])==null?void 0x0:_0x1ae771[_0x3b6b23])==null?void 0x0:_0x1314c5[_0x332a30]},_0x3526db=(_0x16ddb0=_0x534f97[_0x332a30])==null?void 0x0:_0x16ddb0[_0x575bf2(0x292)],_0x567cb8=_0x1aa1e0[_0x3526db];_0x18031a&&(_0x18031a['v']=_0xb1d466(_0x18031a,!0x1,_0x567cb8,_0x523b7d)),_0x5dc1e2['setValue'](_0x3b6b23+_0x59758b,_0x332a30+_0x53345d,_0x65e555(_0x18031a));}const _0x2f823c=_0x2452a9[_0x575bf2(0x2fb)](),_0x59faca=_0x2452a9[_0x575bf2(0x2c0)]();for(let _0x2795fa=0x0;_0x2795fa<_0x2f823c;_0x2795fa++)for(let _0xfc64f0=0x0;_0xfc64f0<_0x59faca;_0xfc64f0++){const _0xd6aef6={...(_0x7a5104=(_0x2f9b7a=_0x2452a9[_0x575bf2(0x2c1)])==null?void 0x0:_0x2f9b7a[_0x2795fa])==null?void 0x0:_0x7a5104[_0xfc64f0]};_0x5dc1e2['setValue'](_0x2795fa+_0x59758b,_0xfc64f0+_0x410130,_0x65e555(_0xd6aef6));}return _0x5dc1e2;},_0x1e201e=_0x494e8d=>{const _0x34a75b=_0x5565f1,{view:_0x43eb61,targetCellInfo:_0x5e1275,isEmpty:_0x2db2d8,textInfo:_0x505138}=_0x494e8d;if(_0x2db2d8)return _0x233bc8(_0x494e8d);const {pageView:_0x56e17a,cornerView:_0x50f165,rowView:_0x1b3b3c,colView:_0x5bf168,dataView:_0x4f163e}=_0x43eb61,_0x34b4cb=_0x290256(_0x5e1275,_0x56e17a,!0x0),_0x132f44=_0x56e17a['lastRow']>=0x0?_0x56e17a[_0x34a75b(0x204)]+0x1:0x0,_0x47e618=_0x50f165['getRowCount'](),_0x208708=_0x50f165[_0x34a75b(0x2c0)](),_0x2f76cd=_0x34b4cb['length']>0x0?_0x29054f:0x0,_0x5c4272=_0x290256({'row':_0x5e1275[_0x34a75b(0x1b1)]+_0x132f44+_0x2f76cd,'col':_0x5e1275[_0x34a75b(0x341)]},_0x50f165,!0x1,!0x1),_0x116619=_0x290256({'row':_0x5e1275[_0x34a75b(0x1b1)]+_0x132f44+_0x2f76cd+_0x47e618,'col':_0x5e1275[_0x34a75b(0x341)]},_0x1b3b3c,!0x1,!0x0),_0x3d254a=_0x290256({'row':_0x5e1275[_0x34a75b(0x1b1)]+_0x132f44+_0x2f76cd,'col':_0x5e1275[_0x34a75b(0x341)]+_0x208708},_0x5bf168,!0x1,!0x0),_0x43a12d=_0x290256({'row':_0x5e1275[_0x34a75b(0x1b1)]+_0x132f44+_0x2f76cd+_0x47e618,'col':_0x5e1275[_0x34a75b(0x341)]+_0x208708},_0x4f163e,!0x1,!0x1),_0x4e83e6={'rowRanges':_0x116619,'colRanges':_0x3d254a,'cornerRanges':_0x5c4272,'dataRanges':_0x43a12d,'pageRanges':_0x34b4cb};return{'matrix':_0x45059f(_0x43eb61,_0x5e1275,_0x505138),'rangesCache':_0x4e83e6};};var _0x87f14=Object[_0x5565f1(0x14a)],_0xd19d19=(_0x528bbd,_0x573749,_0x1ed172,_0x2fd7cd)=>{for(var _0x452b15=_0x2fd7cd>0x1?void 0x0:_0x2fd7cd?_0x87f14(_0x573749,_0x1ed172):_0x573749,_0x2ba0a6=_0x528bbd['length']-0x1,_0x227b49;_0x2ba0a6>=0x0;_0x2ba0a6--)(_0x227b49=_0x528bbd[_0x2ba0a6])&&(_0x452b15=_0x227b49(_0x452b15)||_0x452b15);return _0x452b15;},_0x5a6bb5=(_0x243519,_0x3a370f)=>(_0x50f332,_0x243de5)=>_0x3a370f(_0x50f332,_0x243de5,_0x243519);_0x47953f['SheetsPivotDataSourceModel']=class extends _0x49f92f[_0x5565f1(0x425)]{constructor(_0x2c5c5f,_0x5624dc,_0xb10f29,_0xddaf15,_0x1da146){const _0x4cfad7=_0x5565f1;super(),_0x246801(this,'_model',new Map()),_0x246801(this,_0x4cfad7(0x353),new Map()),_0x246801(this,_0x4cfad7(0x29a),new Map()),_0x246801(this,'_textInfo'),_0x246801(this,_0x4cfad7(0x31a),new _0x3818d9[(_0x4cfad7(0x11e))]()),_0x246801(this,_0x4cfad7(0x32e),this[_0x4cfad7(0x31a)][_0x4cfad7(0x2e8)]()),_0x246801(this,'_viewData$',new _0x3818d9[(_0x4cfad7(0x11e))]()),_0x246801(this,'viewData$',this['_viewData$'][_0x4cfad7(0x2e8)]()),_0x246801(this,_0x4cfad7(0x280),new _0x3818d9[(_0x4cfad7(0x11e))]()),_0x246801(this,_0x4cfad7(0x15c),this[_0x4cfad7(0x280)][_0x4cfad7(0x2e8)]()),_0x246801(this,'_dataFieldManagerCollection',new Map()),_0x246801(this,_0x4cfad7(0x1b8),[]),_0x246801(this,'_queryingMap',new Map()),(this[_0x4cfad7(0x27c)]=_0x2c5c5f,this['_univerInstanceService']=_0x5624dc,this[_0x4cfad7(0x3c6)]=_0xb10f29,this[_0x4cfad7(0x393)]=_0xddaf15,this[_0x4cfad7(0x135)]=_0x1da146,this[_0x4cfad7(0x263)]());}[_0x5565f1(0x191)](){const _0x4c4d07=_0x5565f1;return this[_0x4c4d07(0x30e)]?this[_0x4c4d07(0x30e)]:_0x8dba5;}[_0x5565f1(0x42b)](_0x2488d1){const _0x58f0fd=_0x5565f1;this[_0x58f0fd(0x30e)]=_0x2488d1;}[_0x5565f1(0x30f)](_0x5ecbed){const _0x20c0aa=_0x5565f1;var _0x414265;const {from:_0x1ad38c,to:_0x3b490c,unitId:_0x4c8d46,fromRange:_0x2b0ecd,toRange:_0x422b25}=_0x5ecbed;if(_0x1ad38c&&_0x3b490c){const _0xf3e7d8=this[_0x20c0aa(0x40e)](_0x4c8d46),_0x4736cd=this[_0x20c0aa(0x3aa)][_0x20c0aa(0x326)](_0x4c8d46),_0x441aa8=(_0x414265=this[_0x20c0aa(0x23b)]['getUnit'](_0x4c8d46))==null?void 0x0:_0x414265[_0x20c0aa(0x222)](_0x3b490c[_0x20c0aa(0x271)]);if(!_0x4736cd||!_0x441aa8)return;const _0x1dd496=_0x441aa8==null?void 0x0:_0x441aa8[_0x20c0aa(0x2f9)]();for(const [_0x405117,_0x126211]of _0x4736cd['entries']())for(const [_0x4fad57,_0x1d48de]of _0x126211[_0x20c0aa(0x15f)]()){const {sourceRangeInfo:_0x46fdd9}=_0x1d48de;if(_0x46fdd9['unitId']===_0x4c8d46&&_0x46fdd9[_0x20c0aa(0x271)]===_0x1ad38c['subUnitId']&&_0x49f92f[_0x20c0aa(0x23f)]['contains'](_0x2b0ecd,_0x46fdd9['range'])){const _0x20177d={'row':_0x46fdd9[_0x20c0aa(0x234)][_0x20c0aa(0x34c)]-_0x2b0ecd[_0x20c0aa(0x34c)],'col':_0x46fdd9['range'][_0x20c0aa(0x421)]-_0x2b0ecd[_0x20c0aa(0x421)]},_0x829058={'unitId':_0x4c8d46,'subUnitId':_0x3b490c[_0x20c0aa(0x271)],'sheetName':_0x1dd496,'range':{'startRow':_0x422b25['startRow']+_0x20177d[_0x20c0aa(0x1b1)],'endRow':_0x422b25[_0x20c0aa(0x34c)]+_0x20177d[_0x20c0aa(0x1b1)]+_0x46fdd9[_0x20c0aa(0x234)][_0x20c0aa(0x2b0)]-_0x46fdd9[_0x20c0aa(0x234)][_0x20c0aa(0x34c)],'startColumn':_0x422b25[_0x20c0aa(0x421)]+_0x20177d[_0x20c0aa(0x341)],'endColumn':_0x422b25['startColumn']+_0x20177d[_0x20c0aa(0x341)]+_0x46fdd9['range'][_0x20c0aa(0x39d)]-_0x46fdd9['range'][_0x20c0aa(0x421)]}};_0xf3e7d8[_0x20c0aa(0x30f)](_0x4fad57,_0x829058);const _0x1bfedd={..._0x1d48de,'sourceRangeInfo':_0x829058};this[_0x20c0aa(0x2ed)](_0x4c8d46,_0x3b490c[_0x20c0aa(0x271)],_0x4fad57,_0x1bfedd),this[_0x20c0aa(0x242)]({'unitId':_0x4c8d46,'token':_0x4fad57,'type':_0x37eb19[_0x20c0aa(0x1b5)],'oldSourceRangeInfo':_0x46fdd9,'dataRangeInfo':_0x829058,'targetCellInfo':_0x1d48de[_0x20c0aa(0x1d0)]}),this[_0x20c0aa(0x413)]({'unitId':_0x4c8d46,'subUnitId':_0x3b490c[_0x20c0aa(0x271)],'oldSubUnitId':_0x405117,'pivotTableId':_0x4fad57,'pivotTableConfig':_0x1bfedd,'collectionConfig':_0xf3e7d8[_0x20c0aa(0x1d4)]()});}}}}[_0x5565f1(0x242)](_0x3c4253){const _0x45e91e=_0x5565f1;this[_0x45e91e(0x31a)]['next'](_0x3c4253);}[_0x5565f1(0x40e)](_0x4445f6){const _0x4420b0=_0x5565f1;let _0x836010=this[_0x4420b0(0x257)][_0x4420b0(0x326)](_0x4445f6);return _0x836010||(_0x836010=new _0x47dfc5(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x4420b0(0x246)](_0x4445f6,_0x836010)),_0x836010;}['getCollection'](_0x195f83,_0x498203){const _0x36756f=_0x5565f1;return this['getDataFieldManager'](_0x195f83)[_0x36756f(0x40d)][_0x498203];}[_0x5565f1(0x1c6)](_0xe4fdd0,_0x3552d1,_0x5b0702){const _0xc9b9a9=_0x5565f1;return this[_0xc9b9a9(0x40e)](_0xe4fdd0)[_0xc9b9a9(0x1c6)](_0x3552d1,_0x5b0702);}[_0x5565f1(0x3f5)](_0x4b0eab,_0x4f7308){const _0x40a84c=_0x5565f1;let _0x239389=this[_0x40a84c(0x3aa)][_0x40a84c(0x326)](_0x4b0eab);_0x239389||(_0x239389=new Map(),this[_0x40a84c(0x3aa)]['set'](_0x4b0eab,_0x239389));let _0x2bee0d=_0x239389[_0x40a84c(0x326)](_0x4f7308);return _0x2bee0d||(_0x2bee0d=new Map(),_0x239389[_0x40a84c(0x246)](_0x4f7308,_0x2bee0d)),_0x2bee0d;}[_0x5565f1(0x2ed)](_0x28d6c6,_0x36a63b,_0x5aa34a,_0x341174){const _0x40309a=_0x5565f1;this['_ensurePivotMap'](_0x28d6c6,_0x36a63b)[_0x40309a(0x246)](_0x5aa34a,_0x341174);}[_0x5565f1(0x11b)](_0x8882b3,_0x440253,_0x1607c2){const _0x239572=_0x5565f1;var _0x3c11da,_0x207cdd,_0x24efc8,_0x21883f;((_0x207cdd=(_0x3c11da=this[_0x239572(0x3aa)][_0x239572(0x326)](_0x8882b3))==null?void 0x0:_0x3c11da[_0x239572(0x326)](_0x440253))==null?void 0x0:_0x207cdd[_0x239572(0x326)](_0x1607c2))&&((_0x21883f=(_0x24efc8=this[_0x239572(0x3aa)]['get'](_0x8882b3))==null?void 0x0:_0x24efc8[_0x239572(0x326)](_0x440253))==null||_0x21883f['delete'](_0x1607c2));}['_updatePivotTableInstanceCache'](_0x1c5f09,_0xf0b940){const _0x41a784=_0x5565f1;this[_0x41a784(0x353)][_0x41a784(0x246)](_0x1c5f09,_0xf0b940);}[_0x5565f1(0x255)](_0x51e4e5){const _0x5085f3=_0x5565f1;this[_0x5085f3(0x353)][_0x5085f3(0x43d)](_0x51e4e5);}['_ensureViewDataMap'](_0x166cfd,_0x1faed1){const _0x476424=_0x5565f1;let _0x2fcf41=this['_viewData'][_0x476424(0x326)](_0x166cfd);_0x2fcf41||(_0x2fcf41=new Map(),this['_viewData'][_0x476424(0x246)](_0x166cfd,_0x2fcf41));let _0x179041=_0x2fcf41[_0x476424(0x326)](_0x1faed1);return _0x179041||(_0x179041=new Map(),_0x2fcf41[_0x476424(0x246)](_0x1faed1,_0x179041)),_0x179041;}[_0x5565f1(0x413)](_0x2359ed){const _0x3fe259=_0x5565f1,{unitId:_0x148587,subUnitId:_0x43be4d,pivotTableId:_0x7e8346,pivotTableConfig:_0x5932bf,collectionConfig:_0x1290d9}=_0x2359ed,_0x247654={'unitId':_0x148587,'subUnitId':_0x43be4d,'oldSubUnitId':_0x43be4d,'pivotTableId':_0x7e8346,'pivotTableConfig':_0x5932bf,'collectionConfig':_0x1290d9};this['_commandService'][_0x3fe259(0x41e)](_0x3bac17['id'],_0x247654,{'onlyLocal':!0x0});}[_0x5565f1(0x11a)](_0x5af633,_0x44b191,_0x53a45f,_0x209b55,_0x5a222f,_0x5a5497,_0x1569bb,_0x3863be=!0x1){const _0x328725=_0x5565f1;var _0x73583b;this[_0x328725(0x393)][_0x328725(0x41e)](_0xd023a5['id'],{'single':{'unitId':_0x5af633,'subUnitId':_0x44b191,'type':_0x53a45f,'pivotTableId':_0x209b55,'view':_0x5a222f,'pivotConfig':_0x5a5497},'collectionConfig':{[_0x5af633]:_0x1569bb}},{'onlyLocal':!0x0});const _0x3e7db7=!!((_0x73583b=this[_0x328725(0x233)](_0x209b55))!=null&&_0x73583b[_0x328725(0x27f)]()),_0x4c62ba=this[_0x328725(0x215)](_0x5af633,_0x44b191,_0x209b55);_0x4c62ba&&this[_0x328725(0x19a)]({'view':_0x5a222f,'pivotTableId':_0x209b55,'textInfo':this[_0x328725(0x191)](),'isEmpty':_0x3e7db7,'targetCellInfo':_0x4c62ba[_0x328725(0x1d0)]},_0x3863be);}[_0x5565f1(0x19a)](_0x5bdf59,_0x59c530){const _0x3cf6c0=_0x5565f1,{targetCellInfo:_0x158584,pivotTableId:_0x121c0d}=_0x5bdf59,{unitId:_0x1a233b,subUnitId:_0x545bbf}=_0x158584,_0xba2678=this[_0x3cf6c0(0x41f)](_0x1a233b,_0x545bbf),_0x45ef3d=_0xba2678['get'](_0x121c0d);let _0x2df037,_0x1d7e8b;_0x45ef3d&&(_0x2df037=_0x45ef3d['rangeCache'],_0x1d7e8b=_0x45ef3d['matrix']);const {rangesCache:_0x84f8ec,matrix:_0x3992cd}=_0x1e201e(_0x5bdf59);_0xba2678['set'](_0x121c0d,{'rangeCache':_0x84f8ec,'matrix':_0x3992cd,'oldMatrix':_0x1d7e8b,'oldRangeCache':_0x2df037}),_0x59c530||this[_0x3cf6c0(0x318)][_0x3cf6c0(0x409)]({'unitId':_0x1a233b,'subUnitId':_0x545bbf,'pivotTableId':_0x121c0d});}[_0x5565f1(0x32f)](_0x1c36d2,_0x25a381,_0x3b54f9,_0x44e964,_0x4c512e){const _0x4598bc=_0x5565f1;this[_0x4598bc(0x2ed)](_0x1c36d2,_0x25a381,_0x3b54f9,_0x4c512e),this[_0x4598bc(0x1f9)](_0x3b54f9,_0x44e964);}['removePivotTable'](_0x38bf37,_0x412150,_0x9f7a17){const _0x2a8aa1=_0x5565f1,_0x204bf0=this[_0x2a8aa1(0x40e)](_0x38bf37);_0x204bf0['getNoUsedDataFieldIds'](_0x9f7a17)['forEach'](_0x8f04b=>{const _0x45e902=_0x2a8aa1;_0x204bf0[_0x45e902(0x178)](_0x8f04b);}),this['removeCollections'](_0x38bf37,_0x9f7a17),this['_deleteModelCache'](_0x38bf37,_0x412150,_0x9f7a17),this[_0x2a8aa1(0x255)](_0x9f7a17);}[_0x5565f1(0x190)](_0x557a64,_0x3f29e9,_0x1becad,_0x13418d){const _0x2f05cf=_0x5565f1;this[_0x2f05cf(0x2ed)](_0x557a64,_0x3f29e9,_0x1becad,_0x13418d);}[_0x5565f1(0x215)](_0x134ef9,_0xcc95c0,_0x1bfd3a){const _0x16cf39=_0x5565f1;var _0x337014,_0xcda62a;const _0x33d38a=(_0xcda62a=(_0x337014=this[_0x16cf39(0x3aa)]['get'](_0x134ef9))==null?void 0x0:_0x337014[_0x16cf39(0x326)](_0xcc95c0))==null?void 0x0:_0xcda62a[_0x16cf39(0x326)](_0x1bfd3a);if(_0x33d38a)return _0x33d38a;}[_0x5565f1(0x3de)](_0x1476be,_0x642066,_0x497a7c){const _0xa997=_0x5565f1;var _0x58ce37,_0x49de8b;const _0x3c2dee=(_0x49de8b=(_0x58ce37=this[_0xa997(0x3aa)]['get'](_0x1476be))==null?void 0x0:_0x58ce37[_0xa997(0x326)](_0x642066))==null?void 0x0:_0x49de8b[_0xa997(0x326)](_0x497a7c);if(_0x3c2dee)return _0x3c2dee['fieldsConfig'];}[_0x5565f1(0x233)](_0x2eefdc){const _0x2fdf78=_0x5565f1;return this[_0x2fdf78(0x353)]['get'](_0x2eefdc);}['deleteUnitId'](_0x589ca5){const _0x34075c=_0x5565f1;this[_0x34075c(0x3aa)]['delete'](_0x589ca5);const _0x31c329=this[_0x34075c(0x257)][_0x34075c(0x326)](_0x589ca5);_0x31c329&&(_0x31c329[_0x34075c(0x355)](),this['_dataFieldManagerCollection'][_0x34075c(0x43d)](_0x589ca5)),this['_viewData'][_0x34075c(0x43d)](_0x589ca5),this['needSameDeleteModel'][_0x34075c(0x350)](_0x30ee95=>{const _0x5e4eea=_0x34075c;_0x30ee95[_0x5e4eea(0x300)](_0x589ca5);});}[_0x5565f1(0x3cf)](_0x11d574,_0x44d435,_0x2a6122,_0x316566){const _0x4f3d45=_0x5565f1;return this[_0x4f3d45(0x40e)](_0x2a6122['unitId'])['addCollectionByJSON'](_0x11d574,_0x44d435,_0x2a6122,_0x316566);}[_0x5565f1(0x3e4)](_0x4dc898){const _0x3b2321=_0x5565f1;return this[_0x3b2321(0x40e)](_0x4dc898[_0x3b2321(0x32c)])[_0x3b2321(0x3e4)](_0x4dc898);}[_0x5565f1(0x1f7)](_0x4e4a68,_0x220aff,_0x2bd28f){const _0x31dae8=_0x5565f1;this['getDataFieldManager'](_0x2bd28f[_0x31dae8(0x32c)])[_0x31dae8(0x1f7)](_0x4e4a68,_0x220aff,_0x2bd28f);}['removeDataField'](_0x46ec94,_0x171d11){const _0x5b5201=_0x5565f1;this['getDataFieldManager'](_0x46ec94)[_0x5b5201(0x178)](_0x171d11);}[_0x5565f1(0x226)](_0x22e1df,_0x529050){const _0xa6ff86=_0x5565f1;this[_0xa6ff86(0x40e)](_0x22e1df)[_0xa6ff86(0x156)](_0x529050);}[_0x5565f1(0x1dd)](_0x525bcf,_0x614181){const _0x5cc5a5=_0x5565f1;var _0x5a4807;return(_0x5a4807=this[_0x5cc5a5(0x3aa)][_0x5cc5a5(0x326)](_0x525bcf))==null?void 0x0:_0x5a4807['get'](_0x614181);}[_0x5565f1(0x442)](_0x78cafc){const _0x1e7a67=_0x5565f1;for(const [_0x4a8972,_0x41a8ae]of this[_0x1e7a67(0x3aa)][_0x1e7a67(0x15f)]())for(const [_0x250732,_0x3cd209]of _0x41a8ae['entries']())if(_0x3cd209[_0x1e7a67(0x189)](_0x78cafc))return{'unitId':_0x4a8972,'subUnitId':_0x250732};return null;}[_0x5565f1(0x187)](_0x47e4a9,_0x53e1be,_0x25911e,_0x293aa3){const _0x2f1ce7=_0x5565f1,_0x478fd6=this[_0x2f1ce7(0x41f)](_0x47e4a9,_0x53e1be);_0x293aa3?_0x478fd6['set'](_0x25911e,_0x293aa3):_0x478fd6[_0x2f1ce7(0x43d)](_0x25911e),this[_0x2f1ce7(0x318)]['next']({'unitId':_0x47e4a9,'subUnitId':_0x53e1be,'pivotTableId':_0x25911e});}[_0x5565f1(0x355)](){super['dispose']();}['getViewData'](_0xe3e0c7,_0x2dbbac,_0x5503f9){const _0x5625e1=_0x5565f1;var _0x595dfb,_0x5bb998;const _0x1e6429=(_0x5bb998=(_0x595dfb=this[_0x5625e1(0x29a)][_0x5625e1(0x326)](_0xe3e0c7))==null?void 0x0:_0x595dfb[_0x5625e1(0x326)](_0x2dbbac))==null?void 0x0:_0x5bb998[_0x5625e1(0x326)](_0x5503f9);return _0x1e6429||null;}['addDirtyPivotTable'](_0x2f038e){const _0x2b5a29=_0x5565f1;this[_0x2b5a29(0x14f)](_0x2f038e);}[_0x5565f1(0x14f)](_0x4ca21c){const _0x4eb6e9=_0x5565f1,{token:_0x55d3a7,unitId:_0x5b2f06,subUnitId:_0x7c53bf}=_0x4ca21c,_0x236135=_0x5b2f06+'-'+_0x7c53bf+'-'+_0x55d3a7;this[_0x4eb6e9(0x173)][_0x4eb6e9(0x326)](_0x236135)&&clearTimeout(this[_0x4eb6e9(0x173)][_0x4eb6e9(0x326)](_0x236135));const _0x405c85=setTimeout(()=>{const _0x555bc4=_0x4eb6e9;this[_0x555bc4(0x391)](_0x4ca21c),this[_0x555bc4(0x173)][_0x555bc4(0x43d)](_0x236135);},_0x576efe);this[_0x4eb6e9(0x173)]['set'](_0x236135,_0x405c85);}['queryDirtyPivotTable'](_0x594a27){const _0x2e1a12=_0x5565f1,{unitId:_0x5e301e,subUnitId:_0x4ae014,token:_0x3f0f63,type:_0x386b2b,pivotConfig:_0x393588}=_0x594a27,_0x26c0fc=this[_0x2e1a12(0x233)](_0x3f0f63),_0x4a1bc1=_0x26c0fc==null?void 0x0:_0x26c0fc['query'](),_0x33149f=_0x393588!=null?_0x393588:this[_0x2e1a12(0x215)](_0x5e301e,_0x4ae014,_0x3f0f63);_0x33149f&&(_0x33149f[_0x2e1a12(0x27f)]=!!(_0x26c0fc!=null&&_0x26c0fc[_0x2e1a12(0x27f)]())),(_0x4a1bc1||_0x386b2b===_0x1e0edb[_0x2e1a12(0x287)])&&this['updateView'](_0x5e301e,_0x4ae014,_0x386b2b,_0x3f0f63,_0x4a1bc1,_0x33149f,this[_0x2e1a12(0x40e)](_0x5e301e)['toJSON']());}[_0x5565f1(0x1d4)](_0x179efb){const _0x1f91a4=_0x5565f1,_0x387c52={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x179efb)&&(_0x387c52[_0x1f91a4(0x214)][_0x179efb]=this[_0x1f91a4(0x40e)](_0x179efb)[_0x1f91a4(0x1d4)]()),this[_0x1f91a4(0x3aa)][_0x1f91a4(0x326)](_0x179efb)){_0x387c52['pivotTableConfigs'][_0x179efb]={};const _0x29e932=this[_0x1f91a4(0x3aa)][_0x1f91a4(0x326)](_0x179efb);_0x29e932!=null&&_0x29e932[_0x1f91a4(0x422)]&&[..._0x29e932[_0x1f91a4(0x37a)]()]['forEach'](_0x1ca9e4=>{const _0x34a41b=_0x1f91a4,_0x35ea7f=_0x29e932[_0x34a41b(0x326)](_0x1ca9e4);_0x35ea7f!=null&&_0x35ea7f['size']&&(_0x387c52[_0x34a41b(0x3e0)][_0x179efb][_0x1ca9e4]={},[..._0x35ea7f[_0x34a41b(0x37a)]()][_0x34a41b(0x350)](_0x1dd9a4=>{const _0xdf9791=_0x34a41b,_0x4093e2=_0x35ea7f['get'](_0x1dd9a4);_0x4093e2&&(_0x387c52[_0xdf9791(0x3e0)][_0x179efb][_0x1ca9e4][_0x1dd9a4]=_0x4093e2);}));});}return _0x387c52;}[_0x5565f1(0x401)](_0x91e47f){const _0x214b3c=_0x5565f1;var _0x5633b9;const {dataFieldManagerConfig:_0x50ad51,pivotTableConfigs:_0x42f7ed}=_0x91e47f;_0x50ad51&&Object[_0x214b3c(0x37a)](_0x50ad51)[_0x214b3c(0x350)](_0x3d9c3c=>{const _0xe9d55d=_0x214b3c;this['getDataFieldManager'](_0x3d9c3c)[_0xe9d55d(0x401)](_0x50ad51[_0x3d9c3c]);});const _0x31ce6b=[];if(_0x42f7ed){const _0x36d976=(_0x5633b9=this[_0x214b3c(0x27c)][_0x214b3c(0x326)](_0x49f92f[_0x214b3c(0x404)])['getConfig'](_0x3e3faf[_0x214b3c(0x1da)]))!=null?_0x5633b9:{},{ls:_0x16a20c,pbk:_0xda00bd}=_0x36d976,_0x13954b=_0x183df5(_0x5078db,_0x16a20c,_0xda00bd)[_0x214b3c(0x124)];Object[_0x214b3c(0x37a)](_0x42f7ed)[_0x214b3c(0x350)](_0x14e45f=>{const _0x5b7780=_0x214b3c;let _0x5c4ef7=0x0;const _0x5e0a26=_0x42f7ed[_0x14e45f];Object[_0x5b7780(0x37a)](_0x5e0a26)['forEach'](_0x680e71=>{const _0x56f2f2=_0x5b7780,_0x13bd67=_0x5e0a26[_0x680e71];Object[_0x56f2f2(0x37a)](_0x13bd67)[_0x56f2f2(0x350)](_0x15b8a1=>{const _0x3d339b=_0x56f2f2,_0x223e0d=_0x13bd67[_0x15b8a1];if(_0x223e0d){if(_0x5c4ef7>=_0x13954b)return;_0x5c4ef7++;const _0x560856=this[_0x3d339b(0x40e)](_0x14e45f),_0x374268=_0x560856['collections'][_0x15b8a1],_0x9a1c1c=_0x374268[_0x3d339b(0x35a)]();let _0x54dda0=0x0;const _0x1a0354=[];for(const _0x5c9d88 of _0x9a1c1c){const _0x9e5754=_0x374268[_0x3d339b(0x27e)](_0x5c9d88);if(_0x16b0d8[_0x3d339b(0x123)](_0x9e5754)){const _0x276854=_0x9e5754[_0x3d339b(0x2e2)](),_0x1c6156=_0x374268[_0x3d339b(0x27e)](_0x276854);_0x1c6156&&_0x1a0354[_0x3d339b(0x254)]([_0x9e5754,_0x1c6156]);continue;}_0x560856[_0x3d339b(0x3d2)](_0x5c9d88,_0x223e0d[_0x3d339b(0x2b1)],_0x54dda0),_0x54dda0++;}_0x1a0354[_0x3d339b(0x350)](([_0xda0a14,_0x4b9660])=>{const _0x2fb93c=_0x3d339b;_0xda0a14[_0x2fb93c(0x116)](_0x4b9660);});const _0x4e011a=new _0x16b0d8[(_0x3d339b(0x43c))](_0x374268);_0x4e011a[_0x3d339b(0x401)](_0x223e0d[_0x3d339b(0x1be)]),this[_0x3d339b(0x32f)](_0x14e45f,_0x680e71,_0x15b8a1,_0x4e011a,_0x223e0d);const _0x596009=_0x4e011a[_0x3d339b(0x3c2)]();_0x31ce6b['push']({'unitId':_0x14e45f,'subUnitId':_0x680e71,'pivotTableId':_0x15b8a1,'view':_0x596009[_0x3d339b(0x1d4)](),'pivotConfig':_0x223e0d,'type':_0x1e0edb[_0x3d339b(0x2d5)]});const _0x2b6b54=!!_0x4e011a['isEmpty'](),_0x1d6e9e={'view':_0x596009,'pivotTableId':_0x15b8a1,'textInfo':this[_0x3d339b(0x191)](),'isEmpty':_0x2b6b54,'targetCellInfo':_0x223e0d[_0x3d339b(0x1d0)]};this[_0x3d339b(0x19a)](_0x1d6e9e,!0x1);}});});});}_0x50ad51&&Object[_0x214b3c(0x37a)](_0x50ad51)['forEach'](_0x2a903e=>{const _0x35408c=_0x214b3c,_0x511504=this[_0x35408c(0x40e)](_0x2a903e);this[_0x35408c(0x280)][_0x35408c(0x409)](_0x511504['collections']);}),this['_commandService'][_0x214b3c(0x41e)](_0xd023a5['id'],{'batch':_0x31ce6b,'collectionConfig':_0x50ad51},{'onlyLocal':!0x0});}[_0x5565f1(0x263)](){const _0x41b36b=_0x5565f1;this['disposeWithMe'](this[_0x41b36b(0x135)][_0x41b36b(0x1e5)]({'toJson':_0x56af44=>JSON[_0x41b36b(0x362)](this[_0x41b36b(0x1d4)](_0x56af44)),'parseJson':_0x106aeb=>{const _0x53035f=_0x41b36b;if(!_0x106aeb)return{};try{return JSON[_0x53035f(0x3ac)](_0x106aeb);}catch{return{};}},'businesses':[_0x49f92f[_0x41b36b(0x1b7)][_0x41b36b(0x3da)]],'pluginName':_0x5eb740,'onLoad':(_0x1e54f7,_0x174c83)=>{const _0x2a143f=_0x41b36b;this[_0x2a143f(0x401)](_0x174c83);},'onUnLoad':_0x8f6ce4=>{const _0x1a723f=_0x41b36b;this[_0x1a723f(0x300)](_0x8f6ce4);}}));}},_0x47953f[_0x5565f1(0x120)]=_0xd19d19([_0x5a6bb5(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f['Injector'])),_0x5a6bb5(0x1,_0x49f92f[_0x5565f1(0x26f)]),_0x5a6bb5(0x2,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x15b)])),_0x5a6bb5(0x3,_0x49f92f[_0x5565f1(0x3fc)]),_0x5a6bb5(0x4,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x28a)]))],_0x47953f[_0x5565f1(0x120)]);const _0x2e1d4e={0x0:{0x0:{'v':_0x5565f1(0x209),'s':_0x42d7b5}},0x2:{0x1:{'v':'','s':_0x42d7b5},0x2:{'v':'','s':_0x42d7b5},0x3:{'v':_0x5565f1(0x1d7),'s':_0x42d7b5},0x4:{'v':'','s':_0x42d7b5},0x5:{'v':'','s':_0x42d7b5}},0x3:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0x4:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0x5:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0x6:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0x7:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0x8:{0x0:{'v':_0x5565f1(0x1b1),'s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':_0x5565f1(0x159),'s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0x9:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0xa:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0xb:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0xc:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}},0xd:{0x0:{'v':'','s':_0x42d7b5},0x1:{'v':'','s':_0x1ff51d},0x2:{'v':'','s':_0x1ff51d},0x3:{'v':'','s':_0x1ff51d},0x4:{'v':'','s':_0x1ff51d},0x5:{'v':'','s':_0x1ff51d}}},_0xebae6f={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x115cc1=(_0x4164bc,_0x34551c)=>{const _0x47e2e6=_0x5565f1,_0x3b36c6=new _0x49f92f[(_0x47e2e6(0x38d))](),_0x41cd41=new _0x49f92f[(_0x47e2e6(0x38d))](_0x2e1d4e),{row:_0x184f3e,col:_0x12dab0}=_0x34551c;_0x41cd41['forValue']((_0x3e5827,_0x283e48,_0x56b435)=>{const _0x24f298=_0x47e2e6;let _0x62a3ba='';_0x56b435['v']==='filter'?_0x62a3ba=_0x4164bc[_0x24f298(0x209)]:_0x56b435['v']===_0x24f298(0x1b1)?_0x62a3ba=_0x4164bc['row']:_0x56b435['v']===_0x24f298(0x1d7)?_0x62a3ba=_0x4164bc[_0x24f298(0x1d7)]:_0x56b435['v']==='values'&&(_0x62a3ba=_0x4164bc[_0x24f298(0x159)]),_0x3b36c6[_0x24f298(0x3c9)](_0x3e5827+_0x184f3e,_0x283e48+_0x12dab0,{..._0x56b435,'v':_0x62a3ba});});const _0x3c5c5a=_0x49f92f[_0x47e2e6(0x2b5)][_0x47e2e6(0x1e3)](_0xebae6f);return Object[_0x47e2e6(0x37a)](_0xebae6f)[_0x47e2e6(0x350)](_0x38f548=>{const _0x383e2e=_0x47e2e6;_0x3c5c5a[_0x38f548]=_0xebae6f[_0x38f548][_0x383e2e(0x19f)](_0x46a219=>({..._0x46a219,'startRow':_0x46a219[_0x383e2e(0x34c)]+_0x184f3e,'endRow':_0x46a219['endRow']+_0x184f3e,'startColumn':_0x46a219['startColumn']+_0x12dab0,'endColumn':_0x46a219[_0x383e2e(0x39d)]+_0x12dab0}));}),{'matrixCache':_0x3b36c6,'rangesCache':_0x3c5c5a};};function _0x3c038e(_0x307f1e,_0x2c3b73){const _0x326c8c=_0x5565f1;let _0x49873f='';const _0x11d893=this[_0x326c8c(0x191)]();switch(_0x2c3b73){case _0x16b0d8[_0x326c8c(0x2de)][_0x326c8c(0x423)]:_0x49873f=_0x11d893[_0x326c8c(0x2d0)]+_0x307f1e;break;case _0x16b0d8[_0x326c8c(0x2de)][_0x326c8c(0x124)]:_0x49873f=_0x11d893[_0x326c8c(0x38f)]+_0x307f1e;break;case _0x16b0d8['PivotSubtotalTypeEnum'][_0x326c8c(0x25b)]:_0x49873f=_0x11d893[_0x326c8c(0x19c)]+_0x307f1e;break;case _0x16b0d8[_0x326c8c(0x2de)][_0x326c8c(0x3b0)]:_0x49873f=_0x11d893[_0x326c8c(0x23d)]+_0x307f1e;break;case _0x16b0d8[_0x326c8c(0x2de)]['min']:_0x49873f=_0x11d893['sheets-pivot.minName']+_0x307f1e;break;case _0x16b0d8['PivotSubtotalTypeEnum'][_0x326c8c(0x2ba)]:_0x49873f=_0x11d893[_0x326c8c(0x324)]+_0x307f1e;break;case _0x16b0d8['PivotSubtotalTypeEnum'][_0x326c8c(0x201)]:_0x49873f=_0x11d893['sheets-pivot.stdDevName']+_0x307f1e;break;case _0x16b0d8[_0x326c8c(0x2de)]['stdDevp']:_0x49873f=_0x11d893[_0x326c8c(0x25c)]+_0x307f1e;break;case _0x16b0d8[_0x326c8c(0x2de)][_0x326c8c(0x26b)]:_0x49873f=_0x11d893['sheets-pivot.sumName']+_0x307f1e;break;case _0x16b0d8[_0x326c8c(0x2de)][_0x326c8c(0x152)]:_0x49873f=_0x11d893[_0x326c8c(0x36e)]+_0x307f1e;break;case _0x16b0d8['PivotSubtotalTypeEnum']['varp']:_0x49873f=_0x11d893[_0x326c8c(0x27b)]+_0x307f1e;break;default:_0x49873f=_0x307f1e;break;}return _0x49873f;}function _0x40a48d(_0x2d296d,_0xb4927e,_0x13e4d1,_0x3e3fb6,_0x562dc4){const _0x33e2d0=_0x5565f1;var _0x578826,_0x214401,_0xf509b7,_0x4ca98c,_0x36e38e;const _0x58fa15=_0x49f92f[_0x33e2d0(0x42d)](_0x2d296d,_0xb4927e),{rangesInfo:_0x5e20b8,areaInfo:_0x5bfa13,headerMap:_0x4031ec}=_0x562dc4;if(!_0x5e20b8||!_0x5bfa13||!_0x4031ec)return;const _0x2eacde=Object['keys'](_0x5e20b8)[_0x33e2d0(0x34e)](_0x329485=>_0x5e20b8[_0x329485]['some'](_0x11900c=>_0x49f92f[_0x33e2d0(0x23f)][_0x33e2d0(0x3a6)](_0x11900c,_0x58fa15))),_0x18c95e=_0x5bfa13;let _0xe754f4,_0x15d966,_0x217b32;if(_0x2eacde==='rowRanges')_0xe754f4=(_0x578826=_0x18c95e==null?void 0x0:_0x18c95e['rowInfo'])==null?void 0x0:_0x578826[_0x2d296d],_0x15d966=(_0x214401=_0x4031ec==null?void 0x0:_0x4031ec[_0x33e2d0(0x3eb)])==null?void 0x0:_0x214401[_0xb4927e],_0x217b32=_0x15d966==null?void 0x0:_0x15d966[_0x33e2d0(0x292)];else{if(_0x2eacde===_0x33e2d0(0x170))_0xe754f4=(_0xf509b7=_0x18c95e==null?void 0x0:_0x18c95e[_0x33e2d0(0x126)])==null?void 0x0:_0xf509b7[_0xb4927e],_0x15d966=(_0x4ca98c=_0x4031ec[_0x33e2d0(0x20d)])==null?void 0x0:_0x4ca98c[_0x2d296d+0x1+_0xb4927e-_0x5e20b8[_0x33e2d0(0x170)][0x0][_0x33e2d0(0x421)]],_0x217b32=_0x15d966==null?void 0x0:_0x15d966['tableFieldId'];else{if(_0x2eacde===_0x33e2d0(0x2d2))_0xe754f4=(_0x36e38e=_0x18c95e==null?void 0x0:_0x18c95e[_0x33e2d0(0x35d)])==null?void 0x0:_0x36e38e[_0xb4927e],_0x217b32=_0xe754f4==null?void 0x0:_0xe754f4[_0x33e2d0(0x292)];else{if(_0x2eacde===_0x33e2d0(0x3d1)){const _0xfcb669=_0x13e4d1==null?void 0x0:_0x13e4d1['fi'];_0xfcb669!==void 0x0&&(_0x217b32=_0x3e3fb6[_0x33e2d0(0x19d)](_0xfcb669));}}}}return{'filterId':_0x217b32,'info':_0xe754f4,'data':_0x13e4d1,'headerInfo':_0x15d966};}function _0x493754(_0x4ab5d3,_0x3cffe7,_0x537f92){const _0x124abc=_0x5565f1,_0x3d7370=_0x4ab5d3['dataFieldsCollection'],_0x1e2c23=_0x3d7370[_0x124abc(0x35a)](),_0x44fe22=new Set();_0x4ab5d3[_0x124abc(0x2c9)](_0x55e400=>{const _0x4842e9=_0x124abc;_0x44fe22['add'](_0x55e400[_0x4842e9(0x33c)]);});const _0x79d85a=_0x1e2c23[_0x124abc(0x19f)](_0x5cc99f=>{const _0x1f740f=_0x124abc,_0xb1fc99=_0x3d7370[_0x1f740f(0x27e)](_0x5cc99f);return{'checked':_0x44fe22[_0x1f740f(0x189)](_0x5cc99f),'dataFieldId':_0xb1fc99['id'],'id':_0xb1fc99['id'],'name':_0x3d7370[_0x1f740f(0x20b)](_0xb1fc99['id']),'type':_0xb1fc99[_0x1f740f(0x3be)](),'pivotTableId':_0x3cffe7};}),_0x22c537=[];_0x4ab5d3[_0x124abc(0x380)](_0x16b0d8[_0x124abc(0x440)][_0x124abc(0x3b6)],_0x1832ee=>{const _0x118a24=_0x124abc;_0x22c537[_0x118a24(0x254)]({'dataFieldId':_0x1832ee[_0x118a24(0x33c)],'tableFieldId':_0x1832ee['getId'](),'displayName':_0x1832ee[_0x118a24(0x20b)]()});});const _0x5c0d40=[];_0x4ab5d3[_0x124abc(0x380)](_0x16b0d8[_0x124abc(0x440)][_0x124abc(0x28b)],_0x544bdc=>{const _0x3559e8=_0x124abc;_0x5c0d40[_0x3559e8(0x254)]({'dataFieldId':_0x544bdc[_0x3559e8(0x33c)],'tableFieldId':_0x544bdc['getId'](),'displayName':_0x544bdc['getDisplayName']()});});const _0x588cb4=[];if(_0x4ab5d3[_0x124abc(0x380)](_0x16b0d8[_0x124abc(0x440)][_0x124abc(0x359)],_0x3835ed=>{const _0x433a3f=_0x124abc;_0x588cb4['push']({'dataFieldId':_0x3835ed['dataFieldId'],'tableFieldId':_0x3835ed[_0x433a3f(0x428)](),'displayName':_0x3835ed['getDisplayName'](),'format':_0x3835ed['getFormat'](),'subTotalType':_0x3835ed[_0x433a3f(0x1d1)]()});}),_0x588cb4[_0x124abc(0x37f)]>0x1){const _0x989358=_0x4ab5d3['getValueIndex']();(_0x4ab5d3[_0x124abc(0x2e7)]()?_0x5c0d40:_0x22c537)[_0x124abc(0x3c4)](_0x989358,0x0,{'dataFieldId':'','tableFieldId':_0x124abc(0x16a),'displayName':_0x124abc(0x3f4)});}const _0x4d2385=[];_0x4ab5d3[_0x124abc(0x380)](_0x16b0d8[_0x124abc(0x440)][_0x124abc(0x34a)],_0x498c28=>{const _0x25d6f4=_0x124abc;_0x4d2385['push']({'dataFieldId':_0x498c28[_0x25d6f4(0x33c)],'tableFieldId':_0x498c28[_0x25d6f4(0x428)](),'displayName':_0x498c28['getDisplayName']()});});const _0x2f5fb6=_0x537f92[_0x124abc(0x2b1)];return{'sourceList':_0x79d85a,'sourceRange':_0x2f5fb6,'rowFields':_0x22c537,'columnFields':_0x5c0d40,'valueFields':_0x588cb4,'filterFields':_0x4d2385,'positionInfo':_0x537f92['targetCellInfo']};}function _0x159ebc(_0x4b11fa,_0x487c30,_0x37f737='',_0x5d5d22={}){const _0x379243=_0x5565f1,_0x1ac327=_0x4b11fa[_0x379243(0x326)](_0x49f92f[_0x379243(0x311)]);for(const _0x5d83de in _0x487c30)if(Object[_0x379243(0x2d6)][_0x379243(0x15a)][_0x379243(0x302)](_0x487c30,_0x5d83de)){const _0x431c1f=_0x37f737?_0x37f737+'.'+_0x5d83de:_0x5d83de;typeof _0x487c30[_0x5d83de]==_0x379243(0x412)&&_0x487c30[_0x5d83de]!==null&&!Array[_0x379243(0x133)](_0x487c30[_0x5d83de])?_0x159ebc(_0x4b11fa,_0x487c30[_0x5d83de],_0x431c1f,_0x5d5d22):_0x5d5d22[_0x431c1f]=_0x1ac327['t'](_0x431c1f);}return _0x5d5d22;}const _0x163af3=_0x190440=>{const _0x2447dc=_0x5565f1;if(!_0x190440)return[];const {rowRanges:_0x17d473,colRanges:_0x289e2a,cornerRanges:_0x4c6311,dataRanges:_0x46e5ef,pageRanges:_0x2e3589}=_0x190440,_0x401faf=[..._0x289e2a,..._0x17d473,..._0x46e5ef,..._0x4c6311]['filter'](_0x481500=>_0x481500['startRow']>=0x0&&_0x481500[_0x2447dc(0x421)]>=0x0&&_0x481500[_0x2447dc(0x2b0)]>=0x0&&_0x481500[_0x2447dc(0x39d)]>=0x0);let _0x2a45a5=Number['MAX_SAFE_INTEGER'],_0x3dbb1d=Number['MIN_SAFE_INTEGER'],_0x2bfb98=Number[_0x2447dc(0x1ff)],_0x1cb911=Number[_0x2447dc(0x333)];for(let _0x19fd82=0x0;_0x19fd82<_0x401faf['length'];_0x19fd82++)_0x2a45a5=Math[_0x2447dc(0x1fa)](_0x2a45a5,_0x401faf[_0x19fd82][_0x2447dc(0x34c)]),_0x3dbb1d=Math[_0x2447dc(0x3b0)](_0x3dbb1d,_0x401faf[_0x19fd82][_0x2447dc(0x2b0)]),_0x2bfb98=Math[_0x2447dc(0x1fa)](_0x2bfb98,_0x401faf[_0x19fd82][_0x2447dc(0x421)]),_0x1cb911=Math[_0x2447dc(0x3b0)](_0x1cb911,_0x401faf[_0x19fd82]['endColumn']);return[..._0x2e3589,{'startRow':_0x2a45a5,'endRow':_0x3dbb1d,'startColumn':_0x2bfb98,'endColumn':_0x1cb911}];};function _0x571aea(_0x20a296,_0x1fe0ab){const _0xfbcad1=_0x5565f1,_0x4e081f=_0x1fe0ab[_0xfbcad1(0x2c4)][_0xfbcad1(0x363)],{pivotTableId:_0x556b74,unitId:_0x542f79,subUnitId:_0x59cc71}=_0x1fe0ab;if(!_0x4e081f)return;const _0x10eb70=_0x20a296[_0xfbcad1(0x326)](_0x47953f[_0xfbcad1(0x120)]),_0x13e1df=_0x10eb70['getPivotTableInstance'](_0x556b74),_0x598f8e=_0x10eb70[_0xfbcad1(0x215)](_0x542f79,_0x59cc71,_0x556b74);if(!_0x13e1df||!_0x598f8e)return;const _0x336fda=_0x13e1df[_0xfbcad1(0x250)](_0x4e081f[_0xfbcad1(0x30d)]);if(!(_0x336fda!=null&&_0x336fda[_0xfbcad1(0x37f)]))return;const _0x1481e8=_0x598f8e[_0xfbcad1(0x2b1)],{unitId:_0x46cecf,subUnitId:_0x4e46dc,range:_0x323c2e}=_0x1481e8;let _0x2c22fc=0x0;const _0x2f3702=_0x13e1df[_0xfbcad1(0x2ec)][_0xfbcad1(0x35a)]()[_0xfbcad1(0x282)]((_0x4fae05,_0x5052b4)=>{const _0x493a82=_0xfbcad1;var _0xf8b3e3;const _0x8fcef4=(_0xf8b3e3=_0x13e1df['getDataFieldByDataFieldId'](_0x5052b4))==null?void 0x0:_0xf8b3e3[_0x493a82(0x29e)]();return _0x8fcef4&&(_0x4fae05[String(_0x2c22fc)]=_0x8fcef4),_0x2c22fc++,_0x4fae05;},{});return{'indexes':_0x336fda,'range':_0x323c2e,'sourceUnitId':_0x46cecf,'sourceSubUnitId':_0x4e46dc,'formatMap':_0x2f3702};}function _0xe56476(_0x4cf4a6,_0x57226e){const _0x4a11ac=_0x5565f1;if(!_0x4cf4a6||!_0x57226e)return!0x0;const _0x724463=_0x3e3faf[_0x4a11ac(0x329)](_0x18631d,_0x53dc2e),_0x45bd05=new Function(_0x4a11ac(0x387)+_0x724463)()(_0x4cf4a6,_0x57226e)[_0x4a11ac(0x24d)],_0x5f5b74=_0x3e3faf[_0x4a11ac(0x416)](_0x45bd05,'sf',_0x3e4104);return!((_0x45bd05==null?void 0x0:_0x45bd05['rt'])===_0x3e3faf['ReleaseType'][_0x4a11ac(0x34b)]&&!_0x5f5b74);}function _0x183df5(_0x2ae5c2,_0x2419f6,_0x52ea67){const _0xa5d47d=_0x5565f1,_0x456312={'count':_0x2ae5c2,'timeValid':!0x1};if(!_0x2419f6||!_0x52ea67)return _0x456312;const _0x249613=_0x3e3faf[_0xa5d47d(0x329)](_0x18631d,_0x53dc2e),_0x5908c5=new Function('return\x20'+_0x249613)()(_0x2419f6,_0x52ea67);if(_0x5908c5!=null&&_0x5908c5['valid']){const _0x100f8b=_0x5908c5[_0xa5d47d(0x24d)],_0xc4cc5f=_0x3e3faf[_0xa5d47d(0x416)](_0x100f8b,'sf',_0x3e4104);return{'count':_0x3e3faf[_0xa5d47d(0x202)](_0x100f8b,_0xc4cc5f,_0xa5d47d(0x2af),_0x2ae5c2,_0x2ae5c2,0x0),'timeValid':_0xc4cc5f};}return _0x456312;}function _0x59e5a3(_0x2d7146,_0xbdff1a,_0x5dda57,_0x11b3b4){const _0x3bd388=_0x5565f1,_0x2c2d79={'subUnitId':_0x5dda57,'unitId':_0xbdff1a,'cellValue':_0x29b248[_0x3bd388(0x34d)](_0x11b3b4)},_0x308b92=_0x29b248[_0x3bd388(0x3a8)](_0x2d7146,_0x2c2d79);let _0x97f35c=!0x1;return new _0x49f92f[(_0x3bd388(0x38d))](_0x308b92[_0x3bd388(0x266)])['forValue']((_0x1202fa,_0xaaa68a,_0x2831df)=>{const _0x53203e=_0x3bd388;if(!_0x97f35c&&_0x2831df&&(_0x2831df[_0x53203e(0x370)]||_0x2831df['f']||_0x2831df['p']||_0x2831df['s']||_0x2831df['si']||_0x2831df['t']||_0x2831df['v']))return _0x97f35c=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x29b248[_0x3bd388(0x283)]['id'],'params':_0x308b92},'setRangeValueRedoMutation':{'id':_0x29b248[_0x3bd388(0x283)]['id'],'params':_0x2c2d79},'shouldClear':_0x97f35c};}function _0x3ee25d(_0x55f20c){const {row:_0x253705,col:_0xf2fa0c}=_0x55f20c,_0x186607={'startRow':_0x253705,'endRow':_0x253705,'startColumn':_0xf2fa0c,'endColumn':_0xf2fa0c},_0x3a8f0c={'startRow':_0x253705+0x2,'endRow':_0x253705+0xe,'startColumn':_0xf2fa0c,'endColumn':_0xf2fa0c+0x6};return[_0x186607,_0x3a8f0c];}function _0x1fe094(_0x26f2a6,_0x118762,_0x357259){const _0x2703cf=_0x5565f1,{cornerView:_0x5a8c8f,rowView:_0x4ef039,colView:_0x5846d4,pageView:_0x4abcd6}=_0x26f2a6,{row:_0xf4952d,col:_0x3a74e9}=_0x118762;if(_0x357259)return{'rowCount':_0x1fdf30+_0xf4952d,'colCount':_0x4c45a2+_0x3a74e9};const _0x3f1c64=_0x4abcd6['lastRow']>-0x1?_0x4abcd6[_0x2703cf(0x204)]+0x1:0x0,_0x418b17=_0x4abcd6[_0x2703cf(0x29f)]>-0x1?_0x4abcd6[_0x2703cf(0x29f)]:0x0,_0x2537f6=_0xf4952d+_0x3f1c64+(_0x3f1c64?0x1:0x0)+_0x5a8c8f[_0x2703cf(0x12d)]+_0x4ef039['rowCount'],_0x52c792=_0x3a74e9+_0x418b17,_0x586049=_0x3a74e9+_0x5a8c8f['colCount']+_0x5846d4[_0x2703cf(0x32b)],_0x2de2c8=Math[_0x2703cf(0x3b0)](_0x52c792,_0x586049);return{'rowCount':_0x2537f6,'colCount':_0x2de2c8};}function _0x2535c3(_0x488c41,_0x4871cf,_0x240dba,_0x5cc4f6){const _0x5b679c=_0x5565f1,{row:_0x437cb0,col:_0xd50da9,unitId:_0x38ec75,subUnitId:_0x44e425}=_0x240dba,_0x233cbc=_0x1fe094(_0x4871cf,{'row':_0x437cb0,'col':_0xd50da9},_0x5cc4f6),_0x3396af=_0x488c41['get'](_0x49f92f['IUniverInstanceService']),_0x2efc85=_0x29b248[_0x5b679c(0x1a6)](_0x3396af,{'unitId':_0x38ec75,'subUnitId':_0x44e425}),_0x5ed92d=[],_0x2f3fe7=[];if(!_0x2efc85)return{'undos':_0x2f3fe7,'redos':_0x5ed92d};const {worksheet:_0x285fff}=_0x2efc85,_0x17062d=_0x285fff[_0x5b679c(0x2fb)](),_0x25207a=_0x285fff[_0x5b679c(0x2df)]();return _0x17062d<_0x233cbc['rowCount']&&(_0x5ed92d[_0x5b679c(0x254)]({'id':_0x29b248[_0x5b679c(0x438)]['id'],'params':{'unitId':_0x38ec75,'subUnitId':_0x44e425,'range':{'startRow':_0x17062d,'endRow':_0x233cbc[_0x5b679c(0x12d)]-0x1,'startColumn':0x0,'endColumn':_0x25207a-0x1}}}),_0x2f3fe7['push']({'id':_0x29b248[_0x5b679c(0x345)]['id'],'params':{'unitId':_0x38ec75,'subUnitId':_0x44e425,'range':{'startRow':_0x17062d,'endRow':_0x233cbc['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x25207a-0x1}}})),_0x25207a<_0x233cbc[_0x5b679c(0x32b)]&&(_0x5ed92d[_0x5b679c(0x254)]({'id':_0x29b248[_0x5b679c(0x2ae)]['id'],'params':{'unitId':_0x38ec75,'subUnitId':_0x44e425,'range':{'startRow':0x0,'endRow':_0x17062d-0x1,'startColumn':_0x25207a,'endColumn':_0x233cbc['colCount']-0x1}}}),_0x2f3fe7[_0x5b679c(0x254)]({'id':_0x29b248['RemoveColMutation']['id'],'params':{'unitId':_0x38ec75,'subUnitId':_0x44e425,'range':{'startRow':0x0,'endRow':_0x17062d-0x1,'startColumn':_0x25207a,'endColumn':_0x233cbc[_0x5b679c(0x32b)]-0x1}}})),{'undos':_0x2f3fe7,'redos':_0x5ed92d};}function _0x24f9bc(_0x544796){const _0x24026f=_0x5565f1;let _0x46f778=0x0;for(let _0x5d44c3=0x0;_0x5d44c3<_0x544796[_0x24026f(0x37f)];_0x5d44c3++){const _0x2616e5=_0x544796['charCodeAt'](_0x5d44c3);_0x2616e5>=0x4e00&&_0x2616e5<=0x9fff||_0x2616e5>=0x3000&&_0x2616e5<=0x303f||_0x2616e5>=0xff00&&_0x2616e5<=0xffef?_0x46f778+=0x2:_0x46f778+=0x1;}return _0x46f778;}function _0x19883d(_0x5b7e6b,_0x2465b0,_0x5b22ee,_0x4afb6f){const _0x4dc334=_0x5565f1;var _0x373931,_0x3dd886,_0x3e4884,_0x32bd52;const {rowCount:_0x401e1f,colCount:_0x76e4b1,headerMap:_0x2f5cfe}=_0x5b7e6b,_0x5d0857=0x64,_0x2e217b=Math['min'](_0x401e1f,_0x5d0857),_0xa3904=Math[_0x4dc334(0x1fa)](_0x76e4b1,_0x5d0857);let _0x141f7a='',_0x4d327d=0x0;for(let _0x4269bd=0x0;_0x4269bd<_0x2e217b;_0x4269bd++)for(let _0x59122c=0x0;_0x59122c<_0xa3904;_0x59122c++){const _0x1e00b2={...(_0x3dd886=(_0x373931=_0x5b7e6b[_0x4dc334(0x2c1)])==null?void 0x0:_0x373931[_0x4269bd])==null?void 0x0:_0x3dd886[_0x59122c]},_0x3224c4=(_0x3e4884=_0x2f5cfe[_0x4269bd])==null?void 0x0:_0x3e4884[_0x4dc334(0x292)],_0x4559d8=_0x4afb6f[_0x3224c4];let _0x296024=_0x5b7e6b['getValue'](_0x4269bd,_0x59122c);if(_0x1e00b2){const _0x1f70d4=_0x5b22ee?_0x59122c===0x0&&((_0x32bd52=_0x5b7e6b['getHeaderMapItem'](_0x59122c+0x1))==null?void 0x0:_0x32bd52[_0x4dc334(0x17d)]):!0x1;_0x296024=_0xb1d466(_0x1e00b2,_0x1f70d4,_0x4559d8,_0x2465b0);}if(_0x296024!==void 0x0){const _0x5dabd4=_0x24f9bc(String(_0x296024));_0x4d327d<_0x5dabd4&&(_0x141f7a=String(_0x296024),_0x4d327d=_0x5dabd4);}}return _0x141f7a;}function _0x5aa41d(_0x488f85){const _0x381ac3=_0x5565f1,{rowCount:_0x45e3ae,colCount:_0x2e34a0}=_0x488f85;let _0x2c98b0='',_0x5ddb99=0x0;for(let _0x36079f=_0x45e3ae-0x1;_0x36079f>0x0&&_0x36079f>_0x45e3ae-0x3;_0x36079f--)for(let _0x50e488=0x0;_0x50e488<_0x2e34a0;_0x50e488++){const _0x2806ec=_0x488f85[_0x381ac3(0x1b6)](_0x36079f,_0x50e488);if(_0x2806ec!==void 0x0){const _0x1668d3=String(_0x2806ec)[_0x381ac3(0x37f)];_0x5ddb99<_0x1668d3&&(_0x2c98b0=String(_0x2806ec),_0x5ddb99=_0x1668d3);}}return _0x2c98b0;}function _0x308247(_0x4d0aea){const _0x3cfecd=_0x5565f1,{rowCount:_0x23537c,colCount:_0x55acc2}=_0x4d0aea;let _0x109eef='',_0x213a9=0x0;for(let _0x1d46df=0x0;_0x1d46df<_0x23537c;_0x1d46df++)for(let _0x51a0b9=0x0;_0x51a0b9<_0x55acc2;_0x51a0b9++){const _0x5a8f3e=_0x4d0aea[_0x3cfecd(0x1b6)](_0x1d46df,_0x51a0b9);if(_0x5a8f3e!==void 0x0){const _0x497ca4=String(_0x5a8f3e)[_0x3cfecd(0x37f)];_0x213a9<_0x497ca4&&(_0x109eef=String(_0x5a8f3e),_0x213a9=_0x497ca4);}}return _0x109eef;}function _0x4ba403(_0x329401,_0x10d893){const _0x48fdc8=_0x5565f1,{rowFields:_0x2281f1,columnFields:_0x4c2a15,valueFields:_0x49174e,filterFields:_0x5d51dd,dimension:_0x5e8604,measure:_0x1fd5cc}=_0x10d893;for(const _0x48f0e8 of _0x2281f1){const _0x16c722=_0x5e8604[_0x48f0e8];_0x16c722&&_0x329401[_0x48fdc8(0x248)](_0x16c722['dataFieldId'])&&(_0x329401['addFieldWithSourceId'](_0x16c722[_0x48fdc8(0x33c)],_0x16b0d8[_0x48fdc8(0x440)][_0x48fdc8(0x3b6)],void 0x0,_0x48f0e8),_0x16c722['displayName']&&_0x329401['renameField'](_0x16c722['id'],_0x16c722[_0x48fdc8(0x1bd)]),_0x16c722[_0x48fdc8(0x2f5)]&&_0x329401[_0x48fdc8(0x16f)](_0x16c722['id'],_0x16c722[_0x48fdc8(0x2f5)]),_0x16c722[_0x48fdc8(0x119)]&&_0x329401[_0x48fdc8(0x37b)](_0x16c722['id'],_0x16c722[_0x48fdc8(0x119)]));}for(const _0x7592b3 of _0x4c2a15){const _0x3286b6=_0x5e8604[_0x7592b3];_0x3286b6&&_0x329401[_0x48fdc8(0x248)](_0x3286b6['dataFieldId'])&&(_0x329401[_0x48fdc8(0x182)](_0x3286b6[_0x48fdc8(0x33c)],_0x16b0d8['PivotTableFiledAreaEnum'][_0x48fdc8(0x28b)],void 0x0,_0x7592b3),_0x3286b6[_0x48fdc8(0x2f5)]&&_0x329401[_0x48fdc8(0x16f)](_0x3286b6['id'],_0x3286b6[_0x48fdc8(0x2f5)]),_0x3286b6[_0x48fdc8(0x119)]&&_0x329401[_0x48fdc8(0x37b)](_0x3286b6['id'],_0x3286b6['filterInfo']),_0x3286b6[_0x48fdc8(0x1bd)]&&_0x329401[_0x48fdc8(0x25e)](_0x3286b6['id'],_0x3286b6['displayName']));}for(const _0x2aef48 of _0x5d51dd){const _0x3a96e0=_0x5e8604[_0x2aef48];_0x3a96e0&&_0x329401[_0x48fdc8(0x248)](_0x3a96e0[_0x48fdc8(0x33c)])&&(_0x329401['addFieldWithSourceId'](_0x3a96e0[_0x48fdc8(0x33c)],_0x16b0d8[_0x48fdc8(0x440)]['Filter'],void 0x0,_0x2aef48),_0x3a96e0[_0x48fdc8(0x2f5)]&&_0x329401[_0x48fdc8(0x16f)](_0x3a96e0['id'],_0x3a96e0['sortInfo']),_0x3a96e0[_0x48fdc8(0x119)]&&_0x329401[_0x48fdc8(0x37b)](_0x3a96e0['id'],_0x3a96e0[_0x48fdc8(0x119)]),_0x3a96e0[_0x48fdc8(0x1bd)]&&_0x329401[_0x48fdc8(0x25e)](_0x3a96e0['id'],_0x3a96e0[_0x48fdc8(0x1bd)]));}for(const _0x30c0d3 of _0x49174e){const _0x209151=_0x1fd5cc[_0x30c0d3];_0x209151&&_0x329401['getDataFieldByDataFieldId'](_0x209151[_0x48fdc8(0x33c)])&&(_0x329401[_0x48fdc8(0x182)](_0x209151['dataFieldId'],_0x16b0d8['PivotTableFiledAreaEnum']['Value'],void 0x0,_0x30c0d3),_0x209151['subtotal']!==void 0x0&&_0x329401[_0x48fdc8(0x28e)](_0x30c0d3,_0x209151[_0x48fdc8(0x3ff)]),_0x209151[_0x48fdc8(0x40c)]&&_0x329401[_0x48fdc8(0x12f)](_0x30c0d3,_0x209151[_0x48fdc8(0x40c)]),_0x209151[_0x48fdc8(0x1bd)]&&_0x329401['renameField'](_0x209151['id'],_0x209151[_0x48fdc8(0x1bd)]));}const _0x79059c=_0x10d893[_0x48fdc8(0x2f2)];for(const {fieldId:_0x331a83,filterInfo:_0x1185fc}of _0x79059c)_0x329401[_0x48fdc8(0x281)](_0x331a83,_0x1185fc);}function _0x273a51(_0x36931d,_0x51916b){const _0x7e0510=_0x5565f1,_0xbaed84=[];_0x51916b===_0x16b0d8['PivotTableFiledAreaEnum'][_0x7e0510(0x3b6)]&&_0x36931d[_0x7e0510(0x380)](_0x16b0d8[_0x7e0510(0x440)][_0x7e0510(0x3b6)],_0x1dcaaa=>{const _0x5b1b30=_0x7e0510;_0xbaed84['push'](_0x1dcaaa[_0x5b1b30(0x428)]());}),_0x51916b===_0x16b0d8[_0x7e0510(0x440)][_0x7e0510(0x28b)]&&_0x36931d['iterateFieldByArea'](_0x16b0d8['PivotTableFiledAreaEnum'][_0x7e0510(0x28b)],_0x3a6305=>{const _0xcf6f97=_0x7e0510;_0xbaed84[_0xcf6f97(0x254)](_0x3a6305[_0xcf6f97(0x428)]());}),_0x51916b===_0x16b0d8[_0x7e0510(0x440)][_0x7e0510(0x34a)]&&_0x36931d[_0x7e0510(0x380)](_0x16b0d8[_0x7e0510(0x440)][_0x7e0510(0x34a)],_0x404b42=>{const _0x434074=_0x7e0510;_0xbaed84['push'](_0x404b42[_0x434074(0x428)]());}),_0x51916b===_0x16b0d8['PivotTableFiledAreaEnum'][_0x7e0510(0x359)]&&_0x36931d[_0x7e0510(0x380)](_0x16b0d8['PivotTableFiledAreaEnum'][_0x7e0510(0x359)],_0x1c3c5c=>{const _0x574d94=_0x7e0510;_0xbaed84['push'](_0x1c3c5c[_0x574d94(0x428)]());}),_0x51916b===void 0x0&&_0x36931d[_0x7e0510(0x2c9)](_0x5e709f=>{const _0x50554b=_0x7e0510;_0xbaed84['push'](_0x5e709f[_0x50554b(0x428)]());});const _0x2a5c7b=_0xbaed84[_0x7e0510(0x37f)];for(let _0x2bed7a=_0x2a5c7b-0x1;_0x2bed7a>=0x0;_0x2bed7a--)_0x36931d[_0x7e0510(0x376)](_0xbaed84[_0x2bed7a]);const _0x433059=_0x36931d['getValueFilterInfos']();for(const _0x14c93c in _0x433059)_0x36931d[_0x7e0510(0x1aa)](_0x14c93c);}function _0x2b787c(_0x47e46f,_0x61b291){const _0x240d70=_0x5565f1,_0xe21e37=new Date(_0x16b0d8[_0x240d70(0x1cf)](_0x61b291)),_0xe7f70d=new Date(_0x16b0d8[_0x240d70(0x1cf)](_0x47e46f)),_0x4a3bbe=_0xe21e37[_0x240d70(0x364)](),_0x4abc26=_0xe7f70d[_0x240d70(0x364)](),_0x5e8fe3=_0xe21e37['getMonth'](),_0x337e16=_0xe7f70d['getMonth'](),_0xdf93e3=_0xe21e37[_0x240d70(0x155)](),_0x4a6abf=_0xe7f70d[_0x240d70(0x155)](),_0x3b049d=_0x4a3bbe===_0x4abc26,_0x56ad57=_0x3b049d&&_0x5e8fe3===_0x337e16;return _0x3b049d&&_0x56ad57&&!(_0x56ad57&&_0xdf93e3===_0x4a6abf)?_0x16b0d8['PivotDateGroupFieldDateTypeEnum'][_0x240d70(0x35f)]:_0x3b049d&&!_0x56ad57?_0x16b0d8[_0x240d70(0x3ba)][_0x240d70(0x293)]:_0x16b0d8[_0x240d70(0x3ba)][_0x240d70(0x25f)];}function _0x18fbc7(_0x175148,_0xabb8d2){const _0x11ea1c=_0x5565f1,_0x8e2397=_0x175148[_0x11ea1c(0x326)](_0x47953f['SheetsPivotDataSourceModel'])['getTextInfo']();let _0x129a6b='';switch(_0xabb8d2){case _0x16b0d8[_0x11ea1c(0x3ba)]['YearMonthDate']:_0x129a6b=_0x8e2397['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x16b0d8[_0x11ea1c(0x3ba)][_0x11ea1c(0x293)]:_0x129a6b=_0x8e2397['sheets-pivot.dateGroup.yearMonth'];break;case _0x16b0d8['PivotDateGroupFieldDateTypeEnum'][_0x11ea1c(0x25f)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x20e)];break;case _0x16b0d8[_0x11ea1c(0x3ba)][_0x11ea1c(0x253)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x2b8)];break;case _0x16b0d8[_0x11ea1c(0x3ba)]['Quarter']:_0x129a6b=_0x8e2397[_0x11ea1c(0x334)];break;case _0x16b0d8['PivotDateGroupFieldDateTypeEnum'][_0x11ea1c(0x3c0)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x2d9)];break;case _0x16b0d8[_0x11ea1c(0x3ba)][_0x11ea1c(0x360)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x407)];break;case _0x16b0d8[_0x11ea1c(0x3ba)][_0x11ea1c(0x14e)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x3d7)];break;case _0x16b0d8['PivotDateGroupFieldDateTypeEnum']['Minute']:_0x129a6b=_0x8e2397['sheets-pivot.dateGroup.minute'];break;case _0x16b0d8['PivotDateGroupFieldDateTypeEnum'][_0x11ea1c(0x42c)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x18c)];break;case _0x16b0d8[_0x11ea1c(0x3ba)][_0x11ea1c(0x3f6)]:_0x129a6b=_0x8e2397[_0x11ea1c(0x309)];break;default:_0x129a6b='';break;}return _0x129a6b;}const _0x2fe2dc='sheets-pivot.config',_0x11e3f9={};var _0x1de1dc=Object[_0x5565f1(0x14a)],_0x1fc94b=(_0x1e9e69,_0x5008a6,_0xaa65d0,_0xe28993)=>{const _0x4efa69=_0x5565f1;for(var _0x4f4116=_0xe28993>0x1?void 0x0:_0xe28993?_0x1de1dc(_0x5008a6,_0xaa65d0):_0x5008a6,_0x134c81=_0x1e9e69[_0x4efa69(0x37f)]-0x1,_0x493c24;_0x134c81>=0x0;_0x134c81--)(_0x493c24=_0x1e9e69[_0x134c81])&&(_0x4f4116=_0x493c24(_0x4f4116)||_0x4f4116);return _0x4f4116;},_0xd63e04=(_0x4fe641,_0x509a1b)=>(_0x2efba5,_0x387a79)=>_0x509a1b(_0x2efba5,_0x387a79,_0x4fe641);_0x47953f['SheetsPivotTableConfigModel']=class extends _0x49f92f[_0x5565f1(0x425)]{constructor(_0x10a1af,_0x1e0ea0,_0xd9164f,_0x5d20f0,_0x5a6c8b){const _0x13a168=_0x5565f1;super(),_0x246801(this,_0x13a168(0x3aa),new Map()),_0x246801(this,_0x13a168(0x37e),new Map()),_0x246801(this,_0x13a168(0x14d),new Map()),_0x246801(this,_0x13a168(0x431),new Map()),_0x246801(this,_0x13a168(0x3df),new _0x3818d9[(_0x13a168(0x11e))]()),_0x246801(this,_0x13a168(0x171),new _0x3818d9[(_0x13a168(0x11e))]()),_0x246801(this,_0x13a168(0x13a),this[_0x13a168(0x171)][_0x13a168(0x2e8)]()),_0x246801(this,'_pivotConfigChange$',new _0x3818d9[(_0x13a168(0x11e))]()),_0x246801(this,'pivotConfigChange$',this[_0x13a168(0x165)][_0x13a168(0x2e8)]()),_0x246801(this,_0x13a168(0x30e),{}),_0x246801(this,_0x13a168(0x1d3),this[_0x13a168(0x3df)][_0x13a168(0x2e8)]()),(this[_0x13a168(0x27c)]=_0x10a1af,this['_commandService']=_0x1e0ea0,this[_0x13a168(0x23b)]=_0xd9164f,this[_0x13a168(0x135)]=_0x5d20f0,this[_0x13a168(0x163)]=_0x5a6c8b,this[_0x13a168(0x223)](),this['_initUnitDisposed']());const _0x249d60=this[_0x13a168(0x163)][_0x13a168(0x2ee)](_0x2fe2dc);(_0x249d60==null?void 0x0:_0x249d60['notExecuteFormula'])===!0x0&&this[_0x13a168(0x263)]();}['_initUnitDisposed'](){const _0x53747c=_0x5565f1;this[_0x53747c(0x3ae)](this[_0x53747c(0x23b)]['getTypeOfUnitDisposed$'](_0x49f92f[_0x53747c(0x1b7)][_0x53747c(0x3da)])['subscribe'](_0x263b3d=>{const _0xef9376=_0x53747c;this[_0xef9376(0x300)](_0x263b3d[_0xef9376(0x1b4)]());}));}[_0x5565f1(0x1df)](){const _0x201311=_0x5565f1;this[_0x201311(0x171)][_0x201311(0x409)](!0x0);}[_0x5565f1(0x223)](){const _0x383504=_0x5565f1,_0x1531ce=_0x159ebc(this[_0x383504(0x27c)],_0x1e7e8c,'',{});this[_0x383504(0x30e)]=_0x1531ce,this[_0x383504(0x393)]['executeCommand'](_0x389da5['id'],{'textInfo':_0x1531ce},{'onlyLocal':!0x0});}[_0x5565f1(0x191)](){const _0x5be9ca=_0x5565f1;return this[_0x5be9ca(0x30e)];}[_0x5565f1(0x274)](_0x456fe7,_0x3a8d16,_0xf00f25,_0x52be85,_0x682939){const _0x528d26=_0x5565f1;this[_0x528d26(0x301)](_0x456fe7,_0x3a8d16,_0xf00f25,_0x52be85),this[_0x528d26(0x39e)](_0x456fe7,_0x3a8d16,_0xf00f25,_0x682939);}['getPivotTableConfig'](_0x48766a,_0x295466,_0x5e0746){const _0x427285=_0x5565f1;var _0x463724;const _0x397ed2=(_0x463724=this[_0x427285(0x3aa)][_0x427285(0x326)](_0x48766a))==null?void 0x0:_0x463724[_0x427285(0x326)](_0x295466);if(_0x397ed2)return _0x397ed2[_0x427285(0x326)](_0x5e0746);}[_0x5565f1(0x1ad)](_0x44adf4,_0x42432b){const _0x2efe21=_0x5565f1,_0x53e8cf=this[_0x2efe21(0x3aa)]['get'](_0x44adf4);if(_0x53e8cf){for(const [_0x4df8aa,_0x259188]of _0x53e8cf['entries']())for(const [_0x2681b7,_0x1cec53]of _0x259188[_0x2efe21(0x15f)]())if(_0x2681b7===_0x42432b)return _0x1cec53['targetCellInfo'];}}[_0x5565f1(0x442)](_0x1d477d,_0x25885c,_0x27c560){const _0x327e79=_0x5565f1,_0x18b372=this[_0x327e79(0x215)](_0x1d477d,_0x25885c,_0x27c560);return _0x18b372==null?void 0x0:_0x18b372[_0x327e79(0x1d0)];}['getSubUnitPivotConfigs'](_0x3228fa,_0xbf07c6){const _0x171baa=_0x5565f1;var _0x20d945;return(_0x20d945=this[_0x171baa(0x3aa)][_0x171baa(0x326)](_0x3228fa))==null?void 0x0:_0x20d945[_0x171baa(0x326)](_0xbf07c6);}[_0x5565f1(0x3fb)](_0x38f40f,_0x38a91e,_0x4247dc,_0x3ee91d){const _0x45b4f7=_0x5565f1,_0x2c7c4d=this[_0x45b4f7(0x3f5)](_0x38f40f,_0x38a91e);_0x3ee91d?_0x2c7c4d['set'](_0x4247dc,_0x3ee91d):_0x2c7c4d['delete'](_0x4247dc),this[_0x45b4f7(0x165)][_0x45b4f7(0x409)]({'unitId':_0x38f40f,'subUnitId':_0x38a91e,'pivotTableId':_0x4247dc,'pivotTableConfig':_0x3ee91d});}[_0x5565f1(0x312)](_0x474572,_0x5d6a6c){const _0x151e14=_0x5565f1;var _0x321404;return(_0x321404=this[_0x151e14(0x37e)][_0x151e14(0x326)](_0x474572))==null?void 0x0:_0x321404[_0x151e14(0x40d)][_0x5d6a6c];}[_0x5565f1(0x1c2)](_0x22a10f,_0x14ff68){this['_collectionConfigModel']['set'](_0x22a10f,_0x14ff68),this['_configVersion$']['next'](Math['random']());}[_0x5565f1(0x3f5)](_0x13eea5,_0x25f20c){const _0x1d64ea=_0x5565f1;let _0x42dda8=this[_0x1d64ea(0x3aa)]['get'](_0x13eea5);_0x42dda8||(_0x42dda8=new Map(),this[_0x1d64ea(0x3aa)][_0x1d64ea(0x246)](_0x13eea5,_0x42dda8));let _0xc902d5=_0x42dda8['get'](_0x25f20c);return _0xc902d5||(_0xc902d5=new Map(),_0x42dda8[_0x1d64ea(0x246)](_0x25f20c,_0xc902d5)),_0xc902d5;}[_0x5565f1(0x1ac)](_0x2bb8fe,_0x48ef3a){const _0x80cc00=_0x5565f1;let _0x365bec=this['_pivotTableRangeInfo']['get'](_0x2bb8fe);_0x365bec||(_0x365bec=new Map(),this[_0x80cc00(0x14d)][_0x80cc00(0x246)](_0x2bb8fe,_0x365bec));let _0x4ac773=_0x365bec[_0x80cc00(0x326)](_0x48ef3a);return _0x4ac773||(_0x4ac773=new Map(),_0x365bec[_0x80cc00(0x246)](_0x48ef3a,_0x4ac773)),_0x4ac773;}['_ensurePivotTableMatrixInfo'](_0x5632bf,_0x46ef50){const _0x4ac1ab=_0x5565f1;let _0x141bca=this[_0x4ac1ab(0x431)][_0x4ac1ab(0x326)](_0x5632bf);_0x141bca||(_0x141bca=new Map(),this[_0x4ac1ab(0x431)][_0x4ac1ab(0x246)](_0x5632bf,_0x141bca));let _0x2f4be0=_0x141bca[_0x4ac1ab(0x326)](_0x46ef50);return _0x2f4be0||(_0x2f4be0=new Map(),_0x141bca[_0x4ac1ab(0x246)](_0x46ef50,_0x2f4be0)),_0x2f4be0;}[_0x5565f1(0x39e)](_0x56bcc8,_0x2b9a41,_0x4d2c1f,_0x269fc9){const _0x20ff95=_0x5565f1;var _0x1eaf50;const _0xc79167=this[_0x20ff95(0x1ac)](_0x56bcc8,_0x2b9a41),_0x584abe=(_0x1eaf50=_0xc79167['get'](_0x4d2c1f))==null?void 0x0:_0x1eaf50[_0x20ff95(0x28c)];_0xc79167['set'](_0x4d2c1f,{'oldRangeInfo':_0x584abe,'rangeInfo':_0x269fc9});}[_0x5565f1(0x301)](_0x47cf02,_0x4bda91,_0xb22e12,_0x1a3727){const _0x3e674a=_0x5565f1;var _0x45b0c4;const _0x6a61=this[_0x3e674a(0x41a)](_0x47cf02,_0x4bda91),_0x56c19d=(_0x45b0c4=_0x6a61[_0x3e674a(0x326)](_0xb22e12))==null?void 0x0:_0x45b0c4['oldMatrix'];_0x6a61['set'](_0xb22e12,{'oldMatrix':_0x56c19d,'matrix':_0x1a3727});}[_0x5565f1(0x2dc)](_0x1a466f,_0x3bb8c8,_0x3c00a4){const _0x17f55d=_0x5565f1;var _0x336c80,_0x3f04ae;return(_0x3f04ae=(_0x336c80=this['_pivotTableRangeInfo']['get'](_0x1a466f))==null?void 0x0:_0x336c80['get'](_0x3bb8c8))==null?void 0x0:_0x3f04ae[_0x17f55d(0x326)](_0x3c00a4);}[_0x5565f1(0x3d9)](_0x4d285a,_0x58fc2c,_0x18986f){const _0x57141b=_0x5565f1;var _0x7701e9,_0x33a9bb;return(_0x33a9bb=(_0x7701e9=this[_0x57141b(0x431)]['get'](_0x4d285a))==null?void 0x0:_0x7701e9['get'](_0x58fc2c))==null?void 0x0:_0x33a9bb[_0x57141b(0x326)](_0x18986f);}[_0x5565f1(0x300)](_0x4f6074){const _0x4ffc1a=_0x5565f1;this[_0x4ffc1a(0x3aa)][_0x4ffc1a(0x43d)](_0x4f6074),this[_0x4ffc1a(0x37e)]['delete'](_0x4f6074);}[_0x5565f1(0x1c8)](_0x4a93db){const _0x3fd525=_0x5565f1,_0xbd8217={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x3fd525(0x37e)]['get'](_0x4a93db)&&(_0xbd8217[_0x3fd525(0x214)][_0x4a93db]=this['_collectionConfigModel'][_0x3fd525(0x326)](_0x4a93db)),this['_model'][_0x3fd525(0x326)](_0x4a93db)){_0xbd8217[_0x3fd525(0x3e0)][_0x4a93db]={};const _0x44964f=this[_0x3fd525(0x3aa)][_0x3fd525(0x326)](_0x4a93db);_0x44964f!=null&&_0x44964f['size']&&[..._0x44964f[_0x3fd525(0x37a)]()]['forEach'](_0x25d56a=>{const _0x46d2c9=_0x3fd525,_0x3b8528=_0x44964f[_0x46d2c9(0x326)](_0x25d56a);_0x3b8528!=null&&_0x3b8528[_0x46d2c9(0x422)]&&(_0xbd8217[_0x46d2c9(0x3e0)][_0x4a93db][_0x25d56a]={},[..._0x3b8528[_0x46d2c9(0x37a)]()][_0x46d2c9(0x350)](_0x57a587=>{const _0x44f7ea=_0x46d2c9,_0x39196e=_0x3b8528['get'](_0x57a587);_0x39196e&&(_0xbd8217[_0x44f7ea(0x3e0)][_0x4a93db][_0x25d56a][_0x57a587]=_0x39196e);}));});}return _0xbd8217;}[_0x5565f1(0x263)](){const _0x358b69=_0x5565f1;this[_0x358b69(0x3ae)](this[_0x358b69(0x135)]['registerPluginResource']({'toJson':_0x19372e=>JSON['stringify'](this['_toJSON'](_0x19372e)),'parseJson':_0x13be3c=>({}),'businesses':[_0x49f92f[_0x358b69(0x1b7)][_0x358b69(0x3da)]],'pluginName':_0x5eb740,'onLoad':(_0x28d306,_0x4482fe)=>{},'onUnLoad':_0x137327=>{this['deleteUnitId'](_0x137327);}}));}},_0x47953f[_0x5565f1(0x11d)]=_0x1fc94b([_0xd63e04(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x22e)])),_0xd63e04(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x3fc)])),_0xd63e04(0x2,_0x49f92f['Inject'](_0x49f92f[_0x5565f1(0x26f)])),_0xd63e04(0x3,_0x49f92f['Inject'](_0x49f92f[_0x5565f1(0x28a)])),_0xd63e04(0x4,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x404)]))],_0x47953f[_0x5565f1(0x11d)]);var _0x585262=Object[_0x5565f1(0x14a)],_0x5a426d=(_0x4b6f0d,_0x13e673,_0x3d0f43,_0x2716c7)=>{const _0xcb45bb=_0x5565f1;for(var _0x17f390=_0x2716c7>0x1?void 0x0:_0x2716c7?_0x585262(_0x13e673,_0x3d0f43):_0x13e673,_0xa142df=_0x4b6f0d[_0xcb45bb(0x37f)]-0x1,_0x482d0d;_0xa142df>=0x0;_0xa142df--)(_0x482d0d=_0x4b6f0d[_0xa142df])&&(_0x17f390=_0x482d0d(_0x17f390)||_0x17f390);return _0x17f390;},_0x540ae0=(_0x376f5f,_0x5b053c)=>(_0x5b0e92,_0xf570e4)=>_0x5b053c(_0x5b0e92,_0xf570e4,_0x376f5f);_0x47953f[_0x5565f1(0x3c8)]=class extends _0x49f92f[_0x5565f1(0x425)]{constructor(_0x56a7e3,_0x2329c2,_0xa01998,_0x3e63b6,_0x4c7fd3){const _0x19f297=_0x5565f1;super(),_0x246801(this,_0x19f297(0x1bc),new Map()),_0x246801(this,_0x19f297(0x313),new Map()),_0x246801(this,'_markDirty$',new _0x3818d9[(_0x19f297(0x11e))]()),_0x246801(this,'markDirty$',this[_0x19f297(0x42e)]['asObservable']()),_0x246801(this,_0x19f297(0x310),new _0x3818d9[(_0x19f297(0x11e))]()),_0x246801(this,_0x19f297(0x327),this['_viewUpdate$'][_0x19f297(0x2e8)]()),_0x246801(this,'_textInfo'),(this['_localeService']=_0x56a7e3,this[_0x19f297(0x27c)]=_0x2329c2,this[_0x19f297(0x3b2)]=_0xa01998,this['_univerInstanceService']=_0x3e63b6,this[_0x19f297(0x23a)]=_0x4c7fd3,this[_0x19f297(0x223)](),this[_0x19f297(0x12e)]());}[_0x5565f1(0x12e)](){const _0x1caf6d=_0x5565f1;this[_0x1caf6d(0x3ae)](this['_univerInstanceService'][_0x1caf6d(0x356)](_0x49f92f[_0x1caf6d(0x1b7)]['UNIVER_SHEET'])[_0x1caf6d(0x1de)](_0x594a1a=>{const _0x57a524=_0x1caf6d;this[_0x57a524(0x300)](_0x594a1a[_0x57a524(0x1b4)]());}));}[_0x5565f1(0x223)](){const _0x2b3234=_0x5565f1;this['_textInfo']=_0x159ebc(this[_0x2b3234(0x27c)],_0x1e7e8c,'',{});}['updateRenderCache'](_0x286c40){const _0x5cc3f3=_0x5565f1,{view:_0x140394,unitId:_0x275311,subUnitId:_0xf3f7ad,pivotTableId:_0x52245d,type:_0x2d6594}=_0x286c40,_0x594f4d=this['_sheetsPivotTableConfigModel'][_0x5cc3f3(0x215)](_0x275311,_0xf3f7ad,_0x52245d);if(!_0x140394||!_0x594f4d||_0x2d6594===_0x1e0edb[_0x5cc3f3(0x287)])return;const {pageView:_0xaf7687,cornerView:_0x296d5c,rowView:_0x38701e,colView:_0x3c494c,dataView:_0x138d6e}=_0x140394,_0x52d6ca=_0x594f4d[_0x5cc3f3(0x1d0)],_0x2a5198=_0x594f4d[_0x5cc3f3(0x27f)],_0x1542fe=this['_ensurePivotItemRenderValueMatrixCache'](_0x275311,_0xf3f7ad),_0x4dd3b1=this[_0x5cc3f3(0x1e9)](_0x275311,_0xf3f7ad,_0x52245d);if(_0x2a5198)return this[_0x5cc3f3(0x2bb)](_0x286c40,_0x1542fe,_0x52d6ca,_0x4dd3b1);{const _0x24dcc1=_0x290256(_0x52d6ca,_0xaf7687,!0x0),_0x1f6f9d=_0xaf7687['lastRow']>=0x0?_0xaf7687[_0x5cc3f3(0x204)]+0x1:0x0,_0x10b505=_0x296d5c['getRowCount'](),_0x2c5929=_0x296d5c[_0x5cc3f3(0x2c0)](),_0x2054f2=_0x24dcc1[_0x5cc3f3(0x37f)]>0x0?_0x29054f:0x0,_0x41c212=_0x290256({'row':_0x52d6ca[_0x5cc3f3(0x1b1)]+_0x1f6f9d+_0x2054f2,'col':_0x52d6ca[_0x5cc3f3(0x341)]},_0x296d5c,!0x1,!0x1),_0x7bb95b=_0x290256({'row':_0x52d6ca[_0x5cc3f3(0x1b1)]+_0x1f6f9d+_0x2054f2+_0x10b505,'col':_0x52d6ca[_0x5cc3f3(0x341)]},_0x38701e,!0x1,!0x0),_0x4d3d14=_0x290256({'row':_0x52d6ca[_0x5cc3f3(0x1b1)]+_0x1f6f9d+_0x2054f2,'col':_0x52d6ca[_0x5cc3f3(0x341)]+_0x2c5929},_0x3c494c,!0x1,!0x0),_0x4700d4=_0x290256({'row':_0x52d6ca['row']+_0x1f6f9d+_0x2054f2+_0x10b505,'col':_0x52d6ca[_0x5cc3f3(0x341)]+_0x2c5929},_0x138d6e,!0x1,!0x1);_0x4dd3b1[_0x5cc3f3(0x39f)]={'rowRanges':_0x7bb95b,'colRanges':_0x4d3d14,'cornerRanges':_0x41c212,'dataRanges':_0x4700d4,'pageRanges':_0x24dcc1};const _0x21ffc0=_0x57f126(this['_injector'],_0x140394,_0x594f4d,this[_0x5cc3f3(0x30e)]),{valueMatrix:_0x138080,rowInfo:_0x2b0fa2,colInfo:_0xb6b056,cornerInfo:_0x3146ac,rowHeaderMap:_0x22fd24,colHeaderMap:_0x55c990}=_0x21ffc0;return _0x4dd3b1['areaInfo']={'rowInfo':_0x2b0fa2,'colInfo':_0xb6b056,'cornerInfo':_0x3146ac},_0x4dd3b1[_0x5cc3f3(0x2cc)]={'rowHeaderMap':_0x22fd24,'colHeaderMap':_0x55c990},_0x138080[_0x5cc3f3(0x350)]((_0x5480ad,_0x21fb6d)=>{const _0xb409e1=_0x5cc3f3;Object[_0xb409e1(0x37a)](_0x21fb6d)[_0xb409e1(0x350)](_0x4ae5d1=>{const _0x2110ef=_0xb409e1,_0x21d9cf=+_0x4ae5d1,_0x2db524=_0x138080[_0x2110ef(0x1b6)](_0x5480ad,_0x21d9cf);_0x1542fe['setValue'](_0x5480ad,_0x21d9cf,_0x2db524);});}),this[_0x5cc3f3(0x310)][_0x5cc3f3(0x409)]({'unitId':_0x275311,'subUnitId':_0xf3f7ad,'valueMatrix':_0x1542fe,'rangesCache':_0x4dd3b1['rangesInfo'],'pivotTableId':_0x52245d,'type':_0x286c40[_0x5cc3f3(0x2a8)]}),this[_0x5cc3f3(0x3b2)][_0x5cc3f3(0x274)](_0x275311,_0xf3f7ad,_0x52245d,_0x1542fe,_0x4dd3b1[_0x5cc3f3(0x39f)]),this['_exclusiveRangeService'][_0x5cc3f3(0x382)](_0x275311,_0xf3f7ad,_0x279ac7,this[_0x5cc3f3(0x1b3)](_0x4dd3b1['rangesInfo'],_0x52245d)),{'rangeCache':_0x4dd3b1[_0x5cc3f3(0x39f)],'matrix':_0x1542fe};}}[_0x5565f1(0x2bb)](_0x2e7eee,_0x344dcc,_0x311249,_0x31be24){const _0x20d8d7=_0x5565f1,_0x1cf09e=this[_0x20d8d7(0x2e5)]['t'],{unitId:_0x3c0925,subUnitId:_0x31847,pivotTableId:_0x5bec31}=_0x2e7eee,_0x35bd66={'filter':_0x1cf09e(_0x20d8d7(0x317)),'row':_0x1cf09e('sheets-pivot.emptyPivot.row'),'column':_0x1cf09e(_0x20d8d7(0x303)),'values':_0x1cf09e(_0x20d8d7(0x213))},{matrixCache:_0x1d3f78,rangesCache:_0x2f1496}=_0x115cc1(_0x35bd66,_0x311249);return _0x1d3f78['forValue']((_0x6e58b6,_0x335f25,_0x4fe25c)=>{const _0x67a08e=_0x20d8d7;_0x344dcc[_0x67a08e(0x3c9)](_0x6e58b6,_0x335f25,_0x4fe25c);}),_0x31be24[_0x20d8d7(0x39f)]=_0x2f1496,this[_0x20d8d7(0x310)][_0x20d8d7(0x409)]({'unitId':_0x3c0925,'subUnitId':_0x31847,'valueMatrix':_0x344dcc,'rangesCache':_0x2f1496,'pivotTableId':_0x5bec31,'type':_0x2e7eee[_0x20d8d7(0x2a8)],'isEmpty':!0x0}),this[_0x20d8d7(0x3b2)][_0x20d8d7(0x274)](_0x3c0925,_0x31847,_0x5bec31,_0x344dcc,_0x2f1496),this['_exclusiveRangeService'][_0x20d8d7(0x382)](_0x3c0925,_0x31847,_0x279ac7,this[_0x20d8d7(0x1b3)](_0x2f1496,_0x5bec31)),{'rangeCache':_0x31be24[_0x20d8d7(0x39f)],'matrix':_0x344dcc};}[_0x5565f1(0x1b3)](_0x3c88bb,_0x2a9a3b){const _0x16ee8c=[],_0x25bed5=_0x163af3(_0x3c88bb);for(const _0x53c7b2 of _0x25bed5)_0x16ee8c['push']({'groupId':_0x2a9a3b,'range':_0x53c7b2});return _0x16ee8c;}[_0x5565f1(0x3f3)](_0x3f089c){const _0x27ba11=_0x5565f1;var _0x2612df,_0x5bcb77,_0x173e2b,_0x4b0877;const {pivotTableId:_0x2c07d2,unitId:_0x3d4e1e,subUnitId:_0x3734ba}=_0x3f089c;if(!_0x2c07d2||!_0x3d4e1e||!_0x3734ba)return;const _0x31be3e=this[_0x27ba11(0x1dc)](_0x3d4e1e,_0x3734ba),_0x2ff5d4=(_0x5bcb77=(_0x2612df=this[_0x27ba11(0x1bc)][_0x27ba11(0x326)](_0x3d4e1e))==null?void 0x0:_0x2612df[_0x27ba11(0x326)](_0x3734ba))==null?void 0x0:_0x5bcb77[_0x27ba11(0x326)](_0x2c07d2);if(_0x2ff5d4!=null&&_0x2ff5d4[_0x27ba11(0x39f)]){for(const _0x3f31d4 of Object['keys'](_0x2ff5d4[_0x27ba11(0x39f)]))_0x2ff5d4[_0x27ba11(0x39f)][_0x3f31d4][_0x27ba11(0x350)](_0x1883ce=>{const _0x4daa7b=_0x27ba11;for(let _0x396f1c=_0x1883ce[_0x4daa7b(0x34c)];_0x396f1c<=_0x1883ce[_0x4daa7b(0x2b0)];_0x396f1c++)for(let _0x237f81=_0x1883ce['startColumn'];_0x237f81<=_0x1883ce[_0x4daa7b(0x39d)];_0x237f81++)_0x31be3e[_0x4daa7b(0x147)](_0x396f1c,_0x237f81);});}_0x2ff5d4&&((_0x4b0877=(_0x173e2b=this[_0x27ba11(0x1bc)][_0x27ba11(0x326)](_0x3d4e1e))==null?void 0x0:_0x173e2b['get'](_0x3734ba))==null||_0x4b0877[_0x27ba11(0x43d)](_0x2c07d2)),this[_0x27ba11(0x310)][_0x27ba11(0x409)]({'unitId':_0x3d4e1e,'subUnitId':_0x3734ba,'valueMatrix':_0x31be3e,'pivotTableId':_0x2c07d2,'rangesCache':void 0x0,'type':_0x3f089c[_0x27ba11(0x2a8)]}),this[_0x27ba11(0x23a)][_0x27ba11(0x432)](_0x3d4e1e,_0x3734ba,_0x279ac7,_0x2c07d2);}[_0x5565f1(0x1e9)](_0x188a19,_0x1e1de6,_0x47fff1){const _0x25acdd=_0x5565f1;var _0x32f36a,_0x5211f0,_0x531354,_0x4339ac,_0x15a36c,_0x179556;return this[_0x25acdd(0x1bc)][_0x25acdd(0x189)](_0x188a19)||this[_0x25acdd(0x1bc)]['set'](_0x188a19,new Map()),(_0x32f36a=this['_pivotRenderInfoCache']['get'](_0x188a19))!=null&&_0x32f36a[_0x25acdd(0x189)](_0x1e1de6)||(_0x5211f0=this[_0x25acdd(0x1bc)][_0x25acdd(0x326)](_0x188a19))==null||_0x5211f0[_0x25acdd(0x246)](_0x1e1de6,new Map()),(_0x4339ac=(_0x531354=this['_pivotRenderInfoCache']['get'](_0x188a19))==null?void 0x0:_0x531354[_0x25acdd(0x326)](_0x1e1de6))!=null&&_0x4339ac[_0x25acdd(0x189)](_0x47fff1)||(_0x179556=(_0x15a36c=this[_0x25acdd(0x1bc)][_0x25acdd(0x326)](_0x188a19))==null?void 0x0:_0x15a36c['get'](_0x1e1de6))==null||_0x179556[_0x25acdd(0x246)](_0x47fff1,{}),this[_0x25acdd(0x1bc)][_0x25acdd(0x326)](_0x188a19)[_0x25acdd(0x326)](_0x1e1de6)['get'](_0x47fff1);}[_0x5565f1(0x1dc)](_0x123f8a,_0x500d1d){const _0x15e913=_0x5565f1;var _0x3761d7,_0x560fbc;return this[_0x15e913(0x313)][_0x15e913(0x189)](_0x123f8a)||this[_0x15e913(0x313)][_0x15e913(0x246)](_0x123f8a,new Map()),(_0x3761d7=this[_0x15e913(0x313)]['get'](_0x123f8a))!=null&&_0x3761d7[_0x15e913(0x189)](_0x500d1d)||(_0x560fbc=this['_pivotRenderValueMatrixCache']['get'](_0x123f8a))==null||_0x560fbc[_0x15e913(0x246)](_0x500d1d,new _0x49f92f['ObjectMatrix']()),this[_0x15e913(0x313)][_0x15e913(0x326)](_0x123f8a)[_0x15e913(0x326)](_0x500d1d);}[_0x5565f1(0x26d)](_0x4f0cb0,_0x2914f6,_0x105ac5,_0x5016d8){const _0xe07890=_0x5565f1;var _0x395dfc,_0x183ecc;const _0x100c76=(_0x183ecc=(_0x395dfc=this[_0xe07890(0x313)][_0xe07890(0x326)](_0x4f0cb0))==null?void 0x0:_0x395dfc[_0xe07890(0x326)](_0x2914f6))==null?void 0x0:_0x183ecc[_0xe07890(0x1b6)](_0x105ac5,_0x5016d8);if(_0x100c76!=null)return _0x100c76;}[_0x5565f1(0x18d)](_0x3f56f5,_0x1e7ec1,_0x45bfe0,_0x7eaebc){const _0x307f15=_0x5565f1;var _0x254309;const _0x4d64ab=_0x49f92f[_0x307f15(0x42d)](_0x45bfe0,_0x7eaebc),_0x2616e2=(_0x254309=this[_0x307f15(0x1bc)][_0x307f15(0x326)](_0x3f56f5))==null?void 0x0:_0x254309[_0x307f15(0x326)](_0x1e7ec1);return _0x2616e2?Array['from'](_0x2616e2[_0x307f15(0x37a)]())[_0x307f15(0x34e)](_0x2115cc=>{const _0x15cb37=_0x307f15,_0x9d312b=_0x2616e2[_0x15cb37(0x326)](_0x2115cc),_0x50fcf7=_0x9d312b==null?void 0x0:_0x9d312b['rangesInfo'];return _0x50fcf7?Object[_0x15cb37(0x37a)](_0x50fcf7)[_0x15cb37(0x145)](_0x14279b=>_0x50fcf7[_0x14279b]['some'](_0x5310d9=>_0x49f92f[_0x15cb37(0x23f)]['contains'](_0x5310d9,_0x4d64ab))):!0x1;}):void 0x0;}[_0x5565f1(0x1fb)](_0x3f2825,_0x188510,_0x30c7ad){const _0x2262d3=_0x5565f1;var _0x43f8eb;const _0x1a24b2=(_0x43f8eb=this[_0x2262d3(0x1bc)][_0x2262d3(0x326)](_0x3f2825))==null?void 0x0:_0x43f8eb[_0x2262d3(0x326)](_0x188510),_0x28e2d1=[];return _0x1a24b2&&Array[_0x2262d3(0x3b7)](_0x1a24b2[_0x2262d3(0x37a)]())['forEach'](_0x1227e4=>{const _0x4cacd9=_0x2262d3,_0x244066=_0x1a24b2[_0x4cacd9(0x326)](_0x1227e4),_0x43fda0=_0x244066==null?void 0x0:_0x244066[_0x4cacd9(0x39f)];if(_0x43fda0)for(const _0x5a06a8 of Object['values'](_0x43fda0)){let _0x5d4eae=!0x1;for(const _0x28b8d4 of _0x5a06a8)if(_0x49f92f[_0x4cacd9(0x23f)][_0x4cacd9(0x3e6)](_0x28b8d4,_0x30c7ad)){_0x28e2d1[_0x4cacd9(0x254)](_0x1227e4),_0x5d4eae=!0x0;break;}if(_0x5d4eae)break;}}),_0x28e2d1;}[_0x5565f1(0x3a2)](_0x19e6ea,_0x594e5d){const _0x2f55df=_0x5565f1;var _0x3d609a,_0x18fe4b;return(_0x18fe4b=(_0x3d609a=this['_pivotRenderValueMatrixCache']['get'](_0x19e6ea))==null?void 0x0:_0x3d609a[_0x2f55df(0x326)](_0x594e5d))!=null?_0x18fe4b:new _0x49f92f['ObjectMatrix']();}[_0x5565f1(0x1a4)](_0x3ad88f,_0x3a252d){const _0x147cee=_0x5565f1;var _0x4bf689;return(_0x4bf689=this['_pivotRenderInfoCache'][_0x147cee(0x326)](_0x3ad88f))==null?void 0x0:_0x4bf689['get'](_0x3a252d);}[_0x5565f1(0x2f4)](_0x3bbaa4,_0x77f1e9,_0x5dd228){const _0x8507e4=_0x5565f1;var _0x243f24,_0x539b97;return(_0x539b97=(_0x243f24=this['_pivotRenderInfoCache'][_0x8507e4(0x326)](_0x3bbaa4))==null?void 0x0:_0x243f24[_0x8507e4(0x326)](_0x77f1e9))==null?void 0x0:_0x539b97['get'](_0x5dd228);}[_0x5565f1(0x300)](_0x11a353){const _0x37af1d=_0x5565f1;this[_0x37af1d(0x1bc)][_0x37af1d(0x43d)](_0x11a353),this[_0x37af1d(0x313)]['delete'](_0x11a353);}[_0x5565f1(0x251)](_0x21bc9c,_0x3ad0db){const _0x5d4bcb=_0x5565f1;this[_0x5d4bcb(0x42e)][_0x5d4bcb(0x409)]({'unitId':_0x21bc9c,'subUnitId':_0x3ad0db});}},_0x47953f[_0x5565f1(0x3c8)]=_0x5a426d([_0x540ae0(0x0,_0x49f92f['Inject'](_0x49f92f['LocaleService'])),_0x540ae0(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x22e)])),_0x540ae0(0x2,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x11d)])),_0x540ae0(0x3,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x26f)])),_0x540ae0(0x4,_0x49f92f['Inject'](_0x29b248[_0x5565f1(0x177)]))],_0x47953f['SheetsPivotTableAdaptorModel']);var _0x415c78=Object[_0x5565f1(0x14a)],_0x1fc9a7=(_0x34f6a3,_0x213610,_0x204d56,_0x1abe00)=>{const _0x261a14=_0x5565f1;for(var _0x55e47a=_0x1abe00>0x1?void 0x0:_0x1abe00?_0x415c78(_0x213610,_0x204d56):_0x213610,_0x41a646=_0x34f6a3[_0x261a14(0x37f)]-0x1,_0x4b0d7c;_0x41a646>=0x0;_0x41a646--)(_0x4b0d7c=_0x34f6a3[_0x41a646])&&(_0x55e47a=_0x4b0d7c(_0x55e47a)||_0x55e47a);return _0x55e47a;},_0x16065e=(_0x304869,_0x5ae367)=>(_0x56832a,_0x33fa93)=>_0x5ae367(_0x56832a,_0x33fa93,_0x304869);_0x47953f['SheetsPivotTableService']=class extends _0x49f92f[_0x5565f1(0x425)]{constructor(_0x32f967,_0x487b49){const _0x59ebe0=_0x5565f1;super(),_0x246801(this,_0x59ebe0(0x3dc),new _0x49f92f[(_0x59ebe0(0x1ba))]({'PIVOT_PERFORM_CHECK':_0x2d81a5})),_0x246801(this,_0x59ebe0(0x1fe),new _0x49f92f[(_0x59ebe0(0x1a8))]({'PIVOT_MUTATION_GENERATE':_0x3c8d53})),(this[_0x59ebe0(0x264)]=_0x32f967,this[_0x59ebe0(0x299)]=_0x487b49,this[_0x59ebe0(0x2a0)]());}[_0x5565f1(0x2a0)](){const _0x307440=_0x5565f1;this[_0x307440(0x1a0)]();}[_0x5565f1(0x196)](_0x1ca5eb){const _0x13c411=_0x5565f1;return this['asyncInterceptor'][_0x13c411(0x3ab)](_0x2d81a5)(!0x1,_0x1ca5eb);}['_initViewModelBySheetInterceptor'](){const _0x3a8f5c=_0x5565f1;this[_0x3a8f5c(0x3ae)](this[_0x3a8f5c(0x264)][_0x3a8f5c(0x269)](_0x29b248['INTERCEPTOR_POINT']['CELL_CONTENT'],{'priority':0xc8,'effect':_0x49f92f['InterceptorEffectEnum'][_0x3a8f5c(0x359)]|_0x49f92f[_0x3a8f5c(0x16e)][_0x3a8f5c(0x296)],'handler':(_0x52a224,_0x1b40a3,_0x58f291)=>{const _0x4a76b9=_0x3a8f5c,{row:_0x23dea6,col:_0x354607,unitId:_0x138808,subUnitId:_0x380a78,workbook:_0x31aee0}=_0x1b40a3,_0x15b217=this[_0x4a76b9(0x299)][_0x4a76b9(0x26d)](_0x138808,_0x380a78,_0x23dea6,_0x354607);if(!_0x15b217)return _0x58f291(_0x52a224);const _0x11b5ec={..._0x52a224};(_0x15b217['v']||_0x15b217['v']===0x0)&&(_0x11b5ec['v']=_0x15b217['v']),_0x15b217['t']&&(_0x11b5ec['t']=_0x15b217['t']);const _0x792360=(typeof(_0x52a224==null?void 0x0:_0x52a224['s'])==_0x4a76b9(0x2fa)?_0x31aee0['getStyles']()[_0x4a76b9(0x326)](_0x52a224==null?void 0x0:_0x52a224['s']):_0x52a224==null?void 0x0:_0x52a224['s'])||{},_0x5a0379=_0x31aee0[_0x4a76b9(0x2dd)]()[_0x4a76b9(0x326)](_0x15b217['s']),_0x4af461={..._0x5a0379,..._0x792360};_0x5a0379!=null&&_0x5a0379['n']&&(_0x4af461['n']=_0x5a0379['n']);const _0x5ac8e2=_0x31aee0[_0x4a76b9(0x2dd)]()[_0x4a76b9(0x3c9)](_0x4af461);return _0x11b5ec['s']=_0x5ac8e2,(_0x15b217[_0x4a76b9(0x403)]===_0x16b0d8[_0x4a76b9(0x3f9)][_0x4a76b9(0x13e)]||_0x15b217[_0x4a76b9(0x403)]===_0x16b0d8[_0x4a76b9(0x3f9)][_0x4a76b9(0x122)])&&(_0x11b5ec[_0x4a76b9(0x343)]={},_0x11b5ec[_0x4a76b9(0x343)]['leftOffset']=_0x240c1f),_0x58f291(_0x11b5ec);}}));}},_0x47953f['SheetsPivotTableService']=_0x1fc9a7([_0x16065e(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x290)])),_0x16065e(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x3c8)]))],_0x47953f[_0x5565f1(0x2c5)]);const _0x417bba={'id':_0x5565f1(0x148),'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'handler':(_0x4b8644,_0x12bfc9)=>{const _0x540101=_0x5565f1;if(!_0x12bfc9)return!0x1;if(!!_0x4b8644[_0x540101(0x326)](_0x49f92f[_0x540101(0x404)])[_0x540101(0x2ee)](_0x511ea3))return!0x0;const {pivotTableId:_0x4753df,fieldJSON:_0x49fa45,unitId:_0x3e4a0e,subUnitId:_0x239bd5}=_0x12bfc9;let _0x3782ad;const {dataFieldType:_0x704956,id:_0xf69d23,name:_0x4fbb59,hexCode:_0x5e08f7,originalFieldId:_0x19ce02}=_0x49fa45;if(_0x704956===_0x16b0d8['PivotDataFieldTypeEnum']['dateGroupField']&&(_0x3782ad=new _0x16b0d8['DateGroupField'](_0xf69d23,_0x4fbb59,_0x5e08f7,_0x19ce02)),!_0x3782ad)return!0x1;const _0x19bc06=_0x4b8644[_0x540101(0x326)](_0x47953f[_0x540101(0x120)]),_0x209b35=_0x19bc06['getDataFieldManager'](_0x3e4a0e),_0x2a6f15=_0x209b35['getCollection'](_0x4753df);_0x209b35[_0x540101(0x198)](_0x3782ad),_0x2a6f15[_0x540101(0x30b)](_0x3782ad['getId'](),_0x3782ad['getName']());const _0x5735b9=_0x2a6f15[_0x540101(0x27e)](_0x3782ad[_0x540101(0x2e2)]());_0x5735b9&&_0x3782ad[_0x540101(0x116)](_0x5735b9);const _0x1d078e=_0x19bc06[_0x540101(0x215)](_0x3e4a0e,_0x239bd5,_0x4753df);return _0x19bc06[_0x540101(0x265)]({'unitId':_0x3e4a0e,'subUnitId':_0x239bd5,'token':_0x4753df,'type':_0x1e0edb['Set'],'pivotConfig':_0x1d078e}),!0x0;}},_0x4a69bb={'id':_0x5565f1(0x2ac),'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'handler':(_0x2c9c9c,_0x396b0f)=>{const _0x1ef66e=_0x5565f1;if(!_0x396b0f)return!0x1;if(!!_0x2c9c9c[_0x1ef66e(0x326)](_0x49f92f[_0x1ef66e(0x404)])[_0x1ef66e(0x2ee)](_0x511ea3))return!0x0;const {pivotTableId:_0x452dad,dataFieldId:_0x59f2e2,unitId:_0x416e75,subUnitId:_0x85ceb9}=_0x396b0f,_0x3614a4=_0x2c9c9c['get'](_0x47953f[_0x1ef66e(0x120)]),_0x9b0de9=_0x3614a4[_0x1ef66e(0x40e)](_0x416e75);_0x9b0de9[_0x1ef66e(0x312)](_0x452dad)['deleteField'](_0x59f2e2);let _0x5e654d=!0x0;for(const _0xc8e00f in _0x9b0de9[_0x1ef66e(0x40d)])if(_0x9b0de9[_0x1ef66e(0x40d)][_0xc8e00f]['getFieldIds']()[_0x1ef66e(0x1c1)](_0x59f2e2)){_0x5e654d=!0x1;break;}_0x5e654d&&_0x9b0de9[_0x1ef66e(0x178)](_0x59f2e2);const _0x1102e9=_0x3614a4[_0x1ef66e(0x215)](_0x416e75,_0x85ceb9,_0x452dad);return _0x3614a4[_0x1ef66e(0x265)]({'unitId':_0x416e75,'subUnitId':_0x85ceb9,'token':_0x452dad,'type':_0x1e0edb[_0x1ef66e(0x369)],'pivotConfig':_0x1102e9}),!0x0;}};function _0x452f49(_0x56e730,_0x55bf28){const _0x2a3821=_0x5565f1;switch(_0x55bf28){case _0x16b0d8['PivotTableFiledAreaEnum']['Value']:return _0x56e730['valueFields'];case _0x16b0d8[_0x2a3821(0x440)]['Filter']:return _0x56e730[_0x2a3821(0x175)];case _0x16b0d8[_0x2a3821(0x440)][_0x2a3821(0x3b6)]:return _0x56e730['rowFields'];case _0x16b0d8['PivotTableFiledAreaEnum'][_0x2a3821(0x28b)]:return _0x56e730['columnFields'];default:return[];}}function _0x5a44b4(_0x270885,_0x97faa5){const _0x25e79f=_0x5565f1;return _0x270885[_0x25e79f(0x307)][_0x97faa5]||_0x270885[_0x25e79f(0x172)][_0x97faa5];}function _0xebf397(_0x24a25d,_0x2f4afe){const _0x14b446=_0x5565f1,{area:_0xd4cbd5,fieldJson:_0x51a8aa,index:_0x531c94}=_0x2f4afe;_0xd4cbd5===_0x16b0d8[_0x14b446(0x440)]['Value']?_0x24a25d['measure'][_0x51a8aa['id']]=_0x51a8aa:_0x24a25d['dimension'][_0x51a8aa['id']]=_0x51a8aa,_0x452f49(_0x24a25d,_0xd4cbd5)[_0x14b446(0x3c4)](_0x531c94,0x0,_0x51a8aa['id']);}function _0x41aa43(_0x11dfd2,_0x47658b){const _0x448624=_0x5565f1,{area:_0x2cd2f8,fieldId:_0x498bdf,index:_0x5914c6}=_0x47658b;_0x2cd2f8===_0x16b0d8[_0x448624(0x440)]['Value']?delete _0x11dfd2[_0x448624(0x307)][_0x498bdf]:delete _0x11dfd2[_0x448624(0x172)][_0x498bdf],_0x452f49(_0x11dfd2,_0x2cd2f8)[_0x448624(0x3c4)](_0x5914c6,0x1);}function _0x301324(_0x39d360,_0x3b2b42){const _0x173084=_0x5565f1,{fieldId:_0x445da2,name:_0x840428}=_0x3b2b42,_0x144b1a=_0x5a44b4(_0x39d360,_0x445da2);_0x144b1a&&(_0x144b1a[_0x173084(0x1bd)]=_0x840428);}function _0x3e0493(_0x1ca931,_0x128433){const _0x5e76c3=_0x5565f1,{fieldId:_0x2343d5,collapse:_0x46bfec,item:_0x6227b0}=_0x128433;_0x6227b0!==void 0x0?(_0x1ca931['collapseInfo'][_0x2343d5]=_0x1ca931[_0x5e76c3(0x12b)][_0x2343d5]||{},_0x1ca931['collapseInfo'][_0x2343d5][_0x6227b0]=_0x46bfec):_0x1ca931[_0x5e76c3(0x12b)][_0x2343d5]=_0x46bfec;}function _0x203b5a(_0x1fd0c5,_0x57db7a){const _0x2e6cb6=_0x5565f1,{fieldId:_0xfd8f14,format:_0xfdbaa3}=_0x57db7a,_0x580a1f=_0x5a44b4(_0x1fd0c5,_0xfd8f14);_0x580a1f&&(_0x580a1f[_0x2e6cb6(0x40c)]=_0xfdbaa3);}function _0x99b8f4(_0x369120,_0x4e3e88){const _0x1c60c5=_0x5565f1,{fieldId:_0x5d83c8,filterInfo:_0x35cb58}=_0x4e3e88,_0x150394=_0x5a44b4(_0x369120,_0x5d83c8);_0x150394&&(_0x150394[_0x1c60c5(0x119)]=_0x35cb58);}function _0x2d0884(_0x3a19a2,_0x32e3b3){const _0x2f5a88=_0x5565f1,{fieldId:_0x43ae95,filterInfo:_0x1b6f09}=_0x32e3b3,_0x298a4a=_0x3a19a2['valueFilter'][_0x2f5a88(0x209)](_0x23a163=>_0x23a163[_0x2f5a88(0x27a)]!==_0x43ae95);_0x1b6f09&&_0x298a4a[_0x2f5a88(0x254)]({'fieldId':_0x43ae95,'filterInfo':_0x1b6f09}),_0x3a19a2[_0x2f5a88(0x2f2)]=_0x298a4a;}function _0xed741a(_0xabf9cc,_0x2f6e56){const _0x36c306=_0x5565f1,{fieldId:_0x54bdcb,subtotalType:_0x34ad24}=_0x2f6e56,_0x2223ad=_0x5a44b4(_0xabf9cc,_0x54bdcb);_0x2223ad&&(_0x2223ad[_0x36c306(0x3ff)]=_0x34ad24);}function _0xd6f6ac(_0x446786,_0x1e551c){const _0x3a3896=_0x5565f1,{fieldId:_0x35ad69,oldArea:_0x3e4766,area:_0x502f36,oldIndex:_0x4e6d0e,index:_0x3f35ef}=_0x1e551c,_0x57cc6a=_0x3e4766!==_0x16b0d8[_0x3a3896(0x440)][_0x3a3896(0x359)]&&_0x502f36===_0x16b0d8[_0x3a3896(0x440)][_0x3a3896(0x359)],_0x428f22=_0x3e4766===_0x16b0d8[_0x3a3896(0x440)]['Value']&&_0x502f36!==_0x16b0d8[_0x3a3896(0x440)][_0x3a3896(0x359)];if(_0x57cc6a||_0x428f22){const _0x545467=_0x5a44b4(_0x446786,_0x35ad69);_0x545467&&(_0x57cc6a?(delete _0x446786[_0x3a3896(0x172)][_0x35ad69],_0x446786[_0x3a3896(0x307)][_0x35ad69]=_0x545467):(delete _0x446786['measure'][_0x35ad69],_0x446786[_0x3a3896(0x172)][_0x35ad69]=_0x545467));}const _0x22292f=_0x452f49(_0x446786,_0x3e4766),_0x54b357=_0x452f49(_0x446786,_0x502f36);_0x22292f['splice'](_0x4e6d0e,0x1),_0x54b357[_0x3a3896(0x3c4)](_0x3f35ef,0x0,_0x35ad69);}function _0x2ddcb6(_0x4666fd,_0x404b3f){const {valuePosition:_0xeda138,index:_0x43d898}=_0x404b3f;_0x4666fd['valuePosition']=_0xeda138,_0x4666fd['valueIndex']=_0x43d898;}function _0x2771a5(_0x5cefe8,_0x5b4388){const _0x20ec9a=_0x5565f1,{tableFieldId:_0x57845b,sourceName:_0x31b5a5,dataFieldId:_0x3096fa}=_0x5b4388,_0x29f667=_0x5a44b4(_0x5cefe8,_0x57845b);_0x29f667&&(_0x29f667[_0x20ec9a(0x3a9)]=_0x31b5a5,_0x29f667['dataFieldId']=_0x3096fa);}function _0x574874(_0x574014,_0x5e9453){const {fieldId:_0xe34f58,sortInfo:_0x9bc649}=_0x5e9453,_0x20f66c=_0x5a44b4(_0x574014,_0xe34f58);_0x20f66c&&(_0x20f66c['sortInfo']=_0x9bc649);}function _0x4c00a7(_0x3668f5,_0x4435da){const _0x476b2d=_0x5565f1,{options:_0x556d9e}=_0x4435da;_0x3668f5[_0x476b2d(0x211)]={..._0x3668f5['options'],..._0x556d9e};}const _0x453e87={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x38c),'handler'(_0x237027,_0x31e850){const _0x1ea962=_0x5565f1;if(!_0x31e850)return!0x1;if(!!_0x237027[_0x1ea962(0x326)](_0x49f92f[_0x1ea962(0x404)])['getConfig'](_0x511ea3))return!0x0;const _0x237e4e=_0x237027[_0x1ea962(0x326)](_0x47953f[_0x1ea962(0x120)]),{pivotTableId:_0x58b686,fieldJson:_0x5da4da,area:_0x3b5a8e,index:_0x27e774,unitId:_0x400144,subUnitId:_0x19580f}=_0x31e850,_0xb95247=_0x237e4e[_0x1ea962(0x233)](_0x58b686);if(!_0xb95247)return!0x1;let _0x2cbdce;_0x3b5a8e===_0x16b0d8[_0x1ea962(0x440)]['Value']?_0x2cbdce=_0x16b0d8[_0x1ea962(0x205)](_0x5da4da):_0x2cbdce=_0x16b0d8[_0x1ea962(0x1d2)](_0x5da4da),_0xb95247[_0x1ea962(0x30b)](_0x2cbdce,_0x3b5a8e,_0x27e774);const _0x197b82=_0x237e4e[_0x1ea962(0x3de)](_0x400144,_0x19580f,_0x58b686);_0xebf397(_0x197b82,_0x31e850);const _0x1fcbb9=_0x237e4e[_0x1ea962(0x215)](_0x400144,_0x19580f,_0x58b686);return _0x237e4e[_0x1ea962(0x265)]({'unitId':_0x400144,'subUnitId':_0x19580f,'token':_0x58b686,'type':_0x1e0edb[_0x1ea962(0x369)],'pivotConfig':_0x1fcbb9}),!0x0;}},_0x3b2c81={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x17c),'handler'(_0x2ca726,_0x18afe0){const _0x15bc25=_0x5565f1;if(!_0x18afe0)return!0x1;if(!!_0x2ca726[_0x15bc25(0x326)](_0x49f92f[_0x15bc25(0x404)])[_0x15bc25(0x2ee)](_0x511ea3))return!0x0;const _0x532811=_0x2ca726[_0x15bc25(0x326)](_0x47953f[_0x15bc25(0x120)]),{pivotTableId:_0x1b85d6,fieldId:_0x1fb397,unitId:_0x3fe657,subUnitId:_0x4104ec}=_0x18afe0,_0x3817b5=_0x532811[_0x15bc25(0x233)](_0x1b85d6);if(!_0x3817b5)return!0x1;_0x3817b5[_0x15bc25(0x376)](_0x1fb397);const _0x44cf17=_0x532811[_0x15bc25(0x3de)](_0x3fe657,_0x4104ec,_0x1b85d6);_0x41aa43(_0x44cf17,_0x18afe0);const _0xb6b0c6=_0x532811[_0x15bc25(0x215)](_0x3fe657,_0x4104ec,_0x1b85d6);return _0x532811[_0x15bc25(0x265)]({'unitId':_0x3fe657,'subUnitId':_0x4104ec,'token':_0x1b85d6,'type':_0x1e0edb['Set'],'pivotConfig':_0xb6b0c6}),!0x0;}},_0x2b9b8c={'type':_0x49f92f['CommandType'][_0x5565f1(0x1fc)],'id':_0x5565f1(0x39a),'handler'(_0x35ff5c,_0x4a150c){const _0x52ce2d=_0x5565f1;if(!_0x4a150c)return!0x1;if(!!_0x35ff5c[_0x52ce2d(0x326)](_0x49f92f[_0x52ce2d(0x404)])[_0x52ce2d(0x2ee)](_0x511ea3))return!0x0;const _0x1c1b1d=_0x35ff5c[_0x52ce2d(0x326)](_0x47953f['SheetsPivotDataSourceModel']),{unitId:_0x1fb73a,subUnitId:_0x309d9c,pivotTableId:_0x7268d0,fieldId:_0x5cf8cb,name:_0x4070e5}=_0x4a150c,_0x448327=_0x1c1b1d[_0x52ce2d(0x233)](_0x7268d0);if(!_0x448327)return!0x1;_0x448327[_0x52ce2d(0x25e)](_0x5cf8cb,_0x4070e5);const _0x530de6=_0x1c1b1d['getPivotTableModelConfig'](_0x1fb73a,_0x309d9c,_0x7268d0);return _0x301324(_0x530de6,_0x4a150c),_0x1c1b1d[_0x52ce2d(0x265)]({'unitId':_0x1fb73a,'subUnitId':_0x309d9c,'token':_0x7268d0,'type':_0x1e0edb[_0x52ce2d(0x369)]}),!0x0;}},_0x5d474={'type':_0x49f92f['CommandType'][_0x5565f1(0x1fc)],'id':_0x5565f1(0x216),'handler'(_0x2d1b69,_0x2a6e30){const _0x5b31f9=_0x5565f1;if(!_0x2a6e30)return!0x1;if(!!_0x2d1b69[_0x5b31f9(0x326)](_0x49f92f['IConfigService'])[_0x5b31f9(0x2ee)](_0x511ea3))return!0x0;const _0x28765c=_0x2d1b69[_0x5b31f9(0x326)](_0x47953f[_0x5b31f9(0x120)]),{unitId:_0x15aee4,subUnitId:_0xe1fdaa,pivotTableId:_0x2a125d,fieldId:_0x515933,collapse:_0x52c023,item:_0x2485c0}=_0x2a6e30,_0x2b82d9=_0x28765c[_0x5b31f9(0x233)](_0x2a125d);if(!_0x2b82d9)return!0x1;_0x2b82d9[_0x5b31f9(0x417)](_0x515933,_0x52c023,_0x2485c0);const _0x5778da=_0x28765c[_0x5b31f9(0x3de)](_0x15aee4,_0xe1fdaa,_0x2a125d);return _0x3e0493(_0x5778da,_0x2a6e30),_0x28765c['addDirtyPivotTable']({'unitId':_0x15aee4,'subUnitId':_0xe1fdaa,'token':_0x2a125d,'type':_0x1e0edb[_0x5b31f9(0x369)]}),!0x0;}},_0x4432ef={'type':_0x49f92f['CommandType']['MUTATION'],'id':_0x5565f1(0x21c),'handler'(_0x3f8e20,_0x498233){const _0x55f939=_0x5565f1;if(!_0x498233)return!0x1;if(!!_0x3f8e20[_0x55f939(0x326)](_0x49f92f[_0x55f939(0x404)])[_0x55f939(0x2ee)](_0x511ea3))return!0x0;const _0x3d38d8=_0x3f8e20['get'](_0x47953f[_0x55f939(0x120)]),{unitId:_0x58addd,subUnitId:_0x40e504,pivotTableId:_0x34c759,fieldId:_0x2606bc,format:_0x51e573}=_0x498233,_0x585660=_0x3d38d8[_0x55f939(0x233)](_0x34c759);if(!_0x585660)return!0x1;_0x585660[_0x55f939(0x12f)](_0x2606bc,_0x51e573);const _0x4424cb=_0x3d38d8[_0x55f939(0x3de)](_0x58addd,_0x40e504,_0x34c759);return _0x203b5a(_0x4424cb,_0x498233),_0x3d38d8[_0x55f939(0x265)]({'unitId':_0x58addd,'subUnitId':_0x40e504,'token':_0x34c759,'type':_0x1e0edb[_0x55f939(0x369)]}),!0x0;}},_0x40cd4c={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x169),'handler'(_0x3ab38c,_0x2f5e86){const _0x42e257=_0x5565f1;if(!_0x2f5e86)return!0x1;if(!!_0x3ab38c[_0x42e257(0x326)](_0x49f92f[_0x42e257(0x404)])[_0x42e257(0x2ee)](_0x511ea3))return!0x0;const _0x5e169a=_0x3ab38c[_0x42e257(0x326)](_0x47953f[_0x42e257(0x120)]),{unitId:_0xe1a157,subUnitId:_0x341172,pivotTableId:_0x53559d,fieldId:_0xcbcf7c,filterInfo:_0x46a98a}=_0x2f5e86,_0x1bc0a3=_0x5e169a[_0x42e257(0x233)](_0x53559d);if(!_0x1bc0a3)return!0x1;_0x1bc0a3[_0x42e257(0x37b)](_0xcbcf7c,_0x46a98a);const _0x2f525b=_0x5e169a[_0x42e257(0x3de)](_0xe1a157,_0x341172,_0x53559d);return _0x99b8f4(_0x2f525b,_0x2f5e86),_0x5e169a[_0x42e257(0x265)]({'unitId':_0xe1a157,'subUnitId':_0x341172,'token':_0x53559d,'type':_0x1e0edb[_0x42e257(0x369)]}),!0x0;}},_0x326349={'type':_0x49f92f[_0x5565f1(0x1ae)]['MUTATION'],'id':_0x5565f1(0x434),'handler'(_0x3446d6,_0x5434b7){const _0x539a5d=_0x5565f1;if(!_0x5434b7)return!0x1;if(!!_0x3446d6['get'](_0x49f92f[_0x539a5d(0x404)])[_0x539a5d(0x2ee)](_0x511ea3))return!0x0;const _0x10db05=_0x3446d6[_0x539a5d(0x326)](_0x47953f[_0x539a5d(0x120)]),{unitId:_0x229925,subUnitId:_0x3852f0,pivotTableId:_0x18c46e,options:_0x3fab00}=_0x5434b7,_0x14677a=_0x10db05['getPivotTableInstance'](_0x18c46e);if(!_0x14677a)return!0x1;_0x14677a['setOptions'](_0x3fab00);const _0x2b3dfd=_0x10db05['getPivotTableModelConfig'](_0x229925,_0x3852f0,_0x18c46e);return _0x4c00a7(_0x2b3dfd,_0x5434b7),_0x10db05[_0x539a5d(0x265)]({'unitId':_0x229925,'subUnitId':_0x3852f0,'token':_0x18c46e,'type':_0x1e0edb[_0x539a5d(0x369)]}),!0x0;}},_0x4db253={'type':_0x49f92f[_0x5565f1(0x1ae)]['MUTATION'],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x14710a,_0x679d24){const _0x163a3f=_0x5565f1;if(!_0x679d24)return!0x1;if(!!_0x14710a[_0x163a3f(0x326)](_0x49f92f['IConfigService'])[_0x163a3f(0x2ee)](_0x511ea3))return!0x0;const _0x4a6d79=_0x14710a[_0x163a3f(0x326)](_0x47953f[_0x163a3f(0x120)]),{unitId:_0x2994c7,subUnitId:_0x165ed8,pivotTableId:_0x2d5c6f,sortInfo:_0x1899ef,fieldId:_0x33eba8}=_0x679d24,_0x37819e=_0x4a6d79[_0x163a3f(0x233)](_0x2d5c6f);if(!_0x37819e)return!0x1;_0x37819e[_0x163a3f(0x16f)](_0x33eba8,_0x1899ef);const _0x5e7a09=_0x4a6d79[_0x163a3f(0x3de)](_0x2994c7,_0x165ed8,_0x2d5c6f);return _0x574874(_0x5e7a09,_0x679d24),_0x4a6d79['addDirtyPivotTable']({'unitId':_0x2994c7,'subUnitId':_0x165ed8,'token':_0x2d5c6f,'type':_0x1e0edb[_0x163a3f(0x369)]}),!0x0;}},_0x1b4e76={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x26a),'handler'(_0x2c3d9f,_0x48900f){const _0x3edfe8=_0x5565f1;if(!_0x48900f)return!0x1;if(!!_0x2c3d9f[_0x3edfe8(0x326)](_0x49f92f['IConfigService'])[_0x3edfe8(0x2ee)](_0x511ea3))return!0x0;const _0x382eb1=_0x2c3d9f[_0x3edfe8(0x326)](_0x47953f[_0x3edfe8(0x120)]),{unitId:_0x281761,subUnitId:_0x15f15e,pivotTableId:_0x408020,fieldId:_0x48b6cb,subtotalType:_0x2ea5f9}=_0x48900f,_0x16471d=_0x382eb1[_0x3edfe8(0x233)](_0x408020);if(!_0x16471d)return!0x1;_0x16471d['setSubtotalType'](_0x48b6cb,_0x2ea5f9);const _0x589d24=_0x382eb1[_0x3edfe8(0x3de)](_0x281761,_0x15f15e,_0x408020);return _0xed741a(_0x589d24,_0x48900f),_0x382eb1[_0x3edfe8(0x265)]({'unitId':_0x281761,'subUnitId':_0x15f15e,'token':_0x408020,'type':_0x1e0edb['Set']}),!0x0;}},_0x423b43={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x207),'handler'(_0x181829,_0x5553ed){const _0x24c8dd=_0x5565f1;if(!_0x5553ed)return!0x1;if(!!_0x181829[_0x24c8dd(0x326)](_0x49f92f[_0x24c8dd(0x404)])['getConfig'](_0x511ea3))return!0x0;const _0x32c2f3=_0x181829['get'](_0x47953f['SheetsPivotDataSourceModel']),{unitId:_0x7f428d,subUnitId:_0xfeec3e,pivotTableId:_0x23f99e,fieldId:_0x1040f0,filterInfo:_0xb6e2eb}=_0x5553ed,_0x57bca6=_0x32c2f3[_0x24c8dd(0x233)](_0x23f99e);if(!_0x57bca6)return!0x1;_0x57bca6[_0x24c8dd(0x281)](_0x1040f0,_0xb6e2eb);const _0x52df8b=_0x32c2f3[_0x24c8dd(0x3de)](_0x7f428d,_0xfeec3e,_0x23f99e);return _0x2d0884(_0x52df8b,_0x5553ed),_0x32c2f3['addDirtyPivotTable']({'unitId':_0x7f428d,'subUnitId':_0xfeec3e,'token':_0x23f99e,'type':_0x1e0edb[_0x24c8dd(0x369)]}),!0x0;}},_0x3f40e7={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x2e1),'handler'(_0x75b777,_0x26b500){const _0x50a935=_0x5565f1;if(!_0x26b500)return!0x1;if(!!_0x75b777['get'](_0x49f92f[_0x50a935(0x404)])[_0x50a935(0x2ee)](_0x511ea3))return!0x0;const _0x548ad7=_0x75b777[_0x50a935(0x326)](_0x47953f[_0x50a935(0x120)]),{unitId:_0x1239cc,subUnitId:_0x470322,pivotTableId:_0x4ab9df,area:_0x1fdf01,index:_0x4bd0c7,fieldId:_0x1da977}=_0x26b500,_0x25263d=_0x548ad7[_0x50a935(0x233)](_0x4ab9df);if(!_0x25263d)return!0x1;_0x25263d['updateFieldPosition'](_0x1da977,_0x1fdf01,_0x4bd0c7);const _0x5f23a4=_0x548ad7[_0x50a935(0x3de)](_0x1239cc,_0x470322,_0x4ab9df);return _0xd6f6ac(_0x5f23a4,_0x26b500),_0x548ad7['addDirtyPivotTable']({'unitId':_0x1239cc,'subUnitId':_0x470322,'token':_0x4ab9df,'type':_0x1e0edb[_0x50a935(0x369)]}),!0x0;}},_0x528f2b={'type':_0x49f92f['CommandType'][_0x5565f1(0x1fc)],'id':_0x5565f1(0x297),'handler'(_0x413b95,_0x2fcbc7){const _0x3a1502=_0x5565f1;if(!_0x2fcbc7)return!0x1;if(!!_0x413b95[_0x3a1502(0x326)](_0x49f92f['IConfigService'])[_0x3a1502(0x2ee)](_0x511ea3))return!0x0;const _0x2548f2=_0x413b95[_0x3a1502(0x326)](_0x47953f[_0x3a1502(0x120)]),{unitId:_0x3dfd30,subUnitId:_0x1d703e,pivotTableId:_0x3be460,sourceName:_0x451d39,dataFieldId:_0x73ac0f,tableFieldId:_0xf79a62}=_0x2fcbc7,_0x1acb16=_0x2548f2[_0x3a1502(0x233)](_0x3be460);if(!_0x1acb16)return!0x1;_0x1acb16['updateFieldSourceInfo'](_0xf79a62,_0x451d39,_0x73ac0f);const _0x4551ff=_0x2548f2[_0x3a1502(0x3de)](_0x3dfd30,_0x1d703e,_0x3be460);return _0x2771a5(_0x4551ff,_0x2fcbc7),_0x2548f2[_0x3a1502(0x265)]({'unitId':_0x3dfd30,'subUnitId':_0x1d703e,'token':_0x3be460,'type':_0x1e0edb[_0x3a1502(0x369)]}),!0x0;}},_0x4ca1db={'type':_0x49f92f['CommandType']['MUTATION'],'id':_0x5565f1(0x3fa),'handler'(_0x2b5d08,_0x301afa){const _0x14757c=_0x5565f1;if(!_0x301afa)return!0x1;if(!!_0x2b5d08[_0x14757c(0x326)](_0x49f92f[_0x14757c(0x404)])[_0x14757c(0x2ee)](_0x511ea3))return!0x0;const _0x488cb0=_0x2b5d08[_0x14757c(0x326)](_0x47953f[_0x14757c(0x120)]),{unitId:_0x23e406,subUnitId:_0x4190fd,pivotTableId:_0x35edb0,valuePosition:_0x10f845,index:_0x105980}=_0x301afa,_0x3daf45=_0x488cb0[_0x14757c(0x233)](_0x35edb0);if(!_0x3daf45)return!0x1;_0x3daf45[_0x14757c(0x323)](_0x10f845,_0x105980);const _0x3e30c4=_0x488cb0[_0x14757c(0x3de)](_0x23e406,_0x4190fd,_0x35edb0);return _0x2ddcb6(_0x3e30c4,_0x301afa),_0x488cb0[_0x14757c(0x265)]({'unitId':_0x23e406,'subUnitId':_0x4190fd,'token':_0x35edb0,'type':_0x1e0edb[_0x14757c(0x369)]}),!0x0;}};function _0x41974f(_0x162436,_0x36b7b0,_0x40d6f4){const _0x3cd813=_0x5565f1,{pivotTableId:_0x7b05fb,unitId:_0x17ee10,subUnitId:_0x16ebfb}=_0x36b7b0,_0x2316b1=[],_0x5f5367=[];for(const _0x108dce of _0x40d6f4)switch(_0x108dce[_0x3cd813(0x2a8)]){case _0x16b0d8['PivotTableChangeTypeEnum'][_0x3cd813(0x273)]:{const {fieldJson:_0x7f4da5,area:_0x5608db,index:_0x19ebb0}=_0x108dce,_0x22f69f={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldJson':_0x7f4da5,'area':_0x5608db,'index':_0x19ebb0},_0x5a32f1={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x7f4da5['id'],'area':_0x5608db,'index':_0x19ebb0};_0x2316b1[_0x3cd813(0x254)]({'id':_0x453e87['id'],'params':_0x22f69f}),_0x5f5367[_0x3cd813(0x127)]({'id':_0x3b2c81['id'],'params':_0x5a32f1});}break;case _0x16b0d8[_0x3cd813(0x368)]['SetSubtotalType']:{const {fieldId:_0x582bf9,newSubtotalType:_0x4a4c6a,oldSubtotalType:_0x6a094}=_0x108dce,_0xf548dc={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x582bf9,'subtotalType':_0x4a4c6a};_0x2316b1['push']({'id':_0x1b4e76['id'],'params':_0xf548dc});const _0x4abb1f={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x582bf9,'subtotalType':_0x6a094};_0x5f5367['unshift']({'id':_0x1b4e76['id'],'params':_0x4abb1f});}break;case _0x16b0d8['PivotTableChangeTypeEnum'][_0x3cd813(0x2bc)]:{const {fieldId:_0x2c5765,fieldJson:_0x1f268d,area:_0x2b7c6f,index:_0x11c7cc}=_0x108dce,_0x437092={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x2c5765,'index':_0x11c7cc,'area':_0x2b7c6f};_0x2316b1['push']({'id':_0x3b2c81['id'],'params':_0x437092});const _0x1b73e3={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldJson':_0x1f268d,'area':_0x2b7c6f,'index':_0x11c7cc};_0x5f5367['unshift']({'id':_0x453e87['id'],'params':_0x1b73e3});}break;case _0x16b0d8[_0x3cd813(0x368)][_0x3cd813(0x3b1)]:{const {fieldId:_0x332608,oldName:_0x4d14d8,newName:_0x5b47bf}=_0x108dce,_0x6d0392={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x332608,'name':_0x5b47bf};_0x2316b1[_0x3cd813(0x254)]({'id':_0x2b9b8c['id'],'params':_0x6d0392});const _0x5ea6ba={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x332608,'name':_0x4d14d8};_0x5f5367[_0x3cd813(0x127)]({'id':_0x2b9b8c['id'],'params':_0x5ea6ba});}break;case _0x16b0d8[_0x3cd813(0x368)]['SetFilterInfo']:{const {fieldId:_0x2cbb77,oldFilterInfo:_0x2f9eab,newFilterInfo:_0x5b9204}=_0x108dce,_0xf84903={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x2cbb77,'filterInfo':_0x5b9204};_0x2316b1[_0x3cd813(0x254)]({'id':_0x40cd4c['id'],'params':_0xf84903});const _0x5457a5={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x2cbb77,'filterInfo':_0x2f9eab};_0x5f5367[_0x3cd813(0x127)]({'id':_0x40cd4c['id'],'params':_0x5457a5});}break;case _0x16b0d8['PivotTableChangeTypeEnum']['SetSortInfo']:{const {fieldId:_0x54afd5,oldSortInfo:_0x4882bc,newSortInfo:_0x52078e}=_0x108dce,_0x5b8a26={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x54afd5,'sortInfo':_0x52078e};_0x2316b1[_0x3cd813(0x254)]({'id':_0x4db253['id'],'params':_0x5b8a26});const _0x5a5130={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x54afd5,'sortInfo':_0x4882bc};_0x5f5367[_0x3cd813(0x127)]({'id':_0x4db253['id'],'params':_0x5a5130});}break;case _0x16b0d8[_0x3cd813(0x368)]['SetOptions']:{const {oldOptions:_0x55438e,newOptions:_0x4d6ea4}=_0x108dce,_0xd50272={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'options':_0x4d6ea4};_0x2316b1['push']({'id':_0x326349['id'],'params':_0xd50272});const _0x4846cb={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'options':_0x55438e};_0x5f5367[_0x3cd813(0x127)]({'id':_0x326349['id'],'params':_0x4846cb});}break;case _0x16b0d8['PivotTableChangeTypeEnum'][_0x3cd813(0x3d6)]:{const {oldArea:_0x590e34,newArea:_0x1386ee,oldIndex:_0x32edb9,newIndex:_0x106cbd,fieldId:_0x3969e2}=_0x108dce,_0x4afd6c={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x3969e2,'area':_0x1386ee,'index':_0x106cbd,'oldArea':_0x590e34,'oldIndex':_0x32edb9};_0x2316b1[_0x3cd813(0x254)]({'id':_0x3f40e7['id'],'params':_0x4afd6c});const _0x317aa6={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x3969e2,'area':_0x590e34,'index':_0x32edb9,'oldArea':_0x1386ee,'oldIndex':_0x106cbd};_0x5f5367['unshift']({'id':_0x3f40e7['id'],'params':_0x317aa6});}break;case _0x16b0d8['PivotTableChangeTypeEnum'][_0x3cd813(0x17f)]:{const {oldValuePosition:_0x3352ef,newValuePosition:_0x2f24b8,oldIndex:_0x36d519,newIndex:_0x134b70}=_0x108dce,_0x416760={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'valuePosition':_0x2f24b8,'index':_0x134b70};_0x2316b1['push']({'id':_0x4ca1db['id'],'params':_0x416760});const _0x57b3d4={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'valuePosition':_0x3352ef,'index':_0x36d519};_0x5f5367[_0x3cd813(0x127)]({'id':_0x4ca1db['id'],'params':_0x57b3d4});}break;case _0x16b0d8[_0x3cd813(0x368)][_0x3cd813(0x378)]:{const {fieldId:_0xb79923,collapse:_0x1dd48d,item:_0x5ae5dd}=_0x108dce,_0x3fe21a={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0xb79923,'collapse':_0x1dd48d,'item':_0x5ae5dd};_0x2316b1[_0x3cd813(0x254)]({'id':_0x5d474['id'],'params':_0x3fe21a});const _0x2620de={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0xb79923,'collapse':!_0x1dd48d,'item':_0x5ae5dd};_0x5f5367[_0x3cd813(0x127)]({'id':_0x5d474['id'],'params':_0x2620de});}break;case _0x16b0d8[_0x3cd813(0x368)][_0x3cd813(0x19e)]:{const {newFormat:_0x184af2,oldFormat:_0x2e3756,fieldId:_0x1184d1}=_0x108dce,_0xf3655c={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x1184d1,'format':_0x184af2};_0x2316b1['push']({'id':_0x4432ef['id'],'params':_0xf3655c});const _0x2f0780={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x1184d1,'format':_0x2e3756};_0x5f5367[_0x3cd813(0x127)]({'id':_0x4432ef['id'],'params':_0x2f0780});}break;case _0x16b0d8[_0x3cd813(0x368)][_0x3cd813(0x32a)]:{const {tableFieldId:_0x5af57f,oldSourceName:_0x481bd5,newSourceName:_0x483a48,oldDataFieldId:_0x4cfcd0,newDataFieldId:_0x56b51c}=_0x108dce,_0x65bd45={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'tableFieldId':_0x5af57f,'sourceName':_0x483a48,'dataFieldId':_0x56b51c};_0x2316b1[_0x3cd813(0x254)]({'id':_0x528f2b['id'],'params':_0x65bd45});const _0x3a7a5c={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'tableFieldId':_0x5af57f,'sourceName':_0x481bd5,'dataFieldId':_0x4cfcd0};_0x5f5367[_0x3cd813(0x127)]({'id':_0x528f2b['id'],'params':_0x3a7a5c});}break;case _0x16b0d8['PivotTableChangeTypeEnum'][_0x3cd813(0x1ea)]:{const {fieldId:_0x15ec20,filterInfo:_0x35e2f3,oldFilterInfo:_0x134657}=_0x108dce,_0x3312e6={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x15ec20,'filterInfo':_0x35e2f3};_0x2316b1[_0x3cd813(0x254)]({'id':_0x423b43['id'],'params':_0x3312e6});const _0x10ef3b={'unitId':_0x17ee10,'subUnitId':_0x16ebfb,'pivotTableId':_0x7b05fb,'fieldId':_0x15ec20,'filterInfo':_0x134657};_0x5f5367['unshift']({'id':_0x423b43['id'],'params':_0x10ef3b});}}return{'redos':_0x2316b1,'undos':_0x5f5367};}function _0x3f413f(_0x2a3a82,_0x4b6e08){const _0x34ed4d=_0x5565f1;var _0x22baa3;const _0x23fb27=_0x2a3a82[_0x34ed4d(0x326)](_0x47953f[_0x34ed4d(0x2c5)]),{cellInfo:_0x43dee2,view:_0x326e12,isEmpty:_0x32b66e}=_0x4b6e08;return(_0x22baa3=_0x23fb27['interceptor'][_0x34ed4d(0x179)](_0x3c8d53)(_0x41e9cb,{'cellInfo':_0x43dee2,'view':_0x326e12,'isEmpty':_0x32b66e}))!=null?_0x22baa3:_0x41e9cb;}const _0x1636bc={'type':_0x49f92f['CommandType']['COMMAND'],'id':_0x5565f1(0x373),async 'handler'(_0x57783a,_0x525e09){const _0x54e57f=_0x5565f1;if(!_0x525e09)return!0x1;const _0x477345=_0x57783a[_0x54e57f(0x326)](_0x49f92f[_0x54e57f(0x3fc)]),_0x6fbbb9=_0x57783a[_0x54e57f(0x326)](_0x47953f[_0x54e57f(0x3f1)]),_0x508090=_0x57783a['get'](_0x49f92f['IUndoRedoService']),{pivotTableId:_0x43e43a,dataFieldId:_0x320342,fieldArea:_0x23b63d,index:_0x46262f,unitId:_0x241b3d,subUnitId:_0xf054c1}=_0x525e09,_0x111fb8=(await _0x6fbbb9[_0x54e57f(0x236)]({'unitId':_0x241b3d,'subUnitId':_0xf054c1,'pivotTableId':_0x43e43a,'params':{'type':_0x3175a8['AddPivotField'],'addPivotField':{'dataFieldId':_0x320342,'fieldArea':_0x23b63d,'index':_0x46262f}}}))[_0x54e57f(0x138)][_0x54e57f(0x195)];if(!_0x111fb8)return!0x1;const {view:_0x48a074,changesets:_0x4046e8,isEmpty:_0x2cfe66,pivotTableConfig:_0x5e97b7,shouldBeAddedGroupJSON:_0x2eaeb2}=_0x111fb8,_0x362804=_0x5e97b7[_0x54e57f(0x1d0)],_0x1818c4=new _0x16b0d8[(_0x54e57f(0x19b))]();_0x1818c4[_0x54e57f(0x39c)](_0x48a074);const _0x33b1e5={'cellInfo':_0x362804,'view':_0x1818c4,'isEmpty':_0x2cfe66};if(!await _0x57783a[_0x54e57f(0x326)](_0x47953f[_0x54e57f(0x2c5)])[_0x54e57f(0x3dc)][_0x54e57f(0x3ab)](_0x2d81a5)(!0x0,_0x33b1e5))return!0x1;const _0x15713c=_0x2535c3(_0x57783a,_0x1818c4,_0x362804,_0x2cfe66),_0x583170=_0x3f413f(_0x57783a,_0x33b1e5),{undos:_0x2182ec,redos:_0x43a2e7}=_0x41974f(_0x477345,{'pivotTableId':_0x43e43a,'unitId':_0x241b3d,'subUnitId':_0xf054c1},_0x4046e8);return _0x2eaeb2&&(_0x43a2e7[_0x54e57f(0x127)]({'id':_0x417bba['id'],'params':{'pivotTableId':_0x43e43a,'fieldJSON':_0x2eaeb2,'unitId':_0x241b3d,'subUnitId':_0xf054c1}}),_0x2182ec[_0x54e57f(0x254)]({'id':_0x4a69bb['id'],'params':{'pivotTableId':_0x43e43a,'dataFieldId':_0x2eaeb2['id'],'unitId':_0x241b3d,'subUnitId':_0xf054c1}})),_0x49f92f[_0x54e57f(0x43f)]([..._0x15713c[_0x54e57f(0x2a5)],..._0x583170['redos'],..._0x43a2e7],_0x477345),_0x508090[_0x54e57f(0x232)]({'unitID':_0x241b3d,'redoMutations':[..._0x15713c[_0x54e57f(0x2a5)],..._0x583170[_0x54e57f(0x2a5)],..._0x43a2e7],'undoMutations':[..._0x15713c[_0x54e57f(0x206)],..._0x583170[_0x54e57f(0x206)],..._0x2182ec]}),!0x0;}},_0x3db28a=()=>typeof process<'u'&&process['versions']!=null&&process[_0x5565f1(0x426)][_0x5565f1(0x3dd)]!=null,_0x1eb047={'type':_0x49f92f['CommandType'][_0x5565f1(0x1fc)],'id':_0x5565f1(0x240),'handler'(_0x194cf1,_0x41a061){const _0x5bb460=_0x5565f1;var _0x46dd20;if(!_0x41a061)return!0x1;const _0x584d47=_0x194cf1[_0x5bb460(0x326)](_0x49f92f['IConfigService']);if(!!_0x584d47[_0x5bb460(0x2ee)](_0x511ea3))return!0x0;const _0x48b786=_0x194cf1['get'](_0x49f92f[_0x5bb460(0x26f)]),_0x1359bd=_0x194cf1[_0x5bb460(0x326)](_0x47953f[_0x5bb460(0x120)]),{pivotTableId:_0x5f2caf,pivotTableConfig:_0x420bd9,collectionConfig:_0x27ef72,unitId:_0x51ac04,subUnitId:_0x13c35b}=_0x41a061,{sourceRangeInfo:_0x20bb36,fieldsConfig:_0x3ef96d,targetCellInfo:_0x4395e4}=_0x420bd9,_0x45779f=_0x48b786[_0x5bb460(0x3c5)](_0x51ac04);if(!_0x45779f||!_0x45779f['getSheetBySheetId'](_0x13c35b))return!0x1;if(!_0x3db28a()){let _0x3713c2=0x0;_0x45779f[_0x5bb460(0x31f)]()[_0x5bb460(0x350)](_0x1246bc=>{const _0x42f6ad=_0x5bb460;var _0xceb86a,_0xfe8120;_0x3713c2+=(_0xfe8120=(_0xceb86a=_0x1359bd[_0x42f6ad(0x1dd)](_0x51ac04,_0x1246bc['getSheetId']()))==null?void 0x0:_0xceb86a[_0x42f6ad(0x422)])!=null?_0xfe8120:0x0;});const _0xe02b1=(_0x46dd20=_0x584d47[_0x5bb460(0x2ee)](_0x3e3faf['LS_CONFIG_KEY']))!=null?_0x46dd20:{},{ls:_0x41dbc8,pbk:_0x53de70}=_0xe02b1;if(!_0xe56476(_0x41dbc8,_0x53de70))throw new _0x49f92f[(_0x5bb460(0x220))](_0x5bb460(0x437));const _0xbf489a=_0x183df5(_0x5078db,_0x41dbc8,_0x53de70)[_0x5bb460(0x124)];if(_0x3713c2>=_0xbf489a)throw new _0x49f92f['CustomCommandExecutionError']('limit\x20pivot');}if(!_0x27ef72||!_0x3ef96d)return!0x1;const {collection:_0x21f0bb,updateDataFieldList:_0x251d11}=_0x1359bd[_0x5bb460(0x3cf)](_0x5f2caf,_0x27ef72,_0x20bb36,_0x4395e4);_0x1359bd[_0x5bb460(0x1f7)](_0x21f0bb,_0x251d11,_0x20bb36);const _0x1f6170=new _0x16b0d8[(_0x5bb460(0x43c))](_0x21f0bb,void 0x0,_0x5f2caf);_0x1f6170[_0x5bb460(0x401)](_0x3ef96d);const _0x220444=JSON[_0x5bb460(0x3ac)](JSON[_0x5bb460(0x362)](_0x420bd9));return _0x1359bd[_0x5bb460(0x32f)](_0x51ac04,_0x13c35b,_0x5f2caf,_0x1f6170,_0x220444),_0x1359bd[_0x5bb460(0x265)]({'unitId':_0x51ac04,'subUnitId':_0x13c35b,'token':_0x5f2caf,'type':_0x1e0edb[_0x5bb460(0x2d5)],'pivotConfig':_0x220444}),!0x0;}},_0x588cef={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'id':_0x5565f1(0x24e),async 'handler'(_0x2f514e,_0x576532){const _0xdd649e=_0x5565f1;if(!_0x576532)return!0x1;const {sourceDataInfo:_0x273f8d,pivotTableConfig:_0x5c3439}=_0x576532;if(!_0x273f8d||!_0x5c3439)return!0x1;const {unitId:_0x5a16f1,subUnitId:_0x5de96c,range:_0x5aa4fd}=_0x273f8d,_0x20df8c=_0x2f514e[_0xdd649e(0x326)](_0x49f92f['IUniverInstanceService']),_0x5cb8a7=_0x2f514e['get'](_0x47953f[_0xdd649e(0x3f1)]),_0x667521=_0x2f514e[_0xdd649e(0x326)](_0x49f92f[_0xdd649e(0x311)]),_0x202e03=_0x2f514e['get'](_0x49f92f[_0xdd649e(0x3fc)]),_0x107389=_0x20df8c[_0xdd649e(0x3c5)](_0x5a16f1);if(!_0x107389)return!0x1;const _0x2ef4a8=_0x107389['getSheetBySheetId'](_0x5de96c);if(!_0x2ef4a8)return!0x1;const _0x1f4343=_0x16b0d8[_0xdd649e(0x33f)](0x8),_0xa313e5=_0x5aa4fd||{'startRow':0x0,'startColumn':0x0,'endRow':_0x2ef4a8['getRowCount']()-0x1,'endColumn':_0x2ef4a8[_0xdd649e(0x2df)]()-0x1};_0xa313e5[_0xdd649e(0x2ad)]=_0x49f92f[_0xdd649e(0x164)][_0xdd649e(0x1f4)];const _0x56a8e2=(await _0x5cb8a7[_0xdd649e(0x236)]({'unitId':_0x5a16f1,'subUnitId':_0x5de96c,'pivotTableId':_0x1f4343,'params':{'type':_0x3175a8[_0xdd649e(0x33d)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x5a16f1,'sheetName':_0x2ef4a8['getName'](),'subUnitId':_0x5de96c,'range':_0xa313e5},'pivotTableId':_0x1f4343,'pivotTableIndexConfig':_0x5c3439}}}))[_0xdd649e(0x138)][_0xdd649e(0x1cd)];if(!_0x56a8e2)return!0x1;const {isEmpty:_0x2a8e83,fieldsConfig:_0x3f229d,collectionConfig:_0x3a2764,changesets:_0x1af4be}=_0x56a8e2,_0x312f66=_0x107389[_0xdd649e(0x31f)]()[_0xdd649e(0x37f)],_0x157297=_0x49f92f[_0xdd649e(0x298)]({'rowCount':_0x2ef4a8['getRowCount']()-0x1,'columnCount':_0x2ef4a8['getColumnCount']()-0x1});_0x157297['id']=_0x49f92f[_0xdd649e(0x3af)](),_0x157297[_0xdd649e(0x27d)]=_0x107389[_0xdd649e(0x2b4)](''+_0x667521['t'](_0xdd649e(0x26c)));const _0x34001c={'index':_0x312f66,'sheet':_0x157297,'unitId':_0x5a16f1},{redos:_0x517f35}=_0x41974f(_0x202e03,{'pivotTableId':_0x1f4343,'unitId':_0x5a16f1,'subUnitId':_0x157297['id']},_0x1af4be),_0x4d7512=[{'id':_0x29b248['InsertSheetCommand']['id'],'params':_0x34001c},{'id':_0x1eb047['id'],'params':{'unitId':_0x5a16f1,'subUnitId':_0x157297['id'],'pivotTableId':_0x1f4343,'pivotTableConfig':{'isEmpty':_0x2a8e83,'fieldsConfig':_0x3f229d,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x5a16f1,'subUnitId':_0x157297['id']},'sourceRangeInfo':{'subUnitId':_0x5de96c,'unitId':_0x5a16f1,'range':_0xa313e5,'sheetName':_0x2ef4a8[_0xdd649e(0x2f9)]()}},'collectionConfig':_0x3a2764}},..._0x517f35];return _0x49f92f[_0xdd649e(0x43f)](_0x4d7512,_0x202e03),!0x0;}},_0xaf0ab={'type':_0x49f92f['CommandType']['MUTATION'],'id':'sheet.mutation.remove-pivot-table','handler'(_0xee77c4,_0x23ccb6){const _0x1c4e99=_0x5565f1;if(!_0x23ccb6)return!0x1;if(!!_0xee77c4[_0x1c4e99(0x326)](_0x49f92f[_0x1c4e99(0x404)])[_0x1c4e99(0x2ee)](_0x511ea3))return!0x0;const {pivotTableId:_0x2ccd2d,unitId:_0x5b548c,subUnitId:_0x5bc6d7}=_0x23ccb6,_0x1973f5=_0xee77c4[_0x1c4e99(0x326)](_0x47953f[_0x1c4e99(0x120)]);return _0x1973f5[_0x1c4e99(0x215)](_0x5b548c,_0x5bc6d7,_0x2ccd2d)?(_0x1973f5['addDirtyPivotTable']({'unitId':_0x5b548c,'subUnitId':_0x5bc6d7,'token':_0x2ccd2d,'type':_0x1e0edb[_0x1c4e99(0x287)]}),_0x1973f5[_0x1c4e99(0x2e9)](_0x5b548c,_0x5bc6d7,_0x2ccd2d),!0x0):!0x1;}},_0x466e70={'type':_0x49f92f['CommandType']['COMMAND'],'id':_0x5565f1(0x30c),async 'handler'(_0x2a70ac,_0x3808e2){const _0x439e4e=_0x5565f1;var _0x3370e1,_0x4cbdfb;const _0x4005a3=_0x2a70ac[_0x439e4e(0x326)](_0x49f92f[_0x439e4e(0x3fc)]),_0x113f2b=_0x2a70ac[_0x439e4e(0x326)](_0x49f92f[_0x439e4e(0x26f)]),_0x36f4d9=_0x2a70ac[_0x439e4e(0x326)](_0x49f92f[_0x439e4e(0x311)]),_0x56eb2c=_0x2a70ac[_0x439e4e(0x326)](_0x47953f[_0x439e4e(0x3f1)]),_0x1ef03d=_0x2a70ac[_0x439e4e(0x326)](_0x49f92f[_0x439e4e(0x16b)]),_0x178b35=_0x2a70ac[_0x439e4e(0x326)](_0x47953f['SheetsPivotTableConfigModel']),_0x4f69f8=_0x2a70ac[_0x439e4e(0x326)](_0x49f92f[_0x439e4e(0x404)]);if(!_0x3808e2)return!0x1;const {pivotTableConfig:_0x504d37,positionType:_0x28fb46}=_0x3808e2,{targetCellInfo:_0xe5d6cc,sourceRangeInfo:_0x49fd88}=_0x504d37,{unitId:_0x3d72b1,subUnitId:_0x4c4992}=_0xe5d6cc,_0x19762d=_0x113f2b[_0x439e4e(0x3c5)](_0x3d72b1);if(!_0x19762d)return!0x1;let _0x4f0912=0x0;_0x19762d[_0x439e4e(0x31f)]()[_0x439e4e(0x350)](_0x456cfd=>{const _0x2391e9=_0x439e4e;var _0x56c569,_0x6f1155;_0x4f0912+=(_0x6f1155=(_0x56c569=_0x178b35[_0x2391e9(0x1dd)](_0x3d72b1,_0x456cfd[_0x2391e9(0x197)]()))==null?void 0x0:_0x56c569[_0x2391e9(0x422)])!=null?_0x6f1155:0x0;});const _0x26dde7=(_0x3370e1=_0x4f69f8['getConfig'](_0x3e3faf['LS_CONFIG_KEY']))!=null?_0x3370e1:{},{ls:_0x58b8db,pbk:_0x2bc24c}=_0x26dde7;if(!_0xe56476(_0x58b8db,_0x2bc24c))return!0x1;const _0x3a596a=_0x183df5(_0x5078db,_0x58b8db,_0x2bc24c)['count'];if(_0x4f0912>=_0x3a596a)return!0x1;const _0x494364=_0x3808e2['pivotTableId']||_0x16b0d8['generateHexNumber'](0x8),_0x44a2f2=(await _0x56eb2c[_0x439e4e(0x236)]({'unitId':_0x3d72b1,'subUnitId':_0x4c4992,'pivotTableId':_0x494364,'params':{'type':_0x3175a8[_0x439e4e(0x18f)],'addPivotTable':{'sourceRangeInfo':_0x49fd88,'pivotTableId':_0x494364}}}))[_0x439e4e(0x138)][_0x439e4e(0x32f)];if(!_0x44a2f2)return!0x1;const {view:_0x36b049,isEmpty:_0x2e252e,fieldsConfig:_0x320418,collectionConfig:_0x4278b9}=_0x44a2f2,_0xc680=[],_0x3fd642=[];if(_0x28fb46===_0x3ad7fb[_0x439e4e(0x22b)]){const _0x1cb862=_0x19762d['getSheets']()[_0x439e4e(0x37f)],_0x2c2710=_0x49f92f['mergeWorksheetSnapshotWithDefault']({});_0x2c2710['id']=_0x504d37['targetCellInfo'][_0x439e4e(0x271)],_0x2c2710[_0x439e4e(0x27d)]=(_0x4cbdfb=_0x504d37[_0x439e4e(0x1d0)][_0x439e4e(0x3d4)])!=null?_0x4cbdfb:_0x19762d['generateNewSheetName'](''+_0x36f4d9['t'](_0x439e4e(0x26c)));const _0x433730={'index':_0x1cb862,'sheet':_0x2c2710,'unitId':_0x3d72b1},_0x130bf=_0x29b248[_0x439e4e(0x243)](_0x2a70ac,_0x433730);_0xc680[_0x439e4e(0x254)]({'id':_0x29b248[_0x439e4e(0x17e)]['id'],'params':_0x130bf}),_0x3fd642[_0x439e4e(0x254)]({'id':_0x29b248[_0x439e4e(0x1e0)]['id'],'params':_0x433730});}else{if(!_0x19762d['getSheetBySheetId'](_0x4c4992))return!0x1;const _0x457a75=_0x2535c3(_0x2a70ac,new _0x16b0d8['PivotView'](),_0xe5d6cc,!0x0);_0x3fd642[_0x439e4e(0x254)](..._0x457a75[_0x439e4e(0x2a5)]),_0xc680[_0x439e4e(0x254)](..._0x457a75[_0x439e4e(0x206)]);const _0x1a790b={'cellInfo':_0xe5d6cc,'view':_0x36b049,'isEmpty':_0x2e252e};if(!await _0x2a70ac['get'](_0x47953f['SheetsPivotTableService'])['asyncInterceptor'][_0x439e4e(0x3ab)](_0x2d81a5)(!0x0,_0x1a790b))return!0x1;const _0x57a841=_0x3f413f(_0x2a70ac,_0x1a790b);_0x3fd642[_0x439e4e(0x254)](..._0x57a841[_0x439e4e(0x2a5)]),_0xc680[_0x439e4e(0x254)](..._0x57a841[_0x439e4e(0x206)]);}return _0x3fd642[_0x439e4e(0x254)]({'id':_0x1eb047['id'],'params':{'unitId':_0xe5d6cc[_0x439e4e(0x32c)],'subUnitId':_0xe5d6cc[_0x439e4e(0x271)],'pivotTableId':_0x494364,'pivotTableConfig':{'targetCellInfo':_0xe5d6cc,'sourceRangeInfo':_0x49fd88,'fieldsConfig':_0x320418},'collectionConfig':_0x4278b9}}),_0xc680[_0x439e4e(0x127)]({'id':_0xaf0ab['id'],'params':{'unitId':_0x3d72b1,'subUnitId':_0x4c4992,'pivotTableId':_0x494364}}),_0x49f92f[_0x439e4e(0x43f)](_0x3fd642,_0x4005a3)&&_0x1ef03d[_0x439e4e(0x232)]({'unitID':_0x3d72b1,'undoMutations':_0xc680,'redoMutations':_0x3fd642}),!0x0;}},_0x22c13e={'type':_0x49f92f['CommandType'][_0x5565f1(0x305)],'id':_0x5565f1(0x2f1),async 'handler'(_0x18fd5e,_0x49273d){const _0x4e7262=_0x5565f1;if(!_0x49273d)return!0x1;const _0x27e7bb=_0x18fd5e[_0x4e7262(0x326)](_0x49f92f['ICommandService']),_0x3d8e5b=_0x18fd5e[_0x4e7262(0x326)](_0x47953f['SheetsPivotRPCService']),_0x416872=_0x18fd5e['get'](_0x49f92f[_0x4e7262(0x16b)]),{pivotTableId:_0x16a5ce,fieldId:_0xe7ead7,area:_0x1f4368,index:_0x3af3e8,unitId:_0x50b67f,subUnitId:_0x4c45fd}=_0x49273d,_0x28a2f7=(await _0x3d8e5b['getPivotDisplayConfig']({'unitId':_0x50b67f,'subUnitId':_0x4c45fd,'pivotTableId':_0x16a5ce,'params':{'type':_0x3175a8['MovePivotField'],'movePivotField':{'fieldId':_0xe7ead7,'area':_0x1f4368,'index':_0x3af3e8}}}))['result']['movePivotField'];if(!_0x28a2f7)return!0x1;const {changesets:_0x1cec9c,view:_0x864f5,isEmpty:_0x259611,pivotTableConfig:_0x104c9f}=_0x28a2f7,_0x1b63f7=_0x104c9f['targetCellInfo'],_0xf4b1cf=new _0x16b0d8[(_0x4e7262(0x19b))]();_0xf4b1cf[_0x4e7262(0x39c)](_0x864f5);const _0x468c99={'cellInfo':_0x1b63f7,'view':_0xf4b1cf,'isEmpty':_0x259611};if(!await _0x18fd5e[_0x4e7262(0x326)](_0x47953f[_0x4e7262(0x2c5)])[_0x4e7262(0x3dc)][_0x4e7262(0x3ab)](_0x2d81a5)(!0x0,_0x468c99))return!0x1;const _0x5baab0=_0x2535c3(_0x18fd5e,_0xf4b1cf,_0x1b63f7,_0x259611),_0x308585=_0x3f413f(_0x18fd5e,_0x468c99),{redos:_0x74465c,undos:_0x1820a1}=_0x41974f(_0x27e7bb,{'pivotTableId':_0x16a5ce,'unitId':_0x50b67f,'subUnitId':_0x4c45fd},_0x1cec9c);return _0x49f92f[_0x4e7262(0x43f)]([..._0x5baab0[_0x4e7262(0x2a5)],..._0x308585[_0x4e7262(0x2a5)],..._0x74465c],_0x27e7bb),_0x416872[_0x4e7262(0x232)]({'unitID':_0x50b67f,'redoMutations':[..._0x5baab0[_0x4e7262(0x2a5)],..._0x308585['redos'],..._0x74465c],'undoMutations':[..._0x5baab0[_0x4e7262(0x206)],..._0x308585[_0x4e7262(0x206)],..._0x1820a1]}),!0x0;}},_0xd66fe3={'type':_0x49f92f[_0x5565f1(0x1ae)]['MUTATION'],'id':_0x5565f1(0x2fd),'handler'(_0x2fa2fe,_0x400d60){const _0x1cb136=_0x5565f1;if(!_0x400d60)return!0x1;if(!!_0x2fa2fe['get'](_0x49f92f[_0x1cb136(0x404)])[_0x1cb136(0x2ee)](_0x511ea3))return!0x0;const {pivotTableId:_0x2649e5,targetCellPosition:_0x989c2f,unitId:_0x53fcee,subUnitId:_0x175c81}=_0x400d60,_0x669e9d=_0x2fa2fe[_0x1cb136(0x326)](_0x47953f['SheetsPivotDataSourceModel']);if(!_0x669e9d[_0x1cb136(0x233)](_0x400d60[_0x1cb136(0x433)]))return!0x1;const _0x49f866=_0x669e9d['getTargetByPivotId'](_0x2649e5);if(!_0x49f866)return!0x1;const _0x53fcd7=_0x669e9d[_0x1cb136(0x312)](_0x49f866['unitId'],_0x400d60[_0x1cb136(0x433)]);if(!_0x53fcd7)return!0x1;const _0x2db8ea=_0x669e9d[_0x1cb136(0x215)](_0x49f866[_0x1cb136(0x32c)],_0x49f866[_0x1cb136(0x271)],_0x2649e5);if(!_0x2db8ea)return!0x1;const _0x4e6019=_0x49f92f[_0x1cb136(0x2b5)][_0x1cb136(0x1e3)](_0x2db8ea);_0x4e6019[_0x1cb136(0x1d0)]={'unitId':_0x53fcee,'subUnitId':_0x175c81,'row':_0x989c2f[_0x1cb136(0x1b1)],'col':_0x989c2f['col']};const _0x1514d3=_0x53fcd7[_0x1cb136(0x1d4)]();if(_0x49f866[_0x1cb136(0x271)]===_0x175c81&&_0x49f866[_0x1cb136(0x32c)]===_0x53fcee)_0x669e9d[_0x1cb136(0x190)](_0x53fcee,_0x175c81,_0x2649e5,_0x4e6019),_0x669e9d[_0x1cb136(0x265)]({'unitId':_0x53fcee,'subUnitId':_0x175c81,'token':_0x2649e5,'type':_0x1e0edb['Set']});else{_0x669e9d[_0x1cb136(0x265)]({'unitId':_0x49f866[_0x1cb136(0x32c)],'subUnitId':_0x49f866[_0x1cb136(0x271)],'token':_0x2649e5,'type':_0x1e0edb['Delete']}),_0x669e9d[_0x1cb136(0x2e9)](_0x49f866[_0x1cb136(0x32c)],_0x49f866[_0x1cb136(0x271)],_0x2649e5);const _0x56a4f5=_0x669e9d[_0x1cb136(0x3cf)](_0x2649e5,_0x1514d3,_0x2db8ea['sourceRangeInfo'],_0x4e6019[_0x1cb136(0x1d0)]),_0x3c73ba=new _0x16b0d8['PivotTable'](_0x56a4f5[_0x1cb136(0x3a4)],void 0x0,_0x2649e5);_0x3c73ba['fromJSON'](_0x4e6019[_0x1cb136(0x1be)]),_0x669e9d[_0x1cb136(0x32f)](_0x53fcee,_0x175c81,_0x2649e5,_0x3c73ba,_0x4e6019),_0x669e9d['addDirtyPivotTable']({'unitId':_0x53fcee,'subUnitId':_0x175c81,'token':_0x2649e5,'type':_0x1e0edb[_0x1cb136(0x2d5)],'pivotConfig':_0x4e6019});}return!0x0;}},_0x2b2998={'type':_0x49f92f['CommandType']['COMMAND'],'id':_0x5565f1(0x22a),'handler':(_0x8adee7,_0x169d6a)=>{const _0xdce457=_0x5565f1,_0x1591e0=_0x8adee7[_0xdce457(0x326)](_0x49f92f[_0xdce457(0x3fc)]),_0x1ebe82=_0x8adee7[_0xdce457(0x326)](_0x49f92f[_0xdce457(0x16b)]),_0x2f1f48=_0x8adee7[_0xdce457(0x326)](_0x47953f[_0xdce457(0x11d)]),_0x22056b=_0x8adee7[_0xdce457(0x326)](_0x49f92f[_0xdce457(0x26f)]);if(!_0x169d6a)return!0x1;const _0x322e2=_0x29b248['getSheetCommandTarget'](_0x22056b);if(!_0x322e2)return!0x1;const {unitId:_0x4a3269,subUnitId:_0x4f5ce3,workbook:_0x4c3cae}=_0x322e2,_0x51002b=_0x2f1f48[_0xdce457(0x215)](_0x169d6a[_0xdce457(0x194)][_0xdce457(0x32c)],_0x169d6a[_0xdce457(0x194)]['subUnitId'],_0x169d6a[_0xdce457(0x433)]);if(!_0x51002b)return!0x1;const _0x4a9cac=_0x4c3cae[_0xdce457(0x222)](_0x169d6a['targetCellInfo'][_0xdce457(0x271)]);if(!_0x4a9cac)throw new Error(_0xdce457(0x379));const _0x93b749=_0x4a9cac[_0xdce457(0x2fb)](),_0x123984=_0x4a9cac['getColumnCount']();if(_0x169d6a[_0xdce457(0x1d0)]['row']>_0x93b749||_0x169d6a[_0xdce457(0x1d0)][_0xdce457(0x341)]>_0x123984)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x27291e=[{'id':_0xd66fe3['id'],'params':{'unitId':_0x4a3269,'subUnitId':_0x169d6a[_0xdce457(0x1d0)][_0xdce457(0x271)],'pivotTableId':_0x169d6a[_0xdce457(0x433)],'targetCellPosition':{'row':_0x169d6a[_0xdce457(0x1d0)][_0xdce457(0x1b1)],'col':_0x169d6a['targetCellInfo'][_0xdce457(0x341)]}}}],_0x4be492=[{'id':_0xd66fe3['id'],'params':{'unitId':_0x4a3269,'subUnitId':_0x4f5ce3,'pivotTableId':_0x169d6a['pivotTableId'],'targetCellPosition':{'row':_0x51002b[_0xdce457(0x1d0)][_0xdce457(0x1b1)],'col':_0x51002b[_0xdce457(0x1d0)][_0xdce457(0x341)]}}}];return _0x49f92f[_0xdce457(0x43f)](_0x27291e,_0x1591e0)&&_0x1ebe82[_0xdce457(0x232)]({'unitID':_0x4a3269,'undoMutations':_0x4be492,'redoMutations':_0x27291e}),!0x0;}},_0x46b862={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'id':_0x5565f1(0x396),async 'handler'(_0x21355f,_0x30df6b){const _0x1ab8b=_0x5565f1;var _0x43ad3a;if(!_0x30df6b)return!0x1;const _0xff2092=_0x21355f[_0x1ab8b(0x326)](_0x49f92f['IUniverInstanceService']),_0x567e7c=_0x29b248[_0x1ab8b(0x1a6)](_0xff2092);if(!_0x567e7c)return!0x1;const {unitId:_0x57017d,subUnitId:_0x41c309,workbook:_0x1c5263}=_0x567e7c,{row:_0x57379d,col:_0x28b5a5}=_0x30df6b,_0x5119ce=_0x21355f[_0x1ab8b(0x326)](_0x47953f[_0x1ab8b(0x3c8)]),_0x5e9298=_0x5119ce[_0x1ab8b(0x18d)](_0x57017d,_0x41c309,_0x57379d,_0x28b5a5);if(!_0x5e9298)return!0x1;const _0x12f60c=(_0x43ad3a=_0x5119ce[_0x1ab8b(0x2f4)](_0x57017d,_0x41c309,_0x5e9298))==null?void 0x0:_0x43ad3a[_0x1ab8b(0x406)];if(!_0x12f60c)return!0x1;const _0xbb1859=_0x21355f[_0x1ab8b(0x326)](_0x47953f[_0x1ab8b(0x11d)])[_0x1ab8b(0x215)](_0x57017d,_0x41c309,_0x5e9298);if(!_0xbb1859)return!0x1;const {rowInfo:_0x1d19e4,colInfo:_0x4dd005}=_0x12f60c,_0x2df84e=_0x1d19e4[_0x57379d][_0x1ab8b(0x277)],_0xcc6f5a=_0x4dd005[_0x28b5a5][_0x1ab8b(0x277)],_0x244af9=_0x1d19e4[_0x57379d][_0x1ab8b(0x29c)],_0xc1ebec=_0x4dd005[_0x28b5a5][_0x1ab8b(0x29c)],_0x3afbfc=_0x2df84e[_0x1ab8b(0x2f7)](_0xcc6f5a),_0x5c0e74=_0xbb1859[_0x1ab8b(0x1be)][_0x1ab8b(0x1cc)][_0x1ab8b(0x229)](0x0,_0x244af9),_0x48c069=_0xbb1859[_0x1ab8b(0x1be)]['columnFields'][_0x1ab8b(0x229)](0x0,_0xc1ebec),_0x2ff8b4=_0x5c0e74[_0x1ab8b(0x2f7)](_0x48c069),_0x5e90a7=_0x3afbfc['map']((_0x24832e,_0x1d508d)=>[_0x24832e,_0x2ff8b4[_0x1d508d]]),_0x257d4e=(await _0x21355f[_0x1ab8b(0x326)](_0x47953f[_0x1ab8b(0x3f1)])[_0x1ab8b(0x236)]({'unitId':_0x57017d,'subUnitId':_0x41c309,'pivotTableId':_0x5e9298,'params':{'type':_0x3175a8[_0x1ab8b(0x36a)],'drillDown':{'tuple':_0x5e90a7}}}))[_0x1ab8b(0x138)]['drillDown'];if(!_0x257d4e)return!0x1;const {indexes:_0x31d8e0,range:_0x38bd81,sourceUnitId:_0x13f815,sourceSubUnitId:_0x51e681,formatMap:_0x4ed736}=_0x257d4e,{startRow:_0xbc6100,endRow:_0x4c0ea1,startColumn:_0x287ab3,endColumn:_0x2899f1}=_0x38bd81,_0x219be9=new _0x49f92f[(_0x1ab8b(0x38d))](),_0x299630=_0x4c0ea1-_0xbc6100,_0x24ba28=_0x2899f1-_0x287ab3,_0x3e871a={},_0x48c1b2=_0x29b248[_0x1ab8b(0x1a6)](_0xff2092,{'unitId':_0x13f815,'subUnitId':_0x51e681});if(!_0x48c1b2)return!0x1;const _0x32ef33=_0x136b96[_0x1ab8b(0x308)],_0x5d751b=_0x136b96[_0x1ab8b(0x398)],_0x4d68fa=_0x136b96['subTotalStyle'],_0x242bdc=_0x1c5263[_0x1ab8b(0x2dd)]()['setValue'](_0x32ef33),_0x328395=_0x1c5263[_0x1ab8b(0x2dd)]()[_0x1ab8b(0x3c9)](_0x5d751b),_0x36b9c4=_0x1c5263[_0x1ab8b(0x2dd)]()[_0x1ab8b(0x3c9)](_0x4d68fa),{worksheet:_0x12ffb6}=_0x48c1b2;let _0x433284=0x0;const _0x34d7c0=0x1;_0x31d8e0[_0x1ab8b(0x350)](_0x53cae5=>{const _0x33cf25=_0x1ab8b;for(let _0x37aedd=0x0;_0x37aedd<=_0x2899f1-_0x287ab3;_0x37aedd++)_0x219be9[_0x33cf25(0x3c9)](_0x433284,_0x37aedd,_0x12ffb6[_0x33cf25(0x1a3)](_0x53cae5+_0x38bd81[_0x33cf25(0x34c)]+_0x34d7c0,_0x37aedd));_0x433284++;});for(let _0x4d9237=_0x287ab3;_0x4d9237<=_0x2899f1;_0x4d9237++){const _0x4ebb16=_0x12ffb6[_0x1ab8b(0x1a3)](_0xbc6100,_0x4d9237);_0x3e871a[_0xbc6100]||(_0x3e871a[_0xbc6100]={}),_0x3e871a[_0xbc6100][_0x4d9237]={..._0x4ebb16,'s':_0x242bdc};}let _0x24f8e6=0x1;const _0x242d50={},_0x210236={};_0x219be9[_0x1ab8b(0x3cd)]((_0x331217,_0x3b746d)=>{const _0x418df3=_0x1ab8b;_0x3b746d[_0x418df3(0x350)](_0x5b1086=>{const _0x2ddf65=_0x418df3,_0x180585=_0x219be9[_0x2ddf65(0x1b6)](_0x331217,_0x5b1086);if(_0x3e871a[_0x24f8e6]||(_0x3e871a[_0x24f8e6]={}),_0x3e871a[_0x24f8e6][_0x5b1086]={..._0x180585,'s':_0x24f8e6%0x2===0x0?_0x36b9c4:_0x328395},_0x4ed736[_0x5b1086]&&_0x331217>=0x0){const _0x47856a=_0x24f8e6%0x2===0x0;let _0x1bccb7=_0x47856a?_0x210236[_0x5b1086]:_0x242d50[_0x5b1086];_0x1bccb7||(_0x1bccb7=_0x1c5263[_0x2ddf65(0x2dd)]()[_0x2ddf65(0x3c9)]({..._0x47856a?_0x4d68fa:_0x5d751b,'n':{'pattern':_0x4ed736[_0x5b1086]}}),_0x47856a?_0x210236[_0x5b1086]=_0x1bccb7:_0x242d50[_0x5b1086]=_0x1bccb7),_0x3e871a[_0x24f8e6][_0x5b1086]['s']=_0x1bccb7;}}),_0x24f8e6++;});const _0xc55652=new _0x49f92f[(_0x1ab8b(0x38d))](_0x3e871a),_0x1df0cb={};_0xc55652[_0x1ab8b(0x3e5)]((_0x4ef8b3,_0x41326f,_0x52350f)=>{_0x1df0cb[_0x4ef8b3]||(_0x1df0cb[_0x4ef8b3]={}),_0x1df0cb[_0x4ef8b3][_0x41326f]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x44ff90=[],_0x3f70bb=[],_0x3b6313=_0x1c5263[_0x1ab8b(0x31f)]()[_0x1ab8b(0x37f)],_0x1c9efa=_0x49f92f[_0x1ab8b(0x298)]({'rowCount':Math[_0x1ab8b(0x3b0)](_0x49f92f['DEFAULT_WORKSHEET_ROW_COUNT'],_0x299630+0xa),'columnCount':Math[_0x1ab8b(0x3b0)](_0x49f92f[_0x1ab8b(0x1ed)],_0x24ba28+0x5)}),_0x5254a1=_0x21355f[_0x1ab8b(0x326)](_0x49f92f[_0x1ab8b(0x311)]);_0x1c9efa['id']=_0x49f92f['generateRandomId'](),_0x1c9efa[_0x1ab8b(0x27d)]=_0x1c5263[_0x1ab8b(0x2b4)](''+_0x5254a1['t'](_0x1ab8b(0x26c)));const _0x53d6fa={'index':_0x3b6313,'sheet':_0x1c9efa,'unitId':_0x57017d},_0x496aa2=_0x29b248['InsertSheetUndoMutationFactory'](_0x21355f,_0x53d6fa);_0x3f70bb[_0x1ab8b(0x254)]({'id':_0x29b248[_0x1ab8b(0x1e0)]['id'],'params':_0x53d6fa}),_0x44ff90[_0x1ab8b(0x254)]({'id':_0x29b248[_0x1ab8b(0x17e)]['id'],'params':_0x496aa2}),_0x3f70bb[_0x1ab8b(0x254)]({'id':_0x29b248[_0x1ab8b(0x283)]['id'],'params':{'unitId':_0x57017d,'subUnitId':_0x1c9efa['id'],'cellValue':_0x3e871a}}),_0x44ff90[_0x1ab8b(0x127)]({'id':_0x29b248[_0x1ab8b(0x283)]['id'],'params':{'unitId':_0x57017d,'subUnitId':_0x1c9efa['id'],'cellValue':_0x1df0cb}});const _0x4ba0a0={'startRow':0x0,'startColumn':0x0,'endRow':_0x24f8e6-0x1,'endColumn':_0x2899f1};_0x3f70bb['push']({'id':_0x4f3d47['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x57017d,'subUnitId':_0x1c9efa['id'],'range':_0x4ba0a0}}),_0x44ff90['unshift']({'id':_0x4f3d47['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x57017d,'subUnitId':_0x1c9efa['id']}});const _0x3b98de=_0x21355f[_0x1ab8b(0x326)](_0x49f92f['ICommandService']);return _0x49f92f[_0x1ab8b(0x43f)](_0x3f70bb,_0x3b98de)&&_0x21355f['get'](_0x49f92f[_0x1ab8b(0x16b)])[_0x1ab8b(0x232)]({'unitID':_0x57017d,'undoMutations':_0x44ff90,'redoMutations':_0x3f70bb}),!0x0;}},_0x428f9a={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'id':'sheet.command.remove-pivot-field',async 'handler'(_0x341c21,_0x1dc0a0){const _0xd7a2e5=_0x5565f1;if(!_0x1dc0a0)return!0x1;const _0xabd880=_0x341c21[_0xd7a2e5(0x326)](_0x49f92f[_0xd7a2e5(0x3fc)]),_0x4449f6=_0x341c21[_0xd7a2e5(0x326)](_0x47953f[_0xd7a2e5(0x3f1)]),_0x496f59=_0x341c21[_0xd7a2e5(0x326)](_0x49f92f[_0xd7a2e5(0x16b)]),{pivotTableId:_0x3e4820,fieldIds:_0x4486f7,unitId:_0x14de73,subUnitId:_0x2babe5}=_0x1dc0a0,_0x159a2f=(await _0x4449f6[_0xd7a2e5(0x236)]({'unitId':_0x14de73,'subUnitId':_0x2babe5,'pivotTableId':_0x3e4820,'params':{'type':_0x3175a8[_0xd7a2e5(0x235)],'removePivotField':{'fieldIds':_0x4486f7}}}))['result'][_0xd7a2e5(0x2c7)];if(!_0x159a2f)return!0x1;const {view:_0x181cef,changesets:_0x2ae8fc,isEmpty:_0x8f4fa3,pivotTableConfig:_0x44d6ea}=_0x159a2f,_0x3767ec=_0x44d6ea[_0xd7a2e5(0x1d0)],_0x3e22ba=new _0x16b0d8[(_0xd7a2e5(0x19b))]();_0x3e22ba[_0xd7a2e5(0x39c)](_0x181cef);const _0x15452f={'cellInfo':_0x3767ec,'view':_0x3e22ba,'isEmpty':_0x8f4fa3};if(!await _0x341c21[_0xd7a2e5(0x326)](_0x47953f[_0xd7a2e5(0x2c5)])[_0xd7a2e5(0x3dc)][_0xd7a2e5(0x3ab)](_0x2d81a5)(!0x0,_0x15452f))return!0x1;const _0x4b1064=_0x2535c3(_0x341c21,_0x3e22ba,_0x3767ec,_0x8f4fa3),_0x53b9de=_0x3f413f(_0x341c21,_0x15452f),{redos:_0x3b2d68,undos:_0x923534}=_0x41974f(_0xabd880,{'pivotTableId':_0x3e4820,'unitId':_0x14de73,'subUnitId':_0x2babe5},_0x2ae8fc);return _0x49f92f[_0xd7a2e5(0x43f)]([..._0x4b1064['redos'],..._0x53b9de[_0xd7a2e5(0x2a5)],..._0x3b2d68],_0xabd880),_0x496f59[_0xd7a2e5(0x232)]({'unitID':_0x14de73,'redoMutations':[..._0x4b1064[_0xd7a2e5(0x2a5)],..._0x53b9de[_0xd7a2e5(0x2a5)],..._0x3b2d68],'undoMutations':[..._0x4b1064[_0xd7a2e5(0x206)],..._0x53b9de['undos'],..._0x923534]}),!0x0;}},_0x1fe731={'type':_0x49f92f['CommandType'][_0x5565f1(0x305)],'id':_0x5565f1(0x121),async 'handler'(_0x433bfa,_0xed150a){const _0x23628b=_0x5565f1;if(!_0xed150a)return!0x1;const _0x1a4605=_0x433bfa[_0x23628b(0x326)](_0x49f92f['ICommandService']),_0x3b6f25=_0x433bfa[_0x23628b(0x326)](_0x49f92f['IUndoRedoService']),_0x3b6066=_0x433bfa['get'](_0x47953f[_0x23628b(0x3f1)]),{resetArea:_0x437b89,pivotTableId:_0x4b0ded,unitId:_0x101550,subUnitId:_0x184834}=_0xed150a,_0x57c1c3=(await _0x3b6066[_0x23628b(0x236)]({'unitId':_0x101550,'subUnitId':_0x184834,'pivotTableId':_0x4b0ded,'params':{'type':_0x3175a8['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x4b0ded,'resetArea':_0x437b89}}}))[_0x23628b(0x138)]['resetPivotTable'];if(!_0x57c1c3)return!0x1;const {changesets:_0x2069c7}=_0x57c1c3,{redos:_0x253f7b,undos:_0x1c5f42}=_0x41974f(_0x1a4605,{'pivotTableId':_0x4b0ded,'unitId':_0x101550,'subUnitId':_0x184834},_0x2069c7);return _0x49f92f[_0x23628b(0x43f)](_0x253f7b,_0x1a4605),_0x3b6f25[_0x23628b(0x232)]({'unitID':_0x101550,'redoMutations':_0x253f7b,'undoMutations':_0x1c5f42}),!0x0;}},_0x433d1e={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'id':_0x5565f1(0x3ef),async 'handler'(_0x56570f,_0x38faf3){const _0x2294e0=_0x5565f1,_0x29f230=_0x56570f[_0x2294e0(0x326)](_0x49f92f[_0x2294e0(0x3fc)]),_0x372222=_0x56570f[_0x2294e0(0x326)](_0x47953f[_0x2294e0(0x3f1)]),_0x1dcc84=_0x56570f[_0x2294e0(0x326)](_0x47953f[_0x2294e0(0x3c8)]),_0x2b1a60=_0x56570f[_0x2294e0(0x326)](_0x49f92f[_0x2294e0(0x26f)]),_0x38dc75=_0x56570f[_0x2294e0(0x326)](_0x49f92f[_0x2294e0(0x311)]),_0x146dcb=_0x56570f[_0x2294e0(0x326)](_0x49f92f[_0x2294e0(0x16b)]);if(!_0x38faf3)return!0x1;const {unitId:_0x26da0e,subUnitId:_0x45e1f6,row:_0x16e485,col:_0x150b17,collapse:_0x700c52}=_0x38faf3,_0x5b5515=_0x2b1a60[_0x2294e0(0x3c5)](_0x26da0e);if(!_0x5b5515||!_0x5b5515[_0x2294e0(0x222)](_0x45e1f6))return!0x1;const _0x5963ce=_0x1dcc84[_0x2294e0(0x18d)](_0x26da0e,_0x45e1f6,_0x16e485,_0x150b17);if(!_0x5963ce)return!0x1;const _0x3e3735=_0x1dcc84[_0x2294e0(0x2f4)](_0x26da0e,_0x45e1f6,_0x5963ce);if(!_0x3e3735)return!0x1;const _0xb6de4f=_0x49f92f[_0x2294e0(0x42d)](_0x16e485,_0x150b17),{rangesInfo:_0x44b6b2,areaInfo:_0x3121ae,headerMap:_0x5550f7}=_0x3e3735;if(!_0x44b6b2||!_0x3121ae||!_0x5550f7)return!0x1;const _0x1df19d=Object['keys'](_0x44b6b2)[_0x2294e0(0x34e)](_0x109efb=>_0x44b6b2[_0x109efb][_0x2294e0(0x145)](_0x192605=>_0x49f92f[_0x2294e0(0x23f)][_0x2294e0(0x3a6)](_0x192605,_0xb6de4f)));let _0x13542b;_0x1df19d===_0x2294e0(0x142)?_0x13542b=_0x5550f7['rowHeaderMap'][_0x150b17]:_0x1df19d===_0x2294e0(0x170)&&(_0x13542b=_0x5550f7[_0x2294e0(0x20d)][_0x16e485]);const _0x3a953e=_0x13542b==null?void 0x0:_0x13542b[_0x2294e0(0x292)],_0xe9196=_0x1dcc84['getPivotTableCellData'](_0x26da0e,_0x45e1f6,_0x16e485,_0x150b17);let _0x32cd04=_0xe9196==null?void 0x0:_0xe9196['v'];if(_0x32cd04===_0x38dc75['t']('sheets-pivot.blank')&&(_0x32cd04=_0x16b0d8[_0x2294e0(0x3f0)][_0x2294e0(0x346)]),_0x32cd04==null||!_0x5963ce||!_0x3a953e)return!0x1;const _0x595e20=await _0x372222[_0x2294e0(0x236)]({'unitId':_0x26da0e,'subUnitId':_0x45e1f6,'pivotTableId':_0x5963ce,'params':{'type':_0x3175a8[_0x2294e0(0x2fe)],'setPivotCollapse':{'tableFieldId':_0x3a953e,'collapse':_0x700c52,'item':_0x32cd04}}}),_0x37172c=_0x595e20==null?void 0x0:_0x595e20['result'][_0x2294e0(0x231)];if(!_0x37172c)return!0x1;const {view:_0x1543d8,pivotTableConfig:_0x33ae05,isEmpty:_0x52bf3d,changesets:_0x26e66b}=_0x37172c,_0x5c4e74=new _0x16b0d8['PivotView']();_0x5c4e74[_0x2294e0(0x39c)](_0x1543d8);const _0x3483ee=_0x33ae05[_0x2294e0(0x1d0)],_0x5cb63a={'cellInfo':_0x3483ee,'view':_0x5c4e74,'isEmpty':_0x52bf3d};if(!await _0x56570f['get'](_0x47953f[_0x2294e0(0x2c5)])[_0x2294e0(0x3dc)][_0x2294e0(0x3ab)](_0x2d81a5)(!0x0,_0x5cb63a))return!0x1;const _0x49fd6b=_0x2535c3(_0x56570f,_0x5c4e74,_0x3483ee,_0x52bf3d),_0x2f4297=_0x3f413f(_0x56570f,_0x5cb63a),{redos:_0x548bf2,undos:_0x1911ec}=_0x41974f(_0x29f230,{'pivotTableId':_0x5963ce,'unitId':_0x26da0e,'subUnitId':_0x45e1f6},_0x26e66b);return _0x49f92f[_0x2294e0(0x43f)]([..._0x49fd6b[_0x2294e0(0x2a5)],..._0x2f4297[_0x2294e0(0x2a5)],..._0x548bf2],_0x29f230),_0x146dcb[_0x2294e0(0x232)]({'unitID':_0x26da0e,'redoMutations':[..._0x49fd6b['redos'],..._0x2f4297['redos'],..._0x548bf2],'undoMutations':[..._0x49fd6b[_0x2294e0(0x206)],..._0x2f4297['undos'],..._0x1911ec]}),!0x0;}},_0x1bceee={'type':_0x49f92f[_0x5565f1(0x1ae)]['COMMAND'],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x33048c,_0x5c9491){const _0x538b9e=_0x5565f1;if(!_0x5c9491)return!0x1;const _0x28dd5b=_0x33048c[_0x538b9e(0x326)](_0x49f92f[_0x538b9e(0x3fc)]),_0x17eb03=_0x33048c['get'](_0x49f92f[_0x538b9e(0x16b)]),_0x2cc6c0=_0x33048c[_0x538b9e(0x326)](_0x47953f[_0x538b9e(0x3f1)]),{pivotTableConfig:_0x30482e,pivotTableId:_0x50916e,unitId:_0x16d70b,subUnitId:_0xb20c44}=_0x5c9491,_0x5481ef=(await _0x2cc6c0[_0x538b9e(0x236)]({'unitId':_0x16d70b,'subUnitId':_0xb20c44,'pivotTableId':_0x50916e,'params':{'type':_0x3175a8['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x50916e,'pivotTableConfig':_0x30482e}}}))[_0x538b9e(0x138)][_0x538b9e(0x13c)];if(!_0x5481ef)return!0x1;const {changesets:_0x548c37}=_0x5481ef,{redos:_0x18083b,undos:_0x2b3291}=_0x41974f(_0x28dd5b,{'pivotTableId':_0x50916e,'unitId':_0x16d70b,'subUnitId':_0xb20c44},_0x548c37);return _0x49f92f[_0x538b9e(0x43f)](_0x18083b,_0x28dd5b),_0x17eb03[_0x538b9e(0x232)]({'unitID':_0x16d70b,'redoMutations':_0x18083b,'undoMutations':_0x2b3291}),!0x0;}},_0x2df530={'type':_0x49f92f['CommandType'][_0x5565f1(0x305)],'id':_0x5565f1(0x38a),async 'handler'(_0x4c2522,_0x118e45){const _0x331a42=_0x5565f1;if(!_0x118e45)return!0x1;const _0x508896=_0x4c2522[_0x331a42(0x326)](_0x49f92f[_0x331a42(0x3fc)]),{pivotTableId:_0x39eac7,tableFieldId:_0xef0b,items:_0x59b40a,unitId:_0x51e78f,subUnitId:_0x959e33,isAll:_0x4d1bc5}=_0x118e45,_0x20f799=_0x4c2522[_0x331a42(0x326)](_0x47953f[_0x331a42(0x3f1)]),_0x51c7d1=_0x4c2522[_0x331a42(0x326)](_0x49f92f[_0x331a42(0x16b)]),_0x522dab=(await _0x20f799['getPivotDisplayConfig']({'unitId':_0x51e78f,'subUnitId':_0x959e33,'pivotTableId':_0x39eac7,'params':{'type':_0x3175a8[_0x331a42(0x430)],'setPivotFilter':{'tableFieldId':_0xef0b,'items':_0x59b40a,'isAll':_0x4d1bc5}}}))[_0x331a42(0x138)][_0x331a42(0x1f5)];if(!_0x522dab)return!0x1;const {changesets:_0x489ad3,pivotTableConfig:_0x361255,isEmpty:_0x3d5ec8,view:_0x3a94f4}=_0x522dab,_0x456075=_0x361255[_0x331a42(0x1d0)],_0x48bbd9=new _0x16b0d8[(_0x331a42(0x19b))]();_0x48bbd9[_0x331a42(0x39c)](_0x3a94f4);const _0x1ef01a={'cellInfo':_0x456075,'view':_0x48bbd9,'isEmpty':_0x3d5ec8};if(!await _0x4c2522['get'](_0x47953f[_0x331a42(0x2c5)])[_0x331a42(0x3dc)]['fetchThroughAsyncInterceptors'](_0x2d81a5)(!0x0,_0x1ef01a))return!0x1;const _0x14179e=_0x2535c3(_0x4c2522,_0x48bbd9,_0x456075,_0x3d5ec8),_0x518d01=_0x3f413f(_0x4c2522,_0x1ef01a),{undos:_0x48dadb,redos:_0x4fc886}=_0x41974f(_0x508896,{'pivotTableId':_0x39eac7,'unitId':_0x51e78f,'subUnitId':_0x959e33},_0x489ad3);return _0x49f92f[_0x331a42(0x43f)]([..._0x14179e[_0x331a42(0x2a5)],..._0x518d01[_0x331a42(0x2a5)],..._0x4fc886],_0x508896),_0x51c7d1[_0x331a42(0x232)]({'unitID':_0x51e78f,'redoMutations':[..._0x14179e[_0x331a42(0x2a5)],..._0x518d01[_0x331a42(0x2a5)],..._0x4fc886],'undoMutations':[..._0x14179e['undos'],..._0x518d01[_0x331a42(0x206)],..._0x48dadb]}),!0x0;}},_0x4d3fef={'type':_0x49f92f[_0x5565f1(0x1ae)]['COMMAND'],'id':_0x5565f1(0x29b),async 'handler'(_0x2d653f,_0x1eaebe){const _0x3e4e05=_0x5565f1;if(!_0x1eaebe)return!0x1;const _0x4a6278=_0x2d653f[_0x3e4e05(0x326)](_0x49f92f[_0x3e4e05(0x3fc)]),_0x5012cf=_0x2d653f[_0x3e4e05(0x326)](_0x49f92f[_0x3e4e05(0x16b)]),_0x22a179=_0x2d653f['get'](_0x47953f[_0x3e4e05(0x3f1)]),{info:_0x238887,tableFieldId:_0x44f422,pivotTableId:_0xd908e,unitId:_0x447326,subUnitId:_0x4f554a}=_0x1eaebe,_0x271e25=(await _0x22a179[_0x3e4e05(0x236)]({'unitId':_0x447326,'subUnitId':_0x4f554a,'pivotTableId':_0xd908e,'params':{'type':_0x3175a8[_0x3e4e05(0x3fd)],'setPivotSort':{'tableFieldId':_0x44f422,'info':_0x238887}}}))[_0x3e4e05(0x138)][_0x3e4e05(0x304)];if(!_0x271e25)return!0x1;const {changesets:_0x274348}=_0x271e25,{redos:_0x3dbeea,undos:_0x49314e}=_0x41974f(_0x4a6278,{'pivotTableId':_0xd908e,'unitId':_0x447326,'subUnitId':_0x4f554a},_0x274348);return _0x49f92f[_0x3e4e05(0x43f)](_0x3dbeea,_0x4a6278),_0x5012cf[_0x3e4e05(0x232)]({'unitID':_0x447326,'redoMutations':_0x3dbeea,'undoMutations':_0x49314e}),!0x0;}},_0x560a6d={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x41312d,_0x3bf98c){const _0x227e6e=_0x5565f1;if(!_0x3bf98c)return!0x1;const _0x4a2f5e=_0x41312d[_0x227e6e(0x326)](_0x49f92f[_0x227e6e(0x3fc)]),{pivotTableId:_0x2e373b,fieldId:_0x5f50c4,valueFilterInfo:_0x3711c2,unitId:_0x3dba14,subUnitId:_0x58300d}=_0x3bf98c,_0x37ff4b=_0x41312d['get'](_0x47953f[_0x227e6e(0x3f1)]),_0x22d999=_0x41312d[_0x227e6e(0x326)](_0x49f92f[_0x227e6e(0x16b)]),_0x485a7a=(await _0x37ff4b[_0x227e6e(0x236)]({'unitId':_0x3dba14,'subUnitId':_0x58300d,'pivotTableId':_0x2e373b,'params':{'type':_0x3175a8['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x5f50c4,'filterInfo':_0x3711c2}}}))['result']['setValuePivotFilter'];if(!_0x485a7a)return!0x1;const {changesets:_0x581d76,pivotTableConfig:_0x199d41,isEmpty:_0x3a87ff,view:_0x36e617}=_0x485a7a,_0x26d3da=_0x199d41[_0x227e6e(0x1d0)],_0x3e9e35=new _0x16b0d8['PivotView']();_0x3e9e35['formJSON'](_0x36e617);const _0x5ba99c={'cellInfo':_0x26d3da,'view':_0x3e9e35,'isEmpty':_0x3a87ff};if(!await _0x41312d[_0x227e6e(0x326)](_0x47953f[_0x227e6e(0x2c5)])[_0x227e6e(0x3dc)][_0x227e6e(0x3ab)](_0x2d81a5)(!0x0,_0x5ba99c))return!0x1;const _0x1c30d3=_0x2535c3(_0x41312d,_0x3e9e35,_0x26d3da,_0x3a87ff),_0x21b71b=_0x3f413f(_0x41312d,_0x5ba99c),{undos:_0x2f68d3,redos:_0x4efdb7}=_0x41974f(_0x4a2f5e,{'pivotTableId':_0x2e373b,'unitId':_0x3dba14,'subUnitId':_0x58300d},_0x581d76);return _0x49f92f[_0x227e6e(0x43f)]([..._0x1c30d3[_0x227e6e(0x2a5)],..._0x21b71b[_0x227e6e(0x2a5)],..._0x4efdb7],_0x4a2f5e),_0x22d999[_0x227e6e(0x232)]({'unitID':_0x3dba14,'redoMutations':[..._0x1c30d3['redos'],..._0x21b71b[_0x227e6e(0x2a5)],..._0x4efdb7],'undoMutations':[..._0x1c30d3[_0x227e6e(0x206)],..._0x21b71b[_0x227e6e(0x206)],..._0x2f68d3]}),!0x0;}},_0xf64629={'id':_0x5565f1(0x390),'type':_0x49f92f['CommandType']['MUTATION'],'handler':(_0x172328,_0x49ada7)=>{const _0x1c1def=_0x5565f1;if(!_0x49ada7)return!0x1;if(!!_0x172328[_0x1c1def(0x326)](_0x49f92f['IConfigService'])['getConfig'](_0x511ea3))return!0x0;const {unitId:_0x1ccd7e,subUnitId:_0x209fd5,pivotTableId:_0x4c841e,tableFieldId:_0x5af77c,dateType:_0x3f2899}=_0x49ada7,_0x1506ee=_0x172328[_0x1c1def(0x326)](_0x47953f[_0x1c1def(0x120)]),_0x55560c=_0x1506ee[_0x1c1def(0x233)](_0x4c841e);if(!_0x55560c)return!0x1;const _0x19eed9=_0x55560c['getDataFieldByTableId'](_0x5af77c);if(!_0x19eed9)return!0x1;const _0x3ad7bd=_0x19eed9['getOriginFieldId'](),_0x5cee8f=_0x55560c['getDataFieldByDataFieldId'](_0x3ad7bd),_0x3dafc8=(_0x5cee8f==null?void 0x0:_0x5cee8f[_0x1c1def(0x2f9)]())+'\x20'+_0x18fbc7(_0x172328,_0x3f2899);_0x1506ee[_0x1c1def(0x312)](_0x1ccd7e,_0x4c841e)['setDisplayName'](_0x19eed9['id'],_0x3dafc8);const _0x26fef9=_0x55560c[_0x1c1def(0x143)](_0x5af77c);if(!_0x26fef9)return!0x1;_0x55560c[_0x1c1def(0x25e)](_0x26fef9[_0x1c1def(0x428)](),_0x3dafc8),_0x19eed9[_0x1c1def(0x15d)](_0x3f2899);const _0x3d805c=_0x1506ee[_0x1c1def(0x215)](_0x1ccd7e,_0x209fd5,_0x4c841e);return _0x1506ee[_0x1c1def(0x265)]({'unitId':_0x1ccd7e,'subUnitId':_0x209fd5,'token':_0x4c841e,'type':_0x1e0edb['Set'],'pivotConfig':_0x3d805c}),!0x0;}},_0x19a49e={'id':_0x5565f1(0x1f2),'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'handler':(_0x3a9f52,_0x730575)=>{const _0x156218=_0x5565f1;if(!_0x730575)return!0x1;const _0x3635a4=_0x3a9f52[_0x156218(0x326)](_0x49f92f[_0x156218(0x16b)]),{unitId:_0x546a7f,subUnitId:_0x3ef346,pivotTableId:_0xb9fae,tableFieldId:_0x32ce0a}=_0x730575,_0x475661=[],_0x1e9bb6=[],_0x1dabb1=_0x3a9f52[_0x156218(0x326)](_0x47953f[_0x156218(0x11d)]),_0x5c6b58=_0x1dabb1[_0x156218(0x312)](_0x546a7f,_0xb9fae),_0x4ee267=_0x1dabb1[_0x156218(0x215)](_0x546a7f,_0x3ef346,_0xb9fae);if(!(_0x4ee267!=null&&_0x4ee267[_0x156218(0x1be)][_0x156218(0x172)]))return!0x1;const _0x25d26a=Object[_0x156218(0x159)](_0x4ee267['fieldsConfig']['dimension'])['find'](_0x258569=>_0x258569['id']===_0x32ce0a);if(!_0x25d26a)return!0x1;const _0x2674a4=_0x25d26a['dataFieldId'];if(!(_0x5c6b58!=null&&_0x5c6b58[_0x156218(0x1c5)]))return!0x1;const _0x302d92=Object[_0x156218(0x159)](_0x5c6b58==null?void 0x0:_0x5c6b58[_0x156218(0x1c5)])[_0x156218(0x34e)](_0x1a9241=>_0x1a9241['id']===_0x2674a4);if(!_0x302d92)return!0x1;_0x16b0d8[_0x156218(0x26e)](_0x302d92)&&_0x475661['push']({'id':_0xf64629['id'],'params':{..._0x730575,'dateType':_0x302d92[_0x156218(0x247)]}}),_0x1e9bb6[_0x156218(0x254)]({'id':_0xf64629['id'],'params':{..._0x730575}});const _0x5d5909=_0x3a9f52['get'](_0x49f92f[_0x156218(0x3fc)]);return _0x49f92f['sequenceExecute'](_0x1e9bb6,_0x5d5909)&&_0x3635a4[_0x156218(0x232)]({'unitID':_0x546a7f,'undoMutations':_0x475661,'redoMutations':_0x1e9bb6}),!0x0;}},_0x4e941b={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x305)],'id':_0x5565f1(0x12c),async 'handler'(_0x266aa6,_0xaea3f2){const _0x287f9f=_0x5565f1;if(!_0xaea3f2)return!0x1;const _0x509e29=_0x266aa6[_0x287f9f(0x326)](_0x49f92f[_0x287f9f(0x3fc)]),_0xc79940=_0x266aa6[_0x287f9f(0x326)](_0x49f92f[_0x287f9f(0x16b)]),_0x3784cf=_0x266aa6['get'](_0x47953f[_0x287f9f(0x3f1)]),{displayName:_0x5e4943,subtotalType:_0x1c503a,format:_0x2e3862,tableFieldId:_0x3c1d4f,pivotTableId:_0x2e6fa2,unitId:_0x2699bf,subUnitId:_0x55fa95}=_0xaea3f2,_0x103d5c=(await _0x3784cf[_0x287f9f(0x236)]({'unitId':_0x2699bf,'subUnitId':_0x55fa95,'pivotTableId':_0x2e6fa2,'params':{'type':_0x3175a8['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x3c1d4f,'displayName':_0x5e4943,'subtotalType':_0x1c503a,'format':_0x2e3862}}}))[_0x287f9f(0x138)]['setPivotSetting'];if(!_0x103d5c)return!0x1;const {changesets:_0x25bd00,view:_0x25a302,pivotTableConfig:_0x467ee9,isEmpty:_0x2391c2}=_0x103d5c,_0x373771=_0x467ee9[_0x287f9f(0x1d0)],_0x42160c=new _0x16b0d8[(_0x287f9f(0x19b))]();_0x42160c['formJSON'](_0x25a302);const _0x426f7f={'cellInfo':_0x373771,'view':_0x42160c,'isEmpty':_0x2391c2};if(!await _0x266aa6[_0x287f9f(0x326)](_0x47953f[_0x287f9f(0x2c5)])[_0x287f9f(0x3dc)][_0x287f9f(0x3ab)](_0x2d81a5)(!0x0,_0x426f7f))return!0x1;const _0x267845=_0x2535c3(_0x266aa6,_0x42160c,_0x373771,_0x2391c2),_0x289e51=_0x3f413f(_0x266aa6,_0x426f7f),{undos:_0x47021e,redos:_0x2d7f65}=_0x41974f(_0x509e29,{'pivotTableId':_0x2e6fa2,'unitId':_0x2699bf,'subUnitId':_0x55fa95},_0x25bd00);return _0x49f92f['sequenceExecute']([..._0x267845['redos'],..._0x289e51['redos'],..._0x2d7f65],_0x509e29),_0xc79940['pushUndoRedo']({'unitID':_0x2699bf,'redoMutations':[..._0x267845[_0x287f9f(0x2a5)],..._0x289e51[_0x287f9f(0x2a5)],..._0x2d7f65],'undoMutations':[..._0x267845[_0x287f9f(0x206)],..._0x289e51[_0x287f9f(0x206)],..._0x47021e]}),!0x0;}},_0x66b5e7={'type':_0x49f92f[_0x5565f1(0x1ae)][_0x5565f1(0x1fc)],'id':_0x5565f1(0x35e),'handler'(_0x278605,_0x3a289a){const _0x17c2b5=_0x5565f1;if(!_0x3a289a)return!0x1;if(!!_0x278605['get'](_0x49f92f[_0x17c2b5(0x404)])[_0x17c2b5(0x2ee)](_0x511ea3))return!0x0;const _0x2387dd=_0x278605[_0x17c2b5(0x326)](_0x47953f[_0x17c2b5(0x120)]),{pivotTableId:_0x5aa3f7,deleteIds:_0x492563,collectionJSON:_0x39f2b0,dataRangeInfo:_0x540ce1,unitId:_0x56b3c2,subUnitId:_0x231084}=_0x3a289a,_0x14bcb5=_0x2387dd['getPivotTableInstance'](_0x5aa3f7),_0x4825a6=_0x2387dd[_0x17c2b5(0x215)](_0x56b3c2,_0x231084,_0x5aa3f7);if(!_0x14bcb5||!_0x4825a6)return!0x1;const {collection:_0x17dbf8,updateDataFieldList:_0x4ce49b}=_0x2387dd[_0x17c2b5(0x3cf)](_0x5aa3f7,_0x39f2b0,_0x540ce1,_0x4825a6['targetCellInfo']);_0x2387dd[_0x17c2b5(0x1f7)](_0x17dbf8,_0x4ce49b,_0x540ce1),_0x14bcb5[_0x17c2b5(0x383)](_0x17dbf8);for(const _0x42a269 of _0x492563)_0x2387dd[_0x17c2b5(0x3bd)](_0x540ce1[_0x17c2b5(0x32c)],_0x42a269);const _0x387d3d=_0x2387dd['getPivotTableConfig'](_0x56b3c2,_0x231084,_0x5aa3f7);return _0x387d3d[_0x17c2b5(0x2b1)]=JSON[_0x17c2b5(0x3ac)](JSON[_0x17c2b5(0x362)](_0x540ce1)),_0x2387dd['addDirtyPivotTable']({'unitId':_0x56b3c2,'subUnitId':_0x231084,'token':_0x5aa3f7,'type':_0x1e0edb['Set']}),!0x0;}},_0x41de91={'type':_0x49f92f['CommandType'][_0x5565f1(0x305)],'id':_0x5565f1(0x14b),async 'handler'(_0x5cde83,_0x20f940){const _0x1fc342=_0x5565f1,_0xdcee75=_0x5cde83[_0x1fc342(0x326)](_0x49f92f[_0x1fc342(0x3fc)]),_0x181f98=_0x5cde83[_0x1fc342(0x326)](_0x47953f[_0x1fc342(0x3f1)]),_0x4e5d06=_0x5cde83[_0x1fc342(0x326)](_0x49f92f[_0x1fc342(0x16b)]);if(!_0x20f940)return!0x1;const {token:_0x52b5de,dataRangeInfo:_0x1e3779,unitId:_0x4fba82,subUnitId:_0x416b15}=_0x20f940,_0xa0fbd3=[],_0xb4c8bf=[],_0x5088ac=(await _0x181f98['getPivotDisplayConfig']({'unitId':_0x4fba82,'subUnitId':_0x416b15,'pivotTableId':_0x52b5de,'params':{'type':_0x3175a8[_0x1fc342(0x278)],'updatePivotSource':{'dataRangeInfo':_0x1e3779,'unitId':_0x4fba82,'subUnitId':_0x416b15}}}))[_0x1fc342(0x138)][_0x1fc342(0x339)];if(!_0x5088ac)return!0x1;const {changesets:_0x2afb19,deleteIds:_0x35f159,collectionConfig:_0x2ab02f,oldCollectionConfig:_0x1cf2af,view:_0x58ad27,isEmpty:_0xe3a45b,pivotTableConfig:_0x37b92f}=_0x5088ac;_0xb4c8bf[_0x1fc342(0x254)]({'id':_0x66b5e7['id'],'params':{'pivotTableId':_0x52b5de,'deleteIds':_0x35f159,'collectionJSON':_0x2ab02f,'dataRangeInfo':_0x1e3779,'unitId':_0x4fba82,'subUnitId':_0x416b15}}),_0xa0fbd3['unshift']({'id':_0x66b5e7['id'],'params':{'pivotTableId':_0x52b5de,'deleteIds':[],'collectionJSON':_0x1cf2af,'dataRangeInfo':_0x37b92f[_0x1fc342(0x2b1)],'unitId':_0x4fba82,'subUnitId':_0x416b15}});const _0x44c301=_0x37b92f[_0x1fc342(0x1d0)],_0x2ef6ce=new _0x16b0d8[(_0x1fc342(0x19b))]();_0x2ef6ce['formJSON'](_0x58ad27);const _0x3d0baf={'cellInfo':_0x44c301,'view':_0x2ef6ce,'isEmpty':_0xe3a45b};if(!await _0x5cde83[_0x1fc342(0x326)](_0x47953f[_0x1fc342(0x2c5)])['asyncInterceptor'][_0x1fc342(0x3ab)](_0x2d81a5)(!0x0,_0x3d0baf))return!0x1;const _0x3cba14=_0x2535c3(_0x5cde83,_0x2ef6ce,_0x44c301,_0xe3a45b),_0x22e1f7=_0x3f413f(_0x5cde83,_0x3d0baf),{undos:_0x513eb2,redos:_0x3923fe}=_0x41974f(_0xdcee75,{'pivotTableId':_0x52b5de,'unitId':_0x4fba82,'subUnitId':_0x416b15},_0x2afb19);return _0x49f92f['sequenceExecute']([..._0x3cba14[_0x1fc342(0x2a5)],..._0x22e1f7[_0x1fc342(0x2a5)],..._0xb4c8bf,..._0x513eb2],_0xdcee75),_0x4e5d06['pushUndoRedo']({'unitID':_0x4fba82,'redoMutations':[..._0x3cba14['redos'],..._0x22e1f7['redos'],..._0xb4c8bf,..._0x513eb2],'undoMutations':[..._0x3cba14['undos'],..._0x22e1f7[_0x1fc342(0x206)],..._0xa0fbd3,..._0x3923fe]}),!0x0;}},_0x942c81={'type':_0x49f92f['CommandType']['COMMAND'],'id':_0x5565f1(0x258),async 'handler'(_0x14dfbe,_0x1148f1){const _0x3a918b=_0x5565f1;if(!_0x1148f1)return!0x1;const _0x247f38=_0x14dfbe[_0x3a918b(0x326)](_0x49f92f[_0x3a918b(0x3fc)]),_0x5c46f5=_0x14dfbe[_0x3a918b(0x326)](_0x47953f[_0x3a918b(0x3f1)]),_0x5c8531=_0x14dfbe['get'](_0x49f92f['IUniverInstanceService']),_0xa0c45=_0x14dfbe[_0x3a918b(0x326)](_0x49f92f[_0x3a918b(0x16b)]),{pivotTableId:_0x2e9e3b,position:_0x1b9561,index:_0x27daa6}=_0x1148f1,_0xc9681a=_0x29b248[_0x3a918b(0x1a6)](_0x5c8531);if(!_0xc9681a)return!0x1;const {unitId:_0x2b96ea,subUnitId:_0x78b706}=_0xc9681a,_0x2f3590=(await _0x5c46f5[_0x3a918b(0x236)]({'unitId':_0x2b96ea,'subUnitId':_0x78b706,'pivotTableId':_0x2e9e3b,'params':{'type':_0x3175a8[_0x3a918b(0x17f)],'updateValuePosition':{'position':_0x1b9561,'index':_0x27daa6}}}))[_0x3a918b(0x138)][_0x3a918b(0x323)];if(!_0x2f3590)return!0x1;const {changesets:_0x10178b,view:_0x1ebd76,isEmpty:_0x1706bd,pivotTableConfig:_0x148c3a}=_0x2f3590,_0x51f0ca=_0x148c3a['targetCellInfo'],_0x2ff5e4=new _0x16b0d8['PivotView']();_0x2ff5e4['formJSON'](_0x1ebd76);const _0x3655af=_0x14dfbe[_0x3a918b(0x326)](_0x47953f[_0x3a918b(0x2c5)]),_0x5d98f2={'cellInfo':_0x51f0ca,'view':_0x2ff5e4,'isEmpty':_0x1706bd};if(!await _0x3655af[_0x3a918b(0x3dc)]['fetchThroughAsyncInterceptors'](_0x2d81a5)(!0x0,_0x5d98f2))return!0x1;const _0x10edda=_0x2535c3(_0x14dfbe,_0x2ff5e4,_0x51f0ca,_0x1706bd),_0x430b3d=_0x3f413f(_0x14dfbe,_0x5d98f2),{undos:_0x4a1d27,redos:_0x4ce03a}=_0x41974f(_0x247f38,{'pivotTableId':_0x2e9e3b,'unitId':_0x2b96ea,'subUnitId':_0x78b706},_0x10178b);return _0x49f92f['sequenceExecute']([..._0x10edda[_0x3a918b(0x2a5)],..._0x430b3d[_0x3a918b(0x2a5)],..._0x4ce03a],_0x247f38),_0xa0c45[_0x3a918b(0x232)]({'unitID':_0x2b96ea,'redoMutations':[..._0x10edda[_0x3a918b(0x2a5)],..._0x430b3d['redos'],..._0x4ce03a],'undoMutations':[..._0x10edda['undos'],..._0x430b3d[_0x3a918b(0x206)],..._0x4a1d27]}),!0x0;}},_0x431f75={'type':_0x49f92f[_0x5565f1(0x1ae)]['MUTATION'],'id':_0x5565f1(0x291),'handler'(){return!0x0;}};var _0x2052e3=Object[_0x5565f1(0x14a)],_0xb64e15=(_0x502005,_0x1b8bbd,_0x4c72cb,_0x28273d)=>{const _0x164805=_0x5565f1;for(var _0x5bbf54=_0x28273d>0x1?void 0x0:_0x28273d?_0x2052e3(_0x1b8bbd,_0x4c72cb):_0x1b8bbd,_0xa4341a=_0x502005[_0x164805(0x37f)]-0x1,_0x3f4751;_0xa4341a>=0x0;_0xa4341a--)(_0x3f4751=_0x502005[_0xa4341a])&&(_0x5bbf54=_0x3f4751(_0x5bbf54)||_0x5bbf54);return _0x5bbf54;},_0x1dcd91=(_0x42e6c3,_0x4b2b46)=>(_0x24be5c,_0x5694d2)=>_0x4b2b46(_0x24be5c,_0x5694d2,_0x42e6c3);const _0x486e46=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x2fd152=(_0x172a51,_0x19794d,_0x173c86)=>{const _0x5947b0=_0x5565f1,_0x213778=_0x172a51['dataFieldsCollection'];_0x172a51[_0x5947b0(0x203)](_0x4779d1=>{const _0xfb14f3=_0x5947b0,_0x27e456=_0x4779d1[_0xfb14f3(0x428)](),_0x324b07=_0x4779d1['getDataFieldId'](),_0x11f52b=_0x4779d1[_0xfb14f3(0x33e)](),_0x2c808f=_0x4779d1[_0xfb14f3(0x20b)]();_0x19794d[_0x324b07]&&_0x19794d[_0x324b07]===_0x2c808f&&_0x11f52b===_0x2c808f&&(_0x172a51[_0xfb14f3(0x25e)](_0x27e456,_0x213778[_0xfb14f3(0x20b)](_0x324b07)),_0x4779d1[_0xfb14f3(0x411)](_0x213778[_0xfb14f3(0x20b)](_0x324b07)));}),_0x172a51[_0x5947b0(0x380)](_0x16b0d8['PivotTableFiledAreaEnum'][_0x5947b0(0x359)],_0x354f1f=>{const _0x30875a=_0x5947b0,_0x4c96e6=_0x354f1f[_0x30875a(0x428)](),_0x53f472=_0x354f1f['getDataFieldId'](),_0x5e8b7a=_0x354f1f[_0x30875a(0x33e)](),_0x43d78e=_0x354f1f['getDisplayName'](),_0x3d297f=_0x354f1f[_0x30875a(0x1d1)](),_0x2f38b9=_0x173c86(_0x5e8b7a,_0x3d297f);_0x19794d[_0x53f472]&&_0x19794d[_0x53f472]===_0x5e8b7a&&_0x2f38b9===_0x43d78e&&(_0x172a51[_0x30875a(0x25e)](_0x4c96e6,_0x173c86(_0x213778[_0x30875a(0x20b)](_0x53f472),_0x3d297f)),_0x354f1f[_0x30875a(0x411)](_0x213778['getDisplayName'](_0x53f472)));});},_0x46eac0=(_0x17852c,_0x3ffb56,_0x5da90a)=>{const _0x24a54b=_0x5565f1;var _0x4f1223,_0x3a5895;const {arrayFormulaCellData:_0x4776bd,unitData:_0x53b4a1}=_0x3ffb56,{unitId:_0x2e5ac0,subUnitId:_0x1bd9cb}=_0x5da90a,_0x282b9b=_0x5da90a[_0x24a54b(0x234)],{startColumn:_0x35d4cd,endColumn:_0x3bfc06}=_0x282b9b,_0x1c7cea=(_0x4f1223=_0x4776bd==null?void 0x0:_0x4776bd[_0x2e5ac0])==null?void 0x0:_0x4f1223[_0x1bd9cb],_0x2a9162=(_0x3a5895=_0x53b4a1==null?void 0x0:_0x53b4a1[_0x2e5ac0])==null?void 0x0:_0x3a5895[_0x1bd9cb],_0x3ea1f6=new Set(),_0x1ad889=_0x3bfc06-_0x35d4cd+0x1,{dirtyRanges:_0x5d44ca}=_0x17852c;if(_0x5d44ca)for(const {range:_0x1afc2e,sheetId:_0x25f64f,unitId:_0x156490}of _0x5d44ca){if(_0x25f64f!==_0x1bd9cb||_0x2e5ac0!==_0x156490)continue;const _0x388a87=_0x49f92f[_0x24a54b(0x23f)][_0x24a54b(0x2a1)](_0x1afc2e,_0x282b9b);if(_0x388a87){const {startColumn:_0x4d9013,endColumn:_0x160be0}=_0x388a87;for(let _0x1a49a8=_0x4d9013;_0x1a49a8<=_0x160be0;_0x1a49a8++)_0x3ea1f6[_0x24a54b(0x436)](_0x1a49a8);}}if(_0x3ea1f6[_0x24a54b(0x422)]===_0x1ad889||_0x3ea1f6[_0x24a54b(0x422)]===_0x1ad889)return Array[_0x24a54b(0x3b7)](_0x3ea1f6);if(_0x2a9162){const _0xbe2f95=_0x2a9162['getMatrix'](),_0x535cfc=Object[_0x24a54b(0x37a)](_0xbe2f95);for(const _0x449812 of _0x535cfc){const _0x47d17d=Number(_0x449812),_0x4fdd4e=_0xbe2f95[_0x47d17d];if(_0x3ea1f6[_0x24a54b(0x422)]===_0x1ad889)break;for(const _0x10dd18 in _0x4fdd4e){const _0x3b1645=Number(_0x10dd18);_0x3b1645<_0x35d4cd||_0x3b1645>_0x3bfc06||_0x3ea1f6[_0x24a54b(0x436)](_0x3b1645);}}}if(_0x1c7cea){const _0xe15248=_0x1c7cea[_0x24a54b(0x20f)](),_0x5db2d7=Object[_0x24a54b(0x37a)](_0xe15248);for(const _0x3488ef of _0x5db2d7){const _0x27eefb=Number(_0x3488ef),_0x273334=_0xe15248[_0x27eefb];if(_0x3ea1f6[_0x24a54b(0x422)]===_0x1ad889)break;for(const _0x143728 in _0x273334){const _0x5f0824=Number(_0x143728);_0x5f0824<_0x35d4cd||_0x5f0824>_0x3bfc06||_0x3ea1f6[_0x24a54b(0x436)](_0x5f0824);}}}return Array[_0x24a54b(0x3b7)](_0x3ea1f6);},_0x597c44=_0xd11d62=>{const _0x39ad14=_0x5565f1,_0x7cb89f=new Set(),_0x1c03db=[];for(const _0x7a944d of _0xd11d62){const _0x5e57f7=_0x7a944d[_0x39ad14(0x34c)]+','+_0x7a944d[_0x39ad14(0x2b0)]+','+_0x7a944d[_0x39ad14(0x421)]+','+_0x7a944d[_0x39ad14(0x39d)];_0x7cb89f[_0x39ad14(0x189)](_0x5e57f7)||(_0x7cb89f['add'](_0x5e57f7),_0x1c03db['push'](_0x7a944d));}return _0x1c03db;};let _0x4ae2a1=class extends _0x49f92f['Disposable']{constructor(_0x4fc575,_0x437769,_0x52e9df,_0x3c28d1,_0x5b1c58){const _0x221671=_0x5565f1;super(),_0x246801(this,_0x221671(0x286),new _0x3818d9[(_0x221671(0x168))](!0x0)),_0x246801(this,_0x221671(0x238),_0x4d9c4a=>{const _0x5d3bd0=_0x221671;this[_0x5d3bd0(0x286)][_0x5d3bd0(0x409)](!0x1);}),_0x246801(this,_0x221671(0x40f),_0x5f05ac=>{const _0x15c90a=_0x221671;this[_0x15c90a(0x286)][_0x15c90a(0x409)](!0x0);}),(this[_0x221671(0x2a6)]=_0x4fc575,this[_0x221671(0x2ea)]=_0x437769,this[_0x221671(0x393)]=_0x52e9df,this[_0x221671(0x40b)]=_0x3c28d1,this[_0x221671(0x27c)]=_0x5b1c58,this[_0x221671(0x2a0)](),this[_0x221671(0x21a)]());}[_0x5565f1(0x2a0)](){const _0x479cfd=_0x5565f1;this[_0x479cfd(0x24a)](),this[_0x479cfd(0x134)](),this[_0x479cfd(0x3b8)](),this[_0x479cfd(0x2a3)]();}[_0x5565f1(0x347)](){const _0x11b63a=_0x5565f1;this[_0x11b63a(0x40b)][_0x11b63a(0x275)](this[_0x11b63a(0x286)]),_0x16b0d8['PivotTable'][_0x11b63a(0x22c)](_0x16b0d8[_0x11b63a(0x28f)][_0x11b63a(0x18b)],this[_0x11b63a(0x238)]),_0x16b0d8[_0x11b63a(0x43c)][_0x11b63a(0x22c)](_0x16b0d8['PivotCallbackEnum'][_0x11b63a(0x33b)],this[_0x11b63a(0x40f)]);}[_0x5565f1(0x21a)](){const _0x559238=_0x5565f1;this[_0x559238(0x3ae)](this[_0x559238(0x393)]['onCommandExecuted'](_0x2ad8e7=>{const _0x4a27df=_0x559238;_0x2ad8e7['id']===_0x29b248[_0x4a27df(0x192)]['id']&&this[_0x4a27df(0x2a6)][_0x4a27df(0x30f)](_0x2ad8e7['params']);})),this[_0x559238(0x3ae)](this[_0x559238(0x393)][_0x559238(0x129)](_0x3a0d3b=>{const _0x12ddba=_0x559238;if(_0x3a0d3b['id']!==_0x44b295['id'])return;const _0x3fa7ac=_0x3a0d3b[_0x12ddba(0x2c4)],{unitId:_0x26bad1,subUnitId:_0x418898,pivotTableId:_0x43838c}=_0x3fa7ac,_0x4631a2=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x2a8)],_0x455ea2={};switch(_0x4631a2){case _0x3175a8[_0x12ddba(0x34a)]:{const _0x92970b=_0x3fa7ac[_0x12ddba(0x2c4)]['filter'];if(!_0x92970b)return;const {row:_0x6087fc,col:_0x169104,cellData:_0x478526,pivotItemRenderInfoCache:_0x1cc2f0,tableFieldId:_0x5e8cd3}=_0x92970b,_0x2e7a73=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x3fa7ac[_0x12ddba(0x433)]);if(!_0x2e7a73||!_0x1cc2f0)return;if(_0x5e8cd3){const _0x19d32d=_0x2e7a73[_0x12ddba(0x2fc)](_0x5e8cd3);if(!_0x19d32d)return;_0x455ea2[_0x12ddba(0x209)]={..._0x2e7a73['getDataFieldItemInfo'](_0x19d32d),'tableFieldId':_0x5e8cd3,'pivotTableId':_0x3fa7ac[_0x12ddba(0x433)],'filterInfo':_0x2e7a73[_0x12ddba(0x13f)](_0x5e8cd3),'sortInfo':_0x2e7a73[_0x12ddba(0x41b)](_0x5e8cd3),'format':_0x2e7a73[_0x12ddba(0x268)](_0x5e8cd3)};}else{const _0x1483c1=_0x40a48d(_0x6087fc,_0x169104,_0x478526,_0x2e7a73,_0x1cc2f0),_0x18e14d=_0x1483c1==null?void 0x0:_0x1483c1[_0x12ddba(0x144)];if(!_0x18e14d)return;const _0x1b358e=_0x2e7a73[_0x12ddba(0x2fc)](_0x18e14d);if(!_0x1b358e)return;_0x455ea2['filter']={..._0x2e7a73['getDataFieldItemInfo'](_0x1b358e),'tableFieldId':_0x18e14d,'pivotTableId':_0x3fa7ac['pivotTableId'],'filterInfo':_0x2e7a73[_0x12ddba(0x13f)](_0x18e14d),'sortInfo':_0x2e7a73[_0x12ddba(0x41b)](_0x18e14d),'format':_0x2e7a73[_0x12ddba(0x268)](_0x18e14d)};}}break;case _0x3175a8['Panel']:{const _0x25860c=_0x3fa7ac[_0x12ddba(0x2c4)]['panel'];if(!_0x25860c)return;const {pivotTableId:_0x4306d8}=_0x25860c,_0x9ec264=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x233)](_0x4306d8);if(!_0x9ec264)return;const _0x33d79a=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x4306d8),_0x4b23f4=_0x493754(_0x9ec264,_0x4306d8,_0x33d79a);_0x455ea2[_0x12ddba(0x1e1)]=_0x4b23f4;}break;case _0x3175a8[_0x12ddba(0x35b)]:{const _0x3bbcba=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c),_0x1d8736=this[_0x12ddba(0x2a6)][_0x12ddba(0x40e)](_0x26bad1),_0x4595c8=_0x1d8736[_0x12ddba(0x312)](_0x43838c);let _0x2150da=null;const _0x45d56a=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x26bad1,_0x418898,_0x43838c),_0x4b21c6=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x195)];if(!_0x3bbcba||!_0x45d56a||!_0x4b21c6)return!0x1;const {dataFieldId:_0x4f78ad,fieldArea:_0xc3e8cd,index:_0x3ce3b4}=_0x4b21c6;_0x3bbcba[_0x12ddba(0x132)]();const _0x44f9ca=_0x3bbcba['addFieldWithSourceId'](_0x4f78ad,_0xc3e8cd,_0x3ce3b4);if(_0x44f9ca&&_0xc3e8cd===_0x16b0d8['PivotTableFiledAreaEnum'][_0x12ddba(0x359)]){const _0x4fc094=_0x44f9ca[_0x12ddba(0x428)](),_0x67755a=_0x3bbcba[_0x12ddba(0x2fc)](_0x4fc094);if(_0x67755a){const _0x5e37e8=_0x67755a==null?void 0x0:_0x67755a[_0x12ddba(0x3be)]();_0x3bbcba[_0x12ddba(0x28e)](_0x44f9ca['getId'](),_0x5e37e8===_0x16b0d8[_0x12ddba(0x2d3)][_0x12ddba(0x394)]?_0x16b0d8['PivotSubtotalTypeEnum']['sum']:_0x16b0d8[_0x12ddba(0x2de)][_0x12ddba(0x124)]);}const _0x5dfc8b=_0x3bbcba[_0x12ddba(0x1f0)](),_0x5a128b=_0x3bbcba['getValuePosition'](),_0x351f98=_0x3bbcba[_0x12ddba(0x43a)](_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x359)]);if(_0x5dfc8b===-0x1&&_0x351f98>0x1){const _0x38f349=_0x5a128b===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x358)]?_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x28b)]:_0x5a128b,_0xf11aef=_0x38f349===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x3b6)]?_0x16b0d8[_0x12ddba(0x440)]['Row']:_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x28b)];_0x3bbcba[_0x12ddba(0x323)](_0x38f349,_0x3bbcba[_0x12ddba(0x43a)](_0xf11aef));}}else{if(_0x44f9ca&&(_0xc3e8cd===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x3b6)]||_0xc3e8cd===_0x16b0d8['PivotTableFiledAreaEnum'][_0x12ddba(0x28b)])){const _0x28686a=_0x44f9ca['getId'](),_0xd21a38=_0x3bbcba[_0x12ddba(0x2fc)](_0x28686a);if(_0xd21a38&&(_0xd21a38==null?void 0x0:_0xd21a38[_0x12ddba(0x3be)]())===_0x16b0d8['PivotDataFieldDataTypeEnum'][_0x12ddba(0x34f)]){const _0x21dadc=_0xd21a38[_0x12ddba(0x29e)]();if(_0x21dadc&&_0x3bbcba[_0x12ddba(0x12f)](_0x44f9ca['getId'](),_0x21dadc),!_0x4595c8[_0x12ddba(0x35a)]()[_0x12ddba(0x145)](_0x396b7b=>{const _0xeb38bc=_0x12ddba,_0x433042=_0x4595c8[_0xeb38bc(0x27e)](_0x396b7b);return _0x16b0d8['isDateGroupField'](_0x433042)?_0x433042[_0xeb38bc(0x1a9)]()['originalFieldId']===_0x4f78ad:!0x1;})){const _0x42d4d7=_0x1d8736[_0x12ddba(0x3f2)](),_0x38d98f=_0x2b787c(_0xd21a38[_0x12ddba(0x3b4)],_0xd21a38[_0x12ddba(0x3a5)]),_0xb10089=_0xd21a38['getName']()+'\x20-\x20'+_0x18fbc7(this[_0x12ddba(0x27c)],_0x38d98f),_0x3dd63f=new _0x16b0d8[(_0x12ddba(0x408))](_0x42d4d7,_0xb10089,_0x16b0d8[_0x12ddba(0x33f)](0x3),_0xd21a38[_0x12ddba(0x428)](),_0x38d98f);_0x1d8736[_0x12ddba(0x198)](_0x3dd63f),_0x4595c8['addField'](_0x42d4d7,_0xb10089),_0x3bbcba[_0x12ddba(0x182)](_0x42d4d7,_0xc3e8cd,(_0x3ce3b4!=null?_0x3ce3b4:0x0)+0x1),_0x2150da=_0x3dd63f;}}}}const _0x2c89fd=_0x3bbcba[_0x12ddba(0x27f)](),_0x17d8ff=_0x3bbcba['query']()[_0x12ddba(0x1d4)]();let _0x18ef67;if(_0x2150da){_0x18ef67=_0x2150da['toJSON']();const _0x330400=_0x2150da[_0x12ddba(0x428)]();_0x4595c8[_0x12ddba(0x1bf)](_0x330400);let _0x361cd3=!0x0;for(const _0x2b3a58 in _0x1d8736[_0x12ddba(0x40d)])if(_0x1d8736[_0x12ddba(0x40d)][_0x2b3a58][_0x12ddba(0x35a)]()[_0x12ddba(0x1c1)](_0x330400)){_0x361cd3=!0x1;break;}_0x361cd3&&_0x1d8736[_0x12ddba(0x178)](_0x330400);}const _0x336935=_0x3bbcba[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x195)]={'view':_0x17d8ff,'changesets':_0x336935,'isEmpty':_0x2c89fd,'pivotTableConfig':_0x45d56a,'shouldBeAddedGroupJSON':_0x18ef67};}break;case _0x3175a8[_0x12ddba(0x18f)]:{const _0x2d3aa0=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x32f)];if(!_0x2d3aa0)return;const _0x17adde=_0x2d3aa0[_0x12ddba(0x2b1)],_0x3c6d17=_0x2d3aa0[_0x12ddba(0x433)],{collection:_0x1f05e3}=this[_0x12ddba(0x2a6)][_0x12ddba(0x3e4)]({'unitId':_0x17adde['unitId'],'sheetName':_0x17adde[_0x12ddba(0x3d4)],'subUnitId':_0x17adde[_0x12ddba(0x271)],'range':_0x17adde[_0x12ddba(0x234)]}),_0x57abaa=new _0x16b0d8['PivotTable'](_0x1f05e3,void 0x0,_0x3c6d17),_0x37f6f7=_0x57abaa[_0x12ddba(0x3c2)](),_0x577163=_0x57abaa['toJSON'](),_0x43b04c=_0x1f05e3[_0x12ddba(0x1d4)]();_0x455ea2[_0x12ddba(0x32f)]={'view':_0x37f6f7,'fieldsConfig':_0x577163,'collectionConfig':_0x43b04c,'isEmpty':_0x57abaa[_0x12ddba(0x27f)]()};}break;case _0x3175a8[_0x12ddba(0x12a)]:{const _0x46cc6c=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x208)];if(!_0x46cc6c)return;const {fieldId:_0x34a1e9,area:_0x20d361,index:_0x5392fe}=_0x46cc6c,_0x234383=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x234383)return;const _0x4ff7c8=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c);if(!_0x4ff7c8)return;_0x4ff7c8[_0x12ddba(0x132)]();const {area:_0x3cf153,index:_0x3785d0}=_0x4ff7c8[_0x12ddba(0x1eb)](_0x34a1e9);if(_0x4ff7c8[_0x12ddba(0x1c3)](_0x34a1e9,_0x20d361,_0x5392fe),_0x20d361===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x359)]&&_0x4ff7c8[_0x12ddba(0x143)](_0x34a1e9)[_0x12ddba(0x1d1)]()===void 0x0){const _0x32c9fe=_0x4ff7c8[_0x12ddba(0x143)](_0x34a1e9);if(_0x32c9fe&&_0x32c9fe[_0x12ddba(0x1d1)]()===void 0x0){const _0x3ced70=_0x4ff7c8[_0x12ddba(0x2fc)](_0x34a1e9);if(_0x3ced70){const _0x30dd88=_0x3ced70==null?void 0x0:_0x3ced70[_0x12ddba(0x3be)]();_0x4ff7c8[_0x12ddba(0x28e)](_0x34a1e9,_0x30dd88===_0x16b0d8[_0x12ddba(0x2d3)][_0x12ddba(0x394)]?_0x16b0d8[_0x12ddba(0x2de)]['sum']:_0x16b0d8[_0x12ddba(0x2de)]['count']);}}}const _0x547501=_0x4ff7c8[_0x12ddba(0x420)](),_0x5deff8=_0x4ff7c8[_0x12ddba(0x1f0)](),_0x463d64=_0x4ff7c8[_0x12ddba(0x43a)](_0x16b0d8['PivotTableFiledAreaEnum'][_0x12ddba(0x359)])>0x1;if(_0x463d64&&_0x3cf153===_0x20d361&&(_0x20d361===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x3b6)]&&_0x547501===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x3b6)]||_0x20d361===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x28b)]&&_0x547501===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x28b)])){let _0x486ef1=_0x5deff8;_0x3785d0<=_0x5deff8&&_0x486ef1--,_0x5392fe<=_0x5deff8&&_0x486ef1++,_0x4ff7c8[_0x12ddba(0x323)](_0x547501,_0x486ef1);}else _0x463d64&&(_0x3cf153===_0x16b0d8['PivotTableFiledAreaEnum'][_0x12ddba(0x3b6)]&&_0x547501===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x3b6)]||_0x3cf153===_0x16b0d8['PivotTableFiledAreaEnum']['Column']&&_0x547501===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x28b)])&&_0x5deff8>=_0x3785d0&&_0x4ff7c8['updateValuePosition'](_0x547501,_0x5deff8-0x1),_0x463d64&&(_0x20d361===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x3b6)]&&_0x547501===_0x16b0d8['PivotTableValuePositionEnum']['Row']||_0x20d361===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x28b)]&&_0x547501===_0x16b0d8[_0x12ddba(0x16d)][_0x12ddba(0x28b)])&&_0x5deff8>=_0x5392fe&&_0x4ff7c8[_0x12ddba(0x323)](_0x547501,_0x5deff8+0x1);const _0x6199ff=_0x4ff7c8[_0x12ddba(0x3c2)](),_0x1b2beb=_0x4ff7c8[_0x12ddba(0x27f)](),_0x3b86e7=_0x4ff7c8['endCollectChangeset']();_0x455ea2[_0x12ddba(0x208)]={'view':_0x6199ff[_0x12ddba(0x1d4)](),'changesets':_0x3b86e7,'isEmpty':_0x1b2beb,'pivotTableConfig':_0x234383};}break;case _0x3175a8[_0x12ddba(0x235)]:{const _0x323159=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x2c7)];if(!_0x323159)return;const _0x581507=_0x323159[_0x12ddba(0x320)],_0x4c1ad3=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x4c1ad3)return!0x1;const _0x3d8232=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x233)](_0x43838c);if(!_0x3d8232)return!0x1;_0x3d8232[_0x12ddba(0x132)]();for(const _0x1e65d0 of _0x581507){const {area:_0x5553e8}=_0x3d8232['getFieldPositionInfoById'](_0x1e65d0);_0x5553e8===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x359)]&&_0x3d8232[_0x12ddba(0x1c9)](_0x1e65d0),(_0x5553e8===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x3b6)]||_0x5553e8===_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x28b)])&&_0x3d8232[_0x12ddba(0x1aa)](_0x1e65d0),_0x3d8232[_0x12ddba(0x376)](_0x1e65d0);}const _0x49382b=_0x3d8232[_0x12ddba(0x27f)](),_0x2a7d3a=_0x3d8232['query']()['toJSON'](),_0xb5b7d4=_0x3d8232['endCollectChangeset']();_0x455ea2[_0x12ddba(0x2c7)]={'changesets':_0xb5b7d4,'pivotTableConfig':_0x4c1ad3,'isEmpty':_0x49382b,'view':_0x2a7d3a};}break;case _0x3175a8[_0x12ddba(0x430)]:{const _0x187950=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x1f5)];if(!_0x187950)return;const {tableFieldId:_0x5e3b25,items:_0x31d062,isAll:_0x5212e9}=_0x187950,_0x2b09bd=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c),_0x357584=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x2b09bd||!_0x357584)return;_0x2b09bd[_0x12ddba(0x132)](),_0x2b09bd[_0x12ddba(0x37b)](_0x5e3b25,{'type':_0x16b0d8[_0x12ddba(0x137)][_0x12ddba(0x2d8)],'list':_0x31d062,'isAll':_0x5212e9});const _0xbcd680=_0x2b09bd['isEmpty'](),_0xfd5adf=_0x2b09bd[_0x12ddba(0x3c2)]()[_0x12ddba(0x1d4)](),_0x3b2303=_0x2b09bd[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x1f5)]={'view':_0xfd5adf,'changesets':_0x3b2303,'isEmpty':_0xbcd680,'pivotTableConfig':_0x357584};}break;case _0x3175a8[_0x12ddba(0x252)]:{const _0x2ccb91=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x2c8)];if(!_0x2ccb91)return;const {tableFieldId:_0x48b46d,filterInfo:_0x593cd0}=_0x2ccb91,_0x942c46=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c),_0x4f0b32=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x942c46||!_0x4f0b32)return;_0x942c46['startCollectChangeset'](),_0x942c46[_0x12ddba(0x281)](_0x48b46d,_0x593cd0);const _0x2f7a75=_0x942c46[_0x12ddba(0x27f)](),_0x5a50f4=_0x942c46['query']()[_0x12ddba(0x1d4)](),_0x5b2706=_0x942c46[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x2c8)]={'view':_0x5a50f4,'changesets':_0x5b2706,'isEmpty':_0x2f7a75,'pivotTableConfig':_0x4f0b32};}break;case _0x3175a8[_0x12ddba(0x3fd)]:{const _0x49b3d9=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x304)];if(!_0x49b3d9)return;const {tableFieldId:_0x1ef800,info:_0x384cfc}=_0x49b3d9,_0x4e52af=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c),_0x2046f2=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x4e52af||!_0x2046f2)return;_0x4e52af[_0x12ddba(0x132)](),_0x4e52af[_0x12ddba(0x16f)](_0x1ef800,_0x384cfc);const _0x475684=_0x4e52af[_0x12ddba(0x27f)](),_0x2618e5=_0x4e52af[_0x12ddba(0x3c2)]()[_0x12ddba(0x1d4)](),_0x103982=_0x4e52af[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x304)]={'view':_0x2618e5,'changesets':_0x103982,'isEmpty':_0x475684,'pivotTableConfig':_0x2046f2};}break;case _0x3175a8[_0x12ddba(0x2d1)]:{const _0x1f3896=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x3e3)];if(!_0x1f3896)return;const {tableFieldId:_0x195d76,displayName:_0x27bcf5,subtotalType:_0x281e4f,format:_0x5cdf49}=_0x1f3896,_0x459aa4=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x233)](_0x43838c),_0x15d1c8=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x26bad1,_0x418898,_0x43838c);if(!_0x459aa4||!_0x15d1c8)return;_0x459aa4[_0x12ddba(0x132)](),_0x27bcf5!==void 0x0&&_0x459aa4[_0x12ddba(0x25e)](_0x195d76,_0x27bcf5),_0x281e4f!==void 0x0&&_0x459aa4[_0x12ddba(0x28e)](_0x195d76,_0x281e4f),_0x5cdf49!==void 0x0&&_0x459aa4[_0x12ddba(0x12f)](_0x195d76,_0x5cdf49);const _0x5f38df=_0x459aa4['isEmpty'](),_0x1f7c34=_0x459aa4[_0x12ddba(0x3c2)]()[_0x12ddba(0x1d4)](),_0x29db8b=_0x459aa4[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x3e3)]={'changesets':_0x29db8b,'pivotTableConfig':_0x15d1c8,'isEmpty':_0x5f38df,'view':_0x1f7c34};}break;case _0x3175a8[_0x12ddba(0x278)]:{const _0x3771d3=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x339)];if(!_0x3771d3)return;const {dataRangeInfo:_0x1bde56,unitId:_0x74a213,subUnitId:_0x1e9976}=_0x3771d3,_0x2c18f5=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x74a213,_0x1e9976,_0x43838c),_0x25bbb6=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c);if(!this[_0x12ddba(0x2a6)][_0x12ddba(0x312)](_0x74a213,_0x43838c)||!_0x25bbb6||!_0x2c18f5)return;const _0x10f23f=this[_0x12ddba(0x2a6)][_0x12ddba(0x1c6)](_0x74a213,_0x43838c,_0x1bde56),_0x3406fb=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x312)](_0x74a213,_0x43838c)['toJSON'](),{collection:_0x299750}=this[_0x12ddba(0x2a6)][_0x12ddba(0x3e4)]({'unitId':_0x1bde56['unitId'],'sheetName':_0x1bde56[_0x12ddba(0x3d4)],'subUnitId':_0x1bde56[_0x12ddba(0x271)],'range':_0x1bde56[_0x12ddba(0x234)]}),_0x3a1e96=_0x299750['toJSON']();_0x25bbb6[_0x12ddba(0x132)]();const _0x37b9cc=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x40e)](_0x74a213)[_0x12ddba(0x239)]()||_0x16b0d8[_0x12ddba(0x20a)];_0x25bbb6['iterateField'](_0x1c6ed3=>{const _0x394313=_0x12ddba,_0x33756d=_0x1c6ed3[_0x394313(0x36f)]();if(!_0x299750[_0x394313(0x2ce)](_0x33756d)){const _0x499294=_0x299750[_0x394313(0x42f)](_0x1c6ed3[_0x394313(0x33e)]());if(_0x499294){_0x25bbb6[_0x394313(0x25d)](_0x1c6ed3[_0x394313(0x428)](),_0x499294[_0x394313(0x2f9)](),_0x499294[_0x394313(0x428)]());const {area:_0x50fc67}=_0x25bbb6['getFieldPositionInfoById'](_0x1c6ed3['getId']());let _0x211638=_0x1c6ed3[_0x394313(0x33e)]();const _0x48f967=_0x1c6ed3[_0x394313(0x20b)]();if(_0x50fc67===_0x16b0d8[_0x394313(0x440)]['Value']){const _0x427599=_0x1c6ed3[_0x394313(0x1d1)]();_0x211638=_0x37b9cc(_0x499294[_0x394313(0x2f9)](),_0x427599);}_0x48f967!==_0x211638&&_0x25bbb6[_0x394313(0x25e)](_0x1c6ed3[_0x394313(0x428)](),_0x211638);}else _0x25bbb6['removeField'](_0x1c6ed3[_0x394313(0x428)]());}});const _0x340e35=_0x25bbb6[_0x12ddba(0x27f)](),_0x1350f1=_0x25bbb6[_0x12ddba(0x3c2)]()[_0x12ddba(0x1d4)](),_0x3d88ed=_0x25bbb6[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x339)]={'view':_0x1350f1,'changesets':_0x3d88ed,'isEmpty':_0x340e35,'pivotTableConfig':_0x2c18f5,'collectionConfig':_0x3a1e96,'oldCollectionConfig':_0x3406fb,'deleteIds':_0x10f23f};}break;case _0x3175a8[_0x12ddba(0x17f)]:{const _0x4d4ba2=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x323)];if(!_0x4d4ba2)return;const {position:_0x47b7ee,index:_0x5cdc8d}=_0x4d4ba2,_0x29cc0a=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x29cc0a)return!0x1;const _0x1f39af=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c);if(!_0x1f39af)return!0x1;_0x1f39af[_0x12ddba(0x132)](),_0x1f39af[_0x12ddba(0x323)](_0x47b7ee,_0x5cdc8d);const _0x492771=_0x1f39af[_0x12ddba(0x27f)](),_0x913bc=_0x1f39af[_0x12ddba(0x3c2)]()['toJSON'](),_0x401bc6=_0x1f39af[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x323)]={'changesets':_0x401bc6,'pivotTableConfig':_0x29cc0a,'isEmpty':_0x492771,'view':_0x913bc};}break;case _0x3175a8[_0x12ddba(0x2fe)]:{const _0x3914e3=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x231)];if(!_0x3914e3)return;const {tableFieldId:_0x4faa65,collapse:_0x4fd947,item:_0x15e75b}=_0x3914e3,_0x1d8b3d=this[_0x12ddba(0x2a6)]['getPivotTableInstance'](_0x43838c),_0x5e2e70=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x1d8b3d||!_0x5e2e70)return;_0x1d8b3d['startCollectChangeset'](),_0x1d8b3d[_0x12ddba(0x417)](_0x4faa65,_0x4fd947,_0x15e75b);const _0x18ac6b=_0x1d8b3d[_0x12ddba(0x27f)](),_0xfcc68a=_0x1d8b3d['query']()['toJSON'](),_0x2a8b9b=_0x1d8b3d[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x231)]={'view':_0xfcc68a,'isEmpty':_0x18ac6b,'pivotTableConfig':_0x5e2e70,'changesets':_0x2a8b9b};}break;case _0x3175a8[_0x12ddba(0x13d)]:{const _0x942913=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x13c)];if(!_0x942913)return;const {pivotTableConfig:_0x172284}=_0x942913,_0x584fa4=this['_sheetsPivotDataSourceModel'][_0x12ddba(0x233)](_0x43838c),_0x38107a=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x584fa4||!_0x38107a)return;_0x584fa4['startCollectChangeset'](),_0x4ba403(_0x584fa4,_0x172284);const _0x43951b=_0x584fa4[_0x12ddba(0x27f)](),_0x434e38=_0x584fa4[_0x12ddba(0x3c2)]()['toJSON'](),_0x4688b7=_0x584fa4[_0x12ddba(0x3c1)]();_0x455ea2['setPivotTableConfig']={'view':_0x434e38,'isEmpty':_0x43951b,'pivotTableConfig':{..._0x38107a,'fieldsConfig':_0x584fa4[_0x12ddba(0x1d4)]()},'changesets':_0x4688b7};}break;case _0x3175a8[_0x12ddba(0x3a3)]:{const _0x127cfe=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x3ed)];if(!_0x127cfe)return;const _0x2316f3=this[_0x12ddba(0x2a6)][_0x12ddba(0x233)](_0x43838c),_0x4c26b7=this[_0x12ddba(0x2a6)][_0x12ddba(0x215)](_0x26bad1,_0x418898,_0x43838c);if(!_0x2316f3||!_0x4c26b7)return;_0x2316f3[_0x12ddba(0x132)](),_0x273a51(_0x2316f3,_0x127cfe[_0x12ddba(0x3b9)]);const _0xd6855a=_0x2316f3[_0x12ddba(0x3c2)]()[_0x12ddba(0x1d4)](),_0x25ae4b=_0x2316f3[_0x12ddba(0x3c1)]();_0x455ea2[_0x12ddba(0x3ed)]={'view':_0xd6855a,'isEmpty':!0x0,'pivotTableConfig':{..._0x4c26b7,'fieldsConfig':_0x2316f3[_0x12ddba(0x1d4)]()},'changesets':_0x25ae4b};}break;case _0x3175a8[_0x12ddba(0x33d)]:{const _0x39d401=_0x3fa7ac[_0x12ddba(0x2c4)][_0x12ddba(0x1cd)];if(!_0x39d401)return;const _0x5dbfbf=_0x39d401[_0x12ddba(0x2b1)],_0x3d307c=_0x39d401[_0x12ddba(0x433)],{collection:_0x2d3dc1}=this[_0x12ddba(0x2a6)]['createCollectionWithDataRange']({'unitId':_0x5dbfbf['unitId'],'sheetName':_0x5dbfbf[_0x12ddba(0x3d4)],'subUnitId':_0x5dbfbf[_0x12ddba(0x271)],'range':_0x5dbfbf[_0x12ddba(0x234)]}),_0x82e3cb=new _0x16b0d8[(_0x12ddba(0x43c))](_0x2d3dc1,void 0x0,_0x3d307c),_0x860ea3=_0x2d3dc1['getFieldIds'](),{rows:_0x357c2a,columns:_0x2d80b9,filters:_0x3f3ec2,values:_0x4b498e}=_0x39d401[_0x12ddba(0x3b5)];_0x82e3cb[_0x12ddba(0x132)]();for(const {field:_0x5b4237,selectedItems:_0x22a152}of _0x357c2a||[]){const _0x58ba75=_0x860ea3[_0x5b4237];if(_0x58ba75){const _0x142270=_0x82e3cb['addFieldWithSourceId'](_0x58ba75,_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x3b6)]);_0x22a152&&_0x142270&&_0x82e3cb[_0x12ddba(0x37b)](_0x142270[_0x12ddba(0x428)](),{'type':_0x16b0d8[_0x12ddba(0x137)][_0x12ddba(0x2d8)],'list':_0x22a152,'isAll':!0x1});}}for(const {field:_0x40ec26,selectedItems:_0x243e69}of _0x2d80b9||[]){const _0x402065=_0x860ea3[_0x40ec26];if(_0x402065){const _0x3f9ed7=_0x82e3cb[_0x12ddba(0x182)](_0x402065,_0x16b0d8['PivotTableFiledAreaEnum'][_0x12ddba(0x28b)]);_0x243e69&&_0x3f9ed7&&_0x82e3cb[_0x12ddba(0x37b)](_0x3f9ed7[_0x12ddba(0x428)](),{'type':_0x16b0d8[_0x12ddba(0x137)][_0x12ddba(0x2d8)],'list':_0x243e69,'isAll':!0x1});}}for(const {field:_0x417d78,selectedItems:_0x46da84}of _0x3f3ec2||[]){const _0x26c768=_0x860ea3[_0x417d78];if(_0x26c768){const _0x3d54d7=_0x82e3cb[_0x12ddba(0x182)](_0x26c768,_0x16b0d8[_0x12ddba(0x440)][_0x12ddba(0x34a)]);_0x46da84&&_0x3d54d7&&_0x82e3cb[_0x12ddba(0x37b)](_0x3d54d7[_0x12ddba(0x428)](),{'type':_0x16b0d8[_0x12ddba(0x137)][_0x12ddba(0x2d8)],'list':_0x46da84,'isAll':!0x1});}}for(const {field:_0x8b0bb,subTotalType:_0x118d0d,formatString:_0x29e948}of _0x4b498e||[]){const _0x2f4ebc=_0x2d3dc1[_0x12ddba(0x27e)](_0x860ea3[_0x8b0bb]);if(!_0x2f4ebc)continue;const _0x25ac3b=_0x860ea3[_0x8b0bb];if(_0x25ac3b){const _0x572534=_0x82e3cb['addFieldWithSourceId'](_0x25ac3b,_0x16b0d8['PivotTableFiledAreaEnum'][_0x12ddba(0x359)]);if(_0x572534){if(_0x118d0d!==void 0x0){_0x82e3cb[_0x12ddba(0x28e)](_0x572534[_0x12ddba(0x428)](),_0x118d0d);const _0x3a54f4=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x5dbfbf['unitId'])[_0x12ddba(0x239)]()||_0x16b0d8[_0x12ddba(0x20a)],_0x5d2f92=_0x2d3dc1[_0x12ddba(0x20b)](_0x25ac3b),_0x1a68e3=_0x3a54f4(_0x5d2f92,_0x118d0d);_0x82e3cb[_0x12ddba(0x25e)](_0x572534['getId'](),_0x1a68e3);}else{if(_0x2f4ebc){const _0x20da63=_0x2f4ebc==null?void 0x0:_0x2f4ebc[_0x12ddba(0x3be)]();_0x82e3cb[_0x12ddba(0x28e)](_0x572534[_0x12ddba(0x428)](),_0x20da63===_0x16b0d8[_0x12ddba(0x2d3)][_0x12ddba(0x394)]?_0x16b0d8[_0x12ddba(0x2de)][_0x12ddba(0x26b)]:_0x16b0d8[_0x12ddba(0x2de)][_0x12ddba(0x124)]);}}_0x29e948&&_0x82e3cb[_0x12ddba(0x12f)](_0x572534[_0x12ddba(0x428)](),_0x29e948);}}}const _0x440874=_0x82e3cb[_0x12ddba(0x3c2)](),_0x60ee43=_0x82e3cb['toJSON'](),_0x47f7a8=_0x82e3cb['isEmpty'](),_0x2fc55b=_0x82e3cb[_0x12ddba(0x3c1)](),_0x32d1d8=_0x2d3dc1[_0x12ddba(0x1d4)]();_0x455ea2[_0x12ddba(0x1cd)]={'view':_0x440874,'fieldsConfig':_0x60ee43,'collectionConfig':_0x32d1d8,'isEmpty':_0x47f7a8,'changesets':_0x2fc55b};}break;case _0x3175a8['DrillDown']:{const _0x11974d=_0x571aea(this[_0x12ddba(0x27c)],_0x3fa7ac);if(!_0x11974d)return;const {range:_0x4fc240,sourceSubUnitId:_0x26b28f,sourceUnitId:_0x49d601,formatMap:_0x15c8ab,indexes:_0x5a910f}=_0x11974d;_0x455ea2['drillDown']={'range':_0x4fc240,'sourceSubUnitId':_0x26b28f,'sourceUnitId':_0x49d601,'formatMap':_0x15c8ab,'indexes':_0x5a910f};}break;}this[_0x12ddba(0x393)][_0x12ddba(0x41e)](_0x187dbf['id'],{'version':_0x3fa7ac[_0x12ddba(0x21f)],'result':_0x455ea2},{'onlyLocal':!0x0});}));}[_0x5565f1(0x3b8)](){const _0x5b5a04=_0x5565f1;this['disposeWithMe'](this['_commandService'][_0x5b5a04(0x129)](_0x24ab7f=>{const _0x5d0bc3=_0x5b5a04;if(_0x24ab7f['id']!==_0x389da5['id'])return;const _0x44a74f=_0x24ab7f[_0x5d0bc3(0x2c4)];return this[_0x5d0bc3(0x2a6)]['setTextInfo'](_0x44a74f[_0x5d0bc3(0x2b7)]),!0x0;}));}[_0x5565f1(0x24a)](){const _0x35e678=_0x5565f1;this[_0x35e678(0x2a6)][_0x35e678(0x32e)][_0x35e678(0x1de)](_0x21b501=>{const _0x47d0fd=_0x35e678;switch(_0x21b501[_0x47d0fd(0x2a8)]){case _0x37eb19[_0x47d0fd(0x436)]:_0x21b501['dataRangeInfo']&&_0x21b501[_0x47d0fd(0x1d0)]&&this[_0x47d0fd(0x259)](_0x21b501['token'],_0x21b501[_0x47d0fd(0x150)],_0x21b501[_0x47d0fd(0x1d0)]);break;case _0x37eb19[_0x47d0fd(0x43d)]:{const {unitId:_0x424586,subUnitId:_0x553f58,token:_0x30d891}=_0x21b501;_0x424586&&_0x553f58&&_0x30d891&&this[_0x47d0fd(0x338)](_0x424586,_0x553f58,_0x30d891);}break;case _0x37eb19[_0x47d0fd(0x1b5)]:{const {token:_0x4764d7,oldSourceRangeInfo:_0x10dd3d,dataRangeInfo:_0x4ae064,targetCellInfo:_0x499cd4}=_0x21b501,{unitId:_0x29cd89,subUnitId:_0x1becda}=_0x10dd3d||{};_0x29cd89&&_0x1becda&&_0x4764d7&&this['removeSourceRangeChange'](_0x29cd89,_0x1becda,_0x4764d7),_0x4ae064&&_0x499cd4&&this['handleSourceRangeChange'](_0x4764d7,_0x4ae064,_0x499cd4);}break;}});}['_subjectFieldsCollectionChange'](){const _0x295a17=_0x5565f1;this[_0x295a17(0x2a6)]['fieldsCollectionChange$'][_0x295a17(0x1de)](_0x19185f=>{const _0x13eb00=_0x295a17;Object[_0x13eb00(0x37a)](_0x19185f)['forEach'](_0x5c91c1=>{const _0x4f899f=_0x13eb00,_0x298f39=this[_0x4f899f(0x2a6)]['getTargetByPivotId'](_0x5c91c1);if(_0x298f39){const _0xce9688=this[_0x4f899f(0x2a6)]['getPivotTableConfig'](_0x298f39==null?void 0x0:_0x298f39[_0x4f899f(0x32c)],_0x298f39==null?void 0x0:_0x298f39[_0x4f899f(0x271)],_0x5c91c1);_0xce9688&&(this[_0x4f899f(0x259)](_0x5c91c1,_0xce9688[_0x4f899f(0x2b1)],_0xce9688[_0x4f899f(0x1d0)]),this[_0x4f899f(0x185)]([{'unitId':_0x298f39[_0x4f899f(0x32c)],'subUnitId':_0x298f39['subUnitId'],'token':_0x5c91c1}]));}});});}[_0x5565f1(0x134)](){const _0x5c9c24=_0x5565f1;this[_0x5c9c24(0x2a6)][_0x5c9c24(0x315)][_0x5c9c24(0x1de)](_0x3cb3f6=>{const _0x3571bd=_0x5c9c24,{unitId:_0x4514f1,subUnitId:_0x20c783,pivotTableId:_0xe4d2b9}=_0x3cb3f6;_0x4514f1&&_0x20c783&&_0xe4d2b9&&this[_0x3571bd(0x185)]([{'unitId':_0x4514f1,'subUnitId':_0x20c783,'token':_0xe4d2b9}]);});}[_0x5565f1(0x185)](_0x325cf3){const _0x2f11f5=_0x5565f1,_0xf801ee={};_0x325cf3[_0x2f11f5(0x350)](_0x6868d3=>{var _0x11dbd1,_0x107367;const {unitId:_0x15b89e,subUnitId:_0x49c492,token:_0x33d91d}=_0x6868d3;_0xf801ee[_0x15b89e]=(_0x11dbd1=_0xf801ee[_0x15b89e])!=null?_0x11dbd1:{},_0xf801ee[_0x15b89e][_0x49c492]=(_0x107367=_0xf801ee[_0x15b89e][_0x49c492])!=null?_0x107367:{},_0xf801ee[_0x15b89e][_0x49c492][_0x33d91d]=!0x0;}),this[_0x2f11f5(0x393)]['executeCommand'](_0x431f75['id'],_0xf801ee);}[_0x5565f1(0x338)](_0x3cf6f2,_0x588bb8,_0x57340d){const _0x2d2f15=_0x5565f1;this[_0x2d2f15(0x2ea)][_0x2d2f15(0x193)](_0x3cf6f2,_0x588bb8,[_0x57340d]);}[_0x5565f1(0x259)](_0x6e7e0e,_0x437f65,_0x374a1b){const _0x5671a3=_0x5565f1,{unitId:_0x3c5831,subUnitId:_0x3ca1be}=_0x437f65;this[_0x5671a3(0x2ea)]['has'](_0x374a1b[_0x5671a3(0x32c)],_0x374a1b[_0x5671a3(0x271)],_0x6e7e0e)&&this[_0x5671a3(0x338)](_0x3c5831,_0x3ca1be,_0x6e7e0e);const _0x74376b={'sheetId':_0x3ca1be,..._0x437f65};this['_featureCalculationManagerService'][_0x5671a3(0x1ee)](_0x374a1b['unitId'],_0x374a1b['subUnitId'],_0x6e7e0e,{'unitId':_0x374a1b[_0x5671a3(0x32c)],'subUnitId':_0x374a1b[_0x5671a3(0x271)],'dependencyRanges':[_0x74376b],'getDirtyData':(_0x4b5d88,_0x256e21)=>{const _0x1d980b=_0x5671a3,_0xae2831=this['_sheetsPivotDataSourceModel'],_0x5cd3bd=_0xae2831['getTargetByPivotId'](_0x6e7e0e);if(!_0x5cd3bd)return _0x486e46();const {unitId:_0x386db5,subUnitId:_0x58d6d7}=_0x5cd3bd,_0x5add35=_0x46eac0(_0x4b5d88,_0x256e21,_0x437f65);if(_0x5add35[_0x1d980b(0x37f)]>0x0){const _0x2c2f1a=_0xae2831[_0x1d980b(0x312)](_0x3c5831,_0x6e7e0e),_0x80cec=_0x2c2f1a[_0x1d980b(0x35a)](),_0x4a1279=this[_0x1d980b(0x125)](_0x437f65['unitId'],_0x437f65['subUnitId'],_0x256e21),_0x2fad8a={},_0x5b2323=this[_0x1d980b(0x2a6)][_0x1d980b(0x40e)](_0x386db5)[_0x1d980b(0x239)]()||_0x16b0d8['getAutoDisplayName'],_0x4aced9=[];for(const _0x23df84 of _0x5add35){const _0x4c9f48=_0x23df84-(_0x437f65[_0x1d980b(0x234)][_0x1d980b(0x421)]||0x0),_0xe1cc7f=_0x80cec[_0x4c9f48];_0x4aced9[_0x1d980b(0x254)](_0xe1cc7f),_0x2fad8a[_0xe1cc7f]=_0x2c2f1a[_0x1d980b(0x27e)](_0xe1cc7f)['getName'](),_0xae2831['getDataFieldManager'](_0x3c5831)[_0x1d980b(0x3d2)](_0xe1cc7f,_0x437f65,_0x4c9f48,_0x4a1279);}_0x2c2f1a[_0x1d980b(0x2f0)](_0x4aced9)[_0x1d980b(0x350)](_0x330d7d=>{const _0x4f8744=_0x1d980b,[_0x2e9240,_0x3ddacb]=_0x330d7d,_0x198c13=_0x2c2f1a[_0x4f8744(0x27e)](_0x2e9240),_0x5477e4=_0x2c2f1a[_0x4f8744(0x27e)](_0x3ddacb);_0x198c13&&_0x5477e4&&_0x198c13[_0x4f8744(0x116)](_0x5477e4);}),_0x2c2f1a[_0x1d980b(0x20c)]();const _0x26f44e=_0xae2831[_0x1d980b(0x233)](_0x6e7e0e);if(_0x26f44e){_0x2fd152(_0x26f44e,_0x2fad8a,_0x5b2323),_0x26f44e['setDirty'](!0x0);const _0x1493e2=_0x26f44e[_0x1d980b(0x3c2)](),_0x46d416=_0xae2831[_0x1d980b(0x215)](_0x386db5,_0x58d6d7,_0x6e7e0e),_0x42f4fb=_0xae2831[_0x1d980b(0x40e)](_0x3c5831)[_0x1d980b(0x1d4)]();_0xae2831['updateView'](_0x386db5,_0x58d6d7,_0x1e0edb['Set'],_0x6e7e0e,_0x1493e2,_0x46d416,_0x42f4fb,!0x0);}}return this[_0x1d980b(0x316)](_0x386db5,_0x58d6d7,_0x6e7e0e);}});}[_0x5565f1(0x125)](_0x32b92f,_0x2c9c79,_0x29a71e){var _0x1156b3,_0x46bb76;const {arrayFormulaCellData:_0x5d2a6a,unitData:_0x3cf7db}=_0x29a71e,_0x3b10df=(_0x1156b3=_0x5d2a6a==null?void 0x0:_0x5d2a6a[_0x32b92f])==null?void 0x0:_0x1156b3[_0x2c9c79],_0x1d3c24=(_0x46bb76=_0x3cf7db==null?void 0x0:_0x3cf7db[_0x32b92f])==null?void 0x0:_0x46bb76[_0x2c9c79];return{'arrayFormulaCellDataMatrix':_0x3b10df,'unitDataMatrix':_0x1d3c24};}[_0x5565f1(0x316)](_0x57c174,_0x225ac9,_0x3a5ab4){const _0x329527=_0x5565f1,_0x2466c8=this[_0x329527(0x2a6)][_0x329527(0x22f)](_0x57c174,_0x225ac9,_0x3a5ab4),_0x2d352a=[],_0x20027c=new _0x49f92f[(_0x329527(0x38d))]();if(_0x2466c8){const {rangeCache:_0x141fe9,matrix:_0x30bdf6,oldRangeCache:_0x18862e,oldMatrix:_0xc676df}=_0x2466c8,_0x1b4629=_0x163af3(_0x18862e),_0x22f090=_0x163af3(_0x141fe9);_0x2d352a[_0x329527(0x254)](..._0x22f090,..._0x1b4629),_0xc676df&&_0x18862e&&_0x1b4629[_0x329527(0x350)](_0x1dcfdf=>{const _0x38ac30=_0x329527;for(let _0x4baf7d=_0x1dcfdf[_0x38ac30(0x34c)];_0x4baf7d<=_0x1dcfdf[_0x38ac30(0x2b0)];_0x4baf7d++)for(let _0x299ec6=_0x1dcfdf[_0x38ac30(0x421)];_0x299ec6<=_0x1dcfdf['endColumn'];_0x299ec6++)_0x20027c[_0x38ac30(0x147)](_0x4baf7d,_0x299ec6);}),_0x30bdf6&&_0x22f090&&_0x22f090[_0x329527(0x350)](_0xd6cb8c=>{const _0x5a144f=_0x329527;for(let _0x1a21f9=_0xd6cb8c[_0x5a144f(0x34c)];_0x1a21f9<=_0xd6cb8c[_0x5a144f(0x2b0)];_0x1a21f9++)for(let _0x166e5c=_0xd6cb8c[_0x5a144f(0x421)];_0x166e5c<=_0xd6cb8c['endColumn'];_0x166e5c++)_0x20027c[_0x5a144f(0x3c9)](_0x1a21f9,_0x166e5c,_0x30bdf6[_0x5a144f(0x1b6)](_0x1a21f9,_0x166e5c));});}const _0x422cc4={};return _0x422cc4[_0x57c174]={[_0x225ac9]:_0x597c44(_0x2d352a)},{'runtimeCellData':{[_0x57c174]:{[_0x225ac9]:_0x20027c}},'dirtyRanges':_0x422cc4};}['dispose'](){}};_0x4ae2a1=_0xb64e15([_0x1dcd91(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x120)])),_0x1dcd91(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x3a3769[_0x5565f1(0x16c)])),_0x1dcd91(0x2,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x3fc)])),_0x1dcd91(0x3,_0x49f92f['Inject'](_0x3a3769[_0x5565f1(0x337)])),_0x1dcd91(0x4,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x22e)]))],_0x4ae2a1);var _0x3ae96d=Object[_0x5565f1(0x14a)],_0x2eac6c=(_0x12cf75,_0x4798ed,_0x3e3c03,_0x30fb66)=>{const _0x5dfd84=_0x5565f1;for(var _0x53ed2a=_0x30fb66>0x1?void 0x0:_0x30fb66?_0x3ae96d(_0x4798ed,_0x3e3c03):_0x4798ed,_0x1dbb22=_0x12cf75[_0x5dfd84(0x37f)]-0x1,_0x51d6d5;_0x1dbb22>=0x0;_0x1dbb22--)(_0x51d6d5=_0x12cf75[_0x1dbb22])&&(_0x53ed2a=_0x51d6d5(_0x53ed2a)||_0x53ed2a);return _0x53ed2a;},_0x54d871=(_0x3a53f6,_0x2efefa)=>(_0x3688ae,_0x13835c)=>_0x2efefa(_0x3688ae,_0x13835c,_0x3a53f6);let _0x41ad13=class extends _0x49f92f[_0x5565f1(0x425)]{constructor(_0x3e99cb,_0x299731,_0x5369c1,_0x177eca){const _0x24773d=_0x5565f1;super(),_0x246801(this,_0x24773d(0x322),new _0x49f92f['DisposableCollection']()),(this[_0x24773d(0x23b)]=_0x3e99cb,this[_0x24773d(0x264)]=_0x299731,this[_0x24773d(0x3ec)]=_0x5369c1,this[_0x24773d(0x3b2)]=_0x177eca,this['_initClearSelectionCommandInterceptor']());}[_0x5565f1(0x188)](){const _0x5c7731=_0x5565f1;this[_0x5c7731(0x3ae)](this[_0x5c7731(0x264)][_0x5c7731(0x3d8)]({'getMutations':_0x26484e=>{const _0x58b467=_0x5c7731;if(_0x26484e['id']===_0x29b248[_0x58b467(0x306)]['id']||_0x26484e['id']===_0x29b248[_0x58b467(0x186)]['id']){const _0xb44a82=[],_0x1ecf62=[],_0x1d29b4=this[_0x58b467(0x3ec)]['getCurrentSelections']()[_0x58b467(0x19f)](_0x4b090e=>_0x4b090e[_0x58b467(0x234)]),_0x3637c6=_0x29b248['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x3637c6)return{'redos':[],'undos':[]};const {unitId:_0x168f5e,subUnitId:_0x3bd67b}=_0x3637c6,_0x4b8f3e={},_0x20c9e4=this[_0x58b467(0x3b2)][_0x58b467(0x1dd)](_0x168f5e,_0x3bd67b);if(_0x20c9e4!=null&&_0x20c9e4['size'])for(const [_0x4a7424,_0x32e54c]of _0x20c9e4){const {unitId:_0x3aae9e,subUnitId:_0x5edd1e,row:_0x34fb3a,col:_0xfacea2}=_0x32e54c[_0x58b467(0x1d0)];_0x3aae9e===_0x3637c6[_0x58b467(0x32c)]&&_0x5edd1e===_0x3637c6[_0x58b467(0x271)]&&(_0x4b8f3e[_0x34fb3a+'-'+_0xfacea2]=_0x4a7424);}return _0x1d29b4&&_0x3637c6&&_0x1d29b4[_0x58b467(0x350)](_0x23223b=>{const _0x1600c2=_0x58b467;_0x49f92f[_0x1600c2(0x3e7)][_0x1600c2(0x3a7)](_0x23223b,(_0x3e9dfe,_0x56b649)=>{const _0x4699f9=_0x1600c2,_0x2bab01=_0x3e9dfe+'-'+_0x56b649;if(_0x4b8f3e[_0x2bab01]){const _0x5aebb5=_0x4b8f3e[_0x2bab01];_0xb44a82[_0x4699f9(0x254)]({'id':_0xaf0ab['id'],'params':{'unitId':_0x168f5e,'subUnitId':_0x3bd67b,'pivotTableId':_0x5aebb5}});const _0x187b44=this['_sheetsPivotTableConfigModel'][_0x4699f9(0x312)](_0x168f5e,_0x5aebb5),_0x55b8ca=this[_0x4699f9(0x3b2)][_0x4699f9(0x215)](_0x168f5e,_0x3bd67b,_0x5aebb5);_0x1ecf62[_0x4699f9(0x254)]({'id':_0x1eb047['id'],'params':{'unitId':_0x168f5e,'subUnitId':_0x3bd67b,'pivotTableId':_0x5aebb5,'pivotTableConfig':_0x55b8ca,'collectionConfig':_0x187b44}});}});}),{'redos':_0xb44a82,'undos':_0x1ecf62};}return{'redos':[],'undos':[]};}}));}};_0x41ad13=_0x2eac6c([_0x54d871(0x0,_0x49f92f['IUniverInstanceService']),_0x54d871(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x290)])),_0x54d871(0x2,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x3f7)])),_0x54d871(0x3,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x11d)]))],_0x41ad13);var _0x320c5d=Object[_0x5565f1(0x14a)],_0x37a5f8=(_0x4e75f7,_0x1ad5bc,_0x4c7bd7,_0xcdd251)=>{const _0xd2f273=_0x5565f1;for(var _0x2259f1=_0xcdd251>0x1?void 0x0:_0xcdd251?_0x320c5d(_0x1ad5bc,_0x4c7bd7):_0x1ad5bc,_0x11f10c=_0x4e75f7[_0xd2f273(0x37f)]-0x1,_0x572d1f;_0x11f10c>=0x0;_0x11f10c--)(_0x572d1f=_0x4e75f7[_0x11f10c])&&(_0x2259f1=_0x572d1f(_0x2259f1)||_0x2259f1);return _0x2259f1;},_0x1b7c82=(_0x2cac88,_0x14b60f)=>(_0x48d6b1,_0x1e6bb9)=>_0x14b60f(_0x48d6b1,_0x1e6bb9,_0x2cac88);let _0x4b4948=class extends _0x49f92f['Disposable']{constructor(_0x349f04,_0x36aa25,_0x35c4ab,_0x447d9f,_0x4f6bd3){const _0x5d5e3d=_0x5565f1;super(),this['_sheetInterceptorService']=_0x349f04,this[_0x5d5e3d(0x27c)]=_0x36aa25,this[_0x5d5e3d(0x23b)]=_0x35c4ab,this[_0x5d5e3d(0x3b2)]=_0x447d9f,this['_sheetsPivotTableService']=_0x4f6bd3,this['_initCommandInterceptListener']();}[_0x5565f1(0x3c3)](_0x4a7e58,_0x4ecbfc,_0x5f0b73){const _0x2b349d=_0x5565f1,{pageView:_0x535b2b,cornerView:_0x100673,rowView:_0x539f33,colView:_0x128a19,dataView:_0x26b4bf}=_0x4ecbfc,_0x1fdc61=_0x4a7e58;let _0x26279d;if(_0x5f0b73)_0x26279d=[..._0x3ee25d(_0x1fdc61)];else{const _0x4ef999=_0x290256(_0x1fdc61,_0x535b2b,!0x0),_0x1793cc=_0x535b2b['lastRow']>=0x0?_0x535b2b[_0x2b349d(0x204)]+0x1:0x0,_0x1bc5e2=_0x100673[_0x2b349d(0x12d)],_0x2f5525=_0x100673[_0x2b349d(0x32b)],_0x1047ef=_0x4ef999[_0x2b349d(0x37f)]>0x0?_0x29054f:0x0,_0x15adb4=_0x290256({'row':_0x1fdc61[_0x2b349d(0x1b1)]+_0x1793cc+_0x1047ef,'col':_0x1fdc61[_0x2b349d(0x341)]},_0x100673,!0x1,!0x1),_0x524c80=_0x290256({'row':_0x1fdc61[_0x2b349d(0x1b1)]+_0x1793cc+_0x1047ef+_0x1bc5e2,'col':_0x1fdc61['col']},_0x539f33,!0x1,!0x0),_0x3c24bf=_0x290256({'row':_0x1fdc61['row']+_0x1793cc+_0x1047ef,'col':_0x1fdc61[_0x2b349d(0x341)]+_0x2f5525},_0x128a19,!0x1,!0x0),_0x2ca9dd=_0x290256({'row':_0x1fdc61[_0x2b349d(0x1b1)]+_0x1793cc+_0x1047ef+_0x1bc5e2,'col':_0x1fdc61[_0x2b349d(0x341)]+_0x2f5525},_0x26b4bf,!0x1,!0x0);_0x26279d=[..._0x4ef999,..._0x15adb4,..._0x524c80,..._0x3c24bf,..._0x2ca9dd];}return _0x26279d;}[_0x5565f1(0x3ad)](){const _0x1c769d=_0x5565f1;this[_0x1c769d(0x3ae)](this[_0x1c769d(0x262)][_0x1c769d(0x1fe)][_0x1c769d(0x269)](this[_0x1c769d(0x262)][_0x1c769d(0x1fe)][_0x1c769d(0x289)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x127777,_0x108474)=>{const _0x3c71e7=_0x1c769d,{cellInfo:_0x1a984d,view:_0x5dbfa4,isEmpty:_0x48b5ed}=_0x108474,_0x4ef924=_0x1a984d,{unitId:_0x720a5c,subUnitId:_0x41dda9}=_0x4ef924,_0x477b59=this[_0x3c71e7(0x3c3)](_0x1a984d,_0x5dbfa4,_0x48b5ed),_0x3048f5=this[_0x3c71e7(0x264)][_0x3c71e7(0x3c7)]({'unitId':_0x720a5c,'subUnitId':_0x41dda9,'ranges':_0x477b59}),_0xd6d6bc=_0x59e5a3(this[_0x3c71e7(0x27c)],_0x720a5c,_0x41dda9,_0x477b59);_0xd6d6bc[_0x3c71e7(0x3cc)]&&(_0x3048f5[_0x3c71e7(0x2a5)][_0x3c71e7(0x254)](_0xd6d6bc[_0x3c71e7(0x3d3)]),_0x3048f5[_0x3c71e7(0x206)][_0x3c71e7(0x254)](_0xd6d6bc[_0x3c71e7(0x3e1)]));const _0x489aa6=this[_0x3c71e7(0x2bf)](_0x5dbfa4,_0x1a984d);return _0x3048f5['redos'][_0x3c71e7(0x254)](..._0x489aa6[_0x3c71e7(0x2a5)]),_0x3048f5[_0x3c71e7(0x206)][_0x3c71e7(0x254)](..._0x489aa6[_0x3c71e7(0x206)]),{'redos':_0x3048f5[_0x3c71e7(0x2a5)],'undos':_0x3048f5['undos']};}}));}[_0x5565f1(0x2bf)](_0x24a31d,_0x5f38fa){const _0x5ddbf5=_0x5565f1,{col:_0x3295f5,unitId:_0x3df09d,subUnitId:_0x41b817}=_0x5f38fa,_0x493897=[],_0x127daf=[],_0x38f67a=_0x29b248[_0x5ddbf5(0x1a6)](this['_univerInstanceService'],{'unitId':_0x3df09d,'subUnitId':_0x41b817});if(!_0x5f38fa||!_0x24a31d||!_0x38f67a)return{'undos':_0x127daf,'redos':_0x493897};const _0x5ccd73=this['_sheetsPivotTableConfigModel'][_0x5ddbf5(0x191)](),{colView:_0x8758eb,dataView:_0x4d6e48,cornerView:_0x4050c5,rowView:_0xda2a1c,formatMap:_0x4bfad1}=_0x24a31d,_0x258f90=_0x19883d(_0x8758eb,_0x5ccd73,!0x0,_0x4bfad1),_0x28239e=_0x19883d(_0xda2a1c,_0x5ccd73,!0x1,_0x4bfad1),_0x5f05c6=_0x5aa41d(_0x4d6e48),_0x59d63b=_0x308247(_0x4050c5),{worksheet:_0x3e889e}=_0x38f67a;if(typeof window<'u'&&window[_0x5ddbf5(0x31e)]){const _0x3b2cba=_0x276b80[_0x5ddbf5(0x158)]({..._0x136b96[_0x5ddbf5(0x308)]}),_0x58e82e=_0x276b80['FontCache'][_0x5ddbf5(0x1ec)](_0x258f90,_0x3b2cba)[_0x5ddbf5(0x314)]+0x10,_0x5e6cde=_0x276b80[_0x5ddbf5(0x241)][_0x5ddbf5(0x1ec)](_0x5f05c6,_0x3b2cba)[_0x5ddbf5(0x314)],_0x5edf47=Math[_0x5ddbf5(0x43b)](Math[_0x5ddbf5(0x3b0)](_0x58e82e,_0x5e6cde))+0x10,_0x2d2b52=Math['floor'](_0x276b80[_0x5ddbf5(0x241)][_0x5ddbf5(0x1ec)](_0x28239e,_0x3b2cba)[_0x5ddbf5(0x314)]),_0x25ddee=Math[_0x5ddbf5(0x43b)](_0x276b80['FontCache'][_0x5ddbf5(0x1ec)](_0x59d63b,_0x3b2cba)['width']),_0x34d4ad=Math[_0x5ddbf5(0x3b0)](_0x2d2b52,_0x25ddee,0x28)+0xc,_0x33912e=_0x8758eb['colCount']+_0x4050c5[_0x5ddbf5(0x32b)],_0x55e271={},_0x3c7b8b={};for(let _0x240d5e=_0x3295f5;_0x240d5e<_0x3295f5+_0x33912e;_0x240d5e++){const _0x11099e=_0x3e889e['getColumnWidth'](_0x240d5e);_0x55e271[_0x240d5e]=_0x11099e,_0x240d5e-_0x3295f5<_0x4050c5[_0x5ddbf5(0x32b)]?_0x3c7b8b[_0x240d5e-_0x3295f5]=_0x34d4ad:_0x3c7b8b[_0x240d5e-_0x3295f5]=_0x5edf47;}_0x493897[_0x5ddbf5(0x254)]({'id':_0x29b248['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x41b817,'unitId':_0x3df09d,'ranges':[{'startColumn':_0x3295f5,'endColumn':_0x3295f5+_0x33912e-0x1,'startRow':0x0,'endRow':_0x3e889e[_0x5ddbf5(0x2fb)]()-0x1}],'colWidth':_0x3c7b8b}}),_0x127daf[_0x5ddbf5(0x254)]({'id':_0x29b248[_0x5ddbf5(0x38b)]['id'],'params':{'subUnitId':_0x41b817,'unitId':_0x3df09d,'ranges':[{'startColumn':_0x3295f5,'endColumn':_0x3295f5+_0x33912e-0x1,'startRow':0x0,'endRow':_0x3e889e['getRowCount']()-0x1}],'colWidth':_0x55e271}});}return{'undos':_0x127daf,'redos':_0x493897};}};_0x4b4948=_0x37a5f8([_0x1b7c82(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x290)])),_0x1b7c82(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x22e)])),_0x1b7c82(0x2,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x26f)])),_0x1b7c82(0x3,_0x49f92f['Inject'](_0x47953f['SheetsPivotTableConfigModel'])),_0x1b7c82(0x4,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x2c5)]))],_0x4b4948);var _0xa5fc37=Object[_0x5565f1(0x14a)],_0x2cb81c=(_0x7382fb,_0x12b738,_0x4ded8f,_0x15ebfa)=>{const _0x147da2=_0x5565f1;for(var _0x179941=_0x15ebfa>0x1?void 0x0:_0x15ebfa?_0xa5fc37(_0x12b738,_0x4ded8f):_0x12b738,_0x2dca46=_0x7382fb[_0x147da2(0x37f)]-0x1,_0x2fd620;_0x2dca46>=0x0;_0x2dca46--)(_0x2fd620=_0x7382fb[_0x2dca46])&&(_0x179941=_0x2fd620(_0x179941)||_0x179941);return _0x179941;},_0x35882e=(_0x4453c3,_0x3bc341)=>(_0x4770fa,_0x44714e)=>_0x3bc341(_0x4770fa,_0x44714e,_0x4453c3);let _0x3a7d82=class extends _0x49f92f[_0x5565f1(0x425)]{constructor(_0x299d1f,_0x2ccd91,_0x14b58f,_0x1f0273,_0x4eb519,_0x3a2607,_0x5c6bef){const _0x49e031=_0x5565f1;super(),_0x246801(this,_0x49e031(0x322),new _0x49f92f[(_0x49e031(0x176))]()),(this[_0x49e031(0x27c)]=_0x299d1f,this['_refRangeService']=_0x2ccd91,this['_commandService']=_0x14b58f,this[_0x49e031(0x23b)]=_0x1f0273,this['_sheetsPivotTableConfigModel']=_0x4eb519,this[_0x49e031(0x299)]=_0x3a2607,this[_0x49e031(0x264)]=_0x5c6bef,this['_onRefRangeChange']());}['_onRefRangeChange'](){const _0x3830bb=_0x5565f1,_0x55c65d=(_0x263783,_0x1543e1)=>{const _0x256925=_0xe5fb,_0x4669a4=this[_0x256925(0x23b)][_0x256925(0x244)](_0x49f92f[_0x256925(0x1b7)]['UNIVER_SHEET']);if(!_0x4669a4||!(_0x4669a4==null?void 0x0:_0x4669a4['getSheetBySheetId'](_0x1543e1)))return;this[_0x256925(0x322)]['dispose']();const _0x2fea6f=_0x10938d=>this[_0x256925(0x11c)](_0x10938d,_0x263783,_0x1543e1),_0x1c06fe=this[_0x256925(0x3b2)]['getSubUnitPivotConfigs'](_0x263783,_0x1543e1);if(!(_0x1c06fe!=null&&_0x1c06fe[_0x256925(0x422)]))return;Array[_0x256925(0x3b7)](_0x1c06fe[_0x256925(0x159)]())[_0x256925(0x19f)](_0x384a21=>{const _0x42aeae=_0x256925,{row:_0x297037,col:_0x69bad6}=_0x384a21['targetCellInfo'];return _0x49f92f[_0x42aeae(0x42d)](_0x297037,_0x69bad6);})[_0x256925(0x350)](_0x107c99=>{const _0xc01522=_0x256925;this[_0xc01522(0x322)][_0xc01522(0x436)](this[_0xc01522(0x31d)]['registerRefRange'](_0x107c99,_0x2fea6f,_0x263783,_0x1543e1));});},_0x146c45=()=>{const _0x3b4d87=_0xe5fb,_0x3fe420=this[_0x3b4d87(0x23b)][_0x3b4d87(0x244)](_0x49f92f['UniverInstanceType'][_0x3b4d87(0x3da)]);if(_0x3fe420){const _0x25ed03=_0x3fe420[_0x3b4d87(0x3ce)]();if(!_0x25ed03)return;_0x55c65d(_0x3fe420[_0x3b4d87(0x1b4)](),_0x25ed03[_0x3b4d87(0x197)]());}};this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x52e9db=>{const _0x4d3a68=_0xe5fb;if(_0x52e9db['id']===_0x29b248['SetWorksheetActiveOperation']['id']){const _0xd71d16=_0x52e9db[_0x4d3a68(0x2c4)],_0x40629=_0xd71d16[_0x4d3a68(0x271)],_0x45e279=_0xd71d16[_0x4d3a68(0x32c)];if(!_0x40629||!_0x45e279)return;_0x55c65d(_0x45e279,_0x40629);}})),this[_0x3830bb(0x3ae)](this[_0x3830bb(0x3b2)]['pivotInitCompleted$'][_0x3830bb(0x1de)](_0x361d53=>{_0x361d53&&_0x146c45();})),this[_0x3830bb(0x3ae)](this[_0x3830bb(0x3b2)][_0x3830bb(0x392)]['subscribe'](_0x4410ab=>{const _0x4ca82a=_0x3830bb,_0x4cb489=_0x29b248[_0x4ca82a(0x1a6)](this[_0x4ca82a(0x23b)]);if(!_0x4cb489)return;const {unitId:_0x1b791d,subUnitId:_0x52b571}=_0x4cb489,{unitId:_0x1413a0,subUnitId:_0xc19790}=_0x4410ab;_0x1b791d!==_0x1413a0||_0x52b571!==_0xc19790||_0x55c65d(_0x1b791d,_0x52b571);})),_0x146c45();}[_0x5565f1(0x11c)](_0xe27e95,_0xad0f36,_0x24a889){const _0x5383d5=_0x5565f1;switch(_0xe27e95['id']){case _0x29b248[_0x5383d5(0x3bb)]['id']:return this[_0x5383d5(0x31b)](_0xe27e95[_0x5383d5(0x2c4)],_0xad0f36,_0x24a889);}return{'redos':[],'undos':[]};}[_0x5565f1(0x31b)](_0x1bb408,_0xe8914a,_0x2e8e65){const _0x5259b2=_0x5565f1,{fromRange:_0x3dc1c8,toRange:_0x46a411}=_0x1bb408,_0x229e52=[],_0x3dd051=[],_0x4d913e=_0x29b248[_0x5259b2(0x1a6)](this[_0x5259b2(0x23b)]);if(!_0x4d913e)return{'undos':_0x3dd051,'redos':_0x229e52};if(_0xe8914a!==_0x4d913e['unitId']||_0x2e8e65!==_0x4d913e[_0x5259b2(0x271)])return{'undos':_0x3dd051,'redos':_0x229e52};const _0x19aad5=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0xe8914a,_0x2e8e65);if(_0x19aad5!=null&&_0x19aad5[_0x5259b2(0x422)])for(const [_0x2d4241,_0x578649]of _0x19aad5){const {unitId:_0x154e02,subUnitId:_0x5b80a3,row:_0x444318,col:_0x45f763}=_0x578649[_0x5259b2(0x1d0)];if(_0x154e02===_0x4d913e[_0x5259b2(0x32c)]&&_0x5b80a3===_0x4d913e[_0x5259b2(0x271)]){const _0x2803b3=_0x49f92f[_0x5259b2(0x42d)](_0x444318,_0x45f763);if(_0x49f92f[_0x5259b2(0x23f)]['intersects'](_0x2803b3,_0x3dc1c8)){const _0x2bec18=_0x444318-_0x3dc1c8[_0x5259b2(0x34c)],_0x3aac11=_0x45f763-_0x3dc1c8[_0x5259b2(0x421)],_0x25db08={'row':_0x46a411[_0x5259b2(0x34c)]+_0x2bec18,'col':_0x46a411[_0x5259b2(0x421)]+_0x3aac11};_0x229e52[_0x5259b2(0x254)]({'id':_0xd66fe3['id'],'params':{'unitId':_0x154e02,'subUnitId':_0x5b80a3,'pivotTableId':_0x2d4241,'targetCellPosition':_0x25db08}}),_0x3dd051[_0x5259b2(0x254)]({'id':_0xd66fe3['id'],'params':{'unitId':_0x154e02,'subUnitId':_0x5b80a3,'pivotTableId':_0x2d4241,'targetCellPosition':{'row':_0x444318,'col':_0x45f763}}});const _0x12afa4=_0x25db08['row']-_0x444318,_0xb2042b=_0x25db08['col']-_0x45f763,_0x53435d=[],_0x592499=this[_0x5259b2(0x299)][_0x5259b2(0x2f4)](_0x154e02,_0x5b80a3,_0x2d4241),_0xf30cfc=_0x592499==null?void 0x0:_0x592499['rangesInfo'];if(_0xf30cfc){Object[_0x5259b2(0x37a)](_0xf30cfc)[_0x5259b2(0x350)](_0x4acccf=>{_0xf30cfc[_0x4acccf]['forEach'](_0x26ad49=>{const _0x50ce81=_0xe5fb,_0x3e206d={..._0x26ad49};_0x3e206d['startRow']=_0x26ad49['startRow']+_0x12afa4,_0x3e206d['endRow']=_0x26ad49['endRow']+_0x12afa4,_0x3e206d[_0x50ce81(0x421)]=_0x26ad49[_0x50ce81(0x421)]+_0xb2042b,_0x3e206d['endColumn']=_0x26ad49[_0x50ce81(0x39d)]+_0xb2042b,_0x53435d[_0x50ce81(0x254)](_0x3e206d);});});const _0xc334f6=this['_sheetInterceptorService']['generateMutationsByRanges']({'unitId':_0x154e02,'subUnitId':_0x5b80a3,'ranges':_0x53435d});_0x229e52[_0x5259b2(0x254)](..._0xc334f6['redos']),_0x3dd051[_0x5259b2(0x254)](..._0xc334f6[_0x5259b2(0x206)]);const _0x24aae6=_0x59e5a3(this[_0x5259b2(0x27c)],_0x154e02,_0x5b80a3,_0x53435d);_0x24aae6[_0x5259b2(0x3cc)]&&(_0x229e52['push'](_0x24aae6['setRangeValueRedoMutation']),_0x3dd051[_0x5259b2(0x254)](_0x24aae6['setRangeValueUndoMutation']));}}}}return{'redos':_0x229e52,'undos':_0x3dd051};}};_0x3a7d82=_0x2cb81c([_0x35882e(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x22e)])),_0x35882e(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x249)])),_0x35882e(0x2,_0x49f92f[_0x5565f1(0x3fc)]),_0x35882e(0x3,_0x49f92f[_0x5565f1(0x26f)]),_0x35882e(0x4,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x11d)])),_0x35882e(0x5,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x3c8)])),_0x35882e(0x6,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x290)]))],_0x3a7d82);var _0xeae03b=Object[_0x5565f1(0x14a)],_0x253f93=(_0x5de4d1,_0x44725a,_0x2ec2e0,_0x35ed0e)=>{const _0x4d8145=_0x5565f1;for(var _0x1b41e0=_0x35ed0e>0x1?void 0x0:_0x35ed0e?_0xeae03b(_0x44725a,_0x2ec2e0):_0x44725a,_0x52b48f=_0x5de4d1[_0x4d8145(0x37f)]-0x1,_0x558bf3;_0x52b48f>=0x0;_0x52b48f--)(_0x558bf3=_0x5de4d1[_0x52b48f])&&(_0x1b41e0=_0x558bf3(_0x1b41e0)||_0x1b41e0);return _0x1b41e0;},_0x5abc3e=(_0x488f20,_0x405ecd)=>(_0x276014,_0x5b48ed)=>_0x405ecd(_0x276014,_0x5b48ed,_0x488f20);let _0x4bdaba=class extends _0x49f92f['Disposable']{constructor(_0x27e965,_0x28d00e){const _0x1b57b5=_0x5565f1;super(),this['_sheetInterceptorService']=_0x27e965,this[_0x1b57b5(0x3b2)]=_0x28d00e,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x14355b=_0x5565f1;this[_0x14355b(0x3ae)](this[_0x14355b(0x264)][_0x14355b(0x3d8)]({'getMutations':_0x1e3e27=>{const _0x1c16c1=_0x14355b;if(_0x1e3e27['id']===_0x29b248[_0x1c16c1(0x23e)]['id']){const _0x20bb48=[],_0x3823ab=[],_0xb9f334=_0x1e3e27[_0x1c16c1(0x2c4)],{unitId:_0x13da6f,subUnitId:_0x13e479}=_0xb9f334;if(!_0x13da6f||!_0x13e479)return{'undos':_0x3823ab,'redos':_0x20bb48};const _0x1e115f=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x13da6f,_0x13e479);if(_0x1e115f!=null&&_0x1e115f[_0x1c16c1(0x422)])for(const [_0x4d5aad,_0x2a9860]of _0x1e115f){_0x20bb48[_0x1c16c1(0x254)]({'id':_0xaf0ab['id'],'params':{'unitId':_0x13da6f,'subUnitId':_0x13e479,'pivotTableId':_0x4d5aad}});const _0x50ee74={...this['_sheetsPivotTableConfigModel']['getCollection'](_0x13da6f,_0x4d5aad)};_0x3823ab[_0x1c16c1(0x254)]({'id':_0x1eb047['id'],'params':{'unitId':_0x13da6f,'subUnitId':_0x13e479,'pivotTableId':_0x4d5aad,'pivotTableConfig':_0x2a9860,'collectionConfig':_0x50ee74}});}return{'redos':_0x20bb48,'undos':_0x3823ab};}return{'redos':[],'undos':[]};}}));}};_0x4bdaba=_0x253f93([_0x5abc3e(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x29b248[_0x5565f1(0x290)])),_0x5abc3e(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x11d)]))],_0x4bdaba);var _0x384119=Object[_0x5565f1(0x14a)],_0x430fd5=(_0x58ab96,_0x49258d,_0x296f6a,_0x1e86fb)=>{for(var _0x4f2118=_0x1e86fb>0x1?void 0x0:_0x1e86fb?_0x384119(_0x49258d,_0x296f6a):_0x49258d,_0x6e2286=_0x58ab96['length']-0x1,_0x5cc8c1;_0x6e2286>=0x0;_0x6e2286--)(_0x5cc8c1=_0x58ab96[_0x6e2286])&&(_0x4f2118=_0x5cc8c1(_0x4f2118)||_0x4f2118);return _0x4f2118;},_0x5b6427=(_0x2198a4,_0x2d0358)=>(_0x4b504e,_0x2e1c9e)=>_0x2d0358(_0x4b504e,_0x2e1c9e,_0x2198a4);let _0x525194=class extends _0x49f92f['Disposable']{constructor(_0x39601c,_0x5ebb45,_0x3523ea,_0x4b1a5b,_0x4c8686,_0xe952c0){const _0x5cdda1=_0x5565f1;super(),this[_0x5cdda1(0x393)]=_0x39601c,this[_0x5cdda1(0x1db)]=_0x5ebb45,this[_0x5cdda1(0x299)]=_0x3523ea,this[_0x5cdda1(0x3b2)]=_0x4b1a5b,this[_0x5cdda1(0x23b)]=_0x4c8686,this[_0x5cdda1(0x1a2)]=_0xe952c0,this[_0x5cdda1(0x38e)](),this[_0x5cdda1(0x385)]();}[_0x5565f1(0x38e)](){const _0x5d9bfb=_0x5565f1;this[_0x5d9bfb(0x3ae)](this['_commandService'][_0x5d9bfb(0x129)](_0x4b09e6=>{const _0x14876e=_0x5d9bfb;if(_0x4b09e6['id']!==_0x187dbf['id'])return;const _0x151446=_0x4b09e6[_0x14876e(0x2c4)];this[_0x14876e(0x1db)][_0x14876e(0x335)](_0x151446);})),this[_0x5d9bfb(0x3ae)](this[_0x5d9bfb(0x393)]['onCommandExecuted'](_0x1ada7d=>{const _0x3fdf53=_0x5d9bfb;if(_0x1ada7d['id']===_0x3bac17['id']){const _0x8675e2=_0x1ada7d['params'];if(_0x8675e2){const {unitId:_0x5db26c,subUnitId:_0x4b2c51,oldSubUnitId:_0x1dd8f1,pivotTableId:_0x110fd3,pivotTableConfig:_0x58439b,collectionConfig:_0x20e5dc}=_0x8675e2;this[_0x3fdf53(0x3b2)]['updateConfigCache'](_0x5db26c,_0x1dd8f1,_0x8675e2[_0x3fdf53(0x433)],null),this['_sheetsPivotTableConfigModel'][_0x3fdf53(0x3fb)](_0x5db26c,_0x4b2c51,_0x110fd3,_0x58439b),this['_sheetsPivotTableConfigModel'][_0x3fdf53(0x1c2)](_0x5db26c,_0x20e5dc);}}})),this[_0x5d9bfb(0x3ae)](this[_0x5d9bfb(0x393)]['onCommandExecuted'](_0x11346e=>{const _0xb00366=_0x5d9bfb;if(_0x11346e['id']!==_0xd023a5['id'])return;const _0xe03b83=_0x29b248['getSheetCommandTarget'](this[_0xb00366(0x23b)]);if(!_0xe03b83)return;const {unitId:_0x5b1af7,subUnitId:_0x3736a9}=_0xe03b83,_0x137594=_0x11346e[_0xb00366(0x2c4)];if(_0x137594['collectionConfig']&&Object[_0xb00366(0x37a)](_0x137594[_0xb00366(0x24c)])['forEach'](_0x479664=>{const _0xc0f0bb=_0xb00366;var _0xb38d4f;(_0xb38d4f=_0x137594[_0xc0f0bb(0x24c)])!=null&&_0xb38d4f[_0x479664]&&this['_sheetsPivotTableConfigModel'][_0xc0f0bb(0x1c2)](_0x479664,_0x137594['collectionConfig'][_0x479664]);}),_0x137594[_0xb00366(0x361)]){const _0x28271a=_0x137594[_0xb00366(0x361)],{unitId:_0x1f53c1,subUnitId:_0x349fdf,view:_0x156f31,pivotTableId:_0x30c06f,type:_0x1eef30,pivotConfig:_0x1200d0}=_0x28271a;if(_0x1eef30===_0x1e0edb[_0xb00366(0x287)])this[_0xb00366(0x299)]['clearRenderCache']({'unitId':_0x1f53c1,'subUnitId':_0x349fdf,'pivotTableId':_0x30c06f,'type':_0x1eef30}),this[_0xb00366(0x3b2)]['updateConfigCache'](_0x1f53c1,_0x349fdf,_0x30c06f,null);else{const _0x4daa8a=new _0x16b0d8[(_0xb00366(0x19b))]();_0x4daa8a[_0xb00366(0x39c)](_0x156f31),this[_0xb00366(0x3b2)][_0xb00366(0x3fb)](_0x1f53c1,_0x349fdf,_0x30c06f,_0x1200d0),this['_sheetsPivotTableAdaptorModel'][_0xb00366(0x3f3)]({'unitId':_0x1f53c1,'subUnitId':_0x349fdf,'pivotTableId':_0x30c06f,'type':_0x1eef30,'view':_0x4daa8a}),this[_0xb00366(0x299)][_0xb00366(0x1e6)]({'unitId':_0x1f53c1,'subUnitId':_0x349fdf,'view':_0x4daa8a,'pivotTableId':_0x30c06f,'type':_0x1eef30});}}else _0x137594['batch']&&(_0x137594[_0xb00366(0x41d)][_0xb00366(0x350)](_0x58598e=>{const _0x407b5d=_0xb00366,{unitId:_0x1d3f88,subUnitId:_0x49069a,view:_0x88854,pivotTableId:_0x1aecc7,type:_0x58e7f2,pivotConfig:_0x23e5ff}=_0x58598e,_0x3f474d=new _0x16b0d8['PivotView']();_0x3f474d[_0x407b5d(0x39c)](_0x88854),this[_0x407b5d(0x3b2)]['updateConfigCache'](_0x1d3f88,_0x49069a,_0x1aecc7,_0x23e5ff),this[_0x407b5d(0x299)][_0x407b5d(0x1e6)]({'unitId':_0x1d3f88,'subUnitId':_0x49069a,'view':_0x3f474d,'pivotTableId':_0x1aecc7,'type':_0x58e7f2});}),this[_0xb00366(0x3b2)][_0xb00366(0x1df)]());this['_sheetsPivotTableAdaptorModel'][_0xb00366(0x251)](_0x5b1af7,_0x3736a9);}));}['registerDirtyService'](){const _0x3a899f=_0x5565f1;this['_activeDirtyManagerService'][_0x3a899f(0x1ee)](_0x431f75['id'],{'commandId':_0x431f75['id'],'getDirtyData'(_0x12ff67){return{'dirtyUnitFeatureMap':_0x12ff67['params']};}});}};_0x525194=_0x430fd5([_0x5b6427(0x0,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f['ICommandService'])),_0x5b6427(0x1,_0x49f92f['Inject'](_0x47953f[_0x5565f1(0x3f1)])),_0x5b6427(0x2,_0x49f92f[_0x5565f1(0x21b)](_0x47953f[_0x5565f1(0x3c8)])),_0x5b6427(0x3,_0x49f92f['Inject'](_0x47953f[_0x5565f1(0x11d)])),_0x5b6427(0x4,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f['IUniverInstanceService'])),_0x5b6427(0x5,_0x3a3769[_0x5565f1(0x200)])],_0x525194);var _0x61a4ce=Object[_0x5565f1(0x384)],_0x160b1d=Object['getOwnPropertyDescriptor'],_0x1f0d76=(_0x3c9287,_0x1c872c,_0x2c81b0)=>_0x1c872c in _0x3c9287?_0x61a4ce(_0x3c9287,_0x1c872c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c81b0}):_0x3c9287[_0x1c872c]=_0x2c81b0,_0x29ebd7=(_0x32ff5f,_0x48e31b,_0x3bde2a,_0x589f2b)=>{const _0x181ff5=_0x5565f1;for(var _0x3cbf95=_0x589f2b>0x1?void 0x0:_0x589f2b?_0x160b1d(_0x48e31b,_0x3bde2a):_0x48e31b,_0x225115=_0x32ff5f[_0x181ff5(0x37f)]-0x1,_0x25c667;_0x225115>=0x0;_0x225115--)(_0x25c667=_0x32ff5f[_0x225115])&&(_0x3cbf95=_0x25c667(_0x3cbf95)||_0x3cbf95);return _0x3cbf95;},_0x1723cf=(_0x38ec9b,_0x1813a8)=>(_0x5130a0,_0x2c8215)=>_0x1813a8(_0x5130a0,_0x2c8215,_0x38ec9b),_0x4ed562=(_0x2f0791,_0x2e2fb7,_0x3b7b59)=>_0x1f0d76(_0x2f0791,typeof _0x2e2fb7!=_0x5565f1(0x2b3)?_0x2e2fb7+'':_0x2e2fb7,_0x3b7b59);_0x47953f[_0x5565f1(0x166)]=class extends _0x49f92f[_0x5565f1(0x36d)]{constructor(_0x49c965=_0x11e3f9,_0x599b7c,_0x8de17f,_0x504bcb,_0x3c0128){const _0x526472=_0x5565f1;super(),this['_config']=_0x49c965,this['_injector']=_0x599b7c,this[_0x526472(0x393)]=_0x8de17f,this[_0x526472(0x163)]=_0x504bcb,this[_0x526472(0x24f)]=_0x3c0128;const {..._0x32bbe4}=_0x49f92f[_0x526472(0x3b3)]({},_0x11e3f9,this['_config']);this[_0x526472(0x163)][_0x526472(0x261)](_0x2fe2dc,_0x32bbe4),this[_0x526472(0x30a)](),this[_0x526472(0x3e8)]();}['_initConfig'](){const _0x25050e=_0x5565f1;var _0x25babf;const _0x5f50d7=(_0x25babf=this[_0x25050e(0x149)])==null?void 0x0:_0x25babf[_0x25050e(0x167)];this[_0x25050e(0x163)]['setConfig'](_0x511ea3,_0x5f50d7===!0x0);}[_0x5565f1(0x2cf)](){const _0x65abf2=_0x5565f1;var _0x278bde;let _0x10faa4=[];const _0x57ae67=(_0x278bde=this[_0x65abf2(0x149)])==null?void 0x0:_0x278bde[_0x65abf2(0x167)];_0x57ae67===!0x0?_0x10faa4=[[_0x47953f[_0x65abf2(0x2c5)]],[_0x47953f[_0x65abf2(0x3f1)]],[_0x525194],[_0x47953f[_0x65abf2(0x3c8)]],[_0x47953f[_0x65abf2(0x11d)]],[_0x4bdaba],[_0x41ad13],[_0x3a7d82],[_0x4b4948]]:_0x57ae67===!0x1?_0x10faa4=[[_0x47953f['SheetsPivotDataSourceModel']],[_0x4ae2a1]]:_0x57ae67===void 0x0&&(_0x10faa4=[[_0x47953f[_0x65abf2(0x120)]],[_0x4ae2a1],[_0x47953f[_0x65abf2(0x2c5)]],[_0x47953f['SheetsPivotRPCService']],[_0x525194],[_0x47953f[_0x65abf2(0x3c8)]],[_0x47953f[_0x65abf2(0x11d)]],[_0x4bdaba],[_0x41ad13],[_0x3a7d82],[_0x4b4948]]),_0x10faa4[_0x65abf2(0x350)](_0x23a9d1=>this[_0x65abf2(0x27c)]['add'](_0x23a9d1)),[_0x4ae2a1,_0x525194,_0x47953f['SheetsPivotTableService'],_0x41ad13,_0x4bdaba,_0x3a7d82,_0x4b4948][_0x65abf2(0x350)](_0x3f67ad=>{const _0x4f398c=_0x65abf2;this[_0x4f398c(0x27c)][_0x4f398c(0x189)](_0x3f67ad)&&this[_0x4f398c(0x27c)][_0x4f398c(0x326)](_0x3f67ad);});}[_0x5565f1(0x30a)](){const _0x5e1ba5=_0x5565f1;[_0x588cef,_0x466e70,_0x1636bc,_0x22c13e,_0x428f9a,_0x942c81,_0x19a49e,_0x433d1e,_0x4d3fef,_0x2df530,_0x4e941b,_0x41de91,_0x2b2998,_0x46b862,_0x1eb047,_0xf64629,_0xaf0ab,_0x453e87,_0x417bba,_0x4a69bb,_0x40cd4c,_0x3b2c81,_0x2b9b8c,_0x5d474,_0x4db253,_0x326349,_0xd66fe3,_0x44b295,_0x187dbf,_0xd023a5,_0x3f40e7,_0x4ca1db,_0x1b4e76,_0x4432ef,_0x389da5,_0x66b5e7,_0x528f2b,_0x431f75,_0x3bac17,_0x560a6d,_0x423b43,_0x1bceee,_0x1fe731][_0x5e1ba5(0x350)](_0x1e77c6=>{const _0x1dc716=_0x5e1ba5;var _0x1441af;(_0x1441af=this[_0x1dc716(0x24f)])==null||_0x1441af[_0x1dc716(0x319)](_0x1e77c6),this['_commandService'][_0x1dc716(0x18a)](_0x1e77c6);});}},_0x4ed562(_0x47953f[_0x5565f1(0x166)],'pluginName',_0x5eb740),_0x4ed562(_0x47953f[_0x5565f1(0x166)],'type',_0x49f92f['UniverInstanceType']['UNIVER_SHEET']),_0x47953f[_0x5565f1(0x166)]=_0x29ebd7([_0x49f92f[_0x5565f1(0x285)](_0x3e3faf[_0x5565f1(0x2e0)]),_0x1723cf(0x1,_0x49f92f[_0x5565f1(0x21b)](_0x49f92f[_0x5565f1(0x22e)])),_0x1723cf(0x2,_0x49f92f['Inject'](_0x49f92f['ICommandService'])),_0x1723cf(0x3,_0x49f92f[_0x5565f1(0x404)]),_0x1723cf(0x4,_0x49f92f[_0x5565f1(0x439)](_0x347967['DataSyncPrimaryController']))],_0x47953f[_0x5565f1(0x166)]),_0x47953f[_0x5565f1(0x2da)]=_0x1636bc,_0x47953f[_0x5565f1(0x2ab)]=_0x453e87,_0x47953f['AddPivotTableCommand']=_0x466e70,_0x47953f['AddPivotTableMutation']=_0x1eb047,_0x47953f[_0x5565f1(0x410)]=_0x588cef,_0x47953f[_0x5565f1(0x153)]=_0x29054f,_0x47953f[_0x5565f1(0x219)]=_0x5078db,_0x47953f[_0x5565f1(0x180)]=_0x22c13e,_0x47953f[_0x5565f1(0x415)]=_0x2b2998,_0x47953f[_0x5565f1(0x325)]=_0x3175a8,_0x47953f[_0x5565f1(0x388)]=_0x46b862,_0x47953f['PivotTableOperationEnum']=_0x1e0edb,_0x47953f[_0x5565f1(0x402)]=_0x431f75,_0x47953f[_0x5565f1(0x2e3)]=_0x3ad7fb,_0x47953f[_0x5565f1(0x2aa)]=_0x428f9a,_0x47953f['RemovePivotFieldMutation']=_0x3b2c81,_0x47953f['RemovePivotTableMutation']=_0xaf0ab,_0x47953f[_0x5565f1(0x131)]=_0x2b9b8c,_0x47953f[_0x5565f1(0x2a7)]=_0x1fe731,_0x47953f[_0x5565f1(0x2d7)]=_0x2fe2dc,_0x47953f[_0x5565f1(0x2c2)]=_0x5eb740,_0x47953f[_0x5565f1(0x1e4)]=_0x433d1e,_0x47953f[_0x5565f1(0x15e)]=_0x5d474,_0x47953f[_0x5565f1(0x35c)]=_0x4432ef,_0x47953f['SetPivotFieldsConfigCommand']=_0x1bceee,_0x47953f[_0x5565f1(0x2be)]=_0x2df530,_0x47953f[_0x5565f1(0x2eb)]=_0x40cd4c,_0x47953f[_0x5565f1(0x294)]=_0x326349,_0x47953f[_0x5565f1(0x17a)]=_0xd66fe3,_0x47953f['SetPivotSortCommand']=_0x4d3fef,_0x47953f[_0x5565f1(0x354)]=_0x4db253,_0x47953f[_0x5565f1(0x288)]=_0x1b4e76,_0x47953f[_0x5565f1(0x3bf)]=_0x560a6d,_0x47953f['SetPivotValueFilterMutation']=_0x423b43,_0x47953f['UpdateDateGroupCommand']=_0x19a49e,_0x47953f[_0x5565f1(0x161)]=_0x3f40e7,_0x47953f['UpdatePivotFieldSettingCommand']=_0x4e941b,_0x47953f[_0x5565f1(0x349)]=_0x528f2b,_0x47953f[_0x5565f1(0x128)]=_0x41de91,_0x47953f[_0x5565f1(0x160)]=_0x66b5e7,_0x47953f['UpdatePivotValuePositionCommand']=_0x942c81,_0x47953f[_0x5565f1(0x414)]=_0x4ca1db,_0x47953f[_0x5565f1(0x2a2)]=_0x41974f,_0x47953f[_0x5565f1(0x1ce)]=_0xe56476,_0x47953f[_0x5565f1(0x348)]=_0x136b96,_0x47953f['generateSetRangeValueMutations']=_0x59e5a3,_0x47953f['getAdjustRangesPosition']=_0x290256,_0x47953f['getEmptyPivotRanges']=_0x3ee25d,_0x47953f['getFieldListByArea']=_0x452f49,_0x47953f[_0x5565f1(0x1d8)]=_0x2535c3,_0x47953f[_0x5565f1(0x1bb)]=_0x40a48d,_0x47953f['getPivotInfoByLicense']=_0x183df5,_0x47953f[_0x5565f1(0x441)]=_0x493754,_0x47953f['transFromCellValue']=_0xb1d466,_0x47953f['unionPivotViewRange']=_0x163af3,Object[_0x5565f1(0x384)](_0x47953f,Symbol[_0x5565f1(0x174)],{'value':'Module'});}));function _0xe5fb(_0x1906ad,_0x2f356c){const _0x4ee1cd=_0x4ee1();return _0xe5fb=function(_0xe5fb90,_0x22bfa8){_0xe5fb90=_0xe5fb90-0x115;let _0x3bc6ca=_0x4ee1cd[_0xe5fb90];return _0x3bc6ca;},_0xe5fb(_0x1906ad,_0x2f356c);}function _0x4ee1(){const _0x540c6c=['sourceRangeInfo','pageStyle','symbol','generateNewSheetName','Tools','sheets-pivot.cellDateGroupDisplay.quarter','textInfo','sheets-pivot.dateGroup.month','dataStream','product','_updateRenderEmptyCache','RemoveField','adjustSheetCellData','SetPivotFilterCommand','getAutoFitColumnsMutations','getColCount','data','SHEET_PIVOT_TABLE_PLUGIN','@univerjs/sheets','params','SheetsPivotTableService','leafStyle','removePivotField','setValuePivotFilter','iterateField','createAsyncInterceptorKey','COLUMN','headerMap','addRecord','hasField','onStarting','sheets-pivot.averageName','SetPivotSetting','cornerRanges','PivotDataFieldDataTypeEnum','substring','Add','prototype','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','ManualFilter','sheets-pivot.dateGroup.date','AddPivotFieldCommand','NotName','getPivotTableRangeInfo','getStyles','PivotSubtotalTypeEnum','getColumnCount','UniverLicensePlugin','sheet.mutation.pivot-update-field-position','getOriginFieldId','PositionType','@univerjs/sheets-filter','_localeService','sheets-pivot.other','isColMultiMeasure','asObservable','removePivotTable','_featureCalculationManagerService','SetPivotFilterMutation','dataFieldsCollection','_updateModelCache','getConfig','sheets-pivot.grandTotal','getGroupFieldsInfoByIds','sheet.command.move-pivot-field','valueFilter','@univerjs/core','getPivotItemRenderInfoCache','sortInfo','Column\x20','concat','NAME','getName','string','getRowCount','getDataFieldByTableId','sheet.mutation.set-pivot-position','SetPivotCollapse','serializeRangeWithSpreadsheet','deleteUnitId','updatePivotTableMatrixInfo','call','sheets-pivot.emptyPivot.column','setPivotSort','COMMAND','ClearSelectionContentCommand','measure','colStyle','sheets-pivot.dateGroup.yearQuarter','_initRegisterCommand','addField','sheet.command.add-pivot-table','tuple','_textInfo','handleMoveRange','_viewUpdate$','LocaleService','getCollection','_pivotRenderValueMatrixCache','width','viewData$','getDirtyInfo','sheets-pivot.emptyPivot.filter','_viewData$','registerSyncingMutations','_collectionChange$','getRefRangeMutationsByMoveRange','sheets-pivot.value','_refRangeService','document','getSheets','fieldIds','@univerjs/engine-formula','disposableCollection','updateValuePosition','sheets-pivot.productName','PivotDisplayDataType','get','viewUpdate$','error','unshiftString','UpdateSource','colCount','unitId','sheets-pivot.cellDateGroupDisplay.date','collectionChange$','addPivotTable','FieldsCollection','458587RayvGt','_requestResolvers','MIN_SAFE_INTEGER','sheets-pivot.dateGroup.quarter','handleAsyncResponse','276PxmBRD','GlobalComputingStatusService','removeSourceRangeChange','updatePivotSource','sheets-pivot.cellDateGroupDisplay.hourMinute','onQueryEnd','dataFieldId','AddPivotTableWithConfig','getSourceName','generateHexNumber','sheets-pivot.cellDateGroupDisplay.month','col','2RQMpIU','fontRenderExtension','random','RemoveRowMutation','BLANK_PLACEHOLDER','_initGlobalComputed','defaultThemeStyle','UpdatePivotFieldSourceInfoMutation','Filter','NO_COMMERCIAL','startRow','generateNullCell','find','date','forEach','blank','@univerjs/engine-render','_pivotTableInstanceCache','SetPivotSortMutation','dispose','getTypeOfUnitDisposed$','body','None','Value','getFieldIds','AddPivotField','SetPivotFieldFormatMutation','cornerInfo','sheet.mutation.update-pivot-table-source-range','YearMonthDate','HourMinute','single','stringify','drillDown','getFullYear','getHeaderMapItem','Subtotal','GrandTotal','PivotTableChangeTypeEnum','Set','DrillDown','rangeKey','split','Plugin','sheets-pivot.varName','getDataFieldId','custom','getPivotDirtyViewInfo','NUMBER','sheet.command.add-pivot-field','rgb(255,255,255)','initDataRanges','removeField','grandTotal','SetCollapse','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','keys','setLabelFilterInfo','dataFields','isDateValue','_collectionConfigModel','length','iterateFieldByArea','PivotViewCellValueTypeEnum','addExclusiveRange','updateDataFieldsCollection','defineProperty','registerDirtyService','UniverSheets','return\x20','PivotDrillDownCommand','setRange','sheet.command.set-pivot-filter','SetWorksheetColWidthMutation','sheet.mutation.add-pivot-field','ObjectMatrix','_initDataSendListener','sheets-pivot.countName','sheet.mutation.update-date-group','queryDirtyPivotTable','pivotConfigChange$','_commandService','number','FORCE_STRING','sheet.command.pivot-drill-down','createInterceptorKey','subTotalStyle','sheet.mutation.send-pivot-data-local','sheet.mutation.rename-pivot-field','168XQJjbm','formJSON','endColumn','updatePivotTableRangeInfo','rangesInfo','getRangeStartEndInfo','#f4f4f5','getSubUnitPivotMatrix','ResetPivotTable','collection','minDate','contains','foreach','SetRangeValuesUndoMutationFactory','sourceName','_model','fetchThroughAsyncInterceptors','parse','_initCommandInterceptListener','disposeWithMe','generateRandomId','max','RenameField','_sheetsPivotTableConfigModel','merge','maxDate','pivotTableIndexConfig','Row','from','_initPivotTextInfo','resetArea','PivotDateGroupFieldDateTypeEnum','MoveRangeCommand','sheets-pivot.cellDateGroupDisplay.yearMonthDate','removeDataField','getFieldDataType','SetPivotValueFilterCommand','Date','endCollectChangeset','query','_getPivotAppliedRanges','splice','getUnit','_lifecycleService','generateMutationsByRanges','SheetsPivotTableAdaptorModel','setValue','STRING','sheets-pivot.blank','shouldClear','forRow','getActiveSheet','addCollectionByJSON','#FFFFFF','pageRanges','refreshDataField','setRangeValueRedoMutation','sheetName','UniverSheetsFilter','UpdateFieldPosition','sheets-pivot.dateGroup.hour','interceptCommand','getPivotTableMatrixInfo','UNIVER_SHEET','other','asyncInterceptor','node','getPivotTableModelConfig','_configVersion$','pivotTableConfigs','setRangeValueUndoMutation','#eceeff','setPivotSetting','createCollectionWithDataRange','forValue','intersects','Range','_initConfig','Grand\x20Total','Div0','rowHeaderMap','_sheetsSelectionsService','resetPivotTable','reset','sheet.command.set-pivot-collapse','GlobalConfig','SheetsPivotRPCService','createDataFieldId','clearRenderCache','ΣValue','_ensurePivotMap','YearQuarter','SheetsSelectionsService','NotFunction','PivotCellStyleTypeEnum','sheet.mutation.pivot-update-value-position','updateConfigCache','ICommandService','SetPivotSort','@univerjs-pro/license','subtotal','valueIndex','fromJSON','PivotTableViewDirtyMarkOperation','pbt','IConfigService','getNoUsedDataFieldIds','areaInfo','sheets-pivot.dateGroup.hourMinute','DateGroupField','next','info','_globalComputingSrv','format','collections','getDataFieldManager','_globalComputedEndHelpFunc','AddPivotTableWithConfigCommand','setSourceName','object','updateConfig','UpdateValuePositionMutation','MovePivotTableCommand','isFeatureAuthorizedWithinTime','setCollapse','PivotErrorTypeEnum','getMatrixValue','_ensurePivotTableMatrixInfo','getSortInfo','value','batch','executeCommand','_ensureViewDataMap','getValuePosition','startColumn','size','average','isText','Disposable','versions','UniverRpc','getId','Sum\x20of\x20','_generateUniqueVersion','setTextInfo','MonthDate','cellToRange','_markDirty$','getDataFieldBySourceName','SetPivotFilter','_pivotTableMatrixInfo','clearExclusiveRangesByGroupId','pivotTableId','sheet.mutation.set-pivot-option','getRangeData','add','limit\x20pivot','InsertRowMutation','Optional','getFieldCountByArea','floor','PivotTable','delete','Min\x20of\x20','sequenceExecute','PivotTableFiledAreaEnum','getPivotTableInfo','getTargetByPivotId','BadReference','numfmt','refreshGroupField','rowStyle','bind','filterInfo','updateView','_deleteModelCache','_refRangeHandle','SheetsPivotTableConfigModel','Subject','updateRangeKeyMap','SheetsPivotDataSourceModel','sheet.command.reset-pivot-fields-config','Expand','isBaseGroupField','count','getMatrixFromRunTimeData','colInfo','unshift','UpdatePivotTableSourceRangeCommand','onCommandExecuted','MovePivotField','collapseInfo','sheet.command.set-pivot-field-setting','rowCount','_initUnitDisposed','setFieldFormat','4939740zvpgpB','RenamePivotFieldMutation','startCollectChangeset','isArray','_subjectViewChange','_resourceManagerService','Count\x20of\x20','PivotFilterTypeEnum','result','amd','pivotInitCompleted$','#b2b2b2','setPivotTableConfig','SetPivotTableConfig','Collapse','getFilterInfo','Quarter','#e6ebfa','rowRanges','getTableFieldById','filterId','some','uniqueDataFieldName','realDeleteValue','sheet.mutation.add-group-collection','_config','getOwnPropertyDescriptor','sheet.command.update-pivot-table-source-range','setDataRecordCount','_pivotTableRangeInfo','Hour','updateDirtyPivotTable','dataRangeInfo','ErrorType','var','BLANK_ROW_COUNT','sheet.mutation.send-pivot-config-local','getDate','removeCollectionImp','workbook\x20is\x20not\x20found','getFontStyleString','values','hasOwnProperty','LifecycleService','fieldsCollectionChange$','setDateType','SetPivotCollapseMutation','entries','UpdatePivotTableSourceRangeMutation','UpdateFieldPositionMutation','SHEET_PIVOT_EXCLUSIVE_ID','_configService','RANGE_TYPE','_pivotConfigChange$','UniverSheetsPivotTablePlugin','notExecuteFormula','BehaviorSubject','sheet.mutation.set-pivot-filter','PivotMultipleValueId','IUndoRedoService','IFeatureCalculationManagerService','PivotTableValuePositionEnum','InterceptorEffectEnum','setSortInfo','colRanges','_pivotInitCompleted$','dimension','_queryingMap','toStringTag','filterFields','DisposableCollection','IExclusiveRangeService','deleteDataField','fetchThroughInterceptors','SetPivotPositionMutation','sheet.mutation.get-pivot-data-local','sheet.mutation.remove-pivot-field','isValue','RemoveSheetMutation','UpdateValuePosition','MovePivotFieldCommand','sheets-pivot.cellDateGroupDisplay.minute','addFieldWithSourceId','CellValueType','UniverEngineRender','triggerDirtyFeature','ClearSelectionAllCommand','sideEffectUpdateWorkerCache','_initClearSelectionCommandInterceptor','has','registerCommand','onQueryStart','sheets-pivot.dateGroup.monthDate','getPivotTableIdByCell','Max\x20of\x20','AddPivotTable','setPivotTable','getTextInfo','MoveRangeMutation','remove','originTargetInfo','addPivotField','getPivotPerformCheck','getSheetId','addDataFieldWithoutUnitInfo','sheets-pivot.subTotal','updateViewData','PivotView','sheets-pivot.countNumsName','getFilterFieldIdByIndex','SetFieldFormat','map','_initViewModelBySheetInterceptor','sheets-pivot.cellDateGroupDisplay.hour','_activeDirtyManagerService','getCellRaw','getSubUnitPivotRenderCache','sheets-pivot.cellDateGroupDisplay.yearMonth','getSheetCommandTarget','3741793idIKOW','InterceptorManager','getFieldInfo','removeValueFilterInfo','pivotPerformCheck','_ensurePivotTableRangeInfo','getTargetByPivotTableId','CommandType','SHEET_PIVOT_IN_MAIN_THREAD','sheet.mutation.send-init-pivot-text-local','row','Var\x20of\x20','_createExclusiveRange','getUnitId','update','getValue','UniverInstanceType','needSameDeleteModel','456864DONQnh','AsyncInterceptorManager','getPivotCellInfo','_pivotRenderInfoCache','displayName','fieldsConfig','deleteField','StdDev\x20of\x20','includes','updateCollectionConfig','updateFieldPosition','#e6ebfb','fields','getUpdateRangeDeleteIds','NotNumber','_toJSON','removeValueFilterInfoByValueFieldId','1052742LLyxTS','_getAutoName','rowFields','addPivotTableWithConfig','canUsePivot','excelDateToUnixMilliseconds','targetCellInfo','getSubtotal','createLabelField','configVersion$','toJSON','new','DIV_BY_ZERO','column','getInsertRowColMutations','getSheetBySheetName','LS_CONFIG_KEY','_sheetsPivotRpcService','_ensurePivotItemRenderValueMatrixCache','getSubUnitPivotConfigs','subscribe','setPivotInitCompleted','InsertSheetMutation','panel','isBottomTotal','deepClone','SetPivotCollapseCommand','registerPluginResource','updateRenderCache','94736PVYBJA','rxjs','_ensurePivotItemRenderInfoCache','SetValueFilter','getFieldPositionInfoById','getTextSize','DEFAULT_WORKSHEET_COLUMN_COUNT','register','getLastRow','getValueIndex','rgb(240,241,243)','sheet.command.update-date-group','setRangeKeyMap','NORMAL','setPivotFilter','UniverCore','refreshData','getLastCol','_updatePivotTableInstanceCache','min','getIntersectsPivotTable','MUTATION','Existing','interceptor','MAX_SAFE_INTEGER','IActiveDirtyManagerService','stdDev','getSheetFeatureLimit','iterateFieldDim','lastRow','createValueField','undos','sheet.mutation.set-pivot-value-filter','movePivotField','filter','getAutoDisplayName','getDisplayName','updateAllDisplayName','colHeaderMap','sheets-pivot.dateGroup.year','getMatrix','@univerjs-pro/engine-pivot','options','getRangeKeyList','sheets-pivot.emptyPivot.values','dataFieldManagerConfig','getPivotTableConfig','sheet.mutation.set-pivot-collapse','sheets-pivot.cellDateGroupDisplay.yearQuarter','#1d32e9','DEFAULT_PIVOT_NUMBER','_initPivotDataGetListener','Inject','sheet.mutation.set-pivot-format','prefix','addCollection','version','CustomCommandExecutionError','Values','getSheetBySheetId','_initLocale','isPrefixValue','isErrorValue','removeCollections','exports','UniverEngineFormula','slice','sheet.command.move-pivot-table','New','registerCallbackWithEvent','getCellMatrix','Injector','getViewData','Minute','setPivotCollapse','pushUndoRedo','getPivotTableInstance','range','RemovePivotField','getPivotDisplayConfig','(Blank)','_globalComputedStartHelpFunc','getAutoDisplayNameFunction','_exclusiveRangeService','_univerInstanceService','UniverProLicense','sheets-pivot.maxName','RemoveSheetCommand','Rectangle','sheet.mutation.add-pivot-table','FontCache','broadcastCollectionChange','InsertSheetUndoMutationFactory','getCurrentUnitForType','10ZrTnWd','set','dateType','getDataFieldByDataFieldId','RefRangeService','_subjectCollectionChange','sheets-pivot.cellDateGroupDisplay.year','collectionConfig','message','sheet.command.add-pivot-table-with-config','_dataSyncPrimaryController','getIndexesByPathStr','markDirty','SetValuePivotFilter','Month','push','_deletePivotTableInstanceCache','19115TjaRer','_dataFieldManagerCollection','sheet.command.update-pivot-value-position','handleSourceRangeChange','sheet.mutation.send-pivot-view-local','countNums','sheets-pivot.stdDevpName','updateFieldSourceInfo','renameField','Year','_host','setConfig','_sheetsPivotTableService','_initSnapshot','_sheetInterceptorService','addDirtyPivotTable','cellValue','getDataFieldByRangeKey','getFieldFormat','intercept','sheet.mutation.set-pivot-field-subtotal-type','sum','sheets.tabs.sheet','getPivotTableCellData','isDateGroupFieldJSON','IUniverInstanceService','Panel','subUnitId','setName','AddField','updateViewInfo','pushComputingStatusSubject','valueFields','paths','UpdatePivotSource','Total','fieldId','sheets-pivot.varpName','_injector','name','getFieldById','isEmpty','_fieldsCollectionChange$','setValueFilterInfo','reduce','SetRangeValuesMutation','REF','DependentOn','_globalSubject','Delete','SetPivotSubtotalTypeMutation','getInterceptPoints','IResourceManagerService','Column','oldRangeInfo','Product\x20of\x20','setSubtotalType','PivotCallbackEnum','SheetInterceptorService','sheet.operation.pivot-table-view-formula-mark-dirty','tableFieldId','YearMonth','SetPivotOptionMutation','rangeKeyMap','Style','sheet.mutation.pivot-update-field-source-info','mergeWorksheetSnapshotWithDefault','_sheetsPivotTableAdaptorModel','_viewData','sheet.command.set-pivot-sort','level','pivotMutationGenerate','getformat','lastCol','_init','getIntersects','applyChangeSet','_subjectFieldsCollectionChange','getRangeKey','redos','_sheetsPivotDataSourceModel','ResetPivotFieldsConfigCommand','type','getFormatInfo','RemovePivotFieldCommand','AddPivotFieldMutation','sheet.mutation.remove-group-collection','rangeType','InsertColMutation','ptn','endRow'];_0x4ee1=function(){return _0x540c6c;};return _0x4ee1();}
1
+ function _0x109e(_0x51117c,_0x3e0444){const _0x2d2d0f=_0x2d2d();return _0x109e=function(_0x109eed,_0xcee9bc){_0x109eed=_0x109eed-0xc5;let _0xd3c05a=_0x2d2d0f[_0x109eed];return _0xd3c05a;},_0x109e(_0x51117c,_0x3e0444);}(function(_0x5eeaeb,_0xeafa8d){const _0x4ca22d=_0x109e,_0x5625f3=_0x5eeaeb();while(!![]){try{const _0x3731af=parseInt(_0x4ca22d(0x181))/0x1*(-parseInt(_0x4ca22d(0x2c5))/0x2)+-parseInt(_0x4ca22d(0x3a4))/0x3*(parseInt(_0x4ca22d(0x3ca))/0x4)+parseInt(_0x4ca22d(0x1f7))/0x5*(parseInt(_0x4ca22d(0x182))/0x6)+-parseInt(_0x4ca22d(0x208))/0x7*(-parseInt(_0x4ca22d(0x264))/0x8)+parseInt(_0x4ca22d(0x202))/0x9*(parseInt(_0x4ca22d(0x2a6))/0xa)+parseInt(_0x4ca22d(0x316))/0xb*(-parseInt(_0x4ca22d(0x3a3))/0xc)+parseInt(_0x4ca22d(0x3ad))/0xd;if(_0x3731af===_0xeafa8d)break;else _0x5625f3['push'](_0x5625f3['shift']());}catch(_0x395630){_0x5625f3['push'](_0x5625f3['shift']());}}}(_0x2d2d,0xd6563),function(_0x2053a7,_0x483c98){const _0x10d92d=_0x109e;typeof exports==_0x10d92d(0x36d)&&typeof module<'u'?_0x483c98(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x10d92d(0x300)&&define['amd']?define([_0x10d92d(0xdc),_0x10d92d(0x28f),_0x10d92d(0x359),'@univerjs/engine-formula',_0x10d92d(0x1d9),_0x10d92d(0xc7),_0x10d92d(0x32c),_0x10d92d(0x144),_0x10d92d(0x10d),_0x10d92d(0x27a)],_0x483c98):(_0x2053a7=typeof globalThis<'u'?globalThis:_0x2053a7||self,_0x483c98(_0x2053a7['UniverProSheetsPivot']={},_0x2053a7[_0x10d92d(0x152)],_0x2053a7[_0x10d92d(0x2d5)],_0x2053a7['UniverEngineFormula'],_0x2053a7[_0x10d92d(0x2c2)],_0x2053a7[_0x10d92d(0xc7)],_0x2053a7['UniverProLicense'],_0x2053a7[_0x10d92d(0x2b2)],_0x2053a7[_0x10d92d(0x266)],_0x2053a7[_0x10d92d(0x1c0)]));}(this,function(_0x3721b8,_0x3b6806,_0x3bc435,_0x2fc6c1,_0x41a32a,_0x31291b,_0x1b08d8,_0x8fd3f,_0x7751bf,_0x35ccf9){'use strict';const _0x19e0d2=_0x109e;var _0x242f4d=Object[_0x19e0d2(0x2b6)],_0x385238=(_0x2015cb,_0x420054,_0x4aa7fb)=>_0x420054 in _0x2015cb?_0x242f4d(_0x2015cb,_0x420054,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4aa7fb}):_0x2015cb[_0x420054]=_0x4aa7fb,_0x5e8238=(_0x176731,_0x161181,_0x1df8bc)=>_0x385238(_0x176731,typeof _0x161181!=_0x19e0d2(0x386)?_0x161181+'':_0x161181,_0x1df8bc);const _0x51b2d3=Number['parseInt'](0x6921992b),_0x1403d6=0x10,_0x3afaa7=0x1,_0x2c6018='SHEET_PIVOT_TABLE_PLUGIN',_0x2f218e=0x1,_0x139bde=_0x19e0d2(0x112),_0x2a25b4=_0x19e0d2(0x37a),_0x2b60c8='#b2b2b2',_0x948e84='#f4f4f5',_0xcddb0d=_0x19e0d2(0x2f7),_0x24feb4=_0x19e0d2(0x2e5),_0x56317f=_0x19e0d2(0x210),_0x480436=_0x19e0d2(0x242),_0x30b4d7=_0x19e0d2(0x253),_0x5f4683='#1d32e9',_0x55071b='#FFFFFF',_0x54e7b5=_0x19e0d2(0x133),_0x448980=0xe,_0x5b32fa=0x6;var _0x5e0340=(_0x2d36bc=>(_0x2d36bc['Existing']=_0x19e0d2(0x15d),_0x2d36bc['New']=_0x19e0d2(0xed),_0x2d36bc))(_0x5e0340||{});const _0x4fa654={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x16856e=0x1e,_0x592f34={'b':{'s':0x1,'cl':{'rgb':_0x2b60c8}},'l':{'s':0x1,'cl':{'rgb':_0x2b60c8}},'r':{'s':0x1,'cl':{'rgb':_0x2b60c8}},'t':{'s':0x1,'cl':{'rgb':_0x2b60c8}}},_0x12e67a={'bg':{'rgb':_0x139bde},'ht':0x2,'vt':0x2,'tb':0x1},_0x55f1f6={'bg':{'rgb':_0x2a25b4},'ht':0x2,'vt':0x2,'tb':0x1},_0x452420={'rowStyle':{'bg':{'rgb':_0x54e7b5},'bd':_0x592f34,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x5f4683},'bd':null,'cl':{'rgb':_0x55071b},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x592f34,'bg':{'rgb':_0x30b4d7},'vt':0x2},'cornerStyle':{'bd':_0x592f34,'bg':{'rgb':_0x24feb4},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x592f34,'bg':{'rgb':_0x948e84},'vt':0x2},'leafStyle':{'bd':_0x592f34,'bg':{'rgb':_0xcddb0d},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x56317f},'cl':{'rgb':_0x480436},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x592f34,'vt':0x2}};function _0xf2b3fd(_0x27f60f,_0x12df35,_0x1075e1){const _0x5f1dd2=_0x19e0d2,_0x16130d=_0x27f60f[_0x5f1dd2(0x399)](_0x3bc435[_0x5f1dd2(0x2ea)]),_0x54a5e7=_0x1075e1['split']('_');switch(_0x12df35){case _0x3b6806[_0x5f1dd2(0x384)]['Year']:return _0x16130d['t'](_0x5f1dd2(0x174),..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)]['Minute']:return _0x16130d['t'](_0x5f1dd2(0xc8),..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)][_0x5f1dd2(0x1b4)]:return _0x16130d['t'](_0x5f1dd2(0x3a7),..._0x54a5e7);case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x5f1dd2(0xd7)]:return _0x16130d['t'](_0x5f1dd2(0x339),..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)]['Date']:return _0x16130d['t']('sheets-pivot.cellDateGroupDisplay.date',..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)][_0x5f1dd2(0xf0)]:return _0x16130d['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)][_0x5f1dd2(0x239)]:return _0x16130d['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x54a5e7);case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x5f1dd2(0x244)]:return _0x16130d['t'](_0x5f1dd2(0x176),..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)][_0x5f1dd2(0x29e)]:return _0x16130d['t'](_0x5f1dd2(0x353),..._0x54a5e7);case _0x3b6806[_0x5f1dd2(0x384)]['YearQuarter']:return _0x16130d['t'](_0x5f1dd2(0x391),..._0x54a5e7);}return'';}const _0x38b6ba=(_0xf32a8b,_0x2bd71a,_0x585b20,_0x5bc3f5)=>{const _0x285757=_0x19e0d2;let _0x1d133c;const _0x2279c2=_0xf32a8b['get'](_0x3bc435[_0x285757(0x1f6)])[_0x285757(0xd8)](_0x3bc435['UniverInstanceType']['UNIVER_SHEET']);if(!_0x2279c2)return null;const _0x3d0cb5=_0x2279c2['getStyles']();let _0x43be02;if(_0x585b20&&(_0x43be02=_0x3d0cb5[_0x285757(0x17d)](_0x585b20)),_0x2bd71a!=null&&_0x2bd71a['v']||(_0x2bd71a==null?void 0x0:_0x2bd71a['v'])===0x0){_0x1d133c||(_0x1d133c={});const _0x31558e=_0x294b68(_0x2bd71a['v']);typeof _0x31558e==_0x285757(0x1e6)?_0x1d133c['t']=_0x3bc435['CellValueType'][_0x285757(0xd0)]:typeof _0x31558e==_0x285757(0x2c8)&&(_0x1d133c['t']=_0x3bc435[_0x285757(0x3ae)][_0x285757(0x2eb)]),_0x1d133c['v']=_0x31558e;}if((_0x2bd71a!=null&&_0x2bd71a['i']||(_0x2bd71a==null?void 0x0:_0x2bd71a['i'])===0x0)&&(_0x1d133c||(_0x1d133c={}),_0x1d133c['fi']=_0x2bd71a['i']),_0x2bd71a!=null&&_0x2bd71a['s']&&(_0x1d133c||(_0x1d133c={}),_0x1d133c[_0x285757(0x212)]=_0x2bd71a['s']),_0x585b20&&(_0x1d133c||(_0x1d133c={}),_0x1d133c['s']=_0x43be02),_0x5bc3f5&&_0x1d133c!=null&&_0x1d133c['v']&&_0x1d133c[_0x285757(0x212)]!==_0x3b6806[_0x285757(0x2bd)][_0x285757(0x25e)]&&_0x1d133c[_0x285757(0x212)]!==_0x3b6806[_0x285757(0x2bd)][_0x285757(0x275)]){const _0x343222=String(_0x1d133c['v']),{dateType:_0x54f2dd}=_0x5bc3f5;_0x1d133c['v']=_0xf2b3fd(_0xf32a8b,_0x54f2dd,_0x343222),_0x1d133c['t']=_0x3bc435['CellValueType'][_0x285757(0x2eb)];}return _0x1d133c;},_0x85203c=(_0x4f070c,_0x5f30c5,_0x51a1ae,_0x5bb1e4)=>{const _0x458e9f=_0x19e0d2;var _0x2c4a38,_0x3efd0d,_0x2b0558,_0x26d658,_0x52eaab,_0x1fdf79,_0x29242d,_0x50769b,_0x8df766,_0x245605,_0x31ed08,_0x2d88a3,_0x4e219b,_0x2d9157;const _0x509f14=_0x51a1ae['targetCellInfo'],{cornerView:_0x39888c,rowView:_0x20abad,colView:_0x10204a,dataView:_0x450a84,pageView:_0x234068,formatMap:_0x450f67,groupInfo:_0x4428a2}=_0x5f30c5,{row:_0x5a5d88,col:_0x5f5dea}=_0x509f14,_0x54aa49=new _0x3bc435[(_0x458e9f(0x268))](),_0x13e0fe={},_0x12a414={},_0x510267={},_0x4f1396={},_0x552a52={};let _0x5a13fe=_0x5a5d88,_0x5e7d4e=_0x5f5dea;Object[_0x458e9f(0x25b)](_0x234068['data'])[_0x458e9f(0x21a)](_0xe9a65d=>{const _0x499a70=_0x458e9f;Object['keys'](_0x234068[_0x499a70(0x3e2)][Number(_0xe9a65d)])[_0x499a70(0x21a)](_0x23019c=>{const _0x253243=_0x499a70,_0x45d399={..._0x234068[_0x253243(0x3e2)][Number(_0xe9a65d)][Number(_0x23019c)]};_0x54aa49['setValue'](Number(_0xe9a65d)+_0x5a13fe,Number(_0x23019c)+_0x5e7d4e,_0x38b6ba(_0x4f070c,_0x45d399,_0x452420[_0x253243(0x172)]));});});const _0x2562b4=Object[_0x458e9f(0x25b)](_0x234068[_0x458e9f(0x3e2)])[_0x458e9f(0x1eb)];_0x5a13fe+=_0x2562b4+(_0x2562b4?_0x2f218e:0x0);const _0xdaa4cf=_0x39888c[_0x458e9f(0x31f)](),_0x45d4fc=_0x39888c[_0x458e9f(0x3c7)]();for(let _0x31ca35=0x0;_0x31ca35<_0xdaa4cf;_0x31ca35++)for(let _0x54030b=0x0;_0x54030b<_0x45d4fc;_0x54030b++){const _0x301e18={...(_0x3efd0d=(_0x2c4a38=_0x39888c[_0x458e9f(0x3e2)])==null?void 0x0:_0x2c4a38[_0x31ca35])==null?void 0x0:_0x3efd0d[_0x54030b]};_0x301e18&&((_0x2b0558=_0x20abad[_0x458e9f(0x354)][_0x54030b])!=null&&_0x2b0558[_0x458e9f(0x1de)])&&_0x54030b===_0x45d4fc-0x1&&_0x31ca35===_0xdaa4cf-0x1&&(_0x301e18['v']=''+_0x5bb1e4['sheets-pivot.value']),_0x54aa49[_0x458e9f(0x17d)](_0x31ca35+_0x5a13fe,_0x54030b+_0x5e7d4e,_0x38b6ba(_0x4f070c,_0x301e18,_0x452420[_0x458e9f(0x11d)]));}for(let _0x5d098e=0x0;_0x5d098e<_0x39888c[_0x458e9f(0x207)][_0x458e9f(0x1eb)];_0x5d098e++)_0x39888c[_0x458e9f(0x207)][_0x5d098e]&&(_0x510267[''+(_0x5d098e+_0x5e7d4e)]=_0x39888c[_0x458e9f(0x207)][_0x5d098e]);_0x5e7d4e+=_0x45d4fc;const _0x3183a9=_0x10204a[_0x458e9f(0x354)],_0x1853ca=_0x10204a[_0x458e9f(0x1ee)]()>=0x0?_0x10204a[_0x458e9f(0x1ee)]()+0x1:0x0,_0x2ad8ac=_0x10204a[_0x458e9f(0x1bd)]()>=0x0?_0x10204a['getLastCol']()+0x1:0x0;for(let _0x520b94=0x0;_0x520b94<_0x2ad8ac;_0x520b94++){for(let _0x8461f1=0x0;_0x8461f1<_0x1853ca;_0x8461f1++){const _0x479261={...(_0x52eaab=(_0x26d658=_0x10204a['data'])==null?void 0x0:_0x26d658[_0x8461f1])==null?void 0x0:_0x52eaab[_0x520b94]},_0x4d0179=(_0x1fdf79=_0x3183a9[_0x8461f1])==null?void 0x0:_0x1fdf79[_0x458e9f(0x371)],_0x2208f4=_0x450f67[_0x4d0179],_0x56c3b7=_0x4428a2[_0x4d0179];_0x479261&&(_0x479261['v']=_0xbd68af(_0x479261,_0x8461f1===0x0&&((_0x29242d=_0x10204a['getHeaderMapItem'](_0x520b94+0x1))==null?void 0x0:_0x29242d[_0x458e9f(0x1de)]),_0x2208f4,_0x5bb1e4));let _0x4a51f5;_0x2208f4?_0x4a51f5={..._0x452420[_0x458e9f(0x12d)],'n':{'pattern':_0x2208f4}}:_0x4a51f5={..._0x452420[_0x458e9f(0x12d)]},_0x54aa49[_0x458e9f(0x17d)](_0x8461f1+_0x5a13fe,_0x520b94+_0x5e7d4e,_0x38b6ba(_0x4f070c,_0x479261,_0x4a51f5,_0x56c3b7));}_0x10204a[_0x458e9f(0x207)][_0x520b94]&&(_0x12a414[''+(_0x520b94+_0x5e7d4e)]=_0x10204a['info'][_0x520b94]),_0x10204a[_0x458e9f(0x354)][_0x520b94+0x1]&&(_0x552a52[''+(_0x520b94+_0x5a13fe+0x1)]=_0x10204a[_0x458e9f(0x354)][_0x520b94+0x1]);}_0x5a13fe+=_0xdaa4cf;const _0x48eae8=_0x20abad[_0x458e9f(0x354)],_0xad964f=_0x20abad[_0x458e9f(0x1ee)]()>=0x0?_0x20abad['getLastRow']()+0x1:0x0,_0x20c0ec=_0x20abad[_0x458e9f(0x1bd)]()>=0x0?_0x20abad[_0x458e9f(0x1bd)]()+0x1:0x0;for(let _0x341d15=0x0;_0x341d15<_0xad964f;_0x341d15++){for(let _0x1fde1d=0x0;_0x1fde1d<_0x20c0ec;_0x1fde1d++){const _0x350bd0={...(_0x8df766=(_0x50769b=_0x20abad['data'])==null?void 0x0:_0x50769b[_0x341d15])==null?void 0x0:_0x8df766[_0x1fde1d]},_0x5c950b=(_0x245605=_0x48eae8[_0x1fde1d])==null?void 0x0:_0x245605['tableFieldId'],_0x57bca2=_0x450f67[_0x5c950b],_0x33fcb2=_0x4428a2[_0x5c950b];_0x350bd0&&(_0x350bd0['v']=_0xbd68af(_0x350bd0,!0x1,_0x57bca2,_0x5bb1e4));let _0x1f8a51;_0x20abad[_0x458e9f(0x207)][_0x341d15][_0x458e9f(0x1b8)]===_0x20abad[_0x458e9f(0x3c7)]()?_0x1f8a51=_0x452420[_0x458e9f(0x263)]:_0x20abad[_0x458e9f(0x207)][_0x341d15][_0x458e9f(0x389)]?_0x1f8a51=_0x20abad[_0x458e9f(0x207)][_0x341d15][_0x458e9f(0x1b8)]===0x0?_0x452420[_0x458e9f(0x167)]:_0x452420[_0x458e9f(0x39e)]:_0x1f8a51=_0x452420['rowStyle'],_0x57bca2&&(_0x1f8a51={..._0x1f8a51,'n':{'pattern':_0x57bca2}}),_0x54aa49[_0x458e9f(0x17d)](_0x341d15+_0x5a13fe,_0x1fde1d+_0x5f5dea,_0x38b6ba(_0x4f070c,_0x350bd0,_0x1f8a51,_0x33fcb2));}_0x20abad[_0x458e9f(0x207)][_0x341d15]&&(_0x13e0fe[''+(_0x341d15+_0x5a13fe)]=_0x20abad[_0x458e9f(0x207)][_0x341d15]),_0x20abad['headerMap'][_0x341d15]&&(_0x4f1396[''+(_0x341d15+_0x5f5dea)]=_0x20abad[_0x458e9f(0x354)][_0x341d15]);}const _0x41d4cd=_0x450a84[_0x458e9f(0x31f)](),_0x44982f=_0x450a84['getColCount']();for(let _0x2a381f=0x0;_0x2a381f<_0x41d4cd;_0x2a381f++)for(let _0x3413c2=0x0;_0x3413c2<_0x44982f;_0x3413c2++){const _0x51d980={...(_0x2d88a3=(_0x31ed08=_0x450a84['data'])==null?void 0x0:_0x31ed08[_0x2a381f])==null?void 0x0:_0x2d88a3[_0x3413c2]};let _0x55b9ac;_0x20abad[_0x458e9f(0x207)][_0x2a381f]['isBottomTotal']?_0x55b9ac=_0x20abad[_0x458e9f(0x207)][_0x2a381f][_0x458e9f(0x1b8)]===0x0?_0x452420[_0x458e9f(0x167)]:_0x452420[_0x458e9f(0x39e)]:_0x55b9ac=_0x452420[_0x458e9f(0x15b)];const _0x2d05d5=_0x20abad[_0x458e9f(0x207)][_0x2a381f][_0x458e9f(0x3be)],_0x2918ad=_0x10204a[_0x458e9f(0x207)][_0x3413c2][_0x458e9f(0x3be)],_0x1dd5aa=Math[_0x458e9f(0x20a)](_0x2d05d5,_0x2918ad),_0xd8fded=_0x51a1ae['fieldsConfig'][_0x458e9f(0x1af)][_0x458e9f(0x240)]();let _0x256f3e='';_0x1dd5aa<0x0?_0x256f3e=(_0x4e219b=_0xd8fded[0x0])!=null?_0x4e219b:'':_0x256f3e=(_0x2d9157=_0xd8fded[_0x1dd5aa])!=null?_0x2d9157:'';const _0x1f1ba7=_0x450f67[_0x256f3e];_0x1f1ba7&&(_0x55b9ac={..._0x55b9ac,'n':{'pattern':_0x1f1ba7}}),_0x54aa49[_0x458e9f(0x17d)](_0x2a381f+_0x5a13fe,_0x3413c2+_0x5e7d4e,_0x38b6ba(_0x4f070c,_0x51d980,_0x55b9ac));}return{'valueMatrix':_0x54aa49,'rowInfo':_0x13e0fe,'colInfo':_0x12a414,'cornerInfo':_0x510267,'rowHeaderMap':_0x4f1396,'colHeaderMap':_0x552a52};};function _0xbd68af(_0x5daa6c,_0x46202f,_0x39cd31,_0x39f013){const _0x1653eb=_0x19e0d2;let _0x56bc90=_0x5daa6c['v'];_0x46202f&&(_0x56bc90=''+_0x39f013[_0x1653eb(0x320)]);const _0x2c03ee=_0x5daa6c['t']&&(_0x5daa6c['t']&_0x3b6806[_0x1653eb(0x3bf)][_0x1653eb(0x366)])>0x0;_0x2c03ee&&(_0x56bc90=''+_0x39f013[_0x1653eb(0x2aa)]);const _0x3860fb=_0x5daa6c['t']&&(_0x5daa6c['t']&_0x3b6806['PivotViewCellValueTypeEnum']['other'])>0x0;if(_0x3860fb&&(_0x56bc90=''+_0x39f013['sheets-pivot.other']),_0x5daa6c['s']===_0x3b6806[_0x1653eb(0x2bd)][_0x1653eb(0x275)]){let _0x44c8b1=_0x56bc90,_0x811db='';_0x3b6806['isPrefixValue'](_0x56bc90)&&(_0x44c8b1=_0x56bc90['prefix'],_0x811db=_0x56bc90['value']);const _0x33774a=_0x39cd31&&!_0x2c03ee&&!_0x3860fb?_0x3bc435[_0x1653eb(0x149)][_0x1653eb(0x228)](_0x39cd31,Number(_0x44c8b1)):_0x44c8b1;_0x811db?_0x56bc90=_0x33774a+'\x20'+_0x811db:_0x56bc90=_0x33774a+'\x20'+_0x39f013[_0x1653eb(0x37c)];}else _0x5daa6c['s']===_0x3b6806[_0x1653eb(0x2bd)][_0x1653eb(0x25e)]&&(_0x56bc90=_0x56bc90+'\x20'+_0x39f013['sheets-pivot.grandTotal']);return _0x56bc90;}function _0x294b68(_0x25fa4f){const _0x3f416a=_0x19e0d2;if(_0x3b6806['isErrorValue'](_0x25fa4f)){const {errorType:_0x2e67b8}=_0x25fa4f;switch(_0x2e67b8){case _0x3b6806[_0x3f416a(0x2bb)]['Div0']:return _0x2fc6c1['ErrorType']['DIV_BY_ZERO'];case _0x3b6806[_0x3f416a(0x2bb)][_0x3f416a(0x27d)]:return _0x2fc6c1[_0x3f416a(0xd9)][_0x3f416a(0x223)];case _0x3b6806[_0x3f416a(0x2bb)][_0x3f416a(0x1c4)]:return _0x2fc6c1[_0x3f416a(0xd9)][_0x3f416a(0x267)];case _0x3b6806['PivotErrorTypeEnum'][_0x3f416a(0x12e)]:return _0x2fc6c1[_0x3f416a(0xd9)][_0x3f416a(0x267)];case _0x3b6806['PivotErrorTypeEnum'][_0x3f416a(0x249)]:return _0x2fc6c1[_0x3f416a(0xd9)]['REF'];}}return _0x25fa4f;}function _0x43c786(_0x40bffd,_0x3e83ff,_0x2dd8f5=!0x1,_0x3002b7=!0x1){const _0x1712e9=_0x19e0d2,{data:_0x34a716}=_0x3e83ff,_0x46ff66=_0x3e83ff['getRowCount'](),_0x1aae0a=_0x3e83ff[_0x1712e9(0x3c7)]();if(_0x46ff66<=0x0||_0x1aae0a<=0x0)return[];const _0x3d8b15=_0x3e83ff[_0x1712e9(0x1bd)](),_0x2da6e7=_0x3e83ff[_0x1712e9(0x1ee)](),_0x4f3b88=_0x3002b7?_0x2da6e7>=0x0?_0x2da6e7+0x1:0x0:_0x46ff66,_0x17fe44=_0x3002b7?_0x3d8b15>=0x0?_0x3d8b15+0x1:0x0:_0x1aae0a,{row:_0x4bc276,col:_0x1e01e3}=_0x40bffd,_0x24685d=_0x4bc276,_0x2c4a0a=_0x1e01e3;if(_0x2dd8f5){const _0x160730=[];for(const [_0x2fabcf,_0x702e0e]of Object['entries'](_0x34a716))for(const [_0x255ef7,_0x2ee90a]of Object[_0x1712e9(0x23d)](_0x702e0e))_0x160730[_0x1712e9(0x274)](_0x3bc435[_0x1712e9(0x1fd)](_0x24685d+Number(_0x2fabcf),_0x2c4a0a+Number(_0x255ef7)));return _0x160730;}else{const _0x2a25fe=_0x3002b7?_0x4f3b88>0x0?0x1:0x0:0x1,_0x4c875d=_0x3002b7?_0x17fe44>0x0?0x1:0x0:0x1,_0x262ea7=_0x4bc276+_0x4f3b88-_0x2a25fe,_0x3a5bce=_0x1e01e3+_0x17fe44-_0x4c875d;return[{'startRow':_0x24685d,'startColumn':_0x2c4a0a,'endRow':_0x262ea7,'endColumn':_0x3a5bce}];}}const _0x2b8d8f=_0x19e0d2(0x122),_0x266951=_0x19e0d2(0x32f);var _0x16021d=(_0x18c107=>(_0x18c107[_0x19e0d2(0xfc)]='filter',_0x18c107[_0x19e0d2(0x3cb)]=_0x19e0d2(0x115),_0x18c107[_0x19e0d2(0x1f1)]=_0x19e0d2(0x35a),_0x18c107['AddPivotTableWithConfig']=_0x19e0d2(0xf9),_0x18c107[_0x19e0d2(0xca)]='addPivotTable',_0x18c107[_0x19e0d2(0x1b2)]='movePivotField',_0x18c107['RemovePivotField']=_0x19e0d2(0x329),_0x18c107['SetPivotCollapse']=_0x19e0d2(0x158),_0x18c107[_0x19e0d2(0x3a1)]=_0x19e0d2(0x291),_0x18c107[_0x19e0d2(0x125)]=_0x19e0d2(0xe5),_0x18c107[_0x19e0d2(0x2e9)]=_0x19e0d2(0x146),_0x18c107[_0x19e0d2(0x1c3)]='updatePivotSource',_0x18c107['UpdateValuePosition']=_0x19e0d2(0x29a),_0x18c107[_0x19e0d2(0x2c6)]='drillDown',_0x18c107['SetValuePivotFilter']=_0x19e0d2(0x1d7),_0x18c107[_0x19e0d2(0x338)]=_0x19e0d2(0x332),_0x18c107[_0x19e0d2(0x375)]=_0x19e0d2(0x289),_0x18c107))(_0x16021d||{});const _0x14952a={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x19e0d2(0xe1),'sheets-pivot.subTotalText':_0x19e0d2(0xd1),'sheets-pivot.grandTotalText':'Grand\x20Total','sheets-pivot.valueText':_0x19e0d2(0x21d),'sheets-pivot.averageName':_0x19e0d2(0x380),'sheets-pivot.countName':_0x19e0d2(0x117),'sheets-pivot.countNumsName':_0x19e0d2(0x117),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x19e0d2(0x33f),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x19e0d2(0x3d2),'sheets-pivot.varName':_0x19e0d2(0x256),'sheets-pivot.varpName':_0x19e0d2(0x31d),'sheets-pivot.subTotal':_0x19e0d2(0x275),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x19e0d2(0x3bb),'sheets-pivot.blank':_0x19e0d2(0x366),'sheets-pivot.other':_0x19e0d2(0x3c4),'sheets-pivot.emptyPivot.filter':_0x19e0d2(0xfc),'sheets-pivot.emptyPivot.row':_0x19e0d2(0x245),'sheets-pivot.emptyPivot.column':_0x19e0d2(0x17f),'sheets-pivot.emptyPivot.values':_0x19e0d2(0x171)},_0xe43dfe={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x355331=_0x3bc435[_0x19e0d2(0x34c)](_0x19e0d2(0x10b)),_0x1a76fa=_0x3bc435[_0x19e0d2(0x30e)](_0x19e0d2(0x29d));var _0x2fde2e=(_0x52dd0f=>(_0x52dd0f['add']='add',_0x52dd0f[_0x19e0d2(0x3dc)]=_0x19e0d2(0x3dc),_0x52dd0f['update']=_0x19e0d2(0x128),_0x52dd0f))(_0x2fde2e||{}),_0x528843=(_0xb9810c=>(_0xb9810c[_0x19e0d2(0x396)]=_0x19e0d2(0x337),_0xb9810c[_0x19e0d2(0x1c1)]=_0x19e0d2(0x194),_0xb9810c[_0x19e0d2(0x1b3)]=_0x19e0d2(0x3dc),_0xb9810c))(_0x528843||{});const _0x4a4b35={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2b4)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x21e8c9={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},_0x4fcedb={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x364),'handler':()=>!0x0},_0x502ef3={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x1e9941={'type':_0x3bc435['CommandType']['MUTATION'],'id':_0x19e0d2(0x17a),'handler':()=>!0x0};var _0x40c711=Object[_0x19e0d2(0x1ba)],_0x1dfb14=(_0x87b279,_0x66d0f8,_0x2077d3,_0x11883b)=>{for(var _0x41d6e8=_0x11883b>0x1?void 0x0:_0x11883b?_0x40c711(_0x66d0f8,_0x2077d3):_0x66d0f8,_0x55175f=_0x87b279['length']-0x1,_0x53a9db;_0x55175f>=0x0;_0x55175f--)(_0x53a9db=_0x87b279[_0x55175f])&&(_0x41d6e8=_0x53a9db(_0x41d6e8)||_0x41d6e8);return _0x41d6e8;},_0x1622a0=(_0x47029e,_0x675dfb)=>(_0x2b2141,_0x48232d)=>_0x675dfb(_0x2b2141,_0x48232d,_0x47029e);_0x3721b8['SheetsPivotRPCService']=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x56a2bd){const _0x55d836=_0x19e0d2;super(),_0x5e8238(this,_0x55d836(0x2a4),new Map()),this['_commandService']=_0x56a2bd;}[_0x19e0d2(0x28a)](_0x195fb4){const _0x236540=_0x19e0d2,{version:_0x5b8b89}=_0x195fb4,_0x3f8f71=this[_0x236540(0x2a4)][_0x236540(0x399)](_0x5b8b89);_0x3f8f71&&(_0x3f8f71(_0x195fb4),this[_0x236540(0x2a4)]['delete'](_0x5b8b89));}[_0x19e0d2(0x257)](_0x10e3d5){return new Promise((_0x58ec3f,_0x18e32b)=>{const _0x3e755c=_0x109e,_0x5f372d=this['_generateUniqueVersion']();this[_0x3e755c(0x2a4)][_0x3e755c(0x194)](_0x5f372d,_0x58ec3f),this[_0x3e755c(0x330)][_0x3e755c(0x1c5)](_0x4a4b35['id'],{'version':_0x5f372d,..._0x10e3d5},{'onlyLocal':!0x0});});}[_0x19e0d2(0x29c)](){const _0x45d091=_0x19e0d2;return Math['random']()[_0x45d091(0x19f)](0x24)[_0x45d091(0x293)](0x2,0x10);}},_0x3721b8[_0x19e0d2(0x131)]=_0x1dfb14([_0x1622a0(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435['ICommandService']))],_0x3721b8[_0x19e0d2(0x131)]);const _0x1411cd={0x0:'R',0x1:'K',0x2:'u',0x3:'L',0x4:'Q',0x5:'3',0x6:'F',0x7:'P',0x8:'b',0x9:'E','m':'0','L':'1','O':'2','J':'4','Q':'5','r':'6','S':'7','z':'8','R':'9','k':'a','N':'c','E':'d','d':'e','g':'f','b':'g','Z':'h','I':'i','X':'j','x':'k','q':'l','M':'m','s':'n','U':'o','F':'p','C':'q','p':'r','T':'s','e':'t','G':'v','a':'w','W':'x','c':'y','D':'z','f':'A','o':'B','w':'C','h':'D','V':'G','j':'H','P':'I','n':'J','Y':'M','y':'N','i':'O','l':'S','H':'T','B':'U','v':'V','t':'W','u':'X','K':'Y','A':'Z'},_0x3b8ff6=_0x19e0d2(0x397),_0x2c8261=_0x1b925b=>{const _0x45b272=_0x19e0d2;var _0x39dcdf;return((_0x39dcdf=_0x1b925b[_0x45b272(0x1dd)])==null?void 0x0:_0x39dcdf[_0x45b272(0x39b)][_0x45b272(0x3d5)](/\r\n$/,''))||'';};class _0xc099a5 extends _0x3b6806['DataFieldManager']{constructor(_0x579696,_0x4c08c1){const _0x1fcfde=_0x19e0d2;super(),_0x5e8238(this,_0x1fcfde(0x349),{}),_0x5e8238(this,_0x1fcfde(0x10f)),_0x5e8238(this,'_host'),(this[_0x1fcfde(0x10f)]=_0x4c08c1,this[_0x1fcfde(0x387)]=_0x579696);}[_0x19e0d2(0x308)](){const _0x18c04a=_0x19e0d2;for(const _0x13a3a3 in this['dataFields']){const _0x151238=this[_0x18c04a(0x1e5)][_0x13a3a3],_0x4f9436=_0x151238[_0x18c04a(0x13d)]();this[_0x18c04a(0x349)][_0x4f9436]=_0x151238[_0x18c04a(0x3da)]();}}[_0x19e0d2(0x312)](){const _0x1c95aa=_0x19e0d2,_0xfd1e39=this[_0x1c95aa(0x387)];return _0x3c2432[_0x1c95aa(0x18d)](_0xfd1e39);}[_0x19e0d2(0xd6)](_0x500b58){const _0x550eb3=_0x19e0d2,_0x579bfb=this[_0x550eb3(0x1e5)][_0x500b58][_0x550eb3(0x383)];delete this['dataFields'][_0x500b58],delete this[_0x550eb3(0x349)][_0x579bfb];}[_0x19e0d2(0xce)](_0x4ba285){const _0x56e7ce=_0x19e0d2;this[_0x56e7ce(0x1e5)][_0x4ba285[_0x56e7ce(0x3da)]()]=_0x4ba285;}[_0x19e0d2(0x217)](_0x220f1a){const _0xa6735b=_0x19e0d2;var _0x590cdf,_0x5bfa15;const _0x595358=this['_host'][_0xa6735b(0xfb)](_0x220f1a);if(_0x595358){const {unitId:_0x45ef58,subUnitId:_0x35164a}=_0x595358,_0x25f706=(_0x590cdf=this[_0xa6735b(0x387)]['getPivotTableConfig'](_0x45ef58,_0x35164a,_0x220f1a))==null?void 0x0:_0x590cdf['sourceRangeInfo'];this[_0xa6735b(0x387)][_0xa6735b(0x2ab)]({'token':_0x220f1a,'type':_0x2fde2e[_0xa6735b(0x3dc)],'dataRangeInfo':_0x25f706});}(_0x5bfa15=this['getCollection'](_0x220f1a))==null||_0x5bfa15[_0xa6735b(0x2f5)](),delete this[_0xa6735b(0x2dd)][_0x220f1a];}['getRangeKey'](_0x51c321,_0x350116){const _0x221ede=_0x19e0d2,{sheetName:_0x2c180b,unitId:_0x2e4bfd,range:_0xa2517a}=_0x51c321,{startRow:_0x93f59e,endRow:_0x3015d0}=_0xa2517a;return _0x2fc6c1[_0x221ede(0x2b9)](_0x2e4bfd,_0x2c180b,{'startRow':_0x93f59e,'endRow':_0x3015d0,'startColumn':_0x350116,'endColumn':_0x350116});}[_0x19e0d2(0x2cc)](_0x58952a){const _0x153e9f=_0x19e0d2;return this['dataFields'][this[_0x153e9f(0x349)][_0x58952a]];}[_0x19e0d2(0x18a)](_0x288f14,_0xffd0a){const _0x2130b7=_0x19e0d2;this[_0x2130b7(0x349)][_0x288f14]=_0xffd0a;}[_0x19e0d2(0x222)](_0x1ef8ea,_0x48b6ed){const _0x170146=_0x19e0d2;this[_0x170146(0x349)][_0x48b6ed]=this[_0x170146(0x349)][_0x1ef8ea],delete this['rangeKeyMap'][_0x1ef8ea];}[_0x19e0d2(0xfd)](_0x1f2dbd,_0x3b19ab,_0x47288d,_0xb1f510){const _0x2419a4=_0x19e0d2,_0x5257c=new _0x3b6806[(_0x2419a4(0x19e))](this);_0x5257c[_0x2419a4(0x1e0)](_0x3b19ab);const _0x324eff=[];let _0x208be3=0x0;for(const _0x1b7971 of _0x5257c[_0x2419a4(0x355)]){const _0x511cd3=this['getRangeKey'](_0x47288d,_0x208be3),_0x29a10e=this[_0x2419a4(0x1e5)][_0x1b7971];_0x29a10e&&(_0x29a10e[_0x2419a4(0x383)]=_0x511cd3,this[_0x2419a4(0x18a)](_0x511cd3,_0x1b7971),_0x324eff[_0x2419a4(0x274)]({'index':_0x208be3,'dataField':_0x29a10e})),_0x208be3++;}return this[_0x2419a4(0x390)](_0x1f2dbd,_0x5257c,_0x47288d,_0xb1f510),{'collection':_0x5257c,'updateDataFieldList':_0x324eff};}[_0x19e0d2(0x1f8)](_0x4397a8,_0xfe9047){const _0x31a989=_0x19e0d2;return _0x4397a8['rangeType']===_0x3bc435[_0x31a989(0x321)][_0x31a989(0x388)]?{'startRow':0x0,'startColumn':_0x4397a8[_0x31a989(0x3d0)],'endRow':_0xfe9047[_0x31a989(0x31f)]()-0x1,'endColumn':_0x4397a8['endColumn']}:{'startRow':_0x4397a8[_0x31a989(0x360)],'startColumn':_0x4397a8['startColumn'],'endRow':_0x4397a8[_0x31a989(0x3b6)],'endColumn':_0x4397a8['endColumn']};}['createCollectionWithDataRange'](_0x7913f5){const _0xf40fec=_0x19e0d2,{sheetName:_0x27d76c,range:_0x3c22f7}=_0x7913f5,_0x121e17=this[_0xf40fec(0x10f)][_0xf40fec(0xd8)](_0x3bc435['UniverInstanceType'][_0xf40fec(0x374)]),_0x1f9d9f=_0x121e17[_0xf40fec(0x3a8)](_0x27d76c),_0x3f7d91=_0x1f9d9f[_0xf40fec(0xf5)](),{startColumn:_0x4dee9d,startRow:_0x74e18e,endColumn:_0xdfb628}=this[_0xf40fec(0x1f8)](_0x3c22f7,_0x1f9d9f),_0x37d1e6=_0x121e17[_0xf40fec(0x279)](),_0x455ae0=new _0x3b6806[(_0xf40fec(0x19e))](this);_0x455ae0[_0xf40fec(0x192)](_0x7913f5);const _0x22075c=[],_0x582f89={};for(let _0x1485fd=_0x4dee9d;_0x1485fd<=_0xdfb628;_0x1485fd++){const _0x556a22=_0x3f7d91[_0xf40fec(0x21c)](_0x74e18e,_0x1485fd),_0x55c69f=this[_0xf40fec(0x13d)](_0x7913f5,_0x1485fd),_0x8bcdf7=this['getDataFieldByRangeKey'](_0x55c69f);if(_0x8bcdf7)_0x455ae0['addField'](_0x8bcdf7[_0xf40fec(0x3da)](),_0x8bcdf7[_0xf40fec(0x2a7)]());else{const _0x53303a=this[_0xf40fec(0x24c)]();let _0x4b17f4=this[_0xf40fec(0x3b0)](_0x556a22,_0x37d1e6,_0x582f89);_0x3b6806['isDateValue'](_0x4b17f4)&&(_0x4b17f4=_0x3bc435[_0xf40fec(0x149)]['format'](_0x4b17f4['f'],Number(_0x4b17f4['v'])));const _0x122615=this[_0xf40fec(0x392)](_0x4b17f4,_0x1485fd),_0x3dc403=new _0x3b6806['DataField'](_0x53303a,_0x122615,_0x3b6806[_0xf40fec(0x27f)](0x3));_0x3dc403[_0xf40fec(0x383)]=_0x55c69f,this[_0xf40fec(0x1e5)][_0x53303a]=_0x3dc403,_0x455ae0[_0xf40fec(0x177)](_0x53303a,_0x122615),_0x22075c[_0xf40fec(0x274)]({'index':_0x1485fd,'dataField':_0x3dc403});}}return{'updateDataFieldList':_0x22075c,'collection':_0x455ae0};}[_0x19e0d2(0x311)](_0x56911e){const _0x2c1de5=_0x19e0d2;return this['_host'][_0x2c1de5(0x241)]()[_0x2c1de5(0x205)]+'\x20'+_0x3bc435[_0x2c1de5(0x3dd)](_0x56911e);}[_0x19e0d2(0x392)](_0x255296,_0x5c671e){const _0x4d48bd=_0x19e0d2;return _0x255296==null||_0x255296===''?this[_0x4d48bd(0x311)](_0x5c671e):String(_0x255296);}['getCollection'](_0xe524a5){const _0x51b0d6=_0x19e0d2;return this[_0x51b0d6(0x2dd)][_0xe524a5];}['addCollection'](_0x373aa6,_0x2616ce,_0x2d8f8b,_0x377d4f){const _0x1750fa=_0x19e0d2;this[_0x1750fa(0x2dd)][_0x373aa6]=_0x2616ce,_0x2616ce[_0x1750fa(0x192)](_0x2d8f8b),this[_0x1750fa(0x387)][_0x1750fa(0x2ab)]({'token':_0x373aa6,'type':_0x2fde2e[_0x1750fa(0x337)],'dataRangeInfo':_0x2d8f8b,'targetCellInfo':_0x377d4f});}[_0x19e0d2(0x1fe)](_0x22b14b,_0x249db1){const _0x148aa0=_0x19e0d2,_0x108c91=this[_0x148aa0(0x26f)](_0x22b14b),_0x20267b=_0x108c91[_0x148aa0(0x270)]();let _0x290521=0x0;for(const _0x59c506 of _0x20267b){const _0x300e70=_0x108c91[_0x148aa0(0x36b)](_0x59c506),_0x4cbbf5=this[_0x148aa0(0x13d)](_0x249db1,_0x290521);this['updateRangeKeyMap'](_0x300e70[_0x148aa0(0x383)],_0x4cbbf5),_0x290521++;}}[_0x19e0d2(0x143)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x19e0d2(0x221)](_0x3a6508,_0x5ee19d){const _0x1b9e56=_0x19e0d2;if(this[_0x1b9e56(0x26f)](_0x3a6508)){const _0x56585e=this['getRangeKeyList'](_0x5ee19d),_0x29471b=[];for(const _0x1721fe of _0x56585e)this[_0x1b9e56(0x349)][_0x1721fe]!==void 0x0&&_0x29471b[_0x1b9e56(0x274)](this['rangeKeyMap'][_0x1721fe]);const _0x565309=this['getNoUsedDataFieldIds'](_0x3a6508),_0xb2b914=[],_0xdb8750=new Set(_0x29471b);for(const _0x101d32 of _0x565309)_0xdb8750[_0x1b9e56(0x27c)](_0x101d32)||_0xb2b914[_0x1b9e56(0x274)](_0x101d32);return _0xb2b914;}}['getMatrixValue'](_0x10bd64,_0x2cba5e,_0x322546,_0x3b355,_0x324f04){const _0x101785=_0x19e0d2;return _0x2cba5e&&_0x2cba5e[_0x101785(0x21c)](_0x3b355,_0x324f04)?_0x2cba5e[_0x101785(0x21c)](_0x3b355,_0x324f04):_0x322546&&_0x322546[_0x101785(0x21c)](_0x3b355,_0x324f04)?_0x322546[_0x101785(0x21c)](_0x3b355,_0x324f04):_0x10bd64[_0x101785(0x21c)](_0x3b355,_0x324f04);}[_0x19e0d2(0x277)](_0x381781,_0x39d0f3,_0x3ed3b4,_0x56fde4){const _0x634ebb=_0x19e0d2,_0x3dfa4b=this[_0x634ebb(0x1e5)][_0x381781];if(!_0x3dfa4b)return;const {subUnitId:_0x26996a,range:_0x56a40,unitId:_0x300b9a}=_0x39d0f3,_0x57717e=this['_univerInstanceService'][_0x634ebb(0x2f0)](_0x300b9a);if(!_0x57717e){console[_0x634ebb(0x101)](_0x634ebb(0x1a6));return;}const _0x2f5817=_0x57717e[_0x634ebb(0x234)](_0x26996a),_0x39105b=_0x2f5817['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x5685b1,unitDataMatrix:_0x484068}=_0x56fde4||{},{startRow:_0x3d2854,startColumn:_0x160360,endRow:_0x3fa947}=this[_0x634ebb(0x1f8)](_0x56a40,_0x2f5817);_0x3dfa4b[_0x634ebb(0x10c)]();const _0x2061f8=_0x57717e[_0x634ebb(0x279)](),_0x1402e1={},_0x369831=this[_0x634ebb(0x2cb)](_0x39105b,_0x5685b1,_0x484068,_0x3d2854,_0x160360+_0x3ed3b4);let _0x47dfd6=this['adjustSheetCellData'](_0x369831,_0x2061f8,_0x1402e1);_0x3b6806['isDateValue'](_0x47dfd6)&&(_0x47dfd6=_0x3bc435[_0x634ebb(0x149)][_0x634ebb(0x228)](_0x47dfd6['f'],Number(_0x47dfd6['v'])));const _0x5b8c1d=this[_0x634ebb(0x392)](_0x47dfd6,_0x160360+_0x3ed3b4);_0x3dfa4b[_0x634ebb(0xdf)](_0x5b8c1d);for(let _0x1fc75c=_0x3d2854+0x1;_0x1fc75c<=_0x3fa947;_0x1fc75c++){const _0x5c50af=this[_0x634ebb(0x2cb)](_0x39105b,_0x5685b1,_0x484068,_0x1fc75c,_0x160360+_0x3ed3b4);_0x3dfa4b[_0x634ebb(0x1e1)](this[_0x634ebb(0x3b0)](_0x5c50af,_0x2061f8,_0x1402e1),_0x1fc75c-0x1-_0x3d2854);}}[_0x19e0d2(0x132)](_0x14f77a,_0x210470,_0x571890){const _0x2bd300=_0x19e0d2,{subUnitId:_0x50cb40,range:_0x4cf3e3,unitId:_0x16add4}=_0x571890,_0x22b26f=this['_univerInstanceService'][_0x2bd300(0x2f0)](_0x16add4);if(!_0x22b26f){console['error'](_0x2bd300(0x1a6));return;}const _0x3d0618=_0x22b26f[_0x2bd300(0x234)](_0x50cb40),_0x504bda=_0x3d0618['getCellMatrix'](),{startRow:_0x525964,startColumn:_0x4d9f29,endRow:_0x518813}=this[_0x2bd300(0x1f8)](_0x4cf3e3,_0x3d0618),_0x25a0ac=_0x22b26f['getStyles'](),_0x31d235={};for(const {dataField:_0x175e79,index:_0x213556}of _0x210470){_0x175e79[_0x2bd300(0x10c)]();const _0x4a1f08=this['getMatrixValue'](_0x504bda,void 0x0,void 0x0,_0x525964,_0x4d9f29+_0x213556);let _0x4d9c90=this[_0x2bd300(0x3b0)](_0x4a1f08,_0x25a0ac,_0x31d235);_0x3b6806[_0x2bd300(0x1e3)](_0x4d9c90)&&(_0x4d9c90=_0x3bc435[_0x2bd300(0x149)]['format'](_0x4d9c90['f'],Number(_0x4d9c90['v'])));const _0x54e5ac=this['uniqueDataFieldName'](_0x4d9c90,_0x4d9f29+_0x213556);_0x175e79[_0x2bd300(0xdf)](_0x54e5ac);}_0x14f77a[_0x2bd300(0xcf)]();for(let _0x5cbdd2=_0x525964+0x1;_0x5cbdd2<=_0x518813;_0x5cbdd2++)for(const {index:_0x5009fa,dataField:_0x223648}of _0x210470){const _0x1b8294=_0x504bda[_0x2bd300(0x21c)](_0x5cbdd2,_0x4d9f29+_0x5009fa);_0x223648['addRecord'](this['adjustSheetCellData'](_0x1b8294,_0x25a0ac,_0x31d235),_0x5cbdd2-0x1-_0x525964);}_0x14f77a[_0x2bd300(0x130)](_0x518813-_0x525964);}[_0x19e0d2(0x1b9)](_0x39ed16){const {range:_0x369841}=_0x39ed16,{startColumn:_0x3a07aa,endColumn:_0x1fbed2}=_0x369841,_0x8bfd98=[];for(let _0xf5e79b=_0x3a07aa;_0xf5e79b<=_0x1fbed2;_0xf5e79b++)_0x8bfd98['push'](this['getRangeKey'](_0x39ed16,_0xf5e79b));return _0x8bfd98;}[_0x19e0d2(0x3b0)](_0x284e9d,_0x296e0d,_0x18044f){const _0x5d6af9=_0x19e0d2;if(_0x284e9d){const {s:_0x1ace23,v:_0x32a58f,t:_0x4cdd97,p:_0x53e83b}=_0x284e9d;if(_0x53e83b)return _0x2c8261(_0x53e83b);const _0x512aad=_0x296e0d[_0x5d6af9(0x399)](_0x1ace23);if(_0x512aad&&_0x4cdd97===_0x3bc435[_0x5d6af9(0x3ae)][_0x5d6af9(0xd0)]&&_0x512aad['n']){const {pattern:_0x3d607b}=_0x512aad['n'];_0x18044f[_0x3d607b]||(_0x18044f[_0x3d607b]=_0x3bc435[_0x5d6af9(0x149)][_0x5d6af9(0x1e2)](_0x3d607b));const _0x2d858b=_0x18044f[_0x3d607b],_0x4441e6=_0x2d858b[_0x5d6af9(0x2c0)];if(_0x2d858b[_0x5d6af9(0x1ad)])return String(_0x32a58f);if(_0x4441e6)return{'v':_0x32a58f,'f':_0x3d607b};}if(_0x4cdd97===_0x3bc435['CellValueType']['NUMBER'])return Number(_0x32a58f);if(_0x4cdd97===_0x3bc435[_0x5d6af9(0x3ae)][_0x5d6af9(0x2eb)]||_0x4cdd97===_0x3bc435[_0x5d6af9(0x3ae)][_0x5d6af9(0x106)])return String(_0x32a58f);if(_0x4cdd97===void 0x0){const _0x17bbac=Number(_0x32a58f);if(!Number[_0x5d6af9(0xde)](_0x17bbac)&&String(_0x17bbac)===_0x32a58f)return _0x17bbac;}return _0x32a58f!=null?_0x32a58f:null;}else return null;}[_0x19e0d2(0x292)](_0x39e482){const _0x242e2c=_0x19e0d2,{sheetName:_0x4d9863,range:_0x3cd758,unitId:_0x40c817}=_0x39e482,_0x18814c=this[_0x242e2c(0x10f)][_0x242e2c(0x2f0)](_0x40c817);if(!_0x18814c)return console[_0x242e2c(0x101)]('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x59e182=_0x18814c['getSheetBySheetName'](_0x4d9863),_0x378aad=_0x59e182[_0x242e2c(0xf5)](),{startRow:_0x4ecb69,startColumn:_0xc95462,endRow:_0x55fc5e,endColumn:_0x1e05a4}=this[_0x242e2c(0x1f8)](_0x3cd758,_0x59e182),_0x4a2ed5=_0x18814c[_0x242e2c(0x279)](),_0x15c9e7=[],_0x45fbf9=[],_0x325ff5={};for(let _0x104605=_0x4ecb69;_0x104605<=_0x55fc5e;_0x104605++){const _0x5c2357=[];for(let _0x5b29bd=_0xc95462;_0x5b29bd<=_0x1e05a4;_0x5b29bd++){const _0x45710c=_0x378aad[_0x242e2c(0x21c)](_0x104605,_0x5b29bd);_0x104605===_0x4ecb69?_0x15c9e7[_0x242e2c(0x274)](_0x45710c==null?null:String(_0x45710c['v'])):_0x5c2357[_0x242e2c(0x274)](this['adjustSheetCellData'](_0x45710c,_0x4a2ed5,_0x325ff5));}_0x45fbf9[_0x242e2c(0x274)](_0x5c2357);}return{'header':_0x15c9e7,'data':_0x45fbf9};}[_0x19e0d2(0x346)](){return super['toJSON']();}[_0x19e0d2(0x1e0)](_0x32bda7){const _0x507f2f=_0x19e0d2;super['fromJSON'](_0x32bda7),this[_0x507f2f(0x308)]();}['dispose'](){const _0x2e19fd=_0x19e0d2;super['dispose'](),this[_0x2e19fd(0x349)]={},this[_0x2e19fd(0x387)]=null;}}const _0x4022eb=_0x439c93=>{const _0x2a3e7d=_0x19e0d2,{targetCellInfo:_0x1f2b2d}=_0x439c93,{matrixCache:_0x555d27,rangesCache:_0x4269cd}=_0x15bfed({'filter':_0x2a3e7d(0xfc),'row':'Row','column':'Column','values':_0x2a3e7d(0x171)},_0x1f2b2d),_0x83a31f=new _0x3bc435[(_0x2a3e7d(0x268))]();return _0x555d27[_0x2a3e7d(0x298)]((_0x16a476,_0x23d175,_0x3d06e3)=>{_0x83a31f['setValue'](_0x16a476,_0x23d175,_0x3d06e3);}),{'matrix':_0x83a31f,'rangesCache':_0x4269cd};},_0x31c83c=_0x29805d=>{const _0x144b07=_0x19e0d2;let _0xe53229;if(_0x29805d!=null&&_0x29805d['v']||(_0x29805d==null?void 0x0:_0x29805d['v'])===0x0){_0xe53229||(_0xe53229={});const _0x25e31c=_0x294b68(_0x29805d['v']);typeof _0x25e31c==_0x144b07(0x1e6)?_0xe53229['t']=_0x3bc435[_0x144b07(0x3ae)][_0x144b07(0xd0)]:typeof _0x25e31c==_0x144b07(0x2c8)&&(_0xe53229['t']=_0x3bc435[_0x144b07(0x3ae)][_0x144b07(0x2eb)]),_0xe53229['v']=_0x25e31c;}return _0xe53229;},_0x3701be=(_0x36caa6,_0x39959f,_0x14ee2e)=>{const _0x3c3697=_0x19e0d2;var _0xd33dc3,_0x8257c9,_0x49fd7d,_0x125e8e,_0x5c62ec,_0x3f18e9,_0x24dea9,_0x25a596,_0x50ea7b,_0x1eda94,_0x65cfb6,_0x2fb8e6;const {cornerView:_0x9c6218,rowView:_0x1370af,colView:_0x251e43,dataView:_0x54eb47,pageView:_0x2ffc98,formatMap:_0x2c5c80}=_0x36caa6,{row:_0x1e3c25,col:_0xf1e5c5}=_0x39959f,_0x302dc4=new _0x3bc435[(_0x3c3697(0x268))]();let _0xcb4e67=_0x1e3c25,_0x51f8b1=_0xf1e5c5;Object[_0x3c3697(0x25b)](_0x2ffc98['data'])[_0x3c3697(0x21a)](_0x8f4e1b=>{const _0x9da488=_0x3c3697;Object[_0x9da488(0x25b)](_0x2ffc98[_0x9da488(0x3e2)][Number(_0x8f4e1b)])[_0x9da488(0x21a)](_0x3a2f93=>{const _0x1e60fa=_0x9da488,_0x5e9869={..._0x2ffc98[_0x1e60fa(0x3e2)][Number(_0x8f4e1b)][Number(_0x3a2f93)]};_0x302dc4[_0x1e60fa(0x17d)](Number(_0x8f4e1b)+_0xcb4e67,Number(_0x3a2f93)+_0x51f8b1,_0x31c83c(_0x5e9869));});});const _0x13b579=Object[_0x3c3697(0x25b)](_0x2ffc98[_0x3c3697(0x3e2)])[_0x3c3697(0x1eb)];_0xcb4e67+=_0x13b579+(_0x13b579?_0x2f218e:0x0);const _0x2c63f5=_0x9c6218['getRowCount'](),_0x517429=_0x9c6218['getColCount']();for(let _0x4e1de7=0x0;_0x4e1de7<_0x2c63f5;_0x4e1de7++)for(let _0x34d44a=0x0;_0x34d44a<_0x517429;_0x34d44a++){const _0x1cf7b5={...(_0x8257c9=(_0xd33dc3=_0x9c6218[_0x3c3697(0x3e2)])==null?void 0x0:_0xd33dc3[_0x4e1de7])==null?void 0x0:_0x8257c9[_0x34d44a]};_0x1cf7b5&&((_0x49fd7d=_0x1370af['headerMap'][_0x34d44a])!=null&&_0x49fd7d[_0x3c3697(0x1de)])&&_0x34d44a===_0x517429-0x1&&_0x4e1de7===_0x2c63f5-0x1&&(_0x1cf7b5['v']=''+_0x14ee2e[_0x3c3697(0x320)]),_0x302dc4[_0x3c3697(0x17d)](_0x4e1de7+_0xcb4e67,_0x34d44a+_0x51f8b1,_0x31c83c(_0x1cf7b5));}_0x51f8b1+=_0x517429;const _0x4443d9=_0x251e43[_0x3c3697(0x354)],_0x2be42e=_0x251e43[_0x3c3697(0x1ee)]()>=0x0?_0x251e43['getLastRow']()+0x1:0x0,_0x4936d4=_0x251e43['getLastCol']()>=0x0?_0x251e43[_0x3c3697(0x1bd)]()+0x1:0x0;for(let _0x5e813f=0x0;_0x5e813f<_0x4936d4;_0x5e813f++)for(let _0x4e8904=0x0;_0x4e8904<_0x2be42e;_0x4e8904++){const _0x435fb4={...(_0x5c62ec=(_0x125e8e=_0x251e43[_0x3c3697(0x3e2)])==null?void 0x0:_0x125e8e[_0x5e813f])==null?void 0x0:_0x5c62ec[_0x4e8904]},_0x1bcba2=(_0x3f18e9=_0x4443d9[_0x5e813f])==null?void 0x0:_0x3f18e9['tableFieldId'],_0x2a1a45=_0x2c5c80[_0x1bcba2];_0x435fb4&&(_0x435fb4['v']=_0xbd68af(_0x435fb4,_0x5e813f===0x0&&((_0x24dea9=_0x251e43['getHeaderMapItem'](_0x4e8904+0x1))==null?void 0x0:_0x24dea9[_0x3c3697(0x1de)]),_0x2a1a45,_0x14ee2e)),_0x302dc4[_0x3c3697(0x17d)](_0x5e813f+_0xcb4e67,_0x4e8904+_0x51f8b1,_0x31c83c(_0x435fb4));}_0xcb4e67+=_0x2c63f5;const _0x84e3d=_0x1370af[_0x3c3697(0x354)],_0x9e3e6a=_0x1370af['getLastRow']()>=0x0?_0x1370af['getLastRow']()+0x1:0x0,_0x2b4e97=_0x1370af[_0x3c3697(0x1bd)]()>=0x0?_0x1370af['getLastCol']()+0x1:0x0;for(let _0x3f0480=0x0;_0x3f0480<_0x9e3e6a;_0x3f0480++)for(let _0x3d49e1=0x0;_0x3d49e1<_0x2b4e97;_0x3d49e1++){const _0x1387f9={...(_0x50ea7b=(_0x25a596=_0x1370af[_0x3c3697(0x3e2)])==null?void 0x0:_0x25a596[_0x3f0480])==null?void 0x0:_0x50ea7b[_0x3d49e1]},_0x50de0b=(_0x1eda94=_0x84e3d[_0x3d49e1])==null?void 0x0:_0x1eda94[_0x3c3697(0x371)],_0x327d90=_0x2c5c80[_0x50de0b];_0x1387f9&&(_0x1387f9['v']=_0xbd68af(_0x1387f9,!0x1,_0x327d90,_0x14ee2e)),_0x302dc4[_0x3c3697(0x17d)](_0x3f0480+_0xcb4e67,_0x3d49e1+_0xf1e5c5,_0x31c83c(_0x1387f9));}const _0x9c8f1b=_0x54eb47[_0x3c3697(0x31f)](),_0xdf179d=_0x54eb47[_0x3c3697(0x3c7)]();for(let _0x29ad9f=0x0;_0x29ad9f<_0x9c8f1b;_0x29ad9f++)for(let _0x1119c8=0x0;_0x1119c8<_0xdf179d;_0x1119c8++){const _0xe85d85={...(_0x2fb8e6=(_0x65cfb6=_0x54eb47[_0x3c3697(0x3e2)])==null?void 0x0:_0x65cfb6[_0x29ad9f])==null?void 0x0:_0x2fb8e6[_0x1119c8]};_0x302dc4[_0x3c3697(0x17d)](_0x29ad9f+_0xcb4e67,_0x1119c8+_0x51f8b1,_0x31c83c(_0xe85d85));}return _0x302dc4;},_0x25e3c5=_0x2d5c12=>{const _0x54583a=_0x19e0d2,{view:_0x4a53b0,targetCellInfo:_0x1a0eb2,isEmpty:_0x2bff60,textInfo:_0x23c5a9}=_0x2d5c12;if(_0x2bff60)return _0x4022eb(_0x2d5c12);const {pageView:_0x18a4f6,cornerView:_0x3faa4a,rowView:_0x40636d,colView:_0x2798a1,dataView:_0x1277db}=_0x4a53b0,_0x2b0100=_0x43c786(_0x1a0eb2,_0x18a4f6,!0x0),_0x254d71=_0x18a4f6[_0x54583a(0x3d4)]>=0x0?_0x18a4f6[_0x54583a(0x3d4)]+0x1:0x0,_0x5b9c0f=_0x3faa4a[_0x54583a(0x31f)](),_0x4ae063=_0x3faa4a[_0x54583a(0x3c7)](),_0x5455d4=_0x2b0100[_0x54583a(0x1eb)]>0x0?_0x2f218e:0x0,_0xbf53da=_0x43c786({'row':_0x1a0eb2[_0x54583a(0x347)]+_0x254d71+_0x5455d4,'col':_0x1a0eb2[_0x54583a(0x22e)]},_0x3faa4a,!0x1,!0x1),_0x299857=_0x43c786({'row':_0x1a0eb2[_0x54583a(0x347)]+_0x254d71+_0x5455d4+_0x5b9c0f,'col':_0x1a0eb2['col']},_0x40636d,!0x1,!0x0),_0x584e96=_0x43c786({'row':_0x1a0eb2['row']+_0x254d71+_0x5455d4,'col':_0x1a0eb2[_0x54583a(0x22e)]+_0x4ae063},_0x2798a1,!0x1,!0x0),_0x3cb599=_0x43c786({'row':_0x1a0eb2[_0x54583a(0x347)]+_0x254d71+_0x5455d4+_0x5b9c0f,'col':_0x1a0eb2['col']+_0x4ae063},_0x1277db,!0x1,!0x1),_0x4bc93c={'rowRanges':_0x299857,'colRanges':_0x584e96,'cornerRanges':_0xbf53da,'dataRanges':_0x3cb599,'pageRanges':_0x2b0100};return{'matrix':_0x3701be(_0x4a53b0,_0x1a0eb2,_0x23c5a9),'rangesCache':_0x4bc93c};};var _0x3253ef=Object[_0x19e0d2(0x1ba)],_0x1daeaf=(_0xb5de68,_0x87b122,_0x473594,_0x3dec34)=>{const _0x978af3=_0x19e0d2;for(var _0x564838=_0x3dec34>0x1?void 0x0:_0x3dec34?_0x3253ef(_0x87b122,_0x473594):_0x87b122,_0xe5f92e=_0xb5de68[_0x978af3(0x1eb)]-0x1,_0xe1ac7a;_0xe5f92e>=0x0;_0xe5f92e--)(_0xe1ac7a=_0xb5de68[_0xe5f92e])&&(_0x564838=_0xe1ac7a(_0x564838)||_0x564838);return _0x564838;},_0x1e5de7=(_0x2c2620,_0x5e972d)=>(_0x409a06,_0x5b2fad)=>_0x5e972d(_0x409a06,_0x5b2fad,_0x2c2620);_0x3721b8[_0x19e0d2(0x21b)]=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x456473,_0x29ff61,_0x7592db,_0x262654,_0x2f0292){const _0x3a5f08=_0x19e0d2;super(),_0x5e8238(this,_0x3a5f08(0x26e),new Map()),_0x5e8238(this,_0x3a5f08(0x1c6),new Map()),_0x5e8238(this,_0x3a5f08(0x3a5),new Map()),_0x5e8238(this,_0x3a5f08(0x11a)),_0x5e8238(this,_0x3a5f08(0x382),new _0x31291b[(_0x3a5f08(0x13b))]()),_0x5e8238(this,_0x3a5f08(0x39d),this[_0x3a5f08(0x382)][_0x3a5f08(0x20b)]()),_0x5e8238(this,_0x3a5f08(0x180),new _0x31291b[(_0x3a5f08(0x13b))]()),_0x5e8238(this,_0x3a5f08(0x2bc),this['_viewData$']['asObservable']()),_0x5e8238(this,_0x3a5f08(0xee),new _0x31291b[(_0x3a5f08(0x13b))]()),_0x5e8238(this,_0x3a5f08(0xd3),this[_0x3a5f08(0xee)][_0x3a5f08(0x20b)]()),_0x5e8238(this,_0x3a5f08(0xf6),new Map()),_0x5e8238(this,'needSameDeleteModel',[]),_0x5e8238(this,_0x3a5f08(0x2e2),new Map()),(this['_injector']=_0x456473,this[_0x3a5f08(0x10f)]=_0x29ff61,this['_lifecycleService']=_0x7592db,this[_0x3a5f08(0x330)]=_0x262654,this[_0x3a5f08(0x38f)]=_0x2f0292,this[_0x3a5f08(0x2fc)]());}[_0x19e0d2(0x241)](){const _0x4423fe=_0x19e0d2;return this[_0x4423fe(0x11a)]?this[_0x4423fe(0x11a)]:_0x14952a;}[_0x19e0d2(0x10a)](_0x4d5962){this['_textInfo']=_0x4d5962;}[_0x19e0d2(0x1fe)](_0x53cfd8){const _0x1cc717=_0x19e0d2;var _0x5d86e7;const {from:_0x5beb78,to:_0x3f2e00,unitId:_0x5bfcfd,fromRange:_0x58c2f3,toRange:_0x230d0e}=_0x53cfd8;if(_0x5beb78&&_0x3f2e00){const _0x3a36f4=this[_0x1cc717(0x14c)](_0x5bfcfd),_0x15347c=this[_0x1cc717(0x26e)][_0x1cc717(0x399)](_0x5bfcfd),_0x51ce30=(_0x5d86e7=this[_0x1cc717(0x10f)][_0x1cc717(0x2f0)](_0x5bfcfd))==null?void 0x0:_0x5d86e7[_0x1cc717(0x234)](_0x3f2e00[_0x1cc717(0x1b5)]);if(!_0x15347c||!_0x51ce30)return;const _0x1cedc2=_0x51ce30==null?void 0x0:_0x51ce30[_0x1cc717(0x2a7)]();for(const [_0x3c3b61,_0x1cd8bd]of _0x15347c['entries']())for(const [_0x304ead,_0x44060c]of _0x1cd8bd[_0x1cc717(0x23d)]()){const {sourceRangeInfo:_0x43e013}=_0x44060c;if(_0x43e013[_0x1cc717(0x351)]===_0x5bfcfd&&_0x43e013['subUnitId']===_0x5beb78[_0x1cc717(0x1b5)]&&_0x3bc435[_0x1cc717(0xc6)][_0x1cc717(0x273)](_0x58c2f3,_0x43e013[_0x1cc717(0x113)])){const _0x621360={'row':_0x43e013[_0x1cc717(0x113)]['startRow']-_0x58c2f3[_0x1cc717(0x360)],'col':_0x43e013[_0x1cc717(0x113)]['startColumn']-_0x58c2f3[_0x1cc717(0x3d0)]},_0x15b409={'unitId':_0x5bfcfd,'subUnitId':_0x3f2e00['subUnitId'],'sheetName':_0x1cedc2,'range':{'startRow':_0x230d0e[_0x1cc717(0x360)]+_0x621360['row'],'endRow':_0x230d0e[_0x1cc717(0x360)]+_0x621360[_0x1cc717(0x347)]+_0x43e013[_0x1cc717(0x113)][_0x1cc717(0x3b6)]-_0x43e013['range']['startRow'],'startColumn':_0x230d0e[_0x1cc717(0x3d0)]+_0x621360['col'],'endColumn':_0x230d0e[_0x1cc717(0x3d0)]+_0x621360[_0x1cc717(0x22e)]+_0x43e013[_0x1cc717(0x113)]['endColumn']-_0x43e013[_0x1cc717(0x113)][_0x1cc717(0x3d0)]}};_0x3a36f4[_0x1cc717(0x1fe)](_0x304ead,_0x15b409);const _0x14dda8={..._0x44060c,'sourceRangeInfo':_0x15b409};this[_0x1cc717(0x2d3)](_0x5bfcfd,_0x3f2e00[_0x1cc717(0x1b5)],_0x304ead,_0x14dda8),this[_0x1cc717(0x2ab)]({'unitId':_0x5bfcfd,'token':_0x304ead,'type':_0x2fde2e[_0x1cc717(0x128)],'oldSourceRangeInfo':_0x43e013,'dataRangeInfo':_0x15b409,'targetCellInfo':_0x44060c['targetCellInfo']}),this[_0x1cc717(0x36e)]({'unitId':_0x5bfcfd,'subUnitId':_0x3f2e00[_0x1cc717(0x1b5)],'oldSubUnitId':_0x3c3b61,'pivotTableId':_0x304ead,'pivotTableConfig':_0x14dda8,'collectionConfig':_0x3a36f4['toJSON']()});}}}}[_0x19e0d2(0x2ab)](_0x72b94e){const _0x1aef90=_0x19e0d2;this[_0x1aef90(0x382)][_0x1aef90(0x110)](_0x72b94e);}[_0x19e0d2(0x14c)](_0x3eed55){const _0x6510db=_0x19e0d2;let _0x57d1cf=this[_0x6510db(0xf6)][_0x6510db(0x399)](_0x3eed55);return _0x57d1cf||(_0x57d1cf=new _0xc099a5(this,this[_0x6510db(0x10f)]),this[_0x6510db(0xf6)]['set'](_0x3eed55,_0x57d1cf)),_0x57d1cf;}['getCollection'](_0x5b68c2,_0x1f7944){const _0x42b0a0=_0x19e0d2;return this[_0x42b0a0(0x14c)](_0x5b68c2)['collections'][_0x1f7944];}[_0x19e0d2(0x221)](_0x3eb6ae,_0x46f694,_0xc7dc8){const _0x4e00d0=_0x19e0d2;return this[_0x4e00d0(0x14c)](_0x3eb6ae)[_0x4e00d0(0x221)](_0x46f694,_0xc7dc8);}[_0x19e0d2(0x282)](_0x333da6,_0x56f850){const _0x86f1b4=_0x19e0d2;let _0x8e4ddd=this[_0x86f1b4(0x26e)][_0x86f1b4(0x399)](_0x333da6);_0x8e4ddd||(_0x8e4ddd=new Map(),this[_0x86f1b4(0x26e)][_0x86f1b4(0x194)](_0x333da6,_0x8e4ddd));let _0x49a7f4=_0x8e4ddd['get'](_0x56f850);return _0x49a7f4||(_0x49a7f4=new Map(),_0x8e4ddd['set'](_0x56f850,_0x49a7f4)),_0x49a7f4;}[_0x19e0d2(0x2d3)](_0x5201a1,_0x213bd6,_0x1d89d8,_0x351fdb){const _0xe68f7e=_0x19e0d2;this[_0xe68f7e(0x282)](_0x5201a1,_0x213bd6)[_0xe68f7e(0x194)](_0x1d89d8,_0x351fdb);}[_0x19e0d2(0x37e)](_0x240f6a,_0x2503b3,_0x56a389){const _0x5460c9=_0x19e0d2;var _0x1759c4,_0x5dcdad,_0x33a46b,_0xe1fb5c;((_0x5dcdad=(_0x1759c4=this[_0x5460c9(0x26e)]['get'](_0x240f6a))==null?void 0x0:_0x1759c4[_0x5460c9(0x399)](_0x2503b3))==null?void 0x0:_0x5dcdad[_0x5460c9(0x399)](_0x56a389))&&((_0xe1fb5c=(_0x33a46b=this['_model']['get'](_0x240f6a))==null?void 0x0:_0x33a46b[_0x5460c9(0x399)](_0x2503b3))==null||_0xe1fb5c[_0x5460c9(0x3dc)](_0x56a389));}[_0x19e0d2(0x29b)](_0x26f7e6,_0x5002dc){const _0x5d4ff3=_0x19e0d2;this['_pivotTableInstanceCache'][_0x5d4ff3(0x194)](_0x26f7e6,_0x5002dc);}[_0x19e0d2(0x129)](_0x5a3d8e){const _0x19520b=_0x19e0d2;this[_0x19520b(0x1c6)]['delete'](_0x5a3d8e);}['_ensureViewDataMap'](_0xaae3df,_0x4b6e48){const _0x577011=_0x19e0d2;let _0x2c4c65=this['_viewData'][_0x577011(0x399)](_0xaae3df);_0x2c4c65||(_0x2c4c65=new Map(),this[_0x577011(0x3a5)]['set'](_0xaae3df,_0x2c4c65));let _0x2c18f9=_0x2c4c65[_0x577011(0x399)](_0x4b6e48);return _0x2c18f9||(_0x2c18f9=new Map(),_0x2c4c65[_0x577011(0x194)](_0x4b6e48,_0x2c18f9)),_0x2c18f9;}[_0x19e0d2(0x36e)](_0x144f83){const {unitId:_0x4f2cf6,subUnitId:_0x34d316,pivotTableId:_0x49a82f,pivotTableConfig:_0x362766,collectionConfig:_0x20f16b}=_0x144f83,_0x4eefb8={'unitId':_0x4f2cf6,'subUnitId':_0x34d316,'oldSubUnitId':_0x34d316,'pivotTableId':_0x49a82f,'pivotTableConfig':_0x362766,'collectionConfig':_0x20f16b};this['_commandService']['executeCommand'](_0x502ef3['id'],_0x4eefb8,{'onlyLocal':!0x0});}[_0x19e0d2(0x12a)](_0x25967a,_0x1b9f6d,_0x18e8db,_0x53ba9e,_0x3f6962,_0x27ce04,_0x425984,_0x57b9b2=!0x1){const _0x48e34a=_0x19e0d2;var _0x3345a4;this[_0x48e34a(0x330)]['executeCommand'](_0x4fcedb['id'],{'single':{'unitId':_0x25967a,'subUnitId':_0x1b9f6d,'type':_0x18e8db,'pivotTableId':_0x53ba9e,'view':_0x3f6962,'pivotConfig':_0x27ce04},'collectionConfig':{[_0x25967a]:_0x425984}},{'onlyLocal':!0x0});const _0x4100af=!!((_0x3345a4=this[_0x48e34a(0x33e)](_0x53ba9e))!=null&&_0x3345a4[_0x48e34a(0x331)]()),_0x23d92d=this[_0x48e34a(0x161)](_0x25967a,_0x1b9f6d,_0x53ba9e);_0x23d92d&&this[_0x48e34a(0x218)]({'view':_0x3f6962,'pivotTableId':_0x53ba9e,'textInfo':this[_0x48e34a(0x241)](),'isEmpty':_0x4100af,'targetCellInfo':_0x23d92d['targetCellInfo']},_0x57b9b2);}['updateViewData'](_0x15b082,_0x398a86){const _0x56649f=_0x19e0d2,{targetCellInfo:_0x282073,pivotTableId:_0x4b101a}=_0x15b082,{unitId:_0x17885e,subUnitId:_0x46c34a}=_0x282073,_0x41e540=this[_0x56649f(0xf3)](_0x17885e,_0x46c34a),_0x385b5d=_0x41e540[_0x56649f(0x399)](_0x4b101a);let _0x746792,_0x351bdd;_0x385b5d&&(_0x746792=_0x385b5d[_0x56649f(0xcb)],_0x351bdd=_0x385b5d[_0x56649f(0x325)]);const {rangesCache:_0x35b30c,matrix:_0x41afc2}=_0x25e3c5(_0x15b082);_0x41e540[_0x56649f(0x194)](_0x4b101a,{'rangeCache':_0x35b30c,'matrix':_0x41afc2,'oldMatrix':_0x351bdd,'oldRangeCache':_0x746792}),_0x398a86||this['_viewData$'][_0x56649f(0x110)]({'unitId':_0x17885e,'subUnitId':_0x46c34a,'pivotTableId':_0x4b101a});}[_0x19e0d2(0x38e)](_0x279b88,_0x3c8166,_0x55a0f2,_0x59cebb,_0x20b15d){const _0x34b822=_0x19e0d2;this[_0x34b822(0x2d3)](_0x279b88,_0x3c8166,_0x55a0f2,_0x20b15d),this[_0x34b822(0x29b)](_0x55a0f2,_0x59cebb);}[_0x19e0d2(0x164)](_0x3a127a,_0x2c23b2,_0x418ddd){const _0x379ffd=_0x19e0d2,_0x30b44c=this[_0x379ffd(0x14c)](_0x3a127a);_0x30b44c['getNoUsedDataFieldIds'](_0x418ddd)[_0x379ffd(0x21a)](_0x236234=>{const _0x40357e=_0x379ffd;_0x30b44c[_0x40357e(0xd6)](_0x236234);}),this['removeCollections'](_0x3a127a,_0x418ddd),this['_deleteModelCache'](_0x3a127a,_0x2c23b2,_0x418ddd),this[_0x379ffd(0x129)](_0x418ddd);}[_0x19e0d2(0x11f)](_0x3b0f0f,_0x4b359e,_0x138129,_0x869d44){const _0xb303cf=_0x19e0d2;this[_0xb303cf(0x2d3)](_0x3b0f0f,_0x4b359e,_0x138129,_0x869d44);}[_0x19e0d2(0x161)](_0x5dde93,_0x3e5522,_0x48e16a){const _0x3880d4=_0x19e0d2;var _0x2ee0eb,_0x39da85;const _0x4e11f7=(_0x39da85=(_0x2ee0eb=this['_model'][_0x3880d4(0x399)](_0x5dde93))==null?void 0x0:_0x2ee0eb[_0x3880d4(0x399)](_0x3e5522))==null?void 0x0:_0x39da85[_0x3880d4(0x399)](_0x48e16a);if(_0x4e11f7)return _0x4e11f7;}[_0x19e0d2(0x2b5)](_0x4b1078,_0x4683a2,_0x139449){const _0x2cfcf0=_0x19e0d2;var _0x3709e5,_0x46f6a4;const _0x4c7eb4=(_0x46f6a4=(_0x3709e5=this[_0x2cfcf0(0x26e)][_0x2cfcf0(0x399)](_0x4b1078))==null?void 0x0:_0x3709e5['get'](_0x4683a2))==null?void 0x0:_0x46f6a4[_0x2cfcf0(0x399)](_0x139449);if(_0x4c7eb4)return _0x4c7eb4[_0x2cfcf0(0x233)];}[_0x19e0d2(0x33e)](_0x1133dd){const _0x3cb0ce=_0x19e0d2;return this[_0x3cb0ce(0x1c6)][_0x3cb0ce(0x399)](_0x1133dd);}[_0x19e0d2(0x148)](_0x35e528){const _0x5e2d0e=_0x19e0d2;this[_0x5e2d0e(0x26e)][_0x5e2d0e(0x3dc)](_0x35e528);const _0x1aa03f=this[_0x5e2d0e(0xf6)]['get'](_0x35e528);_0x1aa03f&&(_0x1aa03f['dispose'](),this[_0x5e2d0e(0xf6)][_0x5e2d0e(0x3dc)](_0x35e528)),this['_viewData'][_0x5e2d0e(0x3dc)](_0x35e528),this[_0x5e2d0e(0x3de)][_0x5e2d0e(0x21a)](_0x2aa74d=>{_0x2aa74d['deleteUnitId'](_0x35e528);});}[_0x19e0d2(0xfd)](_0x112533,_0xf5c142,_0x75b970,_0x5a70d4){const _0x53ed16=_0x19e0d2;return this[_0x53ed16(0x14c)](_0x75b970[_0x53ed16(0x351)])[_0x53ed16(0xfd)](_0x112533,_0xf5c142,_0x75b970,_0x5a70d4);}[_0x19e0d2(0x1fc)](_0x4224e3){const _0x50bc66=_0x19e0d2;return this[_0x50bc66(0x14c)](_0x4224e3['unitId'])['createCollectionWithDataRange'](_0x4224e3);}[_0x19e0d2(0x132)](_0x4109a2,_0x232fed,_0x487d01){const _0x58dca5=_0x19e0d2;this['getDataFieldManager'](_0x487d01[_0x58dca5(0x351)])['refreshData'](_0x4109a2,_0x232fed,_0x487d01);}[_0x19e0d2(0x11e)](_0x9bd73f,_0x3cf920){const _0x3c1f0d=_0x19e0d2;this['getDataFieldManager'](_0x9bd73f)[_0x3c1f0d(0xd6)](_0x3cf920);}['removeCollections'](_0x3b3650,_0x1e20e8){const _0x41499a=_0x19e0d2;this[_0x41499a(0x14c)](_0x3b3650)['removeCollectionImp'](_0x1e20e8);}[_0x19e0d2(0x1c7)](_0x53c1ca,_0x5dc8c1){const _0x8e600=_0x19e0d2;var _0x19eed5;return(_0x19eed5=this[_0x8e600(0x26e)][_0x8e600(0x399)](_0x53c1ca))==null?void 0x0:_0x19eed5[_0x8e600(0x399)](_0x5dc8c1);}[_0x19e0d2(0xfb)](_0x6549ae){const _0x55d147=_0x19e0d2;for(const [_0x1fb873,_0x5ad3f6]of this[_0x55d147(0x26e)][_0x55d147(0x23d)]())for(const [_0x240bdd,_0x4317a6]of _0x5ad3f6[_0x55d147(0x23d)]())if(_0x4317a6[_0x55d147(0x27c)](_0x6549ae))return{'unitId':_0x1fb873,'subUnitId':_0x240bdd};return null;}[_0x19e0d2(0xe2)](_0x3d963f,_0x2e54c6,_0x2b3486,_0x38aa84){const _0x20e9e3=_0x19e0d2,_0x219d40=this[_0x20e9e3(0xf3)](_0x3d963f,_0x2e54c6);_0x38aa84?_0x219d40[_0x20e9e3(0x194)](_0x2b3486,_0x38aa84):_0x219d40['delete'](_0x2b3486),this[_0x20e9e3(0x180)]['next']({'unitId':_0x3d963f,'subUnitId':_0x2e54c6,'pivotTableId':_0x2b3486});}[_0x19e0d2(0x2f5)](){const _0x3c9a79=_0x19e0d2;super[_0x3c9a79(0x2f5)]();}[_0x19e0d2(0x119)](_0x246dbd,_0x4af997,_0x29dbae){const _0x505e91=_0x19e0d2;var _0x1e65b4,_0x52642b;const _0xb24001=(_0x52642b=(_0x1e65b4=this['_viewData'][_0x505e91(0x399)](_0x246dbd))==null?void 0x0:_0x1e65b4[_0x505e91(0x399)](_0x4af997))==null?void 0x0:_0x52642b[_0x505e91(0x399)](_0x29dbae);return _0xb24001||null;}['addDirtyPivotTable'](_0x64724e){this['updateDirtyPivotTable'](_0x64724e);}[_0x19e0d2(0x283)](_0x23c373){const _0x49ff85=_0x19e0d2,{token:_0x1c3c08,unitId:_0x39175c,subUnitId:_0x3e345a}=_0x23c373,_0xa76f8b=_0x39175c+'-'+_0x3e345a+'-'+_0x1c3c08;this['_queryingMap'][_0x49ff85(0x399)](_0xa76f8b)&&clearTimeout(this[_0x49ff85(0x2e2)][_0x49ff85(0x399)](_0xa76f8b));const _0x4b63f7=setTimeout(()=>{const _0x4bfcb1=_0x49ff85;this[_0x4bfcb1(0x226)](_0x23c373),this[_0x4bfcb1(0x2e2)][_0x4bfcb1(0x3dc)](_0xa76f8b);},_0x16856e);this[_0x49ff85(0x2e2)][_0x49ff85(0x194)](_0xa76f8b,_0x4b63f7);}[_0x19e0d2(0x226)](_0x477ab2){const _0x5086d4=_0x19e0d2,{unitId:_0x33c367,subUnitId:_0x921ced,token:_0x38291d,type:_0x38479c,pivotConfig:_0x126246}=_0x477ab2,_0x4193f5=this[_0x5086d4(0x33e)](_0x38291d),_0x4fa6f9=_0x4193f5==null?void 0x0:_0x4193f5[_0x5086d4(0x153)](),_0x41fd4c=_0x126246!=null?_0x126246:this[_0x5086d4(0x161)](_0x33c367,_0x921ced,_0x38291d);_0x41fd4c&&(_0x41fd4c[_0x5086d4(0x331)]=!!(_0x4193f5!=null&&_0x4193f5[_0x5086d4(0x331)]())),(_0x4fa6f9||_0x38479c===_0x528843[_0x5086d4(0x1b3)])&&this['updateView'](_0x33c367,_0x921ced,_0x38479c,_0x38291d,_0x4fa6f9,_0x41fd4c,this[_0x5086d4(0x14c)](_0x33c367)[_0x5086d4(0x346)]());}[_0x19e0d2(0x346)](_0x343963){const _0x20742f=_0x19e0d2,_0x448b07={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x343963)&&(_0x448b07[_0x20742f(0x2f3)][_0x343963]=this[_0x20742f(0x14c)](_0x343963)['toJSON']()),this['_model'][_0x20742f(0x399)](_0x343963)){_0x448b07['pivotTableConfigs'][_0x343963]={};const _0x36eda0=this[_0x20742f(0x26e)][_0x20742f(0x399)](_0x343963);_0x36eda0!=null&&_0x36eda0[_0x20742f(0xd2)]&&[..._0x36eda0['keys']()][_0x20742f(0x21a)](_0x4a1bf6=>{const _0x2dd6a9=_0x20742f,_0xbb7d75=_0x36eda0[_0x2dd6a9(0x399)](_0x4a1bf6);_0xbb7d75!=null&&_0xbb7d75['size']&&(_0x448b07[_0x2dd6a9(0x26c)][_0x343963][_0x4a1bf6]={},[..._0xbb7d75[_0x2dd6a9(0x25b)]()][_0x2dd6a9(0x21a)](_0x5ee01e=>{const _0x2634c8=_0x2dd6a9,_0x36d2e3=_0xbb7d75[_0x2634c8(0x399)](_0x5ee01e);_0x36d2e3&&(_0x448b07[_0x2634c8(0x26c)][_0x343963][_0x4a1bf6][_0x5ee01e]=_0x36d2e3);}));});}return _0x448b07;}[_0x19e0d2(0x1e0)](_0x38435c){const _0x465b99=_0x19e0d2;var _0x114d35;const {dataFieldManagerConfig:_0x25e3ca,pivotTableConfigs:_0x47277c}=_0x38435c;_0x25e3ca&&Object['keys'](_0x25e3ca)['forEach'](_0x1b982c=>{const _0x30643c=_0x109e;this[_0x30643c(0x14c)](_0x1b982c)[_0x30643c(0x1e0)](_0x25e3ca[_0x1b982c]);});const _0x4a0e1a=[];if(_0x47277c){const _0x37cf81=(_0x114d35=this[_0x465b99(0x2f2)][_0x465b99(0x399)](_0x3bc435[_0x465b99(0x23a)])[_0x465b99(0x30f)](_0x1b08d8['LS_CONFIG_KEY']))!=null?_0x114d35:{},{ls:_0x78814a,pbk:_0x13dd6f}=_0x37cf81,_0x500aa5=_0x1f32e9(_0x3afaa7,_0x78814a,_0x13dd6f)[_0x465b99(0xec)];Object[_0x465b99(0x25b)](_0x47277c)[_0x465b99(0x21a)](_0x53d6ec=>{const _0x513b72=_0x465b99;let _0x5234e8=0x0;const _0x91cae8=_0x47277c[_0x53d6ec];Object[_0x513b72(0x25b)](_0x91cae8)[_0x513b72(0x21a)](_0x4fb143=>{const _0xea7c5f=_0x513b72,_0x7a81be=_0x91cae8[_0x4fb143];Object['keys'](_0x7a81be)[_0xea7c5f(0x21a)](_0x26f95a=>{const _0x57bb66=_0xea7c5f,_0x3c9417=_0x7a81be[_0x26f95a];if(_0x3c9417){if(_0x5234e8>=_0x500aa5)return;_0x5234e8++;const _0x1280e3=this[_0x57bb66(0x14c)](_0x53d6ec),_0x4835b6=_0x1280e3['collections'][_0x26f95a],_0x133203=_0x4835b6['getFieldIds']();let _0x1c13f3=0x0;const _0x3bec5e=[];for(const _0x3cc616 of _0x133203){const _0x20e540=_0x4835b6[_0x57bb66(0x36b)](_0x3cc616);if(_0x3b6806[_0x57bb66(0xe8)](_0x20e540)){const _0x13339b=_0x20e540[_0x57bb66(0x1ce)](),_0x87dd1c=_0x4835b6[_0x57bb66(0x36b)](_0x13339b);_0x87dd1c&&_0x3bec5e[_0x57bb66(0x274)]([_0x20e540,_0x87dd1c]);continue;}_0x1280e3[_0x57bb66(0x277)](_0x3cc616,_0x3c9417[_0x57bb66(0x281)],_0x1c13f3),_0x1c13f3++;}_0x3bec5e[_0x57bb66(0x21a)](([_0x179f94,_0x5b3299])=>{const _0x13edfb=_0x57bb66;_0x179f94[_0x13edfb(0x269)](_0x5b3299);});const _0x43cc6b=new _0x3b6806[(_0x57bb66(0x252))](_0x4835b6);_0x43cc6b[_0x57bb66(0x1e0)](_0x3c9417[_0x57bb66(0x233)]),this[_0x57bb66(0x38e)](_0x53d6ec,_0x4fb143,_0x26f95a,_0x43cc6b,_0x3c9417);const _0xaf0ead=_0x43cc6b[_0x57bb66(0x153)]();_0x4a0e1a[_0x57bb66(0x274)]({'unitId':_0x53d6ec,'subUnitId':_0x4fb143,'pivotTableId':_0x26f95a,'view':_0xaf0ead[_0x57bb66(0x346)](),'pivotConfig':_0x3c9417,'type':_0x528843[_0x57bb66(0x396)]});const _0x8a0ba=!!_0x43cc6b[_0x57bb66(0x331)](),_0xf585a0={'view':_0xaf0ead,'pivotTableId':_0x26f95a,'textInfo':this['getTextInfo'](),'isEmpty':_0x8a0ba,'targetCellInfo':_0x3c9417[_0x57bb66(0x1f4)]};this[_0x57bb66(0x218)](_0xf585a0,!0x1);}});});});}_0x25e3ca&&Object['keys'](_0x25e3ca)[_0x465b99(0x21a)](_0x227e58=>{const _0x544298=_0x465b99,_0x5c835c=this[_0x544298(0x14c)](_0x227e58);this['_fieldsCollectionChange$']['next'](_0x5c835c[_0x544298(0x2dd)]);}),this[_0x465b99(0x330)][_0x465b99(0x1c5)](_0x4fcedb['id'],{'batch':_0x4a0e1a,'collectionConfig':_0x25e3ca},{'onlyLocal':!0x0});}[_0x19e0d2(0x2fc)](){const _0xbe48b7=_0x19e0d2;this[_0xbe48b7(0x121)](this[_0xbe48b7(0x38f)]['registerPluginResource']({'toJson':_0x5f0f70=>JSON[_0xbe48b7(0xf7)](this[_0xbe48b7(0x346)](_0x5f0f70)),'parseJson':_0x5def43=>{const _0x17d23f=_0xbe48b7;if(!_0x5def43)return{};try{return JSON[_0x17d23f(0x1c2)](_0x5def43);}catch{return{};}},'businesses':[_0x3bc435[_0xbe48b7(0x3b7)][_0xbe48b7(0x374)]],'pluginName':_0x2c6018,'onLoad':(_0xfa7131,_0x5ecf3f)=>{const _0x58b592=_0xbe48b7;this[_0x58b592(0x1e0)](_0x5ecf3f);},'onUnLoad':_0x7509ac=>{const _0x56ec03=_0xbe48b7;this[_0x56ec03(0x148)](_0x7509ac);}}));}},_0x3721b8[_0x19e0d2(0x21b)]=_0x1daeaf([_0x1e5de7(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x285)])),_0x1e5de7(0x1,_0x3bc435[_0x19e0d2(0x1f6)]),_0x1e5de7(0x2,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x28b)])),_0x1e5de7(0x3,_0x3bc435[_0x19e0d2(0x32e)]),_0x1e5de7(0x4,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x317)]))],_0x3721b8['SheetsPivotDataSourceModel']);const _0x40f709={0x0:{0x0:{'v':_0x19e0d2(0x21f),'s':_0x12e67a}},0x2:{0x1:{'v':'','s':_0x12e67a},0x2:{'v':'','s':_0x12e67a},0x3:{'v':_0x19e0d2(0x27b),'s':_0x12e67a},0x4:{'v':'','s':_0x12e67a},0x5:{'v':'','s':_0x12e67a}},0x3:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0x4:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0x5:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0x6:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0x7:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0x8:{0x0:{'v':_0x19e0d2(0x347),'s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':_0x19e0d2(0x373),'s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0x9:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0xa:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0xb:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0xc:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}},0xd:{0x0:{'v':'','s':_0x12e67a},0x1:{'v':'','s':_0x55f1f6},0x2:{'v':'','s':_0x55f1f6},0x3:{'v':'','s':_0x55f1f6},0x4:{'v':'','s':_0x55f1f6},0x5:{'v':'','s':_0x55f1f6}}},_0x23ffac={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x15bfed=(_0x23ca5f,_0x8ac9c2)=>{const _0x11c58b=_0x19e0d2,_0x4b2417=new _0x3bc435[(_0x11c58b(0x268))](),_0x5aa349=new _0x3bc435[(_0x11c58b(0x268))](_0x40f709),{row:_0x4ff9b2,col:_0x1af532}=_0x8ac9c2;_0x5aa349[_0x11c58b(0x298)]((_0x434ec1,_0x36eace,_0x3f59f3)=>{const _0x116fdc=_0x11c58b;let _0x23b8d1='';_0x3f59f3['v']===_0x116fdc(0x21f)?_0x23b8d1=_0x23ca5f[_0x116fdc(0x21f)]:_0x3f59f3['v']==='row'?_0x23b8d1=_0x23ca5f[_0x116fdc(0x347)]:_0x3f59f3['v']===_0x116fdc(0x27b)?_0x23b8d1=_0x23ca5f['column']:_0x3f59f3['v']==='values'&&(_0x23b8d1=_0x23ca5f['values']),_0x4b2417[_0x116fdc(0x17d)](_0x434ec1+_0x4ff9b2,_0x36eace+_0x1af532,{..._0x3f59f3,'v':_0x23b8d1});});const _0x483ca0=_0x3bc435['Tools'][_0x11c58b(0x1ff)](_0x23ffac);return Object['keys'](_0x23ffac)['forEach'](_0x29eec2=>{const _0x33740f=_0x11c58b;_0x483ca0[_0x29eec2]=_0x23ffac[_0x29eec2]['map'](_0x429d26=>({..._0x429d26,'startRow':_0x429d26[_0x33740f(0x360)]+_0x4ff9b2,'endRow':_0x429d26[_0x33740f(0x3b6)]+_0x4ff9b2,'startColumn':_0x429d26[_0x33740f(0x3d0)]+_0x1af532,'endColumn':_0x429d26[_0x33740f(0x1a7)]+_0x1af532}));}),{'matrixCache':_0x4b2417,'rangesCache':_0x483ca0};};function _0x3c2432(_0x5770f5,_0x7df940){const _0xa158be=_0x19e0d2;let _0x25080e='';const _0x28f0e1=this[_0xa158be(0x241)]();switch(_0x7df940){case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x13f)]:_0x25080e=_0x28f0e1[_0xa158be(0x216)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)]['count']:_0x25080e=_0x28f0e1[_0xa158be(0x19b)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x372)]:_0x25080e=_0x28f0e1[_0xa158be(0x23e)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x20a)]:_0x25080e=_0x28f0e1[_0xa158be(0x23c)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x1c9)]:_0x25080e=_0x28f0e1[_0xa158be(0x109)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x178)]:_0x25080e=_0x28f0e1['sheets-pivot.productName']+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)]['stdDev']:_0x25080e=_0x28f0e1[_0xa158be(0x258)]+_0x5770f5;break;case _0x3b6806['PivotSubtotalTypeEnum'][_0xa158be(0x3c3)]:_0x25080e=_0x28f0e1[_0xa158be(0xff)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x2f1)]:_0x25080e=_0x28f0e1[_0xa158be(0x394)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x34a)]:_0x25080e=_0x28f0e1[_0xa158be(0x175)]+_0x5770f5;break;case _0x3b6806[_0xa158be(0x324)][_0xa158be(0x203)]:_0x25080e=_0x28f0e1[_0xa158be(0x126)]+_0x5770f5;break;default:_0x25080e=_0x5770f5;break;}return _0x25080e;}function _0x8aee4(_0x32e547,_0x2626a1,_0x449af5,_0x1c8bbc,_0x30b34b){const _0x9b63cf=_0x19e0d2;var _0x289886,_0x39468d,_0x5a1047,_0x39431c,_0x901a5f;const _0x53032c=_0x3bc435[_0x9b63cf(0x1fd)](_0x32e547,_0x2626a1),{rangesInfo:_0x4634ea,areaInfo:_0x40432e,headerMap:_0x401d8e}=_0x30b34b;if(!_0x4634ea||!_0x40432e||!_0x401d8e)return;const _0x453020=Object[_0x9b63cf(0x25b)](_0x4634ea)[_0x9b63cf(0x39c)](_0x51e09e=>_0x4634ea[_0x51e09e][_0x9b63cf(0x3ba)](_0x1d82dc=>_0x3bc435[_0x9b63cf(0xc6)][_0x9b63cf(0x273)](_0x1d82dc,_0x53032c))),_0x583101=_0x40432e;let _0x5a60f7,_0x1f233e,_0x3da77e;if(_0x453020===_0x9b63cf(0x3df))_0x5a60f7=(_0x289886=_0x583101==null?void 0x0:_0x583101['rowInfo'])==null?void 0x0:_0x289886[_0x32e547],_0x1f233e=(_0x39468d=_0x401d8e==null?void 0x0:_0x401d8e[_0x9b63cf(0x12f)])==null?void 0x0:_0x39468d[_0x2626a1],_0x3da77e=_0x1f233e==null?void 0x0:_0x1f233e[_0x9b63cf(0x371)];else{if(_0x453020==='colRanges')_0x5a60f7=(_0x5a1047=_0x583101==null?void 0x0:_0x583101[_0x9b63cf(0x201)])==null?void 0x0:_0x5a1047[_0x2626a1],_0x1f233e=(_0x39431c=_0x401d8e[_0x9b63cf(0x38d)])==null?void 0x0:_0x39431c[_0x32e547+0x1+_0x2626a1-_0x4634ea['colRanges'][0x0][_0x9b63cf(0x3d0)]],_0x3da77e=_0x1f233e==null?void 0x0:_0x1f233e[_0x9b63cf(0x371)];else{if(_0x453020===_0x9b63cf(0xfe))_0x5a60f7=(_0x901a5f=_0x583101==null?void 0x0:_0x583101[_0x9b63cf(0x22a)])==null?void 0x0:_0x901a5f[_0x2626a1],_0x3da77e=_0x5a60f7==null?void 0x0:_0x5a60f7[_0x9b63cf(0x371)];else{if(_0x453020==='pageRanges'){const _0x648386=_0x449af5==null?void 0x0:_0x449af5['fi'];_0x648386!==void 0x0&&(_0x3da77e=_0x1c8bbc[_0x9b63cf(0x31b)](_0x648386));}}}}return{'filterId':_0x3da77e,'info':_0x5a60f7,'data':_0x449af5,'headerInfo':_0x1f233e};}function _0x5b59c1(_0x9a9b02,_0x8e0d5b,_0x2862a2){const _0x5e51b2=_0x19e0d2,_0x23586a=_0x9a9b02[_0x5e51b2(0xd4)],_0x5666d=_0x23586a[_0x5e51b2(0x270)](),_0x27c10f=new Set();_0x9a9b02[_0x5e51b2(0x21e)](_0x570481=>{const _0x508efd=_0x5e51b2;_0x27c10f[_0x508efd(0x337)](_0x570481[_0x508efd(0x3bd)]);});const _0x3a5415=_0x5666d[_0x5e51b2(0x1d3)](_0x14bd33=>{const _0x378ffc=_0x5e51b2,_0x4647b0=_0x23586a['getFieldById'](_0x14bd33);return{'checked':_0x27c10f[_0x378ffc(0x27c)](_0x14bd33),'dataFieldId':_0x4647b0['id'],'id':_0x4647b0['id'],'name':_0x23586a[_0x378ffc(0x11c)](_0x4647b0['id']),'type':_0x4647b0[_0x378ffc(0x2f8)](),'pivotTableId':_0x8e0d5b};}),_0x5cf909=[];_0x9a9b02[_0x5e51b2(0x2ce)](_0x3b6806[_0x5e51b2(0x20e)][_0x5e51b2(0x245)],_0x3724d8=>{const _0x452618=_0x5e51b2;_0x5cf909[_0x452618(0x274)]({'dataFieldId':_0x3724d8[_0x452618(0x3bd)],'tableFieldId':_0x3724d8[_0x452618(0x3da)](),'displayName':_0x3724d8['getDisplayName']()});});const _0x218f3a=[];_0x9a9b02['iterateFieldByArea'](_0x3b6806['PivotTableFiledAreaEnum'][_0x5e51b2(0x17f)],_0x189ed=>{const _0x5be06f=_0x5e51b2;_0x218f3a[_0x5be06f(0x274)]({'dataFieldId':_0x189ed[_0x5be06f(0x3bd)],'tableFieldId':_0x189ed['getId'](),'displayName':_0x189ed[_0x5be06f(0x11c)]()});});const _0x4aa48a=[];if(_0x9a9b02['iterateFieldByArea'](_0x3b6806[_0x5e51b2(0x20e)][_0x5e51b2(0x21d)],_0x257fa4=>{const _0x1ab069=_0x5e51b2;_0x4aa48a[_0x1ab069(0x274)]({'dataFieldId':_0x257fa4['dataFieldId'],'tableFieldId':_0x257fa4['getId'](),'displayName':_0x257fa4[_0x1ab069(0x11c)](),'format':_0x257fa4[_0x1ab069(0x23f)](),'subTotalType':_0x257fa4['getSubtotal']()});}),_0x4aa48a[_0x5e51b2(0x1eb)]>0x1){const _0x287712=_0x9a9b02[_0x5e51b2(0x357)]();(_0x9a9b02[_0x5e51b2(0x186)]()?_0x218f3a:_0x5cf909)[_0x5e51b2(0x2c1)](_0x287712,0x0,{'dataFieldId':'','tableFieldId':_0x5e51b2(0x16e),'displayName':_0x5e51b2(0x13e)});}const _0xf80a64=[];_0x9a9b02[_0x5e51b2(0x2ce)](_0x3b6806['PivotTableFiledAreaEnum'][_0x5e51b2(0xfc)],_0x596366=>{const _0x4608c0=_0x5e51b2;_0xf80a64[_0x4608c0(0x274)]({'dataFieldId':_0x596366[_0x4608c0(0x3bd)],'tableFieldId':_0x596366[_0x4608c0(0x3da)](),'displayName':_0x596366[_0x4608c0(0x11c)]()});});const _0x169016=_0x2862a2[_0x5e51b2(0x281)];return{'sourceList':_0x3a5415,'sourceRange':_0x169016,'rowFields':_0x5cf909,'columnFields':_0x218f3a,'valueFields':_0x4aa48a,'filterFields':_0xf80a64,'positionInfo':_0x2862a2[_0x5e51b2(0x1f4)]};}function _0x1e2fe1(_0x3fad83,_0x3a2ff3,_0x5d2728='',_0x2db840={}){const _0x5f41e4=_0x19e0d2,_0x36169b=_0x3fad83[_0x5f41e4(0x399)](_0x3bc435[_0x5f41e4(0x2ea)]);for(const _0x8598ab in _0x3a2ff3)if(Object[_0x5f41e4(0x3b8)]['hasOwnProperty'][_0x5f41e4(0x25d)](_0x3a2ff3,_0x8598ab)){const _0x7c09ab=_0x5d2728?_0x5d2728+'.'+_0x8598ab:_0x8598ab;typeof _0x3a2ff3[_0x8598ab]==_0x5f41e4(0x36d)&&_0x3a2ff3[_0x8598ab]!==null&&!Array[_0x5f41e4(0x1d2)](_0x3a2ff3[_0x8598ab])?_0x1e2fe1(_0x3fad83,_0x3a2ff3[_0x8598ab],_0x7c09ab,_0x2db840):_0x2db840[_0x7c09ab]=_0x36169b['t'](_0x7c09ab);}return _0x2db840;}const _0x362b26=_0x56d25f=>{const _0x2951c6=_0x19e0d2;if(!_0x56d25f)return[];const {rowRanges:_0x28d83d,colRanges:_0x2cd1dc,cornerRanges:_0x1da328,dataRanges:_0x488abc,pageRanges:_0xa1083b}=_0x56d25f,_0x3f0946=[..._0x2cd1dc,..._0x28d83d,..._0x488abc,..._0x1da328][_0x2951c6(0x21f)](_0x11f607=>_0x11f607[_0x2951c6(0x360)]>=0x0&&_0x11f607[_0x2951c6(0x3d0)]>=0x0&&_0x11f607['endRow']>=0x0&&_0x11f607[_0x2951c6(0x1a7)]>=0x0);let _0x3eb263=Number[_0x2951c6(0x3b9)],_0x2f0470=Number[_0x2951c6(0x272)],_0x156a1e=Number[_0x2951c6(0x3b9)],_0x2876bb=Number['MIN_SAFE_INTEGER'];for(let _0x4b3ade=0x0;_0x4b3ade<_0x3f0946['length'];_0x4b3ade++)_0x3eb263=Math[_0x2951c6(0x1c9)](_0x3eb263,_0x3f0946[_0x4b3ade]['startRow']),_0x2f0470=Math[_0x2951c6(0x20a)](_0x2f0470,_0x3f0946[_0x4b3ade][_0x2951c6(0x3b6)]),_0x156a1e=Math[_0x2951c6(0x1c9)](_0x156a1e,_0x3f0946[_0x4b3ade]['startColumn']),_0x2876bb=Math[_0x2951c6(0x20a)](_0x2876bb,_0x3f0946[_0x4b3ade][_0x2951c6(0x1a7)]);return[..._0xa1083b,{'startRow':_0x3eb263,'endRow':_0x2f0470,'startColumn':_0x156a1e,'endColumn':_0x2876bb}];};function _0x41cf57(_0x18171a,_0x354377){const _0x136b26=_0x19e0d2,_0x434f80=_0x354377[_0x136b26(0x2ae)][_0x136b26(0x2d6)],{pivotTableId:_0x31daa3,unitId:_0x339884,subUnitId:_0x4f588e}=_0x354377;if(!_0x434f80)return;const _0x250ed4=_0x18171a[_0x136b26(0x399)](_0x3721b8[_0x136b26(0x21b)]),_0x1d435d=_0x250ed4[_0x136b26(0x33e)](_0x31daa3),_0x31d41f=_0x250ed4[_0x136b26(0x161)](_0x339884,_0x4f588e,_0x31daa3);if(!_0x1d435d||!_0x31d41f)return;const _0x345a5f=_0x1d435d[_0x136b26(0x12b)](_0x434f80['tuple']);if(!(_0x345a5f!=null&&_0x345a5f[_0x136b26(0x1eb)]))return;const _0x5d2132=_0x31d41f[_0x136b26(0x281)],{unitId:_0x3f4b56,subUnitId:_0x278c6a,range:_0x20509f}=_0x5d2132;let _0x2d9cb0=0x0;const _0x185cb2=_0x1d435d[_0x136b26(0xd4)][_0x136b26(0x270)]()['reduce']((_0x44423d,_0x8cf742)=>{const _0x29800a=_0x136b26;var _0x533f53;const _0x4380f5=(_0x533f53=_0x1d435d[_0x29800a(0x2c9)](_0x8cf742))==null?void 0x0:_0x533f53['getformat']();return _0x4380f5&&(_0x44423d[String(_0x2d9cb0)]=_0x4380f5),_0x2d9cb0++,_0x44423d;},{});return{'indexes':_0x345a5f,'range':_0x20509f,'sourceUnitId':_0x3f4b56,'sourceSubUnitId':_0x278c6a,'formatMap':_0x185cb2};}function _0x1e88d7(_0x4fc61c,_0x3f56f6){const _0x58b633=_0x19e0d2;if(!_0x4fc61c||!_0x3f56f6)return!0x0;const _0x41cfb2=_0x1b08d8[_0x58b633(0x3d9)](_0x3b8ff6,_0x1411cd),_0x375281=new Function(_0x58b633(0x336)+_0x41cfb2)()(_0x4fc61c,_0x3f56f6)['message'],_0x1f706a=_0x1b08d8[_0x58b633(0x290)](_0x375281,'sf',_0x51b2d3);return!((_0x375281==null?void 0x0:_0x375281['rt'])===_0x1b08d8[_0x58b633(0x3e3)][_0x58b633(0x286)]&&!_0x1f706a);}function _0x1f32e9(_0x49782d,_0x38ba94,_0x566826){const _0x31a544=_0x19e0d2,_0xc5c43={'count':_0x49782d,'timeValid':!0x1};if(!_0x38ba94||!_0x566826)return _0xc5c43;const _0x2589e1=_0x1b08d8[_0x31a544(0x3d9)](_0x3b8ff6,_0x1411cd),_0x2c9e37=new Function('return\x20'+_0x2589e1)()(_0x38ba94,_0x566826);if(_0x2c9e37!=null&&_0x2c9e37[_0x31a544(0x314)]){const _0x5a4bed=_0x2c9e37['message'],_0x34a41a=_0x1b08d8['isFeatureAuthorizedWithinTime'](_0x5a4bed,'sf',_0x51b2d3);return{'count':_0x1b08d8[_0x31a544(0x23b)](_0x5a4bed,_0x34a41a,_0x31a544(0x36a),_0x49782d,_0x49782d,0x0),'timeValid':_0x34a41a};}return _0xc5c43;}function _0xe57b91(_0x2bbe69,_0x5d1a32,_0x58979d,_0xdef56a){const _0x2e3f92=_0x19e0d2,_0x3a0b62={'subUnitId':_0x58979d,'unitId':_0x5d1a32,'cellValue':_0x41a32a[_0x2e3f92(0x24a)](_0xdef56a)},_0x1636d1=_0x41a32a[_0x2e3f92(0x154)](_0x2bbe69,_0x3a0b62);let _0x12a9e8=!0x1;return new _0x3bc435[(_0x2e3f92(0x268))](_0x1636d1[_0x2e3f92(0x1d4)])[_0x2e3f92(0x298)]((_0x287034,_0x57e17d,_0xc00a70)=>{if(!_0x12a9e8&&_0xc00a70&&(_0xc00a70['custom']||_0xc00a70['f']||_0xc00a70['p']||_0xc00a70['s']||_0xc00a70['si']||_0xc00a70['t']||_0xc00a70['v']))return _0x12a9e8=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x41a32a[_0x2e3f92(0x1ac)]['id'],'params':_0x1636d1},'setRangeValueRedoMutation':{'id':_0x41a32a[_0x2e3f92(0x1ac)]['id'],'params':_0x3a0b62},'shouldClear':_0x12a9e8};}function _0xc7d26f(_0x3fba56){const {row:_0x567eba,col:_0x3d2c46}=_0x3fba56,_0x24c0a3={'startRow':_0x567eba,'endRow':_0x567eba,'startColumn':_0x3d2c46,'endColumn':_0x3d2c46},_0x56d654={'startRow':_0x567eba+0x2,'endRow':_0x567eba+0xe,'startColumn':_0x3d2c46,'endColumn':_0x3d2c46+0x6};return[_0x24c0a3,_0x56d654];}function _0x58c1f2(_0x441076,_0x157dce,_0x4ec073){const _0x4fddaa=_0x19e0d2,{cornerView:_0x2ea7b3,rowView:_0x317f7d,colView:_0x44f66b,pageView:_0x4a47d1}=_0x441076,{row:_0x42e111,col:_0x2fed21}=_0x157dce;if(_0x4ec073)return{'rowCount':_0x448980+_0x42e111,'colCount':_0x5b32fa+_0x2fed21};const _0x184308=_0x4a47d1[_0x4fddaa(0x3d4)]>-0x1?_0x4a47d1[_0x4fddaa(0x3d4)]+0x1:0x0,_0xba028f=_0x4a47d1[_0x4fddaa(0x3c2)]>-0x1?_0x4a47d1['lastCol']:0x0,_0x18ced7=_0x42e111+_0x184308+(_0x184308?0x1:0x0)+_0x2ea7b3[_0x4fddaa(0x25a)]+_0x317f7d[_0x4fddaa(0x25a)],_0x378978=_0x2fed21+_0xba028f,_0x218976=_0x2fed21+_0x2ea7b3[_0x4fddaa(0x179)]+_0x44f66b[_0x4fddaa(0x179)],_0x1faf9e=Math[_0x4fddaa(0x20a)](_0x378978,_0x218976);return{'rowCount':_0x18ced7,'colCount':_0x1faf9e};}function _0x46cb4e(_0x5b313e,_0x5121bd,_0x3b4288,_0x59414b){const _0x288e44=_0x19e0d2,{row:_0x40d7b3,col:_0x219962,unitId:_0x446915,subUnitId:_0x1ef28a}=_0x3b4288,_0x18460a=_0x58c1f2(_0x5121bd,{'row':_0x40d7b3,'col':_0x219962},_0x59414b),_0x575e55=_0x5b313e[_0x288e44(0x399)](_0x3bc435[_0x288e44(0x1f6)]),_0x1c955f=_0x41a32a[_0x288e44(0x11b)](_0x575e55,{'unitId':_0x446915,'subUnitId':_0x1ef28a}),_0x918d2e=[],_0x22b4f8=[];if(!_0x1c955f)return{'undos':_0x22b4f8,'redos':_0x918d2e};const {worksheet:_0x536c99}=_0x1c955f,_0x532b59=_0x536c99[_0x288e44(0x31f)](),_0x1445bc=_0x536c99[_0x288e44(0x127)]();return _0x532b59<_0x18460a[_0x288e44(0x25a)]&&(_0x918d2e['push']({'id':_0x41a32a['InsertRowMutation']['id'],'params':{'unitId':_0x446915,'subUnitId':_0x1ef28a,'range':{'startRow':_0x532b59,'endRow':_0x18460a[_0x288e44(0x25a)]-0x1,'startColumn':0x0,'endColumn':_0x1445bc-0x1}}}),_0x22b4f8[_0x288e44(0x274)]({'id':_0x41a32a['RemoveRowMutation']['id'],'params':{'unitId':_0x446915,'subUnitId':_0x1ef28a,'range':{'startRow':_0x532b59,'endRow':_0x18460a['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x1445bc-0x1}}})),_0x1445bc<_0x18460a[_0x288e44(0x179)]&&(_0x918d2e[_0x288e44(0x274)]({'id':_0x41a32a[_0x288e44(0x20c)]['id'],'params':{'unitId':_0x446915,'subUnitId':_0x1ef28a,'range':{'startRow':0x0,'endRow':_0x532b59-0x1,'startColumn':_0x1445bc,'endColumn':_0x18460a[_0x288e44(0x179)]-0x1}}}),_0x22b4f8[_0x288e44(0x274)]({'id':_0x41a32a[_0x288e44(0x313)]['id'],'params':{'unitId':_0x446915,'subUnitId':_0x1ef28a,'range':{'startRow':0x0,'endRow':_0x532b59-0x1,'startColumn':_0x1445bc,'endColumn':_0x18460a[_0x288e44(0x179)]-0x1}}})),{'undos':_0x22b4f8,'redos':_0x918d2e};}function _0x339048(_0x5c541d){const _0x491603=_0x19e0d2;let _0x521b1e=0x0;for(let _0x2a93ac=0x0;_0x2a93ac<_0x5c541d[_0x491603(0x1eb)];_0x2a93ac++){const _0x4ca1d1=_0x5c541d['charCodeAt'](_0x2a93ac);_0x4ca1d1>=0x4e00&&_0x4ca1d1<=0x9fff||_0x4ca1d1>=0x3000&&_0x4ca1d1<=0x303f||_0x4ca1d1>=0xff00&&_0x4ca1d1<=0xffef?_0x521b1e+=0x2:_0x521b1e+=0x1;}return _0x521b1e;}function _0x439052(_0x8aa394,_0x55edd7,_0x57058c,_0x2ccd0c){const _0x2dc1e0=_0x19e0d2;var _0x5183a2,_0x9519b1,_0x5e24e4,_0x3bcfcd;const {rowCount:_0x331284,colCount:_0x1de376,headerMap:_0x9a91fd}=_0x8aa394,_0x15add5=0x64,_0x2256be=Math[_0x2dc1e0(0x1c9)](_0x331284,_0x15add5),_0x2b41e0=Math[_0x2dc1e0(0x1c9)](_0x1de376,_0x15add5);let _0x4b6904='',_0x57acfb=0x0;for(let _0x364379=0x0;_0x364379<_0x2256be;_0x364379++)for(let _0xc56a14=0x0;_0xc56a14<_0x2b41e0;_0xc56a14++){const _0x9f22bc={...(_0x9519b1=(_0x5183a2=_0x8aa394[_0x2dc1e0(0x3e2)])==null?void 0x0:_0x5183a2[_0x364379])==null?void 0x0:_0x9519b1[_0xc56a14]},_0x24ae10=(_0x5e24e4=_0x9a91fd[_0x364379])==null?void 0x0:_0x5e24e4[_0x2dc1e0(0x371)],_0x2a2fbf=_0x2ccd0c[_0x24ae10];let _0x1fdb1=_0x8aa394[_0x2dc1e0(0x21c)](_0x364379,_0xc56a14);if(_0x9f22bc){const _0x417fd6=_0x57058c?_0xc56a14===0x0&&((_0x3bcfcd=_0x8aa394[_0x2dc1e0(0x155)](_0xc56a14+0x1))==null?void 0x0:_0x3bcfcd['isValue']):!0x1;_0x1fdb1=_0xbd68af(_0x9f22bc,_0x417fd6,_0x2a2fbf,_0x55edd7);}if(_0x1fdb1!==void 0x0){const _0x1cdfc2=_0x339048(String(_0x1fdb1));_0x57acfb<_0x1cdfc2&&(_0x4b6904=String(_0x1fdb1),_0x57acfb=_0x1cdfc2);}}return _0x4b6904;}function _0x52d32f(_0x330aaf){const _0x21d779=_0x19e0d2,{rowCount:_0x4de51c,colCount:_0x237e92}=_0x330aaf;let _0x285c8f='',_0x150c0d=0x0;for(let _0x40ff7f=_0x4de51c-0x1;_0x40ff7f>0x0&&_0x40ff7f>_0x4de51c-0x3;_0x40ff7f--)for(let _0x381080=0x0;_0x381080<_0x237e92;_0x381080++){const _0x5954a6=_0x330aaf[_0x21d779(0x21c)](_0x40ff7f,_0x381080);if(_0x5954a6!==void 0x0){const _0x4407b3=String(_0x5954a6)[_0x21d779(0x1eb)];_0x150c0d<_0x4407b3&&(_0x285c8f=String(_0x5954a6),_0x150c0d=_0x4407b3);}}return _0x285c8f;}function _0x30bc5a(_0x319e46){const _0x8e5cbf=_0x19e0d2,{rowCount:_0x132d03,colCount:_0x525d0e}=_0x319e46;let _0x3c8606='',_0x3b9fa7=0x0;for(let _0x393dc8=0x0;_0x393dc8<_0x132d03;_0x393dc8++)for(let _0x5081dc=0x0;_0x5081dc<_0x525d0e;_0x5081dc++){const _0x3f9b24=_0x319e46[_0x8e5cbf(0x21c)](_0x393dc8,_0x5081dc);if(_0x3f9b24!==void 0x0){const _0x48c42b=String(_0x3f9b24)[_0x8e5cbf(0x1eb)];_0x3b9fa7<_0x48c42b&&(_0x3c8606=String(_0x3f9b24),_0x3b9fa7=_0x48c42b);}}return _0x3c8606;}function _0x452439(_0x43ef49,_0xa83f88){const _0x46029b=_0x19e0d2,{rowFields:_0x5f122c,columnFields:_0x35f212,valueFields:_0xb88009,filterFields:_0x1fad50,dimension:_0x441f48,measure:_0x3e5f9f}=_0xa83f88;for(const _0x110d87 of _0x5f122c){const _0x123df3=_0x441f48[_0x110d87];_0x123df3&&_0x43ef49[_0x46029b(0x2c9)](_0x123df3[_0x46029b(0x3bd)])&&(_0x43ef49['addFieldWithSourceId'](_0x123df3['dataFieldId'],_0x3b6806['PivotTableFiledAreaEnum'][_0x46029b(0x245)],void 0x0,_0x110d87),_0x123df3[_0x46029b(0x2ca)]&&_0x43ef49[_0x46029b(0x35d)](_0x123df3['id'],_0x123df3[_0x46029b(0x2ca)]),_0x123df3[_0x46029b(0x327)]&&_0x43ef49[_0x46029b(0x3ab)](_0x123df3['id'],_0x123df3[_0x46029b(0x327)]),_0x123df3[_0x46029b(0x287)]&&_0x43ef49[_0x46029b(0x271)](_0x123df3['id'],_0x123df3[_0x46029b(0x287)]));}for(const _0x5f1320 of _0x35f212){const _0x56435f=_0x441f48[_0x5f1320];_0x56435f&&_0x43ef49[_0x46029b(0x2c9)](_0x56435f['dataFieldId'])&&(_0x43ef49['addFieldWithSourceId'](_0x56435f[_0x46029b(0x3bd)],_0x3b6806[_0x46029b(0x20e)][_0x46029b(0x17f)],void 0x0,_0x5f1320),_0x56435f[_0x46029b(0x327)]&&_0x43ef49[_0x46029b(0x3ab)](_0x56435f['id'],_0x56435f[_0x46029b(0x327)]),_0x56435f[_0x46029b(0x287)]&&_0x43ef49['setLabelFilterInfo'](_0x56435f['id'],_0x56435f[_0x46029b(0x287)]),_0x56435f['displayName']&&_0x43ef49[_0x46029b(0x35d)](_0x56435f['id'],_0x56435f[_0x46029b(0x2ca)]));}for(const _0x39929a of _0x1fad50){const _0x128b52=_0x441f48[_0x39929a];_0x128b52&&_0x43ef49['getDataFieldByDataFieldId'](_0x128b52[_0x46029b(0x3bd)])&&(_0x43ef49['addFieldWithSourceId'](_0x128b52[_0x46029b(0x3bd)],_0x3b6806[_0x46029b(0x20e)][_0x46029b(0xfc)],void 0x0,_0x39929a),_0x128b52[_0x46029b(0x327)]&&_0x43ef49[_0x46029b(0x3ab)](_0x128b52['id'],_0x128b52[_0x46029b(0x327)]),_0x128b52[_0x46029b(0x287)]&&_0x43ef49[_0x46029b(0x271)](_0x128b52['id'],_0x128b52['filterInfo']),_0x128b52[_0x46029b(0x2ca)]&&_0x43ef49[_0x46029b(0x35d)](_0x128b52['id'],_0x128b52[_0x46029b(0x2ca)]));}for(const _0x19f26e of _0xb88009){const _0xb8f8e7=_0x3e5f9f[_0x19f26e];_0xb8f8e7&&_0x43ef49[_0x46029b(0x2c9)](_0xb8f8e7['dataFieldId'])&&(_0x43ef49[_0x46029b(0x35b)](_0xb8f8e7[_0x46029b(0x3bd)],_0x3b6806[_0x46029b(0x20e)]['Value'],void 0x0,_0x19f26e),_0xb8f8e7['subtotal']!==void 0x0&&_0x43ef49[_0x46029b(0x107)](_0x19f26e,_0xb8f8e7['subtotal']),_0xb8f8e7[_0x46029b(0x228)]&&_0x43ef49[_0x46029b(0x1ec)](_0x19f26e,_0xb8f8e7[_0x46029b(0x228)]),_0xb8f8e7[_0x46029b(0x2ca)]&&_0x43ef49[_0x46029b(0x35d)](_0xb8f8e7['id'],_0xb8f8e7[_0x46029b(0x2ca)]));}const _0x2aae8d=_0xa83f88['valueFilter'];for(const {fieldId:_0x21df9c,filterInfo:_0x372f6f}of _0x2aae8d)_0x43ef49['setValueFilterInfo'](_0x21df9c,_0x372f6f);}function _0x5aea8f(_0x41c804,_0x5dea0d){const _0x31e773=_0x19e0d2,_0x57a4e9=[];_0x5dea0d===_0x3b6806['PivotTableFiledAreaEnum']['Row']&&_0x41c804[_0x31e773(0x2ce)](_0x3b6806[_0x31e773(0x20e)][_0x31e773(0x245)],_0x5e9472=>{const _0x1b96f1=_0x31e773;_0x57a4e9[_0x1b96f1(0x274)](_0x5e9472['getId']());}),_0x5dea0d===_0x3b6806[_0x31e773(0x20e)][_0x31e773(0x17f)]&&_0x41c804[_0x31e773(0x2ce)](_0x3b6806[_0x31e773(0x20e)]['Column'],_0x27d924=>{const _0x4200ee=_0x31e773;_0x57a4e9[_0x4200ee(0x274)](_0x27d924[_0x4200ee(0x3da)]());}),_0x5dea0d===_0x3b6806[_0x31e773(0x20e)][_0x31e773(0xfc)]&&_0x41c804[_0x31e773(0x2ce)](_0x3b6806[_0x31e773(0x20e)][_0x31e773(0xfc)],_0x3b87a7=>{const _0x1ddd0e=_0x31e773;_0x57a4e9[_0x1ddd0e(0x274)](_0x3b87a7[_0x1ddd0e(0x3da)]());}),_0x5dea0d===_0x3b6806[_0x31e773(0x20e)][_0x31e773(0x21d)]&&_0x41c804[_0x31e773(0x2ce)](_0x3b6806[_0x31e773(0x20e)][_0x31e773(0x21d)],_0x42e877=>{const _0x42f3d9=_0x31e773;_0x57a4e9[_0x42f3d9(0x274)](_0x42e877[_0x42f3d9(0x3da)]());}),_0x5dea0d===void 0x0&&_0x41c804[_0x31e773(0x21e)](_0xe1ec75=>{const _0x599f9d=_0x31e773;_0x57a4e9['push'](_0xe1ec75[_0x599f9d(0x3da)]());});const _0x35bd34=_0x57a4e9['length'];for(let _0x1cca28=_0x35bd34-0x1;_0x1cca28>=0x0;_0x1cca28--)_0x41c804[_0x31e773(0x224)](_0x57a4e9[_0x1cca28]);const _0x51871e=_0x41c804['getValueFilterInfos']();for(const _0x2ed482 in _0x51871e)_0x41c804[_0x31e773(0x2a3)](_0x2ed482);}function _0x59abaf(_0x26adc7,_0x381f89){const _0x3d5368=_0x19e0d2,_0x45cfab=new Date(_0x3b6806[_0x3d5368(0x16d)](_0x381f89)),_0x2afb2b=new Date(_0x3b6806[_0x3d5368(0x16d)](_0x26adc7)),_0x1779ae=_0x45cfab['getFullYear'](),_0x4019cc=_0x2afb2b[_0x3d5368(0x1e9)](),_0x3dc519=_0x45cfab[_0x3d5368(0x1b6)](),_0x149bd7=_0x2afb2b['getMonth'](),_0x45445b=_0x45cfab[_0x3d5368(0x198)](),_0x543926=_0x2afb2b['getDate'](),_0x161cb5=_0x1779ae===_0x4019cc,_0x42a090=_0x161cb5&&_0x3dc519===_0x149bd7;return _0x161cb5&&_0x42a090&&!(_0x42a090&&_0x45445b===_0x543926)?_0x3b6806[_0x3d5368(0x384)]['YearMonthDate']:_0x161cb5&&!_0x42a090?_0x3b6806[_0x3d5368(0x384)][_0x3d5368(0x244)]:_0x3b6806['PivotDateGroupFieldDateTypeEnum']['Year'];}function _0x2dc41d(_0x45a154,_0x3e78a2){const _0x45129f=_0x19e0d2,_0x144908=_0x45a154[_0x45129f(0x399)](_0x3721b8[_0x45129f(0x21b)])['getTextInfo']();let _0x3a1540='';switch(_0x3e78a2){case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x45129f(0x29e)]:_0x3a1540=_0x144908[_0x45129f(0x3e0)];break;case _0x3b6806[_0x45129f(0x384)][_0x45129f(0x244)]:_0x3a1540=_0x144908[_0x45129f(0x19d)];break;case _0x3b6806[_0x45129f(0x384)][_0x45129f(0x2d7)]:_0x3a1540=_0x144908[_0x45129f(0x3a9)];break;case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x45129f(0xf0)]:_0x3a1540=_0x144908[_0x45129f(0x378)];break;case _0x3b6806[_0x45129f(0x384)][_0x45129f(0x239)]:_0x3a1540=_0x144908['sheets-pivot.dateGroup.quarter'];break;case _0x3b6806[_0x45129f(0x384)][_0x45129f(0x30b)]:_0x3a1540=_0x144908[_0x45129f(0x2ed)];break;case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x45129f(0xd7)]:_0x3a1540=_0x144908[_0x45129f(0x2e1)];break;case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x45129f(0x1b4)]:_0x3a1540=_0x144908[_0x45129f(0xf8)];break;case _0x3b6806[_0x45129f(0x384)]['Minute']:_0x3a1540=_0x144908[_0x45129f(0x33b)];break;case _0x3b6806[_0x45129f(0x384)][_0x45129f(0x1a8)]:_0x3a1540=_0x144908[_0x45129f(0x3d7)];break;case _0x3b6806['PivotDateGroupFieldDateTypeEnum'][_0x45129f(0x17b)]:_0x3a1540=_0x144908[_0x45129f(0xfa)];break;default:_0x3a1540='';break;}return _0x3a1540;}const _0x4e3d46=_0x19e0d2(0x34d),_0x7425ee={};var _0x20afab=Object['getOwnPropertyDescriptor'],_0x53c1c1=(_0x3d7f8f,_0x3d23c8,_0x841614,_0x48fc5b)=>{for(var _0x5bd2eb=_0x48fc5b>0x1?void 0x0:_0x48fc5b?_0x20afab(_0x3d23c8,_0x841614):_0x3d23c8,_0x109476=_0x3d7f8f['length']-0x1,_0x30c541;_0x109476>=0x0;_0x109476--)(_0x30c541=_0x3d7f8f[_0x109476])&&(_0x5bd2eb=_0x30c541(_0x5bd2eb)||_0x5bd2eb);return _0x5bd2eb;},_0x458398=(_0x3270ef,_0x34e0a6)=>(_0x36647a,_0x3b8f91)=>_0x34e0a6(_0x36647a,_0x3b8f91,_0x3270ef);_0x3721b8[_0x19e0d2(0x200)]=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x5b50a8,_0x7c3e09,_0x5a63ae,_0x2fa512,_0x3f2c09){const _0x55fe34=_0x19e0d2;super(),_0x5e8238(this,_0x55fe34(0x26e),new Map()),_0x5e8238(this,'_collectionConfigModel',new Map()),_0x5e8238(this,_0x55fe34(0x296),new Map()),_0x5e8238(this,'_pivotTableMatrixInfo',new Map()),_0x5e8238(this,'_configVersion$',new _0x31291b[(_0x55fe34(0x13b))]()),_0x5e8238(this,_0x55fe34(0x24f),new _0x31291b[(_0x55fe34(0x13b))]()),_0x5e8238(this,_0x55fe34(0x31e),this[_0x55fe34(0x24f)][_0x55fe34(0x20b)]()),_0x5e8238(this,_0x55fe34(0x232),new _0x31291b[(_0x55fe34(0x13b))]()),_0x5e8238(this,_0x55fe34(0x334),this['_pivotConfigChange$'][_0x55fe34(0x20b)]()),_0x5e8238(this,_0x55fe34(0x11a),{}),_0x5e8238(this,_0x55fe34(0x260),this[_0x55fe34(0x362)][_0x55fe34(0x20b)]()),(this['_injector']=_0x5b50a8,this[_0x55fe34(0x330)]=_0x7c3e09,this[_0x55fe34(0x10f)]=_0x5a63ae,this[_0x55fe34(0x38f)]=_0x2fa512,this['_configService']=_0x3f2c09,this[_0x55fe34(0x137)](),this['_initUnitDisposed']());const _0x361efc=this[_0x55fe34(0x1a2)][_0x55fe34(0x30f)](_0x4e3d46);(_0x361efc==null?void 0x0:_0x361efc['notExecuteFormula'])===!0x0&&this[_0x55fe34(0x2fc)]();}[_0x19e0d2(0xe7)](){const _0x1ad42c=_0x19e0d2;this['disposeWithMe'](this[_0x1ad42c(0x10f)]['getTypeOfUnitDisposed$'](_0x3bc435[_0x1ad42c(0x3b7)]['UNIVER_SHEET'])[_0x1ad42c(0x35e)](_0x8381bc=>{const _0x904927=_0x1ad42c;this[_0x904927(0x148)](_0x8381bc[_0x904927(0x168)]());}));}[_0x19e0d2(0x214)](){const _0x3ef4c0=_0x19e0d2;this['_pivotInitCompleted$'][_0x3ef4c0(0x110)](!0x0);}['_initLocale'](){const _0x3cdfa0=_0x19e0d2,_0x111e79=_0x1e2fe1(this[_0x3cdfa0(0x2f2)],_0x4fa654,'',{});this['_textInfo']=_0x111e79,this[_0x3cdfa0(0x330)]['executeCommand'](_0x1e9941['id'],{'textInfo':_0x111e79},{'onlyLocal':!0x0});}[_0x19e0d2(0x241)](){const _0x1495ce=_0x19e0d2;return this[_0x1495ce(0x11a)];}[_0x19e0d2(0x323)](_0x4f5655,_0x35d4f5,_0x5d6b93,_0x595cd9,_0x1c4246){const _0x1e8f8f=_0x19e0d2;this[_0x1e8f8f(0x368)](_0x4f5655,_0x35d4f5,_0x5d6b93,_0x595cd9),this[_0x1e8f8f(0xcc)](_0x4f5655,_0x35d4f5,_0x5d6b93,_0x1c4246);}[_0x19e0d2(0x161)](_0x1d1edc,_0xaaa543,_0x3f9759){const _0x43c7a9=_0x19e0d2;var _0x8c0de5;const _0x207299=(_0x8c0de5=this['_model'][_0x43c7a9(0x399)](_0x1d1edc))==null?void 0x0:_0x8c0de5[_0x43c7a9(0x399)](_0xaaa543);if(_0x207299)return _0x207299[_0x43c7a9(0x399)](_0x3f9759);}[_0x19e0d2(0x3c0)](_0x7d806c,_0x455cfa){const _0x2b2068=_0x19e0d2,_0x26966a=this['_model'][_0x2b2068(0x399)](_0x7d806c);if(_0x26966a){for(const [_0xc3e947,_0x3a9e65]of _0x26966a[_0x2b2068(0x23d)]())for(const [_0x469b48,_0x385243]of _0x3a9e65[_0x2b2068(0x23d)]())if(_0x469b48===_0x455cfa)return _0x385243[_0x2b2068(0x1f4)];}}['getTargetByPivotId'](_0x1d5091,_0x1d7954,_0x41a910){const _0x18bbdb=_0x19e0d2,_0x3944f2=this[_0x18bbdb(0x161)](_0x1d5091,_0x1d7954,_0x41a910);return _0x3944f2==null?void 0x0:_0x3944f2['targetCellInfo'];}[_0x19e0d2(0x1c7)](_0xf14067,_0x146a90){const _0x4bb4e4=_0x19e0d2;var _0x20d5ce;return(_0x20d5ce=this[_0x4bb4e4(0x26e)][_0x4bb4e4(0x399)](_0xf14067))==null?void 0x0:_0x20d5ce['get'](_0x146a90);}[_0x19e0d2(0x1bf)](_0x1696d4,_0x53207b,_0x28a2e2,_0x3d0a00){const _0x345a75=_0x19e0d2,_0x2efcc0=this[_0x345a75(0x282)](_0x1696d4,_0x53207b);_0x3d0a00?_0x2efcc0['set'](_0x28a2e2,_0x3d0a00):_0x2efcc0[_0x345a75(0x3dc)](_0x28a2e2),this[_0x345a75(0x232)]['next']({'unitId':_0x1696d4,'subUnitId':_0x53207b,'pivotTableId':_0x28a2e2,'pivotTableConfig':_0x3d0a00});}[_0x19e0d2(0x26f)](_0x46cdc6,_0x185c3a){const _0x292c96=_0x19e0d2;var _0x43c09f;return(_0x43c09f=this[_0x292c96(0x1fa)]['get'](_0x46cdc6))==null?void 0x0:_0x43c09f[_0x292c96(0x2dd)][_0x185c3a];}[_0x19e0d2(0x230)](_0x3805d6,_0x4675d1){const _0x3a1b=_0x19e0d2;this[_0x3a1b(0x1fa)][_0x3a1b(0x194)](_0x3805d6,_0x4675d1),this[_0x3a1b(0x362)]['next'](Math[_0x3a1b(0x34e)]());}[_0x19e0d2(0x282)](_0x31937f,_0x410da8){const _0x1dd467=_0x19e0d2;let _0xea3a4d=this[_0x1dd467(0x26e)]['get'](_0x31937f);_0xea3a4d||(_0xea3a4d=new Map(),this[_0x1dd467(0x26e)][_0x1dd467(0x194)](_0x31937f,_0xea3a4d));let _0x450017=_0xea3a4d[_0x1dd467(0x399)](_0x410da8);return _0x450017||(_0x450017=new Map(),_0xea3a4d[_0x1dd467(0x194)](_0x410da8,_0x450017)),_0x450017;}[_0x19e0d2(0x14f)](_0x239de3,_0x28f588){const _0x52922f=_0x19e0d2;let _0x13d3af=this[_0x52922f(0x296)][_0x52922f(0x399)](_0x239de3);_0x13d3af||(_0x13d3af=new Map(),this[_0x52922f(0x296)][_0x52922f(0x194)](_0x239de3,_0x13d3af));let _0xfa7c36=_0x13d3af[_0x52922f(0x399)](_0x28f588);return _0xfa7c36||(_0xfa7c36=new Map(),_0x13d3af[_0x52922f(0x194)](_0x28f588,_0xfa7c36)),_0xfa7c36;}[_0x19e0d2(0x1ab)](_0x23a613,_0x1ec2ca){const _0x3d615b=_0x19e0d2;let _0x21326c=this['_pivotTableMatrixInfo'][_0x3d615b(0x399)](_0x23a613);_0x21326c||(_0x21326c=new Map(),this[_0x3d615b(0x204)][_0x3d615b(0x194)](_0x23a613,_0x21326c));let _0x5d15ff=_0x21326c[_0x3d615b(0x399)](_0x1ec2ca);return _0x5d15ff||(_0x5d15ff=new Map(),_0x21326c['set'](_0x1ec2ca,_0x5d15ff)),_0x5d15ff;}[_0x19e0d2(0xcc)](_0x23fe75,_0xb291e5,_0x1b3237,_0xfe16d8){const _0x608605=_0x19e0d2;var _0x5bae11;const _0x5bce17=this[_0x608605(0x14f)](_0x23fe75,_0xb291e5),_0x22d737=(_0x5bae11=_0x5bce17[_0x608605(0x399)](_0x1b3237))==null?void 0x0:_0x5bae11[_0x608605(0x297)];_0x5bce17[_0x608605(0x194)](_0x1b3237,{'oldRangeInfo':_0x22d737,'rangeInfo':_0xfe16d8});}[_0x19e0d2(0x368)](_0x1267f2,_0x2bb795,_0x43c3ac,_0x33f1a5){const _0xfc6471=_0x19e0d2;var _0x1b821a;const _0x345422=this['_ensurePivotTableMatrixInfo'](_0x1267f2,_0x2bb795),_0x640abc=(_0x1b821a=_0x345422['get'](_0x43c3ac))==null?void 0x0:_0x1b821a[_0xfc6471(0x294)];_0x345422['set'](_0x43c3ac,{'oldMatrix':_0x640abc,'matrix':_0x33f1a5});}[_0x19e0d2(0x3a2)](_0x4a3fa8,_0x43005a,_0x45e029){const _0x513655=_0x19e0d2;var _0x35d311,_0x1204d2;return(_0x1204d2=(_0x35d311=this['_pivotTableRangeInfo'][_0x513655(0x399)](_0x4a3fa8))==null?void 0x0:_0x35d311[_0x513655(0x399)](_0x43005a))==null?void 0x0:_0x1204d2['get'](_0x45e029);}[_0x19e0d2(0x15a)](_0x2f0e9d,_0x29010e,_0x106d53){const _0x54d7cd=_0x19e0d2;var _0x38134e,_0x40644b;return(_0x40644b=(_0x38134e=this[_0x54d7cd(0x204)]['get'](_0x2f0e9d))==null?void 0x0:_0x38134e[_0x54d7cd(0x399)](_0x29010e))==null?void 0x0:_0x40644b[_0x54d7cd(0x399)](_0x106d53);}['deleteUnitId'](_0x58b125){const _0x33cc79=_0x19e0d2;this[_0x33cc79(0x26e)][_0x33cc79(0x3dc)](_0x58b125),this[_0x33cc79(0x1fa)]['delete'](_0x58b125);}[_0x19e0d2(0x2fe)](_0x24052a){const _0x222799=_0x19e0d2,_0x3ab200={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x222799(0x1fa)][_0x222799(0x399)](_0x24052a)&&(_0x3ab200[_0x222799(0x2f3)][_0x24052a]=this[_0x222799(0x1fa)][_0x222799(0x399)](_0x24052a)),this[_0x222799(0x26e)][_0x222799(0x399)](_0x24052a)){_0x3ab200[_0x222799(0x26c)][_0x24052a]={};const _0xbdb8b1=this[_0x222799(0x26e)]['get'](_0x24052a);_0xbdb8b1!=null&&_0xbdb8b1['size']&&[..._0xbdb8b1[_0x222799(0x25b)]()]['forEach'](_0x49d909=>{const _0x5cfb17=_0x222799,_0x2fe4ef=_0xbdb8b1[_0x5cfb17(0x399)](_0x49d909);_0x2fe4ef!=null&&_0x2fe4ef[_0x5cfb17(0xd2)]&&(_0x3ab200[_0x5cfb17(0x26c)][_0x24052a][_0x49d909]={},[..._0x2fe4ef['keys']()][_0x5cfb17(0x21a)](_0x30d756=>{const _0x4e1efa=_0x5cfb17,_0x548576=_0x2fe4ef[_0x4e1efa(0x399)](_0x30d756);_0x548576&&(_0x3ab200[_0x4e1efa(0x26c)][_0x24052a][_0x49d909][_0x30d756]=_0x548576);}));});}return _0x3ab200;}['_initSnapshot'](){const _0x3435ec=_0x19e0d2;this[_0x3435ec(0x121)](this['_resourceManagerService'][_0x3435ec(0x187)]({'toJson':_0x35ba90=>JSON[_0x3435ec(0xf7)](this['_toJSON'](_0x35ba90)),'parseJson':_0x292f97=>({}),'businesses':[_0x3bc435['UniverInstanceType'][_0x3435ec(0x374)]],'pluginName':_0x2c6018,'onLoad':(_0xb274f9,_0x3a3374)=>{},'onUnLoad':_0x4441b6=>{const _0xafc4f=_0x3435ec;this[_0xafc4f(0x148)](_0x4441b6);}}));}},_0x3721b8[_0x19e0d2(0x200)]=_0x53c1c1([_0x458398(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435['Injector'])),_0x458398(0x1,_0x3bc435['Inject'](_0x3bc435[_0x19e0d2(0x32e)])),_0x458398(0x2,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x1f6)])),_0x458398(0x3,_0x3bc435['Inject'](_0x3bc435[_0x19e0d2(0x317)])),_0x458398(0x4,_0x3bc435['Inject'](_0x3bc435['IConfigService']))],_0x3721b8[_0x19e0d2(0x200)]);var _0x4215ae=Object[_0x19e0d2(0x1ba)],_0x30b824=(_0x2dd871,_0x39a824,_0x428aff,_0x290e8b)=>{for(var _0xb9a5ce=_0x290e8b>0x1?void 0x0:_0x290e8b?_0x4215ae(_0x39a824,_0x428aff):_0x39a824,_0x5ae481=_0x2dd871['length']-0x1,_0x279fd8;_0x5ae481>=0x0;_0x5ae481--)(_0x279fd8=_0x2dd871[_0x5ae481])&&(_0xb9a5ce=_0x279fd8(_0xb9a5ce)||_0xb9a5ce);return _0xb9a5ce;},_0x3126d9=(_0x2faff4,_0x47d66f)=>(_0x1032a9,_0x4035ff)=>_0x47d66f(_0x1032a9,_0x4035ff,_0x2faff4);_0x3721b8[_0x19e0d2(0x139)]=class extends _0x3bc435['Disposable']{constructor(_0x29b90b,_0x4e36ed,_0x3da3a3,_0x57839f,_0x460bd2){const _0x1d0c13=_0x19e0d2;super(),_0x5e8238(this,'_pivotRenderInfoCache',new Map()),_0x5e8238(this,_0x1d0c13(0x1ca),new Map()),_0x5e8238(this,'_markDirty$',new _0x31291b[(_0x1d0c13(0x13b))]()),_0x5e8238(this,'markDirty$',this[_0x1d0c13(0x25c)][_0x1d0c13(0x20b)]()),_0x5e8238(this,_0x1d0c13(0x1f9),new _0x31291b[(_0x1d0c13(0x13b))]()),_0x5e8238(this,_0x1d0c13(0x22d),this[_0x1d0c13(0x1f9)][_0x1d0c13(0x20b)]()),_0x5e8238(this,'_textInfo'),(this[_0x1d0c13(0x2f6)]=_0x29b90b,this['_injector']=_0x4e36ed,this['_sheetsPivotTableConfigModel']=_0x3da3a3,this[_0x1d0c13(0x10f)]=_0x57839f,this[_0x1d0c13(0x356)]=_0x460bd2,this['_initLocale'](),this[_0x1d0c13(0xe7)]());}['_initUnitDisposed'](){const _0x446ec8=_0x19e0d2;this['disposeWithMe'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bc435[_0x446ec8(0x3b7)][_0x446ec8(0x374)])[_0x446ec8(0x35e)](_0x173e40=>{const _0x7f41a4=_0x446ec8;this[_0x7f41a4(0x148)](_0x173e40[_0x7f41a4(0x168)]());}));}['_initLocale'](){const _0x54a988=_0x19e0d2;this[_0x54a988(0x11a)]=_0x1e2fe1(this[_0x54a988(0x2f2)],_0x4fa654,'',{});}['updateRenderCache'](_0xeb2992){const _0x4de306=_0x19e0d2,{view:_0x35d4b4,unitId:_0x3fee66,subUnitId:_0x364c2b,pivotTableId:_0x51ac08,type:_0x3f88ba}=_0xeb2992,_0x160bd3=this['_sheetsPivotTableConfigModel'][_0x4de306(0x161)](_0x3fee66,_0x364c2b,_0x51ac08);if(!_0x35d4b4||!_0x160bd3||_0x3f88ba===_0x528843[_0x4de306(0x1b3)])return;const {pageView:_0x544539,cornerView:_0x3e0617,rowView:_0x41020d,colView:_0x178ae3,dataView:_0x460de0}=_0x35d4b4,_0x107eb2=_0x160bd3[_0x4de306(0x1f4)],_0x529dc5=_0x160bd3[_0x4de306(0x331)],_0x4a834d=this[_0x4de306(0x1b7)](_0x3fee66,_0x364c2b),_0x38809c=this[_0x4de306(0xf4)](_0x3fee66,_0x364c2b,_0x51ac08);if(_0x529dc5)return this['_updateRenderEmptyCache'](_0xeb2992,_0x4a834d,_0x107eb2,_0x38809c);{const _0x351e1f=_0x43c786(_0x107eb2,_0x544539,!0x0),_0x3e35cd=_0x544539[_0x4de306(0x3d4)]>=0x0?_0x544539[_0x4de306(0x3d4)]+0x1:0x0,_0xf1a6b0=_0x3e0617[_0x4de306(0x31f)](),_0x2df87f=_0x3e0617[_0x4de306(0x3c7)](),_0x37edec=_0x351e1f['length']>0x0?_0x2f218e:0x0,_0x4b5b93=_0x43c786({'row':_0x107eb2[_0x4de306(0x347)]+_0x3e35cd+_0x37edec,'col':_0x107eb2[_0x4de306(0x22e)]},_0x3e0617,!0x1,!0x1),_0x1c68cb=_0x43c786({'row':_0x107eb2[_0x4de306(0x347)]+_0x3e35cd+_0x37edec+_0xf1a6b0,'col':_0x107eb2[_0x4de306(0x22e)]},_0x41020d,!0x1,!0x0),_0x2a1fbd=_0x43c786({'row':_0x107eb2['row']+_0x3e35cd+_0x37edec,'col':_0x107eb2[_0x4de306(0x22e)]+_0x2df87f},_0x178ae3,!0x1,!0x0),_0x49442=_0x43c786({'row':_0x107eb2[_0x4de306(0x347)]+_0x3e35cd+_0x37edec+_0xf1a6b0,'col':_0x107eb2['col']+_0x2df87f},_0x460de0,!0x1,!0x1);_0x38809c[_0x4de306(0x2f4)]={'rowRanges':_0x1c68cb,'colRanges':_0x2a1fbd,'cornerRanges':_0x4b5b93,'dataRanges':_0x49442,'pageRanges':_0x351e1f};const _0x2ef78e=_0x85203c(this['_injector'],_0x35d4b4,_0x160bd3,this[_0x4de306(0x11a)]),{valueMatrix:_0x548735,rowInfo:_0x29eb8c,colInfo:_0x1b9722,cornerInfo:_0x51cb4b,rowHeaderMap:_0x19e139,colHeaderMap:_0x4909cc}=_0x2ef78e;return _0x38809c['areaInfo']={'rowInfo':_0x29eb8c,'colInfo':_0x1b9722,'cornerInfo':_0x51cb4b},_0x38809c[_0x4de306(0x354)]={'rowHeaderMap':_0x19e139,'colHeaderMap':_0x4909cc},_0x548735['forEach']((_0x4e610e,_0x407d1f)=>{const _0x30cf84=_0x4de306;Object['keys'](_0x407d1f)[_0x30cf84(0x21a)](_0x4366a9=>{const _0x3f0edf=_0x30cf84,_0x2b3c6b=+_0x4366a9,_0x407029=_0x548735[_0x3f0edf(0x21c)](_0x4e610e,_0x2b3c6b);_0x4a834d[_0x3f0edf(0x17d)](_0x4e610e,_0x2b3c6b,_0x407029);});}),this[_0x4de306(0x1f9)][_0x4de306(0x110)]({'unitId':_0x3fee66,'subUnitId':_0x364c2b,'valueMatrix':_0x4a834d,'rangesCache':_0x38809c[_0x4de306(0x2f4)],'pivotTableId':_0x51ac08,'type':_0xeb2992[_0x4de306(0x3aa)]}),this[_0x4de306(0x345)][_0x4de306(0x323)](_0x3fee66,_0x364c2b,_0x51ac08,_0x4a834d,_0x38809c[_0x4de306(0x2f4)]),this['_exclusiveRangeService'][_0x4de306(0x3cd)](_0x3fee66,_0x364c2b,_0x266951,this[_0x4de306(0x135)](_0x38809c[_0x4de306(0x2f4)],_0x51ac08)),{'rangeCache':_0x38809c['rangesInfo'],'matrix':_0x4a834d};}}[_0x19e0d2(0x284)](_0x30ad31,_0x238bb9,_0x31022b,_0xe931f){const _0x1ea688=_0x19e0d2,_0x261eca=this[_0x1ea688(0x2f6)]['t'],{unitId:_0x20db62,subUnitId:_0x5b8a4d,pivotTableId:_0x58cd26}=_0x30ad31,_0x30423a={'filter':_0x261eca('sheets-pivot.emptyPivot.filter'),'row':_0x261eca('sheets-pivot.emptyPivot.row'),'column':_0x261eca(_0x1ea688(0x2e0)),'values':_0x261eca(_0x1ea688(0x278))},{matrixCache:_0x37296f,rangesCache:_0x1d9486}=_0x15bfed(_0x30423a,_0x31022b);return _0x37296f[_0x1ea688(0x298)]((_0x2fe31a,_0x271369,_0x489529)=>{const _0x1b2784=_0x1ea688;_0x238bb9[_0x1b2784(0x17d)](_0x2fe31a,_0x271369,_0x489529);}),_0xe931f['rangesInfo']=_0x1d9486,this[_0x1ea688(0x1f9)]['next']({'unitId':_0x20db62,'subUnitId':_0x5b8a4d,'valueMatrix':_0x238bb9,'rangesCache':_0x1d9486,'pivotTableId':_0x58cd26,'type':_0x30ad31[_0x1ea688(0x3aa)],'isEmpty':!0x0}),this[_0x1ea688(0x345)][_0x1ea688(0x323)](_0x20db62,_0x5b8a4d,_0x58cd26,_0x238bb9,_0x1d9486),this[_0x1ea688(0x356)]['addExclusiveRange'](_0x20db62,_0x5b8a4d,_0x266951,this[_0x1ea688(0x135)](_0x1d9486,_0x58cd26)),{'rangeCache':_0xe931f['rangesInfo'],'matrix':_0x238bb9};}[_0x19e0d2(0x135)](_0x395ff8,_0x17977b){const _0xed8899=[],_0x52d3ce=_0x362b26(_0x395ff8);for(const _0x563934 of _0x52d3ce)_0xed8899['push']({'groupId':_0x17977b,'range':_0x563934});return _0xed8899;}[_0x19e0d2(0x25f)](_0x248593){const _0x371ed9=_0x19e0d2;var _0x3dfe9d,_0x5f1fca,_0x2b0eca,_0x15563f;const {pivotTableId:_0xff7333,unitId:_0x4fb0ea,subUnitId:_0x1cd4dc}=_0x248593;if(!_0xff7333||!_0x4fb0ea||!_0x1cd4dc)return;const _0x413256=this['_ensurePivotItemRenderValueMatrixCache'](_0x4fb0ea,_0x1cd4dc),_0x23380a=(_0x5f1fca=(_0x3dfe9d=this[_0x371ed9(0x227)][_0x371ed9(0x399)](_0x4fb0ea))==null?void 0x0:_0x3dfe9d[_0x371ed9(0x399)](_0x1cd4dc))==null?void 0x0:_0x5f1fca[_0x371ed9(0x399)](_0xff7333);if(_0x23380a!=null&&_0x23380a[_0x371ed9(0x2f4)]){for(const _0x529954 of Object['keys'](_0x23380a[_0x371ed9(0x2f4)]))_0x23380a[_0x371ed9(0x2f4)][_0x529954]['forEach'](_0x3680a1=>{const _0x1e21d7=_0x371ed9;for(let _0x28d0b2=_0x3680a1['startRow'];_0x28d0b2<=_0x3680a1['endRow'];_0x28d0b2++)for(let _0xf4ab0c=_0x3680a1[_0x1e21d7(0x3d0)];_0xf4ab0c<=_0x3680a1[_0x1e21d7(0x1a7)];_0xf4ab0c++)_0x413256[_0x1e21d7(0x170)](_0x28d0b2,_0xf4ab0c);});}_0x23380a&&((_0x15563f=(_0x2b0eca=this[_0x371ed9(0x227)][_0x371ed9(0x399)](_0x4fb0ea))==null?void 0x0:_0x2b0eca['get'](_0x1cd4dc))==null||_0x15563f[_0x371ed9(0x3dc)](_0xff7333)),this[_0x371ed9(0x1f9)][_0x371ed9(0x110)]({'unitId':_0x4fb0ea,'subUnitId':_0x1cd4dc,'valueMatrix':_0x413256,'pivotTableId':_0xff7333,'rangesCache':void 0x0,'type':_0x248593[_0x371ed9(0x3aa)]}),this[_0x371ed9(0x356)]['clearExclusiveRangesByGroupId'](_0x4fb0ea,_0x1cd4dc,_0x266951,_0xff7333);}[_0x19e0d2(0xf4)](_0x256ecb,_0x4bf46a,_0x569931){const _0xfbb26f=_0x19e0d2;var _0x24afc1,_0x24a5ff,_0x5a59f5,_0xc6fa59,_0xd1c6af,_0x1799d7;return this[_0xfbb26f(0x227)][_0xfbb26f(0x27c)](_0x256ecb)||this[_0xfbb26f(0x227)][_0xfbb26f(0x194)](_0x256ecb,new Map()),(_0x24afc1=this[_0xfbb26f(0x227)][_0xfbb26f(0x399)](_0x256ecb))!=null&&_0x24afc1[_0xfbb26f(0x27c)](_0x4bf46a)||(_0x24a5ff=this[_0xfbb26f(0x227)][_0xfbb26f(0x399)](_0x256ecb))==null||_0x24a5ff[_0xfbb26f(0x194)](_0x4bf46a,new Map()),(_0xc6fa59=(_0x5a59f5=this[_0xfbb26f(0x227)]['get'](_0x256ecb))==null?void 0x0:_0x5a59f5['get'](_0x4bf46a))!=null&&_0xc6fa59[_0xfbb26f(0x27c)](_0x569931)||(_0x1799d7=(_0xd1c6af=this[_0xfbb26f(0x227)][_0xfbb26f(0x399)](_0x256ecb))==null?void 0x0:_0xd1c6af[_0xfbb26f(0x399)](_0x4bf46a))==null||_0x1799d7[_0xfbb26f(0x194)](_0x569931,{}),this[_0xfbb26f(0x227)][_0xfbb26f(0x399)](_0x256ecb)[_0xfbb26f(0x399)](_0x4bf46a)['get'](_0x569931);}[_0x19e0d2(0x1b7)](_0x51ea84,_0x53de08){const _0x493f33=_0x19e0d2;var _0xf8406e,_0x404ccd;return this[_0x493f33(0x1ca)]['has'](_0x51ea84)||this[_0x493f33(0x1ca)][_0x493f33(0x194)](_0x51ea84,new Map()),(_0xf8406e=this[_0x493f33(0x1ca)][_0x493f33(0x399)](_0x51ea84))!=null&&_0xf8406e[_0x493f33(0x27c)](_0x53de08)||(_0x404ccd=this[_0x493f33(0x1ca)]['get'](_0x51ea84))==null||_0x404ccd[_0x493f33(0x194)](_0x53de08,new _0x3bc435[(_0x493f33(0x268))]()),this[_0x493f33(0x1ca)]['get'](_0x51ea84)[_0x493f33(0x399)](_0x53de08);}['getPivotTableCellData'](_0x5ba5e4,_0x28357a,_0x39abc0,_0x5921ab){const _0x4b5442=_0x19e0d2;var _0x260570,_0x1faf2a;const _0xdce41f=(_0x1faf2a=(_0x260570=this[_0x4b5442(0x1ca)]['get'](_0x5ba5e4))==null?void 0x0:_0x260570[_0x4b5442(0x399)](_0x28357a))==null?void 0x0:_0x1faf2a['getValue'](_0x39abc0,_0x5921ab);if(_0xdce41f!=null)return _0xdce41f;}[_0x19e0d2(0x319)](_0x221dd0,_0x3b730f,_0x37b570,_0xab0d35){const _0x31ccdc=_0x19e0d2;var _0x4d5747;const _0x3e0059=_0x3bc435[_0x31ccdc(0x1fd)](_0x37b570,_0xab0d35),_0xb851f6=(_0x4d5747=this[_0x31ccdc(0x227)]['get'](_0x221dd0))==null?void 0x0:_0x4d5747[_0x31ccdc(0x399)](_0x3b730f);return _0xb851f6?Array[_0x31ccdc(0x22b)](_0xb851f6['keys']())[_0x31ccdc(0x39c)](_0x762cbd=>{const _0x1b89eb=_0x31ccdc,_0x3afb69=_0xb851f6[_0x1b89eb(0x399)](_0x762cbd),_0x517f4c=_0x3afb69==null?void 0x0:_0x3afb69[_0x1b89eb(0x2f4)];return _0x517f4c?Object[_0x1b89eb(0x25b)](_0x517f4c)[_0x1b89eb(0x3ba)](_0x5e0970=>_0x517f4c[_0x5e0970][_0x1b89eb(0x3ba)](_0x9d2458=>_0x3bc435[_0x1b89eb(0xc6)][_0x1b89eb(0x273)](_0x9d2458,_0x3e0059))):!0x1;}):void 0x0;}['getIntersectsPivotTable'](_0x4ec4c7,_0x52e88e,_0x5a5966){const _0x5d88e4=_0x19e0d2;var _0x9fc64f;const _0x585dd0=(_0x9fc64f=this[_0x5d88e4(0x227)][_0x5d88e4(0x399)](_0x4ec4c7))==null?void 0x0:_0x9fc64f[_0x5d88e4(0x399)](_0x52e88e),_0x12c014=[];return _0x585dd0&&Array['from'](_0x585dd0[_0x5d88e4(0x25b)]())[_0x5d88e4(0x21a)](_0x2986ec=>{const _0x391b88=_0x5d88e4,_0x58a8f2=_0x585dd0['get'](_0x2986ec),_0x38f3ad=_0x58a8f2==null?void 0x0:_0x58a8f2['rangesInfo'];if(_0x38f3ad)for(const _0x7bf5bd of Object[_0x391b88(0x373)](_0x38f3ad)){let _0x661b59=!0x1;for(const _0x124ec4 of _0x7bf5bd)if(_0x3bc435[_0x391b88(0xc6)][_0x391b88(0x2ba)](_0x124ec4,_0x5a5966)){_0x12c014[_0x391b88(0x274)](_0x2986ec),_0x661b59=!0x0;break;}if(_0x661b59)break;}}),_0x12c014;}['getSubUnitPivotMatrix'](_0x2fd55d,_0x22a936){const _0x53f3df=_0x19e0d2;var _0x1bcd18,_0x374f79;return(_0x374f79=(_0x1bcd18=this[_0x53f3df(0x1ca)][_0x53f3df(0x399)](_0x2fd55d))==null?void 0x0:_0x1bcd18['get'](_0x22a936))!=null?_0x374f79:new _0x3bc435[(_0x53f3df(0x268))]();}['getSubUnitPivotRenderCache'](_0x26a1a7,_0x38848f){const _0x41b646=_0x19e0d2;var _0x17d16a;return(_0x17d16a=this[_0x41b646(0x227)][_0x41b646(0x399)](_0x26a1a7))==null?void 0x0:_0x17d16a['get'](_0x38848f);}[_0x19e0d2(0x24d)](_0x41f04d,_0x20e836,_0x2e2168){const _0xc1a6b6=_0x19e0d2;var _0x36b284,_0x7113cf;return(_0x7113cf=(_0x36b284=this[_0xc1a6b6(0x227)][_0xc1a6b6(0x399)](_0x41f04d))==null?void 0x0:_0x36b284['get'](_0x20e836))==null?void 0x0:_0x7113cf[_0xc1a6b6(0x399)](_0x2e2168);}[_0x19e0d2(0x148)](_0xbbf9f0){const _0x398401=_0x19e0d2;this[_0x398401(0x227)][_0x398401(0x3dc)](_0xbbf9f0),this[_0x398401(0x1ca)]['delete'](_0xbbf9f0);}[_0x19e0d2(0xeb)](_0xec573a,_0x43057a){const _0x49ac8a=_0x19e0d2;this[_0x49ac8a(0x25c)]['next']({'unitId':_0xec573a,'subUnitId':_0x43057a});}},_0x3721b8['SheetsPivotTableAdaptorModel']=_0x30b824([_0x3126d9(0x0,_0x3bc435['Inject'](_0x3bc435[_0x19e0d2(0x2ea)])),_0x3126d9(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435['Injector'])),_0x3126d9(0x2,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x200)])),_0x3126d9(0x3,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435['IUniverInstanceService'])),_0x3126d9(0x4,_0x3bc435[_0x19e0d2(0x27e)](_0x41a32a[_0x19e0d2(0x1a9)]))],_0x3721b8[_0x19e0d2(0x139)]);var _0x399c33=Object[_0x19e0d2(0x1ba)],_0xbece65=(_0x281df9,_0x5271d9,_0x4b1625,_0x34e84a)=>{const _0x52540a=_0x19e0d2;for(var _0x3f47f0=_0x34e84a>0x1?void 0x0:_0x34e84a?_0x399c33(_0x5271d9,_0x4b1625):_0x5271d9,_0x4eebf0=_0x281df9[_0x52540a(0x1eb)]-0x1,_0x489cd3;_0x4eebf0>=0x0;_0x4eebf0--)(_0x489cd3=_0x281df9[_0x4eebf0])&&(_0x3f47f0=_0x489cd3(_0x3f47f0)||_0x3f47f0);return _0x3f47f0;},_0x22d4ed=(_0x4538e2,_0x1da593)=>(_0x17cfbd,_0x220141)=>_0x1da593(_0x17cfbd,_0x220141,_0x4538e2);_0x3721b8[_0x19e0d2(0x100)]=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x536dde,_0x394315){const _0x5d7059=_0x19e0d2;super(),_0x5e8238(this,_0x5d7059(0x103),new _0x3bc435[(_0x5d7059(0x288))]({'PIVOT_PERFORM_CHECK':_0x355331})),_0x5e8238(this,_0x5d7059(0x326),new _0x3bc435['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x1a76fa})),(this[_0x5d7059(0x29f)]=_0x536dde,this[_0x5d7059(0x2b7)]=_0x394315,this[_0x5d7059(0x352)]());}['_init'](){this['_initViewModelBySheetInterceptor']();}['getPivotPerformCheck'](_0x178701){return this['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x355331)(!0x1,_0x178701);}[_0x19e0d2(0x236)](){const _0x566ff0=_0x19e0d2;this[_0x566ff0(0x121)](this[_0x566ff0(0x29f)][_0x566ff0(0x342)](_0x41a32a['INTERCEPTOR_POINT'][_0x566ff0(0x193)],{'priority':0xc8,'effect':_0x3bc435[_0x566ff0(0x1b0)]['Value']|_0x3bc435[_0x566ff0(0x1b0)]['Style'],'handler':(_0x36f37c,_0x1bf995,_0x3ee67d)=>{const _0x3c56fb=_0x566ff0,{row:_0x97b0cd,col:_0x3a5dc3,unitId:_0x44703a,subUnitId:_0x3a879d,workbook:_0x2c01ea}=_0x1bf995,_0x2e666d=this[_0x3c56fb(0x2b7)][_0x3c56fb(0x231)](_0x44703a,_0x3a879d,_0x97b0cd,_0x3a5dc3);if(!_0x2e666d)return _0x3ee67d(_0x36f37c);const _0x4a255f={..._0x36f37c};(_0x2e666d['v']||_0x2e666d['v']===0x0)&&(_0x4a255f['v']=_0x2e666d['v']),_0x2e666d['t']&&(_0x4a255f['t']=_0x2e666d['t']);const _0x5afdd8=(typeof(_0x36f37c==null?void 0x0:_0x36f37c['s'])=='string'?_0x2c01ea['getStyles']()[_0x3c56fb(0x399)](_0x36f37c==null?void 0x0:_0x36f37c['s']):_0x36f37c==null?void 0x0:_0x36f37c['s'])||{},_0x1999d9=_0x2c01ea[_0x3c56fb(0x279)]()['get'](_0x2e666d['s']),_0x3080a8={..._0x1999d9,..._0x5afdd8};_0x1999d9!=null&&_0x1999d9['n']&&(_0x3080a8['n']=_0x1999d9['n']);const _0x3aacfb=_0x2c01ea[_0x3c56fb(0x279)]()['setValue'](_0x3080a8);return _0x4a255f['s']=_0x3aacfb,(_0x2e666d[_0x3c56fb(0x212)]===_0x3b6806[_0x3c56fb(0x2bd)]['Collapse']||_0x2e666d['pbt']===_0x3b6806['PivotCellStyleTypeEnum']['Expand'])&&(_0x4a255f['fontRenderExtension']={},_0x4a255f[_0x3c56fb(0x376)][_0x3c56fb(0x2f9)]=_0x1403d6),_0x3ee67d(_0x4a255f);}}));}},_0x3721b8[_0x19e0d2(0x100)]=_0xbece65([_0x22d4ed(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x41a32a[_0x19e0d2(0xc5)])),_0x22d4ed(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x139)]))],_0x3721b8['SheetsPivotTableService']);const _0xeb4c44={'id':_0x19e0d2(0x303),'type':_0x3bc435[_0x19e0d2(0x108)]['MUTATION'],'handler':(_0x1c6721,_0x475245)=>{const _0x1ead6a=_0x19e0d2;if(!_0x475245)return!0x1;if(!!_0x1c6721['get'](_0x3bc435[_0x1ead6a(0x23a)])[_0x1ead6a(0x30f)](_0x2b8d8f))return!0x0;const {pivotTableId:_0x50022d,fieldJSON:_0x3bedfa,unitId:_0xf559e9,subUnitId:_0x396b6e}=_0x475245;let _0x4da6a0;const {dataFieldType:_0x38953b,id:_0x1f6709,name:_0x48cfb8,hexCode:_0x2355d2,originalFieldId:_0x15c26d}=_0x3bedfa;if(_0x38953b===_0x3b6806[_0x1ead6a(0x12c)][_0x1ead6a(0x3cf)]&&(_0x4da6a0=new _0x3b6806[(_0x1ead6a(0x32a))](_0x1f6709,_0x48cfb8,_0x2355d2,_0x15c26d)),!_0x4da6a0)return!0x1;const _0xdbbbb0=_0x1c6721[_0x1ead6a(0x399)](_0x3721b8[_0x1ead6a(0x21b)]),_0x1a22cd=_0xdbbbb0[_0x1ead6a(0x14c)](_0xf559e9),_0x270ab5=_0x1a22cd[_0x1ead6a(0x26f)](_0x50022d);_0x1a22cd[_0x1ead6a(0xce)](_0x4da6a0),_0x270ab5['addField'](_0x4da6a0[_0x1ead6a(0x3da)](),_0x4da6a0[_0x1ead6a(0x2a7)]());const _0x21a1e6=_0x270ab5[_0x1ead6a(0x36b)](_0x4da6a0[_0x1ead6a(0x1ce)]());_0x21a1e6&&_0x4da6a0[_0x1ead6a(0x269)](_0x21a1e6);const _0x342d3e=_0xdbbbb0[_0x1ead6a(0x161)](_0xf559e9,_0x396b6e,_0x50022d);return _0xdbbbb0[_0x1ead6a(0x1df)]({'unitId':_0xf559e9,'subUnitId':_0x396b6e,'token':_0x50022d,'type':_0x528843[_0x1ead6a(0x1c1)],'pivotConfig':_0x342d3e}),!0x0;}},_0x449dd2={'id':'sheet.mutation.remove-group-collection','type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'handler':(_0xb3c31a,_0x304c19)=>{const _0x2f8b0a=_0x19e0d2;if(!_0x304c19)return!0x1;if(!!_0xb3c31a[_0x2f8b0a(0x399)](_0x3bc435[_0x2f8b0a(0x23a)])['getConfig'](_0x2b8d8f))return!0x0;const {pivotTableId:_0x400ddc,dataFieldId:_0x53c604,unitId:_0x41791c,subUnitId:_0x1ac27d}=_0x304c19,_0x33fb89=_0xb3c31a[_0x2f8b0a(0x399)](_0x3721b8[_0x2f8b0a(0x21b)]),_0x210d09=_0x33fb89[_0x2f8b0a(0x14c)](_0x41791c);_0x210d09[_0x2f8b0a(0x26f)](_0x400ddc)['deleteField'](_0x53c604);let _0x2104d0=!0x0;for(const _0x4be94c in _0x210d09[_0x2f8b0a(0x2dd)])if(_0x210d09[_0x2f8b0a(0x2dd)][_0x4be94c][_0x2f8b0a(0x270)]()[_0x2f8b0a(0x215)](_0x53c604)){_0x2104d0=!0x1;break;}_0x2104d0&&_0x210d09['deleteDataField'](_0x53c604);const _0x3510b8=_0x33fb89[_0x2f8b0a(0x161)](_0x41791c,_0x1ac27d,_0x400ddc);return _0x33fb89['addDirtyPivotTable']({'unitId':_0x41791c,'subUnitId':_0x1ac27d,'token':_0x400ddc,'type':_0x528843[_0x2f8b0a(0x1c1)],'pivotConfig':_0x3510b8}),!0x0;}};function _0x129aa6(_0x52448b,_0x4a58fd){const _0x21e1b3=_0x19e0d2;switch(_0x4a58fd){case _0x3b6806['PivotTableFiledAreaEnum'][_0x21e1b3(0x21d)]:return _0x52448b[_0x21e1b3(0x1af)];case _0x3b6806[_0x21e1b3(0x20e)][_0x21e1b3(0xfc)]:return _0x52448b['filterFields'];case _0x3b6806['PivotTableFiledAreaEnum'][_0x21e1b3(0x245)]:return _0x52448b[_0x21e1b3(0x190)];case _0x3b6806[_0x21e1b3(0x20e)]['Column']:return _0x52448b[_0x21e1b3(0x2de)];default:return[];}}function _0x12924a(_0x415b84,_0x50e736){const _0x407455=_0x19e0d2;return _0x415b84[_0x407455(0x1d8)][_0x50e736]||_0x415b84[_0x407455(0x156)][_0x50e736];}function _0x5eb849(_0x18e125,_0x5c85df){const _0x2907c0=_0x19e0d2,{area:_0x3a8183,fieldJson:_0x1cdeaf,index:_0x4b9123}=_0x5c85df;_0x3a8183===_0x3b6806[_0x2907c0(0x20e)][_0x2907c0(0x21d)]?_0x18e125[_0x2907c0(0x1d8)][_0x1cdeaf['id']]=_0x1cdeaf:_0x18e125['dimension'][_0x1cdeaf['id']]=_0x1cdeaf,_0x129aa6(_0x18e125,_0x3a8183)[_0x2907c0(0x2c1)](_0x4b9123,0x0,_0x1cdeaf['id']);}function _0x75b84c(_0x562fb5,_0x124f3e){const _0x9f81dc=_0x19e0d2,{area:_0x3ed9a4,fieldId:_0x50719a,index:_0x43a828}=_0x124f3e;_0x3ed9a4===_0x3b6806[_0x9f81dc(0x20e)][_0x9f81dc(0x21d)]?delete _0x562fb5[_0x9f81dc(0x1d8)][_0x50719a]:delete _0x562fb5[_0x9f81dc(0x156)][_0x50719a],_0x129aa6(_0x562fb5,_0x3ed9a4)[_0x9f81dc(0x2c1)](_0x43a828,0x1);}function _0x34fec3(_0xa29066,_0x5de4f1){const {fieldId:_0x3c0816,name:_0x236e88}=_0x5de4f1,_0x17ec54=_0x12924a(_0xa29066,_0x3c0816);_0x17ec54&&(_0x17ec54['displayName']=_0x236e88);}function _0x20bb5d(_0x265c40,_0x60d130){const _0x701483=_0x19e0d2,{fieldId:_0x414d2c,collapse:_0x34e4a9,item:_0x26aed1}=_0x60d130;_0x26aed1!==void 0x0?(_0x265c40[_0x701483(0x3af)][_0x414d2c]=_0x265c40['collapseInfo'][_0x414d2c]||{},_0x265c40[_0x701483(0x3af)][_0x414d2c][_0x26aed1]=_0x34e4a9):_0x265c40['collapseInfo'][_0x414d2c]=_0x34e4a9;}function _0x257ded(_0x4eb1e9,_0x2cc482){const _0x432d46=_0x19e0d2,{fieldId:_0x537b67,format:_0x519b9c}=_0x2cc482,_0x41d54e=_0x12924a(_0x4eb1e9,_0x537b67);_0x41d54e&&(_0x41d54e[_0x432d46(0x228)]=_0x519b9c);}function _0x116eb6(_0x3983ab,_0x33cbfa){const {fieldId:_0x52b4de,filterInfo:_0x53e719}=_0x33cbfa,_0x5e917f=_0x12924a(_0x3983ab,_0x52b4de);_0x5e917f&&(_0x5e917f['filterInfo']=_0x53e719);}function _0x1c8afc(_0x48c494,_0x510ab4){const _0x29fa48=_0x19e0d2,{fieldId:_0x2b9270,filterInfo:_0x3e7115}=_0x510ab4,_0xbc8cff=_0x48c494[_0x29fa48(0x157)][_0x29fa48(0x21f)](_0xeff433=>_0xeff433[_0x29fa48(0x299)]!==_0x2b9270);_0x3e7115&&_0xbc8cff[_0x29fa48(0x274)]({'fieldId':_0x2b9270,'filterInfo':_0x3e7115}),_0x48c494[_0x29fa48(0x157)]=_0xbc8cff;}function _0x342d54(_0x140daa,_0x3f6daa){const _0x11d20b=_0x19e0d2,{fieldId:_0x1c603d,subtotalType:_0x4d759e}=_0x3f6daa,_0xd4ad2=_0x12924a(_0x140daa,_0x1c603d);_0xd4ad2&&(_0xd4ad2[_0x11d20b(0x2fa)]=_0x4d759e);}function _0x35f1e2(_0x218f19,_0x280a0c){const _0x4952f1=_0x19e0d2,{fieldId:_0x5ef664,oldArea:_0x1283ed,area:_0xae3ab3,oldIndex:_0x13562d,index:_0x531c6b}=_0x280a0c,_0x3fcb98=_0x1283ed!==_0x3b6806['PivotTableFiledAreaEnum'][_0x4952f1(0x21d)]&&_0xae3ab3===_0x3b6806[_0x4952f1(0x20e)][_0x4952f1(0x21d)],_0x567585=_0x1283ed===_0x3b6806[_0x4952f1(0x20e)][_0x4952f1(0x21d)]&&_0xae3ab3!==_0x3b6806['PivotTableFiledAreaEnum'][_0x4952f1(0x21d)];if(_0x3fcb98||_0x567585){const _0x2084df=_0x12924a(_0x218f19,_0x5ef664);_0x2084df&&(_0x3fcb98?(delete _0x218f19[_0x4952f1(0x156)][_0x5ef664],_0x218f19[_0x4952f1(0x1d8)][_0x5ef664]=_0x2084df):(delete _0x218f19[_0x4952f1(0x1d8)][_0x5ef664],_0x218f19['dimension'][_0x5ef664]=_0x2084df));}const _0x30b1b9=_0x129aa6(_0x218f19,_0x1283ed),_0x2d63a9=_0x129aa6(_0x218f19,_0xae3ab3);_0x30b1b9[_0x4952f1(0x2c1)](_0x13562d,0x1),_0x2d63a9[_0x4952f1(0x2c1)](_0x531c6b,0x0,_0x5ef664);}function _0x2ec05a(_0xfd2ab2,_0x117ef1){const _0x30829f=_0x19e0d2,{valuePosition:_0x1585b6,index:_0x556f14}=_0x117ef1;_0xfd2ab2[_0x30829f(0x114)]=_0x1585b6,_0xfd2ab2[_0x30829f(0x3be)]=_0x556f14;}function _0x4be7b9(_0x477a77,_0x44d69f){const _0x208418=_0x19e0d2,{tableFieldId:_0x578f37,sourceName:_0x30eff8,dataFieldId:_0x54cba2}=_0x44d69f,_0x486025=_0x12924a(_0x477a77,_0x578f37);_0x486025&&(_0x486025[_0x208418(0x162)]=_0x30eff8,_0x486025[_0x208418(0x3bd)]=_0x54cba2);}function _0x3520fa(_0x5f5252,_0x22545f){const _0x48fe84=_0x19e0d2,{fieldId:_0x2f79ab,sortInfo:_0x32ff5e}=_0x22545f,_0xeafedd=_0x12924a(_0x5f5252,_0x2f79ab);_0xeafedd&&(_0xeafedd[_0x48fe84(0x327)]=_0x32ff5e);}function _0x287ae2(_0x25d084,_0x2c575e){const _0x1a48af=_0x19e0d2,{options:_0x54d696}=_0x2c575e;_0x25d084[_0x1a48af(0x350)]={..._0x25d084[_0x1a48af(0x350)],..._0x54d696};}const _0x80507={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x2db),'handler'(_0x351d16,_0x10c1e9){const _0x390aa0=_0x19e0d2;if(!_0x10c1e9)return!0x1;if(!!_0x351d16['get'](_0x3bc435['IConfigService'])[_0x390aa0(0x30f)](_0x2b8d8f))return!0x0;const _0x119070=_0x351d16[_0x390aa0(0x399)](_0x3721b8['SheetsPivotDataSourceModel']),{pivotTableId:_0x1adfd3,fieldJson:_0x148077,area:_0x55e989,index:_0x546b89,unitId:_0x1d4015,subUnitId:_0x339fa2}=_0x10c1e9,_0x564ba2=_0x119070[_0x390aa0(0x33e)](_0x1adfd3);if(!_0x564ba2)return!0x1;let _0x4168bb;_0x55e989===_0x3b6806[_0x390aa0(0x20e)][_0x390aa0(0x21d)]?_0x4168bb=_0x3b6806[_0x390aa0(0x30c)](_0x148077):_0x4168bb=_0x3b6806[_0x390aa0(0x136)](_0x148077),_0x564ba2[_0x390aa0(0x177)](_0x4168bb,_0x55e989,_0x546b89);const _0x123e26=_0x119070['getPivotTableModelConfig'](_0x1d4015,_0x339fa2,_0x1adfd3);_0x5eb849(_0x123e26,_0x10c1e9);const _0x478376=_0x119070[_0x390aa0(0x161)](_0x1d4015,_0x339fa2,_0x1adfd3);return _0x119070[_0x390aa0(0x1df)]({'unitId':_0x1d4015,'subUnitId':_0x339fa2,'token':_0x1adfd3,'type':_0x528843[_0x390aa0(0x1c1)],'pivotConfig':_0x478376}),!0x0;}},_0x50a14b={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x255),'handler'(_0x26b598,_0x3cad8e){const _0x1e74e1=_0x19e0d2;if(!_0x3cad8e)return!0x1;if(!!_0x26b598[_0x1e74e1(0x399)](_0x3bc435[_0x1e74e1(0x23a)])[_0x1e74e1(0x30f)](_0x2b8d8f))return!0x0;const _0x3c0cc4=_0x26b598['get'](_0x3721b8[_0x1e74e1(0x21b)]),{pivotTableId:_0xc86ab0,fieldId:_0x31cf4b,unitId:_0x2e49ce,subUnitId:_0x1993cc}=_0x3cad8e,_0xed9a4f=_0x3c0cc4[_0x1e74e1(0x33e)](_0xc86ab0);if(!_0xed9a4f)return!0x1;_0xed9a4f[_0x1e74e1(0x224)](_0x31cf4b);const _0x364944=_0x3c0cc4[_0x1e74e1(0x2b5)](_0x2e49ce,_0x1993cc,_0xc86ab0);_0x75b84c(_0x364944,_0x3cad8e);const _0x472280=_0x3c0cc4[_0x1e74e1(0x161)](_0x2e49ce,_0x1993cc,_0xc86ab0);return _0x3c0cc4[_0x1e74e1(0x1df)]({'unitId':_0x2e49ce,'subUnitId':_0x1993cc,'token':_0xc86ab0,'type':_0x528843[_0x1e74e1(0x1c1)],'pivotConfig':_0x472280}),!0x0;}},_0x573fa6={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x47ffe8,_0x580a03){const _0x2db5cd=_0x19e0d2;if(!_0x580a03)return!0x1;if(!!_0x47ffe8[_0x2db5cd(0x399)](_0x3bc435['IConfigService'])['getConfig'](_0x2b8d8f))return!0x0;const _0x43bc77=_0x47ffe8[_0x2db5cd(0x399)](_0x3721b8['SheetsPivotDataSourceModel']),{unitId:_0xb6f9a0,subUnitId:_0x1af591,pivotTableId:_0x54af79,fieldId:_0x51e7ab,name:_0x16e0e4}=_0x580a03,_0x5a461e=_0x43bc77[_0x2db5cd(0x33e)](_0x54af79);if(!_0x5a461e)return!0x1;_0x5a461e[_0x2db5cd(0x35d)](_0x51e7ab,_0x16e0e4);const _0x6156a1=_0x43bc77[_0x2db5cd(0x2b5)](_0xb6f9a0,_0x1af591,_0x54af79);return _0x34fec3(_0x6156a1,_0x580a03),_0x43bc77[_0x2db5cd(0x1df)]({'unitId':_0xb6f9a0,'subUnitId':_0x1af591,'token':_0x54af79,'type':_0x528843['Set']}),!0x0;}},_0x341477={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x5d03de,_0x3b089a){const _0x4d2c16=_0x19e0d2;if(!_0x3b089a)return!0x1;if(!!_0x5d03de['get'](_0x3bc435[_0x4d2c16(0x23a)])[_0x4d2c16(0x30f)](_0x2b8d8f))return!0x0;const _0x2bcd2c=_0x5d03de[_0x4d2c16(0x399)](_0x3721b8['SheetsPivotDataSourceModel']),{unitId:_0x15a769,subUnitId:_0x493ec3,pivotTableId:_0x290e50,fieldId:_0x51b475,collapse:_0x2fccf0,item:_0x3d4673}=_0x3b089a,_0x46a82e=_0x2bcd2c[_0x4d2c16(0x33e)](_0x290e50);if(!_0x46a82e)return!0x1;_0x46a82e[_0x4d2c16(0x1e7)](_0x51b475,_0x2fccf0,_0x3d4673);const _0x172b60=_0x2bcd2c[_0x4d2c16(0x2b5)](_0x15a769,_0x493ec3,_0x290e50);return _0x20bb5d(_0x172b60,_0x3b089a),_0x2bcd2c[_0x4d2c16(0x1df)]({'unitId':_0x15a769,'subUnitId':_0x493ec3,'token':_0x290e50,'type':_0x528843['Set']}),!0x0;}},_0x1d0840={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':'sheet.mutation.set-pivot-format','handler'(_0xa04a8c,_0x1fa82c){const _0x2ba90e=_0x19e0d2;if(!_0x1fa82c)return!0x1;if(!!_0xa04a8c['get'](_0x3bc435[_0x2ba90e(0x23a)])['getConfig'](_0x2b8d8f))return!0x0;const _0x4cb654=_0xa04a8c[_0x2ba90e(0x399)](_0x3721b8[_0x2ba90e(0x21b)]),{unitId:_0x1621e3,subUnitId:_0x334b44,pivotTableId:_0x4fe362,fieldId:_0x5170a5,format:_0x20b510}=_0x1fa82c,_0x75ac54=_0x4cb654[_0x2ba90e(0x33e)](_0x4fe362);if(!_0x75ac54)return!0x1;_0x75ac54[_0x2ba90e(0x1ec)](_0x5170a5,_0x20b510);const _0x1f5c92=_0x4cb654[_0x2ba90e(0x2b5)](_0x1621e3,_0x334b44,_0x4fe362);return _0x257ded(_0x1f5c92,_0x1fa82c),_0x4cb654[_0x2ba90e(0x1df)]({'unitId':_0x1621e3,'subUnitId':_0x334b44,'token':_0x4fe362,'type':_0x528843[_0x2ba90e(0x1c1)]}),!0x0;}},_0x916dba={'type':_0x3bc435[_0x19e0d2(0x108)]['MUTATION'],'id':_0x19e0d2(0xef),'handler'(_0x8e137c,_0x43b4e6){const _0x465b3c=_0x19e0d2;if(!_0x43b4e6)return!0x1;if(!!_0x8e137c[_0x465b3c(0x399)](_0x3bc435[_0x465b3c(0x23a)])[_0x465b3c(0x30f)](_0x2b8d8f))return!0x0;const _0x382603=_0x8e137c['get'](_0x3721b8['SheetsPivotDataSourceModel']),{unitId:_0x2ef65a,subUnitId:_0x197bf6,pivotTableId:_0x4c37c1,fieldId:_0x267924,filterInfo:_0x3ce0bc}=_0x43b4e6,_0x42aa18=_0x382603[_0x465b3c(0x33e)](_0x4c37c1);if(!_0x42aa18)return!0x1;_0x42aa18[_0x465b3c(0x271)](_0x267924,_0x3ce0bc);const _0x4c87c0=_0x382603[_0x465b3c(0x2b5)](_0x2ef65a,_0x197bf6,_0x4c37c1);return _0x116eb6(_0x4c87c0,_0x43b4e6),_0x382603['addDirtyPivotTable']({'unitId':_0x2ef65a,'subUnitId':_0x197bf6,'token':_0x4c37c1,'type':_0x528843[_0x465b3c(0x1c1)]}),!0x0;}},_0xa168a2={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x1a4),'handler'(_0x27bb37,_0x3d4b7a){const _0x90f0d8=_0x19e0d2;if(!_0x3d4b7a)return!0x1;if(!!_0x27bb37[_0x90f0d8(0x399)](_0x3bc435[_0x90f0d8(0x23a)])['getConfig'](_0x2b8d8f))return!0x0;const _0x43adfa=_0x27bb37[_0x90f0d8(0x399)](_0x3721b8[_0x90f0d8(0x21b)]),{unitId:_0x3e700c,subUnitId:_0x318396,pivotTableId:_0x245d37,options:_0x55a604}=_0x3d4b7a,_0x547807=_0x43adfa[_0x90f0d8(0x33e)](_0x245d37);if(!_0x547807)return!0x1;_0x547807['setOptions'](_0x55a604);const _0x37988d=_0x43adfa[_0x90f0d8(0x2b5)](_0x3e700c,_0x318396,_0x245d37);return _0x287ae2(_0x37988d,_0x3d4b7a),_0x43adfa[_0x90f0d8(0x1df)]({'unitId':_0x3e700c,'subUnitId':_0x318396,'token':_0x245d37,'type':_0x528843[_0x90f0d8(0x1c1)]}),!0x0;}},_0x47f7bb={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x165),'handler'(_0x2dec1d,_0x34140a){const _0x5ad0eb=_0x19e0d2;if(!_0x34140a)return!0x1;if(!!_0x2dec1d[_0x5ad0eb(0x399)](_0x3bc435[_0x5ad0eb(0x23a)])[_0x5ad0eb(0x30f)](_0x2b8d8f))return!0x0;const _0x568073=_0x2dec1d[_0x5ad0eb(0x399)](_0x3721b8[_0x5ad0eb(0x21b)]),{unitId:_0x67520d,subUnitId:_0x5594eb,pivotTableId:_0x210cba,sortInfo:_0x45b4d9,fieldId:_0x174d06}=_0x34140a,_0x230db0=_0x568073['getPivotTableInstance'](_0x210cba);if(!_0x230db0)return!0x1;_0x230db0['setSortInfo'](_0x174d06,_0x45b4d9);const _0x363315=_0x568073['getPivotTableModelConfig'](_0x67520d,_0x5594eb,_0x210cba);return _0x3520fa(_0x363315,_0x34140a),_0x568073[_0x5ad0eb(0x1df)]({'unitId':_0x67520d,'subUnitId':_0x5594eb,'token':_0x210cba,'type':_0x528843['Set']}),!0x0;}},_0x12c1da={'type':_0x3bc435['CommandType']['MUTATION'],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x27bbee,_0x5186fe){const _0x5151a6=_0x19e0d2;if(!_0x5186fe)return!0x1;if(!!_0x27bbee[_0x5151a6(0x399)](_0x3bc435[_0x5151a6(0x23a)])[_0x5151a6(0x30f)](_0x2b8d8f))return!0x0;const _0x16e1a4=_0x27bbee[_0x5151a6(0x399)](_0x3721b8[_0x5151a6(0x21b)]),{unitId:_0x59050a,subUnitId:_0xea6bb,pivotTableId:_0x3da237,fieldId:_0x8d1a47,subtotalType:_0x72ea6}=_0x5186fe,_0x3a4d59=_0x16e1a4[_0x5151a6(0x33e)](_0x3da237);if(!_0x3a4d59)return!0x1;_0x3a4d59[_0x5151a6(0x107)](_0x8d1a47,_0x72ea6);const _0x4346f8=_0x16e1a4[_0x5151a6(0x2b5)](_0x59050a,_0xea6bb,_0x3da237);return _0x342d54(_0x4346f8,_0x5186fe),_0x16e1a4[_0x5151a6(0x1df)]({'unitId':_0x59050a,'subUnitId':_0xea6bb,'token':_0x3da237,'type':_0x528843[_0x5151a6(0x1c1)]}),!0x0;}},_0x132b6c={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x166),'handler'(_0x12cc2f,_0x5674c2){const _0x39a3d3=_0x19e0d2;if(!_0x5674c2)return!0x1;if(!!_0x12cc2f[_0x39a3d3(0x399)](_0x3bc435[_0x39a3d3(0x23a)])[_0x39a3d3(0x30f)](_0x2b8d8f))return!0x0;const _0x4f35ed=_0x12cc2f[_0x39a3d3(0x399)](_0x3721b8['SheetsPivotDataSourceModel']),{unitId:_0x2e37e7,subUnitId:_0x18b219,pivotTableId:_0x54dcd5,fieldId:_0x4ef771,filterInfo:_0x3890a0}=_0x5674c2,_0x220d52=_0x4f35ed[_0x39a3d3(0x33e)](_0x54dcd5);if(!_0x220d52)return!0x1;_0x220d52['setValueFilterInfo'](_0x4ef771,_0x3890a0);const _0x2a0454=_0x4f35ed[_0x39a3d3(0x2b5)](_0x2e37e7,_0x18b219,_0x54dcd5);return _0x1c8afc(_0x2a0454,_0x5674c2),_0x4f35ed[_0x39a3d3(0x1df)]({'unitId':_0x2e37e7,'subUnitId':_0x18b219,'token':_0x54dcd5,'type':_0x528843[_0x39a3d3(0x1c1)]}),!0x0;}},_0x3433b9={'type':_0x3bc435[_0x19e0d2(0x108)]['MUTATION'],'id':'sheet.mutation.pivot-update-field-position','handler'(_0x5ed7ac,_0x1f352d){const _0x489165=_0x19e0d2;if(!_0x1f352d)return!0x1;if(!!_0x5ed7ac[_0x489165(0x399)](_0x3bc435[_0x489165(0x23a)])[_0x489165(0x30f)](_0x2b8d8f))return!0x0;const _0x22c32c=_0x5ed7ac[_0x489165(0x399)](_0x3721b8[_0x489165(0x21b)]),{unitId:_0x3ca782,subUnitId:_0x1200bb,pivotTableId:_0x3949ff,area:_0x2e24cc,index:_0x29d4db,fieldId:_0x4321d3}=_0x1f352d,_0x5b9028=_0x22c32c[_0x489165(0x33e)](_0x3949ff);if(!_0x5b9028)return!0x1;_0x5b9028['updateFieldPosition'](_0x4321d3,_0x2e24cc,_0x29d4db);const _0x588987=_0x22c32c['getPivotTableModelConfig'](_0x3ca782,_0x1200bb,_0x3949ff);return _0x35f1e2(_0x588987,_0x1f352d),_0x22c32c[_0x489165(0x1df)]({'unitId':_0x3ca782,'subUnitId':_0x1200bb,'token':_0x3949ff,'type':_0x528843[_0x489165(0x1c1)]}),!0x0;}},_0x186498={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x2b8),'handler'(_0x3e5446,_0x47ebfc){const _0x1736ea=_0x19e0d2;if(!_0x47ebfc)return!0x1;if(!!_0x3e5446['get'](_0x3bc435[_0x1736ea(0x23a)])[_0x1736ea(0x30f)](_0x2b8d8f))return!0x0;const _0xffa39=_0x3e5446[_0x1736ea(0x399)](_0x3721b8[_0x1736ea(0x21b)]),{unitId:_0x22240f,subUnitId:_0x2cb01a,pivotTableId:_0x51dc93,sourceName:_0xecf8a8,dataFieldId:_0x293fdd,tableFieldId:_0x175cf8}=_0x47ebfc,_0xe677b6=_0xffa39['getPivotTableInstance'](_0x51dc93);if(!_0xe677b6)return!0x1;_0xe677b6[_0x1736ea(0xda)](_0x175cf8,_0xecf8a8,_0x293fdd);const _0x499c4a=_0xffa39['getPivotTableModelConfig'](_0x22240f,_0x2cb01a,_0x51dc93);return _0x4be7b9(_0x499c4a,_0x47ebfc),_0xffa39[_0x1736ea(0x1df)]({'unitId':_0x22240f,'subUnitId':_0x2cb01a,'token':_0x51dc93,'type':_0x528843[_0x1736ea(0x1c1)]}),!0x0;}},_0x2f569f={'type':_0x3bc435[_0x19e0d2(0x108)]['MUTATION'],'id':'sheet.mutation.pivot-update-value-position','handler'(_0xc80d52,_0x2c8380){const _0xafc592=_0x19e0d2;if(!_0x2c8380)return!0x1;if(!!_0xc80d52[_0xafc592(0x399)](_0x3bc435[_0xafc592(0x23a)])[_0xafc592(0x30f)](_0x2b8d8f))return!0x0;const _0x224e19=_0xc80d52[_0xafc592(0x399)](_0x3721b8[_0xafc592(0x21b)]),{unitId:_0x3a8518,subUnitId:_0x1044de,pivotTableId:_0x21c907,valuePosition:_0x219d2e,index:_0x171d02}=_0x2c8380,_0x219a27=_0x224e19['getPivotTableInstance'](_0x21c907);if(!_0x219a27)return!0x1;_0x219a27[_0xafc592(0x29a)](_0x219d2e,_0x171d02);const _0x5b148f=_0x224e19[_0xafc592(0x2b5)](_0x3a8518,_0x1044de,_0x21c907);return _0x2ec05a(_0x5b148f,_0x2c8380),_0x224e19[_0xafc592(0x1df)]({'unitId':_0x3a8518,'subUnitId':_0x1044de,'token':_0x21c907,'type':_0x528843['Set']}),!0x0;}};function _0x995798(_0x139d01,_0x2e2807,_0x18c42c){const _0x44f519=_0x19e0d2,{pivotTableId:_0x3a5e5a,unitId:_0x282878,subUnitId:_0x2919f6}=_0x2e2807,_0x11b4b2=[],_0x58dbb7=[];for(const _0x1befd9 of _0x18c42c)switch(_0x1befd9['type']){case _0x3b6806['PivotTableChangeTypeEnum'][_0x44f519(0x1aa)]:{const {fieldJson:_0x30c983,area:_0x380d4f,index:_0x49081c}=_0x1befd9,_0x27a3d6={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldJson':_0x30c983,'area':_0x380d4f,'index':_0x49081c},_0x119a62={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x30c983['id'],'area':_0x380d4f,'index':_0x49081c};_0x11b4b2[_0x44f519(0x274)]({'id':_0x80507['id'],'params':_0x27a3d6}),_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x50a14b['id'],'params':_0x119a62});}break;case _0x3b6806[_0x44f519(0xea)]['SetSubtotalType']:{const {fieldId:_0x50042e,newSubtotalType:_0xa251a8,oldSubtotalType:_0x20473e}=_0x1befd9,_0x326a52={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x50042e,'subtotalType':_0xa251a8};_0x11b4b2[_0x44f519(0x274)]({'id':_0x12c1da['id'],'params':_0x326a52});const _0x3119b4={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x50042e,'subtotalType':_0x20473e};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x12c1da['id'],'params':_0x3119b4});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x197)]:{const {fieldId:_0x4aab43,fieldJson:_0x5262a8,area:_0x35a84f,index:_0x320bf3}=_0x1befd9,_0x12eb37={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x4aab43,'index':_0x320bf3,'area':_0x35a84f};_0x11b4b2[_0x44f519(0x274)]({'id':_0x50a14b['id'],'params':_0x12eb37});const _0x5430fc={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldJson':_0x5262a8,'area':_0x35a84f,'index':_0x320bf3};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x80507['id'],'params':_0x5430fc});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x2da)]:{const {fieldId:_0x3496b1,oldName:_0x2b16b8,newName:_0x5cf841}=_0x1befd9,_0x1cebf7={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x3496b1,'name':_0x5cf841};_0x11b4b2['push']({'id':_0x573fa6['id'],'params':_0x1cebf7});const _0x5c5a60={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x3496b1,'name':_0x2b16b8};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x573fa6['id'],'params':_0x5c5a60});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x35c)]:{const {fieldId:_0x2a9aad,oldFilterInfo:_0x3ad518,newFilterInfo:_0x1dd8e7}=_0x1befd9,_0x30ed4b={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x2a9aad,'filterInfo':_0x1dd8e7};_0x11b4b2[_0x44f519(0x274)]({'id':_0x916dba['id'],'params':_0x30ed4b});const _0x39e1ff={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x2a9aad,'filterInfo':_0x3ad518};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x916dba['id'],'params':_0x39e1ff});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x199)]:{const {fieldId:_0x31f648,oldSortInfo:_0x45be73,newSortInfo:_0x237874}=_0x1befd9,_0x3cbca2={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x31f648,'sortInfo':_0x237874};_0x11b4b2['push']({'id':_0x47f7bb['id'],'params':_0x3cbca2});const _0x17830b={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x31f648,'sortInfo':_0x45be73};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x47f7bb['id'],'params':_0x17830b});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x37d)]:{const {oldOptions:_0x5118da,newOptions:_0x56a59b}=_0x1befd9,_0x11a6a3={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'options':_0x56a59b};_0x11b4b2[_0x44f519(0x274)]({'id':_0xa168a2['id'],'params':_0x11a6a3});const _0x435784={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'options':_0x5118da};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0xa168a2['id'],'params':_0x435784});}break;case _0x3b6806['PivotTableChangeTypeEnum'][_0x44f519(0x16b)]:{const {oldArea:_0x5ea2c2,newArea:_0x5c466a,oldIndex:_0x5a40e9,newIndex:_0x51a3a6,fieldId:_0x2df9fb}=_0x1befd9,_0x4c7d48={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x2df9fb,'area':_0x5c466a,'index':_0x51a3a6,'oldArea':_0x5ea2c2,'oldIndex':_0x5a40e9};_0x11b4b2['push']({'id':_0x3433b9['id'],'params':_0x4c7d48});const _0x1b0d7b={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x2df9fb,'area':_0x5ea2c2,'index':_0x5a40e9,'oldArea':_0x5c466a,'oldIndex':_0x51a3a6};_0x58dbb7['unshift']({'id':_0x3433b9['id'],'params':_0x1b0d7b});}break;case _0x3b6806['PivotTableChangeTypeEnum'][_0x44f519(0x183)]:{const {oldValuePosition:_0x21e417,newValuePosition:_0x2f45b5,oldIndex:_0x5ab4aa,newIndex:_0x1eb321}=_0x1befd9,_0xe8b870={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'valuePosition':_0x2f45b5,'index':_0x1eb321};_0x11b4b2[_0x44f519(0x274)]({'id':_0x2f569f['id'],'params':_0xe8b870});const _0x55368d={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'valuePosition':_0x21e417,'index':_0x5ab4aa};_0x58dbb7['unshift']({'id':_0x2f569f['id'],'params':_0x55368d});}break;case _0x3b6806[_0x44f519(0xea)]['SetCollapse']:{const {fieldId:_0x513bcb,collapse:_0x221a90,item:_0x5c3d1a}=_0x1befd9,_0x1cc365={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x513bcb,'collapse':_0x221a90,'item':_0x5c3d1a};_0x11b4b2[_0x44f519(0x274)]({'id':_0x341477['id'],'params':_0x1cc365});const _0x575341={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x513bcb,'collapse':!_0x221a90,'item':_0x5c3d1a};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x341477['id'],'params':_0x575341});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x385)]:{const {newFormat:_0x5d947e,oldFormat:_0x2cc6dc,fieldId:_0x3f97b0}=_0x1befd9,_0x2f4343={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x3f97b0,'format':_0x5d947e};_0x11b4b2['push']({'id':_0x1d0840['id'],'params':_0x2f4343});const _0x26620d={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0x3f97b0,'format':_0x2cc6dc};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x1d0840['id'],'params':_0x26620d});}break;case _0x3b6806['PivotTableChangeTypeEnum']['UpdateSource']:{const {tableFieldId:_0x454ccf,oldSourceName:_0x2940e1,newSourceName:_0x56c548,oldDataFieldId:_0x31bb45,newDataFieldId:_0x64ac2}=_0x1befd9,_0x10f742={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'tableFieldId':_0x454ccf,'sourceName':_0x56c548,'dataFieldId':_0x64ac2};_0x11b4b2[_0x44f519(0x274)]({'id':_0x186498['id'],'params':_0x10f742});const _0x52841a={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'tableFieldId':_0x454ccf,'sourceName':_0x2940e1,'dataFieldId':_0x31bb45};_0x58dbb7['unshift']({'id':_0x186498['id'],'params':_0x52841a});}break;case _0x3b6806[_0x44f519(0xea)][_0x44f519(0x30a)]:{const {fieldId:_0xffbd5d,filterInfo:_0x43c2d,oldFilterInfo:_0x33d588}=_0x1befd9,_0x39562a={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0xffbd5d,'filterInfo':_0x43c2d};_0x11b4b2['push']({'id':_0x132b6c['id'],'params':_0x39562a});const _0x1dd28f={'unitId':_0x282878,'subUnitId':_0x2919f6,'pivotTableId':_0x3a5e5a,'fieldId':_0xffbd5d,'filterInfo':_0x33d588};_0x58dbb7[_0x44f519(0x1bc)]({'id':_0x132b6c['id'],'params':_0x1dd28f});}}return{'redos':_0x11b4b2,'undos':_0x58dbb7};}function _0x2efb0f(_0x507df4,_0x4d4832){const _0xb0ca78=_0x19e0d2;var _0xc88429;const _0x37c152=_0x507df4[_0xb0ca78(0x399)](_0x3721b8[_0xb0ca78(0x100)]),{cellInfo:_0x310c76,view:_0x24f4e3,isEmpty:_0x5d26fa}=_0x4d4832;return(_0xc88429=_0x37c152[_0xb0ca78(0x326)][_0xb0ca78(0x2e8)](_0x1a76fa)(_0xe43dfe,{'cellInfo':_0x310c76,'view':_0x24f4e3,'isEmpty':_0x5d26fa}))!=null?_0xc88429:_0xe43dfe;}const _0x33b902={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2c7)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x401729,_0x2a5899){const _0x558602=_0x19e0d2;if(!_0x2a5899)return!0x1;const _0x2948d6=_0x401729[_0x558602(0x399)](_0x3bc435[_0x558602(0x32e)]),_0x351bc2=_0x401729[_0x558602(0x399)](_0x3721b8['SheetsPivotRPCService']),_0x19dcb7=_0x401729[_0x558602(0x399)](_0x3bc435[_0x558602(0x120)]),{pivotTableId:_0x57b819,dataFieldId:_0x5cfb0c,fieldArea:_0x137b40,index:_0x3907d7,unitId:_0x4cbed1,subUnitId:_0x1c74ae}=_0x2a5899,_0x148ac6=(await _0x351bc2[_0x558602(0x257)]({'unitId':_0x4cbed1,'subUnitId':_0x1c74ae,'pivotTableId':_0x57b819,'params':{'type':_0x16021d[_0x558602(0x1f1)],'addPivotField':{'dataFieldId':_0x5cfb0c,'fieldArea':_0x137b40,'index':_0x3907d7}}}))['result']['addPivotField'];if(!_0x148ac6)return!0x1;const {view:_0x344b2b,changesets:_0x5b7e27,isEmpty:_0xa76b53,pivotTableConfig:_0x3be99f,shouldBeAddedGroupJSON:_0x556af1}=_0x148ac6,_0xa0e3b3=_0x3be99f[_0x558602(0x1f4)],_0x15934b=new _0x3b6806[(_0x558602(0x2d8))]();_0x15934b['formJSON'](_0x344b2b);const _0x19df97={'cellInfo':_0xa0e3b3,'view':_0x15934b,'isEmpty':_0xa76b53};if(!await _0x401729[_0x558602(0x399)](_0x3721b8[_0x558602(0x100)])[_0x558602(0x103)][_0x558602(0x116)](_0x355331)(!0x0,_0x19df97))return!0x1;const _0x45cd2a=_0x46cb4e(_0x401729,_0x15934b,_0xa0e3b3,_0xa76b53),_0xe747b4=_0x2efb0f(_0x401729,_0x19df97),{undos:_0x3f465b,redos:_0x4fea7e}=_0x995798(_0x2948d6,{'pivotTableId':_0x57b819,'unitId':_0x4cbed1,'subUnitId':_0x1c74ae},_0x5b7e27);return _0x556af1&&(_0x4fea7e[_0x558602(0x1bc)]({'id':_0xeb4c44['id'],'params':{'pivotTableId':_0x57b819,'fieldJSON':_0x556af1,'unitId':_0x4cbed1,'subUnitId':_0x1c74ae}}),_0x3f465b[_0x558602(0x274)]({'id':_0x449dd2['id'],'params':{'pivotTableId':_0x57b819,'dataFieldId':_0x556af1['id'],'unitId':_0x4cbed1,'subUnitId':_0x1c74ae}})),_0x3bc435[_0x558602(0x1e4)]([..._0x45cd2a['redos'],..._0xe747b4[_0x558602(0x2ac)],..._0x4fea7e],_0x2948d6),_0x19dcb7[_0x558602(0x1a0)]({'unitID':_0x4cbed1,'redoMutations':[..._0x45cd2a[_0x558602(0x2ac)],..._0xe747b4[_0x558602(0x2ac)],..._0x4fea7e],'undoMutations':[..._0x45cd2a[_0x558602(0x379)],..._0xe747b4[_0x558602(0x379)],..._0x3f465b]}),!0x0;}},_0x32224a=()=>typeof process<'u'&&process['versions']!=null&&process[_0x19e0d2(0x1a5)][_0x19e0d2(0x18b)]!=null,_0x3a27d5={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x33d),'handler'(_0x3eefb3,_0xa77a6a){const _0x13e137=_0x19e0d2;var _0x1c52f5;if(!_0xa77a6a)return!0x1;const _0x3e84bf=_0x3eefb3[_0x13e137(0x399)](_0x3bc435[_0x13e137(0x23a)]);if(!!_0x3e84bf['getConfig'](_0x2b8d8f))return!0x0;const _0x1d545e=_0x3eefb3[_0x13e137(0x399)](_0x3bc435['IUniverInstanceService']),_0x2efa=_0x3eefb3['get'](_0x3721b8['SheetsPivotDataSourceModel']),{pivotTableId:_0x30b251,pivotTableConfig:_0x253a17,collectionConfig:_0x10c806,unitId:_0x6d2285,subUnitId:_0x58e3bf}=_0xa77a6a,{sourceRangeInfo:_0x9b73b1,fieldsConfig:_0x142d34,targetCellInfo:_0x2f3300}=_0x253a17,_0x17c4fe=_0x1d545e[_0x13e137(0x2f0)](_0x6d2285);if(!_0x17c4fe||!_0x17c4fe[_0x13e137(0x234)](_0x58e3bf))return!0x1;if(!_0x32224a()){let _0x4cb7ab=0x0;_0x17c4fe[_0x13e137(0x36c)]()[_0x13e137(0x21a)](_0x4370c8=>{const _0x36b4a0=_0x13e137;var _0xe7a9c4,_0x2b84a7;_0x4cb7ab+=(_0x2b84a7=(_0xe7a9c4=_0x2efa[_0x36b4a0(0x1c7)](_0x6d2285,_0x4370c8['getSheetId']()))==null?void 0x0:_0xe7a9c4[_0x36b4a0(0xd2)])!=null?_0x2b84a7:0x0;});const _0x3ab155=(_0x1c52f5=_0x3e84bf['getConfig'](_0x1b08d8['LS_CONFIG_KEY']))!=null?_0x1c52f5:{},{ls:_0xf53170,pbk:_0x1a0d28}=_0x3ab155;if(!_0x1e88d7(_0xf53170,_0x1a0d28))throw new _0x3bc435[(_0x13e137(0x310))](_0x13e137(0xc9));const _0x463503=_0x1f32e9(_0x3afaa7,_0xf53170,_0x1a0d28)[_0x13e137(0xec)];if(_0x4cb7ab>=_0x463503)throw new _0x3bc435[(_0x13e137(0x310))](_0x13e137(0xc9));}if(!_0x10c806||!_0x142d34)return!0x1;const {collection:_0x4035fb,updateDataFieldList:_0x3a6caa}=_0x2efa[_0x13e137(0xfd)](_0x30b251,_0x10c806,_0x9b73b1,_0x2f3300);_0x2efa[_0x13e137(0x132)](_0x4035fb,_0x3a6caa,_0x9b73b1);const _0x3e7bab=new _0x3b6806['PivotTable'](_0x4035fb,void 0x0,_0x30b251);_0x3e7bab[_0x13e137(0x1e0)](_0x142d34);const _0xce48c=JSON[_0x13e137(0x1c2)](JSON['stringify'](_0x253a17));return _0x2efa['addPivotTable'](_0x6d2285,_0x58e3bf,_0x30b251,_0x3e7bab,_0xce48c),_0x2efa['addDirtyPivotTable']({'unitId':_0x6d2285,'subUnitId':_0x58e3bf,'token':_0x30b251,'type':_0x528843['Add'],'pivotConfig':_0xce48c}),!0x0;}},_0x1cfe70={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x184),async 'handler'(_0x792eab,_0x135f33){const _0xb26093=_0x19e0d2;if(!_0x135f33)return!0x1;const {sourceDataInfo:_0x103f48,pivotTableConfig:_0x39b634}=_0x135f33;if(!_0x103f48||!_0x39b634)return!0x1;const {unitId:_0x2fccd9,subUnitId:_0x121240,range:_0x3dfda4}=_0x103f48,_0x33eb43=_0x792eab[_0xb26093(0x399)](_0x3bc435[_0xb26093(0x1f6)]),_0x5d6351=_0x792eab[_0xb26093(0x399)](_0x3721b8['SheetsPivotRPCService']),_0x4a25dc=_0x792eab[_0xb26093(0x399)](_0x3bc435[_0xb26093(0x2ea)]),_0x260457=_0x792eab[_0xb26093(0x399)](_0x3bc435[_0xb26093(0x32e)]),_0x591f83=_0x33eb43['getUnit'](_0x2fccd9);if(!_0x591f83)return!0x1;const _0x2d2330=_0x591f83[_0xb26093(0x234)](_0x121240);if(!_0x2d2330)return!0x1;const _0x36d3f6=_0x3b6806[_0xb26093(0x27f)](0x8),_0x8c2d42=_0x3dfda4||{'startRow':0x0,'startColumn':0x0,'endRow':_0x2d2330[_0xb26093(0x31f)]()-0x1,'endColumn':_0x2d2330[_0xb26093(0x127)]()-0x1};_0x8c2d42[_0xb26093(0xdd)]=_0x3bc435[_0xb26093(0x321)][_0xb26093(0x147)];const _0x204018=(await _0x5d6351[_0xb26093(0x257)]({'unitId':_0x2fccd9,'subUnitId':_0x121240,'pivotTableId':_0x36d3f6,'params':{'type':_0x16021d[_0xb26093(0xf9)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x2fccd9,'sheetName':_0x2d2330[_0xb26093(0x2a7)](),'subUnitId':_0x121240,'range':_0x8c2d42},'pivotTableId':_0x36d3f6,'pivotTableIndexConfig':_0x39b634}}}))[_0xb26093(0x307)][_0xb26093(0x1f0)];if(!_0x204018)return!0x1;const {isEmpty:_0x84b32d,fieldsConfig:_0x59f564,collectionConfig:_0x8b4a55,changesets:_0x31a803}=_0x204018,_0x530a19=_0x591f83[_0xb26093(0x36c)]()[_0xb26093(0x1eb)],_0x1d6e1b=_0x3bc435['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x2d2330[_0xb26093(0x31f)]()-0x1,'columnCount':_0x2d2330[_0xb26093(0x127)]()-0x1});_0x1d6e1b['id']=_0x3bc435[_0xb26093(0x2d1)](),_0x1d6e1b['name']=_0x591f83[_0xb26093(0x2be)](''+_0x4a25dc['t'](_0xb26093(0x261)));const _0x3f1f5d={'index':_0x530a19,'sheet':_0x1d6e1b,'unitId':_0x2fccd9},{redos:_0x23f3c7}=_0x995798(_0x260457,{'pivotTableId':_0x36d3f6,'unitId':_0x2fccd9,'subUnitId':_0x1d6e1b['id']},_0x31a803),_0x260a27=[{'id':_0x41a32a[_0xb26093(0xe6)]['id'],'params':_0x3f1f5d},{'id':_0x3a27d5['id'],'params':{'unitId':_0x2fccd9,'subUnitId':_0x1d6e1b['id'],'pivotTableId':_0x36d3f6,'pivotTableConfig':{'isEmpty':_0x84b32d,'fieldsConfig':_0x59f564,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x2fccd9,'subUnitId':_0x1d6e1b['id']},'sourceRangeInfo':{'subUnitId':_0x121240,'unitId':_0x2fccd9,'range':_0x8c2d42,'sheetName':_0x2d2330['getName']()}},'collectionConfig':_0x8b4a55}},..._0x23f3c7];return _0x3bc435[_0xb26093(0x1e4)](_0x260a27,_0x260457),!0x0;}},_0x2e3915={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x3c9),'handler'(_0x4fe7bf,_0x54ec15){const _0x18b437=_0x19e0d2;if(!_0x54ec15)return!0x1;if(!!_0x4fe7bf[_0x18b437(0x399)](_0x3bc435[_0x18b437(0x23a)])[_0x18b437(0x30f)](_0x2b8d8f))return!0x0;const {pivotTableId:_0x5026a3,unitId:_0x5c5145,subUnitId:_0x5d70ec}=_0x54ec15,_0x2f8256=_0x4fe7bf[_0x18b437(0x399)](_0x3721b8[_0x18b437(0x21b)]);return _0x2f8256[_0x18b437(0x161)](_0x5c5145,_0x5d70ec,_0x5026a3)?(_0x2f8256[_0x18b437(0x1df)]({'unitId':_0x5c5145,'subUnitId':_0x5d70ec,'token':_0x5026a3,'type':_0x528843[_0x18b437(0x1b3)]}),_0x2f8256[_0x18b437(0x164)](_0x5c5145,_0x5d70ec,_0x5026a3),!0x0):!0x1;}},_0x333b4a={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x142),async 'handler'(_0x5589b0,_0x57b7c6){const _0x34ad3e=_0x19e0d2;var _0x135ce3,_0x58797e;const _0x59e0cf=_0x5589b0[_0x34ad3e(0x399)](_0x3bc435['ICommandService']),_0xad4db1=_0x5589b0[_0x34ad3e(0x399)](_0x3bc435['IUniverInstanceService']),_0x10a31b=_0x5589b0[_0x34ad3e(0x399)](_0x3bc435[_0x34ad3e(0x2ea)]),_0x492f86=_0x5589b0[_0x34ad3e(0x399)](_0x3721b8[_0x34ad3e(0x131)]),_0x167413=_0x5589b0[_0x34ad3e(0x399)](_0x3bc435[_0x34ad3e(0x120)]),_0x195e02=_0x5589b0['get'](_0x3721b8[_0x34ad3e(0x200)]),_0x1181f4=_0x5589b0['get'](_0x3bc435[_0x34ad3e(0x23a)]);if(!_0x57b7c6)return!0x1;const {pivotTableConfig:_0x54770a,positionType:_0x1fe993}=_0x57b7c6,{targetCellInfo:_0x10a746,sourceRangeInfo:_0x15de0d}=_0x54770a,{unitId:_0x1deacf,subUnitId:_0x59d633}=_0x10a746,_0x2f407e=_0xad4db1[_0x34ad3e(0x2f0)](_0x1deacf);if(!_0x2f407e)return!0x1;let _0x100651=0x0;_0x2f407e[_0x34ad3e(0x36c)]()[_0x34ad3e(0x21a)](_0x1df4d3=>{const _0x2a94fd=_0x34ad3e;var _0x287530,_0x579d9f;_0x100651+=(_0x579d9f=(_0x287530=_0x195e02[_0x2a94fd(0x1c7)](_0x1deacf,_0x1df4d3[_0x2a94fd(0x309)]()))==null?void 0x0:_0x287530[_0x2a94fd(0xd2)])!=null?_0x579d9f:0x0;});const _0x3ae31d=(_0x135ce3=_0x1181f4[_0x34ad3e(0x30f)](_0x1b08d8[_0x34ad3e(0x1cd)]))!=null?_0x135ce3:{},{ls:_0x22d483,pbk:_0x2d66b4}=_0x3ae31d;if(!_0x1e88d7(_0x22d483,_0x2d66b4))return!0x1;const _0x62f1e3=_0x1f32e9(_0x3afaa7,_0x22d483,_0x2d66b4)[_0x34ad3e(0xec)];if(_0x100651>=_0x62f1e3)return!0x1;const _0x169a62=_0x57b7c6['pivotTableId']||_0x3b6806['generateHexNumber'](0x8),_0x129ed0=(await _0x492f86[_0x34ad3e(0x257)]({'unitId':_0x1deacf,'subUnitId':_0x59d633,'pivotTableId':_0x169a62,'params':{'type':_0x16021d[_0x34ad3e(0xca)],'addPivotTable':{'sourceRangeInfo':_0x15de0d,'pivotTableId':_0x169a62}}}))[_0x34ad3e(0x307)]['addPivotTable'];if(!_0x129ed0)return!0x1;const {view:_0x508ba5,isEmpty:_0x2058f0,fieldsConfig:_0x4b0224,collectionConfig:_0x2b4cb4}=_0x129ed0,_0x705bd3=[],_0x3cc030=[];if(_0x1fe993===_0x5e0340[_0x34ad3e(0x1c8)]){const _0x651049=_0x2f407e[_0x34ad3e(0x36c)]()[_0x34ad3e(0x1eb)],_0x351af0=_0x3bc435[_0x34ad3e(0x10e)]({});_0x351af0['id']=_0x54770a[_0x34ad3e(0x1f4)]['subUnitId'],_0x351af0[_0x34ad3e(0x13c)]=(_0x58797e=_0x54770a[_0x34ad3e(0x1f4)][_0x34ad3e(0xf2)])!=null?_0x58797e:_0x2f407e[_0x34ad3e(0x2be)](''+_0x10a31b['t'](_0x34ad3e(0x261)));const _0x4acbfe={'index':_0x651049,'sheet':_0x351af0,'unitId':_0x1deacf},_0x1c231f=_0x41a32a[_0x34ad3e(0x333)](_0x5589b0,_0x4acbfe);_0x705bd3[_0x34ad3e(0x274)]({'id':_0x41a32a['RemoveSheetMutation']['id'],'params':_0x1c231f}),_0x3cc030[_0x34ad3e(0x274)]({'id':_0x41a32a[_0x34ad3e(0x395)]['id'],'params':_0x4acbfe});}else{if(!_0x2f407e['getSheetBySheetId'](_0x59d633))return!0x1;const _0x5bd8e2=_0x46cb4e(_0x5589b0,new _0x3b6806[(_0x34ad3e(0x2d8))](),_0x10a746,!0x0);_0x3cc030['push'](..._0x5bd8e2[_0x34ad3e(0x2ac)]),_0x705bd3[_0x34ad3e(0x274)](..._0x5bd8e2[_0x34ad3e(0x379)]);const _0x2e1833={'cellInfo':_0x10a746,'view':_0x508ba5,'isEmpty':_0x2058f0};if(!await _0x5589b0['get'](_0x3721b8[_0x34ad3e(0x100)])['asyncInterceptor'][_0x34ad3e(0x116)](_0x355331)(!0x0,_0x2e1833))return!0x1;const _0x1254df=_0x2efb0f(_0x5589b0,_0x2e1833);_0x3cc030['push'](..._0x1254df[_0x34ad3e(0x2ac)]),_0x705bd3[_0x34ad3e(0x274)](..._0x1254df['undos']);}return _0x3cc030['push']({'id':_0x3a27d5['id'],'params':{'unitId':_0x10a746['unitId'],'subUnitId':_0x10a746[_0x34ad3e(0x1b5)],'pivotTableId':_0x169a62,'pivotTableConfig':{'targetCellInfo':_0x10a746,'sourceRangeInfo':_0x15de0d,'fieldsConfig':_0x4b0224},'collectionConfig':_0x2b4cb4}}),_0x705bd3['unshift']({'id':_0x2e3915['id'],'params':{'unitId':_0x1deacf,'subUnitId':_0x59d633,'pivotTableId':_0x169a62}}),_0x3bc435[_0x34ad3e(0x1e4)](_0x3cc030,_0x59e0cf)&&_0x167413[_0x34ad3e(0x1a0)]({'unitID':_0x1deacf,'undoMutations':_0x705bd3,'redoMutations':_0x3cc030}),!0x0;}},_0x587e42={'type':_0x3bc435[_0x19e0d2(0x108)]['COMMAND'],'id':_0x19e0d2(0x3db),async 'handler'(_0xd3abbf,_0x486bf2){const _0x15f8e1=_0x19e0d2;if(!_0x486bf2)return!0x1;const _0x23c619=_0xd3abbf[_0x15f8e1(0x399)](_0x3bc435[_0x15f8e1(0x32e)]),_0x139b4f=_0xd3abbf[_0x15f8e1(0x399)](_0x3721b8[_0x15f8e1(0x131)]),_0x64d785=_0xd3abbf[_0x15f8e1(0x399)](_0x3bc435[_0x15f8e1(0x120)]),{pivotTableId:_0x2d2c5c,fieldId:_0x322f3a,area:_0x42e676,index:_0xe42605,unitId:_0x29f6a3,subUnitId:_0x2f3a2b}=_0x486bf2,_0xb45abf=(await _0x139b4f['getPivotDisplayConfig']({'unitId':_0x29f6a3,'subUnitId':_0x2f3a2b,'pivotTableId':_0x2d2c5c,'params':{'type':_0x16021d[_0x15f8e1(0x1b2)],'movePivotField':{'fieldId':_0x322f3a,'area':_0x42e676,'index':_0xe42605}}}))['result'][_0x15f8e1(0x123)];if(!_0xb45abf)return!0x1;const {changesets:_0x51dcf5,view:_0x579e29,isEmpty:_0xdefc17,pivotTableConfig:_0x552fc1}=_0xb45abf,_0x3c0883=_0x552fc1[_0x15f8e1(0x1f4)],_0x1f15bf=new _0x3b6806['PivotView']();_0x1f15bf[_0x15f8e1(0x3e1)](_0x579e29);const _0x335632={'cellInfo':_0x3c0883,'view':_0x1f15bf,'isEmpty':_0xdefc17};if(!await _0xd3abbf[_0x15f8e1(0x399)](_0x3721b8['SheetsPivotTableService'])[_0x15f8e1(0x103)][_0x15f8e1(0x116)](_0x355331)(!0x0,_0x335632))return!0x1;const _0x5ca0e1=_0x46cb4e(_0xd3abbf,_0x1f15bf,_0x3c0883,_0xdefc17),_0x296040=_0x2efb0f(_0xd3abbf,_0x335632),{redos:_0x389350,undos:_0x36a51d}=_0x995798(_0x23c619,{'pivotTableId':_0x2d2c5c,'unitId':_0x29f6a3,'subUnitId':_0x2f3a2b},_0x51dcf5);return _0x3bc435['sequenceExecute']([..._0x5ca0e1[_0x15f8e1(0x2ac)],..._0x296040[_0x15f8e1(0x2ac)],..._0x389350],_0x23c619),_0x64d785[_0x15f8e1(0x1a0)]({'unitID':_0x29f6a3,'redoMutations':[..._0x5ca0e1[_0x15f8e1(0x2ac)],..._0x296040[_0x15f8e1(0x2ac)],..._0x389350],'undoMutations':[..._0x5ca0e1[_0x15f8e1(0x379)],..._0x296040[_0x15f8e1(0x379)],..._0x36a51d]}),!0x0;}},_0x29c5c7={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x211),'handler'(_0xa88601,_0x434c89){const _0x2f2457=_0x19e0d2;if(!_0x434c89)return!0x1;if(!!_0xa88601[_0x2f2457(0x399)](_0x3bc435[_0x2f2457(0x23a)])[_0x2f2457(0x30f)](_0x2b8d8f))return!0x0;const {pivotTableId:_0x5c22e7,targetCellPosition:_0x4bfc5f,unitId:_0x432a0b,subUnitId:_0x503cd4}=_0x434c89,_0xfb6c33=_0xa88601[_0x2f2457(0x399)](_0x3721b8[_0x2f2457(0x21b)]);if(!_0xfb6c33[_0x2f2457(0x33e)](_0x434c89[_0x2f2457(0x185)]))return!0x1;const _0x1723c7=_0xfb6c33[_0x2f2457(0xfb)](_0x5c22e7);if(!_0x1723c7)return!0x1;const _0xd5aa51=_0xfb6c33[_0x2f2457(0x26f)](_0x1723c7[_0x2f2457(0x351)],_0x434c89['pivotTableId']);if(!_0xd5aa51)return!0x1;const _0x38ad02=_0xfb6c33[_0x2f2457(0x161)](_0x1723c7[_0x2f2457(0x351)],_0x1723c7[_0x2f2457(0x1b5)],_0x5c22e7);if(!_0x38ad02)return!0x1;const _0x59753b=_0x3bc435[_0x2f2457(0xe3)][_0x2f2457(0x1ff)](_0x38ad02);_0x59753b['targetCellInfo']={'unitId':_0x432a0b,'subUnitId':_0x503cd4,'row':_0x4bfc5f[_0x2f2457(0x347)],'col':_0x4bfc5f[_0x2f2457(0x22e)]};const _0x3046cc=_0xd5aa51[_0x2f2457(0x346)]();if(_0x1723c7[_0x2f2457(0x1b5)]===_0x503cd4&&_0x1723c7[_0x2f2457(0x351)]===_0x432a0b)_0xfb6c33[_0x2f2457(0x11f)](_0x432a0b,_0x503cd4,_0x5c22e7,_0x59753b),_0xfb6c33[_0x2f2457(0x1df)]({'unitId':_0x432a0b,'subUnitId':_0x503cd4,'token':_0x5c22e7,'type':_0x528843[_0x2f2457(0x1c1)]});else{_0xfb6c33[_0x2f2457(0x1df)]({'unitId':_0x1723c7[_0x2f2457(0x351)],'subUnitId':_0x1723c7[_0x2f2457(0x1b5)],'token':_0x5c22e7,'type':_0x528843['Delete']}),_0xfb6c33[_0x2f2457(0x164)](_0x1723c7[_0x2f2457(0x351)],_0x1723c7['subUnitId'],_0x5c22e7);const _0x310de4=_0xfb6c33[_0x2f2457(0xfd)](_0x5c22e7,_0x3046cc,_0x38ad02[_0x2f2457(0x281)],_0x59753b[_0x2f2457(0x1f4)]),_0x23c5c7=new _0x3b6806['PivotTable'](_0x310de4[_0x2f2457(0x1e8)],void 0x0,_0x5c22e7);_0x23c5c7[_0x2f2457(0x1e0)](_0x59753b[_0x2f2457(0x233)]),_0xfb6c33[_0x2f2457(0x38e)](_0x432a0b,_0x503cd4,_0x5c22e7,_0x23c5c7,_0x59753b),_0xfb6c33[_0x2f2457(0x1df)]({'unitId':_0x432a0b,'subUnitId':_0x503cd4,'token':_0x5c22e7,'type':_0x528843['Add'],'pivotConfig':_0x59753b});}return!0x0;}},_0x527f11={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':'sheet.command.move-pivot-table','handler':(_0x59bf0e,_0x24241e)=>{const _0x25aa7f=_0x19e0d2,_0x13dfdd=_0x59bf0e[_0x25aa7f(0x399)](_0x3bc435['ICommandService']),_0xe248b4=_0x59bf0e['get'](_0x3bc435[_0x25aa7f(0x120)]),_0x385a50=_0x59bf0e[_0x25aa7f(0x399)](_0x3721b8['SheetsPivotTableConfigModel']),_0x1b8829=_0x59bf0e[_0x25aa7f(0x399)](_0x3bc435[_0x25aa7f(0x1f6)]);if(!_0x24241e)return!0x1;const _0x36f361=_0x41a32a[_0x25aa7f(0x11b)](_0x1b8829);if(!_0x36f361)return!0x1;const {unitId:_0x2402d8,subUnitId:_0xfdb225,workbook:_0x570e6c}=_0x36f361,_0x5de193=_0x385a50[_0x25aa7f(0x161)](_0x24241e['originTargetInfo'][_0x25aa7f(0x351)],_0x24241e['originTargetInfo']['subUnitId'],_0x24241e[_0x25aa7f(0x185)]);if(!_0x5de193)return!0x1;const _0x53c789=_0x570e6c[_0x25aa7f(0x234)](_0x24241e['targetCellInfo']['subUnitId']);if(!_0x53c789)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0xf7214c=_0x53c789[_0x25aa7f(0x31f)](),_0x217902=_0x53c789[_0x25aa7f(0x127)]();if(_0x24241e[_0x25aa7f(0x1f4)][_0x25aa7f(0x347)]>_0xf7214c||_0x24241e[_0x25aa7f(0x1f4)][_0x25aa7f(0x22e)]>_0x217902)throw new Error(_0x25aa7f(0x1d6));const _0x175b67=[{'id':_0x29c5c7['id'],'params':{'unitId':_0x2402d8,'subUnitId':_0x24241e['targetCellInfo']['subUnitId'],'pivotTableId':_0x24241e['pivotTableId'],'targetCellPosition':{'row':_0x24241e[_0x25aa7f(0x1f4)][_0x25aa7f(0x347)],'col':_0x24241e['targetCellInfo'][_0x25aa7f(0x22e)]}}}],_0xa60b8a=[{'id':_0x29c5c7['id'],'params':{'unitId':_0x2402d8,'subUnitId':_0xfdb225,'pivotTableId':_0x24241e[_0x25aa7f(0x185)],'targetCellPosition':{'row':_0x5de193['targetCellInfo'][_0x25aa7f(0x347)],'col':_0x5de193[_0x25aa7f(0x1f4)]['col']}}}];return _0x3bc435[_0x25aa7f(0x1e4)](_0x175b67,_0x13dfdd)&&_0xe248b4[_0x25aa7f(0x1a0)]({'unitID':_0x2402d8,'undoMutations':_0xa60b8a,'redoMutations':_0x175b67}),!0x0;}},_0x3338ea={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x2863b1,_0x2e06a5){const _0x1d2e98=_0x19e0d2;var _0x7ce124;if(!_0x2e06a5)return!0x1;const _0x3666e1=_0x2863b1[_0x1d2e98(0x399)](_0x3bc435[_0x1d2e98(0x1f6)]),_0x236694=_0x41a32a[_0x1d2e98(0x11b)](_0x3666e1);if(!_0x236694)return!0x1;const {unitId:_0x497015,subUnitId:_0x535a62,workbook:_0x1eca69}=_0x236694,{row:_0x493a26,col:_0xd6cd78}=_0x2e06a5,_0x44604b=_0x2863b1[_0x1d2e98(0x399)](_0x3721b8['SheetsPivotTableAdaptorModel']),_0x165ad0=_0x44604b[_0x1d2e98(0x319)](_0x497015,_0x535a62,_0x493a26,_0xd6cd78);if(!_0x165ad0)return!0x1;const _0x5cd5ac=(_0x7ce124=_0x44604b[_0x1d2e98(0x24d)](_0x497015,_0x535a62,_0x165ad0))==null?void 0x0:_0x7ce124['areaInfo'];if(!_0x5cd5ac)return!0x1;const _0x25a06c=_0x2863b1['get'](_0x3721b8[_0x1d2e98(0x200)])[_0x1d2e98(0x161)](_0x497015,_0x535a62,_0x165ad0);if(!_0x25a06c)return!0x1;const {rowInfo:_0x3b213d,colInfo:_0x4f290f}=_0x5cd5ac,_0x586f5b=_0x3b213d[_0x493a26][_0x1d2e98(0x247)],_0x5076fc=_0x4f290f[_0xd6cd78][_0x1d2e98(0x247)],_0x4df585=_0x3b213d[_0x493a26]['level'],_0x10fccd=_0x4f290f[_0xd6cd78]['level'],_0x2e1359=_0x586f5b[_0x1d2e98(0x240)](_0x5076fc),_0x504ea5=_0x25a06c[_0x1d2e98(0x233)][_0x1d2e98(0x190)][_0x1d2e98(0x220)](0x0,_0x4df585),_0x207671=_0x25a06c['fieldsConfig'][_0x1d2e98(0x2de)][_0x1d2e98(0x220)](0x0,_0x10fccd),_0x3e1129=_0x504ea5[_0x1d2e98(0x240)](_0x207671),_0x414cb8=_0x2e1359['map']((_0x39ce6e,_0x938f03)=>[_0x39ce6e,_0x3e1129[_0x938f03]]),_0x128dcc=(await _0x2863b1[_0x1d2e98(0x399)](_0x3721b8[_0x1d2e98(0x131)])[_0x1d2e98(0x257)]({'unitId':_0x497015,'subUnitId':_0x535a62,'pivotTableId':_0x165ad0,'params':{'type':_0x16021d[_0x1d2e98(0x2c6)],'drillDown':{'tuple':_0x414cb8}}}))[_0x1d2e98(0x307)]['drillDown'];if(!_0x128dcc)return!0x1;const {indexes:_0x38c95e,range:_0x295b15,sourceUnitId:_0x354993,sourceSubUnitId:_0x15c4be,formatMap:_0x13da1c}=_0x128dcc,{startRow:_0xe3d349,endRow:_0x55e750,startColumn:_0x2b794c,endColumn:_0x3ade59}=_0x295b15,_0x1bc313=new _0x3bc435['ObjectMatrix'](),_0x5a4829=_0x55e750-_0xe3d349,_0x4b5d54=_0x3ade59-_0x2b794c,_0x50c34f={},_0x172a67=_0x41a32a[_0x1d2e98(0x11b)](_0x3666e1,{'unitId':_0x354993,'subUnitId':_0x15c4be});if(!_0x172a67)return!0x1;const _0x5024f9=_0x452420[_0x1d2e98(0x12d)],_0x25eeaf=_0x452420[_0x1d2e98(0x39e)],_0x1adcba=_0x452420[_0x1d2e98(0x39e)],_0x9142c9=_0x1eca69[_0x1d2e98(0x279)]()[_0x1d2e98(0x17d)](_0x5024f9),_0x6cb593=_0x1eca69[_0x1d2e98(0x279)]()[_0x1d2e98(0x17d)](_0x25eeaf),_0x25ddc4=_0x1eca69[_0x1d2e98(0x279)]()[_0x1d2e98(0x17d)](_0x1adcba),{worksheet:_0x239b00}=_0x172a67;let _0x4316a4=0x0;const _0x58c950=0x1;_0x38c95e[_0x1d2e98(0x21a)](_0x31c570=>{const _0x5cae71=_0x1d2e98;for(let _0x433196=0x0;_0x433196<=_0x3ade59-_0x2b794c;_0x433196++)_0x1bc313[_0x5cae71(0x17d)](_0x4316a4,_0x433196,_0x239b00[_0x5cae71(0x2cf)](_0x31c570+_0x295b15[_0x5cae71(0x360)]+_0x58c950,_0x433196));_0x4316a4++;});for(let _0x55b3e2=_0x2b794c;_0x55b3e2<=_0x3ade59;_0x55b3e2++){const _0x10f9b0=_0x239b00[_0x1d2e98(0x2cf)](_0xe3d349,_0x55b3e2);_0x50c34f[_0xe3d349]||(_0x50c34f[_0xe3d349]={}),_0x50c34f[_0xe3d349][_0x55b3e2]={..._0x10f9b0,'s':_0x9142c9};}let _0x530c65=0x1;const _0x3941aa={},_0x2f6d3f={};_0x1bc313[_0x1d2e98(0x34f)]((_0x508b3a,_0x836fa3)=>{const _0xa2f3c6=_0x1d2e98;_0x836fa3[_0xa2f3c6(0x21a)](_0x47c9ac=>{const _0x546d81=_0xa2f3c6,_0x2c9fcb=_0x1bc313[_0x546d81(0x21c)](_0x508b3a,_0x47c9ac);if(_0x50c34f[_0x530c65]||(_0x50c34f[_0x530c65]={}),_0x50c34f[_0x530c65][_0x47c9ac]={..._0x2c9fcb,'s':_0x530c65%0x2===0x0?_0x25ddc4:_0x6cb593},_0x13da1c[_0x47c9ac]&&_0x508b3a>=0x0){const _0x2db6a8=_0x530c65%0x2===0x0;let _0x4fe81f=_0x2db6a8?_0x2f6d3f[_0x47c9ac]:_0x3941aa[_0x47c9ac];_0x4fe81f||(_0x4fe81f=_0x1eca69[_0x546d81(0x279)]()['setValue']({..._0x2db6a8?_0x1adcba:_0x25eeaf,'n':{'pattern':_0x13da1c[_0x47c9ac]}}),_0x2db6a8?_0x2f6d3f[_0x47c9ac]=_0x4fe81f:_0x3941aa[_0x47c9ac]=_0x4fe81f),_0x50c34f[_0x530c65][_0x47c9ac]['s']=_0x4fe81f;}}),_0x530c65++;});const _0x2b1911=new _0x3bc435[(_0x1d2e98(0x268))](_0x50c34f),_0x526623={};_0x2b1911[_0x1d2e98(0x298)]((_0x27f2d1,_0x25f393,_0x1bbdcd)=>{_0x526623[_0x27f2d1]||(_0x526623[_0x27f2d1]={}),_0x526623[_0x27f2d1][_0x25f393]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x177759=[],_0x4dad14=[],_0x3c8b8d=_0x1eca69['getSheets']()[_0x1d2e98(0x1eb)],_0x3cf84a=_0x3bc435['mergeWorksheetSnapshotWithDefault']({'rowCount':Math[_0x1d2e98(0x20a)](_0x3bc435[_0x1d2e98(0x32b)],_0x5a4829+0xa),'columnCount':Math[_0x1d2e98(0x20a)](_0x3bc435['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x4b5d54+0x5)}),_0x3fad31=_0x2863b1['get'](_0x3bc435[_0x1d2e98(0x2ea)]);_0x3cf84a['id']=_0x3bc435[_0x1d2e98(0x2d1)](),_0x3cf84a['name']=_0x1eca69[_0x1d2e98(0x2be)](''+_0x3fad31['t'](_0x1d2e98(0x261)));const _0x278f04={'index':_0x3c8b8d,'sheet':_0x3cf84a,'unitId':_0x497015},_0x3b096d=_0x41a32a[_0x1d2e98(0x333)](_0x2863b1,_0x278f04);_0x4dad14['push']({'id':_0x41a32a['InsertSheetMutation']['id'],'params':_0x278f04}),_0x177759[_0x1d2e98(0x274)]({'id':_0x41a32a[_0x1d2e98(0x104)]['id'],'params':_0x3b096d}),_0x4dad14[_0x1d2e98(0x274)]({'id':_0x41a32a[_0x1d2e98(0x1ac)]['id'],'params':{'unitId':_0x497015,'subUnitId':_0x3cf84a['id'],'cellValue':_0x50c34f}}),_0x177759[_0x1d2e98(0x1bc)]({'id':_0x41a32a['SetRangeValuesMutation']['id'],'params':{'unitId':_0x497015,'subUnitId':_0x3cf84a['id'],'cellValue':_0x526623}});const _0x88513e={'startRow':0x0,'startColumn':0x0,'endRow':_0x530c65-0x1,'endColumn':_0x3ade59};_0x4dad14[_0x1d2e98(0x274)]({'id':_0x8fd3f[_0x1d2e98(0x1be)]['id'],'params':{'unitId':_0x497015,'subUnitId':_0x3cf84a['id'],'range':_0x88513e}}),_0x177759['unshift']({'id':_0x8fd3f[_0x1d2e98(0x13a)]['id'],'params':{'unitId':_0x497015,'subUnitId':_0x3cf84a['id']}});const _0x9a70c0=_0x2863b1[_0x1d2e98(0x399)](_0x3bc435[_0x1d2e98(0x32e)]);return _0x3bc435[_0x1d2e98(0x1e4)](_0x4dad14,_0x9a70c0)&&_0x2863b1[_0x1d2e98(0x399)](_0x3bc435[_0x1d2e98(0x120)])[_0x1d2e98(0x1a0)]({'unitID':_0x497015,'undoMutations':_0x177759,'redoMutations':_0x4dad14}),!0x0;}},_0x3a7380={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x3b2),async 'handler'(_0x1eb73f,_0x56aa3b){const _0xcb8c94=_0x19e0d2;if(!_0x56aa3b)return!0x1;const _0x17aedb=_0x1eb73f['get'](_0x3bc435[_0xcb8c94(0x32e)]),_0x4d7f3b=_0x1eb73f['get'](_0x3721b8[_0xcb8c94(0x131)]),_0x5dafc8=_0x1eb73f[_0xcb8c94(0x399)](_0x3bc435[_0xcb8c94(0x120)]),{pivotTableId:_0x5a740d,fieldIds:_0x4f1a43,unitId:_0xbd8355,subUnitId:_0x3db072}=_0x56aa3b,_0x10d5d2=(await _0x4d7f3b[_0xcb8c94(0x257)]({'unitId':_0xbd8355,'subUnitId':_0x3db072,'pivotTableId':_0x5a740d,'params':{'type':_0x16021d[_0xcb8c94(0x363)],'removePivotField':{'fieldIds':_0x4f1a43}}}))[_0xcb8c94(0x307)][_0xcb8c94(0x329)];if(!_0x10d5d2)return!0x1;const {view:_0x207734,changesets:_0x14c412,isEmpty:_0x29c874,pivotTableConfig:_0x5c079b}=_0x10d5d2,_0x34650c=_0x5c079b[_0xcb8c94(0x1f4)],_0x254f69=new _0x3b6806[(_0xcb8c94(0x2d8))]();_0x254f69['formJSON'](_0x207734);const _0x35b034={'cellInfo':_0x34650c,'view':_0x254f69,'isEmpty':_0x29c874};if(!await _0x1eb73f[_0xcb8c94(0x399)](_0x3721b8[_0xcb8c94(0x100)])[_0xcb8c94(0x103)][_0xcb8c94(0x116)](_0x355331)(!0x0,_0x35b034))return!0x1;const _0x2c15ef=_0x46cb4e(_0x1eb73f,_0x254f69,_0x34650c,_0x29c874),_0x9305bb=_0x2efb0f(_0x1eb73f,_0x35b034),{redos:_0x4e1461,undos:_0x1e6d18}=_0x995798(_0x17aedb,{'pivotTableId':_0x5a740d,'unitId':_0xbd8355,'subUnitId':_0x3db072},_0x14c412);return _0x3bc435[_0xcb8c94(0x1e4)]([..._0x2c15ef[_0xcb8c94(0x2ac)],..._0x9305bb[_0xcb8c94(0x2ac)],..._0x4e1461],_0x17aedb),_0x5dafc8[_0xcb8c94(0x1a0)]({'unitID':_0xbd8355,'redoMutations':[..._0x2c15ef[_0xcb8c94(0x2ac)],..._0x9305bb[_0xcb8c94(0x2ac)],..._0x4e1461],'undoMutations':[..._0x2c15ef[_0xcb8c94(0x379)],..._0x9305bb[_0xcb8c94(0x379)],..._0x1e6d18]}),!0x0;}},_0xc50fc8={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x2db8f8,_0x4e71a7){const _0xfcfdc4=_0x19e0d2;if(!_0x4e71a7)return!0x1;const _0xefb93c=_0x2db8f8[_0xfcfdc4(0x399)](_0x3bc435[_0xfcfdc4(0x32e)]),_0x46684a=_0x2db8f8[_0xfcfdc4(0x399)](_0x3bc435[_0xfcfdc4(0x120)]),_0xc22fb3=_0x2db8f8['get'](_0x3721b8[_0xfcfdc4(0x131)]),{resetArea:_0x1aedae,pivotTableId:_0x1ae411,unitId:_0x505b51,subUnitId:_0x167d17}=_0x4e71a7,_0x35d51f=(await _0xc22fb3[_0xfcfdc4(0x257)]({'unitId':_0x505b51,'subUnitId':_0x167d17,'pivotTableId':_0x1ae411,'params':{'type':_0x16021d[_0xfcfdc4(0x375)],'resetPivotTable':{'pivotTableId':_0x1ae411,'resetArea':_0x1aedae}}}))[_0xfcfdc4(0x307)][_0xfcfdc4(0x289)];if(!_0x35d51f)return!0x1;const {changesets:_0x1d7f4f}=_0x35d51f,{redos:_0x5afb8f,undos:_0x4bcec3}=_0x995798(_0xefb93c,{'pivotTableId':_0x1ae411,'unitId':_0x505b51,'subUnitId':_0x167d17},_0x1d7f4f);return _0x3bc435[_0xfcfdc4(0x1e4)](_0x5afb8f,_0xefb93c),_0x46684a[_0xfcfdc4(0x1a0)]({'unitID':_0x505b51,'redoMutations':_0x5afb8f,'undoMutations':_0x4bcec3}),!0x0;}},_0x1c322b={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x19c),async 'handler'(_0x3ce7a3,_0x4bf26d){const _0x4a17b1=_0x19e0d2,_0x28e9d4=_0x3ce7a3[_0x4a17b1(0x399)](_0x3bc435[_0x4a17b1(0x32e)]),_0x3ddc93=_0x3ce7a3[_0x4a17b1(0x399)](_0x3721b8[_0x4a17b1(0x131)]),_0x1c7e75=_0x3ce7a3[_0x4a17b1(0x399)](_0x3721b8['SheetsPivotTableAdaptorModel']),_0x28a8a3=_0x3ce7a3[_0x4a17b1(0x399)](_0x3bc435[_0x4a17b1(0x1f6)]),_0x40fa8e=_0x3ce7a3[_0x4a17b1(0x399)](_0x3bc435[_0x4a17b1(0x2ea)]),_0x3e95d3=_0x3ce7a3['get'](_0x3bc435[_0x4a17b1(0x120)]);if(!_0x4bf26d)return!0x1;const {unitId:_0x2e7177,subUnitId:_0x25aa3f,row:_0x1520fd,col:_0x43aaa9,collapse:_0x1fbfb7}=_0x4bf26d,_0x3f34d9=_0x28a8a3[_0x4a17b1(0x2f0)](_0x2e7177);if(!_0x3f34d9||!_0x3f34d9[_0x4a17b1(0x234)](_0x25aa3f))return!0x1;const _0x4371e7=_0x1c7e75[_0x4a17b1(0x319)](_0x2e7177,_0x25aa3f,_0x1520fd,_0x43aaa9);if(!_0x4371e7)return!0x1;const _0x5cba0f=_0x1c7e75['getPivotItemRenderInfoCache'](_0x2e7177,_0x25aa3f,_0x4371e7);if(!_0x5cba0f)return!0x1;const _0x42b5f5=_0x3bc435[_0x4a17b1(0x1fd)](_0x1520fd,_0x43aaa9),{rangesInfo:_0x37e502,areaInfo:_0x17c065,headerMap:_0x32fb47}=_0x5cba0f;if(!_0x37e502||!_0x17c065||!_0x32fb47)return!0x1;const _0x373314=Object[_0x4a17b1(0x25b)](_0x37e502)['find'](_0x2150a1=>_0x37e502[_0x2150a1][_0x4a17b1(0x3ba)](_0x3aa55d=>_0x3bc435['Rectangle']['contains'](_0x3aa55d,_0x42b5f5)));let _0x609da8;_0x373314===_0x4a17b1(0x3df)?_0x609da8=_0x32fb47['rowHeaderMap'][_0x43aaa9]:_0x373314===_0x4a17b1(0x39f)&&(_0x609da8=_0x32fb47[_0x4a17b1(0x38d)][_0x1520fd]);const _0x4c74a6=_0x609da8==null?void 0x0:_0x609da8[_0x4a17b1(0x371)],_0x3e4926=_0x1c7e75[_0x4a17b1(0x231)](_0x2e7177,_0x25aa3f,_0x1520fd,_0x43aaa9);let _0x5c8268=_0x3e4926==null?void 0x0:_0x3e4926['v'];if(_0x5c8268===_0x40fa8e['t'](_0x4a17b1(0x2aa))&&(_0x5c8268=_0x3b6806[_0x4a17b1(0x37b)][_0x4a17b1(0x31a)]),_0x5c8268==null||!_0x4371e7||!_0x4c74a6)return!0x1;const _0x45f249=await _0x3ddc93['getPivotDisplayConfig']({'unitId':_0x2e7177,'subUnitId':_0x25aa3f,'pivotTableId':_0x4371e7,'params':{'type':_0x16021d[_0x4a17b1(0x3d6)],'setPivotCollapse':{'tableFieldId':_0x4c74a6,'collapse':_0x1fbfb7,'item':_0x5c8268}}}),_0x4d1387=_0x45f249==null?void 0x0:_0x45f249[_0x4a17b1(0x307)][_0x4a17b1(0x158)];if(!_0x4d1387)return!0x1;const {view:_0x4148f1,pivotTableConfig:_0x329178,isEmpty:_0x17af03,changesets:_0x9917c9}=_0x4d1387,_0x3799ef=new _0x3b6806['PivotView']();_0x3799ef[_0x4a17b1(0x3e1)](_0x4148f1);const _0x482932=_0x329178[_0x4a17b1(0x1f4)],_0x5096a9={'cellInfo':_0x482932,'view':_0x3799ef,'isEmpty':_0x17af03};if(!await _0x3ce7a3[_0x4a17b1(0x399)](_0x3721b8[_0x4a17b1(0x100)])[_0x4a17b1(0x103)][_0x4a17b1(0x116)](_0x355331)(!0x0,_0x5096a9))return!0x1;const _0x41be52=_0x46cb4e(_0x3ce7a3,_0x3799ef,_0x482932,_0x17af03),_0x5b4d9a=_0x2efb0f(_0x3ce7a3,_0x5096a9),{redos:_0x16a3f6,undos:_0x2773b8}=_0x995798(_0x28e9d4,{'pivotTableId':_0x4371e7,'unitId':_0x2e7177,'subUnitId':_0x25aa3f},_0x9917c9);return _0x3bc435[_0x4a17b1(0x1e4)]([..._0x41be52[_0x4a17b1(0x2ac)],..._0x5b4d9a[_0x4a17b1(0x2ac)],..._0x16a3f6],_0x28e9d4),_0x3e95d3[_0x4a17b1(0x1a0)]({'unitID':_0x2e7177,'redoMutations':[..._0x41be52[_0x4a17b1(0x2ac)],..._0x5b4d9a['redos'],..._0x16a3f6],'undoMutations':[..._0x41be52[_0x4a17b1(0x379)],..._0x5b4d9a['undos'],..._0x2773b8]}),!0x0;}},_0x564d9c={'type':_0x3bc435[_0x19e0d2(0x108)]['COMMAND'],'id':_0x19e0d2(0x251),async 'handler'(_0x38b7b1,_0x5db1cf){const _0x3247d0=_0x19e0d2;if(!_0x5db1cf)return!0x1;const _0x56b1f1=_0x38b7b1[_0x3247d0(0x399)](_0x3bc435[_0x3247d0(0x32e)]),_0x30ab3b=_0x38b7b1[_0x3247d0(0x399)](_0x3bc435[_0x3247d0(0x120)]),_0x578ee2=_0x38b7b1[_0x3247d0(0x399)](_0x3721b8[_0x3247d0(0x131)]),{pivotTableConfig:_0x13fb19,pivotTableId:_0x4898ef,unitId:_0x432b5a,subUnitId:_0x39c994}=_0x5db1cf,_0x5510ee=(await _0x578ee2[_0x3247d0(0x257)]({'unitId':_0x432b5a,'subUnitId':_0x39c994,'pivotTableId':_0x4898ef,'params':{'type':_0x16021d['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x4898ef,'pivotTableConfig':_0x13fb19}}}))[_0x3247d0(0x307)][_0x3247d0(0x332)];if(!_0x5510ee)return!0x1;const {changesets:_0x4dc0e9}=_0x5510ee,{redos:_0x107c0d,undos:_0x2151bd}=_0x995798(_0x56b1f1,{'pivotTableId':_0x4898ef,'unitId':_0x432b5a,'subUnitId':_0x39c994},_0x4dc0e9);return _0x3bc435[_0x3247d0(0x1e4)](_0x107c0d,_0x56b1f1),_0x30ab3b[_0x3247d0(0x1a0)]({'unitID':_0x432b5a,'redoMutations':_0x107c0d,'undoMutations':_0x2151bd}),!0x0;}},_0xe952ac={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x14d),async 'handler'(_0x201b97,_0x48a9fe){const _0x3115c3=_0x19e0d2;if(!_0x48a9fe)return!0x1;const _0x23dcab=_0x201b97['get'](_0x3bc435[_0x3115c3(0x32e)]),{pivotTableId:_0x26d0a6,tableFieldId:_0x42a2d6,items:_0x12b263,unitId:_0x164bbf,subUnitId:_0x1dad0c,isAll:_0x37fe5b}=_0x48a9fe,_0x247afb=_0x201b97[_0x3115c3(0x399)](_0x3721b8[_0x3115c3(0x131)]),_0x6024c3=_0x201b97[_0x3115c3(0x399)](_0x3bc435[_0x3115c3(0x120)]),_0x43f302=(await _0x247afb['getPivotDisplayConfig']({'unitId':_0x164bbf,'subUnitId':_0x1dad0c,'pivotTableId':_0x26d0a6,'params':{'type':_0x16021d[_0x3115c3(0x3a1)],'setPivotFilter':{'tableFieldId':_0x42a2d6,'items':_0x12b263,'isAll':_0x37fe5b}}}))[_0x3115c3(0x307)]['setPivotFilter'];if(!_0x43f302)return!0x1;const {changesets:_0x661d1d,pivotTableConfig:_0x2a8bfa,isEmpty:_0x2b21c4,view:_0x195b80}=_0x43f302,_0x15998f=_0x2a8bfa[_0x3115c3(0x1f4)],_0x3c6412=new _0x3b6806[(_0x3115c3(0x2d8))]();_0x3c6412['formJSON'](_0x195b80);const _0x1d57bb={'cellInfo':_0x15998f,'view':_0x3c6412,'isEmpty':_0x2b21c4};if(!await _0x201b97[_0x3115c3(0x399)](_0x3721b8[_0x3115c3(0x100)])[_0x3115c3(0x103)]['fetchThroughAsyncInterceptors'](_0x355331)(!0x0,_0x1d57bb))return!0x1;const _0x4d497c=_0x46cb4e(_0x201b97,_0x3c6412,_0x15998f,_0x2b21c4),_0x12bf02=_0x2efb0f(_0x201b97,_0x1d57bb),{undos:_0x188027,redos:_0x5ea4ab}=_0x995798(_0x23dcab,{'pivotTableId':_0x26d0a6,'unitId':_0x164bbf,'subUnitId':_0x1dad0c},_0x661d1d);return _0x3bc435[_0x3115c3(0x1e4)]([..._0x4d497c['redos'],..._0x12bf02[_0x3115c3(0x2ac)],..._0x5ea4ab],_0x23dcab),_0x6024c3[_0x3115c3(0x1a0)]({'unitID':_0x164bbf,'redoMutations':[..._0x4d497c[_0x3115c3(0x2ac)],..._0x12bf02[_0x3115c3(0x2ac)],..._0x5ea4ab],'undoMutations':[..._0x4d497c['undos'],..._0x12bf02['undos'],..._0x188027]}),!0x0;}},_0x2871b0={'type':_0x3bc435['CommandType']['COMMAND'],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x545bd0,_0x3658af){const _0x4c3727=_0x19e0d2;if(!_0x3658af)return!0x1;const _0x5bfb1a=_0x545bd0[_0x4c3727(0x399)](_0x3bc435[_0x4c3727(0x32e)]),_0x38e8c4=_0x545bd0['get'](_0x3bc435[_0x4c3727(0x120)]),_0x4591a6=_0x545bd0[_0x4c3727(0x399)](_0x3721b8[_0x4c3727(0x131)]),{info:_0x30ef08,tableFieldId:_0x57cb7c,pivotTableId:_0x173dbe,unitId:_0x21e908,subUnitId:_0x5122ea}=_0x3658af,_0x2d1619=(await _0x4591a6[_0x4c3727(0x257)]({'unitId':_0x21e908,'subUnitId':_0x5122ea,'pivotTableId':_0x173dbe,'params':{'type':_0x16021d[_0x4c3727(0x125)],'setPivotSort':{'tableFieldId':_0x57cb7c,'info':_0x30ef08}}}))[_0x4c3727(0x307)][_0x4c3727(0xe5)];if(!_0x2d1619)return!0x1;const {changesets:_0xfd5d76}=_0x2d1619,{redos:_0x558ccc,undos:_0x279dde}=_0x995798(_0x5bfb1a,{'pivotTableId':_0x173dbe,'unitId':_0x21e908,'subUnitId':_0x5122ea},_0xfd5d76);return _0x3bc435[_0x4c3727(0x1e4)](_0x558ccc,_0x5bfb1a),_0x38e8c4[_0x4c3727(0x1a0)]({'unitID':_0x21e908,'redoMutations':_0x558ccc,'undoMutations':_0x279dde}),!0x0;}},_0xaf029e={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x219),async 'handler'(_0x16e56e,_0x5a70b6){const _0x44fc53=_0x19e0d2;if(!_0x5a70b6)return!0x1;const _0x4799ef=_0x16e56e[_0x44fc53(0x399)](_0x3bc435[_0x44fc53(0x32e)]),{pivotTableId:_0xeaa642,fieldId:_0x161662,valueFilterInfo:_0x9b124d,unitId:_0x264ed3,subUnitId:_0x5b11ee}=_0x5a70b6,_0x504fcb=_0x16e56e[_0x44fc53(0x399)](_0x3721b8[_0x44fc53(0x131)]),_0x4b6b5d=_0x16e56e[_0x44fc53(0x399)](_0x3bc435['IUndoRedoService']),_0x2a58d2=(await _0x504fcb[_0x44fc53(0x257)]({'unitId':_0x264ed3,'subUnitId':_0x5b11ee,'pivotTableId':_0xeaa642,'params':{'type':_0x16021d[_0x44fc53(0x28e)],'setValuePivotFilter':{'tableFieldId':_0x161662,'filterInfo':_0x9b124d}}}))[_0x44fc53(0x307)][_0x44fc53(0x1d7)];if(!_0x2a58d2)return!0x1;const {changesets:_0x3e9817,pivotTableConfig:_0x4dca18,isEmpty:_0x459426,view:_0x4cdacc}=_0x2a58d2,_0x5a3762=_0x4dca18[_0x44fc53(0x1f4)],_0x577d27=new _0x3b6806[(_0x44fc53(0x2d8))]();_0x577d27[_0x44fc53(0x3e1)](_0x4cdacc);const _0x128b37={'cellInfo':_0x5a3762,'view':_0x577d27,'isEmpty':_0x459426};if(!await _0x16e56e['get'](_0x3721b8[_0x44fc53(0x100)])[_0x44fc53(0x103)][_0x44fc53(0x116)](_0x355331)(!0x0,_0x128b37))return!0x1;const _0x4cb065=_0x46cb4e(_0x16e56e,_0x577d27,_0x5a3762,_0x459426),_0x302c07=_0x2efb0f(_0x16e56e,_0x128b37),{undos:_0x1876fd,redos:_0x108ba3}=_0x995798(_0x4799ef,{'pivotTableId':_0xeaa642,'unitId':_0x264ed3,'subUnitId':_0x5b11ee},_0x3e9817);return _0x3bc435[_0x44fc53(0x1e4)]([..._0x4cb065[_0x44fc53(0x2ac)],..._0x302c07['redos'],..._0x108ba3],_0x4799ef),_0x4b6b5d[_0x44fc53(0x1a0)]({'unitID':_0x264ed3,'redoMutations':[..._0x4cb065[_0x44fc53(0x2ac)],..._0x302c07[_0x44fc53(0x2ac)],..._0x108ba3],'undoMutations':[..._0x4cb065[_0x44fc53(0x379)],..._0x302c07[_0x44fc53(0x379)],..._0x1876fd]}),!0x0;}},_0x32fe21={'id':_0x19e0d2(0x2a1),'type':_0x3bc435[_0x19e0d2(0x108)]['MUTATION'],'handler':(_0x347f28,_0x4e5f3c)=>{const _0x15489d=_0x19e0d2;if(!_0x4e5f3c)return!0x1;if(!!_0x347f28['get'](_0x3bc435[_0x15489d(0x23a)])[_0x15489d(0x30f)](_0x2b8d8f))return!0x0;const {unitId:_0x12a116,subUnitId:_0x3ec84d,pivotTableId:_0x2f4832,tableFieldId:_0x51c004,dateType:_0xf589e0}=_0x4e5f3c,_0x320a65=_0x347f28[_0x15489d(0x399)](_0x3721b8['SheetsPivotDataSourceModel']),_0x3b1dfb=_0x320a65[_0x15489d(0x33e)](_0x2f4832);if(!_0x3b1dfb)return!0x1;const _0x21932c=_0x3b1dfb[_0x15489d(0x20d)](_0x51c004);if(!_0x21932c)return!0x1;const _0x187bb9=_0x21932c[_0x15489d(0x1ce)](),_0x14d9f5=_0x3b1dfb['getDataFieldByDataFieldId'](_0x187bb9),_0x16e0a2=(_0x14d9f5==null?void 0x0:_0x14d9f5[_0x15489d(0x2a7)]())+'\x20'+_0x2dc41d(_0x347f28,_0xf589e0);_0x320a65[_0x15489d(0x26f)](_0x12a116,_0x2f4832)['setDisplayName'](_0x21932c['id'],_0x16e0a2);const _0x54d1d6=_0x3b1dfb[_0x15489d(0x33a)](_0x51c004);if(!_0x54d1d6)return!0x1;_0x3b1dfb['renameField'](_0x54d1d6[_0x15489d(0x3da)](),_0x16e0a2),_0x21932c[_0x15489d(0x195)](_0xf589e0);const _0xb5589=_0x320a65[_0x15489d(0x161)](_0x12a116,_0x3ec84d,_0x2f4832);return _0x320a65['addDirtyPivotTable']({'unitId':_0x12a116,'subUnitId':_0x3ec84d,'token':_0x2f4832,'type':_0x528843[_0x15489d(0x1c1)],'pivotConfig':_0xb5589}),!0x0;}},_0x464e41={'id':_0x19e0d2(0x2d2),'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'handler':(_0x3f93f6,_0x121f30)=>{const _0x2b3747=_0x19e0d2;if(!_0x121f30)return!0x1;const _0x39046d=_0x3f93f6['get'](_0x3bc435[_0x2b3747(0x120)]),{unitId:_0x48ce53,subUnitId:_0x50478f,pivotTableId:_0x437757,tableFieldId:_0x4ad839}=_0x121f30,_0x45ed69=[],_0xdca86c=[],_0x2f319c=_0x3f93f6['get'](_0x3721b8[_0x2b3747(0x200)]),_0x23565f=_0x2f319c[_0x2b3747(0x26f)](_0x48ce53,_0x437757),_0x1995eb=_0x2f319c[_0x2b3747(0x161)](_0x48ce53,_0x50478f,_0x437757);if(!(_0x1995eb!=null&&_0x1995eb[_0x2b3747(0x233)][_0x2b3747(0x156)]))return!0x1;const _0x25d564=Object[_0x2b3747(0x373)](_0x1995eb[_0x2b3747(0x233)][_0x2b3747(0x156)])[_0x2b3747(0x39c)](_0x4d2b19=>_0x4d2b19['id']===_0x4ad839);if(!_0x25d564)return!0x1;const _0x7e2783=_0x25d564['dataFieldId'];if(!(_0x23565f!=null&&_0x23565f['fields']))return!0x1;const _0x5ca3e8=Object[_0x2b3747(0x373)](_0x23565f==null?void 0x0:_0x23565f[_0x2b3747(0x1cc)])[_0x2b3747(0x39c)](_0x5d715e=>_0x5d715e['id']===_0x7e2783);if(!_0x5ca3e8)return!0x1;_0x3b6806[_0x2b3747(0x213)](_0x5ca3e8)&&_0x45ed69[_0x2b3747(0x274)]({'id':_0x32fe21['id'],'params':{..._0x121f30,'dateType':_0x5ca3e8[_0x2b3747(0x304)]}}),_0xdca86c['push']({'id':_0x32fe21['id'],'params':{..._0x121f30}});const _0x3d7320=_0x3f93f6[_0x2b3747(0x399)](_0x3bc435[_0x2b3747(0x32e)]);return _0x3bc435['sequenceExecute'](_0xdca86c,_0x3d7320)&&_0x39046d[_0x2b3747(0x1a0)]({'unitID':_0x48ce53,'undoMutations':_0x45ed69,'redoMutations':_0xdca86c}),!0x0;}},_0x44fe41={'type':_0x3bc435[_0x19e0d2(0x108)]['COMMAND'],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x2d8a97,_0x1a5162){const _0x11ed58=_0x19e0d2;if(!_0x1a5162)return!0x1;const _0x1e0d0d=_0x2d8a97[_0x11ed58(0x399)](_0x3bc435['ICommandService']),_0xfd8f6f=_0x2d8a97[_0x11ed58(0x399)](_0x3bc435[_0x11ed58(0x120)]),_0x5533c3=_0x2d8a97['get'](_0x3721b8['SheetsPivotRPCService']),{displayName:_0x528f8e,subtotalType:_0x3b57d2,format:_0x320a4d,tableFieldId:_0x5c7b2f,pivotTableId:_0x139789,unitId:_0x40f5d3,subUnitId:_0x3a8fe2}=_0x1a5162,_0x5cec69=(await _0x5533c3[_0x11ed58(0x257)]({'unitId':_0x40f5d3,'subUnitId':_0x3a8fe2,'pivotTableId':_0x139789,'params':{'type':_0x16021d[_0x11ed58(0x2e9)],'setPivotSetting':{'tableFieldId':_0x5c7b2f,'displayName':_0x528f8e,'subtotalType':_0x3b57d2,'format':_0x320a4d}}}))[_0x11ed58(0x307)][_0x11ed58(0x146)];if(!_0x5cec69)return!0x1;const {changesets:_0x1bdd48,view:_0x4d529e,pivotTableConfig:_0x478e57,isEmpty:_0x1cef54}=_0x5cec69,_0x40104f=_0x478e57[_0x11ed58(0x1f4)],_0x1deead=new _0x3b6806[(_0x11ed58(0x2d8))]();_0x1deead[_0x11ed58(0x3e1)](_0x4d529e);const _0x5a7e6e={'cellInfo':_0x40104f,'view':_0x1deead,'isEmpty':_0x1cef54};if(!await _0x2d8a97[_0x11ed58(0x399)](_0x3721b8[_0x11ed58(0x100)])[_0x11ed58(0x103)][_0x11ed58(0x116)](_0x355331)(!0x0,_0x5a7e6e))return!0x1;const _0x486abd=_0x46cb4e(_0x2d8a97,_0x1deead,_0x40104f,_0x1cef54),_0x46c535=_0x2efb0f(_0x2d8a97,_0x5a7e6e),{undos:_0xbb8751,redos:_0x41abc5}=_0x995798(_0x1e0d0d,{'pivotTableId':_0x139789,'unitId':_0x40f5d3,'subUnitId':_0x3a8fe2},_0x1bdd48);return _0x3bc435[_0x11ed58(0x1e4)]([..._0x486abd[_0x11ed58(0x2ac)],..._0x46c535[_0x11ed58(0x2ac)],..._0x41abc5],_0x1e0d0d),_0xfd8f6f[_0x11ed58(0x1a0)]({'unitID':_0x40f5d3,'redoMutations':[..._0x486abd[_0x11ed58(0x2ac)],..._0x46c535['redos'],..._0x41abc5],'undoMutations':[..._0x486abd['undos'],..._0x46c535[_0x11ed58(0x379)],..._0xbb8751]}),!0x0;}},_0x17ffc9={'type':_0x3bc435['CommandType']['MUTATION'],'id':_0x19e0d2(0x2a8),'handler'(_0x33369e,_0x4ee688){const _0x41b71f=_0x19e0d2;if(!_0x4ee688)return!0x1;if(!!_0x33369e[_0x41b71f(0x399)](_0x3bc435[_0x41b71f(0x23a)])[_0x41b71f(0x30f)](_0x2b8d8f))return!0x0;const _0x5ced30=_0x33369e[_0x41b71f(0x399)](_0x3721b8[_0x41b71f(0x21b)]),{pivotTableId:_0x4bef52,deleteIds:_0x41f3b5,collectionJSON:_0x30fbbb,dataRangeInfo:_0x4eb5a7,unitId:_0x22b536,subUnitId:_0x100b46}=_0x4ee688,_0x27cca4=_0x5ced30[_0x41b71f(0x33e)](_0x4bef52),_0x243535=_0x5ced30[_0x41b71f(0x161)](_0x22b536,_0x100b46,_0x4bef52);if(!_0x27cca4||!_0x243535)return!0x1;const {collection:_0x2135c4,updateDataFieldList:_0x24c000}=_0x5ced30[_0x41b71f(0xfd)](_0x4bef52,_0x30fbbb,_0x4eb5a7,_0x243535[_0x41b71f(0x1f4)]);_0x5ced30[_0x41b71f(0x132)](_0x2135c4,_0x24c000,_0x4eb5a7),_0x27cca4[_0x41b71f(0x1ae)](_0x2135c4);for(const _0x5de1c5 of _0x41f3b5)_0x5ced30[_0x41b71f(0x11e)](_0x4eb5a7['unitId'],_0x5de1c5);const _0x2ca5a0=_0x5ced30[_0x41b71f(0x161)](_0x22b536,_0x100b46,_0x4bef52);return _0x2ca5a0[_0x41b71f(0x281)]=JSON[_0x41b71f(0x1c2)](JSON[_0x41b71f(0xf7)](_0x4eb5a7)),_0x5ced30['addDirtyPivotTable']({'unitId':_0x22b536,'subUnitId':_0x100b46,'token':_0x4bef52,'type':_0x528843['Set']}),!0x0;}},_0x29b32e={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2c7)],'id':'sheet.command.update-pivot-table-source-range',async 'handler'(_0x57437a,_0x8a02c4){const _0x11df14=_0x19e0d2,_0x6ae385=_0x57437a['get'](_0x3bc435['ICommandService']),_0x5bbdc3=_0x57437a['get'](_0x3721b8[_0x11df14(0x131)]),_0x4e4e71=_0x57437a[_0x11df14(0x399)](_0x3bc435[_0x11df14(0x120)]);if(!_0x8a02c4)return!0x1;const {token:_0x5b4b35,dataRangeInfo:_0x5f0f1d,unitId:_0x3e1955,subUnitId:_0x1e6f31}=_0x8a02c4,_0x3e1ba6=[],_0x478554=[],_0x10ddde=(await _0x5bbdc3[_0x11df14(0x257)]({'unitId':_0x3e1955,'subUnitId':_0x1e6f31,'pivotTableId':_0x5b4b35,'params':{'type':_0x16021d[_0x11df14(0x1c3)],'updatePivotSource':{'dataRangeInfo':_0x5f0f1d,'unitId':_0x3e1955,'subUnitId':_0x1e6f31}}}))[_0x11df14(0x307)][_0x11df14(0x1a3)];if(!_0x10ddde)return!0x1;const {changesets:_0x5818d4,deleteIds:_0x1c0a4c,collectionConfig:_0x359565,oldCollectionConfig:_0x538ef3,view:_0x2b274b,isEmpty:_0x56e4db,pivotTableConfig:_0x343cd6}=_0x10ddde;_0x478554[_0x11df14(0x274)]({'id':_0x17ffc9['id'],'params':{'pivotTableId':_0x5b4b35,'deleteIds':_0x1c0a4c,'collectionJSON':_0x359565,'dataRangeInfo':_0x5f0f1d,'unitId':_0x3e1955,'subUnitId':_0x1e6f31}}),_0x3e1ba6[_0x11df14(0x1bc)]({'id':_0x17ffc9['id'],'params':{'pivotTableId':_0x5b4b35,'deleteIds':[],'collectionJSON':_0x538ef3,'dataRangeInfo':_0x343cd6['sourceRangeInfo'],'unitId':_0x3e1955,'subUnitId':_0x1e6f31}});const _0x3e1029=_0x343cd6[_0x11df14(0x1f4)],_0x14b545=new _0x3b6806[(_0x11df14(0x2d8))]();_0x14b545['formJSON'](_0x2b274b);const _0x3138ba={'cellInfo':_0x3e1029,'view':_0x14b545,'isEmpty':_0x56e4db};if(!await _0x57437a['get'](_0x3721b8['SheetsPivotTableService'])[_0x11df14(0x103)]['fetchThroughAsyncInterceptors'](_0x355331)(!0x0,_0x3138ba))return!0x1;const _0x55aa11=_0x46cb4e(_0x57437a,_0x14b545,_0x3e1029,_0x56e4db),_0x46bbde=_0x2efb0f(_0x57437a,_0x3138ba),{undos:_0x4050ff,redos:_0x795517}=_0x995798(_0x6ae385,{'pivotTableId':_0x5b4b35,'unitId':_0x3e1955,'subUnitId':_0x1e6f31},_0x5818d4);return _0x3bc435[_0x11df14(0x1e4)]([..._0x55aa11[_0x11df14(0x2ac)],..._0x46bbde['redos'],..._0x478554,..._0x4050ff],_0x6ae385),_0x4e4e71['pushUndoRedo']({'unitID':_0x3e1955,'redoMutations':[..._0x55aa11[_0x11df14(0x2ac)],..._0x46bbde['redos'],..._0x478554,..._0x4050ff],'undoMutations':[..._0x55aa11[_0x11df14(0x379)],..._0x46bbde[_0x11df14(0x379)],..._0x3e1ba6,..._0x795517]}),!0x0;}},_0x37d989={'type':_0x3bc435['CommandType'][_0x19e0d2(0x2c7)],'id':_0x19e0d2(0x2fd),async 'handler'(_0x235d20,_0x4f3b82){const _0xdee25e=_0x19e0d2;if(!_0x4f3b82)return!0x1;const _0x56e36f=_0x235d20[_0xdee25e(0x399)](_0x3bc435[_0xdee25e(0x32e)]),_0x4b14bb=_0x235d20[_0xdee25e(0x399)](_0x3721b8['SheetsPivotRPCService']),_0x313a3e=_0x235d20['get'](_0x3bc435['IUniverInstanceService']),_0x504cdd=_0x235d20['get'](_0x3bc435[_0xdee25e(0x120)]),{pivotTableId:_0x4a1646,position:_0x1442df,index:_0x34cffb}=_0x4f3b82,_0x30f073=_0x41a32a[_0xdee25e(0x11b)](_0x313a3e);if(!_0x30f073)return!0x1;const {unitId:_0x3b37cd,subUnitId:_0x59e873}=_0x30f073,_0x26889c=(await _0x4b14bb[_0xdee25e(0x257)]({'unitId':_0x3b37cd,'subUnitId':_0x59e873,'pivotTableId':_0x4a1646,'params':{'type':_0x16021d[_0xdee25e(0x183)],'updateValuePosition':{'position':_0x1442df,'index':_0x34cffb}}}))[_0xdee25e(0x307)]['updateValuePosition'];if(!_0x26889c)return!0x1;const {changesets:_0xaa69a2,view:_0xb77049,isEmpty:_0x4aa1b1,pivotTableConfig:_0x265da7}=_0x26889c,_0x498fa4=_0x265da7[_0xdee25e(0x1f4)],_0x151265=new _0x3b6806[(_0xdee25e(0x2d8))]();_0x151265['formJSON'](_0xb77049);const _0x27bf13=_0x235d20['get'](_0x3721b8['SheetsPivotTableService']),_0x3fcd95={'cellInfo':_0x498fa4,'view':_0x151265,'isEmpty':_0x4aa1b1};if(!await _0x27bf13['asyncInterceptor'][_0xdee25e(0x116)](_0x355331)(!0x0,_0x3fcd95))return!0x1;const _0x376cab=_0x46cb4e(_0x235d20,_0x151265,_0x498fa4,_0x4aa1b1),_0x20e21b=_0x2efb0f(_0x235d20,_0x3fcd95),{undos:_0x4f8166,redos:_0x51f044}=_0x995798(_0x56e36f,{'pivotTableId':_0x4a1646,'unitId':_0x3b37cd,'subUnitId':_0x59e873},_0xaa69a2);return _0x3bc435['sequenceExecute']([..._0x376cab[_0xdee25e(0x2ac)],..._0x20e21b[_0xdee25e(0x2ac)],..._0x51f044],_0x56e36f),_0x504cdd[_0xdee25e(0x1a0)]({'unitID':_0x3b37cd,'redoMutations':[..._0x376cab[_0xdee25e(0x2ac)],..._0x20e21b[_0xdee25e(0x2ac)],..._0x51f044],'undoMutations':[..._0x376cab['undos'],..._0x20e21b[_0xdee25e(0x379)],..._0x4f8166]}),!0x0;}},_0x5f0632={'type':_0x3bc435[_0x19e0d2(0x108)][_0x19e0d2(0x2b4)],'id':_0x19e0d2(0x344),'handler'(){return!0x0;}};var _0x407cd0=Object[_0x19e0d2(0x1ba)],_0x4bbc3a=(_0x3d55ac,_0x382a86,_0x197207,_0x277b98)=>{const _0x507305=_0x19e0d2;for(var _0x172b74=_0x277b98>0x1?void 0x0:_0x277b98?_0x407cd0(_0x382a86,_0x197207):_0x382a86,_0x6031db=_0x3d55ac[_0x507305(0x1eb)]-0x1,_0x4f7fc6;_0x6031db>=0x0;_0x6031db--)(_0x4f7fc6=_0x3d55ac[_0x6031db])&&(_0x172b74=_0x4f7fc6(_0x172b74)||_0x172b74);return _0x172b74;},_0x10c9ea=(_0x12326b,_0x4d9e43)=>(_0x1ea763,_0xb4151f)=>_0x4d9e43(_0x1ea763,_0xb4151f,_0x12326b);const _0x47db2d=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x1dfca6=(_0x3b7cc1,_0x12e64a,_0x1cb1ab)=>{const _0xb169e9=_0x19e0d2,_0x281d27=_0x3b7cc1[_0xb169e9(0xd4)];_0x3b7cc1[_0xb169e9(0x124)](_0x5046c7=>{const _0x509367=_0xb169e9,_0xbead8b=_0x5046c7['getId'](),_0x744c17=_0x5046c7[_0x509367(0x250)](),_0x36de31=_0x5046c7[_0x509367(0x305)](),_0xa7f0e2=_0x5046c7[_0x509367(0x11c)]();_0x12e64a[_0x744c17]&&_0x12e64a[_0x744c17]===_0xa7f0e2&&_0x36de31===_0xa7f0e2&&(_0x3b7cc1[_0x509367(0x35d)](_0xbead8b,_0x281d27[_0x509367(0x11c)](_0x744c17)),_0x5046c7[_0x509367(0x3b4)](_0x281d27[_0x509367(0x11c)](_0x744c17)));}),_0x3b7cc1['iterateFieldByArea'](_0x3b6806['PivotTableFiledAreaEnum'][_0xb169e9(0x21d)],_0x481992=>{const _0x5b499f=_0xb169e9,_0x1b68c5=_0x481992['getId'](),_0x2b2848=_0x481992[_0x5b499f(0x250)](),_0xca0afc=_0x481992['getSourceName'](),_0x360336=_0x481992[_0x5b499f(0x11c)](),_0x48be34=_0x481992[_0x5b499f(0x163)](),_0x3112f6=_0x1cb1ab(_0xca0afc,_0x48be34);_0x12e64a[_0x2b2848]&&_0x12e64a[_0x2b2848]===_0xca0afc&&_0x3112f6===_0x360336&&(_0x3b7cc1[_0x5b499f(0x35d)](_0x1b68c5,_0x1cb1ab(_0x281d27[_0x5b499f(0x11c)](_0x2b2848),_0x48be34)),_0x481992[_0x5b499f(0x3b4)](_0x281d27[_0x5b499f(0x11c)](_0x2b2848)));});},_0x386e0d=(_0x27eccf,_0x3d3d6a,_0x3d20d0)=>{const _0x5ab88a=_0x19e0d2;var _0x7a14bd,_0x53af10;const {arrayFormulaCellData:_0x15f561,unitData:_0x183280}=_0x3d3d6a,{unitId:_0x4fb9cf,subUnitId:_0x20dd3d}=_0x3d20d0,_0x5d8d09=_0x3d20d0[_0x5ab88a(0x113)],{startColumn:_0x5f898a,endColumn:_0x276cfa}=_0x5d8d09,_0x140db6=(_0x7a14bd=_0x15f561==null?void 0x0:_0x15f561[_0x4fb9cf])==null?void 0x0:_0x7a14bd[_0x20dd3d],_0x468f0f=(_0x53af10=_0x183280==null?void 0x0:_0x183280[_0x4fb9cf])==null?void 0x0:_0x53af10[_0x20dd3d],_0x50ea6f=new Set(),_0x1f187f=_0x276cfa-_0x5f898a+0x1,{dirtyRanges:_0x545056}=_0x27eccf;if(_0x545056)for(const {range:_0x1604ec,sheetId:_0x986366,unitId:_0xc4ebb3}of _0x545056){if(_0x986366!==_0x20dd3d||_0x4fb9cf!==_0xc4ebb3)continue;const _0x4d9090=_0x3bc435['Rectangle'][_0x5ab88a(0x1da)](_0x1604ec,_0x5d8d09);if(_0x4d9090){const {startColumn:_0x38284f,endColumn:_0x2724e0}=_0x4d9090;for(let _0x40ca15=_0x38284f;_0x40ca15<=_0x2724e0;_0x40ca15++)_0x50ea6f[_0x5ab88a(0x337)](_0x40ca15);}}if(_0x50ea6f[_0x5ab88a(0xd2)]===_0x1f187f||_0x50ea6f[_0x5ab88a(0xd2)]===_0x1f187f)return Array['from'](_0x50ea6f);if(_0x468f0f){const _0x728b54=_0x468f0f[_0x5ab88a(0x2fb)](),_0x3322ae=Object[_0x5ab88a(0x25b)](_0x728b54);for(const _0x4d7c81 of _0x3322ae){const _0x3ed970=Number(_0x4d7c81),_0xe8a1f1=_0x728b54[_0x3ed970];if(_0x50ea6f['size']===_0x1f187f)break;for(const _0x2e88a0 in _0xe8a1f1){const _0x57183e=Number(_0x2e88a0);_0x57183e<_0x5f898a||_0x57183e>_0x276cfa||_0x50ea6f[_0x5ab88a(0x337)](_0x57183e);}}}if(_0x140db6){const _0x41699c=_0x140db6[_0x5ab88a(0x2fb)](),_0x5c8fdf=Object[_0x5ab88a(0x25b)](_0x41699c);for(const _0x5e1090 of _0x5c8fdf){const _0x43dbaa=Number(_0x5e1090),_0xa81b13=_0x41699c[_0x43dbaa];if(_0x50ea6f[_0x5ab88a(0xd2)]===_0x1f187f)break;for(const _0x456351 in _0xa81b13){const _0x278eae=Number(_0x456351);_0x278eae<_0x5f898a||_0x278eae>_0x276cfa||_0x50ea6f[_0x5ab88a(0x337)](_0x278eae);}}}return Array[_0x5ab88a(0x22b)](_0x50ea6f);},_0x4d85ac=_0x5e1617=>{const _0x26979d=_0x19e0d2,_0x52a8e2=new Set(),_0x555ca4=[];for(const _0x2708fa of _0x5e1617){const _0x561e4d=_0x2708fa[_0x26979d(0x360)]+','+_0x2708fa[_0x26979d(0x3b6)]+','+_0x2708fa[_0x26979d(0x3d0)]+','+_0x2708fa['endColumn'];_0x52a8e2[_0x26979d(0x27c)](_0x561e4d)||(_0x52a8e2[_0x26979d(0x337)](_0x561e4d),_0x555ca4[_0x26979d(0x274)](_0x2708fa));}return _0x555ca4;};let _0x476cc3=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x39d86f,_0x47b447,_0x1f609b,_0x370857,_0x5b8ee0){const _0x3d29e2=_0x19e0d2;super(),_0x5e8238(this,_0x3d29e2(0x17e),new _0x31291b[(_0x3d29e2(0x3d8))](!0x0)),_0x5e8238(this,_0x3d29e2(0x3b5),_0x2ff5d0=>{const _0x135e9b=_0x3d29e2;this[_0x135e9b(0x17e)][_0x135e9b(0x110)](!0x1);}),_0x5e8238(this,_0x3d29e2(0x189),_0x434a72=>{const _0x523c4e=_0x3d29e2;this['_globalSubject'][_0x523c4e(0x110)](!0x0);}),(this[_0x3d29e2(0x2ec)]=_0x39d86f,this[_0x3d29e2(0x1cb)]=_0x47b447,this[_0x3d29e2(0x330)]=_0x1f609b,this[_0x3d29e2(0x2ef)]=_0x370857,this[_0x3d29e2(0x2f2)]=_0x5b8ee0,this['_init'](),this[_0x3d29e2(0x3b1)]());}['_init'](){const _0x276d7b=_0x19e0d2;this[_0x276d7b(0x1db)](),this[_0x276d7b(0x2cd)](),this[_0x276d7b(0x1ea)](),this['_subjectFieldsCollectionChange']();}[_0x19e0d2(0xe0)](){const _0x293524=_0x19e0d2;this[_0x293524(0x2ef)]['pushComputingStatusSubject'](this[_0x293524(0x17e)]),_0x3b6806['PivotTable']['registerCallbackWithEvent'](_0x3b6806['PivotCallbackEnum'][_0x293524(0x259)],this[_0x293524(0x3b5)]),_0x3b6806['PivotTable']['registerCallbackWithEvent'](_0x3b6806[_0x293524(0x2b0)][_0x293524(0x2dc)],this[_0x293524(0x189)]);}[_0x19e0d2(0x3b1)](){const _0x8be9d5=_0x19e0d2;this[_0x8be9d5(0x121)](this[_0x8be9d5(0x330)][_0x8be9d5(0x2bf)](_0xd2c5fc=>{const _0x110009=_0x8be9d5;_0xd2c5fc['id']===_0x41a32a[_0x110009(0x3bc)]['id']&&this['_sheetsPivotDataSourceModel']['handleMoveRange'](_0xd2c5fc['params']);})),this['disposeWithMe'](this[_0x8be9d5(0x330)][_0x8be9d5(0x2bf)](_0x42e9cd=>{const _0x5cb92c=_0x8be9d5;if(_0x42e9cd['id']!==_0x4a4b35['id'])return;const _0x379a67=_0x42e9cd[_0x5cb92c(0x2ae)],{unitId:_0x2971cc,subUnitId:_0x59d610,pivotTableId:_0x80bcc8}=_0x379a67,_0x3cde17=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x3aa)],_0xcbcf7={};switch(_0x3cde17){case _0x16021d['Filter']:{const _0x5d388e=_0x379a67[_0x5cb92c(0x2ae)]['filter'];if(!_0x5d388e)return;const {row:_0x42e2df,col:_0x36fa07,cellData:_0x2a4a95,pivotItemRenderInfoCache:_0x25a3ab,tableFieldId:_0x292e0d}=_0x5d388e,_0x46077c=this['_sheetsPivotDataSourceModel'][_0x5cb92c(0x33e)](_0x379a67[_0x5cb92c(0x185)]);if(!_0x46077c||!_0x25a3ab)return;if(_0x292e0d){const _0x3d524d=_0x46077c[_0x5cb92c(0x20d)](_0x292e0d);if(!_0x3d524d)return;_0xcbcf7['filter']={..._0x46077c['getDataFieldItemInfo'](_0x3d524d),'tableFieldId':_0x292e0d,'pivotTableId':_0x379a67[_0x5cb92c(0x185)],'filterInfo':_0x46077c['getFilterInfo'](_0x292e0d),'sortInfo':_0x46077c['getSortInfo'](_0x292e0d),'format':_0x46077c[_0x5cb92c(0x15e)](_0x292e0d)};}else{const _0x156862=_0x8aee4(_0x42e2df,_0x36fa07,_0x2a4a95,_0x46077c,_0x25a3ab),_0x263820=_0x156862==null?void 0x0:_0x156862[_0x5cb92c(0x134)];if(!_0x263820)return;const _0x314bad=_0x46077c[_0x5cb92c(0x20d)](_0x263820);if(!_0x314bad)return;_0xcbcf7[_0x5cb92c(0x21f)]={..._0x46077c[_0x5cb92c(0x280)](_0x314bad),'tableFieldId':_0x263820,'pivotTableId':_0x379a67[_0x5cb92c(0x185)],'filterInfo':_0x46077c[_0x5cb92c(0x225)](_0x263820),'sortInfo':_0x46077c[_0x5cb92c(0x340)](_0x263820),'format':_0x46077c[_0x5cb92c(0x15e)](_0x263820)};}}break;case _0x16021d[_0x5cb92c(0x3cb)]:{const _0x9895b0=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x115)];if(!_0x9895b0)return;const {pivotTableId:_0x13f5bd}=_0x9895b0,_0x3a9480=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x13f5bd);if(!_0x3a9480)return;const _0x5d4917=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x13f5bd),_0x5d0209=_0x5b59c1(_0x3a9480,_0x13f5bd,_0x5d4917);_0xcbcf7[_0x5cb92c(0x115)]=_0x5d0209;}break;case _0x16021d[_0x5cb92c(0x1f1)]:{const _0x3220a0=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8),_0x3770c4=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x14c)](_0x2971cc),_0x581262=_0x3770c4['getCollection'](_0x80bcc8);let _0x355735=null;const _0x4dd8c1=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x2971cc,_0x59d610,_0x80bcc8),_0x4c857f=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x35a)];if(!_0x3220a0||!_0x4dd8c1||!_0x4c857f)return!0x1;const {dataFieldId:_0x84244f,fieldArea:_0x11b703,index:_0x3fc1f1}=_0x4c857f;_0x3220a0[_0x5cb92c(0x341)]();const _0x48ee86=_0x3220a0[_0x5cb92c(0x35b)](_0x84244f,_0x11b703,_0x3fc1f1);if(_0x48ee86&&_0x11b703===_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x21d)]){const _0x347d1f=_0x48ee86['getId'](),_0x314d6d=_0x3220a0['getDataFieldByTableId'](_0x347d1f);if(_0x314d6d){const _0xfbafbf=_0x314d6d==null?void 0x0:_0x314d6d['getFieldDataType']();_0x3220a0[_0x5cb92c(0x107)](_0x48ee86[_0x5cb92c(0x3da)](),_0xfbafbf===_0x3b6806[_0x5cb92c(0x1ef)]['number']?_0x3b6806[_0x5cb92c(0x324)][_0x5cb92c(0x2f1)]:_0x3b6806['PivotSubtotalTypeEnum']['count']);}const _0x413ee9=_0x3220a0[_0x5cb92c(0x357)](),_0x42f58e=_0x3220a0['getValuePosition'](),_0x4be977=_0x3220a0['getFieldCountByArea'](_0x3b6806['PivotTableFiledAreaEnum'][_0x5cb92c(0x21d)]);if(_0x413ee9===-0x1&&_0x4be977>0x1){const _0x44c9b1=_0x42f58e===_0x3b6806[_0x5cb92c(0x33c)][_0x5cb92c(0x1dc)]?_0x3b6806[_0x5cb92c(0x33c)][_0x5cb92c(0x17f)]:_0x42f58e,_0x179f9c=_0x44c9b1===_0x3b6806['PivotTableValuePositionEnum']['Row']?_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x245)]:_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x17f)];_0x3220a0[_0x5cb92c(0x29a)](_0x44c9b1,_0x3220a0[_0x5cb92c(0x361)](_0x179f9c));}}else{if(_0x48ee86&&(_0x11b703===_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x245)]||_0x11b703===_0x3b6806[_0x5cb92c(0x20e)]['Column'])){const _0x117e69=_0x48ee86[_0x5cb92c(0x3da)](),_0x595d85=_0x3220a0[_0x5cb92c(0x20d)](_0x117e69);if(_0x595d85&&(_0x595d85==null?void 0x0:_0x595d85['getFieldDataType']())===_0x3b6806[_0x5cb92c(0x1ef)][_0x5cb92c(0x1bb)]){const _0x4a1975=_0x595d85[_0x5cb92c(0x369)]();if(_0x4a1975&&_0x3220a0['setFieldFormat'](_0x48ee86[_0x5cb92c(0x3da)](),_0x4a1975),!_0x581262[_0x5cb92c(0x270)]()[_0x5cb92c(0x3ba)](_0x4ff8ff=>{const _0x37bf50=_0x5cb92c,_0x11f387=_0x581262[_0x37bf50(0x36b)](_0x4ff8ff);return _0x3b6806[_0x37bf50(0x26a)](_0x11f387)?_0x11f387['getFieldInfo']()[_0x37bf50(0x138)]===_0x84244f:!0x1;})){const _0x33994e=_0x3770c4[_0x5cb92c(0x24c)](),_0x581cb5=_0x59abaf(_0x595d85['maxDate'],_0x595d85[_0x5cb92c(0x111)]),_0x246abf=_0x595d85['getName']()+_0x5cb92c(0x105)+_0x2dc41d(this[_0x5cb92c(0x2f2)],_0x581cb5),_0x13d837=new _0x3b6806['DateGroupField'](_0x33994e,_0x246abf,_0x3b6806[_0x5cb92c(0x27f)](0x3),_0x595d85[_0x5cb92c(0x3da)](),_0x581cb5);_0x3770c4['addDataFieldWithoutUnitInfo'](_0x13d837),_0x581262[_0x5cb92c(0x177)](_0x33994e,_0x246abf),_0x3220a0[_0x5cb92c(0x35b)](_0x33994e,_0x11b703,(_0x3fc1f1!=null?_0x3fc1f1:0x0)+0x1),_0x355735=_0x13d837;}}}}const _0x22dd52=_0x3220a0[_0x5cb92c(0x331)](),_0x4056e2=_0x3220a0['query']()['toJSON']();let _0x217142;if(_0x355735){_0x217142=_0x355735[_0x5cb92c(0x346)]();const _0x3529d6=_0x355735[_0x5cb92c(0x3da)]();_0x581262['deleteField'](_0x3529d6);let _0x4a9018=!0x0;for(const _0x3c3699 in _0x3770c4[_0x5cb92c(0x2dd)])if(_0x3770c4[_0x5cb92c(0x2dd)][_0x3c3699][_0x5cb92c(0x270)]()[_0x5cb92c(0x215)](_0x3529d6)){_0x4a9018=!0x1;break;}_0x4a9018&&_0x3770c4[_0x5cb92c(0xd6)](_0x3529d6);}const _0x15eaa1=_0x3220a0[_0x5cb92c(0x2c4)]();_0xcbcf7['addPivotField']={'view':_0x4056e2,'changesets':_0x15eaa1,'isEmpty':_0x22dd52,'pivotTableConfig':_0x4dd8c1,'shouldBeAddedGroupJSON':_0x217142};}break;case _0x16021d['AddPivotTable']:{const _0x1aa2db=_0x379a67['params'][_0x5cb92c(0x38e)];if(!_0x1aa2db)return;const _0x4c4e4a=_0x1aa2db[_0x5cb92c(0x281)],_0x21f4b8=_0x1aa2db[_0x5cb92c(0x185)],{collection:_0x37b52c}=this[_0x5cb92c(0x2ec)]['createCollectionWithDataRange']({'unitId':_0x4c4e4a[_0x5cb92c(0x351)],'sheetName':_0x4c4e4a[_0x5cb92c(0xf2)],'subUnitId':_0x4c4e4a[_0x5cb92c(0x1b5)],'range':_0x4c4e4a[_0x5cb92c(0x113)]}),_0x208ae6=new _0x3b6806[(_0x5cb92c(0x252))](_0x37b52c,void 0x0,_0x21f4b8),_0x5e27de=_0x208ae6[_0x5cb92c(0x153)](),_0x355d49=_0x208ae6[_0x5cb92c(0x346)](),_0x47d58a=_0x37b52c[_0x5cb92c(0x346)]();_0xcbcf7[_0x5cb92c(0x38e)]={'view':_0x5e27de,'fieldsConfig':_0x355d49,'collectionConfig':_0x47d58a,'isEmpty':_0x208ae6[_0x5cb92c(0x331)]()};}break;case _0x16021d[_0x5cb92c(0x1b2)]:{const _0x1f3ed5=_0x379a67[_0x5cb92c(0x2ae)]['movePivotField'];if(!_0x1f3ed5)return;const {fieldId:_0x3996ec,area:_0x411383,index:_0x1c46e6}=_0x1f3ed5,_0x311617=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x311617)return;const _0x51fcb9=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8);if(!_0x51fcb9)return;_0x51fcb9[_0x5cb92c(0x341)]();const {area:_0x559683,index:_0x3bb4f6}=_0x51fcb9[_0x5cb92c(0x2a0)](_0x3996ec);if(_0x51fcb9[_0x5cb92c(0x31c)](_0x3996ec,_0x411383,_0x1c46e6),_0x411383===_0x3b6806['PivotTableFiledAreaEnum'][_0x5cb92c(0x21d)]&&_0x51fcb9[_0x5cb92c(0x33a)](_0x3996ec)[_0x5cb92c(0x163)]()===void 0x0){const _0x205f55=_0x51fcb9[_0x5cb92c(0x33a)](_0x3996ec);if(_0x205f55&&_0x205f55[_0x5cb92c(0x163)]()===void 0x0){const _0x4c3fc5=_0x51fcb9[_0x5cb92c(0x20d)](_0x3996ec);if(_0x4c3fc5){const _0x15a435=_0x4c3fc5==null?void 0x0:_0x4c3fc5['getFieldDataType']();_0x51fcb9[_0x5cb92c(0x107)](_0x3996ec,_0x15a435===_0x3b6806[_0x5cb92c(0x1ef)][_0x5cb92c(0x1e6)]?_0x3b6806[_0x5cb92c(0x324)][_0x5cb92c(0x2f1)]:_0x3b6806[_0x5cb92c(0x324)][_0x5cb92c(0xec)]);}}}const _0x24516e=_0x51fcb9[_0x5cb92c(0x3a0)](),_0x519d39=_0x51fcb9[_0x5cb92c(0x357)](),_0x423d23=_0x51fcb9[_0x5cb92c(0x361)](_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x21d)])>0x1;if(_0x423d23&&_0x559683===_0x411383&&(_0x411383===_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x245)]&&_0x24516e===_0x3b6806['PivotTableValuePositionEnum'][_0x5cb92c(0x245)]||_0x411383===_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x17f)]&&_0x24516e===_0x3b6806[_0x5cb92c(0x33c)]['Column'])){let _0x10d4de=_0x519d39;_0x3bb4f6<=_0x519d39&&_0x10d4de--,_0x1c46e6<=_0x519d39&&_0x10d4de++,_0x51fcb9[_0x5cb92c(0x29a)](_0x24516e,_0x10d4de);}else _0x423d23&&(_0x559683===_0x3b6806[_0x5cb92c(0x20e)]['Row']&&_0x24516e===_0x3b6806['PivotTableValuePositionEnum']['Row']||_0x559683===_0x3b6806['PivotTableFiledAreaEnum'][_0x5cb92c(0x17f)]&&_0x24516e===_0x3b6806[_0x5cb92c(0x33c)][_0x5cb92c(0x17f)])&&_0x519d39>=_0x3bb4f6&&_0x51fcb9['updateValuePosition'](_0x24516e,_0x519d39-0x1),_0x423d23&&(_0x411383===_0x3b6806['PivotTableFiledAreaEnum'][_0x5cb92c(0x245)]&&_0x24516e===_0x3b6806['PivotTableValuePositionEnum'][_0x5cb92c(0x245)]||_0x411383===_0x3b6806['PivotTableFiledAreaEnum']['Column']&&_0x24516e===_0x3b6806[_0x5cb92c(0x33c)]['Column'])&&_0x519d39>=_0x1c46e6&&_0x51fcb9[_0x5cb92c(0x29a)](_0x24516e,_0x519d39+0x1);const _0x19669e=_0x51fcb9['query'](),_0x23dc92=_0x51fcb9[_0x5cb92c(0x331)](),_0x341fc4=_0x51fcb9[_0x5cb92c(0x2c4)]();_0xcbcf7['movePivotField']={'view':_0x19669e[_0x5cb92c(0x346)](),'changesets':_0x341fc4,'isEmpty':_0x23dc92,'pivotTableConfig':_0x311617};}break;case _0x16021d['RemovePivotField']:{const _0x3d988f=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x329)];if(!_0x3d988f)return;const _0x1bde95=_0x3d988f[_0x5cb92c(0x355)],_0x2cbb16=this['_sheetsPivotDataSourceModel'][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x2cbb16)return!0x1;const _0x158710=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8);if(!_0x158710)return!0x1;_0x158710['startCollectChangeset']();for(const _0x7f2a4 of _0x1bde95){const {area:_0x570fc1}=_0x158710[_0x5cb92c(0x2a0)](_0x7f2a4);_0x570fc1===_0x3b6806['PivotTableFiledAreaEnum'][_0x5cb92c(0x21d)]&&_0x158710[_0x5cb92c(0x1d5)](_0x7f2a4),(_0x570fc1===_0x3b6806['PivotTableFiledAreaEnum'][_0x5cb92c(0x245)]||_0x570fc1===_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x17f)])&&_0x158710['removeValueFilterInfo'](_0x7f2a4),_0x158710[_0x5cb92c(0x224)](_0x7f2a4);}const _0xc91ccf=_0x158710[_0x5cb92c(0x331)](),_0x3ce1a8=_0x158710[_0x5cb92c(0x153)]()[_0x5cb92c(0x346)](),_0x3f7879=_0x158710[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0x329)]={'changesets':_0x3f7879,'pivotTableConfig':_0x2cbb16,'isEmpty':_0xc91ccf,'view':_0x3ce1a8};}break;case _0x16021d[_0x5cb92c(0x3a1)]:{const _0x200054=_0x379a67['params'][_0x5cb92c(0x291)];if(!_0x200054)return;const {tableFieldId:_0x2e2b6e,items:_0x43f75f,isAll:_0x1943f7}=_0x200054,_0x1c5b8a=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8),_0x1e9093=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x1c5b8a||!_0x1e9093)return;_0x1c5b8a[_0x5cb92c(0x341)](),_0x1c5b8a[_0x5cb92c(0x271)](_0x2e2b6e,{'type':_0x3b6806['PivotFilterTypeEnum'][_0x5cb92c(0x2b3)],'list':_0x43f75f,'isAll':_0x1943f7});const _0x1bd996=_0x1c5b8a[_0x5cb92c(0x331)](),_0xb6af42=_0x1c5b8a[_0x5cb92c(0x153)]()['toJSON'](),_0x2c1d7e=_0x1c5b8a[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0x291)]={'view':_0xb6af42,'changesets':_0x2c1d7e,'isEmpty':_0x1bd996,'pivotTableConfig':_0x1e9093};}break;case _0x16021d[_0x5cb92c(0x28e)]:{const _0x4a9e5e=_0x379a67[_0x5cb92c(0x2ae)]['setValuePivotFilter'];if(!_0x4a9e5e)return;const {tableFieldId:_0xcd3923,filterInfo:_0x59ca00}=_0x4a9e5e,_0xd7c20=this['_sheetsPivotDataSourceModel'][_0x5cb92c(0x33e)](_0x80bcc8),_0x7e20b9=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0xd7c20||!_0x7e20b9)return;_0xd7c20[_0x5cb92c(0x341)](),_0xd7c20[_0x5cb92c(0x1d1)](_0xcd3923,_0x59ca00);const _0x19ba08=_0xd7c20['isEmpty'](),_0x89906=_0xd7c20[_0x5cb92c(0x153)]()[_0x5cb92c(0x346)](),_0x47fc78=_0xd7c20[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0x1d7)]={'view':_0x89906,'changesets':_0x47fc78,'isEmpty':_0x19ba08,'pivotTableConfig':_0x7e20b9};}break;case _0x16021d['SetPivotSort']:{const _0x2b9896=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0xe5)];if(!_0x2b9896)return;const {tableFieldId:_0x979442,info:_0x40d993}=_0x2b9896,_0x1d55aa=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8),_0x1d3fc5=this['_sheetsPivotDataSourceModel'][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x1d55aa||!_0x1d3fc5)return;_0x1d55aa['startCollectChangeset'](),_0x1d55aa['setSortInfo'](_0x979442,_0x40d993);const _0x6d3c02=_0x1d55aa['isEmpty'](),_0xb5cc8b=_0x1d55aa[_0x5cb92c(0x153)]()['toJSON'](),_0xc873fc=_0x1d55aa[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0xe5)]={'view':_0xb5cc8b,'changesets':_0xc873fc,'isEmpty':_0x6d3c02,'pivotTableConfig':_0x1d3fc5};}break;case _0x16021d[_0x5cb92c(0x2e9)]:{const _0x471534=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x146)];if(!_0x471534)return;const {tableFieldId:_0x258309,displayName:_0x120faa,subtotalType:_0x317a7a,format:_0x30b222}=_0x471534,_0x365d00=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8),_0x3f91ea=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x365d00||!_0x3f91ea)return;_0x365d00[_0x5cb92c(0x341)](),_0x120faa!==void 0x0&&_0x365d00[_0x5cb92c(0x35d)](_0x258309,_0x120faa),_0x317a7a!==void 0x0&&_0x365d00[_0x5cb92c(0x107)](_0x258309,_0x317a7a),_0x30b222!==void 0x0&&_0x365d00[_0x5cb92c(0x1ec)](_0x258309,_0x30b222);const _0x5e9665=_0x365d00[_0x5cb92c(0x331)](),_0x148465=_0x365d00[_0x5cb92c(0x153)]()['toJSON'](),_0x4b0c31=_0x365d00[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0x146)]={'changesets':_0x4b0c31,'pivotTableConfig':_0x3f91ea,'isEmpty':_0x5e9665,'view':_0x148465};}break;case _0x16021d[_0x5cb92c(0x1c3)]:{const _0x4a7be7=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x1a3)];if(!_0x4a7be7)return;const {dataRangeInfo:_0x56de2b,unitId:_0xa91258,subUnitId:_0x5e4c76}=_0x4a7be7,_0x498f72=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0xa91258,_0x5e4c76,_0x80bcc8),_0x49c7db=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8);if(!this[_0x5cb92c(0x2ec)][_0x5cb92c(0x26f)](_0xa91258,_0x80bcc8)||!_0x49c7db||!_0x498f72)return;const _0x867d32=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x221)](_0xa91258,_0x80bcc8,_0x56de2b),_0x41ae30=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x26f)](_0xa91258,_0x80bcc8)[_0x5cb92c(0x346)](),{collection:_0x279d5f}=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x1fc)]({'unitId':_0x56de2b[_0x5cb92c(0x351)],'sheetName':_0x56de2b[_0x5cb92c(0xf2)],'subUnitId':_0x56de2b['subUnitId'],'range':_0x56de2b['range']}),_0x381603=_0x279d5f['toJSON']();_0x49c7db[_0x5cb92c(0x341)]();const _0x49f94b=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x14c)](_0xa91258)[_0x5cb92c(0x312)]()||_0x3b6806[_0x5cb92c(0x102)];_0x49c7db[_0x5cb92c(0x21e)](_0x3037ba=>{const _0x421503=_0x5cb92c,_0x445221=_0x3037ba[_0x421503(0x250)]();if(!_0x279d5f[_0x421503(0x38b)](_0x445221)){const _0x4825c1=_0x279d5f[_0x421503(0x322)](_0x3037ba[_0x421503(0x305)]());if(_0x4825c1){_0x49c7db[_0x421503(0xda)](_0x3037ba[_0x421503(0x3da)](),_0x4825c1['getName'](),_0x4825c1[_0x421503(0x3da)]());const {area:_0x1cb709}=_0x49c7db[_0x421503(0x2a0)](_0x3037ba[_0x421503(0x3da)]());let _0x6739ab=_0x3037ba[_0x421503(0x305)]();const _0x21f3ff=_0x3037ba[_0x421503(0x11c)]();if(_0x1cb709===_0x3b6806[_0x421503(0x20e)][_0x421503(0x21d)]){const _0x14e91a=_0x3037ba[_0x421503(0x163)]();_0x6739ab=_0x49f94b(_0x4825c1[_0x421503(0x2a7)](),_0x14e91a);}_0x21f3ff!==_0x6739ab&&_0x49c7db[_0x421503(0x35d)](_0x3037ba[_0x421503(0x3da)](),_0x6739ab);}else _0x49c7db[_0x421503(0x224)](_0x3037ba['getId']());}});const _0x4be09b=_0x49c7db[_0x5cb92c(0x331)](),_0x28a18a=_0x49c7db['query']()['toJSON'](),_0x1ccf10=_0x49c7db[_0x5cb92c(0x2c4)]();_0xcbcf7['updatePivotSource']={'view':_0x28a18a,'changesets':_0x1ccf10,'isEmpty':_0x4be09b,'pivotTableConfig':_0x498f72,'collectionConfig':_0x381603,'oldCollectionConfig':_0x41ae30,'deleteIds':_0x867d32};}break;case _0x16021d[_0x5cb92c(0x183)]:{const _0x48dd67=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x29a)];if(!_0x48dd67)return;const {position:_0x1ff7f3,index:_0x537d9e}=_0x48dd67,_0x104af7=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x104af7)return!0x1;const _0x14cfb5=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8);if(!_0x14cfb5)return!0x1;_0x14cfb5[_0x5cb92c(0x341)](),_0x14cfb5['updateValuePosition'](_0x1ff7f3,_0x537d9e);const _0x1181b8=_0x14cfb5[_0x5cb92c(0x331)](),_0x31c1a4=_0x14cfb5[_0x5cb92c(0x153)]()[_0x5cb92c(0x346)](),_0x55af66=_0x14cfb5['endCollectChangeset']();_0xcbcf7[_0x5cb92c(0x29a)]={'changesets':_0x55af66,'pivotTableConfig':_0x104af7,'isEmpty':_0x1181b8,'view':_0x31c1a4};}break;case _0x16021d['SetPivotCollapse']:{const _0x3f3dc0=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x158)];if(!_0x3f3dc0)return;const {tableFieldId:_0x549d45,collapse:_0x163a23,item:_0x1a69a0}=_0x3f3dc0,_0x150725=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8),_0x34bd11=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x150725||!_0x34bd11)return;_0x150725[_0x5cb92c(0x341)](),_0x150725['setCollapse'](_0x549d45,_0x163a23,_0x1a69a0);const _0x4e6965=_0x150725[_0x5cb92c(0x331)](),_0xb3901d=_0x150725[_0x5cb92c(0x153)]()['toJSON'](),_0x293767=_0x150725['endCollectChangeset']();_0xcbcf7[_0x5cb92c(0x158)]={'view':_0xb3901d,'isEmpty':_0x4e6965,'pivotTableConfig':_0x34bd11,'changesets':_0x293767};}break;case _0x16021d[_0x5cb92c(0x338)]:{const _0x324f93=_0x379a67['params']['setPivotTableConfig'];if(!_0x324f93)return;const {pivotTableConfig:_0x125af9}=_0x324f93,_0x175c01=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x33e)](_0x80bcc8),_0x52433b=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x161)](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x175c01||!_0x52433b)return;_0x175c01[_0x5cb92c(0x341)](),_0x452439(_0x175c01,_0x125af9);const _0x541e34=_0x175c01[_0x5cb92c(0x331)](),_0x41420d=_0x175c01[_0x5cb92c(0x153)]()['toJSON'](),_0x428dbd=_0x175c01[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0x332)]={'view':_0x41420d,'isEmpty':_0x541e34,'pivotTableConfig':{..._0x52433b,'fieldsConfig':_0x175c01[_0x5cb92c(0x346)]()},'changesets':_0x428dbd};}break;case _0x16021d['ResetPivotTable']:{const _0x332a4f=_0x379a67[_0x5cb92c(0x2ae)][_0x5cb92c(0x289)];if(!_0x332a4f)return;const _0x5610ec=this[_0x5cb92c(0x2ec)]['getPivotTableInstance'](_0x80bcc8),_0x198cca=this[_0x5cb92c(0x2ec)]['getPivotTableConfig'](_0x2971cc,_0x59d610,_0x80bcc8);if(!_0x5610ec||!_0x198cca)return;_0x5610ec[_0x5cb92c(0x341)](),_0x5aea8f(_0x5610ec,_0x332a4f[_0x5cb92c(0x365)]);const _0x1708e7=_0x5610ec['query']()['toJSON'](),_0x5c936b=_0x5610ec[_0x5cb92c(0x2c4)]();_0xcbcf7[_0x5cb92c(0x289)]={'view':_0x1708e7,'isEmpty':!0x0,'pivotTableConfig':{..._0x198cca,'fieldsConfig':_0x5610ec[_0x5cb92c(0x346)]()},'changesets':_0x5c936b};}break;case _0x16021d[_0x5cb92c(0xf9)]:{const _0x16491a=_0x379a67[_0x5cb92c(0x2ae)]['addPivotTableWithConfig'];if(!_0x16491a)return;const _0xfd7cae=_0x16491a[_0x5cb92c(0x281)],_0x114e7a=_0x16491a[_0x5cb92c(0x185)],{collection:_0x256c86}=this[_0x5cb92c(0x2ec)][_0x5cb92c(0x1fc)]({'unitId':_0xfd7cae[_0x5cb92c(0x351)],'sheetName':_0xfd7cae[_0x5cb92c(0xf2)],'subUnitId':_0xfd7cae[_0x5cb92c(0x1b5)],'range':_0xfd7cae['range']}),_0xcefb78=new _0x3b6806['PivotTable'](_0x256c86,void 0x0,_0x114e7a),_0x4d861c=_0x256c86['getFieldIds'](),{rows:_0x508ffb,columns:_0x31fbd1,filters:_0x24743e,values:_0x2e1e8f}=_0x16491a['pivotTableIndexConfig'];_0xcefb78[_0x5cb92c(0x341)]();for(const {field:_0xb12959,selectedItems:_0x575fe3}of _0x508ffb||[]){const _0x3642bf=_0x4d861c[_0xb12959];if(_0x3642bf){const _0xf08437=_0xcefb78[_0x5cb92c(0x35b)](_0x3642bf,_0x3b6806[_0x5cb92c(0x20e)]['Row']);_0x575fe3&&_0xf08437&&_0xcefb78[_0x5cb92c(0x271)](_0xf08437[_0x5cb92c(0x3da)](),{'type':_0x3b6806[_0x5cb92c(0x145)][_0x5cb92c(0x2b3)],'list':_0x575fe3,'isAll':!0x1});}}for(const {field:_0x4df8f1,selectedItems:_0x3f695c}of _0x31fbd1||[]){const _0x556118=_0x4d861c[_0x4df8f1];if(_0x556118){const _0x42334e=_0xcefb78['addFieldWithSourceId'](_0x556118,_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0x17f)]);_0x3f695c&&_0x42334e&&_0xcefb78['setLabelFilterInfo'](_0x42334e[_0x5cb92c(0x3da)](),{'type':_0x3b6806[_0x5cb92c(0x145)][_0x5cb92c(0x2b3)],'list':_0x3f695c,'isAll':!0x1});}}for(const {field:_0x3d0c59,selectedItems:_0x3196c4}of _0x24743e||[]){const _0x48c171=_0x4d861c[_0x3d0c59];if(_0x48c171){const _0x181866=_0xcefb78['addFieldWithSourceId'](_0x48c171,_0x3b6806[_0x5cb92c(0x20e)][_0x5cb92c(0xfc)]);_0x3196c4&&_0x181866&&_0xcefb78[_0x5cb92c(0x271)](_0x181866[_0x5cb92c(0x3da)](),{'type':_0x3b6806[_0x5cb92c(0x145)]['ManualFilter'],'list':_0x3196c4,'isAll':!0x1});}}for(const {field:_0x2d490e,subTotalType:_0x59196c,formatString:_0x4ba418}of _0x2e1e8f||[]){const _0x53d34c=_0x256c86['getFieldById'](_0x4d861c[_0x2d490e]);if(!_0x53d34c)continue;const _0x266a3a=_0x4d861c[_0x2d490e];if(_0x266a3a){const _0x63ffdb=_0xcefb78['addFieldWithSourceId'](_0x266a3a,_0x3b6806['PivotTableFiledAreaEnum']['Value']);if(_0x63ffdb){if(_0x59196c!==void 0x0){_0xcefb78['setSubtotalType'](_0x63ffdb['getId'](),_0x59196c);const _0x57ad17=this[_0x5cb92c(0x2ec)]['getDataFieldManager'](_0xfd7cae[_0x5cb92c(0x351)])['getAutoDisplayNameFunction']()||_0x3b6806[_0x5cb92c(0x102)],_0x14c20f=_0x256c86[_0x5cb92c(0x11c)](_0x266a3a),_0x23c5b6=_0x57ad17(_0x14c20f,_0x59196c);_0xcefb78[_0x5cb92c(0x35d)](_0x63ffdb[_0x5cb92c(0x3da)](),_0x23c5b6);}else{if(_0x53d34c){const _0x58fece=_0x53d34c==null?void 0x0:_0x53d34c['getFieldDataType']();_0xcefb78[_0x5cb92c(0x107)](_0x63ffdb['getId'](),_0x58fece===_0x3b6806['PivotDataFieldDataTypeEnum'][_0x5cb92c(0x1e6)]?_0x3b6806[_0x5cb92c(0x324)][_0x5cb92c(0x2f1)]:_0x3b6806[_0x5cb92c(0x324)][_0x5cb92c(0xec)]);}}_0x4ba418&&_0xcefb78[_0x5cb92c(0x1ec)](_0x63ffdb[_0x5cb92c(0x3da)](),_0x4ba418);}}}const _0x3a215e=_0xcefb78[_0x5cb92c(0x153)](),_0x2c7f6c=_0xcefb78[_0x5cb92c(0x346)](),_0x3ea543=_0xcefb78['isEmpty'](),_0x29d39d=_0xcefb78[_0x5cb92c(0x2c4)](),_0x269f06=_0x256c86[_0x5cb92c(0x346)]();_0xcbcf7[_0x5cb92c(0x1f0)]={'view':_0x3a215e,'fieldsConfig':_0x2c7f6c,'collectionConfig':_0x269f06,'isEmpty':_0x3ea543,'changesets':_0x29d39d};}break;case _0x16021d[_0x5cb92c(0x2c6)]:{const _0x2155e6=_0x41cf57(this[_0x5cb92c(0x2f2)],_0x379a67);if(!_0x2155e6)return;const {range:_0x3e4976,sourceSubUnitId:_0x570545,sourceUnitId:_0x49a1ca,formatMap:_0x1c3d91,indexes:_0x263ad2}=_0x2155e6;_0xcbcf7[_0x5cb92c(0x2d6)]={'range':_0x3e4976,'sourceSubUnitId':_0x570545,'sourceUnitId':_0x49a1ca,'formatMap':_0x1c3d91,'indexes':_0x263ad2};}break;}this['_commandService'][_0x5cb92c(0x1c5)](_0x21e8c9['id'],{'version':_0x379a67[_0x5cb92c(0x1f5)],'result':_0xcbcf7},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0xc3916a=_0x19e0d2;this[_0xc3916a(0x121)](this[_0xc3916a(0x330)]['onCommandExecuted'](_0x43fe0c=>{const _0x533670=_0xc3916a;if(_0x43fe0c['id']!==_0x1e9941['id'])return;const _0x5cc2b8=_0x43fe0c[_0x533670(0x2ae)];return this[_0x533670(0x2ec)][_0x533670(0x10a)](_0x5cc2b8[_0x533670(0x301)]),!0x0;}));}[_0x19e0d2(0x1db)](){const _0x18841d=_0x19e0d2;this[_0x18841d(0x2ec)][_0x18841d(0x39d)][_0x18841d(0x35e)](_0x428c1b=>{const _0x59aaeb=_0x18841d;switch(_0x428c1b[_0x59aaeb(0x3aa)]){case _0x2fde2e['add']:_0x428c1b[_0x59aaeb(0x2ad)]&&_0x428c1b[_0x59aaeb(0x1f4)]&&this[_0x59aaeb(0x318)](_0x428c1b[_0x59aaeb(0x2a9)],_0x428c1b[_0x59aaeb(0x2ad)],_0x428c1b[_0x59aaeb(0x1f4)]);break;case _0x2fde2e[_0x59aaeb(0x3dc)]:{const {unitId:_0x5027fe,subUnitId:_0x5c3d6e,token:_0x275ce5}=_0x428c1b;_0x5027fe&&_0x5c3d6e&&_0x275ce5&&this['removeSourceRangeChange'](_0x5027fe,_0x5c3d6e,_0x275ce5);}break;case _0x2fde2e[_0x59aaeb(0x128)]:{const {token:_0x801151,oldSourceRangeInfo:_0x318af1,dataRangeInfo:_0x264850,targetCellInfo:_0x5b6935}=_0x428c1b,{unitId:_0x54e663,subUnitId:_0x4b330d}=_0x318af1||{};_0x54e663&&_0x4b330d&&_0x801151&&this[_0x59aaeb(0x39a)](_0x54e663,_0x4b330d,_0x801151),_0x264850&&_0x5b6935&&this['handleSourceRangeChange'](_0x801151,_0x264850,_0x5b6935);}break;}});}[_0x19e0d2(0x3b3)](){const _0x222e44=_0x19e0d2;this[_0x222e44(0x2ec)][_0x222e44(0xd3)][_0x222e44(0x35e)](_0x4b507f=>{const _0x58d739=_0x222e44;Object[_0x58d739(0x25b)](_0x4b507f)[_0x58d739(0x21a)](_0x55d461=>{const _0x2d0ac5=_0x58d739,_0x437eb5=this[_0x2d0ac5(0x2ec)][_0x2d0ac5(0xfb)](_0x55d461);if(_0x437eb5){const _0x33606a=this[_0x2d0ac5(0x2ec)][_0x2d0ac5(0x161)](_0x437eb5==null?void 0x0:_0x437eb5[_0x2d0ac5(0x351)],_0x437eb5==null?void 0x0:_0x437eb5[_0x2d0ac5(0x1b5)],_0x55d461);_0x33606a&&(this[_0x2d0ac5(0x318)](_0x55d461,_0x33606a[_0x2d0ac5(0x281)],_0x33606a['targetCellInfo']),this[_0x2d0ac5(0x188)]([{'unitId':_0x437eb5[_0x2d0ac5(0x351)],'subUnitId':_0x437eb5['subUnitId'],'token':_0x55d461}]));}});});}[_0x19e0d2(0x2cd)](){const _0x1ac2e7=_0x19e0d2;this[_0x1ac2e7(0x2ec)]['viewData$'][_0x1ac2e7(0x35e)](_0x3ea66b=>{const _0x23c3e4=_0x1ac2e7,{unitId:_0x64bc81,subUnitId:_0x32faf8,pivotTableId:_0x3c5226}=_0x3ea66b;_0x64bc81&&_0x32faf8&&_0x3c5226&&this[_0x23c3e4(0x188)]([{'unitId':_0x64bc81,'subUnitId':_0x32faf8,'token':_0x3c5226}]);});}[_0x19e0d2(0x188)](_0x5a9ba3){const _0x19930c=_0x19e0d2,_0xd9f280={};_0x5a9ba3[_0x19930c(0x21a)](_0x3b0c90=>{var _0x24a071,_0x4a9fdd;const {unitId:_0x58c721,subUnitId:_0x524e08,token:_0x35e92e}=_0x3b0c90;_0xd9f280[_0x58c721]=(_0x24a071=_0xd9f280[_0x58c721])!=null?_0x24a071:{},_0xd9f280[_0x58c721][_0x524e08]=(_0x4a9fdd=_0xd9f280[_0x58c721][_0x524e08])!=null?_0x4a9fdd:{},_0xd9f280[_0x58c721][_0x524e08][_0x35e92e]=!0x0;}),this[_0x19930c(0x330)][_0x19930c(0x1c5)](_0x5f0632['id'],_0xd9f280);}['removeSourceRangeChange'](_0x2c41a8,_0x2eee09,_0x1d98a6){const _0x3def61=_0x19e0d2;this[_0x3def61(0x1cb)][_0x3def61(0x2df)](_0x2c41a8,_0x2eee09,[_0x1d98a6]);}[_0x19e0d2(0x318)](_0x2fa644,_0x34d4a7,_0x3b7223){const _0x33d545=_0x19e0d2,{unitId:_0x4de3d6,subUnitId:_0x139bd8}=_0x34d4a7;this[_0x33d545(0x1cb)][_0x33d545(0x27c)](_0x3b7223[_0x33d545(0x351)],_0x3b7223[_0x33d545(0x1b5)],_0x2fa644)&&this[_0x33d545(0x39a)](_0x4de3d6,_0x139bd8,_0x2fa644);const _0x5bc42b={'sheetId':_0x139bd8,..._0x34d4a7};this[_0x33d545(0x1cb)][_0x33d545(0x254)](_0x3b7223[_0x33d545(0x351)],_0x3b7223['subUnitId'],_0x2fa644,{'unitId':_0x3b7223[_0x33d545(0x351)],'subUnitId':_0x3b7223[_0x33d545(0x1b5)],'dependencyRanges':[_0x5bc42b],'getDirtyData':(_0x4427e3,_0x55e0ae)=>{const _0x10972a=_0x33d545,_0x1e24a3=this[_0x10972a(0x2ec)],_0x1bde30=_0x1e24a3[_0x10972a(0xfb)](_0x2fa644);if(!_0x1bde30)return _0x47db2d();const {unitId:_0x7bb0db,subUnitId:_0x39c5af}=_0x1bde30,_0xff03df=_0x386e0d(_0x4427e3,_0x55e0ae,_0x34d4a7);if(_0xff03df[_0x10972a(0x1eb)]>0x0){const _0x27add8=_0x1e24a3['getCollection'](_0x4de3d6,_0x2fa644),_0x6d9624=_0x27add8[_0x10972a(0x270)](),_0x5890ba=this[_0x10972a(0x3c1)](_0x34d4a7['unitId'],_0x34d4a7[_0x10972a(0x1b5)],_0x55e0ae),_0x131200={},_0x1390fb=this[_0x10972a(0x2ec)]['getDataFieldManager'](_0x7bb0db)['getAutoDisplayNameFunction']()||_0x3b6806['getAutoDisplayName'],_0x116c94=[];for(const _0x7dd326 of _0xff03df){const _0x5e044a=_0x7dd326-(_0x34d4a7['range'][_0x10972a(0x3d0)]||0x0),_0x1a494a=_0x6d9624[_0x5e044a];_0x116c94[_0x10972a(0x274)](_0x1a494a),_0x131200[_0x1a494a]=_0x27add8['getFieldById'](_0x1a494a)[_0x10972a(0x2a7)](),_0x1e24a3[_0x10972a(0x14c)](_0x4de3d6)[_0x10972a(0x277)](_0x1a494a,_0x34d4a7,_0x5e044a,_0x5890ba);}_0x27add8[_0x10972a(0x32d)](_0x116c94)[_0x10972a(0x21a)](_0x43e2fb=>{const _0x5633c9=_0x10972a,[_0x26c77d,_0x117998]=_0x43e2fb,_0x3435fe=_0x27add8[_0x5633c9(0x36b)](_0x26c77d),_0x3afe3a=_0x27add8['getFieldById'](_0x117998);_0x3435fe&&_0x3afe3a&&_0x3435fe[_0x5633c9(0x269)](_0x3afe3a);}),_0x27add8[_0x10972a(0xcf)]();const _0x3d59ce=_0x1e24a3['getPivotTableInstance'](_0x2fa644);if(_0x3d59ce){_0x1dfca6(_0x3d59ce,_0x131200,_0x1390fb),_0x3d59ce[_0x10972a(0x206)](!0x0);const _0x9a40af=_0x3d59ce[_0x10972a(0x153)](),_0x3d79c7=_0x1e24a3['getPivotTableConfig'](_0x7bb0db,_0x39c5af,_0x2fa644),_0x48f0f0=_0x1e24a3[_0x10972a(0x14c)](_0x4de3d6)[_0x10972a(0x346)]();_0x1e24a3[_0x10972a(0x12a)](_0x7bb0db,_0x39c5af,_0x528843[_0x10972a(0x1c1)],_0x2fa644,_0x9a40af,_0x3d79c7,_0x48f0f0,!0x0);}}return this[_0x10972a(0x1a1)](_0x7bb0db,_0x39c5af,_0x2fa644);}});}['getMatrixFromRunTimeData'](_0x25eacc,_0x3f4cee,_0x2c7add){var _0x1dd618,_0x19e8a0;const {arrayFormulaCellData:_0x491073,unitData:_0x42b53f}=_0x2c7add,_0x4facd6=(_0x1dd618=_0x491073==null?void 0x0:_0x491073[_0x25eacc])==null?void 0x0:_0x1dd618[_0x3f4cee],_0x454b75=(_0x19e8a0=_0x42b53f==null?void 0x0:_0x42b53f[_0x25eacc])==null?void 0x0:_0x19e8a0[_0x3f4cee];return{'arrayFormulaCellDataMatrix':_0x4facd6,'unitDataMatrix':_0x454b75};}[_0x19e0d2(0x1a1)](_0x17408b,_0x30c706,_0x11200b){const _0x1e41a7=_0x19e0d2,_0x4d9ca4=this[_0x1e41a7(0x2ec)][_0x1e41a7(0x119)](_0x17408b,_0x30c706,_0x11200b),_0x5e1f59=[],_0x2595af=new _0x3bc435[(_0x1e41a7(0x268))]();if(_0x4d9ca4){const {rangeCache:_0x2c04e4,matrix:_0x5e1f76,oldRangeCache:_0x3e1539,oldMatrix:_0xfaaf66}=_0x4d9ca4,_0x5a63a5=_0x362b26(_0x3e1539),_0x3b8242=_0x362b26(_0x2c04e4);_0x5e1f59[_0x1e41a7(0x274)](..._0x3b8242,..._0x5a63a5),_0xfaaf66&&_0x3e1539&&_0x5a63a5[_0x1e41a7(0x21a)](_0xd088e9=>{const _0x154bb8=_0x1e41a7;for(let _0x184647=_0xd088e9[_0x154bb8(0x360)];_0x184647<=_0xd088e9[_0x154bb8(0x3b6)];_0x184647++)for(let _0x20be06=_0xd088e9[_0x154bb8(0x3d0)];_0x20be06<=_0xd088e9[_0x154bb8(0x1a7)];_0x20be06++)_0x2595af[_0x154bb8(0x170)](_0x184647,_0x20be06);}),_0x5e1f76&&_0x3b8242&&_0x3b8242['forEach'](_0x109e0f=>{const _0x11088f=_0x1e41a7;for(let _0x358cd1=_0x109e0f['startRow'];_0x358cd1<=_0x109e0f[_0x11088f(0x3b6)];_0x358cd1++)for(let _0x3f060a=_0x109e0f[_0x11088f(0x3d0)];_0x3f060a<=_0x109e0f[_0x11088f(0x1a7)];_0x3f060a++)_0x2595af[_0x11088f(0x17d)](_0x358cd1,_0x3f060a,_0x5e1f76[_0x11088f(0x21c)](_0x358cd1,_0x3f060a));});}const _0x34a214={};return _0x34a214[_0x17408b]={[_0x30c706]:_0x4d85ac(_0x5e1f59)},{'runtimeCellData':{[_0x17408b]:{[_0x30c706]:_0x2595af}},'dirtyRanges':_0x34a214};}['dispose'](){}};_0x476cc3=_0x4bbc3a([_0x10c9ea(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8['SheetsPivotDataSourceModel'])),_0x10c9ea(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x2fc6c1['IFeatureCalculationManagerService'])),_0x10c9ea(0x2,_0x3bc435['Inject'](_0x3bc435['ICommandService'])),_0x10c9ea(0x3,_0x3bc435[_0x19e0d2(0x27e)](_0x2fc6c1['GlobalComputingStatusService'])),_0x10c9ea(0x4,_0x3bc435['Inject'](_0x3bc435[_0x19e0d2(0x285)]))],_0x476cc3);var _0x46b9d2=Object['getOwnPropertyDescriptor'],_0x126088=(_0xf1ed61,_0x3e3d11,_0x43ef04,_0x781948)=>{const _0x4c57b6=_0x19e0d2;for(var _0x1e228b=_0x781948>0x1?void 0x0:_0x781948?_0x46b9d2(_0x3e3d11,_0x43ef04):_0x3e3d11,_0xcb0fbe=_0xf1ed61[_0x4c57b6(0x1eb)]-0x1,_0x2d4147;_0xcb0fbe>=0x0;_0xcb0fbe--)(_0x2d4147=_0xf1ed61[_0xcb0fbe])&&(_0x1e228b=_0x2d4147(_0x1e228b)||_0x1e228b);return _0x1e228b;},_0x3cd903=(_0x2d1d86,_0xfb8019)=>(_0x1213ca,_0x3f9ae5)=>_0xfb8019(_0x1213ca,_0x3f9ae5,_0x2d1d86);let _0x3766f4=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x1c0e52,_0x31e005,_0x5c53c3,_0x2071e7){const _0x16ad8d=_0x19e0d2;super(),_0x5e8238(this,_0x16ad8d(0x2e4),new _0x3bc435['DisposableCollection']()),(this[_0x16ad8d(0x10f)]=_0x1c0e52,this[_0x16ad8d(0x29f)]=_0x31e005,this[_0x16ad8d(0x262)]=_0x5c53c3,this[_0x16ad8d(0x345)]=_0x2071e7,this[_0x16ad8d(0x24b)]());}[_0x19e0d2(0x24b)](){const _0x4975d5=_0x19e0d2;this[_0x4975d5(0x121)](this[_0x4975d5(0x29f)][_0x4975d5(0x209)]({'getMutations':_0x417abc=>{const _0x5b9c00=_0x4975d5;if(_0x417abc['id']===_0x41a32a[_0x5b9c00(0x14a)]['id']||_0x417abc['id']===_0x41a32a['ClearSelectionAllCommand']['id']){const _0xdf162d=[],_0x4d929f=[],_0x310a89=this[_0x5b9c00(0x262)]['getCurrentSelections']()[_0x5b9c00(0x1d3)](_0x5cb8f1=>_0x5cb8f1[_0x5b9c00(0x113)]),_0x20bc4d=_0x41a32a[_0x5b9c00(0x11b)](this['_univerInstanceService']);if(!_0x20bc4d)return{'redos':[],'undos':[]};const {unitId:_0x490fab,subUnitId:_0x346bd8}=_0x20bc4d,_0x818919={},_0x5bf2be=this[_0x5b9c00(0x345)][_0x5b9c00(0x1c7)](_0x490fab,_0x346bd8);if(_0x5bf2be!=null&&_0x5bf2be[_0x5b9c00(0xd2)])for(const [_0xddd95f,_0x1173e1]of _0x5bf2be){const {unitId:_0x1717e1,subUnitId:_0x1bad95,row:_0x29ca7d,col:_0x130c86}=_0x1173e1[_0x5b9c00(0x1f4)];_0x1717e1===_0x20bc4d[_0x5b9c00(0x351)]&&_0x1bad95===_0x20bc4d[_0x5b9c00(0x1b5)]&&(_0x818919[_0x29ca7d+'-'+_0x130c86]=_0xddd95f);}return _0x310a89&&_0x20bc4d&&_0x310a89[_0x5b9c00(0x21a)](_0x45b475=>{const _0x3f5ebd=_0x5b9c00;_0x3bc435[_0x3f5ebd(0x237)][_0x3f5ebd(0x169)](_0x45b475,(_0x3e3d1e,_0x5a333e)=>{const _0x522a20=_0x3f5ebd,_0x31ac22=_0x3e3d1e+'-'+_0x5a333e;if(_0x818919[_0x31ac22]){const _0x519880=_0x818919[_0x31ac22];_0xdf162d['push']({'id':_0x2e3915['id'],'params':{'unitId':_0x490fab,'subUnitId':_0x346bd8,'pivotTableId':_0x519880}});const _0xe2478b=this[_0x522a20(0x345)][_0x522a20(0x26f)](_0x490fab,_0x519880),_0x2e3868=this[_0x522a20(0x345)][_0x522a20(0x161)](_0x490fab,_0x346bd8,_0x519880);_0x4d929f['push']({'id':_0x3a27d5['id'],'params':{'unitId':_0x490fab,'subUnitId':_0x346bd8,'pivotTableId':_0x519880,'pivotTableConfig':_0x2e3868,'collectionConfig':_0xe2478b}});}});}),{'redos':_0xdf162d,'undos':_0x4d929f};}return{'redos':[],'undos':[]};}}));}};_0x3766f4=_0x126088([_0x3cd903(0x0,_0x3bc435['IUniverInstanceService']),_0x3cd903(0x1,_0x3bc435['Inject'](_0x41a32a['SheetInterceptorService'])),_0x3cd903(0x2,_0x3bc435[_0x19e0d2(0x27e)](_0x41a32a[_0x19e0d2(0xf1)])),_0x3cd903(0x3,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x200)]))],_0x3766f4);var _0x6cb638=Object[_0x19e0d2(0x1ba)],_0x2af606=(_0x4f6b80,_0x24c53f,_0x3e06c1,_0xa034ad)=>{const _0x1bc464=_0x19e0d2;for(var _0x23ab0f=_0xa034ad>0x1?void 0x0:_0xa034ad?_0x6cb638(_0x24c53f,_0x3e06c1):_0x24c53f,_0x4f99b5=_0x4f6b80[_0x1bc464(0x1eb)]-0x1,_0x267b79;_0x4f99b5>=0x0;_0x4f99b5--)(_0x267b79=_0x4f6b80[_0x4f99b5])&&(_0x23ab0f=_0x267b79(_0x23ab0f)||_0x23ab0f);return _0x23ab0f;},_0x244508=(_0x352cfb,_0x130fa3)=>(_0x477001,_0x22a51a)=>_0x130fa3(_0x477001,_0x22a51a,_0x352cfb);let _0x1548f0=class extends _0x3bc435['Disposable']{constructor(_0x550af1,_0x4c450b,_0x1ef5f,_0x1cd03e,_0x24ce14){const _0x231880=_0x19e0d2;super(),this[_0x231880(0x29f)]=_0x550af1,this[_0x231880(0x2f2)]=_0x4c450b,this[_0x231880(0x10f)]=_0x1ef5f,this[_0x231880(0x345)]=_0x1cd03e,this[_0x231880(0x22f)]=_0x24ce14,this['_initCommandInterceptListener']();}[_0x19e0d2(0x196)](_0x2e1e66,_0x190589,_0x33eb34){const _0x20a6a7=_0x19e0d2,{pageView:_0x37a169,cornerView:_0x581549,rowView:_0x3c344b,colView:_0x5a37ae,dataView:_0x2e73d7}=_0x190589,_0xe6182e=_0x2e1e66;let _0x514f21;if(_0x33eb34)_0x514f21=[..._0xc7d26f(_0xe6182e)];else{const _0x4d5048=_0x43c786(_0xe6182e,_0x37a169,!0x0),_0x2489cc=_0x37a169[_0x20a6a7(0x3d4)]>=0x0?_0x37a169['lastRow']+0x1:0x0,_0x33728=_0x581549['rowCount'],_0x1939c0=_0x581549['colCount'],_0x15187c=_0x4d5048[_0x20a6a7(0x1eb)]>0x0?_0x2f218e:0x0,_0x44aa76=_0x43c786({'row':_0xe6182e['row']+_0x2489cc+_0x15187c,'col':_0xe6182e[_0x20a6a7(0x22e)]},_0x581549,!0x1,!0x1),_0x1c2527=_0x43c786({'row':_0xe6182e[_0x20a6a7(0x347)]+_0x2489cc+_0x15187c+_0x33728,'col':_0xe6182e[_0x20a6a7(0x22e)]},_0x3c344b,!0x1,!0x0),_0x1a60c0=_0x43c786({'row':_0xe6182e['row']+_0x2489cc+_0x15187c,'col':_0xe6182e[_0x20a6a7(0x22e)]+_0x1939c0},_0x5a37ae,!0x1,!0x0),_0x1512c0=_0x43c786({'row':_0xe6182e[_0x20a6a7(0x347)]+_0x2489cc+_0x15187c+_0x33728,'col':_0xe6182e[_0x20a6a7(0x22e)]+_0x1939c0},_0x2e73d7,!0x1,!0x0);_0x514f21=[..._0x4d5048,..._0x44aa76,..._0x1c2527,..._0x1a60c0,..._0x1512c0];}return _0x514f21;}[_0x19e0d2(0x358)](){const _0x2a0948=_0x19e0d2;this['disposeWithMe'](this[_0x2a0948(0x22f)][_0x2a0948(0x326)]['intercept'](this[_0x2a0948(0x22f)]['interceptor'][_0x2a0948(0x159)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x3ba4c9,_0x532c47)=>{const _0x2bf2c6=_0x2a0948,{cellInfo:_0x2c2fda,view:_0xdb1809,isEmpty:_0x419ec0}=_0x532c47,_0x139f9f=_0x2c2fda,{unitId:_0x2c13da,subUnitId:_0x3a615a}=_0x139f9f,_0x2909dc=this['_getPivotAppliedRanges'](_0x2c2fda,_0xdb1809,_0x419ec0),_0x1a56dd=this['_sheetInterceptorService'][_0x2bf2c6(0x191)]({'unitId':_0x2c13da,'subUnitId':_0x3a615a,'ranges':_0x2909dc}),_0x1f8288=_0xe57b91(this[_0x2bf2c6(0x2f2)],_0x2c13da,_0x3a615a,_0x2909dc);_0x1f8288[_0x2bf2c6(0x15c)]&&(_0x1a56dd[_0x2bf2c6(0x2ac)][_0x2bf2c6(0x274)](_0x1f8288[_0x2bf2c6(0x2d9)]),_0x1a56dd[_0x2bf2c6(0x379)]['push'](_0x1f8288[_0x2bf2c6(0x141)]));const _0x347bf3=this[_0x2bf2c6(0xdb)](_0xdb1809,_0x2c2fda);return _0x1a56dd[_0x2bf2c6(0x2ac)][_0x2bf2c6(0x274)](..._0x347bf3[_0x2bf2c6(0x2ac)]),_0x1a56dd[_0x2bf2c6(0x379)][_0x2bf2c6(0x274)](..._0x347bf3[_0x2bf2c6(0x379)]),{'redos':_0x1a56dd[_0x2bf2c6(0x2ac)],'undos':_0x1a56dd['undos']};}}));}[_0x19e0d2(0xdb)](_0x322102,_0x491a2e){const _0x4ff227=_0x19e0d2,{col:_0x1ba507,unitId:_0x43eff9,subUnitId:_0x47c618}=_0x491a2e,_0x33cc3a=[],_0x3b4917=[],_0x59fc73=_0x41a32a[_0x4ff227(0x11b)](this[_0x4ff227(0x10f)],{'unitId':_0x43eff9,'subUnitId':_0x47c618});if(!_0x491a2e||!_0x322102||!_0x59fc73)return{'undos':_0x3b4917,'redos':_0x33cc3a};const _0x1591e6=this[_0x4ff227(0x345)][_0x4ff227(0x241)](),{colView:_0x3e62cb,dataView:_0x26203c,cornerView:_0xe075d5,rowView:_0x2f216a,formatMap:_0x36d1a3}=_0x322102,_0x5f0478=_0x439052(_0x3e62cb,_0x1591e6,!0x0,_0x36d1a3),_0x33783f=_0x439052(_0x2f216a,_0x1591e6,!0x1,_0x36d1a3),_0x3736e0=_0x52d32f(_0x26203c),_0x53671f=_0x30bc5a(_0xe075d5),{worksheet:_0x5a4dd4}=_0x59fc73;if(typeof window<'u'&&window[_0x4ff227(0x248)]){const _0x7f7b2e=_0x35ccf9[_0x4ff227(0x377)]({..._0x452420[_0x4ff227(0x12d)]}),_0x2dc17b=_0x35ccf9['FontCache'][_0x4ff227(0x151)](_0x5f0478,_0x7f7b2e)[_0x4ff227(0x1cf)]+0x10,_0x2448e3=_0x35ccf9[_0x4ff227(0x118)]['getTextSize'](_0x3736e0,_0x7f7b2e)[_0x4ff227(0x1cf)],_0x2c79dc=Math[_0x4ff227(0x160)](Math[_0x4ff227(0x20a)](_0x2dc17b,_0x2448e3))+0x10,_0x128ffa=Math['floor'](_0x35ccf9[_0x4ff227(0x118)][_0x4ff227(0x151)](_0x33783f,_0x7f7b2e)[_0x4ff227(0x1cf)]),_0x57d35b=Math[_0x4ff227(0x160)](_0x35ccf9['FontCache'][_0x4ff227(0x151)](_0x53671f,_0x7f7b2e)[_0x4ff227(0x1cf)]),_0x194511=Math[_0x4ff227(0x20a)](_0x128ffa,_0x57d35b,0x28)+0xc,_0x47d126=_0x3e62cb[_0x4ff227(0x179)]+_0xe075d5[_0x4ff227(0x179)],_0x3e8892={},_0x3da1fb={};for(let _0x2d3acd=_0x1ba507;_0x2d3acd<_0x1ba507+_0x47d126;_0x2d3acd++){const _0x228b0e=_0x5a4dd4[_0x4ff227(0x3d3)](_0x2d3acd);_0x3e8892[_0x2d3acd]=_0x228b0e,_0x2d3acd-_0x1ba507<_0xe075d5[_0x4ff227(0x179)]?_0x3da1fb[_0x2d3acd-_0x1ba507]=_0x194511:_0x3da1fb[_0x2d3acd-_0x1ba507]=_0x2c79dc;}_0x33cc3a['push']({'id':_0x41a32a['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x47c618,'unitId':_0x43eff9,'ranges':[{'startColumn':_0x1ba507,'endColumn':_0x1ba507+_0x47d126-0x1,'startRow':0x0,'endRow':_0x5a4dd4[_0x4ff227(0x31f)]()-0x1}],'colWidth':_0x3da1fb}}),_0x3b4917['push']({'id':_0x41a32a[_0x4ff227(0x19a)]['id'],'params':{'subUnitId':_0x47c618,'unitId':_0x43eff9,'ranges':[{'startColumn':_0x1ba507,'endColumn':_0x1ba507+_0x47d126-0x1,'startRow':0x0,'endRow':_0x5a4dd4[_0x4ff227(0x31f)]()-0x1}],'colWidth':_0x3e8892}});}return{'undos':_0x3b4917,'redos':_0x33cc3a};}};_0x1548f0=_0x2af606([_0x244508(0x0,_0x3bc435['Inject'](_0x41a32a[_0x19e0d2(0xc5)])),_0x244508(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x285)])),_0x244508(0x2,_0x3bc435['Inject'](_0x3bc435['IUniverInstanceService'])),_0x244508(0x3,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8['SheetsPivotTableConfigModel'])),_0x244508(0x4,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8['SheetsPivotTableService']))],_0x1548f0);var _0x3b7167=Object[_0x19e0d2(0x1ba)],_0x116be5=(_0x545645,_0x10d669,_0x398029,_0x5022bf)=>{const _0x735854=_0x19e0d2;for(var _0x4c088d=_0x5022bf>0x1?void 0x0:_0x5022bf?_0x3b7167(_0x10d669,_0x398029):_0x10d669,_0x32b21f=_0x545645[_0x735854(0x1eb)]-0x1,_0x86e0db;_0x32b21f>=0x0;_0x32b21f--)(_0x86e0db=_0x545645[_0x32b21f])&&(_0x4c088d=_0x86e0db(_0x4c088d)||_0x4c088d);return _0x4c088d;},_0x1c090b=(_0x2131f7,_0x5460b3)=>(_0x184fb9,_0x5999ed)=>_0x5460b3(_0x184fb9,_0x5999ed,_0x2131f7);let _0x3ff470=class extends _0x3bc435['Disposable']{constructor(_0x40b470,_0x303847,_0x1ecc01,_0x357d9c,_0x36a72c,_0x4e0da2,_0x16083d){const _0x1acff5=_0x19e0d2;super(),_0x5e8238(this,_0x1acff5(0x2e4),new _0x3bc435[(_0x1acff5(0x398))]()),(this[_0x1acff5(0x2f2)]=_0x40b470,this[_0x1acff5(0x370)]=_0x303847,this[_0x1acff5(0x330)]=_0x1ecc01,this['_univerInstanceService']=_0x357d9c,this[_0x1acff5(0x345)]=_0x36a72c,this[_0x1acff5(0x2b7)]=_0x4e0da2,this[_0x1acff5(0x29f)]=_0x16083d,this[_0x1acff5(0x3ac)]());}['_onRefRangeChange'](){const _0x13955b=_0x19e0d2,_0x182369=(_0x46800b,_0x10b9ad)=>{const _0x29b6a7=_0x109e,_0x428b19=this[_0x29b6a7(0x10f)][_0x29b6a7(0xd8)](_0x3bc435['UniverInstanceType'][_0x29b6a7(0x374)]);if(!_0x428b19||!(_0x428b19==null?void 0x0:_0x428b19[_0x29b6a7(0x234)](_0x10b9ad)))return;this[_0x29b6a7(0x2e4)][_0x29b6a7(0x2f5)]();const _0x52a5dc=_0x48c352=>this[_0x29b6a7(0x2c3)](_0x48c352,_0x46800b,_0x10b9ad),_0x429a79=this[_0x29b6a7(0x345)][_0x29b6a7(0x1c7)](_0x46800b,_0x10b9ad);if(!(_0x429a79!=null&&_0x429a79[_0x29b6a7(0xd2)]))return;Array['from'](_0x429a79[_0x29b6a7(0x373)]())[_0x29b6a7(0x1d3)](_0x1086bd=>{const _0x34c548=_0x29b6a7,{row:_0x916fba,col:_0x1b3bc3}=_0x1086bd[_0x34c548(0x1f4)];return _0x3bc435[_0x34c548(0x1fd)](_0x916fba,_0x1b3bc3);})[_0x29b6a7(0x21a)](_0x469888=>{const _0x138b96=_0x29b6a7;this[_0x138b96(0x2e4)]['add'](this[_0x138b96(0x370)][_0x138b96(0xe4)](_0x469888,_0x52a5dc,_0x46800b,_0x10b9ad));});},_0xfc6993=()=>{const _0x2585ff=_0x109e,_0x26f6db=this[_0x2585ff(0x10f)]['getCurrentUnitForType'](_0x3bc435[_0x2585ff(0x3b7)]['UNIVER_SHEET']);if(_0x26f6db){const _0x32e984=_0x26f6db[_0x2585ff(0x3c6)]();if(!_0x32e984)return;_0x182369(_0x26f6db[_0x2585ff(0x168)](),_0x32e984[_0x2585ff(0x309)]());}};this[_0x13955b(0x121)](this[_0x13955b(0x330)][_0x13955b(0x2bf)](_0x226f17=>{const _0x4c415f=_0x13955b;if(_0x226f17['id']===_0x41a32a[_0x4c415f(0x335)]['id']){const _0x48ac3d=_0x226f17[_0x4c415f(0x2ae)],_0x21b67d=_0x48ac3d[_0x4c415f(0x1b5)],_0x2caa16=_0x48ac3d[_0x4c415f(0x351)];if(!_0x21b67d||!_0x2caa16)return;_0x182369(_0x2caa16,_0x21b67d);}})),this['disposeWithMe'](this[_0x13955b(0x345)][_0x13955b(0x31e)][_0x13955b(0x35e)](_0x2d16c4=>{_0x2d16c4&&_0xfc6993();})),this[_0x13955b(0x121)](this[_0x13955b(0x345)][_0x13955b(0x334)][_0x13955b(0x35e)](_0x36e21a=>{const _0x24d9f0=_0x13955b,_0x2c07e4=_0x41a32a[_0x24d9f0(0x11b)](this['_univerInstanceService']);if(!_0x2c07e4)return;const {unitId:_0x1babb1,subUnitId:_0x331f59}=_0x2c07e4,{unitId:_0x24f2f3,subUnitId:_0x344d5d}=_0x36e21a;_0x1babb1!==_0x24f2f3||_0x331f59!==_0x344d5d||_0x182369(_0x1babb1,_0x331f59);})),_0xfc6993();}[_0x19e0d2(0x2c3)](_0x16605d,_0x15c618,_0x345ea8){const _0x4000db=_0x19e0d2;switch(_0x16605d['id']){case _0x41a32a[_0x4000db(0x1b1)]['id']:return this[_0x4000db(0xd5)](_0x16605d[_0x4000db(0x2ae)],_0x15c618,_0x345ea8);}return{'redos':[],'undos':[]};}[_0x19e0d2(0xd5)](_0x5301af,_0x2dd00f,_0x3e54b9){const _0x9cc4a0=_0x19e0d2,{fromRange:_0x5212a2,toRange:_0x1288b2}=_0x5301af,_0x1cde1c=[],_0x128ee0=[],_0x362d20=_0x41a32a['getSheetCommandTarget'](this[_0x9cc4a0(0x10f)]);if(!_0x362d20)return{'undos':_0x128ee0,'redos':_0x1cde1c};if(_0x2dd00f!==_0x362d20[_0x9cc4a0(0x351)]||_0x3e54b9!==_0x362d20[_0x9cc4a0(0x1b5)])return{'undos':_0x128ee0,'redos':_0x1cde1c};const _0xe1872=this[_0x9cc4a0(0x345)]['getSubUnitPivotConfigs'](_0x2dd00f,_0x3e54b9);if(_0xe1872!=null&&_0xe1872[_0x9cc4a0(0xd2)])for(const [_0x15a475,_0x2ce532]of _0xe1872){const {unitId:_0x43de8e,subUnitId:_0x13f387,row:_0x297955,col:_0x52cbc5}=_0x2ce532[_0x9cc4a0(0x1f4)];if(_0x43de8e===_0x362d20[_0x9cc4a0(0x351)]&&_0x13f387===_0x362d20[_0x9cc4a0(0x1b5)]){const _0x4643b1=_0x3bc435[_0x9cc4a0(0x1fd)](_0x297955,_0x52cbc5);if(_0x3bc435['Rectangle'][_0x9cc4a0(0x2ba)](_0x4643b1,_0x5212a2)){const _0x2a7b95=_0x297955-_0x5212a2[_0x9cc4a0(0x360)],_0x14620d=_0x52cbc5-_0x5212a2[_0x9cc4a0(0x3d0)],_0x3b4424={'row':_0x1288b2[_0x9cc4a0(0x360)]+_0x2a7b95,'col':_0x1288b2[_0x9cc4a0(0x3d0)]+_0x14620d};_0x1cde1c[_0x9cc4a0(0x274)]({'id':_0x29c5c7['id'],'params':{'unitId':_0x43de8e,'subUnitId':_0x13f387,'pivotTableId':_0x15a475,'targetCellPosition':_0x3b4424}}),_0x128ee0[_0x9cc4a0(0x274)]({'id':_0x29c5c7['id'],'params':{'unitId':_0x43de8e,'subUnitId':_0x13f387,'pivotTableId':_0x15a475,'targetCellPosition':{'row':_0x297955,'col':_0x52cbc5}}});const _0xea6a6e=_0x3b4424[_0x9cc4a0(0x347)]-_0x297955,_0x3361aa=_0x3b4424[_0x9cc4a0(0x22e)]-_0x52cbc5,_0x1d2fdd=[],_0x1498ee=this[_0x9cc4a0(0x2b7)][_0x9cc4a0(0x24d)](_0x43de8e,_0x13f387,_0x15a475),_0x3c5050=_0x1498ee==null?void 0x0:_0x1498ee['rangesInfo'];if(_0x3c5050){Object[_0x9cc4a0(0x25b)](_0x3c5050)[_0x9cc4a0(0x21a)](_0x3b1de1=>{const _0x5e993e=_0x9cc4a0;_0x3c5050[_0x3b1de1][_0x5e993e(0x21a)](_0x2c046b=>{const _0x8dd2f0=_0x5e993e,_0x5b5003={..._0x2c046b};_0x5b5003[_0x8dd2f0(0x360)]=_0x2c046b[_0x8dd2f0(0x360)]+_0xea6a6e,_0x5b5003[_0x8dd2f0(0x3b6)]=_0x2c046b[_0x8dd2f0(0x3b6)]+_0xea6a6e,_0x5b5003[_0x8dd2f0(0x3d0)]=_0x2c046b[_0x8dd2f0(0x3d0)]+_0x3361aa,_0x5b5003[_0x8dd2f0(0x1a7)]=_0x2c046b[_0x8dd2f0(0x1a7)]+_0x3361aa,_0x1d2fdd[_0x8dd2f0(0x274)](_0x5b5003);});});const _0x34567f=this[_0x9cc4a0(0x29f)]['generateMutationsByRanges']({'unitId':_0x43de8e,'subUnitId':_0x13f387,'ranges':_0x1d2fdd});_0x1cde1c[_0x9cc4a0(0x274)](..._0x34567f[_0x9cc4a0(0x2ac)]),_0x128ee0[_0x9cc4a0(0x274)](..._0x34567f['undos']);const _0x18f7f7=_0xe57b91(this[_0x9cc4a0(0x2f2)],_0x43de8e,_0x13f387,_0x1d2fdd);_0x18f7f7[_0x9cc4a0(0x15c)]&&(_0x1cde1c[_0x9cc4a0(0x274)](_0x18f7f7[_0x9cc4a0(0x2d9)]),_0x128ee0[_0x9cc4a0(0x274)](_0x18f7f7[_0x9cc4a0(0x141)]));}}}}return{'redos':_0x1cde1c,'undos':_0x128ee0};}};_0x3ff470=_0x116be5([_0x1c090b(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x285)])),_0x1c090b(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x41a32a[_0x19e0d2(0x18e)])),_0x1c090b(0x2,_0x3bc435['ICommandService']),_0x1c090b(0x3,_0x3bc435['IUniverInstanceService']),_0x1c090b(0x4,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x200)])),_0x1c090b(0x5,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x139)])),_0x1c090b(0x6,_0x3bc435[_0x19e0d2(0x27e)](_0x41a32a[_0x19e0d2(0xc5)]))],_0x3ff470);var _0x1f8013=Object[_0x19e0d2(0x1ba)],_0x36c398=(_0x4ae785,_0x54c099,_0x584ff2,_0x2dfc5e)=>{for(var _0x51b0ae=_0x2dfc5e>0x1?void 0x0:_0x2dfc5e?_0x1f8013(_0x54c099,_0x584ff2):_0x54c099,_0x52570e=_0x4ae785['length']-0x1,_0x27032c;_0x52570e>=0x0;_0x52570e--)(_0x27032c=_0x4ae785[_0x52570e])&&(_0x51b0ae=_0x27032c(_0x51b0ae)||_0x51b0ae);return _0x51b0ae;},_0x31c53c=(_0x3699dd,_0x1490cd)=>(_0x3efc2a,_0x5f549b)=>_0x1490cd(_0x3efc2a,_0x5f549b,_0x3699dd);let _0x25aec6=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x229ed1,_0x2ee6b6){const _0x1982d9=_0x19e0d2;super(),this[_0x1982d9(0x29f)]=_0x229ed1,this[_0x1982d9(0x345)]=_0x2ee6b6,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x4518a4=_0x19e0d2;this[_0x4518a4(0x121)](this[_0x4518a4(0x29f)][_0x4518a4(0x209)]({'getMutations':_0x5b3b81=>{const _0x19b53b=_0x4518a4;if(_0x5b3b81['id']===_0x41a32a['RemoveSheetCommand']['id']){const _0xbb47bd=[],_0x376023=[],_0x55b754=_0x5b3b81[_0x19b53b(0x2ae)],{unitId:_0xfc5e5d,subUnitId:_0x25010f}=_0x55b754;if(!_0xfc5e5d||!_0x25010f)return{'undos':_0x376023,'redos':_0xbb47bd};const _0x5edc91=this[_0x19b53b(0x345)][_0x19b53b(0x1c7)](_0xfc5e5d,_0x25010f);if(_0x5edc91!=null&&_0x5edc91['size'])for(const [_0x4ad6c5,_0x278540]of _0x5edc91){_0xbb47bd[_0x19b53b(0x274)]({'id':_0x2e3915['id'],'params':{'unitId':_0xfc5e5d,'subUnitId':_0x25010f,'pivotTableId':_0x4ad6c5}});const _0x143beb={...this[_0x19b53b(0x345)][_0x19b53b(0x26f)](_0xfc5e5d,_0x4ad6c5)};_0x376023['push']({'id':_0x3a27d5['id'],'params':{'unitId':_0xfc5e5d,'subUnitId':_0x25010f,'pivotTableId':_0x4ad6c5,'pivotTableConfig':_0x278540,'collectionConfig':_0x143beb}});}return{'redos':_0xbb47bd,'undos':_0x376023};}return{'redos':[],'undos':[]};}}));}};_0x25aec6=_0x36c398([_0x31c53c(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x41a32a['SheetInterceptorService'])),_0x31c53c(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8['SheetsPivotTableConfigModel']))],_0x25aec6);var _0x46e3ae=Object[_0x19e0d2(0x1ba)],_0x350fd1=(_0x3c2e9a,_0x3c4a76,_0x5f5461,_0x57381a)=>{for(var _0x3f5d90=_0x57381a>0x1?void 0x0:_0x57381a?_0x46e3ae(_0x3c4a76,_0x5f5461):_0x3c4a76,_0x3caf85=_0x3c2e9a['length']-0x1,_0x2443e6;_0x3caf85>=0x0;_0x3caf85--)(_0x2443e6=_0x3c2e9a[_0x3caf85])&&(_0x3f5d90=_0x2443e6(_0x3f5d90)||_0x3f5d90);return _0x3f5d90;},_0x24a87c=(_0x29bfb0,_0x4fdcae)=>(_0x5840e8,_0x59808f)=>_0x4fdcae(_0x5840e8,_0x59808f,_0x29bfb0);let _0x18da02=class extends _0x3bc435[_0x19e0d2(0x1f2)]{constructor(_0x25a089,_0x3d5747,_0x225089,_0x28ae87,_0x14de73,_0x317ece){const _0x54ad95=_0x19e0d2;super(),this[_0x54ad95(0x330)]=_0x25a089,this[_0x54ad95(0x343)]=_0x3d5747,this['_sheetsPivotTableAdaptorModel']=_0x225089,this[_0x54ad95(0x345)]=_0x28ae87,this['_univerInstanceService']=_0x14de73,this[_0x54ad95(0x35f)]=_0x317ece,this[_0x54ad95(0x315)](),this[_0x54ad95(0x2ee)]();}[_0x19e0d2(0x315)](){const _0x2ab9a9=_0x19e0d2;this[_0x2ab9a9(0x121)](this[_0x2ab9a9(0x330)][_0x2ab9a9(0x2bf)](_0x235113=>{const _0xdf6854=_0x2ab9a9;if(_0x235113['id']!==_0x21e8c9['id'])return;const _0x40512c=_0x235113['params'];this[_0xdf6854(0x343)]['handleAsyncResponse'](_0x40512c);})),this['disposeWithMe'](this[_0x2ab9a9(0x330)][_0x2ab9a9(0x2bf)](_0x467471=>{const _0x188a06=_0x2ab9a9;if(_0x467471['id']===_0x502ef3['id']){const _0x2feba2=_0x467471[_0x188a06(0x2ae)];if(_0x2feba2){const {unitId:_0x14eb06,subUnitId:_0x3cfd8b,oldSubUnitId:_0x1b17c0,pivotTableId:_0xa14c52,pivotTableConfig:_0x4cc242,collectionConfig:_0x1036e8}=_0x2feba2;this[_0x188a06(0x345)][_0x188a06(0x1bf)](_0x14eb06,_0x1b17c0,_0x2feba2[_0x188a06(0x185)],null),this[_0x188a06(0x345)][_0x188a06(0x1bf)](_0x14eb06,_0x3cfd8b,_0xa14c52,_0x4cc242),this[_0x188a06(0x345)][_0x188a06(0x230)](_0x14eb06,_0x1036e8);}}})),this[_0x2ab9a9(0x121)](this[_0x2ab9a9(0x330)][_0x2ab9a9(0x2bf)](_0x314b36=>{const _0x3f6608=_0x2ab9a9;if(_0x314b36['id']!==_0x4fcedb['id'])return;const _0x4b3b2c=_0x41a32a[_0x3f6608(0x11b)](this[_0x3f6608(0x10f)]);if(!_0x4b3b2c)return;const {unitId:_0x35d829,subUnitId:_0x158015}=_0x4b3b2c,_0x190a93=_0x314b36[_0x3f6608(0x2ae)];if(_0x190a93[_0x3f6608(0x243)]&&Object['keys'](_0x190a93[_0x3f6608(0x243)])[_0x3f6608(0x21a)](_0x358570=>{const _0x48a239=_0x3f6608;var _0xb95096;(_0xb95096=_0x190a93[_0x48a239(0x243)])!=null&&_0xb95096[_0x358570]&&this['_sheetsPivotTableConfigModel']['updateCollectionConfig'](_0x358570,_0x190a93['collectionConfig'][_0x358570]);}),_0x190a93[_0x3f6608(0x18c)]){const _0x269d7f=_0x190a93[_0x3f6608(0x18c)],{unitId:_0x1bd22a,subUnitId:_0x114264,view:_0x4723af,pivotTableId:_0x495eff,type:_0x2fe907,pivotConfig:_0x168a2b}=_0x269d7f;if(_0x2fe907===_0x528843[_0x3f6608(0x1b3)])this[_0x3f6608(0x2b7)][_0x3f6608(0x25f)]({'unitId':_0x1bd22a,'subUnitId':_0x114264,'pivotTableId':_0x495eff,'type':_0x2fe907}),this[_0x3f6608(0x345)][_0x3f6608(0x1bf)](_0x1bd22a,_0x114264,_0x495eff,null);else{const _0x170fd8=new _0x3b6806[(_0x3f6608(0x2d8))]();_0x170fd8[_0x3f6608(0x3e1)](_0x4723af),this[_0x3f6608(0x345)][_0x3f6608(0x1bf)](_0x1bd22a,_0x114264,_0x495eff,_0x168a2b),this[_0x3f6608(0x2b7)][_0x3f6608(0x25f)]({'unitId':_0x1bd22a,'subUnitId':_0x114264,'pivotTableId':_0x495eff,'type':_0x2fe907,'view':_0x170fd8}),this[_0x3f6608(0x2b7)][_0x3f6608(0x3c5)]({'unitId':_0x1bd22a,'subUnitId':_0x114264,'view':_0x170fd8,'pivotTableId':_0x495eff,'type':_0x2fe907});}}else _0x190a93[_0x3f6608(0x3ce)]&&(_0x190a93['batch'][_0x3f6608(0x21a)](_0x3f07d8=>{const _0x37fa31=_0x3f6608,{unitId:_0x50d70f,subUnitId:_0x52073e,view:_0x1e5eb3,pivotTableId:_0x2e1d2c,type:_0x9813c5,pivotConfig:_0x2e1f27}=_0x3f07d8,_0x19dc82=new _0x3b6806[(_0x37fa31(0x2d8))]();_0x19dc82[_0x37fa31(0x3e1)](_0x1e5eb3),this[_0x37fa31(0x345)]['updateConfigCache'](_0x50d70f,_0x52073e,_0x2e1d2c,_0x2e1f27),this[_0x37fa31(0x2b7)][_0x37fa31(0x3c5)]({'unitId':_0x50d70f,'subUnitId':_0x52073e,'view':_0x19dc82,'pivotTableId':_0x2e1d2c,'type':_0x9813c5});}),this[_0x3f6608(0x345)][_0x3f6608(0x214)]());this['_sheetsPivotTableAdaptorModel'][_0x3f6608(0xeb)](_0x35d829,_0x158015);}));}['registerDirtyService'](){const _0x4f51e0=_0x19e0d2;this[_0x4f51e0(0x35f)][_0x4f51e0(0x254)](_0x5f0632['id'],{'commandId':_0x5f0632['id'],'getDirtyData'(_0x129bf8){const _0x4603d7=_0x4f51e0;return{'dirtyUnitFeatureMap':_0x129bf8[_0x4603d7(0x2ae)]};}});}};_0x18da02=_0x350fd1([_0x24a87c(0x0,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x32e)])),_0x24a87c(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x131)])),_0x24a87c(0x2,_0x3bc435['Inject'](_0x3721b8['SheetsPivotTableAdaptorModel'])),_0x24a87c(0x3,_0x3bc435[_0x19e0d2(0x27e)](_0x3721b8[_0x19e0d2(0x200)])),_0x24a87c(0x4,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x1f6)])),_0x24a87c(0x5,_0x2fc6c1[_0x19e0d2(0x2a2)])],_0x18da02);var _0x24e412=Object[_0x19e0d2(0x2b6)],_0x3ddf32=Object[_0x19e0d2(0x1ba)],_0x2dd617=(_0x581e26,_0x26fb20,_0x497bb6)=>_0x26fb20 in _0x581e26?_0x24e412(_0x581e26,_0x26fb20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x497bb6}):_0x581e26[_0x26fb20]=_0x497bb6,_0x57b7a8=(_0x371220,_0x1c373b,_0x1ebdc5,_0x3a928b)=>{const _0xc6f9eb=_0x19e0d2;for(var _0x2104fd=_0x3a928b>0x1?void 0x0:_0x3a928b?_0x3ddf32(_0x1c373b,_0x1ebdc5):_0x1c373b,_0x1fae9b=_0x371220[_0xc6f9eb(0x1eb)]-0x1,_0x356ae4;_0x1fae9b>=0x0;_0x1fae9b--)(_0x356ae4=_0x371220[_0x1fae9b])&&(_0x2104fd=_0x356ae4(_0x2104fd)||_0x2104fd);return _0x2104fd;},_0x2d8620=(_0x155fbd,_0x287cd3)=>(_0x5a70fc,_0x13826b)=>_0x287cd3(_0x5a70fc,_0x13826b,_0x155fbd),_0x4c3df2=(_0xcab261,_0x1a4daf,_0x56f10f)=>_0x2dd617(_0xcab261,typeof _0x1a4daf!=_0x19e0d2(0x386)?_0x1a4daf+'':_0x1a4daf,_0x56f10f);_0x3721b8[_0x19e0d2(0x38a)]=class extends _0x3bc435[_0x19e0d2(0x2d0)]{constructor(_0x27a4f3=_0x7425ee,_0xefa521,_0x277217,_0x2bb70f,_0xe16499){const _0x1fba9f=_0x19e0d2;super(),this[_0x1fba9f(0x276)]=_0x27a4f3,this[_0x1fba9f(0x2f2)]=_0xefa521,this['_commandService']=_0x277217,this[_0x1fba9f(0x1a2)]=_0x2bb70f,this['_dataSyncPrimaryController']=_0xe16499;const {..._0x1ead18}=_0x3bc435[_0x1fba9f(0x30d)]({},_0x7425ee,this['_config']);this[_0x1fba9f(0x1a2)]['setConfig'](_0x4e3d46,_0x1ead18),this[_0x1fba9f(0x265)](),this['_initConfig']();}['_initConfig'](){const _0x4f290e=_0x19e0d2;var _0x1c8560;const _0xf4f3b7=(_0x1c8560=this['_config'])==null?void 0x0:_0x1c8560[_0x4f290e(0x302)];this[_0x4f290e(0x1a2)][_0x4f290e(0x36f)](_0x2b8d8f,_0xf4f3b7===!0x0);}[_0x19e0d2(0x3d1)](){const _0xe90a11=_0x19e0d2;var _0x5406be;let _0x5b3570=[];const _0x1f733a=(_0x5406be=this[_0xe90a11(0x276)])==null?void 0x0:_0x5406be[_0xe90a11(0x302)];_0x1f733a===!0x0?_0x5b3570=[[_0x3721b8[_0xe90a11(0x100)]],[_0x3721b8['SheetsPivotRPCService']],[_0x18da02],[_0x3721b8[_0xe90a11(0x139)]],[_0x3721b8['SheetsPivotTableConfigModel']],[_0x25aec6],[_0x3766f4],[_0x3ff470],[_0x1548f0]]:_0x1f733a===!0x1?_0x5b3570=[[_0x3721b8['SheetsPivotDataSourceModel']],[_0x476cc3]]:_0x1f733a===void 0x0&&(_0x5b3570=[[_0x3721b8[_0xe90a11(0x21b)]],[_0x476cc3],[_0x3721b8['SheetsPivotTableService']],[_0x3721b8[_0xe90a11(0x131)]],[_0x18da02],[_0x3721b8[_0xe90a11(0x139)]],[_0x3721b8['SheetsPivotTableConfigModel']],[_0x25aec6],[_0x3766f4],[_0x3ff470],[_0x1548f0]]),_0x5b3570[_0xe90a11(0x21a)](_0x224bdb=>this['_injector']['add'](_0x224bdb)),[_0x476cc3,_0x18da02,_0x3721b8['SheetsPivotTableService'],_0x3766f4,_0x25aec6,_0x3ff470,_0x1548f0][_0xe90a11(0x21a)](_0x569650=>{const _0x4e051a=_0xe90a11;this[_0x4e051a(0x2f2)][_0x4e051a(0x27c)](_0x569650)&&this[_0x4e051a(0x2f2)]['get'](_0x569650);});}['_initRegisterCommand'](){const _0x2d04c0=_0x19e0d2;[_0x1cfe70,_0x333b4a,_0x33b902,_0x587e42,_0x3a7380,_0x37d989,_0x464e41,_0x1c322b,_0x2871b0,_0xe952ac,_0x44fe41,_0x29b32e,_0x527f11,_0x3338ea,_0x3a27d5,_0x32fe21,_0x2e3915,_0x80507,_0xeb4c44,_0x449dd2,_0x916dba,_0x50a14b,_0x573fa6,_0x341477,_0x47f7bb,_0xa168a2,_0x29c5c7,_0x4a4b35,_0x21e8c9,_0x4fcedb,_0x3433b9,_0x2f569f,_0x12c1da,_0x1d0840,_0x1e9941,_0x17ffc9,_0x186498,_0x5f0632,_0x502ef3,_0xaf029e,_0x132b6c,_0x564d9c,_0xc50fc8][_0x2d04c0(0x21a)](_0xa75651=>{const _0x4f50f2=_0x2d04c0;var _0x1c0f19;(_0x1c0f19=this[_0x4f50f2(0x1d0)])==null||_0x1c0f19[_0x4f50f2(0x18f)](_0xa75651),this[_0x4f50f2(0x330)][_0x4f50f2(0x16c)](_0xa75651);});}},_0x4c3df2(_0x3721b8[_0x19e0d2(0x38a)],_0x19e0d2(0x2e3),_0x2c6018),_0x4c3df2(_0x3721b8[_0x19e0d2(0x38a)],'type',_0x3bc435[_0x19e0d2(0x3b7)]['UNIVER_SHEET']),_0x3721b8[_0x19e0d2(0x38a)]=_0x57b7a8([_0x3bc435['DependentOn'](_0x1b08d8[_0x19e0d2(0xcd)]),_0x2d8620(0x1,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435['Injector'])),_0x2d8620(0x2,_0x3bc435[_0x19e0d2(0x27e)](_0x3bc435[_0x19e0d2(0x32e)])),_0x2d8620(0x3,_0x3bc435[_0x19e0d2(0x23a)]),_0x2d8620(0x4,_0x3bc435[_0x19e0d2(0x150)](_0x7751bf[_0x19e0d2(0x306)]))],_0x3721b8[_0x19e0d2(0x38a)]),_0x3721b8[_0x19e0d2(0x37f)]=_0x33b902,_0x3721b8[_0x19e0d2(0x17c)]=_0x80507,_0x3721b8[_0x19e0d2(0x22c)]=_0x333b4a,_0x3721b8[_0x19e0d2(0x26b)]=_0x3a27d5,_0x3721b8[_0x19e0d2(0x3cc)]=_0x1cfe70,_0x3721b8[_0x19e0d2(0x140)]=_0x2f218e,_0x3721b8[_0x19e0d2(0x235)]=_0x3afaa7,_0x3721b8[_0x19e0d2(0x367)]=_0x587e42,_0x3721b8[_0x19e0d2(0x2e6)]=_0x527f11,_0x3721b8['PivotDisplayDataType']=_0x16021d,_0x3721b8[_0x19e0d2(0x1ed)]=_0x3338ea,_0x3721b8['PivotTableOperationEnum']=_0x528843,_0x3721b8[_0x19e0d2(0x14b)]=_0x5f0632,_0x3721b8['PositionType']=_0x5e0340,_0x3721b8[_0x19e0d2(0x295)]=_0x3a7380,_0x3721b8[_0x19e0d2(0x238)]=_0x50a14b,_0x3721b8[_0x19e0d2(0x16a)]=_0x2e3915,_0x3721b8['RenamePivotFieldMutation']=_0x573fa6,_0x3721b8['ResetPivotFieldsConfigCommand']=_0xc50fc8,_0x3721b8[_0x19e0d2(0x3c8)]=_0x4e3d46,_0x3721b8['SHEET_PIVOT_TABLE_PLUGIN']=_0x2c6018,_0x3721b8[_0x19e0d2(0x2e7)]=_0x1c322b,_0x3721b8[_0x19e0d2(0x14e)]=_0x341477,_0x3721b8[_0x19e0d2(0x328)]=_0x1d0840,_0x3721b8[_0x19e0d2(0x2ff)]=_0x564d9c,_0x3721b8['SetPivotFilterCommand']=_0xe952ac,_0x3721b8['SetPivotFilterMutation']=_0x916dba,_0x3721b8[_0x19e0d2(0x2b1)]=_0xa168a2,_0x3721b8['SetPivotPositionMutation']=_0x29c5c7,_0x3721b8[_0x19e0d2(0x15f)]=_0x2871b0,_0x3721b8[_0x19e0d2(0x26d)]=_0x47f7bb,_0x3721b8[_0x19e0d2(0x2d4)]=_0x12c1da,_0x3721b8[_0x19e0d2(0x229)]=_0xaf029e,_0x3721b8[_0x19e0d2(0x246)]=_0x132b6c,_0x3721b8['UpdateDateGroupCommand']=_0x464e41,_0x3721b8[_0x19e0d2(0x1fb)]=_0x3433b9,_0x3721b8[_0x19e0d2(0x28c)]=_0x44fe41,_0x3721b8[_0x19e0d2(0x381)]=_0x186498,_0x3721b8[_0x19e0d2(0x2af)]=_0x29b32e,_0x3721b8['UpdatePivotTableSourceRangeMutation']=_0x17ffc9,_0x3721b8[_0x19e0d2(0x16f)]=_0x37d989,_0x3721b8[_0x19e0d2(0x348)]=_0x2f569f,_0x3721b8[_0x19e0d2(0x28d)]=_0x995798,_0x3721b8[_0x19e0d2(0x1f3)]=_0x1e88d7,_0x3721b8['defaultThemeStyle']=_0x452420,_0x3721b8['generateSetRangeValueMutations']=_0xe57b91,_0x3721b8[_0x19e0d2(0xe9)]=_0x43c786,_0x3721b8['getEmptyPivotRanges']=_0xc7d26f,_0x3721b8[_0x19e0d2(0x2a5)]=_0x129aa6,_0x3721b8[_0x19e0d2(0x173)]=_0x46cb4e,_0x3721b8[_0x19e0d2(0x3a6)]=_0x8aee4,_0x3721b8[_0x19e0d2(0x393)]=_0x1f32e9,_0x3721b8[_0x19e0d2(0x20f)]=_0x5b59c1,_0x3721b8[_0x19e0d2(0x24e)]=_0xbd68af,_0x3721b8['unionPivotViewRange']=_0x362b26,Object['defineProperty'](_0x3721b8,Symbol[_0x19e0d2(0x38c)],{'value':_0x19e0d2(0x34b)});}));function _0x2d2d(){const _0x1d2cca=['getDataFieldByDataFieldId','displayName','getMatrixValue','getDataFieldByRangeKey','_subjectViewChange','iterateFieldByArea','getCellRaw','Plugin','generateRandomId','sheet.command.update-date-group','_updateModelCache','SetPivotSubtotalTypeMutation','UniverCore','drillDown','Year','PivotView','setRangeValueRedoMutation','RenameField','sheet.mutation.add-pivot-field','onQueryEnd','collections','columnFields','remove','sheets-pivot.emptyPivot.column','sheets-pivot.dateGroup.hourMinute','_queryingMap','pluginName','disposableCollection','#eceeff','MovePivotTableCommand','SetPivotCollapseCommand','fetchThroughInterceptors','SetPivotSetting','LocaleService','STRING','_sheetsPivotDataSourceModel','sheets-pivot.dateGroup.date','registerDirtyService','_globalComputingSrv','getUnit','sum','_injector','dataFieldManagerConfig','rangesInfo','dispose','_localeService','#f4f4f5','getFieldDataType','leftOffset','subtotal','getMatrix','_initSnapshot','sheet.command.update-pivot-value-position','_toJSON','SetPivotFieldsConfigCommand','function','textInfo','notExecuteFormula','sheet.mutation.add-group-collection','dateType','getSourceName','DataSyncPrimaryController','result','initDataRanges','getSheetId','SetValueFilter','Date','createValueField','merge','createInterceptorKey','getConfig','CustomCommandExecutionError','_getAutoName','getAutoDisplayNameFunction','RemoveColMutation','valid','_initDataSendListener','132ewirdg','IResourceManagerService','handleSourceRangeChange','getPivotTableIdByCell','BLANK_PLACEHOLDER','getFilterFieldIdByIndex','updateFieldPosition','Varp\x20of\x20','pivotInitCompleted$','getRowCount','sheets-pivot.value','RANGE_TYPE','getDataFieldBySourceName','updateViewInfo','PivotSubtotalTypeEnum','matrix','interceptor','sortInfo','SetPivotFieldFormatMutation','removePivotField','DateGroupField','DEFAULT_WORKSHEET_ROW_COUNT','@univerjs-pro/license','getGroupFieldsInfoByIds','ICommandService','SHEET_PIVOT_EXCLUSIVE_ID','_commandService','isEmpty','setPivotTableConfig','InsertSheetUndoMutationFactory','pivotConfigChange$','SetWorksheetActiveOperation','return\x20','add','SetPivotTableConfig','sheets-pivot.cellDateGroupDisplay.hourMinute','getTableFieldById','sheets-pivot.dateGroup.minute','PivotTableValuePositionEnum','sheet.mutation.add-pivot-table','getPivotTableInstance','Min\x20of\x20','getSortInfo','startCollectChangeset','intercept','_sheetsPivotRpcService','sheet.operation.pivot-table-view-formula-mark-dirty','_sheetsPivotTableConfigModel','toJSON','row','UpdateValuePositionMutation','rangeKeyMap','var','Module','createAsyncInterceptorKey','sheets-pivot.config','random','forRow','options','unitId','_init','sheets-pivot.cellDateGroupDisplay.yearMonthDate','headerMap','fieldIds','_exclusiveRangeService','getValueIndex','_initCommandInterceptListener','@univerjs/core','addPivotField','addFieldWithSourceId','SetFilterInfo','renameField','subscribe','_activeDirtyManagerService','startRow','getFieldCountByArea','_configVersion$','RemovePivotField','sheet.mutation.send-pivot-view-local','resetArea','blank','MovePivotFieldCommand','updatePivotTableMatrixInfo','getformat','ptn','getFieldById','getSheets','object','updateConfig','setConfig','_refRangeService','tableFieldId','countNums','values','UNIVER_SHEET','ResetPivotTable','fontRenderExtension','getFontStyleString','sheets-pivot.dateGroup.month','undos','rgb(255,255,255)','GlobalConfig','sheets-pivot.subTotal','SetOptions','_deleteModelCache','AddPivotFieldCommand','Average\x20of\x20','UpdatePivotFieldSourceInfoMutation','_collectionChange$','rangeKey','PivotDateGroupFieldDateTypeEnum','SetFieldFormat','symbol','_host','COLUMN','isBottomTotal','UniverSheetsPivotTablePlugin','hasField','toStringTag','colHeaderMap','addPivotTable','_resourceManagerService','addCollection','sheets-pivot.cellDateGroupDisplay.yearQuarter','uniqueDataFieldName','getPivotInfoByLicense','sheets-pivot.sumName','InsertSheetMutation','Add','g2sNeIUs\x20EdNpcFeIUs(qINdsTd,\x20F28qIN1dc)\x20{\x20\x20\x20\x20epc\x20{\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20qINdsTdPsgU7kpefppkc\x20=\x20qINdsTd.TFqIe(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20UpIbIsYdTTkbd\x20=\x20nliy.FkpTd(keU8(qINdsTdPsgU7kpefppkc[O]));\x20\x20\x20\x20\x20\x20\x20\x20Ig\x20(!UpIbIsYdTTkbd.2E)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UpIbIsYdTTkbd.2E\x20=\x20y2M8dp(qINdsTdPsgU7kpefppkc[J]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20ITtUpxdp\x20=\x20ecFdUg\x20tUpxdpVqU8kqlNUFd\x20!==\x20\x272sEdgIsdE\x27\x20&&\x20Tdqg\x20IsTeksNdUg\x20tUpxdpVqU8kqlNUFd;\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20ITopUaTdp\x20=\x20ecFdUg\x20aIsEUa\x20!==\x20\x272sEdgIsdE\x27\x20&&\x20ecFdUg\x20aIsEUa.qUNkeIUs\x20!==\x20\x272sEdgIsdE\x27;\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20NUsedWe\x20=\x20ITtUpxdp\x20?\x20Tdqg\x20:\x20(ITopUaTdp\x20?\x20aIsEUa\x20:\x20bqU8kqHZIT);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20MdTTkbdtUpE\x20=\x20NUsedWe.__okTdrJ__.FkpTd(qINdsTdPsgU7kpefppkc[O]);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20MdTTkbd\x20=\x20NUsedWe.__jdW__.TepIsbIgc(MdTTkbdtUpE);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20TIbske2pdtUpE\x20=\x20NUsedWe.__okTdrJ__.FkpTd(qINdsTdPsgU7kpefppkc[5]);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20TIbske2pd\x20=\x20NUsedWe.__jdW__.TepIsbIgc(TIbske2pdtUpE);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20TIbsvkqIE\x20=\x20NUsedWe.__GdpIgc__(TIbske2pd,\x20MdTTkbd,\x20F28qIN1dc);\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20EUMkIs\x20=\x20UpIbIsYdTTkbd.EM;\x20\x20\x20\x20\x20\x20\x20\x20g2sNeIUs\x20IThUMkIsYkeNZIsb(U7keedps,\x20UjUTe)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20Fkeedps\x20=\x20U7keedps.pdFqkNd(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20ZUTe\x20=\x20UjUTe.pdFqkNd(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20Fkeedps7kpeT\x20=\x20Fkeedps.TFqIe(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20ZUTe7kpeT\x20=\x20ZUTe.TFqIe(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Ig\x20(!Fkeedps.IsNq2EdT(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pde2ps\x20Fkeedps\x20===\x20ZUTe;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Ig\x20(Fkeedps7kpeT.qdsbeZ\x20<\x20O\x20||\x20Fkeedps7kpeT[m]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pde2ps\x20gkqTd;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20Fkeedpsl2ggIW\x20=\x20Fkeedps7kpeT.TqINd(L).XUIs(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20ZUTel2ggIW\x20=\x20ZUTe7kpeT.TqINd(-Fkeedps7kpeT.qdsbeZ\x20+\x20L).XUIs(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pde2ps\x20Fkeedpsl2ggIW\x20===\x20ZUTel2ggIW;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20qde\x20EUMkIsvkqIE\x20=\x20gkqTd;\x20\x20\x20\x20\x20\x20\x20\x20Ig\x20(ITopUaTdp)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EUMkIsvkqIE\x20=\x20(EUMkIs\x20&&\x20EUMkIs.qdsbeZ)\x20?\x20EUMkIs.TUMd((EMPedM)\x20=>\x20IThUMkIsYkeNZIsb(EMPedM,\x20qUNkeIUs.ZUTeskMd))\x20:\x20ep2d;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Ig\x20(qUNkeIUs.ZUTeskMd\x20===\x20\x27qUNkqZUTe\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EUMkIsvkqIE\x20=\x20ep2d;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20}\x20dqTd\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EUMkIsvkqIE\x20=\x20ep2d;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20NUsTe\x20GkqIE\x20=\x20TIbsvkqIE\x20&&\x20EUMkIsvkqIE;\x20\x20\x20\x20\x20\x20\x20\x20pde2ps\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GkqIE,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20MdTTkbd:\x20UpIbIsYdTTkbd,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20NkeNZ\x20(dppUp)\x20{\x20\x20\x20\x20\x20\x20\x20\x20pde2ps\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GkqIE:\x20gkqTd,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20MdTTkbd:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','DisposableCollection','get','removeSourceRangeChange','dataStream','find','collectionChange$','subTotalStyle','colRanges','getValuePosition','SetPivotFilter','getPivotTableRangeInfo','798828fbMUHd','3eFaHaS','_viewData','getPivotCellInfo','sheets-pivot.cellDateGroupDisplay.hour','getSheetBySheetName','sheets-pivot.dateGroup.year','type','setSortInfo','_onRefRangeChange','8137844Hzxxof','CellValueType','collapseInfo','adjustSheetCellData','_initPivotDataGetListener','sheet.command.remove-pivot-field','_subjectFieldsCollectionChange','setSourceName','_globalComputedStartHelpFunc','endRow','UniverInstanceType','prototype','MAX_SAFE_INTEGER','some','value','MoveRangeMutation','dataFieldId','valueIndex','PivotViewCellValueTypeEnum','getTargetByPivotTableId','getMatrixFromRunTimeData','lastCol','stdDevp','other','updateRenderCache','getActiveSheet','getColCount','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','sheet.mutation.remove-pivot-table','3575892vtcGTs','Panel','AddPivotTableWithConfigCommand','addExclusiveRange','batch','dateGroupField','startColumn','onStarting','Sum\x20of\x20','getColumnWidth','lastRow','replace','SetPivotCollapse','sheets-pivot.dateGroup.monthDate','BehaviorSubject','unshiftString','getId','sheet.command.move-pivot-field','delete','numberToABC','needSameDeleteModel','rowRanges','sheets-pivot.dateGroup.yearMonthDate','formJSON','data','ReleaseType','SheetInterceptorService','Rectangle','rxjs','sheets-pivot.cellDateGroupDisplay.minute','limit\x20pivot','AddPivotTable','rangeCache','updatePivotTableRangeInfo','UniverLicensePlugin','addDataFieldWithoutUnitInfo','updateAllDisplayName','NUMBER','Total','size','fieldsCollectionChange$','dataFieldsCollection','getRefRangeMutationsByMoveRange','deleteDataField','HourMinute','getCurrentUnitForType','ErrorType','updateFieldSourceInfo','getAutoFitColumnsMutations','exports','rangeType','isNaN','setName','_initGlobalComputed','Column\x20','sideEffectUpdateWorkerCache','Tools','registerRefRange','setPivotSort','InsertSheetCommand','_initUnitDisposed','isBaseGroupField','getAdjustRangesPosition','PivotTableChangeTypeEnum','markDirty','count','new','_fieldsCollectionChange$','sheet.mutation.set-pivot-filter','Month','SheetsSelectionsService','sheetName','_ensureViewDataMap','_ensurePivotItemRenderInfoCache','getCellMatrix','_dataFieldManagerCollection','stringify','sheets-pivot.dateGroup.hour','AddPivotTableWithConfig','sheets-pivot.dateGroup.yearQuarter','getTargetByPivotId','Filter','addCollectionByJSON','cornerRanges','sheets-pivot.stdDevpName','SheetsPivotTableService','error','getAutoDisplayName','asyncInterceptor','RemoveSheetMutation','\x20-\x20','FORCE_STRING','setSubtotalType','CommandType','sheets-pivot.minName','setTextInfo','pivotPerformCheck','reset','@univerjs/rpc','mergeWorksheetSnapshotWithDefault','_univerInstanceService','next','minDate','rgb(240,241,243)','range','valuePosition','panel','fetchThroughAsyncInterceptors','Count\x20of\x20','FontCache','getViewData','_textInfo','getSheetCommandTarget','getDisplayName','cornerStyle','removeDataField','setPivotTable','IUndoRedoService','disposeWithMe','SHEET_PIVOT_IN_MAIN_THREAD','movePivotField','iterateFieldDim','SetPivotSort','sheets-pivot.varpName','getColumnCount','update','_deletePivotTableInstanceCache','updateView','getIndexesByPathStr','PivotDataFieldTypeEnum','colStyle','NotName','rowHeaderMap','setDataRecordCount','SheetsPivotRPCService','refreshData','#e6ebfb','filterId','_createExclusiveRange','createLabelField','_initLocale','originalFieldId','SheetsPivotTableAdaptorModel','RemoveSheetsFilterMutation','Subject','name','getRangeKey','ΣValue','average','BLANK_ROW_COUNT','setRangeValueUndoMutation','sheet.command.add-pivot-table','getPivotDirtyViewInfo','@univerjs/sheets-filter','PivotFilterTypeEnum','setPivotSetting','NORMAL','deleteUnitId','numfmt','ClearSelectionContentCommand','PivotTableViewDirtyMarkOperation','getDataFieldManager','sheet.command.set-pivot-filter','SetPivotCollapseMutation','_ensurePivotTableRangeInfo','Optional','getTextSize','UniverProEnginePivot','query','SetRangeValuesUndoMutationFactory','getHeaderMapItem','dimension','valueFilter','setPivotCollapse','getInterceptPoints','getPivotTableMatrixInfo','dataStyle','shouldClear','existing','getFieldFormat','SetPivotSortCommand','floor','getPivotTableConfig','sourceName','getSubtotal','removePivotTable','sheet.mutation.set-pivot-sort-info','sheet.mutation.set-pivot-value-filter','grandTotal','getUnitId','foreach','RemovePivotTableMutation','UpdateFieldPosition','registerCommand','excelDateToUnixMilliseconds','PivotMultipleValueId','UpdatePivotValuePositionCommand','realDeleteValue','Values','pageStyle','getInsertRowColMutations','sheets-pivot.cellDateGroupDisplay.year','sheets-pivot.varName','sheets-pivot.cellDateGroupDisplay.yearMonth','addField','product','colCount','sheet.mutation.send-init-pivot-text-local','YearQuarter','AddPivotFieldMutation','setValue','_globalSubject','Column','_viewData$','5xCJyMt','204XzxNos','UpdateValuePosition','sheet.command.add-pivot-table-with-config','pivotTableId','isColMultiMeasure','registerPluginResource','triggerDirtyFeature','_globalComputedEndHelpFunc','setRangeKeyMap','node','single','bind','RefRangeService','registerSyncingMutations','rowFields','generateMutationsByRanges','setRange','CELL_CONTENT','set','setDateType','_getPivotAppliedRanges','RemoveField','getDate','SetSortInfo','SetWorksheetColWidthMutation','sheets-pivot.countName','sheet.command.set-pivot-collapse','sheets-pivot.dateGroup.yearMonth','FieldsCollection','toString','pushUndoRedo','getDirtyInfo','_configService','updatePivotSource','sheet.mutation.set-pivot-option','versions','workbook\x20is\x20not\x20found','endColumn','MonthDate','IExclusiveRangeService','AddField','_ensurePivotTableMatrixInfo','SetRangeValuesMutation','isText','updateDataFieldsCollection','valueFields','InterceptorEffectEnum','MoveRangeCommand','MovePivotField','Delete','Hour','subUnitId','getMonth','_ensurePivotItemRenderValueMatrixCache','level','getRangeKeyList','getOwnPropertyDescriptor','date','unshift','getLastCol','SetSheetsFilterRangeMutation','updateConfigCache','UniverEngineRender','Set','parse','UpdatePivotSource','NotFunction','executeCommand','_pivotTableInstanceCache','getSubUnitPivotConfigs','New','min','_pivotRenderValueMatrixCache','_featureCalculationManagerService','fields','LS_CONFIG_KEY','getOriginFieldId','width','_dataSyncPrimaryController','setValueFilterInfo','isArray','map','cellValue','removeValueFilterInfoByValueFieldId','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','setValuePivotFilter','measure','@univerjs/sheets','getIntersects','_subjectCollectionChange','None','body','isValue','addDirtyPivotTable','fromJSON','addRecord','getFormatInfo','isDateValue','sequenceExecute','dataFields','number','setCollapse','collection','getFullYear','_initPivotTextInfo','length','setFieldFormat','PivotDrillDownCommand','getLastRow','PivotDataFieldDataTypeEnum','addPivotTableWithConfig','AddPivotField','Disposable','canUsePivot','targetCellInfo','version','IUniverInstanceService','106765CCcPda','getRangeStartEndInfo','_viewUpdate$','_collectionConfigModel','UpdateFieldPositionMutation','createCollectionWithDataRange','cellToRange','handleMoveRange','deepClone','SheetsPivotTableConfigModel','colInfo','9OePplZ','varp','_pivotTableMatrixInfo','sheets-pivot.columnName','setDirty','info','7Wvcogg','interceptCommand','max','asObservable','InsertColMutation','getDataFieldByTableId','PivotTableFiledAreaEnum','getPivotTableInfo','#1d32e9','sheet.mutation.set-pivot-position','pbt','isDateGroupFieldJSON','setPivotInitCompleted','includes','sheets-pivot.averageName','removeCollectionImp','updateViewData','sheet.command.set-pivot-value-filter','forEach','SheetsPivotDataSourceModel','getValue','Value','iterateField','filter','slice','getUpdateRangeDeleteIds','updateRangeKeyMap','NUM','removeField','getFilterInfo','queryDirtyPivotTable','_pivotRenderInfoCache','format','SetPivotValueFilterCommand','cornerInfo','from','AddPivotTableCommand','viewUpdate$','col','_sheetsPivotTableService','updateCollectionConfig','getPivotTableCellData','_pivotConfigChange$','fieldsConfig','getSheetBySheetId','DEFAULT_PIVOT_NUMBER','_initViewModelBySheetInterceptor','Range','RemovePivotFieldMutation','Quarter','IConfigService','getSheetFeatureLimit','sheets-pivot.maxName','entries','sheets-pivot.countNumsName','getFormat','concat','getTextInfo','#FFFFFF','collectionConfig','YearMonth','Row','SetPivotValueFilterMutation','paths','document','BadReference','generateNullCell','_initClearSelectionCommandInterceptor','createDataFieldId','getPivotItemRenderInfoCache','transFromCellValue','_pivotInitCompleted$','getDataFieldId','sheet.command.set-pivot-fields-config','PivotTable','#e6ebfa','register','sheet.mutation.remove-pivot-field','Var\x20of\x20','getPivotDisplayConfig','sheets-pivot.stdDevName','onQueryStart','rowCount','keys','_markDirty$','call','GrandTotal','clearRenderCache','configVersion$','sheets.tabs.sheet','_sheetsSelectionsService','leafStyle','11120728XzUCMB','_initRegisterCommand','UniverRpc','NAME','ObjectMatrix','refreshGroupField','isDateGroupField','AddPivotTableMutation','pivotTableConfigs','SetPivotSortMutation','_model','getCollection','getFieldIds','setLabelFilterInfo','MIN_SAFE_INTEGER','contains','push','Subtotal','_config','refreshDataField','sheets-pivot.emptyPivot.values','getStyles','@univerjs/engine-render','column','has','NotNumber','Inject','generateHexNumber','getDataFieldItemInfo','sourceRangeInfo','_ensurePivotMap','updateDirtyPivotTable','_updateRenderEmptyCache','Injector','NO_COMMERCIAL','filterInfo','AsyncInterceptorManager','resetPivotTable','handleAsyncResponse','LifecycleService','UpdatePivotFieldSettingCommand','applyChangeSet','SetValuePivotFilter','@univerjs-pro/engine-pivot','isFeatureAuthorizedWithinTime','setPivotFilter','getRangeData','substring','oldMatrix','RemovePivotFieldCommand','_pivotTableRangeInfo','oldRangeInfo','forValue','fieldId','updateValuePosition','_updatePivotTableInstanceCache','_generateUniqueVersion','pivotMutationGenerate','YearMonthDate','_sheetInterceptorService','getFieldPositionInfoById','sheet.mutation.update-date-group','IActiveDirtyManagerService','removeValueFilterInfo','_requestResolvers','getFieldListByArea','2679980mhyMPx','getName','sheet.mutation.update-pivot-table-source-range','token','sheets-pivot.blank','broadcastCollectionChange','redos','dataRangeInfo','params','UpdatePivotTableSourceRangeCommand','PivotCallbackEnum','SetPivotOptionMutation','UniverSheetsFilter','ManualFilter','MUTATION','getPivotTableModelConfig','defineProperty','_sheetsPivotTableAdaptorModel','sheet.mutation.pivot-update-field-source-info','serializeRangeWithSpreadsheet','intersects','PivotErrorTypeEnum','viewData$','PivotCellStyleTypeEnum','generateNewSheetName','onCommandExecuted','isDate','splice','UniverSheets','_refRangeHandle','endCollectChangeset','175742tLfAYt','DrillDown','COMMAND','string'];_0x2d2d=function(){return _0x1d2cca;};return _0x2d2d();}