UNPKG

@univerjs-pro/sheets-pivot

Version:

Univer Sheets Pivot Table

1 lines • 241 kB
const _0x5c103d=_0x375d;(function(_0x45ce55,_0x39debc){const _0x2b232f=_0x375d,_0x318f1e=_0x45ce55();while(!![]){try{const _0x5a3114=parseInt(_0x2b232f(0x1e3))/0x1*(-parseInt(_0x2b232f(0x2ab))/0x2)+parseInt(_0x2b232f(0x26c))/0x3+-parseInt(_0x2b232f(0x301))/0x4*(-parseInt(_0x2b232f(0x1ae))/0x5)+parseInt(_0x2b232f(0x1af))/0x6*(parseInt(_0x2b232f(0x17f))/0x7)+parseInt(_0x2b232f(0x350))/0x8*(parseInt(_0x2b232f(0x367))/0x9)+parseInt(_0x2b232f(0x1da))/0xa*(parseInt(_0x2b232f(0x13e))/0xb)+-parseInt(_0x2b232f(0x256))/0xc;if(_0x5a3114===_0x39debc)break;else _0x318f1e['push'](_0x318f1e['shift']());}catch(_0x2b7144){_0x318f1e['push'](_0x318f1e['shift']());}}}(_0x22fe,0x199fe));var an=Object[_0x5c103d(0x26d)],rn=(_0x5643da,_0x47e4ac,_0x3e9b93)=>_0x47e4ac in _0x5643da?an(_0x5643da,_0x47e4ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e9b93}):_0x5643da[_0x47e4ac]=_0x3e9b93,V=(_0x4e0d6c,_0x4701d8,_0x1e263d)=>rn(_0x4e0d6c,typeof _0x4701d8!='symbol'?_0x4701d8+'':_0x4701d8,_0x1e263d);import{PivotCellStyleTypeEnum as _0x114d1b,PivotViewCellValueTypeEnum as _0x58309e,isPrefixValue as _0xe10b2b,isErrorValue as _0x268d22,PivotErrorTypeEnum as _0x35d6c4,PivotDateGroupFieldDateTypeEnum as _0x1d6c85,DataFieldManager as _0x4ed9ae,FieldsCollection as _0x1511a9,isDateValue as _0x1fbc5a,DataField as _0xb6f4e6,generateHexNumber as _0x58b5bd,isBaseGroupField as _0xe98a2e,PivotTable as _0x122b76,PivotSubtotalTypeEnum as _0x28b1f0,PivotTableFiledAreaEnum as _0x467342,excelDateToUnixMilliseconds as _0x2ba001,createValueField as _0x266946,createLabelField as _0x2833b3,PivotTableChangeTypeEnum as _0x23d876,BaseGroupField as _0x288a5d,PivotView as _0x2f94ce,isDateGroupFieldJSON as _0x3323f7,PivotCallbackEnum as _0x3a9273,PivotFilterTypeEnum as _0x596c2a,getAutoDisplayName as _0x220326,PivotDataFieldDataTypeEnum as _0x42fe9b,PivotTableValuePositionEnum as _0x48cdc2,isDateGroupField as _0x475c5c,DateGroupField as _0x3c0100}from'@univerjs-pro/engine-pivot';import{cellToRange as _0x33bae9,ObjectMatrix as _0x5c8068,IUniverInstanceService as _0x559f0d,UniverInstanceType as _0x4af575,CellValueType as _0x972732,numfmt as _0x37ee5a,LocaleService as _0x5ea5c3,createAsyncInterceptorKey as _0x20a0c3,createInterceptorKey as _0x1de2e2,CommandType as _0x4d54fb,RANGE_TYPE as _0x1fea55,numberToABC as _0x44d6c7,Inject as _0x421176,Injector as _0x89566c,LifecycleService as _0x35bb10,IConfigService as _0x2712c3,ICommandService as _0x406ab9,IResourceManagerService as _0xce382a,Disposable as _0x4212ca,Rectangle as _0x1050fb,Tools as _0x5b8681,AsyncInterceptorManager as _0x5188af,InterceptorManager as _0x5eb7c5,InterceptorEffectEnum as _0x3052c3,CustomCommandExecutionError as _0x3bbf16,IUndoRedoService as _0x3a1e93,sequenceExecute as _0x3a7b59,mergeWorksheetSnapshotWithDefault as _0x4e111d,generateRandomId as _0x1a674c,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x38d38e,DEFAULT_WORKSHEET_ROW_COUNT as _0x220c6c,DisposableCollection as _0x3838b4,Range as _0xd99c80,DependentOn as _0x1ea9ad,Optional as _0x4546e2,Plugin as _0x3960b6,merge as _0x55ae96}from'@univerjs/core';import{ErrorType as _0x1ff62c,serializeRangeWithSpreadsheet as _0x295492,IFeatureCalculationManagerService as _0x260f2e,GlobalComputingStatusService as _0x3c6004,IActiveDirtyManagerService as _0x4c9c28}from'@univerjs/engine-formula';import{generateNullCell as _0x426c6c,SetRangeValuesUndoMutationFactory as _0x5176ee,SetRangeValuesMutation as _0x2d8fd5,getSheetCommandTarget as _0x5c81f3,InsertRowMutation as _0x2d76d8,RemoveRowMutation as _0xec25f8,InsertColMutation as _0x385a65,RemoveColMutation as _0x1eee68,IExclusiveRangeService as _0x7c586f,SheetInterceptorService as _0x1f0a5e,INTERCEPTOR_POINT as _0x377ef4,InsertSheetCommand as _0x5be91d,InsertSheetUndoMutationFactory as _0x5c58de,RemoveSheetMutation as _0x2c9edf,InsertSheetMutation as _0x9bec71,MoveRangeMutation as _0x6b69fc,SheetsSelectionsService as _0x3e8b43,ClearSelectionContentCommand as _0xca7afd,ClearSelectionAllCommand as _0x591f82,SetWorksheetColWidthMutation as _0xa85d61,RefRangeService as _0x252c5a,SetWorksheetActiveOperation as _0x2d43c6,MoveRangeCommand as _0x59a36c,RemoveSheetCommand as _0x378691}from'@univerjs/sheets';import{Subject as _0x585cbd,BehaviorSubject as _0x4d903f}from'rxjs';import{LS_CONFIG_KEY as _0x977bd1,unshiftString as _0x2b35a8,isFeatureAuthorizedWithinTime as _0x26533a,getSheetFeatureLimit as _0x378e00,ReleaseType as _0x374c14,UniverLicensePlugin as _0x290a94}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x258730,RemoveSheetsFilterMutation as _0x29e8de}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x2e9ad0}from'@univerjs/rpc';import{getFontStyleString as _0x21f20c,FontCache as _0x57f809}from'@univerjs/engine-render';const ko=Number[_0x5c103d(0x129)](0x67ed1a12),li=0x10,so=0x1,ao=_0x5c103d(0x17b),It=0x1,ci=_0x5c103d(0x259),di=_0x5c103d(0x2ef),Ft=_0x5c103d(0x2e3),ui=_0x5c103d(0x202),fi=_0x5c103d(0x202),gi=_0x5c103d(0x168),vi=_0x5c103d(0x28f),hi=_0x5c103d(0x1a1),pi=_0x5c103d(0x1b7),mi=_0x5c103d(0x28f),Ii=_0x5c103d(0x1a1),Ci=_0x5c103d(0x360),bi=0xe,Si=0x6;var Lo=(_0x921f82=>(_0x921f82['Existing']='existing',_0x921f82[_0x5c103d(0x364)]=_0x5c103d(0x126),_0x921f82))(Lo||{});const Bo={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Mi=0x1e,We={'b':{'s':0x1,'cl':{'rgb':Ft}},'l':{'s':0x1,'cl':{'rgb':Ft}},'r':{'s':0x1,'cl':{'rgb':Ft}},'t':{'s':0x1,'cl':{'rgb':Ft}}},oe={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},w={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':We,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':mi},'bd':null,'cl':{'rgb':Ii},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':We,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':We,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':We,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':We,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':vi},'cl':{'rgb':hi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':We,'vt':0x2}};function Pi(_0x7ef833,_0x46e58a,_0x288d3a){const _0x58dd63=_0x5c103d,_0x17d9fa=_0x7ef833[_0x58dd63(0x385)](_0x5ea5c3),_0xd94eec=_0x288d3a[_0x58dd63(0x282)]('_');switch(_0x46e58a){case _0x1d6c85[_0x58dd63(0x1c4)]:return _0x17d9fa['t']('sheets-pivot.cellDateGroupDisplay.year',..._0xd94eec);case _0x1d6c85[_0x58dd63(0x1ad)]:return _0x17d9fa['t'](_0x58dd63(0x21a),..._0xd94eec);case _0x1d6c85[_0x58dd63(0x15a)]:return _0x17d9fa['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0xd94eec);case _0x1d6c85[_0x58dd63(0x37e)]:return _0x17d9fa['t'](_0x58dd63(0x284),..._0xd94eec);case _0x1d6c85[_0x58dd63(0x39f)]:return _0x17d9fa['t'](_0x58dd63(0x2b5),..._0xd94eec);case _0x1d6c85[_0x58dd63(0x1c5)]:return _0x17d9fa['t'](_0x58dd63(0x149),..._0xd94eec);case _0x1d6c85[_0x58dd63(0x2db)]:return _0x17d9fa['t'](_0x58dd63(0x333),..._0xd94eec);case _0x1d6c85[_0x58dd63(0x2e9)]:return _0x17d9fa['t'](_0x58dd63(0x2fa),..._0xd94eec);case _0x1d6c85[_0x58dd63(0x23e)]:return _0x17d9fa['t'](_0x58dd63(0x290),..._0xd94eec);case _0x1d6c85['YearQuarter']:return _0x17d9fa['t'](_0x58dd63(0x2c4),..._0xd94eec);}return'';}function _0x375d(_0x5779e7,_0x918350){const _0x22fea4=_0x22fe();return _0x375d=function(_0x375d34,_0x4918c1){_0x375d34=_0x375d34-0x126;let _0x55abe7=_0x22fea4[_0x375d34];return _0x55abe7;},_0x375d(_0x5779e7,_0x918350);}const it=(_0x12f7bc,_0x146d96,_0x28cd03,_0x50aace)=>{const _0x405c10=_0x5c103d;let _0x1559f1;const _0x41b18d=_0x12f7bc[_0x405c10(0x385)](_0x559f0d)[_0x405c10(0x13c)](_0x4af575[_0x405c10(0x1ab)]);if(!_0x41b18d)return null;const _0x4118d9=_0x41b18d[_0x405c10(0x31d)]();let _0x572d2d;if(_0x28cd03&&(_0x572d2d=_0x4118d9['setValue'](_0x28cd03)),_0x146d96!=null&&_0x146d96['v']||(_0x146d96==null?void 0x0:_0x146d96['v'])===0x0){_0x1559f1||(_0x1559f1={});const _0x5b1c6f=Jo(_0x146d96['v']);typeof _0x5b1c6f==_0x405c10(0x21b)?_0x1559f1['t']=_0x972732['NUMBER']:typeof _0x5b1c6f==_0x405c10(0x2f3)&&(_0x1559f1['t']=_0x972732['STRING']),_0x1559f1['v']=_0x5b1c6f;}if((_0x146d96!=null&&_0x146d96['i']||(_0x146d96==null?void 0x0:_0x146d96['i'])===0x0)&&(_0x1559f1||(_0x1559f1={}),_0x1559f1['fi']=_0x146d96['i']),_0x146d96!=null&&_0x146d96['s']&&(_0x1559f1||(_0x1559f1={}),_0x1559f1['pbt']=_0x146d96['s']),_0x28cd03&&(_0x1559f1||(_0x1559f1={}),_0x1559f1['s']=_0x572d2d),_0x50aace&&_0x1559f1!=null&&_0x1559f1['v']&&_0x1559f1[_0x405c10(0x21e)]!==_0x114d1b[_0x405c10(0x3a2)]&&_0x1559f1['pbt']!==_0x114d1b['Subtotal']){const _0x98fcd1=String(_0x1559f1['v']),{dateType:_0x32904a}=_0x50aace;_0x1559f1['v']=Pi(_0x12f7bc,_0x32904a,_0x98fcd1),_0x1559f1['t']=_0x972732['STRING'];}return _0x1559f1;},Ti=(_0x5e0152,_0x31d5a9,_0x42b1cf,_0x2d8479)=>{const _0x30e45a=_0x5c103d;var _0xf44b9f,_0x1ab571,_0x2a36d7,_0x9b2bcc,_0x4fe51d,_0x303a20,_0x32f247,_0x228a2d,_0x19c166,_0x3ba5a8,_0x44d95e,_0x5a2f4f,_0x338199,_0x470443;const _0x2b6e65=_0x42b1cf[_0x30e45a(0x36a)],{cornerView:_0x46d410,rowView:_0x2e52b0,colView:_0x529469,dataView:_0x4d6dde,pageView:_0x214fcc,formatMap:_0x3e75d1,groupInfo:_0x28154b}=_0x31d5a9,{row:_0x1d867b,col:_0x341c52}=_0x2b6e65,_0x5ed860=new _0x5c8068(),_0x246957={},_0x2f1ab8={},_0xa39a7f={},_0x344d00={},_0x3d937c={};let _0x83e257=_0x1d867b,_0x2e1644=_0x341c52;Object[_0x30e45a(0x268)](_0x214fcc[_0x30e45a(0x392)])[_0x30e45a(0x266)](_0x40dc5e=>{const _0x3dd275=_0x30e45a;Object[_0x3dd275(0x268)](_0x214fcc[_0x3dd275(0x392)][Number(_0x40dc5e)])[_0x3dd275(0x266)](_0x1bfb5a=>{const _0x5ddc8b=_0x3dd275,_0xa1b123={..._0x214fcc['data'][Number(_0x40dc5e)][Number(_0x1bfb5a)]};_0x5ed860['setValue'](Number(_0x40dc5e)+_0x83e257,Number(_0x1bfb5a)+_0x2e1644,it(_0x5e0152,_0xa1b123,fe[_0x5ddc8b(0x369)]));});});const _0x24003d=Object[_0x30e45a(0x268)](_0x214fcc[_0x30e45a(0x392)])[_0x30e45a(0x2bc)];_0x83e257+=_0x24003d+(_0x24003d?It:0x0);const _0x5d846a=_0x46d410[_0x30e45a(0x30c)](),_0xc328bd=_0x46d410[_0x30e45a(0x365)]();for(let _0x389747=0x0;_0x389747<_0x5d846a;_0x389747++)for(let _0x541624=0x0;_0x541624<_0xc328bd;_0x541624++){const _0x841c1c={...(_0x1ab571=(_0xf44b9f=_0x46d410[_0x30e45a(0x392)])==null?void 0x0:_0xf44b9f[_0x389747])==null?void 0x0:_0x1ab571[_0x541624]};_0x841c1c&&((_0x2a36d7=_0x2e52b0[_0x30e45a(0x1fc)][_0x541624])!=null&&_0x2a36d7[_0x30e45a(0x2d7)])&&_0x541624===_0xc328bd-0x1&&_0x389747===_0x5d846a-0x1&&(_0x841c1c['v']=''+_0x2d8479['sheets-pivot.value']),_0x5ed860[_0x30e45a(0x355)](_0x389747+_0x83e257,_0x541624+_0x2e1644,it(_0x5e0152,_0x841c1c,fe[_0x30e45a(0x1ea)]));}for(let _0x20e62a=0x0;_0x20e62a<_0x46d410[_0x30e45a(0x252)]['length'];_0x20e62a++)_0x46d410['info'][_0x20e62a]&&(_0xa39a7f[''+(_0x20e62a+_0x2e1644)]=_0x46d410[_0x30e45a(0x252)][_0x20e62a]);_0x2e1644+=_0xc328bd;const _0x3539ca=_0x529469[_0x30e45a(0x1fc)],_0x143d0b=_0x529469[_0x30e45a(0x314)]()>=0x0?_0x529469[_0x30e45a(0x314)]()+0x1:0x0,_0x52d492=_0x529469[_0x30e45a(0x1d4)]()>=0x0?_0x529469[_0x30e45a(0x1d4)]()+0x1:0x0;for(let _0x44c3a9=0x0;_0x44c3a9<_0x52d492;_0x44c3a9++){for(let _0x2dae06=0x0;_0x2dae06<_0x143d0b;_0x2dae06++){const _0x554c45={...(_0x4fe51d=(_0x9b2bcc=_0x529469[_0x30e45a(0x392)])==null?void 0x0:_0x9b2bcc[_0x2dae06])==null?void 0x0:_0x4fe51d[_0x44c3a9]},_0x2b833d=(_0x303a20=_0x3539ca[_0x2dae06])==null?void 0x0:_0x303a20[_0x30e45a(0x398)],_0x41baa0=_0x3e75d1[_0x2b833d],_0x46f314=_0x28154b[_0x2b833d];_0x554c45&&(_0x554c45['v']=ht(_0x554c45,_0x2dae06===0x0&&((_0x32f247=_0x529469['getHeaderMapItem'](_0x44c3a9+0x1))==null?void 0x0:_0x32f247['isValue']),_0x41baa0,_0x2d8479));let _0x371b7d;_0x41baa0?_0x371b7d={...fe['colStyle'],'n':{'pattern':_0x41baa0}}:_0x371b7d={...fe[_0x30e45a(0x12d)]},_0x5ed860[_0x30e45a(0x355)](_0x2dae06+_0x83e257,_0x44c3a9+_0x2e1644,it(_0x5e0152,_0x554c45,_0x371b7d,_0x46f314));}_0x529469[_0x30e45a(0x252)][_0x44c3a9]&&(_0x2f1ab8[''+(_0x44c3a9+_0x2e1644)]=_0x529469[_0x30e45a(0x252)][_0x44c3a9]),_0x529469[_0x30e45a(0x1fc)][_0x44c3a9+0x1]&&(_0x3d937c[''+(_0x44c3a9+_0x83e257+0x1)]=_0x529469['headerMap'][_0x44c3a9+0x1]);}_0x83e257+=_0x5d846a;const _0x17264e=_0x2e52b0[_0x30e45a(0x1fc)],_0x183e7c=_0x2e52b0[_0x30e45a(0x314)]()>=0x0?_0x2e52b0['getLastRow']()+0x1:0x0,_0x53235e=_0x2e52b0['getLastCol']()>=0x0?_0x2e52b0[_0x30e45a(0x1d4)]()+0x1:0x0;for(let _0x5515d8=0x0;_0x5515d8<_0x183e7c;_0x5515d8++){for(let _0x564a4c=0x0;_0x564a4c<_0x53235e;_0x564a4c++){const _0x328aa9={...(_0x19c166=(_0x228a2d=_0x2e52b0[_0x30e45a(0x392)])==null?void 0x0:_0x228a2d[_0x5515d8])==null?void 0x0:_0x19c166[_0x564a4c]},_0x1201a0=(_0x3ba5a8=_0x17264e[_0x564a4c])==null?void 0x0:_0x3ba5a8[_0x30e45a(0x398)],_0x4014c6=_0x3e75d1[_0x1201a0],_0x495d05=_0x28154b[_0x1201a0];_0x328aa9&&(_0x328aa9['v']=ht(_0x328aa9,!0x1,_0x4014c6,_0x2d8479));let _0x3c9465;_0x2e52b0[_0x30e45a(0x252)][_0x5515d8][_0x30e45a(0x30a)]===_0x2e52b0[_0x30e45a(0x365)]()?_0x3c9465=fe[_0x30e45a(0x1ec)]:_0x2e52b0[_0x30e45a(0x252)][_0x5515d8][_0x30e45a(0x29b)]?_0x3c9465=_0x2e52b0[_0x30e45a(0x252)][_0x5515d8][_0x30e45a(0x30a)]===0x0?fe[_0x30e45a(0x1c3)]:fe[_0x30e45a(0x313)]:_0x3c9465=fe[_0x30e45a(0x397)],_0x4014c6&&(_0x3c9465={..._0x3c9465,'n':{'pattern':_0x4014c6}}),_0x5ed860[_0x30e45a(0x355)](_0x5515d8+_0x83e257,_0x564a4c+_0x341c52,it(_0x5e0152,_0x328aa9,_0x3c9465,_0x495d05));}_0x2e52b0[_0x30e45a(0x252)][_0x5515d8]&&(_0x246957[''+(_0x5515d8+_0x83e257)]=_0x2e52b0['info'][_0x5515d8]),_0x2e52b0[_0x30e45a(0x1fc)][_0x5515d8]&&(_0x344d00[''+(_0x5515d8+_0x341c52)]=_0x2e52b0[_0x30e45a(0x1fc)][_0x5515d8]);}const _0x1c4a11=_0x4d6dde[_0x30e45a(0x30c)](),_0x3fd4fc=_0x4d6dde[_0x30e45a(0x365)]();for(let _0x1d0c43=0x0;_0x1d0c43<_0x1c4a11;_0x1d0c43++)for(let _0x1a75c7=0x0;_0x1a75c7<_0x3fd4fc;_0x1a75c7++){const _0x1df6f2={...(_0x5a2f4f=(_0x44d95e=_0x4d6dde[_0x30e45a(0x392)])==null?void 0x0:_0x44d95e[_0x1d0c43])==null?void 0x0:_0x5a2f4f[_0x1a75c7]};let _0x5eb7fb;_0x2e52b0[_0x30e45a(0x252)][_0x1d0c43][_0x30e45a(0x29b)]?_0x5eb7fb=_0x2e52b0[_0x30e45a(0x252)][_0x1d0c43][_0x30e45a(0x30a)]===0x0?fe[_0x30e45a(0x1c3)]:fe['subTotalStyle']:_0x5eb7fb=fe[_0x30e45a(0x2dd)];const _0x40637d=_0x2e52b0['info'][_0x1d0c43][_0x30e45a(0x353)],_0x1fbb1b=_0x529469['info'][_0x1a75c7][_0x30e45a(0x353)],_0x1e8701=Math[_0x30e45a(0x1b5)](_0x40637d,_0x1fbb1b),_0x67029e=_0x42b1cf[_0x30e45a(0x35a)][_0x30e45a(0x23f)]['concat']();let _0x2e93dd='';_0x1e8701<0x0?_0x2e93dd=(_0x338199=_0x67029e[0x0])!=null?_0x338199:'':_0x2e93dd=(_0x470443=_0x67029e[_0x1e8701])!=null?_0x470443:'';const _0x29002c=_0x3e75d1[_0x2e93dd];_0x29002c&&(_0x5eb7fb={..._0x5eb7fb,'n':{'pattern':_0x29002c}}),_0x5ed860[_0x30e45a(0x355)](_0x1d0c43+_0x83e257,_0x1a75c7+_0x2e1644,it(_0x5e0152,_0x1df6f2,_0x5eb7fb));}return{'valueMatrix':_0x5ed860,'rowInfo':_0x246957,'colInfo':_0x2f1ab8,'cornerInfo':_0xa39a7f,'rowHeaderMap':_0x344d00,'colHeaderMap':_0x3d937c};};function ht(_0x5e07af,_0x9d9e84,_0x236acc,_0x2e1c31){const _0x19da19=_0x5c103d;let _0x2f8e14=_0x5e07af['v'];_0x9d9e84&&(_0x2f8e14=''+_0x2e1c31[_0x19da19(0x2e1)]);const _0x3f70c1=_0x5e07af['t']&&(_0x5e07af['t']&_0x58309e[_0x19da19(0x160)])>0x0;if(_0x3f70c1&&(_0x2f8e14=''+_0x2e1c31[_0x19da19(0x1b3)]),_0x5e07af['s']===_0x114d1b[_0x19da19(0x31a)]){let _0x21d9d0=_0x2f8e14,_0x55fb2d='';_0xe10b2b(_0x2f8e14)&&(_0x21d9d0=_0x2f8e14[_0x19da19(0x1e5)],_0x55fb2d=_0x2f8e14[_0x19da19(0x1ef)]);const _0x599d7f=_0x236acc&&!_0x3f70c1?_0x37ee5a[_0x19da19(0x366)](_0x236acc,Number(_0x21d9d0)):_0x21d9d0;_0x55fb2d?_0x2f8e14=_0x599d7f+'\x20'+_0x55fb2d:_0x2f8e14=_0x599d7f+'\x20'+_0x2e1c31[_0x19da19(0x337)];}else _0x5e07af['s']===_0x114d1b['GrandTotal']&&(_0x2f8e14=_0x2f8e14+'\x20'+_0x2e1c31[_0x19da19(0x134)]);return _0x2f8e14;}function Jo(_0x396441){const _0x55cd20=_0x5c103d;if(_0x268d22(_0x396441)){const {errorType:_0x3e1f1e}=_0x396441;switch(_0x3e1f1e){case _0x35d6c4['Div0']:return _0x1ff62c[_0x55cd20(0x178)];case _0x35d6c4[_0x55cd20(0x326)]:return _0x1ff62c['NUM'];case _0x35d6c4[_0x55cd20(0x3ac)]:return _0x1ff62c[_0x55cd20(0x1c0)];case _0x35d6c4[_0x55cd20(0x3b1)]:return _0x1ff62c[_0x55cd20(0x1c0)];case _0x35d6c4[_0x55cd20(0x320)]:return _0x1ff62c['REF'];}}return _0x396441;}function ge(_0x546d78,_0x4c9548,_0x42db71=!0x1,_0x171e21=!0x1){const _0x570274=_0x5c103d,{data:_0x30ae20}=_0x4c9548,_0x4128a7=_0x4c9548[_0x570274(0x30c)](),_0x3a6117=_0x4c9548[_0x570274(0x365)]();if(_0x4128a7<=0x0||_0x3a6117<=0x0)return[];const _0x1a6393=_0x4c9548[_0x570274(0x1d4)](),_0x6d09c0=_0x4c9548['getLastRow'](),_0x649c7e=_0x171e21?_0x6d09c0>=0x0?_0x6d09c0+0x1:0x0:_0x4128a7,_0x574687=_0x171e21?_0x1a6393>=0x0?_0x1a6393+0x1:0x0:_0x3a6117,{row:_0x46fea4,col:_0x44fcca}=_0x546d78,_0x39f60b=_0x46fea4,_0x33bba8=_0x44fcca;if(_0x42db71){const _0x12ab14=[];for(const [_0x2d3585,_0x386e5c]of Object[_0x570274(0x33c)](_0x30ae20))for(const [_0x5e0e97,_0x4556e3]of Object[_0x570274(0x33c)](_0x386e5c))_0x12ab14[_0x570274(0x156)](_0x33bae9(_0x39f60b+Number(_0x2d3585),_0x33bba8+Number(_0x5e0e97)));return _0x12ab14;}else{const _0x5dc714=_0x171e21?_0x649c7e>0x0?0x1:0x0:0x1,_0x5565f9=_0x171e21?_0x574687>0x0?0x1:0x0:0x1,_0xe4f9af=_0x46fea4+_0x649c7e-_0x5dc714,_0x2af65e=_0x44fcca+_0x574687-_0x5565f9;return[{'startRow':_0x39f60b,'startColumn':_0x33bba8,'endRow':_0xe4f9af,'endColumn':_0x2af65e}];}}const H=_0x5c103d(0x36b),Lt='SHEET_PIVOT_EXCLUSIVE_ID';var k=(_0x5a3e8e=>(_0x5a3e8e[_0x5c103d(0x269)]=_0x5c103d(0x14c),_0x5a3e8e['Panel']=_0x5c103d(0x171),_0x5a3e8e['AddPivotField']=_0x5c103d(0x140),_0x5a3e8e[_0x5c103d(0x1ff)]=_0x5c103d(0x1ff),_0x5a3e8e[_0x5c103d(0x2bf)]=_0x5c103d(0x141),_0x5a3e8e[_0x5c103d(0x2c5)]=_0x5c103d(0x264),_0x5a3e8e[_0x5c103d(0x384)]=_0x5c103d(0x2d4),_0x5a3e8e[_0x5c103d(0x283)]=_0x5c103d(0x24c),_0x5a3e8e[_0x5c103d(0x37a)]=_0x5c103d(0x265),_0x5a3e8e['SetPivotSort']='setPivotSort',_0x5a3e8e[_0x5c103d(0x138)]=_0x5c103d(0x131),_0x5a3e8e[_0x5c103d(0x205)]='updatePivotSource',_0x5a3e8e[_0x5c103d(0x2be)]='updateValuePosition',_0x5a3e8e[_0x5c103d(0x196)]='drillDown',_0x5a3e8e[_0x5c103d(0x272)]=_0x5c103d(0x249),_0x5a3e8e[_0x5c103d(0x386)]=_0x5c103d(0x2a6),_0x5a3e8e[_0x5c103d(0x1ba)]=_0x5c103d(0x185),_0x5a3e8e))(k||{});const yi={'sheets-pivot.blankValue':_0x5c103d(0x1f0),'sheets-pivot.columnName':_0x5c103d(0x362),'sheets-pivot.subTotalText':_0x5c103d(0x27a),'sheets-pivot.grandTotalText':_0x5c103d(0x1c2),'sheets-pivot.valueText':_0x5c103d(0x38b),'sheets-pivot.averageName':_0x5c103d(0x2a3),'sheets-pivot.countName':_0x5c103d(0x2a1),'sheets-pivot.countNumsName':_0x5c103d(0x2a1),'sheets-pivot.maxName':_0x5c103d(0x38d),'sheets-pivot.minName':_0x5c103d(0x2ae),'sheets-pivot.productName':_0x5c103d(0x356),'sheets-pivot.stdDevName':_0x5c103d(0x237),'sheets-pivot.stdDevpName':_0x5c103d(0x2bb),'sheets-pivot.sumName':_0x5c103d(0x235),'sheets-pivot.varName':_0x5c103d(0x17e),'sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x5c103d(0x1c2),'sheets-pivot.value':_0x5c103d(0x1ef),'sheets-pivot.blank':_0x5c103d(0x160),'sheets-pivot.emptyPivot.filter':_0x5c103d(0x269),'sheets-pivot.emptyPivot.row':_0x5c103d(0x2ff),'sheets-pivot.emptyPivot.column':_0x5c103d(0x377),'sheets-pivot.emptyPivot.values':_0x5c103d(0x13f)},Mo={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},be=_0x20a0c3('pivotPerformCheck'),$o=_0x1de2e2(_0x5c103d(0x376));var Be=(_0x298be4=>(_0x298be4[_0x5c103d(0x2ed)]=_0x5c103d(0x2ed),_0x298be4[_0x5c103d(0x204)]=_0x5c103d(0x204),_0x298be4[_0x5c103d(0x1b1)]=_0x5c103d(0x1b1),_0x298be4))(Be||{}),J=(_0x3c6baa=>(_0x3c6baa[_0x5c103d(0x383)]=_0x5c103d(0x2ed),_0x3c6baa['Set']=_0x5c103d(0x1d3),_0x3c6baa['Delete']=_0x5c103d(0x204),_0x3c6baa))(J||{});const Go={0x0:'i',0x1:'d',0x2:'X',0x3:'m',0x4:'P',0x5:'h',0x6:'K',0x7:'p',0x8:'n',0x9:'w','A':'0','w':'1','V':'2','S':'3','L':'4','p':'5','l':'6','H':'7','Z':'8','R':'9','b':'a','e':'b','q':'c','M':'e','t':'f','I':'g','N':'j','T':'k','D':'l','d':'o','a':'q','C':'r','c':'s','F':'t','J':'u','g':'v','n':'x','v':'y','o':'z','E':'A','h':'B','B':'C','y':'D','Y':'E','k':'F','i':'G','z':'H','m':'I','j':'J','U':'L','X':'M','Q':'N','r':'O','O':'Q','x':'R','f':'S','s':'T','u':'U','G':'V','P':'W','K':'Y','W':'Z'},qo=_0x5c103d(0x1dd),ro={'type':_0x4d54fb[_0x5c103d(0x163)],'id':_0x5c103d(0x1f6),'handler':()=>!0x0},lo={'type':_0x4d54fb['MUTATION'],'id':_0x5c103d(0x25c),'handler':()=>!0x0},Dt={'type':_0x4d54fb['MUTATION'],'id':_0x5c103d(0x35e),'handler':()=>!0x0},co={'type':_0x4d54fb[_0x5c103d(0x163)],'id':_0x5c103d(0x276),'handler':()=>!0x0},uo={'type':_0x4d54fb[_0x5c103d(0x163)],'id':_0x5c103d(0x228),'handler':()=>!0x0},Fi=_0x8e066e=>{const _0x3f8bad=_0x5c103d;var _0xc73939;return((_0xc73939=_0x8e066e['body'])==null?void 0x0:_0xc73939[_0x3f8bad(0x24b)][_0x3f8bad(0x2da)](/\r\n$/,''))||'';};class wi extends _0x4ed9ae{constructor(_0x40c8eb,_0x531bb0){const _0x13b7ee=_0x5c103d;super(),V(this,'rangeKeyMap',{}),V(this,'_univerInstanceService'),V(this,_0x13b7ee(0x261)),(this['_univerInstanceService']=_0x531bb0,this[_0x13b7ee(0x261)]=_0x40c8eb);}['initDataRanges'](){const _0x47f38b=_0x5c103d;for(const _0xc87b7e in this[_0x47f38b(0x32c)]){const _0x499599=this[_0x47f38b(0x32c)][_0xc87b7e],_0x1dad43=_0x499599[_0x47f38b(0x2b7)]();this[_0x47f38b(0x28d)][_0x1dad43]=_0x499599[_0x47f38b(0x2b4)]();}}[_0x5c103d(0x394)](){const _0x1649e0=_0x5c103d,_0x531ece=this[_0x1649e0(0x261)];return Ei[_0x1649e0(0x16e)](_0x531ece);}[_0x5c103d(0x137)](_0x1b28ac){const _0x14e6f1=_0x5c103d,_0x1abbc9=this[_0x14e6f1(0x32c)][_0x1b28ac][_0x14e6f1(0x177)];delete this['dataFields'][_0x1b28ac],delete this[_0x14e6f1(0x28d)][_0x1abbc9];}[_0x5c103d(0x263)](_0x25e21a){const _0x49e0e8=_0x5c103d;this[_0x49e0e8(0x32c)][_0x25e21a[_0x49e0e8(0x2b4)]()]=_0x25e21a;}['removeCollectionImp'](_0x22f210){const _0x49e8d3=_0x5c103d;var _0x1efd74,_0x47a26f;const _0x35569d=this['_host']['getTargetByPivotId'](_0x22f210);if(_0x35569d){const {unitId:_0x1d4850,subUnitId:_0xeb0004}=_0x35569d,_0x4f91b9=(_0x1efd74=this[_0x49e8d3(0x261)][_0x49e8d3(0x227)](_0x1d4850,_0xeb0004,_0x22f210))==null?void 0x0:_0x1efd74[_0x49e8d3(0x159)];this[_0x49e8d3(0x261)]['broadcastCollectionChange']({'token':_0x22f210,'type':Be[_0x49e8d3(0x204)],'dataRangeInfo':_0x4f91b9});}(_0x47a26f=this[_0x49e8d3(0x1ac)](_0x22f210))==null||_0x47a26f['dispose'](),delete this[_0x49e8d3(0x33a)][_0x22f210];}[_0x5c103d(0x2b7)](_0x28d86f,_0x19a0aa){const {sheetName:_0x2b7d5c,unitId:_0x93f032,range:_0x43731f}=_0x28d86f,{startRow:_0x50fea8,endRow:_0x409455}=_0x43731f;return _0x295492(_0x93f032,_0x2b7d5c,{'startRow':_0x50fea8,'endRow':_0x409455,'startColumn':_0x19a0aa,'endColumn':_0x19a0aa});}[_0x5c103d(0x2c3)](_0x41dc10){const _0x3a5277=_0x5c103d;return this[_0x3a5277(0x32c)][this[_0x3a5277(0x28d)][_0x41dc10]];}['setRangeKeyMap'](_0x3484f2,_0x23f1a9){const _0x1bb245=_0x5c103d;this[_0x1bb245(0x28d)][_0x3484f2]=_0x23f1a9;}['updateRangeKeyMap'](_0x2193e3,_0x209dcb){const _0x5c8742=_0x5c103d;this[_0x5c8742(0x28d)][_0x209dcb]=this['rangeKeyMap'][_0x2193e3],delete this['rangeKeyMap'][_0x2193e3];}['addCollectionByJSON'](_0x56f44b,_0x5cc1f2,_0x374c6c,_0x3118e8){const _0x57e7eb=_0x5c103d,_0x457e2a=new _0x1511a9(this);_0x457e2a[_0x57e7eb(0x16b)](_0x5cc1f2);const _0x22d735=[];let _0x4862c2=0x0;for(const _0x155781 of _0x457e2a[_0x57e7eb(0x28a)]){const _0x403d38=this[_0x57e7eb(0x2b7)](_0x374c6c,_0x4862c2),_0x1c76e8=this['dataFields'][_0x155781];_0x1c76e8&&(_0x1c76e8[_0x57e7eb(0x177)]=_0x403d38,this[_0x57e7eb(0x173)](_0x403d38,_0x155781),_0x22d735[_0x57e7eb(0x156)]({'index':_0x4862c2,'dataField':_0x1c76e8})),_0x4862c2++;}return this[_0x57e7eb(0x224)](_0x56f44b,_0x457e2a,_0x374c6c,_0x3118e8),{'collection':_0x457e2a,'updateDataFieldList':_0x22d735};}[_0x5c103d(0x22b)](_0x3b1573,_0x36a976){const _0x18f3ee=_0x5c103d;return _0x3b1573['rangeType']===_0x1fea55[_0x18f3ee(0x308)]?{'startRow':0x0,'startColumn':_0x3b1573[_0x18f3ee(0x1cc)],'endRow':_0x36a976['getRowCount']()-0x1,'endColumn':_0x3b1573[_0x18f3ee(0x1e6)]}:{'startRow':_0x3b1573[_0x18f3ee(0x16d)],'startColumn':_0x3b1573[_0x18f3ee(0x1cc)],'endRow':_0x3b1573[_0x18f3ee(0x3a5)],'endColumn':_0x3b1573['endColumn']};}[_0x5c103d(0x2f9)](_0x57af71){const _0x5455c8=_0x5c103d,{sheetName:_0x1f971f,range:_0x49b89d}=_0x57af71,_0x3c0a86=this[_0x5455c8(0x1f9)][_0x5455c8(0x13c)](_0x4af575[_0x5455c8(0x1ab)]),_0x3f7925=_0x3c0a86['getSheetBySheetName'](_0x1f971f),_0x4ee643=_0x3f7925['getCellMatrix'](),{startColumn:_0xc21663,startRow:_0x2e83d2,endColumn:_0x321c7c}=this[_0x5455c8(0x22b)](_0x49b89d,_0x3f7925),_0x25bcdb=_0x3c0a86[_0x5455c8(0x31d)](),_0x5e4852=new _0x1511a9(this);_0x5e4852['setRange'](_0x57af71);const _0x291afc=[],_0x2d0ed0={};for(let _0x3d1e1d=_0xc21663;_0x3d1e1d<=_0x321c7c;_0x3d1e1d++){const _0x232b58=_0x4ee643['getValue'](_0x2e83d2,_0x3d1e1d),_0x48556e=this[_0x5455c8(0x2b7)](_0x57af71,_0x3d1e1d),_0x173556=this[_0x5455c8(0x2c3)](_0x48556e);if(_0x173556)_0x5e4852['addField'](_0x173556[_0x5455c8(0x2b4)](),_0x173556[_0x5455c8(0x2d1)]());else{const _0x2f9382=this[_0x5455c8(0x2ce)]();let _0x17c597=this[_0x5455c8(0x361)](_0x232b58,_0x25bcdb,_0x2d0ed0);_0x1fbc5a(_0x17c597)&&(_0x17c597=_0x37ee5a[_0x5455c8(0x366)](_0x17c597['f'],Number(_0x17c597['v'])));const _0x75aec4=this['uniqueDataFieldName'](_0x17c597,_0x3d1e1d),_0x230851=new _0xb6f4e6(_0x2f9382,_0x75aec4,_0x58b5bd(0x3));_0x230851[_0x5455c8(0x177)]=_0x48556e,this['dataFields'][_0x2f9382]=_0x230851,_0x5e4852[_0x5455c8(0x155)](_0x2f9382,_0x75aec4),_0x291afc['push']({'index':_0x3d1e1d,'dataField':_0x230851});}}return{'updateDataFieldList':_0x291afc,'collection':_0x5e4852};}[_0x5c103d(0x35b)](_0x1cd3ea){const _0x5ab495=_0x5c103d;return this[_0x5ab495(0x261)][_0x5ab495(0x345)]()[_0x5ab495(0x19b)]+'\x20'+_0x44d6c7(_0x1cd3ea);}[_0x5c103d(0x29d)](_0x402e48,_0xc40b7){return _0x402e48==null||_0x402e48===''?this['_getAutoName'](_0xc40b7):String(_0x402e48);}['getCollection'](_0x3ee391){const _0x245c0e=_0x5c103d;return this[_0x245c0e(0x33a)][_0x3ee391];}[_0x5c103d(0x224)](_0x59e7b7,_0x126d40,_0x8ef5f5,_0x3a5948){const _0x6b0572=_0x5c103d;this[_0x6b0572(0x33a)][_0x59e7b7]=_0x126d40,_0x126d40[_0x6b0572(0x1b9)](_0x8ef5f5),this[_0x6b0572(0x261)][_0x6b0572(0x162)]({'token':_0x59e7b7,'type':Be[_0x6b0572(0x2ed)],'dataRangeInfo':_0x8ef5f5,'targetCellInfo':_0x3a5948});}[_0x5c103d(0x372)](_0x47283e,_0x539a7a){const _0x4fabac=_0x5c103d,_0x1054c2=this['getCollection'](_0x47283e),_0x2261f4=_0x1054c2[_0x4fabac(0x1e8)]();let _0x3b0c8c=0x0;for(const _0x2bd91b of _0x2261f4){const _0x2a37fa=_0x1054c2['getFieldById'](_0x2bd91b),_0x308588=this[_0x4fabac(0x2b7)](_0x539a7a,_0x3b0c8c);this['updateRangeKeyMap'](_0x2a37fa[_0x4fabac(0x177)],_0x308588),_0x3b0c8c++;}}[_0x5c103d(0x209)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x251726,_0xfcf417){const _0x5cbbca=_0x5c103d;if(this[_0x5cbbca(0x1ac)](_0x251726)){const _0x4d3b04=this[_0x5cbbca(0x2c7)](_0xfcf417),_0xaef65b=[];for(const _0x14e219 of _0x4d3b04)this[_0x5cbbca(0x28d)][_0x14e219]!==void 0x0&&_0xaef65b[_0x5cbbca(0x156)](this[_0x5cbbca(0x28d)][_0x14e219]);const _0x571256=this[_0x5cbbca(0x35c)](_0x251726),_0x492b79=[],_0xd7b7b5=new Set(_0xaef65b);for(const _0x2bd054 of _0x571256)_0xd7b7b5['has'](_0x2bd054)||_0x492b79[_0x5cbbca(0x156)](_0x2bd054);return _0x492b79;}}['getMatrixValue'](_0x133f92,_0x59775c,_0x113a73,_0x1597be,_0x192a73){const _0x2e4549=_0x5c103d;return _0x59775c&&_0x59775c[_0x2e4549(0x33d)](_0x1597be,_0x192a73)?_0x59775c['getValue'](_0x1597be,_0x192a73):_0x113a73&&_0x113a73[_0x2e4549(0x33d)](_0x1597be,_0x192a73)?_0x113a73[_0x2e4549(0x33d)](_0x1597be,_0x192a73):_0x133f92[_0x2e4549(0x33d)](_0x1597be,_0x192a73);}[_0x5c103d(0x1b0)](_0x11197a,_0x11f6e,_0x14b0a5,_0x40e38a){const _0x3e8de1=_0x5c103d,_0x2bc903=this[_0x3e8de1(0x32c)][_0x11197a];if(!_0x2bc903)return;const {subUnitId:_0x50c885,range:_0x2c6295,unitId:_0x32f3ea}=_0x11f6e,_0x1df71a=this[_0x3e8de1(0x1f9)][_0x3e8de1(0x285)](_0x32f3ea);if(!_0x1df71a){console['error']('workbook\x20is\x20not\x20found');return;}const _0x12c462=_0x1df71a[_0x3e8de1(0x2a9)](_0x50c885),_0x31e3d2=_0x12c462[_0x3e8de1(0x27e)](),{arrayFormulaCellDataMatrix:_0x30e5b4,unitDataMatrix:_0x21e73b}=_0x40e38a||{},{startRow:_0x1a3860,startColumn:_0x380005,endRow:_0x417034}=this['getRangeStartEndInfo'](_0x2c6295,_0x12c462);_0x2bc903[_0x3e8de1(0x270)]();const _0x5c05c1=_0x1df71a[_0x3e8de1(0x31d)](),_0xbe3614={},_0xb483cd=this[_0x3e8de1(0x1df)](_0x31e3d2,_0x30e5b4,_0x21e73b,_0x1a3860,_0x380005+_0x14b0a5);let _0x15ed2c=this[_0x3e8de1(0x361)](_0xb483cd,_0x5c05c1,_0xbe3614);_0x1fbc5a(_0x15ed2c)&&(_0x15ed2c=_0x37ee5a[_0x3e8de1(0x366)](_0x15ed2c['f'],Number(_0x15ed2c['v'])));const _0x1e034f=this['uniqueDataFieldName'](_0x15ed2c,_0x380005+_0x14b0a5);_0x2bc903['setName'](_0x1e034f);for(let _0x36c75e=_0x1a3860+0x1;_0x36c75e<=_0x417034;_0x36c75e++){const _0x2ff8ad=this[_0x3e8de1(0x1df)](_0x31e3d2,_0x30e5b4,_0x21e73b,_0x36c75e,_0x380005+_0x14b0a5);_0x2bc903[_0x3e8de1(0x18f)](this['adjustSheetCellData'](_0x2ff8ad,_0x5c05c1,_0xbe3614),_0x36c75e-0x1-_0x1a3860);}}[_0x5c103d(0x31e)](_0x2fb8b2,_0x785688,_0x21965c){const _0x5be229=_0x5c103d,{subUnitId:_0x3f984b,range:_0x1b3545,unitId:_0x7787bf}=_0x21965c,_0x319ef8=this['_univerInstanceService']['getUnit'](_0x7787bf);if(!_0x319ef8){console[_0x5be229(0x28b)](_0x5be229(0x2ad));return;}const _0x4df864=_0x319ef8[_0x5be229(0x2a9)](_0x3f984b),_0x3e0b26=_0x4df864[_0x5be229(0x27e)](),{startRow:_0x384264,startColumn:_0x1522b3,endRow:_0x33bf5f}=this['getRangeStartEndInfo'](_0x1b3545,_0x4df864),_0x4e7b87=_0x319ef8['getStyles'](),_0x100031={};for(const {dataField:_0x20b423,index:_0x4004c0}of _0x785688){_0x20b423[_0x5be229(0x270)]();const _0x4d704f=this[_0x5be229(0x1df)](_0x3e0b26,void 0x0,void 0x0,_0x384264,_0x1522b3+_0x4004c0);let _0x50fde0=this[_0x5be229(0x361)](_0x4d704f,_0x4e7b87,_0x100031);_0x1fbc5a(_0x50fde0)&&(_0x50fde0=_0x37ee5a[_0x5be229(0x366)](_0x50fde0['f'],Number(_0x50fde0['v'])));const _0x5eeb08=this[_0x5be229(0x29d)](_0x50fde0,_0x1522b3+_0x4004c0);_0x20b423[_0x5be229(0x18e)](_0x5eeb08);}_0x2fb8b2[_0x5be229(0x242)]();for(let _0x24241e=_0x384264+0x1;_0x24241e<=_0x33bf5f;_0x24241e++)for(const {index:_0x2715df,dataField:_0x292587}of _0x785688){const _0x562b5f=_0x3e0b26['getValue'](_0x24241e,_0x1522b3+_0x2715df);_0x292587[_0x5be229(0x18f)](this['adjustSheetCellData'](_0x562b5f,_0x4e7b87,_0x100031),_0x24241e-0x1-_0x384264);}_0x2fb8b2[_0x5be229(0x329)](_0x33bf5f-_0x384264);}[_0x5c103d(0x2c7)](_0x5f03ba){const _0x275272=_0x5c103d,{range:_0x2f34bf}=_0x5f03ba,{startColumn:_0x1faa5c,endColumn:_0x1369ec}=_0x2f34bf,_0x5d0312=[];for(let _0x2d9753=_0x1faa5c;_0x2d9753<=_0x1369ec;_0x2d9753++)_0x5d0312['push'](this[_0x275272(0x2b7)](_0x5f03ba,_0x2d9753));return _0x5d0312;}[_0x5c103d(0x361)](_0x58b6ec,_0x16af35,_0x188427){const _0x349390=_0x5c103d;if(_0x58b6ec){const {s:_0x4f9f12,v:_0x4dbce8,t:_0x3ce5e0,p:_0x142b3f}=_0x58b6ec;if(_0x142b3f)return Fi(_0x142b3f);const _0x298fb9=_0x16af35[_0x349390(0x385)](_0x4f9f12);if(_0x298fb9&&_0x3ce5e0===_0x972732[_0x349390(0x164)]&&_0x298fb9['n']){const {pattern:_0x595f52}=_0x298fb9['n'];_0x188427[_0x595f52]||(_0x188427[_0x595f52]=_0x37ee5a[_0x349390(0x25a)](_0x595f52));const _0x4de6ed=_0x188427[_0x595f52],_0x16082f=_0x4de6ed['isDate'];if(_0x4de6ed['isText'])return String(_0x4dbce8);if(_0x16082f)return{'v':_0x4dbce8,'f':_0x595f52};}if(_0x3ce5e0===_0x972732[_0x349390(0x164)])return Number(_0x4dbce8);if(_0x3ce5e0===_0x972732[_0x349390(0x195)]||_0x3ce5e0===_0x972732[_0x349390(0x20c)])return String(_0x4dbce8);if(_0x3ce5e0===void 0x0){const _0x541a84=Number(_0x4dbce8);if(!Number[_0x349390(0x342)](_0x541a84)&&String(_0x541a84)===_0x4dbce8)return _0x541a84;}return _0x4dbce8!=null?_0x4dbce8:null;}else return null;}[_0x5c103d(0x189)](_0x4fc2b6){const _0x5abcac=_0x5c103d,{sheetName:_0x2e7282,range:_0x3f5948,unitId:_0x2c2c75}=_0x4fc2b6,_0x3a2e0d=this[_0x5abcac(0x1f9)]['getUnit'](_0x2c2c75);if(!_0x3a2e0d)return console[_0x5abcac(0x28b)](_0x5abcac(0x2ad)),{'header':[],'data':[]};const _0x224179=_0x3a2e0d[_0x5abcac(0x3b3)](_0x2e7282),_0x358ce7=_0x224179[_0x5abcac(0x27e)](),{startRow:_0x1cac5d,startColumn:_0x5383fb,endRow:_0x36f67a,endColumn:_0x800752}=this[_0x5abcac(0x22b)](_0x3f5948,_0x224179),_0x1689e6=_0x3a2e0d[_0x5abcac(0x31d)](),_0x12b744=[],_0x4fa9d6=[],_0xed38e2={};for(let _0x17ea1d=_0x1cac5d;_0x17ea1d<=_0x36f67a;_0x17ea1d++){const _0x4de976=[];for(let _0x58fa42=_0x5383fb;_0x58fa42<=_0x800752;_0x58fa42++){const _0x507480=_0x358ce7['getValue'](_0x17ea1d,_0x58fa42);_0x17ea1d===_0x1cac5d?_0x12b744['push'](_0x507480==null?null:String(_0x507480['v'])):_0x4de976['push'](this[_0x5abcac(0x361)](_0x507480,_0x1689e6,_0xed38e2));}_0x4fa9d6['push'](_0x4de976);}return{'header':_0x12b744,'data':_0x4fa9d6};}[_0x5c103d(0x1d8)](){const _0x254ce8=_0x5c103d;return super[_0x254ce8(0x1d8)]();}[_0x5c103d(0x16b)](_0x2d36ca){const _0x5e9d63=_0x5c103d;super[_0x5e9d63(0x16b)](_0x2d36ca),this[_0x5e9d63(0x2a8)]();}[_0x5c103d(0x2df)](){const _0xa4d7ac=_0x5c103d;super[_0xa4d7ac(0x2df)](),this[_0xa4d7ac(0x28d)]={},this[_0xa4d7ac(0x261)]=null;}}const _i=_0x555784=>{const _0x1b73b3=_0x5c103d,{targetCellInfo:_0x1b2571}=_0x555784,{matrixCache:_0x1cbbd5,rangesCache:_0xd06518}=Wo({'filter':_0x1b73b3(0x269),'row':_0x1b73b3(0x2ff),'column':'Column','values':'Values'},_0x1b2571),_0x25ed1b=new _0x5c8068();return _0x1cbbd5['forValue']((_0x144f5f,_0x2f3e48,_0x13b12f)=>{const _0x4b0c22=_0x1b73b3;_0x25ed1b[_0x4b0c22(0x355)](_0x144f5f,_0x2f3e48,_0x13b12f);}),{'matrix':_0x25ed1b,'rangesCache':_0xd06518};},st=_0x326809=>{const _0xd943d8=_0x5c103d;let _0x1f824c;if(_0x326809!=null&&_0x326809['v']||(_0x326809==null?void 0x0:_0x326809['v'])===0x0){_0x1f824c||(_0x1f824c={});const _0x1e1c75=Jo(_0x326809['v']);typeof _0x1e1c75==_0xd943d8(0x21b)?_0x1f824c['t']=_0x972732[_0xd943d8(0x164)]:typeof _0x1e1c75==_0xd943d8(0x2f3)&&(_0x1f824c['t']=_0x972732[_0xd943d8(0x195)]),_0x1f824c['v']=_0x1e1c75;}return _0x1f824c;},Ri=(_0x48e885,_0x324b7d,_0x365f4c)=>{const _0xbbfeba=_0x5c103d;var _0x33c07c,_0x4bef9e,_0x418ad8,_0x27eeed,_0x5eb5f2,_0x2e8cd4,_0x2bcb5c,_0x197a15,_0x58dcf4,_0x58a517,_0x310f35,_0x2d1322;const {cornerView:_0x1b6096,rowView:_0x4abc9f,colView:_0x8de6d4,dataView:_0x1c3337,pageView:_0x44fef1,formatMap:_0x5579f5}=_0x48e885,{row:_0x392d1a,col:_0x3622c9}=_0x324b7d,_0x352f61=new _0x5c8068();let _0x44dcba=_0x392d1a,_0x26f44a=_0x3622c9;Object['keys'](_0x44fef1[_0xbbfeba(0x392)])[_0xbbfeba(0x266)](_0x3c30e6=>{const _0xf1f966=_0xbbfeba;Object[_0xf1f966(0x268)](_0x44fef1[_0xf1f966(0x392)][Number(_0x3c30e6)])[_0xf1f966(0x266)](_0x5d7abf=>{const _0x166de3=_0xf1f966,_0x2a1669={..._0x44fef1['data'][Number(_0x3c30e6)][Number(_0x5d7abf)]};_0x352f61[_0x166de3(0x355)](Number(_0x3c30e6)+_0x44dcba,Number(_0x5d7abf)+_0x26f44a,st(_0x2a1669));});});const _0x526591=Object[_0xbbfeba(0x268)](_0x44fef1[_0xbbfeba(0x392)])[_0xbbfeba(0x2bc)];_0x44dcba+=_0x526591+(_0x526591?It:0x0);const _0xe53b56=_0x1b6096['getRowCount'](),_0x5e08d2=_0x1b6096[_0xbbfeba(0x365)]();for(let _0x4e8cf0=0x0;_0x4e8cf0<_0xe53b56;_0x4e8cf0++)for(let _0x110a7c=0x0;_0x110a7c<_0x5e08d2;_0x110a7c++){const _0x26ecbb={...(_0x4bef9e=(_0x33c07c=_0x1b6096[_0xbbfeba(0x392)])==null?void 0x0:_0x33c07c[_0x4e8cf0])==null?void 0x0:_0x4bef9e[_0x110a7c]};_0x26ecbb&&((_0x418ad8=_0x4abc9f['headerMap'][_0x110a7c])!=null&&_0x418ad8[_0xbbfeba(0x2d7)])&&_0x110a7c===_0x5e08d2-0x1&&_0x4e8cf0===_0xe53b56-0x1&&(_0x26ecbb['v']=''+_0x365f4c[_0xbbfeba(0x2e1)]),_0x352f61[_0xbbfeba(0x355)](_0x4e8cf0+_0x44dcba,_0x110a7c+_0x26f44a,st(_0x26ecbb));}_0x26f44a+=_0x5e08d2;const _0x20e573=_0x8de6d4['headerMap'],_0x177932=_0x8de6d4[_0xbbfeba(0x314)]()>=0x0?_0x8de6d4[_0xbbfeba(0x314)]()+0x1:0x0,_0xfd4ba0=_0x8de6d4[_0xbbfeba(0x1d4)]()>=0x0?_0x8de6d4[_0xbbfeba(0x1d4)]()+0x1:0x0;for(let _0x54712d=0x0;_0x54712d<_0xfd4ba0;_0x54712d++)for(let _0x48afcf=0x0;_0x48afcf<_0x177932;_0x48afcf++){const _0x295819={...(_0x5eb5f2=(_0x27eeed=_0x8de6d4[_0xbbfeba(0x392)])==null?void 0x0:_0x27eeed[_0x54712d])==null?void 0x0:_0x5eb5f2[_0x48afcf]},_0x1d6fba=(_0x2e8cd4=_0x20e573[_0x54712d])==null?void 0x0:_0x2e8cd4['tableFieldId'],_0x178521=_0x5579f5[_0x1d6fba];_0x295819&&(_0x295819['v']=ht(_0x295819,_0x54712d===0x0&&((_0x2bcb5c=_0x8de6d4[_0xbbfeba(0x2bd)](_0x48afcf+0x1))==null?void 0x0:_0x2bcb5c['isValue']),_0x178521,_0x365f4c)),_0x352f61[_0xbbfeba(0x355)](_0x54712d+_0x44dcba,_0x48afcf+_0x26f44a,st(_0x295819));}_0x44dcba+=_0xe53b56;const _0x4df59b=_0x4abc9f[_0xbbfeba(0x1fc)],_0x1ccce4=_0x4abc9f[_0xbbfeba(0x314)]()>=0x0?_0x4abc9f[_0xbbfeba(0x314)]()+0x1:0x0,_0x34b3c6=_0x4abc9f[_0xbbfeba(0x1d4)]()>=0x0?_0x4abc9f[_0xbbfeba(0x1d4)]()+0x1:0x0;for(let _0x30ec25=0x0;_0x30ec25<_0x1ccce4;_0x30ec25++)for(let _0x975100=0x0;_0x975100<_0x34b3c6;_0x975100++){const _0x4a47de={...(_0x58dcf4=(_0x197a15=_0x4abc9f[_0xbbfeba(0x392)])==null?void 0x0:_0x197a15[_0x30ec25])==null?void 0x0:_0x58dcf4[_0x975100]},_0x71d3ef=(_0x58a517=_0x4df59b[_0x975100])==null?void 0x0:_0x58a517[_0xbbfeba(0x398)],_0x2f63c8=_0x5579f5[_0x71d3ef];_0x4a47de&&(_0x4a47de['v']=ht(_0x4a47de,!0x1,_0x2f63c8,_0x365f4c)),_0x352f61[_0xbbfeba(0x355)](_0x30ec25+_0x44dcba,_0x975100+_0x3622c9,st(_0x4a47de));}const _0x559de4=_0x1c3337['getRowCount'](),_0x2f03a4=_0x1c3337[_0xbbfeba(0x365)]();for(let _0x326a2d=0x0;_0x326a2d<_0x559de4;_0x326a2d++)for(let _0x2072a2=0x0;_0x2072a2<_0x2f03a4;_0x2072a2++){const _0x5e7588={...(_0x2d1322=(_0x310f35=_0x1c3337[_0xbbfeba(0x392)])==null?void 0x0:_0x310f35[_0x326a2d])==null?void 0x0:_0x2d1322[_0x2072a2]};_0x352f61[_0xbbfeba(0x355)](_0x326a2d+_0x44dcba,_0x2072a2+_0x26f44a,st(_0x5e7588));}return _0x352f61;},Di=_0x56ad62=>{const _0x9a56d2=_0x5c103d,{view:_0x32aec5,targetCellInfo:_0x1b7617,isEmpty:_0x537e36,textInfo:_0x43e356}=_0x56ad62;if(_0x537e36)return _i(_0x56ad62);const {pageView:_0x562ab9,cornerView:_0xc4d3ea,rowView:_0x5821c5,colView:_0x4ba89a,dataView:_0x822e85}=_0x32aec5,_0x3b08fa=ge(_0x1b7617,_0x562ab9,!0x0),_0x2aaa2e=_0x562ab9[_0x9a56d2(0x3a3)]>=0x0?_0x562ab9[_0x9a56d2(0x3a3)]+0x1:0x0,_0x3c2358=_0xc4d3ea[_0x9a56d2(0x30c)](),_0x30bc4d=_0xc4d3ea[_0x9a56d2(0x365)](),_0x51a923=_0x3b08fa[_0x9a56d2(0x2bc)]>0x0?It:0x0,_0x45bad6=ge({'row':_0x1b7617[_0x9a56d2(0x324)]+_0x2aaa2e+_0x51a923,'col':_0x1b7617[_0x9a56d2(0x1c8)]},_0xc4d3ea,!0x1,!0x1),_0x9a1a18=ge({'row':_0x1b7617['row']+_0x2aaa2e+_0x51a923+_0x3c2358,'col':_0x1b7617[_0x9a56d2(0x1c8)]},_0x5821c5,!0x1,!0x0),_0x5e1ed8=ge({'row':_0x1b7617[_0x9a56d2(0x324)]+_0x2aaa2e+_0x51a923,'col':_0x1b7617[_0x9a56d2(0x1c8)]+_0x30bc4d},_0x4ba89a,!0x1,!0x0),_0x310d75=ge({'row':_0x1b7617[_0x9a56d2(0x324)]+_0x2aaa2e+_0x51a923+_0x3c2358,'col':_0x1b7617[_0x9a56d2(0x1c8)]+_0x30bc4d},_0x822e85,!0x1,!0x1),_0x5a9f30={'rowRanges':_0x9a1a18,'colRanges':_0x5e1ed8,'cornerRanges':_0x45bad6,'dataRanges':_0x310d75,'pageRanges':_0x3b08fa};return{'matrix':Ri(_0x32aec5,_0x1b7617,_0x43e356),'rangesCache':_0x5a9f30};};var Ni=Object[_0x5c103d(0x22c)],Ui=(_0x45d24f,_0x547010,_0x32f832,_0x1c09ca)=>{const _0x53dc56=_0x5c103d;for(var _0x2d6641=_0x1c09ca>0x1?void 0x0:_0x1c09ca?Ni(_0x547010,_0x32f832):_0x547010,_0x248f15=_0x45d24f[_0x53dc56(0x2bc)]-0x1,_0x12b421;_0x248f15>=0x0;_0x248f15--)(_0x12b421=_0x45d24f[_0x248f15])&&(_0x2d6641=_0x12b421(_0x2d6641)||_0x2d6641);return _0x2d6641;},je=(_0x43dc1a,_0x199174)=>(_0x915afb,_0x54c138)=>_0x199174(_0x915afb,_0x54c138,_0x43dc1a);let $=class extends _0x4212ca{constructor(_0x3a3b86,_0x55a397,_0x58b295,_0x4989b8,_0x42ea95,_0x38a442){const _0x33996b=_0x5c103d;super(),V(this,_0x33996b(0x14d),new Map()),V(this,'_pivotTableInstanceCache',new Map()),V(this,_0x33996b(0x34e),new Map()),V(this,_0x33996b(0x21f)),V(this,_0x33996b(0x187),new _0x585cbd()),V(this,'collectionChange$',this[_0x33996b(0x187)][_0x33996b(0x331)]()),V(this,'_viewData$',new _0x585cbd()),V(this,_0x33996b(0x241),this[_0x33996b(0x167)]['asObservable']()),V(this,_0x33996b(0x175),new _0x585cbd()),V(this,'fieldsCollectionChange$',this[_0x33996b(0x175)][_0x33996b(0x331)]()),V(this,_0x33996b(0x1a8),new Map()),V(this,_0x33996b(0x315),[]),V(this,_0x33996b(0x139),new Map()),(this['_injector']=_0x3a3b86,this[_0x33996b(0x1f9)]=_0x55a397,this[_0x33996b(0x12a)]=_0x58b295,this[_0x33996b(0x346)]=_0x4989b8,this[_0x33996b(0x1a9)]=_0x42ea95,this[_0x33996b(0x310)]=_0x38a442,this['_initSnapshot']());}[_0x5c103d(0x345)](){const _0x4f3a8f=_0x5c103d;return this[_0x4f3a8f(0x21f)]?this['_textInfo']:yi;}[_0x5c103d(0x13d)](_0x2a88b8){const _0x5893f7=_0x5c103d;this[_0x5893f7(0x21f)]=_0x2a88b8;}[_0x5c103d(0x372)](_0x4db8c0){const _0x84843f=_0x5c103d;var _0x199868;const {from:_0x5f1f73,to:_0x30355b,unitId:_0x12bcb5,fromRange:_0x5b5c57,toRange:_0x5c94da}=_0x4db8c0;if(_0x5f1f73&&_0x30355b){const _0x1cc87c=this[_0x84843f(0x351)](_0x12bcb5),_0x534e3d=this[_0x84843f(0x14d)]['get'](_0x12bcb5),_0x505056=(_0x199868=this['_univerInstanceService']['getUnit'](_0x12bcb5))==null?void 0x0:_0x199868['getSheetBySheetId'](_0x30355b[_0x84843f(0x1c7)]);if(!_0x534e3d||!_0x505056)return;const _0x2d38bf=_0x505056==null?void 0x0:_0x505056[_0x84843f(0x2d1)]();for(const [_0x4c2e93,_0x346ad4]of _0x534e3d['entries']())for(const [_0x7fb38,_0x11ad80]of _0x346ad4['entries']()){const {sourceRangeInfo:_0x877096}=_0x11ad80;if(_0x877096[_0x84843f(0x2a0)]===_0x12bcb5&&_0x877096[_0x84843f(0x1c7)]===_0x5f1f73[_0x84843f(0x1c7)]&&_0x1050fb['contains'](_0x5b5c57,_0x877096[_0x84843f(0x18c)])){const _0x3bfc17={'row':_0x877096['range'][_0x84843f(0x16d)]-_0x5b5c57[_0x84843f(0x16d)],'col':_0x877096[_0x84843f(0x18c)][_0x84843f(0x1cc)]-_0x5b5c57[_0x84843f(0x1cc)]},_0x364725={'unitId':_0x12bcb5,'subUnitId':_0x30355b[_0x84843f(0x1c7)],'sheetName':_0x2d38bf,'range':{'startRow':_0x5c94da[_0x84843f(0x16d)]+_0x3bfc17[_0x84843f(0x324)],'endRow':_0x5c94da['startRow']+_0x3bfc17['row']+_0x877096[_0x84843f(0x18c)][_0x84843f(0x3a5)]-_0x877096['range']['startRow'],'startColumn':_0x5c94da[_0x84843f(0x1cc)]+_0x3bfc17['col'],'endColumn':_0x5c94da['startColumn']+_0x3bfc17['col']+_0x877096[_0x84843f(0x18c)][_0x84843f(0x1e6)]-_0x877096[_0x84843f(0x18c)][_0x84843f(0x1cc)]}};_0x1cc87c['handleMoveRange'](_0x7fb38,_0x364725);const _0x5c01bc={..._0x11ad80,'sourceRangeInfo':_0x364725};this[_0x84843f(0x3ae)](_0x12bcb5,_0x30355b[_0x84843f(0x1c7)],_0x7fb38,_0x5c01bc),this[_0x84843f(0x162)]({'unitId':_0x12bcb5,'token':_0x7fb38,'type':Be['update'],'oldSourceRangeInfo':_0x877096,'dataRangeInfo':_0x364725,'targetCellInfo':_0x11ad80[_0x84843f(0x36a)]}),this['updateConfig']({'unitId':_0x12bcb5,'subUnitId':_0x30355b['subUnitId'],'oldSubUnitId':_0x4c2e93,'pivotTableId':_0x7fb38,'pivotTableConfig':_0x5c01bc,'collectionConfig':_0x1cc87c[_0x84843f(0x1d8)]()});}}}}[_0x5c103d(0x162)](_0x2fd1e4){const _0x2bf699=_0x5c103d;this[_0x2bf699(0x187)][_0x2bf699(0x38e)](_0x2fd1e4);}[_0x5c103d(0x351)](_0x465b49){const _0x51005d=_0x5c103d;let _0x36c508=this[_0x51005d(0x1a8)][_0x51005d(0x385)](_0x465b49);return _0x36c508||(_0x36c508=new wi(this,this[_0x51005d(0x1f9)]),this[_0x51005d(0x1a8)][_0x51005d(0x1d3)](_0x465b49,_0x36c508)),_0x36c508;}[_0x5c103d(0x1ac)](_0xa7b18d,_0x4c8801){const _0x4da519=_0x5c103d;return this[_0x4da519(0x351)](_0xa7b18d)[_0x4da519(0x33a)][_0x4c8801];}[_0x5c103d(0x239)](_0x4159ff,_0x52f688,_0x34b27a){return this['getDataFieldManager'](_0x4159ff)['getUpdateRangeDeleteIds'](_0x52f688,_0x34b27a);}[_0x5c103d(0x349)](_0x22c869,_0x10be1f){const _0x4ed9e6=_0x5c103d;let _0x37baa1=this[_0x4ed9e6(0x14d)][_0x4ed9e6(0x385)](_0x22c869);_0x37baa1||(_0x37baa1=new Map(),this[_0x4ed9e6(0x14d)]['set'](_0x22c869,_0x37baa1));let _0x573446=_0x37baa1[_0x4ed9e6(0x385)](_0x10be1f);return _0x573446||(_0x573446=new Map(),_0x37baa1['set'](_0x10be1f,_0x573446)),_0x573446;}[_0x5c103d(0x3ae)](_0x5b6c97,_0x51ddd4,_0x2d58b6,_0x160b8b){const _0x2c4836=_0x5c103d;this['_ensurePivotMap'](_0x5b6c97,_0x51ddd4)[_0x2c4836(0x1d3)](_0x2d58b6,_0x160b8b);}[_0x5c103d(0x2ac)](_0x2153d4,_0x6242c2,_0x1dad40){const _0x50e7ac=_0x5c103d;var _0x5adb2c,_0x470b17,_0x706292,_0x3c3af0;((_0x470b17=(_0x5adb2c=this[_0x50e7ac(0x14d)][_0x50e7ac(0x385)](_0x2153d4))==null?void 0x0:_0x5adb2c[_0x50e7ac(0x385)](_0x6242c2))==null?void 0x0:_0x470b17['get'](_0x1dad40))&&((_0x3c3af0=(_0x706292=this[_0x50e7ac(0x14d)][_0x50e7ac(0x385)](_0x2153d4))==null?void 0x0:_0x706292[_0x50e7ac(0x385)](_0x6242c2))==null||_0x3c3af0['delete'](_0x1dad40));}['_updatePivotTableInstanceCache'](_0x4014c3,_0x5ab943){const _0x13e1f0=_0x5c103d;this[_0x13e1f0(0x26a)][_0x13e1f0(0x1d3)](_0x4014c3,_0x5ab943);}['_deletePivotTableInstanceCache'](_0xb351d8){const _0x495275=_0x5c103d;this[_0x495275(0x26a)][_0x495275(0x204)](_0xb351d8);}[_0x5c103d(0x343)](_0x18de93,_0x5e01d2){const _0x412992=_0x5c103d;let _0x18d972=this[_0x412992(0x34e)][_0x412992(0x385)](_0x18de93);_0x18d972||(_0x18d972=new Map(),this['_viewData'][_0x412992(0x1d3)](_0x18de93,_0x18d972));let _0x24bcb0=_0x18d972[_0x412992(0x385)](_0x5e01d2);return _0x24bcb0||(_0x24bcb0=new Map(),_0x18d972['set'](_0x5e01d2,_0x24bcb0)),_0x24bcb0;}[_0x5c103d(0x31c)](_0x2c519a){const _0x2bb639=_0x5c103d,{unitId:_0x3529c6,subUnitId:_0x43aec4,pivotTableId:_0x348740,pivotTableConfig:_0x20e21a,collectionConfig:_0x277679}=_0x2c519a,_0x324a59={'unitId':_0x3529c6,'subUnitId':_0x43aec4,'oldSubUnitId':_0x43aec4,'pivotTableId':_0x348740,'pivotTableConfig':_0x20e21a,'collectionConfig':_0x277679};this[_0x2bb639(0x1a9)][_0x2bb639(0x273)](co['id'],_0x324a59,{'onlyLocal':!0x0});}[_0x5c103d(0x2b2)](_0x2fb06c,_0x1b5753,_0x205898,_0x8431d6,_0x3eada9,_0x654566,_0x5a6b15,_0x31aa0b=!0x1){const _0x99dae7=_0x5c103d;var _0x3746be;this[_0x99dae7(0x1a9)][_0x99dae7(0x273)](Dt['id'],{'single':{'unitId':_0x2fb06c,'subUnitId':_0x1b5753,'type':_0x205898,'pivotTableId':_0x8431d6,'view':_0x3eada9,'pivotConfig':_0x654566},'collectionConfig':{[_0x2fb06c]:_0x5a6b15}},{'onlyLocal':!0x0});const _0x2abe63=!!((_0x3746be=this[_0x99dae7(0x3a8)](_0x8431d6))!=null&&_0x3746be[_0x99dae7(0x1dc)]()),_0x4fe29f=this['getPivotTableConfig'](_0x2fb06c,_0x1b5753,_0x8431d6);_0x4fe29f&&this[_0x99dae7(0x15b)]({'view':_0x3eada9,'pivotTableId':_0x8431d6,'textInfo':this[_0x99dae7(0x345)](),'isEmpty':_0x2abe63,'targetCellInfo':_0x4fe29f[_0x99dae7(0x36a)]},_0x31aa0b);}[_0x5c103d(0x15b)](_0x24aa7f,_0x219e97){const _0x5b160c=_0x5c103d,{targetCellInfo:_0x470e6c,pivotTableId:_0x432ff5}=_0x24aa7f,{unitId:_0x552c45,subUnitId:_0x108793}=_0x470e6c,_0x5250e0=this['_ensureViewDataMap'](_0x552c45,_0x108793),_0x3b338f=_0x5250e0[_0x5b160c(0x385)](_0x432ff5);let _0x5b6469,_0x433aa9;_0x3b338f&&(_0x5b6469=_0x3b338f[_0x5b160c(0x148)],_0x433aa9=_0x3b338f[_0x5b160c(0x3a4)]);const {rangesCache:_0x51c789,matrix:_0x26f1ba}=Di(_0x24aa7f);_0x5250e0[_0x5b160c(0x1d3)](_0x432ff5,{'rangeCache':_0x51c789,'matrix':_0x26f1ba,'oldMatrix':_0x433aa9,'oldRangeCache':_0x5b6469}),_0x219e97||this['_viewData$'][_0x5b160c(0x38e)]({'unitId':_0x552c45,'subUnitId':_0x108793,'pivotTableId':_0x432ff5});}['addPivotTable'](_0x3f5352,_0x4faa97,_0x2eb447,_0xaa49a7,_0xd86069){const _0x1f1fd1=_0x5c103d;this[_0x1f1fd1(0x3ae)](_0x3f5352,_0x4faa97,_0x2eb447,_0xd86069),this[_0x1f1fd1(0x1f3)](_0x2eb447,_0xaa49a7);}[_0x5c103d(0x225)](_0x47ad38,_0x2b89ff,_0x118ddf){const _0x2b995b=_0x5c103d,_0x4f703d=this['getDataFieldManager'](_0x47ad38);_0x4f703d[_0x2b995b(0x35c)](_0x118ddf)[_0x2b995b(0x266)](_0x55aa96=>{_0x4f703d['deleteDataField'](_0x55aa96);}),this['removeCollections'](_0x47ad38,_0x118ddf),this[_0x2b995b(0x2ac)](_0x47ad38,_0x2b89ff,_0x118ddf),this[_0x2b995b(0x1a3)](_0x118ddf);}[_0x5c103d(0x174)](_0x4ba6da,_0x38600d,_0x32f90c,_0x457b65){const _0x4fb571=_0x5c103d;this[_0x4fb571(0x3ae)](_0x4ba6da,_0x38600d,_0x32f90c,_0x457b65);}[_0x5c103d(0x227)](_0x3045a6,_0xd7f934,_0x6ed0dc){const _0xb967b7=_0x5c103d;var _0xedfb87,_0x3bbe88;const _0x17d187=(_0x3bbe88=(_0xedfb87=this[_0xb967b7(0x14d)][_0xb967b7(0x385)](_0x3045a6))==null?void 0x0:_0xedfb87[_0xb967b7(0x385)](_0xd7f934))==null?void 0x0:_0x3bbe88['get'](_0x6ed0dc);if(_0x17d187)return _0x17d187;}[_0x5c103d(0x375)](_0x24be14,_0x3b5b35,_0x12dff1){const _0xcfde4a=_0x5c103d;var _0x34ec2a,_0x58cddd;const _0x124681=(_0x58cddd=(_0x34ec2a=this[_0xcfde4a(0x14d)][_0xcfde4a(0x385)](_0x24be14))==null?void 0x0:_0x34ec2a[_0xcfde4a(0x385)](_0x3b5b35))==null?void 0x0:_0x58cddd[_0xcfde4a(0x385)](_0x12dff1);if(_0x124681)return _0x124681[_0xcfde4a(0x35a)];}[_0x5c103d(0x3a8)](_0x2f1a95){const _0x11a14d=_0x5c103d;return this[_0x11a14d(0x26a)]['get'](_0x2f1a95);}['deleteUnitId'](_0x4bd18a){const _0x5b4b1e=_0x5c103d;this[_0x5b4b1e(0x14d)][_0x5b4b1e(0x204)](_0x4bd18a);const _0x58ae5f=this['_dataFieldManagerCollection']['get'](_0x4bd18a);_0x58ae5f&&(_0x58ae5f[_0x5b4b1e(0x2df)](),this[_0x5b4b1e(0x1a8)][_0x5b4b1e(0x204)](_0x4bd18a)),this[_0x5b4b1e(0x34e)]['delete'](_0x4bd18a),this[_0x5b4b1e(0x315)][_0x5b4b1e(0x266)](_0x166fa2=>{const _0x2d48dd=_0x5b4b1e;_0x166fa2[_0x2d48dd(0x34c)](_0x4bd18a);});}[_0x5c103d(0x169)](_0x5c5519,_0x4aaf8b,_0x14c124,_0x8b28ff){const _0x22fbf0=_0x5c103d;return this[_0x22fbf0(0x351)](_0x14c124[_0x22fbf0(0x2a0)])['addCollectionByJSON'](_0x5c5519,_0x4aaf8b,_0x14c124,_0x8b28ff);}[_0x5c103d(0x2f9)](_0x50d734){return this['getDataFieldManager'](_0x50d734['unitId'])['createCollectionWithDataRange'](_0x50d734);}['refreshData'](_0x2d9c7a,_0x5105b9,_0x2a35f4){const _0x3bf0a9=_0x5c103d;this[_0x3bf0a9(0x351)](_0x2a35f4[_0x3bf0a9(0x2a0)])[_0x3bf0a9(0x31e)](_0x2d9c7a,_0x5105b9,_0x2a35f4);}[_0x5c103d(0x368)](_0x341f0b,_0x2cd486){const _0x4de6ef=_0x5c103d;this[_0x4de6ef(0x351)](_0x341f0b)['deleteDataField'](_0x2cd486);}[_0x5c103d(0x154)](_0x35d557,_0x2b294f){const _0x4f308e=_0x5c103d;this['getDataFieldManager'](_0x35d557)[_0x4f308e(0x127)](_0x2b294f);}[_0x5c103d(0x317)](_0xef044,_0x495682){const _0x474aa8=_0x5c103d;var _0xb16fd0;return(_0xb16fd0=this[_0x474aa8(0x14d)][_0x474aa8(0x385)](_0xef044))==null?void 0x0:_0xb16fd0[_0x474aa8(0x385)](_0x495682);}['getTargetByPivotId'](_0xa7845d){const _0x4c7446=_0x5c103d;for(const [_0x33cab2,_0x45ebd2]of this[_0x4c7446(0x14d)][_0x4c7446(0x33c)]())for(const [_0x56ceff,_0x34c443]of _0x45ebd2['entries']())if(_0x34c443[_0x4c7446(0x1d0)](_0xa7845d))return{'unitId':_0x33cab2,'subUnitId':_0x56ceff};return null;}[_0x5c103d(0x328)](_0x1fdd6e,_0x6ee13b,