UNPKG

@univerjs-pro/sheets-pivot

Version:

Pivot table integration for Univer Sheets.

1 lines • 233 kB
const _0x243eec=_0x4060;(function(_0x37afa2,_0x295c91){const _0x40a695=_0x4060,_0x328e2c=_0x37afa2();while(!![]){try{const _0x47e8ce=parseInt(_0x40a695(0x2ad))/0x1*(parseInt(_0x40a695(0x309))/0x2)+parseInt(_0x40a695(0x1c6))/0x3+parseInt(_0x40a695(0x3c6))/0x4*(-parseInt(_0x40a695(0x24b))/0x5)+-parseInt(_0x40a695(0x360))/0x6*(parseInt(_0x40a695(0x221))/0x7)+parseInt(_0x40a695(0x3fe))/0x8+-parseInt(_0x40a695(0x370))/0x9+parseInt(_0x40a695(0x253))/0xa;if(_0x47e8ce===_0x295c91)break;else _0x328e2c['push'](_0x328e2c['shift']());}catch(_0x275112){_0x328e2c['push'](_0x328e2c['shift']());}}}(_0x5e4e,0x5fbd6));import{DataField as _0x1af322,DataFieldManager as _0x5b1fae,DateGroupField as _0x23885a,FieldsCollection as _0x4fc9b3,GlobalConfig as _0x3e6de4,PivotCallbackEnum as _0x149b41,PivotCellStyleTypeEnum as _0x5c406c,PivotDataFieldDataTypeEnum as _0x516660,PivotDataFieldTypeEnum as _0x54e7bf,PivotDateGroupFieldDateTypeEnum as _0x340280,PivotErrorTypeEnum as _0x169f5b,PivotFilterTypeEnum as _0x5d9249,PivotSubtotalTypeEnum as _0x20022d,PivotTable as _0x35042f,PivotTableChangeTypeEnum as _0x15891,PivotTableFiledAreaEnum as _0x3eb590,PivotTableValuePositionEnum as _0x29bbfd,PivotView as _0x1f264a,PivotViewCellValueTypeEnum as _0x1b140a,createLabelField as _0x263ff3,createValueField as _0x1ecabf,excelDateToUnixMilliseconds as _0x320e8c,generateHexNumber as _0x356231,getAutoDisplayName as _0x1ff686,isBaseGroupField as _0x30b286,isDateGroupField as _0x2a2af4,isDateGroupFieldJSON as _0x56417a,isDateValue as _0x1f0f1f,isErrorValue as _0x346229,isPrefixValue as _0x51fe26,setMaxLimitItemCount as _0xc26c5a}from'@univerjs-pro/engine-pivot';function _0x4060(_0x1051a7,_0x48b28d){_0x1051a7=_0x1051a7-0x1bc;const _0x5e4e9c=_0x5e4e();let _0x406089=_0x5e4e9c[_0x1051a7];return _0x406089;}import{AsyncInterceptorManager as _0x28df58,CellValueType as _0x8a020b,CommandType as _0x3f861d,CustomCommandExecutionError as _0x1aae24,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x3d7155,DEFAULT_WORKSHEET_ROW_COUNT as _0x240d41,DependentOn as _0x1c7886,Disposable as _0x3daab7,DisposableCollection as _0x4ab35b,ICommandService as _0x53aa9,IConfigService as _0x257368,IResourceManagerService as _0x141672,IUndoRedoService as _0x185768,IUniverInstanceService as _0x27dd58,Inject as _0x934457,Injector as _0x318e87,InterceptorEffectEnum as _0x164f03,InterceptorManager as _0x41703a,LifecycleService as _0x83da3c,LocaleService as _0x4f96c6,ObjectMatrix as _0x27bcc4,Optional as _0x2f1d8d,Plugin as _0x21af8d,RANGE_TYPE as _0x3ec4fc,Range as _0x21ae70,Rectangle as _0xc99b16,Tools as _0x3df185,UniverInstanceType as _0x2faf39,cellToRange as _0x2d22cd,createAsyncInterceptorKey as _0x2db88c,createInterceptorKey as _0x80b0f7,generateRandomId as _0x4ef5a8,merge as _0x34809f,mergeWorksheetSnapshotWithDefault as _0x1c8ff0,numberToABC as _0x2a10a8,numfmt as _0xbffa3a,sequenceExecute as _0x59d3f5}from'@univerjs/core';import{ErrorType as _0x161824,GlobalComputingStatusService as _0x4ff381,IActiveDirtyManagerService as _0x1c64dd,IFeatureCalculationManagerService as _0x25b435,serializeRangeWithSpreadsheet as _0x4c5d48}from'@univerjs/engine-formula';import{ClearSelectionAllCommand as _0xad7838,ClearSelectionContentCommand as _0x1c8547,IExclusiveRangeService as _0x569477,INTERCEPTOR_POINT as _0xbea0a0,InsertColMutation as _0x49d8fe,InsertRowMutation as _0x332591,InsertSheetCommand as _0x39a560,InsertSheetMutation as _0x41dd5c,InsertSheetUndoMutationFactory as _0x1ad0ac,MoveRangeCommand as _0x57fae8,MoveRangeMutation as _0x41c374,RefRangeService as _0xd288f9,RemoveColMutation as _0x2b252c,RemoveRowMutation as _0x27aa7c,RemoveSheetCommand as _0x184d27,RemoveSheetMutation as _0x5c6c0f,SetRangeValuesMutation as _0x555c67,SetRangeValuesUndoMutationFactory as _0x1cec58,SetWorksheetActiveOperation as _0x40ef81,SetWorksheetColWidthMutation as _0x254279,SheetInterceptorService as _0x3a5b9a,SheetsSelectionsService as _0x5edbbd,generateNullCell as _0x22f8c2,getSheetCommandTarget as _0x28cb47}from'@univerjs/sheets';import{BehaviorSubject as _0x3c5b2c,Subject as _0x27e045}from'rxjs';import{LS_CONFIG_KEY as _0x30b8d2,ReleaseType as _0x3a32db,UniverLicensePlugin as _0x41eb5a,getLicenseInfo as _0x482082,getSheetFeatureLimit as _0x3fc915,isFeatureAuthorizedWithinTime as _0x3ee9a9}from'@univerjs-pro/license';import{RemoveSheetsFilterMutation as _0x2d50ea,SetSheetsFilterRangeMutation as _0x4bf557}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x18bfee}from'@univerjs/rpc';import{FontCache as _0x296ea5,getFontStyleString as _0x49d72d}from'@univerjs/engine-render';const gt=Number[_0x243eec(0x2d2)](0x6a1125d9),_t=0x1,vt=_0x243eec(0x323),yt=0x1,bt=_0x243eec(0x3d4);let xt=function(_0x283fe0){const _0x2cf987=_0x243eec;return _0x283fe0['Existing']=_0x2cf987(0x1ea),_0x283fe0[_0x2cf987(0x39e)]=_0x2cf987(0x3a8),_0x283fe0;}({});const St={'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':''}}},Ct={'b':{'s':0x1,'cl':{'rgb':bt}},'l':{'s':0x1,'cl':{'rgb':bt}},'r':{'s':0x1,'cl':{'rgb':bt}},'t':{'s':0x1,'cl':{'rgb':bt}}},B={'bg':{'rgb':_0x243eec(0x3af)},'ht':0x2,'vt':0x2,'tb':0x1},V={'bg':{'rgb':'rgb(255,255,255)'},'ht':0x2,'vt':0x2,'tb':0x1},H={'rowStyle':{'bg':{'rgb':'#e6ebfb'},'bd':Ct,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x243eec(0x28e)},'bd':null,'cl':{'rgb':_0x243eec(0x274)},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Ct,'bg':{'rgb':_0x243eec(0x3c8)},'vt':0x2},'cornerStyle':{'bd':Ct,'bg':{'rgb':'#eceeff'},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Ct,'bg':{'rgb':_0x243eec(0x1c8)},'vt':0x2},'leafStyle':{'bd':Ct,'bg':{'rgb':_0x243eec(0x1c8)},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x243eec(0x28e)},'cl':{'rgb':'#FFFFFF'},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Ct,'vt':0x2}};function wt(_0x17114e,_0x3643be,_0x5b8697){const _0x760a90=_0x243eec;let _0x70484d=_0x17114e[_0x760a90(0x35d)](_0x4f96c6),_0x5eedd5=_0x5b8697[_0x760a90(0x382)]('_');switch(_0x3643be){case _0x340280['Year']:return _0x70484d['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x5eedd5);case _0x340280['Minute']:return _0x70484d['t'](_0x760a90(0x1e3),..._0x5eedd5);case _0x340280[_0x760a90(0x1c2)]:return _0x70484d['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0x5eedd5);case _0x340280['HourMinute']:return _0x70484d['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x5eedd5);case _0x340280[_0x760a90(0x395)]:return _0x70484d['t'](_0x760a90(0x320),..._0x5eedd5);case _0x340280[_0x760a90(0x1cb)]:return _0x70484d['t'](_0x760a90(0x3f8),..._0x5eedd5);case _0x340280[_0x760a90(0x377)]:return _0x70484d['t'](_0x760a90(0x306),..._0x5eedd5);case _0x340280[_0x760a90(0x233)]:return _0x70484d['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x5eedd5);case _0x340280[_0x760a90(0x1d0)]:return _0x70484d['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x5eedd5);case _0x340280[_0x760a90(0x2c6)]:return _0x70484d['t'](_0x760a90(0x2ce),..._0x5eedd5);}return'';}const Tt=(_0x78bfb4,_0x170503,_0x1902f4,_0x47f20a)=>{const _0x3f59c3=_0x243eec;let _0x44b085,_0x5ed91d=_0x78bfb4[_0x3f59c3(0x35d)](_0x27dd58)['getCurrentUnitOfType'](_0x2faf39[_0x3f59c3(0x3ac)]);if(!_0x5ed91d)return null;let _0x52cbf1=_0x5ed91d[_0x3f59c3(0x372)](),_0x2d5d4e;if(_0x1902f4&&(_0x2d5d4e=_0x52cbf1[_0x3f59c3(0x226)](_0x1902f4)),_0x170503!=null&&_0x170503['v']||(_0x170503==null?void 0x0:_0x170503['v'])===0x0){_0x44b085||(_0x44b085={});let _0x4054b4=Ot(_0x170503['v']);typeof _0x4054b4==_0x3f59c3(0x1bc)?_0x44b085['t']=_0x8a020b[_0x3f59c3(0x254)]:typeof _0x4054b4==_0x3f59c3(0x396)&&(_0x44b085['t']=_0x8a020b[_0x3f59c3(0x348)]),_0x44b085['v']=_0x4054b4;}if((_0x170503!=null&&_0x170503['i']||(_0x170503==null?void 0x0:_0x170503['i'])===0x0)&&(_0x44b085||(_0x44b085={}),_0x44b085['fi']=_0x170503['i']),_0x170503!=null&&_0x170503['s']&&(_0x44b085||(_0x44b085={}),_0x44b085['pbt']=_0x170503['s']),_0x1902f4&&(_0x44b085||(_0x44b085={}),_0x44b085['s']=_0x2d5d4e),_0x47f20a&&_0x44b085!=null&&_0x44b085['v']&&_0x44b085['pbt']!==_0x5c406c[_0x3f59c3(0x40d)]&&_0x44b085['pbt']!==_0x5c406c[_0x3f59c3(0x215)]){let _0x1efd60=String(_0x44b085['v']),{dateType:_0x512a79}=_0x47f20a;_0x44b085['v']=wt(_0x78bfb4,_0x512a79,_0x1efd60),_0x44b085['t']=_0x8a020b['STRING'];}return _0x44b085;},Et=(_0x3d7bef,_0x3de032,_0xb38b3f,_0x2fd87c)=>{const _0x3315ad=_0x243eec;let _0x281982=_0xb38b3f[_0x3315ad(0x1e6)],{cornerView:_0x39febe,rowView:_0x247783,colView:_0x490a2e,dataView:_0x57c25e,pageView:_0x57decf,formatMap:_0x4c8117,groupInfo:_0x567b7b}=_0x3de032,{row:_0x1fba40,col:_0x366e25}=_0x281982,_0x314ddf=new _0x27bcc4(),_0x5c8a93={},_0x507d04={},_0x571f14={},_0x292ced={},_0x3777b8={},_0x336bee=_0x1fba40,_0x2a4978=_0x366e25;Object[_0x3315ad(0x337)](_0x57decf[_0x3315ad(0x3e3)])[_0x3315ad(0x3ad)](_0xe369d5=>{const _0x7f63f=_0x3315ad;Object[_0x7f63f(0x337)](_0x57decf[_0x7f63f(0x3e3)][Number(_0xe369d5)])[_0x7f63f(0x3ad)](_0x20e62a=>{const _0x5a0c95=_0x7f63f;let _0x586ace={..._0x57decf['data'][Number(_0xe369d5)][Number(_0x20e62a)]};_0x314ddf['setValue'](Number(_0xe369d5)+_0x336bee,Number(_0x20e62a)+_0x2a4978,Tt(_0x3d7bef,_0x586ace,H[_0x5a0c95(0x26d)]));});});let _0x24371b=Object[_0x3315ad(0x337)](_0x57decf[_0x3315ad(0x3e3)])[_0x3315ad(0x1d2)];_0x336bee+=_0x24371b+ +!!_0x24371b;let _0x9921e9=_0x39febe[_0x3315ad(0x3c5)](),_0x319c36=_0x39febe[_0x3315ad(0x280)]();for(let _0x1ef1c2=0x0;_0x1ef1c2<_0x9921e9;_0x1ef1c2++)for(let _0x57299e=0x0;_0x57299e<_0x319c36;_0x57299e++){var _0x5ea03f;let _0x45cb2b={...(_0x5ea03f=_0x39febe['data'])==null||(_0x5ea03f=_0x5ea03f[_0x1ef1c2])==null?void 0x0:_0x5ea03f[_0x57299e]};if(_0x45cb2b){var _0x4e90fe;(_0x4e90fe=_0x247783[_0x3315ad(0x2c5)][_0x57299e])!=null&&_0x4e90fe[_0x3315ad(0x40b)]&&_0x57299e===_0x319c36-0x1&&_0x1ef1c2===_0x9921e9-0x1&&(_0x45cb2b['v']=''+_0x2fd87c[_0x3315ad(0x2f9)]);}_0x314ddf['setValue'](_0x1ef1c2+_0x336bee,_0x57299e+_0x2a4978,Tt(_0x3d7bef,_0x45cb2b,H[_0x3315ad(0x416)]));}for(let _0x3efe53=0x0;_0x3efe53<_0x39febe[_0x3315ad(0x394)][_0x3315ad(0x1d2)];_0x3efe53++)_0x39febe['info'][_0x3efe53]&&(_0x571f14[''+(_0x3efe53+_0x2a4978)]=_0x39febe[_0x3315ad(0x394)][_0x3efe53]);_0x2a4978+=_0x319c36;let _0x3d7239=_0x490a2e['headerMap'],_0x38647d=_0x490a2e[_0x3315ad(0x1bf)]()>=0x0?_0x490a2e['getLastRow']()+0x1:0x0,_0x31334f=_0x490a2e[_0x3315ad(0x2d7)]()>=0x0?_0x490a2e[_0x3315ad(0x2d7)]()+0x1:0x0;for(let _0x12392f=0x0;_0x12392f<_0x31334f;_0x12392f++){for(let _0x58f8d0=0x0;_0x58f8d0<_0x38647d;_0x58f8d0++){var _0x260c8e,_0xcb82dc;let _0x2a1b0f={...(_0x260c8e=_0x490a2e[_0x3315ad(0x3e3)])==null||(_0x260c8e=_0x260c8e[_0x58f8d0])==null?void 0x0:_0x260c8e[_0x12392f]},_0xa15432=(_0xcb82dc=_0x3d7239[_0x58f8d0])==null?void 0x0:_0xcb82dc[_0x3315ad(0x20f)],_0xa76221=_0x4c8117[_0xa15432],_0x3e94bb=_0x567b7b[_0xa15432];if(_0x2a1b0f){var _0x58d5f0;_0x2a1b0f['v']=Dt(_0x2a1b0f,_0x58f8d0===0x0&&((_0x58d5f0=_0x490a2e['getHeaderMapItem'](_0x12392f+0x1))==null?void 0x0:_0x58d5f0[_0x3315ad(0x40b)]),_0xa76221,_0x2fd87c);}let _0x52c80b;_0x52c80b=_0xa76221?{...H[_0x3315ad(0x260)],'n':{'pattern':_0xa76221}}:{...H[_0x3315ad(0x260)]},_0x314ddf[_0x3315ad(0x226)](_0x58f8d0+_0x336bee,_0x12392f+_0x2a4978,Tt(_0x3d7bef,_0x2a1b0f,_0x52c80b,_0x3e94bb));}_0x490a2e[_0x3315ad(0x394)][_0x12392f]&&(_0x507d04[''+(_0x12392f+_0x2a4978)]=_0x490a2e['info'][_0x12392f]),_0x490a2e[_0x3315ad(0x2c5)][_0x12392f+0x1]&&(_0x3777b8[''+(_0x12392f+_0x336bee+0x1)]=_0x490a2e[_0x3315ad(0x2c5)][_0x12392f+0x1]);}_0x336bee+=_0x9921e9;let _0x3d67c8=_0x247783[_0x3315ad(0x2c5)],_0x249630=_0x247783[_0x3315ad(0x1bf)]()>=0x0?_0x247783[_0x3315ad(0x1bf)]()+0x1:0x0,_0x24ef06=_0x247783[_0x3315ad(0x2d7)]()>=0x0?_0x247783[_0x3315ad(0x2d7)]()+0x1:0x0;for(let _0x52720b=0x0;_0x52720b<_0x249630;_0x52720b++){for(let _0x576a44=0x0;_0x576a44<_0x24ef06;_0x576a44++){var _0x3fdfb2,_0x1e8f84;let _0x3abb39={...(_0x3fdfb2=_0x247783['data'])==null||(_0x3fdfb2=_0x3fdfb2[_0x52720b])==null?void 0x0:_0x3fdfb2[_0x576a44]},_0x3ac8dd=(_0x1e8f84=_0x3d67c8[_0x576a44])==null?void 0x0:_0x1e8f84[_0x3315ad(0x20f)],_0x1adb3e=_0x4c8117[_0x3ac8dd],_0x14435f=_0x567b7b[_0x3ac8dd];_0x3abb39&&(_0x3abb39['v']=Dt(_0x3abb39,!0x1,_0x1adb3e,_0x2fd87c));let _0x559376;_0x559376=_0x247783[_0x3315ad(0x394)][_0x52720b][_0x3315ad(0x291)]===_0x247783[_0x3315ad(0x280)]()?H[_0x3315ad(0x1fd)]:_0x247783['info'][_0x52720b][_0x3315ad(0x3f0)]?_0x247783[_0x3315ad(0x394)][_0x52720b][_0x3315ad(0x291)]===0x0?H[_0x3315ad(0x259)]:H[_0x3315ad(0x338)]:H[_0x3315ad(0x358)],_0x1adb3e&&(_0x559376={..._0x559376,'n':{'pattern':_0x1adb3e}}),_0x314ddf[_0x3315ad(0x226)](_0x52720b+_0x336bee,_0x576a44+_0x366e25,Tt(_0x3d7bef,_0x3abb39,_0x559376,_0x14435f));}_0x247783[_0x3315ad(0x394)][_0x52720b]&&(_0x5c8a93[''+(_0x52720b+_0x336bee)]=_0x247783['info'][_0x52720b]),_0x247783[_0x3315ad(0x2c5)][_0x52720b]&&(_0x292ced[''+(_0x52720b+_0x366e25)]=_0x247783[_0x3315ad(0x2c5)][_0x52720b]);}let _0x3d2501=_0x57c25e[_0x3315ad(0x3c5)](),_0xad2074=_0x57c25e[_0x3315ad(0x280)]();for(let _0x3b3128=0x0;_0x3b3128<_0x3d2501;_0x3b3128++)for(let _0x323a1d=0x0;_0x323a1d<_0xad2074;_0x323a1d++){var _0x3b0acc;let _0x2eb1c5={...(_0x3b0acc=_0x57c25e[_0x3315ad(0x3e3)])==null||(_0x3b0acc=_0x3b0acc[_0x3b3128])==null?void 0x0:_0x3b0acc[_0x323a1d]},_0x13f80b;_0x13f80b=_0x247783[_0x3315ad(0x394)][_0x3b3128][_0x3315ad(0x3f0)]?_0x247783['info'][_0x3b3128]['level']===0x0?H['grandTotal']:H[_0x3315ad(0x338)]:H['dataStyle'];let _0x8145f4=_0x247783[_0x3315ad(0x394)][_0x3b3128][_0x3315ad(0x411)],_0x1de2d=_0x490a2e[_0x3315ad(0x394)][_0x323a1d][_0x3315ad(0x411)],_0x13df19=Math[_0x3315ad(0x1c9)](_0x8145f4,_0x1de2d),_0x25d902=_0xb38b3f[_0x3315ad(0x425)][_0x3315ad(0x391)][_0x3315ad(0x399)](),_0x4b0c81='';if(_0x13df19<0x0){var _0x4e1ff6;_0x4b0c81=(_0x4e1ff6=_0x25d902[0x0])==null?'':_0x4e1ff6;}else{var _0x2d3ee8;_0x4b0c81=(_0x2d3ee8=_0x25d902[_0x13df19])==null?'':_0x2d3ee8;}let _0x23df3e=_0x4c8117[_0x4b0c81];_0x23df3e&&(_0x13f80b={..._0x13f80b,'n':{'pattern':_0x23df3e}}),_0x314ddf['setValue'](_0x3b3128+_0x336bee,_0x323a1d+_0x2a4978,Tt(_0x3d7bef,_0x2eb1c5,_0x13f80b));}return{'valueMatrix':_0x314ddf,'rowInfo':_0x5c8a93,'colInfo':_0x507d04,'cornerInfo':_0x571f14,'rowHeaderMap':_0x292ced,'colHeaderMap':_0x3777b8};};function Dt(_0x32d9d0,_0x3ea67c,_0x615e3a,_0x1e1fa7){const _0x324623=_0x243eec;let _0x55126e=_0x32d9d0['v'];_0x3ea67c&&(_0x55126e=''+_0x1e1fa7['sheets-pivot.value']);let _0x3394a3=_0x32d9d0['t']&&(_0x32d9d0['t']&_0x1b140a[_0x324623(0x1ef)])>0x0;_0x3394a3&&(_0x55126e=''+_0x1e1fa7[_0x324623(0x289)]);let _0x4d2f49=_0x32d9d0['t']&&(_0x32d9d0['t']&_0x1b140a[_0x324623(0x20c)])>0x0;if(_0x4d2f49&&(_0x55126e=''+_0x1e1fa7[_0x324623(0x1de)]),_0x32d9d0['s']===_0x5c406c[_0x324623(0x215)]){let _0x32c554=_0x55126e,_0x1987d6='';_0x51fe26(_0x55126e)&&(_0x32c554=_0x55126e[_0x324623(0x26e)],_0x1987d6=_0x55126e['value']);let _0x2aafaf=_0x615e3a&&!_0x3394a3&&!_0x4d2f49?_0xbffa3a[_0x324623(0x3ab)](_0x615e3a,Number(_0x32c554)):_0x32c554;_0x55126e=_0x1987d6?_0x2aafaf+'\x20'+_0x1987d6:_0x2aafaf+'\x20'+_0x1e1fa7['sheets-pivot.subTotal'];}else _0x32d9d0['s']===_0x5c406c['GrandTotal']&&(_0x55126e=_0x55126e+'\x20'+_0x1e1fa7[_0x324623(0x34e)]);return _0x55126e;}function Ot(_0x40c6bf){const _0x90ed4=_0x243eec;if(_0x346229(_0x40c6bf)){let {errorType:_0x13affd}=_0x40c6bf;switch(_0x13affd){case _0x169f5b[_0x90ed4(0x24a)]:return _0x161824[_0x90ed4(0x44d)];case _0x169f5b['NotNumber']:return _0x161824[_0x90ed4(0x39f)];case _0x169f5b[_0x90ed4(0x404)]:return _0x161824[_0x90ed4(0x3ee)];case _0x169f5b[_0x90ed4(0x25a)]:return _0x161824[_0x90ed4(0x3ee)];case _0x169f5b[_0x90ed4(0x2f2)]:return _0x161824[_0x90ed4(0x3bc)];}}return _0x40c6bf;}function U(_0x2b1d3f,_0x496960,_0x36e984=!0x1,_0x553c14=!0x1){const _0x416c71=_0x243eec;let {data:_0x448472}=_0x496960,_0x483a00=_0x496960[_0x416c71(0x3c5)](),_0x2efb28=_0x496960[_0x416c71(0x280)]();if(_0x483a00<=0x0||_0x2efb28<=0x0)return[];let _0x5a06ab=_0x496960[_0x416c71(0x2d7)](),_0x3b783c=_0x496960[_0x416c71(0x1bf)](),_0x4ca8c8=_0x553c14?_0x3b783c>=0x0?_0x3b783c+0x1:0x0:_0x483a00,_0x35fe02=_0x553c14?_0x5a06ab>=0x0?_0x5a06ab+0x1:0x0:_0x2efb28,{row:_0xa3e26b,col:_0x42c4bc}=_0x2b1d3f,_0x484ad7=_0xa3e26b,_0x2726f9=_0x42c4bc;if(_0x36e984){let _0x14c509=[];for(let [_0x152402,_0x1d1d2a]of Object['entries'](_0x448472))for(let [_0x39a971,_0x77e648]of Object[_0x416c71(0x43a)](_0x1d1d2a))_0x14c509['push'](_0x2d22cd(_0x484ad7+Number(_0x152402),_0x2726f9+Number(_0x39a971)));return _0x14c509;}else{let _0x4c1335=_0x553c14?+(_0x4ca8c8>0x0):0x1,_0x304488=_0x553c14?+(_0x35fe02>0x0):0x1;return[{'startRow':_0x484ad7,'startColumn':_0x2726f9,'endRow':_0xa3e26b+_0x4ca8c8-_0x4c1335,'endColumn':_0x42c4bc+_0x35fe02-_0x304488}];}}const kt=_0x243eec(0x2af);let At=function(_0x13362c){const _0x3b4310=_0x243eec;return _0x13362c[_0x3b4310(0x24d)]=_0x3b4310(0x3e5),_0x13362c[_0x3b4310(0x3f6)]=_0x3b4310(0x1f6),_0x13362c[_0x3b4310(0x3d1)]=_0x3b4310(0x36c),_0x13362c['AddPivotTableWithConfig']=_0x3b4310(0x2a3),_0x13362c['AddPivotTable']='addPivotTable',_0x13362c[_0x3b4310(0x3a9)]='movePivotField',_0x13362c['RemovePivotField']=_0x3b4310(0x375),_0x13362c[_0x3b4310(0x223)]=_0x3b4310(0x347),_0x13362c[_0x3b4310(0x25b)]='setPivotFilter',_0x13362c['SetPivotSort']='setPivotSort',_0x13362c[_0x3b4310(0x3ef)]=_0x3b4310(0x41d),_0x13362c['UpdatePivotSource']='updatePivotSource',_0x13362c[_0x3b4310(0x37c)]=_0x3b4310(0x23c),_0x13362c[_0x3b4310(0x345)]='drillDown',_0x13362c[_0x3b4310(0x3c4)]=_0x3b4310(0x3b1),_0x13362c[_0x3b4310(0x324)]=_0x3b4310(0x295),_0x13362c[_0x3b4310(0x42b)]='resetPivotTable',_0x13362c[_0x3b4310(0x1c7)]=_0x3b4310(0x3a3),_0x13362c;}({});const jt={'sheets-pivot.blankValue':_0x243eec(0x421),'sheets-pivot.columnName':_0x243eec(0x373),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x243eec(0x3bf),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x243eec(0x2a4),'sheets-pivot.countName':'Count\x20of\x20','sheets-pivot.countNumsName':_0x243eec(0x343),'sheets-pivot.maxName':_0x243eec(0x3e1),'sheets-pivot.minName':_0x243eec(0x296),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x243eec(0x2f6),'sheets-pivot.stdDevpName':_0x243eec(0x401),'sheets-pivot.sumName':_0x243eec(0x2db),'sheets-pivot.varName':_0x243eec(0x1c1),'sheets-pivot.varpName':_0x243eec(0x27c),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x243eec(0x333),'sheets-pivot.blank':_0x243eec(0x1ef),'sheets-pivot.other':_0x243eec(0x20c),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x243eec(0x205),'sheets-pivot.emptyPivot.column':_0x243eec(0x3b0),'sheets-pivot.emptyPivot.values':'Values'},Mt={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},W=_0x2db88c(_0x243eec(0x216)),Nt=_0x80b0f7(_0x243eec(0x35b));let Pt=function(_0x3bf0bb){const _0x5f537a=_0x243eec;return _0x3bf0bb['Add']='add',_0x3bf0bb['Set']='set',_0x3bf0bb['Delete']=_0x5f537a(0x361),_0x3bf0bb;}({});const Ft={'type':_0x3f861d[_0x243eec(0x447)],'id':_0x243eec(0x2aa),'handler':()=>!0x0},It={'type':_0x3f861d[_0x243eec(0x447)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},Lt={'type':_0x3f861d[_0x243eec(0x447)],'id':_0x243eec(0x20d),'handler':()=>!0x0},Rt={'type':_0x3f861d[_0x243eec(0x447)],'id':_0x243eec(0x22d),'handler':()=>!0x0},zt={'type':_0x3f861d[_0x243eec(0x447)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0};function Bt(_0x450345){'@babel/helpers - typeof';const _0x64558f=_0x243eec;return Bt=typeof Symbol==_0x64558f(0x43d)&&typeof Symbol[_0x64558f(0x38b)]==_0x64558f(0x3fb)?function(_0x7d5ee){return typeof _0x7d5ee;}:function(_0x1ffd22){const _0x2d5c6e=_0x64558f;return _0x1ffd22&&typeof Symbol=='function'&&_0x1ffd22['constructor']===Symbol&&_0x1ffd22!==Symbol[_0x2d5c6e(0x235)]?_0x2d5c6e(0x3fb):typeof _0x1ffd22;},Bt(_0x450345);}function Vt(_0x48d9ea,_0x282626){const _0x3d2c76=_0x243eec;if(Bt(_0x48d9ea)!=_0x3d2c76(0x3ff)||!_0x48d9ea)return _0x48d9ea;var _0x4a214f=_0x48d9ea[Symbol[_0x3d2c76(0x3a6)]];if(_0x4a214f!==void 0x0){var _0x9607b=_0x4a214f[_0x3d2c76(0x2f4)](_0x48d9ea,_0x282626||_0x3d2c76(0x350));if(Bt(_0x9607b)!=_0x3d2c76(0x3ff))return _0x9607b;throw TypeError(_0x3d2c76(0x38c));}return(_0x282626===_0x3d2c76(0x396)?String:Number)(_0x48d9ea);}function Ht(_0x4e13d7){var _0x40f810=Vt(_0x4e13d7,'string');return Bt(_0x40f810)=='symbol'?_0x40f810:_0x40f810+'';}function G(_0x55693f,_0x325af2,_0x589090){return(_0x325af2=Ht(_0x325af2))in _0x55693f?Object['defineProperty'](_0x55693f,_0x325af2,{'value':_0x589090,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55693f[_0x325af2]=_0x589090,_0x55693f;}function _0x5e4e(){const _0x399838=['addDataFieldWithoutUnitInfo','set','NO_COMMERCIAL','sheet.command.update-pivot-table-source-range','BadReference','getFieldPositionInfoById','call','getOwnPropertyDescriptor','StdDev\x20of\x20','triggerDirtyFeature','sheets-pivot.dateGroup.yearQuarter','sheets-pivot.value','getFilterInfo','dataStream','_init','SetValueFilter','sheets-pivot.config','isNaN','None','getRangeStartEndInfo','sheet.command.set-pivot-filter','COMMAND','getPivotTableCellData','deleteField','sheets-pivot.cellDateGroupDisplay.quarter','sheet.mutation.pivot-update-value-position','_exclusiveRangeService','2358oXhduB','redos','unshift','sourceRangeInfo','getFullYear','rangesInfo','fieldId','getSubUnitPivotConfigs','uniqueDataFieldName','sheet.command.set-pivot-field-setting','_viewUpdate$','getSourceName','sortInfo','updatePivotTableRangeInfo','tuple','some','getMatrix','intercept','_initConfig','getMatrixFromRunTimeData','_toJSON','_initPivotDataGetListener','startCollectChangeset','sheets-pivot.cellDateGroupDisplay.date','setRangeKeyMap','sheets-pivot.dateGroup.hourMinute','SHEET_PIVOT_TABLE_PLUGIN','SetPivotTableConfig','_host','displayName','Expand','shouldClear','UpdateFieldPosition','setPivotOption','column','version','_sheetsPivotTableAdaptorModel','Collapse','getTextSize','refreshGroupField','_viewData$','error','value','setOptions','lastCol','_config','keys','subTotalStyle','_refRangeHandle','filterFields','push','getTextInfo','size','bind','0.24.0','_sheetInterceptorService','_univerInstanceService','setName','Count\x20of\x20','_ensurePivotMap','DrillDown','collectionConfig','setPivotCollapse','STRING','setPivotFilter','_refRangeService','maxDate','setLabelFilterInfo','var','sheets-pivot.grandTotal','disposableCollection','default','getFieldFormat','clearRenderCache','sheets-pivot.dateGroup.date','min','slice','_getPivotAppliedRanges','sheets-pivot.stdDevpName','rowStyle','getSheetBySheetId','_sheetsSelectionsService','pivotMutationGenerate','_pivotRenderValueMatrixCache','get','_featureCalculationManagerService','updateFieldPosition','210nCqFza','delete','_requestResolvers','sheet.mutation.remove-pivot-field','sheets-pivot.sumName','areaInfo','pluginName','_pivotTableInstanceCache','getIndexesByPathStr','fetchThroughAsyncInterceptors','removeCollectionImp','updateRenderCache','addPivotField','disposeWithMe','getUnit','handleSourceRangeChange','6965964dudtkM','_ensureViewDataMap','getStyles','Column\x20','getCellMatrix','removePivotField','measure','Quarter','getAutoDisplayNameFunction','setFieldFormat','rangeKeyMap','updateAllDisplayName','UpdateValuePosition','cornerInfo','sheets.tabs.sheet','sheets-pivot.dateGroup.monthDate','setConfig','_sheetsPivotTableConfigModel','split','originTargetInfo','countNums','onQueryEnd','onQueryStart','@univerjs-pro/sheets-pivot','originalFieldId','sheets-pivot.varName','sheet.command.pivot-drill-down','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dateType','rowRanges','getAutoFitColumnsMutations','deepClone','valueFields','_injector','sheet.mutation.set-pivot-field-subtotal-type','info','Date','string','replace','broadcastCollectionChange','concat','HourMinute','oldRangeInfo','find','getActiveSheet','New','NUM','lastRow','oldMatrix','addRecord','setOption','AddField','_initViewModelBySheetInterceptor','toPrimitive','_updateModelCache','new','MovePivotField','realDeleteValue','format','UNIVER_SHEET','forEach','row','rgb(240,241,243)','Column','setValuePivotFilter','type','endCollectChangeset','getCellRaw','sheets-pivot.emptyPivot.values','rowInfo','getSortInfo','getPivotTableRangeInfo','Year','values','notExecuteFormula','REF','getFieldCountByArea','removeField','Grand\x20Total','getDataFieldByDataFieldId','setSubtotalType','_updatePivotTableInstanceCache','_pivotTableMatrixInfo','SetValuePivotFilter','getRowCount','4oesqoP','sheet.command.add-pivot-field','#e6ebfa','getTypeOfUnitDisposed$','sheet.mutation.update-pivot-table-source-range','deleteUnitId','getUnitId','add','_initUnitDisposed','getRangeKey','onCommandExecuted','AddPivotField','sheets-pivot.averageName','sheet.mutation.set-pivot-position','#b2b2b2','_localeService','subscribe','setTextInfo','pivotConfigChange$','dimension','\x20-\x20','SetCollapse','sheet.command.move-pivot-field','generateMutationsByRanges','cellValue','columnFields','getConfig','Max\x20of\x20','stdDev','data','stdDevp','filter','maxLimitItemCount','sheet.command.set-pivot-collapse','iterateFieldByArea','SetSubtotalType','sheets-pivot.emptyPivot.column','getSubUnitPivotMatrix','refreshDataField','sheets-pivot.dateGroup.year','NAME','SetPivotSetting','isBottomTotal','pushUndoRedo','updateViewInfo','reset','getTableFieldById','_queryingMap','Panel','setRange','sheets-pivot.cellDateGroupDisplay.month','SetFieldFormat','updateConfig','symbol','setRangeValueRedoMutation','getOriginFieldId','5420504RZlbjD','object','_subjectFieldsCollectionChange','StdDevp\x20of\x20','intersects','Values','NotFunction','subtotal','setPivotInitCompleted','colCount','getDataFieldByRangeKey','registerDirtyService','collection','isValue','average','GrandTotal','dataRangeInfo','_ensurePivotItemRenderValueMatrixCache','result','valueIndex','includes','sheet.mutation.add-pivot-field','_subjectCollectionChange','count','cornerStyle','hasField','_collectionConfigModel','toString','getPivotTableConfig','_pivotInitCompleted$','getViewData','setPivotSetting','getRangeData','needSameDeleteModel','getDirtyInfo','(Blank)','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','rowFields','getCollection','fieldsConfig','getFormatInfo','_initPivotTextInfo','token','SetOptions','collapseInfo','ResetPivotTable','removeDataField','_ensurePivotTableRangeInfo','removeValueFilterInfo','addPivotTable','col','versions','addDirtyPivotTable','params','random','setPivotTable','sheets-pivot.countNumsName','filterInfo','registerCallbackWithEvent','undos','entries','getNoUsedDataFieldIds','startRow','function','startColumn','toJSON','getPivotPerformCheck','addFieldWithSourceId','addField','updatePivotSource','valid','endColumn','viewData$','MUTATION','getUpdateRangeDeleteIds','markDirty$','splice','rowHeaderMap','getRefRangeMutationsByMoveRange','DIV_BY_ZERO','_textInfo','number','sheet.command.add-pivot-table-with-config','getDisplayName','getLastRow','sheet.operation.pivot-table-view-formula-mark-dirty','Var\x20of\x20','Hour','viewUpdate$','handleMoveRange','addCollectionByJSON','1128156hIVlXs','SetOption','#f4f4f5','max','_generateUniqueVersion','Month','parse','varp','stringify','minDate','YearMonthDate','getFieldById','length','getId','registerSyncingMutations','endRow','sheets-pivot.stdDevName','sheet.command.set-pivot-table-options','_viewData','clear','_pivotConfigChange$','date','fields','_dataFieldManagerCollection','sheets-pivot.other','_sheetsPivotTableService','packageName','sheet.mutation.set-pivot-sort-info','sheet.command.set-pivot-fields-config','sheets-pivot.cellDateGroupDisplay.minute','valueFilter','getSubtotal','targetCellInfo','setCollapse','_deleteModelCache','COLUMN','existing','_model','_globalComputedEndHelpFunc','sheet.mutation.set-pivot-value-filter','SHEET_PIVOT_IN_MAIN_THREAD','blank','getPivotItemRenderInfoCache','Style','sheets-pivot.productName','getName','sheetName','drillDown','panel','pivotTableIndexConfig','setValueFilterInfo','workbook\x20is\x20not\x20found','getPivotTableModelConfig','_ensurePivotTableMatrixInfo','formJSON','leafStyle','adjustSheetCellData','sheets-pivot.dateGroup.minute','getTargetByPivotId','sheet.mutation.pivot-update-field-source-info','markDirty','_globalSubject','dispose','Row','updateRangeKeyMap','setDisplayName','forValue','getPivotTableInstance','sheets-pivot.columnName','forRow','other','sheet.mutation.send-pivot-view-local','batch','tableFieldId','contains','updateDirtyPivotTable','getFieldIds','decorate','getSheetId','Subtotal','pivotPerformCheck','sourceName','dataFieldId','dataFieldsCollection','_deletePivotTableInstanceCache','name','dataFields','rangeType','getPivotDirtyViewInfo','from','updateConfigCache','50309NmhxIT','setRangeValueUndoMutation','SetPivotCollapse','sheets-pivot.dateGroup.month','_sheetsPivotDataSourceModel','setValue','ΣValue','_dataSyncPrimaryController','interceptor','_sheetsPivotRpcService','width','setDataRecordCount','sheet.mutation.send-pivot-config-local','removePivotTable','_globalComputingSrv','updatePivotTableMatrixInfo','getDataFieldBySourceName','getFieldDataType','YearMonth','paths','prototype','dateGroupField','iterateField','sheets-pivot.dateGroup.yearMonthDate','_ensurePivotItemRenderInfoCache','queryDirtyPivotTable','pbt','updateValuePosition','remove','getColumnWidth','next','setSourceName','sheet.command.add-pivot-table','sheet.mutation.remove-group-collection','product','_initDataSendListener','_markDirty$','getColumnCount','_subjectViewChange','sheet.mutation.pivot-update-field-position','NORMAL','Div0','981565PvUEZg','generateNewSheetName','Filter','sheet.mutation.set-pivot-collapse','getSheets','getMonth','subUnitId','fieldIds','1607080whJIng','NUMBER','_getAutoName','_activeDirtyManagerService','setPivotSort','pivotTableId','grandTotal','NotName','SetPivotFilter','colHeaderMap','update','FORCE_STRING','single','colStyle','sheet.mutation.add-pivot-table','sheet.command.update-pivot-value-position','asyncInterceptor','RemoveField','registerPluginResource','sheet.command.set-pivot-sort','getSubUnitPivotRenderCache','getMatrixValue','interceptCommand','sheets-pivot.dateGroup.hour','movePivotField','collectionChange$','pageStyle','prefix','refreshData','fromJSON','removeSourceRangeChange','getCurrentUnitOfType','getRangeKeyList','#FFFFFF','configVersion$','message','hasOwnProperty','isEmpty','document','sheet.mutation.add-group-collection','renameField','Varp\x20of\x20','rangeKey','sheets-pivot.minName','rowCount','getColCount','substring','_pivotTableRangeInfo','complete','getDataFieldId','rangeCache','query','asObservable','_initRegisterCommand','sheets-pivot.blank','RenameField','ManualFilter','updateCollectionConfig','UpdateSource','#1d32e9','sideEffectUpdateWorkerCache','defineProperty','level','getValue','range','getPivotDisplayConfig','setPivotTableConfig','Min\x20of\x20','_updateRenderEmptyCache','floor','getformat','getCurrentSelections','sheets-pivot.emptyPivot.row','has','node','initDataRanges','charCodeAt','_initCommandInterceptListener','getGroupFieldsInfoByIds','_initSnapshot','AddPivotTableWithConfig','Average\x20of\x20','updateFieldSourceInfo','map','_fieldsCollectionChange$','_lifecycleService','executeCommand','sheet.mutation.get-pivot-data-local','_pivotRenderInfoCache','_configVersion$','339DBRGtx','fetchThroughInterceptors','SHEET_PIVOT_EXCLUSIVE_ID','resetArea','deleteDataField','textInfo','sheet.command.reset-pivot-fields-config','pushComputingStatusSubject','getDate','options','getValueIndex','iterateFieldDim','resetPivotTable','getValuePosition','setSortInfo','SetSortInfo','pageRanges','_initRemoveSheetCommandInterceptor','reduce','_onRefRangeChange','register','fontRenderExtension','_resourceManagerService','sheet.mutation.remove-pivot-table','headerMap','YearQuarter','getPivotTableIdByCell','updateView','sheets-pivot.maxName','SetFilterInfo','_globalComputedStartHelpFunc','pivotTableConfigs','_createExclusiveRange','sheets-pivot.cellDateGroupDisplay.yearQuarter','getDataFieldManager','addExclusiveRange','getTargetByPivotTableId','parseInt','colRanges','Minute','sheets-pivot.countName','unitId','getLastCol','createCollectionWithDataRange','_initLocale','sheets-pivot.varpName','Sum\x20of\x20','sheets-pivot.dateGroup.yearMonth','createDataFieldId','_initGlobalComputed','handleAsyncResponse','getDataFieldItemInfo','addCollection','setDateType','updateViewData','getDataFieldByTableId','getSheetBySheetName','cornerRanges','sum','_collectionChange$','Value','_initClearSelectionCommandInterceptor','_commandService','collections','_configService'];_0x5e4e=function(){return _0x399838;};return _0x5e4e();}function K(_0x1bb08a,_0x5d5fa8){return function(_0x237d19,_0x217464){_0x5d5fa8(_0x237d19,_0x217464,_0x1bb08a);};}function q(_0x43657c,_0x7e0ffe,_0x2692f3,_0x42ab7a){const _0x1e5508=_0x243eec;var _0x3ced5d=arguments['length'],_0x4fefcf=_0x3ced5d<0x3?_0x7e0ffe:_0x42ab7a===null?_0x42ab7a=Object[_0x1e5508(0x2f5)](_0x7e0ffe,_0x2692f3):_0x42ab7a,_0x4e0180;if(typeof Reflect==_0x1e5508(0x3ff)&&typeof Reflect['decorate']=='function')_0x4fefcf=Reflect[_0x1e5508(0x213)](_0x43657c,_0x7e0ffe,_0x2692f3,_0x42ab7a);else{for(var _0x4ef120=_0x43657c[_0x1e5508(0x1d2)]-0x1;_0x4ef120>=0x0;_0x4ef120--)(_0x4e0180=_0x43657c[_0x4ef120])&&(_0x4fefcf=(_0x3ced5d<0x3?_0x4e0180(_0x4fefcf):_0x3ced5d>0x3?_0x4e0180(_0x7e0ffe,_0x2692f3,_0x4fefcf):_0x4e0180(_0x7e0ffe,_0x2692f3))||_0x4fefcf);}return _0x3ced5d>0x3&&_0x4fefcf&&Object[_0x1e5508(0x290)](_0x7e0ffe,_0x2692f3,_0x4fefcf),_0x4fefcf;}let J=class extends _0x3daab7{constructor(_0x4082e6){const _0x397ac0=_0x243eec;super(),this[_0x397ac0(0x2eb)]=_0x4082e6,G(this,'_requestResolvers',new Map());}[_0x243eec(0x2df)](_0x2f22d5){const _0x54242f=_0x243eec;let {version:_0x347e43}=_0x2f22d5,_0x10db13=this[_0x54242f(0x362)][_0x54242f(0x35d)](_0x347e43);_0x10db13&&(_0x10db13(_0x2f22d5),this[_0x54242f(0x362)][_0x54242f(0x361)](_0x347e43));}[_0x243eec(0x294)](_0x4928d0){return new Promise((_0x278d8c,_0x21ebbd)=>{const _0x956b8=_0x4060;let _0x30eafa=this[_0x956b8(0x1ca)]();this[_0x956b8(0x362)][_0x956b8(0x2ef)](_0x30eafa,_0x278d8c),this[_0x956b8(0x2eb)][_0x956b8(0x2a9)](Ft['id'],{'version':_0x30eafa,..._0x4928d0},{'onlyLocal':!0x0});});}[_0x243eec(0x1ca)](){const _0x215c8a=_0x243eec;return Math['random']()[_0x215c8a(0x419)](0x24)[_0x215c8a(0x281)](0x2,0x10);}};J=q([K(0x0,_0x934457(_0x53aa9))],J);const Ut=_0x4d9f15=>{const _0x15a407=_0x243eec;var _0xdac63;return((_0xdac63=_0x4d9f15['body'])==null?void 0x0:_0xdac63[_0x15a407(0x2fb)][_0x15a407(0x397)](/\r\n$/,''))||'';};var Wt=class extends _0x5b1fae{constructor(_0x38a043,_0xde7550){super(),G(this,'rangeKeyMap',{}),G(this,'_univerInstanceService',void 0x0),G(this,'_host',void 0x0),this['_univerInstanceService']=_0xde7550,this['_host']=_0x38a043;}[_0x243eec(0x29e)](){const _0x323c01=_0x243eec;for(let _0x560e49 in this[_0x323c01(0x21c)]){let _0x406b10=this[_0x323c01(0x21c)][_0x560e49],_0x28a2ae=_0x406b10[_0x323c01(0x3cf)]();this[_0x323c01(0x37a)][_0x28a2ae]=_0x406b10[_0x323c01(0x1d3)]();}}[_0x243eec(0x378)](){const _0x361f9c=_0x243eec;let _0x51ad55=this[_0x361f9c(0x325)];return Qt[_0x361f9c(0x33e)](_0x51ad55);}[_0x243eec(0x2b1)](_0x1224d1){const _0x5e9136=_0x243eec;let _0x2b9a9a=this['dataFields'][_0x1224d1]['rangeKey'];delete this[_0x5e9136(0x21c)][_0x1224d1],delete this[_0x5e9136(0x37a)][_0x2b9a9a];}[_0x243eec(0x2ee)](_0xe592be){const _0xc34731=_0x243eec;this[_0xc34731(0x21c)][_0xe592be[_0xc34731(0x1d3)]()]=_0xe592be;}['removeCollectionImp'](_0x588691){const _0x4059ca=_0x243eec;var _0x2ef1af;let _0x44999b=this[_0x4059ca(0x325)][_0x4059ca(0x200)](_0x588691);if(_0x44999b){var _0x3bd257;let {unitId:_0x4a2d1c,subUnitId:_0x46648c}=_0x44999b,_0x232b30=(_0x3bd257=this[_0x4059ca(0x325)][_0x4059ca(0x41a)](_0x4a2d1c,_0x46648c,_0x588691))==null?void 0x0:_0x3bd257[_0x4059ca(0x30c)];this[_0x4059ca(0x325)][_0x4059ca(0x398)]({'token':_0x588691,'type':_0x4059ca(0x361),'dataRangeInfo':_0x232b30});}(_0x2ef1af=this[_0x4059ca(0x424)](_0x588691))==null||_0x2ef1af[_0x4059ca(0x204)](),delete this[_0x4059ca(0x2ec)][_0x588691];}[_0x243eec(0x3cf)](_0x30e30a,_0x13971d){let {sheetName:_0x35d723,unitId:_0x1d297d,range:_0x3ac8ee}=_0x30e30a,{startRow:_0x593ca6,endRow:_0x281f9b}=_0x3ac8ee;return _0x4c5d48(_0x1d297d,_0x35d723,{'startRow':_0x593ca6,'endRow':_0x281f9b,'startColumn':_0x13971d,'endColumn':_0x13971d});}[_0x243eec(0x408)](_0x960e77){const _0x1b1713=_0x243eec;return this[_0x1b1713(0x21c)][this[_0x1b1713(0x37a)][_0x960e77]];}[_0x243eec(0x321)](_0xebf170,_0x3d918b){this['rangeKeyMap'][_0xebf170]=_0x3d918b;}[_0x243eec(0x206)](_0x5f8fa0,_0xee7f5a){const _0x17325c=_0x243eec;this['rangeKeyMap'][_0xee7f5a]=this[_0x17325c(0x37a)][_0x5f8fa0],delete this[_0x17325c(0x37a)][_0x5f8fa0];}[_0x243eec(0x1c5)](_0x41b0bf,_0x20664b,_0x10e1b8,_0x41af29){const _0x1370cc=_0x243eec;let _0x50bd7e=new _0x4fc9b3(this);_0x50bd7e[_0x1370cc(0x270)](_0x20664b);let _0x43fe13=[],_0x233dd3=0x0;for(let _0x49f12b of _0x50bd7e[_0x1370cc(0x252)]){let _0x21c3eb=this[_0x1370cc(0x3cf)](_0x10e1b8,_0x233dd3),_0x4763f6=this[_0x1370cc(0x21c)][_0x49f12b];_0x4763f6&&(_0x4763f6[_0x1370cc(0x27d)]=_0x21c3eb,this[_0x1370cc(0x321)](_0x21c3eb,_0x49f12b),_0x43fe13[_0x1370cc(0x33b)]({'index':_0x233dd3,'dataField':_0x4763f6})),_0x233dd3++;}return this[_0x1370cc(0x2e1)](_0x41b0bf,_0x50bd7e,_0x10e1b8,_0x41af29),{'collection':_0x50bd7e,'updateDataFieldList':_0x43fe13};}[_0x243eec(0x301)](_0x37fd65,_0x179bfb){const _0x4fe468=_0x243eec;return _0x37fd65[_0x4fe468(0x21d)]===_0x3ec4fc[_0x4fe468(0x1e9)]?{'startRow':0x0,'startColumn':_0x37fd65[_0x4fe468(0x43e)],'endRow':_0x179bfb['getRowCount']()-0x1,'endColumn':_0x37fd65['endColumn']}:{'startRow':_0x37fd65[_0x4fe468(0x43c)],'startColumn':_0x37fd65[_0x4fe468(0x43e)],'endRow':_0x37fd65['endRow'],'endColumn':_0x37fd65[_0x4fe468(0x445)]};}[_0x243eec(0x2d8)](_0x2ca8ec){const _0x3ea63c=_0x243eec;let {sheetName:_0x400467,range:_0x161941}=_0x2ca8ec,_0x164b17=this['_univerInstanceService'][_0x3ea63c(0x272)](_0x2faf39[_0x3ea63c(0x3ac)]),_0x52d705=_0x164b17[_0x3ea63c(0x2e5)](_0x400467),_0x5567a8=_0x52d705['getCellMatrix'](),{startColumn:_0x325889,startRow:_0x1ae0c9,endColumn:_0x24305d}=this[_0x3ea63c(0x301)](_0x161941,_0x52d705),_0x280906=_0x164b17[_0x3ea63c(0x372)](),_0x6316bd=new _0x4fc9b3(this);_0x6316bd[_0x3ea63c(0x3f7)](_0x2ca8ec);let _0x4bfaca=[],_0x3a3ba7={};for(let _0x3cde5a=_0x325889;_0x3cde5a<=_0x24305d;_0x3cde5a++){let _0x1d01c9=_0x5567a8[_0x3ea63c(0x292)](_0x1ae0c9,_0x3cde5a),_0x38c713=this[_0x3ea63c(0x3cf)](_0x2ca8ec,_0x3cde5a),_0x334492=this['getDataFieldByRangeKey'](_0x38c713);if(_0x334492)_0x6316bd[_0x3ea63c(0x442)](_0x334492['getId'](),_0x334492[_0x3ea63c(0x1f3)]());else{let _0x48ea13=this[_0x3ea63c(0x2dd)](),_0x213384=this[_0x3ea63c(0x1fe)](_0x1d01c9,_0x280906,_0x3a3ba7);_0x1f0f1f(_0x213384)&&(_0x213384=_0xbffa3a[_0x3ea63c(0x3ab)](_0x213384['f'],Number(_0x213384['v'])));let _0x14f171=this['uniqueDataFieldName'](_0x213384,_0x3cde5a),_0x111d5c=new _0x1af322(_0x48ea13,_0x14f171,_0x356231(0x3));_0x111d5c[_0x3ea63c(0x27d)]=_0x38c713,this[_0x3ea63c(0x21c)][_0x48ea13]=_0x111d5c,_0x6316bd[_0x3ea63c(0x442)](_0x48ea13,_0x14f171),_0x4bfaca[_0x3ea63c(0x33b)]({'index':_0x3cde5a,'dataField':_0x111d5c});}}return{'updateDataFieldList':_0x4bfaca,'collection':_0x6316bd};}[_0x243eec(0x255)](_0x5828d2){const _0x30c12a=_0x243eec;return this[_0x30c12a(0x325)]['getTextInfo']()[_0x30c12a(0x20a)]+'\x20'+_0x2a10a8(_0x5828d2);}['uniqueDataFieldName'](_0x39d389,_0x464352){const _0x300c37=_0x243eec;return _0x39d389==null||_0x39d389===''?this[_0x300c37(0x255)](_0x464352):String(_0x39d389);}[_0x243eec(0x424)](_0x9136ad){const _0x1125ed=_0x243eec;return this[_0x1125ed(0x2ec)][_0x9136ad];}['addCollection'](_0x54001a,_0x14e3f7,_0x56d618,_0x34df5b){const _0x271bd2=_0x243eec;this[_0x271bd2(0x2ec)][_0x54001a]=_0x14e3f7,_0x14e3f7[_0x271bd2(0x3f7)](_0x56d618),this['_host'][_0x271bd2(0x398)]({'token':_0x54001a,'type':_0x271bd2(0x3cd),'dataRangeInfo':_0x56d618,'targetCellInfo':_0x34df5b});}[_0x243eec(0x1c4)](_0x5c56c6,_0x9d1573){const _0x18a6e2=_0x243eec;let _0x1b8aca=this['getCollection'](_0x5c56c6),_0x1b1c7d=_0x1b8aca[_0x18a6e2(0x212)](),_0x589824=0x0;for(let _0x411fad of _0x1b1c7d){let _0x5d2872=_0x1b8aca[_0x18a6e2(0x1d1)](_0x411fad),_0x170c58=this[_0x18a6e2(0x3cf)](_0x9d1573,_0x589824);this[_0x18a6e2(0x206)](_0x5d2872[_0x18a6e2(0x27d)],_0x170c58),_0x589824++;}}[_0x243eec(0x21e)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x243eec(0x448)](_0x7e470b,_0x411ee1){const _0x374a79=_0x243eec;if(this[_0x374a79(0x424)](_0x7e470b)){let _0x433151=this['getRangeKeyList'](_0x411ee1),_0x982779=[];for(let _0x182d3e of _0x433151)this['rangeKeyMap'][_0x182d3e]!==void 0x0&&_0x982779['push'](this['rangeKeyMap'][_0x182d3e]);let _0xaa0ba3=this[_0x374a79(0x43b)](_0x7e470b),_0x3aafee=[],_0x2f8ab5=new Set(_0x982779);for(let _0x259ade of _0xaa0ba3)_0x2f8ab5['has'](_0x259ade)||_0x3aafee[_0x374a79(0x33b)](_0x259ade);return _0x3aafee;}}['getMatrixValue'](_0x2628b4,_0x1c0248,_0x499b45,_0x3fbb4a,_0x330b52){const _0x553d5e=_0x243eec;return _0x1c0248&&_0x1c0248[_0x553d5e(0x292)](_0x3fbb4a,_0x330b52)?_0x1c0248[_0x553d5e(0x292)](_0x3fbb4a,_0x330b52):_0x499b45&&_0x499b45[_0x553d5e(0x292)](_0x3fbb4a,_0x330b52)?_0x499b45['getValue'](_0x3fbb4a,_0x330b52):_0x2628b4[_0x553d5e(0x292)](_0x3fbb4a,_0x330b52);}[_0x243eec(0x3ec)](_0x188ce1,_0x51f686,_0x275e99,_0x206ff1){const _0x10e065=_0x243eec;let _0x47917a=this[_0x10e065(0x21c)][_0x188ce1];if(!_0x47917a)return;let {subUnitId:_0x57daa8,range:_0x536b20,unitId:_0x27b6f0}=_0x51f686,_0x1a1811=this[_0x10e065(0x341)][_0x10e065(0x36e)](_0x27b6f0);if(!_0x1a1811){console[_0x10e065(0x332)]('workbook\x20is\x20not\x20found');return;}let _0x539d20=_0x1a1811['getSheetBySheetId'](_0x57daa8),_0x3e36fb=_0x539d20[_0x10e065(0x374)](),{arrayFormulaCellDataMatrix:_0x3df585,unitDataMatrix:_0x289b5f}=_0x206ff1||{},{startRow:_0x5d240e,startColumn:_0x16422d,endRow:_0x3291bf}=this['getRangeStartEndInfo'](_0x536b20,_0x539d20);_0x47917a['reset']();let _0x1a3178=_0x1a1811[_0x10e065(0x372)](),_0x246c83={},_0x4b8337=this[_0x10e065(0x268)](_0x3e36fb,_0x3df585,_0x289b5f,_0x5d240e,_0x16422d+_0x275e99),_0x340754=this[_0x10e065(0x1fe)](_0x4b8337,_0x1a3178,_0x246c83);_0x1f0f1f(_0x340754)&&(_0x340754=_0xbffa3a[_0x10e065(0x3ab)](_0x340754['f'],Number(_0x340754['v'])));let _0x3dddbf=this['uniqueDataFieldName'](_0x340754,_0x16422d+_0x275e99);_0x47917a['setName'](_0x3dddbf);for(let _0xceb379=_0x5d240e+0x1;_0xceb379<=_0x3291bf;_0xceb379++){let _0x10a9e7=this['getMatrixValue'](_0x3e36fb,_0x3df585,_0x289b5f,_0xceb379,_0x16422d+_0x275e99);_0x47917a[_0x10e065(0x3a2)](this['adjustSheetCellData'](_0x10a9e7,_0x1a3178,_0x246c83),_0xceb379-0x1-_0x5d240e);}}['refreshData'](_0x3ccc79,_0x27f292,_0x1a96a8){const _0xffac73=_0x243eec;let {subUnitId:_0x262ac5,range:_0x27d0db,unitId:_0xac9ae6}=_0x1a96a8,_0x2b16e7=this[_0xffac73(0x341)][_0xffac73(0x36e)](_0xac9ae6);if(!_0x2b16e7){console[_0xffac73(0x332)](_0xffac73(0x1f9));return;}let _0x2a43bd=_0x2b16e7[_0xffac73(0x359)](_0x262ac5),_0x168ded=_0x2a43bd[_0xffac73(0x374)](),{startRow:_0x513447,startColumn:_0xfa0d29,endRow:_0x2ee798}=this[_0xffac73(0x301)](_0x27d0db,_0x2a43bd),_0x380d53=_0x2b16e7[_0xffac73(0x372)](),_0x11b1b5={};for(let {dataField:_0x214314,index:_0x5f13fb}of _0x27f292){_0x214314[_0xffac73(0x3f3)]();let _0x117798=this[_0xffac73(0x268)](_0x168ded,void 0x0,void 0x0,_0x513447,_0xfa0d29+_0x5f13fb),_0xd86c84=this[_0xffac73(0x1fe)](_0x117798,_0x380d53,_0x11b1b5);_0x1f0f1f(_0xd86c84)&&(_0xd86c84=_0xbffa3a[_0xffac73(0x3ab)](_0xd86c84['f'],Number(_0xd86c84['v'])));let _0x4db05d=this[_0xffac73(0x311)](_0xd86c84,_0xfa0d29+_0x5f13fb);_0x214314[_0xffac73(0x342)](_0x4db05d);}_0x3ccc79[_0xffac73(0x37b)]();for(let _0x5bb278=_0x513447+0x1;_0x5bb278<=_0x2ee798;_0x5bb278++)for(let {index:_0x4d83c5,dataField:_0x38ef71}of _0x27f292){let _0x1439b5=_0x168ded['getValue'](_0x5bb278,_0xfa0d29+_0x4d83c5);_0x38ef71['addRecord'](this[_0xffac73(0x1fe)](_0x1439b5,_0x380d53,_0x11b1b5),_0x5bb278-0x1-_0x513447);}_0x3ccc79[_0xffac73(0x22c)](_0x2ee798-_0x513447);}[_0x243eec(0x273)](_0x36404e){const _0x155d2f=_0x243eec;let {range:_0x314bc6}=_0x36404e,{startColumn:_0x3444f5,endColumn:_0xa00cc9}=_0x314bc6,_0x9e9026=[];for(let _0x544753=_0x3444f5;_0x544753<=_0xa00cc9;_0x544753++)_0x9e9026[_0x155d2f(0x33b)](this['getRangeKey'](_0x36404e,_0x544753));return _0x9e9026;}[_0x243eec(0x1fe)](_0x5e2d22,_0x27f7aa,_0x409ac9){const _0x4be53f=_0x243eec;if(_0x5e2d22){let {s:_0x395023,v:_0x2dfcf3,t:_0x3bb17b,p:_0x15b30b}=_0x5e2d22;if(_0x15b30b)return Ut(_0x15b30b);let _0x3aa7bc=_0x27f7aa[_0x4be53f(0x35d)](_0x395023);if(_0x3aa7bc&&_0x3bb17b===_0x8a020b[_0x4be53f(0x254)]&&_0x3aa7bc['n']){let {pattern:_0x299c1c}=_0x3aa7bc['n'];_0x409ac9[_0x299c1c]||(_0x409ac9[_0x299c1c]=_0xbffa3a[_0x4be53f(0x426)](_0x299c1c));let _0x8d287f=_0x409ac9[_0x299c1c],_0x45754a=_0x8d287f['isDate'];if(_0x8d287f['isText'])return String(_0x2dfcf3);if(_0x45754a)return{'v':_0x2dfcf3,'f':_0x299c1c};}if(_0x3bb17b===_0x8a020b[_0x4be53f(0x254)])return Number(_0x2dfcf3);if(_0x3bb17b===_0x8a020b[_0x4be53f(0x348)]||_0x3bb17b===_0x8a020b[_0x4be53f(0x25e)])return String(_0x2dfcf3);if(_0x3bb17b===void 0x0){let _0x4f7453=Number(_0x2dfcf3);if(!Number[_0x4be53f(0x2ff)](_0x4f7453)&&String(_0x4f7453)===_0x2dfcf3)return _0x4f7453;}return _0x2dfcf3==null?null:_0x2dfcf3;}else return null;}[_0x243eec(0x41e)](_0x1f8234){const _0x11f0a7=_0x243eec;let {sheetName:_0x409ba8,range:_0x1b8c12,unitId:_0xb25899}=_0x1f8234,_0x33ea0f=this[_0x11f0a7(0x341)][_0x11f0a7(0x36e)](_0xb25899);if(!_0x33ea0f)return console['error'](_0x11f0a7(0x1f9)),{'header':[],'data':[]};let _0x50fbb1=_0x33ea0f[_0x11f0a7(0x2e5)](_0x409ba8),_0x1bc46a=_0x50fbb1[_0x11f0a7(0x374)](),{startRow:_0x5ca036,startColumn:_0xf78122,endRow:_0x302954,endColumn:_0x4ba15d}=this[_0x11f0a7(0x301)](_0x1b8c12,_0x50fbb1),_0x343fe2=_0x33ea0f[_0x11f0a7(0x372)](),_0x4c140f=[],_0x2c63a6=[],_0x83535b={};for(let _0x469c59=_0x5ca036;_0x469c59<=_0x302954;_0x469c59++){let _0x4881a1=[];for(let _0x1e12d2=_0xf78122;_0x1e12d2<=_0x4ba15d;_0x1e12d2++){let _0x2f9794=_0x1bc46a[_0x11f0a7(0x292)](_0x469c59,_0x1e12d2);_0x469c59===_0x5ca036?_0x4c140f['push'](_0x2f9794==null?null:String(_0x2f9794['v'])):_0x4881a1[_0x11f0a7(0x33b)](this[_0x11f0a7(0x1fe)](_0x2f9794,_0x343fe2,_0x83535b));}_0x2c63a6['push'](_0x4881a1);}return{'header':_0x4c140f,'data':_0x2c63a6};}[_0x243eec(0x43f)](){const _0x12e748=_0x243eec;return super[_0x12e748(0x43f)]();}[_0x243eec(0x270)](_0x51754c){super['fromJSON'](_0x51754c),this['initDataRanges']();}[_0x243eec(0x204)](){const _0x5e4b7d=_0x243eec;super[_0x5e4b7d(0x204)](),this[_0x5e4b7d(0x37a)]={},this[_0x5e4b7d(0x325)]=null;}};const Gt=_0x5dd0f3=>{const _0x24e9cc=_0x243eec;let {targetCellInfo:_0x494cfa}=_0x5dd0f3,{matrixCache:_0x2bd76c,rangesCache:_0x464d31}=Zt({'filter':_0x24e9cc(0x24d),'row':_0x24e9cc(0x205),'column':_0x24e9cc(0x3b0),'values':_0x24e9cc(0x403)},_0x494cfa),_0x15fec9=new _0x27bcc4();return _0x2bd76c[_0x24e9cc(0x208)]((_0x4351e2,_0xfc0831,_0x382ec9)=>{_0x15fec9['setValue'](_0x4351e2,_0xfc0831,_0x382ec9);}),{'matrix':_0x15fec9,'rangesCache':_0x464d31};},Kt=_0x3c7b9e=>{const _0x59b77a=_0x243eec;let _0xcdf31b;if(_0x3c7b9e!=null&&_0x3c7b9e['v']||(_0x3c7b9e==null?void 0x0:_0x3c7b9e['v'])===0x0){_0xcdf31b||(_0xcdf31b={});let _0xcec09e=Ot(_0x3c7b9e['v']);typeof _0xcec09e=='number'?_0xcdf31b['t']=_0x8a020b[_0x59b77a(0x254)]:typeof _0xcec09e==_0x59b77a(0x396)&&(_0xcdf31b['t']=_0x8a020b[_0x59b77a(0x348)]),_0xcdf31b['v']=_0xcec09e;}return _0xcdf31b;},qt=(_0x447f6b,_0x1331cd,_0xcc42e)=>{const _0x489cf3=_0x243eec;let {cornerView:_0x5f291c,rowView:_0x30a8d6,colView:_0x8c050b,dataView:_0x52fbdf,pageView:_0x14d1e9,formatMap:_0x190164}=_0x447f6b,{row:_0x183683,col:_0x44e260}=_0x1331cd,_0x5a82d3=new _0x27bcc4(),_0xc29505=_0x183683,_0x365954=_0x44e260;Object['keys'](_0x14d1e9['data'])['forEach'](_0x5c4524=>{const _0x47a586=_0x4060;Object[_0x47a586(0x337)](_0x14d1e9['data'][Number(_0x5c4524)])[_0x47a586(0x3ad)](_0x541d77=>{const _0x23066c=_0x47a586;let _0x125798={..._0x14d1e9['data'][Number(_0x5c4524)][Number(_0x541d77)]};_0x5a82d3[_0x23066c(0x226)](Number(_0x5c4524)+_0xc29505,Number(_0x541d77)+_0x365954,Kt(_0x125798));});});let _0x1ace2a=Object[_0x489cf3(0x337)](_0x14d1e9['data'])['length'];_0xc29505+=_0x1ace2a+ +!!_0x1ace2a;let _0x652994=_0x5f291c['getRowCount'](),_0xb7647=_0x5f291c['getColCount']();for(let _0x2342b4=0x0;_0x2342b4<_0x652994;_0x2342b4++)for(let _0x2ccca5=0x0;_0x2ccca5<_0xb7647;_0x2ccca5++){var _0x14823f;let _0x32a370={...(_0x14823f=_0x5f291c[_0x489cf3(0x3e3)])==null||(_0x14823f=_0x14823f[_0x2342b4])==null?void 0x0:_0x14823f[_0x2ccca5]};if(_0x32a370){var _0x2763d5;(_0x2763d5=_0x30a8d6[_0x489cf3(0x2c5)][_0x2ccca5])!=null&&_0x2763d5[_0x489cf3(0x40b)]&&_0x2ccca5===_0xb7647-0x1&&_0x2342b4===_0x652994-0x1&&(_0x32a370['v']=''+_0xcc42e[_0x489cf3(0x2f9)]);}_0x5a82d3[_0x489cf3(0x226)](_0x2342b4+_0xc29505,_0x2ccca5+_0x365954,Kt(_0x32a370));}_0x365954+=_0xb7647;let _0xe3d787=_0x8c050b[_0x489cf3(0x2c5)],_0x31f7a8=_0x8c050b[_0x489cf3(0x1bf)]()>=0x0?_0x8c050b[_0x489cf3(0x1bf)]()+0x1:0x0,_0x5cb415=_0x8c050b[_0x489cf3(0x2d7)]()>=0x0?_0x8c050b[_0x489cf3(0x2d7)]()+0x1:0x0;for(let _0x3f557a=0x0;_0x3f557a<_0x5cb415;_0x3f557a++)for(let _0x592c74=0x0;_0x592c74<_0x31f7a8;_0x592c74++){var _0x858636,_0x1bb7a1;let _0x57f502={...(_0x858636=_0x8c050b[_0x489cf3(0x3e3)])==null||(_0x858636=_0x858636[_0x3f557a])==null?void 0x0:_0x858636[_0x592c74]},_0x3f9b44=_0x190164[(_0x1bb7a1=_0xe3d787[_0x3f557a])==null?void 0x0:_0x1bb7a1[_0x489cf3(0x20f)]];if(_0x57f502){var _0x32a2bd;_0x57f502['v']=Dt(_0x57f502,_0x3f557a===0x0&&((_0x32a2bd=_0x8c050b['getHeaderMapItem'](_0x592c74+0x1))==null?void 0x0:_0x32a