@univerjs-pro/sheets-pivot 0.10.6-experimental.20250904-9591d16 → 0.10.6-nightly.202509060614

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 (51) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/common/const.d.ts +37 -37
  38. package/lib/types/controllers/const.d.ts +1 -1
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ko-KR.js +1 -1
  47. package/lib/umd/locale/ru-RU.js +1 -1
  48. package/lib/umd/locale/vi-VN.js +1 -1
  49. package/lib/umd/locale/zh-CN.js +1 -1
  50. package/lib/umd/locale/zh-TW.js +1 -1
  51. package/package.json +9 -9
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4298(_0x170114,_0x546127){const _0x262a39=_0x262a();return _0x4298=function(_0x4298c0,_0x185dc6){_0x4298c0=_0x4298c0-0x9c;let _0x33de61=_0x262a39[_0x4298c0];return _0x33de61;},_0x4298(_0x170114,_0x546127);}(function(_0x2c197f,_0x45cb68){const _0x415627=_0x4298,_0x2c691f=_0x2c197f();while(!![]){try{const _0x471b0a=parseInt(_0x415627(0x1b9))/0x1*(parseInt(_0x415627(0x2a6))/0x2)+-parseInt(_0x415627(0x38e))/0x3*(parseInt(_0x415627(0x2ee))/0x4)+-parseInt(_0x415627(0x27f))/0x5+-parseInt(_0x415627(0x375))/0x6+-parseInt(_0x415627(0x32a))/0x7+-parseInt(_0x415627(0x2c1))/0x8*(-parseInt(_0x415627(0xea))/0x9)+parseInt(_0x415627(0x32e))/0xa*(parseInt(_0x415627(0x193))/0xb);if(_0x471b0a===_0x45cb68)break;else _0x2c691f['push'](_0x2c691f['shift']());}catch(_0x5b7312){_0x2c691f['push'](_0x2c691f['shift']());}}}(_0x262a,0xe97d8),function(_0x3b7200,_0x54433d){const _0x4045b4=_0x4298;typeof exports=='object'&&typeof module<'u'?_0x54433d(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==_0x4045b4(0x373)&&define[_0x4045b4(0x248)]?define(['exports',_0x4045b4(0x2fa),_0x4045b4(0x2df),_0x4045b4(0x2f2),'@univerjs/sheets','rxjs',_0x4045b4(0x35d),'@univerjs/sheets-filter',_0x4045b4(0x30c),_0x4045b4(0x2c5)],_0x54433d):(_0x3b7200=typeof globalThis<'u'?globalThis:_0x3b7200||self,_0x54433d(_0x3b7200[_0x4045b4(0xb0)]={},_0x3b7200['UniverProEnginePivot'],_0x3b7200[_0x4045b4(0x27c)],_0x3b7200[_0x4045b4(0x1e9)],_0x3b7200[_0x4045b4(0x217)],_0x3b7200[_0x4045b4(0x282)],_0x3b7200[_0x4045b4(0x19c)],_0x3b7200[_0x4045b4(0x384)],_0x3b7200[_0x4045b4(0xba)],_0x3b7200[_0x4045b4(0x119)]));}(this,function(_0x24d96c,_0x3e0737,_0x282877,_0x3b2497,_0x5698b3,_0x2b003b,_0x5b0681,_0x18c1ef,_0x129259,_0x1c6860){'use strict';const _0x2b16d4=_0x4298;var _0x12f1d8=Object[_0x2b16d4(0x2ae)],_0x2f1f6a=(_0x4307d2,_0x580e8b,_0xb13330)=>_0x580e8b in _0x4307d2?_0x12f1d8(_0x4307d2,_0x580e8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb13330}):_0x4307d2[_0x580e8b]=_0xb13330,_0x2e1abd=(_0x5ee3f1,_0x58c7d2,_0x1bd411)=>_0x2f1f6a(_0x5ee3f1,typeof _0x58c7d2!=_0x2b16d4(0x2f8)?_0x58c7d2+'':_0x58c7d2,_0x1bd411);const _0x12de9f=Number[_0x2b16d4(0x134)](0x68b95346),_0x2ba735=0x10,_0x1e520c=0x1,_0x2734d4=_0x2b16d4(0x177),_0x44f3d5=0x1,_0x42197c='rgb(240,241,243)',_0x2b798c=_0x2b16d4(0x136),_0x3c4d7a=_0x2b16d4(0x252),_0xc9b406='#f4f4f5',_0x181e11=_0x2b16d4(0x15c),_0x253874=_0x2b16d4(0x266),_0xa62e23=_0x2b16d4(0x141),_0x5c0bc6=_0x2b16d4(0x32c),_0x1db627=_0x2b16d4(0x298),_0x21a794=_0x2b16d4(0x141),_0x4acdef=_0x2b16d4(0x32c),_0xde1a41=_0x2b16d4(0x2b2),_0x25665a=0xe,_0x14a81c=0x6;var _0x220706=(_0x154091=>(_0x154091[_0x2b16d4(0xb4)]='existing',_0x154091[_0x2b16d4(0x37c)]='new',_0x154091))(_0x220706||{});const _0x40592d={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','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':''}}},_0x167bb3=0x1e,_0xf42351={'b':{'s':0x1,'cl':{'rgb':_0x3c4d7a}},'l':{'s':0x1,'cl':{'rgb':_0x3c4d7a}},'r':{'s':0x1,'cl':{'rgb':_0x3c4d7a}},'t':{'s':0x1,'cl':{'rgb':_0x3c4d7a}}},_0x421682={'bg':{'rgb':_0x42197c},'ht':0x2,'vt':0x2,'tb':0x1},_0x458c13={'bg':{'rgb':_0x2b798c},'ht':0x2,'vt':0x2,'tb':0x1},_0x433375={'rowStyle':{'bg':{'rgb':_0xde1a41},'bd':_0xf42351,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x21a794},'bd':null,'cl':{'rgb':_0x4acdef},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0xf42351,'bg':{'rgb':_0x1db627},'vt':0x2},'cornerStyle':{'bd':_0xf42351,'bg':{'rgb':_0x253874},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0xf42351,'bg':{'rgb':_0xc9b406},'vt':0x2},'leafStyle':{'bd':_0xf42351,'bg':{'rgb':_0x181e11},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0xa62e23},'cl':{'rgb':_0x5c0bc6},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0xf42351,'vt':0x2}};function _0x4d0341(_0x3d3ea7,_0x15e3a7,_0x3b58a8){const _0x503511=_0x2b16d4,_0x5bee1b=_0x3d3ea7['get'](_0x282877['LocaleService']),_0x65b253=_0x3b58a8[_0x503511(0x1a4)]('_');switch(_0x15e3a7){case _0x3e0737[_0x503511(0x22c)][_0x503511(0x20e)]:return _0x5bee1b['t'](_0x503511(0x2aa),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x1f3)]:return _0x5bee1b['t'](_0x503511(0x382),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x357)]:return _0x5bee1b['t'](_0x503511(0x2ff),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x162)]:return _0x5bee1b['t'](_0x503511(0x118),..._0x65b253);case _0x3e0737[_0x503511(0x22c)]['Date']:return _0x5bee1b['t'](_0x503511(0x11b),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x228)]:return _0x5bee1b['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x65b253);case _0x3e0737['PivotDateGroupFieldDateTypeEnum'][_0x503511(0x232)]:return _0x5bee1b['t'](_0x503511(0x26e),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x221)]:return _0x5bee1b['t'](_0x503511(0x237),..._0x65b253);case _0x3e0737[_0x503511(0x22c)][_0x503511(0x27d)]:return _0x5bee1b['t'](_0x503511(0x356),..._0x65b253);case _0x3e0737[_0x503511(0x22c)]['YearQuarter']:return _0x5bee1b['t'](_0x503511(0x264),..._0x65b253);}return'';}const _0x44c03b=(_0x80effc,_0x4074c1,_0x5ed799,_0x38e169)=>{const _0x3c6414=_0x2b16d4;let _0x432032;const _0x15bc30=_0x80effc[_0x3c6414(0x1a9)](_0x282877['IUniverInstanceService'])[_0x3c6414(0xd3)](_0x282877['UniverInstanceType'][_0x3c6414(0x328)]);if(!_0x15bc30)return null;const _0x259d71=_0x15bc30['getStyles']();let _0x4008ae;if(_0x5ed799&&(_0x4008ae=_0x259d71['setValue'](_0x5ed799)),_0x4074c1!=null&&_0x4074c1['v']||(_0x4074c1==null?void 0x0:_0x4074c1['v'])===0x0){_0x432032||(_0x432032={});const _0x28f31d=_0x55f875(_0x4074c1['v']);typeof _0x28f31d==_0x3c6414(0xa5)?_0x432032['t']=_0x282877['CellValueType'][_0x3c6414(0xec)]:typeof _0x28f31d==_0x3c6414(0x168)&&(_0x432032['t']=_0x282877[_0x3c6414(0x1a8)][_0x3c6414(0x226)]),_0x432032['v']=_0x28f31d;}if((_0x4074c1!=null&&_0x4074c1['i']||(_0x4074c1==null?void 0x0:_0x4074c1['i'])===0x0)&&(_0x432032||(_0x432032={}),_0x432032['fi']=_0x4074c1['i']),_0x4074c1!=null&&_0x4074c1['s']&&(_0x432032||(_0x432032={}),_0x432032[_0x3c6414(0x280)]=_0x4074c1['s']),_0x5ed799&&(_0x432032||(_0x432032={}),_0x432032['s']=_0x4008ae),_0x38e169&&_0x432032!=null&&_0x432032['v']&&_0x432032['pbt']!==_0x3e0737[_0x3c6414(0x2e3)][_0x3c6414(0x386)]&&_0x432032[_0x3c6414(0x280)]!==_0x3e0737['PivotCellStyleTypeEnum'][_0x3c6414(0x1f5)]){const _0x418620=String(_0x432032['v']),{dateType:_0x2ed3c3}=_0x38e169;_0x432032['v']=_0x4d0341(_0x80effc,_0x2ed3c3,_0x418620),_0x432032['t']=_0x282877['CellValueType'][_0x3c6414(0x226)];}return _0x432032;},_0x4a1770=(_0x2891ce,_0x3857f0,_0xaf57dd,_0x11dabc)=>{const _0x1e8e40=_0x2b16d4;var _0x374b5e,_0x1b9038,_0x17edd2,_0x3023b4,_0x160311,_0x529dda,_0xbd89c7,_0x38da44,_0x4e987a,_0x5c9ec4,_0x2bf1f2,_0x12ba7d,_0x3bbb59,_0x112fee;const _0x410bbe=_0xaf57dd[_0x1e8e40(0x360)],{cornerView:_0x31279e,rowView:_0x1ec718,colView:_0x4318b2,dataView:_0x7eed51,pageView:_0x1fc2d3,formatMap:_0x522c3f,groupInfo:_0xf0d44e}=_0x3857f0,{row:_0x3ba3a9,col:_0x3e8e46}=_0x410bbe,_0x559b5e=new _0x282877['ObjectMatrix'](),_0x1a4837={},_0x54bdfc={},_0x4c83d7={},_0x4caa1c={},_0x2c33dc={};let _0x306993=_0x3ba3a9,_0xab6a1b=_0x3e8e46;Object[_0x1e8e40(0x12a)](_0x1fc2d3[_0x1e8e40(0x17f)])[_0x1e8e40(0xff)](_0x4f6614=>{const _0x48bfe7=_0x1e8e40;Object[_0x48bfe7(0x12a)](_0x1fc2d3[_0x48bfe7(0x17f)][Number(_0x4f6614)])[_0x48bfe7(0xff)](_0x2a1b8e=>{const _0x4d1bd1=_0x48bfe7,_0x108002={..._0x1fc2d3['data'][Number(_0x4f6614)][Number(_0x2a1b8e)]};_0x559b5e[_0x4d1bd1(0x39a)](Number(_0x4f6614)+_0x306993,Number(_0x2a1b8e)+_0xab6a1b,_0x44c03b(_0x2891ce,_0x108002,_0x433375[_0x4d1bd1(0x1f2)]));});});const _0xf97654=Object[_0x1e8e40(0x12a)](_0x1fc2d3['data'])[_0x1e8e40(0x27b)];_0x306993+=_0xf97654+(_0xf97654?_0x44f3d5:0x0);const _0x51b5b6=_0x31279e[_0x1e8e40(0x2d2)](),_0x115d61=_0x31279e[_0x1e8e40(0xd4)]();for(let _0x4ca334=0x0;_0x4ca334<_0x51b5b6;_0x4ca334++)for(let _0x27816c=0x0;_0x27816c<_0x115d61;_0x27816c++){const _0x209eb9={...(_0x1b9038=(_0x374b5e=_0x31279e[_0x1e8e40(0x17f)])==null?void 0x0:_0x374b5e[_0x4ca334])==null?void 0x0:_0x1b9038[_0x27816c]};_0x209eb9&&((_0x17edd2=_0x1ec718[_0x1e8e40(0x1a1)][_0x27816c])!=null&&_0x17edd2[_0x1e8e40(0x380)])&&_0x27816c===_0x115d61-0x1&&_0x4ca334===_0x51b5b6-0x1&&(_0x209eb9['v']=''+_0x11dabc['sheets-pivot.value']),_0x559b5e['setValue'](_0x4ca334+_0x306993,_0x27816c+_0xab6a1b,_0x44c03b(_0x2891ce,_0x209eb9,_0x433375['cornerStyle']));}for(let _0x42c0a0=0x0;_0x42c0a0<_0x31279e[_0x1e8e40(0x37f)][_0x1e8e40(0x27b)];_0x42c0a0++)_0x31279e[_0x1e8e40(0x37f)][_0x42c0a0]&&(_0x4c83d7[''+(_0x42c0a0+_0xab6a1b)]=_0x31279e[_0x1e8e40(0x37f)][_0x42c0a0]);_0xab6a1b+=_0x115d61;const _0x35524f=_0x4318b2[_0x1e8e40(0x1a1)],_0x4c44f9=_0x4318b2[_0x1e8e40(0x2f4)]()>=0x0?_0x4318b2[_0x1e8e40(0x2f4)]()+0x1:0x0,_0xec956d=_0x4318b2['getLastCol']()>=0x0?_0x4318b2[_0x1e8e40(0x21f)]()+0x1:0x0;for(let _0x470c84=0x0;_0x470c84<_0xec956d;_0x470c84++){for(let _0x344207=0x0;_0x344207<_0x4c44f9;_0x344207++){const _0x369f9d={...(_0x160311=(_0x3023b4=_0x4318b2[_0x1e8e40(0x17f)])==null?void 0x0:_0x3023b4[_0x344207])==null?void 0x0:_0x160311[_0x470c84]},_0x43352b=(_0x529dda=_0x35524f[_0x344207])==null?void 0x0:_0x529dda[_0x1e8e40(0x19a)],_0x383c1b=_0x522c3f[_0x43352b],_0xcd09d6=_0xf0d44e[_0x43352b];_0x369f9d&&(_0x369f9d['v']=_0x22656d(_0x369f9d,_0x344207===0x0&&((_0xbd89c7=_0x4318b2['getHeaderMapItem'](_0x470c84+0x1))==null?void 0x0:_0xbd89c7[_0x1e8e40(0x380)]),_0x383c1b,_0x11dabc));let _0x25c764;_0x383c1b?_0x25c764={..._0x433375[_0x1e8e40(0xe8)],'n':{'pattern':_0x383c1b}}:_0x25c764={..._0x433375['colStyle']},_0x559b5e[_0x1e8e40(0x39a)](_0x344207+_0x306993,_0x470c84+_0xab6a1b,_0x44c03b(_0x2891ce,_0x369f9d,_0x25c764,_0xcd09d6));}_0x4318b2['info'][_0x470c84]&&(_0x54bdfc[''+(_0x470c84+_0xab6a1b)]=_0x4318b2[_0x1e8e40(0x37f)][_0x470c84]),_0x4318b2[_0x1e8e40(0x1a1)][_0x470c84+0x1]&&(_0x2c33dc[''+(_0x470c84+_0x306993+0x1)]=_0x4318b2['headerMap'][_0x470c84+0x1]);}_0x306993+=_0x51b5b6;const _0x50f086=_0x1ec718[_0x1e8e40(0x1a1)],_0x16fd2d=_0x1ec718[_0x1e8e40(0x2f4)]()>=0x0?_0x1ec718[_0x1e8e40(0x2f4)]()+0x1:0x0,_0x371ead=_0x1ec718[_0x1e8e40(0x21f)]()>=0x0?_0x1ec718['getLastCol']()+0x1:0x0;for(let _0x4a4952=0x0;_0x4a4952<_0x16fd2d;_0x4a4952++){for(let _0x30a01f=0x0;_0x30a01f<_0x371ead;_0x30a01f++){const _0x354bd8={...(_0x4e987a=(_0x38da44=_0x1ec718[_0x1e8e40(0x17f)])==null?void 0x0:_0x38da44[_0x4a4952])==null?void 0x0:_0x4e987a[_0x30a01f]},_0x37bd45=(_0x5c9ec4=_0x50f086[_0x30a01f])==null?void 0x0:_0x5c9ec4[_0x1e8e40(0x19a)],_0x51b444=_0x522c3f[_0x37bd45],_0x422a4e=_0xf0d44e[_0x37bd45];_0x354bd8&&(_0x354bd8['v']=_0x22656d(_0x354bd8,!0x1,_0x51b444,_0x11dabc));let _0x26c860;_0x1ec718['info'][_0x4a4952][_0x1e8e40(0x1ef)]===_0x1ec718['getColCount']()?_0x26c860=_0x433375[_0x1e8e40(0x209)]:_0x1ec718['info'][_0x4a4952][_0x1e8e40(0x276)]?_0x26c860=_0x1ec718[_0x1e8e40(0x37f)][_0x4a4952][_0x1e8e40(0x1ef)]===0x0?_0x433375['grandTotal']:_0x433375['subTotalStyle']:_0x26c860=_0x433375[_0x1e8e40(0x182)],_0x51b444&&(_0x26c860={..._0x26c860,'n':{'pattern':_0x51b444}}),_0x559b5e[_0x1e8e40(0x39a)](_0x4a4952+_0x306993,_0x30a01f+_0x3e8e46,_0x44c03b(_0x2891ce,_0x354bd8,_0x26c860,_0x422a4e));}_0x1ec718[_0x1e8e40(0x37f)][_0x4a4952]&&(_0x1a4837[''+(_0x4a4952+_0x306993)]=_0x1ec718['info'][_0x4a4952]),_0x1ec718[_0x1e8e40(0x1a1)][_0x4a4952]&&(_0x4caa1c[''+(_0x4a4952+_0x3e8e46)]=_0x1ec718[_0x1e8e40(0x1a1)][_0x4a4952]);}const _0x2decbb=_0x7eed51[_0x1e8e40(0x2d2)](),_0x212f62=_0x7eed51[_0x1e8e40(0xd4)]();for(let _0x40620b=0x0;_0x40620b<_0x2decbb;_0x40620b++)for(let _0xd83f22=0x0;_0xd83f22<_0x212f62;_0xd83f22++){const _0x2d7e98={...(_0x12ba7d=(_0x2bf1f2=_0x7eed51[_0x1e8e40(0x17f)])==null?void 0x0:_0x2bf1f2[_0x40620b])==null?void 0x0:_0x12ba7d[_0xd83f22]};let _0x57d420;_0x1ec718['info'][_0x40620b][_0x1e8e40(0x276)]?_0x57d420=_0x1ec718[_0x1e8e40(0x37f)][_0x40620b][_0x1e8e40(0x1ef)]===0x0?_0x433375[_0x1e8e40(0x3a1)]:_0x433375[_0x1e8e40(0x1be)]:_0x57d420=_0x433375[_0x1e8e40(0x2a7)];const _0x280852=_0x1ec718['info'][_0x40620b][_0x1e8e40(0x117)],_0x239703=_0x4318b2[_0x1e8e40(0x37f)][_0xd83f22][_0x1e8e40(0x117)],_0x31d122=Math[_0x1e8e40(0x24d)](_0x280852,_0x239703),_0x568de0=_0xaf57dd[_0x1e8e40(0x348)][_0x1e8e40(0x16d)][_0x1e8e40(0x350)]();let _0x39ccca='';_0x31d122<0x0?_0x39ccca=(_0x3bbb59=_0x568de0[0x0])!=null?_0x3bbb59:'':_0x39ccca=(_0x112fee=_0x568de0[_0x31d122])!=null?_0x112fee:'';const _0x51c744=_0x522c3f[_0x39ccca];_0x51c744&&(_0x57d420={..._0x57d420,'n':{'pattern':_0x51c744}}),_0x559b5e['setValue'](_0x40620b+_0x306993,_0xd83f22+_0xab6a1b,_0x44c03b(_0x2891ce,_0x2d7e98,_0x57d420));}return{'valueMatrix':_0x559b5e,'rowInfo':_0x1a4837,'colInfo':_0x54bdfc,'cornerInfo':_0x4c83d7,'rowHeaderMap':_0x4caa1c,'colHeaderMap':_0x2c33dc};};function _0x22656d(_0x527caf,_0x426618,_0x14bcb9,_0x300bd6){const _0x3f29a0=_0x2b16d4;let _0x5dd18c=_0x527caf['v'];_0x426618&&(_0x5dd18c=''+_0x300bd6[_0x3f29a0(0x2ba)]);const _0x91b6b0=_0x527caf['t']&&(_0x527caf['t']&_0x3e0737[_0x3f29a0(0x1d2)][_0x3f29a0(0x17d)])>0x0;if(_0x91b6b0&&(_0x5dd18c=''+_0x300bd6[_0x3f29a0(0x291)]),_0x527caf['s']===_0x3e0737[_0x3f29a0(0x2e3)][_0x3f29a0(0x1f5)]){let _0x9d3a55=_0x5dd18c,_0x4c045a='';_0x3e0737['isPrefixValue'](_0x5dd18c)&&(_0x9d3a55=_0x5dd18c['prefix'],_0x4c045a=_0x5dd18c[_0x3f29a0(0x2a4)]);const _0x151581=_0x14bcb9&&!_0x91b6b0?_0x282877[_0x3f29a0(0x274)]['format'](_0x14bcb9,Number(_0x9d3a55)):_0x9d3a55;_0x4c045a?_0x5dd18c=_0x151581+'\x20'+_0x4c045a:_0x5dd18c=_0x151581+'\x20'+_0x300bd6[_0x3f29a0(0x13f)];}else _0x527caf['s']===_0x3e0737['PivotCellStyleTypeEnum'][_0x3f29a0(0x386)]&&(_0x5dd18c=_0x5dd18c+'\x20'+_0x300bd6['sheets-pivot.grandTotal']);return _0x5dd18c;}function _0x55f875(_0x465d64){const _0x2411cf=_0x2b16d4;if(_0x3e0737[_0x2411cf(0xb9)](_0x465d64)){const {errorType:_0x493e94}=_0x465d64;switch(_0x493e94){case _0x3e0737[_0x2411cf(0x35e)][_0x2411cf(0xe1)]:return _0x3b2497['ErrorType'][_0x2411cf(0x18d)];case _0x3e0737[_0x2411cf(0x35e)][_0x2411cf(0x326)]:return _0x3b2497[_0x2411cf(0x287)][_0x2411cf(0x11c)];case _0x3e0737['PivotErrorTypeEnum'][_0x2411cf(0x253)]:return _0x3b2497[_0x2411cf(0x287)][_0x2411cf(0x289)];case _0x3e0737[_0x2411cf(0x35e)]['NotName']:return _0x3b2497[_0x2411cf(0x287)][_0x2411cf(0x289)];case _0x3e0737['PivotErrorTypeEnum'][_0x2411cf(0x1ce)]:return _0x3b2497['ErrorType'][_0x2411cf(0xc2)];}}return _0x465d64;}function _0x37a9a3(_0x496b77,_0x3339ed,_0x20234c=!0x1,_0x34e134=!0x1){const _0x33cbb9=_0x2b16d4,{data:_0x4018c7}=_0x3339ed,_0x432c8e=_0x3339ed[_0x33cbb9(0x2d2)](),_0x1a7b01=_0x3339ed['getColCount']();if(_0x432c8e<=0x0||_0x1a7b01<=0x0)return[];const _0x244674=_0x3339ed[_0x33cbb9(0x21f)](),_0x2971d5=_0x3339ed[_0x33cbb9(0x2f4)](),_0x5790b3=_0x34e134?_0x2971d5>=0x0?_0x2971d5+0x1:0x0:_0x432c8e,_0xf86ecf=_0x34e134?_0x244674>=0x0?_0x244674+0x1:0x0:_0x1a7b01,{row:_0xfc7691,col:_0x33e747}=_0x496b77,_0x1ce345=_0xfc7691,_0x4d267c=_0x33e747;if(_0x20234c){const _0x24b9c6=[];for(const [_0x35a792,_0x5a7fad]of Object[_0x33cbb9(0x2d8)](_0x4018c7))for(const [_0x4d9d5e,_0x251dd2]of Object[_0x33cbb9(0x2d8)](_0x5a7fad))_0x24b9c6[_0x33cbb9(0x338)](_0x282877[_0x33cbb9(0x29f)](_0x1ce345+Number(_0x35a792),_0x4d267c+Number(_0x4d9d5e)));return _0x24b9c6;}else{const _0x3026cc=_0x34e134?_0x5790b3>0x0?0x1:0x0:0x1,_0x460adf=_0x34e134?_0xf86ecf>0x0?0x1:0x0:0x1,_0x9c8621=_0xfc7691+_0x5790b3-_0x3026cc,_0x203414=_0x33e747+_0xf86ecf-_0x460adf;return[{'startRow':_0x1ce345,'startColumn':_0x4d267c,'endRow':_0x9c8621,'endColumn':_0x203414}];}}const _0x3ecd37=_0x2b16d4(0x2b5),_0x15c051=_0x2b16d4(0x33c);var _0x15dd40=(_0x21cc52=>(_0x21cc52['Filter']='filter',_0x21cc52[_0x2b16d4(0x13d)]=_0x2b16d4(0x161),_0x21cc52['AddPivotField']='addPivotField',_0x21cc52['AddPivotTableWithConfig']=_0x2b16d4(0x2db),_0x21cc52[_0x2b16d4(0x145)]='addPivotTable',_0x21cc52[_0x2b16d4(0x1bd)]=_0x2b16d4(0x9c),_0x21cc52[_0x2b16d4(0x17a)]=_0x2b16d4(0x33b),_0x21cc52['SetPivotCollapse']=_0x2b16d4(0xae),_0x21cc52[_0x2b16d4(0x21e)]='setPivotFilter',_0x21cc52['SetPivotSort']='setPivotSort',_0x21cc52[_0x2b16d4(0x14a)]='setPivotSetting',_0x21cc52[_0x2b16d4(0x1c6)]=_0x2b16d4(0x2fe),_0x21cc52[_0x2b16d4(0x230)]=_0x2b16d4(0x1df),_0x21cc52['DrillDown']=_0x2b16d4(0x109),_0x21cc52['SetValuePivotFilter']=_0x2b16d4(0x213),_0x21cc52['SetPivotTableConfig']=_0x2b16d4(0x281),_0x21cc52[_0x2b16d4(0x38a)]=_0x2b16d4(0x3ac),_0x21cc52))(_0x15dd40||{});const _0xf69c2b={'sheets-pivot.blankValue':_0x2b16d4(0x1e8),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x2b16d4(0x188),'sheets-pivot.grandTotalText':'Grand\x20Total','sheets-pivot.valueText':_0x2b16d4(0xbb),'sheets-pivot.averageName':_0x2b16d4(0x30a),'sheets-pivot.countName':_0x2b16d4(0x275),'sheets-pivot.countNumsName':_0x2b16d4(0x275),'sheets-pivot.maxName':_0x2b16d4(0x100),'sheets-pivot.minName':_0x2b16d4(0x307),'sheets-pivot.productName':_0x2b16d4(0x163),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0x2b16d4(0x1c4),'sheets-pivot.sumName':_0x2b16d4(0x14b),'sheets-pivot.varName':_0x2b16d4(0x37b),'sheets-pivot.varpName':_0x2b16d4(0xb2),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x2b16d4(0x220),'sheets-pivot.value':'value','sheets-pivot.blank':_0x2b16d4(0x17d),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x2b16d4(0x2ef),'sheets-pivot.emptyPivot.column':_0x2b16d4(0x211),'sheets-pivot.emptyPivot.values':_0x2b16d4(0x15f)},_0x5ac153={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x387164=_0x282877[_0x2b16d4(0x2f7)]('pivotPerformCheck'),_0x3c85f0=_0x282877[_0x2b16d4(0x3a9)](_0x2b16d4(0x1a7));var _0xa08ad4=(_0x32b6db=>(_0x32b6db[_0x2b16d4(0x183)]=_0x2b16d4(0x183),_0x32b6db[_0x2b16d4(0x1c1)]=_0x2b16d4(0x1c1),_0x32b6db[_0x2b16d4(0x1e6)]=_0x2b16d4(0x1e6),_0x32b6db))(_0xa08ad4||{}),_0xa5664b=(_0x1e5583=>(_0x1e5583[_0x2b16d4(0x28e)]=_0x2b16d4(0x183),_0x1e5583[_0x2b16d4(0x127)]=_0x2b16d4(0x28f),_0x1e5583['Delete']=_0x2b16d4(0x1c1),_0x1e5583))(_0xa5664b||{});const _0x19037a={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x391749={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x29e),'handler':()=>!0x0},_0x22de79={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x5554ef={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x23c),'handler':()=>!0x0},_0x4c3710={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0};var _0x1fc1af=Object[_0x2b16d4(0x34b)],_0x3f4ed9=(_0x38496c,_0xd684cc,_0x5dae3c,_0x4666c0)=>{const _0x3e3464=_0x2b16d4;for(var _0x5d438d=_0x4666c0>0x1?void 0x0:_0x4666c0?_0x1fc1af(_0xd684cc,_0x5dae3c):_0xd684cc,_0x2c6613=_0x38496c[_0x3e3464(0x27b)]-0x1,_0x3a8a8d;_0x2c6613>=0x0;_0x2c6613--)(_0x3a8a8d=_0x38496c[_0x2c6613])&&(_0x5d438d=_0x3a8a8d(_0x5d438d)||_0x5d438d);return _0x5d438d;},_0x528ca9=(_0x42d268,_0x396f03)=>(_0x5775d8,_0x3ac5d3)=>_0x396f03(_0x5775d8,_0x3ac5d3,_0x42d268);_0x24d96c['SheetsPivotRPCService']=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x4a22e3){const _0x4d91c8=_0x2b16d4;super(),_0x2e1abd(this,_0x4d91c8(0x2bf),new Map()),this[_0x4d91c8(0x2e0)]=_0x4a22e3;}['handleAsyncResponse'](_0x1e8c86){const _0x39ecfc=_0x2b16d4,{version:_0x7893df}=_0x1e8c86,_0x4b3689=this[_0x39ecfc(0x2bf)][_0x39ecfc(0x1a9)](_0x7893df);_0x4b3689&&(_0x4b3689(_0x1e8c86),this['_requestResolvers']['delete'](_0x7893df));}['getPivotDisplayConfig'](_0x130493){return new Promise((_0x4105f4,_0x5035ee)=>{const _0xf79f8d=_0x4298,_0x5267cb=this[_0xf79f8d(0x322)]();this[_0xf79f8d(0x2bf)][_0xf79f8d(0x28f)](_0x5267cb,_0x4105f4),this[_0xf79f8d(0x2e0)][_0xf79f8d(0xe0)](_0x19037a['id'],{'version':_0x5267cb,..._0x130493},{'onlyLocal':!0x0});});}[_0x2b16d4(0x322)](){const _0x42c986=_0x2b16d4;return Math['random']()[_0x42c986(0x260)](0x24)[_0x42c986(0x39b)](0x2,0x10);}},_0x24d96c[_0x2b16d4(0xde)]=_0x3f4ed9([_0x528ca9(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x240)]))],_0x24d96c[_0x2b16d4(0xde)]);const _0x3caff5={0x0:'X',0x1:'h',0x2:'l',0x3:'I',0x4:'y',0x5:'2',0x6:'x',0x7:'A',0x8:'q',0x9:'U','v':'0','B':'1','N':'3','w':'4','j':'5','W':'6','x':'7','U':'8','u':'9','A':'a','J':'b','a':'c','b':'d','l':'e','y':'f','e':'g','r':'i','p':'j','Q':'k','c':'m','V':'n','g':'o','R':'p','s':'r','i':'s','L':'t','I':'u','d':'v','T':'w','X':'z','Z':'B','q':'C','F':'D','O':'E','f':'F','m':'G','D':'H','k':'J','z':'K','H':'L','h':'M','o':'N','Y':'O','G':'P','E':'Q','n':'R','S':'S','M':'T','t':'V','K':'W','P':'Y','C':'Z'},_0x402916='yIVaLrgV\x20blas4RLrgV(2ralVil,\x20RIJ2razl4)\x20{\x20\x20\x20\x20Ls4\x20{\x20\x20\x20\x20\x20\x20\x20\x20agViL\x202ralVil3VygGAsL7ssA4\x20=\x202ralVil.iR2rL(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20gsrerVhliiAel\x20=\x20kSYo.RAsil(ALgJ(2ralVil3VygGAsL7ssA4[5]));\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(!gsrerVhliiAel.Ib)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gsrerVhliiAel.Ib\x20=\x20oIcJls(2ralVil3VygGAsL7ssA4[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20riKgsQls\x20=\x20L4Rlgy\x20KgsQlsm2gJA2SagRl\x20!==\x20\x27IVblyrVlb\x27\x20&&\x20il2y\x20rViLAValgy\x20KgsQlsm2gJA2SagRl;\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20agVLl6L\x20=\x20riKgsQls\x20?\x20il2y\x20:\x20TrVbgT;\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20cliiAelKgsb\x20=\x20agVLl6L.__ZAilWw__.RAsil(2ralVil3VygGAsL7ssA4[5]);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20cliiAel\x20=\x20agVLl6L.__Dl6__.iLsrVery4(cliiAelKgsb);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20ireVALIslKgsb\x20=\x20agVLl6L.__ZAilWw__.RAsil(2ralVil3VygGAsL7ssA4[N]);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20ireVALIsl\x20=\x20agVLl6L.__Dl6__.iLsrVery4(ireVALIslKgsb);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20ireVtA2rb\x20=\x20agVLl6L.__dlsry4__(ireVALIsl,\x20cliiAel,\x20RIJ2razl4);\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20bgcArV\x20=\x20gsrerVhliiAel.bc;\x20\x20\x20\x20\x20\x20\x20\x20yIVaLrgV\x20riFgcArVhALa1rVe(gGALLlsV,\x20gDgiL)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20RALLlsV\x20=\x20gGALLlsV.slR2Aal(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x201giL\x20=\x20gDgiL.slR2Aal(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20RALLlsVGAsLi\x20=\x20RALLlsV.iR2rL(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x201giLGAsLi\x20=\x201giL.iR2rL(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(!RALLlsV.rVa2Ibli(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20RALLlsV\x20===\x201giL;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(RALLlsVGAsLi.2lVeL1\x20<\x205\x20||\x20RALLlsVGAsLi[v]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20yA2il;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20RALLlsVSIyyr6\x20=\x20RALLlsVGAsLi.i2ral(B).pgrV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20agViL\x201giLSIyyr6\x20=\x201giLGAsLi.i2ral(-RALLlsVGAsLi.2lVeL1\x20+\x20B).pgrV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20RALLlsVSIyyr6\x20===\x201giLSIyyr6;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x202lL\x20bgcArVtA2rb\x20=\x20(bgcArV\x20&&\x20bgcArV.2lVeL1)\x20?\x20bgcArV.igcl((bc3Llc)\x20=>\x20riFgcArVhALa1rVe(bc3Llc,\x202gaALrgV.1giLVAcl))\x20:\x20LsIl;\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(2gaALrgV.1giLVAcl\x20===\x20\x272gaA21giL\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bgcArVtA2rb\x20=\x20LsIl;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20agViL\x20dA2rb\x20=\x20ireVtA2rb\x20&&\x20bgcArVtA2rb;\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dA2rb,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cliiAel:\x20gsrerVhliiAel,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20aALa1\x20(lssgs)\x20{\x20\x20\x20\x20\x20\x20\x20\x20slLIsV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dA2rb:\x20yA2il,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cliiAel:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0x12ccd5=_0x7761ca=>{const _0x43e325=_0x2b16d4;var _0x34f161;return((_0x34f161=_0x7761ca[_0x43e325(0x1ba)])==null?void 0x0:_0x34f161[_0x43e325(0x1f0)][_0x43e325(0x398)](/\r\n$/,''))||'';};class _0xe67c3c extends _0x3e0737[_0x2b16d4(0x383)]{constructor(_0x112e58,_0x2edea1){const _0x468fd6=_0x2b16d4;super(),_0x2e1abd(this,_0x468fd6(0x129),{}),_0x2e1abd(this,_0x468fd6(0x12c)),_0x2e1abd(this,_0x468fd6(0x351)),(this[_0x468fd6(0x12c)]=_0x2edea1,this['_host']=_0x112e58);}[_0x2b16d4(0xdc)](){const _0x162d8b=_0x2b16d4;for(const _0x112543 in this[_0x162d8b(0xbc)]){const _0x4cb265=this[_0x162d8b(0xbc)][_0x112543],_0x6dd5a8=_0x4cb265['getRangeKey']();this[_0x162d8b(0x129)][_0x6dd5a8]=_0x4cb265[_0x162d8b(0x149)]();}}['getAutoDisplayNameFunction'](){const _0x53f3c9=_0x2b16d4,_0x41e32d=this[_0x53f3c9(0x351)];return _0x4ce654['bind'](_0x41e32d);}[_0x2b16d4(0x2ea)](_0x510510){const _0x46e10a=_0x2b16d4,_0xb8d620=this[_0x46e10a(0xbc)][_0x510510]['rangeKey'];delete this['dataFields'][_0x510510],delete this['rangeKeyMap'][_0xb8d620];}[_0x2b16d4(0x1e0)](_0x300746){const _0x46f71e=_0x2b16d4;this[_0x46f71e(0xbc)][_0x300746[_0x46f71e(0x149)]()]=_0x300746;}['removeCollectionImp'](_0x441827){const _0x172b1d=_0x2b16d4;var _0x5453e7,_0x3edcdb;const _0x53e5a2=this['_host'][_0x172b1d(0x31f)](_0x441827);if(_0x53e5a2){const {unitId:_0x42cb9a,subUnitId:_0x442657}=_0x53e5a2,_0x2d17aa=(_0x5453e7=this['_host']['getPivotTableConfig'](_0x42cb9a,_0x442657,_0x441827))==null?void 0x0:_0x5453e7['sourceRangeInfo'];this[_0x172b1d(0x351)][_0x172b1d(0x152)]({'token':_0x441827,'type':_0xa08ad4[_0x172b1d(0x1c1)],'dataRangeInfo':_0x2d17aa});}(_0x3edcdb=this[_0x172b1d(0xd9)](_0x441827))==null||_0x3edcdb[_0x172b1d(0x2be)](),delete this[_0x172b1d(0x256)][_0x441827];}[_0x2b16d4(0x2d6)](_0x5dd534,_0x106b84){const _0x21518e=_0x2b16d4,{sheetName:_0x4146f9,unitId:_0x34a382,range:_0x414fe6}=_0x5dd534,{startRow:_0xdf527f,endRow:_0x598630}=_0x414fe6;return _0x3b2497[_0x21518e(0x13b)](_0x34a382,_0x4146f9,{'startRow':_0xdf527f,'endRow':_0x598630,'startColumn':_0x106b84,'endColumn':_0x106b84});}[_0x2b16d4(0x269)](_0x1d93f3){const _0x1700d7=_0x2b16d4;return this[_0x1700d7(0xbc)][this[_0x1700d7(0x129)][_0x1d93f3]];}[_0x2b16d4(0x29a)](_0xc3ac1b,_0x35aa95){const _0x46eff8=_0x2b16d4;this[_0x46eff8(0x129)][_0xc3ac1b]=_0x35aa95;}['updateRangeKeyMap'](_0x56f699,_0x5bf7f4){const _0x24c6ed=_0x2b16d4;this['rangeKeyMap'][_0x5bf7f4]=this[_0x24c6ed(0x129)][_0x56f699],delete this['rangeKeyMap'][_0x56f699];}[_0x2b16d4(0x1de)](_0x37f49e,_0x33d745,_0x3b0a43,_0x994b83){const _0x3cc7dd=_0x2b16d4,_0x16b884=new _0x3e0737[(_0x3cc7dd(0xf1))](this);_0x16b884[_0x3cc7dd(0x39c)](_0x33d745);const _0x3182f5=[];let _0x1c74a2=0x0;for(const _0x1e7be6 of _0x16b884[_0x3cc7dd(0x216)]){const _0x2dd37a=this[_0x3cc7dd(0x2d6)](_0x3b0a43,_0x1c74a2),_0x2a4a55=this[_0x3cc7dd(0xbc)][_0x1e7be6];_0x2a4a55&&(_0x2a4a55[_0x3cc7dd(0xf7)]=_0x2dd37a,this[_0x3cc7dd(0x29a)](_0x2dd37a,_0x1e7be6),_0x3182f5['push']({'index':_0x1c74a2,'dataField':_0x2a4a55})),_0x1c74a2++;}return this[_0x3cc7dd(0x18e)](_0x37f49e,_0x16b884,_0x3b0a43,_0x994b83),{'collection':_0x16b884,'updateDataFieldList':_0x3182f5};}[_0x2b16d4(0xfc)](_0xf9d8e1,_0x168731){const _0x39cfa6=_0x2b16d4;return _0xf9d8e1[_0x39cfa6(0x2b1)]===_0x282877['RANGE_TYPE'][_0x39cfa6(0x2d3)]?{'startRow':0x0,'startColumn':_0xf9d8e1[_0x39cfa6(0x254)],'endRow':_0x168731[_0x39cfa6(0x2d2)]()-0x1,'endColumn':_0xf9d8e1['endColumn']}:{'startRow':_0xf9d8e1['startRow'],'startColumn':_0xf9d8e1['startColumn'],'endRow':_0xf9d8e1['endRow'],'endColumn':_0xf9d8e1[_0x39cfa6(0x244)]};}[_0x2b16d4(0x39d)](_0x4e3367){const _0x447c6e=_0x2b16d4,{sheetName:_0x49895c,range:_0x471e86}=_0x4e3367,_0x501563=this[_0x447c6e(0x12c)][_0x447c6e(0xd3)](_0x282877['UniverInstanceType'][_0x447c6e(0x328)]),_0xf3fa61=_0x501563[_0x447c6e(0x239)](_0x49895c),_0x18778a=_0xf3fa61[_0x447c6e(0x2d9)](),{startColumn:_0x402080,startRow:_0x2da619,endColumn:_0x1d3259}=this[_0x447c6e(0xfc)](_0x471e86,_0xf3fa61),_0x468ce5=_0x501563['getStyles'](),_0x2f7a59=new _0x3e0737[(_0x447c6e(0xf1))](this);_0x2f7a59[_0x447c6e(0xc6)](_0x4e3367);const _0x307f5a=[],_0x330943={};for(let _0x11cc7f=_0x402080;_0x11cc7f<=_0x1d3259;_0x11cc7f++){const _0x34c662=_0x18778a[_0x447c6e(0x1e3)](_0x2da619,_0x11cc7f),_0x524f40=this['getRangeKey'](_0x4e3367,_0x11cc7f),_0x4e87d4=this['getDataFieldByRangeKey'](_0x524f40);if(_0x4e87d4)_0x2f7a59[_0x447c6e(0x38f)](_0x4e87d4[_0x447c6e(0x149)](),_0x4e87d4[_0x447c6e(0x241)]());else{const _0x54b0f0=this['createDataFieldId']();let _0x5a606e=this['adjustSheetCellData'](_0x34c662,_0x468ce5,_0x330943);_0x3e0737[_0x447c6e(0x9d)](_0x5a606e)&&(_0x5a606e=_0x282877[_0x447c6e(0x274)][_0x447c6e(0x251)](_0x5a606e['f'],Number(_0x5a606e['v'])));const _0x5a00f6=this['uniqueDataFieldName'](_0x5a606e,_0x11cc7f),_0x35c1aa=new _0x3e0737['DataField'](_0x54b0f0,_0x5a00f6,_0x3e0737[_0x447c6e(0x150)](0x3));_0x35c1aa['rangeKey']=_0x524f40,this[_0x447c6e(0xbc)][_0x54b0f0]=_0x35c1aa,_0x2f7a59[_0x447c6e(0x38f)](_0x54b0f0,_0x5a00f6),_0x307f5a['push']({'index':_0x11cc7f,'dataField':_0x35c1aa});}}return{'updateDataFieldList':_0x307f5a,'collection':_0x2f7a59};}[_0x2b16d4(0x2a1)](_0x2b6b11){const _0x56ab89=_0x2b16d4;return this[_0x56ab89(0x351)][_0x56ab89(0x123)]()[_0x56ab89(0x10b)]+'\x20'+_0x282877['numberToABC'](_0x2b6b11);}[_0x2b16d4(0x284)](_0x4abbd8,_0x19a6ed){return _0x4abbd8==null||_0x4abbd8===''?this['_getAutoName'](_0x19a6ed):String(_0x4abbd8);}['getCollection'](_0x1aa64b){const _0x2e5ec2=_0x2b16d4;return this[_0x2e5ec2(0x256)][_0x1aa64b];}['addCollection'](_0x51b42a,_0x564188,_0x4d5f2d,_0x31fe51){const _0x25b695=_0x2b16d4;this[_0x25b695(0x256)][_0x51b42a]=_0x564188,_0x564188[_0x25b695(0xc6)](_0x4d5f2d),this['_host'][_0x25b695(0x152)]({'token':_0x51b42a,'type':_0xa08ad4[_0x25b695(0x183)],'dataRangeInfo':_0x4d5f2d,'targetCellInfo':_0x31fe51});}[_0x2b16d4(0x128)](_0x8d5cee,_0x2acaaf){const _0x3249c6=_0x2b16d4,_0x35b5ed=this[_0x3249c6(0xd9)](_0x8d5cee),_0x8995f3=_0x35b5ed[_0x3249c6(0x1b3)]();let _0x19cab1=0x0;for(const _0x4d415d of _0x8995f3){const _0x22a60a=_0x35b5ed[_0x3249c6(0x158)](_0x4d415d),_0x3cbdb0=this[_0x3249c6(0x2d6)](_0x2acaaf,_0x19cab1);this[_0x3249c6(0x155)](_0x22a60a[_0x3249c6(0xf7)],_0x3cbdb0),_0x19cab1++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x571127,_0x458257){const _0x338887=_0x2b16d4;if(this[_0x338887(0xd9)](_0x571127)){const _0x1264d8=this[_0x338887(0xaf)](_0x458257),_0x14b898=[];for(const _0x3ae779 of _0x1264d8)this[_0x338887(0x129)][_0x3ae779]!==void 0x0&&_0x14b898['push'](this['rangeKeyMap'][_0x3ae779]);const _0x961fa5=this[_0x338887(0xab)](_0x571127),_0xecc38c=[],_0x32a8c8=new Set(_0x14b898);for(const _0x2c3d65 of _0x961fa5)_0x32a8c8[_0x338887(0x105)](_0x2c3d65)||_0xecc38c['push'](_0x2c3d65);return _0xecc38c;}}['getMatrixValue'](_0x3736a7,_0x457ff7,_0x1b3877,_0x179a6b,_0x1757bc){const _0x567d9c=_0x2b16d4;return _0x457ff7&&_0x457ff7[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc)?_0x457ff7[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc):_0x1b3877&&_0x1b3877['getValue'](_0x179a6b,_0x1757bc)?_0x1b3877[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc):_0x3736a7[_0x567d9c(0x1e3)](_0x179a6b,_0x1757bc);}[_0x2b16d4(0x2c9)](_0x1f5ebf,_0x4a531d,_0x33105a,_0x35e2c4){const _0x57ce44=_0x2b16d4,_0x33078c=this['dataFields'][_0x1f5ebf];if(!_0x33078c)return;const {subUnitId:_0x5b8afb,range:_0xeaaf40,unitId:_0x47952b}=_0x4a531d,_0x443960=this['_univerInstanceService'][_0x57ce44(0x352)](_0x47952b);if(!_0x443960){console['error'](_0x57ce44(0xe3));return;}const _0x423b4c=_0x443960[_0x57ce44(0x374)](_0x5b8afb),_0x360a50=_0x423b4c[_0x57ce44(0x2d9)](),{arrayFormulaCellDataMatrix:_0x34feab,unitDataMatrix:_0x399d2d}=_0x35e2c4||{},{startRow:_0x47fef2,startColumn:_0x6fdea1,endRow:_0x420837}=this[_0x57ce44(0xfc)](_0xeaaf40,_0x423b4c);_0x33078c[_0x57ce44(0x173)]();const _0x32284c=_0x443960[_0x57ce44(0x30b)](),_0x2ac544={},_0x3886c9=this['getMatrixValue'](_0x360a50,_0x34feab,_0x399d2d,_0x47fef2,_0x6fdea1+_0x33105a);let _0x3f2680=this[_0x57ce44(0xa9)](_0x3886c9,_0x32284c,_0x2ac544);_0x3e0737[_0x57ce44(0x9d)](_0x3f2680)&&(_0x3f2680=_0x282877[_0x57ce44(0x274)][_0x57ce44(0x251)](_0x3f2680['f'],Number(_0x3f2680['v'])));const _0x2dcade=this[_0x57ce44(0x284)](_0x3f2680,_0x6fdea1+_0x33105a);_0x33078c[_0x57ce44(0x112)](_0x2dcade);for(let _0x245f59=_0x47fef2+0x1;_0x245f59<=_0x420837;_0x245f59++){const _0x4bb01d=this['getMatrixValue'](_0x360a50,_0x34feab,_0x399d2d,_0x245f59,_0x6fdea1+_0x33105a);_0x33078c[_0x57ce44(0xca)](this[_0x57ce44(0xa9)](_0x4bb01d,_0x32284c,_0x2ac544),_0x245f59-0x1-_0x47fef2);}}[_0x2b16d4(0x265)](_0x20e35c,_0x75a18,_0x241495){const _0x4ab988=_0x2b16d4,{subUnitId:_0x2053b1,range:_0x5974be,unitId:_0x1d337b}=_0x241495,_0x5d1beb=this[_0x4ab988(0x12c)]['getUnit'](_0x1d337b);if(!_0x5d1beb){console[_0x4ab988(0x18b)](_0x4ab988(0xe3));return;}const _0x20b734=_0x5d1beb['getSheetBySheetId'](_0x2053b1),_0x3085f1=_0x20b734[_0x4ab988(0x2d9)](),{startRow:_0x41baca,startColumn:_0xe9a5cf,endRow:_0x515913}=this[_0x4ab988(0xfc)](_0x5974be,_0x20b734),_0x13761e=_0x5d1beb[_0x4ab988(0x30b)](),_0x9fc322={};for(const {dataField:_0x2808c4,index:_0x92ae5e}of _0x75a18){_0x2808c4['reset']();const _0x251a60=this['getMatrixValue'](_0x3085f1,void 0x0,void 0x0,_0x41baca,_0xe9a5cf+_0x92ae5e);let _0x3343ce=this[_0x4ab988(0xa9)](_0x251a60,_0x13761e,_0x9fc322);_0x3e0737[_0x4ab988(0x9d)](_0x3343ce)&&(_0x3343ce=_0x282877['numfmt'][_0x4ab988(0x251)](_0x3343ce['f'],Number(_0x3343ce['v'])));const _0x438d4c=this['uniqueDataFieldName'](_0x3343ce,_0xe9a5cf+_0x92ae5e);_0x2808c4['setName'](_0x438d4c);}_0x20e35c[_0x4ab988(0x26f)]();for(let _0x271a15=_0x41baca+0x1;_0x271a15<=_0x515913;_0x271a15++)for(const {index:_0x1a3227,dataField:_0x2f46fe}of _0x75a18){const _0x3e7178=_0x3085f1['getValue'](_0x271a15,_0xe9a5cf+_0x1a3227);_0x2f46fe[_0x4ab988(0xca)](this[_0x4ab988(0xa9)](_0x3e7178,_0x13761e,_0x9fc322),_0x271a15-0x1-_0x41baca);}_0x20e35c[_0x4ab988(0x25b)](_0x515913-_0x41baca);}[_0x2b16d4(0xaf)](_0x4601d6){const _0x3198b0=_0x2b16d4,{range:_0x5420f4}=_0x4601d6,{startColumn:_0x4cd2d2,endColumn:_0x213901}=_0x5420f4,_0x34125e=[];for(let _0x33ac8a=_0x4cd2d2;_0x33ac8a<=_0x213901;_0x33ac8a++)_0x34125e['push'](this[_0x3198b0(0x2d6)](_0x4601d6,_0x33ac8a));return _0x34125e;}[_0x2b16d4(0xa9)](_0x33ba57,_0x49cad2,_0x2df411){const _0x5c9550=_0x2b16d4;if(_0x33ba57){const {s:_0x3becfe,v:_0x484ab4,t:_0x548069,p:_0x3a145c}=_0x33ba57;if(_0x3a145c)return _0x12ccd5(_0x3a145c);const _0x4e36e3=_0x49cad2[_0x5c9550(0x1a9)](_0x3becfe);if(_0x4e36e3&&_0x548069===_0x282877[_0x5c9550(0x1a8)][_0x5c9550(0xec)]&&_0x4e36e3['n']){const {pattern:_0x35bc6c}=_0x4e36e3['n'];_0x2df411[_0x35bc6c]||(_0x2df411[_0x35bc6c]=_0x282877[_0x5c9550(0x274)][_0x5c9550(0x1b5)](_0x35bc6c));const _0x1b7fb6=_0x2df411[_0x35bc6c],_0x2a3243=_0x1b7fb6[_0x5c9550(0x110)];if(_0x1b7fb6[_0x5c9550(0x376)])return String(_0x484ab4);if(_0x2a3243)return{'v':_0x484ab4,'f':_0x35bc6c};}if(_0x548069===_0x282877[_0x5c9550(0x1a8)][_0x5c9550(0xec)])return Number(_0x484ab4);if(_0x548069===_0x282877[_0x5c9550(0x1a8)][_0x5c9550(0x226)]||_0x548069===_0x282877['CellValueType'][_0x5c9550(0xcb)])return String(_0x484ab4);if(_0x548069===void 0x0){const _0x3fded9=Number(_0x484ab4);if(!Number['isNaN'](_0x3fded9)&&String(_0x3fded9)===_0x484ab4)return _0x3fded9;}return _0x484ab4!=null?_0x484ab4:null;}else return null;}[_0x2b16d4(0x167)](_0x128ee4){const _0x138e1d=_0x2b16d4,{sheetName:_0x30cf9d,range:_0x3a3d2b,unitId:_0x404849}=_0x128ee4,_0x4a934b=this[_0x138e1d(0x12c)][_0x138e1d(0x352)](_0x404849);if(!_0x4a934b)return console['error']('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x5789a8=_0x4a934b['getSheetBySheetName'](_0x30cf9d),_0x271ecd=_0x5789a8[_0x138e1d(0x2d9)](),{startRow:_0xc35d69,startColumn:_0x129527,endRow:_0x4575cb,endColumn:_0x185762}=this[_0x138e1d(0xfc)](_0x3a3d2b,_0x5789a8),_0x552326=_0x4a934b['getStyles'](),_0x4f77e9=[],_0x461977=[],_0x15d253={};for(let _0x32207e=_0xc35d69;_0x32207e<=_0x4575cb;_0x32207e++){const _0xbb9f9e=[];for(let _0x16d1af=_0x129527;_0x16d1af<=_0x185762;_0x16d1af++){const _0x5c2983=_0x271ecd[_0x138e1d(0x1e3)](_0x32207e,_0x16d1af);_0x32207e===_0xc35d69?_0x4f77e9[_0x138e1d(0x338)](_0x5c2983==null?null:String(_0x5c2983['v'])):_0xbb9f9e[_0x138e1d(0x338)](this[_0x138e1d(0xa9)](_0x5c2983,_0x552326,_0x15d253));}_0x461977[_0x138e1d(0x338)](_0xbb9f9e);}return{'header':_0x4f77e9,'data':_0x461977};}['toJSON'](){const _0x1d0b3f=_0x2b16d4;return super[_0x1d0b3f(0x316)]();}[_0x2b16d4(0x39c)](_0xda9034){const _0x3af392=_0x2b16d4;super['fromJSON'](_0xda9034),this[_0x3af392(0xdc)]();}['dispose'](){const _0x476904=_0x2b16d4;super[_0x476904(0x2be)](),this['rangeKeyMap']={},this[_0x476904(0x351)]=null;}}const _0x226bb9=_0x56fba0=>{const _0x86ad12=_0x2b16d4,{targetCellInfo:_0x21b190}=_0x56fba0,{matrixCache:_0xa44448,rangesCache:_0x14e697}=_0x943949({'filter':_0x86ad12(0x395),'row':_0x86ad12(0x2ef),'column':'Column','values':_0x86ad12(0x15f)},_0x21b190),_0x342a7f=new _0x282877['ObjectMatrix']();return _0xa44448['forValue']((_0x368b4e,_0x1e19ee,_0x574611)=>{const _0x22f2eb=_0x86ad12;_0x342a7f[_0x22f2eb(0x39a)](_0x368b4e,_0x1e19ee,_0x574611);}),{'matrix':_0x342a7f,'rangesCache':_0x14e697};},_0x33694f=_0x1f9377=>{const _0x132bc2=_0x2b16d4;let _0x40a3eb;if(_0x1f9377!=null&&_0x1f9377['v']||(_0x1f9377==null?void 0x0:_0x1f9377['v'])===0x0){_0x40a3eb||(_0x40a3eb={});const _0x5317ab=_0x55f875(_0x1f9377['v']);typeof _0x5317ab=='number'?_0x40a3eb['t']=_0x282877[_0x132bc2(0x1a8)][_0x132bc2(0xec)]:typeof _0x5317ab==_0x132bc2(0x168)&&(_0x40a3eb['t']=_0x282877[_0x132bc2(0x1a8)]['STRING']),_0x40a3eb['v']=_0x5317ab;}return _0x40a3eb;},_0x1ba75d=(_0x306e39,_0x11fe68,_0x107a36)=>{const _0x186277=_0x2b16d4;var _0x4071ab,_0x2be47c,_0x43db7d,_0x3df8d5,_0x28674f,_0x9363a9,_0x4a5ed9,_0x173b79,_0x2b24d5,_0x230b34,_0x1991c7,_0x2f8851;const {cornerView:_0x5c8f92,rowView:_0x34ca94,colView:_0x23f293,dataView:_0x363790,pageView:_0x5e70e0,formatMap:_0x45a55c}=_0x306e39,{row:_0xf01a1,col:_0x33eb65}=_0x11fe68,_0x23a841=new _0x282877[(_0x186277(0x184))]();let _0x4ffc80=_0xf01a1,_0x2c48af=_0x33eb65;Object[_0x186277(0x12a)](_0x5e70e0[_0x186277(0x17f)])[_0x186277(0xff)](_0x15f4ef=>{const _0x1d3732=_0x186277;Object[_0x1d3732(0x12a)](_0x5e70e0['data'][Number(_0x15f4ef)])[_0x1d3732(0xff)](_0x1efda1=>{const _0x40c18b=_0x1d3732,_0x12576b={..._0x5e70e0[_0x40c18b(0x17f)][Number(_0x15f4ef)][Number(_0x1efda1)]};_0x23a841[_0x40c18b(0x39a)](Number(_0x15f4ef)+_0x4ffc80,Number(_0x1efda1)+_0x2c48af,_0x33694f(_0x12576b));});});const _0x5c1899=Object[_0x186277(0x12a)](_0x5e70e0[_0x186277(0x17f)])[_0x186277(0x27b)];_0x4ffc80+=_0x5c1899+(_0x5c1899?_0x44f3d5:0x0);const _0x402a35=_0x5c8f92['getRowCount'](),_0x745ed0=_0x5c8f92[_0x186277(0xd4)]();for(let _0x352244=0x0;_0x352244<_0x402a35;_0x352244++)for(let _0x585b3a=0x0;_0x585b3a<_0x745ed0;_0x585b3a++){const _0x24e091={...(_0x2be47c=(_0x4071ab=_0x5c8f92['data'])==null?void 0x0:_0x4071ab[_0x352244])==null?void 0x0:_0x2be47c[_0x585b3a]};_0x24e091&&((_0x43db7d=_0x34ca94[_0x186277(0x1a1)][_0x585b3a])!=null&&_0x43db7d['isValue'])&&_0x585b3a===_0x745ed0-0x1&&_0x352244===_0x402a35-0x1&&(_0x24e091['v']=''+_0x107a36[_0x186277(0x2ba)]),_0x23a841[_0x186277(0x39a)](_0x352244+_0x4ffc80,_0x585b3a+_0x2c48af,_0x33694f(_0x24e091));}_0x2c48af+=_0x745ed0;const _0x1f7434=_0x23f293['headerMap'],_0x583916=_0x23f293[_0x186277(0x2f4)]()>=0x0?_0x23f293[_0x186277(0x2f4)]()+0x1:0x0,_0x1de568=_0x23f293[_0x186277(0x21f)]()>=0x0?_0x23f293[_0x186277(0x21f)]()+0x1:0x0;for(let _0x1e265c=0x0;_0x1e265c<_0x1de568;_0x1e265c++)for(let _0x126dfd=0x0;_0x126dfd<_0x583916;_0x126dfd++){const _0x27c7cf={...(_0x28674f=(_0x3df8d5=_0x23f293[_0x186277(0x17f)])==null?void 0x0:_0x3df8d5[_0x1e265c])==null?void 0x0:_0x28674f[_0x126dfd]},_0x43b9d4=(_0x9363a9=_0x1f7434[_0x1e265c])==null?void 0x0:_0x9363a9[_0x186277(0x19a)],_0x2faf2d=_0x45a55c[_0x43b9d4];_0x27c7cf&&(_0x27c7cf['v']=_0x22656d(_0x27c7cf,_0x1e265c===0x0&&((_0x4a5ed9=_0x23f293[_0x186277(0x106)](_0x126dfd+0x1))==null?void 0x0:_0x4a5ed9['isValue']),_0x2faf2d,_0x107a36)),_0x23a841[_0x186277(0x39a)](_0x1e265c+_0x4ffc80,_0x126dfd+_0x2c48af,_0x33694f(_0x27c7cf));}_0x4ffc80+=_0x402a35;const _0x2e74c2=_0x34ca94[_0x186277(0x1a1)],_0x54046b=_0x34ca94[_0x186277(0x2f4)]()>=0x0?_0x34ca94['getLastRow']()+0x1:0x0,_0x3d1c84=_0x34ca94[_0x186277(0x21f)]()>=0x0?_0x34ca94['getLastCol']()+0x1:0x0;for(let _0x3781db=0x0;_0x3781db<_0x54046b;_0x3781db++)for(let _0x3ad85d=0x0;_0x3ad85d<_0x3d1c84;_0x3ad85d++){const _0x11f311={...(_0x2b24d5=(_0x173b79=_0x34ca94['data'])==null?void 0x0:_0x173b79[_0x3781db])==null?void 0x0:_0x2b24d5[_0x3ad85d]},_0x974f6c=(_0x230b34=_0x2e74c2[_0x3ad85d])==null?void 0x0:_0x230b34[_0x186277(0x19a)],_0x1f6515=_0x45a55c[_0x974f6c];_0x11f311&&(_0x11f311['v']=_0x22656d(_0x11f311,!0x1,_0x1f6515,_0x107a36)),_0x23a841[_0x186277(0x39a)](_0x3781db+_0x4ffc80,_0x3ad85d+_0x33eb65,_0x33694f(_0x11f311));}const _0x173aa7=_0x363790['getRowCount'](),_0x4fc72d=_0x363790[_0x186277(0xd4)]();for(let _0x49622a=0x0;_0x49622a<_0x173aa7;_0x49622a++)for(let _0x2c53fe=0x0;_0x2c53fe<_0x4fc72d;_0x2c53fe++){const _0x48a82f={...(_0x2f8851=(_0x1991c7=_0x363790[_0x186277(0x17f)])==null?void 0x0:_0x1991c7[_0x49622a])==null?void 0x0:_0x2f8851[_0x2c53fe]};_0x23a841[_0x186277(0x39a)](_0x49622a+_0x4ffc80,_0x2c53fe+_0x2c48af,_0x33694f(_0x48a82f));}return _0x23a841;},_0x3fd1d0=_0x24ffd7=>{const _0x5d9e18=_0x2b16d4,{view:_0x188c10,targetCellInfo:_0x5d8040,isEmpty:_0x13e3d0,textInfo:_0x3efef0}=_0x24ffd7;if(_0x13e3d0)return _0x226bb9(_0x24ffd7);const {pageView:_0x104cf5,cornerView:_0x36ef4e,rowView:_0x39049c,colView:_0x180eca,dataView:_0x324fb6}=_0x188c10,_0x5b2b95=_0x37a9a3(_0x5d8040,_0x104cf5,!0x0),_0x40f164=_0x104cf5[_0x5d9e18(0xcf)]>=0x0?_0x104cf5[_0x5d9e18(0xcf)]+0x1:0x0,_0x387dcd=_0x36ef4e[_0x5d9e18(0x2d2)](),_0x36f3b4=_0x36ef4e[_0x5d9e18(0xd4)](),_0x235d32=_0x5b2b95[_0x5d9e18(0x27b)]>0x0?_0x44f3d5:0x0,_0x50eeba=_0x37a9a3({'row':_0x5d8040[_0x5d9e18(0x303)]+_0x40f164+_0x235d32,'col':_0x5d8040[_0x5d9e18(0x1da)]},_0x36ef4e,!0x1,!0x1),_0x27c5dc=_0x37a9a3({'row':_0x5d8040['row']+_0x40f164+_0x235d32+_0x387dcd,'col':_0x5d8040[_0x5d9e18(0x1da)]},_0x39049c,!0x1,!0x0),_0x2ea5e0=_0x37a9a3({'row':_0x5d8040[_0x5d9e18(0x303)]+_0x40f164+_0x235d32,'col':_0x5d8040[_0x5d9e18(0x1da)]+_0x36f3b4},_0x180eca,!0x1,!0x0),_0x3067fa=_0x37a9a3({'row':_0x5d8040['row']+_0x40f164+_0x235d32+_0x387dcd,'col':_0x5d8040[_0x5d9e18(0x1da)]+_0x36f3b4},_0x324fb6,!0x1,!0x1),_0x2cda47={'rowRanges':_0x27c5dc,'colRanges':_0x2ea5e0,'cornerRanges':_0x50eeba,'dataRanges':_0x3067fa,'pageRanges':_0x5b2b95};return{'matrix':_0x1ba75d(_0x188c10,_0x5d8040,_0x3efef0),'rangesCache':_0x2cda47};};var _0x279e8c=Object[_0x2b16d4(0x34b)],_0x1e132e=(_0x33cdec,_0x284e20,_0x2650dd,_0x397aba)=>{const _0x572d60=_0x2b16d4;for(var _0x2432e4=_0x397aba>0x1?void 0x0:_0x397aba?_0x279e8c(_0x284e20,_0x2650dd):_0x284e20,_0x1a9ce4=_0x33cdec[_0x572d60(0x27b)]-0x1,_0x1cab90;_0x1a9ce4>=0x0;_0x1a9ce4--)(_0x1cab90=_0x33cdec[_0x1a9ce4])&&(_0x2432e4=_0x1cab90(_0x2432e4)||_0x2432e4);return _0x2432e4;},_0x5aa427=(_0x3f86d3,_0x599fc4)=>(_0x4f7fa7,_0x409448)=>_0x599fc4(_0x4f7fa7,_0x409448,_0x3f86d3);_0x24d96c[_0x2b16d4(0x1b4)]=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x16a86b,_0x143122,_0x39d639,_0x4f92c7,_0x431dd6){const _0x122583=_0x2b16d4;super(),_0x2e1abd(this,_0x122583(0xed),new Map()),_0x2e1abd(this,_0x122583(0x25f),new Map()),_0x2e1abd(this,_0x122583(0x1ac),new Map()),_0x2e1abd(this,_0x122583(0x3a4)),_0x2e1abd(this,_0x122583(0xe6),new _0x2b003b[(_0x122583(0x35c))]()),_0x2e1abd(this,_0x122583(0x1f1),this['_collectionChange$'][_0x122583(0x259)]()),_0x2e1abd(this,'_viewData$',new _0x2b003b['Subject']()),_0x2e1abd(this,'viewData$',this['_viewData$']['asObservable']()),_0x2e1abd(this,_0x122583(0x268),new _0x2b003b[(_0x122583(0x35c))]()),_0x2e1abd(this,_0x122583(0x334),this['_fieldsCollectionChange$'][_0x122583(0x259)]()),_0x2e1abd(this,_0x122583(0x111),new Map()),_0x2e1abd(this,_0x122583(0xdf),[]),_0x2e1abd(this,_0x122583(0x263),new Map()),(this[_0x122583(0x1fe)]=_0x16a86b,this[_0x122583(0x12c)]=_0x143122,this['_lifecycleService']=_0x39d639,this[_0x122583(0x2e0)]=_0x4f92c7,this[_0x122583(0x30e)]=_0x431dd6,this[_0x122583(0x1a2)]());}[_0x2b16d4(0x123)](){const _0x1a56e5=_0x2b16d4;return this[_0x1a56e5(0x3a4)]?this[_0x1a56e5(0x3a4)]:_0xf69c2b;}['setTextInfo'](_0x59c03e){const _0x2557d5=_0x2b16d4;this[_0x2557d5(0x3a4)]=_0x59c03e;}['handleMoveRange'](_0x3ec158){const _0x456ac3=_0x2b16d4;var _0x57c1d8;const {from:_0x3ea79d,to:_0x25eb35,unitId:_0x1ddff7,fromRange:_0x280ab5,toRange:_0x50b95c}=_0x3ec158;if(_0x3ea79d&&_0x25eb35){const _0x524d0c=this[_0x456ac3(0xc9)](_0x1ddff7),_0x4bfeb1=this[_0x456ac3(0xed)][_0x456ac3(0x1a9)](_0x1ddff7),_0x3f7fbc=(_0x57c1d8=this[_0x456ac3(0x12c)][_0x456ac3(0x352)](_0x1ddff7))==null?void 0x0:_0x57c1d8['getSheetBySheetId'](_0x25eb35[_0x456ac3(0x204)]);if(!_0x4bfeb1||!_0x3f7fbc)return;const _0x235b3c=_0x3f7fbc==null?void 0x0:_0x3f7fbc[_0x456ac3(0x241)]();for(const [_0x5e314b,_0x1de526]of _0x4bfeb1[_0x456ac3(0x2d8)]())for(const [_0x42a0ec,_0x251fb9]of _0x1de526[_0x456ac3(0x2d8)]()){const {sourceRangeInfo:_0x40be1f}=_0x251fb9;if(_0x40be1f[_0x456ac3(0x1bc)]===_0x1ddff7&&_0x40be1f[_0x456ac3(0x204)]===_0x3ea79d['subUnitId']&&_0x282877['Rectangle'][_0x456ac3(0x235)](_0x280ab5,_0x40be1f['range'])){const _0x4d196c={'row':_0x40be1f['range'][_0x456ac3(0x19f)]-_0x280ab5[_0x456ac3(0x19f)],'col':_0x40be1f[_0x456ac3(0x345)]['startColumn']-_0x280ab5['startColumn']},_0x7487e6={'unitId':_0x1ddff7,'subUnitId':_0x25eb35[_0x456ac3(0x204)],'sheetName':_0x235b3c,'range':{'startRow':_0x50b95c[_0x456ac3(0x19f)]+_0x4d196c[_0x456ac3(0x303)],'endRow':_0x50b95c[_0x456ac3(0x19f)]+_0x4d196c['row']+_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x39e)]-_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x19f)],'startColumn':_0x50b95c[_0x456ac3(0x254)]+_0x4d196c[_0x456ac3(0x1da)],'endColumn':_0x50b95c[_0x456ac3(0x254)]+_0x4d196c['col']+_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x244)]-_0x40be1f[_0x456ac3(0x345)][_0x456ac3(0x254)]}};_0x524d0c[_0x456ac3(0x128)](_0x42a0ec,_0x7487e6);const _0x168fcc={..._0x251fb9,'sourceRangeInfo':_0x7487e6};this[_0x456ac3(0x2c2)](_0x1ddff7,_0x25eb35['subUnitId'],_0x42a0ec,_0x168fcc),this[_0x456ac3(0x152)]({'unitId':_0x1ddff7,'token':_0x42a0ec,'type':_0xa08ad4[_0x456ac3(0x1e6)],'oldSourceRangeInfo':_0x40be1f,'dataRangeInfo':_0x7487e6,'targetCellInfo':_0x251fb9['targetCellInfo']}),this['updateConfig']({'unitId':_0x1ddff7,'subUnitId':_0x25eb35[_0x456ac3(0x204)],'oldSubUnitId':_0x5e314b,'pivotTableId':_0x42a0ec,'pivotTableConfig':_0x168fcc,'collectionConfig':_0x524d0c['toJSON']()});}}}}[_0x2b16d4(0x152)](_0x21a4a6){const _0x8e7c47=_0x2b16d4;this[_0x8e7c47(0xe6)][_0x8e7c47(0x23b)](_0x21a4a6);}[_0x2b16d4(0xc9)](_0x42b324){const _0x1015b5=_0x2b16d4;let _0x240e53=this[_0x1015b5(0x111)][_0x1015b5(0x1a9)](_0x42b324);return _0x240e53||(_0x240e53=new _0xe67c3c(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x1015b5(0x28f)](_0x42b324,_0x240e53)),_0x240e53;}[_0x2b16d4(0xd9)](_0x45623f,_0x5af23b){const _0x357570=_0x2b16d4;return this[_0x357570(0xc9)](_0x45623f)[_0x357570(0x256)][_0x5af23b];}[_0x2b16d4(0x171)](_0x4c74dd,_0x54f73a,_0x1b7d66){const _0x1436bf=_0x2b16d4;return this[_0x1436bf(0xc9)](_0x4c74dd)[_0x1436bf(0x171)](_0x54f73a,_0x1b7d66);}[_0x2b16d4(0x28c)](_0x297656,_0x1048bd){const _0x308d4f=_0x2b16d4;let _0x464f71=this[_0x308d4f(0xed)][_0x308d4f(0x1a9)](_0x297656);_0x464f71||(_0x464f71=new Map(),this[_0x308d4f(0xed)][_0x308d4f(0x28f)](_0x297656,_0x464f71));let _0x279592=_0x464f71[_0x308d4f(0x1a9)](_0x1048bd);return _0x279592||(_0x279592=new Map(),_0x464f71['set'](_0x1048bd,_0x279592)),_0x279592;}[_0x2b16d4(0x2c2)](_0x520afb,_0x2723b4,_0x906397,_0x5ce8c7){const _0xc470fa=_0x2b16d4;this['_ensurePivotMap'](_0x520afb,_0x2723b4)[_0xc470fa(0x28f)](_0x906397,_0x5ce8c7);}[_0x2b16d4(0x146)](_0x5a39ea,_0x26e917,_0xa19859){const _0x2e6ab3=_0x2b16d4;var _0x1bf342,_0x444e8b,_0xed82d8,_0x4b47e6;((_0x444e8b=(_0x1bf342=this[_0x2e6ab3(0xed)]['get'](_0x5a39ea))==null?void 0x0:_0x1bf342['get'](_0x26e917))==null?void 0x0:_0x444e8b[_0x2e6ab3(0x1a9)](_0xa19859))&&((_0x4b47e6=(_0xed82d8=this['_model']['get'](_0x5a39ea))==null?void 0x0:_0xed82d8['get'](_0x26e917))==null||_0x4b47e6[_0x2e6ab3(0x1c1)](_0xa19859));}[_0x2b16d4(0x1e5)](_0x379618,_0x8663ed){this['_pivotTableInstanceCache']['set'](_0x379618,_0x8663ed);}[_0x2b16d4(0x1d0)](_0x2e5767){const _0x57bd17=_0x2b16d4;this['_pivotTableInstanceCache'][_0x57bd17(0x1c1)](_0x2e5767);}[_0x2b16d4(0x2cd)](_0xe3d5b5,_0x47f009){const _0x546f8e=_0x2b16d4;let _0x143846=this[_0x546f8e(0x1ac)]['get'](_0xe3d5b5);_0x143846||(_0x143846=new Map(),this[_0x546f8e(0x1ac)][_0x546f8e(0x28f)](_0xe3d5b5,_0x143846));let _0x14eb3e=_0x143846[_0x546f8e(0x1a9)](_0x47f009);return _0x14eb3e||(_0x14eb3e=new Map(),_0x143846[_0x546f8e(0x28f)](_0x47f009,_0x14eb3e)),_0x14eb3e;}[_0x2b16d4(0x20d)](_0x11bdb8){const _0x197b45=_0x2b16d4,{unitId:_0x4ab223,subUnitId:_0x106509,pivotTableId:_0x28b44b,pivotTableConfig:_0x4277f8,collectionConfig:_0x2946bc}=_0x11bdb8,_0x40fa79={'unitId':_0x4ab223,'subUnitId':_0x106509,'oldSubUnitId':_0x106509,'pivotTableId':_0x28b44b,'pivotTableConfig':_0x4277f8,'collectionConfig':_0x2946bc};this[_0x197b45(0x2e0)]['executeCommand'](_0x5554ef['id'],_0x40fa79,{'onlyLocal':!0x0});}[_0x2b16d4(0xa3)](_0xdd66cc,_0x29e62d,_0x2429df,_0x102070,_0x1ea208,_0x5b982f,_0x8f6dee,_0x57c950=!0x1){const _0x1ad59=_0x2b16d4;var _0x54cecc;this[_0x1ad59(0x2e0)][_0x1ad59(0xe0)](_0x22de79['id'],{'single':{'unitId':_0xdd66cc,'subUnitId':_0x29e62d,'type':_0x2429df,'pivotTableId':_0x102070,'view':_0x1ea208,'pivotConfig':_0x5b982f},'collectionConfig':{[_0xdd66cc]:_0x8f6dee}},{'onlyLocal':!0x0});const _0x3e1960=!!((_0x54cecc=this[_0x1ad59(0x185)](_0x102070))!=null&&_0x54cecc[_0x1ad59(0xa8)]()),_0x4b0622=this[_0x1ad59(0x13c)](_0xdd66cc,_0x29e62d,_0x102070);_0x4b0622&&this['updateViewData']({'view':_0x1ea208,'pivotTableId':_0x102070,'textInfo':this[_0x1ad59(0x123)](),'isEmpty':_0x3e1960,'targetCellInfo':_0x4b0622[_0x1ad59(0x360)]},_0x57c950);}[_0x2b16d4(0x1ff)](_0xda4f1,_0x1695ce){const _0x3dd3d5=_0x2b16d4,{targetCellInfo:_0xec903b,pivotTableId:_0x5438e0}=_0xda4f1,{unitId:_0x2907d9,subUnitId:_0x434eaa}=_0xec903b,_0x2ba863=this['_ensureViewDataMap'](_0x2907d9,_0x434eaa),_0xd1258=_0x2ba863[_0x3dd3d5(0x1a9)](_0x5438e0);let _0x1bad09,_0x3a2752;_0xd1258&&(_0x1bad09=_0xd1258[_0x3dd3d5(0xc7)],_0x3a2752=_0xd1258[_0x3dd3d5(0x310)]);const {rangesCache:_0x41e73b,matrix:_0x3bd7a1}=_0x3fd1d0(_0xda4f1);_0x2ba863[_0x3dd3d5(0x28f)](_0x5438e0,{'rangeCache':_0x41e73b,'matrix':_0x3bd7a1,'oldMatrix':_0x3a2752,'oldRangeCache':_0x1bad09}),_0x1695ce||this[_0x3dd3d5(0xb3)][_0x3dd3d5(0x23b)]({'unitId':_0x2907d9,'subUnitId':_0x434eaa,'pivotTableId':_0x5438e0});}[_0x2b16d4(0x11d)](_0x18f14b,_0x21ae9f,_0x1e92c5,_0x207ea6,_0x5b71dc){this['_updateModelCache'](_0x18f14b,_0x21ae9f,_0x1e92c5,_0x5b71dc),this['_updatePivotTableInstanceCache'](_0x1e92c5,_0x207ea6);}[_0x2b16d4(0x258)](_0x2ce6a6,_0x248c09,_0x221be8){const _0x5a68ac=_0x2b16d4,_0x28af79=this[_0x5a68ac(0xc9)](_0x2ce6a6);_0x28af79[_0x5a68ac(0xab)](_0x221be8)[_0x5a68ac(0xff)](_0xffa966=>{_0x28af79['deleteDataField'](_0xffa966);}),this[_0x5a68ac(0x12b)](_0x2ce6a6,_0x221be8),this[_0x5a68ac(0x146)](_0x2ce6a6,_0x248c09,_0x221be8),this[_0x5a68ac(0x1d0)](_0x221be8);}[_0x2b16d4(0x27e)](_0x5609d2,_0x43d35a,_0x4d7420,_0x254ad9){const _0x24dd07=_0x2b16d4;this[_0x24dd07(0x2c2)](_0x5609d2,_0x43d35a,_0x4d7420,_0x254ad9);}[_0x2b16d4(0x13c)](_0x2f0561,_0x4fec6b,_0xb5b53e){const _0xbe18c5=_0x2b16d4;var _0x2690c9,_0xe985ba;const _0x2ae96a=(_0xe985ba=(_0x2690c9=this[_0xbe18c5(0xed)]['get'](_0x2f0561))==null?void 0x0:_0x2690c9['get'](_0x4fec6b))==null?void 0x0:_0xe985ba['get'](_0xb5b53e);if(_0x2ae96a)return _0x2ae96a;}[_0x2b16d4(0x2d1)](_0x5af2f5,_0x312f73,_0x5177d5){const _0x22cfaf=_0x2b16d4;var _0x125615,_0x274e50;const _0x37d9e2=(_0x274e50=(_0x125615=this[_0x22cfaf(0xed)][_0x22cfaf(0x1a9)](_0x5af2f5))==null?void 0x0:_0x125615[_0x22cfaf(0x1a9)](_0x312f73))==null?void 0x0:_0x274e50[_0x22cfaf(0x1a9)](_0x5177d5);if(_0x37d9e2)return _0x37d9e2[_0x22cfaf(0x348)];}['getPivotTableInstance'](_0x1d7e18){const _0x5f2313=_0x2b16d4;return this[_0x5f2313(0x25f)][_0x5f2313(0x1a9)](_0x1d7e18);}[_0x2b16d4(0x28d)](_0x1530a4){const _0x35c06f=_0x2b16d4;this[_0x35c06f(0xed)]['delete'](_0x1530a4);const _0x31061d=this['_dataFieldManagerCollection'][_0x35c06f(0x1a9)](_0x1530a4);_0x31061d&&(_0x31061d[_0x35c06f(0x2be)](),this[_0x35c06f(0x111)][_0x35c06f(0x1c1)](_0x1530a4)),this[_0x35c06f(0x1ac)][_0x35c06f(0x1c1)](_0x1530a4),this['needSameDeleteModel']['forEach'](_0x401779=>{const _0x1c3a02=_0x35c06f;_0x401779[_0x1c3a02(0x28d)](_0x1530a4);});}['addCollectionByJSON'](_0x3ebde5,_0x309012,_0xa1bd29,_0x261748){const _0xbea482=_0x2b16d4;return this[_0xbea482(0xc9)](_0xa1bd29[_0xbea482(0x1bc)])['addCollectionByJSON'](_0x3ebde5,_0x309012,_0xa1bd29,_0x261748);}[_0x2b16d4(0x39d)](_0x20247f){const _0x32107f=_0x2b16d4;return this[_0x32107f(0xc9)](_0x20247f[_0x32107f(0x1bc)])[_0x32107f(0x39d)](_0x20247f);}[_0x2b16d4(0x265)](_0x2e3392,_0x2c92e9,_0x40658f){const _0x52b4dc=_0x2b16d4;this[_0x52b4dc(0xc9)](_0x40658f[_0x52b4dc(0x1bc)])[_0x52b4dc(0x265)](_0x2e3392,_0x2c92e9,_0x40658f);}['removeDataField'](_0x26a313,_0x42541a){this['getDataFieldManager'](_0x26a313)['deleteDataField'](_0x42541a);}['removeCollections'](_0x1c0a19,_0x3f9896){const _0x534be4=_0x2b16d4;this[_0x534be4(0xc9)](_0x1c0a19)['removeCollectionImp'](_0x3f9896);}[_0x2b16d4(0x231)](_0x2ea26d,_0x1df63d){const _0x312483=_0x2b16d4;var _0x4e7f3f;return(_0x4e7f3f=this['_model'][_0x312483(0x1a9)](_0x2ea26d))==null?void 0x0:_0x4e7f3f['get'](_0x1df63d);}['getTargetByPivotId'](_0x59ebf1){const _0x221f24=_0x2b16d4;for(const [_0x15655a,_0x5bf62c]of this[_0x221f24(0xed)][_0x221f24(0x2d8)]())for(const [_0x5ea5ce,_0x38b3b5]of _0x5bf62c[_0x221f24(0x2d8)]())if(_0x38b3b5[_0x221f24(0x105)](_0x59ebf1))return{'unitId':_0x15655a,'subUnitId':_0x5ea5ce};return null;}['sideEffectUpdateWorkerCache'](_0x27dfc4,_0x569de4,_0x254bd0,_0x2f8474){const _0x51a7c0=_0x2b16d4,_0x3232ef=this[_0x51a7c0(0x2cd)](_0x27dfc4,_0x569de4);_0x2f8474?_0x3232ef[_0x51a7c0(0x28f)](_0x254bd0,_0x2f8474):_0x3232ef[_0x51a7c0(0x1c1)](_0x254bd0),this[_0x51a7c0(0xb3)][_0x51a7c0(0x23b)]({'unitId':_0x27dfc4,'subUnitId':_0x569de4,'pivotTableId':_0x254bd0});}['dispose'](){super['dispose']();}[_0x2b16d4(0xfa)](_0x161e67,_0x366359,_0x80a953){const _0x50305c=_0x2b16d4;var _0x164425,_0x11f6e3;const _0x27ff76=(_0x11f6e3=(_0x164425=this[_0x50305c(0x1ac)][_0x50305c(0x1a9)](_0x161e67))==null?void 0x0:_0x164425[_0x50305c(0x1a9)](_0x366359))==null?void 0x0:_0x11f6e3[_0x50305c(0x1a9)](_0x80a953);return _0x27ff76||null;}[_0x2b16d4(0x224)](_0x43df31){const _0x3994ae=_0x2b16d4;this[_0x3994ae(0x236)](_0x43df31);}['updateDirtyPivotTable'](_0x2b80f7){const _0x2461fe=_0x2b16d4,{token:_0x139884,unitId:_0x2ad03c,subUnitId:_0x239ebc}=_0x2b80f7,_0x2e00a5=_0x2ad03c+'-'+_0x239ebc+'-'+_0x139884;this[_0x2461fe(0x263)]['get'](_0x2e00a5)&&clearTimeout(this[_0x2461fe(0x263)]['get'](_0x2e00a5));const _0x9c413a=setTimeout(()=>{const _0x24a2a5=_0x2461fe;this[_0x24a2a5(0x17c)](_0x2b80f7),this['_queryingMap'][_0x24a2a5(0x1c1)](_0x2e00a5);},_0x167bb3);this[_0x2461fe(0x263)][_0x2461fe(0x28f)](_0x2e00a5,_0x9c413a);}['queryDirtyPivotTable'](_0x513d5f){const _0x23a9bd=_0x2b16d4,{unitId:_0x547ce7,subUnitId:_0x50518c,token:_0xfffd8f,type:_0xec0363,pivotConfig:_0x6aca46}=_0x513d5f,_0x381e33=this[_0x23a9bd(0x185)](_0xfffd8f),_0x4d32e3=_0x381e33==null?void 0x0:_0x381e33[_0x23a9bd(0x341)](),_0x35ab78=_0x6aca46!=null?_0x6aca46:this['getPivotTableConfig'](_0x547ce7,_0x50518c,_0xfffd8f);_0x35ab78&&(_0x35ab78[_0x23a9bd(0xa8)]=!!(_0x381e33!=null&&_0x381e33[_0x23a9bd(0xa8)]())),(_0x4d32e3||_0xec0363===_0xa5664b['Delete'])&&this[_0x23a9bd(0xa3)](_0x547ce7,_0x50518c,_0xec0363,_0xfffd8f,_0x4d32e3,_0x35ab78,this['getDataFieldManager'](_0x547ce7)[_0x23a9bd(0x316)]());}[_0x2b16d4(0x316)](_0x16a08a){const _0x3777d6=_0x2b16d4,_0x419f56={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x16a08a)&&(_0x419f56[_0x3777d6(0x1e1)][_0x16a08a]=this['getDataFieldManager'](_0x16a08a)['toJSON']()),this[_0x3777d6(0xed)][_0x3777d6(0x1a9)](_0x16a08a)){_0x419f56[_0x3777d6(0x15e)][_0x16a08a]={};const _0x3a9422=this[_0x3777d6(0xed)][_0x3777d6(0x1a9)](_0x16a08a);_0x3a9422!=null&&_0x3a9422[_0x3777d6(0x1a5)]&&[..._0x3a9422[_0x3777d6(0x12a)]()][_0x3777d6(0xff)](_0x4494e3=>{const _0xc14ca6=_0x3777d6,_0x216703=_0x3a9422[_0xc14ca6(0x1a9)](_0x4494e3);_0x216703!=null&&_0x216703[_0xc14ca6(0x1a5)]&&(_0x419f56['pivotTableConfigs'][_0x16a08a][_0x4494e3]={},[..._0x216703[_0xc14ca6(0x12a)]()][_0xc14ca6(0xff)](_0x3ed6ae=>{const _0x30b969=_0xc14ca6,_0x55bfa2=_0x216703[_0x30b969(0x1a9)](_0x3ed6ae);_0x55bfa2&&(_0x419f56[_0x30b969(0x15e)][_0x16a08a][_0x4494e3][_0x3ed6ae]=_0x55bfa2);}));});}return _0x419f56;}['fromJSON'](_0x2c5350){const _0x318564=_0x2b16d4;var _0x23aadb;const {dataFieldManagerConfig:_0x41ae3,pivotTableConfigs:_0x10a81b}=_0x2c5350;_0x41ae3&&Object[_0x318564(0x12a)](_0x41ae3)[_0x318564(0xff)](_0x23a604=>{const _0x7df962=_0x318564;this[_0x7df962(0xc9)](_0x23a604)[_0x7df962(0x39c)](_0x41ae3[_0x23a604]);});const _0xa70be5=[];if(_0x10a81b){const _0x31f5d3=(_0x23aadb=this['_injector'][_0x318564(0x1a9)](_0x282877[_0x318564(0xc1)])['getConfig'](_0x5b0681[_0x318564(0x1e4)]))!=null?_0x23aadb:{},{ls:_0x54ba54,pbk:_0x1f72c1}=_0x31f5d3,_0x2135e3=_0x9a8ebd(_0x1e520c,_0x54ba54,_0x1f72c1)[_0x318564(0x208)];Object[_0x318564(0x12a)](_0x10a81b)[_0x318564(0xff)](_0x5f57a3=>{const _0x5b09a5=_0x318564;let _0x3d6e53=0x0;const _0x5e4cdf=_0x10a81b[_0x5f57a3];Object[_0x5b09a5(0x12a)](_0x5e4cdf)['forEach'](_0x143a74=>{const _0x4410bc=_0x5e4cdf[_0x143a74];Object['keys'](_0x4410bc)['forEach'](_0x2cef01=>{const _0x3c5699=_0x4298,_0x4d552c=_0x4410bc[_0x2cef01];if(_0x4d552c){if(_0x3d6e53>=_0x2135e3)return;_0x3d6e53++;const _0x19d2af=this[_0x3c5699(0xc9)](_0x5f57a3),_0x1a7c45=_0x19d2af[_0x3c5699(0x256)][_0x2cef01],_0x12b7b8=_0x1a7c45[_0x3c5699(0x1b3)]();let _0x124606=0x0;const _0x41881d=[];for(const _0x3410fe of _0x12b7b8){const _0x5b77bc=_0x1a7c45[_0x3c5699(0x158)](_0x3410fe);if(_0x3e0737[_0x3c5699(0x1b7)](_0x5b77bc)){const _0x17d890=_0x5b77bc[_0x3c5699(0x295)](),_0x183351=_0x1a7c45[_0x3c5699(0x158)](_0x17d890);_0x183351&&_0x41881d[_0x3c5699(0x338)]([_0x5b77bc,_0x183351]);continue;}_0x19d2af[_0x3c5699(0x2c9)](_0x3410fe,_0x4d552c[_0x3c5699(0x2ab)],_0x124606),_0x124606++;}_0x41881d['forEach'](([_0x5e4cec,_0x5e692c])=>{const _0xd54208=_0x3c5699;_0x5e4cec[_0xd54208(0xd6)](_0x5e692c);});const _0x174b7f=new _0x3e0737[(_0x3c5699(0x277))](_0x1a7c45);_0x174b7f[_0x3c5699(0x39c)](_0x4d552c[_0x3c5699(0x348)]),this[_0x3c5699(0x11d)](_0x5f57a3,_0x143a74,_0x2cef01,_0x174b7f,_0x4d552c);const _0x2b5d59=_0x174b7f[_0x3c5699(0x341)]();_0xa70be5[_0x3c5699(0x338)]({'unitId':_0x5f57a3,'subUnitId':_0x143a74,'pivotTableId':_0x2cef01,'view':_0x2b5d59[_0x3c5699(0x316)](),'pivotConfig':_0x4d552c,'type':_0xa5664b[_0x3c5699(0x28e)]});const _0x41d6bc=!!_0x174b7f[_0x3c5699(0xa8)](),_0x48667a={'view':_0x2b5d59,'pivotTableId':_0x2cef01,'textInfo':this[_0x3c5699(0x123)](),'isEmpty':_0x41d6bc,'targetCellInfo':_0x4d552c[_0x3c5699(0x360)]};this[_0x3c5699(0x1ff)](_0x48667a,!0x1);}});});});}_0x41ae3&&Object[_0x318564(0x12a)](_0x41ae3)[_0x318564(0xff)](_0x22d533=>{const _0x43333b=_0x318564,_0xc68564=this[_0x43333b(0xc9)](_0x22d533);this[_0x43333b(0x268)][_0x43333b(0x23b)](_0xc68564[_0x43333b(0x256)]);}),this[_0x318564(0x2e0)]['executeCommand'](_0x22de79['id'],{'batch':_0xa70be5,'collectionConfig':_0x41ae3},{'onlyLocal':!0x0});}[_0x2b16d4(0x1a2)](){const _0x24db55=_0x2b16d4;this['disposeWithMe'](this[_0x24db55(0x30e)][_0x24db55(0x9f)]({'toJson':_0x467879=>JSON[_0x24db55(0x11f)](this[_0x24db55(0x316)](_0x467879)),'parseJson':_0x1b2224=>{const _0x6ebfcb=_0x24db55;if(!_0x1b2224)return{};try{return JSON[_0x6ebfcb(0x1ed)](_0x1b2224);}catch{return{};}},'businesses':[_0x282877[_0x24db55(0x20b)][_0x24db55(0x328)]],'pluginName':_0x2734d4,'onLoad':(_0x12aab0,_0x3c754e)=>{const _0x2d920c=_0x24db55;this[_0x2d920c(0x39c)](_0x3c754e);},'onUnLoad':_0x210037=>{const _0x1db5ba=_0x24db55;this[_0x1db5ba(0x28d)](_0x210037);}}));}},_0x24d96c[_0x2b16d4(0x1b4)]=_0x1e132e([_0x5aa427(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x5aa427(0x1,_0x282877[_0x2b16d4(0x165)]),_0x5aa427(0x2,_0x282877['Inject'](_0x282877['LifecycleService'])),_0x5aa427(0x3,_0x282877[_0x2b16d4(0x240)]),_0x5aa427(0x4,_0x282877[_0x2b16d4(0x120)](_0x282877['IResourceManagerService']))],_0x24d96c[_0x2b16d4(0x1b4)]);const _0x5051e7={0x0:{0x0:{'v':_0x2b16d4(0x179),'s':_0x421682}},0x2:{0x1:{'v':'','s':_0x421682},0x2:{'v':'','s':_0x421682},0x3:{'v':_0x2b16d4(0x2a2),'s':_0x421682},0x4:{'v':'','s':_0x421682},0x5:{'v':'','s':_0x421682}},0x3:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x4:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x5:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x6:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x7:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x8:{0x0:{'v':'row','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':_0x2b16d4(0x369),'s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0x9:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xa:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xb:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xc:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}},0xd:{0x0:{'v':'','s':_0x421682},0x1:{'v':'','s':_0x458c13},0x2:{'v':'','s':_0x458c13},0x3:{'v':'','s':_0x458c13},0x4:{'v':'','s':_0x458c13},0x5:{'v':'','s':_0x458c13}}},_0xc9fbe4={'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':[]},_0x943949=(_0x32f23a,_0x554042)=>{const _0x1557cd=_0x2b16d4,_0x39489d=new _0x282877[(_0x1557cd(0x184))](),_0x2494d1=new _0x282877['ObjectMatrix'](_0x5051e7),{row:_0x4116e4,col:_0x383a84}=_0x554042;_0x2494d1[_0x1557cd(0x308)]((_0x5e5a86,_0x50c639,_0x547ed4)=>{const _0x481f73=_0x1557cd;let _0x5e34db='';_0x547ed4['v']===_0x481f73(0x179)?_0x5e34db=_0x32f23a['filter']:_0x547ed4['v']===_0x481f73(0x303)?_0x5e34db=_0x32f23a['row']:_0x547ed4['v']===_0x481f73(0x2a2)?_0x5e34db=_0x32f23a[_0x481f73(0x2a2)]:_0x547ed4['v']===_0x481f73(0x369)&&(_0x5e34db=_0x32f23a['values']),_0x39489d['setValue'](_0x5e5a86+_0x4116e4,_0x50c639+_0x383a84,{..._0x547ed4,'v':_0x5e34db});});const _0x34336c=_0x282877[_0x1557cd(0x325)]['deepClone'](_0xc9fbe4);return Object[_0x1557cd(0x12a)](_0xc9fbe4)[_0x1557cd(0xff)](_0x455bd9=>{const _0x1d7c3e=_0x1557cd;_0x34336c[_0x455bd9]=_0xc9fbe4[_0x455bd9]['map'](_0x1387bb=>({..._0x1387bb,'startRow':_0x1387bb[_0x1d7c3e(0x19f)]+_0x4116e4,'endRow':_0x1387bb[_0x1d7c3e(0x39e)]+_0x4116e4,'startColumn':_0x1387bb[_0x1d7c3e(0x254)]+_0x383a84,'endColumn':_0x1387bb[_0x1d7c3e(0x244)]+_0x383a84}));}),{'matrixCache':_0x39489d,'rangesCache':_0x34336c};};function _0x4ce654(_0x49e5ab,_0x1dd64c){const _0x102cda=_0x2b16d4;let _0x2fc78d='';const _0x25ae8c=this[_0x102cda(0x123)]();switch(_0x1dd64c){case _0x3e0737[_0x102cda(0x2c6)]['average']:_0x2fc78d=_0x25ae8c['sheets-pivot.averageName']+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['count']:_0x2fc78d=_0x25ae8c['sheets-pivot.countName']+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['countNums']:_0x2fc78d=_0x25ae8c[_0x102cda(0x33f)]+_0x49e5ab;break;case _0x3e0737['PivotSubtotalTypeEnum'][_0x102cda(0x24d)]:_0x2fc78d=_0x25ae8c['sheets-pivot.maxName']+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['min']:_0x2fc78d=_0x25ae8c[_0x102cda(0x1b6)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['product']:_0x2fc78d=_0x25ae8c[_0x102cda(0x1f9)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)][_0x102cda(0x271)]:_0x2fc78d=_0x25ae8c[_0x102cda(0xc3)]+_0x49e5ab;break;case _0x3e0737['PivotSubtotalTypeEnum'][_0x102cda(0x108)]:_0x2fc78d=_0x25ae8c[_0x102cda(0x189)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)][_0x102cda(0x35a)]:_0x2fc78d=_0x25ae8c[_0x102cda(0x29b)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)]['var']:_0x2fc78d=_0x25ae8c[_0x102cda(0xb6)]+_0x49e5ab;break;case _0x3e0737[_0x102cda(0x2c6)][_0x102cda(0x1d7)]:_0x2fc78d=_0x25ae8c[_0x102cda(0x2f0)]+_0x49e5ab;break;default:_0x2fc78d=_0x49e5ab;break;}return _0x2fc78d;}function _0x5e8aa7(_0x2bf791,_0x310adc,_0x17c3f5,_0x26ce2f,_0x3e54c8){const _0x153543=_0x2b16d4;var _0x2dc48f,_0x161910,_0xc55511,_0x249a61,_0x49282a;const _0x252b51=_0x282877[_0x153543(0x29f)](_0x2bf791,_0x310adc),{rangesInfo:_0x222a39,areaInfo:_0x1fcae5,headerMap:_0x5c6345}=_0x3e54c8;if(!_0x222a39||!_0x1fcae5||!_0x5c6345)return;const _0x133e60=Object[_0x153543(0x12a)](_0x222a39)[_0x153543(0x1a6)](_0x5d117d=>_0x222a39[_0x5d117d][_0x153543(0x151)](_0x34a73d=>_0x282877[_0x153543(0x2e7)][_0x153543(0x235)](_0x34a73d,_0x252b51))),_0xe42c94=_0x1fcae5;let _0x22873f,_0x948763,_0x51e67f;if(_0x133e60===_0x153543(0x196))_0x22873f=(_0x2dc48f=_0xe42c94==null?void 0x0:_0xe42c94[_0x153543(0x200)])==null?void 0x0:_0x2dc48f[_0x2bf791],_0x948763=(_0x161910=_0x5c6345==null?void 0x0:_0x5c6345[_0x153543(0xd8)])==null?void 0x0:_0x161910[_0x310adc],_0x51e67f=_0x948763==null?void 0x0:_0x948763['tableFieldId'];else{if(_0x133e60==='colRanges')_0x22873f=(_0xc55511=_0xe42c94==null?void 0x0:_0xe42c94[_0x153543(0x27a)])==null?void 0x0:_0xc55511[_0x310adc],_0x948763=(_0x249a61=_0x5c6345[_0x153543(0x174)])==null?void 0x0:_0x249a61[_0x2bf791+0x1+_0x310adc-_0x222a39[_0x153543(0x1b0)][0x0][_0x153543(0x254)]],_0x51e67f=_0x948763==null?void 0x0:_0x948763[_0x153543(0x19a)];else{if(_0x133e60==='cornerRanges')_0x22873f=(_0x49282a=_0xe42c94==null?void 0x0:_0xe42c94[_0x153543(0x17e)])==null?void 0x0:_0x49282a[_0x310adc],_0x51e67f=_0x22873f==null?void 0x0:_0x22873f['tableFieldId'];else{if(_0x133e60===_0x153543(0x166)){const _0xa2372=_0x17c3f5==null?void 0x0:_0x17c3f5['fi'];_0xa2372!==void 0x0&&(_0x51e67f=_0x26ce2f['getFilterFieldIdByIndex'](_0xa2372));}}}}return{'filterId':_0x51e67f,'info':_0x22873f,'data':_0x17c3f5,'headerInfo':_0x948763};}function _0x2e8fa2(_0x11a01a,_0x44faf9,_0x2ce770){const _0x22fa73=_0x2b16d4,_0x59d756=_0x11a01a[_0x22fa73(0x381)],_0x4bfc83=_0x59d756['getFieldIds'](),_0x3f9993=new Set();_0x11a01a['iterateField'](_0x5afda2=>{const _0x381d20=_0x22fa73;_0x3f9993['add'](_0x5afda2[_0x381d20(0x1d8)]);});const _0x56bb3c=_0x4bfc83[_0x22fa73(0x279)](_0x126c3c=>{const _0x302d8d=_0x22fa73,_0x111196=_0x59d756[_0x302d8d(0x158)](_0x126c3c);return{'checked':_0x3f9993[_0x302d8d(0x105)](_0x126c3c),'dataFieldId':_0x111196['id'],'id':_0x111196['id'],'name':_0x59d756[_0x302d8d(0x115)](_0x111196['id']),'type':_0x111196['getFieldDataType'](),'pivotTableId':_0x44faf9};}),_0x33f005=[];_0x11a01a['iterateFieldByArea'](_0x3e0737['PivotTableFiledAreaEnum']['Row'],_0x3b258d=>{const _0x41c6c6=_0x22fa73;_0x33f005[_0x41c6c6(0x338)]({'dataFieldId':_0x3b258d[_0x41c6c6(0x1d8)],'tableFieldId':_0x3b258d[_0x41c6c6(0x149)](),'displayName':_0x3b258d['getDisplayName']()});});const _0x559f32=[];_0x11a01a[_0x22fa73(0xf3)](_0x3e0737[_0x22fa73(0x372)][_0x22fa73(0x211)],_0x582e19=>{const _0x4e143e=_0x22fa73;_0x559f32[_0x4e143e(0x338)]({'dataFieldId':_0x582e19[_0x4e143e(0x1d8)],'tableFieldId':_0x582e19[_0x4e143e(0x149)](),'displayName':_0x582e19['getDisplayName']()});});const _0x12ca0a=[];if(_0x11a01a['iterateFieldByArea'](_0x3e0737['PivotTableFiledAreaEnum'][_0x22fa73(0xbb)],_0x313a54=>{const _0x3fd5b7=_0x22fa73;_0x12ca0a['push']({'dataFieldId':_0x313a54[_0x3fd5b7(0x1d8)],'tableFieldId':_0x313a54[_0x3fd5b7(0x149)](),'displayName':_0x313a54[_0x3fd5b7(0x115)](),'format':_0x313a54['getFormat'](),'subTotalType':_0x313a54['getSubtotal']()});}),_0x12ca0a['length']>0x1){const _0x39cd3f=_0x11a01a[_0x22fa73(0x20c)]();(_0x11a01a['isColMultiMeasure']()?_0x559f32:_0x33f005)['splice'](_0x39cd3f,0x0,{'dataFieldId':'','tableFieldId':_0x22fa73(0x34d),'displayName':_0x22fa73(0x347)});}const _0x51c138=[];_0x11a01a[_0x22fa73(0xf3)](_0x3e0737[_0x22fa73(0x372)][_0x22fa73(0x395)],_0x51098b=>{const _0x140f37=_0x22fa73;_0x51c138[_0x140f37(0x338)]({'dataFieldId':_0x51098b[_0x140f37(0x1d8)],'tableFieldId':_0x51098b['getId'](),'displayName':_0x51098b[_0x140f37(0x115)]()});});const _0x1a5fb2=_0x2ce770['sourceRangeInfo'];return{'sourceList':_0x56bb3c,'sourceRange':_0x1a5fb2,'rowFields':_0x33f005,'columnFields':_0x559f32,'valueFields':_0x12ca0a,'filterFields':_0x51c138,'positionInfo':_0x2ce770[_0x22fa73(0x360)]};}function _0x1727a7(_0x45d5c1,_0x57986f,_0x4adfac='',_0x132280={}){const _0x1eaf5b=_0x2b16d4,_0x26865e=_0x45d5c1[_0x1eaf5b(0x1a9)](_0x282877[_0x1eaf5b(0x2cb)]);for(const _0x33bc66 in _0x57986f)if(Object['prototype']['hasOwnProperty'][_0x1eaf5b(0x1dc)](_0x57986f,_0x33bc66)){const _0x8e7e4a=_0x4adfac?_0x4adfac+'.'+_0x33bc66:_0x33bc66;typeof _0x57986f[_0x33bc66]=='object'&&_0x57986f[_0x33bc66]!==null&&!Array[_0x1eaf5b(0x3a0)](_0x57986f[_0x33bc66])?_0x1727a7(_0x45d5c1,_0x57986f[_0x33bc66],_0x8e7e4a,_0x132280):_0x132280[_0x8e7e4a]=_0x26865e['t'](_0x8e7e4a);}return _0x132280;}const _0x56a3ee=_0x39eb13=>{const _0x2a631d=_0x2b16d4;if(!_0x39eb13)return[];const {rowRanges:_0x110f77,colRanges:_0x253f10,cornerRanges:_0x24b1ca,dataRanges:_0x5dffd4,pageRanges:_0x26c051}=_0x39eb13,_0x39e894=[..._0x253f10,..._0x110f77,..._0x5dffd4,..._0x24b1ca][_0x2a631d(0x179)](_0xe8c25a=>_0xe8c25a[_0x2a631d(0x19f)]>=0x0&&_0xe8c25a[_0x2a631d(0x254)]>=0x0&&_0xe8c25a[_0x2a631d(0x39e)]>=0x0&&_0xe8c25a[_0x2a631d(0x244)]>=0x0);let _0x23c14c=Number[_0x2a631d(0x116)],_0x2573b2=Number[_0x2a631d(0x31e)],_0x4dea4e=Number[_0x2a631d(0x116)],_0x194641=Number[_0x2a631d(0x31e)];for(let _0x36c57c=0x0;_0x36c57c<_0x39e894[_0x2a631d(0x27b)];_0x36c57c++)_0x23c14c=Math['min'](_0x23c14c,_0x39e894[_0x36c57c][_0x2a631d(0x19f)]),_0x2573b2=Math[_0x2a631d(0x24d)](_0x2573b2,_0x39e894[_0x36c57c][_0x2a631d(0x39e)]),_0x4dea4e=Math[_0x2a631d(0x3a6)](_0x4dea4e,_0x39e894[_0x36c57c]['startColumn']),_0x194641=Math[_0x2a631d(0x24d)](_0x194641,_0x39e894[_0x36c57c][_0x2a631d(0x244)]);return[..._0x26c051,{'startRow':_0x23c14c,'endRow':_0x2573b2,'startColumn':_0x4dea4e,'endColumn':_0x194641}];};function _0x458a75(_0x573f86,_0x57b36c){const _0x4f6dcd=_0x2b16d4,_0xacabf9=_0x57b36c['params']['drillDown'],{pivotTableId:_0x51ed2a,unitId:_0xbee441,subUnitId:_0x5e082b}=_0x57b36c;if(!_0xacabf9)return;const _0x274ce0=_0x573f86[_0x4f6dcd(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),_0x547583=_0x274ce0['getPivotTableInstance'](_0x51ed2a),_0x1efe3c=_0x274ce0[_0x4f6dcd(0x13c)](_0xbee441,_0x5e082b,_0x51ed2a);if(!_0x547583||!_0x1efe3c)return;const _0x45a22a=_0x547583[_0x4f6dcd(0x2d4)](_0xacabf9[_0x4f6dcd(0x288)]);if(!(_0x45a22a!=null&&_0x45a22a[_0x4f6dcd(0x27b)]))return;const _0x531a03=_0x1efe3c[_0x4f6dcd(0x2ab)],{unitId:_0x4af522,subUnitId:_0x2ccb95,range:_0x700639}=_0x531a03;let _0x5bcc96=0x0;const _0x474342=_0x547583[_0x4f6dcd(0x381)][_0x4f6dcd(0x1b3)]()[_0x4f6dcd(0x2bd)]((_0x2cf26d,_0x17e329)=>{const _0x33b51f=_0x4f6dcd;var _0x183736;const _0x9a71f1=(_0x183736=_0x547583['getDataFieldByDataFieldId'](_0x17e329))==null?void 0x0:_0x183736[_0x33b51f(0x30d)]();return _0x9a71f1&&(_0x2cf26d[String(_0x5bcc96)]=_0x9a71f1),_0x5bcc96++,_0x2cf26d;},{});return{'indexes':_0x45a22a,'range':_0x700639,'sourceUnitId':_0x4af522,'sourceSubUnitId':_0x2ccb95,'formatMap':_0x474342};}function _0x49a50c(_0x5b90d5,_0x53c24c){const _0x50854f=_0x2b16d4;if(!_0x5b90d5||!_0x53c24c)return!0x0;const _0x2f10c5=_0x5b0681[_0x50854f(0x153)](_0x402916,_0x3caff5),_0x3dfc27=new Function(_0x50854f(0x11a)+_0x2f10c5)()(_0x5b90d5,_0x53c24c)['message'],_0x49a083=_0x5b0681[_0x50854f(0x304)](_0x3dfc27,'sf',_0x12de9f);return!((_0x3dfc27==null?void 0x0:_0x3dfc27['rt'])===_0x5b0681[_0x50854f(0x1c7)]['NO_COMMERCIAL']&&!_0x49a083);}function _0x9a8ebd(_0x4c9d96,_0x2966da,_0x240bab){const _0x18dcfd=_0x2b16d4,_0x423bb0={'count':_0x4c9d96,'timeValid':!0x1};if(!_0x2966da||!_0x240bab)return _0x423bb0;const _0x1c3f66=_0x5b0681['unshiftString'](_0x402916,_0x3caff5),_0x5f16e9=new Function(_0x18dcfd(0x11a)+_0x1c3f66)()(_0x2966da,_0x240bab);if(_0x5f16e9!=null&&_0x5f16e9['valid']){const _0x27b1e6=_0x5f16e9['message'],_0x3ae8ab=_0x5b0681[_0x18dcfd(0x304)](_0x27b1e6,'sf',_0x12de9f);return{'count':_0x5b0681[_0x18dcfd(0x219)](_0x27b1e6,_0x3ae8ab,'ptn',_0x4c9d96,_0x4c9d96,0x0),'timeValid':_0x3ae8ab};}return _0x423bb0;}function _0x1fac4a(_0x5c97a4,_0x52f993,_0x2a778f,_0x236dfe){const _0x43ed31=_0x2b16d4,_0x22cda8={'subUnitId':_0x2a778f,'unitId':_0x52f993,'cellValue':_0x5698b3[_0x43ed31(0x10c)](_0x236dfe)},_0x3fe01d=_0x5698b3['SetRangeValuesUndoMutationFactory'](_0x5c97a4,_0x22cda8);let _0x2c7605=!0x1;return new _0x282877[(_0x43ed31(0x184))](_0x3fe01d['cellValue'])[_0x43ed31(0x308)]((_0x4b5c5a,_0x41612f,_0x29d88e)=>{const _0x4023c5=_0x43ed31;if(!_0x2c7605&&_0x29d88e&&(_0x29d88e[_0x4023c5(0x385)]||_0x29d88e['f']||_0x29d88e['p']||_0x29d88e['s']||_0x29d88e['si']||_0x29d88e['t']||_0x29d88e['v']))return _0x2c7605=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x5698b3[_0x43ed31(0x157)]['id'],'params':_0x3fe01d},'setRangeValueRedoMutation':{'id':_0x5698b3[_0x43ed31(0x157)]['id'],'params':_0x22cda8},'shouldClear':_0x2c7605};}function _0x4bbd29(_0x4cfeff){const {row:_0x516af7,col:_0x405305}=_0x4cfeff,_0x581e2f={'startRow':_0x516af7,'endRow':_0x516af7,'startColumn':_0x405305,'endColumn':_0x405305},_0x4415c0={'startRow':_0x516af7+0x2,'endRow':_0x516af7+0xe,'startColumn':_0x405305,'endColumn':_0x405305+0x6};return[_0x581e2f,_0x4415c0];}function _0x111a06(_0x3c8dae,_0x213e70,_0x9ea2b3){const _0x27e5ce=_0x2b16d4,{cornerView:_0x4b1b63,rowView:_0x384785,colView:_0x116dfc,pageView:_0x134fba}=_0x3c8dae,{row:_0x1db0fb,col:_0x42dccd}=_0x213e70;if(_0x9ea2b3)return{'rowCount':_0x25665a+_0x1db0fb,'colCount':_0x14a81c+_0x42dccd};const _0x2a8bc6=_0x134fba[_0x27e5ce(0xcf)]>-0x1?_0x134fba['lastRow']+0x1:0x0,_0x34b57a=_0x134fba[_0x27e5ce(0x137)]>-0x1?_0x134fba[_0x27e5ce(0x137)]:0x0,_0x2a2fa2=_0x1db0fb+_0x2a8bc6+(_0x2a8bc6?0x1:0x0)+_0x4b1b63['rowCount']+_0x384785[_0x27e5ce(0x2cc)],_0x26c697=_0x42dccd+_0x34b57a,_0x5806cb=_0x42dccd+_0x4b1b63[_0x27e5ce(0x2eb)]+_0x116dfc[_0x27e5ce(0x2eb)],_0xca6301=Math[_0x27e5ce(0x24d)](_0x26c697,_0x5806cb);return{'rowCount':_0x2a2fa2,'colCount':_0xca6301};}function _0x43927d(_0x6c2d3e,_0x166643,_0x1da3b4,_0x2b0ab2){const _0x911248=_0x2b16d4,{row:_0x5c77f6,col:_0x196841,unitId:_0x4c9f00,subUnitId:_0x1ebaba}=_0x1da3b4,_0x25927e=_0x111a06(_0x166643,{'row':_0x5c77f6,'col':_0x196841},_0x2b0ab2),_0x514aa0=_0x6c2d3e[_0x911248(0x1a9)](_0x282877['IUniverInstanceService']),_0x42bd77=_0x5698b3['getSheetCommandTarget'](_0x514aa0,{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba}),_0x5e574f=[],_0x1a1a36=[];if(!_0x42bd77)return{'undos':_0x1a1a36,'redos':_0x5e574f};const {worksheet:_0x2bb518}=_0x42bd77,_0x225f56=_0x2bb518[_0x911248(0x2d2)](),_0x59c1a9=_0x2bb518[_0x911248(0x246)]();return _0x225f56<_0x25927e[_0x911248(0x2cc)]&&(_0x5e574f['push']({'id':_0x5698b3[_0x911248(0x270)]['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':_0x225f56,'endRow':_0x25927e[_0x911248(0x2cc)]-0x1,'startColumn':0x0,'endColumn':_0x59c1a9-0x1}}}),_0x1a1a36[_0x911248(0x338)]({'id':_0x5698b3['RemoveRowMutation']['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':_0x225f56,'endRow':_0x25927e['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x59c1a9-0x1}}})),_0x59c1a9<_0x25927e[_0x911248(0x2eb)]&&(_0x5e574f[_0x911248(0x338)]({'id':_0x5698b3[_0x911248(0x138)]['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':0x0,'endRow':_0x225f56-0x1,'startColumn':_0x59c1a9,'endColumn':_0x25927e[_0x911248(0x2eb)]-0x1}}}),_0x1a1a36[_0x911248(0x338)]({'id':_0x5698b3['RemoveColMutation']['id'],'params':{'unitId':_0x4c9f00,'subUnitId':_0x1ebaba,'range':{'startRow':0x0,'endRow':_0x225f56-0x1,'startColumn':_0x59c1a9,'endColumn':_0x25927e[_0x911248(0x2eb)]-0x1}}})),{'undos':_0x1a1a36,'redos':_0x5e574f};}function _0x5366c8(_0xd996d9){const _0x3c05c7=_0x2b16d4;let _0x329f66=0x0;for(let _0xa02ed4=0x0;_0xa02ed4<_0xd996d9[_0x3c05c7(0x27b)];_0xa02ed4++){const _0x4358ca=_0xd996d9[_0x3c05c7(0x1b1)](_0xa02ed4);_0x4358ca>=0x4e00&&_0x4358ca<=0x9fff||_0x4358ca>=0x3000&&_0x4358ca<=0x303f||_0x4358ca>=0xff00&&_0x4358ca<=0xffef?_0x329f66+=0x2:_0x329f66+=0x1;}return _0x329f66;}function _0x52c202(_0x1bad88,_0x3a139e,_0x2d5e98,_0x24027c){const _0x55c9b2=_0x2b16d4;var _0x1882de,_0x38c2c9,_0x314508,_0x3cee67;const {rowCount:_0x595130,colCount:_0x3dc4ae,headerMap:_0xbdb8ff}=_0x1bad88,_0x2fc6fc=0x64,_0xdc9bb6=Math['min'](_0x595130,_0x2fc6fc),_0xce9c97=Math['min'](_0x3dc4ae,_0x2fc6fc);let _0x5a2431='',_0x474829=0x0;for(let _0x304a36=0x0;_0x304a36<_0xdc9bb6;_0x304a36++)for(let _0x960f60=0x0;_0x960f60<_0xce9c97;_0x960f60++){const _0x5db8f4={...(_0x38c2c9=(_0x1882de=_0x1bad88['data'])==null?void 0x0:_0x1882de[_0x304a36])==null?void 0x0:_0x38c2c9[_0x960f60]},_0x37ad2f=(_0x314508=_0xbdb8ff[_0x304a36])==null?void 0x0:_0x314508[_0x55c9b2(0x19a)],_0x40ac75=_0x24027c[_0x37ad2f];let _0x168e4e=_0x1bad88['getValue'](_0x304a36,_0x960f60);if(_0x5db8f4){const _0x525ebb=_0x2d5e98?_0x960f60===0x0&&((_0x3cee67=_0x1bad88[_0x55c9b2(0x106)](_0x960f60+0x1))==null?void 0x0:_0x3cee67['isValue']):!0x1;_0x168e4e=_0x22656d(_0x5db8f4,_0x525ebb,_0x40ac75,_0x3a139e);}if(_0x168e4e!==void 0x0){const _0x19d99d=_0x5366c8(String(_0x168e4e));_0x474829<_0x19d99d&&(_0x5a2431=String(_0x168e4e),_0x474829=_0x19d99d);}}return _0x5a2431;}function _0x2e7059(_0x584c33){const _0x25d021=_0x2b16d4,{rowCount:_0x20054f,colCount:_0x20e491}=_0x584c33;let _0x2fb567='',_0x133571=0x0;for(let _0x24e3f1=_0x20054f-0x1;_0x24e3f1>0x0&&_0x24e3f1>_0x20054f-0x3;_0x24e3f1--)for(let _0x2ed412=0x0;_0x2ed412<_0x20e491;_0x2ed412++){const _0x2a8c87=_0x584c33[_0x25d021(0x1e3)](_0x24e3f1,_0x2ed412);if(_0x2a8c87!==void 0x0){const _0x3c00c1=String(_0x2a8c87)[_0x25d021(0x27b)];_0x133571<_0x3c00c1&&(_0x2fb567=String(_0x2a8c87),_0x133571=_0x3c00c1);}}return _0x2fb567;}function _0x41cf33(_0x497035){const _0x275b5c=_0x2b16d4,{rowCount:_0x3a7eea,colCount:_0x26bdb3}=_0x497035;let _0x39f9a6='',_0x2ca297=0x0;for(let _0xb9dd59=0x0;_0xb9dd59<_0x3a7eea;_0xb9dd59++)for(let _0x1a17a7=0x0;_0x1a17a7<_0x26bdb3;_0x1a17a7++){const _0x47f53b=_0x497035[_0x275b5c(0x1e3)](_0xb9dd59,_0x1a17a7);if(_0x47f53b!==void 0x0){const _0x524d87=String(_0x47f53b)[_0x275b5c(0x27b)];_0x2ca297<_0x524d87&&(_0x39f9a6=String(_0x47f53b),_0x2ca297=_0x524d87);}}return _0x39f9a6;}function _0x47fec1(_0x4c322e,_0x199ed1){const _0x56f570=_0x2b16d4,{rowFields:_0x54e879,columnFields:_0x50c4d5,valueFields:_0x6a1d94,filterFields:_0x3fb694,dimension:_0xdc1bf9,measure:_0x437ea1}=_0x199ed1;for(const _0xa0e112 of _0x54e879){const _0x342a05=_0xdc1bf9[_0xa0e112];_0x342a05&&_0x4c322e['getDataFieldByDataFieldId'](_0x342a05['dataFieldId'])&&(_0x4c322e[_0x56f570(0x2ac)](_0x342a05[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)]['Row'],void 0x0,_0xa0e112),_0x342a05['displayName']&&_0x4c322e[_0x56f570(0x32b)](_0x342a05['id'],_0x342a05[_0x56f570(0x38c)]),_0x342a05[_0x56f570(0x227)]&&_0x4c322e['setSortInfo'](_0x342a05['id'],_0x342a05[_0x56f570(0x227)]),_0x342a05[_0x56f570(0x361)]&&_0x4c322e['setLabelFilterInfo'](_0x342a05['id'],_0x342a05['filterInfo']));}for(const _0x3c5654 of _0x50c4d5){const _0x3aef35=_0xdc1bf9[_0x3c5654];_0x3aef35&&_0x4c322e[_0x56f570(0xd0)](_0x3aef35[_0x56f570(0x1d8)])&&(_0x4c322e['addFieldWithSourceId'](_0x3aef35[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)][_0x56f570(0x211)],void 0x0,_0x3c5654),_0x3aef35[_0x56f570(0x227)]&&_0x4c322e[_0x56f570(0x399)](_0x3aef35['id'],_0x3aef35[_0x56f570(0x227)]),_0x3aef35[_0x56f570(0x361)]&&_0x4c322e['setLabelFilterInfo'](_0x3aef35['id'],_0x3aef35[_0x56f570(0x361)]),_0x3aef35['displayName']&&_0x4c322e[_0x56f570(0x32b)](_0x3aef35['id'],_0x3aef35['displayName']));}for(const _0x169347 of _0x3fb694){const _0x573454=_0xdc1bf9[_0x169347];_0x573454&&_0x4c322e[_0x56f570(0xd0)](_0x573454[_0x56f570(0x1d8)])&&(_0x4c322e[_0x56f570(0x2ac)](_0x573454[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)][_0x56f570(0x395)],void 0x0,_0x169347),_0x573454['sortInfo']&&_0x4c322e[_0x56f570(0x399)](_0x573454['id'],_0x573454[_0x56f570(0x227)]),_0x573454[_0x56f570(0x361)]&&_0x4c322e['setLabelFilterInfo'](_0x573454['id'],_0x573454['filterInfo']),_0x573454[_0x56f570(0x38c)]&&_0x4c322e['renameField'](_0x573454['id'],_0x573454[_0x56f570(0x38c)]));}for(const _0x58fbcb of _0x6a1d94){const _0x3efd56=_0x437ea1[_0x58fbcb];_0x3efd56&&_0x4c322e[_0x56f570(0xd0)](_0x3efd56[_0x56f570(0x1d8)])&&(_0x4c322e[_0x56f570(0x2ac)](_0x3efd56[_0x56f570(0x1d8)],_0x3e0737[_0x56f570(0x372)][_0x56f570(0xbb)],void 0x0,_0x58fbcb),_0x3efd56[_0x56f570(0x250)]!==void 0x0&&_0x4c322e['setSubtotalType'](_0x58fbcb,_0x3efd56[_0x56f570(0x250)]),_0x3efd56['format']&&_0x4c322e[_0x56f570(0x1e2)](_0x58fbcb,_0x3efd56[_0x56f570(0x251)]),_0x3efd56[_0x56f570(0x38c)]&&_0x4c322e['renameField'](_0x3efd56['id'],_0x3efd56[_0x56f570(0x38c)]));}const _0x6f20b2=_0x199ed1[_0x56f570(0x306)];for(const {fieldId:_0x264762,filterInfo:_0x260b7d}of _0x6f20b2)_0x4c322e[_0x56f570(0x2c8)](_0x264762,_0x260b7d);}function _0x2b026f(_0xe42df5,_0x1ea5e4){const _0x192e08=_0x2b16d4,_0x33284d=[];_0x1ea5e4===_0x3e0737[_0x192e08(0x372)]['Row']&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737[_0x192e08(0x372)][_0x192e08(0x2ef)],_0x4c2b07=>{const _0x37cec9=_0x192e08;_0x33284d['push'](_0x4c2b07[_0x37cec9(0x149)]());}),_0x1ea5e4===_0x3e0737[_0x192e08(0x372)][_0x192e08(0x211)]&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737['PivotTableFiledAreaEnum'][_0x192e08(0x211)],_0x859acb=>{const _0x5dc9f7=_0x192e08;_0x33284d[_0x5dc9f7(0x338)](_0x859acb[_0x5dc9f7(0x149)]());}),_0x1ea5e4===_0x3e0737['PivotTableFiledAreaEnum'][_0x192e08(0x395)]&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737[_0x192e08(0x372)]['Filter'],_0x62d044=>{const _0x47c342=_0x192e08;_0x33284d[_0x47c342(0x338)](_0x62d044[_0x47c342(0x149)]());}),_0x1ea5e4===_0x3e0737['PivotTableFiledAreaEnum'][_0x192e08(0xbb)]&&_0xe42df5[_0x192e08(0xf3)](_0x3e0737[_0x192e08(0x372)][_0x192e08(0xbb)],_0x4c1351=>{const _0x168244=_0x192e08;_0x33284d[_0x168244(0x338)](_0x4c1351['getId']());}),_0x1ea5e4===void 0x0&&_0xe42df5[_0x192e08(0x1b8)](_0x570f8b=>{const _0x196fcd=_0x192e08;_0x33284d[_0x196fcd(0x338)](_0x570f8b[_0x196fcd(0x149)]());});const _0x1e7fe6=_0x33284d[_0x192e08(0x27b)];for(let _0x19f257=_0x1e7fe6-0x1;_0x19f257>=0x0;_0x19f257--)_0xe42df5[_0x192e08(0x218)](_0x33284d[_0x19f257]);const _0x523a33=_0xe42df5[_0x192e08(0x2e9)]();for(const _0x59a734 in _0x523a33)_0xe42df5[_0x192e08(0x390)](_0x59a734);}function _0x4b5bca(_0x46977e,_0x4bbb99){const _0x4c1b2f=_0x2b16d4,_0x31539e=new Date(_0x3e0737[_0x4c1b2f(0x206)](_0x4bbb99)),_0x2b8817=new Date(_0x3e0737['excelDateToUnixMilliseconds'](_0x46977e)),_0x2f32e5=_0x31539e['getFullYear'](),_0x20ad0b=_0x2b8817[_0x4c1b2f(0x14c)](),_0x1ee2ba=_0x31539e[_0x4c1b2f(0x2e8)](),_0x5b27a0=_0x2b8817[_0x4c1b2f(0x2e8)](),_0x1ee5e5=_0x31539e['getDate'](),_0x1c6d8e=_0x2b8817[_0x4c1b2f(0x15b)](),_0x3f0b7d=_0x2f32e5===_0x20ad0b,_0xb46d45=_0x3f0b7d&&_0x1ee2ba===_0x5b27a0;return _0x3f0b7d&&_0xb46d45&&!(_0xb46d45&&_0x1ee5e5===_0x1c6d8e)?_0x3e0737[_0x4c1b2f(0x22c)]['YearMonthDate']:_0x3f0b7d&&!_0xb46d45?_0x3e0737[_0x4c1b2f(0x22c)][_0x4c1b2f(0x221)]:_0x3e0737[_0x4c1b2f(0x22c)][_0x4c1b2f(0x20e)];}function _0x4df91d(_0x515a03,_0x189523){const _0x29270e=_0x2b16d4,_0x1fbd77=_0x515a03[_0x29270e(0x1a9)](_0x24d96c[_0x29270e(0x1b4)])[_0x29270e(0x123)]();let _0x35411f='';switch(_0x189523){case _0x3e0737[_0x29270e(0x22c)]['YearMonthDate']:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x221)]:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.yearMonth'];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x20e)]:_0x35411f=_0x1fbd77[_0x29270e(0x2cf)];break;case _0x3e0737[_0x29270e(0x22c)]['Month']:_0x35411f=_0x1fbd77[_0x29270e(0x335)];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x232)]:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.quarter'];break;case _0x3e0737['PivotDateGroupFieldDateTypeEnum'][_0x29270e(0x283)]:_0x35411f=_0x1fbd77[_0x29270e(0x2bc)];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x162)]:_0x35411f=_0x1fbd77[_0x29270e(0x1cb)];break;case _0x3e0737[_0x29270e(0x22c)]['Hour']:_0x35411f=_0x1fbd77['sheets-pivot.dateGroup.hour'];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x1f3)]:_0x35411f=_0x1fbd77[_0x29270e(0xd2)];break;case _0x3e0737[_0x29270e(0x22c)]['MonthDate']:_0x35411f=_0x1fbd77[_0x29270e(0x36e)];break;case _0x3e0737[_0x29270e(0x22c)][_0x29270e(0x301)]:_0x35411f=_0x1fbd77[_0x29270e(0x344)];break;default:_0x35411f='';break;}return _0x35411f;}const _0x539a40='sheets-pivot.config',_0x96e365={};var _0x102943=Object['getOwnPropertyDescriptor'],_0x14226c=(_0x5904e9,_0x3cda8a,_0x2a7c33,_0x2e0764)=>{const _0x36c97a=_0x2b16d4;for(var _0x108f88=_0x2e0764>0x1?void 0x0:_0x2e0764?_0x102943(_0x3cda8a,_0x2a7c33):_0x3cda8a,_0x553487=_0x5904e9[_0x36c97a(0x27b)]-0x1,_0x4c3bbe;_0x553487>=0x0;_0x553487--)(_0x4c3bbe=_0x5904e9[_0x553487])&&(_0x108f88=_0x4c3bbe(_0x108f88)||_0x108f88);return _0x108f88;},_0xeab076=(_0x1e935c,_0x5d2eef)=>(_0x152360,_0x585c3d)=>_0x5d2eef(_0x152360,_0x585c3d,_0x1e935c);_0x24d96c[_0x2b16d4(0x15d)]=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x1805ef,_0x204c09,_0x483773,_0x598e62,_0x40e8ab){const _0x2cd9a2=_0x2b16d4;super(),_0x2e1abd(this,_0x2cd9a2(0xed),new Map()),_0x2e1abd(this,_0x2cd9a2(0x194),new Map()),_0x2e1abd(this,_0x2cd9a2(0x25a),new Map()),_0x2e1abd(this,_0x2cd9a2(0x2b9),new Map()),_0x2e1abd(this,_0x2cd9a2(0xe9),new _0x2b003b[(_0x2cd9a2(0x35c))]()),_0x2e1abd(this,'_pivotInitCompleted$',new _0x2b003b[(_0x2cd9a2(0x35c))]()),_0x2e1abd(this,_0x2cd9a2(0x294),this['_pivotInitCompleted$'][_0x2cd9a2(0x259)]()),_0x2e1abd(this,_0x2cd9a2(0xb5),new _0x2b003b[(_0x2cd9a2(0x35c))]()),_0x2e1abd(this,_0x2cd9a2(0x364),this['_pivotConfigChange$'][_0x2cd9a2(0x259)]()),_0x2e1abd(this,_0x2cd9a2(0x3a4),{}),_0x2e1abd(this,'configVersion$',this[_0x2cd9a2(0xe9)][_0x2cd9a2(0x259)]()),(this[_0x2cd9a2(0x1fe)]=_0x1805ef,this[_0x2cd9a2(0x2e0)]=_0x204c09,this[_0x2cd9a2(0x12c)]=_0x483773,this['_resourceManagerService']=_0x598e62,this[_0x2cd9a2(0x2de)]=_0x40e8ab,this[_0x2cd9a2(0x355)](),this[_0x2cd9a2(0x378)]());const _0x3ea109=this[_0x2cd9a2(0x2de)]['getConfig'](_0x539a40);(_0x3ea109==null?void 0x0:_0x3ea109['notExecuteFormula'])===!0x0&&this[_0x2cd9a2(0x1a2)]();}[_0x2b16d4(0x378)](){const _0x538a9b=_0x2b16d4;this['disposeWithMe'](this[_0x538a9b(0x12c)][_0x538a9b(0x340)](_0x282877[_0x538a9b(0x20b)][_0x538a9b(0x328)])[_0x538a9b(0x223)](_0x5e09d8=>{const _0x291dc1=_0x538a9b;this[_0x291dc1(0x28d)](_0x5e09d8['getUnitId']());}));}[_0x2b16d4(0x393)](){const _0x362e60=_0x2b16d4;this[_0x362e60(0x234)][_0x362e60(0x23b)](!0x0);}[_0x2b16d4(0x355)](){const _0x13abc7=_0x2b16d4,_0x576349=_0x1727a7(this[_0x13abc7(0x1fe)],_0x40592d,'',{});this['_textInfo']=_0x576349,this[_0x13abc7(0x2e0)][_0x13abc7(0xe0)](_0x4c3710['id'],{'textInfo':_0x576349},{'onlyLocal':!0x0});}['getTextInfo'](){return this['_textInfo'];}[_0x2b16d4(0x2c0)](_0x3f9666,_0x400864,_0x206ab2,_0x5ad1f4,_0xeb5100){const _0x3742af=_0x2b16d4;this[_0x3742af(0x36d)](_0x3f9666,_0x400864,_0x206ab2,_0x5ad1f4),this[_0x3742af(0x321)](_0x3f9666,_0x400864,_0x206ab2,_0xeb5100);}[_0x2b16d4(0x13c)](_0x4b4e51,_0x5844d3,_0x539d1f){const _0x26dba8=_0x2b16d4;var _0x19d262;const _0x1a8817=(_0x19d262=this[_0x26dba8(0xed)][_0x26dba8(0x1a9)](_0x4b4e51))==null?void 0x0:_0x19d262[_0x26dba8(0x1a9)](_0x5844d3);if(_0x1a8817)return _0x1a8817['get'](_0x539d1f);}['getTargetByPivotTableId'](_0x4bee2a,_0x107e20){const _0x2e5dd5=_0x2b16d4,_0x57d25c=this['_model'][_0x2e5dd5(0x1a9)](_0x4bee2a);if(_0x57d25c){for(const [_0x39b944,_0x384114]of _0x57d25c[_0x2e5dd5(0x2d8)]())for(const [_0x5b38dd,_0x2e0770]of _0x384114['entries']())if(_0x5b38dd===_0x107e20)return _0x2e0770[_0x2e5dd5(0x360)];}}['getTargetByPivotId'](_0x30e1da,_0x5dca84,_0x3ae924){const _0x50b299=_0x2b16d4,_0x2e18b8=this[_0x50b299(0x13c)](_0x30e1da,_0x5dca84,_0x3ae924);return _0x2e18b8==null?void 0x0:_0x2e18b8[_0x50b299(0x360)];}['getSubUnitPivotConfigs'](_0x4a2fc7,_0x37cd8e){const _0x28631f=_0x2b16d4;var _0x472e7f;return(_0x472e7f=this[_0x28631f(0xed)]['get'](_0x4a2fc7))==null?void 0x0:_0x472e7f[_0x28631f(0x1a9)](_0x37cd8e);}['updateConfigCache'](_0x3bb1bf,_0x4250c6,_0x474fbb,_0x423ee7){const _0x3013e1=_0x2b16d4,_0x20e9a5=this[_0x3013e1(0x28c)](_0x3bb1bf,_0x4250c6);_0x423ee7?_0x20e9a5[_0x3013e1(0x28f)](_0x474fbb,_0x423ee7):_0x20e9a5[_0x3013e1(0x1c1)](_0x474fbb),this[_0x3013e1(0xb5)][_0x3013e1(0x23b)]({'unitId':_0x3bb1bf,'subUnitId':_0x4250c6,'pivotTableId':_0x474fbb,'pivotTableConfig':_0x423ee7});}[_0x2b16d4(0xd9)](_0x48edb2,_0x52cc8f){const _0xfc8e32=_0x2b16d4;var _0x10b231;return(_0x10b231=this[_0xfc8e32(0x194)][_0xfc8e32(0x1a9)](_0x48edb2))==null?void 0x0:_0x10b231[_0xfc8e32(0x256)][_0x52cc8f];}[_0x2b16d4(0x1a3)](_0x3d5e44,_0x279be1){const _0x4b3b12=_0x2b16d4;this[_0x4b3b12(0x194)]['set'](_0x3d5e44,_0x279be1),this[_0x4b3b12(0xe9)]['next'](Math[_0x4b3b12(0x3a5)]());}[_0x2b16d4(0x28c)](_0x2e4df9,_0x5142cb){const _0x291e63=_0x2b16d4;let _0x3d5c4b=this[_0x291e63(0xed)][_0x291e63(0x1a9)](_0x2e4df9);_0x3d5c4b||(_0x3d5c4b=new Map(),this['_model'][_0x291e63(0x28f)](_0x2e4df9,_0x3d5c4b));let _0x139b20=_0x3d5c4b[_0x291e63(0x1a9)](_0x5142cb);return _0x139b20||(_0x139b20=new Map(),_0x3d5c4b['set'](_0x5142cb,_0x139b20)),_0x139b20;}[_0x2b16d4(0x13a)](_0x418a4e,_0x12c6c3){const _0x33871b=_0x2b16d4;let _0x3c34b6=this['_pivotTableRangeInfo']['get'](_0x418a4e);_0x3c34b6||(_0x3c34b6=new Map(),this[_0x33871b(0x25a)][_0x33871b(0x28f)](_0x418a4e,_0x3c34b6));let _0x15fda4=_0x3c34b6['get'](_0x12c6c3);return _0x15fda4||(_0x15fda4=new Map(),_0x3c34b6[_0x33871b(0x28f)](_0x12c6c3,_0x15fda4)),_0x15fda4;}[_0x2b16d4(0x139)](_0x15c7d3,_0x39858e){const _0x74e8fd=_0x2b16d4;let _0x156795=this['_pivotTableMatrixInfo'][_0x74e8fd(0x1a9)](_0x15c7d3);_0x156795||(_0x156795=new Map(),this[_0x74e8fd(0x2b9)][_0x74e8fd(0x28f)](_0x15c7d3,_0x156795));let _0x46ced3=_0x156795[_0x74e8fd(0x1a9)](_0x39858e);return _0x46ced3||(_0x46ced3=new Map(),_0x156795[_0x74e8fd(0x28f)](_0x39858e,_0x46ced3)),_0x46ced3;}[_0x2b16d4(0x321)](_0x5e3949,_0x5ab846,_0x434d6c,_0x5db570){const _0x1ed984=_0x2b16d4;var _0x436f7c;const _0x3d4fc3=this[_0x1ed984(0x13a)](_0x5e3949,_0x5ab846),_0x1a0605=(_0x436f7c=_0x3d4fc3[_0x1ed984(0x1a9)](_0x434d6c))==null?void 0x0:_0x436f7c[_0x1ed984(0x143)];_0x3d4fc3[_0x1ed984(0x28f)](_0x434d6c,{'oldRangeInfo':_0x1a0605,'rangeInfo':_0x5db570});}[_0x2b16d4(0x36d)](_0x7b0c,_0x2680a4,_0x430bc7,_0x4279db){const _0x390b19=_0x2b16d4;var _0x4a4f96;const _0x5384c5=this['_ensurePivotTableMatrixInfo'](_0x7b0c,_0x2680a4),_0xd1b4c3=(_0x4a4f96=_0x5384c5['get'](_0x430bc7))==null?void 0x0:_0x4a4f96[_0x390b19(0x285)];_0x5384c5[_0x390b19(0x28f)](_0x430bc7,{'oldMatrix':_0xd1b4c3,'matrix':_0x4279db});}['getPivotTableRangeInfo'](_0x485c93,_0x34c4c3,_0x591693){const _0x1cea57=_0x2b16d4;var _0x582d1f,_0x37363f;return(_0x37363f=(_0x582d1f=this[_0x1cea57(0x25a)][_0x1cea57(0x1a9)](_0x485c93))==null?void 0x0:_0x582d1f['get'](_0x34c4c3))==null?void 0x0:_0x37363f[_0x1cea57(0x1a9)](_0x591693);}[_0x2b16d4(0x10d)](_0x2e9765,_0x143c80,_0x113319){const _0x1b2714=_0x2b16d4;var _0x5b7560,_0x45b2e5;return(_0x45b2e5=(_0x5b7560=this['_pivotTableMatrixInfo'][_0x1b2714(0x1a9)](_0x2e9765))==null?void 0x0:_0x5b7560[_0x1b2714(0x1a9)](_0x143c80))==null?void 0x0:_0x45b2e5[_0x1b2714(0x1a9)](_0x113319);}[_0x2b16d4(0x28d)](_0x3f6d3f){const _0x56ea8c=_0x2b16d4;this[_0x56ea8c(0xed)]['delete'](_0x3f6d3f),this['_collectionConfigModel']['delete'](_0x3f6d3f);}[_0x2b16d4(0x1f8)](_0x6bb784){const _0x6fe650=_0x2b16d4,_0x2b3aa8={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x6fe650(0x194)]['get'](_0x6bb784)&&(_0x2b3aa8[_0x6fe650(0x1e1)][_0x6bb784]=this['_collectionConfigModel'][_0x6fe650(0x1a9)](_0x6bb784)),this[_0x6fe650(0xed)]['get'](_0x6bb784)){_0x2b3aa8[_0x6fe650(0x15e)][_0x6bb784]={};const _0x1f5a35=this[_0x6fe650(0xed)][_0x6fe650(0x1a9)](_0x6bb784);_0x1f5a35!=null&&_0x1f5a35[_0x6fe650(0x1a5)]&&[..._0x1f5a35[_0x6fe650(0x12a)]()]['forEach'](_0x220247=>{const _0x46bac3=_0x6fe650,_0x343ee7=_0x1f5a35[_0x46bac3(0x1a9)](_0x220247);_0x343ee7!=null&&_0x343ee7['size']&&(_0x2b3aa8[_0x46bac3(0x15e)][_0x6bb784][_0x220247]={},[..._0x343ee7['keys']()][_0x46bac3(0xff)](_0x106f8e=>{const _0x2ea2f4=_0x46bac3,_0x56eba3=_0x343ee7[_0x2ea2f4(0x1a9)](_0x106f8e);_0x56eba3&&(_0x2b3aa8[_0x2ea2f4(0x15e)][_0x6bb784][_0x220247][_0x106f8e]=_0x56eba3);}));});}return _0x2b3aa8;}['_initSnapshot'](){const _0x12337f=_0x2b16d4;this[_0x12337f(0x324)](this[_0x12337f(0x30e)][_0x12337f(0x9f)]({'toJson':_0x24a409=>JSON['stringify'](this[_0x12337f(0x1f8)](_0x24a409)),'parseJson':_0x530cbf=>({}),'businesses':[_0x282877[_0x12337f(0x20b)][_0x12337f(0x328)]],'pluginName':_0x2734d4,'onLoad':(_0x4d309f,_0x26ab21)=>{},'onUnLoad':_0x2ef2e3=>{this['deleteUnitId'](_0x2ef2e3);}}));}},_0x24d96c[_0x2b16d4(0x15d)]=_0x14226c([_0xeab076(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877['Injector'])),_0xeab076(0x1,_0x282877['Inject'](_0x282877['ICommandService'])),_0xeab076(0x2,_0x282877['Inject'](_0x282877[_0x2b16d4(0x165)])),_0xeab076(0x3,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x397)])),_0xeab076(0x4,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0xc1)]))],_0x24d96c['SheetsPivotTableConfigModel']);var _0x1316cf=Object[_0x2b16d4(0x34b)],_0xc14f40=(_0x1d0285,_0x1d00dd,_0x327ff7,_0x49fac7)=>{const _0x22858a=_0x2b16d4;for(var _0x36014d=_0x49fac7>0x1?void 0x0:_0x49fac7?_0x1316cf(_0x1d00dd,_0x327ff7):_0x1d00dd,_0x2e62a1=_0x1d0285[_0x22858a(0x27b)]-0x1,_0x3c4fa4;_0x2e62a1>=0x0;_0x2e62a1--)(_0x3c4fa4=_0x1d0285[_0x2e62a1])&&(_0x36014d=_0x3c4fa4(_0x36014d)||_0x36014d);return _0x36014d;},_0x48c3ef=(_0x3453e2,_0x32acc2)=>(_0x16fa79,_0x5ddcdd)=>_0x32acc2(_0x16fa79,_0x5ddcdd,_0x3453e2);_0x24d96c[_0x2b16d4(0x389)]=class extends _0x282877['Disposable']{constructor(_0x477fc6,_0x2cbce7,_0xfe9646,_0x23b50e,_0xa9a065){const _0x2e3801=_0x2b16d4;super(),_0x2e1abd(this,_0x2e3801(0x1f6),new Map()),_0x2e1abd(this,_0x2e3801(0x2fd),new Map()),_0x2e1abd(this,'_markDirty$',new _0x2b003b[(_0x2e3801(0x35c))]()),_0x2e1abd(this,_0x2e3801(0x387),this[_0x2e3801(0x2bb)][_0x2e3801(0x259)]()),_0x2e1abd(this,_0x2e3801(0x25c),new _0x2b003b[(_0x2e3801(0x35c))]()),_0x2e1abd(this,_0x2e3801(0x1ad),this['_viewUpdate$']['asObservable']()),_0x2e1abd(this,_0x2e3801(0x3a4)),(this['_localeService']=_0x477fc6,this[_0x2e3801(0x1fe)]=_0x2cbce7,this[_0x2e3801(0xc5)]=_0xfe9646,this[_0x2e3801(0x12c)]=_0x23b50e,this[_0x2e3801(0x366)]=_0xa9a065,this['_initLocale'](),this[_0x2e3801(0x378)]());}[_0x2b16d4(0x378)](){const _0x4b7f9d=_0x2b16d4;this[_0x4b7f9d(0x324)](this[_0x4b7f9d(0x12c)]['getTypeOfUnitDisposed$'](_0x282877['UniverInstanceType']['UNIVER_SHEET'])[_0x4b7f9d(0x223)](_0x5baf05=>{const _0x2be9fa=_0x4b7f9d;this['deleteUnitId'](_0x5baf05[_0x2be9fa(0x255)]());}));}[_0x2b16d4(0x355)](){const _0x496cd9=_0x2b16d4;this[_0x496cd9(0x3a4)]=_0x1727a7(this[_0x496cd9(0x1fe)],_0x40592d,'',{});}[_0x2b16d4(0x215)](_0x36191a){const _0x47f49f=_0x2b16d4,{view:_0x15c0ce,unitId:_0x553719,subUnitId:_0x7f503d,pivotTableId:_0x21754a,type:_0x6a212e}=_0x36191a,_0x31fa48=this[_0x47f49f(0xc5)]['getPivotTableConfig'](_0x553719,_0x7f503d,_0x21754a);if(!_0x15c0ce||!_0x31fa48||_0x6a212e===_0xa5664b[_0x47f49f(0x3aa)])return;const {pageView:_0x28e3ce,cornerView:_0x4746d0,rowView:_0x46a9fa,colView:_0x361462,dataView:_0x539b95}=_0x15c0ce,_0x290420=_0x31fa48[_0x47f49f(0x360)],_0x53de7e=_0x31fa48[_0x47f49f(0xa8)],_0x32fda0=this[_0x47f49f(0x332)](_0x553719,_0x7f503d),_0x489562=this[_0x47f49f(0xa7)](_0x553719,_0x7f503d,_0x21754a);if(_0x53de7e)return this[_0x47f49f(0x101)](_0x36191a,_0x32fda0,_0x290420,_0x489562);{const _0x5a97c0=_0x37a9a3(_0x290420,_0x28e3ce,!0x0),_0x3ebc62=_0x28e3ce['lastRow']>=0x0?_0x28e3ce['lastRow']+0x1:0x0,_0x231906=_0x4746d0['getRowCount'](),_0x2a8441=_0x4746d0['getColCount'](),_0x50fb59=_0x5a97c0[_0x47f49f(0x27b)]>0x0?_0x44f3d5:0x0,_0x34ac2c=_0x37a9a3({'row':_0x290420['row']+_0x3ebc62+_0x50fb59,'col':_0x290420[_0x47f49f(0x1da)]},_0x4746d0,!0x1,!0x1),_0x2b5f30=_0x37a9a3({'row':_0x290420[_0x47f49f(0x303)]+_0x3ebc62+_0x50fb59+_0x231906,'col':_0x290420[_0x47f49f(0x1da)]},_0x46a9fa,!0x1,!0x0),_0x2680eb=_0x37a9a3({'row':_0x290420['row']+_0x3ebc62+_0x50fb59,'col':_0x290420[_0x47f49f(0x1da)]+_0x2a8441},_0x361462,!0x1,!0x0),_0x2dadb8=_0x37a9a3({'row':_0x290420[_0x47f49f(0x303)]+_0x3ebc62+_0x50fb59+_0x231906,'col':_0x290420[_0x47f49f(0x1da)]+_0x2a8441},_0x539b95,!0x1,!0x1);_0x489562['rangesInfo']={'rowRanges':_0x2b5f30,'colRanges':_0x2680eb,'cornerRanges':_0x34ac2c,'dataRanges':_0x2dadb8,'pageRanges':_0x5a97c0};const _0x367b72=_0x4a1770(this[_0x47f49f(0x1fe)],_0x15c0ce,_0x31fa48,this['_textInfo']),{valueMatrix:_0x5c4c7e,rowInfo:_0x537f7e,colInfo:_0x33fe99,cornerInfo:_0x4234bc,rowHeaderMap:_0x1d9cd9,colHeaderMap:_0x4d35be}=_0x367b72;return _0x489562['areaInfo']={'rowInfo':_0x537f7e,'colInfo':_0x33fe99,'cornerInfo':_0x4234bc},_0x489562[_0x47f49f(0x1a1)]={'rowHeaderMap':_0x1d9cd9,'colHeaderMap':_0x4d35be},_0x5c4c7e['forEach']((_0x17d89d,_0x1d1422)=>{const _0x2f0d2f=_0x47f49f;Object['keys'](_0x1d1422)[_0x2f0d2f(0xff)](_0x44aad7=>{const _0x52f991=_0x2f0d2f,_0x5607c3=+_0x44aad7,_0x4d6f7c=_0x5c4c7e[_0x52f991(0x1e3)](_0x17d89d,_0x5607c3);_0x32fda0[_0x52f991(0x39a)](_0x17d89d,_0x5607c3,_0x4d6f7c);});}),this['_viewUpdate$'][_0x47f49f(0x23b)]({'unitId':_0x553719,'subUnitId':_0x7f503d,'valueMatrix':_0x32fda0,'rangesCache':_0x489562[_0x47f49f(0x2b4)],'pivotTableId':_0x21754a,'type':_0x36191a[_0x47f49f(0x1e7)]}),this[_0x47f49f(0xc5)]['updateViewInfo'](_0x553719,_0x7f503d,_0x21754a,_0x32fda0,_0x489562['rangesInfo']),this[_0x47f49f(0x366)][_0x47f49f(0x1f4)](_0x553719,_0x7f503d,_0x15c051,this[_0x47f49f(0x18f)](_0x489562['rangesInfo'],_0x21754a)),{'rangeCache':_0x489562['rangesInfo'],'matrix':_0x32fda0};}}[_0x2b16d4(0x101)](_0x37150a,_0x10bead,_0x5512b2,_0x5f3d7e){const _0xe0dd09=_0x2b16d4,_0x3288f9=this[_0xe0dd09(0x121)]['t'],{unitId:_0x40a2c2,subUnitId:_0x236204,pivotTableId:_0x4dcb4b}=_0x37150a,_0x444bfa={'filter':_0x3288f9('sheets-pivot.emptyPivot.filter'),'row':_0x3288f9(_0xe0dd09(0x23e)),'column':_0x3288f9(_0xe0dd09(0x24b)),'values':_0x3288f9(_0xe0dd09(0x20f))},{matrixCache:_0x5c44a5,rangesCache:_0x274b02}=_0x943949(_0x444bfa,_0x5512b2);return _0x5c44a5['forValue']((_0x240373,_0x536339,_0xe81af0)=>{const _0x38f9ff=_0xe0dd09;_0x10bead[_0x38f9ff(0x39a)](_0x240373,_0x536339,_0xe81af0);}),_0x5f3d7e[_0xe0dd09(0x2b4)]=_0x274b02,this['_viewUpdate$'][_0xe0dd09(0x23b)]({'unitId':_0x40a2c2,'subUnitId':_0x236204,'valueMatrix':_0x10bead,'rangesCache':_0x274b02,'pivotTableId':_0x4dcb4b,'type':_0x37150a[_0xe0dd09(0x1e7)],'isEmpty':!0x0}),this['_sheetsPivotTableConfigModel'][_0xe0dd09(0x2c0)](_0x40a2c2,_0x236204,_0x4dcb4b,_0x10bead,_0x274b02),this[_0xe0dd09(0x366)][_0xe0dd09(0x1f4)](_0x40a2c2,_0x236204,_0x15c051,this[_0xe0dd09(0x18f)](_0x274b02,_0x4dcb4b)),{'rangeCache':_0x5f3d7e[_0xe0dd09(0x2b4)],'matrix':_0x10bead};}['_createExclusiveRange'](_0x26a0c8,_0x570050){const _0x1310b9=_0x2b16d4,_0x1bf932=[],_0x1c1ec2=_0x56a3ee(_0x26a0c8);for(const _0x311a77 of _0x1c1ec2)_0x1bf932[_0x1310b9(0x338)]({'groupId':_0x570050,'range':_0x311a77});return _0x1bf932;}['clearRenderCache'](_0x1bc677){const _0x2f4046=_0x2b16d4;var _0x470082,_0xc61f93,_0x150db6,_0x3efe23;const {pivotTableId:_0x2a8c93,unitId:_0x230214,subUnitId:_0xdcd730}=_0x1bc677;if(!_0x2a8c93||!_0x230214||!_0xdcd730)return;const _0x402189=this['_ensurePivotItemRenderValueMatrixCache'](_0x230214,_0xdcd730),_0x134eda=(_0xc61f93=(_0x470082=this[_0x2f4046(0x1f6)][_0x2f4046(0x1a9)](_0x230214))==null?void 0x0:_0x470082['get'](_0xdcd730))==null?void 0x0:_0xc61f93[_0x2f4046(0x1a9)](_0x2a8c93);if(_0x134eda!=null&&_0x134eda[_0x2f4046(0x2b4)]){for(const _0x37224b of Object[_0x2f4046(0x12a)](_0x134eda[_0x2f4046(0x2b4)]))_0x134eda['rangesInfo'][_0x37224b][_0x2f4046(0xff)](_0x1327e4=>{const _0x546186=_0x2f4046;for(let _0x36f936=_0x1327e4[_0x546186(0x19f)];_0x36f936<=_0x1327e4[_0x546186(0x39e)];_0x36f936++)for(let _0x399e7d=_0x1327e4[_0x546186(0x254)];_0x399e7d<=_0x1327e4['endColumn'];_0x399e7d++)_0x402189['realDeleteValue'](_0x36f936,_0x399e7d);});}_0x134eda&&((_0x3efe23=(_0x150db6=this[_0x2f4046(0x1f6)][_0x2f4046(0x1a9)](_0x230214))==null?void 0x0:_0x150db6[_0x2f4046(0x1a9)](_0xdcd730))==null||_0x3efe23[_0x2f4046(0x1c1)](_0x2a8c93)),this[_0x2f4046(0x25c)][_0x2f4046(0x23b)]({'unitId':_0x230214,'subUnitId':_0xdcd730,'valueMatrix':_0x402189,'pivotTableId':_0x2a8c93,'rangesCache':void 0x0,'type':_0x1bc677[_0x2f4046(0x1e7)]}),this[_0x2f4046(0x366)][_0x2f4046(0x122)](_0x230214,_0xdcd730,_0x15c051,_0x2a8c93);}[_0x2b16d4(0xa7)](_0x7c7733,_0x5546fd,_0x40d394){const _0x39bbb3=_0x2b16d4;var _0xf10b42,_0x1ddfad,_0x427867,_0x46c608,_0xd60918,_0x1defed;return this[_0x39bbb3(0x1f6)][_0x39bbb3(0x105)](_0x7c7733)||this[_0x39bbb3(0x1f6)][_0x39bbb3(0x28f)](_0x7c7733,new Map()),(_0xf10b42=this[_0x39bbb3(0x1f6)][_0x39bbb3(0x1a9)](_0x7c7733))!=null&&_0xf10b42[_0x39bbb3(0x105)](_0x5546fd)||(_0x1ddfad=this[_0x39bbb3(0x1f6)][_0x39bbb3(0x1a9)](_0x7c7733))==null||_0x1ddfad[_0x39bbb3(0x28f)](_0x5546fd,new Map()),(_0x46c608=(_0x427867=this[_0x39bbb3(0x1f6)]['get'](_0x7c7733))==null?void 0x0:_0x427867[_0x39bbb3(0x1a9)](_0x5546fd))!=null&&_0x46c608[_0x39bbb3(0x105)](_0x40d394)||(_0x1defed=(_0xd60918=this['_pivotRenderInfoCache'][_0x39bbb3(0x1a9)](_0x7c7733))==null?void 0x0:_0xd60918[_0x39bbb3(0x1a9)](_0x5546fd))==null||_0x1defed[_0x39bbb3(0x28f)](_0x40d394,{}),this[_0x39bbb3(0x1f6)][_0x39bbb3(0x1a9)](_0x7c7733)['get'](_0x5546fd)[_0x39bbb3(0x1a9)](_0x40d394);}['_ensurePivotItemRenderValueMatrixCache'](_0x5228bf,_0x41501c){const _0xb401ce=_0x2b16d4;var _0x5e0f9f,_0x2d06b5;return this['_pivotRenderValueMatrixCache'][_0xb401ce(0x105)](_0x5228bf)||this['_pivotRenderValueMatrixCache']['set'](_0x5228bf,new Map()),(_0x5e0f9f=this[_0xb401ce(0x2fd)][_0xb401ce(0x1a9)](_0x5228bf))!=null&&_0x5e0f9f['has'](_0x41501c)||(_0x2d06b5=this[_0xb401ce(0x2fd)][_0xb401ce(0x1a9)](_0x5228bf))==null||_0x2d06b5['set'](_0x41501c,new _0x282877[(_0xb401ce(0x184))]()),this[_0xb401ce(0x2fd)][_0xb401ce(0x1a9)](_0x5228bf)[_0xb401ce(0x1a9)](_0x41501c);}[_0x2b16d4(0x169)](_0x2cb6ce,_0x56b627,_0x210ef3,_0x1304e5){const _0x96bf88=_0x2b16d4;var _0x23af13,_0x184587;const _0xf91204=(_0x184587=(_0x23af13=this[_0x96bf88(0x2fd)][_0x96bf88(0x1a9)](_0x2cb6ce))==null?void 0x0:_0x23af13[_0x96bf88(0x1a9)](_0x56b627))==null?void 0x0:_0x184587[_0x96bf88(0x1e3)](_0x210ef3,_0x1304e5);if(_0xf91204!=null)return _0xf91204;}['getPivotTableIdByCell'](_0x39467e,_0x38be23,_0x14be8e,_0xa1eed1){const _0x524f41=_0x2b16d4;var _0x6eccf7;const _0x54f02a=_0x282877[_0x524f41(0x29f)](_0x14be8e,_0xa1eed1),_0x4ea0e2=(_0x6eccf7=this[_0x524f41(0x1f6)][_0x524f41(0x1a9)](_0x39467e))==null?void 0x0:_0x6eccf7[_0x524f41(0x1a9)](_0x38be23);return _0x4ea0e2?Array[_0x524f41(0xa4)](_0x4ea0e2[_0x524f41(0x12a)]())[_0x524f41(0x1a6)](_0x413fbc=>{const _0x13a39e=_0x524f41,_0x43bad5=_0x4ea0e2[_0x13a39e(0x1a9)](_0x413fbc),_0x19eff7=_0x43bad5==null?void 0x0:_0x43bad5[_0x13a39e(0x2b4)];return _0x19eff7?Object[_0x13a39e(0x12a)](_0x19eff7)[_0x13a39e(0x151)](_0x17356d=>_0x19eff7[_0x17356d][_0x13a39e(0x151)](_0x302d7c=>_0x282877[_0x13a39e(0x2e7)][_0x13a39e(0x235)](_0x302d7c,_0x54f02a))):!0x1;}):void 0x0;}[_0x2b16d4(0x175)](_0x45b181,_0x57cf39,_0x330b89){const _0x2bd21d=_0x2b16d4;var _0x4957ef;const _0x1ee562=(_0x4957ef=this['_pivotRenderInfoCache']['get'](_0x45b181))==null?void 0x0:_0x4957ef[_0x2bd21d(0x1a9)](_0x57cf39),_0xc085b5=[];return _0x1ee562&&Array[_0x2bd21d(0xa4)](_0x1ee562['keys']())['forEach'](_0x547d9e=>{const _0xeff2f7=_0x2bd21d,_0xb18618=_0x1ee562[_0xeff2f7(0x1a9)](_0x547d9e),_0x287825=_0xb18618==null?void 0x0:_0xb18618[_0xeff2f7(0x2b4)];if(_0x287825)for(const _0x96886f of Object[_0xeff2f7(0x369)](_0x287825)){let _0x2d4a22=!0x1;for(const _0x55ab8f of _0x96886f)if(_0x282877['Rectangle'][_0xeff2f7(0x2f5)](_0x55ab8f,_0x330b89)){_0xc085b5[_0xeff2f7(0x338)](_0x547d9e),_0x2d4a22=!0x0;break;}if(_0x2d4a22)break;}}),_0xc085b5;}['getSubUnitPivotMatrix'](_0x202098,_0x4398e4){const _0x48912a=_0x2b16d4;var _0xaf4a72,_0x4bdc9f;return(_0x4bdc9f=(_0xaf4a72=this['_pivotRenderValueMatrixCache'][_0x48912a(0x1a9)](_0x202098))==null?void 0x0:_0xaf4a72['get'](_0x4398e4))!=null?_0x4bdc9f:new _0x282877[(_0x48912a(0x184))]();}[_0x2b16d4(0x37d)](_0x37c32a,_0x46907d){const _0x3dd93a=_0x2b16d4;var _0x53b075;return(_0x53b075=this[_0x3dd93a(0x1f6)][_0x3dd93a(0x1a9)](_0x37c32a))==null?void 0x0:_0x53b075[_0x3dd93a(0x1a9)](_0x46907d);}['getPivotItemRenderInfoCache'](_0x515a1f,_0x1c365b,_0x162e57){const _0x565155=_0x2b16d4;var _0x3e16a5,_0x418462;return(_0x418462=(_0x3e16a5=this[_0x565155(0x1f6)][_0x565155(0x1a9)](_0x515a1f))==null?void 0x0:_0x3e16a5[_0x565155(0x1a9)](_0x1c365b))==null?void 0x0:_0x418462[_0x565155(0x1a9)](_0x162e57);}[_0x2b16d4(0x28d)](_0x4e4cf2){const _0x13f589=_0x2b16d4;this[_0x13f589(0x1f6)]['delete'](_0x4e4cf2),this[_0x13f589(0x2fd)][_0x13f589(0x1c1)](_0x4e4cf2);}['markDirty'](_0x43d34f,_0x4b0a43){const _0x1e5c5f=_0x2b16d4;this[_0x1e5c5f(0x2bb)][_0x1e5c5f(0x23b)]({'unitId':_0x43d34f,'subUnitId':_0x4b0a43});}},_0x24d96c[_0x2b16d4(0x389)]=_0xc14f40([_0x48c3ef(0x0,_0x282877['Inject'](_0x282877['LocaleService'])),_0x48c3ef(0x1,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x48c3ef(0x2,_0x282877[_0x2b16d4(0x120)](_0x24d96c['SheetsPivotTableConfigModel'])),_0x48c3ef(0x3,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x165)])),_0x48c3ef(0x4,_0x282877['Inject'](_0x5698b3[_0x2b16d4(0x1ab)]))],_0x24d96c[_0x2b16d4(0x389)]);var _0x3d72e6=Object['getOwnPropertyDescriptor'],_0x406c1b=(_0x3c06c4,_0x43e351,_0xe5a1a9,_0x219d60)=>{const _0x4cce65=_0x2b16d4;for(var _0x2363fb=_0x219d60>0x1?void 0x0:_0x219d60?_0x3d72e6(_0x43e351,_0xe5a1a9):_0x43e351,_0x376616=_0x3c06c4[_0x4cce65(0x27b)]-0x1,_0x360598;_0x376616>=0x0;_0x376616--)(_0x360598=_0x3c06c4[_0x376616])&&(_0x2363fb=_0x360598(_0x2363fb)||_0x2363fb);return _0x2363fb;},_0x31c887=(_0x329508,_0x5f26c0)=>(_0xdd9183,_0x24a1f3)=>_0x5f26c0(_0xdd9183,_0x24a1f3,_0x329508);_0x24d96c[_0x2b16d4(0x199)]=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x5eff39,_0x1d65df){const _0x401fac=_0x2b16d4;super(),_0x2e1abd(this,_0x401fac(0x29c),new _0x282877[(_0x401fac(0x187))]({'PIVOT_PERFORM_CHECK':_0x387164})),_0x2e1abd(this,_0x401fac(0x388),new _0x282877[(_0x401fac(0x15a))]({'PIVOT_MUTATION_GENERATE':_0x3c85f0})),(this[_0x401fac(0x31a)]=_0x5eff39,this[_0x401fac(0x14f)]=_0x1d65df,this[_0x401fac(0x261)]());}[_0x2b16d4(0x261)](){const _0x44d902=_0x2b16d4;this[_0x44d902(0x318)]();}[_0x2b16d4(0x1d6)](_0x56b070){const _0x20479b=_0x2b16d4;return this[_0x20479b(0x29c)][_0x20479b(0x3a7)](_0x387164)(!0x1,_0x56b070);}['_initViewModelBySheetInterceptor'](){const _0x1ae187=_0x2b16d4;this['disposeWithMe'](this[_0x1ae187(0x31a)]['intercept'](_0x5698b3['INTERCEPTOR_POINT'][_0x1ae187(0xf6)],{'priority':0xc8,'effect':_0x282877['InterceptorEffectEnum'][_0x1ae187(0xbb)]|_0x282877['InterceptorEffectEnum'][_0x1ae187(0x229)],'handler':(_0x72c499,_0x56f155,_0x299fc8)=>{const _0xa555d3=_0x1ae187,{row:_0x1fa6bb,col:_0x338a69,unitId:_0x355a35,subUnitId:_0x275d35,workbook:_0x1d1abb}=_0x56f155,_0x5829cf=this[_0xa555d3(0x14f)]['getPivotTableCellData'](_0x355a35,_0x275d35,_0x1fa6bb,_0x338a69);if(!_0x5829cf)return _0x299fc8(_0x72c499);const _0x38c11b={..._0x72c499};(_0x5829cf['v']||_0x5829cf['v']===0x0)&&(_0x38c11b['v']=_0x5829cf['v']),_0x5829cf['t']&&(_0x38c11b['t']=_0x5829cf['t']);const _0x17032f=(typeof(_0x72c499==null?void 0x0:_0x72c499['s'])==_0xa555d3(0x168)?_0x1d1abb['getStyles']()[_0xa555d3(0x1a9)](_0x72c499==null?void 0x0:_0x72c499['s']):_0x72c499==null?void 0x0:_0x72c499['s'])||{},_0x545ed3=_0x1d1abb[_0xa555d3(0x30b)]()[_0xa555d3(0x1a9)](_0x5829cf['s']),_0x42d941={..._0x545ed3,..._0x17032f};_0x545ed3!=null&&_0x545ed3['n']&&(_0x42d941['n']=_0x545ed3['n']);const _0x2115c7=_0x1d1abb[_0xa555d3(0x30b)]()[_0xa555d3(0x39a)](_0x42d941);return _0x38c11b['s']=_0x2115c7,(_0x5829cf[_0xa555d3(0x280)]===_0x3e0737['PivotCellStyleTypeEnum']['Collapse']||_0x5829cf[_0xa555d3(0x280)]===_0x3e0737['PivotCellStyleTypeEnum'][_0xa555d3(0x2fb)])&&(_0x38c11b[_0xa555d3(0xaa)]={},_0x38c11b[_0xa555d3(0xaa)][_0xa555d3(0x133)]=_0x2ba735),_0x299fc8(_0x38c11b);}}));}},_0x24d96c[_0x2b16d4(0x199)]=_0x406c1b([_0x31c887(0x0,_0x282877[_0x2b16d4(0x120)](_0x5698b3['SheetInterceptorService'])),_0x31c887(0x1,_0x282877['Inject'](_0x24d96c[_0x2b16d4(0x389)]))],_0x24d96c[_0x2b16d4(0x199)]);const _0x2025a4={'id':'sheet.mutation.add-group-collection','type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'handler':(_0x2284cd,_0x297d0f)=>{const _0x3806bb=_0x2b16d4;if(!_0x297d0f)return!0x1;if(!!_0x2284cd[_0x3806bb(0x1a9)](_0x282877[_0x3806bb(0xc1)])[_0x3806bb(0xf8)](_0x3ecd37))return!0x0;const {pivotTableId:_0x242376,fieldJSON:_0x458661,unitId:_0x4cd300,subUnitId:_0x53e888}=_0x297d0f;let _0x2edd28;const {dataFieldType:_0x12e08a,id:_0x2e5de8,name:_0x41e396,hexCode:_0x30b080,originalFieldId:_0x3eceae}=_0x458661;if(_0x12e08a===_0x3e0737[_0x3806bb(0x278)][_0x3806bb(0x2e6)]&&(_0x2edd28=new _0x3e0737[(_0x3806bb(0x346))](_0x2e5de8,_0x41e396,_0x30b080,_0x3eceae)),!_0x2edd28)return!0x1;const _0x2a5702=_0x2284cd[_0x3806bb(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),_0x3f5f2b=_0x2a5702[_0x3806bb(0xc9)](_0x4cd300),_0x1e81b5=_0x3f5f2b[_0x3806bb(0xd9)](_0x242376);_0x3f5f2b[_0x3806bb(0x1e0)](_0x2edd28),_0x1e81b5[_0x3806bb(0x38f)](_0x2edd28[_0x3806bb(0x149)](),_0x2edd28[_0x3806bb(0x241)]());const _0x2eb2d5=_0x1e81b5[_0x3806bb(0x158)](_0x2edd28[_0x3806bb(0x295)]());_0x2eb2d5&&_0x2edd28[_0x3806bb(0xd6)](_0x2eb2d5);const _0x5774d0=_0x2a5702[_0x3806bb(0x13c)](_0x4cd300,_0x53e888,_0x242376);return _0x2a5702['addDirtyPivotTable']({'unitId':_0x4cd300,'subUnitId':_0x53e888,'token':_0x242376,'type':_0xa5664b[_0x3806bb(0x127)],'pivotConfig':_0x5774d0}),!0x0;}},_0x38013c={'id':_0x2b16d4(0x1db),'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'handler':(_0x44efad,_0x369ed9)=>{const _0x95525a=_0x2b16d4;if(!_0x369ed9)return!0x1;if(!!_0x44efad[_0x95525a(0x1a9)](_0x282877['IConfigService'])[_0x95525a(0xf8)](_0x3ecd37))return!0x0;const {pivotTableId:_0x3c6e6e,dataFieldId:_0x3994c8,unitId:_0x662f8b,subUnitId:_0x5f444e}=_0x369ed9,_0x947e0a=_0x44efad[_0x95525a(0x1a9)](_0x24d96c[_0x95525a(0x1b4)]),_0x2d9031=_0x947e0a['getDataFieldManager'](_0x662f8b);_0x2d9031['getCollection'](_0x3c6e6e)[_0x95525a(0x144)](_0x3994c8);let _0x2c878=!0x0;for(const _0x40cae0 in _0x2d9031[_0x95525a(0x256)])if(_0x2d9031[_0x95525a(0x256)][_0x40cae0]['getFieldIds']()[_0x95525a(0x339)](_0x3994c8)){_0x2c878=!0x1;break;}_0x2c878&&_0x2d9031[_0x95525a(0x2ea)](_0x3994c8);const _0x2238f0=_0x947e0a[_0x95525a(0x13c)](_0x662f8b,_0x5f444e,_0x3c6e6e);return _0x947e0a[_0x95525a(0x224)]({'unitId':_0x662f8b,'subUnitId':_0x5f444e,'token':_0x3c6e6e,'type':_0xa5664b['Set'],'pivotConfig':_0x2238f0}),!0x0;}};function _0x38e2b7(_0x1954aa,_0x53c254){const _0x472c49=_0x2b16d4;switch(_0x53c254){case _0x3e0737[_0x472c49(0x372)]['Value']:return _0x1954aa[_0x472c49(0x16d)];case _0x3e0737[_0x472c49(0x372)][_0x472c49(0x395)]:return _0x1954aa[_0x472c49(0x2af)];case _0x3e0737[_0x472c49(0x372)]['Row']:return _0x1954aa[_0x472c49(0x170)];case _0x3e0737[_0x472c49(0x372)]['Column']:return _0x1954aa['columnFields'];default:return[];}}function _0x228875(_0x543f95,_0xf86350){const _0x3a0a39=_0x2b16d4;return _0x543f95[_0x3a0a39(0xee)][_0xf86350]||_0x543f95[_0x3a0a39(0x3a3)][_0xf86350];}function _0x5d15e7(_0xbfbda,_0x273941){const _0x21914b=_0x2b16d4,{area:_0x18d296,fieldJson:_0x58b5f3,index:_0x2d6228}=_0x273941;_0x18d296===_0x3e0737[_0x21914b(0x372)][_0x21914b(0xbb)]?_0xbfbda[_0x21914b(0xee)][_0x58b5f3['id']]=_0x58b5f3:_0xbfbda[_0x21914b(0x3a3)][_0x58b5f3['id']]=_0x58b5f3,_0x38e2b7(_0xbfbda,_0x18d296)[_0x21914b(0xb1)](_0x2d6228,0x0,_0x58b5f3['id']);}function _0xa753c8(_0x23ac0c,_0x291fd6){const _0x57f36f=_0x2b16d4,{area:_0x547d78,fieldId:_0x5a0311,index:_0x2d957b}=_0x291fd6;_0x547d78===_0x3e0737[_0x57f36f(0x372)][_0x57f36f(0xbb)]?delete _0x23ac0c['measure'][_0x5a0311]:delete _0x23ac0c[_0x57f36f(0x3a3)][_0x5a0311],_0x38e2b7(_0x23ac0c,_0x547d78)[_0x57f36f(0xb1)](_0x2d957b,0x1);}function _0x66d0fc(_0xc1d724,_0x11471f){const _0x1a575b=_0x2b16d4,{fieldId:_0x1ba007,name:_0x483b75}=_0x11471f,_0x35bf22=_0x228875(_0xc1d724,_0x1ba007);_0x35bf22&&(_0x35bf22[_0x1a575b(0x38c)]=_0x483b75);}function _0x2cd3b1(_0x20b573,_0x2cfd20){const _0x2c5e26=_0x2b16d4,{fieldId:_0x4147ec,collapse:_0x5dc478,item:_0x540435}=_0x2cfd20;_0x540435!==void 0x0?(_0x20b573[_0x2c5e26(0x222)][_0x4147ec]=_0x20b573[_0x2c5e26(0x222)][_0x4147ec]||{},_0x20b573[_0x2c5e26(0x222)][_0x4147ec][_0x540435]=_0x5dc478):_0x20b573[_0x2c5e26(0x222)][_0x4147ec]=_0x5dc478;}function _0x229054(_0x20e761,_0xeb2cc1){const _0x1b8249=_0x2b16d4,{fieldId:_0x50b5c4,format:_0x4f41de}=_0xeb2cc1,_0x569a8a=_0x228875(_0x20e761,_0x50b5c4);_0x569a8a&&(_0x569a8a[_0x1b8249(0x251)]=_0x4f41de);}function _0x5a9108(_0x27467d,_0x4fe12b){const _0x2d984e=_0x2b16d4,{fieldId:_0x3b16c5,filterInfo:_0x538d31}=_0x4fe12b,_0x11e32e=_0x228875(_0x27467d,_0x3b16c5);_0x11e32e&&(_0x11e32e[_0x2d984e(0x361)]=_0x538d31);}function _0x48a926(_0x2f13f2,_0x1a9763){const _0x257e0e=_0x2b16d4,{fieldId:_0x335197,filterInfo:_0x48e039}=_0x1a9763,_0x3e100b=_0x2f13f2[_0x257e0e(0x306)][_0x257e0e(0x179)](_0x4956ce=>_0x4956ce[_0x257e0e(0x131)]!==_0x335197);_0x48e039&&_0x3e100b[_0x257e0e(0x338)]({'fieldId':_0x335197,'filterInfo':_0x48e039}),_0x2f13f2[_0x257e0e(0x306)]=_0x3e100b;}function _0xb85e22(_0x560cab,_0x48cfc6){const _0x4f39f7=_0x2b16d4,{fieldId:_0x4b1a49,subtotalType:_0x4958f3}=_0x48cfc6,_0x1263b7=_0x228875(_0x560cab,_0x4b1a49);_0x1263b7&&(_0x1263b7[_0x4f39f7(0x250)]=_0x4958f3);}function _0x3daf9f(_0x3273ca,_0x39f64c){const _0x3e3174=_0x2b16d4,{fieldId:_0x34a2ce,oldArea:_0x10affd,area:_0x3589ca,oldIndex:_0x1006e5,index:_0x5a450e}=_0x39f64c,_0x251f84=_0x10affd!==_0x3e0737[_0x3e3174(0x372)]['Value']&&_0x3589ca===_0x3e0737[_0x3e3174(0x372)]['Value'],_0x5017c3=_0x10affd===_0x3e0737[_0x3e3174(0x372)]['Value']&&_0x3589ca!==_0x3e0737[_0x3e3174(0x372)][_0x3e3174(0xbb)];if(_0x251f84||_0x5017c3){const _0x1d1397=_0x228875(_0x3273ca,_0x34a2ce);_0x1d1397&&(_0x251f84?(delete _0x3273ca[_0x3e3174(0x3a3)][_0x34a2ce],_0x3273ca['measure'][_0x34a2ce]=_0x1d1397):(delete _0x3273ca[_0x3e3174(0xee)][_0x34a2ce],_0x3273ca[_0x3e3174(0x3a3)][_0x34a2ce]=_0x1d1397));}const _0x2ba9b6=_0x38e2b7(_0x3273ca,_0x10affd),_0xeeb266=_0x38e2b7(_0x3273ca,_0x3589ca);_0x2ba9b6[_0x3e3174(0xb1)](_0x1006e5,0x1),_0xeeb266['splice'](_0x5a450e,0x0,_0x34a2ce);}function _0x4a00b0(_0x149a04,_0x4dfd1f){const _0x3e992c=_0x2b16d4,{valuePosition:_0x4748ce,index:_0x2539c1}=_0x4dfd1f;_0x149a04[_0x3e992c(0x32f)]=_0x4748ce,_0x149a04[_0x3e992c(0x117)]=_0x2539c1;}function _0xffa9fd(_0x4699c1,_0x4ad196){const _0x27f82b=_0x2b16d4,{tableFieldId:_0x32c910,sourceName:_0x1ad71a,dataFieldId:_0xeadf1c}=_0x4ad196,_0xb30da3=_0x228875(_0x4699c1,_0x32c910);_0xb30da3&&(_0xb30da3[_0x27f82b(0x1fa)]=_0x1ad71a,_0xb30da3['dataFieldId']=_0xeadf1c);}function _0x56ad45(_0x3096b3,_0x24736c){const _0x237e8a=_0x2b16d4,{fieldId:_0x2a2bb3,sortInfo:_0xde9cd2}=_0x24736c,_0x2657a1=_0x228875(_0x3096b3,_0x2a2bb3);_0x2657a1&&(_0x2657a1[_0x237e8a(0x227)]=_0xde9cd2);}function _0x23b563(_0x56fbde,_0x5a0781){const _0x50de76=_0x2b16d4,{options:_0xf16421}=_0x5a0781;_0x56fbde['options']={..._0x56fbde[_0x50de76(0x1bb)],..._0xf16421};}const _0x5ab80d={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x135),'handler'(_0x27dea1,_0x49190f){const _0x4b5789=_0x2b16d4;if(!_0x49190f)return!0x1;if(!!_0x27dea1[_0x4b5789(0x1a9)](_0x282877[_0x4b5789(0xc1)])[_0x4b5789(0xf8)](_0x3ecd37))return!0x0;const _0x480e80=_0x27dea1['get'](_0x24d96c[_0x4b5789(0x1b4)]),{pivotTableId:_0x1f4afb,fieldJson:_0x4acfce,area:_0x1e5f07,index:_0x261597,unitId:_0x3dcb78,subUnitId:_0x195b40}=_0x49190f,_0x4900b0=_0x480e80[_0x4b5789(0x185)](_0x1f4afb);if(!_0x4900b0)return!0x1;let _0x2d5f5f;_0x1e5f07===_0x3e0737[_0x4b5789(0x372)]['Value']?_0x2d5f5f=_0x3e0737['createValueField'](_0x4acfce):_0x2d5f5f=_0x3e0737[_0x4b5789(0x39f)](_0x4acfce),_0x4900b0[_0x4b5789(0x38f)](_0x2d5f5f,_0x1e5f07,_0x261597);const _0x1b0049=_0x480e80[_0x4b5789(0x2d1)](_0x3dcb78,_0x195b40,_0x1f4afb);_0x5d15e7(_0x1b0049,_0x49190f);const _0x2d7331=_0x480e80[_0x4b5789(0x13c)](_0x3dcb78,_0x195b40,_0x1f4afb);return _0x480e80[_0x4b5789(0x224)]({'unitId':_0x3dcb78,'subUnitId':_0x195b40,'token':_0x1f4afb,'type':_0xa5664b[_0x4b5789(0x127)],'pivotConfig':_0x2d7331}),!0x0;}},_0x422578={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x1bc775,_0x5345fd){const _0x1375b2=_0x2b16d4;if(!_0x5345fd)return!0x1;if(!!_0x1bc775[_0x1375b2(0x1a9)](_0x282877[_0x1375b2(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0xaa0a10=_0x1bc775[_0x1375b2(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{pivotTableId:_0x4a8e3a,fieldId:_0x24b2b5,unitId:_0x10608a,subUnitId:_0x3d5116}=_0x5345fd,_0x2baba6=_0xaa0a10[_0x1375b2(0x185)](_0x4a8e3a);if(!_0x2baba6)return!0x1;_0x2baba6[_0x1375b2(0x218)](_0x24b2b5);const _0x1f838b=_0xaa0a10[_0x1375b2(0x2d1)](_0x10608a,_0x3d5116,_0x4a8e3a);_0xa753c8(_0x1f838b,_0x5345fd);const _0x299e32=_0xaa0a10[_0x1375b2(0x13c)](_0x10608a,_0x3d5116,_0x4a8e3a);return _0xaa0a10['addDirtyPivotTable']({'unitId':_0x10608a,'subUnitId':_0x3d5116,'token':_0x4a8e3a,'type':_0xa5664b['Set'],'pivotConfig':_0x299e32}),!0x0;}},_0x406f56={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.rename-pivot-field','handler'(_0xc70ed8,_0x25ae5f){const _0x592755=_0x2b16d4;if(!_0x25ae5f)return!0x1;if(!!_0xc70ed8[_0x592755(0x1a9)](_0x282877['IConfigService'])[_0x592755(0xf8)](_0x3ecd37))return!0x0;const _0x181f5f=_0xc70ed8[_0x592755(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{unitId:_0x3b2689,subUnitId:_0x8b57a4,pivotTableId:_0x308ba7,fieldId:_0x1ee313,name:_0x44e8db}=_0x25ae5f,_0x22739c=_0x181f5f[_0x592755(0x185)](_0x308ba7);if(!_0x22739c)return!0x1;_0x22739c[_0x592755(0x32b)](_0x1ee313,_0x44e8db);const _0x332cf8=_0x181f5f[_0x592755(0x2d1)](_0x3b2689,_0x8b57a4,_0x308ba7);return _0x66d0fc(_0x332cf8,_0x25ae5f),_0x181f5f[_0x592755(0x224)]({'unitId':_0x3b2689,'subUnitId':_0x8b57a4,'token':_0x308ba7,'type':_0xa5664b['Set']}),!0x0;}},_0x42179c={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x159),'handler'(_0x54be75,_0x877a09){const _0x1dc172=_0x2b16d4;if(!_0x877a09)return!0x1;if(!!_0x54be75[_0x1dc172(0x1a9)](_0x282877[_0x1dc172(0xc1)])[_0x1dc172(0xf8)](_0x3ecd37))return!0x0;const _0x4d9606=_0x54be75[_0x1dc172(0x1a9)](_0x24d96c[_0x1dc172(0x1b4)]),{unitId:_0x374e1f,subUnitId:_0x2c9547,pivotTableId:_0x50bc8,fieldId:_0x285fa5,collapse:_0x338c2f,item:_0x370b31}=_0x877a09,_0x122b8c=_0x4d9606['getPivotTableInstance'](_0x50bc8);if(!_0x122b8c)return!0x1;_0x122b8c['setCollapse'](_0x285fa5,_0x338c2f,_0x370b31);const _0x266125=_0x4d9606[_0x1dc172(0x2d1)](_0x374e1f,_0x2c9547,_0x50bc8);return _0x2cd3b1(_0x266125,_0x877a09),_0x4d9606[_0x1dc172(0x224)]({'unitId':_0x374e1f,'subUnitId':_0x2c9547,'token':_0x50bc8,'type':_0xa5664b['Set']}),!0x0;}},_0x233cb2={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x336),'handler'(_0x323754,_0x2a203c){const _0x2b9584=_0x2b16d4;if(!_0x2a203c)return!0x1;if(!!_0x323754[_0x2b9584(0x1a9)](_0x282877[_0x2b9584(0xc1)])[_0x2b9584(0xf8)](_0x3ecd37))return!0x0;const _0x36e917=_0x323754[_0x2b9584(0x1a9)](_0x24d96c[_0x2b9584(0x1b4)]),{unitId:_0x48d63d,subUnitId:_0x2ba41c,pivotTableId:_0x2286de,fieldId:_0x184473,format:_0x471276}=_0x2a203c,_0x52a0d6=_0x36e917[_0x2b9584(0x185)](_0x2286de);if(!_0x52a0d6)return!0x1;_0x52a0d6['setFieldFormat'](_0x184473,_0x471276);const _0x357526=_0x36e917['getPivotTableModelConfig'](_0x48d63d,_0x2ba41c,_0x2286de);return _0x229054(_0x357526,_0x2a203c),_0x36e917[_0x2b9584(0x224)]({'unitId':_0x48d63d,'subUnitId':_0x2ba41c,'token':_0x2286de,'type':_0xa5664b[_0x2b9584(0x127)]}),!0x0;}},_0x59b12d={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x18c),'handler'(_0x1452ad,_0x227c4a){const _0x30bc94=_0x2b16d4;if(!_0x227c4a)return!0x1;if(!!_0x1452ad['get'](_0x282877[_0x30bc94(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0x3b7389=_0x1452ad[_0x30bc94(0x1a9)](_0x24d96c[_0x30bc94(0x1b4)]),{unitId:_0x123596,subUnitId:_0x282c7a,pivotTableId:_0x57270b,fieldId:_0x2589ae,filterInfo:_0xd85002}=_0x227c4a,_0xf786cf=_0x3b7389[_0x30bc94(0x185)](_0x57270b);if(!_0xf786cf)return!0x1;_0xf786cf[_0x30bc94(0x317)](_0x2589ae,_0xd85002);const _0x539ed2=_0x3b7389[_0x30bc94(0x2d1)](_0x123596,_0x282c7a,_0x57270b);return _0x5a9108(_0x539ed2,_0x227c4a),_0x3b7389['addDirtyPivotTable']({'unitId':_0x123596,'subUnitId':_0x282c7a,'token':_0x57270b,'type':_0xa5664b[_0x30bc94(0x127)]}),!0x0;}},_0x2dd0f8={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0xc8),'handler'(_0x489c96,_0x3f10b6){const _0x43ac45=_0x2b16d4;if(!_0x3f10b6)return!0x1;if(!!_0x489c96[_0x43ac45(0x1a9)](_0x282877[_0x43ac45(0xc1)])[_0x43ac45(0xf8)](_0x3ecd37))return!0x0;const _0x259b4b=_0x489c96['get'](_0x24d96c[_0x43ac45(0x1b4)]),{unitId:_0x3e79fb,subUnitId:_0x38fb91,pivotTableId:_0x33ca0b,options:_0x133c23}=_0x3f10b6,_0x22b800=_0x259b4b[_0x43ac45(0x185)](_0x33ca0b);if(!_0x22b800)return!0x1;_0x22b800['setOptions'](_0x133c23);const _0x6c10f5=_0x259b4b[_0x43ac45(0x2d1)](_0x3e79fb,_0x38fb91,_0x33ca0b);return _0x23b563(_0x6c10f5,_0x3f10b6),_0x259b4b[_0x43ac45(0x224)]({'unitId':_0x3e79fb,'subUnitId':_0x38fb91,'token':_0x33ca0b,'type':_0xa5664b[_0x43ac45(0x127)]}),!0x0;}},_0x948cfc={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x1cc),'handler'(_0x355e91,_0x1c4c90){const _0x65e6ec=_0x2b16d4;if(!_0x1c4c90)return!0x1;if(!!_0x355e91[_0x65e6ec(0x1a9)](_0x282877[_0x65e6ec(0xc1)])[_0x65e6ec(0xf8)](_0x3ecd37))return!0x0;const _0x43b89f=_0x355e91[_0x65e6ec(0x1a9)](_0x24d96c[_0x65e6ec(0x1b4)]),{unitId:_0xe7bfa6,subUnitId:_0x2e361d,pivotTableId:_0xb14cb2,sortInfo:_0x4111b6,fieldId:_0x2498be}=_0x1c4c90,_0x4ccd41=_0x43b89f[_0x65e6ec(0x185)](_0xb14cb2);if(!_0x4ccd41)return!0x1;_0x4ccd41[_0x65e6ec(0x399)](_0x2498be,_0x4111b6);const _0x4cc86f=_0x43b89f['getPivotTableModelConfig'](_0xe7bfa6,_0x2e361d,_0xb14cb2);return _0x56ad45(_0x4cc86f,_0x1c4c90),_0x43b89f['addDirtyPivotTable']({'unitId':_0xe7bfa6,'subUnitId':_0x2e361d,'token':_0xb14cb2,'type':_0xa5664b[_0x65e6ec(0x127)]}),!0x0;}},_0x2ec070={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x1c5),'handler'(_0x38f6f2,_0x5c7e30){const _0x4b6546=_0x2b16d4;if(!_0x5c7e30)return!0x1;if(!!_0x38f6f2[_0x4b6546(0x1a9)](_0x282877[_0x4b6546(0xc1)])[_0x4b6546(0xf8)](_0x3ecd37))return!0x0;const _0x45dcb3=_0x38f6f2[_0x4b6546(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{unitId:_0x1b7f91,subUnitId:_0x48da92,pivotTableId:_0x46faa6,fieldId:_0x28b1f2,subtotalType:_0x11781c}=_0x5c7e30,_0x3b7db2=_0x45dcb3['getPivotTableInstance'](_0x46faa6);if(!_0x3b7db2)return!0x1;_0x3b7db2['setSubtotalType'](_0x28b1f2,_0x11781c);const _0x5b227c=_0x45dcb3[_0x4b6546(0x2d1)](_0x1b7f91,_0x48da92,_0x46faa6);return _0xb85e22(_0x5b227c,_0x5c7e30),_0x45dcb3[_0x4b6546(0x224)]({'unitId':_0x1b7f91,'subUnitId':_0x48da92,'token':_0x46faa6,'type':_0xa5664b['Set']}),!0x0;}},_0x2d2d96={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x360736,_0x319add){const _0x1cddea=_0x2b16d4;if(!_0x319add)return!0x1;if(!!_0x360736[_0x1cddea(0x1a9)](_0x282877[_0x1cddea(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0xb8f6ae=_0x360736[_0x1cddea(0x1a9)](_0x24d96c[_0x1cddea(0x1b4)]),{unitId:_0x539cd6,subUnitId:_0x36c217,pivotTableId:_0x1d9e4c,fieldId:_0x56a9dc,filterInfo:_0x27b429}=_0x319add,_0x327a16=_0xb8f6ae['getPivotTableInstance'](_0x1d9e4c);if(!_0x327a16)return!0x1;_0x327a16[_0x1cddea(0x2c8)](_0x56a9dc,_0x27b429);const _0x45dee6=_0xb8f6ae['getPivotTableModelConfig'](_0x539cd6,_0x36c217,_0x1d9e4c);return _0x48a926(_0x45dee6,_0x319add),_0xb8f6ae['addDirtyPivotTable']({'unitId':_0x539cd6,'subUnitId':_0x36c217,'token':_0x1d9e4c,'type':_0xa5664b[_0x1cddea(0x127)]}),!0x0;}},_0x2a81cb={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x22a),'handler'(_0x32e8ac,_0x162084){const _0x5d093c=_0x2b16d4;if(!_0x162084)return!0x1;if(!!_0x32e8ac['get'](_0x282877[_0x5d093c(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0xe92e74=_0x32e8ac[_0x5d093c(0x1a9)](_0x24d96c[_0x5d093c(0x1b4)]),{unitId:_0x4b2e7c,subUnitId:_0x52544c,pivotTableId:_0x22bb9a,area:_0x25062f,index:_0x1dbb7e,fieldId:_0x1592fa}=_0x162084,_0x50b4ad=_0xe92e74['getPivotTableInstance'](_0x22bb9a);if(!_0x50b4ad)return!0x1;_0x50b4ad[_0x5d093c(0x31d)](_0x1592fa,_0x25062f,_0x1dbb7e);const _0x11e509=_0xe92e74[_0x5d093c(0x2d1)](_0x4b2e7c,_0x52544c,_0x22bb9a);return _0x3daf9f(_0x11e509,_0x162084),_0xe92e74['addDirtyPivotTable']({'unitId':_0x4b2e7c,'subUnitId':_0x52544c,'token':_0x22bb9a,'type':_0xa5664b['Set']}),!0x0;}},_0x595fcf={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0xa1),'handler'(_0x18b0cc,_0x17fc88){const _0x46ed1d=_0x2b16d4;if(!_0x17fc88)return!0x1;if(!!_0x18b0cc[_0x46ed1d(0x1a9)](_0x282877[_0x46ed1d(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const _0x4638c8=_0x18b0cc[_0x46ed1d(0x1a9)](_0x24d96c[_0x46ed1d(0x1b4)]),{unitId:_0x2ba0ae,subUnitId:_0x54854e,pivotTableId:_0x2d3be3,sourceName:_0x14ebac,dataFieldId:_0x46a3fb,tableFieldId:_0x584483}=_0x17fc88,_0x26143e=_0x4638c8[_0x46ed1d(0x185)](_0x2d3be3);if(!_0x26143e)return!0x1;_0x26143e[_0x46ed1d(0x114)](_0x584483,_0x14ebac,_0x46a3fb);const _0x5eae78=_0x4638c8[_0x46ed1d(0x2d1)](_0x2ba0ae,_0x54854e,_0x2d3be3);return _0xffa9fd(_0x5eae78,_0x17fc88),_0x4638c8[_0x46ed1d(0x224)]({'unitId':_0x2ba0ae,'subUnitId':_0x54854e,'token':_0x2d3be3,'type':_0xa5664b[_0x46ed1d(0x127)]}),!0x0;}},_0x2647c7={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x22e),'handler'(_0x1e5091,_0x12a13a){const _0x413497=_0x2b16d4;if(!_0x12a13a)return!0x1;if(!!_0x1e5091['get'](_0x282877[_0x413497(0xc1)])[_0x413497(0xf8)](_0x3ecd37))return!0x0;const _0x58d2f8=_0x1e5091[_0x413497(0x1a9)](_0x24d96c[_0x413497(0x1b4)]),{unitId:_0x2b705c,subUnitId:_0x51be11,pivotTableId:_0x5a40bc,valuePosition:_0x12e89e,index:_0x4292a5}=_0x12a13a,_0x3a30c7=_0x58d2f8[_0x413497(0x185)](_0x5a40bc);if(!_0x3a30c7)return!0x1;_0x3a30c7[_0x413497(0x1df)](_0x12e89e,_0x4292a5);const _0x38b052=_0x58d2f8[_0x413497(0x2d1)](_0x2b705c,_0x51be11,_0x5a40bc);return _0x4a00b0(_0x38b052,_0x12a13a),_0x58d2f8[_0x413497(0x224)]({'unitId':_0x2b705c,'subUnitId':_0x51be11,'token':_0x5a40bc,'type':_0xa5664b[_0x413497(0x127)]}),!0x0;}};function _0x14e595(_0x8af065,_0x1bdefd,_0x3b3a14){const _0x3ac9be=_0x2b16d4,{pivotTableId:_0x12b206,unitId:_0x6665b7,subUnitId:_0x54b16b}=_0x1bdefd,_0x838345=[],_0x4353e7=[];for(const _0x5a17ef of _0x3b3a14)switch(_0x5a17ef[_0x3ac9be(0x1e7)]){case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x197)]:{const {fieldJson:_0xce6ee3,area:_0x9c61f3,index:_0x2bb362}=_0x5a17ef,_0x2c2ecd={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldJson':_0xce6ee3,'area':_0x9c61f3,'index':_0x2bb362},_0x473f9d={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0xce6ee3['id'],'area':_0x9c61f3,'index':_0x2bb362};_0x838345[_0x3ac9be(0x338)]({'id':_0x5ab80d['id'],'params':_0x2c2ecd}),_0x4353e7['unshift']({'id':_0x422578['id'],'params':_0x473f9d});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x2dd)]:{const {fieldId:_0x4de92b,newSubtotalType:_0x3f4adf,oldSubtotalType:_0x6c4700}=_0x5a17ef,_0x2aaa06={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x4de92b,'subtotalType':_0x3f4adf};_0x838345[_0x3ac9be(0x338)]({'id':_0x2ec070['id'],'params':_0x2aaa06});const _0x2d7116={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x4de92b,'subtotalType':_0x6c4700};_0x4353e7['unshift']({'id':_0x2ec070['id'],'params':_0x2d7116});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x358)]:{const {fieldId:_0x1bd275,fieldJson:_0x27e784,area:_0x4950ca,index:_0x2e4364}=_0x5a17ef,_0x4098bd={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x1bd275,'index':_0x2e4364,'area':_0x4950ca};_0x838345[_0x3ac9be(0x338)]({'id':_0x422578['id'],'params':_0x4098bd});const _0x19eb07={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldJson':_0x27e784,'area':_0x4950ca,'index':_0x2e4364};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x5ab80d['id'],'params':_0x19eb07});}break;case _0x3e0737['PivotTableChangeTypeEnum'][_0x3ac9be(0x2dc)]:{const {fieldId:_0x57ff7c,oldName:_0x18853f,newName:_0x4f6ed3}=_0x5a17ef,_0x487ac9={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x57ff7c,'name':_0x4f6ed3};_0x838345[_0x3ac9be(0x338)]({'id':_0x406f56['id'],'params':_0x487ac9});const _0x28e969={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x57ff7c,'name':_0x18853f};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x406f56['id'],'params':_0x28e969});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x233)]:{const {fieldId:_0x555d1e,oldFilterInfo:_0x4c94bf,newFilterInfo:_0x4ead9f}=_0x5a17ef,_0x367b0c={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x555d1e,'filterInfo':_0x4ead9f};_0x838345['push']({'id':_0x59b12d['id'],'params':_0x367b0c});const _0xd8fd98={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x555d1e,'filterInfo':_0x4c94bf};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x59b12d['id'],'params':_0xd8fd98});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x195)]:{const {fieldId:_0x44456a,oldSortInfo:_0x34c05f,newSortInfo:_0xc4fb04}=_0x5a17ef,_0x376b52={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x44456a,'sortInfo':_0xc4fb04};_0x838345[_0x3ac9be(0x338)]({'id':_0x948cfc['id'],'params':_0x376b52});const _0x39f4b7={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x44456a,'sortInfo':_0x34c05f};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x948cfc['id'],'params':_0x39f4b7});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x371)]:{const {oldOptions:_0x3952c1,newOptions:_0x1979cb}=_0x5a17ef,_0x3f4bbd={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'options':_0x1979cb};_0x838345[_0x3ac9be(0x338)]({'id':_0x2dd0f8['id'],'params':_0x3f4bbd});const _0x2a0efe={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'options':_0x3952c1};_0x4353e7['unshift']({'id':_0x2dd0f8['id'],'params':_0x2a0efe});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['UpdateFieldPosition']:{const {oldArea:_0x550e1b,newArea:_0x45d0e,oldIndex:_0x29127c,newIndex:_0x337454,fieldId:_0x275725}=_0x5a17ef,_0x1d7d8f={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x275725,'area':_0x45d0e,'index':_0x337454,'oldArea':_0x550e1b,'oldIndex':_0x29127c};_0x838345['push']({'id':_0x2a81cb['id'],'params':_0x1d7d8f});const _0x29e190={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x275725,'area':_0x550e1b,'index':_0x29127c,'oldArea':_0x45d0e,'oldIndex':_0x337454};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x2a81cb['id'],'params':_0x29e190});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['UpdateValuePosition']:{const {oldValuePosition:_0x4e22e0,newValuePosition:_0x156b19,oldIndex:_0xed51ab,newIndex:_0xbef667}=_0x5a17ef,_0x3adb01={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'valuePosition':_0x156b19,'index':_0xbef667};_0x838345[_0x3ac9be(0x338)]({'id':_0x2647c7['id'],'params':_0x3adb01});const _0x35e788={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'valuePosition':_0x4e22e0,'index':_0xed51ab};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x2647c7['id'],'params':_0x35e788});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x132)]:{const {fieldId:_0x18e493,collapse:_0x2b015a,item:_0x4a8ddf}=_0x5a17ef,_0x4d6cd7={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x18e493,'collapse':_0x2b015a,'item':_0x4a8ddf};_0x838345[_0x3ac9be(0x338)]({'id':_0x42179c['id'],'params':_0x4d6cd7});const _0x478284={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x18e493,'collapse':!_0x2b015a,'item':_0x4a8ddf};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x42179c['id'],'params':_0x478284});}break;case _0x3e0737[_0x3ac9be(0x2c4)][_0x3ac9be(0x2d5)]:{const {newFormat:_0x12497b,oldFormat:_0x1401f9,fieldId:_0xdab1f2}=_0x5a17ef,_0x1dfbf0={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0xdab1f2,'format':_0x12497b};_0x838345['push']({'id':_0x233cb2['id'],'params':_0x1dfbf0});const _0x58dd5f={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0xdab1f2,'format':_0x1401f9};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x233cb2['id'],'params':_0x58dd5f});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['UpdateSource']:{const {tableFieldId:_0x33abb7,oldSourceName:_0x4ad89a,newSourceName:_0x412d59,oldDataFieldId:_0x34ff2a,newDataFieldId:_0x39c5bf}=_0x5a17ef,_0x1c2ad7={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'tableFieldId':_0x33abb7,'sourceName':_0x412d59,'dataFieldId':_0x39c5bf};_0x838345['push']({'id':_0x595fcf['id'],'params':_0x1c2ad7});const _0x16f58c={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'tableFieldId':_0x33abb7,'sourceName':_0x4ad89a,'dataFieldId':_0x34ff2a};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x595fcf['id'],'params':_0x16f58c});}break;case _0x3e0737[_0x3ac9be(0x2c4)]['SetValueFilter']:{const {fieldId:_0x1997c,filterInfo:_0x43d115,oldFilterInfo:_0x41bad7}=_0x5a17ef,_0x20da24={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x1997c,'filterInfo':_0x43d115};_0x838345[_0x3ac9be(0x338)]({'id':_0x2d2d96['id'],'params':_0x20da24});const _0x361e83={'unitId':_0x6665b7,'subUnitId':_0x54b16b,'pivotTableId':_0x12b206,'fieldId':_0x1997c,'filterInfo':_0x41bad7};_0x4353e7[_0x3ac9be(0x36f)]({'id':_0x2d2d96['id'],'params':_0x361e83});}}return{'redos':_0x838345,'undos':_0x4353e7};}function _0x41310d(_0x1ccf46,_0x31464e){const _0x276490=_0x2b16d4;var _0x3a19a8;const _0x57131b=_0x1ccf46[_0x276490(0x1a9)](_0x24d96c[_0x276490(0x199)]),{cellInfo:_0x354253,view:_0x12cf08,isEmpty:_0x58eadd}=_0x31464e;return(_0x3a19a8=_0x57131b[_0x276490(0x388)][_0x276490(0x1d5)](_0x3c85f0)(_0x5ac153,{'cellInfo':_0x354253,'view':_0x12cf08,'isEmpty':_0x58eadd}))!=null?_0x3a19a8:_0x5ac153;}const _0x3e5b81={'type':_0x282877['CommandType']['COMMAND'],'id':_0x2b16d4(0x293),async 'handler'(_0x2f5df5,_0xb16534){const _0x207ba1=_0x2b16d4;if(!_0xb16534)return!0x1;const _0x62ef64=_0x2f5df5[_0x207ba1(0x1a9)](_0x282877[_0x207ba1(0x240)]),_0x52ec3e=_0x2f5df5[_0x207ba1(0x1a9)](_0x24d96c[_0x207ba1(0xde)]),_0x223813=_0x2f5df5[_0x207ba1(0x1a9)](_0x282877[_0x207ba1(0xfb)]),{pivotTableId:_0x54db02,dataFieldId:_0x10afe7,fieldArea:_0x1b9ca7,index:_0x44c52c,unitId:_0xb951c1,subUnitId:_0x1cc5ec}=_0xb16534,_0x48d79a=(await _0x52ec3e['getPivotDisplayConfig']({'unitId':_0xb951c1,'subUnitId':_0x1cc5ec,'pivotTableId':_0x54db02,'params':{'type':_0x15dd40[_0x207ba1(0xa2)],'addPivotField':{'dataFieldId':_0x10afe7,'fieldArea':_0x1b9ca7,'index':_0x44c52c}}}))[_0x207ba1(0xf5)][_0x207ba1(0xda)];if(!_0x48d79a)return!0x1;const {view:_0x2e1ee8,changesets:_0x3cf309,isEmpty:_0x1c1a8f,pivotTableConfig:_0x4e4b2b,shouldBeAddedGroupJSON:_0xe74275}=_0x48d79a,_0xbe40aa=_0x4e4b2b[_0x207ba1(0x360)],_0x4b08aa=new _0x3e0737[(_0x207ba1(0xe5))]();_0x4b08aa[_0x207ba1(0x38d)](_0x2e1ee8);const _0x1bbe7e={'cellInfo':_0xbe40aa,'view':_0x4b08aa,'isEmpty':_0x1c1a8f};if(!await _0x2f5df5[_0x207ba1(0x1a9)](_0x24d96c[_0x207ba1(0x199)])[_0x207ba1(0x29c)]['fetchThroughAsyncInterceptors'](_0x387164)(!0x0,_0x1bbe7e))return!0x1;const _0x10144a=_0x43927d(_0x2f5df5,_0x4b08aa,_0xbe40aa,_0x1c1a8f),_0x30206f=_0x41310d(_0x2f5df5,_0x1bbe7e),{undos:_0x364a39,redos:_0x440270}=_0x14e595(_0x62ef64,{'pivotTableId':_0x54db02,'unitId':_0xb951c1,'subUnitId':_0x1cc5ec},_0x3cf309);return _0xe74275&&(_0x440270[_0x207ba1(0x36f)]({'id':_0x2025a4['id'],'params':{'pivotTableId':_0x54db02,'fieldJSON':_0xe74275,'unitId':_0xb951c1,'subUnitId':_0x1cc5ec}}),_0x364a39[_0x207ba1(0x338)]({'id':_0x38013c['id'],'params':{'pivotTableId':_0x54db02,'dataFieldId':_0xe74275['id'],'unitId':_0xb951c1,'subUnitId':_0x1cc5ec}})),_0x282877['sequenceExecute']([..._0x10144a[_0x207ba1(0x2a3)],..._0x30206f[_0x207ba1(0x2a3)],..._0x440270],_0x62ef64),_0x223813[_0x207ba1(0x249)]({'unitID':_0xb951c1,'redoMutations':[..._0x10144a[_0x207ba1(0x2a3)],..._0x30206f['redos'],..._0x440270],'undoMutations':[..._0x10144a[_0x207ba1(0x1cd)],..._0x30206f[_0x207ba1(0x1cd)],..._0x364a39]}),!0x0;}},_0x1ef885=()=>typeof process<'u'&&process[_0x2b16d4(0x181)]!=null&&process[_0x2b16d4(0x181)][_0x2b16d4(0x24a)]!=null,_0x1e563e={'type':_0x282877[_0x2b16d4(0x205)]['MUTATION'],'id':_0x2b16d4(0x140),'handler'(_0x2b9a22,_0x17611e){const _0x59f717=_0x2b16d4;var _0x106717;if(!_0x17611e)return!0x1;const _0x4ee693=_0x2b9a22['get'](_0x282877[_0x59f717(0xc1)]);if(!!_0x4ee693[_0x59f717(0xf8)](_0x3ecd37))return!0x0;const _0x1af387=_0x2b9a22[_0x59f717(0x1a9)](_0x282877['IUniverInstanceService']),_0x53cd5d=_0x2b9a22[_0x59f717(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{pivotTableId:_0x4a643b,pivotTableConfig:_0x27bac2,collectionConfig:_0x3d542a,unitId:_0x3206da,subUnitId:_0x4e70c1}=_0x17611e,{sourceRangeInfo:_0x274267,fieldsConfig:_0x2b30ea,targetCellInfo:_0x59d415}=_0x27bac2,_0xa1d262=_0x1af387[_0x59f717(0x352)](_0x3206da);if(!_0xa1d262||!_0xa1d262[_0x59f717(0x374)](_0x4e70c1))return!0x1;if(!_0x1ef885()){let _0x2aa5f6=0x0;_0xa1d262[_0x59f717(0xbe)]()[_0x59f717(0xff)](_0x2ba598=>{const _0x23a13a=_0x59f717;var _0x2baea7,_0x46bfda;_0x2aa5f6+=(_0x46bfda=(_0x2baea7=_0x53cd5d[_0x23a13a(0x231)](_0x3206da,_0x2ba598[_0x23a13a(0x2a9)]()))==null?void 0x0:_0x2baea7[_0x23a13a(0x1a5)])!=null?_0x46bfda:0x0;});const _0x58b9b2=(_0x106717=_0x4ee693[_0x59f717(0xf8)](_0x5b0681[_0x59f717(0x1e4)]))!=null?_0x106717:{},{ls:_0x245006,pbk:_0x2fa26c}=_0x58b9b2;if(!_0x49a50c(_0x245006,_0x2fa26c))throw new _0x282877[(_0x59f717(0xad))](_0x59f717(0x19b));const _0x692462=_0x9a8ebd(_0x1e520c,_0x245006,_0x2fa26c)[_0x59f717(0x208)];if(_0x2aa5f6>=_0x692462)throw new _0x282877[(_0x59f717(0xad))](_0x59f717(0x19b));}if(!_0x3d542a||!_0x2b30ea)return!0x1;const {collection:_0x1288ce,updateDataFieldList:_0x469080}=_0x53cd5d[_0x59f717(0x1de)](_0x4a643b,_0x3d542a,_0x274267,_0x59d415);_0x53cd5d[_0x59f717(0x265)](_0x1288ce,_0x469080,_0x274267);const _0x29ab7e=new _0x3e0737[(_0x59f717(0x277))](_0x1288ce,void 0x0,_0x4a643b);_0x29ab7e[_0x59f717(0x39c)](_0x2b30ea);const _0x45f813=JSON[_0x59f717(0x1ed)](JSON[_0x59f717(0x11f)](_0x27bac2));return _0x53cd5d[_0x59f717(0x11d)](_0x3206da,_0x4e70c1,_0x4a643b,_0x29ab7e,_0x45f813),_0x53cd5d['addDirtyPivotTable']({'unitId':_0x3206da,'subUnitId':_0x4e70c1,'token':_0x4a643b,'type':_0xa5664b[_0x59f717(0x28e)],'pivotConfig':_0x45f813}),!0x0;}},_0x51c1da={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x16b),async 'handler'(_0x5371d5,_0xd4b248){const _0x26a7bf=_0x2b16d4;if(!_0xd4b248)return!0x1;const {sourceDataInfo:_0x51907a,pivotTableConfig:_0x5f0517}=_0xd4b248;if(!_0x51907a||!_0x5f0517)return!0x1;const {unitId:_0x3eace2,subUnitId:_0x425aa1,range:_0x4132f7}=_0x51907a,_0xcc8bd3=_0x5371d5[_0x26a7bf(0x1a9)](_0x282877[_0x26a7bf(0x165)]),_0x403a03=_0x5371d5[_0x26a7bf(0x1a9)](_0x24d96c[_0x26a7bf(0xde)]),_0x2ad8d9=_0x5371d5['get'](_0x282877['LocaleService']),_0x1a8eb6=_0x5371d5['get'](_0x282877[_0x26a7bf(0x240)]),_0x522ef9=_0xcc8bd3[_0x26a7bf(0x352)](_0x3eace2);if(!_0x522ef9)return!0x1;const _0x24dbbe=_0x522ef9['getSheetBySheetId'](_0x425aa1);if(!_0x24dbbe)return!0x1;const _0x30b261=_0x3e0737[_0x26a7bf(0x150)](0x8),_0x42f78b=_0x4132f7||{'startRow':0x0,'startColumn':0x0,'endRow':_0x24dbbe[_0x26a7bf(0x2d2)]()-0x1,'endColumn':_0x24dbbe[_0x26a7bf(0x246)]()-0x1};_0x42f78b['rangeType']=_0x282877['RANGE_TYPE'][_0x26a7bf(0x103)];const _0x39cd83=(await _0x403a03[_0x26a7bf(0x2f9)]({'unitId':_0x3eace2,'subUnitId':_0x425aa1,'pivotTableId':_0x30b261,'params':{'type':_0x15dd40['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3eace2,'sheetName':_0x24dbbe[_0x26a7bf(0x241)](),'subUnitId':_0x425aa1,'range':_0x42f78b},'pivotTableId':_0x30b261,'pivotTableIndexConfig':_0x5f0517}}}))[_0x26a7bf(0xf5)]['addPivotTableWithConfig'];if(!_0x39cd83)return!0x1;const {isEmpty:_0x28bb07,fieldsConfig:_0x1aba49,collectionConfig:_0xe1d3d,changesets:_0xdc8909}=_0x39cd83,_0x245995=_0x522ef9[_0x26a7bf(0xbe)]()['length'],_0x18a8d5=_0x282877['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x24dbbe[_0x26a7bf(0x2d2)]()-0x1,'columnCount':_0x24dbbe[_0x26a7bf(0x246)]()-0x1});_0x18a8d5['id']=_0x282877[_0x26a7bf(0x247)](),_0x18a8d5[_0x26a7bf(0x314)]=_0x522ef9[_0x26a7bf(0x1fc)](''+_0x2ad8d9['t']('sheets.tabs.sheet'));const _0x1b59cc={'index':_0x245995,'sheet':_0x18a8d5,'unitId':_0x3eace2},{redos:_0x1031f2}=_0x14e595(_0x1a8eb6,{'pivotTableId':_0x30b261,'unitId':_0x3eace2,'subUnitId':_0x18a8d5['id']},_0xdc8909),_0x11297a=[{'id':_0x5698b3['InsertSheetCommand']['id'],'params':_0x1b59cc},{'id':_0x1e563e['id'],'params':{'unitId':_0x3eace2,'subUnitId':_0x18a8d5['id'],'pivotTableId':_0x30b261,'pivotTableConfig':{'isEmpty':_0x28bb07,'fieldsConfig':_0x1aba49,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3eace2,'subUnitId':_0x18a8d5['id']},'sourceRangeInfo':{'subUnitId':_0x425aa1,'unitId':_0x3eace2,'range':_0x42f78b,'sheetName':_0x24dbbe[_0x26a7bf(0x241)]()}},'collectionConfig':_0xe1d3d}},..._0x1031f2];return _0x282877[_0x26a7bf(0x1aa)](_0x11297a,_0x1a8eb6),!0x0;}},_0x3307ac={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x2da),'handler'(_0x56f58d,_0xb86653){const _0x267188=_0x2b16d4;if(!_0xb86653)return!0x1;if(!!_0x56f58d[_0x267188(0x1a9)](_0x282877[_0x267188(0xc1)])[_0x267188(0xf8)](_0x3ecd37))return!0x0;const {pivotTableId:_0x444c44,unitId:_0x3815b9,subUnitId:_0x767483}=_0xb86653,_0x1c20b7=_0x56f58d[_0x267188(0x1a9)](_0x24d96c[_0x267188(0x1b4)]);return _0x1c20b7[_0x267188(0x13c)](_0x3815b9,_0x767483,_0x444c44)?(_0x1c20b7[_0x267188(0x224)]({'unitId':_0x3815b9,'subUnitId':_0x767483,'token':_0x444c44,'type':_0xa5664b[_0x267188(0x3aa)]}),_0x1c20b7[_0x267188(0x258)](_0x3815b9,_0x767483,_0x444c44),!0x0):!0x1;}},_0x237a57={'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x274213,_0x5a9bda){const _0x2dd7ad=_0x2b16d4;var _0xb6305,_0x34f769;const _0x1ea8fc=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0x240)]),_0x4b3e58=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0x165)]),_0x24fe16=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0x2cb)]),_0x571ba6=_0x274213['get'](_0x24d96c[_0x2dd7ad(0xde)]),_0x4ebd17=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0xfb)]),_0x189cf1=_0x274213[_0x2dd7ad(0x1a9)](_0x24d96c[_0x2dd7ad(0x15d)]),_0x25ea26=_0x274213[_0x2dd7ad(0x1a9)](_0x282877[_0x2dd7ad(0xc1)]);if(!_0x5a9bda)return!0x1;const {pivotTableConfig:_0x1ccf53,positionType:_0x36bbcb}=_0x5a9bda,{targetCellInfo:_0x2f7f1b,sourceRangeInfo:_0x314a98}=_0x1ccf53,{unitId:_0x71b7b5,subUnitId:_0x44713e}=_0x2f7f1b,_0x39c523=_0x4b3e58['getUnit'](_0x71b7b5);if(!_0x39c523)return!0x1;let _0x34cd0e=0x0;_0x39c523[_0x2dd7ad(0xbe)]()[_0x2dd7ad(0xff)](_0x4f275d=>{const _0x4713d2=_0x2dd7ad;var _0x439543,_0x57c8bb;_0x34cd0e+=(_0x57c8bb=(_0x439543=_0x189cf1[_0x4713d2(0x231)](_0x71b7b5,_0x4f275d['getSheetId']()))==null?void 0x0:_0x439543[_0x4713d2(0x1a5)])!=null?_0x57c8bb:0x0;});const _0x8b0d24=(_0xb6305=_0x25ea26[_0x2dd7ad(0xf8)](_0x5b0681[_0x2dd7ad(0x1e4)]))!=null?_0xb6305:{},{ls:_0x3a03af,pbk:_0x28fa1d}=_0x8b0d24;if(!_0x49a50c(_0x3a03af,_0x28fa1d))return!0x1;const _0x4267f5=_0x9a8ebd(_0x1e520c,_0x3a03af,_0x28fa1d)[_0x2dd7ad(0x208)];if(_0x34cd0e>=_0x4267f5)return!0x1;const _0x12f455=_0x5a9bda[_0x2dd7ad(0x359)]||_0x3e0737[_0x2dd7ad(0x150)](0x8),_0x5ea25d=(await _0x571ba6['getPivotDisplayConfig']({'unitId':_0x71b7b5,'subUnitId':_0x44713e,'pivotTableId':_0x12f455,'params':{'type':_0x15dd40[_0x2dd7ad(0x145)],'addPivotTable':{'sourceRangeInfo':_0x314a98,'pivotTableId':_0x12f455}}}))['result']['addPivotTable'];if(!_0x5ea25d)return!0x1;const {view:_0x4a3c61,isEmpty:_0x130451,fieldsConfig:_0x363585,collectionConfig:_0x367d91}=_0x5ea25d,_0x18063e=[],_0x1faa66=[];if(_0x36bbcb===_0x220706[_0x2dd7ad(0x37c)]){const _0x4a2036=_0x39c523[_0x2dd7ad(0xbe)]()['length'],_0x14611c=_0x282877[_0x2dd7ad(0xa6)]({});_0x14611c['id']=_0x1ccf53[_0x2dd7ad(0x360)][_0x2dd7ad(0x204)],_0x14611c[_0x2dd7ad(0x314)]=(_0x34f769=_0x1ccf53[_0x2dd7ad(0x360)][_0x2dd7ad(0x34f)])!=null?_0x34f769:_0x39c523[_0x2dd7ad(0x1fc)](''+_0x24fe16['t']('sheets.tabs.sheet'));const _0x51d862={'index':_0x4a2036,'sheet':_0x14611c,'unitId':_0x71b7b5},_0x18c893=_0x5698b3['InsertSheetUndoMutationFactory'](_0x274213,_0x51d862);_0x18063e['push']({'id':_0x5698b3[_0x2dd7ad(0x1fb)]['id'],'params':_0x18c893}),_0x1faa66[_0x2dd7ad(0x338)]({'id':_0x5698b3[_0x2dd7ad(0x1d4)]['id'],'params':_0x51d862});}else{if(!_0x39c523['getSheetBySheetId'](_0x44713e))return!0x1;const _0x51d678=_0x43927d(_0x274213,new _0x3e0737[(_0x2dd7ad(0xe5))](),_0x2f7f1b,!0x0);_0x1faa66[_0x2dd7ad(0x338)](..._0x51d678[_0x2dd7ad(0x2a3)]),_0x18063e[_0x2dd7ad(0x338)](..._0x51d678[_0x2dd7ad(0x1cd)]);const _0x3e1498={'cellInfo':_0x2f7f1b,'view':_0x4a3c61,'isEmpty':_0x130451};if(!await _0x274213[_0x2dd7ad(0x1a9)](_0x24d96c[_0x2dd7ad(0x199)])[_0x2dd7ad(0x29c)][_0x2dd7ad(0x3a7)](_0x387164)(!0x0,_0x3e1498))return!0x1;const _0x50ac53=_0x41310d(_0x274213,_0x3e1498);_0x1faa66[_0x2dd7ad(0x338)](..._0x50ac53[_0x2dd7ad(0x2a3)]),_0x18063e['push'](..._0x50ac53['undos']);}return _0x1faa66[_0x2dd7ad(0x338)]({'id':_0x1e563e['id'],'params':{'unitId':_0x2f7f1b[_0x2dd7ad(0x1bc)],'subUnitId':_0x2f7f1b[_0x2dd7ad(0x204)],'pivotTableId':_0x12f455,'pivotTableConfig':{'targetCellInfo':_0x2f7f1b,'sourceRangeInfo':_0x314a98,'fieldsConfig':_0x363585},'collectionConfig':_0x367d91}}),_0x18063e[_0x2dd7ad(0x36f)]({'id':_0x3307ac['id'],'params':{'unitId':_0x71b7b5,'subUnitId':_0x44713e,'pivotTableId':_0x12f455}}),_0x282877[_0x2dd7ad(0x1aa)](_0x1faa66,_0x1ea8fc)&&_0x4ebd17[_0x2dd7ad(0x249)]({'unitID':_0x71b7b5,'undoMutations':_0x18063e,'redoMutations':_0x1faa66}),!0x0;}},_0x515143={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x32d),async 'handler'(_0x387fda,_0x4f84c9){const _0x3a6786=_0x2b16d4;if(!_0x4f84c9)return!0x1;const _0x5a3b2e=_0x387fda[_0x3a6786(0x1a9)](_0x282877[_0x3a6786(0x240)]),_0x22451e=_0x387fda[_0x3a6786(0x1a9)](_0x24d96c['SheetsPivotRPCService']),_0x305948=_0x387fda[_0x3a6786(0x1a9)](_0x282877[_0x3a6786(0xfb)]),{pivotTableId:_0x50662e,fieldId:_0x9aaeda,area:_0x967753,index:_0x14b4b7,unitId:_0x1169e6,subUnitId:_0x470628}=_0x4f84c9,_0x26f431=(await _0x22451e[_0x3a6786(0x2f9)]({'unitId':_0x1169e6,'subUnitId':_0x470628,'pivotTableId':_0x50662e,'params':{'type':_0x15dd40[_0x3a6786(0x1bd)],'movePivotField':{'fieldId':_0x9aaeda,'area':_0x967753,'index':_0x14b4b7}}}))[_0x3a6786(0xf5)][_0x3a6786(0x9c)];if(!_0x26f431)return!0x1;const {changesets:_0xd02383,view:_0x2e2afc,isEmpty:_0x8463be,pivotTableConfig:_0x37b2a2}=_0x26f431,_0x38709c=_0x37b2a2['targetCellInfo'],_0x10bd5a=new _0x3e0737['PivotView']();_0x10bd5a['formJSON'](_0x2e2afc);const _0x14ddb9={'cellInfo':_0x38709c,'view':_0x10bd5a,'isEmpty':_0x8463be};if(!await _0x387fda['get'](_0x24d96c['SheetsPivotTableService'])[_0x3a6786(0x29c)][_0x3a6786(0x3a7)](_0x387164)(!0x0,_0x14ddb9))return!0x1;const _0x1e41b0=_0x43927d(_0x387fda,_0x10bd5a,_0x38709c,_0x8463be),_0x57de09=_0x41310d(_0x387fda,_0x14ddb9),{redos:_0x34cc3a,undos:_0x25a94e}=_0x14e595(_0x5a3b2e,{'pivotTableId':_0x50662e,'unitId':_0x1169e6,'subUnitId':_0x470628},_0xd02383);return _0x282877['sequenceExecute']([..._0x1e41b0[_0x3a6786(0x2a3)],..._0x57de09['redos'],..._0x34cc3a],_0x5a3b2e),_0x305948[_0x3a6786(0x249)]({'unitID':_0x1169e6,'redoMutations':[..._0x1e41b0[_0x3a6786(0x2a3)],..._0x57de09[_0x3a6786(0x2a3)],..._0x34cc3a],'undoMutations':[..._0x1e41b0[_0x3a6786(0x1cd)],..._0x57de09[_0x3a6786(0x1cd)],..._0x25a94e]}),!0x0;}},_0x353964={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':'sheet.mutation.set-pivot-position','handler'(_0x20472d,_0x5c9017){const _0x942e93=_0x2b16d4;if(!_0x5c9017)return!0x1;if(!!_0x20472d[_0x942e93(0x1a9)](_0x282877[_0x942e93(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const {pivotTableId:_0x54b36c,targetCellPosition:_0xd6972a,unitId:_0x3666e3,subUnitId:_0x4fc1d8}=_0x5c9017,_0x501b9d=_0x20472d[_0x942e93(0x1a9)](_0x24d96c[_0x942e93(0x1b4)]);if(!_0x501b9d[_0x942e93(0x185)](_0x5c9017[_0x942e93(0x359)]))return!0x1;const _0x3984a2=_0x501b9d[_0x942e93(0x31f)](_0x54b36c);if(!_0x3984a2)return!0x1;const _0x4b169b=_0x501b9d['getCollection'](_0x3984a2['unitId'],_0x5c9017[_0x942e93(0x359)]);if(!_0x4b169b)return!0x1;const _0x21a4c9=_0x501b9d['getPivotTableConfig'](_0x3984a2['unitId'],_0x3984a2[_0x942e93(0x204)],_0x54b36c);if(!_0x21a4c9)return!0x1;const _0x249a60=_0x282877[_0x942e93(0x325)][_0x942e93(0x1bf)](_0x21a4c9);_0x249a60[_0x942e93(0x360)]={'unitId':_0x3666e3,'subUnitId':_0x4fc1d8,'row':_0xd6972a[_0x942e93(0x303)],'col':_0xd6972a['col']};const _0x2b1ca7=_0x4b169b['toJSON']();if(_0x3984a2['subUnitId']===_0x4fc1d8&&_0x3984a2[_0x942e93(0x1bc)]===_0x3666e3)_0x501b9d['setPivotTable'](_0x3666e3,_0x4fc1d8,_0x54b36c,_0x249a60),_0x501b9d[_0x942e93(0x224)]({'unitId':_0x3666e3,'subUnitId':_0x4fc1d8,'token':_0x54b36c,'type':_0xa5664b[_0x942e93(0x127)]});else{_0x501b9d[_0x942e93(0x224)]({'unitId':_0x3984a2[_0x942e93(0x1bc)],'subUnitId':_0x3984a2[_0x942e93(0x204)],'token':_0x54b36c,'type':_0xa5664b[_0x942e93(0x3aa)]}),_0x501b9d['removePivotTable'](_0x3984a2['unitId'],_0x3984a2[_0x942e93(0x204)],_0x54b36c);const _0x51c1d9=_0x501b9d['addCollectionByJSON'](_0x54b36c,_0x2b1ca7,_0x21a4c9['sourceRangeInfo'],_0x249a60[_0x942e93(0x360)]),_0x3cef10=new _0x3e0737[(_0x942e93(0x277))](_0x51c1d9['collection'],void 0x0,_0x54b36c);_0x3cef10['fromJSON'](_0x249a60[_0x942e93(0x348)]),_0x501b9d[_0x942e93(0x11d)](_0x3666e3,_0x4fc1d8,_0x54b36c,_0x3cef10,_0x249a60),_0x501b9d[_0x942e93(0x224)]({'unitId':_0x3666e3,'subUnitId':_0x4fc1d8,'token':_0x54b36c,'type':_0xa5664b['Add'],'pivotConfig':_0x249a60});}return!0x0;}},_0xcca7af={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xb7),'handler':(_0x892fb3,_0x1f7140)=>{const _0x194c68=_0x2b16d4,_0x3abdfb=_0x892fb3[_0x194c68(0x1a9)](_0x282877[_0x194c68(0x240)]),_0x4f85b3=_0x892fb3['get'](_0x282877['IUndoRedoService']),_0x1c5e9d=_0x892fb3[_0x194c68(0x1a9)](_0x24d96c[_0x194c68(0x15d)]),_0x34710c=_0x892fb3[_0x194c68(0x1a9)](_0x282877[_0x194c68(0x165)]);if(!_0x1f7140)return!0x1;const _0x407e1e=_0x5698b3[_0x194c68(0x2e1)](_0x34710c);if(!_0x407e1e)return!0x1;const {unitId:_0x309c38,subUnitId:_0x26cd8a,workbook:_0x5429ca}=_0x407e1e,_0x825f75=_0x1c5e9d[_0x194c68(0x13c)](_0x1f7140['originTargetInfo'][_0x194c68(0x1bc)],_0x1f7140['originTargetInfo'][_0x194c68(0x204)],_0x1f7140[_0x194c68(0x359)]);if(!_0x825f75)return!0x1;const _0x4a316e=_0x5429ca['getSheetBySheetId'](_0x1f7140[_0x194c68(0x360)][_0x194c68(0x204)]);if(!_0x4a316e)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0x7bd4e0=_0x4a316e[_0x194c68(0x2d2)](),_0x3a21c1=_0x4a316e[_0x194c68(0x246)]();if(_0x1f7140[_0x194c68(0x360)]['row']>_0x7bd4e0||_0x1f7140[_0x194c68(0x360)]['col']>_0x3a21c1)throw new Error(_0x194c68(0x330));const _0x37e0d9=[{'id':_0x353964['id'],'params':{'unitId':_0x309c38,'subUnitId':_0x1f7140[_0x194c68(0x360)][_0x194c68(0x204)],'pivotTableId':_0x1f7140[_0x194c68(0x359)],'targetCellPosition':{'row':_0x1f7140[_0x194c68(0x360)][_0x194c68(0x303)],'col':_0x1f7140[_0x194c68(0x360)]['col']}}}],_0x3d0747=[{'id':_0x353964['id'],'params':{'unitId':_0x309c38,'subUnitId':_0x26cd8a,'pivotTableId':_0x1f7140[_0x194c68(0x359)],'targetCellPosition':{'row':_0x825f75[_0x194c68(0x360)][_0x194c68(0x303)],'col':_0x825f75['targetCellInfo']['col']}}}];return _0x282877[_0x194c68(0x1aa)](_0x37e0d9,_0x3abdfb)&&_0x4f85b3[_0x194c68(0x249)]({'unitID':_0x309c38,'undoMutations':_0x3d0747,'redoMutations':_0x37e0d9}),!0x0;}},_0xf74539={'type':_0x282877[_0x2b16d4(0x205)]['COMMAND'],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x1a21f7,_0xb37f91){const _0x3dabec=_0x2b16d4;var _0x206e04;if(!_0xb37f91)return!0x1;const _0x534be6=_0x1a21f7[_0x3dabec(0x1a9)](_0x282877[_0x3dabec(0x165)]),_0x436240=_0x5698b3[_0x3dabec(0x2e1)](_0x534be6);if(!_0x436240)return!0x1;const {unitId:_0x35c00d,subUnitId:_0x23daba,workbook:_0x47cc45}=_0x436240,{row:_0xe5f1d4,col:_0x298a21}=_0xb37f91,_0x5c32ad=_0x1a21f7[_0x3dabec(0x1a9)](_0x24d96c[_0x3dabec(0x389)]),_0x48920e=_0x5c32ad[_0x3dabec(0x1c2)](_0x35c00d,_0x23daba,_0xe5f1d4,_0x298a21);if(!_0x48920e)return!0x1;const _0x3bbb23=(_0x206e04=_0x5c32ad[_0x3dabec(0x34c)](_0x35c00d,_0x23daba,_0x48920e))==null?void 0x0:_0x206e04[_0x3dabec(0x2ce)];if(!_0x3bbb23)return!0x1;const _0x2c6d4b=_0x1a21f7['get'](_0x24d96c[_0x3dabec(0x15d)])['getPivotTableConfig'](_0x35c00d,_0x23daba,_0x48920e);if(!_0x2c6d4b)return!0x1;const {rowInfo:_0x240403,colInfo:_0x553e0e}=_0x3bbb23,_0x51b9aa=_0x240403[_0xe5f1d4]['paths'],_0x3d90c2=_0x553e0e[_0x298a21][_0x3dabec(0x180)],_0x439dd9=_0x240403[_0xe5f1d4][_0x3dabec(0x1ef)],_0x575886=_0x553e0e[_0x298a21][_0x3dabec(0x1ef)],_0x4e6cec=_0x51b9aa['concat'](_0x3d90c2),_0x3046ea=_0x2c6d4b[_0x3dabec(0x348)][_0x3dabec(0x170)][_0x3dabec(0x286)](0x0,_0x439dd9),_0x70ae8c=_0x2c6d4b[_0x3dabec(0x348)][_0x3dabec(0x13e)][_0x3dabec(0x286)](0x0,_0x575886),_0x3163da=_0x3046ea[_0x3dabec(0x350)](_0x70ae8c),_0x340391=_0x4e6cec[_0x3dabec(0x279)]((_0x85250f,_0x44026d)=>[_0x85250f,_0x3163da[_0x44026d]]),_0x14d2bd=(await _0x1a21f7['get'](_0x24d96c[_0x3dabec(0xde)])[_0x3dabec(0x2f9)]({'unitId':_0x35c00d,'subUnitId':_0x23daba,'pivotTableId':_0x48920e,'params':{'type':_0x15dd40['DrillDown'],'drillDown':{'tuple':_0x340391}}}))[_0x3dabec(0xf5)][_0x3dabec(0x109)];if(!_0x14d2bd)return!0x1;const {indexes:_0x34903d,range:_0x3d4eb1,sourceUnitId:_0x32df48,sourceSubUnitId:_0xd2a9da,formatMap:_0x3e5157}=_0x14d2bd,{startRow:_0xaf3d7c,endRow:_0x29a93a,startColumn:_0x4b5c2c,endColumn:_0x2c688e}=_0x3d4eb1,_0x13e614=new _0x282877[(_0x3dabec(0x184))](),_0x5b8b6f=_0x29a93a-_0xaf3d7c,_0x559b2a=_0x2c688e-_0x4b5c2c,_0x3fe3b1={},_0x17f023=_0x5698b3[_0x3dabec(0x2e1)](_0x534be6,{'unitId':_0x32df48,'subUnitId':_0xd2a9da});if(!_0x17f023)return!0x1;const _0x295a09=_0x433375[_0x3dabec(0xe8)],_0x589cd0=_0x433375[_0x3dabec(0x1be)],_0x42d140=_0x433375['subTotalStyle'],_0xf63c9e=_0x47cc45[_0x3dabec(0x30b)]()[_0x3dabec(0x39a)](_0x295a09),_0xecae7e=_0x47cc45[_0x3dabec(0x30b)]()[_0x3dabec(0x39a)](_0x589cd0),_0x2a4407=_0x47cc45[_0x3dabec(0x30b)]()[_0x3dabec(0x39a)](_0x42d140),{worksheet:_0x9ecbcf}=_0x17f023;let _0x1950d5=0x0;const _0x4ac187=0x1;_0x34903d[_0x3dabec(0xff)](_0x528b67=>{const _0x30bafd=_0x3dabec;for(let _0x2e5d9c=0x0;_0x2e5d9c<=_0x2c688e-_0x4b5c2c;_0x2e5d9c++)_0x13e614[_0x30bafd(0x39a)](_0x1950d5,_0x2e5d9c,_0x9ecbcf[_0x30bafd(0x24c)](_0x528b67+_0x3d4eb1['startRow']+_0x4ac187,_0x2e5d9c));_0x1950d5++;});for(let _0x37b1f5=_0x4b5c2c;_0x37b1f5<=_0x2c688e;_0x37b1f5++){const _0x100b4c=_0x9ecbcf[_0x3dabec(0x24c)](_0xaf3d7c,_0x37b1f5);_0x3fe3b1[_0xaf3d7c]||(_0x3fe3b1[_0xaf3d7c]={}),_0x3fe3b1[_0xaf3d7c][_0x37b1f5]={..._0x100b4c,'s':_0xf63c9e};}let _0x474ed7=0x1;const _0x3143c3={},_0x3ec9cb={};_0x13e614[_0x3dabec(0x25d)]((_0x43d4ed,_0x538ad5)=>{const _0x5d291d=_0x3dabec;_0x538ad5[_0x5d291d(0xff)](_0x4fe04d=>{const _0x24b06b=_0x5d291d,_0x35500b=_0x13e614[_0x24b06b(0x1e3)](_0x43d4ed,_0x4fe04d);if(_0x3fe3b1[_0x474ed7]||(_0x3fe3b1[_0x474ed7]={}),_0x3fe3b1[_0x474ed7][_0x4fe04d]={..._0x35500b,'s':_0x474ed7%0x2===0x0?_0x2a4407:_0xecae7e},_0x3e5157[_0x4fe04d]&&_0x43d4ed>=0x0){const _0x2b2e1c=_0x474ed7%0x2===0x0;let _0x15e3f6=_0x2b2e1c?_0x3ec9cb[_0x4fe04d]:_0x3143c3[_0x4fe04d];_0x15e3f6||(_0x15e3f6=_0x47cc45[_0x24b06b(0x30b)]()['setValue']({..._0x2b2e1c?_0x42d140:_0x589cd0,'n':{'pattern':_0x3e5157[_0x4fe04d]}}),_0x2b2e1c?_0x3ec9cb[_0x4fe04d]=_0x15e3f6:_0x3143c3[_0x4fe04d]=_0x15e3f6),_0x3fe3b1[_0x474ed7][_0x4fe04d]['s']=_0x15e3f6;}}),_0x474ed7++;});const _0x5eef57=new _0x282877[(_0x3dabec(0x184))](_0x3fe3b1),_0x54ef0f={};_0x5eef57[_0x3dabec(0x308)]((_0x253194,_0x4c093e,_0x81bbe3)=>{_0x54ef0f[_0x253194]||(_0x54ef0f[_0x253194]={}),_0x54ef0f[_0x253194][_0x4c093e]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x5cef21=[],_0x522e55=[],_0x4a4ff4=_0x47cc45[_0x3dabec(0xbe)]()[_0x3dabec(0x27b)],_0x5e9ae2=_0x282877[_0x3dabec(0xa6)]({'rowCount':Math[_0x3dabec(0x24d)](_0x282877[_0x3dabec(0x370)],_0x5b8b6f+0xa),'columnCount':Math[_0x3dabec(0x24d)](_0x282877['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x559b2a+0x5)}),_0x3c41ce=_0x1a21f7[_0x3dabec(0x1a9)](_0x282877['LocaleService']);_0x5e9ae2['id']=_0x282877[_0x3dabec(0x247)](),_0x5e9ae2[_0x3dabec(0x314)]=_0x47cc45[_0x3dabec(0x1fc)](''+_0x3c41ce['t'](_0x3dabec(0x191)));const _0x334134={'index':_0x4a4ff4,'sheet':_0x5e9ae2,'unitId':_0x35c00d},_0x11b93b=_0x5698b3[_0x3dabec(0x125)](_0x1a21f7,_0x334134);_0x522e55[_0x3dabec(0x338)]({'id':_0x5698b3['InsertSheetMutation']['id'],'params':_0x334134}),_0x5cef21[_0x3dabec(0x338)]({'id':_0x5698b3[_0x3dabec(0x1fb)]['id'],'params':_0x11b93b}),_0x522e55[_0x3dabec(0x338)]({'id':_0x5698b3[_0x3dabec(0x157)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id'],'cellValue':_0x3fe3b1}}),_0x5cef21['unshift']({'id':_0x5698b3[_0x3dabec(0x157)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id'],'cellValue':_0x54ef0f}});const _0x3084ad={'startRow':0x0,'startColumn':0x0,'endRow':_0x474ed7-0x1,'endColumn':_0x2c688e};_0x522e55['push']({'id':_0x18c1ef[_0x3dabec(0x14e)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id'],'range':_0x3084ad}}),_0x5cef21[_0x3dabec(0x36f)]({'id':_0x18c1ef[_0x3dabec(0x320)]['id'],'params':{'unitId':_0x35c00d,'subUnitId':_0x5e9ae2['id']}});const _0x5723d6=_0x1a21f7['get'](_0x282877[_0x3dabec(0x240)]);return _0x282877[_0x3dabec(0x1aa)](_0x522e55,_0x5723d6)&&_0x1a21f7[_0x3dabec(0x1a9)](_0x282877[_0x3dabec(0xfb)])[_0x3dabec(0x249)]({'unitID':_0x35c00d,'undoMutations':_0x5cef21,'redoMutations':_0x522e55}),!0x0;}},_0x1a6979={'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'id':'sheet.command.remove-pivot-field',async 'handler'(_0x2b68a4,_0x547169){const _0x2cfc24=_0x2b16d4;if(!_0x547169)return!0x1;const _0x54a147=_0x2b68a4['get'](_0x282877[_0x2cfc24(0x240)]),_0xe4dad5=_0x2b68a4[_0x2cfc24(0x1a9)](_0x24d96c[_0x2cfc24(0xde)]),_0x4346e0=_0x2b68a4[_0x2cfc24(0x1a9)](_0x282877['IUndoRedoService']),{pivotTableId:_0x57315a,fieldIds:_0xb4b714,unitId:_0x25ffb6,subUnitId:_0x20d836}=_0x547169,_0x2d2fcc=(await _0xe4dad5[_0x2cfc24(0x2f9)]({'unitId':_0x25ffb6,'subUnitId':_0x20d836,'pivotTableId':_0x57315a,'params':{'type':_0x15dd40['RemovePivotField'],'removePivotField':{'fieldIds':_0xb4b714}}}))[_0x2cfc24(0xf5)][_0x2cfc24(0x33b)];if(!_0x2d2fcc)return!0x1;const {view:_0x28c055,changesets:_0x49c33d,isEmpty:_0x52c855,pivotTableConfig:_0x2ea2f1}=_0x2d2fcc,_0x5403f0=_0x2ea2f1['targetCellInfo'],_0x36a75e=new _0x3e0737[(_0x2cfc24(0xe5))]();_0x36a75e[_0x2cfc24(0x38d)](_0x28c055);const _0x103be9={'cellInfo':_0x5403f0,'view':_0x36a75e,'isEmpty':_0x52c855};if(!await _0x2b68a4[_0x2cfc24(0x1a9)](_0x24d96c['SheetsPivotTableService'])['asyncInterceptor'][_0x2cfc24(0x3a7)](_0x387164)(!0x0,_0x103be9))return!0x1;const _0x11be0b=_0x43927d(_0x2b68a4,_0x36a75e,_0x5403f0,_0x52c855),_0x1d0aa6=_0x41310d(_0x2b68a4,_0x103be9),{redos:_0x2084ec,undos:_0x1b2953}=_0x14e595(_0x54a147,{'pivotTableId':_0x57315a,'unitId':_0x25ffb6,'subUnitId':_0x20d836},_0x49c33d);return _0x282877[_0x2cfc24(0x1aa)]([..._0x11be0b[_0x2cfc24(0x2a3)],..._0x1d0aa6[_0x2cfc24(0x2a3)],..._0x2084ec],_0x54a147),_0x4346e0[_0x2cfc24(0x249)]({'unitID':_0x25ffb6,'redoMutations':[..._0x11be0b['redos'],..._0x1d0aa6[_0x2cfc24(0x2a3)],..._0x2084ec],'undoMutations':[..._0x11be0b['undos'],..._0x1d0aa6[_0x2cfc24(0x1cd)],..._0x1b2953]}),!0x0;}},_0x27055a={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x203),async 'handler'(_0x3e784a,_0x5cc44d){const _0x4aadd0=_0x2b16d4;if(!_0x5cc44d)return!0x1;const _0x51fa61=_0x3e784a[_0x4aadd0(0x1a9)](_0x282877['ICommandService']),_0x3c8773=_0x3e784a['get'](_0x282877['IUndoRedoService']),_0x10aa62=_0x3e784a[_0x4aadd0(0x1a9)](_0x24d96c[_0x4aadd0(0xde)]),{resetArea:_0xed7205,pivotTableId:_0x40d4ee,unitId:_0x356691,subUnitId:_0x45d50b}=_0x5cc44d,_0x1e6444=(await _0x10aa62[_0x4aadd0(0x2f9)]({'unitId':_0x356691,'subUnitId':_0x45d50b,'pivotTableId':_0x40d4ee,'params':{'type':_0x15dd40[_0x4aadd0(0x38a)],'resetPivotTable':{'pivotTableId':_0x40d4ee,'resetArea':_0xed7205}}}))[_0x4aadd0(0xf5)]['resetPivotTable'];if(!_0x1e6444)return!0x1;const {changesets:_0x4da11b}=_0x1e6444,{redos:_0x5a8e48,undos:_0x42f10e}=_0x14e595(_0x51fa61,{'pivotTableId':_0x40d4ee,'unitId':_0x356691,'subUnitId':_0x45d50b},_0x4da11b);return _0x282877[_0x4aadd0(0x1aa)](_0x5a8e48,_0x51fa61),_0x3c8773[_0x4aadd0(0x249)]({'unitID':_0x356691,'redoMutations':_0x5a8e48,'undoMutations':_0x42f10e}),!0x0;}},_0x25fba6={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x26c),async 'handler'(_0x1ac32a,_0x126ff5){const _0x5605a1=_0x2b16d4,_0xf6b5a8=_0x1ac32a[_0x5605a1(0x1a9)](_0x282877['ICommandService']),_0x355542=_0x1ac32a['get'](_0x24d96c[_0x5605a1(0xde)]),_0x2f0aca=_0x1ac32a['get'](_0x24d96c[_0x5605a1(0x389)]),_0x4487c0=_0x1ac32a['get'](_0x282877[_0x5605a1(0x165)]),_0x4a888d=_0x1ac32a[_0x5605a1(0x1a9)](_0x282877[_0x5605a1(0x2cb)]),_0x31e271=_0x1ac32a['get'](_0x282877[_0x5605a1(0xfb)]);if(!_0x126ff5)return!0x1;const {unitId:_0x1b5309,subUnitId:_0x562913,row:_0x26e542,col:_0xe7d6ed,collapse:_0x5841d9}=_0x126ff5,_0x3f26a9=_0x4487c0[_0x5605a1(0x352)](_0x1b5309);if(!_0x3f26a9||!_0x3f26a9[_0x5605a1(0x374)](_0x562913))return!0x1;const _0x5a65fc=_0x2f0aca[_0x5605a1(0x1c2)](_0x1b5309,_0x562913,_0x26e542,_0xe7d6ed);if(!_0x5a65fc)return!0x1;const _0x421d4b=_0x2f0aca[_0x5605a1(0x34c)](_0x1b5309,_0x562913,_0x5a65fc);if(!_0x421d4b)return!0x1;const _0x32a3e4=_0x282877[_0x5605a1(0x29f)](_0x26e542,_0xe7d6ed),{rangesInfo:_0x9a4985,areaInfo:_0x59c12e,headerMap:_0x187426}=_0x421d4b;if(!_0x9a4985||!_0x59c12e||!_0x187426)return!0x1;const _0x2bf651=Object[_0x5605a1(0x12a)](_0x9a4985)[_0x5605a1(0x1a6)](_0x3a9210=>_0x9a4985[_0x3a9210][_0x5605a1(0x151)](_0x3fa1e5=>_0x282877[_0x5605a1(0x2e7)]['contains'](_0x3fa1e5,_0x32a3e4)));let _0x31a78f;_0x2bf651===_0x5605a1(0x196)?_0x31a78f=_0x187426['rowHeaderMap'][_0xe7d6ed]:_0x2bf651===_0x5605a1(0x1b0)&&(_0x31a78f=_0x187426[_0x5605a1(0x174)][_0x26e542]);const _0x205f43=_0x31a78f==null?void 0x0:_0x31a78f[_0x5605a1(0x19a)],_0x42c323=_0x2f0aca[_0x5605a1(0x169)](_0x1b5309,_0x562913,_0x26e542,_0xe7d6ed);let _0xbbf6b0=_0x42c323==null?void 0x0:_0x42c323['v'];if(_0xbbf6b0===_0x4a888d['t']('sheets-pivot.blank')&&(_0xbbf6b0=_0x3e0737[_0x5605a1(0x1d3)][_0x5605a1(0xdb)]),_0xbbf6b0==null||!_0x5a65fc||!_0x205f43)return!0x1;const _0x4764db=await _0x355542[_0x5605a1(0x2f9)]({'unitId':_0x1b5309,'subUnitId':_0x562913,'pivotTableId':_0x5a65fc,'params':{'type':_0x15dd40[_0x5605a1(0x107)],'setPivotCollapse':{'tableFieldId':_0x205f43,'collapse':_0x5841d9,'item':_0xbbf6b0}}}),_0x4a7b65=_0x4764db==null?void 0x0:_0x4764db['result'][_0x5605a1(0xae)];if(!_0x4a7b65)return!0x1;const {view:_0x44c432,pivotTableConfig:_0x469dfc,isEmpty:_0x429468,changesets:_0x32b408}=_0x4a7b65,_0x92b689=new _0x3e0737[(_0x5605a1(0xe5))]();_0x92b689[_0x5605a1(0x38d)](_0x44c432);const _0x1c0135=_0x469dfc[_0x5605a1(0x360)],_0x594530={'cellInfo':_0x1c0135,'view':_0x92b689,'isEmpty':_0x429468};if(!await _0x1ac32a[_0x5605a1(0x1a9)](_0x24d96c['SheetsPivotTableService'])['asyncInterceptor'][_0x5605a1(0x3a7)](_0x387164)(!0x0,_0x594530))return!0x1;const _0x122821=_0x43927d(_0x1ac32a,_0x92b689,_0x1c0135,_0x429468),_0x28adc6=_0x41310d(_0x1ac32a,_0x594530),{redos:_0x43e9ee,undos:_0x172a47}=_0x14e595(_0xf6b5a8,{'pivotTableId':_0x5a65fc,'unitId':_0x1b5309,'subUnitId':_0x562913},_0x32b408);return _0x282877[_0x5605a1(0x1aa)]([..._0x122821[_0x5605a1(0x2a3)],..._0x28adc6[_0x5605a1(0x2a3)],..._0x43e9ee],_0xf6b5a8),_0x31e271[_0x5605a1(0x249)]({'unitID':_0x1b5309,'redoMutations':[..._0x122821['redos'],..._0x28adc6[_0x5605a1(0x2a3)],..._0x43e9ee],'undoMutations':[..._0x122821['undos'],..._0x28adc6[_0x5605a1(0x1cd)],..._0x172a47]}),!0x0;}},_0x3b1c8c={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x24f),async 'handler'(_0x5dbdc2,_0x2ce7ae){const _0x45b9d9=_0x2b16d4;if(!_0x2ce7ae)return!0x1;const _0x4b3eaf=_0x5dbdc2[_0x45b9d9(0x1a9)](_0x282877[_0x45b9d9(0x240)]),_0x2cb442=_0x5dbdc2[_0x45b9d9(0x1a9)](_0x282877[_0x45b9d9(0xfb)]),_0x906fbf=_0x5dbdc2[_0x45b9d9(0x1a9)](_0x24d96c[_0x45b9d9(0xde)]),{pivotTableConfig:_0x366100,pivotTableId:_0x5f095c,unitId:_0x582e65,subUnitId:_0x7a4ca}=_0x2ce7ae,_0x33920b=(await _0x906fbf[_0x45b9d9(0x2f9)]({'unitId':_0x582e65,'subUnitId':_0x7a4ca,'pivotTableId':_0x5f095c,'params':{'type':_0x15dd40[_0x45b9d9(0xa0)],'setPivotTableConfig':{'pivotTableId':_0x5f095c,'pivotTableConfig':_0x366100}}}))['result'][_0x45b9d9(0x281)];if(!_0x33920b)return!0x1;const {changesets:_0x5b07ea}=_0x33920b,{redos:_0x49d666,undos:_0x482511}=_0x14e595(_0x4b3eaf,{'pivotTableId':_0x5f095c,'unitId':_0x582e65,'subUnitId':_0x7a4ca},_0x5b07ea);return _0x282877[_0x45b9d9(0x1aa)](_0x49d666,_0x4b3eaf),_0x2cb442['pushUndoRedo']({'unitID':_0x582e65,'redoMutations':_0x49d666,'undoMutations':_0x482511}),!0x0;}},_0xe8105e={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0xbfff57,_0x5cad01){const _0x2bb7f5=_0x2b16d4;if(!_0x5cad01)return!0x1;const _0x50e2e0=_0xbfff57['get'](_0x282877[_0x2bb7f5(0x240)]),{pivotTableId:_0x10882b,tableFieldId:_0x38834c,items:_0x4a0494,unitId:_0x32990d,subUnitId:_0x427d35,isAll:_0x1f90ff}=_0x5cad01,_0x4735ca=_0xbfff57['get'](_0x24d96c['SheetsPivotRPCService']),_0x5d2021=_0xbfff57[_0x2bb7f5(0x1a9)](_0x282877[_0x2bb7f5(0xfb)]),_0x2049e7=(await _0x4735ca[_0x2bb7f5(0x2f9)]({'unitId':_0x32990d,'subUnitId':_0x427d35,'pivotTableId':_0x10882b,'params':{'type':_0x15dd40[_0x2bb7f5(0x21e)],'setPivotFilter':{'tableFieldId':_0x38834c,'items':_0x4a0494,'isAll':_0x1f90ff}}}))[_0x2bb7f5(0xf5)][_0x2bb7f5(0x23a)];if(!_0x2049e7)return!0x1;const {changesets:_0xff3392,pivotTableConfig:_0x3abea1,isEmpty:_0x1b7fe3,view:_0x93365}=_0x2049e7,_0x1b67bf=_0x3abea1[_0x2bb7f5(0x360)],_0x147ab1=new _0x3e0737[(_0x2bb7f5(0xe5))]();_0x147ab1[_0x2bb7f5(0x38d)](_0x93365);const _0x57ffb1={'cellInfo':_0x1b67bf,'view':_0x147ab1,'isEmpty':_0x1b7fe3};if(!await _0xbfff57[_0x2bb7f5(0x1a9)](_0x24d96c['SheetsPivotTableService'])[_0x2bb7f5(0x29c)][_0x2bb7f5(0x3a7)](_0x387164)(!0x0,_0x57ffb1))return!0x1;const _0x4534f6=_0x43927d(_0xbfff57,_0x147ab1,_0x1b67bf,_0x1b7fe3),_0x4233f8=_0x41310d(_0xbfff57,_0x57ffb1),{undos:_0x379a18,redos:_0x134621}=_0x14e595(_0x50e2e0,{'pivotTableId':_0x10882b,'unitId':_0x32990d,'subUnitId':_0x427d35},_0xff3392);return _0x282877[_0x2bb7f5(0x1aa)]([..._0x4534f6[_0x2bb7f5(0x2a3)],..._0x4233f8[_0x2bb7f5(0x2a3)],..._0x134621],_0x50e2e0),_0x5d2021['pushUndoRedo']({'unitID':_0x32990d,'redoMutations':[..._0x4534f6[_0x2bb7f5(0x2a3)],..._0x4233f8[_0x2bb7f5(0x2a3)],..._0x134621],'undoMutations':[..._0x4534f6[_0x2bb7f5(0x1cd)],..._0x4233f8[_0x2bb7f5(0x1cd)],..._0x379a18]}),!0x0;}},_0x503ea6={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xbd),async 'handler'(_0xa4d5fb,_0x37b268){const _0x1555e2=_0x2b16d4;if(!_0x37b268)return!0x1;const _0x4918e9=_0xa4d5fb[_0x1555e2(0x1a9)](_0x282877[_0x1555e2(0x240)]),_0x3270e8=_0xa4d5fb[_0x1555e2(0x1a9)](_0x282877[_0x1555e2(0xfb)]),_0x2d73f5=_0xa4d5fb[_0x1555e2(0x1a9)](_0x24d96c[_0x1555e2(0xde)]),{info:_0x42902b,tableFieldId:_0x16285a,pivotTableId:_0x2e2b54,unitId:_0x21307b,subUnitId:_0x42cc4b}=_0x37b268,_0x52727b=(await _0x2d73f5[_0x1555e2(0x2f9)]({'unitId':_0x21307b,'subUnitId':_0x42cc4b,'pivotTableId':_0x2e2b54,'params':{'type':_0x15dd40[_0x1555e2(0x302)],'setPivotSort':{'tableFieldId':_0x16285a,'info':_0x42902b}}}))[_0x1555e2(0xf5)][_0x1555e2(0x160)];if(!_0x52727b)return!0x1;const {changesets:_0x1d0d72}=_0x52727b,{redos:_0x2275c6,undos:_0x319ea9}=_0x14e595(_0x4918e9,{'pivotTableId':_0x2e2b54,'unitId':_0x21307b,'subUnitId':_0x42cc4b},_0x1d0d72);return _0x282877[_0x1555e2(0x1aa)](_0x2275c6,_0x4918e9),_0x3270e8[_0x1555e2(0x249)]({'unitID':_0x21307b,'redoMutations':_0x2275c6,'undoMutations':_0x319ea9}),!0x0;}},_0x3b04ca={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xf0),async 'handler'(_0x3ea38a,_0x5e2912){const _0x3d5ee0=_0x2b16d4;if(!_0x5e2912)return!0x1;const _0x1573be=_0x3ea38a[_0x3d5ee0(0x1a9)](_0x282877[_0x3d5ee0(0x240)]),{pivotTableId:_0x297d94,fieldId:_0xaa9577,valueFilterInfo:_0x48c255,unitId:_0x245a8d,subUnitId:_0x2e0a39}=_0x5e2912,_0x3e5a64=_0x3ea38a[_0x3d5ee0(0x1a9)](_0x24d96c[_0x3d5ee0(0xde)]),_0x152021=_0x3ea38a[_0x3d5ee0(0x1a9)](_0x282877[_0x3d5ee0(0xfb)]),_0x1e9fa8=(await _0x3e5a64['getPivotDisplayConfig']({'unitId':_0x245a8d,'subUnitId':_0x2e0a39,'pivotTableId':_0x297d94,'params':{'type':_0x15dd40[_0x3d5ee0(0x28a)],'setValuePivotFilter':{'tableFieldId':_0xaa9577,'filterInfo':_0x48c255}}}))['result'][_0x3d5ee0(0x213)];if(!_0x1e9fa8)return!0x1;const {changesets:_0x50aca2,pivotTableConfig:_0x33ff69,isEmpty:_0x496292,view:_0x1af0ec}=_0x1e9fa8,_0x3bd709=_0x33ff69[_0x3d5ee0(0x360)],_0x428e29=new _0x3e0737[(_0x3d5ee0(0xe5))]();_0x428e29[_0x3d5ee0(0x38d)](_0x1af0ec);const _0x110e52={'cellInfo':_0x3bd709,'view':_0x428e29,'isEmpty':_0x496292};if(!await _0x3ea38a['get'](_0x24d96c[_0x3d5ee0(0x199)])[_0x3d5ee0(0x29c)]['fetchThroughAsyncInterceptors'](_0x387164)(!0x0,_0x110e52))return!0x1;const _0x383e26=_0x43927d(_0x3ea38a,_0x428e29,_0x3bd709,_0x496292),_0x174af6=_0x41310d(_0x3ea38a,_0x110e52),{undos:_0xad12ea,redos:_0x1fd73f}=_0x14e595(_0x1573be,{'pivotTableId':_0x297d94,'unitId':_0x245a8d,'subUnitId':_0x2e0a39},_0x50aca2);return _0x282877['sequenceExecute']([..._0x383e26[_0x3d5ee0(0x2a3)],..._0x174af6[_0x3d5ee0(0x2a3)],..._0x1fd73f],_0x1573be),_0x152021[_0x3d5ee0(0x249)]({'unitID':_0x245a8d,'redoMutations':[..._0x383e26[_0x3d5ee0(0x2a3)],..._0x174af6[_0x3d5ee0(0x2a3)],..._0x1fd73f],'undoMutations':[..._0x383e26[_0x3d5ee0(0x1cd)],..._0x174af6[_0x3d5ee0(0x1cd)],..._0xad12ea]}),!0x0;}},_0x2ad5a3={'id':_0x2b16d4(0xac),'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'handler':(_0x11b652,_0x44ed0f)=>{const _0x1e5fbe=_0x2b16d4;if(!_0x44ed0f)return!0x1;if(!!_0x11b652[_0x1e5fbe(0x1a9)](_0x282877[_0x1e5fbe(0xc1)])['getConfig'](_0x3ecd37))return!0x0;const {unitId:_0x6610b1,subUnitId:_0x20324f,pivotTableId:_0x43fbc7,tableFieldId:_0x5cdb81,dateType:_0x54139f}=_0x44ed0f,_0x506a2a=_0x11b652[_0x1e5fbe(0x1a9)](_0x24d96c[_0x1e5fbe(0x1b4)]),_0x8bc211=_0x506a2a[_0x1e5fbe(0x185)](_0x43fbc7);if(!_0x8bc211)return!0x1;const _0x5f49a2=_0x8bc211[_0x1e5fbe(0x323)](_0x5cdb81);if(!_0x5f49a2)return!0x1;const _0xdc5bec=_0x5f49a2[_0x1e5fbe(0x295)](),_0x184eeb=_0x8bc211[_0x1e5fbe(0xd0)](_0xdc5bec),_0x5ef0b5=(_0x184eeb==null?void 0x0:_0x184eeb[_0x1e5fbe(0x241)]())+'\x20'+_0x4df91d(_0x11b652,_0x54139f);_0x506a2a[_0x1e5fbe(0xd9)](_0x6610b1,_0x43fbc7)[_0x1e5fbe(0x23f)](_0x5f49a2['id'],_0x5ef0b5);const _0x5ed078=_0x8bc211[_0x1e5fbe(0x35f)](_0x5cdb81);if(!_0x5ed078)return!0x1;_0x8bc211[_0x1e5fbe(0x32b)](_0x5ed078[_0x1e5fbe(0x149)](),_0x5ef0b5),_0x5f49a2[_0x1e5fbe(0x353)](_0x54139f);const _0x114275=_0x506a2a[_0x1e5fbe(0x13c)](_0x6610b1,_0x20324f,_0x43fbc7);return _0x506a2a[_0x1e5fbe(0x224)]({'unitId':_0x6610b1,'subUnitId':_0x20324f,'token':_0x43fbc7,'type':_0xa5664b[_0x1e5fbe(0x127)],'pivotConfig':_0x114275}),!0x0;}},_0x3f98c7={'id':_0x2b16d4(0x36a),'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'handler':(_0x4db71f,_0x119834)=>{const _0x4f1029=_0x2b16d4;if(!_0x119834)return!0x1;const _0x2c2653=_0x4db71f[_0x4f1029(0x1a9)](_0x282877[_0x4f1029(0xfb)]),{unitId:_0x2b7b8e,subUnitId:_0x20d563,pivotTableId:_0x3f32c2,tableFieldId:_0x5bf18e}=_0x119834,_0x4815f9=[],_0x38a89b=[],_0x12173d=_0x4db71f[_0x4f1029(0x1a9)](_0x24d96c[_0x4f1029(0x15d)]),_0x1f25e7=_0x12173d[_0x4f1029(0xd9)](_0x2b7b8e,_0x3f32c2),_0x56e60f=_0x12173d[_0x4f1029(0x13c)](_0x2b7b8e,_0x20d563,_0x3f32c2);if(!(_0x56e60f!=null&&_0x56e60f[_0x4f1029(0x348)][_0x4f1029(0x3a3)]))return!0x1;const _0x3d4a36=Object['values'](_0x56e60f[_0x4f1029(0x348)][_0x4f1029(0x3a3)])[_0x4f1029(0x1a6)](_0x19001=>_0x19001['id']===_0x5bf18e);if(!_0x3d4a36)return!0x1;const _0xdcdc73=_0x3d4a36[_0x4f1029(0x1d8)];if(!(_0x1f25e7!=null&&_0x1f25e7[_0x4f1029(0x377)]))return!0x1;const _0x94420c=Object[_0x4f1029(0x369)](_0x1f25e7==null?void 0x0:_0x1f25e7['fields'])[_0x4f1029(0x1a6)](_0x3674cd=>_0x3674cd['id']===_0xdcdc73);if(!_0x94420c)return!0x1;_0x3e0737['isDateGroupFieldJSON'](_0x94420c)&&_0x4815f9[_0x4f1029(0x338)]({'id':_0x2ad5a3['id'],'params':{..._0x119834,'dateType':_0x94420c[_0x4f1029(0x33e)]}}),_0x38a89b[_0x4f1029(0x338)]({'id':_0x2ad5a3['id'],'params':{..._0x119834}});const _0x6b1507=_0x4db71f[_0x4f1029(0x1a9)](_0x282877['ICommandService']);return _0x282877[_0x4f1029(0x1aa)](_0x38a89b,_0x6b1507)&&_0x2c2653[_0x4f1029(0x249)]({'unitID':_0x2b7b8e,'undoMutations':_0x4815f9,'redoMutations':_0x38a89b}),!0x0;}},_0x29ffa8={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0xfd),async 'handler'(_0x32fbb6,_0xce8d0b){const _0x503113=_0x2b16d4;if(!_0xce8d0b)return!0x1;const _0x60ba34=_0x32fbb6[_0x503113(0x1a9)](_0x282877[_0x503113(0x240)]),_0x38c42e=_0x32fbb6[_0x503113(0x1a9)](_0x282877['IUndoRedoService']),_0x4fda68=_0x32fbb6['get'](_0x24d96c['SheetsPivotRPCService']),{displayName:_0x69764,subtotalType:_0x5a0ecb,format:_0x4eca48,tableFieldId:_0x1ff584,pivotTableId:_0x5c6b23,unitId:_0x5e715b,subUnitId:_0x46f2a4}=_0xce8d0b,_0x2473f8=(await _0x4fda68[_0x503113(0x2f9)]({'unitId':_0x5e715b,'subUnitId':_0x46f2a4,'pivotTableId':_0x5c6b23,'params':{'type':_0x15dd40[_0x503113(0x14a)],'setPivotSetting':{'tableFieldId':_0x1ff584,'displayName':_0x69764,'subtotalType':_0x5a0ecb,'format':_0x4eca48}}}))[_0x503113(0xf5)][_0x503113(0x142)];if(!_0x2473f8)return!0x1;const {changesets:_0x23504b,view:_0x1a773e,pivotTableConfig:_0x1afb1e,isEmpty:_0xb72292}=_0x2473f8,_0x1e4338=_0x1afb1e['targetCellInfo'],_0x165960=new _0x3e0737['PivotView']();_0x165960[_0x503113(0x38d)](_0x1a773e);const _0x245b49={'cellInfo':_0x1e4338,'view':_0x165960,'isEmpty':_0xb72292};if(!await _0x32fbb6[_0x503113(0x1a9)](_0x24d96c[_0x503113(0x199)])[_0x503113(0x29c)]['fetchThroughAsyncInterceptors'](_0x387164)(!0x0,_0x245b49))return!0x1;const _0x43fc22=_0x43927d(_0x32fbb6,_0x165960,_0x1e4338,_0xb72292),_0x2aa50e=_0x41310d(_0x32fbb6,_0x245b49),{undos:_0x2067c8,redos:_0x47aadf}=_0x14e595(_0x60ba34,{'pivotTableId':_0x5c6b23,'unitId':_0x5e715b,'subUnitId':_0x46f2a4},_0x23504b);return _0x282877[_0x503113(0x1aa)]([..._0x43fc22[_0x503113(0x2a3)],..._0x2aa50e[_0x503113(0x2a3)],..._0x47aadf],_0x60ba34),_0x38c42e[_0x503113(0x249)]({'unitID':_0x5e715b,'redoMutations':[..._0x43fc22[_0x503113(0x2a3)],..._0x2aa50e['redos'],..._0x47aadf],'undoMutations':[..._0x43fc22[_0x503113(0x1cd)],..._0x2aa50e[_0x503113(0x1cd)],..._0x2067c8]}),!0x0;}},_0x5d22e4={'type':_0x282877['CommandType'][_0x2b16d4(0x156)],'id':_0x2b16d4(0x2e5),'handler'(_0x7f68d6,_0x8f6322){const _0x2dc357=_0x2b16d4;if(!_0x8f6322)return!0x1;if(!!_0x7f68d6[_0x2dc357(0x1a9)](_0x282877[_0x2dc357(0xc1)])[_0x2dc357(0xf8)](_0x3ecd37))return!0x0;const _0x5a4dc3=_0x7f68d6[_0x2dc357(0x1a9)](_0x24d96c['SheetsPivotDataSourceModel']),{pivotTableId:_0x20e4cf,deleteIds:_0x37fd69,collectionJSON:_0x2146db,dataRangeInfo:_0x459426,unitId:_0x3eb3be,subUnitId:_0x4d3a51}=_0x8f6322,_0x4a6f61=_0x5a4dc3[_0x2dc357(0x185)](_0x20e4cf),_0x4c26db=_0x5a4dc3[_0x2dc357(0x13c)](_0x3eb3be,_0x4d3a51,_0x20e4cf);if(!_0x4a6f61||!_0x4c26db)return!0x1;const {collection:_0x496d86,updateDataFieldList:_0x1bd44d}=_0x5a4dc3['addCollectionByJSON'](_0x20e4cf,_0x2146db,_0x459426,_0x4c26db['targetCellInfo']);_0x5a4dc3['refreshData'](_0x496d86,_0x1bd44d,_0x459426),_0x4a6f61[_0x2dc357(0x34e)](_0x496d86);for(const _0x52360a of _0x37fd69)_0x5a4dc3[_0x2dc357(0x126)](_0x459426[_0x2dc357(0x1bc)],_0x52360a);const _0x285c96=_0x5a4dc3['getPivotTableConfig'](_0x3eb3be,_0x4d3a51,_0x20e4cf);return _0x285c96[_0x2dc357(0x2ab)]=JSON[_0x2dc357(0x1ed)](JSON[_0x2dc357(0x11f)](_0x459426)),_0x5a4dc3[_0x2dc357(0x224)]({'unitId':_0x3eb3be,'subUnitId':_0x4d3a51,'token':_0x20e4cf,'type':_0xa5664b['Set']}),!0x0;}},_0x16a0b5={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0xf2)],'id':_0x2b16d4(0x2b0),async 'handler'(_0x2124a6,_0x1eeed7){const _0x43a717=_0x2b16d4,_0x3975b5=_0x2124a6[_0x43a717(0x1a9)](_0x282877[_0x43a717(0x240)]),_0x33a218=_0x2124a6[_0x43a717(0x1a9)](_0x24d96c[_0x43a717(0xde)]),_0x16e403=_0x2124a6[_0x43a717(0x1a9)](_0x282877[_0x43a717(0xfb)]);if(!_0x1eeed7)return!0x1;const {token:_0x245676,dataRangeInfo:_0x129c77,unitId:_0x1da13c,subUnitId:_0x57ae20}=_0x1eeed7,_0x292566=[],_0x5b000a=[],_0x273e94=(await _0x33a218[_0x43a717(0x2f9)]({'unitId':_0x1da13c,'subUnitId':_0x57ae20,'pivotTableId':_0x245676,'params':{'type':_0x15dd40[_0x43a717(0x1c6)],'updatePivotSource':{'dataRangeInfo':_0x129c77,'unitId':_0x1da13c,'subUnitId':_0x57ae20}}}))['result']['updatePivotSource'];if(!_0x273e94)return!0x1;const {changesets:_0x4948e1,deleteIds:_0x41426c,collectionConfig:_0x334e07,oldCollectionConfig:_0x576df2,view:_0xbe2658,isEmpty:_0x56e802,pivotTableConfig:_0x32d6c6}=_0x273e94;_0x5b000a[_0x43a717(0x338)]({'id':_0x5d22e4['id'],'params':{'pivotTableId':_0x245676,'deleteIds':_0x41426c,'collectionJSON':_0x334e07,'dataRangeInfo':_0x129c77,'unitId':_0x1da13c,'subUnitId':_0x57ae20}}),_0x292566[_0x43a717(0x36f)]({'id':_0x5d22e4['id'],'params':{'pivotTableId':_0x245676,'deleteIds':[],'collectionJSON':_0x576df2,'dataRangeInfo':_0x32d6c6[_0x43a717(0x2ab)],'unitId':_0x1da13c,'subUnitId':_0x57ae20}});const _0x4966fb=_0x32d6c6[_0x43a717(0x360)],_0x3953f3=new _0x3e0737['PivotView']();_0x3953f3[_0x43a717(0x38d)](_0xbe2658);const _0x3d2c8f={'cellInfo':_0x4966fb,'view':_0x3953f3,'isEmpty':_0x56e802};if(!await _0x2124a6[_0x43a717(0x1a9)](_0x24d96c[_0x43a717(0x199)])['asyncInterceptor'][_0x43a717(0x3a7)](_0x387164)(!0x0,_0x3d2c8f))return!0x1;const _0x429c15=_0x43927d(_0x2124a6,_0x3953f3,_0x4966fb,_0x56e802),_0x220e60=_0x41310d(_0x2124a6,_0x3d2c8f),{undos:_0x324805,redos:_0x2c2b6b}=_0x14e595(_0x3975b5,{'pivotTableId':_0x245676,'unitId':_0x1da13c,'subUnitId':_0x57ae20},_0x4948e1);return _0x282877[_0x43a717(0x1aa)]([..._0x429c15['redos'],..._0x220e60['redos'],..._0x5b000a,..._0x324805],_0x3975b5),_0x16e403[_0x43a717(0x249)]({'unitID':_0x1da13c,'redoMutations':[..._0x429c15[_0x43a717(0x2a3)],..._0x220e60['redos'],..._0x5b000a,..._0x324805],'undoMutations':[..._0x429c15[_0x43a717(0x1cd)],..._0x220e60[_0x43a717(0x1cd)],..._0x292566,..._0x2c2b6b]}),!0x0;}},_0x15fd16={'type':_0x282877['CommandType'][_0x2b16d4(0xf2)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x1bb83b,_0x4116e0){const _0x2d7a97=_0x2b16d4;if(!_0x4116e0)return!0x1;const _0x19993f=_0x1bb83b[_0x2d7a97(0x1a9)](_0x282877[_0x2d7a97(0x240)]),_0x4a577e=_0x1bb83b[_0x2d7a97(0x1a9)](_0x24d96c[_0x2d7a97(0xde)]),_0x3a082d=_0x1bb83b[_0x2d7a97(0x1a9)](_0x282877[_0x2d7a97(0x165)]),_0x4ea2e5=_0x1bb83b['get'](_0x282877['IUndoRedoService']),{pivotTableId:_0x28f90c,position:_0x18deac,index:_0x571aac}=_0x4116e0,_0x33aa1d=_0x5698b3[_0x2d7a97(0x2e1)](_0x3a082d);if(!_0x33aa1d)return!0x1;const {unitId:_0x418f18,subUnitId:_0x1a5896}=_0x33aa1d,_0x538556=(await _0x4a577e['getPivotDisplayConfig']({'unitId':_0x418f18,'subUnitId':_0x1a5896,'pivotTableId':_0x28f90c,'params':{'type':_0x15dd40[_0x2d7a97(0x230)],'updateValuePosition':{'position':_0x18deac,'index':_0x571aac}}}))[_0x2d7a97(0xf5)][_0x2d7a97(0x1df)];if(!_0x538556)return!0x1;const {changesets:_0x18aa01,view:_0x552627,isEmpty:_0x394dd5,pivotTableConfig:_0x29499d}=_0x538556,_0x170ec5=_0x29499d[_0x2d7a97(0x360)],_0x29b174=new _0x3e0737[(_0x2d7a97(0xe5))]();_0x29b174[_0x2d7a97(0x38d)](_0x552627);const _0x2898a6=_0x1bb83b['get'](_0x24d96c[_0x2d7a97(0x199)]),_0x50e6a9={'cellInfo':_0x170ec5,'view':_0x29b174,'isEmpty':_0x394dd5};if(!await _0x2898a6[_0x2d7a97(0x29c)][_0x2d7a97(0x3a7)](_0x387164)(!0x0,_0x50e6a9))return!0x1;const _0xd37048=_0x43927d(_0x1bb83b,_0x29b174,_0x170ec5,_0x394dd5),_0x50f7cd=_0x41310d(_0x1bb83b,_0x50e6a9),{undos:_0x57c84c,redos:_0x3d284b}=_0x14e595(_0x19993f,{'pivotTableId':_0x28f90c,'unitId':_0x418f18,'subUnitId':_0x1a5896},_0x18aa01);return _0x282877[_0x2d7a97(0x1aa)]([..._0xd37048[_0x2d7a97(0x2a3)],..._0x50f7cd['redos'],..._0x3d284b],_0x19993f),_0x4ea2e5['pushUndoRedo']({'unitID':_0x418f18,'redoMutations':[..._0xd37048['redos'],..._0x50f7cd[_0x2d7a97(0x2a3)],..._0x3d284b],'undoMutations':[..._0xd37048[_0x2d7a97(0x1cd)],..._0x50f7cd[_0x2d7a97(0x1cd)],..._0x57c84c]}),!0x0;}},_0x44990a={'type':_0x282877[_0x2b16d4(0x205)][_0x2b16d4(0x156)],'id':_0x2b16d4(0x22d),'handler'(){return!0x0;}};var _0x4581af=Object[_0x2b16d4(0x34b)],_0x5f0ff4=(_0x1ecfa8,_0x578592,_0x182561,_0x35bde5)=>{const _0x59b776=_0x2b16d4;for(var _0x210d42=_0x35bde5>0x1?void 0x0:_0x35bde5?_0x4581af(_0x578592,_0x182561):_0x578592,_0x481278=_0x1ecfa8[_0x59b776(0x27b)]-0x1,_0x21ec96;_0x481278>=0x0;_0x481278--)(_0x21ec96=_0x1ecfa8[_0x481278])&&(_0x210d42=_0x21ec96(_0x210d42)||_0x210d42);return _0x210d42;},_0x597a43=(_0x2491b6,_0xc28c49)=>(_0x20e475,_0x2fc3f8)=>_0xc28c49(_0x20e475,_0x2fc3f8,_0x2491b6);const _0x2f18a1=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x31967d=(_0x16d062,_0x15b052,_0x2cafe4)=>{const _0x3cfc59=_0x2b16d4,_0x852f0c=_0x16d062[_0x3cfc59(0x381)];_0x16d062[_0x3cfc59(0x2b7)](_0x5cebd9=>{const _0x375166=_0x3cfc59,_0x33b0c3=_0x5cebd9['getId'](),_0x97802c=_0x5cebd9[_0x375166(0x19d)](),_0x4d3b20=_0x5cebd9[_0x375166(0x2f6)](),_0x313d0d=_0x5cebd9[_0x375166(0x115)]();_0x15b052[_0x97802c]&&_0x15b052[_0x97802c]===_0x313d0d&&_0x4d3b20===_0x313d0d&&(_0x16d062[_0x375166(0x32b)](_0x33b0c3,_0x852f0c[_0x375166(0x115)](_0x97802c)),_0x5cebd9['setSourceName'](_0x852f0c[_0x375166(0x115)](_0x97802c)));}),_0x16d062[_0x3cfc59(0xf3)](_0x3e0737[_0x3cfc59(0x372)]['Value'],_0x150dd3=>{const _0x312a7a=_0x3cfc59,_0x4f641f=_0x150dd3[_0x312a7a(0x149)](),_0x2badc7=_0x150dd3[_0x312a7a(0x19d)](),_0x4de8cb=_0x150dd3[_0x312a7a(0x2f6)](),_0x48b7c9=_0x150dd3[_0x312a7a(0x115)](),_0x17653e=_0x150dd3[_0x312a7a(0x1c9)](),_0x52c7da=_0x2cafe4(_0x4de8cb,_0x17653e);_0x15b052[_0x2badc7]&&_0x15b052[_0x2badc7]===_0x4de8cb&&_0x52c7da===_0x48b7c9&&(_0x16d062['renameField'](_0x4f641f,_0x2cafe4(_0x852f0c[_0x312a7a(0x115)](_0x2badc7),_0x17653e)),_0x150dd3[_0x312a7a(0xb8)](_0x852f0c['getDisplayName'](_0x2badc7)));});},_0x5c986e=(_0x469e52,_0x577335,_0x5f5cca)=>{const _0x1c9424=_0x2b16d4;var _0x30a6f7,_0x2c4c10;const {arrayFormulaCellData:_0x369559,unitData:_0x152f37}=_0x577335,{unitId:_0x5c8fd9,subUnitId:_0x347eda}=_0x5f5cca,_0x4debd1=_0x5f5cca[_0x1c9424(0x345)],{startColumn:_0x1ed93b,endColumn:_0x2d965e}=_0x4debd1,_0x313eb5=(_0x30a6f7=_0x369559==null?void 0x0:_0x369559[_0x5c8fd9])==null?void 0x0:_0x30a6f7[_0x347eda],_0x4c691c=(_0x2c4c10=_0x152f37==null?void 0x0:_0x152f37[_0x5c8fd9])==null?void 0x0:_0x2c4c10[_0x347eda],_0x438559=new Set(),_0xd4a2c6=_0x2d965e-_0x1ed93b+0x1,{dirtyRanges:_0x258b1e}=_0x469e52;if(_0x258b1e)for(const {range:_0x5c5155,sheetId:_0x1637ed,unitId:_0x447614}of _0x258b1e){if(_0x1637ed!==_0x347eda||_0x5c8fd9!==_0x447614)continue;const _0x25d285=_0x282877['Rectangle']['getIntersects'](_0x5c5155,_0x4debd1);if(_0x25d285){const {startColumn:_0x4865db,endColumn:_0x2a5144}=_0x25d285;for(let _0x3455ca=_0x4865db;_0x3455ca<=_0x2a5144;_0x3455ca++)_0x438559[_0x1c9424(0x183)](_0x3455ca);}}if(_0x438559[_0x1c9424(0x1a5)]===_0xd4a2c6||_0x438559[_0x1c9424(0x1a5)]===_0xd4a2c6)return Array[_0x1c9424(0xa4)](_0x438559);if(_0x4c691c){const _0x4c491f=_0x4c691c[_0x1c9424(0x315)](),_0xe6f476=Object[_0x1c9424(0x12a)](_0x4c491f);for(const _0x432ebb of _0xe6f476){const _0x1e6833=Number(_0x432ebb),_0x2ff037=_0x4c491f[_0x1e6833];if(_0x438559[_0x1c9424(0x1a5)]===_0xd4a2c6)break;for(const _0x9333ed in _0x2ff037){const _0x2bf84d=Number(_0x9333ed);_0x2bf84d<_0x1ed93b||_0x2bf84d>_0x2d965e||_0x438559[_0x1c9424(0x183)](_0x2bf84d);}}}if(_0x313eb5){const _0x550383=_0x313eb5[_0x1c9424(0x315)](),_0x3fc585=Object[_0x1c9424(0x12a)](_0x550383);for(const _0x2c0cc6 of _0x3fc585){const _0x3aa32f=Number(_0x2c0cc6),_0x124e0a=_0x550383[_0x3aa32f];if(_0x438559['size']===_0xd4a2c6)break;for(const _0x11ec3d in _0x124e0a){const _0x3b3b14=Number(_0x11ec3d);_0x3b3b14<_0x1ed93b||_0x3b3b14>_0x2d965e||_0x438559[_0x1c9424(0x183)](_0x3b3b14);}}}return Array[_0x1c9424(0xa4)](_0x438559);},_0x11ba6c=_0x3dfe80=>{const _0x2bdb80=_0x2b16d4,_0x32cf21=new Set(),_0x105b68=[];for(const _0x106010 of _0x3dfe80){const _0x291fe2=_0x106010[_0x2bdb80(0x19f)]+','+_0x106010[_0x2bdb80(0x39e)]+','+_0x106010[_0x2bdb80(0x254)]+','+_0x106010['endColumn'];_0x32cf21[_0x2bdb80(0x105)](_0x291fe2)||(_0x32cf21['add'](_0x291fe2),_0x105b68['push'](_0x106010));}return _0x105b68;};let _0x566683=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0xa97de6,_0x2da085,_0x4b9757,_0x3fae90,_0xc739f2){const _0x20a8bb=_0x2b16d4;super(),_0x2e1abd(this,_0x20a8bb(0x16a),new _0x2b003b[(_0x20a8bb(0xbf))](!0x0)),_0x2e1abd(this,_0x20a8bb(0x2d7),_0x3c8dea=>{const _0x58a97d=_0x20a8bb;this['_globalSubject'][_0x58a97d(0x23b)](!0x1);}),_0x2e1abd(this,_0x20a8bb(0x2b3),_0x1fc1ff=>{const _0x33ae4d=_0x20a8bb;this[_0x33ae4d(0x16a)]['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0xa97de6,this[_0x20a8bb(0x297)]=_0x2da085,this[_0x20a8bb(0x2e0)]=_0x4b9757,this['_globalComputingSrv']=_0x3fae90,this[_0x20a8bb(0x1fe)]=_0xc739f2,this[_0x20a8bb(0x261)](),this[_0x20a8bb(0x16f)]());}[_0x2b16d4(0x261)](){const _0x45e48e=_0x2b16d4;this[_0x45e48e(0xe4)](),this['_subjectViewChange'](),this['_initPivotTextInfo'](),this[_0x45e48e(0x31c)]();}[_0x2b16d4(0x36b)](){const _0x18c673=_0x2b16d4;this[_0x18c673(0x1ee)][_0x18c673(0x12e)](this[_0x18c673(0x16a)]),_0x3e0737[_0x18c673(0x277)]['registerCallbackWithEvent'](_0x3e0737['PivotCallbackEnum']['onQueryStart'],this['_globalComputedStartHelpFunc']),_0x3e0737[_0x18c673(0x277)][_0x18c673(0xf4)](_0x3e0737[_0x18c673(0x36c)][_0x18c673(0xf9)],this[_0x18c673(0x2b3)]);}[_0x2b16d4(0x16f)](){const _0xd09480=_0x2b16d4;this['disposeWithMe'](this[_0xd09480(0x2e0)][_0xd09480(0x333)](_0x313c39=>{const _0x265f9e=_0xd09480;_0x313c39['id']===_0x5698b3['MoveRangeMutation']['id']&&this[_0x265f9e(0x329)]['handleMoveRange'](_0x313c39[_0x265f9e(0x14d)]);})),this[_0xd09480(0x324)](this['_commandService'][_0xd09480(0x333)](_0x29af8d=>{const _0x3afef7=_0xd09480;if(_0x29af8d['id']!==_0x19037a['id'])return;const _0x2d20f9=_0x29af8d[_0x3afef7(0x14d)],{unitId:_0x86e468,subUnitId:_0x5eb993,pivotTableId:_0x92da39}=_0x2d20f9,_0x2812c0=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x1e7)],_0x320db6={};switch(_0x2812c0){case _0x15dd40[_0x3afef7(0x395)]:{const _0x1b00fc=_0x2d20f9[_0x3afef7(0x14d)]['filter'];if(!_0x1b00fc)return;const {row:_0x3fb552,col:_0x36dc73,cellData:_0x3619c9,pivotItemRenderInfoCache:_0x3fa917,tableFieldId:_0xc0f831}=_0x1b00fc,_0x335462=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x2d20f9[_0x3afef7(0x359)]);if(!_0x335462||!_0x3fa917)return;if(_0xc0f831){const _0x1aabec=_0x335462['getDataFieldByTableId'](_0xc0f831);if(!_0x1aabec)return;_0x320db6[_0x3afef7(0x179)]={..._0x335462[_0x3afef7(0x2ca)](_0x1aabec),'tableFieldId':_0xc0f831,'pivotTableId':_0x2d20f9[_0x3afef7(0x359)],'filterInfo':_0x335462['getFilterInfo'](_0xc0f831),'sortInfo':_0x335462[_0x3afef7(0x292)](_0xc0f831),'format':_0x335462['getFieldFormat'](_0xc0f831)};}else{const _0x33cc37=_0x5e8aa7(_0x3fb552,_0x36dc73,_0x3619c9,_0x335462,_0x3fa917),_0x45fcdf=_0x33cc37==null?void 0x0:_0x33cc37[_0x3afef7(0x38b)];if(!_0x45fcdf)return;const _0x1e0d2f=_0x335462[_0x3afef7(0x323)](_0x45fcdf);if(!_0x1e0d2f)return;_0x320db6[_0x3afef7(0x179)]={..._0x335462[_0x3afef7(0x2ca)](_0x1e0d2f),'tableFieldId':_0x45fcdf,'pivotTableId':_0x2d20f9[_0x3afef7(0x359)],'filterInfo':_0x335462[_0x3afef7(0x3a2)](_0x45fcdf),'sortInfo':_0x335462['getSortInfo'](_0x45fcdf),'format':_0x335462[_0x3afef7(0x1dd)](_0x45fcdf)};}}break;case _0x15dd40[_0x3afef7(0x13d)]:{const _0x31b876=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x161)];if(!_0x31b876)return;const {pivotTableId:_0xa61372}=_0x31b876,_0x2916bf=this[_0x3afef7(0x329)]['getPivotTableInstance'](_0xa61372);if(!_0x2916bf)return;const _0x120616=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0xa61372),_0x4a0107=_0x2e8fa2(_0x2916bf,_0xa61372,_0x120616);_0x320db6['panel']=_0x4a0107;}break;case _0x15dd40['AddPivotField']:{const _0x2ebbad=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x185)](_0x92da39),_0x108811=this[_0x3afef7(0x329)][_0x3afef7(0xc9)](_0x86e468),_0xec968e=_0x108811[_0x3afef7(0xd9)](_0x92da39);let _0x2515b5=null;const _0x2a3827=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39),_0x2b0db9=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0xda)];if(!_0x2ebbad||!_0x2a3827||!_0x2b0db9)return!0x1;const {dataFieldId:_0x4fb475,fieldArea:_0x48e401,index:_0x2ab71a}=_0x2b0db9;_0x2ebbad[_0x3afef7(0x24e)]();const _0x2c3878=_0x2ebbad[_0x3afef7(0x2ac)](_0x4fb475,_0x48e401,_0x2ab71a);if(_0x2c3878&&_0x48e401===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0xbb)]){const _0x25eba7=_0x2c3878[_0x3afef7(0x149)](),_0x47a457=_0x2ebbad['getDataFieldByTableId'](_0x25eba7);if(_0x47a457){const _0x329b69=_0x47a457==null?void 0x0:_0x47a457[_0x3afef7(0x1a0)]();_0x2ebbad[_0x3afef7(0x186)](_0x2c3878[_0x3afef7(0x149)](),_0x329b69===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0xa5)]?_0x3e0737['PivotSubtotalTypeEnum']['sum']:_0x3e0737[_0x3afef7(0x2c6)]['count']);}const _0x16ae7c=_0x2ebbad[_0x3afef7(0x20c)](),_0x4f991c=_0x2ebbad[_0x3afef7(0x311)](),_0x289e82=_0x2ebbad['getFieldCountByArea'](_0x3e0737[_0x3afef7(0x372)]['Value']);if(_0x16ae7c===-0x1&&_0x289e82>0x1){const _0x3d0ebf=_0x4f991c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2d0)]?_0x3e0737['PivotTableValuePositionEnum'][_0x3afef7(0x211)]:_0x4f991c,_0x2f9903=_0x3d0ebf===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2ef)]?_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]:_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)];_0x2ebbad[_0x3afef7(0x1df)](_0x3d0ebf,_0x2ebbad[_0x3afef7(0x394)](_0x2f9903));}}else{if(_0x2c3878&&(_0x48e401===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]||_0x48e401===_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0x211)])){const _0x312e36=_0x2c3878[_0x3afef7(0x149)](),_0x4f2703=_0x2ebbad[_0x3afef7(0x323)](_0x312e36);if(_0x4f2703&&(_0x4f2703==null?void 0x0:_0x4f2703['getFieldDataType']())===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0x10a)]){const _0x3943b3=_0x4f2703[_0x3afef7(0x30d)]();if(_0x3943b3&&_0x2ebbad[_0x3afef7(0x1e2)](_0x2c3878[_0x3afef7(0x149)](),_0x3943b3),!_0xec968e[_0x3afef7(0x1b3)]()[_0x3afef7(0x151)](_0x3a53a4=>{const _0x3171d7=_0x3afef7,_0x3f00d3=_0xec968e[_0x3171d7(0x158)](_0x3a53a4);return _0x3e0737[_0x3171d7(0x2a0)](_0x3f00d3)?_0x3f00d3[_0x3171d7(0xe2)]()[_0x3171d7(0x2c3)]===_0x4fb475:!0x1;})){const _0xa5f320=_0x108811['createDataFieldId'](),_0x4d8f2b=_0x4b5bca(_0x4f2703[_0x3afef7(0x23d)],_0x4f2703[_0x3afef7(0x25e)]),_0x5abca7=_0x4f2703[_0x3afef7(0x241)]()+_0x3afef7(0x164)+_0x4df91d(this[_0x3afef7(0x1fe)],_0x4d8f2b),_0x13f051=new _0x3e0737[(_0x3afef7(0x346))](_0xa5f320,_0x5abca7,_0x3e0737[_0x3afef7(0x150)](0x3),_0x4f2703['getId'](),_0x4d8f2b);_0x108811[_0x3afef7(0x1e0)](_0x13f051),_0xec968e[_0x3afef7(0x38f)](_0xa5f320,_0x5abca7),_0x2ebbad[_0x3afef7(0x2ac)](_0xa5f320,_0x48e401,(_0x2ab71a!=null?_0x2ab71a:0x0)+0x1),_0x2515b5=_0x13f051;}}}}const _0x43f1a9=_0x2ebbad[_0x3afef7(0xa8)](),_0x176a76=_0x2ebbad[_0x3afef7(0x341)]()[_0x3afef7(0x316)]();let _0x5a261d;if(_0x2515b5){_0x5a261d=_0x2515b5[_0x3afef7(0x316)]();const _0x2e6ee3=_0x2515b5[_0x3afef7(0x149)]();_0xec968e['deleteField'](_0x2e6ee3);let _0x5a8da0=!0x0;for(const _0x3b0071 in _0x108811[_0x3afef7(0x256)])if(_0x108811[_0x3afef7(0x256)][_0x3b0071][_0x3afef7(0x1b3)]()[_0x3afef7(0x339)](_0x2e6ee3)){_0x5a8da0=!0x1;break;}_0x5a8da0&&_0x108811[_0x3afef7(0x2ea)](_0x2e6ee3);}const _0x579f48=_0x2ebbad[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0xda)]={'view':_0x176a76,'changesets':_0x579f48,'isEmpty':_0x43f1a9,'pivotTableConfig':_0x2a3827,'shouldBeAddedGroupJSON':_0x5a261d};}break;case _0x15dd40[_0x3afef7(0x145)]:{const _0x3170be=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x11d)];if(!_0x3170be)return;const _0x39e3f8=_0x3170be[_0x3afef7(0x2ab)],_0x40d550=_0x3170be[_0x3afef7(0x359)],{collection:_0x1df49d}=this[_0x3afef7(0x329)]['createCollectionWithDataRange']({'unitId':_0x39e3f8['unitId'],'sheetName':_0x39e3f8[_0x3afef7(0x34f)],'subUnitId':_0x39e3f8['subUnitId'],'range':_0x39e3f8[_0x3afef7(0x345)]}),_0x305524=new _0x3e0737[(_0x3afef7(0x277))](_0x1df49d,void 0x0,_0x40d550),_0x10fcd9=_0x305524[_0x3afef7(0x341)](),_0x147d30=_0x305524[_0x3afef7(0x316)](),_0x3e4004=_0x1df49d[_0x3afef7(0x316)]();_0x320db6['addPivotTable']={'view':_0x10fcd9,'fieldsConfig':_0x147d30,'collectionConfig':_0x3e4004,'isEmpty':_0x305524[_0x3afef7(0xa8)]()};}break;case _0x15dd40[_0x3afef7(0x1bd)]:{const _0x5668e0=_0x2d20f9['params']['movePivotField'];if(!_0x5668e0)return;const {fieldId:_0x1a30cb,area:_0x463104,index:_0x57a44}=_0x5668e0,_0x18113f=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x18113f)return;const _0x401468=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!_0x401468)return;_0x401468[_0x3afef7(0x24e)]();const {area:_0x2361c7,index:_0x40c822}=_0x401468[_0x3afef7(0x2ed)](_0x1a30cb);if(_0x401468[_0x3afef7(0x31d)](_0x1a30cb,_0x463104,_0x57a44),_0x463104===_0x3e0737[_0x3afef7(0x372)]['Value']&&_0x401468[_0x3afef7(0x35f)](_0x1a30cb)[_0x3afef7(0x1c9)]()===void 0x0){const _0x51cb7d=_0x401468[_0x3afef7(0x35f)](_0x1a30cb);if(_0x51cb7d&&_0x51cb7d['getSubtotal']()===void 0x0){const _0x58e4a0=_0x401468[_0x3afef7(0x323)](_0x1a30cb);if(_0x58e4a0){const _0x15222d=_0x58e4a0==null?void 0x0:_0x58e4a0['getFieldDataType']();_0x401468[_0x3afef7(0x186)](_0x1a30cb,_0x15222d===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0xa5)]?_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x35a)]:_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x208)]);}}}const _0x53de4c=_0x401468['getValuePosition'](),_0x303135=_0x401468[_0x3afef7(0x20c)](),_0x985880=_0x401468[_0x3afef7(0x394)](_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0xbb)])>0x1;if(_0x985880&&_0x2361c7===_0x463104&&(_0x463104===_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0x2ef)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2ef)]||_0x463104===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x211)])){let _0x5f4141=_0x303135;_0x40c822<=_0x303135&&_0x5f4141--,_0x57a44<=_0x303135&&_0x5f4141++,_0x401468[_0x3afef7(0x1df)](_0x53de4c,_0x5f4141);}else _0x985880&&(_0x2361c7===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]&&_0x53de4c===_0x3e0737['PivotTableValuePositionEnum'][_0x3afef7(0x2ef)]||_0x2361c7===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x211)])&&_0x303135>=_0x40c822&&_0x401468[_0x3afef7(0x1df)](_0x53de4c,_0x303135-0x1),_0x985880&&(_0x463104===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x2ef)]||_0x463104===_0x3e0737[_0x3afef7(0x372)]['Column']&&_0x53de4c===_0x3e0737[_0x3afef7(0xc0)][_0x3afef7(0x211)])&&_0x303135>=_0x57a44&&_0x401468['updateValuePosition'](_0x53de4c,_0x303135+0x1);const _0x43f74a=_0x401468[_0x3afef7(0x341)](),_0x3421ae=_0x401468[_0x3afef7(0xa8)](),_0x281edd=_0x401468[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x9c)]={'view':_0x43f74a[_0x3afef7(0x316)](),'changesets':_0x281edd,'isEmpty':_0x3421ae,'pivotTableConfig':_0x18113f};}break;case _0x15dd40[_0x3afef7(0x17a)]:{const _0x31536e=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x33b)];if(!_0x31536e)return;const _0x1436ab=_0x31536e[_0x3afef7(0x216)],_0x1f93b6=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1f93b6)return!0x1;const _0x3a7a46=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!_0x3a7a46)return!0x1;_0x3a7a46[_0x3afef7(0x24e)]();for(const _0xfbaeaa of _0x1436ab){const {area:_0x53b89d}=_0x3a7a46['getFieldPositionInfoById'](_0xfbaeaa);_0x53b89d===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0xbb)]&&_0x3a7a46[_0x3afef7(0x9e)](_0xfbaeaa),(_0x53b89d===_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0x2ef)]||_0x53b89d===_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x211)])&&_0x3a7a46[_0x3afef7(0x390)](_0xfbaeaa),_0x3a7a46[_0x3afef7(0x218)](_0xfbaeaa);}const _0x303cb2=_0x3a7a46['isEmpty'](),_0x2011df=_0x3a7a46['query']()[_0x3afef7(0x316)](),_0x54ff94=_0x3a7a46[_0x3afef7(0x192)]();_0x320db6['removePivotField']={'changesets':_0x54ff94,'pivotTableConfig':_0x1f93b6,'isEmpty':_0x303cb2,'view':_0x2011df};}break;case _0x15dd40[_0x3afef7(0x21e)]:{const _0x1684a5=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x23a)];if(!_0x1684a5)return;const {tableFieldId:_0x40e9d2,items:_0x599d11,isAll:_0x5112e5}=_0x1684a5,_0x332d26=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39),_0x476b5a=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x332d26||!_0x476b5a)return;_0x332d26[_0x3afef7(0x24e)](),_0x332d26['setLabelFilterInfo'](_0x40e9d2,{'type':_0x3e0737[_0x3afef7(0x17b)][_0x3afef7(0xeb)],'list':_0x599d11,'isAll':_0x5112e5});const _0x38cfe5=_0x332d26[_0x3afef7(0xa8)](),_0x4e2579=_0x332d26[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x38af54=_0x332d26[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x23a)]={'view':_0x4e2579,'changesets':_0x38af54,'isEmpty':_0x38cfe5,'pivotTableConfig':_0x476b5a};}break;case _0x15dd40[_0x3afef7(0x28a)]:{const _0x4ddd9f=_0x2d20f9['params']['setValuePivotFilter'];if(!_0x4ddd9f)return;const {tableFieldId:_0x5c5481,filterInfo:_0x309e74}=_0x4ddd9f,_0x1e55c7=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39),_0x3429d5=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1e55c7||!_0x3429d5)return;_0x1e55c7[_0x3afef7(0x24e)](),_0x1e55c7['setValueFilterInfo'](_0x5c5481,_0x309e74);const _0x4304e2=_0x1e55c7['isEmpty'](),_0x2e75ef=_0x1e55c7[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x3e0e25=_0x1e55c7[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x213)]={'view':_0x2e75ef,'changesets':_0x3e0e25,'isEmpty':_0x4304e2,'pivotTableConfig':_0x3429d5};}break;case _0x15dd40[_0x3afef7(0x302)]:{const _0x314c8b=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x160)];if(!_0x314c8b)return;const {tableFieldId:_0x20f8bb,info:_0x43f73c}=_0x314c8b,_0x1c5ff9=this[_0x3afef7(0x329)]['getPivotTableInstance'](_0x92da39),_0x4de981=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1c5ff9||!_0x4de981)return;_0x1c5ff9[_0x3afef7(0x24e)](),_0x1c5ff9[_0x3afef7(0x399)](_0x20f8bb,_0x43f73c);const _0x328c3a=_0x1c5ff9[_0x3afef7(0xa8)](),_0x516e74=_0x1c5ff9[_0x3afef7(0x341)]()['toJSON'](),_0x274659=_0x1c5ff9[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x160)]={'view':_0x516e74,'changesets':_0x274659,'isEmpty':_0x328c3a,'pivotTableConfig':_0x4de981};}break;case _0x15dd40[_0x3afef7(0x14a)]:{const _0x54d255=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x142)];if(!_0x54d255)return;const {tableFieldId:_0x425f00,displayName:_0x49175c,subtotalType:_0x16f4d2,format:_0x576ece}=_0x54d255,_0x1e60f7=this[_0x3afef7(0x329)]['getPivotTableInstance'](_0x92da39),_0x4ef3f4=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x1e60f7||!_0x4ef3f4)return;_0x1e60f7['startCollectChangeset'](),_0x49175c!==void 0x0&&_0x1e60f7[_0x3afef7(0x32b)](_0x425f00,_0x49175c),_0x16f4d2!==void 0x0&&_0x1e60f7['setSubtotalType'](_0x425f00,_0x16f4d2),_0x576ece!==void 0x0&&_0x1e60f7[_0x3afef7(0x1e2)](_0x425f00,_0x576ece);const _0x35c11d=_0x1e60f7[_0x3afef7(0xa8)](),_0x376d64=_0x1e60f7[_0x3afef7(0x341)]()['toJSON'](),_0x23cfe2=_0x1e60f7[_0x3afef7(0x192)]();_0x320db6['setPivotSetting']={'changesets':_0x23cfe2,'pivotTableConfig':_0x4ef3f4,'isEmpty':_0x35c11d,'view':_0x376d64};}break;case _0x15dd40[_0x3afef7(0x1c6)]:{const _0x3e1409=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x2fe)];if(!_0x3e1409)return;const {dataRangeInfo:_0x249222,unitId:_0x3b4f0b,subUnitId:_0x15b213}=_0x3e1409,_0x320ce3=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x3b4f0b,_0x15b213,_0x92da39),_0x5da5f7=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!this[_0x3afef7(0x329)]['getCollection'](_0x3b4f0b,_0x92da39)||!_0x5da5f7||!_0x320ce3)return;const _0x4e334a=this[_0x3afef7(0x329)][_0x3afef7(0x171)](_0x3b4f0b,_0x92da39,_0x249222),_0x26ddf8=this[_0x3afef7(0x329)][_0x3afef7(0xd9)](_0x3b4f0b,_0x92da39)[_0x3afef7(0x316)](),{collection:_0x3d7b08}=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x39d)]({'unitId':_0x249222['unitId'],'sheetName':_0x249222[_0x3afef7(0x34f)],'subUnitId':_0x249222[_0x3afef7(0x204)],'range':_0x249222[_0x3afef7(0x345)]}),_0x4ce7be=_0x3d7b08[_0x3afef7(0x316)]();_0x5da5f7[_0x3afef7(0x24e)]();const _0x4cf9e6=this[_0x3afef7(0x329)]['getDataFieldManager'](_0x3b4f0b)[_0x3afef7(0xe7)]()||_0x3e0737['getAutoDisplayName'];_0x5da5f7[_0x3afef7(0x1b8)](_0x273db2=>{const _0x39cd9f=_0x3afef7,_0x27028d=_0x273db2['getDataFieldId']();if(!_0x3d7b08[_0x39cd9f(0x154)](_0x27028d)){const _0x5d3501=_0x3d7b08['getDataFieldBySourceName'](_0x273db2[_0x39cd9f(0x2f6)]());if(_0x5d3501){_0x5da5f7[_0x39cd9f(0x114)](_0x273db2[_0x39cd9f(0x149)](),_0x5d3501[_0x39cd9f(0x241)](),_0x5d3501['getId']());const {area:_0x3fd22c}=_0x5da5f7[_0x39cd9f(0x2ed)](_0x273db2[_0x39cd9f(0x149)]());let _0x2d2a09=_0x273db2[_0x39cd9f(0x2f6)]();const _0x5d8d99=_0x273db2[_0x39cd9f(0x115)]();if(_0x3fd22c===_0x3e0737[_0x39cd9f(0x372)][_0x39cd9f(0xbb)]){const _0x45e5f2=_0x273db2[_0x39cd9f(0x1c9)]();_0x2d2a09=_0x4cf9e6(_0x5d3501[_0x39cd9f(0x241)](),_0x45e5f2);}_0x5d8d99!==_0x2d2a09&&_0x5da5f7[_0x39cd9f(0x32b)](_0x273db2[_0x39cd9f(0x149)](),_0x2d2a09);}else _0x5da5f7[_0x39cd9f(0x218)](_0x273db2[_0x39cd9f(0x149)]());}});const _0x2e6c69=_0x5da5f7[_0x3afef7(0xa8)](),_0x59c52c=_0x5da5f7['query']()[_0x3afef7(0x316)](),_0x46fcf1=_0x5da5f7[_0x3afef7(0x192)]();_0x320db6['updatePivotSource']={'view':_0x59c52c,'changesets':_0x46fcf1,'isEmpty':_0x2e6c69,'pivotTableConfig':_0x320ce3,'collectionConfig':_0x4ce7be,'oldCollectionConfig':_0x26ddf8,'deleteIds':_0x4e334a};}break;case _0x15dd40[_0x3afef7(0x230)]:{const _0x1d1765=_0x2d20f9['params'][_0x3afef7(0x1df)];if(!_0x1d1765)return;const {position:_0x30e986,index:_0x41e674}=_0x1d1765,_0x532f22=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x532f22)return!0x1;const _0x28c8a4=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39);if(!_0x28c8a4)return!0x1;_0x28c8a4[_0x3afef7(0x24e)](),_0x28c8a4[_0x3afef7(0x1df)](_0x30e986,_0x41e674);const _0x59f9b1=_0x28c8a4[_0x3afef7(0xa8)](),_0x4ae2b5=_0x28c8a4[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x2f7319=_0x28c8a4[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x1df)]={'changesets':_0x2f7319,'pivotTableConfig':_0x532f22,'isEmpty':_0x59f9b1,'view':_0x4ae2b5};}break;case _0x15dd40[_0x3afef7(0x107)]:{const _0x2ea880=_0x2d20f9['params'][_0x3afef7(0xae)];if(!_0x2ea880)return;const {tableFieldId:_0x8c1e1f,collapse:_0x11619d,item:_0x50b130}=_0x2ea880,_0x98d206=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x92da39),_0x4ebc33=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x98d206||!_0x4ebc33)return;_0x98d206[_0x3afef7(0x24e)](),_0x98d206[_0x3afef7(0x214)](_0x8c1e1f,_0x11619d,_0x50b130);const _0x4ddd1c=_0x98d206[_0x3afef7(0xa8)](),_0x2bf388=_0x98d206[_0x3afef7(0x341)]()[_0x3afef7(0x316)](),_0x546753=_0x98d206[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0xae)]={'view':_0x2bf388,'isEmpty':_0x4ddd1c,'pivotTableConfig':_0x4ebc33,'changesets':_0x546753};}break;case _0x15dd40[_0x3afef7(0xa0)]:{const _0x45bf03=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x281)];if(!_0x45bf03)return;const {pivotTableConfig:_0x1a4d6a}=_0x45bf03,_0x44aecd=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x185)](_0x92da39),_0x2049c4=this[_0x3afef7(0x329)][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x44aecd||!_0x2049c4)return;_0x44aecd[_0x3afef7(0x24e)](),_0x47fec1(_0x44aecd,_0x1a4d6a);const _0x518383=_0x44aecd[_0x3afef7(0xa8)](),_0x277f33=_0x44aecd[_0x3afef7(0x341)]()['toJSON'](),_0x31a1a5=_0x44aecd[_0x3afef7(0x192)]();_0x320db6[_0x3afef7(0x281)]={'view':_0x277f33,'isEmpty':_0x518383,'pivotTableConfig':{..._0x2049c4,'fieldsConfig':_0x44aecd['toJSON']()},'changesets':_0x31a1a5};}break;case _0x15dd40[_0x3afef7(0x38a)]:{const _0x4e1416=_0x2d20f9[_0x3afef7(0x14d)][_0x3afef7(0x3ac)];if(!_0x4e1416)return;const _0x328072=this[_0x3afef7(0x329)][_0x3afef7(0x185)](_0x92da39),_0x4f3391=this['_sheetsPivotDataSourceModel'][_0x3afef7(0x13c)](_0x86e468,_0x5eb993,_0x92da39);if(!_0x328072||!_0x4f3391)return;_0x328072[_0x3afef7(0x24e)](),_0x2b026f(_0x328072,_0x4e1416[_0x3afef7(0x26a)]);const _0x300669=_0x328072['query']()[_0x3afef7(0x316)](),_0x250a2d=_0x328072['endCollectChangeset']();_0x320db6[_0x3afef7(0x3ac)]={'view':_0x300669,'isEmpty':!0x0,'pivotTableConfig':{..._0x4f3391,'fieldsConfig':_0x328072[_0x3afef7(0x316)]()},'changesets':_0x250a2d};}break;case _0x15dd40[_0x3afef7(0x2db)]:{const _0xc0d948=_0x2d20f9[_0x3afef7(0x14d)]['addPivotTableWithConfig'];if(!_0xc0d948)return;const _0x9b430e=_0xc0d948['sourceRangeInfo'],_0x1d246d=_0xc0d948[_0x3afef7(0x359)],{collection:_0x12a432}=this[_0x3afef7(0x329)]['createCollectionWithDataRange']({'unitId':_0x9b430e[_0x3afef7(0x1bc)],'sheetName':_0x9b430e[_0x3afef7(0x34f)],'subUnitId':_0x9b430e['subUnitId'],'range':_0x9b430e['range']}),_0x303f51=new _0x3e0737[(_0x3afef7(0x277))](_0x12a432,void 0x0,_0x1d246d),_0x2b7e6c=_0x12a432[_0x3afef7(0x1b3)](),{rows:_0xdf05f,columns:_0x4c6b08,filters:_0x3d913f,values:_0x2a9524}=_0xc0d948[_0x3afef7(0x2e4)];_0x303f51['startCollectChangeset']();for(const {field:_0x23ffec,selectedItems:_0x5a8319}of _0xdf05f||[]){const _0x27a6dc=_0x2b7e6c[_0x23ffec];if(_0x27a6dc){const _0xaeaae1=_0x303f51[_0x3afef7(0x2ac)](_0x27a6dc,_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x2ef)]);_0x5a8319&&_0xaeaae1&&_0x303f51['setLabelFilterInfo'](_0xaeaae1[_0x3afef7(0x149)](),{'type':_0x3e0737[_0x3afef7(0x17b)][_0x3afef7(0xeb)],'list':_0x5a8319,'isAll':!0x1});}}for(const {field:_0x4d44c2,selectedItems:_0x203164}of _0x4c6b08||[]){const _0x893dd1=_0x2b7e6c[_0x4d44c2];if(_0x893dd1){const _0x5e1f85=_0x303f51['addFieldWithSourceId'](_0x893dd1,_0x3e0737[_0x3afef7(0x372)]['Column']);_0x203164&&_0x5e1f85&&_0x303f51[_0x3afef7(0x317)](_0x5e1f85[_0x3afef7(0x149)](),{'type':_0x3e0737['PivotFilterTypeEnum'][_0x3afef7(0xeb)],'list':_0x203164,'isAll':!0x1});}}for(const {field:_0x4d8d70,selectedItems:_0x424b5f}of _0x3d913f||[]){const _0x3a9c0b=_0x2b7e6c[_0x4d8d70];if(_0x3a9c0b){const _0xc8a3f5=_0x303f51[_0x3afef7(0x2ac)](_0x3a9c0b,_0x3e0737[_0x3afef7(0x372)][_0x3afef7(0x395)]);_0x424b5f&&_0xc8a3f5&&_0x303f51['setLabelFilterInfo'](_0xc8a3f5['getId'](),{'type':_0x3e0737[_0x3afef7(0x17b)][_0x3afef7(0xeb)],'list':_0x424b5f,'isAll':!0x1});}}for(const {field:_0x567300,subTotalType:_0x4a0356,formatString:_0x282384}of _0x2a9524||[]){const _0x3f32e0=_0x12a432[_0x3afef7(0x158)](_0x2b7e6c[_0x567300]);if(!_0x3f32e0)continue;const _0x58c194=_0x2b7e6c[_0x567300];if(_0x58c194){const _0x90e4bc=_0x303f51['addFieldWithSourceId'](_0x58c194,_0x3e0737['PivotTableFiledAreaEnum'][_0x3afef7(0xbb)]);if(_0x90e4bc){if(_0x4a0356!==void 0x0){_0x303f51[_0x3afef7(0x186)](_0x90e4bc[_0x3afef7(0x149)](),_0x4a0356);const _0x503606=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x9b430e[_0x3afef7(0x1bc)])[_0x3afef7(0xe7)]()||_0x3e0737[_0x3afef7(0x21c)],_0x24b5ed=_0x12a432[_0x3afef7(0x115)](_0x58c194),_0x434513=_0x503606(_0x24b5ed,_0x4a0356);_0x303f51[_0x3afef7(0x32b)](_0x90e4bc[_0x3afef7(0x149)](),_0x434513);}else{if(_0x3f32e0){const _0x32f807=_0x3f32e0==null?void 0x0:_0x3f32e0[_0x3afef7(0x1a0)]();_0x303f51[_0x3afef7(0x186)](_0x90e4bc[_0x3afef7(0x149)](),_0x32f807===_0x3e0737[_0x3afef7(0x1d9)][_0x3afef7(0xa5)]?_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x35a)]:_0x3e0737[_0x3afef7(0x2c6)][_0x3afef7(0x208)]);}}_0x282384&&_0x303f51[_0x3afef7(0x1e2)](_0x90e4bc[_0x3afef7(0x149)](),_0x282384);}}}const _0x5895c6=_0x303f51['query'](),_0x1c1756=_0x303f51[_0x3afef7(0x316)](),_0x2facd2=_0x303f51['isEmpty'](),_0xe7df8d=_0x303f51['endCollectChangeset'](),_0x5c065e=_0x12a432[_0x3afef7(0x316)]();_0x320db6[_0x3afef7(0x26b)]={'view':_0x5895c6,'fieldsConfig':_0x1c1756,'collectionConfig':_0x5c065e,'isEmpty':_0x2facd2,'changesets':_0xe7df8d};}break;case _0x15dd40[_0x3afef7(0x10e)]:{const _0x406f77=_0x458a75(this['_injector'],_0x2d20f9);if(!_0x406f77)return;const {range:_0x7ee871,sourceSubUnitId:_0x1034d0,sourceUnitId:_0x1e6929,formatMap:_0x449a55,indexes:_0x10c6b6}=_0x406f77;_0x320db6['drillDown']={'range':_0x7ee871,'sourceSubUnitId':_0x1034d0,'sourceUnitId':_0x1e6929,'formatMap':_0x449a55,'indexes':_0x10c6b6};}break;}this[_0x3afef7(0x2e0)][_0x3afef7(0xe0)](_0x391749['id'],{'version':_0x2d20f9['version'],'result':_0x320db6},{'onlyLocal':!0x0});}));}[_0x2b16d4(0x396)](){const _0x108ed0=_0x2b16d4;this['disposeWithMe'](this[_0x108ed0(0x2e0)][_0x108ed0(0x333)](_0x1b6193=>{const _0x3d3edd=_0x108ed0;if(_0x1b6193['id']!==_0x4c3710['id'])return;const _0x211349=_0x1b6193['params'];return this['_sheetsPivotDataSourceModel'][_0x3d3edd(0x201)](_0x211349[_0x3d3edd(0xdd)]),!0x0;}));}[_0x2b16d4(0xe4)](){const _0x1aa13f=_0x2b16d4;this[_0x1aa13f(0x329)]['collectionChange$'][_0x1aa13f(0x223)](_0x30d6b8=>{const _0x2dc4ba=_0x1aa13f;switch(_0x30d6b8['type']){case _0xa08ad4[_0x2dc4ba(0x183)]:_0x30d6b8['dataRangeInfo']&&_0x30d6b8[_0x2dc4ba(0x360)]&&this[_0x2dc4ba(0x104)](_0x30d6b8[_0x2dc4ba(0x21a)],_0x30d6b8[_0x2dc4ba(0x331)],_0x30d6b8['targetCellInfo']);break;case _0xa08ad4[_0x2dc4ba(0x1c1)]:{const {unitId:_0x54aeb0,subUnitId:_0x518412,token:_0x53c1cb}=_0x30d6b8;_0x54aeb0&&_0x518412&&_0x53c1cb&&this[_0x2dc4ba(0x202)](_0x54aeb0,_0x518412,_0x53c1cb);}break;case _0xa08ad4[_0x2dc4ba(0x1e6)]:{const {token:_0x448820,oldSourceRangeInfo:_0x427e06,dataRangeInfo:_0x3f2b4a,targetCellInfo:_0x42e82f}=_0x30d6b8,{unitId:_0x399aa2,subUnitId:_0x52f6e6}=_0x427e06||{};_0x399aa2&&_0x52f6e6&&_0x448820&&this[_0x2dc4ba(0x202)](_0x399aa2,_0x52f6e6,_0x448820),_0x3f2b4a&&_0x42e82f&&this['handleSourceRangeChange'](_0x448820,_0x3f2b4a,_0x42e82f);}break;}});}[_0x2b16d4(0x31c)](){const _0x3fb509=_0x2b16d4;this[_0x3fb509(0x329)]['fieldsCollectionChange$'][_0x3fb509(0x223)](_0x5b3906=>{const _0x1d58a4=_0x3fb509;Object['keys'](_0x5b3906)[_0x1d58a4(0xff)](_0x2bdf66=>{const _0x4ff265=_0x1d58a4,_0x7f1188=this['_sheetsPivotDataSourceModel'][_0x4ff265(0x31f)](_0x2bdf66);if(_0x7f1188){const _0x37ba2e=this[_0x4ff265(0x329)][_0x4ff265(0x13c)](_0x7f1188==null?void 0x0:_0x7f1188[_0x4ff265(0x1bc)],_0x7f1188==null?void 0x0:_0x7f1188['subUnitId'],_0x2bdf66);_0x37ba2e&&(this[_0x4ff265(0x104)](_0x2bdf66,_0x37ba2e[_0x4ff265(0x2ab)],_0x37ba2e['targetCellInfo']),this['triggerDirtyFeature']([{'unitId':_0x7f1188[_0x4ff265(0x1bc)],'subUnitId':_0x7f1188['subUnitId'],'token':_0x2bdf66}]));}});});}['_subjectViewChange'](){const _0x375f30=_0x2b16d4;this[_0x375f30(0x329)][_0x375f30(0x2ec)][_0x375f30(0x223)](_0x397c25=>{const {unitId:_0x174a3a,subUnitId:_0x203893,pivotTableId:_0x2a954c}=_0x397c25;_0x174a3a&&_0x203893&&_0x2a954c&&this['triggerDirtyFeature']([{'unitId':_0x174a3a,'subUnitId':_0x203893,'token':_0x2a954c}]);});}[_0x2b16d4(0x337)](_0x43152b){const _0x336810=_0x2b16d4,_0x3bb4d={};_0x43152b[_0x336810(0xff)](_0x4af5df=>{var _0x4b1aaa,_0x4422b0;const {unitId:_0x7cc02,subUnitId:_0xb97772,token:_0x12a074}=_0x4af5df;_0x3bb4d[_0x7cc02]=(_0x4b1aaa=_0x3bb4d[_0x7cc02])!=null?_0x4b1aaa:{},_0x3bb4d[_0x7cc02][_0xb97772]=(_0x4422b0=_0x3bb4d[_0x7cc02][_0xb97772])!=null?_0x4422b0:{},_0x3bb4d[_0x7cc02][_0xb97772][_0x12a074]=!0x0;}),this[_0x336810(0x2e0)]['executeCommand'](_0x44990a['id'],_0x3bb4d);}[_0x2b16d4(0x202)](_0x1c3f1f,_0x1c72c3,_0xae24f0){const _0x4808cd=_0x2b16d4;this[_0x4808cd(0x297)][_0x4808cd(0x34a)](_0x1c3f1f,_0x1c72c3,[_0xae24f0]);}['handleSourceRangeChange'](_0x2df0b5,_0x99e72e,_0x231db8){const _0x811a22=_0x2b16d4,{unitId:_0x571750,subUnitId:_0x5009df}=_0x99e72e;this['_featureCalculationManagerService'][_0x811a22(0x105)](_0x231db8['unitId'],_0x231db8[_0x811a22(0x204)],_0x2df0b5)&&this[_0x811a22(0x202)](_0x571750,_0x5009df,_0x2df0b5);const _0x1aa399={'sheetId':_0x5009df,..._0x99e72e};this['_featureCalculationManagerService']['register'](_0x231db8[_0x811a22(0x1bc)],_0x231db8[_0x811a22(0x204)],_0x2df0b5,{'unitId':_0x231db8['unitId'],'subUnitId':_0x231db8[_0x811a22(0x204)],'dependencyRanges':[_0x1aa399],'getDirtyData':(_0x3fbac5,_0x2ab2ad)=>{const _0x546c75=_0x811a22,_0x4fbe87=this[_0x546c75(0x329)],_0x1e98c9=_0x4fbe87[_0x546c75(0x31f)](_0x2df0b5);if(!_0x1e98c9)return _0x2f18a1();const {unitId:_0x29c5f1,subUnitId:_0x573647}=_0x1e98c9,_0x4faa73=_0x5c986e(_0x3fbac5,_0x2ab2ad,_0x99e72e);if(_0x4faa73['length']>0x0){const _0x2c4b55=_0x4fbe87['getCollection'](_0x571750,_0x2df0b5),_0x3ba9ac=_0x2c4b55[_0x546c75(0x1b3)](),_0x3dc1ae=this['getMatrixFromRunTimeData'](_0x99e72e[_0x546c75(0x1bc)],_0x99e72e[_0x546c75(0x204)],_0x2ab2ad),_0x4a5209={},_0x4f1b20=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x29c5f1)[_0x546c75(0xe7)]()||_0x3e0737[_0x546c75(0x21c)],_0x5d4ee9=[];for(const _0x5d1fde of _0x4faa73){const _0x298afc=_0x5d1fde-(_0x99e72e[_0x546c75(0x345)][_0x546c75(0x254)]||0x0),_0x447cbe=_0x3ba9ac[_0x298afc];_0x5d4ee9['push'](_0x447cbe),_0x4a5209[_0x447cbe]=_0x2c4b55[_0x546c75(0x158)](_0x447cbe)[_0x546c75(0x241)](),_0x4fbe87['getDataFieldManager'](_0x571750)[_0x546c75(0x2c9)](_0x447cbe,_0x99e72e,_0x298afc,_0x3dc1ae);}_0x2c4b55[_0x546c75(0x319)](_0x5d4ee9)[_0x546c75(0xff)](_0x37c4fa=>{const _0x9bcff2=_0x546c75,[_0x275d3a,_0x42ead4]=_0x37c4fa,_0x5e5969=_0x2c4b55[_0x9bcff2(0x158)](_0x275d3a),_0x1c7afb=_0x2c4b55[_0x9bcff2(0x158)](_0x42ead4);_0x5e5969&&_0x1c7afb&&_0x5e5969[_0x9bcff2(0xd6)](_0x1c7afb);}),_0x2c4b55['updateAllDisplayName']();const _0x43b5d1=_0x4fbe87[_0x546c75(0x185)](_0x2df0b5);if(_0x43b5d1){_0x31967d(_0x43b5d1,_0x4a5209,_0x4f1b20),_0x43b5d1[_0x546c75(0x349)](!0x0);const _0x4f3620=_0x43b5d1[_0x546c75(0x341)](),_0x30a54c=_0x4fbe87[_0x546c75(0x13c)](_0x29c5f1,_0x573647,_0x2df0b5),_0x5db7f4=_0x4fbe87['getDataFieldManager'](_0x571750)['toJSON']();_0x4fbe87[_0x546c75(0xa3)](_0x29c5f1,_0x573647,_0xa5664b[_0x546c75(0x127)],_0x2df0b5,_0x4f3620,_0x30a54c,_0x5db7f4,!0x0);}}return this[_0x546c75(0xd5)](_0x29c5f1,_0x573647,_0x2df0b5);}});}['getMatrixFromRunTimeData'](_0x541304,_0x299d43,_0x40dcd3){var _0x525151,_0x494ccb;const {arrayFormulaCellData:_0x45e4ab,unitData:_0x55f6be}=_0x40dcd3,_0x20b1e0=(_0x525151=_0x45e4ab==null?void 0x0:_0x45e4ab[_0x541304])==null?void 0x0:_0x525151[_0x299d43],_0x2240fd=(_0x494ccb=_0x55f6be==null?void 0x0:_0x55f6be[_0x541304])==null?void 0x0:_0x494ccb[_0x299d43];return{'arrayFormulaCellDataMatrix':_0x20b1e0,'unitDataMatrix':_0x2240fd};}['getDirtyInfo'](_0x17b431,_0x5e66e6,_0x180ec1){const _0x360eec=_0x2b16d4,_0x137523=this[_0x360eec(0x329)][_0x360eec(0xfa)](_0x17b431,_0x5e66e6,_0x180ec1),_0x175812=[],_0x2d2e95=new _0x282877[(_0x360eec(0x184))]();if(_0x137523){const {rangeCache:_0x2a0908,matrix:_0x3c57e4,oldRangeCache:_0x53d4bf,oldMatrix:_0x2de6f5}=_0x137523,_0x2ae1b0=_0x56a3ee(_0x53d4bf),_0x5edb2d=_0x56a3ee(_0x2a0908);_0x175812['push'](..._0x5edb2d,..._0x2ae1b0),_0x2de6f5&&_0x53d4bf&&_0x2ae1b0[_0x360eec(0xff)](_0x1ae282=>{const _0x277857=_0x360eec;for(let _0x328f82=_0x1ae282[_0x277857(0x19f)];_0x328f82<=_0x1ae282[_0x277857(0x39e)];_0x328f82++)for(let _0x227186=_0x1ae282[_0x277857(0x254)];_0x227186<=_0x1ae282['endColumn'];_0x227186++)_0x2d2e95[_0x277857(0x243)](_0x328f82,_0x227186);}),_0x3c57e4&&_0x5edb2d&&_0x5edb2d[_0x360eec(0xff)](_0x1b74b2=>{const _0xd69102=_0x360eec;for(let _0x24a7c2=_0x1b74b2[_0xd69102(0x19f)];_0x24a7c2<=_0x1b74b2[_0xd69102(0x39e)];_0x24a7c2++)for(let _0x11a7ef=_0x1b74b2['startColumn'];_0x11a7ef<=_0x1b74b2[_0xd69102(0x244)];_0x11a7ef++)_0x2d2e95[_0xd69102(0x39a)](_0x24a7c2,_0x11a7ef,_0x3c57e4[_0xd69102(0x1e3)](_0x24a7c2,_0x11a7ef));});}const _0x56df0={};return _0x56df0[_0x17b431]={[_0x5e66e6]:_0x11ba6c(_0x175812)},{'runtimeCellData':{[_0x17b431]:{[_0x5e66e6]:_0x2d2e95}},'dirtyRanges':_0x56df0};}[_0x2b16d4(0x2be)](){}};_0x566683=_0x5f0ff4([_0x597a43(0x0,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x1b4)])),_0x597a43(0x1,_0x282877[_0x2b16d4(0x120)](_0x3b2497[_0x2b16d4(0x33d)])),_0x597a43(0x2,_0x282877['Inject'](_0x282877[_0x2b16d4(0x240)])),_0x597a43(0x3,_0x282877[_0x2b16d4(0x120)](_0x3b2497['GlobalComputingStatusService'])),_0x597a43(0x4,_0x282877['Inject'](_0x282877['Injector']))],_0x566683);var _0x4a95e8=Object[_0x2b16d4(0x34b)],_0x6a210e=(_0x3902d3,_0x23e755,_0x26708f,_0x1e1951)=>{const _0x4fb061=_0x2b16d4;for(var _0x4b614b=_0x1e1951>0x1?void 0x0:_0x1e1951?_0x4a95e8(_0x23e755,_0x26708f):_0x23e755,_0x3183f1=_0x3902d3[_0x4fb061(0x27b)]-0x1,_0xe6ec80;_0x3183f1>=0x0;_0x3183f1--)(_0xe6ec80=_0x3902d3[_0x3183f1])&&(_0x4b614b=_0xe6ec80(_0x4b614b)||_0x4b614b);return _0x4b614b;},_0x470f2d=(_0xcf6fc3,_0x29cbef)=>(_0x43518f,_0x41fe22)=>_0x29cbef(_0x43518f,_0x41fe22,_0xcf6fc3);let _0x50b047=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x55f160,_0x5dc2d8,_0xc8375a,_0x844ebc){const _0x2376fd=_0x2b16d4;super(),_0x2e1abd(this,'disposableCollection',new _0x282877[(_0x2376fd(0x147))]()),(this[_0x2376fd(0x12c)]=_0x55f160,this[_0x2376fd(0x31a)]=_0x5dc2d8,this[_0x2376fd(0x392)]=_0xc8375a,this[_0x2376fd(0xc5)]=_0x844ebc,this['_initClearSelectionCommandInterceptor']());}[_0x2b16d4(0xd7)](){const _0x34d65a=_0x2b16d4;this[_0x34d65a(0x324)](this['_sheetInterceptorService'][_0x34d65a(0x207)]({'getMutations':_0x4e0521=>{const _0x119baf=_0x34d65a;if(_0x4e0521['id']===_0x5698b3['ClearSelectionContentCommand']['id']||_0x4e0521['id']===_0x5698b3[_0x119baf(0x2a5)]['id']){const _0x362f5b=[],_0x4da7cf=[],_0x338b3e=this['_sheetsSelectionsService']['getCurrentSelections']()['map'](_0x4ef2d6=>_0x4ef2d6[_0x119baf(0x345)]),_0x2507ff=_0x5698b3['getSheetCommandTarget'](this[_0x119baf(0x12c)]);if(!_0x2507ff)return{'redos':[],'undos':[]};const {unitId:_0x1a3805,subUnitId:_0x242cd5}=_0x2507ff,_0x236c15={},_0x14eaf2=this[_0x119baf(0xc5)][_0x119baf(0x231)](_0x1a3805,_0x242cd5);if(_0x14eaf2!=null&&_0x14eaf2[_0x119baf(0x1a5)])for(const [_0x3cb03f,_0x2ede49]of _0x14eaf2){const {unitId:_0xedd890,subUnitId:_0x1c8a51,row:_0x4b2455,col:_0x24b931}=_0x2ede49[_0x119baf(0x360)];_0xedd890===_0x2507ff['unitId']&&_0x1c8a51===_0x2507ff[_0x119baf(0x204)]&&(_0x236c15[_0x4b2455+'-'+_0x24b931]=_0x3cb03f);}return _0x338b3e&&_0x2507ff&&_0x338b3e[_0x119baf(0xff)](_0x11c119=>{_0x282877['Range']['foreach'](_0x11c119,(_0x23203c,_0x928744)=>{const _0x40e57d=_0x4298,_0x43a895=_0x23203c+'-'+_0x928744;if(_0x236c15[_0x43a895]){const _0xd6c69c=_0x236c15[_0x43a895];_0x362f5b[_0x40e57d(0x338)]({'id':_0x3307ac['id'],'params':{'unitId':_0x1a3805,'subUnitId':_0x242cd5,'pivotTableId':_0xd6c69c}});const _0x58aa02=this[_0x40e57d(0xc5)]['getCollection'](_0x1a3805,_0xd6c69c),_0x423d0e=this['_sheetsPivotTableConfigModel'][_0x40e57d(0x13c)](_0x1a3805,_0x242cd5,_0xd6c69c);_0x4da7cf[_0x40e57d(0x338)]({'id':_0x1e563e['id'],'params':{'unitId':_0x1a3805,'subUnitId':_0x242cd5,'pivotTableId':_0xd6c69c,'pivotTableConfig':_0x423d0e,'collectionConfig':_0x58aa02}});}});}),{'redos':_0x362f5b,'undos':_0x4da7cf};}return{'redos':[],'undos':[]};}}));}};_0x50b047=_0x6a210e([_0x470f2d(0x0,_0x282877[_0x2b16d4(0x165)]),_0x470f2d(0x1,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x257)])),_0x470f2d(0x2,_0x282877[_0x2b16d4(0x120)](_0x5698b3['SheetsSelectionsService'])),_0x470f2d(0x3,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x15d)]))],_0x50b047);var _0x4f5645=Object[_0x2b16d4(0x34b)],_0x3f157c=(_0x376dd5,_0x4e745e,_0x1e7392,_0x5b08d3)=>{for(var _0x1a3ba1=_0x5b08d3>0x1?void 0x0:_0x5b08d3?_0x4f5645(_0x4e745e,_0x1e7392):_0x4e745e,_0x4c61ce=_0x376dd5['length']-0x1,_0x3048f9;_0x4c61ce>=0x0;_0x4c61ce--)(_0x3048f9=_0x376dd5[_0x4c61ce])&&(_0x1a3ba1=_0x3048f9(_0x1a3ba1)||_0x1a3ba1);return _0x1a3ba1;},_0x245003=(_0x45c6bc,_0x26ebf9)=>(_0x394768,_0x2b592c)=>_0x26ebf9(_0x394768,_0x2b592c,_0x45c6bc);let _0x489cf9=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x146591,_0x57acd4,_0x185a57,_0x150c15,_0x25aee7){const _0x35e80a=_0x2b16d4;super(),this[_0x35e80a(0x31a)]=_0x146591,this[_0x35e80a(0x1fe)]=_0x57acd4,this[_0x35e80a(0x12c)]=_0x185a57,this[_0x35e80a(0xc5)]=_0x150c15,this['_sheetsPivotTableService']=_0x25aee7,this[_0x35e80a(0x18a)]();}[_0x2b16d4(0x130)](_0x29ee3f,_0x11b6a1,_0xda03b4){const _0x3a7a20=_0x2b16d4,{pageView:_0x116c1d,cornerView:_0x8efab9,rowView:_0x53f8ab,colView:_0x345202,dataView:_0x563735}=_0x11b6a1,_0x1aa9fc=_0x29ee3f;let _0x33995b;if(_0xda03b4)_0x33995b=[..._0x4bbd29(_0x1aa9fc)];else{const _0x38fe3f=_0x37a9a3(_0x1aa9fc,_0x116c1d,!0x0),_0x2efaaf=_0x116c1d[_0x3a7a20(0xcf)]>=0x0?_0x116c1d[_0x3a7a20(0xcf)]+0x1:0x0,_0x6b615b=_0x8efab9[_0x3a7a20(0x2cc)],_0x3d334e=_0x8efab9[_0x3a7a20(0x2eb)],_0x417a3f=_0x38fe3f[_0x3a7a20(0x27b)]>0x0?_0x44f3d5:0x0,_0x3a0c9f=_0x37a9a3({'row':_0x1aa9fc[_0x3a7a20(0x303)]+_0x2efaaf+_0x417a3f,'col':_0x1aa9fc[_0x3a7a20(0x1da)]},_0x8efab9,!0x1,!0x1),_0x491611=_0x37a9a3({'row':_0x1aa9fc[_0x3a7a20(0x303)]+_0x2efaaf+_0x417a3f+_0x6b615b,'col':_0x1aa9fc[_0x3a7a20(0x1da)]},_0x53f8ab,!0x1,!0x0),_0x12c90e=_0x37a9a3({'row':_0x1aa9fc[_0x3a7a20(0x303)]+_0x2efaaf+_0x417a3f,'col':_0x1aa9fc[_0x3a7a20(0x1da)]+_0x3d334e},_0x345202,!0x1,!0x0),_0x1cc5a5=_0x37a9a3({'row':_0x1aa9fc['row']+_0x2efaaf+_0x417a3f+_0x6b615b,'col':_0x1aa9fc[_0x3a7a20(0x1da)]+_0x3d334e},_0x563735,!0x1,!0x0);_0x33995b=[..._0x38fe3f,..._0x3a0c9f,..._0x491611,..._0x12c90e,..._0x1cc5a5];}return _0x33995b;}[_0x2b16d4(0x18a)](){const _0x17400e=_0x2b16d4;this['disposeWithMe'](this[_0x17400e(0x1f7)]['interceptor'][_0x17400e(0x1af)](this[_0x17400e(0x1f7)][_0x17400e(0x388)][_0x17400e(0x299)]()[_0x17400e(0x1ae)],{'handler':(_0x10edcc,_0x35b0ea)=>{const _0x2120d1=_0x17400e,{cellInfo:_0x41c103,view:_0x45a413,isEmpty:_0x56e66a}=_0x35b0ea,_0x6362ea=_0x41c103,{unitId:_0x3f00ab,subUnitId:_0x1b3639}=_0x6362ea,_0x455045=this['_getPivotAppliedRanges'](_0x41c103,_0x45a413,_0x56e66a),_0x3905f9=this[_0x2120d1(0x31a)]['generateMutationsByRanges']({'unitId':_0x3f00ab,'subUnitId':_0x1b3639,'ranges':_0x455045}),_0x455e20=_0x1fac4a(this[_0x2120d1(0x1fe)],_0x3f00ab,_0x1b3639,_0x455045);_0x455e20[_0x2120d1(0x1b2)]&&(_0x3905f9[_0x2120d1(0x2a3)][_0x2120d1(0x338)](_0x455e20[_0x2120d1(0x3a8)]),_0x3905f9['undos']['push'](_0x455e20['setRangeValueUndoMutation']));const _0x17f9ca=this[_0x2120d1(0x342)](_0x45a413,_0x41c103);return _0x3905f9[_0x2120d1(0x2a3)][_0x2120d1(0x338)](..._0x17f9ca[_0x2120d1(0x2a3)]),_0x3905f9[_0x2120d1(0x1cd)][_0x2120d1(0x338)](..._0x17f9ca['undos']),{'redos':_0x3905f9[_0x2120d1(0x2a3)],'undos':_0x3905f9[_0x2120d1(0x1cd)]};}}));}[_0x2b16d4(0x342)](_0x5c4f6d,_0x6e9eef){const _0x159c6a=_0x2b16d4,{col:_0x2082a8,unitId:_0x2a451e,subUnitId:_0x9a7c92}=_0x6e9eef,_0x286c26=[],_0xb737f0=[],_0x117376=_0x5698b3[_0x159c6a(0x2e1)](this[_0x159c6a(0x12c)],{'unitId':_0x2a451e,'subUnitId':_0x9a7c92});if(!_0x6e9eef||!_0x5c4f6d||!_0x117376)return{'undos':_0xb737f0,'redos':_0x286c26};const _0x6593a5=this['_sheetsPivotTableConfigModel'][_0x159c6a(0x123)](),{colView:_0x23eea3,dataView:_0x39471e,cornerView:_0x28baf8,rowView:_0x271e24,formatMap:_0x487bf0}=_0x5c4f6d,_0x2da436=_0x52c202(_0x23eea3,_0x6593a5,!0x0,_0x487bf0),_0x5d3f86=_0x52c202(_0x271e24,_0x6593a5,!0x1,_0x487bf0),_0x16f7d9=_0x2e7059(_0x39471e),_0x2913bd=_0x41cf33(_0x28baf8),{worksheet:_0x2b208a}=_0x117376;if(typeof window<'u'&&window[_0x159c6a(0x272)]){const _0x30bcdc=_0x1c6860[_0x159c6a(0x16e)]({..._0x433375[_0x159c6a(0xe8)]}),_0x1d0b15=_0x1c6860['FontCache']['getTextSize'](_0x2da436,_0x30bcdc)[_0x159c6a(0x2e2)]+0x10,_0xbbd562=_0x1c6860['FontCache'][_0x159c6a(0x1eb)](_0x16f7d9,_0x30bcdc)[_0x159c6a(0x2e2)],_0x182ff7=Math['floor'](Math['max'](_0x1d0b15,_0xbbd562))+0x10,_0x326d26=Math[_0x159c6a(0xce)](_0x1c6860[_0x159c6a(0x26d)][_0x159c6a(0x1eb)](_0x5d3f86,_0x30bcdc)[_0x159c6a(0x2e2)]),_0x2668cc=Math[_0x159c6a(0xce)](_0x1c6860[_0x159c6a(0x26d)][_0x159c6a(0x1eb)](_0x2913bd,_0x30bcdc)[_0x159c6a(0x2e2)]),_0x5188d8=Math[_0x159c6a(0x24d)](_0x326d26,_0x2668cc,0x28)+0xc,_0x5bf3d7=_0x23eea3[_0x159c6a(0x2eb)]+_0x28baf8[_0x159c6a(0x2eb)],_0x46564d={},_0x470584={};for(let _0x34477a=_0x2082a8;_0x34477a<_0x2082a8+_0x5bf3d7;_0x34477a++){const _0x2c5f5=_0x2b208a[_0x159c6a(0x2b6)](_0x34477a);_0x46564d[_0x34477a]=_0x2c5f5,_0x34477a-_0x2082a8<_0x28baf8[_0x159c6a(0x2eb)]?_0x470584[_0x34477a-_0x2082a8]=_0x5188d8:_0x470584[_0x34477a-_0x2082a8]=_0x182ff7;}_0x286c26[_0x159c6a(0x338)]({'id':_0x5698b3[_0x159c6a(0x31b)]['id'],'params':{'subUnitId':_0x9a7c92,'unitId':_0x2a451e,'ranges':[{'startColumn':_0x2082a8,'endColumn':_0x2082a8+_0x5bf3d7-0x1,'startRow':0x0,'endRow':_0x2b208a[_0x159c6a(0x2d2)]()-0x1}],'colWidth':_0x470584}}),_0xb737f0[_0x159c6a(0x338)]({'id':_0x5698b3[_0x159c6a(0x31b)]['id'],'params':{'subUnitId':_0x9a7c92,'unitId':_0x2a451e,'ranges':[{'startColumn':_0x2082a8,'endColumn':_0x2082a8+_0x5bf3d7-0x1,'startRow':0x0,'endRow':_0x2b208a[_0x159c6a(0x2d2)]()-0x1}],'colWidth':_0x46564d}});}return{'undos':_0xb737f0,'redos':_0x286c26};}};_0x489cf9=_0x3f157c([_0x245003(0x0,_0x282877['Inject'](_0x5698b3[_0x2b16d4(0x257)])),_0x245003(0x1,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x245003(0x2,_0x282877['Inject'](_0x282877[_0x2b16d4(0x165)])),_0x245003(0x3,_0x282877[_0x2b16d4(0x120)](_0x24d96c['SheetsPivotTableConfigModel'])),_0x245003(0x4,_0x282877['Inject'](_0x24d96c[_0x2b16d4(0x199)]))],_0x489cf9);var _0x54b89f=Object['getOwnPropertyDescriptor'],_0x4195d6=(_0x1c13d2,_0x444e9d,_0x1c5625,_0x280624)=>{const _0x31dbee=_0x2b16d4;for(var _0x5cb2b3=_0x280624>0x1?void 0x0:_0x280624?_0x54b89f(_0x444e9d,_0x1c5625):_0x444e9d,_0x490c58=_0x1c13d2[_0x31dbee(0x27b)]-0x1,_0x4038cd;_0x490c58>=0x0;_0x490c58--)(_0x4038cd=_0x1c13d2[_0x490c58])&&(_0x5cb2b3=_0x4038cd(_0x5cb2b3)||_0x5cb2b3);return _0x5cb2b3;},_0x3ec82d=(_0x3c2ed4,_0x1ee1af)=>(_0x2e63f1,_0x3cf845)=>_0x1ee1af(_0x2e63f1,_0x3cf845,_0x3c2ed4);let _0x1c208c=class extends _0x282877['Disposable']{constructor(_0x197193,_0x36fc64,_0x2a3a6c,_0x42cb9e,_0xf03c95,_0x15a416,_0x508034){const _0x1d9150=_0x2b16d4;super(),_0x2e1abd(this,_0x1d9150(0x22b),new _0x282877['DisposableCollection']()),(this['_injector']=_0x197193,this[_0x1d9150(0x2c7)]=_0x36fc64,this['_commandService']=_0x2a3a6c,this[_0x1d9150(0x12c)]=_0x42cb9e,this[_0x1d9150(0xc5)]=_0xf03c95,this['_sheetsPivotTableAdaptorModel']=_0x15a416,this[_0x1d9150(0x31a)]=_0x508034,this[_0x1d9150(0x354)]());}[_0x2b16d4(0x354)](){const _0x3c62b5=_0x2b16d4,_0x4026d5=(_0xefd9d6,_0x237f43)=>{const _0x40d9be=_0x4298,_0xcc49b3=this['_univerInstanceService'][_0x40d9be(0xd3)](_0x282877[_0x40d9be(0x20b)][_0x40d9be(0x328)]);if(!_0xcc49b3||!(_0xcc49b3==null?void 0x0:_0xcc49b3[_0x40d9be(0x374)](_0x237f43)))return;this[_0x40d9be(0x22b)][_0x40d9be(0x2be)]();const _0x21a0ea=_0x50192d=>this['_refRangeHandle'](_0x50192d,_0xefd9d6,_0x237f43),_0x1e22cc=this['_sheetsPivotTableConfigModel'][_0x40d9be(0x231)](_0xefd9d6,_0x237f43);if(!(_0x1e22cc!=null&&_0x1e22cc['size']))return;Array[_0x40d9be(0xa4)](_0x1e22cc[_0x40d9be(0x369)]())[_0x40d9be(0x279)](_0x4ede39=>{const _0x4bd8a7=_0x40d9be,{row:_0x1bd7c4,col:_0x1d237a}=_0x4ede39[_0x4bd8a7(0x360)];return _0x282877[_0x4bd8a7(0x29f)](_0x1bd7c4,_0x1d237a);})[_0x40d9be(0xff)](_0x10464c=>{const _0x1c4d94=_0x40d9be;this[_0x1c4d94(0x22b)][_0x1c4d94(0x183)](this[_0x1c4d94(0x2c7)]['registerRefRange'](_0x10464c,_0x21a0ea,_0xefd9d6,_0x237f43));});},_0xbd73bf=()=>{const _0x3543f1=_0x4298,_0x3dbff1=this['_univerInstanceService'][_0x3543f1(0xd3)](_0x282877[_0x3543f1(0x20b)][_0x3543f1(0x328)]);if(_0x3dbff1){const _0x515983=_0x3dbff1[_0x3543f1(0x2f1)]();if(!_0x515983)return;_0x4026d5(_0x3dbff1[_0x3543f1(0x255)](),_0x515983['getSheetId']());}};this[_0x3c62b5(0x324)](this[_0x3c62b5(0x2e0)][_0x3c62b5(0x333)](_0x271d52=>{const _0x41d9dd=_0x3c62b5;if(_0x271d52['id']===_0x5698b3['SetWorksheetActiveOperation']['id']){const _0x14417e=_0x271d52[_0x41d9dd(0x14d)],_0x1c314f=_0x14417e[_0x41d9dd(0x204)],_0x44bfd8=_0x14417e[_0x41d9dd(0x1bc)];if(!_0x1c314f||!_0x44bfd8)return;_0x4026d5(_0x44bfd8,_0x1c314f);}})),this[_0x3c62b5(0x324)](this['_sheetsPivotTableConfigModel'][_0x3c62b5(0x294)]['subscribe'](_0x174d71=>{_0x174d71&&_0xbd73bf();})),this[_0x3c62b5(0x324)](this[_0x3c62b5(0xc5)][_0x3c62b5(0x364)][_0x3c62b5(0x223)](_0x4bcfdb=>{const _0x461b95=_0x3c62b5,_0x3f90d6=_0x5698b3['getSheetCommandTarget'](this[_0x461b95(0x12c)]);if(!_0x3f90d6)return;const {unitId:_0x408ed0,subUnitId:_0x37c8d3}=_0x3f90d6,{unitId:_0x127f56,subUnitId:_0x363f09}=_0x4bcfdb;_0x408ed0!==_0x127f56||_0x37c8d3!==_0x363f09||_0x4026d5(_0x408ed0,_0x37c8d3);})),_0xbd73bf();}[_0x2b16d4(0xc4)](_0x39cbc5,_0x2ae8bf,_0x13f2b6){const _0x51900d=_0x2b16d4;switch(_0x39cbc5['id']){case _0x5698b3[_0x51900d(0xfe)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x39cbc5[_0x51900d(0x14d)],_0x2ae8bf,_0x13f2b6);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x3e5474,_0xd7a152,_0x5f48a1){const _0x52a7df=_0x2b16d4,{fromRange:_0x1c58ff,toRange:_0x2f7e69}=_0x3e5474,_0x6bf60a=[],_0x1763aa=[],_0x4658d8=_0x5698b3['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x4658d8)return{'undos':_0x1763aa,'redos':_0x6bf60a};if(_0xd7a152!==_0x4658d8[_0x52a7df(0x1bc)]||_0x5f48a1!==_0x4658d8['subUnitId'])return{'undos':_0x1763aa,'redos':_0x6bf60a};const _0x4025ec=this[_0x52a7df(0xc5)][_0x52a7df(0x231)](_0xd7a152,_0x5f48a1);if(_0x4025ec!=null&&_0x4025ec[_0x52a7df(0x1a5)])for(const [_0x5f1ca7,_0x152a83]of _0x4025ec){const {unitId:_0x5ed74f,subUnitId:_0x25950e,row:_0x56518c,col:_0x2d650b}=_0x152a83[_0x52a7df(0x360)];if(_0x5ed74f===_0x4658d8[_0x52a7df(0x1bc)]&&_0x25950e===_0x4658d8[_0x52a7df(0x204)]){const _0x5effb9=_0x282877[_0x52a7df(0x29f)](_0x56518c,_0x2d650b);if(_0x282877['Rectangle'][_0x52a7df(0x2f5)](_0x5effb9,_0x1c58ff)){const _0x19a3c0=_0x56518c-_0x1c58ff[_0x52a7df(0x19f)],_0x1bd9e0=_0x2d650b-_0x1c58ff[_0x52a7df(0x254)],_0x14b732={'row':_0x2f7e69['startRow']+_0x19a3c0,'col':_0x2f7e69[_0x52a7df(0x254)]+_0x1bd9e0};_0x6bf60a[_0x52a7df(0x338)]({'id':_0x353964['id'],'params':{'unitId':_0x5ed74f,'subUnitId':_0x25950e,'pivotTableId':_0x5f1ca7,'targetCellPosition':_0x14b732}}),_0x1763aa[_0x52a7df(0x338)]({'id':_0x353964['id'],'params':{'unitId':_0x5ed74f,'subUnitId':_0x25950e,'pivotTableId':_0x5f1ca7,'targetCellPosition':{'row':_0x56518c,'col':_0x2d650b}}});const _0x19e368=_0x14b732[_0x52a7df(0x303)]-_0x56518c,_0x21e5a2=_0x14b732['col']-_0x2d650b,_0x4b3b6e=[],_0x345cf4=this[_0x52a7df(0x14f)][_0x52a7df(0x34c)](_0x5ed74f,_0x25950e,_0x5f1ca7),_0x2d76b5=_0x345cf4==null?void 0x0:_0x345cf4[_0x52a7df(0x2b4)];if(_0x2d76b5){Object['keys'](_0x2d76b5)['forEach'](_0x2f84e3=>{_0x2d76b5[_0x2f84e3]['forEach'](_0x4c79c4=>{const _0x222f15=_0x4298,_0x3f9b94={..._0x4c79c4};_0x3f9b94[_0x222f15(0x19f)]=_0x4c79c4[_0x222f15(0x19f)]+_0x19e368,_0x3f9b94['endRow']=_0x4c79c4[_0x222f15(0x39e)]+_0x19e368,_0x3f9b94[_0x222f15(0x254)]=_0x4c79c4[_0x222f15(0x254)]+_0x21e5a2,_0x3f9b94[_0x222f15(0x244)]=_0x4c79c4[_0x222f15(0x244)]+_0x21e5a2,_0x4b3b6e['push'](_0x3f9b94);});});const _0x3fae0a=this[_0x52a7df(0x31a)]['generateMutationsByRanges']({'unitId':_0x5ed74f,'subUnitId':_0x25950e,'ranges':_0x4b3b6e});_0x6bf60a[_0x52a7df(0x338)](..._0x3fae0a[_0x52a7df(0x2a3)]),_0x1763aa['push'](..._0x3fae0a['undos']);const _0x56b20b=_0x1fac4a(this['_injector'],_0x5ed74f,_0x25950e,_0x4b3b6e);_0x56b20b[_0x52a7df(0x1b2)]&&(_0x6bf60a[_0x52a7df(0x338)](_0x56b20b[_0x52a7df(0x3a8)]),_0x1763aa[_0x52a7df(0x338)](_0x56b20b[_0x52a7df(0x296)]));}}}}return{'redos':_0x6bf60a,'undos':_0x1763aa};}};_0x1c208c=_0x4195d6([_0x3ec82d(0x0,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x3ec82d(0x1,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x238)])),_0x3ec82d(0x2,_0x282877[_0x2b16d4(0x240)]),_0x3ec82d(0x3,_0x282877[_0x2b16d4(0x165)]),_0x3ec82d(0x4,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x15d)])),_0x3ec82d(0x5,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x389)])),_0x3ec82d(0x6,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x257)]))],_0x1c208c);var _0xb0f59f=Object[_0x2b16d4(0x34b)],_0x98dd34=(_0x2da8af,_0x29e9e8,_0x1b8237,_0x353c5d)=>{const _0xc45480=_0x2b16d4;for(var _0x5ef1f2=_0x353c5d>0x1?void 0x0:_0x353c5d?_0xb0f59f(_0x29e9e8,_0x1b8237):_0x29e9e8,_0x3f030b=_0x2da8af[_0xc45480(0x27b)]-0x1,_0x2e67e4;_0x3f030b>=0x0;_0x3f030b--)(_0x2e67e4=_0x2da8af[_0x3f030b])&&(_0x5ef1f2=_0x2e67e4(_0x5ef1f2)||_0x5ef1f2);return _0x5ef1f2;},_0x571328=(_0x21c819,_0x3ab639)=>(_0x32d697,_0x4ada0f)=>_0x3ab639(_0x32d697,_0x4ada0f,_0x21c819);let _0x57572c=class extends _0x282877['Disposable']{constructor(_0x11974e,_0x2c1caa){const _0x4b0327=_0x2b16d4;super(),this[_0x4b0327(0x31a)]=_0x11974e,this[_0x4b0327(0xc5)]=_0x2c1caa,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x37871e=_0x2b16d4;this['disposeWithMe'](this[_0x37871e(0x31a)][_0x37871e(0x207)]({'getMutations':_0x51167c=>{const _0x11afbd=_0x37871e;if(_0x51167c['id']===_0x5698b3[_0x11afbd(0x28b)]['id']){const _0x3ac830=[],_0x54a69b=[],_0x3b4e36=_0x51167c['params'],{unitId:_0x1978c6,subUnitId:_0x3988cc}=_0x3b4e36;if(!_0x1978c6||!_0x3988cc)return{'undos':_0x54a69b,'redos':_0x3ac830};const _0x302221=this[_0x11afbd(0xc5)]['getSubUnitPivotConfigs'](_0x1978c6,_0x3988cc);if(_0x302221!=null&&_0x302221['size'])for(const [_0x279b1b,_0x42ec3a]of _0x302221){_0x3ac830[_0x11afbd(0x338)]({'id':_0x3307ac['id'],'params':{'unitId':_0x1978c6,'subUnitId':_0x3988cc,'pivotTableId':_0x279b1b}});const _0x4f9c66={...this['_sheetsPivotTableConfigModel'][_0x11afbd(0xd9)](_0x1978c6,_0x279b1b)};_0x54a69b[_0x11afbd(0x338)]({'id':_0x1e563e['id'],'params':{'unitId':_0x1978c6,'subUnitId':_0x3988cc,'pivotTableId':_0x279b1b,'pivotTableConfig':_0x42ec3a,'collectionConfig':_0x4f9c66}});}return{'redos':_0x3ac830,'undos':_0x54a69b};}return{'redos':[],'undos':[]};}}));}};_0x57572c=_0x98dd34([_0x571328(0x0,_0x282877[_0x2b16d4(0x120)](_0x5698b3[_0x2b16d4(0x257)])),_0x571328(0x1,_0x282877[_0x2b16d4(0x120)](_0x24d96c['SheetsPivotTableConfigModel']))],_0x57572c);var _0x5508e4=Object[_0x2b16d4(0x34b)],_0x41d43d=(_0x12b41b,_0x48612f,_0x408ad5,_0x1b25d7)=>{for(var _0x3f78f4=_0x1b25d7>0x1?void 0x0:_0x1b25d7?_0x5508e4(_0x48612f,_0x408ad5):_0x48612f,_0x261b14=_0x12b41b['length']-0x1,_0xcae3a9;_0x261b14>=0x0;_0x261b14--)(_0xcae3a9=_0x12b41b[_0x261b14])&&(_0x3f78f4=_0xcae3a9(_0x3f78f4)||_0x3f78f4);return _0x3f78f4;},_0x346db7=(_0x5701a3,_0x5f179e)=>(_0x138ede,_0x376c7d)=>_0x5f179e(_0x138ede,_0x376c7d,_0x5701a3);let _0x2563d5=class extends _0x282877[_0x2b16d4(0x309)]{constructor(_0x9f89b7,_0x4e5879,_0x5e37ef,_0x56e50c,_0x55720e,_0x51ede9){const _0x2fe1e0=_0x2b16d4;super(),this[_0x2fe1e0(0x2e0)]=_0x9f89b7,this[_0x2fe1e0(0x10f)]=_0x4e5879,this[_0x2fe1e0(0x14f)]=_0x5e37ef,this[_0x2fe1e0(0xc5)]=_0x56e50c,this['_univerInstanceService']=_0x55720e,this[_0x2fe1e0(0x225)]=_0x51ede9,this[_0x2fe1e0(0x368)](),this[_0x2fe1e0(0x37a)]();}[_0x2b16d4(0x368)](){const _0xc2f9ad=_0x2b16d4;this['disposeWithMe'](this[_0xc2f9ad(0x2e0)][_0xc2f9ad(0x333)](_0x2f3d4b=>{const _0x5c4c00=_0xc2f9ad;if(_0x2f3d4b['id']!==_0x391749['id'])return;const _0x3cbb3e=_0x2f3d4b['params'];this[_0x5c4c00(0x10f)]['handleAsyncResponse'](_0x3cbb3e);})),this['disposeWithMe'](this[_0xc2f9ad(0x2e0)]['onCommandExecuted'](_0x2769fc=>{const _0x5bb1ee=_0xc2f9ad;if(_0x2769fc['id']===_0x5554ef['id']){const _0x4159b0=_0x2769fc[_0x5bb1ee(0x14d)];if(_0x4159b0){const {unitId:_0x1854f0,subUnitId:_0x2dba32,oldSubUnitId:_0xa39d80,pivotTableId:_0x5e889c,pivotTableConfig:_0x5c3e00,collectionConfig:_0x5a0bcf}=_0x4159b0;this[_0x5bb1ee(0xc5)][_0x5bb1ee(0x21d)](_0x1854f0,_0xa39d80,_0x4159b0[_0x5bb1ee(0x359)],null),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x1854f0,_0x2dba32,_0x5e889c,_0x5c3e00),this['_sheetsPivotTableConfigModel'][_0x5bb1ee(0x1a3)](_0x1854f0,_0x5a0bcf);}}})),this[_0xc2f9ad(0x324)](this[_0xc2f9ad(0x2e0)][_0xc2f9ad(0x333)](_0x48e48d=>{const _0x1ee9e9=_0xc2f9ad;if(_0x48e48d['id']!==_0x22de79['id'])return;const _0x14b5df=_0x5698b3[_0x1ee9e9(0x2e1)](this['_univerInstanceService']);if(!_0x14b5df)return;const {unitId:_0x4700e7,subUnitId:_0x264d2d}=_0x14b5df,_0x73f8b4=_0x48e48d[_0x1ee9e9(0x14d)];if(_0x73f8b4[_0x1ee9e9(0x1c8)]&&Object[_0x1ee9e9(0x12a)](_0x73f8b4[_0x1ee9e9(0x1c8)])['forEach'](_0x26ca8e=>{const _0x43f95a=_0x1ee9e9;var _0x116f31;(_0x116f31=_0x73f8b4[_0x43f95a(0x1c8)])!=null&&_0x116f31[_0x26ca8e]&&this[_0x43f95a(0xc5)][_0x43f95a(0x1a3)](_0x26ca8e,_0x73f8b4[_0x43f95a(0x1c8)][_0x26ca8e]);}),_0x73f8b4[_0x1ee9e9(0x12f)]){const _0x5cefb0=_0x73f8b4[_0x1ee9e9(0x12f)],{unitId:_0x5eaf6a,subUnitId:_0x51907d,view:_0x325d87,pivotTableId:_0x438b36,type:_0x1808c1,pivotConfig:_0x391a84}=_0x5cefb0;if(_0x1808c1===_0xa5664b[_0x1ee9e9(0x3aa)])this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x19e)]({'unitId':_0x5eaf6a,'subUnitId':_0x51907d,'pivotTableId':_0x438b36,'type':_0x1808c1}),this[_0x1ee9e9(0xc5)][_0x1ee9e9(0x21d)](_0x5eaf6a,_0x51907d,_0x438b36,null);else{const _0x15e0c5=new _0x3e0737[(_0x1ee9e9(0xe5))]();_0x15e0c5[_0x1ee9e9(0x38d)](_0x325d87),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x5eaf6a,_0x51907d,_0x438b36,_0x391a84),this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x19e)]({'unitId':_0x5eaf6a,'subUnitId':_0x51907d,'pivotTableId':_0x438b36,'type':_0x1808c1,'view':_0x15e0c5}),this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x215)]({'unitId':_0x5eaf6a,'subUnitId':_0x51907d,'view':_0x15e0c5,'pivotTableId':_0x438b36,'type':_0x1808c1});}}else _0x73f8b4[_0x1ee9e9(0x1c0)]&&(_0x73f8b4[_0x1ee9e9(0x1c0)][_0x1ee9e9(0xff)](_0x53bd93=>{const _0x9b4139=_0x1ee9e9,{unitId:_0x2aee57,subUnitId:_0x1901ad,view:_0x500305,pivotTableId:_0x4452cc,type:_0x4d7eca,pivotConfig:_0x47d9f2}=_0x53bd93,_0xdb9f9d=new _0x3e0737['PivotView']();_0xdb9f9d[_0x9b4139(0x38d)](_0x500305),this['_sheetsPivotTableConfigModel'][_0x9b4139(0x21d)](_0x2aee57,_0x1901ad,_0x4452cc,_0x47d9f2),this[_0x9b4139(0x14f)][_0x9b4139(0x215)]({'unitId':_0x2aee57,'subUnitId':_0x1901ad,'view':_0xdb9f9d,'pivotTableId':_0x4452cc,'type':_0x4d7eca});}),this[_0x1ee9e9(0xc5)]['setPivotInitCompleted']());this[_0x1ee9e9(0x14f)][_0x1ee9e9(0x22f)](_0x4700e7,_0x264d2d);}));}[_0x2b16d4(0x37a)](){this['_activeDirtyManagerService']['register'](_0x44990a['id'],{'commandId':_0x44990a['id'],'getDirtyData'(_0x12659b){return{'dirtyUnitFeatureMap':_0x12659b['params']};}});}};_0x2563d5=_0x41d43d([_0x346db7(0x0,_0x282877['Inject'](_0x282877[_0x2b16d4(0x240)])),_0x346db7(0x1,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0xde)])),_0x346db7(0x2,_0x282877[_0x2b16d4(0x120)](_0x24d96c[_0x2b16d4(0x389)])),_0x346db7(0x3,_0x282877['Inject'](_0x24d96c[_0x2b16d4(0x15d)])),_0x346db7(0x4,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x165)])),_0x346db7(0x5,_0x3b2497[_0x2b16d4(0x212)])],_0x2563d5);var _0x5c7da5=Object[_0x2b16d4(0x2ae)],_0x5c4831=Object[_0x2b16d4(0x34b)],_0x1d1583=(_0x270208,_0x1ef79e,_0x3556ec)=>_0x1ef79e in _0x270208?_0x5c7da5(_0x270208,_0x1ef79e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3556ec}):_0x270208[_0x1ef79e]=_0x3556ec,_0x47f78e=(_0x1363e4,_0x26532a,_0x509b9b,_0x57429d)=>{for(var _0x4ce3b5=_0x57429d>0x1?void 0x0:_0x57429d?_0x5c4831(_0x26532a,_0x509b9b):_0x26532a,_0x3d2f4b=_0x1363e4['length']-0x1,_0x2d4502;_0x3d2f4b>=0x0;_0x3d2f4b--)(_0x2d4502=_0x1363e4[_0x3d2f4b])&&(_0x4ce3b5=_0x2d4502(_0x4ce3b5)||_0x4ce3b5);return _0x4ce3b5;},_0x18d682=(_0xd4e514,_0x554a53)=>(_0x4af48d,_0xaaf045)=>_0x554a53(_0x4af48d,_0xaaf045,_0xd4e514),_0x569b5c=(_0x3aae9c,_0x58ce46,_0x5837c4)=>_0x1d1583(_0x3aae9c,typeof _0x58ce46!=_0x2b16d4(0x2f8)?_0x58ce46+'':_0x58ce46,_0x5837c4);_0x24d96c[_0x2b16d4(0x16c)]=class extends _0x282877[_0x2b16d4(0x35b)]{constructor(_0x2f3422=_0x96e365,_0x167cb9,_0x264a39,_0x68b771,_0x5460ba){const _0x117977=_0x2b16d4;super(),this[_0x117977(0x29d)]=_0x2f3422,this[_0x117977(0x1fe)]=_0x167cb9,this[_0x117977(0x2e0)]=_0x264a39,this[_0x117977(0x2de)]=_0x68b771,this[_0x117977(0x190)]=_0x5460ba;const {..._0x45d5dc}=_0x282877[_0x117977(0x124)]({},_0x96e365,this[_0x117977(0x29d)]);this[_0x117977(0x2de)][_0x117977(0x262)](_0x539a40,_0x45d5dc),this['_initRegisterCommand'](),this[_0x117977(0x327)]();}[_0x2b16d4(0x327)](){const _0x15f230=_0x2b16d4;var _0x48dd32;const _0x7315a2=(_0x48dd32=this[_0x15f230(0x29d)])==null?void 0x0:_0x48dd32['notExecuteFormula'];this[_0x15f230(0x2de)][_0x15f230(0x262)](_0x3ecd37,_0x7315a2===!0x0);}[_0x2b16d4(0x391)](){const _0x4ce4d7=_0x2b16d4;var _0x2d5185;let _0x19b556=[];const _0x5b669e=(_0x2d5185=this[_0x4ce4d7(0x29d)])==null?void 0x0:_0x2d5185[_0x4ce4d7(0x172)];_0x5b669e===!0x0?_0x19b556=[[_0x24d96c[_0x4ce4d7(0x199)]],[_0x24d96c[_0x4ce4d7(0xde)]],[_0x2563d5],[_0x24d96c['SheetsPivotTableAdaptorModel']],[_0x24d96c[_0x4ce4d7(0x15d)]],[_0x57572c],[_0x50b047],[_0x1c208c],[_0x489cf9]]:_0x5b669e===!0x1?_0x19b556=[[_0x24d96c[_0x4ce4d7(0x1b4)]],[_0x566683]]:_0x5b669e===void 0x0&&(_0x19b556=[[_0x24d96c['SheetsPivotDataSourceModel']],[_0x566683],[_0x24d96c[_0x4ce4d7(0x199)]],[_0x24d96c['SheetsPivotRPCService']],[_0x2563d5],[_0x24d96c[_0x4ce4d7(0x389)]],[_0x24d96c[_0x4ce4d7(0x15d)]],[_0x57572c],[_0x50b047],[_0x1c208c],[_0x489cf9]]),_0x19b556[_0x4ce4d7(0xff)](_0x1d5c91=>this[_0x4ce4d7(0x1fe)][_0x4ce4d7(0x183)](_0x1d5c91)),[_0x566683,_0x2563d5,_0x24d96c[_0x4ce4d7(0x199)],_0x50b047,_0x57572c,_0x1c208c,_0x489cf9][_0x4ce4d7(0xff)](_0x1c6507=>{const _0x22dd68=_0x4ce4d7;this[_0x22dd68(0x1fe)]['has'](_0x1c6507)&&this[_0x22dd68(0x1fe)][_0x22dd68(0x1a9)](_0x1c6507);});}['_initRegisterCommand'](){const _0x5ebb6c=_0x2b16d4;[_0x51c1da,_0x237a57,_0x3e5b81,_0x515143,_0x1a6979,_0x15fd16,_0x3f98c7,_0x25fba6,_0x503ea6,_0xe8105e,_0x29ffa8,_0x16a0b5,_0xcca7af,_0xf74539,_0x1e563e,_0x2ad5a3,_0x3307ac,_0x5ab80d,_0x2025a4,_0x38013c,_0x59b12d,_0x422578,_0x406f56,_0x42179c,_0x948cfc,_0x2dd0f8,_0x353964,_0x19037a,_0x391749,_0x22de79,_0x2a81cb,_0x2647c7,_0x2ec070,_0x233cb2,_0x4c3710,_0x5d22e4,_0x595fcf,_0x44990a,_0x5554ef,_0x3b04ca,_0x2d2d96,_0x3b1c8c,_0x27055a][_0x5ebb6c(0xff)](_0x38d9d2=>{const _0x3b8461=_0x5ebb6c;var _0x38c3d1;(_0x38c3d1=this[_0x3b8461(0x190)])==null||_0x38c3d1['registerSyncingMutations'](_0x38d9d2),this[_0x3b8461(0x2e0)][_0x3b8461(0x1c3)](_0x38d9d2);});}},_0x569b5c(_0x24d96c[_0x2b16d4(0x16c)],_0x2b16d4(0x2ad),_0x2734d4),_0x569b5c(_0x24d96c[_0x2b16d4(0x16c)],'type',_0x282877[_0x2b16d4(0x20b)][_0x2b16d4(0x328)]),_0x24d96c['UniverSheetsPivotTablePlugin']=_0x47f78e([_0x282877[_0x2b16d4(0x290)](_0x5b0681['UniverLicensePlugin']),_0x18d682(0x1,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x33a)])),_0x18d682(0x2,_0x282877[_0x2b16d4(0x120)](_0x282877[_0x2b16d4(0x240)])),_0x18d682(0x3,_0x282877['IConfigService']),_0x18d682(0x4,_0x282877['Optional'](_0x129259[_0x2b16d4(0x365)]))],_0x24d96c[_0x2b16d4(0x16c)]),_0x24d96c['AddPivotFieldCommand']=_0x3e5b81,_0x24d96c[_0x2b16d4(0x176)]=_0x5ab80d,_0x24d96c[_0x2b16d4(0x1fd)]=_0x237a57,_0x24d96c[_0x2b16d4(0x37e)]=_0x1e563e,_0x24d96c[_0x2b16d4(0x267)]=_0x51c1da,_0x24d96c['BLANK_ROW_COUNT']=_0x44f3d5,_0x24d96c[_0x2b16d4(0x12d)]=_0x1e520c,_0x24d96c[_0x2b16d4(0x1d1)]=_0x515143,_0x24d96c['MovePivotTableCommand']=_0xcca7af,_0x24d96c[_0x2b16d4(0x21b)]=_0x15dd40,_0x24d96c[_0x2b16d4(0x1cf)]=_0xf74539,_0x24d96c[_0x2b16d4(0x2a8)]=_0xa5664b,_0x24d96c[_0x2b16d4(0x1ec)]=_0x44990a,_0x24d96c[_0x2b16d4(0x11e)]=_0x220706,_0x24d96c[_0x2b16d4(0x102)]=_0x1a6979,_0x24d96c['RemovePivotFieldMutation']=_0x422578,_0x24d96c[_0x2b16d4(0x2b8)]=_0x3307ac,_0x24d96c['RenamePivotFieldMutation']=_0x406f56,_0x24d96c['ResetPivotFieldsConfigCommand']=_0x27055a,_0x24d96c[_0x2b16d4(0x273)]=_0x539a40,_0x24d96c['SHEET_PIVOT_TABLE_PLUGIN']=_0x2734d4,_0x24d96c['SetPivotCollapseCommand']=_0x25fba6,_0x24d96c['SetPivotCollapseMutation']=_0x42179c,_0x24d96c[_0x2b16d4(0xcd)]=_0x233cb2,_0x24d96c['SetPivotFieldsConfigCommand']=_0x3b1c8c,_0x24d96c[_0x2b16d4(0x363)]=_0xe8105e,_0x24d96c[_0x2b16d4(0x30f)]=_0x59b12d,_0x24d96c[_0x2b16d4(0x113)]=_0x2dd0f8,_0x24d96c[_0x2b16d4(0x362)]=_0x353964,_0x24d96c[_0x2b16d4(0x20a)]=_0x503ea6,_0x24d96c[_0x2b16d4(0x1ca)]=_0x948cfc,_0x24d96c[_0x2b16d4(0xef)]=_0x2ec070,_0x24d96c['SetPivotValueFilterCommand']=_0x3b04ca,_0x24d96c[_0x2b16d4(0x300)]=_0x2d2d96,_0x24d96c[_0x2b16d4(0x210)]=_0x3f98c7,_0x24d96c[_0x2b16d4(0x343)]=_0x2a81cb,_0x24d96c[_0x2b16d4(0xcc)]=_0x29ffa8,_0x24d96c[_0x2b16d4(0x312)]=_0x595fcf,_0x24d96c[_0x2b16d4(0x2f3)]=_0x16a0b5,_0x24d96c[_0x2b16d4(0x148)]=_0x5d22e4,_0x24d96c['UpdatePivotValuePositionCommand']=_0x15fd16,_0x24d96c[_0x2b16d4(0x2fc)]=_0x2647c7,_0x24d96c[_0x2b16d4(0xd1)]=_0x14e595,_0x24d96c[_0x2b16d4(0x379)]=_0x49a50c,_0x24d96c['defaultThemeStyle']=_0x433375,_0x24d96c[_0x2b16d4(0x305)]=_0x1fac4a,_0x24d96c['getAdjustRangesPosition']=_0x37a9a3,_0x24d96c['getEmptyPivotRanges']=_0x4bbd29,_0x24d96c[_0x2b16d4(0x245)]=_0x38e2b7,_0x24d96c[_0x2b16d4(0x242)]=_0x43927d,_0x24d96c[_0x2b16d4(0x178)]=_0x5e8aa7,_0x24d96c[_0x2b16d4(0x3ab)]=_0x9a8ebd,_0x24d96c[_0x2b16d4(0x313)]=_0x2e8fa2,_0x24d96c[_0x2b16d4(0x198)]=_0x22656d,_0x24d96c[_0x2b16d4(0x1ea)]=_0x56a3ee,Object['defineProperty'](_0x24d96c,Symbol['toStringTag'],{'value':_0x2b16d4(0x367)});}));function _0x262a(){const _0x14cd7b=['query','getAutoFitColumnsMutations','UpdateFieldPositionMutation','sheets-pivot.dateGroup.yearQuarter','range','DateGroupField','ΣValue','fieldsConfig','setDirty','remove','getOwnPropertyDescriptor','getPivotItemRenderInfoCache','PivotMultipleValueId','updateDataFieldsCollection','sheetName','concat','_host','getUnit','setDateType','_onRefRangeChange','_initLocale','sheets-pivot.cellDateGroupDisplay.yearMonthDate','Hour','RemoveField','pivotTableId','sum','Plugin','Subject','@univerjs-pro/license','PivotErrorTypeEnum','getTableFieldById','targetCellInfo','filterInfo','SetPivotPositionMutation','SetPivotFilterCommand','pivotConfigChange$','DataSyncPrimaryController','_exclusiveRangeService','Module','_initDataSendListener','values','sheet.command.update-date-group','_initGlobalComputed','PivotCallbackEnum','updatePivotTableMatrixInfo','sheets-pivot.dateGroup.monthDate','unshift','DEFAULT_WORKSHEET_ROW_COUNT','SetOptions','PivotTableFiledAreaEnum','function','getSheetBySheetId','10125990ZGcEaF','isText','fields','_initUnitDisposed','canUsePivot','registerDirtyService','Var\x20of\x20','New','getSubUnitPivotRenderCache','AddPivotTableMutation','info','isValue','dataFieldsCollection','sheets-pivot.cellDateGroupDisplay.minute','DataFieldManager','UniverSheetsFilter','custom','GrandTotal','markDirty$','interceptor','SheetsPivotTableAdaptorModel','ResetPivotTable','filterId','displayName','formJSON','750786AcgNPj','addField','removeValueFilterInfo','onStarting','_sheetsSelectionsService','setPivotInitCompleted','getFieldCountByArea','Filter','_initPivotTextInfo','IResourceManagerService','replace','setSortInfo','setValue','substring','fromJSON','createCollectionWithDataRange','endRow','createLabelField','isArray','grandTotal','getFilterInfo','dimension','_textInfo','random','min','fetchThroughAsyncInterceptors','setRangeValueRedoMutation','createInterceptorKey','Delete','getPivotInfoByLicense','resetPivotTable','movePivotField','isDateValue','removeValueFilterInfoByValueFieldId','registerPluginResource','SetPivotTableConfig','sheet.mutation.pivot-update-field-source-info','AddPivotField','updateView','from','number','mergeWorksheetSnapshotWithDefault','_ensurePivotItemRenderInfoCache','isEmpty','adjustSheetCellData','fontRenderExtension','getNoUsedDataFieldIds','sheet.mutation.update-date-group','CustomCommandExecutionError','setPivotCollapse','getRangeKeyList','UniverProSheetsPivot','splice','Varp\x20of\x20','_viewData$','Existing','_pivotConfigChange$','sheets-pivot.varName','sheet.command.move-pivot-table','setSourceName','isErrorValue','UniverRpc','Value','dataFields','sheet.command.set-pivot-sort','getSheets','BehaviorSubject','PivotTableValuePositionEnum','IConfigService','REF','sheets-pivot.stdDevName','_refRangeHandle','_sheetsPivotTableConfigModel','setRange','rangeCache','sheet.mutation.set-pivot-option','getDataFieldManager','addRecord','FORCE_STRING','UpdatePivotFieldSettingCommand','SetPivotFieldFormatMutation','floor','lastRow','getDataFieldByDataFieldId','applyChangeSet','sheets-pivot.dateGroup.minute','getCurrentUnitForType','getColCount','getDirtyInfo','refreshGroupField','_initClearSelectionCommandInterceptor','rowHeaderMap','getCollection','addPivotField','BLANK_PLACEHOLDER','initDataRanges','textInfo','SheetsPivotRPCService','needSameDeleteModel','executeCommand','Div0','getFieldInfo','workbook\x20is\x20not\x20found','_subjectCollectionChange','PivotView','_collectionChange$','getAutoDisplayNameFunction','colStyle','_configVersion$','4260456lNxRCB','ManualFilter','NUMBER','_model','measure','SetPivotSubtotalTypeMutation','sheet.command.set-pivot-value-filter','FieldsCollection','COMMAND','iterateFieldByArea','registerCallbackWithEvent','result','CELL_CONTENT','rangeKey','getConfig','onQueryEnd','getViewData','IUndoRedoService','getRangeStartEndInfo','sheet.command.set-pivot-field-setting','MoveRangeCommand','forEach','Max\x20of\x20','_updateRenderEmptyCache','RemovePivotFieldCommand','NORMAL','handleSourceRangeChange','has','getHeaderMapItem','SetPivotCollapse','stdDevp','drillDown','date','sheets-pivot.columnName','generateNullCell','getPivotTableMatrixInfo','DrillDown','_sheetsPivotRpcService','isDate','_dataFieldManagerCollection','setName','SetPivotOptionMutation','updateFieldSourceInfo','getDisplayName','MAX_SAFE_INTEGER','valueIndex','sheets-pivot.cellDateGroupDisplay.hourMinute','UniverEngineRender','return\x20','sheets-pivot.cellDateGroupDisplay.date','NUM','addPivotTable','PositionType','stringify','Inject','_localeService','clearExclusiveRangesByGroupId','getTextInfo','merge','InsertSheetUndoMutationFactory','removeDataField','Set','handleMoveRange','rangeKeyMap','keys','removeCollections','_univerInstanceService','DEFAULT_PIVOT_NUMBER','pushComputingStatusSubject','single','_getPivotAppliedRanges','fieldId','SetCollapse','leftOffset','parseInt','sheet.mutation.add-pivot-field','rgb(255,255,255)','lastCol','InsertColMutation','_ensurePivotTableMatrixInfo','_ensurePivotTableRangeInfo','serializeRangeWithSpreadsheet','getPivotTableConfig','Panel','columnFields','sheets-pivot.subTotal','sheet.mutation.add-pivot-table','#1d32e9','setPivotSetting','oldRangeInfo','deleteField','AddPivotTable','_deleteModelCache','DisposableCollection','UpdatePivotTableSourceRangeMutation','getId','SetPivotSetting','Sum\x20of\x20','getFullYear','params','SetSheetsFilterRangeMutation','_sheetsPivotTableAdaptorModel','generateHexNumber','some','broadcastCollectionChange','unshiftString','hasField','updateRangeKeyMap','MUTATION','SetRangeValuesMutation','getFieldById','sheet.mutation.set-pivot-collapse','InterceptorManager','getDate','#f4f4f5','SheetsPivotTableConfigModel','pivotTableConfigs','Values','setPivotSort','panel','HourMinute','Product\x20of\x20','\x20-\x20','IUniverInstanceService','pageRanges','getRangeData','string','getPivotTableCellData','_globalSubject','sheet.command.add-pivot-table-with-config','UniverSheetsPivotTablePlugin','valueFields','getFontStyleString','_initPivotDataGetListener','rowFields','getUpdateRangeDeleteIds','notExecuteFormula','reset','colHeaderMap','getIntersectsPivotTable','AddPivotFieldMutation','SHEET_PIVOT_TABLE_PLUGIN','getPivotCellInfo','filter','RemovePivotField','PivotFilterTypeEnum','queryDirtyPivotTable','blank','cornerInfo','data','paths','versions','rowStyle','add','ObjectMatrix','getPivotTableInstance','setSubtotalType','AsyncInterceptorManager','Total','sheets-pivot.stdDevpName','_initCommandInterceptListener','error','sheet.mutation.set-pivot-filter','DIV_BY_ZERO','addCollection','_createExclusiveRange','_dataSyncPrimaryController','sheets.tabs.sheet','endCollectChangeset','45289981HOlgYC','_collectionConfigModel','SetSortInfo','rowRanges','AddField','transFromCellValue','SheetsPivotTableService','tableFieldId','limit\x20pivot','UniverProLicense','getDataFieldId','clearRenderCache','startRow','getFieldDataType','headerMap','_initSnapshot','updateCollectionConfig','split','size','find','pivotMutationGenerate','CellValueType','get','sequenceExecute','IExclusiveRangeService','_viewData','viewUpdate$','PIVOT_MUTATION_GENERATE','intercept','colRanges','charCodeAt','shouldClear','getFieldIds','SheetsPivotDataSourceModel','getFormatInfo','sheets-pivot.minName','isBaseGroupField','iterateField','439JTHMbr','body','options','unitId','MovePivotField','subTotalStyle','deepClone','batch','delete','getPivotTableIdByCell','registerCommand','StdDevp\x20of\x20','sheet.mutation.set-pivot-field-subtotal-type','UpdatePivotSource','ReleaseType','collectionConfig','getSubtotal','SetPivotSortMutation','sheets-pivot.dateGroup.hourMinute','sheet.mutation.set-pivot-sort-info','undos','BadReference','PivotDrillDownCommand','_deletePivotTableInstanceCache','MovePivotFieldCommand','PivotViewCellValueTypeEnum','GlobalConfig','InsertSheetMutation','fetchThroughInterceptors','getPivotPerformCheck','varp','dataFieldId','PivotDataFieldDataTypeEnum','col','sheet.mutation.remove-group-collection','call','getFieldFormat','addCollectionByJSON','updateValuePosition','addDataFieldWithoutUnitInfo','dataFieldManagerConfig','setFieldFormat','getValue','LS_CONFIG_KEY','_updatePivotTableInstanceCache','update','type','(Blank)','UniverEngineFormula','unionPivotViewRange','getTextSize','PivotTableViewDirtyMarkOperation','parse','_globalComputingSrv','level','dataStream','collectionChange$','pageStyle','Minute','addExclusiveRange','Subtotal','_pivotRenderInfoCache','_sheetsPivotTableService','_toJSON','sheets-pivot.productName','sourceName','RemoveSheetMutation','generateNewSheetName','AddPivotTableCommand','_injector','updateViewData','rowInfo','setTextInfo','removeSourceRangeChange','sheet.command.reset-pivot-fields-config','subUnitId','CommandType','excelDateToUnixMilliseconds','interceptCommand','count','leafStyle','SetPivotSortCommand','UniverInstanceType','getValueIndex','updateConfig','Year','sheets-pivot.emptyPivot.values','UpdateDateGroupCommand','Column','IActiveDirtyManagerService','setValuePivotFilter','setCollapse','updateRenderCache','fieldIds','UniverSheets','removeField','getSheetFeatureLimit','token','PivotDisplayDataType','getAutoDisplayName','updateConfigCache','SetPivotFilter','getLastCol','Grand\x20Total','YearMonth','collapseInfo','subscribe','addDirtyPivotTable','_activeDirtyManagerService','STRING','sortInfo','Month','Style','sheet.mutation.pivot-update-field-position','disposableCollection','PivotDateGroupFieldDateTypeEnum','sheet.operation.pivot-table-view-formula-mark-dirty','sheet.mutation.pivot-update-value-position','markDirty','UpdateValuePosition','getSubUnitPivotConfigs','Quarter','SetFilterInfo','_pivotInitCompleted$','contains','updateDirtyPivotTable','sheets-pivot.cellDateGroupDisplay.yearMonth','RefRangeService','getSheetBySheetName','setPivotFilter','next','sheet.mutation.send-pivot-config-local','maxDate','sheets-pivot.emptyPivot.row','setDisplayName','ICommandService','getName','getInsertRowColMutations','realDeleteValue','endColumn','getFieldListByArea','getColumnCount','generateRandomId','amd','pushUndoRedo','node','sheets-pivot.emptyPivot.column','getCellRaw','max','startCollectChangeset','sheet.command.set-pivot-fields-config','subtotal','format','#b2b2b2','NotFunction','startColumn','getUnitId','collections','SheetInterceptorService','removePivotTable','asObservable','_pivotTableRangeInfo','setDataRecordCount','_viewUpdate$','forRow','minDate','_pivotTableInstanceCache','toString','_init','setConfig','_queryingMap','sheets-pivot.cellDateGroupDisplay.yearQuarter','refreshData','#eceeff','AddPivotTableWithConfigCommand','_fieldsCollectionChange$','getDataFieldByRangeKey','resetArea','addPivotTableWithConfig','sheet.command.set-pivot-collapse','FontCache','sheets-pivot.cellDateGroupDisplay.quarter','updateAllDisplayName','InsertRowMutation','stdDev','document','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','numfmt','Count\x20of\x20','isBottomTotal','PivotTable','PivotDataFieldTypeEnum','map','colInfo','length','UniverCore','YearMonthDate','setPivotTable','1450090kpjKBy','pbt','setPivotTableConfig','rxjs','Date','uniqueDataFieldName','oldMatrix','slice','ErrorType','tuple','NAME','SetValuePivotFilter','RemoveSheetCommand','_ensurePivotMap','deleteUnitId','Add','set','DependentOn','sheets-pivot.blank','getSortInfo','sheet.command.add-pivot-field','pivotInitCompleted$','getOriginFieldId','setRangeValueUndoMutation','_featureCalculationManagerService','#e6ebfa','getInterceptPoints','setRangeKeyMap','sheets-pivot.sumName','asyncInterceptor','_config','sheet.mutation.send-pivot-data-local','cellToRange','isDateGroupField','_getAutoName','column','redos','value','ClearSelectionAllCommand','4044QesYfb','dataStyle','PivotTableOperationEnum','getSheetId','sheets-pivot.cellDateGroupDisplay.year','sourceRangeInfo','addFieldWithSourceId','pluginName','defineProperty','filterFields','sheet.command.update-pivot-table-source-range','rangeType','#e6ebfb','_globalComputedEndHelpFunc','rangesInfo','SHEET_PIVOT_IN_MAIN_THREAD','getColumnWidth','iterateFieldDim','RemovePivotTableMutation','_pivotTableMatrixInfo','sheets-pivot.value','_markDirty$','sheets-pivot.dateGroup.date','reduce','dispose','_requestResolvers','updateViewInfo','8njTdRH','_updateModelCache','originalFieldId','PivotTableChangeTypeEnum','@univerjs/engine-render','PivotSubtotalTypeEnum','_refRangeService','setValueFilterInfo','refreshDataField','getDataFieldItemInfo','LocaleService','rowCount','_ensureViewDataMap','areaInfo','sheets-pivot.dateGroup.year','None','getPivotTableModelConfig','getRowCount','COLUMN','getIndexesByPathStr','SetFieldFormat','getRangeKey','_globalComputedStartHelpFunc','entries','getCellMatrix','sheet.mutation.remove-pivot-table','AddPivotTableWithConfig','RenameField','SetSubtotalType','_configService','@univerjs/core','_commandService','getSheetCommandTarget','width','PivotCellStyleTypeEnum','pivotTableIndexConfig','sheet.mutation.update-pivot-table-source-range','dateGroupField','Rectangle','getMonth','getValueFilterInfos','deleteDataField','colCount','viewData$','getFieldPositionInfoById','20uURfYP','Row','sheets-pivot.varpName','getActiveSheet','@univerjs/engine-formula','UpdatePivotTableSourceRangeCommand','getLastRow','intersects','getSourceName','createAsyncInterceptorKey','symbol','getPivotDisplayConfig','@univerjs-pro/engine-pivot','Expand','UpdateValuePositionMutation','_pivotRenderValueMatrixCache','updatePivotSource','sheets-pivot.cellDateGroupDisplay.hour','SetPivotValueFilterMutation','YearQuarter','SetPivotSort','row','isFeatureAuthorizedWithinTime','generateSetRangeValueMutations','valueFilter','Min\x20of\x20','forValue','Disposable','Average\x20of\x20','getStyles','@univerjs/rpc','getformat','_resourceManagerService','SetPivotFilterMutation','matrix','getValuePosition','UpdatePivotFieldSourceInfoMutation','getPivotTableInfo','name','getMatrix','toJSON','setLabelFilterInfo','_initViewModelBySheetInterceptor','getGroupFieldsInfoByIds','_sheetInterceptorService','SetWorksheetColWidthMutation','_subjectFieldsCollectionChange','updateFieldPosition','MIN_SAFE_INTEGER','getTargetByPivotId','RemoveSheetsFilterMutation','updatePivotTableRangeInfo','_generateUniqueVersion','getDataFieldByTableId','disposeWithMe','Tools','NotNumber','_initConfig','UNIVER_SHEET','_sheetsPivotDataSourceModel','9050608YwNwju','renameField','#FFFFFF','sheet.command.move-pivot-field','10rvZCnT','valuePosition','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','dataRangeInfo','_ensurePivotItemRenderValueMatrixCache','onCommandExecuted','fieldsCollectionChange$','sheets-pivot.dateGroup.month','sheet.mutation.set-pivot-format','triggerDirtyFeature','push','includes','Injector','removePivotField','SHEET_PIVOT_EXCLUSIVE_ID','IFeatureCalculationManagerService','dateType','sheets-pivot.countNumsName','getTypeOfUnitDisposed$'];_0x262a=function(){return _0x14cd7b;};return _0x262a();}
1
+ (function(_0x2a9737,_0x5616d6){const _0x584cea=_0x3953,_0x13e7cb=_0x2a9737();while(!![]){try{const _0x12ea67=-parseInt(_0x584cea(0x439))/0x1*(-parseInt(_0x584cea(0x369))/0x2)+-parseInt(_0x584cea(0x2fb))/0x3+-parseInt(_0x584cea(0x3ce))/0x4*(parseInt(_0x584cea(0x4c3))/0x5)+-parseInt(_0x584cea(0x34e))/0x6+-parseInt(_0x584cea(0x47c))/0x7*(parseInt(_0x584cea(0x3e1))/0x8)+-parseInt(_0x584cea(0x2af))/0x9+parseInt(_0x584cea(0x33f))/0xa;if(_0x12ea67===_0x5616d6)break;else _0x13e7cb['push'](_0x13e7cb['shift']());}catch(_0x589604){_0x13e7cb['push'](_0x13e7cb['shift']());}}}(_0x398d,0x5bcce),function(_0x164ddf,_0x3f2279){const _0x37640a=_0x3953;typeof exports==_0x37640a(0x45e)&&typeof module<'u'?_0x3f2279(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==_0x37640a(0x1db)&&define[_0x37640a(0x2db)]?define([_0x37640a(0x339),_0x37640a(0x457),'@univerjs/core',_0x37640a(0x218),'@univerjs/sheets',_0x37640a(0x42d),_0x37640a(0x212),'@univerjs/sheets-filter',_0x37640a(0x4bc),_0x37640a(0x2c3)],_0x3f2279):(_0x164ddf=typeof globalThis<'u'?globalThis:_0x164ddf||self,_0x3f2279(_0x164ddf[_0x37640a(0x4c1)]={},_0x164ddf[_0x37640a(0x307)],_0x164ddf[_0x37640a(0x3e9)],_0x164ddf[_0x37640a(0x3d3)],_0x164ddf['UniverSheets'],_0x164ddf[_0x37640a(0x42d)],_0x164ddf[_0x37640a(0x1d9)],_0x164ddf[_0x37640a(0x1f1)],_0x164ddf[_0x37640a(0x349)],_0x164ddf[_0x37640a(0x4e3)]));}(this,function(_0x447ba5,_0x454ae3,_0x47953c,_0x311ac2,_0x271f69,_0x21de06,_0xeb4f2b,_0x27886a,_0x3cf301,_0x44f4bc){'use strict';const _0x1f66a3=_0x3953;var _0x3df746=Object[_0x1f66a3(0x478)],_0x50bad9=(_0x33c3f5,_0x146208,_0x254225)=>_0x146208 in _0x33c3f5?_0x3df746(_0x33c3f5,_0x146208,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x254225}):_0x33c3f5[_0x146208]=_0x254225,_0x3e3ba8=(_0x1db0e8,_0x2f862e,_0x54c8c6)=>_0x50bad9(_0x1db0e8,typeof _0x2f862e!=_0x1f66a3(0x3d0)?_0x2f862e+'':_0x2f862e,_0x54c8c6);const _0xcecfbd=Number[_0x1f66a3(0x47e)](0x68bbd1e5),_0x1583cf=0x10,_0xd2c7ac=0x1,_0x548f94='SHEET_PIVOT_TABLE_PLUGIN',_0x474d9e=0x1,_0x254497='rgb(240,241,243)',_0x1e9d3f=_0x1f66a3(0x283),_0x4d0984=_0x1f66a3(0x272),_0x33bd02=_0x1f66a3(0x309),_0x2ff3a4=_0x1f66a3(0x309),_0x5e6ce9=_0x1f66a3(0x32a),_0x186061=_0x1f66a3(0x384),_0x1b29eb=_0x1f66a3(0x462),_0x455186=_0x1f66a3(0x20b),_0x522f3f=_0x1f66a3(0x384),_0x155b4c=_0x1f66a3(0x462),_0x500386=_0x1f66a3(0x35b),_0x2ddad4=0xe,_0xe151be=0x6;var _0x42aeb5=(_0x44ba49=>(_0x44ba49[_0x1f66a3(0x37d)]=_0x1f66a3(0x356),_0x44ba49['New']=_0x1f66a3(0x39d),_0x44ba49))(_0x42aeb5||{});const _0x244528={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','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':''}}},_0xc72375=0x1e,_0x62feb={'b':{'s':0x1,'cl':{'rgb':_0x4d0984}},'l':{'s':0x1,'cl':{'rgb':_0x4d0984}},'r':{'s':0x1,'cl':{'rgb':_0x4d0984}},'t':{'s':0x1,'cl':{'rgb':_0x4d0984}}},_0x2a6840={'bg':{'rgb':_0x254497},'ht':0x2,'vt':0x2,'tb':0x1},_0x4eab75={'bg':{'rgb':_0x1e9d3f},'ht':0x2,'vt':0x2,'tb':0x1},_0x536a97={'rowStyle':{'bg':{'rgb':_0x500386},'bd':_0x62feb,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x522f3f},'bd':null,'cl':{'rgb':_0x155b4c},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x62feb,'bg':{'rgb':_0x455186},'vt':0x2},'cornerStyle':{'bd':_0x62feb,'bg':{'rgb':_0x5e6ce9},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x62feb,'bg':{'rgb':_0x33bd02},'vt':0x2},'leafStyle':{'bd':_0x62feb,'bg':{'rgb':_0x2ff3a4},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x186061},'cl':{'rgb':_0x1b29eb},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x62feb,'vt':0x2}};function _0xe93c3(_0x9fc66d,_0x1cc14e,_0x15854b){const _0x2fa2a9=_0x1f66a3,_0x42d7a2=_0x9fc66d[_0x2fa2a9(0x2ab)](_0x47953c[_0x2fa2a9(0x1f5)]),_0x13828d=_0x15854b['split']('_');switch(_0x1cc14e){case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x406)]:return _0x42d7a2['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x42a)]:return _0x42d7a2['t'](_0x2fa2a9(0x35c),..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x24b)]:return _0x42d7a2['t'](_0x2fa2a9(0x1d7),..._0x13828d);case _0x454ae3['PivotDateGroupFieldDateTypeEnum'][_0x2fa2a9(0x34c)]:return _0x42d7a2['t'](_0x2fa2a9(0x3c7),..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x3e4)]:return _0x42d7a2['t'](_0x2fa2a9(0x438),..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x3a0)]:return _0x42d7a2['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x1f0)]:return _0x42d7a2['t'](_0x2fa2a9(0x2a9),..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x288)]:return _0x42d7a2['t'](_0x2fa2a9(0x2dc),..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x2bf)]:return _0x42d7a2['t'](_0x2fa2a9(0x1f7),..._0x13828d);case _0x454ae3[_0x2fa2a9(0x3d5)][_0x2fa2a9(0x357)]:return _0x42d7a2['t'](_0x2fa2a9(0x4cb),..._0x13828d);}return'';}const _0x4828af=(_0x344f30,_0x15b186,_0x99ae0a,_0xfd96d7)=>{const _0x3f9c14=_0x1f66a3;let _0x29d83f;const _0x114e7c=_0x344f30[_0x3f9c14(0x2ab)](_0x47953c[_0x3f9c14(0x364)])['getCurrentUnitForType'](_0x47953c['UniverInstanceType'][_0x3f9c14(0x48b)]);if(!_0x114e7c)return null;const _0x257055=_0x114e7c['getStyles']();let _0x529de8;if(_0x99ae0a&&(_0x529de8=_0x257055[_0x3f9c14(0x27f)](_0x99ae0a)),_0x15b186!=null&&_0x15b186['v']||(_0x15b186==null?void 0x0:_0x15b186['v'])===0x0){_0x29d83f||(_0x29d83f={});const _0xe4b3aa=_0x395173(_0x15b186['v']);typeof _0xe4b3aa=='number'?_0x29d83f['t']=_0x47953c[_0x3f9c14(0x2c1)][_0x3f9c14(0x485)]:typeof _0xe4b3aa==_0x3f9c14(0x239)&&(_0x29d83f['t']=_0x47953c[_0x3f9c14(0x2c1)][_0x3f9c14(0x306)]),_0x29d83f['v']=_0xe4b3aa;}if((_0x15b186!=null&&_0x15b186['i']||(_0x15b186==null?void 0x0:_0x15b186['i'])===0x0)&&(_0x29d83f||(_0x29d83f={}),_0x29d83f['fi']=_0x15b186['i']),_0x15b186!=null&&_0x15b186['s']&&(_0x29d83f||(_0x29d83f={}),_0x29d83f[_0x3f9c14(0x4c8)]=_0x15b186['s']),_0x99ae0a&&(_0x29d83f||(_0x29d83f={}),_0x29d83f['s']=_0x529de8),_0xfd96d7&&_0x29d83f!=null&&_0x29d83f['v']&&_0x29d83f[_0x3f9c14(0x4c8)]!==_0x454ae3[_0x3f9c14(0x424)][_0x3f9c14(0x2b3)]&&_0x29d83f['pbt']!==_0x454ae3[_0x3f9c14(0x424)][_0x3f9c14(0x4af)]){const _0x3b0177=String(_0x29d83f['v']),{dateType:_0x6238b5}=_0xfd96d7;_0x29d83f['v']=_0xe93c3(_0x344f30,_0x6238b5,_0x3b0177),_0x29d83f['t']=_0x47953c[_0x3f9c14(0x2c1)][_0x3f9c14(0x306)];}return _0x29d83f;},_0x3bda8d=(_0x3557d5,_0x46bf89,_0x2b8ba8,_0x4ef9dc)=>{const _0x1fa6b7=_0x1f66a3;var _0x396b7a,_0x56edf5,_0x4797a5,_0x5bbef0,_0x994366,_0x2175fa,_0x506403,_0x492a3d,_0x40d255,_0x4a36cf,_0x25dda5,_0x2f56f7,_0x3c99ce,_0x1f7646;const _0x25375c=_0x2b8ba8['targetCellInfo'],{cornerView:_0xecefd3,rowView:_0x56479c,colView:_0x34b95d,dataView:_0x2c624c,pageView:_0x1d8cf4,formatMap:_0x2bb69b,groupInfo:_0x5bac2d}=_0x46bf89,{row:_0x23c1b6,col:_0x382ae0}=_0x25375c,_0x28588b=new _0x47953c[(_0x1fa6b7(0x1d1))](),_0x5df45b={},_0x5600e5={},_0x4aab92={},_0x3ee68c={},_0x15e843={};let _0x30a9c2=_0x23c1b6,_0x5dfde0=_0x382ae0;Object[_0x1fa6b7(0x1d4)](_0x1d8cf4['data'])[_0x1fa6b7(0x370)](_0x2569be=>{const _0x4692ec=_0x1fa6b7;Object['keys'](_0x1d8cf4['data'][Number(_0x2569be)])[_0x4692ec(0x370)](_0x3339af=>{const _0x129dac=_0x4692ec,_0x23e7fa={..._0x1d8cf4[_0x129dac(0x4cc)][Number(_0x2569be)][Number(_0x3339af)]};_0x28588b['setValue'](Number(_0x2569be)+_0x30a9c2,Number(_0x3339af)+_0x5dfde0,_0x4828af(_0x3557d5,_0x23e7fa,_0x536a97[_0x129dac(0x335)]));});});const _0x6b2fbb=Object[_0x1fa6b7(0x1d4)](_0x1d8cf4[_0x1fa6b7(0x4cc)])['length'];_0x30a9c2+=_0x6b2fbb+(_0x6b2fbb?_0x474d9e:0x0);const _0x593d50=_0xecefd3[_0x1fa6b7(0x254)](),_0x4e7404=_0xecefd3['getColCount']();for(let _0x958a8c=0x0;_0x958a8c<_0x593d50;_0x958a8c++)for(let _0x8a7dbd=0x0;_0x8a7dbd<_0x4e7404;_0x8a7dbd++){const _0x5d9a7a={...(_0x56edf5=(_0x396b7a=_0xecefd3[_0x1fa6b7(0x4cc)])==null?void 0x0:_0x396b7a[_0x958a8c])==null?void 0x0:_0x56edf5[_0x8a7dbd]};_0x5d9a7a&&((_0x4797a5=_0x56479c[_0x1fa6b7(0x43d)][_0x8a7dbd])!=null&&_0x4797a5[_0x1fa6b7(0x25b)])&&_0x8a7dbd===_0x4e7404-0x1&&_0x958a8c===_0x593d50-0x1&&(_0x5d9a7a['v']=''+_0x4ef9dc['sheets-pivot.value']),_0x28588b[_0x1fa6b7(0x27f)](_0x958a8c+_0x30a9c2,_0x8a7dbd+_0x5dfde0,_0x4828af(_0x3557d5,_0x5d9a7a,_0x536a97['cornerStyle']));}for(let _0x147fdc=0x0;_0x147fdc<_0xecefd3[_0x1fa6b7(0x3c4)]['length'];_0x147fdc++)_0xecefd3[_0x1fa6b7(0x3c4)][_0x147fdc]&&(_0x4aab92[''+(_0x147fdc+_0x5dfde0)]=_0xecefd3[_0x1fa6b7(0x3c4)][_0x147fdc]);_0x5dfde0+=_0x4e7404;const _0x2ac8c8=_0x34b95d[_0x1fa6b7(0x43d)],_0x43af20=_0x34b95d[_0x1fa6b7(0x377)]()>=0x0?_0x34b95d[_0x1fa6b7(0x377)]()+0x1:0x0,_0x37ebda=_0x34b95d[_0x1fa6b7(0x21d)]()>=0x0?_0x34b95d[_0x1fa6b7(0x21d)]()+0x1:0x0;for(let _0xb012f1=0x0;_0xb012f1<_0x37ebda;_0xb012f1++){for(let _0x20f7f0=0x0;_0x20f7f0<_0x43af20;_0x20f7f0++){const _0x204677={...(_0x994366=(_0x5bbef0=_0x34b95d[_0x1fa6b7(0x4cc)])==null?void 0x0:_0x5bbef0[_0x20f7f0])==null?void 0x0:_0x994366[_0xb012f1]},_0x58611e=(_0x2175fa=_0x2ac8c8[_0x20f7f0])==null?void 0x0:_0x2175fa['tableFieldId'],_0x47c696=_0x2bb69b[_0x58611e],_0x19e5de=_0x5bac2d[_0x58611e];_0x204677&&(_0x204677['v']=_0x5bba38(_0x204677,_0x20f7f0===0x0&&((_0x506403=_0x34b95d['getHeaderMapItem'](_0xb012f1+0x1))==null?void 0x0:_0x506403['isValue']),_0x47c696,_0x4ef9dc));let _0xa8ac6e;_0x47c696?_0xa8ac6e={..._0x536a97[_0x1fa6b7(0x300)],'n':{'pattern':_0x47c696}}:_0xa8ac6e={..._0x536a97['colStyle']},_0x28588b[_0x1fa6b7(0x27f)](_0x20f7f0+_0x30a9c2,_0xb012f1+_0x5dfde0,_0x4828af(_0x3557d5,_0x204677,_0xa8ac6e,_0x19e5de));}_0x34b95d[_0x1fa6b7(0x3c4)][_0xb012f1]&&(_0x5600e5[''+(_0xb012f1+_0x5dfde0)]=_0x34b95d[_0x1fa6b7(0x3c4)][_0xb012f1]),_0x34b95d['headerMap'][_0xb012f1+0x1]&&(_0x15e843[''+(_0xb012f1+_0x30a9c2+0x1)]=_0x34b95d[_0x1fa6b7(0x43d)][_0xb012f1+0x1]);}_0x30a9c2+=_0x593d50;const _0x220ac8=_0x56479c['headerMap'],_0x4e9873=_0x56479c['getLastRow']()>=0x0?_0x56479c['getLastRow']()+0x1:0x0,_0x334867=_0x56479c[_0x1fa6b7(0x21d)]()>=0x0?_0x56479c[_0x1fa6b7(0x21d)]()+0x1:0x0;for(let _0x5dbb86=0x0;_0x5dbb86<_0x4e9873;_0x5dbb86++){for(let _0x47fce1=0x0;_0x47fce1<_0x334867;_0x47fce1++){const _0xd894ee={...(_0x40d255=(_0x492a3d=_0x56479c['data'])==null?void 0x0:_0x492a3d[_0x5dbb86])==null?void 0x0:_0x40d255[_0x47fce1]},_0xafb7da=(_0x4a36cf=_0x220ac8[_0x47fce1])==null?void 0x0:_0x4a36cf[_0x1fa6b7(0x238)],_0x2b7d17=_0x2bb69b[_0xafb7da],_0x6b28c1=_0x5bac2d[_0xafb7da];_0xd894ee&&(_0xd894ee['v']=_0x5bba38(_0xd894ee,!0x1,_0x2b7d17,_0x4ef9dc));let _0x4f8274;_0x56479c[_0x1fa6b7(0x3c4)][_0x5dbb86][_0x1fa6b7(0x46d)]===_0x56479c[_0x1fa6b7(0x4a9)]()?_0x4f8274=_0x536a97[_0x1fa6b7(0x1e9)]:_0x56479c['info'][_0x5dbb86][_0x1fa6b7(0x2f4)]?_0x4f8274=_0x56479c[_0x1fa6b7(0x3c4)][_0x5dbb86][_0x1fa6b7(0x46d)]===0x0?_0x536a97['grandTotal']:_0x536a97[_0x1fa6b7(0x31b)]:_0x4f8274=_0x536a97['rowStyle'],_0x2b7d17&&(_0x4f8274={..._0x4f8274,'n':{'pattern':_0x2b7d17}}),_0x28588b[_0x1fa6b7(0x27f)](_0x5dbb86+_0x30a9c2,_0x47fce1+_0x382ae0,_0x4828af(_0x3557d5,_0xd894ee,_0x4f8274,_0x6b28c1));}_0x56479c[_0x1fa6b7(0x3c4)][_0x5dbb86]&&(_0x5df45b[''+(_0x5dbb86+_0x30a9c2)]=_0x56479c[_0x1fa6b7(0x3c4)][_0x5dbb86]),_0x56479c['headerMap'][_0x5dbb86]&&(_0x3ee68c[''+(_0x5dbb86+_0x382ae0)]=_0x56479c[_0x1fa6b7(0x43d)][_0x5dbb86]);}const _0x29e084=_0x2c624c[_0x1fa6b7(0x254)](),_0x159dc5=_0x2c624c['getColCount']();for(let _0x300896=0x0;_0x300896<_0x29e084;_0x300896++)for(let _0x2a7366=0x0;_0x2a7366<_0x159dc5;_0x2a7366++){const _0x459102={...(_0x2f56f7=(_0x25dda5=_0x2c624c[_0x1fa6b7(0x4cc)])==null?void 0x0:_0x25dda5[_0x300896])==null?void 0x0:_0x2f56f7[_0x2a7366]};let _0x30a3bc;_0x56479c[_0x1fa6b7(0x3c4)][_0x300896]['isBottomTotal']?_0x30a3bc=_0x56479c[_0x1fa6b7(0x3c4)][_0x300896][_0x1fa6b7(0x46d)]===0x0?_0x536a97['grandTotal']:_0x536a97['subTotalStyle']:_0x30a3bc=_0x536a97['dataStyle'];const _0x30614f=_0x56479c[_0x1fa6b7(0x3c4)][_0x300896]['valueIndex'],_0x179ee5=_0x34b95d['info'][_0x2a7366][_0x1fa6b7(0x4c0)],_0x5a4461=Math[_0x1fa6b7(0x341)](_0x30614f,_0x179ee5),_0x2c04cb=_0x2b8ba8[_0x1fa6b7(0x421)][_0x1fa6b7(0x3bb)]['concat']();let _0x1b9d61='';_0x5a4461<0x0?_0x1b9d61=(_0x3c99ce=_0x2c04cb[0x0])!=null?_0x3c99ce:'':_0x1b9d61=(_0x1f7646=_0x2c04cb[_0x5a4461])!=null?_0x1f7646:'';const _0x430326=_0x2bb69b[_0x1b9d61];_0x430326&&(_0x30a3bc={..._0x30a3bc,'n':{'pattern':_0x430326}}),_0x28588b[_0x1fa6b7(0x27f)](_0x300896+_0x30a9c2,_0x2a7366+_0x5dfde0,_0x4828af(_0x3557d5,_0x459102,_0x30a3bc));}return{'valueMatrix':_0x28588b,'rowInfo':_0x5df45b,'colInfo':_0x5600e5,'cornerInfo':_0x4aab92,'rowHeaderMap':_0x3ee68c,'colHeaderMap':_0x15e843};};function _0x5bba38(_0x19ac6b,_0x2b0f5f,_0x122f89,_0xf4a400){const _0x8ed645=_0x1f66a3;let _0x18fb64=_0x19ac6b['v'];_0x2b0f5f&&(_0x18fb64=''+_0xf4a400[_0x8ed645(0x2de)]);const _0x2eefb3=_0x19ac6b['t']&&(_0x19ac6b['t']&_0x454ae3[_0x8ed645(0x495)][_0x8ed645(0x334)])>0x0;if(_0x2eefb3&&(_0x18fb64=''+_0xf4a400['sheets-pivot.blank']),_0x19ac6b['s']===_0x454ae3['PivotCellStyleTypeEnum'][_0x8ed645(0x4af)]){let _0x1d916e=_0x18fb64,_0x5f577c='';_0x454ae3['isPrefixValue'](_0x18fb64)&&(_0x1d916e=_0x18fb64[_0x8ed645(0x386)],_0x5f577c=_0x18fb64['value']);const _0x546c75=_0x122f89&&!_0x2eefb3?_0x47953c[_0x8ed645(0x337)][_0x8ed645(0x2c9)](_0x122f89,Number(_0x1d916e)):_0x1d916e;_0x5f577c?_0x18fb64=_0x546c75+'\x20'+_0x5f577c:_0x18fb64=_0x546c75+'\x20'+_0xf4a400[_0x8ed645(0x2ad)];}else _0x19ac6b['s']===_0x454ae3[_0x8ed645(0x424)][_0x8ed645(0x2b3)]&&(_0x18fb64=_0x18fb64+'\x20'+_0xf4a400['sheets-pivot.grandTotal']);return _0x18fb64;}function _0x395173(_0x21564c){const _0x360ee0=_0x1f66a3;if(_0x454ae3[_0x360ee0(0x2bd)](_0x21564c)){const {errorType:_0x5925ca}=_0x21564c;switch(_0x5925ca){case _0x454ae3[_0x360ee0(0x22a)][_0x360ee0(0x266)]:return _0x311ac2[_0x360ee0(0x464)][_0x360ee0(0x2f2)];case _0x454ae3['PivotErrorTypeEnum']['NotNumber']:return _0x311ac2[_0x360ee0(0x464)][_0x360ee0(0x46a)];case _0x454ae3[_0x360ee0(0x22a)][_0x360ee0(0x2bc)]:return _0x311ac2['ErrorType']['NAME'];case _0x454ae3[_0x360ee0(0x22a)][_0x360ee0(0x1e5)]:return _0x311ac2[_0x360ee0(0x464)]['NAME'];case _0x454ae3[_0x360ee0(0x22a)]['BadReference']:return _0x311ac2[_0x360ee0(0x464)]['REF'];}}return _0x21564c;}function _0x16e0b8(_0x1bd26c,_0x471c98,_0x4c2932=!0x1,_0x89579=!0x1){const _0x584a60=_0x1f66a3,{data:_0x5299c7}=_0x471c98,_0x4ed43f=_0x471c98['getRowCount'](),_0x144fff=_0x471c98[_0x584a60(0x4a9)]();if(_0x4ed43f<=0x0||_0x144fff<=0x0)return[];const _0x20da2f=_0x471c98[_0x584a60(0x21d)](),_0x31aa90=_0x471c98[_0x584a60(0x377)](),_0x19c44a=_0x89579?_0x31aa90>=0x0?_0x31aa90+0x1:0x0:_0x4ed43f,_0x4e2bb1=_0x89579?_0x20da2f>=0x0?_0x20da2f+0x1:0x0:_0x144fff,{row:_0x2a2779,col:_0x32ef43}=_0x1bd26c,_0x54f094=_0x2a2779,_0x458e34=_0x32ef43;if(_0x4c2932){const _0x1a16ff=[];for(const [_0x45fd3a,_0x232cab]of Object['entries'](_0x5299c7))for(const [_0x1ac580,_0x22e485]of Object['entries'](_0x232cab))_0x1a16ff[_0x584a60(0x2b4)](_0x47953c['cellToRange'](_0x54f094+Number(_0x45fd3a),_0x458e34+Number(_0x1ac580)));return _0x1a16ff;}else{const _0x4c8719=_0x89579?_0x19c44a>0x0?0x1:0x0:0x1,_0x4d9cd3=_0x89579?_0x4e2bb1>0x0?0x1:0x0:0x1,_0x49a97f=_0x2a2779+_0x19c44a-_0x4c8719,_0x2b712f=_0x32ef43+_0x4e2bb1-_0x4d9cd3;return[{'startRow':_0x54f094,'startColumn':_0x458e34,'endRow':_0x49a97f,'endColumn':_0x2b712f}];}}const _0x1ff33b=_0x1f66a3(0x474),_0x3fc29f=_0x1f66a3(0x2a6);var _0x1e1e2c=(_0x39c092=>(_0x39c092[_0x1f66a3(0x1ee)]=_0x1f66a3(0x4b0),_0x39c092[_0x1f66a3(0x3b3)]=_0x1f66a3(0x324),_0x39c092[_0x1f66a3(0x367)]=_0x1f66a3(0x2d2),_0x39c092[_0x1f66a3(0x4ea)]='AddPivotTableWithConfig',_0x39c092[_0x1f66a3(0x2d8)]=_0x1f66a3(0x29d),_0x39c092[_0x1f66a3(0x458)]=_0x1f66a3(0x4e1),_0x39c092['RemovePivotField']='removePivotField',_0x39c092[_0x1f66a3(0x22d)]='setPivotCollapse',_0x39c092[_0x1f66a3(0x3be)]=_0x1f66a3(0x21b),_0x39c092[_0x1f66a3(0x2fe)]=_0x1f66a3(0x37a),_0x39c092[_0x1f66a3(0x2ea)]='setPivotSetting',_0x39c092[_0x1f66a3(0x314)]='updatePivotSource',_0x39c092[_0x1f66a3(0x3b7)]=_0x1f66a3(0x4aa),_0x39c092[_0x1f66a3(0x3ff)]=_0x1f66a3(0x40c),_0x39c092[_0x1f66a3(0x425)]=_0x1f66a3(0x24e),_0x39c092[_0x1f66a3(0x33b)]='setPivotTableConfig',_0x39c092[_0x1f66a3(0x285)]=_0x1f66a3(0x263),_0x39c092))(_0x1e1e2c||{});const _0x50076a={'sheets-pivot.blankValue':_0x1f66a3(0x2d9),'sheets-pivot.columnName':_0x1f66a3(0x3d6),'sheets-pivot.subTotalText':_0x1f66a3(0x237),'sheets-pivot.grandTotalText':_0x1f66a3(0x225),'sheets-pivot.valueText':_0x1f66a3(0x390),'sheets-pivot.averageName':_0x1f66a3(0x3e0),'sheets-pivot.countName':_0x1f66a3(0x351),'sheets-pivot.countNumsName':_0x1f66a3(0x351),'sheets-pivot.maxName':_0x1f66a3(0x37e),'sheets-pivot.minName':_0x1f66a3(0x401),'sheets-pivot.productName':_0x1f66a3(0x276),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x1f66a3(0x317),'sheets-pivot.varName':_0x1f66a3(0x291),'sheets-pivot.varpName':_0x1f66a3(0x360),'sheets-pivot.subTotal':_0x1f66a3(0x4af),'sheets-pivot.grandTotal':_0x1f66a3(0x225),'sheets-pivot.value':_0x1f66a3(0x3fe),'sheets-pivot.blank':_0x1f66a3(0x334),'sheets-pivot.emptyPivot.filter':_0x1f66a3(0x1ee),'sheets-pivot.emptyPivot.row':_0x1f66a3(0x358),'sheets-pivot.emptyPivot.column':_0x1f66a3(0x36c),'sheets-pivot.emptyPivot.values':'Values'},_0xd46e01={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x20ba16=_0x47953c[_0x1f66a3(0x221)](_0x1f66a3(0x1ef)),_0x37d52b=_0x47953c[_0x1f66a3(0x244)](_0x1f66a3(0x23f));var _0x33e534=(_0x171cd2=>(_0x171cd2[_0x1f66a3(0x224)]=_0x1f66a3(0x224),_0x171cd2[_0x1f66a3(0x481)]=_0x1f66a3(0x481),_0x171cd2['update']=_0x1f66a3(0x32d),_0x171cd2))(_0x33e534||{}),_0x35ec99=(_0x2e5157=>(_0x2e5157[_0x1f66a3(0x3e5)]=_0x1f66a3(0x224),_0x2e5157[_0x1f66a3(0x45a)]=_0x1f66a3(0x48f),_0x2e5157[_0x1f66a3(0x251)]=_0x1f66a3(0x481),_0x2e5157))(_0x35ec99||{});const _0xbdd99b={'type':_0x47953c['CommandType'][_0x1f66a3(0x3fa)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x527330={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x2fc),'handler':()=>!0x0},_0xaddee0={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x3dc),'handler':()=>!0x0},_0x501b59={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x92655e={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x1d5),'handler':()=>!0x0};var _0x142806=Object['getOwnPropertyDescriptor'],_0x35d1f5=(_0x4c002e,_0x5304da,_0x4f4d9f,_0x22c431)=>{for(var _0x5c3ed5=_0x22c431>0x1?void 0x0:_0x22c431?_0x142806(_0x5304da,_0x4f4d9f):_0x5304da,_0x2df7d1=_0x4c002e['length']-0x1,_0x4c6c94;_0x2df7d1>=0x0;_0x2df7d1--)(_0x4c6c94=_0x4c002e[_0x2df7d1])&&(_0x5c3ed5=_0x4c6c94(_0x5c3ed5)||_0x5c3ed5);return _0x5c3ed5;},_0x70d509=(_0x31b837,_0x93dd7c)=>(_0x22776e,_0x56b16e)=>_0x93dd7c(_0x22776e,_0x56b16e,_0x31b837);_0x447ba5[_0x1f66a3(0x281)]=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x53b07a){const _0x377326=_0x1f66a3;super(),_0x3e3ba8(this,'_requestResolvers',new Map()),this[_0x377326(0x3c1)]=_0x53b07a;}['handleAsyncResponse'](_0x48e25c){const _0x1cb9bc=_0x1f66a3,{version:_0x3ce4c2}=_0x48e25c,_0x59e383=this['_requestResolvers'][_0x1cb9bc(0x2ab)](_0x3ce4c2);_0x59e383&&(_0x59e383(_0x48e25c),this[_0x1cb9bc(0x4d1)]['delete'](_0x3ce4c2));}[_0x1f66a3(0x3ac)](_0x5efcce){return new Promise((_0x4b8fa7,_0x481976)=>{const _0x34efa1=_0x3953,_0x3d35fc=this[_0x34efa1(0x493)]();this[_0x34efa1(0x4d1)]['set'](_0x3d35fc,_0x4b8fa7),this[_0x34efa1(0x3c1)][_0x34efa1(0x40a)](_0xbdd99b['id'],{'version':_0x3d35fc,..._0x5efcce},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x1c550c=_0x1f66a3;return Math[_0x1c550c(0x264)]()['toString'](0x24)[_0x1c550c(0x44b)](0x2,0x10);}},_0x447ba5[_0x1f66a3(0x281)]=_0x35d1f5([_0x70d509(0x0,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x249)]))],_0x447ba5['SheetsPivotRPCService']);const _0xa8514a={0x0:'k',0x1:'p',0x2:'3',0x3:'X',0x4:'L',0x5:'1',0x6:'5',0x7:'G',0x8:'7',0x9:'W','K':'0','N':'2','W':'4','k':'6','B':'8','R':'9','d':'a','Z':'b','E':'c','L':'d','Y':'e','a':'f','A':'g','J':'h','q':'i','e':'j','S':'l','c':'m','F':'n','h':'o','b':'q','r':'r','Q':'s','x':'t','f':'u','O':'v','g':'w','v':'x','j':'y','C':'z','T':'A','o':'B','H':'C','m':'D','s':'E','z':'F','G':'H','X':'I','y':'J','i':'K','n':'M','M':'N','l':'O','V':'P','U':'Q','u':'R','D':'S','w':'T','p':'U','P':'V','I':'Y','t':'Z'},_0x1dcce7=_0x1f66a3(0x4b4),_0x495efa=_0x55187a=>{const _0x5a1306=_0x1f66a3;var _0x13645e;return((_0x13645e=_0x55187a[_0x5a1306(0x2fa)])==null?void 0x0:_0x13645e[_0x5a1306(0x248)]['replace'](/\r\n$/,''))||'';};class _0x3193c8 extends _0x454ae3[_0x1f66a3(0x4c2)]{constructor(_0x2b8ba0,_0x305439){const _0x2e96e3=_0x1f66a3;super(),_0x3e3ba8(this,_0x2e96e3(0x301),{}),_0x3e3ba8(this,'_univerInstanceService'),_0x3e3ba8(this,'_host'),(this[_0x2e96e3(0x489)]=_0x305439,this[_0x2e96e3(0x45d)]=_0x2b8ba0);}[_0x1f66a3(0x2ef)](){const _0x1bd1b5=_0x1f66a3;for(const _0x3a2313 in this['dataFields']){const _0x566963=this[_0x1bd1b5(0x3e3)][_0x3a2313],_0x416619=_0x566963[_0x1bd1b5(0x4bf)]();this[_0x1bd1b5(0x301)][_0x416619]=_0x566963[_0x1bd1b5(0x4a7)]();}}['getAutoDisplayNameFunction'](){const _0x4be799=this['_host'];return _0x20d5de['bind'](_0x4be799);}['deleteDataField'](_0x155bc8){const _0x3408d8=_0x1f66a3,_0x34a963=this['dataFields'][_0x155bc8][_0x3408d8(0x469)];delete this['dataFields'][_0x155bc8],delete this[_0x3408d8(0x301)][_0x34a963];}[_0x1f66a3(0x247)](_0x1c94ae){const _0x32e188=_0x1f66a3;this[_0x32e188(0x3e3)][_0x1c94ae[_0x32e188(0x4a7)]()]=_0x1c94ae;}[_0x1f66a3(0x2b8)](_0x29f6b2){const _0x4c72ce=_0x1f66a3;var _0x15af1c,_0x6f4b5d;const _0x17ff9a=this['_host']['getTargetByPivotId'](_0x29f6b2);if(_0x17ff9a){const {unitId:_0x955830,subUnitId:_0x5827b3}=_0x17ff9a,_0x3e682f=(_0x15af1c=this[_0x4c72ce(0x45d)][_0x4c72ce(0x2ac)](_0x955830,_0x5827b3,_0x29f6b2))==null?void 0x0:_0x15af1c['sourceRangeInfo'];this['_host'][_0x4c72ce(0x1fe)]({'token':_0x29f6b2,'type':_0x33e534[_0x4c72ce(0x481)],'dataRangeInfo':_0x3e682f});}(_0x6f4b5d=this[_0x4c72ce(0x4dd)](_0x29f6b2))==null||_0x6f4b5d[_0x4c72ce(0x27d)](),delete this['collections'][_0x29f6b2];}[_0x1f66a3(0x4bf)](_0x28f962,_0x26f386){const _0x20701a=_0x1f66a3,{sheetName:_0x3837ba,unitId:_0x3fc404,range:_0x44f325}=_0x28f962,{startRow:_0x28cc56,endRow:_0x516254}=_0x44f325;return _0x311ac2[_0x20701a(0x472)](_0x3fc404,_0x3837ba,{'startRow':_0x28cc56,'endRow':_0x516254,'startColumn':_0x26f386,'endColumn':_0x26f386});}[_0x1f66a3(0x345)](_0x33b4eb){const _0x245aea=_0x1f66a3;return this[_0x245aea(0x3e3)][this[_0x245aea(0x301)][_0x33b4eb]];}['setRangeKeyMap'](_0x55911b,_0x48dac8){this['rangeKeyMap'][_0x55911b]=_0x48dac8;}[_0x1f66a3(0x1f2)](_0x1b9281,_0x27bd22){const _0x36696c=_0x1f66a3;this['rangeKeyMap'][_0x27bd22]=this[_0x36696c(0x301)][_0x1b9281],delete this['rangeKeyMap'][_0x1b9281];}[_0x1f66a3(0x39a)](_0x6b99a9,_0x1f154e,_0x127e4d,_0x143f1e){const _0x2c9d04=_0x1f66a3,_0x50c8f1=new _0x454ae3[(_0x2c9d04(0x227))](this);_0x50c8f1['fromJSON'](_0x1f154e);const _0x1f25db=[];let _0x92a0fb=0x0;for(const _0x2e181b of _0x50c8f1['fieldIds']){const _0x52f4c7=this[_0x2c9d04(0x4bf)](_0x127e4d,_0x92a0fb),_0x299668=this[_0x2c9d04(0x3e3)][_0x2e181b];_0x299668&&(_0x299668['rangeKey']=_0x52f4c7,this['setRangeKeyMap'](_0x52f4c7,_0x2e181b),_0x1f25db[_0x2c9d04(0x2b4)]({'index':_0x92a0fb,'dataField':_0x299668})),_0x92a0fb++;}return this[_0x2c9d04(0x453)](_0x6b99a9,_0x50c8f1,_0x127e4d,_0x143f1e),{'collection':_0x50c8f1,'updateDataFieldList':_0x1f25db};}['getRangeStartEndInfo'](_0x2010ca,_0x409bea){const _0x2db773=_0x1f66a3;return _0x2010ca[_0x2db773(0x1f9)]===_0x47953c[_0x2db773(0x2c0)][_0x2db773(0x4a6)]?{'startRow':0x0,'startColumn':_0x2010ca[_0x2db773(0x2df)],'endRow':_0x409bea[_0x2db773(0x254)]()-0x1,'endColumn':_0x2010ca['endColumn']}:{'startRow':_0x2010ca[_0x2db773(0x404)],'startColumn':_0x2010ca['startColumn'],'endRow':_0x2010ca[_0x2db773(0x443)],'endColumn':_0x2010ca[_0x2db773(0x2b1)]};}[_0x1f66a3(0x320)](_0x2729af){const _0x3c5ac4=_0x1f66a3,{sheetName:_0x1ef026,range:_0x1b3837}=_0x2729af,_0x5a9cd6=this[_0x3c5ac4(0x489)]['getCurrentUnitForType'](_0x47953c[_0x3c5ac4(0x31a)]['UNIVER_SHEET']),_0x2dd282=_0x5a9cd6['getSheetBySheetName'](_0x1ef026),_0x5c9838=_0x2dd282[_0x3c5ac4(0x2ba)](),{startColumn:_0x5cfe27,startRow:_0x432246,endColumn:_0x28a9cc}=this[_0x3c5ac4(0x3f3)](_0x1b3837,_0x2dd282),_0x3c5e91=_0x5a9cd6['getStyles'](),_0x397b82=new _0x454ae3[(_0x3c5ac4(0x227))](this);_0x397b82[_0x3c5ac4(0x2f0)](_0x2729af);const _0x4dbcd2=[],_0x20defb={};for(let _0x44e41a=_0x5cfe27;_0x44e41a<=_0x28a9cc;_0x44e41a++){const _0x122df2=_0x5c9838['getValue'](_0x432246,_0x44e41a),_0x19f86f=this[_0x3c5ac4(0x4bf)](_0x2729af,_0x44e41a),_0x2713fb=this[_0x3c5ac4(0x345)](_0x19f86f);if(_0x2713fb)_0x397b82[_0x3c5ac4(0x4c4)](_0x2713fb[_0x3c5ac4(0x4a7)](),_0x2713fb[_0x3c5ac4(0x484)]());else{const _0x110548=this[_0x3c5ac4(0x38b)]();let _0x364791=this[_0x3c5ac4(0x33d)](_0x122df2,_0x3c5e91,_0x20defb);_0x454ae3[_0x3c5ac4(0x256)](_0x364791)&&(_0x364791=_0x47953c[_0x3c5ac4(0x337)][_0x3c5ac4(0x2c9)](_0x364791['f'],Number(_0x364791['v'])));const _0x4792ac=this[_0x3c5ac4(0x30d)](_0x364791,_0x44e41a),_0x34d07d=new _0x454ae3[(_0x3c5ac4(0x1dd))](_0x110548,_0x4792ac,_0x454ae3['generateHexNumber'](0x3));_0x34d07d[_0x3c5ac4(0x469)]=_0x19f86f,this[_0x3c5ac4(0x3e3)][_0x110548]=_0x34d07d,_0x397b82[_0x3c5ac4(0x4c4)](_0x110548,_0x4792ac),_0x4dbcd2['push']({'index':_0x44e41a,'dataField':_0x34d07d});}}return{'updateDataFieldList':_0x4dbcd2,'collection':_0x397b82};}[_0x1f66a3(0x4e4)](_0x46593a){const _0x10523b=_0x1f66a3;return this['_host']['getTextInfo']()['sheets-pivot.columnName']+'\x20'+_0x47953c[_0x10523b(0x4cf)](_0x46593a);}['uniqueDataFieldName'](_0x50905b,_0x3b3e21){const _0x25c679=_0x1f66a3;return _0x50905b==null||_0x50905b===''?this[_0x25c679(0x4e4)](_0x3b3e21):String(_0x50905b);}[_0x1f66a3(0x4dd)](_0x539c63){return this['collections'][_0x539c63];}['addCollection'](_0x42d992,_0x22469f,_0x2720fd,_0x25972c){const _0x3aeb53=_0x1f66a3;this[_0x3aeb53(0x340)][_0x42d992]=_0x22469f,_0x22469f[_0x3aeb53(0x2f0)](_0x2720fd),this['_host'][_0x3aeb53(0x1fe)]({'token':_0x42d992,'type':_0x33e534['add'],'dataRangeInfo':_0x2720fd,'targetCellInfo':_0x25972c});}[_0x1f66a3(0x24c)](_0x41c79a,_0x55fdb9){const _0x272dbf=_0x1f66a3,_0x3ecbd4=this[_0x272dbf(0x4dd)](_0x41c79a),_0x2d7e6e=_0x3ecbd4['getFieldIds']();let _0x50d8b5=0x0;for(const _0x3c7adc of _0x2d7e6e){const _0x2990ac=_0x3ecbd4[_0x272dbf(0x2ca)](_0x3c7adc),_0x1db5a4=this[_0x272dbf(0x4bf)](_0x55fdb9,_0x50d8b5);this[_0x272dbf(0x1f2)](_0x2990ac[_0x272dbf(0x469)],_0x1db5a4),_0x50d8b5++;}}[_0x1f66a3(0x25c)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x1f66a3(0x4d6)](_0x19378d,_0x4d334f){const _0x479f10=_0x1f66a3;if(this[_0x479f10(0x4dd)](_0x19378d)){const _0x1b85e2=this[_0x479f10(0x2f9)](_0x4d334f),_0x58f671=[];for(const _0x2fbe26 of _0x1b85e2)this[_0x479f10(0x301)][_0x2fbe26]!==void 0x0&&_0x58f671[_0x479f10(0x2b4)](this[_0x479f10(0x301)][_0x2fbe26]);const _0x333e20=this[_0x479f10(0x284)](_0x19378d),_0x1f7a6a=[],_0x2de9df=new Set(_0x58f671);for(const _0x40af9d of _0x333e20)_0x2de9df[_0x479f10(0x3a8)](_0x40af9d)||_0x1f7a6a[_0x479f10(0x2b4)](_0x40af9d);return _0x1f7a6a;}}[_0x1f66a3(0x26b)](_0x1626bd,_0x18a9c9,_0x476cfc,_0xae9694,_0x4e2f29){const _0x1b3c8f=_0x1f66a3;return _0x18a9c9&&_0x18a9c9[_0x1b3c8f(0x325)](_0xae9694,_0x4e2f29)?_0x18a9c9[_0x1b3c8f(0x325)](_0xae9694,_0x4e2f29):_0x476cfc&&_0x476cfc['getValue'](_0xae9694,_0x4e2f29)?_0x476cfc[_0x1b3c8f(0x325)](_0xae9694,_0x4e2f29):_0x1626bd[_0x1b3c8f(0x325)](_0xae9694,_0x4e2f29);}[_0x1f66a3(0x2d7)](_0x34ed0a,_0x2e22ae,_0x495885,_0x5f0364){const _0x20244c=_0x1f66a3,_0x1b36b3=this[_0x20244c(0x3e3)][_0x34ed0a];if(!_0x1b36b3)return;const {subUnitId:_0x4bbfb4,range:_0x40505a,unitId:_0x526aa3}=_0x2e22ae,_0x4f3a83=this['_univerInstanceService'][_0x20244c(0x2e0)](_0x526aa3);if(!_0x4f3a83){console['error'](_0x20244c(0x30b));return;}const _0x28e94a=_0x4f3a83[_0x20244c(0x49b)](_0x4bbfb4),_0x2614b2=_0x28e94a[_0x20244c(0x2ba)](),{arrayFormulaCellDataMatrix:_0x30f6f0,unitDataMatrix:_0x4259ca}=_0x5f0364||{},{startRow:_0x5288bb,startColumn:_0x1845cd,endRow:_0x14b1eb}=this['getRangeStartEndInfo'](_0x40505a,_0x28e94a);_0x1b36b3[_0x20244c(0x3f0)]();const _0x361e6d=_0x4f3a83[_0x20244c(0x338)](),_0x4e2d12={},_0x2f90cf=this['getMatrixValue'](_0x2614b2,_0x30f6f0,_0x4259ca,_0x5288bb,_0x1845cd+_0x495885);let _0x5da72a=this[_0x20244c(0x33d)](_0x2f90cf,_0x361e6d,_0x4e2d12);_0x454ae3[_0x20244c(0x256)](_0x5da72a)&&(_0x5da72a=_0x47953c[_0x20244c(0x337)][_0x20244c(0x2c9)](_0x5da72a['f'],Number(_0x5da72a['v'])));const _0x205a46=this[_0x20244c(0x30d)](_0x5da72a,_0x1845cd+_0x495885);_0x1b36b3[_0x20244c(0x245)](_0x205a46);for(let _0x5cc304=_0x5288bb+0x1;_0x5cc304<=_0x14b1eb;_0x5cc304++){const _0x177d0b=this['getMatrixValue'](_0x2614b2,_0x30f6f0,_0x4259ca,_0x5cc304,_0x1845cd+_0x495885);_0x1b36b3['addRecord'](this[_0x20244c(0x33d)](_0x177d0b,_0x361e6d,_0x4e2d12),_0x5cc304-0x1-_0x5288bb);}}[_0x1f66a3(0x31d)](_0x131a74,_0x56e53a,_0x234f16){const _0x25ebaa=_0x1f66a3,{subUnitId:_0x548cd4,range:_0xc58d61,unitId:_0x8f303e}=_0x234f16,_0x5eee75=this[_0x25ebaa(0x489)]['getUnit'](_0x8f303e);if(!_0x5eee75){console['error']('workbook\x20is\x20not\x20found');return;}const _0x28ac52=_0x5eee75[_0x25ebaa(0x49b)](_0x548cd4),_0x11fa59=_0x28ac52[_0x25ebaa(0x2ba)](),{startRow:_0xa360b8,startColumn:_0x323e38,endRow:_0x1b7e1a}=this['getRangeStartEndInfo'](_0xc58d61,_0x28ac52),_0x56fc20=_0x5eee75[_0x25ebaa(0x338)](),_0x310a01={};for(const {dataField:_0xf7846a,index:_0xab9276}of _0x56e53a){_0xf7846a[_0x25ebaa(0x3f0)]();const _0x5c9fc5=this[_0x25ebaa(0x26b)](_0x11fa59,void 0x0,void 0x0,_0xa360b8,_0x323e38+_0xab9276);let _0x2ee5d0=this['adjustSheetCellData'](_0x5c9fc5,_0x56fc20,_0x310a01);_0x454ae3['isDateValue'](_0x2ee5d0)&&(_0x2ee5d0=_0x47953c[_0x25ebaa(0x337)][_0x25ebaa(0x2c9)](_0x2ee5d0['f'],Number(_0x2ee5d0['v'])));const _0x1ca999=this[_0x25ebaa(0x30d)](_0x2ee5d0,_0x323e38+_0xab9276);_0xf7846a[_0x25ebaa(0x245)](_0x1ca999);}_0x131a74['updateAllDisplayName']();for(let _0x36c47b=_0xa360b8+0x1;_0x36c47b<=_0x1b7e1a;_0x36c47b++)for(const {index:_0x31bf40,dataField:_0x59d955}of _0x56e53a){const _0x4a1b40=_0x11fa59[_0x25ebaa(0x325)](_0x36c47b,_0x323e38+_0x31bf40);_0x59d955[_0x25ebaa(0x208)](this[_0x25ebaa(0x33d)](_0x4a1b40,_0x56fc20,_0x310a01),_0x36c47b-0x1-_0xa360b8);}_0x131a74[_0x25ebaa(0x42b)](_0x1b7e1a-_0xa360b8);}[_0x1f66a3(0x2f9)](_0x467df2){const _0x1fec30=_0x1f66a3,{range:_0x46a0dc}=_0x467df2,{startColumn:_0x43c9b4,endColumn:_0x30d355}=_0x46a0dc,_0x190586=[];for(let _0x2cd64c=_0x43c9b4;_0x2cd64c<=_0x30d355;_0x2cd64c++)_0x190586[_0x1fec30(0x2b4)](this['getRangeKey'](_0x467df2,_0x2cd64c));return _0x190586;}[_0x1f66a3(0x33d)](_0x2b11ce,_0x117eed,_0x8a72ca){const _0x121dfd=_0x1f66a3;if(_0x2b11ce){const {s:_0x692704,v:_0x570ed9,t:_0x598ce4,p:_0x4349a0}=_0x2b11ce;if(_0x4349a0)return _0x495efa(_0x4349a0);const _0x56d426=_0x117eed[_0x121dfd(0x2ab)](_0x692704);if(_0x56d426&&_0x598ce4===_0x47953c[_0x121dfd(0x2c1)][_0x121dfd(0x485)]&&_0x56d426['n']){const {pattern:_0x3e0356}=_0x56d426['n'];_0x8a72ca[_0x3e0356]||(_0x8a72ca[_0x3e0356]=_0x47953c[_0x121dfd(0x337)][_0x121dfd(0x4cd)](_0x3e0356));const _0x9efb2d=_0x8a72ca[_0x3e0356],_0x50b622=_0x9efb2d[_0x121dfd(0x399)];if(_0x9efb2d[_0x121dfd(0x1ec)])return String(_0x570ed9);if(_0x50b622)return{'v':_0x570ed9,'f':_0x3e0356};}if(_0x598ce4===_0x47953c[_0x121dfd(0x2c1)][_0x121dfd(0x485)])return Number(_0x570ed9);if(_0x598ce4===_0x47953c[_0x121dfd(0x2c1)][_0x121dfd(0x306)]||_0x598ce4===_0x47953c['CellValueType'][_0x121dfd(0x40d)])return String(_0x570ed9);if(_0x598ce4===void 0x0){const _0x498c0e=Number(_0x570ed9);if(!Number['isNaN'](_0x498c0e)&&String(_0x498c0e)===_0x570ed9)return _0x498c0e;}return _0x570ed9!=null?_0x570ed9:null;}else return null;}[_0x1f66a3(0x429)](_0x5ec577){const _0x4a9715=_0x1f66a3,{sheetName:_0x1dc970,range:_0x349b44,unitId:_0x54d7ce}=_0x5ec577,_0x32b4de=this[_0x4a9715(0x489)]['getUnit'](_0x54d7ce);if(!_0x32b4de)return console['error'](_0x4a9715(0x30b)),{'header':[],'data':[]};const _0x28180f=_0x32b4de[_0x4a9715(0x4ca)](_0x1dc970),_0x17b85e=_0x28180f[_0x4a9715(0x2ba)](),{startRow:_0x60fca0,startColumn:_0x5b73b6,endRow:_0x1c9234,endColumn:_0x3512c9}=this[_0x4a9715(0x3f3)](_0x349b44,_0x28180f),_0x4307c9=_0x32b4de[_0x4a9715(0x338)](),_0x4169fb=[],_0x1fc903=[],_0x17d2b6={};for(let _0x2338ab=_0x60fca0;_0x2338ab<=_0x1c9234;_0x2338ab++){const _0x9d7150=[];for(let _0x476d62=_0x5b73b6;_0x476d62<=_0x3512c9;_0x476d62++){const _0xc0c753=_0x17b85e['getValue'](_0x2338ab,_0x476d62);_0x2338ab===_0x60fca0?_0x4169fb[_0x4a9715(0x2b4)](_0xc0c753==null?null:String(_0xc0c753['v'])):_0x9d7150[_0x4a9715(0x2b4)](this['adjustSheetCellData'](_0xc0c753,_0x4307c9,_0x17d2b6));}_0x1fc903[_0x4a9715(0x2b4)](_0x9d7150);}return{'header':_0x4169fb,'data':_0x1fc903};}[_0x1f66a3(0x413)](){return super['toJSON']();}[_0x1f66a3(0x3f5)](_0x454c09){const _0x53ed2e=_0x1f66a3;super['fromJSON'](_0x454c09),this[_0x53ed2e(0x2ef)]();}[_0x1f66a3(0x27d)](){const _0x104d25=_0x1f66a3;super[_0x104d25(0x27d)](),this[_0x104d25(0x301)]={},this[_0x104d25(0x45d)]=null;}}const _0xb3da40=_0x2f2ae6=>{const _0x440994=_0x1f66a3,{targetCellInfo:_0x205b14}=_0x2f2ae6,{matrixCache:_0x5a71f7,rangesCache:_0x113600}=_0x1675ab({'filter':_0x440994(0x1ee),'row':_0x440994(0x358),'column':_0x440994(0x36c),'values':_0x440994(0x28d)},_0x205b14),_0x1e54a2=new _0x47953c[(_0x440994(0x1d1))]();return _0x5a71f7[_0x440994(0x2c5)]((_0x4ac3e3,_0x1aec6d,_0x38cc69)=>{const _0x2d8867=_0x440994;_0x1e54a2[_0x2d8867(0x27f)](_0x4ac3e3,_0x1aec6d,_0x38cc69);}),{'matrix':_0x1e54a2,'rangesCache':_0x113600};},_0xb2e939=_0x3ea1b3=>{const _0x535e5a=_0x1f66a3;let _0x3e4ebd;if(_0x3ea1b3!=null&&_0x3ea1b3['v']||(_0x3ea1b3==null?void 0x0:_0x3ea1b3['v'])===0x0){_0x3e4ebd||(_0x3e4ebd={});const _0x32d44c=_0x395173(_0x3ea1b3['v']);typeof _0x32d44c==_0x535e5a(0x2e1)?_0x3e4ebd['t']=_0x47953c[_0x535e5a(0x2c1)]['NUMBER']:typeof _0x32d44c==_0x535e5a(0x239)&&(_0x3e4ebd['t']=_0x47953c[_0x535e5a(0x2c1)]['STRING']),_0x3e4ebd['v']=_0x32d44c;}return _0x3e4ebd;},_0x22e1de=(_0x329891,_0x4b1888,_0x346476)=>{const _0x2f8e9a=_0x1f66a3;var _0x2c3d2c,_0x539de3,_0x363332,_0xad9c9f,_0x37acde,_0x2f73e4,_0x3c1ed6,_0x1487a3,_0x4725bd,_0x46c80f,_0x1a57b4,_0x14396a;const {cornerView:_0x43625c,rowView:_0x291fdc,colView:_0x9a602b,dataView:_0x35cb2a,pageView:_0x402f4a,formatMap:_0xe4c5ae}=_0x329891,{row:_0x12f7d0,col:_0x4ef8b1}=_0x4b1888,_0x1ba628=new _0x47953c[(_0x2f8e9a(0x1d1))]();let _0x33a14d=_0x12f7d0,_0xbf71e4=_0x4ef8b1;Object[_0x2f8e9a(0x1d4)](_0x402f4a[_0x2f8e9a(0x4cc)])[_0x2f8e9a(0x370)](_0xa4147d=>{const _0x27ce48=_0x2f8e9a;Object[_0x27ce48(0x1d4)](_0x402f4a['data'][Number(_0xa4147d)])['forEach'](_0x1a45a4=>{const _0x3b5f94=_0x27ce48,_0x42e378={..._0x402f4a[_0x3b5f94(0x4cc)][Number(_0xa4147d)][Number(_0x1a45a4)]};_0x1ba628[_0x3b5f94(0x27f)](Number(_0xa4147d)+_0x33a14d,Number(_0x1a45a4)+_0xbf71e4,_0xb2e939(_0x42e378));});});const _0x3a29fe=Object[_0x2f8e9a(0x1d4)](_0x402f4a[_0x2f8e9a(0x4cc)])[_0x2f8e9a(0x217)];_0x33a14d+=_0x3a29fe+(_0x3a29fe?_0x474d9e:0x0);const _0x302678=_0x43625c[_0x2f8e9a(0x254)](),_0x3f9ef5=_0x43625c[_0x2f8e9a(0x4a9)]();for(let _0x2a61ea=0x0;_0x2a61ea<_0x302678;_0x2a61ea++)for(let _0x4ad215=0x0;_0x4ad215<_0x3f9ef5;_0x4ad215++){const _0xf26d6a={...(_0x539de3=(_0x2c3d2c=_0x43625c['data'])==null?void 0x0:_0x2c3d2c[_0x2a61ea])==null?void 0x0:_0x539de3[_0x4ad215]};_0xf26d6a&&((_0x363332=_0x291fdc['headerMap'][_0x4ad215])!=null&&_0x363332[_0x2f8e9a(0x25b)])&&_0x4ad215===_0x3f9ef5-0x1&&_0x2a61ea===_0x302678-0x1&&(_0xf26d6a['v']=''+_0x346476[_0x2f8e9a(0x2de)]),_0x1ba628[_0x2f8e9a(0x27f)](_0x2a61ea+_0x33a14d,_0x4ad215+_0xbf71e4,_0xb2e939(_0xf26d6a));}_0xbf71e4+=_0x3f9ef5;const _0x536335=_0x9a602b[_0x2f8e9a(0x43d)],_0xada3b5=_0x9a602b[_0x2f8e9a(0x377)]()>=0x0?_0x9a602b[_0x2f8e9a(0x377)]()+0x1:0x0,_0x1850a8=_0x9a602b['getLastCol']()>=0x0?_0x9a602b[_0x2f8e9a(0x21d)]()+0x1:0x0;for(let _0x1822d8=0x0;_0x1822d8<_0x1850a8;_0x1822d8++)for(let _0x55afd2=0x0;_0x55afd2<_0xada3b5;_0x55afd2++){const _0x3191e8={...(_0x37acde=(_0xad9c9f=_0x9a602b[_0x2f8e9a(0x4cc)])==null?void 0x0:_0xad9c9f[_0x1822d8])==null?void 0x0:_0x37acde[_0x55afd2]},_0x22ff4d=(_0x2f73e4=_0x536335[_0x1822d8])==null?void 0x0:_0x2f73e4[_0x2f8e9a(0x238)],_0x2218c5=_0xe4c5ae[_0x22ff4d];_0x3191e8&&(_0x3191e8['v']=_0x5bba38(_0x3191e8,_0x1822d8===0x0&&((_0x3c1ed6=_0x9a602b[_0x2f8e9a(0x4de)](_0x55afd2+0x1))==null?void 0x0:_0x3c1ed6[_0x2f8e9a(0x25b)]),_0x2218c5,_0x346476)),_0x1ba628[_0x2f8e9a(0x27f)](_0x1822d8+_0x33a14d,_0x55afd2+_0xbf71e4,_0xb2e939(_0x3191e8));}_0x33a14d+=_0x302678;const _0x34e097=_0x291fdc[_0x2f8e9a(0x43d)],_0x46d891=_0x291fdc['getLastRow']()>=0x0?_0x291fdc['getLastRow']()+0x1:0x0,_0x3002ef=_0x291fdc[_0x2f8e9a(0x21d)]()>=0x0?_0x291fdc[_0x2f8e9a(0x21d)]()+0x1:0x0;for(let _0x400469=0x0;_0x400469<_0x46d891;_0x400469++)for(let _0x1a702d=0x0;_0x1a702d<_0x3002ef;_0x1a702d++){const _0x2c3489={...(_0x4725bd=(_0x1487a3=_0x291fdc[_0x2f8e9a(0x4cc)])==null?void 0x0:_0x1487a3[_0x400469])==null?void 0x0:_0x4725bd[_0x1a702d]},_0x1c458f=(_0x46c80f=_0x34e097[_0x1a702d])==null?void 0x0:_0x46c80f['tableFieldId'],_0x402086=_0xe4c5ae[_0x1c458f];_0x2c3489&&(_0x2c3489['v']=_0x5bba38(_0x2c3489,!0x1,_0x402086,_0x346476)),_0x1ba628['setValue'](_0x400469+_0x33a14d,_0x1a702d+_0x4ef8b1,_0xb2e939(_0x2c3489));}const _0x16fc0e=_0x35cb2a[_0x2f8e9a(0x254)](),_0x1c6b56=_0x35cb2a[_0x2f8e9a(0x4a9)]();for(let _0x220f03=0x0;_0x220f03<_0x16fc0e;_0x220f03++)for(let _0x3326cc=0x0;_0x3326cc<_0x1c6b56;_0x3326cc++){const _0x2b7498={...(_0x14396a=(_0x1a57b4=_0x35cb2a['data'])==null?void 0x0:_0x1a57b4[_0x220f03])==null?void 0x0:_0x14396a[_0x3326cc]};_0x1ba628[_0x2f8e9a(0x27f)](_0x220f03+_0x33a14d,_0x3326cc+_0xbf71e4,_0xb2e939(_0x2b7498));}return _0x1ba628;},_0x229480=_0x4fa1db=>{const _0x512553=_0x1f66a3,{view:_0x7dccf2,targetCellInfo:_0x3c533a,isEmpty:_0x505e3d,textInfo:_0x26e3af}=_0x4fa1db;if(_0x505e3d)return _0xb3da40(_0x4fa1db);const {pageView:_0xb5649,cornerView:_0x2b610b,rowView:_0x233f32,colView:_0x4a1f08,dataView:_0x4915d8}=_0x7dccf2,_0x3f1ab0=_0x16e0b8(_0x3c533a,_0xb5649,!0x0),_0x591d38=_0xb5649[_0x512553(0x280)]>=0x0?_0xb5649[_0x512553(0x280)]+0x1:0x0,_0xcf83f3=_0x2b610b[_0x512553(0x254)](),_0x1b72b9=_0x2b610b['getColCount'](),_0x5b70b8=_0x3f1ab0[_0x512553(0x217)]>0x0?_0x474d9e:0x0,_0x551d20=_0x16e0b8({'row':_0x3c533a[_0x512553(0x222)]+_0x591d38+_0x5b70b8,'col':_0x3c533a[_0x512553(0x411)]},_0x2b610b,!0x1,!0x1),_0x174eb2=_0x16e0b8({'row':_0x3c533a[_0x512553(0x222)]+_0x591d38+_0x5b70b8+_0xcf83f3,'col':_0x3c533a[_0x512553(0x411)]},_0x233f32,!0x1,!0x0),_0x1e7b9f=_0x16e0b8({'row':_0x3c533a['row']+_0x591d38+_0x5b70b8,'col':_0x3c533a[_0x512553(0x411)]+_0x1b72b9},_0x4a1f08,!0x1,!0x0),_0xf3c013=_0x16e0b8({'row':_0x3c533a[_0x512553(0x222)]+_0x591d38+_0x5b70b8+_0xcf83f3,'col':_0x3c533a[_0x512553(0x411)]+_0x1b72b9},_0x4915d8,!0x1,!0x1),_0x1971d9={'rowRanges':_0x174eb2,'colRanges':_0x1e7b9f,'cornerRanges':_0x551d20,'dataRanges':_0xf3c013,'pageRanges':_0x3f1ab0};return{'matrix':_0x22e1de(_0x7dccf2,_0x3c533a,_0x26e3af),'rangesCache':_0x1971d9};};var _0x44e423=Object[_0x1f66a3(0x2e4)],_0x1a3317=(_0x8b1c1b,_0xb63806,_0x58f849,_0x559309)=>{const _0x1f9a47=_0x1f66a3;for(var _0x1fc6b7=_0x559309>0x1?void 0x0:_0x559309?_0x44e423(_0xb63806,_0x58f849):_0xb63806,_0x5cb279=_0x8b1c1b[_0x1f9a47(0x217)]-0x1,_0x3ac422;_0x5cb279>=0x0;_0x5cb279--)(_0x3ac422=_0x8b1c1b[_0x5cb279])&&(_0x1fc6b7=_0x3ac422(_0x1fc6b7)||_0x1fc6b7);return _0x1fc6b7;},_0x2788eb=(_0x5190f9,_0x4ae81a)=>(_0x3e9405,_0x2aa304)=>_0x4ae81a(_0x3e9405,_0x2aa304,_0x5190f9);_0x447ba5[_0x1f66a3(0x330)]=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x3a1b0a,_0x54fdee,_0x380700,_0x1343dc,_0x1b8214){const _0x108fd5=_0x1f66a3;super(),_0x3e3ba8(this,_0x108fd5(0x279),new Map()),_0x3e3ba8(this,_0x108fd5(0x354),new Map()),_0x3e3ba8(this,_0x108fd5(0x3de),new Map()),_0x3e3ba8(this,_0x108fd5(0x1e3)),_0x3e3ba8(this,_0x108fd5(0x4b7),new _0x21de06[(_0x108fd5(0x3e6))]()),_0x3e3ba8(this,_0x108fd5(0x2c4),this[_0x108fd5(0x4b7)][_0x108fd5(0x449)]()),_0x3e3ba8(this,_0x108fd5(0x3b6),new _0x21de06[(_0x108fd5(0x3e6))]()),_0x3e3ba8(this,_0x108fd5(0x2d0),this['_viewData$'][_0x108fd5(0x449)]()),_0x3e3ba8(this,_0x108fd5(0x226),new _0x21de06[(_0x108fd5(0x3e6))]()),_0x3e3ba8(this,'fieldsCollectionChange$',this[_0x108fd5(0x226)][_0x108fd5(0x449)]()),_0x3e3ba8(this,_0x108fd5(0x4e8),new Map()),_0x3e3ba8(this,_0x108fd5(0x2f1),[]),_0x3e3ba8(this,'_queryingMap',new Map()),(this[_0x108fd5(0x2b5)]=_0x3a1b0a,this[_0x108fd5(0x489)]=_0x54fdee,this['_lifecycleService']=_0x380700,this[_0x108fd5(0x3c1)]=_0x1343dc,this['_resourceManagerService']=_0x1b8214,this[_0x108fd5(0x47b)]());}[_0x1f66a3(0x22f)](){const _0x5f37ad=_0x1f66a3;return this[_0x5f37ad(0x1e3)]?this[_0x5f37ad(0x1e3)]:_0x50076a;}[_0x1f66a3(0x4bd)](_0x208c07){this['_textInfo']=_0x208c07;}['handleMoveRange'](_0x353122){const _0x331697=_0x1f66a3;var _0x237b51;const {from:_0x4804f5,to:_0x50991b,unitId:_0x2ff90c,fromRange:_0x95628a,toRange:_0x44b4dc}=_0x353122;if(_0x4804f5&&_0x50991b){const _0x2c26b1=this[_0x331697(0x3ca)](_0x2ff90c),_0x17594e=this[_0x331697(0x279)][_0x331697(0x2ab)](_0x2ff90c),_0x47397f=(_0x237b51=this[_0x331697(0x489)][_0x331697(0x2e0)](_0x2ff90c))==null?void 0x0:_0x237b51[_0x331697(0x49b)](_0x50991b['subUnitId']);if(!_0x17594e||!_0x47397f)return;const _0x1b4d23=_0x47397f==null?void 0x0:_0x47397f[_0x331697(0x484)]();for(const [_0x48498f,_0x1dc509]of _0x17594e['entries']())for(const [_0x310b4d,_0x55b1cf]of _0x1dc509[_0x331697(0x2d1)]()){const {sourceRangeInfo:_0x577790}=_0x55b1cf;if(_0x577790[_0x331697(0x33e)]===_0x2ff90c&&_0x577790[_0x331697(0x388)]===_0x4804f5[_0x331697(0x388)]&&_0x47953c[_0x331697(0x24d)][_0x331697(0x414)](_0x95628a,_0x577790[_0x331697(0x346)])){const _0x14de20={'row':_0x577790[_0x331697(0x346)][_0x331697(0x404)]-_0x95628a['startRow'],'col':_0x577790['range']['startColumn']-_0x95628a['startColumn']},_0x1091f4={'unitId':_0x2ff90c,'subUnitId':_0x50991b[_0x331697(0x388)],'sheetName':_0x1b4d23,'range':{'startRow':_0x44b4dc['startRow']+_0x14de20[_0x331697(0x222)],'endRow':_0x44b4dc['startRow']+_0x14de20[_0x331697(0x222)]+_0x577790[_0x331697(0x346)][_0x331697(0x443)]-_0x577790[_0x331697(0x346)][_0x331697(0x404)],'startColumn':_0x44b4dc[_0x331697(0x2df)]+_0x14de20[_0x331697(0x411)],'endColumn':_0x44b4dc[_0x331697(0x2df)]+_0x14de20['col']+_0x577790['range']['endColumn']-_0x577790[_0x331697(0x346)][_0x331697(0x2df)]}};_0x2c26b1['handleMoveRange'](_0x310b4d,_0x1091f4);const _0x554987={..._0x55b1cf,'sourceRangeInfo':_0x1091f4};this[_0x331697(0x312)](_0x2ff90c,_0x50991b[_0x331697(0x388)],_0x310b4d,_0x554987),this['broadcastCollectionChange']({'unitId':_0x2ff90c,'token':_0x310b4d,'type':_0x33e534[_0x331697(0x32d)],'oldSourceRangeInfo':_0x577790,'dataRangeInfo':_0x1091f4,'targetCellInfo':_0x55b1cf['targetCellInfo']}),this[_0x331697(0x1da)]({'unitId':_0x2ff90c,'subUnitId':_0x50991b[_0x331697(0x388)],'oldSubUnitId':_0x48498f,'pivotTableId':_0x310b4d,'pivotTableConfig':_0x554987,'collectionConfig':_0x2c26b1['toJSON']()});}}}}['broadcastCollectionChange'](_0x3bf70c){const _0x370242=_0x1f66a3;this['_collectionChange$'][_0x370242(0x201)](_0x3bf70c);}[_0x1f66a3(0x3ca)](_0x50aa02){const _0x52c80f=_0x1f66a3;let _0x373008=this[_0x52c80f(0x4e8)][_0x52c80f(0x2ab)](_0x50aa02);return _0x373008||(_0x373008=new _0x3193c8(this,this['_univerInstanceService']),this[_0x52c80f(0x4e8)][_0x52c80f(0x48f)](_0x50aa02,_0x373008)),_0x373008;}[_0x1f66a3(0x4dd)](_0x54d24d,_0x3dea9d){const _0x4bdbf5=_0x1f66a3;return this[_0x4bdbf5(0x3ca)](_0x54d24d)[_0x4bdbf5(0x340)][_0x3dea9d];}[_0x1f66a3(0x4d6)](_0x35f448,_0x17e06a,_0x4bd1e4){const _0x1ce39f=_0x1f66a3;return this[_0x1ce39f(0x3ca)](_0x35f448)[_0x1ce39f(0x4d6)](_0x17e06a,_0x4bd1e4);}['_ensurePivotMap'](_0x5edd73,_0x2c3136){const _0x442065=_0x1f66a3;let _0x6fee26=this[_0x442065(0x279)][_0x442065(0x2ab)](_0x5edd73);_0x6fee26||(_0x6fee26=new Map(),this[_0x442065(0x279)][_0x442065(0x48f)](_0x5edd73,_0x6fee26));let _0x3f33a7=_0x6fee26[_0x442065(0x2ab)](_0x2c3136);return _0x3f33a7||(_0x3f33a7=new Map(),_0x6fee26[_0x442065(0x48f)](_0x2c3136,_0x3f33a7)),_0x3f33a7;}[_0x1f66a3(0x312)](_0x23a9a5,_0x939a5b,_0x4f12af,_0x592d1d){const _0x4f74ca=_0x1f66a3;this[_0x4f74ca(0x394)](_0x23a9a5,_0x939a5b)[_0x4f74ca(0x48f)](_0x4f12af,_0x592d1d);}[_0x1f66a3(0x359)](_0x2f925c,_0x3a4ea6,_0xe4ea42){const _0x356695=_0x1f66a3;var _0x1fc417,_0x3efd28,_0x28034e,_0x4b6a21;((_0x3efd28=(_0x1fc417=this[_0x356695(0x279)]['get'](_0x2f925c))==null?void 0x0:_0x1fc417[_0x356695(0x2ab)](_0x3a4ea6))==null?void 0x0:_0x3efd28['get'](_0xe4ea42))&&((_0x4b6a21=(_0x28034e=this[_0x356695(0x279)][_0x356695(0x2ab)](_0x2f925c))==null?void 0x0:_0x28034e['get'](_0x3a4ea6))==null||_0x4b6a21[_0x356695(0x481)](_0xe4ea42));}[_0x1f66a3(0x20a)](_0x1a3185,_0x6cf2fb){const _0x47d46a=_0x1f66a3;this[_0x47d46a(0x354)]['set'](_0x1a3185,_0x6cf2fb);}[_0x1f66a3(0x361)](_0x5af6fb){const _0x5eb8bf=_0x1f66a3;this['_pivotTableInstanceCache'][_0x5eb8bf(0x481)](_0x5af6fb);}[_0x1f66a3(0x368)](_0x40ff29,_0x280048){const _0x4bb48d=_0x1f66a3;let _0x1a09e7=this[_0x4bb48d(0x3de)]['get'](_0x40ff29);_0x1a09e7||(_0x1a09e7=new Map(),this[_0x4bb48d(0x3de)][_0x4bb48d(0x48f)](_0x40ff29,_0x1a09e7));let _0x1544e3=_0x1a09e7['get'](_0x280048);return _0x1544e3||(_0x1544e3=new Map(),_0x1a09e7[_0x4bb48d(0x48f)](_0x280048,_0x1544e3)),_0x1544e3;}[_0x1f66a3(0x1da)](_0x22833f){const {unitId:_0x408960,subUnitId:_0x4e3ef9,pivotTableId:_0x5df5d4,pivotTableConfig:_0x550bd4,collectionConfig:_0x7753ca}=_0x22833f,_0x45b248={'unitId':_0x408960,'subUnitId':_0x4e3ef9,'oldSubUnitId':_0x4e3ef9,'pivotTableId':_0x5df5d4,'pivotTableConfig':_0x550bd4,'collectionConfig':_0x7753ca};this['_commandService']['executeCommand'](_0x501b59['id'],_0x45b248,{'onlyLocal':!0x0});}[_0x1f66a3(0x22b)](_0x5a2812,_0x391871,_0x335f18,_0x502a3f,_0x40e396,_0xa5042d,_0x1bf4bf,_0x4ae6da=!0x1){const _0x281dac=_0x1f66a3;var _0x1095f7;this[_0x281dac(0x3c1)][_0x281dac(0x40a)](_0xaddee0['id'],{'single':{'unitId':_0x5a2812,'subUnitId':_0x391871,'type':_0x335f18,'pivotTableId':_0x502a3f,'view':_0x40e396,'pivotConfig':_0xa5042d},'collectionConfig':{[_0x5a2812]:_0x1bf4bf}},{'onlyLocal':!0x0});const _0x3ce306=!!((_0x1095f7=this[_0x281dac(0x37f)](_0x502a3f))!=null&&_0x1095f7[_0x281dac(0x46c)]()),_0x344043=this[_0x281dac(0x2ac)](_0x5a2812,_0x391871,_0x502a3f);_0x344043&&this[_0x281dac(0x4df)]({'view':_0x40e396,'pivotTableId':_0x502a3f,'textInfo':this[_0x281dac(0x22f)](),'isEmpty':_0x3ce306,'targetCellInfo':_0x344043['targetCellInfo']},_0x4ae6da);}[_0x1f66a3(0x4df)](_0x8eeb1a,_0x439446){const _0xc6ba67=_0x1f66a3,{targetCellInfo:_0x37e728,pivotTableId:_0x44659e}=_0x8eeb1a,{unitId:_0x3102f4,subUnitId:_0x3e7725}=_0x37e728,_0x4e20c1=this[_0xc6ba67(0x368)](_0x3102f4,_0x3e7725),_0x1f4dc7=_0x4e20c1[_0xc6ba67(0x2ab)](_0x44659e);let _0x5d0ad1,_0x4df21d;_0x1f4dc7&&(_0x5d0ad1=_0x1f4dc7['rangeCache'],_0x4df21d=_0x1f4dc7[_0xc6ba67(0x498)]);const {rangesCache:_0x1cd8e3,matrix:_0x597471}=_0x229480(_0x8eeb1a);_0x4e20c1[_0xc6ba67(0x48f)](_0x44659e,{'rangeCache':_0x1cd8e3,'matrix':_0x597471,'oldMatrix':_0x4df21d,'oldRangeCache':_0x5d0ad1}),_0x439446||this['_viewData$'][_0xc6ba67(0x201)]({'unitId':_0x3102f4,'subUnitId':_0x3e7725,'pivotTableId':_0x44659e});}[_0x1f66a3(0x29d)](_0x45d916,_0x595c04,_0xed87e8,_0x3102f3,_0x12575e){const _0x2d002b=_0x1f66a3;this[_0x2d002b(0x312)](_0x45d916,_0x595c04,_0xed87e8,_0x12575e),this[_0x2d002b(0x20a)](_0xed87e8,_0x3102f3);}[_0x1f66a3(0x35a)](_0x5b0a69,_0x5090b1,_0x214b08){const _0x27fd8f=_0x1f66a3,_0x4faf98=this[_0x27fd8f(0x3ca)](_0x5b0a69);_0x4faf98[_0x27fd8f(0x284)](_0x214b08)[_0x27fd8f(0x370)](_0x4c33a5=>{const _0x3f8088=_0x27fd8f;_0x4faf98[_0x3f8088(0x4ba)](_0x4c33a5);}),this[_0x27fd8f(0x287)](_0x5b0a69,_0x214b08),this[_0x27fd8f(0x359)](_0x5b0a69,_0x5090b1,_0x214b08),this[_0x27fd8f(0x361)](_0x214b08);}[_0x1f66a3(0x23a)](_0x5c8a73,_0xdcc177,_0x1ab908,_0x52ab42){this['_updateModelCache'](_0x5c8a73,_0xdcc177,_0x1ab908,_0x52ab42);}['getPivotTableConfig'](_0x1c7277,_0x59b5f2,_0x4034ea){const _0x512b2f=_0x1f66a3;var _0x29f1d9,_0x412c2f;const _0x5eadd5=(_0x412c2f=(_0x29f1d9=this['_model'][_0x512b2f(0x2ab)](_0x1c7277))==null?void 0x0:_0x29f1d9[_0x512b2f(0x2ab)](_0x59b5f2))==null?void 0x0:_0x412c2f[_0x512b2f(0x2ab)](_0x4034ea);if(_0x5eadd5)return _0x5eadd5;}[_0x1f66a3(0x3ba)](_0x5a6338,_0x34a8b1,_0x42561f){const _0x3e0ebc=_0x1f66a3;var _0x8998e,_0x227579;const _0x15986b=(_0x227579=(_0x8998e=this[_0x3e0ebc(0x279)][_0x3e0ebc(0x2ab)](_0x5a6338))==null?void 0x0:_0x8998e[_0x3e0ebc(0x2ab)](_0x34a8b1))==null?void 0x0:_0x227579[_0x3e0ebc(0x2ab)](_0x42561f);if(_0x15986b)return _0x15986b[_0x3e0ebc(0x421)];}[_0x1f66a3(0x37f)](_0x20f84d){const _0x3cc67d=_0x1f66a3;return this['_pivotTableInstanceCache'][_0x3cc67d(0x2ab)](_0x20f84d);}[_0x1f66a3(0x4ad)](_0x53fa8b){const _0x4375bf=_0x1f66a3;this[_0x4375bf(0x279)][_0x4375bf(0x481)](_0x53fa8b);const _0x37e221=this[_0x4375bf(0x4e8)][_0x4375bf(0x2ab)](_0x53fa8b);_0x37e221&&(_0x37e221[_0x4375bf(0x27d)](),this[_0x4375bf(0x4e8)][_0x4375bf(0x481)](_0x53fa8b)),this[_0x4375bf(0x3de)][_0x4375bf(0x481)](_0x53fa8b),this[_0x4375bf(0x2f1)][_0x4375bf(0x370)](_0x40e8ef=>{const _0x545888=_0x4375bf;_0x40e8ef[_0x545888(0x4ad)](_0x53fa8b);});}['addCollectionByJSON'](_0x39a541,_0x4837e7,_0x176462,_0x497fa8){const _0x1183a0=_0x1f66a3;return this[_0x1183a0(0x3ca)](_0x176462[_0x1183a0(0x33e)])[_0x1183a0(0x39a)](_0x39a541,_0x4837e7,_0x176462,_0x497fa8);}[_0x1f66a3(0x320)](_0xb17d94){const _0x9dfa5c=_0x1f66a3;return this[_0x9dfa5c(0x3ca)](_0xb17d94[_0x9dfa5c(0x33e)])[_0x9dfa5c(0x320)](_0xb17d94);}[_0x1f66a3(0x31d)](_0x3ad021,_0x310317,_0x21d086){const _0x56a788=_0x1f66a3;this[_0x56a788(0x3ca)](_0x21d086[_0x56a788(0x33e)])[_0x56a788(0x31d)](_0x3ad021,_0x310317,_0x21d086);}[_0x1f66a3(0x431)](_0x5b76d8,_0xfcbcb3){const _0xa58378=_0x1f66a3;this[_0xa58378(0x3ca)](_0x5b76d8)[_0xa58378(0x4ba)](_0xfcbcb3);}['removeCollections'](_0x55315b,_0xe8c827){const _0x549638=_0x1f66a3;this[_0x549638(0x3ca)](_0x55315b)[_0x549638(0x2b8)](_0xe8c827);}['getSubUnitPivotConfigs'](_0x249385,_0x447485){const _0x111c9f=_0x1f66a3;var _0x45a4b0;return(_0x45a4b0=this[_0x111c9f(0x279)][_0x111c9f(0x2ab)](_0x249385))==null?void 0x0:_0x45a4b0[_0x111c9f(0x2ab)](_0x447485);}[_0x1f66a3(0x3d4)](_0x49f882){const _0xbfebbd=_0x1f66a3;for(const [_0x4571ed,_0x883d3d]of this[_0xbfebbd(0x279)]['entries']())for(const [_0x15668b,_0x1b62d0]of _0x883d3d[_0xbfebbd(0x2d1)]())if(_0x1b62d0[_0xbfebbd(0x3a8)](_0x49f882))return{'unitId':_0x4571ed,'subUnitId':_0x15668b};return null;}[_0x1f66a3(0x305)](_0x1c6aac,_0x15d430,_0x2b7716,_0x5e9381){const _0xaa70f8=_0x1f66a3,_0x140b7e=this[_0xaa70f8(0x368)](_0x1c6aac,_0x15d430);_0x5e9381?_0x140b7e[_0xaa70f8(0x48f)](_0x2b7716,_0x5e9381):_0x140b7e[_0xaa70f8(0x481)](_0x2b7716),this[_0xaa70f8(0x3b6)][_0xaa70f8(0x201)]({'unitId':_0x1c6aac,'subUnitId':_0x15d430,'pivotTableId':_0x2b7716});}[_0x1f66a3(0x27d)](){super['dispose']();}['getViewData'](_0x3c7740,_0x2d34e0,_0xd37cd2){const _0x45886a=_0x1f66a3;var _0xefe0de,_0x47c2e9;const _0x2b918e=(_0x47c2e9=(_0xefe0de=this[_0x45886a(0x3de)]['get'](_0x3c7740))==null?void 0x0:_0xefe0de[_0x45886a(0x2ab)](_0x2d34e0))==null?void 0x0:_0x47c2e9[_0x45886a(0x2ab)](_0xd37cd2);return _0x2b918e||null;}[_0x1f66a3(0x3db)](_0x29bfff){const _0x317d8c=_0x1f66a3;this[_0x317d8c(0x1e6)](_0x29bfff);}['updateDirtyPivotTable'](_0x221d0c){const _0x5aa965=_0x1f66a3,{token:_0x122bcd,unitId:_0x5cd6f7,subUnitId:_0x5e01db}=_0x221d0c,_0x3c5604=_0x5cd6f7+'-'+_0x5e01db+'-'+_0x122bcd;this[_0x5aa965(0x2e3)][_0x5aa965(0x2ab)](_0x3c5604)&&clearTimeout(this[_0x5aa965(0x2e3)][_0x5aa965(0x2ab)](_0x3c5604));const _0x3a15e9=setTimeout(()=>{const _0x3172a4=_0x5aa965;this[_0x3172a4(0x204)](_0x221d0c),this['_queryingMap'][_0x3172a4(0x481)](_0x3c5604);},_0xc72375);this[_0x5aa965(0x2e3)][_0x5aa965(0x48f)](_0x3c5604,_0x3a15e9);}[_0x1f66a3(0x204)](_0x5e8464){const _0x4581c4=_0x1f66a3,{unitId:_0x2f5187,subUnitId:_0xc077d2,token:_0x8705df,type:_0x4f27cb,pivotConfig:_0x34c5dd}=_0x5e8464,_0x55fc77=this[_0x4581c4(0x37f)](_0x8705df),_0x3a93dd=_0x55fc77==null?void 0x0:_0x55fc77['query'](),_0x301dca=_0x34c5dd!=null?_0x34c5dd:this[_0x4581c4(0x2ac)](_0x2f5187,_0xc077d2,_0x8705df);_0x301dca&&(_0x301dca[_0x4581c4(0x46c)]=!!(_0x55fc77!=null&&_0x55fc77[_0x4581c4(0x46c)]())),(_0x3a93dd||_0x4f27cb===_0x35ec99[_0x4581c4(0x251)])&&this[_0x4581c4(0x22b)](_0x2f5187,_0xc077d2,_0x4f27cb,_0x8705df,_0x3a93dd,_0x301dca,this['getDataFieldManager'](_0x2f5187)[_0x4581c4(0x413)]());}[_0x1f66a3(0x413)](_0x20acb7){const _0x4bd636=_0x1f66a3,_0x575697={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x4bd636(0x3ca)](_0x20acb7)&&(_0x575697[_0x4bd636(0x4d0)][_0x20acb7]=this[_0x4bd636(0x3ca)](_0x20acb7)[_0x4bd636(0x413)]()),this[_0x4bd636(0x279)]['get'](_0x20acb7)){_0x575697[_0x4bd636(0x246)][_0x20acb7]={};const _0x41639a=this[_0x4bd636(0x279)][_0x4bd636(0x2ab)](_0x20acb7);_0x41639a!=null&&_0x41639a[_0x4bd636(0x3aa)]&&[..._0x41639a[_0x4bd636(0x1d4)]()]['forEach'](_0x3f3163=>{const _0x1b24c7=_0x4bd636,_0x163232=_0x41639a[_0x1b24c7(0x2ab)](_0x3f3163);_0x163232!=null&&_0x163232['size']&&(_0x575697[_0x1b24c7(0x246)][_0x20acb7][_0x3f3163]={},[..._0x163232[_0x1b24c7(0x1d4)]()][_0x1b24c7(0x370)](_0x34a433=>{const _0x5bbb71=_0x1b24c7,_0x3fe083=_0x163232[_0x5bbb71(0x2ab)](_0x34a433);_0x3fe083&&(_0x575697['pivotTableConfigs'][_0x20acb7][_0x3f3163][_0x34a433]=_0x3fe083);}));});}return _0x575697;}[_0x1f66a3(0x3f5)](_0x3a6f51){const _0x1707e1=_0x1f66a3;var _0x15047e;const {dataFieldManagerConfig:_0x559ba0,pivotTableConfigs:_0x553382}=_0x3a6f51;_0x559ba0&&Object['keys'](_0x559ba0)[_0x1707e1(0x370)](_0x5347c1=>{const _0x2c2ad9=_0x1707e1;this[_0x2c2ad9(0x3ca)](_0x5347c1)['fromJSON'](_0x559ba0[_0x5347c1]);});const _0x1cea90=[];if(_0x553382){const _0x27303b=(_0x15047e=this[_0x1707e1(0x2b5)][_0x1707e1(0x2ab)](_0x47953c[_0x1707e1(0x4bb)])[_0x1707e1(0x353)](_0xeb4f2b['LS_CONFIG_KEY']))!=null?_0x15047e:{},{ls:_0x425555,pbk:_0xfb257a}=_0x27303b,_0x1c7669=_0x4c1091(_0xd2c7ac,_0x425555,_0xfb257a)['count'];Object[_0x1707e1(0x1d4)](_0x553382)[_0x1707e1(0x370)](_0xb56693=>{const _0xf08757=_0x1707e1;let _0x201d4e=0x0;const _0x56c091=_0x553382[_0xb56693];Object[_0xf08757(0x1d4)](_0x56c091)[_0xf08757(0x370)](_0x426acf=>{const _0x2f4a47=_0x56c091[_0x426acf];Object['keys'](_0x2f4a47)['forEach'](_0x281933=>{const _0x3230cf=_0x3953,_0x9c921c=_0x2f4a47[_0x281933];if(_0x9c921c){if(_0x201d4e>=_0x1c7669)return;_0x201d4e++;const _0x3439db=this[_0x3230cf(0x3ca)](_0xb56693),_0x5779e8=_0x3439db[_0x3230cf(0x340)][_0x281933],_0x1ab236=_0x5779e8[_0x3230cf(0x23d)]();let _0x214df8=0x0;const _0x6b4c93=[];for(const _0x9f44df of _0x1ab236){const _0x4fbf1e=_0x5779e8[_0x3230cf(0x2ca)](_0x9f44df);if(_0x454ae3[_0x3230cf(0x348)](_0x4fbf1e)){const _0x41b608=_0x4fbf1e[_0x3230cf(0x2f5)](),_0x428b14=_0x5779e8[_0x3230cf(0x2ca)](_0x41b608);_0x428b14&&_0x6b4c93[_0x3230cf(0x2b4)]([_0x4fbf1e,_0x428b14]);continue;}_0x3439db[_0x3230cf(0x2d7)](_0x9f44df,_0x9c921c[_0x3230cf(0x497)],_0x214df8),_0x214df8++;}_0x6b4c93['forEach'](([_0x2c43da,_0x3b573e])=>{const _0x4230a6=_0x3230cf;_0x2c43da[_0x4230a6(0x206)](_0x3b573e);});const _0x3e302f=new _0x454ae3[(_0x3230cf(0x25e))](_0x5779e8);_0x3e302f[_0x3230cf(0x3f5)](_0x9c921c[_0x3230cf(0x421)]),this[_0x3230cf(0x29d)](_0xb56693,_0x426acf,_0x281933,_0x3e302f,_0x9c921c);const _0x2f6eb9=_0x3e302f[_0x3230cf(0x267)]();_0x1cea90[_0x3230cf(0x2b4)]({'unitId':_0xb56693,'subUnitId':_0x426acf,'pivotTableId':_0x281933,'view':_0x2f6eb9['toJSON'](),'pivotConfig':_0x9c921c,'type':_0x35ec99[_0x3230cf(0x3e5)]});const _0x226e69=!!_0x3e302f['isEmpty'](),_0xc5d21c={'view':_0x2f6eb9,'pivotTableId':_0x281933,'textInfo':this[_0x3230cf(0x22f)](),'isEmpty':_0x226e69,'targetCellInfo':_0x9c921c[_0x3230cf(0x38e)]};this[_0x3230cf(0x4df)](_0xc5d21c,!0x1);}});});});}_0x559ba0&&Object[_0x1707e1(0x1d4)](_0x559ba0)[_0x1707e1(0x370)](_0x3f3f96=>{const _0x236354=_0x1707e1,_0x3f1c12=this['getDataFieldManager'](_0x3f3f96);this['_fieldsCollectionChange$'][_0x236354(0x201)](_0x3f1c12[_0x236354(0x340)]);}),this[_0x1707e1(0x3c1)]['executeCommand'](_0xaddee0['id'],{'batch':_0x1cea90,'collectionConfig':_0x559ba0},{'onlyLocal':!0x0});}[_0x1f66a3(0x47b)](){const _0xd9bf3d=_0x1f66a3;this[_0xd9bf3d(0x4e5)](this[_0xd9bf3d(0x268)][_0xd9bf3d(0x488)]({'toJson':_0x48711e=>JSON['stringify'](this[_0xd9bf3d(0x413)](_0x48711e)),'parseJson':_0x439077=>{if(!_0x439077)return{};try{return JSON['parse'](_0x439077);}catch{return{};}},'businesses':[_0x47953c[_0xd9bf3d(0x31a)][_0xd9bf3d(0x48b)]],'pluginName':_0x548f94,'onLoad':(_0x454279,_0x405bf2)=>{const _0x4c307a=_0xd9bf3d;this[_0x4c307a(0x3f5)](_0x405bf2);},'onUnLoad':_0x9da167=>{const _0x8ab33=_0xd9bf3d;this[_0x8ab33(0x4ad)](_0x9da167);}}));}},_0x447ba5[_0x1f66a3(0x330)]=_0x1a3317([_0x2788eb(0x0,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x27a)])),_0x2788eb(0x1,_0x47953c[_0x1f66a3(0x364)]),_0x2788eb(0x2,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x29e)])),_0x2788eb(0x3,_0x47953c[_0x1f66a3(0x249)]),_0x2788eb(0x4,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x25d)]))],_0x447ba5[_0x1f66a3(0x330)]);const _0x48f1b7={0x0:{0x0:{'v':'filter','s':_0x2a6840}},0x2:{0x1:{'v':'','s':_0x2a6840},0x2:{'v':'','s':_0x2a6840},0x3:{'v':'column','s':_0x2a6840},0x4:{'v':'','s':_0x2a6840},0x5:{'v':'','s':_0x2a6840}},0x3:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0x4:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0x5:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0x6:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0x7:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0x8:{0x0:{'v':_0x1f66a3(0x222),'s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':_0x1f66a3(0x31e),'s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0x9:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0xa:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0xb:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0xc:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}},0xd:{0x0:{'v':'','s':_0x2a6840},0x1:{'v':'','s':_0x4eab75},0x2:{'v':'','s':_0x4eab75},0x3:{'v':'','s':_0x4eab75},0x4:{'v':'','s':_0x4eab75},0x5:{'v':'','s':_0x4eab75}}},_0x5a51fa={'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':[]},_0x1675ab=(_0x301daf,_0x3862dd)=>{const _0x58ba48=_0x1f66a3,_0x50799b=new _0x47953c[(_0x58ba48(0x1d1))](),_0x45b2ec=new _0x47953c[(_0x58ba48(0x1d1))](_0x48f1b7),{row:_0x3e4bca,col:_0x1ac63d}=_0x3862dd;_0x45b2ec[_0x58ba48(0x2c5)]((_0x43a464,_0x10ef81,_0x19623f)=>{const _0x436463=_0x58ba48;let _0x1603a3='';_0x19623f['v']===_0x436463(0x4b0)?_0x1603a3=_0x301daf[_0x436463(0x4b0)]:_0x19623f['v']==='row'?_0x1603a3=_0x301daf['row']:_0x19623f['v']===_0x436463(0x2a2)?_0x1603a3=_0x301daf[_0x436463(0x2a2)]:_0x19623f['v']===_0x436463(0x31e)&&(_0x1603a3=_0x301daf[_0x436463(0x31e)]),_0x50799b['setValue'](_0x43a464+_0x3e4bca,_0x10ef81+_0x1ac63d,{..._0x19623f,'v':_0x1603a3});});const _0x4489fd=_0x47953c['Tools']['deepClone'](_0x5a51fa);return Object[_0x58ba48(0x1d4)](_0x5a51fa)[_0x58ba48(0x370)](_0x438c20=>{const _0x3fe133=_0x58ba48;_0x4489fd[_0x438c20]=_0x5a51fa[_0x438c20][_0x3fe133(0x44c)](_0x2e0fa7=>({..._0x2e0fa7,'startRow':_0x2e0fa7[_0x3fe133(0x404)]+_0x3e4bca,'endRow':_0x2e0fa7[_0x3fe133(0x443)]+_0x3e4bca,'startColumn':_0x2e0fa7[_0x3fe133(0x2df)]+_0x1ac63d,'endColumn':_0x2e0fa7[_0x3fe133(0x2b1)]+_0x1ac63d}));}),{'matrixCache':_0x50799b,'rangesCache':_0x4489fd};};function _0x20d5de(_0x43922f,_0x4b3906){const _0x4ef89c=_0x1f66a3;let _0x4dd5f0='';const _0x285c92=this['getTextInfo']();switch(_0x4b3906){case _0x454ae3[_0x4ef89c(0x332)][_0x4ef89c(0x29a)]:_0x4dd5f0=_0x285c92[_0x4ef89c(0x3d7)]+_0x43922f;break;case _0x454ae3[_0x4ef89c(0x332)][_0x4ef89c(0x39e)]:_0x4dd5f0=_0x285c92[_0x4ef89c(0x25a)]+_0x43922f;break;case _0x454ae3[_0x4ef89c(0x332)][_0x4ef89c(0x4e9)]:_0x4dd5f0=_0x285c92[_0x4ef89c(0x2e9)]+_0x43922f;break;case _0x454ae3['PivotSubtotalTypeEnum'][_0x4ef89c(0x341)]:_0x4dd5f0=_0x285c92[_0x4ef89c(0x2b2)]+_0x43922f;break;case _0x454ae3[_0x4ef89c(0x332)][_0x4ef89c(0x299)]:_0x4dd5f0=_0x285c92['sheets-pivot.minName']+_0x43922f;break;case _0x454ae3[_0x4ef89c(0x332)][_0x4ef89c(0x2cb)]:_0x4dd5f0=_0x285c92['sheets-pivot.productName']+_0x43922f;break;case _0x454ae3['PivotSubtotalTypeEnum']['stdDev']:_0x4dd5f0=_0x285c92[_0x4ef89c(0x4ae)]+_0x43922f;break;case _0x454ae3[_0x4ef89c(0x332)][_0x4ef89c(0x3c5)]:_0x4dd5f0=_0x285c92[_0x4ef89c(0x4eb)]+_0x43922f;break;case _0x454ae3[_0x4ef89c(0x332)]['sum']:_0x4dd5f0=_0x285c92[_0x4ef89c(0x1e8)]+_0x43922f;break;case _0x454ae3['PivotSubtotalTypeEnum'][_0x4ef89c(0x378)]:_0x4dd5f0=_0x285c92['sheets-pivot.varName']+_0x43922f;break;case _0x454ae3['PivotSubtotalTypeEnum']['varp']:_0x4dd5f0=_0x285c92['sheets-pivot.varpName']+_0x43922f;break;default:_0x4dd5f0=_0x43922f;break;}return _0x4dd5f0;}function _0x30590d(_0x1daee0,_0x3c7b62,_0x531430,_0x46b9a1,_0x3313af){const _0x23ec39=_0x1f66a3;var _0x527c7d,_0xcb82e1,_0x4a6024,_0x44f3ca,_0x25caff;const _0x3995dc=_0x47953c[_0x23ec39(0x39f)](_0x1daee0,_0x3c7b62),{rangesInfo:_0xfe85fb,areaInfo:_0x17d29c,headerMap:_0x333cf7}=_0x3313af;if(!_0xfe85fb||!_0x17d29c||!_0x333cf7)return;const _0x2e8b02=Object[_0x23ec39(0x1d4)](_0xfe85fb)[_0x23ec39(0x3a3)](_0x4ce17f=>_0xfe85fb[_0x4ce17f]['some'](_0x7f58c3=>_0x47953c[_0x23ec39(0x24d)]['contains'](_0x7f58c3,_0x3995dc))),_0x3ff336=_0x17d29c;let _0x2631ab,_0x204ce8,_0x156ec6;if(_0x2e8b02===_0x23ec39(0x49d))_0x2631ab=(_0x527c7d=_0x3ff336==null?void 0x0:_0x3ff336[_0x23ec39(0x496)])==null?void 0x0:_0x527c7d[_0x1daee0],_0x204ce8=(_0xcb82e1=_0x333cf7==null?void 0x0:_0x333cf7[_0x23ec39(0x3a1)])==null?void 0x0:_0xcb82e1[_0x3c7b62],_0x156ec6=_0x204ce8==null?void 0x0:_0x204ce8[_0x23ec39(0x238)];else{if(_0x2e8b02==='colRanges')_0x2631ab=(_0x4a6024=_0x3ff336==null?void 0x0:_0x3ff336['colInfo'])==null?void 0x0:_0x4a6024[_0x3c7b62],_0x204ce8=(_0x44f3ca=_0x333cf7['colHeaderMap'])==null?void 0x0:_0x44f3ca[_0x1daee0+0x1+_0x3c7b62-_0xfe85fb[_0x23ec39(0x257)][0x0][_0x23ec39(0x2df)]],_0x156ec6=_0x204ce8==null?void 0x0:_0x204ce8[_0x23ec39(0x238)];else{if(_0x2e8b02===_0x23ec39(0x319))_0x2631ab=(_0x25caff=_0x3ff336==null?void 0x0:_0x3ff336[_0x23ec39(0x2b0)])==null?void 0x0:_0x25caff[_0x3c7b62],_0x156ec6=_0x2631ab==null?void 0x0:_0x2631ab[_0x23ec39(0x238)];else{if(_0x2e8b02==='pageRanges'){const _0x46169b=_0x531430==null?void 0x0:_0x531430['fi'];_0x46169b!==void 0x0&&(_0x156ec6=_0x46b9a1['getFilterFieldIdByIndex'](_0x46169b));}}}}return{'filterId':_0x156ec6,'info':_0x2631ab,'data':_0x531430,'headerInfo':_0x204ce8};}function _0x286058(_0x1f9a62,_0x1c4ac0,_0x109e89){const _0x3cda69=_0x1f66a3,_0x20ea50=_0x1f9a62[_0x3cda69(0x36e)],_0x3c5d57=_0x20ea50[_0x3cda69(0x23d)](),_0x2dfa37=new Set();_0x1f9a62[_0x3cda69(0x34a)](_0x5e2121=>{_0x2dfa37['add'](_0x5e2121['dataFieldId']);});const _0x36a698=_0x3c5d57[_0x3cda69(0x44c)](_0x53e909=>{const _0x462501=_0x3cda69,_0x29c006=_0x20ea50[_0x462501(0x2ca)](_0x53e909);return{'checked':_0x2dfa37[_0x462501(0x3a8)](_0x53e909),'dataFieldId':_0x29c006['id'],'id':_0x29c006['id'],'name':_0x20ea50[_0x462501(0x49e)](_0x29c006['id']),'type':_0x29c006[_0x462501(0x3ab)](),'pivotTableId':_0x1c4ac0};}),_0x24befa=[];_0x1f9a62['iterateFieldByArea'](_0x454ae3['PivotTableFiledAreaEnum']['Row'],_0x58231a=>{const _0x1965a5=_0x3cda69;_0x24befa[_0x1965a5(0x2b4)]({'dataFieldId':_0x58231a[_0x1965a5(0x2dd)],'tableFieldId':_0x58231a['getId'](),'displayName':_0x58231a[_0x1965a5(0x49e)]()});});const _0x376a07=[];_0x1f9a62[_0x3cda69(0x479)](_0x454ae3[_0x3cda69(0x3cf)][_0x3cda69(0x36c)],_0x5c6000=>{const _0x3f9a4c=_0x3cda69;_0x376a07[_0x3f9a4c(0x2b4)]({'dataFieldId':_0x5c6000[_0x3f9a4c(0x2dd)],'tableFieldId':_0x5c6000['getId'](),'displayName':_0x5c6000[_0x3f9a4c(0x49e)]()});});const _0x3f569f=[];if(_0x1f9a62[_0x3cda69(0x479)](_0x454ae3[_0x3cda69(0x3cf)][_0x3cda69(0x390)],_0x4912f9=>{const _0x389bf5=_0x3cda69;_0x3f569f[_0x389bf5(0x2b4)]({'dataFieldId':_0x4912f9['dataFieldId'],'tableFieldId':_0x4912f9['getId'](),'displayName':_0x4912f9['getDisplayName'](),'format':_0x4912f9[_0x389bf5(0x3a7)](),'subTotalType':_0x4912f9[_0x389bf5(0x4d7)]()});}),_0x3f569f[_0x3cda69(0x217)]>0x1){const _0x20ccc3=_0x1f9a62[_0x3cda69(0x2e2)]();(_0x1f9a62[_0x3cda69(0x44a)]()?_0x376a07:_0x24befa)[_0x3cda69(0x44f)](_0x20ccc3,0x0,{'dataFieldId':'','tableFieldId':_0x3cda69(0x391),'displayName':_0x3cda69(0x3b2)});}const _0x593053=[];_0x1f9a62['iterateFieldByArea'](_0x454ae3['PivotTableFiledAreaEnum'][_0x3cda69(0x1ee)],_0x13bdc6=>{const _0x3604e2=_0x3cda69;_0x593053[_0x3604e2(0x2b4)]({'dataFieldId':_0x13bdc6[_0x3604e2(0x2dd)],'tableFieldId':_0x13bdc6[_0x3604e2(0x4a7)](),'displayName':_0x13bdc6[_0x3604e2(0x49e)]()});});const _0x6b07c5=_0x109e89['sourceRangeInfo'];return{'sourceList':_0x36a698,'sourceRange':_0x6b07c5,'rowFields':_0x24befa,'columnFields':_0x376a07,'valueFields':_0x3f569f,'filterFields':_0x593053,'positionInfo':_0x109e89['targetCellInfo']};}function _0x291e80(_0x2b2feb,_0x5b5cf8,_0x1f0ccf='',_0x304ff6={}){const _0x2d5fd0=_0x1f66a3,_0x8b233b=_0x2b2feb['get'](_0x47953c['LocaleService']);for(const _0x28d7b9 in _0x5b5cf8)if(Object[_0x2d5fd0(0x302)][_0x2d5fd0(0x36f)]['call'](_0x5b5cf8,_0x28d7b9)){const _0x32844e=_0x1f0ccf?_0x1f0ccf+'.'+_0x28d7b9:_0x28d7b9;typeof _0x5b5cf8[_0x28d7b9]==_0x2d5fd0(0x45e)&&_0x5b5cf8[_0x28d7b9]!==null&&!Array['isArray'](_0x5b5cf8[_0x28d7b9])?_0x291e80(_0x2b2feb,_0x5b5cf8[_0x28d7b9],_0x32844e,_0x304ff6):_0x304ff6[_0x32844e]=_0x8b233b['t'](_0x32844e);}return _0x304ff6;}const _0x2600c7=_0x22faf8=>{const _0x3bed94=_0x1f66a3;if(!_0x22faf8)return[];const {rowRanges:_0x3d8f45,colRanges:_0x1099e0,cornerRanges:_0x1e9445,dataRanges:_0x3fddea,pageRanges:_0x74c8c4}=_0x22faf8,_0x271f7d=[..._0x1099e0,..._0x3d8f45,..._0x3fddea,..._0x1e9445]['filter'](_0x51da2d=>_0x51da2d[_0x3bed94(0x404)]>=0x0&&_0x51da2d[_0x3bed94(0x2df)]>=0x0&&_0x51da2d[_0x3bed94(0x443)]>=0x0&&_0x51da2d[_0x3bed94(0x2b1)]>=0x0);let _0x5358c2=Number[_0x3bed94(0x49a)],_0xe06c98=Number['MIN_SAFE_INTEGER'],_0x4de3b4=Number['MAX_SAFE_INTEGER'],_0x29e4d3=Number['MIN_SAFE_INTEGER'];for(let _0xda4e86=0x0;_0xda4e86<_0x271f7d[_0x3bed94(0x217)];_0xda4e86++)_0x5358c2=Math[_0x3bed94(0x299)](_0x5358c2,_0x271f7d[_0xda4e86][_0x3bed94(0x404)]),_0xe06c98=Math[_0x3bed94(0x341)](_0xe06c98,_0x271f7d[_0xda4e86][_0x3bed94(0x443)]),_0x4de3b4=Math[_0x3bed94(0x299)](_0x4de3b4,_0x271f7d[_0xda4e86][_0x3bed94(0x2df)]),_0x29e4d3=Math[_0x3bed94(0x341)](_0x29e4d3,_0x271f7d[_0xda4e86]['endColumn']);return[..._0x74c8c4,{'startRow':_0x5358c2,'endRow':_0xe06c98,'startColumn':_0x4de3b4,'endColumn':_0x29e4d3}];};function _0x30805d(_0x2c043c,_0x8240d8){const _0x3d8c34=_0x1f66a3,_0x563f0c=_0x8240d8[_0x3d8c34(0x352)]['drillDown'],{pivotTableId:_0x22b719,unitId:_0x84046c,subUnitId:_0x5752bc}=_0x8240d8;if(!_0x563f0c)return;const _0x48cebf=_0x2c043c['get'](_0x447ba5['SheetsPivotDataSourceModel']),_0x2159b3=_0x48cebf[_0x3d8c34(0x37f)](_0x22b719),_0x5762bf=_0x48cebf[_0x3d8c34(0x2ac)](_0x84046c,_0x5752bc,_0x22b719);if(!_0x2159b3||!_0x5762bf)return;const _0x4c9758=_0x2159b3[_0x3d8c34(0x3cc)](_0x563f0c['tuple']);if(!(_0x4c9758!=null&&_0x4c9758[_0x3d8c34(0x217)]))return;const _0x549a6d=_0x5762bf['sourceRangeInfo'],{unitId:_0x27ca86,subUnitId:_0x3f8efb,range:_0x3dd964}=_0x549a6d;let _0x20f1a2=0x0;const _0x51ffc2=_0x2159b3['dataFieldsCollection']['getFieldIds']()[_0x3d8c34(0x219)]((_0x30fe46,_0x4df568)=>{var _0x2d4f0c;const _0x6839fe=(_0x2d4f0c=_0x2159b3['getDataFieldByDataFieldId'](_0x4df568))==null?void 0x0:_0x2d4f0c['getformat']();return _0x6839fe&&(_0x30fe46[String(_0x20f1a2)]=_0x6839fe),_0x20f1a2++,_0x30fe46;},{});return{'indexes':_0x4c9758,'range':_0x3dd964,'sourceUnitId':_0x27ca86,'sourceSubUnitId':_0x3f8efb,'formatMap':_0x51ffc2};}function _0x1ed697(_0x12af04,_0x3f778a){const _0x11deff=_0x1f66a3;if(!_0x12af04||!_0x3f778a)return!0x0;const _0x2ca2e0=_0xeb4f2b['unshiftString'](_0x1dcce7,_0xa8514a),_0x578b36=new Function(_0x11deff(0x1e7)+_0x2ca2e0)()(_0x12af04,_0x3f778a)[_0x11deff(0x259)],_0x750c0d=_0xeb4f2b['isFeatureAuthorizedWithinTime'](_0x578b36,'sf',_0xcecfbd);return!((_0x578b36==null?void 0x0:_0x578b36['rt'])===_0xeb4f2b['ReleaseType'][_0x11deff(0x379)]&&!_0x750c0d);}function _0x4c1091(_0x3d10c2,_0x3deff5,_0x4207eb){const _0x8fb4f7=_0x1f66a3,_0x130ebb={'count':_0x3d10c2,'timeValid':!0x1};if(!_0x3deff5||!_0x4207eb)return _0x130ebb;const _0x2fb444=_0xeb4f2b[_0x8fb4f7(0x231)](_0x1dcce7,_0xa8514a),_0x2d8b49=new Function(_0x8fb4f7(0x1e7)+_0x2fb444)()(_0x3deff5,_0x4207eb);if(_0x2d8b49!=null&&_0x2d8b49[_0x8fb4f7(0x4d5)]){const _0x31b7cd=_0x2d8b49['message'],_0x1e9694=_0xeb4f2b['isFeatureAuthorizedWithinTime'](_0x31b7cd,'sf',_0xcecfbd);return{'count':_0xeb4f2b[_0x8fb4f7(0x1fa)](_0x31b7cd,_0x1e9694,_0x8fb4f7(0x415),_0x3d10c2,_0x3d10c2,0x0),'timeValid':_0x1e9694};}return _0x130ebb;}function _0x442ea1(_0x3bb1fe,_0x5bcac7,_0x2f134b,_0x494182){const _0x284974=_0x1f66a3,_0x298aca={'subUnitId':_0x2f134b,'unitId':_0x5bcac7,'cellValue':_0x271f69['generateNullCell'](_0x494182)},_0x5b4355=_0x271f69['SetRangeValuesUndoMutationFactory'](_0x3bb1fe,_0x298aca);let _0x35cbcf=!0x1;return new _0x47953c[(_0x284974(0x1d1))](_0x5b4355[_0x284974(0x3eb)])[_0x284974(0x2c5)]((_0x3da602,_0x35c6fb,_0x1d6752)=>{const _0x28851b=_0x284974;if(!_0x35cbcf&&_0x1d6752&&(_0x1d6752[_0x28851b(0x3b5)]||_0x1d6752['f']||_0x1d6752['p']||_0x1d6752['s']||_0x1d6752['si']||_0x1d6752['t']||_0x1d6752['v']))return _0x35cbcf=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x271f69[_0x284974(0x4ac)]['id'],'params':_0x5b4355},'setRangeValueRedoMutation':{'id':_0x271f69[_0x284974(0x4ac)]['id'],'params':_0x298aca},'shouldClear':_0x35cbcf};}function _0x32e6b1(_0x13e39b){const {row:_0x4b2773,col:_0x21e0fc}=_0x13e39b,_0x5769d7={'startRow':_0x4b2773,'endRow':_0x4b2773,'startColumn':_0x21e0fc,'endColumn':_0x21e0fc},_0x98d28f={'startRow':_0x4b2773+0x2,'endRow':_0x4b2773+0xe,'startColumn':_0x21e0fc,'endColumn':_0x21e0fc+0x6};return[_0x5769d7,_0x98d28f];}function _0x1d78c8(_0x1ccd13,_0x51d0ed,_0x4555ce){const _0x3d34cc=_0x1f66a3,{cornerView:_0x1b9230,rowView:_0x3915e8,colView:_0x30002a,pageView:_0x40cfa6}=_0x1ccd13,{row:_0x42b7d0,col:_0x895968}=_0x51d0ed;if(_0x4555ce)return{'rowCount':_0x2ddad4+_0x42b7d0,'colCount':_0xe151be+_0x895968};const _0x13acdf=_0x40cfa6[_0x3d34cc(0x280)]>-0x1?_0x40cfa6[_0x3d34cc(0x280)]+0x1:0x0,_0x4fb7d5=_0x40cfa6['lastCol']>-0x1?_0x40cfa6['lastCol']:0x0,_0x4ceb57=_0x42b7d0+_0x13acdf+(_0x13acdf?0x1:0x0)+_0x1b9230[_0x3d34cc(0x232)]+_0x3915e8['rowCount'],_0x53d327=_0x895968+_0x4fb7d5,_0x224c38=_0x895968+_0x1b9230[_0x3d34cc(0x40f)]+_0x30002a[_0x3d34cc(0x40f)],_0x1ef5ca=Math[_0x3d34cc(0x341)](_0x53d327,_0x224c38);return{'rowCount':_0x4ceb57,'colCount':_0x1ef5ca};}function _0x3c8c3a(_0x22ee52,_0x478e56,_0x399a2e,_0x310f72){const _0x43d057=_0x1f66a3,{row:_0x1d9460,col:_0x25988b,unitId:_0x5e0753,subUnitId:_0x3a5193}=_0x399a2e,_0x5aca90=_0x1d78c8(_0x478e56,{'row':_0x1d9460,'col':_0x25988b},_0x310f72),_0x2aa242=_0x22ee52['get'](_0x47953c[_0x43d057(0x364)]),_0x5293ba=_0x271f69[_0x43d057(0x4d4)](_0x2aa242,{'unitId':_0x5e0753,'subUnitId':_0x3a5193}),_0x395736=[],_0x1372ea=[];if(!_0x5293ba)return{'undos':_0x1372ea,'redos':_0x395736};const {worksheet:_0xfc4c29}=_0x5293ba,_0x3ec031=_0xfc4c29[_0x43d057(0x254)](),_0x165aac=_0xfc4c29[_0x43d057(0x1f3)]();return _0x3ec031<_0x5aca90[_0x43d057(0x232)]&&(_0x395736[_0x43d057(0x2b4)]({'id':_0x271f69[_0x43d057(0x4a4)]['id'],'params':{'unitId':_0x5e0753,'subUnitId':_0x3a5193,'range':{'startRow':_0x3ec031,'endRow':_0x5aca90[_0x43d057(0x232)]-0x1,'startColumn':0x0,'endColumn':_0x165aac-0x1}}}),_0x1372ea[_0x43d057(0x2b4)]({'id':_0x271f69[_0x43d057(0x30a)]['id'],'params':{'unitId':_0x5e0753,'subUnitId':_0x3a5193,'range':{'startRow':_0x3ec031,'endRow':_0x5aca90[_0x43d057(0x232)]-0x1,'startColumn':0x0,'endColumn':_0x165aac-0x1}}})),_0x165aac<_0x5aca90['colCount']&&(_0x395736['push']({'id':_0x271f69['InsertColMutation']['id'],'params':{'unitId':_0x5e0753,'subUnitId':_0x3a5193,'range':{'startRow':0x0,'endRow':_0x3ec031-0x1,'startColumn':_0x165aac,'endColumn':_0x5aca90[_0x43d057(0x40f)]-0x1}}}),_0x1372ea[_0x43d057(0x2b4)]({'id':_0x271f69[_0x43d057(0x343)]['id'],'params':{'unitId':_0x5e0753,'subUnitId':_0x3a5193,'range':{'startRow':0x0,'endRow':_0x3ec031-0x1,'startColumn':_0x165aac,'endColumn':_0x5aca90['colCount']-0x1}}})),{'undos':_0x1372ea,'redos':_0x395736};}function _0x1efbf9(_0x4abbf8){const _0x28a298=_0x1f66a3;let _0x11dae8=0x0;for(let _0x26f5b5=0x0;_0x26f5b5<_0x4abbf8[_0x28a298(0x217)];_0x26f5b5++){const _0x36f60f=_0x4abbf8[_0x28a298(0x1eb)](_0x26f5b5);_0x36f60f>=0x4e00&&_0x36f60f<=0x9fff||_0x36f60f>=0x3000&&_0x36f60f<=0x303f||_0x36f60f>=0xff00&&_0x36f60f<=0xffef?_0x11dae8+=0x2:_0x11dae8+=0x1;}return _0x11dae8;}function _0x708fca(_0x42f1d0,_0x50b940,_0x2c72fd,_0x242c79){const _0x31fd31=_0x1f66a3;var _0x56d4e3,_0x597d8c,_0xccfea0,_0x53ac4d;const {rowCount:_0x3daa01,colCount:_0x44ce5b,headerMap:_0x280b10}=_0x42f1d0,_0x242cf4=0x64,_0x49e501=Math[_0x31fd31(0x299)](_0x3daa01,_0x242cf4),_0x22f48c=Math['min'](_0x44ce5b,_0x242cf4);let _0x38d552='',_0x28111f=0x0;for(let _0x5eb0cc=0x0;_0x5eb0cc<_0x49e501;_0x5eb0cc++)for(let _0x2a5fce=0x0;_0x2a5fce<_0x22f48c;_0x2a5fce++){const _0x4d28e4={...(_0x597d8c=(_0x56d4e3=_0x42f1d0['data'])==null?void 0x0:_0x56d4e3[_0x5eb0cc])==null?void 0x0:_0x597d8c[_0x2a5fce]},_0x57fff9=(_0xccfea0=_0x280b10[_0x5eb0cc])==null?void 0x0:_0xccfea0['tableFieldId'],_0x31e597=_0x242c79[_0x57fff9];let _0x207ce7=_0x42f1d0['getValue'](_0x5eb0cc,_0x2a5fce);if(_0x4d28e4){const _0x4e3785=_0x2c72fd?_0x2a5fce===0x0&&((_0x53ac4d=_0x42f1d0[_0x31fd31(0x4de)](_0x2a5fce+0x1))==null?void 0x0:_0x53ac4d['isValue']):!0x1;_0x207ce7=_0x5bba38(_0x4d28e4,_0x4e3785,_0x31e597,_0x50b940);}if(_0x207ce7!==void 0x0){const _0x3c00bd=_0x1efbf9(String(_0x207ce7));_0x28111f<_0x3c00bd&&(_0x38d552=String(_0x207ce7),_0x28111f=_0x3c00bd);}}return _0x38d552;}function _0x487aa9(_0x379638){const _0x205b77=_0x1f66a3,{rowCount:_0x2ae4f8,colCount:_0x3f991c}=_0x379638;let _0x33ba38='',_0x59a0a6=0x0;for(let _0x40d3ba=_0x2ae4f8-0x1;_0x40d3ba>0x0&&_0x40d3ba>_0x2ae4f8-0x3;_0x40d3ba--)for(let _0x149598=0x0;_0x149598<_0x3f991c;_0x149598++){const _0x14cdf6=_0x379638[_0x205b77(0x325)](_0x40d3ba,_0x149598);if(_0x14cdf6!==void 0x0){const _0x1d1911=String(_0x14cdf6)[_0x205b77(0x217)];_0x59a0a6<_0x1d1911&&(_0x33ba38=String(_0x14cdf6),_0x59a0a6=_0x1d1911);}}return _0x33ba38;}function _0x40797b(_0x3ddd57){const _0x2af32b=_0x1f66a3,{rowCount:_0x4acc66,colCount:_0x289889}=_0x3ddd57;let _0x120400='',_0x45aefc=0x0;for(let _0x17f5ed=0x0;_0x17f5ed<_0x4acc66;_0x17f5ed++)for(let _0x18ef8e=0x0;_0x18ef8e<_0x289889;_0x18ef8e++){const _0x1d4f40=_0x3ddd57['getValue'](_0x17f5ed,_0x18ef8e);if(_0x1d4f40!==void 0x0){const _0x30a7b9=String(_0x1d4f40)[_0x2af32b(0x217)];_0x45aefc<_0x30a7b9&&(_0x120400=String(_0x1d4f40),_0x45aefc=_0x30a7b9);}}return _0x120400;}function _0x45ef85(_0x332e4f,_0x166d05){const _0x4c8c49=_0x1f66a3,{rowFields:_0x48a3f3,columnFields:_0x1e457d,valueFields:_0x8d3aac,filterFields:_0x2a12f9,dimension:_0x3ebe0b,measure:_0x2a8b03}=_0x166d05;for(const _0x4fd79a of _0x48a3f3){const _0x56ca91=_0x3ebe0b[_0x4fd79a];_0x56ca91&&_0x332e4f[_0x4c8c49(0x3ea)](_0x56ca91[_0x4c8c49(0x2dd)])&&(_0x332e4f[_0x4c8c49(0x471)](_0x56ca91[_0x4c8c49(0x2dd)],_0x454ae3[_0x4c8c49(0x3cf)]['Row'],void 0x0,_0x4fd79a),_0x56ca91[_0x4c8c49(0x4ce)]&&_0x332e4f[_0x4c8c49(0x250)](_0x56ca91['id'],_0x56ca91[_0x4c8c49(0x4ce)]),_0x56ca91['sortInfo']&&_0x332e4f[_0x4c8c49(0x326)](_0x56ca91['id'],_0x56ca91[_0x4c8c49(0x2ec)]),_0x56ca91[_0x4c8c49(0x2fd)]&&_0x332e4f[_0x4c8c49(0x38f)](_0x56ca91['id'],_0x56ca91[_0x4c8c49(0x2fd)]));}for(const _0x20d473 of _0x1e457d){const _0x1bcfe1=_0x3ebe0b[_0x20d473];_0x1bcfe1&&_0x332e4f[_0x4c8c49(0x3ea)](_0x1bcfe1[_0x4c8c49(0x2dd)])&&(_0x332e4f[_0x4c8c49(0x471)](_0x1bcfe1[_0x4c8c49(0x2dd)],_0x454ae3[_0x4c8c49(0x3cf)][_0x4c8c49(0x36c)],void 0x0,_0x20d473),_0x1bcfe1['sortInfo']&&_0x332e4f[_0x4c8c49(0x326)](_0x1bcfe1['id'],_0x1bcfe1[_0x4c8c49(0x2ec)]),_0x1bcfe1[_0x4c8c49(0x2fd)]&&_0x332e4f[_0x4c8c49(0x38f)](_0x1bcfe1['id'],_0x1bcfe1['filterInfo']),_0x1bcfe1['displayName']&&_0x332e4f[_0x4c8c49(0x250)](_0x1bcfe1['id'],_0x1bcfe1[_0x4c8c49(0x4ce)]));}for(const _0x302419 of _0x2a12f9){const _0x397d19=_0x3ebe0b[_0x302419];_0x397d19&&_0x332e4f[_0x4c8c49(0x3ea)](_0x397d19['dataFieldId'])&&(_0x332e4f['addFieldWithSourceId'](_0x397d19[_0x4c8c49(0x2dd)],_0x454ae3[_0x4c8c49(0x3cf)][_0x4c8c49(0x1ee)],void 0x0,_0x302419),_0x397d19['sortInfo']&&_0x332e4f['setSortInfo'](_0x397d19['id'],_0x397d19['sortInfo']),_0x397d19[_0x4c8c49(0x2fd)]&&_0x332e4f[_0x4c8c49(0x38f)](_0x397d19['id'],_0x397d19['filterInfo']),_0x397d19[_0x4c8c49(0x4ce)]&&_0x332e4f[_0x4c8c49(0x250)](_0x397d19['id'],_0x397d19[_0x4c8c49(0x4ce)]));}for(const _0x1d8c2a of _0x8d3aac){const _0xc34efc=_0x2a8b03[_0x1d8c2a];_0xc34efc&&_0x332e4f['getDataFieldByDataFieldId'](_0xc34efc[_0x4c8c49(0x2dd)])&&(_0x332e4f[_0x4c8c49(0x471)](_0xc34efc[_0x4c8c49(0x2dd)],_0x454ae3['PivotTableFiledAreaEnum'][_0x4c8c49(0x390)],void 0x0,_0x1d8c2a),_0xc34efc[_0x4c8c49(0x40b)]!==void 0x0&&_0x332e4f['setSubtotalType'](_0x1d8c2a,_0xc34efc[_0x4c8c49(0x40b)]),_0xc34efc[_0x4c8c49(0x2c9)]&&_0x332e4f[_0x4c8c49(0x20c)](_0x1d8c2a,_0xc34efc['format']),_0xc34efc['displayName']&&_0x332e4f[_0x4c8c49(0x250)](_0xc34efc['id'],_0xc34efc[_0x4c8c49(0x4ce)]));}const _0x2019b8=_0x166d05[_0x4c8c49(0x2da)];for(const {fieldId:_0xf8a91d,filterInfo:_0x58da17}of _0x2019b8)_0x332e4f[_0x4c8c49(0x427)](_0xf8a91d,_0x58da17);}function _0x1bf3a6(_0x5286f9,_0x47c094){const _0x829cda=_0x1f66a3,_0x4a53c6=[];_0x47c094===_0x454ae3['PivotTableFiledAreaEnum'][_0x829cda(0x358)]&&_0x5286f9['iterateFieldByArea'](_0x454ae3[_0x829cda(0x3cf)][_0x829cda(0x358)],_0x272553=>{const _0x42129d=_0x829cda;_0x4a53c6[_0x42129d(0x2b4)](_0x272553['getId']());}),_0x47c094===_0x454ae3['PivotTableFiledAreaEnum'][_0x829cda(0x36c)]&&_0x5286f9[_0x829cda(0x479)](_0x454ae3[_0x829cda(0x3cf)]['Column'],_0x19921e=>{const _0x6eed4c=_0x829cda;_0x4a53c6[_0x6eed4c(0x2b4)](_0x19921e['getId']());}),_0x47c094===_0x454ae3['PivotTableFiledAreaEnum'][_0x829cda(0x1ee)]&&_0x5286f9[_0x829cda(0x479)](_0x454ae3[_0x829cda(0x3cf)][_0x829cda(0x1ee)],_0x1c9115=>{const _0x44e575=_0x829cda;_0x4a53c6[_0x44e575(0x2b4)](_0x1c9115['getId']());}),_0x47c094===_0x454ae3[_0x829cda(0x3cf)][_0x829cda(0x390)]&&_0x5286f9[_0x829cda(0x479)](_0x454ae3['PivotTableFiledAreaEnum'][_0x829cda(0x390)],_0xdb3434=>{const _0x27afe4=_0x829cda;_0x4a53c6[_0x27afe4(0x2b4)](_0xdb3434['getId']());}),_0x47c094===void 0x0&&_0x5286f9[_0x829cda(0x34a)](_0x20f872=>{const _0x2252ec=_0x829cda;_0x4a53c6[_0x2252ec(0x2b4)](_0x20f872['getId']());});const _0x171458=_0x4a53c6[_0x829cda(0x217)];for(let _0x35acd1=_0x171458-0x1;_0x35acd1>=0x0;_0x35acd1--)_0x5286f9[_0x829cda(0x380)](_0x4a53c6[_0x35acd1]);const _0x2c9bca=_0x5286f9[_0x829cda(0x313)]();for(const _0x1c633d in _0x2c9bca)_0x5286f9[_0x829cda(0x21a)](_0x1c633d);}function _0x30812f(_0x5f258f,_0x53085b){const _0x483cfb=_0x1f66a3,_0x39464b=new Date(_0x454ae3[_0x483cfb(0x4b5)](_0x53085b)),_0x477456=new Date(_0x454ae3[_0x483cfb(0x4b5)](_0x5f258f)),_0x35c3b7=_0x39464b[_0x483cfb(0x397)](),_0x8ad6ac=_0x477456['getFullYear'](),_0x2c78f8=_0x39464b['getMonth'](),_0x2f4d8f=_0x477456[_0x483cfb(0x454)](),_0x27a840=_0x39464b[_0x483cfb(0x311)](),_0xdde30a=_0x477456['getDate'](),_0x3a1a4f=_0x35c3b7===_0x8ad6ac,_0x9c000f=_0x3a1a4f&&_0x2c78f8===_0x2f4d8f;return _0x3a1a4f&&_0x9c000f&&!(_0x9c000f&&_0x27a840===_0xdde30a)?_0x454ae3[_0x483cfb(0x3d5)][_0x483cfb(0x2bf)]:_0x3a1a4f&&!_0x9c000f?_0x454ae3['PivotDateGroupFieldDateTypeEnum'][_0x483cfb(0x288)]:_0x454ae3[_0x483cfb(0x3d5)][_0x483cfb(0x406)];}function _0x47b1d6(_0x1897f6,_0xad213f){const _0x17f0ef=_0x1f66a3,_0xeed8d8=_0x1897f6[_0x17f0ef(0x2ab)](_0x447ba5[_0x17f0ef(0x330)])[_0x17f0ef(0x22f)]();let _0x512bdf='';switch(_0xad213f){case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x2bf)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x2a8)];break;case _0x454ae3['PivotDateGroupFieldDateTypeEnum'][_0x17f0ef(0x288)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x47d)];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x406)]:_0x512bdf=_0xeed8d8['sheets-pivot.dateGroup.year'];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x3a0)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x308)];break;case _0x454ae3[_0x17f0ef(0x3d5)]['Quarter']:_0x512bdf=_0xeed8d8[_0x17f0ef(0x43f)];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x3e4)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x3bc)];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x34c)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x42e)];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x24b)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x34b)];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x42a)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x3f2)];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x2e6)]:_0x512bdf=_0xeed8d8['sheets-pivot.dateGroup.monthDate'];break;case _0x454ae3[_0x17f0ef(0x3d5)][_0x17f0ef(0x357)]:_0x512bdf=_0xeed8d8[_0x17f0ef(0x483)];break;default:_0x512bdf='';break;}return _0x512bdf;}const _0x2e0162=_0x1f66a3(0x26e),_0x457fa0={};var _0x305131=Object[_0x1f66a3(0x2e4)],_0x4707b5=(_0xd0dfd3,_0x19c0ce,_0x4af7d1,_0x33c913)=>{const _0x2fdc3d=_0x1f66a3;for(var _0x25bfc3=_0x33c913>0x1?void 0x0:_0x33c913?_0x305131(_0x19c0ce,_0x4af7d1):_0x19c0ce,_0x5c4059=_0xd0dfd3[_0x2fdc3d(0x217)]-0x1,_0x271f34;_0x5c4059>=0x0;_0x5c4059--)(_0x271f34=_0xd0dfd3[_0x5c4059])&&(_0x25bfc3=_0x271f34(_0x25bfc3)||_0x25bfc3);return _0x25bfc3;},_0x3db212=(_0x45231f,_0x28ba29)=>(_0x1c4741,_0x34a9b4)=>_0x28ba29(_0x1c4741,_0x34a9b4,_0x45231f);_0x447ba5['SheetsPivotTableConfigModel']=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x5b1e08,_0x457f38,_0x4d7a81,_0x14730d,_0x1f25ee){const _0xe68108=_0x1f66a3;super(),_0x3e3ba8(this,_0xe68108(0x279),new Map()),_0x3e3ba8(this,_0xe68108(0x269),new Map()),_0x3e3ba8(this,_0xe68108(0x2e8),new Map()),_0x3e3ba8(this,'_pivotTableMatrixInfo',new Map()),_0x3e3ba8(this,_0xe68108(0x2ff),new _0x21de06[(_0xe68108(0x3e6))]()),_0x3e3ba8(this,_0xe68108(0x451),new _0x21de06[(_0xe68108(0x3e6))]()),_0x3e3ba8(this,_0xe68108(0x3c8),this[_0xe68108(0x451)]['asObservable']()),_0x3e3ba8(this,_0xe68108(0x387),new _0x21de06[(_0xe68108(0x3e6))]()),_0x3e3ba8(this,_0xe68108(0x35d),this[_0xe68108(0x387)][_0xe68108(0x449)]()),_0x3e3ba8(this,_0xe68108(0x1e3),{}),_0x3e3ba8(this,_0xe68108(0x30c),this['_configVersion$']['asObservable']()),(this[_0xe68108(0x2b5)]=_0x5b1e08,this['_commandService']=_0x457f38,this['_univerInstanceService']=_0x4d7a81,this[_0xe68108(0x268)]=_0x14730d,this['_configService']=_0x1f25ee,this[_0xe68108(0x423)](),this[_0xe68108(0x4b1)]());const _0x54fff6=this[_0xe68108(0x209)][_0xe68108(0x353)](_0x2e0162);(_0x54fff6==null?void 0x0:_0x54fff6[_0xe68108(0x43a)])===!0x0&&this['_initSnapshot']();}['_initUnitDisposed'](){const _0x1bdf5a=_0x1f66a3;this[_0x1bdf5a(0x4e5)](this[_0x1bdf5a(0x489)][_0x1bdf5a(0x243)](_0x47953c['UniverInstanceType'][_0x1bdf5a(0x48b)])[_0x1bdf5a(0x1e4)](_0x191515=>{const _0x4a7ab2=_0x1bdf5a;this[_0x4a7ab2(0x4ad)](_0x191515[_0x4a7ab2(0x455)]());}));}[_0x1f66a3(0x4a3)](){const _0x5d7468=_0x1f66a3;this[_0x5d7468(0x451)][_0x5d7468(0x201)](!0x0);}[_0x1f66a3(0x423)](){const _0x353b41=_0x1f66a3,_0x492b19=_0x291e80(this['_injector'],_0x244528,'',{});this['_textInfo']=_0x492b19,this[_0x353b41(0x3c1)][_0x353b41(0x40a)](_0x92655e['id'],{'textInfo':_0x492b19},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x3689ca=_0x1f66a3;return this[_0x3689ca(0x1e3)];}[_0x1f66a3(0x43b)](_0x178047,_0x5bc7ef,_0x56292d,_0x30f970,_0xde3d90){const _0x35d1ee=_0x1f66a3;this['updatePivotTableMatrixInfo'](_0x178047,_0x5bc7ef,_0x56292d,_0x30f970),this[_0x35d1ee(0x215)](_0x178047,_0x5bc7ef,_0x56292d,_0xde3d90);}['getPivotTableConfig'](_0x383d07,_0x4421de,_0x3846f2){var _0x4410c6;const _0x213121=(_0x4410c6=this['_model']['get'](_0x383d07))==null?void 0x0:_0x4410c6['get'](_0x4421de);if(_0x213121)return _0x213121['get'](_0x3846f2);}[_0x1f66a3(0x2b9)](_0x2e9f14,_0x1d5477){const _0x57af88=_0x1f66a3,_0x14df32=this[_0x57af88(0x279)]['get'](_0x2e9f14);if(_0x14df32){for(const [_0x34e393,_0x47801b]of _0x14df32[_0x57af88(0x2d1)]())for(const [_0x5af2f6,_0xf4e13]of _0x47801b[_0x57af88(0x2d1)]())if(_0x5af2f6===_0x1d5477)return _0xf4e13['targetCellInfo'];}}[_0x1f66a3(0x3d4)](_0x167f84,_0x1a217f,_0x5f1587){const _0x1406c9=_0x1f66a3,_0xd7a53f=this[_0x1406c9(0x2ac)](_0x167f84,_0x1a217f,_0x5f1587);return _0xd7a53f==null?void 0x0:_0xd7a53f[_0x1406c9(0x38e)];}[_0x1f66a3(0x289)](_0x4da9fd,_0x511752){const _0x1ab959=_0x1f66a3;var _0x2c4a23;return(_0x2c4a23=this[_0x1ab959(0x279)][_0x1ab959(0x2ab)](_0x4da9fd))==null?void 0x0:_0x2c4a23[_0x1ab959(0x2ab)](_0x511752);}[_0x1f66a3(0x355)](_0x15a655,_0x345391,_0x47db1b,_0x4ba624){const _0x1cd7ec=_0x1f66a3,_0x1fadaa=this['_ensurePivotMap'](_0x15a655,_0x345391);_0x4ba624?_0x1fadaa[_0x1cd7ec(0x48f)](_0x47db1b,_0x4ba624):_0x1fadaa[_0x1cd7ec(0x481)](_0x47db1b),this[_0x1cd7ec(0x387)][_0x1cd7ec(0x201)]({'unitId':_0x15a655,'subUnitId':_0x345391,'pivotTableId':_0x47db1b,'pivotTableConfig':_0x4ba624});}[_0x1f66a3(0x4dd)](_0x459d00,_0x5735fd){const _0x317c5a=_0x1f66a3;var _0x19e72d;return(_0x19e72d=this[_0x317c5a(0x269)]['get'](_0x459d00))==null?void 0x0:_0x19e72d[_0x317c5a(0x340)][_0x5735fd];}['updateCollectionConfig'](_0x404fc0,_0x1ffe7c){const _0x3f02fa=_0x1f66a3;this[_0x3f02fa(0x269)]['set'](_0x404fc0,_0x1ffe7c),this[_0x3f02fa(0x2ff)][_0x3f02fa(0x201)](Math['random']());}[_0x1f66a3(0x394)](_0x2bd809,_0xd1d94d){const _0x1842f0=_0x1f66a3;let _0x33b2f2=this[_0x1842f0(0x279)][_0x1842f0(0x2ab)](_0x2bd809);_0x33b2f2||(_0x33b2f2=new Map(),this[_0x1842f0(0x279)]['set'](_0x2bd809,_0x33b2f2));let _0x3e3e44=_0x33b2f2['get'](_0xd1d94d);return _0x3e3e44||(_0x3e3e44=new Map(),_0x33b2f2['set'](_0xd1d94d,_0x3e3e44)),_0x3e3e44;}[_0x1f66a3(0x33c)](_0x5113a1,_0x3ecbe6){const _0x5624fd=_0x1f66a3;let _0x32cfcd=this[_0x5624fd(0x2e8)][_0x5624fd(0x2ab)](_0x5113a1);_0x32cfcd||(_0x32cfcd=new Map(),this['_pivotTableRangeInfo'][_0x5624fd(0x48f)](_0x5113a1,_0x32cfcd));let _0xf457d4=_0x32cfcd[_0x5624fd(0x2ab)](_0x3ecbe6);return _0xf457d4||(_0xf457d4=new Map(),_0x32cfcd['set'](_0x3ecbe6,_0xf457d4)),_0xf457d4;}['_ensurePivotTableMatrixInfo'](_0x11c130,_0x1b3f39){const _0x41bb92=_0x1f66a3;let _0x14b88a=this[_0x41bb92(0x29f)][_0x41bb92(0x2ab)](_0x11c130);_0x14b88a||(_0x14b88a=new Map(),this[_0x41bb92(0x29f)][_0x41bb92(0x48f)](_0x11c130,_0x14b88a));let _0xa6693e=_0x14b88a[_0x41bb92(0x2ab)](_0x1b3f39);return _0xa6693e||(_0xa6693e=new Map(),_0x14b88a[_0x41bb92(0x48f)](_0x1b3f39,_0xa6693e)),_0xa6693e;}['updatePivotTableRangeInfo'](_0xfec84b,_0x1c68dd,_0x442938,_0x1041c9){const _0x1397c9=_0x1f66a3;var _0x5e7907;const _0x1df34d=this[_0x1397c9(0x33c)](_0xfec84b,_0x1c68dd),_0x466e70=(_0x5e7907=_0x1df34d['get'](_0x442938))==null?void 0x0:_0x5e7907['oldRangeInfo'];_0x1df34d[_0x1397c9(0x48f)](_0x442938,{'oldRangeInfo':_0x466e70,'rangeInfo':_0x1041c9});}[_0x1f66a3(0x1d3)](_0x5efad0,_0x1d5589,_0x234c1f,_0x2e2f89){const _0x65320d=_0x1f66a3;var _0x4e031d;const _0x40b85c=this['_ensurePivotTableMatrixInfo'](_0x5efad0,_0x1d5589),_0x4dc14d=(_0x4e031d=_0x40b85c[_0x65320d(0x2ab)](_0x234c1f))==null?void 0x0:_0x4e031d['oldMatrix'];_0x40b85c[_0x65320d(0x48f)](_0x234c1f,{'oldMatrix':_0x4dc14d,'matrix':_0x2e2f89});}[_0x1f66a3(0x3ed)](_0x5568ef,_0x2b7298,_0x32dd17){const _0x26d607=_0x1f66a3;var _0x63fe6,_0x101aa4;return(_0x101aa4=(_0x63fe6=this['_pivotTableRangeInfo'][_0x26d607(0x2ab)](_0x5568ef))==null?void 0x0:_0x63fe6[_0x26d607(0x2ab)](_0x2b7298))==null?void 0x0:_0x101aa4[_0x26d607(0x2ab)](_0x32dd17);}[_0x1f66a3(0x4c7)](_0x50d094,_0x82257f,_0x58d657){const _0x2b1075=_0x1f66a3;var _0x3e8b76,_0x5b332d;return(_0x5b332d=(_0x3e8b76=this[_0x2b1075(0x29f)][_0x2b1075(0x2ab)](_0x50d094))==null?void 0x0:_0x3e8b76[_0x2b1075(0x2ab)](_0x82257f))==null?void 0x0:_0x5b332d['get'](_0x58d657);}[_0x1f66a3(0x4ad)](_0x4065a6){const _0xc3b5fb=_0x1f66a3;this[_0xc3b5fb(0x279)]['delete'](_0x4065a6),this[_0xc3b5fb(0x269)][_0xc3b5fb(0x481)](_0x4065a6);}[_0x1f66a3(0x4c6)](_0x161cfe){const _0x241b3d=_0x1f66a3,_0x2c4be1={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x241b3d(0x269)]['get'](_0x161cfe)&&(_0x2c4be1[_0x241b3d(0x4d0)][_0x161cfe]=this['_collectionConfigModel'][_0x241b3d(0x2ab)](_0x161cfe)),this[_0x241b3d(0x279)][_0x241b3d(0x2ab)](_0x161cfe)){_0x2c4be1[_0x241b3d(0x246)][_0x161cfe]={};const _0x4d9315=this[_0x241b3d(0x279)][_0x241b3d(0x2ab)](_0x161cfe);_0x4d9315!=null&&_0x4d9315[_0x241b3d(0x3aa)]&&[..._0x4d9315['keys']()][_0x241b3d(0x370)](_0x2da4e7=>{const _0x4bc279=_0x241b3d,_0x1b8ac1=_0x4d9315[_0x4bc279(0x2ab)](_0x2da4e7);_0x1b8ac1!=null&&_0x1b8ac1[_0x4bc279(0x3aa)]&&(_0x2c4be1['pivotTableConfigs'][_0x161cfe][_0x2da4e7]={},[..._0x1b8ac1['keys']()][_0x4bc279(0x370)](_0x382f1a=>{const _0x26cdb2=_0x4bc279,_0x513925=_0x1b8ac1['get'](_0x382f1a);_0x513925&&(_0x2c4be1[_0x26cdb2(0x246)][_0x161cfe][_0x2da4e7][_0x382f1a]=_0x513925);}));});}return _0x2c4be1;}['_initSnapshot'](){const _0x3cf01f=_0x1f66a3;this[_0x3cf01f(0x4e5)](this[_0x3cf01f(0x268)]['registerPluginResource']({'toJson':_0x595746=>JSON[_0x3cf01f(0x23c)](this[_0x3cf01f(0x4c6)](_0x595746)),'parseJson':_0x22479e=>({}),'businesses':[_0x47953c[_0x3cf01f(0x31a)][_0x3cf01f(0x48b)]],'pluginName':_0x548f94,'onLoad':(_0x1241c6,_0x5c8326)=>{},'onUnLoad':_0x425d55=>{const _0xb5eae9=_0x3cf01f;this[_0xb5eae9(0x4ad)](_0x425d55);}}));}},_0x447ba5['SheetsPivotTableConfigModel']=_0x4707b5([_0x3db212(0x0,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x27a)])),_0x3db212(0x1,_0x47953c['Inject'](_0x47953c['ICommandService'])),_0x3db212(0x2,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x364)])),_0x3db212(0x3,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x25d)])),_0x3db212(0x4,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x4bb)]))],_0x447ba5[_0x1f66a3(0x322)]);var _0x148df3=Object[_0x1f66a3(0x2e4)],_0x270698=(_0x2814d0,_0x54cf29,_0x515e5e,_0x56af9b)=>{const _0x2df84c=_0x1f66a3;for(var _0x384130=_0x56af9b>0x1?void 0x0:_0x56af9b?_0x148df3(_0x54cf29,_0x515e5e):_0x54cf29,_0x4afa92=_0x2814d0[_0x2df84c(0x217)]-0x1,_0x4541b9;_0x4afa92>=0x0;_0x4afa92--)(_0x4541b9=_0x2814d0[_0x4afa92])&&(_0x384130=_0x4541b9(_0x384130)||_0x384130);return _0x384130;},_0x23071d=(_0x3cd875,_0x30eda8)=>(_0x95a892,_0x45de7c)=>_0x30eda8(_0x95a892,_0x45de7c,_0x3cd875);_0x447ba5[_0x1f66a3(0x3e7)]=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x171068,_0x5ca08f,_0x2b7e79,_0x3705cb,_0x15a9eb){const _0x103b74=_0x1f66a3;super(),_0x3e3ba8(this,_0x103b74(0x2ce),new Map()),_0x3e3ba8(this,_0x103b74(0x490),new Map()),_0x3e3ba8(this,_0x103b74(0x430),new _0x21de06['Subject']()),_0x3e3ba8(this,_0x103b74(0x2f7),this['_markDirty$'][_0x103b74(0x449)]()),_0x3e3ba8(this,_0x103b74(0x460),new _0x21de06[(_0x103b74(0x3e6))]()),_0x3e3ba8(this,_0x103b74(0x1fd),this[_0x103b74(0x460)][_0x103b74(0x449)]()),_0x3e3ba8(this,_0x103b74(0x1e3)),(this['_localeService']=_0x171068,this[_0x103b74(0x2b5)]=_0x5ca08f,this['_sheetsPivotTableConfigModel']=_0x2b7e79,this[_0x103b74(0x489)]=_0x3705cb,this['_exclusiveRangeService']=_0x15a9eb,this[_0x103b74(0x423)](),this[_0x103b74(0x4b1)]());}[_0x1f66a3(0x4b1)](){const _0x394089=_0x1f66a3;this[_0x394089(0x4e5)](this[_0x394089(0x489)][_0x394089(0x243)](_0x47953c[_0x394089(0x31a)][_0x394089(0x48b)])[_0x394089(0x1e4)](_0x407404=>{this['deleteUnitId'](_0x407404['getUnitId']());}));}[_0x1f66a3(0x423)](){const _0x176279=_0x1f66a3;this[_0x176279(0x1e3)]=_0x291e80(this[_0x176279(0x2b5)],_0x244528,'',{});}[_0x1f66a3(0x419)](_0x20a63d){const _0x24d8f4=_0x1f66a3,{view:_0x2d372f,unitId:_0x175056,subUnitId:_0x2866b9,pivotTableId:_0x17ff73,type:_0x5bdebe}=_0x20a63d,_0x8af4b5=this[_0x24d8f4(0x39b)]['getPivotTableConfig'](_0x175056,_0x2866b9,_0x17ff73);if(!_0x2d372f||!_0x8af4b5||_0x5bdebe===_0x35ec99['Delete'])return;const {pageView:_0x547be8,cornerView:_0x3bc8f7,rowView:_0x2ca947,colView:_0x593b54,dataView:_0x132719}=_0x2d372f,_0x41ae34=_0x8af4b5[_0x24d8f4(0x38e)],_0x383b16=_0x8af4b5[_0x24d8f4(0x46c)],_0x5377e9=this['_ensurePivotItemRenderValueMatrixCache'](_0x175056,_0x2866b9),_0x53dce7=this['_ensurePivotItemRenderInfoCache'](_0x175056,_0x2866b9,_0x17ff73);if(_0x383b16)return this[_0x24d8f4(0x433)](_0x20a63d,_0x5377e9,_0x41ae34,_0x53dce7);{const _0x205093=_0x16e0b8(_0x41ae34,_0x547be8,!0x0),_0xb77052=_0x547be8[_0x24d8f4(0x280)]>=0x0?_0x547be8[_0x24d8f4(0x280)]+0x1:0x0,_0x447ac9=_0x3bc8f7['getRowCount'](),_0x7b89c3=_0x3bc8f7['getColCount'](),_0x328ffd=_0x205093[_0x24d8f4(0x217)]>0x0?_0x474d9e:0x0,_0x418ce1=_0x16e0b8({'row':_0x41ae34[_0x24d8f4(0x222)]+_0xb77052+_0x328ffd,'col':_0x41ae34[_0x24d8f4(0x411)]},_0x3bc8f7,!0x1,!0x1),_0x5c1531=_0x16e0b8({'row':_0x41ae34['row']+_0xb77052+_0x328ffd+_0x447ac9,'col':_0x41ae34[_0x24d8f4(0x411)]},_0x2ca947,!0x1,!0x0),_0x1aaa1a=_0x16e0b8({'row':_0x41ae34[_0x24d8f4(0x222)]+_0xb77052+_0x328ffd,'col':_0x41ae34[_0x24d8f4(0x411)]+_0x7b89c3},_0x593b54,!0x1,!0x0),_0x39d06a=_0x16e0b8({'row':_0x41ae34['row']+_0xb77052+_0x328ffd+_0x447ac9,'col':_0x41ae34['col']+_0x7b89c3},_0x132719,!0x1,!0x1);_0x53dce7['rangesInfo']={'rowRanges':_0x5c1531,'colRanges':_0x1aaa1a,'cornerRanges':_0x418ce1,'dataRanges':_0x39d06a,'pageRanges':_0x205093};const _0x4ec974=_0x3bda8d(this[_0x24d8f4(0x2b5)],_0x2d372f,_0x8af4b5,this['_textInfo']),{valueMatrix:_0x5514a5,rowInfo:_0x4f4c82,colInfo:_0x5420f2,cornerInfo:_0x3ba690,rowHeaderMap:_0x4ee33c,colHeaderMap:_0x354229}=_0x4ec974;return _0x53dce7['areaInfo']={'rowInfo':_0x4f4c82,'colInfo':_0x5420f2,'cornerInfo':_0x3ba690},_0x53dce7[_0x24d8f4(0x43d)]={'rowHeaderMap':_0x4ee33c,'colHeaderMap':_0x354229},_0x5514a5[_0x24d8f4(0x370)]((_0x38fa9a,_0x13d9d0)=>{const _0x3108ec=_0x24d8f4;Object[_0x3108ec(0x1d4)](_0x13d9d0)[_0x3108ec(0x370)](_0x43d9b4=>{const _0x1f46d8=_0x3108ec,_0x2349f1=+_0x43d9b4,_0x30616d=_0x5514a5[_0x1f46d8(0x325)](_0x38fa9a,_0x2349f1);_0x5377e9['setValue'](_0x38fa9a,_0x2349f1,_0x30616d);});}),this['_viewUpdate$'][_0x24d8f4(0x201)]({'unitId':_0x175056,'subUnitId':_0x2866b9,'valueMatrix':_0x5377e9,'rangesCache':_0x53dce7[_0x24d8f4(0x3cb)],'pivotTableId':_0x17ff73,'type':_0x20a63d[_0x24d8f4(0x210)]}),this['_sheetsPivotTableConfigModel'][_0x24d8f4(0x43b)](_0x175056,_0x2866b9,_0x17ff73,_0x5377e9,_0x53dce7[_0x24d8f4(0x3cb)]),this['_exclusiveRangeService'][_0x24d8f4(0x3fc)](_0x175056,_0x2866b9,_0x3fc29f,this[_0x24d8f4(0x459)](_0x53dce7[_0x24d8f4(0x3cb)],_0x17ff73)),{'rangeCache':_0x53dce7[_0x24d8f4(0x3cb)],'matrix':_0x5377e9};}}[_0x1f66a3(0x433)](_0x50f57a,_0x4d4039,_0x3c10d2,_0xe49e36){const _0x1b88c2=_0x1f66a3,_0x3fd35a=this[_0x1b88c2(0x440)]['t'],{unitId:_0x44bac3,subUnitId:_0x317e37,pivotTableId:_0x2a5d38}=_0x50f57a,_0x4ce5d0={'filter':_0x3fd35a(_0x1b88c2(0x235)),'row':_0x3fd35a(_0x1b88c2(0x466)),'column':_0x3fd35a(_0x1b88c2(0x35f)),'values':_0x3fd35a(_0x1b88c2(0x2c2))},{matrixCache:_0x5c8038,rangesCache:_0x5a6a8f}=_0x1675ab(_0x4ce5d0,_0x3c10d2);return _0x5c8038[_0x1b88c2(0x2c5)]((_0x10f8b9,_0x3f1560,_0xf1de70)=>{const _0x455806=_0x1b88c2;_0x4d4039[_0x455806(0x27f)](_0x10f8b9,_0x3f1560,_0xf1de70);}),_0xe49e36[_0x1b88c2(0x3cb)]=_0x5a6a8f,this[_0x1b88c2(0x460)]['next']({'unitId':_0x44bac3,'subUnitId':_0x317e37,'valueMatrix':_0x4d4039,'rangesCache':_0x5a6a8f,'pivotTableId':_0x2a5d38,'type':_0x50f57a['type'],'isEmpty':!0x0}),this[_0x1b88c2(0x39b)][_0x1b88c2(0x43b)](_0x44bac3,_0x317e37,_0x2a5d38,_0x4d4039,_0x5a6a8f),this[_0x1b88c2(0x1de)][_0x1b88c2(0x3fc)](_0x44bac3,_0x317e37,_0x3fc29f,this[_0x1b88c2(0x459)](_0x5a6a8f,_0x2a5d38)),{'rangeCache':_0xe49e36['rangesInfo'],'matrix':_0x4d4039};}['_createExclusiveRange'](_0x41396d,_0x585959){const _0xd71e60=[],_0x5e7a9d=_0x2600c7(_0x41396d);for(const _0xc76f1b of _0x5e7a9d)_0xd71e60['push']({'groupId':_0x585959,'range':_0xc76f1b});return _0xd71e60;}[_0x1f66a3(0x467)](_0xb2ccbe){const _0x309679=_0x1f66a3;var _0x3eaae0,_0x35754f,_0x18b901,_0xb166fe;const {pivotTableId:_0x3c4cbf,unitId:_0x121db5,subUnitId:_0x3320a2}=_0xb2ccbe;if(!_0x3c4cbf||!_0x121db5||!_0x3320a2)return;const _0x43f310=this['_ensurePivotItemRenderValueMatrixCache'](_0x121db5,_0x3320a2),_0x849ed9=(_0x35754f=(_0x3eaae0=this[_0x309679(0x2ce)]['get'](_0x121db5))==null?void 0x0:_0x3eaae0[_0x309679(0x2ab)](_0x3320a2))==null?void 0x0:_0x35754f[_0x309679(0x2ab)](_0x3c4cbf);if(_0x849ed9!=null&&_0x849ed9[_0x309679(0x3cb)]){for(const _0x3622ee of Object[_0x309679(0x1d4)](_0x849ed9[_0x309679(0x3cb)]))_0x849ed9[_0x309679(0x3cb)][_0x3622ee][_0x309679(0x370)](_0x53d4ae=>{const _0xdca27d=_0x309679;for(let _0x35b852=_0x53d4ae[_0xdca27d(0x404)];_0x35b852<=_0x53d4ae[_0xdca27d(0x443)];_0x35b852++)for(let _0x4e2fae=_0x53d4ae[_0xdca27d(0x2df)];_0x4e2fae<=_0x53d4ae[_0xdca27d(0x2b1)];_0x4e2fae++)_0x43f310[_0xdca27d(0x21c)](_0x35b852,_0x4e2fae);});}_0x849ed9&&((_0xb166fe=(_0x18b901=this[_0x309679(0x2ce)][_0x309679(0x2ab)](_0x121db5))==null?void 0x0:_0x18b901['get'](_0x3320a2))==null||_0xb166fe[_0x309679(0x481)](_0x3c4cbf)),this[_0x309679(0x460)][_0x309679(0x201)]({'unitId':_0x121db5,'subUnitId':_0x3320a2,'valueMatrix':_0x43f310,'pivotTableId':_0x3c4cbf,'rangesCache':void 0x0,'type':_0xb2ccbe[_0x309679(0x210)]}),this[_0x309679(0x1de)][_0x309679(0x2b6)](_0x121db5,_0x3320a2,_0x3fc29f,_0x3c4cbf);}[_0x1f66a3(0x3f4)](_0x374edc,_0x5ca075,_0x1cc83f){const _0x3a528e=_0x1f66a3;var _0x1ccfe2,_0x3783e1,_0x1a7c85,_0x2307da,_0x2e5688,_0x1015e6;return this['_pivotRenderInfoCache'][_0x3a528e(0x3a8)](_0x374edc)||this[_0x3a528e(0x2ce)][_0x3a528e(0x48f)](_0x374edc,new Map()),(_0x1ccfe2=this[_0x3a528e(0x2ce)][_0x3a528e(0x2ab)](_0x374edc))!=null&&_0x1ccfe2[_0x3a528e(0x3a8)](_0x5ca075)||(_0x3783e1=this[_0x3a528e(0x2ce)][_0x3a528e(0x2ab)](_0x374edc))==null||_0x3783e1[_0x3a528e(0x48f)](_0x5ca075,new Map()),(_0x2307da=(_0x1a7c85=this[_0x3a528e(0x2ce)][_0x3a528e(0x2ab)](_0x374edc))==null?void 0x0:_0x1a7c85['get'](_0x5ca075))!=null&&_0x2307da['has'](_0x1cc83f)||(_0x1015e6=(_0x2e5688=this['_pivotRenderInfoCache'][_0x3a528e(0x2ab)](_0x374edc))==null?void 0x0:_0x2e5688[_0x3a528e(0x2ab)](_0x5ca075))==null||_0x1015e6['set'](_0x1cc83f,{}),this[_0x3a528e(0x2ce)]['get'](_0x374edc)['get'](_0x5ca075)['get'](_0x1cc83f);}[_0x1f66a3(0x27e)](_0x3aeca3,_0x1d83f2){const _0x4c4e43=_0x1f66a3;var _0x149382,_0x415d1b;return this[_0x4c4e43(0x490)][_0x4c4e43(0x3a8)](_0x3aeca3)||this[_0x4c4e43(0x490)][_0x4c4e43(0x48f)](_0x3aeca3,new Map()),(_0x149382=this[_0x4c4e43(0x490)][_0x4c4e43(0x2ab)](_0x3aeca3))!=null&&_0x149382[_0x4c4e43(0x3a8)](_0x1d83f2)||(_0x415d1b=this['_pivotRenderValueMatrixCache'][_0x4c4e43(0x2ab)](_0x3aeca3))==null||_0x415d1b['set'](_0x1d83f2,new _0x47953c[(_0x4c4e43(0x1d1))]()),this[_0x4c4e43(0x490)]['get'](_0x3aeca3)[_0x4c4e43(0x2ab)](_0x1d83f2);}[_0x1f66a3(0x487)](_0x2b87a8,_0x11dcbe,_0x536017,_0x51e166){const _0xf369da=_0x1f66a3;var _0x21161f,_0x1566df;const _0x619334=(_0x1566df=(_0x21161f=this[_0xf369da(0x490)][_0xf369da(0x2ab)](_0x2b87a8))==null?void 0x0:_0x21161f[_0xf369da(0x2ab)](_0x11dcbe))==null?void 0x0:_0x1566df[_0xf369da(0x325)](_0x536017,_0x51e166);if(_0x619334!=null)return _0x619334;}[_0x1f66a3(0x22c)](_0x51d605,_0x32268a,_0x108945,_0x1db8ba){const _0x538b05=_0x1f66a3;var _0x1139ee;const _0x33a9da=_0x47953c['cellToRange'](_0x108945,_0x1db8ba),_0x2f754a=(_0x1139ee=this[_0x538b05(0x2ce)][_0x538b05(0x2ab)](_0x51d605))==null?void 0x0:_0x1139ee[_0x538b05(0x2ab)](_0x32268a);return _0x2f754a?Array['from'](_0x2f754a[_0x538b05(0x1d4)]())[_0x538b05(0x3a3)](_0x11e365=>{const _0x38b7d2=_0x538b05,_0x2d9aa5=_0x2f754a[_0x38b7d2(0x2ab)](_0x11e365),_0x1230e5=_0x2d9aa5==null?void 0x0:_0x2d9aa5['rangesInfo'];return _0x1230e5?Object[_0x38b7d2(0x1d4)](_0x1230e5)[_0x38b7d2(0x1ff)](_0x5de83e=>_0x1230e5[_0x5de83e][_0x38b7d2(0x1ff)](_0x4b58da=>_0x47953c[_0x38b7d2(0x24d)][_0x38b7d2(0x414)](_0x4b58da,_0x33a9da))):!0x1;}):void 0x0;}[_0x1f66a3(0x229)](_0x2cb13e,_0x1c1a47,_0x4dbb7f){const _0x5daee4=_0x1f66a3;var _0x316122;const _0x419da9=(_0x316122=this[_0x5daee4(0x2ce)][_0x5daee4(0x2ab)](_0x2cb13e))==null?void 0x0:_0x316122['get'](_0x1c1a47),_0x9fe244=[];return _0x419da9&&Array['from'](_0x419da9[_0x5daee4(0x1d4)]())[_0x5daee4(0x370)](_0x3c94e5=>{const _0x4e40c1=_0x5daee4,_0x1e9c62=_0x419da9[_0x4e40c1(0x2ab)](_0x3c94e5),_0x2ad705=_0x1e9c62==null?void 0x0:_0x1e9c62[_0x4e40c1(0x3cb)];if(_0x2ad705)for(const _0x271993 of Object[_0x4e40c1(0x31e)](_0x2ad705)){let _0x38f41e=!0x1;for(const _0x18b2f2 of _0x271993)if(_0x47953c['Rectangle'][_0x4e40c1(0x29c)](_0x18b2f2,_0x4dbb7f)){_0x9fe244['push'](_0x3c94e5),_0x38f41e=!0x0;break;}if(_0x38f41e)break;}}),_0x9fe244;}[_0x1f66a3(0x36a)](_0x5ebb67,_0x2e43ce){const _0x2f49ff=_0x1f66a3;var _0x5b0ef6,_0x3466e9;return(_0x3466e9=(_0x5b0ef6=this[_0x2f49ff(0x490)][_0x2f49ff(0x2ab)](_0x5ebb67))==null?void 0x0:_0x5b0ef6[_0x2f49ff(0x2ab)](_0x2e43ce))!=null?_0x3466e9:new _0x47953c[(_0x2f49ff(0x1d1))]();}['getSubUnitPivotRenderCache'](_0x3728d5,_0x4fc484){const _0x1f29b5=_0x1f66a3;var _0x898959;return(_0x898959=this[_0x1f29b5(0x2ce)][_0x1f29b5(0x2ab)](_0x3728d5))==null?void 0x0:_0x898959[_0x1f29b5(0x2ab)](_0x4fc484);}[_0x1f66a3(0x270)](_0x42872e,_0xb5cb81,_0x5b70d5){const _0x2bcd62=_0x1f66a3;var _0x2c1599,_0x4d758c;return(_0x4d758c=(_0x2c1599=this[_0x2bcd62(0x2ce)]['get'](_0x42872e))==null?void 0x0:_0x2c1599[_0x2bcd62(0x2ab)](_0xb5cb81))==null?void 0x0:_0x4d758c[_0x2bcd62(0x2ab)](_0x5b70d5);}[_0x1f66a3(0x4ad)](_0x41b955){const _0x30195c=_0x1f66a3;this[_0x30195c(0x2ce)]['delete'](_0x41b955),this['_pivotRenderValueMatrixCache']['delete'](_0x41b955);}[_0x1f66a3(0x3df)](_0x24ff8d,_0x4d9ba2){const _0x5d011c=_0x1f66a3;this[_0x5d011c(0x430)]['next']({'unitId':_0x24ff8d,'subUnitId':_0x4d9ba2});}},_0x447ba5[_0x1f66a3(0x3e7)]=_0x270698([_0x23071d(0x0,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x1f5)])),_0x23071d(0x1,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x27a)])),_0x23071d(0x2,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x322)])),_0x23071d(0x3,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x364)])),_0x23071d(0x4,_0x47953c['Inject'](_0x271f69[_0x1f66a3(0x234)]))],_0x447ba5[_0x1f66a3(0x3e7)]);var _0x2c378e=Object['getOwnPropertyDescriptor'],_0x4c0e54=(_0x30680c,_0xb71f2,_0x4d6a5f,_0xaf57c3)=>{for(var _0x499d58=_0xaf57c3>0x1?void 0x0:_0xaf57c3?_0x2c378e(_0xb71f2,_0x4d6a5f):_0xb71f2,_0x55dbb5=_0x30680c['length']-0x1,_0x1518c7;_0x55dbb5>=0x0;_0x55dbb5--)(_0x1518c7=_0x30680c[_0x55dbb5])&&(_0x499d58=_0x1518c7(_0x499d58)||_0x499d58);return _0x499d58;},_0x2e7e7d=(_0x39e7c1,_0x20c89b)=>(_0x52b875,_0x426d69)=>_0x20c89b(_0x52b875,_0x426d69,_0x39e7c1);_0x447ba5[_0x1f66a3(0x26a)]=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x543868,_0x111eed){const _0x7fc4b4=_0x1f66a3;super(),_0x3e3ba8(this,'asyncInterceptor',new _0x47953c[(_0x7fc4b4(0x28b))]({'PIVOT_PERFORM_CHECK':_0x20ba16})),_0x3e3ba8(this,_0x7fc4b4(0x297),new _0x47953c[(_0x7fc4b4(0x41c))]({'PIVOT_MUTATION_GENERATE':_0x37d52b})),(this[_0x7fc4b4(0x407)]=_0x543868,this[_0x7fc4b4(0x275)]=_0x111eed,this['_init']());}[_0x1f66a3(0x25f)](){this['_initViewModelBySheetInterceptor']();}[_0x1f66a3(0x49f)](_0x4803d9){const _0x411a65=_0x1f66a3;return this[_0x411a65(0x446)]['fetchThroughAsyncInterceptors'](_0x20ba16)(!0x1,_0x4803d9);}[_0x1f66a3(0x410)](){const _0xb911b5=_0x1f66a3;this[_0xb911b5(0x4e5)](this[_0xb911b5(0x407)]['intercept'](_0x271f69[_0xb911b5(0x258)]['CELL_CONTENT'],{'priority':0xc8,'effect':_0x47953c['InterceptorEffectEnum'][_0xb911b5(0x390)]|_0x47953c[_0xb911b5(0x373)][_0xb911b5(0x422)],'handler':(_0x33509e,_0xf0dfbe,_0x2b19fc)=>{const _0x118945=_0xb911b5,{row:_0x5103cf,col:_0x55e8d5,unitId:_0xfd0fc0,subUnitId:_0x3f4930,workbook:_0x2a97d5}=_0xf0dfbe,_0x39e38f=this[_0x118945(0x275)]['getPivotTableCellData'](_0xfd0fc0,_0x3f4930,_0x5103cf,_0x55e8d5);if(!_0x39e38f)return _0x2b19fc(_0x33509e);const _0x139008={..._0x33509e};(_0x39e38f['v']||_0x39e38f['v']===0x0)&&(_0x139008['v']=_0x39e38f['v']),_0x39e38f['t']&&(_0x139008['t']=_0x39e38f['t']);const _0x18a0dd=(typeof(_0x33509e==null?void 0x0:_0x33509e['s'])=='string'?_0x2a97d5[_0x118945(0x338)]()[_0x118945(0x2ab)](_0x33509e==null?void 0x0:_0x33509e['s']):_0x33509e==null?void 0x0:_0x33509e['s'])||{},_0x65e5a7=_0x2a97d5[_0x118945(0x338)]()[_0x118945(0x2ab)](_0x39e38f['s']),_0x3d6f13={..._0x65e5a7,..._0x18a0dd};_0x65e5a7!=null&&_0x65e5a7['n']&&(_0x3d6f13['n']=_0x65e5a7['n']);const _0x5ca54e=_0x2a97d5[_0x118945(0x338)]()[_0x118945(0x27f)](_0x3d6f13);return _0x139008['s']=_0x5ca54e,(_0x39e38f[_0x118945(0x4c8)]===_0x454ae3[_0x118945(0x424)][_0x118945(0x295)]||_0x39e38f[_0x118945(0x4c8)]===_0x454ae3[_0x118945(0x424)][_0x118945(0x34d)])&&(_0x139008[_0x118945(0x1fc)]={},_0x139008[_0x118945(0x1fc)]['leftOffset']=_0x1583cf),_0x2b19fc(_0x139008);}}));}},_0x447ba5[_0x1f66a3(0x26a)]=_0x4c0e54([_0x2e7e7d(0x0,_0x47953c['Inject'](_0x271f69[_0x1f66a3(0x396)])),_0x2e7e7d(0x1,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x3e7)]))],_0x447ba5[_0x1f66a3(0x26a)]);const _0xc70671={'id':_0x1f66a3(0x265),'type':_0x47953c[_0x1f66a3(0x2ee)]['MUTATION'],'handler':(_0x45b93e,_0x3cef53)=>{const _0x535eb0=_0x1f66a3;if(!_0x3cef53)return!0x1;if(!!_0x45b93e[_0x535eb0(0x2ab)](_0x47953c[_0x535eb0(0x4bb)])[_0x535eb0(0x353)](_0x1ff33b))return!0x0;const {pivotTableId:_0xcbce63,fieldJSON:_0x4eba01,unitId:_0x4cb9eb,subUnitId:_0x3f1e73}=_0x3cef53;let _0x1668e0;const {dataFieldType:_0x35f07e,id:_0x2af425,name:_0x261449,hexCode:_0x513940,originalFieldId:_0x4d2ed4}=_0x4eba01;if(_0x35f07e===_0x454ae3[_0x535eb0(0x26d)][_0x535eb0(0x30e)]&&(_0x1668e0=new _0x454ae3[(_0x535eb0(0x432))](_0x2af425,_0x261449,_0x513940,_0x4d2ed4)),!_0x1668e0)return!0x1;const _0x32530b=_0x45b93e[_0x535eb0(0x2ab)](_0x447ba5[_0x535eb0(0x330)]),_0x41d7c0=_0x32530b[_0x535eb0(0x3ca)](_0x4cb9eb),_0x5d272d=_0x41d7c0[_0x535eb0(0x4dd)](_0xcbce63);_0x41d7c0[_0x535eb0(0x247)](_0x1668e0),_0x5d272d[_0x535eb0(0x4c4)](_0x1668e0[_0x535eb0(0x4a7)](),_0x1668e0[_0x535eb0(0x484)]());const _0x345ebb=_0x5d272d['getFieldById'](_0x1668e0['getOriginFieldId']());_0x345ebb&&_0x1668e0[_0x535eb0(0x206)](_0x345ebb);const _0x5b9115=_0x32530b['getPivotTableConfig'](_0x4cb9eb,_0x3f1e73,_0xcbce63);return _0x32530b['addDirtyPivotTable']({'unitId':_0x4cb9eb,'subUnitId':_0x3f1e73,'token':_0xcbce63,'type':_0x35ec99[_0x535eb0(0x45a)],'pivotConfig':_0x5b9115}),!0x0;}},_0x1dd101={'id':_0x1f66a3(0x445),'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'handler':(_0x24a47a,_0xbb4475)=>{const _0x4684b0=_0x1f66a3;if(!_0xbb4475)return!0x1;if(!!_0x24a47a[_0x4684b0(0x2ab)](_0x47953c[_0x4684b0(0x4bb)])[_0x4684b0(0x353)](_0x1ff33b))return!0x0;const {pivotTableId:_0x55d797,dataFieldId:_0x4c70cf,unitId:_0x3a2229,subUnitId:_0x167e49}=_0xbb4475,_0x584d63=_0x24a47a['get'](_0x447ba5[_0x4684b0(0x330)]),_0x33bd41=_0x584d63['getDataFieldManager'](_0x3a2229);_0x33bd41[_0x4684b0(0x4dd)](_0x55d797)[_0x4684b0(0x482)](_0x4c70cf);let _0x17c0a4=!0x0;for(const _0x11fb99 in _0x33bd41[_0x4684b0(0x340)])if(_0x33bd41[_0x4684b0(0x340)][_0x11fb99][_0x4684b0(0x23d)]()[_0x4684b0(0x32e)](_0x4c70cf)){_0x17c0a4=!0x1;break;}_0x17c0a4&&_0x33bd41[_0x4684b0(0x4ba)](_0x4c70cf);const _0x35a605=_0x584d63[_0x4684b0(0x2ac)](_0x3a2229,_0x167e49,_0x55d797);return _0x584d63['addDirtyPivotTable']({'unitId':_0x3a2229,'subUnitId':_0x167e49,'token':_0x55d797,'type':_0x35ec99[_0x4684b0(0x45a)],'pivotConfig':_0x35a605}),!0x0;}};function _0x4d7089(_0x2c2b1a,_0x46e1da){const _0x3e5f9b=_0x1f66a3;switch(_0x46e1da){case _0x454ae3[_0x3e5f9b(0x3cf)][_0x3e5f9b(0x390)]:return _0x2c2b1a['valueFields'];case _0x454ae3[_0x3e5f9b(0x3cf)][_0x3e5f9b(0x1ee)]:return _0x2c2b1a[_0x3e5f9b(0x3ad)];case _0x454ae3[_0x3e5f9b(0x3cf)][_0x3e5f9b(0x358)]:return _0x2c2b1a[_0x3e5f9b(0x41d)];case _0x454ae3['PivotTableFiledAreaEnum'][_0x3e5f9b(0x36c)]:return _0x2c2b1a['columnFields'];default:return[];}}function _0xfd1cfd(_0xe39ade,_0x186035){const _0x56fbed=_0x1f66a3;return _0xe39ade['measure'][_0x186035]||_0xe39ade[_0x56fbed(0x434)][_0x186035];}function _0x56b3a6(_0x19164e,_0x324c7e){const _0x3d9479=_0x1f66a3,{area:_0x3d673c,fieldJson:_0x15a253,index:_0x2311dc}=_0x324c7e;_0x3d673c===_0x454ae3['PivotTableFiledAreaEnum'][_0x3d9479(0x390)]?_0x19164e[_0x3d9479(0x405)][_0x15a253['id']]=_0x15a253:_0x19164e[_0x3d9479(0x434)][_0x15a253['id']]=_0x15a253,_0x4d7089(_0x19164e,_0x3d673c)[_0x3d9479(0x44f)](_0x2311dc,0x0,_0x15a253['id']);}function _0x5d18ce(_0x1e612d,_0x137b47){const _0x5d78c1=_0x1f66a3,{area:_0xd8ead2,fieldId:_0x5eb78e,index:_0x395d19}=_0x137b47;_0xd8ead2===_0x454ae3[_0x5d78c1(0x3cf)][_0x5d78c1(0x390)]?delete _0x1e612d[_0x5d78c1(0x405)][_0x5eb78e]:delete _0x1e612d[_0x5d78c1(0x434)][_0x5eb78e],_0x4d7089(_0x1e612d,_0xd8ead2)[_0x5d78c1(0x44f)](_0x395d19,0x1);}function _0x220ffe(_0x4635bd,_0x270616){const {fieldId:_0x49cb3b,name:_0x583951}=_0x270616,_0x1462b9=_0xfd1cfd(_0x4635bd,_0x49cb3b);_0x1462b9&&(_0x1462b9['displayName']=_0x583951);}function _0x8704b3(_0x51169a,_0x388a5a){const _0x27f93a=_0x1f66a3,{fieldId:_0x5d657c,collapse:_0x11d6de,item:_0x508f46}=_0x388a5a;_0x508f46!==void 0x0?(_0x51169a[_0x27f93a(0x3a5)][_0x5d657c]=_0x51169a[_0x27f93a(0x3a5)][_0x5d657c]||{},_0x51169a[_0x27f93a(0x3a5)][_0x5d657c][_0x508f46]=_0x11d6de):_0x51169a[_0x27f93a(0x3a5)][_0x5d657c]=_0x11d6de;}function _0x4d4abc(_0x5165bb,_0x246fd4){const _0x187f98=_0x1f66a3,{fieldId:_0x15a78b,format:_0x3407e6}=_0x246fd4,_0x440210=_0xfd1cfd(_0x5165bb,_0x15a78b);_0x440210&&(_0x440210[_0x187f98(0x2c9)]=_0x3407e6);}function _0xaba2ab(_0x3d7b86,_0x4d748a){const {fieldId:_0x1fd560,filterInfo:_0x48cb22}=_0x4d748a,_0x4fb1c8=_0xfd1cfd(_0x3d7b86,_0x1fd560);_0x4fb1c8&&(_0x4fb1c8['filterInfo']=_0x48cb22);}function _0x16a9d1(_0x55692a,_0x2bb404){const _0x5c9c3a=_0x1f66a3,{fieldId:_0x520bc3,filterInfo:_0x1273ce}=_0x2bb404,_0x376acb=_0x55692a[_0x5c9c3a(0x2da)][_0x5c9c3a(0x4b0)](_0x2bbc44=>_0x2bbc44[_0x5c9c3a(0x350)]!==_0x520bc3);_0x1273ce&&_0x376acb[_0x5c9c3a(0x2b4)]({'fieldId':_0x520bc3,'filterInfo':_0x1273ce}),_0x55692a['valueFilter']=_0x376acb;}function _0x14b954(_0x4797b6,_0x3124de){const _0x5d70e0=_0x1f66a3,{fieldId:_0x49a0d3,subtotalType:_0x5b661d}=_0x3124de,_0x14ed12=_0xfd1cfd(_0x4797b6,_0x49a0d3);_0x14ed12&&(_0x14ed12[_0x5d70e0(0x40b)]=_0x5b661d);}function _0x550d0d(_0x2114cb,_0x14ddc5){const _0x45b88f=_0x1f66a3,{fieldId:_0x3cd962,oldArea:_0x1170a5,area:_0x3172d0,oldIndex:_0x5f6d70,index:_0xf6ac0}=_0x14ddc5,_0x3d9e75=_0x1170a5!==_0x454ae3[_0x45b88f(0x3cf)][_0x45b88f(0x390)]&&_0x3172d0===_0x454ae3[_0x45b88f(0x3cf)]['Value'],_0x51d0f3=_0x1170a5===_0x454ae3[_0x45b88f(0x3cf)]['Value']&&_0x3172d0!==_0x454ae3[_0x45b88f(0x3cf)][_0x45b88f(0x390)];if(_0x3d9e75||_0x51d0f3){const _0x4fc19b=_0xfd1cfd(_0x2114cb,_0x3cd962);_0x4fc19b&&(_0x3d9e75?(delete _0x2114cb[_0x45b88f(0x434)][_0x3cd962],_0x2114cb[_0x45b88f(0x405)][_0x3cd962]=_0x4fc19b):(delete _0x2114cb[_0x45b88f(0x405)][_0x3cd962],_0x2114cb['dimension'][_0x3cd962]=_0x4fc19b));}const _0x1ef26e=_0x4d7089(_0x2114cb,_0x1170a5),_0x53a7fe=_0x4d7089(_0x2114cb,_0x3172d0);_0x1ef26e[_0x45b88f(0x44f)](_0x5f6d70,0x1),_0x53a7fe[_0x45b88f(0x44f)](_0xf6ac0,0x0,_0x3cd962);}function _0x1d198c(_0x52162d,_0x16f914){const _0x6b0980=_0x1f66a3,{valuePosition:_0x3fae98,index:_0x3af7f5}=_0x16f914;_0x52162d[_0x6b0980(0x1cf)]=_0x3fae98,_0x52162d[_0x6b0980(0x4c0)]=_0x3af7f5;}function _0xe9f82b(_0x264f5f,_0x2783ec){const _0x200bb0=_0x1f66a3,{tableFieldId:_0x3369fa,sourceName:_0x2cb6af,dataFieldId:_0x2384e6}=_0x2783ec,_0x2b3005=_0xfd1cfd(_0x264f5f,_0x3369fa);_0x2b3005&&(_0x2b3005['sourceName']=_0x2cb6af,_0x2b3005[_0x200bb0(0x2dd)]=_0x2384e6);}function _0x1b2de5(_0x27ccab,_0x5e04d5){const _0x57e925=_0x1f66a3,{fieldId:_0x4e0eea,sortInfo:_0x4369c3}=_0x5e04d5,_0x466f7e=_0xfd1cfd(_0x27ccab,_0x4e0eea);_0x466f7e&&(_0x466f7e[_0x57e925(0x2ec)]=_0x4369c3);}function _0x4e5910(_0xd75e4b,_0x57fb85){const {options:_0x19fe8}=_0x57fb85;_0xd75e4b['options']={..._0xd75e4b['options'],..._0x19fe8};}const _0x4f1a8a={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.add-pivot-field','handler'(_0xafeeb1,_0x54600f){const _0x4f7321=_0x1f66a3;if(!_0x54600f)return!0x1;if(!!_0xafeeb1['get'](_0x47953c['IConfigService'])[_0x4f7321(0x353)](_0x1ff33b))return!0x0;const _0x36792f=_0xafeeb1[_0x4f7321(0x2ab)](_0x447ba5[_0x4f7321(0x330)]),{pivotTableId:_0x19a2cf,fieldJson:_0x58a3fb,area:_0x329bae,index:_0x21bf94,unitId:_0x3860c4,subUnitId:_0x5540b4}=_0x54600f,_0x53b68e=_0x36792f[_0x4f7321(0x37f)](_0x19a2cf);if(!_0x53b68e)return!0x1;let _0x22c09f;_0x329bae===_0x454ae3[_0x4f7321(0x3cf)]['Value']?_0x22c09f=_0x454ae3[_0x4f7321(0x347)](_0x58a3fb):_0x22c09f=_0x454ae3[_0x4f7321(0x1ea)](_0x58a3fb),_0x53b68e['addField'](_0x22c09f,_0x329bae,_0x21bf94);const _0x14fd2f=_0x36792f[_0x4f7321(0x3ba)](_0x3860c4,_0x5540b4,_0x19a2cf);_0x56b3a6(_0x14fd2f,_0x54600f);const _0x2f25ee=_0x36792f['getPivotTableConfig'](_0x3860c4,_0x5540b4,_0x19a2cf);return _0x36792f[_0x4f7321(0x3db)]({'unitId':_0x3860c4,'subUnitId':_0x5540b4,'token':_0x19a2cf,'type':_0x35ec99[_0x4f7321(0x45a)],'pivotConfig':_0x2f25ee}),!0x0;}},_0x26963b={'type':_0x47953c['CommandType'][_0x1f66a3(0x3fa)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x29219d,_0x6afa3b){const _0x46ad09=_0x1f66a3;if(!_0x6afa3b)return!0x1;if(!!_0x29219d[_0x46ad09(0x2ab)](_0x47953c['IConfigService'])['getConfig'](_0x1ff33b))return!0x0;const _0x4d65c7=_0x29219d[_0x46ad09(0x2ab)](_0x447ba5[_0x46ad09(0x330)]),{pivotTableId:_0x3e9e1f,fieldId:_0x842805,unitId:_0x3fb06b,subUnitId:_0x5a588b}=_0x6afa3b,_0x5e0cb6=_0x4d65c7[_0x46ad09(0x37f)](_0x3e9e1f);if(!_0x5e0cb6)return!0x1;_0x5e0cb6['removeField'](_0x842805);const _0x144e2d=_0x4d65c7[_0x46ad09(0x3ba)](_0x3fb06b,_0x5a588b,_0x3e9e1f);_0x5d18ce(_0x144e2d,_0x6afa3b);const _0x10a0b7=_0x4d65c7[_0x46ad09(0x2ac)](_0x3fb06b,_0x5a588b,_0x3e9e1f);return _0x4d65c7[_0x46ad09(0x3db)]({'unitId':_0x3fb06b,'subUnitId':_0x5a588b,'token':_0x3e9e1f,'type':_0x35ec99['Set'],'pivotConfig':_0x10a0b7}),!0x0;}},_0x25257d={'type':_0x47953c['CommandType'][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x4c5),'handler'(_0x5661f7,_0xae5bf6){const _0x480824=_0x1f66a3;if(!_0xae5bf6)return!0x1;if(!!_0x5661f7[_0x480824(0x2ab)](_0x47953c[_0x480824(0x4bb)])[_0x480824(0x353)](_0x1ff33b))return!0x0;const _0x293f64=_0x5661f7[_0x480824(0x2ab)](_0x447ba5[_0x480824(0x330)]),{unitId:_0x782996,subUnitId:_0x5bee7b,pivotTableId:_0x4efdab,fieldId:_0x5695b2,name:_0x4dc4ec}=_0xae5bf6,_0x87fac1=_0x293f64[_0x480824(0x37f)](_0x4efdab);if(!_0x87fac1)return!0x1;_0x87fac1['renameField'](_0x5695b2,_0x4dc4ec);const _0x544a1a=_0x293f64['getPivotTableModelConfig'](_0x782996,_0x5bee7b,_0x4efdab);return _0x220ffe(_0x544a1a,_0xae5bf6),_0x293f64[_0x480824(0x3db)]({'unitId':_0x782996,'subUnitId':_0x5bee7b,'token':_0x4efdab,'type':_0x35ec99['Set']}),!0x0;}},_0x5e5ba4={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x43c),'handler'(_0x44a66e,_0x21c8a0){const _0x52ef33=_0x1f66a3;if(!_0x21c8a0)return!0x1;if(!!_0x44a66e[_0x52ef33(0x2ab)](_0x47953c[_0x52ef33(0x4bb)])['getConfig'](_0x1ff33b))return!0x0;const _0x1f440d=_0x44a66e[_0x52ef33(0x2ab)](_0x447ba5['SheetsPivotDataSourceModel']),{unitId:_0x589c9c,subUnitId:_0x5f12e4,pivotTableId:_0x56490f,fieldId:_0x471573,collapse:_0x26c29d,item:_0x34ddff}=_0x21c8a0,_0x5b9347=_0x1f440d['getPivotTableInstance'](_0x56490f);if(!_0x5b9347)return!0x1;_0x5b9347[_0x52ef33(0x4a5)](_0x471573,_0x26c29d,_0x34ddff);const _0x14fdb2=_0x1f440d[_0x52ef33(0x3ba)](_0x589c9c,_0x5f12e4,_0x56490f);return _0x8704b3(_0x14fdb2,_0x21c8a0),_0x1f440d[_0x52ef33(0x3db)]({'unitId':_0x589c9c,'subUnitId':_0x5f12e4,'token':_0x56490f,'type':_0x35ec99['Set']}),!0x0;}},_0x4987ce={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x213),'handler'(_0x4b5457,_0x3b5735){const _0x479634=_0x1f66a3;if(!_0x3b5735)return!0x1;if(!!_0x4b5457['get'](_0x47953c['IConfigService'])[_0x479634(0x353)](_0x1ff33b))return!0x0;const _0x215e3e=_0x4b5457[_0x479634(0x2ab)](_0x447ba5['SheetsPivotDataSourceModel']),{unitId:_0x335c34,subUnitId:_0x32c35d,pivotTableId:_0xa6d675,fieldId:_0x334c45,format:_0x3f82db}=_0x3b5735,_0x508bc0=_0x215e3e['getPivotTableInstance'](_0xa6d675);if(!_0x508bc0)return!0x1;_0x508bc0[_0x479634(0x20c)](_0x334c45,_0x3f82db);const _0x493253=_0x215e3e[_0x479634(0x3ba)](_0x335c34,_0x32c35d,_0xa6d675);return _0x4d4abc(_0x493253,_0x3b5735),_0x215e3e[_0x479634(0x3db)]({'unitId':_0x335c34,'subUnitId':_0x32c35d,'token':_0xa6d675,'type':_0x35ec99['Set']}),!0x0;}},_0x3ec486={'type':_0x47953c[_0x1f66a3(0x2ee)]['MUTATION'],'id':_0x1f66a3(0x2bb),'handler'(_0x3db33f,_0x990fb0){const _0x378cfc=_0x1f66a3;if(!_0x990fb0)return!0x1;if(!!_0x3db33f['get'](_0x47953c[_0x378cfc(0x4bb)])[_0x378cfc(0x353)](_0x1ff33b))return!0x0;const _0x2ebeb6=_0x3db33f[_0x378cfc(0x2ab)](_0x447ba5[_0x378cfc(0x330)]),{unitId:_0x3b2a4a,subUnitId:_0x59eac6,pivotTableId:_0x1e9ea1,fieldId:_0x102b54,filterInfo:_0x42700b}=_0x990fb0,_0x42d0a1=_0x2ebeb6['getPivotTableInstance'](_0x1e9ea1);if(!_0x42d0a1)return!0x1;_0x42d0a1[_0x378cfc(0x38f)](_0x102b54,_0x42700b);const _0x36aacc=_0x2ebeb6['getPivotTableModelConfig'](_0x3b2a4a,_0x59eac6,_0x1e9ea1);return _0xaba2ab(_0x36aacc,_0x990fb0),_0x2ebeb6[_0x378cfc(0x3db)]({'unitId':_0x3b2a4a,'subUnitId':_0x59eac6,'token':_0x1e9ea1,'type':_0x35ec99[_0x378cfc(0x45a)]}),!0x0;}},_0x1835d4={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.set-pivot-option','handler'(_0x353a22,_0x102bb9){const _0x824b2d=_0x1f66a3;if(!_0x102bb9)return!0x1;if(!!_0x353a22[_0x824b2d(0x2ab)](_0x47953c[_0x824b2d(0x4bb)])[_0x824b2d(0x353)](_0x1ff33b))return!0x0;const _0x565a44=_0x353a22['get'](_0x447ba5[_0x824b2d(0x330)]),{unitId:_0x59b61a,subUnitId:_0x1114c7,pivotTableId:_0x11ff18,options:_0x12d922}=_0x102bb9,_0x399a59=_0x565a44[_0x824b2d(0x37f)](_0x11ff18);if(!_0x399a59)return!0x1;_0x399a59[_0x824b2d(0x27b)](_0x12d922);const _0x18e495=_0x565a44['getPivotTableModelConfig'](_0x59b61a,_0x1114c7,_0x11ff18);return _0x4e5910(_0x18e495,_0x102bb9),_0x565a44[_0x824b2d(0x3db)]({'unitId':_0x59b61a,'subUnitId':_0x1114c7,'token':_0x11ff18,'type':_0x35ec99[_0x824b2d(0x45a)]}),!0x0;}},_0x5b71c3={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x1d2),'handler'(_0xedfca1,_0x6f1b66){const _0x27a6d3=_0x1f66a3;if(!_0x6f1b66)return!0x1;if(!!_0xedfca1[_0x27a6d3(0x2ab)](_0x47953c[_0x27a6d3(0x4bb)])['getConfig'](_0x1ff33b))return!0x0;const _0x303bcc=_0xedfca1[_0x27a6d3(0x2ab)](_0x447ba5['SheetsPivotDataSourceModel']),{unitId:_0x2e59ab,subUnitId:_0x44da91,pivotTableId:_0x11d1a1,sortInfo:_0x5a06ef,fieldId:_0x33205b}=_0x6f1b66,_0x53df4b=_0x303bcc[_0x27a6d3(0x37f)](_0x11d1a1);if(!_0x53df4b)return!0x1;_0x53df4b[_0x27a6d3(0x326)](_0x33205b,_0x5a06ef);const _0x3dac64=_0x303bcc[_0x27a6d3(0x3ba)](_0x2e59ab,_0x44da91,_0x11d1a1);return _0x1b2de5(_0x3dac64,_0x6f1b66),_0x303bcc[_0x27a6d3(0x3db)]({'unitId':_0x2e59ab,'subUnitId':_0x44da91,'token':_0x11d1a1,'type':_0x35ec99[_0x27a6d3(0x45a)]}),!0x0;}},_0x303205={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x553106,_0x4e1036){const _0x59ce64=_0x1f66a3;if(!_0x4e1036)return!0x1;if(!!_0x553106['get'](_0x47953c[_0x59ce64(0x4bb)])['getConfig'](_0x1ff33b))return!0x0;const _0x5abc8f=_0x553106[_0x59ce64(0x2ab)](_0x447ba5[_0x59ce64(0x330)]),{unitId:_0x46c3e8,subUnitId:_0x2edaab,pivotTableId:_0x535e90,fieldId:_0x229b48,subtotalType:_0x2dd78a}=_0x4e1036,_0x5bd6fd=_0x5abc8f['getPivotTableInstance'](_0x535e90);if(!_0x5bd6fd)return!0x1;_0x5bd6fd['setSubtotalType'](_0x229b48,_0x2dd78a);const _0x2f42f8=_0x5abc8f[_0x59ce64(0x3ba)](_0x46c3e8,_0x2edaab,_0x535e90);return _0x14b954(_0x2f42f8,_0x4e1036),_0x5abc8f[_0x59ce64(0x3db)]({'unitId':_0x46c3e8,'subUnitId':_0x2edaab,'token':_0x535e90,'type':_0x35ec99[_0x59ce64(0x45a)]}),!0x0;}},_0x3f673f={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x1853e8,_0x2da0a6){const _0x389c86=_0x1f66a3;if(!_0x2da0a6)return!0x1;if(!!_0x1853e8[_0x389c86(0x2ab)](_0x47953c[_0x389c86(0x4bb)])[_0x389c86(0x353)](_0x1ff33b))return!0x0;const _0x3c8877=_0x1853e8[_0x389c86(0x2ab)](_0x447ba5[_0x389c86(0x330)]),{unitId:_0x2a330a,subUnitId:_0x4f04bb,pivotTableId:_0x5e5bb1,fieldId:_0x855e1c,filterInfo:_0x4a664f}=_0x2da0a6,_0x5bdfab=_0x3c8877[_0x389c86(0x37f)](_0x5e5bb1);if(!_0x5bdfab)return!0x1;_0x5bdfab[_0x389c86(0x427)](_0x855e1c,_0x4a664f);const _0x26c22e=_0x3c8877[_0x389c86(0x3ba)](_0x2a330a,_0x4f04bb,_0x5e5bb1);return _0x16a9d1(_0x26c22e,_0x2da0a6),_0x3c8877[_0x389c86(0x3db)]({'unitId':_0x2a330a,'subUnitId':_0x4f04bb,'token':_0x5e5bb1,'type':_0x35ec99[_0x389c86(0x45a)]}),!0x0;}},_0x25dd4f={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x41a),'handler'(_0x1ca595,_0x1cd984){const _0x48f268=_0x1f66a3;if(!_0x1cd984)return!0x1;if(!!_0x1ca595['get'](_0x47953c[_0x48f268(0x4bb)])[_0x48f268(0x353)](_0x1ff33b))return!0x0;const _0x358095=_0x1ca595['get'](_0x447ba5['SheetsPivotDataSourceModel']),{unitId:_0x2bba5a,subUnitId:_0xf9a25b,pivotTableId:_0x4af9a6,area:_0x9cfb4f,index:_0x2798d0,fieldId:_0x4f6786}=_0x1cd984,_0x42e6e4=_0x358095['getPivotTableInstance'](_0x4af9a6);if(!_0x42e6e4)return!0x1;_0x42e6e4[_0x48f268(0x2aa)](_0x4f6786,_0x9cfb4f,_0x2798d0);const _0x198cb2=_0x358095['getPivotTableModelConfig'](_0x2bba5a,_0xf9a25b,_0x4af9a6);return _0x550d0d(_0x198cb2,_0x1cd984),_0x358095[_0x48f268(0x3db)]({'unitId':_0x2bba5a,'subUnitId':_0xf9a25b,'token':_0x4af9a6,'type':_0x35ec99['Set']}),!0x0;}},_0x5f159a={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x42c),'handler'(_0x261c01,_0x50f1f4){const _0x599dbc=_0x1f66a3;if(!_0x50f1f4)return!0x1;if(!!_0x261c01[_0x599dbc(0x2ab)](_0x47953c['IConfigService'])[_0x599dbc(0x353)](_0x1ff33b))return!0x0;const _0x16403c=_0x261c01[_0x599dbc(0x2ab)](_0x447ba5[_0x599dbc(0x330)]),{unitId:_0x1780a2,subUnitId:_0x275e00,pivotTableId:_0x35903a,sourceName:_0x16d9c0,dataFieldId:_0x336f2c,tableFieldId:_0x9af6a0}=_0x50f1f4,_0x5d1e37=_0x16403c['getPivotTableInstance'](_0x35903a);if(!_0x5d1e37)return!0x1;_0x5d1e37[_0x599dbc(0x48c)](_0x9af6a0,_0x16d9c0,_0x336f2c);const _0x8dadff=_0x16403c['getPivotTableModelConfig'](_0x1780a2,_0x275e00,_0x35903a);return _0xe9f82b(_0x8dadff,_0x50f1f4),_0x16403c[_0x599dbc(0x3db)]({'unitId':_0x1780a2,'subUnitId':_0x275e00,'token':_0x35903a,'type':_0x35ec99[_0x599dbc(0x45a)]}),!0x0;}},_0x21bf1d={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x3b1),'handler'(_0x44313e,_0x2eb84c){const _0x3c333b=_0x1f66a3;if(!_0x2eb84c)return!0x1;if(!!_0x44313e[_0x3c333b(0x2ab)](_0x47953c[_0x3c333b(0x4bb)])[_0x3c333b(0x353)](_0x1ff33b))return!0x0;const _0x43e6ff=_0x44313e[_0x3c333b(0x2ab)](_0x447ba5[_0x3c333b(0x330)]),{unitId:_0x2b9fb1,subUnitId:_0x12d064,pivotTableId:_0x1c1966,valuePosition:_0xcfc33d,index:_0x1888e1}=_0x2eb84c,_0x874b5c=_0x43e6ff[_0x3c333b(0x37f)](_0x1c1966);if(!_0x874b5c)return!0x1;_0x874b5c[_0x3c333b(0x4aa)](_0xcfc33d,_0x1888e1);const _0x1f2e6c=_0x43e6ff[_0x3c333b(0x3ba)](_0x2b9fb1,_0x12d064,_0x1c1966);return _0x1d198c(_0x1f2e6c,_0x2eb84c),_0x43e6ff[_0x3c333b(0x3db)]({'unitId':_0x2b9fb1,'subUnitId':_0x12d064,'token':_0x1c1966,'type':_0x35ec99[_0x3c333b(0x45a)]}),!0x0;}};function _0x430022(_0x1a2087,_0x27d76e,_0x4f65cb){const _0x368ced=_0x1f66a3,{pivotTableId:_0x125cd6,unitId:_0x2c8607,subUnitId:_0x7772b2}=_0x27d76e,_0x3dbee1=[],_0xc9c5be=[];for(const _0x54cfbf of _0x4f65cb)switch(_0x54cfbf[_0x368ced(0x210)]){case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x486)]:{const {fieldJson:_0x67591c,area:_0x4a72b8,index:_0x2f0cc6}=_0x54cfbf,_0x35a1d5={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldJson':_0x67591c,'area':_0x4a72b8,'index':_0x2f0cc6},_0x2701bf={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x67591c['id'],'area':_0x4a72b8,'index':_0x2f0cc6};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x4f1a8a['id'],'params':_0x35a1d5}),_0xc9c5be[_0x368ced(0x476)]({'id':_0x26963b['id'],'params':_0x2701bf});}break;case _0x454ae3['PivotTableChangeTypeEnum']['SetSubtotalType']:{const {fieldId:_0x195efe,newSubtotalType:_0xaddf56,oldSubtotalType:_0x28aac5}=_0x54cfbf,_0x179392={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x195efe,'subtotalType':_0xaddf56};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x303205['id'],'params':_0x179392});const _0x5bd29a={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x195efe,'subtotalType':_0x28aac5};_0xc9c5be[_0x368ced(0x476)]({'id':_0x303205['id'],'params':_0x5bd29a});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x365)]:{const {fieldId:_0x205aa5,fieldJson:_0x54364b,area:_0xd9bcfb,index:_0x2d9279}=_0x54cfbf,_0x47c7af={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x205aa5,'index':_0x2d9279,'area':_0xd9bcfb};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x26963b['id'],'params':_0x47c7af});const _0x25f583={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldJson':_0x54364b,'area':_0xd9bcfb,'index':_0x2d9279};_0xc9c5be['unshift']({'id':_0x4f1a8a['id'],'params':_0x25f583});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x3da)]:{const {fieldId:_0x3d6f4a,oldName:_0x1fbc71,newName:_0x1ae40d}=_0x54cfbf,_0x39a2d2={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x3d6f4a,'name':_0x1ae40d};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x25257d['id'],'params':_0x39a2d2});const _0x497341={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x3d6f4a,'name':_0x1fbc71};_0xc9c5be['unshift']({'id':_0x25257d['id'],'params':_0x497341});}break;case _0x454ae3['PivotTableChangeTypeEnum']['SetFilterInfo']:{const {fieldId:_0x1bf534,oldFilterInfo:_0x1a7444,newFilterInfo:_0x582bae}=_0x54cfbf,_0x5939d3={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x1bf534,'filterInfo':_0x582bae};_0x3dbee1['push']({'id':_0x3ec486['id'],'params':_0x5939d3});const _0x108ad7={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x1bf534,'filterInfo':_0x1a7444};_0xc9c5be[_0x368ced(0x476)]({'id':_0x3ec486['id'],'params':_0x108ad7});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x292)]:{const {fieldId:_0x24aeda,oldSortInfo:_0xc82ffa,newSortInfo:_0x3ef8e0}=_0x54cfbf,_0x4a090b={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x24aeda,'sortInfo':_0x3ef8e0};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x5b71c3['id'],'params':_0x4a090b});const _0x56c079={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x24aeda,'sortInfo':_0xc82ffa};_0xc9c5be[_0x368ced(0x476)]({'id':_0x5b71c3['id'],'params':_0x56c079});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x3f8)]:{const {oldOptions:_0x2e64ef,newOptions:_0x2130d9}=_0x54cfbf,_0x2f427b={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'options':_0x2130d9};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x1835d4['id'],'params':_0x2f427b});const _0x3e7a88={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'options':_0x2e64ef};_0xc9c5be[_0x368ced(0x476)]({'id':_0x1835d4['id'],'params':_0x3e7a88});}break;case _0x454ae3['PivotTableChangeTypeEnum'][_0x368ced(0x294)]:{const {oldArea:_0x4efad8,newArea:_0x4616c7,oldIndex:_0x2e7c44,newIndex:_0x1f8bbe,fieldId:_0x29df81}=_0x54cfbf,_0x251f30={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x29df81,'area':_0x4616c7,'index':_0x1f8bbe,'oldArea':_0x4efad8,'oldIndex':_0x2e7c44};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x25dd4f['id'],'params':_0x251f30});const _0x4a40ac={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x29df81,'area':_0x4efad8,'index':_0x2e7c44,'oldArea':_0x4616c7,'oldIndex':_0x1f8bbe};_0xc9c5be['unshift']({'id':_0x25dd4f['id'],'params':_0x4a40ac});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x3b7)]:{const {oldValuePosition:_0x5b8fc0,newValuePosition:_0x49565c,oldIndex:_0x2793aa,newIndex:_0x4fec28}=_0x54cfbf,_0x3cae83={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'valuePosition':_0x49565c,'index':_0x4fec28};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x21bf1d['id'],'params':_0x3cae83});const _0x17f6f6={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'valuePosition':_0x5b8fc0,'index':_0x2793aa};_0xc9c5be[_0x368ced(0x476)]({'id':_0x21bf1d['id'],'params':_0x17f6f6});}break;case _0x454ae3['PivotTableChangeTypeEnum'][_0x368ced(0x400)]:{const {fieldId:_0xd264d6,collapse:_0x331bef,item:_0x280895}=_0x54cfbf,_0x851b3f={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0xd264d6,'collapse':_0x331bef,'item':_0x280895};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x5e5ba4['id'],'params':_0x851b3f});const _0x4aaa5f={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0xd264d6,'collapse':!_0x331bef,'item':_0x280895};_0xc9c5be[_0x368ced(0x476)]({'id':_0x5e5ba4['id'],'params':_0x4aaa5f});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x461)]:{const {newFormat:_0x2f6c4d,oldFormat:_0x5f4f73,fieldId:_0x5f0a9d}=_0x54cfbf,_0x4771b4={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x5f0a9d,'format':_0x2f6c4d};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x4987ce['id'],'params':_0x4771b4});const _0x451f1a={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x5f0a9d,'format':_0x5f4f73};_0xc9c5be[_0x368ced(0x476)]({'id':_0x4987ce['id'],'params':_0x451f1a});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x412)]:{const {tableFieldId:_0x5df71b,oldSourceName:_0x5f4e6b,newSourceName:_0x2bbf75,oldDataFieldId:_0x39db21,newDataFieldId:_0xc6cc6a}=_0x54cfbf,_0x30d5d4={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'tableFieldId':_0x5df71b,'sourceName':_0x2bbf75,'dataFieldId':_0xc6cc6a};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x5f159a['id'],'params':_0x30d5d4});const _0x40c42={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'tableFieldId':_0x5df71b,'sourceName':_0x5f4e6b,'dataFieldId':_0x39db21};_0xc9c5be[_0x368ced(0x476)]({'id':_0x5f159a['id'],'params':_0x40c42});}break;case _0x454ae3[_0x368ced(0x32c)][_0x368ced(0x2f3)]:{const {fieldId:_0x31d4f9,filterInfo:_0x41a2ef,oldFilterInfo:_0x3e9710}=_0x54cfbf,_0x4b2b96={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x31d4f9,'filterInfo':_0x41a2ef};_0x3dbee1[_0x368ced(0x2b4)]({'id':_0x3f673f['id'],'params':_0x4b2b96});const _0x307a6e={'unitId':_0x2c8607,'subUnitId':_0x7772b2,'pivotTableId':_0x125cd6,'fieldId':_0x31d4f9,'filterInfo':_0x3e9710};_0xc9c5be['unshift']({'id':_0x3f673f['id'],'params':_0x307a6e});}}return{'redos':_0x3dbee1,'undos':_0xc9c5be};}function _0xf44bfb(_0x4f8518,_0x4e8bb0){const _0x56f49e=_0x1f66a3;var _0x17708a;const _0x4cbcb7=_0x4f8518[_0x56f49e(0x2ab)](_0x447ba5['SheetsPivotTableService']),{cellInfo:_0x411874,view:_0x1c48ad,isEmpty:_0x40b3c1}=_0x4e8bb0;return(_0x17708a=_0x4cbcb7[_0x56f49e(0x297)][_0x56f49e(0x28f)](_0x37d52b)(_0xd46e01,{'cellInfo':_0x411874,'view':_0x1c48ad,'isEmpty':_0x40b3c1}))!=null?_0x17708a:_0xd46e01;}const _0x1a2676={'type':_0x47953c['CommandType'][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x3b8),async 'handler'(_0xdca1e,_0xf90a6){const _0x3d4ca7=_0x1f66a3;if(!_0xf90a6)return!0x1;const _0x372c3b=_0xdca1e['get'](_0x47953c[_0x3d4ca7(0x249)]),_0x186980=_0xdca1e['get'](_0x447ba5['SheetsPivotRPCService']),_0x18a4a9=_0xdca1e[_0x3d4ca7(0x2ab)](_0x47953c[_0x3d4ca7(0x293)]),{pivotTableId:_0x39a59c,dataFieldId:_0x1ed22a,fieldArea:_0x5e79bf,index:_0x1614b0,unitId:_0x5f1a0c,subUnitId:_0x21e29e}=_0xf90a6,_0x14cdea=(await _0x186980[_0x3d4ca7(0x3ac)]({'unitId':_0x5f1a0c,'subUnitId':_0x21e29e,'pivotTableId':_0x39a59c,'params':{'type':_0x1e1e2c['AddPivotField'],'addPivotField':{'dataFieldId':_0x1ed22a,'fieldArea':_0x5e79bf,'index':_0x1614b0}}}))[_0x3d4ca7(0x3bd)][_0x3d4ca7(0x2d2)];if(!_0x14cdea)return!0x1;const {view:_0x3e0deb,changesets:_0x18685c,isEmpty:_0x19cbc8,pivotTableConfig:_0x39857a,shouldBeAddedGroupJSON:_0x40eab4}=_0x14cdea,_0x5c476b=_0x39857a[_0x3d4ca7(0x38e)],_0x2de0b7=new _0x454ae3[(_0x3d4ca7(0x1e2))]();_0x2de0b7['formJSON'](_0x3e0deb);const _0x4aa361={'cellInfo':_0x5c476b,'view':_0x2de0b7,'isEmpty':_0x19cbc8};if(!await _0xdca1e[_0x3d4ca7(0x2ab)](_0x447ba5[_0x3d4ca7(0x26a)])[_0x3d4ca7(0x446)][_0x3d4ca7(0x240)](_0x20ba16)(!0x0,_0x4aa361))return!0x1;const _0x5f1f47=_0x3c8c3a(_0xdca1e,_0x2de0b7,_0x5c476b,_0x19cbc8),_0x441c1b=_0xf44bfb(_0xdca1e,_0x4aa361),{undos:_0x154716,redos:_0x50983e}=_0x430022(_0x372c3b,{'pivotTableId':_0x39a59c,'unitId':_0x5f1a0c,'subUnitId':_0x21e29e},_0x18685c);return _0x40eab4&&(_0x50983e[_0x3d4ca7(0x476)]({'id':_0xc70671['id'],'params':{'pivotTableId':_0x39a59c,'fieldJSON':_0x40eab4,'unitId':_0x5f1a0c,'subUnitId':_0x21e29e}}),_0x154716[_0x3d4ca7(0x2b4)]({'id':_0x1dd101['id'],'params':{'pivotTableId':_0x39a59c,'dataFieldId':_0x40eab4['id'],'unitId':_0x5f1a0c,'subUnitId':_0x21e29e}})),_0x47953c['sequenceExecute']([..._0x5f1f47[_0x3d4ca7(0x398)],..._0x441c1b[_0x3d4ca7(0x398)],..._0x50983e],_0x372c3b),_0x18a4a9[_0x3d4ca7(0x3cd)]({'unitID':_0x5f1a0c,'redoMutations':[..._0x5f1f47[_0x3d4ca7(0x398)],..._0x441c1b[_0x3d4ca7(0x398)],..._0x50983e],'undoMutations':[..._0x5f1f47['undos'],..._0x441c1b[_0x3d4ca7(0x41e)],..._0x154716]}),!0x0;}},_0xca6b1d=()=>typeof process<'u'&&process[_0x1f66a3(0x480)]!=null&&process['versions'][_0x1f66a3(0x41f)]!=null,_0x2d3644={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.add-pivot-table','handler'(_0x3a8c2c,_0x4258e8){const _0x32dd66=_0x1f66a3;var _0x3f1953;if(!_0x4258e8)return!0x1;const _0xf35f18=_0x3a8c2c[_0x32dd66(0x2ab)](_0x47953c[_0x32dd66(0x4bb)]);if(!!_0xf35f18[_0x32dd66(0x353)](_0x1ff33b))return!0x0;const _0x1769d6=_0x3a8c2c[_0x32dd66(0x2ab)](_0x47953c[_0x32dd66(0x364)]),_0x47d716=_0x3a8c2c[_0x32dd66(0x2ab)](_0x447ba5[_0x32dd66(0x330)]),{pivotTableId:_0x25a26e,pivotTableConfig:_0x3592e2,collectionConfig:_0x1bcb09,unitId:_0x2f0394,subUnitId:_0x194305}=_0x4258e8,{sourceRangeInfo:_0xcc63ce,fieldsConfig:_0x3db2df,targetCellInfo:_0x27c672}=_0x3592e2,_0x5bce52=_0x1769d6[_0x32dd66(0x2e0)](_0x2f0394);if(!_0x5bce52||!_0x5bce52[_0x32dd66(0x49b)](_0x194305))return!0x1;if(!_0xca6b1d()){let _0x9c2ea3=0x0;_0x5bce52[_0x32dd66(0x253)]()['forEach'](_0x2eab55=>{const _0x3e57f4=_0x32dd66;var _0x2be05d,_0x4b0a3f;_0x9c2ea3+=(_0x4b0a3f=(_0x2be05d=_0x47d716[_0x3e57f4(0x289)](_0x2f0394,_0x2eab55[_0x3e57f4(0x499)]()))==null?void 0x0:_0x2be05d['size'])!=null?_0x4b0a3f:0x0;});const _0x50afe7=(_0x3f1953=_0xf35f18[_0x32dd66(0x353)](_0xeb4f2b['LS_CONFIG_KEY']))!=null?_0x3f1953:{},{ls:_0x282ea9,pbk:_0x118011}=_0x50afe7;if(!_0x1ed697(_0x282ea9,_0x118011))throw new _0x47953c[(_0x32dd66(0x28e))](_0x32dd66(0x2c7));const _0x407cfc=_0x4c1091(_0xd2c7ac,_0x282ea9,_0x118011)[_0x32dd66(0x39e)];if(_0x9c2ea3>=_0x407cfc)throw new _0x47953c['CustomCommandExecutionError'](_0x32dd66(0x2c7));}if(!_0x1bcb09||!_0x3db2df)return!0x1;const {collection:_0x4b3c10,updateDataFieldList:_0x4dcf44}=_0x47d716['addCollectionByJSON'](_0x25a26e,_0x1bcb09,_0xcc63ce,_0x27c672);_0x47d716[_0x32dd66(0x31d)](_0x4b3c10,_0x4dcf44,_0xcc63ce);const _0x3fcee9=new _0x454ae3['PivotTable'](_0x4b3c10,void 0x0,_0x25a26e);_0x3fcee9[_0x32dd66(0x3f5)](_0x3db2df);const _0x2fde15=JSON[_0x32dd66(0x47f)](JSON[_0x32dd66(0x23c)](_0x3592e2));return _0x47d716[_0x32dd66(0x29d)](_0x2f0394,_0x194305,_0x25a26e,_0x3fcee9,_0x2fde15),_0x47d716[_0x32dd66(0x3db)]({'unitId':_0x2f0394,'subUnitId':_0x194305,'token':_0x25a26e,'type':_0x35ec99[_0x32dd66(0x3e5)],'pivotConfig':_0x2fde15}),!0x0;}},_0x5d8377={'type':_0x47953c[_0x1f66a3(0x2ee)]['COMMAND'],'id':_0x1f66a3(0x45c),async 'handler'(_0x33e837,_0x1a68f2){const _0xbc6e2d=_0x1f66a3;if(!_0x1a68f2)return!0x1;const {sourceDataInfo:_0x5ee896,pivotTableConfig:_0x232774}=_0x1a68f2;if(!_0x5ee896||!_0x232774)return!0x1;const {unitId:_0x8d3b00,subUnitId:_0x2a6460,range:_0x344670}=_0x5ee896,_0x16b820=_0x33e837[_0xbc6e2d(0x2ab)](_0x47953c['IUniverInstanceService']),_0x110d78=_0x33e837[_0xbc6e2d(0x2ab)](_0x447ba5[_0xbc6e2d(0x281)]),_0x1a3f99=_0x33e837[_0xbc6e2d(0x2ab)](_0x47953c[_0xbc6e2d(0x1f5)]),_0x11e05a=_0x33e837[_0xbc6e2d(0x2ab)](_0x47953c[_0xbc6e2d(0x249)]),_0x2b69ed=_0x16b820[_0xbc6e2d(0x2e0)](_0x8d3b00);if(!_0x2b69ed)return!0x1;const _0x1392f8=_0x2b69ed[_0xbc6e2d(0x49b)](_0x2a6460);if(!_0x1392f8)return!0x1;const _0x455215=_0x454ae3[_0xbc6e2d(0x4a1)](0x8),_0x1e89f9=_0x344670||{'startRow':0x0,'startColumn':0x0,'endRow':_0x1392f8[_0xbc6e2d(0x254)]()-0x1,'endColumn':_0x1392f8[_0xbc6e2d(0x1f3)]()-0x1};_0x1e89f9['rangeType']=_0x47953c['RANGE_TYPE'][_0xbc6e2d(0x492)];const _0x3bb1f2=(await _0x110d78[_0xbc6e2d(0x3ac)]({'unitId':_0x8d3b00,'subUnitId':_0x2a6460,'pivotTableId':_0x455215,'params':{'type':_0x1e1e2c['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x8d3b00,'sheetName':_0x1392f8[_0xbc6e2d(0x484)](),'subUnitId':_0x2a6460,'range':_0x1e89f9},'pivotTableId':_0x455215,'pivotTableIndexConfig':_0x232774}}}))['result'][_0xbc6e2d(0x372)];if(!_0x3bb1f2)return!0x1;const {isEmpty:_0x2dd1a5,fieldsConfig:_0x3fab2c,collectionConfig:_0x306537,changesets:_0x48fb3b}=_0x3bb1f2,_0x36b699=_0x2b69ed['getSheets']()['length'],_0x2f608e=_0x47953c[_0xbc6e2d(0x3c0)]({'rowCount':_0x1392f8[_0xbc6e2d(0x254)]()-0x1,'columnCount':_0x1392f8[_0xbc6e2d(0x1f3)]()-0x1});_0x2f608e['id']=_0x47953c['generateRandomId'](),_0x2f608e[_0xbc6e2d(0x252)]=_0x2b69ed[_0xbc6e2d(0x45b)](''+_0x1a3f99['t'](_0xbc6e2d(0x3f6)));const _0x297296={'index':_0x36b699,'sheet':_0x2f608e,'unitId':_0x8d3b00},{redos:_0x568373}=_0x430022(_0x11e05a,{'pivotTableId':_0x455215,'unitId':_0x8d3b00,'subUnitId':_0x2f608e['id']},_0x48fb3b),_0x39f78b=[{'id':_0x271f69[_0xbc6e2d(0x327)]['id'],'params':_0x297296},{'id':_0x2d3644['id'],'params':{'unitId':_0x8d3b00,'subUnitId':_0x2f608e['id'],'pivotTableId':_0x455215,'pivotTableConfig':{'isEmpty':_0x2dd1a5,'fieldsConfig':_0x3fab2c,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x8d3b00,'subUnitId':_0x2f608e['id']},'sourceRangeInfo':{'subUnitId':_0x2a6460,'unitId':_0x8d3b00,'range':_0x1e89f9,'sheetName':_0x1392f8['getName']()}},'collectionConfig':_0x306537}},..._0x568373];return _0x47953c[_0xbc6e2d(0x48d)](_0x39f78b,_0x11e05a),!0x0;}},_0x24f5f9={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x4d1516,_0x2081a7){const _0x3ba33b=_0x1f66a3;if(!_0x2081a7)return!0x1;if(!!_0x4d1516[_0x3ba33b(0x2ab)](_0x47953c[_0x3ba33b(0x4bb)])[_0x3ba33b(0x353)](_0x1ff33b))return!0x0;const {pivotTableId:_0x3b14a6,unitId:_0x43d03d,subUnitId:_0x50d443}=_0x2081a7,_0x10b54a=_0x4d1516[_0x3ba33b(0x2ab)](_0x447ba5[_0x3ba33b(0x330)]);return _0x10b54a['getPivotTableConfig'](_0x43d03d,_0x50d443,_0x3b14a6)?(_0x10b54a[_0x3ba33b(0x3db)]({'unitId':_0x43d03d,'subUnitId':_0x50d443,'token':_0x3b14a6,'type':_0x35ec99[_0x3ba33b(0x251)]}),_0x10b54a[_0x3ba33b(0x35a)](_0x43d03d,_0x50d443,_0x3b14a6),!0x0):!0x1;}},_0x159041={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x4b9)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x7028f1,_0x425736){const _0x3165ec=_0x1f66a3;var _0x1c8066,_0x2be063;const _0x2cc65a=_0x7028f1[_0x3165ec(0x2ab)](_0x47953c[_0x3165ec(0x249)]),_0x583cf5=_0x7028f1[_0x3165ec(0x2ab)](_0x47953c[_0x3165ec(0x364)]),_0x486b84=_0x7028f1[_0x3165ec(0x2ab)](_0x47953c[_0x3165ec(0x1f5)]),_0x555efe=_0x7028f1[_0x3165ec(0x2ab)](_0x447ba5[_0x3165ec(0x281)]),_0x28206f=_0x7028f1['get'](_0x47953c['IUndoRedoService']),_0x2e10f3=_0x7028f1[_0x3165ec(0x2ab)](_0x447ba5[_0x3165ec(0x322)]),_0x1f694c=_0x7028f1['get'](_0x47953c[_0x3165ec(0x4bb)]);if(!_0x425736)return!0x1;const {pivotTableConfig:_0x3a6227,positionType:_0x178abf}=_0x425736,{targetCellInfo:_0x1e47e0,sourceRangeInfo:_0x3bde65}=_0x3a6227,{unitId:_0x503c88,subUnitId:_0x41234e}=_0x1e47e0,_0x125a44=_0x583cf5[_0x3165ec(0x2e0)](_0x503c88);if(!_0x125a44)return!0x1;let _0x236184=0x0;_0x125a44[_0x3165ec(0x253)]()[_0x3165ec(0x370)](_0x3690d3=>{const _0x476b86=_0x3165ec;var _0x8c6ef9,_0x36e370;_0x236184+=(_0x36e370=(_0x8c6ef9=_0x2e10f3['getSubUnitPivotConfigs'](_0x503c88,_0x3690d3['getSheetId']()))==null?void 0x0:_0x8c6ef9[_0x476b86(0x3aa)])!=null?_0x36e370:0x0;});const _0x550281=(_0x1c8066=_0x1f694c['getConfig'](_0xeb4f2b[_0x3165ec(0x3d9)]))!=null?_0x1c8066:{},{ls:_0xfedbc5,pbk:_0x347110}=_0x550281;if(!_0x1ed697(_0xfedbc5,_0x347110))return!0x1;const _0x4be266=_0x4c1091(_0xd2c7ac,_0xfedbc5,_0x347110)[_0x3165ec(0x39e)];if(_0x236184>=_0x4be266)return!0x1;const _0x5e0539=_0x425736[_0x3165ec(0x42f)]||_0x454ae3['generateHexNumber'](0x8),_0x39b76a=(await _0x555efe[_0x3165ec(0x3ac)]({'unitId':_0x503c88,'subUnitId':_0x41234e,'pivotTableId':_0x5e0539,'params':{'type':_0x1e1e2c[_0x3165ec(0x2d8)],'addPivotTable':{'sourceRangeInfo':_0x3bde65,'pivotTableId':_0x5e0539}}}))[_0x3165ec(0x3bd)]['addPivotTable'];if(!_0x39b76a)return!0x1;const {view:_0x369c5b,isEmpty:_0x1164d8,fieldsConfig:_0x8967fb,collectionConfig:_0x28bb93}=_0x39b76a,_0x4e1c80=[],_0x129e10=[];if(_0x178abf===_0x42aeb5[_0x3165ec(0x331)]){const _0x4287b5=_0x125a44[_0x3165ec(0x253)]()['length'],_0x2841a0=_0x47953c[_0x3165ec(0x3c0)]({});_0x2841a0['id']=_0x3a6227[_0x3165ec(0x38e)][_0x3165ec(0x388)],_0x2841a0[_0x3165ec(0x252)]=(_0x2be063=_0x3a6227['targetCellInfo'][_0x3165ec(0x303)])!=null?_0x2be063:_0x125a44[_0x3165ec(0x45b)](''+_0x486b84['t'](_0x3165ec(0x3f6)));const _0x10aa86={'index':_0x4287b5,'sheet':_0x2841a0,'unitId':_0x503c88},_0x44067b=_0x271f69[_0x3165ec(0x255)](_0x7028f1,_0x10aa86);_0x4e1c80['push']({'id':_0x271f69[_0x3165ec(0x20f)]['id'],'params':_0x44067b}),_0x129e10[_0x3165ec(0x2b4)]({'id':_0x271f69[_0x3165ec(0x21e)]['id'],'params':_0x10aa86});}else{if(!_0x125a44[_0x3165ec(0x49b)](_0x41234e))return!0x1;const _0x13b976=_0x3c8c3a(_0x7028f1,new _0x454ae3[(_0x3165ec(0x1e2))](),_0x1e47e0,!0x0);_0x129e10[_0x3165ec(0x2b4)](..._0x13b976[_0x3165ec(0x398)]),_0x4e1c80['push'](..._0x13b976['undos']);const _0x22f5ef={'cellInfo':_0x1e47e0,'view':_0x369c5b,'isEmpty':_0x1164d8};if(!await _0x7028f1[_0x3165ec(0x2ab)](_0x447ba5[_0x3165ec(0x26a)])[_0x3165ec(0x446)][_0x3165ec(0x240)](_0x20ba16)(!0x0,_0x22f5ef))return!0x1;const _0x4ab94e=_0xf44bfb(_0x7028f1,_0x22f5ef);_0x129e10[_0x3165ec(0x2b4)](..._0x4ab94e[_0x3165ec(0x398)]),_0x4e1c80['push'](..._0x4ab94e[_0x3165ec(0x41e)]);}return _0x129e10[_0x3165ec(0x2b4)]({'id':_0x2d3644['id'],'params':{'unitId':_0x1e47e0[_0x3165ec(0x33e)],'subUnitId':_0x1e47e0[_0x3165ec(0x388)],'pivotTableId':_0x5e0539,'pivotTableConfig':{'targetCellInfo':_0x1e47e0,'sourceRangeInfo':_0x3bde65,'fieldsConfig':_0x8967fb},'collectionConfig':_0x28bb93}}),_0x4e1c80[_0x3165ec(0x476)]({'id':_0x24f5f9['id'],'params':{'unitId':_0x503c88,'subUnitId':_0x41234e,'pivotTableId':_0x5e0539}}),_0x47953c[_0x3165ec(0x48d)](_0x129e10,_0x2cc65a)&&_0x28206f['pushUndoRedo']({'unitID':_0x503c88,'undoMutations':_0x4e1c80,'redoMutations':_0x129e10}),!0x0;}},_0x4fa424={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x2d4),async 'handler'(_0x330285,_0x2e4b45){const _0x22321b=_0x1f66a3;if(!_0x2e4b45)return!0x1;const _0x34492c=_0x330285[_0x22321b(0x2ab)](_0x47953c[_0x22321b(0x249)]),_0x3c323a=_0x330285[_0x22321b(0x2ab)](_0x447ba5[_0x22321b(0x281)]),_0x23a55c=_0x330285[_0x22321b(0x2ab)](_0x47953c['IUndoRedoService']),{pivotTableId:_0x51d16d,fieldId:_0x5de444,area:_0x1bf2b8,index:_0x1bfc83,unitId:_0x504d1b,subUnitId:_0x48be1b}=_0x2e4b45,_0x5e0dc7=(await _0x3c323a[_0x22321b(0x3ac)]({'unitId':_0x504d1b,'subUnitId':_0x48be1b,'pivotTableId':_0x51d16d,'params':{'type':_0x1e1e2c[_0x22321b(0x458)],'movePivotField':{'fieldId':_0x5de444,'area':_0x1bf2b8,'index':_0x1bfc83}}}))[_0x22321b(0x3bd)][_0x22321b(0x4e1)];if(!_0x5e0dc7)return!0x1;const {changesets:_0x19c32d,view:_0x39e02a,isEmpty:_0x20c275,pivotTableConfig:_0x3dd0e8}=_0x5e0dc7,_0x517caa=_0x3dd0e8[_0x22321b(0x38e)],_0x124615=new _0x454ae3[(_0x22321b(0x1e2))]();_0x124615[_0x22321b(0x2a5)](_0x39e02a);const _0x38325b={'cellInfo':_0x517caa,'view':_0x124615,'isEmpty':_0x20c275};if(!await _0x330285[_0x22321b(0x2ab)](_0x447ba5[_0x22321b(0x26a)])['asyncInterceptor'][_0x22321b(0x240)](_0x20ba16)(!0x0,_0x38325b))return!0x1;const _0x14d6f1=_0x3c8c3a(_0x330285,_0x124615,_0x517caa,_0x20c275),_0x23f252=_0xf44bfb(_0x330285,_0x38325b),{redos:_0x3c5aea,undos:_0x4c3f63}=_0x430022(_0x34492c,{'pivotTableId':_0x51d16d,'unitId':_0x504d1b,'subUnitId':_0x48be1b},_0x19c32d);return _0x47953c[_0x22321b(0x48d)]([..._0x14d6f1[_0x22321b(0x398)],..._0x23f252['redos'],..._0x3c5aea],_0x34492c),_0x23a55c[_0x22321b(0x3cd)]({'unitID':_0x504d1b,'redoMutations':[..._0x14d6f1['redos'],..._0x23f252[_0x22321b(0x398)],..._0x3c5aea],'undoMutations':[..._0x14d6f1[_0x22321b(0x41e)],..._0x23f252[_0x22321b(0x41e)],..._0x4c3f63]}),!0x0;}},_0x1aad47={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x1d0),'handler'(_0x12604e,_0x1d2ba6){const _0x33f250=_0x1f66a3;if(!_0x1d2ba6)return!0x1;if(!!_0x12604e[_0x33f250(0x2ab)](_0x47953c[_0x33f250(0x4bb)])['getConfig'](_0x1ff33b))return!0x0;const {pivotTableId:_0x36dfdd,targetCellPosition:_0x36ee30,unitId:_0x561faa,subUnitId:_0x85497e}=_0x1d2ba6,_0x1aed6c=_0x12604e[_0x33f250(0x2ab)](_0x447ba5['SheetsPivotDataSourceModel']);if(!_0x1aed6c[_0x33f250(0x37f)](_0x1d2ba6['pivotTableId']))return!0x1;const _0x5ca04c=_0x1aed6c[_0x33f250(0x3d4)](_0x36dfdd);if(!_0x5ca04c)return!0x1;const _0x1abf2b=_0x1aed6c[_0x33f250(0x4dd)](_0x5ca04c[_0x33f250(0x33e)],_0x1d2ba6['pivotTableId']);if(!_0x1abf2b)return!0x1;const _0x35324e=_0x1aed6c[_0x33f250(0x2ac)](_0x5ca04c[_0x33f250(0x33e)],_0x5ca04c[_0x33f250(0x388)],_0x36dfdd);if(!_0x35324e)return!0x1;const _0x1268b5=_0x47953c[_0x33f250(0x48a)]['deepClone'](_0x35324e);_0x1268b5[_0x33f250(0x38e)]={'unitId':_0x561faa,'subUnitId':_0x85497e,'row':_0x36ee30[_0x33f250(0x222)],'col':_0x36ee30[_0x33f250(0x411)]};const _0x50adbe=_0x1abf2b[_0x33f250(0x413)]();if(_0x5ca04c[_0x33f250(0x388)]===_0x85497e&&_0x5ca04c[_0x33f250(0x33e)]===_0x561faa)_0x1aed6c[_0x33f250(0x23a)](_0x561faa,_0x85497e,_0x36dfdd,_0x1268b5),_0x1aed6c[_0x33f250(0x3db)]({'unitId':_0x561faa,'subUnitId':_0x85497e,'token':_0x36dfdd,'type':_0x35ec99[_0x33f250(0x45a)]});else{_0x1aed6c[_0x33f250(0x3db)]({'unitId':_0x5ca04c[_0x33f250(0x33e)],'subUnitId':_0x5ca04c[_0x33f250(0x388)],'token':_0x36dfdd,'type':_0x35ec99[_0x33f250(0x251)]}),_0x1aed6c[_0x33f250(0x35a)](_0x5ca04c[_0x33f250(0x33e)],_0x5ca04c['subUnitId'],_0x36dfdd);const _0x2ca3e0=_0x1aed6c[_0x33f250(0x39a)](_0x36dfdd,_0x50adbe,_0x35324e[_0x33f250(0x497)],_0x1268b5[_0x33f250(0x38e)]),_0x5ee920=new _0x454ae3['PivotTable'](_0x2ca3e0['collection'],void 0x0,_0x36dfdd);_0x5ee920[_0x33f250(0x3f5)](_0x1268b5[_0x33f250(0x421)]),_0x1aed6c[_0x33f250(0x29d)](_0x561faa,_0x85497e,_0x36dfdd,_0x5ee920,_0x1268b5),_0x1aed6c['addDirtyPivotTable']({'unitId':_0x561faa,'subUnitId':_0x85497e,'token':_0x36dfdd,'type':_0x35ec99['Add'],'pivotConfig':_0x1268b5});}return!0x0;}},_0x782032={'type':_0x47953c[_0x1f66a3(0x2ee)]['COMMAND'],'id':_0x1f66a3(0x1f4),'handler':(_0x1893fb,_0x82a347)=>{const _0x5ce221=_0x1f66a3,_0x55750e=_0x1893fb[_0x5ce221(0x2ab)](_0x47953c[_0x5ce221(0x249)]),_0x11f2a1=_0x1893fb[_0x5ce221(0x2ab)](_0x47953c[_0x5ce221(0x293)]),_0xbd679c=_0x1893fb[_0x5ce221(0x2ab)](_0x447ba5[_0x5ce221(0x322)]),_0x5b7228=_0x1893fb[_0x5ce221(0x2ab)](_0x47953c[_0x5ce221(0x364)]);if(!_0x82a347)return!0x1;const _0x4a81c0=_0x271f69[_0x5ce221(0x4d4)](_0x5b7228);if(!_0x4a81c0)return!0x1;const {unitId:_0x4d0ffa,subUnitId:_0x51df1e,workbook:_0x4d8ff1}=_0x4a81c0,_0x10b8ec=_0xbd679c[_0x5ce221(0x2ac)](_0x82a347['originTargetInfo'][_0x5ce221(0x33e)],_0x82a347[_0x5ce221(0x31f)][_0x5ce221(0x388)],_0x82a347[_0x5ce221(0x42f)]);if(!_0x10b8ec)return!0x1;const _0x2afafa=_0x4d8ff1[_0x5ce221(0x49b)](_0x82a347[_0x5ce221(0x38e)][_0x5ce221(0x388)]);if(!_0x2afafa)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0x2a542c=_0x2afafa[_0x5ce221(0x254)](),_0x23e13f=_0x2afafa[_0x5ce221(0x1f3)]();if(_0x82a347[_0x5ce221(0x38e)][_0x5ce221(0x222)]>_0x2a542c||_0x82a347['targetCellInfo'][_0x5ce221(0x411)]>_0x23e13f)throw new Error(_0x5ce221(0x452));const _0xebc9a5=[{'id':_0x1aad47['id'],'params':{'unitId':_0x4d0ffa,'subUnitId':_0x82a347[_0x5ce221(0x38e)]['subUnitId'],'pivotTableId':_0x82a347[_0x5ce221(0x42f)],'targetCellPosition':{'row':_0x82a347[_0x5ce221(0x38e)][_0x5ce221(0x222)],'col':_0x82a347[_0x5ce221(0x38e)]['col']}}}],_0x432b7f=[{'id':_0x1aad47['id'],'params':{'unitId':_0x4d0ffa,'subUnitId':_0x51df1e,'pivotTableId':_0x82a347[_0x5ce221(0x42f)],'targetCellPosition':{'row':_0x10b8ec[_0x5ce221(0x38e)][_0x5ce221(0x222)],'col':_0x10b8ec[_0x5ce221(0x38e)][_0x5ce221(0x411)]}}}];return _0x47953c[_0x5ce221(0x48d)](_0xebc9a5,_0x55750e)&&_0x11f2a1[_0x5ce221(0x3cd)]({'unitID':_0x4d0ffa,'undoMutations':_0x432b7f,'redoMutations':_0xebc9a5}),!0x0;}},_0x2e3c61={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x375),async 'handler'(_0x5dc24e,_0x3b730e){const _0x3056f3=_0x1f66a3;var _0x24d608;if(!_0x3b730e)return!0x1;const _0x1456b0=_0x5dc24e[_0x3056f3(0x2ab)](_0x47953c[_0x3056f3(0x364)]),_0x256ec6=_0x271f69[_0x3056f3(0x4d4)](_0x1456b0);if(!_0x256ec6)return!0x1;const {unitId:_0x2edaae,subUnitId:_0x32802a,workbook:_0x1dde32}=_0x256ec6,{row:_0x2d3661,col:_0x44334d}=_0x3b730e,_0x50474d=_0x5dc24e['get'](_0x447ba5[_0x3056f3(0x3e7)]),_0x354507=_0x50474d[_0x3056f3(0x22c)](_0x2edaae,_0x32802a,_0x2d3661,_0x44334d);if(!_0x354507)return!0x1;const _0x5eb6ef=(_0x24d608=_0x50474d[_0x3056f3(0x270)](_0x2edaae,_0x32802a,_0x354507))==null?void 0x0:_0x24d608['areaInfo'];if(!_0x5eb6ef)return!0x1;const _0x3ee9ad=_0x5dc24e['get'](_0x447ba5['SheetsPivotTableConfigModel'])[_0x3056f3(0x2ac)](_0x2edaae,_0x32802a,_0x354507);if(!_0x3ee9ad)return!0x1;const {rowInfo:_0x165047,colInfo:_0x3fcb88}=_0x5eb6ef,_0x5b003e=_0x165047[_0x2d3661][_0x3056f3(0x28c)],_0x5ce27f=_0x3fcb88[_0x44334d][_0x3056f3(0x28c)],_0x332b93=_0x165047[_0x2d3661][_0x3056f3(0x46d)],_0x172e87=_0x3fcb88[_0x44334d][_0x3056f3(0x46d)],_0x139a01=_0x5b003e[_0x3056f3(0x207)](_0x5ce27f),_0x3ac214=_0x3ee9ad['fieldsConfig']['rowFields'][_0x3056f3(0x203)](0x0,_0x332b93),_0x1b9a36=_0x3ee9ad['fieldsConfig'][_0x3056f3(0x2a0)][_0x3056f3(0x203)](0x0,_0x172e87),_0x1af08c=_0x3ac214[_0x3056f3(0x207)](_0x1b9a36),_0x1c174d=_0x139a01[_0x3056f3(0x44c)]((_0x7395dd,_0x3c6588)=>[_0x7395dd,_0x1af08c[_0x3c6588]]),_0x445634=(await _0x5dc24e[_0x3056f3(0x2ab)](_0x447ba5[_0x3056f3(0x281)])['getPivotDisplayConfig']({'unitId':_0x2edaae,'subUnitId':_0x32802a,'pivotTableId':_0x354507,'params':{'type':_0x1e1e2c[_0x3056f3(0x3ff)],'drillDown':{'tuple':_0x1c174d}}}))['result'][_0x3056f3(0x40c)];if(!_0x445634)return!0x1;const {indexes:_0x50de9e,range:_0x173574,sourceUnitId:_0x8c2c61,sourceSubUnitId:_0x283427,formatMap:_0x96ce5d}=_0x445634,{startRow:_0x2e55ed,endRow:_0x3d8ce5,startColumn:_0x414f40,endColumn:_0x395744}=_0x173574,_0x118624=new _0x47953c['ObjectMatrix'](),_0x1b894e=_0x3d8ce5-_0x2e55ed,_0x243f5e=_0x395744-_0x414f40,_0x360031={},_0x4d9cbf=_0x271f69[_0x3056f3(0x4d4)](_0x1456b0,{'unitId':_0x8c2c61,'subUnitId':_0x283427});if(!_0x4d9cbf)return!0x1;const _0x19503e=_0x536a97[_0x3056f3(0x300)],_0x216575=_0x536a97[_0x3056f3(0x31b)],_0x656179=_0x536a97[_0x3056f3(0x31b)],_0x5bcdf3=_0x1dde32['getStyles']()[_0x3056f3(0x27f)](_0x19503e),_0x5c087c=_0x1dde32[_0x3056f3(0x338)]()[_0x3056f3(0x27f)](_0x216575),_0x49f39e=_0x1dde32[_0x3056f3(0x338)]()['setValue'](_0x656179),{worksheet:_0x35328d}=_0x4d9cbf;let _0x52c024=0x0;const _0x858e15=0x1;_0x50de9e['forEach'](_0x55b0c2=>{const _0x37d1c2=_0x3056f3;for(let _0x902916=0x0;_0x902916<=_0x395744-_0x414f40;_0x902916++)_0x118624['setValue'](_0x52c024,_0x902916,_0x35328d[_0x37d1c2(0x296)](_0x55b0c2+_0x173574['startRow']+_0x858e15,_0x902916));_0x52c024++;});for(let _0x4cee11=_0x414f40;_0x4cee11<=_0x395744;_0x4cee11++){const _0x27325e=_0x35328d['getCellRaw'](_0x2e55ed,_0x4cee11);_0x360031[_0x2e55ed]||(_0x360031[_0x2e55ed]={}),_0x360031[_0x2e55ed][_0x4cee11]={..._0x27325e,'s':_0x5bcdf3};}let _0x29acc7=0x1;const _0x5aeb5e={},_0x20c695={};_0x118624['forRow']((_0x33f590,_0x42441d)=>{const _0x12fe41=_0x3056f3;_0x42441d[_0x12fe41(0x370)](_0x110af1=>{const _0x46a86f=_0x12fe41,_0x538256=_0x118624[_0x46a86f(0x325)](_0x33f590,_0x110af1);if(_0x360031[_0x29acc7]||(_0x360031[_0x29acc7]={}),_0x360031[_0x29acc7][_0x110af1]={..._0x538256,'s':_0x29acc7%0x2===0x0?_0x49f39e:_0x5c087c},_0x96ce5d[_0x110af1]&&_0x33f590>=0x0){const _0x476832=_0x29acc7%0x2===0x0;let _0x35db9b=_0x476832?_0x20c695[_0x110af1]:_0x5aeb5e[_0x110af1];_0x35db9b||(_0x35db9b=_0x1dde32[_0x46a86f(0x338)]()['setValue']({..._0x476832?_0x656179:_0x216575,'n':{'pattern':_0x96ce5d[_0x110af1]}}),_0x476832?_0x20c695[_0x110af1]=_0x35db9b:_0x5aeb5e[_0x110af1]=_0x35db9b),_0x360031[_0x29acc7][_0x110af1]['s']=_0x35db9b;}}),_0x29acc7++;});const _0x52bad9=new _0x47953c[(_0x3056f3(0x1d1))](_0x360031),_0x1838f1={};_0x52bad9[_0x3056f3(0x2c5)]((_0x1132c5,_0x5033db,_0x32a7cf)=>{_0x1838f1[_0x1132c5]||(_0x1838f1[_0x1132c5]={}),_0x1838f1[_0x1132c5][_0x5033db]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x255b24=[],_0x412ab9=[],_0x2baf97=_0x1dde32[_0x3056f3(0x253)]()[_0x3056f3(0x217)],_0xd5d195=_0x47953c[_0x3056f3(0x3c0)]({'rowCount':Math[_0x3056f3(0x341)](_0x47953c[_0x3056f3(0x329)],_0x1b894e+0xa),'columnCount':Math[_0x3056f3(0x341)](_0x47953c[_0x3056f3(0x3b4)],_0x243f5e+0x5)}),_0xb79a2c=_0x5dc24e[_0x3056f3(0x2ab)](_0x47953c[_0x3056f3(0x1f5)]);_0xd5d195['id']=_0x47953c[_0x3056f3(0x465)](),_0xd5d195['name']=_0x1dde32['generateNewSheetName'](''+_0xb79a2c['t']('sheets.tabs.sheet'));const _0x66b67b={'index':_0x2baf97,'sheet':_0xd5d195,'unitId':_0x2edaae},_0x3b5f72=_0x271f69[_0x3056f3(0x255)](_0x5dc24e,_0x66b67b);_0x412ab9[_0x3056f3(0x2b4)]({'id':_0x271f69[_0x3056f3(0x21e)]['id'],'params':_0x66b67b}),_0x255b24[_0x3056f3(0x2b4)]({'id':_0x271f69[_0x3056f3(0x20f)]['id'],'params':_0x3b5f72}),_0x412ab9[_0x3056f3(0x2b4)]({'id':_0x271f69[_0x3056f3(0x4ac)]['id'],'params':{'unitId':_0x2edaae,'subUnitId':_0xd5d195['id'],'cellValue':_0x360031}}),_0x255b24[_0x3056f3(0x476)]({'id':_0x271f69[_0x3056f3(0x4ac)]['id'],'params':{'unitId':_0x2edaae,'subUnitId':_0xd5d195['id'],'cellValue':_0x1838f1}});const _0x4e6751={'startRow':0x0,'startColumn':0x0,'endRow':_0x29acc7-0x1,'endColumn':_0x395744};_0x412ab9[_0x3056f3(0x2b4)]({'id':_0x27886a[_0x3056f3(0x2f8)]['id'],'params':{'unitId':_0x2edaae,'subUnitId':_0xd5d195['id'],'range':_0x4e6751}}),_0x255b24[_0x3056f3(0x476)]({'id':_0x27886a['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x2edaae,'subUnitId':_0xd5d195['id']}});const _0x5656f4=_0x5dc24e[_0x3056f3(0x2ab)](_0x47953c[_0x3056f3(0x249)]);return _0x47953c['sequenceExecute'](_0x412ab9,_0x5656f4)&&_0x5dc24e[_0x3056f3(0x2ab)](_0x47953c[_0x3056f3(0x293)])[_0x3056f3(0x3cd)]({'unitID':_0x2edaae,'undoMutations':_0x255b24,'redoMutations':_0x412ab9}),!0x0;}},_0x59671d={'type':_0x47953c[_0x1f66a3(0x2ee)]['COMMAND'],'id':_0x1f66a3(0x44e),async 'handler'(_0x3a872d,_0xbbd1e0){const _0x3bfe31=_0x1f66a3;if(!_0xbbd1e0)return!0x1;const _0x485fb9=_0x3a872d[_0x3bfe31(0x2ab)](_0x47953c[_0x3bfe31(0x249)]),_0x28fa1c=_0x3a872d[_0x3bfe31(0x2ab)](_0x447ba5[_0x3bfe31(0x281)]),_0x21b472=_0x3a872d[_0x3bfe31(0x2ab)](_0x47953c['IUndoRedoService']),{pivotTableId:_0x10db9e,fieldIds:_0x55a4c9,unitId:_0x26a307,subUnitId:_0x5b28ec}=_0xbbd1e0,_0x3079d5=(await _0x28fa1c['getPivotDisplayConfig']({'unitId':_0x26a307,'subUnitId':_0x5b28ec,'pivotTableId':_0x10db9e,'params':{'type':_0x1e1e2c['RemovePivotField'],'removePivotField':{'fieldIds':_0x55a4c9}}}))['result'][_0x3bfe31(0x202)];if(!_0x3079d5)return!0x1;const {view:_0x1776f6,changesets:_0x200a62,isEmpty:_0x259e6b,pivotTableConfig:_0x36f13e}=_0x3079d5,_0x46918a=_0x36f13e[_0x3bfe31(0x38e)],_0x2734e9=new _0x454ae3['PivotView']();_0x2734e9['formJSON'](_0x1776f6);const _0x5a5a3a={'cellInfo':_0x46918a,'view':_0x2734e9,'isEmpty':_0x259e6b};if(!await _0x3a872d['get'](_0x447ba5[_0x3bfe31(0x26a)])[_0x3bfe31(0x446)][_0x3bfe31(0x240)](_0x20ba16)(!0x0,_0x5a5a3a))return!0x1;const _0x471685=_0x3c8c3a(_0x3a872d,_0x2734e9,_0x46918a,_0x259e6b),_0x4fca0e=_0xf44bfb(_0x3a872d,_0x5a5a3a),{redos:_0x2c936d,undos:_0x3680e3}=_0x430022(_0x485fb9,{'pivotTableId':_0x10db9e,'unitId':_0x26a307,'subUnitId':_0x5b28ec},_0x200a62);return _0x47953c['sequenceExecute']([..._0x471685[_0x3bfe31(0x398)],..._0x4fca0e[_0x3bfe31(0x398)],..._0x2c936d],_0x485fb9),_0x21b472['pushUndoRedo']({'unitID':_0x26a307,'redoMutations':[..._0x471685[_0x3bfe31(0x398)],..._0x4fca0e['redos'],..._0x2c936d],'undoMutations':[..._0x471685[_0x3bfe31(0x41e)],..._0x4fca0e[_0x3bfe31(0x41e)],..._0x3680e3]}),!0x0;}},_0x323611={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x4b9)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x3825af,_0x334812){const _0x50b9e5=_0x1f66a3;if(!_0x334812)return!0x1;const _0x304921=_0x3825af['get'](_0x47953c['ICommandService']),_0x312974=_0x3825af['get'](_0x47953c[_0x50b9e5(0x293)]),_0x5f48b1=_0x3825af['get'](_0x447ba5[_0x50b9e5(0x281)]),{resetArea:_0x50822d,pivotTableId:_0x53dbc6,unitId:_0x310971,subUnitId:_0x521048}=_0x334812,_0xb5ba69=(await _0x5f48b1['getPivotDisplayConfig']({'unitId':_0x310971,'subUnitId':_0x521048,'pivotTableId':_0x53dbc6,'params':{'type':_0x1e1e2c[_0x50b9e5(0x285)],'resetPivotTable':{'pivotTableId':_0x53dbc6,'resetArea':_0x50822d}}}))[_0x50b9e5(0x3bd)][_0x50b9e5(0x263)];if(!_0xb5ba69)return!0x1;const {changesets:_0x280b13}=_0xb5ba69,{redos:_0x3a16e9,undos:_0x2fd7fa}=_0x430022(_0x304921,{'pivotTableId':_0x53dbc6,'unitId':_0x310971,'subUnitId':_0x521048},_0x280b13);return _0x47953c['sequenceExecute'](_0x3a16e9,_0x304921),_0x312974[_0x50b9e5(0x3cd)]({'unitID':_0x310971,'redoMutations':_0x3a16e9,'undoMutations':_0x2fd7fa}),!0x0;}},_0x13646f={'type':_0x47953c['CommandType'][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x2d6),async 'handler'(_0x232683,_0x31117e){const _0x23d793=_0x1f66a3,_0x4e58f5=_0x232683['get'](_0x47953c[_0x23d793(0x249)]),_0x115c4c=_0x232683[_0x23d793(0x2ab)](_0x447ba5[_0x23d793(0x281)]),_0x5973e1=_0x232683[_0x23d793(0x2ab)](_0x447ba5[_0x23d793(0x3e7)]),_0x16ef83=_0x232683[_0x23d793(0x2ab)](_0x47953c[_0x23d793(0x364)]),_0x4089c5=_0x232683[_0x23d793(0x2ab)](_0x47953c[_0x23d793(0x1f5)]),_0x1cb127=_0x232683[_0x23d793(0x2ab)](_0x47953c[_0x23d793(0x293)]);if(!_0x31117e)return!0x1;const {unitId:_0x544759,subUnitId:_0x3b1ae4,row:_0x2a5fea,col:_0x356a93,collapse:_0x1dcf91}=_0x31117e,_0x2ea18b=_0x16ef83[_0x23d793(0x2e0)](_0x544759);if(!_0x2ea18b||!_0x2ea18b[_0x23d793(0x49b)](_0x3b1ae4))return!0x1;const _0x2ff8d7=_0x5973e1['getPivotTableIdByCell'](_0x544759,_0x3b1ae4,_0x2a5fea,_0x356a93);if(!_0x2ff8d7)return!0x1;const _0x729c5b=_0x5973e1[_0x23d793(0x270)](_0x544759,_0x3b1ae4,_0x2ff8d7);if(!_0x729c5b)return!0x1;const _0x472d20=_0x47953c['cellToRange'](_0x2a5fea,_0x356a93),{rangesInfo:_0x118be3,areaInfo:_0x552522,headerMap:_0x3f0740}=_0x729c5b;if(!_0x118be3||!_0x552522||!_0x3f0740)return!0x1;const _0xc5fd88=Object['keys'](_0x118be3)[_0x23d793(0x3a3)](_0x1cf25c=>_0x118be3[_0x1cf25c][_0x23d793(0x1ff)](_0xd2e128=>_0x47953c['Rectangle']['contains'](_0xd2e128,_0x472d20)));let _0x3b4ca9;_0xc5fd88===_0x23d793(0x49d)?_0x3b4ca9=_0x3f0740[_0x23d793(0x3a1)][_0x356a93]:_0xc5fd88===_0x23d793(0x257)&&(_0x3b4ca9=_0x3f0740[_0x23d793(0x342)][_0x2a5fea]);const _0x139953=_0x3b4ca9==null?void 0x0:_0x3b4ca9[_0x23d793(0x238)],_0x1c102f=_0x5973e1[_0x23d793(0x487)](_0x544759,_0x3b1ae4,_0x2a5fea,_0x356a93);let _0x11abbe=_0x1c102f==null?void 0x0:_0x1c102f['v'];if(_0x11abbe===_0x4089c5['t'](_0x23d793(0x3b0))&&(_0x11abbe=_0x454ae3[_0x23d793(0x441)]['BLANK_PLACEHOLDER']),_0x11abbe==null||!_0x2ff8d7||!_0x139953)return!0x1;const _0x3bf9e5=await _0x115c4c['getPivotDisplayConfig']({'unitId':_0x544759,'subUnitId':_0x3b1ae4,'pivotTableId':_0x2ff8d7,'params':{'type':_0x1e1e2c[_0x23d793(0x22d)],'setPivotCollapse':{'tableFieldId':_0x139953,'collapse':_0x1dcf91,'item':_0x11abbe}}}),_0x1f4089=_0x3bf9e5==null?void 0x0:_0x3bf9e5['result'][_0x23d793(0x442)];if(!_0x1f4089)return!0x1;const {view:_0x9d7a24,pivotTableConfig:_0x3910fd,isEmpty:_0x4ec2b0,changesets:_0x33df7b}=_0x1f4089,_0x30a386=new _0x454ae3[(_0x23d793(0x1e2))]();_0x30a386[_0x23d793(0x2a5)](_0x9d7a24);const _0x64bd5a=_0x3910fd[_0x23d793(0x38e)],_0x3ca035={'cellInfo':_0x64bd5a,'view':_0x30a386,'isEmpty':_0x4ec2b0};if(!await _0x232683[_0x23d793(0x2ab)](_0x447ba5[_0x23d793(0x26a)])[_0x23d793(0x446)][_0x23d793(0x240)](_0x20ba16)(!0x0,_0x3ca035))return!0x1;const _0x1c8fe0=_0x3c8c3a(_0x232683,_0x30a386,_0x64bd5a,_0x4ec2b0),_0x55e269=_0xf44bfb(_0x232683,_0x3ca035),{redos:_0xdbba62,undos:_0x1534a4}=_0x430022(_0x4e58f5,{'pivotTableId':_0x2ff8d7,'unitId':_0x544759,'subUnitId':_0x3b1ae4},_0x33df7b);return _0x47953c[_0x23d793(0x48d)]([..._0x1c8fe0[_0x23d793(0x398)],..._0x55e269[_0x23d793(0x398)],..._0xdbba62],_0x4e58f5),_0x1cb127['pushUndoRedo']({'unitID':_0x544759,'redoMutations':[..._0x1c8fe0['redos'],..._0x55e269['redos'],..._0xdbba62],'undoMutations':[..._0x1c8fe0[_0x23d793(0x41e)],..._0x55e269[_0x23d793(0x41e)],..._0x1534a4]}),!0x0;}},_0x11a026={'type':_0x47953c['CommandType'][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x4d2),async 'handler'(_0x1a6c10,_0x1aaf7f){const _0x374451=_0x1f66a3;if(!_0x1aaf7f)return!0x1;const _0xff8234=_0x1a6c10['get'](_0x47953c[_0x374451(0x249)]),_0x93f0c6=_0x1a6c10['get'](_0x47953c['IUndoRedoService']),_0x2b53aa=_0x1a6c10[_0x374451(0x2ab)](_0x447ba5[_0x374451(0x281)]),{pivotTableConfig:_0x23e983,pivotTableId:_0x4de7cc,unitId:_0x151760,subUnitId:_0x4059c}=_0x1aaf7f,_0x2126a0=(await _0x2b53aa['getPivotDisplayConfig']({'unitId':_0x151760,'subUnitId':_0x4059c,'pivotTableId':_0x4de7cc,'params':{'type':_0x1e1e2c[_0x374451(0x33b)],'setPivotTableConfig':{'pivotTableId':_0x4de7cc,'pivotTableConfig':_0x23e983}}}))[_0x374451(0x3bd)][_0x374451(0x290)];if(!_0x2126a0)return!0x1;const {changesets:_0x45a708}=_0x2126a0,{redos:_0x314f53,undos:_0x5db36d}=_0x430022(_0xff8234,{'pivotTableId':_0x4de7cc,'unitId':_0x151760,'subUnitId':_0x4059c},_0x45a708);return _0x47953c[_0x374451(0x48d)](_0x314f53,_0xff8234),_0x93f0c6[_0x374451(0x3cd)]({'unitID':_0x151760,'redoMutations':_0x314f53,'undoMutations':_0x5db36d}),!0x0;}},_0x59ffc9={'type':_0x47953c['CommandType'][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x4c9),async 'handler'(_0x537884,_0x41860e){const _0xed37f=_0x1f66a3;if(!_0x41860e)return!0x1;const _0x23f14d=_0x537884[_0xed37f(0x2ab)](_0x47953c[_0xed37f(0x249)]),{pivotTableId:_0x19c25c,tableFieldId:_0x393243,items:_0x4c7f22,unitId:_0x58cb31,subUnitId:_0x577faa,isAll:_0x292e33}=_0x41860e,_0x3317a2=_0x537884['get'](_0x447ba5[_0xed37f(0x281)]),_0x340f21=_0x537884['get'](_0x47953c['IUndoRedoService']),_0x27b9cc=(await _0x3317a2[_0xed37f(0x3ac)]({'unitId':_0x58cb31,'subUnitId':_0x577faa,'pivotTableId':_0x19c25c,'params':{'type':_0x1e1e2c['SetPivotFilter'],'setPivotFilter':{'tableFieldId':_0x393243,'items':_0x4c7f22,'isAll':_0x292e33}}}))['result'][_0xed37f(0x21b)];if(!_0x27b9cc)return!0x1;const {changesets:_0x269a88,pivotTableConfig:_0xd7f007,isEmpty:_0x1236b7,view:_0x3c5dd3}=_0x27b9cc,_0x104c7b=_0xd7f007['targetCellInfo'],_0x2d6c05=new _0x454ae3[(_0xed37f(0x1e2))]();_0x2d6c05[_0xed37f(0x2a5)](_0x3c5dd3);const _0x3a052e={'cellInfo':_0x104c7b,'view':_0x2d6c05,'isEmpty':_0x1236b7};if(!await _0x537884[_0xed37f(0x2ab)](_0x447ba5[_0xed37f(0x26a)])[_0xed37f(0x446)][_0xed37f(0x240)](_0x20ba16)(!0x0,_0x3a052e))return!0x1;const _0x2100aa=_0x3c8c3a(_0x537884,_0x2d6c05,_0x104c7b,_0x1236b7),_0x474eb0=_0xf44bfb(_0x537884,_0x3a052e),{undos:_0x4abaf0,redos:_0xa0cd0e}=_0x430022(_0x23f14d,{'pivotTableId':_0x19c25c,'unitId':_0x58cb31,'subUnitId':_0x577faa},_0x269a88);return _0x47953c[_0xed37f(0x48d)]([..._0x2100aa['redos'],..._0x474eb0['redos'],..._0xa0cd0e],_0x23f14d),_0x340f21['pushUndoRedo']({'unitID':_0x58cb31,'redoMutations':[..._0x2100aa[_0xed37f(0x398)],..._0x474eb0[_0xed37f(0x398)],..._0xa0cd0e],'undoMutations':[..._0x2100aa[_0xed37f(0x41e)],..._0x474eb0['undos'],..._0x4abaf0]}),!0x0;}},_0x100dca={'type':_0x47953c[_0x1f66a3(0x2ee)]['COMMAND'],'id':_0x1f66a3(0x228),async 'handler'(_0x520c93,_0x25ad65){const _0xb4fac3=_0x1f66a3;if(!_0x25ad65)return!0x1;const _0x79c67c=_0x520c93[_0xb4fac3(0x2ab)](_0x47953c[_0xb4fac3(0x249)]),_0x564eca=_0x520c93[_0xb4fac3(0x2ab)](_0x47953c[_0xb4fac3(0x293)]),_0x3cd746=_0x520c93[_0xb4fac3(0x2ab)](_0x447ba5['SheetsPivotRPCService']),{info:_0x5b1932,tableFieldId:_0x2585b4,pivotTableId:_0x5046a8,unitId:_0x5c2992,subUnitId:_0x508da3}=_0x25ad65,_0x3793ba=(await _0x3cd746['getPivotDisplayConfig']({'unitId':_0x5c2992,'subUnitId':_0x508da3,'pivotTableId':_0x5046a8,'params':{'type':_0x1e1e2c[_0xb4fac3(0x2fe)],'setPivotSort':{'tableFieldId':_0x2585b4,'info':_0x5b1932}}}))['result'][_0xb4fac3(0x37a)];if(!_0x3793ba)return!0x1;const {changesets:_0x1a70d6}=_0x3793ba,{redos:_0x4cf44c,undos:_0x526d0c}=_0x430022(_0x79c67c,{'pivotTableId':_0x5046a8,'unitId':_0x5c2992,'subUnitId':_0x508da3},_0x1a70d6);return _0x47953c[_0xb4fac3(0x48d)](_0x4cf44c,_0x79c67c),_0x564eca[_0xb4fac3(0x3cd)]({'unitID':_0x5c2992,'redoMutations':_0x4cf44c,'undoMutations':_0x526d0c}),!0x0;}},_0x50b873={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x4b9)],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x20020b,_0x60b132){const _0x2b424b=_0x1f66a3;if(!_0x60b132)return!0x1;const _0x5e6c89=_0x20020b[_0x2b424b(0x2ab)](_0x47953c[_0x2b424b(0x249)]),{pivotTableId:_0x443351,fieldId:_0x518396,valueFilterInfo:_0x3e2e98,unitId:_0x5d448e,subUnitId:_0x222100}=_0x60b132,_0x1934f3=_0x20020b['get'](_0x447ba5[_0x2b424b(0x281)]),_0x551e2a=_0x20020b[_0x2b424b(0x2ab)](_0x47953c[_0x2b424b(0x293)]),_0x45f51d=(await _0x1934f3[_0x2b424b(0x3ac)]({'unitId':_0x5d448e,'subUnitId':_0x222100,'pivotTableId':_0x443351,'params':{'type':_0x1e1e2c[_0x2b424b(0x425)],'setValuePivotFilter':{'tableFieldId':_0x518396,'filterInfo':_0x3e2e98}}}))[_0x2b424b(0x3bd)][_0x2b424b(0x24e)];if(!_0x45f51d)return!0x1;const {changesets:_0x38dfeb,pivotTableConfig:_0x410b53,isEmpty:_0x216263,view:_0x2ff75f}=_0x45f51d,_0xb785e5=_0x410b53[_0x2b424b(0x38e)],_0x178501=new _0x454ae3[(_0x2b424b(0x1e2))]();_0x178501[_0x2b424b(0x2a5)](_0x2ff75f);const _0x187f2e={'cellInfo':_0xb785e5,'view':_0x178501,'isEmpty':_0x216263};if(!await _0x20020b[_0x2b424b(0x2ab)](_0x447ba5['SheetsPivotTableService'])[_0x2b424b(0x446)][_0x2b424b(0x240)](_0x20ba16)(!0x0,_0x187f2e))return!0x1;const _0x533184=_0x3c8c3a(_0x20020b,_0x178501,_0xb785e5,_0x216263),_0x4e5f10=_0xf44bfb(_0x20020b,_0x187f2e),{undos:_0x5c5a32,redos:_0x5a3643}=_0x430022(_0x5e6c89,{'pivotTableId':_0x443351,'unitId':_0x5d448e,'subUnitId':_0x222100},_0x38dfeb);return _0x47953c[_0x2b424b(0x48d)]([..._0x533184[_0x2b424b(0x398)],..._0x4e5f10[_0x2b424b(0x398)],..._0x5a3643],_0x5e6c89),_0x551e2a[_0x2b424b(0x3cd)]({'unitID':_0x5d448e,'redoMutations':[..._0x533184['redos'],..._0x4e5f10[_0x2b424b(0x398)],..._0x5a3643],'undoMutations':[..._0x533184[_0x2b424b(0x41e)],..._0x4e5f10['undos'],..._0x5c5a32]}),!0x0;}},_0x355569={'id':_0x1f66a3(0x450),'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x3fa)],'handler':(_0x5392ce,_0x14523d)=>{const _0x275f97=_0x1f66a3;if(!_0x14523d)return!0x1;if(!!_0x5392ce[_0x275f97(0x2ab)](_0x47953c[_0x275f97(0x4bb)])[_0x275f97(0x353)](_0x1ff33b))return!0x0;const {unitId:_0x45e07c,subUnitId:_0xacb66d,pivotTableId:_0x17d16b,tableFieldId:_0x337c56,dateType:_0x4e0e06}=_0x14523d,_0x1e2a2a=_0x5392ce[_0x275f97(0x2ab)](_0x447ba5['SheetsPivotDataSourceModel']),_0x4be658=_0x1e2a2a['getPivotTableInstance'](_0x17d16b);if(!_0x4be658)return!0x1;const _0x5e5fe6=_0x4be658['getDataFieldByTableId'](_0x337c56);if(!_0x5e5fe6)return!0x1;const _0x596343=_0x5e5fe6[_0x275f97(0x2f5)](),_0x210137=_0x4be658[_0x275f97(0x3ea)](_0x596343),_0x4faf43=(_0x210137==null?void 0x0:_0x210137[_0x275f97(0x484)]())+'\x20'+_0x47b1d6(_0x5392ce,_0x4e0e06);_0x1e2a2a['getCollection'](_0x45e07c,_0x17d16b)[_0x275f97(0x3bf)](_0x5e5fe6['id'],_0x4faf43);const _0x27940e=_0x4be658['getTableFieldById'](_0x337c56);if(!_0x27940e)return!0x1;_0x4be658[_0x275f97(0x250)](_0x27940e['getId'](),_0x4faf43),_0x5e5fe6[_0x275f97(0x3ef)](_0x4e0e06);const _0x1f86cf=_0x1e2a2a[_0x275f97(0x2ac)](_0x45e07c,_0xacb66d,_0x17d16b);return _0x1e2a2a[_0x275f97(0x3db)]({'unitId':_0x45e07c,'subUnitId':_0xacb66d,'token':_0x17d16b,'type':_0x35ec99[_0x275f97(0x45a)],'pivotConfig':_0x1f86cf}),!0x0;}},_0x405c13={'id':'sheet.command.update-date-group','type':_0x47953c[_0x1f66a3(0x2ee)]['COMMAND'],'handler':(_0x4c3dd7,_0x731e27)=>{const _0xee1bae=_0x1f66a3;if(!_0x731e27)return!0x1;const _0x354562=_0x4c3dd7[_0xee1bae(0x2ab)](_0x47953c['IUndoRedoService']),{unitId:_0x262a17,subUnitId:_0x1694f5,pivotTableId:_0x3669b6,tableFieldId:_0x5f5408}=_0x731e27,_0x2af224=[],_0xb098d8=[],_0x4b416d=_0x4c3dd7[_0xee1bae(0x2ab)](_0x447ba5[_0xee1bae(0x322)]),_0xae3809=_0x4b416d[_0xee1bae(0x4dd)](_0x262a17,_0x3669b6),_0x47002a=_0x4b416d[_0xee1bae(0x2ac)](_0x262a17,_0x1694f5,_0x3669b6);if(!(_0x47002a!=null&&_0x47002a[_0xee1bae(0x421)][_0xee1bae(0x434)]))return!0x1;const _0x570057=Object[_0xee1bae(0x31e)](_0x47002a[_0xee1bae(0x421)]['dimension'])[_0xee1bae(0x3a3)](_0x4e0024=>_0x4e0024['id']===_0x5f5408);if(!_0x570057)return!0x1;const _0x4bea37=_0x570057[_0xee1bae(0x2dd)];if(!(_0xae3809!=null&&_0xae3809['fields']))return!0x1;const _0x16f0b3=Object[_0xee1bae(0x31e)](_0xae3809==null?void 0x0:_0xae3809[_0xee1bae(0x448)])[_0xee1bae(0x3a3)](_0x197e31=>_0x197e31['id']===_0x4bea37);if(!_0x16f0b3)return!0x1;_0x454ae3[_0xee1bae(0x3d1)](_0x16f0b3)&&_0x2af224[_0xee1bae(0x2b4)]({'id':_0x355569['id'],'params':{..._0x731e27,'dateType':_0x16f0b3[_0xee1bae(0x32b)]}}),_0xb098d8[_0xee1bae(0x2b4)]({'id':_0x355569['id'],'params':{..._0x731e27}});const _0x24353e=_0x4c3dd7[_0xee1bae(0x2ab)](_0x47953c[_0xee1bae(0x249)]);return _0x47953c[_0xee1bae(0x48d)](_0xb098d8,_0x24353e)&&_0x354562[_0xee1bae(0x3cd)]({'unitID':_0x262a17,'undoMutations':_0x2af224,'redoMutations':_0xb098d8}),!0x0;}},_0x49655e={'type':_0x47953c['CommandType'][_0x1f66a3(0x4b9)],'id':_0x1f66a3(0x475),async 'handler'(_0xb4f7bd,_0x44063d){const _0x2f82fd=_0x1f66a3;if(!_0x44063d)return!0x1;const _0x446ac3=_0xb4f7bd[_0x2f82fd(0x2ab)](_0x47953c[_0x2f82fd(0x249)]),_0x39e846=_0xb4f7bd[_0x2f82fd(0x2ab)](_0x47953c['IUndoRedoService']),_0x73259a=_0xb4f7bd['get'](_0x447ba5[_0x2f82fd(0x281)]),{displayName:_0x1a1b26,subtotalType:_0x4b4996,format:_0xbcabf1,tableFieldId:_0x47359b,pivotTableId:_0x3d630f,unitId:_0x33e3c5,subUnitId:_0x2e8f81}=_0x44063d,_0x7f678f=(await _0x73259a[_0x2f82fd(0x3ac)]({'unitId':_0x33e3c5,'subUnitId':_0x2e8f81,'pivotTableId':_0x3d630f,'params':{'type':_0x1e1e2c[_0x2f82fd(0x2ea)],'setPivotSetting':{'tableFieldId':_0x47359b,'displayName':_0x1a1b26,'subtotalType':_0x4b4996,'format':_0xbcabf1}}}))[_0x2f82fd(0x3bd)][_0x2f82fd(0x336)];if(!_0x7f678f)return!0x1;const {changesets:_0x4c292e,view:_0x1f7e70,pivotTableConfig:_0x4f53ab,isEmpty:_0x13d68a}=_0x7f678f,_0x341e70=_0x4f53ab[_0x2f82fd(0x38e)],_0x30ab12=new _0x454ae3[(_0x2f82fd(0x1e2))]();_0x30ab12[_0x2f82fd(0x2a5)](_0x1f7e70);const _0x460afe={'cellInfo':_0x341e70,'view':_0x30ab12,'isEmpty':_0x13d68a};if(!await _0xb4f7bd['get'](_0x447ba5['SheetsPivotTableService'])[_0x2f82fd(0x446)][_0x2f82fd(0x240)](_0x20ba16)(!0x0,_0x460afe))return!0x1;const _0x459db6=_0x3c8c3a(_0xb4f7bd,_0x30ab12,_0x341e70,_0x13d68a),_0x2d5feb=_0xf44bfb(_0xb4f7bd,_0x460afe),{undos:_0x2a28c8,redos:_0x402207}=_0x430022(_0x446ac3,{'pivotTableId':_0x3d630f,'unitId':_0x33e3c5,'subUnitId':_0x2e8f81},_0x4c292e);return _0x47953c[_0x2f82fd(0x48d)]([..._0x459db6['redos'],..._0x2d5feb[_0x2f82fd(0x398)],..._0x402207],_0x446ac3),_0x39e846[_0x2f82fd(0x3cd)]({'unitID':_0x33e3c5,'redoMutations':[..._0x459db6[_0x2f82fd(0x398)],..._0x2d5feb['redos'],..._0x402207],'undoMutations':[..._0x459db6[_0x2f82fd(0x41e)],..._0x2d5feb['undos'],..._0x2a28c8]}),!0x0;}},_0x5f48b5={'type':_0x47953c['CommandType'][_0x1f66a3(0x3fa)],'id':_0x1f66a3(0x220),'handler'(_0x4a6a62,_0x58ed56){const _0x281667=_0x1f66a3;if(!_0x58ed56)return!0x1;if(!!_0x4a6a62[_0x281667(0x2ab)](_0x47953c[_0x281667(0x4bb)])[_0x281667(0x353)](_0x1ff33b))return!0x0;const _0x1dd699=_0x4a6a62[_0x281667(0x2ab)](_0x447ba5[_0x281667(0x330)]),{pivotTableId:_0x5e89f7,deleteIds:_0x10aae9,collectionJSON:_0x146c72,dataRangeInfo:_0x21cdb9,unitId:_0xfb1d31,subUnitId:_0x2e2ef6}=_0x58ed56,_0x21c9fc=_0x1dd699[_0x281667(0x37f)](_0x5e89f7),_0x175f20=_0x1dd699[_0x281667(0x2ac)](_0xfb1d31,_0x2e2ef6,_0x5e89f7);if(!_0x21c9fc||!_0x175f20)return!0x1;const {collection:_0x8da3ec,updateDataFieldList:_0x523b40}=_0x1dd699[_0x281667(0x39a)](_0x5e89f7,_0x146c72,_0x21cdb9,_0x175f20[_0x281667(0x38e)]);_0x1dd699['refreshData'](_0x8da3ec,_0x523b40,_0x21cdb9),_0x21c9fc[_0x281667(0x316)](_0x8da3ec);for(const _0x172b0b of _0x10aae9)_0x1dd699[_0x281667(0x431)](_0x21cdb9[_0x281667(0x33e)],_0x172b0b);const _0x469b70=_0x1dd699['getPivotTableConfig'](_0xfb1d31,_0x2e2ef6,_0x5e89f7);return _0x469b70[_0x281667(0x497)]=JSON[_0x281667(0x47f)](JSON['stringify'](_0x21cdb9)),_0x1dd699[_0x281667(0x3db)]({'unitId':_0xfb1d31,'subUnitId':_0x2e2ef6,'token':_0x5e89f7,'type':_0x35ec99[_0x281667(0x45a)]}),!0x0;}},_0x5003c2={'type':_0x47953c[_0x1f66a3(0x2ee)][_0x1f66a3(0x4b9)],'id':'sheet.command.update-pivot-table-source-range',async 'handler'(_0x18645f,_0x3f3476){const _0x317f57=_0x1f66a3,_0x407fb6=_0x18645f['get'](_0x47953c[_0x317f57(0x249)]),_0x241f7b=_0x18645f[_0x317f57(0x2ab)](_0x447ba5[_0x317f57(0x281)]),_0x21df2c=_0x18645f[_0x317f57(0x2ab)](_0x47953c[_0x317f57(0x293)]);if(!_0x3f3476)return!0x1;const {token:_0x13a178,dataRangeInfo:_0x1f0cde,unitId:_0x180201,subUnitId:_0x534b6e}=_0x3f3476,_0x3fe896=[],_0x3d3b73=[],_0x7995c=(await _0x241f7b[_0x317f57(0x3ac)]({'unitId':_0x180201,'subUnitId':_0x534b6e,'pivotTableId':_0x13a178,'params':{'type':_0x1e1e2c[_0x317f57(0x314)],'updatePivotSource':{'dataRangeInfo':_0x1f0cde,'unitId':_0x180201,'subUnitId':_0x534b6e}}}))[_0x317f57(0x3bd)][_0x317f57(0x1ce)];if(!_0x7995c)return!0x1;const {changesets:_0x5c2edb,deleteIds:_0x2589f0,collectionConfig:_0x56ac38,oldCollectionConfig:_0x2a9abc,view:_0xf9765e,isEmpty:_0x4a52cc,pivotTableConfig:_0x330c73}=_0x7995c;_0x3d3b73[_0x317f57(0x2b4)]({'id':_0x5f48b5['id'],'params':{'pivotTableId':_0x13a178,'deleteIds':_0x2589f0,'collectionJSON':_0x56ac38,'dataRangeInfo':_0x1f0cde,'unitId':_0x180201,'subUnitId':_0x534b6e}}),_0x3fe896[_0x317f57(0x476)]({'id':_0x5f48b5['id'],'params':{'pivotTableId':_0x13a178,'deleteIds':[],'collectionJSON':_0x2a9abc,'dataRangeInfo':_0x330c73['sourceRangeInfo'],'unitId':_0x180201,'subUnitId':_0x534b6e}});const _0x1a374d=_0x330c73[_0x317f57(0x38e)],_0x1d6e22=new _0x454ae3[(_0x317f57(0x1e2))]();_0x1d6e22['formJSON'](_0xf9765e);const _0x3b20d5={'cellInfo':_0x1a374d,'view':_0x1d6e22,'isEmpty':_0x4a52cc};if(!await _0x18645f[_0x317f57(0x2ab)](_0x447ba5[_0x317f57(0x26a)])[_0x317f57(0x446)][_0x317f57(0x240)](_0x20ba16)(!0x0,_0x3b20d5))return!0x1;const _0x424746=_0x3c8c3a(_0x18645f,_0x1d6e22,_0x1a374d,_0x4a52cc),_0xf3ad7b=_0xf44bfb(_0x18645f,_0x3b20d5),{undos:_0x1dbf79,redos:_0x4fb15a}=_0x430022(_0x407fb6,{'pivotTableId':_0x13a178,'unitId':_0x180201,'subUnitId':_0x534b6e},_0x5c2edb);return _0x47953c[_0x317f57(0x48d)]([..._0x424746[_0x317f57(0x398)],..._0xf3ad7b[_0x317f57(0x398)],..._0x3d3b73,..._0x1dbf79],_0x407fb6),_0x21df2c[_0x317f57(0x3cd)]({'unitID':_0x180201,'redoMutations':[..._0x424746[_0x317f57(0x398)],..._0xf3ad7b[_0x317f57(0x398)],..._0x3d3b73,..._0x1dbf79],'undoMutations':[..._0x424746[_0x317f57(0x41e)],..._0xf3ad7b[_0x317f57(0x41e)],..._0x3fe896,..._0x4fb15a]}),!0x0;}},_0x10cf92={'type':_0x47953c['CommandType']['COMMAND'],'id':_0x1f66a3(0x43e),async 'handler'(_0x12ca77,_0x56443b){const _0x3256d8=_0x1f66a3;if(!_0x56443b)return!0x1;const _0x1c7bda=_0x12ca77[_0x3256d8(0x2ab)](_0x47953c[_0x3256d8(0x249)]),_0x3fb87e=_0x12ca77[_0x3256d8(0x2ab)](_0x447ba5[_0x3256d8(0x281)]),_0x238390=_0x12ca77[_0x3256d8(0x2ab)](_0x47953c[_0x3256d8(0x364)]),_0x31a7fe=_0x12ca77[_0x3256d8(0x2ab)](_0x47953c[_0x3256d8(0x293)]),{pivotTableId:_0x173b11,position:_0x5d8bf1,index:_0x3a7d65}=_0x56443b,_0x201b30=_0x271f69[_0x3256d8(0x4d4)](_0x238390);if(!_0x201b30)return!0x1;const {unitId:_0x519213,subUnitId:_0x5df8ca}=_0x201b30,_0x25be94=(await _0x3fb87e[_0x3256d8(0x3ac)]({'unitId':_0x519213,'subUnitId':_0x5df8ca,'pivotTableId':_0x173b11,'params':{'type':_0x1e1e2c[_0x3256d8(0x3b7)],'updateValuePosition':{'position':_0x5d8bf1,'index':_0x3a7d65}}}))[_0x3256d8(0x3bd)][_0x3256d8(0x4aa)];if(!_0x25be94)return!0x1;const {changesets:_0xad2ec9,view:_0x49334d,isEmpty:_0x1f60e9,pivotTableConfig:_0x3b06dd}=_0x25be94,_0x4e8f47=_0x3b06dd[_0x3256d8(0x38e)],_0xf44d26=new _0x454ae3['PivotView']();_0xf44d26[_0x3256d8(0x2a5)](_0x49334d);const _0xd536e8=_0x12ca77['get'](_0x447ba5[_0x3256d8(0x26a)]),_0x32a2e0={'cellInfo':_0x4e8f47,'view':_0xf44d26,'isEmpty':_0x1f60e9};if(!await _0xd536e8['asyncInterceptor'][_0x3256d8(0x240)](_0x20ba16)(!0x0,_0x32a2e0))return!0x1;const _0x55e4d2=_0x3c8c3a(_0x12ca77,_0xf44d26,_0x4e8f47,_0x1f60e9),_0x4a18a4=_0xf44bfb(_0x12ca77,_0x32a2e0),{undos:_0x4bedd9,redos:_0xe84e62}=_0x430022(_0x1c7bda,{'pivotTableId':_0x173b11,'unitId':_0x519213,'subUnitId':_0x5df8ca},_0xad2ec9);return _0x47953c[_0x3256d8(0x48d)]([..._0x55e4d2[_0x3256d8(0x398)],..._0x4a18a4[_0x3256d8(0x398)],..._0xe84e62],_0x1c7bda),_0x31a7fe[_0x3256d8(0x3cd)]({'unitID':_0x519213,'redoMutations':[..._0x55e4d2['redos'],..._0x4a18a4[_0x3256d8(0x398)],..._0xe84e62],'undoMutations':[..._0x55e4d2[_0x3256d8(0x41e)],..._0x4a18a4[_0x3256d8(0x41e)],..._0x4bedd9]}),!0x0;}},_0x3a0266={'type':_0x47953c[_0x1f66a3(0x2ee)]['MUTATION'],'id':'sheet.operation.pivot-table-view-formula-mark-dirty','handler'(){return!0x0;}};var _0x21b3b4=Object[_0x1f66a3(0x2e4)],_0x2504ce=(_0x8d259f,_0x3e6d9c,_0x3a3853,_0x501ba)=>{for(var _0x516dfc=_0x501ba>0x1?void 0x0:_0x501ba?_0x21b3b4(_0x3e6d9c,_0x3a3853):_0x3e6d9c,_0x405096=_0x8d259f['length']-0x1,_0x240b14;_0x405096>=0x0;_0x405096--)(_0x240b14=_0x8d259f[_0x405096])&&(_0x516dfc=_0x240b14(_0x516dfc)||_0x516dfc);return _0x516dfc;},_0x6308ad=(_0x281cab,_0x22a64d)=>(_0x4cd0e5,_0x218496)=>_0x22a64d(_0x4cd0e5,_0x218496,_0x281cab);const _0x42af53=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x126890=(_0x177d2c,_0x1c0716,_0x6e7300)=>{const _0x386167=_0x1f66a3,_0x466d9d=_0x177d2c['dataFieldsCollection'];_0x177d2c[_0x386167(0x24f)](_0x14c6ef=>{const _0x552ad9=_0x386167,_0x480c28=_0x14c6ef['getId'](),_0x1e3894=_0x14c6ef[_0x552ad9(0x3c9)](),_0xdcd8c4=_0x14c6ef[_0x552ad9(0x241)](),_0x1b14ad=_0x14c6ef['getDisplayName']();_0x1c0716[_0x1e3894]&&_0x1c0716[_0x1e3894]===_0x1b14ad&&_0xdcd8c4===_0x1b14ad&&(_0x177d2c['renameField'](_0x480c28,_0x466d9d['getDisplayName'](_0x1e3894)),_0x14c6ef[_0x552ad9(0x260)](_0x466d9d[_0x552ad9(0x49e)](_0x1e3894)));}),_0x177d2c[_0x386167(0x479)](_0x454ae3[_0x386167(0x3cf)][_0x386167(0x390)],_0x58c866=>{const _0x11b8e1=_0x386167,_0x3af771=_0x58c866[_0x11b8e1(0x4a7)](),_0x221fe4=_0x58c866['getDataFieldId'](),_0x3da71d=_0x58c866[_0x11b8e1(0x241)](),_0x3abe09=_0x58c866[_0x11b8e1(0x49e)](),_0x49771d=_0x58c866[_0x11b8e1(0x4d7)](),_0x48963d=_0x6e7300(_0x3da71d,_0x49771d);_0x1c0716[_0x221fe4]&&_0x1c0716[_0x221fe4]===_0x3da71d&&_0x48963d===_0x3abe09&&(_0x177d2c[_0x11b8e1(0x250)](_0x3af771,_0x6e7300(_0x466d9d[_0x11b8e1(0x49e)](_0x221fe4),_0x49771d)),_0x58c866[_0x11b8e1(0x260)](_0x466d9d['getDisplayName'](_0x221fe4)));});},_0x293286=(_0x139df1,_0x2cc3d6,_0x3eead7)=>{const _0x459840=_0x1f66a3;var _0x40b743,_0x38a202;const {arrayFormulaCellData:_0x43b61f,unitData:_0x28ca53}=_0x2cc3d6,{unitId:_0x10546c,subUnitId:_0x597945}=_0x3eead7,_0x582283=_0x3eead7[_0x459840(0x346)],{startColumn:_0x2455a6,endColumn:_0x27226a}=_0x582283,_0x6936cb=(_0x40b743=_0x43b61f==null?void 0x0:_0x43b61f[_0x10546c])==null?void 0x0:_0x40b743[_0x597945],_0x2a6f3c=(_0x38a202=_0x28ca53==null?void 0x0:_0x28ca53[_0x10546c])==null?void 0x0:_0x38a202[_0x597945],_0xd3b295=new Set(),_0x5c33a4=_0x27226a-_0x2455a6+0x1,{dirtyRanges:_0x3580fb}=_0x139df1;if(_0x3580fb)for(const {range:_0x57e893,sheetId:_0x5da9e3,unitId:_0x557cf8}of _0x3580fb){if(_0x5da9e3!==_0x597945||_0x10546c!==_0x557cf8)continue;const _0x1d67ac=_0x47953c[_0x459840(0x24d)][_0x459840(0x31c)](_0x57e893,_0x582283);if(_0x1d67ac){const {startColumn:_0x21f8e2,endColumn:_0x4db76b}=_0x1d67ac;for(let _0x31bdcd=_0x21f8e2;_0x31bdcd<=_0x4db76b;_0x31bdcd++)_0xd3b295[_0x459840(0x224)](_0x31bdcd);}}if(_0xd3b295[_0x459840(0x3aa)]===_0x5c33a4||_0xd3b295[_0x459840(0x3aa)]===_0x5c33a4)return Array[_0x459840(0x261)](_0xd3b295);if(_0x2a6f3c){const _0x48a440=_0x2a6f3c[_0x459840(0x277)](),_0x372944=Object['keys'](_0x48a440);for(const _0x18c594 of _0x372944){const _0x5cac40=Number(_0x18c594),_0x568944=_0x48a440[_0x5cac40];if(_0xd3b295[_0x459840(0x3aa)]===_0x5c33a4)break;for(const _0x34fe2b in _0x568944){const _0x4afd76=Number(_0x34fe2b);_0x4afd76<_0x2455a6||_0x4afd76>_0x27226a||_0xd3b295[_0x459840(0x224)](_0x4afd76);}}}if(_0x6936cb){const _0x35b8c2=_0x6936cb[_0x459840(0x277)](),_0x19958a=Object['keys'](_0x35b8c2);for(const _0x2a999b of _0x19958a){const _0x20a0fb=Number(_0x2a999b),_0x28fc12=_0x35b8c2[_0x20a0fb];if(_0xd3b295['size']===_0x5c33a4)break;for(const _0x3647e6 in _0x28fc12){const _0x39925a=Number(_0x3647e6);_0x39925a<_0x2455a6||_0x39925a>_0x27226a||_0xd3b295[_0x459840(0x224)](_0x39925a);}}}return Array[_0x459840(0x261)](_0xd3b295);},_0x1cbafb=_0x3510ed=>{const _0xc61f13=_0x1f66a3,_0x43731d=new Set(),_0x50cb0e=[];for(const _0x4a4737 of _0x3510ed){const _0x12c611=_0x4a4737[_0xc61f13(0x404)]+','+_0x4a4737[_0xc61f13(0x443)]+','+_0x4a4737[_0xc61f13(0x2df)]+','+_0x4a4737[_0xc61f13(0x2b1)];_0x43731d['has'](_0x12c611)||(_0x43731d[_0xc61f13(0x224)](_0x12c611),_0x50cb0e[_0xc61f13(0x2b4)](_0x4a4737));}return _0x50cb0e;};let _0x2ba2bd=class extends _0x47953c['Disposable']{constructor(_0x1e6bb2,_0x406946,_0x2f19ec,_0x58fa5f,_0x31db23){const _0x3f8e31=_0x1f66a3;super(),_0x3e3ba8(this,_0x3f8e31(0x2c6),new _0x21de06[(_0x3f8e31(0x444))](!0x0)),_0x3e3ba8(this,_0x3f8e31(0x385),_0x25e960=>{const _0x49ac47=_0x3f8e31;this[_0x49ac47(0x2c6)][_0x49ac47(0x201)](!0x1);}),_0x3e3ba8(this,_0x3f8e31(0x41b),_0x3add10=>{const _0x3022c7=_0x3f8e31;this[_0x3022c7(0x2c6)][_0x3022c7(0x201)](!0x0);}),(this[_0x3f8e31(0x3ec)]=_0x1e6bb2,this[_0x3f8e31(0x392)]=_0x406946,this['_commandService']=_0x2f19ec,this['_globalComputingSrv']=_0x58fa5f,this[_0x3f8e31(0x2b5)]=_0x31db23,this[_0x3f8e31(0x25f)](),this[_0x3f8e31(0x233)]());}[_0x1f66a3(0x25f)](){const _0x11f389=_0x1f66a3;this[_0x11f389(0x4d8)](),this[_0x11f389(0x46f)](),this[_0x11f389(0x416)](),this[_0x11f389(0x376)]();}[_0x1f66a3(0x34f)](){const _0x5e5b09=_0x1f66a3;this[_0x5e5b09(0x39c)]['pushComputingStatusSubject'](this[_0x5e5b09(0x2c6)]),_0x454ae3[_0x5e5b09(0x25e)][_0x5e5b09(0x366)](_0x454ae3[_0x5e5b09(0x20d)][_0x5e5b09(0x282)],this[_0x5e5b09(0x385)]),_0x454ae3[_0x5e5b09(0x25e)]['registerCallbackWithEvent'](_0x454ae3[_0x5e5b09(0x20d)]['onQueryEnd'],this[_0x5e5b09(0x41b)]);}[_0x1f66a3(0x233)](){const _0x5b13e5=_0x1f66a3;this[_0x5b13e5(0x4e5)](this[_0x5b13e5(0x3c1)]['onCommandExecuted'](_0x4113f7=>{const _0x350d52=_0x5b13e5;_0x4113f7['id']===_0x271f69[_0x350d52(0x286)]['id']&&this[_0x350d52(0x3ec)]['handleMoveRange'](_0x4113f7[_0x350d52(0x352)]);})),this[_0x5b13e5(0x4e5)](this[_0x5b13e5(0x3c1)]['onCommandExecuted'](_0x99345=>{const _0x23635f=_0x5b13e5;if(_0x99345['id']!==_0xbdd99b['id'])return;const _0x5126dc=_0x99345[_0x23635f(0x352)],{unitId:_0x30ef13,subUnitId:_0x57dd4a,pivotTableId:_0x1fe121}=_0x5126dc,_0x56bf4f=_0x5126dc[_0x23635f(0x352)]['type'],_0x259125={};switch(_0x56bf4f){case _0x1e1e2c[_0x23635f(0x1ee)]:{const _0xa00bd7=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x4b0)];if(!_0xa00bd7)return;const {row:_0x1faeed,col:_0x206abd,cellData:_0x4d71b2,pivotItemRenderInfoCache:_0x1c2fb1,tableFieldId:_0x1d67c9}=_0xa00bd7,_0x3e25f4=this['_sheetsPivotDataSourceModel'][_0x23635f(0x37f)](_0x5126dc[_0x23635f(0x42f)]);if(!_0x3e25f4||!_0x1c2fb1)return;if(_0x1d67c9){const _0x4318d9=_0x3e25f4[_0x23635f(0x1ed)](_0x1d67c9);if(!_0x4318d9)return;_0x259125[_0x23635f(0x4b0)]={..._0x3e25f4[_0x23635f(0x242)](_0x4318d9),'tableFieldId':_0x1d67c9,'pivotTableId':_0x5126dc['pivotTableId'],'filterInfo':_0x3e25f4[_0x23635f(0x44d)](_0x1d67c9),'sortInfo':_0x3e25f4[_0x23635f(0x47a)](_0x1d67c9),'format':_0x3e25f4[_0x23635f(0x371)](_0x1d67c9)};}else{const _0x5dbd74=_0x30590d(_0x1faeed,_0x206abd,_0x4d71b2,_0x3e25f4,_0x1c2fb1),_0x57857b=_0x5dbd74==null?void 0x0:_0x5dbd74[_0x23635f(0x40e)];if(!_0x57857b)return;const _0x46e28a=_0x3e25f4[_0x23635f(0x1ed)](_0x57857b);if(!_0x46e28a)return;_0x259125[_0x23635f(0x4b0)]={..._0x3e25f4['getDataFieldItemInfo'](_0x46e28a),'tableFieldId':_0x57857b,'pivotTableId':_0x5126dc[_0x23635f(0x42f)],'filterInfo':_0x3e25f4[_0x23635f(0x44d)](_0x57857b),'sortInfo':_0x3e25f4['getSortInfo'](_0x57857b),'format':_0x3e25f4['getFieldFormat'](_0x57857b)};}}break;case _0x1e1e2c[_0x23635f(0x3b3)]:{const _0x3f7ba2=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x324)];if(!_0x3f7ba2)return;const {pivotTableId:_0x84862d}=_0x3f7ba2,_0x8f2f38=this['_sheetsPivotDataSourceModel'][_0x23635f(0x37f)](_0x84862d);if(!_0x8f2f38)return;const _0x2f3d56=this['_sheetsPivotDataSourceModel'][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x84862d),_0x410c16=_0x286058(_0x8f2f38,_0x84862d,_0x2f3d56);_0x259125['panel']=_0x410c16;}break;case _0x1e1e2c[_0x23635f(0x367)]:{const _0x3477dc=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x1fe121),_0x1aef20=this[_0x23635f(0x3ec)][_0x23635f(0x3ca)](_0x30ef13),_0x1325e1=_0x1aef20[_0x23635f(0x4dd)](_0x1fe121);let _0x26c9b2=null;const _0x3a10e4=this[_0x23635f(0x3ec)]['getPivotTableConfig'](_0x30ef13,_0x57dd4a,_0x1fe121),_0x4e6bb8=_0x5126dc['params']['addPivotField'];if(!_0x3477dc||!_0x3a10e4||!_0x4e6bb8)return!0x1;const {dataFieldId:_0xe43cfc,fieldArea:_0x148437,index:_0x344535}=_0x4e6bb8;_0x3477dc['startCollectChangeset']();const _0x1eccd0=_0x3477dc[_0x23635f(0x471)](_0xe43cfc,_0x148437,_0x344535);if(_0x1eccd0&&_0x148437===_0x454ae3['PivotTableFiledAreaEnum'][_0x23635f(0x390)]){const _0x43a439=_0x1eccd0[_0x23635f(0x4a7)](),_0x1b5ef6=_0x3477dc[_0x23635f(0x1ed)](_0x43a439);if(_0x1b5ef6){const _0x4549ec=_0x1b5ef6==null?void 0x0:_0x1b5ef6[_0x23635f(0x3ab)]();_0x3477dc['setSubtotalType'](_0x1eccd0[_0x23635f(0x4a7)](),_0x4549ec===_0x454ae3[_0x23635f(0x491)][_0x23635f(0x2e1)]?_0x454ae3[_0x23635f(0x332)][_0x23635f(0x38a)]:_0x454ae3[_0x23635f(0x332)][_0x23635f(0x39e)]);}const _0x2a0a10=_0x3477dc[_0x23635f(0x2e2)](),_0x5d97f3=_0x3477dc[_0x23635f(0x3f9)](),_0x4aac48=_0x3477dc[_0x23635f(0x3af)](_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x390)]);if(_0x2a0a10===-0x1&&_0x4aac48>0x1){const _0x4849ec=_0x5d97f3===_0x454ae3['PivotTableValuePositionEnum']['None']?_0x454ae3['PivotTableValuePositionEnum'][_0x23635f(0x36c)]:_0x5d97f3,_0x2ff962=_0x4849ec===_0x454ae3[_0x23635f(0x402)][_0x23635f(0x358)]?_0x454ae3[_0x23635f(0x3cf)]['Row']:_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x36c)];_0x3477dc[_0x23635f(0x4aa)](_0x4849ec,_0x3477dc[_0x23635f(0x3af)](_0x2ff962));}}else{if(_0x1eccd0&&(_0x148437===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x358)]||_0x148437===_0x454ae3['PivotTableFiledAreaEnum'][_0x23635f(0x36c)])){const _0xc1852b=_0x1eccd0[_0x23635f(0x4a7)](),_0x3c6983=_0x3477dc[_0x23635f(0x1ed)](_0xc1852b);if(_0x3c6983&&(_0x3c6983==null?void 0x0:_0x3c6983[_0x23635f(0x3ab)]())===_0x454ae3['PivotDataFieldDataTypeEnum'][_0x23635f(0x2a1)]){const _0x407e27=_0x3c6983[_0x23635f(0x2c8)]();if(_0x407e27&&_0x3477dc[_0x23635f(0x20c)](_0x1eccd0[_0x23635f(0x4a7)](),_0x407e27),!_0x1325e1[_0x23635f(0x23d)]()['some'](_0x1061ee=>{const _0x7fd4be=_0x23635f,_0x463439=_0x1325e1[_0x7fd4be(0x2ca)](_0x1061ee);return _0x454ae3[_0x7fd4be(0x32f)](_0x463439)?_0x463439['getFieldInfo']()[_0x7fd4be(0x4ec)]===_0xe43cfc:!0x1;})){const _0x367549=_0x1aef20[_0x23635f(0x38b)](),_0x1b3708=_0x30812f(_0x3c6983['maxDate'],_0x3c6983[_0x23635f(0x46b)]),_0x2f29be=_0x3c6983['getName']()+_0x23635f(0x426)+_0x47b1d6(this[_0x23635f(0x2b5)],_0x1b3708),_0x559baa=new _0x454ae3[(_0x23635f(0x432))](_0x367549,_0x2f29be,_0x454ae3[_0x23635f(0x4a1)](0x3),_0x3c6983[_0x23635f(0x4a7)](),_0x1b3708);_0x1aef20[_0x23635f(0x247)](_0x559baa),_0x1325e1[_0x23635f(0x4c4)](_0x367549,_0x2f29be),_0x3477dc[_0x23635f(0x471)](_0x367549,_0x148437,(_0x344535!=null?_0x344535:0x0)+0x1),_0x26c9b2=_0x559baa;}}}}const _0x45542e=_0x3477dc[_0x23635f(0x46c)](),_0x3a2172=_0x3477dc[_0x23635f(0x267)]()[_0x23635f(0x413)]();let _0x2884db;if(_0x26c9b2){_0x2884db=_0x26c9b2[_0x23635f(0x413)]();const _0x2ab5a6=_0x26c9b2['getId']();_0x1325e1['deleteField'](_0x2ab5a6);let _0x5db6eb=!0x0;for(const _0x25b2aa in _0x1aef20[_0x23635f(0x340)])if(_0x1aef20[_0x23635f(0x340)][_0x25b2aa][_0x23635f(0x23d)]()[_0x23635f(0x32e)](_0x2ab5a6)){_0x5db6eb=!0x1;break;}_0x5db6eb&&_0x1aef20[_0x23635f(0x4ba)](_0x2ab5a6);}const _0x66d6d7=_0x3477dc[_0x23635f(0x271)]();_0x259125[_0x23635f(0x2d2)]={'view':_0x3a2172,'changesets':_0x66d6d7,'isEmpty':_0x45542e,'pivotTableConfig':_0x3a10e4,'shouldBeAddedGroupJSON':_0x2884db};}break;case _0x1e1e2c['AddPivotTable']:{const _0x186bfa=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x29d)];if(!_0x186bfa)return;const _0x34ebc5=_0x186bfa[_0x23635f(0x497)],_0x2f9308=_0x186bfa[_0x23635f(0x42f)],{collection:_0x28a321}=this['_sheetsPivotDataSourceModel'][_0x23635f(0x320)]({'unitId':_0x34ebc5[_0x23635f(0x33e)],'sheetName':_0x34ebc5[_0x23635f(0x303)],'subUnitId':_0x34ebc5[_0x23635f(0x388)],'range':_0x34ebc5[_0x23635f(0x346)]}),_0xf4406f=new _0x454ae3['PivotTable'](_0x28a321,void 0x0,_0x2f9308),_0x39f21e=_0xf4406f[_0x23635f(0x267)](),_0x50ece8=_0xf4406f['toJSON'](),_0x46c5bf=_0x28a321[_0x23635f(0x413)]();_0x259125[_0x23635f(0x29d)]={'view':_0x39f21e,'fieldsConfig':_0x50ece8,'collectionConfig':_0x46c5bf,'isEmpty':_0xf4406f[_0x23635f(0x46c)]()};}break;case _0x1e1e2c[_0x23635f(0x458)]:{const _0x5b248c=_0x5126dc[_0x23635f(0x352)]['movePivotField'];if(!_0x5b248c)return;const {fieldId:_0x80aa91,area:_0x2a39b8,index:_0x268562}=_0x5b248c,_0xafc97a=this[_0x23635f(0x3ec)]['getPivotTableConfig'](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0xafc97a)return;const _0x19da44=this['_sheetsPivotDataSourceModel'][_0x23635f(0x37f)](_0x1fe121);if(!_0x19da44)return;_0x19da44[_0x23635f(0x2e7)]();const {area:_0x159432,index:_0x130c45}=_0x19da44[_0x23635f(0x216)](_0x80aa91);if(_0x19da44[_0x23635f(0x2aa)](_0x80aa91,_0x2a39b8,_0x268562),_0x2a39b8===_0x454ae3['PivotTableFiledAreaEnum'][_0x23635f(0x390)]&&_0x19da44['getTableFieldById'](_0x80aa91)[_0x23635f(0x4d7)]()===void 0x0){const _0x37c9ad=_0x19da44[_0x23635f(0x2eb)](_0x80aa91);if(_0x37c9ad&&_0x37c9ad[_0x23635f(0x4d7)]()===void 0x0){const _0x3f7cc8=_0x19da44[_0x23635f(0x1ed)](_0x80aa91);if(_0x3f7cc8){const _0x332563=_0x3f7cc8==null?void 0x0:_0x3f7cc8[_0x23635f(0x3ab)]();_0x19da44[_0x23635f(0x21f)](_0x80aa91,_0x332563===_0x454ae3[_0x23635f(0x491)][_0x23635f(0x2e1)]?_0x454ae3[_0x23635f(0x332)][_0x23635f(0x38a)]:_0x454ae3[_0x23635f(0x332)][_0x23635f(0x39e)]);}}}const _0x2e9c00=_0x19da44['getValuePosition'](),_0x262bee=_0x19da44[_0x23635f(0x2e2)](),_0x900739=_0x19da44['getFieldCountByArea'](_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x390)])>0x1;if(_0x900739&&_0x159432===_0x2a39b8&&(_0x2a39b8===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x358)]&&_0x2e9c00===_0x454ae3[_0x23635f(0x402)][_0x23635f(0x358)]||_0x2a39b8===_0x454ae3['PivotTableFiledAreaEnum'][_0x23635f(0x36c)]&&_0x2e9c00===_0x454ae3[_0x23635f(0x402)][_0x23635f(0x36c)])){let _0x1cea3f=_0x262bee;_0x130c45<=_0x262bee&&_0x1cea3f--,_0x268562<=_0x262bee&&_0x1cea3f++,_0x19da44[_0x23635f(0x4aa)](_0x2e9c00,_0x1cea3f);}else _0x900739&&(_0x159432===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x358)]&&_0x2e9c00===_0x454ae3[_0x23635f(0x402)][_0x23635f(0x358)]||_0x159432===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x36c)]&&_0x2e9c00===_0x454ae3[_0x23635f(0x402)]['Column'])&&_0x262bee>=_0x130c45&&_0x19da44[_0x23635f(0x4aa)](_0x2e9c00,_0x262bee-0x1),_0x900739&&(_0x2a39b8===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x358)]&&_0x2e9c00===_0x454ae3[_0x23635f(0x402)][_0x23635f(0x358)]||_0x2a39b8===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x36c)]&&_0x2e9c00===_0x454ae3[_0x23635f(0x402)][_0x23635f(0x36c)])&&_0x262bee>=_0x268562&&_0x19da44[_0x23635f(0x4aa)](_0x2e9c00,_0x262bee+0x1);const _0x56436b=_0x19da44[_0x23635f(0x267)](),_0x44c4dc=_0x19da44[_0x23635f(0x46c)](),_0x3a442b=_0x19da44[_0x23635f(0x271)]();_0x259125[_0x23635f(0x4e1)]={'view':_0x56436b['toJSON'](),'changesets':_0x3a442b,'isEmpty':_0x44c4dc,'pivotTableConfig':_0xafc97a};}break;case _0x1e1e2c[_0x23635f(0x389)]:{const _0x1b8944=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x202)];if(!_0x1b8944)return;const _0x4560d0=_0x1b8944[_0x23635f(0x22e)],_0x2490e1=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x2490e1)return!0x1;const _0x31945e=this['_sheetsPivotDataSourceModel'][_0x23635f(0x37f)](_0x1fe121);if(!_0x31945e)return!0x1;_0x31945e['startCollectChangeset']();for(const _0x22035d of _0x4560d0){const {area:_0x328918}=_0x31945e['getFieldPositionInfoById'](_0x22035d);_0x328918===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x390)]&&_0x31945e[_0x23635f(0x23b)](_0x22035d),(_0x328918===_0x454ae3[_0x23635f(0x3cf)]['Row']||_0x328918===_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x36c)])&&_0x31945e[_0x23635f(0x21a)](_0x22035d),_0x31945e['removeField'](_0x22035d);}const _0x5c1cb5=_0x31945e[_0x23635f(0x46c)](),_0x4798c6=_0x31945e[_0x23635f(0x267)]()[_0x23635f(0x413)](),_0x389679=_0x31945e[_0x23635f(0x271)]();_0x259125['removePivotField']={'changesets':_0x389679,'pivotTableConfig':_0x2490e1,'isEmpty':_0x5c1cb5,'view':_0x4798c6};}break;case _0x1e1e2c['SetPivotFilter']:{const _0x1ed101=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x21b)];if(!_0x1ed101)return;const {tableFieldId:_0x363ec4,items:_0x20dba1,isAll:_0x5a786a}=_0x1ed101,_0x43f206=this['_sheetsPivotDataSourceModel'][_0x23635f(0x37f)](_0x1fe121),_0x349d7a=this['_sheetsPivotDataSourceModel'][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x43f206||!_0x349d7a)return;_0x43f206[_0x23635f(0x2e7)](),_0x43f206[_0x23635f(0x38f)](_0x363ec4,{'type':_0x454ae3[_0x23635f(0x2b7)][_0x23635f(0x4dc)],'list':_0x20dba1,'isAll':_0x5a786a});const _0x15651f=_0x43f206['isEmpty'](),_0x235bf4=_0x43f206[_0x23635f(0x267)]()[_0x23635f(0x413)](),_0x3bfb4c=_0x43f206[_0x23635f(0x271)]();_0x259125[_0x23635f(0x21b)]={'view':_0x235bf4,'changesets':_0x3bfb4c,'isEmpty':_0x15651f,'pivotTableConfig':_0x349d7a};}break;case _0x1e1e2c[_0x23635f(0x425)]:{const _0x57e276=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x24e)];if(!_0x57e276)return;const {tableFieldId:_0x1337d6,filterInfo:_0xf54809}=_0x57e276,_0x2b8b63=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121),_0x4870a9=this[_0x23635f(0x3ec)][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x2b8b63||!_0x4870a9)return;_0x2b8b63[_0x23635f(0x2e7)](),_0x2b8b63[_0x23635f(0x427)](_0x1337d6,_0xf54809);const _0x14205f=_0x2b8b63[_0x23635f(0x46c)](),_0x593fa4=_0x2b8b63['query']()[_0x23635f(0x413)](),_0xffdefc=_0x2b8b63[_0x23635f(0x271)]();_0x259125[_0x23635f(0x24e)]={'view':_0x593fa4,'changesets':_0xffdefc,'isEmpty':_0x14205f,'pivotTableConfig':_0x4870a9};}break;case _0x1e1e2c[_0x23635f(0x2fe)]:{const _0x155f47=_0x5126dc['params'][_0x23635f(0x37a)];if(!_0x155f47)return;const {tableFieldId:_0x2ed9c0,info:_0x5c8dc0}=_0x155f47,_0x52d8dc=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121),_0x484320=this[_0x23635f(0x3ec)]['getPivotTableConfig'](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x52d8dc||!_0x484320)return;_0x52d8dc[_0x23635f(0x2e7)](),_0x52d8dc[_0x23635f(0x326)](_0x2ed9c0,_0x5c8dc0);const _0x24d702=_0x52d8dc[_0x23635f(0x46c)](),_0x56d1cd=_0x52d8dc[_0x23635f(0x267)]()[_0x23635f(0x413)](),_0x3dd14c=_0x52d8dc['endCollectChangeset']();_0x259125['setPivotSort']={'view':_0x56d1cd,'changesets':_0x3dd14c,'isEmpty':_0x24d702,'pivotTableConfig':_0x484320};}break;case _0x1e1e2c[_0x23635f(0x2ea)]:{const _0x5e1337=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x336)];if(!_0x5e1337)return;const {tableFieldId:_0x582a9b,displayName:_0x3e5aca,subtotalType:_0x41f513,format:_0x4dd0e2}=_0x5e1337,_0x232f90=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121),_0x4ff845=this['_sheetsPivotDataSourceModel'][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x232f90||!_0x4ff845)return;_0x232f90['startCollectChangeset'](),_0x3e5aca!==void 0x0&&_0x232f90[_0x23635f(0x250)](_0x582a9b,_0x3e5aca),_0x41f513!==void 0x0&&_0x232f90[_0x23635f(0x21f)](_0x582a9b,_0x41f513),_0x4dd0e2!==void 0x0&&_0x232f90['setFieldFormat'](_0x582a9b,_0x4dd0e2);const _0x509fe1=_0x232f90[_0x23635f(0x46c)](),_0x18eaaa=_0x232f90[_0x23635f(0x267)]()[_0x23635f(0x413)](),_0x561d87=_0x232f90[_0x23635f(0x271)]();_0x259125['setPivotSetting']={'changesets':_0x561d87,'pivotTableConfig':_0x4ff845,'isEmpty':_0x509fe1,'view':_0x18eaaa};}break;case _0x1e1e2c['UpdatePivotSource']:{const _0x3ddb0f=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x1ce)];if(!_0x3ddb0f)return;const {dataRangeInfo:_0x357d93,unitId:_0x15b54e,subUnitId:_0x1d11e6}=_0x3ddb0f,_0x49949b=this[_0x23635f(0x3ec)][_0x23635f(0x2ac)](_0x15b54e,_0x1d11e6,_0x1fe121),_0x31d5a6=this['_sheetsPivotDataSourceModel'][_0x23635f(0x37f)](_0x1fe121);if(!this[_0x23635f(0x3ec)][_0x23635f(0x4dd)](_0x15b54e,_0x1fe121)||!_0x31d5a6||!_0x49949b)return;const _0xcaa3b0=this[_0x23635f(0x3ec)][_0x23635f(0x4d6)](_0x15b54e,_0x1fe121,_0x357d93),_0x1bf99b=this[_0x23635f(0x3ec)][_0x23635f(0x4dd)](_0x15b54e,_0x1fe121)['toJSON'](),{collection:_0x2e9050}=this[_0x23635f(0x3ec)][_0x23635f(0x320)]({'unitId':_0x357d93[_0x23635f(0x33e)],'sheetName':_0x357d93[_0x23635f(0x303)],'subUnitId':_0x357d93['subUnitId'],'range':_0x357d93['range']}),_0x37f385=_0x2e9050[_0x23635f(0x413)]();_0x31d5a6[_0x23635f(0x2e7)]();const _0x4dd195=this['_sheetsPivotDataSourceModel'][_0x23635f(0x3ca)](_0x15b54e)[_0x23635f(0x363)]()||_0x454ae3[_0x23635f(0x333)];_0x31d5a6[_0x23635f(0x34a)](_0x18ef8b=>{const _0x278e85=_0x23635f,_0x2dcdd2=_0x18ef8b[_0x278e85(0x3c9)]();if(!_0x2e9050['hasField'](_0x2dcdd2)){const _0x5485b1=_0x2e9050['getDataFieldBySourceName'](_0x18ef8b[_0x278e85(0x241)]());if(_0x5485b1){_0x31d5a6[_0x278e85(0x48c)](_0x18ef8b['getId'](),_0x5485b1['getName'](),_0x5485b1[_0x278e85(0x4a7)]());const {area:_0x5dd688}=_0x31d5a6[_0x278e85(0x216)](_0x18ef8b[_0x278e85(0x4a7)]());let _0x3ec361=_0x18ef8b['getSourceName']();const _0x3cfb48=_0x18ef8b[_0x278e85(0x49e)]();if(_0x5dd688===_0x454ae3[_0x278e85(0x3cf)][_0x278e85(0x390)]){const _0x3a99ac=_0x18ef8b[_0x278e85(0x4d7)]();_0x3ec361=_0x4dd195(_0x5485b1[_0x278e85(0x484)](),_0x3a99ac);}_0x3cfb48!==_0x3ec361&&_0x31d5a6[_0x278e85(0x250)](_0x18ef8b[_0x278e85(0x4a7)](),_0x3ec361);}else _0x31d5a6[_0x278e85(0x380)](_0x18ef8b['getId']());}});const _0x1e65b9=_0x31d5a6[_0x23635f(0x46c)](),_0x5986d6=_0x31d5a6[_0x23635f(0x267)]()['toJSON'](),_0x4efe85=_0x31d5a6['endCollectChangeset']();_0x259125[_0x23635f(0x1ce)]={'view':_0x5986d6,'changesets':_0x4efe85,'isEmpty':_0x1e65b9,'pivotTableConfig':_0x49949b,'collectionConfig':_0x37f385,'oldCollectionConfig':_0x1bf99b,'deleteIds':_0xcaa3b0};}break;case _0x1e1e2c['UpdateValuePosition']:{const _0x9a106a=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x4aa)];if(!_0x9a106a)return;const {position:_0x4068c1,index:_0x3d36b1}=_0x9a106a,_0x293ca2=this['_sheetsPivotDataSourceModel'][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x293ca2)return!0x1;const _0x4ac2cd=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121);if(!_0x4ac2cd)return!0x1;_0x4ac2cd[_0x23635f(0x2e7)](),_0x4ac2cd[_0x23635f(0x4aa)](_0x4068c1,_0x3d36b1);const _0x1364d5=_0x4ac2cd[_0x23635f(0x46c)](),_0x19b941=_0x4ac2cd[_0x23635f(0x267)]()[_0x23635f(0x413)](),_0x193767=_0x4ac2cd[_0x23635f(0x271)]();_0x259125[_0x23635f(0x4aa)]={'changesets':_0x193767,'pivotTableConfig':_0x293ca2,'isEmpty':_0x1364d5,'view':_0x19b941};}break;case _0x1e1e2c[_0x23635f(0x22d)]:{const _0x12ab7a=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x442)];if(!_0x12ab7a)return;const {tableFieldId:_0x3e0a4e,collapse:_0x3b3334,item:_0x1f11e8}=_0x12ab7a,_0x473b60=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121),_0x48c51e=this['_sheetsPivotDataSourceModel'][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x473b60||!_0x48c51e)return;_0x473b60['startCollectChangeset'](),_0x473b60[_0x23635f(0x4a5)](_0x3e0a4e,_0x3b3334,_0x1f11e8);const _0x2c1470=_0x473b60['isEmpty'](),_0x3cdf6b=_0x473b60[_0x23635f(0x267)]()[_0x23635f(0x413)](),_0x13c39d=_0x473b60[_0x23635f(0x271)]();_0x259125[_0x23635f(0x442)]={'view':_0x3cdf6b,'isEmpty':_0x2c1470,'pivotTableConfig':_0x48c51e,'changesets':_0x13c39d};}break;case _0x1e1e2c[_0x23635f(0x33b)]:{const _0x3a60ae=_0x5126dc['params'][_0x23635f(0x290)];if(!_0x3a60ae)return;const {pivotTableConfig:_0x5dfeb6}=_0x3a60ae,_0x334ebd=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121),_0xc48165=this[_0x23635f(0x3ec)][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x334ebd||!_0xc48165)return;_0x334ebd[_0x23635f(0x2e7)](),_0x45ef85(_0x334ebd,_0x5dfeb6);const _0x33b906=_0x334ebd[_0x23635f(0x46c)](),_0x865083=_0x334ebd['query']()['toJSON'](),_0xce08cd=_0x334ebd['endCollectChangeset']();_0x259125[_0x23635f(0x290)]={'view':_0x865083,'isEmpty':_0x33b906,'pivotTableConfig':{..._0xc48165,'fieldsConfig':_0x334ebd[_0x23635f(0x413)]()},'changesets':_0xce08cd};}break;case _0x1e1e2c[_0x23635f(0x285)]:{const _0x4c18a4=_0x5126dc[_0x23635f(0x352)][_0x23635f(0x263)];if(!_0x4c18a4)return;const _0x9b4acb=this[_0x23635f(0x3ec)][_0x23635f(0x37f)](_0x1fe121),_0x5874bd=this[_0x23635f(0x3ec)][_0x23635f(0x2ac)](_0x30ef13,_0x57dd4a,_0x1fe121);if(!_0x9b4acb||!_0x5874bd)return;_0x9b4acb['startCollectChangeset'](),_0x1bf3a6(_0x9b4acb,_0x4c18a4[_0x23635f(0x382)]);const _0x459e70=_0x9b4acb[_0x23635f(0x267)]()['toJSON'](),_0x3819e3=_0x9b4acb[_0x23635f(0x271)]();_0x259125[_0x23635f(0x263)]={'view':_0x459e70,'isEmpty':!0x0,'pivotTableConfig':{..._0x5874bd,'fieldsConfig':_0x9b4acb['toJSON']()},'changesets':_0x3819e3};}break;case _0x1e1e2c['AddPivotTableWithConfig']:{const _0x28ac35=_0x5126dc['params'][_0x23635f(0x372)];if(!_0x28ac35)return;const _0x4d47fc=_0x28ac35[_0x23635f(0x497)],_0x243e3a=_0x28ac35[_0x23635f(0x42f)],{collection:_0x294607}=this['_sheetsPivotDataSourceModel'][_0x23635f(0x320)]({'unitId':_0x4d47fc[_0x23635f(0x33e)],'sheetName':_0x4d47fc['sheetName'],'subUnitId':_0x4d47fc[_0x23635f(0x388)],'range':_0x4d47fc['range']}),_0x121757=new _0x454ae3[(_0x23635f(0x25e))](_0x294607,void 0x0,_0x243e3a),_0x48e4c4=_0x294607[_0x23635f(0x23d)](),{rows:_0x16d211,columns:_0x107e0f,filters:_0x311edb,values:_0x3e4226}=_0x28ac35[_0x23635f(0x4d9)];_0x121757['startCollectChangeset']();for(const {field:_0x3270dd,selectedItems:_0x320207}of _0x16d211||[]){const _0x569c56=_0x48e4c4[_0x3270dd];if(_0x569c56){const _0x488177=_0x121757[_0x23635f(0x471)](_0x569c56,_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x358)]);_0x320207&&_0x488177&&_0x121757[_0x23635f(0x38f)](_0x488177[_0x23635f(0x4a7)](),{'type':_0x454ae3[_0x23635f(0x2b7)][_0x23635f(0x4dc)],'list':_0x320207,'isAll':!0x1});}}for(const {field:_0x32f569,selectedItems:_0x5b9ffb}of _0x107e0f||[]){const _0x2e6a7b=_0x48e4c4[_0x32f569];if(_0x2e6a7b){const _0x44e6bc=_0x121757['addFieldWithSourceId'](_0x2e6a7b,_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x36c)]);_0x5b9ffb&&_0x44e6bc&&_0x121757[_0x23635f(0x38f)](_0x44e6bc[_0x23635f(0x4a7)](),{'type':_0x454ae3[_0x23635f(0x2b7)][_0x23635f(0x4dc)],'list':_0x5b9ffb,'isAll':!0x1});}}for(const {field:_0x360558,selectedItems:_0x3b1017}of _0x311edb||[]){const _0x31d382=_0x48e4c4[_0x360558];if(_0x31d382){const _0x17951c=_0x121757[_0x23635f(0x471)](_0x31d382,_0x454ae3[_0x23635f(0x3cf)][_0x23635f(0x1ee)]);_0x3b1017&&_0x17951c&&_0x121757['setLabelFilterInfo'](_0x17951c['getId'](),{'type':_0x454ae3[_0x23635f(0x2b7)][_0x23635f(0x4dc)],'list':_0x3b1017,'isAll':!0x1});}}for(const {field:_0x45f703,subTotalType:_0x4f102d,formatString:_0x1fe042}of _0x3e4226||[]){const _0xa81b60=_0x294607[_0x23635f(0x2ca)](_0x48e4c4[_0x45f703]);if(!_0xa81b60)continue;const _0x2731ea=_0x48e4c4[_0x45f703];if(_0x2731ea){const _0x42b4fe=_0x121757[_0x23635f(0x471)](_0x2731ea,_0x454ae3['PivotTableFiledAreaEnum'][_0x23635f(0x390)]);if(_0x42b4fe){if(_0x4f102d!==void 0x0){_0x121757['setSubtotalType'](_0x42b4fe[_0x23635f(0x4a7)](),_0x4f102d);const _0x2a9508=this['_sheetsPivotDataSourceModel'][_0x23635f(0x3ca)](_0x4d47fc['unitId'])[_0x23635f(0x363)]()||_0x454ae3[_0x23635f(0x333)],_0x39b0eb=_0x294607[_0x23635f(0x49e)](_0x2731ea),_0x69a4e0=_0x2a9508(_0x39b0eb,_0x4f102d);_0x121757[_0x23635f(0x250)](_0x42b4fe[_0x23635f(0x4a7)](),_0x69a4e0);}else{if(_0xa81b60){const _0x3cd055=_0xa81b60==null?void 0x0:_0xa81b60['getFieldDataType']();_0x121757[_0x23635f(0x21f)](_0x42b4fe[_0x23635f(0x4a7)](),_0x3cd055===_0x454ae3['PivotDataFieldDataTypeEnum'][_0x23635f(0x2e1)]?_0x454ae3[_0x23635f(0x332)][_0x23635f(0x38a)]:_0x454ae3[_0x23635f(0x332)]['count']);}}_0x1fe042&&_0x121757[_0x23635f(0x20c)](_0x42b4fe['getId'](),_0x1fe042);}}}const _0x4df3db=_0x121757['query'](),_0x5aafbf=_0x121757[_0x23635f(0x413)](),_0x4e7004=_0x121757[_0x23635f(0x46c)](),_0x3c7908=_0x121757[_0x23635f(0x271)](),_0x25afef=_0x294607[_0x23635f(0x413)]();_0x259125[_0x23635f(0x372)]={'view':_0x4df3db,'fieldsConfig':_0x5aafbf,'collectionConfig':_0x25afef,'isEmpty':_0x4e7004,'changesets':_0x3c7908};}break;case _0x1e1e2c['DrillDown']:{const _0x54c2b5=_0x30805d(this['_injector'],_0x5126dc);if(!_0x54c2b5)return;const {range:_0x260fc2,sourceSubUnitId:_0x235c3d,sourceUnitId:_0x50b5a4,formatMap:_0x19f8ec,indexes:_0xd163df}=_0x54c2b5;_0x259125[_0x23635f(0x40c)]={'range':_0x260fc2,'sourceSubUnitId':_0x235c3d,'sourceUnitId':_0x50b5a4,'formatMap':_0x19f8ec,'indexes':_0xd163df};}break;}this['_commandService'][_0x23635f(0x40a)](_0x527330['id'],{'version':_0x5126dc['version'],'result':_0x259125},{'onlyLocal':!0x0});}));}[_0x1f66a3(0x416)](){const _0x1ead82=_0x1f66a3;this[_0x1ead82(0x4e5)](this[_0x1ead82(0x3c1)][_0x1ead82(0x4e6)](_0x29060d=>{const _0x434e71=_0x1ead82;if(_0x29060d['id']!==_0x92655e['id'])return;const _0x37d383=_0x29060d[_0x434e71(0x352)];return this[_0x434e71(0x3ec)][_0x434e71(0x4bd)](_0x37d383[_0x434e71(0x468)]),!0x0;}));}['_subjectCollectionChange'](){const _0x306d20=_0x1f66a3;this[_0x306d20(0x3ec)][_0x306d20(0x2c4)]['subscribe'](_0x13ab9b=>{const _0x286ccf=_0x306d20;switch(_0x13ab9b[_0x286ccf(0x210)]){case _0x33e534[_0x286ccf(0x224)]:_0x13ab9b[_0x286ccf(0x30f)]&&_0x13ab9b[_0x286ccf(0x38e)]&&this[_0x286ccf(0x403)](_0x13ab9b[_0x286ccf(0x262)],_0x13ab9b[_0x286ccf(0x30f)],_0x13ab9b[_0x286ccf(0x38e)]);break;case _0x33e534[_0x286ccf(0x481)]:{const {unitId:_0x473895,subUnitId:_0x252552,token:_0x4c5797}=_0x13ab9b;_0x473895&&_0x252552&&_0x4c5797&&this[_0x286ccf(0x310)](_0x473895,_0x252552,_0x4c5797);}break;case _0x33e534[_0x286ccf(0x32d)]:{const {token:_0x24bd18,oldSourceRangeInfo:_0x4e8442,dataRangeInfo:_0x1f9afd,targetCellInfo:_0x14b3a3}=_0x13ab9b,{unitId:_0x5083fb,subUnitId:_0x8a627c}=_0x4e8442||{};_0x5083fb&&_0x8a627c&&_0x24bd18&&this['removeSourceRangeChange'](_0x5083fb,_0x8a627c,_0x24bd18),_0x1f9afd&&_0x14b3a3&&this[_0x286ccf(0x403)](_0x24bd18,_0x1f9afd,_0x14b3a3);}break;}});}['_subjectFieldsCollectionChange'](){const _0x5b0d7b=_0x1f66a3;this[_0x5b0d7b(0x3ec)][_0x5b0d7b(0x2be)][_0x5b0d7b(0x1e4)](_0x30abd0=>{const _0x5ed9e3=_0x5b0d7b;Object[_0x5ed9e3(0x1d4)](_0x30abd0)[_0x5ed9e3(0x370)](_0x3ecd43=>{const _0x3d6146=_0x5ed9e3,_0x1cef43=this['_sheetsPivotDataSourceModel'][_0x3d6146(0x3d4)](_0x3ecd43);if(_0x1cef43){const _0x414933=this['_sheetsPivotDataSourceModel'][_0x3d6146(0x2ac)](_0x1cef43==null?void 0x0:_0x1cef43[_0x3d6146(0x33e)],_0x1cef43==null?void 0x0:_0x1cef43[_0x3d6146(0x388)],_0x3ecd43);_0x414933&&(this[_0x3d6146(0x403)](_0x3ecd43,_0x414933[_0x3d6146(0x497)],_0x414933[_0x3d6146(0x38e)]),this[_0x3d6146(0x323)]([{'unitId':_0x1cef43['unitId'],'subUnitId':_0x1cef43[_0x3d6146(0x388)],'token':_0x3ecd43}]));}});});}['_subjectViewChange'](){const _0xa016cf=_0x1f66a3;this[_0xa016cf(0x3ec)]['viewData$'][_0xa016cf(0x1e4)](_0x4d37e4=>{const _0x519ce4=_0xa016cf,{unitId:_0x313f42,subUnitId:_0xcd2111,pivotTableId:_0xa23cdd}=_0x4d37e4;_0x313f42&&_0xcd2111&&_0xa23cdd&&this[_0x519ce4(0x323)]([{'unitId':_0x313f42,'subUnitId':_0xcd2111,'token':_0xa23cdd}]);});}[_0x1f66a3(0x323)](_0x36cf08){const _0xfae5a6=_0x1f66a3,_0x44585a={};_0x36cf08['forEach'](_0x47fe95=>{var _0xeb9ddd,_0x271504;const {unitId:_0xcd1d6b,subUnitId:_0x2a3218,token:_0x18400b}=_0x47fe95;_0x44585a[_0xcd1d6b]=(_0xeb9ddd=_0x44585a[_0xcd1d6b])!=null?_0xeb9ddd:{},_0x44585a[_0xcd1d6b][_0x2a3218]=(_0x271504=_0x44585a[_0xcd1d6b][_0x2a3218])!=null?_0x271504:{},_0x44585a[_0xcd1d6b][_0x2a3218][_0x18400b]=!0x0;}),this[_0xfae5a6(0x3c1)][_0xfae5a6(0x40a)](_0x3a0266['id'],_0x44585a);}[_0x1f66a3(0x310)](_0x1fb945,_0x3f3be6,_0x327d6d){const _0x5c8b6b=_0x1f66a3;this[_0x5c8b6b(0x392)]['remove'](_0x1fb945,_0x3f3be6,[_0x327d6d]);}[_0x1f66a3(0x403)](_0x1581a3,_0x9823fd,_0xc32950){const _0x19c5eb=_0x1f66a3,{unitId:_0x4a013f,subUnitId:_0x433fab}=_0x9823fd;this['_featureCalculationManagerService']['has'](_0xc32950[_0x19c5eb(0x33e)],_0xc32950[_0x19c5eb(0x388)],_0x1581a3)&&this[_0x19c5eb(0x310)](_0x4a013f,_0x433fab,_0x1581a3);const _0x29a42b={'sheetId':_0x433fab,..._0x9823fd};this['_featureCalculationManagerService'][_0x19c5eb(0x408)](_0xc32950[_0x19c5eb(0x33e)],_0xc32950[_0x19c5eb(0x388)],_0x1581a3,{'unitId':_0xc32950[_0x19c5eb(0x33e)],'subUnitId':_0xc32950[_0x19c5eb(0x388)],'dependencyRanges':[_0x29a42b],'getDirtyData':(_0xb014c,_0x28b4e4)=>{const _0x39c42a=_0x19c5eb,_0x3d7e20=this[_0x39c42a(0x3ec)],_0x4eda9b=_0x3d7e20[_0x39c42a(0x3d4)](_0x1581a3);if(!_0x4eda9b)return _0x42af53();const {unitId:_0x5a60ea,subUnitId:_0x162160}=_0x4eda9b,_0xdd652f=_0x293286(_0xb014c,_0x28b4e4,_0x9823fd);if(_0xdd652f[_0x39c42a(0x217)]>0x0){const _0x1d20b6=_0x3d7e20[_0x39c42a(0x4dd)](_0x4a013f,_0x1581a3),_0x362a04=_0x1d20b6['getFieldIds'](),_0x3473f3=this[_0x39c42a(0x4e0)](_0x9823fd[_0x39c42a(0x33e)],_0x9823fd['subUnitId'],_0x28b4e4),_0x3e366e={},_0x2e7187=this['_sheetsPivotDataSourceModel'][_0x39c42a(0x3ca)](_0x5a60ea)[_0x39c42a(0x363)]()||_0x454ae3[_0x39c42a(0x333)],_0x5741fd=[];for(const _0x403dd9 of _0xdd652f){const _0x13d4c0=_0x403dd9-(_0x9823fd[_0x39c42a(0x346)][_0x39c42a(0x2df)]||0x0),_0x3edbbf=_0x362a04[_0x13d4c0];_0x5741fd[_0x39c42a(0x2b4)](_0x3edbbf),_0x3e366e[_0x3edbbf]=_0x1d20b6[_0x39c42a(0x2ca)](_0x3edbbf)[_0x39c42a(0x484)](),_0x3d7e20[_0x39c42a(0x3ca)](_0x4a013f)[_0x39c42a(0x2d7)](_0x3edbbf,_0x9823fd,_0x13d4c0,_0x3473f3);}_0x1d20b6[_0x39c42a(0x2e5)](_0x5741fd)[_0x39c42a(0x370)](_0xcf08a6=>{const _0x377fa2=_0x39c42a,[_0x2edb31,_0x178d78]=_0xcf08a6,_0x2eb832=_0x1d20b6['getFieldById'](_0x2edb31),_0x4c868c=_0x1d20b6[_0x377fa2(0x2ca)](_0x178d78);_0x2eb832&&_0x4c868c&&_0x2eb832[_0x377fa2(0x206)](_0x4c868c);}),_0x1d20b6[_0x39c42a(0x274)]();const _0xe84e2d=_0x3d7e20[_0x39c42a(0x37f)](_0x1581a3);if(_0xe84e2d){_0x126890(_0xe84e2d,_0x3e366e,_0x2e7187),_0xe84e2d[_0x39c42a(0x328)](!0x0);const _0x11404f=_0xe84e2d[_0x39c42a(0x267)](),_0x2bbe9e=_0x3d7e20[_0x39c42a(0x2ac)](_0x5a60ea,_0x162160,_0x1581a3),_0x3e9b91=_0x3d7e20[_0x39c42a(0x3ca)](_0x4a013f)[_0x39c42a(0x413)]();_0x3d7e20[_0x39c42a(0x22b)](_0x5a60ea,_0x162160,_0x35ec99[_0x39c42a(0x45a)],_0x1581a3,_0x11404f,_0x2bbe9e,_0x3e9b91,!0x0);}}return this['getDirtyInfo'](_0x5a60ea,_0x162160,_0x1581a3);}});}[_0x1f66a3(0x4e0)](_0x2fcf0b,_0x36ed7e,_0x2517fa){var _0x4289fd,_0x16cc48;const {arrayFormulaCellData:_0x2c37a0,unitData:_0x153edf}=_0x2517fa,_0x53b9c4=(_0x4289fd=_0x2c37a0==null?void 0x0:_0x2c37a0[_0x2fcf0b])==null?void 0x0:_0x4289fd[_0x36ed7e],_0x2e57f3=(_0x16cc48=_0x153edf==null?void 0x0:_0x153edf[_0x2fcf0b])==null?void 0x0:_0x16cc48[_0x36ed7e];return{'arrayFormulaCellDataMatrix':_0x53b9c4,'unitDataMatrix':_0x2e57f3};}[_0x1f66a3(0x381)](_0x3ef671,_0x131ccb,_0x4d2162){const _0x5292a0=_0x1f66a3,_0x402ebb=this['_sheetsPivotDataSourceModel'][_0x5292a0(0x214)](_0x3ef671,_0x131ccb,_0x4d2162),_0x1c88af=[],_0x40181b=new _0x47953c[(_0x5292a0(0x1d1))]();if(_0x402ebb){const {rangeCache:_0x236c2a,matrix:_0x41c946,oldRangeCache:_0x152194,oldMatrix:_0x593ef4}=_0x402ebb,_0x40b0ac=_0x2600c7(_0x152194),_0x1e325f=_0x2600c7(_0x236c2a);_0x1c88af[_0x5292a0(0x2b4)](..._0x1e325f,..._0x40b0ac),_0x593ef4&&_0x152194&&_0x40b0ac[_0x5292a0(0x370)](_0x4fb3c3=>{const _0x2ba9e5=_0x5292a0;for(let _0x48245b=_0x4fb3c3[_0x2ba9e5(0x404)];_0x48245b<=_0x4fb3c3['endRow'];_0x48245b++)for(let _0x4f5087=_0x4fb3c3[_0x2ba9e5(0x2df)];_0x4f5087<=_0x4fb3c3[_0x2ba9e5(0x2b1)];_0x4f5087++)_0x40181b['realDeleteValue'](_0x48245b,_0x4f5087);}),_0x41c946&&_0x1e325f&&_0x1e325f[_0x5292a0(0x370)](_0x1cedaa=>{const _0x4da554=_0x5292a0;for(let _0x59c33f=_0x1cedaa[_0x4da554(0x404)];_0x59c33f<=_0x1cedaa[_0x4da554(0x443)];_0x59c33f++)for(let _0x510a05=_0x1cedaa['startColumn'];_0x510a05<=_0x1cedaa[_0x4da554(0x2b1)];_0x510a05++)_0x40181b[_0x4da554(0x27f)](_0x59c33f,_0x510a05,_0x41c946[_0x4da554(0x325)](_0x59c33f,_0x510a05));});}const _0x91e75d={};return _0x91e75d[_0x3ef671]={[_0x131ccb]:_0x1cbafb(_0x1c88af)},{'runtimeCellData':{[_0x3ef671]:{[_0x131ccb]:_0x40181b}},'dirtyRanges':_0x91e75d};}['dispose'](){}};_0x2ba2bd=_0x2504ce([_0x6308ad(0x0,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x330)])),_0x6308ad(0x1,_0x47953c[_0x1f66a3(0x420)](_0x311ac2[_0x1f66a3(0x435)])),_0x6308ad(0x2,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x249)])),_0x6308ad(0x3,_0x47953c[_0x1f66a3(0x420)](_0x311ac2[_0x1f66a3(0x36d)])),_0x6308ad(0x4,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x27a)]))],_0x2ba2bd);var _0x46ae99=Object[_0x1f66a3(0x2e4)],_0x37e330=(_0x52befb,_0x1998a3,_0x4f8b11,_0x14b050)=>{const _0x98a648=_0x1f66a3;for(var _0x198332=_0x14b050>0x1?void 0x0:_0x14b050?_0x46ae99(_0x1998a3,_0x4f8b11):_0x1998a3,_0x44479e=_0x52befb[_0x98a648(0x217)]-0x1,_0x1e8b12;_0x44479e>=0x0;_0x44479e--)(_0x1e8b12=_0x52befb[_0x44479e])&&(_0x198332=_0x1e8b12(_0x198332)||_0x198332);return _0x198332;},_0x54052e=(_0x5ac5d6,_0x2e6b51)=>(_0x5a3ba5,_0xf484ab)=>_0x2e6b51(_0x5a3ba5,_0xf484ab,_0x5ac5d6);let _0x2ab404=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x4f8095,_0x928986,_0x5e22f2,_0x32466d){const _0x1a5875=_0x1f66a3;super(),_0x3e3ba8(this,'disposableCollection',new _0x47953c[(_0x1a5875(0x26f))]()),(this['_univerInstanceService']=_0x4f8095,this[_0x1a5875(0x407)]=_0x928986,this['_sheetsSelectionsService']=_0x5e22f2,this[_0x1a5875(0x39b)]=_0x32466d,this[_0x1a5875(0x3a2)]());}[_0x1f66a3(0x3a2)](){const _0x5eb174=_0x1f66a3;this[_0x5eb174(0x4e5)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x36da4a=>{const _0x28e829=_0x5eb174;if(_0x36da4a['id']===_0x271f69[_0x28e829(0x362)]['id']||_0x36da4a['id']===_0x271f69[_0x28e829(0x418)]['id']){const _0x532954=[],_0x1be5f3=[],_0x5f016d=this[_0x28e829(0x24a)]['getCurrentSelections']()['map'](_0x5a1ce7=>_0x5a1ce7[_0x28e829(0x346)]),_0x3b143b=_0x271f69[_0x28e829(0x4d4)](this[_0x28e829(0x489)]);if(!_0x3b143b)return{'redos':[],'undos':[]};const {unitId:_0x4b6567,subUnitId:_0x529e0b}=_0x3b143b,_0x42c7f1={},_0x134270=this[_0x28e829(0x39b)][_0x28e829(0x289)](_0x4b6567,_0x529e0b);if(_0x134270!=null&&_0x134270[_0x28e829(0x3aa)])for(const [_0x1196e0,_0x4d4625]of _0x134270){const {unitId:_0x8971a9,subUnitId:_0x5290d6,row:_0x4d84ca,col:_0x463a97}=_0x4d4625['targetCellInfo'];_0x8971a9===_0x3b143b[_0x28e829(0x33e)]&&_0x5290d6===_0x3b143b['subUnitId']&&(_0x42c7f1[_0x4d84ca+'-'+_0x463a97]=_0x1196e0);}return _0x5f016d&&_0x3b143b&&_0x5f016d[_0x28e829(0x370)](_0x56b0c7=>{const _0x457b4d=_0x28e829;_0x47953c[_0x457b4d(0x46e)][_0x457b4d(0x37c)](_0x56b0c7,(_0x4108fe,_0x120163)=>{const _0x1caff2=_0x457b4d,_0x17767e=_0x4108fe+'-'+_0x120163;if(_0x42c7f1[_0x17767e]){const _0x37e76f=_0x42c7f1[_0x17767e];_0x532954['push']({'id':_0x24f5f9['id'],'params':{'unitId':_0x4b6567,'subUnitId':_0x529e0b,'pivotTableId':_0x37e76f}});const _0xedac00=this['_sheetsPivotTableConfigModel']['getCollection'](_0x4b6567,_0x37e76f),_0x20dfdb=this[_0x1caff2(0x39b)][_0x1caff2(0x2ac)](_0x4b6567,_0x529e0b,_0x37e76f);_0x1be5f3[_0x1caff2(0x2b4)]({'id':_0x2d3644['id'],'params':{'unitId':_0x4b6567,'subUnitId':_0x529e0b,'pivotTableId':_0x37e76f,'pivotTableConfig':_0x20dfdb,'collectionConfig':_0xedac00}});}});}),{'redos':_0x532954,'undos':_0x1be5f3};}return{'redos':[],'undos':[]};}}));}};_0x2ab404=_0x37e330([_0x54052e(0x0,_0x47953c['IUniverInstanceService']),_0x54052e(0x1,_0x47953c[_0x1f66a3(0x420)](_0x271f69[_0x1f66a3(0x396)])),_0x54052e(0x2,_0x47953c[_0x1f66a3(0x420)](_0x271f69[_0x1f66a3(0x374)])),_0x54052e(0x3,_0x47953c[_0x1f66a3(0x420)](_0x447ba5['SheetsPivotTableConfigModel']))],_0x2ab404);var _0x2ff9a2=Object[_0x1f66a3(0x2e4)],_0x4b6675=(_0x48969b,_0xe8867c,_0x23371b,_0x22b5f0)=>{const _0x27afef=_0x1f66a3;for(var _0x5832be=_0x22b5f0>0x1?void 0x0:_0x22b5f0?_0x2ff9a2(_0xe8867c,_0x23371b):_0xe8867c,_0x5d8872=_0x48969b[_0x27afef(0x217)]-0x1,_0x5b43a0;_0x5d8872>=0x0;_0x5d8872--)(_0x5b43a0=_0x48969b[_0x5d8872])&&(_0x5832be=_0x5b43a0(_0x5832be)||_0x5832be);return _0x5832be;},_0x137f43=(_0x13e782,_0x229f7c)=>(_0x17dc7a,_0x493452)=>_0x229f7c(_0x17dc7a,_0x493452,_0x13e782);let _0x3e061a=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0xf79884,_0x2fd360,_0x300d95,_0x37c4e9,_0x50fb39){const _0x3b2258=_0x1f66a3;super(),this[_0x3b2258(0x407)]=_0xf79884,this[_0x3b2258(0x2b5)]=_0x2fd360,this[_0x3b2258(0x489)]=_0x300d95,this[_0x3b2258(0x39b)]=_0x37c4e9,this[_0x3b2258(0x35e)]=_0x50fb39,this[_0x3b2258(0x2cd)]();}[_0x1f66a3(0x1e0)](_0x760222,_0x477bcb,_0x16965b){const _0x57c62e=_0x1f66a3,{pageView:_0x37bb4c,cornerView:_0x4d8e23,rowView:_0x3caf7f,colView:_0x5440e0,dataView:_0x453899}=_0x477bcb,_0x267e65=_0x760222;let _0x48fced;if(_0x16965b)_0x48fced=[..._0x32e6b1(_0x267e65)];else{const _0x4ff19f=_0x16e0b8(_0x267e65,_0x37bb4c,!0x0),_0x1560e1=_0x37bb4c[_0x57c62e(0x280)]>=0x0?_0x37bb4c[_0x57c62e(0x280)]+0x1:0x0,_0x57a26f=_0x4d8e23['rowCount'],_0x31476f=_0x4d8e23[_0x57c62e(0x40f)],_0x1c7c35=_0x4ff19f['length']>0x0?_0x474d9e:0x0,_0xf351a8=_0x16e0b8({'row':_0x267e65[_0x57c62e(0x222)]+_0x1560e1+_0x1c7c35,'col':_0x267e65['col']},_0x4d8e23,!0x1,!0x1),_0x4c1578=_0x16e0b8({'row':_0x267e65[_0x57c62e(0x222)]+_0x1560e1+_0x1c7c35+_0x57a26f,'col':_0x267e65[_0x57c62e(0x411)]},_0x3caf7f,!0x1,!0x0),_0x2a8bd7=_0x16e0b8({'row':_0x267e65[_0x57c62e(0x222)]+_0x1560e1+_0x1c7c35,'col':_0x267e65[_0x57c62e(0x411)]+_0x31476f},_0x5440e0,!0x1,!0x0),_0x4a22a8=_0x16e0b8({'row':_0x267e65[_0x57c62e(0x222)]+_0x1560e1+_0x1c7c35+_0x57a26f,'col':_0x267e65['col']+_0x31476f},_0x453899,!0x1,!0x0);_0x48fced=[..._0x4ff19f,..._0xf351a8,..._0x4c1578,..._0x2a8bd7,..._0x4a22a8];}return _0x48fced;}[_0x1f66a3(0x2cd)](){const _0x5d21de=_0x1f66a3;this[_0x5d21de(0x4e5)](this[_0x5d21de(0x35e)]['interceptor'][_0x5d21de(0x38d)](this[_0x5d21de(0x35e)][_0x5d21de(0x297)][_0x5d21de(0x1f8)]()[_0x5d21de(0x2f6)],{'handler':(_0x1c97a7,_0x229b37)=>{const _0x4c9cfb=_0x5d21de,{cellInfo:_0x12be7b,view:_0x27d36d,isEmpty:_0x5289be}=_0x229b37,_0x34e040=_0x12be7b,{unitId:_0x4da2b1,subUnitId:_0x309136}=_0x34e040,_0x1d3d70=this[_0x4c9cfb(0x1e0)](_0x12be7b,_0x27d36d,_0x5289be),_0x12f13f=this['_sheetInterceptorService'][_0x4c9cfb(0x2ed)]({'unitId':_0x4da2b1,'subUnitId':_0x309136,'ranges':_0x1d3d70}),_0x1c711d=_0x442ea1(this[_0x4c9cfb(0x2b5)],_0x4da2b1,_0x309136,_0x1d3d70);_0x1c711d['shouldClear']&&(_0x12f13f[_0x4c9cfb(0x398)]['push'](_0x1c711d[_0x4c9cfb(0x304)]),_0x12f13f['undos'][_0x4c9cfb(0x2b4)](_0x1c711d['setRangeValueUndoMutation']));const _0x815c87=this[_0x4c9cfb(0x318)](_0x27d36d,_0x12be7b);return _0x12f13f[_0x4c9cfb(0x398)][_0x4c9cfb(0x2b4)](..._0x815c87[_0x4c9cfb(0x398)]),_0x12f13f['undos'][_0x4c9cfb(0x2b4)](..._0x815c87[_0x4c9cfb(0x41e)]),{'redos':_0x12f13f[_0x4c9cfb(0x398)],'undos':_0x12f13f['undos']};}}));}[_0x1f66a3(0x318)](_0x3fe286,_0x3b3d35){const _0xf17b66=_0x1f66a3,{col:_0x367bb2,unitId:_0x28a6f9,subUnitId:_0xd6fb0}=_0x3b3d35,_0x2c2b7d=[],_0x4856ad=[],_0x2234c9=_0x271f69[_0xf17b66(0x4d4)](this[_0xf17b66(0x489)],{'unitId':_0x28a6f9,'subUnitId':_0xd6fb0});if(!_0x3b3d35||!_0x3fe286||!_0x2234c9)return{'undos':_0x4856ad,'redos':_0x2c2b7d};const _0x4da4c6=this['_sheetsPivotTableConfigModel']['getTextInfo'](),{colView:_0x62c407,dataView:_0x59a104,cornerView:_0x123cde,rowView:_0x3065de,formatMap:_0xb6b135}=_0x3fe286,_0x1e17f8=_0x708fca(_0x62c407,_0x4da4c6,!0x0,_0xb6b135),_0x26a7ed=_0x708fca(_0x3065de,_0x4da4c6,!0x1,_0xb6b135),_0x6f8fa7=_0x487aa9(_0x59a104),_0x44461c=_0x40797b(_0x123cde),{worksheet:_0x4820ab}=_0x2234c9;if(typeof window<'u'&&window[_0xf17b66(0x3f7)]){const _0x253225=_0x44f4bc[_0xf17b66(0x1e1)]({..._0x536a97['colStyle']}),_0x3dee26=_0x44f4bc['FontCache']['getTextSize'](_0x1e17f8,_0x253225)['width']+0x10,_0xfbde44=_0x44f4bc['FontCache']['getTextSize'](_0x6f8fa7,_0x253225)[_0xf17b66(0x344)],_0x4540f1=Math[_0xf17b66(0x38c)](Math['max'](_0x3dee26,_0xfbde44))+0x10,_0x3bb492=Math['floor'](_0x44f4bc[_0xf17b66(0x4d3)][_0xf17b66(0x393)](_0x26a7ed,_0x253225)[_0xf17b66(0x344)]),_0x405b27=Math[_0xf17b66(0x38c)](_0x44f4bc['FontCache'][_0xf17b66(0x393)](_0x44461c,_0x253225)['width']),_0x2a4fb3=Math[_0xf17b66(0x341)](_0x3bb492,_0x405b27,0x28)+0xc,_0x43f558=_0x62c407[_0xf17b66(0x40f)]+_0x123cde[_0xf17b66(0x40f)],_0x8de2c8={},_0xe48794={};for(let _0x58e8e7=_0x367bb2;_0x58e8e7<_0x367bb2+_0x43f558;_0x58e8e7++){const _0x41795e=_0x4820ab[_0xf17b66(0x273)](_0x58e8e7);_0x8de2c8[_0x58e8e7]=_0x41795e,_0x58e8e7-_0x367bb2<_0x123cde['colCount']?_0xe48794[_0x58e8e7-_0x367bb2]=_0x2a4fb3:_0xe48794[_0x58e8e7-_0x367bb2]=_0x4540f1;}_0x2c2b7d['push']({'id':_0x271f69['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0xd6fb0,'unitId':_0x28a6f9,'ranges':[{'startColumn':_0x367bb2,'endColumn':_0x367bb2+_0x43f558-0x1,'startRow':0x0,'endRow':_0x4820ab['getRowCount']()-0x1}],'colWidth':_0xe48794}}),_0x4856ad['push']({'id':_0x271f69[_0xf17b66(0x230)]['id'],'params':{'subUnitId':_0xd6fb0,'unitId':_0x28a6f9,'ranges':[{'startColumn':_0x367bb2,'endColumn':_0x367bb2+_0x43f558-0x1,'startRow':0x0,'endRow':_0x4820ab['getRowCount']()-0x1}],'colWidth':_0x8de2c8}});}return{'undos':_0x4856ad,'redos':_0x2c2b7d};}};_0x3e061a=_0x4b6675([_0x137f43(0x0,_0x47953c['Inject'](_0x271f69[_0x1f66a3(0x396)])),_0x137f43(0x1,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x27a)])),_0x137f43(0x2,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x364)])),_0x137f43(0x3,_0x47953c[_0x1f66a3(0x420)](_0x447ba5['SheetsPivotTableConfigModel'])),_0x137f43(0x4,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x26a)]))],_0x3e061a);var _0x4af585=Object['getOwnPropertyDescriptor'],_0x120d5f=(_0x416d2f,_0x1ad59d,_0x2950e7,_0x3530b2)=>{const _0x2ad93d=_0x1f66a3;for(var _0x2234b2=_0x3530b2>0x1?void 0x0:_0x3530b2?_0x4af585(_0x1ad59d,_0x2950e7):_0x1ad59d,_0x4eb997=_0x416d2f[_0x2ad93d(0x217)]-0x1,_0x12d8bd;_0x4eb997>=0x0;_0x4eb997--)(_0x12d8bd=_0x416d2f[_0x4eb997])&&(_0x2234b2=_0x12d8bd(_0x2234b2)||_0x2234b2);return _0x2234b2;},_0x4ac3d8=(_0x321583,_0x1f485a)=>(_0x8b2ae1,_0x3cbd01)=>_0x1f485a(_0x8b2ae1,_0x3cbd01,_0x321583);let _0x1cd0c9=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x50be95,_0xeea75b,_0x162288,_0x4c1f7e,_0x2b62f6,_0x1c63cd,_0x4235d6){const _0x1512e9=_0x1f66a3;super(),_0x3e3ba8(this,_0x1512e9(0x3e8),new _0x47953c['DisposableCollection']()),(this[_0x1512e9(0x2b5)]=_0x50be95,this['_refRangeService']=_0xeea75b,this['_commandService']=_0x162288,this[_0x1512e9(0x489)]=_0x4c1f7e,this[_0x1512e9(0x39b)]=_0x2b62f6,this['_sheetsPivotTableAdaptorModel']=_0x1c63cd,this[_0x1512e9(0x407)]=_0x4235d6,this[_0x1512e9(0x4ab)]());}[_0x1f66a3(0x4ab)](){const _0x1cde4e=_0x1f66a3,_0x10676a=(_0x458670,_0x4c8b6e)=>{const _0x1e85a4=_0x3953,_0x2623e1=this[_0x1e85a4(0x489)][_0x1e85a4(0x1df)](_0x47953c[_0x1e85a4(0x31a)]['UNIVER_SHEET']);if(!_0x2623e1||!(_0x2623e1==null?void 0x0:_0x2623e1[_0x1e85a4(0x49b)](_0x4c8b6e)))return;this[_0x1e85a4(0x3e8)][_0x1e85a4(0x27d)]();const _0x3c06e7=_0x2937b4=>this[_0x1e85a4(0x45f)](_0x2937b4,_0x458670,_0x4c8b6e),_0x53cd54=this[_0x1e85a4(0x39b)][_0x1e85a4(0x289)](_0x458670,_0x4c8b6e);if(!(_0x53cd54!=null&&_0x53cd54[_0x1e85a4(0x3aa)]))return;Array['from'](_0x53cd54[_0x1e85a4(0x31e)]())['map'](_0xf62491=>{const _0x40da19=_0x1e85a4,{row:_0x5010f2,col:_0x1e0a2b}=_0xf62491[_0x40da19(0x38e)];return _0x47953c['cellToRange'](_0x5010f2,_0x1e0a2b);})[_0x1e85a4(0x370)](_0x5cda40=>{const _0x256e7d=_0x1e85a4;this[_0x256e7d(0x3e8)][_0x256e7d(0x224)](this[_0x256e7d(0x494)][_0x256e7d(0x409)](_0x5cda40,_0x3c06e7,_0x458670,_0x4c8b6e));});},_0x7ae97c=()=>{const _0x5bfce0=_0x3953,_0x5a7dca=this[_0x5bfce0(0x489)][_0x5bfce0(0x1df)](_0x47953c[_0x5bfce0(0x31a)][_0x5bfce0(0x48b)]);if(_0x5a7dca){const _0x51c949=_0x5a7dca['getActiveSheet']();if(!_0x51c949)return;_0x10676a(_0x5a7dca['getUnitId'](),_0x51c949[_0x5bfce0(0x499)]());}};this['disposeWithMe'](this[_0x1cde4e(0x3c1)][_0x1cde4e(0x4e6)](_0x87eaca=>{const _0x2b82f3=_0x1cde4e;if(_0x87eaca['id']===_0x271f69[_0x2b82f3(0x20e)]['id']){const _0x361483=_0x87eaca[_0x2b82f3(0x352)],_0x3dda25=_0x361483['subUnitId'],_0x3c85f7=_0x361483['unitId'];if(!_0x3dda25||!_0x3c85f7)return;_0x10676a(_0x3c85f7,_0x3dda25);}})),this[_0x1cde4e(0x4e5)](this['_sheetsPivotTableConfigModel'][_0x1cde4e(0x3c8)][_0x1cde4e(0x1e4)](_0x52a94f=>{_0x52a94f&&_0x7ae97c();})),this[_0x1cde4e(0x4e5)](this[_0x1cde4e(0x39b)][_0x1cde4e(0x35d)][_0x1cde4e(0x1e4)](_0x15ea50=>{const _0x461011=_0x1cde4e,_0x1b942b=_0x271f69[_0x461011(0x4d4)](this[_0x461011(0x489)]);if(!_0x1b942b)return;const {unitId:_0x1257e6,subUnitId:_0x56f6bb}=_0x1b942b,{unitId:_0x1878a8,subUnitId:_0x22eea2}=_0x15ea50;_0x1257e6!==_0x1878a8||_0x56f6bb!==_0x22eea2||_0x10676a(_0x1257e6,_0x56f6bb);})),_0x7ae97c();}[_0x1f66a3(0x45f)](_0x3861a3,_0x29d175,_0x3926ab){const _0x1685ed=_0x1f66a3;switch(_0x3861a3['id']){case _0x271f69[_0x1685ed(0x477)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x3861a3[_0x1685ed(0x352)],_0x29d175,_0x3926ab);}return{'redos':[],'undos':[]};}[_0x1f66a3(0x26c)](_0x5d0f8d,_0x1de1fe,_0x21ecc0){const _0x4cc0d0=_0x1f66a3,{fromRange:_0x42df57,toRange:_0x33dc9f}=_0x5d0f8d,_0x3c2c86=[],_0x4f741f=[],_0x1ddd68=_0x271f69[_0x4cc0d0(0x4d4)](this[_0x4cc0d0(0x489)]);if(!_0x1ddd68)return{'undos':_0x4f741f,'redos':_0x3c2c86};if(_0x1de1fe!==_0x1ddd68['unitId']||_0x21ecc0!==_0x1ddd68[_0x4cc0d0(0x388)])return{'undos':_0x4f741f,'redos':_0x3c2c86};const _0x192fe1=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x1de1fe,_0x21ecc0);if(_0x192fe1!=null&&_0x192fe1['size'])for(const [_0x29cc59,_0x323299]of _0x192fe1){const {unitId:_0x2fc10d,subUnitId:_0x1f0040,row:_0x1906c6,col:_0x5bf488}=_0x323299[_0x4cc0d0(0x38e)];if(_0x2fc10d===_0x1ddd68[_0x4cc0d0(0x33e)]&&_0x1f0040===_0x1ddd68['subUnitId']){const _0x3af42f=_0x47953c[_0x4cc0d0(0x39f)](_0x1906c6,_0x5bf488);if(_0x47953c[_0x4cc0d0(0x24d)][_0x4cc0d0(0x29c)](_0x3af42f,_0x42df57)){const _0x554d2f=_0x1906c6-_0x42df57[_0x4cc0d0(0x404)],_0x231cc9=_0x5bf488-_0x42df57[_0x4cc0d0(0x2df)],_0x33e9aa={'row':_0x33dc9f['startRow']+_0x554d2f,'col':_0x33dc9f[_0x4cc0d0(0x2df)]+_0x231cc9};_0x3c2c86[_0x4cc0d0(0x2b4)]({'id':_0x1aad47['id'],'params':{'unitId':_0x2fc10d,'subUnitId':_0x1f0040,'pivotTableId':_0x29cc59,'targetCellPosition':_0x33e9aa}}),_0x4f741f[_0x4cc0d0(0x2b4)]({'id':_0x1aad47['id'],'params':{'unitId':_0x2fc10d,'subUnitId':_0x1f0040,'pivotTableId':_0x29cc59,'targetCellPosition':{'row':_0x1906c6,'col':_0x5bf488}}});const _0x1a5d6f=_0x33e9aa[_0x4cc0d0(0x222)]-_0x1906c6,_0x56f54c=_0x33e9aa['col']-_0x5bf488,_0x47c69b=[],_0x33d8a1=this['_sheetsPivotTableAdaptorModel'][_0x4cc0d0(0x270)](_0x2fc10d,_0x1f0040,_0x29cc59),_0x409544=_0x33d8a1==null?void 0x0:_0x33d8a1[_0x4cc0d0(0x3cb)];if(_0x409544){Object[_0x4cc0d0(0x1d4)](_0x409544)[_0x4cc0d0(0x370)](_0x3bf4fd=>{const _0x28ebe4=_0x4cc0d0;_0x409544[_0x3bf4fd][_0x28ebe4(0x370)](_0x3a3b9a=>{const _0x2b442c=_0x28ebe4,_0x4351d9={..._0x3a3b9a};_0x4351d9[_0x2b442c(0x404)]=_0x3a3b9a[_0x2b442c(0x404)]+_0x1a5d6f,_0x4351d9['endRow']=_0x3a3b9a[_0x2b442c(0x443)]+_0x1a5d6f,_0x4351d9[_0x2b442c(0x2df)]=_0x3a3b9a['startColumn']+_0x56f54c,_0x4351d9[_0x2b442c(0x2b1)]=_0x3a3b9a[_0x2b442c(0x2b1)]+_0x56f54c,_0x47c69b[_0x2b442c(0x2b4)](_0x4351d9);});});const _0x1a4618=this[_0x4cc0d0(0x407)]['generateMutationsByRanges']({'unitId':_0x2fc10d,'subUnitId':_0x1f0040,'ranges':_0x47c69b});_0x3c2c86[_0x4cc0d0(0x2b4)](..._0x1a4618[_0x4cc0d0(0x398)]),_0x4f741f[_0x4cc0d0(0x2b4)](..._0x1a4618['undos']);const _0x4ea413=_0x442ea1(this['_injector'],_0x2fc10d,_0x1f0040,_0x47c69b);_0x4ea413['shouldClear']&&(_0x3c2c86['push'](_0x4ea413['setRangeValueRedoMutation']),_0x4f741f['push'](_0x4ea413['setRangeValueUndoMutation']));}}}}return{'redos':_0x3c2c86,'undos':_0x4f741f};}};_0x1cd0c9=_0x120d5f([_0x4ac3d8(0x0,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x27a)])),_0x4ac3d8(0x1,_0x47953c[_0x1f66a3(0x420)](_0x271f69[_0x1f66a3(0x3f1)])),_0x4ac3d8(0x2,_0x47953c['ICommandService']),_0x4ac3d8(0x3,_0x47953c['IUniverInstanceService']),_0x4ac3d8(0x4,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x322)])),_0x4ac3d8(0x5,_0x47953c['Inject'](_0x447ba5[_0x1f66a3(0x3e7)])),_0x4ac3d8(0x6,_0x47953c[_0x1f66a3(0x420)](_0x271f69['SheetInterceptorService']))],_0x1cd0c9);var _0x449228=Object[_0x1f66a3(0x2e4)],_0x5052b3=(_0x33e6a8,_0x306eb8,_0x5a9e38,_0x2c86f1)=>{const _0x15ae54=_0x1f66a3;for(var _0x46996d=_0x2c86f1>0x1?void 0x0:_0x2c86f1?_0x449228(_0x306eb8,_0x5a9e38):_0x306eb8,_0x1ede1f=_0x33e6a8[_0x15ae54(0x217)]-0x1,_0xb40f9b;_0x1ede1f>=0x0;_0x1ede1f--)(_0xb40f9b=_0x33e6a8[_0x1ede1f])&&(_0x46996d=_0xb40f9b(_0x46996d)||_0x46996d);return _0x46996d;},_0x28de70=(_0x225a80,_0x1479e6)=>(_0x34c568,_0x246a21)=>_0x1479e6(_0x34c568,_0x246a21,_0x225a80);let _0x266e68=class extends _0x47953c['Disposable']{constructor(_0x2624b1,_0x3066dc){const _0x598b91=_0x1f66a3;super(),this[_0x598b91(0x407)]=_0x2624b1,this[_0x598b91(0x39b)]=_0x3066dc,this[_0x598b91(0x3c3)]();}[_0x1f66a3(0x3c3)](){const _0x14682e=_0x1f66a3;this[_0x14682e(0x4e5)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x55ad68=>{const _0x5a3eb6=_0x14682e;if(_0x55ad68['id']===_0x271f69['RemoveSheetCommand']['id']){const _0x1491e5=[],_0x475212=[],_0x5183b7=_0x55ad68[_0x5a3eb6(0x352)],{unitId:_0x4ba6ee,subUnitId:_0x37964d}=_0x5183b7;if(!_0x4ba6ee||!_0x37964d)return{'undos':_0x475212,'redos':_0x1491e5};const _0x16d6fd=this[_0x5a3eb6(0x39b)]['getSubUnitPivotConfigs'](_0x4ba6ee,_0x37964d);if(_0x16d6fd!=null&&_0x16d6fd['size'])for(const [_0x42ad5a,_0x351e7c]of _0x16d6fd){_0x1491e5[_0x5a3eb6(0x2b4)]({'id':_0x24f5f9['id'],'params':{'unitId':_0x4ba6ee,'subUnitId':_0x37964d,'pivotTableId':_0x42ad5a}});const _0x2425b3={...this[_0x5a3eb6(0x39b)][_0x5a3eb6(0x4dd)](_0x4ba6ee,_0x42ad5a)};_0x475212[_0x5a3eb6(0x2b4)]({'id':_0x2d3644['id'],'params':{'unitId':_0x4ba6ee,'subUnitId':_0x37964d,'pivotTableId':_0x42ad5a,'pivotTableConfig':_0x351e7c,'collectionConfig':_0x2425b3}});}return{'redos':_0x1491e5,'undos':_0x475212};}return{'redos':[],'undos':[]};}}));}};_0x266e68=_0x5052b3([_0x28de70(0x0,_0x47953c['Inject'](_0x271f69[_0x1f66a3(0x396)])),_0x28de70(0x1,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x322)]))],_0x266e68);var _0x58a499=Object[_0x1f66a3(0x2e4)],_0x3eb011=(_0x1abdbb,_0x2c33ed,_0x35081a,_0x1a15ff)=>{const _0xa1b30d=_0x1f66a3;for(var _0x2a1557=_0x1a15ff>0x1?void 0x0:_0x1a15ff?_0x58a499(_0x2c33ed,_0x35081a):_0x2c33ed,_0x2cbc19=_0x1abdbb[_0xa1b30d(0x217)]-0x1,_0x3bd73c;_0x2cbc19>=0x0;_0x2cbc19--)(_0x3bd73c=_0x1abdbb[_0x2cbc19])&&(_0x2a1557=_0x3bd73c(_0x2a1557)||_0x2a1557);return _0x2a1557;},_0x27e0f2=(_0x59ba7a,_0xc6c1d7)=>(_0x49efbb,_0x171822)=>_0xc6c1d7(_0x49efbb,_0x171822,_0x59ba7a);let _0x2b86df=class extends _0x47953c[_0x1f66a3(0x3a9)]{constructor(_0x567259,_0x3dd4eb,_0x305683,_0x554a0d,_0x561c20,_0xd80d68){const _0x3624f2=_0x1f66a3;super(),this[_0x3624f2(0x3c1)]=_0x567259,this[_0x3624f2(0x3a6)]=_0x3dd4eb,this[_0x3624f2(0x275)]=_0x305683,this['_sheetsPivotTableConfigModel']=_0x554a0d,this[_0x3624f2(0x489)]=_0x561c20,this[_0x3624f2(0x200)]=_0xd80d68,this['_initDataSendListener'](),this[_0x3624f2(0x3e2)]();}['_initDataSendListener'](){const _0x28f412=_0x1f66a3;this[_0x28f412(0x4e5)](this['_commandService']['onCommandExecuted'](_0x1564ca=>{const _0xca8eac=_0x28f412;if(_0x1564ca['id']!==_0x527330['id'])return;const _0x759e80=_0x1564ca['params'];this[_0xca8eac(0x3a6)][_0xca8eac(0x1f6)](_0x759e80);})),this[_0x28f412(0x4e5)](this[_0x28f412(0x3c1)][_0x28f412(0x4e6)](_0x16081a=>{const _0x5bfba9=_0x28f412;if(_0x16081a['id']===_0x501b59['id']){const _0x47d9a0=_0x16081a[_0x5bfba9(0x352)];if(_0x47d9a0){const {unitId:_0x4b647a,subUnitId:_0x5a4962,oldSubUnitId:_0x434aa2,pivotTableId:_0x4e977d,pivotTableConfig:_0x358955,collectionConfig:_0x1b4f91}=_0x47d9a0;this[_0x5bfba9(0x39b)][_0x5bfba9(0x355)](_0x4b647a,_0x434aa2,_0x47d9a0[_0x5bfba9(0x42f)],null),this[_0x5bfba9(0x39b)][_0x5bfba9(0x355)](_0x4b647a,_0x5a4962,_0x4e977d,_0x358955),this[_0x5bfba9(0x39b)][_0x5bfba9(0x33a)](_0x4b647a,_0x1b4f91);}}})),this[_0x28f412(0x4e5)](this['_commandService'][_0x28f412(0x4e6)](_0x52853b=>{const _0x5c963b=_0x28f412;if(_0x52853b['id']!==_0xaddee0['id'])return;const _0x72776a=_0x271f69[_0x5c963b(0x4d4)](this[_0x5c963b(0x489)]);if(!_0x72776a)return;const {unitId:_0x44ac25,subUnitId:_0x42469f}=_0x72776a,_0x4e0e23=_0x52853b[_0x5c963b(0x352)];if(_0x4e0e23[_0x5c963b(0x236)]&&Object['keys'](_0x4e0e23[_0x5c963b(0x236)])['forEach'](_0x505b57=>{const _0x2009b0=_0x5c963b;var _0x1f8fb4;(_0x1f8fb4=_0x4e0e23[_0x2009b0(0x236)])!=null&&_0x1f8fb4[_0x505b57]&&this[_0x2009b0(0x39b)][_0x2009b0(0x33a)](_0x505b57,_0x4e0e23[_0x2009b0(0x236)][_0x505b57]);}),_0x4e0e23[_0x5c963b(0x3fd)]){const _0x1344e9=_0x4e0e23[_0x5c963b(0x3fd)],{unitId:_0x1c6103,subUnitId:_0x50d76f,view:_0x37d97b,pivotTableId:_0x480b2c,type:_0x4e8163,pivotConfig:_0x36850c}=_0x1344e9;if(_0x4e8163===_0x35ec99['Delete'])this[_0x5c963b(0x275)][_0x5c963b(0x467)]({'unitId':_0x1c6103,'subUnitId':_0x50d76f,'pivotTableId':_0x480b2c,'type':_0x4e8163}),this[_0x5c963b(0x39b)][_0x5c963b(0x355)](_0x1c6103,_0x50d76f,_0x480b2c,null);else{const _0x3b0a6a=new _0x454ae3[(_0x5c963b(0x1e2))]();_0x3b0a6a[_0x5c963b(0x2a5)](_0x37d97b),this[_0x5c963b(0x39b)]['updateConfigCache'](_0x1c6103,_0x50d76f,_0x480b2c,_0x36850c),this[_0x5c963b(0x275)][_0x5c963b(0x467)]({'unitId':_0x1c6103,'subUnitId':_0x50d76f,'pivotTableId':_0x480b2c,'type':_0x4e8163,'view':_0x3b0a6a}),this['_sheetsPivotTableAdaptorModel'][_0x5c963b(0x419)]({'unitId':_0x1c6103,'subUnitId':_0x50d76f,'view':_0x3b0a6a,'pivotTableId':_0x480b2c,'type':_0x4e8163});}}else _0x4e0e23['batch']&&(_0x4e0e23[_0x5c963b(0x3b9)]['forEach'](_0x3266a6=>{const _0x3794ab=_0x5c963b,{unitId:_0x1e7ad3,subUnitId:_0x46fe54,view:_0x7f76c6,pivotTableId:_0x414f97,type:_0x5c2da2,pivotConfig:_0x229a0b}=_0x3266a6,_0x36aa34=new _0x454ae3[(_0x3794ab(0x1e2))]();_0x36aa34[_0x3794ab(0x2a5)](_0x7f76c6),this[_0x3794ab(0x39b)]['updateConfigCache'](_0x1e7ad3,_0x46fe54,_0x414f97,_0x229a0b),this[_0x3794ab(0x275)][_0x3794ab(0x419)]({'unitId':_0x1e7ad3,'subUnitId':_0x46fe54,'view':_0x36aa34,'pivotTableId':_0x414f97,'type':_0x5c2da2});}),this[_0x5c963b(0x39b)][_0x5c963b(0x4a3)]());this[_0x5c963b(0x275)][_0x5c963b(0x3df)](_0x44ac25,_0x42469f);}));}[_0x1f66a3(0x3e2)](){const _0x4f4bb0=_0x1f66a3;this[_0x4f4bb0(0x200)][_0x4f4bb0(0x408)](_0x3a0266['id'],{'commandId':_0x3a0266['id'],'getDirtyData'(_0x5d94b8){const _0x1a600c=_0x4f4bb0;return{'dirtyUnitFeatureMap':_0x5d94b8[_0x1a600c(0x352)]};}});}};_0x2b86df=_0x3eb011([_0x27e0f2(0x0,_0x47953c[_0x1f66a3(0x420)](_0x47953c['ICommandService'])),_0x27e0f2(0x1,_0x47953c[_0x1f66a3(0x420)](_0x447ba5['SheetsPivotRPCService'])),_0x27e0f2(0x2,_0x47953c[_0x1f66a3(0x420)](_0x447ba5['SheetsPivotTableAdaptorModel'])),_0x27e0f2(0x3,_0x47953c[_0x1f66a3(0x420)](_0x447ba5[_0x1f66a3(0x322)])),_0x27e0f2(0x4,_0x47953c[_0x1f66a3(0x420)](_0x47953c[_0x1f66a3(0x364)])),_0x27e0f2(0x5,_0x311ac2['IActiveDirtyManagerService'])],_0x2b86df);var _0x578cb1=Object[_0x1f66a3(0x478)],_0x4cc8a3=Object[_0x1f66a3(0x2e4)],_0x283520=(_0x26f661,_0x28d5f4,_0x5689ef)=>_0x28d5f4 in _0x26f661?_0x578cb1(_0x26f661,_0x28d5f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5689ef}):_0x26f661[_0x28d5f4]=_0x5689ef,_0x4ccd08=(_0x481286,_0x365227,_0x229de8,_0x3a99ed)=>{const _0x570b83=_0x1f66a3;for(var _0x3a8f82=_0x3a99ed>0x1?void 0x0:_0x3a99ed?_0x4cc8a3(_0x365227,_0x229de8):_0x365227,_0x1a481e=_0x481286[_0x570b83(0x217)]-0x1,_0xbd266a;_0x1a481e>=0x0;_0x1a481e--)(_0xbd266a=_0x481286[_0x1a481e])&&(_0x3a8f82=_0xbd266a(_0x3a8f82)||_0x3a8f82);return _0x3a8f82;},_0x510253=(_0x22bb4a,_0x11d6e9)=>(_0x47bd2f,_0x6432de)=>_0x11d6e9(_0x47bd2f,_0x6432de,_0x22bb4a),_0x1faec6=(_0x9e0edd,_0xea1e72,_0x15102c)=>_0x283520(_0x9e0edd,typeof _0xea1e72!='symbol'?_0xea1e72+'':_0xea1e72,_0x15102c);_0x447ba5['UniverSheetsPivotTablePlugin']=class extends _0x47953c[_0x1f66a3(0x4db)]{constructor(_0x12489c=_0x457fa0,_0x139388,_0xdc7de8,_0x510c40,_0x75b722){const _0x3f9a00=_0x1f66a3;super(),this[_0x3f9a00(0x23e)]=_0x12489c,this[_0x3f9a00(0x2b5)]=_0x139388,this['_commandService']=_0xdc7de8,this[_0x3f9a00(0x209)]=_0x510c40,this[_0x3f9a00(0x3fb)]=_0x75b722;const {..._0xf5e64f}=_0x47953c[_0x3f9a00(0x2cf)]({},_0x457fa0,this[_0x3f9a00(0x23e)]);this[_0x3f9a00(0x209)]['setConfig'](_0x2e0162,_0xf5e64f),this[_0x3f9a00(0x4b2)](),this[_0x3f9a00(0x4da)]();}[_0x1f66a3(0x4da)](){const _0x2052d2=_0x1f66a3;var _0x2cf298;const _0xf1b751=(_0x2cf298=this[_0x2052d2(0x23e)])==null?void 0x0:_0x2cf298[_0x2052d2(0x43a)];this['_configService'][_0x2052d2(0x470)](_0x1ff33b,_0xf1b751===!0x0);}[_0x1f66a3(0x3d8)](){const _0x1bf1c4=_0x1f66a3;var _0x2ddd99;let _0x36de56=[];const _0x1e7ddc=(_0x2ddd99=this[_0x1bf1c4(0x23e)])==null?void 0x0:_0x2ddd99[_0x1bf1c4(0x43a)];_0x1e7ddc===!0x0?_0x36de56=[[_0x447ba5[_0x1bf1c4(0x26a)]],[_0x447ba5[_0x1bf1c4(0x281)]],[_0x2b86df],[_0x447ba5[_0x1bf1c4(0x3e7)]],[_0x447ba5[_0x1bf1c4(0x322)]],[_0x266e68],[_0x2ab404],[_0x1cd0c9],[_0x3e061a]]:_0x1e7ddc===!0x1?_0x36de56=[[_0x447ba5[_0x1bf1c4(0x330)]],[_0x2ba2bd]]:_0x1e7ddc===void 0x0&&(_0x36de56=[[_0x447ba5['SheetsPivotDataSourceModel']],[_0x2ba2bd],[_0x447ba5[_0x1bf1c4(0x26a)]],[_0x447ba5[_0x1bf1c4(0x281)]],[_0x2b86df],[_0x447ba5[_0x1bf1c4(0x3e7)]],[_0x447ba5[_0x1bf1c4(0x322)]],[_0x266e68],[_0x2ab404],[_0x1cd0c9],[_0x3e061a]]),_0x36de56[_0x1bf1c4(0x370)](_0x38bac1=>this[_0x1bf1c4(0x2b5)][_0x1bf1c4(0x224)](_0x38bac1)),[_0x2ba2bd,_0x2b86df,_0x447ba5[_0x1bf1c4(0x26a)],_0x2ab404,_0x266e68,_0x1cd0c9,_0x3e061a][_0x1bf1c4(0x370)](_0x49fabd=>{const _0x2d4ddd=_0x1bf1c4;this[_0x2d4ddd(0x2b5)][_0x2d4ddd(0x3a8)](_0x49fabd)&&this['_injector'][_0x2d4ddd(0x2ab)](_0x49fabd);});}[_0x1f66a3(0x4b2)](){const _0x32fedc=_0x1f66a3;[_0x5d8377,_0x159041,_0x1a2676,_0x4fa424,_0x59671d,_0x10cf92,_0x405c13,_0x13646f,_0x100dca,_0x59ffc9,_0x49655e,_0x5003c2,_0x782032,_0x2e3c61,_0x2d3644,_0x355569,_0x24f5f9,_0x4f1a8a,_0xc70671,_0x1dd101,_0x3ec486,_0x26963b,_0x25257d,_0x5e5ba4,_0x5b71c3,_0x1835d4,_0x1aad47,_0xbdd99b,_0x527330,_0xaddee0,_0x25dd4f,_0x21bf1d,_0x303205,_0x4987ce,_0x92655e,_0x5f48b5,_0x5f159a,_0x3a0266,_0x501b59,_0x50b873,_0x3f673f,_0x11a026,_0x323611][_0x32fedc(0x370)](_0x5981e6=>{const _0xdc5ad8=_0x32fedc;var _0x308277;(_0x308277=this['_dataSyncPrimaryController'])==null||_0x308277[_0xdc5ad8(0x4e2)](_0x5981e6),this[_0xdc5ad8(0x3c1)][_0xdc5ad8(0x395)](_0x5981e6);});}},_0x1faec6(_0x447ba5[_0x1f66a3(0x1d8)],_0x1f66a3(0x2d5),_0x548f94),_0x1faec6(_0x447ba5['UniverSheetsPivotTablePlugin'],_0x1f66a3(0x210),_0x47953c[_0x1f66a3(0x31a)][_0x1f66a3(0x48b)]),_0x447ba5['UniverSheetsPivotTablePlugin']=_0x4ccd08([_0x47953c[_0x1f66a3(0x2ae)](_0xeb4f2b[_0x1f66a3(0x298)]),_0x510253(0x1,_0x47953c['Inject'](_0x47953c[_0x1f66a3(0x27a)])),_0x510253(0x2,_0x47953c[_0x1f66a3(0x420)](_0x47953c['ICommandService'])),_0x510253(0x3,_0x47953c[_0x1f66a3(0x4bb)]),_0x510253(0x4,_0x47953c[_0x1f66a3(0x3a4)](_0x3cf301['DataSyncPrimaryController']))],_0x447ba5[_0x1f66a3(0x1d8)]),_0x447ba5[_0x1f66a3(0x29b)]=_0x1a2676,_0x447ba5[_0x1f66a3(0x1fb)]=_0x4f1a8a,_0x447ba5[_0x1f66a3(0x456)]=_0x159041,_0x447ba5[_0x1f66a3(0x36b)]=_0x2d3644,_0x447ba5[_0x1f66a3(0x3c6)]=_0x5d8377,_0x447ba5[_0x1f66a3(0x417)]=_0x474d9e,_0x447ba5[_0x1f66a3(0x473)]=_0xd2c7ac,_0x447ba5['MovePivotFieldCommand']=_0x4fa424,_0x447ba5[_0x1f66a3(0x205)]=_0x782032,_0x447ba5['PivotDisplayDataType']=_0x1e1e2c,_0x447ba5['PivotDrillDownCommand']=_0x2e3c61,_0x447ba5[_0x1f66a3(0x28a)]=_0x35ec99,_0x447ba5[_0x1f66a3(0x2a4)]=_0x3a0266,_0x447ba5[_0x1f66a3(0x3c2)]=_0x42aeb5,_0x447ba5[_0x1f66a3(0x436)]=_0x59671d,_0x447ba5[_0x1f66a3(0x1dc)]=_0x26963b,_0x447ba5[_0x1f66a3(0x447)]=_0x24f5f9,_0x447ba5[_0x1f66a3(0x4a8)]=_0x25257d,_0x447ba5[_0x1f66a3(0x211)]=_0x323611,_0x447ba5[_0x1f66a3(0x321)]=_0x2e0162,_0x447ba5[_0x1f66a3(0x3ee)]=_0x548f94,_0x447ba5[_0x1f66a3(0x223)]=_0x13646f,_0x447ba5['SetPivotCollapseMutation']=_0x5e5ba4,_0x447ba5[_0x1f66a3(0x278)]=_0x4987ce,_0x447ba5[_0x1f66a3(0x37b)]=_0x11a026,_0x447ba5['SetPivotFilterCommand']=_0x59ffc9,_0x447ba5[_0x1f66a3(0x48e)]=_0x3ec486,_0x447ba5[_0x1f66a3(0x383)]=_0x1835d4,_0x447ba5[_0x1f66a3(0x4b6)]=_0x1aad47,_0x447ba5['SetPivotSortCommand']=_0x100dca,_0x447ba5[_0x1f66a3(0x3ae)]=_0x5b71c3,_0x447ba5[_0x1f66a3(0x1d6)]=_0x303205,_0x447ba5[_0x1f66a3(0x27c)]=_0x50b873,_0x447ba5[_0x1f66a3(0x2d3)]=_0x3f673f,_0x447ba5[_0x1f66a3(0x2a3)]=_0x405c13,_0x447ba5['UpdateFieldPositionMutation']=_0x25dd4f,_0x447ba5[_0x1f66a3(0x49c)]=_0x49655e,_0x447ba5[_0x1f66a3(0x4e7)]=_0x5f159a,_0x447ba5[_0x1f66a3(0x3dd)]=_0x5003c2,_0x447ba5[_0x1f66a3(0x2a7)]=_0x5f48b5,_0x447ba5[_0x1f66a3(0x428)]=_0x10cf92,_0x447ba5['UpdateValuePositionMutation']=_0x21bf1d,_0x447ba5[_0x1f66a3(0x463)]=_0x430022,_0x447ba5[_0x1f66a3(0x4a0)]=_0x1ed697,_0x447ba5['defaultThemeStyle']=_0x536a97,_0x447ba5[_0x1f66a3(0x315)]=_0x442ea1,_0x447ba5['getAdjustRangesPosition']=_0x16e0b8,_0x447ba5[_0x1f66a3(0x4a2)]=_0x32e6b1,_0x447ba5[_0x1f66a3(0x4b8)]=_0x4d7089,_0x447ba5[_0x1f66a3(0x4b3)]=_0x3c8c3a,_0x447ba5['getPivotCellInfo']=_0x30590d,_0x447ba5[_0x1f66a3(0x437)]=_0x4c1091,_0x447ba5['getPivotTableInfo']=_0x286058,_0x447ba5['transFromCellValue']=_0x5bba38,_0x447ba5[_0x1f66a3(0x2cc)]=_0x2600c7,Object[_0x1f66a3(0x478)](_0x447ba5,Symbol[_0x1f66a3(0x4be)],{'value':_0x1f66a3(0x3d2)});}));function _0x3953(_0x69a0cf,_0x54942e){const _0x398d2b=_0x398d();return _0x3953=function(_0x395377,_0x5b3ab2){_0x395377=_0x395377-0x1ce;let _0x4fddaf=_0x398d2b[_0x395377];return _0x4fddaf;},_0x3953(_0x69a0cf,_0x54942e);}function _0x398d(){const _0xf329bc=['getRangeData','Minute','setDataRecordCount','sheet.mutation.pivot-update-field-source-info','rxjs','sheets-pivot.dateGroup.hourMinute','pivotTableId','_markDirty$','removeDataField','DateGroupField','_updateRenderEmptyCache','dimension','IFeatureCalculationManagerService','RemovePivotFieldCommand','getPivotInfoByLicense','sheets-pivot.cellDateGroupDisplay.date','1HiAKdh','notExecuteFormula','updateViewInfo','sheet.mutation.set-pivot-collapse','headerMap','sheet.command.update-pivot-value-position','sheets-pivot.dateGroup.quarter','_localeService','GlobalConfig','setPivotCollapse','endRow','BehaviorSubject','sheet.mutation.remove-group-collection','asyncInterceptor','RemovePivotTableMutation','fields','asObservable','isColMultiMeasure','substring','map','getFilterInfo','sheet.command.remove-pivot-field','splice','sheet.mutation.update-date-group','_pivotInitCompleted$','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','addCollection','getMonth','getUnitId','AddPivotTableCommand','@univerjs-pro/engine-pivot','MovePivotField','_createExclusiveRange','Set','generateNewSheetName','sheet.command.add-pivot-table-with-config','_host','object','_refRangeHandle','_viewUpdate$','SetFieldFormat','#FFFFFF','applyChangeSet','ErrorType','generateRandomId','sheets-pivot.emptyPivot.row','clearRenderCache','textInfo','rangeKey','NUM','minDate','isEmpty','level','Range','_subjectViewChange','setConfig','addFieldWithSourceId','serializeRangeWithSpreadsheet','DEFAULT_PIVOT_NUMBER','SHEET_PIVOT_IN_MAIN_THREAD','sheet.command.set-pivot-field-setting','unshift','MoveRangeCommand','defineProperty','iterateFieldByArea','getSortInfo','_initSnapshot','1379ffTQuU','sheets-pivot.dateGroup.yearMonth','parseInt','parse','versions','delete','deleteField','sheets-pivot.dateGroup.yearQuarter','getName','NUMBER','AddField','getPivotTableCellData','registerPluginResource','_univerInstanceService','Tools','UNIVER_SHEET','updateFieldSourceInfo','sequenceExecute','SetPivotFilterMutation','set','_pivotRenderValueMatrixCache','PivotDataFieldDataTypeEnum','NORMAL','_generateUniqueVersion','_refRangeService','PivotViewCellValueTypeEnum','rowInfo','sourceRangeInfo','matrix','getSheetId','MAX_SAFE_INTEGER','getSheetBySheetId','UpdatePivotFieldSettingCommand','rowRanges','getDisplayName','getPivotPerformCheck','canUsePivot','generateHexNumber','getEmptyPivotRanges','setPivotInitCompleted','InsertRowMutation','setCollapse','COLUMN','getId','RenamePivotFieldMutation','getColCount','updateValuePosition','_onRefRangeChange','SetRangeValuesMutation','deleteUnitId','sheets-pivot.stdDevName','Subtotal','filter','_initUnitDisposed','_initRegisterCommand','getInsertRowColMutations','afFExqhF\x20LYErj1xqhF(SqEYFQY,\x201fZSqEiYj)\x20{\x20\x20\x20\x20xrj\x20{\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20SqEYFQYXFahVdrxTrrdj\x20=\x20SqEYFQY.Q1Sqx(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20hrqAqFnYQQdAY\x20=\x20yDlM.1drQY(dxhZ(SqEYFQYXFahVdrxTrrdj[N]));\x20\x20\x20\x20\x20\x20\x20\x20qa\x20(!hrqAqFnYQQdAY.fL)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hrqAqFnYQQdAY.fL\x20=\x20MfcZYr(SqEYFQYXFahVdrxTrrdj[W]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20qQ9hr0Yr\x20=\x20xj1Yha\x209hr0Yr7ShZdSDEh1Y\x20!==\x20\x27fFLYaqFYL\x27\x20&&\x20QYSa\x20qFQxdFEYha\x209hr0Yr7ShZdSDEh1Y;\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20EhFxYvx\x20=\x20qQ9hr0Yr\x20?\x20QYSa\x20:\x20gqFLhg;\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20cYQQdAY9hrL\x20=\x20EhFxYvx.__odQYkW__.1drQY(SqEYFQYXFahVdrxTrrdj[N]);\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20cYQQdAY\x20=\x20EhFxYvx.__GYv__.QxrqFAqaj(cYQQdAY9hrL);\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20QqAFdxfrY9hrL\x20=\x20EhFxYvx.__odQYkW__.1drQY(SqEYFQYXFahVdrxTrrdj[2]);\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20QqAFdxfrY\x20=\x20EhFxYvx.__GYv__.QxrqFAqaj(QqAFdxfrY9hrL);\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20QqAFPdSqL\x20=\x20EhFxYvx.__OYrqaj__(QqAFdxfrY,\x20cYQQdAY,\x201fZSqEiYj);\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20LhcdqF\x20=\x20hrqAqFnYQQdAY.Lc;\x20\x20\x20\x20\x20\x20\x20\x20afFExqhF\x20qQmhcdqFndxEJqFA(hVdxxYrF,\x20hGhQx)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x201dxxYrF\x20=\x20hVdxxYrF.rY1SdEY(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20JhQx\x20=\x20hGhQx.rY1SdEY(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x201dxxYrFVdrxQ\x20=\x201dxxYrF.Q1Sqx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20JhQxVdrxQ\x20=\x20JhQx.Q1Sqx(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qa\x20(!1dxxYrF.qFESfLYQ(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rYxfrF\x201dxxYrF\x20===\x20JhQx;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qa\x20(1dxxYrFVdrxQ.SYFAxJ\x20<\x20N\x20||\x201dxxYrFVdrxQ[K]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rYxfrF\x20adSQY;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x201dxxYrFDfaaqv\x20=\x201dxxYrFVdrxQ.QSqEY(5).ehqF(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20JhQxDfaaqv\x20=\x20JhQxVdrxQ.QSqEY(-1dxxYrFVdrxQ.SYFAxJ\x20+\x205).ehqF(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20rYxfrF\x201dxxYrFDfaaqv\x20===\x20JhQxDfaaqv;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20SYx\x20LhcdqFPdSqL\x20=\x20(LhcdqF\x20&&\x20LhcdqF.SYFAxJ)\x20?\x20LhcdqF.QhcY((LcXxYc)\x20=>\x20qQmhcdqFndxEJqFA(LcXxYc,\x20ShEdxqhF.JhQxFdcY))\x20:\x20xrfY;\x20\x20\x20\x20\x20\x20\x20\x20qa\x20(ShEdxqhF.JhQxFdcY\x20===\x20\x27ShEdSJhQx\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LhcdqFPdSqL\x20=\x20xrfY;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20EhFQx\x20OdSqL\x20=\x20QqAFPdSqL\x20&&\x20LhcdqFPdSqL;\x20\x20\x20\x20\x20\x20\x20\x20rYxfrF\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OdSqL,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cYQQdAY:\x20hrqAqFnYQQdAY,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20EdxEJ\x20(Yrrhr)\x20{\x20\x20\x20\x20\x20\x20\x20\x20rYxfrF\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OdSqL:\x20adSQY,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cYQQdAY:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','excelDateToUnixMilliseconds','SetPivotPositionMutation','_collectionChange$','getFieldListByArea','COMMAND','deleteDataField','IConfigService','@univerjs/rpc','setTextInfo','toStringTag','getRangeKey','valueIndex','UniverProSheetsPivot','DataFieldManager','103555fbozoH','addField','sheet.mutation.rename-pivot-field','_toJSON','getPivotTableMatrixInfo','pbt','sheet.command.set-pivot-filter','getSheetBySheetName','sheets-pivot.cellDateGroupDisplay.yearQuarter','data','getFormatInfo','displayName','numberToABC','dataFieldManagerConfig','_requestResolvers','sheet.command.set-pivot-fields-config','FontCache','getSheetCommandTarget','valid','getUpdateRangeDeleteIds','getSubtotal','_subjectCollectionChange','pivotTableIndexConfig','_initConfig','Plugin','ManualFilter','getCollection','getHeaderMapItem','updateViewData','getMatrixFromRunTimeData','movePivotField','registerSyncingMutations','UniverEngineRender','_getAutoName','disposeWithMe','onCommandExecuted','UpdatePivotFieldSourceInfoMutation','_dataFieldManagerCollection','countNums','AddPivotTableWithConfig','sheets-pivot.stdDevpName','originalFieldId','updatePivotSource','valuePosition','sheet.mutation.set-pivot-position','ObjectMatrix','sheet.mutation.set-pivot-sort-info','updatePivotTableMatrixInfo','keys','sheet.mutation.send-init-pivot-text-local','SetPivotSubtotalTypeMutation','sheets-pivot.cellDateGroupDisplay.hour','UniverSheetsPivotTablePlugin','UniverProLicense','updateConfig','function','RemovePivotFieldMutation','DataField','_exclusiveRangeService','getCurrentUnitForType','_getPivotAppliedRanges','getFontStyleString','PivotView','_textInfo','subscribe','NotName','updateDirtyPivotTable','return\x20','sheets-pivot.sumName','leafStyle','createLabelField','charCodeAt','isText','getDataFieldByTableId','Filter','pivotPerformCheck','Quarter','UniverSheetsFilter','updateRangeKeyMap','getColumnCount','sheet.command.move-pivot-table','LocaleService','handleAsyncResponse','sheets-pivot.cellDateGroupDisplay.yearMonthDate','getInterceptPoints','rangeType','getSheetFeatureLimit','AddPivotFieldMutation','fontRenderExtension','viewUpdate$','broadcastCollectionChange','some','_activeDirtyManagerService','next','removePivotField','slice','queryDirtyPivotTable','MovePivotTableCommand','refreshGroupField','concat','addRecord','_configService','_updatePivotTableInstanceCache','#e6ebfa','setFieldFormat','PivotCallbackEnum','SetWorksheetActiveOperation','RemoveSheetMutation','type','ResetPivotFieldsConfigCommand','@univerjs-pro/license','sheet.mutation.set-pivot-format','getViewData','updatePivotTableRangeInfo','getFieldPositionInfoById','length','@univerjs/engine-formula','reduce','removeValueFilterInfo','setPivotFilter','realDeleteValue','getLastCol','InsertSheetMutation','setSubtotalType','sheet.mutation.update-pivot-table-source-range','createAsyncInterceptorKey','row','SetPivotCollapseCommand','add','Grand\x20Total','_fieldsCollectionChange$','FieldsCollection','sheet.command.set-pivot-sort','getIntersectsPivotTable','PivotErrorTypeEnum','updateView','getPivotTableIdByCell','SetPivotCollapse','fieldIds','getTextInfo','SetWorksheetColWidthMutation','unshiftString','rowCount','_initPivotDataGetListener','IExclusiveRangeService','sheets-pivot.emptyPivot.filter','collectionConfig','Total','tableFieldId','string','setPivotTable','removeValueFilterInfoByValueFieldId','stringify','getFieldIds','_config','pivotMutationGenerate','fetchThroughAsyncInterceptors','getSourceName','getDataFieldItemInfo','getTypeOfUnitDisposed$','createInterceptorKey','setName','pivotTableConfigs','addDataFieldWithoutUnitInfo','dataStream','ICommandService','_sheetsSelectionsService','Hour','handleMoveRange','Rectangle','setValuePivotFilter','iterateFieldDim','renameField','Delete','name','getSheets','getRowCount','InsertSheetUndoMutationFactory','isDateValue','colRanges','INTERCEPTOR_POINT','message','sheets-pivot.countName','isValue','getPivotDirtyViewInfo','IResourceManagerService','PivotTable','_init','setSourceName','from','token','resetPivotTable','random','sheet.mutation.add-group-collection','Div0','query','_resourceManagerService','_collectionConfigModel','SheetsPivotTableService','getMatrixValue','getRefRangeMutationsByMoveRange','PivotDataFieldTypeEnum','sheets-pivot.config','DisposableCollection','getPivotItemRenderInfoCache','endCollectChangeset','#b2b2b2','getColumnWidth','updateAllDisplayName','_sheetsPivotTableAdaptorModel','Product\x20of\x20','getMatrix','SetPivotFieldFormatMutation','_model','Injector','setOptions','SetPivotValueFilterCommand','dispose','_ensurePivotItemRenderValueMatrixCache','setValue','lastRow','SheetsPivotRPCService','onQueryStart','rgb(255,255,255)','getNoUsedDataFieldIds','ResetPivotTable','MoveRangeMutation','removeCollections','YearMonth','getSubUnitPivotConfigs','PivotTableOperationEnum','AsyncInterceptorManager','paths','Values','CustomCommandExecutionError','fetchThroughInterceptors','setPivotTableConfig','Var\x20of\x20','SetSortInfo','IUndoRedoService','UpdateFieldPosition','Collapse','getCellRaw','interceptor','UniverLicensePlugin','min','average','AddPivotFieldCommand','intersects','addPivotTable','LifecycleService','_pivotTableMatrixInfo','columnFields','date','column','UpdateDateGroupCommand','PivotTableViewDirtyMarkOperation','formJSON','SHEET_PIVOT_EXCLUSIVE_ID','UpdatePivotTableSourceRangeMutation','sheets-pivot.dateGroup.yearMonthDate','sheets-pivot.cellDateGroupDisplay.quarter','updateFieldPosition','get','getPivotTableConfig','sheets-pivot.subTotal','DependentOn','2854557HPfeqT','cornerInfo','endColumn','sheets-pivot.maxName','GrandTotal','push','_injector','clearExclusiveRangesByGroupId','PivotFilterTypeEnum','removeCollectionImp','getTargetByPivotTableId','getCellMatrix','sheet.mutation.set-pivot-filter','NotFunction','isErrorValue','fieldsCollectionChange$','YearMonthDate','RANGE_TYPE','CellValueType','sheets-pivot.emptyPivot.values','@univerjs/engine-render','collectionChange$','forValue','_globalSubject','limit\x20pivot','getformat','format','getFieldById','product','unionPivotViewRange','_initCommandInterceptListener','_pivotRenderInfoCache','merge','viewData$','entries','addPivotField','SetPivotValueFilterMutation','sheet.command.move-pivot-field','pluginName','sheet.command.set-pivot-collapse','refreshDataField','AddPivotTable','(Blank)','valueFilter','amd','sheets-pivot.cellDateGroupDisplay.yearMonth','dataFieldId','sheets-pivot.value','startColumn','getUnit','number','getValueIndex','_queryingMap','getOwnPropertyDescriptor','getGroupFieldsInfoByIds','MonthDate','startCollectChangeset','_pivotTableRangeInfo','sheets-pivot.countNumsName','SetPivotSetting','getTableFieldById','sortInfo','generateMutationsByRanges','CommandType','initDataRanges','setRange','needSameDeleteModel','DIV_BY_ZERO','SetValueFilter','isBottomTotal','getOriginFieldId','PIVOT_MUTATION_GENERATE','markDirty$','SetSheetsFilterRangeMutation','getRangeKeyList','body','727032ouEWar','sheet.mutation.send-pivot-data-local','filterInfo','SetPivotSort','_configVersion$','colStyle','rangeKeyMap','prototype','sheetName','setRangeValueRedoMutation','sideEffectUpdateWorkerCache','STRING','UniverProEnginePivot','sheets-pivot.dateGroup.month','#f4f4f5','RemoveRowMutation','workbook\x20is\x20not\x20found','configVersion$','uniqueDataFieldName','dateGroupField','dataRangeInfo','removeSourceRangeChange','getDate','_updateModelCache','getValueFilterInfos','UpdatePivotSource','generateSetRangeValueMutations','updateDataFieldsCollection','Sum\x20of\x20','getAutoFitColumnsMutations','cornerRanges','UniverInstanceType','subTotalStyle','getIntersects','refreshData','values','originTargetInfo','createCollectionWithDataRange','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','SheetsPivotTableConfigModel','triggerDirtyFeature','panel','getValue','setSortInfo','InsertSheetCommand','setDirty','DEFAULT_WORKSHEET_ROW_COUNT','#eceeff','dateType','PivotTableChangeTypeEnum','update','includes','isDateGroupField','SheetsPivotDataSourceModel','New','PivotSubtotalTypeEnum','getAutoDisplayName','blank','pageStyle','setPivotSetting','numfmt','getStyles','exports','updateCollectionConfig','SetPivotTableConfig','_ensurePivotTableRangeInfo','adjustSheetCellData','unitId','20215200qgXWvr','collections','max','colHeaderMap','RemoveColMutation','width','getDataFieldByRangeKey','range','createValueField','isBaseGroupField','UniverRpc','iterateField','sheets-pivot.dateGroup.hour','HourMinute','Expand','2349588egXMKw','_initGlobalComputed','fieldId','Count\x20of\x20','params','getConfig','_pivotTableInstanceCache','updateConfigCache','existing','YearQuarter','Row','_deleteModelCache','removePivotTable','#e6ebfb','sheets-pivot.cellDateGroupDisplay.minute','pivotConfigChange$','_sheetsPivotTableService','sheets-pivot.emptyPivot.column','Varp\x20of\x20','_deletePivotTableInstanceCache','ClearSelectionContentCommand','getAutoDisplayNameFunction','IUniverInstanceService','RemoveField','registerCallbackWithEvent','AddPivotField','_ensureViewDataMap','169182PWlRNF','getSubUnitPivotMatrix','AddPivotTableMutation','Column','GlobalComputingStatusService','dataFieldsCollection','hasOwnProperty','forEach','getFieldFormat','addPivotTableWithConfig','InterceptorEffectEnum','SheetsSelectionsService','sheet.command.pivot-drill-down','_subjectFieldsCollectionChange','getLastRow','var','NO_COMMERCIAL','setPivotSort','SetPivotFieldsConfigCommand','foreach','Existing','Max\x20of\x20','getPivotTableInstance','removeField','getDirtyInfo','resetArea','SetPivotOptionMutation','#1d32e9','_globalComputedStartHelpFunc','prefix','_pivotConfigChange$','subUnitId','RemovePivotField','sum','createDataFieldId','floor','intercept','targetCellInfo','setLabelFilterInfo','Value','PivotMultipleValueId','_featureCalculationManagerService','getTextSize','_ensurePivotMap','registerCommand','SheetInterceptorService','getFullYear','redos','isDate','addCollectionByJSON','_sheetsPivotTableConfigModel','_globalComputingSrv','new','count','cellToRange','Month','rowHeaderMap','_initClearSelectionCommandInterceptor','find','Optional','collapseInfo','_sheetsPivotRpcService','getFormat','has','Disposable','size','getFieldDataType','getPivotDisplayConfig','filterFields','SetPivotSortMutation','getFieldCountByArea','sheets-pivot.blank','sheet.mutation.pivot-update-value-position','ΣValue','Panel','DEFAULT_WORKSHEET_COLUMN_COUNT','custom','_viewData$','UpdateValuePosition','sheet.command.add-pivot-field','batch','getPivotTableModelConfig','valueFields','sheets-pivot.dateGroup.date','result','SetPivotFilter','setDisplayName','mergeWorksheetSnapshotWithDefault','_commandService','PositionType','_initRemoveSheetCommandInterceptor','info','stdDevp','AddPivotTableWithConfigCommand','sheets-pivot.cellDateGroupDisplay.hourMinute','pivotInitCompleted$','getDataFieldId','getDataFieldManager','rangesInfo','getIndexesByPathStr','pushUndoRedo','128ACdrqL','PivotTableFiledAreaEnum','symbol','isDateGroupFieldJSON','Module','UniverEngineFormula','getTargetByPivotId','PivotDateGroupFieldDateTypeEnum','Column\x20','sheets-pivot.averageName','onStarting','LS_CONFIG_KEY','RenameField','addDirtyPivotTable','sheet.mutation.send-pivot-view-local','UpdatePivotTableSourceRangeCommand','_viewData','markDirty','Average\x20of\x20','4720gdwHHW','registerDirtyService','dataFields','Date','Add','Subject','SheetsPivotTableAdaptorModel','disposableCollection','UniverCore','getDataFieldByDataFieldId','cellValue','_sheetsPivotDataSourceModel','getPivotTableRangeInfo','SHEET_PIVOT_TABLE_PLUGIN','setDateType','reset','RefRangeService','sheets-pivot.dateGroup.minute','getRangeStartEndInfo','_ensurePivotItemRenderInfoCache','fromJSON','sheets.tabs.sheet','document','SetOptions','getValuePosition','MUTATION','_dataSyncPrimaryController','addExclusiveRange','single','value','DrillDown','SetCollapse','Min\x20of\x20','PivotTableValuePositionEnum','handleSourceRangeChange','startRow','measure','Year','_sheetInterceptorService','register','registerRefRange','executeCommand','subtotal','drillDown','FORCE_STRING','filterId','colCount','_initViewModelBySheetInterceptor','col','UpdateSource','toJSON','contains','ptn','_initPivotTextInfo','BLANK_ROW_COUNT','ClearSelectionAllCommand','updateRenderCache','sheet.mutation.pivot-update-field-position','_globalComputedEndHelpFunc','InterceptorManager','rowFields','undos','node','Inject','fieldsConfig','Style','_initLocale','PivotCellStyleTypeEnum','SetValuePivotFilter','\x20-\x20','setValueFilterInfo','UpdatePivotValuePositionCommand'];_0x398d=function(){return _0xf329bc;};return _0x398d();}