@univerjs-pro/sheets-pivot 0.12.4-insiders.20251213-692494c → 0.13.0-insiders.20251215-64041bb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +42 -42
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xaf6d92=_0x5799;(function(_0x115196,_0x345eb6){const _0x462322=_0x5799,_0x26d8bf=_0x115196();while(!![]){try{const _0xa0d456=parseInt(_0x462322(0x461))/0x1*(-parseInt(_0x462322(0x1b6))/0x2)+parseInt(_0x462322(0x353))/0x3+parseInt(_0x462322(0x363))/0x4+-parseInt(_0x462322(0x3b9))/0x5*(parseInt(_0x462322(0x4a6))/0x6)+parseInt(_0x462322(0x3bf))/0x7+parseInt(_0x462322(0x1b5))/0x8*(-parseInt(_0x462322(0x282))/0x9)+parseInt(_0x462322(0x318))/0xa;if(_0xa0d456===_0x345eb6)break;else _0x26d8bf['push'](_0x26d8bf['shift']());}catch(_0x2c7422){_0x26d8bf['push'](_0x26d8bf['shift']());}}}(_0x1f9c,0xe84ba));var Fo=Object['defineProperty'],wo=(_0x1ab123,_0x5ac038,_0x2bda72)=>_0x5ac038 in _0x1ab123?Fo(_0x1ab123,_0x5ac038,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bda72}):_0x1ab123[_0x5ac038]=_0x2bda72,x=(_0x3c31cf,_0x549a6a,_0xb5c5ba)=>wo(_0x3c31cf,typeof _0x549a6a!=_0xaf6d92(0x2ab)?_0x549a6a+'':_0x549a6a,_0xb5c5ba);Object[_0xaf6d92(0x245)](exports,Symbol[_0xaf6d92(0x2fa)],{'value':_0xaf6d92(0x276)});const m=require('@univerjs-pro/engine-pivot'),f=require('@univerjs/core'),fe=require('@univerjs/engine-formula'),U=require('@univerjs/sheets'),ve=require('rxjs'),ue=require('@univerjs-pro/license'),Ot=require('@univerjs/sheets-filter'),_o=require('@univerjs/rpc'),Ne=require('@univerjs/engine-render'),jt=Number[_0xaf6d92(0x2bd)](0x693d14d7),Ro=0x10,Ct=0x1,It=_0xaf6d92(0x1fd),we=0x1,Do=_0xaf6d92(0x3c6),Eo='rgb(255,255,255)',Ze=_0xaf6d92(0x1bf),Vo='#f4f4f5',No=_0xaf6d92(0x261),Uo=_0xaf6d92(0x3a5),xo='#1d32e9',Oo=_0xaf6d92(0x26c),Ao=_0xaf6d92(0x3ff),Bo=_0xaf6d92(0x465),Go=_0xaf6d92(0x26c),Wo='#e6ebfb',ko=0xe,jo=0x6;var Mt=(_0x4469d9=>(_0x4469d9[_0xaf6d92(0x28a)]=_0xaf6d92(0x1bd),_0x4469d9[_0xaf6d92(0x4af)]=_0xaf6d92(0x277),_0x4469d9))(Mt||{});const Lt={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Lo=0x1e,Pe={'b':{'s':0x1,'cl':{'rgb':Ze}},'l':{'s':0x1,'cl':{'rgb':Ze}},'r':{'s':0x1,'cl':{'rgb':Ze}},'t':{'s':0x1,'cl':{'rgb':Ze}}},z={'bg':{'rgb':Do},'ht':0x2,'vt':0x2,'tb':0x1},R={'bg':{'rgb':Eo},'ht':0x2,'vt':0x2,'tb':0x1},oe={'rowStyle':{'bg':{'rgb':Wo},'bd':Pe,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':Bo},'bd':null,'cl':{'rgb':Go},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Pe,'bg':{'rgb':Ao},'vt':0x2},'cornerStyle':{'bd':Pe,'bg':{'rgb':Uo},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Pe,'bg':{'rgb':Vo},'vt':0x2},'leafStyle':{'bd':Pe,'bg':{'rgb':No},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':xo},'cl':{'rgb':Oo},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Pe,'vt':0x2}};function $o(_0x4e73bf,_0x39a776,_0x59515f){const _0x2014cc=_0xaf6d92,_0x3c09f6=_0x4e73bf[_0x2014cc(0x447)](f[_0x2014cc(0x2da)]),_0x133787=_0x59515f['split']('_');switch(_0x39a776){case m[_0x2014cc(0x270)][_0x2014cc(0x4a0)]:return _0x3c09f6['t'](_0x2014cc(0x312),..._0x133787);case m[_0x2014cc(0x270)][_0x2014cc(0x322)]:return _0x3c09f6['t'](_0x2014cc(0x22c),..._0x133787);case m[_0x2014cc(0x270)][_0x2014cc(0x43c)]:return _0x3c09f6['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0x133787);case m[_0x2014cc(0x270)][_0x2014cc(0x220)]:return _0x3c09f6['t'](_0x2014cc(0x1c2),..._0x133787);case m[_0x2014cc(0x270)][_0x2014cc(0x33c)]:return _0x3c09f6['t'](_0x2014cc(0x27f),..._0x133787);case m['PivotDateGroupFieldDateTypeEnum']['Month']:return _0x3c09f6['t'](_0x2014cc(0x284),..._0x133787);case m['PivotDateGroupFieldDateTypeEnum']['Quarter']:return _0x3c09f6['t'](_0x2014cc(0x1e0),..._0x133787);case m['PivotDateGroupFieldDateTypeEnum'][_0x2014cc(0x197)]:return _0x3c09f6['t'](_0x2014cc(0x40c),..._0x133787);case m[_0x2014cc(0x270)][_0x2014cc(0x2b4)]:return _0x3c09f6['t'](_0x2014cc(0x296),..._0x133787);case m[_0x2014cc(0x270)][_0x2014cc(0x3fd)]:return _0x3c09f6['t'](_0x2014cc(0x2a2),..._0x133787);}return'';}const Ue=(_0x54a998,_0x4032b0,_0x41690a,_0x1b0252)=>{const _0x179204=_0xaf6d92;let _0x5a6e77;const _0x26edbf=_0x54a998[_0x179204(0x447)](f['IUniverInstanceService'])[_0x179204(0x27a)](f['UniverInstanceType']['UNIVER_SHEET']);if(!_0x26edbf)return null;const _0x24f7bb=_0x26edbf[_0x179204(0x44c)]();let _0x3593c3;if(_0x41690a&&(_0x3593c3=_0x24f7bb[_0x179204(0x491)](_0x41690a)),_0x4032b0!=null&&_0x4032b0['v']||(_0x4032b0==null?void 0x0:_0x4032b0['v'])===0x0){_0x5a6e77||(_0x5a6e77={});const _0x2315b9=$t(_0x4032b0['v']);typeof _0x2315b9==_0x179204(0x474)?_0x5a6e77['t']=f[_0x179204(0x453)]['NUMBER']:typeof _0x2315b9==_0x179204(0x24e)&&(_0x5a6e77['t']=f['CellValueType'][_0x179204(0x37a)]),_0x5a6e77['v']=_0x2315b9;}if((_0x4032b0!=null&&_0x4032b0['i']||(_0x4032b0==null?void 0x0:_0x4032b0['i'])===0x0)&&(_0x5a6e77||(_0x5a6e77={}),_0x5a6e77['fi']=_0x4032b0['i']),_0x4032b0!=null&&_0x4032b0['s']&&(_0x5a6e77||(_0x5a6e77={}),_0x5a6e77['pbt']=_0x4032b0['s']),_0x41690a&&(_0x5a6e77||(_0x5a6e77={}),_0x5a6e77['s']=_0x3593c3),_0x1b0252&&_0x5a6e77!=null&&_0x5a6e77['v']&&_0x5a6e77[_0x179204(0x236)]!==m[_0x179204(0x44f)][_0x179204(0x206)]&&_0x5a6e77[_0x179204(0x236)]!==m[_0x179204(0x44f)][_0x179204(0x309)]){const _0x47d0ff=String(_0x5a6e77['v']),{dateType:_0x317f43}=_0x1b0252;_0x5a6e77['v']=$o(_0x54a998,_0x317f43,_0x47d0ff),_0x5a6e77['t']=f['CellValueType']['STRING'];}return _0x5a6e77;},Jo=(_0x58d21a,_0x38e134,_0x539e98,_0x1e2146)=>{const _0x40f801=_0xaf6d92;var _0x18a2a3,_0x1933ab,_0x45c296,_0x39a22e,_0x12b1cc,_0x301783,_0x3c9ebf,_0x4e5819,_0x52ac9d,_0x5a9c5e,_0x7427d8,_0xf08186,_0xfe6d16,_0x56e223;const _0x1342c7=_0x539e98['targetCellInfo'],{cornerView:_0x3d1de8,rowView:_0x155fc6,colView:_0x5995c4,dataView:_0x1b1c1f,pageView:_0x5b5a1f,formatMap:_0x563b9a,groupInfo:_0x27c1fc}=_0x38e134,{row:_0xcb2ad7,col:_0x124b63}=_0x1342c7,_0x1dfffa=new f[(_0x40f801(0x2eb))](),_0x151b09={},_0xb0b049={},_0x27f18f={},_0x1f93e7={},_0x3ee4cf={};let _0x30a82e=_0xcb2ad7,_0x59e8d0=_0x124b63;Object[_0x40f801(0x36b)](_0x5b5a1f[_0x40f801(0x355)])['forEach'](_0x4ebf80=>{const _0x18e7c4=_0x40f801;Object['keys'](_0x5b5a1f[_0x18e7c4(0x355)][Number(_0x4ebf80)])[_0x18e7c4(0x25e)](_0x73f59f=>{const _0x3434f8=_0x18e7c4,_0x18e19b={..._0x5b5a1f[_0x3434f8(0x355)][Number(_0x4ebf80)][Number(_0x73f59f)]};_0x1dfffa['setValue'](Number(_0x4ebf80)+_0x30a82e,Number(_0x73f59f)+_0x59e8d0,Ue(_0x58d21a,_0x18e19b,oe[_0x3434f8(0x243)]));});});const _0x4fe71d=Object[_0x40f801(0x36b)](_0x5b5a1f[_0x40f801(0x355)])[_0x40f801(0x3a2)];_0x30a82e+=_0x4fe71d+(_0x4fe71d?we:0x0);const _0x3b9634=_0x3d1de8[_0x40f801(0x2a4)](),_0x57d8db=_0x3d1de8[_0x40f801(0x1cb)]();for(let _0x1c3e7b=0x0;_0x1c3e7b<_0x3b9634;_0x1c3e7b++)for(let _0x1b8943=0x0;_0x1b8943<_0x57d8db;_0x1b8943++){const _0x158052={...(_0x1933ab=(_0x18a2a3=_0x3d1de8[_0x40f801(0x355)])==null?void 0x0:_0x18a2a3[_0x1c3e7b])==null?void 0x0:_0x1933ab[_0x1b8943]};_0x158052&&((_0x45c296=_0x155fc6[_0x40f801(0x28d)][_0x1b8943])!=null&&_0x45c296[_0x40f801(0x1a8)])&&_0x1b8943===_0x57d8db-0x1&&_0x1c3e7b===_0x3b9634-0x1&&(_0x158052['v']=''+_0x1e2146[_0x40f801(0x34b)]),_0x1dfffa[_0x40f801(0x491)](_0x1c3e7b+_0x30a82e,_0x1b8943+_0x59e8d0,Ue(_0x58d21a,_0x158052,oe[_0x40f801(0x306)]));}for(let _0x508483=0x0;_0x508483<_0x3d1de8[_0x40f801(0x2cc)][_0x40f801(0x3a2)];_0x508483++)_0x3d1de8['info'][_0x508483]&&(_0x27f18f[''+(_0x508483+_0x59e8d0)]=_0x3d1de8['info'][_0x508483]);_0x59e8d0+=_0x57d8db;const _0x46d438=_0x5995c4[_0x40f801(0x28d)],_0x6f7989=_0x5995c4[_0x40f801(0x33e)]()>=0x0?_0x5995c4['getLastRow']()+0x1:0x0,_0x47510e=_0x5995c4['getLastCol']()>=0x0?_0x5995c4['getLastCol']()+0x1:0x0;for(let _0xdf7fd7=0x0;_0xdf7fd7<_0x47510e;_0xdf7fd7++){for(let _0x47c091=0x0;_0x47c091<_0x6f7989;_0x47c091++){const _0x109c7a={...(_0x12b1cc=(_0x39a22e=_0x5995c4[_0x40f801(0x355)])==null?void 0x0:_0x39a22e[_0x47c091])==null?void 0x0:_0x12b1cc[_0xdf7fd7]},_0x1ba354=(_0x301783=_0x46d438[_0x47c091])==null?void 0x0:_0x301783[_0x40f801(0x1c7)],_0x9be228=_0x563b9a[_0x1ba354],_0x4fa46d=_0x27c1fc[_0x1ba354];_0x109c7a&&(_0x109c7a['v']=Me(_0x109c7a,_0x47c091===0x0&&((_0x3c9ebf=_0x5995c4[_0x40f801(0x211)](_0xdf7fd7+0x1))==null?void 0x0:_0x3c9ebf[_0x40f801(0x1a8)]),_0x9be228,_0x1e2146));let _0xf3d1c9;_0x9be228?_0xf3d1c9={...oe[_0x40f801(0x40a)],'n':{'pattern':_0x9be228}}:_0xf3d1c9={...oe[_0x40f801(0x40a)]},_0x1dfffa[_0x40f801(0x491)](_0x47c091+_0x30a82e,_0xdf7fd7+_0x59e8d0,Ue(_0x58d21a,_0x109c7a,_0xf3d1c9,_0x4fa46d));}_0x5995c4[_0x40f801(0x2cc)][_0xdf7fd7]&&(_0xb0b049[''+(_0xdf7fd7+_0x59e8d0)]=_0x5995c4[_0x40f801(0x2cc)][_0xdf7fd7]),_0x5995c4[_0x40f801(0x28d)][_0xdf7fd7+0x1]&&(_0x3ee4cf[''+(_0xdf7fd7+_0x30a82e+0x1)]=_0x5995c4['headerMap'][_0xdf7fd7+0x1]);}_0x30a82e+=_0x3b9634;const _0x575a13=_0x155fc6[_0x40f801(0x28d)],_0x1d0dbb=_0x155fc6[_0x40f801(0x33e)]()>=0x0?_0x155fc6['getLastRow']()+0x1:0x0,_0x2307c8=_0x155fc6[_0x40f801(0x1b9)]()>=0x0?_0x155fc6[_0x40f801(0x1b9)]()+0x1:0x0;for(let _0x5d1889=0x0;_0x5d1889<_0x1d0dbb;_0x5d1889++){for(let _0x2cda2f=0x0;_0x2cda2f<_0x2307c8;_0x2cda2f++){const _0x586744={...(_0x52ac9d=(_0x4e5819=_0x155fc6['data'])==null?void 0x0:_0x4e5819[_0x5d1889])==null?void 0x0:_0x52ac9d[_0x2cda2f]},_0x28af02=(_0x5a9c5e=_0x575a13[_0x2cda2f])==null?void 0x0:_0x5a9c5e[_0x40f801(0x1c7)],_0x4f247b=_0x563b9a[_0x28af02],_0x1d735a=_0x27c1fc[_0x28af02];_0x586744&&(_0x586744['v']=Me(_0x586744,!0x1,_0x4f247b,_0x1e2146));let _0x3beea8;_0x155fc6[_0x40f801(0x2cc)][_0x5d1889][_0x40f801(0x1f0)]===_0x155fc6['getColCount']()?_0x3beea8=oe[_0x40f801(0x3e4)]:_0x155fc6[_0x40f801(0x2cc)][_0x5d1889][_0x40f801(0x274)]?_0x3beea8=_0x155fc6[_0x40f801(0x2cc)][_0x5d1889][_0x40f801(0x1f0)]===0x0?oe[_0x40f801(0x1d6)]:oe[_0x40f801(0x3f4)]:_0x3beea8=oe[_0x40f801(0x2c1)],_0x4f247b&&(_0x3beea8={..._0x3beea8,'n':{'pattern':_0x4f247b}}),_0x1dfffa[_0x40f801(0x491)](_0x5d1889+_0x30a82e,_0x2cda2f+_0x124b63,Ue(_0x58d21a,_0x586744,_0x3beea8,_0x1d735a));}_0x155fc6[_0x40f801(0x2cc)][_0x5d1889]&&(_0x151b09[''+(_0x5d1889+_0x30a82e)]=_0x155fc6['info'][_0x5d1889]),_0x155fc6['headerMap'][_0x5d1889]&&(_0x1f93e7[''+(_0x5d1889+_0x124b63)]=_0x155fc6['headerMap'][_0x5d1889]);}const _0xbdbb66=_0x1b1c1f['getRowCount'](),_0x39b1dd=_0x1b1c1f[_0x40f801(0x1cb)]();for(let _0x1e0095=0x0;_0x1e0095<_0xbdbb66;_0x1e0095++)for(let _0x2a0d42=0x0;_0x2a0d42<_0x39b1dd;_0x2a0d42++){const _0x4af8d1={...(_0xf08186=(_0x7427d8=_0x1b1c1f[_0x40f801(0x355)])==null?void 0x0:_0x7427d8[_0x1e0095])==null?void 0x0:_0xf08186[_0x2a0d42]};let _0xdd271f;_0x155fc6['info'][_0x1e0095][_0x40f801(0x274)]?_0xdd271f=_0x155fc6[_0x40f801(0x2cc)][_0x1e0095][_0x40f801(0x1f0)]===0x0?oe[_0x40f801(0x1d6)]:oe['subTotalStyle']:_0xdd271f=oe[_0x40f801(0x380)];const _0x254269=_0x155fc6[_0x40f801(0x2cc)][_0x1e0095][_0x40f801(0x3fa)],_0x1cc7c4=_0x5995c4[_0x40f801(0x2cc)][_0x2a0d42][_0x40f801(0x3fa)],_0x4dadd9=Math[_0x40f801(0x3d2)](_0x254269,_0x1cc7c4),_0x309d4a=_0x539e98[_0x40f801(0x3a7)][_0x40f801(0x3af)][_0x40f801(0x3a8)]();let _0x512700='';_0x4dadd9<0x0?_0x512700=(_0xfe6d16=_0x309d4a[0x0])!=null?_0xfe6d16:'':_0x512700=(_0x56e223=_0x309d4a[_0x4dadd9])!=null?_0x56e223:'';const _0x4945f2=_0x563b9a[_0x512700];_0x4945f2&&(_0xdd271f={..._0xdd271f,'n':{'pattern':_0x4945f2}}),_0x1dfffa[_0x40f801(0x491)](_0x1e0095+_0x30a82e,_0x2a0d42+_0x59e8d0,Ue(_0x58d21a,_0x4af8d1,_0xdd271f));}return{'valueMatrix':_0x1dfffa,'rowInfo':_0x151b09,'colInfo':_0xb0b049,'cornerInfo':_0x27f18f,'rowHeaderMap':_0x1f93e7,'colHeaderMap':_0x3ee4cf};};function Me(_0x20cadd,_0x302510,_0x238d1a,_0x14d680){const _0x2f467d=_0xaf6d92;let _0x58ab85=_0x20cadd['v'];_0x302510&&(_0x58ab85=''+_0x14d680[_0x2f467d(0x34b)]);const _0x12eb86=_0x20cadd['t']&&(_0x20cadd['t']&m['PivotViewCellValueTypeEnum']['blank'])>0x0;_0x12eb86&&(_0x58ab85=''+_0x14d680[_0x2f467d(0x33d)]);const _0x4875ef=_0x20cadd['t']&&(_0x20cadd['t']&m[_0x2f467d(0x30f)]['other'])>0x0;if(_0x4875ef&&(_0x58ab85=''+_0x14d680['sheets-pivot.other']),_0x20cadd['s']===m[_0x2f467d(0x44f)]['Subtotal']){let _0x32c506=_0x58ab85,_0x4d9463='';m['isPrefixValue'](_0x58ab85)&&(_0x32c506=_0x58ab85['prefix'],_0x4d9463=_0x58ab85[_0x2f467d(0x3db)]);const _0x515b6c=_0x238d1a&&!_0x12eb86&&!_0x4875ef?f[_0x2f467d(0x42f)][_0x2f467d(0x434)](_0x238d1a,Number(_0x32c506)):_0x32c506;_0x4d9463?_0x58ab85=_0x515b6c+'\x20'+_0x4d9463:_0x58ab85=_0x515b6c+'\x20'+_0x14d680[_0x2f467d(0x3f2)];}else _0x20cadd['s']===m[_0x2f467d(0x44f)][_0x2f467d(0x206)]&&(_0x58ab85=_0x58ab85+'\x20'+_0x14d680[_0x2f467d(0x229)]);return _0x58ab85;}function $t(_0x279643){const _0x2ce08c=_0xaf6d92;if(m[_0x2ce08c(0x260)](_0x279643)){const {errorType:_0x2c8dd6}=_0x279643;switch(_0x2c8dd6){case m[_0x2ce08c(0x210)][_0x2ce08c(0x253)]:return fe[_0x2ce08c(0x468)][_0x2ce08c(0x303)];case m['PivotErrorTypeEnum'][_0x2ce08c(0x41d)]:return fe[_0x2ce08c(0x468)][_0x2ce08c(0x381)];case m[_0x2ce08c(0x210)][_0x2ce08c(0x268)]:return fe['ErrorType'][_0x2ce08c(0x324)];case m['PivotErrorTypeEnum'][_0x2ce08c(0x405)]:return fe[_0x2ce08c(0x468)][_0x2ce08c(0x324)];case m['PivotErrorTypeEnum']['BadReference']:return fe[_0x2ce08c(0x468)][_0x2ce08c(0x1f3)];}}return _0x279643;}function ne(_0xa03c97,_0x1165b5,_0x60eea0=!0x1,_0x28bdae=!0x1){const _0x468ba0=_0xaf6d92,{data:_0x58e709}=_0x1165b5,_0x43af9f=_0x1165b5[_0x468ba0(0x2a4)](),_0x172fc9=_0x1165b5['getColCount']();if(_0x43af9f<=0x0||_0x172fc9<=0x0)return[];const _0x3f9799=_0x1165b5[_0x468ba0(0x1b9)](),_0x2b972c=_0x1165b5['getLastRow'](),_0xd738ce=_0x28bdae?_0x2b972c>=0x0?_0x2b972c+0x1:0x0:_0x43af9f,_0x457b38=_0x28bdae?_0x3f9799>=0x0?_0x3f9799+0x1:0x0:_0x172fc9,{row:_0x45d9f1,col:_0x3f3b2c}=_0xa03c97,_0x218d89=_0x45d9f1,_0x31cc87=_0x3f3b2c;if(_0x60eea0){const _0x5b2a7c=[];for(const [_0x22c529,_0xd59469]of Object[_0x468ba0(0x357)](_0x58e709))for(const [_0x99f2ba,_0x198ea4]of Object[_0x468ba0(0x357)](_0xd59469))_0x5b2a7c[_0x468ba0(0x3bd)](f[_0x468ba0(0x423)](_0x218d89+Number(_0x22c529),_0x31cc87+Number(_0x99f2ba)));return _0x5b2a7c;}else{const _0x5b99c2=_0x28bdae?_0xd738ce>0x0?0x1:0x0:0x1,_0x355536=_0x28bdae?_0x457b38>0x0?0x1:0x0:0x1,_0x18454e=_0x45d9f1+_0xd738ce-_0x5b99c2,_0x1324d9=_0x3f3b2c+_0x457b38-_0x355536;return[{'startRow':_0x218d89,'startColumn':_0x31cc87,'endRow':_0x18454e,'endColumn':_0x1324d9}];}}const Q=_0xaf6d92(0x2ae),bt=_0xaf6d92(0x300);var B=(_0x59d652=>(_0x59d652[_0xaf6d92(0x477)]=_0xaf6d92(0x38a),_0x59d652[_0xaf6d92(0x3d7)]=_0xaf6d92(0x1a3),_0x59d652[_0xaf6d92(0x2a9)]='addPivotField',_0x59d652[_0xaf6d92(0x420)]=_0xaf6d92(0x420),_0x59d652[_0xaf6d92(0x421)]='addPivotTable',_0x59d652[_0xaf6d92(0x2f8)]='movePivotField',_0x59d652['RemovePivotField']=_0xaf6d92(0x2d2),_0x59d652[_0xaf6d92(0x292)]=_0xaf6d92(0x3cf),_0x59d652['SetPivotFilter']=_0xaf6d92(0x45c),_0x59d652[_0xaf6d92(0x2cd)]=_0xaf6d92(0x31e),_0x59d652['SetPivotSetting']='setPivotSetting',_0x59d652[_0xaf6d92(0x1d2)]='updatePivotSource',_0x59d652[_0xaf6d92(0x431)]=_0xaf6d92(0x34c),_0x59d652[_0xaf6d92(0x2be)]=_0xaf6d92(0x36c),_0x59d652[_0xaf6d92(0x310)]='setValuePivotFilter',_0x59d652[_0xaf6d92(0x3f0)]=_0xaf6d92(0x3ed),_0x59d652[_0xaf6d92(0x3c9)]=_0xaf6d92(0x46e),_0x59d652))(B||{});const Qo={'sheets-pivot.blankValue':_0xaf6d92(0x21e),'sheets-pivot.columnName':_0xaf6d92(0x2c9),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0xaf6d92(0x3c4),'sheets-pivot.valueText':_0xaf6d92(0x22d),'sheets-pivot.averageName':_0xaf6d92(0x441),'sheets-pivot.countName':_0xaf6d92(0x3ce),'sheets-pivot.countNumsName':_0xaf6d92(0x3ce),'sheets-pivot.maxName':_0xaf6d92(0x2c7),'sheets-pivot.minName':_0xaf6d92(0x308),'sheets-pivot.productName':_0xaf6d92(0x358),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0xaf6d92(0x218),'sheets-pivot.sumName':'Sum\x20of\x20','sheets-pivot.varName':_0xaf6d92(0x49a),'sheets-pivot.varpName':_0xaf6d92(0x4b2),'sheets-pivot.subTotal':_0xaf6d92(0x309),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':'value','sheets-pivot.blank':_0xaf6d92(0x3f1),'sheets-pivot.other':'other','sheets-pivot.emptyPivot.filter':_0xaf6d92(0x477),'sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':_0xaf6d92(0x33a),'sheets-pivot.emptyPivot.values':'Values'},At={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},re=f[_0xaf6d92(0x47b)](_0xaf6d92(0x228)),Jt=f[_0xaf6d92(0x31b)]('pivotMutationGenerate');var Te=(_0x2207f7=>(_0x2207f7[_0xaf6d92(0x2cf)]=_0xaf6d92(0x2cf),_0x2207f7['delete']=_0xaf6d92(0x20e),_0x2207f7[_0xaf6d92(0x39e)]=_0xaf6d92(0x39e),_0x2207f7))(Te||{}),W=(_0x4960f0=>(_0x4960f0['Add']='add',_0x4960f0[_0xaf6d92(0x29a)]=_0xaf6d92(0x3d4),_0x4960f0[_0xaf6d92(0x34d)]=_0xaf6d92(0x20e),_0x4960f0))(W||{});const Ft={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x4a5),'handler':()=>!0x0},wt={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x3d1),'handler':()=>!0x0},ot={'type':f['CommandType'][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x272),'handler':()=>!0x0},_t={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':_0xaf6d92(0x27b),'handler':()=>!0x0},Rt={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':_0xaf6d92(0x41b),'handler':()=>!0x0};var Ko=Object[_0xaf6d92(0x25a)],Ho=(_0x13bd13,_0x529e55,_0x583243,_0x46dc09)=>{for(var _0x17fd9b=_0x46dc09>0x1?void 0x0:_0x46dc09?Ko(_0x529e55,_0x583243):_0x529e55,_0x9fb310=_0x13bd13['length']-0x1,_0x130383;_0x9fb310>=0x0;_0x9fb310--)(_0x130383=_0x13bd13[_0x9fb310])&&(_0x17fd9b=_0x130383(_0x17fd9b)||_0x17fd9b);return _0x17fd9b;},qo=(_0x58afa3,_0x3f9725)=>(_0xf22e55,_0x4612a8)=>_0x3f9725(_0xf22e55,_0x4612a8,_0x58afa3);exports['SheetsPivotRPCService']=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x57db7c){const _0x2c816a=_0xaf6d92;super(),x(this,_0x2c816a(0x1d8),new Map()),this[_0x2c816a(0x451)]=_0x57db7c;}[_0xaf6d92(0x1bb)](_0x33a396){const _0x52b9b9=_0xaf6d92,{version:_0x142fea}=_0x33a396,_0x5e673a=this[_0x52b9b9(0x1d8)][_0x52b9b9(0x447)](_0x142fea);_0x5e673a&&(_0x5e673a(_0x33a396),this[_0x52b9b9(0x1d8)][_0x52b9b9(0x20e)](_0x142fea));}[_0xaf6d92(0x3fc)](_0x471811){return new Promise((_0x3bb3b5,_0x4b764c)=>{const _0x82d7ae=_0x5799,_0x2c4360=this['_generateUniqueVersion']();this[_0x82d7ae(0x1d8)][_0x82d7ae(0x3d4)](_0x2c4360,_0x3bb3b5),this['_commandService']['executeCommand'](Ft['id'],{'version':_0x2c4360,..._0x471811},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x133313=_0xaf6d92;return Math[_0x133313(0x3cb)]()[_0x133313(0x328)](0x24)[_0x133313(0x2a6)](0x2,0x10);}},exports['SheetsPivotRPCService']=Ho([qo(0x0,f['Inject'](f[_0xaf6d92(0x22e)]))],exports[_0xaf6d92(0x327)]);const Qt={0x0:'J',0x1:'o',0x2:'M',0x3:'W',0x4:'9',0x5:'L',0x6:'Z',0x7:'R',0x8:'E',0x9:'0','M':'1','O':'2','k':'3','A':'4','o':'5','q':'6','U':'7','w':'8','Q':'a','c':'b','V':'c','K':'d','W':'e','y':'f','b':'g','H':'h','B':'i','n':'j','F':'k','a':'l','C':'m','G':'n','h':'p','v':'q','T':'r','g':'s','u':'t','i':'u','j':'v','J':'w','s':'x','l':'y','z':'z','m':'A','t':'B','I':'C','r':'D','D':'F','Z':'G','X':'H','e':'I','x':'K','N':'N','d':'O','Y':'P','f':'Q','E':'S','S':'T','P':'U','p':'V','R':'X','L':'Y'},Kt=_0xaf6d92(0x19a),Yo=_0x24353a=>{const _0x2ec085=_0xaf6d92;var _0x3fa20c;return((_0x3fa20c=_0x24353a['body'])==null?void 0x0:_0x3fa20c[_0x2ec085(0x454)][_0x2ec085(0x3ec)](/\r\n$/,''))||'';};class zo extends m['DataFieldManager']{constructor(_0x52f206,_0xdcd626){const _0x4ce3ee=_0xaf6d92;super(),x(this,_0x4ce3ee(0x311),{}),x(this,_0x4ce3ee(0x3d0)),x(this,_0x4ce3ee(0x20d)),(this[_0x4ce3ee(0x3d0)]=_0xdcd626,this[_0x4ce3ee(0x20d)]=_0x52f206);}['initDataRanges'](){const _0x3d6e76=_0xaf6d92;for(const _0x50469a in this[_0x3d6e76(0x23f)]){const _0x1a622b=this[_0x3d6e76(0x23f)][_0x50469a],_0x542e48=_0x1a622b['getRangeKey']();this[_0x3d6e76(0x311)][_0x542e48]=_0x1a622b[_0x3d6e76(0x341)]();}}[_0xaf6d92(0x1e2)](){const _0x430c85=_0xaf6d92,_0x3983a2=this[_0x430c85(0x20d)];return an[_0x430c85(0x21f)](_0x3983a2);}[_0xaf6d92(0x2f3)](_0x19a4c9){const _0x94876c=_0xaf6d92,_0x50be69=this['dataFields'][_0x19a4c9][_0x94876c(0x383)];delete this['dataFields'][_0x19a4c9],delete this[_0x94876c(0x311)][_0x50be69];}[_0xaf6d92(0x1f2)](_0xb165fd){const _0x1573f5=_0xaf6d92;this[_0x1573f5(0x23f)][_0xb165fd[_0x1573f5(0x341)]()]=_0xb165fd;}[_0xaf6d92(0x319)](_0x3f1cec){const _0x2ac783=_0xaf6d92;var _0x486762,_0xd865a6;const _0x1e8cd8=this[_0x2ac783(0x20d)]['getTargetByPivotId'](_0x3f1cec);if(_0x1e8cd8){const {unitId:_0x20bf6c,subUnitId:_0x3fb4c8}=_0x1e8cd8,_0xa74681=(_0x486762=this[_0x2ac783(0x20d)][_0x2ac783(0x266)](_0x20bf6c,_0x3fb4c8,_0x3f1cec))==null?void 0x0:_0x486762[_0x2ac783(0x32c)];this['_host'][_0x2ac783(0x376)]({'token':_0x3f1cec,'type':Te[_0x2ac783(0x20e)],'dataRangeInfo':_0xa74681});}(_0xd865a6=this[_0x2ac783(0x332)](_0x3f1cec))==null||_0xd865a6[_0x2ac783(0x29d)](),delete this['collections'][_0x3f1cec];}['getRangeKey'](_0x3a253d,_0x322574){const _0xeb11f3=_0xaf6d92,{sheetName:_0x8e2b4e,unitId:_0x31fb94,range:_0x2e98b2}=_0x3a253d,{startRow:_0x36d48d,endRow:_0x272d20}=_0x2e98b2;return fe[_0xeb11f3(0x257)](_0x31fb94,_0x8e2b4e,{'startRow':_0x36d48d,'endRow':_0x272d20,'startColumn':_0x322574,'endColumn':_0x322574});}[_0xaf6d92(0x32e)](_0x664c01){const _0x1e0f0a=_0xaf6d92;return this[_0x1e0f0a(0x23f)][this[_0x1e0f0a(0x311)][_0x664c01]];}[_0xaf6d92(0x417)](_0x36284f,_0xd556ea){const _0x26978d=_0xaf6d92;this[_0x26978d(0x311)][_0x36284f]=_0xd556ea;}[_0xaf6d92(0x337)](_0x2e6f9b,_0x24b2eb){const _0x371ae0=_0xaf6d92;this[_0x371ae0(0x311)][_0x24b2eb]=this[_0x371ae0(0x311)][_0x2e6f9b],delete this[_0x371ae0(0x311)][_0x2e6f9b];}[_0xaf6d92(0x235)](_0x35c04e,_0x3bb59f,_0x2a1fb1,_0x4ce2d9){const _0x388057=_0xaf6d92,_0x4149cd=new m[(_0x388057(0x38c))](this);_0x4149cd[_0x388057(0x23e)](_0x3bb59f);const _0x208256=[];let _0x440b96=0x0;for(const _0x357fec of _0x4149cd[_0x388057(0x2c3)]){const _0x45814c=this['getRangeKey'](_0x2a1fb1,_0x440b96),_0x9838b5=this['dataFields'][_0x357fec];_0x9838b5&&(_0x9838b5['rangeKey']=_0x45814c,this['setRangeKeyMap'](_0x45814c,_0x357fec),_0x208256[_0x388057(0x3bd)]({'index':_0x440b96,'dataField':_0x9838b5})),_0x440b96++;}return this[_0x388057(0x430)](_0x35c04e,_0x4149cd,_0x2a1fb1,_0x4ce2d9),{'collection':_0x4149cd,'updateDataFieldList':_0x208256};}[_0xaf6d92(0x2f7)](_0x56e1b9,_0x8c6eba){const _0x5c9a81=_0xaf6d92;return _0x56e1b9['rangeType']===f[_0x5c9a81(0x27e)][_0x5c9a81(0x40d)]?{'startRow':0x0,'startColumn':_0x56e1b9[_0x5c9a81(0x3b2)],'endRow':_0x8c6eba['getRowCount']()-0x1,'endColumn':_0x56e1b9[_0x5c9a81(0x4a2)]}:{'startRow':_0x56e1b9[_0x5c9a81(0x3df)],'startColumn':_0x56e1b9[_0x5c9a81(0x3b2)],'endRow':_0x56e1b9[_0x5c9a81(0x314)],'endColumn':_0x56e1b9[_0x5c9a81(0x4a2)]};}[_0xaf6d92(0x30c)](_0x34c785){const _0x209eab=_0xaf6d92,{sheetName:_0x155046,range:_0x29ab85}=_0x34c785,_0x1a30f7=this[_0x209eab(0x3d0)][_0x209eab(0x27a)](f[_0x209eab(0x426)][_0x209eab(0x202)]),_0x34e8d8=_0x1a30f7['getSheetBySheetName'](_0x155046),_0x1d9096=_0x34e8d8[_0x209eab(0x356)](),{startColumn:_0x4b61be,startRow:_0xc32c9,endColumn:_0x2de269}=this[_0x209eab(0x2f7)](_0x29ab85,_0x34e8d8),_0x363d63=_0x1a30f7[_0x209eab(0x44c)](),_0xac183f=new m[(_0x209eab(0x38c))](this);_0xac183f['setRange'](_0x34c785);const _0x4035ba=[],_0x2a11f0={};for(let _0x4ddb18=_0x4b61be;_0x4ddb18<=_0x2de269;_0x4ddb18++){const _0x3473b7=_0x1d9096[_0x209eab(0x3f7)](_0xc32c9,_0x4ddb18),_0x491baf=this[_0x209eab(0x425)](_0x34c785,_0x4ddb18),_0x463c15=this[_0x209eab(0x32e)](_0x491baf);if(_0x463c15)_0xac183f[_0x209eab(0x408)](_0x463c15['getId'](),_0x463c15['getName']());else{const _0x493c1c=this[_0x209eab(0x476)]();let _0x2d7eff=this[_0x209eab(0x1cc)](_0x3473b7,_0x363d63,_0x2a11f0);m[_0x209eab(0x48b)](_0x2d7eff)&&(_0x2d7eff=f['numfmt'][_0x209eab(0x434)](_0x2d7eff['f'],Number(_0x2d7eff['v'])));const _0x56f30b=this[_0x209eab(0x31c)](_0x2d7eff,_0x4ddb18),_0x1c852f=new m[(_0x209eab(0x42a))](_0x493c1c,_0x56f30b,m[_0x209eab(0x406)](0x3));_0x1c852f[_0x209eab(0x383)]=_0x491baf,this[_0x209eab(0x23f)][_0x493c1c]=_0x1c852f,_0xac183f[_0x209eab(0x408)](_0x493c1c,_0x56f30b),_0x4035ba[_0x209eab(0x3bd)]({'index':_0x4ddb18,'dataField':_0x1c852f});}}return{'updateDataFieldList':_0x4035ba,'collection':_0xac183f};}[_0xaf6d92(0x2e7)](_0x2fec22){const _0x4cfcc7=_0xaf6d92;return this[_0x4cfcc7(0x20d)][_0x4cfcc7(0x3ea)]()[_0x4cfcc7(0x364)]+'\x20'+f[_0x4cfcc7(0x233)](_0x2fec22);}['uniqueDataFieldName'](_0xb605d,_0x158d24){return _0xb605d==null||_0xb605d===''?this['_getAutoName'](_0x158d24):String(_0xb605d);}[_0xaf6d92(0x332)](_0x411a37){const _0x5cd9b2=_0xaf6d92;return this[_0x5cd9b2(0x2c8)][_0x411a37];}[_0xaf6d92(0x430)](_0x3b44a7,_0x27157f,_0x252336,_0x31b3e6){const _0x14250b=_0xaf6d92;this[_0x14250b(0x2c8)][_0x3b44a7]=_0x27157f,_0x27157f[_0x14250b(0x39d)](_0x252336),this[_0x14250b(0x20d)][_0x14250b(0x376)]({'token':_0x3b44a7,'type':Te[_0x14250b(0x2cf)],'dataRangeInfo':_0x252336,'targetCellInfo':_0x31b3e6});}['handleMoveRange'](_0x3b861d,_0x580968){const _0x1d24dd=_0xaf6d92,_0x2a6fb1=this[_0x1d24dd(0x332)](_0x3b861d),_0x13a6b3=_0x2a6fb1['getFieldIds']();let _0x53db1f=0x0;for(const _0x163fdb of _0x13a6b3){const _0x388484=_0x2a6fb1[_0x1d24dd(0x19b)](_0x163fdb),_0x2510dd=this[_0x1d24dd(0x425)](_0x580968,_0x53db1f);this[_0x1d24dd(0x337)](_0x388484[_0x1d24dd(0x383)],_0x2510dd),_0x53db1f++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0xaf6d92(0x213)](_0x4c2a98,_0x27fc20){const _0x5530e3=_0xaf6d92;if(this[_0x5530e3(0x332)](_0x4c2a98)){const _0x230ad0=this['getRangeKeyList'](_0x27fc20),_0x258180=[];for(const _0x5ec6ea of _0x230ad0)this[_0x5530e3(0x311)][_0x5ec6ea]!==void 0x0&&_0x258180['push'](this[_0x5530e3(0x311)][_0x5ec6ea]);const _0x20c713=this[_0x5530e3(0x2e9)](_0x4c2a98),_0x565036=[],_0xedb0ba=new Set(_0x258180);for(const _0x1e3a14 of _0x20c713)_0xedb0ba[_0x5530e3(0x496)](_0x1e3a14)||_0x565036[_0x5530e3(0x3bd)](_0x1e3a14);return _0x565036;}}[_0xaf6d92(0x372)](_0x5a0df7,_0x26426f,_0x47cbde,_0x302828,_0x4b3bad){const _0xaaf86b=_0xaf6d92;return _0x26426f&&_0x26426f['getValue'](_0x302828,_0x4b3bad)?_0x26426f[_0xaaf86b(0x3f7)](_0x302828,_0x4b3bad):_0x47cbde&&_0x47cbde[_0xaaf86b(0x3f7)](_0x302828,_0x4b3bad)?_0x47cbde[_0xaaf86b(0x3f7)](_0x302828,_0x4b3bad):_0x5a0df7[_0xaaf86b(0x3f7)](_0x302828,_0x4b3bad);}['refreshDataField'](_0x57236c,_0x4b718f,_0x331ebd,_0x494691){const _0x1ddece=_0xaf6d92,_0x2e5200=this['dataFields'][_0x57236c];if(!_0x2e5200)return;const {subUnitId:_0x5bf61c,range:_0x54871a,unitId:_0x50a9b7}=_0x4b718f,_0x25bdf5=this['_univerInstanceService'][_0x1ddece(0x43d)](_0x50a9b7);if(!_0x25bdf5){console['error'](_0x1ddece(0x478));return;}const _0x5a0887=_0x25bdf5[_0x1ddece(0x2e2)](_0x5bf61c),_0x53a5c3=_0x5a0887[_0x1ddece(0x356)](),{arrayFormulaCellDataMatrix:_0x3ff3c1,unitDataMatrix:_0xf5be0b}=_0x494691||{},{startRow:_0x449231,startColumn:_0x44413d,endRow:_0x36f482}=this['getRangeStartEndInfo'](_0x54871a,_0x5a0887);_0x2e5200['reset']();const _0x34f5fa=_0x25bdf5['getStyles'](),_0x1882e1={},_0x26f8ec=this[_0x1ddece(0x372)](_0x53a5c3,_0x3ff3c1,_0xf5be0b,_0x449231,_0x44413d+_0x331ebd);let _0x833f3a=this[_0x1ddece(0x1cc)](_0x26f8ec,_0x34f5fa,_0x1882e1);m[_0x1ddece(0x48b)](_0x833f3a)&&(_0x833f3a=f['numfmt'][_0x1ddece(0x434)](_0x833f3a['f'],Number(_0x833f3a['v'])));const _0x536ab7=this[_0x1ddece(0x31c)](_0x833f3a,_0x44413d+_0x331ebd);_0x2e5200[_0x1ddece(0x38b)](_0x536ab7);for(let _0x1332c9=_0x449231+0x1;_0x1332c9<=_0x36f482;_0x1332c9++){const _0x1332b5=this[_0x1ddece(0x372)](_0x53a5c3,_0x3ff3c1,_0xf5be0b,_0x1332c9,_0x44413d+_0x331ebd);_0x2e5200[_0x1ddece(0x2fd)](this[_0x1ddece(0x1cc)](_0x1332b5,_0x34f5fa,_0x1882e1),_0x1332c9-0x1-_0x449231);}}['refreshData'](_0x26b967,_0x310dc8,_0x1dec3b){const _0x11226f=_0xaf6d92,{subUnitId:_0x3c3454,range:_0x1e1168,unitId:_0x1b1513}=_0x1dec3b,_0x67c030=this[_0x11226f(0x3d0)][_0x11226f(0x43d)](_0x1b1513);if(!_0x67c030){console[_0x11226f(0x45f)](_0x11226f(0x478));return;}const _0x33a087=_0x67c030['getSheetBySheetId'](_0x3c3454),_0x2b365c=_0x33a087[_0x11226f(0x356)](),{startRow:_0x4ab790,startColumn:_0x433b92,endRow:_0xbaef7e}=this[_0x11226f(0x2f7)](_0x1e1168,_0x33a087),_0x2342c9=_0x67c030['getStyles'](),_0x422503={};for(const {dataField:_0x357639,index:_0x4eaabd}of _0x310dc8){_0x357639[_0x11226f(0x36e)]();const _0x8cd2fe=this[_0x11226f(0x372)](_0x2b365c,void 0x0,void 0x0,_0x4ab790,_0x433b92+_0x4eaabd);let _0x3fb2e8=this[_0x11226f(0x1cc)](_0x8cd2fe,_0x2342c9,_0x422503);m['isDateValue'](_0x3fb2e8)&&(_0x3fb2e8=f[_0x11226f(0x42f)][_0x11226f(0x434)](_0x3fb2e8['f'],Number(_0x3fb2e8['v'])));const _0x230bf8=this[_0x11226f(0x31c)](_0x3fb2e8,_0x433b92+_0x4eaabd);_0x357639[_0x11226f(0x38b)](_0x230bf8);}_0x26b967['updateAllDisplayName']();for(let _0x47fd45=_0x4ab790+0x1;_0x47fd45<=_0xbaef7e;_0x47fd45++)for(const {index:_0xe14488,dataField:_0x19640f}of _0x310dc8){const _0x46803a=_0x2b365c[_0x11226f(0x3f7)](_0x47fd45,_0x433b92+_0xe14488);_0x19640f['addRecord'](this['adjustSheetCellData'](_0x46803a,_0x2342c9,_0x422503),_0x47fd45-0x1-_0x4ab790);}_0x26b967[_0x11226f(0x415)](_0xbaef7e-_0x4ab790);}[_0xaf6d92(0x433)](_0x4d7194){const _0x5c08f0=_0xaf6d92,{range:_0x425ce0}=_0x4d7194,{startColumn:_0x328ab2,endColumn:_0x2a6814}=_0x425ce0,_0x416149=[];for(let _0x2725ac=_0x328ab2;_0x2725ac<=_0x2a6814;_0x2725ac++)_0x416149[_0x5c08f0(0x3bd)](this[_0x5c08f0(0x425)](_0x4d7194,_0x2725ac));return _0x416149;}['adjustSheetCellData'](_0x25de0c,_0x205f46,_0x5275c6){const _0x1a50cd=_0xaf6d92;if(_0x25de0c){const {s:_0x1091cb,v:_0x32fd13,t:_0x11831c,p:_0x28ffe0}=_0x25de0c;if(_0x28ffe0)return Yo(_0x28ffe0);const _0x31465f=_0x205f46[_0x1a50cd(0x447)](_0x1091cb);if(_0x31465f&&_0x11831c===f[_0x1a50cd(0x453)][_0x1a50cd(0x4a8)]&&_0x31465f['n']){const {pattern:_0x362453}=_0x31465f['n'];_0x5275c6[_0x362453]||(_0x5275c6[_0x362453]=f[_0x1a50cd(0x42f)][_0x1a50cd(0x3ef)](_0x362453));const _0x3e8a0d=_0x5275c6[_0x362453],_0x11a97d=_0x3e8a0d[_0x1a50cd(0x32b)];if(_0x3e8a0d[_0x1a50cd(0x1c5)])return String(_0x32fd13);if(_0x11a97d)return{'v':_0x32fd13,'f':_0x362453};}if(_0x11831c===f[_0x1a50cd(0x453)]['NUMBER'])return Number(_0x32fd13);if(_0x11831c===f[_0x1a50cd(0x453)][_0x1a50cd(0x37a)]||_0x11831c===f[_0x1a50cd(0x453)][_0x1a50cd(0x3fb)])return String(_0x32fd13);if(_0x11831c===void 0x0){const _0x1113ee=Number(_0x32fd13);if(!Number[_0x1a50cd(0x3f6)](_0x1113ee)&&String(_0x1113ee)===_0x32fd13)return _0x1113ee;}return _0x32fd13!=null?_0x32fd13:null;}else return null;}[_0xaf6d92(0x482)](_0x29ccc6){const _0x45a174=_0xaf6d92,{sheetName:_0x186a0e,range:_0x11582c,unitId:_0x3e202d}=_0x29ccc6,_0x14f161=this[_0x45a174(0x3d0)]['getUnit'](_0x3e202d);if(!_0x14f161)return console[_0x45a174(0x45f)]('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x39af3d=_0x14f161[_0x45a174(0x366)](_0x186a0e),_0x45157a=_0x39af3d['getCellMatrix'](),{startRow:_0x53f5db,startColumn:_0x482c09,endRow:_0xbcb57,endColumn:_0x131141}=this['getRangeStartEndInfo'](_0x11582c,_0x39af3d),_0x3f6419=_0x14f161[_0x45a174(0x44c)](),_0x2f4101=[],_0x1c6c61=[],_0x39786a={};for(let _0x1da9c9=_0x53f5db;_0x1da9c9<=_0xbcb57;_0x1da9c9++){const _0x5c0cfc=[];for(let _0x37491d=_0x482c09;_0x37491d<=_0x131141;_0x37491d++){const _0x369230=_0x45157a['getValue'](_0x1da9c9,_0x37491d);_0x1da9c9===_0x53f5db?_0x2f4101[_0x45a174(0x3bd)](_0x369230==null?null:String(_0x369230['v'])):_0x5c0cfc['push'](this[_0x45a174(0x1cc)](_0x369230,_0x3f6419,_0x39786a));}_0x1c6c61[_0x45a174(0x3bd)](_0x5c0cfc);}return{'header':_0x2f4101,'data':_0x1c6c61};}[_0xaf6d92(0x412)](){return super['toJSON']();}[_0xaf6d92(0x23e)](_0x2a1249){const _0x1a3e10=_0xaf6d92;super[_0x1a3e10(0x23e)](_0x2a1249),this[_0x1a3e10(0x2b0)]();}[_0xaf6d92(0x29d)](){const _0x441299=_0xaf6d92;super[_0x441299(0x29d)](),this[_0x441299(0x311)]={},this[_0x441299(0x20d)]=null;}}const Xo=_0x1e5358=>{const _0x2b98fc=_0xaf6d92,{targetCellInfo:_0x1f8eb9}=_0x1e5358,{matrixCache:_0x51321d,rangesCache:_0x58f1e3}=Ht({'filter':_0x2b98fc(0x477),'row':_0x2b98fc(0x368),'column':_0x2b98fc(0x33a),'values':_0x2b98fc(0x3c1)},_0x1f8eb9),_0x3ef57e=new f['ObjectMatrix']();return _0x51321d['forValue']((_0x4d0014,_0x59cfc2,_0x56be5a)=>{const _0x3bafb7=_0x2b98fc;_0x3ef57e[_0x3bafb7(0x491)](_0x4d0014,_0x59cfc2,_0x56be5a);}),{'matrix':_0x3ef57e,'rangesCache':_0x58f1e3};},xe=_0x454c69=>{const _0x1855f4=_0xaf6d92;let _0x2a9d50;if(_0x454c69!=null&&_0x454c69['v']||(_0x454c69==null?void 0x0:_0x454c69['v'])===0x0){_0x2a9d50||(_0x2a9d50={});const _0x3d9efa=$t(_0x454c69['v']);typeof _0x3d9efa==_0x1855f4(0x474)?_0x2a9d50['t']=f[_0x1855f4(0x453)][_0x1855f4(0x4a8)]:typeof _0x3d9efa==_0x1855f4(0x24e)&&(_0x2a9d50['t']=f[_0x1855f4(0x453)][_0x1855f4(0x37a)]),_0x2a9d50['v']=_0x3d9efa;}return _0x2a9d50;},Zo=(_0x40de62,_0x5b79c5,_0x20b513)=>{const _0x5b7f44=_0xaf6d92;var _0x281a54,_0x26958e,_0x2fb31c,_0x43f0a8,_0x16de21,_0x4dd235,_0x1c03d0,_0x1d8bbe,_0x4f009a,_0x2e6176,_0x298098,_0x28311b;const {cornerView:_0x229baf,rowView:_0x506bc5,colView:_0x4ccbe2,dataView:_0x4fe1f4,pageView:_0x8c559d,formatMap:_0x3dbaab}=_0x40de62,{row:_0x2ef6dc,col:_0x1af35e}=_0x5b79c5,_0x2638c7=new f['ObjectMatrix']();let _0x543e6e=_0x2ef6dc,_0x5a32f1=_0x1af35e;Object[_0x5b7f44(0x36b)](_0x8c559d[_0x5b7f44(0x355)])['forEach'](_0x1d4960=>{const _0x3a9071=_0x5b7f44;Object[_0x3a9071(0x36b)](_0x8c559d[_0x3a9071(0x355)][Number(_0x1d4960)])['forEach'](_0x26a6a2=>{const _0x2ec87a=_0x3a9071,_0xd19ba3={..._0x8c559d[_0x2ec87a(0x355)][Number(_0x1d4960)][Number(_0x26a6a2)]};_0x2638c7[_0x2ec87a(0x491)](Number(_0x1d4960)+_0x543e6e,Number(_0x26a6a2)+_0x5a32f1,xe(_0xd19ba3));});});const _0x3b9c2d=Object[_0x5b7f44(0x36b)](_0x8c559d[_0x5b7f44(0x355)])[_0x5b7f44(0x3a2)];_0x543e6e+=_0x3b9c2d+(_0x3b9c2d?we:0x0);const _0x1a9a84=_0x229baf[_0x5b7f44(0x2a4)](),_0x2e3700=_0x229baf[_0x5b7f44(0x1cb)]();for(let _0xf1a6a8=0x0;_0xf1a6a8<_0x1a9a84;_0xf1a6a8++)for(let _0x59c069=0x0;_0x59c069<_0x2e3700;_0x59c069++){const _0xff9c18={...(_0x26958e=(_0x281a54=_0x229baf[_0x5b7f44(0x355)])==null?void 0x0:_0x281a54[_0xf1a6a8])==null?void 0x0:_0x26958e[_0x59c069]};_0xff9c18&&((_0x2fb31c=_0x506bc5[_0x5b7f44(0x28d)][_0x59c069])!=null&&_0x2fb31c['isValue'])&&_0x59c069===_0x2e3700-0x1&&_0xf1a6a8===_0x1a9a84-0x1&&(_0xff9c18['v']=''+_0x20b513[_0x5b7f44(0x34b)]),_0x2638c7[_0x5b7f44(0x491)](_0xf1a6a8+_0x543e6e,_0x59c069+_0x5a32f1,xe(_0xff9c18));}_0x5a32f1+=_0x2e3700;const _0x54b67c=_0x4ccbe2[_0x5b7f44(0x28d)],_0x1582d3=_0x4ccbe2[_0x5b7f44(0x33e)]()>=0x0?_0x4ccbe2['getLastRow']()+0x1:0x0,_0x35404b=_0x4ccbe2['getLastCol']()>=0x0?_0x4ccbe2[_0x5b7f44(0x1b9)]()+0x1:0x0;for(let _0xcd82cc=0x0;_0xcd82cc<_0x35404b;_0xcd82cc++)for(let _0x531243=0x0;_0x531243<_0x1582d3;_0x531243++){const _0x5846e8={...(_0x16de21=(_0x43f0a8=_0x4ccbe2[_0x5b7f44(0x355)])==null?void 0x0:_0x43f0a8[_0xcd82cc])==null?void 0x0:_0x16de21[_0x531243]},_0x4a23f8=(_0x4dd235=_0x54b67c[_0xcd82cc])==null?void 0x0:_0x4dd235[_0x5b7f44(0x1c7)],_0x3daed1=_0x3dbaab[_0x4a23f8];_0x5846e8&&(_0x5846e8['v']=Me(_0x5846e8,_0xcd82cc===0x0&&((_0x1c03d0=_0x4ccbe2[_0x5b7f44(0x211)](_0x531243+0x1))==null?void 0x0:_0x1c03d0[_0x5b7f44(0x1a8)]),_0x3daed1,_0x20b513)),_0x2638c7['setValue'](_0xcd82cc+_0x543e6e,_0x531243+_0x5a32f1,xe(_0x5846e8));}_0x543e6e+=_0x1a9a84;const _0x211b07=_0x506bc5[_0x5b7f44(0x28d)],_0x28e637=_0x506bc5[_0x5b7f44(0x33e)]()>=0x0?_0x506bc5[_0x5b7f44(0x33e)]()+0x1:0x0,_0x4840fa=_0x506bc5[_0x5b7f44(0x1b9)]()>=0x0?_0x506bc5[_0x5b7f44(0x1b9)]()+0x1:0x0;for(let _0x371a89=0x0;_0x371a89<_0x28e637;_0x371a89++)for(let _0x56fe40=0x0;_0x56fe40<_0x4840fa;_0x56fe40++){const _0x24b184={...(_0x4f009a=(_0x1d8bbe=_0x506bc5[_0x5b7f44(0x355)])==null?void 0x0:_0x1d8bbe[_0x371a89])==null?void 0x0:_0x4f009a[_0x56fe40]},_0x4f5e81=(_0x2e6176=_0x211b07[_0x56fe40])==null?void 0x0:_0x2e6176['tableFieldId'],_0x12f488=_0x3dbaab[_0x4f5e81];_0x24b184&&(_0x24b184['v']=Me(_0x24b184,!0x1,_0x12f488,_0x20b513)),_0x2638c7['setValue'](_0x371a89+_0x543e6e,_0x56fe40+_0x1af35e,xe(_0x24b184));}const _0x3b8d74=_0x4fe1f4['getRowCount'](),_0x1d653e=_0x4fe1f4[_0x5b7f44(0x1cb)]();for(let _0x450266=0x0;_0x450266<_0x3b8d74;_0x450266++)for(let _0x1f9baf=0x0;_0x1f9baf<_0x1d653e;_0x1f9baf++){const _0x10d281={...(_0x28311b=(_0x298098=_0x4fe1f4[_0x5b7f44(0x355)])==null?void 0x0:_0x298098[_0x450266])==null?void 0x0:_0x28311b[_0x1f9baf]};_0x2638c7['setValue'](_0x450266+_0x543e6e,_0x1f9baf+_0x5a32f1,xe(_0x10d281));}return _0x2638c7;},en=_0x50fa4e=>{const _0x467051=_0xaf6d92,{view:_0x592d28,targetCellInfo:_0x24b4e7,isEmpty:_0x211079,textInfo:_0x782edf}=_0x50fa4e;if(_0x211079)return Xo(_0x50fa4e);const {pageView:_0x29a32f,cornerView:_0x11a260,rowView:_0x4fefa2,colView:_0x19c6e7,dataView:_0x2342fa}=_0x592d28,_0x360cba=ne(_0x24b4e7,_0x29a32f,!0x0),_0x2389b3=_0x29a32f[_0x467051(0x219)]>=0x0?_0x29a32f[_0x467051(0x219)]+0x1:0x0,_0x1a558b=_0x11a260['getRowCount'](),_0x4bbf23=_0x11a260['getColCount'](),_0x23ca9b=_0x360cba[_0x467051(0x3a2)]>0x0?we:0x0,_0x2994e3=ne({'row':_0x24b4e7['row']+_0x2389b3+_0x23ca9b,'col':_0x24b4e7[_0x467051(0x38d)]},_0x11a260,!0x1,!0x1),_0x9e0eee=ne({'row':_0x24b4e7[_0x467051(0x458)]+_0x2389b3+_0x23ca9b+_0x1a558b,'col':_0x24b4e7[_0x467051(0x38d)]},_0x4fefa2,!0x1,!0x0),_0xcca81e=ne({'row':_0x24b4e7[_0x467051(0x458)]+_0x2389b3+_0x23ca9b,'col':_0x24b4e7[_0x467051(0x38d)]+_0x4bbf23},_0x19c6e7,!0x1,!0x0),_0x4496bf=ne({'row':_0x24b4e7[_0x467051(0x458)]+_0x2389b3+_0x23ca9b+_0x1a558b,'col':_0x24b4e7[_0x467051(0x38d)]+_0x4bbf23},_0x2342fa,!0x1,!0x1),_0x7b09e9={'rowRanges':_0x9e0eee,'colRanges':_0xcca81e,'cornerRanges':_0x2994e3,'dataRanges':_0x4496bf,'pageRanges':_0x360cba};return{'matrix':Zo(_0x592d28,_0x24b4e7,_0x782edf),'rangesCache':_0x7b09e9};};var tn=Object[_0xaf6d92(0x25a)],on=(_0x1343f3,_0x13e41c,_0x4b6098,_0x36c962)=>{for(var _0x5dc0be=_0x36c962>0x1?void 0x0:_0x36c962?tn(_0x13e41c,_0x4b6098):_0x13e41c,_0x534095=_0x1343f3['length']-0x1,_0x19cb80;_0x534095>=0x0;_0x534095--)(_0x19cb80=_0x1343f3[_0x534095])&&(_0x5dc0be=_0x19cb80(_0x5dc0be)||_0x5dc0be);return _0x5dc0be;},Oe=(_0x18b541,_0x5a5d9c)=>(_0x38451e,_0x1ccaf9)=>_0x5a5d9c(_0x38451e,_0x1ccaf9,_0x18b541);exports[_0xaf6d92(0x384)]=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x4af942,_0x30b177,_0x17deff,_0x24f6fc,_0x186861){const _0x5e7cc9=_0xaf6d92;super(),x(this,'_model',new Map()),x(this,_0x5e7cc9(0x3de),new Map()),x(this,_0x5e7cc9(0x1d0),new Map()),x(this,_0x5e7cc9(0x200)),x(this,_0x5e7cc9(0x418),new ve['Subject']()),x(this,_0x5e7cc9(0x1ca),this['_collectionChange$']['asObservable']()),x(this,_0x5e7cc9(0x251),new ve[(_0x5e7cc9(0x365))]()),x(this,'viewData$',this[_0x5e7cc9(0x251)][_0x5e7cc9(0x1df)]()),x(this,_0x5e7cc9(0x3fe),new ve[(_0x5e7cc9(0x365))]()),x(this,_0x5e7cc9(0x3a1),this[_0x5e7cc9(0x3fe)][_0x5e7cc9(0x1df)]()),x(this,_0x5e7cc9(0x336),new Map()),x(this,_0x5e7cc9(0x2ba),[]),x(this,'_queryingMap',new Map()),(this['_injector']=_0x4af942,this[_0x5e7cc9(0x3d0)]=_0x30b177,this[_0x5e7cc9(0x4b5)]=_0x17deff,this[_0x5e7cc9(0x451)]=_0x24f6fc,this[_0x5e7cc9(0x195)]=_0x186861,this[_0x5e7cc9(0x456)]());}[_0xaf6d92(0x3ea)](){const _0x44cda9=_0xaf6d92;return this[_0x44cda9(0x200)]?this['_textInfo']:Qo;}[_0xaf6d92(0x466)](_0x1b76ba){const _0x14161f=_0xaf6d92;this[_0x14161f(0x200)]=_0x1b76ba;}[_0xaf6d92(0x259)](_0x56b385){const _0x694297=_0xaf6d92;var _0x32e6e6;const {from:_0xd7dde5,to:_0x36a503,unitId:_0x183501,fromRange:_0x54a1b6,toRange:_0x14c8bd}=_0x56b385;if(_0xd7dde5&&_0x36a503){const _0x4ab583=this[_0x694297(0x1f9)](_0x183501),_0x110eb5=this[_0x694297(0x2f9)][_0x694297(0x447)](_0x183501),_0x36a46b=(_0x32e6e6=this[_0x694297(0x3d0)][_0x694297(0x43d)](_0x183501))==null?void 0x0:_0x32e6e6['getSheetBySheetId'](_0x36a503[_0x694297(0x371)]);if(!_0x110eb5||!_0x36a46b)return;const _0x1dc6c3=_0x36a46b==null?void 0x0:_0x36a46b[_0x694297(0x238)]();for(const [_0x4e45b7,_0x2a5fae]of _0x110eb5[_0x694297(0x357)]())for(const [_0xf9bc55,_0x2d7173]of _0x2a5fae[_0x694297(0x357)]()){const {sourceRangeInfo:_0x4d0c09}=_0x2d7173;if(_0x4d0c09[_0x694297(0x379)]===_0x183501&&_0x4d0c09['subUnitId']===_0xd7dde5[_0x694297(0x371)]&&f['Rectangle'][_0x694297(0x1a4)](_0x54a1b6,_0x4d0c09[_0x694297(0x438)])){const _0x30a257={'row':_0x4d0c09[_0x694297(0x438)][_0x694297(0x3df)]-_0x54a1b6[_0x694297(0x3df)],'col':_0x4d0c09[_0x694297(0x438)]['startColumn']-_0x54a1b6['startColumn']},_0x4d8ac5={'unitId':_0x183501,'subUnitId':_0x36a503['subUnitId'],'sheetName':_0x1dc6c3,'range':{'startRow':_0x14c8bd[_0x694297(0x3df)]+_0x30a257[_0x694297(0x458)],'endRow':_0x14c8bd[_0x694297(0x3df)]+_0x30a257[_0x694297(0x458)]+_0x4d0c09[_0x694297(0x438)][_0x694297(0x314)]-_0x4d0c09[_0x694297(0x438)]['startRow'],'startColumn':_0x14c8bd[_0x694297(0x3b2)]+_0x30a257['col'],'endColumn':_0x14c8bd[_0x694297(0x3b2)]+_0x30a257[_0x694297(0x38d)]+_0x4d0c09[_0x694297(0x438)][_0x694297(0x4a2)]-_0x4d0c09[_0x694297(0x438)]['startColumn']}};_0x4ab583[_0x694297(0x259)](_0xf9bc55,_0x4d8ac5);const _0x1d33c1={..._0x2d7173,'sourceRangeInfo':_0x4d8ac5};this['_updateModelCache'](_0x183501,_0x36a503[_0x694297(0x371)],_0xf9bc55,_0x1d33c1),this[_0x694297(0x376)]({'unitId':_0x183501,'token':_0xf9bc55,'type':Te[_0x694297(0x39e)],'oldSourceRangeInfo':_0x4d0c09,'dataRangeInfo':_0x4d8ac5,'targetCellInfo':_0x2d7173[_0x694297(0x346)]}),this[_0x694297(0x2df)]({'unitId':_0x183501,'subUnitId':_0x36a503[_0x694297(0x371)],'oldSubUnitId':_0x4e45b7,'pivotTableId':_0xf9bc55,'pivotTableConfig':_0x1d33c1,'collectionConfig':_0x4ab583[_0x694297(0x412)]()});}}}}['broadcastCollectionChange'](_0x538ee9){const _0xe3e091=_0xaf6d92;this[_0xe3e091(0x418)][_0xe3e091(0x493)](_0x538ee9);}[_0xaf6d92(0x1f9)](_0x14233a){const _0x4b7f37=_0xaf6d92;let _0x5cc606=this[_0x4b7f37(0x336)][_0x4b7f37(0x447)](_0x14233a);return _0x5cc606||(_0x5cc606=new zo(this,this['_univerInstanceService']),this[_0x4b7f37(0x336)][_0x4b7f37(0x3d4)](_0x14233a,_0x5cc606)),_0x5cc606;}['getCollection'](_0x1c7b00,_0x3a2fb2){const _0x1fe3a6=_0xaf6d92;return this[_0x1fe3a6(0x1f9)](_0x1c7b00)[_0x1fe3a6(0x2c8)][_0x3a2fb2];}[_0xaf6d92(0x213)](_0x2775db,_0x34280d,_0x482c57){return this['getDataFieldManager'](_0x2775db)['getUpdateRangeDeleteIds'](_0x34280d,_0x482c57);}['_ensurePivotMap'](_0x595410,_0x4c868b){const _0x226e9a=_0xaf6d92;let _0x4a15e9=this[_0x226e9a(0x2f9)][_0x226e9a(0x447)](_0x595410);_0x4a15e9||(_0x4a15e9=new Map(),this[_0x226e9a(0x2f9)][_0x226e9a(0x3d4)](_0x595410,_0x4a15e9));let _0x3e15d2=_0x4a15e9[_0x226e9a(0x447)](_0x4c868b);return _0x3e15d2||(_0x3e15d2=new Map(),_0x4a15e9[_0x226e9a(0x3d4)](_0x4c868b,_0x3e15d2)),_0x3e15d2;}[_0xaf6d92(0x1dd)](_0x4155bd,_0xc13aa4,_0x1bbcbf,_0x535c50){const _0x30538b=_0xaf6d92;this[_0x30538b(0x46f)](_0x4155bd,_0xc13aa4)[_0x30538b(0x3d4)](_0x1bbcbf,_0x535c50);}[_0xaf6d92(0x249)](_0x551940,_0x2ce004,_0x146dac){const _0x4d8f80=_0xaf6d92;var _0x103030,_0x2acac3,_0x3b9c29,_0x2bec83;((_0x2acac3=(_0x103030=this[_0x4d8f80(0x2f9)][_0x4d8f80(0x447)](_0x551940))==null?void 0x0:_0x103030[_0x4d8f80(0x447)](_0x2ce004))==null?void 0x0:_0x2acac3['get'](_0x146dac))&&((_0x2bec83=(_0x3b9c29=this[_0x4d8f80(0x2f9)][_0x4d8f80(0x447)](_0x551940))==null?void 0x0:_0x3b9c29[_0x4d8f80(0x447)](_0x2ce004))==null||_0x2bec83[_0x4d8f80(0x20e)](_0x146dac));}[_0xaf6d92(0x307)](_0x2bdfcf,_0x279472){const _0x3da23b=_0xaf6d92;this['_pivotTableInstanceCache'][_0x3da23b(0x3d4)](_0x2bdfcf,_0x279472);}['_deletePivotTableInstanceCache'](_0x4c0e09){const _0x1ff6f4=_0xaf6d92;this[_0x1ff6f4(0x3de)][_0x1ff6f4(0x20e)](_0x4c0e09);}[_0xaf6d92(0x498)](_0x1bacbd,_0xc179f6){const _0x5a505f=_0xaf6d92;let _0x22572a=this[_0x5a505f(0x1d0)]['get'](_0x1bacbd);_0x22572a||(_0x22572a=new Map(),this[_0x5a505f(0x1d0)]['set'](_0x1bacbd,_0x22572a));let _0x2b95a7=_0x22572a[_0x5a505f(0x447)](_0xc179f6);return _0x2b95a7||(_0x2b95a7=new Map(),_0x22572a['set'](_0xc179f6,_0x2b95a7)),_0x2b95a7;}['updateConfig'](_0x3590d8){const _0x1717c8=_0xaf6d92,{unitId:_0x5e7026,subUnitId:_0x4751eb,pivotTableId:_0x4b0cf8,pivotTableConfig:_0x11141e,collectionConfig:_0x5e51be}=_0x3590d8,_0x533194={'unitId':_0x5e7026,'subUnitId':_0x4751eb,'oldSubUnitId':_0x4751eb,'pivotTableId':_0x4b0cf8,'pivotTableConfig':_0x11141e,'collectionConfig':_0x5e51be};this[_0x1717c8(0x451)]['executeCommand'](_t['id'],_0x533194,{'onlyLocal':!0x0});}['updateView'](_0x2154da,_0xb81013,_0x46eb60,_0x21eddb,_0x27552c,_0x452c88,_0x1bde0f,_0x123e8d=!0x1){const _0x2abcc3=_0xaf6d92;var _0x1ee188;this['_commandService']['executeCommand'](ot['id'],{'single':{'unitId':_0x2154da,'subUnitId':_0xb81013,'type':_0x46eb60,'pivotTableId':_0x21eddb,'view':_0x27552c,'pivotConfig':_0x452c88},'collectionConfig':{[_0x2154da]:_0x1bde0f}},{'onlyLocal':!0x0});const _0x34b196=!!((_0x1ee188=this[_0x2abcc3(0x480)](_0x21eddb))!=null&&_0x1ee188[_0x2abcc3(0x291)]()),_0x471b8e=this[_0x2abcc3(0x266)](_0x2154da,_0xb81013,_0x21eddb);_0x471b8e&&this[_0x2abcc3(0x248)]({'view':_0x27552c,'pivotTableId':_0x21eddb,'textInfo':this[_0x2abcc3(0x3ea)](),'isEmpty':_0x34b196,'targetCellInfo':_0x471b8e['targetCellInfo']},_0x123e8d);}[_0xaf6d92(0x248)](_0x62f8ba,_0x4c21c4){const _0x4c5169=_0xaf6d92,{targetCellInfo:_0x2d6c58,pivotTableId:_0x23552a}=_0x62f8ba,{unitId:_0x41ea8e,subUnitId:_0x2b34b0}=_0x2d6c58,_0x35a4a4=this[_0x4c5169(0x498)](_0x41ea8e,_0x2b34b0),_0x595ee4=_0x35a4a4[_0x4c5169(0x447)](_0x23552a);let _0x43549b,_0x59a931;_0x595ee4&&(_0x43549b=_0x595ee4[_0x4c5169(0x369)],_0x59a931=_0x595ee4['matrix']);const {rangesCache:_0x3cdb93,matrix:_0x3e1421}=en(_0x62f8ba);_0x35a4a4['set'](_0x23552a,{'rangeCache':_0x3cdb93,'matrix':_0x3e1421,'oldMatrix':_0x59a931,'oldRangeCache':_0x43549b}),_0x4c21c4||this[_0x4c5169(0x251)][_0x4c5169(0x493)]({'unitId':_0x41ea8e,'subUnitId':_0x2b34b0,'pivotTableId':_0x23552a});}[_0xaf6d92(0x442)](_0x82db63,_0x24ff28,_0x188557,_0x52b0bf,_0x51cac2){const _0x560dfb=_0xaf6d92;this[_0x560dfb(0x1dd)](_0x82db63,_0x24ff28,_0x188557,_0x51cac2),this[_0x560dfb(0x307)](_0x188557,_0x52b0bf);}['removePivotTable'](_0x1f7f96,_0x4f3b0b,_0x35512b){const _0x3e6d5a=_0xaf6d92,_0x396b7a=this[_0x3e6d5a(0x1f9)](_0x1f7f96);_0x396b7a['getNoUsedDataFieldIds'](_0x35512b)[_0x3e6d5a(0x25e)](_0x223d07=>{_0x396b7a['deleteDataField'](_0x223d07);}),this[_0x3e6d5a(0x222)](_0x1f7f96,_0x35512b),this['_deleteModelCache'](_0x1f7f96,_0x4f3b0b,_0x35512b),this['_deletePivotTableInstanceCache'](_0x35512b);}['setPivotTable'](_0x5ca248,_0x19455,_0x2ffefe,_0x11f404){this['_updateModelCache'](_0x5ca248,_0x19455,_0x2ffefe,_0x11f404);}[_0xaf6d92(0x266)](_0x59810e,_0x58b581,_0x34e9fa){const _0x330452=_0xaf6d92;var _0x33a60b,_0x447f94;const _0x282e9c=(_0x447f94=(_0x33a60b=this[_0x330452(0x2f9)]['get'](_0x59810e))==null?void 0x0:_0x33a60b[_0x330452(0x447)](_0x58b581))==null?void 0x0:_0x447f94[_0x330452(0x447)](_0x34e9fa);if(_0x282e9c)return _0x282e9c;}[_0xaf6d92(0x29b)](_0xea4dde,_0x4b0b5d,_0x49432d){const _0x4298cd=_0xaf6d92;var _0x1b3ef1,_0x12d77d;const _0x3a10fa=(_0x12d77d=(_0x1b3ef1=this[_0x4298cd(0x2f9)][_0x4298cd(0x447)](_0xea4dde))==null?void 0x0:_0x1b3ef1[_0x4298cd(0x447)](_0x4b0b5d))==null?void 0x0:_0x12d77d[_0x4298cd(0x447)](_0x49432d);if(_0x3a10fa)return _0x3a10fa[_0x4298cd(0x3a7)];}[_0xaf6d92(0x480)](_0xe00689){const _0x48ed88=_0xaf6d92;return this[_0x48ed88(0x3de)][_0x48ed88(0x447)](_0xe00689);}[_0xaf6d92(0x2ac)](_0x2309f2){const _0x46ae36=_0xaf6d92;this['_model']['delete'](_0x2309f2);const _0x236513=this['_dataFieldManagerCollection']['get'](_0x2309f2);_0x236513&&(_0x236513[_0x46ae36(0x29d)](),this[_0x46ae36(0x336)]['delete'](_0x2309f2)),this['_viewData']['delete'](_0x2309f2),this[_0x46ae36(0x2ba)]['forEach'](_0x521f6f=>{const _0xab8120=_0x46ae36;_0x521f6f[_0xab8120(0x2ac)](_0x2309f2);});}[_0xaf6d92(0x235)](_0x157801,_0x4b2faa,_0x2d7216,_0x46b81a){const _0x4aaee6=_0xaf6d92;return this['getDataFieldManager'](_0x2d7216[_0x4aaee6(0x379)])[_0x4aaee6(0x235)](_0x157801,_0x4b2faa,_0x2d7216,_0x46b81a);}[_0xaf6d92(0x30c)](_0x5acb8f){const _0x36594f=_0xaf6d92;return this[_0x36594f(0x1f9)](_0x5acb8f[_0x36594f(0x379)])[_0x36594f(0x30c)](_0x5acb8f);}[_0xaf6d92(0x1a9)](_0xfd8202,_0x80d175,_0x4a82dc){const _0x43fc91=_0xaf6d92;this['getDataFieldManager'](_0x4a82dc[_0x43fc91(0x379)])[_0x43fc91(0x1a9)](_0xfd8202,_0x80d175,_0x4a82dc);}[_0xaf6d92(0x32d)](_0x10bbe5,_0x3d8890){const _0x19a96f=_0xaf6d92;this[_0x19a96f(0x1f9)](_0x10bbe5)[_0x19a96f(0x2f3)](_0x3d8890);}[_0xaf6d92(0x222)](_0x3f0a84,_0x3713e4){const _0x107645=_0xaf6d92;this['getDataFieldManager'](_0x3f0a84)[_0x107645(0x319)](_0x3713e4);}[_0xaf6d92(0x3c2)](_0x2fd5b9,_0x300ec9){const _0x1fbaa8=_0xaf6d92;var _0x1e3dbb;return(_0x1e3dbb=this[_0x1fbaa8(0x2f9)]['get'](_0x2fd5b9))==null?void 0x0:_0x1e3dbb[_0x1fbaa8(0x447)](_0x300ec9);}[_0xaf6d92(0x1f4)](_0x46c437){const _0x1cb842=_0xaf6d92;for(const [_0x49b16a,_0x5249ff]of this[_0x1cb842(0x2f9)]['entries']())for(const [_0xc3f88f,_0x564282]of _0x5249ff[_0x1cb842(0x357)]())if(_0x564282[_0x1cb842(0x496)](_0x46c437))return{'unitId':_0x49b16a,'subUnitId':_0xc3f88f};return null;}['sideEffectUpdateWorkerCache'](_0x12e7c9,_0x4c7d3d,_0x4a1db4,_0x51c935){const _0xd7a37f=_0xaf6d92,_0x3a4373=this[_0xd7a37f(0x498)](_0x12e7c9,_0x4c7d3d);_0x51c935?_0x3a4373[_0xd7a37f(0x3d4)](_0x4a1db4,_0x51c935):_0x3a4373['delete'](_0x4a1db4),this[_0xd7a37f(0x251)][_0xd7a37f(0x493)]({'unitId':_0x12e7c9,'subUnitId':_0x4c7d3d,'pivotTableId':_0x4a1db4});}[_0xaf6d92(0x29d)](){const _0x34df64=_0xaf6d92;super[_0x34df64(0x29d)](),this['_model'][_0x34df64(0x400)](),this[_0x34df64(0x3de)][_0x34df64(0x400)](),this[_0x34df64(0x1d0)]['clear'](),this[_0x34df64(0x418)]['complete'](),this['_viewData$'][_0x34df64(0x3da)](),this[_0x34df64(0x3fe)][_0x34df64(0x3da)](),this[_0x34df64(0x336)][_0x34df64(0x25e)](_0xdba345=>_0xdba345['dispose']()),this[_0x34df64(0x336)]['clear']();}[_0xaf6d92(0x304)](_0x525c22,_0x5823c1,_0x47b44a){const _0x17f47c=_0xaf6d92;var _0x1df22c,_0xadd739;const _0x982465=(_0xadd739=(_0x1df22c=this[_0x17f47c(0x1d0)][_0x17f47c(0x447)](_0x525c22))==null?void 0x0:_0x1df22c['get'](_0x5823c1))==null?void 0x0:_0xadd739[_0x17f47c(0x447)](_0x47b44a);return _0x982465||null;}[_0xaf6d92(0x443)](_0x47fff7){this['updateDirtyPivotTable'](_0x47fff7);}['updateDirtyPivotTable'](_0x3fc300){const _0x30d097=_0xaf6d92,{token:_0x57d925,unitId:_0x28ad7e,subUnitId:_0x30677f}=_0x3fc300,_0x4421cc=_0x28ad7e+'-'+_0x30677f+'-'+_0x57d925;this[_0x30d097(0x36d)][_0x30d097(0x447)](_0x4421cc)&&clearTimeout(this['_queryingMap'][_0x30d097(0x447)](_0x4421cc));const _0x5394b5=setTimeout(()=>{const _0x4feb85=_0x30d097;this['queryDirtyPivotTable'](_0x3fc300),this[_0x4feb85(0x36d)][_0x4feb85(0x20e)](_0x4421cc);},Lo);this[_0x30d097(0x36d)]['set'](_0x4421cc,_0x5394b5);}['queryDirtyPivotTable'](_0x350726){const _0x23100b=_0xaf6d92,{unitId:_0x5544f1,subUnitId:_0x408553,token:_0xc466b,type:_0x21eeec,pivotConfig:_0x18b86d}=_0x350726,_0x3db7e6=this[_0x23100b(0x480)](_0xc466b),_0x57fc7c=_0x3db7e6==null?void 0x0:_0x3db7e6[_0x23100b(0x339)](),_0x16c628=_0x18b86d!=null?_0x18b86d:this[_0x23100b(0x266)](_0x5544f1,_0x408553,_0xc466b);_0x16c628&&(_0x16c628['isEmpty']=!!(_0x3db7e6!=null&&_0x3db7e6[_0x23100b(0x291)]())),(_0x57fc7c||_0x21eeec===W['Delete'])&&this['updateView'](_0x5544f1,_0x408553,_0x21eeec,_0xc466b,_0x57fc7c,_0x16c628,this['getDataFieldManager'](_0x5544f1)['toJSON']());}[_0xaf6d92(0x412)](_0x884c5d){const _0x5a8c6a=_0xaf6d92,_0x20d843={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x884c5d)&&(_0x20d843[_0x5a8c6a(0x45b)][_0x884c5d]=this['getDataFieldManager'](_0x884c5d)['toJSON']()),this[_0x5a8c6a(0x2f9)]['get'](_0x884c5d)){_0x20d843[_0x5a8c6a(0x450)][_0x884c5d]={};const _0x139c16=this[_0x5a8c6a(0x2f9)][_0x5a8c6a(0x447)](_0x884c5d);_0x139c16!=null&&_0x139c16[_0x5a8c6a(0x3c8)]&&[..._0x139c16['keys']()][_0x5a8c6a(0x25e)](_0x4b20f6=>{const _0x2f9bba=_0x5a8c6a,_0x57ba76=_0x139c16[_0x2f9bba(0x447)](_0x4b20f6);_0x57ba76!=null&&_0x57ba76[_0x2f9bba(0x3c8)]&&(_0x20d843[_0x2f9bba(0x450)][_0x884c5d][_0x4b20f6]={},[..._0x57ba76['keys']()]['forEach'](_0x4d0608=>{const _0x242aab=_0x2f9bba,_0x16e327=_0x57ba76['get'](_0x4d0608);_0x16e327&&(_0x20d843[_0x242aab(0x450)][_0x884c5d][_0x4b20f6][_0x4d0608]=_0x16e327);}));});}return _0x20d843;}[_0xaf6d92(0x23e)](_0x10916b){const _0xa34109=_0xaf6d92;var _0x32e4bf;const {dataFieldManagerConfig:_0x2d780e,pivotTableConfigs:_0xd5f856}=_0x10916b;_0x2d780e&&Object[_0xa34109(0x36b)](_0x2d780e)['forEach'](_0x1be998=>{const _0x139db9=_0xa34109;this['getDataFieldManager'](_0x1be998)[_0x139db9(0x23e)](_0x2d780e[_0x1be998]);});const _0xb0e46f=[];if(_0xd5f856){const _0x36495b=(_0x32e4bf=this[_0xa34109(0x237)]['get'](f[_0xa34109(0x37c)])[_0xa34109(0x3a3)](ue[_0xa34109(0x325)]))!=null?_0x32e4bf:{},{ls:_0x25c71e,pbk:_0x352166}=_0x36495b,_0x40606c=St(Ct,_0x25c71e,_0x352166)['count'];Object['keys'](_0xd5f856)[_0xa34109(0x25e)](_0x563e3a=>{const _0x36cc9c=_0xa34109;let _0x225b5f=0x0;const _0x3f64ff=_0xd5f856[_0x563e3a];Object[_0x36cc9c(0x36b)](_0x3f64ff)[_0x36cc9c(0x25e)](_0x23b4e5=>{const _0x97795c=_0x36cc9c,_0x1d60c5=_0x3f64ff[_0x23b4e5];Object['keys'](_0x1d60c5)[_0x97795c(0x25e)](_0x2d8051=>{const _0x527026=_0x97795c,_0x1054b1=_0x1d60c5[_0x2d8051];if(_0x1054b1){if(_0x225b5f>=_0x40606c)return;_0x225b5f++;const _0x55592a=this['getDataFieldManager'](_0x563e3a),_0x1da29b=_0x55592a['collections'][_0x2d8051],_0x4fcc34=_0x1da29b[_0x527026(0x377)]();let _0x2ae98a=0x0;const _0xb382bf=[];for(const _0x38f840 of _0x4fcc34){const _0x4acb88=_0x1da29b[_0x527026(0x19b)](_0x38f840);if(m[_0x527026(0x367)](_0x4acb88)){const _0x4d8223=_0x4acb88[_0x527026(0x30a)](),_0x4e3a74=_0x1da29b[_0x527026(0x19b)](_0x4d8223);_0x4e3a74&&_0xb382bf[_0x527026(0x3bd)]([_0x4acb88,_0x4e3a74]);continue;}_0x55592a[_0x527026(0x2d1)](_0x38f840,_0x1054b1[_0x527026(0x32c)],_0x2ae98a),_0x2ae98a++;}_0xb382bf[_0x527026(0x25e)](([_0x5988e5,_0xa478e7])=>{const _0x4823f8=_0x527026;_0x5988e5[_0x4823f8(0x231)](_0xa478e7);});const _0x5e2092=new m[(_0x527026(0x352))](_0x1da29b);_0x5e2092[_0x527026(0x23e)](_0x1054b1[_0x527026(0x3a7)]),this[_0x527026(0x442)](_0x563e3a,_0x23b4e5,_0x2d8051,_0x5e2092,_0x1054b1);const _0x541b49=_0x5e2092['query']();_0xb0e46f[_0x527026(0x3bd)]({'unitId':_0x563e3a,'subUnitId':_0x23b4e5,'pivotTableId':_0x2d8051,'view':_0x541b49[_0x527026(0x412)](),'pivotConfig':_0x1054b1,'type':W[_0x527026(0x1a7)]});const _0xc3dc7a=!!_0x5e2092['isEmpty'](),_0x4d52c3={'view':_0x541b49,'pivotTableId':_0x2d8051,'textInfo':this['getTextInfo'](),'isEmpty':_0xc3dc7a,'targetCellInfo':_0x1054b1[_0x527026(0x346)]};this[_0x527026(0x248)](_0x4d52c3,!0x1);}});});});}_0x2d780e&&Object[_0xa34109(0x36b)](_0x2d780e)['forEach'](_0x41960c=>{const _0x694c69=_0xa34109,_0x467953=this[_0x694c69(0x1f9)](_0x41960c);this[_0x694c69(0x3fe)]['next'](_0x467953[_0x694c69(0x2c8)]);}),this[_0xa34109(0x451)][_0xa34109(0x290)](ot['id'],{'batch':_0xb0e46f,'collectionConfig':_0x2d780e},{'onlyLocal':!0x0});}[_0xaf6d92(0x456)](){const _0x2f9205=_0xaf6d92;this['disposeWithMe'](this[_0x2f9205(0x195)][_0x2f9205(0x424)]({'toJson':_0x28fdcc=>JSON[_0x2f9205(0x3be)](this['toJSON'](_0x28fdcc)),'parseJson':_0x1ec627=>{const _0xbf4b20=_0x2f9205;if(!_0x1ec627)return{};try{return JSON[_0xbf4b20(0x305)](_0x1ec627);}catch{return{};}},'businesses':[f[_0x2f9205(0x426)][_0x2f9205(0x202)]],'pluginName':It,'onLoad':(_0x4177ca,_0x56a039)=>{const _0x5bfebd=_0x2f9205;this[_0x5bfebd(0x23e)](_0x56a039);},'onUnLoad':_0x3383e3=>{const _0x7a2ff1=_0x2f9205;this[_0x7a2ff1(0x2ac)](_0x3383e3);}}));}},exports[_0xaf6d92(0x384)]=on([Oe(0x0,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x283)])),Oe(0x1,f['IUniverInstanceService']),Oe(0x2,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x244)])),Oe(0x3,f[_0xaf6d92(0x22e)]),Oe(0x4,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x3e3)]))],exports[_0xaf6d92(0x384)]);const nn={0x0:{0x0:{'v':_0xaf6d92(0x38a),'s':z}},0x2:{0x1:{'v':'','s':z},0x2:{'v':'','s':z},0x3:{'v':_0xaf6d92(0x35b),'s':z},0x4:{'v':'','s':z},0x5:{'v':'','s':z}},0x3:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x4:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x5:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x6:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x7:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x8:{0x0:{'v':'row','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':_0xaf6d92(0x46c),'s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x9:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xa:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xb:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xc:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xd:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}}},Pt={'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':[]},Ht=(_0x17de8c,_0xd5660f)=>{const _0x4abde9=_0xaf6d92,_0x3a4044=new f[(_0x4abde9(0x2eb))](),_0x3e9c3c=new f[(_0x4abde9(0x2eb))](nn),{row:_0x15cfbc,col:_0x2ad9a5}=_0xd5660f;_0x3e9c3c[_0x4abde9(0x21d)]((_0x174ba4,_0x5dc5f1,_0x11a438)=>{const _0x456ddf=_0x4abde9;let _0x1b3a77='';_0x11a438['v']===_0x456ddf(0x38a)?_0x1b3a77=_0x17de8c['filter']:_0x11a438['v']===_0x456ddf(0x458)?_0x1b3a77=_0x17de8c[_0x456ddf(0x458)]:_0x11a438['v']===_0x456ddf(0x35b)?_0x1b3a77=_0x17de8c[_0x456ddf(0x35b)]:_0x11a438['v']===_0x456ddf(0x46c)&&(_0x1b3a77=_0x17de8c[_0x456ddf(0x46c)]),_0x3a4044['setValue'](_0x174ba4+_0x15cfbc,_0x5dc5f1+_0x2ad9a5,{..._0x11a438,'v':_0x1b3a77});});const _0x409db5=f['Tools']['deepClone'](Pt);return Object[_0x4abde9(0x36b)](Pt)[_0x4abde9(0x25e)](_0x2cae2f=>{const _0x308484=_0x4abde9;_0x409db5[_0x2cae2f]=Pt[_0x2cae2f][_0x308484(0x3dd)](_0x1131de=>({..._0x1131de,'startRow':_0x1131de[_0x308484(0x3df)]+_0x15cfbc,'endRow':_0x1131de[_0x308484(0x314)]+_0x15cfbc,'startColumn':_0x1131de[_0x308484(0x3b2)]+_0x2ad9a5,'endColumn':_0x1131de[_0x308484(0x4a2)]+_0x2ad9a5}));}),{'matrixCache':_0x3a4044,'rangesCache':_0x409db5};};function an(_0x14f53e,_0x365fd8){const _0x44a2f7=_0xaf6d92;let _0x310c78='';const _0xdeb5cf=this[_0x44a2f7(0x3ea)]();switch(_0x365fd8){case m[_0x44a2f7(0x1e5)]['average']:_0x310c78=_0xdeb5cf[_0x44a2f7(0x3f3)]+_0x14f53e;break;case m['PivotSubtotalTypeEnum'][_0x44a2f7(0x35f)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x1fe)]+_0x14f53e;break;case m[_0x44a2f7(0x1e5)][_0x44a2f7(0x4b1)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x481)]+_0x14f53e;break;case m['PivotSubtotalTypeEnum'][_0x44a2f7(0x3d2)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x1c3)]+_0x14f53e;break;case m[_0x44a2f7(0x1e5)][_0x44a2f7(0x370)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x1d5)]+_0x14f53e;break;case m[_0x44a2f7(0x1e5)][_0x44a2f7(0x286)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x459)]+_0x14f53e;break;case m['PivotSubtotalTypeEnum'][_0x44a2f7(0x2a1)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x3f5)]+_0x14f53e;break;case m['PivotSubtotalTypeEnum'][_0x44a2f7(0x22f)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x3b5)]+_0x14f53e;break;case m[_0x44a2f7(0x1e5)][_0x44a2f7(0x24f)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x2e1)]+_0x14f53e;break;case m[_0x44a2f7(0x1e5)]['var']:_0x310c78=_0xdeb5cf[_0x44a2f7(0x46a)]+_0x14f53e;break;case m[_0x44a2f7(0x1e5)][_0x44a2f7(0x487)]:_0x310c78=_0xdeb5cf[_0x44a2f7(0x3cc)]+_0x14f53e;break;default:_0x310c78=_0x14f53e;break;}return _0x310c78;}function qt(_0x14509c,_0x1c24cc,_0x52dd12,_0xc2e2ca,_0x44c5ef){const _0x384165=_0xaf6d92;var _0x42bf1d,_0x9ef8b1,_0x257daa,_0x14fa56,_0x5185bc;const _0x510b8b=f[_0x384165(0x423)](_0x14509c,_0x1c24cc),{rangesInfo:_0x1a5cea,areaInfo:_0x13e04f,headerMap:_0x2179f9}=_0x44c5ef;if(!_0x1a5cea||!_0x13e04f||!_0x2179f9)return;const _0x4ce71e=Object[_0x384165(0x36b)](_0x1a5cea)[_0x384165(0x1f6)](_0x171387=>_0x1a5cea[_0x171387][_0x384165(0x44a)](_0x507410=>f[_0x384165(0x43a)][_0x384165(0x1a4)](_0x507410,_0x510b8b))),_0x34dbf8=_0x13e04f;let _0x954322,_0x511076,_0xfe1353;if(_0x4ce71e===_0x384165(0x2b8))_0x954322=(_0x42bf1d=_0x34dbf8==null?void 0x0:_0x34dbf8['rowInfo'])==null?void 0x0:_0x42bf1d[_0x14509c],_0x511076=(_0x9ef8b1=_0x2179f9==null?void 0x0:_0x2179f9[_0x384165(0x262)])==null?void 0x0:_0x9ef8b1[_0x1c24cc],_0xfe1353=_0x511076==null?void 0x0:_0x511076[_0x384165(0x1c7)];else{if(_0x4ce71e===_0x384165(0x3b1))_0x954322=(_0x257daa=_0x34dbf8==null?void 0x0:_0x34dbf8[_0x384165(0x4b4)])==null?void 0x0:_0x257daa[_0x1c24cc],_0x511076=(_0x14fa56=_0x2179f9[_0x384165(0x472)])==null?void 0x0:_0x14fa56[_0x14509c+0x1+_0x1c24cc-_0x1a5cea[_0x384165(0x3b1)][0x0]['startColumn']],_0xfe1353=_0x511076==null?void 0x0:_0x511076['tableFieldId'];else{if(_0x4ce71e===_0x384165(0x452))_0x954322=(_0x5185bc=_0x34dbf8==null?void 0x0:_0x34dbf8[_0x384165(0x288)])==null?void 0x0:_0x5185bc[_0x1c24cc],_0xfe1353=_0x954322==null?void 0x0:_0x954322[_0x384165(0x1c7)];else{if(_0x4ce71e===_0x384165(0x1b2)){const _0xc41182=_0x52dd12==null?void 0x0:_0x52dd12['fi'];_0xc41182!==void 0x0&&(_0xfe1353=_0xc2e2ca[_0x384165(0x2c6)](_0xc41182));}}}}return{'filterId':_0xfe1353,'info':_0x954322,'data':_0x52dd12,'headerInfo':_0x511076};}function Yt(_0x256a0c,_0xd61610,_0x2ca68a){const _0x4d47ba=_0xaf6d92,_0x479a40=_0x256a0c[_0x4d47ba(0x49b)],_0x598b38=_0x479a40[_0x4d47ba(0x377)](),_0x29ee80=new Set();_0x256a0c['iterateField'](_0x3ef82f=>{const _0x584f4c=_0x4d47ba;_0x29ee80[_0x584f4c(0x2cf)](_0x3ef82f['dataFieldId']);});const _0x1be1e0=_0x598b38[_0x4d47ba(0x3dd)](_0xd04049=>{const _0x277c6a=_0x4d47ba,_0x1df1af=_0x479a40['getFieldById'](_0xd04049);return{'checked':_0x29ee80[_0x277c6a(0x496)](_0xd04049),'dataFieldId':_0x1df1af['id'],'id':_0x1df1af['id'],'name':_0x479a40[_0x277c6a(0x1ba)](_0x1df1af['id']),'type':_0x1df1af[_0x277c6a(0x436)](),'pivotTableId':_0xd61610};}),_0x7c84ba=[];_0x256a0c[_0x4d47ba(0x39c)](m['PivotTableFiledAreaEnum']['Row'],_0x3ac6ca=>{const _0x47c2cd=_0x4d47ba;_0x7c84ba[_0x47c2cd(0x3bd)]({'dataFieldId':_0x3ac6ca['dataFieldId'],'tableFieldId':_0x3ac6ca['getId'](),'displayName':_0x3ac6ca[_0x47c2cd(0x1ba)]()});});const _0x428e0c=[];_0x256a0c[_0x4d47ba(0x39c)](m['PivotTableFiledAreaEnum']['Column'],_0x45c056=>{const _0x217bdb=_0x4d47ba;_0x428e0c[_0x217bdb(0x3bd)]({'dataFieldId':_0x45c056[_0x217bdb(0x455)],'tableFieldId':_0x45c056[_0x217bdb(0x341)](),'displayName':_0x45c056['getDisplayName']()});});const _0x86e637=[];if(_0x256a0c[_0x4d47ba(0x39c)](m[_0x4d47ba(0x240)]['Value'],_0x17cdce=>{const _0x4f9b68=_0x4d47ba;_0x86e637['push']({'dataFieldId':_0x17cdce[_0x4f9b68(0x455)],'tableFieldId':_0x17cdce['getId'](),'displayName':_0x17cdce['getDisplayName'](),'format':_0x17cdce[_0x4f9b68(0x2d7)](),'subTotalType':_0x17cdce['getSubtotal']()});}),_0x86e637['length']>0x1){const _0xe43865=_0x256a0c[_0x4d47ba(0x362)]();(_0x256a0c[_0x4d47ba(0x1be)]()?_0x428e0c:_0x7c84ba)[_0x4d47ba(0x35e)](_0xe43865,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':_0x4d47ba(0x30e)});}const _0x2e81fd=[];_0x256a0c['iterateFieldByArea'](m[_0x4d47ba(0x240)][_0x4d47ba(0x477)],_0x3fc51e=>{const _0x5bf06a=_0x4d47ba;_0x2e81fd[_0x5bf06a(0x3bd)]({'dataFieldId':_0x3fc51e[_0x5bf06a(0x455)],'tableFieldId':_0x3fc51e[_0x5bf06a(0x341)](),'displayName':_0x3fc51e['getDisplayName']()});});const _0x562a55=_0x2ca68a['sourceRangeInfo'];return{'sourceList':_0x1be1e0,'sourceRange':_0x562a55,'rowFields':_0x7c84ba,'columnFields':_0x428e0c,'valueFields':_0x86e637,'filterFields':_0x2e81fd,'positionInfo':_0x2ca68a['targetCellInfo']};}function Dt(_0x4a6ac1,_0x25aa2b,_0x17263d='',_0x244466={}){const _0xd9ac8a=_0xaf6d92,_0x3682af=_0x4a6ac1[_0xd9ac8a(0x447)](f[_0xd9ac8a(0x2da)]);for(const _0x51f841 in _0x25aa2b)if(Object[_0xd9ac8a(0x495)][_0xd9ac8a(0x449)][_0xd9ac8a(0x2b1)](_0x25aa2b,_0x51f841)){const _0x489d96=_0x17263d?_0x17263d+'.'+_0x51f841:_0x51f841;typeof _0x25aa2b[_0x51f841]==_0xd9ac8a(0x278)&&_0x25aa2b[_0x51f841]!==null&&!Array[_0xd9ac8a(0x47c)](_0x25aa2b[_0x51f841])?Dt(_0x4a6ac1,_0x25aa2b[_0x51f841],_0x489d96,_0x244466):_0x244466[_0x489d96]=_0x3682af['t'](_0x489d96);}return _0x244466;}const nt=_0x5b7a41=>{const _0x34e534=_0xaf6d92;if(!_0x5b7a41)return[];const {rowRanges:_0x3ee144,colRanges:_0x2730cc,cornerRanges:_0x38c197,dataRanges:_0x17f9a3,pageRanges:_0x51e22b}=_0x5b7a41,_0x497491=[..._0x2730cc,..._0x3ee144,..._0x17f9a3,..._0x38c197][_0x34e534(0x38a)](_0x345a68=>_0x345a68[_0x34e534(0x3df)]>=0x0&&_0x345a68[_0x34e534(0x3b2)]>=0x0&&_0x345a68['endRow']>=0x0&&_0x345a68['endColumn']>=0x0);let _0x4e367b=Number[_0x34e534(0x2d5)],_0x50faf9=Number[_0x34e534(0x287)],_0x248169=Number[_0x34e534(0x2d5)],_0x123621=Number[_0x34e534(0x287)];for(let _0x440c98=0x0;_0x440c98<_0x497491['length'];_0x440c98++)_0x4e367b=Math[_0x34e534(0x370)](_0x4e367b,_0x497491[_0x440c98][_0x34e534(0x3df)]),_0x50faf9=Math[_0x34e534(0x3d2)](_0x50faf9,_0x497491[_0x440c98][_0x34e534(0x314)]),_0x248169=Math[_0x34e534(0x370)](_0x248169,_0x497491[_0x440c98][_0x34e534(0x3b2)]),_0x123621=Math[_0x34e534(0x3d2)](_0x123621,_0x497491[_0x440c98][_0x34e534(0x4a2)]);return[..._0x51e22b,{'startRow':_0x4e367b,'endRow':_0x50faf9,'startColumn':_0x248169,'endColumn':_0x123621}];};function sn(_0x48bef0,_0x2e6b2c){const _0x1ba827=_0xaf6d92,_0x5c1771=_0x2e6b2c[_0x1ba827(0x1a0)]['drillDown'],{pivotTableId:_0x5aedc7,unitId:_0x2ae698,subUnitId:_0x3fc0cc}=_0x2e6b2c;if(!_0x5c1771)return;const _0x4276a6=_0x48bef0['get'](exports['SheetsPivotDataSourceModel']),_0x4dd14a=_0x4276a6['getPivotTableInstance'](_0x5aedc7),_0x1ad679=_0x4276a6['getPivotTableConfig'](_0x2ae698,_0x3fc0cc,_0x5aedc7);if(!_0x4dd14a||!_0x1ad679)return;const _0x4c0360=_0x4dd14a[_0x1ba827(0x409)](_0x5c1771[_0x1ba827(0x4b6)]);if(!(_0x4c0360!=null&&_0x4c0360[_0x1ba827(0x3a2)]))return;const _0x19189e=_0x1ad679[_0x1ba827(0x32c)],{unitId:_0x1c839b,subUnitId:_0x48743a,range:_0x5af9fa}=_0x19189e;let _0x402204=0x0;const _0xecbeb=_0x4dd14a[_0x1ba827(0x49b)]['getFieldIds']()[_0x1ba827(0x2bc)]((_0x263bc6,_0x3224b6)=>{const _0x4ad605=_0x1ba827;var _0x46c9c1;const _0x243e25=(_0x46c9c1=_0x4dd14a['getDataFieldByDataFieldId'](_0x3224b6))==null?void 0x0:_0x46c9c1[_0x4ad605(0x1ff)]();return _0x243e25&&(_0x263bc6[String(_0x402204)]=_0x243e25),_0x402204++,_0x263bc6;},{});return{'indexes':_0x4c0360,'range':_0x5af9fa,'sourceUnitId':_0x1c839b,'sourceSubUnitId':_0x48743a,'formatMap':_0xecbeb};}function Et(_0xe221a,_0x5e0fb7){const _0x7c953=_0xaf6d92;if(!_0xe221a||!_0x5e0fb7)return!0x0;const _0x527184=ue[_0x7c953(0x403)](Kt,Qt),_0x498673=new Function('return\x20'+_0x527184)()(_0xe221a,_0x5e0fb7)[_0x7c953(0x3ad)],_0x190e3f=ue['isFeatureAuthorizedWithinTime'](_0x498673,'sf',jt);return!((_0x498673==null?void 0x0:_0x498673['rt'])===ue[_0x7c953(0x271)][_0x7c953(0x302)]&&!_0x190e3f);}function St(_0x521919,_0x28b21d,_0x4aed9b){const _0x24353e=_0xaf6d92,_0x42ae60={'count':_0x521919,'timeValid':!0x1};if(!_0x28b21d||!_0x4aed9b)return _0x42ae60;const _0x540e02=ue[_0x24353e(0x403)](Kt,Qt),_0x356739=new Function('return\x20'+_0x540e02)()(_0x28b21d,_0x4aed9b);if(_0x356739!=null&&_0x356739[_0x24353e(0x2a8)]){const _0x1bd912=_0x356739[_0x24353e(0x3ad)],_0x3ba46f=ue[_0x24353e(0x389)](_0x1bd912,'sf',jt);return{'count':ue[_0x24353e(0x1f7)](_0x1bd912,_0x3ba46f,'ptn',_0x521919,_0x521919,0x0),'timeValid':_0x3ba46f};}return _0x42ae60;}function Vt(_0x2c9375,_0x233ccd,_0x18ad45,_0x520a1f){const _0x141c6f=_0xaf6d92,_0x3a447f={'subUnitId':_0x18ad45,'unitId':_0x233ccd,'cellValue':U[_0x141c6f(0x1c6)](_0x520a1f)},_0x350116=U[_0x141c6f(0x32a)](_0x2c9375,_0x3a447f);let _0x539b2d=!0x1;return new f[(_0x141c6f(0x2eb))](_0x350116['cellValue'])[_0x141c6f(0x21d)]((_0x1f09f9,_0x5123b8,_0x1610b1)=>{const _0x2604c5=_0x141c6f;if(!_0x539b2d&&_0x1610b1&&(_0x1610b1[_0x2604c5(0x2ce)]||_0x1610b1['f']||_0x1610b1['p']||_0x1610b1['s']||_0x1610b1['si']||_0x1610b1['t']||_0x1610b1['v']))return _0x539b2d=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':U[_0x141c6f(0x2f6)]['id'],'params':_0x350116},'setRangeValueRedoMutation':{'id':U['SetRangeValuesMutation']['id'],'params':_0x3a447f},'shouldClear':_0x539b2d};}function zt(_0x1c13ce){const {row:_0x1bfc97,col:_0x62ffbc}=_0x1c13ce,_0x49a19e={'startRow':_0x1bfc97,'endRow':_0x1bfc97,'startColumn':_0x62ffbc,'endColumn':_0x62ffbc},_0x38328f={'startRow':_0x1bfc97+0x2,'endRow':_0x1bfc97+0xe,'startColumn':_0x62ffbc,'endColumn':_0x62ffbc+0x6};return[_0x49a19e,_0x38328f];}function rn(_0x574aa5,_0x1f6605,_0x25978a){const _0x499899=_0xaf6d92,{cornerView:_0x31f2a6,rowView:_0x2db038,colView:_0x33da17,pageView:_0x1d3ed8}=_0x574aa5,{row:_0x1b1701,col:_0x56ace8}=_0x1f6605;if(_0x25978a)return{'rowCount':ko+_0x1b1701,'colCount':jo+_0x56ace8};const _0x1dc76d=_0x1d3ed8[_0x499899(0x219)]>-0x1?_0x1d3ed8[_0x499899(0x219)]+0x1:0x0,_0x1e5ae3=_0x1d3ed8['lastCol']>-0x1?_0x1d3ed8[_0x499899(0x345)]:0x0,_0x47c345=_0x1b1701+_0x1dc76d+(_0x1dc76d?0x1:0x0)+_0x31f2a6[_0x499899(0x335)]+_0x2db038['rowCount'],_0x5e28e0=_0x56ace8+_0x1e5ae3,_0x1215f5=_0x56ace8+_0x31f2a6[_0x499899(0x489)]+_0x33da17[_0x499899(0x489)],_0x33f6c8=Math[_0x499899(0x3d2)](_0x5e28e0,_0x1215f5);return{'rowCount':_0x47c345,'colCount':_0x33f6c8};}function ce(_0x42449e,_0x4a09e2,_0x26e471,_0x388ecd){const _0x80476a=_0xaf6d92,{row:_0x31b268,col:_0x5623f1,unitId:_0x23563c,subUnitId:_0x384b55}=_0x26e471,_0x14728b=rn(_0x4a09e2,{'row':_0x31b268,'col':_0x5623f1},_0x388ecd),_0x3b9b43=_0x42449e[_0x80476a(0x447)](f['IUniverInstanceService']),_0x558a2e=U[_0x80476a(0x402)](_0x3b9b43,{'unitId':_0x23563c,'subUnitId':_0x384b55}),_0x5950e7=[],_0x1e7757=[];if(!_0x558a2e)return{'undos':_0x1e7757,'redos':_0x5950e7};const {worksheet:_0x4b0d32}=_0x558a2e,_0x3a509a=_0x4b0d32[_0x80476a(0x2a4)](),_0x50a9dc=_0x4b0d32[_0x80476a(0x252)]();return _0x3a509a<_0x14728b[_0x80476a(0x335)]&&(_0x5950e7['push']({'id':U[_0x80476a(0x1ac)]['id'],'params':{'unitId':_0x23563c,'subUnitId':_0x384b55,'range':{'startRow':_0x3a509a,'endRow':_0x14728b[_0x80476a(0x335)]-0x1,'startColumn':0x0,'endColumn':_0x50a9dc-0x1}}}),_0x1e7757['push']({'id':U['RemoveRowMutation']['id'],'params':{'unitId':_0x23563c,'subUnitId':_0x384b55,'range':{'startRow':_0x3a509a,'endRow':_0x14728b[_0x80476a(0x335)]-0x1,'startColumn':0x0,'endColumn':_0x50a9dc-0x1}}})),_0x50a9dc<_0x14728b[_0x80476a(0x489)]&&(_0x5950e7[_0x80476a(0x3bd)]({'id':U['InsertColMutation']['id'],'params':{'unitId':_0x23563c,'subUnitId':_0x384b55,'range':{'startRow':0x0,'endRow':_0x3a509a-0x1,'startColumn':_0x50a9dc,'endColumn':_0x14728b['colCount']-0x1}}}),_0x1e7757['push']({'id':U[_0x80476a(0x199)]['id'],'params':{'unitId':_0x23563c,'subUnitId':_0x384b55,'range':{'startRow':0x0,'endRow':_0x3a509a-0x1,'startColumn':_0x50a9dc,'endColumn':_0x14728b['colCount']-0x1}}})),{'undos':_0x1e7757,'redos':_0x5950e7};}function ln(_0x1fa4dd){const _0x28e13a=_0xaf6d92;let _0x682594=0x0;for(let _0x2f973a=0x0;_0x2f973a<_0x1fa4dd[_0x28e13a(0x3a2)];_0x2f973a++){const _0x33cd77=_0x1fa4dd['charCodeAt'](_0x2f973a);_0x33cd77>=0x4e00&&_0x33cd77<=0x9fff||_0x33cd77>=0x3000&&_0x33cd77<=0x303f||_0x33cd77>=0xff00&&_0x33cd77<=0xffef?_0x682594+=0x2:_0x682594+=0x1;}return _0x682594;}function Bt(_0x21eb36,_0x1a5545,_0x5d28d3,_0x1c9c07){const _0x1e2fe8=_0xaf6d92;var _0x33c65e,_0x370614,_0x381361,_0x57c91c;const {rowCount:_0x1d967a,colCount:_0x34cc11,headerMap:_0x5eb5b6}=_0x21eb36,_0x52e651=0x64,_0x3470ec=Math[_0x1e2fe8(0x370)](_0x1d967a,_0x52e651),_0x390393=Math[_0x1e2fe8(0x370)](_0x34cc11,_0x52e651);let _0x4bf63f='',_0x254df1=0x0;for(let _0x4fcafb=0x0;_0x4fcafb<_0x3470ec;_0x4fcafb++)for(let _0x4767fb=0x0;_0x4767fb<_0x390393;_0x4767fb++){const _0x2436e5={...(_0x370614=(_0x33c65e=_0x21eb36[_0x1e2fe8(0x355)])==null?void 0x0:_0x33c65e[_0x4fcafb])==null?void 0x0:_0x370614[_0x4767fb]},_0x12ec16=(_0x381361=_0x5eb5b6[_0x4fcafb])==null?void 0x0:_0x381361[_0x1e2fe8(0x1c7)],_0x3d9f9c=_0x1c9c07[_0x12ec16];let _0x22231f=_0x21eb36[_0x1e2fe8(0x3f7)](_0x4fcafb,_0x4767fb);if(_0x2436e5){const _0xc8b36c=_0x5d28d3?_0x4767fb===0x0&&((_0x57c91c=_0x21eb36[_0x1e2fe8(0x211)](_0x4767fb+0x1))==null?void 0x0:_0x57c91c['isValue']):!0x1;_0x22231f=Me(_0x2436e5,_0xc8b36c,_0x3d9f9c,_0x1a5545);}if(_0x22231f!==void 0x0){const _0x4a0d7c=ln(String(_0x22231f));_0x254df1<_0x4a0d7c&&(_0x4bf63f=String(_0x22231f),_0x254df1=_0x4a0d7c);}}return _0x4bf63f;}function cn(_0x4acc79){const _0x10916c=_0xaf6d92,{rowCount:_0x14e1dc,colCount:_0x388fd3}=_0x4acc79;let _0x43513e='',_0x4734bc=0x0;for(let _0x335491=_0x14e1dc-0x1;_0x335491>0x0&&_0x335491>_0x14e1dc-0x3;_0x335491--)for(let _0x421be3=0x0;_0x421be3<_0x388fd3;_0x421be3++){const _0xf93e33=_0x4acc79[_0x10916c(0x3f7)](_0x335491,_0x421be3);if(_0xf93e33!==void 0x0){const _0x462921=String(_0xf93e33)[_0x10916c(0x3a2)];_0x4734bc<_0x462921&&(_0x43513e=String(_0xf93e33),_0x4734bc=_0x462921);}}return _0x43513e;}function dn(_0x3e4b5a){const _0x50cd4a=_0xaf6d92,{rowCount:_0x3a4e52,colCount:_0x14d1e4}=_0x3e4b5a;let _0x388344='',_0x1971e2=0x0;for(let _0xe186be=0x0;_0xe186be<_0x3a4e52;_0xe186be++)for(let _0x496012=0x0;_0x496012<_0x14d1e4;_0x496012++){const _0x20131f=_0x3e4b5a[_0x50cd4a(0x3f7)](_0xe186be,_0x496012);if(_0x20131f!==void 0x0){const _0x1e4149=String(_0x20131f)[_0x50cd4a(0x3a2)];_0x1971e2<_0x1e4149&&(_0x388344=String(_0x20131f),_0x1971e2=_0x1e4149);}}return _0x388344;}function un(_0x6d0a21,_0x7a8139){const _0x4e51d1=_0xaf6d92,{rowFields:_0x6218fb,columnFields:_0xbfb469,valueFields:_0x24b206,filterFields:_0x76b400,dimension:_0x352f65,measure:_0x1836e2}=_0x7a8139;for(const _0x381f48 of _0x6218fb){const _0x2c2237=_0x352f65[_0x381f48];_0x2c2237&&_0x6d0a21['getDataFieldByDataFieldId'](_0x2c2237[_0x4e51d1(0x455)])&&(_0x6d0a21['addFieldWithSourceId'](_0x2c2237[_0x4e51d1(0x455)],m['PivotTableFiledAreaEnum'][_0x4e51d1(0x368)],void 0x0,_0x381f48),_0x2c2237['displayName']&&_0x6d0a21[_0x4e51d1(0x1e4)](_0x2c2237['id'],_0x2c2237[_0x4e51d1(0x21b)]),_0x2c2237[_0x4e51d1(0x3d5)]&&_0x6d0a21['setSortInfo'](_0x2c2237['id'],_0x2c2237['sortInfo']),_0x2c2237['filterInfo']&&_0x6d0a21['setLabelFilterInfo'](_0x2c2237['id'],_0x2c2237[_0x4e51d1(0x1ab)]));}for(const _0x32a740 of _0xbfb469){const _0x27669b=_0x352f65[_0x32a740];_0x27669b&&_0x6d0a21['getDataFieldByDataFieldId'](_0x27669b[_0x4e51d1(0x455)])&&(_0x6d0a21[_0x4e51d1(0x3ee)](_0x27669b[_0x4e51d1(0x455)],m['PivotTableFiledAreaEnum'][_0x4e51d1(0x33a)],void 0x0,_0x32a740),_0x27669b['sortInfo']&&_0x6d0a21[_0x4e51d1(0x48c)](_0x27669b['id'],_0x27669b[_0x4e51d1(0x3d5)]),_0x27669b['filterInfo']&&_0x6d0a21[_0x4e51d1(0x27d)](_0x27669b['id'],_0x27669b['filterInfo']),_0x27669b[_0x4e51d1(0x21b)]&&_0x6d0a21[_0x4e51d1(0x1e4)](_0x27669b['id'],_0x27669b['displayName']));}for(const _0x134065 of _0x76b400){const _0x4ae5e3=_0x352f65[_0x134065];_0x4ae5e3&&_0x6d0a21['getDataFieldByDataFieldId'](_0x4ae5e3[_0x4e51d1(0x455)])&&(_0x6d0a21['addFieldWithSourceId'](_0x4ae5e3[_0x4e51d1(0x455)],m[_0x4e51d1(0x240)][_0x4e51d1(0x477)],void 0x0,_0x134065),_0x4ae5e3['sortInfo']&&_0x6d0a21[_0x4e51d1(0x48c)](_0x4ae5e3['id'],_0x4ae5e3[_0x4e51d1(0x3d5)]),_0x4ae5e3[_0x4e51d1(0x1ab)]&&_0x6d0a21[_0x4e51d1(0x27d)](_0x4ae5e3['id'],_0x4ae5e3[_0x4e51d1(0x1ab)]),_0x4ae5e3[_0x4e51d1(0x21b)]&&_0x6d0a21[_0x4e51d1(0x1e4)](_0x4ae5e3['id'],_0x4ae5e3[_0x4e51d1(0x21b)]));}for(const _0x415f6e of _0x24b206){const _0x232c7c=_0x1836e2[_0x415f6e];_0x232c7c&&_0x6d0a21[_0x4e51d1(0x227)](_0x232c7c[_0x4e51d1(0x455)])&&(_0x6d0a21[_0x4e51d1(0x3ee)](_0x232c7c[_0x4e51d1(0x455)],m[_0x4e51d1(0x240)]['Value'],void 0x0,_0x415f6e),_0x232c7c[_0x4e51d1(0x3e6)]!==void 0x0&&_0x6d0a21[_0x4e51d1(0x1ec)](_0x415f6e,_0x232c7c[_0x4e51d1(0x3e6)]),_0x232c7c['format']&&_0x6d0a21[_0x4e51d1(0x397)](_0x415f6e,_0x232c7c['format']),_0x232c7c['displayName']&&_0x6d0a21[_0x4e51d1(0x1e4)](_0x232c7c['id'],_0x232c7c[_0x4e51d1(0x21b)]));}const _0x2a7064=_0x7a8139[_0x4e51d1(0x393)];for(const {fieldId:_0x3fc164,filterInfo:_0x3f5f2f}of _0x2a7064)_0x6d0a21[_0x4e51d1(0x26f)](_0x3fc164,_0x3f5f2f);}function gn(_0x4328e9,_0x770556){const _0x48d3e2=_0xaf6d92,_0x10f827=[];_0x770556===m[_0x48d3e2(0x240)][_0x48d3e2(0x368)]&&_0x4328e9[_0x48d3e2(0x39c)](m[_0x48d3e2(0x240)][_0x48d3e2(0x368)],_0x4706a4=>{const _0x172c3b=_0x48d3e2;_0x10f827['push'](_0x4706a4[_0x172c3b(0x341)]());}),_0x770556===m[_0x48d3e2(0x240)][_0x48d3e2(0x33a)]&&_0x4328e9[_0x48d3e2(0x39c)](m[_0x48d3e2(0x240)]['Column'],_0x2472e6=>{const _0x32ebbc=_0x48d3e2;_0x10f827['push'](_0x2472e6[_0x32ebbc(0x341)]());}),_0x770556===m[_0x48d3e2(0x240)][_0x48d3e2(0x477)]&&_0x4328e9[_0x48d3e2(0x39c)](m['PivotTableFiledAreaEnum'][_0x48d3e2(0x477)],_0x1c3679=>{const _0x59fe77=_0x48d3e2;_0x10f827[_0x59fe77(0x3bd)](_0x1c3679[_0x59fe77(0x341)]());}),_0x770556===m[_0x48d3e2(0x240)][_0x48d3e2(0x22d)]&&_0x4328e9[_0x48d3e2(0x39c)](m[_0x48d3e2(0x240)][_0x48d3e2(0x22d)],_0x50ce6d=>{const _0x471295=_0x48d3e2;_0x10f827[_0x471295(0x3bd)](_0x50ce6d[_0x471295(0x341)]());}),_0x770556===void 0x0&&_0x4328e9['iterateField'](_0xcf09da=>{const _0x16c31e=_0x48d3e2;_0x10f827[_0x16c31e(0x3bd)](_0xcf09da[_0x16c31e(0x341)]());});const _0xaf4bb7=_0x10f827[_0x48d3e2(0x3a2)];for(let _0x2140fe=_0xaf4bb7-0x1;_0x2140fe>=0x0;_0x2140fe--)_0x4328e9[_0x48d3e2(0x23a)](_0x10f827[_0x2140fe]);const _0x378138=_0x4328e9[_0x48d3e2(0x3c7)]();for(const _0x5b892f in _0x378138)_0x4328e9[_0x48d3e2(0x216)](_0x5b892f);}function fn(_0x19de18,_0x531968){const _0x17d519=_0xaf6d92,_0x48fec7=new Date(m[_0x17d519(0x342)](_0x531968)),_0x592606=new Date(m[_0x17d519(0x342)](_0x19de18)),_0x15c640=_0x48fec7['getFullYear'](),_0x1043b8=_0x592606[_0x17d519(0x313)](),_0x1957fb=_0x48fec7[_0x17d519(0x2ed)](),_0x3242da=_0x592606['getMonth'](),_0x1f55bd=_0x48fec7[_0x17d519(0x3e0)](),_0x377226=_0x592606[_0x17d519(0x3e0)](),_0x151f31=_0x15c640===_0x1043b8,_0x5f463f=_0x151f31&&_0x1957fb===_0x3242da;return _0x151f31&&_0x5f463f&&!(_0x5f463f&&_0x1f55bd===_0x377226)?m[_0x17d519(0x270)][_0x17d519(0x2b4)]:_0x151f31&&!_0x5f463f?m[_0x17d519(0x270)][_0x17d519(0x197)]:m[_0x17d519(0x270)][_0x17d519(0x4a0)];}function Xt(_0x3c3b5d,_0x4ad843){const _0x131950=_0xaf6d92,_0x4e1419=_0x3c3b5d[_0x131950(0x447)](exports['SheetsPivotDataSourceModel'])[_0x131950(0x3ea)]();let _0x3776f8='';switch(_0x4ad843){case m[_0x131950(0x270)][_0x131950(0x2b4)]:_0x3776f8=_0x4e1419[_0x131950(0x4a7)];break;case m[_0x131950(0x270)][_0x131950(0x197)]:_0x3776f8=_0x4e1419['sheets-pivot.dateGroup.yearMonth'];break;case m[_0x131950(0x270)][_0x131950(0x4a0)]:_0x3776f8=_0x4e1419['sheets-pivot.dateGroup.year'];break;case m[_0x131950(0x270)][_0x131950(0x348)]:_0x3776f8=_0x4e1419[_0x131950(0x2e6)];break;case m[_0x131950(0x270)][_0x131950(0x3d3)]:_0x3776f8=_0x4e1419[_0x131950(0x3ab)];break;case m[_0x131950(0x270)][_0x131950(0x33c)]:_0x3776f8=_0x4e1419[_0x131950(0x207)];break;case m[_0x131950(0x270)][_0x131950(0x220)]:_0x3776f8=_0x4e1419[_0x131950(0x234)];break;case m['PivotDateGroupFieldDateTypeEnum'][_0x131950(0x43c)]:_0x3776f8=_0x4e1419[_0x131950(0x2b7)];break;case m[_0x131950(0x270)]['Minute']:_0x3776f8=_0x4e1419[_0x131950(0x258)];break;case m['PivotDateGroupFieldDateTypeEnum'][_0x131950(0x3a4)]:_0x3776f8=_0x4e1419[_0x131950(0x3ac)];break;case m[_0x131950(0x270)]['YearQuarter']:_0x3776f8=_0x4e1419[_0x131950(0x45a)];break;default:_0x3776f8='';break;}return _0x3776f8;}const Nt=_0xaf6d92(0x45d),Gt={};var vn=Object['getOwnPropertyDescriptor'],hn=(_0x52b284,_0x2fa58e,_0x477fe2,_0x277ac5)=>{const _0x348a5d=_0xaf6d92;for(var _0x592e7a=_0x277ac5>0x1?void 0x0:_0x277ac5?vn(_0x2fa58e,_0x477fe2):_0x2fa58e,_0x1f352b=_0x52b284[_0x348a5d(0x3a2)]-0x1,_0x2c2de0;_0x1f352b>=0x0;_0x1f352b--)(_0x2c2de0=_0x52b284[_0x1f352b])&&(_0x592e7a=_0x2c2de0(_0x592e7a)||_0x592e7a);return _0x592e7a;},Ae=(_0x3fb003,_0x1b620a)=>(_0x178f62,_0x993d5c)=>_0x1b620a(_0x178f62,_0x993d5c,_0x3fb003);exports[_0xaf6d92(0x36f)]=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x4db4ec,_0x4d477d,_0x438a7b,_0x1f82f6,_0x41447f){const _0xad6fb1=_0xaf6d92;super(),x(this,_0xad6fb1(0x2f9),new Map()),x(this,_0xad6fb1(0x3f9),new Map()),x(this,'_pivotTableRangeInfo',new Map()),x(this,_0xad6fb1(0x349),new Map()),x(this,_0xad6fb1(0x2ec),new ve[(_0xad6fb1(0x365))]()),x(this,'_pivotInitCompleted$',new ve['Subject']()),x(this,_0xad6fb1(0x40e),this[_0xad6fb1(0x3c5)][_0xad6fb1(0x1df)]()),x(this,_0xad6fb1(0x24a),new ve['Subject']()),x(this,_0xad6fb1(0x475),this[_0xad6fb1(0x24a)]['asObservable']()),x(this,'_textInfo',{}),x(this,_0xad6fb1(0x330),this[_0xad6fb1(0x2ec)][_0xad6fb1(0x1df)]()),(this['_injector']=_0x4db4ec,this[_0xad6fb1(0x451)]=_0x4d477d,this[_0xad6fb1(0x3d0)]=_0x438a7b,this['_resourceManagerService']=_0x1f82f6,this[_0xad6fb1(0x3b7)]=_0x41447f,this[_0xad6fb1(0x483)](),this[_0xad6fb1(0x2dd)]());const _0x4fdea7=this[_0xad6fb1(0x3b7)][_0xad6fb1(0x3a3)](Nt);(_0x4fdea7==null?void 0x0:_0x4fdea7['notExecuteFormula'])===!0x0&&this[_0xad6fb1(0x456)]();}[_0xaf6d92(0x2dd)](){const _0x563849=_0xaf6d92;this[_0x563849(0x3b3)](this[_0x563849(0x3d0)][_0x563849(0x250)](f[_0x563849(0x426)]['UNIVER_SHEET'])[_0x563849(0x2cb)](_0x168132=>{const _0x488c1b=_0x563849;this[_0x488c1b(0x2ac)](_0x168132['getUnitId']());}));}[_0xaf6d92(0x25f)](){const _0x1cb48b=_0xaf6d92;this['_pivotInitCompleted$'][_0x1cb48b(0x493)](!0x0);}['_initLocale'](){const _0xf8141a=_0xaf6d92,_0x5133e6=Dt(this['_injector'],Lt,'',{});this[_0xf8141a(0x200)]=_0x5133e6,this[_0xf8141a(0x451)]['executeCommand'](Rt['id'],{'textInfo':_0x5133e6},{'onlyLocal':!0x0});}[_0xaf6d92(0x3ea)](){return this['_textInfo'];}[_0xaf6d92(0x378)](_0x5c92fb,_0x4c75ae,_0x4c188a,_0x339606,_0x44761b){const _0x456387=_0xaf6d92;this[_0x456387(0x46d)](_0x5c92fb,_0x4c75ae,_0x4c188a,_0x339606),this[_0x456387(0x28e)](_0x5c92fb,_0x4c75ae,_0x4c188a,_0x44761b);}[_0xaf6d92(0x266)](_0x699454,_0x44d93d,_0x4e8f11){const _0x3d8ae3=_0xaf6d92;var _0x280117;const _0x101122=(_0x280117=this[_0x3d8ae3(0x2f9)][_0x3d8ae3(0x447)](_0x699454))==null?void 0x0:_0x280117[_0x3d8ae3(0x447)](_0x44d93d);if(_0x101122)return _0x101122[_0x3d8ae3(0x447)](_0x4e8f11);}[_0xaf6d92(0x2c0)](_0x3a899d,_0xe456c4){const _0x216599=_0xaf6d92,_0x4fac8b=this[_0x216599(0x2f9)][_0x216599(0x447)](_0x3a899d);if(_0x4fac8b){for(const [_0x210fb7,_0x336617]of _0x4fac8b[_0x216599(0x357)]())for(const [_0x56c514,_0x227ab3]of _0x336617[_0x216599(0x357)]())if(_0x56c514===_0xe456c4)return _0x227ab3[_0x216599(0x346)];}}[_0xaf6d92(0x1f4)](_0x47da60,_0x1ed17d,_0x4a6f66){const _0x4c26c3=_0xaf6d92,_0x1474fe=this[_0x4c26c3(0x266)](_0x47da60,_0x1ed17d,_0x4a6f66);return _0x1474fe==null?void 0x0:_0x1474fe[_0x4c26c3(0x346)];}[_0xaf6d92(0x3c2)](_0x4427c9,_0x5c3ee5){const _0x526b2f=_0xaf6d92;var _0x3df0da;return(_0x3df0da=this[_0x526b2f(0x2f9)]['get'](_0x4427c9))==null?void 0x0:_0x3df0da[_0x526b2f(0x447)](_0x5c3ee5);}[_0xaf6d92(0x34e)](_0x130f75,_0x1ef83b,_0x11b1e3,_0xe49b5d){const _0x3bd65d=_0xaf6d92,_0x2f2877=this[_0x3bd65d(0x46f)](_0x130f75,_0x1ef83b);_0xe49b5d?_0x2f2877['set'](_0x11b1e3,_0xe49b5d):_0x2f2877[_0x3bd65d(0x20e)](_0x11b1e3),this[_0x3bd65d(0x24a)]['next']({'unitId':_0x130f75,'subUnitId':_0x1ef83b,'pivotTableId':_0x11b1e3,'pivotTableConfig':_0xe49b5d});}[_0xaf6d92(0x332)](_0x1284d3,_0x46f9fa){const _0x31aaf9=_0xaf6d92;var _0x8a1f;return(_0x8a1f=this[_0x31aaf9(0x3f9)]['get'](_0x1284d3))==null?void 0x0:_0x8a1f[_0x31aaf9(0x2c8)][_0x46f9fa];}[_0xaf6d92(0x22a)](_0x108ad5,_0x40e1f7){const _0xd8897b=_0xaf6d92;this['_collectionConfigModel'][_0xd8897b(0x3d4)](_0x108ad5,_0x40e1f7),this[_0xd8897b(0x2ec)][_0xd8897b(0x493)](Math[_0xd8897b(0x3cb)]());}[_0xaf6d92(0x46f)](_0x1a1164,_0x4323c6){const _0x14a24a=_0xaf6d92;let _0x5f39c3=this[_0x14a24a(0x2f9)][_0x14a24a(0x447)](_0x1a1164);_0x5f39c3||(_0x5f39c3=new Map(),this[_0x14a24a(0x2f9)][_0x14a24a(0x3d4)](_0x1a1164,_0x5f39c3));let _0x5885df=_0x5f39c3[_0x14a24a(0x447)](_0x4323c6);return _0x5885df||(_0x5885df=new Map(),_0x5f39c3[_0x14a24a(0x3d4)](_0x4323c6,_0x5885df)),_0x5885df;}[_0xaf6d92(0x3a0)](_0x1959c6,_0x275c25){const _0x39b4b0=_0xaf6d92;let _0x58dd42=this['_pivotTableRangeInfo'][_0x39b4b0(0x447)](_0x1959c6);_0x58dd42||(_0x58dd42=new Map(),this[_0x39b4b0(0x263)][_0x39b4b0(0x3d4)](_0x1959c6,_0x58dd42));let _0x2fae9c=_0x58dd42[_0x39b4b0(0x447)](_0x275c25);return _0x2fae9c||(_0x2fae9c=new Map(),_0x58dd42[_0x39b4b0(0x3d4)](_0x275c25,_0x2fae9c)),_0x2fae9c;}[_0xaf6d92(0x440)](_0x2806a0,_0x1018fd){const _0x1aa9d6=_0xaf6d92;let _0x193e3d=this[_0x1aa9d6(0x349)][_0x1aa9d6(0x447)](_0x2806a0);_0x193e3d||(_0x193e3d=new Map(),this[_0x1aa9d6(0x349)][_0x1aa9d6(0x3d4)](_0x2806a0,_0x193e3d));let _0x55d62a=_0x193e3d['get'](_0x1018fd);return _0x55d62a||(_0x55d62a=new Map(),_0x193e3d[_0x1aa9d6(0x3d4)](_0x1018fd,_0x55d62a)),_0x55d62a;}[_0xaf6d92(0x28e)](_0x55a34a,_0x547a4b,_0x212300,_0x1f86c2){const _0x2d1492=_0xaf6d92;var _0x4af119;const _0x3ac20e=this[_0x2d1492(0x3a0)](_0x55a34a,_0x547a4b),_0x38b859=(_0x4af119=_0x3ac20e['get'](_0x212300))==null?void 0x0:_0x4af119['oldRangeInfo'];_0x3ac20e['set'](_0x212300,{'oldRangeInfo':_0x38b859,'rangeInfo':_0x1f86c2});}[_0xaf6d92(0x46d)](_0x8e1703,_0x10eed3,_0x14de43,_0x4266fa){const _0x5e0d63=_0xaf6d92;var _0x42f403;const _0x1c45cc=this[_0x5e0d63(0x440)](_0x8e1703,_0x10eed3),_0x8813cb=(_0x42f403=_0x1c45cc[_0x5e0d63(0x447)](_0x14de43))==null?void 0x0:_0x42f403[_0x5e0d63(0x2fc)];_0x1c45cc[_0x5e0d63(0x3d4)](_0x14de43,{'oldMatrix':_0x8813cb,'matrix':_0x4266fa});}[_0xaf6d92(0x26a)](_0x21479f,_0x67155f,_0x52471d){const _0x16ea13=_0xaf6d92;var _0x5aa914,_0x4cd897;return(_0x4cd897=(_0x5aa914=this[_0x16ea13(0x263)][_0x16ea13(0x447)](_0x21479f))==null?void 0x0:_0x5aa914['get'](_0x67155f))==null?void 0x0:_0x4cd897[_0x16ea13(0x447)](_0x52471d);}[_0xaf6d92(0x3c3)](_0x594fbb,_0x39e5c3,_0x13993f){const _0xae7cfe=_0xaf6d92;var _0x44b0e9,_0x50f1ac;return(_0x50f1ac=(_0x44b0e9=this[_0xae7cfe(0x349)][_0xae7cfe(0x447)](_0x594fbb))==null?void 0x0:_0x44b0e9['get'](_0x39e5c3))==null?void 0x0:_0x50f1ac[_0xae7cfe(0x447)](_0x13993f);}[_0xaf6d92(0x2ac)](_0x49d0ee){const _0x293afd=_0xaf6d92;this[_0x293afd(0x2f9)][_0x293afd(0x20e)](_0x49d0ee),this[_0x293afd(0x3f9)]['delete'](_0x49d0ee);}[_0xaf6d92(0x374)](_0x232ecb){const _0xacc487=_0xaf6d92,_0x46214e={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0xacc487(0x3f9)][_0xacc487(0x447)](_0x232ecb)&&(_0x46214e[_0xacc487(0x45b)][_0x232ecb]=this['_collectionConfigModel']['get'](_0x232ecb)),this[_0xacc487(0x2f9)][_0xacc487(0x447)](_0x232ecb)){_0x46214e[_0xacc487(0x450)][_0x232ecb]={};const _0x1cd469=this[_0xacc487(0x2f9)]['get'](_0x232ecb);_0x1cd469!=null&&_0x1cd469[_0xacc487(0x3c8)]&&[..._0x1cd469[_0xacc487(0x36b)]()][_0xacc487(0x25e)](_0x5e660a=>{const _0xacde8b=_0xacc487,_0x3c9850=_0x1cd469[_0xacde8b(0x447)](_0x5e660a);_0x3c9850!=null&&_0x3c9850[_0xacde8b(0x3c8)]&&(_0x46214e[_0xacde8b(0x450)][_0x232ecb][_0x5e660a]={},[..._0x3c9850[_0xacde8b(0x36b)]()][_0xacde8b(0x25e)](_0x5b5fa9=>{const _0x4c0db5=_0x3c9850['get'](_0x5b5fa9);_0x4c0db5&&(_0x46214e['pivotTableConfigs'][_0x232ecb][_0x5e660a][_0x5b5fa9]=_0x4c0db5);}));});}return _0x46214e;}[_0xaf6d92(0x456)](){const _0x31f7f2=_0xaf6d92;this[_0x31f7f2(0x3b3)](this['_resourceManagerService']['registerPluginResource']({'toJson':_0x396387=>JSON[_0x31f7f2(0x3be)](this[_0x31f7f2(0x374)](_0x396387)),'parseJson':_0x5671cc=>({}),'businesses':[f[_0x31f7f2(0x426)][_0x31f7f2(0x202)]],'pluginName':It,'onLoad':(_0x26f8ef,_0x496581)=>{},'onUnLoad':_0x369833=>{const _0x1885c5=_0x31f7f2;this[_0x1885c5(0x2ac)](_0x369833);}}));}},exports[_0xaf6d92(0x36f)]=hn([Ae(0x0,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x283)])),Ae(0x1,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x22e)])),Ae(0x2,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x48e)])),Ae(0x3,f[_0xaf6d92(0x320)](f['IResourceManagerService'])),Ae(0x4,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x37c)]))],exports[_0xaf6d92(0x36f)]);var pn=Object[_0xaf6d92(0x25a)],mn=(_0x45c1aa,_0x51af1a,_0x22bb33,_0x4d6122)=>{const _0x3027d6=_0xaf6d92;for(var _0x1d6aa0=_0x4d6122>0x1?void 0x0:_0x4d6122?pn(_0x51af1a,_0x22bb33):_0x51af1a,_0x22f2c3=_0x45c1aa[_0x3027d6(0x3a2)]-0x1,_0x1de150;_0x22f2c3>=0x0;_0x22f2c3--)(_0x1de150=_0x45c1aa[_0x22f2c3])&&(_0x1d6aa0=_0x1de150(_0x1d6aa0)||_0x1d6aa0);return _0x1d6aa0;},Be=(_0x2ca227,_0x35a495)=>(_0x16c76d,_0x1d6271)=>_0x35a495(_0x16c76d,_0x1d6271,_0x2ca227);exports['SheetsPivotTableAdaptorModel']=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x2a0c3e,_0x84b2a8,_0xcb7a08,_0xc2dd85,_0x5affcd){const _0x1ea225=_0xaf6d92;super(),x(this,_0x1ea225(0x3ae),new Map()),x(this,'_pivotRenderValueMatrixCache',new Map()),x(this,_0x1ea225(0x1d3),new ve['Subject']()),x(this,_0x1ea225(0x407),this[_0x1ea225(0x1d3)][_0x1ea225(0x1df)]()),x(this,_0x1ea225(0x419),new ve[(_0x1ea225(0x365))]()),x(this,_0x1ea225(0x428),this[_0x1ea225(0x419)][_0x1ea225(0x1df)]()),x(this,_0x1ea225(0x200)),(this['_localeService']=_0x2a0c3e,this['_injector']=_0x84b2a8,this[_0x1ea225(0x1e6)]=_0xcb7a08,this['_univerInstanceService']=_0xc2dd85,this[_0x1ea225(0x26e)]=_0x5affcd,this[_0x1ea225(0x483)](),this[_0x1ea225(0x2dd)]());}[_0xaf6d92(0x2dd)](){const _0xdc6f86=_0xaf6d92;this[_0xdc6f86(0x3b3)](this[_0xdc6f86(0x3d0)][_0xdc6f86(0x250)](f[_0xdc6f86(0x426)]['UNIVER_SHEET'])[_0xdc6f86(0x2cb)](_0x4657c1=>{const _0x5ebedd=_0xdc6f86;this['deleteUnitId'](_0x4657c1[_0x5ebedd(0x3bc)]());}));}[_0xaf6d92(0x483)](){const _0x12a983=_0xaf6d92;this[_0x12a983(0x200)]=Dt(this[_0x12a983(0x237)],Lt,'',{});}[_0xaf6d92(0x1a5)](_0xd39b48){const _0xc035d6=_0xaf6d92,{view:_0x7a85,unitId:_0xe89268,subUnitId:_0x3594e4,pivotTableId:_0x40fde8,type:_0x2a17e6}=_0xd39b48,_0x240958=this[_0xc035d6(0x1e6)][_0xc035d6(0x266)](_0xe89268,_0x3594e4,_0x40fde8);if(!_0x7a85||!_0x240958||_0x2a17e6===W[_0xc035d6(0x34d)])return;const {pageView:_0xc16c31,cornerView:_0x39d233,rowView:_0x56919d,colView:_0x1b06a5,dataView:_0x287488}=_0x7a85,_0x3193a9=_0x240958[_0xc035d6(0x346)],_0x2a73c4=_0x240958[_0xc035d6(0x291)],_0x195e65=this[_0xc035d6(0x23b)](_0xe89268,_0x3594e4),_0x105947=this[_0xc035d6(0x46b)](_0xe89268,_0x3594e4,_0x40fde8);if(_0x2a73c4)return this[_0xc035d6(0x2b6)](_0xd39b48,_0x195e65,_0x3193a9,_0x105947);{const _0x3e4457=ne(_0x3193a9,_0xc16c31,!0x0),_0x1e76ac=_0xc16c31['lastRow']>=0x0?_0xc16c31[_0xc035d6(0x219)]+0x1:0x0,_0x41090c=_0x39d233[_0xc035d6(0x2a4)](),_0x1a6226=_0x39d233[_0xc035d6(0x1cb)](),_0x2f825e=_0x3e4457[_0xc035d6(0x3a2)]>0x0?we:0x0,_0x57edd7=ne({'row':_0x3193a9[_0xc035d6(0x458)]+_0x1e76ac+_0x2f825e,'col':_0x3193a9['col']},_0x39d233,!0x1,!0x1),_0x30fc9c=ne({'row':_0x3193a9[_0xc035d6(0x458)]+_0x1e76ac+_0x2f825e+_0x41090c,'col':_0x3193a9['col']},_0x56919d,!0x1,!0x0),_0x3c7a32=ne({'row':_0x3193a9['row']+_0x1e76ac+_0x2f825e,'col':_0x3193a9[_0xc035d6(0x38d)]+_0x1a6226},_0x1b06a5,!0x1,!0x0),_0x2c3860=ne({'row':_0x3193a9['row']+_0x1e76ac+_0x2f825e+_0x41090c,'col':_0x3193a9[_0xc035d6(0x38d)]+_0x1a6226},_0x287488,!0x1,!0x1);_0x105947[_0xc035d6(0x2e4)]={'rowRanges':_0x30fc9c,'colRanges':_0x3c7a32,'cornerRanges':_0x57edd7,'dataRanges':_0x2c3860,'pageRanges':_0x3e4457};const _0x28d05d=Jo(this[_0xc035d6(0x237)],_0x7a85,_0x240958,this[_0xc035d6(0x200)]),{valueMatrix:_0x438f05,rowInfo:_0x1c6c8c,colInfo:_0x5b682d,cornerInfo:_0x2a26d8,rowHeaderMap:_0x283907,colHeaderMap:_0xa95a9f}=_0x28d05d;return _0x105947[_0xc035d6(0x4a4)]={'rowInfo':_0x1c6c8c,'colInfo':_0x5b682d,'cornerInfo':_0x2a26d8},_0x105947[_0xc035d6(0x28d)]={'rowHeaderMap':_0x283907,'colHeaderMap':_0xa95a9f},_0x438f05[_0xc035d6(0x25e)]((_0x241678,_0x4c20d4)=>{const _0x3d5fcd=_0xc035d6;Object[_0x3d5fcd(0x36b)](_0x4c20d4)[_0x3d5fcd(0x25e)](_0x42b789=>{const _0x2aaa63=_0x3d5fcd,_0x2048b9=+_0x42b789,_0x4d252c=_0x438f05[_0x2aaa63(0x3f7)](_0x241678,_0x2048b9);_0x195e65[_0x2aaa63(0x491)](_0x241678,_0x2048b9,_0x4d252c);});}),this[_0xc035d6(0x419)][_0xc035d6(0x493)]({'unitId':_0xe89268,'subUnitId':_0x3594e4,'valueMatrix':_0x195e65,'rangesCache':_0x105947[_0xc035d6(0x2e4)],'pivotTableId':_0x40fde8,'type':_0xd39b48[_0xc035d6(0x1b7)]}),this[_0xc035d6(0x1e6)][_0xc035d6(0x378)](_0xe89268,_0x3594e4,_0x40fde8,_0x195e65,_0x105947['rangesInfo']),this[_0xc035d6(0x26e)][_0xc035d6(0x1ad)](_0xe89268,_0x3594e4,bt,this[_0xc035d6(0x2b5)](_0x105947[_0xc035d6(0x2e4)],_0x40fde8)),{'rangeCache':_0x105947['rangesInfo'],'matrix':_0x195e65};}}[_0xaf6d92(0x2b6)](_0x28c213,_0x5eaec6,_0x257a74,_0x243e6d){const _0x259d32=_0xaf6d92,_0x4dfb4a=this['_localeService']['t'],{unitId:_0x4ac41c,subUnitId:_0x18622f,pivotTableId:_0x5ab763}=_0x28c213,_0x54f3dd={'filter':_0x4dfb4a(_0x259d32(0x4ae)),'row':_0x4dfb4a('sheets-pivot.emptyPivot.row'),'column':_0x4dfb4a('sheets-pivot.emptyPivot.column'),'values':_0x4dfb4a(_0x259d32(0x29e))},{matrixCache:_0x3b0cb9,rangesCache:_0x1d729d}=Ht(_0x54f3dd,_0x257a74);return _0x3b0cb9[_0x259d32(0x21d)]((_0x191e75,_0x5990ae,_0x334f7b)=>{const _0x58b24d=_0x259d32;_0x5eaec6[_0x58b24d(0x491)](_0x191e75,_0x5990ae,_0x334f7b);}),_0x243e6d['rangesInfo']=_0x1d729d,this[_0x259d32(0x419)]['next']({'unitId':_0x4ac41c,'subUnitId':_0x18622f,'valueMatrix':_0x5eaec6,'rangesCache':_0x1d729d,'pivotTableId':_0x5ab763,'type':_0x28c213['type'],'isEmpty':!0x0}),this['_sheetsPivotTableConfigModel']['updateViewInfo'](_0x4ac41c,_0x18622f,_0x5ab763,_0x5eaec6,_0x1d729d),this[_0x259d32(0x26e)][_0x259d32(0x1ad)](_0x4ac41c,_0x18622f,bt,this[_0x259d32(0x2b5)](_0x1d729d,_0x5ab763)),{'rangeCache':_0x243e6d[_0x259d32(0x2e4)],'matrix':_0x5eaec6};}[_0xaf6d92(0x2b5)](_0x19ade0,_0x1bdbf7){const _0x270f3c=_0xaf6d92,_0x11957f=[],_0x4c37ea=nt(_0x19ade0);for(const _0x3a0b82 of _0x4c37ea)_0x11957f[_0x270f3c(0x3bd)]({'groupId':_0x1bdbf7,'range':_0x3a0b82});return _0x11957f;}[_0xaf6d92(0x3dc)](_0x16aef2){const _0x4d2f62=_0xaf6d92;var _0x3b9ccc,_0x377eb9,_0x2b6c6f,_0x2a524d;const {pivotTableId:_0x11a3fd,unitId:_0x256284,subUnitId:_0x6bddef}=_0x16aef2;if(!_0x11a3fd||!_0x256284||!_0x6bddef)return;const _0x5aeb75=this[_0x4d2f62(0x23b)](_0x256284,_0x6bddef),_0x545dbb=(_0x377eb9=(_0x3b9ccc=this[_0x4d2f62(0x3ae)]['get'](_0x256284))==null?void 0x0:_0x3b9ccc[_0x4d2f62(0x447)](_0x6bddef))==null?void 0x0:_0x377eb9[_0x4d2f62(0x447)](_0x11a3fd);if(_0x545dbb!=null&&_0x545dbb[_0x4d2f62(0x2e4)]){for(const _0xd93f43 of Object[_0x4d2f62(0x36b)](_0x545dbb[_0x4d2f62(0x2e4)]))_0x545dbb['rangesInfo'][_0xd93f43][_0x4d2f62(0x25e)](_0x4176a5=>{const _0x28ff85=_0x4d2f62;for(let _0x2a5b86=_0x4176a5[_0x28ff85(0x3df)];_0x2a5b86<=_0x4176a5[_0x28ff85(0x314)];_0x2a5b86++)for(let _0xc0cb93=_0x4176a5[_0x28ff85(0x3b2)];_0xc0cb93<=_0x4176a5[_0x28ff85(0x4a2)];_0xc0cb93++)_0x5aeb75[_0x28ff85(0x1e8)](_0x2a5b86,_0xc0cb93);});}_0x545dbb&&((_0x2a524d=(_0x2b6c6f=this[_0x4d2f62(0x3ae)][_0x4d2f62(0x447)](_0x256284))==null?void 0x0:_0x2b6c6f[_0x4d2f62(0x447)](_0x6bddef))==null||_0x2a524d[_0x4d2f62(0x20e)](_0x11a3fd)),this[_0x4d2f62(0x419)][_0x4d2f62(0x493)]({'unitId':_0x256284,'subUnitId':_0x6bddef,'valueMatrix':_0x5aeb75,'pivotTableId':_0x11a3fd,'rangesCache':void 0x0,'type':_0x16aef2[_0x4d2f62(0x1b7)]}),this[_0x4d2f62(0x26e)]['clearExclusiveRangesByGroupId'](_0x256284,_0x6bddef,bt,_0x11a3fd);}[_0xaf6d92(0x46b)](_0x5468c2,_0x33a4d1,_0x236589){const _0x2aa356=_0xaf6d92;var _0x5b56ce,_0x191be6,_0x1fee74,_0x50aff0,_0x11ffbd,_0x435d4a;return this[_0x2aa356(0x3ae)][_0x2aa356(0x496)](_0x5468c2)||this[_0x2aa356(0x3ae)][_0x2aa356(0x3d4)](_0x5468c2,new Map()),(_0x5b56ce=this[_0x2aa356(0x3ae)]['get'](_0x5468c2))!=null&&_0x5b56ce[_0x2aa356(0x496)](_0x33a4d1)||(_0x191be6=this['_pivotRenderInfoCache'][_0x2aa356(0x447)](_0x5468c2))==null||_0x191be6['set'](_0x33a4d1,new Map()),(_0x50aff0=(_0x1fee74=this['_pivotRenderInfoCache'][_0x2aa356(0x447)](_0x5468c2))==null?void 0x0:_0x1fee74[_0x2aa356(0x447)](_0x33a4d1))!=null&&_0x50aff0[_0x2aa356(0x496)](_0x236589)||(_0x435d4a=(_0x11ffbd=this[_0x2aa356(0x3ae)][_0x2aa356(0x447)](_0x5468c2))==null?void 0x0:_0x11ffbd[_0x2aa356(0x447)](_0x33a4d1))==null||_0x435d4a[_0x2aa356(0x3d4)](_0x236589,{}),this['_pivotRenderInfoCache'][_0x2aa356(0x447)](_0x5468c2)['get'](_0x33a4d1)[_0x2aa356(0x447)](_0x236589);}['_ensurePivotItemRenderValueMatrixCache'](_0x559672,_0x4dc73c){const _0x219490=_0xaf6d92;var _0x57c7a6,_0x25d22f;return this['_pivotRenderValueMatrixCache'][_0x219490(0x496)](_0x559672)||this['_pivotRenderValueMatrixCache'][_0x219490(0x3d4)](_0x559672,new Map()),(_0x57c7a6=this['_pivotRenderValueMatrixCache']['get'](_0x559672))!=null&&_0x57c7a6['has'](_0x4dc73c)||(_0x25d22f=this[_0x219490(0x390)]['get'](_0x559672))==null||_0x25d22f[_0x219490(0x3d4)](_0x4dc73c,new f[(_0x219490(0x2eb))]()),this[_0x219490(0x390)]['get'](_0x559672)['get'](_0x4dc73c);}[_0xaf6d92(0x31a)](_0x3addd4,_0x3eef57,_0x36c720,_0x5a463b){const _0x59b106=_0xaf6d92;var _0xff9bac,_0x4dfc02;const _0x1b3d8b=(_0x4dfc02=(_0xff9bac=this[_0x59b106(0x390)][_0x59b106(0x447)](_0x3addd4))==null?void 0x0:_0xff9bac['get'](_0x3eef57))==null?void 0x0:_0x4dfc02[_0x59b106(0x3f7)](_0x36c720,_0x5a463b);if(_0x1b3d8b!=null)return _0x1b3d8b;}[_0xaf6d92(0x25c)](_0x364b9a,_0x2e8112,_0x13fff9,_0x426bf5){const _0x117428=_0xaf6d92;var _0x3ccef1;const _0xc3f52f=f['cellToRange'](_0x13fff9,_0x426bf5),_0x7d0697=(_0x3ccef1=this[_0x117428(0x3ae)]['get'](_0x364b9a))==null?void 0x0:_0x3ccef1['get'](_0x2e8112);return _0x7d0697?Array['from'](_0x7d0697[_0x117428(0x36b)]())['find'](_0x30ccd2=>{const _0x4d25c5=_0x117428,_0x7d5076=_0x7d0697['get'](_0x30ccd2),_0x223f70=_0x7d5076==null?void 0x0:_0x7d5076[_0x4d25c5(0x2e4)];return _0x223f70?Object['keys'](_0x223f70)[_0x4d25c5(0x44a)](_0x5d5332=>_0x223f70[_0x5d5332][_0x4d25c5(0x44a)](_0x58a355=>f[_0x4d25c5(0x43a)][_0x4d25c5(0x1a4)](_0x58a355,_0xc3f52f))):!0x1;}):void 0x0;}[_0xaf6d92(0x203)](_0x44d77a,_0x36218a,_0x31ec33){const _0x281f7c=_0xaf6d92;var _0x4346f4;const _0x4992cb=(_0x4346f4=this[_0x281f7c(0x3ae)]['get'](_0x44d77a))==null?void 0x0:_0x4346f4[_0x281f7c(0x447)](_0x36218a),_0x1541ec=[];return _0x4992cb&&Array[_0x281f7c(0x439)](_0x4992cb[_0x281f7c(0x36b)]())['forEach'](_0x20f412=>{const _0x4747d5=_0x281f7c,_0x299775=_0x4992cb[_0x4747d5(0x447)](_0x20f412),_0x2de3ab=_0x299775==null?void 0x0:_0x299775[_0x4747d5(0x2e4)];if(_0x2de3ab)for(const _0x4b8baa of Object[_0x4747d5(0x46c)](_0x2de3ab)){let _0x4e6572=!0x1;for(const _0x4edbdf of _0x4b8baa)if(f[_0x4747d5(0x43a)][_0x4747d5(0x1b4)](_0x4edbdf,_0x31ec33)){_0x1541ec[_0x4747d5(0x3bd)](_0x20f412),_0x4e6572=!0x0;break;}if(_0x4e6572)break;}}),_0x1541ec;}[_0xaf6d92(0x404)](_0x25f513,_0x213bd8){const _0x4d9647=_0xaf6d92;var _0x545f56,_0x3be490;return(_0x3be490=(_0x545f56=this[_0x4d9647(0x390)][_0x4d9647(0x447)](_0x25f513))==null?void 0x0:_0x545f56[_0x4d9647(0x447)](_0x213bd8))!=null?_0x3be490:new f['ObjectMatrix']();}['getSubUnitPivotRenderCache'](_0x2c6028,_0x7f742a){const _0x4510f4=_0xaf6d92;var _0x46d967;return(_0x46d967=this[_0x4510f4(0x3ae)][_0x4510f4(0x447)](_0x2c6028))==null?void 0x0:_0x46d967['get'](_0x7f742a);}[_0xaf6d92(0x416)](_0x7bdf1d,_0x3454fb,_0x1dbf1d){const _0x1e22d0=_0xaf6d92;var _0x20ae91,_0x172d52;return(_0x172d52=(_0x20ae91=this[_0x1e22d0(0x3ae)]['get'](_0x7bdf1d))==null?void 0x0:_0x20ae91[_0x1e22d0(0x447)](_0x3454fb))==null?void 0x0:_0x172d52[_0x1e22d0(0x447)](_0x1dbf1d);}[_0xaf6d92(0x2ac)](_0x1cfc99){const _0x5be694=_0xaf6d92;this[_0x5be694(0x3ae)][_0x5be694(0x20e)](_0x1cfc99),this[_0x5be694(0x390)][_0x5be694(0x20e)](_0x1cfc99);}[_0xaf6d92(0x2e5)](_0x5475ef,_0x3731d1){const _0x5e73d4=_0xaf6d92;this[_0x5e73d4(0x1d3)][_0x5e73d4(0x493)]({'unitId':_0x5475ef,'subUnitId':_0x3731d1});}},exports[_0xaf6d92(0x344)]=mn([Be(0x0,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x2da)])),Be(0x1,f['Inject'](f[_0xaf6d92(0x283)])),Be(0x2,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x36f)])),Be(0x3,f[_0xaf6d92(0x320)](f['IUniverInstanceService'])),Be(0x4,f[_0xaf6d92(0x320)](U[_0xaf6d92(0x321)]))],exports[_0xaf6d92(0x344)]);var Cn=Object[_0xaf6d92(0x25a)],In=(_0x1ef4c4,_0x46441f,_0xc8b3a2,_0xd4c28a)=>{const _0x110948=_0xaf6d92;for(var _0x586890=_0xd4c28a>0x1?void 0x0:_0xd4c28a?Cn(_0x46441f,_0xc8b3a2):_0x46441f,_0x2b9813=_0x1ef4c4[_0x110948(0x3a2)]-0x1,_0x237c07;_0x2b9813>=0x0;_0x2b9813--)(_0x237c07=_0x1ef4c4[_0x2b9813])&&(_0x586890=_0x237c07(_0x586890)||_0x586890);return _0x586890;},Wt=(_0x2b10f1,_0x30ec2c)=>(_0x524f34,_0x1d0fe2)=>_0x30ec2c(_0x524f34,_0x1d0fe2,_0x2b10f1);exports[_0xaf6d92(0x20f)]=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x4a9cf4,_0x3c05ee){const _0x105861=_0xaf6d92;super(),x(this,_0x105861(0x34a),new f[(_0x105861(0x494))]({'PIVOT_PERFORM_CHECK':re})),x(this,_0x105861(0x4ab),new f[(_0x105861(0x401))]({'PIVOT_MUTATION_GENERATE':Jt})),(this[_0x105861(0x289)]=_0x4a9cf4,this[_0x105861(0x295)]=_0x3c05ee,this[_0x105861(0x317)]());}['_init'](){this['_initViewModelBySheetInterceptor']();}[_0xaf6d92(0x1b0)](_0x50f886){const _0x3eee9f=_0xaf6d92;return this['asyncInterceptor'][_0x3eee9f(0x24b)](re)(!0x1,_0x50f886);}[_0xaf6d92(0x38e)](){const _0x492bc6=_0xaf6d92;this['disposeWithMe'](this[_0x492bc6(0x289)][_0x492bc6(0x255)](U[_0x492bc6(0x2fb)][_0x492bc6(0x299)],{'priority':0xc8,'effect':f[_0x492bc6(0x47e)][_0x492bc6(0x22d)]|f[_0x492bc6(0x47e)][_0x492bc6(0x2f1)],'handler':(_0x223d0a,_0x15de64,_0x2b7d79)=>{const _0x4bed1f=_0x492bc6,{row:_0x539079,col:_0x39dc20,unitId:_0x2d2e08,subUnitId:_0x274584,workbook:_0xa99665}=_0x15de64,_0x342018=this['_sheetsPivotTableAdaptorModel']['getPivotTableCellData'](_0x2d2e08,_0x274584,_0x539079,_0x39dc20);if(!_0x342018)return _0x2b7d79(_0x223d0a);const _0x2596cc={..._0x223d0a};(_0x342018['v']||_0x342018['v']===0x0)&&(_0x2596cc['v']=_0x342018['v']),_0x342018['t']&&(_0x2596cc['t']=_0x342018['t']);const _0x39bb24=(typeof(_0x223d0a==null?void 0x0:_0x223d0a['s'])==_0x4bed1f(0x24e)?_0xa99665[_0x4bed1f(0x44c)]()[_0x4bed1f(0x447)](_0x223d0a==null?void 0x0:_0x223d0a['s']):_0x223d0a==null?void 0x0:_0x223d0a['s'])||{},_0x15720d=_0xa99665['getStyles']()[_0x4bed1f(0x447)](_0x342018['s']),_0x4f9404={..._0x15720d,..._0x39bb24};_0x15720d!=null&&_0x15720d['n']&&(_0x4f9404['n']=_0x15720d['n']);const _0x1a02f9=_0xa99665[_0x4bed1f(0x44c)]()[_0x4bed1f(0x491)](_0x4f9404);return _0x2596cc['s']=_0x1a02f9,(_0x342018[_0x4bed1f(0x236)]===m[_0x4bed1f(0x44f)][_0x4bed1f(0x26d)]||_0x342018[_0x4bed1f(0x236)]===m[_0x4bed1f(0x44f)][_0x4bed1f(0x2e3)])&&(_0x2596cc['fontRenderExtension']={},_0x2596cc[_0x4bed1f(0x2e0)][_0x4bed1f(0x3e1)]=Ro),_0x2b7d79(_0x2596cc);}}));}},exports[_0xaf6d92(0x20f)]=In([Wt(0x0,f[_0xaf6d92(0x320)](U[_0xaf6d92(0x40f)])),Wt(0x1,f[_0xaf6d92(0x320)](exports['SheetsPivotTableAdaptorModel']))],exports['SheetsPivotTableService']);const Zt={'id':_0xaf6d92(0x1d1),'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'handler':(_0x34d31d,_0x10b215)=>{const _0x27a868=_0xaf6d92;if(!_0x10b215)return!0x1;if(!!_0x34d31d[_0x27a868(0x447)](f['IConfigService'])[_0x27a868(0x3a3)](Q))return!0x0;const {pivotTableId:_0x1c7b9b,fieldJSON:_0x505719,unitId:_0x1c563f,subUnitId:_0x10277d}=_0x10b215;let _0x458ddf;const {dataFieldType:_0x2bd5d8,id:_0x4c9342,name:_0x483bdb,hexCode:_0x5a5653,originalFieldId:_0x510546}=_0x505719;if(_0x2bd5d8===m[_0x27a868(0x2d6)][_0x27a868(0x33f)]&&(_0x458ddf=new m['DateGroupField'](_0x4c9342,_0x483bdb,_0x5a5653,_0x510546)),!_0x458ddf)return!0x1;const _0x1d6051=_0x34d31d[_0x27a868(0x447)](exports[_0x27a868(0x384)]),_0x5111da=_0x1d6051[_0x27a868(0x1f9)](_0x1c563f),_0x4ccabf=_0x5111da[_0x27a868(0x332)](_0x1c7b9b);_0x5111da['addDataFieldWithoutUnitInfo'](_0x458ddf),_0x4ccabf['addField'](_0x458ddf['getId'](),_0x458ddf[_0x27a868(0x238)]());const _0x50d924=_0x4ccabf[_0x27a868(0x19b)](_0x458ddf[_0x27a868(0x30a)]());_0x50d924&&_0x458ddf[_0x27a868(0x231)](_0x50d924);const _0x1d472f=_0x1d6051[_0x27a868(0x266)](_0x1c563f,_0x10277d,_0x1c7b9b);return _0x1d6051[_0x27a868(0x443)]({'unitId':_0x1c563f,'subUnitId':_0x10277d,'token':_0x1c7b9b,'type':W[_0x27a868(0x29a)],'pivotConfig':_0x1d472f}),!0x0;}},eo={'id':_0xaf6d92(0x2aa),'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'handler':(_0x80f353,_0x4ea279)=>{const _0x1e0fbf=_0xaf6d92;if(!_0x4ea279)return!0x1;if(!!_0x80f353['get'](f[_0x1e0fbf(0x37c)])['getConfig'](Q))return!0x0;const {pivotTableId:_0x215646,dataFieldId:_0x524fea,unitId:_0x29b8d0,subUnitId:_0x29733e}=_0x4ea279,_0x786249=_0x80f353[_0x1e0fbf(0x447)](exports['SheetsPivotDataSourceModel']),_0x595303=_0x786249[_0x1e0fbf(0x1f9)](_0x29b8d0);_0x595303[_0x1e0fbf(0x332)](_0x215646)[_0x1e0fbf(0x2a0)](_0x524fea);let _0x1b6f3f=!0x0;for(const _0x4af23c in _0x595303[_0x1e0fbf(0x2c8)])if(_0x595303['collections'][_0x4af23c][_0x1e0fbf(0x377)]()[_0x1e0fbf(0x241)](_0x524fea)){_0x1b6f3f=!0x1;break;}_0x1b6f3f&&_0x595303[_0x1e0fbf(0x2f3)](_0x524fea);const _0x191f03=_0x786249[_0x1e0fbf(0x266)](_0x29b8d0,_0x29733e,_0x215646);return _0x786249['addDirtyPivotTable']({'unitId':_0x29b8d0,'subUnitId':_0x29733e,'token':_0x215646,'type':W[_0x1e0fbf(0x29a)],'pivotConfig':_0x191f03}),!0x0;}};function Ke(_0x400ed8,_0xd63ce0){const _0x30e798=_0xaf6d92;switch(_0xd63ce0){case m[_0x30e798(0x240)][_0x30e798(0x22d)]:return _0x400ed8[_0x30e798(0x3af)];case m[_0x30e798(0x240)][_0x30e798(0x477)]:return _0x400ed8[_0x30e798(0x1f5)];case m[_0x30e798(0x240)][_0x30e798(0x368)]:return _0x400ed8[_0x30e798(0x3d6)];case m[_0x30e798(0x240)][_0x30e798(0x33a)]:return _0x400ed8['columnFields'];default:return[];}}function be(_0x4b1a6a,_0x2b6c93){const _0x2443a8=_0xaf6d92;return _0x4b1a6a[_0x2443a8(0x385)][_0x2b6c93]||_0x4b1a6a[_0x2443a8(0x2b9)][_0x2b6c93];}function Sn(_0x2341ce,_0x2db38f){const _0x5649d1=_0xaf6d92,{area:_0x5c4bba,fieldJson:_0x63c978,index:_0xffa47f}=_0x2db38f;_0x5c4bba===m[_0x5649d1(0x240)]['Value']?_0x2341ce[_0x5649d1(0x385)][_0x63c978['id']]=_0x63c978:_0x2341ce[_0x5649d1(0x2b9)][_0x63c978['id']]=_0x63c978,Ke(_0x2341ce,_0x5c4bba)[_0x5649d1(0x35e)](_0xffa47f,0x0,_0x63c978['id']);}function Tn(_0x46a732,_0x1b3294){const _0x22abee=_0xaf6d92,{area:_0x48902a,fieldId:_0x271d9f,index:_0x31fbec}=_0x1b3294;_0x48902a===m['PivotTableFiledAreaEnum'][_0x22abee(0x22d)]?delete _0x46a732[_0x22abee(0x385)][_0x271d9f]:delete _0x46a732[_0x22abee(0x2b9)][_0x271d9f],Ke(_0x46a732,_0x48902a)['splice'](_0x31fbec,0x1);}function bn(_0x55907e,_0x181732){const _0x5014f1=_0xaf6d92,{fieldId:_0x1c7803,name:_0x41df37}=_0x181732,_0x483b9c=be(_0x55907e,_0x1c7803);_0x483b9c&&(_0x483b9c[_0x5014f1(0x21b)]=_0x41df37);}function Pn(_0x4d35e4,_0xf5794a){const _0x384a81=_0xaf6d92,{fieldId:_0x1178cd,collapse:_0x28fede,item:_0xdab157}=_0xf5794a;_0xdab157!==void 0x0?(_0x4d35e4[_0x384a81(0x1ed)][_0x1178cd]=_0x4d35e4[_0x384a81(0x1ed)][_0x1178cd]||{},_0x4d35e4[_0x384a81(0x1ed)][_0x1178cd][_0xdab157]=_0x28fede):_0x4d35e4[_0x384a81(0x1ed)][_0x1178cd]=_0x28fede;}function yn(_0x4c7259,_0x587a06){const _0x1baec1=_0xaf6d92,{fieldId:_0x4e1a33,format:_0x153914}=_0x587a06,_0x6b76af=be(_0x4c7259,_0x4e1a33);_0x6b76af&&(_0x6b76af[_0x1baec1(0x434)]=_0x153914);}function Mn(_0x383ea2,_0x4b8770){const _0x372f01=_0xaf6d92,{fieldId:_0x2e8cdc,filterInfo:_0x50dd7e}=_0x4b8770,_0x502399=be(_0x383ea2,_0x2e8cdc);_0x502399&&(_0x502399[_0x372f01(0x1ab)]=_0x50dd7e);}function Fn(_0x77e268,_0x40b984){const _0x2ad55f=_0xaf6d92,{fieldId:_0x5245da,filterInfo:_0x1235d4}=_0x40b984,_0x4ef037=_0x77e268[_0x2ad55f(0x393)][_0x2ad55f(0x38a)](_0x3e189f=>_0x3e189f[_0x2ad55f(0x1c9)]!==_0x5245da);_0x1235d4&&_0x4ef037[_0x2ad55f(0x3bd)]({'fieldId':_0x5245da,'filterInfo':_0x1235d4}),_0x77e268[_0x2ad55f(0x393)]=_0x4ef037;}function wn(_0x2b4732,_0x20fd93){const {fieldId:_0x3b90a3,subtotalType:_0x467f44}=_0x20fd93,_0x3b5d63=be(_0x2b4732,_0x3b90a3);_0x3b5d63&&(_0x3b5d63['subtotal']=_0x467f44);}function _n(_0x517d47,_0x2b659d){const _0x47dc92=_0xaf6d92,{fieldId:_0x6d382b,oldArea:_0x393047,area:_0x201c3f,oldIndex:_0x43810b,index:_0x589904}=_0x2b659d,_0x3a785b=_0x393047!==m[_0x47dc92(0x240)]['Value']&&_0x201c3f===m['PivotTableFiledAreaEnum'][_0x47dc92(0x22d)],_0x3c14b1=_0x393047===m[_0x47dc92(0x240)][_0x47dc92(0x22d)]&&_0x201c3f!==m[_0x47dc92(0x240)][_0x47dc92(0x22d)];if(_0x3a785b||_0x3c14b1){const _0x16f7c9=be(_0x517d47,_0x6d382b);_0x16f7c9&&(_0x3a785b?(delete _0x517d47[_0x47dc92(0x2b9)][_0x6d382b],_0x517d47[_0x47dc92(0x385)][_0x6d382b]=_0x16f7c9):(delete _0x517d47[_0x47dc92(0x385)][_0x6d382b],_0x517d47['dimension'][_0x6d382b]=_0x16f7c9));}const _0x242f3a=Ke(_0x517d47,_0x393047),_0x5f02da=Ke(_0x517d47,_0x201c3f);_0x242f3a['splice'](_0x43810b,0x1),_0x5f02da[_0x47dc92(0x35e)](_0x589904,0x0,_0x6d382b);}function Rn(_0x413274,_0x4fded7){const _0x30d532=_0xaf6d92,{valuePosition:_0x4b6721,index:_0x1e2ede}=_0x4fded7;_0x413274[_0x30d532(0x48f)]=_0x4b6721,_0x413274[_0x30d532(0x3fa)]=_0x1e2ede;}function Dn(_0x48d83f,_0x127a7d){const _0xa4e1ac=_0xaf6d92,{tableFieldId:_0x59d4cf,sourceName:_0x1474a1,dataFieldId:_0x16d852}=_0x127a7d,_0x585438=be(_0x48d83f,_0x59d4cf);_0x585438&&(_0x585438[_0xa4e1ac(0x448)]=_0x1474a1,_0x585438['dataFieldId']=_0x16d852);}function En(_0x311990,_0x1b9fe3){const {fieldId:_0x904bf,sortInfo:_0x395c21}=_0x1b9fe3,_0x4d7fa5=be(_0x311990,_0x904bf);_0x4d7fa5&&(_0x4d7fa5['sortInfo']=_0x395c21);}function Vn(_0x315b60,_0x33359a){const _0x1894aa=_0xaf6d92,{options:_0x179fd1}=_0x33359a;_0x315b60[_0x1894aa(0x2bf)]={..._0x315b60[_0x1894aa(0x2bf)],..._0x179fd1};}const it={'type':f['CommandType']['MUTATION'],'id':'sheet.mutation.add-pivot-field','handler'(_0x5ebbdd,_0xc90984){const _0x42a7db=_0xaf6d92;if(!_0xc90984)return!0x1;if(!!_0x5ebbdd[_0x42a7db(0x447)](f['IConfigService'])['getConfig'](Q))return!0x0;const _0xe76eb=_0x5ebbdd[_0x42a7db(0x447)](exports[_0x42a7db(0x384)]),{pivotTableId:_0x18d2f3,fieldJson:_0x127559,area:_0x59b1be,index:_0x51827a,unitId:_0x4822f0,subUnitId:_0x2d937f}=_0xc90984,_0x5168f1=_0xe76eb[_0x42a7db(0x480)](_0x18d2f3);if(!_0x5168f1)return!0x1;let _0x5c4a11;_0x59b1be===m[_0x42a7db(0x240)][_0x42a7db(0x22d)]?_0x5c4a11=m[_0x42a7db(0x333)](_0x127559):_0x5c4a11=m[_0x42a7db(0x28f)](_0x127559),_0x5168f1[_0x42a7db(0x408)](_0x5c4a11,_0x59b1be,_0x51827a);const _0x5332fa=_0xe76eb[_0x42a7db(0x29b)](_0x4822f0,_0x2d937f,_0x18d2f3);Sn(_0x5332fa,_0xc90984);const _0x1b8e23=_0xe76eb[_0x42a7db(0x266)](_0x4822f0,_0x2d937f,_0x18d2f3);return _0xe76eb[_0x42a7db(0x443)]({'unitId':_0x4822f0,'subUnitId':_0x2d937f,'token':_0x18d2f3,'type':W[_0x42a7db(0x29a)],'pivotConfig':_0x1b8e23}),!0x0;}},at={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':'sheet.mutation.remove-pivot-field','handler'(_0x496802,_0x4c0fdf){const _0x4a591f=_0xaf6d92;if(!_0x4c0fdf)return!0x1;if(!!_0x496802['get'](f[_0x4a591f(0x37c)])[_0x4a591f(0x3a3)](Q))return!0x0;const _0x5a7c7b=_0x496802[_0x4a591f(0x447)](exports['SheetsPivotDataSourceModel']),{pivotTableId:_0x3c751a,fieldId:_0x32e264,unitId:_0x121438,subUnitId:_0x11f0a1}=_0x4c0fdf,_0x19afd6=_0x5a7c7b['getPivotTableInstance'](_0x3c751a);if(!_0x19afd6)return!0x1;_0x19afd6[_0x4a591f(0x23a)](_0x32e264);const _0x370cc3=_0x5a7c7b['getPivotTableModelConfig'](_0x121438,_0x11f0a1,_0x3c751a);Tn(_0x370cc3,_0x4c0fdf);const _0x37bfc7=_0x5a7c7b[_0x4a591f(0x266)](_0x121438,_0x11f0a1,_0x3c751a);return _0x5a7c7b[_0x4a591f(0x443)]({'unitId':_0x121438,'subUnitId':_0x11f0a1,'token':_0x3c751a,'type':W[_0x4a591f(0x29a)],'pivotConfig':_0x37bfc7}),!0x0;}},st={'type':f['CommandType'][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x3d8),'handler'(_0x16f523,_0x5085f0){const _0x2cd340=_0xaf6d92;if(!_0x5085f0)return!0x1;if(!!_0x16f523['get'](f[_0x2cd340(0x37c)])[_0x2cd340(0x3a3)](Q))return!0x0;const _0x170f2c=_0x16f523['get'](exports[_0x2cd340(0x384)]),{unitId:_0x3abd1f,subUnitId:_0x23bffe,pivotTableId:_0x4e6b56,fieldId:_0x214dcd,name:_0x790454}=_0x5085f0,_0x1d1183=_0x170f2c[_0x2cd340(0x480)](_0x4e6b56);if(!_0x1d1183)return!0x1;_0x1d1183['renameField'](_0x214dcd,_0x790454);const _0x23fde0=_0x170f2c[_0x2cd340(0x29b)](_0x3abd1f,_0x23bffe,_0x4e6b56);return bn(_0x23fde0,_0x5085f0),_0x170f2c[_0x2cd340(0x443)]({'unitId':_0x3abd1f,'subUnitId':_0x23bffe,'token':_0x4e6b56,'type':W[_0x2cd340(0x29a)]}),!0x0;}},rt={'type':f['CommandType'][_0xaf6d92(0x2ee)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x2764e8,_0x21db3b){const _0x132a33=_0xaf6d92;if(!_0x21db3b)return!0x1;if(!!_0x2764e8[_0x132a33(0x447)](f['IConfigService'])['getConfig'](Q))return!0x0;const _0x40c390=_0x2764e8[_0x132a33(0x447)](exports[_0x132a33(0x384)]),{unitId:_0xfb1436,subUnitId:_0x1dfa54,pivotTableId:_0x3fd4e3,fieldId:_0x25406b,collapse:_0x50080e,item:_0x22f5b2}=_0x21db3b,_0x5de469=_0x40c390[_0x132a33(0x480)](_0x3fd4e3);if(!_0x5de469)return!0x1;_0x5de469['setCollapse'](_0x25406b,_0x50080e,_0x22f5b2);const _0x3e45f4=_0x40c390[_0x132a33(0x29b)](_0xfb1436,_0x1dfa54,_0x3fd4e3);return Pn(_0x3e45f4,_0x21db3b),_0x40c390[_0x132a33(0x443)]({'unitId':_0xfb1436,'subUnitId':_0x1dfa54,'token':_0x3fd4e3,'type':W[_0x132a33(0x29a)]}),!0x0;}},lt={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x49c),'handler'(_0x35d083,_0xde095d){const _0xcfac00=_0xaf6d92;if(!_0xde095d)return!0x1;if(!!_0x35d083[_0xcfac00(0x447)](f[_0xcfac00(0x37c)])[_0xcfac00(0x3a3)](Q))return!0x0;const _0x318d97=_0x35d083['get'](exports[_0xcfac00(0x384)]),{unitId:_0x46de64,subUnitId:_0x4890ea,pivotTableId:_0x2a01c4,fieldId:_0x523c9f,format:_0x3d97e2}=_0xde095d,_0x424705=_0x318d97[_0xcfac00(0x480)](_0x2a01c4);if(!_0x424705)return!0x1;_0x424705[_0xcfac00(0x397)](_0x523c9f,_0x3d97e2);const _0x2c2087=_0x318d97[_0xcfac00(0x29b)](_0x46de64,_0x4890ea,_0x2a01c4);return yn(_0x2c2087,_0xde095d),_0x318d97['addDirtyPivotTable']({'unitId':_0x46de64,'subUnitId':_0x4890ea,'token':_0x2a01c4,'type':W[_0xcfac00(0x29a)]}),!0x0;}},ct={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':_0xaf6d92(0x247),'handler'(_0x5dec5a,_0x38d0aa){const _0x2cfc36=_0xaf6d92;if(!_0x38d0aa)return!0x1;if(!!_0x5dec5a['get'](f[_0x2cfc36(0x37c)])[_0x2cfc36(0x3a3)](Q))return!0x0;const _0x2ab84e=_0x5dec5a[_0x2cfc36(0x447)](exports[_0x2cfc36(0x384)]),{unitId:_0x3fb5d0,subUnitId:_0xe0efaf,pivotTableId:_0x31ffe4,fieldId:_0x487b96,filterInfo:_0x33b60d}=_0x38d0aa,_0x36fdec=_0x2ab84e[_0x2cfc36(0x480)](_0x31ffe4);if(!_0x36fdec)return!0x1;_0x36fdec[_0x2cfc36(0x27d)](_0x487b96,_0x33b60d);const _0x1fa2aa=_0x2ab84e[_0x2cfc36(0x29b)](_0x3fb5d0,_0xe0efaf,_0x31ffe4);return Mn(_0x1fa2aa,_0x38d0aa),_0x2ab84e[_0x2cfc36(0x443)]({'unitId':_0x3fb5d0,'subUnitId':_0xe0efaf,'token':_0x31ffe4,'type':W[_0x2cfc36(0x29a)]}),!0x0;}},dt={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x394),'handler'(_0x52f47f,_0x4ce75c){const _0x564d17=_0xaf6d92;if(!_0x4ce75c)return!0x1;if(!!_0x52f47f['get'](f[_0x564d17(0x37c)])['getConfig'](Q))return!0x0;const _0xf06f42=_0x52f47f[_0x564d17(0x447)](exports[_0x564d17(0x384)]),{unitId:_0x2464d6,subUnitId:_0x4c4c69,pivotTableId:_0x2f3983,options:_0xfd8e5b}=_0x4ce75c,_0x1f2d29=_0xf06f42[_0x564d17(0x480)](_0x2f3983);if(!_0x1f2d29)return!0x1;_0x1f2d29[_0x564d17(0x20a)](_0xfd8e5b);const _0x394015=_0xf06f42[_0x564d17(0x29b)](_0x2464d6,_0x4c4c69,_0x2f3983);return Vn(_0x394015,_0x4ce75c),_0xf06f42[_0x564d17(0x443)]({'unitId':_0x2464d6,'subUnitId':_0x4c4c69,'token':_0x2f3983,'type':W[_0x564d17(0x29a)]}),!0x0;}},ut={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x1aa),'handler'(_0x394b85,_0x299d73){const _0x1bf595=_0xaf6d92;if(!_0x299d73)return!0x1;if(!!_0x394b85[_0x1bf595(0x447)](f['IConfigService'])['getConfig'](Q))return!0x0;const _0x5a5803=_0x394b85[_0x1bf595(0x447)](exports[_0x1bf595(0x384)]),{unitId:_0x23a3da,subUnitId:_0x252abd,pivotTableId:_0x1ea3f9,sortInfo:_0x1e4064,fieldId:_0x9418cb}=_0x299d73,_0x373b0d=_0x5a5803['getPivotTableInstance'](_0x1ea3f9);if(!_0x373b0d)return!0x1;_0x373b0d[_0x1bf595(0x48c)](_0x9418cb,_0x1e4064);const _0x10ed57=_0x5a5803[_0x1bf595(0x29b)](_0x23a3da,_0x252abd,_0x1ea3f9);return En(_0x10ed57,_0x299d73),_0x5a5803[_0x1bf595(0x443)]({'unitId':_0x23a3da,'subUnitId':_0x252abd,'token':_0x1ea3f9,'type':W[_0x1bf595(0x29a)]}),!0x0;}},gt={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x226),'handler'(_0x118c8d,_0x36f9e9){const _0x511bf5=_0xaf6d92;if(!_0x36f9e9)return!0x1;if(!!_0x118c8d['get'](f[_0x511bf5(0x37c)])[_0x511bf5(0x3a3)](Q))return!0x0;const _0x5a4d00=_0x118c8d['get'](exports[_0x511bf5(0x384)]),{unitId:_0x43549c,subUnitId:_0x3406ef,pivotTableId:_0x5310eb,fieldId:_0x29dfd6,subtotalType:_0x535cc0}=_0x36f9e9,_0x6ad0c5=_0x5a4d00[_0x511bf5(0x480)](_0x5310eb);if(!_0x6ad0c5)return!0x1;_0x6ad0c5[_0x511bf5(0x1ec)](_0x29dfd6,_0x535cc0);const _0x1b14cd=_0x5a4d00['getPivotTableModelConfig'](_0x43549c,_0x3406ef,_0x5310eb);return wn(_0x1b14cd,_0x36f9e9),_0x5a4d00['addDirtyPivotTable']({'unitId':_0x43549c,'subUnitId':_0x3406ef,'token':_0x5310eb,'type':W[_0x511bf5(0x29a)]}),!0x0;}},ft={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':_0xaf6d92(0x2d0),'handler'(_0x209968,_0x3c44e7){const _0x1ee0f8=_0xaf6d92;if(!_0x3c44e7)return!0x1;if(!!_0x209968[_0x1ee0f8(0x447)](f['IConfigService'])[_0x1ee0f8(0x3a3)](Q))return!0x0;const _0x1ffa4f=_0x209968[_0x1ee0f8(0x447)](exports[_0x1ee0f8(0x384)]),{unitId:_0xcde7e4,subUnitId:_0x3ce382,pivotTableId:_0x424fc9,fieldId:_0x1592ae,filterInfo:_0x802335}=_0x3c44e7,_0x1d59a0=_0x1ffa4f[_0x1ee0f8(0x480)](_0x424fc9);if(!_0x1d59a0)return!0x1;_0x1d59a0['setValueFilterInfo'](_0x1592ae,_0x802335);const _0x364494=_0x1ffa4f['getPivotTableModelConfig'](_0xcde7e4,_0x3ce382,_0x424fc9);return Fn(_0x364494,_0x3c44e7),_0x1ffa4f['addDirtyPivotTable']({'unitId':_0xcde7e4,'subUnitId':_0x3ce382,'token':_0x424fc9,'type':W[_0x1ee0f8(0x29a)]}),!0x0;}},vt={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x2b2),'handler'(_0x4de523,_0x331855){const _0x56f76c=_0xaf6d92;if(!_0x331855)return!0x1;if(!!_0x4de523['get'](f[_0x56f76c(0x37c)])[_0x56f76c(0x3a3)](Q))return!0x0;const _0x450f5d=_0x4de523['get'](exports[_0x56f76c(0x384)]),{unitId:_0x35becf,subUnitId:_0x49051c,pivotTableId:_0x5bb429,area:_0x31a42c,index:_0x4e6e42,fieldId:_0x1762f5}=_0x331855,_0x2ae037=_0x450f5d[_0x56f76c(0x480)](_0x5bb429);if(!_0x2ae037)return!0x1;_0x2ae037[_0x56f76c(0x1cf)](_0x1762f5,_0x31a42c,_0x4e6e42);const _0x3d9b82=_0x450f5d[_0x56f76c(0x29b)](_0x35becf,_0x49051c,_0x5bb429);return _n(_0x3d9b82,_0x331855),_0x450f5d[_0x56f76c(0x443)]({'unitId':_0x35becf,'subUnitId':_0x49051c,'token':_0x5bb429,'type':W[_0x56f76c(0x29a)]}),!0x0;}},ht={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':_0xaf6d92(0x432),'handler'(_0x5664cf,_0x91e23e){const _0x352821=_0xaf6d92;if(!_0x91e23e)return!0x1;if(!!_0x5664cf['get'](f[_0x352821(0x37c)])[_0x352821(0x3a3)](Q))return!0x0;const _0x3ed905=_0x5664cf[_0x352821(0x447)](exports['SheetsPivotDataSourceModel']),{unitId:_0x64d76,subUnitId:_0x516496,pivotTableId:_0xd41620,sourceName:_0x5eae73,dataFieldId:_0x1c808b,tableFieldId:_0x1bbac7}=_0x91e23e,_0x3bc922=_0x3ed905[_0x352821(0x480)](_0xd41620);if(!_0x3bc922)return!0x1;_0x3bc922[_0x352821(0x36a)](_0x1bbac7,_0x5eae73,_0x1c808b);const _0x3fe087=_0x3ed905[_0x352821(0x29b)](_0x64d76,_0x516496,_0xd41620);return Dn(_0x3fe087,_0x91e23e),_0x3ed905['addDirtyPivotTable']({'unitId':_0x64d76,'subUnitId':_0x516496,'token':_0xd41620,'type':W[_0x352821(0x29a)]}),!0x0;}},pt={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x361),'handler'(_0x2188c4,_0x22a30f){const _0x54c444=_0xaf6d92;if(!_0x22a30f)return!0x1;if(!!_0x2188c4[_0x54c444(0x447)](f[_0x54c444(0x37c)])[_0x54c444(0x3a3)](Q))return!0x0;const _0xcb930b=_0x2188c4[_0x54c444(0x447)](exports[_0x54c444(0x384)]),{unitId:_0x3bc38f,subUnitId:_0x39e19d,pivotTableId:_0x839ab0,valuePosition:_0x7fade2,index:_0x432276}=_0x22a30f,_0x194fed=_0xcb930b[_0x54c444(0x480)](_0x839ab0);if(!_0x194fed)return!0x1;_0x194fed['updateValuePosition'](_0x7fade2,_0x432276);const _0x27c96b=_0xcb930b[_0x54c444(0x29b)](_0x3bc38f,_0x39e19d,_0x839ab0);return Rn(_0x27c96b,_0x22a30f),_0xcb930b['addDirtyPivotTable']({'unitId':_0x3bc38f,'subUnitId':_0x39e19d,'token':_0x839ab0,'type':W['Set']}),!0x0;}};function ae(_0x1a1ec1,_0xadf658,_0x4a6923){const _0x2bcc19=_0xaf6d92,{pivotTableId:_0xb07325,unitId:_0x17bf79,subUnitId:_0x55bfdb}=_0xadf658,_0x17841e=[],_0xf9cfd5=[];for(const _0x1ddb1b of _0x4a6923)switch(_0x1ddb1b[_0x2bcc19(0x1b7)]){case m[_0x2bcc19(0x462)][_0x2bcc19(0x273)]:{const {fieldJson:_0x1db790,area:_0x4cb4dc,index:_0x12c75e}=_0x1ddb1b,_0x3cc035={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldJson':_0x1db790,'area':_0x4cb4dc,'index':_0x12c75e},_0x3c7fd0={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x1db790['id'],'area':_0x4cb4dc,'index':_0x12c75e};_0x17841e[_0x2bcc19(0x3bd)]({'id':it['id'],'params':_0x3cc035}),_0xf9cfd5[_0x2bcc19(0x35d)]({'id':at['id'],'params':_0x3c7fd0});}break;case m[_0x2bcc19(0x462)][_0x2bcc19(0x19f)]:{const {fieldId:_0x1a43e9,newSubtotalType:_0x5e359f,oldSubtotalType:_0x26394c}=_0x1ddb1b,_0x3b6e15={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x1a43e9,'subtotalType':_0x5e359f};_0x17841e[_0x2bcc19(0x3bd)]({'id':gt['id'],'params':_0x3b6e15});const _0x15904f={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x1a43e9,'subtotalType':_0x26394c};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':gt['id'],'params':_0x15904f});}break;case m['PivotTableChangeTypeEnum'][_0x2bcc19(0x225)]:{const {fieldId:_0x4361e0,fieldJson:_0xa4758b,area:_0x255d03,index:_0x295c65}=_0x1ddb1b,_0x5b748d={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x4361e0,'index':_0x295c65,'area':_0x255d03};_0x17841e[_0x2bcc19(0x3bd)]({'id':at['id'],'params':_0x5b748d});const _0x24e20b={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldJson':_0xa4758b,'area':_0x255d03,'index':_0x295c65};_0xf9cfd5['unshift']({'id':it['id'],'params':_0x24e20b});}break;case m[_0x2bcc19(0x462)]['RenameField']:{const {fieldId:_0x34403e,oldName:_0x2eee7c,newName:_0x31dc76}=_0x1ddb1b,_0x506326={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x34403e,'name':_0x31dc76};_0x17841e[_0x2bcc19(0x3bd)]({'id':st['id'],'params':_0x506326});const _0x5ed38c={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x34403e,'name':_0x2eee7c};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':st['id'],'params':_0x5ed38c});}break;case m[_0x2bcc19(0x462)][_0x2bcc19(0x329)]:{const {fieldId:_0x59df68,oldFilterInfo:_0x359dc3,newFilterInfo:_0x5d94c3}=_0x1ddb1b,_0x5b16e6={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x59df68,'filterInfo':_0x5d94c3};_0x17841e[_0x2bcc19(0x3bd)]({'id':ct['id'],'params':_0x5b16e6});const _0x2bdd5c={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x59df68,'filterInfo':_0x359dc3};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':ct['id'],'params':_0x2bdd5c});}break;case m[_0x2bcc19(0x462)]['SetSortInfo']:{const {fieldId:_0x2f8f41,oldSortInfo:_0x1a334b,newSortInfo:_0x36d4f5}=_0x1ddb1b,_0x469c48={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x2f8f41,'sortInfo':_0x36d4f5};_0x17841e[_0x2bcc19(0x3bd)]({'id':ut['id'],'params':_0x469c48});const _0x12c01b={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x2f8f41,'sortInfo':_0x1a334b};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':ut['id'],'params':_0x12c01b});}break;case m['PivotTableChangeTypeEnum'][_0x2bcc19(0x42d)]:{const {oldOptions:_0x5a6259,newOptions:_0x48c3f2}=_0x1ddb1b,_0x6bc08b={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'options':_0x48c3f2};_0x17841e[_0x2bcc19(0x3bd)]({'id':dt['id'],'params':_0x6bc08b});const _0x4da85e={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'options':_0x5a6259};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':dt['id'],'params':_0x4da85e});}break;case m[_0x2bcc19(0x462)][_0x2bcc19(0x48a)]:{const {oldArea:_0x233fec,newArea:_0x4702f0,oldIndex:_0x3aa9f1,newIndex:_0x15d760,fieldId:_0xff2b72}=_0x1ddb1b,_0x18c074={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0xff2b72,'area':_0x4702f0,'index':_0x15d760,'oldArea':_0x233fec,'oldIndex':_0x3aa9f1};_0x17841e['push']({'id':vt['id'],'params':_0x18c074});const _0x33b6b8={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0xff2b72,'area':_0x233fec,'index':_0x3aa9f1,'oldArea':_0x4702f0,'oldIndex':_0x15d760};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':vt['id'],'params':_0x33b6b8});}break;case m[_0x2bcc19(0x462)][_0x2bcc19(0x431)]:{const {oldValuePosition:_0x33bc80,newValuePosition:_0x5ab00c,oldIndex:_0x19a5ef,newIndex:_0xc534e4}=_0x1ddb1b,_0x4b7e2c={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'valuePosition':_0x5ab00c,'index':_0xc534e4};_0x17841e[_0x2bcc19(0x3bd)]({'id':pt['id'],'params':_0x4b7e2c});const _0x126c35={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'valuePosition':_0x33bc80,'index':_0x19a5ef};_0xf9cfd5['unshift']({'id':pt['id'],'params':_0x126c35});}break;case m[_0x2bcc19(0x462)][_0x2bcc19(0x3f8)]:{const {fieldId:_0x38c913,collapse:_0x284dbd,item:_0x132d4c}=_0x1ddb1b,_0xe39373={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x38c913,'collapse':_0x284dbd,'item':_0x132d4c};_0x17841e['push']({'id':rt['id'],'params':_0xe39373});const _0x54777f={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x38c913,'collapse':!_0x284dbd,'item':_0x132d4c};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':rt['id'],'params':_0x54777f});}break;case m[_0x2bcc19(0x462)][_0x2bcc19(0x410)]:{const {newFormat:_0x171d68,oldFormat:_0x301b04,fieldId:_0x3567f3}=_0x1ddb1b,_0x49096d={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x3567f3,'format':_0x171d68};_0x17841e[_0x2bcc19(0x3bd)]({'id':lt['id'],'params':_0x49096d});const _0x12a0f0={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x3567f3,'format':_0x301b04};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':lt['id'],'params':_0x12a0f0});}break;case m['PivotTableChangeTypeEnum'][_0x2bcc19(0x217)]:{const {tableFieldId:_0x404054,oldSourceName:_0x4593df,newSourceName:_0x3bf0f7,oldDataFieldId:_0x2175f3,newDataFieldId:_0x54109d}=_0x1ddb1b,_0x727eea={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'tableFieldId':_0x404054,'sourceName':_0x3bf0f7,'dataFieldId':_0x54109d};_0x17841e[_0x2bcc19(0x3bd)]({'id':ht['id'],'params':_0x727eea});const _0x309788={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'tableFieldId':_0x404054,'sourceName':_0x4593df,'dataFieldId':_0x2175f3};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':ht['id'],'params':_0x309788});}break;case m[_0x2bcc19(0x462)]['SetValueFilter']:{const {fieldId:_0x187995,filterInfo:_0x170d82,oldFilterInfo:_0x10abdd}=_0x1ddb1b,_0x2e72bf={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x187995,'filterInfo':_0x170d82};_0x17841e[_0x2bcc19(0x3bd)]({'id':ft['id'],'params':_0x2e72bf});const _0x2dafb2={'unitId':_0x17bf79,'subUnitId':_0x55bfdb,'pivotTableId':_0xb07325,'fieldId':_0x187995,'filterInfo':_0x10abdd};_0xf9cfd5[_0x2bcc19(0x35d)]({'id':ft['id'],'params':_0x2dafb2});}}return{'redos':_0x17841e,'undos':_0xf9cfd5};}function ge(_0x53fb87,_0x2ba2ce){const _0x2d0936=_0xaf6d92;var _0x36749f;const _0x5a3506=_0x53fb87[_0x2d0936(0x447)](exports[_0x2d0936(0x20f)]),{cellInfo:_0x2c7100,view:_0x1a3ff0,isEmpty:_0x25a47d}=_0x2ba2ce;return(_0x36749f=_0x5a3506['interceptor'][_0x2d0936(0x23c)](Jt)(At,{'cellInfo':_0x2c7100,'view':_0x1a3ff0,'isEmpty':_0x25a47d}))!=null?_0x36749f:At;}const to={'type':f[_0xaf6d92(0x3cd)]['COMMAND'],'id':_0xaf6d92(0x396),async 'handler'(_0x4b5429,_0x141774){const _0x47a61a=_0xaf6d92;if(!_0x141774)return!0x1;const _0x3341b8=_0x4b5429[_0x47a61a(0x447)](f['ICommandService']),_0x2e8366=_0x4b5429[_0x47a61a(0x447)](exports[_0x47a61a(0x327)]),_0x352e48=_0x4b5429[_0x47a61a(0x447)](f[_0x47a61a(0x39f)]),{pivotTableId:_0x5c25d1,dataFieldId:_0x4831dd,fieldArea:_0xb4cf56,index:_0xa8bcf9,unitId:_0x46a844,subUnitId:_0x564f5c}=_0x141774,_0xecf43f=(await _0x2e8366[_0x47a61a(0x3fc)]({'unitId':_0x46a844,'subUnitId':_0x564f5c,'pivotTableId':_0x5c25d1,'params':{'type':B[_0x47a61a(0x2a9)],'addPivotField':{'dataFieldId':_0x4831dd,'fieldArea':_0xb4cf56,'index':_0xa8bcf9}}}))[_0x47a61a(0x427)][_0x47a61a(0x1eb)];if(!_0xecf43f)return!0x1;const {view:_0x537d51,changesets:_0x3becf5,isEmpty:_0x20c31f,pivotTableConfig:_0x4ec27d,shouldBeAddedGroupJSON:_0x44715a}=_0xecf43f,_0x109ac7=_0x4ec27d['targetCellInfo'],_0x49620c=new m[(_0x47a61a(0x2f5))]();_0x49620c[_0x47a61a(0x269)](_0x537d51);const _0x4b690e={'cellInfo':_0x109ac7,'view':_0x49620c,'isEmpty':_0x20c31f};if(!await _0x4b5429['get'](exports['SheetsPivotTableService'])[_0x47a61a(0x34a)][_0x47a61a(0x24b)](re)(!0x0,_0x4b690e))return!0x1;const _0x391b69=ce(_0x4b5429,_0x49620c,_0x109ac7,_0x20c31f),_0x3972cf=ge(_0x4b5429,_0x4b690e),{undos:_0x29c2ea,redos:_0x958cd2}=ae(_0x3341b8,{'pivotTableId':_0x5c25d1,'unitId':_0x46a844,'subUnitId':_0x564f5c},_0x3becf5);return _0x44715a&&(_0x958cd2[_0x47a61a(0x35d)]({'id':Zt['id'],'params':{'pivotTableId':_0x5c25d1,'fieldJSON':_0x44715a,'unitId':_0x46a844,'subUnitId':_0x564f5c}}),_0x29c2ea['push']({'id':eo['id'],'params':{'pivotTableId':_0x5c25d1,'dataFieldId':_0x44715a['id'],'unitId':_0x46a844,'subUnitId':_0x564f5c}})),f[_0x47a61a(0x239)]([..._0x391b69[_0x47a61a(0x41f)],..._0x3972cf[_0x47a61a(0x41f)],..._0x958cd2],_0x3341b8),_0x352e48[_0x47a61a(0x469)]({'unitID':_0x46a844,'redoMutations':[..._0x391b69[_0x47a61a(0x41f)],..._0x3972cf[_0x47a61a(0x41f)],..._0x958cd2],'undoMutations':[..._0x391b69[_0x47a61a(0x422)],..._0x3972cf[_0x47a61a(0x422)],..._0x29c2ea]}),!0x0;}},Nn=()=>typeof process<'u'&&process[_0xaf6d92(0x3eb)]!=null&&process[_0xaf6d92(0x3eb)][_0xaf6d92(0x47f)]!=null,_e={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x2e8),'handler'(_0x4ade4e,_0x30c182){const _0x4a5a05=_0xaf6d92;var _0x763829;if(!_0x30c182)return!0x1;const _0x6325a0=_0x4ade4e[_0x4a5a05(0x447)](f[_0x4a5a05(0x37c)]);if(!!_0x6325a0[_0x4a5a05(0x3a3)](Q))return!0x0;const _0x13caf8=_0x4ade4e['get'](f['IUniverInstanceService']),_0x109f53=_0x4ade4e['get'](exports[_0x4a5a05(0x384)]),{pivotTableId:_0x49e508,pivotTableConfig:_0x25297f,collectionConfig:_0x4182dc,unitId:_0x4b94e3,subUnitId:_0x152f29}=_0x30c182,{sourceRangeInfo:_0xc15ab,fieldsConfig:_0xd8da90,targetCellInfo:_0x41566d}=_0x25297f,_0x511ec7=_0x13caf8[_0x4a5a05(0x43d)](_0x4b94e3);if(!_0x511ec7||!_0x511ec7[_0x4a5a05(0x2e2)](_0x152f29))return!0x1;if(!Nn()){let _0x48c620=0x0;_0x511ec7['getSheets']()['forEach'](_0x4617cc=>{const _0x31a109=_0x4a5a05;var _0x5ca065,_0x3297ba;_0x48c620+=(_0x3297ba=(_0x5ca065=_0x109f53[_0x31a109(0x3c2)](_0x4b94e3,_0x4617cc['getSheetId']()))==null?void 0x0:_0x5ca065[_0x31a109(0x3c8)])!=null?_0x3297ba:0x0;});const _0x407765=(_0x763829=_0x6325a0[_0x4a5a05(0x3a3)](ue['LS_CONFIG_KEY']))!=null?_0x763829:{},{ls:_0x44651f,pbk:_0x5758a8}=_0x407765;if(!Et(_0x44651f,_0x5758a8))throw new f[(_0x4a5a05(0x30d))](_0x4a5a05(0x1d9));const _0x232d52=St(Ct,_0x44651f,_0x5758a8)['count'];if(_0x48c620>=_0x232d52)throw new f[(_0x4a5a05(0x30d))](_0x4a5a05(0x1d9));}if(!_0x4182dc||!_0xd8da90)return!0x1;const {collection:_0x34e5e,updateDataFieldList:_0x46cad9}=_0x109f53[_0x4a5a05(0x235)](_0x49e508,_0x4182dc,_0xc15ab,_0x41566d);_0x109f53[_0x4a5a05(0x1a9)](_0x34e5e,_0x46cad9,_0xc15ab);const _0x5e8bb0=new m[(_0x4a5a05(0x352))](_0x34e5e,void 0x0,_0x49e508);_0x5e8bb0['fromJSON'](_0xd8da90);const _0x27d3df=JSON['parse'](JSON[_0x4a5a05(0x3be)](_0x25297f));return _0x109f53[_0x4a5a05(0x442)](_0x4b94e3,_0x152f29,_0x49e508,_0x5e8bb0,_0x27d3df),_0x109f53[_0x4a5a05(0x443)]({'unitId':_0x4b94e3,'subUnitId':_0x152f29,'token':_0x49e508,'type':W[_0x4a5a05(0x1a7)],'pivotConfig':_0x27d3df}),!0x0;}},oo={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'id':_0xaf6d92(0x42b),async 'handler'(_0x5744ab,_0xfefd07){const _0x2e890c=_0xaf6d92;if(!_0xfefd07)return!0x1;const {sourceDataInfo:_0x1a9739,pivotTableConfig:_0x344bcf}=_0xfefd07;if(!_0x1a9739||!_0x344bcf)return!0x1;const {unitId:_0x3661da,subUnitId:_0xa97a52,range:_0x572f37}=_0x1a9739,_0x194096=_0x5744ab[_0x2e890c(0x447)](f[_0x2e890c(0x48e)]),_0x1852e7=_0x5744ab[_0x2e890c(0x447)](exports['SheetsPivotRPCService']),_0x529d7e=_0x5744ab[_0x2e890c(0x447)](f[_0x2e890c(0x2da)]),_0x1dbfa6=_0x5744ab['get'](f['ICommandService']),_0x307713=_0x194096[_0x2e890c(0x43d)](_0x3661da);if(!_0x307713)return!0x1;const _0x342be6=_0x307713[_0x2e890c(0x2e2)](_0xa97a52);if(!_0x342be6)return!0x1;const _0x52a390=m[_0x2e890c(0x406)](0x8),_0x230a5a=_0x572f37||{'startRow':0x0,'startColumn':0x0,'endRow':_0x342be6[_0x2e890c(0x2a4)]()-0x1,'endColumn':_0x342be6[_0x2e890c(0x252)]()-0x1};_0x230a5a[_0x2e890c(0x4aa)]=f[_0x2e890c(0x27e)][_0x2e890c(0x331)];const _0x5ca49c=(await _0x1852e7[_0x2e890c(0x3fc)]({'unitId':_0x3661da,'subUnitId':_0xa97a52,'pivotTableId':_0x52a390,'params':{'type':B[_0x2e890c(0x420)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3661da,'sheetName':_0x342be6[_0x2e890c(0x238)](),'subUnitId':_0xa97a52,'range':_0x230a5a},'pivotTableId':_0x52a390,'pivotTableIndexConfig':_0x344bcf}}}))['result']['addPivotTableWithConfig'];if(!_0x5ca49c)return!0x1;const {isEmpty:_0xa9b60d,fieldsConfig:_0x5f3106,collectionConfig:_0x17637a,changesets:_0x689266}=_0x5ca49c,_0x48db2c=_0x307713['getSheets']()['length'],_0x24ccd2=f[_0x2e890c(0x1c1)]({'rowCount':_0x342be6[_0x2e890c(0x2a4)]()-0x1,'columnCount':_0x342be6[_0x2e890c(0x252)]()-0x1});_0x24ccd2['id']=f[_0x2e890c(0x215)](),_0x24ccd2[_0x2e890c(0x246)]=_0x307713['generateNewSheetName'](''+_0x529d7e['t'](_0x2e890c(0x298)));const _0x493e91={'index':_0x48db2c,'sheet':_0x24ccd2,'unitId':_0x3661da},{redos:_0x2b2165}=ae(_0x1dbfa6,{'pivotTableId':_0x52a390,'unitId':_0x3661da,'subUnitId':_0x24ccd2['id']},_0x689266),_0x395db3=[{'id':U[_0x2e890c(0x373)]['id'],'params':_0x493e91},{'id':_e['id'],'params':{'unitId':_0x3661da,'subUnitId':_0x24ccd2['id'],'pivotTableId':_0x52a390,'pivotTableConfig':{'isEmpty':_0xa9b60d,'fieldsConfig':_0x5f3106,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3661da,'subUnitId':_0x24ccd2['id']},'sourceRangeInfo':{'subUnitId':_0xa97a52,'unitId':_0x3661da,'range':_0x230a5a,'sheetName':_0x342be6['getName']()}},'collectionConfig':_0x17637a}},..._0x2b2165];return f['sequenceExecute'](_0x395db3,_0x1dbfa6),!0x0;}},qe={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':_0xaf6d92(0x42c),'handler'(_0x4e8577,_0xf62344){const _0x15ea4e=_0xaf6d92;if(!_0xf62344)return!0x1;if(!!_0x4e8577[_0x15ea4e(0x447)](f[_0x15ea4e(0x37c)])['getConfig'](Q))return!0x0;const {pivotTableId:_0x2a1e1a,unitId:_0x4f2cf5,subUnitId:_0x29ffd8}=_0xf62344,_0x104965=_0x4e8577[_0x15ea4e(0x447)](exports[_0x15ea4e(0x384)]);return _0x104965[_0x15ea4e(0x266)](_0x4f2cf5,_0x29ffd8,_0x2a1e1a)?(_0x104965['addDirtyPivotTable']({'unitId':_0x4f2cf5,'subUnitId':_0x29ffd8,'token':_0x2a1e1a,'type':W[_0x15ea4e(0x34d)]}),_0x104965[_0x15ea4e(0x1c0)](_0x4f2cf5,_0x29ffd8,_0x2a1e1a),!0x0):!0x1;}},no={'type':f['CommandType']['COMMAND'],'id':_0xaf6d92(0x2c5),async 'handler'(_0x52ce41,_0x2d18d2){const _0x19219a=_0xaf6d92;var _0x4057e5,_0x42dad9;const _0x4d6366=_0x52ce41[_0x19219a(0x447)](f[_0x19219a(0x22e)]),_0x32bcf3=_0x52ce41['get'](f['IUniverInstanceService']),_0x1dbf29=_0x52ce41['get'](f[_0x19219a(0x2da)]),_0x5087db=_0x52ce41[_0x19219a(0x447)](exports[_0x19219a(0x327)]),_0x29d749=_0x52ce41[_0x19219a(0x447)](f[_0x19219a(0x39f)]),_0x59abd6=_0x52ce41['get'](exports['SheetsPivotTableConfigModel']),_0x437184=_0x52ce41[_0x19219a(0x447)](f[_0x19219a(0x37c)]);if(!_0x2d18d2)return!0x1;const {pivotTableConfig:_0x54a763,positionType:_0x49ca8}=_0x2d18d2,{targetCellInfo:_0xfd7b08,sourceRangeInfo:_0x5d5f8a}=_0x54a763,{unitId:_0x472f8f,subUnitId:_0x1132ab}=_0xfd7b08,_0x23ac34=_0x32bcf3[_0x19219a(0x43d)](_0x472f8f);if(!_0x23ac34)return!0x1;let _0x42e289=0x0;_0x23ac34[_0x19219a(0x201)]()[_0x19219a(0x25e)](_0x206268=>{const _0x41e6bd=_0x19219a;var _0x2cf313,_0x1d80cd;_0x42e289+=(_0x1d80cd=(_0x2cf313=_0x59abd6[_0x41e6bd(0x3c2)](_0x472f8f,_0x206268['getSheetId']()))==null?void 0x0:_0x2cf313[_0x41e6bd(0x3c8)])!=null?_0x1d80cd:0x0;});const _0x4ee296=(_0x4057e5=_0x437184[_0x19219a(0x3a3)](ue[_0x19219a(0x325)]))!=null?_0x4057e5:{},{ls:_0x5704f4,pbk:_0x57bbdf}=_0x4ee296;if(!Et(_0x5704f4,_0x57bbdf))return!0x1;const _0x46f2b3=St(Ct,_0x5704f4,_0x57bbdf)[_0x19219a(0x35f)];if(_0x42e289>=_0x46f2b3)return!0x1;const _0x9cdcfc=_0x2d18d2[_0x19219a(0x485)]||m[_0x19219a(0x406)](0x8),_0x45a2f9=(await _0x5087db[_0x19219a(0x3fc)]({'unitId':_0x472f8f,'subUnitId':_0x1132ab,'pivotTableId':_0x9cdcfc,'params':{'type':B[_0x19219a(0x421)],'addPivotTable':{'sourceRangeInfo':_0x5d5f8a,'pivotTableId':_0x9cdcfc}}}))[_0x19219a(0x427)][_0x19219a(0x442)];if(!_0x45a2f9)return!0x1;const {view:_0x2f3601,isEmpty:_0x43abb9,fieldsConfig:_0x28c110,collectionConfig:_0x1fc036}=_0x45a2f9,_0x37a9f8=[],_0x43a4b6=[];if(_0x49ca8===Mt[_0x19219a(0x4af)]){const _0x3a5e8c=_0x23ac34[_0x19219a(0x201)]()[_0x19219a(0x3a2)],_0x57ecfd=f[_0x19219a(0x1c1)]({});_0x57ecfd['id']=_0x54a763['targetCellInfo'][_0x19219a(0x371)],_0x57ecfd[_0x19219a(0x246)]=(_0x42dad9=_0x54a763[_0x19219a(0x346)][_0x19219a(0x294)])!=null?_0x42dad9:_0x23ac34[_0x19219a(0x198)](''+_0x1dbf29['t'](_0x19219a(0x298)));const _0x3b88cd={'index':_0x3a5e8c,'sheet':_0x57ecfd,'unitId':_0x472f8f},_0x592831=U['InsertSheetUndoMutationFactory'](_0x52ce41,_0x3b88cd);_0x37a9f8[_0x19219a(0x3bd)]({'id':U['RemoveSheetMutation']['id'],'params':_0x592831}),_0x43a4b6[_0x19219a(0x3bd)]({'id':U['InsertSheetMutation']['id'],'params':_0x3b88cd});}else{if(!_0x23ac34['getSheetBySheetId'](_0x1132ab))return!0x1;const _0xac2cb6=ce(_0x52ce41,new m['PivotView'](),_0xfd7b08,!0x0);_0x43a4b6[_0x19219a(0x3bd)](..._0xac2cb6[_0x19219a(0x41f)]),_0x37a9f8['push'](..._0xac2cb6[_0x19219a(0x422)]);const _0x303cee={'cellInfo':_0xfd7b08,'view':_0x2f3601,'isEmpty':_0x43abb9};if(!await _0x52ce41['get'](exports['SheetsPivotTableService'])[_0x19219a(0x34a)][_0x19219a(0x24b)](re)(!0x0,_0x303cee))return!0x1;const _0x3f82d7=ge(_0x52ce41,_0x303cee);_0x43a4b6[_0x19219a(0x3bd)](..._0x3f82d7[_0x19219a(0x41f)]),_0x37a9f8['push'](..._0x3f82d7[_0x19219a(0x422)]);}return _0x43a4b6[_0x19219a(0x3bd)]({'id':_e['id'],'params':{'unitId':_0xfd7b08[_0x19219a(0x379)],'subUnitId':_0xfd7b08[_0x19219a(0x371)],'pivotTableId':_0x9cdcfc,'pivotTableConfig':{'targetCellInfo':_0xfd7b08,'sourceRangeInfo':_0x5d5f8a,'fieldsConfig':_0x28c110},'collectionConfig':_0x1fc036}}),_0x37a9f8[_0x19219a(0x35d)]({'id':qe['id'],'params':{'unitId':_0x472f8f,'subUnitId':_0x1132ab,'pivotTableId':_0x9cdcfc}}),f[_0x19219a(0x239)](_0x43a4b6,_0x4d6366)&&_0x29d749['pushUndoRedo']({'unitID':_0x472f8f,'undoMutations':_0x37a9f8,'redoMutations':_0x43a4b6}),!0x0;}},io={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'id':_0xaf6d92(0x49d),async 'handler'(_0x58c0ea,_0xd8cdbd){const _0x24da7e=_0xaf6d92;if(!_0xd8cdbd)return!0x1;const _0x2fc517=_0x58c0ea[_0x24da7e(0x447)](f[_0x24da7e(0x22e)]),_0x63d58=_0x58c0ea[_0x24da7e(0x447)](exports['SheetsPivotRPCService']),_0x8ae768=_0x58c0ea[_0x24da7e(0x447)](f[_0x24da7e(0x39f)]),{pivotTableId:_0x17eb6c,fieldId:_0x339bb4,area:_0x10a496,index:_0x5edc54,unitId:_0x3c02ec,subUnitId:_0x523c8f}=_0xd8cdbd,_0x471503=(await _0x63d58['getPivotDisplayConfig']({'unitId':_0x3c02ec,'subUnitId':_0x523c8f,'pivotTableId':_0x17eb6c,'params':{'type':B[_0x24da7e(0x2f8)],'movePivotField':{'fieldId':_0x339bb4,'area':_0x10a496,'index':_0x5edc54}}}))[_0x24da7e(0x427)][_0x24da7e(0x49e)];if(!_0x471503)return!0x1;const {changesets:_0x310fde,view:_0x58ee75,isEmpty:_0x36c0a2,pivotTableConfig:_0x256753}=_0x471503,_0x482093=_0x256753[_0x24da7e(0x346)],_0x41e6ea=new m[(_0x24da7e(0x2f5))]();_0x41e6ea[_0x24da7e(0x269)](_0x58ee75);const _0x4f4c2e={'cellInfo':_0x482093,'view':_0x41e6ea,'isEmpty':_0x36c0a2};if(!await _0x58c0ea[_0x24da7e(0x447)](exports[_0x24da7e(0x20f)])[_0x24da7e(0x34a)][_0x24da7e(0x24b)](re)(!0x0,_0x4f4c2e))return!0x1;const _0x267578=ce(_0x58c0ea,_0x41e6ea,_0x482093,_0x36c0a2),_0x27894f=ge(_0x58c0ea,_0x4f4c2e),{redos:_0x95b58d,undos:_0x294930}=ae(_0x2fc517,{'pivotTableId':_0x17eb6c,'unitId':_0x3c02ec,'subUnitId':_0x523c8f},_0x310fde);return f[_0x24da7e(0x239)]([..._0x267578[_0x24da7e(0x41f)],..._0x27894f[_0x24da7e(0x41f)],..._0x95b58d],_0x2fc517),_0x8ae768[_0x24da7e(0x469)]({'unitID':_0x3c02ec,'redoMutations':[..._0x267578['redos'],..._0x27894f['redos'],..._0x95b58d],'undoMutations':[..._0x267578['undos'],..._0x27894f[_0x24da7e(0x422)],..._0x294930]}),!0x0;}},Fe={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x2ee)],'id':'sheet.mutation.set-pivot-position','handler'(_0x5e4519,_0xdd5c08){const _0x5cd833=_0xaf6d92;if(!_0xdd5c08)return!0x1;if(!!_0x5e4519[_0x5cd833(0x447)](f[_0x5cd833(0x37c)])[_0x5cd833(0x3a3)](Q))return!0x0;const {pivotTableId:_0x2b2f48,targetCellPosition:_0x103e74,unitId:_0xc96c42,subUnitId:_0x4f7b5f}=_0xdd5c08,_0x1bd2f2=_0x5e4519[_0x5cd833(0x447)](exports[_0x5cd833(0x384)]);if(!_0x1bd2f2[_0x5cd833(0x480)](_0xdd5c08[_0x5cd833(0x485)]))return!0x1;const _0x4dc490=_0x1bd2f2[_0x5cd833(0x1f4)](_0x2b2f48);if(!_0x4dc490)return!0x1;const _0x33d36e=_0x1bd2f2[_0x5cd833(0x332)](_0x4dc490[_0x5cd833(0x379)],_0xdd5c08['pivotTableId']);if(!_0x33d36e)return!0x1;const _0x5720b7=_0x1bd2f2[_0x5cd833(0x266)](_0x4dc490[_0x5cd833(0x379)],_0x4dc490[_0x5cd833(0x371)],_0x2b2f48);if(!_0x5720b7)return!0x1;const _0x5f6643=f[_0x5cd833(0x479)]['deepClone'](_0x5720b7);_0x5f6643[_0x5cd833(0x346)]={'unitId':_0xc96c42,'subUnitId':_0x4f7b5f,'row':_0x103e74[_0x5cd833(0x458)],'col':_0x103e74[_0x5cd833(0x38d)]};const _0x118efe=_0x33d36e[_0x5cd833(0x412)]();if(_0x4dc490[_0x5cd833(0x371)]===_0x4f7b5f&&_0x4dc490[_0x5cd833(0x379)]===_0xc96c42)_0x1bd2f2[_0x5cd833(0x1a6)](_0xc96c42,_0x4f7b5f,_0x2b2f48,_0x5f6643),_0x1bd2f2['addDirtyPivotTable']({'unitId':_0xc96c42,'subUnitId':_0x4f7b5f,'token':_0x2b2f48,'type':W[_0x5cd833(0x29a)]});else{_0x1bd2f2[_0x5cd833(0x443)]({'unitId':_0x4dc490[_0x5cd833(0x379)],'subUnitId':_0x4dc490[_0x5cd833(0x371)],'token':_0x2b2f48,'type':W[_0x5cd833(0x34d)]}),_0x1bd2f2[_0x5cd833(0x1c0)](_0x4dc490['unitId'],_0x4dc490[_0x5cd833(0x371)],_0x2b2f48);const _0x5964bc=_0x1bd2f2['addCollectionByJSON'](_0x2b2f48,_0x118efe,_0x5720b7[_0x5cd833(0x32c)],_0x5f6643[_0x5cd833(0x346)]),_0x331e6f=new m['PivotTable'](_0x5964bc[_0x5cd833(0x24d)],void 0x0,_0x2b2f48);_0x331e6f['fromJSON'](_0x5f6643['fieldsConfig']),_0x1bd2f2[_0x5cd833(0x442)](_0xc96c42,_0x4f7b5f,_0x2b2f48,_0x331e6f,_0x5f6643),_0x1bd2f2[_0x5cd833(0x443)]({'unitId':_0xc96c42,'subUnitId':_0x4f7b5f,'token':_0x2b2f48,'type':W[_0x5cd833(0x1a7)],'pivotConfig':_0x5f6643});}return!0x0;}},ao={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'id':_0xaf6d92(0x392),'handler':(_0x5c7cbe,_0x21bcdc)=>{const _0x208769=_0xaf6d92,_0x16a669=_0x5c7cbe[_0x208769(0x447)](f[_0x208769(0x22e)]),_0x1daf9c=_0x5c7cbe[_0x208769(0x447)](f[_0x208769(0x39f)]),_0x142d16=_0x5c7cbe[_0x208769(0x447)](exports[_0x208769(0x36f)]),_0x48e795=_0x5c7cbe[_0x208769(0x447)](f[_0x208769(0x48e)]);if(!_0x21bcdc)return!0x1;const _0x5c5c8d=U['getSheetCommandTarget'](_0x48e795);if(!_0x5c5c8d)return!0x1;const {unitId:_0x27a252,subUnitId:_0x4e3112,workbook:_0x414d49}=_0x5c5c8d,_0x3a66d=_0x142d16[_0x208769(0x266)](_0x21bcdc['originTargetInfo'][_0x208769(0x379)],_0x21bcdc[_0x208769(0x2db)]['subUnitId'],_0x21bcdc[_0x208769(0x485)]);if(!_0x3a66d)return!0x1;const _0x1baa5d=_0x414d49[_0x208769(0x2e2)](_0x21bcdc[_0x208769(0x346)][_0x208769(0x371)]);if(!_0x1baa5d)throw new Error(_0x208769(0x1e7));const _0x74e5e5=_0x1baa5d[_0x208769(0x2a4)](),_0x129f2d=_0x1baa5d[_0x208769(0x252)]();if(_0x21bcdc[_0x208769(0x346)][_0x208769(0x458)]>_0x74e5e5||_0x21bcdc[_0x208769(0x346)][_0x208769(0x38d)]>_0x129f2d)throw new Error(_0x208769(0x37f));const _0x4f5828=[{'id':Fe['id'],'params':{'unitId':_0x27a252,'subUnitId':_0x21bcdc[_0x208769(0x346)][_0x208769(0x371)],'pivotTableId':_0x21bcdc[_0x208769(0x485)],'targetCellPosition':{'row':_0x21bcdc[_0x208769(0x346)]['row'],'col':_0x21bcdc[_0x208769(0x346)][_0x208769(0x38d)]}}}],_0x16379c=[{'id':Fe['id'],'params':{'unitId':_0x27a252,'subUnitId':_0x4e3112,'pivotTableId':_0x21bcdc[_0x208769(0x485)],'targetCellPosition':{'row':_0x3a66d[_0x208769(0x346)][_0x208769(0x458)],'col':_0x3a66d[_0x208769(0x346)][_0x208769(0x38d)]}}}];return f['sequenceExecute'](_0x4f5828,_0x16a669)&&_0x1daf9c['pushUndoRedo']({'unitID':_0x27a252,'undoMutations':_0x16379c,'redoMutations':_0x4f5828}),!0x0;}},so={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x20a238,_0xcb32f3){const _0x241009=_0xaf6d92;var _0x15e6fa;if(!_0xcb32f3)return!0x1;const _0x578834=_0x20a238[_0x241009(0x447)](f[_0x241009(0x48e)]),_0x5d9bcb=U[_0x241009(0x402)](_0x578834);if(!_0x5d9bcb)return!0x1;const {unitId:_0x1db317,subUnitId:_0x5209cf,workbook:_0x33c55a}=_0x5d9bcb,{row:_0x29d327,col:_0x1c0725}=_0xcb32f3,_0x3747ec=_0x20a238[_0x241009(0x447)](exports[_0x241009(0x344)]),_0x50148e=_0x3747ec['getPivotTableIdByCell'](_0x1db317,_0x5209cf,_0x29d327,_0x1c0725);if(!_0x50148e)return!0x1;const _0x1576e8=(_0x15e6fa=_0x3747ec['getPivotItemRenderInfoCache'](_0x1db317,_0x5209cf,_0x50148e))==null?void 0x0:_0x15e6fa['areaInfo'];if(!_0x1576e8)return!0x1;const _0x1556c0=_0x20a238[_0x241009(0x447)](exports[_0x241009(0x36f)])[_0x241009(0x266)](_0x1db317,_0x5209cf,_0x50148e);if(!_0x1556c0)return!0x1;const {rowInfo:_0x497c78,colInfo:_0x5a310f}=_0x1576e8,_0x42f45d=_0x497c78[_0x29d327]['paths'],_0x21dad3=_0x5a310f[_0x1c0725]['paths'],_0x6a7a60=_0x497c78[_0x29d327]['level'],_0x555ca5=_0x5a310f[_0x1c0725][_0x241009(0x1f0)],_0x25a3db=_0x42f45d[_0x241009(0x3a8)](_0x21dad3),_0x2b4ded=_0x1556c0[_0x241009(0x3a7)][_0x241009(0x3d6)][_0x241009(0x464)](0x0,_0x6a7a60),_0x50660c=_0x1556c0[_0x241009(0x3a7)][_0x241009(0x41a)][_0x241009(0x464)](0x0,_0x555ca5),_0x4bd410=_0x2b4ded['concat'](_0x50660c),_0x58b084=_0x25a3db[_0x241009(0x3dd)]((_0x46254f,_0x1f3af8)=>[_0x46254f,_0x4bd410[_0x1f3af8]]),_0x3526c4=(await _0x20a238['get'](exports[_0x241009(0x327)])[_0x241009(0x3fc)]({'unitId':_0x1db317,'subUnitId':_0x5209cf,'pivotTableId':_0x50148e,'params':{'type':B[_0x241009(0x2be)],'drillDown':{'tuple':_0x58b084}}}))[_0x241009(0x427)][_0x241009(0x36c)];if(!_0x3526c4)return!0x1;const {indexes:_0x1af347,range:_0x2e9c64,sourceUnitId:_0x82b9a9,sourceSubUnitId:_0x5ae315,formatMap:_0x49ad02}=_0x3526c4,{startRow:_0x1abd4c,endRow:_0x5e2898,startColumn:_0x3be464,endColumn:_0x2e6ac4}=_0x2e9c64,_0x45ed36=new f['ObjectMatrix'](),_0x124400=_0x5e2898-_0x1abd4c,_0x6ddede=_0x2e6ac4-_0x3be464,_0x501719={},_0xe207b=U[_0x241009(0x402)](_0x578834,{'unitId':_0x82b9a9,'subUnitId':_0x5ae315});if(!_0xe207b)return!0x1;const _0x54ef9d=oe[_0x241009(0x40a)],_0x3136f8=oe['subTotalStyle'],_0x687598=oe['subTotalStyle'],_0x2c1743=_0x33c55a[_0x241009(0x44c)]()['setValue'](_0x54ef9d),_0x50427c=_0x33c55a[_0x241009(0x44c)]()['setValue'](_0x3136f8),_0x30a264=_0x33c55a[_0x241009(0x44c)]()[_0x241009(0x491)](_0x687598),{worksheet:_0x53375d}=_0xe207b;let _0x2694ed=0x0;const _0x2f4590=0x1;_0x1af347[_0x241009(0x25e)](_0x504d25=>{const _0x5202e9=_0x241009;for(let _0x114443=0x0;_0x114443<=_0x2e6ac4-_0x3be464;_0x114443++)_0x45ed36[_0x5202e9(0x491)](_0x2694ed,_0x114443,_0x53375d[_0x5202e9(0x21c)](_0x504d25+_0x2e9c64[_0x5202e9(0x3df)]+_0x2f4590,_0x114443));_0x2694ed++;});for(let _0x3f4f71=_0x3be464;_0x3f4f71<=_0x2e6ac4;_0x3f4f71++){const _0x2cec6f=_0x53375d['getCellRaw'](_0x1abd4c,_0x3f4f71);_0x501719[_0x1abd4c]||(_0x501719[_0x1abd4c]={}),_0x501719[_0x1abd4c][_0x3f4f71]={..._0x2cec6f,'s':_0x2c1743};}let _0x25f765=0x1;const _0x507c4b={},_0x33537e={};_0x45ed36['forRow']((_0x383eee,_0x26a4fe)=>{const _0x524799=_0x241009;_0x26a4fe[_0x524799(0x25e)](_0xc58a91=>{const _0x176f7b=_0x524799,_0xe5bb3f=_0x45ed36[_0x176f7b(0x3f7)](_0x383eee,_0xc58a91);if(_0x501719[_0x25f765]||(_0x501719[_0x25f765]={}),_0x501719[_0x25f765][_0xc58a91]={..._0xe5bb3f,'s':_0x25f765%0x2===0x0?_0x30a264:_0x50427c},_0x49ad02[_0xc58a91]&&_0x383eee>=0x0){const _0x1cabd6=_0x25f765%0x2===0x0;let _0x1b58cd=_0x1cabd6?_0x33537e[_0xc58a91]:_0x507c4b[_0xc58a91];_0x1b58cd||(_0x1b58cd=_0x33c55a['getStyles']()[_0x176f7b(0x491)]({..._0x1cabd6?_0x687598:_0x3136f8,'n':{'pattern':_0x49ad02[_0xc58a91]}}),_0x1cabd6?_0x33537e[_0xc58a91]=_0x1b58cd:_0x507c4b[_0xc58a91]=_0x1b58cd),_0x501719[_0x25f765][_0xc58a91]['s']=_0x1b58cd;}}),_0x25f765++;});const _0x2b92bc=new f['ObjectMatrix'](_0x501719),_0x3361c7={};_0x2b92bc['forValue']((_0x1d91b9,_0x42b79d,_0x5e0727)=>{_0x3361c7[_0x1d91b9]||(_0x3361c7[_0x1d91b9]={}),_0x3361c7[_0x1d91b9][_0x42b79d]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x3ef7a4=[],_0x2b2b35=[],_0x4a5268=_0x33c55a[_0x241009(0x201)]()[_0x241009(0x3a2)],_0xce1cc9=f[_0x241009(0x1c1)]({'rowCount':Math[_0x241009(0x3d2)](f['DEFAULT_WORKSHEET_ROW_COUNT'],_0x124400+0xa),'columnCount':Math[_0x241009(0x3d2)](f['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x6ddede+0x5)}),_0x1b5379=_0x20a238['get'](f[_0x241009(0x2da)]);_0xce1cc9['id']=f[_0x241009(0x215)](),_0xce1cc9[_0x241009(0x246)]=_0x33c55a[_0x241009(0x198)](''+_0x1b5379['t'](_0x241009(0x298)));const _0x43bd57={'index':_0x4a5268,'sheet':_0xce1cc9,'unitId':_0x1db317},_0x43b2eb=U['InsertSheetUndoMutationFactory'](_0x20a238,_0x43bd57);_0x2b2b35[_0x241009(0x3bd)]({'id':U[_0x241009(0x196)]['id'],'params':_0x43bd57}),_0x3ef7a4[_0x241009(0x3bd)]({'id':U['RemoveSheetMutation']['id'],'params':_0x43b2eb}),_0x2b2b35[_0x241009(0x3bd)]({'id':U[_0x241009(0x2f6)]['id'],'params':{'unitId':_0x1db317,'subUnitId':_0xce1cc9['id'],'cellValue':_0x501719}}),_0x3ef7a4[_0x241009(0x35d)]({'id':U[_0x241009(0x2f6)]['id'],'params':{'unitId':_0x1db317,'subUnitId':_0xce1cc9['id'],'cellValue':_0x3361c7}});const _0x3a3eb1={'startRow':0x0,'startColumn':0x0,'endRow':_0x25f765-0x1,'endColumn':_0x2e6ac4};_0x2b2b35[_0x241009(0x3bd)]({'id':Ot[_0x241009(0x20b)]['id'],'params':{'unitId':_0x1db317,'subUnitId':_0xce1cc9['id'],'range':_0x3a3eb1}}),_0x3ef7a4[_0x241009(0x35d)]({'id':Ot[_0x241009(0x42e)]['id'],'params':{'unitId':_0x1db317,'subUnitId':_0xce1cc9['id']}});const _0x7596d=_0x20a238[_0x241009(0x447)](f[_0x241009(0x22e)]);return f['sequenceExecute'](_0x2b2b35,_0x7596d)&&_0x20a238['get'](f[_0x241009(0x39f)])[_0x241009(0x469)]({'unitID':_0x1db317,'undoMutations':_0x3ef7a4,'redoMutations':_0x2b2b35}),!0x0;}},ro={'type':f[_0xaf6d92(0x3cd)]['COMMAND'],'id':_0xaf6d92(0x2d9),async 'handler'(_0x4af567,_0x18bb9f){const _0x5e7570=_0xaf6d92;if(!_0x18bb9f)return!0x1;const _0x14e4f8=_0x4af567[_0x5e7570(0x447)](f[_0x5e7570(0x22e)]),_0x171d8e=_0x4af567['get'](exports['SheetsPivotRPCService']),_0x31621f=_0x4af567[_0x5e7570(0x447)](f[_0x5e7570(0x39f)]),{pivotTableId:_0x57bb5c,fieldIds:_0x5819d5,unitId:_0xb235eb,subUnitId:_0x3e42d8}=_0x18bb9f,_0xd22ea8=(await _0x171d8e[_0x5e7570(0x3fc)]({'unitId':_0xb235eb,'subUnitId':_0x3e42d8,'pivotTableId':_0x57bb5c,'params':{'type':B[_0x5e7570(0x4a9)],'removePivotField':{'fieldIds':_0x5819d5}}}))[_0x5e7570(0x427)][_0x5e7570(0x2d2)];if(!_0xd22ea8)return!0x1;const {view:_0x2b1734,changesets:_0x525692,isEmpty:_0xe25a04,pivotTableConfig:_0x12659a}=_0xd22ea8,_0x4dc849=_0x12659a['targetCellInfo'],_0x104f75=new m[(_0x5e7570(0x2f5))]();_0x104f75[_0x5e7570(0x269)](_0x2b1734);const _0x1c38b4={'cellInfo':_0x4dc849,'view':_0x104f75,'isEmpty':_0xe25a04};if(!await _0x4af567[_0x5e7570(0x447)](exports[_0x5e7570(0x20f)])[_0x5e7570(0x34a)][_0x5e7570(0x24b)](re)(!0x0,_0x1c38b4))return!0x1;const _0x5ecd31=ce(_0x4af567,_0x104f75,_0x4dc849,_0xe25a04),_0x2efc57=ge(_0x4af567,_0x1c38b4),{redos:_0x2d5527,undos:_0x2f59b7}=ae(_0x14e4f8,{'pivotTableId':_0x57bb5c,'unitId':_0xb235eb,'subUnitId':_0x3e42d8},_0x525692);return f[_0x5e7570(0x239)]([..._0x5ecd31[_0x5e7570(0x41f)],..._0x2efc57[_0x5e7570(0x41f)],..._0x2d5527],_0x14e4f8),_0x31621f['pushUndoRedo']({'unitID':_0xb235eb,'redoMutations':[..._0x5ecd31[_0x5e7570(0x41f)],..._0x2efc57[_0x5e7570(0x41f)],..._0x2d5527],'undoMutations':[..._0x5ecd31[_0x5e7570(0x422)],..._0x2efc57[_0x5e7570(0x422)],..._0x2f59b7]}),!0x0;}},lo={'type':f['CommandType'][_0xaf6d92(0x347)],'id':_0xaf6d92(0x484),async 'handler'(_0x3ae16e,_0xe0ad4e){const _0x17e800=_0xaf6d92;if(!_0xe0ad4e)return!0x1;const _0x5ba3c3=_0x3ae16e[_0x17e800(0x447)](f[_0x17e800(0x22e)]),_0x5b88a5=_0x3ae16e[_0x17e800(0x447)](f['IUndoRedoService']),_0x3551f5=_0x3ae16e[_0x17e800(0x447)](exports['SheetsPivotRPCService']),{resetArea:_0x577bf5,pivotTableId:_0x415865,unitId:_0x2be54c,subUnitId:_0x3695b2}=_0xe0ad4e,_0x1d9efd=(await _0x3551f5['getPivotDisplayConfig']({'unitId':_0x2be54c,'subUnitId':_0x3695b2,'pivotTableId':_0x415865,'params':{'type':B[_0x17e800(0x3c9)],'resetPivotTable':{'pivotTableId':_0x415865,'resetArea':_0x577bf5}}}))['result']['resetPivotTable'];if(!_0x1d9efd)return!0x1;const {changesets:_0x5082ed}=_0x1d9efd,{redos:_0x5b3193,undos:_0x2f41ef}=ae(_0x5ba3c3,{'pivotTableId':_0x415865,'unitId':_0x2be54c,'subUnitId':_0x3695b2},_0x5082ed);return f[_0x17e800(0x239)](_0x5b3193,_0x5ba3c3),_0x5b88a5[_0x17e800(0x469)]({'unitID':_0x2be54c,'redoMutations':_0x5b3193,'undoMutations':_0x2f41ef}),!0x0;}},co={'type':f[_0xaf6d92(0x3cd)]['COMMAND'],'id':_0xaf6d92(0x41c),async 'handler'(_0x14eac7,_0x3472c9){const _0x586f40=_0xaf6d92,_0x5d6598=_0x14eac7[_0x586f40(0x447)](f[_0x586f40(0x22e)]),_0xe89d24=_0x14eac7[_0x586f40(0x447)](exports[_0x586f40(0x327)]),_0x8f12ea=_0x14eac7[_0x586f40(0x447)](exports['SheetsPivotTableAdaptorModel']),_0x4ff70b=_0x14eac7[_0x586f40(0x447)](f['IUniverInstanceService']),_0xbf4461=_0x14eac7[_0x586f40(0x447)](f[_0x586f40(0x2da)]),_0x411267=_0x14eac7[_0x586f40(0x447)](f[_0x586f40(0x39f)]);if(!_0x3472c9)return!0x1;const {unitId:_0x53eee3,subUnitId:_0x2fef75,row:_0x238a62,col:_0x989cca,collapse:_0x47a450}=_0x3472c9,_0x4d5335=_0x4ff70b[_0x586f40(0x43d)](_0x53eee3);if(!_0x4d5335||!_0x4d5335[_0x586f40(0x2e2)](_0x2fef75))return!0x1;const _0x3f6614=_0x8f12ea[_0x586f40(0x25c)](_0x53eee3,_0x2fef75,_0x238a62,_0x989cca);if(!_0x3f6614)return!0x1;const _0x2af0b8=_0x8f12ea[_0x586f40(0x416)](_0x53eee3,_0x2fef75,_0x3f6614);if(!_0x2af0b8)return!0x1;const _0x4ed1c3=f[_0x586f40(0x423)](_0x238a62,_0x989cca),{rangesInfo:_0x30d3b8,areaInfo:_0x4dba74,headerMap:_0x420e7a}=_0x2af0b8;if(!_0x30d3b8||!_0x4dba74||!_0x420e7a)return!0x1;const _0x209dea=Object[_0x586f40(0x36b)](_0x30d3b8)[_0x586f40(0x1f6)](_0x52d404=>_0x30d3b8[_0x52d404][_0x586f40(0x44a)](_0x1bd76a=>f[_0x586f40(0x43a)][_0x586f40(0x1a4)](_0x1bd76a,_0x4ed1c3)));let _0x3fca4a;_0x209dea===_0x586f40(0x2b8)?_0x3fca4a=_0x420e7a[_0x586f40(0x262)][_0x989cca]:_0x209dea==='colRanges'&&(_0x3fca4a=_0x420e7a['colHeaderMap'][_0x238a62]);const _0x437980=_0x3fca4a==null?void 0x0:_0x3fca4a[_0x586f40(0x1c7)],_0x10ab04=_0x8f12ea[_0x586f40(0x31a)](_0x53eee3,_0x2fef75,_0x238a62,_0x989cca);let _0x2c2b24=_0x10ab04==null?void 0x0:_0x10ab04['v'];if(_0x2c2b24===_0xbf4461['t']('sheets-pivot.blank')&&(_0x2c2b24=m[_0x586f40(0x3a6)][_0x586f40(0x470)]),_0x2c2b24==null||!_0x3f6614||!_0x437980)return!0x1;const _0x4d2416=await _0xe89d24[_0x586f40(0x3fc)]({'unitId':_0x53eee3,'subUnitId':_0x2fef75,'pivotTableId':_0x3f6614,'params':{'type':B[_0x586f40(0x292)],'setPivotCollapse':{'tableFieldId':_0x437980,'collapse':_0x47a450,'item':_0x2c2b24}}}),_0x1a4e31=_0x4d2416==null?void 0x0:_0x4d2416['result'][_0x586f40(0x3cf)];if(!_0x1a4e31)return!0x1;const {view:_0xa158,pivotTableConfig:_0x1e6484,isEmpty:_0x2e4014,changesets:_0x41db65}=_0x1a4e31,_0x82bc32=new m[(_0x586f40(0x2f5))]();_0x82bc32['formJSON'](_0xa158);const _0xff5893=_0x1e6484[_0x586f40(0x346)],_0x3c5fd3={'cellInfo':_0xff5893,'view':_0x82bc32,'isEmpty':_0x2e4014};if(!await _0x14eac7[_0x586f40(0x447)](exports['SheetsPivotTableService'])[_0x586f40(0x34a)][_0x586f40(0x24b)](re)(!0x0,_0x3c5fd3))return!0x1;const _0xb42002=ce(_0x14eac7,_0x82bc32,_0xff5893,_0x2e4014),_0xcd050f=ge(_0x14eac7,_0x3c5fd3),{redos:_0xb70df,undos:_0xa011f0}=ae(_0x5d6598,{'pivotTableId':_0x3f6614,'unitId':_0x53eee3,'subUnitId':_0x2fef75},_0x41db65);return f[_0x586f40(0x239)]([..._0xb42002[_0x586f40(0x41f)],..._0xcd050f[_0x586f40(0x41f)],..._0xb70df],_0x5d6598),_0x411267['pushUndoRedo']({'unitID':_0x53eee3,'redoMutations':[..._0xb42002[_0x586f40(0x41f)],..._0xcd050f[_0x586f40(0x41f)],..._0xb70df],'undoMutations':[..._0xb42002[_0x586f40(0x422)],..._0xcd050f[_0x586f40(0x422)],..._0xa011f0]}),!0x0;}},uo={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x465009,_0x538f6d){const _0x5bc5ed=_0xaf6d92;if(!_0x538f6d)return!0x1;const _0x4ce2e1=_0x465009[_0x5bc5ed(0x447)](f[_0x5bc5ed(0x22e)]),_0x20c6e2=_0x465009['get'](f[_0x5bc5ed(0x39f)]),_0x39ac4f=_0x465009[_0x5bc5ed(0x447)](exports[_0x5bc5ed(0x327)]),{pivotTableConfig:_0x52f3e2,pivotTableId:_0x28e970,unitId:_0x279a07,subUnitId:_0x23b69f}=_0x538f6d,_0x2153c6=(await _0x39ac4f['getPivotDisplayConfig']({'unitId':_0x279a07,'subUnitId':_0x23b69f,'pivotTableId':_0x28e970,'params':{'type':B['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x28e970,'pivotTableConfig':_0x52f3e2}}}))[_0x5bc5ed(0x427)]['setPivotTableConfig'];if(!_0x2153c6)return!0x1;const {changesets:_0x19b486}=_0x2153c6,{redos:_0x44585a,undos:_0x3228ab}=ae(_0x4ce2e1,{'pivotTableId':_0x28e970,'unitId':_0x279a07,'subUnitId':_0x23b69f},_0x19b486);return f[_0x5bc5ed(0x239)](_0x44585a,_0x4ce2e1),_0x20c6e2[_0x5bc5ed(0x469)]({'unitID':_0x279a07,'redoMutations':_0x44585a,'undoMutations':_0x3228ab}),!0x0;}},go={'type':f['CommandType'][_0xaf6d92(0x347)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x14cd30,_0x199300){const _0xebb6f7=_0xaf6d92;if(!_0x199300)return!0x1;const _0x483bb9=_0x14cd30[_0xebb6f7(0x447)](f['ICommandService']),{pivotTableId:_0x2b9eb4,tableFieldId:_0x4e2d50,items:_0x1f733c,unitId:_0xe005b3,subUnitId:_0x3c64f6,isAll:_0x194dcb}=_0x199300,_0x317789=_0x14cd30[_0xebb6f7(0x447)](exports[_0xebb6f7(0x327)]),_0x14d019=_0x14cd30[_0xebb6f7(0x447)](f[_0xebb6f7(0x39f)]),_0x4d6dde=(await _0x317789[_0xebb6f7(0x3fc)]({'unitId':_0xe005b3,'subUnitId':_0x3c64f6,'pivotTableId':_0x2b9eb4,'params':{'type':B[_0xebb6f7(0x4a1)],'setPivotFilter':{'tableFieldId':_0x4e2d50,'items':_0x1f733c,'isAll':_0x194dcb}}}))['result'][_0xebb6f7(0x45c)];if(!_0x4d6dde)return!0x1;const {changesets:_0x18a81b,pivotTableConfig:_0x2329ca,isEmpty:_0x528bdc,view:_0x73e95e}=_0x4d6dde,_0x21c104=_0x2329ca['targetCellInfo'],_0x32989b=new m[(_0xebb6f7(0x2f5))]();_0x32989b['formJSON'](_0x73e95e);const _0x37dfb8={'cellInfo':_0x21c104,'view':_0x32989b,'isEmpty':_0x528bdc};if(!await _0x14cd30[_0xebb6f7(0x447)](exports[_0xebb6f7(0x20f)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](re)(!0x0,_0x37dfb8))return!0x1;const _0x6b08a7=ce(_0x14cd30,_0x32989b,_0x21c104,_0x528bdc),_0x40666c=ge(_0x14cd30,_0x37dfb8),{undos:_0x50190a,redos:_0x3900f4}=ae(_0x483bb9,{'pivotTableId':_0x2b9eb4,'unitId':_0xe005b3,'subUnitId':_0x3c64f6},_0x18a81b);return f[_0xebb6f7(0x239)]([..._0x6b08a7[_0xebb6f7(0x41f)],..._0x40666c[_0xebb6f7(0x41f)],..._0x3900f4],_0x483bb9),_0x14d019[_0xebb6f7(0x469)]({'unitID':_0xe005b3,'redoMutations':[..._0x6b08a7['redos'],..._0x40666c[_0xebb6f7(0x41f)],..._0x3900f4],'undoMutations':[..._0x6b08a7['undos'],..._0x40666c[_0xebb6f7(0x422)],..._0x50190a]}),!0x0;}},fo={'type':f['CommandType'][_0xaf6d92(0x347)],'id':_0xaf6d92(0x323),async 'handler'(_0x10daea,_0x521687){const _0x532c2e=_0xaf6d92;if(!_0x521687)return!0x1;const _0x59ae20=_0x10daea[_0x532c2e(0x447)](f['ICommandService']),_0x20f1fd=_0x10daea[_0x532c2e(0x447)](f['IUndoRedoService']),_0x40ce55=_0x10daea['get'](exports[_0x532c2e(0x327)]),{info:_0x30c8d0,tableFieldId:_0x53d266,pivotTableId:_0x46258e,unitId:_0x515b96,subUnitId:_0x1457d8}=_0x521687,_0x2aa0a9=(await _0x40ce55[_0x532c2e(0x3fc)]({'unitId':_0x515b96,'subUnitId':_0x1457d8,'pivotTableId':_0x46258e,'params':{'type':B[_0x532c2e(0x2cd)],'setPivotSort':{'tableFieldId':_0x53d266,'info':_0x30c8d0}}}))[_0x532c2e(0x427)][_0x532c2e(0x31e)];if(!_0x2aa0a9)return!0x1;const {changesets:_0x38d672}=_0x2aa0a9,{redos:_0xae9f04,undos:_0xde2030}=ae(_0x59ae20,{'pivotTableId':_0x46258e,'unitId':_0x515b96,'subUnitId':_0x1457d8},_0x38d672);return f[_0x532c2e(0x239)](_0xae9f04,_0x59ae20),_0x20f1fd[_0x532c2e(0x469)]({'unitID':_0x515b96,'redoMutations':_0xae9f04,'undoMutations':_0xde2030}),!0x0;}},vo={'type':f[_0xaf6d92(0x3cd)]['COMMAND'],'id':_0xaf6d92(0x395),async 'handler'(_0x5ff100,_0x2a2c6f){const _0x58fb4b=_0xaf6d92;if(!_0x2a2c6f)return!0x1;const _0x34ed3a=_0x5ff100[_0x58fb4b(0x447)](f['ICommandService']),{pivotTableId:_0x44f43f,fieldId:_0x5421fd,valueFilterInfo:_0xaf6628,unitId:_0x22567d,subUnitId:_0x12a180}=_0x2a2c6f,_0xd8b392=_0x5ff100[_0x58fb4b(0x447)](exports['SheetsPivotRPCService']),_0xd74fb1=_0x5ff100[_0x58fb4b(0x447)](f[_0x58fb4b(0x39f)]),_0x132411=(await _0xd8b392[_0x58fb4b(0x3fc)]({'unitId':_0x22567d,'subUnitId':_0x12a180,'pivotTableId':_0x44f43f,'params':{'type':B[_0x58fb4b(0x310)],'setValuePivotFilter':{'tableFieldId':_0x5421fd,'filterInfo':_0xaf6628}}}))['result'][_0x58fb4b(0x445)];if(!_0x132411)return!0x1;const {changesets:_0x144db8,pivotTableConfig:_0x36c6a5,isEmpty:_0x582982,view:_0x219b33}=_0x132411,_0x3557ac=_0x36c6a5[_0x58fb4b(0x346)],_0x58a7dd=new m[(_0x58fb4b(0x2f5))]();_0x58a7dd[_0x58fb4b(0x269)](_0x219b33);const _0x5e1fd={'cellInfo':_0x3557ac,'view':_0x58a7dd,'isEmpty':_0x582982};if(!await _0x5ff100[_0x58fb4b(0x447)](exports['SheetsPivotTableService'])[_0x58fb4b(0x34a)][_0x58fb4b(0x24b)](re)(!0x0,_0x5e1fd))return!0x1;const _0xc27ca1=ce(_0x5ff100,_0x58a7dd,_0x3557ac,_0x582982),_0x1a5079=ge(_0x5ff100,_0x5e1fd),{undos:_0x3c4968,redos:_0x1a15dd}=ae(_0x34ed3a,{'pivotTableId':_0x44f43f,'unitId':_0x22567d,'subUnitId':_0x12a180},_0x144db8);return f[_0x58fb4b(0x239)]([..._0xc27ca1['redos'],..._0x1a5079[_0x58fb4b(0x41f)],..._0x1a15dd],_0x34ed3a),_0xd74fb1[_0x58fb4b(0x469)]({'unitID':_0x22567d,'redoMutations':[..._0xc27ca1[_0x58fb4b(0x41f)],..._0x1a5079[_0x58fb4b(0x41f)],..._0x1a15dd],'undoMutations':[..._0xc27ca1[_0x58fb4b(0x422)],..._0x1a5079[_0x58fb4b(0x422)],..._0x3c4968]}),!0x0;}},yt={'id':'sheet.mutation.update-date-group','type':f[_0xaf6d92(0x3cd)]['MUTATION'],'handler':(_0x67821f,_0x6e405f)=>{const _0x41b3c5=_0xaf6d92;if(!_0x6e405f)return!0x1;if(!!_0x67821f['get'](f[_0x41b3c5(0x37c)])[_0x41b3c5(0x3a3)](Q))return!0x0;const {unitId:_0x371057,subUnitId:_0x576e0e,pivotTableId:_0x3897b9,tableFieldId:_0x25ed31,dateType:_0x5eb75a}=_0x6e405f,_0x3eb101=_0x67821f['get'](exports['SheetsPivotDataSourceModel']),_0x689aa0=_0x3eb101[_0x41b3c5(0x480)](_0x3897b9);if(!_0x689aa0)return!0x1;const _0x457f76=_0x689aa0[_0x41b3c5(0x31f)](_0x25ed31);if(!_0x457f76)return!0x1;const _0x5b7976=_0x457f76['getOriginFieldId'](),_0x11e4d4=_0x689aa0[_0x41b3c5(0x227)](_0x5b7976),_0x386f34=(_0x11e4d4==null?void 0x0:_0x11e4d4[_0x41b3c5(0x238)]())+'\x20'+Xt(_0x67821f,_0x5eb75a);_0x3eb101[_0x41b3c5(0x332)](_0x371057,_0x3897b9)['setDisplayName'](_0x457f76['id'],_0x386f34);const _0x43897c=_0x689aa0[_0x41b3c5(0x35c)](_0x25ed31);if(!_0x43897c)return!0x1;_0x689aa0['renameField'](_0x43897c['getId'](),_0x386f34),_0x457f76[_0x41b3c5(0x22b)](_0x5eb75a);const _0x3a009b=_0x3eb101[_0x41b3c5(0x266)](_0x371057,_0x576e0e,_0x3897b9);return _0x3eb101[_0x41b3c5(0x443)]({'unitId':_0x371057,'subUnitId':_0x576e0e,'token':_0x3897b9,'type':W[_0x41b3c5(0x29a)],'pivotConfig':_0x3a009b}),!0x0;}},ho={'id':_0xaf6d92(0x3e9),'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'handler':(_0x2bab46,_0x4c7108)=>{const _0x28bdd7=_0xaf6d92;if(!_0x4c7108)return!0x1;const _0x24e1ac=_0x2bab46[_0x28bdd7(0x447)](f['IUndoRedoService']),{unitId:_0x145635,subUnitId:_0x5d7b97,pivotTableId:_0x569e0c,tableFieldId:_0x209a0c}=_0x4c7108,_0xb6f3ab=[],_0x402f9b=[],_0x163203=_0x2bab46[_0x28bdd7(0x447)](exports[_0x28bdd7(0x36f)]),_0x5ec5ca=_0x163203[_0x28bdd7(0x332)](_0x145635,_0x569e0c),_0x41fc1a=_0x163203[_0x28bdd7(0x266)](_0x145635,_0x5d7b97,_0x569e0c);if(!(_0x41fc1a!=null&&_0x41fc1a[_0x28bdd7(0x3a7)][_0x28bdd7(0x2b9)]))return!0x1;const _0x4a2be1=Object[_0x28bdd7(0x46c)](_0x41fc1a[_0x28bdd7(0x3a7)]['dimension'])[_0x28bdd7(0x1f6)](_0x2b50f2=>_0x2b50f2['id']===_0x209a0c);if(!_0x4a2be1)return!0x1;const _0x1fc3ff=_0x4a2be1[_0x28bdd7(0x455)];if(!(_0x5ec5ca!=null&&_0x5ec5ca['fields']))return!0x1;const _0x5e04b5=Object[_0x28bdd7(0x46c)](_0x5ec5ca==null?void 0x0:_0x5ec5ca[_0x28bdd7(0x32f)])[_0x28bdd7(0x1f6)](_0x47b5da=>_0x47b5da['id']===_0x1fc3ff);if(!_0x5e04b5)return!0x1;m[_0x28bdd7(0x490)](_0x5e04b5)&&_0xb6f3ab['push']({'id':yt['id'],'params':{..._0x4c7108,'dateType':_0x5e04b5[_0x28bdd7(0x2de)]}}),_0x402f9b[_0x28bdd7(0x3bd)]({'id':yt['id'],'params':{..._0x4c7108}});const _0x598339=_0x2bab46[_0x28bdd7(0x447)](f['ICommandService']);return f[_0x28bdd7(0x239)](_0x402f9b,_0x598339)&&_0x24e1ac[_0x28bdd7(0x469)]({'unitID':_0x145635,'undoMutations':_0xb6f3ab,'redoMutations':_0x402f9b}),!0x0;}},po={'type':f['CommandType'][_0xaf6d92(0x347)],'id':_0xaf6d92(0x359),async 'handler'(_0x471a9,_0x441afa){const _0x5e11ef=_0xaf6d92;if(!_0x441afa)return!0x1;const _0x7eb1e6=_0x471a9['get'](f[_0x5e11ef(0x22e)]),_0x44c400=_0x471a9[_0x5e11ef(0x447)](f['IUndoRedoService']),_0x19f2c6=_0x471a9[_0x5e11ef(0x447)](exports[_0x5e11ef(0x327)]),{displayName:_0x1f65ea,subtotalType:_0x523482,format:_0x59d86c,tableFieldId:_0x367452,pivotTableId:_0x220cfa,unitId:_0x3adf32,subUnitId:_0x5346e1}=_0x441afa,_0x2544a6=(await _0x19f2c6['getPivotDisplayConfig']({'unitId':_0x3adf32,'subUnitId':_0x5346e1,'pivotTableId':_0x220cfa,'params':{'type':B['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x367452,'displayName':_0x1f65ea,'subtotalType':_0x523482,'format':_0x59d86c}}}))['result'][_0x5e11ef(0x19c)];if(!_0x2544a6)return!0x1;const {changesets:_0x143200,view:_0x426f84,pivotTableConfig:_0x5cdf28,isEmpty:_0x4a00fb}=_0x2544a6,_0x23b220=_0x5cdf28[_0x5e11ef(0x346)],_0x424127=new m['PivotView']();_0x424127[_0x5e11ef(0x269)](_0x426f84);const _0x2127e3={'cellInfo':_0x23b220,'view':_0x424127,'isEmpty':_0x4a00fb};if(!await _0x471a9['get'](exports[_0x5e11ef(0x20f)])[_0x5e11ef(0x34a)]['fetchThroughAsyncInterceptors'](re)(!0x0,_0x2127e3))return!0x1;const _0x49e6ee=ce(_0x471a9,_0x424127,_0x23b220,_0x4a00fb),_0x3b1f3e=ge(_0x471a9,_0x2127e3),{undos:_0x241061,redos:_0xb8490d}=ae(_0x7eb1e6,{'pivotTableId':_0x220cfa,'unitId':_0x3adf32,'subUnitId':_0x5346e1},_0x143200);return f[_0x5e11ef(0x239)]([..._0x49e6ee[_0x5e11ef(0x41f)],..._0x3b1f3e[_0x5e11ef(0x41f)],..._0xb8490d],_0x7eb1e6),_0x44c400[_0x5e11ef(0x469)]({'unitID':_0x3adf32,'redoMutations':[..._0x49e6ee[_0x5e11ef(0x41f)],..._0x3b1f3e[_0x5e11ef(0x41f)],..._0xb8490d],'undoMutations':[..._0x49e6ee[_0x5e11ef(0x422)],..._0x3b1f3e[_0x5e11ef(0x422)],..._0x241061]}),!0x0;}},mt={'type':f['CommandType']['MUTATION'],'id':_0xaf6d92(0x354),'handler'(_0x3c1275,_0x44da2d){const _0xe1c14=_0xaf6d92;if(!_0x44da2d)return!0x1;if(!!_0x3c1275[_0xe1c14(0x447)](f[_0xe1c14(0x37c)])[_0xe1c14(0x3a3)](Q))return!0x0;const _0xe307ed=_0x3c1275[_0xe1c14(0x447)](exports[_0xe1c14(0x384)]),{pivotTableId:_0x13406d,deleteIds:_0x3c3852,collectionJSON:_0x2f9fdd,dataRangeInfo:_0x4a3fb1,unitId:_0x10abf9,subUnitId:_0x332898}=_0x44da2d,_0xf89ca9=_0xe307ed[_0xe1c14(0x480)](_0x13406d),_0xb9fa40=_0xe307ed[_0xe1c14(0x266)](_0x10abf9,_0x332898,_0x13406d);if(!_0xf89ca9||!_0xb9fa40)return!0x1;const {collection:_0x149bcd,updateDataFieldList:_0x4cb116}=_0xe307ed[_0xe1c14(0x235)](_0x13406d,_0x2f9fdd,_0x4a3fb1,_0xb9fa40[_0xe1c14(0x346)]);_0xe307ed[_0xe1c14(0x1a9)](_0x149bcd,_0x4cb116,_0x4a3fb1),_0xf89ca9[_0xe1c14(0x413)](_0x149bcd);for(const _0x1faf21 of _0x3c3852)_0xe307ed[_0xe1c14(0x32d)](_0x4a3fb1[_0xe1c14(0x379)],_0x1faf21);const _0x684a7b=_0xe307ed[_0xe1c14(0x266)](_0x10abf9,_0x332898,_0x13406d);return _0x684a7b['sourceRangeInfo']=JSON[_0xe1c14(0x305)](JSON['stringify'](_0x4a3fb1)),_0xe307ed[_0xe1c14(0x443)]({'unitId':_0x10abf9,'subUnitId':_0x332898,'token':_0x13406d,'type':W[_0xe1c14(0x29a)]}),!0x0;}},mo={'type':f[_0xaf6d92(0x3cd)][_0xaf6d92(0x347)],'id':_0xaf6d92(0x2d8),async 'handler'(_0x4f03f2,_0x42d6c1){const _0x135554=_0xaf6d92,_0xfcf784=_0x4f03f2[_0x135554(0x447)](f[_0x135554(0x22e)]),_0x5b07a7=_0x4f03f2[_0x135554(0x447)](exports[_0x135554(0x327)]),_0x5b55d5=_0x4f03f2[_0x135554(0x447)](f['IUndoRedoService']);if(!_0x42d6c1)return!0x1;const {token:_0x225498,dataRangeInfo:_0x1aac18,unitId:_0x18e565,subUnitId:_0x1d068e}=_0x42d6c1,_0x30165e=[],_0x292e99=[],_0x5c099a=(await _0x5b07a7[_0x135554(0x3fc)]({'unitId':_0x18e565,'subUnitId':_0x1d068e,'pivotTableId':_0x225498,'params':{'type':B[_0x135554(0x1d2)],'updatePivotSource':{'dataRangeInfo':_0x1aac18,'unitId':_0x18e565,'subUnitId':_0x1d068e}}}))[_0x135554(0x427)]['updatePivotSource'];if(!_0x5c099a)return!0x1;const {changesets:_0x5f277e,deleteIds:_0x4b07e4,collectionConfig:_0xb121f7,oldCollectionConfig:_0x5cb51b,view:_0x2781d1,isEmpty:_0x15a401,pivotTableConfig:_0x29c737}=_0x5c099a;_0x292e99[_0x135554(0x3bd)]({'id':mt['id'],'params':{'pivotTableId':_0x225498,'deleteIds':_0x4b07e4,'collectionJSON':_0xb121f7,'dataRangeInfo':_0x1aac18,'unitId':_0x18e565,'subUnitId':_0x1d068e}}),_0x30165e[_0x135554(0x35d)]({'id':mt['id'],'params':{'pivotTableId':_0x225498,'deleteIds':[],'collectionJSON':_0x5cb51b,'dataRangeInfo':_0x29c737[_0x135554(0x32c)],'unitId':_0x18e565,'subUnitId':_0x1d068e}});const _0x2279bf=_0x29c737[_0x135554(0x346)],_0x47ae90=new m[(_0x135554(0x2f5))]();_0x47ae90['formJSON'](_0x2781d1);const _0x21bc77={'cellInfo':_0x2279bf,'view':_0x47ae90,'isEmpty':_0x15a401};if(!await _0x4f03f2['get'](exports[_0x135554(0x20f)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](re)(!0x0,_0x21bc77))return!0x1;const _0x43e3c7=ce(_0x4f03f2,_0x47ae90,_0x2279bf,_0x15a401),_0x225da2=ge(_0x4f03f2,_0x21bc77),{undos:_0x38559d,redos:_0x39e49c}=ae(_0xfcf784,{'pivotTableId':_0x225498,'unitId':_0x18e565,'subUnitId':_0x1d068e},_0x5f277e);return f[_0x135554(0x239)]([..._0x43e3c7[_0x135554(0x41f)],..._0x225da2['redos'],..._0x292e99,..._0x38559d],_0xfcf784),_0x5b55d5[_0x135554(0x469)]({'unitID':_0x18e565,'redoMutations':[..._0x43e3c7[_0x135554(0x41f)],..._0x225da2[_0x135554(0x41f)],..._0x292e99,..._0x38559d],'undoMutations':[..._0x43e3c7[_0x135554(0x422)],..._0x225da2[_0x135554(0x422)],..._0x30165e,..._0x39e49c]}),!0x0;}},Co={'type':f['CommandType'][_0xaf6d92(0x347)],'id':_0xaf6d92(0x204),async 'handler'(_0x458bee,_0x505eeb){const _0x2ef547=_0xaf6d92;if(!_0x505eeb)return!0x1;const _0x4653a4=_0x458bee[_0x2ef547(0x447)](f[_0x2ef547(0x22e)]),_0x36553e=_0x458bee['get'](exports['SheetsPivotRPCService']),_0x129ea2=_0x458bee['get'](f[_0x2ef547(0x48e)]),_0x1c1c5b=_0x458bee[_0x2ef547(0x447)](f[_0x2ef547(0x39f)]),{pivotTableId:_0x7fbf63,position:_0x319d72,index:_0x24f417}=_0x505eeb,_0x45c190=U['getSheetCommandTarget'](_0x129ea2);if(!_0x45c190)return!0x1;const {unitId:_0x5a4308,subUnitId:_0x58db5b}=_0x45c190,_0x400a53=(await _0x36553e[_0x2ef547(0x3fc)]({'unitId':_0x5a4308,'subUnitId':_0x58db5b,'pivotTableId':_0x7fbf63,'params':{'type':B['UpdateValuePosition'],'updateValuePosition':{'position':_0x319d72,'index':_0x24f417}}}))[_0x2ef547(0x427)][_0x2ef547(0x34c)];if(!_0x400a53)return!0x1;const {changesets:_0x3d0c1c,view:_0x4bec44,isEmpty:_0x26a6cb,pivotTableConfig:_0x21ef5f}=_0x400a53,_0x5a043c=_0x21ef5f[_0x2ef547(0x346)],_0x54e62c=new m['PivotView']();_0x54e62c[_0x2ef547(0x269)](_0x4bec44);const _0x2ee651=_0x458bee['get'](exports[_0x2ef547(0x20f)]),_0x10581d={'cellInfo':_0x5a043c,'view':_0x54e62c,'isEmpty':_0x26a6cb};if(!await _0x2ee651[_0x2ef547(0x34a)]['fetchThroughAsyncInterceptors'](re)(!0x0,_0x10581d))return!0x1;const _0x5e8898=ce(_0x458bee,_0x54e62c,_0x5a043c,_0x26a6cb),_0x1ff9aa=ge(_0x458bee,_0x10581d),{undos:_0x33c5a5,redos:_0x590779}=ae(_0x4653a4,{'pivotTableId':_0x7fbf63,'unitId':_0x5a4308,'subUnitId':_0x58db5b},_0x3d0c1c);return f[_0x2ef547(0x239)]([..._0x5e8898[_0x2ef547(0x41f)],..._0x1ff9aa[_0x2ef547(0x41f)],..._0x590779],_0x4653a4),_0x1c1c5b[_0x2ef547(0x469)]({'unitID':_0x5a4308,'redoMutations':[..._0x5e8898[_0x2ef547(0x41f)],..._0x1ff9aa['redos'],..._0x590779],'undoMutations':[..._0x5e8898[_0x2ef547(0x422)],..._0x1ff9aa[_0x2ef547(0x422)],..._0x33c5a5]}),!0x0;}},He={'type':f[_0xaf6d92(0x3cd)]['MUTATION'],'id':_0xaf6d92(0x43b),'handler'(){return!0x0;}};var Un=Object[_0xaf6d92(0x25a)],xn=(_0x1187ad,_0x1013dd,_0x5c15a0,_0x43be4d)=>{for(var _0x34bd6e=_0x43be4d>0x1?void 0x0:_0x43be4d?Un(_0x1013dd,_0x5c15a0):_0x1013dd,_0xdc2adf=_0x1187ad['length']-0x1,_0x16d2bb;_0xdc2adf>=0x0;_0xdc2adf--)(_0x16d2bb=_0x1187ad[_0xdc2adf])&&(_0x34bd6e=_0x16d2bb(_0x34bd6e)||_0x34bd6e);return _0x34bd6e;},Ge=(_0x257198,_0x7dbdc7)=>(_0x2bcc3d,_0x399a21)=>_0x7dbdc7(_0x2bcc3d,_0x399a21,_0x257198);const On=()=>({'runtimeCellData':{},'dirtyRanges':{}}),An=(_0x12ab93,_0x47e613,_0x2cd26c)=>{const _0x387a1f=_0xaf6d92,_0x525efa=_0x12ab93[_0x387a1f(0x49b)];_0x12ab93[_0x387a1f(0x28b)](_0x5e5dce=>{const _0x51fdd7=_0x387a1f,_0x1b8186=_0x5e5dce[_0x51fdd7(0x341)](),_0x240579=_0x5e5dce[_0x51fdd7(0x38f)](),_0x532e0d=_0x5e5dce[_0x51fdd7(0x2ad)](),_0x77cb92=_0x5e5dce[_0x51fdd7(0x1ba)]();_0x47e613[_0x240579]&&_0x47e613[_0x240579]===_0x77cb92&&_0x532e0d===_0x77cb92&&(_0x12ab93[_0x51fdd7(0x1e4)](_0x1b8186,_0x525efa['getDisplayName'](_0x240579)),_0x5e5dce[_0x51fdd7(0x242)](_0x525efa[_0x51fdd7(0x1ba)](_0x240579)));}),_0x12ab93[_0x387a1f(0x39c)](m[_0x387a1f(0x240)]['Value'],_0x4c349b=>{const _0x265616=_0x387a1f,_0x203e65=_0x4c349b['getId'](),_0x46d24b=_0x4c349b['getDataFieldId'](),_0x3615ca=_0x4c349b[_0x265616(0x2ad)](),_0x15fbfa=_0x4c349b['getDisplayName'](),_0x4b6ad0=_0x4c349b['getSubtotal'](),_0x2ee753=_0x2cd26c(_0x3615ca,_0x4b6ad0);_0x47e613[_0x46d24b]&&_0x47e613[_0x46d24b]===_0x3615ca&&_0x2ee753===_0x15fbfa&&(_0x12ab93[_0x265616(0x1e4)](_0x203e65,_0x2cd26c(_0x525efa[_0x265616(0x1ba)](_0x46d24b),_0x4b6ad0)),_0x4c349b[_0x265616(0x242)](_0x525efa[_0x265616(0x1ba)](_0x46d24b)));});},Bn=(_0x433e79,_0x40a998,_0x7dcb89)=>{const _0x93ba9d=_0xaf6d92;var _0x4a5eef,_0x2dadcd;const {arrayFormulaCellData:_0x4cc2b1,unitData:_0x3bfeb0}=_0x40a998,{unitId:_0x2bb795,subUnitId:_0x14bc70}=_0x7dcb89,_0x3a34bd=_0x7dcb89[_0x93ba9d(0x438)],{startColumn:_0x51f9dd,endColumn:_0x3c3acf}=_0x3a34bd,_0x66bb7=(_0x4a5eef=_0x4cc2b1==null?void 0x0:_0x4cc2b1[_0x2bb795])==null?void 0x0:_0x4a5eef[_0x14bc70],_0x8f3b52=(_0x2dadcd=_0x3bfeb0==null?void 0x0:_0x3bfeb0[_0x2bb795])==null?void 0x0:_0x2dadcd[_0x14bc70],_0x10e664=new Set(),_0x24186a=_0x3c3acf-_0x51f9dd+0x1,{dirtyRanges:_0x55dc78}=_0x433e79;if(_0x55dc78)for(const {range:_0x6836c9,sheetId:_0x338e02,unitId:_0x1ed097}of _0x55dc78){if(_0x338e02!==_0x14bc70||_0x2bb795!==_0x1ed097)continue;const _0x20f1f0=f[_0x93ba9d(0x43a)][_0x93ba9d(0x1db)](_0x6836c9,_0x3a34bd);if(_0x20f1f0){const {startColumn:_0x10ee92,endColumn:_0x5dea1a}=_0x20f1f0;for(let _0x582e6f=_0x10ee92;_0x582e6f<=_0x5dea1a;_0x582e6f++)_0x10e664[_0x93ba9d(0x2cf)](_0x582e6f);}}if(_0x10e664[_0x93ba9d(0x3c8)]===_0x24186a||_0x10e664[_0x93ba9d(0x3c8)]===_0x24186a)return Array[_0x93ba9d(0x439)](_0x10e664);if(_0x8f3b52){const _0x3e6d48=_0x8f3b52[_0x93ba9d(0x44d)](),_0x154740=Object['keys'](_0x3e6d48);for(const _0x4be009 of _0x154740){const _0x3dc799=Number(_0x4be009),_0x23fae6=_0x3e6d48[_0x3dc799];if(_0x10e664['size']===_0x24186a)break;for(const _0x2ade22 in _0x23fae6){const _0x3f9a1f=Number(_0x2ade22);_0x3f9a1f<_0x51f9dd||_0x3f9a1f>_0x3c3acf||_0x10e664[_0x93ba9d(0x2cf)](_0x3f9a1f);}}}if(_0x66bb7){const _0x13d88c=_0x66bb7[_0x93ba9d(0x44d)](),_0xfbe7e1=Object['keys'](_0x13d88c);for(const _0x427fa3 of _0xfbe7e1){const _0xbe98ce=Number(_0x427fa3),_0x3dccf7=_0x13d88c[_0xbe98ce];if(_0x10e664[_0x93ba9d(0x3c8)]===_0x24186a)break;for(const _0xa7e5c8 in _0x3dccf7){const _0x3d6822=Number(_0xa7e5c8);_0x3d6822<_0x51f9dd||_0x3d6822>_0x3c3acf||_0x10e664['add'](_0x3d6822);}}}return Array[_0x93ba9d(0x439)](_0x10e664);},Gn=_0x13da8e=>{const _0x5bf672=_0xaf6d92,_0x47e2c7=new Set(),_0xdc92c1=[];for(const _0x2ac7f6 of _0x13da8e){const _0x210947=_0x2ac7f6['startRow']+','+_0x2ac7f6[_0x5bf672(0x314)]+','+_0x2ac7f6['startColumn']+','+_0x2ac7f6[_0x5bf672(0x4a2)];_0x47e2c7[_0x5bf672(0x496)](_0x210947)||(_0x47e2c7[_0x5bf672(0x2cf)](_0x210947),_0xdc92c1[_0x5bf672(0x3bd)](_0x2ac7f6));}return _0xdc92c1;};let ke=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x2b4a09,_0x8e0707,_0x1dff9d,_0x335f10,_0x3989b2){const _0x222863=_0xaf6d92;super(),x(this,_0x222863(0x254),new ve['BehaviorSubject'](!0x0)),x(this,_0x222863(0x1fc),_0x27d07a=>{const _0x156706=_0x222863;this[_0x156706(0x254)][_0x156706(0x493)](!0x1);}),x(this,_0x222863(0x499),_0x3a1ff4=>{const _0x5e8ba8=_0x222863;this['_globalSubject'][_0x5e8ba8(0x493)](!0x0);}),(this[_0x222863(0x41e)]=_0x2b4a09,this[_0x222863(0x30b)]=_0x8e0707,this[_0x222863(0x451)]=_0x1dff9d,this[_0x222863(0x1ce)]=_0x335f10,this[_0x222863(0x237)]=_0x3989b2,this[_0x222863(0x317)](),this[_0x222863(0x435)]());}['_init'](){const _0xd4e618=_0xaf6d92;this[_0xd4e618(0x39b)](),this[_0xd4e618(0x1c8)](),this[_0xd4e618(0x486)](),this[_0xd4e618(0x301)]();}[_0xaf6d92(0x29c)](){const _0x23df3d=_0xaf6d92;this[_0x23df3d(0x1ce)][_0x23df3d(0x3b0)](this[_0x23df3d(0x254)]),m[_0x23df3d(0x352)][_0x23df3d(0x1cd)](m[_0x23df3d(0x23d)][_0x23df3d(0x4b0)],this['_globalComputedStartHelpFunc']),m[_0x23df3d(0x352)]['registerCallbackWithEvent'](m[_0x23df3d(0x23d)][_0x23df3d(0x212)],this['_globalComputedEndHelpFunc']);}[_0xaf6d92(0x435)](){const _0x4ada2c=_0xaf6d92;this['disposeWithMe'](this[_0x4ada2c(0x451)]['onCommandExecuted'](_0xb0e4c1=>{const _0x7ff95=_0x4ada2c;_0xb0e4c1['id']===U[_0x7ff95(0x391)]['id']&&this['_sheetsPivotDataSourceModel'][_0x7ff95(0x259)](_0xb0e4c1['params']);})),this[_0x4ada2c(0x3b3)](this[_0x4ada2c(0x451)]['onCommandExecuted'](_0x4fe76f=>{const _0x5b15f2=_0x4ada2c;if(_0x4fe76f['id']!==Ft['id'])return;const _0x5c9562=_0x4fe76f['params'],{unitId:_0x59f042,subUnitId:_0xd90c80,pivotTableId:_0x15e583}=_0x5c9562,_0x55d90a=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x1b7)],_0x2ee768={};switch(_0x55d90a){case B[_0x5b15f2(0x477)]:{const _0x26863e=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x38a)];if(!_0x26863e)return;const {row:_0xedf414,col:_0x579342,cellData:_0x4ac187,pivotItemRenderInfoCache:_0x5169fa,tableFieldId:_0x24792c}=_0x26863e,_0x4effc6=this[_0x5b15f2(0x41e)]['getPivotTableInstance'](_0x5c9562[_0x5b15f2(0x485)]);if(!_0x4effc6||!_0x5169fa)return;if(_0x24792c){const _0x466010=_0x4effc6[_0x5b15f2(0x31f)](_0x24792c);if(!_0x466010)return;_0x2ee768['filter']={..._0x4effc6[_0x5b15f2(0x209)](_0x466010),'tableFieldId':_0x24792c,'pivotTableId':_0x5c9562[_0x5b15f2(0x485)],'filterInfo':_0x4effc6['getFilterInfo'](_0x24792c),'sortInfo':_0x4effc6['getSortInfo'](_0x24792c),'format':_0x4effc6['getFieldFormat'](_0x24792c)};}else{const _0x375321=qt(_0xedf414,_0x579342,_0x4ac187,_0x4effc6,_0x5169fa),_0x97c7ac=_0x375321==null?void 0x0:_0x375321[_0x5b15f2(0x1d4)];if(!_0x97c7ac)return;const _0x21828f=_0x4effc6[_0x5b15f2(0x31f)](_0x97c7ac);if(!_0x21828f)return;_0x2ee768[_0x5b15f2(0x38a)]={..._0x4effc6[_0x5b15f2(0x209)](_0x21828f),'tableFieldId':_0x97c7ac,'pivotTableId':_0x5c9562[_0x5b15f2(0x485)],'filterInfo':_0x4effc6['getFilterInfo'](_0x97c7ac),'sortInfo':_0x4effc6[_0x5b15f2(0x1f1)](_0x97c7ac),'format':_0x4effc6[_0x5b15f2(0x20c)](_0x97c7ac)};}}break;case B[_0x5b15f2(0x3d7)]:{const _0x126ea2=_0x5c9562['params']['panel'];if(!_0x126ea2)return;const {pivotTableId:_0x4cfbd4}=_0x126ea2,_0x100a50=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x4cfbd4);if(!_0x100a50)return;const _0x4fba2f=this[_0x5b15f2(0x41e)]['getPivotTableConfig'](_0x59f042,_0xd90c80,_0x4cfbd4),_0xcd628c=Yt(_0x100a50,_0x4cfbd4,_0x4fba2f);_0x2ee768['panel']=_0xcd628c;}break;case B['AddPivotField']:{const _0x63e8a3=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x15e583),_0x57aa6a=this[_0x5b15f2(0x41e)][_0x5b15f2(0x1f9)](_0x59f042),_0x29cf4f=_0x57aa6a['getCollection'](_0x15e583);let _0x26f648=null;const _0x5504bc=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583),_0x192316=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x1eb)];if(!_0x63e8a3||!_0x5504bc||!_0x192316)return!0x1;const {dataFieldId:_0x319fc8,fieldArea:_0x285067,index:_0x31e72a}=_0x192316;_0x63e8a3['startCollectChangeset']();const _0x2d84cd=_0x63e8a3[_0x5b15f2(0x3ee)](_0x319fc8,_0x285067,_0x31e72a);if(_0x2d84cd&&_0x285067===m[_0x5b15f2(0x240)]['Value']){const _0x5ac54a=_0x2d84cd[_0x5b15f2(0x341)](),_0x144505=_0x63e8a3[_0x5b15f2(0x31f)](_0x5ac54a);if(_0x144505){const _0x2b4bf4=_0x144505==null?void 0x0:_0x144505[_0x5b15f2(0x436)]();_0x63e8a3[_0x5b15f2(0x1ec)](_0x2d84cd[_0x5b15f2(0x341)](),_0x2b4bf4===m[_0x5b15f2(0x351)][_0x5b15f2(0x474)]?m['PivotSubtotalTypeEnum']['sum']:m[_0x5b15f2(0x1e5)][_0x5b15f2(0x35f)]);}const _0x10deb4=_0x63e8a3[_0x5b15f2(0x362)](),_0x510630=_0x63e8a3[_0x5b15f2(0x25b)](),_0x39e768=_0x63e8a3[_0x5b15f2(0x1fb)](m[_0x5b15f2(0x240)][_0x5b15f2(0x22d)]);if(_0x10deb4===-0x1&&_0x39e768>0x1){const _0x175556=_0x510630===m[_0x5b15f2(0x2a3)][_0x5b15f2(0x29f)]?m[_0x5b15f2(0x2a3)]['Column']:_0x510630,_0x52a8ab=_0x175556===m['PivotTableValuePositionEnum'][_0x5b15f2(0x368)]?m[_0x5b15f2(0x240)]['Row']:m['PivotTableFiledAreaEnum']['Column'];_0x63e8a3[_0x5b15f2(0x34c)](_0x175556,_0x63e8a3[_0x5b15f2(0x1fb)](_0x52a8ab));}}else{if(_0x2d84cd&&(_0x285067===m[_0x5b15f2(0x240)][_0x5b15f2(0x368)]||_0x285067===m['PivotTableFiledAreaEnum'][_0x5b15f2(0x33a)])){const _0x3d29e9=_0x2d84cd[_0x5b15f2(0x341)](),_0x5450f7=_0x63e8a3[_0x5b15f2(0x31f)](_0x3d29e9);if(_0x5450f7&&(_0x5450f7==null?void 0x0:_0x5450f7[_0x5b15f2(0x436)]())===m[_0x5b15f2(0x351)][_0x5b15f2(0x350)]){const _0x32fd87=_0x5450f7[_0x5b15f2(0x1ff)]();if(_0x32fd87&&_0x63e8a3[_0x5b15f2(0x397)](_0x2d84cd[_0x5b15f2(0x341)](),_0x32fd87),!_0x29cf4f[_0x5b15f2(0x377)]()[_0x5b15f2(0x44a)](_0x46ff43=>{const _0x2ce6dd=_0x5b15f2,_0x232d01=_0x29cf4f[_0x2ce6dd(0x19b)](_0x46ff43);return m[_0x2ce6dd(0x360)](_0x232d01)?_0x232d01[_0x2ce6dd(0x25d)]()['originalFieldId']===_0x319fc8:!0x1;})){const _0x1a8b8e=_0x57aa6a[_0x5b15f2(0x476)](),_0x116068=fn(_0x5450f7[_0x5b15f2(0x214)],_0x5450f7['minDate']),_0x59b912=_0x5450f7[_0x5b15f2(0x238)]()+_0x5b15f2(0x457)+Xt(this[_0x5b15f2(0x237)],_0x116068),_0x49eabf=new m['DateGroupField'](_0x1a8b8e,_0x59b912,m[_0x5b15f2(0x406)](0x3),_0x5450f7[_0x5b15f2(0x341)](),_0x116068);_0x57aa6a[_0x5b15f2(0x1f2)](_0x49eabf),_0x29cf4f[_0x5b15f2(0x408)](_0x1a8b8e,_0x59b912),_0x63e8a3[_0x5b15f2(0x3ee)](_0x1a8b8e,_0x285067,(_0x31e72a!=null?_0x31e72a:0x0)+0x1),_0x26f648=_0x49eabf;}}}}const _0x5acf4e=_0x63e8a3[_0x5b15f2(0x291)](),_0x5e1d00=_0x63e8a3['query']()['toJSON']();let _0x2a4b8e;if(_0x26f648){_0x2a4b8e=_0x26f648[_0x5b15f2(0x412)]();const _0x71c265=_0x26f648[_0x5b15f2(0x341)]();_0x29cf4f[_0x5b15f2(0x2a0)](_0x71c265);let _0xe8bc53=!0x0;for(const _0x27f2be in _0x57aa6a[_0x5b15f2(0x2c8)])if(_0x57aa6a[_0x5b15f2(0x2c8)][_0x27f2be]['getFieldIds']()[_0x5b15f2(0x241)](_0x71c265)){_0xe8bc53=!0x1;break;}_0xe8bc53&&_0x57aa6a[_0x5b15f2(0x2f3)](_0x71c265);}const _0x12af03=_0x63e8a3['endCollectChangeset']();_0x2ee768['addPivotField']={'view':_0x5e1d00,'changesets':_0x12af03,'isEmpty':_0x5acf4e,'pivotTableConfig':_0x5504bc,'shouldBeAddedGroupJSON':_0x2a4b8e};}break;case B['AddPivotTable']:{const _0x29ef69=_0x5c9562['params']['addPivotTable'];if(!_0x29ef69)return;const _0x5aab00=_0x29ef69['sourceRangeInfo'],_0x5ef9ab=_0x29ef69['pivotTableId'],{collection:_0x435d1f}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x5aab00[_0x5b15f2(0x379)],'sheetName':_0x5aab00[_0x5b15f2(0x294)],'subUnitId':_0x5aab00['subUnitId'],'range':_0x5aab00[_0x5b15f2(0x438)]}),_0x26fb79=new m[(_0x5b15f2(0x352))](_0x435d1f,void 0x0,_0x5ef9ab),_0x2bda08=_0x26fb79[_0x5b15f2(0x339)](),_0x94f1ed=_0x26fb79['toJSON'](),_0x4e9aa9=_0x435d1f['toJSON']();_0x2ee768[_0x5b15f2(0x442)]={'view':_0x2bda08,'fieldsConfig':_0x94f1ed,'collectionConfig':_0x4e9aa9,'isEmpty':_0x26fb79[_0x5b15f2(0x291)]()};}break;case B[_0x5b15f2(0x2f8)]:{const _0x583acf=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x49e)];if(!_0x583acf)return;const {fieldId:_0x472424,area:_0x1f3333,index:_0x3118cd}=_0x583acf,_0x19e0c3=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x19e0c3)return;const _0xc159e9=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x15e583);if(!_0xc159e9)return;_0xc159e9[_0x5b15f2(0x2f0)]();const {area:_0x81f6f8,index:_0x5a5e0e}=_0xc159e9[_0x5b15f2(0x19e)](_0x472424);if(_0xc159e9[_0x5b15f2(0x1cf)](_0x472424,_0x1f3333,_0x3118cd),_0x1f3333===m[_0x5b15f2(0x240)][_0x5b15f2(0x22d)]&&_0xc159e9[_0x5b15f2(0x35c)](_0x472424)['getSubtotal']()===void 0x0){const _0x5a6372=_0xc159e9[_0x5b15f2(0x35c)](_0x472424);if(_0x5a6372&&_0x5a6372['getSubtotal']()===void 0x0){const _0xa144ed=_0xc159e9['getDataFieldByTableId'](_0x472424);if(_0xa144ed){const _0x1d6603=_0xa144ed==null?void 0x0:_0xa144ed[_0x5b15f2(0x436)]();_0xc159e9[_0x5b15f2(0x1ec)](_0x472424,_0x1d6603===m['PivotDataFieldDataTypeEnum']['number']?m['PivotSubtotalTypeEnum'][_0x5b15f2(0x24f)]:m[_0x5b15f2(0x1e5)][_0x5b15f2(0x35f)]);}}}const _0x2becba=_0xc159e9[_0x5b15f2(0x25b)](),_0x697778=_0xc159e9[_0x5b15f2(0x362)](),_0x203015=_0xc159e9[_0x5b15f2(0x1fb)](m[_0x5b15f2(0x240)][_0x5b15f2(0x22d)])>0x1;if(_0x203015&&_0x81f6f8===_0x1f3333&&(_0x1f3333===m['PivotTableFiledAreaEnum'][_0x5b15f2(0x368)]&&_0x2becba===m[_0x5b15f2(0x2a3)][_0x5b15f2(0x368)]||_0x1f3333===m[_0x5b15f2(0x240)][_0x5b15f2(0x33a)]&&_0x2becba===m[_0x5b15f2(0x2a3)][_0x5b15f2(0x33a)])){let _0x5e8028=_0x697778;_0x5a5e0e<=_0x697778&&_0x5e8028--,_0x3118cd<=_0x697778&&_0x5e8028++,_0xc159e9[_0x5b15f2(0x34c)](_0x2becba,_0x5e8028);}else _0x203015&&(_0x81f6f8===m[_0x5b15f2(0x240)][_0x5b15f2(0x368)]&&_0x2becba===m[_0x5b15f2(0x2a3)][_0x5b15f2(0x368)]||_0x81f6f8===m[_0x5b15f2(0x240)]['Column']&&_0x2becba===m[_0x5b15f2(0x2a3)][_0x5b15f2(0x33a)])&&_0x697778>=_0x5a5e0e&&_0xc159e9[_0x5b15f2(0x34c)](_0x2becba,_0x697778-0x1),_0x203015&&(_0x1f3333===m[_0x5b15f2(0x240)][_0x5b15f2(0x368)]&&_0x2becba===m['PivotTableValuePositionEnum'][_0x5b15f2(0x368)]||_0x1f3333===m['PivotTableFiledAreaEnum'][_0x5b15f2(0x33a)]&&_0x2becba===m[_0x5b15f2(0x2a3)]['Column'])&&_0x697778>=_0x3118cd&&_0xc159e9[_0x5b15f2(0x34c)](_0x2becba,_0x697778+0x1);const _0x3b9f0d=_0xc159e9[_0x5b15f2(0x339)](),_0x293966=_0xc159e9[_0x5b15f2(0x291)](),_0x32bf41=_0xc159e9[_0x5b15f2(0x1f8)]();_0x2ee768['movePivotField']={'view':_0x3b9f0d[_0x5b15f2(0x412)](),'changesets':_0x32bf41,'isEmpty':_0x293966,'pivotTableConfig':_0x19e0c3};}break;case B[_0x5b15f2(0x4a9)]:{const _0x1a1f74=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x2d2)];if(!_0x1a1f74)return;const _0xc66be1=_0x1a1f74[_0x5b15f2(0x2c3)],_0xccb30f=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0xccb30f)return!0x1;const _0xa7e66b=this[_0x5b15f2(0x41e)]['getPivotTableInstance'](_0x15e583);if(!_0xa7e66b)return!0x1;_0xa7e66b[_0x5b15f2(0x2f0)]();for(const _0x535341 of _0xc66be1){const {area:_0x130dc5}=_0xa7e66b[_0x5b15f2(0x19e)](_0x535341);_0x130dc5===m[_0x5b15f2(0x240)][_0x5b15f2(0x22d)]&&_0xa7e66b[_0x5b15f2(0x1af)](_0x535341),(_0x130dc5===m[_0x5b15f2(0x240)][_0x5b15f2(0x368)]||_0x130dc5===m['PivotTableFiledAreaEnum'][_0x5b15f2(0x33a)])&&_0xa7e66b[_0x5b15f2(0x216)](_0x535341),_0xa7e66b[_0x5b15f2(0x23a)](_0x535341);}const _0x4dabc1=_0xa7e66b[_0x5b15f2(0x291)](),_0x5bf84f=_0xa7e66b[_0x5b15f2(0x339)]()['toJSON'](),_0x2d51ed=_0xa7e66b[_0x5b15f2(0x1f8)]();_0x2ee768[_0x5b15f2(0x2d2)]={'changesets':_0x2d51ed,'pivotTableConfig':_0xccb30f,'isEmpty':_0x4dabc1,'view':_0x5bf84f};}break;case B['SetPivotFilter']:{const _0x48cc29=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x45c)];if(!_0x48cc29)return;const {tableFieldId:_0x44ce77,items:_0x238d31,isAll:_0x4b1019}=_0x48cc29,_0x1a7e22=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x15e583),_0x1ae1c6=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x1a7e22||!_0x1ae1c6)return;_0x1a7e22[_0x5b15f2(0x2f0)](),_0x1a7e22[_0x5b15f2(0x27d)](_0x44ce77,{'type':m[_0x5b15f2(0x414)][_0x5b15f2(0x1c4)],'list':_0x238d31,'isAll':_0x4b1019});const _0x44ee00=_0x1a7e22[_0x5b15f2(0x291)](),_0x15c065=_0x1a7e22[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x135642=_0x1a7e22[_0x5b15f2(0x1f8)]();_0x2ee768[_0x5b15f2(0x45c)]={'view':_0x15c065,'changesets':_0x135642,'isEmpty':_0x44ee00,'pivotTableConfig':_0x1ae1c6};}break;case B[_0x5b15f2(0x310)]:{const _0x106915=_0x5c9562[_0x5b15f2(0x1a0)]['setValuePivotFilter'];if(!_0x106915)return;const {tableFieldId:_0xba240,filterInfo:_0x362ae1}=_0x106915,_0x27064d=this['_sheetsPivotDataSourceModel'][_0x5b15f2(0x480)](_0x15e583),_0x3e8e5c=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x27064d||!_0x3e8e5c)return;_0x27064d[_0x5b15f2(0x2f0)](),_0x27064d[_0x5b15f2(0x26f)](_0xba240,_0x362ae1);const _0x2d93c2=_0x27064d[_0x5b15f2(0x291)](),_0x5e3537=_0x27064d[_0x5b15f2(0x339)]()['toJSON'](),_0xd2da97=_0x27064d['endCollectChangeset']();_0x2ee768[_0x5b15f2(0x445)]={'view':_0x5e3537,'changesets':_0xd2da97,'isEmpty':_0x2d93c2,'pivotTableConfig':_0x3e8e5c};}break;case B['SetPivotSort']:{const _0x1069f0=_0x5c9562['params'][_0x5b15f2(0x31e)];if(!_0x1069f0)return;const {tableFieldId:_0xbf12ad,info:_0x5867df}=_0x1069f0,_0x388efe=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x15e583),_0x2928bb=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x388efe||!_0x2928bb)return;_0x388efe[_0x5b15f2(0x2f0)](),_0x388efe[_0x5b15f2(0x48c)](_0xbf12ad,_0x5867df);const _0x2261d7=_0x388efe[_0x5b15f2(0x291)](),_0x54899c=_0x388efe[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x36188a=_0x388efe[_0x5b15f2(0x1f8)]();_0x2ee768[_0x5b15f2(0x31e)]={'view':_0x54899c,'changesets':_0x36188a,'isEmpty':_0x2261d7,'pivotTableConfig':_0x2928bb};}break;case B['SetPivotSetting']:{const _0x59f984=_0x5c9562['params']['setPivotSetting'];if(!_0x59f984)return;const {tableFieldId:_0x2d58d7,displayName:_0x2ca247,subtotalType:_0x20270a,format:_0x2e37ee}=_0x59f984,_0x1ad60d=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x15e583),_0x3a6e78=this['_sheetsPivotDataSourceModel'][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x1ad60d||!_0x3a6e78)return;_0x1ad60d[_0x5b15f2(0x2f0)](),_0x2ca247!==void 0x0&&_0x1ad60d[_0x5b15f2(0x1e4)](_0x2d58d7,_0x2ca247),_0x20270a!==void 0x0&&_0x1ad60d[_0x5b15f2(0x1ec)](_0x2d58d7,_0x20270a),_0x2e37ee!==void 0x0&&_0x1ad60d['setFieldFormat'](_0x2d58d7,_0x2e37ee);const _0x6d4266=_0x1ad60d[_0x5b15f2(0x291)](),_0x288261=_0x1ad60d[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x16e4bc=_0x1ad60d[_0x5b15f2(0x1f8)]();_0x2ee768['setPivotSetting']={'changesets':_0x16e4bc,'pivotTableConfig':_0x3a6e78,'isEmpty':_0x6d4266,'view':_0x288261};}break;case B[_0x5b15f2(0x1d2)]:{const _0x2c2447=_0x5c9562['params']['updatePivotSource'];if(!_0x2c2447)return;const {dataRangeInfo:_0x3f71c7,unitId:_0x1cbdf3,subUnitId:_0x133cb0}=_0x2c2447,_0x5f5c12=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x1cbdf3,_0x133cb0,_0x15e583),_0x129646=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x15e583);if(!this[_0x5b15f2(0x41e)][_0x5b15f2(0x332)](_0x1cbdf3,_0x15e583)||!_0x129646||!_0x5f5c12)return;const _0x3d10bf=this[_0x5b15f2(0x41e)][_0x5b15f2(0x213)](_0x1cbdf3,_0x15e583,_0x3f71c7),_0x12ff59=this[_0x5b15f2(0x41e)][_0x5b15f2(0x332)](_0x1cbdf3,_0x15e583)[_0x5b15f2(0x412)](),{collection:_0x4d1e2c}=this[_0x5b15f2(0x41e)][_0x5b15f2(0x30c)]({'unitId':_0x3f71c7['unitId'],'sheetName':_0x3f71c7[_0x5b15f2(0x294)],'subUnitId':_0x3f71c7[_0x5b15f2(0x371)],'range':_0x3f71c7['range']}),_0x4841b6=_0x4d1e2c[_0x5b15f2(0x412)]();_0x129646['startCollectChangeset']();const _0x4e03ab=this[_0x5b15f2(0x41e)]['getDataFieldManager'](_0x1cbdf3)[_0x5b15f2(0x1e2)]()||m[_0x5b15f2(0x281)];_0x129646[_0x5b15f2(0x1a1)](_0x3f6ed8=>{const _0x348dcf=_0x5b15f2,_0x53b859=_0x3f6ed8[_0x348dcf(0x38f)]();if(!_0x4d1e2c['hasField'](_0x53b859)){const _0x4a39e3=_0x4d1e2c['getDataFieldBySourceName'](_0x3f6ed8[_0x348dcf(0x2ad)]());if(_0x4a39e3){_0x129646[_0x348dcf(0x36a)](_0x3f6ed8[_0x348dcf(0x341)](),_0x4a39e3['getName'](),_0x4a39e3[_0x348dcf(0x341)]());const {area:_0x3467d8}=_0x129646[_0x348dcf(0x19e)](_0x3f6ed8[_0x348dcf(0x341)]());let _0xdde59b=_0x3f6ed8[_0x348dcf(0x2ad)]();const _0x41a749=_0x3f6ed8[_0x348dcf(0x1ba)]();if(_0x3467d8===m[_0x348dcf(0x240)][_0x348dcf(0x22d)]){const _0x5e9a47=_0x3f6ed8[_0x348dcf(0x43e)]();_0xdde59b=_0x4e03ab(_0x4a39e3[_0x348dcf(0x238)](),_0x5e9a47);}_0x41a749!==_0xdde59b&&_0x129646['renameField'](_0x3f6ed8[_0x348dcf(0x341)](),_0xdde59b);}else _0x129646[_0x348dcf(0x23a)](_0x3f6ed8[_0x348dcf(0x341)]());}});const _0x53e442=_0x129646['isEmpty'](),_0x5e7691=_0x129646[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x5c61c6=_0x129646[_0x5b15f2(0x1f8)]();_0x2ee768[_0x5b15f2(0x47d)]={'view':_0x5e7691,'changesets':_0x5c61c6,'isEmpty':_0x53e442,'pivotTableConfig':_0x5f5c12,'collectionConfig':_0x4841b6,'oldCollectionConfig':_0x12ff59,'deleteIds':_0x3d10bf};}break;case B[_0x5b15f2(0x431)]:{const _0x407378=_0x5c9562['params'][_0x5b15f2(0x34c)];if(!_0x407378)return;const {position:_0x2728a2,index:_0x4980e4}=_0x407378,_0x42ce25=this[_0x5b15f2(0x41e)]['getPivotTableConfig'](_0x59f042,_0xd90c80,_0x15e583);if(!_0x42ce25)return!0x1;const _0x341761=this[_0x5b15f2(0x41e)]['getPivotTableInstance'](_0x15e583);if(!_0x341761)return!0x1;_0x341761[_0x5b15f2(0x2f0)](),_0x341761['updateValuePosition'](_0x2728a2,_0x4980e4);const _0x6e961d=_0x341761['isEmpty'](),_0x299c38=_0x341761[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x359b8e=_0x341761['endCollectChangeset']();_0x2ee768['updateValuePosition']={'changesets':_0x359b8e,'pivotTableConfig':_0x42ce25,'isEmpty':_0x6e961d,'view':_0x299c38};}break;case B[_0x5b15f2(0x292)]:{const _0x208cbd=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x3cf)];if(!_0x208cbd)return;const {tableFieldId:_0x215e95,collapse:_0x39bfa5,item:_0x3e2294}=_0x208cbd,_0x237d89=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x15e583),_0x43a5bd=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x59f042,_0xd90c80,_0x15e583);if(!_0x237d89||!_0x43a5bd)return;_0x237d89[_0x5b15f2(0x2f0)](),_0x237d89[_0x5b15f2(0x1ea)](_0x215e95,_0x39bfa5,_0x3e2294);const _0x466679=_0x237d89['isEmpty'](),_0x25afca=_0x237d89['query']()[_0x5b15f2(0x412)](),_0x33fe97=_0x237d89[_0x5b15f2(0x1f8)]();_0x2ee768['setPivotCollapse']={'view':_0x25afca,'isEmpty':_0x466679,'pivotTableConfig':_0x43a5bd,'changesets':_0x33fe97};}break;case B[_0x5b15f2(0x3f0)]:{const _0x70b8e=_0x5c9562[_0x5b15f2(0x1a0)][_0x5b15f2(0x3ed)];if(!_0x70b8e)return;const {pivotTableConfig:_0x41985b}=_0x70b8e,_0x240b42=this[_0x5b15f2(0x41e)][_0x5b15f2(0x480)](_0x15e583),_0x3f3b1d=this['_sheetsPivotDataSourceModel'][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x240b42||!_0x3f3b1d)return;_0x240b42[_0x5b15f2(0x2f0)](),un(_0x240b42,_0x41985b);const _0x510d77=_0x240b42[_0x5b15f2(0x291)](),_0x38cea5=_0x240b42[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x104677=_0x240b42[_0x5b15f2(0x1f8)]();_0x2ee768[_0x5b15f2(0x3ed)]={'view':_0x38cea5,'isEmpty':_0x510d77,'pivotTableConfig':{..._0x3f3b1d,'fieldsConfig':_0x240b42[_0x5b15f2(0x412)]()},'changesets':_0x104677};}break;case B[_0x5b15f2(0x3c9)]:{const _0x1a3e2b=_0x5c9562['params'][_0x5b15f2(0x46e)];if(!_0x1a3e2b)return;const _0x5288dc=this['_sheetsPivotDataSourceModel'][_0x5b15f2(0x480)](_0x15e583),_0x46fe79=this[_0x5b15f2(0x41e)][_0x5b15f2(0x266)](_0x59f042,_0xd90c80,_0x15e583);if(!_0x5288dc||!_0x46fe79)return;_0x5288dc[_0x5b15f2(0x2f0)](),gn(_0x5288dc,_0x1a3e2b[_0x5b15f2(0x3bb)]);const _0x329020=_0x5288dc[_0x5b15f2(0x339)]()[_0x5b15f2(0x412)](),_0x35c42e=_0x5288dc['endCollectChangeset']();_0x2ee768[_0x5b15f2(0x46e)]={'view':_0x329020,'isEmpty':!0x0,'pivotTableConfig':{..._0x46fe79,'fieldsConfig':_0x5288dc['toJSON']()},'changesets':_0x35c42e};}break;case B[_0x5b15f2(0x420)]:{const _0x3f7bc9=_0x5c9562[_0x5b15f2(0x1a0)]['addPivotTableWithConfig'];if(!_0x3f7bc9)return;const _0x6b8221=_0x3f7bc9[_0x5b15f2(0x32c)],_0xea9be5=_0x3f7bc9[_0x5b15f2(0x485)],{collection:_0x541962}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x6b8221[_0x5b15f2(0x379)],'sheetName':_0x6b8221[_0x5b15f2(0x294)],'subUnitId':_0x6b8221[_0x5b15f2(0x371)],'range':_0x6b8221[_0x5b15f2(0x438)]}),_0x2aa2a1=new m[(_0x5b15f2(0x352))](_0x541962,void 0x0,_0xea9be5),_0x438004=_0x541962['getFieldIds'](),{rows:_0x3a837c,columns:_0x29f67b,filters:_0x4d4d32,values:_0x88efd9}=_0x3f7bc9[_0x5b15f2(0x3e5)];_0x2aa2a1['startCollectChangeset']();for(const {field:_0x5711ad,selectedItems:_0x169c8b}of _0x3a837c||[]){const _0x3ef573=_0x438004[_0x5711ad];if(_0x3ef573){const _0x305826=_0x2aa2a1[_0x5b15f2(0x3ee)](_0x3ef573,m[_0x5b15f2(0x240)][_0x5b15f2(0x368)]);_0x169c8b&&_0x305826&&_0x2aa2a1[_0x5b15f2(0x27d)](_0x305826['getId'](),{'type':m[_0x5b15f2(0x414)][_0x5b15f2(0x1c4)],'list':_0x169c8b,'isAll':!0x1});}}for(const {field:_0x344d28,selectedItems:_0x2dd815}of _0x29f67b||[]){const _0x43a1c2=_0x438004[_0x344d28];if(_0x43a1c2){const _0x1fb7f5=_0x2aa2a1[_0x5b15f2(0x3ee)](_0x43a1c2,m['PivotTableFiledAreaEnum'][_0x5b15f2(0x33a)]);_0x2dd815&&_0x1fb7f5&&_0x2aa2a1[_0x5b15f2(0x27d)](_0x1fb7f5[_0x5b15f2(0x341)](),{'type':m[_0x5b15f2(0x414)]['ManualFilter'],'list':_0x2dd815,'isAll':!0x1});}}for(const {field:_0x18118c,selectedItems:_0x4d0e93}of _0x4d4d32||[]){const _0x332ee5=_0x438004[_0x18118c];if(_0x332ee5){const _0x438166=_0x2aa2a1['addFieldWithSourceId'](_0x332ee5,m['PivotTableFiledAreaEnum'][_0x5b15f2(0x477)]);_0x4d0e93&&_0x438166&&_0x2aa2a1['setLabelFilterInfo'](_0x438166[_0x5b15f2(0x341)](),{'type':m[_0x5b15f2(0x414)]['ManualFilter'],'list':_0x4d0e93,'isAll':!0x1});}}for(const {field:_0xfd3b5c,subTotalType:_0x4f8a5c,formatString:_0x59d85c}of _0x88efd9||[]){const _0x5d1048=_0x541962[_0x5b15f2(0x19b)](_0x438004[_0xfd3b5c]);if(!_0x5d1048)continue;const _0x12dd26=_0x438004[_0xfd3b5c];if(_0x12dd26){const _0x499be4=_0x2aa2a1['addFieldWithSourceId'](_0x12dd26,m[_0x5b15f2(0x240)][_0x5b15f2(0x22d)]);if(_0x499be4){if(_0x4f8a5c!==void 0x0){_0x2aa2a1[_0x5b15f2(0x1ec)](_0x499be4[_0x5b15f2(0x341)](),_0x4f8a5c);const _0x4e90ad=this[_0x5b15f2(0x41e)][_0x5b15f2(0x1f9)](_0x6b8221[_0x5b15f2(0x379)])[_0x5b15f2(0x1e2)]()||m[_0x5b15f2(0x281)],_0x367fad=_0x541962['getDisplayName'](_0x12dd26),_0x595598=_0x4e90ad(_0x367fad,_0x4f8a5c);_0x2aa2a1[_0x5b15f2(0x1e4)](_0x499be4['getId'](),_0x595598);}else{if(_0x5d1048){const _0x52addc=_0x5d1048==null?void 0x0:_0x5d1048['getFieldDataType']();_0x2aa2a1[_0x5b15f2(0x1ec)](_0x499be4[_0x5b15f2(0x341)](),_0x52addc===m[_0x5b15f2(0x351)][_0x5b15f2(0x474)]?m['PivotSubtotalTypeEnum']['sum']:m[_0x5b15f2(0x1e5)][_0x5b15f2(0x35f)]);}}_0x59d85c&&_0x2aa2a1[_0x5b15f2(0x397)](_0x499be4[_0x5b15f2(0x341)](),_0x59d85c);}}}const _0x303e82=_0x2aa2a1[_0x5b15f2(0x339)](),_0x1d81bc=_0x2aa2a1[_0x5b15f2(0x412)](),_0x4dd846=_0x2aa2a1[_0x5b15f2(0x291)](),_0x4e57dc=_0x2aa2a1[_0x5b15f2(0x1f8)](),_0x90058c=_0x541962[_0x5b15f2(0x412)]();_0x2ee768['addPivotTableWithConfig']={'view':_0x303e82,'fieldsConfig':_0x1d81bc,'collectionConfig':_0x90058c,'isEmpty':_0x4dd846,'changesets':_0x4e57dc};}break;case B['DrillDown']:{const _0x10424d=sn(this[_0x5b15f2(0x237)],_0x5c9562);if(!_0x10424d)return;const {range:_0x571d8c,sourceSubUnitId:_0x48a1eb,sourceUnitId:_0x40316a,formatMap:_0x4b027d,indexes:_0x36531d}=_0x10424d;_0x2ee768[_0x5b15f2(0x36c)]={'range':_0x571d8c,'sourceSubUnitId':_0x48a1eb,'sourceUnitId':_0x40316a,'formatMap':_0x4b027d,'indexes':_0x36531d};}break;}this[_0x5b15f2(0x451)]['executeCommand'](wt['id'],{'version':_0x5c9562[_0x5b15f2(0x3e8)],'result':_0x2ee768},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x3e33de=_0xaf6d92;this[_0x3e33de(0x3b3)](this['_commandService'][_0x3e33de(0x388)](_0x27fd73=>{const _0x5decb4=_0x3e33de;if(_0x27fd73['id']!==Rt['id'])return;const _0x9b366d=_0x27fd73['params'];return this['_sheetsPivotDataSourceModel']['setTextInfo'](_0x9b366d[_0x5decb4(0x1b3)]),!0x0;}));}[_0xaf6d92(0x39b)](){const _0x19b738=_0xaf6d92;this[_0x19b738(0x41e)][_0x19b738(0x1ca)][_0x19b738(0x2cb)](_0xcc3710=>{const _0x4059fe=_0x19b738;switch(_0xcc3710[_0x4059fe(0x1b7)]){case Te[_0x4059fe(0x2cf)]:_0xcc3710['dataRangeInfo']&&_0xcc3710[_0x4059fe(0x346)]&&this[_0x4059fe(0x21a)](_0xcc3710[_0x4059fe(0x315)],_0xcc3710['dataRangeInfo'],_0xcc3710[_0x4059fe(0x346)]);break;case Te[_0x4059fe(0x20e)]:{const {unitId:_0x4735e2,subUnitId:_0x2bb021,token:_0x5deb7c}=_0xcc3710;_0x4735e2&&_0x2bb021&&_0x5deb7c&&this[_0x4059fe(0x33b)](_0x4735e2,_0x2bb021,_0x5deb7c);}break;case Te['update']:{const {token:_0x4c14a1,oldSourceRangeInfo:_0x1f21e7,dataRangeInfo:_0x3f8daf,targetCellInfo:_0x3b3984}=_0xcc3710,{unitId:_0x29ede6,subUnitId:_0x9e3c26}=_0x1f21e7||{};_0x29ede6&&_0x9e3c26&&_0x4c14a1&&this['removeSourceRangeChange'](_0x29ede6,_0x9e3c26,_0x4c14a1),_0x3f8daf&&_0x3b3984&&this['handleSourceRangeChange'](_0x4c14a1,_0x3f8daf,_0x3b3984);}break;}});}['_subjectFieldsCollectionChange'](){const _0x20260c=_0xaf6d92;this['_sheetsPivotDataSourceModel']['fieldsCollectionChange$'][_0x20260c(0x2cb)](_0x4ef1a4=>{const _0x341714=_0x20260c;Object[_0x341714(0x36b)](_0x4ef1a4)['forEach'](_0x23cefa=>{const _0xbff4b2=_0x341714,_0x3a8271=this[_0xbff4b2(0x41e)][_0xbff4b2(0x1f4)](_0x23cefa);if(_0x3a8271){const _0x541923=this['_sheetsPivotDataSourceModel'][_0xbff4b2(0x266)](_0x3a8271==null?void 0x0:_0x3a8271[_0xbff4b2(0x379)],_0x3a8271==null?void 0x0:_0x3a8271[_0xbff4b2(0x371)],_0x23cefa);_0x541923&&(this[_0xbff4b2(0x21a)](_0x23cefa,_0x541923[_0xbff4b2(0x32c)],_0x541923[_0xbff4b2(0x346)]),this['triggerDirtyFeature']([{'unitId':_0x3a8271[_0xbff4b2(0x379)],'subUnitId':_0x3a8271[_0xbff4b2(0x371)],'token':_0x23cefa}]));}});});}[_0xaf6d92(0x1c8)](){const _0xa52e27=_0xaf6d92;this['_sheetsPivotDataSourceModel'][_0xa52e27(0x48d)][_0xa52e27(0x2cb)](_0x5ea410=>{const _0x31ed26=_0xa52e27,{unitId:_0x389635,subUnitId:_0x30620a,pivotTableId:_0x2d392c}=_0x5ea410;_0x389635&&_0x30620a&&_0x2d392c&&this[_0x31ed26(0x488)]([{'unitId':_0x389635,'subUnitId':_0x30620a,'token':_0x2d392c}]);});}[_0xaf6d92(0x488)](_0x2fdbe1){const _0x2e9e1e=_0xaf6d92,_0xc42a5c={};_0x2fdbe1[_0x2e9e1e(0x25e)](_0x377aad=>{var _0x3f7aef,_0x121adf;const {unitId:_0x5bc32f,subUnitId:_0x1bda26,token:_0x3fd3a1}=_0x377aad;_0xc42a5c[_0x5bc32f]=(_0x3f7aef=_0xc42a5c[_0x5bc32f])!=null?_0x3f7aef:{},_0xc42a5c[_0x5bc32f][_0x1bda26]=(_0x121adf=_0xc42a5c[_0x5bc32f][_0x1bda26])!=null?_0x121adf:{},_0xc42a5c[_0x5bc32f][_0x1bda26][_0x3fd3a1]=!0x0;}),this[_0x2e9e1e(0x451)][_0x2e9e1e(0x290)](He['id'],_0xc42a5c);}['removeSourceRangeChange'](_0x3c0a5f,_0x1ccadc,_0x5bcc5c){const _0x57d3a1=_0xaf6d92;this['_featureCalculationManagerService'][_0x57d3a1(0x31d)](_0x3c0a5f,_0x1ccadc,[_0x5bcc5c]);}[_0xaf6d92(0x21a)](_0x871d00,_0xa2fca4,_0x5832e4){const _0x473c43=_0xaf6d92,{unitId:_0x4cb462,subUnitId:_0x5bfe63}=_0xa2fca4;this['_featureCalculationManagerService'][_0x473c43(0x496)](_0x5832e4[_0x473c43(0x379)],_0x5832e4[_0x473c43(0x371)],_0x871d00)&&this[_0x473c43(0x33b)](_0x4cb462,_0x5bfe63,_0x871d00);const _0x23e4dd={'sheetId':_0x5bfe63,..._0xa2fca4};this[_0x473c43(0x30b)][_0x473c43(0x44e)](_0x5832e4[_0x473c43(0x379)],_0x5832e4[_0x473c43(0x371)],_0x871d00,{'unitId':_0x5832e4[_0x473c43(0x379)],'subUnitId':_0x5832e4['subUnitId'],'dependencyRanges':[_0x23e4dd],'getDirtyData':(_0x4438a5,_0xcfc53b)=>{const _0x4161c9=_0x473c43,_0x582db7=this[_0x4161c9(0x41e)],_0x89343b=_0x582db7['getTargetByPivotId'](_0x871d00);if(!_0x89343b)return On();const {unitId:_0xacf11a,subUnitId:_0x557d51}=_0x89343b,_0x36b168=Bn(_0x4438a5,_0xcfc53b,_0xa2fca4);if(_0x36b168[_0x4161c9(0x3a2)]>0x0){const _0x28d861=_0x582db7['getCollection'](_0x4cb462,_0x871d00),_0x43e609=_0x28d861['getFieldIds'](),_0x56e899=this[_0x4161c9(0x208)](_0xa2fca4[_0x4161c9(0x379)],_0xa2fca4[_0x4161c9(0x371)],_0xcfc53b),_0x38d87f={},_0x2652c0=this[_0x4161c9(0x41e)][_0x4161c9(0x1f9)](_0xacf11a)[_0x4161c9(0x1e2)]()||m[_0x4161c9(0x281)],_0x1c4b64=[];for(const _0x5a4ca4 of _0x36b168){const _0x562334=_0x5a4ca4-(_0xa2fca4['range'][_0x4161c9(0x3b2)]||0x0),_0x5458d7=_0x43e609[_0x562334];_0x1c4b64['push'](_0x5458d7),_0x38d87f[_0x5458d7]=_0x28d861[_0x4161c9(0x19b)](_0x5458d7)[_0x4161c9(0x238)](),_0x582db7[_0x4161c9(0x1f9)](_0x4cb462)[_0x4161c9(0x2d1)](_0x5458d7,_0xa2fca4,_0x562334,_0x56e899);}_0x28d861[_0x4161c9(0x35a)](_0x1c4b64)[_0x4161c9(0x25e)](_0xb35ce8=>{const _0x21bc64=_0x4161c9,[_0x4764a3,_0x1c60b4]=_0xb35ce8,_0x175b35=_0x28d861['getFieldById'](_0x4764a3),_0x4e4d45=_0x28d861['getFieldById'](_0x1c60b4);_0x175b35&&_0x4e4d45&&_0x175b35[_0x21bc64(0x231)](_0x4e4d45);}),_0x28d861[_0x4161c9(0x2d3)]();const _0xc572d8=_0x582db7[_0x4161c9(0x480)](_0x871d00);if(_0xc572d8){An(_0xc572d8,_0x38d87f,_0x2652c0),_0xc572d8[_0x4161c9(0x326)](!0x0);const _0x5bb8b7=_0xc572d8[_0x4161c9(0x339)](),_0xcd5276=_0x582db7[_0x4161c9(0x266)](_0xacf11a,_0x557d51,_0x871d00),_0x108938=_0x582db7['getDataFieldManager'](_0x4cb462)[_0x4161c9(0x412)]();_0x582db7[_0x4161c9(0x398)](_0xacf11a,_0x557d51,W[_0x4161c9(0x29a)],_0x871d00,_0x5bb8b7,_0xcd5276,_0x108938,!0x0);}}return this['getDirtyInfo'](_0xacf11a,_0x557d51,_0x871d00);}});}[_0xaf6d92(0x208)](_0x28d7da,_0x9f58e6,_0x40a3ea){var _0x2c615f,_0x3c4c82;const {arrayFormulaCellData:_0x13113d,unitData:_0xe33930}=_0x40a3ea,_0x236b1a=(_0x2c615f=_0x13113d==null?void 0x0:_0x13113d[_0x28d7da])==null?void 0x0:_0x2c615f[_0x9f58e6],_0x304351=(_0x3c4c82=_0xe33930==null?void 0x0:_0xe33930[_0x28d7da])==null?void 0x0:_0x3c4c82[_0x9f58e6];return{'arrayFormulaCellDataMatrix':_0x236b1a,'unitDataMatrix':_0x304351};}[_0xaf6d92(0x3d9)](_0x31f5a4,_0x2c2321,_0x2b9c1c){const _0x410be3=_0xaf6d92,_0x2cfeab=this[_0x410be3(0x41e)][_0x410be3(0x304)](_0x31f5a4,_0x2c2321,_0x2b9c1c),_0x1f05bb=[],_0x13ab50=new f['ObjectMatrix']();if(_0x2cfeab){const {rangeCache:_0x34deca,matrix:_0x157f55,oldRangeCache:_0x544901,oldMatrix:_0x373965}=_0x2cfeab,_0x7e3df3=nt(_0x544901),_0x119369=nt(_0x34deca);_0x1f05bb[_0x410be3(0x3bd)](..._0x119369,..._0x7e3df3),_0x373965&&_0x544901&&_0x7e3df3['forEach'](_0x1d414d=>{const _0xf22280=_0x410be3;for(let _0x21ed66=_0x1d414d[_0xf22280(0x3df)];_0x21ed66<=_0x1d414d[_0xf22280(0x314)];_0x21ed66++)for(let _0x272e22=_0x1d414d['startColumn'];_0x272e22<=_0x1d414d['endColumn'];_0x272e22++)_0x13ab50[_0xf22280(0x1e8)](_0x21ed66,_0x272e22);}),_0x157f55&&_0x119369&&_0x119369[_0x410be3(0x25e)](_0x5bcb3b=>{const _0x4bbc6c=_0x410be3;for(let _0x40df6a=_0x5bcb3b[_0x4bbc6c(0x3df)];_0x40df6a<=_0x5bcb3b[_0x4bbc6c(0x314)];_0x40df6a++)for(let _0x5dea4d=_0x5bcb3b['startColumn'];_0x5dea4d<=_0x5bcb3b[_0x4bbc6c(0x4a2)];_0x5dea4d++)_0x13ab50[_0x4bbc6c(0x491)](_0x40df6a,_0x5dea4d,_0x157f55[_0x4bbc6c(0x3f7)](_0x40df6a,_0x5dea4d));});}const _0x483b74={};return _0x483b74[_0x31f5a4]={[_0x2c2321]:Gn(_0x1f05bb)},{'runtimeCellData':{[_0x31f5a4]:{[_0x2c2321]:_0x13ab50}},'dirtyRanges':_0x483b74};}[_0xaf6d92(0x29d)](){}};ke=xn([Ge(0x0,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x384)])),Ge(0x1,f[_0xaf6d92(0x320)](fe['IFeatureCalculationManagerService'])),Ge(0x2,f['Inject'](f[_0xaf6d92(0x22e)])),Ge(0x3,f[_0xaf6d92(0x320)](fe[_0xaf6d92(0x223)])),Ge(0x4,f[_0xaf6d92(0x320)](f['Injector']))],ke);var Wn=Object[_0xaf6d92(0x25a)],kn=(_0x212636,_0x1bfde1,_0x1553b3,_0x18a2a5)=>{const _0x53ce80=_0xaf6d92;for(var _0x1a75c1=_0x18a2a5>0x1?void 0x0:_0x18a2a5?Wn(_0x1bfde1,_0x1553b3):_0x1bfde1,_0x2e8c70=_0x212636[_0x53ce80(0x3a2)]-0x1,_0x2c4693;_0x2e8c70>=0x0;_0x2e8c70--)(_0x2c4693=_0x212636[_0x2e8c70])&&(_0x1a75c1=_0x2c4693(_0x1a75c1)||_0x1a75c1);return _0x1a75c1;},et=(_0x506ed3,_0x12f979)=>(_0x47dcbd,_0x28a917)=>_0x12f979(_0x47dcbd,_0x28a917,_0x506ed3);let je=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x5d05d9,_0x11ebc6,_0x52322a,_0x2b5d6d){const _0xf9c49f=_0xaf6d92;super(),x(this,'disposableCollection',new f[(_0xf9c49f(0x1ae))]()),(this[_0xf9c49f(0x3d0)]=_0x5d05d9,this[_0xf9c49f(0x289)]=_0x11ebc6,this['_sheetsSelectionsService']=_0x52322a,this[_0xf9c49f(0x1e6)]=_0x2b5d6d,this[_0xf9c49f(0x47a)]());}[_0xaf6d92(0x47a)](){const _0x3b39b0=_0xaf6d92;this[_0x3b39b0(0x3b3)](this[_0x3b39b0(0x289)][_0x3b39b0(0x280)]({'getMutations':_0x2074e6=>{const _0x4fd4da=_0x3b39b0;if(_0x2074e6['id']===U[_0x4fd4da(0x1e3)]['id']||_0x2074e6['id']===U[_0x4fd4da(0x338)]['id']){const _0x3c8579=[],_0x1e6374=[],_0x46af53=this[_0x4fd4da(0x1a2)][_0x4fd4da(0x2dc)]()['map'](_0x183869=>_0x183869[_0x4fd4da(0x438)]),_0x1faec2=U[_0x4fd4da(0x402)](this[_0x4fd4da(0x3d0)]);if(!_0x1faec2)return{'redos':[],'undos':[]};const {unitId:_0x259310,subUnitId:_0x50e084}=_0x1faec2,_0x9ebc0b={},_0x418592=this[_0x4fd4da(0x1e6)][_0x4fd4da(0x3c2)](_0x259310,_0x50e084);if(_0x418592!=null&&_0x418592[_0x4fd4da(0x3c8)])for(const [_0x1b35e0,_0xc1ebc]of _0x418592){const {unitId:_0x3f0b5f,subUnitId:_0x10f68e,row:_0x24f00f,col:_0x46952c}=_0xc1ebc[_0x4fd4da(0x346)];_0x3f0b5f===_0x1faec2[_0x4fd4da(0x379)]&&_0x10f68e===_0x1faec2['subUnitId']&&(_0x9ebc0b[_0x24f00f+'-'+_0x46952c]=_0x1b35e0);}return _0x46af53&&_0x1faec2&&_0x46af53['forEach'](_0x768619=>{const _0x3069f2=_0x4fd4da;f[_0x3069f2(0x473)][_0x3069f2(0x4ac)](_0x768619,(_0x23a4b6,_0x412215)=>{const _0x1facb5=_0x3069f2,_0x599245=_0x23a4b6+'-'+_0x412215;if(_0x9ebc0b[_0x599245]){const _0x497600=_0x9ebc0b[_0x599245];_0x3c8579[_0x1facb5(0x3bd)]({'id':qe['id'],'params':{'unitId':_0x259310,'subUnitId':_0x50e084,'pivotTableId':_0x497600}});const _0x360444=this[_0x1facb5(0x1e6)]['getCollection'](_0x259310,_0x497600),_0x2ee462=this[_0x1facb5(0x1e6)]['getPivotTableConfig'](_0x259310,_0x50e084,_0x497600);_0x1e6374[_0x1facb5(0x3bd)]({'id':_e['id'],'params':{'unitId':_0x259310,'subUnitId':_0x50e084,'pivotTableId':_0x497600,'pivotTableConfig':_0x2ee462,'collectionConfig':_0x360444}});}});}),{'redos':_0x3c8579,'undos':_0x1e6374};}return{'redos':[],'undos':[]};}}));}};je=kn([et(0x0,f['IUniverInstanceService']),et(0x1,f['Inject'](U[_0xaf6d92(0x40f)])),et(0x2,f[_0xaf6d92(0x320)](U[_0xaf6d92(0x43f)])),et(0x3,f[_0xaf6d92(0x320)](exports['SheetsPivotTableConfigModel']))],je);var jn=Object[_0xaf6d92(0x25a)],Ln=(_0x207a42,_0x251084,_0xd3fe75,_0x1da3dc)=>{const _0x502382=_0xaf6d92;for(var _0x3127a1=_0x1da3dc>0x1?void 0x0:_0x1da3dc?jn(_0x251084,_0xd3fe75):_0x251084,_0x58ff16=_0x207a42[_0x502382(0x3a2)]-0x1,_0x103dc3;_0x58ff16>=0x0;_0x58ff16--)(_0x103dc3=_0x207a42[_0x58ff16])&&(_0x3127a1=_0x103dc3(_0x3127a1)||_0x3127a1);return _0x3127a1;},We=(_0x46a28e,_0x529879)=>(_0x2395d2,_0x35ba44)=>_0x529879(_0x2395d2,_0x35ba44,_0x46a28e);let Le=class extends f['Disposable']{constructor(_0x5d29b3,_0x2d6441,_0x1edcd6,_0x2aa533,_0x50bc8a){const _0xa382f9=_0xaf6d92;super(),this[_0xa382f9(0x289)]=_0x5d29b3,this[_0xa382f9(0x237)]=_0x2d6441,this['_univerInstanceService']=_0x1edcd6,this[_0xa382f9(0x1e6)]=_0x2aa533,this[_0xa382f9(0x2bb)]=_0x50bc8a,this[_0xa382f9(0x2ea)]();}[_0xaf6d92(0x265)](_0x1c99dd,_0x54132d,_0x2ef8d4){const _0x4c32ac=_0xaf6d92,{pageView:_0xdb8705,cornerView:_0x1884e0,rowView:_0x341dba,colView:_0x3c2d2f,dataView:_0x254d4c}=_0x54132d,_0x3ad988=_0x1c99dd;let _0x4b6a14;if(_0x2ef8d4)_0x4b6a14=[...zt(_0x3ad988)];else{const _0x390ece=ne(_0x3ad988,_0xdb8705,!0x0),_0x3f08fb=_0xdb8705[_0x4c32ac(0x219)]>=0x0?_0xdb8705[_0x4c32ac(0x219)]+0x1:0x0,_0x3e6765=_0x1884e0['rowCount'],_0xeebe47=_0x1884e0[_0x4c32ac(0x489)],_0x30496a=_0x390ece[_0x4c32ac(0x3a2)]>0x0?we:0x0,_0x15b5f4=ne({'row':_0x3ad988['row']+_0x3f08fb+_0x30496a,'col':_0x3ad988['col']},_0x1884e0,!0x1,!0x1),_0x46bb77=ne({'row':_0x3ad988[_0x4c32ac(0x458)]+_0x3f08fb+_0x30496a+_0x3e6765,'col':_0x3ad988[_0x4c32ac(0x38d)]},_0x341dba,!0x1,!0x0),_0x4526d5=ne({'row':_0x3ad988[_0x4c32ac(0x458)]+_0x3f08fb+_0x30496a,'col':_0x3ad988[_0x4c32ac(0x38d)]+_0xeebe47},_0x3c2d2f,!0x1,!0x0),_0x3c00d8=ne({'row':_0x3ad988[_0x4c32ac(0x458)]+_0x3f08fb+_0x30496a+_0x3e6765,'col':_0x3ad988[_0x4c32ac(0x38d)]+_0xeebe47},_0x254d4c,!0x1,!0x0);_0x4b6a14=[..._0x390ece,..._0x15b5f4,..._0x46bb77,..._0x4526d5,..._0x3c00d8];}return _0x4b6a14;}['_initCommandInterceptListener'](){const _0x5ccb41=_0xaf6d92;this[_0x5ccb41(0x3b3)](this[_0x5ccb41(0x2bb)][_0x5ccb41(0x4ab)]['intercept'](this[_0x5ccb41(0x2bb)][_0x5ccb41(0x4ab)][_0x5ccb41(0x2f4)]()[_0x5ccb41(0x3c0)],{'handler':(_0x1d9736,_0x2595de)=>{const _0x35db60=_0x5ccb41,{cellInfo:_0x2bd6b1,view:_0x46540a,isEmpty:_0x336f10}=_0x2595de,_0x283a97=_0x2bd6b1,{unitId:_0x40c661,subUnitId:_0x235526}=_0x283a97,_0x137a70=this[_0x35db60(0x265)](_0x2bd6b1,_0x46540a,_0x336f10),_0x8978a7=this[_0x35db60(0x289)][_0x35db60(0x387)]({'unitId':_0x40c661,'subUnitId':_0x235526,'ranges':_0x137a70}),_0x55c717=Vt(this[_0x35db60(0x237)],_0x40c661,_0x235526,_0x137a70);_0x55c717[_0x35db60(0x429)]&&(_0x8978a7[_0x35db60(0x41f)][_0x35db60(0x3bd)](_0x55c717['setRangeValueRedoMutation']),_0x8978a7[_0x35db60(0x422)][_0x35db60(0x3bd)](_0x55c717[_0x35db60(0x2af)]));const _0x1d04ea=this[_0x35db60(0x467)](_0x46540a,_0x2bd6b1);return _0x8978a7[_0x35db60(0x41f)][_0x35db60(0x3bd)](..._0x1d04ea['redos']),_0x8978a7[_0x35db60(0x422)]['push'](..._0x1d04ea[_0x35db60(0x422)]),{'redos':_0x8978a7['redos'],'undos':_0x8978a7[_0x35db60(0x422)]};}}));}[_0xaf6d92(0x467)](_0x3a7b32,_0xe65549){const _0x5c5399=_0xaf6d92,{col:_0x2f112f,unitId:_0x25bc8c,subUnitId:_0xb70bb4}=_0xe65549,_0x15701c=[],_0x46bc30=[],_0x521237=U[_0x5c5399(0x402)](this['_univerInstanceService'],{'unitId':_0x25bc8c,'subUnitId':_0xb70bb4});if(!_0xe65549||!_0x3a7b32||!_0x521237)return{'undos':_0x46bc30,'redos':_0x15701c};const _0x3c5dbc=this[_0x5c5399(0x1e6)][_0x5c5399(0x3ea)](),{colView:_0x29f3e0,dataView:_0x542acc,cornerView:_0x3da6f8,rowView:_0x453df2,formatMap:_0x3ae9eb}=_0x3a7b32,_0x57634b=Bt(_0x29f3e0,_0x3c5dbc,!0x0,_0x3ae9eb),_0x202079=Bt(_0x453df2,_0x3c5dbc,!0x1,_0x3ae9eb),_0x300aa9=cn(_0x542acc),_0x1b4196=dn(_0x3da6f8),{worksheet:_0x22f90d}=_0x521237;if(typeof window<'u'&&window[_0x5c5399(0x386)]){const _0x4dfbb2=Ne['getFontStyleString']({...oe[_0x5c5399(0x40a)]}),_0x1e6801=Ne[_0x5c5399(0x3aa)][_0x5c5399(0x399)](_0x57634b,_0x4dfbb2)[_0x5c5399(0x3b6)]+0x10,_0x1c252e=Ne[_0x5c5399(0x3aa)][_0x5c5399(0x399)](_0x300aa9,_0x4dfbb2)[_0x5c5399(0x3b6)],_0x49ffa4=Math[_0x5c5399(0x45e)](Math['max'](_0x1e6801,_0x1c252e))+0x10,_0x476aa6=Math[_0x5c5399(0x45e)](Ne[_0x5c5399(0x3aa)][_0x5c5399(0x399)](_0x202079,_0x4dfbb2)[_0x5c5399(0x3b6)]),_0x5c9760=Math[_0x5c5399(0x45e)](Ne[_0x5c5399(0x3aa)][_0x5c5399(0x399)](_0x1b4196,_0x4dfbb2)[_0x5c5399(0x3b6)]),_0x4e59ec=Math[_0x5c5399(0x3d2)](_0x476aa6,_0x5c9760,0x28)+0xc,_0x421e40=_0x29f3e0[_0x5c5399(0x489)]+_0x3da6f8[_0x5c5399(0x489)],_0x38c9bf={},_0x10403b={};for(let _0x11e285=_0x2f112f;_0x11e285<_0x2f112f+_0x421e40;_0x11e285++){const _0x491952=_0x22f90d['getColumnWidth'](_0x11e285);_0x38c9bf[_0x11e285]=_0x491952,_0x11e285-_0x2f112f<_0x3da6f8[_0x5c5399(0x489)]?_0x10403b[_0x11e285-_0x2f112f]=_0x4e59ec:_0x10403b[_0x11e285-_0x2f112f]=_0x49ffa4;}_0x15701c['push']({'id':U[_0x5c5399(0x1dc)]['id'],'params':{'subUnitId':_0xb70bb4,'unitId':_0x25bc8c,'ranges':[{'startColumn':_0x2f112f,'endColumn':_0x2f112f+_0x421e40-0x1,'startRow':0x0,'endRow':_0x22f90d['getRowCount']()-0x1}],'colWidth':_0x10403b}}),_0x46bc30[_0x5c5399(0x3bd)]({'id':U['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0xb70bb4,'unitId':_0x25bc8c,'ranges':[{'startColumn':_0x2f112f,'endColumn':_0x2f112f+_0x421e40-0x1,'startRow':0x0,'endRow':_0x22f90d[_0x5c5399(0x2a4)]()-0x1}],'colWidth':_0x38c9bf}});}return{'undos':_0x46bc30,'redos':_0x15701c};}};Le=Ln([We(0x0,f['Inject'](U['SheetInterceptorService'])),We(0x1,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x283)])),We(0x2,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x48e)])),We(0x3,f['Inject'](exports[_0xaf6d92(0x36f)])),We(0x4,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x20f)]))],Le);var $n=Object['getOwnPropertyDescriptor'],Jn=(_0x5c066b,_0x2e03ba,_0x17cbbb,_0x732947)=>{const _0x55aab1=_0xaf6d92;for(var _0x1733a9=_0x732947>0x1?void 0x0:_0x732947?$n(_0x2e03ba,_0x17cbbb):_0x2e03ba,_0x4a09d6=_0x5c066b[_0x55aab1(0x3a2)]-0x1,_0x8ee998;_0x4a09d6>=0x0;_0x4a09d6--)(_0x8ee998=_0x5c066b[_0x4a09d6])&&(_0x1733a9=_0x8ee998(_0x1733a9)||_0x1733a9);return _0x1733a9;},Se=(_0x4dc905,_0x3a7f7f)=>(_0x528c4e,_0x22c1f6)=>_0x3a7f7f(_0x528c4e,_0x22c1f6,_0x4dc905);let $e=class extends f['Disposable']{constructor(_0x5372d3,_0x2f7c5f,_0x58a7a3,_0x4dd3d4,_0x3f96f3,_0x16ea82,_0xe530e7){const _0x23db7c=_0xaf6d92;super(),x(this,_0x23db7c(0x1e9),new f[(_0x23db7c(0x1ae))]()),(this['_injector']=_0x5372d3,this[_0x23db7c(0x39a)]=_0x2f7c5f,this['_commandService']=_0x58a7a3,this[_0x23db7c(0x3d0)]=_0x4dd3d4,this['_sheetsPivotTableConfigModel']=_0x3f96f3,this[_0x23db7c(0x295)]=_0x16ea82,this[_0x23db7c(0x289)]=_0xe530e7,this[_0x23db7c(0x343)]());}['_onRefRangeChange'](){const _0x534520=_0xaf6d92,_0x42af26=(_0x2198ef,_0x509e33)=>{const _0x5f1c1f=_0x5799,_0x1ae826=this[_0x5f1c1f(0x3d0)]['getCurrentUnitForType'](f[_0x5f1c1f(0x426)][_0x5f1c1f(0x202)]);if(!_0x1ae826||!(_0x1ae826==null?void 0x0:_0x1ae826[_0x5f1c1f(0x2e2)](_0x509e33)))return;this['disposableCollection']['dispose']();const _0x4284c4=_0x46bb0c=>this[_0x5f1c1f(0x2fe)](_0x46bb0c,_0x2198ef,_0x509e33),_0x115d17=this[_0x5f1c1f(0x1e6)][_0x5f1c1f(0x3c2)](_0x2198ef,_0x509e33);if(!(_0x115d17!=null&&_0x115d17[_0x5f1c1f(0x3c8)]))return;Array[_0x5f1c1f(0x439)](_0x115d17[_0x5f1c1f(0x46c)]())[_0x5f1c1f(0x3dd)](_0x26d7ad=>{const _0x1b9482=_0x5f1c1f,{row:_0x2b1fed,col:_0x5edce5}=_0x26d7ad[_0x1b9482(0x346)];return f['cellToRange'](_0x2b1fed,_0x5edce5);})[_0x5f1c1f(0x25e)](_0x248a22=>{const _0x5888dd=_0x5f1c1f;this[_0x5888dd(0x1e9)][_0x5888dd(0x2cf)](this[_0x5888dd(0x39a)][_0x5888dd(0x2c2)](_0x248a22,_0x4284c4,_0x2198ef,_0x509e33));});},_0x50fc24=()=>{const _0x33be1d=_0x5799,_0x3d8b77=this['_univerInstanceService'][_0x33be1d(0x27a)](f[_0x33be1d(0x426)][_0x33be1d(0x202)]);if(_0x3d8b77){const _0x1f3462=_0x3d8b77[_0x33be1d(0x3b4)]();if(!_0x1f3462)return;_0x42af26(_0x3d8b77[_0x33be1d(0x3bc)](),_0x1f3462[_0x33be1d(0x267)]());}};this[_0x534520(0x3b3)](this[_0x534520(0x451)]['onCommandExecuted'](_0x353eff=>{const _0xd2d955=_0x534520;if(_0x353eff['id']===U[_0xd2d955(0x2f2)]['id']){const _0x461030=_0x353eff[_0xd2d955(0x1a0)],_0x166e8f=_0x461030[_0xd2d955(0x371)],_0x1d0f6e=_0x461030[_0xd2d955(0x379)];if(!_0x166e8f||!_0x1d0f6e)return;_0x42af26(_0x1d0f6e,_0x166e8f);}})),this[_0x534520(0x3b3)](this[_0x534520(0x1e6)][_0x534520(0x40e)][_0x534520(0x2cb)](_0x49cc65=>{_0x49cc65&&_0x50fc24();})),this[_0x534520(0x3b3)](this['_sheetsPivotTableConfigModel'][_0x534520(0x475)][_0x534520(0x2cb)](_0x51d5c9=>{const _0x4bc387=_0x534520,_0x5ae1a7=U[_0x4bc387(0x402)](this['_univerInstanceService']);if(!_0x5ae1a7)return;const {unitId:_0x14c5e1,subUnitId:_0x362595}=_0x5ae1a7,{unitId:_0x47123c,subUnitId:_0x325fe9}=_0x51d5c9;_0x14c5e1!==_0x47123c||_0x362595!==_0x325fe9||_0x42af26(_0x14c5e1,_0x362595);})),_0x50fc24();}[_0xaf6d92(0x2fe)](_0x49a727,_0x5c41ae,_0x4e782e){const _0x4b21f9=_0xaf6d92;switch(_0x49a727['id']){case U[_0x4b21f9(0x492)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x49a727['params'],_0x5c41ae,_0x4e782e);}return{'redos':[],'undos':[]};}[_0xaf6d92(0x37e)](_0x58fe75,_0x14244d,_0x451e9c){const _0x235d78=_0xaf6d92,{fromRange:_0x42ba56,toRange:_0x4e0a42}=_0x58fe75,_0x5062a0=[],_0x43d461=[],_0x30cc4d=U[_0x235d78(0x402)](this[_0x235d78(0x3d0)]);if(!_0x30cc4d)return{'undos':_0x43d461,'redos':_0x5062a0};if(_0x14244d!==_0x30cc4d['unitId']||_0x451e9c!==_0x30cc4d[_0x235d78(0x371)])return{'undos':_0x43d461,'redos':_0x5062a0};const _0x293a11=this[_0x235d78(0x1e6)]['getSubUnitPivotConfigs'](_0x14244d,_0x451e9c);if(_0x293a11!=null&&_0x293a11['size'])for(const [_0x29c726,_0x13cd25]of _0x293a11){const {unitId:_0x51530e,subUnitId:_0x7bb04f,row:_0x26a30d,col:_0x21d2ca}=_0x13cd25['targetCellInfo'];if(_0x51530e===_0x30cc4d[_0x235d78(0x379)]&&_0x7bb04f===_0x30cc4d['subUnitId']){const _0x27c009=f[_0x235d78(0x423)](_0x26a30d,_0x21d2ca);if(f[_0x235d78(0x43a)][_0x235d78(0x1b4)](_0x27c009,_0x42ba56)){const _0x342c95=_0x26a30d-_0x42ba56[_0x235d78(0x3df)],_0x24d7f6=_0x21d2ca-_0x42ba56[_0x235d78(0x3b2)],_0x21af39={'row':_0x4e0a42[_0x235d78(0x3df)]+_0x342c95,'col':_0x4e0a42[_0x235d78(0x3b2)]+_0x24d7f6};_0x5062a0[_0x235d78(0x3bd)]({'id':Fe['id'],'params':{'unitId':_0x51530e,'subUnitId':_0x7bb04f,'pivotTableId':_0x29c726,'targetCellPosition':_0x21af39}}),_0x43d461['push']({'id':Fe['id'],'params':{'unitId':_0x51530e,'subUnitId':_0x7bb04f,'pivotTableId':_0x29c726,'targetCellPosition':{'row':_0x26a30d,'col':_0x21d2ca}}});const _0x2e8958=_0x21af39[_0x235d78(0x458)]-_0x26a30d,_0x38124e=_0x21af39[_0x235d78(0x38d)]-_0x21d2ca,_0x335d67=[],_0xd29d37=this['_sheetsPivotTableAdaptorModel'][_0x235d78(0x416)](_0x51530e,_0x7bb04f,_0x29c726),_0x30915e=_0xd29d37==null?void 0x0:_0xd29d37[_0x235d78(0x2e4)];if(_0x30915e){Object[_0x235d78(0x36b)](_0x30915e)[_0x235d78(0x25e)](_0x2ae4a5=>{const _0x1f36fe=_0x235d78;_0x30915e[_0x2ae4a5][_0x1f36fe(0x25e)](_0x3ecab7=>{const _0x5edc2f=_0x1f36fe,_0x50cd6c={..._0x3ecab7};_0x50cd6c[_0x5edc2f(0x3df)]=_0x3ecab7[_0x5edc2f(0x3df)]+_0x2e8958,_0x50cd6c['endRow']=_0x3ecab7[_0x5edc2f(0x314)]+_0x2e8958,_0x50cd6c[_0x5edc2f(0x3b2)]=_0x3ecab7[_0x5edc2f(0x3b2)]+_0x38124e,_0x50cd6c['endColumn']=_0x3ecab7[_0x5edc2f(0x4a2)]+_0x38124e,_0x335d67[_0x5edc2f(0x3bd)](_0x50cd6c);});});const _0x343516=this[_0x235d78(0x289)][_0x235d78(0x387)]({'unitId':_0x51530e,'subUnitId':_0x7bb04f,'ranges':_0x335d67});_0x5062a0['push'](..._0x343516[_0x235d78(0x41f)]),_0x43d461[_0x235d78(0x3bd)](..._0x343516[_0x235d78(0x422)]);const _0x322bb7=Vt(this[_0x235d78(0x237)],_0x51530e,_0x7bb04f,_0x335d67);_0x322bb7[_0x235d78(0x429)]&&(_0x5062a0[_0x235d78(0x3bd)](_0x322bb7[_0x235d78(0x2d4)]),_0x43d461[_0x235d78(0x3bd)](_0x322bb7[_0x235d78(0x2af)]));}}}}return{'redos':_0x5062a0,'undos':_0x43d461};}};$e=Jn([Se(0x0,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x283)])),Se(0x1,f[_0xaf6d92(0x320)](U[_0xaf6d92(0x224)])),Se(0x2,f['ICommandService']),Se(0x3,f[_0xaf6d92(0x48e)]),Se(0x4,f['Inject'](exports['SheetsPivotTableConfigModel'])),Se(0x5,f['Inject'](exports[_0xaf6d92(0x344)])),Se(0x6,f[_0xaf6d92(0x320)](U[_0xaf6d92(0x40f)]))],$e);var Qn=Object['getOwnPropertyDescriptor'],Kn=(_0x3200d1,_0x423216,_0x17d337,_0x3bc849)=>{const _0x1f7970=_0xaf6d92;for(var _0x57ac7f=_0x3bc849>0x1?void 0x0:_0x3bc849?Qn(_0x423216,_0x17d337):_0x423216,_0x59dfb1=_0x3200d1[_0x1f7970(0x3a2)]-0x1,_0x386f1b;_0x59dfb1>=0x0;_0x59dfb1--)(_0x386f1b=_0x3200d1[_0x59dfb1])&&(_0x57ac7f=_0x386f1b(_0x57ac7f)||_0x57ac7f);return _0x57ac7f;},kt=(_0x7d6f9a,_0x1d4255)=>(_0x505fb9,_0x37b6cf)=>_0x1d4255(_0x505fb9,_0x37b6cf,_0x7d6f9a);function _0x1f9c(){const _0x147408=['PivotDataFieldDataTypeEnum','PivotTable','643725WDcPdk','sheet.mutation.update-pivot-table-source-range','data','getCellMatrix','entries','Product\x20of\x20','sheet.command.set-pivot-field-setting','getGroupFieldsInfoByIds','column','getTableFieldById','unshift','splice','count','isDateGroupField','sheet.mutation.pivot-update-value-position','getValueIndex','6305068VrGowk','sheets-pivot.columnName','Subject','getSheetBySheetName','isBaseGroupField','Row','rangeCache','updateFieldSourceInfo','keys','drillDown','_queryingMap','reset','SheetsPivotTableConfigModel','min','subUnitId','getMatrixValue','InsertSheetCommand','_toJSON','setConfig','broadcastCollectionChange','getFieldIds','updateViewInfo','unitId','STRING','PivotDisplayDataType','IConfigService','generateSetRangeValueMutations','getRefRangeMutationsByMoveRange','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','dataStyle','NUM','RenamePivotFieldMutation','rangeKey','SheetsPivotDataSourceModel','measure','document','generateMutationsByRanges','onCommandExecuted','isFeatureAuthorizedWithinTime','filter','setName','FieldsCollection','col','_initViewModelBySheetInterceptor','getDataFieldId','_pivotRenderValueMatrixCache','MoveRangeMutation','sheet.command.move-pivot-table','valueFilter','sheet.mutation.set-pivot-option','sheet.command.set-pivot-value-filter','sheet.command.add-pivot-field','setFieldFormat','updateView','getTextSize','_refRangeService','_subjectCollectionChange','iterateFieldByArea','setRange','update','IUndoRedoService','_ensurePivotTableRangeInfo','fieldsCollectionChange$','length','getConfig','MonthDate','#eceeff','GlobalConfig','fieldsConfig','concat','applyChangeSet','FontCache','sheets-pivot.dateGroup.quarter','sheets-pivot.dateGroup.monthDate','message','_pivotRenderInfoCache','valueFields','pushComputingStatusSubject','colRanges','startColumn','disposeWithMe','getActiveSheet','sheets-pivot.stdDevpName','width','_configService','SetPivotPositionMutation','10kykvbR','RemovePivotFieldMutation','resetArea','getUnitId','push','stringify','3011092iXqjAw','PIVOT_MUTATION_GENERATE','Values','getSubUnitPivotConfigs','getPivotTableMatrixInfo','Grand\x20Total','_pivotInitCompleted$','rgb(240,241,243)','getValueFilterInfos','size','ResetPivotTable','registerCommand','random','sheets-pivot.varpName','CommandType','Count\x20of\x20','setPivotCollapse','_univerInstanceService','sheet.mutation.send-pivot-data-local','max','Quarter','set','sortInfo','rowFields','Panel','sheet.mutation.rename-pivot-field','getDirtyInfo','complete','value','clearRenderCache','map','_pivotTableInstanceCache','startRow','getDate','leftOffset','notExecuteFormula','IResourceManagerService','leafStyle','pivotTableIndexConfig','subtotal','registerDirtyService','version','sheet.command.update-date-group','getTextInfo','versions','replace','setPivotTableConfig','addFieldWithSourceId','getFormatInfo','SetPivotTableConfig','blank','sheets-pivot.subTotal','sheets-pivot.averageName','subTotalStyle','sheets-pivot.stdDevName','isNaN','getValue','SetCollapse','_collectionConfigModel','valueIndex','FORCE_STRING','getPivotDisplayConfig','YearQuarter','_fieldsCollectionChange$','#e6ebfa','clear','InterceptorManager','getSheetCommandTarget','unshiftString','getSubUnitPivotMatrix','NotName','generateHexNumber','markDirty$','addField','getIndexesByPathStr','colStyle','SetPivotFieldFormatMutation','sheets-pivot.cellDateGroupDisplay.yearMonth','COLUMN','pivotInitCompleted$','SheetInterceptorService','SetFieldFormat','RemovePivotTableMutation','toJSON','updateDataFieldsCollection','PivotFilterTypeEnum','setDataRecordCount','getPivotItemRenderInfoCache','setRangeKeyMap','_collectionChange$','_viewUpdate$','columnFields','sheet.mutation.send-init-pivot-text-local','sheet.command.set-pivot-collapse','NotNumber','_sheetsPivotDataSourceModel','redos','AddPivotTableWithConfig','AddPivotTable','undos','cellToRange','registerPluginResource','getRangeKey','UniverInstanceType','result','viewUpdate$','shouldClear','DataField','sheet.command.add-pivot-table-with-config','sheet.mutation.remove-pivot-table','SetOptions','RemoveSheetsFilterMutation','numfmt','addCollection','UpdateValuePosition','sheet.mutation.pivot-update-field-source-info','getRangeKeyList','format','_initPivotDataGetListener','getFieldDataType','SetPivotSortCommand','range','from','Rectangle','sheet.operation.pivot-table-view-formula-mark-dirty','Hour','getUnit','getSubtotal','SheetsSelectionsService','_ensurePivotTableMatrixInfo','Average\x20of\x20','addPivotTable','addDirtyPivotTable','registerSyncingMutations','setValuePivotFilter','onStarting','get','sourceName','hasOwnProperty','some','RemovePivotFieldCommand','getStyles','getMatrix','register','PivotCellStyleTypeEnum','pivotTableConfigs','_commandService','cornerRanges','CellValueType','dataStream','dataFieldId','_initSnapshot','\x20-\x20','row','sheets-pivot.productName','sheets-pivot.dateGroup.yearQuarter','dataFieldManagerConfig','setPivotFilter','sheets-pivot.config','floor','error','_sheetsPivotRpcService','53537vuMrgQ','PivotTableChangeTypeEnum','getPivotTableInfo','slice','#1d32e9','setTextInfo','getAutoFitColumnsMutations','ErrorType','pushUndoRedo','sheets-pivot.varName','_ensurePivotItemRenderInfoCache','values','updatePivotTableMatrixInfo','resetPivotTable','_ensurePivotMap','BLANK_PLACEHOLDER','UpdatePivotFieldSettingCommand','colHeaderMap','Range','number','pivotConfigChange$','createDataFieldId','Filter','workbook\x20is\x20not\x20found','Tools','_initClearSelectionCommandInterceptor','createAsyncInterceptorKey','isArray','updatePivotSource','InterceptorEffectEnum','node','getPivotTableInstance','sheets-pivot.countNumsName','getRangeData','_initLocale','sheet.command.reset-pivot-fields-config','pivotTableId','_initPivotTextInfo','varp','triggerDirtyFeature','colCount','UpdateFieldPosition','isDateValue','setSortInfo','viewData$','IUniverInstanceService','valuePosition','isDateGroupFieldJSON','setValue','MoveRangeCommand','next','AsyncInterceptorManager','prototype','has','getFieldListByArea','_ensureViewDataMap','_globalComputedEndHelpFunc','Var\x20of\x20','dataFieldsCollection','sheet.mutation.set-pivot-format','sheet.command.move-pivot-field','movePivotField','AddPivotTableCommand','Year','SetPivotFilter','endColumn','collectionConfig','areaInfo','sheet.mutation.get-pivot-data-local','2438058cYNFgj','sheets-pivot.dateGroup.yearMonthDate','NUMBER','RemovePivotField','rangeType','interceptor','foreach','pluginName','sheets-pivot.emptyPivot.filter','New','onQueryStart','countNums','Varp\x20of\x20','_initRemoveSheetCommandInterceptor','colInfo','_lifecycleService','tuple','_resourceManagerService','InsertSheetMutation','YearMonth','generateNewSheetName','RemoveColMutation','yiGVuB1G\x20KWVTlhuB1G(aBVWGgW,\x20hicaBVxWl)\x20{\x20\x20\x20\x20uTl\x20{\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20aBVWGgWeGy1YQTumTTQl\x20=\x20aBVWGgW.ghaBu(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x201TBbBG2WggQbW\x20=\x200EdN.hQTgW(Qu1c(aBVWGgWeGy1YQTumTTQl[O]));\x20\x20\x20\x20\x20\x20\x20\x20By\x20(!1TBbBG2WggQbW.iK)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201TBbBG2WggQbW.iK\x20=\x20NiCcWT(aBVWGgWeGy1YQTumTTQl[A]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20Bg31TFWT\x20=\x20ulhW1y\x2031TFWTZa1cQaEV1hW\x20!==\x20\x27iGKWyBGWK\x27\x20&&\x20gWay\x20BGguQGVW1y\x2031TFWTZa1cQaEV1hW;\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20BgtT1JgWT\x20=\x20ulhW1y\x20JBGK1J\x20!==\x20\x27iGKWyBGWK\x27\x20&&\x20ulhW1y\x20JBGK1J.a1VQuB1G\x20!==\x20\x27iGKWyBGWK\x27;\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20V1GuWsu\x20=\x20Bg31TFWT\x20?\x20gWay\x20:\x20(BgtT1JgWT\x20?\x20JBGK1J\x20:\x20ba1cQaSHBg);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20CWggQbW31TK\x20=\x20V1GuWsu.__tQgWqA__.hQTgW(aBVWGgWeGy1YQTumTTQl[O]);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20CWggQbW\x20=\x20V1GuWsu.__XWs__.guTBGbByl(CWggQbW31TK);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20gBbGQuiTW31TK\x20=\x20V1GuWsu.__tQgWqA__.hQTgW(aBVWGgWeGy1YQTumTTQl[k]);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20gBbGQuiTW\x20=\x20V1GuWsu.__XWs__.guTBGbByl(gBbGQuiTW31TK);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20gBbGpQaBK\x20=\x20V1GuWsu.__jWTByl__(gBbGQuiTW,\x20CWggQbW,\x20hicaBVxWl);\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20K1CQBG\x20=\x201TBbBG2WggQbW.KC;\x20\x20\x20\x20\x20\x20\x20\x20yiGVuB1G\x20Bgr1CQBG2QuVHBGb(1YQuuWTG,\x201X1gu)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20hQuuWTG\x20=\x201YQuuWTG.TWhaQVW(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20H1gu\x20=\x201X1gu.TWhaQVW(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20hQuuWTGYQTug\x20=\x20hQuuWTG.ghaBu(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20H1guYQTug\x20=\x20H1gu.ghaBu(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20By\x20(!hQuuWTG.BGVaiKWg(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TWuiTG\x20hQuuWTG\x20===\x20H1gu;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20By\x20(hQuuWTGYQTug.aWGbuH\x20<\x20O\x20||\x20hQuuWTGYQTug[9]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TWuiTG\x20yQagW;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20hQuuWTGEiyyBs\x20=\x20hQuuWTGYQTug.gaBVW(M).n1BG(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20H1guEiyyBs\x20=\x20H1guYQTug.gaBVW(-hQuuWTGYQTug.aWGbuH\x20+\x20M).n1BG(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TWuiTG\x20hQuuWTGEiyyBs\x20===\x20H1guEiyyBs;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20aWu\x20K1CQBGpQaBK\x20=\x20yQagW;\x20\x20\x20\x20\x20\x20\x20\x20By\x20(BgtT1JgWT)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20K1CQBGpQaBK\x20=\x20(K1CQBG\x20&&\x20K1CQBG.aWGbuH)\x20?\x20K1CQBG.g1CW((KCeuWC)\x20=>\x20Bgr1CQBG2QuVHBGb(KCeuWC,\x20a1VQuB1G.H1guGQCW))\x20:\x20uTiW;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20By\x20(a1VQuB1G.H1guGQCW\x20===\x20\x27a1VQaH1gu\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20K1CQBGpQaBK\x20=\x20uTiW;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20}\x20WagW\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20K1CQBGpQaBK\x20=\x20uTiW;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20V1Ggu\x20jQaBK\x20=\x20gBbGpQaBK\x20&&\x20K1CQBGpQaBK;\x20\x20\x20\x20\x20\x20\x20\x20TWuiTG\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jQaBK,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CWggQbW:\x201TBbBG2WggQbW,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20VQuVH\x20(WTT1T)\x20{\x20\x20\x20\x20\x20\x20\x20\x20TWuiTG\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jQaBK:\x20yQagW,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CWggQbW:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','getFieldById','setPivotSetting','single','getFieldPositionInfoById','SetSubtotalType','params','iterateField','_sheetsSelectionsService','panel','contains','updateRenderCache','setPivotTable','Add','isValue','refreshData','sheet.mutation.set-pivot-sort-info','filterInfo','InsertRowMutation','addExclusiveRange','DisposableCollection','removeValueFilterInfoByValueFieldId','getPivotPerformCheck','canUsePivot','pageRanges','textInfo','intersects','16JOtUcG','68WlczXS','type','AddPivotTableWithConfigCommand','getLastCol','getDisplayName','handleAsyncResponse','MovePivotTableCommand','existing','isColMultiMeasure','#b2b2b2','removePivotTable','mergeWorksheetSnapshotWithDefault','sheets-pivot.cellDateGroupDisplay.hourMinute','sheets-pivot.maxName','ManualFilter','isText','generateNullCell','tableFieldId','_subjectViewChange','fieldId','collectionChange$','getColCount','adjustSheetCellData','registerCallbackWithEvent','_globalComputingSrv','updateFieldPosition','_viewData','sheet.mutation.add-group-collection','UpdatePivotSource','_markDirty$','filterId','sheets-pivot.minName','grandTotal','_dataSyncPrimaryController','_requestResolvers','limit\x20pivot','getAdjustRangesPosition','getIntersects','SetWorksheetColWidthMutation','_updateModelCache','BLANK_ROW_COUNT','asObservable','sheets-pivot.cellDateGroupDisplay.quarter','AddPivotTableMutation','getAutoDisplayNameFunction','ClearSelectionContentCommand','renameField','PivotSubtotalTypeEnum','_sheetsPivotTableConfigModel','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','realDeleteValue','disposableCollection','setCollapse','addPivotField','setSubtotalType','collapseInfo','batch','SetPivotSortMutation','level','getSortInfo','addDataFieldWithoutUnitInfo','REF','getTargetByPivotId','filterFields','find','getSheetFeatureLimit','endCollectChangeset','getDataFieldManager','_initRegisterCommand','getFieldCountByArea','_globalComputedStartHelpFunc','SHEET_PIVOT_TABLE_PLUGIN','sheets-pivot.countName','getformat','_textInfo','getSheets','UNIVER_SHEET','getIntersectsPivotTable','sheet.command.update-pivot-value-position','SetPivotValueFilterCommand','GrandTotal','sheets-pivot.dateGroup.date','getMatrixFromRunTimeData','getDataFieldItemInfo','setOptions','SetSheetsFilterRangeMutation','getFieldFormat','_host','delete','SheetsPivotTableService','PivotErrorTypeEnum','getHeaderMapItem','onQueryEnd','getUpdateRangeDeleteIds','maxDate','generateRandomId','removeValueFilterInfo','UpdateSource','StdDevp\x20of\x20','lastRow','handleSourceRangeChange','displayName','getCellRaw','forValue','(Blank)','bind','HourMinute','getPivotInfoByLicense','removeCollections','GlobalComputingStatusService','RefRangeService','RemoveField','sheet.mutation.set-pivot-field-subtotal-type','getDataFieldByDataFieldId','pivotPerformCheck','sheets-pivot.grandTotal','updateCollectionConfig','setDateType','sheets-pivot.cellDateGroupDisplay.minute','Value','ICommandService','stdDevp','PositionType','refreshGroupField','_initConfig','numberToABC','sheets-pivot.dateGroup.hourMinute','addCollectionByJSON','pbt','_injector','getName','sequenceExecute','removeField','_ensurePivotItemRenderValueMatrixCache','fetchThroughInterceptors','PivotCallbackEnum','fromJSON','dataFields','PivotTableFiledAreaEnum','includes','setSourceName','pageStyle','LifecycleService','defineProperty','name','sheet.mutation.set-pivot-filter','updateViewData','_deleteModelCache','_pivotConfigChange$','fetchThroughAsyncInterceptors','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','collection','string','sum','getTypeOfUnitDisposed$','_viewData$','getColumnCount','Div0','_globalSubject','intercept','Plugin','serializeRangeWithSpreadsheet','sheets-pivot.dateGroup.minute','handleMoveRange','getOwnPropertyDescriptor','getValuePosition','getPivotTableIdByCell','getFieldInfo','forEach','setPivotInitCompleted','isErrorValue','#f4f4f5','rowHeaderMap','_pivotTableRangeInfo','getPivotCellInfo','_getPivotAppliedRanges','getPivotTableConfig','getSheetId','NotFunction','formJSON','getPivotTableRangeInfo','RemoveSheetCommand','#FFFFFF','Collapse','_exclusiveRangeService','setValueFilterInfo','PivotDateGroupFieldDateTypeEnum','ReleaseType','sheet.mutation.send-pivot-view-local','AddField','isBottomTotal','defaultThemeStyle','Module','new','object','SetPivotSubtotalTypeMutation','getCurrentUnitForType','sheet.mutation.send-pivot-config-local','unionPivotViewRange','setLabelFilterInfo','RANGE_TYPE','sheets-pivot.cellDateGroupDisplay.date','interceptCommand','getAutoDisplayName','4243068NowpmN','Injector','sheets-pivot.cellDateGroupDisplay.month','PivotTableViewDirtyMarkOperation','product','MIN_SAFE_INTEGER','cornerInfo','_sheetInterceptorService','Existing','iterateFieldDim','UpdatePivotValuePositionCommand','headerMap','updatePivotTableRangeInfo','createLabelField','executeCommand','isEmpty','SetPivotCollapse','_initDataSendListener','sheetName','_sheetsPivotTableAdaptorModel','sheets-pivot.cellDateGroupDisplay.yearMonthDate','AddPivotFieldCommand','sheets.tabs.sheet','CELL_CONTENT','Set','getPivotTableModelConfig','_initGlobalComputed','dispose','sheets-pivot.emptyPivot.values','None','deleteField','stdDev','sheets-pivot.cellDateGroupDisplay.yearQuarter','PivotTableValuePositionEnum','getRowCount','PivotTableOperationEnum','substring','Disposable','valid','AddPivotField','sheet.mutation.remove-group-collection','symbol','deleteUnitId','getSourceName','SHEET_PIVOT_IN_MAIN_THREAD','setRangeValueUndoMutation','initDataRanges','call','sheet.mutation.pivot-update-field-position','UpdateValuePositionMutation','YearMonthDate','_createExclusiveRange','_updateRenderEmptyCache','sheets-pivot.dateGroup.hour','rowRanges','dimension','needSameDeleteModel','_sheetsPivotTableService','reduce','parseInt','DrillDown','options','getTargetByPivotTableId','rowStyle','registerRefRange','fieldIds','merge','sheet.command.add-pivot-table','getFilterFieldIdByIndex','Max\x20of\x20','collections','Column\x20','IActiveDirtyManagerService','subscribe','info','SetPivotSort','custom','add','sheet.mutation.set-pivot-value-filter','refreshDataField','removePivotField','updateAllDisplayName','setRangeValueRedoMutation','MAX_SAFE_INTEGER','PivotDataFieldTypeEnum','getFormat','sheet.command.update-pivot-table-source-range','sheet.command.remove-pivot-field','LocaleService','originTargetInfo','getCurrentSelections','_initUnitDisposed','dateType','updateConfig','fontRenderExtension','sheets-pivot.sumName','getSheetBySheetId','Expand','rangesInfo','markDirty','sheets-pivot.dateGroup.month','_getAutoName','sheet.mutation.add-pivot-table','getNoUsedDataFieldIds','_initCommandInterceptListener','ObjectMatrix','_configVersion$','getMonth','MUTATION','SetPivotFilterMutation','startCollectChangeset','Style','SetWorksheetActiveOperation','deleteDataField','getInterceptPoints','PivotView','SetRangeValuesMutation','getRangeStartEndInfo','MovePivotField','_model','toStringTag','INTERCEPTOR_POINT','oldMatrix','addRecord','_refRangeHandle','UpdatePivotFieldSourceInfoMutation','SHEET_PIVOT_EXCLUSIVE_ID','_subjectFieldsCollectionChange','NO_COMMERCIAL','DIV_BY_ZERO','getViewData','parse','cornerStyle','_updatePivotTableInstanceCache','Min\x20of\x20','Subtotal','getOriginFieldId','_featureCalculationManagerService','createCollectionWithDataRange','CustomCommandExecutionError','ΣValue','PivotViewCellValueTypeEnum','SetValuePivotFilter','rangeKeyMap','sheets-pivot.cellDateGroupDisplay.year','getFullYear','endRow','token','_config','_init','23063320Dquvmn','removeCollectionImp','getPivotTableCellData','createInterceptorKey','uniqueDataFieldName','remove','setPivotSort','getDataFieldByTableId','Inject','IExclusiveRangeService','Minute','sheet.command.set-pivot-sort','NAME','LS_CONFIG_KEY','setDirty','SheetsPivotRPCService','toString','SetFilterInfo','SetRangeValuesUndoMutationFactory','isDate','sourceRangeInfo','removeDataField','getDataFieldByRangeKey','fields','configVersion$','NORMAL','getCollection','createValueField','UniverSheetsPivotTablePlugin','rowCount','_dataFieldManagerCollection','updateRangeKeyMap','ClearSelectionAllCommand','query','Column','removeSourceRangeChange','Date','sheets-pivot.blank','getLastRow','dateGroupField','UpdatePivotTableSourceRangeMutation','getId','excelDateToUnixMilliseconds','_onRefRangeChange','SheetsPivotTableAdaptorModel','lastCol','targetCellInfo','COMMAND','Month','_pivotTableMatrixInfo','asyncInterceptor','sheets-pivot.value','updateValuePosition','Delete','updateConfigCache','UpdateDateGroupCommand','date'];_0x1f9c=function(){return _0x147408;};return _0x1f9c();}let Je=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x513d79,_0x11c37e){const _0x4c4cb7=_0xaf6d92;super(),this['_sheetInterceptorService']=_0x513d79,this['_sheetsPivotTableConfigModel']=_0x11c37e,this[_0x4c4cb7(0x4b3)]();}[_0xaf6d92(0x4b3)](){const _0x580ae2=_0xaf6d92;this[_0x580ae2(0x3b3)](this[_0x580ae2(0x289)][_0x580ae2(0x280)]({'getMutations':_0x4d72c7=>{const _0x2904fd=_0x580ae2;if(_0x4d72c7['id']===U[_0x2904fd(0x26b)]['id']){const _0x40a6e5=[],_0x4fab31=[],_0x79f0cf=_0x4d72c7[_0x2904fd(0x1a0)],{unitId:_0xae55a3,subUnitId:_0x16434b}=_0x79f0cf;if(!_0xae55a3||!_0x16434b)return{'undos':_0x4fab31,'redos':_0x40a6e5};const _0x5d85f2=this['_sheetsPivotTableConfigModel'][_0x2904fd(0x3c2)](_0xae55a3,_0x16434b);if(_0x5d85f2!=null&&_0x5d85f2['size'])for(const [_0x5f509d,_0x2900af]of _0x5d85f2){_0x40a6e5['push']({'id':qe['id'],'params':{'unitId':_0xae55a3,'subUnitId':_0x16434b,'pivotTableId':_0x5f509d}});const _0x16b8bd={...this['_sheetsPivotTableConfigModel'][_0x2904fd(0x332)](_0xae55a3,_0x5f509d)};_0x4fab31[_0x2904fd(0x3bd)]({'id':_e['id'],'params':{'unitId':_0xae55a3,'subUnitId':_0x16434b,'pivotTableId':_0x5f509d,'pivotTableConfig':_0x2900af,'collectionConfig':_0x16b8bd}});}return{'redos':_0x40a6e5,'undos':_0x4fab31};}return{'redos':[],'undos':[]};}}));}};Je=Kn([kt(0x0,f[_0xaf6d92(0x320)](U[_0xaf6d92(0x40f)])),kt(0x1,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x36f)]))],Je);var Hn=Object[_0xaf6d92(0x25a)],qn=(_0x480d78,_0xa6d64c,_0x560287,_0x34187a)=>{for(var _0xc746e1=_0x34187a>0x1?void 0x0:_0x34187a?Hn(_0xa6d64c,_0x560287):_0xa6d64c,_0x25ac7f=_0x480d78['length']-0x1,_0x2f71a2;_0x25ac7f>=0x0;_0x25ac7f--)(_0x2f71a2=_0x480d78[_0x25ac7f])&&(_0xc746e1=_0x2f71a2(_0xc746e1)||_0xc746e1);return _0xc746e1;},ye=(_0x2b7dd7,_0x8c147c)=>(_0x20d096,_0x31cf61)=>_0x8c147c(_0x20d096,_0x31cf61,_0x2b7dd7);let Qe=class extends f[_0xaf6d92(0x2a7)]{constructor(_0x4c4d20,_0x3092ba,_0x49f74e,_0x585831,_0x126e17,_0x2f11a5){const _0x8330f0=_0xaf6d92;super(),this[_0x8330f0(0x451)]=_0x4c4d20,this[_0x8330f0(0x460)]=_0x3092ba,this[_0x8330f0(0x295)]=_0x49f74e,this['_sheetsPivotTableConfigModel']=_0x585831,this['_univerInstanceService']=_0x126e17,this['_activeDirtyManagerService']=_0x2f11a5,this['_initDataSendListener'](),this['registerDirtyService']();}[_0xaf6d92(0x293)](){const _0x168e43=_0xaf6d92;this[_0x168e43(0x3b3)](this[_0x168e43(0x451)][_0x168e43(0x388)](_0x46862d=>{const _0x1c66ce=_0x168e43;if(_0x46862d['id']!==wt['id'])return;const _0xd018c5=_0x46862d[_0x1c66ce(0x1a0)];this[_0x1c66ce(0x460)][_0x1c66ce(0x1bb)](_0xd018c5);})),this[_0x168e43(0x3b3)](this[_0x168e43(0x451)]['onCommandExecuted'](_0x4e29df=>{const _0x372082=_0x168e43;if(_0x4e29df['id']===_t['id']){const _0x149cdc=_0x4e29df[_0x372082(0x1a0)];if(_0x149cdc){const {unitId:_0x4dbe58,subUnitId:_0x4e794f,oldSubUnitId:_0x436043,pivotTableId:_0x4be428,pivotTableConfig:_0x51cbcb,collectionConfig:_0x553730}=_0x149cdc;this[_0x372082(0x1e6)]['updateConfigCache'](_0x4dbe58,_0x436043,_0x149cdc[_0x372082(0x485)],null),this[_0x372082(0x1e6)]['updateConfigCache'](_0x4dbe58,_0x4e794f,_0x4be428,_0x51cbcb),this[_0x372082(0x1e6)][_0x372082(0x22a)](_0x4dbe58,_0x553730);}}})),this['disposeWithMe'](this[_0x168e43(0x451)][_0x168e43(0x388)](_0x3ca3f9=>{const _0x50e743=_0x168e43;if(_0x3ca3f9['id']!==ot['id'])return;const _0x1e4b0e=U[_0x50e743(0x402)](this['_univerInstanceService']);if(!_0x1e4b0e)return;const {unitId:_0x55a535,subUnitId:_0x5ce116}=_0x1e4b0e,_0xf6fda0=_0x3ca3f9[_0x50e743(0x1a0)];if(_0xf6fda0[_0x50e743(0x4a3)]&&Object[_0x50e743(0x36b)](_0xf6fda0['collectionConfig'])[_0x50e743(0x25e)](_0x44734e=>{const _0x2f3611=_0x50e743;var _0x244199;(_0x244199=_0xf6fda0['collectionConfig'])!=null&&_0x244199[_0x44734e]&&this[_0x2f3611(0x1e6)][_0x2f3611(0x22a)](_0x44734e,_0xf6fda0[_0x2f3611(0x4a3)][_0x44734e]);}),_0xf6fda0[_0x50e743(0x19d)]){const _0x21d2f1=_0xf6fda0[_0x50e743(0x19d)],{unitId:_0x5add36,subUnitId:_0x28830b,view:_0x3aafab,pivotTableId:_0x133b8f,type:_0x2da5ec,pivotConfig:_0x27f8d3}=_0x21d2f1;if(_0x2da5ec===W['Delete'])this[_0x50e743(0x295)][_0x50e743(0x3dc)]({'unitId':_0x5add36,'subUnitId':_0x28830b,'pivotTableId':_0x133b8f,'type':_0x2da5ec}),this[_0x50e743(0x1e6)][_0x50e743(0x34e)](_0x5add36,_0x28830b,_0x133b8f,null);else{const _0x1a8c51=new m[(_0x50e743(0x2f5))]();_0x1a8c51['formJSON'](_0x3aafab),this[_0x50e743(0x1e6)][_0x50e743(0x34e)](_0x5add36,_0x28830b,_0x133b8f,_0x27f8d3),this['_sheetsPivotTableAdaptorModel'][_0x50e743(0x3dc)]({'unitId':_0x5add36,'subUnitId':_0x28830b,'pivotTableId':_0x133b8f,'type':_0x2da5ec,'view':_0x1a8c51}),this[_0x50e743(0x295)][_0x50e743(0x1a5)]({'unitId':_0x5add36,'subUnitId':_0x28830b,'view':_0x1a8c51,'pivotTableId':_0x133b8f,'type':_0x2da5ec});}}else _0xf6fda0[_0x50e743(0x1ee)]&&(_0xf6fda0[_0x50e743(0x1ee)][_0x50e743(0x25e)](_0x5170d8=>{const _0x1b700f=_0x50e743,{unitId:_0xbb0a2c,subUnitId:_0x202c41,view:_0x53baa1,pivotTableId:_0x200c45,type:_0x45eec7,pivotConfig:_0xea0a1a}=_0x5170d8,_0x573262=new m[(_0x1b700f(0x2f5))]();_0x573262[_0x1b700f(0x269)](_0x53baa1),this[_0x1b700f(0x1e6)]['updateConfigCache'](_0xbb0a2c,_0x202c41,_0x200c45,_0xea0a1a),this[_0x1b700f(0x295)][_0x1b700f(0x1a5)]({'unitId':_0xbb0a2c,'subUnitId':_0x202c41,'view':_0x573262,'pivotTableId':_0x200c45,'type':_0x45eec7});}),this[_0x50e743(0x1e6)][_0x50e743(0x25f)]());this[_0x50e743(0x295)][_0x50e743(0x2e5)](_0x55a535,_0x5ce116);}));}[_0xaf6d92(0x3e7)](){const _0x3d3898=_0xaf6d92;this['_activeDirtyManagerService'][_0x3d3898(0x44e)](He['id'],{'commandId':He['id'],'getDirtyData'(_0x451d94){const _0x90d5db=_0x3d3898;return{'dirtyUnitFeatureMap':_0x451d94[_0x90d5db(0x1a0)]};}});}};Qe=qn([ye(0x0,f[_0xaf6d92(0x320)](f['ICommandService'])),ye(0x1,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x327)])),ye(0x2,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x344)])),ye(0x3,f[_0xaf6d92(0x320)](exports[_0xaf6d92(0x36f)])),ye(0x4,f[_0xaf6d92(0x320)](f['IUniverInstanceService'])),ye(0x5,fe[_0xaf6d92(0x2ca)])],Qe);function _0x5799(_0x2728d3,_0x3754eb){_0x2728d3=_0x2728d3-0x195;const _0x1f9cea=_0x1f9c();let _0x5799d1=_0x1f9cea[_0x2728d3];return _0x5799d1;}var Yn=Object['defineProperty'],zn=Object[_0xaf6d92(0x25a)],Xn=(_0x575722,_0x2b7b9a,_0x2d53c3)=>_0x2b7b9a in _0x575722?Yn(_0x575722,_0x2b7b9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d53c3}):_0x575722[_0x2b7b9a]=_0x2d53c3,Zn=(_0x5f282f,_0x4ee382,_0x109d94,_0x3c3905)=>{const _0x580eb9=_0xaf6d92;for(var _0xb20d04=_0x3c3905>0x1?void 0x0:_0x3c3905?zn(_0x4ee382,_0x109d94):_0x4ee382,_0x3acce7=_0x5f282f[_0x580eb9(0x3a2)]-0x1,_0x35c44d;_0x3acce7>=0x0;_0x3acce7--)(_0x35c44d=_0x5f282f[_0x3acce7])&&(_0xb20d04=_0x35c44d(_0xb20d04)||_0xb20d04);return _0xb20d04;},tt=(_0x1128fa,_0x30b76a)=>(_0x423ccd,_0x3908e5)=>_0x30b76a(_0x423ccd,_0x3908e5,_0x1128fa),Io=(_0x1b86de,_0x89c161,_0x4b13e5)=>Xn(_0x1b86de,typeof _0x89c161!=_0xaf6d92(0x2ab)?_0x89c161+'':_0x89c161,_0x4b13e5);exports[_0xaf6d92(0x334)]=class extends f[_0xaf6d92(0x256)]{constructor(_0x477a46=Gt,_0x9e4ec5,_0x2fb3c3,_0x33547d,_0x59cab5){const _0x3d9ca2=_0xaf6d92;super(),this[_0x3d9ca2(0x316)]=_0x477a46,this['_injector']=_0x9e4ec5,this[_0x3d9ca2(0x451)]=_0x2fb3c3,this[_0x3d9ca2(0x3b7)]=_0x33547d,this[_0x3d9ca2(0x1d7)]=_0x59cab5;const {..._0x12aeb8}=f[_0x3d9ca2(0x2c4)]({},Gt,this[_0x3d9ca2(0x316)]);this[_0x3d9ca2(0x3b7)][_0x3d9ca2(0x375)](Nt,_0x12aeb8),this['_initRegisterCommand'](),this['_initConfig']();}[_0xaf6d92(0x232)](){const _0x740ce6=_0xaf6d92;var _0x56a3af;const _0x52cadd=(_0x56a3af=this[_0x740ce6(0x316)])==null?void 0x0:_0x56a3af[_0x740ce6(0x3e2)];this[_0x740ce6(0x3b7)][_0x740ce6(0x375)](Q,_0x52cadd===!0x0);}[_0xaf6d92(0x446)](){const _0x18d194=_0xaf6d92;var _0x3eb12d;let _0x393860=[];const _0x447b23=(_0x3eb12d=this[_0x18d194(0x316)])==null?void 0x0:_0x3eb12d['notExecuteFormula'];_0x447b23===!0x0?_0x393860=[[exports[_0x18d194(0x20f)]],[exports[_0x18d194(0x327)]],[Qe],[exports['SheetsPivotTableAdaptorModel']],[exports['SheetsPivotTableConfigModel']],[Je],[je],[$e],[Le]]:_0x447b23===!0x1?_0x393860=[[exports[_0x18d194(0x384)]],[ke]]:_0x447b23===void 0x0&&(_0x393860=[[exports['SheetsPivotDataSourceModel']],[ke],[exports['SheetsPivotTableService']],[exports['SheetsPivotRPCService']],[Qe],[exports['SheetsPivotTableAdaptorModel']],[exports[_0x18d194(0x36f)]],[Je],[je],[$e],[Le]]),_0x393860[_0x18d194(0x25e)](_0x3e20ba=>this[_0x18d194(0x237)][_0x18d194(0x2cf)](_0x3e20ba)),[ke,Qe,exports[_0x18d194(0x20f)],je,Je,$e,Le][_0x18d194(0x25e)](_0x4140d8=>{const _0x50e6fb=_0x18d194;this[_0x50e6fb(0x237)][_0x50e6fb(0x496)](_0x4140d8)&&this[_0x50e6fb(0x237)][_0x50e6fb(0x447)](_0x4140d8);});}[_0xaf6d92(0x1fa)](){const _0x4738dd=_0xaf6d92;[oo,no,to,io,ro,Co,ho,co,fo,go,po,mo,ao,so,_e,yt,qe,it,Zt,eo,ct,at,st,rt,ut,dt,Fe,Ft,wt,ot,vt,pt,gt,lt,Rt,mt,ht,He,_t,vo,ft,uo,lo][_0x4738dd(0x25e)](_0x15c1a2=>{const _0x45a680=_0x4738dd;var _0x3d2d9f;(_0x3d2d9f=this[_0x45a680(0x1d7)])==null||_0x3d2d9f[_0x45a680(0x444)](_0x15c1a2),this[_0x45a680(0x451)][_0x45a680(0x3ca)](_0x15c1a2);});}},Io(exports[_0xaf6d92(0x334)],_0xaf6d92(0x4ad),It),Io(exports[_0xaf6d92(0x334)],_0xaf6d92(0x1b7),f[_0xaf6d92(0x426)]['UNIVER_SHEET']),exports[_0xaf6d92(0x334)]=Zn([f['DependentOn'](ue['UniverLicensePlugin']),tt(0x1,f['Inject'](f[_0xaf6d92(0x283)])),tt(0x2,f[_0xaf6d92(0x320)](f[_0xaf6d92(0x22e)])),tt(0x3,f[_0xaf6d92(0x37c)]),tt(0x4,f['Optional'](_o['DataSyncPrimaryController']))],exports[_0xaf6d92(0x334)]),exports[_0xaf6d92(0x297)]=to,exports['AddPivotFieldMutation']=it,exports[_0xaf6d92(0x49f)]=no,exports[_0xaf6d92(0x1e1)]=_e,exports[_0xaf6d92(0x1b8)]=oo,exports[_0xaf6d92(0x1de)]=we,exports['DEFAULT_PIVOT_NUMBER']=Ct,exports['MovePivotFieldCommand']=io,exports[_0xaf6d92(0x1bc)]=ao,exports[_0xaf6d92(0x37b)]=B,exports['PivotDrillDownCommand']=so,exports[_0xaf6d92(0x2a5)]=W,exports[_0xaf6d92(0x285)]=He,exports[_0xaf6d92(0x230)]=Mt,exports[_0xaf6d92(0x44b)]=ro,exports[_0xaf6d92(0x3ba)]=at,exports[_0xaf6d92(0x411)]=qe,exports[_0xaf6d92(0x382)]=st,exports['ResetPivotFieldsConfigCommand']=lo,exports[_0xaf6d92(0x24c)]=Nt,exports[_0xaf6d92(0x1fd)]=It,exports['SetPivotCollapseCommand']=co,exports['SetPivotCollapseMutation']=rt,exports[_0xaf6d92(0x40b)]=lt,exports['SetPivotFieldsConfigCommand']=uo,exports['SetPivotFilterCommand']=go,exports[_0xaf6d92(0x2ef)]=ct,exports['SetPivotOptionMutation']=dt,exports[_0xaf6d92(0x3b8)]=Fe,exports[_0xaf6d92(0x437)]=fo,exports[_0xaf6d92(0x1ef)]=ut,exports[_0xaf6d92(0x279)]=gt,exports[_0xaf6d92(0x205)]=vo,exports['SetPivotValueFilterMutation']=ft,exports[_0xaf6d92(0x34f)]=ho,exports['UpdateFieldPositionMutation']=vt,exports[_0xaf6d92(0x471)]=po,exports[_0xaf6d92(0x2ff)]=ht,exports['UpdatePivotTableSourceRangeCommand']=mo,exports[_0xaf6d92(0x340)]=mt,exports[_0xaf6d92(0x28c)]=Co,exports[_0xaf6d92(0x2b3)]=pt,exports[_0xaf6d92(0x3a9)]=ae,exports[_0xaf6d92(0x1b1)]=Et,exports[_0xaf6d92(0x275)]=oe,exports[_0xaf6d92(0x37d)]=Vt,exports[_0xaf6d92(0x1da)]=ne,exports['getEmptyPivotRanges']=zt,exports[_0xaf6d92(0x497)]=Ke,exports['getInsertRowColMutations']=ce,exports[_0xaf6d92(0x264)]=qt,exports[_0xaf6d92(0x221)]=St,exports[_0xaf6d92(0x463)]=Yt,exports['transFromCellValue']=Me,exports[_0xaf6d92(0x27c)]=nt;
|
|
1
|
+
'use strict';const _0x2730a7=_0x33c9;(function(_0x512a5b,_0x29725e){const _0xfe559c=_0x33c9,_0x4b666a=_0x512a5b();while(!![]){try{const _0x22e19e=-parseInt(_0xfe559c(0x2b0))/0x1+parseInt(_0xfe559c(0x3b6))/0x2*(parseInt(_0xfe559c(0x341))/0x3)+parseInt(_0xfe559c(0x3e1))/0x4+parseInt(_0xfe559c(0x254))/0x5+-parseInt(_0xfe559c(0x199))/0x6+-parseInt(_0xfe559c(0x3c8))/0x7+-parseInt(_0xfe559c(0x2b8))/0x8*(-parseInt(_0xfe559c(0x28b))/0x9);if(_0x22e19e===_0x29725e)break;else _0x4b666a['push'](_0x4b666a['shift']());}catch(_0x534bdc){_0x4b666a['push'](_0x4b666a['shift']());}}}(_0x5038,0x30788));function _0x33c9(_0x35d4e2,_0x2a0645){_0x35d4e2=_0x35d4e2-0x137;const _0x5038f6=_0x5038();let _0x33c96e=_0x5038f6[_0x35d4e2];return _0x33c96e;}var Fo=Object[_0x2730a7(0x181)],wo=(_0x5ce0dc,_0x2009bb,_0x242af4)=>_0x2009bb in _0x5ce0dc?Fo(_0x5ce0dc,_0x2009bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x242af4}):_0x5ce0dc[_0x2009bb]=_0x242af4,V=(_0x48e50f,_0x593f0a,_0x1a9622)=>wo(_0x48e50f,typeof _0x593f0a!='symbol'?_0x593f0a+'':_0x593f0a,_0x1a9622);Object[_0x2730a7(0x181)](exports,Symbol[_0x2730a7(0x3f5)],{'value':_0x2730a7(0x418)});const m=require('@univerjs-pro/engine-pivot'),f=require('@univerjs/core'),fe=require('@univerjs/engine-formula'),U=require('@univerjs/sheets'),ve=require('rxjs'),ue=require('@univerjs-pro/license'),xt=require('@univerjs/sheets-filter'),_o=require('@univerjs/rpc'),Ae=require('@univerjs/engine-render'),jt=Number[_0x2730a7(0x356)](0x694004a2),Ro=0x10,It=0x1,Ct=_0x2730a7(0x3e4),we=0x1,Do=_0x2730a7(0x185),Eo='rgb(255,255,255)',Xe='#b2b2b2',No=_0x2730a7(0x196),Ao='#f4f4f5',Uo=_0x2730a7(0x205),Vo=_0x2730a7(0x22d),xo=_0x2730a7(0x3a7),Oo=_0x2730a7(0x1dc),Bo=_0x2730a7(0x22d),ko=_0x2730a7(0x3a7),Lo=_0x2730a7(0x189),Go=0xe,jo=0x6;var Mt=(_0x369d97=>(_0x369d97[_0x2730a7(0x316)]=_0x2730a7(0x389),_0x369d97[_0x2730a7(0x286)]=_0x2730a7(0x159),_0x369d97))(Mt||{});const $t={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},$o=0x1e,Te={'b':{'s':0x1,'cl':{'rgb':Xe}},'l':{'s':0x1,'cl':{'rgb':Xe}},'r':{'s':0x1,'cl':{'rgb':Xe}},'t':{'s':0x1,'cl':{'rgb':Xe}}},z={'bg':{'rgb':Do},'ht':0x2,'vt':0x2,'tb':0x1},R={'bg':{'rgb':Eo},'ht':0x2,'vt':0x2,'tb':0x1},oe={'rowStyle':{'bg':{'rgb':Lo},'bd':Te,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':Bo},'bd':null,'cl':{'rgb':ko},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Te,'bg':{'rgb':Oo},'vt':0x2},'cornerStyle':{'bd':Te,'bg':{'rgb':Uo},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Te,'bg':{'rgb':No},'vt':0x2},'leafStyle':{'bd':Te,'bg':{'rgb':Ao},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':Vo},'cl':{'rgb':xo},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Te,'vt':0x2}};function Jo(_0x4c677a,_0x391d51,_0x50d2fc){const _0x459c43=_0x2730a7,_0x3c36b5=_0x4c677a[_0x459c43(0x37e)](f[_0x459c43(0x169)]),_0x1d13c9=_0x50d2fc[_0x459c43(0x284)]('_');switch(_0x391d51){case m[_0x459c43(0x346)][_0x459c43(0x42b)]:return _0x3c36b5['t'](_0x459c43(0x353),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x16f)]:return _0x3c36b5['t'](_0x459c43(0x148),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x2bd)]:return _0x3c36b5['t'](_0x459c43(0x259),..._0x1d13c9);case m[_0x459c43(0x346)]['HourMinute']:return _0x3c36b5['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x161)]:return _0x3c36b5['t'](_0x459c43(0x29b),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x32a)]:return _0x3c36b5['t'](_0x459c43(0x19b),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x3eb)]:return _0x3c36b5['t'](_0x459c43(0x3c3),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x34c)]:return _0x3c36b5['t'](_0x459c43(0x36d),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x333)]:return _0x3c36b5['t'](_0x459c43(0x2fb),..._0x1d13c9);case m[_0x459c43(0x346)][_0x459c43(0x1c9)]:return _0x3c36b5['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x1d13c9);}return'';}const Ue=(_0x5095ab,_0x1b44f5,_0xd52d58,_0x2b32ba)=>{const _0x181f7a=_0x2730a7;let _0x333dd2;const _0x4008b1=_0x5095ab[_0x181f7a(0x37e)](f[_0x181f7a(0x3d8)])[_0x181f7a(0x339)](f[_0x181f7a(0x36a)][_0x181f7a(0x167)]);if(!_0x4008b1)return null;const _0x16fcb0=_0x4008b1[_0x181f7a(0x2e4)]();let _0x29ff91;if(_0xd52d58&&(_0x29ff91=_0x16fcb0['setValue'](_0xd52d58)),_0x1b44f5!=null&&_0x1b44f5['v']||(_0x1b44f5==null?void 0x0:_0x1b44f5['v'])===0x0){_0x333dd2||(_0x333dd2={});const _0x14714c=Jt(_0x1b44f5['v']);typeof _0x14714c==_0x181f7a(0x1c7)?_0x333dd2['t']=f[_0x181f7a(0x2f0)][_0x181f7a(0x43d)]:typeof _0x14714c=='string'&&(_0x333dd2['t']=f[_0x181f7a(0x2f0)][_0x181f7a(0x3ec)]),_0x333dd2['v']=_0x14714c;}if((_0x1b44f5!=null&&_0x1b44f5['i']||(_0x1b44f5==null?void 0x0:_0x1b44f5['i'])===0x0)&&(_0x333dd2||(_0x333dd2={}),_0x333dd2['fi']=_0x1b44f5['i']),_0x1b44f5!=null&&_0x1b44f5['s']&&(_0x333dd2||(_0x333dd2={}),_0x333dd2[_0x181f7a(0x3b1)]=_0x1b44f5['s']),_0xd52d58&&(_0x333dd2||(_0x333dd2={}),_0x333dd2['s']=_0x29ff91),_0x2b32ba&&_0x333dd2!=null&&_0x333dd2['v']&&_0x333dd2[_0x181f7a(0x3b1)]!==m[_0x181f7a(0x3db)][_0x181f7a(0x277)]&&_0x333dd2[_0x181f7a(0x3b1)]!==m[_0x181f7a(0x3db)][_0x181f7a(0x308)]){const _0x9ce578=String(_0x333dd2['v']),{dateType:_0x4643a3}=_0x2b32ba;_0x333dd2['v']=Jo(_0x5095ab,_0x4643a3,_0x9ce578),_0x333dd2['t']=f[_0x181f7a(0x2f0)]['STRING'];}return _0x333dd2;},Qo=(_0x279a89,_0x3724c3,_0x16e5e1,_0x3a7f77)=>{const _0x247da4=_0x2730a7;var _0x664fac,_0x362a44,_0x5a1bf9,_0x36edef,_0x3ba2c7,_0x4fc537,_0x508991,_0x2132a6,_0x25bec5,_0x17829a,_0x44cee8,_0x51ada1,_0x34d737,_0x31ab67;const _0x1d89b7=_0x16e5e1['targetCellInfo'],{cornerView:_0x501e08,rowView:_0x220d51,colView:_0x25ebdf,dataView:_0x2578a7,pageView:_0xc8cd74,formatMap:_0x585ffa,groupInfo:_0x542551}=_0x3724c3,{row:_0xd46aa7,col:_0x3cc033}=_0x1d89b7,_0x20aff0=new f[(_0x247da4(0x1bf))](),_0x54fa8={},_0x50725b={},_0x3f1b42={},_0x1fd631={},_0x4f8db9={};let _0x32fe5d=_0xd46aa7,_0x3b50c5=_0x3cc033;Object[_0x247da4(0x3fb)](_0xc8cd74[_0x247da4(0x1b4)])['forEach'](_0x5a5a5e=>{const _0x1b80e6=_0x247da4;Object[_0x1b80e6(0x3fb)](_0xc8cd74[_0x1b80e6(0x1b4)][Number(_0x5a5a5e)])['forEach'](_0x52865b=>{const _0x4dd7f2=_0x1b80e6,_0x2707b5={..._0xc8cd74['data'][Number(_0x5a5a5e)][Number(_0x52865b)]};_0x20aff0['setValue'](Number(_0x5a5a5e)+_0x32fe5d,Number(_0x52865b)+_0x3b50c5,Ue(_0x279a89,_0x2707b5,oe[_0x4dd7f2(0x256)]));});});const _0xb9c95b=Object[_0x247da4(0x3fb)](_0xc8cd74['data'])['length'];_0x32fe5d+=_0xb9c95b+(_0xb9c95b?we:0x0);const _0x35fe4b=_0x501e08[_0x247da4(0x258)](),_0x5d289c=_0x501e08['getColCount']();for(let _0x1050ca=0x0;_0x1050ca<_0x35fe4b;_0x1050ca++)for(let _0x5b70ad=0x0;_0x5b70ad<_0x5d289c;_0x5b70ad++){const _0x75268a={...(_0x362a44=(_0x664fac=_0x501e08[_0x247da4(0x1b4)])==null?void 0x0:_0x664fac[_0x1050ca])==null?void 0x0:_0x362a44[_0x5b70ad]};_0x75268a&&((_0x5a1bf9=_0x220d51[_0x247da4(0x350)][_0x5b70ad])!=null&&_0x5a1bf9[_0x247da4(0x13b)])&&_0x5b70ad===_0x5d289c-0x1&&_0x1050ca===_0x35fe4b-0x1&&(_0x75268a['v']=''+_0x3a7f77[_0x247da4(0x3b9)]),_0x20aff0[_0x247da4(0x385)](_0x1050ca+_0x32fe5d,_0x5b70ad+_0x3b50c5,Ue(_0x279a89,_0x75268a,oe['cornerStyle']));}for(let _0x3ad5e0=0x0;_0x3ad5e0<_0x501e08['info']['length'];_0x3ad5e0++)_0x501e08[_0x247da4(0x1e7)][_0x3ad5e0]&&(_0x3f1b42[''+(_0x3ad5e0+_0x3b50c5)]=_0x501e08['info'][_0x3ad5e0]);_0x3b50c5+=_0x5d289c;const _0x506e32=_0x25ebdf[_0x247da4(0x350)],_0x46bfad=_0x25ebdf[_0x247da4(0x2a5)]()>=0x0?_0x25ebdf['getLastRow']()+0x1:0x0,_0x2cb784=_0x25ebdf[_0x247da4(0x311)]()>=0x0?_0x25ebdf[_0x247da4(0x311)]()+0x1:0x0;for(let _0xd6ebc1=0x0;_0xd6ebc1<_0x2cb784;_0xd6ebc1++){for(let _0x24d536=0x0;_0x24d536<_0x46bfad;_0x24d536++){const _0x4371da={...(_0x3ba2c7=(_0x36edef=_0x25ebdf[_0x247da4(0x1b4)])==null?void 0x0:_0x36edef[_0x24d536])==null?void 0x0:_0x3ba2c7[_0xd6ebc1]},_0x1973bf=(_0x4fc537=_0x506e32[_0x24d536])==null?void 0x0:_0x4fc537[_0x247da4(0x175)],_0x10acb8=_0x585ffa[_0x1973bf],_0x249f08=_0x542551[_0x1973bf];_0x4371da&&(_0x4371da['v']=Me(_0x4371da,_0x24d536===0x0&&((_0x508991=_0x25ebdf['getHeaderMapItem'](_0xd6ebc1+0x1))==null?void 0x0:_0x508991['isValue']),_0x10acb8,_0x3a7f77));let _0x74c428;_0x10acb8?_0x74c428={...oe[_0x247da4(0x244)],'n':{'pattern':_0x10acb8}}:_0x74c428={...oe['colStyle']},_0x20aff0[_0x247da4(0x385)](_0x24d536+_0x32fe5d,_0xd6ebc1+_0x3b50c5,Ue(_0x279a89,_0x4371da,_0x74c428,_0x249f08));}_0x25ebdf[_0x247da4(0x1e7)][_0xd6ebc1]&&(_0x50725b[''+(_0xd6ebc1+_0x3b50c5)]=_0x25ebdf['info'][_0xd6ebc1]),_0x25ebdf[_0x247da4(0x350)][_0xd6ebc1+0x1]&&(_0x4f8db9[''+(_0xd6ebc1+_0x32fe5d+0x1)]=_0x25ebdf['headerMap'][_0xd6ebc1+0x1]);}_0x32fe5d+=_0x35fe4b;const _0x4a463b=_0x220d51[_0x247da4(0x350)],_0x179baf=_0x220d51[_0x247da4(0x2a5)]()>=0x0?_0x220d51[_0x247da4(0x2a5)]()+0x1:0x0,_0x760136=_0x220d51['getLastCol']()>=0x0?_0x220d51[_0x247da4(0x311)]()+0x1:0x0;for(let _0x23ed3c=0x0;_0x23ed3c<_0x179baf;_0x23ed3c++){for(let _0x17c1a1=0x0;_0x17c1a1<_0x760136;_0x17c1a1++){const _0x671725={...(_0x25bec5=(_0x2132a6=_0x220d51['data'])==null?void 0x0:_0x2132a6[_0x23ed3c])==null?void 0x0:_0x25bec5[_0x17c1a1]},_0x3687d7=(_0x17829a=_0x4a463b[_0x17c1a1])==null?void 0x0:_0x17829a['tableFieldId'],_0x375b50=_0x585ffa[_0x3687d7],_0x41f26f=_0x542551[_0x3687d7];_0x671725&&(_0x671725['v']=Me(_0x671725,!0x1,_0x375b50,_0x3a7f77));let _0x19c1e0;_0x220d51[_0x247da4(0x1e7)][_0x23ed3c]['level']===_0x220d51['getColCount']()?_0x19c1e0=oe[_0x247da4(0x332)]:_0x220d51['info'][_0x23ed3c][_0x247da4(0x407)]?_0x19c1e0=_0x220d51[_0x247da4(0x1e7)][_0x23ed3c][_0x247da4(0x158)]===0x0?oe[_0x247da4(0x2a9)]:oe[_0x247da4(0x343)]:_0x19c1e0=oe[_0x247da4(0x32e)],_0x375b50&&(_0x19c1e0={..._0x19c1e0,'n':{'pattern':_0x375b50}}),_0x20aff0['setValue'](_0x23ed3c+_0x32fe5d,_0x17c1a1+_0x3cc033,Ue(_0x279a89,_0x671725,_0x19c1e0,_0x41f26f));}_0x220d51['info'][_0x23ed3c]&&(_0x54fa8[''+(_0x23ed3c+_0x32fe5d)]=_0x220d51[_0x247da4(0x1e7)][_0x23ed3c]),_0x220d51[_0x247da4(0x350)][_0x23ed3c]&&(_0x1fd631[''+(_0x23ed3c+_0x3cc033)]=_0x220d51[_0x247da4(0x350)][_0x23ed3c]);}const _0x147e7a=_0x2578a7[_0x247da4(0x258)](),_0x5e8f88=_0x2578a7[_0x247da4(0x173)]();for(let _0xf655bf=0x0;_0xf655bf<_0x147e7a;_0xf655bf++)for(let _0x315ab8=0x0;_0x315ab8<_0x5e8f88;_0x315ab8++){const _0x17e849={...(_0x51ada1=(_0x44cee8=_0x2578a7[_0x247da4(0x1b4)])==null?void 0x0:_0x44cee8[_0xf655bf])==null?void 0x0:_0x51ada1[_0x315ab8]};let _0x491c07;_0x220d51[_0x247da4(0x1e7)][_0xf655bf][_0x247da4(0x407)]?_0x491c07=_0x220d51[_0x247da4(0x1e7)][_0xf655bf]['level']===0x0?oe[_0x247da4(0x2a9)]:oe[_0x247da4(0x343)]:_0x491c07=oe[_0x247da4(0x2d7)];const _0x4a15b5=_0x220d51[_0x247da4(0x1e7)][_0xf655bf][_0x247da4(0x403)],_0x3953f6=_0x25ebdf[_0x247da4(0x1e7)][_0x315ab8]['valueIndex'],_0x16aa01=Math['max'](_0x4a15b5,_0x3953f6),_0x223b6f=_0x16e5e1['fieldsConfig']['valueFields'][_0x247da4(0x34b)]();let _0x31a52a='';_0x16aa01<0x0?_0x31a52a=(_0x34d737=_0x223b6f[0x0])!=null?_0x34d737:'':_0x31a52a=(_0x31ab67=_0x223b6f[_0x16aa01])!=null?_0x31ab67:'';const _0x51dfea=_0x585ffa[_0x31a52a];_0x51dfea&&(_0x491c07={..._0x491c07,'n':{'pattern':_0x51dfea}}),_0x20aff0[_0x247da4(0x385)](_0xf655bf+_0x32fe5d,_0x315ab8+_0x3b50c5,Ue(_0x279a89,_0x17e849,_0x491c07));}return{'valueMatrix':_0x20aff0,'rowInfo':_0x54fa8,'colInfo':_0x50725b,'cornerInfo':_0x3f1b42,'rowHeaderMap':_0x1fd631,'colHeaderMap':_0x4f8db9};};function Me(_0x492f0a,_0xd5c83b,_0x760024,_0x2bf301){const _0x537525=_0x2730a7;let _0x842f1d=_0x492f0a['v'];_0xd5c83b&&(_0x842f1d=''+_0x2bf301[_0x537525(0x3b9)]);const _0x3f280c=_0x492f0a['t']&&(_0x492f0a['t']&m[_0x537525(0x3dc)][_0x537525(0x2c7)])>0x0;_0x3f280c&&(_0x842f1d=''+_0x2bf301[_0x537525(0x1c3)]);const _0x1dc321=_0x492f0a['t']&&(_0x492f0a['t']&m[_0x537525(0x3dc)][_0x537525(0x2e7)])>0x0;if(_0x1dc321&&(_0x842f1d=''+_0x2bf301[_0x537525(0x327)]),_0x492f0a['s']===m[_0x537525(0x3db)][_0x537525(0x308)]){let _0x49755d=_0x842f1d,_0x4233a2='';m[_0x537525(0x3e2)](_0x842f1d)&&(_0x49755d=_0x842f1d['prefix'],_0x4233a2=_0x842f1d[_0x537525(0x188)]);const _0x140f59=_0x760024&&!_0x3f280c&&!_0x1dc321?f[_0x537525(0x27b)][_0x537525(0x28c)](_0x760024,Number(_0x49755d)):_0x49755d;_0x4233a2?_0x842f1d=_0x140f59+'\x20'+_0x4233a2:_0x842f1d=_0x140f59+'\x20'+_0x2bf301[_0x537525(0x3d4)];}else _0x492f0a['s']===m['PivotCellStyleTypeEnum'][_0x537525(0x277)]&&(_0x842f1d=_0x842f1d+'\x20'+_0x2bf301[_0x537525(0x1e1)]);return _0x842f1d;}function Jt(_0x2260e2){const _0xab5a2=_0x2730a7;if(m['isErrorValue'](_0x2260e2)){const {errorType:_0x5dc51e}=_0x2260e2;switch(_0x5dc51e){case m[_0xab5a2(0x2d8)][_0xab5a2(0x252)]:return fe['ErrorType']['DIV_BY_ZERO'];case m[_0xab5a2(0x2d8)]['NotNumber']:return fe[_0xab5a2(0x29e)]['NUM'];case m['PivotErrorTypeEnum']['NotFunction']:return fe[_0xab5a2(0x29e)]['NAME'];case m[_0xab5a2(0x2d8)]['NotName']:return fe[_0xab5a2(0x29e)][_0xab5a2(0x416)];case m[_0xab5a2(0x2d8)][_0xab5a2(0x1ff)]:return fe[_0xab5a2(0x29e)][_0xab5a2(0x331)];}}return _0x2260e2;}function ne(_0x7d4a72,_0x5c98cc,_0x369c3d=!0x1,_0x4935b3=!0x1){const _0xca8565=_0x2730a7,{data:_0x2e039f}=_0x5c98cc,_0xa4c256=_0x5c98cc[_0xca8565(0x258)](),_0x580e4d=_0x5c98cc[_0xca8565(0x173)]();if(_0xa4c256<=0x0||_0x580e4d<=0x0)return[];const _0x1411f5=_0x5c98cc[_0xca8565(0x311)](),_0x464478=_0x5c98cc[_0xca8565(0x2a5)](),_0x105770=_0x4935b3?_0x464478>=0x0?_0x464478+0x1:0x0:_0xa4c256,_0x1646f0=_0x4935b3?_0x1411f5>=0x0?_0x1411f5+0x1:0x0:_0x580e4d,{row:_0x54ea1f,col:_0x19b4fc}=_0x7d4a72,_0x2b0a9f=_0x54ea1f,_0x278c10=_0x19b4fc;if(_0x369c3d){const _0x19bc17=[];for(const [_0x23b557,_0x373d23]of Object['entries'](_0x2e039f))for(const [_0x111079,_0x527c2c]of Object[_0xca8565(0x3be)](_0x373d23))_0x19bc17[_0xca8565(0x27c)](f[_0xca8565(0x325)](_0x2b0a9f+Number(_0x23b557),_0x278c10+Number(_0x111079)));return _0x19bc17;}else{const _0x36c911=_0x4935b3?_0x105770>0x0?0x1:0x0:0x1,_0x477187=_0x4935b3?_0x1646f0>0x0?0x1:0x0:0x1,_0x429f17=_0x54ea1f+_0x105770-_0x36c911,_0x4f50cc=_0x19b4fc+_0x1646f0-_0x477187;return[{'startRow':_0x2b0a9f,'startColumn':_0x278c10,'endRow':_0x429f17,'endColumn':_0x4f50cc}];}}const W=_0x2730a7(0x20e),bt='SHEET_PIVOT_EXCLUSIVE_ID';var B=(_0x3295b7=>(_0x3295b7[_0x2730a7(0x41b)]=_0x2730a7(0x236),_0x3295b7[_0x2730a7(0x22e)]=_0x2730a7(0x2a6),_0x3295b7[_0x2730a7(0x16b)]=_0x2730a7(0x3c5),_0x3295b7[_0x2730a7(0x2ce)]='AddPivotTableWithConfig',_0x3295b7[_0x2730a7(0x3a3)]=_0x2730a7(0x1b2),_0x3295b7[_0x2730a7(0x3d0)]=_0x2730a7(0x203),_0x3295b7[_0x2730a7(0x2a4)]='removePivotField',_0x3295b7['SetPivotCollapse']=_0x2730a7(0x264),_0x3295b7[_0x2730a7(0x156)]=_0x2730a7(0x36f),_0x3295b7[_0x2730a7(0x431)]=_0x2730a7(0x28a),_0x3295b7[_0x2730a7(0x3a2)]=_0x2730a7(0x2ef),_0x3295b7[_0x2730a7(0x404)]='updatePivotSource',_0x3295b7['UpdateValuePosition']='updateValuePosition',_0x3295b7['DrillDown']=_0x2730a7(0x33c),_0x3295b7[_0x2730a7(0x1b5)]=_0x2730a7(0x1b1),_0x3295b7[_0x2730a7(0x32b)]=_0x2730a7(0x2d6),_0x3295b7[_0x2730a7(0x3c7)]=_0x2730a7(0x15c),_0x3295b7))(B||{});const Wo={'sheets-pivot.blankValue':_0x2730a7(0x42f),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x2730a7(0x250),'sheets-pivot.valueText':_0x2730a7(0x2c9),'sheets-pivot.averageName':_0x2730a7(0x370),'sheets-pivot.countName':_0x2730a7(0x2c8),'sheets-pivot.countNumsName':_0x2730a7(0x2c8),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x2730a7(0x232),'sheets-pivot.productName':_0x2730a7(0x2ab),'sheets-pivot.stdDevName':_0x2730a7(0x211),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x2730a7(0x155),'sheets-pivot.varName':_0x2730a7(0x3fc),'sheets-pivot.varpName':_0x2730a7(0x266),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':'value','sheets-pivot.blank':'blank','sheets-pivot.other':_0x2730a7(0x2e7),'sheets-pivot.emptyPivot.filter':_0x2730a7(0x41b),'sheets-pivot.emptyPivot.row':_0x2730a7(0x1a6),'sheets-pivot.emptyPivot.column':_0x2730a7(0x1be),'sheets-pivot.emptyPivot.values':_0x2730a7(0x1c1)},Ot={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},re=f[_0x2730a7(0x1de)](_0x2730a7(0x3e8)),Qt=f[_0x2730a7(0x17e)]('pivotMutationGenerate');var Pe=(_0x2b5ca2=>(_0x2b5ca2[_0x2730a7(0x437)]=_0x2730a7(0x437),_0x2b5ca2[_0x2730a7(0x21a)]=_0x2730a7(0x21a),_0x2b5ca2[_0x2730a7(0x27f)]=_0x2730a7(0x27f),_0x2b5ca2))(Pe||{}),L=(_0x3a6e8=>(_0x3a6e8[_0x2730a7(0x2a8)]=_0x2730a7(0x437),_0x3a6e8[_0x2730a7(0x289)]=_0x2730a7(0x30e),_0x3a6e8[_0x2730a7(0x2bf)]=_0x2730a7(0x21a),_0x3a6e8))(L||{});const Ft={'type':f['CommandType'][_0x2730a7(0x430)],'id':_0x2730a7(0x340),'handler':()=>!0x0},wt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x235),'handler':()=>!0x0},ot={'type':f['CommandType'][_0x2730a7(0x430)],'id':_0x2730a7(0x3fe),'handler':()=>!0x0},_t={'type':f[_0x2730a7(0x3ee)]['MUTATION'],'id':_0x2730a7(0x3ce),'handler':()=>!0x0},Rt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x323),'handler':()=>!0x0};var qo=Object[_0x2730a7(0x2ad)],Yo=(_0x4bfa12,_0x512ce6,_0x548017,_0x42a23e)=>{for(var _0x250270=_0x42a23e>0x1?void 0x0:_0x42a23e?qo(_0x512ce6,_0x548017):_0x512ce6,_0x382a03=_0x4bfa12['length']-0x1,_0x5ca853;_0x382a03>=0x0;_0x382a03--)(_0x5ca853=_0x4bfa12[_0x382a03])&&(_0x250270=_0x5ca853(_0x250270)||_0x250270);return _0x250270;},Ko=(_0x21ec6d,_0x1b1f36)=>(_0x5cc931,_0xddf0b1)=>_0x1b1f36(_0x5cc931,_0xddf0b1,_0x21ec6d);exports['SheetsPivotRPCService']=class extends f[_0x2730a7(0x1af)]{constructor(_0x1c73af){const _0x395ca8=_0x2730a7;super(),V(this,_0x395ca8(0x334),new Map()),this[_0x395ca8(0x1ef)]=_0x1c73af;}['handleAsyncResponse'](_0x2db7ef){const _0x4d011c=_0x2730a7,{version:_0x1f8f0d}=_0x2db7ef,_0x319639=this[_0x4d011c(0x334)]['get'](_0x1f8f0d);_0x319639&&(_0x319639(_0x2db7ef),this[_0x4d011c(0x334)][_0x4d011c(0x21a)](_0x1f8f0d));}[_0x2730a7(0x1f4)](_0x42f9d2){return new Promise((_0x46b7de,_0x585aa5)=>{const _0x3f5fd9=_0x33c9,_0x506f9c=this['_generateUniqueVersion']();this[_0x3f5fd9(0x334)]['set'](_0x506f9c,_0x46b7de),this[_0x3f5fd9(0x1ef)][_0x3f5fd9(0x3e0)](Ft['id'],{'version':_0x506f9c,..._0x42f9d2},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0xf5841c=_0x2730a7;return Math[_0xf5841c(0x15a)]()['toString'](0x24)[_0xf5841c(0x36e)](0x2,0x10);}},exports[_0x2730a7(0x42d)]=Yo([Ko(0x0,f[_0x2730a7(0x23f)](f['ICommandService']))],exports['SheetsPivotRPCService']);const Wt={0x0:'5',0x1:'T',0x2:'y',0x3:'f',0x4:'8',0x5:'Z',0x6:'R',0x7:'e',0x8:'J',0x9:'9','i':'0','h':'1','j':'2','X':'3','n':'4','L':'6','a':'7','g':'a','f':'b','Y':'c','G':'d','T':'g','q':'h','d':'i','e':'j','C':'k','I':'l','N':'m','s':'n','B':'o','R':'p','y':'q','Q':'r','A':'s','c':'t','k':'u','w':'v','o':'w','P':'x','t':'z','x':'A','u':'B','l':'C','b':'D','W':'E','p':'F','z':'G','F':'H','Z':'I','v':'K','m':'L','S':'M','H':'N','K':'O','D':'P','U':'Q','V':'S','E':'U','M':'V','J':'W','O':'X','r':'Y'},qt=_0x2730a7(0x3ba),Ho=_0x35a3fb=>{const _0x336c71=_0x2730a7;var _0x31832d;return((_0x31832d=_0x35a3fb[_0x336c71(0x1ed)])==null?void 0x0:_0x31832d[_0x336c71(0x1c0)][_0x336c71(0x241)](/\r\n$/,''))||'';};class zo extends m['DataFieldManager']{constructor(_0x28e7c2,_0x31599e){const _0x3f7913=_0x2730a7;super(),V(this,_0x3f7913(0x441),{}),V(this,_0x3f7913(0x3d2)),V(this,_0x3f7913(0x33e)),(this['_univerInstanceService']=_0x31599e,this['_host']=_0x28e7c2);}['initDataRanges'](){const _0x2da293=_0x2730a7;for(const _0x4b200f in this[_0x2da293(0x1ce)]){const _0x4ca05a=this[_0x2da293(0x1ce)][_0x4b200f],_0x227878=_0x4ca05a[_0x2da293(0x3e9)]();this[_0x2da293(0x441)][_0x227878]=_0x4ca05a['getId']();}}[_0x2730a7(0x2e3)](){const _0xd22d2b=_0x2730a7,_0x3bfa84=this[_0xd22d2b(0x33e)];return sn[_0xd22d2b(0x37d)](_0x3bfa84);}[_0x2730a7(0x386)](_0xe9abaa){const _0x59278e=_0x2730a7,_0x5a88aa=this[_0x59278e(0x1ce)][_0xe9abaa][_0x59278e(0x20c)];delete this[_0x59278e(0x1ce)][_0xe9abaa],delete this[_0x59278e(0x441)][_0x5a88aa];}[_0x2730a7(0x354)](_0xe50cd3){const _0x3aa4a3=_0x2730a7;this[_0x3aa4a3(0x1ce)][_0xe50cd3[_0x3aa4a3(0x3a4)]()]=_0xe50cd3;}[_0x2730a7(0x426)](_0x54a9a9){const _0x54c49d=_0x2730a7;var _0x3bb5c9,_0x40807b;const _0x568fe0=this[_0x54c49d(0x33e)]['getTargetByPivotId'](_0x54a9a9);if(_0x568fe0){const {unitId:_0x40773f,subUnitId:_0x267ace}=_0x568fe0,_0x24aa8f=(_0x3bb5c9=this['_host'][_0x54c49d(0x2f7)](_0x40773f,_0x267ace,_0x54a9a9))==null?void 0x0:_0x3bb5c9[_0x54c49d(0x41d)];this[_0x54c49d(0x33e)][_0x54c49d(0x359)]({'token':_0x54a9a9,'type':Pe['delete'],'dataRangeInfo':_0x24aa8f});}(_0x40807b=this[_0x54c49d(0x2ac)](_0x54a9a9))==null||_0x40807b['dispose'](),delete this[_0x54c49d(0x15e)][_0x54a9a9];}[_0x2730a7(0x3e9)](_0x3faebd,_0x899531){const _0x4dee7b=_0x2730a7,{sheetName:_0x23b4ff,unitId:_0x4563b4,range:_0x15085c}=_0x3faebd,{startRow:_0x29bfa6,endRow:_0x1903c0}=_0x15085c;return fe[_0x4dee7b(0x2dc)](_0x4563b4,_0x23b4ff,{'startRow':_0x29bfa6,'endRow':_0x1903c0,'startColumn':_0x899531,'endColumn':_0x899531});}[_0x2730a7(0x26d)](_0x2b7d2c){const _0x9d5af5=_0x2730a7;return this[_0x9d5af5(0x1ce)][this[_0x9d5af5(0x441)][_0x2b7d2c]];}[_0x2730a7(0x2c1)](_0x2df3a1,_0x47463f){const _0xca6ece=_0x2730a7;this[_0xca6ece(0x441)][_0x2df3a1]=_0x47463f;}[_0x2730a7(0x13f)](_0x168190,_0x3784b2){const _0x5af433=_0x2730a7;this[_0x5af433(0x441)][_0x3784b2]=this[_0x5af433(0x441)][_0x168190],delete this['rangeKeyMap'][_0x168190];}[_0x2730a7(0x43e)](_0x3d3b2b,_0x545181,_0x227f23,_0x1b8632){const _0x39aacb=_0x2730a7,_0x4f5190=new m[(_0x39aacb(0x3dd))](this);_0x4f5190[_0x39aacb(0x313)](_0x545181);const _0x3aaee6=[];let _0x4d1e6b=0x0;for(const _0x53be9d of _0x4f5190[_0x39aacb(0x305)]){const _0x346bf6=this[_0x39aacb(0x3e9)](_0x227f23,_0x4d1e6b),_0x3dd251=this[_0x39aacb(0x1ce)][_0x53be9d];_0x3dd251&&(_0x3dd251[_0x39aacb(0x20c)]=_0x346bf6,this[_0x39aacb(0x2c1)](_0x346bf6,_0x53be9d),_0x3aaee6['push']({'index':_0x4d1e6b,'dataField':_0x3dd251})),_0x4d1e6b++;}return this[_0x39aacb(0x402)](_0x3d3b2b,_0x4f5190,_0x227f23,_0x1b8632),{'collection':_0x4f5190,'updateDataFieldList':_0x3aaee6};}[_0x2730a7(0x38e)](_0xe4a10,_0x37adf8){const _0x3cc464=_0x2730a7;return _0xe4a10[_0x3cc464(0x392)]===f[_0x3cc464(0x219)]['COLUMN']?{'startRow':0x0,'startColumn':_0xe4a10['startColumn'],'endRow':_0x37adf8[_0x3cc464(0x258)]()-0x1,'endColumn':_0xe4a10[_0x3cc464(0x43c)]}:{'startRow':_0xe4a10['startRow'],'startColumn':_0xe4a10['startColumn'],'endRow':_0xe4a10['endRow'],'endColumn':_0xe4a10[_0x3cc464(0x43c)]};}['createCollectionWithDataRange'](_0x355938){const _0x30258a=_0x2730a7,{sheetName:_0x5ae4aa,range:_0x4c8824}=_0x355938,_0x5b14ba=this[_0x30258a(0x3d2)][_0x30258a(0x339)](f['UniverInstanceType']['UNIVER_SHEET']),_0x2cc7d1=_0x5b14ba[_0x30258a(0x1bd)](_0x5ae4aa),_0x4b911c=_0x2cc7d1['getCellMatrix'](),{startColumn:_0x14c0c8,startRow:_0x978a4c,endColumn:_0x208107}=this[_0x30258a(0x38e)](_0x4c8824,_0x2cc7d1),_0x178b84=_0x5b14ba['getStyles'](),_0x573d81=new m[(_0x30258a(0x3dd))](this);_0x573d81[_0x30258a(0x237)](_0x355938);const _0x5212bd=[],_0x37f7ad={};for(let _0x109746=_0x14c0c8;_0x109746<=_0x208107;_0x109746++){const _0x1a8e37=_0x4b911c['getValue'](_0x978a4c,_0x109746),_0xff8c04=this['getRangeKey'](_0x355938,_0x109746),_0x3644a3=this[_0x30258a(0x26d)](_0xff8c04);if(_0x3644a3)_0x573d81[_0x30258a(0x413)](_0x3644a3[_0x30258a(0x3a4)](),_0x3644a3[_0x30258a(0x162)]());else{const _0x223681=this['createDataFieldId']();let _0x352797=this[_0x30258a(0x275)](_0x1a8e37,_0x178b84,_0x37f7ad);m[_0x30258a(0x302)](_0x352797)&&(_0x352797=f[_0x30258a(0x27b)][_0x30258a(0x28c)](_0x352797['f'],Number(_0x352797['v'])));const _0x5987a9=this[_0x30258a(0x225)](_0x352797,_0x109746),_0x465217=new m['DataField'](_0x223681,_0x5987a9,m[_0x30258a(0x283)](0x3));_0x465217['rangeKey']=_0xff8c04,this['dataFields'][_0x223681]=_0x465217,_0x573d81[_0x30258a(0x413)](_0x223681,_0x5987a9),_0x5212bd[_0x30258a(0x27c)]({'index':_0x109746,'dataField':_0x465217});}}return{'updateDataFieldList':_0x5212bd,'collection':_0x573d81};}[_0x2730a7(0x25f)](_0x5e2538){const _0x1fc14b=_0x2730a7;return this['_host'][_0x1fc14b(0x226)]()[_0x1fc14b(0x14b)]+'\x20'+f[_0x1fc14b(0x25b)](_0x5e2538);}[_0x2730a7(0x225)](_0x2ec4b7,_0x4a3f68){return _0x2ec4b7==null||_0x2ec4b7===''?this['_getAutoName'](_0x4a3f68):String(_0x2ec4b7);}[_0x2730a7(0x2ac)](_0x11f6c6){const _0x3266da=_0x2730a7;return this[_0x3266da(0x15e)][_0x11f6c6];}[_0x2730a7(0x402)](_0x4a55b3,_0x30ccd1,_0x435b91,_0x400085){const _0x3f7258=_0x2730a7;this[_0x3f7258(0x15e)][_0x4a55b3]=_0x30ccd1,_0x30ccd1['setRange'](_0x435b91),this[_0x3f7258(0x33e)][_0x3f7258(0x359)]({'token':_0x4a55b3,'type':Pe['add'],'dataRangeInfo':_0x435b91,'targetCellInfo':_0x400085});}[_0x2730a7(0x26f)](_0x31dd18,_0x55c2db){const _0x3106b9=_0x2730a7,_0x150a7b=this[_0x3106b9(0x2ac)](_0x31dd18),_0x141aa3=_0x150a7b[_0x3106b9(0x28f)]();let _0x38ed97=0x0;for(const _0x1c81b6 of _0x141aa3){const _0x484f91=_0x150a7b[_0x3106b9(0x157)](_0x1c81b6),_0x339142=this['getRangeKey'](_0x55c2db,_0x38ed97);this[_0x3106b9(0x13f)](_0x484f91[_0x3106b9(0x20c)],_0x339142),_0x38ed97++;}}[_0x2730a7(0x2df)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x2730a7(0x43f)](_0x168688,_0x15e5c9){const _0x129c07=_0x2730a7;if(this['getCollection'](_0x168688)){const _0x19f655=this[_0x129c07(0x303)](_0x15e5c9),_0x177b31=[];for(const _0x298abe of _0x19f655)this[_0x129c07(0x441)][_0x298abe]!==void 0x0&&_0x177b31[_0x129c07(0x27c)](this[_0x129c07(0x441)][_0x298abe]);const _0x102e9a=this[_0x129c07(0x23d)](_0x168688),_0x17838b=[],_0x5154e6=new Set(_0x177b31);for(const _0x1da773 of _0x102e9a)_0x5154e6[_0x129c07(0x152)](_0x1da773)||_0x17838b[_0x129c07(0x27c)](_0x1da773);return _0x17838b;}}[_0x2730a7(0x227)](_0x2d562d,_0x3237c8,_0x5c36b7,_0x9c7d1f,_0x7e6397){const _0x61194c=_0x2730a7;return _0x3237c8&&_0x3237c8[_0x61194c(0x1ea)](_0x9c7d1f,_0x7e6397)?_0x3237c8[_0x61194c(0x1ea)](_0x9c7d1f,_0x7e6397):_0x5c36b7&&_0x5c36b7[_0x61194c(0x1ea)](_0x9c7d1f,_0x7e6397)?_0x5c36b7[_0x61194c(0x1ea)](_0x9c7d1f,_0x7e6397):_0x2d562d['getValue'](_0x9c7d1f,_0x7e6397);}[_0x2730a7(0x32d)](_0x4e79e8,_0x350281,_0x1c63d5,_0x224992){const _0x5b299e=_0x2730a7,_0x47ba4a=this[_0x5b299e(0x1ce)][_0x4e79e8];if(!_0x47ba4a)return;const {subUnitId:_0x390961,range:_0xc01fd8,unitId:_0x347876}=_0x350281,_0x4e1868=this['_univerInstanceService'][_0x5b299e(0x35b)](_0x347876);if(!_0x4e1868){console[_0x5b299e(0x2da)](_0x5b299e(0x3da));return;}const _0xd89c14=_0x4e1868[_0x5b299e(0x240)](_0x390961),_0x20029f=_0xd89c14[_0x5b299e(0x3d7)](),{arrayFormulaCellDataMatrix:_0x21c894,unitDataMatrix:_0x4964d6}=_0x224992||{},{startRow:_0x496a25,startColumn:_0x52bae0,endRow:_0x191bc2}=this['getRangeStartEndInfo'](_0xc01fd8,_0xd89c14);_0x47ba4a[_0x5b299e(0x31e)]();const _0x30e2ce=_0x4e1868[_0x5b299e(0x2e4)](),_0x2927a4={},_0x150e31=this['getMatrixValue'](_0x20029f,_0x21c894,_0x4964d6,_0x496a25,_0x52bae0+_0x1c63d5);let _0x36c1dd=this['adjustSheetCellData'](_0x150e31,_0x30e2ce,_0x2927a4);m[_0x5b299e(0x302)](_0x36c1dd)&&(_0x36c1dd=f[_0x5b299e(0x27b)]['format'](_0x36c1dd['f'],Number(_0x36c1dd['v'])));const _0x5954f0=this[_0x5b299e(0x225)](_0x36c1dd,_0x52bae0+_0x1c63d5);_0x47ba4a[_0x5b299e(0x2c4)](_0x5954f0);for(let _0x4cb7de=_0x496a25+0x1;_0x4cb7de<=_0x191bc2;_0x4cb7de++){const _0x3eb101=this[_0x5b299e(0x227)](_0x20029f,_0x21c894,_0x4964d6,_0x4cb7de,_0x52bae0+_0x1c63d5);_0x47ba4a[_0x5b299e(0x17c)](this[_0x5b299e(0x275)](_0x3eb101,_0x30e2ce,_0x2927a4),_0x4cb7de-0x1-_0x496a25);}}[_0x2730a7(0x271)](_0x164a70,_0x34dd88,_0x27f162){const _0x108163=_0x2730a7,{subUnitId:_0x46fc91,range:_0x4d3cd0,unitId:_0x1ac329}=_0x27f162,_0x245bf3=this[_0x108163(0x3d2)][_0x108163(0x35b)](_0x1ac329);if(!_0x245bf3){console[_0x108163(0x2da)]('workbook\x20is\x20not\x20found');return;}const _0x531336=_0x245bf3[_0x108163(0x240)](_0x46fc91),_0x4a36fc=_0x531336['getCellMatrix'](),{startRow:_0x28e7af,startColumn:_0x1c3d43,endRow:_0xec0009}=this[_0x108163(0x38e)](_0x4d3cd0,_0x531336),_0x8947e6=_0x245bf3['getStyles'](),_0x1b6099={};for(const {dataField:_0x2286ca,index:_0x51a74d}of _0x34dd88){_0x2286ca[_0x108163(0x31e)]();const _0x319866=this[_0x108163(0x227)](_0x4a36fc,void 0x0,void 0x0,_0x28e7af,_0x1c3d43+_0x51a74d);let _0x3ec825=this[_0x108163(0x275)](_0x319866,_0x8947e6,_0x1b6099);m[_0x108163(0x302)](_0x3ec825)&&(_0x3ec825=f[_0x108163(0x27b)][_0x108163(0x28c)](_0x3ec825['f'],Number(_0x3ec825['v'])));const _0x18e77f=this[_0x108163(0x225)](_0x3ec825,_0x1c3d43+_0x51a74d);_0x2286ca['setName'](_0x18e77f);}_0x164a70['updateAllDisplayName']();for(let _0x130407=_0x28e7af+0x1;_0x130407<=_0xec0009;_0x130407++)for(const {index:_0x1fb5e7,dataField:_0x2e0d2a}of _0x34dd88){const _0x308390=_0x4a36fc[_0x108163(0x1ea)](_0x130407,_0x1c3d43+_0x1fb5e7);_0x2e0d2a[_0x108163(0x17c)](this[_0x108163(0x275)](_0x308390,_0x8947e6,_0x1b6099),_0x130407-0x1-_0x28e7af);}_0x164a70[_0x108163(0x1e6)](_0xec0009-_0x28e7af);}[_0x2730a7(0x303)](_0xa98ba7){const _0x2b1c69=_0x2730a7,{range:_0x406de2}=_0xa98ba7,{startColumn:_0x11b2ea,endColumn:_0x1a79de}=_0x406de2,_0x370802=[];for(let _0x36c88a=_0x11b2ea;_0x36c88a<=_0x1a79de;_0x36c88a++)_0x370802['push'](this[_0x2b1c69(0x3e9)](_0xa98ba7,_0x36c88a));return _0x370802;}['adjustSheetCellData'](_0x952a26,_0x3d51b0,_0x5c2acb){const _0x3ebbee=_0x2730a7;if(_0x952a26){const {s:_0x547109,v:_0x4fece5,t:_0x4d058d,p:_0x33924c}=_0x952a26;if(_0x33924c)return Ho(_0x33924c);const _0x4ccfc8=_0x3d51b0[_0x3ebbee(0x37e)](_0x547109);if(_0x4ccfc8&&_0x4d058d===f['CellValueType'][_0x3ebbee(0x43d)]&&_0x4ccfc8['n']){const {pattern:_0x3f0d51}=_0x4ccfc8['n'];_0x5c2acb[_0x3f0d51]||(_0x5c2acb[_0x3f0d51]=f[_0x3ebbee(0x27b)][_0x3ebbee(0x395)](_0x3f0d51));const _0x34da97=_0x5c2acb[_0x3f0d51],_0x308946=_0x34da97[_0x3ebbee(0x14e)];if(_0x34da97['isText'])return String(_0x4fece5);if(_0x308946)return{'v':_0x4fece5,'f':_0x3f0d51};}if(_0x4d058d===f[_0x3ebbee(0x2f0)][_0x3ebbee(0x43d)])return Number(_0x4fece5);if(_0x4d058d===f['CellValueType'][_0x3ebbee(0x3ec)]||_0x4d058d===f[_0x3ebbee(0x2f0)][_0x3ebbee(0x272)])return String(_0x4fece5);if(_0x4d058d===void 0x0){const _0x12f001=Number(_0x4fece5);if(!Number[_0x3ebbee(0x2f1)](_0x12f001)&&String(_0x12f001)===_0x4fece5)return _0x12f001;}return _0x4fece5!=null?_0x4fece5:null;}else return null;}[_0x2730a7(0x294)](_0x1f0fa4){const _0x427c46=_0x2730a7,{sheetName:_0x3f5bd4,range:_0x195391,unitId:_0x36e4db}=_0x1f0fa4,_0xbe07bb=this['_univerInstanceService'][_0x427c46(0x35b)](_0x36e4db);if(!_0xbe07bb)return console['error'](_0x427c46(0x3da)),{'header':[],'data':[]};const _0x1a2ca5=_0xbe07bb['getSheetBySheetName'](_0x3f5bd4),_0x57fd7c=_0x1a2ca5[_0x427c46(0x3d7)](),{startRow:_0x5f34cb,startColumn:_0xfdc93c,endRow:_0x370449,endColumn:_0x4c575e}=this[_0x427c46(0x38e)](_0x195391,_0x1a2ca5),_0x2ac467=_0xbe07bb[_0x427c46(0x2e4)](),_0x5a6b1c=[],_0x5e134b=[],_0x1f51ad={};for(let _0x56110b=_0x5f34cb;_0x56110b<=_0x370449;_0x56110b++){const _0x4b1a54=[];for(let _0x410583=_0xfdc93c;_0x410583<=_0x4c575e;_0x410583++){const _0x917b99=_0x57fd7c['getValue'](_0x56110b,_0x410583);_0x56110b===_0x5f34cb?_0x5a6b1c['push'](_0x917b99==null?null:String(_0x917b99['v'])):_0x4b1a54[_0x427c46(0x27c)](this[_0x427c46(0x275)](_0x917b99,_0x2ac467,_0x1f51ad));}_0x5e134b[_0x427c46(0x27c)](_0x4b1a54);}return{'header':_0x5a6b1c,'data':_0x5e134b};}[_0x2730a7(0x2af)](){return super['toJSON']();}[_0x2730a7(0x313)](_0x26169f){super['fromJSON'](_0x26169f),this['initDataRanges']();}[_0x2730a7(0x2f9)](){super['dispose'](),this['rangeKeyMap']={},this['_host']=null;}}const Zo=_0x2bb47d=>{const _0x296262=_0x2730a7,{targetCellInfo:_0xe9ddb5}=_0x2bb47d,{matrixCache:_0x1e5019,rangesCache:_0x5c6cf9}=Yt({'filter':_0x296262(0x41b),'row':_0x296262(0x1a6),'column':'Column','values':_0x296262(0x1c1)},_0xe9ddb5),_0x525413=new f['ObjectMatrix']();return _0x1e5019['forValue']((_0x25553a,_0x4e4d8d,_0x47549b)=>{_0x525413['setValue'](_0x25553a,_0x4e4d8d,_0x47549b);}),{'matrix':_0x525413,'rangesCache':_0x5c6cf9};},Ve=_0x3c64e1=>{const _0x33c927=_0x2730a7;let _0x5e6bf0;if(_0x3c64e1!=null&&_0x3c64e1['v']||(_0x3c64e1==null?void 0x0:_0x3c64e1['v'])===0x0){_0x5e6bf0||(_0x5e6bf0={});const _0x9318c5=Jt(_0x3c64e1['v']);typeof _0x9318c5==_0x33c927(0x1c7)?_0x5e6bf0['t']=f[_0x33c927(0x2f0)][_0x33c927(0x43d)]:typeof _0x9318c5==_0x33c927(0x321)&&(_0x5e6bf0['t']=f[_0x33c927(0x2f0)][_0x33c927(0x3ec)]),_0x5e6bf0['v']=_0x9318c5;}return _0x5e6bf0;},Xo=(_0x936716,_0x64dfaf,_0x1e3732)=>{const _0x12858f=_0x2730a7;var _0x25623d,_0x1782a9,_0x169d00,_0x193644,_0x75c158,_0x358c55,_0x345e3b,_0x4afbd6,_0x13c193,_0x1494cf,_0x5a3128,_0x1537ac;const {cornerView:_0x2103a0,rowView:_0x47721f,colView:_0x4e605e,dataView:_0x149ca2,pageView:_0xe3ddf7,formatMap:_0x5234c1}=_0x936716,{row:_0x4562f0,col:_0x21d9de}=_0x64dfaf,_0xb6a272=new f[(_0x12858f(0x1bf))]();let _0xe241ae=_0x4562f0,_0x3c52ab=_0x21d9de;Object['keys'](_0xe3ddf7[_0x12858f(0x1b4)])[_0x12858f(0x295)](_0x1ce1fa=>{Object['keys'](_0xe3ddf7['data'][Number(_0x1ce1fa)])['forEach'](_0x3a33e3=>{const _0x128020=_0x33c9,_0x332b6c={..._0xe3ddf7['data'][Number(_0x1ce1fa)][Number(_0x3a33e3)]};_0xb6a272[_0x128020(0x385)](Number(_0x1ce1fa)+_0xe241ae,Number(_0x3a33e3)+_0x3c52ab,Ve(_0x332b6c));});});const _0x17866c=Object['keys'](_0xe3ddf7[_0x12858f(0x1b4)])['length'];_0xe241ae+=_0x17866c+(_0x17866c?we:0x0);const _0x30ddca=_0x2103a0['getRowCount'](),_0x36fadb=_0x2103a0[_0x12858f(0x173)]();for(let _0x2325a7=0x0;_0x2325a7<_0x30ddca;_0x2325a7++)for(let _0x5bea4d=0x0;_0x5bea4d<_0x36fadb;_0x5bea4d++){const _0x398075={...(_0x1782a9=(_0x25623d=_0x2103a0['data'])==null?void 0x0:_0x25623d[_0x2325a7])==null?void 0x0:_0x1782a9[_0x5bea4d]};_0x398075&&((_0x169d00=_0x47721f[_0x12858f(0x350)][_0x5bea4d])!=null&&_0x169d00[_0x12858f(0x13b)])&&_0x5bea4d===_0x36fadb-0x1&&_0x2325a7===_0x30ddca-0x1&&(_0x398075['v']=''+_0x1e3732['sheets-pivot.value']),_0xb6a272['setValue'](_0x2325a7+_0xe241ae,_0x5bea4d+_0x3c52ab,Ve(_0x398075));}_0x3c52ab+=_0x36fadb;const _0x5caa16=_0x4e605e[_0x12858f(0x350)],_0x23d882=_0x4e605e['getLastRow']()>=0x0?_0x4e605e[_0x12858f(0x2a5)]()+0x1:0x0,_0x710d90=_0x4e605e[_0x12858f(0x311)]()>=0x0?_0x4e605e[_0x12858f(0x311)]()+0x1:0x0;for(let _0x3c1707=0x0;_0x3c1707<_0x710d90;_0x3c1707++)for(let _0x364681=0x0;_0x364681<_0x23d882;_0x364681++){const _0x57c9e0={...(_0x75c158=(_0x193644=_0x4e605e[_0x12858f(0x1b4)])==null?void 0x0:_0x193644[_0x3c1707])==null?void 0x0:_0x75c158[_0x364681]},_0x5b9a2e=(_0x358c55=_0x5caa16[_0x3c1707])==null?void 0x0:_0x358c55['tableFieldId'],_0x2678e5=_0x5234c1[_0x5b9a2e];_0x57c9e0&&(_0x57c9e0['v']=Me(_0x57c9e0,_0x3c1707===0x0&&((_0x345e3b=_0x4e605e[_0x12858f(0x273)](_0x364681+0x1))==null?void 0x0:_0x345e3b[_0x12858f(0x13b)]),_0x2678e5,_0x1e3732)),_0xb6a272[_0x12858f(0x385)](_0x3c1707+_0xe241ae,_0x364681+_0x3c52ab,Ve(_0x57c9e0));}_0xe241ae+=_0x30ddca;const _0x313e95=_0x47721f[_0x12858f(0x350)],_0xe4cd30=_0x47721f[_0x12858f(0x2a5)]()>=0x0?_0x47721f[_0x12858f(0x2a5)]()+0x1:0x0,_0xc0fdbd=_0x47721f[_0x12858f(0x311)]()>=0x0?_0x47721f[_0x12858f(0x311)]()+0x1:0x0;for(let _0x107500=0x0;_0x107500<_0xe4cd30;_0x107500++)for(let _0x1b7344=0x0;_0x1b7344<_0xc0fdbd;_0x1b7344++){const _0x1586a3={...(_0x13c193=(_0x4afbd6=_0x47721f[_0x12858f(0x1b4)])==null?void 0x0:_0x4afbd6[_0x107500])==null?void 0x0:_0x13c193[_0x1b7344]},_0xc9db41=(_0x1494cf=_0x313e95[_0x1b7344])==null?void 0x0:_0x1494cf[_0x12858f(0x175)],_0x902bb8=_0x5234c1[_0xc9db41];_0x1586a3&&(_0x1586a3['v']=Me(_0x1586a3,!0x1,_0x902bb8,_0x1e3732)),_0xb6a272[_0x12858f(0x385)](_0x107500+_0xe241ae,_0x1b7344+_0x21d9de,Ve(_0x1586a3));}const _0x4d872d=_0x149ca2['getRowCount'](),_0x5ee0fe=_0x149ca2[_0x12858f(0x173)]();for(let _0x35a1d2=0x0;_0x35a1d2<_0x4d872d;_0x35a1d2++)for(let _0x156107=0x0;_0x156107<_0x5ee0fe;_0x156107++){const _0x2e6737={...(_0x1537ac=(_0x5a3128=_0x149ca2[_0x12858f(0x1b4)])==null?void 0x0:_0x5a3128[_0x35a1d2])==null?void 0x0:_0x1537ac[_0x156107]};_0xb6a272[_0x12858f(0x385)](_0x35a1d2+_0xe241ae,_0x156107+_0x3c52ab,Ve(_0x2e6737));}return _0xb6a272;},en=_0x27f2b6=>{const _0x23b127=_0x2730a7,{view:_0x1ca1a0,targetCellInfo:_0x1c47af,isEmpty:_0xe7b724,textInfo:_0x2080ea}=_0x27f2b6;if(_0xe7b724)return Zo(_0x27f2b6);const {pageView:_0x26da4e,cornerView:_0x500d6d,rowView:_0x369a59,colView:_0xdf4ff6,dataView:_0x136c43}=_0x1ca1a0,_0x1fe5e6=ne(_0x1c47af,_0x26da4e,!0x0),_0x39eed0=_0x26da4e[_0x23b127(0x257)]>=0x0?_0x26da4e[_0x23b127(0x257)]+0x1:0x0,_0x31f09b=_0x500d6d[_0x23b127(0x258)](),_0x4e75ce=_0x500d6d[_0x23b127(0x173)](),_0x22a7ad=_0x1fe5e6[_0x23b127(0x206)]>0x0?we:0x0,_0x282e60=ne({'row':_0x1c47af[_0x23b127(0x290)]+_0x39eed0+_0x22a7ad,'col':_0x1c47af['col']},_0x500d6d,!0x1,!0x1),_0x55f7aa=ne({'row':_0x1c47af[_0x23b127(0x290)]+_0x39eed0+_0x22a7ad+_0x31f09b,'col':_0x1c47af[_0x23b127(0x2c0)]},_0x369a59,!0x1,!0x0),_0x4d557a=ne({'row':_0x1c47af['row']+_0x39eed0+_0x22a7ad,'col':_0x1c47af[_0x23b127(0x2c0)]+_0x4e75ce},_0xdf4ff6,!0x1,!0x0),_0x3fb81a=ne({'row':_0x1c47af[_0x23b127(0x290)]+_0x39eed0+_0x22a7ad+_0x31f09b,'col':_0x1c47af['col']+_0x4e75ce},_0x136c43,!0x1,!0x1),_0x4ea751={'rowRanges':_0x55f7aa,'colRanges':_0x4d557a,'cornerRanges':_0x282e60,'dataRanges':_0x3fb81a,'pageRanges':_0x1fe5e6};return{'matrix':Xo(_0x1ca1a0,_0x1c47af,_0x2080ea),'rangesCache':_0x4ea751};};var tn=Object[_0x2730a7(0x2ad)],on=(_0x134cd5,_0x49bad5,_0x4e8160,_0xba3c5b)=>{const _0xf8a48c=_0x2730a7;for(var _0x7b7fae=_0xba3c5b>0x1?void 0x0:_0xba3c5b?tn(_0x49bad5,_0x4e8160):_0x49bad5,_0x7f984c=_0x134cd5[_0xf8a48c(0x206)]-0x1,_0xd957ab;_0x7f984c>=0x0;_0x7f984c--)(_0xd957ab=_0x134cd5[_0x7f984c])&&(_0x7b7fae=_0xd957ab(_0x7b7fae)||_0x7b7fae);return _0x7b7fae;},xe=(_0xbb8558,_0x379198)=>(_0x158d04,_0x4eb922)=>_0x379198(_0x158d04,_0x4eb922,_0xbb8558);exports[_0x2730a7(0x2dd)]=class extends f[_0x2730a7(0x1af)]{constructor(_0x578d08,_0x6ccaeb,_0x4fb11b,_0x3f81ff,_0x3f079f){const _0x15e03e=_0x2730a7;super(),V(this,'_model',new Map()),V(this,_0x15e03e(0x194),new Map()),V(this,_0x15e03e(0x2e2),new Map()),V(this,_0x15e03e(0x3bd)),V(this,_0x15e03e(0x399),new ve[(_0x15e03e(0x1fd))]()),V(this,_0x15e03e(0x170),this[_0x15e03e(0x399)][_0x15e03e(0x280)]()),V(this,_0x15e03e(0x1cd),new ve['Subject']()),V(this,_0x15e03e(0x3d1),this[_0x15e03e(0x1cd)][_0x15e03e(0x280)]()),V(this,_0x15e03e(0x1e2),new ve[(_0x15e03e(0x1fd))]()),V(this,'fieldsCollectionChange$',this[_0x15e03e(0x1e2)][_0x15e03e(0x280)]()),V(this,_0x15e03e(0x28e),new Map()),V(this,'needSameDeleteModel',[]),V(this,_0x15e03e(0x3cb),new Map()),(this[_0x15e03e(0x2e8)]=_0x578d08,this[_0x15e03e(0x3d2)]=_0x6ccaeb,this[_0x15e03e(0x310)]=_0x4fb11b,this['_commandService']=_0x3f81ff,this['_resourceManagerService']=_0x3f079f,this['_initSnapshot']());}[_0x2730a7(0x226)](){const _0x371ae7=_0x2730a7;return this[_0x371ae7(0x3bd)]?this[_0x371ae7(0x3bd)]:Wo;}['setTextInfo'](_0x13747f){const _0x1dae51=_0x2730a7;this[_0x1dae51(0x3bd)]=_0x13747f;}['handleMoveRange'](_0x5961fb){const _0x135e4b=_0x2730a7;var _0x33f1f1;const {from:_0x37ca9d,to:_0x43c668,unitId:_0x4ad6c0,fromRange:_0x24819f,toRange:_0x5ebe74}=_0x5961fb;if(_0x37ca9d&&_0x43c668){const _0x595f1a=this['getDataFieldManager'](_0x4ad6c0),_0x2bc4be=this[_0x135e4b(0x432)]['get'](_0x4ad6c0),_0x2d5bd4=(_0x33f1f1=this['_univerInstanceService'][_0x135e4b(0x35b)](_0x4ad6c0))==null?void 0x0:_0x33f1f1[_0x135e4b(0x240)](_0x43c668[_0x135e4b(0x394)]);if(!_0x2bc4be||!_0x2d5bd4)return;const _0x493d70=_0x2d5bd4==null?void 0x0:_0x2d5bd4['getName']();for(const [_0x3fa23e,_0x994194]of _0x2bc4be[_0x135e4b(0x3be)]())for(const [_0x3c1bf8,_0x41679e]of _0x994194['entries']()){const {sourceRangeInfo:_0x351578}=_0x41679e;if(_0x351578['unitId']===_0x4ad6c0&&_0x351578[_0x135e4b(0x394)]===_0x37ca9d['subUnitId']&&f[_0x135e4b(0x267)][_0x135e4b(0x209)](_0x24819f,_0x351578[_0x135e4b(0x296)])){const _0x20e11d={'row':_0x351578[_0x135e4b(0x296)][_0x135e4b(0x151)]-_0x24819f['startRow'],'col':_0x351578[_0x135e4b(0x296)][_0x135e4b(0x2fa)]-_0x24819f[_0x135e4b(0x2fa)]},_0x5eadba={'unitId':_0x4ad6c0,'subUnitId':_0x43c668[_0x135e4b(0x394)],'sheetName':_0x493d70,'range':{'startRow':_0x5ebe74[_0x135e4b(0x151)]+_0x20e11d['row'],'endRow':_0x5ebe74['startRow']+_0x20e11d[_0x135e4b(0x290)]+_0x351578[_0x135e4b(0x296)]['endRow']-_0x351578['range'][_0x135e4b(0x151)],'startColumn':_0x5ebe74['startColumn']+_0x20e11d[_0x135e4b(0x2c0)],'endColumn':_0x5ebe74['startColumn']+_0x20e11d[_0x135e4b(0x2c0)]+_0x351578['range'][_0x135e4b(0x43c)]-_0x351578['range']['startColumn']}};_0x595f1a['handleMoveRange'](_0x3c1bf8,_0x5eadba);const _0xaec52d={..._0x41679e,'sourceRangeInfo':_0x5eadba};this['_updateModelCache'](_0x4ad6c0,_0x43c668[_0x135e4b(0x394)],_0x3c1bf8,_0xaec52d),this[_0x135e4b(0x359)]({'unitId':_0x4ad6c0,'token':_0x3c1bf8,'type':Pe[_0x135e4b(0x27f)],'oldSourceRangeInfo':_0x351578,'dataRangeInfo':_0x5eadba,'targetCellInfo':_0x41679e[_0x135e4b(0x1f5)]}),this[_0x135e4b(0x355)]({'unitId':_0x4ad6c0,'subUnitId':_0x43c668['subUnitId'],'oldSubUnitId':_0x3fa23e,'pivotTableId':_0x3c1bf8,'pivotTableConfig':_0xaec52d,'collectionConfig':_0x595f1a['toJSON']()});}}}}[_0x2730a7(0x359)](_0x250248){const _0x31ef1e=_0x2730a7;this['_collectionChange$'][_0x31ef1e(0x31a)](_0x250248);}[_0x2730a7(0x1c5)](_0x1267a0){const _0x4de340=_0x2730a7;let _0x5603ed=this[_0x4de340(0x28e)][_0x4de340(0x37e)](_0x1267a0);return _0x5603ed||(_0x5603ed=new zo(this,this[_0x4de340(0x3d2)]),this[_0x4de340(0x28e)][_0x4de340(0x30e)](_0x1267a0,_0x5603ed)),_0x5603ed;}[_0x2730a7(0x2ac)](_0x5a6377,_0x3180f0){const _0x106fd3=_0x2730a7;return this[_0x106fd3(0x1c5)](_0x5a6377)[_0x106fd3(0x15e)][_0x3180f0];}[_0x2730a7(0x43f)](_0x36d19a,_0x1d169a,_0x34693e){const _0x45e649=_0x2730a7;return this['getDataFieldManager'](_0x36d19a)[_0x45e649(0x43f)](_0x1d169a,_0x34693e);}['_ensurePivotMap'](_0x4ffc66,_0x4f50e0){const _0x3e2716=_0x2730a7;let _0x3861f8=this[_0x3e2716(0x432)][_0x3e2716(0x37e)](_0x4ffc66);_0x3861f8||(_0x3861f8=new Map(),this[_0x3e2716(0x432)][_0x3e2716(0x30e)](_0x4ffc66,_0x3861f8));let _0x433681=_0x3861f8[_0x3e2716(0x37e)](_0x4f50e0);return _0x433681||(_0x433681=new Map(),_0x3861f8['set'](_0x4f50e0,_0x433681)),_0x433681;}[_0x2730a7(0x2a2)](_0x11207c,_0x369fa8,_0x4d38b4,_0x25a6e1){const _0x1b9895=_0x2730a7;this[_0x1b9895(0x338)](_0x11207c,_0x369fa8)['set'](_0x4d38b4,_0x25a6e1);}[_0x2730a7(0x20b)](_0x462f50,_0x5b3fd9,_0x1c3d60){const _0x2ab689=_0x2730a7;var _0xaa1056,_0x1f21c9,_0x300154,_0x489bac;((_0x1f21c9=(_0xaa1056=this['_model'][_0x2ab689(0x37e)](_0x462f50))==null?void 0x0:_0xaa1056[_0x2ab689(0x37e)](_0x5b3fd9))==null?void 0x0:_0x1f21c9[_0x2ab689(0x37e)](_0x1c3d60))&&((_0x489bac=(_0x300154=this[_0x2ab689(0x432)][_0x2ab689(0x37e)](_0x462f50))==null?void 0x0:_0x300154[_0x2ab689(0x37e)](_0x5b3fd9))==null||_0x489bac['delete'](_0x1c3d60));}[_0x2730a7(0x3a8)](_0x52e58c,_0x197062){const _0x4da334=_0x2730a7;this[_0x4da334(0x194)][_0x4da334(0x30e)](_0x52e58c,_0x197062);}['_deletePivotTableInstanceCache'](_0x5697ae){const _0x461a06=_0x2730a7;this[_0x461a06(0x194)]['delete'](_0x5697ae);}[_0x2730a7(0x1e3)](_0x4a7ca9,_0x51df94){const _0x47619e=_0x2730a7;let _0x3cb0f6=this[_0x47619e(0x2e2)][_0x47619e(0x37e)](_0x4a7ca9);_0x3cb0f6||(_0x3cb0f6=new Map(),this[_0x47619e(0x2e2)]['set'](_0x4a7ca9,_0x3cb0f6));let _0x87453=_0x3cb0f6[_0x47619e(0x37e)](_0x51df94);return _0x87453||(_0x87453=new Map(),_0x3cb0f6[_0x47619e(0x30e)](_0x51df94,_0x87453)),_0x87453;}[_0x2730a7(0x355)](_0x11dded){const _0x3cb473=_0x2730a7,{unitId:_0x1ad3a4,subUnitId:_0x206ad5,pivotTableId:_0xd859e0,pivotTableConfig:_0x54afa0,collectionConfig:_0x3227c3}=_0x11dded,_0x29dcda={'unitId':_0x1ad3a4,'subUnitId':_0x206ad5,'oldSubUnitId':_0x206ad5,'pivotTableId':_0xd859e0,'pivotTableConfig':_0x54afa0,'collectionConfig':_0x3227c3};this[_0x3cb473(0x1ef)][_0x3cb473(0x3e0)](_t['id'],_0x29dcda,{'onlyLocal':!0x0});}['updateView'](_0x36525e,_0x1cf728,_0xe36c13,_0x427410,_0x16f009,_0x7e0970,_0x17692b,_0x2fd306=!0x1){const _0x13881c=_0x2730a7;var _0x552048;this[_0x13881c(0x1ef)][_0x13881c(0x3e0)](ot['id'],{'single':{'unitId':_0x36525e,'subUnitId':_0x1cf728,'type':_0xe36c13,'pivotTableId':_0x427410,'view':_0x16f009,'pivotConfig':_0x7e0970},'collectionConfig':{[_0x36525e]:_0x17692b}},{'onlyLocal':!0x0});const _0x41215f=!!((_0x552048=this[_0x13881c(0x1cc)](_0x427410))!=null&&_0x552048[_0x13881c(0x212)]()),_0x40d8a5=this[_0x13881c(0x2f7)](_0x36525e,_0x1cf728,_0x427410);_0x40d8a5&&this[_0x13881c(0x1fc)]({'view':_0x16f009,'pivotTableId':_0x427410,'textInfo':this[_0x13881c(0x226)](),'isEmpty':_0x41215f,'targetCellInfo':_0x40d8a5[_0x13881c(0x1f5)]},_0x2fd306);}[_0x2730a7(0x1fc)](_0x2711df,_0x35f911){const _0xa29984=_0x2730a7,{targetCellInfo:_0x1dcb7c,pivotTableId:_0x138497}=_0x2711df,{unitId:_0x5cb022,subUnitId:_0x163da8}=_0x1dcb7c,_0x3dd910=this[_0xa29984(0x1e3)](_0x5cb022,_0x163da8),_0x53480f=_0x3dd910[_0xa29984(0x37e)](_0x138497);let _0x18551c,_0x281aa7;_0x53480f&&(_0x18551c=_0x53480f['rangeCache'],_0x281aa7=_0x53480f[_0xa29984(0x177)]);const {rangesCache:_0x53d60d,matrix:_0x481cd3}=en(_0x2711df);_0x3dd910[_0xa29984(0x30e)](_0x138497,{'rangeCache':_0x53d60d,'matrix':_0x481cd3,'oldMatrix':_0x281aa7,'oldRangeCache':_0x18551c}),_0x35f911||this[_0xa29984(0x1cd)][_0xa29984(0x31a)]({'unitId':_0x5cb022,'subUnitId':_0x163da8,'pivotTableId':_0x138497});}[_0x2730a7(0x1b2)](_0x3d4977,_0x1303cc,_0x48e3d8,_0x126982,_0x586544){const _0x43871d=_0x2730a7;this[_0x43871d(0x2a2)](_0x3d4977,_0x1303cc,_0x48e3d8,_0x586544),this[_0x43871d(0x3a8)](_0x48e3d8,_0x126982);}[_0x2730a7(0x29a)](_0x5013dc,_0x2d2ac8,_0x35db2f){const _0x1e0127=_0x2730a7,_0x5a88c5=this[_0x1e0127(0x1c5)](_0x5013dc);_0x5a88c5[_0x1e0127(0x23d)](_0x35db2f)[_0x1e0127(0x295)](_0x3d3580=>{_0x5a88c5['deleteDataField'](_0x3d3580);}),this[_0x1e0127(0x293)](_0x5013dc,_0x35db2f),this['_deleteModelCache'](_0x5013dc,_0x2d2ac8,_0x35db2f),this[_0x1e0127(0x39d)](_0x35db2f);}['setPivotTable'](_0x55c6ef,_0xf78a3,_0x380901,_0x15d255){const _0x2eda23=_0x2730a7;this[_0x2eda23(0x2a2)](_0x55c6ef,_0xf78a3,_0x380901,_0x15d255);}[_0x2730a7(0x2f7)](_0x44fa39,_0x42fbe7,_0xc65697){const _0x21aeaa=_0x2730a7;var _0x29fe79,_0x22b3ec;const _0x944fdd=(_0x22b3ec=(_0x29fe79=this[_0x21aeaa(0x432)][_0x21aeaa(0x37e)](_0x44fa39))==null?void 0x0:_0x29fe79[_0x21aeaa(0x37e)](_0x42fbe7))==null?void 0x0:_0x22b3ec[_0x21aeaa(0x37e)](_0xc65697);if(_0x944fdd)return _0x944fdd;}[_0x2730a7(0x2cd)](_0x2865e5,_0x1d518b,_0x30b601){const _0x2d8f2b=_0x2730a7;var _0x21d7e6,_0x503c31;const _0x1c8f9d=(_0x503c31=(_0x21d7e6=this[_0x2d8f2b(0x432)]['get'](_0x2865e5))==null?void 0x0:_0x21d7e6[_0x2d8f2b(0x37e)](_0x1d518b))==null?void 0x0:_0x503c31['get'](_0x30b601);if(_0x1c8f9d)return _0x1c8f9d[_0x2d8f2b(0x40d)];}[_0x2730a7(0x1cc)](_0x38bdf0){const _0x216ffe=_0x2730a7;return this[_0x216ffe(0x194)][_0x216ffe(0x37e)](_0x38bdf0);}[_0x2730a7(0x41f)](_0x4cb809){const _0xb7f8c7=_0x2730a7;this[_0xb7f8c7(0x432)][_0xb7f8c7(0x21a)](_0x4cb809);const _0x1961db=this[_0xb7f8c7(0x28e)]['get'](_0x4cb809);_0x1961db&&(_0x1961db[_0xb7f8c7(0x2f9)](),this[_0xb7f8c7(0x28e)][_0xb7f8c7(0x21a)](_0x4cb809)),this[_0xb7f8c7(0x2e2)][_0xb7f8c7(0x21a)](_0x4cb809),this['needSameDeleteModel']['forEach'](_0x50d994=>{const _0x4b86bd=_0xb7f8c7;_0x50d994[_0x4b86bd(0x41f)](_0x4cb809);});}['addCollectionByJSON'](_0x4f29fc,_0x4c2ad0,_0x2a98a9,_0x5c3d0e){const _0x14310a=_0x2730a7;return this['getDataFieldManager'](_0x2a98a9[_0x14310a(0x23c)])[_0x14310a(0x43e)](_0x4f29fc,_0x4c2ad0,_0x2a98a9,_0x5c3d0e);}[_0x2730a7(0x1d5)](_0x1eefe9){const _0x42e818=_0x2730a7;return this[_0x42e818(0x1c5)](_0x1eefe9[_0x42e818(0x23c)])[_0x42e818(0x1d5)](_0x1eefe9);}['refreshData'](_0x315763,_0x25ff27,_0x268067){const _0x8a7ba2=_0x2730a7;this[_0x8a7ba2(0x1c5)](_0x268067[_0x8a7ba2(0x23c)])['refreshData'](_0x315763,_0x25ff27,_0x268067);}[_0x2730a7(0x312)](_0x11d9b7,_0x53c33c){const _0x23c1bd=_0x2730a7;this['getDataFieldManager'](_0x11d9b7)[_0x23c1bd(0x386)](_0x53c33c);}[_0x2730a7(0x293)](_0x5e1788,_0xdd10bf){const _0x17fb83=_0x2730a7;this[_0x17fb83(0x1c5)](_0x5e1788)['removeCollectionImp'](_0xdd10bf);}['getSubUnitPivotConfigs'](_0x579f88,_0x234a32){const _0x6e9314=_0x2730a7;var _0x497629;return(_0x497629=this[_0x6e9314(0x432)]['get'](_0x579f88))==null?void 0x0:_0x497629[_0x6e9314(0x37e)](_0x234a32);}[_0x2730a7(0x3de)](_0x326d3e){const _0x13da98=_0x2730a7;for(const [_0x1e172e,_0x13a0e8]of this[_0x13da98(0x432)][_0x13da98(0x3be)]())for(const [_0x321f2f,_0x2d363f]of _0x13a0e8[_0x13da98(0x3be)]())if(_0x2d363f[_0x13da98(0x152)](_0x326d3e))return{'unitId':_0x1e172e,'subUnitId':_0x321f2f};return null;}['sideEffectUpdateWorkerCache'](_0x1a46ac,_0x33f604,_0x385a4e,_0x4f8850){const _0x43a3b3=_0x2730a7,_0x2652ad=this[_0x43a3b3(0x1e3)](_0x1a46ac,_0x33f604);_0x4f8850?_0x2652ad[_0x43a3b3(0x30e)](_0x385a4e,_0x4f8850):_0x2652ad[_0x43a3b3(0x21a)](_0x385a4e),this[_0x43a3b3(0x1cd)][_0x43a3b3(0x31a)]({'unitId':_0x1a46ac,'subUnitId':_0x33f604,'pivotTableId':_0x385a4e});}[_0x2730a7(0x2f9)](){const _0x3c2a3f=_0x2730a7;super[_0x3c2a3f(0x2f9)](),this[_0x3c2a3f(0x432)][_0x3c2a3f(0x3c0)](),this['_pivotTableInstanceCache']['clear'](),this[_0x3c2a3f(0x2e2)][_0x3c2a3f(0x3c0)](),this[_0x3c2a3f(0x399)][_0x3c2a3f(0x166)](),this['_viewData$'][_0x3c2a3f(0x166)](),this['_fieldsCollectionChange$'][_0x3c2a3f(0x166)](),this[_0x3c2a3f(0x28e)][_0x3c2a3f(0x295)](_0x424119=>_0x424119['dispose']()),this['_dataFieldManagerCollection'][_0x3c2a3f(0x3c0)]();}[_0x2730a7(0x1d7)](_0x5610ea,_0x11f275,_0x2f6d00){const _0x2f0b3c=_0x2730a7;var _0x31ffe7,_0x217f08;const _0x2f529a=(_0x217f08=(_0x31ffe7=this['_viewData']['get'](_0x5610ea))==null?void 0x0:_0x31ffe7[_0x2f0b3c(0x37e)](_0x11f275))==null?void 0x0:_0x217f08[_0x2f0b3c(0x37e)](_0x2f6d00);return _0x2f529a||null;}[_0x2730a7(0x33f)](_0x435e82){const _0x4a71f3=_0x2730a7;this[_0x4a71f3(0x249)](_0x435e82);}['updateDirtyPivotTable'](_0x1e43a7){const _0x247197=_0x2730a7,{token:_0x2f114d,unitId:_0x7191c3,subUnitId:_0x1d4a52}=_0x1e43a7,_0x494174=_0x7191c3+'-'+_0x1d4a52+'-'+_0x2f114d;this[_0x247197(0x3cb)][_0x247197(0x37e)](_0x494174)&&clearTimeout(this[_0x247197(0x3cb)][_0x247197(0x37e)](_0x494174));const _0x545219=setTimeout(()=>{const _0x3c9ac7=_0x247197;this[_0x3c9ac7(0x30f)](_0x1e43a7),this[_0x3c9ac7(0x3cb)][_0x3c9ac7(0x21a)](_0x494174);},$o);this[_0x247197(0x3cb)][_0x247197(0x30e)](_0x494174,_0x545219);}[_0x2730a7(0x30f)](_0x30b51b){const _0xa7e2fc=_0x2730a7,{unitId:_0x210ed4,subUnitId:_0x187fe5,token:_0x17c05c,type:_0x5cb1d3,pivotConfig:_0x1b0947}=_0x30b51b,_0x4463e7=this[_0xa7e2fc(0x1cc)](_0x17c05c),_0x3d6575=_0x4463e7==null?void 0x0:_0x4463e7[_0xa7e2fc(0x255)](),_0x2af103=_0x1b0947!=null?_0x1b0947:this[_0xa7e2fc(0x2f7)](_0x210ed4,_0x187fe5,_0x17c05c);_0x2af103&&(_0x2af103['isEmpty']=!!(_0x4463e7!=null&&_0x4463e7[_0xa7e2fc(0x212)]())),(_0x3d6575||_0x5cb1d3===L['Delete'])&&this[_0xa7e2fc(0x2ed)](_0x210ed4,_0x187fe5,_0x5cb1d3,_0x17c05c,_0x3d6575,_0x2af103,this[_0xa7e2fc(0x1c5)](_0x210ed4)[_0xa7e2fc(0x2af)]());}[_0x2730a7(0x2af)](_0x582a13){const _0x2cceaf=_0x2730a7,_0x4ef76f={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2cceaf(0x1c5)](_0x582a13)&&(_0x4ef76f[_0x2cceaf(0x23a)][_0x582a13]=this['getDataFieldManager'](_0x582a13)[_0x2cceaf(0x2af)]()),this[_0x2cceaf(0x432)][_0x2cceaf(0x37e)](_0x582a13)){_0x4ef76f['pivotTableConfigs'][_0x582a13]={};const _0x1c458d=this['_model'][_0x2cceaf(0x37e)](_0x582a13);_0x1c458d!=null&&_0x1c458d[_0x2cceaf(0x37b)]&&[..._0x1c458d['keys']()][_0x2cceaf(0x295)](_0x4135b0=>{const _0x5c04ed=_0x2cceaf,_0x12740f=_0x1c458d[_0x5c04ed(0x37e)](_0x4135b0);_0x12740f!=null&&_0x12740f[_0x5c04ed(0x37b)]&&(_0x4ef76f['pivotTableConfigs'][_0x582a13][_0x4135b0]={},[..._0x12740f[_0x5c04ed(0x3fb)]()][_0x5c04ed(0x295)](_0x1ff24a=>{const _0x6e8415=_0x5c04ed,_0x5dcd4e=_0x12740f[_0x6e8415(0x37e)](_0x1ff24a);_0x5dcd4e&&(_0x4ef76f[_0x6e8415(0x287)][_0x582a13][_0x4135b0][_0x1ff24a]=_0x5dcd4e);}));});}return _0x4ef76f;}[_0x2730a7(0x313)](_0x159c32){const _0x42a2d8=_0x2730a7;var _0x14cfed;const {dataFieldManagerConfig:_0x2c1f87,pivotTableConfigs:_0x27ffa0}=_0x159c32;_0x2c1f87&&Object[_0x42a2d8(0x3fb)](_0x2c1f87)['forEach'](_0x2e2274=>{this['getDataFieldManager'](_0x2e2274)['fromJSON'](_0x2c1f87[_0x2e2274]);});const _0x5c187f=[];if(_0x27ffa0){const _0x20fafa=(_0x14cfed=this[_0x42a2d8(0x2e8)]['get'](f['IConfigService'])['getConfig'](ue[_0x42a2d8(0x17b)]))!=null?_0x14cfed:{},{ls:_0x31e6a0,pbk:_0x1388a1}=_0x20fafa,_0x51c13f=St(It,_0x31e6a0,_0x1388a1)[_0x42a2d8(0x3b4)];Object[_0x42a2d8(0x3fb)](_0x27ffa0)['forEach'](_0x300ea8=>{const _0x37b1af=_0x42a2d8;let _0x52e34c=0x0;const _0x4e1f53=_0x27ffa0[_0x300ea8];Object[_0x37b1af(0x3fb)](_0x4e1f53)[_0x37b1af(0x295)](_0x11eca3=>{const _0x102019=_0x37b1af,_0x497a26=_0x4e1f53[_0x11eca3];Object['keys'](_0x497a26)[_0x102019(0x295)](_0x321c5a=>{const _0x22e861=_0x102019,_0x4f4b0b=_0x497a26[_0x321c5a];if(_0x4f4b0b){if(_0x52e34c>=_0x51c13f)return;_0x52e34c++;const _0x4eda2b=this[_0x22e861(0x1c5)](_0x300ea8),_0x221f10=_0x4eda2b['collections'][_0x321c5a],_0x2dafc7=_0x221f10[_0x22e861(0x28f)]();let _0x395512=0x0;const _0x17543e=[];for(const _0x3d54e7 of _0x2dafc7){const _0x1dd9eb=_0x221f10['getFieldById'](_0x3d54e7);if(m[_0x22e861(0x143)](_0x1dd9eb)){const _0x414667=_0x1dd9eb[_0x22e861(0x345)](),_0x15fa5c=_0x221f10[_0x22e861(0x157)](_0x414667);_0x15fa5c&&_0x17543e[_0x22e861(0x27c)]([_0x1dd9eb,_0x15fa5c]);continue;}_0x4eda2b[_0x22e861(0x32d)](_0x3d54e7,_0x4f4b0b[_0x22e861(0x41d)],_0x395512),_0x395512++;}_0x17543e[_0x22e861(0x295)](([_0x34e609,_0x5cdffa])=>{const _0x5b15d4=_0x22e861;_0x34e609[_0x5b15d4(0x438)](_0x5cdffa);});const _0xd96cd3=new m[(_0x22e861(0x380))](_0x221f10);_0xd96cd3[_0x22e861(0x313)](_0x4f4b0b['fieldsConfig']),this[_0x22e861(0x1b2)](_0x300ea8,_0x11eca3,_0x321c5a,_0xd96cd3,_0x4f4b0b);const _0x312e7a=_0xd96cd3['query']();_0x5c187f[_0x22e861(0x27c)]({'unitId':_0x300ea8,'subUnitId':_0x11eca3,'pivotTableId':_0x321c5a,'view':_0x312e7a['toJSON'](),'pivotConfig':_0x4f4b0b,'type':L[_0x22e861(0x2a8)]});const _0x15a2de=!!_0xd96cd3[_0x22e861(0x212)](),_0x3a6c5e={'view':_0x312e7a,'pivotTableId':_0x321c5a,'textInfo':this[_0x22e861(0x226)](),'isEmpty':_0x15a2de,'targetCellInfo':_0x4f4b0b[_0x22e861(0x1f5)]};this[_0x22e861(0x1fc)](_0x3a6c5e,!0x1);}});});});}_0x2c1f87&&Object[_0x42a2d8(0x3fb)](_0x2c1f87)['forEach'](_0x1635ea=>{const _0x82f295=_0x42a2d8,_0x367cc9=this[_0x82f295(0x1c5)](_0x1635ea);this[_0x82f295(0x1e2)][_0x82f295(0x31a)](_0x367cc9[_0x82f295(0x15e)]);}),this[_0x42a2d8(0x1ef)]['executeCommand'](ot['id'],{'batch':_0x5c187f,'collectionConfig':_0x2c1f87},{'onlyLocal':!0x0});}[_0x2730a7(0x19e)](){const _0x2fc22e=_0x2730a7;this[_0x2fc22e(0x3f6)](this[_0x2fc22e(0x2b5)]['registerPluginResource']({'toJson':_0x833bac=>JSON[_0x2fc22e(0x34e)](this[_0x2fc22e(0x2af)](_0x833bac)),'parseJson':_0x10e8b8=>{const _0x408828=_0x2fc22e;if(!_0x10e8b8)return{};try{return JSON[_0x408828(0x16e)](_0x10e8b8);}catch{return{};}},'businesses':[f['UniverInstanceType'][_0x2fc22e(0x167)]],'pluginName':Ct,'onLoad':(_0x371b6c,_0x1f6386)=>{this['fromJSON'](_0x1f6386);},'onUnLoad':_0x8dea2f=>{const _0x2ab0e1=_0x2fc22e;this[_0x2ab0e1(0x41f)](_0x8dea2f);}}));}},exports[_0x2730a7(0x2dd)]=on([xe(0x0,f[_0x2730a7(0x23f)](f['Injector'])),xe(0x1,f[_0x2730a7(0x3d8)]),xe(0x2,f['Inject'](f[_0x2730a7(0x15d)])),xe(0x3,f['ICommandService']),xe(0x4,f[_0x2730a7(0x23f)](f['IResourceManagerService']))],exports['SheetsPivotDataSourceModel']);const nn={0x0:{0x0:{'v':_0x2730a7(0x236),'s':z}},0x2:{0x1:{'v':'','s':z},0x2:{'v':'','s':z},0x3:{'v':_0x2730a7(0x239),'s':z},0x4:{'v':'','s':z},0x5:{'v':'','s':z}},0x3:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x4:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x5:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x6:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x7:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x8:{0x0:{'v':_0x2730a7(0x290),'s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':_0x2730a7(0x1a4),'s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x9:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xa:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xb:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xc:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xd:{0x0:{'v':'','s':z},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}}},Tt={'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':[]},Yt=(_0xa1849f,_0x3cb942)=>{const _0x4e41a0=_0x2730a7,_0xf48cdd=new f[(_0x4e41a0(0x1bf))](),_0x31b027=new f[(_0x4e41a0(0x1bf))](nn),{row:_0x41699a,col:_0xb7592}=_0x3cb942;_0x31b027[_0x4e41a0(0x24d)]((_0xbfd5fb,_0x1898fb,_0x2d1f2a)=>{const _0x473655=_0x4e41a0;let _0x29c7ea='';_0x2d1f2a['v']===_0x473655(0x236)?_0x29c7ea=_0xa1849f[_0x473655(0x236)]:_0x2d1f2a['v']===_0x473655(0x290)?_0x29c7ea=_0xa1849f['row']:_0x2d1f2a['v']===_0x473655(0x239)?_0x29c7ea=_0xa1849f[_0x473655(0x239)]:_0x2d1f2a['v']===_0x473655(0x1a4)&&(_0x29c7ea=_0xa1849f['values']),_0xf48cdd[_0x473655(0x385)](_0xbfd5fb+_0x41699a,_0x1898fb+_0xb7592,{..._0x2d1f2a,'v':_0x29c7ea});});const _0x2b143c=f[_0x4e41a0(0x384)][_0x4e41a0(0x23b)](Tt);return Object['keys'](Tt)[_0x4e41a0(0x295)](_0x210643=>{const _0x2a06bd=_0x4e41a0;_0x2b143c[_0x210643]=Tt[_0x210643][_0x2a06bd(0x1d6)](_0x59ce80=>({..._0x59ce80,'startRow':_0x59ce80['startRow']+_0x41699a,'endRow':_0x59ce80[_0x2a06bd(0x172)]+_0x41699a,'startColumn':_0x59ce80[_0x2a06bd(0x2fa)]+_0xb7592,'endColumn':_0x59ce80[_0x2a06bd(0x43c)]+_0xb7592}));}),{'matrixCache':_0xf48cdd,'rangesCache':_0x2b143c};};function sn(_0x2d83c8,_0x26e679){const _0x1d8f34=_0x2730a7;let _0x4cc03c='';const _0x4de6fe=this['getTextInfo']();switch(_0x26e679){case m[_0x1d8f34(0x39a)][_0x1d8f34(0x171)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x401)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)][_0x1d8f34(0x3b4)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x3a0)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)]['countNums']:_0x4cc03c=_0x4de6fe['sheets-pivot.countNumsName']+_0x2d83c8;break;case m['PivotSubtotalTypeEnum'][_0x1d8f34(0x18f)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x1c4)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)][_0x1d8f34(0x285)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x29c)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)]['product']:_0x4cc03c=_0x4de6fe['sheets-pivot.productName']+_0x2d83c8;break;case m[_0x1d8f34(0x39a)][_0x1d8f34(0x2d4)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x365)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)][_0x1d8f34(0x2fd)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x192)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)][_0x1d8f34(0x1d4)]:_0x4cc03c=_0x4de6fe[_0x1d8f34(0x243)]+_0x2d83c8;break;case m[_0x1d8f34(0x39a)][_0x1d8f34(0x1a1)]:_0x4cc03c=_0x4de6fe['sheets-pivot.varName']+_0x2d83c8;break;case m['PivotSubtotalTypeEnum'][_0x1d8f34(0x39e)]:_0x4cc03c=_0x4de6fe['sheets-pivot.varpName']+_0x2d83c8;break;default:_0x4cc03c=_0x2d83c8;break;}return _0x4cc03c;}function Kt(_0x201002,_0x7440f1,_0x284c03,_0x1af191,_0x3b2423){const _0x291b61=_0x2730a7;var _0x141540,_0x2691a8,_0x5def00,_0x4ddd8c,_0x2ba4d9;const _0x462732=f[_0x291b61(0x325)](_0x201002,_0x7440f1),{rangesInfo:_0x293451,areaInfo:_0x1ae3fa,headerMap:_0x5d44ce}=_0x3b2423;if(!_0x293451||!_0x1ae3fa||!_0x5d44ce)return;const _0x247ecf=Object[_0x291b61(0x3fb)](_0x293451)[_0x291b61(0x2a0)](_0xbc0c27=>_0x293451[_0xbc0c27][_0x291b61(0x1f3)](_0xf431b9=>f[_0x291b61(0x267)][_0x291b61(0x209)](_0xf431b9,_0x462732))),_0x1616aa=_0x1ae3fa;let _0x3f0d28,_0x1b5f3b,_0x4f988d;if(_0x247ecf===_0x291b61(0x38b))_0x3f0d28=(_0x141540=_0x1616aa==null?void 0x0:_0x1616aa[_0x291b61(0x330)])==null?void 0x0:_0x141540[_0x201002],_0x1b5f3b=(_0x2691a8=_0x5d44ce==null?void 0x0:_0x5d44ce['rowHeaderMap'])==null?void 0x0:_0x2691a8[_0x7440f1],_0x4f988d=_0x1b5f3b==null?void 0x0:_0x1b5f3b[_0x291b61(0x175)];else{if(_0x247ecf==='colRanges')_0x3f0d28=(_0x5def00=_0x1616aa==null?void 0x0:_0x1616aa[_0x291b61(0x41e)])==null?void 0x0:_0x5def00[_0x7440f1],_0x1b5f3b=(_0x4ddd8c=_0x5d44ce[_0x291b61(0x3c4)])==null?void 0x0:_0x4ddd8c[_0x201002+0x1+_0x7440f1-_0x293451[_0x291b61(0x375)][0x0][_0x291b61(0x2fa)]],_0x4f988d=_0x1b5f3b==null?void 0x0:_0x1b5f3b[_0x291b61(0x175)];else{if(_0x247ecf===_0x291b61(0x42c))_0x3f0d28=(_0x2ba4d9=_0x1616aa==null?void 0x0:_0x1616aa[_0x291b61(0x16d)])==null?void 0x0:_0x2ba4d9[_0x7440f1],_0x4f988d=_0x3f0d28==null?void 0x0:_0x3f0d28['tableFieldId'];else{if(_0x247ecf===_0x291b61(0x3c6)){const _0x4a5582=_0x284c03==null?void 0x0:_0x284c03['fi'];_0x4a5582!==void 0x0&&(_0x4f988d=_0x1af191['getFilterFieldIdByIndex'](_0x4a5582));}}}}return{'filterId':_0x4f988d,'info':_0x3f0d28,'data':_0x284c03,'headerInfo':_0x1b5f3b};}function Ht(_0x365a2e,_0x59f0f9,_0x449491){const _0x4a1e78=_0x2730a7,_0x243e20=_0x365a2e[_0x4a1e78(0x34a)],_0x3f2e44=_0x243e20[_0x4a1e78(0x28f)](),_0x3e2eec=new Set();_0x365a2e[_0x4a1e78(0x320)](_0x13349d=>{const _0x5b8e01=_0x4a1e78;_0x3e2eec[_0x5b8e01(0x437)](_0x13349d[_0x5b8e01(0x214)]);});const _0x470d15=_0x3f2e44['map'](_0x348cf3=>{const _0x5cd063=_0x4a1e78,_0x4ea1e9=_0x243e20[_0x5cd063(0x157)](_0x348cf3);return{'checked':_0x3e2eec[_0x5cd063(0x152)](_0x348cf3),'dataFieldId':_0x4ea1e9['id'],'id':_0x4ea1e9['id'],'name':_0x243e20[_0x5cd063(0x393)](_0x4ea1e9['id']),'type':_0x4ea1e9[_0x5cd063(0x19c)](),'pivotTableId':_0x59f0f9};}),_0x9135ab=[];_0x365a2e['iterateFieldByArea'](m[_0x4a1e78(0x1fb)][_0x4a1e78(0x1a6)],_0x455f68=>{const _0x49588e=_0x4a1e78;_0x9135ab[_0x49588e(0x27c)]({'dataFieldId':_0x455f68['dataFieldId'],'tableFieldId':_0x455f68[_0x49588e(0x3a4)](),'displayName':_0x455f68[_0x49588e(0x393)]()});});const _0x1ae5c9=[];_0x365a2e['iterateFieldByArea'](m[_0x4a1e78(0x1fb)][_0x4a1e78(0x1be)],_0x52e75c=>{const _0x3d1fa2=_0x4a1e78;_0x1ae5c9[_0x3d1fa2(0x27c)]({'dataFieldId':_0x52e75c[_0x3d1fa2(0x214)],'tableFieldId':_0x52e75c[_0x3d1fa2(0x3a4)](),'displayName':_0x52e75c[_0x3d1fa2(0x393)]()});});const _0x1291e0=[];if(_0x365a2e[_0x4a1e78(0x348)](m[_0x4a1e78(0x1fb)][_0x4a1e78(0x2c9)],_0x48348f=>{const _0x3d8cfd=_0x4a1e78;_0x1291e0[_0x3d8cfd(0x27c)]({'dataFieldId':_0x48348f['dataFieldId'],'tableFieldId':_0x48348f['getId'](),'displayName':_0x48348f[_0x3d8cfd(0x393)](),'format':_0x48348f[_0x3d8cfd(0x376)](),'subTotalType':_0x48348f['getSubtotal']()});}),_0x1291e0[_0x4a1e78(0x206)]>0x1){const _0x57570e=_0x365a2e[_0x4a1e78(0x2aa)]();(_0x365a2e['isColMultiMeasure']()?_0x1ae5c9:_0x9135ab)[_0x4a1e78(0x3f2)](_0x57570e,0x0,{'dataFieldId':'','tableFieldId':_0x4a1e78(0x262),'displayName':_0x4a1e78(0x1ac)});}const _0x4aeda8=[];_0x365a2e[_0x4a1e78(0x348)](m['PivotTableFiledAreaEnum'][_0x4a1e78(0x41b)],_0xfd6f71=>{const _0x188252=_0x4a1e78;_0x4aeda8[_0x188252(0x27c)]({'dataFieldId':_0xfd6f71[_0x188252(0x214)],'tableFieldId':_0xfd6f71['getId'](),'displayName':_0xfd6f71['getDisplayName']()});});const _0x4b153e=_0x449491[_0x4a1e78(0x41d)];return{'sourceList':_0x470d15,'sourceRange':_0x4b153e,'rowFields':_0x9135ab,'columnFields':_0x1ae5c9,'valueFields':_0x1291e0,'filterFields':_0x4aeda8,'positionInfo':_0x449491[_0x4a1e78(0x1f5)]};}function Dt(_0x3fb9b6,_0x56105f,_0x43cf6e='',_0x509488={}){const _0x4ea2a9=_0x2730a7,_0xaeaed6=_0x3fb9b6[_0x4ea2a9(0x37e)](f[_0x4ea2a9(0x169)]);for(const _0xfd626e in _0x56105f)if(Object[_0x4ea2a9(0x3ed)][_0x4ea2a9(0x1e5)][_0x4ea2a9(0x396)](_0x56105f,_0xfd626e)){const _0x103091=_0x43cf6e?_0x43cf6e+'.'+_0xfd626e:_0xfd626e;typeof _0x56105f[_0xfd626e]==_0x4ea2a9(0x371)&&_0x56105f[_0xfd626e]!==null&&!Array[_0x4ea2a9(0x3a9)](_0x56105f[_0xfd626e])?Dt(_0x3fb9b6,_0x56105f[_0xfd626e],_0x103091,_0x509488):_0x509488[_0x103091]=_0xaeaed6['t'](_0x103091);}return _0x509488;}const nt=_0xca8509=>{const _0x2a7902=_0x2730a7;if(!_0xca8509)return[];const {rowRanges:_0x25a9ed,colRanges:_0x330a1b,cornerRanges:_0x244dc9,dataRanges:_0x55e21a,pageRanges:_0x558f77}=_0xca8509,_0x29d652=[..._0x330a1b,..._0x25a9ed,..._0x55e21a,..._0x244dc9][_0x2a7902(0x236)](_0x252876=>_0x252876[_0x2a7902(0x151)]>=0x0&&_0x252876[_0x2a7902(0x2fa)]>=0x0&&_0x252876[_0x2a7902(0x172)]>=0x0&&_0x252876['endColumn']>=0x0);let _0x51e744=Number[_0x2a7902(0x420)],_0x650bf4=Number[_0x2a7902(0x13c)],_0x45eb75=Number[_0x2a7902(0x420)],_0xb93c92=Number[_0x2a7902(0x13c)];for(let _0x274e58=0x0;_0x274e58<_0x29d652[_0x2a7902(0x206)];_0x274e58++)_0x51e744=Math[_0x2a7902(0x285)](_0x51e744,_0x29d652[_0x274e58][_0x2a7902(0x151)]),_0x650bf4=Math['max'](_0x650bf4,_0x29d652[_0x274e58][_0x2a7902(0x172)]),_0x45eb75=Math[_0x2a7902(0x285)](_0x45eb75,_0x29d652[_0x274e58][_0x2a7902(0x2fa)]),_0xb93c92=Math[_0x2a7902(0x18f)](_0xb93c92,_0x29d652[_0x274e58][_0x2a7902(0x43c)]);return[..._0x558f77,{'startRow':_0x51e744,'endRow':_0x650bf4,'startColumn':_0x45eb75,'endColumn':_0xb93c92}];};function an(_0x1514a3,_0x407dcb){const _0x4496dd=_0x2730a7,_0x3f70de=_0x407dcb['params'][_0x4496dd(0x33c)],{pivotTableId:_0x11006c,unitId:_0x48bd20,subUnitId:_0x3800b9}=_0x407dcb;if(!_0x3f70de)return;const _0x2a7398=_0x1514a3[_0x4496dd(0x37e)](exports[_0x4496dd(0x2dd)]),_0x204605=_0x2a7398[_0x4496dd(0x1cc)](_0x11006c),_0x518896=_0x2a7398[_0x4496dd(0x2f7)](_0x48bd20,_0x3800b9,_0x11006c);if(!_0x204605||!_0x518896)return;const _0x5b0276=_0x204605['getIndexesByPathStr'](_0x3f70de[_0x4496dd(0x30b)]);if(!(_0x5b0276!=null&&_0x5b0276['length']))return;const _0x4f0007=_0x518896[_0x4496dd(0x41d)],{unitId:_0x59c0d8,subUnitId:_0x7c1c8d,range:_0x4ea433}=_0x4f0007;let _0x9304b9=0x0;const _0x5a8f82=_0x204605[_0x4496dd(0x34a)][_0x4496dd(0x28f)]()[_0x4496dd(0x3cc)]((_0xd2b839,_0x3b6d59)=>{const _0x35b141=_0x4496dd;var _0x5715ab;const _0xf315bd=(_0x5715ab=_0x204605['getDataFieldByDataFieldId'](_0x3b6d59))==null?void 0x0:_0x5715ab[_0x35b141(0x18a)]();return _0xf315bd&&(_0xd2b839[String(_0x9304b9)]=_0xf315bd),_0x9304b9++,_0xd2b839;},{});return{'indexes':_0x5b0276,'range':_0x4ea433,'sourceUnitId':_0x59c0d8,'sourceSubUnitId':_0x7c1c8d,'formatMap':_0x5a8f82};}function Et(_0x342c47,_0x4231f4){const _0x537860=_0x2730a7;if(!_0x342c47||!_0x4231f4)return!0x0;const _0x3f206c=ue[_0x537860(0x2ae)](qt,Wt),_0x4aa31e=new Function(_0x537860(0x17f)+_0x3f206c)()(_0x342c47,_0x4231f4)['message'],_0x3abca9=ue['isFeatureAuthorizedWithinTime'](_0x4aa31e,'sf',jt);return!((_0x4aa31e==null?void 0x0:_0x4aa31e['rt'])===ue[_0x537860(0x322)][_0x537860(0x21e)]&&!_0x3abca9);}function St(_0x2c96c8,_0x61620f,_0x58ed9e){const _0x28dd3a=_0x2730a7,_0x4e0b7a={'count':_0x2c96c8,'timeValid':!0x1};if(!_0x61620f||!_0x58ed9e)return _0x4e0b7a;const _0x216c1f=ue[_0x28dd3a(0x2ae)](qt,Wt),_0x579c02=new Function(_0x28dd3a(0x17f)+_0x216c1f)()(_0x61620f,_0x58ed9e);if(_0x579c02!=null&&_0x579c02[_0x28dd3a(0x2b7)]){const _0x62f68c=_0x579c02[_0x28dd3a(0x31d)],_0x35c374=ue[_0x28dd3a(0x26b)](_0x62f68c,'sf',jt);return{'count':ue[_0x28dd3a(0x2ba)](_0x62f68c,_0x35c374,'ptn',_0x2c96c8,_0x2c96c8,0x0),'timeValid':_0x35c374};}return _0x4e0b7a;}function Nt(_0x21466c,_0x361c4c,_0x7cedc0,_0x381bb5){const _0x1e90f5=_0x2730a7,_0x28be16={'subUnitId':_0x7cedc0,'unitId':_0x361c4c,'cellValue':U[_0x1e90f5(0x2b2)](_0x381bb5)},_0x2ff546=U[_0x1e90f5(0x21f)](_0x21466c,_0x28be16);let _0x40fac1=!0x1;return new f[(_0x1e90f5(0x1bf))](_0x2ff546[_0x1e90f5(0x1fa)])[_0x1e90f5(0x24d)]((_0x5ac06d,_0x4df7a1,_0x220642)=>{const _0x1eda3b=_0x1e90f5;if(!_0x40fac1&&_0x220642&&(_0x220642[_0x1eda3b(0x35f)]||_0x220642['f']||_0x220642['p']||_0x220642['s']||_0x220642['si']||_0x220642['t']||_0x220642['v']))return _0x40fac1=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':U[_0x1e90f5(0x139)]['id'],'params':_0x2ff546},'setRangeValueRedoMutation':{'id':U[_0x1e90f5(0x139)]['id'],'params':_0x28be16},'shouldClear':_0x40fac1};}function zt(_0x4b2dea){const {row:_0x56386a,col:_0x400340}=_0x4b2dea,_0xb9740f={'startRow':_0x56386a,'endRow':_0x56386a,'startColumn':_0x400340,'endColumn':_0x400340},_0x3bb9c6={'startRow':_0x56386a+0x2,'endRow':_0x56386a+0xe,'startColumn':_0x400340,'endColumn':_0x400340+0x6};return[_0xb9740f,_0x3bb9c6];}function rn(_0x1e8415,_0x23fc3e,_0x52b51a){const _0x1267d1=_0x2730a7,{cornerView:_0x4aedaf,rowView:_0x3e4185,colView:_0x5816e6,pageView:_0x4265d5}=_0x1e8415,{row:_0x56609b,col:_0x52b1c6}=_0x23fc3e;if(_0x52b51a)return{'rowCount':Go+_0x56609b,'colCount':jo+_0x52b1c6};const _0x4228c7=_0x4265d5[_0x1267d1(0x257)]>-0x1?_0x4265d5['lastRow']+0x1:0x0,_0x41303=_0x4265d5['lastCol']>-0x1?_0x4265d5[_0x1267d1(0x22f)]:0x0,_0x4887d1=_0x56609b+_0x4228c7+(_0x4228c7?0x1:0x0)+_0x4aedaf[_0x1267d1(0x372)]+_0x3e4185[_0x1267d1(0x372)],_0x735cd5=_0x52b1c6+_0x41303,_0x21e5d8=_0x52b1c6+_0x4aedaf['colCount']+_0x5816e6[_0x1267d1(0x2f8)],_0x531aa3=Math['max'](_0x735cd5,_0x21e5d8);return{'rowCount':_0x4887d1,'colCount':_0x531aa3};}function ce(_0x487823,_0x1b2fc1,_0xc8ed9d,_0x3faa37){const _0x215c9a=_0x2730a7,{row:_0x5328b3,col:_0x1e7419,unitId:_0x542406,subUnitId:_0x1f50a4}=_0xc8ed9d,_0x1f3d89=rn(_0x1b2fc1,{'row':_0x5328b3,'col':_0x1e7419},_0x3faa37),_0x415636=_0x487823[_0x215c9a(0x37e)](f[_0x215c9a(0x3d8)]),_0x449cc8=U[_0x215c9a(0x1bc)](_0x415636,{'unitId':_0x542406,'subUnitId':_0x1f50a4}),_0x14e039=[],_0x3c7186=[];if(!_0x449cc8)return{'undos':_0x3c7186,'redos':_0x14e039};const {worksheet:_0x2e57b7}=_0x449cc8,_0x55fc9a=_0x2e57b7['getRowCount'](),_0x20fd0c=_0x2e57b7[_0x215c9a(0x24c)]();return _0x55fc9a<_0x1f3d89[_0x215c9a(0x372)]&&(_0x14e039['push']({'id':U['InsertRowMutation']['id'],'params':{'unitId':_0x542406,'subUnitId':_0x1f50a4,'range':{'startRow':_0x55fc9a,'endRow':_0x1f3d89['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x20fd0c-0x1}}}),_0x3c7186[_0x215c9a(0x27c)]({'id':U[_0x215c9a(0x3ff)]['id'],'params':{'unitId':_0x542406,'subUnitId':_0x1f50a4,'range':{'startRow':_0x55fc9a,'endRow':_0x1f3d89[_0x215c9a(0x372)]-0x1,'startColumn':0x0,'endColumn':_0x20fd0c-0x1}}})),_0x20fd0c<_0x1f3d89[_0x215c9a(0x2f8)]&&(_0x14e039[_0x215c9a(0x27c)]({'id':U['InsertColMutation']['id'],'params':{'unitId':_0x542406,'subUnitId':_0x1f50a4,'range':{'startRow':0x0,'endRow':_0x55fc9a-0x1,'startColumn':_0x20fd0c,'endColumn':_0x1f3d89[_0x215c9a(0x2f8)]-0x1}}}),_0x3c7186[_0x215c9a(0x27c)]({'id':U['RemoveColMutation']['id'],'params':{'unitId':_0x542406,'subUnitId':_0x1f50a4,'range':{'startRow':0x0,'endRow':_0x55fc9a-0x1,'startColumn':_0x20fd0c,'endColumn':_0x1f3d89[_0x215c9a(0x2f8)]-0x1}}})),{'undos':_0x3c7186,'redos':_0x14e039};}function ln(_0x2aa09e){const _0x312d91=_0x2730a7;let _0x13a5de=0x0;for(let _0x49e77a=0x0;_0x49e77a<_0x2aa09e[_0x312d91(0x206)];_0x49e77a++){const _0x45ca87=_0x2aa09e['charCodeAt'](_0x49e77a);_0x45ca87>=0x4e00&&_0x45ca87<=0x9fff||_0x45ca87>=0x3000&&_0x45ca87<=0x303f||_0x45ca87>=0xff00&&_0x45ca87<=0xffef?_0x13a5de+=0x2:_0x13a5de+=0x1;}return _0x13a5de;}function Bt(_0x1bfa13,_0xb9e20e,_0x36b570,_0x3c1a68){const _0x1521a8=_0x2730a7;var _0x1f50d5,_0x4e003f,_0xb7f4e1,_0x2e5d68;const {rowCount:_0x262e87,colCount:_0x2fc169,headerMap:_0x29364c}=_0x1bfa13,_0x4ba461=0x64,_0x3bdccc=Math['min'](_0x262e87,_0x4ba461),_0x263e3b=Math[_0x1521a8(0x285)](_0x2fc169,_0x4ba461);let _0x6bc5f8='',_0x49b40a=0x0;for(let _0x277ff2=0x0;_0x277ff2<_0x3bdccc;_0x277ff2++)for(let _0x494183=0x0;_0x494183<_0x263e3b;_0x494183++){const _0x9cc440={...(_0x4e003f=(_0x1f50d5=_0x1bfa13[_0x1521a8(0x1b4)])==null?void 0x0:_0x1f50d5[_0x277ff2])==null?void 0x0:_0x4e003f[_0x494183]},_0x190e92=(_0xb7f4e1=_0x29364c[_0x277ff2])==null?void 0x0:_0xb7f4e1[_0x1521a8(0x175)],_0x58f735=_0x3c1a68[_0x190e92];let _0x18a7cc=_0x1bfa13[_0x1521a8(0x1ea)](_0x277ff2,_0x494183);if(_0x9cc440){const _0x4a68f0=_0x36b570?_0x494183===0x0&&((_0x2e5d68=_0x1bfa13['getHeaderMapItem'](_0x494183+0x1))==null?void 0x0:_0x2e5d68['isValue']):!0x1;_0x18a7cc=Me(_0x9cc440,_0x4a68f0,_0x58f735,_0xb9e20e);}if(_0x18a7cc!==void 0x0){const _0x43bb5d=ln(String(_0x18a7cc));_0x49b40a<_0x43bb5d&&(_0x6bc5f8=String(_0x18a7cc),_0x49b40a=_0x43bb5d);}}return _0x6bc5f8;}function cn(_0x51ce73){const _0x216dd7=_0x2730a7,{rowCount:_0x4e5a45,colCount:_0x11b72f}=_0x51ce73;let _0x53d37b='',_0x370651=0x0;for(let _0x5645da=_0x4e5a45-0x1;_0x5645da>0x0&&_0x5645da>_0x4e5a45-0x3;_0x5645da--)for(let _0x3f0fae=0x0;_0x3f0fae<_0x11b72f;_0x3f0fae++){const _0x195737=_0x51ce73[_0x216dd7(0x1ea)](_0x5645da,_0x3f0fae);if(_0x195737!==void 0x0){const _0x42bec8=String(_0x195737)['length'];_0x370651<_0x42bec8&&(_0x53d37b=String(_0x195737),_0x370651=_0x42bec8);}}return _0x53d37b;}function dn(_0x296867){const _0x591adb=_0x2730a7,{rowCount:_0x15c270,colCount:_0x113351}=_0x296867;let _0x3ec0de='',_0x3a5c5f=0x0;for(let _0x1971f1=0x0;_0x1971f1<_0x15c270;_0x1971f1++)for(let _0x22b2f9=0x0;_0x22b2f9<_0x113351;_0x22b2f9++){const _0x418f94=_0x296867[_0x591adb(0x1ea)](_0x1971f1,_0x22b2f9);if(_0x418f94!==void 0x0){const _0x32e014=String(_0x418f94)['length'];_0x3a5c5f<_0x32e014&&(_0x3ec0de=String(_0x418f94),_0x3a5c5f=_0x32e014);}}return _0x3ec0de;}function un(_0x591fc2,_0x1047ec){const _0x3c4782=_0x2730a7,{rowFields:_0x29de0c,columnFields:_0x279c89,valueFields:_0x2ce83a,filterFields:_0x1c185f,dimension:_0x4830a5,measure:_0xaeef5f}=_0x1047ec;for(const _0x222ea7 of _0x29de0c){const _0x4fd5e4=_0x4830a5[_0x222ea7];_0x4fd5e4&&_0x591fc2['getDataFieldByDataFieldId'](_0x4fd5e4[_0x3c4782(0x214)])&&(_0x591fc2[_0x3c4782(0x2b1)](_0x4fd5e4[_0x3c4782(0x214)],m[_0x3c4782(0x1fb)]['Row'],void 0x0,_0x222ea7),_0x4fd5e4[_0x3c4782(0x213)]&&_0x591fc2[_0x3c4782(0x201)](_0x4fd5e4['id'],_0x4fd5e4[_0x3c4782(0x213)]),_0x4fd5e4[_0x3c4782(0x439)]&&_0x591fc2[_0x3c4782(0x216)](_0x4fd5e4['id'],_0x4fd5e4[_0x3c4782(0x439)]),_0x4fd5e4[_0x3c4782(0x366)]&&_0x591fc2['setLabelFilterInfo'](_0x4fd5e4['id'],_0x4fd5e4[_0x3c4782(0x366)]));}for(const _0x337ba9 of _0x279c89){const _0x1d778d=_0x4830a5[_0x337ba9];_0x1d778d&&_0x591fc2['getDataFieldByDataFieldId'](_0x1d778d['dataFieldId'])&&(_0x591fc2[_0x3c4782(0x2b1)](_0x1d778d['dataFieldId'],m[_0x3c4782(0x1fb)][_0x3c4782(0x1be)],void 0x0,_0x337ba9),_0x1d778d[_0x3c4782(0x439)]&&_0x591fc2[_0x3c4782(0x216)](_0x1d778d['id'],_0x1d778d[_0x3c4782(0x439)]),_0x1d778d[_0x3c4782(0x366)]&&_0x591fc2[_0x3c4782(0x1f2)](_0x1d778d['id'],_0x1d778d[_0x3c4782(0x366)]),_0x1d778d[_0x3c4782(0x213)]&&_0x591fc2[_0x3c4782(0x201)](_0x1d778d['id'],_0x1d778d[_0x3c4782(0x213)]));}for(const _0x1ccb68 of _0x1c185f){const _0x4f9960=_0x4830a5[_0x1ccb68];_0x4f9960&&_0x591fc2[_0x3c4782(0x14d)](_0x4f9960['dataFieldId'])&&(_0x591fc2[_0x3c4782(0x2b1)](_0x4f9960[_0x3c4782(0x214)],m[_0x3c4782(0x1fb)]['Filter'],void 0x0,_0x1ccb68),_0x4f9960['sortInfo']&&_0x591fc2[_0x3c4782(0x216)](_0x4f9960['id'],_0x4f9960[_0x3c4782(0x439)]),_0x4f9960['filterInfo']&&_0x591fc2[_0x3c4782(0x1f2)](_0x4f9960['id'],_0x4f9960[_0x3c4782(0x366)]),_0x4f9960['displayName']&&_0x591fc2['renameField'](_0x4f9960['id'],_0x4f9960[_0x3c4782(0x213)]));}for(const _0x5bf94f of _0x2ce83a){const _0x2c1e0c=_0xaeef5f[_0x5bf94f];_0x2c1e0c&&_0x591fc2[_0x3c4782(0x14d)](_0x2c1e0c[_0x3c4782(0x214)])&&(_0x591fc2[_0x3c4782(0x2b1)](_0x2c1e0c[_0x3c4782(0x214)],m['PivotTableFiledAreaEnum'][_0x3c4782(0x2c9)],void 0x0,_0x5bf94f),_0x2c1e0c[_0x3c4782(0x421)]!==void 0x0&&_0x591fc2[_0x3c4782(0x150)](_0x5bf94f,_0x2c1e0c[_0x3c4782(0x421)]),_0x2c1e0c['format']&&_0x591fc2[_0x3c4782(0x411)](_0x5bf94f,_0x2c1e0c[_0x3c4782(0x28c)]),_0x2c1e0c['displayName']&&_0x591fc2[_0x3c4782(0x201)](_0x2c1e0c['id'],_0x2c1e0c[_0x3c4782(0x213)]));}const _0x1f6a43=_0x1047ec[_0x3c4782(0x138)];for(const {fieldId:_0x1b8805,filterInfo:_0x45e385}of _0x1f6a43)_0x591fc2[_0x3c4782(0x2f2)](_0x1b8805,_0x45e385);}function gn(_0x373d96,_0x56d675){const _0x29f807=_0x2730a7,_0xafee5a=[];_0x56d675===m['PivotTableFiledAreaEnum'][_0x29f807(0x1a6)]&&_0x373d96['iterateFieldByArea'](m[_0x29f807(0x1fb)][_0x29f807(0x1a6)],_0x2c017e=>{const _0x568564=_0x29f807;_0xafee5a[_0x568564(0x27c)](_0x2c017e[_0x568564(0x3a4)]());}),_0x56d675===m[_0x29f807(0x1fb)]['Column']&&_0x373d96[_0x29f807(0x348)](m[_0x29f807(0x1fb)][_0x29f807(0x1be)],_0x1ed3af=>{_0xafee5a['push'](_0x1ed3af['getId']());}),_0x56d675===m[_0x29f807(0x1fb)][_0x29f807(0x41b)]&&_0x373d96[_0x29f807(0x348)](m[_0x29f807(0x1fb)][_0x29f807(0x41b)],_0x5d36d1=>{const _0x4ab836=_0x29f807;_0xafee5a[_0x4ab836(0x27c)](_0x5d36d1[_0x4ab836(0x3a4)]());}),_0x56d675===m['PivotTableFiledAreaEnum'][_0x29f807(0x2c9)]&&_0x373d96[_0x29f807(0x348)](m[_0x29f807(0x1fb)][_0x29f807(0x2c9)],_0x47e796=>{const _0x20a2e4=_0x29f807;_0xafee5a[_0x20a2e4(0x27c)](_0x47e796[_0x20a2e4(0x3a4)]());}),_0x56d675===void 0x0&&_0x373d96['iterateField'](_0x4deaed=>{const _0x483d52=_0x29f807;_0xafee5a[_0x483d52(0x27c)](_0x4deaed['getId']());});const _0xfff7b8=_0xafee5a[_0x29f807(0x206)];for(let _0x505d40=_0xfff7b8-0x1;_0x505d40>=0x0;_0x505d40--)_0x373d96[_0x29f807(0x307)](_0xafee5a[_0x505d40]);const _0x2664b2=_0x373d96['getValueFilterInfos']();for(const _0x3495fe in _0x2664b2)_0x373d96[_0x29f807(0x2db)](_0x3495fe);}function fn(_0xeed188,_0x34a579){const _0x20b212=_0x2730a7,_0x2cc335=new Date(m[_0x20b212(0x31c)](_0x34a579)),_0x2158d4=new Date(m[_0x20b212(0x31c)](_0xeed188)),_0x2a979a=_0x2cc335[_0x20b212(0x3af)](),_0x3df901=_0x2158d4[_0x20b212(0x3af)](),_0x5598ec=_0x2cc335['getMonth'](),_0x2f0c86=_0x2158d4['getMonth'](),_0x36e77e=_0x2cc335[_0x20b212(0x1b9)](),_0x3e1bcd=_0x2158d4[_0x20b212(0x1b9)](),_0x494bd2=_0x2a979a===_0x3df901,_0x51dcb9=_0x494bd2&&_0x5598ec===_0x2f0c86;return _0x494bd2&&_0x51dcb9&&!(_0x51dcb9&&_0x36e77e===_0x3e1bcd)?m['PivotDateGroupFieldDateTypeEnum']['YearMonthDate']:_0x494bd2&&!_0x51dcb9?m[_0x20b212(0x346)][_0x20b212(0x34c)]:m[_0x20b212(0x346)][_0x20b212(0x42b)];}function Zt(_0x5e7614,_0x16ae25){const _0x5d85cb=_0x2730a7,_0x549b15=_0x5e7614[_0x5d85cb(0x37e)](exports['SheetsPivotDataSourceModel'])[_0x5d85cb(0x226)]();let _0x1d32e2='';switch(_0x16ae25){case m[_0x5d85cb(0x346)][_0x5d85cb(0x333)]:_0x1d32e2=_0x549b15[_0x5d85cb(0x31b)];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x34c)]:_0x1d32e2=_0x549b15[_0x5d85cb(0x40c)];break;case m[_0x5d85cb(0x346)]['Year']:_0x1d32e2=_0x549b15[_0x5d85cb(0x326)];break;case m['PivotDateGroupFieldDateTypeEnum']['Month']:_0x1d32e2=_0x549b15[_0x5d85cb(0x337)];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x3eb)]:_0x1d32e2=_0x549b15[_0x5d85cb(0x3b8)];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x161)]:_0x1d32e2=_0x549b15[_0x5d85cb(0x2ca)];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x3f0)]:_0x1d32e2=_0x549b15[_0x5d85cb(0x2f3)];break;case m['PivotDateGroupFieldDateTypeEnum'][_0x5d85cb(0x2bd)]:_0x1d32e2=_0x549b15['sheets-pivot.dateGroup.hour'];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x16f)]:_0x1d32e2=_0x549b15['sheets-pivot.dateGroup.minute'];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x142)]:_0x1d32e2=_0x549b15['sheets-pivot.dateGroup.monthDate'];break;case m[_0x5d85cb(0x346)][_0x5d85cb(0x1c9)]:_0x1d32e2=_0x549b15[_0x5d85cb(0x2ee)];break;default:_0x1d32e2='';break;}return _0x1d32e2;}const At='sheets-pivot.config',kt={};var vn=Object[_0x2730a7(0x2ad)],hn=(_0x5edd6e,_0x423d83,_0x4cfe65,_0x327ecc)=>{const _0x2e431c=_0x2730a7;for(var _0x1b8511=_0x327ecc>0x1?void 0x0:_0x327ecc?vn(_0x423d83,_0x4cfe65):_0x423d83,_0x522188=_0x5edd6e[_0x2e431c(0x206)]-0x1,_0x1f158b;_0x522188>=0x0;_0x522188--)(_0x1f158b=_0x5edd6e[_0x522188])&&(_0x1b8511=_0x1f158b(_0x1b8511)||_0x1b8511);return _0x1b8511;},Oe=(_0x80edea,_0x51aa2d)=>(_0x2ad51a,_0x1f2ab3)=>_0x51aa2d(_0x2ad51a,_0x1f2ab3,_0x80edea);exports[_0x2730a7(0x234)]=class extends f[_0x2730a7(0x1af)]{constructor(_0x35b912,_0x165578,_0x1b757d,_0x1ac2a8,_0x65e4a1){const _0x167c37=_0x2730a7;super(),V(this,'_model',new Map()),V(this,_0x167c37(0x22a),new Map()),V(this,_0x167c37(0x164),new Map()),V(this,_0x167c37(0x2d2),new Map()),V(this,'_configVersion$',new ve['Subject']()),V(this,_0x167c37(0x2cb),new ve[(_0x167c37(0x1fd))]()),V(this,_0x167c37(0x41c),this[_0x167c37(0x2cb)][_0x167c37(0x280)]()),V(this,_0x167c37(0x357),new ve[(_0x167c37(0x1fd))]()),V(this,_0x167c37(0x3f3),this[_0x167c37(0x357)][_0x167c37(0x280)]()),V(this,_0x167c37(0x3bd),{}),V(this,_0x167c37(0x40b),this[_0x167c37(0x35e)]['asObservable']()),(this[_0x167c37(0x2e8)]=_0x35b912,this[_0x167c37(0x1ef)]=_0x165578,this['_univerInstanceService']=_0x1b757d,this[_0x167c37(0x2b5)]=_0x1ac2a8,this[_0x167c37(0x2d3)]=_0x65e4a1,this[_0x167c37(0x3a6)](),this[_0x167c37(0x145)]());const _0x4d205c=this[_0x167c37(0x2d3)]['getConfig'](At);(_0x4d205c==null?void 0x0:_0x4d205c['notExecuteFormula'])===!0x0&&this[_0x167c37(0x19e)]();}[_0x2730a7(0x145)](){const _0x2b1424=_0x2730a7;this[_0x2b1424(0x3f6)](this['_univerInstanceService'][_0x2b1424(0x3c9)](f['UniverInstanceType'][_0x2b1424(0x167)])['subscribe'](_0x5d47bc=>{const _0x183f35=_0x2b1424;this[_0x183f35(0x41f)](_0x5d47bc[_0x183f35(0x29f)]());}));}[_0x2730a7(0x1e4)](){const _0x25f6f0=_0x2730a7;this[_0x25f6f0(0x2cb)]['next'](!0x0);}[_0x2730a7(0x3a6)](){const _0x216158=_0x2730a7,_0x40ee64=Dt(this['_injector'],$t,'',{});this[_0x216158(0x3bd)]=_0x40ee64,this[_0x216158(0x1ef)]['executeCommand'](Rt['id'],{'textInfo':_0x40ee64},{'onlyLocal':!0x0});}[_0x2730a7(0x226)](){const _0x248f59=_0x2730a7;return this[_0x248f59(0x3bd)];}[_0x2730a7(0x20f)](_0x31fd06,_0x4eb39e,_0x54ec9d,_0x4e2d8c,_0x1f6829){const _0x1b3bfc=_0x2730a7;this[_0x1b3bfc(0x1ee)](_0x31fd06,_0x4eb39e,_0x54ec9d,_0x4e2d8c),this[_0x1b3bfc(0x387)](_0x31fd06,_0x4eb39e,_0x54ec9d,_0x1f6829);}[_0x2730a7(0x2f7)](_0xa1c5b,_0x5cb2f6,_0x280d5a){const _0x405486=_0x2730a7;var _0x9dfaf6;const _0x34aa2f=(_0x9dfaf6=this[_0x405486(0x432)][_0x405486(0x37e)](_0xa1c5b))==null?void 0x0:_0x9dfaf6[_0x405486(0x37e)](_0x5cb2f6);if(_0x34aa2f)return _0x34aa2f[_0x405486(0x37e)](_0x280d5a);}[_0x2730a7(0x210)](_0x314093,_0x2f7902){const _0x551613=_0x2730a7,_0x3db268=this['_model'][_0x551613(0x37e)](_0x314093);if(_0x3db268){for(const [_0x1a30ea,_0x2e735c]of _0x3db268[_0x551613(0x3be)]())for(const [_0xcc1dc7,_0x42aef8]of _0x2e735c[_0x551613(0x3be)]())if(_0xcc1dc7===_0x2f7902)return _0x42aef8[_0x551613(0x1f5)];}}[_0x2730a7(0x3de)](_0x3ba6aa,_0x459ca1,_0x19ccfe){const _0x2cf42e=_0x2730a7,_0x4bbdbb=this[_0x2cf42e(0x2f7)](_0x3ba6aa,_0x459ca1,_0x19ccfe);return _0x4bbdbb==null?void 0x0:_0x4bbdbb['targetCellInfo'];}[_0x2730a7(0x33d)](_0x88988b,_0x258e54){const _0x288ceb=_0x2730a7;var _0x2baf5a;return(_0x2baf5a=this[_0x288ceb(0x432)][_0x288ceb(0x37e)](_0x88988b))==null?void 0x0:_0x2baf5a['get'](_0x258e54);}[_0x2730a7(0x14c)](_0x1efa87,_0x50c72e,_0xac9b87,_0x12e97d){const _0x333d48=_0x2730a7,_0x2a9b9f=this[_0x333d48(0x338)](_0x1efa87,_0x50c72e);_0x12e97d?_0x2a9b9f[_0x333d48(0x30e)](_0xac9b87,_0x12e97d):_0x2a9b9f[_0x333d48(0x21a)](_0xac9b87),this[_0x333d48(0x357)]['next']({'unitId':_0x1efa87,'subUnitId':_0x50c72e,'pivotTableId':_0xac9b87,'pivotTableConfig':_0x12e97d});}[_0x2730a7(0x2ac)](_0x56b4de,_0x34dbd4){const _0x37bdc4=_0x2730a7;var _0x2022e9;return(_0x2022e9=this[_0x37bdc4(0x22a)]['get'](_0x56b4de))==null?void 0x0:_0x2022e9[_0x37bdc4(0x15e)][_0x34dbd4];}[_0x2730a7(0x1c8)](_0x4ae861,_0x4799ef){const _0x5b5631=_0x2730a7;this['_collectionConfigModel'][_0x5b5631(0x30e)](_0x4ae861,_0x4799ef),this[_0x5b5631(0x35e)]['next'](Math['random']());}[_0x2730a7(0x338)](_0x14807c,_0x468ad9){const _0x4ba2c7=_0x2730a7;let _0x219ae6=this['_model']['get'](_0x14807c);_0x219ae6||(_0x219ae6=new Map(),this[_0x4ba2c7(0x432)]['set'](_0x14807c,_0x219ae6));let _0x4cad2e=_0x219ae6[_0x4ba2c7(0x37e)](_0x468ad9);return _0x4cad2e||(_0x4cad2e=new Map(),_0x219ae6[_0x4ba2c7(0x30e)](_0x468ad9,_0x4cad2e)),_0x4cad2e;}[_0x2730a7(0x3cf)](_0x206f69,_0x2bcb9f){const _0x58846d=_0x2730a7;let _0x47f643=this['_pivotTableRangeInfo']['get'](_0x206f69);_0x47f643||(_0x47f643=new Map(),this[_0x58846d(0x164)][_0x58846d(0x30e)](_0x206f69,_0x47f643));let _0x14eb25=_0x47f643[_0x58846d(0x37e)](_0x2bcb9f);return _0x14eb25||(_0x14eb25=new Map(),_0x47f643[_0x58846d(0x30e)](_0x2bcb9f,_0x14eb25)),_0x14eb25;}[_0x2730a7(0x13e)](_0x5bb233,_0x116cb4){const _0x5a9d16=_0x2730a7;let _0x3738aa=this[_0x5a9d16(0x2d2)][_0x5a9d16(0x37e)](_0x5bb233);_0x3738aa||(_0x3738aa=new Map(),this[_0x5a9d16(0x2d2)]['set'](_0x5bb233,_0x3738aa));let _0x14563c=_0x3738aa['get'](_0x116cb4);return _0x14563c||(_0x14563c=new Map(),_0x3738aa[_0x5a9d16(0x30e)](_0x116cb4,_0x14563c)),_0x14563c;}[_0x2730a7(0x387)](_0x5e6031,_0x1b5050,_0x4878dc,_0x274cf4){const _0x1465a=_0x2730a7;var _0x29f355;const _0x188a9d=this['_ensurePivotTableRangeInfo'](_0x5e6031,_0x1b5050),_0x3d31a3=(_0x29f355=_0x188a9d[_0x1465a(0x37e)](_0x4878dc))==null?void 0x0:_0x29f355['oldRangeInfo'];_0x188a9d['set'](_0x4878dc,{'oldRangeInfo':_0x3d31a3,'rangeInfo':_0x274cf4});}['updatePivotTableMatrixInfo'](_0x2d9479,_0x3e3596,_0x876d08,_0x3ffdec){const _0x4f74e2=_0x2730a7;var _0x53e5bb;const _0x536f10=this['_ensurePivotTableMatrixInfo'](_0x2d9479,_0x3e3596),_0x58b773=(_0x53e5bb=_0x536f10['get'](_0x876d08))==null?void 0x0:_0x53e5bb[_0x4f74e2(0x435)];_0x536f10[_0x4f74e2(0x30e)](_0x876d08,{'oldMatrix':_0x58b773,'matrix':_0x3ffdec});}[_0x2730a7(0x2b9)](_0x5975e0,_0x1c00b4,_0x20f0e2){const _0x4f4e89=_0x2730a7;var _0x4f871a,_0x34353a;return(_0x34353a=(_0x4f871a=this[_0x4f4e89(0x164)][_0x4f4e89(0x37e)](_0x5975e0))==null?void 0x0:_0x4f871a[_0x4f4e89(0x37e)](_0x1c00b4))==null?void 0x0:_0x34353a['get'](_0x20f0e2);}['getPivotTableMatrixInfo'](_0x18c5b0,_0x26ea35,_0x387693){const _0x46ddd9=_0x2730a7;var _0x4843b0,_0x1571fd;return(_0x1571fd=(_0x4843b0=this[_0x46ddd9(0x2d2)][_0x46ddd9(0x37e)](_0x18c5b0))==null?void 0x0:_0x4843b0[_0x46ddd9(0x37e)](_0x26ea35))==null?void 0x0:_0x1571fd['get'](_0x387693);}['deleteUnitId'](_0x100709){const _0x200218=_0x2730a7;this['_model'][_0x200218(0x21a)](_0x100709),this[_0x200218(0x22a)]['delete'](_0x100709);}['_toJSON'](_0x39f3a2){const _0x1531f9=_0x2730a7,_0x40a683={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x1531f9(0x22a)][_0x1531f9(0x37e)](_0x39f3a2)&&(_0x40a683[_0x1531f9(0x23a)][_0x39f3a2]=this[_0x1531f9(0x22a)][_0x1531f9(0x37e)](_0x39f3a2)),this['_model'][_0x1531f9(0x37e)](_0x39f3a2)){_0x40a683[_0x1531f9(0x287)][_0x39f3a2]={};const _0x3ff467=this[_0x1531f9(0x432)][_0x1531f9(0x37e)](_0x39f3a2);_0x3ff467!=null&&_0x3ff467['size']&&[..._0x3ff467[_0x1531f9(0x3fb)]()][_0x1531f9(0x295)](_0x49c15e=>{const _0x9581cc=_0x1531f9,_0x5bb706=_0x3ff467[_0x9581cc(0x37e)](_0x49c15e);_0x5bb706!=null&&_0x5bb706[_0x9581cc(0x37b)]&&(_0x40a683[_0x9581cc(0x287)][_0x39f3a2][_0x49c15e]={},[..._0x5bb706[_0x9581cc(0x3fb)]()]['forEach'](_0x4bb1de=>{const _0x173a99=_0x9581cc,_0x31fa2e=_0x5bb706[_0x173a99(0x37e)](_0x4bb1de);_0x31fa2e&&(_0x40a683['pivotTableConfigs'][_0x39f3a2][_0x49c15e][_0x4bb1de]=_0x31fa2e);}));});}return _0x40a683;}[_0x2730a7(0x19e)](){const _0x7a19f7=_0x2730a7;this['disposeWithMe'](this[_0x7a19f7(0x2b5)][_0x7a19f7(0x349)]({'toJson':_0xfbf719=>JSON[_0x7a19f7(0x34e)](this['_toJSON'](_0xfbf719)),'parseJson':_0x3f72e2=>({}),'businesses':[f[_0x7a19f7(0x36a)][_0x7a19f7(0x167)]],'pluginName':Ct,'onLoad':(_0x36652d,_0x480f39)=>{},'onUnLoad':_0x449ce1=>{const _0x2f404f=_0x7a19f7;this[_0x2f404f(0x41f)](_0x449ce1);}}));}},exports[_0x2730a7(0x234)]=hn([Oe(0x0,f[_0x2730a7(0x23f)](f['Injector'])),Oe(0x1,f[_0x2730a7(0x23f)](f[_0x2730a7(0x178)])),Oe(0x2,f['Inject'](f[_0x2730a7(0x3d8)])),Oe(0x3,f[_0x2730a7(0x23f)](f[_0x2730a7(0x281)])),Oe(0x4,f[_0x2730a7(0x23f)](f[_0x2730a7(0x319)]))],exports[_0x2730a7(0x234)]);var pn=Object[_0x2730a7(0x2ad)],mn=(_0x125fe9,_0x314290,_0x1f1069,_0x2910b6)=>{const _0x5c9490=_0x2730a7;for(var _0x509e29=_0x2910b6>0x1?void 0x0:_0x2910b6?pn(_0x314290,_0x1f1069):_0x314290,_0x4aac87=_0x125fe9[_0x5c9490(0x206)]-0x1,_0x362d7f;_0x4aac87>=0x0;_0x4aac87--)(_0x362d7f=_0x125fe9[_0x4aac87])&&(_0x509e29=_0x362d7f(_0x509e29)||_0x509e29);return _0x509e29;},Be=(_0x183b47,_0x2ef240)=>(_0x7381c6,_0x58dee5)=>_0x2ef240(_0x7381c6,_0x58dee5,_0x183b47);exports['SheetsPivotTableAdaptorModel']=class extends f[_0x2730a7(0x1af)]{constructor(_0x4c871c,_0x22a6c9,_0x291365,_0x3399c2,_0x35d45f){const _0x5f4fdc=_0x2730a7;super(),V(this,_0x5f4fdc(0x352),new Map()),V(this,_0x5f4fdc(0x20d),new Map()),V(this,_0x5f4fdc(0x165),new ve[(_0x5f4fdc(0x1fd))]()),V(this,_0x5f4fdc(0x276),this[_0x5f4fdc(0x165)]['asObservable']()),V(this,_0x5f4fdc(0x3df),new ve[(_0x5f4fdc(0x1fd))]()),V(this,'viewUpdate$',this[_0x5f4fdc(0x3df)]['asObservable']()),V(this,'_textInfo'),(this[_0x5f4fdc(0x195)]=_0x4c871c,this['_injector']=_0x22a6c9,this[_0x5f4fdc(0x251)]=_0x291365,this[_0x5f4fdc(0x3d2)]=_0x3399c2,this['_exclusiveRangeService']=_0x35d45f,this[_0x5f4fdc(0x3a6)](),this[_0x5f4fdc(0x145)]());}[_0x2730a7(0x145)](){const _0x50de09=_0x2730a7;this['disposeWithMe'](this[_0x50de09(0x3d2)][_0x50de09(0x3c9)](f[_0x50de09(0x36a)][_0x50de09(0x167)])['subscribe'](_0x3bd852=>{const _0x437c61=_0x50de09;this[_0x437c61(0x41f)](_0x3bd852['getUnitId']());}));}['_initLocale'](){const _0x58c5b9=_0x2730a7;this['_textInfo']=Dt(this[_0x58c5b9(0x2e8)],$t,'',{});}[_0x2730a7(0x15b)](_0x5e2779){const _0x18277a=_0x2730a7,{view:_0x596ed2,unitId:_0x21180f,subUnitId:_0x527686,pivotTableId:_0x9dfe81,type:_0x17378f}=_0x5e2779,_0x2fc337=this[_0x18277a(0x251)][_0x18277a(0x2f7)](_0x21180f,_0x527686,_0x9dfe81);if(!_0x596ed2||!_0x2fc337||_0x17378f===L[_0x18277a(0x2bf)])return;const {pageView:_0x5b9664,cornerView:_0x36d150,rowView:_0x3dec50,colView:_0xea4058,dataView:_0x41cd3f}=_0x596ed2,_0x2a9d04=_0x2fc337[_0x18277a(0x1f5)],_0x1f217a=_0x2fc337[_0x18277a(0x212)],_0x518078=this[_0x18277a(0x269)](_0x21180f,_0x527686),_0x2d421e=this[_0x18277a(0x434)](_0x21180f,_0x527686,_0x9dfe81);if(_0x1f217a)return this[_0x18277a(0x351)](_0x5e2779,_0x518078,_0x2a9d04,_0x2d421e);{const _0x36eb0d=ne(_0x2a9d04,_0x5b9664,!0x0),_0x208add=_0x5b9664['lastRow']>=0x0?_0x5b9664['lastRow']+0x1:0x0,_0x279bf6=_0x36d150[_0x18277a(0x258)](),_0x363346=_0x36d150[_0x18277a(0x173)](),_0x4bfca8=_0x36eb0d['length']>0x0?we:0x0,_0x3c9410=ne({'row':_0x2a9d04[_0x18277a(0x290)]+_0x208add+_0x4bfca8,'col':_0x2a9d04[_0x18277a(0x2c0)]},_0x36d150,!0x1,!0x1),_0x6cd99c=ne({'row':_0x2a9d04[_0x18277a(0x290)]+_0x208add+_0x4bfca8+_0x279bf6,'col':_0x2a9d04[_0x18277a(0x2c0)]},_0x3dec50,!0x1,!0x0),_0x4d350f=ne({'row':_0x2a9d04[_0x18277a(0x290)]+_0x208add+_0x4bfca8,'col':_0x2a9d04['col']+_0x363346},_0xea4058,!0x1,!0x0),_0x3f596c=ne({'row':_0x2a9d04[_0x18277a(0x290)]+_0x208add+_0x4bfca8+_0x279bf6,'col':_0x2a9d04[_0x18277a(0x2c0)]+_0x363346},_0x41cd3f,!0x1,!0x1);_0x2d421e[_0x18277a(0x3ef)]={'rowRanges':_0x6cd99c,'colRanges':_0x4d350f,'cornerRanges':_0x3c9410,'dataRanges':_0x3f596c,'pageRanges':_0x36eb0d};const _0x24edfd=Qo(this[_0x18277a(0x2e8)],_0x596ed2,_0x2fc337,this['_textInfo']),{valueMatrix:_0x1265e2,rowInfo:_0x2f2548,colInfo:_0xadf64a,cornerInfo:_0x99f40a,rowHeaderMap:_0x15a962,colHeaderMap:_0x5d0643}=_0x24edfd;return _0x2d421e[_0x18277a(0x3a5)]={'rowInfo':_0x2f2548,'colInfo':_0xadf64a,'cornerInfo':_0x99f40a},_0x2d421e['headerMap']={'rowHeaderMap':_0x15a962,'colHeaderMap':_0x5d0643},_0x1265e2['forEach']((_0x244935,_0x1badaa)=>{const _0x287f3d=_0x18277a;Object['keys'](_0x1badaa)[_0x287f3d(0x295)](_0x10bcaf=>{const _0x2b74db=_0x287f3d,_0xb3ee55=+_0x10bcaf,_0x11aee2=_0x1265e2[_0x2b74db(0x1ea)](_0x244935,_0xb3ee55);_0x518078['setValue'](_0x244935,_0xb3ee55,_0x11aee2);});}),this[_0x18277a(0x3df)][_0x18277a(0x31a)]({'unitId':_0x21180f,'subUnitId':_0x527686,'valueMatrix':_0x518078,'rangesCache':_0x2d421e[_0x18277a(0x3ef)],'pivotTableId':_0x9dfe81,'type':_0x5e2779[_0x18277a(0x15f)]}),this[_0x18277a(0x251)][_0x18277a(0x20f)](_0x21180f,_0x527686,_0x9dfe81,_0x518078,_0x2d421e[_0x18277a(0x3ef)]),this[_0x18277a(0x1f6)][_0x18277a(0x2ea)](_0x21180f,_0x527686,bt,this[_0x18277a(0x21b)](_0x2d421e[_0x18277a(0x3ef)],_0x9dfe81)),{'rangeCache':_0x2d421e[_0x18277a(0x3ef)],'matrix':_0x518078};}}[_0x2730a7(0x351)](_0x536181,_0x372a8e,_0x1f2362,_0xc44115){const _0x50750e=_0x2730a7,_0x20f0a4=this[_0x50750e(0x195)]['t'],{unitId:_0x26b35b,subUnitId:_0x49880c,pivotTableId:_0x3f5947}=_0x536181,_0x629ec3={'filter':_0x20f0a4(_0x50750e(0x1aa)),'row':_0x20f0a4(_0x50750e(0x3b5)),'column':_0x20f0a4(_0x50750e(0x417)),'values':_0x20f0a4('sheets-pivot.emptyPivot.values')},{matrixCache:_0x4bfce4,rangesCache:_0x4c1e27}=Yt(_0x629ec3,_0x1f2362);return _0x4bfce4[_0x50750e(0x24d)]((_0x39558f,_0x1d58e7,_0xdfe747)=>{_0x372a8e['setValue'](_0x39558f,_0x1d58e7,_0xdfe747);}),_0xc44115[_0x50750e(0x3ef)]=_0x4c1e27,this['_viewUpdate$']['next']({'unitId':_0x26b35b,'subUnitId':_0x49880c,'valueMatrix':_0x372a8e,'rangesCache':_0x4c1e27,'pivotTableId':_0x3f5947,'type':_0x536181['type'],'isEmpty':!0x0}),this[_0x50750e(0x251)]['updateViewInfo'](_0x26b35b,_0x49880c,_0x3f5947,_0x372a8e,_0x4c1e27),this[_0x50750e(0x1f6)]['addExclusiveRange'](_0x26b35b,_0x49880c,bt,this[_0x50750e(0x21b)](_0x4c1e27,_0x3f5947)),{'rangeCache':_0xc44115[_0x50750e(0x3ef)],'matrix':_0x372a8e};}[_0x2730a7(0x21b)](_0x4d3637,_0xee8e9f){const _0x4e8cbb=_0x2730a7,_0x26dc0a=[],_0x24b151=nt(_0x4d3637);for(const _0x582a49 of _0x24b151)_0x26dc0a[_0x4e8cbb(0x27c)]({'groupId':_0xee8e9f,'range':_0x582a49});return _0x26dc0a;}[_0x2730a7(0x364)](_0xe8b666){const _0x2f7a9a=_0x2730a7;var _0x2850a2,_0x25a1d4,_0x1c5fb7,_0x479515;const {pivotTableId:_0x3efb20,unitId:_0x3367a2,subUnitId:_0x77ad14}=_0xe8b666;if(!_0x3efb20||!_0x3367a2||!_0x77ad14)return;const _0x12b808=this[_0x2f7a9a(0x269)](_0x3367a2,_0x77ad14),_0xc48f6f=(_0x25a1d4=(_0x2850a2=this[_0x2f7a9a(0x352)][_0x2f7a9a(0x37e)](_0x3367a2))==null?void 0x0:_0x2850a2[_0x2f7a9a(0x37e)](_0x77ad14))==null?void 0x0:_0x25a1d4['get'](_0x3efb20);if(_0xc48f6f!=null&&_0xc48f6f[_0x2f7a9a(0x3ef)]){for(const _0x44717d of Object[_0x2f7a9a(0x3fb)](_0xc48f6f['rangesInfo']))_0xc48f6f[_0x2f7a9a(0x3ef)][_0x44717d][_0x2f7a9a(0x295)](_0x147027=>{const _0x5ba288=_0x2f7a9a;for(let _0x48d534=_0x147027[_0x5ba288(0x151)];_0x48d534<=_0x147027[_0x5ba288(0x172)];_0x48d534++)for(let _0x46bafe=_0x147027[_0x5ba288(0x2fa)];_0x46bafe<=_0x147027[_0x5ba288(0x43c)];_0x46bafe++)_0x12b808[_0x5ba288(0x1eb)](_0x48d534,_0x46bafe);});}_0xc48f6f&&((_0x479515=(_0x1c5fb7=this[_0x2f7a9a(0x352)][_0x2f7a9a(0x37e)](_0x3367a2))==null?void 0x0:_0x1c5fb7[_0x2f7a9a(0x37e)](_0x77ad14))==null||_0x479515[_0x2f7a9a(0x21a)](_0x3efb20)),this[_0x2f7a9a(0x3df)][_0x2f7a9a(0x31a)]({'unitId':_0x3367a2,'subUnitId':_0x77ad14,'valueMatrix':_0x12b808,'pivotTableId':_0x3efb20,'rangesCache':void 0x0,'type':_0xe8b666[_0x2f7a9a(0x15f)]}),this[_0x2f7a9a(0x1f6)][_0x2f7a9a(0x200)](_0x3367a2,_0x77ad14,bt,_0x3efb20);}[_0x2730a7(0x434)](_0x362685,_0x11b27d,_0x4f3aff){const _0x12438d=_0x2730a7;var _0x552f96,_0x3a8ac8,_0xfbe283,_0x1143cd,_0x264640,_0x5a58c0;return this[_0x12438d(0x352)][_0x12438d(0x152)](_0x362685)||this[_0x12438d(0x352)][_0x12438d(0x30e)](_0x362685,new Map()),(_0x552f96=this[_0x12438d(0x352)][_0x12438d(0x37e)](_0x362685))!=null&&_0x552f96[_0x12438d(0x152)](_0x11b27d)||(_0x3a8ac8=this[_0x12438d(0x352)][_0x12438d(0x37e)](_0x362685))==null||_0x3a8ac8[_0x12438d(0x30e)](_0x11b27d,new Map()),(_0x1143cd=(_0xfbe283=this[_0x12438d(0x352)]['get'](_0x362685))==null?void 0x0:_0xfbe283[_0x12438d(0x37e)](_0x11b27d))!=null&&_0x1143cd[_0x12438d(0x152)](_0x4f3aff)||(_0x5a58c0=(_0x264640=this[_0x12438d(0x352)]['get'](_0x362685))==null?void 0x0:_0x264640[_0x12438d(0x37e)](_0x11b27d))==null||_0x5a58c0['set'](_0x4f3aff,{}),this[_0x12438d(0x352)][_0x12438d(0x37e)](_0x362685)[_0x12438d(0x37e)](_0x11b27d)[_0x12438d(0x37e)](_0x4f3aff);}['_ensurePivotItemRenderValueMatrixCache'](_0x5d571e,_0x5008db){const _0x257470=_0x2730a7;var _0x213a75,_0x131721;return this[_0x257470(0x20d)]['has'](_0x5d571e)||this[_0x257470(0x20d)]['set'](_0x5d571e,new Map()),(_0x213a75=this[_0x257470(0x20d)][_0x257470(0x37e)](_0x5d571e))!=null&&_0x213a75[_0x257470(0x152)](_0x5008db)||(_0x131721=this['_pivotRenderValueMatrixCache'][_0x257470(0x37e)](_0x5d571e))==null||_0x131721['set'](_0x5008db,new f[(_0x257470(0x1bf))]()),this[_0x257470(0x20d)]['get'](_0x5d571e)[_0x257470(0x37e)](_0x5008db);}['getPivotTableCellData'](_0x2fe143,_0x531da0,_0x473502,_0x27f8c4){const _0x3be8f3=_0x2730a7;var _0x2582e0,_0xf3fc48;const _0x5674b4=(_0xf3fc48=(_0x2582e0=this[_0x3be8f3(0x20d)][_0x3be8f3(0x37e)](_0x2fe143))==null?void 0x0:_0x2582e0[_0x3be8f3(0x37e)](_0x531da0))==null?void 0x0:_0xf3fc48[_0x3be8f3(0x1ea)](_0x473502,_0x27f8c4);if(_0x5674b4!=null)return _0x5674b4;}[_0x2730a7(0x288)](_0x549b7c,_0x4148f5,_0x36ae79,_0x4ce5d5){const _0x5aa3de=_0x2730a7;var _0x18338c;const _0x1de0d0=f['cellToRange'](_0x36ae79,_0x4ce5d5),_0x1680e5=(_0x18338c=this['_pivotRenderInfoCache'][_0x5aa3de(0x37e)](_0x549b7c))==null?void 0x0:_0x18338c[_0x5aa3de(0x37e)](_0x4148f5);return _0x1680e5?Array[_0x5aa3de(0x2d5)](_0x1680e5[_0x5aa3de(0x3fb)]())[_0x5aa3de(0x2a0)](_0x68d802=>{const _0x1e6d33=_0x5aa3de,_0x4b1ced=_0x1680e5[_0x1e6d33(0x37e)](_0x68d802),_0x31f495=_0x4b1ced==null?void 0x0:_0x4b1ced[_0x1e6d33(0x3ef)];return _0x31f495?Object['keys'](_0x31f495)[_0x1e6d33(0x1f3)](_0x457e33=>_0x31f495[_0x457e33][_0x1e6d33(0x1f3)](_0x30ca16=>f[_0x1e6d33(0x267)]['contains'](_0x30ca16,_0x1de0d0))):!0x1;}):void 0x0;}['getIntersectsPivotTable'](_0x1926dc,_0x1232f5,_0x6928de){const _0x3128e4=_0x2730a7;var _0x51fc5c;const _0x3f4671=(_0x51fc5c=this['_pivotRenderInfoCache'][_0x3128e4(0x37e)](_0x1926dc))==null?void 0x0:_0x51fc5c[_0x3128e4(0x37e)](_0x1232f5),_0x41fde6=[];return _0x3f4671&&Array[_0x3128e4(0x2d5)](_0x3f4671[_0x3128e4(0x3fb)]())['forEach'](_0x5e408d=>{const _0x559855=_0x3128e4,_0x4f31b3=_0x3f4671[_0x559855(0x37e)](_0x5e408d),_0x2b3728=_0x4f31b3==null?void 0x0:_0x4f31b3['rangesInfo'];if(_0x2b3728)for(const _0x41ecad of Object['values'](_0x2b3728)){let _0x511494=!0x1;for(const _0x17367c of _0x41ecad)if(f['Rectangle']['intersects'](_0x17367c,_0x6928de)){_0x41fde6[_0x559855(0x27c)](_0x5e408d),_0x511494=!0x0;break;}if(_0x511494)break;}}),_0x41fde6;}[_0x2730a7(0x3ca)](_0x475f53,_0x1f8201){const _0x41c4a0=_0x2730a7;var _0x534368,_0x27492d;return(_0x27492d=(_0x534368=this[_0x41c4a0(0x20d)]['get'](_0x475f53))==null?void 0x0:_0x534368[_0x41c4a0(0x37e)](_0x1f8201))!=null?_0x27492d:new f['ObjectMatrix']();}[_0x2730a7(0x35c)](_0x4287c4,_0x2a8488){const _0x3fed90=_0x2730a7;var _0x1240d3;return(_0x1240d3=this[_0x3fed90(0x352)][_0x3fed90(0x37e)](_0x4287c4))==null?void 0x0:_0x1240d3[_0x3fed90(0x37e)](_0x2a8488);}[_0x2730a7(0x379)](_0x5bf7f6,_0x38b20c,_0x2b0fe6){const _0x1c88ee=_0x2730a7;var _0xb1273,_0x5c877c;return(_0x5c877c=(_0xb1273=this['_pivotRenderInfoCache']['get'](_0x5bf7f6))==null?void 0x0:_0xb1273[_0x1c88ee(0x37e)](_0x38b20c))==null?void 0x0:_0x5c877c[_0x1c88ee(0x37e)](_0x2b0fe6);}['deleteUnitId'](_0x2cf001){const _0x4c38ff=_0x2730a7;this['_pivotRenderInfoCache'][_0x4c38ff(0x21a)](_0x2cf001),this[_0x4c38ff(0x20d)][_0x4c38ff(0x21a)](_0x2cf001);}['markDirty'](_0x2fef35,_0x187487){const _0x48918c=_0x2730a7;this[_0x48918c(0x165)][_0x48918c(0x31a)]({'unitId':_0x2fef35,'subUnitId':_0x187487});}},exports[_0x2730a7(0x2d0)]=mn([Be(0x0,f[_0x2730a7(0x23f)](f['LocaleService'])),Be(0x1,f['Inject'](f[_0x2730a7(0x39c)])),Be(0x2,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x234)])),Be(0x3,f['Inject'](f[_0x2730a7(0x3d8)])),Be(0x4,f['Inject'](U[_0x2730a7(0x218)]))],exports[_0x2730a7(0x2d0)]);var In=Object[_0x2730a7(0x2ad)],Cn=(_0x59a394,_0x11365a,_0x1cab9b,_0x1bc3ae)=>{const _0x1e4360=_0x2730a7;for(var _0x17227a=_0x1bc3ae>0x1?void 0x0:_0x1bc3ae?In(_0x11365a,_0x1cab9b):_0x11365a,_0x5c19cd=_0x59a394[_0x1e4360(0x206)]-0x1,_0x5516c1;_0x5c19cd>=0x0;_0x5c19cd--)(_0x5516c1=_0x59a394[_0x5c19cd])&&(_0x17227a=_0x5516c1(_0x17227a)||_0x17227a);return _0x17227a;},Lt=(_0x51776f,_0x186c9d)=>(_0x3ce9eb,_0x21c26b)=>_0x186c9d(_0x3ce9eb,_0x21c26b,_0x51776f);exports[_0x2730a7(0x29d)]=class extends f[_0x2730a7(0x1af)]{constructor(_0x255cb5,_0x2e6a75){const _0x549e8a=_0x2730a7;super(),V(this,'asyncInterceptor',new f['AsyncInterceptorManager']({'PIVOT_PERFORM_CHECK':re})),V(this,'interceptor',new f[(_0x549e8a(0x3c1))]({'PIVOT_MUTATION_GENERATE':Qt})),(this['_sheetInterceptorService']=_0x255cb5,this['_sheetsPivotTableAdaptorModel']=_0x2e6a75,this[_0x549e8a(0x253)]());}[_0x2730a7(0x253)](){const _0x1e0091=_0x2730a7;this[_0x1e0091(0x24f)]();}[_0x2730a7(0x149)](_0x144612){const _0x2e10ac=_0x2730a7;return this[_0x2e10ac(0x3ab)][_0x2e10ac(0x30a)](re)(!0x1,_0x144612);}[_0x2730a7(0x24f)](){const _0x5b62bc=_0x2730a7;this[_0x5b62bc(0x3f6)](this[_0x5b62bc(0x24b)][_0x5b62bc(0x1d2)](U[_0x5b62bc(0x406)][_0x5b62bc(0x1da)],{'priority':0xc8,'effect':f[_0x5b62bc(0x390)]['Value']|f[_0x5b62bc(0x390)][_0x5b62bc(0x1a8)],'handler':(_0x62860b,_0x2f16e8,_0x387bd7)=>{const _0xcff4f8=_0x5b62bc,{row:_0x254cf2,col:_0x56f9e8,unitId:_0x3b1a69,subUnitId:_0x4edada,workbook:_0x30565d}=_0x2f16e8,_0x534243=this[_0xcff4f8(0x146)][_0xcff4f8(0x2e5)](_0x3b1a69,_0x4edada,_0x254cf2,_0x56f9e8);if(!_0x534243)return _0x387bd7(_0x62860b);const _0x5bb875={..._0x62860b};(_0x534243['v']||_0x534243['v']===0x0)&&(_0x5bb875['v']=_0x534243['v']),_0x534243['t']&&(_0x5bb875['t']=_0x534243['t']);const _0x32556b=(typeof(_0x62860b==null?void 0x0:_0x62860b['s'])==_0xcff4f8(0x321)?_0x30565d[_0xcff4f8(0x2e4)]()[_0xcff4f8(0x37e)](_0x62860b==null?void 0x0:_0x62860b['s']):_0x62860b==null?void 0x0:_0x62860b['s'])||{},_0x20e9aa=_0x30565d['getStyles']()[_0xcff4f8(0x37e)](_0x534243['s']),_0x3ab539={..._0x20e9aa,..._0x32556b};_0x20e9aa!=null&&_0x20e9aa['n']&&(_0x3ab539['n']=_0x20e9aa['n']);const _0x1919c3=_0x30565d[_0xcff4f8(0x2e4)]()[_0xcff4f8(0x385)](_0x3ab539);return _0x5bb875['s']=_0x1919c3,(_0x534243['pbt']===m[_0xcff4f8(0x3db)][_0xcff4f8(0x1d0)]||_0x534243['pbt']===m[_0xcff4f8(0x3db)]['Expand'])&&(_0x5bb875[_0xcff4f8(0x3b3)]={},_0x5bb875[_0xcff4f8(0x3b3)]['leftOffset']=Ro),_0x387bd7(_0x5bb875);}}));}},exports['SheetsPivotTableService']=Cn([Lt(0x0,f[_0x2730a7(0x23f)](U[_0x2730a7(0x3bf)])),Lt(0x1,f['Inject'](exports[_0x2730a7(0x2d0)]))],exports[_0x2730a7(0x29d)]);const Xt={'id':'sheet.mutation.add-group-collection','type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'handler':(_0x345796,_0x4cb188)=>{const _0x3f55b3=_0x2730a7;if(!_0x4cb188)return!0x1;if(!!_0x345796[_0x3f55b3(0x37e)](f['IConfigService'])[_0x3f55b3(0x3fa)](W))return!0x0;const {pivotTableId:_0x2110d7,fieldJSON:_0x2f2ad5,unitId:_0x1dd2aa,subUnitId:_0x47779a}=_0x4cb188;let _0x425ab0;const {dataFieldType:_0x49f480,id:_0x414a15,name:_0x3a60b7,hexCode:_0x1278e0,originalFieldId:_0x30d5be}=_0x2f2ad5;if(_0x49f480===m[_0x3f55b3(0x1c2)][_0x3f55b3(0x38a)]&&(_0x425ab0=new m[(_0x3f55b3(0x300))](_0x414a15,_0x3a60b7,_0x1278e0,_0x30d5be)),!_0x425ab0)return!0x1;const _0x130543=_0x345796[_0x3f55b3(0x37e)](exports[_0x3f55b3(0x2dd)]),_0x745493=_0x130543[_0x3f55b3(0x1c5)](_0x1dd2aa),_0x3ee0a4=_0x745493[_0x3f55b3(0x2ac)](_0x2110d7);_0x745493[_0x3f55b3(0x354)](_0x425ab0),_0x3ee0a4[_0x3f55b3(0x413)](_0x425ab0[_0x3f55b3(0x3a4)](),_0x425ab0['getName']());const _0x567d22=_0x3ee0a4['getFieldById'](_0x425ab0[_0x3f55b3(0x345)]());_0x567d22&&_0x425ab0[_0x3f55b3(0x438)](_0x567d22);const _0x6319d3=_0x130543[_0x3f55b3(0x2f7)](_0x1dd2aa,_0x47779a,_0x2110d7);return _0x130543[_0x3f55b3(0x33f)]({'unitId':_0x1dd2aa,'subUnitId':_0x47779a,'token':_0x2110d7,'type':L[_0x3f55b3(0x289)],'pivotConfig':_0x6319d3}),!0x0;}},eo={'id':_0x2730a7(0x398),'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'handler':(_0x28705c,_0x30c9f7)=>{const _0x412742=_0x2730a7;if(!_0x30c9f7)return!0x1;if(!!_0x28705c['get'](f[_0x412742(0x319)])['getConfig'](W))return!0x0;const {pivotTableId:_0x42dc58,dataFieldId:_0x3d42e6,unitId:_0x49f766,subUnitId:_0xd89b36}=_0x30c9f7,_0x2874e4=_0x28705c[_0x412742(0x37e)](exports['SheetsPivotDataSourceModel']),_0x5500f5=_0x2874e4[_0x412742(0x1c5)](_0x49f766);_0x5500f5['getCollection'](_0x42dc58)[_0x412742(0x1f8)](_0x3d42e6);let _0x31115f=!0x0;for(const _0x222886 in _0x5500f5[_0x412742(0x15e)])if(_0x5500f5['collections'][_0x222886][_0x412742(0x28f)]()[_0x412742(0x25a)](_0x3d42e6)){_0x31115f=!0x1;break;}_0x31115f&&_0x5500f5[_0x412742(0x386)](_0x3d42e6);const _0x24c4af=_0x2874e4[_0x412742(0x2f7)](_0x49f766,_0xd89b36,_0x42dc58);return _0x2874e4[_0x412742(0x33f)]({'unitId':_0x49f766,'subUnitId':_0xd89b36,'token':_0x42dc58,'type':L[_0x412742(0x289)],'pivotConfig':_0x24c4af}),!0x0;}};function qe(_0x5b2666,_0x1b8b7a){const _0x2f6459=_0x2730a7;switch(_0x1b8b7a){case m[_0x2f6459(0x1fb)]['Value']:return _0x5b2666[_0x2f6459(0x297)];case m[_0x2f6459(0x1fb)][_0x2f6459(0x41b)]:return _0x5b2666[_0x2f6459(0x246)];case m[_0x2f6459(0x1fb)][_0x2f6459(0x1a6)]:return _0x5b2666[_0x2f6459(0x428)];case m[_0x2f6459(0x1fb)][_0x2f6459(0x1be)]:return _0x5b2666[_0x2f6459(0x265)];default:return[];}}function be(_0x52df19,_0x31eb5b){const _0x101566=_0x2730a7;return _0x52df19[_0x101566(0x2be)][_0x31eb5b]||_0x52df19[_0x101566(0x38c)][_0x31eb5b];}function Sn(_0x162979,_0x4f5827){const _0x3435bb=_0x2730a7,{area:_0x197a1d,fieldJson:_0x40c9cc,index:_0x37c582}=_0x4f5827;_0x197a1d===m['PivotTableFiledAreaEnum'][_0x3435bb(0x2c9)]?_0x162979[_0x3435bb(0x2be)][_0x40c9cc['id']]=_0x40c9cc:_0x162979[_0x3435bb(0x38c)][_0x40c9cc['id']]=_0x40c9cc,qe(_0x162979,_0x197a1d)[_0x3435bb(0x3f2)](_0x37c582,0x0,_0x40c9cc['id']);}function Pn(_0x301e20,_0x3869f1){const _0x2475bc=_0x2730a7,{area:_0x1ff6bb,fieldId:_0x572cca,index:_0x3f8b36}=_0x3869f1;_0x1ff6bb===m[_0x2475bc(0x1fb)][_0x2475bc(0x2c9)]?delete _0x301e20[_0x2475bc(0x2be)][_0x572cca]:delete _0x301e20[_0x2475bc(0x38c)][_0x572cca],qe(_0x301e20,_0x1ff6bb)[_0x2475bc(0x3f2)](_0x3f8b36,0x1);}function bn(_0x2b73a8,_0x444011){const {fieldId:_0x5e2ef7,name:_0x31e7a8}=_0x444011,_0x5d1a59=be(_0x2b73a8,_0x5e2ef7);_0x5d1a59&&(_0x5d1a59['displayName']=_0x31e7a8);}function Tn(_0x1c8a6f,_0x456bd1){const _0x4fa8e4=_0x2730a7,{fieldId:_0x285390,collapse:_0x101592,item:_0xa31b8f}=_0x456bd1;_0xa31b8f!==void 0x0?(_0x1c8a6f[_0x4fa8e4(0x2b3)][_0x285390]=_0x1c8a6f[_0x4fa8e4(0x2b3)][_0x285390]||{},_0x1c8a6f[_0x4fa8e4(0x2b3)][_0x285390][_0xa31b8f]=_0x101592):_0x1c8a6f['collapseInfo'][_0x285390]=_0x101592;}function yn(_0xb920a8,_0xf6b1c3){const _0x35023e=_0x2730a7,{fieldId:_0x4bc1ec,format:_0x544bad}=_0xf6b1c3,_0x16bd73=be(_0xb920a8,_0x4bc1ec);_0x16bd73&&(_0x16bd73[_0x35023e(0x28c)]=_0x544bad);}function Mn(_0x2ddd53,_0x425953){const _0x5ac787=_0x2730a7,{fieldId:_0x342a35,filterInfo:_0x155b81}=_0x425953,_0x1b0c68=be(_0x2ddd53,_0x342a35);_0x1b0c68&&(_0x1b0c68[_0x5ac787(0x366)]=_0x155b81);}function Fn(_0xe4f152,_0x4b6ad0){const _0x5b2273=_0x2730a7,{fieldId:_0x290a90,filterInfo:_0x2bcb32}=_0x4b6ad0,_0x244eee=_0xe4f152['valueFilter'][_0x5b2273(0x236)](_0x84b58=>_0x84b58[_0x5b2273(0x261)]!==_0x290a90);_0x2bcb32&&_0x244eee[_0x5b2273(0x27c)]({'fieldId':_0x290a90,'filterInfo':_0x2bcb32}),_0xe4f152[_0x5b2273(0x138)]=_0x244eee;}function wn(_0x54e958,_0x1c4567){const _0x37476f=_0x2730a7,{fieldId:_0x556cb3,subtotalType:_0x36b3bf}=_0x1c4567,_0x23d423=be(_0x54e958,_0x556cb3);_0x23d423&&(_0x23d423[_0x37476f(0x421)]=_0x36b3bf);}function _n(_0x586b12,_0x5a4b11){const _0x3cd80f=_0x2730a7,{fieldId:_0x410781,oldArea:_0x2826bd,area:_0x5c1701,oldIndex:_0x1ccf04,index:_0x3a73b3}=_0x5a4b11,_0x2c4b61=_0x2826bd!==m[_0x3cd80f(0x1fb)][_0x3cd80f(0x2c9)]&&_0x5c1701===m[_0x3cd80f(0x1fb)][_0x3cd80f(0x2c9)],_0x59afb5=_0x2826bd===m[_0x3cd80f(0x1fb)][_0x3cd80f(0x2c9)]&&_0x5c1701!==m[_0x3cd80f(0x1fb)]['Value'];if(_0x2c4b61||_0x59afb5){const _0x2a53b5=be(_0x586b12,_0x410781);_0x2a53b5&&(_0x2c4b61?(delete _0x586b12[_0x3cd80f(0x38c)][_0x410781],_0x586b12[_0x3cd80f(0x2be)][_0x410781]=_0x2a53b5):(delete _0x586b12[_0x3cd80f(0x2be)][_0x410781],_0x586b12[_0x3cd80f(0x38c)][_0x410781]=_0x2a53b5));}const _0xab0fd4=qe(_0x586b12,_0x2826bd),_0x1652ba=qe(_0x586b12,_0x5c1701);_0xab0fd4['splice'](_0x1ccf04,0x1),_0x1652ba[_0x3cd80f(0x3f2)](_0x3a73b3,0x0,_0x410781);}function Rn(_0x35055e,_0x13a946){const _0x8deaff=_0x2730a7,{valuePosition:_0x33dee5,index:_0x47f6eb}=_0x13a946;_0x35055e[_0x8deaff(0x419)]=_0x33dee5,_0x35055e['valueIndex']=_0x47f6eb;}function Dn(_0x5a5c50,_0x294a21){const _0x72c909=_0x2730a7,{tableFieldId:_0x5dd451,sourceName:_0x23cd9b,dataFieldId:_0x1b97e6}=_0x294a21,_0x374e8d=be(_0x5a5c50,_0x5dd451);_0x374e8d&&(_0x374e8d[_0x72c909(0x1ae)]=_0x23cd9b,_0x374e8d[_0x72c909(0x214)]=_0x1b97e6);}function En(_0x5ba14a,_0x30909a){const _0x2b220e=_0x2730a7,{fieldId:_0x3ff2ec,sortInfo:_0xd09891}=_0x30909a,_0x403c12=be(_0x5ba14a,_0x3ff2ec);_0x403c12&&(_0x403c12[_0x2b220e(0x439)]=_0xd09891);}function Nn(_0x886610,_0x15b818){const _0x474c46=_0x2730a7,{options:_0x5883a8}=_0x15b818;_0x886610[_0x474c46(0x2de)]={..._0x886610[_0x474c46(0x2de)],..._0x5883a8};}const it={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x1ca),'handler'(_0x471815,_0x9aaea4){const _0x141077=_0x2730a7;if(!_0x9aaea4)return!0x1;if(!!_0x471815['get'](f[_0x141077(0x319)])[_0x141077(0x3fa)](W))return!0x0;const _0x47ab7e=_0x471815['get'](exports[_0x141077(0x2dd)]),{pivotTableId:_0x32359d,fieldJson:_0x464372,area:_0x3c6fbe,index:_0x22223e,unitId:_0x22c77e,subUnitId:_0x5e5e95}=_0x9aaea4,_0x1a20ec=_0x47ab7e['getPivotTableInstance'](_0x32359d);if(!_0x1a20ec)return!0x1;let _0x58d21a;_0x3c6fbe===m[_0x141077(0x1fb)][_0x141077(0x2c9)]?_0x58d21a=m[_0x141077(0x197)](_0x464372):_0x58d21a=m[_0x141077(0x28d)](_0x464372),_0x1a20ec[_0x141077(0x413)](_0x58d21a,_0x3c6fbe,_0x22223e);const _0x4c9c3f=_0x47ab7e[_0x141077(0x2cd)](_0x22c77e,_0x5e5e95,_0x32359d);Sn(_0x4c9c3f,_0x9aaea4);const _0x1fef35=_0x47ab7e[_0x141077(0x2f7)](_0x22c77e,_0x5e5e95,_0x32359d);return _0x47ab7e[_0x141077(0x33f)]({'unitId':_0x22c77e,'subUnitId':_0x5e5e95,'token':_0x32359d,'type':L[_0x141077(0x289)],'pivotConfig':_0x1fef35}),!0x0;}},st={'type':f['CommandType'][_0x2730a7(0x430)],'id':_0x2730a7(0x40e),'handler'(_0x1035e1,_0x54ca5d){const _0x3366b8=_0x2730a7;if(!_0x54ca5d)return!0x1;if(!!_0x1035e1[_0x3366b8(0x37e)](f['IConfigService'])[_0x3366b8(0x3fa)](W))return!0x0;const _0x5a7769=_0x1035e1[_0x3366b8(0x37e)](exports[_0x3366b8(0x2dd)]),{pivotTableId:_0x565277,fieldId:_0x4b3534,unitId:_0x3fc35f,subUnitId:_0x5d1dd7}=_0x54ca5d,_0x33881e=_0x5a7769[_0x3366b8(0x1cc)](_0x565277);if(!_0x33881e)return!0x1;_0x33881e['removeField'](_0x4b3534);const _0x31ee77=_0x5a7769['getPivotTableModelConfig'](_0x3fc35f,_0x5d1dd7,_0x565277);Pn(_0x31ee77,_0x54ca5d);const _0x45dc42=_0x5a7769[_0x3366b8(0x2f7)](_0x3fc35f,_0x5d1dd7,_0x565277);return _0x5a7769[_0x3366b8(0x33f)]({'unitId':_0x3fc35f,'subUnitId':_0x5d1dd7,'token':_0x565277,'type':L[_0x3366b8(0x289)],'pivotConfig':_0x45dc42}),!0x0;}},at={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x5d120b,_0x71b6ef){const _0x1964c6=_0x2730a7;if(!_0x71b6ef)return!0x1;if(!!_0x5d120b[_0x1964c6(0x37e)](f[_0x1964c6(0x319)])[_0x1964c6(0x3fa)](W))return!0x0;const _0x3b90b4=_0x5d120b[_0x1964c6(0x37e)](exports[_0x1964c6(0x2dd)]),{unitId:_0xd9b045,subUnitId:_0x2aabd5,pivotTableId:_0x3922d8,fieldId:_0x1babdf,name:_0x14ef78}=_0x71b6ef,_0x5e0d99=_0x3b90b4[_0x1964c6(0x1cc)](_0x3922d8);if(!_0x5e0d99)return!0x1;_0x5e0d99[_0x1964c6(0x201)](_0x1babdf,_0x14ef78);const _0x5dedb9=_0x3b90b4[_0x1964c6(0x2cd)](_0xd9b045,_0x2aabd5,_0x3922d8);return bn(_0x5dedb9,_0x71b6ef),_0x3b90b4[_0x1964c6(0x33f)]({'unitId':_0xd9b045,'subUnitId':_0x2aabd5,'token':_0x3922d8,'type':L[_0x1964c6(0x289)]}),!0x0;}},rt={'type':f['CommandType'][_0x2730a7(0x430)],'id':_0x2730a7(0x408),'handler'(_0x3197f6,_0x529c21){const _0x41db97=_0x2730a7;if(!_0x529c21)return!0x1;if(!!_0x3197f6['get'](f[_0x41db97(0x319)])['getConfig'](W))return!0x0;const _0x30c857=_0x3197f6[_0x41db97(0x37e)](exports[_0x41db97(0x2dd)]),{unitId:_0x2b6383,subUnitId:_0x40b66c,pivotTableId:_0x41f19b,fieldId:_0x2be1e3,collapse:_0x52b367,item:_0x4ca6c3}=_0x529c21,_0x42a0f9=_0x30c857['getPivotTableInstance'](_0x41f19b);if(!_0x42a0f9)return!0x1;_0x42a0f9[_0x41db97(0x38f)](_0x2be1e3,_0x52b367,_0x4ca6c3);const _0x15e914=_0x30c857[_0x41db97(0x2cd)](_0x2b6383,_0x40b66c,_0x41f19b);return Tn(_0x15e914,_0x529c21),_0x30c857['addDirtyPivotTable']({'unitId':_0x2b6383,'subUnitId':_0x40b66c,'token':_0x41f19b,'type':L[_0x41db97(0x289)]}),!0x0;}},lt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':'sheet.mutation.set-pivot-format','handler'(_0x5b25d0,_0x485ddc){const _0x55b1fb=_0x2730a7;if(!_0x485ddc)return!0x1;if(!!_0x5b25d0[_0x55b1fb(0x37e)](f[_0x55b1fb(0x319)])[_0x55b1fb(0x3fa)](W))return!0x0;const _0x2d10f1=_0x5b25d0['get'](exports[_0x55b1fb(0x2dd)]),{unitId:_0x3ed406,subUnitId:_0xf17e7f,pivotTableId:_0xe474ac,fieldId:_0x458f6b,format:_0x515eb0}=_0x485ddc,_0x18e2d0=_0x2d10f1[_0x55b1fb(0x1cc)](_0xe474ac);if(!_0x18e2d0)return!0x1;_0x18e2d0[_0x55b1fb(0x411)](_0x458f6b,_0x515eb0);const _0x481e6f=_0x2d10f1['getPivotTableModelConfig'](_0x3ed406,_0xf17e7f,_0xe474ac);return yn(_0x481e6f,_0x485ddc),_0x2d10f1[_0x55b1fb(0x33f)]({'unitId':_0x3ed406,'subUnitId':_0xf17e7f,'token':_0xe474ac,'type':L[_0x55b1fb(0x289)]}),!0x0;}},ct={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x37a),'handler'(_0x3d0849,_0xa2e091){const _0x245ce8=_0x2730a7;if(!_0xa2e091)return!0x1;if(!!_0x3d0849[_0x245ce8(0x37e)](f[_0x245ce8(0x319)])[_0x245ce8(0x3fa)](W))return!0x0;const _0x464f6e=_0x3d0849['get'](exports[_0x245ce8(0x2dd)]),{unitId:_0x4d61ee,subUnitId:_0x9b0560,pivotTableId:_0xcb8159,fieldId:_0x1bb775,filterInfo:_0x23d9f2}=_0xa2e091,_0x3964d5=_0x464f6e[_0x245ce8(0x1cc)](_0xcb8159);if(!_0x3964d5)return!0x1;_0x3964d5[_0x245ce8(0x1f2)](_0x1bb775,_0x23d9f2);const _0x1ad064=_0x464f6e[_0x245ce8(0x2cd)](_0x4d61ee,_0x9b0560,_0xcb8159);return Mn(_0x1ad064,_0xa2e091),_0x464f6e[_0x245ce8(0x33f)]({'unitId':_0x4d61ee,'subUnitId':_0x9b0560,'token':_0xcb8159,'type':L[_0x245ce8(0x289)]}),!0x0;}},dt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x13a),'handler'(_0x4b4bca,_0x150d4d){const _0x3ef4f9=_0x2730a7;if(!_0x150d4d)return!0x1;if(!!_0x4b4bca['get'](f['IConfigService'])[_0x3ef4f9(0x3fa)](W))return!0x0;const _0x1ac3ff=_0x4b4bca[_0x3ef4f9(0x37e)](exports[_0x3ef4f9(0x2dd)]),{unitId:_0xb192e3,subUnitId:_0x21384c,pivotTableId:_0x2b96cf,options:_0x13c0e6}=_0x150d4d,_0x1501a5=_0x1ac3ff['getPivotTableInstance'](_0x2b96cf);if(!_0x1501a5)return!0x1;_0x1501a5[_0x3ef4f9(0x23e)](_0x13c0e6);const _0x21a8ab=_0x1ac3ff['getPivotTableModelConfig'](_0xb192e3,_0x21384c,_0x2b96cf);return Nn(_0x21a8ab,_0x150d4d),_0x1ac3ff[_0x3ef4f9(0x33f)]({'unitId':_0xb192e3,'subUnitId':_0x21384c,'token':_0x2b96cf,'type':L[_0x3ef4f9(0x289)]}),!0x0;}},ut={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x37f),'handler'(_0x232113,_0x92007c){const _0x27fbee=_0x2730a7;if(!_0x92007c)return!0x1;if(!!_0x232113[_0x27fbee(0x37e)](f[_0x27fbee(0x319)])[_0x27fbee(0x3fa)](W))return!0x0;const _0x1088ab=_0x232113[_0x27fbee(0x37e)](exports[_0x27fbee(0x2dd)]),{unitId:_0x48d8cd,subUnitId:_0x139104,pivotTableId:_0x3b5f93,sortInfo:_0x182bec,fieldId:_0x2f3f08}=_0x92007c,_0x4556b6=_0x1088ab[_0x27fbee(0x1cc)](_0x3b5f93);if(!_0x4556b6)return!0x1;_0x4556b6['setSortInfo'](_0x2f3f08,_0x182bec);const _0x295857=_0x1088ab[_0x27fbee(0x2cd)](_0x48d8cd,_0x139104,_0x3b5f93);return En(_0x295857,_0x92007c),_0x1088ab['addDirtyPivotTable']({'unitId':_0x48d8cd,'subUnitId':_0x139104,'token':_0x3b5f93,'type':L[_0x27fbee(0x289)]}),!0x0;}},gt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x1a3),'handler'(_0x2d9aed,_0x2dfced){const _0x3799df=_0x2730a7;if(!_0x2dfced)return!0x1;if(!!_0x2d9aed[_0x3799df(0x37e)](f[_0x3799df(0x319)])[_0x3799df(0x3fa)](W))return!0x0;const _0xb6ec2b=_0x2d9aed[_0x3799df(0x37e)](exports[_0x3799df(0x2dd)]),{unitId:_0x32e864,subUnitId:_0xf7de21,pivotTableId:_0x2a28f4,fieldId:_0x4a5e07,subtotalType:_0x25a5db}=_0x2dfced,_0x71cae6=_0xb6ec2b[_0x3799df(0x1cc)](_0x2a28f4);if(!_0x71cae6)return!0x1;_0x71cae6[_0x3799df(0x150)](_0x4a5e07,_0x25a5db);const _0x26858b=_0xb6ec2b[_0x3799df(0x2cd)](_0x32e864,_0xf7de21,_0x2a28f4);return wn(_0x26858b,_0x2dfced),_0xb6ec2b['addDirtyPivotTable']({'unitId':_0x32e864,'subUnitId':_0xf7de21,'token':_0x2a28f4,'type':L[_0x3799df(0x289)]}),!0x0;}},ft={'type':f[_0x2730a7(0x3ee)]['MUTATION'],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x5c5939,_0x5efc92){const _0x1c6796=_0x2730a7;if(!_0x5efc92)return!0x1;if(!!_0x5c5939['get'](f[_0x1c6796(0x319)])[_0x1c6796(0x3fa)](W))return!0x0;const _0x599297=_0x5c5939[_0x1c6796(0x37e)](exports['SheetsPivotDataSourceModel']),{unitId:_0x327bf8,subUnitId:_0x39065c,pivotTableId:_0x4eb455,fieldId:_0x42f6f2,filterInfo:_0x28e5bb}=_0x5efc92,_0x20abb8=_0x599297[_0x1c6796(0x1cc)](_0x4eb455);if(!_0x20abb8)return!0x1;_0x20abb8[_0x1c6796(0x2f2)](_0x42f6f2,_0x28e5bb);const _0x5bfbda=_0x599297['getPivotTableModelConfig'](_0x327bf8,_0x39065c,_0x4eb455);return Fn(_0x5bfbda,_0x5efc92),_0x599297['addDirtyPivotTable']({'unitId':_0x327bf8,'subUnitId':_0x39065c,'token':_0x4eb455,'type':L[_0x1c6796(0x289)]}),!0x0;}},vt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':'sheet.mutation.pivot-update-field-position','handler'(_0x1eb6ba,_0x2dac02){const _0xcde600=_0x2730a7;if(!_0x2dac02)return!0x1;if(!!_0x1eb6ba[_0xcde600(0x37e)](f[_0xcde600(0x319)])[_0xcde600(0x3fa)](W))return!0x0;const _0x2b1fe9=_0x1eb6ba['get'](exports[_0xcde600(0x2dd)]),{unitId:_0x4ae4b4,subUnitId:_0x463b91,pivotTableId:_0x56b1d5,area:_0x5cd0f7,index:_0x4a760d,fieldId:_0x52f61a}=_0x2dac02,_0x1aeb32=_0x2b1fe9[_0xcde600(0x1cc)](_0x56b1d5);if(!_0x1aeb32)return!0x1;_0x1aeb32[_0xcde600(0x268)](_0x52f61a,_0x5cd0f7,_0x4a760d);const _0x11f637=_0x2b1fe9[_0xcde600(0x2cd)](_0x4ae4b4,_0x463b91,_0x56b1d5);return _n(_0x11f637,_0x2dac02),_0x2b1fe9[_0xcde600(0x33f)]({'unitId':_0x4ae4b4,'subUnitId':_0x463b91,'token':_0x56b1d5,'type':L[_0xcde600(0x289)]}),!0x0;}},ht={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x3f1),'handler'(_0x413469,_0x30a5a0){const _0x4ad447=_0x2730a7;if(!_0x30a5a0)return!0x1;if(!!_0x413469['get'](f[_0x4ad447(0x319)])[_0x4ad447(0x3fa)](W))return!0x0;const _0xb53aef=_0x413469[_0x4ad447(0x37e)](exports['SheetsPivotDataSourceModel']),{unitId:_0xfef6dd,subUnitId:_0x245633,pivotTableId:_0x2d0241,sourceName:_0x2f6c56,dataFieldId:_0x2ea0cf,tableFieldId:_0x732893}=_0x30a5a0,_0x48bc14=_0xb53aef[_0x4ad447(0x1cc)](_0x2d0241);if(!_0x48bc14)return!0x1;_0x48bc14[_0x4ad447(0x362)](_0x732893,_0x2f6c56,_0x2ea0cf);const _0x3687ef=_0xb53aef[_0x4ad447(0x2cd)](_0xfef6dd,_0x245633,_0x2d0241);return Dn(_0x3687ef,_0x30a5a0),_0xb53aef[_0x4ad447(0x33f)]({'unitId':_0xfef6dd,'subUnitId':_0x245633,'token':_0x2d0241,'type':L[_0x4ad447(0x289)]}),!0x0;}},pt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x140),'handler'(_0x2cbebd,_0x563311){const _0x5bb164=_0x2730a7;if(!_0x563311)return!0x1;if(!!_0x2cbebd[_0x5bb164(0x37e)](f[_0x5bb164(0x319)])['getConfig'](W))return!0x0;const _0x448f46=_0x2cbebd['get'](exports[_0x5bb164(0x2dd)]),{unitId:_0x53cd34,subUnitId:_0x4a429d,pivotTableId:_0x361a40,valuePosition:_0x25eb8d,index:_0x5a5b42}=_0x563311,_0x282470=_0x448f46[_0x5bb164(0x1cc)](_0x361a40);if(!_0x282470)return!0x1;_0x282470[_0x5bb164(0x309)](_0x25eb8d,_0x5a5b42);const _0x4c1852=_0x448f46['getPivotTableModelConfig'](_0x53cd34,_0x4a429d,_0x361a40);return Rn(_0x4c1852,_0x563311),_0x448f46[_0x5bb164(0x33f)]({'unitId':_0x53cd34,'subUnitId':_0x4a429d,'token':_0x361a40,'type':L['Set']}),!0x0;}};function se(_0x3ea351,_0x1b26e6,_0x13a951){const _0xc41902=_0x2730a7,{pivotTableId:_0x4804c7,unitId:_0x115318,subUnitId:_0x2504dc}=_0x1b26e6,_0x197003=[],_0x171ea4=[];for(const _0x55b74b of _0x13a951)switch(_0x55b74b[_0xc41902(0x15f)]){case m[_0xc41902(0x36b)][_0xc41902(0x43a)]:{const {fieldJson:_0xd93f86,area:_0x52af5c,index:_0x5c51cb}=_0x55b74b,_0x1f4b7d={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldJson':_0xd93f86,'area':_0x52af5c,'index':_0x5c51cb},_0x4eb88e={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0xd93f86['id'],'area':_0x52af5c,'index':_0x5c51cb};_0x197003['push']({'id':it['id'],'params':_0x1f4b7d}),_0x171ea4['unshift']({'id':st['id'],'params':_0x4eb88e});}break;case m[_0xc41902(0x36b)][_0xc41902(0x1ba)]:{const {fieldId:_0x58d835,newSubtotalType:_0x394f4f,oldSubtotalType:_0x323b33}=_0x55b74b,_0x2cfa43={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x58d835,'subtotalType':_0x394f4f};_0x197003[_0xc41902(0x27c)]({'id':gt['id'],'params':_0x2cfa43});const _0x499663={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x58d835,'subtotalType':_0x323b33};_0x171ea4[_0xc41902(0x1d8)]({'id':gt['id'],'params':_0x499663});}break;case m['PivotTableChangeTypeEnum'][_0xc41902(0x2bc)]:{const {fieldId:_0x3d144b,fieldJson:_0xefc3dd,area:_0x9a86f9,index:_0x403dd8}=_0x55b74b,_0x4b4b43={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x3d144b,'index':_0x403dd8,'area':_0x9a86f9};_0x197003[_0xc41902(0x27c)]({'id':st['id'],'params':_0x4b4b43});const _0x81ece8={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldJson':_0xefc3dd,'area':_0x9a86f9,'index':_0x403dd8};_0x171ea4[_0xc41902(0x1d8)]({'id':it['id'],'params':_0x81ece8});}break;case m['PivotTableChangeTypeEnum'][_0xc41902(0x3c2)]:{const {fieldId:_0x2db12e,oldName:_0x368c17,newName:_0x446c80}=_0x55b74b,_0x54dccf={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x2db12e,'name':_0x446c80};_0x197003[_0xc41902(0x27c)]({'id':at['id'],'params':_0x54dccf});const _0x3d67f1={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x2db12e,'name':_0x368c17};_0x171ea4[_0xc41902(0x1d8)]({'id':at['id'],'params':_0x3d67f1});}break;case m[_0xc41902(0x36b)][_0xc41902(0x427)]:{const {fieldId:_0x516ac7,oldFilterInfo:_0x1c0fcc,newFilterInfo:_0x5088dc}=_0x55b74b,_0x30769e={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x516ac7,'filterInfo':_0x5088dc};_0x197003[_0xc41902(0x27c)]({'id':ct['id'],'params':_0x30769e});const _0x2b81ac={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x516ac7,'filterInfo':_0x1c0fcc};_0x171ea4['unshift']({'id':ct['id'],'params':_0x2b81ac});}break;case m[_0xc41902(0x36b)]['SetSortInfo']:{const {fieldId:_0x55ff50,oldSortInfo:_0x2e4453,newSortInfo:_0x9b2fc9}=_0x55b74b,_0x3b1278={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x55ff50,'sortInfo':_0x9b2fc9};_0x197003[_0xc41902(0x27c)]({'id':ut['id'],'params':_0x3b1278});const _0x2d7f32={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x55ff50,'sortInfo':_0x2e4453};_0x171ea4[_0xc41902(0x1d8)]({'id':ut['id'],'params':_0x2d7f32});}break;case m[_0xc41902(0x36b)][_0xc41902(0x26e)]:{const {oldOptions:_0x5a6a20,newOptions:_0x3b714b}=_0x55b74b,_0x3de37e={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'options':_0x3b714b};_0x197003[_0xc41902(0x27c)]({'id':dt['id'],'params':_0x3de37e});const _0x4ed979={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'options':_0x5a6a20};_0x171ea4[_0xc41902(0x1d8)]({'id':dt['id'],'params':_0x4ed979});}break;case m[_0xc41902(0x36b)][_0xc41902(0x18b)]:{const {oldArea:_0x5ca4be,newArea:_0x5d78fb,oldIndex:_0x589600,newIndex:_0x4de18b,fieldId:_0x17580b}=_0x55b74b,_0x6819b8={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x17580b,'area':_0x5d78fb,'index':_0x4de18b,'oldArea':_0x5ca4be,'oldIndex':_0x589600};_0x197003['push']({'id':vt['id'],'params':_0x6819b8});const _0x198cbf={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x17580b,'area':_0x5ca4be,'index':_0x589600,'oldArea':_0x5d78fb,'oldIndex':_0x4de18b};_0x171ea4[_0xc41902(0x1d8)]({'id':vt['id'],'params':_0x198cbf});}break;case m['PivotTableChangeTypeEnum']['UpdateValuePosition']:{const {oldValuePosition:_0x1e9885,newValuePosition:_0x4d319b,oldIndex:_0x18c59b,newIndex:_0x2955a1}=_0x55b74b,_0x5f782c={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'valuePosition':_0x4d319b,'index':_0x2955a1};_0x197003['push']({'id':pt['id'],'params':_0x5f782c});const _0x22cd45={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'valuePosition':_0x1e9885,'index':_0x18c59b};_0x171ea4['unshift']({'id':pt['id'],'params':_0x22cd45});}break;case m[_0xc41902(0x36b)]['SetCollapse']:{const {fieldId:_0x29f495,collapse:_0x333f13,item:_0x101446}=_0x55b74b,_0x204823={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x29f495,'collapse':_0x333f13,'item':_0x101446};_0x197003[_0xc41902(0x27c)]({'id':rt['id'],'params':_0x204823});const _0xb40397={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x29f495,'collapse':!_0x333f13,'item':_0x101446};_0x171ea4['unshift']({'id':rt['id'],'params':_0xb40397});}break;case m[_0xc41902(0x36b)][_0xc41902(0x442)]:{const {newFormat:_0x31856d,oldFormat:_0x2a5dd8,fieldId:_0x5f2f10}=_0x55b74b,_0x22e565={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x5f2f10,'format':_0x31856d};_0x197003[_0xc41902(0x27c)]({'id':lt['id'],'params':_0x22e565});const _0x207bdb={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x5f2f10,'format':_0x2a5dd8};_0x171ea4[_0xc41902(0x1d8)]({'id':lt['id'],'params':_0x207bdb});}break;case m[_0xc41902(0x36b)][_0xc41902(0x1ec)]:{const {tableFieldId:_0x32f47c,oldSourceName:_0x25b3a3,newSourceName:_0x1d12b1,oldDataFieldId:_0x18a2a2,newDataFieldId:_0x316544}=_0x55b74b,_0x41778c={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'tableFieldId':_0x32f47c,'sourceName':_0x1d12b1,'dataFieldId':_0x316544};_0x197003[_0xc41902(0x27c)]({'id':ht['id'],'params':_0x41778c});const _0x2e2bda={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'tableFieldId':_0x32f47c,'sourceName':_0x25b3a3,'dataFieldId':_0x18a2a2};_0x171ea4['unshift']({'id':ht['id'],'params':_0x2e2bda});}break;case m['PivotTableChangeTypeEnum'][_0xc41902(0x238)]:{const {fieldId:_0x440e2d,filterInfo:_0x43f655,oldFilterInfo:_0x3783b6}=_0x55b74b,_0x2461ef={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x440e2d,'filterInfo':_0x43f655};_0x197003[_0xc41902(0x27c)]({'id':ft['id'],'params':_0x2461ef});const _0x502b92={'unitId':_0x115318,'subUnitId':_0x2504dc,'pivotTableId':_0x4804c7,'fieldId':_0x440e2d,'filterInfo':_0x3783b6};_0x171ea4[_0xc41902(0x1d8)]({'id':ft['id'],'params':_0x502b92});}}return{'redos':_0x197003,'undos':_0x171ea4};}function ge(_0x5c97de,_0x107b89){const _0x1425ae=_0x2730a7;var _0x30c855;const _0x23b3a4=_0x5c97de[_0x1425ae(0x37e)](exports[_0x1425ae(0x29d)]),{cellInfo:_0x49382b,view:_0x2d763d,isEmpty:_0x23077c}=_0x107b89;return(_0x30c855=_0x23b3a4[_0x1425ae(0x3ea)][_0x1425ae(0x21c)](Qt)(Ot,{'cellInfo':_0x49382b,'view':_0x2d763d,'isEmpty':_0x23077c}))!=null?_0x30c855:Ot;}const to={'type':f['CommandType'][_0x2730a7(0x1ad)],'id':_0x2730a7(0x436),async 'handler'(_0x2d160a,_0x48006d){const _0x31d90b=_0x2730a7;if(!_0x48006d)return!0x1;const _0x824538=_0x2d160a[_0x31d90b(0x37e)](f['ICommandService']),_0x45da74=_0x2d160a['get'](exports[_0x31d90b(0x42d)]),_0x4e04a8=_0x2d160a[_0x31d90b(0x37e)](f[_0x31d90b(0x377)]),{pivotTableId:_0x2afc6d,dataFieldId:_0x18e8e2,fieldArea:_0x1b7875,index:_0x9c1758,unitId:_0x2ea446,subUnitId:_0x465f8d}=_0x48006d,_0x2b3689=(await _0x45da74[_0x31d90b(0x1f4)]({'unitId':_0x2ea446,'subUnitId':_0x465f8d,'pivotTableId':_0x2afc6d,'params':{'type':B[_0x31d90b(0x16b)],'addPivotField':{'dataFieldId':_0x18e8e2,'fieldArea':_0x1b7875,'index':_0x9c1758}}}))[_0x31d90b(0x314)][_0x31d90b(0x3c5)];if(!_0x2b3689)return!0x1;const {view:_0x56217d,changesets:_0x3c11ac,isEmpty:_0x341214,pivotTableConfig:_0x57a31a,shouldBeAddedGroupJSON:_0x5bb379}=_0x2b3689,_0x3f7aa3=_0x57a31a[_0x31d90b(0x1f5)],_0x189a5e=new m[(_0x31d90b(0x3e3))]();_0x189a5e[_0x31d90b(0x306)](_0x56217d);const _0x30b8a9={'cellInfo':_0x3f7aa3,'view':_0x189a5e,'isEmpty':_0x341214};if(!await _0x2d160a[_0x31d90b(0x37e)](exports[_0x31d90b(0x29d)])[_0x31d90b(0x3ab)][_0x31d90b(0x30a)](re)(!0x0,_0x30b8a9))return!0x1;const _0x4da597=ce(_0x2d160a,_0x189a5e,_0x3f7aa3,_0x341214),_0x4889f1=ge(_0x2d160a,_0x30b8a9),{undos:_0x432ac2,redos:_0xefe839}=se(_0x824538,{'pivotTableId':_0x2afc6d,'unitId':_0x2ea446,'subUnitId':_0x465f8d},_0x3c11ac);return _0x5bb379&&(_0xefe839[_0x31d90b(0x1d8)]({'id':Xt['id'],'params':{'pivotTableId':_0x2afc6d,'fieldJSON':_0x5bb379,'unitId':_0x2ea446,'subUnitId':_0x465f8d}}),_0x432ac2[_0x31d90b(0x27c)]({'id':eo['id'],'params':{'pivotTableId':_0x2afc6d,'dataFieldId':_0x5bb379['id'],'unitId':_0x2ea446,'subUnitId':_0x465f8d}})),f[_0x31d90b(0x391)]([..._0x4da597[_0x31d90b(0x191)],..._0x4889f1[_0x31d90b(0x191)],..._0xefe839],_0x824538),_0x4e04a8[_0x31d90b(0x14a)]({'unitID':_0x2ea446,'redoMutations':[..._0x4da597[_0x31d90b(0x191)],..._0x4889f1[_0x31d90b(0x191)],..._0xefe839],'undoMutations':[..._0x4da597[_0x31d90b(0x3d3)],..._0x4889f1[_0x31d90b(0x3d3)],..._0x432ac2]}),!0x0;}},An=()=>typeof process<'u'&&process['versions']!=null&&process[_0x2730a7(0x36c)]['node']!=null,_e={'type':f[_0x2730a7(0x3ee)]['MUTATION'],'id':_0x2730a7(0x260),'handler'(_0x12a53d,_0x21d1b6){const _0x1fc5f5=_0x2730a7;var _0x415cfd;if(!_0x21d1b6)return!0x1;const _0xbdf71b=_0x12a53d[_0x1fc5f5(0x37e)](f[_0x1fc5f5(0x319)]);if(!!_0xbdf71b[_0x1fc5f5(0x3fa)](W))return!0x0;const _0x1075e4=_0x12a53d['get'](f[_0x1fc5f5(0x3d8)]),_0x3b6dcb=_0x12a53d[_0x1fc5f5(0x37e)](exports[_0x1fc5f5(0x2dd)]),{pivotTableId:_0x5c97f7,pivotTableConfig:_0x1087f3,collectionConfig:_0x4188ba,unitId:_0x3f870f,subUnitId:_0xc7b367}=_0x21d1b6,{sourceRangeInfo:_0x352ac2,fieldsConfig:_0x368591,targetCellInfo:_0x2bb5e9}=_0x1087f3,_0x3b8f62=_0x1075e4[_0x1fc5f5(0x35b)](_0x3f870f);if(!_0x3b8f62||!_0x3b8f62['getSheetBySheetId'](_0xc7b367))return!0x1;if(!An()){let _0x474e78=0x0;_0x3b8f62[_0x1fc5f5(0x204)]()[_0x1fc5f5(0x295)](_0x3c7d4c=>{const _0x470384=_0x1fc5f5;var _0x2bafcd,_0x4fd97f;_0x474e78+=(_0x4fd97f=(_0x2bafcd=_0x3b6dcb[_0x470384(0x33d)](_0x3f870f,_0x3c7d4c['getSheetId']()))==null?void 0x0:_0x2bafcd[_0x470384(0x37b)])!=null?_0x4fd97f:0x0;});const _0x1f76b4=(_0x415cfd=_0xbdf71b['getConfig'](ue[_0x1fc5f5(0x17b)]))!=null?_0x415cfd:{},{ls:_0x29bb8f,pbk:_0xc947b0}=_0x1f76b4;if(!Et(_0x29bb8f,_0xc947b0))throw new f[(_0x1fc5f5(0x193))]('limit\x20pivot');const _0x179e29=St(It,_0x29bb8f,_0xc947b0)[_0x1fc5f5(0x3b4)];if(_0x474e78>=_0x179e29)throw new f['CustomCommandExecutionError'](_0x1fc5f5(0x270));}if(!_0x4188ba||!_0x368591)return!0x1;const {collection:_0x850edf,updateDataFieldList:_0x111d72}=_0x3b6dcb[_0x1fc5f5(0x43e)](_0x5c97f7,_0x4188ba,_0x352ac2,_0x2bb5e9);_0x3b6dcb[_0x1fc5f5(0x271)](_0x850edf,_0x111d72,_0x352ac2);const _0x182281=new m['PivotTable'](_0x850edf,void 0x0,_0x5c97f7);_0x182281[_0x1fc5f5(0x313)](_0x368591);const _0x1deb57=JSON['parse'](JSON[_0x1fc5f5(0x34e)](_0x1087f3));return _0x3b6dcb[_0x1fc5f5(0x1b2)](_0x3f870f,_0xc7b367,_0x5c97f7,_0x182281,_0x1deb57),_0x3b6dcb['addDirtyPivotTable']({'unitId':_0x3f870f,'subUnitId':_0xc7b367,'token':_0x5c97f7,'type':L[_0x1fc5f5(0x2a8)],'pivotConfig':_0x1deb57}),!0x0;}},oo={'type':f['CommandType'][_0x2730a7(0x1ad)],'id':_0x2730a7(0x369),async 'handler'(_0x4be918,_0x1d3b8a){const _0x2f1064=_0x2730a7;if(!_0x1d3b8a)return!0x1;const {sourceDataInfo:_0x2681c8,pivotTableConfig:_0x2226e0}=_0x1d3b8a;if(!_0x2681c8||!_0x2226e0)return!0x1;const {unitId:_0x1c79fc,subUnitId:_0x49ac4a,range:_0x443711}=_0x2681c8,_0x2ec8bb=_0x4be918[_0x2f1064(0x37e)](f[_0x2f1064(0x3d8)]),_0x3de68d=_0x4be918[_0x2f1064(0x37e)](exports['SheetsPivotRPCService']),_0x1fc474=_0x4be918[_0x2f1064(0x37e)](f[_0x2f1064(0x169)]),_0x55fe1e=_0x4be918[_0x2f1064(0x37e)](f[_0x2f1064(0x178)]),_0x5000d6=_0x2ec8bb[_0x2f1064(0x35b)](_0x1c79fc);if(!_0x5000d6)return!0x1;const _0x4bf564=_0x5000d6[_0x2f1064(0x240)](_0x49ac4a);if(!_0x4bf564)return!0x1;const _0x3ac309=m[_0x2f1064(0x283)](0x8),_0x5811cf=_0x443711||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4bf564[_0x2f1064(0x258)]()-0x1,'endColumn':_0x4bf564[_0x2f1064(0x24c)]()-0x1};_0x5811cf[_0x2f1064(0x392)]=f['RANGE_TYPE'][_0x2f1064(0x2bb)];const _0x245f91=(await _0x3de68d[_0x2f1064(0x1f4)]({'unitId':_0x1c79fc,'subUnitId':_0x49ac4a,'pivotTableId':_0x3ac309,'params':{'type':B['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x1c79fc,'sheetName':_0x4bf564['getName'](),'subUnitId':_0x49ac4a,'range':_0x5811cf},'pivotTableId':_0x3ac309,'pivotTableIndexConfig':_0x2226e0}}}))[_0x2f1064(0x314)][_0x2f1064(0x388)];if(!_0x245f91)return!0x1;const {isEmpty:_0x3df899,fieldsConfig:_0x23c4b6,collectionConfig:_0x183538,changesets:_0x542fda}=_0x245f91,_0x1aa6ee=_0x5000d6['getSheets']()['length'],_0x55e5ed=f[_0x2f1064(0x3ae)]({'rowCount':_0x4bf564[_0x2f1064(0x258)]()-0x1,'columnCount':_0x4bf564[_0x2f1064(0x24c)]()-0x1});_0x55e5ed['id']=f[_0x2f1064(0x1b8)](),_0x55e5ed['name']=_0x5000d6['generateNewSheetName'](''+_0x1fc474['t'](_0x2f1064(0x3ac)));const _0xa7dfb7={'index':_0x1aa6ee,'sheet':_0x55e5ed,'unitId':_0x1c79fc},{redos:_0x1973f5}=se(_0x55fe1e,{'pivotTableId':_0x3ac309,'unitId':_0x1c79fc,'subUnitId':_0x55e5ed['id']},_0x542fda),_0x152754=[{'id':U[_0x2f1064(0x373)]['id'],'params':_0xa7dfb7},{'id':_e['id'],'params':{'unitId':_0x1c79fc,'subUnitId':_0x55e5ed['id'],'pivotTableId':_0x3ac309,'pivotTableConfig':{'isEmpty':_0x3df899,'fieldsConfig':_0x23c4b6,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x1c79fc,'subUnitId':_0x55e5ed['id']},'sourceRangeInfo':{'subUnitId':_0x49ac4a,'unitId':_0x1c79fc,'range':_0x5811cf,'sheetName':_0x4bf564[_0x2f1064(0x162)]()}},'collectionConfig':_0x183538}},..._0x1973f5];return f[_0x2f1064(0x391)](_0x152754,_0x55fe1e),!0x0;}},Ke={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x476e49,_0x3ccc0c){const _0xddb9ae=_0x2730a7;if(!_0x3ccc0c)return!0x1;if(!!_0x476e49[_0xddb9ae(0x37e)](f['IConfigService'])[_0xddb9ae(0x3fa)](W))return!0x0;const {pivotTableId:_0x1a3bd9,unitId:_0x4afabf,subUnitId:_0x1e9626}=_0x3ccc0c,_0x3ceddf=_0x476e49[_0xddb9ae(0x37e)](exports['SheetsPivotDataSourceModel']);return _0x3ceddf[_0xddb9ae(0x2f7)](_0x4afabf,_0x1e9626,_0x1a3bd9)?(_0x3ceddf[_0xddb9ae(0x33f)]({'unitId':_0x4afabf,'subUnitId':_0x1e9626,'token':_0x1a3bd9,'type':L['Delete']}),_0x3ceddf[_0xddb9ae(0x29a)](_0x4afabf,_0x1e9626,_0x1a3bd9),!0x0):!0x1;}},no={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x16c),async 'handler'(_0x3a69ed,_0x4314b7){const _0x20a51b=_0x2730a7;var _0x38ae14,_0x16395a;const _0x446569=_0x3a69ed['get'](f[_0x20a51b(0x178)]),_0x4aac4f=_0x3a69ed[_0x20a51b(0x37e)](f[_0x20a51b(0x3d8)]),_0x46b404=_0x3a69ed['get'](f[_0x20a51b(0x169)]),_0x180252=_0x3a69ed['get'](exports['SheetsPivotRPCService']),_0x413db6=_0x3a69ed[_0x20a51b(0x37e)](f[_0x20a51b(0x377)]),_0x208383=_0x3a69ed[_0x20a51b(0x37e)](exports[_0x20a51b(0x234)]),_0x385839=_0x3a69ed[_0x20a51b(0x37e)](f[_0x20a51b(0x319)]);if(!_0x4314b7)return!0x1;const {pivotTableConfig:_0x545ee4,positionType:_0x1daa57}=_0x4314b7,{targetCellInfo:_0x48180d,sourceRangeInfo:_0x3f3df5}=_0x545ee4,{unitId:_0x485615,subUnitId:_0xd2a92a}=_0x48180d,_0x27ef0=_0x4aac4f[_0x20a51b(0x35b)](_0x485615);if(!_0x27ef0)return!0x1;let _0x3b517d=0x0;_0x27ef0[_0x20a51b(0x204)]()[_0x20a51b(0x295)](_0x3cd97d=>{const _0x505995=_0x20a51b;var _0x415ecf,_0x20c7ab;_0x3b517d+=(_0x20c7ab=(_0x415ecf=_0x208383[_0x505995(0x33d)](_0x485615,_0x3cd97d[_0x505995(0x2e6)]()))==null?void 0x0:_0x415ecf[_0x505995(0x37b)])!=null?_0x20c7ab:0x0;});const _0x2cbd72=(_0x38ae14=_0x385839['getConfig'](ue[_0x20a51b(0x17b)]))!=null?_0x38ae14:{},{ls:_0x267668,pbk:_0x3e7476}=_0x2cbd72;if(!Et(_0x267668,_0x3e7476))return!0x1;const _0x4c17ab=St(It,_0x267668,_0x3e7476)[_0x20a51b(0x3b4)];if(_0x3b517d>=_0x4c17ab)return!0x1;const _0x484700=_0x4314b7[_0x20a51b(0x13d)]||m[_0x20a51b(0x283)](0x8),_0x12300e=(await _0x180252[_0x20a51b(0x1f4)]({'unitId':_0x485615,'subUnitId':_0xd2a92a,'pivotTableId':_0x484700,'params':{'type':B['AddPivotTable'],'addPivotTable':{'sourceRangeInfo':_0x3f3df5,'pivotTableId':_0x484700}}}))['result'][_0x20a51b(0x1b2)];if(!_0x12300e)return!0x1;const {view:_0x272b41,isEmpty:_0x432ac9,fieldsConfig:_0x5e3793,collectionConfig:_0x125885}=_0x12300e,_0x10a498=[],_0x211df2=[];if(_0x1daa57===Mt['New']){const _0x38fa99=_0x27ef0[_0x20a51b(0x204)]()[_0x20a51b(0x206)],_0x12d637=f['mergeWorksheetSnapshotWithDefault']({});_0x12d637['id']=_0x545ee4[_0x20a51b(0x1f5)]['subUnitId'],_0x12d637[_0x20a51b(0x1c6)]=(_0x16395a=_0x545ee4[_0x20a51b(0x1f5)][_0x20a51b(0x176)])!=null?_0x16395a:_0x27ef0[_0x20a51b(0x1f7)](''+_0x46b404['t']('sheets.tabs.sheet'));const _0x5910f9={'index':_0x38fa99,'sheet':_0x12d637,'unitId':_0x485615},_0x56d288=U[_0x20a51b(0x1df)](_0x3a69ed,_0x5910f9);_0x10a498[_0x20a51b(0x27c)]({'id':U[_0x20a51b(0x39f)]['id'],'params':_0x56d288}),_0x211df2[_0x20a51b(0x27c)]({'id':U[_0x20a51b(0x190)]['id'],'params':_0x5910f9});}else{if(!_0x27ef0['getSheetBySheetId'](_0xd2a92a))return!0x1;const _0x10c66f=ce(_0x3a69ed,new m['PivotView'](),_0x48180d,!0x0);_0x211df2[_0x20a51b(0x27c)](..._0x10c66f[_0x20a51b(0x191)]),_0x10a498[_0x20a51b(0x27c)](..._0x10c66f['undos']);const _0x5555e2={'cellInfo':_0x48180d,'view':_0x272b41,'isEmpty':_0x432ac9};if(!await _0x3a69ed[_0x20a51b(0x37e)](exports[_0x20a51b(0x29d)])['asyncInterceptor'][_0x20a51b(0x30a)](re)(!0x0,_0x5555e2))return!0x1;const _0x128451=ge(_0x3a69ed,_0x5555e2);_0x211df2['push'](..._0x128451['redos']),_0x10a498[_0x20a51b(0x27c)](..._0x128451[_0x20a51b(0x3d3)]);}return _0x211df2[_0x20a51b(0x27c)]({'id':_e['id'],'params':{'unitId':_0x48180d[_0x20a51b(0x23c)],'subUnitId':_0x48180d[_0x20a51b(0x394)],'pivotTableId':_0x484700,'pivotTableConfig':{'targetCellInfo':_0x48180d,'sourceRangeInfo':_0x3f3df5,'fieldsConfig':_0x5e3793},'collectionConfig':_0x125885}}),_0x10a498[_0x20a51b(0x1d8)]({'id':Ke['id'],'params':{'unitId':_0x485615,'subUnitId':_0xd2a92a,'pivotTableId':_0x484700}}),f['sequenceExecute'](_0x211df2,_0x446569)&&_0x413db6[_0x20a51b(0x14a)]({'unitID':_0x485615,'undoMutations':_0x10a498,'redoMutations':_0x211df2}),!0x0;}},io={'type':f[_0x2730a7(0x3ee)]['COMMAND'],'id':'sheet.command.move-pivot-field',async 'handler'(_0x2687b7,_0x3af587){const _0x23ed26=_0x2730a7;if(!_0x3af587)return!0x1;const _0x4b43c9=_0x2687b7[_0x23ed26(0x37e)](f[_0x23ed26(0x178)]),_0x3b7b6f=_0x2687b7['get'](exports[_0x23ed26(0x42d)]),_0x35e229=_0x2687b7[_0x23ed26(0x37e)](f[_0x23ed26(0x377)]),{pivotTableId:_0x1730ef,fieldId:_0x590719,area:_0x3d1a54,index:_0x1a4601,unitId:_0x296c52,subUnitId:_0x597d76}=_0x3af587,_0x2664b3=(await _0x3b7b6f[_0x23ed26(0x1f4)]({'unitId':_0x296c52,'subUnitId':_0x597d76,'pivotTableId':_0x1730ef,'params':{'type':B[_0x23ed26(0x3d0)],'movePivotField':{'fieldId':_0x590719,'area':_0x3d1a54,'index':_0x1a4601}}}))[_0x23ed26(0x314)]['movePivotField'];if(!_0x2664b3)return!0x1;const {changesets:_0x463e67,view:_0x378220,isEmpty:_0x1bb2dc,pivotTableConfig:_0x262af5}=_0x2664b3,_0x2627b7=_0x262af5[_0x23ed26(0x1f5)],_0x32d8c0=new m['PivotView']();_0x32d8c0[_0x23ed26(0x306)](_0x378220);const _0xa7749={'cellInfo':_0x2627b7,'view':_0x32d8c0,'isEmpty':_0x1bb2dc};if(!await _0x2687b7[_0x23ed26(0x37e)](exports[_0x23ed26(0x29d)])[_0x23ed26(0x3ab)][_0x23ed26(0x30a)](re)(!0x0,_0xa7749))return!0x1;const _0x1d4365=ce(_0x2687b7,_0x32d8c0,_0x2627b7,_0x1bb2dc),_0x1956a7=ge(_0x2687b7,_0xa7749),{redos:_0x595b6c,undos:_0x1b8e21}=se(_0x4b43c9,{'pivotTableId':_0x1730ef,'unitId':_0x296c52,'subUnitId':_0x597d76},_0x463e67);return f[_0x23ed26(0x391)]([..._0x1d4365[_0x23ed26(0x191)],..._0x1956a7[_0x23ed26(0x191)],..._0x595b6c],_0x4b43c9),_0x35e229[_0x23ed26(0x14a)]({'unitID':_0x296c52,'redoMutations':[..._0x1d4365[_0x23ed26(0x191)],..._0x1956a7[_0x23ed26(0x191)],..._0x595b6c],'undoMutations':[..._0x1d4365[_0x23ed26(0x3d3)],..._0x1956a7[_0x23ed26(0x3d3)],..._0x1b8e21]}),!0x0;}},Fe={'type':f[_0x2730a7(0x3ee)]['MUTATION'],'id':_0x2730a7(0x318),'handler'(_0x4c8b29,_0x51c2b4){const _0x37fbbe=_0x2730a7;if(!_0x51c2b4)return!0x1;if(!!_0x4c8b29[_0x37fbbe(0x37e)](f['IConfigService'])[_0x37fbbe(0x3fa)](W))return!0x0;const {pivotTableId:_0x326dca,targetCellPosition:_0x2898ed,unitId:_0x428177,subUnitId:_0x340172}=_0x51c2b4,_0x19522b=_0x4c8b29[_0x37fbbe(0x37e)](exports[_0x37fbbe(0x2dd)]);if(!_0x19522b[_0x37fbbe(0x1cc)](_0x51c2b4['pivotTableId']))return!0x1;const _0x35c958=_0x19522b[_0x37fbbe(0x3de)](_0x326dca);if(!_0x35c958)return!0x1;const _0x16820f=_0x19522b['getCollection'](_0x35c958[_0x37fbbe(0x23c)],_0x51c2b4[_0x37fbbe(0x13d)]);if(!_0x16820f)return!0x1;const _0x3fe275=_0x19522b[_0x37fbbe(0x2f7)](_0x35c958[_0x37fbbe(0x23c)],_0x35c958[_0x37fbbe(0x394)],_0x326dca);if(!_0x3fe275)return!0x1;const _0x318175=f['Tools'][_0x37fbbe(0x23b)](_0x3fe275);_0x318175[_0x37fbbe(0x1f5)]={'unitId':_0x428177,'subUnitId':_0x340172,'row':_0x2898ed[_0x37fbbe(0x290)],'col':_0x2898ed[_0x37fbbe(0x2c0)]};const _0x16d878=_0x16820f['toJSON']();if(_0x35c958['subUnitId']===_0x340172&&_0x35c958[_0x37fbbe(0x23c)]===_0x428177)_0x19522b[_0x37fbbe(0x3e6)](_0x428177,_0x340172,_0x326dca,_0x318175),_0x19522b['addDirtyPivotTable']({'unitId':_0x428177,'subUnitId':_0x340172,'token':_0x326dca,'type':L[_0x37fbbe(0x289)]});else{_0x19522b['addDirtyPivotTable']({'unitId':_0x35c958[_0x37fbbe(0x23c)],'subUnitId':_0x35c958[_0x37fbbe(0x394)],'token':_0x326dca,'type':L[_0x37fbbe(0x2bf)]}),_0x19522b[_0x37fbbe(0x29a)](_0x35c958[_0x37fbbe(0x23c)],_0x35c958[_0x37fbbe(0x394)],_0x326dca);const _0x3c6e6c=_0x19522b[_0x37fbbe(0x43e)](_0x326dca,_0x16d878,_0x3fe275[_0x37fbbe(0x41d)],_0x318175[_0x37fbbe(0x1f5)]),_0xf4a418=new m[(_0x37fbbe(0x380))](_0x3c6e6c['collection'],void 0x0,_0x326dca);_0xf4a418[_0x37fbbe(0x313)](_0x318175['fieldsConfig']),_0x19522b['addPivotTable'](_0x428177,_0x340172,_0x326dca,_0xf4a418,_0x318175),_0x19522b['addDirtyPivotTable']({'unitId':_0x428177,'subUnitId':_0x340172,'token':_0x326dca,'type':L[_0x37fbbe(0x2a8)],'pivotConfig':_0x318175});}return!0x0;}},so={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x2e1),'handler':(_0x24973f,_0x299aa7)=>{const _0x1eaf5b=_0x2730a7,_0x25155a=_0x24973f[_0x1eaf5b(0x37e)](f['ICommandService']),_0x5e8728=_0x24973f['get'](f[_0x1eaf5b(0x377)]),_0xe80083=_0x24973f['get'](exports['SheetsPivotTableConfigModel']),_0x4cc016=_0x24973f[_0x1eaf5b(0x37e)](f[_0x1eaf5b(0x3d8)]);if(!_0x299aa7)return!0x1;const _0xf554bc=U[_0x1eaf5b(0x1bc)](_0x4cc016);if(!_0xf554bc)return!0x1;const {unitId:_0x11c9f6,subUnitId:_0x25bc23,workbook:_0x402a80}=_0xf554bc,_0x189c9c=_0xe80083[_0x1eaf5b(0x2f7)](_0x299aa7['originTargetInfo'][_0x1eaf5b(0x23c)],_0x299aa7[_0x1eaf5b(0x14f)][_0x1eaf5b(0x394)],_0x299aa7[_0x1eaf5b(0x13d)]);if(!_0x189c9c)return!0x1;const _0x1e51c3=_0x402a80[_0x1eaf5b(0x240)](_0x299aa7[_0x1eaf5b(0x1f5)][_0x1eaf5b(0x394)]);if(!_0x1e51c3)throw new Error(_0x1eaf5b(0x221));const _0x3e3c1b=_0x1e51c3[_0x1eaf5b(0x258)](),_0x5675de=_0x1e51c3['getColumnCount']();if(_0x299aa7['targetCellInfo']['row']>_0x3e3c1b||_0x299aa7[_0x1eaf5b(0x1f5)][_0x1eaf5b(0x2c0)]>_0x5675de)throw new Error(_0x1eaf5b(0x378));const _0x2ee165=[{'id':Fe['id'],'params':{'unitId':_0x11c9f6,'subUnitId':_0x299aa7[_0x1eaf5b(0x1f5)]['subUnitId'],'pivotTableId':_0x299aa7[_0x1eaf5b(0x13d)],'targetCellPosition':{'row':_0x299aa7[_0x1eaf5b(0x1f5)][_0x1eaf5b(0x290)],'col':_0x299aa7[_0x1eaf5b(0x1f5)][_0x1eaf5b(0x2c0)]}}}],_0x3e73c6=[{'id':Fe['id'],'params':{'unitId':_0x11c9f6,'subUnitId':_0x25bc23,'pivotTableId':_0x299aa7[_0x1eaf5b(0x13d)],'targetCellPosition':{'row':_0x189c9c[_0x1eaf5b(0x1f5)]['row'],'col':_0x189c9c[_0x1eaf5b(0x1f5)]['col']}}}];return f[_0x1eaf5b(0x391)](_0x2ee165,_0x25155a)&&_0x5e8728['pushUndoRedo']({'unitID':_0x11c9f6,'undoMutations':_0x3e73c6,'redoMutations':_0x2ee165}),!0x0;}},ao={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x263),async 'handler'(_0x2d029e,_0x4c3ae2){const _0x58285e=_0x2730a7;var _0x3fa5f4;if(!_0x4c3ae2)return!0x1;const _0xb7e0e5=_0x2d029e[_0x58285e(0x37e)](f[_0x58285e(0x3d8)]),_0xadf4a1=U['getSheetCommandTarget'](_0xb7e0e5);if(!_0xadf4a1)return!0x1;const {unitId:_0x15a2fb,subUnitId:_0x1285d4,workbook:_0x472467}=_0xadf4a1,{row:_0xe2504e,col:_0x2aae3b}=_0x4c3ae2,_0x188ecc=_0x2d029e[_0x58285e(0x37e)](exports[_0x58285e(0x2d0)]),_0x1911ff=_0x188ecc[_0x58285e(0x288)](_0x15a2fb,_0x1285d4,_0xe2504e,_0x2aae3b);if(!_0x1911ff)return!0x1;const _0x570b3b=(_0x3fa5f4=_0x188ecc['getPivotItemRenderInfoCache'](_0x15a2fb,_0x1285d4,_0x1911ff))==null?void 0x0:_0x3fa5f4[_0x58285e(0x3a5)];if(!_0x570b3b)return!0x1;const _0x2d36de=_0x2d029e[_0x58285e(0x37e)](exports[_0x58285e(0x234)])[_0x58285e(0x2f7)](_0x15a2fb,_0x1285d4,_0x1911ff);if(!_0x2d36de)return!0x1;const {rowInfo:_0x559c61,colInfo:_0x30cdc1}=_0x570b3b,_0x23503c=_0x559c61[_0xe2504e]['paths'],_0x55a480=_0x30cdc1[_0x2aae3b][_0x58285e(0x3d9)],_0x5f0453=_0x559c61[_0xe2504e][_0x58285e(0x158)],_0x87ac60=_0x30cdc1[_0x2aae3b][_0x58285e(0x158)],_0x4da710=_0x23503c[_0x58285e(0x34b)](_0x55a480),_0x2c3fc7=_0x2d36de['fieldsConfig'][_0x58285e(0x428)]['slice'](0x0,_0x5f0453),_0x58da61=_0x2d36de['fieldsConfig'][_0x58285e(0x265)]['slice'](0x0,_0x87ac60),_0x1487f2=_0x2c3fc7['concat'](_0x58da61),_0x3c3edf=_0x4da710[_0x58285e(0x1d6)]((_0x3a6a56,_0x9fdcf)=>[_0x3a6a56,_0x1487f2[_0x9fdcf]]),_0x107a46=(await _0x2d029e[_0x58285e(0x37e)](exports['SheetsPivotRPCService'])['getPivotDisplayConfig']({'unitId':_0x15a2fb,'subUnitId':_0x1285d4,'pivotTableId':_0x1911ff,'params':{'type':B[_0x58285e(0x230)],'drillDown':{'tuple':_0x3c3edf}}}))[_0x58285e(0x314)]['drillDown'];if(!_0x107a46)return!0x1;const {indexes:_0xcd360,range:_0x10bea9,sourceUnitId:_0x32590b,sourceSubUnitId:_0x110f0f,formatMap:_0x1b0159}=_0x107a46,{startRow:_0x1c5d53,endRow:_0x54fddb,startColumn:_0x416053,endColumn:_0x42a81f}=_0x10bea9,_0x82cebc=new f[(_0x58285e(0x1bf))](),_0x4ebf51=_0x54fddb-_0x1c5d53,_0x2cebd9=_0x42a81f-_0x416053,_0x5851d7={},_0x5cd4f3=U[_0x58285e(0x1bc)](_0xb7e0e5,{'unitId':_0x32590b,'subUnitId':_0x110f0f});if(!_0x5cd4f3)return!0x1;const _0x571f47=oe[_0x58285e(0x244)],_0x4b3c69=oe['subTotalStyle'],_0x3b928f=oe[_0x58285e(0x343)],_0x42fcd6=_0x472467[_0x58285e(0x2e4)]()[_0x58285e(0x385)](_0x571f47),_0xa3e492=_0x472467[_0x58285e(0x2e4)]()[_0x58285e(0x385)](_0x4b3c69),_0x2d6e44=_0x472467[_0x58285e(0x2e4)]()[_0x58285e(0x385)](_0x3b928f),{worksheet:_0x284900}=_0x5cd4f3;let _0x17d9c2=0x0;const _0x30b3e9=0x1;_0xcd360[_0x58285e(0x295)](_0x5e580c=>{const _0xb63711=_0x58285e;for(let _0x2540cf=0x0;_0x2540cf<=_0x42a81f-_0x416053;_0x2540cf++)_0x82cebc[_0xb63711(0x385)](_0x17d9c2,_0x2540cf,_0x284900[_0xb63711(0x3f4)](_0x5e580c+_0x10bea9['startRow']+_0x30b3e9,_0x2540cf));_0x17d9c2++;});for(let _0x42f219=_0x416053;_0x42f219<=_0x42a81f;_0x42f219++){const _0x4a0436=_0x284900[_0x58285e(0x3f4)](_0x1c5d53,_0x42f219);_0x5851d7[_0x1c5d53]||(_0x5851d7[_0x1c5d53]={}),_0x5851d7[_0x1c5d53][_0x42f219]={..._0x4a0436,'s':_0x42fcd6};}let _0x18c7b5=0x1;const _0x1b1070={},_0x43ace5={};_0x82cebc[_0x58285e(0x422)]((_0x194174,_0xcb0b57)=>{const _0x25fc25=_0x58285e;_0xcb0b57[_0x25fc25(0x295)](_0x4c7f3a=>{const _0x5717fc=_0x25fc25,_0x3327bd=_0x82cebc['getValue'](_0x194174,_0x4c7f3a);if(_0x5851d7[_0x18c7b5]||(_0x5851d7[_0x18c7b5]={}),_0x5851d7[_0x18c7b5][_0x4c7f3a]={..._0x3327bd,'s':_0x18c7b5%0x2===0x0?_0x2d6e44:_0xa3e492},_0x1b0159[_0x4c7f3a]&&_0x194174>=0x0){const _0x516905=_0x18c7b5%0x2===0x0;let _0x4439b5=_0x516905?_0x43ace5[_0x4c7f3a]:_0x1b1070[_0x4c7f3a];_0x4439b5||(_0x4439b5=_0x472467['getStyles']()[_0x5717fc(0x385)]({..._0x516905?_0x3b928f:_0x4b3c69,'n':{'pattern':_0x1b0159[_0x4c7f3a]}}),_0x516905?_0x43ace5[_0x4c7f3a]=_0x4439b5:_0x1b1070[_0x4c7f3a]=_0x4439b5),_0x5851d7[_0x18c7b5][_0x4c7f3a]['s']=_0x4439b5;}}),_0x18c7b5++;});const _0x397bf5=new f[(_0x58285e(0x1bf))](_0x5851d7),_0x152be0={};_0x397bf5[_0x58285e(0x24d)]((_0x5c4f91,_0x457144,_0x35658d)=>{_0x152be0[_0x5c4f91]||(_0x152be0[_0x5c4f91]={}),_0x152be0[_0x5c4f91][_0x457144]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x3e41c7=[],_0x2cb963=[],_0x3ff8e5=_0x472467[_0x58285e(0x204)]()[_0x58285e(0x206)],_0x35c9da=f[_0x58285e(0x3ae)]({'rowCount':Math[_0x58285e(0x18f)](f[_0x58285e(0x2c2)],_0x4ebf51+0xa),'columnCount':Math['max'](f[_0x58285e(0x424)],_0x2cebd9+0x5)}),_0x1493b4=_0x2d029e['get'](f[_0x58285e(0x169)]);_0x35c9da['id']=f[_0x58285e(0x1b8)](),_0x35c9da['name']=_0x472467[_0x58285e(0x1f7)](''+_0x1493b4['t']('sheets.tabs.sheet'));const _0x43401c={'index':_0x3ff8e5,'sheet':_0x35c9da,'unitId':_0x15a2fb},_0x579c6d=U[_0x58285e(0x1df)](_0x2d029e,_0x43401c);_0x2cb963[_0x58285e(0x27c)]({'id':U[_0x58285e(0x190)]['id'],'params':_0x43401c}),_0x3e41c7['push']({'id':U[_0x58285e(0x39f)]['id'],'params':_0x579c6d}),_0x2cb963['push']({'id':U['SetRangeValuesMutation']['id'],'params':{'unitId':_0x15a2fb,'subUnitId':_0x35c9da['id'],'cellValue':_0x5851d7}}),_0x3e41c7['unshift']({'id':U[_0x58285e(0x139)]['id'],'params':{'unitId':_0x15a2fb,'subUnitId':_0x35c9da['id'],'cellValue':_0x152be0}});const _0x9af991={'startRow':0x0,'startColumn':0x0,'endRow':_0x18c7b5-0x1,'endColumn':_0x42a81f};_0x2cb963[_0x58285e(0x27c)]({'id':xt[_0x58285e(0x154)]['id'],'params':{'unitId':_0x15a2fb,'subUnitId':_0x35c9da['id'],'range':_0x9af991}}),_0x3e41c7[_0x58285e(0x1d8)]({'id':xt['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x15a2fb,'subUnitId':_0x35c9da['id']}});const _0x139863=_0x2d029e['get'](f[_0x58285e(0x178)]);return f['sequenceExecute'](_0x2cb963,_0x139863)&&_0x2d029e[_0x58285e(0x37e)](f['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x15a2fb,'undoMutations':_0x3e41c7,'redoMutations':_0x2cb963}),!0x0;}},ro={'type':f['CommandType'][_0x2730a7(0x1ad)],'id':_0x2730a7(0x274),async 'handler'(_0x4c0b6c,_0x238073){const _0x36c189=_0x2730a7;if(!_0x238073)return!0x1;const _0x375a15=_0x4c0b6c['get'](f[_0x36c189(0x178)]),_0x35015e=_0x4c0b6c[_0x36c189(0x37e)](exports[_0x36c189(0x42d)]),_0x195768=_0x4c0b6c[_0x36c189(0x37e)](f[_0x36c189(0x377)]),{pivotTableId:_0x3500f8,fieldIds:_0x1f2d59,unitId:_0x283b50,subUnitId:_0x1573a9}=_0x238073,_0xa4c920=(await _0x35015e[_0x36c189(0x1f4)]({'unitId':_0x283b50,'subUnitId':_0x1573a9,'pivotTableId':_0x3500f8,'params':{'type':B[_0x36c189(0x2a4)],'removePivotField':{'fieldIds':_0x1f2d59}}}))['result'][_0x36c189(0x360)];if(!_0xa4c920)return!0x1;const {view:_0x5c95de,changesets:_0x4fc4da,isEmpty:_0x11dab1,pivotTableConfig:_0x728725}=_0xa4c920,_0x37a3ef=_0x728725[_0x36c189(0x1f5)],_0x11758e=new m[(_0x36c189(0x3e3))]();_0x11758e['formJSON'](_0x5c95de);const _0x6a2984={'cellInfo':_0x37a3ef,'view':_0x11758e,'isEmpty':_0x11dab1};if(!await _0x4c0b6c[_0x36c189(0x37e)](exports[_0x36c189(0x29d)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](re)(!0x0,_0x6a2984))return!0x1;const _0x25df1a=ce(_0x4c0b6c,_0x11758e,_0x37a3ef,_0x11dab1),_0x5de470=ge(_0x4c0b6c,_0x6a2984),{redos:_0x2db820,undos:_0x480aa2}=se(_0x375a15,{'pivotTableId':_0x3500f8,'unitId':_0x283b50,'subUnitId':_0x1573a9},_0x4fc4da);return f[_0x36c189(0x391)]([..._0x25df1a[_0x36c189(0x191)],..._0x5de470[_0x36c189(0x191)],..._0x2db820],_0x375a15),_0x195768[_0x36c189(0x14a)]({'unitID':_0x283b50,'redoMutations':[..._0x25df1a[_0x36c189(0x191)],..._0x5de470[_0x36c189(0x191)],..._0x2db820],'undoMutations':[..._0x25df1a[_0x36c189(0x3d3)],..._0x5de470[_0x36c189(0x3d3)],..._0x480aa2]}),!0x0;}},lo={'type':f['CommandType'][_0x2730a7(0x1ad)],'id':_0x2730a7(0x40a),async 'handler'(_0x197f2a,_0x2406bb){const _0x1c3980=_0x2730a7;if(!_0x2406bb)return!0x1;const _0x3485dd=_0x197f2a['get'](f[_0x1c3980(0x178)]),_0x408acf=_0x197f2a[_0x1c3980(0x37e)](f[_0x1c3980(0x377)]),_0x2c4714=_0x197f2a[_0x1c3980(0x37e)](exports[_0x1c3980(0x42d)]),{resetArea:_0x2e4a97,pivotTableId:_0x4cb339,unitId:_0x5635bc,subUnitId:_0x1aea4e}=_0x2406bb,_0xf22a85=(await _0x2c4714[_0x1c3980(0x1f4)]({'unitId':_0x5635bc,'subUnitId':_0x1aea4e,'pivotTableId':_0x4cb339,'params':{'type':B[_0x1c3980(0x3c7)],'resetPivotTable':{'pivotTableId':_0x4cb339,'resetArea':_0x2e4a97}}}))[_0x1c3980(0x314)][_0x1c3980(0x15c)];if(!_0xf22a85)return!0x1;const {changesets:_0x134514}=_0xf22a85,{redos:_0x2fe044,undos:_0x569c49}=se(_0x3485dd,{'pivotTableId':_0x4cb339,'unitId':_0x5635bc,'subUnitId':_0x1aea4e},_0x134514);return f[_0x1c3980(0x391)](_0x2fe044,_0x3485dd),_0x408acf[_0x1c3980(0x14a)]({'unitID':_0x5635bc,'redoMutations':_0x2fe044,'undoMutations':_0x569c49}),!0x0;}},co={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x423),async 'handler'(_0x110a82,_0x465c04){const _0x28eb0d=_0x2730a7,_0x17fe04=_0x110a82['get'](f[_0x28eb0d(0x178)]),_0x1ec592=_0x110a82[_0x28eb0d(0x37e)](exports[_0x28eb0d(0x42d)]),_0x400a81=_0x110a82['get'](exports[_0x28eb0d(0x2d0)]),_0x603b64=_0x110a82[_0x28eb0d(0x37e)](f[_0x28eb0d(0x3d8)]),_0x2fb742=_0x110a82[_0x28eb0d(0x37e)](f[_0x28eb0d(0x169)]),_0x3303a7=_0x110a82[_0x28eb0d(0x37e)](f['IUndoRedoService']);if(!_0x465c04)return!0x1;const {unitId:_0x885a9a,subUnitId:_0x268923,row:_0x20df2d,col:_0x6c1caa,collapse:_0x1895aa}=_0x465c04,_0x5afae9=_0x603b64[_0x28eb0d(0x35b)](_0x885a9a);if(!_0x5afae9||!_0x5afae9['getSheetBySheetId'](_0x268923))return!0x1;const _0x3a8c2e=_0x400a81['getPivotTableIdByCell'](_0x885a9a,_0x268923,_0x20df2d,_0x6c1caa);if(!_0x3a8c2e)return!0x1;const _0x691f4e=_0x400a81[_0x28eb0d(0x379)](_0x885a9a,_0x268923,_0x3a8c2e);if(!_0x691f4e)return!0x1;const _0xa22b70=f[_0x28eb0d(0x325)](_0x20df2d,_0x6c1caa),{rangesInfo:_0x16ff7e,areaInfo:_0x45f51e,headerMap:_0x4b1efb}=_0x691f4e;if(!_0x16ff7e||!_0x45f51e||!_0x4b1efb)return!0x1;const _0x396507=Object[_0x28eb0d(0x3fb)](_0x16ff7e)[_0x28eb0d(0x2a0)](_0x422a2d=>_0x16ff7e[_0x422a2d]['some'](_0x2cef5f=>f[_0x28eb0d(0x267)]['contains'](_0x2cef5f,_0xa22b70)));let _0x256c53;_0x396507===_0x28eb0d(0x38b)?_0x256c53=_0x4b1efb[_0x28eb0d(0x2b6)][_0x6c1caa]:_0x396507===_0x28eb0d(0x375)&&(_0x256c53=_0x4b1efb[_0x28eb0d(0x3c4)][_0x20df2d]);const _0x4aed64=_0x256c53==null?void 0x0:_0x256c53[_0x28eb0d(0x175)],_0xde0e63=_0x400a81['getPivotTableCellData'](_0x885a9a,_0x268923,_0x20df2d,_0x6c1caa);let _0x362b45=_0xde0e63==null?void 0x0:_0xde0e63['v'];if(_0x362b45===_0x2fb742['t'](_0x28eb0d(0x1c3))&&(_0x362b45=m[_0x28eb0d(0x279)][_0x28eb0d(0x3b7)]),_0x362b45==null||!_0x3a8c2e||!_0x4aed64)return!0x1;const _0x14ae0e=await _0x1ec592[_0x28eb0d(0x1f4)]({'unitId':_0x885a9a,'subUnitId':_0x268923,'pivotTableId':_0x3a8c2e,'params':{'type':B[_0x28eb0d(0x17d)],'setPivotCollapse':{'tableFieldId':_0x4aed64,'collapse':_0x1895aa,'item':_0x362b45}}}),_0x5403bc=_0x14ae0e==null?void 0x0:_0x14ae0e[_0x28eb0d(0x314)][_0x28eb0d(0x264)];if(!_0x5403bc)return!0x1;const {view:_0x39a2f6,pivotTableConfig:_0x1e73b7,isEmpty:_0xc3eb3d,changesets:_0x4fde00}=_0x5403bc,_0x53ac4c=new m['PivotView']();_0x53ac4c['formJSON'](_0x39a2f6);const _0x12f381=_0x1e73b7[_0x28eb0d(0x1f5)],_0xd78823={'cellInfo':_0x12f381,'view':_0x53ac4c,'isEmpty':_0xc3eb3d};if(!await _0x110a82['get'](exports[_0x28eb0d(0x29d)])[_0x28eb0d(0x3ab)][_0x28eb0d(0x30a)](re)(!0x0,_0xd78823))return!0x1;const _0x3076c3=ce(_0x110a82,_0x53ac4c,_0x12f381,_0xc3eb3d),_0x1b86a3=ge(_0x110a82,_0xd78823),{redos:_0x3c3396,undos:_0x51e189}=se(_0x17fe04,{'pivotTableId':_0x3a8c2e,'unitId':_0x885a9a,'subUnitId':_0x268923},_0x4fde00);return f[_0x28eb0d(0x391)]([..._0x3076c3['redos'],..._0x1b86a3[_0x28eb0d(0x191)],..._0x3c3396],_0x17fe04),_0x3303a7[_0x28eb0d(0x14a)]({'unitID':_0x885a9a,'redoMutations':[..._0x3076c3[_0x28eb0d(0x191)],..._0x1b86a3[_0x28eb0d(0x191)],..._0x3c3396],'undoMutations':[..._0x3076c3[_0x28eb0d(0x3d3)],..._0x1b86a3[_0x28eb0d(0x3d3)],..._0x51e189]}),!0x0;}},uo={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x1a7),async 'handler'(_0x3288dd,_0x2e4086){const _0x42ef4c=_0x2730a7;if(!_0x2e4086)return!0x1;const _0x120165=_0x3288dd['get'](f[_0x42ef4c(0x178)]),_0x4bb257=_0x3288dd[_0x42ef4c(0x37e)](f[_0x42ef4c(0x377)]),_0x3178cc=_0x3288dd[_0x42ef4c(0x37e)](exports[_0x42ef4c(0x42d)]),{pivotTableConfig:_0x391e88,pivotTableId:_0x30950b,unitId:_0xa148a0,subUnitId:_0x26f6cd}=_0x2e4086,_0x443cf6=(await _0x3178cc[_0x42ef4c(0x1f4)]({'unitId':_0xa148a0,'subUnitId':_0x26f6cd,'pivotTableId':_0x30950b,'params':{'type':B[_0x42ef4c(0x32b)],'setPivotTableConfig':{'pivotTableId':_0x30950b,'pivotTableConfig':_0x391e88}}}))[_0x42ef4c(0x314)]['setPivotTableConfig'];if(!_0x443cf6)return!0x1;const {changesets:_0x3c85d5}=_0x443cf6,{redos:_0x361f9a,undos:_0x173481}=se(_0x120165,{'pivotTableId':_0x30950b,'unitId':_0xa148a0,'subUnitId':_0x26f6cd},_0x3c85d5);return f[_0x42ef4c(0x391)](_0x361f9a,_0x120165),_0x4bb257[_0x42ef4c(0x14a)]({'unitID':_0xa148a0,'redoMutations':_0x361f9a,'undoMutations':_0x173481}),!0x0;}},go={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x27e),async 'handler'(_0x2cae9c,_0xc3e5c0){const _0x560497=_0x2730a7;if(!_0xc3e5c0)return!0x1;const _0x33d3df=_0x2cae9c[_0x560497(0x37e)](f[_0x560497(0x178)]),{pivotTableId:_0x6fddac,tableFieldId:_0x41c431,items:_0x7b23ad,unitId:_0x814dbd,subUnitId:_0x35d891,isAll:_0x19da73}=_0xc3e5c0,_0x6d7d2=_0x2cae9c['get'](exports[_0x560497(0x42d)]),_0x1faf31=_0x2cae9c[_0x560497(0x37e)](f[_0x560497(0x377)]),_0x313de7=(await _0x6d7d2[_0x560497(0x1f4)]({'unitId':_0x814dbd,'subUnitId':_0x35d891,'pivotTableId':_0x6fddac,'params':{'type':B[_0x560497(0x156)],'setPivotFilter':{'tableFieldId':_0x41c431,'items':_0x7b23ad,'isAll':_0x19da73}}}))[_0x560497(0x314)][_0x560497(0x36f)];if(!_0x313de7)return!0x1;const {changesets:_0x442f6c,pivotTableConfig:_0x13ee2c,isEmpty:_0x57a4b6,view:_0x2b0ca2}=_0x313de7,_0x522bcf=_0x13ee2c['targetCellInfo'],_0x25c3d8=new m['PivotView']();_0x25c3d8[_0x560497(0x306)](_0x2b0ca2);const _0x2e86d0={'cellInfo':_0x522bcf,'view':_0x25c3d8,'isEmpty':_0x57a4b6};if(!await _0x2cae9c[_0x560497(0x37e)](exports[_0x560497(0x29d)])[_0x560497(0x3ab)][_0x560497(0x30a)](re)(!0x0,_0x2e86d0))return!0x1;const _0x32be3a=ce(_0x2cae9c,_0x25c3d8,_0x522bcf,_0x57a4b6),_0x1dead5=ge(_0x2cae9c,_0x2e86d0),{undos:_0x59a17a,redos:_0x2eff32}=se(_0x33d3df,{'pivotTableId':_0x6fddac,'unitId':_0x814dbd,'subUnitId':_0x35d891},_0x442f6c);return f['sequenceExecute']([..._0x32be3a[_0x560497(0x191)],..._0x1dead5[_0x560497(0x191)],..._0x2eff32],_0x33d3df),_0x1faf31[_0x560497(0x14a)]({'unitID':_0x814dbd,'redoMutations':[..._0x32be3a[_0x560497(0x191)],..._0x1dead5['redos'],..._0x2eff32],'undoMutations':[..._0x32be3a['undos'],..._0x1dead5[_0x560497(0x3d3)],..._0x59a17a]}),!0x0;}},fo={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x358),async 'handler'(_0x2e9f99,_0xa2455f){const _0x4400fb=_0x2730a7;if(!_0xa2455f)return!0x1;const _0x135864=_0x2e9f99[_0x4400fb(0x37e)](f['ICommandService']),_0x38c723=_0x2e9f99[_0x4400fb(0x37e)](f[_0x4400fb(0x377)]),_0x10c9af=_0x2e9f99[_0x4400fb(0x37e)](exports[_0x4400fb(0x42d)]),{info:_0x5421ce,tableFieldId:_0x35a2da,pivotTableId:_0x5d6ca3,unitId:_0x4b48ac,subUnitId:_0x3531aa}=_0xa2455f,_0x462189=(await _0x10c9af[_0x4400fb(0x1f4)]({'unitId':_0x4b48ac,'subUnitId':_0x3531aa,'pivotTableId':_0x5d6ca3,'params':{'type':B[_0x4400fb(0x431)],'setPivotSort':{'tableFieldId':_0x35a2da,'info':_0x5421ce}}}))[_0x4400fb(0x314)]['setPivotSort'];if(!_0x462189)return!0x1;const {changesets:_0x11bf7f}=_0x462189,{redos:_0x1dd574,undos:_0x3f27b0}=se(_0x135864,{'pivotTableId':_0x5d6ca3,'unitId':_0x4b48ac,'subUnitId':_0x3531aa},_0x11bf7f);return f[_0x4400fb(0x391)](_0x1dd574,_0x135864),_0x38c723[_0x4400fb(0x14a)]({'unitID':_0x4b48ac,'redoMutations':_0x1dd574,'undoMutations':_0x3f27b0}),!0x0;}},vo={'type':f['CommandType'][_0x2730a7(0x1ad)],'id':_0x2730a7(0x21d),async 'handler'(_0x3c142a,_0x45c5f6){const _0x1f3009=_0x2730a7;if(!_0x45c5f6)return!0x1;const _0x7db53=_0x3c142a[_0x1f3009(0x37e)](f['ICommandService']),{pivotTableId:_0x21b44e,fieldId:_0x523762,valueFilterInfo:_0x5b855a,unitId:_0x14188a,subUnitId:_0xaf5e5e}=_0x45c5f6,_0x3f8353=_0x3c142a[_0x1f3009(0x37e)](exports[_0x1f3009(0x42d)]),_0x35b7d3=_0x3c142a[_0x1f3009(0x37e)](f[_0x1f3009(0x377)]),_0x4db378=(await _0x3f8353[_0x1f3009(0x1f4)]({'unitId':_0x14188a,'subUnitId':_0xaf5e5e,'pivotTableId':_0x21b44e,'params':{'type':B[_0x1f3009(0x1b5)],'setValuePivotFilter':{'tableFieldId':_0x523762,'filterInfo':_0x5b855a}}}))[_0x1f3009(0x314)][_0x1f3009(0x1b1)];if(!_0x4db378)return!0x1;const {changesets:_0x250280,pivotTableConfig:_0x183d81,isEmpty:_0x17f0e0,view:_0x7b691d}=_0x4db378,_0xcbb0c=_0x183d81[_0x1f3009(0x1f5)],_0x1f5e13=new m[(_0x1f3009(0x3e3))]();_0x1f5e13[_0x1f3009(0x306)](_0x7b691d);const _0x462185={'cellInfo':_0xcbb0c,'view':_0x1f5e13,'isEmpty':_0x17f0e0};if(!await _0x3c142a[_0x1f3009(0x37e)](exports[_0x1f3009(0x29d)])[_0x1f3009(0x3ab)][_0x1f3009(0x30a)](re)(!0x0,_0x462185))return!0x1;const _0x299df9=ce(_0x3c142a,_0x1f5e13,_0xcbb0c,_0x17f0e0),_0x2cedbc=ge(_0x3c142a,_0x462185),{undos:_0x1c313d,redos:_0x3fc808}=se(_0x7db53,{'pivotTableId':_0x21b44e,'unitId':_0x14188a,'subUnitId':_0xaf5e5e},_0x250280);return f[_0x1f3009(0x391)]([..._0x299df9[_0x1f3009(0x191)],..._0x2cedbc[_0x1f3009(0x191)],..._0x3fc808],_0x7db53),_0x35b7d3['pushUndoRedo']({'unitID':_0x14188a,'redoMutations':[..._0x299df9[_0x1f3009(0x191)],..._0x2cedbc['redos'],..._0x3fc808],'undoMutations':[..._0x299df9[_0x1f3009(0x3d3)],..._0x2cedbc[_0x1f3009(0x3d3)],..._0x1c313d]}),!0x0;}},yt={'id':_0x2730a7(0x1db),'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'handler':(_0x190b80,_0x200eaa)=>{const _0xa598bb=_0x2730a7;if(!_0x200eaa)return!0x1;if(!!_0x190b80[_0xa598bb(0x37e)](f[_0xa598bb(0x319)])[_0xa598bb(0x3fa)](W))return!0x0;const {unitId:_0x3a0ab2,subUnitId:_0xa5007,pivotTableId:_0x148c71,tableFieldId:_0x28e1b2,dateType:_0x313561}=_0x200eaa,_0x380479=_0x190b80[_0xa598bb(0x37e)](exports[_0xa598bb(0x2dd)]),_0x10b881=_0x380479['getPivotTableInstance'](_0x148c71);if(!_0x10b881)return!0x1;const _0x5debf7=_0x10b881[_0xa598bb(0x42e)](_0x28e1b2);if(!_0x5debf7)return!0x1;const _0x3d7328=_0x5debf7[_0xa598bb(0x345)](),_0x3e2bb8=_0x10b881[_0xa598bb(0x14d)](_0x3d7328),_0x10458f=(_0x3e2bb8==null?void 0x0:_0x3e2bb8['getName']())+'\x20'+Zt(_0x190b80,_0x313561);_0x380479['getCollection'](_0x3a0ab2,_0x148c71)['setDisplayName'](_0x5debf7['id'],_0x10458f);const _0x3c8550=_0x10b881[_0xa598bb(0x278)](_0x28e1b2);if(!_0x3c8550)return!0x1;_0x10b881[_0xa598bb(0x201)](_0x3c8550[_0xa598bb(0x3a4)](),_0x10458f),_0x5debf7[_0xa598bb(0x2a1)](_0x313561);const _0x57a09e=_0x380479[_0xa598bb(0x2f7)](_0x3a0ab2,_0xa5007,_0x148c71);return _0x380479[_0xa598bb(0x33f)]({'unitId':_0x3a0ab2,'subUnitId':_0xa5007,'token':_0x148c71,'type':L['Set'],'pivotConfig':_0x57a09e}),!0x0;}},ho={'id':'sheet.command.update-date-group','type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'handler':(_0x19d300,_0x21d34a)=>{const _0x35e694=_0x2730a7;if(!_0x21d34a)return!0x1;const _0x3a11fa=_0x19d300[_0x35e694(0x37e)](f[_0x35e694(0x377)]),{unitId:_0x58ecfc,subUnitId:_0x1d043e,pivotTableId:_0x1b9de0,tableFieldId:_0x3e2016}=_0x21d34a,_0xe0e103=[],_0x5d00d1=[],_0x16ed47=_0x19d300[_0x35e694(0x37e)](exports[_0x35e694(0x234)]),_0x4d25d9=_0x16ed47[_0x35e694(0x2ac)](_0x58ecfc,_0x1b9de0),_0x2a4d06=_0x16ed47[_0x35e694(0x2f7)](_0x58ecfc,_0x1d043e,_0x1b9de0);if(!(_0x2a4d06!=null&&_0x2a4d06[_0x35e694(0x40d)][_0x35e694(0x38c)]))return!0x1;const _0x4eb383=Object[_0x35e694(0x1a4)](_0x2a4d06[_0x35e694(0x40d)][_0x35e694(0x38c)])[_0x35e694(0x2a0)](_0xe48d6=>_0xe48d6['id']===_0x3e2016);if(!_0x4eb383)return!0x1;const _0x5bdb04=_0x4eb383[_0x35e694(0x214)];if(!(_0x4d25d9!=null&&_0x4d25d9[_0x35e694(0x224)]))return!0x1;const _0x4be852=Object['values'](_0x4d25d9==null?void 0x0:_0x4d25d9[_0x35e694(0x224)])[_0x35e694(0x2a0)](_0x34d852=>_0x34d852['id']===_0x5bdb04);if(!_0x4be852)return!0x1;m[_0x35e694(0x202)](_0x4be852)&&_0xe0e103[_0x35e694(0x27c)]({'id':yt['id'],'params':{..._0x21d34a,'dateType':_0x4be852[_0x35e694(0x3aa)]}}),_0x5d00d1[_0x35e694(0x27c)]({'id':yt['id'],'params':{..._0x21d34a}});const _0x109c0f=_0x19d300[_0x35e694(0x37e)](f['ICommandService']);return f['sequenceExecute'](_0x5d00d1,_0x109c0f)&&_0x3a11fa[_0x35e694(0x14a)]({'unitID':_0x58ecfc,'undoMutations':_0xe0e103,'redoMutations':_0x5d00d1}),!0x0;}},po={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0xdf6051,_0x1bd8c6){const _0x393a0e=_0x2730a7;if(!_0x1bd8c6)return!0x1;const _0x33db90=_0xdf6051[_0x393a0e(0x37e)](f['ICommandService']),_0x2c3ebd=_0xdf6051[_0x393a0e(0x37e)](f[_0x393a0e(0x377)]),_0x393938=_0xdf6051[_0x393a0e(0x37e)](exports[_0x393a0e(0x42d)]),{displayName:_0x469ff2,subtotalType:_0x112069,format:_0x2d7873,tableFieldId:_0x1e0a1c,pivotTableId:_0x5ae946,unitId:_0x42635d,subUnitId:_0x4663a5}=_0x1bd8c6,_0x225029=(await _0x393938[_0x393a0e(0x1f4)]({'unitId':_0x42635d,'subUnitId':_0x4663a5,'pivotTableId':_0x5ae946,'params':{'type':B[_0x393a0e(0x3a2)],'setPivotSetting':{'tableFieldId':_0x1e0a1c,'displayName':_0x469ff2,'subtotalType':_0x112069,'format':_0x2d7873}}}))[_0x393a0e(0x314)]['setPivotSetting'];if(!_0x225029)return!0x1;const {changesets:_0x4644d9,view:_0x4c19be,pivotTableConfig:_0xd6ed15,isEmpty:_0x259200}=_0x225029,_0x34b5a9=_0xd6ed15[_0x393a0e(0x1f5)],_0x3f09ab=new m[(_0x393a0e(0x3e3))]();_0x3f09ab[_0x393a0e(0x306)](_0x4c19be);const _0x4a01eb={'cellInfo':_0x34b5a9,'view':_0x3f09ab,'isEmpty':_0x259200};if(!await _0xdf6051[_0x393a0e(0x37e)](exports[_0x393a0e(0x29d)])[_0x393a0e(0x3ab)][_0x393a0e(0x30a)](re)(!0x0,_0x4a01eb))return!0x1;const _0x4de8b3=ce(_0xdf6051,_0x3f09ab,_0x34b5a9,_0x259200),_0x437279=ge(_0xdf6051,_0x4a01eb),{undos:_0xf7ce86,redos:_0x5136a8}=se(_0x33db90,{'pivotTableId':_0x5ae946,'unitId':_0x42635d,'subUnitId':_0x4663a5},_0x4644d9);return f[_0x393a0e(0x391)]([..._0x4de8b3[_0x393a0e(0x191)],..._0x437279[_0x393a0e(0x191)],..._0x5136a8],_0x33db90),_0x2c3ebd[_0x393a0e(0x14a)]({'unitID':_0x42635d,'redoMutations':[..._0x4de8b3[_0x393a0e(0x191)],..._0x437279[_0x393a0e(0x191)],..._0x5136a8],'undoMutations':[..._0x4de8b3[_0x393a0e(0x3d3)],..._0x437279[_0x393a0e(0x3d3)],..._0xf7ce86]}),!0x0;}},mt={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':_0x2730a7(0x2f6),'handler'(_0x12578e,_0xc99a22){const _0x19cf3f=_0x2730a7;if(!_0xc99a22)return!0x1;if(!!_0x12578e[_0x19cf3f(0x37e)](f[_0x19cf3f(0x319)])[_0x19cf3f(0x3fa)](W))return!0x0;const _0x4c1110=_0x12578e[_0x19cf3f(0x37e)](exports[_0x19cf3f(0x2dd)]),{pivotTableId:_0x3bc2a9,deleteIds:_0x533975,collectionJSON:_0x59e122,dataRangeInfo:_0x50b21f,unitId:_0x25f9d6,subUnitId:_0x17dc71}=_0xc99a22,_0x15e279=_0x4c1110[_0x19cf3f(0x1cc)](_0x3bc2a9),_0x2ecd68=_0x4c1110['getPivotTableConfig'](_0x25f9d6,_0x17dc71,_0x3bc2a9);if(!_0x15e279||!_0x2ecd68)return!0x1;const {collection:_0x202b4e,updateDataFieldList:_0x43ef39}=_0x4c1110[_0x19cf3f(0x43e)](_0x3bc2a9,_0x59e122,_0x50b21f,_0x2ecd68[_0x19cf3f(0x1f5)]);_0x4c1110['refreshData'](_0x202b4e,_0x43ef39,_0x50b21f),_0x15e279['updateDataFieldsCollection'](_0x202b4e);for(const _0x4fdc2e of _0x533975)_0x4c1110[_0x19cf3f(0x312)](_0x50b21f['unitId'],_0x4fdc2e);const _0xb48da4=_0x4c1110['getPivotTableConfig'](_0x25f9d6,_0x17dc71,_0x3bc2a9);return _0xb48da4[_0x19cf3f(0x41d)]=JSON[_0x19cf3f(0x16e)](JSON['stringify'](_0x50b21f)),_0x4c1110['addDirtyPivotTable']({'unitId':_0x25f9d6,'subUnitId':_0x17dc71,'token':_0x3bc2a9,'type':L[_0x19cf3f(0x289)]}),!0x0;}},mo={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x1ad)],'id':_0x2730a7(0x3e7),async 'handler'(_0x336b81,_0x364942){const _0x569964=_0x2730a7,_0x5ab06d=_0x336b81[_0x569964(0x37e)](f['ICommandService']),_0xc3573a=_0x336b81['get'](exports[_0x569964(0x42d)]),_0x5d92d4=_0x336b81[_0x569964(0x37e)](f[_0x569964(0x377)]);if(!_0x364942)return!0x1;const {token:_0x4ba26d,dataRangeInfo:_0x2eecb9,unitId:_0x17bb53,subUnitId:_0x593e6e}=_0x364942,_0x417848=[],_0x5c1943=[],_0x54c449=(await _0xc3573a['getPivotDisplayConfig']({'unitId':_0x17bb53,'subUnitId':_0x593e6e,'pivotTableId':_0x4ba26d,'params':{'type':B[_0x569964(0x404)],'updatePivotSource':{'dataRangeInfo':_0x2eecb9,'unitId':_0x17bb53,'subUnitId':_0x593e6e}}}))[_0x569964(0x314)][_0x569964(0x2cc)];if(!_0x54c449)return!0x1;const {changesets:_0xdad139,deleteIds:_0x15fd1d,collectionConfig:_0x44d672,oldCollectionConfig:_0xe60c7f,view:_0x5f56bc,isEmpty:_0x579c78,pivotTableConfig:_0x3162bb}=_0x54c449;_0x5c1943['push']({'id':mt['id'],'params':{'pivotTableId':_0x4ba26d,'deleteIds':_0x15fd1d,'collectionJSON':_0x44d672,'dataRangeInfo':_0x2eecb9,'unitId':_0x17bb53,'subUnitId':_0x593e6e}}),_0x417848[_0x569964(0x1d8)]({'id':mt['id'],'params':{'pivotTableId':_0x4ba26d,'deleteIds':[],'collectionJSON':_0xe60c7f,'dataRangeInfo':_0x3162bb[_0x569964(0x41d)],'unitId':_0x17bb53,'subUnitId':_0x593e6e}});const _0x3e26c7=_0x3162bb[_0x569964(0x1f5)],_0x4e9610=new m['PivotView']();_0x4e9610[_0x569964(0x306)](_0x5f56bc);const _0x40087a={'cellInfo':_0x3e26c7,'view':_0x4e9610,'isEmpty':_0x579c78};if(!await _0x336b81[_0x569964(0x37e)](exports[_0x569964(0x29d)])[_0x569964(0x3ab)][_0x569964(0x30a)](re)(!0x0,_0x40087a))return!0x1;const _0xa68f93=ce(_0x336b81,_0x4e9610,_0x3e26c7,_0x579c78),_0x369cb8=ge(_0x336b81,_0x40087a),{undos:_0x4e67c9,redos:_0x166806}=se(_0x5ab06d,{'pivotTableId':_0x4ba26d,'unitId':_0x17bb53,'subUnitId':_0x593e6e},_0xdad139);return f[_0x569964(0x391)]([..._0xa68f93['redos'],..._0x369cb8['redos'],..._0x5c1943,..._0x4e67c9],_0x5ab06d),_0x5d92d4[_0x569964(0x14a)]({'unitID':_0x17bb53,'redoMutations':[..._0xa68f93[_0x569964(0x191)],..._0x369cb8[_0x569964(0x191)],..._0x5c1943,..._0x4e67c9],'undoMutations':[..._0xa68f93[_0x569964(0x3d3)],..._0x369cb8[_0x569964(0x3d3)],..._0x417848,..._0x166806]}),!0x0;}},Io={'type':f['CommandType']['COMMAND'],'id':_0x2730a7(0x3b2),async 'handler'(_0x3e3f30,_0x1ac3e5){const _0x4d67f3=_0x2730a7;if(!_0x1ac3e5)return!0x1;const _0x46ee63=_0x3e3f30['get'](f[_0x4d67f3(0x178)]),_0x24256d=_0x3e3f30['get'](exports[_0x4d67f3(0x42d)]),_0x2b0705=_0x3e3f30['get'](f[_0x4d67f3(0x3d8)]),_0x233e7a=_0x3e3f30['get'](f[_0x4d67f3(0x377)]),{pivotTableId:_0x324280,position:_0x1f30c2,index:_0x6082b3}=_0x1ac3e5,_0xf845b6=U[_0x4d67f3(0x1bc)](_0x2b0705);if(!_0xf845b6)return!0x1;const {unitId:_0x2188e8,subUnitId:_0x495ed5}=_0xf845b6,_0x3f521e=(await _0x24256d[_0x4d67f3(0x1f4)]({'unitId':_0x2188e8,'subUnitId':_0x495ed5,'pivotTableId':_0x324280,'params':{'type':B[_0x4d67f3(0x328)],'updateValuePosition':{'position':_0x1f30c2,'index':_0x6082b3}}}))[_0x4d67f3(0x314)][_0x4d67f3(0x309)];if(!_0x3f521e)return!0x1;const {changesets:_0x2243b0,view:_0x7d8ea6,isEmpty:_0x2eb922,pivotTableConfig:_0x1178fe}=_0x3f521e,_0x548225=_0x1178fe[_0x4d67f3(0x1f5)],_0x4bc322=new m['PivotView']();_0x4bc322[_0x4d67f3(0x306)](_0x7d8ea6);const _0x3196af=_0x3e3f30[_0x4d67f3(0x37e)](exports[_0x4d67f3(0x29d)]),_0x1e14dd={'cellInfo':_0x548225,'view':_0x4bc322,'isEmpty':_0x2eb922};if(!await _0x3196af[_0x4d67f3(0x3ab)][_0x4d67f3(0x30a)](re)(!0x0,_0x1e14dd))return!0x1;const _0x5707c4=ce(_0x3e3f30,_0x4bc322,_0x548225,_0x2eb922),_0x4acdaa=ge(_0x3e3f30,_0x1e14dd),{undos:_0xda14fd,redos:_0x28b1dc}=se(_0x46ee63,{'pivotTableId':_0x324280,'unitId':_0x2188e8,'subUnitId':_0x495ed5},_0x2243b0);return f[_0x4d67f3(0x391)]([..._0x5707c4['redos'],..._0x4acdaa[_0x4d67f3(0x191)],..._0x28b1dc],_0x46ee63),_0x233e7a[_0x4d67f3(0x14a)]({'unitID':_0x2188e8,'redoMutations':[..._0x5707c4[_0x4d67f3(0x191)],..._0x4acdaa['redos'],..._0x28b1dc],'undoMutations':[..._0x5707c4['undos'],..._0x4acdaa[_0x4d67f3(0x3d3)],..._0xda14fd]}),!0x0;}},Ye={'type':f[_0x2730a7(0x3ee)][_0x2730a7(0x430)],'id':'sheet.operation.pivot-table-view-formula-mark-dirty','handler'(){return!0x0;}};var Un=Object[_0x2730a7(0x2ad)],Vn=(_0x17f42b,_0x159557,_0x1577d8,_0x153cd4)=>{const _0x197121=_0x2730a7;for(var _0x4724e8=_0x153cd4>0x1?void 0x0:_0x153cd4?Un(_0x159557,_0x1577d8):_0x159557,_0x399cfa=_0x17f42b[_0x197121(0x206)]-0x1,_0x325db5;_0x399cfa>=0x0;_0x399cfa--)(_0x325db5=_0x17f42b[_0x399cfa])&&(_0x4724e8=_0x325db5(_0x4724e8)||_0x4724e8);return _0x4724e8;},ke=(_0x3e5177,_0x24f2f5)=>(_0x4da302,_0x592612)=>_0x24f2f5(_0x4da302,_0x592612,_0x3e5177);const xn=()=>({'runtimeCellData':{},'dirtyRanges':{}}),On=(_0x1b7bde,_0x5adb78,_0x246736)=>{const _0x5c3e9c=_0x2730a7,_0x1d3cf4=_0x1b7bde[_0x5c3e9c(0x34a)];_0x1b7bde['iterateFieldDim'](_0x4282a4=>{const _0x2c52f4=_0x5c3e9c,_0xd02e83=_0x4282a4[_0x2c52f4(0x3a4)](),_0x2710f3=_0x4282a4[_0x2c52f4(0x30d)](),_0x5d93f2=_0x4282a4[_0x2c52f4(0x1a2)](),_0x5559d3=_0x4282a4[_0x2c52f4(0x393)]();_0x5adb78[_0x2710f3]&&_0x5adb78[_0x2710f3]===_0x5559d3&&_0x5d93f2===_0x5559d3&&(_0x1b7bde[_0x2c52f4(0x201)](_0xd02e83,_0x1d3cf4[_0x2c52f4(0x393)](_0x2710f3)),_0x4282a4[_0x2c52f4(0x22b)](_0x1d3cf4[_0x2c52f4(0x393)](_0x2710f3)));}),_0x1b7bde[_0x5c3e9c(0x348)](m[_0x5c3e9c(0x1fb)][_0x5c3e9c(0x2c9)],_0x1fb267=>{const _0x1f93e5=_0x5c3e9c,_0x4c16d9=_0x1fb267[_0x1f93e5(0x3a4)](),_0x116857=_0x1fb267['getDataFieldId'](),_0x4ae8a8=_0x1fb267[_0x1f93e5(0x1a2)](),_0x31e3dc=_0x1fb267[_0x1f93e5(0x393)](),_0x750a72=_0x1fb267['getSubtotal'](),_0x13155b=_0x246736(_0x4ae8a8,_0x750a72);_0x5adb78[_0x116857]&&_0x5adb78[_0x116857]===_0x4ae8a8&&_0x13155b===_0x31e3dc&&(_0x1b7bde['renameField'](_0x4c16d9,_0x246736(_0x1d3cf4['getDisplayName'](_0x116857),_0x750a72)),_0x1fb267[_0x1f93e5(0x22b)](_0x1d3cf4[_0x1f93e5(0x393)](_0x116857)));});},Bn=(_0x1f0467,_0x21b97d,_0x28585c)=>{const _0x535ed0=_0x2730a7;var _0x265e89,_0x520f6f;const {arrayFormulaCellData:_0x547d89,unitData:_0x1ddaa6}=_0x21b97d,{unitId:_0x4e1bf2,subUnitId:_0x172be8}=_0x28585c,_0x5c1bdc=_0x28585c['range'],{startColumn:_0x4cbef2,endColumn:_0x3a5242}=_0x5c1bdc,_0x6bc8c2=(_0x265e89=_0x547d89==null?void 0x0:_0x547d89[_0x4e1bf2])==null?void 0x0:_0x265e89[_0x172be8],_0x52328b=(_0x520f6f=_0x1ddaa6==null?void 0x0:_0x1ddaa6[_0x4e1bf2])==null?void 0x0:_0x520f6f[_0x172be8],_0x3851f5=new Set(),_0x5e5502=_0x3a5242-_0x4cbef2+0x1,{dirtyRanges:_0x1562f2}=_0x1f0467;if(_0x1562f2)for(const {range:_0x3f755f,sheetId:_0xed56c9,unitId:_0x56f999}of _0x1562f2){if(_0xed56c9!==_0x172be8||_0x4e1bf2!==_0x56f999)continue;const _0x225f92=f[_0x535ed0(0x267)][_0x535ed0(0x1b7)](_0x3f755f,_0x5c1bdc);if(_0x225f92){const {startColumn:_0x263d72,endColumn:_0xfeea9e}=_0x225f92;for(let _0x11e85d=_0x263d72;_0x11e85d<=_0xfeea9e;_0x11e85d++)_0x3851f5['add'](_0x11e85d);}}if(_0x3851f5['size']===_0x5e5502||_0x3851f5['size']===_0x5e5502)return Array[_0x535ed0(0x2d5)](_0x3851f5);if(_0x52328b){const _0x3d6756=_0x52328b[_0x535ed0(0x2e0)](),_0x5dccd8=Object[_0x535ed0(0x3fb)](_0x3d6756);for(const _0x23dce1 of _0x5dccd8){const _0x366e75=Number(_0x23dce1),_0x3b1a3b=_0x3d6756[_0x366e75];if(_0x3851f5['size']===_0x5e5502)break;for(const _0x146a0d in _0x3b1a3b){const _0x49127a=Number(_0x146a0d);_0x49127a<_0x4cbef2||_0x49127a>_0x3a5242||_0x3851f5[_0x535ed0(0x437)](_0x49127a);}}}if(_0x6bc8c2){const _0x4eaa74=_0x6bc8c2[_0x535ed0(0x2e0)](),_0x809d44=Object['keys'](_0x4eaa74);for(const _0x38d86c of _0x809d44){const _0x374fd5=Number(_0x38d86c),_0x13b660=_0x4eaa74[_0x374fd5];if(_0x3851f5[_0x535ed0(0x37b)]===_0x5e5502)break;for(const _0xe0afcc in _0x13b660){const _0x4df502=Number(_0xe0afcc);_0x4df502<_0x4cbef2||_0x4df502>_0x3a5242||_0x3851f5[_0x535ed0(0x437)](_0x4df502);}}}return Array[_0x535ed0(0x2d5)](_0x3851f5);},kn=_0x3035db=>{const _0x4c1c66=_0x2730a7,_0x4910c0=new Set(),_0x1c732b=[];for(const _0x23f28d of _0x3035db){const _0x1d6731=_0x23f28d[_0x4c1c66(0x151)]+','+_0x23f28d[_0x4c1c66(0x172)]+','+_0x23f28d[_0x4c1c66(0x2fa)]+','+_0x23f28d[_0x4c1c66(0x43c)];_0x4910c0[_0x4c1c66(0x152)](_0x1d6731)||(_0x4910c0['add'](_0x1d6731),_0x1c732b[_0x4c1c66(0x27c)](_0x23f28d));}return _0x1c732b;};let Ge=class extends f[_0x2730a7(0x1af)]{constructor(_0x4712f5,_0x52ea70,_0x5cc52b,_0x28c05e,_0x34863c){const _0x40ba94=_0x2730a7;super(),V(this,'_globalSubject',new ve[(_0x40ba94(0x231))](!0x0)),V(this,_0x40ba94(0x2ff),_0x13d704=>{const _0x2ca06e=_0x40ba94;this[_0x2ca06e(0x137)][_0x2ca06e(0x31a)](!0x1);}),V(this,_0x40ba94(0x24a),_0x14098d=>{this['_globalSubject']['next'](!0x0);}),(this[_0x40ba94(0x1dd)]=_0x4712f5,this['_featureCalculationManagerService']=_0x52ea70,this[_0x40ba94(0x1ef)]=_0x5cc52b,this['_globalComputingSrv']=_0x28c05e,this[_0x40ba94(0x2e8)]=_0x34863c,this[_0x40ba94(0x253)](),this[_0x40ba94(0x3cd)]());}[_0x2730a7(0x253)](){const _0x2b8bdb=_0x2730a7;this[_0x2b8bdb(0x3d5)](),this['_subjectViewChange'](),this['_initPivotTextInfo'](),this[_0x2b8bdb(0x409)]();}['_initGlobalComputed'](){const _0x31b48c=_0x2730a7;this[_0x31b48c(0x19a)][_0x31b48c(0x1fe)](this[_0x31b48c(0x137)]),m[_0x31b48c(0x380)]['registerCallbackWithEvent'](m[_0x31b48c(0x2a3)]['onQueryStart'],this['_globalComputedStartHelpFunc']),m[_0x31b48c(0x380)][_0x31b48c(0x2c3)](m['PivotCallbackEnum']['onQueryEnd'],this[_0x31b48c(0x24a)]);}[_0x2730a7(0x3cd)](){const _0x57176c=_0x2730a7;this[_0x57176c(0x3f6)](this['_commandService']['onCommandExecuted'](_0x3c350f=>{const _0x7b6d0f=_0x57176c;_0x3c350f['id']===U[_0x7b6d0f(0x182)]['id']&&this[_0x7b6d0f(0x1dd)][_0x7b6d0f(0x26f)](_0x3c350f[_0x7b6d0f(0x415)]);})),this[_0x57176c(0x3f6)](this[_0x57176c(0x1ef)]['onCommandExecuted'](_0x3c549d=>{const _0x2f3cfa=_0x57176c;if(_0x3c549d['id']!==Ft['id'])return;const _0x330584=_0x3c549d['params'],{unitId:_0x42674a,subUnitId:_0x5dc805,pivotTableId:_0x230efe}=_0x330584,_0x5ae471=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x15f)],_0x3765bb={};switch(_0x5ae471){case B[_0x2f3cfa(0x41b)]:{const _0x1f265e=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x236)];if(!_0x1f265e)return;const {row:_0x3f6917,col:_0x22985b,cellData:_0x2fa520,pivotItemRenderInfoCache:_0xd897b3,tableFieldId:_0x4008ec}=_0x1f265e,_0x277b9a=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x1cc)](_0x330584[_0x2f3cfa(0x13d)]);if(!_0x277b9a||!_0xd897b3)return;if(_0x4008ec){const _0x1439c4=_0x277b9a['getDataFieldByTableId'](_0x4008ec);if(!_0x1439c4)return;_0x3765bb['filter']={..._0x277b9a['getDataFieldItemInfo'](_0x1439c4),'tableFieldId':_0x4008ec,'pivotTableId':_0x330584[_0x2f3cfa(0x13d)],'filterInfo':_0x277b9a[_0x2f3cfa(0x141)](_0x4008ec),'sortInfo':_0x277b9a[_0x2f3cfa(0x2f4)](_0x4008ec),'format':_0x277b9a[_0x2f3cfa(0x299)](_0x4008ec)};}else{const _0x5673d3=Kt(_0x3f6917,_0x22985b,_0x2fa520,_0x277b9a,_0xd897b3),_0x2c6d31=_0x5673d3==null?void 0x0:_0x5673d3['filterId'];if(!_0x2c6d31)return;const _0x17c868=_0x277b9a[_0x2f3cfa(0x42e)](_0x2c6d31);if(!_0x17c868)return;_0x3765bb['filter']={..._0x277b9a[_0x2f3cfa(0x3f9)](_0x17c868),'tableFieldId':_0x2c6d31,'pivotTableId':_0x330584[_0x2f3cfa(0x13d)],'filterInfo':_0x277b9a['getFilterInfo'](_0x2c6d31),'sortInfo':_0x277b9a[_0x2f3cfa(0x2f4)](_0x2c6d31),'format':_0x277b9a[_0x2f3cfa(0x299)](_0x2c6d31)};}}break;case B[_0x2f3cfa(0x22e)]:{const _0x3146f4=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x2a6)];if(!_0x3146f4)return;const {pivotTableId:_0x1e4391}=_0x3146f4,_0x33629f=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x1e4391);if(!_0x33629f)return;const _0x57d5c6=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x1e4391),_0xa21a09=Ht(_0x33629f,_0x1e4391,_0x57d5c6);_0x3765bb['panel']=_0xa21a09;}break;case B[_0x2f3cfa(0x16b)]:{const _0x37585e=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x1cc)](_0x230efe),_0x11d1d6=this[_0x2f3cfa(0x1dd)]['getDataFieldManager'](_0x42674a),_0x3f8b21=_0x11d1d6[_0x2f3cfa(0x2ac)](_0x230efe);let _0x2e8fef=null;const _0x236f12=this[_0x2f3cfa(0x1dd)]['getPivotTableConfig'](_0x42674a,_0x5dc805,_0x230efe),_0x3fb1b4=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x3c5)];if(!_0x37585e||!_0x236f12||!_0x3fb1b4)return!0x1;const {dataFieldId:_0x2db6a6,fieldArea:_0x139e7f,index:_0x1f4875}=_0x3fb1b4;_0x37585e['startCollectChangeset']();const _0x11e54b=_0x37585e[_0x2f3cfa(0x2b1)](_0x2db6a6,_0x139e7f,_0x1f4875);if(_0x11e54b&&_0x139e7f===m['PivotTableFiledAreaEnum'][_0x2f3cfa(0x2c9)]){const _0x3c7972=_0x11e54b[_0x2f3cfa(0x3a4)](),_0x2499b7=_0x37585e[_0x2f3cfa(0x42e)](_0x3c7972);if(_0x2499b7){const _0x575f21=_0x2499b7==null?void 0x0:_0x2499b7[_0x2f3cfa(0x19c)]();_0x37585e[_0x2f3cfa(0x150)](_0x11e54b['getId'](),_0x575f21===m[_0x2f3cfa(0x187)][_0x2f3cfa(0x1c7)]?m[_0x2f3cfa(0x39a)]['sum']:m[_0x2f3cfa(0x39a)]['count']);}const _0x513115=_0x37585e[_0x2f3cfa(0x2aa)](),_0x278770=_0x37585e[_0x2f3cfa(0x38d)](),_0x844961=_0x37585e['getFieldCountByArea'](m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x2c9)]);if(_0x513115===-0x1&&_0x844961>0x1){const _0x10cfdc=_0x278770===m[_0x2f3cfa(0x174)][_0x2f3cfa(0x35a)]?m[_0x2f3cfa(0x174)][_0x2f3cfa(0x1be)]:_0x278770,_0x22d68f=_0x10cfdc===m[_0x2f3cfa(0x174)]['Row']?m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1a6)]:m['PivotTableFiledAreaEnum'][_0x2f3cfa(0x1be)];_0x37585e['updateValuePosition'](_0x10cfdc,_0x37585e['getFieldCountByArea'](_0x22d68f));}}else{if(_0x11e54b&&(_0x139e7f===m[_0x2f3cfa(0x1fb)]['Row']||_0x139e7f===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1be)])){const _0x28dea7=_0x11e54b['getId'](),_0x2cc17e=_0x37585e[_0x2f3cfa(0x42e)](_0x28dea7);if(_0x2cc17e&&(_0x2cc17e==null?void 0x0:_0x2cc17e[_0x2f3cfa(0x19c)]())===m[_0x2f3cfa(0x187)]['date']){const _0x1e8c44=_0x2cc17e['getformat']();if(_0x1e8c44&&_0x37585e['setFieldFormat'](_0x11e54b[_0x2f3cfa(0x3a4)](),_0x1e8c44),!_0x3f8b21['getFieldIds']()[_0x2f3cfa(0x1f3)](_0xff2e58=>{const _0xc8323a=_0x2f3cfa,_0x5a3cdd=_0x3f8b21[_0xc8323a(0x157)](_0xff2e58);return m['isDateGroupField'](_0x5a3cdd)?_0x5a3cdd['getFieldInfo']()['originalFieldId']===_0x2db6a6:!0x1;})){const _0x516e4b=_0x11d1d6[_0x2f3cfa(0x41a)](),_0x416666=fn(_0x2cc17e['maxDate'],_0x2cc17e[_0x2f3cfa(0x443)]),_0xbb6d7e=_0x2cc17e['getName']()+_0x2f3cfa(0x1b3)+Zt(this[_0x2f3cfa(0x2e8)],_0x416666),_0x11da39=new m[(_0x2f3cfa(0x300))](_0x516e4b,_0xbb6d7e,m[_0x2f3cfa(0x283)](0x3),_0x2cc17e['getId'](),_0x416666);_0x11d1d6[_0x2f3cfa(0x354)](_0x11da39),_0x3f8b21['addField'](_0x516e4b,_0xbb6d7e),_0x37585e[_0x2f3cfa(0x2b1)](_0x516e4b,_0x139e7f,(_0x1f4875!=null?_0x1f4875:0x0)+0x1),_0x2e8fef=_0x11da39;}}}}const _0x1a98eb=_0x37585e[_0x2f3cfa(0x212)](),_0x2cbd67=_0x37585e[_0x2f3cfa(0x255)]()['toJSON']();let _0x22991a;if(_0x2e8fef){_0x22991a=_0x2e8fef[_0x2f3cfa(0x2af)]();const _0x3ea2e8=_0x2e8fef[_0x2f3cfa(0x3a4)]();_0x3f8b21[_0x2f3cfa(0x1f8)](_0x3ea2e8);let _0x14ff33=!0x0;for(const _0x250fc9 in _0x11d1d6[_0x2f3cfa(0x15e)])if(_0x11d1d6[_0x2f3cfa(0x15e)][_0x250fc9][_0x2f3cfa(0x28f)]()[_0x2f3cfa(0x25a)](_0x3ea2e8)){_0x14ff33=!0x1;break;}_0x14ff33&&_0x11d1d6[_0x2f3cfa(0x386)](_0x3ea2e8);}const _0x63ef4f=_0x37585e[_0x2f3cfa(0x2a7)]();_0x3765bb['addPivotField']={'view':_0x2cbd67,'changesets':_0x63ef4f,'isEmpty':_0x1a98eb,'pivotTableConfig':_0x236f12,'shouldBeAddedGroupJSON':_0x22991a};}break;case B['AddPivotTable']:{const _0x156ece=_0x330584[_0x2f3cfa(0x415)]['addPivotTable'];if(!_0x156ece)return;const _0x5a512e=_0x156ece[_0x2f3cfa(0x41d)],_0x39d336=_0x156ece[_0x2f3cfa(0x13d)],{collection:_0x3fb690}=this[_0x2f3cfa(0x1dd)]['createCollectionWithDataRange']({'unitId':_0x5a512e['unitId'],'sheetName':_0x5a512e[_0x2f3cfa(0x176)],'subUnitId':_0x5a512e['subUnitId'],'range':_0x5a512e[_0x2f3cfa(0x296)]}),_0x5f4578=new m['PivotTable'](_0x3fb690,void 0x0,_0x39d336),_0x19ee01=_0x5f4578[_0x2f3cfa(0x255)](),_0x55052b=_0x5f4578[_0x2f3cfa(0x2af)](),_0x293607=_0x3fb690['toJSON']();_0x3765bb[_0x2f3cfa(0x1b2)]={'view':_0x19ee01,'fieldsConfig':_0x55052b,'collectionConfig':_0x293607,'isEmpty':_0x5f4578[_0x2f3cfa(0x212)]()};}break;case B['MovePivotField']:{const _0x50f536=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x203)];if(!_0x50f536)return;const {fieldId:_0x46162c,area:_0x291b30,index:_0x2ec16a}=_0x50f536,_0x32f20e=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x32f20e)return;const _0x59ae9c=this[_0x2f3cfa(0x1dd)]['getPivotTableInstance'](_0x230efe);if(!_0x59ae9c)return;_0x59ae9c[_0x2f3cfa(0x2fc)]();const {area:_0x33a1b8,index:_0x4bf240}=_0x59ae9c['getFieldPositionInfoById'](_0x46162c);if(_0x59ae9c[_0x2f3cfa(0x268)](_0x46162c,_0x291b30,_0x2ec16a),_0x291b30===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x2c9)]&&_0x59ae9c[_0x2f3cfa(0x278)](_0x46162c)[_0x2f3cfa(0x329)]()===void 0x0){const _0x443737=_0x59ae9c['getTableFieldById'](_0x46162c);if(_0x443737&&_0x443737[_0x2f3cfa(0x329)]()===void 0x0){const _0x119031=_0x59ae9c[_0x2f3cfa(0x42e)](_0x46162c);if(_0x119031){const _0x5110cd=_0x119031==null?void 0x0:_0x119031[_0x2f3cfa(0x19c)]();_0x59ae9c[_0x2f3cfa(0x150)](_0x46162c,_0x5110cd===m[_0x2f3cfa(0x187)][_0x2f3cfa(0x1c7)]?m[_0x2f3cfa(0x39a)][_0x2f3cfa(0x1d4)]:m['PivotSubtotalTypeEnum'][_0x2f3cfa(0x3b4)]);}}}const _0x172f99=_0x59ae9c[_0x2f3cfa(0x38d)](),_0x4eb5d1=_0x59ae9c[_0x2f3cfa(0x2aa)](),_0x2129fd=_0x59ae9c[_0x2f3cfa(0x298)](m[_0x2f3cfa(0x1fb)]['Value'])>0x1;if(_0x2129fd&&_0x33a1b8===_0x291b30&&(_0x291b30===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1a6)]&&_0x172f99===m[_0x2f3cfa(0x174)]['Row']||_0x291b30===m[_0x2f3cfa(0x1fb)]['Column']&&_0x172f99===m[_0x2f3cfa(0x174)][_0x2f3cfa(0x1be)])){let _0x5b9a6a=_0x4eb5d1;_0x4bf240<=_0x4eb5d1&&_0x5b9a6a--,_0x2ec16a<=_0x4eb5d1&&_0x5b9a6a++,_0x59ae9c[_0x2f3cfa(0x309)](_0x172f99,_0x5b9a6a);}else _0x2129fd&&(_0x33a1b8===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1a6)]&&_0x172f99===m[_0x2f3cfa(0x174)][_0x2f3cfa(0x1a6)]||_0x33a1b8===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1be)]&&_0x172f99===m[_0x2f3cfa(0x174)]['Column'])&&_0x4eb5d1>=_0x4bf240&&_0x59ae9c['updateValuePosition'](_0x172f99,_0x4eb5d1-0x1),_0x2129fd&&(_0x291b30===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1a6)]&&_0x172f99===m['PivotTableValuePositionEnum']['Row']||_0x291b30===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1be)]&&_0x172f99===m[_0x2f3cfa(0x174)]['Column'])&&_0x4eb5d1>=_0x2ec16a&&_0x59ae9c[_0x2f3cfa(0x309)](_0x172f99,_0x4eb5d1+0x1);const _0x2482f9=_0x59ae9c[_0x2f3cfa(0x255)](),_0x49c951=_0x59ae9c['isEmpty'](),_0x31cafd=_0x59ae9c[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x203)]={'view':_0x2482f9['toJSON'](),'changesets':_0x31cafd,'isEmpty':_0x49c951,'pivotTableConfig':_0x32f20e};}break;case B[_0x2f3cfa(0x2a4)]:{const _0x57afaa=_0x330584['params']['removePivotField'];if(!_0x57afaa)return;const _0x3b7b75=_0x57afaa[_0x2f3cfa(0x305)],_0x261c0b=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x261c0b)return!0x1;const _0x336048=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x230efe);if(!_0x336048)return!0x1;_0x336048[_0x2f3cfa(0x2fc)]();for(const _0x5f114b of _0x3b7b75){const {area:_0x31a9b2}=_0x336048['getFieldPositionInfoById'](_0x5f114b);_0x31a9b2===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x2c9)]&&_0x336048[_0x2f3cfa(0x400)](_0x5f114b),(_0x31a9b2===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1a6)]||_0x31a9b2===m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1be)])&&_0x336048[_0x2f3cfa(0x2db)](_0x5f114b),_0x336048[_0x2f3cfa(0x307)](_0x5f114b);}const _0x25b9fd=_0x336048[_0x2f3cfa(0x212)](),_0x23a72a=_0x336048['query']()[_0x2f3cfa(0x2af)](),_0x1503e4=_0x336048['endCollectChangeset']();_0x3765bb[_0x2f3cfa(0x360)]={'changesets':_0x1503e4,'pivotTableConfig':_0x261c0b,'isEmpty':_0x25b9fd,'view':_0x23a72a};}break;case B[_0x2f3cfa(0x156)]:{const _0x1782c4=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x36f)];if(!_0x1782c4)return;const {tableFieldId:_0x3a7220,items:_0x43241f,isAll:_0x4d760f}=_0x1782c4,_0x5c7cb1=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x230efe),_0x4c1171=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x5c7cb1||!_0x4c1171)return;_0x5c7cb1[_0x2f3cfa(0x2fc)](),_0x5c7cb1[_0x2f3cfa(0x1f2)](_0x3a7220,{'type':m[_0x2f3cfa(0x33b)][_0x2f3cfa(0x429)],'list':_0x43241f,'isAll':_0x4d760f});const _0x2a2f2d=_0x5c7cb1[_0x2f3cfa(0x212)](),_0x39bff5=_0x5c7cb1[_0x2f3cfa(0x255)]()[_0x2f3cfa(0x2af)](),_0x24f23e=_0x5c7cb1[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x36f)]={'view':_0x39bff5,'changesets':_0x24f23e,'isEmpty':_0x2a2f2d,'pivotTableConfig':_0x4c1171};}break;case B['SetValuePivotFilter']:{const _0x1571f6=_0x330584['params'][_0x2f3cfa(0x1b1)];if(!_0x1571f6)return;const {tableFieldId:_0x238b72,filterInfo:_0x1f929d}=_0x1571f6,_0x4c5b92=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x230efe),_0x2a2c13=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x4c5b92||!_0x2a2c13)return;_0x4c5b92[_0x2f3cfa(0x2fc)](),_0x4c5b92[_0x2f3cfa(0x2f2)](_0x238b72,_0x1f929d);const _0x4c6c4c=_0x4c5b92[_0x2f3cfa(0x212)](),_0x50dc5b=_0x4c5b92[_0x2f3cfa(0x255)]()['toJSON'](),_0x488931=_0x4c5b92[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x1b1)]={'view':_0x50dc5b,'changesets':_0x488931,'isEmpty':_0x4c6c4c,'pivotTableConfig':_0x2a2c13};}break;case B[_0x2f3cfa(0x431)]:{const _0x2ceb78=_0x330584[_0x2f3cfa(0x415)]['setPivotSort'];if(!_0x2ceb78)return;const {tableFieldId:_0x59ee74,info:_0x489bbd}=_0x2ceb78,_0x57a66d=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x230efe),_0x18c1d0=this[_0x2f3cfa(0x1dd)]['getPivotTableConfig'](_0x42674a,_0x5dc805,_0x230efe);if(!_0x57a66d||!_0x18c1d0)return;_0x57a66d[_0x2f3cfa(0x2fc)](),_0x57a66d[_0x2f3cfa(0x216)](_0x59ee74,_0x489bbd);const _0x5c7150=_0x57a66d[_0x2f3cfa(0x212)](),_0x43363a=_0x57a66d['query']()[_0x2f3cfa(0x2af)](),_0x16ebe2=_0x57a66d[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x28a)]={'view':_0x43363a,'changesets':_0x16ebe2,'isEmpty':_0x5c7150,'pivotTableConfig':_0x18c1d0};}break;case B[_0x2f3cfa(0x3a2)]:{const _0x5e0ce9=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x2ef)];if(!_0x5e0ce9)return;const {tableFieldId:_0x302152,displayName:_0x262081,subtotalType:_0x4e4aba,format:_0x59eeea}=_0x5e0ce9,_0x1640ec=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x230efe),_0x5c56cb=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x1640ec||!_0x5c56cb)return;_0x1640ec[_0x2f3cfa(0x2fc)](),_0x262081!==void 0x0&&_0x1640ec[_0x2f3cfa(0x201)](_0x302152,_0x262081),_0x4e4aba!==void 0x0&&_0x1640ec[_0x2f3cfa(0x150)](_0x302152,_0x4e4aba),_0x59eeea!==void 0x0&&_0x1640ec[_0x2f3cfa(0x411)](_0x302152,_0x59eeea);const _0x1b61b8=_0x1640ec[_0x2f3cfa(0x212)](),_0x356178=_0x1640ec[_0x2f3cfa(0x255)]()[_0x2f3cfa(0x2af)](),_0x3b2b84=_0x1640ec['endCollectChangeset']();_0x3765bb['setPivotSetting']={'changesets':_0x3b2b84,'pivotTableConfig':_0x5c56cb,'isEmpty':_0x1b61b8,'view':_0x356178};}break;case B[_0x2f3cfa(0x404)]:{const _0x1a4b18=_0x330584[_0x2f3cfa(0x415)]['updatePivotSource'];if(!_0x1a4b18)return;const {dataRangeInfo:_0x28aec0,unitId:_0x426454,subUnitId:_0x40703d}=_0x1a4b18,_0xd930d0=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x426454,_0x40703d,_0x230efe),_0xe48ddf=this[_0x2f3cfa(0x1dd)]['getPivotTableInstance'](_0x230efe);if(!this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2ac)](_0x426454,_0x230efe)||!_0xe48ddf||!_0xd930d0)return;const _0x19e28a=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x43f)](_0x426454,_0x230efe,_0x28aec0),_0x277913=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2ac)](_0x426454,_0x230efe)['toJSON'](),{collection:_0x1c97ce}=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1d5)]({'unitId':_0x28aec0[_0x2f3cfa(0x23c)],'sheetName':_0x28aec0['sheetName'],'subUnitId':_0x28aec0[_0x2f3cfa(0x394)],'range':_0x28aec0[_0x2f3cfa(0x296)]}),_0x3858f1=_0x1c97ce[_0x2f3cfa(0x2af)]();_0xe48ddf['startCollectChangeset']();const _0x5a3b1e=this[_0x2f3cfa(0x1dd)]['getDataFieldManager'](_0x426454)[_0x2f3cfa(0x2e3)]()||m[_0x2f3cfa(0x215)];_0xe48ddf['iterateField'](_0x3041fe=>{const _0x474d31=_0x2f3cfa,_0x14d106=_0x3041fe[_0x474d31(0x30d)]();if(!_0x1c97ce[_0x474d31(0x19f)](_0x14d106)){const _0x237e37=_0x1c97ce[_0x474d31(0x1d9)](_0x3041fe[_0x474d31(0x1a2)]());if(_0x237e37){_0xe48ddf[_0x474d31(0x362)](_0x3041fe[_0x474d31(0x3a4)](),_0x237e37[_0x474d31(0x162)](),_0x237e37[_0x474d31(0x3a4)]());const {area:_0x132046}=_0xe48ddf[_0x474d31(0x245)](_0x3041fe[_0x474d31(0x3a4)]());let _0x3a59f9=_0x3041fe[_0x474d31(0x1a2)]();const _0x18bd71=_0x3041fe['getDisplayName']();if(_0x132046===m[_0x474d31(0x1fb)][_0x474d31(0x2c9)]){const _0x3fa5ed=_0x3041fe['getSubtotal']();_0x3a59f9=_0x5a3b1e(_0x237e37[_0x474d31(0x162)](),_0x3fa5ed);}_0x18bd71!==_0x3a59f9&&_0xe48ddf['renameField'](_0x3041fe['getId'](),_0x3a59f9);}else _0xe48ddf['removeField'](_0x3041fe[_0x474d31(0x3a4)]());}});const _0x41d371=_0xe48ddf[_0x2f3cfa(0x212)](),_0x2bdbec=_0xe48ddf[_0x2f3cfa(0x255)]()['toJSON'](),_0x3782c6=_0xe48ddf[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x2cc)]={'view':_0x2bdbec,'changesets':_0x3782c6,'isEmpty':_0x41d371,'pivotTableConfig':_0xd930d0,'collectionConfig':_0x3858f1,'oldCollectionConfig':_0x277913,'deleteIds':_0x19e28a};}break;case B[_0x2f3cfa(0x328)]:{const _0x3a3b07=_0x330584[_0x2f3cfa(0x415)]['updateValuePosition'];if(!_0x3a3b07)return;const {position:_0x43d546,index:_0x3721e0}=_0x3a3b07,_0x5b6eb4=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x5b6eb4)return!0x1;const _0x3353ea=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x1cc)](_0x230efe);if(!_0x3353ea)return!0x1;_0x3353ea[_0x2f3cfa(0x2fc)](),_0x3353ea[_0x2f3cfa(0x309)](_0x43d546,_0x3721e0);const _0x5e09b5=_0x3353ea[_0x2f3cfa(0x212)](),_0x74d36d=_0x3353ea[_0x2f3cfa(0x255)]()[_0x2f3cfa(0x2af)](),_0xe378c5=_0x3353ea[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x309)]={'changesets':_0xe378c5,'pivotTableConfig':_0x5b6eb4,'isEmpty':_0x5e09b5,'view':_0x74d36d};}break;case B[_0x2f3cfa(0x17d)]:{const _0x12c614=_0x330584['params'][_0x2f3cfa(0x264)];if(!_0x12c614)return;const {tableFieldId:_0x11965a,collapse:_0x471a65,item:_0x270c0d}=_0x12c614,_0x56b2ee=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x1cc)](_0x230efe),_0x2481bb=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x56b2ee||!_0x2481bb)return;_0x56b2ee[_0x2f3cfa(0x2fc)](),_0x56b2ee[_0x2f3cfa(0x38f)](_0x11965a,_0x471a65,_0x270c0d);const _0x132d76=_0x56b2ee['isEmpty'](),_0x4a4ba7=_0x56b2ee[_0x2f3cfa(0x255)]()[_0x2f3cfa(0x2af)](),_0x5be212=_0x56b2ee['endCollectChangeset']();_0x3765bb[_0x2f3cfa(0x264)]={'view':_0x4a4ba7,'isEmpty':_0x132d76,'pivotTableConfig':_0x2481bb,'changesets':_0x5be212};}break;case B[_0x2f3cfa(0x32b)]:{const _0xce7878=_0x330584[_0x2f3cfa(0x415)][_0x2f3cfa(0x2d6)];if(!_0xce7878)return;const {pivotTableConfig:_0xb56dab}=_0xce7878,_0x3976de=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x230efe),_0x11f176=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x3976de||!_0x11f176)return;_0x3976de[_0x2f3cfa(0x2fc)](),un(_0x3976de,_0xb56dab);const _0x1dbfc5=_0x3976de[_0x2f3cfa(0x212)](),_0x514287=_0x3976de[_0x2f3cfa(0x255)]()[_0x2f3cfa(0x2af)](),_0x36e791=_0x3976de[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x2d6)]={'view':_0x514287,'isEmpty':_0x1dbfc5,'pivotTableConfig':{..._0x11f176,'fieldsConfig':_0x3976de['toJSON']()},'changesets':_0x36e791};}break;case B['ResetPivotTable']:{const _0x494aaa=_0x330584['params']['resetPivotTable'];if(!_0x494aaa)return;const _0x2299e9=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x1cc)](_0x230efe),_0x4fb626=this[_0x2f3cfa(0x1dd)][_0x2f3cfa(0x2f7)](_0x42674a,_0x5dc805,_0x230efe);if(!_0x2299e9||!_0x4fb626)return;_0x2299e9[_0x2f3cfa(0x2fc)](),gn(_0x2299e9,_0x494aaa[_0x2f3cfa(0x18c)]);const _0x1c2103=_0x2299e9[_0x2f3cfa(0x255)]()['toJSON'](),_0x192f6b=_0x2299e9[_0x2f3cfa(0x2a7)]();_0x3765bb[_0x2f3cfa(0x15c)]={'view':_0x1c2103,'isEmpty':!0x0,'pivotTableConfig':{..._0x4fb626,'fieldsConfig':_0x2299e9[_0x2f3cfa(0x2af)]()},'changesets':_0x192f6b};}break;case B[_0x2f3cfa(0x2ce)]:{const _0x54086a=_0x330584['params']['addPivotTableWithConfig'];if(!_0x54086a)return;const _0x32c540=_0x54086a[_0x2f3cfa(0x41d)],_0x3614dd=_0x54086a[_0x2f3cfa(0x13d)],{collection:_0x1af93a}=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x1d5)]({'unitId':_0x32c540[_0x2f3cfa(0x23c)],'sheetName':_0x32c540[_0x2f3cfa(0x176)],'subUnitId':_0x32c540[_0x2f3cfa(0x394)],'range':_0x32c540[_0x2f3cfa(0x296)]}),_0x54857e=new m[(_0x2f3cfa(0x380))](_0x1af93a,void 0x0,_0x3614dd),_0x3308e3=_0x1af93a[_0x2f3cfa(0x28f)](),{rows:_0x3c6869,columns:_0x143a0b,filters:_0xe6c0cd,values:_0x3fb20b}=_0x54086a[_0x2f3cfa(0x2cf)];_0x54857e[_0x2f3cfa(0x2fc)]();for(const {field:_0xc0962e,selectedItems:_0x44fa37}of _0x3c6869||[]){const _0x678ab5=_0x3308e3[_0xc0962e];if(_0x678ab5){const _0x1af2be=_0x54857e[_0x2f3cfa(0x2b1)](_0x678ab5,m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1a6)]);_0x44fa37&&_0x1af2be&&_0x54857e['setLabelFilterInfo'](_0x1af2be[_0x2f3cfa(0x3a4)](),{'type':m['PivotFilterTypeEnum'][_0x2f3cfa(0x429)],'list':_0x44fa37,'isAll':!0x1});}}for(const {field:_0x54ee12,selectedItems:_0x1babc5}of _0x143a0b||[]){const _0x23ee7a=_0x3308e3[_0x54ee12];if(_0x23ee7a){const _0x1d6153=_0x54857e[_0x2f3cfa(0x2b1)](_0x23ee7a,m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x1be)]);_0x1babc5&&_0x1d6153&&_0x54857e[_0x2f3cfa(0x1f2)](_0x1d6153['getId'](),{'type':m['PivotFilterTypeEnum']['ManualFilter'],'list':_0x1babc5,'isAll':!0x1});}}for(const {field:_0x3224a4,selectedItems:_0x494f63}of _0xe6c0cd||[]){const _0x57e6eb=_0x3308e3[_0x3224a4];if(_0x57e6eb){const _0x526275=_0x54857e[_0x2f3cfa(0x2b1)](_0x57e6eb,m[_0x2f3cfa(0x1fb)][_0x2f3cfa(0x41b)]);_0x494f63&&_0x526275&&_0x54857e[_0x2f3cfa(0x1f2)](_0x526275[_0x2f3cfa(0x3a4)](),{'type':m['PivotFilterTypeEnum'][_0x2f3cfa(0x429)],'list':_0x494f63,'isAll':!0x1});}}for(const {field:_0x2dc944,subTotalType:_0x12ca3d,formatString:_0x23d7f0}of _0x3fb20b||[]){const _0x403e2d=_0x1af93a[_0x2f3cfa(0x157)](_0x3308e3[_0x2dc944]);if(!_0x403e2d)continue;const _0x253bff=_0x3308e3[_0x2dc944];if(_0x253bff){const _0x2550cc=_0x54857e['addFieldWithSourceId'](_0x253bff,m['PivotTableFiledAreaEnum'][_0x2f3cfa(0x2c9)]);if(_0x2550cc){if(_0x12ca3d!==void 0x0){_0x54857e[_0x2f3cfa(0x150)](_0x2550cc[_0x2f3cfa(0x3a4)](),_0x12ca3d);const _0x4e0d32=this['_sheetsPivotDataSourceModel'][_0x2f3cfa(0x1c5)](_0x32c540['unitId'])[_0x2f3cfa(0x2e3)]()||m[_0x2f3cfa(0x215)],_0x4ee030=_0x1af93a[_0x2f3cfa(0x393)](_0x253bff),_0x597a9e=_0x4e0d32(_0x4ee030,_0x12ca3d);_0x54857e[_0x2f3cfa(0x201)](_0x2550cc[_0x2f3cfa(0x3a4)](),_0x597a9e);}else{if(_0x403e2d){const _0x254e5c=_0x403e2d==null?void 0x0:_0x403e2d['getFieldDataType']();_0x54857e[_0x2f3cfa(0x150)](_0x2550cc[_0x2f3cfa(0x3a4)](),_0x254e5c===m['PivotDataFieldDataTypeEnum']['number']?m[_0x2f3cfa(0x39a)]['sum']:m['PivotSubtotalTypeEnum']['count']);}}_0x23d7f0&&_0x54857e[_0x2f3cfa(0x411)](_0x2550cc['getId'](),_0x23d7f0);}}}const _0x380754=_0x54857e['query'](),_0x34fad4=_0x54857e[_0x2f3cfa(0x2af)](),_0x800121=_0x54857e[_0x2f3cfa(0x212)](),_0x75137a=_0x54857e[_0x2f3cfa(0x2a7)](),_0x3ef052=_0x1af93a[_0x2f3cfa(0x2af)]();_0x3765bb['addPivotTableWithConfig']={'view':_0x380754,'fieldsConfig':_0x34fad4,'collectionConfig':_0x3ef052,'isEmpty':_0x800121,'changesets':_0x75137a};}break;case B['DrillDown']:{const _0x1834c0=an(this[_0x2f3cfa(0x2e8)],_0x330584);if(!_0x1834c0)return;const {range:_0x4daf2d,sourceSubUnitId:_0x42ccc4,sourceUnitId:_0x549e3f,formatMap:_0x4300f2,indexes:_0x2a5182}=_0x1834c0;_0x3765bb['drillDown']={'range':_0x4daf2d,'sourceSubUnitId':_0x42ccc4,'sourceUnitId':_0x549e3f,'formatMap':_0x4300f2,'indexes':_0x2a5182};}break;}this[_0x2f3cfa(0x1ef)][_0x2f3cfa(0x3e0)](wt['id'],{'version':_0x330584['version'],'result':_0x3765bb},{'onlyLocal':!0x0});}));}[_0x2730a7(0x344)](){const _0xa64295=_0x2730a7;this[_0xa64295(0x3f6)](this['_commandService'][_0xa64295(0x405)](_0x1852f2=>{const _0x326b36=_0xa64295;if(_0x1852f2['id']!==Rt['id'])return;const _0x493989=_0x1852f2['params'];return this['_sheetsPivotDataSourceModel'][_0x326b36(0x335)](_0x493989['textInfo']),!0x0;}));}[_0x2730a7(0x3d5)](){const _0xbf48c7=_0x2730a7;this[_0xbf48c7(0x1dd)][_0xbf48c7(0x170)][_0xbf48c7(0x361)](_0x1d56f3=>{const _0x464f60=_0xbf48c7;switch(_0x1d56f3[_0x464f60(0x15f)]){case Pe[_0x464f60(0x437)]:_0x1d56f3[_0x464f60(0x35d)]&&_0x1d56f3[_0x464f60(0x1f5)]&&this[_0x464f60(0x1bb)](_0x1d56f3[_0x464f60(0x301)],_0x1d56f3[_0x464f60(0x35d)],_0x1d56f3[_0x464f60(0x1f5)]);break;case Pe[_0x464f60(0x21a)]:{const {unitId:_0x282e9b,subUnitId:_0x1adee3,token:_0x3a6a6e}=_0x1d56f3;_0x282e9b&&_0x1adee3&&_0x3a6a6e&&this[_0x464f60(0x1cb)](_0x282e9b,_0x1adee3,_0x3a6a6e);}break;case Pe[_0x464f60(0x27f)]:{const {token:_0x47a7d1,oldSourceRangeInfo:_0x4c71ae,dataRangeInfo:_0x2f3d8a,targetCellInfo:_0xbedc8d}=_0x1d56f3,{unitId:_0x43a3de,subUnitId:_0x16672b}=_0x4c71ae||{};_0x43a3de&&_0x16672b&&_0x47a7d1&&this[_0x464f60(0x1cb)](_0x43a3de,_0x16672b,_0x47a7d1),_0x2f3d8a&&_0xbedc8d&&this[_0x464f60(0x1bb)](_0x47a7d1,_0x2f3d8a,_0xbedc8d);}break;}});}[_0x2730a7(0x409)](){const _0x346c38=_0x2730a7;this['_sheetsPivotDataSourceModel'][_0x346c38(0x222)][_0x346c38(0x361)](_0x7e88b6=>{const _0x5a04e1=_0x346c38;Object['keys'](_0x7e88b6)[_0x5a04e1(0x295)](_0x24edc8=>{const _0x444c2a=_0x5a04e1,_0x43b968=this['_sheetsPivotDataSourceModel'][_0x444c2a(0x3de)](_0x24edc8);if(_0x43b968){const _0x286422=this[_0x444c2a(0x1dd)]['getPivotTableConfig'](_0x43b968==null?void 0x0:_0x43b968['unitId'],_0x43b968==null?void 0x0:_0x43b968[_0x444c2a(0x394)],_0x24edc8);_0x286422&&(this['handleSourceRangeChange'](_0x24edc8,_0x286422[_0x444c2a(0x41d)],_0x286422[_0x444c2a(0x1f5)]),this[_0x444c2a(0x2f5)]([{'unitId':_0x43b968[_0x444c2a(0x23c)],'subUnitId':_0x43b968[_0x444c2a(0x394)],'token':_0x24edc8}]));}});});}[_0x2730a7(0x368)](){const _0x2d6a8a=_0x2730a7;this[_0x2d6a8a(0x1dd)]['viewData$'][_0x2d6a8a(0x361)](_0x25ee4f=>{const _0x4708ac=_0x2d6a8a,{unitId:_0x2b66d8,subUnitId:_0x2799fe,pivotTableId:_0x24e2b4}=_0x25ee4f;_0x2b66d8&&_0x2799fe&&_0x24e2b4&&this[_0x4708ac(0x2f5)]([{'unitId':_0x2b66d8,'subUnitId':_0x2799fe,'token':_0x24e2b4}]);});}[_0x2730a7(0x2f5)](_0x9251f3){const _0x3730f2=_0x2730a7,_0x4af5a0={};_0x9251f3[_0x3730f2(0x295)](_0xf08186=>{var _0x1a6303,_0x13fb29;const {unitId:_0x5e9065,subUnitId:_0x5c14ba,token:_0x2bed48}=_0xf08186;_0x4af5a0[_0x5e9065]=(_0x1a6303=_0x4af5a0[_0x5e9065])!=null?_0x1a6303:{},_0x4af5a0[_0x5e9065][_0x5c14ba]=(_0x13fb29=_0x4af5a0[_0x5e9065][_0x5c14ba])!=null?_0x13fb29:{},_0x4af5a0[_0x5e9065][_0x5c14ba][_0x2bed48]=!0x0;}),this['_commandService'][_0x3730f2(0x3e0)](Ye['id'],_0x4af5a0);}[_0x2730a7(0x1cb)](_0x578891,_0x30a588,_0x2f61a7){const _0x5d2873=_0x2730a7;this[_0x5d2873(0x292)]['remove'](_0x578891,_0x30a588,[_0x2f61a7]);}['handleSourceRangeChange'](_0x47f618,_0xee805e,_0x5a3e0c){const _0x1df647=_0x2730a7,{unitId:_0xb3c525,subUnitId:_0x3a015e}=_0xee805e;this[_0x1df647(0x292)]['has'](_0x5a3e0c[_0x1df647(0x23c)],_0x5a3e0c[_0x1df647(0x394)],_0x47f618)&&this[_0x1df647(0x1cb)](_0xb3c525,_0x3a015e,_0x47f618);const _0x44bef6={'sheetId':_0x3a015e,..._0xee805e};this[_0x1df647(0x292)]['register'](_0x5a3e0c[_0x1df647(0x23c)],_0x5a3e0c['subUnitId'],_0x47f618,{'unitId':_0x5a3e0c['unitId'],'subUnitId':_0x5a3e0c[_0x1df647(0x394)],'dependencyRanges':[_0x44bef6],'getDirtyData':(_0x142da7,_0x4f203b)=>{const _0x412d9a=_0x1df647,_0x253232=this[_0x412d9a(0x1dd)],_0x21c6e6=_0x253232[_0x412d9a(0x3de)](_0x47f618);if(!_0x21c6e6)return xn();const {unitId:_0x315d8a,subUnitId:_0xf5ed4c}=_0x21c6e6,_0x19fbac=Bn(_0x142da7,_0x4f203b,_0xee805e);if(_0x19fbac['length']>0x0){const _0x4ddc5a=_0x253232[_0x412d9a(0x2ac)](_0xb3c525,_0x47f618),_0x13f68c=_0x4ddc5a[_0x412d9a(0x28f)](),_0x42ce53=this[_0x412d9a(0x336)](_0xee805e['unitId'],_0xee805e[_0x412d9a(0x394)],_0x4f203b),_0x18fe83={},_0x4c6795=this[_0x412d9a(0x1dd)]['getDataFieldManager'](_0x315d8a)[_0x412d9a(0x2e3)]()||m[_0x412d9a(0x215)],_0xed91ed=[];for(const _0x3d00f5 of _0x19fbac){const _0x5b1bac=_0x3d00f5-(_0xee805e[_0x412d9a(0x296)]['startColumn']||0x0),_0x41c247=_0x13f68c[_0x5b1bac];_0xed91ed[_0x412d9a(0x27c)](_0x41c247),_0x18fe83[_0x41c247]=_0x4ddc5a[_0x412d9a(0x157)](_0x41c247)['getName'](),_0x253232[_0x412d9a(0x1c5)](_0xb3c525)['refreshDataField'](_0x41c247,_0xee805e,_0x5b1bac,_0x42ce53);}_0x4ddc5a[_0x412d9a(0x3ad)](_0xed91ed)[_0x412d9a(0x295)](_0x1957cb=>{const _0x3acd74=_0x412d9a,[_0x19c7ad,_0x516813]=_0x1957cb,_0x310cb6=_0x4ddc5a[_0x3acd74(0x157)](_0x19c7ad),_0x2edcf0=_0x4ddc5a[_0x3acd74(0x157)](_0x516813);_0x310cb6&&_0x2edcf0&&_0x310cb6[_0x3acd74(0x438)](_0x2edcf0);}),_0x4ddc5a[_0x412d9a(0x25e)]();const _0x1d1e56=_0x253232[_0x412d9a(0x1cc)](_0x47f618);if(_0x1d1e56){On(_0x1d1e56,_0x18fe83,_0x4c6795),_0x1d1e56[_0x412d9a(0x3bc)](!0x0);const _0x1c63c6=_0x1d1e56['query'](),_0x4951c2=_0x253232[_0x412d9a(0x2f7)](_0x315d8a,_0xf5ed4c,_0x47f618),_0x9940d4=_0x253232[_0x412d9a(0x1c5)](_0xb3c525)['toJSON']();_0x253232[_0x412d9a(0x2ed)](_0x315d8a,_0xf5ed4c,L['Set'],_0x47f618,_0x1c63c6,_0x4951c2,_0x9940d4,!0x0);}}return this[_0x412d9a(0x26a)](_0x315d8a,_0xf5ed4c,_0x47f618);}});}['getMatrixFromRunTimeData'](_0x5c41ed,_0xd506e9,_0x120723){var _0x3046d0,_0x44e0ce;const {arrayFormulaCellData:_0x41a775,unitData:_0x4b87f}=_0x120723,_0x14eff4=(_0x3046d0=_0x41a775==null?void 0x0:_0x41a775[_0x5c41ed])==null?void 0x0:_0x3046d0[_0xd506e9],_0x362fc0=(_0x44e0ce=_0x4b87f==null?void 0x0:_0x4b87f[_0x5c41ed])==null?void 0x0:_0x44e0ce[_0xd506e9];return{'arrayFormulaCellDataMatrix':_0x14eff4,'unitDataMatrix':_0x362fc0};}['getDirtyInfo'](_0x1091ac,_0x5c6b5a,_0x4a1b08){const _0x3eb542=_0x2730a7,_0x26cb81=this['_sheetsPivotDataSourceModel']['getViewData'](_0x1091ac,_0x5c6b5a,_0x4a1b08),_0x2c7598=[],_0x46c197=new f[(_0x3eb542(0x1bf))]();if(_0x26cb81){const {rangeCache:_0x108f9e,matrix:_0x4a860c,oldRangeCache:_0x5234ce,oldMatrix:_0x4891af}=_0x26cb81,_0x2370f2=nt(_0x5234ce),_0x6d17eb=nt(_0x108f9e);_0x2c7598[_0x3eb542(0x27c)](..._0x6d17eb,..._0x2370f2),_0x4891af&&_0x5234ce&&_0x2370f2[_0x3eb542(0x295)](_0x45df75=>{const _0x3ad427=_0x3eb542;for(let _0x158764=_0x45df75['startRow'];_0x158764<=_0x45df75[_0x3ad427(0x172)];_0x158764++)for(let _0x3bdf29=_0x45df75[_0x3ad427(0x2fa)];_0x3bdf29<=_0x45df75[_0x3ad427(0x43c)];_0x3bdf29++)_0x46c197[_0x3ad427(0x1eb)](_0x158764,_0x3bdf29);}),_0x4a860c&&_0x6d17eb&&_0x6d17eb[_0x3eb542(0x295)](_0x4b3c4f=>{const _0x3211e4=_0x3eb542;for(let _0x6a1864=_0x4b3c4f[_0x3211e4(0x151)];_0x6a1864<=_0x4b3c4f[_0x3211e4(0x172)];_0x6a1864++)for(let _0x59690f=_0x4b3c4f[_0x3211e4(0x2fa)];_0x59690f<=_0x4b3c4f[_0x3211e4(0x43c)];_0x59690f++)_0x46c197[_0x3211e4(0x385)](_0x6a1864,_0x59690f,_0x4a860c[_0x3211e4(0x1ea)](_0x6a1864,_0x59690f));});}const _0x5a9c89={};return _0x5a9c89[_0x1091ac]={[_0x5c6b5a]:kn(_0x2c7598)},{'runtimeCellData':{[_0x1091ac]:{[_0x5c6b5a]:_0x46c197}},'dirtyRanges':_0x5a9c89};}[_0x2730a7(0x2f9)](){}};Ge=Vn([ke(0x0,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x2dd)])),ke(0x1,f['Inject'](fe[_0x2730a7(0x25d)])),ke(0x2,f[_0x2730a7(0x23f)](f[_0x2730a7(0x178)])),ke(0x3,f['Inject'](fe['GlobalComputingStatusService'])),ke(0x4,f[_0x2730a7(0x23f)](f['Injector']))],Ge);var Ln=Object[_0x2730a7(0x2ad)],Gn=(_0x5fd3a4,_0x34c5cf,_0x174e0f,_0x2dc6a6)=>{const _0x5d04e0=_0x2730a7;for(var _0x4f70a2=_0x2dc6a6>0x1?void 0x0:_0x2dc6a6?Ln(_0x34c5cf,_0x174e0f):_0x34c5cf,_0x1c149d=_0x5fd3a4[_0x5d04e0(0x206)]-0x1,_0x798f82;_0x1c149d>=0x0;_0x1c149d--)(_0x798f82=_0x5fd3a4[_0x1c149d])&&(_0x4f70a2=_0x798f82(_0x4f70a2)||_0x4f70a2);return _0x4f70a2;},et=(_0x4d56dd,_0x1f1efc)=>(_0x1db642,_0x1cc836)=>_0x1f1efc(_0x1db642,_0x1cc836,_0x4d56dd);let je=class extends f[_0x2730a7(0x1af)]{constructor(_0xcc331c,_0x5ad8aa,_0x1a6f85,_0x35e21d){const _0x3e8b88=_0x2730a7;super(),V(this,_0x3e8b88(0x315),new f[(_0x3e8b88(0x248))]()),(this[_0x3e8b88(0x3d2)]=_0xcc331c,this[_0x3e8b88(0x24b)]=_0x5ad8aa,this['_sheetsSelectionsService']=_0x1a6f85,this[_0x3e8b88(0x251)]=_0x35e21d,this[_0x3e8b88(0x1f9)]());}[_0x2730a7(0x1f9)](){const _0x3ed515=_0x2730a7;this['disposeWithMe'](this[_0x3ed515(0x24b)]['interceptCommand']({'getMutations':_0x1e8b41=>{const _0xc3e407=_0x3ed515;if(_0x1e8b41['id']===U[_0xc3e407(0x2eb)]['id']||_0x1e8b41['id']===U[_0xc3e407(0x27d)]['id']){const _0x194bf9=[],_0x55af14=[],_0x41024c=this[_0xc3e407(0x30c)][_0xc3e407(0x374)]()[_0xc3e407(0x1d6)](_0x18f9c2=>_0x18f9c2[_0xc3e407(0x296)]),_0x5df3e4=U[_0xc3e407(0x1bc)](this[_0xc3e407(0x3d2)]);if(!_0x5df3e4)return{'redos':[],'undos':[]};const {unitId:_0x98fbeb,subUnitId:_0x2288bd}=_0x5df3e4,_0x3178b8={},_0x4c81fc=this['_sheetsPivotTableConfigModel'][_0xc3e407(0x33d)](_0x98fbeb,_0x2288bd);if(_0x4c81fc!=null&&_0x4c81fc[_0xc3e407(0x37b)])for(const [_0x1fb348,_0x2f1624]of _0x4c81fc){const {unitId:_0x4ac975,subUnitId:_0x25b4c0,row:_0x378400,col:_0x528ed9}=_0x2f1624[_0xc3e407(0x1f5)];_0x4ac975===_0x5df3e4[_0xc3e407(0x23c)]&&_0x25b4c0===_0x5df3e4[_0xc3e407(0x394)]&&(_0x3178b8[_0x378400+'-'+_0x528ed9]=_0x1fb348);}return _0x41024c&&_0x5df3e4&&_0x41024c[_0xc3e407(0x295)](_0x1c3ad3=>{const _0x13cfff=_0xc3e407;f[_0x13cfff(0x282)][_0x13cfff(0x163)](_0x1c3ad3,(_0x3b11ea,_0x40cfc7)=>{const _0x3b3ed5=_0x13cfff,_0xb8a0ea=_0x3b11ea+'-'+_0x40cfc7;if(_0x3178b8[_0xb8a0ea]){const _0x2c317a=_0x3178b8[_0xb8a0ea];_0x194bf9[_0x3b3ed5(0x27c)]({'id':Ke['id'],'params':{'unitId':_0x98fbeb,'subUnitId':_0x2288bd,'pivotTableId':_0x2c317a}});const _0x3f904d=this[_0x3b3ed5(0x251)]['getCollection'](_0x98fbeb,_0x2c317a),_0xd39e18=this[_0x3b3ed5(0x251)][_0x3b3ed5(0x2f7)](_0x98fbeb,_0x2288bd,_0x2c317a);_0x55af14[_0x3b3ed5(0x27c)]({'id':_e['id'],'params':{'unitId':_0x98fbeb,'subUnitId':_0x2288bd,'pivotTableId':_0x2c317a,'pivotTableConfig':_0xd39e18,'collectionConfig':_0x3f904d}});}});}),{'redos':_0x194bf9,'undos':_0x55af14};}return{'redos':[],'undos':[]};}}));}};je=Gn([et(0x0,f['IUniverInstanceService']),et(0x1,f['Inject'](U[_0x2730a7(0x3bf)])),et(0x2,f[_0x2730a7(0x23f)](U[_0x2730a7(0x3e5)])),et(0x3,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x234)]))],je);var jn=Object[_0x2730a7(0x2ad)],$n=(_0x9c77ac,_0x257051,_0x183523,_0xea8092)=>{const _0x2109b7=_0x2730a7;for(var _0x5adf22=_0xea8092>0x1?void 0x0:_0xea8092?jn(_0x257051,_0x183523):_0x257051,_0x3ff77a=_0x9c77ac[_0x2109b7(0x206)]-0x1,_0x2121c9;_0x3ff77a>=0x0;_0x3ff77a--)(_0x2121c9=_0x9c77ac[_0x3ff77a])&&(_0x5adf22=_0x2121c9(_0x5adf22)||_0x5adf22);return _0x5adf22;},Le=(_0xbab320,_0x229476)=>(_0x1061ed,_0x44e844)=>_0x229476(_0x1061ed,_0x44e844,_0xbab320);let $e=class extends f[_0x2730a7(0x1af)]{constructor(_0x3d8dc6,_0x7eec70,_0x3d34c2,_0x39d0bb,_0x712269){const _0x801573=_0x2730a7;super(),this[_0x801573(0x24b)]=_0x3d8dc6,this['_injector']=_0x7eec70,this[_0x801573(0x3d2)]=_0x3d34c2,this[_0x801573(0x251)]=_0x39d0bb,this['_sheetsPivotTableService']=_0x712269,this[_0x801573(0x34d)]();}[_0x2730a7(0x317)](_0x21eb12,_0x28e628,_0x32372b){const _0x555989=_0x2730a7,{pageView:_0x21f632,cornerView:_0x12259e,rowView:_0x26c9ef,colView:_0x5133b3,dataView:_0x31ba07}=_0x28e628,_0x19b3ac=_0x21eb12;let _0xb15fbe;if(_0x32372b)_0xb15fbe=[...zt(_0x19b3ac)];else{const _0x4a33f1=ne(_0x19b3ac,_0x21f632,!0x0),_0x39905a=_0x21f632[_0x555989(0x257)]>=0x0?_0x21f632[_0x555989(0x257)]+0x1:0x0,_0x14246f=_0x12259e['rowCount'],_0x4616c4=_0x12259e['colCount'],_0x360f0b=_0x4a33f1[_0x555989(0x206)]>0x0?we:0x0,_0x15441a=ne({'row':_0x19b3ac[_0x555989(0x290)]+_0x39905a+_0x360f0b,'col':_0x19b3ac[_0x555989(0x2c0)]},_0x12259e,!0x1,!0x1),_0x2488a2=ne({'row':_0x19b3ac[_0x555989(0x290)]+_0x39905a+_0x360f0b+_0x14246f,'col':_0x19b3ac[_0x555989(0x2c0)]},_0x26c9ef,!0x1,!0x0),_0x40014e=ne({'row':_0x19b3ac[_0x555989(0x290)]+_0x39905a+_0x360f0b,'col':_0x19b3ac[_0x555989(0x2c0)]+_0x4616c4},_0x5133b3,!0x1,!0x0),_0x115605=ne({'row':_0x19b3ac[_0x555989(0x290)]+_0x39905a+_0x360f0b+_0x14246f,'col':_0x19b3ac['col']+_0x4616c4},_0x31ba07,!0x1,!0x0);_0xb15fbe=[..._0x4a33f1,..._0x15441a,..._0x2488a2,..._0x40014e,..._0x115605];}return _0xb15fbe;}[_0x2730a7(0x34d)](){const _0x285f71=_0x2730a7;this[_0x285f71(0x3f6)](this[_0x285f71(0x26c)][_0x285f71(0x3ea)][_0x285f71(0x1d2)](this[_0x285f71(0x26c)]['interceptor']['getInterceptPoints']()[_0x285f71(0x168)],{'handler':(_0x1725ea,_0x10e211)=>{const _0x69a17=_0x285f71,{cellInfo:_0x4f7604,view:_0x4f761c,isEmpty:_0x1c5804}=_0x10e211,_0x230393=_0x4f7604,{unitId:_0x4ea832,subUnitId:_0x551452}=_0x230393,_0x7bf984=this[_0x69a17(0x317)](_0x4f7604,_0x4f761c,_0x1c5804),_0x3134f7=this[_0x69a17(0x24b)]['generateMutationsByRanges']({'unitId':_0x4ea832,'subUnitId':_0x551452,'ranges':_0x7bf984}),_0x2ffe0e=Nt(this[_0x69a17(0x2e8)],_0x4ea832,_0x551452,_0x7bf984);_0x2ffe0e['shouldClear']&&(_0x3134f7[_0x69a17(0x191)][_0x69a17(0x27c)](_0x2ffe0e['setRangeValueRedoMutation']),_0x3134f7[_0x69a17(0x3d3)][_0x69a17(0x27c)](_0x2ffe0e[_0x69a17(0x34f)]));const _0x3cafa4=this[_0x69a17(0x184)](_0x4f761c,_0x4f7604);return _0x3134f7[_0x69a17(0x191)][_0x69a17(0x27c)](..._0x3cafa4[_0x69a17(0x191)]),_0x3134f7['undos'][_0x69a17(0x27c)](..._0x3cafa4['undos']),{'redos':_0x3134f7[_0x69a17(0x191)],'undos':_0x3134f7[_0x69a17(0x3d3)]};}}));}['getAutoFitColumnsMutations'](_0xacf53c,_0x1d22f3){const _0x1ed00b=_0x2730a7,{col:_0x6b44c9,unitId:_0x4e33f0,subUnitId:_0x228bfb}=_0x1d22f3,_0x1af6c7=[],_0xc80485=[],_0x551109=U[_0x1ed00b(0x1bc)](this['_univerInstanceService'],{'unitId':_0x4e33f0,'subUnitId':_0x228bfb});if(!_0x1d22f3||!_0xacf53c||!_0x551109)return{'undos':_0xc80485,'redos':_0x1af6c7};const _0xb424da=this[_0x1ed00b(0x251)][_0x1ed00b(0x226)](),{colView:_0x309ebd,dataView:_0x46c1ef,cornerView:_0x2736d3,rowView:_0x5fa2fb,formatMap:_0x49824c}=_0xacf53c,_0x30aa89=Bt(_0x309ebd,_0xb424da,!0x0,_0x49824c),_0x53a28f=Bt(_0x5fa2fb,_0xb424da,!0x1,_0x49824c),_0x459ea4=cn(_0x46c1ef),_0x4c2de9=dn(_0x2736d3),{worksheet:_0x268183}=_0x551109;if(typeof window<'u'&&window[_0x1ed00b(0x425)]){const _0xd87965=Ae[_0x1ed00b(0x2c6)]({...oe['colStyle']}),_0x2d0fec=Ae[_0x1ed00b(0x2e9)][_0x1ed00b(0x17a)](_0x30aa89,_0xd87965)[_0x1ed00b(0x1d1)]+0x10,_0x36731a=Ae[_0x1ed00b(0x2e9)][_0x1ed00b(0x17a)](_0x459ea4,_0xd87965)['width'],_0x5a3d49=Math[_0x1ed00b(0x18e)](Math[_0x1ed00b(0x18f)](_0x2d0fec,_0x36731a))+0x10,_0xf2d35=Math['floor'](Ae['FontCache'][_0x1ed00b(0x17a)](_0x53a28f,_0xd87965)[_0x1ed00b(0x1d1)]),_0x364953=Math['floor'](Ae[_0x1ed00b(0x2e9)][_0x1ed00b(0x17a)](_0x4c2de9,_0xd87965)['width']),_0x2acf8a=Math[_0x1ed00b(0x18f)](_0xf2d35,_0x364953,0x28)+0xc,_0x9b5c05=_0x309ebd[_0x1ed00b(0x2f8)]+_0x2736d3[_0x1ed00b(0x2f8)],_0xb5546={},_0x5d790b={};for(let _0x51412d=_0x6b44c9;_0x51412d<_0x6b44c9+_0x9b5c05;_0x51412d++){const _0x482797=_0x268183[_0x1ed00b(0x208)](_0x51412d);_0xb5546[_0x51412d]=_0x482797,_0x51412d-_0x6b44c9<_0x2736d3[_0x1ed00b(0x2f8)]?_0x5d790b[_0x51412d-_0x6b44c9]=_0x2acf8a:_0x5d790b[_0x51412d-_0x6b44c9]=_0x5a3d49;}_0x1af6c7[_0x1ed00b(0x27c)]({'id':U['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x228bfb,'unitId':_0x4e33f0,'ranges':[{'startColumn':_0x6b44c9,'endColumn':_0x6b44c9+_0x9b5c05-0x1,'startRow':0x0,'endRow':_0x268183[_0x1ed00b(0x258)]()-0x1}],'colWidth':_0x5d790b}}),_0xc80485[_0x1ed00b(0x27c)]({'id':U[_0x1ed00b(0x247)]['id'],'params':{'subUnitId':_0x228bfb,'unitId':_0x4e33f0,'ranges':[{'startColumn':_0x6b44c9,'endColumn':_0x6b44c9+_0x9b5c05-0x1,'startRow':0x0,'endRow':_0x268183[_0x1ed00b(0x258)]()-0x1}],'colWidth':_0xb5546}});}return{'undos':_0xc80485,'redos':_0x1af6c7};}};$e=$n([Le(0x0,f[_0x2730a7(0x23f)](U[_0x2730a7(0x3bf)])),Le(0x1,f[_0x2730a7(0x23f)](f[_0x2730a7(0x39c)])),Le(0x2,f['Inject'](f[_0x2730a7(0x3d8)])),Le(0x3,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x234)])),Le(0x4,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x29d)]))],$e);var Jn=Object['getOwnPropertyDescriptor'],Qn=(_0x22292c,_0x3af29d,_0x2256e9,_0x44ef8e)=>{const _0x35e564=_0x2730a7;for(var _0x2ff3b6=_0x44ef8e>0x1?void 0x0:_0x44ef8e?Jn(_0x3af29d,_0x2256e9):_0x3af29d,_0x46f215=_0x22292c[_0x35e564(0x206)]-0x1,_0x1f96a6;_0x46f215>=0x0;_0x46f215--)(_0x1f96a6=_0x22292c[_0x46f215])&&(_0x2ff3b6=_0x1f96a6(_0x2ff3b6)||_0x2ff3b6);return _0x2ff3b6;},Se=(_0x1ec683,_0x243eb6)=>(_0x2fef4f,_0x1c9399)=>_0x243eb6(_0x2fef4f,_0x1c9399,_0x1ec683);let Je=class extends f['Disposable']{constructor(_0x273bde,_0x154bbb,_0x174ab7,_0x327eaf,_0x16122,_0x4d5c5f,_0x4354f9){const _0x27a4d2=_0x2730a7;super(),V(this,_0x27a4d2(0x315),new f['DisposableCollection']()),(this[_0x27a4d2(0x2e8)]=_0x273bde,this[_0x27a4d2(0x3b0)]=_0x154bbb,this[_0x27a4d2(0x1ef)]=_0x174ab7,this[_0x27a4d2(0x3d2)]=_0x327eaf,this[_0x27a4d2(0x251)]=_0x16122,this['_sheetsPivotTableAdaptorModel']=_0x4d5c5f,this['_sheetInterceptorService']=_0x4354f9,this[_0x27a4d2(0x382)]());}['_onRefRangeChange'](){const _0x60865f=_0x2730a7,_0x4e98bc=(_0x4b2d9d,_0x484191)=>{const _0x5c3f86=_0x33c9,_0x5873ba=this[_0x5c3f86(0x3d2)]['getCurrentUnitForType'](f['UniverInstanceType']['UNIVER_SHEET']);if(!_0x5873ba||!(_0x5873ba==null?void 0x0:_0x5873ba[_0x5c3f86(0x240)](_0x484191)))return;this[_0x5c3f86(0x315)][_0x5c3f86(0x2f9)]();const _0x5bdacf=_0x5da7f0=>this[_0x5c3f86(0x32c)](_0x5da7f0,_0x4b2d9d,_0x484191),_0x3ff249=this[_0x5c3f86(0x251)][_0x5c3f86(0x33d)](_0x4b2d9d,_0x484191);if(!(_0x3ff249!=null&&_0x3ff249['size']))return;Array[_0x5c3f86(0x2d5)](_0x3ff249['values']())[_0x5c3f86(0x1d6)](_0x46474a=>{const _0x358033=_0x5c3f86,{row:_0x3a7919,col:_0x28ad45}=_0x46474a[_0x358033(0x1f5)];return f[_0x358033(0x325)](_0x3a7919,_0x28ad45);})['forEach'](_0x4ed84d=>{const _0x3bc732=_0x5c3f86;this['disposableCollection'][_0x3bc732(0x437)](this[_0x3bc732(0x3b0)][_0x3bc732(0x20a)](_0x4ed84d,_0x5bdacf,_0x4b2d9d,_0x484191));});},_0x2873f9=()=>{const _0x1d752d=_0x33c9,_0x150a4a=this[_0x1d752d(0x3d2)][_0x1d752d(0x339)](f[_0x1d752d(0x36a)][_0x1d752d(0x167)]);if(_0x150a4a){const _0x396b4f=_0x150a4a[_0x1d752d(0x2d1)]();if(!_0x396b4f)return;_0x4e98bc(_0x150a4a[_0x1d752d(0x29f)](),_0x396b4f[_0x1d752d(0x2e6)]());}};this[_0x60865f(0x3f6)](this['_commandService']['onCommandExecuted'](_0x42b6e1=>{const _0x2da154=_0x60865f;if(_0x42b6e1['id']===U[_0x2da154(0x217)]['id']){const _0x495ab5=_0x42b6e1[_0x2da154(0x415)],_0xc37b0f=_0x495ab5[_0x2da154(0x394)],_0x32e8a4=_0x495ab5[_0x2da154(0x23c)];if(!_0xc37b0f||!_0x32e8a4)return;_0x4e98bc(_0x32e8a4,_0xc37b0f);}})),this[_0x60865f(0x3f6)](this[_0x60865f(0x251)][_0x60865f(0x41c)][_0x60865f(0x361)](_0x1d1e7f=>{_0x1d1e7f&&_0x2873f9();})),this['disposeWithMe'](this[_0x60865f(0x251)][_0x60865f(0x3f3)][_0x60865f(0x361)](_0x51a6bd=>{const _0x53b509=U['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x53b509)return;const {unitId:_0x5e52da,subUnitId:_0x31147b}=_0x53b509,{unitId:_0x5477da,subUnitId:_0xee272e}=_0x51a6bd;_0x5e52da!==_0x5477da||_0x31147b!==_0xee272e||_0x4e98bc(_0x5e52da,_0x31147b);})),_0x2873f9();}['_refRangeHandle'](_0x1056da,_0x207e2f,_0x20a1fe){const _0x48564a=_0x2730a7;switch(_0x1056da['id']){case U[_0x48564a(0x160)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x1056da[_0x48564a(0x415)],_0x207e2f,_0x20a1fe);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x7a57ba,_0x57fd33,_0xe2290){const _0x4d2bf3=_0x2730a7,{fromRange:_0x3ebc46,toRange:_0x1a262b}=_0x7a57ba,_0x3c64c7=[],_0x446aa8=[],_0x45bb73=U[_0x4d2bf3(0x1bc)](this[_0x4d2bf3(0x3d2)]);if(!_0x45bb73)return{'undos':_0x446aa8,'redos':_0x3c64c7};if(_0x57fd33!==_0x45bb73['unitId']||_0xe2290!==_0x45bb73[_0x4d2bf3(0x394)])return{'undos':_0x446aa8,'redos':_0x3c64c7};const _0x2c3e89=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x57fd33,_0xe2290);if(_0x2c3e89!=null&&_0x2c3e89['size'])for(const [_0x73330,_0x589591]of _0x2c3e89){const {unitId:_0x1e8f9f,subUnitId:_0x2049ee,row:_0x5a65c2,col:_0x52c91c}=_0x589591[_0x4d2bf3(0x1f5)];if(_0x1e8f9f===_0x45bb73['unitId']&&_0x2049ee===_0x45bb73['subUnitId']){const _0x1a6b10=f[_0x4d2bf3(0x325)](_0x5a65c2,_0x52c91c);if(f['Rectangle'][_0x4d2bf3(0x233)](_0x1a6b10,_0x3ebc46)){const _0x4ba1bf=_0x5a65c2-_0x3ebc46[_0x4d2bf3(0x151)],_0x509466=_0x52c91c-_0x3ebc46['startColumn'],_0x550670={'row':_0x1a262b[_0x4d2bf3(0x151)]+_0x4ba1bf,'col':_0x1a262b[_0x4d2bf3(0x2fa)]+_0x509466};_0x3c64c7[_0x4d2bf3(0x27c)]({'id':Fe['id'],'params':{'unitId':_0x1e8f9f,'subUnitId':_0x2049ee,'pivotTableId':_0x73330,'targetCellPosition':_0x550670}}),_0x446aa8[_0x4d2bf3(0x27c)]({'id':Fe['id'],'params':{'unitId':_0x1e8f9f,'subUnitId':_0x2049ee,'pivotTableId':_0x73330,'targetCellPosition':{'row':_0x5a65c2,'col':_0x52c91c}}});const _0x226c27=_0x550670[_0x4d2bf3(0x290)]-_0x5a65c2,_0x5025d8=_0x550670['col']-_0x52c91c,_0x1aa2b0=[],_0x14fac3=this[_0x4d2bf3(0x146)]['getPivotItemRenderInfoCache'](_0x1e8f9f,_0x2049ee,_0x73330),_0x102eb4=_0x14fac3==null?void 0x0:_0x14fac3['rangesInfo'];if(_0x102eb4){Object['keys'](_0x102eb4)[_0x4d2bf3(0x295)](_0x2ef4a0=>{const _0x293cc7=_0x4d2bf3;_0x102eb4[_0x2ef4a0][_0x293cc7(0x295)](_0x53fce9=>{const _0x193b8f=_0x293cc7,_0x3d1cac={..._0x53fce9};_0x3d1cac['startRow']=_0x53fce9[_0x193b8f(0x151)]+_0x226c27,_0x3d1cac[_0x193b8f(0x172)]=_0x53fce9['endRow']+_0x226c27,_0x3d1cac['startColumn']=_0x53fce9['startColumn']+_0x5025d8,_0x3d1cac['endColumn']=_0x53fce9[_0x193b8f(0x43c)]+_0x5025d8,_0x1aa2b0[_0x193b8f(0x27c)](_0x3d1cac);});});const _0x40dd72=this[_0x4d2bf3(0x24b)]['generateMutationsByRanges']({'unitId':_0x1e8f9f,'subUnitId':_0x2049ee,'ranges':_0x1aa2b0});_0x3c64c7[_0x4d2bf3(0x27c)](..._0x40dd72[_0x4d2bf3(0x191)]),_0x446aa8[_0x4d2bf3(0x27c)](..._0x40dd72[_0x4d2bf3(0x3d3)]);const _0x5a6a18=Nt(this[_0x4d2bf3(0x2e8)],_0x1e8f9f,_0x2049ee,_0x1aa2b0);_0x5a6a18[_0x4d2bf3(0x1b0)]&&(_0x3c64c7[_0x4d2bf3(0x27c)](_0x5a6a18['setRangeValueRedoMutation']),_0x446aa8[_0x4d2bf3(0x27c)](_0x5a6a18['setRangeValueUndoMutation']));}}}}return{'redos':_0x3c64c7,'undos':_0x446aa8};}};Je=Qn([Se(0x0,f['Inject'](f[_0x2730a7(0x39c)])),Se(0x1,f[_0x2730a7(0x23f)](U[_0x2730a7(0x33a)])),Se(0x2,f[_0x2730a7(0x178)]),Se(0x3,f['IUniverInstanceService']),Se(0x4,f['Inject'](exports[_0x2730a7(0x234)])),Se(0x5,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x2d0)])),Se(0x6,f[_0x2730a7(0x23f)](U['SheetInterceptorService']))],Je);var Wn=Object[_0x2730a7(0x2ad)],qn=(_0x2c97b8,_0x9304ff,_0x2e2c23,_0xcb2399)=>{const _0x5ad12a=_0x2730a7;for(var _0x4d1037=_0xcb2399>0x1?void 0x0:_0xcb2399?Wn(_0x9304ff,_0x2e2c23):_0x9304ff,_0x412ecd=_0x2c97b8[_0x5ad12a(0x206)]-0x1,_0x50f836;_0x412ecd>=0x0;_0x412ecd--)(_0x50f836=_0x2c97b8[_0x412ecd])&&(_0x4d1037=_0x50f836(_0x4d1037)||_0x4d1037);return _0x4d1037;},Gt=(_0xc960e1,_0x83ebb5)=>(_0x1b1683,_0x105a3e)=>_0x83ebb5(_0x1b1683,_0x105a3e,_0xc960e1);let Qe=class extends f[_0x2730a7(0x1af)]{constructor(_0x1100f7,_0x5ea653){const _0x5eaa5f=_0x2730a7;super(),this['_sheetInterceptorService']=_0x1100f7,this[_0x5eaa5f(0x251)]=_0x5ea653,this[_0x5eaa5f(0x397)]();}['_initRemoveSheetCommandInterceptor'](){const _0x3d14af=_0x2730a7;this[_0x3d14af(0x3f6)](this[_0x3d14af(0x24b)]['interceptCommand']({'getMutations':_0x1ce70d=>{const _0x1e902d=_0x3d14af;if(_0x1ce70d['id']===U['RemoveSheetCommand']['id']){const _0x4580ea=[],_0x5da3fc=[],_0x42cfe9=_0x1ce70d[_0x1e902d(0x415)],{unitId:_0x47fcc9,subUnitId:_0x2073e7}=_0x42cfe9;if(!_0x47fcc9||!_0x2073e7)return{'undos':_0x5da3fc,'redos':_0x4580ea};const _0x130a5a=this[_0x1e902d(0x251)][_0x1e902d(0x33d)](_0x47fcc9,_0x2073e7);if(_0x130a5a!=null&&_0x130a5a['size'])for(const [_0x453d48,_0x5a8f48]of _0x130a5a){_0x4580ea[_0x1e902d(0x27c)]({'id':Ke['id'],'params':{'unitId':_0x47fcc9,'subUnitId':_0x2073e7,'pivotTableId':_0x453d48}});const _0x2c72b3={...this[_0x1e902d(0x251)][_0x1e902d(0x2ac)](_0x47fcc9,_0x453d48)};_0x5da3fc[_0x1e902d(0x27c)]({'id':_e['id'],'params':{'unitId':_0x47fcc9,'subUnitId':_0x2073e7,'pivotTableId':_0x453d48,'pivotTableConfig':_0x5a8f48,'collectionConfig':_0x2c72b3}});}return{'redos':_0x4580ea,'undos':_0x5da3fc};}return{'redos':[],'undos':[]};}}));}};Qe=qn([Gt(0x0,f[_0x2730a7(0x23f)](U[_0x2730a7(0x3bf)])),Gt(0x1,f['Inject'](exports['SheetsPivotTableConfigModel']))],Qe);var Yn=Object['getOwnPropertyDescriptor'],Kn=(_0x311dec,_0x1eabde,_0x22c805,_0x4b6828)=>{const _0x511363=_0x2730a7;for(var _0x2affa5=_0x4b6828>0x1?void 0x0:_0x4b6828?Yn(_0x1eabde,_0x22c805):_0x1eabde,_0x4a82dc=_0x311dec[_0x511363(0x206)]-0x1,_0x39d21b;_0x4a82dc>=0x0;_0x4a82dc--)(_0x39d21b=_0x311dec[_0x4a82dc])&&(_0x2affa5=_0x39d21b(_0x2affa5)||_0x2affa5);return _0x2affa5;},ye=(_0x2b4aff,_0x23fe47)=>(_0x4fe5a3,_0x4495e5)=>_0x23fe47(_0x4fe5a3,_0x4495e5,_0x2b4aff);function _0x5038(){const _0x224df1=['getRangeStartEndInfo','setCollapse','InterceptorEffectEnum','sequenceExecute','rangeType','getDisplayName','subUnitId','getFormatInfo','call','_initRemoveSheetCommandInterceptor','sheet.mutation.remove-group-collection','_collectionChange$','PivotSubtotalTypeEnum','UpdatePivotTableSourceRangeMutation','Injector','_deletePivotTableInstanceCache','varp','RemoveSheetMutation','sheets-pivot.countName','IActiveDirtyManagerService','SetPivotSetting','AddPivotTable','getId','areaInfo','_initLocale','#FFFFFF','_updatePivotTableInstanceCache','isArray','dateType','asyncInterceptor','sheets.tabs.sheet','getGroupFieldsInfoByIds','mergeWorksheetSnapshotWithDefault','getFullYear','_refRangeService','pbt','sheet.command.update-pivot-value-position','fontRenderExtension','count','sheets-pivot.emptyPivot.row','4mNllQX','BLANK_PLACEHOLDER','sheets-pivot.dateGroup.quarter','sheets-pivot.value','3ksYcdBs\x20G7YQ2RcdBs(IdY7sA7,\x20RkfIdYv72)\x20{\x20\x20\x20\x20cQ2\x20{\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20IdY7sA7Zs3BDgQcxQQg2\x20=\x20IdY7sA7.ARIdc(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20BQdTdsS7AAgT7\x20=\x208VKH.RgQA7(gcBf(IdY7sA7Zs3BDgQcxQQg2[j]));\x20\x20\x20\x20\x20\x20\x20\x20d3\x20(!BQdTdsS7AAgT7.kG)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20BQdTdsS7AAgT7.kG\x20=\x20HkNf7Q(IdY7sA7Zs3BDgQcxQQg2[n]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20dAJBQC7Q\x20=\x20c2R7B3\x20JBQC7QzIBfgIVYBR7\x20!==\x20\x27ksG73ds7G\x27\x20&&\x20A7I3\x20dsAcgsY7B3\x20JBQC7QzIBfgIVYBR7;\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20dAuQBoA7Q\x20=\x20c2R7B3\x20odsGBo\x20!==\x20\x27ksG73ds7G\x27\x20&&\x20c2R7B3\x20odsGBo.IBYgcdBs\x20!==\x20\x27ksG73ds7G\x27;\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20YBsc7Pc\x20=\x20dAJBQC7Q\x20?\x20A7I3\x20:\x20(dAuQBoA7Q\x20?\x20odsGBo\x20:\x20TIBfgI1qdA);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20N7AAgT7JBQG\x20=\x20YBsc7Pc.__ugA7Ln__.RgQA7(IdY7sA7Zs3BDgQcxQQg2[j]);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20N7AAgT7\x20=\x20YBsc7Pc.__F7P__.AcQdsTd32(N7AAgT7JBQG);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20AdTsgckQ7JBQG\x20=\x20YBsc7Pc.__ugA7Ln__.RgQA7(IdY7sA7Zs3BDgQcxQQg2[X]);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20AdTsgckQ7\x20=\x20YBsc7Pc.__F7P__.AcQdsTd32(AdTsgckQ7JBQG);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20AdTsMgIdG\x20=\x20YBsc7Pc.__w7Qd32__(AdTsgckQ7,\x20N7AAgT7,\x20RkfIdYv72);\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20GBNgds\x20=\x20BQdTdsS7AAgT7.GN;\x20\x20\x20\x20\x20\x20\x20\x203ksYcdBs\x20dAbBNgdsSgcYqdsT(BDgcc7Qs,\x20BFBAc)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20Rgcc7Qs\x20=\x20BDgcc7Qs.Q7RIgY7(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20qBAc\x20=\x20BFBAc.Q7RIgY7(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20Rgcc7QsDgQcA\x20=\x20Rgcc7Qs.ARIdc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20qBAcDgQcA\x20=\x20qBAc.ARIdc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20d3\x20(!Rgcc7Qs.dsYIkG7A(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Q7ckQs\x20Rgcc7Qs\x20===\x20qBAc;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20d3\x20(Rgcc7QsDgQcA.I7sTcq\x20<\x20j\x20||\x20Rgcc7QsDgQcA[i]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Q7ckQs\x203gIA7;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20Rgcc7QsVk33dP\x20=\x20Rgcc7QsDgQcA.AIdY7(h).eBds(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20qBAcVk33dP\x20=\x20qBAcDgQcA.AIdY7(-Rgcc7QsDgQcA.I7sTcq\x20+\x20h).eBds(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Q7ckQs\x20Rgcc7QsVk33dP\x20===\x20qBAcVk33dP;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20I7c\x20GBNgdsMgIdG\x20=\x203gIA7;\x20\x20\x20\x20\x20\x20\x20\x20d3\x20(dAuQBoA7Q)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GBNgdsMgIdG\x20=\x20(GBNgds\x20&&\x20GBNgds.I7sTcq)\x20?\x20GBNgds.ABN7((GNZc7N)\x20=>\x20dAbBNgdsSgcYqdsT(GNZc7N,\x20IBYgcdBs.qBAcsgN7))\x20:\x20cQk7;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20d3\x20(IBYgcdBs.qBAcsgN7\x20===\x20\x27IBYgIqBAc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GBNgdsMgIdG\x20=\x20cQk7;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20}\x207IA7\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GBNgdsMgIdG\x20=\x20cQk7;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20YBsAc\x20wgIdG\x20=\x20AdTsMgIdG\x20&&\x20GBNgdsMgIdG;\x20\x20\x20\x20\x20\x20\x20\x20Q7ckQs\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wgIdG,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N7AAgT7:\x20BQdTdsS7AAgT7,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20YgcYq\x20(7QQBQ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20Q7ckQs\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wgIdG:\x203gIA7,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N7AAgT7:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','generateSetRangeValueMutations','setDirty','_textInfo','entries','SheetInterceptorService','clear','InterceptorManager','RenameField','sheets-pivot.cellDateGroupDisplay.quarter','colHeaderMap','addPivotField','pageRanges','ResetPivotTable','1111103Cklnwm','getTypeOfUnitDisposed$','getSubUnitPivotMatrix','_queryingMap','reduce','_initPivotDataGetListener','sheet.mutation.send-pivot-config-local','_ensurePivotTableRangeInfo','MovePivotField','viewData$','_univerInstanceService','undos','sheets-pivot.subTotal','_subjectCollectionChange','SetPivotSubtotalTypeMutation','getCellMatrix','IUniverInstanceService','paths','workbook\x20is\x20not\x20found','PivotCellStyleTypeEnum','PivotViewCellValueTypeEnum','FieldsCollection','getTargetByPivotId','_viewUpdate$','executeCommand','205160BeNgLZ','isPrefixValue','PivotView','SHEET_PIVOT_TABLE_PLUGIN','SheetsSelectionsService','setPivotTable','sheet.command.update-pivot-table-source-range','pivotPerformCheck','getRangeKey','interceptor','Quarter','STRING','prototype','CommandType','rangesInfo','HourMinute','sheet.mutation.pivot-update-field-source-info','splice','pivotConfigChange$','getCellRaw','toStringTag','disposeWithMe','UpdateValuePositionMutation','getFieldListByArea','getDataFieldItemInfo','getConfig','keys','Var\x20of\x20','UniverLicensePlugin','sheet.mutation.send-pivot-view-local','RemoveRowMutation','removeValueFilterInfoByValueFieldId','sheets-pivot.averageName','addCollection','valueIndex','UpdatePivotSource','onCommandExecuted','INTERCEPTOR_POINT','isBottomTotal','sheet.mutation.set-pivot-collapse','_subjectFieldsCollectionChange','sheet.command.reset-pivot-fields-config','configVersion$','sheets-pivot.dateGroup.yearMonth','fieldsConfig','sheet.mutation.remove-pivot-field','RemovePivotTableMutation','_sheetsPivotRpcService','setFieldFormat','BLANK_ROW_COUNT','addField','symbol','params','NAME','sheets-pivot.emptyPivot.column','Module','valuePosition','createDataFieldId','Filter','pivotInitCompleted$','sourceRangeInfo','colInfo','deleteUnitId','MAX_SAFE_INTEGER','subtotal','forRow','sheet.command.set-pivot-collapse','DEFAULT_WORKSHEET_COLUMN_COUNT','document','removeCollectionImp','SetFilterInfo','rowFields','ManualFilter','_config','Year','cornerRanges','SheetsPivotRPCService','getDataFieldByTableId','(Blank)','MUTATION','SetPivotSort','_model','PivotTableViewDirtyMarkOperation','_ensurePivotItemRenderInfoCache','oldMatrix','sheet.command.add-pivot-field','add','refreshGroupField','sortInfo','AddField','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','endColumn','NUMBER','addCollectionByJSON','getUpdateRangeDeleteIds','markDirty','rangeKeyMap','SetFieldFormat','minDate','_globalSubject','valueFilter','SetRangeValuesMutation','sheet.mutation.set-pivot-option','isValue','MIN_SAFE_INTEGER','pivotTableId','_ensurePivotTableMatrixInfo','updateRangeKeyMap','sheet.mutation.pivot-update-value-position','getFilterInfo','MonthDate','isBaseGroupField','SetPivotFilterCommand','_initUnitDisposed','_sheetsPivotTableAdaptorModel','UpdateDateGroupCommand','sheets-pivot.cellDateGroupDisplay.minute','getPivotPerformCheck','pushUndoRedo','sheets-pivot.columnName','updateConfigCache','getDataFieldByDataFieldId','isDate','originTargetInfo','setSubtotalType','startRow','has','MovePivotTableCommand','SetSheetsFilterRangeMutation','Sum\x20of\x20','SetPivotFilter','getFieldById','level','new','random','updateRenderCache','resetPivotTable','LifecycleService','collections','type','MoveRangeCommand','Date','getName','foreach','_pivotTableRangeInfo','_markDirty$','complete','UNIVER_SHEET','PIVOT_MUTATION_GENERATE','LocaleService','notExecuteFormula','AddPivotField','sheet.command.add-pivot-table','cornerInfo','parse','Minute','collectionChange$','average','endRow','getColCount','PivotTableValuePositionEnum','tableFieldId','sheetName','matrix','ICommandService','UpdatePivotTableSourceRangeCommand','getTextSize','LS_CONFIG_KEY','addRecord','SetPivotCollapse','createInterceptorKey','return\x20','ResetPivotFieldsConfigCommand','defineProperty','MoveRangeMutation','Plugin','getAutoFitColumnsMutations','rgb(240,241,243)','RemovePivotFieldCommand','PivotDataFieldDataTypeEnum','value','#e6ebfb','getformat','UpdateFieldPosition','resetArea','unionPivotViewRange','floor','max','InsertSheetMutation','redos','sheets-pivot.stdDevpName','CustomCommandExecutionError','_pivotTableInstanceCache','_localeService','#f4f4f5','createValueField','SetPivotValueFilterCommand','2067252KgpbYq','_globalComputingSrv','sheets-pivot.cellDateGroupDisplay.month','getFieldDataType','SetPivotSortMutation','_initSnapshot','hasField','merge','var','getSourceName','sheet.mutation.set-pivot-field-subtotal-type','values','SetPivotOptionMutation','Row','sheet.command.set-pivot-fields-config','Style','RenamePivotFieldMutation','sheets-pivot.emptyPivot.filter','AddPivotFieldCommand','ΣValue','COMMAND','sourceName','Disposable','shouldClear','setValuePivotFilter','addPivotTable','\x20-\x20','data','SetValuePivotFilter','single','getIntersects','generateRandomId','getDate','SetSubtotalType','handleSourceRangeChange','getSheetCommandTarget','getSheetBySheetName','Column','ObjectMatrix','dataStream','Values','PivotDataFieldTypeEnum','sheets-pivot.blank','sheets-pivot.maxName','getDataFieldManager','name','number','updateCollectionConfig','YearQuarter','sheet.mutation.add-pivot-field','removeSourceRangeChange','getPivotTableInstance','_viewData$','dataFields','UpdatePivotValuePositionCommand','Collapse','width','intercept','SetPivotPositionMutation','sum','createCollectionWithDataRange','map','getViewData','unshift','getDataFieldBySourceName','CELL_CONTENT','sheet.mutation.update-date-group','#e6ebfa','_sheetsPivotDataSourceModel','createAsyncInterceptorKey','InsertSheetUndoMutationFactory','PivotTableOperationEnum','sheets-pivot.grandTotal','_fieldsCollectionChange$','_ensureViewDataMap','setPivotInitCompleted','hasOwnProperty','setDataRecordCount','info','registerDirtyService','getPivotInfoByLicense','getValue','realDeleteValue','UpdateSource','body','updatePivotTableMatrixInfo','_commandService','registerCommand','SetPivotSortCommand','setLabelFilterInfo','some','getPivotDisplayConfig','targetCellInfo','_exclusiveRangeService','generateNewSheetName','deleteField','_initClearSelectionCommandInterceptor','cellValue','PivotTableFiledAreaEnum','updateViewData','Subject','pushComputingStatusSubject','BadReference','clearExclusiveRangesByGroupId','renameField','isDateGroupFieldJSON','movePivotField','getSheets','#eceeff','length','getAdjustRangesPosition','getColumnWidth','contains','registerRefRange','_deleteModelCache','rangeKey','_pivotRenderValueMatrixCache','SHEET_PIVOT_IN_MAIN_THREAD','updateViewInfo','getTargetByPivotTableId','StdDev\x20of\x20','isEmpty','displayName','dataFieldId','getAutoDisplayName','setSortInfo','SetWorksheetActiveOperation','IExclusiveRangeService','RANGE_TYPE','delete','_createExclusiveRange','fetchThroughInterceptors','sheet.command.set-pivot-value-filter','NO_COMMERCIAL','SetRangeValuesUndoMutationFactory','SetPivotCollapseMutation','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','fieldsCollectionChange$','collectionConfig','fields','uniqueDataFieldName','getTextInfo','getMatrixValue','SetPivotFilterMutation','handleAsyncResponse','_collectionConfigModel','setSourceName','getPivotTableInfo','#1d32e9','Panel','lastCol','DrillDown','BehaviorSubject','Min\x20of\x20','intersects','SheetsPivotTableConfigModel','sheet.mutation.send-pivot-data-local','filter','setRange','SetValueFilter','column','dataFieldManagerConfig','deepClone','unitId','getNoUsedDataFieldIds','setOptions','Inject','getSheetBySheetId','replace','pluginName','sheets-pivot.sumName','colStyle','getFieldPositionInfoById','filterFields','SetWorksheetColWidthMutation','DisposableCollection','updateDirtyPivotTable','_globalComputedEndHelpFunc','_sheetInterceptorService','getColumnCount','forValue','_initRegisterCommand','_initViewModelBySheetInterceptor','Grand\x20Total','_sheetsPivotTableConfigModel','Div0','_init','1656840elbsPo','query','pageStyle','lastRow','getRowCount','sheets-pivot.cellDateGroupDisplay.hour','includes','numberToABC','batch','IFeatureCalculationManagerService','updateAllDisplayName','_getAutoName','sheet.mutation.add-pivot-table','fieldId','PivotMultipleValueId','sheet.command.pivot-drill-down','setPivotCollapse','columnFields','Varp\x20of\x20','Rectangle','updateFieldPosition','_ensurePivotItemRenderValueMatrixCache','getDirtyInfo','isFeatureAuthorizedWithinTime','_sheetsPivotTableService','getDataFieldByRangeKey','SetOptions','handleMoveRange','limit\x20pivot','refreshData','FORCE_STRING','getHeaderMapItem','sheet.command.remove-pivot-field','adjustSheetCellData','markDirty$','GrandTotal','getTableFieldById','GlobalConfig','Optional','numfmt','push','ClearSelectionAllCommand','sheet.command.set-pivot-filter','update','asObservable','IResourceManagerService','Range','generateHexNumber','split','min','New','pivotTableConfigs','getPivotTableIdByCell','Set','setPivotSort','9FNGrfg','format','createLabelField','_dataFieldManagerCollection','getFieldIds','row','defaultThemeStyle','_featureCalculationManagerService','removeCollections','getRangeData','forEach','range','valueFields','getFieldCountByArea','getFieldFormat','removePivotTable','sheets-pivot.cellDateGroupDisplay.date','sheets-pivot.minName','SheetsPivotTableService','ErrorType','getUnitId','find','setDateType','_updateModelCache','PivotCallbackEnum','RemovePivotField','getLastRow','panel','endCollectChangeset','Add','grandTotal','getValueIndex','Product\x20of\x20','getCollection','getOwnPropertyDescriptor','unshiftString','toJSON','113319Gwlaox','addFieldWithSourceId','generateNullCell','collapseInfo','PositionType','_resourceManagerService','rowHeaderMap','valid','2541936xyzVAn','getPivotTableRangeInfo','getSheetFeatureLimit','NORMAL','RemoveField','Hour','measure','Delete','col','setRangeKeyMap','DEFAULT_WORKSHEET_ROW_COUNT','registerCallbackWithEvent','setName','AddPivotTableWithConfigCommand','getFontStyleString','blank','Count\x20of\x20','Value','sheets-pivot.dateGroup.date','_pivotInitCompleted$','updatePivotSource','getPivotTableModelConfig','AddPivotTableWithConfig','pivotTableIndexConfig','SheetsPivotTableAdaptorModel','getActiveSheet','_pivotTableMatrixInfo','_configService','stdDev','from','setPivotTableConfig','dataStyle','PivotErrorTypeEnum','register','error','removeValueFilterInfo','serializeRangeWithSpreadsheet','SheetsPivotDataSourceModel','options','getPivotDirtyViewInfo','getMatrix','sheet.command.move-pivot-table','_viewData','getAutoDisplayNameFunction','getStyles','getPivotTableCellData','getSheetId','other','_injector','FontCache','addExclusiveRange','ClearSelectionContentCommand','PivotDisplayDataType','updateView','sheets-pivot.dateGroup.yearQuarter','setPivotSetting','CellValueType','isNaN','setValueFilterInfo','sheets-pivot.dateGroup.hourMinute','getSortInfo','triggerDirtyFeature','sheet.mutation.update-pivot-table-source-range','getPivotTableConfig','colCount','dispose','startColumn','sheets-pivot.cellDateGroupDisplay.yearMonthDate','startCollectChangeset','stdDevp','DependentOn','_globalComputedStartHelpFunc','DateGroupField','token','isDateValue','getRangeKeyList','_dataSyncPrimaryController','fieldIds','formJSON','removeField','Subtotal','updateValuePosition','fetchThroughAsyncInterceptors','tuple','_sheetsSelectionsService','getDataFieldId','set','queryDirtyPivotTable','_lifecycleService','getLastCol','removeDataField','fromJSON','result','disposableCollection','Existing','_getPivotAppliedRanges','sheet.mutation.set-pivot-position','IConfigService','next','sheets-pivot.dateGroup.yearMonthDate','excelDateToUnixMilliseconds','message','reset','UpdateFieldPositionMutation','iterateField','string','ReleaseType','sheet.mutation.send-init-pivot-text-local','UniverSheetsPivotTablePlugin','cellToRange','sheets-pivot.dateGroup.year','sheets-pivot.other','UpdateValuePosition','getSubtotal','Month','SetPivotTableConfig','_refRangeHandle','refreshDataField','rowStyle','SetPivotFieldsConfigCommand','rowInfo','REF','leafStyle','YearMonthDate','_requestResolvers','setTextInfo','getMatrixFromRunTimeData','sheets-pivot.dateGroup.month','_ensurePivotMap','getCurrentUnitForType','RefRangeService','PivotFilterTypeEnum','drillDown','getSubUnitPivotConfigs','_host','addDirtyPivotTable','sheet.mutation.get-pivot-data-local','172089EFCvSR','registerSyncingMutations','subTotalStyle','_initPivotTextInfo','getOriginFieldId','PivotDateGroupFieldDateTypeEnum','DEFAULT_PIVOT_NUMBER','iterateFieldByArea','registerPluginResource','dataFieldsCollection','concat','YearMonth','_initCommandInterceptListener','stringify','setRangeValueUndoMutation','headerMap','_updateRenderEmptyCache','_pivotRenderInfoCache','sheets-pivot.cellDateGroupDisplay.year','addDataFieldWithoutUnitInfo','updateConfig','parseInt','_pivotConfigChange$','sheet.command.set-pivot-sort','broadcastCollectionChange','None','getUnit','getSubUnitPivotRenderCache','dataRangeInfo','_configVersion$','custom','removePivotField','subscribe','updateFieldSourceInfo','_initDataSendListener','clearRenderCache','sheets-pivot.stdDevName','filterInfo','UpdatePivotFieldSourceInfoMutation','_subjectViewChange','sheet.command.add-pivot-table-with-config','UniverInstanceType','PivotTableChangeTypeEnum','versions','sheets-pivot.cellDateGroupDisplay.yearMonth','substring','setPivotFilter','Average\x20of\x20','object','rowCount','InsertSheetCommand','getCurrentSelections','colRanges','getFormat','IUndoRedoService','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','getPivotItemRenderInfoCache','sheet.mutation.set-pivot-filter','size','setConfig','bind','get','sheet.mutation.set-pivot-sort-info','PivotTable','RemovePivotFieldMutation','_onRefRangeChange','_initConfig','Tools','setValue','deleteDataField','updatePivotTableRangeInfo','addPivotTableWithConfig','existing','dateGroupField','rowRanges','dimension','getValuePosition'];_0x5038=function(){return _0x224df1;};return _0x5038();}let We=class extends f[_0x2730a7(0x1af)]{constructor(_0x250834,_0x5b7784,_0x58cd40,_0x2cf76c,_0x1119b9,_0x14a0e1){const _0x23f242=_0x2730a7;super(),this[_0x23f242(0x1ef)]=_0x250834,this[_0x23f242(0x410)]=_0x5b7784,this[_0x23f242(0x146)]=_0x58cd40,this[_0x23f242(0x251)]=_0x2cf76c,this[_0x23f242(0x3d2)]=_0x1119b9,this['_activeDirtyManagerService']=_0x14a0e1,this[_0x23f242(0x363)](),this[_0x23f242(0x1e8)]();}[_0x2730a7(0x363)](){const _0x4106b1=_0x2730a7;this['disposeWithMe'](this[_0x4106b1(0x1ef)][_0x4106b1(0x405)](_0x567a23=>{const _0x38d4de=_0x4106b1;if(_0x567a23['id']!==wt['id'])return;const _0x4ee6f4=_0x567a23[_0x38d4de(0x415)];this[_0x38d4de(0x410)][_0x38d4de(0x229)](_0x4ee6f4);})),this[_0x4106b1(0x3f6)](this['_commandService'][_0x4106b1(0x405)](_0xdf015=>{const _0x22e95a=_0x4106b1;if(_0xdf015['id']===_t['id']){const _0x54f864=_0xdf015[_0x22e95a(0x415)];if(_0x54f864){const {unitId:_0x37030b,subUnitId:_0x1aaaef,oldSubUnitId:_0x1b6866,pivotTableId:_0x4c3a33,pivotTableConfig:_0x352d3f,collectionConfig:_0x48a347}=_0x54f864;this['_sheetsPivotTableConfigModel'][_0x22e95a(0x14c)](_0x37030b,_0x1b6866,_0x54f864[_0x22e95a(0x13d)],null),this[_0x22e95a(0x251)][_0x22e95a(0x14c)](_0x37030b,_0x1aaaef,_0x4c3a33,_0x352d3f),this[_0x22e95a(0x251)]['updateCollectionConfig'](_0x37030b,_0x48a347);}}})),this['disposeWithMe'](this['_commandService'][_0x4106b1(0x405)](_0x2e164b=>{const _0x426d99=_0x4106b1;if(_0x2e164b['id']!==ot['id'])return;const _0x20aa54=U[_0x426d99(0x1bc)](this[_0x426d99(0x3d2)]);if(!_0x20aa54)return;const {unitId:_0x1e0208,subUnitId:_0x20b7ba}=_0x20aa54,_0x1c3923=_0x2e164b['params'];if(_0x1c3923[_0x426d99(0x223)]&&Object[_0x426d99(0x3fb)](_0x1c3923[_0x426d99(0x223)])[_0x426d99(0x295)](_0x73b51f=>{const _0x59e477=_0x426d99;var _0x425067;(_0x425067=_0x1c3923[_0x59e477(0x223)])!=null&&_0x425067[_0x73b51f]&&this[_0x59e477(0x251)]['updateCollectionConfig'](_0x73b51f,_0x1c3923[_0x59e477(0x223)][_0x73b51f]);}),_0x1c3923[_0x426d99(0x1b6)]){const _0x3caa0e=_0x1c3923['single'],{unitId:_0x33c0bb,subUnitId:_0x33a2ac,view:_0x207ca8,pivotTableId:_0x5c552e,type:_0x16e1b9,pivotConfig:_0x2ae8fd}=_0x3caa0e;if(_0x16e1b9===L[_0x426d99(0x2bf)])this[_0x426d99(0x146)][_0x426d99(0x364)]({'unitId':_0x33c0bb,'subUnitId':_0x33a2ac,'pivotTableId':_0x5c552e,'type':_0x16e1b9}),this[_0x426d99(0x251)]['updateConfigCache'](_0x33c0bb,_0x33a2ac,_0x5c552e,null);else{const _0x495c26=new m['PivotView']();_0x495c26['formJSON'](_0x207ca8),this[_0x426d99(0x251)][_0x426d99(0x14c)](_0x33c0bb,_0x33a2ac,_0x5c552e,_0x2ae8fd),this[_0x426d99(0x146)][_0x426d99(0x364)]({'unitId':_0x33c0bb,'subUnitId':_0x33a2ac,'pivotTableId':_0x5c552e,'type':_0x16e1b9,'view':_0x495c26}),this[_0x426d99(0x146)][_0x426d99(0x15b)]({'unitId':_0x33c0bb,'subUnitId':_0x33a2ac,'view':_0x495c26,'pivotTableId':_0x5c552e,'type':_0x16e1b9});}}else _0x1c3923['batch']&&(_0x1c3923[_0x426d99(0x25c)][_0x426d99(0x295)](_0x3b06fd=>{const _0x1d7c30=_0x426d99,{unitId:_0x64fb64,subUnitId:_0x48254b,view:_0xbacd22,pivotTableId:_0x4b8580,type:_0x1a5390,pivotConfig:_0x53f857}=_0x3b06fd,_0xf6a197=new m[(_0x1d7c30(0x3e3))]();_0xf6a197[_0x1d7c30(0x306)](_0xbacd22),this[_0x1d7c30(0x251)][_0x1d7c30(0x14c)](_0x64fb64,_0x48254b,_0x4b8580,_0x53f857),this[_0x1d7c30(0x146)][_0x1d7c30(0x15b)]({'unitId':_0x64fb64,'subUnitId':_0x48254b,'view':_0xf6a197,'pivotTableId':_0x4b8580,'type':_0x1a5390});}),this[_0x426d99(0x251)][_0x426d99(0x1e4)]());this[_0x426d99(0x146)][_0x426d99(0x440)](_0x1e0208,_0x20b7ba);}));}[_0x2730a7(0x1e8)](){const _0x354953=_0x2730a7;this['_activeDirtyManagerService'][_0x354953(0x2d9)](Ye['id'],{'commandId':Ye['id'],'getDirtyData'(_0x508f5b){const _0x256405=_0x354953;return{'dirtyUnitFeatureMap':_0x508f5b[_0x256405(0x415)]};}});}};We=Kn([ye(0x0,f[_0x2730a7(0x23f)](f[_0x2730a7(0x178)])),ye(0x1,f['Inject'](exports[_0x2730a7(0x42d)])),ye(0x2,f['Inject'](exports[_0x2730a7(0x2d0)])),ye(0x3,f[_0x2730a7(0x23f)](exports[_0x2730a7(0x234)])),ye(0x4,f[_0x2730a7(0x23f)](f[_0x2730a7(0x3d8)])),ye(0x5,fe[_0x2730a7(0x3a1)])],We);var Hn=Object[_0x2730a7(0x181)],zn=Object[_0x2730a7(0x2ad)],Zn=(_0xbd6da1,_0x454ba3,_0x59e62e)=>_0x454ba3 in _0xbd6da1?Hn(_0xbd6da1,_0x454ba3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59e62e}):_0xbd6da1[_0x454ba3]=_0x59e62e,Xn=(_0x4da1fd,_0x5b7639,_0x424d5d,_0x429c45)=>{const _0x57ded4=_0x2730a7;for(var _0x2308ec=_0x429c45>0x1?void 0x0:_0x429c45?zn(_0x5b7639,_0x424d5d):_0x5b7639,_0x5dc9c0=_0x4da1fd[_0x57ded4(0x206)]-0x1,_0x3b9a44;_0x5dc9c0>=0x0;_0x5dc9c0--)(_0x3b9a44=_0x4da1fd[_0x5dc9c0])&&(_0x2308ec=_0x3b9a44(_0x2308ec)||_0x2308ec);return _0x2308ec;},tt=(_0x4096ae,_0x1b7534)=>(_0xad3733,_0x3063f1)=>_0x1b7534(_0xad3733,_0x3063f1,_0x4096ae),Co=(_0x323144,_0x3fc45d,_0x37c782)=>Zn(_0x323144,typeof _0x3fc45d!=_0x2730a7(0x414)?_0x3fc45d+'':_0x3fc45d,_0x37c782);exports[_0x2730a7(0x324)]=class extends f[_0x2730a7(0x183)]{constructor(_0x25e0ec=kt,_0x24d1b2,_0x3f58b4,_0x45373f,_0x40e1d8){const _0x2ba0ae=_0x2730a7;super(),this[_0x2ba0ae(0x42a)]=_0x25e0ec,this[_0x2ba0ae(0x2e8)]=_0x24d1b2,this[_0x2ba0ae(0x1ef)]=_0x3f58b4,this[_0x2ba0ae(0x2d3)]=_0x45373f,this[_0x2ba0ae(0x304)]=_0x40e1d8;const {..._0x9f8c37}=f[_0x2ba0ae(0x1a0)]({},kt,this[_0x2ba0ae(0x42a)]);this[_0x2ba0ae(0x2d3)][_0x2ba0ae(0x37c)](At,_0x9f8c37),this[_0x2ba0ae(0x24e)](),this[_0x2ba0ae(0x383)]();}[_0x2730a7(0x383)](){const _0x231034=_0x2730a7;var _0x395e92;const _0x42b07f=(_0x395e92=this[_0x231034(0x42a)])==null?void 0x0:_0x395e92['notExecuteFormula'];this['_configService'][_0x231034(0x37c)](W,_0x42b07f===!0x0);}['onStarting'](){const _0x2ad661=_0x2730a7;var _0x3e5781;let _0x429f3d=[];const _0x5a136d=(_0x3e5781=this[_0x2ad661(0x42a)])==null?void 0x0:_0x3e5781[_0x2ad661(0x16a)];_0x5a136d===!0x0?_0x429f3d=[[exports[_0x2ad661(0x29d)]],[exports[_0x2ad661(0x42d)]],[We],[exports[_0x2ad661(0x2d0)]],[exports[_0x2ad661(0x234)]],[Qe],[je],[Je],[$e]]:_0x5a136d===!0x1?_0x429f3d=[[exports[_0x2ad661(0x2dd)]],[Ge]]:_0x5a136d===void 0x0&&(_0x429f3d=[[exports[_0x2ad661(0x2dd)]],[Ge],[exports['SheetsPivotTableService']],[exports[_0x2ad661(0x42d)]],[We],[exports[_0x2ad661(0x2d0)]],[exports[_0x2ad661(0x234)]],[Qe],[je],[Je],[$e]]),_0x429f3d[_0x2ad661(0x295)](_0x418f4a=>this[_0x2ad661(0x2e8)][_0x2ad661(0x437)](_0x418f4a)),[Ge,We,exports[_0x2ad661(0x29d)],je,Qe,Je,$e][_0x2ad661(0x295)](_0x9e6c77=>{const _0x24b6fd=_0x2ad661;this[_0x24b6fd(0x2e8)]['has'](_0x9e6c77)&&this['_injector']['get'](_0x9e6c77);});}[_0x2730a7(0x24e)](){[oo,no,to,io,ro,Io,ho,co,fo,go,po,mo,so,ao,_e,yt,Ke,it,Xt,eo,ct,st,at,rt,ut,dt,Fe,Ft,wt,ot,vt,pt,gt,lt,Rt,mt,ht,Ye,_t,vo,ft,uo,lo]['forEach'](_0x5e3647=>{const _0x1db270=_0x33c9;var _0xcc7eb9;(_0xcc7eb9=this['_dataSyncPrimaryController'])==null||_0xcc7eb9[_0x1db270(0x342)](_0x5e3647),this['_commandService'][_0x1db270(0x1f0)](_0x5e3647);});}},Co(exports[_0x2730a7(0x324)],_0x2730a7(0x242),Ct),Co(exports[_0x2730a7(0x324)],_0x2730a7(0x15f),f[_0x2730a7(0x36a)][_0x2730a7(0x167)]),exports[_0x2730a7(0x324)]=Xn([f[_0x2730a7(0x2fe)](ue[_0x2730a7(0x3fd)]),tt(0x1,f[_0x2730a7(0x23f)](f[_0x2730a7(0x39c)])),tt(0x2,f['Inject'](f[_0x2730a7(0x178)])),tt(0x3,f[_0x2730a7(0x319)]),tt(0x4,f[_0x2730a7(0x27a)](_o['DataSyncPrimaryController']))],exports['UniverSheetsPivotTablePlugin']),exports[_0x2730a7(0x1ab)]=to,exports['AddPivotFieldMutation']=it,exports['AddPivotTableCommand']=no,exports['AddPivotTableMutation']=_e,exports[_0x2730a7(0x2c5)]=oo,exports[_0x2730a7(0x412)]=we,exports[_0x2730a7(0x347)]=It,exports['MovePivotFieldCommand']=io,exports[_0x2730a7(0x153)]=so,exports[_0x2730a7(0x2ec)]=B,exports['PivotDrillDownCommand']=ao,exports[_0x2730a7(0x1e0)]=L,exports[_0x2730a7(0x433)]=Ye,exports[_0x2730a7(0x2b4)]=Mt,exports[_0x2730a7(0x186)]=ro,exports[_0x2730a7(0x381)]=st,exports[_0x2730a7(0x40f)]=Ke,exports[_0x2730a7(0x1a9)]=at,exports[_0x2730a7(0x180)]=lo,exports[_0x2730a7(0x43b)]=At,exports[_0x2730a7(0x3e4)]=Ct,exports['SetPivotCollapseCommand']=co,exports[_0x2730a7(0x220)]=rt,exports['SetPivotFieldFormatMutation']=lt,exports[_0x2730a7(0x32f)]=uo,exports[_0x2730a7(0x144)]=go,exports[_0x2730a7(0x228)]=ct,exports[_0x2730a7(0x1a5)]=dt,exports[_0x2730a7(0x1d3)]=Fe,exports[_0x2730a7(0x1f1)]=fo,exports[_0x2730a7(0x19d)]=ut,exports[_0x2730a7(0x3d6)]=gt,exports[_0x2730a7(0x198)]=vo,exports['SetPivotValueFilterMutation']=ft,exports[_0x2730a7(0x147)]=ho,exports[_0x2730a7(0x31f)]=vt,exports['UpdatePivotFieldSettingCommand']=po,exports[_0x2730a7(0x367)]=ht,exports[_0x2730a7(0x179)]=mo,exports[_0x2730a7(0x39b)]=mt,exports[_0x2730a7(0x1cf)]=Io,exports[_0x2730a7(0x3f7)]=pt,exports['applyChangeSet']=se,exports['canUsePivot']=Et,exports[_0x2730a7(0x291)]=oe,exports[_0x2730a7(0x3bb)]=Nt,exports[_0x2730a7(0x207)]=ne,exports['getEmptyPivotRanges']=zt,exports[_0x2730a7(0x3f8)]=qe,exports['getInsertRowColMutations']=ce,exports['getPivotCellInfo']=Kt,exports[_0x2730a7(0x1e9)]=St,exports[_0x2730a7(0x22c)]=Ht,exports['transFromCellValue']=Me,exports[_0x2730a7(0x18d)]=nt;
|