@univerjs-pro/sheets-pivot 0.10.12-nightly.202510221114 → 0.10.12-nightly.202510251119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/common/const.d.ts +42 -42
  38. package/lib/types/controllers/const.d.ts +1 -1
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ko-KR.js +1 -1
  47. package/lib/umd/locale/ru-RU.js +1 -1
  48. package/lib/umd/locale/vi-VN.js +1 -1
  49. package/lib/umd/locale/zh-CN.js +1 -1
  50. package/lib/umd/locale/zh-TW.js +1 -1
  51. package/package.json +9 -9
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x13ac(){const _0x2edb1f=['#e6ebfb','endColumn','hasField','sheets-pivot.dateGroup.date','call','sheet.command.move-pivot-table','size','sheets-pivot.emptyPivot.values','updatePivotTableMatrixInfo','fetchThroughAsyncInterceptors','_initUnitDisposed','Injector','SetPivotValueFilterCommand','setValuePivotFilter','sheet.mutation.set-pivot-format','HourMinute','@univerjs-pro/license','GlobalComputingStatusService','_initCommandInterceptListener','Expand','UpdateValuePositionMutation','getInsertRowColMutations','Column\x20','level','startCollectChangeset','getActiveSheet','Max\x20of\x20','MUTATION','colInfo','_onRefRangeChange','_subjectCollectionChange','isDateGroupFieldJSON','dataStyle','collections','SetOptions','MoveRangeCommand','updateConfig','_initPivotDataGetListener','rangeKey','getSourceName','_markDirty$','SetFilterInfo','StdDevp\x20of\x20','sheets-pivot.dateGroup.hour','Inject','removeDataField','canUsePivot','filterId','#FFFFFF','defineProperty','onCommandExecuted','shouldClear','updatePivotSource','_ensurePivotMap','721pnemmz','PivotCellStyleTypeEnum','_sheetsPivotDataSourceModel','getDisplayName','pivotConfigChange$','getUpdateRangeDeleteIds','set','maxDate','charCodeAt','dataRangeInfo','_queryingMap','RANGE_TYPE','sheets-pivot.dateGroup.hourMinute','broadcastCollectionChange','YearMonthDate','getOwnPropertyDescriptor','sheets-pivot.dateGroup.yearQuarter','keys','_initSnapshot','get','getUnitId','2SwoHau','sheets-pivot.maxName','CustomCommandExecutionError','setSortInfo','41934FtjdDW','viewUpdate$','endRow','targetCellInfo','_updateRenderEmptyCache','getSubUnitPivotConfigs','sheet.mutation.set-pivot-option','add','generateRandomId','undos','SheetsPivotTableAdaptorModel','SetPivotSortCommand','substring','Hour','_viewUpdate$','_initGlobalComputed','parse','MAX_SAFE_INTEGER','setDirty','countNums','sheets-pivot.varName','@univerjs/rpc','_viewData','_pivotTableRangeInfo','getformat','isText','onQueryStart','getHeaderMapItem','refreshDataField','getPivotTableInstance','Rectangle','sheet.command.add-pivot-field','PivotTableFiledAreaEnum','getNoUsedDataFieldIds','find','name','rowInfo','getUnit','getFieldPositionInfoById','_sheetsSelectionsService','filterFields','exports','BehaviorSubject','interceptor','Count\x20of\x20','_collectionChange$','object','number','query','registerCallbackWithEvent','_subjectViewChange','range','getPivotTableCellData','addFieldWithSourceId','prefix','SetWorksheetActiveOperation','SetSubtotalType','isValue','isEmpty','Total','ClearSelectionContentCommand','getDataFieldByRangeKey','_model','UpdatePivotSource','_localeService','ObjectMatrix','some','SetFieldFormat','DependentOn','initDataRanges','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','setLabelFilterInfo','next','getCurrentSelections','sheets-pivot.dateGroup.minute','SHEET_PIVOT_IN_MAIN_THREAD','removeCollections','getFormatInfo','triggerDirtyFeature','SetPivotFilterCommand','InsertSheetMutation','_requestResolvers','NotFunction','workbook\x20is\x20not\x20found','sheet.command.reset-pivot-fields-config','getSheets','_dataFieldManagerCollection','getPivotDirtyViewInfo','stringify','sheet.command.set-pivot-collapse','registerDirtyService','type','resetPivotTable','MovePivotFieldCommand','width','UniverEngineFormula','getPivotTableRangeInfo','subtotal','getDataFieldByDataFieldId','valuePosition','Style','Date','Range','sheet.mutation.set-pivot-filter','excelDateToUnixMilliseconds','deleteDataField','replace','getTableFieldById','getPivotItemRenderInfoCache','sheets-pivot.dateGroup.year','Panel','serializeRangeWithSpreadsheet','Values','sheet.command.update-pivot-table-source-range','None','rowRanges','registerPluginResource','getRefRangeMutationsByMoveRange','hasOwnProperty','createAsyncInterceptorKey','MovePivotTableCommand','symbol','Column','AddPivotTable','2102106crufGZ','existing','Subject','PivotTableValuePositionEnum','RemoveField','fields','NORMAL','_subjectFieldsCollectionChange','sheets-pivot.grandTotal','data','_host','matrix','AddPivotFieldMutation','getCollection','markDirty$','InterceptorManager','493670XXgrcu','asyncInterceptor','Module','getIntersects','updateConfigCache','value','dataFieldManagerConfig','getSheetBySheetName','NUMBER','_lifecycleService','getMatrixFromRunTimeData','PivotTableChangeTypeEnum','valueFilter','getIntersectsPivotTable','cornerInfo','format','intercept','sheets-pivot.dateGroup.yearMonthDate','unshift','sheets-pivot.cellDateGroupDisplay.year','sheet.mutation.remove-pivot-field','fieldIds','AddPivotTableMutation','SheetsPivotTableConfigModel','numberToABC','addField','#f4f4f5','params','cornerRanges','getName','max','rxjs','getPivotDisplayConfig','varp','getFormat','sheets-pivot.stdDevpName','sheet.mutation.set-pivot-sort-info','_ensurePivotItemRenderInfoCache','asObservable','UniverCore','applyChangeSet','contains','AddPivotTableWithConfigCommand','sheet.mutation.pivot-update-value-position','(Blank)','sheet.mutation.pivot-update-field-source-info','paths','CommandType','adjustSheetCellData','reduce','_configService','YearQuarter','rowCount','lastCol','RenamePivotFieldMutation','cornerStyle','average','fieldId','setPivotInitCompleted','single','update','queryDirtyPivotTable','deleteField','toString','createInterceptorKey','originTargetInfo','_createExclusiveRange','sheets-pivot.sumName','SetPivotPositionMutation','Year','SetPivotFilterMutation','result','fieldsConfig','updateAllDisplayName','setPivotTable','ResetPivotTable','sheet.command.update-pivot-value-position','floor','FieldsCollection','_initClearSelectionCommandInterceptor','drillDown','UniverRpc','setValueFilterInfo','_toJSON','blank','@univerjs/core','setDataRecordCount','YearMonth','SetValuePivotFilter','date','versions','getAdjustRangesPosition','sheet.command.move-pivot-field','Filter','sheet.mutation.set-pivot-value-filter','getPivotTableIdByCell','getColumnCount','Quarter','removePivotTable','_sheetsPivotTableService','getOriginFieldId','SheetsPivotRPCService','sheet.mutation.pivot-update-field-position','_textInfo','setDisplayName','DataFieldManager','grandTotal','handleSourceRangeChange','clearRenderCache','SetPivotSort','UpdatePivotFieldSettingCommand','columnFields','InsertColMutation','renameField','rangesInfo','_globalComputedEndHelpFunc','getTargetByPivotId','COLUMN','getFieldCountByArea','SetPivotSubtotalTypeMutation','rowHeaderMap','version','SHEET_PIVOT_EXCLUSIVE_ID','PivotFilterTypeEnum','SetSortInfo','#1d32e9','1339920EKdTTJ','PivotDisplayDataType','getTypeOfUnitDisposed$','Month','@univerjs/engine-render','Value','dataFieldsCollection','pivotTableIndexConfig','foreach','isArray','IActiveDirtyManagerService','getFilterInfo','ReleaseType','isBaseGroupField','3471690xaDYvT','sheets.tabs.sheet','rgb(240,241,243)','_updateModelCache','createCollectionWithDataRange','PivotSubtotalTypeEnum','UniverLicensePlugin','setRange','getDataFieldId','unitId','NotNumber','splice','sequenceExecute','push','SheetInterceptorService','setRangeValueUndoMutation','updateDirtyPivotTable','UniverProLicense','batch','startRow','getConfig','isFeatureAuthorizedWithinTime','forEach','DisposableCollection','sheet.mutation.update-date-group','_commandService','_config','DataField','displayName','markDirty','updateFieldPosition','isDateGroupField','UpdateFieldPositionMutation','panel','setConfig','updateRangeKeyMap','Optional','getId','getDataFieldByTableId','iterateFieldByArea','_sheetsPivotRpcService','11QEhtFi','stdDev','sheet.command.set-pivot-sort','generateHexNumber','_updatePivotTableInstanceCache','sheet.operation.pivot-table-view-formula-mark-dirty','updateView','setSourceName','setName','getSubtotal','RemoveRowMutation','_configVersion$','STRING','disposableCollection','deepClone','sheets-pivot.productName','registerRefRange','LocaleService','row','PivotMultipleValueId','sheet.command.add-pivot-table','generateNewSheetName','BLANK_PLACEHOLDER','sheet.command.add-pivot-table-with-config','DateGroupField','sheets-pivot.countName','isBottomTotal','updateViewInfo','sheet.mutation.rename-pivot-field','sourceName','_injector','colCount','addCollectionByJSON','sheets-pivot.minName','_getPivotAppliedRanges','split','_dataSyncPrimaryController','sheets-pivot.cellDateGroupDisplay.date','PivotDrillDownCommand','IFeatureCalculationManagerService','UniverProSheetsPivot','Disposable','New','CellValueType','getCellRaw','SetRangeValuesMutation','sheet.mutation.get-pivot-data-local','mergeWorksheetSnapshotWithDefault','isPrefixValue','leafStyle','refreshData','notExecuteFormula','getMonth','PivotDateGroupFieldDateTypeEnum','length','toJSON','Tools','function','PivotCallbackEnum','_ensureViewDataMap','originalFieldId','sheetName','setOptions','_sheetsPivotTableConfigModel','getDate','fromJSON','getPivotTableConfig','getPivotPerformCheck','sheets-pivot.cellDateGroupDisplay.minute','executeCommand','_deletePivotTableInstanceCache','getPivotTableModelConfig','entries','RenameField','SetValueFilter','getStyles','setPivotFilter','sheets-pivot.averageName','pageStyle','pageRanges','onQueryEnd','Grand\x20Total','fieldsCollectionChange$','isDateValue','generateNullCell','ManualFilter','addCollection','movePivotField','removePivotField','_sheetsPivotTableAdaptorModel','bind','defaultThemeStyle','numfmt','dateGroupField','getSheetBySheetId','_ensurePivotTableMatrixInfo','updateViewData','getSheetCommandTarget','custom','forValue','_pivotTableMatrixInfo','setTextInfo','colRanges','getValueIndex','concat','var','sheets-pivot.emptyPivot.column','sheets-pivot.cellDateGroupDisplay.yearQuarter','amd','document','rangeKeyMap','UpdatePivotValuePositionCommand','UpdatePivotTableSourceRangeCommand','_generateUniqueVersion','getFieldFormat','getDirtyInfo','_initPivotTextInfo','DrillDown','filterInfo','COMMAND','getSheetFeatureLimit','setPivotSort','sheets-pivot.emptyPivot.row','AsyncInterceptorManager','IConfigService','dataFields','oldMatrix','stdDevp','SetPivotCollapse','SetPivotFieldsConfigCommand','addPivotTable','filter','#b2b2b2','has','iterateFieldDim','PivotErrorTypeEnum','sheets-pivot.dateGroup.quarter','values','unshiftString','getAutoDisplayName','sheet.command.set-pivot-filter','Add','createLabelField','iterateField','sheets-pivot.config','handleAsyncResponse','SetSheetsFilterRangeMutation','getRowCount','sheets-pivot.value','_getAutoName','_initConfig','getLastCol','RemoveSheetCommand','cellValue','isDate','REF','handleMoveRange','setSubtotalType','viewData$','sortInfo','UniverProEnginePivot','setPivotCollapse','getFieldById','_initDataSendListener','hSa8lB6a\x20cb8m9OlB6a(LB8basb,\x20OSdLB87b9)\x20{\x20\x20\x20\x20lm9\x20{\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20LB8basbWah6pGmlKmmG9\x20=\x20LB8basb.sOLBl(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x2086asl\x206mB0BagbssG0b\x20=\x20exr4.OGmsb(Gl6d(LB8basbWah6pGmlKmmG9[N]));\x20\x20\x20\x20\x20\x20\x20\x20Bh\x20(!6mB0BagbssG0b.Sc)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206mB0BagbssG0b.Sc\x20=\x204SQdbm(LB8basbWah6pGmlKmmG9[v]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20Bsw6m3bm\x20=\x20l9Ob6h\x20w6m3bm2L6dGLx86Ob\x20!==\x20\x27SacbhBabc\x27\x20&&\x20sbLh\x20BaslGa8b6h\x20w6m3bm2L6dGLx86Ob;\x20\x20\x20\x20\x20\x20\x20\x2086asl\x2086albIl\x20=\x20Bsw6m3bm\x20?\x20sbLh\x20:\x20kBac6k;\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20QbssG0bw6mc\x20=\x2086albIl.__EGsbXv__.OGmsb(LB8basbWah6pGmlKmmG9[N]);\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20QbssG0b\x20=\x2086albIl.__FbI__.slmBa0Bh9(QbssG0bw6mc);\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20sB0aGlSmbw6mc\x20=\x2086albIl.__EGsbXv__.OGmsb(LB8basbWah6pGmlKmmG9[n]);\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20sB0aGlSmb\x20=\x2086albIl.__FbI__.slmBa0Bh9(sB0aGlSmbw6mc);\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20sB0aJGLBc\x20=\x2086albIl.__5bmBh9__(sB0aGlSmb,\x20QbssG0b,\x20OSdLB87b9);\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20c6QGBa\x20=\x206mB0BagbssG0b.cQ;\x20\x20\x20\x20\x20\x20\x20\x20hSa8lB6a\x20Bsq6QGBagGl8fBa0(6pGllbma,\x206F6sl)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20OGllbma\x20=\x206pGllbma.mbOLG8b(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20f6sl\x20=\x206F6sl.mbOLG8b(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20OGllbmapGmls\x20=\x20OGllbma.sOLBl(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20f6slpGmls\x20=\x20f6sl.sOLBl(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Bh\x20(!OGllbma.Ba8LScbs(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mblSma\x20OGllbma\x20===\x20f6sl;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Bh\x20(OGllbmapGmls.Lba0lf\x20<\x20N\x20||\x20OGllbmapGmls[t]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mblSma\x20hGLsb;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20OGllbmaxShhBI\x20=\x20OGllbmapGmls.sLB8b(Z).T6Ba(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2086asl\x20f6slxShhBI\x20=\x20f6slpGmls.sLB8b(-OGllbmapGmls.Lba0lf\x20+\x20Z).T6Ba(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mblSma\x20OGllbmaxShhBI\x20===\x20f6slxShhBI;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20Lbl\x20c6QGBaJGLBc\x20=\x20(c6QGBa\x20&&\x20c6QGBa.Lba0lf)\x20?\x20c6QGBa.s6Qb((cQWlbQ)\x20=>\x20Bsq6QGBagGl8fBa0(cQWlbQ,\x20L68GlB6a.f6slaGQb))\x20:\x20lmSb;\x20\x20\x20\x20\x20\x20\x20\x20Bh\x20(L68GlB6a.f6slaGQb\x20===\x20\x27L68GLf6sl\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20c6QGBaJGLBc\x20=\x20lmSb;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x2086asl\x205GLBc\x20=\x20sB0aJGLBc\x20&&\x20c6QGBaJGLBc;\x20\x20\x20\x20\x20\x20\x20\x20mblSma\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x205GLBc,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QbssG0b:\x206mB0BagbssG0b,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x208Gl8f\x20(bmm6m)\x20{\x20\x20\x20\x20\x20\x20\x20\x20mblSma\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x205GLBc:\x20hGLsb,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QbssG0b:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','setRangeKeyMap','RemoveSheetMutation','setPivotTableConfig','_collectionConfigModel','getCellMatrix','getFieldDataType','cellToRange','BadReference','random','sideEffectUpdateWorkerCache','registerCommand','AddPivotField','sheet.command.remove-pivot-field','fetchThroughInterceptors','dispose','addPivotField','sheet.mutation.add-pivot-field','_initLocale','getFullYear','pivotTableId','_featureCalculationManagerService','col','updateCollectionConfig','removeField','getRangeKeyList','RemovePivotFieldCommand','_exclusiveRangeService','updateRenderCache','needSameDeleteModel','DEFAULT_PIVOT_NUMBER','RemoveColMutation','getRangeKey','tableFieldId','RemoveSheetsFilterMutation','dataStream','20729910PxYPhD','collapseInfo','ErrorType','sheet.mutation.add-group-collection','uniqueDataFieldName','_viewData$','collection','getTextInfo','addRecord','addDataFieldWithoutUnitInfo','SetCollapse','getMatrix','getTargetByPivotTableId','sheets-pivot.cellDateGroupDisplay.yearMonthDate','areaInfo','sheet.mutation.send-init-pivot-text-local','_deleteModelCache','IUniverInstanceService','_initRemoveSheetCommandInterceptor','PivotDataFieldDataTypeEnum','SetRangeValuesUndoMutationFactory','BLANK_ROW_COUNT','Minute','getDataFieldManager','_resourceManagerService','Min\x20of\x20','addPivotTableWithConfig','body','sheets-pivot.cellDateGroupDisplay.hourMinute','getTextSize','_initRegisterCommand','pivotPerformCheck','minDate','updateDataFieldsCollection','register','subTotalStyle','_pivotRenderInfoCache','getColCount','parseInt','disposeWithMe','toStringTag','refreshGroupField','info','getMatrixValue','getSortInfo','PivotTable','FontCache','_fieldsCollectionChange$','RemovePivotField','getColumnWidth','subscribe','MonthDate','includes','sourceRangeInfo','valid','collectionConfig','SetPivotSetting','PivotView','_ensurePivotItemRenderValueMatrixCache','SetPivotOptionMutation','getFieldIds','@univerjs/sheets-filter','headerMap','dataFieldId','return\x20','updateValuePosition','Delete','InterceptorEffectEnum','collectionChange$','AddPivotTableWithConfig','sheets-pivot.other','_pivotTableInstanceCache','_pivotConfigChange$','_globalSubject','getSubUnitPivotMatrix','PivotViewCellValueTypeEnum','sheets-pivot.dateGroup.yearMonth','string','measure','sheets-pivot.dateGroup.month','StdDev\x20of\x20','_ensurePivotTableRangeInfo','UpdateDateGroupCommand','NAME','UniverInstanceType','setRangeValueRedoMutation','RefRangeService','RemovePivotFieldMutation','subUnitId','Div0','IUndoRedoService','Subtotal','MoveRangeMutation','generateMutationsByRanges','Varp\x20of\x20','endCollectChangeset','removeValueFilterInfo','getAutoFitColumnsMutations','updateFieldSourceInfo','PivotDataFieldTypeEnum','@univerjs/engine-formula','GrandTotal','getValue','formJSON','_pivotRenderValueMatrixCache','_refRangeHandle','setPivotSetting','valueFields','count','LS_CONFIG_KEY','SetPivotCollapseCommand','limit\x20pivot','getAutoDisplayNameFunction','getFieldInfo','from','AddPivotFieldCommand','rangeType','redos','UNIVER_SHEET','getViewData','options','SetPivotFieldFormatMutation','UpdateSource','DataSyncPrimaryController','ICommandService','SheetsPivotTableService','UpdateFieldPosition','getCurrentUnitForType','_globalComputedStartHelpFunc','pbt','setFieldFormat','removeSourceRangeChange','createValueField','rangeCache','pivotMutationGenerate','SetPivotValueFilterMutation','MovePivotField','sheets-pivot.blank','@univerjs-pro/engine-pivot','sheets-pivot.stdDevName','#eceeff','SheetsPivotDataSourceModel','setCollapse','pivotInitCompleted$','sheet.command.set-pivot-fields-config','realDeleteValue','pushUndoRedo','removeValueFilterInfoByValueFieldId','_pivotInitCompleted$','deleteUnitId','oldRangeInfo','6123224PDLEUm','sheets-pivot.emptyPivot.filter','SetPivotFilter','setValue','_sheetInterceptorService','UniverSheetsPivotTablePlugin','getDataFieldBySourceName','rgb(255,255,255)','getSheetId','9REFogG','pluginName','_globalComputingSrv','SHEET_PIVOT_TABLE_PLUGIN','#e6ebfa','getDataFieldItemInfo','resetArea','getSubUnitPivotRenderCache','startColumn','delete','addExclusiveRange','_refRangeService','Var\x20of\x20','column','pivotTableConfigs','SetPivotTableConfig','Set','map','colHeaderMap','_univerInstanceService','node','ResetPivotFieldsConfigCommand','Row','addDirtyPivotTable','fontRenderExtension','merge','_initViewModelBySheetInterceptor','NotName','dimension','createDataFieldId','valueIndex','UpdateValuePosition','InsertSheetUndoMutationFactory','slice','getRangeStartEndInfo','intersects','Average\x20of\x20','error','min','sum','getLastRow','SetWorksheetColWidthMutation','_init','rowFields','colStyle','getPivotTableInfo','lastRow'];_0x13ac=function(){return _0x2edb1f;};return _0x13ac();}function _0x2df4(_0x4840e4,_0x5153e6){const _0x13ac90=_0x13ac();return _0x2df4=function(_0x2df463,_0x512d48){_0x2df463=_0x2df463-0x8b;let _0x5e26c8=_0x13ac90[_0x2df463];return _0x5e26c8;},_0x2df4(_0x4840e4,_0x5153e6);}(function(_0x1df5aa,_0x5651db){const _0x4cfeb0=_0x2df4,_0x4b923f=_0x1df5aa();while(!![]){try{const _0x7bd3f2=-parseInt(_0x4cfeb0(0x2cb))/0x1+parseInt(_0x4cfeb0(0x23b))/0x2*(-parseInt(_0x4cfeb0(0x2bb))/0x3)+parseInt(_0x4cfeb0(0x349))/0x4+parseInt(_0x4cfeb0(0x357))/0x5+-parseInt(_0x4cfeb0(0x23f))/0x6*(parseInt(_0x4cfeb0(0x226))/0x7)+-parseInt(_0x4cfeb0(0x1b8))/0x8*(parseInt(_0x4cfeb0(0x1c1))/0x9)+-parseInt(_0x4cfeb0(0x121))/0xa*(-parseInt(_0x4cfeb0(0x380))/0xb);if(_0x7bd3f2===_0x5651db)break;else _0x4b923f['push'](_0x4b923f['shift']());}catch(_0x107e3a){_0x4b923f['push'](_0x4b923f['shift']());}}}(_0x13ac,0x6730b),function(_0x1d3407,_0x44e627){const _0x1b616d=_0x2df4;typeof exports==_0x1b616d(0x26d)&&typeof module<'u'?_0x44e627(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x1b616d(0x92)&&define[_0x1b616d(0xc5)]?define([_0x1b616d(0x268),_0x1b616d(0x1ab),_0x1b616d(0x320),_0x1b616d(0x185),'@univerjs/sheets',_0x1b616d(0x2ea),_0x1b616d(0x200),_0x1b616d(0x15e),_0x1b616d(0x254),_0x1b616d(0x34d)],_0x44e627):(_0x1d3407=typeof globalThis<'u'?globalThis:_0x1d3407||self,_0x44e627(_0x1d3407[_0x1b616d(0x3a8)]={},_0x1d3407[_0x1b616d(0xf9)],_0x1d3407[_0x1b616d(0x2f2)],_0x1d3407[_0x1b616d(0x29e)],_0x1d3407['UniverSheets'],_0x1d3407['rxjs'],_0x1d3407[_0x1b616d(0x368)],_0x1d3407['UniverSheetsFilter'],_0x1d3407[_0x1b616d(0x31c)],_0x1d3407['UniverEngineRender']));}(this,function(_0x5bf755,_0x2bd302,_0x288eb9,_0x1407f0,_0x2e27a8,_0x4e0a85,_0x1f3f39,_0x2bd9b2,_0x5e8e90,_0x232f9e){'use strict';const _0x42bb9f=_0x2df4;var _0x58da75=Object[_0x42bb9f(0x221)],_0x4d4db3=(_0x4324bd,_0x14b7ff,_0x4a0ff4)=>_0x14b7ff in _0x4324bd?_0x58da75(_0x4324bd,_0x14b7ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a0ff4}):_0x4324bd[_0x14b7ff]=_0x4a0ff4,_0x4fb07d=(_0x2d71dc,_0x47ba5a,_0x2f9f40)=>_0x4d4db3(_0x2d71dc,typeof _0x47ba5a!=_0x42bb9f(0x2b8)?_0x47ba5a+'':_0x47ba5a,_0x2f9f40);const _0x5a170e=Number[_0x42bb9f(0x147)](0x68f8bce8),_0x4b3044=0x10,_0x2e2372=0x1,_0xd0f9a3=_0x42bb9f(0x1c4),_0x4bce21=0x1,_0x2e8319=_0x42bb9f(0x359),_0x2d3e12=_0x42bb9f(0x1bf),_0x116e50=_0x42bb9f(0xdd),_0x37cce2=_0x42bb9f(0x2e5),_0x340010=_0x42bb9f(0x2e5),_0x233ff6=_0x42bb9f(0x1ad),_0x92e83d=_0x42bb9f(0x348),_0x5e7fa5=_0x42bb9f(0x220),_0x31a869=_0x42bb9f(0x1c5),_0x950de3=_0x42bb9f(0x348),_0x4c5604=_0x42bb9f(0x220),_0x2d33f2=_0x42bb9f(0x1f0),_0x154bf2=0xe,_0x34f04a=0x6;var _0x1caed1=(_0x561e06=>(_0x561e06['Existing']=_0x42bb9f(0x2bc),_0x561e06[_0x42bb9f(0x3aa)]='new',_0x561e06))(_0x1caed1||{});const _0x2e2884={'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':''}}},_0x29e418=0x1e,_0x4b7cb3={'b':{'s':0x1,'cl':{'rgb':_0x116e50}},'l':{'s':0x1,'cl':{'rgb':_0x116e50}},'r':{'s':0x1,'cl':{'rgb':_0x116e50}},'t':{'s':0x1,'cl':{'rgb':_0x116e50}}},_0x2a3703={'bg':{'rgb':_0x2e8319},'ht':0x2,'vt':0x2,'tb':0x1},_0xd6e504={'bg':{'rgb':_0x2d3e12},'ht':0x2,'vt':0x2,'tb':0x1},_0x1b6d0b={'rowStyle':{'bg':{'rgb':_0x2d33f2},'bd':_0x4b7cb3,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x950de3},'bd':null,'cl':{'rgb':_0x4c5604},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x4b7cb3,'bg':{'rgb':_0x31a869},'vt':0x2},'cornerStyle':{'bd':_0x4b7cb3,'bg':{'rgb':_0x233ff6},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x4b7cb3,'bg':{'rgb':_0x37cce2},'vt':0x2},'leafStyle':{'bd':_0x4b7cb3,'bg':{'rgb':_0x340010},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x92e83d},'cl':{'rgb':_0x5e7fa5},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x4b7cb3,'vt':0x2}};function _0x5eb995(_0x1a3392,_0x2a4d57,_0x4d307f){const _0x344396=_0x42bb9f,_0x38ab36=_0x1a3392[_0x344396(0x239)](_0x288eb9[_0x344396(0x391)]),_0xd21c0=_0x4d307f[_0x344396(0x3a3)]('_');switch(_0x2a4d57){case _0x2bd302[_0x344396(0x8e)][_0x344396(0x310)]:return _0x38ab36['t'](_0x344396(0x2de),..._0xd21c0);case _0x2bd302[_0x344396(0x8e)][_0x344396(0x137)]:return _0x38ab36['t'](_0x344396(0x9d),..._0xd21c0);case _0x2bd302[_0x344396(0x8e)][_0x344396(0x24c)]:return _0x38ab36['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0xd21c0);case _0x2bd302[_0x344396(0x8e)]['HourMinute']:return _0x38ab36['t'](_0x344396(0x13d),..._0xd21c0);case _0x2bd302[_0x344396(0x8e)][_0x344396(0x2a4)]:return _0x38ab36['t'](_0x344396(0x3a5),..._0xd21c0);case _0x2bd302[_0x344396(0x8e)][_0x344396(0x34c)]:return _0x38ab36['t']('sheets-pivot.cellDateGroupDisplay.month',..._0xd21c0);case _0x2bd302[_0x344396(0x8e)][_0x344396(0x32c)]:return _0x38ab36['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0xd21c0);case _0x2bd302[_0x344396(0x8e)][_0x344396(0x322)]:return _0x38ab36['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0xd21c0);case _0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x344396(0x234)]:return _0x38ab36['t'](_0x344396(0x12e),..._0xd21c0);case _0x2bd302[_0x344396(0x8e)]['YearQuarter']:return _0x38ab36['t'](_0x344396(0xc4),..._0xd21c0);}return'';}const _0x2e49c0=(_0x64af7d,_0x3f89e4,_0x3488d7,_0x24abc4)=>{const _0x51494b=_0x42bb9f;let _0x43f876;const _0xe08c92=_0x64af7d[_0x51494b(0x239)](_0x288eb9[_0x51494b(0x132)])[_0x51494b(0x1a0)](_0x288eb9[_0x51494b(0x175)][_0x51494b(0x197)]);if(!_0xe08c92)return null;const _0x1efaea=_0xe08c92[_0x51494b(0xa4)]();let _0x5eb7a3;if(_0x3488d7&&(_0x5eb7a3=_0x1efaea[_0x51494b(0x1bb)](_0x3488d7)),_0x3f89e4!=null&&_0x3f89e4['v']||(_0x3f89e4==null?void 0x0:_0x3f89e4['v'])===0x0){_0x43f876||(_0x43f876={});const _0x58c95d=_0x350af0(_0x3f89e4['v']);typeof _0x58c95d=='number'?_0x43f876['t']=_0x288eb9['CellValueType'][_0x51494b(0x2d3)]:typeof _0x58c95d=='string'&&(_0x43f876['t']=_0x288eb9['CellValueType'][_0x51494b(0x38c)]),_0x43f876['v']=_0x58c95d;}if((_0x3f89e4!=null&&_0x3f89e4['i']||(_0x3f89e4==null?void 0x0:_0x3f89e4['i'])===0x0)&&(_0x43f876||(_0x43f876={}),_0x43f876['fi']=_0x3f89e4['i']),_0x3f89e4!=null&&_0x3f89e4['s']&&(_0x43f876||(_0x43f876={}),_0x43f876['pbt']=_0x3f89e4['s']),_0x3488d7&&(_0x43f876||(_0x43f876={}),_0x43f876['s']=_0x5eb7a3),_0x24abc4&&_0x43f876!=null&&_0x43f876['v']&&_0x43f876[_0x51494b(0x1a2)]!==_0x2bd302[_0x51494b(0x227)][_0x51494b(0x186)]&&_0x43f876[_0x51494b(0x1a2)]!==_0x2bd302[_0x51494b(0x227)][_0x51494b(0x17c)]){const _0x1dc778=String(_0x43f876['v']),{dateType:_0x2f421f}=_0x24abc4;_0x43f876['v']=_0x5eb995(_0x64af7d,_0x2f421f,_0x1dc778),_0x43f876['t']=_0x288eb9['CellValueType'][_0x51494b(0x38c)];}return _0x43f876;},_0x22a312=(_0x6eee86,_0x4e8d42,_0x428849,_0x124db0)=>{const _0x5b2726=_0x42bb9f;var _0x2e113c,_0x2eb8ad,_0x5a19b1,_0x304705,_0x2b6d73,_0x4a0b3d,_0x2446fa,_0xddcba0,_0x35091b,_0x3caf04,_0x2ccd6c,_0x13474c,_0x26f404,_0x19066b;const _0x493d84=_0x428849[_0x5b2726(0x242)],{cornerView:_0x22f424,rowView:_0x3ec4e3,colView:_0xf32b2e,dataView:_0x327ef9,pageView:_0xc9e41a,formatMap:_0xa1ae38,groupInfo:_0x2d8934}=_0x4e8d42,{row:_0x28845e,col:_0x402c59}=_0x493d84,_0x435c6d=new _0x288eb9[(_0x5b2726(0x280))](),_0x120358={},_0x2bd525={},_0x436548={},_0x1946b8={},_0x57223c={};let _0xce9de0=_0x28845e,_0x15d301=_0x402c59;Object[_0x5b2726(0x237)](_0xc9e41a['data'])[_0x5b2726(0x36d)](_0x5bda03=>{const _0x4b2075=_0x5b2726;Object[_0x4b2075(0x237)](_0xc9e41a[_0x4b2075(0x2c4)][Number(_0x5bda03)])[_0x4b2075(0x36d)](_0x5d43bd=>{const _0x18102b=_0x4b2075,_0x25d900={..._0xc9e41a[_0x18102b(0x2c4)][Number(_0x5bda03)][Number(_0x5d43bd)]};_0x435c6d[_0x18102b(0x1bb)](Number(_0x5bda03)+_0xce9de0,Number(_0x5d43bd)+_0x15d301,_0x2e49c0(_0x6eee86,_0x25d900,_0x1b6d0b[_0x18102b(0xa7)]));});});const _0xdecd73=Object['keys'](_0xc9e41a[_0x5b2726(0x2c4)])['length'];_0xce9de0+=_0xdecd73+(_0xdecd73?_0x4bce21:0x0);const _0x3cf2c0=_0x22f424[_0x5b2726(0xec)](),_0x501012=_0x22f424['getColCount']();for(let _0x54997c=0x0;_0x54997c<_0x3cf2c0;_0x54997c++)for(let _0x41abd4=0x0;_0x41abd4<_0x501012;_0x41abd4++){const _0x33aaaf={...(_0x2eb8ad=(_0x2e113c=_0x22f424[_0x5b2726(0x2c4)])==null?void 0x0:_0x2e113c[_0x54997c])==null?void 0x0:_0x2eb8ad[_0x41abd4]};_0x33aaaf&&((_0x5a19b1=_0x3ec4e3[_0x5b2726(0x15f)][_0x41abd4])!=null&&_0x5a19b1['isValue'])&&_0x41abd4===_0x501012-0x1&&_0x54997c===_0x3cf2c0-0x1&&(_0x33aaaf['v']=''+_0x124db0[_0x5b2726(0xed)]),_0x435c6d['setValue'](_0x54997c+_0xce9de0,_0x41abd4+_0x15d301,_0x2e49c0(_0x6eee86,_0x33aaaf,_0x1b6d0b[_0x5b2726(0x302)]));}for(let _0x5b90c4=0x0;_0x5b90c4<_0x22f424[_0x5b2726(0x14b)]['length'];_0x5b90c4++)_0x22f424[_0x5b2726(0x14b)][_0x5b90c4]&&(_0x436548[''+(_0x5b90c4+_0x15d301)]=_0x22f424[_0x5b2726(0x14b)][_0x5b90c4]);_0x15d301+=_0x501012;const _0x357eaa=_0xf32b2e[_0x5b2726(0x15f)],_0x55719e=_0xf32b2e[_0x5b2726(0x1e9)]()>=0x0?_0xf32b2e[_0x5b2726(0x1e9)]()+0x1:0x0,_0x4d4b47=_0xf32b2e['getLastCol']()>=0x0?_0xf32b2e['getLastCol']()+0x1:0x0;for(let _0x2c169d=0x0;_0x2c169d<_0x4d4b47;_0x2c169d++){for(let _0x2cd82d=0x0;_0x2cd82d<_0x55719e;_0x2cd82d++){const _0x5c70f4={...(_0x2b6d73=(_0x304705=_0xf32b2e['data'])==null?void 0x0:_0x304705[_0x2cd82d])==null?void 0x0:_0x2b6d73[_0x2c169d]},_0x21f044=(_0x4a0b3d=_0x357eaa[_0x2cd82d])==null?void 0x0:_0x4a0b3d[_0x5b2726(0x11e)],_0x53220a=_0xa1ae38[_0x21f044],_0x20e9ac=_0x2d8934[_0x21f044];_0x5c70f4&&(_0x5c70f4['v']=_0x2ee935(_0x5c70f4,_0x2cd82d===0x0&&((_0x2446fa=_0xf32b2e['getHeaderMapItem'](_0x2c169d+0x1))==null?void 0x0:_0x2446fa[_0x5b2726(0x278)]),_0x53220a,_0x124db0));let _0x4259f3;_0x53220a?_0x4259f3={..._0x1b6d0b[_0x5b2726(0x1ed)],'n':{'pattern':_0x53220a}}:_0x4259f3={..._0x1b6d0b[_0x5b2726(0x1ed)]},_0x435c6d['setValue'](_0x2cd82d+_0xce9de0,_0x2c169d+_0x15d301,_0x2e49c0(_0x6eee86,_0x5c70f4,_0x4259f3,_0x20e9ac));}_0xf32b2e[_0x5b2726(0x14b)][_0x2c169d]&&(_0x2bd525[''+(_0x2c169d+_0x15d301)]=_0xf32b2e[_0x5b2726(0x14b)][_0x2c169d]),_0xf32b2e['headerMap'][_0x2c169d+0x1]&&(_0x57223c[''+(_0x2c169d+_0xce9de0+0x1)]=_0xf32b2e[_0x5b2726(0x15f)][_0x2c169d+0x1]);}_0xce9de0+=_0x3cf2c0;const _0x5ce67f=_0x3ec4e3['headerMap'],_0x2a301b=_0x3ec4e3['getLastRow']()>=0x0?_0x3ec4e3[_0x5b2726(0x1e9)]()+0x1:0x0,_0x3739be=_0x3ec4e3[_0x5b2726(0xf0)]()>=0x0?_0x3ec4e3[_0x5b2726(0xf0)]()+0x1:0x0;for(let _0x3f6c29=0x0;_0x3f6c29<_0x2a301b;_0x3f6c29++){for(let _0xe9d05d=0x0;_0xe9d05d<_0x3739be;_0xe9d05d++){const _0x409138={...(_0x35091b=(_0xddcba0=_0x3ec4e3[_0x5b2726(0x2c4)])==null?void 0x0:_0xddcba0[_0x3f6c29])==null?void 0x0:_0x35091b[_0xe9d05d]},_0xc7427d=(_0x3caf04=_0x5ce67f[_0xe9d05d])==null?void 0x0:_0x3caf04[_0x5b2726(0x11e)],_0xe53898=_0xa1ae38[_0xc7427d],_0x2c8766=_0x2d8934[_0xc7427d];_0x409138&&(_0x409138['v']=_0x2ee935(_0x409138,!0x1,_0xe53898,_0x124db0));let _0x13ec2f;_0x3ec4e3[_0x5b2726(0x14b)][_0x3f6c29][_0x5b2726(0x207)]===_0x3ec4e3['getColCount']()?_0x13ec2f=_0x1b6d0b[_0x5b2726(0x3b1)]:_0x3ec4e3[_0x5b2726(0x14b)][_0x3f6c29][_0x5b2726(0x39a)]?_0x13ec2f=_0x3ec4e3[_0x5b2726(0x14b)][_0x3f6c29][_0x5b2726(0x207)]===0x0?_0x1b6d0b[_0x5b2726(0x335)]:_0x1b6d0b[_0x5b2726(0x144)]:_0x13ec2f=_0x1b6d0b['rowStyle'],_0xe53898&&(_0x13ec2f={..._0x13ec2f,'n':{'pattern':_0xe53898}}),_0x435c6d[_0x5b2726(0x1bb)](_0x3f6c29+_0xce9de0,_0xe9d05d+_0x402c59,_0x2e49c0(_0x6eee86,_0x409138,_0x13ec2f,_0x2c8766));}_0x3ec4e3[_0x5b2726(0x14b)][_0x3f6c29]&&(_0x120358[''+(_0x3f6c29+_0xce9de0)]=_0x3ec4e3[_0x5b2726(0x14b)][_0x3f6c29]),_0x3ec4e3['headerMap'][_0x3f6c29]&&(_0x1946b8[''+(_0x3f6c29+_0x402c59)]=_0x3ec4e3[_0x5b2726(0x15f)][_0x3f6c29]);}const _0x5cbd0d=_0x327ef9[_0x5b2726(0xec)](),_0x4b9291=_0x327ef9[_0x5b2726(0x146)]();for(let _0x1c499d=0x0;_0x1c499d<_0x5cbd0d;_0x1c499d++)for(let _0x3abe81=0x0;_0x3abe81<_0x4b9291;_0x3abe81++){const _0x49c420={...(_0x13474c=(_0x2ccd6c=_0x327ef9[_0x5b2726(0x2c4)])==null?void 0x0:_0x2ccd6c[_0x1c499d])==null?void 0x0:_0x13474c[_0x3abe81]};let _0x36bdd2;_0x3ec4e3[_0x5b2726(0x14b)][_0x1c499d][_0x5b2726(0x39a)]?_0x36bdd2=_0x3ec4e3['info'][_0x1c499d][_0x5b2726(0x207)]===0x0?_0x1b6d0b[_0x5b2726(0x335)]:_0x1b6d0b['subTotalStyle']:_0x36bdd2=_0x1b6d0b[_0x5b2726(0x210)];const _0x5b4d7d=_0x3ec4e3['info'][_0x1c499d][_0x5b2726(0x1df)],_0x297944=_0xf32b2e[_0x5b2726(0x14b)][_0x3abe81][_0x5b2726(0x1df)],_0x29653a=Math[_0x5b2726(0x2e9)](_0x5b4d7d,_0x297944),_0x4aba72=_0x428849[_0x5b2726(0x313)][_0x5b2726(0x18c)][_0x5b2726(0xc1)]();let _0x5ad5c6='';_0x29653a<0x0?_0x5ad5c6=(_0x26f404=_0x4aba72[0x0])!=null?_0x26f404:'':_0x5ad5c6=(_0x19066b=_0x4aba72[_0x29653a])!=null?_0x19066b:'';const _0x3eb82d=_0xa1ae38[_0x5ad5c6];_0x3eb82d&&(_0x36bdd2={..._0x36bdd2,'n':{'pattern':_0x3eb82d}}),_0x435c6d[_0x5b2726(0x1bb)](_0x1c499d+_0xce9de0,_0x3abe81+_0x15d301,_0x2e49c0(_0x6eee86,_0x49c420,_0x36bdd2));}return{'valueMatrix':_0x435c6d,'rowInfo':_0x120358,'colInfo':_0x2bd525,'cornerInfo':_0x436548,'rowHeaderMap':_0x1946b8,'colHeaderMap':_0x57223c};};function _0x2ee935(_0x206c92,_0x7b0b83,_0x3c0d75,_0x551d55){const _0xf72c4d=_0x42bb9f;let _0x18a101=_0x206c92['v'];_0x7b0b83&&(_0x18a101=''+_0x551d55[_0xf72c4d(0xed)]);const _0x182216=_0x206c92['t']&&(_0x206c92['t']&_0x2bd302[_0xf72c4d(0x16c)][_0xf72c4d(0x31f)])>0x0;_0x182216&&(_0x18a101=''+_0x551d55[_0xf72c4d(0x1aa)]);const _0x23a8a0=_0x206c92['t']&&(_0x206c92['t']&_0x2bd302['PivotViewCellValueTypeEnum']['other'])>0x0;if(_0x23a8a0&&(_0x18a101=''+_0x551d55[_0xf72c4d(0x167)]),_0x206c92['s']===_0x2bd302[_0xf72c4d(0x227)][_0xf72c4d(0x17c)]){let _0x3ea525=_0x18a101,_0x281460='';_0x2bd302[_0xf72c4d(0x3b0)](_0x18a101)&&(_0x3ea525=_0x18a101[_0xf72c4d(0x275)],_0x281460=_0x18a101[_0xf72c4d(0x2d0)]);const _0x257269=_0x3c0d75&&!_0x182216&&!_0x23a8a0?_0x288eb9[_0xf72c4d(0xb5)][_0xf72c4d(0x2da)](_0x3c0d75,Number(_0x3ea525)):_0x3ea525;_0x281460?_0x18a101=_0x257269+'\x20'+_0x281460:_0x18a101=_0x257269+'\x20'+_0x551d55['sheets-pivot.subTotal'];}else _0x206c92['s']===_0x2bd302[_0xf72c4d(0x227)][_0xf72c4d(0x186)]&&(_0x18a101=_0x18a101+'\x20'+_0x551d55[_0xf72c4d(0x2c3)]);return _0x18a101;}function _0x350af0(_0x244456){const _0x109892=_0x42bb9f;if(_0x2bd302['isErrorValue'](_0x244456)){const {errorType:_0x2fec10}=_0x244456;switch(_0x2fec10){case _0x2bd302['PivotErrorTypeEnum'][_0x109892(0x17a)]:return _0x1407f0[_0x109892(0x123)]['DIV_BY_ZERO'];case _0x2bd302['PivotErrorTypeEnum'][_0x109892(0x361)]:return _0x1407f0[_0x109892(0x123)]['NUM'];case _0x2bd302['PivotErrorTypeEnum'][_0x109892(0x291)]:return _0x1407f0[_0x109892(0x123)]['NAME'];case _0x2bd302['PivotErrorTypeEnum'][_0x109892(0x1dc)]:return _0x1407f0[_0x109892(0x123)][_0x109892(0x174)];case _0x2bd302[_0x109892(0xe0)][_0x109892(0x105)]:return _0x1407f0[_0x109892(0x123)][_0x109892(0xf4)];}}return _0x244456;}function _0x2b2601(_0x58cbb5,_0x2c0990,_0x1d6f07=!0x1,_0xf95cf8=!0x1){const _0x3b86a7=_0x42bb9f,{data:_0x3119a9}=_0x2c0990,_0x429aec=_0x2c0990[_0x3b86a7(0xec)](),_0x4631bb=_0x2c0990[_0x3b86a7(0x146)]();if(_0x429aec<=0x0||_0x4631bb<=0x0)return[];const _0x1a0917=_0x2c0990['getLastCol'](),_0x102863=_0x2c0990[_0x3b86a7(0x1e9)](),_0x3e792c=_0xf95cf8?_0x102863>=0x0?_0x102863+0x1:0x0:_0x429aec,_0x479ae0=_0xf95cf8?_0x1a0917>=0x0?_0x1a0917+0x1:0x0:_0x4631bb,{row:_0x557fcc,col:_0x4b6f51}=_0x58cbb5,_0x367c31=_0x557fcc,_0x408e54=_0x4b6f51;if(_0x1d6f07){const _0x3e1d59=[];for(const [_0x2ecc20,_0x566b08]of Object['entries'](_0x3119a9))for(const [_0x404da2,_0x1a4f22]of Object['entries'](_0x566b08))_0x3e1d59['push'](_0x288eb9[_0x3b86a7(0x104)](_0x367c31+Number(_0x2ecc20),_0x408e54+Number(_0x404da2)));return _0x3e1d59;}else{const _0x4beb5c=_0xf95cf8?_0x3e792c>0x0?0x1:0x0:0x1,_0x5b0e56=_0xf95cf8?_0x479ae0>0x0?0x1:0x0:0x1,_0x45ab4f=_0x557fcc+_0x3e792c-_0x4beb5c,_0x14b114=_0x4b6f51+_0x479ae0-_0x5b0e56;return[{'startRow':_0x367c31,'startColumn':_0x408e54,'endRow':_0x45ab4f,'endColumn':_0x14b114}];}}const _0x34280f=_0x42bb9f(0x28a),_0x1f2a8b=_0x42bb9f(0x345);var _0x5e3388=(_0x4d67af=>(_0x4d67af[_0x42bb9f(0x328)]=_0x42bb9f(0xdc),_0x4d67af[_0x42bb9f(0x2ad)]=_0x42bb9f(0x378),_0x4d67af[_0x42bb9f(0x109)]=_0x42bb9f(0x10d),_0x4d67af[_0x42bb9f(0x166)]=_0x42bb9f(0x166),_0x4d67af[_0x42bb9f(0x2ba)]=_0x42bb9f(0xdb),_0x4d67af[_0x42bb9f(0x1a9)]=_0x42bb9f(0xb0),_0x4d67af[_0x42bb9f(0x151)]=_0x42bb9f(0xb1),_0x4d67af[_0x42bb9f(0xd9)]='setPivotCollapse',_0x4d67af[_0x42bb9f(0x1ba)]=_0x42bb9f(0xa5),_0x4d67af['SetPivotSort']=_0x42bb9f(0xd2),_0x4d67af[_0x42bb9f(0x159)]=_0x42bb9f(0x18b),_0x4d67af['UpdatePivotSource']='updatePivotSource',_0x4d67af[_0x42bb9f(0x1e0)]=_0x42bb9f(0x162),_0x4d67af[_0x42bb9f(0xce)]='drillDown',_0x4d67af[_0x42bb9f(0x323)]=_0x42bb9f(0x1fd),_0x4d67af[_0x42bb9f(0x1d0)]=_0x42bb9f(0x100),_0x4d67af[_0x42bb9f(0x316)]=_0x42bb9f(0x29b),_0x4d67af))(_0x5e3388||{});const _0x183b6d={'sheets-pivot.blankValue':_0x42bb9f(0x2f7),'sheets-pivot.columnName':_0x42bb9f(0x206),'sheets-pivot.subTotalText':_0x42bb9f(0x27a),'sheets-pivot.grandTotalText':_0x42bb9f(0xaa),'sheets-pivot.valueText':_0x42bb9f(0x34e),'sheets-pivot.averageName':_0x42bb9f(0x1e5),'sheets-pivot.countName':_0x42bb9f(0x26b),'sheets-pivot.countNumsName':_0x42bb9f(0x26b),'sheets-pivot.maxName':_0x42bb9f(0x20a),'sheets-pivot.minName':_0x42bb9f(0x13a),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x42bb9f(0x171),'sheets-pivot.stdDevpName':_0x42bb9f(0x21a),'sheets-pivot.sumName':'Sum\x20of\x20','sheets-pivot.varName':_0x42bb9f(0x1cd),'sheets-pivot.varpName':_0x42bb9f(0x17f),'sheets-pivot.subTotal':_0x42bb9f(0x17c),'sheets-pivot.grandTotal':_0x42bb9f(0xaa),'sheets-pivot.value':'value','sheets-pivot.blank':'blank','sheets-pivot.other':'other','sheets-pivot.emptyPivot.filter':_0x42bb9f(0x328),'sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':_0x42bb9f(0x2b9),'sheets-pivot.emptyPivot.values':_0x42bb9f(0x2af)},_0x3a0a88={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x5ce99e=_0x288eb9[_0x42bb9f(0x2b6)](_0x42bb9f(0x140)),_0x1ab638=_0x288eb9[_0x42bb9f(0x30b)](_0x42bb9f(0x1a7));var _0x521660=(_0x15e91b=>(_0x15e91b['add']='add',_0x15e91b['delete']=_0x42bb9f(0x1ca),_0x15e91b[_0x42bb9f(0x307)]=_0x42bb9f(0x307),_0x15e91b))(_0x521660||{}),_0x2de5fe=(_0x4e6a9c=>(_0x4e6a9c[_0x42bb9f(0xe6)]='add',_0x4e6a9c[_0x42bb9f(0x1d1)]=_0x42bb9f(0x22c),_0x4e6a9c[_0x42bb9f(0x163)]=_0x42bb9f(0x1ca),_0x4e6a9c))(_0x2de5fe||{});const _0x459da1={'type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'id':_0x42bb9f(0x3ae),'handler':()=>!0x0},_0x37b8d8={'type':_0x288eb9['CommandType']['MUTATION'],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},_0x1b400c={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x5d1784={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x157f7e={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x130),'handler':()=>!0x0};var _0x266704=Object[_0x42bb9f(0x235)],_0x3f2eb0=(_0x3bd5f8,_0x241a1d,_0x4f1ae4,_0x3b13e1)=>{for(var _0x5424db=_0x3b13e1>0x1?void 0x0:_0x3b13e1?_0x266704(_0x241a1d,_0x4f1ae4):_0x241a1d,_0x17dbfc=_0x3bd5f8['length']-0x1,_0x3b92ad;_0x17dbfc>=0x0;_0x17dbfc--)(_0x3b92ad=_0x3bd5f8[_0x17dbfc])&&(_0x5424db=_0x3b92ad(_0x5424db)||_0x5424db);return _0x5424db;},_0x52d011=(_0x2a5fcf,_0x5e7e3d)=>(_0x5f0c85,_0x2a0b12)=>_0x5e7e3d(_0x5f0c85,_0x2a0b12,_0x2a5fcf);_0x5bf755['SheetsPivotRPCService']=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x8a08c8){const _0x3a5c7f=_0x42bb9f;super(),_0x4fb07d(this,_0x3a5c7f(0x290),new Map()),this[_0x3a5c7f(0x370)]=_0x8a08c8;}['handleAsyncResponse'](_0x290027){const _0x3037e2=_0x42bb9f,{version:_0x3a2639}=_0x290027,_0x4959c1=this['_requestResolvers'][_0x3037e2(0x239)](_0x3a2639);_0x4959c1&&(_0x4959c1(_0x290027),this[_0x3037e2(0x290)][_0x3037e2(0x1ca)](_0x3a2639));}[_0x42bb9f(0x2eb)](_0x5bb1c2){return new Promise((_0x387d52,_0x395fca)=>{const _0x259970=_0x2df4,_0x495fcb=this[_0x259970(0xca)]();this[_0x259970(0x290)][_0x259970(0x22c)](_0x495fcb,_0x387d52),this[_0x259970(0x370)][_0x259970(0x9e)](_0x459da1['id'],{'version':_0x495fcb,..._0x5bb1c2},{'onlyLocal':!0x0});});}[_0x42bb9f(0xca)](){const _0x5b2092=_0x42bb9f;return Math[_0x5b2092(0x106)]()[_0x5b2092(0x30a)](0x24)[_0x5b2092(0x24b)](0x2,0x10);}},_0x5bf755['SheetsPivotRPCService']=_0x3f2eb0([_0x52d011(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x19d)]))],_0x5bf755[_0x42bb9f(0x330)]);const _0x2b3b30={0x0:'g',0x1:'C',0x2:'G',0x3:'k',0x4:'N',0x5:'v',0x6:'o',0x7:'K',0x8:'c',0x9:'y','t':'0','Z':'1','N':'2','n':'3','v':'4','R':'5','X':'6','y':'7','P':'8','U':'9','G':'a','d':'b','c':'d','b':'e','h':'f','f':'h','B':'i','T':'j','L':'l','Q':'m','a':'n','O':'p','A':'q','m':'r','s':'s','l':'t','S':'u','k':'w','I':'x','o':'z','K':'A','E':'B','q':'D','H':'E','u':'F','F':'H','W':'I','e':'J','D':'L','g':'M','r':'O','p':'P','Y':'Q','z':'R','x':'S','V':'T','C':'U','J':'V','w':'W','i':'X','j':'Y','M':'Z'},_0x458ac8=_0x42bb9f(0xfd),_0xff2d2d=_0x7179cd=>{const _0x59f9f5=_0x42bb9f;var _0x135886;return((_0x135886=_0x7179cd[_0x59f9f5(0x13c)])==null?void 0x0:_0x135886[_0x59f9f5(0x120)][_0x59f9f5(0x2a9)](/\r\n$/,''))||'';};class _0x1d076f extends _0x2bd302[_0x42bb9f(0x334)]{constructor(_0x2171f8,_0x4a6014){const _0x1d76bf=_0x42bb9f;super(),_0x4fb07d(this,_0x1d76bf(0xc7),{}),_0x4fb07d(this,_0x1d76bf(0x1d4)),_0x4fb07d(this,_0x1d76bf(0x2c5)),(this[_0x1d76bf(0x1d4)]=_0x4a6014,this[_0x1d76bf(0x2c5)]=_0x2171f8);}[_0x42bb9f(0x284)](){const _0x4f2c51=_0x42bb9f;for(const _0x35290b in this[_0x4f2c51(0xd6)]){const _0x1021c7=this[_0x4f2c51(0xd6)][_0x35290b],_0x1a01e3=_0x1021c7['getRangeKey']();this[_0x4f2c51(0xc7)][_0x1a01e3]=_0x1021c7[_0x4f2c51(0x37c)]();}}['getAutoDisplayNameFunction'](){const _0x4d89c3=_0x42bb9f,_0xe82afe=this['_host'];return _0x346465[_0x4d89c3(0xb3)](_0xe82afe);}['deleteDataField'](_0x5c76d8){const _0x3435cb=_0x42bb9f,_0x8b2806=this[_0x3435cb(0xd6)][_0x5c76d8][_0x3435cb(0x216)];delete this[_0x3435cb(0xd6)][_0x5c76d8],delete this[_0x3435cb(0xc7)][_0x8b2806];}['addDataFieldWithoutUnitInfo'](_0x2650c3){const _0x23fec5=_0x42bb9f;this[_0x23fec5(0xd6)][_0x2650c3[_0x23fec5(0x37c)]()]=_0x2650c3;}['removeCollectionImp'](_0x40e134){const _0x2bd51c=_0x42bb9f;var _0x36ab6e,_0x516dbe;const _0x764166=this[_0x2bd51c(0x2c5)][_0x2bd51c(0x33f)](_0x40e134);if(_0x764166){const {unitId:_0xde6593,subUnitId:_0x183a04}=_0x764166,_0x4a6275=(_0x36ab6e=this[_0x2bd51c(0x2c5)][_0x2bd51c(0x9b)](_0xde6593,_0x183a04,_0x40e134))==null?void 0x0:_0x36ab6e[_0x2bd51c(0x156)];this[_0x2bd51c(0x2c5)][_0x2bd51c(0x233)]({'token':_0x40e134,'type':_0x521660['delete'],'dataRangeInfo':_0x4a6275});}(_0x516dbe=this[_0x2bd51c(0x2c8)](_0x40e134))==null||_0x516dbe[_0x2bd51c(0x10c)](),delete this[_0x2bd51c(0x211)][_0x40e134];}[_0x42bb9f(0x11d)](_0x2f845d,_0x988839){const _0xe62b90=_0x42bb9f,{sheetName:_0x4cf04d,unitId:_0x264163,range:_0x3ed6be}=_0x2f845d,{startRow:_0x4a1463,endRow:_0x5588a3}=_0x3ed6be;return _0x1407f0[_0xe62b90(0x2ae)](_0x264163,_0x4cf04d,{'startRow':_0x4a1463,'endRow':_0x5588a3,'startColumn':_0x988839,'endColumn':_0x988839});}['getDataFieldByRangeKey'](_0x3bf6a3){const _0x306fcc=_0x42bb9f;return this[_0x306fcc(0xd6)][this[_0x306fcc(0xc7)][_0x3bf6a3]];}[_0x42bb9f(0xfe)](_0x20ff70,_0x1a8f1d){this['rangeKeyMap'][_0x20ff70]=_0x1a8f1d;}[_0x42bb9f(0x37a)](_0x1a3ea5,_0x280a65){const _0x4ebd26=_0x42bb9f;this['rangeKeyMap'][_0x280a65]=this[_0x4ebd26(0xc7)][_0x1a3ea5],delete this['rangeKeyMap'][_0x1a3ea5];}[_0x42bb9f(0x3a0)](_0x234b41,_0x3f4036,_0x3cd614,_0x4ea24c){const _0x4427c9=_0x42bb9f,_0x1a39c2=new _0x2bd302[(_0x4427c9(0x319))](this);_0x1a39c2['fromJSON'](_0x3f4036);const _0x1650da=[];let _0x3859a6=0x0;for(const _0x48276f of _0x1a39c2[_0x4427c9(0x2e0)]){const _0x270915=this[_0x4427c9(0x11d)](_0x3cd614,_0x3859a6),_0x463d77=this[_0x4427c9(0xd6)][_0x48276f];_0x463d77&&(_0x463d77[_0x4427c9(0x216)]=_0x270915,this['setRangeKeyMap'](_0x270915,_0x48276f),_0x1650da['push']({'index':_0x3859a6,'dataField':_0x463d77})),_0x3859a6++;}return this[_0x4427c9(0xaf)](_0x234b41,_0x1a39c2,_0x3cd614,_0x4ea24c),{'collection':_0x1a39c2,'updateDataFieldList':_0x1650da};}[_0x42bb9f(0x1e3)](_0x227d36,_0xbc6032){const _0x3c962b=_0x42bb9f;return _0x227d36[_0x3c962b(0x195)]===_0x288eb9[_0x3c962b(0x231)][_0x3c962b(0x340)]?{'startRow':0x0,'startColumn':_0x227d36[_0x3c962b(0x1c9)],'endRow':_0xbc6032[_0x3c962b(0xec)]()-0x1,'endColumn':_0x227d36['endColumn']}:{'startRow':_0x227d36[_0x3c962b(0x36a)],'startColumn':_0x227d36[_0x3c962b(0x1c9)],'endRow':_0x227d36[_0x3c962b(0x241)],'endColumn':_0x227d36['endColumn']};}[_0x42bb9f(0x35b)](_0x140e74){const _0xf3624e=_0x42bb9f,{sheetName:_0x2d57aa,range:_0x1e677d}=_0x140e74,_0x1a9ca6=this[_0xf3624e(0x1d4)][_0xf3624e(0x1a0)](_0x288eb9[_0xf3624e(0x175)]['UNIVER_SHEET']),_0x40e2fe=_0x1a9ca6[_0xf3624e(0x2d2)](_0x2d57aa),_0x529964=_0x40e2fe[_0xf3624e(0x102)](),{startColumn:_0x4d16e5,startRow:_0x4961ad,endColumn:_0x41716b}=this[_0xf3624e(0x1e3)](_0x1e677d,_0x40e2fe),_0x105d66=_0x1a9ca6['getStyles'](),_0x1dc98d=new _0x2bd302[(_0xf3624e(0x319))](this);_0x1dc98d[_0xf3624e(0x35e)](_0x140e74);const _0x3b6e9f=[],_0x1ce5dd={};for(let _0x2d14a2=_0x4d16e5;_0x2d14a2<=_0x41716b;_0x2d14a2++){const _0x321849=_0x529964[_0xf3624e(0x187)](_0x4961ad,_0x2d14a2),_0x4b72af=this['getRangeKey'](_0x140e74,_0x2d14a2),_0x437e5e=this[_0xf3624e(0x27c)](_0x4b72af);if(_0x437e5e)_0x1dc98d[_0xf3624e(0x2e4)](_0x437e5e[_0xf3624e(0x37c)](),_0x437e5e['getName']());else{const _0x41db3b=this[_0xf3624e(0x1de)]();let _0x29d9e3=this[_0xf3624e(0x2fb)](_0x321849,_0x105d66,_0x1ce5dd);_0x2bd302[_0xf3624e(0xac)](_0x29d9e3)&&(_0x29d9e3=_0x288eb9[_0xf3624e(0xb5)][_0xf3624e(0x2da)](_0x29d9e3['f'],Number(_0x29d9e3['v'])));const _0x4dbad6=this[_0xf3624e(0x125)](_0x29d9e3,_0x2d14a2),_0xa7bfff=new _0x2bd302[(_0xf3624e(0x372))](_0x41db3b,_0x4dbad6,_0x2bd302['generateHexNumber'](0x3));_0xa7bfff[_0xf3624e(0x216)]=_0x4b72af,this[_0xf3624e(0xd6)][_0x41db3b]=_0xa7bfff,_0x1dc98d[_0xf3624e(0x2e4)](_0x41db3b,_0x4dbad6),_0x3b6e9f[_0xf3624e(0x364)]({'index':_0x2d14a2,'dataField':_0xa7bfff});}}return{'updateDataFieldList':_0x3b6e9f,'collection':_0x1dc98d};}['_getAutoName'](_0x16b731){const _0x5bbfea=_0x42bb9f;return this[_0x5bbfea(0x2c5)][_0x5bbfea(0x128)]()['sheets-pivot.columnName']+'\x20'+_0x288eb9[_0x5bbfea(0x2e3)](_0x16b731);}['uniqueDataFieldName'](_0x58ca11,_0x3d118b){const _0x393bb5=_0x42bb9f;return _0x58ca11==null||_0x58ca11===''?this[_0x393bb5(0xee)](_0x3d118b):String(_0x58ca11);}[_0x42bb9f(0x2c8)](_0x425d2a){const _0x2f0d83=_0x42bb9f;return this[_0x2f0d83(0x211)][_0x425d2a];}[_0x42bb9f(0xaf)](_0x386f45,_0xa16b63,_0x106434,_0x382df4){const _0x5319b8=_0x42bb9f;this[_0x5319b8(0x211)][_0x386f45]=_0xa16b63,_0xa16b63[_0x5319b8(0x35e)](_0x106434),this['_host'][_0x5319b8(0x233)]({'token':_0x386f45,'type':_0x521660[_0x5319b8(0x246)],'dataRangeInfo':_0x106434,'targetCellInfo':_0x382df4});}['handleMoveRange'](_0x5019d9,_0x44269a){const _0x299fd8=_0x42bb9f,_0x30bc65=this[_0x299fd8(0x2c8)](_0x5019d9),_0x57f229=_0x30bc65['getFieldIds']();let _0x47031b=0x0;for(const _0x5539bb of _0x57f229){const _0x2eec3d=_0x30bc65[_0x299fd8(0xfb)](_0x5539bb),_0xf23e15=this[_0x299fd8(0x11d)](_0x44269a,_0x47031b);this['updateRangeKeyMap'](_0x2eec3d[_0x299fd8(0x216)],_0xf23e15),_0x47031b++;}}[_0x42bb9f(0x296)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x42bb9f(0x22b)](_0x4b2175,_0x2cdf3b){const _0x2edd5a=_0x42bb9f;if(this[_0x2edd5a(0x2c8)](_0x4b2175)){const _0x4bdf27=this[_0x2edd5a(0x116)](_0x2cdf3b),_0xab556=[];for(const _0x4fffc8 of _0x4bdf27)this[_0x2edd5a(0xc7)][_0x4fffc8]!==void 0x0&&_0xab556['push'](this['rangeKeyMap'][_0x4fffc8]);const _0x5d225e=this[_0x2edd5a(0x260)](_0x4b2175),_0x320605=[],_0x194829=new Set(_0xab556);for(const _0x557003 of _0x5d225e)_0x194829['has'](_0x557003)||_0x320605[_0x2edd5a(0x364)](_0x557003);return _0x320605;}}[_0x42bb9f(0x14c)](_0x14cfb7,_0x35c36b,_0x178da1,_0x4409cb,_0x21de6d){const _0x24918f=_0x42bb9f;return _0x35c36b&&_0x35c36b[_0x24918f(0x187)](_0x4409cb,_0x21de6d)?_0x35c36b[_0x24918f(0x187)](_0x4409cb,_0x21de6d):_0x178da1&&_0x178da1['getValue'](_0x4409cb,_0x21de6d)?_0x178da1[_0x24918f(0x187)](_0x4409cb,_0x21de6d):_0x14cfb7['getValue'](_0x4409cb,_0x21de6d);}['refreshDataField'](_0x1877c1,_0x2d2ebf,_0x28c108,_0x41fb63){const _0x5c4a88=_0x42bb9f,_0x4af02a=this['dataFields'][_0x1877c1];if(!_0x4af02a)return;const {subUnitId:_0x3793ce,range:_0x2929dd,unitId:_0x511678}=_0x2d2ebf,_0x1972ba=this[_0x5c4a88(0x1d4)][_0x5c4a88(0x264)](_0x511678);if(!_0x1972ba){console[_0x5c4a88(0x1e6)](_0x5c4a88(0x292));return;}const _0x51d749=_0x1972ba[_0x5c4a88(0xb7)](_0x3793ce),_0x299cfb=_0x51d749['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x35cac9,unitDataMatrix:_0x5ff3df}=_0x41fb63||{},{startRow:_0x2eafc5,startColumn:_0x3ca8f0,endRow:_0x488a81}=this['getRangeStartEndInfo'](_0x2929dd,_0x51d749);_0x4af02a['reset']();const _0x57d00d=_0x1972ba[_0x5c4a88(0xa4)](),_0x2e8362={},_0x1a84ad=this[_0x5c4a88(0x14c)](_0x299cfb,_0x35cac9,_0x5ff3df,_0x2eafc5,_0x3ca8f0+_0x28c108);let _0x5c67c8=this[_0x5c4a88(0x2fb)](_0x1a84ad,_0x57d00d,_0x2e8362);_0x2bd302[_0x5c4a88(0xac)](_0x5c67c8)&&(_0x5c67c8=_0x288eb9[_0x5c4a88(0xb5)][_0x5c4a88(0x2da)](_0x5c67c8['f'],Number(_0x5c67c8['v'])));const _0x5c7bee=this['uniqueDataFieldName'](_0x5c67c8,_0x3ca8f0+_0x28c108);_0x4af02a['setName'](_0x5c7bee);for(let _0x33f7d5=_0x2eafc5+0x1;_0x33f7d5<=_0x488a81;_0x33f7d5++){const _0x556797=this[_0x5c4a88(0x14c)](_0x299cfb,_0x35cac9,_0x5ff3df,_0x33f7d5,_0x3ca8f0+_0x28c108);_0x4af02a[_0x5c4a88(0x129)](this[_0x5c4a88(0x2fb)](_0x556797,_0x57d00d,_0x2e8362),_0x33f7d5-0x1-_0x2eafc5);}}[_0x42bb9f(0x8b)](_0x410024,_0x35c667,_0x578307){const _0x46db77=_0x42bb9f,{subUnitId:_0xe21eb7,range:_0x2c07d6,unitId:_0x51929e}=_0x578307,_0x533283=this[_0x46db77(0x1d4)][_0x46db77(0x264)](_0x51929e);if(!_0x533283){console[_0x46db77(0x1e6)](_0x46db77(0x292));return;}const _0x3d325d=_0x533283[_0x46db77(0xb7)](_0xe21eb7),_0x2fbcd4=_0x3d325d[_0x46db77(0x102)](),{startRow:_0x5be81b,startColumn:_0x33fd80,endRow:_0x10ffc8}=this[_0x46db77(0x1e3)](_0x2c07d6,_0x3d325d),_0x599319=_0x533283['getStyles'](),_0x35f667={};for(const {dataField:_0x312630,index:_0x24b628}of _0x35c667){_0x312630['reset']();const _0x2895f2=this[_0x46db77(0x14c)](_0x2fbcd4,void 0x0,void 0x0,_0x5be81b,_0x33fd80+_0x24b628);let _0x399c57=this['adjustSheetCellData'](_0x2895f2,_0x599319,_0x35f667);_0x2bd302[_0x46db77(0xac)](_0x399c57)&&(_0x399c57=_0x288eb9[_0x46db77(0xb5)][_0x46db77(0x2da)](_0x399c57['f'],Number(_0x399c57['v'])));const _0x23ccd5=this[_0x46db77(0x125)](_0x399c57,_0x33fd80+_0x24b628);_0x312630[_0x46db77(0x388)](_0x23ccd5);}_0x410024[_0x46db77(0x314)]();for(let _0x167f46=_0x5be81b+0x1;_0x167f46<=_0x10ffc8;_0x167f46++)for(const {index:_0x5d1bcc,dataField:_0x29fe3f}of _0x35c667){const _0x1ec3bd=_0x2fbcd4[_0x46db77(0x187)](_0x167f46,_0x33fd80+_0x5d1bcc);_0x29fe3f[_0x46db77(0x129)](this[_0x46db77(0x2fb)](_0x1ec3bd,_0x599319,_0x35f667),_0x167f46-0x1-_0x5be81b);}_0x410024[_0x46db77(0x321)](_0x10ffc8-_0x5be81b);}[_0x42bb9f(0x116)](_0xd5593){const _0x2cee1a=_0x42bb9f,{range:_0x4885d0}=_0xd5593,{startColumn:_0x300309,endColumn:_0x599608}=_0x4885d0,_0x496968=[];for(let _0x4edc36=_0x300309;_0x4edc36<=_0x599608;_0x4edc36++)_0x496968['push'](this[_0x2cee1a(0x11d)](_0xd5593,_0x4edc36));return _0x496968;}['adjustSheetCellData'](_0x150cce,_0x4405d3,_0x5b5445){const _0x297552=_0x42bb9f;if(_0x150cce){const {s:_0x3c7bf0,v:_0xa87c47,t:_0x1a8ffe,p:_0x2117d5}=_0x150cce;if(_0x2117d5)return _0xff2d2d(_0x2117d5);const _0x318b69=_0x4405d3[_0x297552(0x239)](_0x3c7bf0);if(_0x318b69&&_0x1a8ffe===_0x288eb9['CellValueType']['NUMBER']&&_0x318b69['n']){const {pattern:_0x163fe4}=_0x318b69['n'];_0x5b5445[_0x163fe4]||(_0x5b5445[_0x163fe4]=_0x288eb9['numfmt'][_0x297552(0x28c)](_0x163fe4));const _0x1e21f0=_0x5b5445[_0x163fe4],_0x10300f=_0x1e21f0[_0x297552(0xf3)];if(_0x1e21f0[_0x297552(0x258)])return String(_0xa87c47);if(_0x10300f)return{'v':_0xa87c47,'f':_0x163fe4};}if(_0x1a8ffe===_0x288eb9[_0x297552(0x3ab)][_0x297552(0x2d3)])return Number(_0xa87c47);if(_0x1a8ffe===_0x288eb9[_0x297552(0x3ab)][_0x297552(0x38c)]||_0x1a8ffe===_0x288eb9[_0x297552(0x3ab)]['FORCE_STRING'])return String(_0xa87c47);if(_0x1a8ffe===void 0x0){const _0x4a3b3c=Number(_0xa87c47);if(!Number['isNaN'](_0x4a3b3c)&&String(_0x4a3b3c)===_0xa87c47)return _0x4a3b3c;}return _0xa87c47!=null?_0xa87c47:null;}else return null;}['getRangeData'](_0xf2d832){const _0x2ba845=_0x42bb9f,{sheetName:_0x3a5697,range:_0x1efe8f,unitId:_0x1e7627}=_0xf2d832,_0x325805=this['_univerInstanceService'][_0x2ba845(0x264)](_0x1e7627);if(!_0x325805)return console[_0x2ba845(0x1e6)](_0x2ba845(0x292)),{'header':[],'data':[]};const _0x139a64=_0x325805['getSheetBySheetName'](_0x3a5697),_0x3f28a1=_0x139a64[_0x2ba845(0x102)](),{startRow:_0x771a3f,startColumn:_0x5a6b3d,endRow:_0x5453d3,endColumn:_0x31b8f4}=this['getRangeStartEndInfo'](_0x1efe8f,_0x139a64),_0x17a634=_0x325805['getStyles'](),_0x1eba76=[],_0x112d63=[],_0x546fee={};for(let _0x193bd5=_0x771a3f;_0x193bd5<=_0x5453d3;_0x193bd5++){const _0x34a222=[];for(let _0x3330d0=_0x5a6b3d;_0x3330d0<=_0x31b8f4;_0x3330d0++){const _0x3ab1bb=_0x3f28a1['getValue'](_0x193bd5,_0x3330d0);_0x193bd5===_0x771a3f?_0x1eba76[_0x2ba845(0x364)](_0x3ab1bb==null?null:String(_0x3ab1bb['v'])):_0x34a222[_0x2ba845(0x364)](this[_0x2ba845(0x2fb)](_0x3ab1bb,_0x17a634,_0x546fee));}_0x112d63[_0x2ba845(0x364)](_0x34a222);}return{'header':_0x1eba76,'data':_0x112d63};}[_0x42bb9f(0x90)](){const _0x573810=_0x42bb9f;return super[_0x573810(0x90)]();}[_0x42bb9f(0x9a)](_0x4a1cb5){const _0x5a1500=_0x42bb9f;super[_0x5a1500(0x9a)](_0x4a1cb5),this[_0x5a1500(0x284)]();}[_0x42bb9f(0x10c)](){const _0x442e1a=_0x42bb9f;super[_0x442e1a(0x10c)](),this[_0x442e1a(0xc7)]={},this[_0x442e1a(0x2c5)]=null;}}const _0x38ec2e=_0x1a1a04=>{const _0x45aa20=_0x42bb9f,{targetCellInfo:_0x410838}=_0x1a1a04,{matrixCache:_0x5dd102,rangesCache:_0x39e60a}=_0x3dd3c1({'filter':_0x45aa20(0x328),'row':_0x45aa20(0x1d7),'column':_0x45aa20(0x2b9),'values':_0x45aa20(0x2af)},_0x410838),_0x503bfb=new _0x288eb9[(_0x45aa20(0x280))]();return _0x5dd102['forValue']((_0x52ba31,_0x564e51,_0x30637a)=>{_0x503bfb['setValue'](_0x52ba31,_0x564e51,_0x30637a);}),{'matrix':_0x503bfb,'rangesCache':_0x39e60a};},_0x52b779=_0x30e9a4=>{const _0x24e87a=_0x42bb9f;let _0x2c18bd;if(_0x30e9a4!=null&&_0x30e9a4['v']||(_0x30e9a4==null?void 0x0:_0x30e9a4['v'])===0x0){_0x2c18bd||(_0x2c18bd={});const _0xbeb86=_0x350af0(_0x30e9a4['v']);typeof _0xbeb86=='number'?_0x2c18bd['t']=_0x288eb9[_0x24e87a(0x3ab)]['NUMBER']:typeof _0xbeb86==_0x24e87a(0x16e)&&(_0x2c18bd['t']=_0x288eb9[_0x24e87a(0x3ab)][_0x24e87a(0x38c)]),_0x2c18bd['v']=_0xbeb86;}return _0x2c18bd;},_0x41af84=(_0x4a99d7,_0x2a6cb5,_0x1b669e)=>{const _0x13a441=_0x42bb9f;var _0x58d132,_0x50a5e2,_0xd14d13,_0x35155c,_0x57a989,_0x13ae33,_0x369a80,_0x223e5b,_0x285cb2,_0xc81d82,_0x413bc7,_0x7fcac3;const {cornerView:_0x1209ae,rowView:_0x570450,colView:_0x217b7a,dataView:_0x5db296,pageView:_0x5e6a91,formatMap:_0x2d1247}=_0x4a99d7,{row:_0xbf16d8,col:_0x5ef992}=_0x2a6cb5,_0x5eaf0a=new _0x288eb9[(_0x13a441(0x280))]();let _0x5ca665=_0xbf16d8,_0x3f0669=_0x5ef992;Object[_0x13a441(0x237)](_0x5e6a91[_0x13a441(0x2c4)])['forEach'](_0x1ef1d8=>{const _0x109388=_0x13a441;Object[_0x109388(0x237)](_0x5e6a91['data'][Number(_0x1ef1d8)])[_0x109388(0x36d)](_0x3ea650=>{const _0x223fd0=_0x109388,_0x327091={..._0x5e6a91[_0x223fd0(0x2c4)][Number(_0x1ef1d8)][Number(_0x3ea650)]};_0x5eaf0a[_0x223fd0(0x1bb)](Number(_0x1ef1d8)+_0x5ca665,Number(_0x3ea650)+_0x3f0669,_0x52b779(_0x327091));});});const _0x2344b5=Object[_0x13a441(0x237)](_0x5e6a91[_0x13a441(0x2c4)])[_0x13a441(0x8f)];_0x5ca665+=_0x2344b5+(_0x2344b5?_0x4bce21:0x0);const _0x18fc74=_0x1209ae['getRowCount'](),_0x40c1e2=_0x1209ae[_0x13a441(0x146)]();for(let _0x59504a=0x0;_0x59504a<_0x18fc74;_0x59504a++)for(let _0x15392c=0x0;_0x15392c<_0x40c1e2;_0x15392c++){const _0x5740a2={...(_0x50a5e2=(_0x58d132=_0x1209ae['data'])==null?void 0x0:_0x58d132[_0x59504a])==null?void 0x0:_0x50a5e2[_0x15392c]};_0x5740a2&&((_0xd14d13=_0x570450['headerMap'][_0x15392c])!=null&&_0xd14d13[_0x13a441(0x278)])&&_0x15392c===_0x40c1e2-0x1&&_0x59504a===_0x18fc74-0x1&&(_0x5740a2['v']=''+_0x1b669e[_0x13a441(0xed)]),_0x5eaf0a[_0x13a441(0x1bb)](_0x59504a+_0x5ca665,_0x15392c+_0x3f0669,_0x52b779(_0x5740a2));}_0x3f0669+=_0x40c1e2;const _0xb918bf=_0x217b7a[_0x13a441(0x15f)],_0x21238b=_0x217b7a[_0x13a441(0x1e9)]()>=0x0?_0x217b7a['getLastRow']()+0x1:0x0,_0x4b1701=_0x217b7a[_0x13a441(0xf0)]()>=0x0?_0x217b7a[_0x13a441(0xf0)]()+0x1:0x0;for(let _0x1b6205=0x0;_0x1b6205<_0x4b1701;_0x1b6205++)for(let _0x2dc50f=0x0;_0x2dc50f<_0x21238b;_0x2dc50f++){const _0xe95b27={...(_0x57a989=(_0x35155c=_0x217b7a[_0x13a441(0x2c4)])==null?void 0x0:_0x35155c[_0x1b6205])==null?void 0x0:_0x57a989[_0x2dc50f]},_0x47851=(_0x13ae33=_0xb918bf[_0x1b6205])==null?void 0x0:_0x13ae33[_0x13a441(0x11e)],_0x218c3b=_0x2d1247[_0x47851];_0xe95b27&&(_0xe95b27['v']=_0x2ee935(_0xe95b27,_0x1b6205===0x0&&((_0x369a80=_0x217b7a[_0x13a441(0x25a)](_0x2dc50f+0x1))==null?void 0x0:_0x369a80[_0x13a441(0x278)]),_0x218c3b,_0x1b669e)),_0x5eaf0a[_0x13a441(0x1bb)](_0x1b6205+_0x5ca665,_0x2dc50f+_0x3f0669,_0x52b779(_0xe95b27));}_0x5ca665+=_0x18fc74;const _0x43bdb3=_0x570450[_0x13a441(0x15f)],_0x20bf3c=_0x570450[_0x13a441(0x1e9)]()>=0x0?_0x570450[_0x13a441(0x1e9)]()+0x1:0x0,_0x1b76c4=_0x570450[_0x13a441(0xf0)]()>=0x0?_0x570450['getLastCol']()+0x1:0x0;for(let _0x50af20=0x0;_0x50af20<_0x20bf3c;_0x50af20++)for(let _0xeef3c=0x0;_0xeef3c<_0x1b76c4;_0xeef3c++){const _0x743bbe={...(_0x285cb2=(_0x223e5b=_0x570450[_0x13a441(0x2c4)])==null?void 0x0:_0x223e5b[_0x50af20])==null?void 0x0:_0x285cb2[_0xeef3c]},_0x55df4d=(_0xc81d82=_0x43bdb3[_0xeef3c])==null?void 0x0:_0xc81d82[_0x13a441(0x11e)],_0x525fe3=_0x2d1247[_0x55df4d];_0x743bbe&&(_0x743bbe['v']=_0x2ee935(_0x743bbe,!0x1,_0x525fe3,_0x1b669e)),_0x5eaf0a['setValue'](_0x50af20+_0x5ca665,_0xeef3c+_0x5ef992,_0x52b779(_0x743bbe));}const _0x395fd5=_0x5db296[_0x13a441(0xec)](),_0xc212fd=_0x5db296[_0x13a441(0x146)]();for(let _0x549a9d=0x0;_0x549a9d<_0x395fd5;_0x549a9d++)for(let _0x397282=0x0;_0x397282<_0xc212fd;_0x397282++){const _0x3045bc={...(_0x7fcac3=(_0x413bc7=_0x5db296['data'])==null?void 0x0:_0x413bc7[_0x549a9d])==null?void 0x0:_0x7fcac3[_0x397282]};_0x5eaf0a['setValue'](_0x549a9d+_0x5ca665,_0x397282+_0x3f0669,_0x52b779(_0x3045bc));}return _0x5eaf0a;},_0x444729=_0x23d11d=>{const _0x5e3679=_0x42bb9f,{view:_0x2274c1,targetCellInfo:_0x307d0e,isEmpty:_0x4310d8,textInfo:_0x43b4df}=_0x23d11d;if(_0x4310d8)return _0x38ec2e(_0x23d11d);const {pageView:_0x3e5b28,cornerView:_0x41789c,rowView:_0x443697,colView:_0x2d7d50,dataView:_0x40e6e6}=_0x2274c1,_0x45b9aa=_0x2b2601(_0x307d0e,_0x3e5b28,!0x0),_0x5f31f0=_0x3e5b28['lastRow']>=0x0?_0x3e5b28[_0x5e3679(0x1ef)]+0x1:0x0,_0x49dc8d=_0x41789c[_0x5e3679(0xec)](),_0x55ed01=_0x41789c[_0x5e3679(0x146)](),_0x555562=_0x45b9aa[_0x5e3679(0x8f)]>0x0?_0x4bce21:0x0,_0x409ae0=_0x2b2601({'row':_0x307d0e[_0x5e3679(0x392)]+_0x5f31f0+_0x555562,'col':_0x307d0e[_0x5e3679(0x113)]},_0x41789c,!0x1,!0x1),_0x586f09=_0x2b2601({'row':_0x307d0e['row']+_0x5f31f0+_0x555562+_0x49dc8d,'col':_0x307d0e[_0x5e3679(0x113)]},_0x443697,!0x1,!0x0),_0x5a9e5e=_0x2b2601({'row':_0x307d0e[_0x5e3679(0x392)]+_0x5f31f0+_0x555562,'col':_0x307d0e[_0x5e3679(0x113)]+_0x55ed01},_0x2d7d50,!0x1,!0x0),_0x24c632=_0x2b2601({'row':_0x307d0e['row']+_0x5f31f0+_0x555562+_0x49dc8d,'col':_0x307d0e[_0x5e3679(0x113)]+_0x55ed01},_0x40e6e6,!0x1,!0x1),_0x29b6aa={'rowRanges':_0x586f09,'colRanges':_0x5a9e5e,'cornerRanges':_0x409ae0,'dataRanges':_0x24c632,'pageRanges':_0x45b9aa};return{'matrix':_0x41af84(_0x2274c1,_0x307d0e,_0x43b4df),'rangesCache':_0x29b6aa};};var _0x5983a4=Object[_0x42bb9f(0x235)],_0x5191e8=(_0x28a9b4,_0x3c4ee9,_0x292e3e,_0x3d9282)=>{const _0xdf2306=_0x42bb9f;for(var _0x20e4a1=_0x3d9282>0x1?void 0x0:_0x3d9282?_0x5983a4(_0x3c4ee9,_0x292e3e):_0x3c4ee9,_0x34c97c=_0x28a9b4[_0xdf2306(0x8f)]-0x1,_0x34faea;_0x34c97c>=0x0;_0x34c97c--)(_0x34faea=_0x28a9b4[_0x34c97c])&&(_0x20e4a1=_0x34faea(_0x20e4a1)||_0x20e4a1);return _0x20e4a1;},_0x228e71=(_0x129e40,_0x20a59e)=>(_0x51dbb3,_0x37f879)=>_0x20a59e(_0x51dbb3,_0x37f879,_0x129e40);_0x5bf755[_0x42bb9f(0x1ae)]=class extends _0x288eb9['Disposable']{constructor(_0x4e820b,_0x278523,_0x14b244,_0x42c205,_0x5e4990){const _0x55a1d6=_0x42bb9f;super(),_0x4fb07d(this,'_model',new Map()),_0x4fb07d(this,_0x55a1d6(0x168),new Map()),_0x4fb07d(this,_0x55a1d6(0x255),new Map()),_0x4fb07d(this,'_textInfo'),_0x4fb07d(this,'_collectionChange$',new _0x4e0a85[(_0x55a1d6(0x2bd))]()),_0x4fb07d(this,'collectionChange$',this[_0x55a1d6(0x26c)][_0x55a1d6(0x2f1)]()),_0x4fb07d(this,_0x55a1d6(0x126),new _0x4e0a85[(_0x55a1d6(0x2bd))]()),_0x4fb07d(this,_0x55a1d6(0xf7),this['_viewData$']['asObservable']()),_0x4fb07d(this,_0x55a1d6(0x150),new _0x4e0a85[(_0x55a1d6(0x2bd))]()),_0x4fb07d(this,_0x55a1d6(0xab),this['_fieldsCollectionChange$'][_0x55a1d6(0x2f1)]()),_0x4fb07d(this,_0x55a1d6(0x295),new Map()),_0x4fb07d(this,_0x55a1d6(0x11a),[]),_0x4fb07d(this,_0x55a1d6(0x230),new Map()),(this[_0x55a1d6(0x39e)]=_0x4e820b,this[_0x55a1d6(0x1d4)]=_0x278523,this[_0x55a1d6(0x2d4)]=_0x14b244,this[_0x55a1d6(0x370)]=_0x42c205,this[_0x55a1d6(0x139)]=_0x5e4990,this['_initSnapshot']());}['getTextInfo'](){const _0x5dc527=_0x42bb9f;return this['_textInfo']?this[_0x5dc527(0x332)]:_0x183b6d;}['setTextInfo'](_0x3891ad){this['_textInfo']=_0x3891ad;}[_0x42bb9f(0xf5)](_0x1b83c2){const _0x5e5cb4=_0x42bb9f;var _0x2e0fa0;const {from:_0x38e620,to:_0x226e92,unitId:_0x1bfe35,fromRange:_0x8b0495,toRange:_0x47a5a6}=_0x1b83c2;if(_0x38e620&&_0x226e92){const _0x3b2136=this['getDataFieldManager'](_0x1bfe35),_0x1447a2=this[_0x5e5cb4(0x27d)][_0x5e5cb4(0x239)](_0x1bfe35),_0x2bd5a3=(_0x2e0fa0=this[_0x5e5cb4(0x1d4)]['getUnit'](_0x1bfe35))==null?void 0x0:_0x2e0fa0['getSheetBySheetId'](_0x226e92[_0x5e5cb4(0x179)]);if(!_0x1447a2||!_0x2bd5a3)return;const _0x1568cf=_0x2bd5a3==null?void 0x0:_0x2bd5a3[_0x5e5cb4(0x2e8)]();for(const [_0x343eb1,_0x4f0eac]of _0x1447a2[_0x5e5cb4(0xa1)]())for(const [_0x59d219,_0x118185]of _0x4f0eac[_0x5e5cb4(0xa1)]()){const {sourceRangeInfo:_0x56922b}=_0x118185;if(_0x56922b[_0x5e5cb4(0x360)]===_0x1bfe35&&_0x56922b['subUnitId']===_0x38e620[_0x5e5cb4(0x179)]&&_0x288eb9[_0x5e5cb4(0x25d)][_0x5e5cb4(0x2f4)](_0x8b0495,_0x56922b['range'])){const _0x42c052={'row':_0x56922b[_0x5e5cb4(0x272)][_0x5e5cb4(0x36a)]-_0x8b0495[_0x5e5cb4(0x36a)],'col':_0x56922b['range'][_0x5e5cb4(0x1c9)]-_0x8b0495['startColumn']},_0x329c15={'unitId':_0x1bfe35,'subUnitId':_0x226e92[_0x5e5cb4(0x179)],'sheetName':_0x1568cf,'range':{'startRow':_0x47a5a6[_0x5e5cb4(0x36a)]+_0x42c052[_0x5e5cb4(0x392)],'endRow':_0x47a5a6['startRow']+_0x42c052[_0x5e5cb4(0x392)]+_0x56922b[_0x5e5cb4(0x272)]['endRow']-_0x56922b[_0x5e5cb4(0x272)][_0x5e5cb4(0x36a)],'startColumn':_0x47a5a6[_0x5e5cb4(0x1c9)]+_0x42c052[_0x5e5cb4(0x113)],'endColumn':_0x47a5a6[_0x5e5cb4(0x1c9)]+_0x42c052[_0x5e5cb4(0x113)]+_0x56922b['range'][_0x5e5cb4(0x1f1)]-_0x56922b['range'][_0x5e5cb4(0x1c9)]}};_0x3b2136[_0x5e5cb4(0xf5)](_0x59d219,_0x329c15);const _0x44c0c0={..._0x118185,'sourceRangeInfo':_0x329c15};this[_0x5e5cb4(0x35a)](_0x1bfe35,_0x226e92[_0x5e5cb4(0x179)],_0x59d219,_0x44c0c0),this[_0x5e5cb4(0x233)]({'unitId':_0x1bfe35,'token':_0x59d219,'type':_0x521660[_0x5e5cb4(0x307)],'oldSourceRangeInfo':_0x56922b,'dataRangeInfo':_0x329c15,'targetCellInfo':_0x118185['targetCellInfo']}),this[_0x5e5cb4(0x214)]({'unitId':_0x1bfe35,'subUnitId':_0x226e92[_0x5e5cb4(0x179)],'oldSubUnitId':_0x343eb1,'pivotTableId':_0x59d219,'pivotTableConfig':_0x44c0c0,'collectionConfig':_0x3b2136['toJSON']()});}}}}[_0x42bb9f(0x233)](_0x5b6b7d){const _0x501e7b=_0x42bb9f;this[_0x501e7b(0x26c)]['next'](_0x5b6b7d);}[_0x42bb9f(0x138)](_0x476b2a){const _0xec0dd=_0x42bb9f;let _0x2ae83a=this[_0xec0dd(0x295)][_0xec0dd(0x239)](_0x476b2a);return _0x2ae83a||(_0x2ae83a=new _0x1d076f(this,this[_0xec0dd(0x1d4)]),this[_0xec0dd(0x295)][_0xec0dd(0x22c)](_0x476b2a,_0x2ae83a)),_0x2ae83a;}[_0x42bb9f(0x2c8)](_0x53b043,_0x3db87a){const _0x53b14d=_0x42bb9f;return this[_0x53b14d(0x138)](_0x53b043)['collections'][_0x3db87a];}[_0x42bb9f(0x22b)](_0x4d940e,_0x14fa1d,_0x34cd42){const _0x3a17af=_0x42bb9f;return this[_0x3a17af(0x138)](_0x4d940e)['getUpdateRangeDeleteIds'](_0x14fa1d,_0x34cd42);}[_0x42bb9f(0x225)](_0x525e49,_0x2851eb){const _0x9686ad=_0x42bb9f;let _0x748bf2=this[_0x9686ad(0x27d)][_0x9686ad(0x239)](_0x525e49);_0x748bf2||(_0x748bf2=new Map(),this[_0x9686ad(0x27d)]['set'](_0x525e49,_0x748bf2));let _0x3622e1=_0x748bf2[_0x9686ad(0x239)](_0x2851eb);return _0x3622e1||(_0x3622e1=new Map(),_0x748bf2[_0x9686ad(0x22c)](_0x2851eb,_0x3622e1)),_0x3622e1;}[_0x42bb9f(0x35a)](_0x289c71,_0x3a32ae,_0x495150,_0x2faf82){const _0x459e87=_0x42bb9f;this[_0x459e87(0x225)](_0x289c71,_0x3a32ae)[_0x459e87(0x22c)](_0x495150,_0x2faf82);}['_deleteModelCache'](_0x155cad,_0x23b04e,_0x1a9529){const _0x12f934=_0x42bb9f;var _0x1579b9,_0x3df6a2,_0x34ed02,_0x2fd3c0;((_0x3df6a2=(_0x1579b9=this['_model'][_0x12f934(0x239)](_0x155cad))==null?void 0x0:_0x1579b9[_0x12f934(0x239)](_0x23b04e))==null?void 0x0:_0x3df6a2[_0x12f934(0x239)](_0x1a9529))&&((_0x2fd3c0=(_0x34ed02=this[_0x12f934(0x27d)]['get'](_0x155cad))==null?void 0x0:_0x34ed02['get'](_0x23b04e))==null||_0x2fd3c0['delete'](_0x1a9529));}['_updatePivotTableInstanceCache'](_0x18c177,_0x336fc8){const _0x8fa8f4=_0x42bb9f;this['_pivotTableInstanceCache'][_0x8fa8f4(0x22c)](_0x18c177,_0x336fc8);}[_0x42bb9f(0x9f)](_0x444f50){const _0x1cf0c9=_0x42bb9f;this[_0x1cf0c9(0x168)][_0x1cf0c9(0x1ca)](_0x444f50);}[_0x42bb9f(0x94)](_0x1c0daa,_0x47b2b5){const _0x4ef1f8=_0x42bb9f;let _0x18353f=this[_0x4ef1f8(0x255)]['get'](_0x1c0daa);_0x18353f||(_0x18353f=new Map(),this[_0x4ef1f8(0x255)][_0x4ef1f8(0x22c)](_0x1c0daa,_0x18353f));let _0x438681=_0x18353f[_0x4ef1f8(0x239)](_0x47b2b5);return _0x438681||(_0x438681=new Map(),_0x18353f['set'](_0x47b2b5,_0x438681)),_0x438681;}[_0x42bb9f(0x214)](_0x29e6da){const _0x1698a8=_0x42bb9f,{unitId:_0x3f9e1b,subUnitId:_0x515e08,pivotTableId:_0x38382e,pivotTableConfig:_0x394824,collectionConfig:_0x4372fd}=_0x29e6da,_0x15509b={'unitId':_0x3f9e1b,'subUnitId':_0x515e08,'oldSubUnitId':_0x515e08,'pivotTableId':_0x38382e,'pivotTableConfig':_0x394824,'collectionConfig':_0x4372fd};this['_commandService'][_0x1698a8(0x9e)](_0x5d1784['id'],_0x15509b,{'onlyLocal':!0x0});}[_0x42bb9f(0x386)](_0x52084c,_0x152e77,_0x1c3749,_0x27e809,_0x3572f0,_0x30f187,_0x2e6a56,_0x5b3ff7=!0x1){const _0x41ea55=_0x42bb9f;var _0x5647b9;this[_0x41ea55(0x370)]['executeCommand'](_0x1b400c['id'],{'single':{'unitId':_0x52084c,'subUnitId':_0x152e77,'type':_0x1c3749,'pivotTableId':_0x27e809,'view':_0x3572f0,'pivotConfig':_0x30f187},'collectionConfig':{[_0x52084c]:_0x2e6a56}},{'onlyLocal':!0x0});const _0x4f44c9=!!((_0x5647b9=this[_0x41ea55(0x25c)](_0x27e809))!=null&&_0x5647b9[_0x41ea55(0x279)]()),_0x36ed75=this[_0x41ea55(0x9b)](_0x52084c,_0x152e77,_0x27e809);_0x36ed75&&this[_0x41ea55(0xb9)]({'view':_0x3572f0,'pivotTableId':_0x27e809,'textInfo':this[_0x41ea55(0x128)](),'isEmpty':_0x4f44c9,'targetCellInfo':_0x36ed75['targetCellInfo']},_0x5b3ff7);}[_0x42bb9f(0xb9)](_0x174e22,_0x393d58){const _0x4aa49a=_0x42bb9f,{targetCellInfo:_0x47c2cb,pivotTableId:_0x19a9e3}=_0x174e22,{unitId:_0x3e8ff7,subUnitId:_0x43d495}=_0x47c2cb,_0x4dccce=this[_0x4aa49a(0x94)](_0x3e8ff7,_0x43d495),_0x5cef25=_0x4dccce[_0x4aa49a(0x239)](_0x19a9e3);let _0x39ac99,_0x50de1c;_0x5cef25&&(_0x39ac99=_0x5cef25[_0x4aa49a(0x1a6)],_0x50de1c=_0x5cef25[_0x4aa49a(0x2c6)]);const {rangesCache:_0x4511ae,matrix:_0x356704}=_0x444729(_0x174e22);_0x4dccce[_0x4aa49a(0x22c)](_0x19a9e3,{'rangeCache':_0x4511ae,'matrix':_0x356704,'oldMatrix':_0x50de1c,'oldRangeCache':_0x39ac99}),_0x393d58||this[_0x4aa49a(0x126)][_0x4aa49a(0x287)]({'unitId':_0x3e8ff7,'subUnitId':_0x43d495,'pivotTableId':_0x19a9e3});}[_0x42bb9f(0xdb)](_0x38cd72,_0x2d401b,_0x37e514,_0x3e188d,_0x3dc00e){const _0x29e4de=_0x42bb9f;this['_updateModelCache'](_0x38cd72,_0x2d401b,_0x37e514,_0x3dc00e),this[_0x29e4de(0x384)](_0x37e514,_0x3e188d);}['removePivotTable'](_0x3157e5,_0x3341d7,_0x5f4ca0){const _0x501c10=_0x42bb9f,_0x329e8b=this['getDataFieldManager'](_0x3157e5);_0x329e8b[_0x501c10(0x260)](_0x5f4ca0)['forEach'](_0x1ce8a6=>{const _0x4db7ee=_0x501c10;_0x329e8b[_0x4db7ee(0x2a8)](_0x1ce8a6);}),this[_0x501c10(0x28b)](_0x3157e5,_0x5f4ca0),this[_0x501c10(0x131)](_0x3157e5,_0x3341d7,_0x5f4ca0),this['_deletePivotTableInstanceCache'](_0x5f4ca0);}['setPivotTable'](_0x2c0d4c,_0x5bb9b8,_0xb1b814,_0x270222){const _0x507fe0=_0x42bb9f;this[_0x507fe0(0x35a)](_0x2c0d4c,_0x5bb9b8,_0xb1b814,_0x270222);}[_0x42bb9f(0x9b)](_0x18fbd0,_0x3d7814,_0x548488){const _0x281c38=_0x42bb9f;var _0x34d2a3,_0xcfd604;const _0x2f7389=(_0xcfd604=(_0x34d2a3=this[_0x281c38(0x27d)]['get'](_0x18fbd0))==null?void 0x0:_0x34d2a3[_0x281c38(0x239)](_0x3d7814))==null?void 0x0:_0xcfd604['get'](_0x548488);if(_0x2f7389)return _0x2f7389;}[_0x42bb9f(0xa0)](_0x365038,_0xcdb5e,_0x584b9f){const _0x416905=_0x42bb9f;var _0x21bbf5,_0x217e1a;const _0x1aad9d=(_0x217e1a=(_0x21bbf5=this[_0x416905(0x27d)][_0x416905(0x239)](_0x365038))==null?void 0x0:_0x21bbf5[_0x416905(0x239)](_0xcdb5e))==null?void 0x0:_0x217e1a[_0x416905(0x239)](_0x584b9f);if(_0x1aad9d)return _0x1aad9d[_0x416905(0x313)];}[_0x42bb9f(0x25c)](_0x3c5a0d){const _0x3ca5d8=_0x42bb9f;return this[_0x3ca5d8(0x168)][_0x3ca5d8(0x239)](_0x3c5a0d);}[_0x42bb9f(0x1b6)](_0x5bd961){const _0x10fb60=_0x42bb9f;this['_model'][_0x10fb60(0x1ca)](_0x5bd961);const _0x46be8d=this[_0x10fb60(0x295)][_0x10fb60(0x239)](_0x5bd961);_0x46be8d&&(_0x46be8d[_0x10fb60(0x10c)](),this[_0x10fb60(0x295)][_0x10fb60(0x1ca)](_0x5bd961)),this[_0x10fb60(0x255)]['delete'](_0x5bd961),this[_0x10fb60(0x11a)][_0x10fb60(0x36d)](_0x4ff721=>{const _0x1bb389=_0x10fb60;_0x4ff721[_0x1bb389(0x1b6)](_0x5bd961);});}[_0x42bb9f(0x3a0)](_0x1a572f,_0x373a1d,_0x37c488,_0x5eb33f){const _0x11fe7a=_0x42bb9f;return this[_0x11fe7a(0x138)](_0x37c488[_0x11fe7a(0x360)])[_0x11fe7a(0x3a0)](_0x1a572f,_0x373a1d,_0x37c488,_0x5eb33f);}['createCollectionWithDataRange'](_0x189559){const _0x974af5=_0x42bb9f;return this['getDataFieldManager'](_0x189559[_0x974af5(0x360)])[_0x974af5(0x35b)](_0x189559);}[_0x42bb9f(0x8b)](_0x1bb2d2,_0x515b65,_0x323874){const _0x336e09=_0x42bb9f;this[_0x336e09(0x138)](_0x323874[_0x336e09(0x360)])['refreshData'](_0x1bb2d2,_0x515b65,_0x323874);}['removeDataField'](_0x27dac5,_0x5bfd2f){const _0x1796a9=_0x42bb9f;this[_0x1796a9(0x138)](_0x27dac5)['deleteDataField'](_0x5bfd2f);}[_0x42bb9f(0x28b)](_0x107a64,_0x26c38f){const _0x1b7ff3=_0x42bb9f;this[_0x1b7ff3(0x138)](_0x107a64)['removeCollectionImp'](_0x26c38f);}[_0x42bb9f(0x244)](_0x52a05b,_0x16af57){const _0x2deccf=_0x42bb9f;var _0xaed1fd;return(_0xaed1fd=this[_0x2deccf(0x27d)][_0x2deccf(0x239)](_0x52a05b))==null?void 0x0:_0xaed1fd[_0x2deccf(0x239)](_0x16af57);}['getTargetByPivotId'](_0x21937f){const _0x4b8cc5=_0x42bb9f;for(const [_0x40d182,_0x21f92d]of this[_0x4b8cc5(0x27d)][_0x4b8cc5(0xa1)]())for(const [_0x10e62c,_0x4bc9ee]of _0x21f92d[_0x4b8cc5(0xa1)]())if(_0x4bc9ee[_0x4b8cc5(0xde)](_0x21937f))return{'unitId':_0x40d182,'subUnitId':_0x10e62c};return null;}[_0x42bb9f(0x107)](_0x2ec4b5,_0x333611,_0x226b80,_0x4ecf91){const _0x6cddbe=_0x42bb9f,_0x4be058=this['_ensureViewDataMap'](_0x2ec4b5,_0x333611);_0x4ecf91?_0x4be058[_0x6cddbe(0x22c)](_0x226b80,_0x4ecf91):_0x4be058[_0x6cddbe(0x1ca)](_0x226b80),this['_viewData$'][_0x6cddbe(0x287)]({'unitId':_0x2ec4b5,'subUnitId':_0x333611,'pivotTableId':_0x226b80});}[_0x42bb9f(0x10c)](){const _0x56fab2=_0x42bb9f;super[_0x56fab2(0x10c)]();}[_0x42bb9f(0x198)](_0x2c8df2,_0x5e6d23,_0x6006ca){const _0x111a3b=_0x42bb9f;var _0xc9c535,_0x30a370;const _0x558f94=(_0x30a370=(_0xc9c535=this[_0x111a3b(0x255)]['get'](_0x2c8df2))==null?void 0x0:_0xc9c535[_0x111a3b(0x239)](_0x5e6d23))==null?void 0x0:_0x30a370[_0x111a3b(0x239)](_0x6006ca);return _0x558f94||null;}[_0x42bb9f(0x1d8)](_0x330210){this['updateDirtyPivotTable'](_0x330210);}[_0x42bb9f(0x367)](_0x41b5ec){const _0x1c3f7d=_0x42bb9f,{token:_0x3b6f6b,unitId:_0x438df8,subUnitId:_0x47511a}=_0x41b5ec,_0x3422ed=_0x438df8+'-'+_0x47511a+'-'+_0x3b6f6b;this[_0x1c3f7d(0x230)][_0x1c3f7d(0x239)](_0x3422ed)&&clearTimeout(this['_queryingMap']['get'](_0x3422ed));const _0x23371f=setTimeout(()=>{const _0x3ee487=_0x1c3f7d;this[_0x3ee487(0x308)](_0x41b5ec),this[_0x3ee487(0x230)]['delete'](_0x3422ed);},_0x29e418);this['_queryingMap'][_0x1c3f7d(0x22c)](_0x3422ed,_0x23371f);}[_0x42bb9f(0x308)](_0x381276){const _0x48ca0f=_0x42bb9f,{unitId:_0x12cc9a,subUnitId:_0x49376a,token:_0x590fc9,type:_0x3c5a9d,pivotConfig:_0x13b8d9}=_0x381276,_0x54bbbc=this[_0x48ca0f(0x25c)](_0x590fc9),_0x3f94ef=_0x54bbbc==null?void 0x0:_0x54bbbc[_0x48ca0f(0x26f)](),_0x325064=_0x13b8d9!=null?_0x13b8d9:this[_0x48ca0f(0x9b)](_0x12cc9a,_0x49376a,_0x590fc9);_0x325064&&(_0x325064[_0x48ca0f(0x279)]=!!(_0x54bbbc!=null&&_0x54bbbc[_0x48ca0f(0x279)]())),(_0x3f94ef||_0x3c5a9d===_0x2de5fe['Delete'])&&this[_0x48ca0f(0x386)](_0x12cc9a,_0x49376a,_0x3c5a9d,_0x590fc9,_0x3f94ef,_0x325064,this[_0x48ca0f(0x138)](_0x12cc9a)[_0x48ca0f(0x90)]());}[_0x42bb9f(0x90)](_0x28e138){const _0x4bf223=_0x42bb9f,_0x449959={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x4bf223(0x138)](_0x28e138)&&(_0x449959[_0x4bf223(0x2d1)][_0x28e138]=this[_0x4bf223(0x138)](_0x28e138)[_0x4bf223(0x90)]()),this[_0x4bf223(0x27d)][_0x4bf223(0x239)](_0x28e138)){_0x449959['pivotTableConfigs'][_0x28e138]={};const _0x2b9372=this[_0x4bf223(0x27d)][_0x4bf223(0x239)](_0x28e138);_0x2b9372!=null&&_0x2b9372[_0x4bf223(0x1f6)]&&[..._0x2b9372[_0x4bf223(0x237)]()]['forEach'](_0x1345b1=>{const _0x1ba1a0=_0x4bf223,_0x8b3d42=_0x2b9372[_0x1ba1a0(0x239)](_0x1345b1);_0x8b3d42!=null&&_0x8b3d42[_0x1ba1a0(0x1f6)]&&(_0x449959[_0x1ba1a0(0x1cf)][_0x28e138][_0x1345b1]={},[..._0x8b3d42['keys']()][_0x1ba1a0(0x36d)](_0x520d88=>{const _0x34f99e=_0x1ba1a0,_0x51b6fa=_0x8b3d42[_0x34f99e(0x239)](_0x520d88);_0x51b6fa&&(_0x449959[_0x34f99e(0x1cf)][_0x28e138][_0x1345b1][_0x520d88]=_0x51b6fa);}));});}return _0x449959;}[_0x42bb9f(0x9a)](_0x317fd7){const _0x59e984=_0x42bb9f;var _0x22ce22;const {dataFieldManagerConfig:_0x54a652,pivotTableConfigs:_0x184b71}=_0x317fd7;_0x54a652&&Object['keys'](_0x54a652)[_0x59e984(0x36d)](_0x3141c1=>{const _0x49f5f4=_0x59e984;this['getDataFieldManager'](_0x3141c1)[_0x49f5f4(0x9a)](_0x54a652[_0x3141c1]);});const _0x270de7=[];if(_0x184b71){const _0x4fca42=(_0x22ce22=this[_0x59e984(0x39e)][_0x59e984(0x239)](_0x288eb9[_0x59e984(0xd5)])[_0x59e984(0x36b)](_0x1f3f39[_0x59e984(0x18e)]))!=null?_0x22ce22:{},{ls:_0x4b6ee0,pbk:_0x2a6140}=_0x4fca42,_0x21ce49=_0x52b3f8(_0x2e2372,_0x4b6ee0,_0x2a6140)[_0x59e984(0x18d)];Object['keys'](_0x184b71)[_0x59e984(0x36d)](_0x5dc19c=>{const _0x49c6d1=_0x59e984;let _0x222531=0x0;const _0x893bc8=_0x184b71[_0x5dc19c];Object[_0x49c6d1(0x237)](_0x893bc8)[_0x49c6d1(0x36d)](_0xc974e6=>{const _0x154d8e=_0x893bc8[_0xc974e6];Object['keys'](_0x154d8e)['forEach'](_0x22c3f8=>{const _0x2cbad5=_0x2df4,_0x11d198=_0x154d8e[_0x22c3f8];if(_0x11d198){if(_0x222531>=_0x21ce49)return;_0x222531++;const _0x4f13d4=this[_0x2cbad5(0x138)](_0x5dc19c),_0x10baf3=_0x4f13d4['collections'][_0x22c3f8],_0x3040eb=_0x10baf3[_0x2cbad5(0x15d)]();let _0x3ae8fd=0x0;const _0x3c11ac=[];for(const _0x3b822d of _0x3040eb){const _0x51306c=_0x10baf3['getFieldById'](_0x3b822d);if(_0x2bd302[_0x2cbad5(0x356)](_0x51306c)){const _0x442df9=_0x51306c[_0x2cbad5(0x32f)](),_0x4aa79e=_0x10baf3['getFieldById'](_0x442df9);_0x4aa79e&&_0x3c11ac['push']([_0x51306c,_0x4aa79e]);continue;}_0x4f13d4[_0x2cbad5(0x25b)](_0x3b822d,_0x11d198[_0x2cbad5(0x156)],_0x3ae8fd),_0x3ae8fd++;}_0x3c11ac[_0x2cbad5(0x36d)](([_0x4d5fcd,_0x1c19ed])=>{const _0x473457=_0x2cbad5;_0x4d5fcd[_0x473457(0x14a)](_0x1c19ed);});const _0x57609f=new _0x2bd302['PivotTable'](_0x10baf3);_0x57609f[_0x2cbad5(0x9a)](_0x11d198[_0x2cbad5(0x313)]),this['addPivotTable'](_0x5dc19c,_0xc974e6,_0x22c3f8,_0x57609f,_0x11d198);const _0x1e1035=_0x57609f[_0x2cbad5(0x26f)]();_0x270de7[_0x2cbad5(0x364)]({'unitId':_0x5dc19c,'subUnitId':_0xc974e6,'pivotTableId':_0x22c3f8,'view':_0x1e1035[_0x2cbad5(0x90)](),'pivotConfig':_0x11d198,'type':_0x2de5fe[_0x2cbad5(0xe6)]});const _0x357985=!!_0x57609f[_0x2cbad5(0x279)](),_0x44648c={'view':_0x1e1035,'pivotTableId':_0x22c3f8,'textInfo':this[_0x2cbad5(0x128)](),'isEmpty':_0x357985,'targetCellInfo':_0x11d198[_0x2cbad5(0x242)]};this[_0x2cbad5(0xb9)](_0x44648c,!0x1);}});});});}_0x54a652&&Object['keys'](_0x54a652)[_0x59e984(0x36d)](_0x1fedb5=>{const _0x3218ae=_0x59e984,_0x56452e=this[_0x3218ae(0x138)](_0x1fedb5);this['_fieldsCollectionChange$']['next'](_0x56452e[_0x3218ae(0x211)]);}),this['_commandService'][_0x59e984(0x9e)](_0x1b400c['id'],{'batch':_0x270de7,'collectionConfig':_0x54a652},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x36a873=_0x42bb9f;this[_0x36a873(0x148)](this[_0x36a873(0x139)][_0x36a873(0x2b3)]({'toJson':_0x1b3a2d=>JSON[_0x36a873(0x297)](this[_0x36a873(0x90)](_0x1b3a2d)),'parseJson':_0xc6a4c4=>{const _0x4e60f6=_0x36a873;if(!_0xc6a4c4)return{};try{return JSON[_0x4e60f6(0x24f)](_0xc6a4c4);}catch{return{};}},'businesses':[_0x288eb9[_0x36a873(0x175)][_0x36a873(0x197)]],'pluginName':_0xd0f9a3,'onLoad':(_0x14be4a,_0x5789cd)=>{const _0x50fb6f=_0x36a873;this[_0x50fb6f(0x9a)](_0x5789cd);},'onUnLoad':_0x44c967=>{const _0x17803a=_0x36a873;this[_0x17803a(0x1b6)](_0x44c967);}}));}},_0x5bf755[_0x42bb9f(0x1ae)]=_0x5191e8([_0x228e71(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9['Injector'])),_0x228e71(0x1,_0x288eb9['IUniverInstanceService']),_0x228e71(0x2,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9['LifecycleService'])),_0x228e71(0x3,_0x288eb9['ICommandService']),_0x228e71(0x4,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9['IResourceManagerService']))],_0x5bf755[_0x42bb9f(0x1ae)]);const _0x3f1ce0={0x0:{0x0:{'v':'filter','s':_0x2a3703}},0x2:{0x1:{'v':'','s':_0x2a3703},0x2:{'v':'','s':_0x2a3703},0x3:{'v':_0x42bb9f(0x1ce),'s':_0x2a3703},0x4:{'v':'','s':_0x2a3703},0x5:{'v':'','s':_0x2a3703}},0x3:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0x4:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0x5:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0x6:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0x7:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0x8:{0x0:{'v':_0x42bb9f(0x392),'s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':_0x42bb9f(0xe2),'s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0x9:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0xa:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0xb:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0xc:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}},0xd:{0x0:{'v':'','s':_0x2a3703},0x1:{'v':'','s':_0xd6e504},0x2:{'v':'','s':_0xd6e504},0x3:{'v':'','s':_0xd6e504},0x4:{'v':'','s':_0xd6e504},0x5:{'v':'','s':_0xd6e504}}},_0x4bbf18={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x3dd3c1=(_0x518f59,_0x553f61)=>{const _0x4f0b06=_0x42bb9f,_0x1094f6=new _0x288eb9['ObjectMatrix'](),_0x3abc73=new _0x288eb9['ObjectMatrix'](_0x3f1ce0),{row:_0x4a5a79,col:_0x41baf3}=_0x553f61;_0x3abc73[_0x4f0b06(0xbc)]((_0x2ff5ff,_0x2148e8,_0x326b1d)=>{const _0x37c4c9=_0x4f0b06;let _0x1e3251='';_0x326b1d['v']===_0x37c4c9(0xdc)?_0x1e3251=_0x518f59['filter']:_0x326b1d['v']===_0x37c4c9(0x392)?_0x1e3251=_0x518f59[_0x37c4c9(0x392)]:_0x326b1d['v']===_0x37c4c9(0x1ce)?_0x1e3251=_0x518f59[_0x37c4c9(0x1ce)]:_0x326b1d['v']===_0x37c4c9(0xe2)&&(_0x1e3251=_0x518f59[_0x37c4c9(0xe2)]),_0x1094f6[_0x37c4c9(0x1bb)](_0x2ff5ff+_0x4a5a79,_0x2148e8+_0x41baf3,{..._0x326b1d,'v':_0x1e3251});});const _0x5a449e=_0x288eb9[_0x4f0b06(0x91)][_0x4f0b06(0x38e)](_0x4bbf18);return Object[_0x4f0b06(0x237)](_0x4bbf18)['forEach'](_0x2df5d0=>{const _0x295d3a=_0x4f0b06;_0x5a449e[_0x2df5d0]=_0x4bbf18[_0x2df5d0][_0x295d3a(0x1d2)](_0x2ec388=>({..._0x2ec388,'startRow':_0x2ec388['startRow']+_0x4a5a79,'endRow':_0x2ec388[_0x295d3a(0x241)]+_0x4a5a79,'startColumn':_0x2ec388[_0x295d3a(0x1c9)]+_0x41baf3,'endColumn':_0x2ec388['endColumn']+_0x41baf3}));}),{'matrixCache':_0x1094f6,'rangesCache':_0x5a449e};};function _0x346465(_0x496b8e,_0x2b2757){const _0x54435b=_0x42bb9f;let _0x25209a='';const _0x1756fe=this[_0x54435b(0x128)]();switch(_0x2b2757){case _0x2bd302['PivotSubtotalTypeEnum'][_0x54435b(0x303)]:_0x25209a=_0x1756fe[_0x54435b(0xa6)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x18d)]:_0x25209a=_0x1756fe[_0x54435b(0x399)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x252)]:_0x25209a=_0x1756fe['sheets-pivot.countNumsName']+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x2e9)]:_0x25209a=_0x1756fe[_0x54435b(0x23c)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x1e7)]:_0x25209a=_0x1756fe[_0x54435b(0x3a1)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)]['product']:_0x25209a=_0x1756fe[_0x54435b(0x38f)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x381)]:_0x25209a=_0x1756fe[_0x54435b(0x1ac)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0xd8)]:_0x25209a=_0x1756fe[_0x54435b(0x2ee)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x1e8)]:_0x25209a=_0x1756fe[_0x54435b(0x30e)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0xc2)]:_0x25209a=_0x1756fe[_0x54435b(0x253)]+_0x496b8e;break;case _0x2bd302[_0x54435b(0x35c)][_0x54435b(0x2ec)]:_0x25209a=_0x1756fe['sheets-pivot.varpName']+_0x496b8e;break;default:_0x25209a=_0x496b8e;break;}return _0x25209a;}function _0x2bc413(_0x37dcc0,_0x3e7a9f,_0x1cb002,_0x348dfc,_0x1c0d9f){const _0x53ccca=_0x42bb9f;var _0xe0be8d,_0x216e28,_0x39a49e,_0x393909,_0x812beb;const _0x21b929=_0x288eb9[_0x53ccca(0x104)](_0x37dcc0,_0x3e7a9f),{rangesInfo:_0x4dfa7e,areaInfo:_0xf356b0,headerMap:_0x533c21}=_0x1c0d9f;if(!_0x4dfa7e||!_0xf356b0||!_0x533c21)return;const _0x5d74dc=Object[_0x53ccca(0x237)](_0x4dfa7e)[_0x53ccca(0x261)](_0x5c1b2a=>_0x4dfa7e[_0x5c1b2a][_0x53ccca(0x281)](_0x5cc383=>_0x288eb9[_0x53ccca(0x25d)][_0x53ccca(0x2f4)](_0x5cc383,_0x21b929))),_0x4e4ca3=_0xf356b0;let _0x7d2d88,_0x5c41d0,_0x19f4c9;if(_0x5d74dc===_0x53ccca(0x2b2))_0x7d2d88=(_0xe0be8d=_0x4e4ca3==null?void 0x0:_0x4e4ca3[_0x53ccca(0x263)])==null?void 0x0:_0xe0be8d[_0x37dcc0],_0x5c41d0=(_0x216e28=_0x533c21==null?void 0x0:_0x533c21[_0x53ccca(0x343)])==null?void 0x0:_0x216e28[_0x3e7a9f],_0x19f4c9=_0x5c41d0==null?void 0x0:_0x5c41d0['tableFieldId'];else{if(_0x5d74dc==='colRanges')_0x7d2d88=(_0x39a49e=_0x4e4ca3==null?void 0x0:_0x4e4ca3[_0x53ccca(0x20c)])==null?void 0x0:_0x39a49e[_0x3e7a9f],_0x5c41d0=(_0x393909=_0x533c21[_0x53ccca(0x1d3)])==null?void 0x0:_0x393909[_0x37dcc0+0x1+_0x3e7a9f-_0x4dfa7e[_0x53ccca(0xbf)][0x0][_0x53ccca(0x1c9)]],_0x19f4c9=_0x5c41d0==null?void 0x0:_0x5c41d0[_0x53ccca(0x11e)];else{if(_0x5d74dc===_0x53ccca(0x2e7))_0x7d2d88=(_0x812beb=_0x4e4ca3==null?void 0x0:_0x4e4ca3[_0x53ccca(0x2d9)])==null?void 0x0:_0x812beb[_0x3e7a9f],_0x19f4c9=_0x7d2d88==null?void 0x0:_0x7d2d88[_0x53ccca(0x11e)];else{if(_0x5d74dc===_0x53ccca(0xa8)){const _0x4ed86c=_0x1cb002==null?void 0x0:_0x1cb002['fi'];_0x4ed86c!==void 0x0&&(_0x19f4c9=_0x348dfc['getFilterFieldIdByIndex'](_0x4ed86c));}}}}return{'filterId':_0x19f4c9,'info':_0x7d2d88,'data':_0x1cb002,'headerInfo':_0x5c41d0};}function _0x5da254(_0x221ebb,_0x8abf24,_0xd4ce03){const _0x4f6901=_0x42bb9f,_0x21fb3d=_0x221ebb['dataFieldsCollection'],_0x453d9b=_0x21fb3d[_0x4f6901(0x15d)](),_0x5ef7eb=new Set();_0x221ebb['iterateField'](_0x263533=>{const _0x1ab0e5=_0x4f6901;_0x5ef7eb[_0x1ab0e5(0x246)](_0x263533[_0x1ab0e5(0x160)]);});const _0xc723b3=_0x453d9b['map'](_0x2259e7=>{const _0x346cbd=_0x4f6901,_0x169465=_0x21fb3d[_0x346cbd(0xfb)](_0x2259e7);return{'checked':_0x5ef7eb[_0x346cbd(0xde)](_0x2259e7),'dataFieldId':_0x169465['id'],'id':_0x169465['id'],'name':_0x21fb3d[_0x346cbd(0x229)](_0x169465['id']),'type':_0x169465['getFieldDataType'](),'pivotTableId':_0x8abf24};}),_0x280a1b=[];_0x221ebb[_0x4f6901(0x37e)](_0x2bd302[_0x4f6901(0x25f)][_0x4f6901(0x1d7)],_0x508bc2=>{const _0x562004=_0x4f6901;_0x280a1b['push']({'dataFieldId':_0x508bc2[_0x562004(0x160)],'tableFieldId':_0x508bc2['getId'](),'displayName':_0x508bc2['getDisplayName']()});});const _0x401537=[];_0x221ebb['iterateFieldByArea'](_0x2bd302['PivotTableFiledAreaEnum'][_0x4f6901(0x2b9)],_0x544330=>{const _0x2a48c1=_0x4f6901;_0x401537[_0x2a48c1(0x364)]({'dataFieldId':_0x544330[_0x2a48c1(0x160)],'tableFieldId':_0x544330[_0x2a48c1(0x37c)](),'displayName':_0x544330[_0x2a48c1(0x229)]()});});const _0x2bb45e=[];if(_0x221ebb[_0x4f6901(0x37e)](_0x2bd302['PivotTableFiledAreaEnum'][_0x4f6901(0x34e)],_0x23c0cb=>{const _0x211340=_0x4f6901;_0x2bb45e[_0x211340(0x364)]({'dataFieldId':_0x23c0cb['dataFieldId'],'tableFieldId':_0x23c0cb[_0x211340(0x37c)](),'displayName':_0x23c0cb[_0x211340(0x229)](),'format':_0x23c0cb[_0x211340(0x2ed)](),'subTotalType':_0x23c0cb['getSubtotal']()});}),_0x2bb45e['length']>0x1){const _0x61608e=_0x221ebb[_0x4f6901(0xc0)]();(_0x221ebb['isColMultiMeasure']()?_0x401537:_0x280a1b)['splice'](_0x61608e,0x0,{'dataFieldId':'','tableFieldId':_0x4f6901(0x393),'displayName':'ΣValue'});}const _0x13a252=[];_0x221ebb[_0x4f6901(0x37e)](_0x2bd302['PivotTableFiledAreaEnum'][_0x4f6901(0x328)],_0x4fe5b2=>{const _0x2c1bc0=_0x4f6901;_0x13a252[_0x2c1bc0(0x364)]({'dataFieldId':_0x4fe5b2[_0x2c1bc0(0x160)],'tableFieldId':_0x4fe5b2['getId'](),'displayName':_0x4fe5b2[_0x2c1bc0(0x229)]()});});const _0xad5241=_0xd4ce03[_0x4f6901(0x156)];return{'sourceList':_0xc723b3,'sourceRange':_0xad5241,'rowFields':_0x280a1b,'columnFields':_0x401537,'valueFields':_0x2bb45e,'filterFields':_0x13a252,'positionInfo':_0xd4ce03[_0x4f6901(0x242)]};}function _0x57ebfa(_0x178749,_0x4a4110,_0x4ec870='',_0x2af0f5={}){const _0x2d7955=_0x42bb9f,_0x4f7ad1=_0x178749[_0x2d7955(0x239)](_0x288eb9[_0x2d7955(0x391)]);for(const _0x4bb5d4 in _0x4a4110)if(Object['prototype'][_0x2d7955(0x2b5)][_0x2d7955(0x1f4)](_0x4a4110,_0x4bb5d4)){const _0x518aab=_0x4ec870?_0x4ec870+'.'+_0x4bb5d4:_0x4bb5d4;typeof _0x4a4110[_0x4bb5d4]=='object'&&_0x4a4110[_0x4bb5d4]!==null&&!Array[_0x2d7955(0x352)](_0x4a4110[_0x4bb5d4])?_0x57ebfa(_0x178749,_0x4a4110[_0x4bb5d4],_0x518aab,_0x2af0f5):_0x2af0f5[_0x518aab]=_0x4f7ad1['t'](_0x518aab);}return _0x2af0f5;}const _0x26ef08=_0x4b675b=>{const _0x1b88a0=_0x42bb9f;if(!_0x4b675b)return[];const {rowRanges:_0x5e6293,colRanges:_0x45d4b0,cornerRanges:_0x4d7729,dataRanges:_0x3c0a17,pageRanges:_0x14e727}=_0x4b675b,_0x24a9df=[..._0x45d4b0,..._0x5e6293,..._0x3c0a17,..._0x4d7729][_0x1b88a0(0xdc)](_0x4e9e2=>_0x4e9e2[_0x1b88a0(0x36a)]>=0x0&&_0x4e9e2['startColumn']>=0x0&&_0x4e9e2[_0x1b88a0(0x241)]>=0x0&&_0x4e9e2[_0x1b88a0(0x1f1)]>=0x0);let _0x70eb5d=Number[_0x1b88a0(0x250)],_0x783450=Number['MIN_SAFE_INTEGER'],_0x1bb647=Number['MAX_SAFE_INTEGER'],_0x26c4e4=Number['MIN_SAFE_INTEGER'];for(let _0x51fb51=0x0;_0x51fb51<_0x24a9df[_0x1b88a0(0x8f)];_0x51fb51++)_0x70eb5d=Math['min'](_0x70eb5d,_0x24a9df[_0x51fb51][_0x1b88a0(0x36a)]),_0x783450=Math['max'](_0x783450,_0x24a9df[_0x51fb51][_0x1b88a0(0x241)]),_0x1bb647=Math[_0x1b88a0(0x1e7)](_0x1bb647,_0x24a9df[_0x51fb51][_0x1b88a0(0x1c9)]),_0x26c4e4=Math[_0x1b88a0(0x2e9)](_0x26c4e4,_0x24a9df[_0x51fb51][_0x1b88a0(0x1f1)]);return[..._0x14e727,{'startRow':_0x70eb5d,'endRow':_0x783450,'startColumn':_0x1bb647,'endColumn':_0x26c4e4}];};function _0x15ce34(_0x1b7e38,_0x17c396){const _0x55c11b=_0x42bb9f,_0x9fb9a1=_0x17c396['params'][_0x55c11b(0x31b)],{pivotTableId:_0xa512d,unitId:_0x4b4a84,subUnitId:_0x4aee63}=_0x17c396;if(!_0x9fb9a1)return;const _0x20764c=_0x1b7e38[_0x55c11b(0x239)](_0x5bf755[_0x55c11b(0x1ae)]),_0x6ef9e1=_0x20764c['getPivotTableInstance'](_0xa512d),_0x26b440=_0x20764c['getPivotTableConfig'](_0x4b4a84,_0x4aee63,_0xa512d);if(!_0x6ef9e1||!_0x26b440)return;const _0x411de5=_0x6ef9e1['getIndexesByPathStr'](_0x9fb9a1['tuple']);if(!(_0x411de5!=null&&_0x411de5[_0x55c11b(0x8f)]))return;const _0x8fa414=_0x26b440[_0x55c11b(0x156)],{unitId:_0x3b2c3c,subUnitId:_0xc54340,range:_0x23791f}=_0x8fa414;let _0x3dcc27=0x0;const _0x32d2d0=_0x6ef9e1['dataFieldsCollection'][_0x55c11b(0x15d)]()[_0x55c11b(0x2fc)]((_0x87e1,_0x78decc)=>{const _0x3c7281=_0x55c11b;var _0x603b26;const _0x2880dc=(_0x603b26=_0x6ef9e1[_0x3c7281(0x2a1)](_0x78decc))==null?void 0x0:_0x603b26['getformat']();return _0x2880dc&&(_0x87e1[String(_0x3dcc27)]=_0x2880dc),_0x3dcc27++,_0x87e1;},{});return{'indexes':_0x411de5,'range':_0x23791f,'sourceUnitId':_0x3b2c3c,'sourceSubUnitId':_0xc54340,'formatMap':_0x32d2d0};}function _0x15f38b(_0x5097bb,_0x252d3c){const _0x361906=_0x42bb9f;if(!_0x5097bb||!_0x252d3c)return!0x0;const _0x4bb8a8=_0x1f3f39[_0x361906(0xe3)](_0x458ac8,_0x2b3b30),_0x11e885=new Function('return\x20'+_0x4bb8a8)()(_0x5097bb,_0x252d3c)['message'],_0x494643=_0x1f3f39['isFeatureAuthorizedWithinTime'](_0x11e885,'sf',_0x5a170e);return!((_0x11e885==null?void 0x0:_0x11e885['rt'])===_0x1f3f39[_0x361906(0x355)]['NO_COMMERCIAL']&&!_0x494643);}function _0x52b3f8(_0x9c6e09,_0x20eedf,_0x176104){const _0x4c1447=_0x42bb9f,_0x1b0843={'count':_0x9c6e09,'timeValid':!0x1};if(!_0x20eedf||!_0x176104)return _0x1b0843;const _0x44fa8e=_0x1f3f39[_0x4c1447(0xe3)](_0x458ac8,_0x2b3b30),_0x2b8b22=new Function(_0x4c1447(0x161)+_0x44fa8e)()(_0x20eedf,_0x176104);if(_0x2b8b22!=null&&_0x2b8b22[_0x4c1447(0x157)]){const _0x2cf659=_0x2b8b22['message'],_0x29fe0f=_0x1f3f39[_0x4c1447(0x36c)](_0x2cf659,'sf',_0x5a170e);return{'count':_0x1f3f39[_0x4c1447(0xd1)](_0x2cf659,_0x29fe0f,'ptn',_0x9c6e09,_0x9c6e09,0x0),'timeValid':_0x29fe0f};}return _0x1b0843;}function _0x274f21(_0x31d34f,_0x1d207a,_0x4676d8,_0x4f971c){const _0x47b690=_0x42bb9f,_0x56115d={'subUnitId':_0x4676d8,'unitId':_0x1d207a,'cellValue':_0x2e27a8[_0x47b690(0xad)](_0x4f971c)},_0x54a885=_0x2e27a8[_0x47b690(0x135)](_0x31d34f,_0x56115d);let _0x320bba=!0x1;return new _0x288eb9[(_0x47b690(0x280))](_0x54a885[_0x47b690(0xf2)])[_0x47b690(0xbc)]((_0xca4a2f,_0x52ddb7,_0x3b3930)=>{const _0x13b9b1=_0x47b690;if(!_0x320bba&&_0x3b3930&&(_0x3b3930[_0x13b9b1(0xbb)]||_0x3b3930['f']||_0x3b3930['p']||_0x3b3930['s']||_0x3b3930['si']||_0x3b3930['t']||_0x3b3930['v']))return _0x320bba=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x2e27a8['SetRangeValuesMutation']['id'],'params':_0x54a885},'setRangeValueRedoMutation':{'id':_0x2e27a8[_0x47b690(0x3ad)]['id'],'params':_0x56115d},'shouldClear':_0x320bba};}function _0x2a44bf(_0x4207c5){const {row:_0x498e68,col:_0x2cdaa2}=_0x4207c5,_0x3c2d87={'startRow':_0x498e68,'endRow':_0x498e68,'startColumn':_0x2cdaa2,'endColumn':_0x2cdaa2},_0x47452a={'startRow':_0x498e68+0x2,'endRow':_0x498e68+0xe,'startColumn':_0x2cdaa2,'endColumn':_0x2cdaa2+0x6};return[_0x3c2d87,_0x47452a];}function _0x5be9e2(_0x3a27ec,_0x56bc32,_0x42746d){const _0x40dca5=_0x42bb9f,{cornerView:_0x42ed34,rowView:_0x3e6dc1,colView:_0x502d2b,pageView:_0x1ff521}=_0x3a27ec,{row:_0xfbc03b,col:_0x2387b3}=_0x56bc32;if(_0x42746d)return{'rowCount':_0x154bf2+_0xfbc03b,'colCount':_0x34f04a+_0x2387b3};const _0x9c8d90=_0x1ff521[_0x40dca5(0x1ef)]>-0x1?_0x1ff521[_0x40dca5(0x1ef)]+0x1:0x0,_0x4f8c7c=_0x1ff521[_0x40dca5(0x300)]>-0x1?_0x1ff521[_0x40dca5(0x300)]:0x0,_0x3fa650=_0xfbc03b+_0x9c8d90+(_0x9c8d90?0x1:0x0)+_0x42ed34[_0x40dca5(0x2ff)]+_0x3e6dc1[_0x40dca5(0x2ff)],_0x1a583d=_0x2387b3+_0x4f8c7c,_0x430e32=_0x2387b3+_0x42ed34[_0x40dca5(0x39f)]+_0x502d2b[_0x40dca5(0x39f)],_0x31fbe4=Math['max'](_0x1a583d,_0x430e32);return{'rowCount':_0x3fa650,'colCount':_0x31fbe4};}function _0x3034a0(_0x7c09d2,_0x562ad1,_0x1492fb,_0x142b4d){const _0x77c81e=_0x42bb9f,{row:_0x5db49b,col:_0x4c3119,unitId:_0x20acec,subUnitId:_0x19e05a}=_0x1492fb,_0x1544c9=_0x5be9e2(_0x562ad1,{'row':_0x5db49b,'col':_0x4c3119},_0x142b4d),_0x433c27=_0x7c09d2[_0x77c81e(0x239)](_0x288eb9['IUniverInstanceService']),_0x3233cd=_0x2e27a8[_0x77c81e(0xba)](_0x433c27,{'unitId':_0x20acec,'subUnitId':_0x19e05a}),_0x53f45e=[],_0x159f63=[];if(!_0x3233cd)return{'undos':_0x159f63,'redos':_0x53f45e};const {worksheet:_0x3ffc75}=_0x3233cd,_0x417c54=_0x3ffc75['getRowCount'](),_0x2359de=_0x3ffc75[_0x77c81e(0x32b)]();return _0x417c54<_0x1544c9['rowCount']&&(_0x53f45e[_0x77c81e(0x364)]({'id':_0x2e27a8['InsertRowMutation']['id'],'params':{'unitId':_0x20acec,'subUnitId':_0x19e05a,'range':{'startRow':_0x417c54,'endRow':_0x1544c9[_0x77c81e(0x2ff)]-0x1,'startColumn':0x0,'endColumn':_0x2359de-0x1}}}),_0x159f63['push']({'id':_0x2e27a8[_0x77c81e(0x38a)]['id'],'params':{'unitId':_0x20acec,'subUnitId':_0x19e05a,'range':{'startRow':_0x417c54,'endRow':_0x1544c9[_0x77c81e(0x2ff)]-0x1,'startColumn':0x0,'endColumn':_0x2359de-0x1}}})),_0x2359de<_0x1544c9['colCount']&&(_0x53f45e[_0x77c81e(0x364)]({'id':_0x2e27a8[_0x77c81e(0x33b)]['id'],'params':{'unitId':_0x20acec,'subUnitId':_0x19e05a,'range':{'startRow':0x0,'endRow':_0x417c54-0x1,'startColumn':_0x2359de,'endColumn':_0x1544c9[_0x77c81e(0x39f)]-0x1}}}),_0x159f63[_0x77c81e(0x364)]({'id':_0x2e27a8[_0x77c81e(0x11c)]['id'],'params':{'unitId':_0x20acec,'subUnitId':_0x19e05a,'range':{'startRow':0x0,'endRow':_0x417c54-0x1,'startColumn':_0x2359de,'endColumn':_0x1544c9[_0x77c81e(0x39f)]-0x1}}})),{'undos':_0x159f63,'redos':_0x53f45e};}function _0x3c2b73(_0x8108f3){const _0x78fb18=_0x42bb9f;let _0x27fbbf=0x0;for(let _0x681321=0x0;_0x681321<_0x8108f3[_0x78fb18(0x8f)];_0x681321++){const _0xba4d26=_0x8108f3[_0x78fb18(0x22e)](_0x681321);_0xba4d26>=0x4e00&&_0xba4d26<=0x9fff||_0xba4d26>=0x3000&&_0xba4d26<=0x303f||_0xba4d26>=0xff00&&_0xba4d26<=0xffef?_0x27fbbf+=0x2:_0x27fbbf+=0x1;}return _0x27fbbf;}function _0xc12cd5(_0x4c2b46,_0x267a36,_0x2c0f36,_0x23ab99){const _0x1ccfb4=_0x42bb9f;var _0x554465,_0x3aff7a,_0x4e3a20,_0x21804f;const {rowCount:_0x3ec7d1,colCount:_0x7fb241,headerMap:_0x5b610a}=_0x4c2b46,_0x22d754=0x64,_0xa973f4=Math[_0x1ccfb4(0x1e7)](_0x3ec7d1,_0x22d754),_0x12af2a=Math['min'](_0x7fb241,_0x22d754);let _0x5d60cf='',_0x2b4a4e=0x0;for(let _0x289614=0x0;_0x289614<_0xa973f4;_0x289614++)for(let _0xc2da43=0x0;_0xc2da43<_0x12af2a;_0xc2da43++){const _0x20ee1b={...(_0x3aff7a=(_0x554465=_0x4c2b46[_0x1ccfb4(0x2c4)])==null?void 0x0:_0x554465[_0x289614])==null?void 0x0:_0x3aff7a[_0xc2da43]},_0x36e512=(_0x4e3a20=_0x5b610a[_0x289614])==null?void 0x0:_0x4e3a20[_0x1ccfb4(0x11e)],_0x48bd16=_0x23ab99[_0x36e512];let _0x2bf4de=_0x4c2b46[_0x1ccfb4(0x187)](_0x289614,_0xc2da43);if(_0x20ee1b){const _0x2bbfb1=_0x2c0f36?_0xc2da43===0x0&&((_0x21804f=_0x4c2b46[_0x1ccfb4(0x25a)](_0xc2da43+0x1))==null?void 0x0:_0x21804f[_0x1ccfb4(0x278)]):!0x1;_0x2bf4de=_0x2ee935(_0x20ee1b,_0x2bbfb1,_0x48bd16,_0x267a36);}if(_0x2bf4de!==void 0x0){const _0x1aeb19=_0x3c2b73(String(_0x2bf4de));_0x2b4a4e<_0x1aeb19&&(_0x5d60cf=String(_0x2bf4de),_0x2b4a4e=_0x1aeb19);}}return _0x5d60cf;}function _0x4f715a(_0x3a77e2){const _0x49e31d=_0x42bb9f,{rowCount:_0x2150a0,colCount:_0x133940}=_0x3a77e2;let _0x47c070='',_0x502acf=0x0;for(let _0x178983=_0x2150a0-0x1;_0x178983>0x0&&_0x178983>_0x2150a0-0x3;_0x178983--)for(let _0x2e1edd=0x0;_0x2e1edd<_0x133940;_0x2e1edd++){const _0x230a73=_0x3a77e2[_0x49e31d(0x187)](_0x178983,_0x2e1edd);if(_0x230a73!==void 0x0){const _0x17d2f7=String(_0x230a73)[_0x49e31d(0x8f)];_0x502acf<_0x17d2f7&&(_0x47c070=String(_0x230a73),_0x502acf=_0x17d2f7);}}return _0x47c070;}function _0x48e32a(_0x40d774){const _0x173623=_0x42bb9f,{rowCount:_0x51d4d1,colCount:_0x1727f7}=_0x40d774;let _0x5d0305='',_0x526e0d=0x0;for(let _0x4a78aa=0x0;_0x4a78aa<_0x51d4d1;_0x4a78aa++)for(let _0x3f1e5c=0x0;_0x3f1e5c<_0x1727f7;_0x3f1e5c++){const _0x105298=_0x40d774['getValue'](_0x4a78aa,_0x3f1e5c);if(_0x105298!==void 0x0){const _0x1b8af1=String(_0x105298)[_0x173623(0x8f)];_0x526e0d<_0x1b8af1&&(_0x5d0305=String(_0x105298),_0x526e0d=_0x1b8af1);}}return _0x5d0305;}function _0x4b09d5(_0x1aca23,_0x4ddc75){const _0x41648d=_0x42bb9f,{rowFields:_0x21e3e3,columnFields:_0x3de480,valueFields:_0x5d93d4,filterFields:_0x42d834,dimension:_0xa6bf6f,measure:_0xb728c9}=_0x4ddc75;for(const _0x4626ab of _0x21e3e3){const _0x5e284b=_0xa6bf6f[_0x4626ab];_0x5e284b&&_0x1aca23[_0x41648d(0x2a1)](_0x5e284b[_0x41648d(0x160)])&&(_0x1aca23[_0x41648d(0x274)](_0x5e284b['dataFieldId'],_0x2bd302['PivotTableFiledAreaEnum']['Row'],void 0x0,_0x4626ab),_0x5e284b[_0x41648d(0x373)]&&_0x1aca23[_0x41648d(0x33c)](_0x5e284b['id'],_0x5e284b['displayName']),_0x5e284b['sortInfo']&&_0x1aca23['setSortInfo'](_0x5e284b['id'],_0x5e284b[_0x41648d(0xf8)]),_0x5e284b[_0x41648d(0xcf)]&&_0x1aca23[_0x41648d(0x286)](_0x5e284b['id'],_0x5e284b[_0x41648d(0xcf)]));}for(const _0x136863 of _0x3de480){const _0x24c9ea=_0xa6bf6f[_0x136863];_0x24c9ea&&_0x1aca23[_0x41648d(0x2a1)](_0x24c9ea[_0x41648d(0x160)])&&(_0x1aca23[_0x41648d(0x274)](_0x24c9ea[_0x41648d(0x160)],_0x2bd302[_0x41648d(0x25f)][_0x41648d(0x2b9)],void 0x0,_0x136863),_0x24c9ea[_0x41648d(0xf8)]&&_0x1aca23[_0x41648d(0x23e)](_0x24c9ea['id'],_0x24c9ea[_0x41648d(0xf8)]),_0x24c9ea[_0x41648d(0xcf)]&&_0x1aca23['setLabelFilterInfo'](_0x24c9ea['id'],_0x24c9ea[_0x41648d(0xcf)]),_0x24c9ea[_0x41648d(0x373)]&&_0x1aca23[_0x41648d(0x33c)](_0x24c9ea['id'],_0x24c9ea['displayName']));}for(const _0x54c726 of _0x42d834){const _0x3955a9=_0xa6bf6f[_0x54c726];_0x3955a9&&_0x1aca23[_0x41648d(0x2a1)](_0x3955a9[_0x41648d(0x160)])&&(_0x1aca23['addFieldWithSourceId'](_0x3955a9[_0x41648d(0x160)],_0x2bd302[_0x41648d(0x25f)][_0x41648d(0x328)],void 0x0,_0x54c726),_0x3955a9['sortInfo']&&_0x1aca23['setSortInfo'](_0x3955a9['id'],_0x3955a9['sortInfo']),_0x3955a9['filterInfo']&&_0x1aca23['setLabelFilterInfo'](_0x3955a9['id'],_0x3955a9['filterInfo']),_0x3955a9[_0x41648d(0x373)]&&_0x1aca23['renameField'](_0x3955a9['id'],_0x3955a9[_0x41648d(0x373)]));}for(const _0x27ffea of _0x5d93d4){const _0x4ed80c=_0xb728c9[_0x27ffea];_0x4ed80c&&_0x1aca23['getDataFieldByDataFieldId'](_0x4ed80c[_0x41648d(0x160)])&&(_0x1aca23['addFieldWithSourceId'](_0x4ed80c[_0x41648d(0x160)],_0x2bd302['PivotTableFiledAreaEnum'][_0x41648d(0x34e)],void 0x0,_0x27ffea),_0x4ed80c[_0x41648d(0x2a0)]!==void 0x0&&_0x1aca23[_0x41648d(0xf6)](_0x27ffea,_0x4ed80c[_0x41648d(0x2a0)]),_0x4ed80c[_0x41648d(0x2da)]&&_0x1aca23[_0x41648d(0x1a3)](_0x27ffea,_0x4ed80c[_0x41648d(0x2da)]),_0x4ed80c[_0x41648d(0x373)]&&_0x1aca23[_0x41648d(0x33c)](_0x4ed80c['id'],_0x4ed80c[_0x41648d(0x373)]));}const _0x2a9c05=_0x4ddc75['valueFilter'];for(const {fieldId:_0x10be13,filterInfo:_0x52dd33}of _0x2a9c05)_0x1aca23[_0x41648d(0x31d)](_0x10be13,_0x52dd33);}function _0x4d996f(_0x2d34cb,_0x3e7fd8){const _0x2050aa=_0x42bb9f,_0x2c523b=[];_0x3e7fd8===_0x2bd302['PivotTableFiledAreaEnum']['Row']&&_0x2d34cb['iterateFieldByArea'](_0x2bd302[_0x2050aa(0x25f)]['Row'],_0x1c6fa8=>{const _0x127462=_0x2050aa;_0x2c523b[_0x127462(0x364)](_0x1c6fa8[_0x127462(0x37c)]());}),_0x3e7fd8===_0x2bd302[_0x2050aa(0x25f)][_0x2050aa(0x2b9)]&&_0x2d34cb[_0x2050aa(0x37e)](_0x2bd302[_0x2050aa(0x25f)]['Column'],_0x5103c1=>{const _0xfe2e0b=_0x2050aa;_0x2c523b[_0xfe2e0b(0x364)](_0x5103c1['getId']());}),_0x3e7fd8===_0x2bd302[_0x2050aa(0x25f)][_0x2050aa(0x328)]&&_0x2d34cb[_0x2050aa(0x37e)](_0x2bd302[_0x2050aa(0x25f)][_0x2050aa(0x328)],_0xbc8d27=>{const _0x5719d7=_0x2050aa;_0x2c523b[_0x5719d7(0x364)](_0xbc8d27['getId']());}),_0x3e7fd8===_0x2bd302[_0x2050aa(0x25f)][_0x2050aa(0x34e)]&&_0x2d34cb[_0x2050aa(0x37e)](_0x2bd302['PivotTableFiledAreaEnum'][_0x2050aa(0x34e)],_0x1783a4=>{const _0x34c98e=_0x2050aa;_0x2c523b[_0x34c98e(0x364)](_0x1783a4[_0x34c98e(0x37c)]());}),_0x3e7fd8===void 0x0&&_0x2d34cb['iterateField'](_0xa4c882=>{const _0x3f5c4a=_0x2050aa;_0x2c523b['push'](_0xa4c882[_0x3f5c4a(0x37c)]());});const _0xe75d8f=_0x2c523b['length'];for(let _0x2d51ab=_0xe75d8f-0x1;_0x2d51ab>=0x0;_0x2d51ab--)_0x2d34cb[_0x2050aa(0x115)](_0x2c523b[_0x2d51ab]);const _0x3f0947=_0x2d34cb['getValueFilterInfos']();for(const _0x544fde in _0x3f0947)_0x2d34cb[_0x2050aa(0x181)](_0x544fde);}function _0xfb878c(_0x58feb4,_0x17f0ae){const _0x5aaea7=_0x42bb9f,_0x2e0e57=new Date(_0x2bd302[_0x5aaea7(0x2a7)](_0x17f0ae)),_0x519c1=new Date(_0x2bd302[_0x5aaea7(0x2a7)](_0x58feb4)),_0x557a89=_0x2e0e57[_0x5aaea7(0x110)](),_0x34919d=_0x519c1['getFullYear'](),_0x10ff49=_0x2e0e57[_0x5aaea7(0x8d)](),_0x44d618=_0x519c1[_0x5aaea7(0x8d)](),_0x2d299=_0x2e0e57[_0x5aaea7(0x99)](),_0x544962=_0x519c1[_0x5aaea7(0x99)](),_0x5c86e1=_0x557a89===_0x34919d,_0x21710d=_0x5c86e1&&_0x10ff49===_0x44d618;return _0x5c86e1&&_0x21710d&&!(_0x21710d&&_0x2d299===_0x544962)?_0x2bd302[_0x5aaea7(0x8e)][_0x5aaea7(0x234)]:_0x5c86e1&&!_0x21710d?_0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x5aaea7(0x322)]:_0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x5aaea7(0x310)];}function _0xf6c030(_0x172df0,_0x2e8a50){const _0x31ee5c=_0x42bb9f,_0x5382af=_0x172df0['get'](_0x5bf755['SheetsPivotDataSourceModel'])[_0x31ee5c(0x128)]();let _0x2cf92c='';switch(_0x2e8a50){case _0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x31ee5c(0x234)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x2dc)];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x322)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x16d)];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x310)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x2ac)];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x34c)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x170)];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x32c)]:_0x2cf92c=_0x5382af[_0x31ee5c(0xe1)];break;case _0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x31ee5c(0x2a4)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x1f3)];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x1ff)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x232)];break;case _0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x31ee5c(0x24c)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x21b)];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x137)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x289)];break;case _0x2bd302['PivotDateGroupFieldDateTypeEnum'][_0x31ee5c(0x154)]:_0x2cf92c=_0x5382af['sheets-pivot.dateGroup.monthDate'];break;case _0x2bd302[_0x31ee5c(0x8e)][_0x31ee5c(0x2fe)]:_0x2cf92c=_0x5382af[_0x31ee5c(0x236)];break;default:_0x2cf92c='';break;}return _0x2cf92c;}const _0x403f4a=_0x42bb9f(0xe9),_0x49e17c={};var _0x230acf=Object[_0x42bb9f(0x235)],_0x593ca7=(_0x1f5607,_0x87d450,_0x16888a,_0x2c90f2)=>{for(var _0x16b4bc=_0x2c90f2>0x1?void 0x0:_0x2c90f2?_0x230acf(_0x87d450,_0x16888a):_0x87d450,_0x13e4c5=_0x1f5607['length']-0x1,_0x5b5e64;_0x13e4c5>=0x0;_0x13e4c5--)(_0x5b5e64=_0x1f5607[_0x13e4c5])&&(_0x16b4bc=_0x5b5e64(_0x16b4bc)||_0x16b4bc);return _0x16b4bc;},_0x28e3fc=(_0xa72f93,_0x2cd8b1)=>(_0x94d089,_0x1aace8)=>_0x2cd8b1(_0x94d089,_0x1aace8,_0xa72f93);_0x5bf755['SheetsPivotTableConfigModel']=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x386cbc,_0x56ba5b,_0x16fa2e,_0x8d02f,_0x1b1110){const _0x569e42=_0x42bb9f;super(),_0x4fb07d(this,'_model',new Map()),_0x4fb07d(this,'_collectionConfigModel',new Map()),_0x4fb07d(this,'_pivotTableRangeInfo',new Map()),_0x4fb07d(this,_0x569e42(0xbd),new Map()),_0x4fb07d(this,_0x569e42(0x38b),new _0x4e0a85[(_0x569e42(0x2bd))]()),_0x4fb07d(this,_0x569e42(0x1b5),new _0x4e0a85[(_0x569e42(0x2bd))]()),_0x4fb07d(this,'pivotInitCompleted$',this[_0x569e42(0x1b5)][_0x569e42(0x2f1)]()),_0x4fb07d(this,_0x569e42(0x169),new _0x4e0a85[(_0x569e42(0x2bd))]()),_0x4fb07d(this,_0x569e42(0x22a),this[_0x569e42(0x169)][_0x569e42(0x2f1)]()),_0x4fb07d(this,_0x569e42(0x332),{}),_0x4fb07d(this,'configVersion$',this[_0x569e42(0x38b)][_0x569e42(0x2f1)]()),(this['_injector']=_0x386cbc,this[_0x569e42(0x370)]=_0x56ba5b,this[_0x569e42(0x1d4)]=_0x16fa2e,this[_0x569e42(0x139)]=_0x8d02f,this[_0x569e42(0x2fd)]=_0x1b1110,this[_0x569e42(0x10f)](),this[_0x569e42(0x1fa)]());const _0x52a5cd=this['_configService']['getConfig'](_0x403f4a);(_0x52a5cd==null?void 0x0:_0x52a5cd[_0x569e42(0x8c)])===!0x0&&this['_initSnapshot']();}['_initUnitDisposed'](){const _0x3f4a4f=_0x42bb9f;this[_0x3f4a4f(0x148)](this[_0x3f4a4f(0x1d4)][_0x3f4a4f(0x34b)](_0x288eb9[_0x3f4a4f(0x175)][_0x3f4a4f(0x197)])[_0x3f4a4f(0x153)](_0x4524ed=>{const _0x2a74a7=_0x3f4a4f;this['deleteUnitId'](_0x4524ed[_0x2a74a7(0x23a)]());}));}[_0x42bb9f(0x305)](){const _0x2e4e70=_0x42bb9f;this[_0x2e4e70(0x1b5)]['next'](!0x0);}[_0x42bb9f(0x10f)](){const _0x4221c5=_0x42bb9f,_0x3afff3=_0x57ebfa(this['_injector'],_0x2e2884,'',{});this[_0x4221c5(0x332)]=_0x3afff3,this[_0x4221c5(0x370)]['executeCommand'](_0x157f7e['id'],{'textInfo':_0x3afff3},{'onlyLocal':!0x0});}[_0x42bb9f(0x128)](){const _0x109c32=_0x42bb9f;return this[_0x109c32(0x332)];}[_0x42bb9f(0x39b)](_0x5c5cf0,_0x503220,_0x59f8fb,_0x26bb76,_0x2ca6a6){const _0x5f1ddc=_0x42bb9f;this[_0x5f1ddc(0x1f8)](_0x5c5cf0,_0x503220,_0x59f8fb,_0x26bb76),this['updatePivotTableRangeInfo'](_0x5c5cf0,_0x503220,_0x59f8fb,_0x2ca6a6);}[_0x42bb9f(0x9b)](_0x470b99,_0x147d83,_0x4c17f1){const _0x45bdb1=_0x42bb9f;var _0x303a52;const _0x401ff5=(_0x303a52=this[_0x45bdb1(0x27d)][_0x45bdb1(0x239)](_0x470b99))==null?void 0x0:_0x303a52['get'](_0x147d83);if(_0x401ff5)return _0x401ff5[_0x45bdb1(0x239)](_0x4c17f1);}[_0x42bb9f(0x12d)](_0x5e6487,_0x2ef0b9){const _0x486d39=_0x42bb9f,_0x12077e=this['_model'][_0x486d39(0x239)](_0x5e6487);if(_0x12077e){for(const [_0x45d0a9,_0x34bc92]of _0x12077e['entries']())for(const [_0x4ad7c9,_0x969723]of _0x34bc92[_0x486d39(0xa1)]())if(_0x4ad7c9===_0x2ef0b9)return _0x969723['targetCellInfo'];}}[_0x42bb9f(0x33f)](_0xd3f5ce,_0x150221,_0x510a90){const _0x1fd529=_0x42bb9f,_0x2d609c=this[_0x1fd529(0x9b)](_0xd3f5ce,_0x150221,_0x510a90);return _0x2d609c==null?void 0x0:_0x2d609c[_0x1fd529(0x242)];}[_0x42bb9f(0x244)](_0x442e63,_0x1d20b0){const _0x403a4b=_0x42bb9f;var _0x39a52b;return(_0x39a52b=this[_0x403a4b(0x27d)][_0x403a4b(0x239)](_0x442e63))==null?void 0x0:_0x39a52b[_0x403a4b(0x239)](_0x1d20b0);}['updateConfigCache'](_0x224f4a,_0x4ac86b,_0x258b8b,_0x403a6c){const _0x1b75c3=_0x42bb9f,_0x5d1528=this['_ensurePivotMap'](_0x224f4a,_0x4ac86b);_0x403a6c?_0x5d1528[_0x1b75c3(0x22c)](_0x258b8b,_0x403a6c):_0x5d1528[_0x1b75c3(0x1ca)](_0x258b8b),this[_0x1b75c3(0x169)][_0x1b75c3(0x287)]({'unitId':_0x224f4a,'subUnitId':_0x4ac86b,'pivotTableId':_0x258b8b,'pivotTableConfig':_0x403a6c});}[_0x42bb9f(0x2c8)](_0x572c37,_0x3d29c9){const _0x2a239d=_0x42bb9f;var _0x169e77;return(_0x169e77=this[_0x2a239d(0x101)][_0x2a239d(0x239)](_0x572c37))==null?void 0x0:_0x169e77['collections'][_0x3d29c9];}['updateCollectionConfig'](_0x594c90,_0x213c37){const _0xf71cf4=_0x42bb9f;this['_collectionConfigModel']['set'](_0x594c90,_0x213c37),this[_0xf71cf4(0x38b)][_0xf71cf4(0x287)](Math[_0xf71cf4(0x106)]());}[_0x42bb9f(0x225)](_0x390a46,_0x2db661){const _0x4b57dd=_0x42bb9f;let _0x1d9e3f=this[_0x4b57dd(0x27d)][_0x4b57dd(0x239)](_0x390a46);_0x1d9e3f||(_0x1d9e3f=new Map(),this[_0x4b57dd(0x27d)][_0x4b57dd(0x22c)](_0x390a46,_0x1d9e3f));let _0x46ea21=_0x1d9e3f['get'](_0x2db661);return _0x46ea21||(_0x46ea21=new Map(),_0x1d9e3f[_0x4b57dd(0x22c)](_0x2db661,_0x46ea21)),_0x46ea21;}['_ensurePivotTableRangeInfo'](_0x5e7afe,_0x17d64f){const _0x45f113=_0x42bb9f;let _0x5e28ae=this[_0x45f113(0x256)][_0x45f113(0x239)](_0x5e7afe);_0x5e28ae||(_0x5e28ae=new Map(),this[_0x45f113(0x256)][_0x45f113(0x22c)](_0x5e7afe,_0x5e28ae));let _0x1a7818=_0x5e28ae['get'](_0x17d64f);return _0x1a7818||(_0x1a7818=new Map(),_0x5e28ae['set'](_0x17d64f,_0x1a7818)),_0x1a7818;}['_ensurePivotTableMatrixInfo'](_0x548ca1,_0x5ef743){const _0x40cadb=_0x42bb9f;let _0x4188e6=this['_pivotTableMatrixInfo'][_0x40cadb(0x239)](_0x548ca1);_0x4188e6||(_0x4188e6=new Map(),this[_0x40cadb(0xbd)]['set'](_0x548ca1,_0x4188e6));let _0x460bd6=_0x4188e6[_0x40cadb(0x239)](_0x5ef743);return _0x460bd6||(_0x460bd6=new Map(),_0x4188e6[_0x40cadb(0x22c)](_0x5ef743,_0x460bd6)),_0x460bd6;}['updatePivotTableRangeInfo'](_0x18288e,_0x2ce11b,_0x290b0c,_0x1deb44){const _0x3322b1=_0x42bb9f;var _0xb0ef1d;const _0x2e0671=this[_0x3322b1(0x172)](_0x18288e,_0x2ce11b),_0x1576c8=(_0xb0ef1d=_0x2e0671['get'](_0x290b0c))==null?void 0x0:_0xb0ef1d[_0x3322b1(0x1b7)];_0x2e0671[_0x3322b1(0x22c)](_0x290b0c,{'oldRangeInfo':_0x1576c8,'rangeInfo':_0x1deb44});}[_0x42bb9f(0x1f8)](_0x3263d9,_0x21d8de,_0x4c6643,_0x538dbd){const _0x231adc=_0x42bb9f;var _0x491c28;const _0x2322b7=this[_0x231adc(0xb8)](_0x3263d9,_0x21d8de),_0x7da409=(_0x491c28=_0x2322b7['get'](_0x4c6643))==null?void 0x0:_0x491c28[_0x231adc(0xd7)];_0x2322b7[_0x231adc(0x22c)](_0x4c6643,{'oldMatrix':_0x7da409,'matrix':_0x538dbd});}[_0x42bb9f(0x29f)](_0x2c128c,_0x3dd57b,_0x5753ce){const _0x5cec7b=_0x42bb9f;var _0x3b15bc,_0x18dce5;return(_0x18dce5=(_0x3b15bc=this[_0x5cec7b(0x256)][_0x5cec7b(0x239)](_0x2c128c))==null?void 0x0:_0x3b15bc[_0x5cec7b(0x239)](_0x3dd57b))==null?void 0x0:_0x18dce5[_0x5cec7b(0x239)](_0x5753ce);}['getPivotTableMatrixInfo'](_0x56f5b3,_0x552f8a,_0x12d0e4){const _0x18bbc3=_0x42bb9f;var _0x2d6ff8,_0x1b67f6;return(_0x1b67f6=(_0x2d6ff8=this['_pivotTableMatrixInfo'][_0x18bbc3(0x239)](_0x56f5b3))==null?void 0x0:_0x2d6ff8[_0x18bbc3(0x239)](_0x552f8a))==null?void 0x0:_0x1b67f6[_0x18bbc3(0x239)](_0x12d0e4);}[_0x42bb9f(0x1b6)](_0x5e4782){const _0x59cf8e=_0x42bb9f;this['_model'][_0x59cf8e(0x1ca)](_0x5e4782),this['_collectionConfigModel'][_0x59cf8e(0x1ca)](_0x5e4782);}[_0x42bb9f(0x31e)](_0x199f81){const _0x417d2d=_0x42bb9f,_0x15c770={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x417d2d(0x101)]['get'](_0x199f81)&&(_0x15c770[_0x417d2d(0x2d1)][_0x199f81]=this[_0x417d2d(0x101)][_0x417d2d(0x239)](_0x199f81)),this['_model']['get'](_0x199f81)){_0x15c770[_0x417d2d(0x1cf)][_0x199f81]={};const _0x4c9e72=this[_0x417d2d(0x27d)][_0x417d2d(0x239)](_0x199f81);_0x4c9e72!=null&&_0x4c9e72['size']&&[..._0x4c9e72[_0x417d2d(0x237)]()][_0x417d2d(0x36d)](_0x51fd04=>{const _0x5a0a8d=_0x417d2d,_0x5bd870=_0x4c9e72[_0x5a0a8d(0x239)](_0x51fd04);_0x5bd870!=null&&_0x5bd870['size']&&(_0x15c770[_0x5a0a8d(0x1cf)][_0x199f81][_0x51fd04]={},[..._0x5bd870[_0x5a0a8d(0x237)]()]['forEach'](_0x3adf7d=>{const _0x1b455a=_0x5a0a8d,_0x287d1b=_0x5bd870[_0x1b455a(0x239)](_0x3adf7d);_0x287d1b&&(_0x15c770['pivotTableConfigs'][_0x199f81][_0x51fd04][_0x3adf7d]=_0x287d1b);}));});}return _0x15c770;}[_0x42bb9f(0x238)](){const _0x3a8d06=_0x42bb9f;this[_0x3a8d06(0x148)](this[_0x3a8d06(0x139)][_0x3a8d06(0x2b3)]({'toJson':_0x4cb0ea=>JSON[_0x3a8d06(0x297)](this['_toJSON'](_0x4cb0ea)),'parseJson':_0x1f99e8=>({}),'businesses':[_0x288eb9[_0x3a8d06(0x175)][_0x3a8d06(0x197)]],'pluginName':_0xd0f9a3,'onLoad':(_0x2daf4d,_0x578456)=>{},'onUnLoad':_0xf73989=>{const _0x28c887=_0x3a8d06;this[_0x28c887(0x1b6)](_0xf73989);}}));}},_0x5bf755[_0x42bb9f(0x2e2)]=_0x593ca7([_0x28e3fc(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x1fb)])),_0x28e3fc(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x19d)])),_0x28e3fc(0x2,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x132)])),_0x28e3fc(0x3,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9['IResourceManagerService'])),_0x28e3fc(0x4,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0xd5)]))],_0x5bf755[_0x42bb9f(0x2e2)]);var _0x70c2d2=Object['getOwnPropertyDescriptor'],_0x6898dc=(_0x3ef105,_0x8682cd,_0x3f5628,_0x3bcb06)=>{const _0x52c2cb=_0x42bb9f;for(var _0x93bce8=_0x3bcb06>0x1?void 0x0:_0x3bcb06?_0x70c2d2(_0x8682cd,_0x3f5628):_0x8682cd,_0x588e8f=_0x3ef105[_0x52c2cb(0x8f)]-0x1,_0x5e9294;_0x588e8f>=0x0;_0x588e8f--)(_0x5e9294=_0x3ef105[_0x588e8f])&&(_0x93bce8=_0x5e9294(_0x93bce8)||_0x93bce8);return _0x93bce8;},_0x2de5c7=(_0x41e897,_0x201c9d)=>(_0x519d68,_0x3d2512)=>_0x201c9d(_0x519d68,_0x3d2512,_0x41e897);_0x5bf755[_0x42bb9f(0x249)]=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x306a35,_0x28726d,_0x1965c3,_0x2d1698,_0x2b5b66){const _0x5422ff=_0x42bb9f;super(),_0x4fb07d(this,'_pivotRenderInfoCache',new Map()),_0x4fb07d(this,_0x5422ff(0x189),new Map()),_0x4fb07d(this,_0x5422ff(0x218),new _0x4e0a85[(_0x5422ff(0x2bd))]()),_0x4fb07d(this,_0x5422ff(0x2c9),this[_0x5422ff(0x218)][_0x5422ff(0x2f1)]()),_0x4fb07d(this,'_viewUpdate$',new _0x4e0a85[(_0x5422ff(0x2bd))]()),_0x4fb07d(this,_0x5422ff(0x240),this['_viewUpdate$'][_0x5422ff(0x2f1)]()),_0x4fb07d(this,_0x5422ff(0x332)),(this[_0x5422ff(0x27f)]=_0x306a35,this['_injector']=_0x28726d,this[_0x5422ff(0x98)]=_0x1965c3,this[_0x5422ff(0x1d4)]=_0x2d1698,this['_exclusiveRangeService']=_0x2b5b66,this[_0x5422ff(0x10f)](),this[_0x5422ff(0x1fa)]());}[_0x42bb9f(0x1fa)](){const _0x250e80=_0x42bb9f;this[_0x250e80(0x148)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x288eb9[_0x250e80(0x175)]['UNIVER_SHEET'])[_0x250e80(0x153)](_0x5402d9=>{const _0x19d7e8=_0x250e80;this[_0x19d7e8(0x1b6)](_0x5402d9[_0x19d7e8(0x23a)]());}));}[_0x42bb9f(0x10f)](){const _0x7a2690=_0x42bb9f;this[_0x7a2690(0x332)]=_0x57ebfa(this[_0x7a2690(0x39e)],_0x2e2884,'',{});}['updateRenderCache'](_0x37f994){const _0x20df5b=_0x42bb9f,{view:_0x43dde5,unitId:_0x1b57cf,subUnitId:_0x3d5cf2,pivotTableId:_0x134de2,type:_0x58a27b}=_0x37f994,_0x1f5bed=this['_sheetsPivotTableConfigModel'][_0x20df5b(0x9b)](_0x1b57cf,_0x3d5cf2,_0x134de2);if(!_0x43dde5||!_0x1f5bed||_0x58a27b===_0x2de5fe[_0x20df5b(0x163)])return;const {pageView:_0x5e0788,cornerView:_0xf8d7ad,rowView:_0x378223,colView:_0x4b4632,dataView:_0x5193a0}=_0x43dde5,_0x439236=_0x1f5bed['targetCellInfo'],_0xcdb1d=_0x1f5bed[_0x20df5b(0x279)],_0x3440fa=this[_0x20df5b(0x15b)](_0x1b57cf,_0x3d5cf2),_0x317927=this[_0x20df5b(0x2f0)](_0x1b57cf,_0x3d5cf2,_0x134de2);if(_0xcdb1d)return this['_updateRenderEmptyCache'](_0x37f994,_0x3440fa,_0x439236,_0x317927);{const _0x169534=_0x2b2601(_0x439236,_0x5e0788,!0x0),_0x1252a1=_0x5e0788[_0x20df5b(0x1ef)]>=0x0?_0x5e0788[_0x20df5b(0x1ef)]+0x1:0x0,_0x263e94=_0xf8d7ad[_0x20df5b(0xec)](),_0x1767f8=_0xf8d7ad[_0x20df5b(0x146)](),_0x2516b6=_0x169534[_0x20df5b(0x8f)]>0x0?_0x4bce21:0x0,_0xc9f37c=_0x2b2601({'row':_0x439236[_0x20df5b(0x392)]+_0x1252a1+_0x2516b6,'col':_0x439236[_0x20df5b(0x113)]},_0xf8d7ad,!0x1,!0x1),_0x1b82a2=_0x2b2601({'row':_0x439236[_0x20df5b(0x392)]+_0x1252a1+_0x2516b6+_0x263e94,'col':_0x439236[_0x20df5b(0x113)]},_0x378223,!0x1,!0x0),_0x2c2b23=_0x2b2601({'row':_0x439236[_0x20df5b(0x392)]+_0x1252a1+_0x2516b6,'col':_0x439236[_0x20df5b(0x113)]+_0x1767f8},_0x4b4632,!0x1,!0x0),_0x3c095f=_0x2b2601({'row':_0x439236['row']+_0x1252a1+_0x2516b6+_0x263e94,'col':_0x439236[_0x20df5b(0x113)]+_0x1767f8},_0x5193a0,!0x1,!0x1);_0x317927[_0x20df5b(0x33d)]={'rowRanges':_0x1b82a2,'colRanges':_0x2c2b23,'cornerRanges':_0xc9f37c,'dataRanges':_0x3c095f,'pageRanges':_0x169534};const _0x2c2596=_0x22a312(this['_injector'],_0x43dde5,_0x1f5bed,this[_0x20df5b(0x332)]),{valueMatrix:_0x414a0f,rowInfo:_0x3603dd,colInfo:_0x346f43,cornerInfo:_0x4c469c,rowHeaderMap:_0x10a139,colHeaderMap:_0x10da99}=_0x2c2596;return _0x317927[_0x20df5b(0x12f)]={'rowInfo':_0x3603dd,'colInfo':_0x346f43,'cornerInfo':_0x4c469c},_0x317927[_0x20df5b(0x15f)]={'rowHeaderMap':_0x10a139,'colHeaderMap':_0x10da99},_0x414a0f[_0x20df5b(0x36d)]((_0x599b3f,_0x50b33e)=>{const _0x26c0d8=_0x20df5b;Object[_0x26c0d8(0x237)](_0x50b33e)[_0x26c0d8(0x36d)](_0x421eed=>{const _0x5a2998=_0x26c0d8,_0x509fa8=+_0x421eed,_0x371a87=_0x414a0f[_0x5a2998(0x187)](_0x599b3f,_0x509fa8);_0x3440fa[_0x5a2998(0x1bb)](_0x599b3f,_0x509fa8,_0x371a87);});}),this['_viewUpdate$']['next']({'unitId':_0x1b57cf,'subUnitId':_0x3d5cf2,'valueMatrix':_0x3440fa,'rangesCache':_0x317927['rangesInfo'],'pivotTableId':_0x134de2,'type':_0x37f994[_0x20df5b(0x29a)]}),this[_0x20df5b(0x98)][_0x20df5b(0x39b)](_0x1b57cf,_0x3d5cf2,_0x134de2,_0x3440fa,_0x317927[_0x20df5b(0x33d)]),this['_exclusiveRangeService']['addExclusiveRange'](_0x1b57cf,_0x3d5cf2,_0x1f2a8b,this[_0x20df5b(0x30d)](_0x317927['rangesInfo'],_0x134de2)),{'rangeCache':_0x317927[_0x20df5b(0x33d)],'matrix':_0x3440fa};}}[_0x42bb9f(0x243)](_0x27176d,_0x35e97a,_0x2ada6c,_0x94c6ff){const _0x34d380=_0x42bb9f,_0x7c167d=this[_0x34d380(0x27f)]['t'],{unitId:_0x1abb8e,subUnitId:_0x3dee5a,pivotTableId:_0x1e6603}=_0x27176d,_0x5dd0f9={'filter':_0x7c167d(_0x34d380(0x1b9)),'row':_0x7c167d(_0x34d380(0xd3)),'column':_0x7c167d(_0x34d380(0xc3)),'values':_0x7c167d(_0x34d380(0x1f7))},{matrixCache:_0x25aa84,rangesCache:_0x3179fe}=_0x3dd3c1(_0x5dd0f9,_0x2ada6c);return _0x25aa84[_0x34d380(0xbc)]((_0x109b36,_0x3ae68e,_0x47ed4d)=>{const _0x18faa9=_0x34d380;_0x35e97a[_0x18faa9(0x1bb)](_0x109b36,_0x3ae68e,_0x47ed4d);}),_0x94c6ff[_0x34d380(0x33d)]=_0x3179fe,this[_0x34d380(0x24d)]['next']({'unitId':_0x1abb8e,'subUnitId':_0x3dee5a,'valueMatrix':_0x35e97a,'rangesCache':_0x3179fe,'pivotTableId':_0x1e6603,'type':_0x27176d[_0x34d380(0x29a)],'isEmpty':!0x0}),this[_0x34d380(0x98)][_0x34d380(0x39b)](_0x1abb8e,_0x3dee5a,_0x1e6603,_0x35e97a,_0x3179fe),this[_0x34d380(0x118)][_0x34d380(0x1cb)](_0x1abb8e,_0x3dee5a,_0x1f2a8b,this[_0x34d380(0x30d)](_0x3179fe,_0x1e6603)),{'rangeCache':_0x94c6ff['rangesInfo'],'matrix':_0x35e97a};}['_createExclusiveRange'](_0x21db7d,_0x579c95){const _0x40b55f=_0x42bb9f,_0x23a0f0=[],_0x3af086=_0x26ef08(_0x21db7d);for(const _0x21b44d of _0x3af086)_0x23a0f0[_0x40b55f(0x364)]({'groupId':_0x579c95,'range':_0x21b44d});return _0x23a0f0;}['clearRenderCache'](_0x2a9dbe){const _0x7ae71f=_0x42bb9f;var _0x26bcbc,_0x1cabed,_0x4f0555,_0x312b99;const {pivotTableId:_0x51ae3f,unitId:_0x4a90bc,subUnitId:_0x4a52df}=_0x2a9dbe;if(!_0x51ae3f||!_0x4a90bc||!_0x4a52df)return;const _0x21b3e9=this[_0x7ae71f(0x15b)](_0x4a90bc,_0x4a52df),_0x23ad73=(_0x1cabed=(_0x26bcbc=this[_0x7ae71f(0x145)][_0x7ae71f(0x239)](_0x4a90bc))==null?void 0x0:_0x26bcbc[_0x7ae71f(0x239)](_0x4a52df))==null?void 0x0:_0x1cabed['get'](_0x51ae3f);if(_0x23ad73!=null&&_0x23ad73[_0x7ae71f(0x33d)]){for(const _0x542672 of Object['keys'](_0x23ad73[_0x7ae71f(0x33d)]))_0x23ad73[_0x7ae71f(0x33d)][_0x542672][_0x7ae71f(0x36d)](_0x2f726c=>{const _0x4bad18=_0x7ae71f;for(let _0x504140=_0x2f726c[_0x4bad18(0x36a)];_0x504140<=_0x2f726c['endRow'];_0x504140++)for(let _0xeac14e=_0x2f726c[_0x4bad18(0x1c9)];_0xeac14e<=_0x2f726c[_0x4bad18(0x1f1)];_0xeac14e++)_0x21b3e9[_0x4bad18(0x1b2)](_0x504140,_0xeac14e);});}_0x23ad73&&((_0x312b99=(_0x4f0555=this[_0x7ae71f(0x145)][_0x7ae71f(0x239)](_0x4a90bc))==null?void 0x0:_0x4f0555[_0x7ae71f(0x239)](_0x4a52df))==null||_0x312b99['delete'](_0x51ae3f)),this[_0x7ae71f(0x24d)][_0x7ae71f(0x287)]({'unitId':_0x4a90bc,'subUnitId':_0x4a52df,'valueMatrix':_0x21b3e9,'pivotTableId':_0x51ae3f,'rangesCache':void 0x0,'type':_0x2a9dbe['type']}),this['_exclusiveRangeService']['clearExclusiveRangesByGroupId'](_0x4a90bc,_0x4a52df,_0x1f2a8b,_0x51ae3f);}[_0x42bb9f(0x2f0)](_0x1c3403,_0xaf6583,_0x27a317){const _0x24c2c2=_0x42bb9f;var _0x4e6943,_0x53c8a5,_0x2c3fe3,_0x26b531,_0x186c60,_0x19bd5b;return this[_0x24c2c2(0x145)]['has'](_0x1c3403)||this[_0x24c2c2(0x145)]['set'](_0x1c3403,new Map()),(_0x4e6943=this[_0x24c2c2(0x145)][_0x24c2c2(0x239)](_0x1c3403))!=null&&_0x4e6943[_0x24c2c2(0xde)](_0xaf6583)||(_0x53c8a5=this[_0x24c2c2(0x145)][_0x24c2c2(0x239)](_0x1c3403))==null||_0x53c8a5[_0x24c2c2(0x22c)](_0xaf6583,new Map()),(_0x26b531=(_0x2c3fe3=this[_0x24c2c2(0x145)][_0x24c2c2(0x239)](_0x1c3403))==null?void 0x0:_0x2c3fe3[_0x24c2c2(0x239)](_0xaf6583))!=null&&_0x26b531[_0x24c2c2(0xde)](_0x27a317)||(_0x19bd5b=(_0x186c60=this[_0x24c2c2(0x145)]['get'](_0x1c3403))==null?void 0x0:_0x186c60['get'](_0xaf6583))==null||_0x19bd5b[_0x24c2c2(0x22c)](_0x27a317,{}),this[_0x24c2c2(0x145)]['get'](_0x1c3403)[_0x24c2c2(0x239)](_0xaf6583)[_0x24c2c2(0x239)](_0x27a317);}[_0x42bb9f(0x15b)](_0x5ae362,_0x5e6b8f){const _0x5d33b0=_0x42bb9f;var _0x1ec919,_0x492927;return this[_0x5d33b0(0x189)][_0x5d33b0(0xde)](_0x5ae362)||this[_0x5d33b0(0x189)][_0x5d33b0(0x22c)](_0x5ae362,new Map()),(_0x1ec919=this[_0x5d33b0(0x189)]['get'](_0x5ae362))!=null&&_0x1ec919[_0x5d33b0(0xde)](_0x5e6b8f)||(_0x492927=this[_0x5d33b0(0x189)][_0x5d33b0(0x239)](_0x5ae362))==null||_0x492927['set'](_0x5e6b8f,new _0x288eb9['ObjectMatrix']()),this[_0x5d33b0(0x189)][_0x5d33b0(0x239)](_0x5ae362)[_0x5d33b0(0x239)](_0x5e6b8f);}['getPivotTableCellData'](_0x5afd94,_0x792b68,_0x4b7906,_0x40b629){const _0x2cadc2=_0x42bb9f;var _0x38953f,_0x196052;const _0x5eb059=(_0x196052=(_0x38953f=this[_0x2cadc2(0x189)]['get'](_0x5afd94))==null?void 0x0:_0x38953f[_0x2cadc2(0x239)](_0x792b68))==null?void 0x0:_0x196052[_0x2cadc2(0x187)](_0x4b7906,_0x40b629);if(_0x5eb059!=null)return _0x5eb059;}['getPivotTableIdByCell'](_0x3b0161,_0x2966ae,_0x5cee6d,_0x126f35){const _0x71ede8=_0x42bb9f;var _0x49fd3b;const _0x1e7d72=_0x288eb9['cellToRange'](_0x5cee6d,_0x126f35),_0x2b537f=(_0x49fd3b=this[_0x71ede8(0x145)][_0x71ede8(0x239)](_0x3b0161))==null?void 0x0:_0x49fd3b[_0x71ede8(0x239)](_0x2966ae);return _0x2b537f?Array['from'](_0x2b537f[_0x71ede8(0x237)]())[_0x71ede8(0x261)](_0x78217d=>{const _0x8e8d0a=_0x71ede8,_0x2d76be=_0x2b537f[_0x8e8d0a(0x239)](_0x78217d),_0x2d803a=_0x2d76be==null?void 0x0:_0x2d76be['rangesInfo'];return _0x2d803a?Object[_0x8e8d0a(0x237)](_0x2d803a)[_0x8e8d0a(0x281)](_0x13d8d3=>_0x2d803a[_0x13d8d3]['some'](_0x2c34af=>_0x288eb9[_0x8e8d0a(0x25d)][_0x8e8d0a(0x2f4)](_0x2c34af,_0x1e7d72))):!0x1;}):void 0x0;}[_0x42bb9f(0x2d8)](_0x40cbf9,_0x30f469,_0x1a98cf){const _0x337500=_0x42bb9f;var _0x567ebb;const _0x54a421=(_0x567ebb=this[_0x337500(0x145)][_0x337500(0x239)](_0x40cbf9))==null?void 0x0:_0x567ebb['get'](_0x30f469),_0x30bef8=[];return _0x54a421&&Array['from'](_0x54a421[_0x337500(0x237)]())[_0x337500(0x36d)](_0x3a68b2=>{const _0x335bb4=_0x337500,_0x42a630=_0x54a421[_0x335bb4(0x239)](_0x3a68b2),_0x4e51a1=_0x42a630==null?void 0x0:_0x42a630[_0x335bb4(0x33d)];if(_0x4e51a1)for(const _0x2fe900 of Object[_0x335bb4(0xe2)](_0x4e51a1)){let _0x594d93=!0x1;for(const _0x2f49c6 of _0x2fe900)if(_0x288eb9[_0x335bb4(0x25d)][_0x335bb4(0x1e4)](_0x2f49c6,_0x1a98cf)){_0x30bef8[_0x335bb4(0x364)](_0x3a68b2),_0x594d93=!0x0;break;}if(_0x594d93)break;}}),_0x30bef8;}[_0x42bb9f(0x16b)](_0x569b61,_0x38a07c){const _0x8f8af0=_0x42bb9f;var _0x584116,_0x192a74;return(_0x192a74=(_0x584116=this[_0x8f8af0(0x189)][_0x8f8af0(0x239)](_0x569b61))==null?void 0x0:_0x584116[_0x8f8af0(0x239)](_0x38a07c))!=null?_0x192a74:new _0x288eb9[(_0x8f8af0(0x280))]();}[_0x42bb9f(0x1c8)](_0xe3f82,_0x656094){const _0x4763e9=_0x42bb9f;var _0x38f765;return(_0x38f765=this[_0x4763e9(0x145)][_0x4763e9(0x239)](_0xe3f82))==null?void 0x0:_0x38f765[_0x4763e9(0x239)](_0x656094);}[_0x42bb9f(0x2ab)](_0x2b5f21,_0x3abc6d,_0x23bd7){const _0x137954=_0x42bb9f;var _0xd0f1f8,_0x346905;return(_0x346905=(_0xd0f1f8=this[_0x137954(0x145)][_0x137954(0x239)](_0x2b5f21))==null?void 0x0:_0xd0f1f8['get'](_0x3abc6d))==null?void 0x0:_0x346905['get'](_0x23bd7);}[_0x42bb9f(0x1b6)](_0x26830c){const _0x23ec09=_0x42bb9f;this[_0x23ec09(0x145)][_0x23ec09(0x1ca)](_0x26830c),this[_0x23ec09(0x189)][_0x23ec09(0x1ca)](_0x26830c);}['markDirty'](_0x34be64,_0x354568){const _0x5c64f2=_0x42bb9f;this[_0x5c64f2(0x218)][_0x5c64f2(0x287)]({'unitId':_0x34be64,'subUnitId':_0x354568});}},_0x5bf755['SheetsPivotTableAdaptorModel']=_0x6898dc([_0x2de5c7(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9['LocaleService'])),_0x2de5c7(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x1fb)])),_0x2de5c7(0x2,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755[_0x42bb9f(0x2e2)])),_0x2de5c7(0x3,_0x288eb9['Inject'](_0x288eb9[_0x42bb9f(0x132)])),_0x2de5c7(0x4,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8['IExclusiveRangeService']))],_0x5bf755['SheetsPivotTableAdaptorModel']);var _0x2dffdc=Object[_0x42bb9f(0x235)],_0x36df02=(_0x3a3311,_0x1a8cc0,_0x274a3d,_0x5c3c2a)=>{const _0x2b00cd=_0x42bb9f;for(var _0x48b930=_0x5c3c2a>0x1?void 0x0:_0x5c3c2a?_0x2dffdc(_0x1a8cc0,_0x274a3d):_0x1a8cc0,_0x5ad724=_0x3a3311[_0x2b00cd(0x8f)]-0x1,_0x1d8084;_0x5ad724>=0x0;_0x5ad724--)(_0x1d8084=_0x3a3311[_0x5ad724])&&(_0x48b930=_0x1d8084(_0x48b930)||_0x48b930);return _0x48b930;},_0x361ad8=(_0x22a075,_0x2834de)=>(_0x1b98f7,_0x2462ef)=>_0x2834de(_0x1b98f7,_0x2462ef,_0x22a075);_0x5bf755[_0x42bb9f(0x19e)]=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x496a80,_0xd48a57){const _0x3695fb=_0x42bb9f;super(),_0x4fb07d(this,_0x3695fb(0x2cc),new _0x288eb9[(_0x3695fb(0xd4))]({'PIVOT_PERFORM_CHECK':_0x5ce99e})),_0x4fb07d(this,_0x3695fb(0x26a),new _0x288eb9[(_0x3695fb(0x2ca))]({'PIVOT_MUTATION_GENERATE':_0x1ab638})),(this['_sheetInterceptorService']=_0x496a80,this['_sheetsPivotTableAdaptorModel']=_0xd48a57,this[_0x3695fb(0x1eb)]());}['_init'](){const _0x3c895f=_0x42bb9f;this[_0x3c895f(0x1db)]();}[_0x42bb9f(0x9c)](_0x279bd7){const _0x18b9ad=_0x42bb9f;return this[_0x18b9ad(0x2cc)][_0x18b9ad(0x1f9)](_0x5ce99e)(!0x1,_0x279bd7);}[_0x42bb9f(0x1db)](){const _0x8c0f95=_0x42bb9f;this['disposeWithMe'](this[_0x8c0f95(0x1bc)][_0x8c0f95(0x2db)](_0x2e27a8['INTERCEPTOR_POINT']['CELL_CONTENT'],{'priority':0xc8,'effect':_0x288eb9[_0x8c0f95(0x164)][_0x8c0f95(0x34e)]|_0x288eb9[_0x8c0f95(0x164)][_0x8c0f95(0x2a3)],'handler':(_0x50dba5,_0x2fa83e,_0x5a8ce1)=>{const _0x24904a=_0x8c0f95,{row:_0x416dce,col:_0x2e83cd,unitId:_0x19bfcd,subUnitId:_0x191f13,workbook:_0x5b1e3e}=_0x2fa83e,_0x26dc43=this[_0x24904a(0xb2)][_0x24904a(0x273)](_0x19bfcd,_0x191f13,_0x416dce,_0x2e83cd);if(!_0x26dc43)return _0x5a8ce1(_0x50dba5);const _0x41b9c0={..._0x50dba5};(_0x26dc43['v']||_0x26dc43['v']===0x0)&&(_0x41b9c0['v']=_0x26dc43['v']),_0x26dc43['t']&&(_0x41b9c0['t']=_0x26dc43['t']);const _0x15cc0f=(typeof(_0x50dba5==null?void 0x0:_0x50dba5['s'])==_0x24904a(0x16e)?_0x5b1e3e[_0x24904a(0xa4)]()[_0x24904a(0x239)](_0x50dba5==null?void 0x0:_0x50dba5['s']):_0x50dba5==null?void 0x0:_0x50dba5['s'])||{},_0x10cbbc=_0x5b1e3e[_0x24904a(0xa4)]()[_0x24904a(0x239)](_0x26dc43['s']),_0xf866ca={..._0x10cbbc,..._0x15cc0f};_0x10cbbc!=null&&_0x10cbbc['n']&&(_0xf866ca['n']=_0x10cbbc['n']);const _0x25b3b7=_0x5b1e3e[_0x24904a(0xa4)]()['setValue'](_0xf866ca);return _0x41b9c0['s']=_0x25b3b7,(_0x26dc43[_0x24904a(0x1a2)]===_0x2bd302[_0x24904a(0x227)]['Collapse']||_0x26dc43[_0x24904a(0x1a2)]===_0x2bd302['PivotCellStyleTypeEnum'][_0x24904a(0x203)])&&(_0x41b9c0[_0x24904a(0x1d9)]={},_0x41b9c0[_0x24904a(0x1d9)]['leftOffset']=_0x4b3044),_0x5a8ce1(_0x41b9c0);}}));}},_0x5bf755['SheetsPivotTableService']=_0x36df02([_0x361ad8(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8['SheetInterceptorService'])),_0x361ad8(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755['SheetsPivotTableAdaptorModel']))],_0x5bf755[_0x42bb9f(0x19e)]);const _0x33e7c6={'id':_0x42bb9f(0x124),'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'handler':(_0x14a123,_0x31cee5)=>{const _0x1c9395=_0x42bb9f;if(!_0x31cee5)return!0x1;if(!!_0x14a123[_0x1c9395(0x239)](_0x288eb9['IConfigService'])[_0x1c9395(0x36b)](_0x34280f))return!0x0;const {pivotTableId:_0x2d82be,fieldJSON:_0x3bcf96,unitId:_0x18bd13,subUnitId:_0x16fd43}=_0x31cee5;let _0x8fe99d;const {dataFieldType:_0x419278,id:_0x24934b,name:_0x4cc6db,hexCode:_0xbf07a5,originalFieldId:_0x115744}=_0x3bcf96;if(_0x419278===_0x2bd302[_0x1c9395(0x184)][_0x1c9395(0xb6)]&&(_0x8fe99d=new _0x2bd302['DateGroupField'](_0x24934b,_0x4cc6db,_0xbf07a5,_0x115744)),!_0x8fe99d)return!0x1;const _0x5ccefa=_0x14a123[_0x1c9395(0x239)](_0x5bf755[_0x1c9395(0x1ae)]),_0x3340d6=_0x5ccefa['getDataFieldManager'](_0x18bd13),_0x5e0e9d=_0x3340d6['getCollection'](_0x2d82be);_0x3340d6['addDataFieldWithoutUnitInfo'](_0x8fe99d),_0x5e0e9d[_0x1c9395(0x2e4)](_0x8fe99d[_0x1c9395(0x37c)](),_0x8fe99d[_0x1c9395(0x2e8)]());const _0x154f01=_0x5e0e9d['getFieldById'](_0x8fe99d['getOriginFieldId']());_0x154f01&&_0x8fe99d[_0x1c9395(0x14a)](_0x154f01);const _0x4562ad=_0x5ccefa['getPivotTableConfig'](_0x18bd13,_0x16fd43,_0x2d82be);return _0x5ccefa[_0x1c9395(0x1d8)]({'unitId':_0x18bd13,'subUnitId':_0x16fd43,'token':_0x2d82be,'type':_0x2de5fe[_0x1c9395(0x1d1)],'pivotConfig':_0x4562ad}),!0x0;}},_0xb3cfa6={'id':'sheet.mutation.remove-group-collection','type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'handler':(_0x2c6081,_0x47d5ad)=>{const _0x5ee410=_0x42bb9f;if(!_0x47d5ad)return!0x1;if(!!_0x2c6081[_0x5ee410(0x239)](_0x288eb9[_0x5ee410(0xd5)])['getConfig'](_0x34280f))return!0x0;const {pivotTableId:_0x3ae1f7,dataFieldId:_0x1cdc6f,unitId:_0x53000d,subUnitId:_0x293a15}=_0x47d5ad,_0x31f262=_0x2c6081[_0x5ee410(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),_0x5e1f3c=_0x31f262[_0x5ee410(0x138)](_0x53000d);_0x5e1f3c['getCollection'](_0x3ae1f7)[_0x5ee410(0x309)](_0x1cdc6f);let _0x3cfdfb=!0x0;for(const _0x12e056 in _0x5e1f3c['collections'])if(_0x5e1f3c[_0x5ee410(0x211)][_0x12e056][_0x5ee410(0x15d)]()[_0x5ee410(0x155)](_0x1cdc6f)){_0x3cfdfb=!0x1;break;}_0x3cfdfb&&_0x5e1f3c['deleteDataField'](_0x1cdc6f);const _0x4b933c=_0x31f262[_0x5ee410(0x9b)](_0x53000d,_0x293a15,_0x3ae1f7);return _0x31f262[_0x5ee410(0x1d8)]({'unitId':_0x53000d,'subUnitId':_0x293a15,'token':_0x3ae1f7,'type':_0x2de5fe[_0x5ee410(0x1d1)],'pivotConfig':_0x4b933c}),!0x0;}};function _0x12b438(_0xf85be7,_0x5e8519){const _0x35102d=_0x42bb9f;switch(_0x5e8519){case _0x2bd302[_0x35102d(0x25f)][_0x35102d(0x34e)]:return _0xf85be7[_0x35102d(0x18c)];case _0x2bd302['PivotTableFiledAreaEnum'][_0x35102d(0x328)]:return _0xf85be7[_0x35102d(0x267)];case _0x2bd302[_0x35102d(0x25f)][_0x35102d(0x1d7)]:return _0xf85be7[_0x35102d(0x1ec)];case _0x2bd302['PivotTableFiledAreaEnum'][_0x35102d(0x2b9)]:return _0xf85be7[_0x35102d(0x33a)];default:return[];}}function _0x458bbf(_0x3e3548,_0x29c46e){return _0x3e3548['measure'][_0x29c46e]||_0x3e3548['dimension'][_0x29c46e];}function _0x42f3ae(_0x3c4457,_0x3e7ff7){const _0xabc01e=_0x42bb9f,{area:_0x42aa52,fieldJson:_0xec9c18,index:_0x2191dc}=_0x3e7ff7;_0x42aa52===_0x2bd302[_0xabc01e(0x25f)]['Value']?_0x3c4457[_0xabc01e(0x16f)][_0xec9c18['id']]=_0xec9c18:_0x3c4457[_0xabc01e(0x1dd)][_0xec9c18['id']]=_0xec9c18,_0x12b438(_0x3c4457,_0x42aa52)['splice'](_0x2191dc,0x0,_0xec9c18['id']);}function _0x159167(_0x37640e,_0xa3d33b){const _0x51d837=_0x42bb9f,{area:_0x4d1e9b,fieldId:_0xc23c33,index:_0x13c7f0}=_0xa3d33b;_0x4d1e9b===_0x2bd302[_0x51d837(0x25f)][_0x51d837(0x34e)]?delete _0x37640e[_0x51d837(0x16f)][_0xc23c33]:delete _0x37640e[_0x51d837(0x1dd)][_0xc23c33],_0x12b438(_0x37640e,_0x4d1e9b)[_0x51d837(0x362)](_0x13c7f0,0x1);}function _0x51417c(_0x17c924,_0x467102){const _0x332a5d=_0x42bb9f,{fieldId:_0x37a640,name:_0x3b52ae}=_0x467102,_0x300ea8=_0x458bbf(_0x17c924,_0x37a640);_0x300ea8&&(_0x300ea8[_0x332a5d(0x373)]=_0x3b52ae);}function _0x126357(_0x2a6bee,_0xcbadeb){const _0x55b53b=_0x42bb9f,{fieldId:_0x57ae68,collapse:_0xcdcc4a,item:_0x49012a}=_0xcbadeb;_0x49012a!==void 0x0?(_0x2a6bee[_0x55b53b(0x122)][_0x57ae68]=_0x2a6bee[_0x55b53b(0x122)][_0x57ae68]||{},_0x2a6bee[_0x55b53b(0x122)][_0x57ae68][_0x49012a]=_0xcdcc4a):_0x2a6bee[_0x55b53b(0x122)][_0x57ae68]=_0xcdcc4a;}function _0xb04600(_0x25712a,_0x560f4d){const _0x414750=_0x42bb9f,{fieldId:_0x414215,format:_0xe70da5}=_0x560f4d,_0xb54dbf=_0x458bbf(_0x25712a,_0x414215);_0xb54dbf&&(_0xb54dbf[_0x414750(0x2da)]=_0xe70da5);}function _0x21a9e4(_0x235bd9,_0x1aa227){const _0x332698=_0x42bb9f,{fieldId:_0x8b180e,filterInfo:_0x5a7582}=_0x1aa227,_0x3ff734=_0x458bbf(_0x235bd9,_0x8b180e);_0x3ff734&&(_0x3ff734[_0x332698(0xcf)]=_0x5a7582);}function _0x4224e6(_0x3ad708,_0x3067f8){const _0x1d8cdb=_0x42bb9f,{fieldId:_0x109ec6,filterInfo:_0x1de8eb}=_0x3067f8,_0x5cf448=_0x3ad708[_0x1d8cdb(0x2d7)][_0x1d8cdb(0xdc)](_0x54972e=>_0x54972e[_0x1d8cdb(0x304)]!==_0x109ec6);_0x1de8eb&&_0x5cf448['push']({'fieldId':_0x109ec6,'filterInfo':_0x1de8eb}),_0x3ad708[_0x1d8cdb(0x2d7)]=_0x5cf448;}function _0x4dd376(_0x9adb21,_0x567850){const {fieldId:_0x35ac91,subtotalType:_0x4da019}=_0x567850,_0x21fad1=_0x458bbf(_0x9adb21,_0x35ac91);_0x21fad1&&(_0x21fad1['subtotal']=_0x4da019);}function _0xebffa1(_0x162496,_0x312edb){const _0xfc216e=_0x42bb9f,{fieldId:_0x273f38,oldArea:_0x4ca2c8,area:_0x2e054c,oldIndex:_0x408626,index:_0x363c3a}=_0x312edb,_0x142c9f=_0x4ca2c8!==_0x2bd302['PivotTableFiledAreaEnum'][_0xfc216e(0x34e)]&&_0x2e054c===_0x2bd302[_0xfc216e(0x25f)]['Value'],_0x12ac7b=_0x4ca2c8===_0x2bd302['PivotTableFiledAreaEnum'][_0xfc216e(0x34e)]&&_0x2e054c!==_0x2bd302[_0xfc216e(0x25f)][_0xfc216e(0x34e)];if(_0x142c9f||_0x12ac7b){const _0x45706a=_0x458bbf(_0x162496,_0x273f38);_0x45706a&&(_0x142c9f?(delete _0x162496[_0xfc216e(0x1dd)][_0x273f38],_0x162496[_0xfc216e(0x16f)][_0x273f38]=_0x45706a):(delete _0x162496[_0xfc216e(0x16f)][_0x273f38],_0x162496['dimension'][_0x273f38]=_0x45706a));}const _0x3a1c85=_0x12b438(_0x162496,_0x4ca2c8),_0x51db56=_0x12b438(_0x162496,_0x2e054c);_0x3a1c85[_0xfc216e(0x362)](_0x408626,0x1),_0x51db56[_0xfc216e(0x362)](_0x363c3a,0x0,_0x273f38);}function _0x26cda0(_0x633b22,_0x12c99e){const _0x3c0123=_0x42bb9f,{valuePosition:_0x59384c,index:_0x6718e9}=_0x12c99e;_0x633b22[_0x3c0123(0x2a2)]=_0x59384c,_0x633b22['valueIndex']=_0x6718e9;}function _0x253248(_0x43c33c,_0x435ed4){const _0x412bd4=_0x42bb9f,{tableFieldId:_0xec5c13,sourceName:_0x8b3e81,dataFieldId:_0x3f89ac}=_0x435ed4,_0x574535=_0x458bbf(_0x43c33c,_0xec5c13);_0x574535&&(_0x574535[_0x412bd4(0x39d)]=_0x8b3e81,_0x574535[_0x412bd4(0x160)]=_0x3f89ac);}function _0x8d59bd(_0x4d0744,_0x437a7c){const _0x3047f6=_0x42bb9f,{fieldId:_0x40965c,sortInfo:_0x2c415a}=_0x437a7c,_0x1b8bc9=_0x458bbf(_0x4d0744,_0x40965c);_0x1b8bc9&&(_0x1b8bc9[_0x3047f6(0xf8)]=_0x2c415a);}function _0x2e5fd5(_0x3f58fd,_0x275b58){const _0x3875e0=_0x42bb9f,{options:_0x466bdc}=_0x275b58;_0x3f58fd[_0x3875e0(0x199)]={..._0x3f58fd[_0x3875e0(0x199)],..._0x466bdc};}const _0x340732={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x10e),'handler'(_0x4c526b,_0x23a918){const _0x4c1973=_0x42bb9f;if(!_0x23a918)return!0x1;if(!!_0x4c526b['get'](_0x288eb9[_0x4c1973(0xd5)])[_0x4c1973(0x36b)](_0x34280f))return!0x0;const _0x614b7c=_0x4c526b[_0x4c1973(0x239)](_0x5bf755[_0x4c1973(0x1ae)]),{pivotTableId:_0x3f557a,fieldJson:_0x50c125,area:_0x3cbc66,index:_0x12988a,unitId:_0x4a6cb9,subUnitId:_0x13a52e}=_0x23a918,_0x4a235e=_0x614b7c[_0x4c1973(0x25c)](_0x3f557a);if(!_0x4a235e)return!0x1;let _0x1f78d0;_0x3cbc66===_0x2bd302[_0x4c1973(0x25f)][_0x4c1973(0x34e)]?_0x1f78d0=_0x2bd302[_0x4c1973(0x1a5)](_0x50c125):_0x1f78d0=_0x2bd302[_0x4c1973(0xe7)](_0x50c125),_0x4a235e[_0x4c1973(0x2e4)](_0x1f78d0,_0x3cbc66,_0x12988a);const _0x400ea1=_0x614b7c[_0x4c1973(0xa0)](_0x4a6cb9,_0x13a52e,_0x3f557a);_0x42f3ae(_0x400ea1,_0x23a918);const _0x4dd2b6=_0x614b7c['getPivotTableConfig'](_0x4a6cb9,_0x13a52e,_0x3f557a);return _0x614b7c['addDirtyPivotTable']({'unitId':_0x4a6cb9,'subUnitId':_0x13a52e,'token':_0x3f557a,'type':_0x2de5fe[_0x4c1973(0x1d1)],'pivotConfig':_0x4dd2b6}),!0x0;}},_0x8bbbe={'type':_0x288eb9['CommandType']['MUTATION'],'id':_0x42bb9f(0x2df),'handler'(_0x2462af,_0x94ac1e){const _0x2e0b61=_0x42bb9f;if(!_0x94ac1e)return!0x1;if(!!_0x2462af[_0x2e0b61(0x239)](_0x288eb9[_0x2e0b61(0xd5)])[_0x2e0b61(0x36b)](_0x34280f))return!0x0;const _0xc32ba2=_0x2462af['get'](_0x5bf755[_0x2e0b61(0x1ae)]),{pivotTableId:_0x326a5e,fieldId:_0x17b35a,unitId:_0x57f692,subUnitId:_0x5da6da}=_0x94ac1e,_0x26254f=_0xc32ba2['getPivotTableInstance'](_0x326a5e);if(!_0x26254f)return!0x1;_0x26254f[_0x2e0b61(0x115)](_0x17b35a);const _0x5c632c=_0xc32ba2[_0x2e0b61(0xa0)](_0x57f692,_0x5da6da,_0x326a5e);_0x159167(_0x5c632c,_0x94ac1e);const _0x5f588a=_0xc32ba2[_0x2e0b61(0x9b)](_0x57f692,_0x5da6da,_0x326a5e);return _0xc32ba2[_0x2e0b61(0x1d8)]({'unitId':_0x57f692,'subUnitId':_0x5da6da,'token':_0x326a5e,'type':_0x2de5fe[_0x2e0b61(0x1d1)],'pivotConfig':_0x5f588a}),!0x0;}},_0x3bf8ba={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x39c),'handler'(_0x50ea5d,_0x28ac7b){const _0x338b89=_0x42bb9f;if(!_0x28ac7b)return!0x1;if(!!_0x50ea5d[_0x338b89(0x239)](_0x288eb9['IConfigService'])[_0x338b89(0x36b)](_0x34280f))return!0x0;const _0x462904=_0x50ea5d[_0x338b89(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),{unitId:_0xdfc355,subUnitId:_0x3c770d,pivotTableId:_0x371239,fieldId:_0x175ee7,name:_0x20ad70}=_0x28ac7b,_0x33180b=_0x462904[_0x338b89(0x25c)](_0x371239);if(!_0x33180b)return!0x1;_0x33180b[_0x338b89(0x33c)](_0x175ee7,_0x20ad70);const _0xb9e2b3=_0x462904[_0x338b89(0xa0)](_0xdfc355,_0x3c770d,_0x371239);return _0x51417c(_0xb9e2b3,_0x28ac7b),_0x462904['addDirtyPivotTable']({'unitId':_0xdfc355,'subUnitId':_0x3c770d,'token':_0x371239,'type':_0x2de5fe[_0x338b89(0x1d1)]}),!0x0;}},_0x3f8ba0={'type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x45e713,_0x5c7d52){const _0x1efdc1=_0x42bb9f;if(!_0x5c7d52)return!0x1;if(!!_0x45e713['get'](_0x288eb9[_0x1efdc1(0xd5)])[_0x1efdc1(0x36b)](_0x34280f))return!0x0;const _0x9bcd15=_0x45e713[_0x1efdc1(0x239)](_0x5bf755[_0x1efdc1(0x1ae)]),{unitId:_0x28e7d3,subUnitId:_0x1ccf3c,pivotTableId:_0x400933,fieldId:_0x421686,collapse:_0x3860a4,item:_0x3297bd}=_0x5c7d52,_0x1ffa15=_0x9bcd15[_0x1efdc1(0x25c)](_0x400933);if(!_0x1ffa15)return!0x1;_0x1ffa15[_0x1efdc1(0x1af)](_0x421686,_0x3860a4,_0x3297bd);const _0x2e6742=_0x9bcd15[_0x1efdc1(0xa0)](_0x28e7d3,_0x1ccf3c,_0x400933);return _0x126357(_0x2e6742,_0x5c7d52),_0x9bcd15[_0x1efdc1(0x1d8)]({'unitId':_0x28e7d3,'subUnitId':_0x1ccf3c,'token':_0x400933,'type':_0x2de5fe[_0x1efdc1(0x1d1)]}),!0x0;}},_0x286fdb={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x1fe),'handler'(_0x15de48,_0x20377d){const _0x11038e=_0x42bb9f;if(!_0x20377d)return!0x1;if(!!_0x15de48[_0x11038e(0x239)](_0x288eb9[_0x11038e(0xd5)])[_0x11038e(0x36b)](_0x34280f))return!0x0;const _0x2bcce8=_0x15de48[_0x11038e(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),{unitId:_0x4437d6,subUnitId:_0x319839,pivotTableId:_0xe25090,fieldId:_0x5a9907,format:_0x20d76b}=_0x20377d,_0x238e6a=_0x2bcce8['getPivotTableInstance'](_0xe25090);if(!_0x238e6a)return!0x1;_0x238e6a['setFieldFormat'](_0x5a9907,_0x20d76b);const _0x319fe9=_0x2bcce8[_0x11038e(0xa0)](_0x4437d6,_0x319839,_0xe25090);return _0xb04600(_0x319fe9,_0x20377d),_0x2bcce8[_0x11038e(0x1d8)]({'unitId':_0x4437d6,'subUnitId':_0x319839,'token':_0xe25090,'type':_0x2de5fe[_0x11038e(0x1d1)]}),!0x0;}},_0x44944d={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x2a6),'handler'(_0x2d740f,_0x814606){const _0x100296=_0x42bb9f;if(!_0x814606)return!0x1;if(!!_0x2d740f[_0x100296(0x239)](_0x288eb9[_0x100296(0xd5)])[_0x100296(0x36b)](_0x34280f))return!0x0;const _0x1cc7da=_0x2d740f['get'](_0x5bf755['SheetsPivotDataSourceModel']),{unitId:_0x3ae706,subUnitId:_0x4e4680,pivotTableId:_0xe066f8,fieldId:_0xa477c4,filterInfo:_0x432604}=_0x814606,_0x4bc270=_0x1cc7da[_0x100296(0x25c)](_0xe066f8);if(!_0x4bc270)return!0x1;_0x4bc270[_0x100296(0x286)](_0xa477c4,_0x432604);const _0x5bec54=_0x1cc7da[_0x100296(0xa0)](_0x3ae706,_0x4e4680,_0xe066f8);return _0x21a9e4(_0x5bec54,_0x814606),_0x1cc7da[_0x100296(0x1d8)]({'unitId':_0x3ae706,'subUnitId':_0x4e4680,'token':_0xe066f8,'type':_0x2de5fe[_0x100296(0x1d1)]}),!0x0;}},_0x845d4f={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x245),'handler'(_0x94a0c4,_0x4d3edb){const _0x196ed3=_0x42bb9f;if(!_0x4d3edb)return!0x1;if(!!_0x94a0c4[_0x196ed3(0x239)](_0x288eb9[_0x196ed3(0xd5)])[_0x196ed3(0x36b)](_0x34280f))return!0x0;const _0x3a2060=_0x94a0c4['get'](_0x5bf755[_0x196ed3(0x1ae)]),{unitId:_0x5bbc48,subUnitId:_0x2aa279,pivotTableId:_0x5261ed,options:_0x1d6cad}=_0x4d3edb,_0x2e4488=_0x3a2060[_0x196ed3(0x25c)](_0x5261ed);if(!_0x2e4488)return!0x1;_0x2e4488[_0x196ed3(0x97)](_0x1d6cad);const _0x9a8502=_0x3a2060[_0x196ed3(0xa0)](_0x5bbc48,_0x2aa279,_0x5261ed);return _0x2e5fd5(_0x9a8502,_0x4d3edb),_0x3a2060[_0x196ed3(0x1d8)]({'unitId':_0x5bbc48,'subUnitId':_0x2aa279,'token':_0x5261ed,'type':_0x2de5fe[_0x196ed3(0x1d1)]}),!0x0;}},_0x4c05bf={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x2ef),'handler'(_0x133c1f,_0x262c68){const _0x21365d=_0x42bb9f;if(!_0x262c68)return!0x1;if(!!_0x133c1f[_0x21365d(0x239)](_0x288eb9[_0x21365d(0xd5)])[_0x21365d(0x36b)](_0x34280f))return!0x0;const _0x2d3e06=_0x133c1f[_0x21365d(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),{unitId:_0x4cd5f2,subUnitId:_0x5ec7bf,pivotTableId:_0x252106,sortInfo:_0x29db8d,fieldId:_0x50cb26}=_0x262c68,_0xcc4d1f=_0x2d3e06[_0x21365d(0x25c)](_0x252106);if(!_0xcc4d1f)return!0x1;_0xcc4d1f['setSortInfo'](_0x50cb26,_0x29db8d);const _0x3ca3eb=_0x2d3e06[_0x21365d(0xa0)](_0x4cd5f2,_0x5ec7bf,_0x252106);return _0x8d59bd(_0x3ca3eb,_0x262c68),_0x2d3e06[_0x21365d(0x1d8)]({'unitId':_0x4cd5f2,'subUnitId':_0x5ec7bf,'token':_0x252106,'type':_0x2de5fe[_0x21365d(0x1d1)]}),!0x0;}},_0x194ae1={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x4654a3,_0x2cf164){const _0x4f210f=_0x42bb9f;if(!_0x2cf164)return!0x1;if(!!_0x4654a3['get'](_0x288eb9[_0x4f210f(0xd5)])[_0x4f210f(0x36b)](_0x34280f))return!0x0;const _0x3afcf8=_0x4654a3['get'](_0x5bf755[_0x4f210f(0x1ae)]),{unitId:_0x2a6718,subUnitId:_0x55f8d0,pivotTableId:_0x592979,fieldId:_0x12ddb0,subtotalType:_0x2690d3}=_0x2cf164,_0x29d541=_0x3afcf8[_0x4f210f(0x25c)](_0x592979);if(!_0x29d541)return!0x1;_0x29d541['setSubtotalType'](_0x12ddb0,_0x2690d3);const _0x2d40e2=_0x3afcf8['getPivotTableModelConfig'](_0x2a6718,_0x55f8d0,_0x592979);return _0x4dd376(_0x2d40e2,_0x2cf164),_0x3afcf8[_0x4f210f(0x1d8)]({'unitId':_0x2a6718,'subUnitId':_0x55f8d0,'token':_0x592979,'type':_0x2de5fe[_0x4f210f(0x1d1)]}),!0x0;}},_0x4715f0={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x329),'handler'(_0x59a0b2,_0x5e6c89){const _0x590f9f=_0x42bb9f;if(!_0x5e6c89)return!0x1;if(!!_0x59a0b2[_0x590f9f(0x239)](_0x288eb9['IConfigService'])[_0x590f9f(0x36b)](_0x34280f))return!0x0;const _0x270814=_0x59a0b2[_0x590f9f(0x239)](_0x5bf755[_0x590f9f(0x1ae)]),{unitId:_0x26b26e,subUnitId:_0xa744fc,pivotTableId:_0x447a05,fieldId:_0x444696,filterInfo:_0xaaeb4c}=_0x5e6c89,_0xfb1c73=_0x270814[_0x590f9f(0x25c)](_0x447a05);if(!_0xfb1c73)return!0x1;_0xfb1c73['setValueFilterInfo'](_0x444696,_0xaaeb4c);const _0x180276=_0x270814[_0x590f9f(0xa0)](_0x26b26e,_0xa744fc,_0x447a05);return _0x4224e6(_0x180276,_0x5e6c89),_0x270814[_0x590f9f(0x1d8)]({'unitId':_0x26b26e,'subUnitId':_0xa744fc,'token':_0x447a05,'type':_0x2de5fe['Set']}),!0x0;}},_0x26377e={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x331),'handler'(_0x4d1967,_0x3b9ee5){const _0x3b5b8=_0x42bb9f;if(!_0x3b9ee5)return!0x1;if(!!_0x4d1967['get'](_0x288eb9[_0x3b5b8(0xd5)])['getConfig'](_0x34280f))return!0x0;const _0x2f9b1a=_0x4d1967[_0x3b5b8(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),{unitId:_0x2aff7e,subUnitId:_0x3465ed,pivotTableId:_0x3e21b9,area:_0x3be8e6,index:_0x1d7297,fieldId:_0x364396}=_0x3b9ee5,_0x598b12=_0x2f9b1a[_0x3b5b8(0x25c)](_0x3e21b9);if(!_0x598b12)return!0x1;_0x598b12[_0x3b5b8(0x375)](_0x364396,_0x3be8e6,_0x1d7297);const _0x276e0f=_0x2f9b1a['getPivotTableModelConfig'](_0x2aff7e,_0x3465ed,_0x3e21b9);return _0xebffa1(_0x276e0f,_0x3b9ee5),_0x2f9b1a[_0x3b5b8(0x1d8)]({'unitId':_0x2aff7e,'subUnitId':_0x3465ed,'token':_0x3e21b9,'type':_0x2de5fe[_0x3b5b8(0x1d1)]}),!0x0;}},_0x30ddcd={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0x20b)],'id':_0x42bb9f(0x2f8),'handler'(_0x4618ec,_0x5c02e0){const _0x3ca589=_0x42bb9f;if(!_0x5c02e0)return!0x1;if(!!_0x4618ec['get'](_0x288eb9[_0x3ca589(0xd5)])['getConfig'](_0x34280f))return!0x0;const _0x15e6ce=_0x4618ec[_0x3ca589(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),{unitId:_0x2c8764,subUnitId:_0x2aa440,pivotTableId:_0x23013d,sourceName:_0x3ceb43,dataFieldId:_0x446ddc,tableFieldId:_0x33845a}=_0x5c02e0,_0x5bcfa0=_0x15e6ce[_0x3ca589(0x25c)](_0x23013d);if(!_0x5bcfa0)return!0x1;_0x5bcfa0[_0x3ca589(0x183)](_0x33845a,_0x3ceb43,_0x446ddc);const _0x21c64d=_0x15e6ce[_0x3ca589(0xa0)](_0x2c8764,_0x2aa440,_0x23013d);return _0x253248(_0x21c64d,_0x5c02e0),_0x15e6ce[_0x3ca589(0x1d8)]({'unitId':_0x2c8764,'subUnitId':_0x2aa440,'token':_0x23013d,'type':_0x2de5fe['Set']}),!0x0;}},_0x1e7ed4={'type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'id':_0x42bb9f(0x2f6),'handler'(_0x3c185f,_0xe0f64c){const _0x475d19=_0x42bb9f;if(!_0xe0f64c)return!0x1;if(!!_0x3c185f[_0x475d19(0x239)](_0x288eb9[_0x475d19(0xd5)])[_0x475d19(0x36b)](_0x34280f))return!0x0;const _0x148345=_0x3c185f[_0x475d19(0x239)](_0x5bf755[_0x475d19(0x1ae)]),{unitId:_0x1f1022,subUnitId:_0x4cfef0,pivotTableId:_0x165779,valuePosition:_0x21104d,index:_0x1bfa41}=_0xe0f64c,_0x3c836a=_0x148345[_0x475d19(0x25c)](_0x165779);if(!_0x3c836a)return!0x1;_0x3c836a[_0x475d19(0x162)](_0x21104d,_0x1bfa41);const _0x1c9f68=_0x148345[_0x475d19(0xa0)](_0x1f1022,_0x4cfef0,_0x165779);return _0x26cda0(_0x1c9f68,_0xe0f64c),_0x148345['addDirtyPivotTable']({'unitId':_0x1f1022,'subUnitId':_0x4cfef0,'token':_0x165779,'type':_0x2de5fe['Set']}),!0x0;}};function _0x54d6ee(_0x4e7127,_0x3d1908,_0x36fa0a){const _0x55b091=_0x42bb9f,{pivotTableId:_0x37c415,unitId:_0x25f36c,subUnitId:_0x5904a8}=_0x3d1908,_0x4f7b37=[],_0x16afa7=[];for(const _0x24d44f of _0x36fa0a)switch(_0x24d44f[_0x55b091(0x29a)]){case _0x2bd302['PivotTableChangeTypeEnum']['AddField']:{const {fieldJson:_0x4209ca,area:_0x264720,index:_0x1e0c00}=_0x24d44f,_0x4299d5={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldJson':_0x4209ca,'area':_0x264720,'index':_0x1e0c00},_0x536aac={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x4209ca['id'],'area':_0x264720,'index':_0x1e0c00};_0x4f7b37['push']({'id':_0x340732['id'],'params':_0x4299d5}),_0x16afa7['unshift']({'id':_0x8bbbe['id'],'params':_0x536aac});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0x277)]:{const {fieldId:_0x38ce70,newSubtotalType:_0x513454,oldSubtotalType:_0x5340b7}=_0x24d44f,_0x1c2525={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x38ce70,'subtotalType':_0x513454};_0x4f7b37[_0x55b091(0x364)]({'id':_0x194ae1['id'],'params':_0x1c2525});const _0x1642b2={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x38ce70,'subtotalType':_0x5340b7};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x194ae1['id'],'params':_0x1642b2});}break;case _0x2bd302['PivotTableChangeTypeEnum'][_0x55b091(0x2bf)]:{const {fieldId:_0x193e54,fieldJson:_0x346cb5,area:_0x199a7e,index:_0x2997a4}=_0x24d44f,_0x56577a={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x193e54,'index':_0x2997a4,'area':_0x199a7e};_0x4f7b37[_0x55b091(0x364)]({'id':_0x8bbbe['id'],'params':_0x56577a});const _0x51fab1={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldJson':_0x346cb5,'area':_0x199a7e,'index':_0x2997a4};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x340732['id'],'params':_0x51fab1});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0xa2)]:{const {fieldId:_0x401f04,oldName:_0x2b7cba,newName:_0x402fa5}=_0x24d44f,_0x3a219c={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x401f04,'name':_0x402fa5};_0x4f7b37[_0x55b091(0x364)]({'id':_0x3bf8ba['id'],'params':_0x3a219c});const _0x23cb41={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x401f04,'name':_0x2b7cba};_0x16afa7['unshift']({'id':_0x3bf8ba['id'],'params':_0x23cb41});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0x219)]:{const {fieldId:_0x11a03e,oldFilterInfo:_0x5003f9,newFilterInfo:_0x58b9c0}=_0x24d44f,_0x353cab={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x11a03e,'filterInfo':_0x58b9c0};_0x4f7b37[_0x55b091(0x364)]({'id':_0x44944d['id'],'params':_0x353cab});const _0x468cac={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x11a03e,'filterInfo':_0x5003f9};_0x16afa7['unshift']({'id':_0x44944d['id'],'params':_0x468cac});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0x347)]:{const {fieldId:_0x1649fb,oldSortInfo:_0x46b7a2,newSortInfo:_0x5350e8}=_0x24d44f,_0x4f2057={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x1649fb,'sortInfo':_0x5350e8};_0x4f7b37[_0x55b091(0x364)]({'id':_0x4c05bf['id'],'params':_0x4f2057});const _0x4bf386={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x1649fb,'sortInfo':_0x46b7a2};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x4c05bf['id'],'params':_0x4bf386});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0x212)]:{const {oldOptions:_0x4e5cf1,newOptions:_0x32aebe}=_0x24d44f,_0x4994c7={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'options':_0x32aebe};_0x4f7b37[_0x55b091(0x364)]({'id':_0x845d4f['id'],'params':_0x4994c7});const _0x55ed39={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'options':_0x4e5cf1};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x845d4f['id'],'params':_0x55ed39});}break;case _0x2bd302['PivotTableChangeTypeEnum'][_0x55b091(0x19f)]:{const {oldArea:_0x389d22,newArea:_0x3fb306,oldIndex:_0x1e1117,newIndex:_0x5b4819,fieldId:_0x734e6c}=_0x24d44f,_0x4d4274={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x734e6c,'area':_0x3fb306,'index':_0x5b4819,'oldArea':_0x389d22,'oldIndex':_0x1e1117};_0x4f7b37['push']({'id':_0x26377e['id'],'params':_0x4d4274});const _0x273ffb={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x734e6c,'area':_0x389d22,'index':_0x1e1117,'oldArea':_0x3fb306,'oldIndex':_0x5b4819};_0x16afa7['unshift']({'id':_0x26377e['id'],'params':_0x273ffb});}break;case _0x2bd302['PivotTableChangeTypeEnum'][_0x55b091(0x1e0)]:{const {oldValuePosition:_0x563771,newValuePosition:_0x15f7bd,oldIndex:_0x241402,newIndex:_0x31f7a2}=_0x24d44f,_0xde2a7={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'valuePosition':_0x15f7bd,'index':_0x31f7a2};_0x4f7b37[_0x55b091(0x364)]({'id':_0x1e7ed4['id'],'params':_0xde2a7});const _0x1251f6={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'valuePosition':_0x563771,'index':_0x241402};_0x16afa7['unshift']({'id':_0x1e7ed4['id'],'params':_0x1251f6});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0x12b)]:{const {fieldId:_0x23ebf5,collapse:_0x3464da,item:_0x1377cd}=_0x24d44f,_0x214c59={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x23ebf5,'collapse':_0x3464da,'item':_0x1377cd};_0x4f7b37[_0x55b091(0x364)]({'id':_0x3f8ba0['id'],'params':_0x214c59});const _0x28c9f0={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x23ebf5,'collapse':!_0x3464da,'item':_0x1377cd};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x3f8ba0['id'],'params':_0x28c9f0});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0x282)]:{const {newFormat:_0x1bb5a2,oldFormat:_0x1486e9,fieldId:_0x174716}=_0x24d44f,_0x4a570e={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x174716,'format':_0x1bb5a2};_0x4f7b37[_0x55b091(0x364)]({'id':_0x286fdb['id'],'params':_0x4a570e});const _0x683e55={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0x174716,'format':_0x1486e9};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x286fdb['id'],'params':_0x683e55});}break;case _0x2bd302['PivotTableChangeTypeEnum'][_0x55b091(0x19b)]:{const {tableFieldId:_0x54bb6a,oldSourceName:_0x1fe68f,newSourceName:_0x574e13,oldDataFieldId:_0x1307fe,newDataFieldId:_0x153a7c}=_0x24d44f,_0x1703ce={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'tableFieldId':_0x54bb6a,'sourceName':_0x574e13,'dataFieldId':_0x153a7c};_0x4f7b37[_0x55b091(0x364)]({'id':_0x30ddcd['id'],'params':_0x1703ce});const _0x2eef8b={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'tableFieldId':_0x54bb6a,'sourceName':_0x1fe68f,'dataFieldId':_0x1307fe};_0x16afa7['unshift']({'id':_0x30ddcd['id'],'params':_0x2eef8b});}break;case _0x2bd302[_0x55b091(0x2d6)][_0x55b091(0xa3)]:{const {fieldId:_0xec194,filterInfo:_0x7160d2,oldFilterInfo:_0x2059a1}=_0x24d44f,_0x22dcb5={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0xec194,'filterInfo':_0x7160d2};_0x4f7b37[_0x55b091(0x364)]({'id':_0x4715f0['id'],'params':_0x22dcb5});const _0x4a7a29={'unitId':_0x25f36c,'subUnitId':_0x5904a8,'pivotTableId':_0x37c415,'fieldId':_0xec194,'filterInfo':_0x2059a1};_0x16afa7[_0x55b091(0x2dd)]({'id':_0x4715f0['id'],'params':_0x4a7a29});}}return{'redos':_0x4f7b37,'undos':_0x16afa7};}function _0x1b91fb(_0x258183,_0x12c504){const _0x9e240e=_0x42bb9f;var _0x469e09;const _0x33c76d=_0x258183['get'](_0x5bf755[_0x9e240e(0x19e)]),{cellInfo:_0x537083,view:_0x3fb8f9,isEmpty:_0x5d1da4}=_0x12c504;return(_0x469e09=_0x33c76d[_0x9e240e(0x26a)][_0x9e240e(0x10b)](_0x1ab638)(_0x3a0a88,{'cellInfo':_0x537083,'view':_0x3fb8f9,'isEmpty':_0x5d1da4}))!=null?_0x469e09:_0x3a0a88;}const _0x458ab2={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x25e),async 'handler'(_0x3d862f,_0x2ae9e0){const _0x467eac=_0x42bb9f;if(!_0x2ae9e0)return!0x1;const _0x232d1f=_0x3d862f[_0x467eac(0x239)](_0x288eb9[_0x467eac(0x19d)]),_0x367c88=_0x3d862f[_0x467eac(0x239)](_0x5bf755[_0x467eac(0x330)]),_0x1778e7=_0x3d862f[_0x467eac(0x239)](_0x288eb9['IUndoRedoService']),{pivotTableId:_0x5698ae,dataFieldId:_0x20388b,fieldArea:_0x381f21,index:_0x42f29f,unitId:_0x2876fd,subUnitId:_0x5edfcd}=_0x2ae9e0,_0x5877e6=(await _0x367c88['getPivotDisplayConfig']({'unitId':_0x2876fd,'subUnitId':_0x5edfcd,'pivotTableId':_0x5698ae,'params':{'type':_0x5e3388[_0x467eac(0x109)],'addPivotField':{'dataFieldId':_0x20388b,'fieldArea':_0x381f21,'index':_0x42f29f}}}))[_0x467eac(0x312)]['addPivotField'];if(!_0x5877e6)return!0x1;const {view:_0x4832c9,changesets:_0x357358,isEmpty:_0x587982,pivotTableConfig:_0x4abfb1,shouldBeAddedGroupJSON:_0x116bb5}=_0x5877e6,_0x39e4ce=_0x4abfb1[_0x467eac(0x242)],_0x1a6525=new _0x2bd302[(_0x467eac(0x15a))]();_0x1a6525[_0x467eac(0x188)](_0x4832c9);const _0x1024a3={'cellInfo':_0x39e4ce,'view':_0x1a6525,'isEmpty':_0x587982};if(!await _0x3d862f[_0x467eac(0x239)](_0x5bf755['SheetsPivotTableService'])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x5ce99e)(!0x0,_0x1024a3))return!0x1;const _0x47f5a4=_0x3034a0(_0x3d862f,_0x1a6525,_0x39e4ce,_0x587982),_0x2d441a=_0x1b91fb(_0x3d862f,_0x1024a3),{undos:_0x8edda9,redos:_0xcda5e0}=_0x54d6ee(_0x232d1f,{'pivotTableId':_0x5698ae,'unitId':_0x2876fd,'subUnitId':_0x5edfcd},_0x357358);return _0x116bb5&&(_0xcda5e0[_0x467eac(0x2dd)]({'id':_0x33e7c6['id'],'params':{'pivotTableId':_0x5698ae,'fieldJSON':_0x116bb5,'unitId':_0x2876fd,'subUnitId':_0x5edfcd}}),_0x8edda9['push']({'id':_0xb3cfa6['id'],'params':{'pivotTableId':_0x5698ae,'dataFieldId':_0x116bb5['id'],'unitId':_0x2876fd,'subUnitId':_0x5edfcd}})),_0x288eb9[_0x467eac(0x363)]([..._0x47f5a4[_0x467eac(0x196)],..._0x2d441a[_0x467eac(0x196)],..._0xcda5e0],_0x232d1f),_0x1778e7[_0x467eac(0x1b3)]({'unitID':_0x2876fd,'redoMutations':[..._0x47f5a4[_0x467eac(0x196)],..._0x2d441a[_0x467eac(0x196)],..._0xcda5e0],'undoMutations':[..._0x47f5a4[_0x467eac(0x248)],..._0x2d441a[_0x467eac(0x248)],..._0x8edda9]}),!0x0;}},_0x4af5cd=()=>typeof process<'u'&&process[_0x42bb9f(0x325)]!=null&&process[_0x42bb9f(0x325)][_0x42bb9f(0x1d5)]!=null,_0x7c30f0={'type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'id':'sheet.mutation.add-pivot-table','handler'(_0x429b6b,_0x462a0b){const _0x24502e=_0x42bb9f;var _0x4ac547;if(!_0x462a0b)return!0x1;const _0x2c0a08=_0x429b6b[_0x24502e(0x239)](_0x288eb9[_0x24502e(0xd5)]);if(!!_0x2c0a08[_0x24502e(0x36b)](_0x34280f))return!0x0;const _0x2b2b66=_0x429b6b[_0x24502e(0x239)](_0x288eb9[_0x24502e(0x132)]),_0x54b7ee=_0x429b6b[_0x24502e(0x239)](_0x5bf755[_0x24502e(0x1ae)]),{pivotTableId:_0x44eb05,pivotTableConfig:_0x581118,collectionConfig:_0x330740,unitId:_0x5dda00,subUnitId:_0x4c925d}=_0x462a0b,{sourceRangeInfo:_0x27e893,fieldsConfig:_0x24f369,targetCellInfo:_0x584a89}=_0x581118,_0x117d50=_0x2b2b66[_0x24502e(0x264)](_0x5dda00);if(!_0x117d50||!_0x117d50[_0x24502e(0xb7)](_0x4c925d))return!0x1;if(!_0x4af5cd()){let _0x5c175a=0x0;_0x117d50['getSheets']()[_0x24502e(0x36d)](_0x1227c4=>{const _0x5e9eb2=_0x24502e;var _0x52b77e,_0x14f437;_0x5c175a+=(_0x14f437=(_0x52b77e=_0x54b7ee[_0x5e9eb2(0x244)](_0x5dda00,_0x1227c4['getSheetId']()))==null?void 0x0:_0x52b77e['size'])!=null?_0x14f437:0x0;});const _0x2c35ee=(_0x4ac547=_0x2c0a08[_0x24502e(0x36b)](_0x1f3f39[_0x24502e(0x18e)]))!=null?_0x4ac547:{},{ls:_0x169bbd,pbk:_0x29432d}=_0x2c35ee;if(!_0x15f38b(_0x169bbd,_0x29432d))throw new _0x288eb9[(_0x24502e(0x23d))](_0x24502e(0x190));const _0x446a98=_0x52b3f8(_0x2e2372,_0x169bbd,_0x29432d)[_0x24502e(0x18d)];if(_0x5c175a>=_0x446a98)throw new _0x288eb9[(_0x24502e(0x23d))]('limit\x20pivot');}if(!_0x330740||!_0x24f369)return!0x1;const {collection:_0x527038,updateDataFieldList:_0x1b9fad}=_0x54b7ee[_0x24502e(0x3a0)](_0x44eb05,_0x330740,_0x27e893,_0x584a89);_0x54b7ee[_0x24502e(0x8b)](_0x527038,_0x1b9fad,_0x27e893);const _0x1414df=new _0x2bd302[(_0x24502e(0x14e))](_0x527038,void 0x0,_0x44eb05);_0x1414df['fromJSON'](_0x24f369);const _0x1431b6=JSON['parse'](JSON[_0x24502e(0x297)](_0x581118));return _0x54b7ee[_0x24502e(0xdb)](_0x5dda00,_0x4c925d,_0x44eb05,_0x1414df,_0x1431b6),_0x54b7ee['addDirtyPivotTable']({'unitId':_0x5dda00,'subUnitId':_0x4c925d,'token':_0x44eb05,'type':_0x2de5fe[_0x24502e(0xe6)],'pivotConfig':_0x1431b6}),!0x0;}},_0x37507d={'type':_0x288eb9[_0x42bb9f(0x2fa)]['COMMAND'],'id':_0x42bb9f(0x397),async 'handler'(_0x3953c2,_0x391dda){const _0x1bd8cf=_0x42bb9f;if(!_0x391dda)return!0x1;const {sourceDataInfo:_0x2f4d1d,pivotTableConfig:_0x79b118}=_0x391dda;if(!_0x2f4d1d||!_0x79b118)return!0x1;const {unitId:_0x321566,subUnitId:_0x336d76,range:_0x1f26a7}=_0x2f4d1d,_0x5a2b33=_0x3953c2[_0x1bd8cf(0x239)](_0x288eb9[_0x1bd8cf(0x132)]),_0x575d02=_0x3953c2[_0x1bd8cf(0x239)](_0x5bf755[_0x1bd8cf(0x330)]),_0x3cfbf8=_0x3953c2['get'](_0x288eb9[_0x1bd8cf(0x391)]),_0x352bae=_0x3953c2[_0x1bd8cf(0x239)](_0x288eb9[_0x1bd8cf(0x19d)]),_0x567e6d=_0x5a2b33[_0x1bd8cf(0x264)](_0x321566);if(!_0x567e6d)return!0x1;const _0x5bb6e2=_0x567e6d[_0x1bd8cf(0xb7)](_0x336d76);if(!_0x5bb6e2)return!0x1;const _0x3d91e8=_0x2bd302['generateHexNumber'](0x8),_0xa8ce26=_0x1f26a7||{'startRow':0x0,'startColumn':0x0,'endRow':_0x5bb6e2['getRowCount']()-0x1,'endColumn':_0x5bb6e2[_0x1bd8cf(0x32b)]()-0x1};_0xa8ce26[_0x1bd8cf(0x195)]=_0x288eb9[_0x1bd8cf(0x231)][_0x1bd8cf(0x2c1)];const _0xa728fd=(await _0x575d02[_0x1bd8cf(0x2eb)]({'unitId':_0x321566,'subUnitId':_0x336d76,'pivotTableId':_0x3d91e8,'params':{'type':_0x5e3388[_0x1bd8cf(0x166)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x321566,'sheetName':_0x5bb6e2['getName'](),'subUnitId':_0x336d76,'range':_0xa8ce26},'pivotTableId':_0x3d91e8,'pivotTableIndexConfig':_0x79b118}}}))[_0x1bd8cf(0x312)][_0x1bd8cf(0x13b)];if(!_0xa728fd)return!0x1;const {isEmpty:_0x374be1,fieldsConfig:_0x5dc271,collectionConfig:_0x29d0fa,changesets:_0x1514c8}=_0xa728fd,_0x51b2e8=_0x567e6d['getSheets']()[_0x1bd8cf(0x8f)],_0x2d1564=_0x288eb9[_0x1bd8cf(0x3af)]({'rowCount':_0x5bb6e2[_0x1bd8cf(0xec)]()-0x1,'columnCount':_0x5bb6e2[_0x1bd8cf(0x32b)]()-0x1});_0x2d1564['id']=_0x288eb9['generateRandomId'](),_0x2d1564['name']=_0x567e6d[_0x1bd8cf(0x395)](''+_0x3cfbf8['t'](_0x1bd8cf(0x358)));const _0x190859={'index':_0x51b2e8,'sheet':_0x2d1564,'unitId':_0x321566},{redos:_0x42566f}=_0x54d6ee(_0x352bae,{'pivotTableId':_0x3d91e8,'unitId':_0x321566,'subUnitId':_0x2d1564['id']},_0x1514c8),_0xba5904=[{'id':_0x2e27a8['InsertSheetCommand']['id'],'params':_0x190859},{'id':_0x7c30f0['id'],'params':{'unitId':_0x321566,'subUnitId':_0x2d1564['id'],'pivotTableId':_0x3d91e8,'pivotTableConfig':{'isEmpty':_0x374be1,'fieldsConfig':_0x5dc271,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x321566,'subUnitId':_0x2d1564['id']},'sourceRangeInfo':{'subUnitId':_0x336d76,'unitId':_0x321566,'range':_0xa8ce26,'sheetName':_0x5bb6e2[_0x1bd8cf(0x2e8)]()}},'collectionConfig':_0x29d0fa}},..._0x42566f];return _0x288eb9[_0x1bd8cf(0x363)](_0xba5904,_0x352bae),!0x0;}},_0xf36de3={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x29054,_0x17b5c9){const _0x1fa917=_0x42bb9f;if(!_0x17b5c9)return!0x1;if(!!_0x29054[_0x1fa917(0x239)](_0x288eb9[_0x1fa917(0xd5)])[_0x1fa917(0x36b)](_0x34280f))return!0x0;const {pivotTableId:_0x235106,unitId:_0x5e4163,subUnitId:_0x3ccb3e}=_0x17b5c9,_0x55c58e=_0x29054[_0x1fa917(0x239)](_0x5bf755[_0x1fa917(0x1ae)]);return _0x55c58e[_0x1fa917(0x9b)](_0x5e4163,_0x3ccb3e,_0x235106)?(_0x55c58e[_0x1fa917(0x1d8)]({'unitId':_0x5e4163,'subUnitId':_0x3ccb3e,'token':_0x235106,'type':_0x2de5fe[_0x1fa917(0x163)]}),_0x55c58e[_0x1fa917(0x32d)](_0x5e4163,_0x3ccb3e,_0x235106),!0x0):!0x1;}},_0x9e6b92={'type':_0x288eb9['CommandType']['COMMAND'],'id':_0x42bb9f(0x394),async 'handler'(_0x384b8c,_0x5649da){const _0x2af00c=_0x42bb9f;var _0x20e44f,_0x364da9;const _0x5531dd=_0x384b8c['get'](_0x288eb9[_0x2af00c(0x19d)]),_0x1efe74=_0x384b8c[_0x2af00c(0x239)](_0x288eb9[_0x2af00c(0x132)]),_0x13d5ff=_0x384b8c[_0x2af00c(0x239)](_0x288eb9[_0x2af00c(0x391)]),_0x494a6f=_0x384b8c[_0x2af00c(0x239)](_0x5bf755[_0x2af00c(0x330)]),_0x16ec7e=_0x384b8c[_0x2af00c(0x239)](_0x288eb9[_0x2af00c(0x17b)]),_0x8ae7db=_0x384b8c[_0x2af00c(0x239)](_0x5bf755[_0x2af00c(0x2e2)]),_0x54f819=_0x384b8c[_0x2af00c(0x239)](_0x288eb9['IConfigService']);if(!_0x5649da)return!0x1;const {pivotTableConfig:_0x1f5665,positionType:_0x5aaae4}=_0x5649da,{targetCellInfo:_0x4be72e,sourceRangeInfo:_0x4330f5}=_0x1f5665,{unitId:_0xbf2109,subUnitId:_0x1ac0b5}=_0x4be72e,_0x1ea4cb=_0x1efe74['getUnit'](_0xbf2109);if(!_0x1ea4cb)return!0x1;let _0x497fdd=0x0;_0x1ea4cb['getSheets']()['forEach'](_0x255204=>{const _0x337543=_0x2af00c;var _0x493664,_0x47253f;_0x497fdd+=(_0x47253f=(_0x493664=_0x8ae7db[_0x337543(0x244)](_0xbf2109,_0x255204[_0x337543(0x1c0)]()))==null?void 0x0:_0x493664[_0x337543(0x1f6)])!=null?_0x47253f:0x0;});const _0xd53abf=(_0x20e44f=_0x54f819[_0x2af00c(0x36b)](_0x1f3f39[_0x2af00c(0x18e)]))!=null?_0x20e44f:{},{ls:_0x8e7be6,pbk:_0x549c5b}=_0xd53abf;if(!_0x15f38b(_0x8e7be6,_0x549c5b))return!0x1;const _0x58e248=_0x52b3f8(_0x2e2372,_0x8e7be6,_0x549c5b)[_0x2af00c(0x18d)];if(_0x497fdd>=_0x58e248)return!0x1;const _0x944537=_0x5649da['pivotTableId']||_0x2bd302[_0x2af00c(0x383)](0x8),_0x329e22=(await _0x494a6f[_0x2af00c(0x2eb)]({'unitId':_0xbf2109,'subUnitId':_0x1ac0b5,'pivotTableId':_0x944537,'params':{'type':_0x5e3388[_0x2af00c(0x2ba)],'addPivotTable':{'sourceRangeInfo':_0x4330f5,'pivotTableId':_0x944537}}}))[_0x2af00c(0x312)][_0x2af00c(0xdb)];if(!_0x329e22)return!0x1;const {view:_0x4a7647,isEmpty:_0x21f5ae,fieldsConfig:_0x3af6b7,collectionConfig:_0x53f4b3}=_0x329e22,_0x5a9a96=[],_0x5790a2=[];if(_0x5aaae4===_0x1caed1[_0x2af00c(0x3aa)]){const _0x11e145=_0x1ea4cb['getSheets']()[_0x2af00c(0x8f)],_0x25031f=_0x288eb9[_0x2af00c(0x3af)]({});_0x25031f['id']=_0x1f5665[_0x2af00c(0x242)][_0x2af00c(0x179)],_0x25031f[_0x2af00c(0x262)]=(_0x364da9=_0x1f5665[_0x2af00c(0x242)]['sheetName'])!=null?_0x364da9:_0x1ea4cb[_0x2af00c(0x395)](''+_0x13d5ff['t'](_0x2af00c(0x358)));const _0x3f80c9={'index':_0x11e145,'sheet':_0x25031f,'unitId':_0xbf2109},_0x939f1f=_0x2e27a8[_0x2af00c(0x1e1)](_0x384b8c,_0x3f80c9);_0x5a9a96[_0x2af00c(0x364)]({'id':_0x2e27a8[_0x2af00c(0xff)]['id'],'params':_0x939f1f}),_0x5790a2[_0x2af00c(0x364)]({'id':_0x2e27a8[_0x2af00c(0x28f)]['id'],'params':_0x3f80c9});}else{if(!_0x1ea4cb[_0x2af00c(0xb7)](_0x1ac0b5))return!0x1;const _0x1b74a6=_0x3034a0(_0x384b8c,new _0x2bd302[(_0x2af00c(0x15a))](),_0x4be72e,!0x0);_0x5790a2['push'](..._0x1b74a6[_0x2af00c(0x196)]),_0x5a9a96[_0x2af00c(0x364)](..._0x1b74a6['undos']);const _0x5377c6={'cellInfo':_0x4be72e,'view':_0x4a7647,'isEmpty':_0x21f5ae};if(!await _0x384b8c[_0x2af00c(0x239)](_0x5bf755[_0x2af00c(0x19e)])[_0x2af00c(0x2cc)][_0x2af00c(0x1f9)](_0x5ce99e)(!0x0,_0x5377c6))return!0x1;const _0x35442c=_0x1b91fb(_0x384b8c,_0x5377c6);_0x5790a2[_0x2af00c(0x364)](..._0x35442c[_0x2af00c(0x196)]),_0x5a9a96['push'](..._0x35442c[_0x2af00c(0x248)]);}return _0x5790a2[_0x2af00c(0x364)]({'id':_0x7c30f0['id'],'params':{'unitId':_0x4be72e[_0x2af00c(0x360)],'subUnitId':_0x4be72e[_0x2af00c(0x179)],'pivotTableId':_0x944537,'pivotTableConfig':{'targetCellInfo':_0x4be72e,'sourceRangeInfo':_0x4330f5,'fieldsConfig':_0x3af6b7},'collectionConfig':_0x53f4b3}}),_0x5a9a96[_0x2af00c(0x2dd)]({'id':_0xf36de3['id'],'params':{'unitId':_0xbf2109,'subUnitId':_0x1ac0b5,'pivotTableId':_0x944537}}),_0x288eb9[_0x2af00c(0x363)](_0x5790a2,_0x5531dd)&&_0x16ec7e[_0x2af00c(0x1b3)]({'unitID':_0xbf2109,'undoMutations':_0x5a9a96,'redoMutations':_0x5790a2}),!0x0;}},_0x5ea7f4={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x327),async 'handler'(_0xa3eb0c,_0x109c3b){const _0x113917=_0x42bb9f;if(!_0x109c3b)return!0x1;const _0x2abf0d=_0xa3eb0c[_0x113917(0x239)](_0x288eb9[_0x113917(0x19d)]),_0x5ecb72=_0xa3eb0c[_0x113917(0x239)](_0x5bf755[_0x113917(0x330)]),_0x2b4649=_0xa3eb0c[_0x113917(0x239)](_0x288eb9[_0x113917(0x17b)]),{pivotTableId:_0x8dfe58,fieldId:_0x435eb2,area:_0x56a263,index:_0x321791,unitId:_0x12a614,subUnitId:_0x5f08e5}=_0x109c3b,_0x1ba58d=(await _0x5ecb72[_0x113917(0x2eb)]({'unitId':_0x12a614,'subUnitId':_0x5f08e5,'pivotTableId':_0x8dfe58,'params':{'type':_0x5e3388[_0x113917(0x1a9)],'movePivotField':{'fieldId':_0x435eb2,'area':_0x56a263,'index':_0x321791}}}))['result'][_0x113917(0xb0)];if(!_0x1ba58d)return!0x1;const {changesets:_0x4c3749,view:_0x28e84f,isEmpty:_0x50d45f,pivotTableConfig:_0x8c2ff0}=_0x1ba58d,_0x379df0=_0x8c2ff0['targetCellInfo'],_0xfb9775=new _0x2bd302[(_0x113917(0x15a))]();_0xfb9775[_0x113917(0x188)](_0x28e84f);const _0x17cfd2={'cellInfo':_0x379df0,'view':_0xfb9775,'isEmpty':_0x50d45f};if(!await _0xa3eb0c[_0x113917(0x239)](_0x5bf755[_0x113917(0x19e)])[_0x113917(0x2cc)][_0x113917(0x1f9)](_0x5ce99e)(!0x0,_0x17cfd2))return!0x1;const _0x165735=_0x3034a0(_0xa3eb0c,_0xfb9775,_0x379df0,_0x50d45f),_0x260267=_0x1b91fb(_0xa3eb0c,_0x17cfd2),{redos:_0x59cb04,undos:_0x6ac2f5}=_0x54d6ee(_0x2abf0d,{'pivotTableId':_0x8dfe58,'unitId':_0x12a614,'subUnitId':_0x5f08e5},_0x4c3749);return _0x288eb9['sequenceExecute']([..._0x165735[_0x113917(0x196)],..._0x260267[_0x113917(0x196)],..._0x59cb04],_0x2abf0d),_0x2b4649[_0x113917(0x1b3)]({'unitID':_0x12a614,'redoMutations':[..._0x165735[_0x113917(0x196)],..._0x260267[_0x113917(0x196)],..._0x59cb04],'undoMutations':[..._0x165735['undos'],..._0x260267[_0x113917(0x248)],..._0x6ac2f5]}),!0x0;}},_0x4c1e58={'type':_0x288eb9['CommandType'][_0x42bb9f(0x20b)],'id':'sheet.mutation.set-pivot-position','handler'(_0x2063cd,_0xea01dc){const _0x59387f=_0x42bb9f;if(!_0xea01dc)return!0x1;if(!!_0x2063cd[_0x59387f(0x239)](_0x288eb9['IConfigService'])[_0x59387f(0x36b)](_0x34280f))return!0x0;const {pivotTableId:_0x58041b,targetCellPosition:_0x269746,unitId:_0x3d6d90,subUnitId:_0x5c3560}=_0xea01dc,_0x1e5c3e=_0x2063cd[_0x59387f(0x239)](_0x5bf755[_0x59387f(0x1ae)]);if(!_0x1e5c3e[_0x59387f(0x25c)](_0xea01dc[_0x59387f(0x111)]))return!0x1;const _0x218741=_0x1e5c3e[_0x59387f(0x33f)](_0x58041b);if(!_0x218741)return!0x1;const _0x1431d7=_0x1e5c3e[_0x59387f(0x2c8)](_0x218741['unitId'],_0xea01dc[_0x59387f(0x111)]);if(!_0x1431d7)return!0x1;const _0x4e5b76=_0x1e5c3e[_0x59387f(0x9b)](_0x218741[_0x59387f(0x360)],_0x218741[_0x59387f(0x179)],_0x58041b);if(!_0x4e5b76)return!0x1;const _0x9e262e=_0x288eb9[_0x59387f(0x91)][_0x59387f(0x38e)](_0x4e5b76);_0x9e262e[_0x59387f(0x242)]={'unitId':_0x3d6d90,'subUnitId':_0x5c3560,'row':_0x269746['row'],'col':_0x269746['col']};const _0xa8368b=_0x1431d7['toJSON']();if(_0x218741['subUnitId']===_0x5c3560&&_0x218741[_0x59387f(0x360)]===_0x3d6d90)_0x1e5c3e[_0x59387f(0x315)](_0x3d6d90,_0x5c3560,_0x58041b,_0x9e262e),_0x1e5c3e[_0x59387f(0x1d8)]({'unitId':_0x3d6d90,'subUnitId':_0x5c3560,'token':_0x58041b,'type':_0x2de5fe['Set']});else{_0x1e5c3e[_0x59387f(0x1d8)]({'unitId':_0x218741['unitId'],'subUnitId':_0x218741['subUnitId'],'token':_0x58041b,'type':_0x2de5fe[_0x59387f(0x163)]}),_0x1e5c3e[_0x59387f(0x32d)](_0x218741['unitId'],_0x218741[_0x59387f(0x179)],_0x58041b);const _0x19d7f5=_0x1e5c3e[_0x59387f(0x3a0)](_0x58041b,_0xa8368b,_0x4e5b76[_0x59387f(0x156)],_0x9e262e[_0x59387f(0x242)]),_0x542e18=new _0x2bd302['PivotTable'](_0x19d7f5[_0x59387f(0x127)],void 0x0,_0x58041b);_0x542e18[_0x59387f(0x9a)](_0x9e262e[_0x59387f(0x313)]),_0x1e5c3e[_0x59387f(0xdb)](_0x3d6d90,_0x5c3560,_0x58041b,_0x542e18,_0x9e262e),_0x1e5c3e[_0x59387f(0x1d8)]({'unitId':_0x3d6d90,'subUnitId':_0x5c3560,'token':_0x58041b,'type':_0x2de5fe[_0x59387f(0xe6)],'pivotConfig':_0x9e262e});}return!0x0;}},_0x2891e4={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x1f5),'handler':(_0x1047f6,_0x14459a)=>{const _0x5789d7=_0x42bb9f,_0x546a15=_0x1047f6[_0x5789d7(0x239)](_0x288eb9['ICommandService']),_0xd2a531=_0x1047f6[_0x5789d7(0x239)](_0x288eb9[_0x5789d7(0x17b)]),_0x5b5f77=_0x1047f6[_0x5789d7(0x239)](_0x5bf755[_0x5789d7(0x2e2)]),_0x443f17=_0x1047f6[_0x5789d7(0x239)](_0x288eb9[_0x5789d7(0x132)]);if(!_0x14459a)return!0x1;const _0x53654c=_0x2e27a8['getSheetCommandTarget'](_0x443f17);if(!_0x53654c)return!0x1;const {unitId:_0x17ca78,subUnitId:_0x230ef3,workbook:_0x513fc4}=_0x53654c,_0x5b55c8=_0x5b5f77['getPivotTableConfig'](_0x14459a[_0x5789d7(0x30c)][_0x5789d7(0x360)],_0x14459a[_0x5789d7(0x30c)][_0x5789d7(0x179)],_0x14459a[_0x5789d7(0x111)]);if(!_0x5b55c8)return!0x1;const _0x5a66ad=_0x513fc4['getSheetBySheetId'](_0x14459a[_0x5789d7(0x242)][_0x5789d7(0x179)]);if(!_0x5a66ad)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0x328320=_0x5a66ad['getRowCount'](),_0x27f6ef=_0x5a66ad['getColumnCount']();if(_0x14459a[_0x5789d7(0x242)][_0x5789d7(0x392)]>_0x328320||_0x14459a[_0x5789d7(0x242)][_0x5789d7(0x113)]>_0x27f6ef)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x253960=[{'id':_0x4c1e58['id'],'params':{'unitId':_0x17ca78,'subUnitId':_0x14459a[_0x5789d7(0x242)][_0x5789d7(0x179)],'pivotTableId':_0x14459a[_0x5789d7(0x111)],'targetCellPosition':{'row':_0x14459a[_0x5789d7(0x242)][_0x5789d7(0x392)],'col':_0x14459a['targetCellInfo'][_0x5789d7(0x113)]}}}],_0x34959e=[{'id':_0x4c1e58['id'],'params':{'unitId':_0x17ca78,'subUnitId':_0x230ef3,'pivotTableId':_0x14459a[_0x5789d7(0x111)],'targetCellPosition':{'row':_0x5b55c8[_0x5789d7(0x242)][_0x5789d7(0x392)],'col':_0x5b55c8[_0x5789d7(0x242)]['col']}}}];return _0x288eb9['sequenceExecute'](_0x253960,_0x546a15)&&_0xd2a531['pushUndoRedo']({'unitID':_0x17ca78,'undoMutations':_0x34959e,'redoMutations':_0x253960}),!0x0;}},_0x4fc4e5={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x3723ae,_0x3a7983){const _0x8a3181=_0x42bb9f;var _0x17b6de;if(!_0x3a7983)return!0x1;const _0x3f8671=_0x3723ae[_0x8a3181(0x239)](_0x288eb9[_0x8a3181(0x132)]),_0x1e4760=_0x2e27a8['getSheetCommandTarget'](_0x3f8671);if(!_0x1e4760)return!0x1;const {unitId:_0x20b140,subUnitId:_0x28a149,workbook:_0x3bb313}=_0x1e4760,{row:_0x592fba,col:_0x4c0524}=_0x3a7983,_0x477ceb=_0x3723ae[_0x8a3181(0x239)](_0x5bf755['SheetsPivotTableAdaptorModel']),_0x3f4029=_0x477ceb[_0x8a3181(0x32a)](_0x20b140,_0x28a149,_0x592fba,_0x4c0524);if(!_0x3f4029)return!0x1;const _0x79ef5e=(_0x17b6de=_0x477ceb[_0x8a3181(0x2ab)](_0x20b140,_0x28a149,_0x3f4029))==null?void 0x0:_0x17b6de['areaInfo'];if(!_0x79ef5e)return!0x1;const _0x323722=_0x3723ae[_0x8a3181(0x239)](_0x5bf755[_0x8a3181(0x2e2)])['getPivotTableConfig'](_0x20b140,_0x28a149,_0x3f4029);if(!_0x323722)return!0x1;const {rowInfo:_0x5380be,colInfo:_0x1da169}=_0x79ef5e,_0x4ce9ac=_0x5380be[_0x592fba]['paths'],_0x3f0af0=_0x1da169[_0x4c0524][_0x8a3181(0x2f9)],_0x4054ad=_0x5380be[_0x592fba][_0x8a3181(0x207)],_0x24aa38=_0x1da169[_0x4c0524]['level'],_0x1d370a=_0x4ce9ac['concat'](_0x3f0af0),_0x2a6d12=_0x323722[_0x8a3181(0x313)][_0x8a3181(0x1ec)][_0x8a3181(0x1e2)](0x0,_0x4054ad),_0x285ca3=_0x323722[_0x8a3181(0x313)][_0x8a3181(0x33a)]['slice'](0x0,_0x24aa38),_0x22b993=_0x2a6d12[_0x8a3181(0xc1)](_0x285ca3),_0x576af1=_0x1d370a[_0x8a3181(0x1d2)]((_0x490827,_0x146c9f)=>[_0x490827,_0x22b993[_0x146c9f]]),_0x75fb01=(await _0x3723ae[_0x8a3181(0x239)](_0x5bf755[_0x8a3181(0x330)])[_0x8a3181(0x2eb)]({'unitId':_0x20b140,'subUnitId':_0x28a149,'pivotTableId':_0x3f4029,'params':{'type':_0x5e3388[_0x8a3181(0xce)],'drillDown':{'tuple':_0x576af1}}}))[_0x8a3181(0x312)][_0x8a3181(0x31b)];if(!_0x75fb01)return!0x1;const {indexes:_0x44d8d7,range:_0x30289a,sourceUnitId:_0x2a3389,sourceSubUnitId:_0x4be1fc,formatMap:_0x4d52b5}=_0x75fb01,{startRow:_0x331505,endRow:_0x4d5938,startColumn:_0x3968fa,endColumn:_0x4ca0bf}=_0x30289a,_0x5b8320=new _0x288eb9['ObjectMatrix'](),_0x4a4ddc=_0x4d5938-_0x331505,_0x2968d7=_0x4ca0bf-_0x3968fa,_0x34e644={},_0x4de1c0=_0x2e27a8[_0x8a3181(0xba)](_0x3f8671,{'unitId':_0x2a3389,'subUnitId':_0x4be1fc});if(!_0x4de1c0)return!0x1;const _0x50e2bd=_0x1b6d0b[_0x8a3181(0x1ed)],_0x4ec43a=_0x1b6d0b[_0x8a3181(0x144)],_0x5bc5d8=_0x1b6d0b[_0x8a3181(0x144)],_0xa7c1e5=_0x3bb313['getStyles']()[_0x8a3181(0x1bb)](_0x50e2bd),_0x251bde=_0x3bb313[_0x8a3181(0xa4)]()[_0x8a3181(0x1bb)](_0x4ec43a),_0x58c836=_0x3bb313['getStyles']()[_0x8a3181(0x1bb)](_0x5bc5d8),{worksheet:_0x505272}=_0x4de1c0;let _0x10d580=0x0;const _0x3d789e=0x1;_0x44d8d7[_0x8a3181(0x36d)](_0x41abc9=>{const _0x16181e=_0x8a3181;for(let _0x90788=0x0;_0x90788<=_0x4ca0bf-_0x3968fa;_0x90788++)_0x5b8320['setValue'](_0x10d580,_0x90788,_0x505272[_0x16181e(0x3ac)](_0x41abc9+_0x30289a[_0x16181e(0x36a)]+_0x3d789e,_0x90788));_0x10d580++;});for(let _0x4785a1=_0x3968fa;_0x4785a1<=_0x4ca0bf;_0x4785a1++){const _0x18ef07=_0x505272['getCellRaw'](_0x331505,_0x4785a1);_0x34e644[_0x331505]||(_0x34e644[_0x331505]={}),_0x34e644[_0x331505][_0x4785a1]={..._0x18ef07,'s':_0xa7c1e5};}let _0x2350b9=0x1;const _0x9dbcaf={},_0x1c420f={};_0x5b8320['forRow']((_0x383a5d,_0x14b170)=>{const _0x3802b2=_0x8a3181;_0x14b170[_0x3802b2(0x36d)](_0x5e48bf=>{const _0x3edb74=_0x3802b2,_0x1b77bf=_0x5b8320[_0x3edb74(0x187)](_0x383a5d,_0x5e48bf);if(_0x34e644[_0x2350b9]||(_0x34e644[_0x2350b9]={}),_0x34e644[_0x2350b9][_0x5e48bf]={..._0x1b77bf,'s':_0x2350b9%0x2===0x0?_0x58c836:_0x251bde},_0x4d52b5[_0x5e48bf]&&_0x383a5d>=0x0){const _0x11fa01=_0x2350b9%0x2===0x0;let _0x5d2fee=_0x11fa01?_0x1c420f[_0x5e48bf]:_0x9dbcaf[_0x5e48bf];_0x5d2fee||(_0x5d2fee=_0x3bb313[_0x3edb74(0xa4)]()[_0x3edb74(0x1bb)]({..._0x11fa01?_0x5bc5d8:_0x4ec43a,'n':{'pattern':_0x4d52b5[_0x5e48bf]}}),_0x11fa01?_0x1c420f[_0x5e48bf]=_0x5d2fee:_0x9dbcaf[_0x5e48bf]=_0x5d2fee),_0x34e644[_0x2350b9][_0x5e48bf]['s']=_0x5d2fee;}}),_0x2350b9++;});const _0xd74f19=new _0x288eb9[(_0x8a3181(0x280))](_0x34e644),_0x470514={};_0xd74f19[_0x8a3181(0xbc)]((_0x58e0df,_0x25d46d,_0x2d7410)=>{_0x470514[_0x58e0df]||(_0x470514[_0x58e0df]={}),_0x470514[_0x58e0df][_0x25d46d]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x542005=[],_0x3f2548=[],_0x3af19c=_0x3bb313[_0x8a3181(0x294)]()[_0x8a3181(0x8f)],_0x184a06=_0x288eb9[_0x8a3181(0x3af)]({'rowCount':Math['max'](_0x288eb9['DEFAULT_WORKSHEET_ROW_COUNT'],_0x4a4ddc+0xa),'columnCount':Math[_0x8a3181(0x2e9)](_0x288eb9['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x2968d7+0x5)}),_0x3ca6fe=_0x3723ae[_0x8a3181(0x239)](_0x288eb9[_0x8a3181(0x391)]);_0x184a06['id']=_0x288eb9[_0x8a3181(0x247)](),_0x184a06[_0x8a3181(0x262)]=_0x3bb313[_0x8a3181(0x395)](''+_0x3ca6fe['t'](_0x8a3181(0x358)));const _0x4bcaac={'index':_0x3af19c,'sheet':_0x184a06,'unitId':_0x20b140},_0xe7a9bc=_0x2e27a8[_0x8a3181(0x1e1)](_0x3723ae,_0x4bcaac);_0x3f2548[_0x8a3181(0x364)]({'id':_0x2e27a8['InsertSheetMutation']['id'],'params':_0x4bcaac}),_0x542005['push']({'id':_0x2e27a8[_0x8a3181(0xff)]['id'],'params':_0xe7a9bc}),_0x3f2548[_0x8a3181(0x364)]({'id':_0x2e27a8[_0x8a3181(0x3ad)]['id'],'params':{'unitId':_0x20b140,'subUnitId':_0x184a06['id'],'cellValue':_0x34e644}}),_0x542005[_0x8a3181(0x2dd)]({'id':_0x2e27a8['SetRangeValuesMutation']['id'],'params':{'unitId':_0x20b140,'subUnitId':_0x184a06['id'],'cellValue':_0x470514}});const _0x2cf038={'startRow':0x0,'startColumn':0x0,'endRow':_0x2350b9-0x1,'endColumn':_0x4ca0bf};_0x3f2548[_0x8a3181(0x364)]({'id':_0x2bd9b2[_0x8a3181(0xeb)]['id'],'params':{'unitId':_0x20b140,'subUnitId':_0x184a06['id'],'range':_0x2cf038}}),_0x542005[_0x8a3181(0x2dd)]({'id':_0x2bd9b2[_0x8a3181(0x11f)]['id'],'params':{'unitId':_0x20b140,'subUnitId':_0x184a06['id']}});const _0xa02e02=_0x3723ae[_0x8a3181(0x239)](_0x288eb9[_0x8a3181(0x19d)]);return _0x288eb9[_0x8a3181(0x363)](_0x3f2548,_0xa02e02)&&_0x3723ae[_0x8a3181(0x239)](_0x288eb9[_0x8a3181(0x17b)])[_0x8a3181(0x1b3)]({'unitID':_0x20b140,'undoMutations':_0x542005,'redoMutations':_0x3f2548}),!0x0;}},_0x2148b5={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x10a),async 'handler'(_0x5a990f,_0x42b7a7){const _0x3c29c5=_0x42bb9f;if(!_0x42b7a7)return!0x1;const _0x9ef86d=_0x5a990f['get'](_0x288eb9['ICommandService']),_0x1f29c3=_0x5a990f[_0x3c29c5(0x239)](_0x5bf755[_0x3c29c5(0x330)]),_0xae5a73=_0x5a990f[_0x3c29c5(0x239)](_0x288eb9[_0x3c29c5(0x17b)]),{pivotTableId:_0x3ec5d0,fieldIds:_0x5df1cd,unitId:_0x51d665,subUnitId:_0x4c9942}=_0x42b7a7,_0x2e1c25=(await _0x1f29c3[_0x3c29c5(0x2eb)]({'unitId':_0x51d665,'subUnitId':_0x4c9942,'pivotTableId':_0x3ec5d0,'params':{'type':_0x5e3388[_0x3c29c5(0x151)],'removePivotField':{'fieldIds':_0x5df1cd}}}))[_0x3c29c5(0x312)][_0x3c29c5(0xb1)];if(!_0x2e1c25)return!0x1;const {view:_0x21db2e,changesets:_0x1674a9,isEmpty:_0x25ac42,pivotTableConfig:_0x33dfbc}=_0x2e1c25,_0x4d292a=_0x33dfbc[_0x3c29c5(0x242)],_0x380126=new _0x2bd302['PivotView']();_0x380126[_0x3c29c5(0x188)](_0x21db2e);const _0x1486d7={'cellInfo':_0x4d292a,'view':_0x380126,'isEmpty':_0x25ac42};if(!await _0x5a990f[_0x3c29c5(0x239)](_0x5bf755['SheetsPivotTableService'])[_0x3c29c5(0x2cc)][_0x3c29c5(0x1f9)](_0x5ce99e)(!0x0,_0x1486d7))return!0x1;const _0x47132f=_0x3034a0(_0x5a990f,_0x380126,_0x4d292a,_0x25ac42),_0x4da2ac=_0x1b91fb(_0x5a990f,_0x1486d7),{redos:_0x56b468,undos:_0x16723c}=_0x54d6ee(_0x9ef86d,{'pivotTableId':_0x3ec5d0,'unitId':_0x51d665,'subUnitId':_0x4c9942},_0x1674a9);return _0x288eb9['sequenceExecute']([..._0x47132f[_0x3c29c5(0x196)],..._0x4da2ac[_0x3c29c5(0x196)],..._0x56b468],_0x9ef86d),_0xae5a73[_0x3c29c5(0x1b3)]({'unitID':_0x51d665,'redoMutations':[..._0x47132f[_0x3c29c5(0x196)],..._0x4da2ac['redos'],..._0x56b468],'undoMutations':[..._0x47132f['undos'],..._0x4da2ac[_0x3c29c5(0x248)],..._0x16723c]}),!0x0;}},_0x318908={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x293),async 'handler'(_0x64c905,_0x59ba91){const _0x4c9ec2=_0x42bb9f;if(!_0x59ba91)return!0x1;const _0x404564=_0x64c905[_0x4c9ec2(0x239)](_0x288eb9[_0x4c9ec2(0x19d)]),_0x13edd7=_0x64c905['get'](_0x288eb9['IUndoRedoService']),_0x2051fe=_0x64c905[_0x4c9ec2(0x239)](_0x5bf755[_0x4c9ec2(0x330)]),{resetArea:_0x83e8c1,pivotTableId:_0x3e4a56,unitId:_0x291372,subUnitId:_0x52d622}=_0x59ba91,_0x5e12ac=(await _0x2051fe[_0x4c9ec2(0x2eb)]({'unitId':_0x291372,'subUnitId':_0x52d622,'pivotTableId':_0x3e4a56,'params':{'type':_0x5e3388[_0x4c9ec2(0x316)],'resetPivotTable':{'pivotTableId':_0x3e4a56,'resetArea':_0x83e8c1}}}))[_0x4c9ec2(0x312)][_0x4c9ec2(0x29b)];if(!_0x5e12ac)return!0x1;const {changesets:_0x304e3c}=_0x5e12ac,{redos:_0x63f658,undos:_0x27c8cd}=_0x54d6ee(_0x404564,{'pivotTableId':_0x3e4a56,'unitId':_0x291372,'subUnitId':_0x52d622},_0x304e3c);return _0x288eb9[_0x4c9ec2(0x363)](_0x63f658,_0x404564),_0x13edd7['pushUndoRedo']({'unitID':_0x291372,'redoMutations':_0x63f658,'undoMutations':_0x27c8cd}),!0x0;}},_0x12e7ee={'type':_0x288eb9['CommandType'][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x298),async 'handler'(_0xaaefce,_0x28ebc9){const _0x39bf5c=_0x42bb9f,_0x4b1322=_0xaaefce['get'](_0x288eb9[_0x39bf5c(0x19d)]),_0x1c6865=_0xaaefce[_0x39bf5c(0x239)](_0x5bf755[_0x39bf5c(0x330)]),_0x1a7801=_0xaaefce['get'](_0x5bf755[_0x39bf5c(0x249)]),_0x370ba4=_0xaaefce['get'](_0x288eb9[_0x39bf5c(0x132)]),_0x4a27b4=_0xaaefce[_0x39bf5c(0x239)](_0x288eb9['LocaleService']),_0x225bcf=_0xaaefce[_0x39bf5c(0x239)](_0x288eb9[_0x39bf5c(0x17b)]);if(!_0x28ebc9)return!0x1;const {unitId:_0x415e3b,subUnitId:_0x26fe5d,row:_0x18a191,col:_0x31174a,collapse:_0x10e882}=_0x28ebc9,_0x162972=_0x370ba4[_0x39bf5c(0x264)](_0x415e3b);if(!_0x162972||!_0x162972[_0x39bf5c(0xb7)](_0x26fe5d))return!0x1;const _0x2cd302=_0x1a7801[_0x39bf5c(0x32a)](_0x415e3b,_0x26fe5d,_0x18a191,_0x31174a);if(!_0x2cd302)return!0x1;const _0x4e8f22=_0x1a7801['getPivotItemRenderInfoCache'](_0x415e3b,_0x26fe5d,_0x2cd302);if(!_0x4e8f22)return!0x1;const _0xd5f474=_0x288eb9[_0x39bf5c(0x104)](_0x18a191,_0x31174a),{rangesInfo:_0x38e32e,areaInfo:_0x4e597e,headerMap:_0x21519e}=_0x4e8f22;if(!_0x38e32e||!_0x4e597e||!_0x21519e)return!0x1;const _0x527147=Object[_0x39bf5c(0x237)](_0x38e32e)[_0x39bf5c(0x261)](_0x28ac88=>_0x38e32e[_0x28ac88][_0x39bf5c(0x281)](_0x1f6c89=>_0x288eb9[_0x39bf5c(0x25d)]['contains'](_0x1f6c89,_0xd5f474)));let _0x4df821;_0x527147===_0x39bf5c(0x2b2)?_0x4df821=_0x21519e[_0x39bf5c(0x343)][_0x31174a]:_0x527147==='colRanges'&&(_0x4df821=_0x21519e[_0x39bf5c(0x1d3)][_0x18a191]);const _0x3a592e=_0x4df821==null?void 0x0:_0x4df821[_0x39bf5c(0x11e)],_0x494691=_0x1a7801[_0x39bf5c(0x273)](_0x415e3b,_0x26fe5d,_0x18a191,_0x31174a);let _0x4b5405=_0x494691==null?void 0x0:_0x494691['v'];if(_0x4b5405===_0x4a27b4['t'](_0x39bf5c(0x1aa))&&(_0x4b5405=_0x2bd302['GlobalConfig'][_0x39bf5c(0x396)]),_0x4b5405==null||!_0x2cd302||!_0x3a592e)return!0x1;const _0x164520=await _0x1c6865['getPivotDisplayConfig']({'unitId':_0x415e3b,'subUnitId':_0x26fe5d,'pivotTableId':_0x2cd302,'params':{'type':_0x5e3388[_0x39bf5c(0xd9)],'setPivotCollapse':{'tableFieldId':_0x3a592e,'collapse':_0x10e882,'item':_0x4b5405}}}),_0x315735=_0x164520==null?void 0x0:_0x164520[_0x39bf5c(0x312)][_0x39bf5c(0xfa)];if(!_0x315735)return!0x1;const {view:_0x4ab43f,pivotTableConfig:_0x1f9b3b,isEmpty:_0x5b4c45,changesets:_0x1dab9c}=_0x315735,_0x4bdc6a=new _0x2bd302['PivotView']();_0x4bdc6a[_0x39bf5c(0x188)](_0x4ab43f);const _0xcac57=_0x1f9b3b[_0x39bf5c(0x242)],_0x5849f3={'cellInfo':_0xcac57,'view':_0x4bdc6a,'isEmpty':_0x5b4c45};if(!await _0xaaefce['get'](_0x5bf755[_0x39bf5c(0x19e)])['asyncInterceptor'][_0x39bf5c(0x1f9)](_0x5ce99e)(!0x0,_0x5849f3))return!0x1;const _0x400f5c=_0x3034a0(_0xaaefce,_0x4bdc6a,_0xcac57,_0x5b4c45),_0x3c7056=_0x1b91fb(_0xaaefce,_0x5849f3),{redos:_0x2e15cf,undos:_0x5cf158}=_0x54d6ee(_0x4b1322,{'pivotTableId':_0x2cd302,'unitId':_0x415e3b,'subUnitId':_0x26fe5d},_0x1dab9c);return _0x288eb9['sequenceExecute']([..._0x400f5c[_0x39bf5c(0x196)],..._0x3c7056[_0x39bf5c(0x196)],..._0x2e15cf],_0x4b1322),_0x225bcf['pushUndoRedo']({'unitID':_0x415e3b,'redoMutations':[..._0x400f5c[_0x39bf5c(0x196)],..._0x3c7056[_0x39bf5c(0x196)],..._0x2e15cf],'undoMutations':[..._0x400f5c['undos'],..._0x3c7056[_0x39bf5c(0x248)],..._0x5cf158]}),!0x0;}},_0x275613={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x1b1),async 'handler'(_0x510104,_0x4caaee){const _0x3e122c=_0x42bb9f;if(!_0x4caaee)return!0x1;const _0x1223d2=_0x510104['get'](_0x288eb9['ICommandService']),_0x179116=_0x510104[_0x3e122c(0x239)](_0x288eb9[_0x3e122c(0x17b)]),_0x55e6f0=_0x510104[_0x3e122c(0x239)](_0x5bf755['SheetsPivotRPCService']),{pivotTableConfig:_0xb92a5e,pivotTableId:_0x4ce203,unitId:_0x4d7e9a,subUnitId:_0x446fab}=_0x4caaee,_0x403d6a=(await _0x55e6f0[_0x3e122c(0x2eb)]({'unitId':_0x4d7e9a,'subUnitId':_0x446fab,'pivotTableId':_0x4ce203,'params':{'type':_0x5e3388[_0x3e122c(0x1d0)],'setPivotTableConfig':{'pivotTableId':_0x4ce203,'pivotTableConfig':_0xb92a5e}}}))['result'][_0x3e122c(0x100)];if(!_0x403d6a)return!0x1;const {changesets:_0x12b441}=_0x403d6a,{redos:_0x2b957a,undos:_0x4954c2}=_0x54d6ee(_0x1223d2,{'pivotTableId':_0x4ce203,'unitId':_0x4d7e9a,'subUnitId':_0x446fab},_0x12b441);return _0x288eb9['sequenceExecute'](_0x2b957a,_0x1223d2),_0x179116[_0x3e122c(0x1b3)]({'unitID':_0x4d7e9a,'redoMutations':_0x2b957a,'undoMutations':_0x4954c2}),!0x0;}},_0x507f0e={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0xe5),async 'handler'(_0x4d592a,_0x16cd5d){const _0x49d249=_0x42bb9f;if(!_0x16cd5d)return!0x1;const _0x2d1417=_0x4d592a[_0x49d249(0x239)](_0x288eb9[_0x49d249(0x19d)]),{pivotTableId:_0x2b0ee4,tableFieldId:_0x3c5e43,items:_0x568b0f,unitId:_0x1d1cdc,subUnitId:_0x8f8750,isAll:_0x140d08}=_0x16cd5d,_0x4a2b63=_0x4d592a[_0x49d249(0x239)](_0x5bf755[_0x49d249(0x330)]),_0x4208c7=_0x4d592a['get'](_0x288eb9['IUndoRedoService']),_0xd2ea57=(await _0x4a2b63[_0x49d249(0x2eb)]({'unitId':_0x1d1cdc,'subUnitId':_0x8f8750,'pivotTableId':_0x2b0ee4,'params':{'type':_0x5e3388[_0x49d249(0x1ba)],'setPivotFilter':{'tableFieldId':_0x3c5e43,'items':_0x568b0f,'isAll':_0x140d08}}}))['result'][_0x49d249(0xa5)];if(!_0xd2ea57)return!0x1;const {changesets:_0x314f51,pivotTableConfig:_0x3eb9f3,isEmpty:_0x66ed71,view:_0x1039b6}=_0xd2ea57,_0x1fcd5f=_0x3eb9f3[_0x49d249(0x242)],_0x5920e3=new _0x2bd302[(_0x49d249(0x15a))]();_0x5920e3[_0x49d249(0x188)](_0x1039b6);const _0x100c47={'cellInfo':_0x1fcd5f,'view':_0x5920e3,'isEmpty':_0x66ed71};if(!await _0x4d592a[_0x49d249(0x239)](_0x5bf755[_0x49d249(0x19e)])[_0x49d249(0x2cc)][_0x49d249(0x1f9)](_0x5ce99e)(!0x0,_0x100c47))return!0x1;const _0x4f1b40=_0x3034a0(_0x4d592a,_0x5920e3,_0x1fcd5f,_0x66ed71),_0x4e0633=_0x1b91fb(_0x4d592a,_0x100c47),{undos:_0x306dcd,redos:_0x571e55}=_0x54d6ee(_0x2d1417,{'pivotTableId':_0x2b0ee4,'unitId':_0x1d1cdc,'subUnitId':_0x8f8750},_0x314f51);return _0x288eb9[_0x49d249(0x363)]([..._0x4f1b40['redos'],..._0x4e0633[_0x49d249(0x196)],..._0x571e55],_0x2d1417),_0x4208c7['pushUndoRedo']({'unitID':_0x1d1cdc,'redoMutations':[..._0x4f1b40[_0x49d249(0x196)],..._0x4e0633[_0x49d249(0x196)],..._0x571e55],'undoMutations':[..._0x4f1b40[_0x49d249(0x248)],..._0x4e0633['undos'],..._0x306dcd]}),!0x0;}},_0x45f54e={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x382),async 'handler'(_0xca8ec5,_0x3c1fa4){const _0x937ead=_0x42bb9f;if(!_0x3c1fa4)return!0x1;const _0x33be72=_0xca8ec5['get'](_0x288eb9[_0x937ead(0x19d)]),_0x27a601=_0xca8ec5[_0x937ead(0x239)](_0x288eb9[_0x937ead(0x17b)]),_0x5a721e=_0xca8ec5[_0x937ead(0x239)](_0x5bf755['SheetsPivotRPCService']),{info:_0x4b6202,tableFieldId:_0x1a31d9,pivotTableId:_0x4baa7d,unitId:_0x8517d2,subUnitId:_0x29521b}=_0x3c1fa4,_0x1532ba=(await _0x5a721e[_0x937ead(0x2eb)]({'unitId':_0x8517d2,'subUnitId':_0x29521b,'pivotTableId':_0x4baa7d,'params':{'type':_0x5e3388[_0x937ead(0x338)],'setPivotSort':{'tableFieldId':_0x1a31d9,'info':_0x4b6202}}}))['result'][_0x937ead(0xd2)];if(!_0x1532ba)return!0x1;const {changesets:_0x5c2738}=_0x1532ba,{redos:_0x165dd4,undos:_0x55b5db}=_0x54d6ee(_0x33be72,{'pivotTableId':_0x4baa7d,'unitId':_0x8517d2,'subUnitId':_0x29521b},_0x5c2738);return _0x288eb9['sequenceExecute'](_0x165dd4,_0x33be72),_0x27a601['pushUndoRedo']({'unitID':_0x8517d2,'redoMutations':_0x165dd4,'undoMutations':_0x55b5db}),!0x0;}},_0x16fa93={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x2c4fcd,_0x1607e4){const _0x35c03c=_0x42bb9f;if(!_0x1607e4)return!0x1;const _0xb4f23b=_0x2c4fcd[_0x35c03c(0x239)](_0x288eb9[_0x35c03c(0x19d)]),{pivotTableId:_0x1be3b2,fieldId:_0x549e58,valueFilterInfo:_0x4d7bab,unitId:_0x2a789a,subUnitId:_0x385374}=_0x1607e4,_0x2d1edb=_0x2c4fcd[_0x35c03c(0x239)](_0x5bf755['SheetsPivotRPCService']),_0xf115d5=_0x2c4fcd[_0x35c03c(0x239)](_0x288eb9[_0x35c03c(0x17b)]),_0x47f306=(await _0x2d1edb[_0x35c03c(0x2eb)]({'unitId':_0x2a789a,'subUnitId':_0x385374,'pivotTableId':_0x1be3b2,'params':{'type':_0x5e3388[_0x35c03c(0x323)],'setValuePivotFilter':{'tableFieldId':_0x549e58,'filterInfo':_0x4d7bab}}}))[_0x35c03c(0x312)][_0x35c03c(0x1fd)];if(!_0x47f306)return!0x1;const {changesets:_0x5c9181,pivotTableConfig:_0x3390f5,isEmpty:_0x1b133d,view:_0x87cfae}=_0x47f306,_0x10bf04=_0x3390f5[_0x35c03c(0x242)],_0x1689b7=new _0x2bd302[(_0x35c03c(0x15a))]();_0x1689b7[_0x35c03c(0x188)](_0x87cfae);const _0xb521f={'cellInfo':_0x10bf04,'view':_0x1689b7,'isEmpty':_0x1b133d};if(!await _0x2c4fcd[_0x35c03c(0x239)](_0x5bf755[_0x35c03c(0x19e)])['asyncInterceptor'][_0x35c03c(0x1f9)](_0x5ce99e)(!0x0,_0xb521f))return!0x1;const _0x28c6e6=_0x3034a0(_0x2c4fcd,_0x1689b7,_0x10bf04,_0x1b133d),_0x42f960=_0x1b91fb(_0x2c4fcd,_0xb521f),{undos:_0x59f395,redos:_0x2272ea}=_0x54d6ee(_0xb4f23b,{'pivotTableId':_0x1be3b2,'unitId':_0x2a789a,'subUnitId':_0x385374},_0x5c9181);return _0x288eb9[_0x35c03c(0x363)]([..._0x28c6e6['redos'],..._0x42f960[_0x35c03c(0x196)],..._0x2272ea],_0xb4f23b),_0xf115d5[_0x35c03c(0x1b3)]({'unitID':_0x2a789a,'redoMutations':[..._0x28c6e6[_0x35c03c(0x196)],..._0x42f960[_0x35c03c(0x196)],..._0x2272ea],'undoMutations':[..._0x28c6e6['undos'],..._0x42f960[_0x35c03c(0x248)],..._0x59f395]}),!0x0;}},_0x14bbb0={'id':_0x42bb9f(0x36f),'type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'handler':(_0x1376dc,_0x4a010c)=>{const _0x4b85e6=_0x42bb9f;if(!_0x4a010c)return!0x1;if(!!_0x1376dc['get'](_0x288eb9[_0x4b85e6(0xd5)])[_0x4b85e6(0x36b)](_0x34280f))return!0x0;const {unitId:_0x3bcd6f,subUnitId:_0x32dbac,pivotTableId:_0x4a3a8f,tableFieldId:_0x289457,dateType:_0x58b91f}=_0x4a010c,_0x3466bb=_0x1376dc['get'](_0x5bf755[_0x4b85e6(0x1ae)]),_0x451446=_0x3466bb[_0x4b85e6(0x25c)](_0x4a3a8f);if(!_0x451446)return!0x1;const _0x55a5fa=_0x451446[_0x4b85e6(0x37d)](_0x289457);if(!_0x55a5fa)return!0x1;const _0xf1cdb6=_0x55a5fa['getOriginFieldId'](),_0x4344bd=_0x451446[_0x4b85e6(0x2a1)](_0xf1cdb6),_0x551f96=(_0x4344bd==null?void 0x0:_0x4344bd['getName']())+'\x20'+_0xf6c030(_0x1376dc,_0x58b91f);_0x3466bb[_0x4b85e6(0x2c8)](_0x3bcd6f,_0x4a3a8f)[_0x4b85e6(0x333)](_0x55a5fa['id'],_0x551f96);const _0x398e81=_0x451446[_0x4b85e6(0x2aa)](_0x289457);if(!_0x398e81)return!0x1;_0x451446[_0x4b85e6(0x33c)](_0x398e81[_0x4b85e6(0x37c)](),_0x551f96),_0x55a5fa['setDateType'](_0x58b91f);const _0x5e3443=_0x3466bb['getPivotTableConfig'](_0x3bcd6f,_0x32dbac,_0x4a3a8f);return _0x3466bb['addDirtyPivotTable']({'unitId':_0x3bcd6f,'subUnitId':_0x32dbac,'token':_0x4a3a8f,'type':_0x2de5fe[_0x4b85e6(0x1d1)],'pivotConfig':_0x5e3443}),!0x0;}},_0x340d3f={'id':'sheet.command.update-date-group','type':_0x288eb9['CommandType'][_0x42bb9f(0xd0)],'handler':(_0x286dd9,_0x1cf995)=>{const _0x10291d=_0x42bb9f;if(!_0x1cf995)return!0x1;const _0x39a325=_0x286dd9['get'](_0x288eb9[_0x10291d(0x17b)]),{unitId:_0x41a986,subUnitId:_0x1a00a5,pivotTableId:_0x3aa9ae,tableFieldId:_0x394d7b}=_0x1cf995,_0x56db2a=[],_0x3fb47f=[],_0x133bd4=_0x286dd9['get'](_0x5bf755[_0x10291d(0x2e2)]),_0x493a30=_0x133bd4['getCollection'](_0x41a986,_0x3aa9ae),_0x4ef384=_0x133bd4[_0x10291d(0x9b)](_0x41a986,_0x1a00a5,_0x3aa9ae);if(!(_0x4ef384!=null&&_0x4ef384[_0x10291d(0x313)]['dimension']))return!0x1;const _0x2ef41e=Object['values'](_0x4ef384['fieldsConfig']['dimension'])[_0x10291d(0x261)](_0x1fbc32=>_0x1fbc32['id']===_0x394d7b);if(!_0x2ef41e)return!0x1;const _0xea4453=_0x2ef41e[_0x10291d(0x160)];if(!(_0x493a30!=null&&_0x493a30[_0x10291d(0x2c0)]))return!0x1;const _0x50d90e=Object[_0x10291d(0xe2)](_0x493a30==null?void 0x0:_0x493a30[_0x10291d(0x2c0)])[_0x10291d(0x261)](_0xb32694=>_0xb32694['id']===_0xea4453);if(!_0x50d90e)return!0x1;_0x2bd302[_0x10291d(0x20f)](_0x50d90e)&&_0x56db2a['push']({'id':_0x14bbb0['id'],'params':{..._0x1cf995,'dateType':_0x50d90e['dateType']}}),_0x3fb47f['push']({'id':_0x14bbb0['id'],'params':{..._0x1cf995}});const _0x3969bb=_0x286dd9['get'](_0x288eb9[_0x10291d(0x19d)]);return _0x288eb9['sequenceExecute'](_0x3fb47f,_0x3969bb)&&_0x39a325['pushUndoRedo']({'unitID':_0x41a986,'undoMutations':_0x56db2a,'redoMutations':_0x3fb47f}),!0x0;}},_0x12b36f={'type':_0x288eb9[_0x42bb9f(0x2fa)]['COMMAND'],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x9abed2,_0x5566f7){const _0x453126=_0x42bb9f;if(!_0x5566f7)return!0x1;const _0x1b08c3=_0x9abed2[_0x453126(0x239)](_0x288eb9[_0x453126(0x19d)]),_0xf763f0=_0x9abed2[_0x453126(0x239)](_0x288eb9[_0x453126(0x17b)]),_0x18c809=_0x9abed2[_0x453126(0x239)](_0x5bf755['SheetsPivotRPCService']),{displayName:_0x351c54,subtotalType:_0xf61f05,format:_0x4b4c0b,tableFieldId:_0x40fc41,pivotTableId:_0x100f25,unitId:_0x230213,subUnitId:_0x355c8b}=_0x5566f7,_0x1ab5c0=(await _0x18c809['getPivotDisplayConfig']({'unitId':_0x230213,'subUnitId':_0x355c8b,'pivotTableId':_0x100f25,'params':{'type':_0x5e3388[_0x453126(0x159)],'setPivotSetting':{'tableFieldId':_0x40fc41,'displayName':_0x351c54,'subtotalType':_0xf61f05,'format':_0x4b4c0b}}}))[_0x453126(0x312)][_0x453126(0x18b)];if(!_0x1ab5c0)return!0x1;const {changesets:_0x152af7,view:_0x295801,pivotTableConfig:_0x40c9f9,isEmpty:_0x2afa8f}=_0x1ab5c0,_0xa054d3=_0x40c9f9[_0x453126(0x242)],_0x2fed47=new _0x2bd302[(_0x453126(0x15a))]();_0x2fed47[_0x453126(0x188)](_0x295801);const _0x32afe9={'cellInfo':_0xa054d3,'view':_0x2fed47,'isEmpty':_0x2afa8f};if(!await _0x9abed2[_0x453126(0x239)](_0x5bf755[_0x453126(0x19e)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x5ce99e)(!0x0,_0x32afe9))return!0x1;const _0x300895=_0x3034a0(_0x9abed2,_0x2fed47,_0xa054d3,_0x2afa8f),_0x3cefdd=_0x1b91fb(_0x9abed2,_0x32afe9),{undos:_0xbd20ef,redos:_0x347ea9}=_0x54d6ee(_0x1b08c3,{'pivotTableId':_0x100f25,'unitId':_0x230213,'subUnitId':_0x355c8b},_0x152af7);return _0x288eb9[_0x453126(0x363)]([..._0x300895[_0x453126(0x196)],..._0x3cefdd[_0x453126(0x196)],..._0x347ea9],_0x1b08c3),_0xf763f0[_0x453126(0x1b3)]({'unitID':_0x230213,'redoMutations':[..._0x300895[_0x453126(0x196)],..._0x3cefdd[_0x453126(0x196)],..._0x347ea9],'undoMutations':[..._0x300895[_0x453126(0x248)],..._0x3cefdd[_0x453126(0x248)],..._0xbd20ef]}),!0x0;}},_0x1bc7f9={'type':_0x288eb9[_0x42bb9f(0x2fa)]['MUTATION'],'id':'sheet.mutation.update-pivot-table-source-range','handler'(_0x405a4c,_0x2fc109){const _0xe31fcb=_0x42bb9f;if(!_0x2fc109)return!0x1;if(!!_0x405a4c[_0xe31fcb(0x239)](_0x288eb9[_0xe31fcb(0xd5)])['getConfig'](_0x34280f))return!0x0;const _0x246e02=_0x405a4c[_0xe31fcb(0x239)](_0x5bf755['SheetsPivotDataSourceModel']),{pivotTableId:_0x3d1f18,deleteIds:_0x5c29b7,collectionJSON:_0x488806,dataRangeInfo:_0x21e92a,unitId:_0x381d3f,subUnitId:_0x235af8}=_0x2fc109,_0x107abb=_0x246e02['getPivotTableInstance'](_0x3d1f18),_0x2e82ee=_0x246e02[_0xe31fcb(0x9b)](_0x381d3f,_0x235af8,_0x3d1f18);if(!_0x107abb||!_0x2e82ee)return!0x1;const {collection:_0x2c8709,updateDataFieldList:_0xaac5a5}=_0x246e02['addCollectionByJSON'](_0x3d1f18,_0x488806,_0x21e92a,_0x2e82ee[_0xe31fcb(0x242)]);_0x246e02[_0xe31fcb(0x8b)](_0x2c8709,_0xaac5a5,_0x21e92a),_0x107abb[_0xe31fcb(0x142)](_0x2c8709);for(const _0x3063c8 of _0x5c29b7)_0x246e02[_0xe31fcb(0x21d)](_0x21e92a['unitId'],_0x3063c8);const _0x1c0026=_0x246e02[_0xe31fcb(0x9b)](_0x381d3f,_0x235af8,_0x3d1f18);return _0x1c0026[_0xe31fcb(0x156)]=JSON[_0xe31fcb(0x24f)](JSON[_0xe31fcb(0x297)](_0x21e92a)),_0x246e02[_0xe31fcb(0x1d8)]({'unitId':_0x381d3f,'subUnitId':_0x235af8,'token':_0x3d1f18,'type':_0x2de5fe[_0xe31fcb(0x1d1)]}),!0x0;}},_0x228b3a={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x2b0),async 'handler'(_0x3b4a43,_0xa1abb5){const _0x4a268f=_0x42bb9f,_0x5bce21=_0x3b4a43['get'](_0x288eb9[_0x4a268f(0x19d)]),_0x32eca5=_0x3b4a43[_0x4a268f(0x239)](_0x5bf755[_0x4a268f(0x330)]),_0x1ad008=_0x3b4a43[_0x4a268f(0x239)](_0x288eb9['IUndoRedoService']);if(!_0xa1abb5)return!0x1;const {token:_0x40f829,dataRangeInfo:_0x3009ae,unitId:_0x23d392,subUnitId:_0x34a6d9}=_0xa1abb5,_0x215ad4=[],_0x49e09d=[],_0x4b1d39=(await _0x32eca5[_0x4a268f(0x2eb)]({'unitId':_0x23d392,'subUnitId':_0x34a6d9,'pivotTableId':_0x40f829,'params':{'type':_0x5e3388[_0x4a268f(0x27e)],'updatePivotSource':{'dataRangeInfo':_0x3009ae,'unitId':_0x23d392,'subUnitId':_0x34a6d9}}}))[_0x4a268f(0x312)]['updatePivotSource'];if(!_0x4b1d39)return!0x1;const {changesets:_0x1d3f28,deleteIds:_0x3ee1c8,collectionConfig:_0x3ddf62,oldCollectionConfig:_0x4ff031,view:_0xb0b790,isEmpty:_0x30dae6,pivotTableConfig:_0x311dd5}=_0x4b1d39;_0x49e09d[_0x4a268f(0x364)]({'id':_0x1bc7f9['id'],'params':{'pivotTableId':_0x40f829,'deleteIds':_0x3ee1c8,'collectionJSON':_0x3ddf62,'dataRangeInfo':_0x3009ae,'unitId':_0x23d392,'subUnitId':_0x34a6d9}}),_0x215ad4[_0x4a268f(0x2dd)]({'id':_0x1bc7f9['id'],'params':{'pivotTableId':_0x40f829,'deleteIds':[],'collectionJSON':_0x4ff031,'dataRangeInfo':_0x311dd5[_0x4a268f(0x156)],'unitId':_0x23d392,'subUnitId':_0x34a6d9}});const _0x4210a1=_0x311dd5[_0x4a268f(0x242)],_0xa161c4=new _0x2bd302[(_0x4a268f(0x15a))]();_0xa161c4[_0x4a268f(0x188)](_0xb0b790);const _0x4a5e72={'cellInfo':_0x4210a1,'view':_0xa161c4,'isEmpty':_0x30dae6};if(!await _0x3b4a43['get'](_0x5bf755[_0x4a268f(0x19e)])[_0x4a268f(0x2cc)][_0x4a268f(0x1f9)](_0x5ce99e)(!0x0,_0x4a5e72))return!0x1;const _0x2884fd=_0x3034a0(_0x3b4a43,_0xa161c4,_0x4210a1,_0x30dae6),_0xa14f4c=_0x1b91fb(_0x3b4a43,_0x4a5e72),{undos:_0x124e02,redos:_0x50a426}=_0x54d6ee(_0x5bce21,{'pivotTableId':_0x40f829,'unitId':_0x23d392,'subUnitId':_0x34a6d9},_0x1d3f28);return _0x288eb9[_0x4a268f(0x363)]([..._0x2884fd[_0x4a268f(0x196)],..._0xa14f4c[_0x4a268f(0x196)],..._0x49e09d,..._0x124e02],_0x5bce21),_0x1ad008[_0x4a268f(0x1b3)]({'unitID':_0x23d392,'redoMutations':[..._0x2884fd[_0x4a268f(0x196)],..._0xa14f4c[_0x4a268f(0x196)],..._0x49e09d,..._0x124e02],'undoMutations':[..._0x2884fd['undos'],..._0xa14f4c[_0x4a268f(0x248)],..._0x215ad4,..._0x50a426]}),!0x0;}},_0x51c029={'type':_0x288eb9[_0x42bb9f(0x2fa)][_0x42bb9f(0xd0)],'id':_0x42bb9f(0x317),async 'handler'(_0x20835e,_0x482d06){const _0x17b34d=_0x42bb9f;if(!_0x482d06)return!0x1;const _0x196364=_0x20835e[_0x17b34d(0x239)](_0x288eb9['ICommandService']),_0x563194=_0x20835e['get'](_0x5bf755[_0x17b34d(0x330)]),_0x2e06cb=_0x20835e[_0x17b34d(0x239)](_0x288eb9['IUniverInstanceService']),_0x4bd8b1=_0x20835e['get'](_0x288eb9[_0x17b34d(0x17b)]),{pivotTableId:_0x3e109f,position:_0x5a38da,index:_0x20039f}=_0x482d06,_0x483c37=_0x2e27a8['getSheetCommandTarget'](_0x2e06cb);if(!_0x483c37)return!0x1;const {unitId:_0x43f4ef,subUnitId:_0x211e0d}=_0x483c37,_0xb782a4=(await _0x563194[_0x17b34d(0x2eb)]({'unitId':_0x43f4ef,'subUnitId':_0x211e0d,'pivotTableId':_0x3e109f,'params':{'type':_0x5e3388[_0x17b34d(0x1e0)],'updateValuePosition':{'position':_0x5a38da,'index':_0x20039f}}}))['result'][_0x17b34d(0x162)];if(!_0xb782a4)return!0x1;const {changesets:_0x2d4047,view:_0x97b07,isEmpty:_0x18c23e,pivotTableConfig:_0x2ee493}=_0xb782a4,_0x232238=_0x2ee493[_0x17b34d(0x242)],_0x4fd9b0=new _0x2bd302['PivotView']();_0x4fd9b0[_0x17b34d(0x188)](_0x97b07);const _0xacc458=_0x20835e[_0x17b34d(0x239)](_0x5bf755['SheetsPivotTableService']),_0x26886e={'cellInfo':_0x232238,'view':_0x4fd9b0,'isEmpty':_0x18c23e};if(!await _0xacc458['asyncInterceptor'][_0x17b34d(0x1f9)](_0x5ce99e)(!0x0,_0x26886e))return!0x1;const _0x52baeb=_0x3034a0(_0x20835e,_0x4fd9b0,_0x232238,_0x18c23e),_0x3980dd=_0x1b91fb(_0x20835e,_0x26886e),{undos:_0x215c02,redos:_0x10a571}=_0x54d6ee(_0x196364,{'pivotTableId':_0x3e109f,'unitId':_0x43f4ef,'subUnitId':_0x211e0d},_0x2d4047);return _0x288eb9[_0x17b34d(0x363)]([..._0x52baeb[_0x17b34d(0x196)],..._0x3980dd[_0x17b34d(0x196)],..._0x10a571],_0x196364),_0x4bd8b1['pushUndoRedo']({'unitID':_0x43f4ef,'redoMutations':[..._0x52baeb[_0x17b34d(0x196)],..._0x3980dd[_0x17b34d(0x196)],..._0x10a571],'undoMutations':[..._0x52baeb[_0x17b34d(0x248)],..._0x3980dd[_0x17b34d(0x248)],..._0x215c02]}),!0x0;}},_0x49e4cb={'type':_0x288eb9['CommandType']['MUTATION'],'id':_0x42bb9f(0x385),'handler'(){return!0x0;}};var _0x196545=Object['getOwnPropertyDescriptor'],_0x214c8f=(_0x2f58e9,_0x24bc9f,_0x1c13a2,_0x5bc2b9)=>{const _0x1cab6b=_0x42bb9f;for(var _0x57ac92=_0x5bc2b9>0x1?void 0x0:_0x5bc2b9?_0x196545(_0x24bc9f,_0x1c13a2):_0x24bc9f,_0xb32ab9=_0x2f58e9[_0x1cab6b(0x8f)]-0x1,_0x37ae3a;_0xb32ab9>=0x0;_0xb32ab9--)(_0x37ae3a=_0x2f58e9[_0xb32ab9])&&(_0x57ac92=_0x37ae3a(_0x57ac92)||_0x57ac92);return _0x57ac92;},_0x1112db=(_0x1db3ab,_0x558817)=>(_0x32d17d,_0x5a04ab)=>_0x558817(_0x32d17d,_0x5a04ab,_0x1db3ab);const _0x2a404a=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0xf8cdf2=(_0x4518e5,_0x19c6bf,_0x339b8b)=>{const _0x52a603=_0x42bb9f,_0xd3f7ab=_0x4518e5[_0x52a603(0x34f)];_0x4518e5[_0x52a603(0xdf)](_0x3fbc27=>{const _0x428402=_0x52a603,_0x1d67bd=_0x3fbc27['getId'](),_0x3fcb46=_0x3fbc27[_0x428402(0x35f)](),_0x3dadcc=_0x3fbc27['getSourceName'](),_0xb84e85=_0x3fbc27['getDisplayName']();_0x19c6bf[_0x3fcb46]&&_0x19c6bf[_0x3fcb46]===_0xb84e85&&_0x3dadcc===_0xb84e85&&(_0x4518e5[_0x428402(0x33c)](_0x1d67bd,_0xd3f7ab[_0x428402(0x229)](_0x3fcb46)),_0x3fbc27[_0x428402(0x387)](_0xd3f7ab['getDisplayName'](_0x3fcb46)));}),_0x4518e5[_0x52a603(0x37e)](_0x2bd302[_0x52a603(0x25f)][_0x52a603(0x34e)],_0x5451a7=>{const _0x46a251=_0x52a603,_0x1b2c5b=_0x5451a7[_0x46a251(0x37c)](),_0x2e8b4a=_0x5451a7['getDataFieldId'](),_0x4387c1=_0x5451a7[_0x46a251(0x217)](),_0x33b957=_0x5451a7['getDisplayName'](),_0x44fb88=_0x5451a7['getSubtotal'](),_0x3e43cd=_0x339b8b(_0x4387c1,_0x44fb88);_0x19c6bf[_0x2e8b4a]&&_0x19c6bf[_0x2e8b4a]===_0x4387c1&&_0x3e43cd===_0x33b957&&(_0x4518e5[_0x46a251(0x33c)](_0x1b2c5b,_0x339b8b(_0xd3f7ab['getDisplayName'](_0x2e8b4a),_0x44fb88)),_0x5451a7[_0x46a251(0x387)](_0xd3f7ab[_0x46a251(0x229)](_0x2e8b4a)));});},_0x22a4d9=(_0xf1fa53,_0x25548e,_0x5405e9)=>{const _0x14db6f=_0x42bb9f;var _0x20658d,_0x16784c;const {arrayFormulaCellData:_0x16587d,unitData:_0x15b4f7}=_0x25548e,{unitId:_0x4eae79,subUnitId:_0x1f0059}=_0x5405e9,_0x71152e=_0x5405e9['range'],{startColumn:_0x11ed3d,endColumn:_0x4afba3}=_0x71152e,_0x426fdd=(_0x20658d=_0x16587d==null?void 0x0:_0x16587d[_0x4eae79])==null?void 0x0:_0x20658d[_0x1f0059],_0x43536e=(_0x16784c=_0x15b4f7==null?void 0x0:_0x15b4f7[_0x4eae79])==null?void 0x0:_0x16784c[_0x1f0059],_0x5644e0=new Set(),_0x1f2241=_0x4afba3-_0x11ed3d+0x1,{dirtyRanges:_0x50a994}=_0xf1fa53;if(_0x50a994)for(const {range:_0x33cb24,sheetId:_0x2ced18,unitId:_0x593425}of _0x50a994){if(_0x2ced18!==_0x1f0059||_0x4eae79!==_0x593425)continue;const _0x59f16e=_0x288eb9['Rectangle'][_0x14db6f(0x2ce)](_0x33cb24,_0x71152e);if(_0x59f16e){const {startColumn:_0x32a303,endColumn:_0xaeb5de}=_0x59f16e;for(let _0x4e1edf=_0x32a303;_0x4e1edf<=_0xaeb5de;_0x4e1edf++)_0x5644e0[_0x14db6f(0x246)](_0x4e1edf);}}if(_0x5644e0[_0x14db6f(0x1f6)]===_0x1f2241||_0x5644e0[_0x14db6f(0x1f6)]===_0x1f2241)return Array[_0x14db6f(0x193)](_0x5644e0);if(_0x43536e){const _0x173bc5=_0x43536e[_0x14db6f(0x12c)](),_0x53c69f=Object[_0x14db6f(0x237)](_0x173bc5);for(const _0x58b564 of _0x53c69f){const _0x6d14de=Number(_0x58b564),_0x6903de=_0x173bc5[_0x6d14de];if(_0x5644e0[_0x14db6f(0x1f6)]===_0x1f2241)break;for(const _0x578850 in _0x6903de){const _0x33b0f7=Number(_0x578850);_0x33b0f7<_0x11ed3d||_0x33b0f7>_0x4afba3||_0x5644e0[_0x14db6f(0x246)](_0x33b0f7);}}}if(_0x426fdd){const _0x2078ed=_0x426fdd['getMatrix'](),_0x5c0506=Object['keys'](_0x2078ed);for(const _0x3c43d2 of _0x5c0506){const _0x5e1206=Number(_0x3c43d2),_0x5b88d0=_0x2078ed[_0x5e1206];if(_0x5644e0[_0x14db6f(0x1f6)]===_0x1f2241)break;for(const _0x463e28 in _0x5b88d0){const _0xe2f05=Number(_0x463e28);_0xe2f05<_0x11ed3d||_0xe2f05>_0x4afba3||_0x5644e0[_0x14db6f(0x246)](_0xe2f05);}}}return Array[_0x14db6f(0x193)](_0x5644e0);},_0xeff524=_0x21f2b6=>{const _0x11bf92=_0x42bb9f,_0x2e1e9b=new Set(),_0xb97849=[];for(const _0x1880e2 of _0x21f2b6){const _0x4f51dd=_0x1880e2['startRow']+','+_0x1880e2['endRow']+','+_0x1880e2[_0x11bf92(0x1c9)]+','+_0x1880e2['endColumn'];_0x2e1e9b[_0x11bf92(0xde)](_0x4f51dd)||(_0x2e1e9b[_0x11bf92(0x246)](_0x4f51dd),_0xb97849[_0x11bf92(0x364)](_0x1880e2));}return _0xb97849;};let _0x161fb7=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x203794,_0x50d6e0,_0x475c16,_0x540863,_0x130cbd){const _0x40c840=_0x42bb9f;super(),_0x4fb07d(this,_0x40c840(0x16a),new _0x4e0a85[(_0x40c840(0x269))](!0x0)),_0x4fb07d(this,_0x40c840(0x1a1),_0x3514ec=>{const _0x4f5022=_0x40c840;this[_0x4f5022(0x16a)][_0x4f5022(0x287)](!0x1);}),_0x4fb07d(this,_0x40c840(0x33e),_0x598617=>{const _0x11c7ce=_0x40c840;this[_0x11c7ce(0x16a)][_0x11c7ce(0x287)](!0x0);}),(this[_0x40c840(0x228)]=_0x203794,this[_0x40c840(0x112)]=_0x50d6e0,this[_0x40c840(0x370)]=_0x475c16,this[_0x40c840(0x1c3)]=_0x540863,this['_injector']=_0x130cbd,this[_0x40c840(0x1eb)](),this[_0x40c840(0x215)]());}[_0x42bb9f(0x1eb)](){const _0x5abdd5=_0x42bb9f;this[_0x5abdd5(0x20e)](),this['_subjectViewChange'](),this[_0x5abdd5(0xcd)](),this[_0x5abdd5(0x2c2)]();}[_0x42bb9f(0x24e)](){const _0x4f7c7e=_0x42bb9f;this[_0x4f7c7e(0x1c3)]['pushComputingStatusSubject'](this[_0x4f7c7e(0x16a)]),_0x2bd302[_0x4f7c7e(0x14e)][_0x4f7c7e(0x270)](_0x2bd302[_0x4f7c7e(0x93)][_0x4f7c7e(0x259)],this[_0x4f7c7e(0x1a1)]),_0x2bd302[_0x4f7c7e(0x14e)][_0x4f7c7e(0x270)](_0x2bd302[_0x4f7c7e(0x93)][_0x4f7c7e(0xa9)],this['_globalComputedEndHelpFunc']);}[_0x42bb9f(0x215)](){const _0x30997f=_0x42bb9f;this['disposeWithMe'](this[_0x30997f(0x370)]['onCommandExecuted'](_0x1ab4d1=>{const _0x4addcc=_0x30997f;_0x1ab4d1['id']===_0x2e27a8[_0x4addcc(0x17d)]['id']&&this[_0x4addcc(0x228)][_0x4addcc(0xf5)](_0x1ab4d1[_0x4addcc(0x2e6)]);})),this[_0x30997f(0x148)](this[_0x30997f(0x370)][_0x30997f(0x222)](_0xd6a961=>{const _0x4f5f13=_0x30997f;if(_0xd6a961['id']!==_0x459da1['id'])return;const _0x2beed6=_0xd6a961[_0x4f5f13(0x2e6)],{unitId:_0x59375e,subUnitId:_0x32f178,pivotTableId:_0x55386d}=_0x2beed6,_0x1f6c5d=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0x29a)],_0x26d147={};switch(_0x1f6c5d){case _0x5e3388['Filter']:{const _0x5a1d1d=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0xdc)];if(!_0x5a1d1d)return;const {row:_0x1ba68b,col:_0x5bb087,cellData:_0x3c7114,pivotItemRenderInfoCache:_0x1f1abb,tableFieldId:_0x10ea65}=_0x5a1d1d,_0x13cfec=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x25c)](_0x2beed6[_0x4f5f13(0x111)]);if(!_0x13cfec||!_0x1f1abb)return;if(_0x10ea65){const _0x269203=_0x13cfec['getDataFieldByTableId'](_0x10ea65);if(!_0x269203)return;_0x26d147['filter']={..._0x13cfec[_0x4f5f13(0x1c6)](_0x269203),'tableFieldId':_0x10ea65,'pivotTableId':_0x2beed6[_0x4f5f13(0x111)],'filterInfo':_0x13cfec[_0x4f5f13(0x354)](_0x10ea65),'sortInfo':_0x13cfec[_0x4f5f13(0x14d)](_0x10ea65),'format':_0x13cfec[_0x4f5f13(0xcb)](_0x10ea65)};}else{const _0x561e0d=_0x2bc413(_0x1ba68b,_0x5bb087,_0x3c7114,_0x13cfec,_0x1f1abb),_0x1f62b3=_0x561e0d==null?void 0x0:_0x561e0d[_0x4f5f13(0x21f)];if(!_0x1f62b3)return;const _0x5cc344=_0x13cfec[_0x4f5f13(0x37d)](_0x1f62b3);if(!_0x5cc344)return;_0x26d147[_0x4f5f13(0xdc)]={..._0x13cfec[_0x4f5f13(0x1c6)](_0x5cc344),'tableFieldId':_0x1f62b3,'pivotTableId':_0x2beed6[_0x4f5f13(0x111)],'filterInfo':_0x13cfec[_0x4f5f13(0x354)](_0x1f62b3),'sortInfo':_0x13cfec[_0x4f5f13(0x14d)](_0x1f62b3),'format':_0x13cfec[_0x4f5f13(0xcb)](_0x1f62b3)};}}break;case _0x5e3388[_0x4f5f13(0x2ad)]:{const _0x1975e7=_0x2beed6[_0x4f5f13(0x2e6)]['panel'];if(!_0x1975e7)return;const {pivotTableId:_0x3f897d}=_0x1975e7,_0x3f9356=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x3f897d);if(!_0x3f9356)return;const _0x533c6a=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x3f897d),_0x129889=_0x5da254(_0x3f9356,_0x3f897d,_0x533c6a);_0x26d147[_0x4f5f13(0x378)]=_0x129889;}break;case _0x5e3388['AddPivotField']:{const _0x10038e=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d),_0x2d6443=this[_0x4f5f13(0x228)][_0x4f5f13(0x138)](_0x59375e),_0x182149=_0x2d6443['getCollection'](_0x55386d);let _0x525871=null;const _0x369cec=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d),_0x1508c2=_0x2beed6['params'][_0x4f5f13(0x10d)];if(!_0x10038e||!_0x369cec||!_0x1508c2)return!0x1;const {dataFieldId:_0x39b4b6,fieldArea:_0xdff930,index:_0x339902}=_0x1508c2;_0x10038e[_0x4f5f13(0x208)]();const _0xcc63c=_0x10038e[_0x4f5f13(0x274)](_0x39b4b6,_0xdff930,_0x339902);if(_0xcc63c&&_0xdff930===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x34e)]){const _0x212015=_0xcc63c[_0x4f5f13(0x37c)](),_0x5c6e15=_0x10038e[_0x4f5f13(0x37d)](_0x212015);if(_0x5c6e15){const _0x454cb2=_0x5c6e15==null?void 0x0:_0x5c6e15[_0x4f5f13(0x103)]();_0x10038e['setSubtotalType'](_0xcc63c[_0x4f5f13(0x37c)](),_0x454cb2===_0x2bd302[_0x4f5f13(0x134)][_0x4f5f13(0x26e)]?_0x2bd302['PivotSubtotalTypeEnum'][_0x4f5f13(0x1e8)]:_0x2bd302[_0x4f5f13(0x35c)][_0x4f5f13(0x18d)]);}const _0x1669bd=_0x10038e[_0x4f5f13(0xc0)](),_0x474461=_0x10038e['getValuePosition'](),_0x4afe61=_0x10038e['getFieldCountByArea'](_0x2bd302['PivotTableFiledAreaEnum'][_0x4f5f13(0x34e)]);if(_0x1669bd===-0x1&&_0x4afe61>0x1){const _0x45b722=_0x474461===_0x2bd302[_0x4f5f13(0x2be)][_0x4f5f13(0x2b1)]?_0x2bd302[_0x4f5f13(0x2be)]['Column']:_0x474461,_0xf5e49b=_0x45b722===_0x2bd302[_0x4f5f13(0x2be)][_0x4f5f13(0x1d7)]?_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x1d7)]:_0x2bd302['PivotTableFiledAreaEnum'][_0x4f5f13(0x2b9)];_0x10038e['updateValuePosition'](_0x45b722,_0x10038e[_0x4f5f13(0x341)](_0xf5e49b));}}else{if(_0xcc63c&&(_0xdff930===_0x2bd302['PivotTableFiledAreaEnum'][_0x4f5f13(0x1d7)]||_0xdff930===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x2b9)])){const _0x36a57e=_0xcc63c[_0x4f5f13(0x37c)](),_0x4fd338=_0x10038e[_0x4f5f13(0x37d)](_0x36a57e);if(_0x4fd338&&(_0x4fd338==null?void 0x0:_0x4fd338[_0x4f5f13(0x103)]())===_0x2bd302[_0x4f5f13(0x134)][_0x4f5f13(0x324)]){const _0x2b2f46=_0x4fd338[_0x4f5f13(0x257)]();if(_0x2b2f46&&_0x10038e[_0x4f5f13(0x1a3)](_0xcc63c[_0x4f5f13(0x37c)](),_0x2b2f46),!_0x182149[_0x4f5f13(0x15d)]()[_0x4f5f13(0x281)](_0x18eeab=>{const _0x5c44e2=_0x4f5f13,_0x4d3c9b=_0x182149[_0x5c44e2(0xfb)](_0x18eeab);return _0x2bd302[_0x5c44e2(0x376)](_0x4d3c9b)?_0x4d3c9b[_0x5c44e2(0x192)]()[_0x5c44e2(0x95)]===_0x39b4b6:!0x1;})){const _0x16e6da=_0x2d6443[_0x4f5f13(0x1de)](),_0x5c1b75=_0xfb878c(_0x4fd338[_0x4f5f13(0x22d)],_0x4fd338[_0x4f5f13(0x141)]),_0x2d3f75=_0x4fd338['getName']()+'\x20-\x20'+_0xf6c030(this['_injector'],_0x5c1b75),_0x3939ca=new _0x2bd302[(_0x4f5f13(0x398))](_0x16e6da,_0x2d3f75,_0x2bd302[_0x4f5f13(0x383)](0x3),_0x4fd338[_0x4f5f13(0x37c)](),_0x5c1b75);_0x2d6443[_0x4f5f13(0x12a)](_0x3939ca),_0x182149['addField'](_0x16e6da,_0x2d3f75),_0x10038e[_0x4f5f13(0x274)](_0x16e6da,_0xdff930,(_0x339902!=null?_0x339902:0x0)+0x1),_0x525871=_0x3939ca;}}}}const _0x5a18cc=_0x10038e[_0x4f5f13(0x279)](),_0x33fd10=_0x10038e['query']()[_0x4f5f13(0x90)]();let _0x24b8c1;if(_0x525871){_0x24b8c1=_0x525871[_0x4f5f13(0x90)]();const _0xd47c37=_0x525871[_0x4f5f13(0x37c)]();_0x182149[_0x4f5f13(0x309)](_0xd47c37);let _0x44667c=!0x0;for(const _0x1af38f in _0x2d6443['collections'])if(_0x2d6443[_0x4f5f13(0x211)][_0x1af38f][_0x4f5f13(0x15d)]()['includes'](_0xd47c37)){_0x44667c=!0x1;break;}_0x44667c&&_0x2d6443[_0x4f5f13(0x2a8)](_0xd47c37);}const _0x23c966=_0x10038e[_0x4f5f13(0x180)]();_0x26d147[_0x4f5f13(0x10d)]={'view':_0x33fd10,'changesets':_0x23c966,'isEmpty':_0x5a18cc,'pivotTableConfig':_0x369cec,'shouldBeAddedGroupJSON':_0x24b8c1};}break;case _0x5e3388[_0x4f5f13(0x2ba)]:{const _0x5cae88=_0x2beed6[_0x4f5f13(0x2e6)]['addPivotTable'];if(!_0x5cae88)return;const _0x4a0881=_0x5cae88[_0x4f5f13(0x156)],_0x495f68=_0x5cae88[_0x4f5f13(0x111)],{collection:_0x4b7b42}=this[_0x4f5f13(0x228)][_0x4f5f13(0x35b)]({'unitId':_0x4a0881[_0x4f5f13(0x360)],'sheetName':_0x4a0881[_0x4f5f13(0x96)],'subUnitId':_0x4a0881[_0x4f5f13(0x179)],'range':_0x4a0881[_0x4f5f13(0x272)]}),_0x4f4886=new _0x2bd302[(_0x4f5f13(0x14e))](_0x4b7b42,void 0x0,_0x495f68),_0x2035d1=_0x4f4886[_0x4f5f13(0x26f)](),_0x3dffdd=_0x4f4886[_0x4f5f13(0x90)](),_0x43bce7=_0x4b7b42[_0x4f5f13(0x90)]();_0x26d147[_0x4f5f13(0xdb)]={'view':_0x2035d1,'fieldsConfig':_0x3dffdd,'collectionConfig':_0x43bce7,'isEmpty':_0x4f4886['isEmpty']()};}break;case _0x5e3388['MovePivotField']:{const _0x5528b6=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0xb0)];if(!_0x5528b6)return;const {fieldId:_0x563218,area:_0x1daf86,index:_0x108e3a}=_0x5528b6,_0x4e1dac=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0x4e1dac)return;const _0x14e070=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d);if(!_0x14e070)return;_0x14e070[_0x4f5f13(0x208)]();const {area:_0xd41ea8,index:_0x1f0980}=_0x14e070[_0x4f5f13(0x265)](_0x563218);if(_0x14e070[_0x4f5f13(0x375)](_0x563218,_0x1daf86,_0x108e3a),_0x1daf86===_0x2bd302[_0x4f5f13(0x25f)]['Value']&&_0x14e070[_0x4f5f13(0x2aa)](_0x563218)[_0x4f5f13(0x389)]()===void 0x0){const _0x17d4ed=_0x14e070[_0x4f5f13(0x2aa)](_0x563218);if(_0x17d4ed&&_0x17d4ed['getSubtotal']()===void 0x0){const _0x49b064=_0x14e070[_0x4f5f13(0x37d)](_0x563218);if(_0x49b064){const _0x16fe1a=_0x49b064==null?void 0x0:_0x49b064[_0x4f5f13(0x103)]();_0x14e070[_0x4f5f13(0xf6)](_0x563218,_0x16fe1a===_0x2bd302[_0x4f5f13(0x134)][_0x4f5f13(0x26e)]?_0x2bd302['PivotSubtotalTypeEnum'][_0x4f5f13(0x1e8)]:_0x2bd302[_0x4f5f13(0x35c)]['count']);}}}const _0x4a2837=_0x14e070['getValuePosition'](),_0x5e1741=_0x14e070[_0x4f5f13(0xc0)](),_0x31e33e=_0x14e070[_0x4f5f13(0x341)](_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x34e)])>0x1;if(_0x31e33e&&_0xd41ea8===_0x1daf86&&(_0x1daf86===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x1d7)]&&_0x4a2837===_0x2bd302[_0x4f5f13(0x2be)]['Row']||_0x1daf86===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x2b9)]&&_0x4a2837===_0x2bd302[_0x4f5f13(0x2be)]['Column'])){let _0x47b93e=_0x5e1741;_0x1f0980<=_0x5e1741&&_0x47b93e--,_0x108e3a<=_0x5e1741&&_0x47b93e++,_0x14e070['updateValuePosition'](_0x4a2837,_0x47b93e);}else _0x31e33e&&(_0xd41ea8===_0x2bd302[_0x4f5f13(0x25f)]['Row']&&_0x4a2837===_0x2bd302[_0x4f5f13(0x2be)][_0x4f5f13(0x1d7)]||_0xd41ea8===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x2b9)]&&_0x4a2837===_0x2bd302[_0x4f5f13(0x2be)][_0x4f5f13(0x2b9)])&&_0x5e1741>=_0x1f0980&&_0x14e070[_0x4f5f13(0x162)](_0x4a2837,_0x5e1741-0x1),_0x31e33e&&(_0x1daf86===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x1d7)]&&_0x4a2837===_0x2bd302[_0x4f5f13(0x2be)][_0x4f5f13(0x1d7)]||_0x1daf86===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x2b9)]&&_0x4a2837===_0x2bd302[_0x4f5f13(0x2be)]['Column'])&&_0x5e1741>=_0x108e3a&&_0x14e070[_0x4f5f13(0x162)](_0x4a2837,_0x5e1741+0x1);const _0x43f210=_0x14e070[_0x4f5f13(0x26f)](),_0x569478=_0x14e070['isEmpty'](),_0x3bae74=_0x14e070['endCollectChangeset']();_0x26d147[_0x4f5f13(0xb0)]={'view':_0x43f210[_0x4f5f13(0x90)](),'changesets':_0x3bae74,'isEmpty':_0x569478,'pivotTableConfig':_0x4e1dac};}break;case _0x5e3388[_0x4f5f13(0x151)]:{const _0x415ae2=_0x2beed6['params'][_0x4f5f13(0xb1)];if(!_0x415ae2)return;const _0x399ee1=_0x415ae2[_0x4f5f13(0x2e0)],_0x4ede5f=this[_0x4f5f13(0x228)]['getPivotTableConfig'](_0x59375e,_0x32f178,_0x55386d);if(!_0x4ede5f)return!0x1;const _0x5568f2=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d);if(!_0x5568f2)return!0x1;_0x5568f2[_0x4f5f13(0x208)]();for(const _0x2a2fb6 of _0x399ee1){const {area:_0x5e37c6}=_0x5568f2[_0x4f5f13(0x265)](_0x2a2fb6);_0x5e37c6===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x34e)]&&_0x5568f2[_0x4f5f13(0x1b4)](_0x2a2fb6),(_0x5e37c6===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x1d7)]||_0x5e37c6===_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x2b9)])&&_0x5568f2['removeValueFilterInfo'](_0x2a2fb6),_0x5568f2['removeField'](_0x2a2fb6);}const _0x4cc137=_0x5568f2[_0x4f5f13(0x279)](),_0x5f58e0=_0x5568f2[_0x4f5f13(0x26f)]()[_0x4f5f13(0x90)](),_0x1589ad=_0x5568f2[_0x4f5f13(0x180)]();_0x26d147['removePivotField']={'changesets':_0x1589ad,'pivotTableConfig':_0x4ede5f,'isEmpty':_0x4cc137,'view':_0x5f58e0};}break;case _0x5e3388['SetPivotFilter']:{const _0x14d0cc=_0x2beed6['params'][_0x4f5f13(0xa5)];if(!_0x14d0cc)return;const {tableFieldId:_0x46767b,items:_0x298426,isAll:_0xc12f03}=_0x14d0cc,_0x5d8664=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x55386d),_0x25d60b=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0x5d8664||!_0x25d60b)return;_0x5d8664[_0x4f5f13(0x208)](),_0x5d8664[_0x4f5f13(0x286)](_0x46767b,{'type':_0x2bd302['PivotFilterTypeEnum'][_0x4f5f13(0xae)],'list':_0x298426,'isAll':_0xc12f03});const _0x2ae927=_0x5d8664[_0x4f5f13(0x279)](),_0x2e57dd=_0x5d8664[_0x4f5f13(0x26f)]()[_0x4f5f13(0x90)](),_0x2e4574=_0x5d8664['endCollectChangeset']();_0x26d147[_0x4f5f13(0xa5)]={'view':_0x2e57dd,'changesets':_0x2e4574,'isEmpty':_0x2ae927,'pivotTableConfig':_0x25d60b};}break;case _0x5e3388[_0x4f5f13(0x323)]:{const _0x1772f1=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0x1fd)];if(!_0x1772f1)return;const {tableFieldId:_0x5a7f4b,filterInfo:_0x541312}=_0x1772f1,_0xe6d6c2=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d),_0x20f8e8=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0xe6d6c2||!_0x20f8e8)return;_0xe6d6c2[_0x4f5f13(0x208)](),_0xe6d6c2['setValueFilterInfo'](_0x5a7f4b,_0x541312);const _0x1d93c0=_0xe6d6c2[_0x4f5f13(0x279)](),_0x5ab70c=_0xe6d6c2[_0x4f5f13(0x26f)]()['toJSON'](),_0x3bda12=_0xe6d6c2[_0x4f5f13(0x180)]();_0x26d147[_0x4f5f13(0x1fd)]={'view':_0x5ab70c,'changesets':_0x3bda12,'isEmpty':_0x1d93c0,'pivotTableConfig':_0x20f8e8};}break;case _0x5e3388[_0x4f5f13(0x338)]:{const _0x1e0ebd=_0x2beed6[_0x4f5f13(0x2e6)]['setPivotSort'];if(!_0x1e0ebd)return;const {tableFieldId:_0x254e56,info:_0x36cef0}=_0x1e0ebd,_0xf4af44=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d),_0x340877=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0xf4af44||!_0x340877)return;_0xf4af44['startCollectChangeset'](),_0xf4af44[_0x4f5f13(0x23e)](_0x254e56,_0x36cef0);const _0x130d0a=_0xf4af44[_0x4f5f13(0x279)](),_0x244f6c=_0xf4af44[_0x4f5f13(0x26f)]()[_0x4f5f13(0x90)](),_0x995ff4=_0xf4af44[_0x4f5f13(0x180)]();_0x26d147[_0x4f5f13(0xd2)]={'view':_0x244f6c,'changesets':_0x995ff4,'isEmpty':_0x130d0a,'pivotTableConfig':_0x340877};}break;case _0x5e3388[_0x4f5f13(0x159)]:{const _0x1d9a40=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0x18b)];if(!_0x1d9a40)return;const {tableFieldId:_0x5a3e9e,displayName:_0x1e5e1c,subtotalType:_0x132c89,format:_0x43af7f}=_0x1d9a40,_0x59cf61=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x25c)](_0x55386d),_0x385fdd=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0x59cf61||!_0x385fdd)return;_0x59cf61['startCollectChangeset'](),_0x1e5e1c!==void 0x0&&_0x59cf61[_0x4f5f13(0x33c)](_0x5a3e9e,_0x1e5e1c),_0x132c89!==void 0x0&&_0x59cf61[_0x4f5f13(0xf6)](_0x5a3e9e,_0x132c89),_0x43af7f!==void 0x0&&_0x59cf61[_0x4f5f13(0x1a3)](_0x5a3e9e,_0x43af7f);const _0x2517d8=_0x59cf61[_0x4f5f13(0x279)](),_0x5c51f8=_0x59cf61[_0x4f5f13(0x26f)]()[_0x4f5f13(0x90)](),_0x57efb5=_0x59cf61['endCollectChangeset']();_0x26d147[_0x4f5f13(0x18b)]={'changesets':_0x57efb5,'pivotTableConfig':_0x385fdd,'isEmpty':_0x2517d8,'view':_0x5c51f8};}break;case _0x5e3388['UpdatePivotSource']:{const _0x273369=_0x2beed6[_0x4f5f13(0x2e6)]['updatePivotSource'];if(!_0x273369)return;const {dataRangeInfo:_0xf7321d,unitId:_0x136e99,subUnitId:_0x47b709}=_0x273369,_0x4561e6=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x136e99,_0x47b709,_0x55386d),_0xb156d4=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d);if(!this[_0x4f5f13(0x228)][_0x4f5f13(0x2c8)](_0x136e99,_0x55386d)||!_0xb156d4||!_0x4561e6)return;const _0x7ddd55=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x22b)](_0x136e99,_0x55386d,_0xf7321d),_0x4e9cc3=this[_0x4f5f13(0x228)]['getCollection'](_0x136e99,_0x55386d)['toJSON'](),{collection:_0x57b701}=this[_0x4f5f13(0x228)]['createCollectionWithDataRange']({'unitId':_0xf7321d['unitId'],'sheetName':_0xf7321d['sheetName'],'subUnitId':_0xf7321d['subUnitId'],'range':_0xf7321d[_0x4f5f13(0x272)]}),_0x5c6490=_0x57b701[_0x4f5f13(0x90)]();_0xb156d4[_0x4f5f13(0x208)]();const _0x5d9cfb=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x138)](_0x136e99)[_0x4f5f13(0x191)]()||_0x2bd302['getAutoDisplayName'];_0xb156d4[_0x4f5f13(0xe8)](_0x4e7940=>{const _0x194f81=_0x4f5f13,_0x5c38d5=_0x4e7940[_0x194f81(0x35f)]();if(!_0x57b701[_0x194f81(0x1f2)](_0x5c38d5)){const _0xf874c7=_0x57b701[_0x194f81(0x1be)](_0x4e7940[_0x194f81(0x217)]());if(_0xf874c7){_0xb156d4['updateFieldSourceInfo'](_0x4e7940['getId'](),_0xf874c7[_0x194f81(0x2e8)](),_0xf874c7['getId']());const {area:_0x458021}=_0xb156d4[_0x194f81(0x265)](_0x4e7940[_0x194f81(0x37c)]());let _0x334ab8=_0x4e7940[_0x194f81(0x217)]();const _0x27de88=_0x4e7940[_0x194f81(0x229)]();if(_0x458021===_0x2bd302[_0x194f81(0x25f)][_0x194f81(0x34e)]){const _0x22c060=_0x4e7940[_0x194f81(0x389)]();_0x334ab8=_0x5d9cfb(_0xf874c7[_0x194f81(0x2e8)](),_0x22c060);}_0x27de88!==_0x334ab8&&_0xb156d4[_0x194f81(0x33c)](_0x4e7940[_0x194f81(0x37c)](),_0x334ab8);}else _0xb156d4[_0x194f81(0x115)](_0x4e7940[_0x194f81(0x37c)]());}});const _0x5c3843=_0xb156d4[_0x4f5f13(0x279)](),_0x29260a=_0xb156d4[_0x4f5f13(0x26f)]()[_0x4f5f13(0x90)](),_0x34ba34=_0xb156d4['endCollectChangeset']();_0x26d147[_0x4f5f13(0x224)]={'view':_0x29260a,'changesets':_0x34ba34,'isEmpty':_0x5c3843,'pivotTableConfig':_0x4561e6,'collectionConfig':_0x5c6490,'oldCollectionConfig':_0x4e9cc3,'deleteIds':_0x7ddd55};}break;case _0x5e3388[_0x4f5f13(0x1e0)]:{const _0x13323=_0x2beed6[_0x4f5f13(0x2e6)]['updateValuePosition'];if(!_0x13323)return;const {position:_0x23dde8,index:_0x2e79d2}=_0x13323,_0x96e566=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x59375e,_0x32f178,_0x55386d);if(!_0x96e566)return!0x1;const _0x1a38e4=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x25c)](_0x55386d);if(!_0x1a38e4)return!0x1;_0x1a38e4[_0x4f5f13(0x208)](),_0x1a38e4[_0x4f5f13(0x162)](_0x23dde8,_0x2e79d2);const _0xb4b045=_0x1a38e4[_0x4f5f13(0x279)](),_0x46620b=_0x1a38e4['query']()['toJSON'](),_0x57ee48=_0x1a38e4[_0x4f5f13(0x180)]();_0x26d147['updateValuePosition']={'changesets':_0x57ee48,'pivotTableConfig':_0x96e566,'isEmpty':_0xb4b045,'view':_0x46620b};}break;case _0x5e3388['SetPivotCollapse']:{const _0x362264=_0x2beed6['params'][_0x4f5f13(0xfa)];if(!_0x362264)return;const {tableFieldId:_0x4891cd,collapse:_0x4d9669,item:_0x22d339}=_0x362264,_0x592485=this[_0x4f5f13(0x228)]['getPivotTableInstance'](_0x55386d),_0x1a1b3d=this[_0x4f5f13(0x228)][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0x592485||!_0x1a1b3d)return;_0x592485[_0x4f5f13(0x208)](),_0x592485[_0x4f5f13(0x1af)](_0x4891cd,_0x4d9669,_0x22d339);const _0x512b04=_0x592485[_0x4f5f13(0x279)](),_0x3c94b6=_0x592485['query']()[_0x4f5f13(0x90)](),_0x4bdfe7=_0x592485[_0x4f5f13(0x180)]();_0x26d147[_0x4f5f13(0xfa)]={'view':_0x3c94b6,'isEmpty':_0x512b04,'pivotTableConfig':_0x1a1b3d,'changesets':_0x4bdfe7};}break;case _0x5e3388[_0x4f5f13(0x1d0)]:{const _0x45249c=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0x100)];if(!_0x45249c)return;const {pivotTableConfig:_0x472112}=_0x45249c,_0x132ce9=this[_0x4f5f13(0x228)][_0x4f5f13(0x25c)](_0x55386d),_0x2adc20=this[_0x4f5f13(0x228)]['getPivotTableConfig'](_0x59375e,_0x32f178,_0x55386d);if(!_0x132ce9||!_0x2adc20)return;_0x132ce9['startCollectChangeset'](),_0x4b09d5(_0x132ce9,_0x472112);const _0x473beb=_0x132ce9['isEmpty'](),_0x4b2923=_0x132ce9[_0x4f5f13(0x26f)]()[_0x4f5f13(0x90)](),_0x161c10=_0x132ce9[_0x4f5f13(0x180)]();_0x26d147['setPivotTableConfig']={'view':_0x4b2923,'isEmpty':_0x473beb,'pivotTableConfig':{..._0x2adc20,'fieldsConfig':_0x132ce9[_0x4f5f13(0x90)]()},'changesets':_0x161c10};}break;case _0x5e3388[_0x4f5f13(0x316)]:{const _0x34f224=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0x29b)];if(!_0x34f224)return;const _0x6cbc7b=this[_0x4f5f13(0x228)]['getPivotTableInstance'](_0x55386d),_0x4788f3=this['_sheetsPivotDataSourceModel'][_0x4f5f13(0x9b)](_0x59375e,_0x32f178,_0x55386d);if(!_0x6cbc7b||!_0x4788f3)return;_0x6cbc7b[_0x4f5f13(0x208)](),_0x4d996f(_0x6cbc7b,_0x34f224[_0x4f5f13(0x1c7)]);const _0x10a1ab=_0x6cbc7b['query']()[_0x4f5f13(0x90)](),_0x37dfa6=_0x6cbc7b[_0x4f5f13(0x180)]();_0x26d147[_0x4f5f13(0x29b)]={'view':_0x10a1ab,'isEmpty':!0x0,'pivotTableConfig':{..._0x4788f3,'fieldsConfig':_0x6cbc7b['toJSON']()},'changesets':_0x37dfa6};}break;case _0x5e3388[_0x4f5f13(0x166)]:{const _0x1147c7=_0x2beed6[_0x4f5f13(0x2e6)][_0x4f5f13(0x13b)];if(!_0x1147c7)return;const _0x11ff97=_0x1147c7['sourceRangeInfo'],_0x59d96d=_0x1147c7[_0x4f5f13(0x111)],{collection:_0x21aaa5}=this[_0x4f5f13(0x228)][_0x4f5f13(0x35b)]({'unitId':_0x11ff97[_0x4f5f13(0x360)],'sheetName':_0x11ff97[_0x4f5f13(0x96)],'subUnitId':_0x11ff97[_0x4f5f13(0x179)],'range':_0x11ff97[_0x4f5f13(0x272)]}),_0x2a14bc=new _0x2bd302[(_0x4f5f13(0x14e))](_0x21aaa5,void 0x0,_0x59d96d),_0xb4ecbd=_0x21aaa5[_0x4f5f13(0x15d)](),{rows:_0x3887a3,columns:_0x1ad39d,filters:_0x4be251,values:_0x359192}=_0x1147c7[_0x4f5f13(0x350)];_0x2a14bc[_0x4f5f13(0x208)]();for(const {field:_0x18c8a1,selectedItems:_0x55f491}of _0x3887a3||[]){const _0x2e824f=_0xb4ecbd[_0x18c8a1];if(_0x2e824f){const _0x1e88d5=_0x2a14bc[_0x4f5f13(0x274)](_0x2e824f,_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x1d7)]);_0x55f491&&_0x1e88d5&&_0x2a14bc[_0x4f5f13(0x286)](_0x1e88d5['getId'](),{'type':_0x2bd302[_0x4f5f13(0x346)][_0x4f5f13(0xae)],'list':_0x55f491,'isAll':!0x1});}}for(const {field:_0x86b79b,selectedItems:_0x1b1d15}of _0x1ad39d||[]){const _0x524199=_0xb4ecbd[_0x86b79b];if(_0x524199){const _0x229dfc=_0x2a14bc[_0x4f5f13(0x274)](_0x524199,_0x2bd302[_0x4f5f13(0x25f)]['Column']);_0x1b1d15&&_0x229dfc&&_0x2a14bc['setLabelFilterInfo'](_0x229dfc[_0x4f5f13(0x37c)](),{'type':_0x2bd302['PivotFilterTypeEnum']['ManualFilter'],'list':_0x1b1d15,'isAll':!0x1});}}for(const {field:_0x4228fd,selectedItems:_0x211bc6}of _0x4be251||[]){const _0x4e6da1=_0xb4ecbd[_0x4228fd];if(_0x4e6da1){const _0x256938=_0x2a14bc['addFieldWithSourceId'](_0x4e6da1,_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x328)]);_0x211bc6&&_0x256938&&_0x2a14bc[_0x4f5f13(0x286)](_0x256938[_0x4f5f13(0x37c)](),{'type':_0x2bd302[_0x4f5f13(0x346)][_0x4f5f13(0xae)],'list':_0x211bc6,'isAll':!0x1});}}for(const {field:_0x4f2f30,subTotalType:_0x30e371,formatString:_0x24e38d}of _0x359192||[]){const _0x1cf792=_0x21aaa5[_0x4f5f13(0xfb)](_0xb4ecbd[_0x4f2f30]);if(!_0x1cf792)continue;const _0x32303d=_0xb4ecbd[_0x4f2f30];if(_0x32303d){const _0x488f73=_0x2a14bc[_0x4f5f13(0x274)](_0x32303d,_0x2bd302[_0x4f5f13(0x25f)][_0x4f5f13(0x34e)]);if(_0x488f73){if(_0x30e371!==void 0x0){_0x2a14bc['setSubtotalType'](_0x488f73[_0x4f5f13(0x37c)](),_0x30e371);const _0x175d27=this[_0x4f5f13(0x228)]['getDataFieldManager'](_0x11ff97[_0x4f5f13(0x360)])[_0x4f5f13(0x191)]()||_0x2bd302['getAutoDisplayName'],_0x1119b5=_0x21aaa5[_0x4f5f13(0x229)](_0x32303d),_0x1bbec6=_0x175d27(_0x1119b5,_0x30e371);_0x2a14bc[_0x4f5f13(0x33c)](_0x488f73[_0x4f5f13(0x37c)](),_0x1bbec6);}else{if(_0x1cf792){const _0x20a5f3=_0x1cf792==null?void 0x0:_0x1cf792[_0x4f5f13(0x103)]();_0x2a14bc[_0x4f5f13(0xf6)](_0x488f73[_0x4f5f13(0x37c)](),_0x20a5f3===_0x2bd302['PivotDataFieldDataTypeEnum'][_0x4f5f13(0x26e)]?_0x2bd302[_0x4f5f13(0x35c)][_0x4f5f13(0x1e8)]:_0x2bd302[_0x4f5f13(0x35c)][_0x4f5f13(0x18d)]);}}_0x24e38d&&_0x2a14bc[_0x4f5f13(0x1a3)](_0x488f73['getId'](),_0x24e38d);}}}const _0x34d848=_0x2a14bc[_0x4f5f13(0x26f)](),_0x49da38=_0x2a14bc[_0x4f5f13(0x90)](),_0x273213=_0x2a14bc['isEmpty'](),_0x44dcd5=_0x2a14bc[_0x4f5f13(0x180)](),_0x162ce5=_0x21aaa5[_0x4f5f13(0x90)]();_0x26d147['addPivotTableWithConfig']={'view':_0x34d848,'fieldsConfig':_0x49da38,'collectionConfig':_0x162ce5,'isEmpty':_0x273213,'changesets':_0x44dcd5};}break;case _0x5e3388['DrillDown']:{const _0x3e4e4c=_0x15ce34(this[_0x4f5f13(0x39e)],_0x2beed6);if(!_0x3e4e4c)return;const {range:_0x1135da,sourceSubUnitId:_0x110fc7,sourceUnitId:_0x37e155,formatMap:_0x5a4edf,indexes:_0x11059d}=_0x3e4e4c;_0x26d147[_0x4f5f13(0x31b)]={'range':_0x1135da,'sourceSubUnitId':_0x110fc7,'sourceUnitId':_0x37e155,'formatMap':_0x5a4edf,'indexes':_0x11059d};}break;}this['_commandService'][_0x4f5f13(0x9e)](_0x37b8d8['id'],{'version':_0x2beed6[_0x4f5f13(0x344)],'result':_0x26d147},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x85f21d=_0x42bb9f;this['disposeWithMe'](this[_0x85f21d(0x370)][_0x85f21d(0x222)](_0xa65190=>{const _0xa38bad=_0x85f21d;if(_0xa65190['id']!==_0x157f7e['id'])return;const _0x347137=_0xa65190['params'];return this[_0xa38bad(0x228)][_0xa38bad(0xbe)](_0x347137['textInfo']),!0x0;}));}[_0x42bb9f(0x20e)](){const _0x18ef1e=_0x42bb9f;this['_sheetsPivotDataSourceModel'][_0x18ef1e(0x165)][_0x18ef1e(0x153)](_0x46cf14=>{const _0x10c0db=_0x18ef1e;switch(_0x46cf14['type']){case _0x521660[_0x10c0db(0x246)]:_0x46cf14[_0x10c0db(0x22f)]&&_0x46cf14[_0x10c0db(0x242)]&&this['handleSourceRangeChange'](_0x46cf14['token'],_0x46cf14[_0x10c0db(0x22f)],_0x46cf14[_0x10c0db(0x242)]);break;case _0x521660[_0x10c0db(0x1ca)]:{const {unitId:_0x2297fe,subUnitId:_0x5f40e7,token:_0xebbad0}=_0x46cf14;_0x2297fe&&_0x5f40e7&&_0xebbad0&&this[_0x10c0db(0x1a4)](_0x2297fe,_0x5f40e7,_0xebbad0);}break;case _0x521660[_0x10c0db(0x307)]:{const {token:_0x368d22,oldSourceRangeInfo:_0x4873d0,dataRangeInfo:_0x332fcf,targetCellInfo:_0x3493f1}=_0x46cf14,{unitId:_0x50a217,subUnitId:_0x3548ea}=_0x4873d0||{};_0x50a217&&_0x3548ea&&_0x368d22&&this[_0x10c0db(0x1a4)](_0x50a217,_0x3548ea,_0x368d22),_0x332fcf&&_0x3493f1&&this['handleSourceRangeChange'](_0x368d22,_0x332fcf,_0x3493f1);}break;}});}[_0x42bb9f(0x2c2)](){const _0x16e828=_0x42bb9f;this['_sheetsPivotDataSourceModel'][_0x16e828(0xab)][_0x16e828(0x153)](_0x558fe8=>{const _0x3f90c6=_0x16e828;Object[_0x3f90c6(0x237)](_0x558fe8)['forEach'](_0x54a3bb=>{const _0x224427=_0x3f90c6,_0x11aedb=this[_0x224427(0x228)][_0x224427(0x33f)](_0x54a3bb);if(_0x11aedb){const _0x51282c=this['_sheetsPivotDataSourceModel'][_0x224427(0x9b)](_0x11aedb==null?void 0x0:_0x11aedb[_0x224427(0x360)],_0x11aedb==null?void 0x0:_0x11aedb[_0x224427(0x179)],_0x54a3bb);_0x51282c&&(this[_0x224427(0x336)](_0x54a3bb,_0x51282c[_0x224427(0x156)],_0x51282c[_0x224427(0x242)]),this[_0x224427(0x28d)]([{'unitId':_0x11aedb[_0x224427(0x360)],'subUnitId':_0x11aedb[_0x224427(0x179)],'token':_0x54a3bb}]));}});});}[_0x42bb9f(0x271)](){const _0x29c2d1=_0x42bb9f;this['_sheetsPivotDataSourceModel'][_0x29c2d1(0xf7)][_0x29c2d1(0x153)](_0x32323f=>{const _0x12dec0=_0x29c2d1,{unitId:_0x5021e9,subUnitId:_0x4b8320,pivotTableId:_0x5f01a8}=_0x32323f;_0x5021e9&&_0x4b8320&&_0x5f01a8&&this[_0x12dec0(0x28d)]([{'unitId':_0x5021e9,'subUnitId':_0x4b8320,'token':_0x5f01a8}]);});}[_0x42bb9f(0x28d)](_0x209299){const _0x4ecdcc=_0x42bb9f,_0x5a078b={};_0x209299[_0x4ecdcc(0x36d)](_0x1cc578=>{var _0x5cb148,_0x24ea46;const {unitId:_0x41f5e4,subUnitId:_0x57df92,token:_0x21890f}=_0x1cc578;_0x5a078b[_0x41f5e4]=(_0x5cb148=_0x5a078b[_0x41f5e4])!=null?_0x5cb148:{},_0x5a078b[_0x41f5e4][_0x57df92]=(_0x24ea46=_0x5a078b[_0x41f5e4][_0x57df92])!=null?_0x24ea46:{},_0x5a078b[_0x41f5e4][_0x57df92][_0x21890f]=!0x0;}),this[_0x4ecdcc(0x370)][_0x4ecdcc(0x9e)](_0x49e4cb['id'],_0x5a078b);}[_0x42bb9f(0x1a4)](_0x35d3bb,_0x1a609d,_0x4b7692){const _0x3ca077=_0x42bb9f;this[_0x3ca077(0x112)]['remove'](_0x35d3bb,_0x1a609d,[_0x4b7692]);}[_0x42bb9f(0x336)](_0x84b219,_0x57a9b2,_0x3edb1c){const _0x41861e=_0x42bb9f,{unitId:_0x4e48ce,subUnitId:_0x33d62d}=_0x57a9b2;this[_0x41861e(0x112)][_0x41861e(0xde)](_0x3edb1c['unitId'],_0x3edb1c[_0x41861e(0x179)],_0x84b219)&&this[_0x41861e(0x1a4)](_0x4e48ce,_0x33d62d,_0x84b219);const _0x126c5b={'sheetId':_0x33d62d,..._0x57a9b2};this[_0x41861e(0x112)]['register'](_0x3edb1c['unitId'],_0x3edb1c[_0x41861e(0x179)],_0x84b219,{'unitId':_0x3edb1c[_0x41861e(0x360)],'subUnitId':_0x3edb1c[_0x41861e(0x179)],'dependencyRanges':[_0x126c5b],'getDirtyData':(_0x1e1ce5,_0x12add4)=>{const _0x3bea1f=_0x41861e,_0x2fdaed=this[_0x3bea1f(0x228)],_0x41dcce=_0x2fdaed[_0x3bea1f(0x33f)](_0x84b219);if(!_0x41dcce)return _0x2a404a();const {unitId:_0x1d72d5,subUnitId:_0x260973}=_0x41dcce,_0x405a0c=_0x22a4d9(_0x1e1ce5,_0x12add4,_0x57a9b2);if(_0x405a0c[_0x3bea1f(0x8f)]>0x0){const _0xc725f1=_0x2fdaed['getCollection'](_0x4e48ce,_0x84b219),_0x405738=_0xc725f1[_0x3bea1f(0x15d)](),_0x5e7f15=this['getMatrixFromRunTimeData'](_0x57a9b2[_0x3bea1f(0x360)],_0x57a9b2[_0x3bea1f(0x179)],_0x12add4),_0x436bbb={},_0x5ece37=this[_0x3bea1f(0x228)][_0x3bea1f(0x138)](_0x1d72d5)[_0x3bea1f(0x191)]()||_0x2bd302[_0x3bea1f(0xe4)],_0x2abeca=[];for(const _0x3566f9 of _0x405a0c){const _0x2456e6=_0x3566f9-(_0x57a9b2[_0x3bea1f(0x272)][_0x3bea1f(0x1c9)]||0x0),_0x165227=_0x405738[_0x2456e6];_0x2abeca[_0x3bea1f(0x364)](_0x165227),_0x436bbb[_0x165227]=_0xc725f1[_0x3bea1f(0xfb)](_0x165227)[_0x3bea1f(0x2e8)](),_0x2fdaed[_0x3bea1f(0x138)](_0x4e48ce)[_0x3bea1f(0x25b)](_0x165227,_0x57a9b2,_0x2456e6,_0x5e7f15);}_0xc725f1['getGroupFieldsInfoByIds'](_0x2abeca)[_0x3bea1f(0x36d)](_0x2c689b=>{const _0x5564a2=_0x3bea1f,[_0x27a803,_0x18c35b]=_0x2c689b,_0x51e845=_0xc725f1[_0x5564a2(0xfb)](_0x27a803),_0x90478b=_0xc725f1['getFieldById'](_0x18c35b);_0x51e845&&_0x90478b&&_0x51e845[_0x5564a2(0x14a)](_0x90478b);}),_0xc725f1[_0x3bea1f(0x314)]();const _0x2f1b1c=_0x2fdaed[_0x3bea1f(0x25c)](_0x84b219);if(_0x2f1b1c){_0xf8cdf2(_0x2f1b1c,_0x436bbb,_0x5ece37),_0x2f1b1c[_0x3bea1f(0x251)](!0x0);const _0x115b56=_0x2f1b1c[_0x3bea1f(0x26f)](),_0xb3ade3=_0x2fdaed[_0x3bea1f(0x9b)](_0x1d72d5,_0x260973,_0x84b219),_0xcc527f=_0x2fdaed[_0x3bea1f(0x138)](_0x4e48ce)[_0x3bea1f(0x90)]();_0x2fdaed[_0x3bea1f(0x386)](_0x1d72d5,_0x260973,_0x2de5fe['Set'],_0x84b219,_0x115b56,_0xb3ade3,_0xcc527f,!0x0);}}return this[_0x3bea1f(0xcc)](_0x1d72d5,_0x260973,_0x84b219);}});}[_0x42bb9f(0x2d5)](_0x1d4e3b,_0xc44f61,_0x200def){var _0x341ace,_0x5cbd63;const {arrayFormulaCellData:_0x3a09a3,unitData:_0x5ef9bc}=_0x200def,_0x516368=(_0x341ace=_0x3a09a3==null?void 0x0:_0x3a09a3[_0x1d4e3b])==null?void 0x0:_0x341ace[_0xc44f61],_0x423444=(_0x5cbd63=_0x5ef9bc==null?void 0x0:_0x5ef9bc[_0x1d4e3b])==null?void 0x0:_0x5cbd63[_0xc44f61];return{'arrayFormulaCellDataMatrix':_0x516368,'unitDataMatrix':_0x423444};}[_0x42bb9f(0xcc)](_0x3ab310,_0x3503f8,_0x4472b2){const _0x454aa3=_0x42bb9f,_0x3baed7=this[_0x454aa3(0x228)][_0x454aa3(0x198)](_0x3ab310,_0x3503f8,_0x4472b2),_0x2aef8d=[],_0x14b96b=new _0x288eb9['ObjectMatrix']();if(_0x3baed7){const {rangeCache:_0x33ca06,matrix:_0x10ea1a,oldRangeCache:_0x43dc13,oldMatrix:_0x4fb472}=_0x3baed7,_0x39a84a=_0x26ef08(_0x43dc13),_0x17f1a0=_0x26ef08(_0x33ca06);_0x2aef8d[_0x454aa3(0x364)](..._0x17f1a0,..._0x39a84a),_0x4fb472&&_0x43dc13&&_0x39a84a[_0x454aa3(0x36d)](_0x39f913=>{const _0x8e59d9=_0x454aa3;for(let _0x85bdb9=_0x39f913['startRow'];_0x85bdb9<=_0x39f913[_0x8e59d9(0x241)];_0x85bdb9++)for(let _0x33857a=_0x39f913[_0x8e59d9(0x1c9)];_0x33857a<=_0x39f913[_0x8e59d9(0x1f1)];_0x33857a++)_0x14b96b[_0x8e59d9(0x1b2)](_0x85bdb9,_0x33857a);}),_0x10ea1a&&_0x17f1a0&&_0x17f1a0[_0x454aa3(0x36d)](_0x49ccb3=>{const _0x1aff51=_0x454aa3;for(let _0x545394=_0x49ccb3[_0x1aff51(0x36a)];_0x545394<=_0x49ccb3[_0x1aff51(0x241)];_0x545394++)for(let _0x24322a=_0x49ccb3[_0x1aff51(0x1c9)];_0x24322a<=_0x49ccb3[_0x1aff51(0x1f1)];_0x24322a++)_0x14b96b[_0x1aff51(0x1bb)](_0x545394,_0x24322a,_0x10ea1a[_0x1aff51(0x187)](_0x545394,_0x24322a));});}const _0x1f69e0={};return _0x1f69e0[_0x3ab310]={[_0x3503f8]:_0xeff524(_0x2aef8d)},{'runtimeCellData':{[_0x3ab310]:{[_0x3503f8]:_0x14b96b}},'dirtyRanges':_0x1f69e0};}['dispose'](){}};_0x161fb7=_0x214c8f([_0x1112db(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755['SheetsPivotDataSourceModel'])),_0x1112db(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x1407f0[_0x42bb9f(0x3a7)])),_0x1112db(0x2,_0x288eb9['Inject'](_0x288eb9['ICommandService'])),_0x1112db(0x3,_0x288eb9[_0x42bb9f(0x21c)](_0x1407f0[_0x42bb9f(0x201)])),_0x1112db(0x4,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x1fb)]))],_0x161fb7);var _0x3a1162=Object[_0x42bb9f(0x235)],_0x553e05=(_0x4a45eb,_0x21a20f,_0x5e26de,_0x3255d3)=>{for(var _0xa2b411=_0x3255d3>0x1?void 0x0:_0x3255d3?_0x3a1162(_0x21a20f,_0x5e26de):_0x21a20f,_0x197456=_0x4a45eb['length']-0x1,_0x235556;_0x197456>=0x0;_0x197456--)(_0x235556=_0x4a45eb[_0x197456])&&(_0xa2b411=_0x235556(_0xa2b411)||_0xa2b411);return _0xa2b411;},_0x42c261=(_0x3a7af1,_0x19c6a3)=>(_0x396ce9,_0x39b694)=>_0x19c6a3(_0x396ce9,_0x39b694,_0x3a7af1);let _0x16b75e=class extends _0x288eb9['Disposable']{constructor(_0xaebfd1,_0x536761,_0x4fcfc9,_0x5544a2){const _0x145f42=_0x42bb9f;super(),_0x4fb07d(this,'disposableCollection',new _0x288eb9[(_0x145f42(0x36e))]()),(this['_univerInstanceService']=_0xaebfd1,this[_0x145f42(0x1bc)]=_0x536761,this[_0x145f42(0x266)]=_0x4fcfc9,this[_0x145f42(0x98)]=_0x5544a2,this[_0x145f42(0x31a)]());}[_0x42bb9f(0x31a)](){const _0x58cea3=_0x42bb9f;this['disposeWithMe'](this[_0x58cea3(0x1bc)]['interceptCommand']({'getMutations':_0x198105=>{const _0xded24a=_0x58cea3;if(_0x198105['id']===_0x2e27a8[_0xded24a(0x27b)]['id']||_0x198105['id']===_0x2e27a8['ClearSelectionAllCommand']['id']){const _0x3d7f15=[],_0x4d54c9=[],_0x486026=this[_0xded24a(0x266)][_0xded24a(0x288)]()[_0xded24a(0x1d2)](_0x15407b=>_0x15407b['range']),_0xfd2288=_0x2e27a8[_0xded24a(0xba)](this[_0xded24a(0x1d4)]);if(!_0xfd2288)return{'redos':[],'undos':[]};const {unitId:_0x96e231,subUnitId:_0x2ff1b3}=_0xfd2288,_0x6c0cd4={},_0x1f6a74=this[_0xded24a(0x98)][_0xded24a(0x244)](_0x96e231,_0x2ff1b3);if(_0x1f6a74!=null&&_0x1f6a74[_0xded24a(0x1f6)])for(const [_0x455a89,_0x485312]of _0x1f6a74){const {unitId:_0x18843c,subUnitId:_0x538312,row:_0x40bfa2,col:_0x5ae1b0}=_0x485312[_0xded24a(0x242)];_0x18843c===_0xfd2288[_0xded24a(0x360)]&&_0x538312===_0xfd2288[_0xded24a(0x179)]&&(_0x6c0cd4[_0x40bfa2+'-'+_0x5ae1b0]=_0x455a89);}return _0x486026&&_0xfd2288&&_0x486026[_0xded24a(0x36d)](_0x3e91b8=>{const _0x2bf5b6=_0xded24a;_0x288eb9[_0x2bf5b6(0x2a5)][_0x2bf5b6(0x351)](_0x3e91b8,(_0x33f5b6,_0x1429e6)=>{const _0xf57c92=_0x2bf5b6,_0x562278=_0x33f5b6+'-'+_0x1429e6;if(_0x6c0cd4[_0x562278]){const _0x634508=_0x6c0cd4[_0x562278];_0x3d7f15[_0xf57c92(0x364)]({'id':_0xf36de3['id'],'params':{'unitId':_0x96e231,'subUnitId':_0x2ff1b3,'pivotTableId':_0x634508}});const _0x2f8f97=this[_0xf57c92(0x98)]['getCollection'](_0x96e231,_0x634508),_0x12058d=this[_0xf57c92(0x98)]['getPivotTableConfig'](_0x96e231,_0x2ff1b3,_0x634508);_0x4d54c9['push']({'id':_0x7c30f0['id'],'params':{'unitId':_0x96e231,'subUnitId':_0x2ff1b3,'pivotTableId':_0x634508,'pivotTableConfig':_0x12058d,'collectionConfig':_0x2f8f97}});}});}),{'redos':_0x3d7f15,'undos':_0x4d54c9};}return{'redos':[],'undos':[]};}}));}};_0x16b75e=_0x553e05([_0x42c261(0x0,_0x288eb9['IUniverInstanceService']),_0x42c261(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8['SheetInterceptorService'])),_0x42c261(0x2,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8['SheetsSelectionsService'])),_0x42c261(0x3,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755['SheetsPivotTableConfigModel']))],_0x16b75e);var _0x17ad02=Object[_0x42bb9f(0x235)],_0x28276f=(_0x44c601,_0x552535,_0x3140b2,_0x4ffe2b)=>{const _0xaf0fe6=_0x42bb9f;for(var _0x5184f0=_0x4ffe2b>0x1?void 0x0:_0x4ffe2b?_0x17ad02(_0x552535,_0x3140b2):_0x552535,_0x2aecfc=_0x44c601[_0xaf0fe6(0x8f)]-0x1,_0x309db1;_0x2aecfc>=0x0;_0x2aecfc--)(_0x309db1=_0x44c601[_0x2aecfc])&&(_0x5184f0=_0x309db1(_0x5184f0)||_0x5184f0);return _0x5184f0;},_0x26833f=(_0x3d2864,_0x199d27)=>(_0x5a9aa6,_0x46c3af)=>_0x199d27(_0x5a9aa6,_0x46c3af,_0x3d2864);let _0x522425=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x22e9ae,_0x1e21f3,_0x5dda08,_0x40ab94,_0x57fb2){const _0x5c4677=_0x42bb9f;super(),this[_0x5c4677(0x1bc)]=_0x22e9ae,this[_0x5c4677(0x39e)]=_0x1e21f3,this[_0x5c4677(0x1d4)]=_0x5dda08,this[_0x5c4677(0x98)]=_0x40ab94,this[_0x5c4677(0x32e)]=_0x57fb2,this['_initCommandInterceptListener']();}[_0x42bb9f(0x3a2)](_0xfc4b83,_0x3a2b22,_0x59e8a0){const _0xd666c6=_0x42bb9f,{pageView:_0x13bcc2,cornerView:_0x5664c6,rowView:_0x3b45b9,colView:_0x1b4dde,dataView:_0x520f47}=_0x3a2b22,_0x564123=_0xfc4b83;let _0x170fe4;if(_0x59e8a0)_0x170fe4=[..._0x2a44bf(_0x564123)];else{const _0x277229=_0x2b2601(_0x564123,_0x13bcc2,!0x0),_0x3f8de9=_0x13bcc2['lastRow']>=0x0?_0x13bcc2['lastRow']+0x1:0x0,_0x5264e7=_0x5664c6['rowCount'],_0x54d7cb=_0x5664c6[_0xd666c6(0x39f)],_0x4ee837=_0x277229[_0xd666c6(0x8f)]>0x0?_0x4bce21:0x0,_0x2f4f51=_0x2b2601({'row':_0x564123[_0xd666c6(0x392)]+_0x3f8de9+_0x4ee837,'col':_0x564123[_0xd666c6(0x113)]},_0x5664c6,!0x1,!0x1),_0xd93311=_0x2b2601({'row':_0x564123[_0xd666c6(0x392)]+_0x3f8de9+_0x4ee837+_0x5264e7,'col':_0x564123[_0xd666c6(0x113)]},_0x3b45b9,!0x1,!0x0),_0x58800a=_0x2b2601({'row':_0x564123[_0xd666c6(0x392)]+_0x3f8de9+_0x4ee837,'col':_0x564123['col']+_0x54d7cb},_0x1b4dde,!0x1,!0x0),_0x2faaff=_0x2b2601({'row':_0x564123[_0xd666c6(0x392)]+_0x3f8de9+_0x4ee837+_0x5264e7,'col':_0x564123[_0xd666c6(0x113)]+_0x54d7cb},_0x520f47,!0x1,!0x0);_0x170fe4=[..._0x277229,..._0x2f4f51,..._0xd93311,..._0x58800a,..._0x2faaff];}return _0x170fe4;}[_0x42bb9f(0x202)](){const _0x48b0fe=_0x42bb9f;this['disposeWithMe'](this[_0x48b0fe(0x32e)][_0x48b0fe(0x26a)][_0x48b0fe(0x2db)](this[_0x48b0fe(0x32e)][_0x48b0fe(0x26a)]['getInterceptPoints']()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x11ff2b,_0x4408f6)=>{const _0x5f00fe=_0x48b0fe,{cellInfo:_0x4a63e5,view:_0x219216,isEmpty:_0x1a449e}=_0x4408f6,_0x190ba4=_0x4a63e5,{unitId:_0x5997a2,subUnitId:_0x56600b}=_0x190ba4,_0x251405=this[_0x5f00fe(0x3a2)](_0x4a63e5,_0x219216,_0x1a449e),_0x29cf14=this[_0x5f00fe(0x1bc)][_0x5f00fe(0x17e)]({'unitId':_0x5997a2,'subUnitId':_0x56600b,'ranges':_0x251405}),_0x47f71f=_0x274f21(this[_0x5f00fe(0x39e)],_0x5997a2,_0x56600b,_0x251405);_0x47f71f[_0x5f00fe(0x223)]&&(_0x29cf14[_0x5f00fe(0x196)][_0x5f00fe(0x364)](_0x47f71f[_0x5f00fe(0x176)]),_0x29cf14[_0x5f00fe(0x248)][_0x5f00fe(0x364)](_0x47f71f[_0x5f00fe(0x366)]));const _0x2c69a5=this[_0x5f00fe(0x182)](_0x219216,_0x4a63e5);return _0x29cf14['redos']['push'](..._0x2c69a5[_0x5f00fe(0x196)]),_0x29cf14[_0x5f00fe(0x248)][_0x5f00fe(0x364)](..._0x2c69a5[_0x5f00fe(0x248)]),{'redos':_0x29cf14[_0x5f00fe(0x196)],'undos':_0x29cf14[_0x5f00fe(0x248)]};}}));}[_0x42bb9f(0x182)](_0x5af942,_0xa26525){const _0x26a248=_0x42bb9f,{col:_0x2e5b98,unitId:_0x3d7cfe,subUnitId:_0x39ac9c}=_0xa26525,_0x567cbf=[],_0x5db754=[],_0x232127=_0x2e27a8[_0x26a248(0xba)](this[_0x26a248(0x1d4)],{'unitId':_0x3d7cfe,'subUnitId':_0x39ac9c});if(!_0xa26525||!_0x5af942||!_0x232127)return{'undos':_0x5db754,'redos':_0x567cbf};const _0x129c0b=this[_0x26a248(0x98)]['getTextInfo'](),{colView:_0x3b3c7d,dataView:_0xce65ed,cornerView:_0x38311f,rowView:_0x1715d9,formatMap:_0x11654b}=_0x5af942,_0xe2a1de=_0xc12cd5(_0x3b3c7d,_0x129c0b,!0x0,_0x11654b),_0x23f9b1=_0xc12cd5(_0x1715d9,_0x129c0b,!0x1,_0x11654b),_0x5a79eb=_0x4f715a(_0xce65ed),_0x2c622a=_0x48e32a(_0x38311f),{worksheet:_0x55c5e3}=_0x232127;if(typeof window<'u'&&window[_0x26a248(0xc6)]){const _0x26068f=_0x232f9e['getFontStyleString']({..._0x1b6d0b[_0x26a248(0x1ed)]}),_0x418f52=_0x232f9e['FontCache'][_0x26a248(0x13e)](_0xe2a1de,_0x26068f)[_0x26a248(0x29d)]+0x10,_0x3d8cee=_0x232f9e[_0x26a248(0x14f)][_0x26a248(0x13e)](_0x5a79eb,_0x26068f)[_0x26a248(0x29d)],_0x270dcc=Math[_0x26a248(0x318)](Math[_0x26a248(0x2e9)](_0x418f52,_0x3d8cee))+0x10,_0x420a82=Math[_0x26a248(0x318)](_0x232f9e[_0x26a248(0x14f)][_0x26a248(0x13e)](_0x23f9b1,_0x26068f)[_0x26a248(0x29d)]),_0x3a27e7=Math[_0x26a248(0x318)](_0x232f9e[_0x26a248(0x14f)][_0x26a248(0x13e)](_0x2c622a,_0x26068f)[_0x26a248(0x29d)]),_0x3193f4=Math['max'](_0x420a82,_0x3a27e7,0x28)+0xc,_0x1f0182=_0x3b3c7d[_0x26a248(0x39f)]+_0x38311f[_0x26a248(0x39f)],_0x102125={},_0x283b9a={};for(let _0x334402=_0x2e5b98;_0x334402<_0x2e5b98+_0x1f0182;_0x334402++){const _0x226dc1=_0x55c5e3[_0x26a248(0x152)](_0x334402);_0x102125[_0x334402]=_0x226dc1,_0x334402-_0x2e5b98<_0x38311f[_0x26a248(0x39f)]?_0x283b9a[_0x334402-_0x2e5b98]=_0x3193f4:_0x283b9a[_0x334402-_0x2e5b98]=_0x270dcc;}_0x567cbf[_0x26a248(0x364)]({'id':_0x2e27a8[_0x26a248(0x1ea)]['id'],'params':{'subUnitId':_0x39ac9c,'unitId':_0x3d7cfe,'ranges':[{'startColumn':_0x2e5b98,'endColumn':_0x2e5b98+_0x1f0182-0x1,'startRow':0x0,'endRow':_0x55c5e3[_0x26a248(0xec)]()-0x1}],'colWidth':_0x283b9a}}),_0x5db754[_0x26a248(0x364)]({'id':_0x2e27a8[_0x26a248(0x1ea)]['id'],'params':{'subUnitId':_0x39ac9c,'unitId':_0x3d7cfe,'ranges':[{'startColumn':_0x2e5b98,'endColumn':_0x2e5b98+_0x1f0182-0x1,'startRow':0x0,'endRow':_0x55c5e3['getRowCount']()-0x1}],'colWidth':_0x102125}});}return{'undos':_0x5db754,'redos':_0x567cbf};}};_0x522425=_0x28276f([_0x26833f(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8[_0x42bb9f(0x365)])),_0x26833f(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x1fb)])),_0x26833f(0x2,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9['IUniverInstanceService'])),_0x26833f(0x3,_0x288eb9['Inject'](_0x5bf755['SheetsPivotTableConfigModel'])),_0x26833f(0x4,_0x288eb9['Inject'](_0x5bf755[_0x42bb9f(0x19e)]))],_0x522425);var _0x514237=Object[_0x42bb9f(0x235)],_0x3f1534=(_0x2a2c07,_0xd65c23,_0x13ab5b,_0x477c4d)=>{const _0x307a7e=_0x42bb9f;for(var _0x44c919=_0x477c4d>0x1?void 0x0:_0x477c4d?_0x514237(_0xd65c23,_0x13ab5b):_0xd65c23,_0x31de40=_0x2a2c07[_0x307a7e(0x8f)]-0x1,_0x493c53;_0x31de40>=0x0;_0x31de40--)(_0x493c53=_0x2a2c07[_0x31de40])&&(_0x44c919=_0x493c53(_0x44c919)||_0x44c919);return _0x44c919;},_0x5268fe=(_0x162bb9,_0x54ff84)=>(_0x5d17cb,_0x5824ef)=>_0x54ff84(_0x5d17cb,_0x5824ef,_0x162bb9);let _0x47c3f9=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x473b6f,_0x1de106,_0x162bfd,_0x46ef7c,_0x26da27,_0x3ef35c,_0x45f5d1){const _0x25b606=_0x42bb9f;super(),_0x4fb07d(this,_0x25b606(0x38d),new _0x288eb9[(_0x25b606(0x36e))]()),(this['_injector']=_0x473b6f,this[_0x25b606(0x1cc)]=_0x1de106,this[_0x25b606(0x370)]=_0x162bfd,this[_0x25b606(0x1d4)]=_0x46ef7c,this[_0x25b606(0x98)]=_0x26da27,this[_0x25b606(0xb2)]=_0x3ef35c,this['_sheetInterceptorService']=_0x45f5d1,this[_0x25b606(0x20d)]());}[_0x42bb9f(0x20d)](){const _0x10c154=_0x42bb9f,_0x4f00a6=(_0x5f4d89,_0x3b2f72)=>{const _0x1ac20a=_0x2df4,_0x2f2c85=this[_0x1ac20a(0x1d4)][_0x1ac20a(0x1a0)](_0x288eb9[_0x1ac20a(0x175)][_0x1ac20a(0x197)]);if(!_0x2f2c85||!(_0x2f2c85==null?void 0x0:_0x2f2c85[_0x1ac20a(0xb7)](_0x3b2f72)))return;this['disposableCollection'][_0x1ac20a(0x10c)]();const _0x13c56f=_0x45f65a=>this[_0x1ac20a(0x18a)](_0x45f65a,_0x5f4d89,_0x3b2f72),_0x5e75e3=this[_0x1ac20a(0x98)]['getSubUnitPivotConfigs'](_0x5f4d89,_0x3b2f72);if(!(_0x5e75e3!=null&&_0x5e75e3[_0x1ac20a(0x1f6)]))return;Array[_0x1ac20a(0x193)](_0x5e75e3[_0x1ac20a(0xe2)]())['map'](_0x56f5c2=>{const _0x1f97c3=_0x1ac20a,{row:_0x174dea,col:_0x1c5686}=_0x56f5c2[_0x1f97c3(0x242)];return _0x288eb9['cellToRange'](_0x174dea,_0x1c5686);})[_0x1ac20a(0x36d)](_0x5b2532=>{const _0x44fe46=_0x1ac20a;this['disposableCollection'][_0x44fe46(0x246)](this['_refRangeService'][_0x44fe46(0x390)](_0x5b2532,_0x13c56f,_0x5f4d89,_0x3b2f72));});},_0x34358b=()=>{const _0x31846d=_0x2df4,_0x2d7377=this[_0x31846d(0x1d4)][_0x31846d(0x1a0)](_0x288eb9[_0x31846d(0x175)][_0x31846d(0x197)]);if(_0x2d7377){const _0x30d9a7=_0x2d7377[_0x31846d(0x209)]();if(!_0x30d9a7)return;_0x4f00a6(_0x2d7377[_0x31846d(0x23a)](),_0x30d9a7[_0x31846d(0x1c0)]());}};this['disposeWithMe'](this['_commandService'][_0x10c154(0x222)](_0x547ed1=>{const _0x28b35f=_0x10c154;if(_0x547ed1['id']===_0x2e27a8[_0x28b35f(0x276)]['id']){const _0x178922=_0x547ed1['params'],_0x4b921a=_0x178922[_0x28b35f(0x179)],_0x2b5bd5=_0x178922['unitId'];if(!_0x4b921a||!_0x2b5bd5)return;_0x4f00a6(_0x2b5bd5,_0x4b921a);}})),this[_0x10c154(0x148)](this[_0x10c154(0x98)][_0x10c154(0x1b0)][_0x10c154(0x153)](_0x205b79=>{_0x205b79&&_0x34358b();})),this[_0x10c154(0x148)](this[_0x10c154(0x98)]['pivotConfigChange$']['subscribe'](_0x4ce79c=>{const _0x298293=_0x10c154,_0x2b3755=_0x2e27a8['getSheetCommandTarget'](this[_0x298293(0x1d4)]);if(!_0x2b3755)return;const {unitId:_0x402568,subUnitId:_0x384825}=_0x2b3755,{unitId:_0x7e1aa9,subUnitId:_0x11e9b0}=_0x4ce79c;_0x402568!==_0x7e1aa9||_0x384825!==_0x11e9b0||_0x4f00a6(_0x402568,_0x384825);})),_0x34358b();}['_refRangeHandle'](_0x183adc,_0x2926b4,_0x512814){const _0x3f4e2e=_0x42bb9f;switch(_0x183adc['id']){case _0x2e27a8[_0x3f4e2e(0x213)]['id']:return this[_0x3f4e2e(0x2b4)](_0x183adc[_0x3f4e2e(0x2e6)],_0x2926b4,_0x512814);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x37d175,_0x481722,_0x2184de){const _0x27a347=_0x42bb9f,{fromRange:_0x5a5f22,toRange:_0x22a2e6}=_0x37d175,_0x38ac6f=[],_0x36e37e=[],_0x194e5c=_0x2e27a8[_0x27a347(0xba)](this[_0x27a347(0x1d4)]);if(!_0x194e5c)return{'undos':_0x36e37e,'redos':_0x38ac6f};if(_0x481722!==_0x194e5c[_0x27a347(0x360)]||_0x2184de!==_0x194e5c['subUnitId'])return{'undos':_0x36e37e,'redos':_0x38ac6f};const _0x5279f5=this[_0x27a347(0x98)][_0x27a347(0x244)](_0x481722,_0x2184de);if(_0x5279f5!=null&&_0x5279f5[_0x27a347(0x1f6)])for(const [_0x427db3,_0x524391]of _0x5279f5){const {unitId:_0x18e16f,subUnitId:_0x13071f,row:_0xfd81db,col:_0x9cef13}=_0x524391[_0x27a347(0x242)];if(_0x18e16f===_0x194e5c[_0x27a347(0x360)]&&_0x13071f===_0x194e5c['subUnitId']){const _0x5e03f2=_0x288eb9[_0x27a347(0x104)](_0xfd81db,_0x9cef13);if(_0x288eb9['Rectangle'][_0x27a347(0x1e4)](_0x5e03f2,_0x5a5f22)){const _0x16c9d0=_0xfd81db-_0x5a5f22[_0x27a347(0x36a)],_0x1c5cce=_0x9cef13-_0x5a5f22[_0x27a347(0x1c9)],_0x1becaa={'row':_0x22a2e6[_0x27a347(0x36a)]+_0x16c9d0,'col':_0x22a2e6[_0x27a347(0x1c9)]+_0x1c5cce};_0x38ac6f['push']({'id':_0x4c1e58['id'],'params':{'unitId':_0x18e16f,'subUnitId':_0x13071f,'pivotTableId':_0x427db3,'targetCellPosition':_0x1becaa}}),_0x36e37e[_0x27a347(0x364)]({'id':_0x4c1e58['id'],'params':{'unitId':_0x18e16f,'subUnitId':_0x13071f,'pivotTableId':_0x427db3,'targetCellPosition':{'row':_0xfd81db,'col':_0x9cef13}}});const _0x4bb40e=_0x1becaa[_0x27a347(0x392)]-_0xfd81db,_0x5006e9=_0x1becaa[_0x27a347(0x113)]-_0x9cef13,_0x3926de=[],_0x3ea32c=this[_0x27a347(0xb2)][_0x27a347(0x2ab)](_0x18e16f,_0x13071f,_0x427db3),_0x42f11b=_0x3ea32c==null?void 0x0:_0x3ea32c['rangesInfo'];if(_0x42f11b){Object[_0x27a347(0x237)](_0x42f11b)['forEach'](_0x3d2fdd=>{const _0x5a2aa0=_0x27a347;_0x42f11b[_0x3d2fdd][_0x5a2aa0(0x36d)](_0x304a17=>{const _0x3927dd=_0x5a2aa0,_0x191eeb={..._0x304a17};_0x191eeb['startRow']=_0x304a17[_0x3927dd(0x36a)]+_0x4bb40e,_0x191eeb['endRow']=_0x304a17[_0x3927dd(0x241)]+_0x4bb40e,_0x191eeb[_0x3927dd(0x1c9)]=_0x304a17[_0x3927dd(0x1c9)]+_0x5006e9,_0x191eeb[_0x3927dd(0x1f1)]=_0x304a17[_0x3927dd(0x1f1)]+_0x5006e9,_0x3926de[_0x3927dd(0x364)](_0x191eeb);});});const _0x1537b6=this[_0x27a347(0x1bc)][_0x27a347(0x17e)]({'unitId':_0x18e16f,'subUnitId':_0x13071f,'ranges':_0x3926de});_0x38ac6f['push'](..._0x1537b6['redos']),_0x36e37e[_0x27a347(0x364)](..._0x1537b6['undos']);const _0x347733=_0x274f21(this['_injector'],_0x18e16f,_0x13071f,_0x3926de);_0x347733[_0x27a347(0x223)]&&(_0x38ac6f[_0x27a347(0x364)](_0x347733[_0x27a347(0x176)]),_0x36e37e[_0x27a347(0x364)](_0x347733[_0x27a347(0x366)]));}}}}return{'redos':_0x38ac6f,'undos':_0x36e37e};}};_0x47c3f9=_0x3f1534([_0x5268fe(0x0,_0x288eb9['Inject'](_0x288eb9[_0x42bb9f(0x1fb)])),_0x5268fe(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8[_0x42bb9f(0x177)])),_0x5268fe(0x2,_0x288eb9[_0x42bb9f(0x19d)]),_0x5268fe(0x3,_0x288eb9[_0x42bb9f(0x132)]),_0x5268fe(0x4,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755[_0x42bb9f(0x2e2)])),_0x5268fe(0x5,_0x288eb9['Inject'](_0x5bf755[_0x42bb9f(0x249)])),_0x5268fe(0x6,_0x288eb9['Inject'](_0x2e27a8[_0x42bb9f(0x365)]))],_0x47c3f9);var _0x3593e6=Object[_0x42bb9f(0x235)],_0x1c766c=(_0x3ae02f,_0x1e3a0f,_0x36574e,_0x4b86c1)=>{const _0x425cb6=_0x42bb9f;for(var _0x4a176c=_0x4b86c1>0x1?void 0x0:_0x4b86c1?_0x3593e6(_0x1e3a0f,_0x36574e):_0x1e3a0f,_0x373805=_0x3ae02f[_0x425cb6(0x8f)]-0x1,_0x59f44e;_0x373805>=0x0;_0x373805--)(_0x59f44e=_0x3ae02f[_0x373805])&&(_0x4a176c=_0x59f44e(_0x4a176c)||_0x4a176c);return _0x4a176c;},_0x1cc003=(_0x4163c8,_0x20fe8f)=>(_0x3ee7d8,_0x4342f2)=>_0x20fe8f(_0x3ee7d8,_0x4342f2,_0x4163c8);let _0x3d72e6=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x1a3210,_0x11a72e){const _0x2aa19b=_0x42bb9f;super(),this[_0x2aa19b(0x1bc)]=_0x1a3210,this[_0x2aa19b(0x98)]=_0x11a72e,this[_0x2aa19b(0x133)]();}[_0x42bb9f(0x133)](){const _0x35cbd3=_0x42bb9f;this['disposeWithMe'](this[_0x35cbd3(0x1bc)]['interceptCommand']({'getMutations':_0xcf1dfb=>{const _0x2b1c6f=_0x35cbd3;if(_0xcf1dfb['id']===_0x2e27a8[_0x2b1c6f(0xf1)]['id']){const _0x2fd5c0=[],_0x4b0f59=[],_0x3ef6ea=_0xcf1dfb['params'],{unitId:_0x2a565e,subUnitId:_0x12f9b6}=_0x3ef6ea;if(!_0x2a565e||!_0x12f9b6)return{'undos':_0x4b0f59,'redos':_0x2fd5c0};const _0x4ed578=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x2a565e,_0x12f9b6);if(_0x4ed578!=null&&_0x4ed578[_0x2b1c6f(0x1f6)])for(const [_0x1b4416,_0x8bcc11]of _0x4ed578){_0x2fd5c0[_0x2b1c6f(0x364)]({'id':_0xf36de3['id'],'params':{'unitId':_0x2a565e,'subUnitId':_0x12f9b6,'pivotTableId':_0x1b4416}});const _0x54247c={...this[_0x2b1c6f(0x98)][_0x2b1c6f(0x2c8)](_0x2a565e,_0x1b4416)};_0x4b0f59[_0x2b1c6f(0x364)]({'id':_0x7c30f0['id'],'params':{'unitId':_0x2a565e,'subUnitId':_0x12f9b6,'pivotTableId':_0x1b4416,'pivotTableConfig':_0x8bcc11,'collectionConfig':_0x54247c}});}return{'redos':_0x2fd5c0,'undos':_0x4b0f59};}return{'redos':[],'undos':[]};}}));}};_0x3d72e6=_0x1c766c([_0x1cc003(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x2e27a8[_0x42bb9f(0x365)])),_0x1cc003(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755[_0x42bb9f(0x2e2)]))],_0x3d72e6);var _0x34beaa=Object[_0x42bb9f(0x235)],_0x4ab73f=(_0xd37c5f,_0x1c7427,_0x52b138,_0x2bcbfb)=>{const _0x2449ba=_0x42bb9f;for(var _0x25bae0=_0x2bcbfb>0x1?void 0x0:_0x2bcbfb?_0x34beaa(_0x1c7427,_0x52b138):_0x1c7427,_0x4533b0=_0xd37c5f[_0x2449ba(0x8f)]-0x1,_0x4ba06f;_0x4533b0>=0x0;_0x4533b0--)(_0x4ba06f=_0xd37c5f[_0x4533b0])&&(_0x25bae0=_0x4ba06f(_0x25bae0)||_0x25bae0);return _0x25bae0;},_0xb3eed7=(_0x2e5bef,_0x2d1b56)=>(_0x4da90a,_0x4e709d)=>_0x2d1b56(_0x4da90a,_0x4e709d,_0x2e5bef);let _0x277bb2=class extends _0x288eb9[_0x42bb9f(0x3a9)]{constructor(_0x548a94,_0x103b77,_0x15b38b,_0x5f3c13,_0x5da2b0,_0x5a51df){const _0x270dbc=_0x42bb9f;super(),this[_0x270dbc(0x370)]=_0x548a94,this[_0x270dbc(0x37f)]=_0x103b77,this['_sheetsPivotTableAdaptorModel']=_0x15b38b,this[_0x270dbc(0x98)]=_0x5f3c13,this[_0x270dbc(0x1d4)]=_0x5da2b0,this['_activeDirtyManagerService']=_0x5a51df,this[_0x270dbc(0xfc)](),this[_0x270dbc(0x299)]();}[_0x42bb9f(0xfc)](){const _0x145315=_0x42bb9f;this['disposeWithMe'](this[_0x145315(0x370)][_0x145315(0x222)](_0x986f74=>{const _0x548570=_0x145315;if(_0x986f74['id']!==_0x37b8d8['id'])return;const _0x538632=_0x986f74['params'];this['_sheetsPivotRpcService'][_0x548570(0xea)](_0x538632);})),this['disposeWithMe'](this[_0x145315(0x370)]['onCommandExecuted'](_0xe1d8a8=>{const _0x4140a7=_0x145315;if(_0xe1d8a8['id']===_0x5d1784['id']){const _0x240326=_0xe1d8a8[_0x4140a7(0x2e6)];if(_0x240326){const {unitId:_0x40341e,subUnitId:_0x72d574,oldSubUnitId:_0x18cf4f,pivotTableId:_0x4f0450,pivotTableConfig:_0x7a479a,collectionConfig:_0x2ad8e5}=_0x240326;this['_sheetsPivotTableConfigModel'][_0x4140a7(0x2cf)](_0x40341e,_0x18cf4f,_0x240326[_0x4140a7(0x111)],null),this[_0x4140a7(0x98)][_0x4140a7(0x2cf)](_0x40341e,_0x72d574,_0x4f0450,_0x7a479a),this[_0x4140a7(0x98)][_0x4140a7(0x114)](_0x40341e,_0x2ad8e5);}}})),this['disposeWithMe'](this[_0x145315(0x370)][_0x145315(0x222)](_0x46e01e=>{const _0x454ee4=_0x145315;if(_0x46e01e['id']!==_0x1b400c['id'])return;const _0x3e8ebb=_0x2e27a8[_0x454ee4(0xba)](this[_0x454ee4(0x1d4)]);if(!_0x3e8ebb)return;const {unitId:_0x40755e,subUnitId:_0x3c0562}=_0x3e8ebb,_0x5f3145=_0x46e01e[_0x454ee4(0x2e6)];if(_0x5f3145[_0x454ee4(0x158)]&&Object[_0x454ee4(0x237)](_0x5f3145[_0x454ee4(0x158)])['forEach'](_0x409281=>{const _0x2dd6ae=_0x454ee4;var _0x40fa0a;(_0x40fa0a=_0x5f3145[_0x2dd6ae(0x158)])!=null&&_0x40fa0a[_0x409281]&&this[_0x2dd6ae(0x98)][_0x2dd6ae(0x114)](_0x409281,_0x5f3145[_0x2dd6ae(0x158)][_0x409281]);}),_0x5f3145[_0x454ee4(0x306)]){const _0x493423=_0x5f3145[_0x454ee4(0x306)],{unitId:_0x13b502,subUnitId:_0x4745d8,view:_0x325c7e,pivotTableId:_0x2cade1,type:_0x9d74a1,pivotConfig:_0x4cfc28}=_0x493423;if(_0x9d74a1===_0x2de5fe[_0x454ee4(0x163)])this[_0x454ee4(0xb2)][_0x454ee4(0x337)]({'unitId':_0x13b502,'subUnitId':_0x4745d8,'pivotTableId':_0x2cade1,'type':_0x9d74a1}),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x13b502,_0x4745d8,_0x2cade1,null);else{const _0x351b38=new _0x2bd302[(_0x454ee4(0x15a))]();_0x351b38['formJSON'](_0x325c7e),this[_0x454ee4(0x98)][_0x454ee4(0x2cf)](_0x13b502,_0x4745d8,_0x2cade1,_0x4cfc28),this[_0x454ee4(0xb2)][_0x454ee4(0x337)]({'unitId':_0x13b502,'subUnitId':_0x4745d8,'pivotTableId':_0x2cade1,'type':_0x9d74a1,'view':_0x351b38}),this['_sheetsPivotTableAdaptorModel'][_0x454ee4(0x119)]({'unitId':_0x13b502,'subUnitId':_0x4745d8,'view':_0x351b38,'pivotTableId':_0x2cade1,'type':_0x9d74a1});}}else _0x5f3145[_0x454ee4(0x369)]&&(_0x5f3145[_0x454ee4(0x369)][_0x454ee4(0x36d)](_0x30e694=>{const _0x18d5f9=_0x454ee4,{unitId:_0x4a6bfd,subUnitId:_0x20106c,view:_0x114ad6,pivotTableId:_0x4d0e71,type:_0xc77a8e,pivotConfig:_0x4a43c6}=_0x30e694,_0x3528bf=new _0x2bd302[(_0x18d5f9(0x15a))]();_0x3528bf[_0x18d5f9(0x188)](_0x114ad6),this[_0x18d5f9(0x98)][_0x18d5f9(0x2cf)](_0x4a6bfd,_0x20106c,_0x4d0e71,_0x4a43c6),this[_0x18d5f9(0xb2)][_0x18d5f9(0x119)]({'unitId':_0x4a6bfd,'subUnitId':_0x20106c,'view':_0x3528bf,'pivotTableId':_0x4d0e71,'type':_0xc77a8e});}),this[_0x454ee4(0x98)][_0x454ee4(0x305)]());this[_0x454ee4(0xb2)][_0x454ee4(0x374)](_0x40755e,_0x3c0562);}));}[_0x42bb9f(0x299)](){const _0x43b711=_0x42bb9f;this['_activeDirtyManagerService'][_0x43b711(0x143)](_0x49e4cb['id'],{'commandId':_0x49e4cb['id'],'getDirtyData'(_0x25b897){const _0x5ca94f=_0x43b711;return{'dirtyUnitFeatureMap':_0x25b897[_0x5ca94f(0x2e6)]};}});}};_0x277bb2=_0x4ab73f([_0xb3eed7(0x0,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x19d)])),_0xb3eed7(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755[_0x42bb9f(0x330)])),_0xb3eed7(0x2,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755[_0x42bb9f(0x249)])),_0xb3eed7(0x3,_0x288eb9[_0x42bb9f(0x21c)](_0x5bf755[_0x42bb9f(0x2e2)])),_0xb3eed7(0x4,_0x288eb9['Inject'](_0x288eb9['IUniverInstanceService'])),_0xb3eed7(0x5,_0x1407f0[_0x42bb9f(0x353)])],_0x277bb2);var _0x365a18=Object[_0x42bb9f(0x221)],_0x14be2d=Object[_0x42bb9f(0x235)],_0x3c2421=(_0x1db4a0,_0x5eafc7,_0xc4f325)=>_0x5eafc7 in _0x1db4a0?_0x365a18(_0x1db4a0,_0x5eafc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc4f325}):_0x1db4a0[_0x5eafc7]=_0xc4f325,_0x5cdda7=(_0x9354aa,_0x4f4a8e,_0x2c3b18,_0x4e2a7e)=>{for(var _0x3e9764=_0x4e2a7e>0x1?void 0x0:_0x4e2a7e?_0x14be2d(_0x4f4a8e,_0x2c3b18):_0x4f4a8e,_0x1ef1c1=_0x9354aa['length']-0x1,_0x2416dc;_0x1ef1c1>=0x0;_0x1ef1c1--)(_0x2416dc=_0x9354aa[_0x1ef1c1])&&(_0x3e9764=_0x2416dc(_0x3e9764)||_0x3e9764);return _0x3e9764;},_0x55e45a=(_0xe84b77,_0x172c72)=>(_0x5e1d01,_0x4ae61d)=>_0x172c72(_0x5e1d01,_0x4ae61d,_0xe84b77),_0x29abc0=(_0x114115,_0x414d3c,_0x31bf51)=>_0x3c2421(_0x114115,typeof _0x414d3c!=_0x42bb9f(0x2b8)?_0x414d3c+'':_0x414d3c,_0x31bf51);_0x5bf755[_0x42bb9f(0x1bd)]=class extends _0x288eb9['Plugin']{constructor(_0x80904d=_0x49e17c,_0xa98b21,_0xd77fd8,_0x46d58c,_0x599b42){const _0x2fa22d=_0x42bb9f;super(),this[_0x2fa22d(0x371)]=_0x80904d,this[_0x2fa22d(0x39e)]=_0xa98b21,this['_commandService']=_0xd77fd8,this[_0x2fa22d(0x2fd)]=_0x46d58c,this['_dataSyncPrimaryController']=_0x599b42;const {..._0x1c48ec}=_0x288eb9[_0x2fa22d(0x1da)]({},_0x49e17c,this[_0x2fa22d(0x371)]);this[_0x2fa22d(0x2fd)]['setConfig'](_0x403f4a,_0x1c48ec),this[_0x2fa22d(0x13f)](),this[_0x2fa22d(0xef)]();}[_0x42bb9f(0xef)](){const _0x2e73ac=_0x42bb9f;var _0x22cfbe;const _0x1449c2=(_0x22cfbe=this[_0x2e73ac(0x371)])==null?void 0x0:_0x22cfbe['notExecuteFormula'];this[_0x2e73ac(0x2fd)][_0x2e73ac(0x379)](_0x34280f,_0x1449c2===!0x0);}['onStarting'](){const _0x16034b=_0x42bb9f;var _0x596f7f;let _0x137875=[];const _0x2e1f03=(_0x596f7f=this[_0x16034b(0x371)])==null?void 0x0:_0x596f7f[_0x16034b(0x8c)];_0x2e1f03===!0x0?_0x137875=[[_0x5bf755['SheetsPivotTableService']],[_0x5bf755[_0x16034b(0x330)]],[_0x277bb2],[_0x5bf755['SheetsPivotTableAdaptorModel']],[_0x5bf755[_0x16034b(0x2e2)]],[_0x3d72e6],[_0x16b75e],[_0x47c3f9],[_0x522425]]:_0x2e1f03===!0x1?_0x137875=[[_0x5bf755[_0x16034b(0x1ae)]],[_0x161fb7]]:_0x2e1f03===void 0x0&&(_0x137875=[[_0x5bf755[_0x16034b(0x1ae)]],[_0x161fb7],[_0x5bf755['SheetsPivotTableService']],[_0x5bf755[_0x16034b(0x330)]],[_0x277bb2],[_0x5bf755[_0x16034b(0x249)]],[_0x5bf755[_0x16034b(0x2e2)]],[_0x3d72e6],[_0x16b75e],[_0x47c3f9],[_0x522425]]),_0x137875['forEach'](_0x281902=>this['_injector'][_0x16034b(0x246)](_0x281902)),[_0x161fb7,_0x277bb2,_0x5bf755[_0x16034b(0x19e)],_0x16b75e,_0x3d72e6,_0x47c3f9,_0x522425][_0x16034b(0x36d)](_0x33debb=>{const _0xb866a3=_0x16034b;this[_0xb866a3(0x39e)][_0xb866a3(0xde)](_0x33debb)&&this[_0xb866a3(0x39e)][_0xb866a3(0x239)](_0x33debb);});}['_initRegisterCommand'](){const _0x1b8e22=_0x42bb9f;[_0x37507d,_0x9e6b92,_0x458ab2,_0x5ea7f4,_0x2148b5,_0x51c029,_0x340d3f,_0x12e7ee,_0x45f54e,_0x507f0e,_0x12b36f,_0x228b3a,_0x2891e4,_0x4fc4e5,_0x7c30f0,_0x14bbb0,_0xf36de3,_0x340732,_0x33e7c6,_0xb3cfa6,_0x44944d,_0x8bbbe,_0x3bf8ba,_0x3f8ba0,_0x4c05bf,_0x845d4f,_0x4c1e58,_0x459da1,_0x37b8d8,_0x1b400c,_0x26377e,_0x1e7ed4,_0x194ae1,_0x286fdb,_0x157f7e,_0x1bc7f9,_0x30ddcd,_0x49e4cb,_0x5d1784,_0x16fa93,_0x4715f0,_0x275613,_0x318908][_0x1b8e22(0x36d)](_0x37970d=>{const _0x3c349d=_0x1b8e22;var _0x286c35;(_0x286c35=this[_0x3c349d(0x3a4)])==null||_0x286c35['registerSyncingMutations'](_0x37970d),this['_commandService'][_0x3c349d(0x108)](_0x37970d);});}},_0x29abc0(_0x5bf755[_0x42bb9f(0x1bd)],_0x42bb9f(0x1c2),_0xd0f9a3),_0x29abc0(_0x5bf755[_0x42bb9f(0x1bd)],_0x42bb9f(0x29a),_0x288eb9['UniverInstanceType'][_0x42bb9f(0x197)]),_0x5bf755[_0x42bb9f(0x1bd)]=_0x5cdda7([_0x288eb9[_0x42bb9f(0x283)](_0x1f3f39[_0x42bb9f(0x35d)]),_0x55e45a(0x1,_0x288eb9[_0x42bb9f(0x21c)](_0x288eb9[_0x42bb9f(0x1fb)])),_0x55e45a(0x2,_0x288eb9['Inject'](_0x288eb9[_0x42bb9f(0x19d)])),_0x55e45a(0x3,_0x288eb9[_0x42bb9f(0xd5)]),_0x55e45a(0x4,_0x288eb9[_0x42bb9f(0x37b)](_0x5e8e90[_0x42bb9f(0x19c)]))],_0x5bf755['UniverSheetsPivotTablePlugin']),_0x5bf755[_0x42bb9f(0x194)]=_0x458ab2,_0x5bf755[_0x42bb9f(0x2c7)]=_0x340732,_0x5bf755['AddPivotTableCommand']=_0x9e6b92,_0x5bf755[_0x42bb9f(0x2e1)]=_0x7c30f0,_0x5bf755[_0x42bb9f(0x2f5)]=_0x37507d,_0x5bf755[_0x42bb9f(0x136)]=_0x4bce21,_0x5bf755[_0x42bb9f(0x11b)]=_0x2e2372,_0x5bf755[_0x42bb9f(0x29c)]=_0x5ea7f4,_0x5bf755[_0x42bb9f(0x2b7)]=_0x2891e4,_0x5bf755[_0x42bb9f(0x34a)]=_0x5e3388,_0x5bf755[_0x42bb9f(0x3a6)]=_0x4fc4e5,_0x5bf755['PivotTableOperationEnum']=_0x2de5fe,_0x5bf755['PivotTableViewDirtyMarkOperation']=_0x49e4cb,_0x5bf755['PositionType']=_0x1caed1,_0x5bf755[_0x42bb9f(0x117)]=_0x2148b5,_0x5bf755[_0x42bb9f(0x178)]=_0x8bbbe,_0x5bf755['RemovePivotTableMutation']=_0xf36de3,_0x5bf755[_0x42bb9f(0x301)]=_0x3bf8ba,_0x5bf755[_0x42bb9f(0x1d6)]=_0x318908,_0x5bf755[_0x42bb9f(0x285)]=_0x403f4a,_0x5bf755[_0x42bb9f(0x1c4)]=_0xd0f9a3,_0x5bf755[_0x42bb9f(0x18f)]=_0x12e7ee,_0x5bf755['SetPivotCollapseMutation']=_0x3f8ba0,_0x5bf755[_0x42bb9f(0x19a)]=_0x286fdb,_0x5bf755[_0x42bb9f(0xda)]=_0x275613,_0x5bf755[_0x42bb9f(0x28e)]=_0x507f0e,_0x5bf755[_0x42bb9f(0x311)]=_0x44944d,_0x5bf755[_0x42bb9f(0x15c)]=_0x845d4f,_0x5bf755[_0x42bb9f(0x30f)]=_0x4c1e58,_0x5bf755[_0x42bb9f(0x24a)]=_0x45f54e,_0x5bf755['SetPivotSortMutation']=_0x4c05bf,_0x5bf755[_0x42bb9f(0x342)]=_0x194ae1,_0x5bf755[_0x42bb9f(0x1fc)]=_0x16fa93,_0x5bf755[_0x42bb9f(0x1a8)]=_0x4715f0,_0x5bf755[_0x42bb9f(0x173)]=_0x340d3f,_0x5bf755[_0x42bb9f(0x377)]=_0x26377e,_0x5bf755[_0x42bb9f(0x339)]=_0x12b36f,_0x5bf755['UpdatePivotFieldSourceInfoMutation']=_0x30ddcd,_0x5bf755[_0x42bb9f(0xc9)]=_0x228b3a,_0x5bf755['UpdatePivotTableSourceRangeMutation']=_0x1bc7f9,_0x5bf755[_0x42bb9f(0xc8)]=_0x51c029,_0x5bf755[_0x42bb9f(0x204)]=_0x1e7ed4,_0x5bf755[_0x42bb9f(0x2f3)]=_0x54d6ee,_0x5bf755[_0x42bb9f(0x21e)]=_0x15f38b,_0x5bf755[_0x42bb9f(0xb4)]=_0x1b6d0b,_0x5bf755['generateSetRangeValueMutations']=_0x274f21,_0x5bf755[_0x42bb9f(0x326)]=_0x2b2601,_0x5bf755['getEmptyPivotRanges']=_0x2a44bf,_0x5bf755['getFieldListByArea']=_0x12b438,_0x5bf755[_0x42bb9f(0x205)]=_0x3034a0,_0x5bf755['getPivotCellInfo']=_0x2bc413,_0x5bf755['getPivotInfoByLicense']=_0x52b3f8,_0x5bf755[_0x42bb9f(0x1ee)]=_0x5da254,_0x5bf755['transFromCellValue']=_0x2ee935,_0x5bf755['unionPivotViewRange']=_0x26ef08,Object[_0x42bb9f(0x221)](_0x5bf755,Symbol[_0x42bb9f(0x149)],{'value':_0x42bb9f(0x2cd)});}));
1
+ function _0x1019(_0x5861e2,_0x2f58e3){const _0x2db2de=_0x2db2();return _0x1019=function(_0x1019e2,_0x33491c){_0x1019e2=_0x1019e2-0x177;let _0x36a6d0=_0x2db2de[_0x1019e2];return _0x36a6d0;},_0x1019(_0x5861e2,_0x2f58e3);}(function(_0x2a31f0,_0x3dba98){const _0x52314a=_0x1019,_0x3f8e97=_0x2a31f0();while(!![]){try{const _0x46713a=-parseInt(_0x52314a(0x316))/0x1+-parseInt(_0x52314a(0x408))/0x2+-parseInt(_0x52314a(0x337))/0x3+-parseInt(_0x52314a(0x3c6))/0x4+parseInt(_0x52314a(0x464))/0x5+-parseInt(_0x52314a(0x396))/0x6*(parseInt(_0x52314a(0x40b))/0x7)+parseInt(_0x52314a(0x17b))/0x8*(parseInt(_0x52314a(0x28b))/0x9);if(_0x46713a===_0x3dba98)break;else _0x3f8e97['push'](_0x3f8e97['shift']());}catch(_0x1d7fed){_0x3f8e97['push'](_0x3f8e97['shift']());}}}(_0x2db2,0xbc313),function(_0x4e9430,_0x1348e1){const _0x1183b6=_0x1019;typeof exports==_0x1183b6(0x1d9)&&typeof module<'u'?_0x1348e1(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x1183b6(0x384)&&define[_0x1183b6(0x1f9)]?define([_0x1183b6(0x2ca),_0x1183b6(0x220),_0x1183b6(0x2c0),_0x1183b6(0x180),'@univerjs/sheets',_0x1183b6(0x3af),_0x1183b6(0x342),_0x1183b6(0x213),_0x1183b6(0x32e),_0x1183b6(0x27f)],_0x1348e1):(_0x4e9430=typeof globalThis<'u'?globalThis:_0x4e9430||self,_0x1348e1(_0x4e9430['UniverProSheetsPivot']={},_0x4e9430[_0x1183b6(0x356)],_0x4e9430[_0x1183b6(0x2fa)],_0x4e9430[_0x1183b6(0x450)],_0x4e9430[_0x1183b6(0x1b3)],_0x4e9430[_0x1183b6(0x3af)],_0x4e9430['UniverProLicense'],_0x4e9430[_0x1183b6(0x347)],_0x4e9430['UniverRpc'],_0x4e9430[_0x1183b6(0x196)]));}(this,function(_0x1cc2c4,_0x2eef51,_0x374f23,_0x925485,_0x24a2a7,_0x1cd777,_0x2169aa,_0x158537,_0x37f267,_0x132b06){'use strict';const _0x5d1072=_0x1019;var _0x40dc40=Object[_0x5d1072(0x46f)],_0x2cd8b8=(_0x15410f,_0x41c825,_0x57ee84)=>_0x41c825 in _0x15410f?_0x40dc40(_0x15410f,_0x41c825,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ee84}):_0x15410f[_0x41c825]=_0x57ee84,_0x1e0b19=(_0x55789c,_0x234149,_0xc13073)=>_0x2cd8b8(_0x55789c,typeof _0x234149!=_0x5d1072(0x430)?_0x234149+'':_0x234149,_0xc13073);const _0x82b07b=Number['parseInt'](0x68fcb286),_0x1b6ed3=0x10,_0x5639c4=0x1,_0xcaa86f=_0x5d1072(0x304),_0x9545db=0x1,_0x229a28='rgb(240,241,243)',_0x32bba2='rgb(255,255,255)',_0x3af942=_0x5d1072(0x45f),_0x4028c2=_0x5d1072(0x3a6),_0x2157e1='#f4f4f5',_0x482a77=_0x5d1072(0x438),_0x368d31=_0x5d1072(0x21d),_0x4e5cc1=_0x5d1072(0x382),_0x3676d7=_0x5d1072(0x214),_0x3df884=_0x5d1072(0x21d),_0x3cced3=_0x5d1072(0x382),_0x536795='#e6ebfb',_0x2ccd6c=0xe,_0x69f1d9=0x6;var _0x55d455=(_0x474aa0=>(_0x474aa0[_0x5d1072(0x35e)]='existing',_0x474aa0[_0x5d1072(0x44a)]=_0x5d1072(0x1ee),_0x474aa0))(_0x55d455||{});const _0xe2c987={'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':''}}},_0x350f93=0x1e,_0x39696={'b':{'s':0x1,'cl':{'rgb':_0x3af942}},'l':{'s':0x1,'cl':{'rgb':_0x3af942}},'r':{'s':0x1,'cl':{'rgb':_0x3af942}},'t':{'s':0x1,'cl':{'rgb':_0x3af942}}},_0x554db5={'bg':{'rgb':_0x229a28},'ht':0x2,'vt':0x2,'tb':0x1},_0x5c764c={'bg':{'rgb':_0x32bba2},'ht':0x2,'vt':0x2,'tb':0x1},_0x1ed179={'rowStyle':{'bg':{'rgb':_0x536795},'bd':_0x39696,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x3df884},'bd':null,'cl':{'rgb':_0x3cced3},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x39696,'bg':{'rgb':_0x3676d7},'vt':0x2},'cornerStyle':{'bd':_0x39696,'bg':{'rgb':_0x482a77},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x39696,'bg':{'rgb':_0x4028c2},'vt':0x2},'leafStyle':{'bd':_0x39696,'bg':{'rgb':_0x2157e1},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x368d31},'cl':{'rgb':_0x4e5cc1},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x39696,'vt':0x2}};function _0x485a6d(_0x5e505a,_0x49abd3,_0x153316){const _0x461cf6=_0x5d1072,_0x500fb2=_0x5e505a['get'](_0x374f23[_0x461cf6(0x3cd)]),_0x3ddc6e=_0x153316['split']('_');switch(_0x49abd3){case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x17e)]:return _0x500fb2['t'](_0x461cf6(0x2fd),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x1dd)]:return _0x500fb2['t'](_0x461cf6(0x3ef),..._0x3ddc6e);case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x461cf6(0x1c7)]:return _0x500fb2['t'](_0x461cf6(0x322),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x33e)]:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x2e7)]:return _0x500fb2['t'](_0x461cf6(0x344),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x319)]:return _0x500fb2['t'](_0x461cf6(0x40d),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)]['Quarter']:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)]['YearMonth']:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x23f)]:return _0x500fb2['t'](_0x461cf6(0x297),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x17a)]:return _0x500fb2['t'](_0x461cf6(0x39f),..._0x3ddc6e);}return'';}const _0x111915=(_0x1bc558,_0x1bbd5c,_0x149a53,_0x25148d)=>{const _0x5bd684=_0x5d1072;let _0x17286a;const _0x42ce64=_0x1bc558[_0x5bd684(0x411)](_0x374f23[_0x5bd684(0x1d8)])[_0x5bd684(0x2fb)](_0x374f23[_0x5bd684(0x1e8)]['UNIVER_SHEET']);if(!_0x42ce64)return null;const _0x48a7c4=_0x42ce64['getStyles']();let _0x5c06e1;if(_0x149a53&&(_0x5c06e1=_0x48a7c4['setValue'](_0x149a53)),_0x1bbd5c!=null&&_0x1bbd5c['v']||(_0x1bbd5c==null?void 0x0:_0x1bbd5c['v'])===0x0){_0x17286a||(_0x17286a={});const _0x266e9e=_0x9bc11a(_0x1bbd5c['v']);typeof _0x266e9e==_0x5bd684(0x41e)?_0x17286a['t']=_0x374f23[_0x5bd684(0x278)]['NUMBER']:typeof _0x266e9e==_0x5bd684(0x436)&&(_0x17286a['t']=_0x374f23[_0x5bd684(0x278)][_0x5bd684(0x471)]),_0x17286a['v']=_0x266e9e;}if((_0x1bbd5c!=null&&_0x1bbd5c['i']||(_0x1bbd5c==null?void 0x0:_0x1bbd5c['i'])===0x0)&&(_0x17286a||(_0x17286a={}),_0x17286a['fi']=_0x1bbd5c['i']),_0x1bbd5c!=null&&_0x1bbd5c['s']&&(_0x17286a||(_0x17286a={}),_0x17286a[_0x5bd684(0x2d4)]=_0x1bbd5c['s']),_0x149a53&&(_0x17286a||(_0x17286a={}),_0x17286a['s']=_0x5c06e1),_0x25148d&&_0x17286a!=null&&_0x17286a['v']&&_0x17286a[_0x5bd684(0x2d4)]!==_0x2eef51[_0x5bd684(0x421)]['GrandTotal']&&_0x17286a['pbt']!==_0x2eef51['PivotCellStyleTypeEnum'][_0x5bd684(0x24e)]){const _0x3099a8=String(_0x17286a['v']),{dateType:_0x32773d}=_0x25148d;_0x17286a['v']=_0x485a6d(_0x1bc558,_0x32773d,_0x3099a8),_0x17286a['t']=_0x374f23[_0x5bd684(0x278)]['STRING'];}return _0x17286a;},_0x240ff5=(_0x1afdc0,_0x33cae4,_0x241096,_0x1b5228)=>{const _0x38bc83=_0x5d1072;var _0x837fef,_0x2efaa3,_0x581b16,_0x5677d8,_0x13fc63,_0x39369d,_0x2fe97a,_0x4cfb8b,_0x34bc6b,_0xf2d7b8,_0x3cf1ae,_0x23e90b,_0x83d8c2,_0x3bbc7b;const _0x2ca8eb=_0x241096[_0x38bc83(0x357)],{cornerView:_0x45a5d3,rowView:_0x72bb5d,colView:_0x518d5a,dataView:_0x3e4026,pageView:_0x3f0b96,formatMap:_0x4820a1,groupInfo:_0x4efa6e}=_0x33cae4,{row:_0x5c023a,col:_0xd9f5ef}=_0x2ca8eb,_0x9f36e2=new _0x374f23[(_0x38bc83(0x33b))](),_0x5b070b={},_0x2af582={},_0x1e50ac={},_0x2f51bd={},_0x1b6dd7={};let _0x44daf2=_0x5c023a,_0x494746=_0xd9f5ef;Object['keys'](_0x3f0b96['data'])[_0x38bc83(0x274)](_0x511739=>{const _0x2dfc38=_0x38bc83;Object[_0x2dfc38(0x3d8)](_0x3f0b96[_0x2dfc38(0x3b3)][Number(_0x511739)])[_0x2dfc38(0x274)](_0x19d82=>{const _0x46b374=_0x2dfc38,_0x48a232={..._0x3f0b96[_0x46b374(0x3b3)][Number(_0x511739)][Number(_0x19d82)]};_0x9f36e2[_0x46b374(0x388)](Number(_0x511739)+_0x44daf2,Number(_0x19d82)+_0x494746,_0x111915(_0x1afdc0,_0x48a232,_0x1ed179[_0x46b374(0x2e3)]));});});const _0x563f88=Object[_0x38bc83(0x3d8)](_0x3f0b96['data'])[_0x38bc83(0x468)];_0x44daf2+=_0x563f88+(_0x563f88?_0x9545db:0x0);const _0x4947d5=_0x45a5d3[_0x38bc83(0x46e)](),_0x2b36c9=_0x45a5d3[_0x38bc83(0x37f)]();for(let _0x5c7ffd=0x0;_0x5c7ffd<_0x4947d5;_0x5c7ffd++)for(let _0x533ed2=0x0;_0x533ed2<_0x2b36c9;_0x533ed2++){const _0x310a85={...(_0x2efaa3=(_0x837fef=_0x45a5d3[_0x38bc83(0x3b3)])==null?void 0x0:_0x837fef[_0x5c7ffd])==null?void 0x0:_0x2efaa3[_0x533ed2]};_0x310a85&&((_0x581b16=_0x72bb5d[_0x38bc83(0x271)][_0x533ed2])!=null&&_0x581b16[_0x38bc83(0x40e)])&&_0x533ed2===_0x2b36c9-0x1&&_0x5c7ffd===_0x4947d5-0x1&&(_0x310a85['v']=''+_0x1b5228[_0x38bc83(0x37a)]),_0x9f36e2['setValue'](_0x5c7ffd+_0x44daf2,_0x533ed2+_0x494746,_0x111915(_0x1afdc0,_0x310a85,_0x1ed179[_0x38bc83(0x1cc)]));}for(let _0x573ebc=0x0;_0x573ebc<_0x45a5d3[_0x38bc83(0x34c)][_0x38bc83(0x468)];_0x573ebc++)_0x45a5d3[_0x38bc83(0x34c)][_0x573ebc]&&(_0x1e50ac[''+(_0x573ebc+_0x494746)]=_0x45a5d3[_0x38bc83(0x34c)][_0x573ebc]);_0x494746+=_0x2b36c9;const _0x49cf5f=_0x518d5a[_0x38bc83(0x271)],_0x44167c=_0x518d5a[_0x38bc83(0x315)]()>=0x0?_0x518d5a[_0x38bc83(0x315)]()+0x1:0x0,_0x344680=_0x518d5a[_0x38bc83(0x20f)]()>=0x0?_0x518d5a[_0x38bc83(0x20f)]()+0x1:0x0;for(let _0x2d6395=0x0;_0x2d6395<_0x344680;_0x2d6395++){for(let _0x479d00=0x0;_0x479d00<_0x44167c;_0x479d00++){const _0x543efb={...(_0x13fc63=(_0x5677d8=_0x518d5a[_0x38bc83(0x3b3)])==null?void 0x0:_0x5677d8[_0x479d00])==null?void 0x0:_0x13fc63[_0x2d6395]},_0x14aa2a=(_0x39369d=_0x49cf5f[_0x479d00])==null?void 0x0:_0x39369d[_0x38bc83(0x44b)],_0x3e9e6c=_0x4820a1[_0x14aa2a],_0x1d5b11=_0x4efa6e[_0x14aa2a];_0x543efb&&(_0x543efb['v']=_0x99791(_0x543efb,_0x479d00===0x0&&((_0x2fe97a=_0x518d5a['getHeaderMapItem'](_0x2d6395+0x1))==null?void 0x0:_0x2fe97a[_0x38bc83(0x40e)]),_0x3e9e6c,_0x1b5228));let _0x248fe9;_0x3e9e6c?_0x248fe9={..._0x1ed179[_0x38bc83(0x268)],'n':{'pattern':_0x3e9e6c}}:_0x248fe9={..._0x1ed179[_0x38bc83(0x268)]},_0x9f36e2[_0x38bc83(0x388)](_0x479d00+_0x44daf2,_0x2d6395+_0x494746,_0x111915(_0x1afdc0,_0x543efb,_0x248fe9,_0x1d5b11));}_0x518d5a[_0x38bc83(0x34c)][_0x2d6395]&&(_0x2af582[''+(_0x2d6395+_0x494746)]=_0x518d5a[_0x38bc83(0x34c)][_0x2d6395]),_0x518d5a[_0x38bc83(0x271)][_0x2d6395+0x1]&&(_0x1b6dd7[''+(_0x2d6395+_0x44daf2+0x1)]=_0x518d5a['headerMap'][_0x2d6395+0x1]);}_0x44daf2+=_0x4947d5;const _0x1eacae=_0x72bb5d[_0x38bc83(0x271)],_0x154ea3=_0x72bb5d[_0x38bc83(0x315)]()>=0x0?_0x72bb5d[_0x38bc83(0x315)]()+0x1:0x0,_0x5c55da=_0x72bb5d[_0x38bc83(0x20f)]()>=0x0?_0x72bb5d[_0x38bc83(0x20f)]()+0x1:0x0;for(let _0x40b7c7=0x0;_0x40b7c7<_0x154ea3;_0x40b7c7++){for(let _0x4cdbb8=0x0;_0x4cdbb8<_0x5c55da;_0x4cdbb8++){const _0x16fb51={...(_0x34bc6b=(_0x4cfb8b=_0x72bb5d[_0x38bc83(0x3b3)])==null?void 0x0:_0x4cfb8b[_0x40b7c7])==null?void 0x0:_0x34bc6b[_0x4cdbb8]},_0x4feae0=(_0xf2d7b8=_0x1eacae[_0x4cdbb8])==null?void 0x0:_0xf2d7b8['tableFieldId'],_0x278b58=_0x4820a1[_0x4feae0],_0x94a07d=_0x4efa6e[_0x4feae0];_0x16fb51&&(_0x16fb51['v']=_0x99791(_0x16fb51,!0x1,_0x278b58,_0x1b5228));let _0x7edad7;_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7]['level']===_0x72bb5d[_0x38bc83(0x37f)]()?_0x7edad7=_0x1ed179[_0x38bc83(0x374)]:_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7][_0x38bc83(0x37d)]?_0x7edad7=_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7][_0x38bc83(0x2c4)]===0x0?_0x1ed179['grandTotal']:_0x1ed179['subTotalStyle']:_0x7edad7=_0x1ed179[_0x38bc83(0x47e)],_0x278b58&&(_0x7edad7={..._0x7edad7,'n':{'pattern':_0x278b58}}),_0x9f36e2[_0x38bc83(0x388)](_0x40b7c7+_0x44daf2,_0x4cdbb8+_0xd9f5ef,_0x111915(_0x1afdc0,_0x16fb51,_0x7edad7,_0x94a07d));}_0x72bb5d['info'][_0x40b7c7]&&(_0x5b070b[''+(_0x40b7c7+_0x44daf2)]=_0x72bb5d['info'][_0x40b7c7]),_0x72bb5d['headerMap'][_0x40b7c7]&&(_0x2f51bd[''+(_0x40b7c7+_0xd9f5ef)]=_0x72bb5d['headerMap'][_0x40b7c7]);}const _0x106505=_0x3e4026[_0x38bc83(0x46e)](),_0xfb2ae1=_0x3e4026[_0x38bc83(0x37f)]();for(let _0x475f1e=0x0;_0x475f1e<_0x106505;_0x475f1e++)for(let _0x165cef=0x0;_0x165cef<_0xfb2ae1;_0x165cef++){const _0x39f80e={...(_0x23e90b=(_0x3cf1ae=_0x3e4026[_0x38bc83(0x3b3)])==null?void 0x0:_0x3cf1ae[_0x475f1e])==null?void 0x0:_0x23e90b[_0x165cef]};let _0x28d022;_0x72bb5d['info'][_0x475f1e][_0x38bc83(0x37d)]?_0x28d022=_0x72bb5d[_0x38bc83(0x34c)][_0x475f1e][_0x38bc83(0x2c4)]===0x0?_0x1ed179[_0x38bc83(0x243)]:_0x1ed179[_0x38bc83(0x483)]:_0x28d022=_0x1ed179[_0x38bc83(0x197)];const _0x6ba2fb=_0x72bb5d[_0x38bc83(0x34c)][_0x475f1e][_0x38bc83(0x29c)],_0x5da589=_0x518d5a[_0x38bc83(0x34c)][_0x165cef]['valueIndex'],_0x1748b1=Math[_0x38bc83(0x275)](_0x6ba2fb,_0x5da589),_0x5e5657=_0x241096[_0x38bc83(0x3b6)][_0x38bc83(0x2a8)]['concat']();let _0x172e0b='';_0x1748b1<0x0?_0x172e0b=(_0x83d8c2=_0x5e5657[0x0])!=null?_0x83d8c2:'':_0x172e0b=(_0x3bbc7b=_0x5e5657[_0x1748b1])!=null?_0x3bbc7b:'';const _0x18159d=_0x4820a1[_0x172e0b];_0x18159d&&(_0x28d022={..._0x28d022,'n':{'pattern':_0x18159d}}),_0x9f36e2[_0x38bc83(0x388)](_0x475f1e+_0x44daf2,_0x165cef+_0x494746,_0x111915(_0x1afdc0,_0x39f80e,_0x28d022));}return{'valueMatrix':_0x9f36e2,'rowInfo':_0x5b070b,'colInfo':_0x2af582,'cornerInfo':_0x1e50ac,'rowHeaderMap':_0x2f51bd,'colHeaderMap':_0x1b6dd7};};function _0x99791(_0x346ed0,_0x28b49f,_0x54abbe,_0x1e96aa){const _0x3f1959=_0x5d1072;let _0x3f54fa=_0x346ed0['v'];_0x28b49f&&(_0x3f54fa=''+_0x1e96aa[_0x3f1959(0x37a)]);const _0x3055a8=_0x346ed0['t']&&(_0x346ed0['t']&_0x2eef51['PivotViewCellValueTypeEnum']['blank'])>0x0;_0x3055a8&&(_0x3f54fa=''+_0x1e96aa['sheets-pivot.blank']);const _0x5bd67f=_0x346ed0['t']&&(_0x346ed0['t']&_0x2eef51[_0x3f1959(0x3e3)]['other'])>0x0;if(_0x5bd67f&&(_0x3f54fa=''+_0x1e96aa[_0x3f1959(0x258)]),_0x346ed0['s']===_0x2eef51['PivotCellStyleTypeEnum'][_0x3f1959(0x24e)]){let _0x622b8e=_0x3f54fa,_0x1b1df0='';_0x2eef51['isPrefixValue'](_0x3f54fa)&&(_0x622b8e=_0x3f54fa[_0x3f1959(0x2ee)],_0x1b1df0=_0x3f54fa['value']);const _0x40ba30=_0x54abbe&&!_0x3055a8&&!_0x5bd67f?_0x374f23['numfmt']['format'](_0x54abbe,Number(_0x622b8e)):_0x622b8e;_0x1b1df0?_0x3f54fa=_0x40ba30+'\x20'+_0x1b1df0:_0x3f54fa=_0x40ba30+'\x20'+_0x1e96aa[_0x3f1959(0x17d)];}else _0x346ed0['s']===_0x2eef51[_0x3f1959(0x421)]['GrandTotal']&&(_0x3f54fa=_0x3f54fa+'\x20'+_0x1e96aa[_0x3f1959(0x21a)]);return _0x3f54fa;}function _0x9bc11a(_0xbd02ea){const _0x541276=_0x5d1072;if(_0x2eef51['isErrorValue'](_0xbd02ea)){const {errorType:_0x2cb0b1}=_0xbd02ea;switch(_0x2cb0b1){case _0x2eef51[_0x541276(0x1df)][_0x541276(0x398)]:return _0x925485[_0x541276(0x466)][_0x541276(0x414)];case _0x2eef51[_0x541276(0x1df)]['NotNumber']:return _0x925485[_0x541276(0x466)][_0x541276(0x2a1)];case _0x2eef51[_0x541276(0x1df)][_0x541276(0x25e)]:return _0x925485[_0x541276(0x466)][_0x541276(0x198)];case _0x2eef51['PivotErrorTypeEnum'][_0x541276(0x487)]:return _0x925485['ErrorType']['NAME'];case _0x2eef51[_0x541276(0x1df)][_0x541276(0x40a)]:return _0x925485[_0x541276(0x466)]['REF'];}}return _0xbd02ea;}function _0x227f31(_0x4fe17b,_0x590f18,_0x1b85c4=!0x1,_0x4ce5f8=!0x1){const _0x5a4dc8=_0x5d1072,{data:_0x1aaac5}=_0x590f18,_0x609f23=_0x590f18['getRowCount'](),_0x1b5e5a=_0x590f18[_0x5a4dc8(0x37f)]();if(_0x609f23<=0x0||_0x1b5e5a<=0x0)return[];const _0x2cc976=_0x590f18['getLastCol'](),_0x1a6f21=_0x590f18[_0x5a4dc8(0x315)](),_0x5605cd=_0x4ce5f8?_0x1a6f21>=0x0?_0x1a6f21+0x1:0x0:_0x609f23,_0x50f335=_0x4ce5f8?_0x2cc976>=0x0?_0x2cc976+0x1:0x0:_0x1b5e5a,{row:_0x424a0d,col:_0x3e3d0b}=_0x4fe17b,_0x190354=_0x424a0d,_0x302a2d=_0x3e3d0b;if(_0x1b85c4){const _0x731514=[];for(const [_0x19c163,_0x5a5f52]of Object[_0x5a4dc8(0x38d)](_0x1aaac5))for(const [_0x4eee32,_0x1e3fc5]of Object['entries'](_0x5a5f52))_0x731514[_0x5a4dc8(0x27b)](_0x374f23[_0x5a4dc8(0x3d6)](_0x190354+Number(_0x19c163),_0x302a2d+Number(_0x4eee32)));return _0x731514;}else{const _0xe2f5e1=_0x4ce5f8?_0x5605cd>0x0?0x1:0x0:0x1,_0x4cb8a2=_0x4ce5f8?_0x50f335>0x0?0x1:0x0:0x1,_0x40d920=_0x424a0d+_0x5605cd-_0xe2f5e1,_0x548765=_0x3e3d0b+_0x50f335-_0x4cb8a2;return[{'startRow':_0x190354,'startColumn':_0x302a2d,'endRow':_0x40d920,'endColumn':_0x548765}];}}const _0x1e657c=_0x5d1072(0x2f9),_0x2e78bd=_0x5d1072(0x3c3);var _0x5370e2=(_0xc8966a=>(_0xc8966a[_0x5d1072(0x2f1)]='filter',_0xc8966a[_0x5d1072(0x232)]='panel',_0xc8966a[_0x5d1072(0x35c)]=_0x5d1072(0x3e7),_0xc8966a[_0x5d1072(0x231)]='AddPivotTableWithConfig',_0xc8966a[_0x5d1072(0x358)]='addPivotTable',_0xc8966a[_0x5d1072(0x3a0)]='movePivotField',_0xc8966a[_0x5d1072(0x32f)]=_0x5d1072(0x3ac),_0xc8966a[_0x5d1072(0x2f6)]='setPivotCollapse',_0xc8966a['SetPivotFilter']='setPivotFilter',_0xc8966a[_0x5d1072(0x334)]='setPivotSort',_0xc8966a[_0x5d1072(0x46b)]=_0x5d1072(0x289),_0xc8966a['UpdatePivotSource']=_0x5d1072(0x26e),_0xc8966a[_0x5d1072(0x228)]=_0x5d1072(0x3ed),_0xc8966a[_0x5d1072(0x42f)]='drillDown',_0xc8966a[_0x5d1072(0x47d)]=_0x5d1072(0x426),_0xc8966a[_0x5d1072(0x267)]=_0x5d1072(0x47b),_0xc8966a[_0x5d1072(0x305)]='resetPivotTable',_0xc8966a))(_0x5370e2||{});const _0x283503={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x5d1072(0x2c2),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x5d1072(0x32c),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x5d1072(0x463),'sheets-pivot.countName':_0x5d1072(0x2aa),'sheets-pivot.countNumsName':_0x5d1072(0x2aa),'sheets-pivot.maxName':_0x5d1072(0x27d),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x5d1072(0x1ce),'sheets-pivot.stdDevpName':_0x5d1072(0x251),'sheets-pivot.sumName':_0x5d1072(0x2e1),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x5d1072(0x375),'sheets-pivot.subTotal':_0x5d1072(0x24e),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x5d1072(0x306),'sheets-pivot.blank':_0x5d1072(0x1b7),'sheets-pivot.other':_0x5d1072(0x44d),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},_0x3f9a5f={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x460ff6=_0x374f23[_0x5d1072(0x34a)](_0x5d1072(0x480)),_0x1b27ae=_0x374f23[_0x5d1072(0x1f8)](_0x5d1072(0x27e));var _0x5493f6=(_0x5769d9=>(_0x5769d9[_0x5d1072(0x346)]='add',_0x5769d9[_0x5d1072(0x2af)]='delete',_0x5769d9[_0x5d1072(0x33f)]=_0x5d1072(0x33f),_0x5769d9))(_0x5493f6||{}),_0x5ae422=(_0x228cb0=>(_0x228cb0[_0x5d1072(0x395)]='add',_0x228cb0[_0x5d1072(0x332)]=_0x5d1072(0x3b5),_0x228cb0[_0x5d1072(0x36a)]=_0x5d1072(0x2af),_0x228cb0))(_0x5ae422||{});const _0x23d358={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x38eba3={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x3bd),'handler':()=>!0x0},_0x4d7335={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x306833={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':_0x5d1072(0x240),'handler':()=>!0x0},_0x4a9d2d={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0};var _0x50e247=Object[_0x5d1072(0x2c5)],_0x354d08=(_0x525efa,_0x3e1a77,_0x330797,_0x1f80ae)=>{const _0x37ffe6=_0x5d1072;for(var _0x54e5b6=_0x1f80ae>0x1?void 0x0:_0x1f80ae?_0x50e247(_0x3e1a77,_0x330797):_0x3e1a77,_0x3135c3=_0x525efa[_0x37ffe6(0x468)]-0x1,_0x6bea67;_0x3135c3>=0x0;_0x3135c3--)(_0x6bea67=_0x525efa[_0x3135c3])&&(_0x54e5b6=_0x6bea67(_0x54e5b6)||_0x54e5b6);return _0x54e5b6;},_0x472406=(_0x359a8b,_0x38367b)=>(_0x1dc5a6,_0x51bd5a)=>_0x38367b(_0x1dc5a6,_0x51bd5a,_0x359a8b);_0x1cc2c4[_0x5d1072(0x333)]=class extends _0x374f23['Disposable']{constructor(_0x33584b){const _0xc6aac1=_0x5d1072;super(),_0x1e0b19(this,_0xc6aac1(0x323),new Map()),this[_0xc6aac1(0x454)]=_0x33584b;}['handleAsyncResponse'](_0x1c3a4c){const _0x4c48ce=_0x5d1072,{version:_0xff65cb}=_0x1c3a4c,_0x5b8983=this[_0x4c48ce(0x323)]['get'](_0xff65cb);_0x5b8983&&(_0x5b8983(_0x1c3a4c),this[_0x4c48ce(0x323)]['delete'](_0xff65cb));}[_0x5d1072(0x291)](_0x405f52){return new Promise((_0x37a999,_0x1b3f73)=>{const _0x30a6db=_0x1019,_0xb7e512=this['_generateUniqueVersion']();this[_0x30a6db(0x323)]['set'](_0xb7e512,_0x37a999),this[_0x30a6db(0x454)][_0x30a6db(0x17c)](_0x23d358['id'],{'version':_0xb7e512,..._0x405f52},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x35b69e=_0x5d1072;return Math['random']()[_0x35b69e(0x17f)](0x24)[_0x35b69e(0x3c7)](0x2,0x10);}},_0x1cc2c4['SheetsPivotRPCService']=_0x354d08([_0x472406(0x0,_0x374f23['Inject'](_0x374f23['ICommandService']))],_0x1cc2c4[_0x5d1072(0x333)]);const _0x6b9aa1={0x0:'w',0x1:'s',0x2:'F',0x3:'i',0x4:'9',0x5:'a',0x6:'h',0x7:'1',0x8:'D',0x9:'S','C':'0','u':'2','l':'3','X':'4','v':'5','T':'6','Q':'7','n':'8','b':'b','c':'c','Z':'d','U':'e','x':'f','K':'g','h':'j','P':'k','t':'l','g':'m','M':'n','z':'o','e':'p','G':'q','q':'r','o':'t','R':'u','w':'v','s':'x','I':'y','J':'z','Y':'A','W':'B','F':'C','i':'E','a':'G','D':'H','f':'I','N':'J','m':'K','H':'L','V':'M','y':'N','A':'O','p':'P','B':'Q','O':'R','L':'T','S':'U','k':'V','E':'W','d':'X','j':'Y','r':'Z'},_0x137d34=_0x5d1072(0x264),_0x38d7ab=_0x4b4e65=>{const _0x5931d7=_0x5d1072;var _0x1f6ad2;return((_0x1f6ad2=_0x4b4e65[_0x5931d7(0x394)])==null?void 0x0:_0x1f6ad2['dataStream']['replace'](/\r\n$/,''))||'';};class _0x1d59b3 extends _0x2eef51[_0x5d1072(0x245)]{constructor(_0x2885d5,_0x2be258){const _0x7ba286=_0x5d1072;super(),_0x1e0b19(this,_0x7ba286(0x3df),{}),_0x1e0b19(this,'_univerInstanceService'),_0x1e0b19(this,_0x7ba286(0x182)),(this[_0x7ba286(0x443)]=_0x2be258,this[_0x7ba286(0x182)]=_0x2885d5);}[_0x5d1072(0x3e9)](){const _0x4e8702=_0x5d1072;for(const _0x4e2b8b in this[_0x4e8702(0x3d1)]){const _0x56f62f=this[_0x4e8702(0x3d1)][_0x4e2b8b],_0x2f1060=_0x56f62f[_0x4e8702(0x23b)]();this[_0x4e8702(0x3df)][_0x2f1060]=_0x56f62f[_0x4e8702(0x470)]();}}[_0x5d1072(0x477)](){const _0x462cf=_0x5d1072,_0x11fbd2=this[_0x462cf(0x182)];return _0x1f8c04[_0x462cf(0x449)](_0x11fbd2);}[_0x5d1072(0x34d)](_0x9e746e){const _0x456dca=_0x5d1072,_0xb5977c=this[_0x456dca(0x3d1)][_0x9e746e][_0x456dca(0x262)];delete this[_0x456dca(0x3d1)][_0x9e746e],delete this['rangeKeyMap'][_0xb5977c];}['addDataFieldWithoutUnitInfo'](_0x2eaea1){const _0x1dfd4c=_0x5d1072;this[_0x1dfd4c(0x3d1)][_0x2eaea1[_0x1dfd4c(0x470)]()]=_0x2eaea1;}[_0x5d1072(0x38a)](_0x12900b){const _0x26e3e7=_0x5d1072;var _0x59d83d,_0xf2ad99;const _0x257214=this[_0x26e3e7(0x182)][_0x26e3e7(0x1c8)](_0x12900b);if(_0x257214){const {unitId:_0x115020,subUnitId:_0x135694}=_0x257214,_0x48fb24=(_0x59d83d=this[_0x26e3e7(0x182)][_0x26e3e7(0x458)](_0x115020,_0x135694,_0x12900b))==null?void 0x0:_0x59d83d[_0x26e3e7(0x1d7)];this['_host'][_0x26e3e7(0x400)]({'token':_0x12900b,'type':_0x5493f6['delete'],'dataRangeInfo':_0x48fb24});}(_0xf2ad99=this['getCollection'](_0x12900b))==null||_0xf2ad99[_0x26e3e7(0x259)](),delete this['collections'][_0x12900b];}[_0x5d1072(0x23b)](_0x5a46d7,_0x1c98d8){const _0x477bc3=_0x5d1072,{sheetName:_0x5d9303,unitId:_0x2df302,range:_0x5c6f3a}=_0x5a46d7,{startRow:_0x44eb02,endRow:_0xbf6d33}=_0x5c6f3a;return _0x925485[_0x477bc3(0x484)](_0x2df302,_0x5d9303,{'startRow':_0x44eb02,'endRow':_0xbf6d33,'startColumn':_0x1c98d8,'endColumn':_0x1c98d8});}[_0x5d1072(0x373)](_0x56f587){const _0x3a7bc7=_0x5d1072;return this[_0x3a7bc7(0x3d1)][this[_0x3a7bc7(0x3df)][_0x56f587]];}[_0x5d1072(0x22b)](_0x27f105,_0x16fac0){this['rangeKeyMap'][_0x27f105]=_0x16fac0;}[_0x5d1072(0x22f)](_0x1825ff,_0x291e4b){const _0x59be6b=_0x5d1072;this['rangeKeyMap'][_0x291e4b]=this[_0x59be6b(0x3df)][_0x1825ff],delete this[_0x59be6b(0x3df)][_0x1825ff];}['addCollectionByJSON'](_0x572d2f,_0x5f01db,_0x1168ea,_0x55faad){const _0x525a58=_0x5d1072,_0x4d8fe9=new _0x2eef51[(_0x525a58(0x34f))](this);_0x4d8fe9[_0x525a58(0x328)](_0x5f01db);const _0x337593=[];let _0x4b02a2=0x0;for(const _0x16d0a9 of _0x4d8fe9[_0x525a58(0x1f7)]){const _0x2134a6=this['getRangeKey'](_0x1168ea,_0x4b02a2),_0xf121cd=this[_0x525a58(0x3d1)][_0x16d0a9];_0xf121cd&&(_0xf121cd['rangeKey']=_0x2134a6,this[_0x525a58(0x22b)](_0x2134a6,_0x16d0a9),_0x337593[_0x525a58(0x27b)]({'index':_0x4b02a2,'dataField':_0xf121cd})),_0x4b02a2++;}return this['addCollection'](_0x572d2f,_0x4d8fe9,_0x1168ea,_0x55faad),{'collection':_0x4d8fe9,'updateDataFieldList':_0x337593};}[_0x5d1072(0x2cd)](_0x2b0584,_0x897d){const _0x289439=_0x5d1072;return _0x2b0584['rangeType']===_0x374f23[_0x289439(0x1e6)][_0x289439(0x20a)]?{'startRow':0x0,'startColumn':_0x2b0584[_0x289439(0x3b9)],'endRow':_0x897d[_0x289439(0x46e)]()-0x1,'endColumn':_0x2b0584[_0x289439(0x217)]}:{'startRow':_0x2b0584[_0x289439(0x378)],'startColumn':_0x2b0584[_0x289439(0x3b9)],'endRow':_0x2b0584[_0x289439(0x3a2)],'endColumn':_0x2b0584[_0x289439(0x217)]};}[_0x5d1072(0x27c)](_0xc97c98){const _0x2dd791=_0x5d1072,{sheetName:_0x846260,range:_0xa9a8e2}=_0xc97c98,_0x3ca84e=this[_0x2dd791(0x443)][_0x2dd791(0x2fb)](_0x374f23[_0x2dd791(0x1e8)]['UNIVER_SHEET']),_0x35c98f=_0x3ca84e[_0x2dd791(0x404)](_0x846260),_0xf071c9=_0x35c98f[_0x2dd791(0x1b2)](),{startColumn:_0x3a3e18,startRow:_0x1c11de,endColumn:_0x18650a}=this[_0x2dd791(0x2cd)](_0xa9a8e2,_0x35c98f),_0x4de529=_0x3ca84e[_0x2dd791(0x26a)](),_0x4ad1cb=new _0x2eef51[(_0x2dd791(0x34f))](this);_0x4ad1cb[_0x2dd791(0x406)](_0xc97c98);const _0xb9624a=[],_0x5f0db4={};for(let _0x173641=_0x3a3e18;_0x173641<=_0x18650a;_0x173641++){const _0x2d2586=_0xf071c9[_0x2dd791(0x216)](_0x1c11de,_0x173641),_0xe5130c=this[_0x2dd791(0x23b)](_0xc97c98,_0x173641),_0x26dcd2=this['getDataFieldByRangeKey'](_0xe5130c);if(_0x26dcd2)_0x4ad1cb[_0x2dd791(0x34b)](_0x26dcd2[_0x2dd791(0x470)](),_0x26dcd2['getName']());else{const _0x353d91=this[_0x2dd791(0x1a6)]();let _0x1b1311=this[_0x2dd791(0x25b)](_0x2d2586,_0x4de529,_0x5f0db4);_0x2eef51['isDateValue'](_0x1b1311)&&(_0x1b1311=_0x374f23['numfmt'][_0x2dd791(0x429)](_0x1b1311['f'],Number(_0x1b1311['v'])));const _0xc972f0=this[_0x2dd791(0x273)](_0x1b1311,_0x173641),_0x480c21=new _0x2eef51[(_0x2dd791(0x1a9))](_0x353d91,_0xc972f0,_0x2eef51['generateHexNumber'](0x3));_0x480c21[_0x2dd791(0x262)]=_0xe5130c,this[_0x2dd791(0x3d1)][_0x353d91]=_0x480c21,_0x4ad1cb[_0x2dd791(0x34b)](_0x353d91,_0xc972f0),_0xb9624a[_0x2dd791(0x27b)]({'index':_0x173641,'dataField':_0x480c21});}}return{'updateDataFieldList':_0xb9624a,'collection':_0x4ad1cb};}[_0x5d1072(0x242)](_0xc624fe){const _0x2b1c1b=_0x5d1072;return this['_host'][_0x2b1c1b(0x277)]()[_0x2b1c1b(0x1ca)]+'\x20'+_0x374f23[_0x2b1c1b(0x2d5)](_0xc624fe);}[_0x5d1072(0x273)](_0x122496,_0x3f626b){const _0xaa011a=_0x5d1072;return _0x122496==null||_0x122496===''?this[_0xaa011a(0x242)](_0x3f626b):String(_0x122496);}[_0x5d1072(0x43d)](_0x3d305b){return this['collections'][_0x3d305b];}[_0x5d1072(0x1d6)](_0xb311f0,_0x27415f,_0x59c10a,_0x495f34){const _0x291643=_0x5d1072;this['collections'][_0xb311f0]=_0x27415f,_0x27415f[_0x291643(0x406)](_0x59c10a),this[_0x291643(0x182)][_0x291643(0x400)]({'token':_0xb311f0,'type':_0x5493f6['add'],'dataRangeInfo':_0x59c10a,'targetCellInfo':_0x495f34});}['handleMoveRange'](_0x27722f,_0x1abb6a){const _0x497bde=_0x5d1072,_0x1e1cfe=this[_0x497bde(0x43d)](_0x27722f),_0x229c0b=_0x1e1cfe[_0x497bde(0x324)]();let _0x3b82f2=0x0;for(const _0x217d28 of _0x229c0b){const _0x347619=_0x1e1cfe['getFieldById'](_0x217d28),_0x51603a=this[_0x497bde(0x23b)](_0x1abb6a,_0x3b82f2);this['updateRangeKeyMap'](_0x347619['rangeKey'],_0x51603a),_0x3b82f2++;}}[_0x5d1072(0x338)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x2f4e18,_0x1ac73e){const _0x3fd5aa=_0x5d1072;if(this[_0x3fd5aa(0x43d)](_0x2f4e18)){const _0x4c34ca=this[_0x3fd5aa(0x412)](_0x1ac73e),_0x281f9b=[];for(const _0xe9bddc of _0x4c34ca)this[_0x3fd5aa(0x3df)][_0xe9bddc]!==void 0x0&&_0x281f9b['push'](this[_0x3fd5aa(0x3df)][_0xe9bddc]);const _0x56fc08=this[_0x3fd5aa(0x32a)](_0x2f4e18),_0x2c2890=[],_0x5d1185=new Set(_0x281f9b);for(const _0x3f8da1 of _0x56fc08)_0x5d1185[_0x3fd5aa(0x1b5)](_0x3f8da1)||_0x2c2890['push'](_0x3f8da1);return _0x2c2890;}}['getMatrixValue'](_0x23caf1,_0x19536c,_0x38a4c0,_0x5c81fb,_0x26b77e){const _0x1da6eb=_0x5d1072;return _0x19536c&&_0x19536c[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e)?_0x19536c[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e):_0x38a4c0&&_0x38a4c0[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e)?_0x38a4c0[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e):_0x23caf1[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e);}[_0x5d1072(0x246)](_0x8ded0d,_0x216e82,_0x522bbe,_0x221c34){const _0x51e26b=_0x5d1072,_0x151fba=this['dataFields'][_0x8ded0d];if(!_0x151fba)return;const {subUnitId:_0x5203ad,range:_0x305433,unitId:_0x3e6465}=_0x216e82,_0x3e3dc1=this[_0x51e26b(0x443)][_0x51e26b(0x2f2)](_0x3e6465);if(!_0x3e3dc1){console[_0x51e26b(0x3a7)](_0x51e26b(0x177));return;}const _0x8422f=_0x3e3dc1['getSheetBySheetId'](_0x5203ad),_0x40dfa6=_0x8422f[_0x51e26b(0x1b2)](),{arrayFormulaCellDataMatrix:_0x1d5e44,unitDataMatrix:_0x4a4069}=_0x221c34||{},{startRow:_0x5190cf,startColumn:_0x507810,endRow:_0x4b8db7}=this[_0x51e26b(0x2cd)](_0x305433,_0x8422f);_0x151fba[_0x51e26b(0x409)]();const _0x506404=_0x3e3dc1[_0x51e26b(0x26a)](),_0x469ff8={},_0xc164c9=this[_0x51e26b(0x292)](_0x40dfa6,_0x1d5e44,_0x4a4069,_0x5190cf,_0x507810+_0x522bbe);let _0x2e968c=this[_0x51e26b(0x25b)](_0xc164c9,_0x506404,_0x469ff8);_0x2eef51['isDateValue'](_0x2e968c)&&(_0x2e968c=_0x374f23['numfmt'][_0x51e26b(0x429)](_0x2e968c['f'],Number(_0x2e968c['v'])));const _0x2d89ff=this[_0x51e26b(0x273)](_0x2e968c,_0x507810+_0x522bbe);_0x151fba[_0x51e26b(0x1c0)](_0x2d89ff);for(let _0x2ffc26=_0x5190cf+0x1;_0x2ffc26<=_0x4b8db7;_0x2ffc26++){const _0x18768e=this[_0x51e26b(0x292)](_0x40dfa6,_0x1d5e44,_0x4a4069,_0x2ffc26,_0x507810+_0x522bbe);_0x151fba[_0x51e26b(0x43e)](this[_0x51e26b(0x25b)](_0x18768e,_0x506404,_0x469ff8),_0x2ffc26-0x1-_0x5190cf);}}[_0x5d1072(0x33a)](_0x53da28,_0x24d097,_0x3c35c8){const _0x1617d1=_0x5d1072,{subUnitId:_0x16f945,range:_0x25a593,unitId:_0x3734c8}=_0x3c35c8,_0x735312=this['_univerInstanceService'][_0x1617d1(0x2f2)](_0x3734c8);if(!_0x735312){console[_0x1617d1(0x3a7)](_0x1617d1(0x177));return;}const _0x29a2cc=_0x735312[_0x1617d1(0x317)](_0x16f945),_0x1fd4ac=_0x29a2cc[_0x1617d1(0x1b2)](),{startRow:_0x972605,startColumn:_0x4c5d97,endRow:_0x777b7a}=this[_0x1617d1(0x2cd)](_0x25a593,_0x29a2cc),_0x5a465b=_0x735312[_0x1617d1(0x26a)](),_0x5d2acf={};for(const {dataField:_0x12cadc,index:_0x477250}of _0x24d097){_0x12cadc[_0x1617d1(0x409)]();const _0x30e34=this[_0x1617d1(0x292)](_0x1fd4ac,void 0x0,void 0x0,_0x972605,_0x4c5d97+_0x477250);let _0x284915=this[_0x1617d1(0x25b)](_0x30e34,_0x5a465b,_0x5d2acf);_0x2eef51[_0x1617d1(0x28e)](_0x284915)&&(_0x284915=_0x374f23[_0x1617d1(0x1c9)][_0x1617d1(0x429)](_0x284915['f'],Number(_0x284915['v'])));const _0x2b93f5=this[_0x1617d1(0x273)](_0x284915,_0x4c5d97+_0x477250);_0x12cadc[_0x1617d1(0x1c0)](_0x2b93f5);}_0x53da28['updateAllDisplayName']();for(let _0x471c44=_0x972605+0x1;_0x471c44<=_0x777b7a;_0x471c44++)for(const {index:_0x145eed,dataField:_0x2f1f59}of _0x24d097){const _0x344e23=_0x1fd4ac['getValue'](_0x471c44,_0x4c5d97+_0x145eed);_0x2f1f59[_0x1617d1(0x43e)](this['adjustSheetCellData'](_0x344e23,_0x5a465b,_0x5d2acf),_0x471c44-0x1-_0x972605);}_0x53da28['setDataRecordCount'](_0x777b7a-_0x972605);}['getRangeKeyList'](_0x484313){const _0x314f9a=_0x5d1072,{range:_0x5e82c9}=_0x484313,{startColumn:_0x589215,endColumn:_0x54e77c}=_0x5e82c9,_0x418a73=[];for(let _0xad4e73=_0x589215;_0xad4e73<=_0x54e77c;_0xad4e73++)_0x418a73[_0x314f9a(0x27b)](this['getRangeKey'](_0x484313,_0xad4e73));return _0x418a73;}['adjustSheetCellData'](_0x1b17cc,_0x5a0c46,_0x3a4a9b){const _0x195024=_0x5d1072;if(_0x1b17cc){const {s:_0x2483a1,v:_0x3ebaff,t:_0x4a0f93,p:_0x1772e1}=_0x1b17cc;if(_0x1772e1)return _0x38d7ab(_0x1772e1);const _0x1b3625=_0x5a0c46[_0x195024(0x411)](_0x2483a1);if(_0x1b3625&&_0x4a0f93===_0x374f23[_0x195024(0x278)]['NUMBER']&&_0x1b3625['n']){const {pattern:_0x4960bb}=_0x1b3625['n'];_0x3a4a9b[_0x4960bb]||(_0x3a4a9b[_0x4960bb]=_0x374f23['numfmt']['getFormatInfo'](_0x4960bb));const _0x25f90d=_0x3a4a9b[_0x4960bb],_0x3d50ba=_0x25f90d[_0x195024(0x380)];if(_0x25f90d[_0x195024(0x488)])return String(_0x3ebaff);if(_0x3d50ba)return{'v':_0x3ebaff,'f':_0x4960bb};}if(_0x4a0f93===_0x374f23['CellValueType'][_0x195024(0x1f4)])return Number(_0x3ebaff);if(_0x4a0f93===_0x374f23[_0x195024(0x278)]['STRING']||_0x4a0f93===_0x374f23[_0x195024(0x278)][_0x195024(0x1d0)])return String(_0x3ebaff);if(_0x4a0f93===void 0x0){const _0x440df7=Number(_0x3ebaff);if(!Number[_0x195024(0x2cb)](_0x440df7)&&String(_0x440df7)===_0x3ebaff)return _0x440df7;}return _0x3ebaff!=null?_0x3ebaff:null;}else return null;}[_0x5d1072(0x2f0)](_0xc83cb9){const _0x771f6a=_0x5d1072,{sheetName:_0xfca6f8,range:_0x390ad5,unitId:_0x38e964}=_0xc83cb9,_0x36bb3f=this[_0x771f6a(0x443)][_0x771f6a(0x2f2)](_0x38e964);if(!_0x36bb3f)return console['error'](_0x771f6a(0x177)),{'header':[],'data':[]};const _0x1a6a85=_0x36bb3f[_0x771f6a(0x404)](_0xfca6f8),_0x40b0d2=_0x1a6a85[_0x771f6a(0x1b2)](),{startRow:_0x59aea5,startColumn:_0x550440,endRow:_0x51845d,endColumn:_0x38de39}=this[_0x771f6a(0x2cd)](_0x390ad5,_0x1a6a85),_0x37ab76=_0x36bb3f[_0x771f6a(0x26a)](),_0xea2b00=[],_0x286a83=[],_0x31ac17={};for(let _0x3ce9a0=_0x59aea5;_0x3ce9a0<=_0x51845d;_0x3ce9a0++){const _0x4cf2fe=[];for(let _0x4f9bad=_0x550440;_0x4f9bad<=_0x38de39;_0x4f9bad++){const _0x1f789c=_0x40b0d2[_0x771f6a(0x216)](_0x3ce9a0,_0x4f9bad);_0x3ce9a0===_0x59aea5?_0xea2b00[_0x771f6a(0x27b)](_0x1f789c==null?null:String(_0x1f789c['v'])):_0x4cf2fe[_0x771f6a(0x27b)](this[_0x771f6a(0x25b)](_0x1f789c,_0x37ab76,_0x31ac17));}_0x286a83[_0x771f6a(0x27b)](_0x4cf2fe);}return{'header':_0xea2b00,'data':_0x286a83};}['toJSON'](){const _0x6986d2=_0x5d1072;return super[_0x6986d2(0x3ff)]();}[_0x5d1072(0x328)](_0x1e37fa){const _0x4e037f=_0x5d1072;super[_0x4e037f(0x328)](_0x1e37fa),this[_0x4e037f(0x3e9)]();}[_0x5d1072(0x259)](){super['dispose'](),this['rangeKeyMap']={},this['_host']=null;}}const _0x1afa42=_0x3220a6=>{const _0x41446c=_0x5d1072,{targetCellInfo:_0x1bb6fe}=_0x3220a6,{matrixCache:_0x5842ac,rangesCache:_0x5e1845}=_0x36fb91({'filter':_0x41446c(0x2f1),'row':_0x41446c(0x415),'column':_0x41446c(0x403),'values':'Values'},_0x1bb6fe),_0x499a10=new _0x374f23[(_0x41446c(0x33b))]();return _0x5842ac[_0x41446c(0x1d1)]((_0x1268fb,_0x2c43e9,_0x372670)=>{const _0x16c9ee=_0x41446c;_0x499a10[_0x16c9ee(0x388)](_0x1268fb,_0x2c43e9,_0x372670);}),{'matrix':_0x499a10,'rangesCache':_0x5e1845};},_0x1806da=_0x52b6f4=>{const _0x83f007=_0x5d1072;let _0x375fb4;if(_0x52b6f4!=null&&_0x52b6f4['v']||(_0x52b6f4==null?void 0x0:_0x52b6f4['v'])===0x0){_0x375fb4||(_0x375fb4={});const _0x5afc54=_0x9bc11a(_0x52b6f4['v']);typeof _0x5afc54=='number'?_0x375fb4['t']=_0x374f23['CellValueType'][_0x83f007(0x1f4)]:typeof _0x5afc54==_0x83f007(0x436)&&(_0x375fb4['t']=_0x374f23[_0x83f007(0x278)]['STRING']),_0x375fb4['v']=_0x5afc54;}return _0x375fb4;},_0x59e2c1=(_0x2bb4b4,_0x4d6af7,_0x2831ef)=>{const _0x40eb8=_0x5d1072;var _0x3a84d5,_0x1be4f9,_0x16f879,_0x4b3b1b,_0x2d4dbf,_0x35e7ca,_0x99d1a3,_0x58c6b6,_0x227458,_0x46afae,_0x2f77cd,_0x4ce363;const {cornerView:_0x23723c,rowView:_0x22a422,colView:_0x506934,dataView:_0x4873f1,pageView:_0x187036,formatMap:_0x4e8af3}=_0x2bb4b4,{row:_0x216415,col:_0x5a0642}=_0x4d6af7,_0x46e2fe=new _0x374f23[(_0x40eb8(0x33b))]();let _0x3a62b6=_0x216415,_0x5195ce=_0x5a0642;Object[_0x40eb8(0x3d8)](_0x187036[_0x40eb8(0x3b3)])['forEach'](_0x334735=>{const _0x395eed=_0x40eb8;Object[_0x395eed(0x3d8)](_0x187036[_0x395eed(0x3b3)][Number(_0x334735)])[_0x395eed(0x274)](_0x5575a4=>{const _0x1ced46=_0x395eed,_0x20d571={..._0x187036[_0x1ced46(0x3b3)][Number(_0x334735)][Number(_0x5575a4)]};_0x46e2fe[_0x1ced46(0x388)](Number(_0x334735)+_0x3a62b6,Number(_0x5575a4)+_0x5195ce,_0x1806da(_0x20d571));});});const _0x348f6d=Object[_0x40eb8(0x3d8)](_0x187036[_0x40eb8(0x3b3)])[_0x40eb8(0x468)];_0x3a62b6+=_0x348f6d+(_0x348f6d?_0x9545db:0x0);const _0x33db8c=_0x23723c[_0x40eb8(0x46e)](),_0xb3d1c3=_0x23723c[_0x40eb8(0x37f)]();for(let _0x4759a9=0x0;_0x4759a9<_0x33db8c;_0x4759a9++)for(let _0x158ba2=0x0;_0x158ba2<_0xb3d1c3;_0x158ba2++){const _0x363254={...(_0x1be4f9=(_0x3a84d5=_0x23723c[_0x40eb8(0x3b3)])==null?void 0x0:_0x3a84d5[_0x4759a9])==null?void 0x0:_0x1be4f9[_0x158ba2]};_0x363254&&((_0x16f879=_0x22a422[_0x40eb8(0x271)][_0x158ba2])!=null&&_0x16f879[_0x40eb8(0x40e)])&&_0x158ba2===_0xb3d1c3-0x1&&_0x4759a9===_0x33db8c-0x1&&(_0x363254['v']=''+_0x2831ef[_0x40eb8(0x37a)]),_0x46e2fe['setValue'](_0x4759a9+_0x3a62b6,_0x158ba2+_0x5195ce,_0x1806da(_0x363254));}_0x5195ce+=_0xb3d1c3;const _0x440803=_0x506934[_0x40eb8(0x271)],_0x2cea94=_0x506934[_0x40eb8(0x315)]()>=0x0?_0x506934['getLastRow']()+0x1:0x0,_0x3b8293=_0x506934[_0x40eb8(0x20f)]()>=0x0?_0x506934[_0x40eb8(0x20f)]()+0x1:0x0;for(let _0x26033f=0x0;_0x26033f<_0x3b8293;_0x26033f++)for(let _0x13842d=0x0;_0x13842d<_0x2cea94;_0x13842d++){const _0x407a20={...(_0x2d4dbf=(_0x4b3b1b=_0x506934[_0x40eb8(0x3b3)])==null?void 0x0:_0x4b3b1b[_0x26033f])==null?void 0x0:_0x2d4dbf[_0x13842d]},_0x5aaf2e=(_0x35e7ca=_0x440803[_0x26033f])==null?void 0x0:_0x35e7ca[_0x40eb8(0x44b)],_0x376b85=_0x4e8af3[_0x5aaf2e];_0x407a20&&(_0x407a20['v']=_0x99791(_0x407a20,_0x26033f===0x0&&((_0x99d1a3=_0x506934[_0x40eb8(0x351)](_0x13842d+0x1))==null?void 0x0:_0x99d1a3[_0x40eb8(0x40e)]),_0x376b85,_0x2831ef)),_0x46e2fe['setValue'](_0x26033f+_0x3a62b6,_0x13842d+_0x5195ce,_0x1806da(_0x407a20));}_0x3a62b6+=_0x33db8c;const _0x31b665=_0x22a422[_0x40eb8(0x271)],_0x2a3fa7=_0x22a422[_0x40eb8(0x315)]()>=0x0?_0x22a422[_0x40eb8(0x315)]()+0x1:0x0,_0x35db7f=_0x22a422['getLastCol']()>=0x0?_0x22a422[_0x40eb8(0x20f)]()+0x1:0x0;for(let _0x3a6962=0x0;_0x3a6962<_0x2a3fa7;_0x3a6962++)for(let _0x134a86=0x0;_0x134a86<_0x35db7f;_0x134a86++){const _0xf96274={...(_0x227458=(_0x58c6b6=_0x22a422[_0x40eb8(0x3b3)])==null?void 0x0:_0x58c6b6[_0x3a6962])==null?void 0x0:_0x227458[_0x134a86]},_0xd9e537=(_0x46afae=_0x31b665[_0x134a86])==null?void 0x0:_0x46afae[_0x40eb8(0x44b)],_0x3d5d88=_0x4e8af3[_0xd9e537];_0xf96274&&(_0xf96274['v']=_0x99791(_0xf96274,!0x1,_0x3d5d88,_0x2831ef)),_0x46e2fe[_0x40eb8(0x388)](_0x3a6962+_0x3a62b6,_0x134a86+_0x5a0642,_0x1806da(_0xf96274));}const _0x249a18=_0x4873f1[_0x40eb8(0x46e)](),_0x22958b=_0x4873f1[_0x40eb8(0x37f)]();for(let _0x2348d4=0x0;_0x2348d4<_0x249a18;_0x2348d4++)for(let _0x4a9e13=0x0;_0x4a9e13<_0x22958b;_0x4a9e13++){const _0x42077a={...(_0x4ce363=(_0x2f77cd=_0x4873f1[_0x40eb8(0x3b3)])==null?void 0x0:_0x2f77cd[_0x2348d4])==null?void 0x0:_0x4ce363[_0x4a9e13]};_0x46e2fe[_0x40eb8(0x388)](_0x2348d4+_0x3a62b6,_0x4a9e13+_0x5195ce,_0x1806da(_0x42077a));}return _0x46e2fe;},_0x50fc8d=_0x7ca175=>{const _0x3028bf=_0x5d1072,{view:_0x598ec3,targetCellInfo:_0x2b4fb7,isEmpty:_0x284e74,textInfo:_0x57378f}=_0x7ca175;if(_0x284e74)return _0x1afa42(_0x7ca175);const {pageView:_0x5bb206,cornerView:_0x80d49d,rowView:_0x37124d,colView:_0x44321c,dataView:_0x5b7f3a}=_0x598ec3,_0x17a52d=_0x227f31(_0x2b4fb7,_0x5bb206,!0x0),_0x2f55bb=_0x5bb206[_0x3028bf(0x18f)]>=0x0?_0x5bb206['lastRow']+0x1:0x0,_0x5a328c=_0x80d49d['getRowCount'](),_0x6e8171=_0x80d49d['getColCount'](),_0x4e49f3=_0x17a52d[_0x3028bf(0x468)]>0x0?_0x9545db:0x0,_0x4ee248=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3,'col':_0x2b4fb7[_0x3028bf(0x434)]},_0x80d49d,!0x1,!0x1),_0x5c9cfa=_0x227f31({'row':_0x2b4fb7['row']+_0x2f55bb+_0x4e49f3+_0x5a328c,'col':_0x2b4fb7[_0x3028bf(0x434)]},_0x37124d,!0x1,!0x0),_0x562103=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3,'col':_0x2b4fb7[_0x3028bf(0x434)]+_0x6e8171},_0x44321c,!0x1,!0x0),_0x205ceb=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3+_0x5a328c,'col':_0x2b4fb7[_0x3028bf(0x434)]+_0x6e8171},_0x5b7f3a,!0x1,!0x1),_0x5f22fc={'rowRanges':_0x5c9cfa,'colRanges':_0x562103,'cornerRanges':_0x4ee248,'dataRanges':_0x205ceb,'pageRanges':_0x17a52d};return{'matrix':_0x59e2c1(_0x598ec3,_0x2b4fb7,_0x57378f),'rangesCache':_0x5f22fc};};var _0x3be594=Object[_0x5d1072(0x2c5)],_0x3ef864=(_0x306b1b,_0x28c0d6,_0x5c9b74,_0x5c6580)=>{const _0x1f837a=_0x5d1072;for(var _0xbd44a0=_0x5c6580>0x1?void 0x0:_0x5c6580?_0x3be594(_0x28c0d6,_0x5c9b74):_0x28c0d6,_0x19763c=_0x306b1b[_0x1f837a(0x468)]-0x1,_0x482f59;_0x19763c>=0x0;_0x19763c--)(_0x482f59=_0x306b1b[_0x19763c])&&(_0xbd44a0=_0x482f59(_0xbd44a0)||_0xbd44a0);return _0xbd44a0;},_0x3762a4=(_0x335708,_0x1e558e)=>(_0x5c7a6d,_0x394c57)=>_0x1e558e(_0x5c7a6d,_0x394c57,_0x335708);_0x1cc2c4['SheetsPivotDataSourceModel']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x3035fc,_0x43c887,_0x3bd33b,_0x4d3047,_0x350ad){const _0x7ed3d9=_0x5d1072;super(),_0x1e0b19(this,_0x7ed3d9(0x193),new Map()),_0x1e0b19(this,_0x7ed3d9(0x476),new Map()),_0x1e0b19(this,_0x7ed3d9(0x201),new Map()),_0x1e0b19(this,'_textInfo'),_0x1e0b19(this,'_collectionChange$',new _0x1cd777[(_0x7ed3d9(0x2ac))]()),_0x1e0b19(this,_0x7ed3d9(0x28a),this[_0x7ed3d9(0x266)][_0x7ed3d9(0x3f4)]()),_0x1e0b19(this,_0x7ed3d9(0x26d),new _0x1cd777['Subject']()),_0x1e0b19(this,_0x7ed3d9(0x279),this[_0x7ed3d9(0x26d)][_0x7ed3d9(0x3f4)]()),_0x1e0b19(this,'_fieldsCollectionChange$',new _0x1cd777[(_0x7ed3d9(0x2ac))]()),_0x1e0b19(this,_0x7ed3d9(0x34e),this[_0x7ed3d9(0x253)]['asObservable']()),_0x1e0b19(this,_0x7ed3d9(0x178),new Map()),_0x1e0b19(this,_0x7ed3d9(0x38c),[]),_0x1e0b19(this,_0x7ed3d9(0x20c),new Map()),(this[_0x7ed3d9(0x42a)]=_0x3035fc,this['_univerInstanceService']=_0x43c887,this[_0x7ed3d9(0x25f)]=_0x3bd33b,this[_0x7ed3d9(0x454)]=_0x4d3047,this[_0x7ed3d9(0x2d1)]=_0x350ad,this[_0x7ed3d9(0x348)]());}[_0x5d1072(0x277)](){const _0x4327d2=_0x5d1072;return this[_0x4327d2(0x187)]?this['_textInfo']:_0x283503;}[_0x5d1072(0x340)](_0x426eed){const _0x315317=_0x5d1072;this[_0x315317(0x187)]=_0x426eed;}[_0x5d1072(0x2f8)](_0x508692){const _0x1356af=_0x5d1072;var _0xc9f310;const {from:_0x34352e,to:_0x1ee4e1,unitId:_0x2e0686,fromRange:_0x15a353,toRange:_0x1826b0}=_0x508692;if(_0x34352e&&_0x1ee4e1){const _0x33693d=this['getDataFieldManager'](_0x2e0686),_0x4c196e=this[_0x1356af(0x193)]['get'](_0x2e0686),_0x3755b7=(_0xc9f310=this['_univerInstanceService']['getUnit'](_0x2e0686))==null?void 0x0:_0xc9f310[_0x1356af(0x317)](_0x1ee4e1[_0x1356af(0x294)]);if(!_0x4c196e||!_0x3755b7)return;const _0x4a7ec7=_0x3755b7==null?void 0x0:_0x3755b7[_0x1356af(0x353)]();for(const [_0x3dae26,_0x28f7d1]of _0x4c196e['entries']())for(const [_0x3eb11b,_0x10b7dd]of _0x28f7d1[_0x1356af(0x38d)]()){const {sourceRangeInfo:_0x5ab24c}=_0x10b7dd;if(_0x5ab24c['unitId']===_0x2e0686&&_0x5ab24c[_0x1356af(0x294)]===_0x34352e[_0x1356af(0x294)]&&_0x374f23[_0x1356af(0x236)][_0x1356af(0x447)](_0x15a353,_0x5ab24c[_0x1356af(0x3ee)])){const _0x2be409={'row':_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x378)]-_0x15a353['startRow'],'col':_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3b9)]-_0x15a353[_0x1356af(0x3b9)]},_0x411083={'unitId':_0x2e0686,'subUnitId':_0x1ee4e1['subUnitId'],'sheetName':_0x4a7ec7,'range':{'startRow':_0x1826b0[_0x1356af(0x378)]+_0x2be409[_0x1356af(0x23e)],'endRow':_0x1826b0['startRow']+_0x2be409['row']+_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3a2)]-_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x378)],'startColumn':_0x1826b0['startColumn']+_0x2be409['col'],'endColumn':_0x1826b0[_0x1356af(0x3b9)]+_0x2be409[_0x1356af(0x434)]+_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x217)]-_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3b9)]}};_0x33693d[_0x1356af(0x2f8)](_0x3eb11b,_0x411083);const _0x2e7765={..._0x10b7dd,'sourceRangeInfo':_0x411083};this[_0x1356af(0x1bf)](_0x2e0686,_0x1ee4e1['subUnitId'],_0x3eb11b,_0x2e7765),this[_0x1356af(0x400)]({'unitId':_0x2e0686,'token':_0x3eb11b,'type':_0x5493f6['update'],'oldSourceRangeInfo':_0x5ab24c,'dataRangeInfo':_0x411083,'targetCellInfo':_0x10b7dd[_0x1356af(0x357)]}),this[_0x1356af(0x1b4)]({'unitId':_0x2e0686,'subUnitId':_0x1ee4e1[_0x1356af(0x294)],'oldSubUnitId':_0x3dae26,'pivotTableId':_0x3eb11b,'pivotTableConfig':_0x2e7765,'collectionConfig':_0x33693d[_0x1356af(0x3ff)]()});}}}}[_0x5d1072(0x400)](_0x4bbc2e){const _0x47cb9f=_0x5d1072;this[_0x47cb9f(0x266)][_0x47cb9f(0x3f8)](_0x4bbc2e);}[_0x5d1072(0x367)](_0x50df3d){const _0x3f33a9=_0x5d1072;let _0x16c2c8=this[_0x3f33a9(0x178)][_0x3f33a9(0x411)](_0x50df3d);return _0x16c2c8||(_0x16c2c8=new _0x1d59b3(this,this['_univerInstanceService']),this['_dataFieldManagerCollection']['set'](_0x50df3d,_0x16c2c8)),_0x16c2c8;}['getCollection'](_0x19d085,_0x4a9c75){const _0x9edba0=_0x5d1072;return this[_0x9edba0(0x367)](_0x19d085)[_0x9edba0(0x459)][_0x4a9c75];}['getUpdateRangeDeleteIds'](_0x2b8d00,_0x4ff45e,_0x25fb57){const _0x4059fb=_0x5d1072;return this[_0x4059fb(0x367)](_0x2b8d00)[_0x4059fb(0x368)](_0x4ff45e,_0x25fb57);}[_0x5d1072(0x3d7)](_0x246a9f,_0x5921af){const _0x3fddf1=_0x5d1072;let _0x303ce2=this[_0x3fddf1(0x193)][_0x3fddf1(0x411)](_0x246a9f);_0x303ce2||(_0x303ce2=new Map(),this['_model'][_0x3fddf1(0x3b5)](_0x246a9f,_0x303ce2));let _0x50c480=_0x303ce2[_0x3fddf1(0x411)](_0x5921af);return _0x50c480||(_0x50c480=new Map(),_0x303ce2['set'](_0x5921af,_0x50c480)),_0x50c480;}['_updateModelCache'](_0x5726c3,_0x1377fa,_0x31d1e8,_0x560e83){const _0x4a08c4=_0x5d1072;this['_ensurePivotMap'](_0x5726c3,_0x1377fa)[_0x4a08c4(0x3b5)](_0x31d1e8,_0x560e83);}[_0x5d1072(0x2d6)](_0x4bbfad,_0x2d30eb,_0x1176f8){const _0x5365c6=_0x5d1072;var _0x534e11,_0x25dd51,_0x1654cf,_0x1efbe5;((_0x25dd51=(_0x534e11=this['_model'][_0x5365c6(0x411)](_0x4bbfad))==null?void 0x0:_0x534e11[_0x5365c6(0x411)](_0x2d30eb))==null?void 0x0:_0x25dd51[_0x5365c6(0x411)](_0x1176f8))&&((_0x1efbe5=(_0x1654cf=this['_model'][_0x5365c6(0x411)](_0x4bbfad))==null?void 0x0:_0x1654cf[_0x5365c6(0x411)](_0x2d30eb))==null||_0x1efbe5[_0x5365c6(0x2af)](_0x1176f8));}[_0x5d1072(0x1e9)](_0xfaaa5d,_0x467e99){const _0x3ccf71=_0x5d1072;this[_0x3ccf71(0x476)][_0x3ccf71(0x3b5)](_0xfaaa5d,_0x467e99);}[_0x5d1072(0x19a)](_0x44771b){const _0x4cb752=_0x5d1072;this[_0x4cb752(0x476)]['delete'](_0x44771b);}[_0x5d1072(0x2a6)](_0x1f90bb,_0x26009c){const _0x4b758d=_0x5d1072;let _0x46a688=this[_0x4b758d(0x201)]['get'](_0x1f90bb);_0x46a688||(_0x46a688=new Map(),this[_0x4b758d(0x201)][_0x4b758d(0x3b5)](_0x1f90bb,_0x46a688));let _0x55eb6e=_0x46a688[_0x4b758d(0x411)](_0x26009c);return _0x55eb6e||(_0x55eb6e=new Map(),_0x46a688[_0x4b758d(0x3b5)](_0x26009c,_0x55eb6e)),_0x55eb6e;}[_0x5d1072(0x1b4)](_0x4e1073){const _0x4bec35=_0x5d1072,{unitId:_0x5f76ec,subUnitId:_0x14a79a,pivotTableId:_0x1de5be,pivotTableConfig:_0x368e29,collectionConfig:_0x1d484b}=_0x4e1073,_0x44a381={'unitId':_0x5f76ec,'subUnitId':_0x14a79a,'oldSubUnitId':_0x14a79a,'pivotTableId':_0x1de5be,'pivotTableConfig':_0x368e29,'collectionConfig':_0x1d484b};this[_0x4bec35(0x454)]['executeCommand'](_0x306833['id'],_0x44a381,{'onlyLocal':!0x0});}['updateView'](_0x5f52ce,_0x21a1c6,_0x2023d6,_0xc37d98,_0x2af6c7,_0x2bca4f,_0x160b3e,_0x45a07d=!0x1){const _0x21bce8=_0x5d1072;var _0x2df02d;this['_commandService'][_0x21bce8(0x17c)](_0x4d7335['id'],{'single':{'unitId':_0x5f52ce,'subUnitId':_0x21a1c6,'type':_0x2023d6,'pivotTableId':_0xc37d98,'view':_0x2af6c7,'pivotConfig':_0x2bca4f},'collectionConfig':{[_0x5f52ce]:_0x160b3e}},{'onlyLocal':!0x0});const _0xa8bb09=!!((_0x2df02d=this[_0x21bce8(0x202)](_0xc37d98))!=null&&_0x2df02d[_0x21bce8(0x475)]()),_0x5d0069=this[_0x21bce8(0x458)](_0x5f52ce,_0x21a1c6,_0xc37d98);_0x5d0069&&this[_0x21bce8(0x3a8)]({'view':_0x2af6c7,'pivotTableId':_0xc37d98,'textInfo':this[_0x21bce8(0x277)](),'isEmpty':_0xa8bb09,'targetCellInfo':_0x5d0069[_0x21bce8(0x357)]},_0x45a07d);}[_0x5d1072(0x3a8)](_0x6d3983,_0x235854){const _0x52050d=_0x5d1072,{targetCellInfo:_0x19cbf0,pivotTableId:_0x4348da}=_0x6d3983,{unitId:_0x22d079,subUnitId:_0x446bee}=_0x19cbf0,_0x15fed7=this[_0x52050d(0x2a6)](_0x22d079,_0x446bee),_0x50ab00=_0x15fed7[_0x52050d(0x411)](_0x4348da);let _0x4b05e0,_0x2dc188;_0x50ab00&&(_0x4b05e0=_0x50ab00[_0x52050d(0x1ac)],_0x2dc188=_0x50ab00['matrix']);const {rangesCache:_0x118305,matrix:_0x366138}=_0x50fc8d(_0x6d3983);_0x15fed7['set'](_0x4348da,{'rangeCache':_0x118305,'matrix':_0x366138,'oldMatrix':_0x2dc188,'oldRangeCache':_0x4b05e0}),_0x235854||this['_viewData$'][_0x52050d(0x3f8)]({'unitId':_0x22d079,'subUnitId':_0x446bee,'pivotTableId':_0x4348da});}[_0x5d1072(0x42c)](_0x4d681e,_0x315600,_0x4de485,_0x57b68a,_0x310067){this['_updateModelCache'](_0x4d681e,_0x315600,_0x4de485,_0x310067),this['_updatePivotTableInstanceCache'](_0x4de485,_0x57b68a);}[_0x5d1072(0x46d)](_0x478461,_0x3b3f73,_0x275bce){const _0x4a2375=_0x5d1072,_0x4a658e=this[_0x4a2375(0x367)](_0x478461);_0x4a658e[_0x4a2375(0x32a)](_0x275bce)['forEach'](_0x295d31=>{_0x4a658e['deleteDataField'](_0x295d31);}),this[_0x4a2375(0x456)](_0x478461,_0x275bce),this[_0x4a2375(0x2d6)](_0x478461,_0x3b3f73,_0x275bce),this[_0x4a2375(0x19a)](_0x275bce);}[_0x5d1072(0x2e5)](_0x13f99a,_0x25fdd2,_0x396494,_0x49f1d3){const _0xd0cb3a=_0x5d1072;this[_0xd0cb3a(0x1bf)](_0x13f99a,_0x25fdd2,_0x396494,_0x49f1d3);}[_0x5d1072(0x458)](_0xdc08d4,_0x4888a7,_0x162903){const _0x57856d=_0x5d1072;var _0x563d67,_0x6c86fe;const _0x17b7bb=(_0x6c86fe=(_0x563d67=this[_0x57856d(0x193)]['get'](_0xdc08d4))==null?void 0x0:_0x563d67[_0x57856d(0x411)](_0x4888a7))==null?void 0x0:_0x6c86fe[_0x57856d(0x411)](_0x162903);if(_0x17b7bb)return _0x17b7bb;}[_0x5d1072(0x1fb)](_0x4eac5d,_0x17c2ba,_0x8358e5){const _0x2b85e5=_0x5d1072;var _0x411c9f,_0x2cdf77;const _0xace4a9=(_0x2cdf77=(_0x411c9f=this[_0x2b85e5(0x193)][_0x2b85e5(0x411)](_0x4eac5d))==null?void 0x0:_0x411c9f[_0x2b85e5(0x411)](_0x17c2ba))==null?void 0x0:_0x2cdf77['get'](_0x8358e5);if(_0xace4a9)return _0xace4a9['fieldsConfig'];}['getPivotTableInstance'](_0x24b49d){const _0x305731=_0x5d1072;return this[_0x305731(0x476)][_0x305731(0x411)](_0x24b49d);}[_0x5d1072(0x282)](_0xca391f){const _0x4b2f92=_0x5d1072;this[_0x4b2f92(0x193)]['delete'](_0xca391f);const _0x31f708=this['_dataFieldManagerCollection']['get'](_0xca391f);_0x31f708&&(_0x31f708[_0x4b2f92(0x259)](),this[_0x4b2f92(0x178)][_0x4b2f92(0x2af)](_0xca391f)),this[_0x4b2f92(0x201)][_0x4b2f92(0x2af)](_0xca391f),this['needSameDeleteModel'][_0x4b2f92(0x274)](_0x4f8242=>{const _0x2151c8=_0x4b2f92;_0x4f8242[_0x2151c8(0x282)](_0xca391f);});}[_0x5d1072(0x2b4)](_0x20e4df,_0x1933f7,_0x4b4aa3,_0x31342e){const _0x2c4c35=_0x5d1072;return this[_0x2c4c35(0x367)](_0x4b4aa3[_0x2c4c35(0x29a)])[_0x2c4c35(0x2b4)](_0x20e4df,_0x1933f7,_0x4b4aa3,_0x31342e);}[_0x5d1072(0x27c)](_0x5679da){const _0xcc0010=_0x5d1072;return this[_0xcc0010(0x367)](_0x5679da[_0xcc0010(0x29a)])['createCollectionWithDataRange'](_0x5679da);}[_0x5d1072(0x33a)](_0x3fb580,_0x3c3745,_0x47330e){const _0x5a7a20=_0x5d1072;this[_0x5a7a20(0x367)](_0x47330e['unitId'])[_0x5a7a20(0x33a)](_0x3fb580,_0x3c3745,_0x47330e);}[_0x5d1072(0x435)](_0x28e792,_0x25885d){const _0x339dce=_0x5d1072;this[_0x339dce(0x367)](_0x28e792)[_0x339dce(0x34d)](_0x25885d);}[_0x5d1072(0x456)](_0x1c78e1,_0x36bf66){const _0x58ba30=_0x5d1072;this[_0x58ba30(0x367)](_0x1c78e1)[_0x58ba30(0x38a)](_0x36bf66);}[_0x5d1072(0x239)](_0x399d48,_0x5b5f2f){const _0x1fb2b4=_0x5d1072;var _0x193b56;return(_0x193b56=this[_0x1fb2b4(0x193)]['get'](_0x399d48))==null?void 0x0:_0x193b56[_0x1fb2b4(0x411)](_0x5b5f2f);}['getTargetByPivotId'](_0x15757e){const _0x1e09e4=_0x5d1072;for(const [_0x36c284,_0x1b7595]of this[_0x1e09e4(0x193)][_0x1e09e4(0x38d)]())for(const [_0x46529d,_0x3f36ae]of _0x1b7595[_0x1e09e4(0x38d)]())if(_0x3f36ae['has'](_0x15757e))return{'unitId':_0x36c284,'subUnitId':_0x46529d};return null;}[_0x5d1072(0x2b5)](_0x583c8f,_0x406ba8,_0x1120f1,_0x349446){const _0x1aa018=_0x5d1072,_0x1841b8=this[_0x1aa018(0x2a6)](_0x583c8f,_0x406ba8);_0x349446?_0x1841b8[_0x1aa018(0x3b5)](_0x1120f1,_0x349446):_0x1841b8[_0x1aa018(0x2af)](_0x1120f1),this[_0x1aa018(0x26d)][_0x1aa018(0x3f8)]({'unitId':_0x583c8f,'subUnitId':_0x406ba8,'pivotTableId':_0x1120f1});}[_0x5d1072(0x259)](){const _0x58c608=_0x5d1072;super[_0x58c608(0x259)]();}['getViewData'](_0x462fdd,_0x7173a2,_0x53fa29){const _0x57bc53=_0x5d1072;var _0x81adb1,_0x5f4c92;const _0xde3147=(_0x5f4c92=(_0x81adb1=this[_0x57bc53(0x201)]['get'](_0x462fdd))==null?void 0x0:_0x81adb1[_0x57bc53(0x411)](_0x7173a2))==null?void 0x0:_0x5f4c92['get'](_0x53fa29);return _0xde3147||null;}['addDirtyPivotTable'](_0x2a5e3f){const _0x4710da=_0x5d1072;this[_0x4710da(0x183)](_0x2a5e3f);}['updateDirtyPivotTable'](_0x34e19c){const _0x2a4ae3=_0x5d1072,{token:_0xf46560,unitId:_0x1dd262,subUnitId:_0x99007b}=_0x34e19c,_0x3c344e=_0x1dd262+'-'+_0x99007b+'-'+_0xf46560;this[_0x2a4ae3(0x20c)][_0x2a4ae3(0x411)](_0x3c344e)&&clearTimeout(this['_queryingMap'][_0x2a4ae3(0x411)](_0x3c344e));const _0x280b11=setTimeout(()=>{const _0x435ceb=_0x2a4ae3;this['queryDirtyPivotTable'](_0x34e19c),this[_0x435ceb(0x20c)]['delete'](_0x3c344e);},_0x350f93);this[_0x2a4ae3(0x20c)]['set'](_0x3c344e,_0x280b11);}[_0x5d1072(0x1d5)](_0x55d91e){const _0x29fb84=_0x5d1072,{unitId:_0x51d182,subUnitId:_0x14810f,token:_0x5d1dca,type:_0x274dd3,pivotConfig:_0x4e76e5}=_0x55d91e,_0xba5f2c=this['getPivotTableInstance'](_0x5d1dca),_0x41250b=_0xba5f2c==null?void 0x0:_0xba5f2c[_0x29fb84(0x293)](),_0x354488=_0x4e76e5!=null?_0x4e76e5:this[_0x29fb84(0x458)](_0x51d182,_0x14810f,_0x5d1dca);_0x354488&&(_0x354488[_0x29fb84(0x475)]=!!(_0xba5f2c!=null&&_0xba5f2c['isEmpty']())),(_0x41250b||_0x274dd3===_0x5ae422[_0x29fb84(0x36a)])&&this[_0x29fb84(0x427)](_0x51d182,_0x14810f,_0x274dd3,_0x5d1dca,_0x41250b,_0x354488,this[_0x29fb84(0x367)](_0x51d182)[_0x29fb84(0x3ff)]());}[_0x5d1072(0x3ff)](_0x12ed3d){const _0x12414b=_0x5d1072,_0x16f7ae={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x12414b(0x367)](_0x12ed3d)&&(_0x16f7ae[_0x12414b(0x2e2)][_0x12ed3d]=this[_0x12414b(0x367)](_0x12ed3d)[_0x12414b(0x3ff)]()),this[_0x12414b(0x193)][_0x12414b(0x411)](_0x12ed3d)){_0x16f7ae[_0x12414b(0x1c3)][_0x12ed3d]={};const _0x2649be=this[_0x12414b(0x193)][_0x12414b(0x411)](_0x12ed3d);_0x2649be!=null&&_0x2649be[_0x12414b(0x249)]&&[..._0x2649be[_0x12414b(0x3d8)]()]['forEach'](_0x4c3a9c=>{const _0x1e47c8=_0x12414b,_0xa26797=_0x2649be['get'](_0x4c3a9c);_0xa26797!=null&&_0xa26797['size']&&(_0x16f7ae[_0x1e47c8(0x1c3)][_0x12ed3d][_0x4c3a9c]={},[..._0xa26797[_0x1e47c8(0x3d8)]()][_0x1e47c8(0x274)](_0x413c7c=>{const _0xf0b9a0=_0x1e47c8,_0x3f2870=_0xa26797[_0xf0b9a0(0x411)](_0x413c7c);_0x3f2870&&(_0x16f7ae[_0xf0b9a0(0x1c3)][_0x12ed3d][_0x4c3a9c][_0x413c7c]=_0x3f2870);}));});}return _0x16f7ae;}[_0x5d1072(0x328)](_0x21bda9){const _0x17f700=_0x5d1072;var _0x4fa7b0;const {dataFieldManagerConfig:_0x1dc7bb,pivotTableConfigs:_0xf90372}=_0x21bda9;_0x1dc7bb&&Object[_0x17f700(0x3d8)](_0x1dc7bb)[_0x17f700(0x274)](_0x149f1b=>{const _0x4dbeca=_0x17f700;this[_0x4dbeca(0x367)](_0x149f1b)['fromJSON'](_0x1dc7bb[_0x149f1b]);});const _0x24f066=[];if(_0xf90372){const _0x165a8a=(_0x4fa7b0=this['_injector'][_0x17f700(0x411)](_0x374f23[_0x17f700(0x224)])[_0x17f700(0x19c)](_0x2169aa[_0x17f700(0x442)]))!=null?_0x4fa7b0:{},{ls:_0xf88178,pbk:_0x4c996d}=_0x165a8a,_0x290544=_0x43fd63(_0x5639c4,_0xf88178,_0x4c996d)[_0x17f700(0x1a5)];Object[_0x17f700(0x3d8)](_0xf90372)['forEach'](_0x5ab89a=>{const _0x72ceff=_0x17f700;let _0x2e556a=0x0;const _0x1f57aa=_0xf90372[_0x5ab89a];Object[_0x72ceff(0x3d8)](_0x1f57aa)[_0x72ceff(0x274)](_0x5f1e10=>{const _0x43dab1=_0x72ceff,_0x27828e=_0x1f57aa[_0x5f1e10];Object[_0x43dab1(0x3d8)](_0x27828e)[_0x43dab1(0x274)](_0x387ae4=>{const _0x47c873=_0x43dab1,_0x31233f=_0x27828e[_0x387ae4];if(_0x31233f){if(_0x2e556a>=_0x290544)return;_0x2e556a++;const _0x284a49=this[_0x47c873(0x367)](_0x5ab89a),_0x5a76f1=_0x284a49['collections'][_0x387ae4],_0x554542=_0x5a76f1['getFieldIds']();let _0x5b8af0=0x0;const _0x22ebb2=[];for(const _0x113b1e of _0x554542){const _0x38c6d2=_0x5a76f1['getFieldById'](_0x113b1e);if(_0x2eef51[_0x47c873(0x44e)](_0x38c6d2)){const _0x1e6fb9=_0x38c6d2['getOriginFieldId'](),_0x5d0d91=_0x5a76f1[_0x47c873(0x35d)](_0x1e6fb9);_0x5d0d91&&_0x22ebb2[_0x47c873(0x27b)]([_0x38c6d2,_0x5d0d91]);continue;}_0x284a49[_0x47c873(0x246)](_0x113b1e,_0x31233f[_0x47c873(0x1d7)],_0x5b8af0),_0x5b8af0++;}_0x22ebb2[_0x47c873(0x274)](([_0x237917,_0x193570])=>{const _0x3ebea3=_0x47c873;_0x237917[_0x3ebea3(0x302)](_0x193570);});const _0x6bd165=new _0x2eef51[(_0x47c873(0x1dc))](_0x5a76f1);_0x6bd165[_0x47c873(0x328)](_0x31233f[_0x47c873(0x3b6)]),this[_0x47c873(0x42c)](_0x5ab89a,_0x5f1e10,_0x387ae4,_0x6bd165,_0x31233f);const _0x101eab=_0x6bd165['query']();_0x24f066['push']({'unitId':_0x5ab89a,'subUnitId':_0x5f1e10,'pivotTableId':_0x387ae4,'view':_0x101eab['toJSON'](),'pivotConfig':_0x31233f,'type':_0x5ae422[_0x47c873(0x395)]});const _0x2b0e33=!!_0x6bd165[_0x47c873(0x475)](),_0xc255f8={'view':_0x101eab,'pivotTableId':_0x387ae4,'textInfo':this['getTextInfo'](),'isEmpty':_0x2b0e33,'targetCellInfo':_0x31233f[_0x47c873(0x357)]};this[_0x47c873(0x3a8)](_0xc255f8,!0x1);}});});});}_0x1dc7bb&&Object[_0x17f700(0x3d8)](_0x1dc7bb)['forEach'](_0x4cb5e2=>{const _0x37d05e=_0x17f700,_0x4517b5=this[_0x37d05e(0x367)](_0x4cb5e2);this[_0x37d05e(0x253)][_0x37d05e(0x3f8)](_0x4517b5[_0x37d05e(0x459)]);}),this[_0x17f700(0x454)]['executeCommand'](_0x4d7335['id'],{'batch':_0x24f066,'collectionConfig':_0x1dc7bb},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x4d328e=_0x5d1072;this[_0x4d328e(0x372)](this[_0x4d328e(0x2d1)][_0x4d328e(0x486)]({'toJson':_0x1bcc15=>JSON[_0x4d328e(0x22c)](this[_0x4d328e(0x3ff)](_0x1bcc15)),'parseJson':_0x4289e6=>{const _0x161702=_0x4d328e;if(!_0x4289e6)return{};try{return JSON[_0x161702(0x2ab)](_0x4289e6);}catch{return{};}},'businesses':[_0x374f23[_0x4d328e(0x1e8)][_0x4d328e(0x2eb)]],'pluginName':_0xcaa86f,'onLoad':(_0x3e03c9,_0x40e8e3)=>{const _0x3f2f21=_0x4d328e;this[_0x3f2f21(0x328)](_0x40e8e3);},'onUnLoad':_0x3d6669=>{this['deleteUnitId'](_0x3d6669);}}));}},_0x1cc2c4[_0x5d1072(0x38e)]=_0x3ef864([_0x3762a4(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cf)])),_0x3762a4(0x1,_0x374f23[_0x5d1072(0x1d8)]),_0x3762a4(0x2,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x359)])),_0x3762a4(0x3,_0x374f23[_0x5d1072(0x386)]),_0x3762a4(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x30b)]))],_0x1cc2c4[_0x5d1072(0x38e)]);const _0xec4ff0={0x0:{0x0:{'v':'filter','s':_0x554db5}},0x2:{0x1:{'v':'','s':_0x554db5},0x2:{'v':'','s':_0x554db5},0x3:{'v':_0x5d1072(0x352),'s':_0x554db5},0x4:{'v':'','s':_0x554db5},0x5:{'v':'','s':_0x554db5}},0x3:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x4:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x5:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x6:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x7:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x8:{0x0:{'v':_0x5d1072(0x23e),'s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'values','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x9:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xa:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xb:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xc:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xd:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}}},_0x714d6e={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x36fb91=(_0x371e81,_0x1a799b)=>{const _0x57801a=_0x5d1072,_0x367958=new _0x374f23['ObjectMatrix'](),_0xa4cf99=new _0x374f23[(_0x57801a(0x33b))](_0xec4ff0),{row:_0x42c1a4,col:_0x5aa6f0}=_0x1a799b;_0xa4cf99[_0x57801a(0x1d1)]((_0x568a93,_0x11d8e1,_0x37826b)=>{const _0x12e7ef=_0x57801a;let _0x18ef70='';_0x37826b['v']===_0x12e7ef(0x341)?_0x18ef70=_0x371e81['filter']:_0x37826b['v']===_0x12e7ef(0x23e)?_0x18ef70=_0x371e81['row']:_0x37826b['v']==='column'?_0x18ef70=_0x371e81[_0x12e7ef(0x352)]:_0x37826b['v']===_0x12e7ef(0x39c)&&(_0x18ef70=_0x371e81[_0x12e7ef(0x39c)]),_0x367958[_0x12e7ef(0x388)](_0x568a93+_0x42c1a4,_0x11d8e1+_0x5aa6f0,{..._0x37826b,'v':_0x18ef70});});const _0x53bcea=_0x374f23[_0x57801a(0x3c1)]['deepClone'](_0x714d6e);return Object['keys'](_0x714d6e)['forEach'](_0x39046c=>{const _0x2a7e97=_0x57801a;_0x53bcea[_0x39046c]=_0x714d6e[_0x39046c]['map'](_0x48598d=>({..._0x48598d,'startRow':_0x48598d['startRow']+_0x42c1a4,'endRow':_0x48598d[_0x2a7e97(0x3a2)]+_0x42c1a4,'startColumn':_0x48598d[_0x2a7e97(0x3b9)]+_0x5aa6f0,'endColumn':_0x48598d[_0x2a7e97(0x217)]+_0x5aa6f0}));}),{'matrixCache':_0x367958,'rangesCache':_0x53bcea};};function _0x1f8c04(_0xea747e,_0x20b5fb){const _0x5d35e9=_0x5d1072;let _0x5be600='';const _0x1f440b=this[_0x5d35e9(0x277)]();switch(_0x20b5fb){case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x254)]:_0x5be600=_0x1f440b['sheets-pivot.averageName']+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x1a5)]:_0x5be600=_0x1f440b[_0x5d35e9(0x3f6)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x350)]:_0x5be600=_0x1f440b[_0x5d35e9(0x2d3)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x275)]:_0x5be600=_0x1f440b[_0x5d35e9(0x247)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)]['min']:_0x5be600=_0x1f440b['sheets-pivot.minName']+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x230)]:_0x5be600=_0x1f440b[_0x5d35e9(0x2de)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum']['stdDev']:_0x5be600=_0x1f440b[_0x5d35e9(0x369)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum']['stdDevp']:_0x5be600=_0x1f440b[_0x5d35e9(0x32b)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x25d)]:_0x5be600=_0x1f440b[_0x5d35e9(0x418)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x1a7)]:_0x5be600=_0x1f440b[_0x5d35e9(0x1cd)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x31f)]:_0x5be600=_0x1f440b[_0x5d35e9(0x28c)]+_0xea747e;break;default:_0x5be600=_0xea747e;break;}return _0x5be600;}function _0x21a2ff(_0x39ae11,_0x493142,_0x397fe8,_0x2fc7a4,_0x409e1f){const _0xbad48f=_0x5d1072;var _0x565864,_0x2ce97,_0x4c2666,_0x1da8ed,_0x9b36fd;const _0x2872ec=_0x374f23['cellToRange'](_0x39ae11,_0x493142),{rangesInfo:_0x57ca9a,areaInfo:_0x3e0df9,headerMap:_0x7c64a1}=_0x409e1f;if(!_0x57ca9a||!_0x3e0df9||!_0x7c64a1)return;const _0x3aaf23=Object[_0xbad48f(0x3d8)](_0x57ca9a)['find'](_0x2c3921=>_0x57ca9a[_0x2c3921][_0xbad48f(0x3c4)](_0x3f560f=>_0x374f23[_0xbad48f(0x236)][_0xbad48f(0x447)](_0x3f560f,_0x2872ec))),_0x20c374=_0x3e0df9;let _0x259ed1,_0x1e8bfb,_0xaa3720;if(_0x3aaf23===_0xbad48f(0x3d2))_0x259ed1=(_0x565864=_0x20c374==null?void 0x0:_0x20c374[_0xbad48f(0x30e)])==null?void 0x0:_0x565864[_0x39ae11],_0x1e8bfb=(_0x2ce97=_0x7c64a1==null?void 0x0:_0x7c64a1[_0xbad48f(0x452)])==null?void 0x0:_0x2ce97[_0x493142],_0xaa3720=_0x1e8bfb==null?void 0x0:_0x1e8bfb['tableFieldId'];else{if(_0x3aaf23===_0xbad48f(0x2ad))_0x259ed1=(_0x4c2666=_0x20c374==null?void 0x0:_0x20c374[_0xbad48f(0x276)])==null?void 0x0:_0x4c2666[_0x493142],_0x1e8bfb=(_0x1da8ed=_0x7c64a1['colHeaderMap'])==null?void 0x0:_0x1da8ed[_0x39ae11+0x1+_0x493142-_0x57ca9a[_0xbad48f(0x2ad)][0x0][_0xbad48f(0x3b9)]],_0xaa3720=_0x1e8bfb==null?void 0x0:_0x1e8bfb['tableFieldId'];else{if(_0x3aaf23===_0xbad48f(0x2bb))_0x259ed1=(_0x9b36fd=_0x20c374==null?void 0x0:_0x20c374['cornerInfo'])==null?void 0x0:_0x9b36fd[_0x493142],_0xaa3720=_0x259ed1==null?void 0x0:_0x259ed1['tableFieldId'];else{if(_0x3aaf23==='pageRanges'){const _0x2cd9f7=_0x397fe8==null?void 0x0:_0x397fe8['fi'];_0x2cd9f7!==void 0x0&&(_0xaa3720=_0x2fc7a4[_0xbad48f(0x1b1)](_0x2cd9f7));}}}}return{'filterId':_0xaa3720,'info':_0x259ed1,'data':_0x397fe8,'headerInfo':_0x1e8bfb};}function _0xb9c753(_0x3d1218,_0x1ab058,_0xe05df3){const _0x47b190=_0x5d1072,_0x1c5be2=_0x3d1218[_0x47b190(0x29d)],_0x1d9175=_0x1c5be2['getFieldIds'](),_0x2c9908=new Set();_0x3d1218[_0x47b190(0x1c4)](_0xc1df9f=>{const _0x3998e2=_0x47b190;_0x2c9908[_0x3998e2(0x346)](_0xc1df9f[_0x3998e2(0x423)]);});const _0x5ec47d=_0x1d9175['map'](_0x527d22=>{const _0x3f8408=_0x47b190,_0x3ee401=_0x1c5be2[_0x3f8408(0x35d)](_0x527d22);return{'checked':_0x2c9908[_0x3f8408(0x1b5)](_0x527d22),'dataFieldId':_0x3ee401['id'],'id':_0x3ee401['id'],'name':_0x1c5be2[_0x3f8408(0x263)](_0x3ee401['id']),'type':_0x3ee401[_0x3f8408(0x20b)](),'pivotTableId':_0x1ab058};}),_0x172ef5=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x415)],_0x13ca89=>{const _0x5a967f=_0x47b190;_0x172ef5[_0x5a967f(0x27b)]({'dataFieldId':_0x13ca89['dataFieldId'],'tableFieldId':_0x13ca89[_0x5a967f(0x470)](),'displayName':_0x13ca89[_0x5a967f(0x263)]()});});const _0x4d5f41=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)]['Column'],_0x20e468=>{const _0x2b331e=_0x47b190;_0x4d5f41[_0x2b331e(0x27b)]({'dataFieldId':_0x20e468['dataFieldId'],'tableFieldId':_0x20e468[_0x2b331e(0x470)](),'displayName':_0x20e468[_0x2b331e(0x263)]()});});const _0x19625c=[];if(_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x444)],_0x3fd4e8=>{const _0x408f85=_0x47b190;_0x19625c[_0x408f85(0x27b)]({'dataFieldId':_0x3fd4e8[_0x408f85(0x423)],'tableFieldId':_0x3fd4e8['getId'](),'displayName':_0x3fd4e8[_0x408f85(0x263)](),'format':_0x3fd4e8[_0x408f85(0x441)](),'subTotalType':_0x3fd4e8['getSubtotal']()});}),_0x19625c[_0x47b190(0x468)]>0x1){const _0x4272cb=_0x3d1218[_0x47b190(0x428)]();(_0x3d1218[_0x47b190(0x256)]()?_0x4d5f41:_0x172ef5)[_0x47b190(0x2bd)](_0x4272cb,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':'ΣValue'});}const _0x6bdb25=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x2f1)],_0x5e0a93=>{const _0x3aea6c=_0x47b190;_0x6bdb25['push']({'dataFieldId':_0x5e0a93['dataFieldId'],'tableFieldId':_0x5e0a93[_0x3aea6c(0x470)](),'displayName':_0x5e0a93['getDisplayName']()});});const _0x4f1f58=_0xe05df3[_0x47b190(0x1d7)];return{'sourceList':_0x5ec47d,'sourceRange':_0x4f1f58,'rowFields':_0x172ef5,'columnFields':_0x4d5f41,'valueFields':_0x19625c,'filterFields':_0x6bdb25,'positionInfo':_0xe05df3[_0x47b190(0x357)]};}function _0x3db0d7(_0x161441,_0x4b59fa,_0x43cffe='',_0x6acea={}){const _0x25fe60=_0x5d1072,_0x65bbbd=_0x161441[_0x25fe60(0x411)](_0x374f23[_0x25fe60(0x3cd)]);for(const _0x5bca90 in _0x4b59fa)if(Object['prototype']['hasOwnProperty'][_0x25fe60(0x41d)](_0x4b59fa,_0x5bca90)){const _0xa2d003=_0x43cffe?_0x43cffe+'.'+_0x5bca90:_0x5bca90;typeof _0x4b59fa[_0x5bca90]==_0x25fe60(0x1d9)&&_0x4b59fa[_0x5bca90]!==null&&!Array[_0x25fe60(0x3d9)](_0x4b59fa[_0x5bca90])?_0x3db0d7(_0x161441,_0x4b59fa[_0x5bca90],_0xa2d003,_0x6acea):_0x6acea[_0xa2d003]=_0x65bbbd['t'](_0xa2d003);}return _0x6acea;}const _0x17e537=_0x59b2eb=>{const _0x2e1fb8=_0x5d1072;if(!_0x59b2eb)return[];const {rowRanges:_0xbb6752,colRanges:_0x572ef3,cornerRanges:_0x10e29b,dataRanges:_0x336c3c,pageRanges:_0x4fbe92}=_0x59b2eb,_0x600f6=[..._0x572ef3,..._0xbb6752,..._0x336c3c,..._0x10e29b][_0x2e1fb8(0x341)](_0x460b24=>_0x460b24[_0x2e1fb8(0x378)]>=0x0&&_0x460b24[_0x2e1fb8(0x3b9)]>=0x0&&_0x460b24[_0x2e1fb8(0x3a2)]>=0x0&&_0x460b24[_0x2e1fb8(0x217)]>=0x0);let _0x4d7dff=Number['MAX_SAFE_INTEGER'],_0x46398a=Number[_0x2e1fb8(0x3e8)],_0xfbd6b8=Number[_0x2e1fb8(0x1a3)],_0xba1fe=Number[_0x2e1fb8(0x3e8)];for(let _0x477e34=0x0;_0x477e34<_0x600f6[_0x2e1fb8(0x468)];_0x477e34++)_0x4d7dff=Math[_0x2e1fb8(0x3b1)](_0x4d7dff,_0x600f6[_0x477e34]['startRow']),_0x46398a=Math[_0x2e1fb8(0x275)](_0x46398a,_0x600f6[_0x477e34][_0x2e1fb8(0x3a2)]),_0xfbd6b8=Math[_0x2e1fb8(0x3b1)](_0xfbd6b8,_0x600f6[_0x477e34]['startColumn']),_0xba1fe=Math[_0x2e1fb8(0x275)](_0xba1fe,_0x600f6[_0x477e34][_0x2e1fb8(0x217)]);return[..._0x4fbe92,{'startRow':_0x4d7dff,'endRow':_0x46398a,'startColumn':_0xfbd6b8,'endColumn':_0xba1fe}];};function _0xaa3adf(_0x4be0d0,_0x4f1405){const _0x383ec0=_0x5d1072,_0x2cf954=_0x4f1405[_0x383ec0(0x3aa)][_0x383ec0(0x2d8)],{pivotTableId:_0x5bb815,unitId:_0x1c071a,subUnitId:_0x4dc721}=_0x4f1405;if(!_0x2cf954)return;const _0x1bf85f=_0x4be0d0[_0x383ec0(0x411)](_0x1cc2c4[_0x383ec0(0x38e)]),_0x2380e8=_0x1bf85f[_0x383ec0(0x202)](_0x5bb815),_0x4879b7=_0x1bf85f[_0x383ec0(0x458)](_0x1c071a,_0x4dc721,_0x5bb815);if(!_0x2380e8||!_0x4879b7)return;const _0x5b8f15=_0x2380e8[_0x383ec0(0x260)](_0x2cf954['tuple']);if(!(_0x5b8f15!=null&&_0x5b8f15[_0x383ec0(0x468)]))return;const _0x11e348=_0x4879b7[_0x383ec0(0x1d7)],{unitId:_0x4c3399,subUnitId:_0x5dcb77,range:_0x28dbeb}=_0x11e348;let _0x1a7488=0x0;const _0x1d08f5=_0x2380e8[_0x383ec0(0x29d)][_0x383ec0(0x324)]()['reduce']((_0x29a624,_0x23d04f)=>{const _0x160695=_0x383ec0;var _0x22d722;const _0x340ba4=(_0x22d722=_0x2380e8[_0x160695(0x257)](_0x23d04f))==null?void 0x0:_0x22d722[_0x160695(0x3c0)]();return _0x340ba4&&(_0x29a624[String(_0x1a7488)]=_0x340ba4),_0x1a7488++,_0x29a624;},{});return{'indexes':_0x5b8f15,'range':_0x28dbeb,'sourceUnitId':_0x4c3399,'sourceSubUnitId':_0x5dcb77,'formatMap':_0x1d08f5};}function _0x122880(_0x1450d0,_0x11a964){const _0x555055=_0x5d1072;if(!_0x1450d0||!_0x11a964)return!0x0;const _0x20e7fa=_0x2169aa[_0x555055(0x43b)](_0x137d34,_0x6b9aa1),_0x523a14=new Function(_0x555055(0x222)+_0x20e7fa)()(_0x1450d0,_0x11a964)[_0x555055(0x1ef)],_0x2d1754=_0x2169aa[_0x555055(0x43c)](_0x523a14,'sf',_0x82b07b);return!((_0x523a14==null?void 0x0:_0x523a14['rt'])===_0x2169aa[_0x555055(0x19e)]['NO_COMMERCIAL']&&!_0x2d1754);}function _0x43fd63(_0x18d6e1,_0x56bbb5,_0x182abb){const _0x44f245=_0x5d1072,_0x4ca25b={'count':_0x18d6e1,'timeValid':!0x1};if(!_0x56bbb5||!_0x182abb)return _0x4ca25b;const _0x469a7e=_0x2169aa[_0x44f245(0x43b)](_0x137d34,_0x6b9aa1),_0x46cbc9=new Function(_0x44f245(0x222)+_0x469a7e)()(_0x56bbb5,_0x182abb);if(_0x46cbc9!=null&&_0x46cbc9[_0x44f245(0x363)]){const _0x4ddd62=_0x46cbc9[_0x44f245(0x1ef)],_0xf49ef7=_0x2169aa['isFeatureAuthorizedWithinTime'](_0x4ddd62,'sf',_0x82b07b);return{'count':_0x2169aa[_0x44f245(0x20e)](_0x4ddd62,_0xf49ef7,_0x44f245(0x2ba),_0x18d6e1,_0x18d6e1,0x0),'timeValid':_0xf49ef7};}return _0x4ca25b;}function _0x347fea(_0xed4aff,_0x2c72d7,_0x32738f,_0x31a305){const _0x2b33e5=_0x5d1072,_0x1f5f7b={'subUnitId':_0x32738f,'unitId':_0x2c72d7,'cellValue':_0x24a2a7[_0x2b33e5(0x1e2)](_0x31a305)},_0x25a5e0=_0x24a2a7[_0x2b33e5(0x345)](_0xed4aff,_0x1f5f7b);let _0x55d77b=!0x1;return new _0x374f23[(_0x2b33e5(0x33b))](_0x25a5e0['cellValue'])[_0x2b33e5(0x1d1)]((_0x104486,_0x4ef94e,_0x26deab)=>{const _0x4ace37=_0x2b33e5;if(!_0x55d77b&&_0x26deab&&(_0x26deab[_0x4ace37(0x381)]||_0x26deab['f']||_0x26deab['p']||_0x26deab['s']||_0x26deab['si']||_0x26deab['t']||_0x26deab['v']))return _0x55d77b=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x24a2a7[_0x2b33e5(0x1d3)]['id'],'params':_0x25a5e0},'setRangeValueRedoMutation':{'id':_0x24a2a7[_0x2b33e5(0x1d3)]['id'],'params':_0x1f5f7b},'shouldClear':_0x55d77b};}function _0x4dfe41(_0x5c2e7f){const {row:_0x19b23a,col:_0x5d6f10}=_0x5c2e7f,_0x3e6a22={'startRow':_0x19b23a,'endRow':_0x19b23a,'startColumn':_0x5d6f10,'endColumn':_0x5d6f10},_0x21767c={'startRow':_0x19b23a+0x2,'endRow':_0x19b23a+0xe,'startColumn':_0x5d6f10,'endColumn':_0x5d6f10+0x6};return[_0x3e6a22,_0x21767c];}function _0x4cf74d(_0xd7959b,_0x4f86ef,_0x419738){const _0x18902a=_0x5d1072,{cornerView:_0x2b23d7,rowView:_0x24fe3d,colView:_0x570257,pageView:_0x42e2b}=_0xd7959b,{row:_0x11b794,col:_0x2ceffa}=_0x4f86ef;if(_0x419738)return{'rowCount':_0x2ccd6c+_0x11b794,'colCount':_0x69f1d9+_0x2ceffa};const _0x1bd4c3=_0x42e2b[_0x18902a(0x18f)]>-0x1?_0x42e2b[_0x18902a(0x18f)]+0x1:0x0,_0x4f4f0e=_0x42e2b[_0x18902a(0x473)]>-0x1?_0x42e2b[_0x18902a(0x473)]:0x0,_0xb11db0=_0x11b794+_0x1bd4c3+(_0x1bd4c3?0x1:0x0)+_0x2b23d7[_0x18902a(0x215)]+_0x24fe3d[_0x18902a(0x215)],_0x214532=_0x2ceffa+_0x4f4f0e,_0x429a25=_0x2ceffa+_0x2b23d7['colCount']+_0x570257['colCount'],_0x53f0d7=Math[_0x18902a(0x275)](_0x214532,_0x429a25);return{'rowCount':_0xb11db0,'colCount':_0x53f0d7};}function _0x20a5db(_0x29c87b,_0x4f9c79,_0x47356b,_0x5ca257){const _0x6a43ad=_0x5d1072,{row:_0x54b6a2,col:_0x2799ca,unitId:_0x51cdba,subUnitId:_0x3703aa}=_0x47356b,_0x25452a=_0x4cf74d(_0x4f9c79,{'row':_0x54b6a2,'col':_0x2799ca},_0x5ca257),_0x5cbf61=_0x29c87b['get'](_0x374f23[_0x6a43ad(0x1d8)]),_0x4de150=_0x24a2a7['getSheetCommandTarget'](_0x5cbf61,{'unitId':_0x51cdba,'subUnitId':_0x3703aa}),_0x14f05c=[],_0xeff126=[];if(!_0x4de150)return{'undos':_0xeff126,'redos':_0x14f05c};const {worksheet:_0x2c09b}=_0x4de150,_0x1aad70=_0x2c09b['getRowCount'](),_0x362b74=_0x2c09b[_0x6a43ad(0x281)]();return _0x1aad70<_0x25452a[_0x6a43ad(0x215)]&&(_0x14f05c[_0x6a43ad(0x27b)]({'id':_0x24a2a7['InsertRowMutation']['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':_0x1aad70,'endRow':_0x25452a[_0x6a43ad(0x215)]-0x1,'startColumn':0x0,'endColumn':_0x362b74-0x1}}}),_0xeff126[_0x6a43ad(0x27b)]({'id':_0x24a2a7[_0x6a43ad(0x290)]['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':_0x1aad70,'endRow':_0x25452a['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x362b74-0x1}}})),_0x362b74<_0x25452a[_0x6a43ad(0x392)]&&(_0x14f05c[_0x6a43ad(0x27b)]({'id':_0x24a2a7['InsertColMutation']['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':0x0,'endRow':_0x1aad70-0x1,'startColumn':_0x362b74,'endColumn':_0x25452a[_0x6a43ad(0x392)]-0x1}}}),_0xeff126['push']({'id':_0x24a2a7[_0x6a43ad(0x1c5)]['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':0x0,'endRow':_0x1aad70-0x1,'startColumn':_0x362b74,'endColumn':_0x25452a['colCount']-0x1}}})),{'undos':_0xeff126,'redos':_0x14f05c};}function _0x1ce604(_0x5c981f){const _0x4e9682=_0x5d1072;let _0x3def59=0x0;for(let _0x431027=0x0;_0x431027<_0x5c981f['length'];_0x431027++){const _0x376f46=_0x5c981f[_0x4e9682(0x28d)](_0x431027);_0x376f46>=0x4e00&&_0x376f46<=0x9fff||_0x376f46>=0x3000&&_0x376f46<=0x303f||_0x376f46>=0xff00&&_0x376f46<=0xffef?_0x3def59+=0x2:_0x3def59+=0x1;}return _0x3def59;}function _0x21df27(_0x3a7953,_0x5077ac,_0x4eeb01,_0x40937c){const _0x5b4ee5=_0x5d1072;var _0x191be0,_0x189e5a,_0xc5a5f8,_0xcd1b00;const {rowCount:_0x2ee371,colCount:_0x1e05bb,headerMap:_0x568e05}=_0x3a7953,_0x3b5cf3=0x64,_0xc33220=Math[_0x5b4ee5(0x3b1)](_0x2ee371,_0x3b5cf3),_0x4e94ff=Math[_0x5b4ee5(0x3b1)](_0x1e05bb,_0x3b5cf3);let _0x281023='',_0x222b0f=0x0;for(let _0x1dd7d4=0x0;_0x1dd7d4<_0xc33220;_0x1dd7d4++)for(let _0x145a30=0x0;_0x145a30<_0x4e94ff;_0x145a30++){const _0x1c87bc={...(_0x189e5a=(_0x191be0=_0x3a7953[_0x5b4ee5(0x3b3)])==null?void 0x0:_0x191be0[_0x1dd7d4])==null?void 0x0:_0x189e5a[_0x145a30]},_0x4c4b87=(_0xc5a5f8=_0x568e05[_0x1dd7d4])==null?void 0x0:_0xc5a5f8['tableFieldId'],_0x9d360b=_0x40937c[_0x4c4b87];let _0x49db81=_0x3a7953[_0x5b4ee5(0x216)](_0x1dd7d4,_0x145a30);if(_0x1c87bc){const _0xf1f2ff=_0x4eeb01?_0x145a30===0x0&&((_0xcd1b00=_0x3a7953[_0x5b4ee5(0x351)](_0x145a30+0x1))==null?void 0x0:_0xcd1b00[_0x5b4ee5(0x40e)]):!0x1;_0x49db81=_0x99791(_0x1c87bc,_0xf1f2ff,_0x9d360b,_0x5077ac);}if(_0x49db81!==void 0x0){const _0x5e03e2=_0x1ce604(String(_0x49db81));_0x222b0f<_0x5e03e2&&(_0x281023=String(_0x49db81),_0x222b0f=_0x5e03e2);}}return _0x281023;}function _0x59b274(_0x5f69b9){const _0x3c6afa=_0x5d1072,{rowCount:_0x3de406,colCount:_0x56814b}=_0x5f69b9;let _0x5b00a0='',_0x1df639=0x0;for(let _0x551d63=_0x3de406-0x1;_0x551d63>0x0&&_0x551d63>_0x3de406-0x3;_0x551d63--)for(let _0x5d49fa=0x0;_0x5d49fa<_0x56814b;_0x5d49fa++){const _0x3e4a52=_0x5f69b9[_0x3c6afa(0x216)](_0x551d63,_0x5d49fa);if(_0x3e4a52!==void 0x0){const _0xb1b0e6=String(_0x3e4a52)[_0x3c6afa(0x468)];_0x1df639<_0xb1b0e6&&(_0x5b00a0=String(_0x3e4a52),_0x1df639=_0xb1b0e6);}}return _0x5b00a0;}function _0x10a3cc(_0x590625){const _0xa28160=_0x5d1072,{rowCount:_0x4a536e,colCount:_0x23d87c}=_0x590625;let _0x44ca3e='',_0x1c0959=0x0;for(let _0x1dd733=0x0;_0x1dd733<_0x4a536e;_0x1dd733++)for(let _0x49b4b3=0x0;_0x49b4b3<_0x23d87c;_0x49b4b3++){const _0x4bc8a3=_0x590625[_0xa28160(0x216)](_0x1dd733,_0x49b4b3);if(_0x4bc8a3!==void 0x0){const _0x5c0497=String(_0x4bc8a3)['length'];_0x1c0959<_0x5c0497&&(_0x44ca3e=String(_0x4bc8a3),_0x1c0959=_0x5c0497);}}return _0x44ca3e;}function _0x5bb8f1(_0x3ceebd,_0x112c1a){const _0x28bc14=_0x5d1072,{rowFields:_0x3c3d33,columnFields:_0x2fcbae,valueFields:_0x407fac,filterFields:_0x16fac9,dimension:_0x12a17f,measure:_0x1f3fd8}=_0x112c1a;for(const _0x5a1e32 of _0x3c3d33){const _0xfefe95=_0x12a17f[_0x5a1e32];_0xfefe95&&_0x3ceebd[_0x28bc14(0x257)](_0xfefe95[_0x28bc14(0x423)])&&(_0x3ceebd[_0x28bc14(0x327)](_0xfefe95[_0x28bc14(0x423)],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x415)],void 0x0,_0x5a1e32),_0xfefe95['displayName']&&_0x3ceebd[_0x28bc14(0x18a)](_0xfefe95['id'],_0xfefe95[_0x28bc14(0x39a)]),_0xfefe95[_0x28bc14(0x3c9)]&&_0x3ceebd[_0x28bc14(0x200)](_0xfefe95['id'],_0xfefe95['sortInfo']),_0xfefe95[_0x28bc14(0x3f3)]&&_0x3ceebd[_0x28bc14(0x3e2)](_0xfefe95['id'],_0xfefe95[_0x28bc14(0x3f3)]));}for(const _0x37aae2 of _0x2fcbae){const _0x11dcae=_0x12a17f[_0x37aae2];_0x11dcae&&_0x3ceebd[_0x28bc14(0x257)](_0x11dcae[_0x28bc14(0x423)])&&(_0x3ceebd['addFieldWithSourceId'](_0x11dcae[_0x28bc14(0x423)],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x403)],void 0x0,_0x37aae2),_0x11dcae['sortInfo']&&_0x3ceebd[_0x28bc14(0x200)](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x3c9)]),_0x11dcae[_0x28bc14(0x3f3)]&&_0x3ceebd[_0x28bc14(0x3e2)](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x3f3)]),_0x11dcae['displayName']&&_0x3ceebd['renameField'](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x39a)]));}for(const _0x1bec63 of _0x16fac9){const _0x41da90=_0x12a17f[_0x1bec63];_0x41da90&&_0x3ceebd[_0x28bc14(0x257)](_0x41da90['dataFieldId'])&&(_0x3ceebd[_0x28bc14(0x327)](_0x41da90[_0x28bc14(0x423)],_0x2eef51['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x1bec63),_0x41da90[_0x28bc14(0x3c9)]&&_0x3ceebd[_0x28bc14(0x200)](_0x41da90['id'],_0x41da90['sortInfo']),_0x41da90[_0x28bc14(0x3f3)]&&_0x3ceebd['setLabelFilterInfo'](_0x41da90['id'],_0x41da90[_0x28bc14(0x3f3)]),_0x41da90['displayName']&&_0x3ceebd[_0x28bc14(0x18a)](_0x41da90['id'],_0x41da90[_0x28bc14(0x39a)]));}for(const _0x22978a of _0x407fac){const _0x3f7fec=_0x1f3fd8[_0x22978a];_0x3f7fec&&_0x3ceebd[_0x28bc14(0x257)](_0x3f7fec[_0x28bc14(0x423)])&&(_0x3ceebd[_0x28bc14(0x327)](_0x3f7fec['dataFieldId'],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x444)],void 0x0,_0x22978a),_0x3f7fec[_0x28bc14(0x3f7)]!==void 0x0&&_0x3ceebd['setSubtotalType'](_0x22978a,_0x3f7fec[_0x28bc14(0x3f7)]),_0x3f7fec[_0x28bc14(0x429)]&&_0x3ceebd['setFieldFormat'](_0x22978a,_0x3f7fec[_0x28bc14(0x429)]),_0x3f7fec[_0x28bc14(0x39a)]&&_0x3ceebd['renameField'](_0x3f7fec['id'],_0x3f7fec[_0x28bc14(0x39a)]));}const _0xe0e50b=_0x112c1a[_0x28bc14(0x1f2)];for(const {fieldId:_0x23bbfc,filterInfo:_0x6f328b}of _0xe0e50b)_0x3ceebd['setValueFilterInfo'](_0x23bbfc,_0x6f328b);}function _0x1f01f2(_0x18bb70,_0x1a745f){const _0x3e8e1f=_0x5d1072,_0x58a744=[];_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)]['Row']&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x415)],_0x30d5ff=>{const _0x192947=_0x3e8e1f;_0x58a744[_0x192947(0x27b)](_0x30d5ff[_0x192947(0x470)]());}),_0x1a745f===_0x2eef51['PivotTableFiledAreaEnum'][_0x3e8e1f(0x403)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)]['Column'],_0x37af3a=>{const _0x2ee6ae=_0x3e8e1f;_0x58a744[_0x2ee6ae(0x27b)](_0x37af3a['getId']());}),_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x2f1)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x2f1)],_0x275451=>{const _0x3aaa4a=_0x3e8e1f;_0x58a744[_0x3aaa4a(0x27b)](_0x275451[_0x3aaa4a(0x470)]());}),_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x444)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x444)],_0x3e72b0=>{const _0xf85612=_0x3e8e1f;_0x58a744[_0xf85612(0x27b)](_0x3e72b0[_0xf85612(0x470)]());}),_0x1a745f===void 0x0&&_0x18bb70[_0x3e8e1f(0x1c4)](_0x15d131=>{_0x58a744['push'](_0x15d131['getId']());});const _0x294c3d=_0x58a744[_0x3e8e1f(0x468)];for(let _0x1e2eb8=_0x294c3d-0x1;_0x1e2eb8>=0x0;_0x1e2eb8--)_0x18bb70[_0x3e8e1f(0x37e)](_0x58a744[_0x1e2eb8]);const _0x45855c=_0x18bb70['getValueFilterInfos']();for(const _0x5797e9 in _0x45855c)_0x18bb70[_0x3e8e1f(0x255)](_0x5797e9);}function _0x1446a4(_0x4a17c3,_0x310eb1){const _0x5ede37=_0x5d1072,_0xe87e6c=new Date(_0x2eef51[_0x5ede37(0x36f)](_0x310eb1)),_0xb8df66=new Date(_0x2eef51[_0x5ede37(0x36f)](_0x4a17c3)),_0x1a9265=_0xe87e6c[_0x5ede37(0x1cb)](),_0x50e952=_0xb8df66[_0x5ede37(0x1cb)](),_0x854358=_0xe87e6c[_0x5ede37(0x1af)](),_0x1cf183=_0xb8df66['getMonth'](),_0x516ef0=_0xe87e6c[_0x5ede37(0x3d5)](),_0x541876=_0xb8df66['getDate'](),_0x6966b4=_0x1a9265===_0x50e952,_0x5ee002=_0x6966b4&&_0x854358===_0x1cf183;return _0x6966b4&&_0x5ee002&&!(_0x5ee002&&_0x516ef0===_0x541876)?_0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x5ede37(0x23f)]:_0x6966b4&&!_0x5ee002?_0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x5ede37(0x39e)]:_0x2eef51[_0x5ede37(0x1cf)][_0x5ede37(0x17e)];}function _0x379197(_0x5ca8f2,_0x14422c){const _0x290b7e=_0x5d1072,_0x2ef3d2=_0x5ca8f2[_0x290b7e(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel'])['getTextInfo']();let _0x5b3c54='';switch(_0x14422c){case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x23f)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x298)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x39e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x33c)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x17e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x2cf)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x319)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.month'];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2ae)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x390)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2e7)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.date'];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x33e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x295)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x1c7)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.hour'];break;case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x1dd)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x22a)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2a0)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.monthDate'];break;case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x17a)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x453)];break;default:_0x5b3c54='';break;}return _0x5b3c54;}const _0x339ccc=_0x5d1072(0x45b),_0x28efdf={};var _0x4a0588=Object[_0x5d1072(0x2c5)],_0x548fef=(_0x3942d5,_0x22fb59,_0x19aa10,_0x4e68be)=>{for(var _0x5a4ec2=_0x4e68be>0x1?void 0x0:_0x4e68be?_0x4a0588(_0x22fb59,_0x19aa10):_0x22fb59,_0x3c2166=_0x3942d5['length']-0x1,_0x407dc0;_0x3c2166>=0x0;_0x3c2166--)(_0x407dc0=_0x3942d5[_0x3c2166])&&(_0x5a4ec2=_0x407dc0(_0x5a4ec2)||_0x5a4ec2);return _0x5a4ec2;},_0x3ae92c=(_0x5a2701,_0x54b62c)=>(_0x820e86,_0x561e87)=>_0x54b62c(_0x820e86,_0x561e87,_0x5a2701);_0x1cc2c4['SheetsPivotTableConfigModel']=class extends _0x374f23['Disposable']{constructor(_0x5bafda,_0x4c5b14,_0x4f6b47,_0x5e613e,_0x5e044b){const _0x221b45=_0x5d1072;super(),_0x1e0b19(this,'_model',new Map()),_0x1e0b19(this,_0x221b45(0x419),new Map()),_0x1e0b19(this,_0x221b45(0x336),new Map()),_0x1e0b19(this,_0x221b45(0x308),new Map()),_0x1e0b19(this,_0x221b45(0x3e6),new _0x1cd777[(_0x221b45(0x2ac))]()),_0x1e0b19(this,_0x221b45(0x1ba),new _0x1cd777['Subject']()),_0x1e0b19(this,'pivotInitCompleted$',this[_0x221b45(0x1ba)][_0x221b45(0x3f4)]()),_0x1e0b19(this,_0x221b45(0x2bc),new _0x1cd777['Subject']()),_0x1e0b19(this,_0x221b45(0x2b7),this[_0x221b45(0x2bc)][_0x221b45(0x3f4)]()),_0x1e0b19(this,_0x221b45(0x187),{}),_0x1e0b19(this,'configVersion$',this[_0x221b45(0x3e6)][_0x221b45(0x3f4)]()),(this['_injector']=_0x5bafda,this[_0x221b45(0x454)]=_0x4c5b14,this[_0x221b45(0x443)]=_0x4f6b47,this['_resourceManagerService']=_0x5e613e,this[_0x221b45(0x40f)]=_0x5e044b,this[_0x221b45(0x18b)](),this[_0x221b45(0x212)]());const _0xf02b4b=this['_configService']['getConfig'](_0x339ccc);(_0xf02b4b==null?void 0x0:_0xf02b4b['notExecuteFormula'])===!0x0&&this[_0x221b45(0x348)]();}['_initUnitDisposed'](){const _0x41a8bc=_0x5d1072;this[_0x41a8bc(0x372)](this['_univerInstanceService'][_0x41a8bc(0x46a)](_0x374f23[_0x41a8bc(0x1e8)][_0x41a8bc(0x2eb)])['subscribe'](_0x257f83=>{const _0x2daadc=_0x41a8bc;this[_0x2daadc(0x282)](_0x257f83['getUnitId']());}));}[_0x5d1072(0x3d3)](){const _0x42ae56=_0x5d1072;this[_0x42ae56(0x1ba)][_0x42ae56(0x3f8)](!0x0);}['_initLocale'](){const _0x29fc1f=_0x5d1072,_0x5341a9=_0x3db0d7(this[_0x29fc1f(0x42a)],_0xe2c987,'',{});this[_0x29fc1f(0x187)]=_0x5341a9,this[_0x29fc1f(0x454)][_0x29fc1f(0x17c)](_0x4a9d2d['id'],{'textInfo':_0x5341a9},{'onlyLocal':!0x0});}[_0x5d1072(0x277)](){const _0x5dfd5e=_0x5d1072;return this[_0x5dfd5e(0x187)];}[_0x5d1072(0x481)](_0x2bd59a,_0x48532a,_0x1942af,_0x2ad7fd,_0x164636){const _0x3bef1d=_0x5d1072;this[_0x3bef1d(0x1e4)](_0x2bd59a,_0x48532a,_0x1942af,_0x2ad7fd),this['updatePivotTableRangeInfo'](_0x2bd59a,_0x48532a,_0x1942af,_0x164636);}['getPivotTableConfig'](_0x4b1899,_0x42efb1,_0x4831c){const _0x445892=_0x5d1072;var _0x5560de;const _0x4b0c34=(_0x5560de=this[_0x445892(0x193)][_0x445892(0x411)](_0x4b1899))==null?void 0x0:_0x5560de[_0x445892(0x411)](_0x42efb1);if(_0x4b0c34)return _0x4b0c34[_0x445892(0x411)](_0x4831c);}[_0x5d1072(0x335)](_0x21832c,_0x34f438){const _0x4ca3be=_0x5d1072,_0x131c8d=this[_0x4ca3be(0x193)][_0x4ca3be(0x411)](_0x21832c);if(_0x131c8d){for(const [_0x16fb1a,_0x5e3e71]of _0x131c8d[_0x4ca3be(0x38d)]())for(const [_0x485a08,_0xf4d1b7]of _0x5e3e71[_0x4ca3be(0x38d)]())if(_0x485a08===_0x34f438)return _0xf4d1b7[_0x4ca3be(0x357)];}}[_0x5d1072(0x1c8)](_0x3438d9,_0x4e7d80,_0x26862f){const _0xbf1424=_0x5d1072,_0x4a6d17=this[_0xbf1424(0x458)](_0x3438d9,_0x4e7d80,_0x26862f);return _0x4a6d17==null?void 0x0:_0x4a6d17[_0xbf1424(0x357)];}[_0x5d1072(0x239)](_0x20708a,_0x4c8817){const _0x461852=_0x5d1072;var _0x3a2dc7;return(_0x3a2dc7=this[_0x461852(0x193)]['get'](_0x20708a))==null?void 0x0:_0x3a2dc7[_0x461852(0x411)](_0x4c8817);}[_0x5d1072(0x37c)](_0x5d20a8,_0x43661e,_0x1afc7e,_0x473ad4){const _0x187615=_0x5d1072,_0x5c9867=this[_0x187615(0x3d7)](_0x5d20a8,_0x43661e);_0x473ad4?_0x5c9867[_0x187615(0x3b5)](_0x1afc7e,_0x473ad4):_0x5c9867[_0x187615(0x2af)](_0x1afc7e),this['_pivotConfigChange$']['next']({'unitId':_0x5d20a8,'subUnitId':_0x43661e,'pivotTableId':_0x1afc7e,'pivotTableConfig':_0x473ad4});}[_0x5d1072(0x43d)](_0x2eb9d0,_0x5e6859){const _0x58bc56=_0x5d1072;var _0x5231f8;return(_0x5231f8=this[_0x58bc56(0x419)][_0x58bc56(0x411)](_0x2eb9d0))==null?void 0x0:_0x5231f8['collections'][_0x5e6859];}[_0x5d1072(0x3e5)](_0x1f7d07,_0x4278b0){const _0x5b56b7=_0x5d1072;this[_0x5b56b7(0x419)][_0x5b56b7(0x3b5)](_0x1f7d07,_0x4278b0),this[_0x5b56b7(0x3e6)][_0x5b56b7(0x3f8)](Math['random']());}['_ensurePivotMap'](_0x5cf9d3,_0x10123c){const _0x27832c=_0x5d1072;let _0x60e67f=this['_model'][_0x27832c(0x411)](_0x5cf9d3);_0x60e67f||(_0x60e67f=new Map(),this[_0x27832c(0x193)][_0x27832c(0x3b5)](_0x5cf9d3,_0x60e67f));let _0x40627d=_0x60e67f[_0x27832c(0x411)](_0x10123c);return _0x40627d||(_0x40627d=new Map(),_0x60e67f[_0x27832c(0x3b5)](_0x10123c,_0x40627d)),_0x40627d;}[_0x5d1072(0x318)](_0x59e2cd,_0x2589ce){const _0x40742e=_0x5d1072;let _0x5301e0=this['_pivotTableRangeInfo'][_0x40742e(0x411)](_0x59e2cd);_0x5301e0||(_0x5301e0=new Map(),this[_0x40742e(0x336)]['set'](_0x59e2cd,_0x5301e0));let _0xe7aafc=_0x5301e0['get'](_0x2589ce);return _0xe7aafc||(_0xe7aafc=new Map(),_0x5301e0[_0x40742e(0x3b5)](_0x2589ce,_0xe7aafc)),_0xe7aafc;}[_0x5d1072(0x223)](_0x2b9796,_0x3fe29d){const _0x55a19b=_0x5d1072;let _0x30b51b=this[_0x55a19b(0x308)]['get'](_0x2b9796);_0x30b51b||(_0x30b51b=new Map(),this['_pivotTableMatrixInfo']['set'](_0x2b9796,_0x30b51b));let _0x191759=_0x30b51b['get'](_0x3fe29d);return _0x191759||(_0x191759=new Map(),_0x30b51b[_0x55a19b(0x3b5)](_0x3fe29d,_0x191759)),_0x191759;}[_0x5d1072(0x2c8)](_0x5eddc1,_0x288457,_0x4c20e4,_0x1a9d3b){const _0x3f4f2c=_0x5d1072;var _0x4f923b;const _0x40b0e6=this[_0x3f4f2c(0x318)](_0x5eddc1,_0x288457),_0x426611=(_0x4f923b=_0x40b0e6[_0x3f4f2c(0x411)](_0x4c20e4))==null?void 0x0:_0x4f923b[_0x3f4f2c(0x1bd)];_0x40b0e6['set'](_0x4c20e4,{'oldRangeInfo':_0x426611,'rangeInfo':_0x1a9d3b});}[_0x5d1072(0x1e4)](_0x3d0747,_0x33dba0,_0x3fc8d9,_0x1048e7){const _0x1e6839=_0x5d1072;var _0x4ace7d;const _0x1f7ff9=this[_0x1e6839(0x223)](_0x3d0747,_0x33dba0),_0x210e3b=(_0x4ace7d=_0x1f7ff9['get'](_0x3fc8d9))==null?void 0x0:_0x4ace7d[_0x1e6839(0x20d)];_0x1f7ff9[_0x1e6839(0x3b5)](_0x3fc8d9,{'oldMatrix':_0x210e3b,'matrix':_0x1048e7});}[_0x5d1072(0x250)](_0x527dd8,_0x372da7,_0x3655cc){const _0x3a0d4c=_0x5d1072;var _0x162ac3,_0x509e7f;return(_0x509e7f=(_0x162ac3=this[_0x3a0d4c(0x336)][_0x3a0d4c(0x411)](_0x527dd8))==null?void 0x0:_0x162ac3[_0x3a0d4c(0x411)](_0x372da7))==null?void 0x0:_0x509e7f[_0x3a0d4c(0x411)](_0x3655cc);}[_0x5d1072(0x1a2)](_0xccc04,_0x3f4aec,_0x31c6f0){const _0x570de3=_0x5d1072;var _0x38f3dd,_0x39f51a;return(_0x39f51a=(_0x38f3dd=this[_0x570de3(0x308)][_0x570de3(0x411)](_0xccc04))==null?void 0x0:_0x38f3dd[_0x570de3(0x411)](_0x3f4aec))==null?void 0x0:_0x39f51a[_0x570de3(0x411)](_0x31c6f0);}[_0x5d1072(0x282)](_0x379415){const _0x4d6039=_0x5d1072;this['_model'][_0x4d6039(0x2af)](_0x379415),this[_0x4d6039(0x419)][_0x4d6039(0x2af)](_0x379415);}[_0x5d1072(0x3a9)](_0x3e9aca){const _0x2e982b=_0x5d1072,_0x5eef05={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['_collectionConfigModel']['get'](_0x3e9aca)&&(_0x5eef05['dataFieldManagerConfig'][_0x3e9aca]=this[_0x2e982b(0x419)]['get'](_0x3e9aca)),this['_model'][_0x2e982b(0x411)](_0x3e9aca)){_0x5eef05['pivotTableConfigs'][_0x3e9aca]={};const _0x3903c2=this[_0x2e982b(0x193)][_0x2e982b(0x411)](_0x3e9aca);_0x3903c2!=null&&_0x3903c2['size']&&[..._0x3903c2[_0x2e982b(0x3d8)]()][_0x2e982b(0x274)](_0x5db851=>{const _0x1408c6=_0x2e982b,_0x2f3e15=_0x3903c2['get'](_0x5db851);_0x2f3e15!=null&&_0x2f3e15[_0x1408c6(0x249)]&&(_0x5eef05[_0x1408c6(0x1c3)][_0x3e9aca][_0x5db851]={},[..._0x2f3e15[_0x1408c6(0x3d8)]()]['forEach'](_0x44129b=>{const _0xf89be=_0x1408c6,_0x576830=_0x2f3e15[_0xf89be(0x411)](_0x44129b);_0x576830&&(_0x5eef05['pivotTableConfigs'][_0x3e9aca][_0x5db851][_0x44129b]=_0x576830);}));});}return _0x5eef05;}[_0x5d1072(0x348)](){const _0x5a8415=_0x5d1072;this[_0x5a8415(0x372)](this[_0x5a8415(0x2d1)]['registerPluginResource']({'toJson':_0x394d59=>JSON[_0x5a8415(0x22c)](this[_0x5a8415(0x3a9)](_0x394d59)),'parseJson':_0x6afeb6=>({}),'businesses':[_0x374f23[_0x5a8415(0x1e8)][_0x5a8415(0x2eb)]],'pluginName':_0xcaa86f,'onLoad':(_0x33568a,_0x501911)=>{},'onUnLoad':_0x3c66d1=>{const _0x24c218=_0x5a8415;this[_0x24c218(0x282)](_0x3c66d1);}}));}},_0x1cc2c4[_0x5d1072(0x1ea)]=_0x548fef([_0x3ae92c(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x3ae92c(0x1,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x386)])),_0x3ae92c(0x2,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x1d8)])),_0x3ae92c(0x3,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x30b)])),_0x3ae92c(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x224)]))],_0x1cc2c4[_0x5d1072(0x1ea)]);var _0x5cfa3f=Object[_0x5d1072(0x2c5)],_0x365d82=(_0x5b073c,_0x3fc117,_0x1d10f3,_0x3549c0)=>{for(var _0x1e37b0=_0x3549c0>0x1?void 0x0:_0x3549c0?_0x5cfa3f(_0x3fc117,_0x1d10f3):_0x3fc117,_0x52e12d=_0x5b073c['length']-0x1,_0x10ebdf;_0x52e12d>=0x0;_0x52e12d--)(_0x10ebdf=_0x5b073c[_0x52e12d])&&(_0x1e37b0=_0x10ebdf(_0x1e37b0)||_0x1e37b0);return _0x1e37b0;},_0x1ca81d=(_0x564f9f,_0x2c4401)=>(_0x46f0dc,_0x38672d)=>_0x2c4401(_0x46f0dc,_0x38672d,_0x564f9f);_0x1cc2c4['SheetsPivotTableAdaptorModel']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x5367ce,_0x476c2b,_0x2bb2ff,_0x40886c,_0x301555){const _0x3ca936=_0x5d1072;super(),_0x1e0b19(this,_0x3ca936(0x424),new Map()),_0x1e0b19(this,'_pivotRenderValueMatrixCache',new Map()),_0x1e0b19(this,'_markDirty$',new _0x1cd777['Subject']()),_0x1e0b19(this,_0x3ca936(0x1d2),this['_markDirty$'][_0x3ca936(0x3f4)]()),_0x1e0b19(this,_0x3ca936(0x2e9),new _0x1cd777[(_0x3ca936(0x2ac))]()),_0x1e0b19(this,_0x3ca936(0x461),this[_0x3ca936(0x2e9)][_0x3ca936(0x3f4)]()),_0x1e0b19(this,_0x3ca936(0x187)),(this[_0x3ca936(0x2dc)]=_0x5367ce,this[_0x3ca936(0x42a)]=_0x476c2b,this['_sheetsPivotTableConfigModel']=_0x2bb2ff,this[_0x3ca936(0x443)]=_0x40886c,this['_exclusiveRangeService']=_0x301555,this[_0x3ca936(0x18b)](),this['_initUnitDisposed']());}[_0x5d1072(0x212)](){const _0x325219=_0x5d1072;this[_0x325219(0x372)](this[_0x325219(0x443)][_0x325219(0x46a)](_0x374f23['UniverInstanceType'][_0x325219(0x2eb)])['subscribe'](_0x3dcdd6=>{const _0x2e33b8=_0x325219;this[_0x2e33b8(0x282)](_0x3dcdd6['getUnitId']());}));}[_0x5d1072(0x18b)](){const _0x42f5dc=_0x5d1072;this[_0x42f5dc(0x187)]=_0x3db0d7(this['_injector'],_0xe2c987,'',{});}[_0x5d1072(0x389)](_0x826cc8){const _0x5c78a9=_0x5d1072,{view:_0x55a561,unitId:_0x27e399,subUnitId:_0x4bdf76,pivotTableId:_0xeab1b,type:_0x424fdb}=_0x826cc8,_0x104c98=this['_sheetsPivotTableConfigModel'][_0x5c78a9(0x458)](_0x27e399,_0x4bdf76,_0xeab1b);if(!_0x55a561||!_0x104c98||_0x424fdb===_0x5ae422['Delete'])return;const {pageView:_0x16a468,cornerView:_0x26b8c0,rowView:_0x393890,colView:_0x4ef658,dataView:_0x11c276}=_0x55a561,_0x5d035f=_0x104c98[_0x5c78a9(0x357)],_0xa8ff6b=_0x104c98[_0x5c78a9(0x475)],_0x16a33b=this[_0x5c78a9(0x42b)](_0x27e399,_0x4bdf76),_0x3e1924=this[_0x5c78a9(0x189)](_0x27e399,_0x4bdf76,_0xeab1b);if(_0xa8ff6b)return this[_0x5c78a9(0x179)](_0x826cc8,_0x16a33b,_0x5d035f,_0x3e1924);{const _0x4c2b82=_0x227f31(_0x5d035f,_0x16a468,!0x0),_0x386c2b=_0x16a468[_0x5c78a9(0x18f)]>=0x0?_0x16a468[_0x5c78a9(0x18f)]+0x1:0x0,_0x5e5b23=_0x26b8c0[_0x5c78a9(0x46e)](),_0x437901=_0x26b8c0[_0x5c78a9(0x37f)](),_0x5be0e8=_0x4c2b82[_0x5c78a9(0x468)]>0x0?_0x9545db:0x0,_0x1815e1=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8,'col':_0x5d035f['col']},_0x26b8c0,!0x1,!0x1),_0x332ce8=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8+_0x5e5b23,'col':_0x5d035f[_0x5c78a9(0x434)]},_0x393890,!0x1,!0x0),_0x1af589=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8,'col':_0x5d035f[_0x5c78a9(0x434)]+_0x437901},_0x4ef658,!0x1,!0x0),_0x13bacc=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8+_0x5e5b23,'col':_0x5d035f['col']+_0x437901},_0x11c276,!0x1,!0x1);_0x3e1924[_0x5c78a9(0x1bc)]={'rowRanges':_0x332ce8,'colRanges':_0x1af589,'cornerRanges':_0x1815e1,'dataRanges':_0x13bacc,'pageRanges':_0x4c2b82};const _0x530f51=_0x240ff5(this[_0x5c78a9(0x42a)],_0x55a561,_0x104c98,this[_0x5c78a9(0x187)]),{valueMatrix:_0xa0ff5a,rowInfo:_0xc8c9ce,colInfo:_0x9c142f,cornerInfo:_0x280570,rowHeaderMap:_0x43b268,colHeaderMap:_0x14eb49}=_0x530f51;return _0x3e1924['areaInfo']={'rowInfo':_0xc8c9ce,'colInfo':_0x9c142f,'cornerInfo':_0x280570},_0x3e1924[_0x5c78a9(0x271)]={'rowHeaderMap':_0x43b268,'colHeaderMap':_0x14eb49},_0xa0ff5a[_0x5c78a9(0x274)]((_0x165232,_0x2546f2)=>{const _0x42049a=_0x5c78a9;Object[_0x42049a(0x3d8)](_0x2546f2)['forEach'](_0x146677=>{const _0x16cf08=_0x42049a,_0x59651e=+_0x146677,_0x2ae797=_0xa0ff5a[_0x16cf08(0x216)](_0x165232,_0x59651e);_0x16a33b['setValue'](_0x165232,_0x59651e,_0x2ae797);});}),this[_0x5c78a9(0x2e9)][_0x5c78a9(0x3f8)]({'unitId':_0x27e399,'subUnitId':_0x4bdf76,'valueMatrix':_0x16a33b,'rangesCache':_0x3e1924[_0x5c78a9(0x1bc)],'pivotTableId':_0xeab1b,'type':_0x826cc8[_0x5c78a9(0x1fd)]}),this[_0x5c78a9(0x1be)][_0x5c78a9(0x481)](_0x27e399,_0x4bdf76,_0xeab1b,_0x16a33b,_0x3e1924[_0x5c78a9(0x1bc)]),this[_0x5c78a9(0x3e1)][_0x5c78a9(0x1fc)](_0x27e399,_0x4bdf76,_0x2e78bd,this['_createExclusiveRange'](_0x3e1924[_0x5c78a9(0x1bc)],_0xeab1b)),{'rangeCache':_0x3e1924['rangesInfo'],'matrix':_0x16a33b};}}[_0x5d1072(0x179)](_0xd1cb5f,_0x32c543,_0xc9048c,_0x5f5c70){const _0x3ca1ca=_0x5d1072,_0x2c6187=this[_0x3ca1ca(0x2dc)]['t'],{unitId:_0x41d97f,subUnitId:_0x503b3e,pivotTableId:_0x3f08fa}=_0xd1cb5f,_0x5505d8={'filter':_0x2c6187(_0x3ca1ca(0x362)),'row':_0x2c6187('sheets-pivot.emptyPivot.row'),'column':_0x2c6187(_0x3ca1ca(0x2ef)),'values':_0x2c6187(_0x3ca1ca(0x286))},{matrixCache:_0x20a682,rangesCache:_0x4b0b4b}=_0x36fb91(_0x5505d8,_0xc9048c);return _0x20a682[_0x3ca1ca(0x1d1)]((_0x532a2e,_0x2082a1,_0x131787)=>{const _0x222e22=_0x3ca1ca;_0x32c543[_0x222e22(0x388)](_0x532a2e,_0x2082a1,_0x131787);}),_0x5f5c70[_0x3ca1ca(0x1bc)]=_0x4b0b4b,this['_viewUpdate$'][_0x3ca1ca(0x3f8)]({'unitId':_0x41d97f,'subUnitId':_0x503b3e,'valueMatrix':_0x32c543,'rangesCache':_0x4b0b4b,'pivotTableId':_0x3f08fa,'type':_0xd1cb5f[_0x3ca1ca(0x1fd)],'isEmpty':!0x0}),this[_0x3ca1ca(0x1be)]['updateViewInfo'](_0x41d97f,_0x503b3e,_0x3f08fa,_0x32c543,_0x4b0b4b),this[_0x3ca1ca(0x3e1)][_0x3ca1ca(0x1fc)](_0x41d97f,_0x503b3e,_0x2e78bd,this['_createExclusiveRange'](_0x4b0b4b,_0x3f08fa)),{'rangeCache':_0x5f5c70[_0x3ca1ca(0x1bc)],'matrix':_0x32c543};}[_0x5d1072(0x31d)](_0x2e3130,_0x464d08){const _0x6f2601=[],_0x24cd9a=_0x17e537(_0x2e3130);for(const _0x20e80b of _0x24cd9a)_0x6f2601['push']({'groupId':_0x464d08,'range':_0x20e80b});return _0x6f2601;}['clearRenderCache'](_0x4c1266){const _0x2d1097=_0x5d1072;var _0x3f19f3,_0xccb9d1,_0x4deb42,_0x2020a0;const {pivotTableId:_0x5b167e,unitId:_0x386b64,subUnitId:_0x5c006c}=_0x4c1266;if(!_0x5b167e||!_0x386b64||!_0x5c006c)return;const _0x36f0ff=this[_0x2d1097(0x42b)](_0x386b64,_0x5c006c),_0x39152a=(_0xccb9d1=(_0x3f19f3=this[_0x2d1097(0x424)][_0x2d1097(0x411)](_0x386b64))==null?void 0x0:_0x3f19f3[_0x2d1097(0x411)](_0x5c006c))==null?void 0x0:_0xccb9d1[_0x2d1097(0x411)](_0x5b167e);if(_0x39152a!=null&&_0x39152a[_0x2d1097(0x1bc)]){for(const _0x54fe9d of Object['keys'](_0x39152a[_0x2d1097(0x1bc)]))_0x39152a[_0x2d1097(0x1bc)][_0x54fe9d][_0x2d1097(0x274)](_0x47337e=>{const _0x112aaa=_0x2d1097;for(let _0x4a39eb=_0x47337e['startRow'];_0x4a39eb<=_0x47337e['endRow'];_0x4a39eb++)for(let _0xf92eb1=_0x47337e['startColumn'];_0xf92eb1<=_0x47337e[_0x112aaa(0x217)];_0xf92eb1++)_0x36f0ff[_0x112aaa(0x370)](_0x4a39eb,_0xf92eb1);});}_0x39152a&&((_0x2020a0=(_0x4deb42=this['_pivotRenderInfoCache']['get'](_0x386b64))==null?void 0x0:_0x4deb42['get'](_0x5c006c))==null||_0x2020a0[_0x2d1097(0x2af)](_0x5b167e)),this[_0x2d1097(0x2e9)][_0x2d1097(0x3f8)]({'unitId':_0x386b64,'subUnitId':_0x5c006c,'valueMatrix':_0x36f0ff,'pivotTableId':_0x5b167e,'rangesCache':void 0x0,'type':_0x4c1266[_0x2d1097(0x1fd)]}),this[_0x2d1097(0x3e1)]['clearExclusiveRangesByGroupId'](_0x386b64,_0x5c006c,_0x2e78bd,_0x5b167e);}[_0x5d1072(0x189)](_0x422249,_0x57ce5a,_0x11292f){const _0x3373e0=_0x5d1072;var _0x228fa6,_0x5980bb,_0x1f5dfd,_0x285d5f,_0x51f236,_0x31a34c;return this[_0x3373e0(0x424)]['has'](_0x422249)||this[_0x3373e0(0x424)]['set'](_0x422249,new Map()),(_0x228fa6=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))!=null&&_0x228fa6[_0x3373e0(0x1b5)](_0x57ce5a)||(_0x5980bb=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null||_0x5980bb[_0x3373e0(0x3b5)](_0x57ce5a,new Map()),(_0x285d5f=(_0x1f5dfd=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null?void 0x0:_0x1f5dfd['get'](_0x57ce5a))!=null&&_0x285d5f[_0x3373e0(0x1b5)](_0x11292f)||(_0x31a34c=(_0x51f236=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null?void 0x0:_0x51f236[_0x3373e0(0x411)](_0x57ce5a))==null||_0x31a34c[_0x3373e0(0x3b5)](_0x11292f,{}),this['_pivotRenderInfoCache'][_0x3373e0(0x411)](_0x422249)[_0x3373e0(0x411)](_0x57ce5a)[_0x3373e0(0x411)](_0x11292f);}[_0x5d1072(0x42b)](_0x33bb3b,_0x4b5cea){const _0x4b76b4=_0x5d1072;var _0x3e899e,_0x5bbf78;return this[_0x4b76b4(0x385)]['has'](_0x33bb3b)||this[_0x4b76b4(0x385)][_0x4b76b4(0x3b5)](_0x33bb3b,new Map()),(_0x3e899e=this['_pivotRenderValueMatrixCache']['get'](_0x33bb3b))!=null&&_0x3e899e['has'](_0x4b5cea)||(_0x5bbf78=this[_0x4b76b4(0x385)][_0x4b76b4(0x411)](_0x33bb3b))==null||_0x5bbf78[_0x4b76b4(0x3b5)](_0x4b5cea,new _0x374f23[(_0x4b76b4(0x33b))]()),this['_pivotRenderValueMatrixCache'][_0x4b76b4(0x411)](_0x33bb3b)[_0x4b76b4(0x411)](_0x4b5cea);}['getPivotTableCellData'](_0x439aa4,_0x23f0b7,_0xaa27a6,_0x75612e){const _0x15ed42=_0x5d1072;var _0x258e6f,_0x58b894;const _0x4bf385=(_0x58b894=(_0x258e6f=this[_0x15ed42(0x385)][_0x15ed42(0x411)](_0x439aa4))==null?void 0x0:_0x258e6f[_0x15ed42(0x411)](_0x23f0b7))==null?void 0x0:_0x58b894[_0x15ed42(0x216)](_0xaa27a6,_0x75612e);if(_0x4bf385!=null)return _0x4bf385;}[_0x5d1072(0x445)](_0x2f9a40,_0x5f42a8,_0x15417e,_0x49cc45){const _0x337ec9=_0x5d1072;var _0x1f5d12;const _0x21d555=_0x374f23['cellToRange'](_0x15417e,_0x49cc45),_0x546e13=(_0x1f5d12=this['_pivotRenderInfoCache'][_0x337ec9(0x411)](_0x2f9a40))==null?void 0x0:_0x1f5d12[_0x337ec9(0x411)](_0x5f42a8);return _0x546e13?Array[_0x337ec9(0x2d9)](_0x546e13[_0x337ec9(0x3d8)]())['find'](_0x28f0c0=>{const _0x4684eb=_0x337ec9,_0x4de43f=_0x546e13[_0x4684eb(0x411)](_0x28f0c0),_0x340cd9=_0x4de43f==null?void 0x0:_0x4de43f['rangesInfo'];return _0x340cd9?Object['keys'](_0x340cd9)['some'](_0x530be9=>_0x340cd9[_0x530be9][_0x4684eb(0x3c4)](_0x3efc8a=>_0x374f23[_0x4684eb(0x236)][_0x4684eb(0x447)](_0x3efc8a,_0x21d555))):!0x1;}):void 0x0;}[_0x5d1072(0x31b)](_0x330ec7,_0x46c72e,_0x1c9d08){const _0x1507dd=_0x5d1072;var _0x4771e0;const _0x176ac6=(_0x4771e0=this[_0x1507dd(0x424)]['get'](_0x330ec7))==null?void 0x0:_0x4771e0[_0x1507dd(0x411)](_0x46c72e),_0x3d612e=[];return _0x176ac6&&Array[_0x1507dd(0x2d9)](_0x176ac6[_0x1507dd(0x3d8)]())['forEach'](_0x972602=>{const _0x38a370=_0x1507dd,_0x44523a=_0x176ac6['get'](_0x972602),_0x3d9086=_0x44523a==null?void 0x0:_0x44523a[_0x38a370(0x1bc)];if(_0x3d9086)for(const _0xa49a59 of Object[_0x38a370(0x39c)](_0x3d9086)){let _0x3691e7=!0x1;for(const _0x581f08 of _0xa49a59)if(_0x374f23['Rectangle'][_0x38a370(0x1c1)](_0x581f08,_0x1c9d08)){_0x3d612e[_0x38a370(0x27b)](_0x972602),_0x3691e7=!0x0;break;}if(_0x3691e7)break;}}),_0x3d612e;}[_0x5d1072(0x194)](_0x1c8e9c,_0x2fdc5d){const _0x566aed=_0x5d1072;var _0x1f0a51,_0x36be52;return(_0x36be52=(_0x1f0a51=this[_0x566aed(0x385)]['get'](_0x1c8e9c))==null?void 0x0:_0x1f0a51[_0x566aed(0x411)](_0x2fdc5d))!=null?_0x36be52:new _0x374f23[(_0x566aed(0x33b))]();}[_0x5d1072(0x18c)](_0x1ff08e,_0x35cca3){const _0x30ae50=_0x5d1072;var _0x30de17;return(_0x30de17=this['_pivotRenderInfoCache']['get'](_0x1ff08e))==null?void 0x0:_0x30de17[_0x30ae50(0x411)](_0x35cca3);}[_0x5d1072(0x1b9)](_0x50d786,_0x6e3301,_0x24948d){const _0x4a8f46=_0x5d1072;var _0x2191e5,_0x205288;return(_0x205288=(_0x2191e5=this['_pivotRenderInfoCache'][_0x4a8f46(0x411)](_0x50d786))==null?void 0x0:_0x2191e5['get'](_0x6e3301))==null?void 0x0:_0x205288[_0x4a8f46(0x411)](_0x24948d);}['deleteUnitId'](_0x523c09){const _0x552ba0=_0x5d1072;this[_0x552ba0(0x424)]['delete'](_0x523c09),this[_0x552ba0(0x385)]['delete'](_0x523c09);}[_0x5d1072(0x43a)](_0x5e450f,_0x47f5b9){const _0x575de2=_0x5d1072;this['_markDirty$'][_0x575de2(0x3f8)]({'unitId':_0x5e450f,'subUnitId':_0x47f5b9});}},_0x1cc2c4['SheetsPivotTableAdaptorModel']=_0x365d82([_0x1ca81d(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cd)])),_0x1ca81d(0x1,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x1ca81d(0x2,_0x374f23['Inject'](_0x1cc2c4['SheetsPivotTableConfigModel'])),_0x1ca81d(0x3,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x1d8)])),_0x1ca81d(0x4,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x3bf)]))],_0x1cc2c4[_0x5d1072(0x3ba)]);var _0x29e034=Object[_0x5d1072(0x2c5)],_0x4eba98=(_0x56efab,_0xf3b5b0,_0xe91987,_0x115922)=>{for(var _0x3887d3=_0x115922>0x1?void 0x0:_0x115922?_0x29e034(_0xf3b5b0,_0xe91987):_0xf3b5b0,_0x3ca54b=_0x56efab['length']-0x1,_0x4db0f9;_0x3ca54b>=0x0;_0x3ca54b--)(_0x4db0f9=_0x56efab[_0x3ca54b])&&(_0x3887d3=_0x4db0f9(_0x3887d3)||_0x3887d3);return _0x3887d3;},_0x38b3f0=(_0x403838,_0x408f6a)=>(_0x5e78df,_0x302f50)=>_0x408f6a(_0x5e78df,_0x302f50,_0x403838);_0x1cc2c4['SheetsPivotTableService']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x25a4bf,_0x32b602){const _0x33e44e=_0x5d1072;super(),_0x1e0b19(this,_0x33e44e(0x24d),new _0x374f23['AsyncInterceptorManager']({'PIVOT_PERFORM_CHECK':_0x460ff6})),_0x1e0b19(this,_0x33e44e(0x199),new _0x374f23[(_0x33e44e(0x2e4))]({'PIVOT_MUTATION_GENERATE':_0x1b27ae})),(this[_0x33e44e(0x420)]=_0x25a4bf,this[_0x33e44e(0x2d0)]=_0x32b602,this['_init']());}['_init'](){const _0x58395c=_0x5d1072;this[_0x58395c(0x482)]();}['getPivotPerformCheck'](_0x1130c4){const _0x195344=_0x5d1072;return this[_0x195344(0x24d)][_0x195344(0x3a5)](_0x460ff6)(!0x1,_0x1130c4);}[_0x5d1072(0x482)](){const _0x388acd=_0x5d1072;this[_0x388acd(0x372)](this['_sheetInterceptorService'][_0x388acd(0x2bf)](_0x24a2a7[_0x388acd(0x2a7)][_0x388acd(0x325)],{'priority':0xc8,'effect':_0x374f23[_0x388acd(0x270)][_0x388acd(0x444)]|_0x374f23['InterceptorEffectEnum'][_0x388acd(0x3fe)],'handler':(_0x3f98a8,_0x3b136c,_0x57050f)=>{const _0xf94295=_0x388acd,{row:_0x3f2065,col:_0x27f71c,unitId:_0x42fd47,subUnitId:_0x3ae4f1,workbook:_0x1c99fc}=_0x3b136c,_0x38badc=this[_0xf94295(0x2d0)][_0xf94295(0x360)](_0x42fd47,_0x3ae4f1,_0x3f2065,_0x27f71c);if(!_0x38badc)return _0x57050f(_0x3f98a8);const _0x44e7a8={..._0x3f98a8};(_0x38badc['v']||_0x38badc['v']===0x0)&&(_0x44e7a8['v']=_0x38badc['v']),_0x38badc['t']&&(_0x44e7a8['t']=_0x38badc['t']);const _0x59ed4b=(typeof(_0x3f98a8==null?void 0x0:_0x3f98a8['s'])==_0xf94295(0x436)?_0x1c99fc['getStyles']()[_0xf94295(0x411)](_0x3f98a8==null?void 0x0:_0x3f98a8['s']):_0x3f98a8==null?void 0x0:_0x3f98a8['s'])||{},_0x3157f1=_0x1c99fc[_0xf94295(0x26a)]()[_0xf94295(0x411)](_0x38badc['s']),_0x18d2de={..._0x3157f1,..._0x59ed4b};_0x3157f1!=null&&_0x3157f1['n']&&(_0x18d2de['n']=_0x3157f1['n']);const _0x53edb5=_0x1c99fc[_0xf94295(0x26a)]()[_0xf94295(0x388)](_0x18d2de);return _0x44e7a8['s']=_0x53edb5,(_0x38badc['pbt']===_0x2eef51[_0xf94295(0x421)]['Collapse']||_0x38badc[_0xf94295(0x2d4)]===_0x2eef51[_0xf94295(0x421)][_0xf94295(0x241)])&&(_0x44e7a8[_0xf94295(0x2b8)]={},_0x44e7a8['fontRenderExtension'][_0xf94295(0x3fc)]=_0x1b6ed3),_0x57050f(_0x44e7a8);}}));}},_0x1cc2c4[_0x5d1072(0x3f9)]=_0x4eba98([_0x38b3f0(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7['SheetInterceptorService'])),_0x38b3f0(0x1,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x3ba)]))],_0x1cc2c4[_0x5d1072(0x3f9)]);const _0x2dc301={'id':_0x5d1072(0x1b8),'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'handler':(_0x361559,_0x32ede6)=>{const _0x278663=_0x5d1072;if(!_0x32ede6)return!0x1;if(!!_0x361559[_0x278663(0x411)](_0x374f23[_0x278663(0x224)])['getConfig'](_0x1e657c))return!0x0;const {pivotTableId:_0x3d44c7,fieldJSON:_0x1ea8f6,unitId:_0x1b94b2,subUnitId:_0x1dd48c}=_0x32ede6;let _0x28ac97;const {dataFieldType:_0x12ec31,id:_0x3aa022,name:_0x10dec9,hexCode:_0xed12cb,originalFieldId:_0x33244b}=_0x1ea8f6;if(_0x12ec31===_0x2eef51['PivotDataFieldTypeEnum'][_0x278663(0x1e5)]&&(_0x28ac97=new _0x2eef51[(_0x278663(0x3fd))](_0x3aa022,_0x10dec9,_0xed12cb,_0x33244b)),!_0x28ac97)return!0x1;const _0x32bce2=_0x361559[_0x278663(0x411)](_0x1cc2c4[_0x278663(0x38e)]),_0xc6fc80=_0x32bce2[_0x278663(0x367)](_0x1b94b2),_0xf10201=_0xc6fc80['getCollection'](_0x3d44c7);_0xc6fc80[_0x278663(0x387)](_0x28ac97),_0xf10201['addField'](_0x28ac97[_0x278663(0x470)](),_0x28ac97['getName']());const _0x29d32d=_0xf10201[_0x278663(0x35d)](_0x28ac97['getOriginFieldId']());_0x29d32d&&_0x28ac97['refreshGroupField'](_0x29d32d);const _0x33a01f=_0x32bce2[_0x278663(0x458)](_0x1b94b2,_0x1dd48c,_0x3d44c7);return _0x32bce2[_0x278663(0x1fe)]({'unitId':_0x1b94b2,'subUnitId':_0x1dd48c,'token':_0x3d44c7,'type':_0x5ae422[_0x278663(0x332)],'pivotConfig':_0x33a01f}),!0x0;}},_0x1b4e8f={'id':_0x5d1072(0x184),'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'handler':(_0x123d75,_0x4bd0b3)=>{const _0x3a64f6=_0x5d1072;if(!_0x4bd0b3)return!0x1;if(!!_0x123d75[_0x3a64f6(0x411)](_0x374f23[_0x3a64f6(0x224)])[_0x3a64f6(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x434432,dataFieldId:_0x2cd4c8,unitId:_0x2c53e8,subUnitId:_0x489f6a}=_0x4bd0b3,_0x1d27b0=_0x123d75['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),_0x48cce6=_0x1d27b0['getDataFieldManager'](_0x2c53e8);_0x48cce6[_0x3a64f6(0x43d)](_0x434432)[_0x3a64f6(0x248)](_0x2cd4c8);let _0x357329=!0x0;for(const _0x5abc09 in _0x48cce6[_0x3a64f6(0x459)])if(_0x48cce6[_0x3a64f6(0x459)][_0x5abc09][_0x3a64f6(0x324)]()[_0x3a64f6(0x42d)](_0x2cd4c8)){_0x357329=!0x1;break;}_0x357329&&_0x48cce6[_0x3a64f6(0x34d)](_0x2cd4c8);const _0x3f0631=_0x1d27b0['getPivotTableConfig'](_0x2c53e8,_0x489f6a,_0x434432);return _0x1d27b0[_0x3a64f6(0x1fe)]({'unitId':_0x2c53e8,'subUnitId':_0x489f6a,'token':_0x434432,'type':_0x5ae422['Set'],'pivotConfig':_0x3f0631}),!0x0;}};function _0x424751(_0xd32111,_0x57885a){const _0xef04f4=_0x5d1072;switch(_0x57885a){case _0x2eef51[_0xef04f4(0x329)]['Value']:return _0xd32111[_0xef04f4(0x2a8)];case _0x2eef51['PivotTableFiledAreaEnum'][_0xef04f4(0x2f1)]:return _0xd32111['filterFields'];case _0x2eef51[_0xef04f4(0x329)]['Row']:return _0xd32111[_0xef04f4(0x206)];case _0x2eef51[_0xef04f4(0x329)][_0xef04f4(0x403)]:return _0xd32111[_0xef04f4(0x3a1)];default:return[];}}function _0x43a8ac(_0x521079,_0x229230){const _0x271bb4=_0x5d1072;return _0x521079[_0x271bb4(0x377)][_0x229230]||_0x521079[_0x271bb4(0x455)][_0x229230];}function _0x29a9c1(_0x783b10,_0xfbefd8){const _0x45d07e=_0x5d1072,{area:_0x435a3b,fieldJson:_0x82ca57,index:_0x1baff9}=_0xfbefd8;_0x435a3b===_0x2eef51['PivotTableFiledAreaEnum']['Value']?_0x783b10['measure'][_0x82ca57['id']]=_0x82ca57:_0x783b10[_0x45d07e(0x455)][_0x82ca57['id']]=_0x82ca57,_0x424751(_0x783b10,_0x435a3b)[_0x45d07e(0x2bd)](_0x1baff9,0x0,_0x82ca57['id']);}function _0x5f259e(_0x402031,_0x456ff8){const _0x2233b4=_0x5d1072,{area:_0x1f47c0,fieldId:_0x303d8d,index:_0x39a898}=_0x456ff8;_0x1f47c0===_0x2eef51[_0x2233b4(0x329)]['Value']?delete _0x402031[_0x2233b4(0x377)][_0x303d8d]:delete _0x402031['dimension'][_0x303d8d],_0x424751(_0x402031,_0x1f47c0)[_0x2233b4(0x2bd)](_0x39a898,0x1);}function _0xeb707c(_0x2e54fa,_0x378036){const _0x49d574=_0x5d1072,{fieldId:_0x110200,name:_0x2ae1de}=_0x378036,_0x518051=_0x43a8ac(_0x2e54fa,_0x110200);_0x518051&&(_0x518051[_0x49d574(0x39a)]=_0x2ae1de);}function _0x378aff(_0x2d43fb,_0x4578ac){const _0x2c67e3=_0x5d1072,{fieldId:_0x2d73fa,collapse:_0x1158dd,item:_0x23cc7c}=_0x4578ac;_0x23cc7c!==void 0x0?(_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa]=_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa]||{},_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa][_0x23cc7c]=_0x1158dd):_0x2d43fb['collapseInfo'][_0x2d73fa]=_0x1158dd;}function _0x275df5(_0x5bcc6b,_0x33c027){const _0x217150=_0x5d1072,{fieldId:_0x40b93f,format:_0x4a0623}=_0x33c027,_0x535dca=_0x43a8ac(_0x5bcc6b,_0x40b93f);_0x535dca&&(_0x535dca[_0x217150(0x429)]=_0x4a0623);}function _0xfcbb47(_0x4b92f3,_0x520b1d){const _0x52d914=_0x5d1072,{fieldId:_0x6b8edb,filterInfo:_0x11d6db}=_0x520b1d,_0x25f3b4=_0x43a8ac(_0x4b92f3,_0x6b8edb);_0x25f3b4&&(_0x25f3b4[_0x52d914(0x3f3)]=_0x11d6db);}function _0x3a8287(_0x19d011,_0x46d331){const _0x3fe6c0=_0x5d1072,{fieldId:_0x1c9816,filterInfo:_0x3ca716}=_0x46d331,_0x51b276=_0x19d011['valueFilter']['filter'](_0x5c6a7a=>_0x5c6a7a[_0x3fe6c0(0x235)]!==_0x1c9816);_0x3ca716&&_0x51b276['push']({'fieldId':_0x1c9816,'filterInfo':_0x3ca716}),_0x19d011[_0x3fe6c0(0x1f2)]=_0x51b276;}function _0x5cb599(_0x468951,_0x2fb5f1){const {fieldId:_0x265ac2,subtotalType:_0x1db436}=_0x2fb5f1,_0x47c9f7=_0x43a8ac(_0x468951,_0x265ac2);_0x47c9f7&&(_0x47c9f7['subtotal']=_0x1db436);}function _0x424b6b(_0x1a8df6,_0x38d45f){const _0x1ce17e=_0x5d1072,{fieldId:_0x2280f7,oldArea:_0x54dcd4,area:_0x437e31,oldIndex:_0x19e775,index:_0x325de5}=_0x38d45f,_0x57c466=_0x54dcd4!==_0x2eef51['PivotTableFiledAreaEnum']['Value']&&_0x437e31===_0x2eef51['PivotTableFiledAreaEnum'][_0x1ce17e(0x444)],_0x5881a9=_0x54dcd4===_0x2eef51['PivotTableFiledAreaEnum'][_0x1ce17e(0x444)]&&_0x437e31!==_0x2eef51[_0x1ce17e(0x329)][_0x1ce17e(0x444)];if(_0x57c466||_0x5881a9){const _0x4c259f=_0x43a8ac(_0x1a8df6,_0x2280f7);_0x4c259f&&(_0x57c466?(delete _0x1a8df6['dimension'][_0x2280f7],_0x1a8df6['measure'][_0x2280f7]=_0x4c259f):(delete _0x1a8df6[_0x1ce17e(0x377)][_0x2280f7],_0x1a8df6['dimension'][_0x2280f7]=_0x4c259f));}const _0x5323e1=_0x424751(_0x1a8df6,_0x54dcd4),_0x2cc951=_0x424751(_0x1a8df6,_0x437e31);_0x5323e1[_0x1ce17e(0x2bd)](_0x19e775,0x1),_0x2cc951[_0x1ce17e(0x2bd)](_0x325de5,0x0,_0x2280f7);}function _0x1e8f15(_0x20af1e,_0x13cd40){const _0x411ad8=_0x5d1072,{valuePosition:_0xefee77,index:_0x41be5f}=_0x13cd40;_0x20af1e[_0x411ad8(0x24a)]=_0xefee77,_0x20af1e[_0x411ad8(0x29c)]=_0x41be5f;}function _0x5aff30(_0x558ffe,_0x5e41be){const _0xb33677=_0x5d1072,{tableFieldId:_0x109377,sourceName:_0x78867c,dataFieldId:_0x2bb863}=_0x5e41be,_0x4ce035=_0x43a8ac(_0x558ffe,_0x109377);_0x4ce035&&(_0x4ce035[_0xb33677(0x343)]=_0x78867c,_0x4ce035[_0xb33677(0x423)]=_0x2bb863);}function _0x2f7257(_0x748a1a,_0x4084ab){const _0xf46908=_0x5d1072,{fieldId:_0x53865d,sortInfo:_0x518046}=_0x4084ab,_0x55f876=_0x43a8ac(_0x748a1a,_0x53865d);_0x55f876&&(_0x55f876[_0xf46908(0x3c9)]=_0x518046);}function _0x4ba2f1(_0x303476,_0x4a67bb){const _0x2619ed=_0x5d1072,{options:_0xffb1a5}=_0x4a67bb;_0x303476[_0x2619ed(0x35a)]={..._0x303476['options'],..._0xffb1a5};}const _0x33b47c={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x1a1),'handler'(_0x38b267,_0x4be208){const _0x444acb=_0x5d1072;if(!_0x4be208)return!0x1;if(!!_0x38b267[_0x444acb(0x411)](_0x374f23[_0x444acb(0x224)])[_0x444acb(0x19c)](_0x1e657c))return!0x0;const _0x4673e1=_0x38b267[_0x444acb(0x411)](_0x1cc2c4[_0x444acb(0x38e)]),{pivotTableId:_0x7beb50,fieldJson:_0x577236,area:_0x1f9858,index:_0x19ba0d,unitId:_0x1f1ef0,subUnitId:_0x18483a}=_0x4be208,_0x2c0694=_0x4673e1[_0x444acb(0x202)](_0x7beb50);if(!_0x2c0694)return!0x1;let _0x32a6f5;_0x1f9858===_0x2eef51['PivotTableFiledAreaEnum'][_0x444acb(0x444)]?_0x32a6f5=_0x2eef51['createValueField'](_0x577236):_0x32a6f5=_0x2eef51[_0x444acb(0x1f0)](_0x577236),_0x2c0694[_0x444acb(0x34b)](_0x32a6f5,_0x1f9858,_0x19ba0d);const _0x3d2287=_0x4673e1['getPivotTableModelConfig'](_0x1f1ef0,_0x18483a,_0x7beb50);_0x29a9c1(_0x3d2287,_0x4be208);const _0x5840e8=_0x4673e1[_0x444acb(0x458)](_0x1f1ef0,_0x18483a,_0x7beb50);return _0x4673e1['addDirtyPivotTable']({'unitId':_0x1f1ef0,'subUnitId':_0x18483a,'token':_0x7beb50,'type':_0x5ae422[_0x444acb(0x332)],'pivotConfig':_0x5840e8}),!0x0;}},_0x1c531a={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x364),'handler'(_0x57eab2,_0x295b67){const _0x28b088=_0x5d1072;if(!_0x295b67)return!0x1;if(!!_0x57eab2[_0x28b088(0x411)](_0x374f23['IConfigService'])[_0x28b088(0x19c)](_0x1e657c))return!0x0;const _0x85f4da=_0x57eab2[_0x28b088(0x411)](_0x1cc2c4[_0x28b088(0x38e)]),{pivotTableId:_0x5c1526,fieldId:_0x436bb2,unitId:_0x34b09f,subUnitId:_0x102162}=_0x295b67,_0x1b1361=_0x85f4da['getPivotTableInstance'](_0x5c1526);if(!_0x1b1361)return!0x1;_0x1b1361[_0x28b088(0x37e)](_0x436bb2);const _0x377348=_0x85f4da[_0x28b088(0x1fb)](_0x34b09f,_0x102162,_0x5c1526);_0x5f259e(_0x377348,_0x295b67);const _0x22abbb=_0x85f4da['getPivotTableConfig'](_0x34b09f,_0x102162,_0x5c1526);return _0x85f4da[_0x28b088(0x1fe)]({'unitId':_0x34b09f,'subUnitId':_0x102162,'token':_0x5c1526,'type':_0x5ae422[_0x28b088(0x332)],'pivotConfig':_0x22abbb}),!0x0;}},_0x3a7b5e={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x2e8),'handler'(_0xd4ebea,_0x3d3239){const _0x502a82=_0x5d1072;if(!_0x3d3239)return!0x1;if(!!_0xd4ebea[_0x502a82(0x411)](_0x374f23[_0x502a82(0x224)])['getConfig'](_0x1e657c))return!0x0;const _0x518f85=_0xd4ebea[_0x502a82(0x411)](_0x1cc2c4[_0x502a82(0x38e)]),{unitId:_0x4c06a7,subUnitId:_0x480905,pivotTableId:_0x806de2,fieldId:_0x507220,name:_0x5290e5}=_0x3d3239,_0x39f309=_0x518f85[_0x502a82(0x202)](_0x806de2);if(!_0x39f309)return!0x1;_0x39f309[_0x502a82(0x18a)](_0x507220,_0x5290e5);const _0x561476=_0x518f85['getPivotTableModelConfig'](_0x4c06a7,_0x480905,_0x806de2);return _0xeb707c(_0x561476,_0x3d3239),_0x518f85[_0x502a82(0x1fe)]({'unitId':_0x4c06a7,'subUnitId':_0x480905,'token':_0x806de2,'type':_0x5ae422[_0x502a82(0x332)]}),!0x0;}},_0x4b3e58={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x47a12c,_0x3bdd7d){const _0x2b2a4b=_0x5d1072;if(!_0x3bdd7d)return!0x1;if(!!_0x47a12c['get'](_0x374f23['IConfigService'])[_0x2b2a4b(0x19c)](_0x1e657c))return!0x0;const _0x28aeca=_0x47a12c[_0x2b2a4b(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x5a3eb3,subUnitId:_0x5bc294,pivotTableId:_0x4c2367,fieldId:_0x444978,collapse:_0x13360b,item:_0x2d984c}=_0x3bdd7d,_0x57ec1a=_0x28aeca[_0x2b2a4b(0x202)](_0x4c2367);if(!_0x57ec1a)return!0x1;_0x57ec1a[_0x2b2a4b(0x472)](_0x444978,_0x13360b,_0x2d984c);const _0xe057b=_0x28aeca[_0x2b2a4b(0x1fb)](_0x5a3eb3,_0x5bc294,_0x4c2367);return _0x378aff(_0xe057b,_0x3bdd7d),_0x28aeca['addDirtyPivotTable']({'unitId':_0x5a3eb3,'subUnitId':_0x5bc294,'token':_0x4c2367,'type':_0x5ae422[_0x2b2a4b(0x332)]}),!0x0;}},_0x9f6240={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-format','handler'(_0x25fa8d,_0x89d8aa){const _0x1bb66f=_0x5d1072;if(!_0x89d8aa)return!0x1;if(!!_0x25fa8d['get'](_0x374f23[_0x1bb66f(0x224)])[_0x1bb66f(0x19c)](_0x1e657c))return!0x0;const _0x1abcb5=_0x25fa8d[_0x1bb66f(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x11b2f9,subUnitId:_0xa5a824,pivotTableId:_0x32d733,fieldId:_0x493298,format:_0x5541bc}=_0x89d8aa,_0x19f84b=_0x1abcb5['getPivotTableInstance'](_0x32d733);if(!_0x19f84b)return!0x1;_0x19f84b['setFieldFormat'](_0x493298,_0x5541bc);const _0xbf0b8a=_0x1abcb5['getPivotTableModelConfig'](_0x11b2f9,_0xa5a824,_0x32d733);return _0x275df5(_0xbf0b8a,_0x89d8aa),_0x1abcb5[_0x1bb66f(0x1fe)]({'unitId':_0x11b2f9,'subUnitId':_0xa5a824,'token':_0x32d733,'type':_0x5ae422['Set']}),!0x0;}},_0xd9e8fb={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-filter','handler'(_0x178eb6,_0x33737f){const _0x3b4b96=_0x5d1072;if(!_0x33737f)return!0x1;if(!!_0x178eb6[_0x3b4b96(0x411)](_0x374f23['IConfigService'])['getConfig'](_0x1e657c))return!0x0;const _0x555831=_0x178eb6[_0x3b4b96(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x342b86,subUnitId:_0x50f596,pivotTableId:_0x22e02f,fieldId:_0x482584,filterInfo:_0x18e6e1}=_0x33737f,_0x1c8200=_0x555831[_0x3b4b96(0x202)](_0x22e02f);if(!_0x1c8200)return!0x1;_0x1c8200[_0x3b4b96(0x3e2)](_0x482584,_0x18e6e1);const _0x58e1fe=_0x555831[_0x3b4b96(0x1fb)](_0x342b86,_0x50f596,_0x22e02f);return _0xfcbb47(_0x58e1fe,_0x33737f),_0x555831[_0x3b4b96(0x1fe)]({'unitId':_0x342b86,'subUnitId':_0x50f596,'token':_0x22e02f,'type':_0x5ae422[_0x3b4b96(0x332)]}),!0x0;}},_0x6566df={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x366),'handler'(_0x191cec,_0x426bb8){const _0x13d434=_0x5d1072;if(!_0x426bb8)return!0x1;if(!!_0x191cec['get'](_0x374f23[_0x13d434(0x224)])[_0x13d434(0x19c)](_0x1e657c))return!0x0;const _0x2e3b4d=_0x191cec[_0x13d434(0x411)](_0x1cc2c4[_0x13d434(0x38e)]),{unitId:_0x4cea6d,subUnitId:_0x50c712,pivotTableId:_0x32f95d,options:_0x327f64}=_0x426bb8,_0x166b55=_0x2e3b4d[_0x13d434(0x202)](_0x32f95d);if(!_0x166b55)return!0x1;_0x166b55[_0x13d434(0x3bb)](_0x327f64);const _0x5a063f=_0x2e3b4d[_0x13d434(0x1fb)](_0x4cea6d,_0x50c712,_0x32f95d);return _0x4ba2f1(_0x5a063f,_0x426bb8),_0x2e3b4d['addDirtyPivotTable']({'unitId':_0x4cea6d,'subUnitId':_0x50c712,'token':_0x32f95d,'type':_0x5ae422[_0x13d434(0x332)]}),!0x0;}},_0x138786={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x2a3),'handler'(_0x67d966,_0x46a185){const _0x5843d2=_0x5d1072;if(!_0x46a185)return!0x1;if(!!_0x67d966[_0x5843d2(0x411)](_0x374f23['IConfigService'])[_0x5843d2(0x19c)](_0x1e657c))return!0x0;const _0x3bdb08=_0x67d966[_0x5843d2(0x411)](_0x1cc2c4[_0x5843d2(0x38e)]),{unitId:_0xb63d87,subUnitId:_0x820aa6,pivotTableId:_0x29c1f1,sortInfo:_0x4fa838,fieldId:_0x4be4a1}=_0x46a185,_0x42a154=_0x3bdb08[_0x5843d2(0x202)](_0x29c1f1);if(!_0x42a154)return!0x1;_0x42a154[_0x5843d2(0x200)](_0x4be4a1,_0x4fa838);const _0xbb6b3a=_0x3bdb08[_0x5843d2(0x1fb)](_0xb63d87,_0x820aa6,_0x29c1f1);return _0x2f7257(_0xbb6b3a,_0x46a185),_0x3bdb08[_0x5843d2(0x1fe)]({'unitId':_0xb63d87,'subUnitId':_0x820aa6,'token':_0x29c1f1,'type':_0x5ae422['Set']}),!0x0;}},_0x55c967={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x24b5c7,_0x2f795e){const _0x47b695=_0x5d1072;if(!_0x2f795e)return!0x1;if(!!_0x24b5c7[_0x47b695(0x411)](_0x374f23[_0x47b695(0x224)])[_0x47b695(0x19c)](_0x1e657c))return!0x0;const _0x5a0485=_0x24b5c7['get'](_0x1cc2c4[_0x47b695(0x38e)]),{unitId:_0x229ad1,subUnitId:_0x19d3cf,pivotTableId:_0x3eaf2d,fieldId:_0x16cf03,subtotalType:_0x11470c}=_0x2f795e,_0x2f0162=_0x5a0485[_0x47b695(0x202)](_0x3eaf2d);if(!_0x2f0162)return!0x1;_0x2f0162[_0x47b695(0x3ad)](_0x16cf03,_0x11470c);const _0x22bcfa=_0x5a0485[_0x47b695(0x1fb)](_0x229ad1,_0x19d3cf,_0x3eaf2d);return _0x5cb599(_0x22bcfa,_0x2f795e),_0x5a0485[_0x47b695(0x1fe)]({'unitId':_0x229ad1,'subUnitId':_0x19d3cf,'token':_0x3eaf2d,'type':_0x5ae422['Set']}),!0x0;}},_0x58f9b7={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':_0x5d1072(0x402),'handler'(_0x1cc7d8,_0x1a26ca){const _0x37d78f=_0x5d1072;if(!_0x1a26ca)return!0x1;if(!!_0x1cc7d8[_0x37d78f(0x411)](_0x374f23['IConfigService'])[_0x37d78f(0x19c)](_0x1e657c))return!0x0;const _0x8fa12d=_0x1cc7d8['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x2826d6,subUnitId:_0x96109d,pivotTableId:_0x148fcd,fieldId:_0x5a853d,filterInfo:_0x246e4a}=_0x1a26ca,_0x4da709=_0x8fa12d[_0x37d78f(0x202)](_0x148fcd);if(!_0x4da709)return!0x1;_0x4da709[_0x37d78f(0x1e7)](_0x5a853d,_0x246e4a);const _0x339866=_0x8fa12d['getPivotTableModelConfig'](_0x2826d6,_0x96109d,_0x148fcd);return _0x3a8287(_0x339866,_0x1a26ca),_0x8fa12d[_0x37d78f(0x1fe)]({'unitId':_0x2826d6,'subUnitId':_0x96109d,'token':_0x148fcd,'type':_0x5ae422[_0x37d78f(0x332)]}),!0x0;}},_0x5703ce={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x188),'handler'(_0x1e46d4,_0x3bc52e){const _0x18f979=_0x5d1072;if(!_0x3bc52e)return!0x1;if(!!_0x1e46d4[_0x18f979(0x411)](_0x374f23['IConfigService'])[_0x18f979(0x19c)](_0x1e657c))return!0x0;const _0x3b783d=_0x1e46d4[_0x18f979(0x411)](_0x1cc2c4[_0x18f979(0x38e)]),{unitId:_0x54b7f1,subUnitId:_0x73f521,pivotTableId:_0x49d472,area:_0x2266b0,index:_0x347e3b,fieldId:_0x3529dd}=_0x3bc52e,_0x45c1d9=_0x3b783d[_0x18f979(0x202)](_0x49d472);if(!_0x45c1d9)return!0x1;_0x45c1d9[_0x18f979(0x233)](_0x3529dd,_0x2266b0,_0x347e3b);const _0x4689fb=_0x3b783d[_0x18f979(0x1fb)](_0x54b7f1,_0x73f521,_0x49d472);return _0x424b6b(_0x4689fb,_0x3bc52e),_0x3b783d['addDirtyPivotTable']({'unitId':_0x54b7f1,'subUnitId':_0x73f521,'token':_0x49d472,'type':_0x5ae422[_0x18f979(0x332)]}),!0x0;}},_0x23bfb9={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x1745a5,_0x5b8e0f){const _0x89f627=_0x5d1072;if(!_0x5b8e0f)return!0x1;if(!!_0x1745a5[_0x89f627(0x411)](_0x374f23[_0x89f627(0x224)])[_0x89f627(0x19c)](_0x1e657c))return!0x0;const _0x4e6a92=_0x1745a5['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x182c94,subUnitId:_0x2a4840,pivotTableId:_0x5156a4,sourceName:_0x27bc67,dataFieldId:_0x4049d9,tableFieldId:_0x41cab9}=_0x5b8e0f,_0x3466ff=_0x4e6a92[_0x89f627(0x202)](_0x5156a4);if(!_0x3466ff)return!0x1;_0x3466ff['updateFieldSourceInfo'](_0x41cab9,_0x27bc67,_0x4049d9);const _0x3a7e33=_0x4e6a92[_0x89f627(0x1fb)](_0x182c94,_0x2a4840,_0x5156a4);return _0x5aff30(_0x3a7e33,_0x5b8e0f),_0x4e6a92[_0x89f627(0x1fe)]({'unitId':_0x182c94,'subUnitId':_0x2a4840,'token':_0x5156a4,'type':_0x5ae422[_0x89f627(0x332)]}),!0x0;}},_0x96a821={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x240b13,_0xe36e8d){const _0x32baa1=_0x5d1072;if(!_0xe36e8d)return!0x1;if(!!_0x240b13[_0x32baa1(0x411)](_0x374f23[_0x32baa1(0x224)])[_0x32baa1(0x19c)](_0x1e657c))return!0x0;const _0x3a2362=_0x240b13['get'](_0x1cc2c4[_0x32baa1(0x38e)]),{unitId:_0x525863,subUnitId:_0x5625ab,pivotTableId:_0xac4a13,valuePosition:_0x12517e,index:_0x31a6b1}=_0xe36e8d,_0x2ed8d3=_0x3a2362['getPivotTableInstance'](_0xac4a13);if(!_0x2ed8d3)return!0x1;_0x2ed8d3[_0x32baa1(0x3ed)](_0x12517e,_0x31a6b1);const _0x4e07ef=_0x3a2362['getPivotTableModelConfig'](_0x525863,_0x5625ab,_0xac4a13);return _0x1e8f15(_0x4e07ef,_0xe36e8d),_0x3a2362['addDirtyPivotTable']({'unitId':_0x525863,'subUnitId':_0x5625ab,'token':_0xac4a13,'type':_0x5ae422[_0x32baa1(0x332)]}),!0x0;}};function _0x93d0f(_0x138937,_0x47b9f6,_0x23262d){const _0xc3ab06=_0x5d1072,{pivotTableId:_0x59161a,unitId:_0x10e919,subUnitId:_0x296ec1}=_0x47b9f6,_0x5f447b=[],_0x4c381f=[];for(const _0x148ccb of _0x23262d)switch(_0x148ccb['type']){case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2e0)]:{const {fieldJson:_0x3c7f13,area:_0x6adf64,index:_0x46db62}=_0x148ccb,_0x167cf8={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldJson':_0x3c7f13,'area':_0x6adf64,'index':_0x46db62},_0x9bb242={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3c7f13['id'],'area':_0x6adf64,'index':_0x46db62};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x33b47c['id'],'params':_0x167cf8}),_0x4c381f['unshift']({'id':_0x1c531a['id'],'params':_0x9bb242});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2c1)]:{const {fieldId:_0x34fd61,newSubtotalType:_0x2d8aa7,oldSubtotalType:_0x5103c0}=_0x148ccb,_0x4f5213={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x34fd61,'subtotalType':_0x2d8aa7};_0x5f447b['push']({'id':_0x55c967['id'],'params':_0x4f5213});const _0x215b4d={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x34fd61,'subtotalType':_0x5103c0};_0x4c381f['unshift']({'id':_0x55c967['id'],'params':_0x215b4d});}break;case _0x2eef51[_0xc3ab06(0x462)]['RemoveField']:{const {fieldId:_0x2bd877,fieldJson:_0x42f38b,area:_0x3c134b,index:_0x55c286}=_0x148ccb,_0x47534e={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x2bd877,'index':_0x55c286,'area':_0x3c134b};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x1c531a['id'],'params':_0x47534e});const _0x248599={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldJson':_0x42f38b,'area':_0x3c134b,'index':_0x55c286};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x33b47c['id'],'params':_0x248599});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x29e)]:{const {fieldId:_0x17a447,oldName:_0x41dfdb,newName:_0xf94167}=_0x148ccb,_0x3aa685={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x17a447,'name':_0xf94167};_0x5f447b['push']({'id':_0x3a7b5e['id'],'params':_0x3aa685});const _0x5114b8={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x17a447,'name':_0x41dfdb};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x3a7b5e['id'],'params':_0x5114b8});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x321)]:{const {fieldId:_0x4cd1df,oldFilterInfo:_0x502f83,newFilterInfo:_0x4bffec}=_0x148ccb,_0x3233fa={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x4cd1df,'filterInfo':_0x4bffec};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0xd9e8fb['id'],'params':_0x3233fa});const _0x275073={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x4cd1df,'filterInfo':_0x502f83};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0xd9e8fb['id'],'params':_0x275073});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x45a)]:{const {fieldId:_0x38a84f,oldSortInfo:_0x4a2c8b,newSortInfo:_0x218f9f}=_0x148ccb,_0x5d574c={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x38a84f,'sortInfo':_0x218f9f};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x138786['id'],'params':_0x5d574c});const _0x20d666={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x38a84f,'sortInfo':_0x4a2c8b};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x138786['id'],'params':_0x20d666});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x339)]:{const {oldOptions:_0x3eaed3,newOptions:_0x578b09}=_0x148ccb,_0x3b2489={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'options':_0x578b09};_0x5f447b['push']({'id':_0x6566df['id'],'params':_0x3b2489});const _0x589c97={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'options':_0x3eaed3};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x6566df['id'],'params':_0x589c97});}break;case _0x2eef51[_0xc3ab06(0x462)]['UpdateFieldPosition']:{const {oldArea:_0x49a613,newArea:_0x3b0948,oldIndex:_0x25d701,newIndex:_0x2acd2a,fieldId:_0x3bcb4e}=_0x148ccb,_0x2e2e5c={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3bcb4e,'area':_0x3b0948,'index':_0x2acd2a,'oldArea':_0x49a613,'oldIndex':_0x25d701};_0x5f447b['push']({'id':_0x5703ce['id'],'params':_0x2e2e5c});const _0x348f9b={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3bcb4e,'area':_0x49a613,'index':_0x25d701,'oldArea':_0x3b0948,'oldIndex':_0x2acd2a};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x5703ce['id'],'params':_0x348f9b});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x228)]:{const {oldValuePosition:_0x166861,newValuePosition:_0x1d64aa,oldIndex:_0x473e62,newIndex:_0x2db0ce}=_0x148ccb,_0x41115f={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'valuePosition':_0x1d64aa,'index':_0x2db0ce};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x96a821['id'],'params':_0x41115f});const _0x3b10b1={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'valuePosition':_0x166861,'index':_0x473e62};_0x4c381f['unshift']({'id':_0x96a821['id'],'params':_0x3b10b1});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2b0)]:{const {fieldId:_0x5f1fe6,collapse:_0x4333a2,item:_0x2bfc59}=_0x148ccb,_0x59bc99={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5f1fe6,'collapse':_0x4333a2,'item':_0x2bfc59};_0x5f447b['push']({'id':_0x4b3e58['id'],'params':_0x59bc99});const _0x2ad142={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5f1fe6,'collapse':!_0x4333a2,'item':_0x2bfc59};_0x4c381f['unshift']({'id':_0x4b3e58['id'],'params':_0x2ad142});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x413)]:{const {newFormat:_0x49894d,oldFormat:_0x35342b,fieldId:_0x5d8500}=_0x148ccb,_0xbbd924={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5d8500,'format':_0x49894d};_0x5f447b['push']({'id':_0x9f6240['id'],'params':_0xbbd924});const _0x4604f7={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5d8500,'format':_0x35342b};_0x4c381f['unshift']({'id':_0x9f6240['id'],'params':_0x4604f7});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x21e)]:{const {tableFieldId:_0x454b54,oldSourceName:_0x1b24d1,newSourceName:_0x2a5b67,oldDataFieldId:_0x1456d6,newDataFieldId:_0x2ce558}=_0x148ccb,_0x46ae45={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'tableFieldId':_0x454b54,'sourceName':_0x2a5b67,'dataFieldId':_0x2ce558};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x23bfb9['id'],'params':_0x46ae45});const _0x232ae5={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'tableFieldId':_0x454b54,'sourceName':_0x1b24d1,'dataFieldId':_0x1456d6};_0x4c381f['unshift']({'id':_0x23bfb9['id'],'params':_0x232ae5});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x42e)]:{const {fieldId:_0x599094,filterInfo:_0xba38db,oldFilterInfo:_0x17d298}=_0x148ccb,_0x5705a1={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x599094,'filterInfo':_0xba38db};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x58f9b7['id'],'params':_0x5705a1});const _0x5a8f80={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x599094,'filterInfo':_0x17d298};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x58f9b7['id'],'params':_0x5a8f80});}}return{'redos':_0x5f447b,'undos':_0x4c381f};}function _0x1bde9c(_0x284fdb,_0x26bba8){const _0x1ea733=_0x5d1072;var _0xaeb5be;const _0x130942=_0x284fdb[_0x1ea733(0x411)](_0x1cc2c4[_0x1ea733(0x3f9)]),{cellInfo:_0x9bb308,view:_0x237270,isEmpty:_0x7f3ae0}=_0x26bba8;return(_0xaeb5be=_0x130942[_0x1ea733(0x199)][_0x1ea733(0x3ea)](_0x1b27ae)(_0x3f9a5f,{'cellInfo':_0x9bb308,'view':_0x237270,'isEmpty':_0x7f3ae0}))!=null?_0xaeb5be:_0x3f9a5f;}const _0x4bfc01={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x4374e7,_0x57501e){const _0x525c5=_0x5d1072;if(!_0x57501e)return!0x1;const _0x4a2ca9=_0x4374e7[_0x525c5(0x411)](_0x374f23['ICommandService']),_0x403625=_0x4374e7[_0x525c5(0x411)](_0x1cc2c4['SheetsPivotRPCService']),_0x6afd41=_0x4374e7[_0x525c5(0x411)](_0x374f23['IUndoRedoService']),{pivotTableId:_0x3e2979,dataFieldId:_0x35b2d3,fieldArea:_0x2d5e08,index:_0x12cbbc,unitId:_0x36b763,subUnitId:_0x470188}=_0x57501e,_0x46c16f=(await _0x403625[_0x525c5(0x291)]({'unitId':_0x36b763,'subUnitId':_0x470188,'pivotTableId':_0x3e2979,'params':{'type':_0x5370e2['AddPivotField'],'addPivotField':{'dataFieldId':_0x35b2d3,'fieldArea':_0x2d5e08,'index':_0x12cbbc}}}))[_0x525c5(0x3de)][_0x525c5(0x3e7)];if(!_0x46c16f)return!0x1;const {view:_0x3d3ecb,changesets:_0x335577,isEmpty:_0x4da9ea,pivotTableConfig:_0xc0dd26,shouldBeAddedGroupJSON:_0x2f5170}=_0x46c16f,_0x49123b=_0xc0dd26[_0x525c5(0x357)],_0x11417f=new _0x2eef51['PivotView']();_0x11417f[_0x525c5(0x1a8)](_0x3d3ecb);const _0x2a9dfa={'cellInfo':_0x49123b,'view':_0x11417f,'isEmpty':_0x4da9ea};if(!await _0x4374e7[_0x525c5(0x411)](_0x1cc2c4['SheetsPivotTableService'])[_0x525c5(0x24d)][_0x525c5(0x3a5)](_0x460ff6)(!0x0,_0x2a9dfa))return!0x1;const _0x483e90=_0x20a5db(_0x4374e7,_0x11417f,_0x49123b,_0x4da9ea),_0x3d792b=_0x1bde9c(_0x4374e7,_0x2a9dfa),{undos:_0x33ab59,redos:_0xd64a9d}=_0x93d0f(_0x4a2ca9,{'pivotTableId':_0x3e2979,'unitId':_0x36b763,'subUnitId':_0x470188},_0x335577);return _0x2f5170&&(_0xd64a9d[_0x525c5(0x31c)]({'id':_0x2dc301['id'],'params':{'pivotTableId':_0x3e2979,'fieldJSON':_0x2f5170,'unitId':_0x36b763,'subUnitId':_0x470188}}),_0x33ab59[_0x525c5(0x27b)]({'id':_0x1b4e8f['id'],'params':{'pivotTableId':_0x3e2979,'dataFieldId':_0x2f5170['id'],'unitId':_0x36b763,'subUnitId':_0x470188}})),_0x374f23[_0x525c5(0x203)]([..._0x483e90[_0x525c5(0x451)],..._0x3d792b[_0x525c5(0x451)],..._0xd64a9d],_0x4a2ca9),_0x6afd41[_0x525c5(0x2c7)]({'unitID':_0x36b763,'redoMutations':[..._0x483e90[_0x525c5(0x451)],..._0x3d792b[_0x525c5(0x451)],..._0xd64a9d],'undoMutations':[..._0x483e90[_0x525c5(0x252)],..._0x3d792b[_0x525c5(0x252)],..._0x33ab59]}),!0x0;}},_0x5e3456=()=>typeof process<'u'&&process[_0x5d1072(0x3da)]!=null&&process[_0x5d1072(0x3da)][_0x5d1072(0x474)]!=null,_0x1a650d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x43f),'handler'(_0x1d05bb,_0x14d16c){const _0x3f64bb=_0x5d1072;var _0x451365;if(!_0x14d16c)return!0x1;const _0x3ca5ad=_0x1d05bb[_0x3f64bb(0x411)](_0x374f23['IConfigService']);if(!!_0x3ca5ad[_0x3f64bb(0x19c)](_0x1e657c))return!0x0;const _0x56301e=_0x1d05bb['get'](_0x374f23[_0x3f64bb(0x1d8)]),_0x565c3e=_0x1d05bb[_0x3f64bb(0x411)](_0x1cc2c4[_0x3f64bb(0x38e)]),{pivotTableId:_0x24cd13,pivotTableConfig:_0x57f398,collectionConfig:_0xbc8ae5,unitId:_0x25c027,subUnitId:_0x30aaf6}=_0x14d16c,{sourceRangeInfo:_0x3f4663,fieldsConfig:_0x39486c,targetCellInfo:_0x131fa6}=_0x57f398,_0x42f0f2=_0x56301e['getUnit'](_0x25c027);if(!_0x42f0f2||!_0x42f0f2['getSheetBySheetId'](_0x30aaf6))return!0x1;if(!_0x5e3456()){let _0x238137=0x0;_0x42f0f2[_0x3f64bb(0x401)]()[_0x3f64bb(0x274)](_0x193267=>{const _0xc03fb8=_0x3f64bb;var _0x4a1d83,_0x39443f;_0x238137+=(_0x39443f=(_0x4a1d83=_0x565c3e[_0xc03fb8(0x239)](_0x25c027,_0x193267[_0xc03fb8(0x300)]()))==null?void 0x0:_0x4a1d83[_0xc03fb8(0x249)])!=null?_0x39443f:0x0;});const _0x547d65=(_0x451365=_0x3ca5ad['getConfig'](_0x2169aa['LS_CONFIG_KEY']))!=null?_0x451365:{},{ls:_0x34108b,pbk:_0x343caf}=_0x547d65;if(!_0x122880(_0x34108b,_0x343caf))throw new _0x374f23['CustomCommandExecutionError'](_0x3f64bb(0x2ce));const _0x3c32b9=_0x43fd63(_0x5639c4,_0x34108b,_0x343caf)[_0x3f64bb(0x1a5)];if(_0x238137>=_0x3c32b9)throw new _0x374f23[(_0x3f64bb(0x431))]('limit\x20pivot');}if(!_0xbc8ae5||!_0x39486c)return!0x1;const {collection:_0x4501ce,updateDataFieldList:_0x2dfcf9}=_0x565c3e[_0x3f64bb(0x2b4)](_0x24cd13,_0xbc8ae5,_0x3f4663,_0x131fa6);_0x565c3e['refreshData'](_0x4501ce,_0x2dfcf9,_0x3f4663);const _0x3f8294=new _0x2eef51['PivotTable'](_0x4501ce,void 0x0,_0x24cd13);_0x3f8294[_0x3f64bb(0x328)](_0x39486c);const _0x364646=JSON[_0x3f64bb(0x2ab)](JSON[_0x3f64bb(0x22c)](_0x57f398));return _0x565c3e[_0x3f64bb(0x42c)](_0x25c027,_0x30aaf6,_0x24cd13,_0x3f8294,_0x364646),_0x565c3e['addDirtyPivotTable']({'unitId':_0x25c027,'subUnitId':_0x30aaf6,'token':_0x24cd13,'type':_0x5ae422[_0x3f64bb(0x395)],'pivotConfig':_0x364646}),!0x0;}},_0x1cee8d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x2df),async 'handler'(_0x1ae319,_0x3edd1c){const _0x4543d7=_0x5d1072;if(!_0x3edd1c)return!0x1;const {sourceDataInfo:_0x31e631,pivotTableConfig:_0x477ad7}=_0x3edd1c;if(!_0x31e631||!_0x477ad7)return!0x1;const {unitId:_0x152373,subUnitId:_0x3a2301,range:_0x39e5c7}=_0x31e631,_0x3b5d94=_0x1ae319['get'](_0x374f23[_0x4543d7(0x1d8)]),_0x35a999=_0x1ae319[_0x4543d7(0x411)](_0x1cc2c4[_0x4543d7(0x333)]),_0x23ae2b=_0x1ae319[_0x4543d7(0x411)](_0x374f23[_0x4543d7(0x3cd)]),_0x498d3c=_0x1ae319['get'](_0x374f23[_0x4543d7(0x386)]),_0x32cd83=_0x3b5d94[_0x4543d7(0x2f2)](_0x152373);if(!_0x32cd83)return!0x1;const _0x4c69f=_0x32cd83[_0x4543d7(0x317)](_0x3a2301);if(!_0x4c69f)return!0x1;const _0x43e83e=_0x2eef51[_0x4543d7(0x39d)](0x8),_0x5bc509=_0x39e5c7||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4c69f[_0x4543d7(0x46e)]()-0x1,'endColumn':_0x4c69f[_0x4543d7(0x281)]()-0x1};_0x5bc509['rangeType']=_0x374f23['RANGE_TYPE'][_0x4543d7(0x37b)];const _0x17137d=(await _0x35a999['getPivotDisplayConfig']({'unitId':_0x152373,'subUnitId':_0x3a2301,'pivotTableId':_0x43e83e,'params':{'type':_0x5370e2['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x152373,'sheetName':_0x4c69f['getName'](),'subUnitId':_0x3a2301,'range':_0x5bc509},'pivotTableId':_0x43e83e,'pivotTableIndexConfig':_0x477ad7}}}))[_0x4543d7(0x3de)]['addPivotTableWithConfig'];if(!_0x17137d)return!0x1;const {isEmpty:_0x5a5171,fieldsConfig:_0x3239b8,collectionConfig:_0x1b75b2,changesets:_0x22a0d7}=_0x17137d,_0x3c7088=_0x32cd83[_0x4543d7(0x401)]()['length'],_0x5bb12a=_0x374f23['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x4c69f[_0x4543d7(0x46e)]()-0x1,'columnCount':_0x4c69f[_0x4543d7(0x281)]()-0x1});_0x5bb12a['id']=_0x374f23[_0x4543d7(0x407)](),_0x5bb12a['name']=_0x32cd83[_0x4543d7(0x44c)](''+_0x23ae2b['t'](_0x4543d7(0x365)));const _0x40b44d={'index':_0x3c7088,'sheet':_0x5bb12a,'unitId':_0x152373},{redos:_0x607ad1}=_0x93d0f(_0x498d3c,{'pivotTableId':_0x43e83e,'unitId':_0x152373,'subUnitId':_0x5bb12a['id']},_0x22a0d7),_0x520c38=[{'id':_0x24a2a7[_0x4543d7(0x379)]['id'],'params':_0x40b44d},{'id':_0x1a650d['id'],'params':{'unitId':_0x152373,'subUnitId':_0x5bb12a['id'],'pivotTableId':_0x43e83e,'pivotTableConfig':{'isEmpty':_0x5a5171,'fieldsConfig':_0x3239b8,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x152373,'subUnitId':_0x5bb12a['id']},'sourceRangeInfo':{'subUnitId':_0x3a2301,'unitId':_0x152373,'range':_0x5bc509,'sheetName':_0x4c69f[_0x4543d7(0x353)]()}},'collectionConfig':_0x1b75b2}},..._0x607ad1];return _0x374f23['sequenceExecute'](_0x520c38,_0x498d3c),!0x0;}},_0x2f23f0={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x208),'handler'(_0x1dace8,_0x667b81){const _0x4eb055=_0x5d1072;if(!_0x667b81)return!0x1;if(!!_0x1dace8[_0x4eb055(0x411)](_0x374f23['IConfigService'])[_0x4eb055(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x4930b6,unitId:_0x41f1c6,subUnitId:_0x384e1e}=_0x667b81,_0x1cfa12=_0x1dace8[_0x4eb055(0x411)](_0x1cc2c4[_0x4eb055(0x38e)]);return _0x1cfa12[_0x4eb055(0x458)](_0x41f1c6,_0x384e1e,_0x4930b6)?(_0x1cfa12['addDirtyPivotTable']({'unitId':_0x41f1c6,'subUnitId':_0x384e1e,'token':_0x4930b6,'type':_0x5ae422[_0x4eb055(0x36a)]}),_0x1cfa12[_0x4eb055(0x46d)](_0x41f1c6,_0x384e1e,_0x4930b6),!0x0):!0x1;}},_0x54fb2d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x331),async 'handler'(_0x2706fc,_0x14cb32){const _0x4b0f42=_0x5d1072;var _0x19d3fb,_0x2d9b6a;const _0x2e713f=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x386)]),_0x5da7c6=_0x2706fc[_0x4b0f42(0x411)](_0x374f23['IUniverInstanceService']),_0x3163dc=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x3cd)]),_0xbc7d7e=_0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x333)]),_0xfa15dc=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x284)]),_0x3cfb0a=_0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x1ea)]),_0xe1ac02=_0x2706fc[_0x4b0f42(0x411)](_0x374f23[_0x4b0f42(0x224)]);if(!_0x14cb32)return!0x1;const {pivotTableConfig:_0x5af6d2,positionType:_0x445f04}=_0x14cb32,{targetCellInfo:_0x140b5e,sourceRangeInfo:_0x418f4f}=_0x5af6d2,{unitId:_0x168378,subUnitId:_0x3f034c}=_0x140b5e,_0x154a77=_0x5da7c6[_0x4b0f42(0x2f2)](_0x168378);if(!_0x154a77)return!0x1;let _0x4a4855=0x0;_0x154a77[_0x4b0f42(0x401)]()[_0x4b0f42(0x274)](_0x3a82f6=>{const _0x28c490=_0x4b0f42;var _0x58cd56,_0x47f476;_0x4a4855+=(_0x47f476=(_0x58cd56=_0x3cfb0a[_0x28c490(0x239)](_0x168378,_0x3a82f6['getSheetId']()))==null?void 0x0:_0x58cd56[_0x28c490(0x249)])!=null?_0x47f476:0x0;});const _0x419342=(_0x19d3fb=_0xe1ac02[_0x4b0f42(0x19c)](_0x2169aa[_0x4b0f42(0x442)]))!=null?_0x19d3fb:{},{ls:_0x43b0e5,pbk:_0x1e5539}=_0x419342;if(!_0x122880(_0x43b0e5,_0x1e5539))return!0x1;const _0x544891=_0x43fd63(_0x5639c4,_0x43b0e5,_0x1e5539)[_0x4b0f42(0x1a5)];if(_0x4a4855>=_0x544891)return!0x1;const _0x32f8f8=_0x14cb32['pivotTableId']||_0x2eef51[_0x4b0f42(0x39d)](0x8),_0x204cd2=(await _0xbc7d7e['getPivotDisplayConfig']({'unitId':_0x168378,'subUnitId':_0x3f034c,'pivotTableId':_0x32f8f8,'params':{'type':_0x5370e2[_0x4b0f42(0x358)],'addPivotTable':{'sourceRangeInfo':_0x418f4f,'pivotTableId':_0x32f8f8}}}))[_0x4b0f42(0x3de)]['addPivotTable'];if(!_0x204cd2)return!0x1;const {view:_0x12644d,isEmpty:_0x39428f,fieldsConfig:_0x2669c4,collectionConfig:_0x131d0f}=_0x204cd2,_0x379b74=[],_0x18177a=[];if(_0x445f04===_0x55d455['New']){const _0x1dd2d4=_0x154a77[_0x4b0f42(0x401)]()[_0x4b0f42(0x468)],_0x5e330e=_0x374f23[_0x4b0f42(0x1f3)]({});_0x5e330e['id']=_0x5af6d2['targetCellInfo'][_0x4b0f42(0x294)],_0x5e330e[_0x4b0f42(0x432)]=(_0x2d9b6a=_0x5af6d2['targetCellInfo'][_0x4b0f42(0x376)])!=null?_0x2d9b6a:_0x154a77[_0x4b0f42(0x44c)](''+_0x3163dc['t'](_0x4b0f42(0x365)));const _0x4eac09={'index':_0x1dd2d4,'sheet':_0x5e330e,'unitId':_0x168378},_0x418cfd=_0x24a2a7[_0x4b0f42(0x32d)](_0x2706fc,_0x4eac09);_0x379b74[_0x4b0f42(0x27b)]({'id':_0x24a2a7[_0x4b0f42(0x2d2)]['id'],'params':_0x418cfd}),_0x18177a['push']({'id':_0x24a2a7['InsertSheetMutation']['id'],'params':_0x4eac09});}else{if(!_0x154a77['getSheetBySheetId'](_0x3f034c))return!0x1;const _0x486915=_0x20a5db(_0x2706fc,new _0x2eef51[(_0x4b0f42(0x28f))](),_0x140b5e,!0x0);_0x18177a[_0x4b0f42(0x27b)](..._0x486915['redos']),_0x379b74[_0x4b0f42(0x27b)](..._0x486915[_0x4b0f42(0x252)]);const _0x438764={'cellInfo':_0x140b5e,'view':_0x12644d,'isEmpty':_0x39428f};if(!await _0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x3f9)])[_0x4b0f42(0x24d)][_0x4b0f42(0x3a5)](_0x460ff6)(!0x0,_0x438764))return!0x1;const _0x45fe5b=_0x1bde9c(_0x2706fc,_0x438764);_0x18177a[_0x4b0f42(0x27b)](..._0x45fe5b['redos']),_0x379b74[_0x4b0f42(0x27b)](..._0x45fe5b[_0x4b0f42(0x252)]);}return _0x18177a[_0x4b0f42(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x140b5e['unitId'],'subUnitId':_0x140b5e[_0x4b0f42(0x294)],'pivotTableId':_0x32f8f8,'pivotTableConfig':{'targetCellInfo':_0x140b5e,'sourceRangeInfo':_0x418f4f,'fieldsConfig':_0x2669c4},'collectionConfig':_0x131d0f}}),_0x379b74[_0x4b0f42(0x31c)]({'id':_0x2f23f0['id'],'params':{'unitId':_0x168378,'subUnitId':_0x3f034c,'pivotTableId':_0x32f8f8}}),_0x374f23[_0x4b0f42(0x203)](_0x18177a,_0x2e713f)&&_0xfa15dc['pushUndoRedo']({'unitID':_0x168378,'undoMutations':_0x379b74,'redoMutations':_0x18177a}),!0x0;}},_0x225bd3={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x500223,_0xd170ee){const _0x1d4133=_0x5d1072;if(!_0xd170ee)return!0x1;const _0x2da340=_0x500223['get'](_0x374f23[_0x1d4133(0x386)]),_0x5401ff=_0x500223['get'](_0x1cc2c4[_0x1d4133(0x333)]),_0x1511ec=_0x500223[_0x1d4133(0x411)](_0x374f23['IUndoRedoService']),{pivotTableId:_0x2b88e4,fieldId:_0x246cf9,area:_0x2da65c,index:_0x109c1f,unitId:_0x4cfe36,subUnitId:_0x43a69a}=_0xd170ee,_0x31dc41=(await _0x5401ff[_0x1d4133(0x291)]({'unitId':_0x4cfe36,'subUnitId':_0x43a69a,'pivotTableId':_0x2b88e4,'params':{'type':_0x5370e2[_0x1d4133(0x3a0)],'movePivotField':{'fieldId':_0x246cf9,'area':_0x2da65c,'index':_0x109c1f}}}))['result']['movePivotField'];if(!_0x31dc41)return!0x1;const {changesets:_0x929037,view:_0x3af54b,isEmpty:_0x1c3839,pivotTableConfig:_0x1f245c}=_0x31dc41,_0x2d3bd4=_0x1f245c['targetCellInfo'],_0x21c44c=new _0x2eef51['PivotView']();_0x21c44c[_0x1d4133(0x1a8)](_0x3af54b);const _0x443ecf={'cellInfo':_0x2d3bd4,'view':_0x21c44c,'isEmpty':_0x1c3839};if(!await _0x500223[_0x1d4133(0x411)](_0x1cc2c4[_0x1d4133(0x3f9)])[_0x1d4133(0x24d)][_0x1d4133(0x3a5)](_0x460ff6)(!0x0,_0x443ecf))return!0x1;const _0x4fb4f7=_0x20a5db(_0x500223,_0x21c44c,_0x2d3bd4,_0x1c3839),_0x2719c7=_0x1bde9c(_0x500223,_0x443ecf),{redos:_0x4e33e2,undos:_0x948966}=_0x93d0f(_0x2da340,{'pivotTableId':_0x2b88e4,'unitId':_0x4cfe36,'subUnitId':_0x43a69a},_0x929037);return _0x374f23[_0x1d4133(0x203)]([..._0x4fb4f7[_0x1d4133(0x451)],..._0x2719c7[_0x1d4133(0x451)],..._0x4e33e2],_0x2da340),_0x1511ec[_0x1d4133(0x2c7)]({'unitID':_0x4cfe36,'redoMutations':[..._0x4fb4f7[_0x1d4133(0x451)],..._0x2719c7[_0x1d4133(0x451)],..._0x4e33e2],'undoMutations':[..._0x4fb4f7[_0x1d4133(0x252)],..._0x2719c7[_0x1d4133(0x252)],..._0x948966]}),!0x0;}},_0x24c983={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x36d),'handler'(_0x43691f,_0x5e07e6){const _0x4d5add=_0x5d1072;if(!_0x5e07e6)return!0x1;if(!!_0x43691f[_0x4d5add(0x411)](_0x374f23['IConfigService'])[_0x4d5add(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x2a781a,targetCellPosition:_0x23262a,unitId:_0x1c3370,subUnitId:_0x50c7ab}=_0x5e07e6,_0x4238b5=_0x43691f[_0x4d5add(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']);if(!_0x4238b5[_0x4d5add(0x202)](_0x5e07e6[_0x4d5add(0x280)]))return!0x1;const _0x59426c=_0x4238b5[_0x4d5add(0x1c8)](_0x2a781a);if(!_0x59426c)return!0x1;const _0x1b9d7a=_0x4238b5[_0x4d5add(0x43d)](_0x59426c['unitId'],_0x5e07e6[_0x4d5add(0x280)]);if(!_0x1b9d7a)return!0x1;const _0x2cdc2a=_0x4238b5[_0x4d5add(0x458)](_0x59426c[_0x4d5add(0x29a)],_0x59426c[_0x4d5add(0x294)],_0x2a781a);if(!_0x2cdc2a)return!0x1;const _0x338efd=_0x374f23[_0x4d5add(0x3c1)][_0x4d5add(0x191)](_0x2cdc2a);_0x338efd[_0x4d5add(0x357)]={'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'row':_0x23262a[_0x4d5add(0x23e)],'col':_0x23262a[_0x4d5add(0x434)]};const _0x3e863f=_0x1b9d7a[_0x4d5add(0x3ff)]();if(_0x59426c[_0x4d5add(0x294)]===_0x50c7ab&&_0x59426c[_0x4d5add(0x29a)]===_0x1c3370)_0x4238b5[_0x4d5add(0x2e5)](_0x1c3370,_0x50c7ab,_0x2a781a,_0x338efd),_0x4238b5[_0x4d5add(0x1fe)]({'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'token':_0x2a781a,'type':_0x5ae422['Set']});else{_0x4238b5[_0x4d5add(0x1fe)]({'unitId':_0x59426c[_0x4d5add(0x29a)],'subUnitId':_0x59426c[_0x4d5add(0x294)],'token':_0x2a781a,'type':_0x5ae422[_0x4d5add(0x36a)]}),_0x4238b5[_0x4d5add(0x46d)](_0x59426c[_0x4d5add(0x29a)],_0x59426c['subUnitId'],_0x2a781a);const _0x298ae5=_0x4238b5[_0x4d5add(0x2b4)](_0x2a781a,_0x3e863f,_0x2cdc2a['sourceRangeInfo'],_0x338efd[_0x4d5add(0x357)]),_0xfe3252=new _0x2eef51['PivotTable'](_0x298ae5[_0x4d5add(0x1ff)],void 0x0,_0x2a781a);_0xfe3252[_0x4d5add(0x328)](_0x338efd[_0x4d5add(0x3b6)]),_0x4238b5['addPivotTable'](_0x1c3370,_0x50c7ab,_0x2a781a,_0xfe3252,_0x338efd),_0x4238b5['addDirtyPivotTable']({'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'token':_0x2a781a,'type':_0x5ae422[_0x4d5add(0x395)],'pivotConfig':_0x338efd});}return!0x0;}},_0x4007f1={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.move-pivot-table','handler':(_0x22aebe,_0x5e5f43)=>{const _0x240136=_0x5d1072,_0x428534=_0x22aebe['get'](_0x374f23[_0x240136(0x386)]),_0x480d3b=_0x22aebe[_0x240136(0x411)](_0x374f23['IUndoRedoService']),_0x2fb943=_0x22aebe[_0x240136(0x411)](_0x1cc2c4['SheetsPivotTableConfigModel']),_0x98032=_0x22aebe['get'](_0x374f23['IUniverInstanceService']);if(!_0x5e5f43)return!0x1;const _0x1eedbe=_0x24a2a7[_0x240136(0x1db)](_0x98032);if(!_0x1eedbe)return!0x1;const {unitId:_0x280c48,subUnitId:_0x3de5a9,workbook:_0x420f2e}=_0x1eedbe,_0x4e139f=_0x2fb943['getPivotTableConfig'](_0x5e5f43[_0x240136(0x1e0)]['unitId'],_0x5e5f43['originTargetInfo'][_0x240136(0x294)],_0x5e5f43[_0x240136(0x280)]);if(!_0x4e139f)return!0x1;const _0xa0a30f=_0x420f2e[_0x240136(0x317)](_0x5e5f43[_0x240136(0x357)][_0x240136(0x294)]);if(!_0xa0a30f)throw new Error(_0x240136(0x391));const _0x2eaf3a=_0xa0a30f[_0x240136(0x46e)](),_0x5c1cfd=_0xa0a30f[_0x240136(0x281)]();if(_0x5e5f43['targetCellInfo'][_0x240136(0x23e)]>_0x2eaf3a||_0x5e5f43['targetCellInfo'][_0x240136(0x434)]>_0x5c1cfd)throw new Error(_0x240136(0x204));const _0x3c126c=[{'id':_0x24c983['id'],'params':{'unitId':_0x280c48,'subUnitId':_0x5e5f43[_0x240136(0x357)][_0x240136(0x294)],'pivotTableId':_0x5e5f43[_0x240136(0x280)],'targetCellPosition':{'row':_0x5e5f43[_0x240136(0x357)][_0x240136(0x23e)],'col':_0x5e5f43[_0x240136(0x357)]['col']}}}],_0x3e0d55=[{'id':_0x24c983['id'],'params':{'unitId':_0x280c48,'subUnitId':_0x3de5a9,'pivotTableId':_0x5e5f43['pivotTableId'],'targetCellPosition':{'row':_0x4e139f[_0x240136(0x357)][_0x240136(0x23e)],'col':_0x4e139f[_0x240136(0x357)][_0x240136(0x434)]}}}];return _0x374f23[_0x240136(0x203)](_0x3c126c,_0x428534)&&_0x480d3b[_0x240136(0x2c7)]({'unitID':_0x280c48,'undoMutations':_0x3e0d55,'redoMutations':_0x3c126c}),!0x0;}},_0x1b9cf3={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':_0x5d1072(0x312),async 'handler'(_0x1e6441,_0x32acb7){const _0x3ec393=_0x5d1072;var _0x1052b9;if(!_0x32acb7)return!0x1;const _0x12117e=_0x1e6441['get'](_0x374f23['IUniverInstanceService']),_0x2cfc90=_0x24a2a7['getSheetCommandTarget'](_0x12117e);if(!_0x2cfc90)return!0x1;const {unitId:_0x13e420,subUnitId:_0x4fde33,workbook:_0x17ee73}=_0x2cfc90,{row:_0x27338a,col:_0x49c8f7}=_0x32acb7,_0x55dbd9=_0x1e6441['get'](_0x1cc2c4[_0x3ec393(0x3ba)]),_0x37daa7=_0x55dbd9[_0x3ec393(0x445)](_0x13e420,_0x4fde33,_0x27338a,_0x49c8f7);if(!_0x37daa7)return!0x1;const _0x57e00e=(_0x1052b9=_0x55dbd9['getPivotItemRenderInfoCache'](_0x13e420,_0x4fde33,_0x37daa7))==null?void 0x0:_0x1052b9[_0x3ec393(0x3db)];if(!_0x57e00e)return!0x1;const _0x3498e3=_0x1e6441['get'](_0x1cc2c4[_0x3ec393(0x1ea)])[_0x3ec393(0x458)](_0x13e420,_0x4fde33,_0x37daa7);if(!_0x3498e3)return!0x1;const {rowInfo:_0xa17c75,colInfo:_0x21f809}=_0x57e00e,_0x4a2c13=_0xa17c75[_0x27338a][_0x3ec393(0x3ae)],_0x43dc8a=_0x21f809[_0x49c8f7]['paths'],_0x1df90c=_0xa17c75[_0x27338a][_0x3ec393(0x2c4)],_0x2fe281=_0x21f809[_0x49c8f7][_0x3ec393(0x2c4)],_0x2b6697=_0x4a2c13[_0x3ec393(0x361)](_0x43dc8a),_0x39ac99=_0x3498e3[_0x3ec393(0x3b6)]['rowFields']['slice'](0x0,_0x1df90c),_0x1f541c=_0x3498e3[_0x3ec393(0x3b6)][_0x3ec393(0x3a1)][_0x3ec393(0x23a)](0x0,_0x2fe281),_0x190d16=_0x39ac99[_0x3ec393(0x361)](_0x1f541c),_0x4ef5d5=_0x2b6697['map']((_0x5dfcc0,_0x15f5f5)=>[_0x5dfcc0,_0x190d16[_0x15f5f5]]),_0x1525da=(await _0x1e6441[_0x3ec393(0x411)](_0x1cc2c4[_0x3ec393(0x333)])['getPivotDisplayConfig']({'unitId':_0x13e420,'subUnitId':_0x4fde33,'pivotTableId':_0x37daa7,'params':{'type':_0x5370e2[_0x3ec393(0x42f)],'drillDown':{'tuple':_0x4ef5d5}}}))[_0x3ec393(0x3de)][_0x3ec393(0x2d8)];if(!_0x1525da)return!0x1;const {indexes:_0x99aa67,range:_0x37c112,sourceUnitId:_0x12473f,sourceSubUnitId:_0x1135e9,formatMap:_0x340540}=_0x1525da,{startRow:_0x443b9f,endRow:_0x2a80ec,startColumn:_0x359464,endColumn:_0x4db50c}=_0x37c112,_0x5e28fb=new _0x374f23[(_0x3ec393(0x33b))](),_0x400d78=_0x2a80ec-_0x443b9f,_0x152211=_0x4db50c-_0x359464,_0xf83160={},_0x23bd0a=_0x24a2a7[_0x3ec393(0x1db)](_0x12117e,{'unitId':_0x12473f,'subUnitId':_0x1135e9});if(!_0x23bd0a)return!0x1;const _0x33650f=_0x1ed179['colStyle'],_0xaff928=_0x1ed179[_0x3ec393(0x483)],_0x4abf5d=_0x1ed179[_0x3ec393(0x483)],_0x49350d=_0x17ee73[_0x3ec393(0x26a)]()[_0x3ec393(0x388)](_0x33650f),_0x2e4842=_0x17ee73[_0x3ec393(0x26a)]()[_0x3ec393(0x388)](_0xaff928),_0x43911a=_0x17ee73['getStyles']()[_0x3ec393(0x388)](_0x4abf5d),{worksheet:_0x3d51d5}=_0x23bd0a;let _0x1ba05b=0x0;const _0x5d78b3=0x1;_0x99aa67[_0x3ec393(0x274)](_0x4b81a0=>{const _0x37b475=_0x3ec393;for(let _0x5355ef=0x0;_0x5355ef<=_0x4db50c-_0x359464;_0x5355ef++)_0x5e28fb[_0x37b475(0x388)](_0x1ba05b,_0x5355ef,_0x3d51d5[_0x37b475(0x181)](_0x4b81a0+_0x37c112['startRow']+_0x5d78b3,_0x5355ef));_0x1ba05b++;});for(let _0x4b717b=_0x359464;_0x4b717b<=_0x4db50c;_0x4b717b++){const _0x1a1907=_0x3d51d5[_0x3ec393(0x181)](_0x443b9f,_0x4b717b);_0xf83160[_0x443b9f]||(_0xf83160[_0x443b9f]={}),_0xf83160[_0x443b9f][_0x4b717b]={..._0x1a1907,'s':_0x49350d};}let _0x51c8cc=0x1;const _0x1fe67c={},_0x135634={};_0x5e28fb[_0x3ec393(0x19f)]((_0x28d196,_0xfe13f)=>{const _0xe0f1a7=_0x3ec393;_0xfe13f[_0xe0f1a7(0x274)](_0x53a861=>{const _0x5104f5=_0xe0f1a7,_0x3c39c0=_0x5e28fb[_0x5104f5(0x216)](_0x28d196,_0x53a861);if(_0xf83160[_0x51c8cc]||(_0xf83160[_0x51c8cc]={}),_0xf83160[_0x51c8cc][_0x53a861]={..._0x3c39c0,'s':_0x51c8cc%0x2===0x0?_0x43911a:_0x2e4842},_0x340540[_0x53a861]&&_0x28d196>=0x0){const _0x10666e=_0x51c8cc%0x2===0x0;let _0x2ad2c2=_0x10666e?_0x135634[_0x53a861]:_0x1fe67c[_0x53a861];_0x2ad2c2||(_0x2ad2c2=_0x17ee73['getStyles']()[_0x5104f5(0x388)]({..._0x10666e?_0x4abf5d:_0xaff928,'n':{'pattern':_0x340540[_0x53a861]}}),_0x10666e?_0x135634[_0x53a861]=_0x2ad2c2:_0x1fe67c[_0x53a861]=_0x2ad2c2),_0xf83160[_0x51c8cc][_0x53a861]['s']=_0x2ad2c2;}}),_0x51c8cc++;});const _0x5651ab=new _0x374f23[(_0x3ec393(0x33b))](_0xf83160),_0x8228ce={};_0x5651ab[_0x3ec393(0x1d1)]((_0x5960b3,_0x2d7c94,_0x362ce9)=>{_0x8228ce[_0x5960b3]||(_0x8228ce[_0x5960b3]={}),_0x8228ce[_0x5960b3][_0x2d7c94]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x2745b5=[],_0x4dd6de=[],_0x1a46f5=_0x17ee73['getSheets']()[_0x3ec393(0x468)],_0x3d1b19=_0x374f23[_0x3ec393(0x1f3)]({'rowCount':Math[_0x3ec393(0x275)](_0x374f23['DEFAULT_WORKSHEET_ROW_COUNT'],_0x400d78+0xa),'columnCount':Math[_0x3ec393(0x275)](_0x374f23[_0x3ec393(0x3cc)],_0x152211+0x5)}),_0x17b38a=_0x1e6441[_0x3ec393(0x411)](_0x374f23[_0x3ec393(0x3cd)]);_0x3d1b19['id']=_0x374f23[_0x3ec393(0x407)](),_0x3d1b19[_0x3ec393(0x432)]=_0x17ee73['generateNewSheetName'](''+_0x17b38a['t'](_0x3ec393(0x365)));const _0x4dc6bf={'index':_0x1a46f5,'sheet':_0x3d1b19,'unitId':_0x13e420},_0x595322=_0x24a2a7[_0x3ec393(0x32d)](_0x1e6441,_0x4dc6bf);_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x24a2a7['InsertSheetMutation']['id'],'params':_0x4dc6bf}),_0x2745b5[_0x3ec393(0x27b)]({'id':_0x24a2a7[_0x3ec393(0x2d2)]['id'],'params':_0x595322}),_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x24a2a7['SetRangeValuesMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'cellValue':_0xf83160}}),_0x2745b5[_0x3ec393(0x31c)]({'id':_0x24a2a7['SetRangeValuesMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'cellValue':_0x8228ce}});const _0xc8983f={'startRow':0x0,'startColumn':0x0,'endRow':_0x51c8cc-0x1,'endColumn':_0x4db50c};_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x158537[_0x3ec393(0x21c)]['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'range':_0xc8983f}}),_0x2745b5['unshift']({'id':_0x158537['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id']}});const _0x24310a=_0x1e6441[_0x3ec393(0x411)](_0x374f23['ICommandService']);return _0x374f23['sequenceExecute'](_0x4dd6de,_0x24310a)&&_0x1e6441[_0x3ec393(0x411)](_0x374f23['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x13e420,'undoMutations':_0x2745b5,'redoMutations':_0x4dd6de}),!0x0;}},_0x490c7c={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x1c2),async 'handler'(_0x4451da,_0x1bd938){const _0x1982f3=_0x5d1072;if(!_0x1bd938)return!0x1;const _0x5d09f8=_0x4451da['get'](_0x374f23[_0x1982f3(0x386)]),_0x478125=_0x4451da[_0x1982f3(0x411)](_0x1cc2c4[_0x1982f3(0x333)]),_0x551d27=_0x4451da[_0x1982f3(0x411)](_0x374f23[_0x1982f3(0x284)]),{pivotTableId:_0x46cd1a,fieldIds:_0x45f6e6,unitId:_0x1f502d,subUnitId:_0x54536d}=_0x1bd938,_0x24f5b8=(await _0x478125[_0x1982f3(0x291)]({'unitId':_0x1f502d,'subUnitId':_0x54536d,'pivotTableId':_0x46cd1a,'params':{'type':_0x5370e2[_0x1982f3(0x32f)],'removePivotField':{'fieldIds':_0x45f6e6}}}))[_0x1982f3(0x3de)]['removePivotField'];if(!_0x24f5b8)return!0x1;const {view:_0x1cb5c7,changesets:_0x2eb0fa,isEmpty:_0x5a0d77,pivotTableConfig:_0x54308e}=_0x24f5b8,_0x3b99a4=_0x54308e[_0x1982f3(0x357)],_0x125b17=new _0x2eef51[(_0x1982f3(0x28f))]();_0x125b17['formJSON'](_0x1cb5c7);const _0x36752a={'cellInfo':_0x3b99a4,'view':_0x125b17,'isEmpty':_0x5a0d77};if(!await _0x4451da[_0x1982f3(0x411)](_0x1cc2c4[_0x1982f3(0x3f9)])['asyncInterceptor'][_0x1982f3(0x3a5)](_0x460ff6)(!0x0,_0x36752a))return!0x1;const _0x2eba99=_0x20a5db(_0x4451da,_0x125b17,_0x3b99a4,_0x5a0d77),_0x24fd98=_0x1bde9c(_0x4451da,_0x36752a),{redos:_0x326944,undos:_0x2c0dc4}=_0x93d0f(_0x5d09f8,{'pivotTableId':_0x46cd1a,'unitId':_0x1f502d,'subUnitId':_0x54536d},_0x2eb0fa);return _0x374f23['sequenceExecute']([..._0x2eba99['redos'],..._0x24fd98[_0x1982f3(0x451)],..._0x326944],_0x5d09f8),_0x551d27[_0x1982f3(0x2c7)]({'unitID':_0x1f502d,'redoMutations':[..._0x2eba99[_0x1982f3(0x451)],..._0x24fd98['redos'],..._0x326944],'undoMutations':[..._0x2eba99[_0x1982f3(0x252)],..._0x24fd98[_0x1982f3(0x252)],..._0x2c0dc4]}),!0x0;}},_0x1e91f0={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x2b6108,_0x4f02e6){const _0x43e148=_0x5d1072;if(!_0x4f02e6)return!0x1;const _0x48a093=_0x2b6108['get'](_0x374f23[_0x43e148(0x386)]),_0x2bacc7=_0x2b6108[_0x43e148(0x411)](_0x374f23[_0x43e148(0x284)]),_0x37894c=_0x2b6108[_0x43e148(0x411)](_0x1cc2c4['SheetsPivotRPCService']),{resetArea:_0x2851f7,pivotTableId:_0x6ae283,unitId:_0x36b029,subUnitId:_0x529a59}=_0x4f02e6,_0x301772=(await _0x37894c['getPivotDisplayConfig']({'unitId':_0x36b029,'subUnitId':_0x529a59,'pivotTableId':_0x6ae283,'params':{'type':_0x5370e2[_0x43e148(0x305)],'resetPivotTable':{'pivotTableId':_0x6ae283,'resetArea':_0x2851f7}}}))[_0x43e148(0x3de)][_0x43e148(0x29f)];if(!_0x301772)return!0x1;const {changesets:_0x2176bc}=_0x301772,{redos:_0xaf4654,undos:_0x54fc2c}=_0x93d0f(_0x48a093,{'pivotTableId':_0x6ae283,'unitId':_0x36b029,'subUnitId':_0x529a59},_0x2176bc);return _0x374f23['sequenceExecute'](_0xaf4654,_0x48a093),_0x2bacc7[_0x43e148(0x2c7)]({'unitID':_0x36b029,'redoMutations':_0xaf4654,'undoMutations':_0x54fc2c}),!0x0;}},_0xc6bcab={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x45e),async 'handler'(_0xd52c30,_0x1b3ef2){const _0x137369=_0x5d1072,_0x2e931e=_0xd52c30['get'](_0x374f23[_0x137369(0x386)]),_0x14a0b0=_0xd52c30['get'](_0x1cc2c4['SheetsPivotRPCService']),_0x9077d0=_0xd52c30[_0x137369(0x411)](_0x1cc2c4[_0x137369(0x3ba)]),_0x5a2dff=_0xd52c30[_0x137369(0x411)](_0x374f23[_0x137369(0x1d8)]),_0x4e50e7=_0xd52c30[_0x137369(0x411)](_0x374f23[_0x137369(0x3cd)]),_0x42b38f=_0xd52c30[_0x137369(0x411)](_0x374f23['IUndoRedoService']);if(!_0x1b3ef2)return!0x1;const {unitId:_0xfd7493,subUnitId:_0x6d9ee8,row:_0x41ecf5,col:_0x2b02df,collapse:_0x3542fb}=_0x1b3ef2,_0x252e1d=_0x5a2dff[_0x137369(0x2f2)](_0xfd7493);if(!_0x252e1d||!_0x252e1d[_0x137369(0x317)](_0x6d9ee8))return!0x1;const _0x26de16=_0x9077d0[_0x137369(0x445)](_0xfd7493,_0x6d9ee8,_0x41ecf5,_0x2b02df);if(!_0x26de16)return!0x1;const _0x17fd9d=_0x9077d0[_0x137369(0x1b9)](_0xfd7493,_0x6d9ee8,_0x26de16);if(!_0x17fd9d)return!0x1;const _0x1a2c0a=_0x374f23[_0x137369(0x3d6)](_0x41ecf5,_0x2b02df),{rangesInfo:_0x24913f,areaInfo:_0x496262,headerMap:_0x3cb4e1}=_0x17fd9d;if(!_0x24913f||!_0x496262||!_0x3cb4e1)return!0x1;const _0x53b58a=Object[_0x137369(0x3d8)](_0x24913f)[_0x137369(0x307)](_0x27ac4e=>_0x24913f[_0x27ac4e][_0x137369(0x3c4)](_0x32d89d=>_0x374f23[_0x137369(0x236)][_0x137369(0x447)](_0x32d89d,_0x1a2c0a)));let _0x449b6c;_0x53b58a===_0x137369(0x3d2)?_0x449b6c=_0x3cb4e1['rowHeaderMap'][_0x2b02df]:_0x53b58a===_0x137369(0x2ad)&&(_0x449b6c=_0x3cb4e1[_0x137369(0x405)][_0x41ecf5]);const _0x3a694a=_0x449b6c==null?void 0x0:_0x449b6c[_0x137369(0x44b)],_0x42d642=_0x9077d0[_0x137369(0x360)](_0xfd7493,_0x6d9ee8,_0x41ecf5,_0x2b02df);let _0x3ae23f=_0x42d642==null?void 0x0:_0x42d642['v'];if(_0x3ae23f===_0x4e50e7['t'](_0x137369(0x30d))&&(_0x3ae23f=_0x2eef51['GlobalConfig']['BLANK_PLACEHOLDER']),_0x3ae23f==null||!_0x26de16||!_0x3a694a)return!0x1;const _0x1582da=await _0x14a0b0['getPivotDisplayConfig']({'unitId':_0xfd7493,'subUnitId':_0x6d9ee8,'pivotTableId':_0x26de16,'params':{'type':_0x5370e2['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x3a694a,'collapse':_0x3542fb,'item':_0x3ae23f}}}),_0x1313ce=_0x1582da==null?void 0x0:_0x1582da[_0x137369(0x3de)][_0x137369(0x2b9)];if(!_0x1313ce)return!0x1;const {view:_0x310135,pivotTableConfig:_0x4bedb4,isEmpty:_0xeb2e56,changesets:_0x44a299}=_0x1313ce,_0x309b10=new _0x2eef51[(_0x137369(0x28f))]();_0x309b10['formJSON'](_0x310135);const _0x130d42=_0x4bedb4[_0x137369(0x357)],_0x2e15cd={'cellInfo':_0x130d42,'view':_0x309b10,'isEmpty':_0xeb2e56};if(!await _0xd52c30[_0x137369(0x411)](_0x1cc2c4[_0x137369(0x3f9)])['asyncInterceptor'][_0x137369(0x3a5)](_0x460ff6)(!0x0,_0x2e15cd))return!0x1;const _0x4889a2=_0x20a5db(_0xd52c30,_0x309b10,_0x130d42,_0xeb2e56),_0x362432=_0x1bde9c(_0xd52c30,_0x2e15cd),{redos:_0x4a488a,undos:_0x491ef4}=_0x93d0f(_0x2e931e,{'pivotTableId':_0x26de16,'unitId':_0xfd7493,'subUnitId':_0x6d9ee8},_0x44a299);return _0x374f23['sequenceExecute']([..._0x4889a2[_0x137369(0x451)],..._0x362432[_0x137369(0x451)],..._0x4a488a],_0x2e931e),_0x42b38f[_0x137369(0x2c7)]({'unitID':_0xfd7493,'redoMutations':[..._0x4889a2[_0x137369(0x451)],..._0x362432['redos'],..._0x4a488a],'undoMutations':[..._0x4889a2[_0x137369(0x252)],..._0x362432[_0x137369(0x252)],..._0x491ef4]}),!0x0;}},_0x1a16fb={'type':_0x374f23['CommandType']['COMMAND'],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x4d1873,_0x762d23){const _0x5f14e2=_0x5d1072;if(!_0x762d23)return!0x1;const _0x193c37=_0x4d1873[_0x5f14e2(0x411)](_0x374f23['ICommandService']),_0x310659=_0x4d1873['get'](_0x374f23[_0x5f14e2(0x284)]),_0x4184e1=_0x4d1873[_0x5f14e2(0x411)](_0x1cc2c4[_0x5f14e2(0x333)]),{pivotTableConfig:_0x41c2be,pivotTableId:_0x62ddc0,unitId:_0x1da069,subUnitId:_0x2fb0be}=_0x762d23,_0x2225ad=(await _0x4184e1['getPivotDisplayConfig']({'unitId':_0x1da069,'subUnitId':_0x2fb0be,'pivotTableId':_0x62ddc0,'params':{'type':_0x5370e2['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x62ddc0,'pivotTableConfig':_0x41c2be}}}))[_0x5f14e2(0x3de)][_0x5f14e2(0x47b)];if(!_0x2225ad)return!0x1;const {changesets:_0x21e450}=_0x2225ad,{redos:_0x1e11d8,undos:_0xe05d06}=_0x93d0f(_0x193c37,{'pivotTableId':_0x62ddc0,'unitId':_0x1da069,'subUnitId':_0x2fb0be},_0x21e450);return _0x374f23['sequenceExecute'](_0x1e11d8,_0x193c37),_0x310659[_0x5f14e2(0x2c7)]({'unitID':_0x1da069,'redoMutations':_0x1e11d8,'undoMutations':_0xe05d06}),!0x0;}},_0x3d55a3={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x1c217a,_0x52928b){const _0x6b610c=_0x5d1072;if(!_0x52928b)return!0x1;const _0x59c0fb=_0x1c217a['get'](_0x374f23[_0x6b610c(0x386)]),{pivotTableId:_0x181c96,tableFieldId:_0x25f974,items:_0x137df7,unitId:_0x1eef84,subUnitId:_0x19d310,isAll:_0x3c7fab}=_0x52928b,_0x3f7404=_0x1c217a['get'](_0x1cc2c4[_0x6b610c(0x333)]),_0x3c7755=_0x1c217a[_0x6b610c(0x411)](_0x374f23['IUndoRedoService']),_0x4f80fc=(await _0x3f7404[_0x6b610c(0x291)]({'unitId':_0x1eef84,'subUnitId':_0x19d310,'pivotTableId':_0x181c96,'params':{'type':_0x5370e2[_0x6b610c(0x1f5)],'setPivotFilter':{'tableFieldId':_0x25f974,'items':_0x137df7,'isAll':_0x3c7fab}}}))['result'][_0x6b610c(0x2f3)];if(!_0x4f80fc)return!0x1;const {changesets:_0x2983fa,pivotTableConfig:_0x1bfa4f,isEmpty:_0x5099cc,view:_0x5eaef3}=_0x4f80fc,_0x5d5da4=_0x1bfa4f[_0x6b610c(0x357)],_0x3ba728=new _0x2eef51[(_0x6b610c(0x28f))]();_0x3ba728[_0x6b610c(0x1a8)](_0x5eaef3);const _0xe58616={'cellInfo':_0x5d5da4,'view':_0x3ba728,'isEmpty':_0x5099cc};if(!await _0x1c217a[_0x6b610c(0x411)](_0x1cc2c4['SheetsPivotTableService'])[_0x6b610c(0x24d)]['fetchThroughAsyncInterceptors'](_0x460ff6)(!0x0,_0xe58616))return!0x1;const _0xbfd948=_0x20a5db(_0x1c217a,_0x3ba728,_0x5d5da4,_0x5099cc),_0x8fa86d=_0x1bde9c(_0x1c217a,_0xe58616),{undos:_0x4ff8a0,redos:_0x197b1a}=_0x93d0f(_0x59c0fb,{'pivotTableId':_0x181c96,'unitId':_0x1eef84,'subUnitId':_0x19d310},_0x2983fa);return _0x374f23[_0x6b610c(0x203)]([..._0xbfd948[_0x6b610c(0x451)],..._0x8fa86d[_0x6b610c(0x451)],..._0x197b1a],_0x59c0fb),_0x3c7755['pushUndoRedo']({'unitID':_0x1eef84,'redoMutations':[..._0xbfd948['redos'],..._0x8fa86d['redos'],..._0x197b1a],'undoMutations':[..._0xbfd948[_0x6b610c(0x252)],..._0x8fa86d['undos'],..._0x4ff8a0]}),!0x0;}},_0x39e618={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x440),async 'handler'(_0xd77891,_0x3c8800){const _0x14dc8b=_0x5d1072;if(!_0x3c8800)return!0x1;const _0x4d2eea=_0xd77891[_0x14dc8b(0x411)](_0x374f23[_0x14dc8b(0x386)]),_0x563d8d=_0xd77891[_0x14dc8b(0x411)](_0x374f23[_0x14dc8b(0x284)]),_0xc51fe6=_0xd77891['get'](_0x1cc2c4['SheetsPivotRPCService']),{info:_0x332b03,tableFieldId:_0x4f6ec1,pivotTableId:_0x12425d,unitId:_0x26e0b3,subUnitId:_0x371ecd}=_0x3c8800,_0x32c85c=(await _0xc51fe6['getPivotDisplayConfig']({'unitId':_0x26e0b3,'subUnitId':_0x371ecd,'pivotTableId':_0x12425d,'params':{'type':_0x5370e2[_0x14dc8b(0x334)],'setPivotSort':{'tableFieldId':_0x4f6ec1,'info':_0x332b03}}}))['result']['setPivotSort'];if(!_0x32c85c)return!0x1;const {changesets:_0x197a27}=_0x32c85c,{redos:_0x2c55be,undos:_0x182e51}=_0x93d0f(_0x4d2eea,{'pivotTableId':_0x12425d,'unitId':_0x26e0b3,'subUnitId':_0x371ecd},_0x197a27);return _0x374f23[_0x14dc8b(0x203)](_0x2c55be,_0x4d2eea),_0x563d8d[_0x14dc8b(0x2c7)]({'unitID':_0x26e0b3,'redoMutations':_0x2c55be,'undoMutations':_0x182e51}),!0x0;}},_0x58248d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x439),async 'handler'(_0x841599,_0x1aafac){const _0x3e27f7=_0x5d1072;if(!_0x1aafac)return!0x1;const _0x481d44=_0x841599['get'](_0x374f23['ICommandService']),{pivotTableId:_0x3a51dc,fieldId:_0x4cc2ec,valueFilterInfo:_0x539b4e,unitId:_0xefb422,subUnitId:_0x546d1a}=_0x1aafac,_0x487d2c=_0x841599[_0x3e27f7(0x411)](_0x1cc2c4[_0x3e27f7(0x333)]),_0x2b2f73=_0x841599['get'](_0x374f23['IUndoRedoService']),_0x1fe620=(await _0x487d2c['getPivotDisplayConfig']({'unitId':_0xefb422,'subUnitId':_0x546d1a,'pivotTableId':_0x3a51dc,'params':{'type':_0x5370e2[_0x3e27f7(0x47d)],'setValuePivotFilter':{'tableFieldId':_0x4cc2ec,'filterInfo':_0x539b4e}}}))['result']['setValuePivotFilter'];if(!_0x1fe620)return!0x1;const {changesets:_0x60245b,pivotTableConfig:_0x3f1f05,isEmpty:_0x215222,view:_0x559f94}=_0x1fe620,_0x408395=_0x3f1f05[_0x3e27f7(0x357)],_0x41d93c=new _0x2eef51[(_0x3e27f7(0x28f))]();_0x41d93c[_0x3e27f7(0x1a8)](_0x559f94);const _0x44f149={'cellInfo':_0x408395,'view':_0x41d93c,'isEmpty':_0x215222};if(!await _0x841599[_0x3e27f7(0x411)](_0x1cc2c4[_0x3e27f7(0x3f9)])[_0x3e27f7(0x24d)][_0x3e27f7(0x3a5)](_0x460ff6)(!0x0,_0x44f149))return!0x1;const _0x2f3960=_0x20a5db(_0x841599,_0x41d93c,_0x408395,_0x215222),_0x380340=_0x1bde9c(_0x841599,_0x44f149),{undos:_0x1f22c6,redos:_0x4494d4}=_0x93d0f(_0x481d44,{'pivotTableId':_0x3a51dc,'unitId':_0xefb422,'subUnitId':_0x546d1a},_0x60245b);return _0x374f23['sequenceExecute']([..._0x2f3960['redos'],..._0x380340[_0x3e27f7(0x451)],..._0x4494d4],_0x481d44),_0x2b2f73[_0x3e27f7(0x2c7)]({'unitID':_0xefb422,'redoMutations':[..._0x2f3960[_0x3e27f7(0x451)],..._0x380340['redos'],..._0x4494d4],'undoMutations':[..._0x2f3960[_0x3e27f7(0x252)],..._0x380340['undos'],..._0x1f22c6]}),!0x0;}},_0x48a40f={'id':_0x5d1072(0x261),'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'handler':(_0x5ca6c2,_0x42bf4b)=>{const _0x51e153=_0x5d1072;if(!_0x42bf4b)return!0x1;if(!!_0x5ca6c2['get'](_0x374f23[_0x51e153(0x224)])['getConfig'](_0x1e657c))return!0x0;const {unitId:_0x58cacb,subUnitId:_0x4039f2,pivotTableId:_0x19175b,tableFieldId:_0x13711b,dateType:_0x269919}=_0x42bf4b,_0x4eb97d=_0x5ca6c2[_0x51e153(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),_0x162bd9=_0x4eb97d[_0x51e153(0x202)](_0x19175b);if(!_0x162bd9)return!0x1;const _0xb094f9=_0x162bd9[_0x51e153(0x1ed)](_0x13711b);if(!_0xb094f9)return!0x1;const _0x1100de=_0xb094f9['getOriginFieldId'](),_0x41a715=_0x162bd9['getDataFieldByDataFieldId'](_0x1100de),_0xe19aa7=(_0x41a715==null?void 0x0:_0x41a715['getName']())+'\x20'+_0x379197(_0x5ca6c2,_0x269919);_0x4eb97d[_0x51e153(0x43d)](_0x58cacb,_0x19175b)[_0x51e153(0x3b0)](_0xb094f9['id'],_0xe19aa7);const _0xafcda5=_0x162bd9['getTableFieldById'](_0x13711b);if(!_0xafcda5)return!0x1;_0x162bd9[_0x51e153(0x18a)](_0xafcda5['getId'](),_0xe19aa7),_0xb094f9['setDateType'](_0x269919);const _0x5d9ee9=_0x4eb97d[_0x51e153(0x458)](_0x58cacb,_0x4039f2,_0x19175b);return _0x4eb97d[_0x51e153(0x1fe)]({'unitId':_0x58cacb,'subUnitId':_0x4039f2,'token':_0x19175b,'type':_0x5ae422[_0x51e153(0x332)],'pivotConfig':_0x5d9ee9}),!0x0;}},_0x1206a2={'id':_0x5d1072(0x244),'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'handler':(_0x5a5c5b,_0x1b3f50)=>{const _0x2adf7a=_0x5d1072;if(!_0x1b3f50)return!0x1;const _0x54c8a2=_0x5a5c5b['get'](_0x374f23['IUndoRedoService']),{unitId:_0x20dfaa,subUnitId:_0x143e23,pivotTableId:_0x28db46,tableFieldId:_0x2d42b8}=_0x1b3f50,_0x37f21c=[],_0x17bd72=[],_0x471a4f=_0x5a5c5b[_0x2adf7a(0x411)](_0x1cc2c4['SheetsPivotTableConfigModel']),_0xbceb35=_0x471a4f['getCollection'](_0x20dfaa,_0x28db46),_0x5128e8=_0x471a4f[_0x2adf7a(0x458)](_0x20dfaa,_0x143e23,_0x28db46);if(!(_0x5128e8!=null&&_0x5128e8[_0x2adf7a(0x3b6)]['dimension']))return!0x1;const _0x5967f6=Object['values'](_0x5128e8[_0x2adf7a(0x3b6)][_0x2adf7a(0x455)])[_0x2adf7a(0x307)](_0x1409e4=>_0x1409e4['id']===_0x2d42b8);if(!_0x5967f6)return!0x1;const _0x1cc0b1=_0x5967f6['dataFieldId'];if(!(_0xbceb35!=null&&_0xbceb35[_0x2adf7a(0x45c)]))return!0x1;const _0xf07e50=Object[_0x2adf7a(0x39c)](_0xbceb35==null?void 0x0:_0xbceb35['fields'])[_0x2adf7a(0x307)](_0x4f3acc=>_0x4f3acc['id']===_0x1cc0b1);if(!_0xf07e50)return!0x1;_0x2eef51[_0x2adf7a(0x210)](_0xf07e50)&&_0x37f21c['push']({'id':_0x48a40f['id'],'params':{..._0x1b3f50,'dateType':_0xf07e50[_0x2adf7a(0x310)]}}),_0x17bd72['push']({'id':_0x48a40f['id'],'params':{..._0x1b3f50}});const _0x257f6a=_0x5a5c5b['get'](_0x374f23[_0x2adf7a(0x386)]);return _0x374f23[_0x2adf7a(0x203)](_0x17bd72,_0x257f6a)&&_0x54c8a2[_0x2adf7a(0x2c7)]({'unitID':_0x20dfaa,'undoMutations':_0x37f21c,'redoMutations':_0x17bd72}),!0x0;}},_0x1ebb0c={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x3dc),async 'handler'(_0x393570,_0x2338ab){const _0x17e56b=_0x5d1072;if(!_0x2338ab)return!0x1;const _0x56bad1=_0x393570[_0x17e56b(0x411)](_0x374f23[_0x17e56b(0x386)]),_0x4b0ad1=_0x393570[_0x17e56b(0x411)](_0x374f23[_0x17e56b(0x284)]),_0x4299e5=_0x393570['get'](_0x1cc2c4[_0x17e56b(0x333)]),{displayName:_0x5859d5,subtotalType:_0x4dd29c,format:_0x17fc9f,tableFieldId:_0x1788f4,pivotTableId:_0xd703fc,unitId:_0x17be08,subUnitId:_0x7ad3e5}=_0x2338ab,_0x8bcc78=(await _0x4299e5['getPivotDisplayConfig']({'unitId':_0x17be08,'subUnitId':_0x7ad3e5,'pivotTableId':_0xd703fc,'params':{'type':_0x5370e2['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x1788f4,'displayName':_0x5859d5,'subtotalType':_0x4dd29c,'format':_0x17fc9f}}}))[_0x17e56b(0x3de)][_0x17e56b(0x289)];if(!_0x8bcc78)return!0x1;const {changesets:_0x4793cd,view:_0x39079f,pivotTableConfig:_0x2a3f8b,isEmpty:_0x433ef5}=_0x8bcc78,_0x4380a0=_0x2a3f8b[_0x17e56b(0x357)],_0x10eb83=new _0x2eef51[(_0x17e56b(0x28f))]();_0x10eb83[_0x17e56b(0x1a8)](_0x39079f);const _0x49a095={'cellInfo':_0x4380a0,'view':_0x10eb83,'isEmpty':_0x433ef5};if(!await _0x393570['get'](_0x1cc2c4[_0x17e56b(0x3f9)])[_0x17e56b(0x24d)][_0x17e56b(0x3a5)](_0x460ff6)(!0x0,_0x49a095))return!0x1;const _0x54b87e=_0x20a5db(_0x393570,_0x10eb83,_0x4380a0,_0x433ef5),_0x2b16c8=_0x1bde9c(_0x393570,_0x49a095),{undos:_0x58928a,redos:_0x5247bb}=_0x93d0f(_0x56bad1,{'pivotTableId':_0xd703fc,'unitId':_0x17be08,'subUnitId':_0x7ad3e5},_0x4793cd);return _0x374f23[_0x17e56b(0x203)]([..._0x54b87e['redos'],..._0x2b16c8[_0x17e56b(0x451)],..._0x5247bb],_0x56bad1),_0x4b0ad1[_0x17e56b(0x2c7)]({'unitID':_0x17be08,'redoMutations':[..._0x54b87e[_0x17e56b(0x451)],..._0x2b16c8[_0x17e56b(0x451)],..._0x5247bb],'undoMutations':[..._0x54b87e['undos'],..._0x2b16c8[_0x17e56b(0x252)],..._0x58928a]}),!0x0;}},_0x1708ad={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x1eb),'handler'(_0x46c793,_0x34f9c6){const _0x5e4164=_0x5d1072;if(!_0x34f9c6)return!0x1;if(!!_0x46c793[_0x5e4164(0x411)](_0x374f23[_0x5e4164(0x224)])[_0x5e4164(0x19c)](_0x1e657c))return!0x0;const _0x47eb0c=_0x46c793[_0x5e4164(0x411)](_0x1cc2c4[_0x5e4164(0x38e)]),{pivotTableId:_0x24b385,deleteIds:_0x17ea23,collectionJSON:_0x4cdcb1,dataRangeInfo:_0x13c28c,unitId:_0x37d39e,subUnitId:_0x39358c}=_0x34f9c6,_0xf15322=_0x47eb0c[_0x5e4164(0x202)](_0x24b385),_0x2e1082=_0x47eb0c[_0x5e4164(0x458)](_0x37d39e,_0x39358c,_0x24b385);if(!_0xf15322||!_0x2e1082)return!0x1;const {collection:_0x410ea2,updateDataFieldList:_0x2bbd1a}=_0x47eb0c[_0x5e4164(0x2b4)](_0x24b385,_0x4cdcb1,_0x13c28c,_0x2e1082[_0x5e4164(0x357)]);_0x47eb0c[_0x5e4164(0x33a)](_0x410ea2,_0x2bbd1a,_0x13c28c),_0xf15322['updateDataFieldsCollection'](_0x410ea2);for(const _0x57a158 of _0x17ea23)_0x47eb0c[_0x5e4164(0x435)](_0x13c28c[_0x5e4164(0x29a)],_0x57a158);const _0x3c1fa2=_0x47eb0c[_0x5e4164(0x458)](_0x37d39e,_0x39358c,_0x24b385);return _0x3c1fa2[_0x5e4164(0x1d7)]=JSON[_0x5e4164(0x2ab)](JSON[_0x5e4164(0x22c)](_0x13c28c)),_0x47eb0c[_0x5e4164(0x1fe)]({'unitId':_0x37d39e,'subUnitId':_0x39358c,'token':_0x24b385,'type':_0x5ae422['Set']}),!0x0;}},_0x5784b7={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':_0x5d1072(0x422),async 'handler'(_0x27a18a,_0xeaa27d){const _0x768e83=_0x5d1072,_0x49befa=_0x27a18a['get'](_0x374f23[_0x768e83(0x386)]),_0xf4725a=_0x27a18a[_0x768e83(0x411)](_0x1cc2c4['SheetsPivotRPCService']),_0x967485=_0x27a18a[_0x768e83(0x411)](_0x374f23[_0x768e83(0x284)]);if(!_0xeaa27d)return!0x1;const {token:_0x15f6e7,dataRangeInfo:_0x1ac748,unitId:_0x1307b6,subUnitId:_0x3d7570}=_0xeaa27d,_0x40f3f2=[],_0x23b005=[],_0x5530f5=(await _0xf4725a['getPivotDisplayConfig']({'unitId':_0x1307b6,'subUnitId':_0x3d7570,'pivotTableId':_0x15f6e7,'params':{'type':_0x5370e2[_0x768e83(0x18d)],'updatePivotSource':{'dataRangeInfo':_0x1ac748,'unitId':_0x1307b6,'subUnitId':_0x3d7570}}}))[_0x768e83(0x3de)]['updatePivotSource'];if(!_0x5530f5)return!0x1;const {changesets:_0x49b6be,deleteIds:_0x21cabe,collectionConfig:_0x459509,oldCollectionConfig:_0x362a64,view:_0x341a09,isEmpty:_0x9133a3,pivotTableConfig:_0x3e8299}=_0x5530f5;_0x23b005['push']({'id':_0x1708ad['id'],'params':{'pivotTableId':_0x15f6e7,'deleteIds':_0x21cabe,'collectionJSON':_0x459509,'dataRangeInfo':_0x1ac748,'unitId':_0x1307b6,'subUnitId':_0x3d7570}}),_0x40f3f2[_0x768e83(0x31c)]({'id':_0x1708ad['id'],'params':{'pivotTableId':_0x15f6e7,'deleteIds':[],'collectionJSON':_0x362a64,'dataRangeInfo':_0x3e8299[_0x768e83(0x1d7)],'unitId':_0x1307b6,'subUnitId':_0x3d7570}});const _0x2fb44f=_0x3e8299[_0x768e83(0x357)],_0x55690b=new _0x2eef51[(_0x768e83(0x28f))]();_0x55690b[_0x768e83(0x1a8)](_0x341a09);const _0xe0b10a={'cellInfo':_0x2fb44f,'view':_0x55690b,'isEmpty':_0x9133a3};if(!await _0x27a18a[_0x768e83(0x411)](_0x1cc2c4[_0x768e83(0x3f9)])[_0x768e83(0x24d)][_0x768e83(0x3a5)](_0x460ff6)(!0x0,_0xe0b10a))return!0x1;const _0x46aed6=_0x20a5db(_0x27a18a,_0x55690b,_0x2fb44f,_0x9133a3),_0x42fda0=_0x1bde9c(_0x27a18a,_0xe0b10a),{undos:_0x54e5c7,redos:_0x5d99ae}=_0x93d0f(_0x49befa,{'pivotTableId':_0x15f6e7,'unitId':_0x1307b6,'subUnitId':_0x3d7570},_0x49b6be);return _0x374f23[_0x768e83(0x203)]([..._0x46aed6['redos'],..._0x42fda0[_0x768e83(0x451)],..._0x23b005,..._0x54e5c7],_0x49befa),_0x967485[_0x768e83(0x2c7)]({'unitID':_0x1307b6,'redoMutations':[..._0x46aed6[_0x768e83(0x451)],..._0x42fda0[_0x768e83(0x451)],..._0x23b005,..._0x54e5c7],'undoMutations':[..._0x46aed6[_0x768e83(0x252)],..._0x42fda0[_0x768e83(0x252)],..._0x40f3f2,..._0x5d99ae]}),!0x0;}},_0x2c9eb9={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x221),async 'handler'(_0x3bf97f,_0x136472){const _0x19e4a0=_0x5d1072;if(!_0x136472)return!0x1;const _0x3679d8=_0x3bf97f['get'](_0x374f23['ICommandService']),_0x1bc71a=_0x3bf97f['get'](_0x1cc2c4['SheetsPivotRPCService']),_0x575275=_0x3bf97f[_0x19e4a0(0x411)](_0x374f23[_0x19e4a0(0x1d8)]),_0x2aa94d=_0x3bf97f['get'](_0x374f23[_0x19e4a0(0x284)]),{pivotTableId:_0x14343d,position:_0x50a96f,index:_0x307b38}=_0x136472,_0x3b48d4=_0x24a2a7[_0x19e4a0(0x1db)](_0x575275);if(!_0x3b48d4)return!0x1;const {unitId:_0x574968,subUnitId:_0x2eb3dd}=_0x3b48d4,_0x2ddf7b=(await _0x1bc71a[_0x19e4a0(0x291)]({'unitId':_0x574968,'subUnitId':_0x2eb3dd,'pivotTableId':_0x14343d,'params':{'type':_0x5370e2[_0x19e4a0(0x228)],'updateValuePosition':{'position':_0x50a96f,'index':_0x307b38}}}))[_0x19e4a0(0x3de)][_0x19e4a0(0x3ed)];if(!_0x2ddf7b)return!0x1;const {changesets:_0x172750,view:_0x3d8b51,isEmpty:_0x77e12f,pivotTableConfig:_0x1d9347}=_0x2ddf7b,_0x5f8b8f=_0x1d9347[_0x19e4a0(0x357)],_0x153e2d=new _0x2eef51[(_0x19e4a0(0x28f))]();_0x153e2d[_0x19e4a0(0x1a8)](_0x3d8b51);const _0x1b88de=_0x3bf97f[_0x19e4a0(0x411)](_0x1cc2c4[_0x19e4a0(0x3f9)]),_0x4945da={'cellInfo':_0x5f8b8f,'view':_0x153e2d,'isEmpty':_0x77e12f};if(!await _0x1b88de[_0x19e4a0(0x24d)]['fetchThroughAsyncInterceptors'](_0x460ff6)(!0x0,_0x4945da))return!0x1;const _0x5c7b06=_0x20a5db(_0x3bf97f,_0x153e2d,_0x5f8b8f,_0x77e12f),_0x362a37=_0x1bde9c(_0x3bf97f,_0x4945da),{undos:_0x132f09,redos:_0x979285}=_0x93d0f(_0x3679d8,{'pivotTableId':_0x14343d,'unitId':_0x574968,'subUnitId':_0x2eb3dd},_0x172750);return _0x374f23[_0x19e4a0(0x203)]([..._0x5c7b06[_0x19e4a0(0x451)],..._0x362a37[_0x19e4a0(0x451)],..._0x979285],_0x3679d8),_0x2aa94d[_0x19e4a0(0x2c7)]({'unitID':_0x574968,'redoMutations':[..._0x5c7b06[_0x19e4a0(0x451)],..._0x362a37[_0x19e4a0(0x451)],..._0x979285],'undoMutations':[..._0x5c7b06['undos'],..._0x362a37[_0x19e4a0(0x252)],..._0x132f09]}),!0x0;}},_0x2daf6b={'type':_0x374f23['CommandType']['MUTATION'],'id':_0x5d1072(0x393),'handler'(){return!0x0;}};var _0x1a21a3=Object[_0x5d1072(0x2c5)],_0xd1ae08=(_0x4d5463,_0x36903c,_0x3b1fea,_0x5e4c51)=>{const _0x5e82ff=_0x5d1072;for(var _0x19f3a0=_0x5e4c51>0x1?void 0x0:_0x5e4c51?_0x1a21a3(_0x36903c,_0x3b1fea):_0x36903c,_0x17461d=_0x4d5463[_0x5e82ff(0x468)]-0x1,_0x414180;_0x17461d>=0x0;_0x17461d--)(_0x414180=_0x4d5463[_0x17461d])&&(_0x19f3a0=_0x414180(_0x19f3a0)||_0x19f3a0);return _0x19f3a0;},_0x3e00f9=(_0x210562,_0x55cc3b)=>(_0x3da42a,_0x1eaa22)=>_0x55cc3b(_0x3da42a,_0x1eaa22,_0x210562);const _0x3b8943=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0xc94a9b=(_0x1881de,_0x23ea6d,_0x134683)=>{const _0x1fa56c=_0x5d1072,_0x3a45fc=_0x1881de[_0x1fa56c(0x29d)];_0x1881de[_0x1fa56c(0x296)](_0x2480f1=>{const _0x38939f=_0x1fa56c,_0x8c6209=_0x2480f1['getId'](),_0x555204=_0x2480f1[_0x38939f(0x2ea)](),_0x398216=_0x2480f1[_0x38939f(0x269)](),_0xc429ea=_0x2480f1['getDisplayName']();_0x23ea6d[_0x555204]&&_0x23ea6d[_0x555204]===_0xc429ea&&_0x398216===_0xc429ea&&(_0x1881de[_0x38939f(0x18a)](_0x8c6209,_0x3a45fc[_0x38939f(0x263)](_0x555204)),_0x2480f1[_0x38939f(0x207)](_0x3a45fc[_0x38939f(0x263)](_0x555204)));}),_0x1881de[_0x1fa56c(0x29b)](_0x2eef51[_0x1fa56c(0x329)][_0x1fa56c(0x444)],_0x13d9da=>{const _0x2e55ca=_0x1fa56c,_0x2ef255=_0x13d9da['getId'](),_0x482210=_0x13d9da[_0x2e55ca(0x2ea)](),_0x139a1c=_0x13d9da[_0x2e55ca(0x269)](),_0x5c4cea=_0x13d9da[_0x2e55ca(0x263)](),_0x29c168=_0x13d9da[_0x2e55ca(0x3c2)](),_0x37545e=_0x134683(_0x139a1c,_0x29c168);_0x23ea6d[_0x482210]&&_0x23ea6d[_0x482210]===_0x139a1c&&_0x37545e===_0x5c4cea&&(_0x1881de[_0x2e55ca(0x18a)](_0x2ef255,_0x134683(_0x3a45fc[_0x2e55ca(0x263)](_0x482210),_0x29c168)),_0x13d9da['setSourceName'](_0x3a45fc[_0x2e55ca(0x263)](_0x482210)));});},_0x3455a3=(_0x1dd409,_0x127a4b,_0x1073a2)=>{const _0xd5b210=_0x5d1072;var _0x455262,_0x44cb98;const {arrayFormulaCellData:_0x338329,unitData:_0x3d69ee}=_0x127a4b,{unitId:_0x1750d1,subUnitId:_0x4158ab}=_0x1073a2,_0x50b059=_0x1073a2[_0xd5b210(0x3ee)],{startColumn:_0x168873,endColumn:_0x3fad3d}=_0x50b059,_0x47c372=(_0x455262=_0x338329==null?void 0x0:_0x338329[_0x1750d1])==null?void 0x0:_0x455262[_0x4158ab],_0x10f0bf=(_0x44cb98=_0x3d69ee==null?void 0x0:_0x3d69ee[_0x1750d1])==null?void 0x0:_0x44cb98[_0x4158ab],_0x686009=new Set(),_0x463c0c=_0x3fad3d-_0x168873+0x1,{dirtyRanges:_0x5a06c8}=_0x1dd409;if(_0x5a06c8)for(const {range:_0x16c506,sheetId:_0x5984de,unitId:_0x2ff79d}of _0x5a06c8){if(_0x5984de!==_0x4158ab||_0x1750d1!==_0x2ff79d)continue;const _0x65c6f5=_0x374f23['Rectangle'][_0xd5b210(0x19d)](_0x16c506,_0x50b059);if(_0x65c6f5){const {startColumn:_0x28a8bb,endColumn:_0x2ebf63}=_0x65c6f5;for(let _0x49dcf7=_0x28a8bb;_0x49dcf7<=_0x2ebf63;_0x49dcf7++)_0x686009[_0xd5b210(0x346)](_0x49dcf7);}}if(_0x686009[_0xd5b210(0x249)]===_0x463c0c||_0x686009[_0xd5b210(0x249)]===_0x463c0c)return Array[_0xd5b210(0x2d9)](_0x686009);if(_0x10f0bf){const _0x55f88f=_0x10f0bf[_0xd5b210(0x469)](),_0x539fe7=Object[_0xd5b210(0x3d8)](_0x55f88f);for(const _0x3a8cc7 of _0x539fe7){const _0x1a487e=Number(_0x3a8cc7),_0x5a214c=_0x55f88f[_0x1a487e];if(_0x686009[_0xd5b210(0x249)]===_0x463c0c)break;for(const _0x3015d0 in _0x5a214c){const _0x32bcd6=Number(_0x3015d0);_0x32bcd6<_0x168873||_0x32bcd6>_0x3fad3d||_0x686009[_0xd5b210(0x346)](_0x32bcd6);}}}if(_0x47c372){const _0x4f4b8b=_0x47c372[_0xd5b210(0x469)](),_0x2e82b2=Object[_0xd5b210(0x3d8)](_0x4f4b8b);for(const _0x3a36fd of _0x2e82b2){const _0xf3af96=Number(_0x3a36fd),_0x4f66b1=_0x4f4b8b[_0xf3af96];if(_0x686009[_0xd5b210(0x249)]===_0x463c0c)break;for(const _0x13b4ef in _0x4f66b1){const _0x1ae9aa=Number(_0x13b4ef);_0x1ae9aa<_0x168873||_0x1ae9aa>_0x3fad3d||_0x686009['add'](_0x1ae9aa);}}}return Array[_0xd5b210(0x2d9)](_0x686009);},_0xc5da59=_0x130736=>{const _0x4e0335=_0x5d1072,_0x3fdf62=new Set(),_0x4a03b0=[];for(const _0x4d2f6e of _0x130736){const _0x567699=_0x4d2f6e[_0x4e0335(0x378)]+','+_0x4d2f6e[_0x4e0335(0x3a2)]+','+_0x4d2f6e[_0x4e0335(0x3b9)]+','+_0x4d2f6e[_0x4e0335(0x217)];_0x3fdf62[_0x4e0335(0x1b5)](_0x567699)||(_0x3fdf62[_0x4e0335(0x346)](_0x567699),_0x4a03b0[_0x4e0335(0x27b)](_0x4d2f6e));}return _0x4a03b0;};let _0x5d6160=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x2c673e,_0x53daf1,_0x501c26,_0x14375a,_0x56cbfb){const _0xfdb553=_0x5d1072;super(),_0x1e0b19(this,_0xfdb553(0x3d0),new _0x1cd777['BehaviorSubject'](!0x0)),_0x1e0b19(this,_0xfdb553(0x3b8),_0x587074=>{const _0x3a096f=_0xfdb553;this[_0x3a096f(0x3d0)][_0x3a096f(0x3f8)](!0x1);}),_0x1e0b19(this,_0xfdb553(0x25a),_0x26dfdc=>{const _0x12775f=_0xfdb553;this[_0x12775f(0x3d0)]['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x2c673e,this[_0xfdb553(0x479)]=_0x53daf1,this[_0xfdb553(0x454)]=_0x501c26,this['_globalComputingSrv']=_0x14375a,this[_0xfdb553(0x42a)]=_0x56cbfb,this[_0xfdb553(0x3b2)](),this['_initPivotDataGetListener']());}[_0x5d1072(0x3b2)](){const _0x15da66=_0x5d1072;this[_0x15da66(0x1b6)](),this[_0x15da66(0x314)](),this['_initPivotTextInfo'](),this[_0x15da66(0x3e0)]();}[_0x5d1072(0x47c)](){const _0x4ae171=_0x5d1072;this['_globalComputingSrv'][_0x4ae171(0x36e)](this['_globalSubject']),_0x2eef51[_0x4ae171(0x1dc)][_0x4ae171(0x330)](_0x2eef51[_0x4ae171(0x287)]['onQueryStart'],this[_0x4ae171(0x3b8)]),_0x2eef51['PivotTable'][_0x4ae171(0x330)](_0x2eef51[_0x4ae171(0x287)][_0x4ae171(0x27a)],this[_0x4ae171(0x25a)]);}['_initPivotDataGetListener'](){const _0x10f7e3=_0x5d1072;this[_0x10f7e3(0x372)](this[_0x10f7e3(0x454)][_0x10f7e3(0x44f)](_0x10b497=>{const _0x35b365=_0x10f7e3;_0x10b497['id']===_0x24a2a7[_0x35b365(0x2c3)]['id']&&this[_0x35b365(0x1a4)][_0x35b365(0x2f8)](_0x10b497['params']);})),this[_0x10f7e3(0x372)](this[_0x10f7e3(0x454)][_0x10f7e3(0x44f)](_0x410d97=>{const _0x3f3abf=_0x10f7e3;if(_0x410d97['id']!==_0x23d358['id'])return;const _0x471fac=_0x410d97[_0x3f3abf(0x3aa)],{unitId:_0x11bd3a,subUnitId:_0x1c7c69,pivotTableId:_0x42b7b1}=_0x471fac,_0x128aeb=_0x471fac['params'][_0x3f3abf(0x1fd)],_0xcdaef4={};switch(_0x128aeb){case _0x5370e2[_0x3f3abf(0x2f1)]:{const _0xfff066=_0x471fac[_0x3f3abf(0x3aa)]['filter'];if(!_0xfff066)return;const {row:_0x156004,col:_0x3e425e,cellData:_0x4516d9,pivotItemRenderInfoCache:_0x2a5bb7,tableFieldId:_0x22ad56}=_0xfff066,_0x52cab2=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x471fac['pivotTableId']);if(!_0x52cab2||!_0x2a5bb7)return;if(_0x22ad56){const _0xa74f7d=_0x52cab2['getDataFieldByTableId'](_0x22ad56);if(!_0xa74f7d)return;_0xcdaef4[_0x3f3abf(0x341)]={..._0x52cab2[_0x3f3abf(0x3be)](_0xa74f7d),'tableFieldId':_0x22ad56,'pivotTableId':_0x471fac[_0x3f3abf(0x280)],'filterInfo':_0x52cab2[_0x3f3abf(0x24f)](_0x22ad56),'sortInfo':_0x52cab2[_0x3f3abf(0x219)](_0x22ad56),'format':_0x52cab2['getFieldFormat'](_0x22ad56)};}else{const _0x54a989=_0x21a2ff(_0x156004,_0x3e425e,_0x4516d9,_0x52cab2,_0x2a5bb7),_0x391fb4=_0x54a989==null?void 0x0:_0x54a989[_0x3f3abf(0x237)];if(!_0x391fb4)return;const _0x1aa3be=_0x52cab2[_0x3f3abf(0x1ed)](_0x391fb4);if(!_0x1aa3be)return;_0xcdaef4[_0x3f3abf(0x341)]={..._0x52cab2[_0x3f3abf(0x3be)](_0x1aa3be),'tableFieldId':_0x391fb4,'pivotTableId':_0x471fac['pivotTableId'],'filterInfo':_0x52cab2[_0x3f3abf(0x24f)](_0x391fb4),'sortInfo':_0x52cab2[_0x3f3abf(0x219)](_0x391fb4),'format':_0x52cab2[_0x3f3abf(0x1f6)](_0x391fb4)};}}break;case _0x5370e2[_0x3f3abf(0x232)]:{const _0xd73abb=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x313)];if(!_0xd73abb)return;const {pivotTableId:_0x50fcd8}=_0xd73abb,_0x50286d=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x50fcd8);if(!_0x50286d)return;const _0x25851f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x50fcd8),_0x1ad6ed=_0xb9c753(_0x50286d,_0x50fcd8,_0x25851f);_0xcdaef4[_0x3f3abf(0x313)]=_0x1ad6ed;}break;case _0x5370e2[_0x3f3abf(0x35c)]:{const _0x483592=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x42b7b1),_0x3d6ea1=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x367)](_0x11bd3a),_0x43929f=_0x3d6ea1[_0x3f3abf(0x43d)](_0x42b7b1);let _0x17c262=null;const _0x531376=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1),_0x393590=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3e7)];if(!_0x483592||!_0x531376||!_0x393590)return!0x1;const {dataFieldId:_0x4fb4ce,fieldArea:_0x44f906,index:_0x2d36d9}=_0x393590;_0x483592[_0x3f3abf(0x1c6)]();const _0x3722e0=_0x483592[_0x3f3abf(0x327)](_0x4fb4ce,_0x44f906,_0x2d36d9);if(_0x3722e0&&_0x44f906===_0x2eef51['PivotTableFiledAreaEnum']['Value']){const _0x524636=_0x3722e0['getId'](),_0x196287=_0x483592[_0x3f3abf(0x1ed)](_0x524636);if(_0x196287){const _0x2a434e=_0x196287==null?void 0x0:_0x196287['getFieldDataType']();_0x483592['setSubtotalType'](_0x3722e0[_0x3f3abf(0x470)](),_0x2a434e===_0x2eef51['PivotDataFieldDataTypeEnum'][_0x3f3abf(0x41e)]?_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x25d)]:_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x1a5)]);}const _0x3c85e3=_0x483592[_0x3f3abf(0x428)](),_0x37d341=_0x483592[_0x3f3abf(0x185)](),_0x2ad9b9=_0x483592[_0x3f3abf(0x30c)](_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x444)]);if(_0x3c85e3===-0x1&&_0x2ad9b9>0x1){const _0xce67f5=_0x37d341===_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x3f1)]?_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x403)]:_0x37d341,_0x3aa0b6=_0xce67f5===_0x2eef51['PivotTableValuePositionEnum']['Row']?_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]:_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x403)];_0x483592['updateValuePosition'](_0xce67f5,_0x483592['getFieldCountByArea'](_0x3aa0b6));}}else{if(_0x3722e0&&(_0x44f906===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]||_0x44f906===_0x2eef51[_0x3f3abf(0x329)]['Column'])){const _0x189f82=_0x3722e0['getId'](),_0x18827c=_0x483592[_0x3f3abf(0x1ed)](_0x189f82);if(_0x18827c&&(_0x18827c==null?void 0x0:_0x18827c[_0x3f3abf(0x20b)]())===_0x2eef51[_0x3f3abf(0x3fb)]['date']){const _0x457b7e=_0x18827c[_0x3f3abf(0x3c0)]();if(_0x457b7e&&_0x483592[_0x3f3abf(0x3a3)](_0x3722e0[_0x3f3abf(0x470)](),_0x457b7e),!_0x43929f[_0x3f3abf(0x324)]()[_0x3f3abf(0x3c4)](_0x156ad5=>{const _0x484ddd=_0x3f3abf,_0x59a84d=_0x43929f[_0x484ddd(0x35d)](_0x156ad5);return _0x2eef51[_0x484ddd(0x467)](_0x59a84d)?_0x59a84d[_0x484ddd(0x288)]()[_0x484ddd(0x3b7)]===_0x4fb4ce:!0x1;})){const _0x45bdfb=_0x3d6ea1[_0x3f3abf(0x1a6)](),_0x1cabea=_0x1446a4(_0x18827c[_0x3f3abf(0x190)],_0x18827c[_0x3f3abf(0x2a2)]),_0x102593=_0x18827c[_0x3f3abf(0x353)]()+_0x3f3abf(0x3fa)+_0x379197(this['_injector'],_0x1cabea),_0x17bd46=new _0x2eef51['DateGroupField'](_0x45bdfb,_0x102593,_0x2eef51[_0x3f3abf(0x39d)](0x3),_0x18827c[_0x3f3abf(0x470)](),_0x1cabea);_0x3d6ea1[_0x3f3abf(0x387)](_0x17bd46),_0x43929f[_0x3f3abf(0x34b)](_0x45bdfb,_0x102593),_0x483592['addFieldWithSourceId'](_0x45bdfb,_0x44f906,(_0x2d36d9!=null?_0x2d36d9:0x0)+0x1),_0x17c262=_0x17bd46;}}}}const _0xe14189=_0x483592[_0x3f3abf(0x475)](),_0x4e5cd5=_0x483592[_0x3f3abf(0x293)]()['toJSON']();let _0x344beb;if(_0x17c262){_0x344beb=_0x17c262[_0x3f3abf(0x3ff)]();const _0xba3a38=_0x17c262['getId']();_0x43929f[_0x3f3abf(0x248)](_0xba3a38);let _0x4d7fb9=!0x0;for(const _0x3b2f2d in _0x3d6ea1['collections'])if(_0x3d6ea1[_0x3f3abf(0x459)][_0x3b2f2d][_0x3f3abf(0x324)]()[_0x3f3abf(0x42d)](_0xba3a38)){_0x4d7fb9=!0x1;break;}_0x4d7fb9&&_0x3d6ea1['deleteDataField'](_0xba3a38);}const _0x2cb61b=_0x483592[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x3e7)]={'view':_0x4e5cd5,'changesets':_0x2cb61b,'isEmpty':_0xe14189,'pivotTableConfig':_0x531376,'shouldBeAddedGroupJSON':_0x344beb};}break;case _0x5370e2['AddPivotTable']:{const _0x50f9=_0x471fac[_0x3f3abf(0x3aa)]['addPivotTable'];if(!_0x50f9)return;const _0x8ff475=_0x50f9[_0x3f3abf(0x1d7)],_0x5a894a=_0x50f9[_0x3f3abf(0x280)],{collection:_0x1f60db}=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x27c)]({'unitId':_0x8ff475['unitId'],'sheetName':_0x8ff475[_0x3f3abf(0x376)],'subUnitId':_0x8ff475[_0x3f3abf(0x294)],'range':_0x8ff475[_0x3f3abf(0x3ee)]}),_0x30fee2=new _0x2eef51[(_0x3f3abf(0x1dc))](_0x1f60db,void 0x0,_0x5a894a),_0xb58137=_0x30fee2[_0x3f3abf(0x293)](),_0x2cdd79=_0x30fee2[_0x3f3abf(0x3ff)](),_0x18517a=_0x1f60db[_0x3f3abf(0x3ff)]();_0xcdaef4[_0x3f3abf(0x42c)]={'view':_0xb58137,'fieldsConfig':_0x2cdd79,'collectionConfig':_0x18517a,'isEmpty':_0x30fee2[_0x3f3abf(0x475)]()};}break;case _0x5370e2[_0x3f3abf(0x3a0)]:{const _0x20bc3f=_0x471fac['params'][_0x3f3abf(0x3ab)];if(!_0x20bc3f)return;const {fieldId:_0x19a40c,area:_0x4f56c0,index:_0x5583fa}=_0x20bc3f,_0x419d71=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x419d71)return;const _0x3fef3f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x3fef3f)return;_0x3fef3f[_0x3f3abf(0x1c6)]();const {area:_0x77423b,index:_0x4867bc}=_0x3fef3f[_0x3f3abf(0x23c)](_0x19a40c);if(_0x3fef3f['updateFieldPosition'](_0x19a40c,_0x4f56c0,_0x5583fa),_0x4f56c0===_0x2eef51['PivotTableFiledAreaEnum']['Value']&&_0x3fef3f[_0x3f3abf(0x3c5)](_0x19a40c)[_0x3f3abf(0x3c2)]()===void 0x0){const _0x7f5c8b=_0x3fef3f[_0x3f3abf(0x3c5)](_0x19a40c);if(_0x7f5c8b&&_0x7f5c8b[_0x3f3abf(0x3c2)]()===void 0x0){const _0x375942=_0x3fef3f[_0x3f3abf(0x1ed)](_0x19a40c);if(_0x375942){const _0x323311=_0x375942==null?void 0x0:_0x375942[_0x3f3abf(0x20b)]();_0x3fef3f['setSubtotalType'](_0x19a40c,_0x323311===_0x2eef51[_0x3f3abf(0x3fb)][_0x3f3abf(0x41e)]?_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x25d)]:_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x1a5)]);}}}const _0x28bb45=_0x3fef3f[_0x3f3abf(0x185)](),_0x55e2ac=_0x3fef3f[_0x3f3abf(0x428)](),_0x4237ca=_0x3fef3f[_0x3f3abf(0x30c)](_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x444)])>0x1;if(_0x4237ca&&_0x77423b===_0x4f56c0&&(_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)]['Row']&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum']['Row']||_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)]['Column']&&_0x28bb45===_0x2eef51[_0x3f3abf(0x2b1)]['Column'])){let _0x2064c9=_0x55e2ac;_0x4867bc<=_0x55e2ac&&_0x2064c9--,_0x5583fa<=_0x55e2ac&&_0x2064c9++,_0x3fef3f[_0x3f3abf(0x3ed)](_0x28bb45,_0x2064c9);}else _0x4237ca&&(_0x77423b===_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x415)]&&_0x28bb45===_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x415)]||_0x77423b===_0x2eef51[_0x3f3abf(0x329)]['Column']&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x403)])&&_0x55e2ac>=_0x4867bc&&_0x3fef3f[_0x3f3abf(0x3ed)](_0x28bb45,_0x55e2ac-0x1),_0x4237ca&&(_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x415)]||_0x4f56c0===_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x403)]&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x403)])&&_0x55e2ac>=_0x5583fa&&_0x3fef3f['updateValuePosition'](_0x28bb45,_0x55e2ac+0x1);const _0x2d1bdb=_0x3fef3f[_0x3f3abf(0x293)](),_0x1854ad=_0x3fef3f['isEmpty'](),_0x1a3d64=_0x3fef3f['endCollectChangeset']();_0xcdaef4['movePivotField']={'view':_0x2d1bdb[_0x3f3abf(0x3ff)](),'changesets':_0x1a3d64,'isEmpty':_0x1854ad,'pivotTableConfig':_0x419d71};}break;case _0x5370e2[_0x3f3abf(0x32f)]:{const _0x3b97e4=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3ac)];if(!_0x3b97e4)return;const _0x572483=_0x3b97e4[_0x3f3abf(0x1f7)],_0x2f62fd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x2f62fd)return!0x1;const _0x1ff947=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x1ff947)return!0x1;_0x1ff947['startCollectChangeset']();for(const _0x3e3b8c of _0x572483){const {area:_0x4e09f2}=_0x1ff947[_0x3f3abf(0x23c)](_0x3e3b8c);_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x444)]&&_0x1ff947[_0x3f3abf(0x1ec)](_0x3e3b8c),(_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]||_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)]['Column'])&&_0x1ff947['removeValueFilterInfo'](_0x3e3b8c),_0x1ff947['removeField'](_0x3e3b8c);}const _0x45990c=_0x1ff947[_0x3f3abf(0x475)](),_0x331db9=_0x1ff947[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x33e77b=_0x1ff947[_0x3f3abf(0x3b4)]();_0xcdaef4['removePivotField']={'changesets':_0x33e77b,'pivotTableConfig':_0x2f62fd,'isEmpty':_0x45990c,'view':_0x331db9};}break;case _0x5370e2['SetPivotFilter']:{const _0x533543=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x2f3)];if(!_0x533543)return;const {tableFieldId:_0xe4318f,items:_0x5d113c,isAll:_0x18d44c}=_0x533543,_0x881e21=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x411c55=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x881e21||!_0x411c55)return;_0x881e21[_0x3f3abf(0x1c6)](),_0x881e21[_0x3f3abf(0x3e2)](_0xe4318f,{'type':_0x2eef51[_0x3f3abf(0x349)]['ManualFilter'],'list':_0x5d113c,'isAll':_0x18d44c});const _0x403324=_0x881e21[_0x3f3abf(0x475)](),_0x96d4aa=_0x881e21['query']()[_0x3f3abf(0x3ff)](),_0x33e638=_0x881e21['endCollectChangeset']();_0xcdaef4[_0x3f3abf(0x2f3)]={'view':_0x96d4aa,'changesets':_0x33e638,'isEmpty':_0x403324,'pivotTableConfig':_0x411c55};}break;case _0x5370e2[_0x3f3abf(0x47d)]:{const _0x39dfb4=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x426)];if(!_0x39dfb4)return;const {tableFieldId:_0x18265c,filterInfo:_0x31ce87}=_0x39dfb4,_0x3e1997=this[_0x3f3abf(0x1a4)]['getPivotTableInstance'](_0x42b7b1),_0x335340=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x3e1997||!_0x335340)return;_0x3e1997[_0x3f3abf(0x1c6)](),_0x3e1997[_0x3f3abf(0x1e7)](_0x18265c,_0x31ce87);const _0x47b5a9=_0x3e1997[_0x3f3abf(0x475)](),_0x6e0f91=_0x3e1997[_0x3f3abf(0x293)]()['toJSON'](),_0x3f0bd7=_0x3e1997[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x426)]={'view':_0x6e0f91,'changesets':_0x3f0bd7,'isEmpty':_0x47b5a9,'pivotTableConfig':_0x335340};}break;case _0x5370e2[_0x3f3abf(0x334)]:{const _0x38f07f=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3ec)];if(!_0x38f07f)return;const {tableFieldId:_0x13ab64,info:_0xae3118}=_0x38f07f,_0x5687e0=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x1795cd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x5687e0||!_0x1795cd)return;_0x5687e0[_0x3f3abf(0x1c6)](),_0x5687e0['setSortInfo'](_0x13ab64,_0xae3118);const _0x261cc3=_0x5687e0[_0x3f3abf(0x475)](),_0x358a8c=_0x5687e0['query']()[_0x3f3abf(0x3ff)](),_0x1135a1=_0x5687e0[_0x3f3abf(0x3b4)]();_0xcdaef4['setPivotSort']={'view':_0x358a8c,'changesets':_0x1135a1,'isEmpty':_0x261cc3,'pivotTableConfig':_0x1795cd};}break;case _0x5370e2[_0x3f3abf(0x46b)]:{const _0x2da2e0=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x289)];if(!_0x2da2e0)return;const {tableFieldId:_0x33b0ae,displayName:_0x30b381,subtotalType:_0x30d0bf,format:_0x7f97b5}=_0x2da2e0,_0x7f0d9e=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x468086=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x7f0d9e||!_0x468086)return;_0x7f0d9e[_0x3f3abf(0x1c6)](),_0x30b381!==void 0x0&&_0x7f0d9e[_0x3f3abf(0x18a)](_0x33b0ae,_0x30b381),_0x30d0bf!==void 0x0&&_0x7f0d9e[_0x3f3abf(0x3ad)](_0x33b0ae,_0x30d0bf),_0x7f97b5!==void 0x0&&_0x7f0d9e['setFieldFormat'](_0x33b0ae,_0x7f97b5);const _0x1205e0=_0x7f0d9e[_0x3f3abf(0x475)](),_0x2c0585=_0x7f0d9e['query']()[_0x3f3abf(0x3ff)](),_0x17e7e9=_0x7f0d9e[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x289)]={'changesets':_0x17e7e9,'pivotTableConfig':_0x468086,'isEmpty':_0x1205e0,'view':_0x2c0585};}break;case _0x5370e2[_0x3f3abf(0x18d)]:{const _0xf2332b=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x26e)];if(!_0xf2332b)return;const {dataRangeInfo:_0x7b66c6,unitId:_0xdd2c59,subUnitId:_0x30e77a}=_0xf2332b,_0x208c01=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0xdd2c59,_0x30e77a,_0x42b7b1),_0x21136f=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x202)](_0x42b7b1);if(!this['_sheetsPivotDataSourceModel']['getCollection'](_0xdd2c59,_0x42b7b1)||!_0x21136f||!_0x208c01)return;const _0x377803=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x368)](_0xdd2c59,_0x42b7b1,_0x7b66c6),_0x21cc7c=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x43d)](_0xdd2c59,_0x42b7b1)[_0x3f3abf(0x3ff)](),{collection:_0x542c04}=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x27c)]({'unitId':_0x7b66c6[_0x3f3abf(0x29a)],'sheetName':_0x7b66c6[_0x3f3abf(0x376)],'subUnitId':_0x7b66c6['subUnitId'],'range':_0x7b66c6[_0x3f3abf(0x3ee)]}),_0x495e36=_0x542c04[_0x3f3abf(0x3ff)]();_0x21136f['startCollectChangeset']();const _0xa7d24e=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x367)](_0xdd2c59)['getAutoDisplayNameFunction']()||_0x2eef51[_0x3f3abf(0x41b)];_0x21136f[_0x3f3abf(0x1c4)](_0x2d7ce6=>{const _0x202d50=_0x3f3abf,_0x561aee=_0x2d7ce6['getDataFieldId']();if(!_0x542c04[_0x202d50(0x46c)](_0x561aee)){const _0x4a68aa=_0x542c04[_0x202d50(0x2ed)](_0x2d7ce6[_0x202d50(0x269)]());if(_0x4a68aa){_0x21136f['updateFieldSourceInfo'](_0x2d7ce6['getId'](),_0x4a68aa[_0x202d50(0x353)](),_0x4a68aa[_0x202d50(0x470)]());const {area:_0x4f7d4b}=_0x21136f['getFieldPositionInfoById'](_0x2d7ce6[_0x202d50(0x470)]());let _0x119838=_0x2d7ce6[_0x202d50(0x269)]();const _0x5a4cc3=_0x2d7ce6[_0x202d50(0x263)]();if(_0x4f7d4b===_0x2eef51[_0x202d50(0x329)]['Value']){const _0x3e0c30=_0x2d7ce6[_0x202d50(0x3c2)]();_0x119838=_0xa7d24e(_0x4a68aa[_0x202d50(0x353)](),_0x3e0c30);}_0x5a4cc3!==_0x119838&&_0x21136f['renameField'](_0x2d7ce6[_0x202d50(0x470)](),_0x119838);}else _0x21136f[_0x202d50(0x37e)](_0x2d7ce6['getId']());}});const _0x5d3577=_0x21136f[_0x3f3abf(0x475)](),_0x9f7a60=_0x21136f[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x1d4477=_0x21136f[_0x3f3abf(0x3b4)]();_0xcdaef4['updatePivotSource']={'view':_0x9f7a60,'changesets':_0x1d4477,'isEmpty':_0x5d3577,'pivotTableConfig':_0x208c01,'collectionConfig':_0x495e36,'oldCollectionConfig':_0x21cc7c,'deleteIds':_0x377803};}break;case _0x5370e2[_0x3f3abf(0x228)]:{const _0x3d7aa3=_0x471fac[_0x3f3abf(0x3aa)]['updateValuePosition'];if(!_0x3d7aa3)return;const {position:_0x1fb60f,index:_0xb6be}=_0x3d7aa3,_0x2498fd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x2498fd)return!0x1;const _0x41c83f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x41c83f)return!0x1;_0x41c83f['startCollectChangeset'](),_0x41c83f[_0x3f3abf(0x3ed)](_0x1fb60f,_0xb6be);const _0x4f3bfe=_0x41c83f[_0x3f3abf(0x475)](),_0x2d2e48=_0x41c83f[_0x3f3abf(0x293)]()['toJSON'](),_0x1a6778=_0x41c83f[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x3ed)]={'changesets':_0x1a6778,'pivotTableConfig':_0x2498fd,'isEmpty':_0x4f3bfe,'view':_0x2d2e48};}break;case _0x5370e2[_0x3f3abf(0x2f6)]:{const _0xaf6e88=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x2b9)];if(!_0xaf6e88)return;const {tableFieldId:_0x2f008d,collapse:_0x40122a,item:_0x47d2dd}=_0xaf6e88,_0x5d5bf0=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x5ad48c=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x5d5bf0||!_0x5ad48c)return;_0x5d5bf0[_0x3f3abf(0x1c6)](),_0x5d5bf0[_0x3f3abf(0x472)](_0x2f008d,_0x40122a,_0x47d2dd);const _0x355d1d=_0x5d5bf0['isEmpty'](),_0x4191e3=_0x5d5bf0[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x21e274=_0x5d5bf0[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x2b9)]={'view':_0x4191e3,'isEmpty':_0x355d1d,'pivotTableConfig':_0x5ad48c,'changesets':_0x21e274};}break;case _0x5370e2[_0x3f3abf(0x267)]:{const _0x26d60b=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x47b)];if(!_0x26d60b)return;const {pivotTableConfig:_0x27c728}=_0x26d60b,_0x1b291f=this[_0x3f3abf(0x1a4)]['getPivotTableInstance'](_0x42b7b1),_0x4971d1=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x1b291f||!_0x4971d1)return;_0x1b291f['startCollectChangeset'](),_0x5bb8f1(_0x1b291f,_0x27c728);const _0x199049=_0x1b291f[_0x3f3abf(0x475)](),_0x466dbf=_0x1b291f[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x276004=_0x1b291f[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x47b)]={'view':_0x466dbf,'isEmpty':_0x199049,'pivotTableConfig':{..._0x4971d1,'fieldsConfig':_0x1b291f[_0x3f3abf(0x3ff)]()},'changesets':_0x276004};}break;case _0x5370e2[_0x3f3abf(0x305)]:{const _0x3791a3=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x29f)];if(!_0x3791a3)return;const _0x4f4d01=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x42b7b1),_0x236f8b=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x4f4d01||!_0x236f8b)return;_0x4f4d01[_0x3f3abf(0x1c6)](),_0x1f01f2(_0x4f4d01,_0x3791a3[_0x3f3abf(0x1b0)]);const _0x38ca43=_0x4f4d01[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x5b76da=_0x4f4d01[_0x3f3abf(0x3b4)]();_0xcdaef4['resetPivotTable']={'view':_0x38ca43,'isEmpty':!0x0,'pivotTableConfig':{..._0x236f8b,'fieldsConfig':_0x4f4d01[_0x3f3abf(0x3ff)]()},'changesets':_0x5b76da};}break;case _0x5370e2[_0x3f3abf(0x231)]:{const _0x1ce8c5=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x24c)];if(!_0x1ce8c5)return;const _0x6aa0ac=_0x1ce8c5[_0x3f3abf(0x1d7)],_0x136bfa=_0x1ce8c5[_0x3f3abf(0x280)],{collection:_0xa54a4a}=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x27c)]({'unitId':_0x6aa0ac[_0x3f3abf(0x29a)],'sheetName':_0x6aa0ac[_0x3f3abf(0x376)],'subUnitId':_0x6aa0ac[_0x3f3abf(0x294)],'range':_0x6aa0ac[_0x3f3abf(0x3ee)]}),_0x206b51=new _0x2eef51['PivotTable'](_0xa54a4a,void 0x0,_0x136bfa),_0x31207d=_0xa54a4a[_0x3f3abf(0x324)](),{rows:_0x16a07d,columns:_0x302af7,filters:_0x2f3016,values:_0x4a7f2d}=_0x1ce8c5[_0x3f3abf(0x478)];_0x206b51[_0x3f3abf(0x1c6)]();for(const {field:_0xd5d87a,selectedItems:_0x1a51f9}of _0x16a07d||[]){const _0x5837aa=_0x31207d[_0xd5d87a];if(_0x5837aa){const _0x349239=_0x206b51[_0x3f3abf(0x327)](_0x5837aa,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]);_0x1a51f9&&_0x349239&&_0x206b51[_0x3f3abf(0x3e2)](_0x349239[_0x3f3abf(0x470)](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0x1a51f9,'isAll':!0x1});}}for(const {field:_0x357ab8,selectedItems:_0x279d2f}of _0x302af7||[]){const _0x4e65a7=_0x31207d[_0x357ab8];if(_0x4e65a7){const _0x284e12=_0x206b51[_0x3f3abf(0x327)](_0x4e65a7,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x403)]);_0x279d2f&&_0x284e12&&_0x206b51[_0x3f3abf(0x3e2)](_0x284e12['getId'](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0x279d2f,'isAll':!0x1});}}for(const {field:_0x1f574f,selectedItems:_0xec0f06}of _0x2f3016||[]){const _0x69f32f=_0x31207d[_0x1f574f];if(_0x69f32f){const _0x5abf35=_0x206b51[_0x3f3abf(0x327)](_0x69f32f,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x2f1)]);_0xec0f06&&_0x5abf35&&_0x206b51[_0x3f3abf(0x3e2)](_0x5abf35[_0x3f3abf(0x470)](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0xec0f06,'isAll':!0x1});}}for(const {field:_0x1a9563,subTotalType:_0x3b3e78,formatString:_0x1e536f}of _0x4a7f2d||[]){const _0x462c96=_0xa54a4a['getFieldById'](_0x31207d[_0x1a9563]);if(!_0x462c96)continue;const _0x3c49eb=_0x31207d[_0x1a9563];if(_0x3c49eb){const _0x5ec012=_0x206b51['addFieldWithSourceId'](_0x3c49eb,_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x444)]);if(_0x5ec012){if(_0x3b3e78!==void 0x0){_0x206b51[_0x3f3abf(0x3ad)](_0x5ec012[_0x3f3abf(0x470)](),_0x3b3e78);const _0xd51d3b=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x367)](_0x6aa0ac[_0x3f3abf(0x29a)])[_0x3f3abf(0x477)]()||_0x2eef51[_0x3f3abf(0x41b)],_0xc275fc=_0xa54a4a[_0x3f3abf(0x263)](_0x3c49eb),_0x394948=_0xd51d3b(_0xc275fc,_0x3b3e78);_0x206b51[_0x3f3abf(0x18a)](_0x5ec012[_0x3f3abf(0x470)](),_0x394948);}else{if(_0x462c96){const _0x2575e6=_0x462c96==null?void 0x0:_0x462c96[_0x3f3abf(0x20b)]();_0x206b51[_0x3f3abf(0x3ad)](_0x5ec012['getId'](),_0x2575e6===_0x2eef51[_0x3f3abf(0x3fb)][_0x3f3abf(0x41e)]?_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x25d)]:_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x1a5)]);}}_0x1e536f&&_0x206b51[_0x3f3abf(0x3a3)](_0x5ec012['getId'](),_0x1e536f);}}}const _0x1de4d9=_0x206b51['query'](),_0x58b0ca=_0x206b51[_0x3f3abf(0x3ff)](),_0x402a79=_0x206b51[_0x3f3abf(0x475)](),_0x1e366d=_0x206b51[_0x3f3abf(0x3b4)](),_0x175715=_0xa54a4a['toJSON']();_0xcdaef4[_0x3f3abf(0x24c)]={'view':_0x1de4d9,'fieldsConfig':_0x58b0ca,'collectionConfig':_0x175715,'isEmpty':_0x402a79,'changesets':_0x1e366d};}break;case _0x5370e2[_0x3f3abf(0x42f)]:{const _0x1f4772=_0xaa3adf(this[_0x3f3abf(0x42a)],_0x471fac);if(!_0x1f4772)return;const {range:_0x40c72e,sourceSubUnitId:_0x4b65bd,sourceUnitId:_0x2ceb78,formatMap:_0x3cc7cc,indexes:_0x345d14}=_0x1f4772;_0xcdaef4[_0x3f3abf(0x2d8)]={'range':_0x40c72e,'sourceSubUnitId':_0x4b65bd,'sourceUnitId':_0x2ceb78,'formatMap':_0x3cc7cc,'indexes':_0x345d14};}break;}this[_0x3f3abf(0x454)][_0x3f3abf(0x17c)](_0x38eba3['id'],{'version':_0x471fac[_0x3f3abf(0x383)],'result':_0xcdaef4},{'onlyLocal':!0x0});}));}[_0x5d1072(0x355)](){const _0x4accc3=_0x5d1072;this[_0x4accc3(0x372)](this['_commandService']['onCommandExecuted'](_0x5d8bd4=>{const _0x49f7b8=_0x4accc3;if(_0x5d8bd4['id']!==_0x4a9d2d['id'])return;const _0x586fef=_0x5d8bd4['params'];return this[_0x49f7b8(0x1a4)][_0x49f7b8(0x340)](_0x586fef[_0x49f7b8(0x2da)]),!0x0;}));}[_0x5d1072(0x1b6)](){const _0x466139=_0x5d1072;this[_0x466139(0x1a4)]['collectionChange$'][_0x466139(0x47a)](_0x3d3bb3=>{const _0x7cd285=_0x466139;switch(_0x3d3bb3[_0x7cd285(0x1fd)]){case _0x5493f6[_0x7cd285(0x346)]:_0x3d3bb3[_0x7cd285(0x311)]&&_0x3d3bb3[_0x7cd285(0x357)]&&this[_0x7cd285(0x2b2)](_0x3d3bb3[_0x7cd285(0x33d)],_0x3d3bb3[_0x7cd285(0x311)],_0x3d3bb3[_0x7cd285(0x357)]);break;case _0x5493f6[_0x7cd285(0x2af)]:{const {unitId:_0x5233f7,subUnitId:_0x2a52fa,token:_0x2c5fa9}=_0x3d3bb3;_0x5233f7&&_0x2a52fa&&_0x2c5fa9&&this['removeSourceRangeChange'](_0x5233f7,_0x2a52fa,_0x2c5fa9);}break;case _0x5493f6[_0x7cd285(0x33f)]:{const {token:_0xeda355,oldSourceRangeInfo:_0x404ac0,dataRangeInfo:_0x235352,targetCellInfo:_0x49cbfb}=_0x3d3bb3,{unitId:_0x309c01,subUnitId:_0x5eec4b}=_0x404ac0||{};_0x309c01&&_0x5eec4b&&_0xeda355&&this[_0x7cd285(0x3f2)](_0x309c01,_0x5eec4b,_0xeda355),_0x235352&&_0x49cbfb&&this[_0x7cd285(0x2b2)](_0xeda355,_0x235352,_0x49cbfb);}break;}});}[_0x5d1072(0x3e0)](){const _0xb6f021=_0x5d1072;this[_0xb6f021(0x1a4)][_0xb6f021(0x34e)][_0xb6f021(0x47a)](_0x48dca7=>{const _0x530428=_0xb6f021;Object['keys'](_0x48dca7)[_0x530428(0x274)](_0x428c22=>{const _0x5a99b2=_0x530428,_0x39ea09=this[_0x5a99b2(0x1a4)][_0x5a99b2(0x1c8)](_0x428c22);if(_0x39ea09){const _0x8ebd36=this[_0x5a99b2(0x1a4)][_0x5a99b2(0x458)](_0x39ea09==null?void 0x0:_0x39ea09[_0x5a99b2(0x29a)],_0x39ea09==null?void 0x0:_0x39ea09['subUnitId'],_0x428c22);_0x8ebd36&&(this[_0x5a99b2(0x2b2)](_0x428c22,_0x8ebd36['sourceRangeInfo'],_0x8ebd36[_0x5a99b2(0x357)]),this[_0x5a99b2(0x38f)]([{'unitId':_0x39ea09[_0x5a99b2(0x29a)],'subUnitId':_0x39ea09[_0x5a99b2(0x294)],'token':_0x428c22}]));}});});}[_0x5d1072(0x314)](){const _0x96a950=_0x5d1072;this[_0x96a950(0x1a4)][_0x96a950(0x279)]['subscribe'](_0x4a81aa=>{const {unitId:_0x5b3314,subUnitId:_0x40408b,pivotTableId:_0x5c5380}=_0x4a81aa;_0x5b3314&&_0x40408b&&_0x5c5380&&this['triggerDirtyFeature']([{'unitId':_0x5b3314,'subUnitId':_0x40408b,'token':_0x5c5380}]);});}[_0x5d1072(0x38f)](_0x3fd9ab){const _0x510639=_0x5d1072,_0x23db0a={};_0x3fd9ab[_0x510639(0x274)](_0x4d92a1=>{var _0x4ec8be,_0xeeb316;const {unitId:_0x5025eb,subUnitId:_0x34b39a,token:_0x98f8fe}=_0x4d92a1;_0x23db0a[_0x5025eb]=(_0x4ec8be=_0x23db0a[_0x5025eb])!=null?_0x4ec8be:{},_0x23db0a[_0x5025eb][_0x34b39a]=(_0xeeb316=_0x23db0a[_0x5025eb][_0x34b39a])!=null?_0xeeb316:{},_0x23db0a[_0x5025eb][_0x34b39a][_0x98f8fe]=!0x0;}),this[_0x510639(0x454)][_0x510639(0x17c)](_0x2daf6b['id'],_0x23db0a);}[_0x5d1072(0x3f2)](_0x550cd3,_0x163e09,_0x4e899e){const _0x393afa=_0x5d1072;this[_0x393afa(0x479)][_0x393afa(0x26f)](_0x550cd3,_0x163e09,[_0x4e899e]);}[_0x5d1072(0x2b2)](_0xe90557,_0x74ebb,_0x1de8c9){const _0x25c154=_0x5d1072,{unitId:_0x38468a,subUnitId:_0x59027f}=_0x74ebb;this[_0x25c154(0x479)][_0x25c154(0x1b5)](_0x1de8c9['unitId'],_0x1de8c9['subUnitId'],_0xe90557)&&this[_0x25c154(0x3f2)](_0x38468a,_0x59027f,_0xe90557);const _0x1f4e80={'sheetId':_0x59027f,..._0x74ebb};this['_featureCalculationManagerService'][_0x25c154(0x3f0)](_0x1de8c9[_0x25c154(0x29a)],_0x1de8c9[_0x25c154(0x294)],_0xe90557,{'unitId':_0x1de8c9['unitId'],'subUnitId':_0x1de8c9['subUnitId'],'dependencyRanges':[_0x1f4e80],'getDirtyData':(_0x3e42b4,_0x9de1e4)=>{const _0x4ad218=_0x25c154,_0x479ce7=this[_0x4ad218(0x1a4)],_0x2368bc=_0x479ce7[_0x4ad218(0x1c8)](_0xe90557);if(!_0x2368bc)return _0x3b8943();const {unitId:_0x42c6ff,subUnitId:_0x5a65df}=_0x2368bc,_0x176c77=_0x3455a3(_0x3e42b4,_0x9de1e4,_0x74ebb);if(_0x176c77[_0x4ad218(0x468)]>0x0){const _0x364e7b=_0x479ce7[_0x4ad218(0x43d)](_0x38468a,_0xe90557),_0x51b761=_0x364e7b[_0x4ad218(0x324)](),_0x57ad3d=this['getMatrixFromRunTimeData'](_0x74ebb[_0x4ad218(0x29a)],_0x74ebb[_0x4ad218(0x294)],_0x9de1e4),_0x31ca94={},_0x13b9b0=this[_0x4ad218(0x1a4)]['getDataFieldManager'](_0x42c6ff)[_0x4ad218(0x477)]()||_0x2eef51[_0x4ad218(0x41b)],_0x20bbb0=[];for(const _0x32f711 of _0x176c77){const _0x3c407a=_0x32f711-(_0x74ebb[_0x4ad218(0x3ee)][_0x4ad218(0x3b9)]||0x0),_0x232986=_0x51b761[_0x3c407a];_0x20bbb0[_0x4ad218(0x27b)](_0x232986),_0x31ca94[_0x232986]=_0x364e7b[_0x4ad218(0x35d)](_0x232986)[_0x4ad218(0x353)](),_0x479ce7[_0x4ad218(0x367)](_0x38468a)['refreshDataField'](_0x232986,_0x74ebb,_0x3c407a,_0x57ad3d);}_0x364e7b['getGroupFieldsInfoByIds'](_0x20bbb0)[_0x4ad218(0x274)](_0xef4b53=>{const _0x5d934e=_0x4ad218,[_0x1f9895,_0x550c99]=_0xef4b53,_0x23685c=_0x364e7b[_0x5d934e(0x35d)](_0x1f9895),_0x2968f1=_0x364e7b['getFieldById'](_0x550c99);_0x23685c&&_0x2968f1&&_0x23685c[_0x5d934e(0x302)](_0x2968f1);}),_0x364e7b[_0x4ad218(0x18e)]();const _0x1c7030=_0x479ce7['getPivotTableInstance'](_0xe90557);if(_0x1c7030){_0xc94a9b(_0x1c7030,_0x31ca94,_0x13b9b0),_0x1c7030[_0x4ad218(0x211)](!0x0);const _0x2eb490=_0x1c7030[_0x4ad218(0x293)](),_0x5cf861=_0x479ce7[_0x4ad218(0x458)](_0x42c6ff,_0x5a65df,_0xe90557),_0x390c7a=_0x479ce7[_0x4ad218(0x367)](_0x38468a)[_0x4ad218(0x3ff)]();_0x479ce7[_0x4ad218(0x427)](_0x42c6ff,_0x5a65df,_0x5ae422[_0x4ad218(0x332)],_0xe90557,_0x2eb490,_0x5cf861,_0x390c7a,!0x0);}}return this[_0x4ad218(0x433)](_0x42c6ff,_0x5a65df,_0xe90557);}});}[_0x5d1072(0x19b)](_0x17ca2f,_0x33735d,_0xb505ef){var _0x17a5fe,_0x30b251;const {arrayFormulaCellData:_0x5000f7,unitData:_0x4f02f9}=_0xb505ef,_0x2317e9=(_0x17a5fe=_0x5000f7==null?void 0x0:_0x5000f7[_0x17ca2f])==null?void 0x0:_0x17a5fe[_0x33735d],_0x4e6116=(_0x30b251=_0x4f02f9==null?void 0x0:_0x4f02f9[_0x17ca2f])==null?void 0x0:_0x30b251[_0x33735d];return{'arrayFormulaCellDataMatrix':_0x2317e9,'unitDataMatrix':_0x4e6116};}['getDirtyInfo'](_0x273654,_0x3c710a,_0x98a30e){const _0x10a451=_0x5d1072,_0x6ba43c=this['_sheetsPivotDataSourceModel']['getViewData'](_0x273654,_0x3c710a,_0x98a30e),_0x5256e8=[],_0x44ee7c=new _0x374f23[(_0x10a451(0x33b))]();if(_0x6ba43c){const {rangeCache:_0x40b320,matrix:_0x5e3255,oldRangeCache:_0x3e863c,oldMatrix:_0x35ad08}=_0x6ba43c,_0x2de45b=_0x17e537(_0x3e863c),_0x4977f3=_0x17e537(_0x40b320);_0x5256e8[_0x10a451(0x27b)](..._0x4977f3,..._0x2de45b),_0x35ad08&&_0x3e863c&&_0x2de45b[_0x10a451(0x274)](_0x1f1556=>{const _0x9286ab=_0x10a451;for(let _0x439768=_0x1f1556[_0x9286ab(0x378)];_0x439768<=_0x1f1556[_0x9286ab(0x3a2)];_0x439768++)for(let _0x3c150c=_0x1f1556[_0x9286ab(0x3b9)];_0x3c150c<=_0x1f1556[_0x9286ab(0x217)];_0x3c150c++)_0x44ee7c['realDeleteValue'](_0x439768,_0x3c150c);}),_0x5e3255&&_0x4977f3&&_0x4977f3[_0x10a451(0x274)](_0x3ddfa5=>{const _0x143e6d=_0x10a451;for(let _0x25877e=_0x3ddfa5['startRow'];_0x25877e<=_0x3ddfa5[_0x143e6d(0x3a2)];_0x25877e++)for(let _0x4dd792=_0x3ddfa5[_0x143e6d(0x3b9)];_0x4dd792<=_0x3ddfa5[_0x143e6d(0x217)];_0x4dd792++)_0x44ee7c[_0x143e6d(0x388)](_0x25877e,_0x4dd792,_0x5e3255[_0x143e6d(0x216)](_0x25877e,_0x4dd792));});}const _0x486433={};return _0x486433[_0x273654]={[_0x3c710a]:_0xc5da59(_0x5256e8)},{'runtimeCellData':{[_0x273654]:{[_0x3c710a]:_0x44ee7c}},'dirtyRanges':_0x486433};}[_0x5d1072(0x259)](){}};_0x5d6160=_0xd1ae08([_0x3e00f9(0x0,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotDataSourceModel'])),_0x3e00f9(0x1,_0x374f23[_0x5d1072(0x465)](_0x925485[_0x5d1072(0x1e3)])),_0x3e00f9(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x3e00f9(0x3,_0x374f23[_0x5d1072(0x465)](_0x925485[_0x5d1072(0x30f)])),_0x3e00f9(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector']))],_0x5d6160);var _0x47c224=Object[_0x5d1072(0x2c5)],_0x3ac94b=(_0x3fb98d,_0x4f1cd8,_0x56881e,_0x26f651)=>{const _0x18b31f=_0x5d1072;for(var _0x246fe7=_0x26f651>0x1?void 0x0:_0x26f651?_0x47c224(_0x4f1cd8,_0x56881e):_0x4f1cd8,_0x7f9da8=_0x3fb98d[_0x18b31f(0x468)]-0x1,_0x5ccf29;_0x7f9da8>=0x0;_0x7f9da8--)(_0x5ccf29=_0x3fb98d[_0x7f9da8])&&(_0x246fe7=_0x5ccf29(_0x246fe7)||_0x246fe7);return _0x246fe7;},_0x1cbdf9=(_0x1de89c,_0x16a56a)=>(_0xea5fb4,_0x56d9d6)=>_0x16a56a(_0xea5fb4,_0x56d9d6,_0x1de89c);let _0x31eb78=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x4748e4,_0x265b31,_0x119777,_0xb15bb9){const _0x430074=_0x5d1072;super(),_0x1e0b19(this,'disposableCollection',new _0x374f23[(_0x430074(0x218))]()),(this[_0x430074(0x443)]=_0x4748e4,this[_0x430074(0x420)]=_0x265b31,this[_0x430074(0x1de)]=_0x119777,this[_0x430074(0x1be)]=_0xb15bb9,this[_0x430074(0x31a)]());}['_initClearSelectionCommandInterceptor'](){const _0xb6c7f8=_0x5d1072;this[_0xb6c7f8(0x372)](this[_0xb6c7f8(0x420)][_0xb6c7f8(0x238)]({'getMutations':_0x10760b=>{const _0x1a574f=_0xb6c7f8;if(_0x10760b['id']===_0x24a2a7[_0x1a574f(0x209)]['id']||_0x10760b['id']===_0x24a2a7['ClearSelectionAllCommand']['id']){const _0x107793=[],_0x57fa5e=[],_0x3401d0=this[_0x1a574f(0x1de)]['getCurrentSelections']()['map'](_0x5aae3b=>_0x5aae3b[_0x1a574f(0x3ee)]),_0x59c2e0=_0x24a2a7[_0x1a574f(0x1db)](this['_univerInstanceService']);if(!_0x59c2e0)return{'redos':[],'undos':[]};const {unitId:_0x70202e,subUnitId:_0x3f55b2}=_0x59c2e0,_0x1f46d8={},_0x27a4cc=this['_sheetsPivotTableConfigModel'][_0x1a574f(0x239)](_0x70202e,_0x3f55b2);if(_0x27a4cc!=null&&_0x27a4cc[_0x1a574f(0x249)])for(const [_0x1947f1,_0x42e66f]of _0x27a4cc){const {unitId:_0x52db7f,subUnitId:_0x38d0c9,row:_0x52f86f,col:_0x37d20b}=_0x42e66f[_0x1a574f(0x357)];_0x52db7f===_0x59c2e0[_0x1a574f(0x29a)]&&_0x38d0c9===_0x59c2e0['subUnitId']&&(_0x1f46d8[_0x52f86f+'-'+_0x37d20b]=_0x1947f1);}return _0x3401d0&&_0x59c2e0&&_0x3401d0['forEach'](_0xdba913=>{_0x374f23['Range']['foreach'](_0xdba913,(_0x5cb4d4,_0x37b55d)=>{const _0x59d4b9=_0x1019,_0x4fe930=_0x5cb4d4+'-'+_0x37b55d;if(_0x1f46d8[_0x4fe930]){const _0x110a43=_0x1f46d8[_0x4fe930];_0x107793['push']({'id':_0x2f23f0['id'],'params':{'unitId':_0x70202e,'subUnitId':_0x3f55b2,'pivotTableId':_0x110a43}});const _0x2f5dc6=this[_0x59d4b9(0x1be)][_0x59d4b9(0x43d)](_0x70202e,_0x110a43),_0x1ae7b9=this[_0x59d4b9(0x1be)][_0x59d4b9(0x458)](_0x70202e,_0x3f55b2,_0x110a43);_0x57fa5e[_0x59d4b9(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x70202e,'subUnitId':_0x3f55b2,'pivotTableId':_0x110a43,'pivotTableConfig':_0x1ae7b9,'collectionConfig':_0x2f5dc6}});}});}),{'redos':_0x107793,'undos':_0x57fa5e};}return{'redos':[],'undos':[]};}}));}};_0x31eb78=_0x3ac94b([_0x1cbdf9(0x0,_0x374f23[_0x5d1072(0x1d8)]),_0x1cbdf9(0x1,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x446)])),_0x1cbdf9(0x2,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x2d7)])),_0x1cbdf9(0x3,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x1ea)]))],_0x31eb78);var _0x6a2bcc=Object[_0x5d1072(0x2c5)],_0x1498fc=(_0x33c15b,_0x3d345e,_0x39dca9,_0xfb0949)=>{const _0x3b165e=_0x5d1072;for(var _0x54d7d2=_0xfb0949>0x1?void 0x0:_0xfb0949?_0x6a2bcc(_0x3d345e,_0x39dca9):_0x3d345e,_0x167e4c=_0x33c15b[_0x3b165e(0x468)]-0x1,_0x53be06;_0x167e4c>=0x0;_0x167e4c--)(_0x53be06=_0x33c15b[_0x167e4c])&&(_0x54d7d2=_0x53be06(_0x54d7d2)||_0x54d7d2);return _0x54d7d2;},_0x3a831a=(_0x3f0092,_0x19cb94)=>(_0xe0ab8d,_0x1c31b4)=>_0x19cb94(_0xe0ab8d,_0x1c31b4,_0x3f0092);let _0x4d352a=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x279b25,_0x147c8a,_0x57ade5,_0x450ceb,_0x487084){const _0x7741ef=_0x5d1072;super(),this[_0x7741ef(0x420)]=_0x279b25,this['_injector']=_0x147c8a,this[_0x7741ef(0x443)]=_0x57ade5,this['_sheetsPivotTableConfigModel']=_0x450ceb,this[_0x7741ef(0x2b6)]=_0x487084,this[_0x7741ef(0x397)]();}[_0x5d1072(0x1ae)](_0x42eb94,_0x5b7872,_0x2031f2){const _0x56a31d=_0x5d1072,{pageView:_0x22e819,cornerView:_0xcaed85,rowView:_0x1c71ca,colView:_0x4ee27a,dataView:_0x361a96}=_0x5b7872,_0x445810=_0x42eb94;let _0x487f36;if(_0x2031f2)_0x487f36=[..._0x4dfe41(_0x445810)];else{const _0x3d4087=_0x227f31(_0x445810,_0x22e819,!0x0),_0x4444cf=_0x22e819[_0x56a31d(0x18f)]>=0x0?_0x22e819[_0x56a31d(0x18f)]+0x1:0x0,_0x4cbfd1=_0xcaed85[_0x56a31d(0x215)],_0x1e3d20=_0xcaed85[_0x56a31d(0x392)],_0x5437fe=_0x3d4087['length']>0x0?_0x9545db:0x0,_0x58e4d0=_0x227f31({'row':_0x445810[_0x56a31d(0x23e)]+_0x4444cf+_0x5437fe,'col':_0x445810['col']},_0xcaed85,!0x1,!0x1),_0x35926a=_0x227f31({'row':_0x445810[_0x56a31d(0x23e)]+_0x4444cf+_0x5437fe+_0x4cbfd1,'col':_0x445810[_0x56a31d(0x434)]},_0x1c71ca,!0x1,!0x0),_0x24ddf8=_0x227f31({'row':_0x445810['row']+_0x4444cf+_0x5437fe,'col':_0x445810[_0x56a31d(0x434)]+_0x1e3d20},_0x4ee27a,!0x1,!0x0),_0x3b8f8c=_0x227f31({'row':_0x445810['row']+_0x4444cf+_0x5437fe+_0x4cbfd1,'col':_0x445810[_0x56a31d(0x434)]+_0x1e3d20},_0x361a96,!0x1,!0x0);_0x487f36=[..._0x3d4087,..._0x58e4d0,..._0x35926a,..._0x24ddf8,..._0x3b8f8c];}return _0x487f36;}[_0x5d1072(0x397)](){const _0x19b3da=_0x5d1072;this[_0x19b3da(0x372)](this['_sheetsPivotTableService'][_0x19b3da(0x199)][_0x19b3da(0x2bf)](this[_0x19b3da(0x2b6)][_0x19b3da(0x199)][_0x19b3da(0x1da)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x2f3e72,_0x54e228)=>{const _0x1aec42=_0x19b3da,{cellInfo:_0x149557,view:_0xd3ebac,isEmpty:_0x5b2e04}=_0x54e228,_0x38205f=_0x149557,{unitId:_0x4596c6,subUnitId:_0x18b286}=_0x38205f,_0x46cead=this['_getPivotAppliedRanges'](_0x149557,_0xd3ebac,_0x5b2e04),_0x31ca75=this[_0x1aec42(0x420)][_0x1aec42(0x2f5)]({'unitId':_0x4596c6,'subUnitId':_0x18b286,'ranges':_0x46cead}),_0x368adb=_0x347fea(this[_0x1aec42(0x42a)],_0x4596c6,_0x18b286,_0x46cead);_0x368adb['shouldClear']&&(_0x31ca75[_0x1aec42(0x451)][_0x1aec42(0x27b)](_0x368adb[_0x1aec42(0x3cb)]),_0x31ca75[_0x1aec42(0x252)][_0x1aec42(0x27b)](_0x368adb[_0x1aec42(0x354)]));const _0x385113=this[_0x1aec42(0x45d)](_0xd3ebac,_0x149557);return _0x31ca75[_0x1aec42(0x451)]['push'](..._0x385113[_0x1aec42(0x451)]),_0x31ca75[_0x1aec42(0x252)][_0x1aec42(0x27b)](..._0x385113[_0x1aec42(0x252)]),{'redos':_0x31ca75[_0x1aec42(0x451)],'undos':_0x31ca75[_0x1aec42(0x252)]};}}));}[_0x5d1072(0x45d)](_0x35e5e3,_0x45d94f){const _0x535976=_0x5d1072,{col:_0x5df1a2,unitId:_0x6a867b,subUnitId:_0x936c0}=_0x45d94f,_0x354385=[],_0x435a64=[],_0x4794d3=_0x24a2a7['getSheetCommandTarget'](this['_univerInstanceService'],{'unitId':_0x6a867b,'subUnitId':_0x936c0});if(!_0x45d94f||!_0x35e5e3||!_0x4794d3)return{'undos':_0x435a64,'redos':_0x354385};const _0x24946c=this[_0x535976(0x1be)][_0x535976(0x277)](),{colView:_0x597e33,dataView:_0x434b3e,cornerView:_0x510ded,rowView:_0x574b0f,formatMap:_0x236566}=_0x35e5e3,_0x4dd915=_0x21df27(_0x597e33,_0x24946c,!0x0,_0x236566),_0x3896be=_0x21df27(_0x574b0f,_0x24946c,!0x1,_0x236566),_0x93f89e=_0x59b274(_0x434b3e),_0x44a39f=_0x10a3cc(_0x510ded),{worksheet:_0xedcff6}=_0x4794d3;if(typeof window<'u'&&window[_0x535976(0x485)]){const _0x34320e=_0x132b06['getFontStyleString']({..._0x1ed179['colStyle']}),_0x4944f3=_0x132b06[_0x535976(0x35b)][_0x535976(0x301)](_0x4dd915,_0x34320e)['width']+0x10,_0x50297b=_0x132b06['FontCache'][_0x535976(0x301)](_0x93f89e,_0x34320e)[_0x535976(0x229)],_0x18b500=Math[_0x535976(0x3dd)](Math[_0x535976(0x275)](_0x4944f3,_0x50297b))+0x10,_0xce583=Math[_0x535976(0x3dd)](_0x132b06[_0x535976(0x35b)][_0x535976(0x301)](_0x3896be,_0x34320e)[_0x535976(0x229)]),_0x4cfe3c=Math[_0x535976(0x3dd)](_0x132b06[_0x535976(0x35b)]['getTextSize'](_0x44a39f,_0x34320e)[_0x535976(0x229)]),_0x1d4b71=Math[_0x535976(0x275)](_0xce583,_0x4cfe3c,0x28)+0xc,_0x19d416=_0x597e33[_0x535976(0x392)]+_0x510ded['colCount'],_0x3104c4={},_0x28123e={};for(let _0x41e58f=_0x5df1a2;_0x41e58f<_0x5df1a2+_0x19d416;_0x41e58f++){const _0x22622d=_0xedcff6[_0x535976(0x2c9)](_0x41e58f);_0x3104c4[_0x41e58f]=_0x22622d,_0x41e58f-_0x5df1a2<_0x510ded[_0x535976(0x392)]?_0x28123e[_0x41e58f-_0x5df1a2]=_0x1d4b71:_0x28123e[_0x41e58f-_0x5df1a2]=_0x18b500;}_0x354385['push']({'id':_0x24a2a7[_0x535976(0x460)]['id'],'params':{'subUnitId':_0x936c0,'unitId':_0x6a867b,'ranges':[{'startColumn':_0x5df1a2,'endColumn':_0x5df1a2+_0x19d416-0x1,'startRow':0x0,'endRow':_0xedcff6[_0x535976(0x46e)]()-0x1}],'colWidth':_0x28123e}}),_0x435a64[_0x535976(0x27b)]({'id':_0x24a2a7[_0x535976(0x460)]['id'],'params':{'subUnitId':_0x936c0,'unitId':_0x6a867b,'ranges':[{'startColumn':_0x5df1a2,'endColumn':_0x5df1a2+_0x19d416-0x1,'startRow':0x0,'endRow':_0xedcff6[_0x535976(0x46e)]()-0x1}],'colWidth':_0x3104c4}});}return{'undos':_0x435a64,'redos':_0x354385};}};_0x4d352a=_0x1498fc([_0x3a831a(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x446)])),_0x3a831a(0x1,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cf)])),_0x3a831a(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x1d8)])),_0x3a831a(0x3,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableConfigModel'])),_0x3a831a(0x4,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableService']))],_0x4d352a);var _0x14f5cd=Object['getOwnPropertyDescriptor'],_0x8ec257=(_0x4e334a,_0x334a6a,_0x1c5e4d,_0x5683b5)=>{const _0x4f4f5e=_0x5d1072;for(var _0x29a345=_0x5683b5>0x1?void 0x0:_0x5683b5?_0x14f5cd(_0x334a6a,_0x1c5e4d):_0x334a6a,_0x163db9=_0x4e334a[_0x4f4f5e(0x468)]-0x1,_0x4ff64d;_0x163db9>=0x0;_0x163db9--)(_0x4ff64d=_0x4e334a[_0x163db9])&&(_0x29a345=_0x4ff64d(_0x29a345)||_0x29a345);return _0x29a345;},_0x4f04aa=(_0x104f4d,_0x20fb2a)=>(_0x5cc1c5,_0xe84ecb)=>_0x20fb2a(_0x5cc1c5,_0xe84ecb,_0x104f4d);let _0x7206cc=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x5e1334,_0x1524f9,_0x218b1c,_0x54a4f8,_0x34c1fd,_0x18afce,_0x31013c){const _0x2f7b54=_0x5d1072;super(),_0x1e0b19(this,_0x2f7b54(0x410),new _0x374f23[(_0x2f7b54(0x218))]()),(this[_0x2f7b54(0x42a)]=_0x5e1334,this[_0x2f7b54(0x2e6)]=_0x1524f9,this[_0x2f7b54(0x454)]=_0x218b1c,this[_0x2f7b54(0x443)]=_0x54a4f8,this[_0x2f7b54(0x1be)]=_0x34c1fd,this[_0x2f7b54(0x2d0)]=_0x18afce,this['_sheetInterceptorService']=_0x31013c,this[_0x2f7b54(0x2cc)]());}[_0x5d1072(0x2cc)](){const _0x27e63d=_0x5d1072,_0xb896dd=(_0x50f992,_0x32ff07)=>{const _0x446d32=_0x1019,_0x39b316=this[_0x446d32(0x443)][_0x446d32(0x2fb)](_0x374f23[_0x446d32(0x1e8)][_0x446d32(0x2eb)]);if(!_0x39b316||!(_0x39b316==null?void 0x0:_0x39b316[_0x446d32(0x317)](_0x32ff07)))return;this['disposableCollection'][_0x446d32(0x259)]();const _0x5c6b73=_0x3c208e=>this['_refRangeHandle'](_0x3c208e,_0x50f992,_0x32ff07),_0x49d6a2=this[_0x446d32(0x1be)]['getSubUnitPivotConfigs'](_0x50f992,_0x32ff07);if(!(_0x49d6a2!=null&&_0x49d6a2[_0x446d32(0x249)]))return;Array[_0x446d32(0x2d9)](_0x49d6a2[_0x446d32(0x39c)]())[_0x446d32(0x36c)](_0x55af4f=>{const _0x5f53ee=_0x446d32,{row:_0x1715d6,col:_0x1681e7}=_0x55af4f[_0x5f53ee(0x357)];return _0x374f23[_0x5f53ee(0x3d6)](_0x1715d6,_0x1681e7);})[_0x446d32(0x274)](_0x57c39f=>{const _0x1a7cf3=_0x446d32;this[_0x1a7cf3(0x410)][_0x1a7cf3(0x346)](this['_refRangeService'][_0x1a7cf3(0x26b)](_0x57c39f,_0x5c6b73,_0x50f992,_0x32ff07));});},_0x596a6b=()=>{const _0x8c8843=_0x1019,_0x231a86=this[_0x8c8843(0x443)][_0x8c8843(0x2fb)](_0x374f23[_0x8c8843(0x1e8)][_0x8c8843(0x2eb)]);if(_0x231a86){const _0xf448ba=_0x231a86['getActiveSheet']();if(!_0xf448ba)return;_0xb896dd(_0x231a86[_0x8c8843(0x1e1)](),_0xf448ba[_0x8c8843(0x300)]());}};this['disposeWithMe'](this[_0x27e63d(0x454)][_0x27e63d(0x44f)](_0x560ae2=>{const _0x228a46=_0x27e63d;if(_0x560ae2['id']===_0x24a2a7['SetWorksheetActiveOperation']['id']){const _0x3c0a37=_0x560ae2['params'],_0x3f23de=_0x3c0a37[_0x228a46(0x294)],_0x4cf54f=_0x3c0a37[_0x228a46(0x29a)];if(!_0x3f23de||!_0x4cf54f)return;_0xb896dd(_0x4cf54f,_0x3f23de);}})),this['disposeWithMe'](this[_0x27e63d(0x1be)][_0x27e63d(0x25c)][_0x27e63d(0x47a)](_0xd8470a=>{_0xd8470a&&_0x596a6b();})),this[_0x27e63d(0x372)](this['_sheetsPivotTableConfigModel'][_0x27e63d(0x2b7)][_0x27e63d(0x47a)](_0x1f1d77=>{const _0x1b5357=_0x27e63d,_0x2b531d=_0x24a2a7[_0x1b5357(0x1db)](this[_0x1b5357(0x443)]);if(!_0x2b531d)return;const {unitId:_0x5cdc34,subUnitId:_0x312ecd}=_0x2b531d,{unitId:_0x577bb7,subUnitId:_0x50eab8}=_0x1f1d77;_0x5cdc34!==_0x577bb7||_0x312ecd!==_0x50eab8||_0xb896dd(_0x5cdc34,_0x312ecd);})),_0x596a6b();}[_0x5d1072(0x41c)](_0x106d35,_0xc9800e,_0x27303f){const _0x4d59f4=_0x5d1072;switch(_0x106d35['id']){case _0x24a2a7[_0x4d59f4(0x489)]['id']:return this[_0x4d59f4(0x2be)](_0x106d35[_0x4d59f4(0x3aa)],_0xc9800e,_0x27303f);}return{'redos':[],'undos':[]};}[_0x5d1072(0x2be)](_0x5ca152,_0x355aa2,_0x2689c4){const _0x4c2138=_0x5d1072,{fromRange:_0x4e69d1,toRange:_0x6f7025}=_0x5ca152,_0x35c509=[],_0xabe977=[],_0x228145=_0x24a2a7[_0x4c2138(0x1db)](this[_0x4c2138(0x443)]);if(!_0x228145)return{'undos':_0xabe977,'redos':_0x35c509};if(_0x355aa2!==_0x228145[_0x4c2138(0x29a)]||_0x2689c4!==_0x228145[_0x4c2138(0x294)])return{'undos':_0xabe977,'redos':_0x35c509};const _0xc3306f=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x355aa2,_0x2689c4);if(_0xc3306f!=null&&_0xc3306f[_0x4c2138(0x249)])for(const [_0x171e5d,_0x4fd839]of _0xc3306f){const {unitId:_0x4c4815,subUnitId:_0x5080f9,row:_0x3bf9d2,col:_0x481d41}=_0x4fd839[_0x4c2138(0x357)];if(_0x4c4815===_0x228145[_0x4c2138(0x29a)]&&_0x5080f9===_0x228145[_0x4c2138(0x294)]){const _0x2e4d4d=_0x374f23[_0x4c2138(0x3d6)](_0x3bf9d2,_0x481d41);if(_0x374f23[_0x4c2138(0x236)][_0x4c2138(0x1c1)](_0x2e4d4d,_0x4e69d1)){const _0x4f35b9=_0x3bf9d2-_0x4e69d1[_0x4c2138(0x378)],_0x32e4c1=_0x481d41-_0x4e69d1[_0x4c2138(0x3b9)],_0x792197={'row':_0x6f7025[_0x4c2138(0x378)]+_0x4f35b9,'col':_0x6f7025[_0x4c2138(0x3b9)]+_0x32e4c1};_0x35c509[_0x4c2138(0x27b)]({'id':_0x24c983['id'],'params':{'unitId':_0x4c4815,'subUnitId':_0x5080f9,'pivotTableId':_0x171e5d,'targetCellPosition':_0x792197}}),_0xabe977[_0x4c2138(0x27b)]({'id':_0x24c983['id'],'params':{'unitId':_0x4c4815,'subUnitId':_0x5080f9,'pivotTableId':_0x171e5d,'targetCellPosition':{'row':_0x3bf9d2,'col':_0x481d41}}});const _0x47cc42=_0x792197[_0x4c2138(0x23e)]-_0x3bf9d2,_0x199e1f=_0x792197[_0x4c2138(0x434)]-_0x481d41,_0x134439=[],_0x37599a=this[_0x4c2138(0x2d0)][_0x4c2138(0x1b9)](_0x4c4815,_0x5080f9,_0x171e5d),_0x5efa16=_0x37599a==null?void 0x0:_0x37599a[_0x4c2138(0x1bc)];if(_0x5efa16){Object[_0x4c2138(0x3d8)](_0x5efa16)[_0x4c2138(0x274)](_0x591ec7=>{_0x5efa16[_0x591ec7]['forEach'](_0x1e268d=>{const _0x4736c5=_0x1019,_0x3412b9={..._0x1e268d};_0x3412b9[_0x4736c5(0x378)]=_0x1e268d[_0x4736c5(0x378)]+_0x47cc42,_0x3412b9[_0x4736c5(0x3a2)]=_0x1e268d[_0x4736c5(0x3a2)]+_0x47cc42,_0x3412b9[_0x4736c5(0x3b9)]=_0x1e268d[_0x4736c5(0x3b9)]+_0x199e1f,_0x3412b9['endColumn']=_0x1e268d[_0x4736c5(0x217)]+_0x199e1f,_0x134439['push'](_0x3412b9);});});const _0x325720=this[_0x4c2138(0x420)][_0x4c2138(0x2f5)]({'unitId':_0x4c4815,'subUnitId':_0x5080f9,'ranges':_0x134439});_0x35c509[_0x4c2138(0x27b)](..._0x325720[_0x4c2138(0x451)]),_0xabe977[_0x4c2138(0x27b)](..._0x325720[_0x4c2138(0x252)]);const _0x31742e=_0x347fea(this[_0x4c2138(0x42a)],_0x4c4815,_0x5080f9,_0x134439);_0x31742e[_0x4c2138(0x1ad)]&&(_0x35c509[_0x4c2138(0x27b)](_0x31742e[_0x4c2138(0x3cb)]),_0xabe977['push'](_0x31742e[_0x4c2138(0x354)]));}}}}return{'redos':_0x35c509,'undos':_0xabe977};}};_0x7206cc=_0x8ec257([_0x4f04aa(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x4f04aa(0x1,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x448)])),_0x4f04aa(0x2,_0x374f23[_0x5d1072(0x386)]),_0x4f04aa(0x3,_0x374f23[_0x5d1072(0x1d8)]),_0x4f04aa(0x4,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x1ea)])),_0x4f04aa(0x5,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x3ba)])),_0x4f04aa(0x6,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x446)]))],_0x7206cc);var _0x4e6dfe=Object[_0x5d1072(0x2c5)],_0x4fb090=(_0x3137aa,_0x5add03,_0x197447,_0x42e6d8)=>{const _0x21be0d=_0x5d1072;for(var _0x761133=_0x42e6d8>0x1?void 0x0:_0x42e6d8?_0x4e6dfe(_0x5add03,_0x197447):_0x5add03,_0x33fbd4=_0x3137aa[_0x21be0d(0x468)]-0x1,_0x4eb8d3;_0x33fbd4>=0x0;_0x33fbd4--)(_0x4eb8d3=_0x3137aa[_0x33fbd4])&&(_0x761133=_0x4eb8d3(_0x761133)||_0x761133);return _0x761133;},_0x503092=(_0x247676,_0x527590)=>(_0x5c4406,_0x6a1a4b)=>_0x527590(_0x5c4406,_0x6a1a4b,_0x247676);let _0x5be276=class extends _0x374f23['Disposable']{constructor(_0x5931e8,_0x13f4da){const _0x292e6a=_0x5d1072;super(),this['_sheetInterceptorService']=_0x5931e8,this['_sheetsPivotTableConfigModel']=_0x13f4da,this[_0x292e6a(0x2ec)]();}[_0x5d1072(0x2ec)](){const _0x1394a5=_0x5d1072;this[_0x1394a5(0x372)](this[_0x1394a5(0x420)][_0x1394a5(0x238)]({'getMutations':_0x235abc=>{const _0x9cece2=_0x1394a5;if(_0x235abc['id']===_0x24a2a7['RemoveSheetCommand']['id']){const _0x48ecb0=[],_0x4d8572=[],_0x3f3cfc=_0x235abc['params'],{unitId:_0x4646fa,subUnitId:_0x535c1d}=_0x3f3cfc;if(!_0x4646fa||!_0x535c1d)return{'undos':_0x4d8572,'redos':_0x48ecb0};const _0x3489ab=this['_sheetsPivotTableConfigModel'][_0x9cece2(0x239)](_0x4646fa,_0x535c1d);if(_0x3489ab!=null&&_0x3489ab['size'])for(const [_0x2bfd2c,_0xba6a42]of _0x3489ab){_0x48ecb0[_0x9cece2(0x27b)]({'id':_0x2f23f0['id'],'params':{'unitId':_0x4646fa,'subUnitId':_0x535c1d,'pivotTableId':_0x2bfd2c}});const _0x507304={...this[_0x9cece2(0x1be)]['getCollection'](_0x4646fa,_0x2bfd2c)};_0x4d8572[_0x9cece2(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x4646fa,'subUnitId':_0x535c1d,'pivotTableId':_0x2bfd2c,'pivotTableConfig':_0xba6a42,'collectionConfig':_0x507304}});}return{'redos':_0x48ecb0,'undos':_0x4d8572};}return{'redos':[],'undos':[]};}}));}};_0x5be276=_0x4fb090([_0x503092(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x446)])),_0x503092(0x1,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableConfigModel']))],_0x5be276);var _0x4a8062=Object[_0x5d1072(0x2c5)],_0x277434=(_0x545ce5,_0x382b79,_0x4e4a8e,_0xcc175f)=>{const _0x570d24=_0x5d1072;for(var _0x317111=_0xcc175f>0x1?void 0x0:_0xcc175f?_0x4a8062(_0x382b79,_0x4e4a8e):_0x382b79,_0x41fd81=_0x545ce5[_0x570d24(0x468)]-0x1,_0x179adc;_0x41fd81>=0x0;_0x41fd81--)(_0x179adc=_0x545ce5[_0x41fd81])&&(_0x317111=_0x179adc(_0x317111)||_0x317111);return _0x317111;},_0x3d601a=(_0x36a147,_0x8cd1e0)=>(_0x51834e,_0x581afd)=>_0x8cd1e0(_0x51834e,_0x581afd,_0x36a147);let _0x21e85a=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x489bc7,_0x294362,_0x3b9852,_0x4c85a8,_0x43a1fa,_0x588183){const _0x489466=_0x5d1072;super(),this[_0x489466(0x454)]=_0x489bc7,this[_0x489466(0x24b)]=_0x294362,this[_0x489466(0x2d0)]=_0x3b9852,this[_0x489466(0x1be)]=_0x4c85a8,this[_0x489466(0x443)]=_0x43a1fa,this[_0x489466(0x1aa)]=_0x588183,this['_initDataSendListener'](),this[_0x489466(0x22d)]();}[_0x5d1072(0x3ca)](){const _0x5369bd=_0x5d1072;this[_0x5369bd(0x372)](this[_0x5369bd(0x454)]['onCommandExecuted'](_0x411052=>{const _0x47d39f=_0x5369bd;if(_0x411052['id']!==_0x38eba3['id'])return;const _0x379f00=_0x411052['params'];this[_0x47d39f(0x24b)]['handleAsyncResponse'](_0x379f00);})),this[_0x5369bd(0x372)](this['_commandService'][_0x5369bd(0x44f)](_0x4b2084=>{const _0x567464=_0x5369bd;if(_0x4b2084['id']===_0x306833['id']){const _0x537eef=_0x4b2084['params'];if(_0x537eef){const {unitId:_0x4f4bf6,subUnitId:_0x4e62ed,oldSubUnitId:_0x56846b,pivotTableId:_0x179fd3,pivotTableConfig:_0x4cc9ae,collectionConfig:_0x1a7029}=_0x537eef;this[_0x567464(0x1be)][_0x567464(0x37c)](_0x4f4bf6,_0x56846b,_0x537eef[_0x567464(0x280)],null),this[_0x567464(0x1be)]['updateConfigCache'](_0x4f4bf6,_0x4e62ed,_0x179fd3,_0x4cc9ae),this[_0x567464(0x1be)][_0x567464(0x3e5)](_0x4f4bf6,_0x1a7029);}}})),this[_0x5369bd(0x372)](this[_0x5369bd(0x454)]['onCommandExecuted'](_0x8d1067=>{const _0x76534c=_0x5369bd;if(_0x8d1067['id']!==_0x4d7335['id'])return;const _0x5f82ae=_0x24a2a7[_0x76534c(0x1db)](this['_univerInstanceService']);if(!_0x5f82ae)return;const {unitId:_0xb321d6,subUnitId:_0x23d10d}=_0x5f82ae,_0x41cf7d=_0x8d1067[_0x76534c(0x3aa)];if(_0x41cf7d[_0x76534c(0x3e4)]&&Object[_0x76534c(0x3d8)](_0x41cf7d[_0x76534c(0x3e4)])[_0x76534c(0x274)](_0x28d91f=>{const _0x4fd5b9=_0x76534c;var _0x43bebb;(_0x43bebb=_0x41cf7d[_0x4fd5b9(0x3e4)])!=null&&_0x43bebb[_0x28d91f]&&this[_0x4fd5b9(0x1be)][_0x4fd5b9(0x3e5)](_0x28d91f,_0x41cf7d[_0x4fd5b9(0x3e4)][_0x28d91f]);}),_0x41cf7d[_0x76534c(0x2c6)]){const _0x46232e=_0x41cf7d[_0x76534c(0x2c6)],{unitId:_0x2b45ed,subUnitId:_0x4ed2ed,view:_0x498ee1,pivotTableId:_0x3cb383,type:_0x2c7609,pivotConfig:_0x3b308f}=_0x46232e;if(_0x2c7609===_0x5ae422['Delete'])this[_0x76534c(0x2d0)][_0x76534c(0x425)]({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'pivotTableId':_0x3cb383,'type':_0x2c7609}),this['_sheetsPivotTableConfigModel'][_0x76534c(0x37c)](_0x2b45ed,_0x4ed2ed,_0x3cb383,null);else{const _0x1fe673=new _0x2eef51['PivotView']();_0x1fe673['formJSON'](_0x498ee1),this[_0x76534c(0x1be)][_0x76534c(0x37c)](_0x2b45ed,_0x4ed2ed,_0x3cb383,_0x3b308f),this[_0x76534c(0x2d0)]['clearRenderCache']({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'pivotTableId':_0x3cb383,'type':_0x2c7609,'view':_0x1fe673}),this[_0x76534c(0x2d0)][_0x76534c(0x389)]({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'view':_0x1fe673,'pivotTableId':_0x3cb383,'type':_0x2c7609});}}else _0x41cf7d[_0x76534c(0x39b)]&&(_0x41cf7d[_0x76534c(0x39b)][_0x76534c(0x274)](_0x4af471=>{const _0x1aef14=_0x76534c,{unitId:_0x8d73be,subUnitId:_0xd9ffd9,view:_0x4468e7,pivotTableId:_0x42c642,type:_0x11736f,pivotConfig:_0x3a9a19}=_0x4af471,_0x487e39=new _0x2eef51[(_0x1aef14(0x28f))]();_0x487e39['formJSON'](_0x4468e7),this['_sheetsPivotTableConfigModel'][_0x1aef14(0x37c)](_0x8d73be,_0xd9ffd9,_0x42c642,_0x3a9a19),this[_0x1aef14(0x2d0)]['updateRenderCache']({'unitId':_0x8d73be,'subUnitId':_0xd9ffd9,'view':_0x487e39,'pivotTableId':_0x42c642,'type':_0x11736f});}),this['_sheetsPivotTableConfigModel'][_0x76534c(0x3d3)]());this['_sheetsPivotTableAdaptorModel'][_0x76534c(0x43a)](_0xb321d6,_0x23d10d);}));}[_0x5d1072(0x22d)](){const _0x3b5e53=_0x5d1072;this[_0x3b5e53(0x1aa)]['register'](_0x2daf6b['id'],{'commandId':_0x2daf6b['id'],'getDirtyData'(_0x319e33){const _0x41085b=_0x3b5e53;return{'dirtyUnitFeatureMap':_0x319e33[_0x41085b(0x3aa)]};}});}};_0x21e85a=_0x277434([_0x3d601a(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x3d601a(0x1,_0x374f23['Inject'](_0x1cc2c4['SheetsPivotRPCService'])),_0x3d601a(0x2,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x3ba)])),_0x3d601a(0x3,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x1ea)])),_0x3d601a(0x4,_0x374f23['Inject'](_0x374f23['IUniverInstanceService'])),_0x3d601a(0x5,_0x925485[_0x5d1072(0x192)])],_0x21e85a);var _0x3d181a=Object[_0x5d1072(0x46f)],_0x3af6cb=Object[_0x5d1072(0x2c5)],_0x4af3e5=(_0x28d3b4,_0x4b449c,_0x2e0252)=>_0x4b449c in _0x28d3b4?_0x3d181a(_0x28d3b4,_0x4b449c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e0252}):_0x28d3b4[_0x4b449c]=_0x2e0252,_0x497c72=(_0x1141ad,_0x1375bf,_0x3360bb,_0x12d98c)=>{const _0x1f875f=_0x5d1072;for(var _0x50e287=_0x12d98c>0x1?void 0x0:_0x12d98c?_0x3af6cb(_0x1375bf,_0x3360bb):_0x1375bf,_0x4ce5b7=_0x1141ad[_0x1f875f(0x468)]-0x1,_0x970e21;_0x4ce5b7>=0x0;_0x4ce5b7--)(_0x970e21=_0x1141ad[_0x4ce5b7])&&(_0x50e287=_0x970e21(_0x50e287)||_0x50e287);return _0x50e287;},_0x1aac74=(_0x1c43be,_0xd010be)=>(_0x3ef25a,_0x4eb8ee)=>_0xd010be(_0x3ef25a,_0x4eb8ee,_0x1c43be),_0x49dc87=(_0x4586e9,_0x5dd6eb,_0x16ceec)=>_0x4af3e5(_0x4586e9,typeof _0x5dd6eb!=_0x5d1072(0x430)?_0x5dd6eb+'':_0x5dd6eb,_0x16ceec);_0x1cc2c4[_0x5d1072(0x40c)]=class extends _0x374f23['Plugin']{constructor(_0x14cd1d=_0x28efdf,_0x2ef5a0,_0x596dab,_0x125116,_0x340fbf){const _0x360806=_0x5d1072;super(),this[_0x360806(0x38b)]=_0x14cd1d,this[_0x360806(0x42a)]=_0x2ef5a0,this[_0x360806(0x454)]=_0x596dab,this[_0x360806(0x40f)]=_0x125116,this[_0x360806(0x41a)]=_0x340fbf;const {..._0x5e0a08}=_0x374f23[_0x360806(0x22e)]({},_0x28efdf,this[_0x360806(0x38b)]);this['_configService'][_0x360806(0x21b)](_0x339ccc,_0x5e0a08),this['_initRegisterCommand'](),this[_0x360806(0x1ab)]();}['_initConfig'](){const _0x1f10cd=_0x5d1072;var _0x3052e9;const _0x1464f=(_0x3052e9=this[_0x1f10cd(0x38b)])==null?void 0x0:_0x3052e9[_0x1f10cd(0x186)];this[_0x1f10cd(0x40f)]['setConfig'](_0x1e657c,_0x1464f===!0x0);}['onStarting'](){const _0x1b5aba=_0x5d1072;var _0x23044b;let _0x4a7282=[];const _0x305496=(_0x23044b=this[_0x1b5aba(0x38b)])==null?void 0x0:_0x23044b[_0x1b5aba(0x186)];_0x305496===!0x0?_0x4a7282=[[_0x1cc2c4['SheetsPivotTableService']],[_0x1cc2c4['SheetsPivotRPCService']],[_0x21e85a],[_0x1cc2c4[_0x1b5aba(0x3ba)]],[_0x1cc2c4[_0x1b5aba(0x1ea)]],[_0x5be276],[_0x31eb78],[_0x7206cc],[_0x4d352a]]:_0x305496===!0x1?_0x4a7282=[[_0x1cc2c4[_0x1b5aba(0x38e)]],[_0x5d6160]]:_0x305496===void 0x0&&(_0x4a7282=[[_0x1cc2c4[_0x1b5aba(0x38e)]],[_0x5d6160],[_0x1cc2c4[_0x1b5aba(0x3f9)]],[_0x1cc2c4[_0x1b5aba(0x333)]],[_0x21e85a],[_0x1cc2c4[_0x1b5aba(0x3ba)]],[_0x1cc2c4[_0x1b5aba(0x1ea)]],[_0x5be276],[_0x31eb78],[_0x7206cc],[_0x4d352a]]),_0x4a7282[_0x1b5aba(0x274)](_0x12fbe6=>this['_injector'][_0x1b5aba(0x346)](_0x12fbe6)),[_0x5d6160,_0x21e85a,_0x1cc2c4[_0x1b5aba(0x3f9)],_0x31eb78,_0x5be276,_0x7206cc,_0x4d352a][_0x1b5aba(0x274)](_0x365657=>{const _0xb1fe1=_0x1b5aba;this['_injector'][_0xb1fe1(0x1b5)](_0x365657)&&this[_0xb1fe1(0x42a)][_0xb1fe1(0x411)](_0x365657);});}[_0x5d1072(0x303)](){const _0xbc26ea=_0x5d1072;[_0x1cee8d,_0x54fb2d,_0x4bfc01,_0x225bd3,_0x490c7c,_0x2c9eb9,_0x1206a2,_0xc6bcab,_0x39e618,_0x3d55a3,_0x1ebb0c,_0x5784b7,_0x4007f1,_0x1b9cf3,_0x1a650d,_0x48a40f,_0x2f23f0,_0x33b47c,_0x2dc301,_0x1b4e8f,_0xd9e8fb,_0x1c531a,_0x3a7b5e,_0x4b3e58,_0x138786,_0x6566df,_0x24c983,_0x23d358,_0x38eba3,_0x4d7335,_0x5703ce,_0x96a821,_0x55c967,_0x9f6240,_0x4a9d2d,_0x1708ad,_0x23bfb9,_0x2daf6b,_0x306833,_0x58248d,_0x58f9b7,_0x1a16fb,_0x1e91f0][_0xbc26ea(0x274)](_0x187466=>{const _0xe77477=_0xbc26ea;var _0x57413b;(_0x57413b=this[_0xe77477(0x41a)])==null||_0x57413b[_0xe77477(0x35f)](_0x187466),this[_0xe77477(0x454)][_0xe77477(0x265)](_0x187466);});}},_0x49dc87(_0x1cc2c4['UniverSheetsPivotTablePlugin'],_0x5d1072(0x205),_0xcaa86f),_0x49dc87(_0x1cc2c4[_0x5d1072(0x40c)],'type',_0x374f23['UniverInstanceType'][_0x5d1072(0x2eb)]),_0x1cc2c4[_0x5d1072(0x40c)]=_0x497c72([_0x374f23[_0x5d1072(0x457)](_0x2169aa[_0x5d1072(0x234)]),_0x1aac74(0x1,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x3cf)])),_0x1aac74(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x1aac74(0x3,_0x374f23[_0x5d1072(0x224)]),_0x1aac74(0x4,_0x374f23['Optional'](_0x37f267[_0x5d1072(0x417)]))],_0x1cc2c4[_0x5d1072(0x40c)]),_0x1cc2c4[_0x5d1072(0x399)]=_0x4bfc01,_0x1cc2c4[_0x5d1072(0x2ff)]=_0x33b47c,_0x1cc2c4[_0x5d1072(0x2dd)]=_0x54fb2d,_0x1cc2c4[_0x5d1072(0x3d4)]=_0x1a650d,_0x1cc2c4[_0x5d1072(0x2f7)]=_0x1cee8d,_0x1cc2c4['BLANK_ROW_COUNT']=_0x9545db,_0x1cc2c4['DEFAULT_PIVOT_NUMBER']=_0x5639c4,_0x1cc2c4[_0x5d1072(0x30a)]=_0x225bd3,_0x1cc2c4['MovePivotTableCommand']=_0x4007f1,_0x1cc2c4[_0x5d1072(0x1d4)]=_0x5370e2,_0x1cc2c4[_0x5d1072(0x36b)]=_0x1b9cf3,_0x1cc2c4['PivotTableOperationEnum']=_0x5ae422,_0x1cc2c4['PivotTableViewDirtyMarkOperation']=_0x2daf6b,_0x1cc2c4[_0x5d1072(0x326)]=_0x55d455,_0x1cc2c4[_0x5d1072(0x2a9)]=_0x490c7c,_0x1cc2c4[_0x5d1072(0x2db)]=_0x1c531a,_0x1cc2c4['RemovePivotTableMutation']=_0x2f23f0,_0x1cc2c4[_0x5d1072(0x3eb)]=_0x3a7b5e,_0x1cc2c4[_0x5d1072(0x299)]=_0x1e91f0,_0x1cc2c4[_0x5d1072(0x47f)]=_0x339ccc,_0x1cc2c4[_0x5d1072(0x304)]=_0xcaa86f,_0x1cc2c4['SetPivotCollapseCommand']=_0xc6bcab,_0x1cc2c4[_0x5d1072(0x1fa)]=_0x4b3e58,_0x1cc2c4[_0x5d1072(0x2a5)]=_0x9f6240,_0x1cc2c4[_0x5d1072(0x272)]=_0x1a16fb,_0x1cc2c4[_0x5d1072(0x283)]=_0x3d55a3,_0x1cc2c4['SetPivotFilterMutation']=_0xd9e8fb,_0x1cc2c4['SetPivotOptionMutation']=_0x6566df,_0x1cc2c4['SetPivotPositionMutation']=_0x24c983,_0x1cc2c4[_0x5d1072(0x2f4)]=_0x39e618,_0x1cc2c4['SetPivotSortMutation']=_0x138786,_0x1cc2c4[_0x5d1072(0x3c8)]=_0x55c967,_0x1cc2c4[_0x5d1072(0x320)]=_0x58248d,_0x1cc2c4[_0x5d1072(0x195)]=_0x58f9b7,_0x1cc2c4[_0x5d1072(0x1f1)]=_0x1206a2,_0x1cc2c4[_0x5d1072(0x3ce)]=_0x5703ce,_0x1cc2c4[_0x5d1072(0x371)]=_0x1ebb0c,_0x1cc2c4[_0x5d1072(0x3bc)]=_0x23bfb9,_0x1cc2c4[_0x5d1072(0x1a0)]=_0x5784b7,_0x1cc2c4['UpdatePivotTableSourceRangeMutation']=_0x1708ad,_0x1cc2c4[_0x5d1072(0x2a4)]=_0x2c9eb9,_0x1cc2c4[_0x5d1072(0x1bb)]=_0x96a821,_0x1cc2c4[_0x5d1072(0x226)]=_0x93d0f,_0x1cc2c4[_0x5d1072(0x416)]=_0x122880,_0x1cc2c4[_0x5d1072(0x3f5)]=_0x1ed179,_0x1cc2c4['generateSetRangeValueMutations']=_0x347fea,_0x1cc2c4[_0x5d1072(0x225)]=_0x227f31,_0x1cc2c4[_0x5d1072(0x437)]=_0x4dfe41,_0x1cc2c4['getFieldListByArea']=_0x424751,_0x1cc2c4['getInsertRowColMutations']=_0x20a5db,_0x1cc2c4['getPivotCellInfo']=_0x21a2ff,_0x1cc2c4[_0x5d1072(0x309)]=_0x43fd63,_0x1cc2c4['getPivotTableInfo']=_0xb9c753,_0x1cc2c4[_0x5d1072(0x3a4)]=_0x99791,_0x1cc2c4[_0x5d1072(0x41f)]=_0x17e537,Object[_0x5d1072(0x46f)](_0x1cc2c4,Symbol[_0x5d1072(0x2fc)],{'value':_0x5d1072(0x21f)});}));function _0x2db2(){const _0x549b6a=['sheet.mutation.set-pivot-sort-info','UpdatePivotValuePositionCommand','SetPivotFieldFormatMutation','_ensureViewDataMap','INTERCEPTOR_POINT','valueFields','RemovePivotFieldCommand','Count\x20of\x20','parse','Subject','colRanges','Quarter','delete','SetCollapse','PivotTableValuePositionEnum','handleSourceRangeChange','Disposable','addCollectionByJSON','sideEffectUpdateWorkerCache','_sheetsPivotTableService','pivotConfigChange$','fontRenderExtension','setPivotCollapse','ptn','cornerRanges','_pivotConfigChange$','splice','getRefRangeMutationsByMoveRange','intercept','@univerjs/core','SetSubtotalType','Column\x20','MoveRangeMutation','level','getOwnPropertyDescriptor','single','pushUndoRedo','updatePivotTableRangeInfo','getColumnWidth','exports','isNaN','_onRefRangeChange','getRangeStartEndInfo','limit\x20pivot','sheets-pivot.dateGroup.year','_sheetsPivotTableAdaptorModel','_resourceManagerService','RemoveSheetMutation','sheets-pivot.countNumsName','pbt','numberToABC','_deleteModelCache','SheetsSelectionsService','drillDown','from','textInfo','RemovePivotFieldMutation','_localeService','AddPivotTableCommand','sheets-pivot.productName','sheet.command.add-pivot-table-with-config','AddField','Sum\x20of\x20','dataFieldManagerConfig','pageStyle','InterceptorManager','setPivotTable','_refRangeService','Date','sheet.mutation.rename-pivot-field','_viewUpdate$','getDataFieldId','UNIVER_SHEET','_initRemoveSheetCommandInterceptor','getDataFieldBySourceName','prefix','sheets-pivot.emptyPivot.column','getRangeData','Filter','getUnit','setPivotFilter','SetPivotSortCommand','generateMutationsByRanges','SetPivotCollapse','AddPivotTableWithConfigCommand','handleMoveRange','SHEET_PIVOT_IN_MAIN_THREAD','UniverCore','getCurrentUnitForType','toStringTag','sheets-pivot.cellDateGroupDisplay.year','COMMAND','AddPivotFieldMutation','getSheetId','getTextSize','refreshGroupField','_initRegisterCommand','SHEET_PIVOT_TABLE_PLUGIN','ResetPivotTable','value','find','_pivotTableMatrixInfo','getPivotInfoByLicense','MovePivotFieldCommand','IResourceManagerService','getFieldCountByArea','sheets-pivot.blank','rowInfo','GlobalComputingStatusService','dateType','dataRangeInfo','sheet.command.pivot-drill-down','panel','_subjectViewChange','getLastRow','777800rGIgKS','getSheetBySheetId','_ensurePivotTableRangeInfo','Month','_initClearSelectionCommandInterceptor','getIntersectsPivotTable','unshift','_createExclusiveRange','CommandType','varp','SetPivotValueFilterCommand','SetFilterInfo','sheets-pivot.cellDateGroupDisplay.hour','_requestResolvers','getFieldIds','CELL_CONTENT','PositionType','addFieldWithSourceId','fromJSON','PivotTableFiledAreaEnum','getNoUsedDataFieldIds','sheets-pivot.stdDevpName','Grand\x20Total','InsertSheetUndoMutationFactory','@univerjs/rpc','RemovePivotField','registerCallbackWithEvent','sheet.command.add-pivot-table','Set','SheetsPivotRPCService','SetPivotSort','getTargetByPivotTableId','_pivotTableRangeInfo','90033iwkZPh','getPivotDirtyViewInfo','SetOptions','refreshData','ObjectMatrix','sheets-pivot.dateGroup.yearMonth','token','HourMinute','update','setTextInfo','filter','@univerjs-pro/license','sourceName','sheets-pivot.cellDateGroupDisplay.date','SetRangeValuesUndoMutationFactory','add','UniverSheetsFilter','_initSnapshot','PivotFilterTypeEnum','createAsyncInterceptorKey','addField','info','deleteDataField','fieldsCollectionChange$','FieldsCollection','countNums','getHeaderMapItem','column','getName','setRangeValueUndoMutation','_initPivotTextInfo','UniverProEnginePivot','targetCellInfo','AddPivotTable','LifecycleService','options','FontCache','AddPivotField','getFieldById','Existing','registerSyncingMutations','getPivotTableCellData','concat','sheets-pivot.emptyPivot.filter','valid','sheet.mutation.remove-pivot-field','sheets.tabs.sheet','sheet.mutation.set-pivot-option','getDataFieldManager','getUpdateRangeDeleteIds','sheets-pivot.stdDevName','Delete','PivotDrillDownCommand','map','sheet.mutation.set-pivot-position','pushComputingStatusSubject','excelDateToUnixMilliseconds','realDeleteValue','UpdatePivotFieldSettingCommand','disposeWithMe','getDataFieldByRangeKey','leafStyle','Varp\x20of\x20','sheetName','measure','startRow','InsertSheetCommand','sheets-pivot.value','NORMAL','updateConfigCache','isBottomTotal','removeField','getColCount','isDate','custom','#FFFFFF','version','function','_pivotRenderValueMatrixCache','ICommandService','addDataFieldWithoutUnitInfo','setValue','updateRenderCache','removeCollectionImp','_config','needSameDeleteModel','entries','SheetsPivotDataSourceModel','triggerDirtyFeature','sheets-pivot.dateGroup.quarter','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','colCount','sheet.operation.pivot-table-view-formula-mark-dirty','body','Add','36UngsXJ','_initCommandInterceptListener','Div0','AddPivotFieldCommand','displayName','batch','values','generateHexNumber','YearMonth','sheets-pivot.cellDateGroupDisplay.yearQuarter','MovePivotField','columnFields','endRow','setFieldFormat','transFromCellValue','fetchThroughAsyncInterceptors','#f4f4f5','error','updateViewData','_toJSON','params','movePivotField','removePivotField','setSubtotalType','paths','rxjs','setDisplayName','min','_init','data','endCollectChangeset','set','fieldsConfig','originalFieldId','_globalComputedStartHelpFunc','startColumn','SheetsPivotTableAdaptorModel','setOptions','UpdatePivotFieldSourceInfoMutation','sheet.mutation.send-pivot-data-local','getDataFieldItemInfo','IExclusiveRangeService','getformat','Tools','getSubtotal','SHEET_PIVOT_EXCLUSIVE_ID','some','getTableFieldById','53724aajuOy','substring','SetPivotSubtotalTypeMutation','sortInfo','_initDataSendListener','setRangeValueRedoMutation','DEFAULT_WORKSHEET_COLUMN_COUNT','LocaleService','UpdateFieldPositionMutation','Injector','_globalSubject','dataFields','rowRanges','setPivotInitCompleted','AddPivotTableMutation','getDate','cellToRange','_ensurePivotMap','keys','isArray','versions','areaInfo','sheet.command.set-pivot-field-setting','floor','result','rangeKeyMap','_subjectFieldsCollectionChange','_exclusiveRangeService','setLabelFilterInfo','PivotViewCellValueTypeEnum','collectionConfig','updateCollectionConfig','_configVersion$','addPivotField','MIN_SAFE_INTEGER','initDataRanges','fetchThroughInterceptors','RenamePivotFieldMutation','setPivotSort','updateValuePosition','range','sheets-pivot.cellDateGroupDisplay.minute','register','None','removeSourceRangeChange','filterInfo','asObservable','defaultThemeStyle','sheets-pivot.countName','subtotal','next','SheetsPivotTableService','\x20-\x20','PivotDataFieldDataTypeEnum','leftOffset','DateGroupField','Style','toJSON','broadcastCollectionChange','getSheets','sheet.mutation.set-pivot-value-filter','Column','getSheetBySheetName','colHeaderMap','setRange','generateRandomId','1614084XrAyeV','reset','BadReference','186557CoxJXO','UniverSheetsPivotTablePlugin','sheets-pivot.cellDateGroupDisplay.month','isValue','_configService','disposableCollection','get','getRangeKeyList','SetFieldFormat','DIV_BY_ZERO','Row','canUsePivot','DataSyncPrimaryController','sheets-pivot.sumName','_collectionConfigModel','_dataSyncPrimaryController','getAutoDisplayName','_refRangeHandle','call','number','unionPivotViewRange','_sheetInterceptorService','PivotCellStyleTypeEnum','sheet.command.update-pivot-table-source-range','dataFieldId','_pivotRenderInfoCache','clearRenderCache','setValuePivotFilter','updateView','getValueIndex','format','_injector','_ensurePivotItemRenderValueMatrixCache','addPivotTable','includes','SetValueFilter','DrillDown','symbol','CustomCommandExecutionError','name','getDirtyInfo','col','removeDataField','string','getEmptyPivotRanges','#eceeff','sheet.command.set-pivot-value-filter','markDirty','unshiftString','isFeatureAuthorizedWithinTime','getCollection','addRecord','sheet.mutation.add-pivot-table','sheet.command.set-pivot-sort','getFormat','LS_CONFIG_KEY','_univerInstanceService','Value','getPivotTableIdByCell','SheetInterceptorService','contains','RefRangeService','bind','New','tableFieldId','generateNewSheetName','other','isBaseGroupField','onCommandExecuted','UniverEngineFormula','redos','rowHeaderMap','sheets-pivot.dateGroup.yearQuarter','_commandService','dimension','removeCollections','DependentOn','getPivotTableConfig','collections','SetSortInfo','sheets-pivot.config','fields','getAutoFitColumnsMutations','sheet.command.set-pivot-collapse','#b2b2b2','SetWorksheetColWidthMutation','viewUpdate$','PivotTableChangeTypeEnum','Average\x20of\x20','3666890zsomHw','Inject','ErrorType','isDateGroupField','length','getMatrix','getTypeOfUnitDisposed$','SetPivotSetting','hasField','removePivotTable','getRowCount','defineProperty','getId','STRING','setCollapse','lastCol','node','isEmpty','_pivotTableInstanceCache','getAutoDisplayNameFunction','pivotTableIndexConfig','_featureCalculationManagerService','subscribe','setPivotTableConfig','_initGlobalComputed','SetValuePivotFilter','rowStyle','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','pivotPerformCheck','updateViewInfo','_initViewModelBySheetInterceptor','subTotalStyle','serializeRangeWithSpreadsheet','document','registerPluginResource','NotName','isText','MoveRangeCommand','workbook\x20is\x20not\x20found','_dataFieldManagerCollection','_updateRenderEmptyCache','YearQuarter','8FKgtZG','executeCommand','sheets-pivot.subTotal','Year','toString','@univerjs/engine-formula','getCellRaw','_host','updateDirtyPivotTable','sheet.mutation.remove-group-collection','getValuePosition','notExecuteFormula','_textInfo','sheet.mutation.pivot-update-field-position','_ensurePivotItemRenderInfoCache','renameField','_initLocale','getSubUnitPivotRenderCache','UpdatePivotSource','updateAllDisplayName','lastRow','maxDate','deepClone','IActiveDirtyManagerService','_model','getSubUnitPivotMatrix','SetPivotValueFilterMutation','UniverEngineRender','dataStyle','NAME','interceptor','_deletePivotTableInstanceCache','getMatrixFromRunTimeData','getConfig','getIntersects','ReleaseType','forRow','UpdatePivotTableSourceRangeCommand','sheet.mutation.add-pivot-field','getPivotTableMatrixInfo','MAX_SAFE_INTEGER','_sheetsPivotDataSourceModel','count','createDataFieldId','var','formJSON','DataField','_activeDirtyManagerService','_initConfig','rangeCache','shouldClear','_getPivotAppliedRanges','getMonth','resetArea','getFilterFieldIdByIndex','getCellMatrix','UniverSheets','updateConfig','has','_subjectCollectionChange','blank','sheet.mutation.add-group-collection','getPivotItemRenderInfoCache','_pivotInitCompleted$','UpdateValuePositionMutation','rangesInfo','oldRangeInfo','_sheetsPivotTableConfigModel','_updateModelCache','setName','intersects','sheet.command.remove-pivot-field','pivotTableConfigs','iterateField','RemoveColMutation','startCollectChangeset','Hour','getTargetByPivotId','numfmt','sheets-pivot.columnName','getFullYear','cornerStyle','sheets-pivot.varName','StdDev\x20of\x20','PivotDateGroupFieldDateTypeEnum','FORCE_STRING','forValue','markDirty$','SetRangeValuesMutation','PivotDisplayDataType','queryDirtyPivotTable','addCollection','sourceRangeInfo','IUniverInstanceService','object','getInterceptPoints','getSheetCommandTarget','PivotTable','Minute','_sheetsSelectionsService','PivotErrorTypeEnum','originTargetInfo','getUnitId','generateNullCell','IFeatureCalculationManagerService','updatePivotTableMatrixInfo','dateGroupField','RANGE_TYPE','setValueFilterInfo','UniverInstanceType','_updatePivotTableInstanceCache','SheetsPivotTableConfigModel','sheet.mutation.update-pivot-table-source-range','removeValueFilterInfoByValueFieldId','getDataFieldByTableId','new','message','createLabelField','UpdateDateGroupCommand','valueFilter','mergeWorksheetSnapshotWithDefault','NUMBER','SetPivotFilter','getFieldFormat','fieldIds','createInterceptorKey','amd','SetPivotCollapseMutation','getPivotTableModelConfig','addExclusiveRange','type','addDirtyPivotTable','collection','setSortInfo','_viewData','getPivotTableInstance','sequenceExecute','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','pluginName','rowFields','setSourceName','sheet.mutation.remove-pivot-table','ClearSelectionContentCommand','COLUMN','getFieldDataType','_queryingMap','oldMatrix','getSheetFeatureLimit','getLastCol','isDateGroupFieldJSON','setDirty','_initUnitDisposed','@univerjs/sheets-filter','#e6ebfa','rowCount','getValue','endColumn','DisposableCollection','getSortInfo','sheets-pivot.grandTotal','setConfig','SetSheetsFilterRangeMutation','#1d32e9','UpdateSource','Module','@univerjs-pro/engine-pivot','sheet.command.update-pivot-value-position','return\x20','_ensurePivotTableMatrixInfo','IConfigService','getAdjustRangesPosition','applyChangeSet','PivotSubtotalTypeEnum','UpdateValuePosition','width','sheets-pivot.dateGroup.minute','setRangeKeyMap','stringify','registerDirtyService','merge','updateRangeKeyMap','product','AddPivotTableWithConfig','Panel','updateFieldPosition','UniverLicensePlugin','fieldId','Rectangle','filterId','interceptCommand','getSubUnitPivotConfigs','slice','getRangeKey','getFieldPositionInfoById','collapseInfo','row','YearMonthDate','sheet.mutation.send-pivot-config-local','Expand','_getAutoName','grandTotal','sheet.command.update-date-group','DataFieldManager','refreshDataField','sheets-pivot.maxName','deleteField','size','valuePosition','_sheetsPivotRpcService','addPivotTableWithConfig','asyncInterceptor','Subtotal','getFilterInfo','getPivotTableRangeInfo','StdDevp\x20of\x20','undos','_fieldsCollectionChange$','average','removeValueFilterInfo','isColMultiMeasure','getDataFieldByDataFieldId','sheets-pivot.other','dispose','_globalComputedEndHelpFunc','adjustSheetCellData','pivotInitCompleted$','sum','NotFunction','_lifecycleService','getIndexesByPathStr','sheet.mutation.update-date-group','rangeKey','getDisplayName','xRMco3zM\x20ZUcqIeo3zM(t3cUM1U,\x20eRbt3cmUI)\x20{\x20\x20\x20\x20oqI\x20{\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20t3cUM1UfMxzp5qoYqq5I\x20=\x20t3cUM1U.1et3o(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20zq3K3MVU115KU\x20=\x20N9Ay.e5q1U(5ozb(t3cUM1UfMxzp5qoYqq5I[u]));\x20\x20\x20\x20\x20\x20\x20\x203x\x20(!zq3K3MVU115KU.RZ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zq3K3MVU115KU.RZ\x20=\x20yRgbUq(t3cUM1UfMxzp5qoYqq5I[X]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2031EzqPUq\x20=\x20oIeUzx\x20EzqPUqatzb5t9czeU\x20!==\x20\x27RMZUx3MUZ\x27\x20&&\x201Utx\x203M1o5McUzx\x20EzqPUqatzb5t9czeU;\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20czMoUso\x20=\x2031EzqPUq\x20?\x201Utx\x20:\x2003MZz0;\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20gU115KUEzqZ\x20=\x20czMoUso.__W51UTX__.e5q1U(t3cUM1UfMxzp5qoYqq5I[u]);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20gU115KU\x20=\x20czMoUso.__DUs__.1oq3MK3xI(gU115KUEzqZ);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KM5oRqUEzqZ\x20=\x20czMoUso.__W51UTX__.e5q1U(t3cUM1UfMxzp5qoYqq5I[l]);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KM5oRqU\x20=\x20czMoUso.__DUs__.1oq3MK3xI(13KM5oRqUEzqZ);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KMk5t3Z\x20=\x20czMoUso.__wUq3xI__(13KM5oRqU,\x20gU115KU,\x20eRbt3cmUI);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20Zzg53M\x20=\x20zq3K3MVU115KU.Zg;\x20\x20\x20\x20\x20\x20\x20\x20xRMco3zM\x20318zg53MV5oc63MK(zp5ooUqM,\x20zDz1o)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqM\x20=\x20zp5ooUqM.qUet5cU(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1o\x20=\x20zDz1o.qUet5cU(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqMp5qo1\x20=\x20e5ooUqM.1et3o(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1op5qo1\x20=\x206z1o.1et3o(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x203x\x20(!e5ooUqM.3MctRZU1(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20e5ooUqM\x20===\x206z1o;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x203x\x20(e5ooUqMp5qo1.tUMKo6\x20<\x20u\x20||\x20e5ooUqMp5qo1[C]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20x5t1U;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqM9Rxx3s\x20=\x20e5ooUqMp5qo1.1t3cU(7).hz3M(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1o9Rxx3s\x20=\x206z1op5qo1.1t3cU(-e5ooUqMp5qo1.tUMKo6\x20+\x207).hz3M(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20e5ooUqM9Rxx3s\x20===\x206z1o9Rxx3s;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20tUo\x20Zzg53Mk5t3Z\x20=\x20(Zzg53M\x20&&\x20Zzg53M.tUMKo6)\x20?\x20Zzg53M.1zgU((ZgfoUg)\x20=>\x20318zg53MV5oc63MK(ZgfoUg,\x20tzc5o3zM.6z1oM5gU))\x20:\x20oqRU;\x20\x20\x20\x20\x20\x20\x20\x203x\x20(tzc5o3zM.6z1oM5gU\x20===\x20\x27tzc5t6z1o\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Zzg53Mk5t3Z\x20=\x20oqRU;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20w5t3Z\x20=\x2013KMk5t3Z\x20&&\x20Zzg53Mk5t3Z;\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20w5t3Z,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gU115KU:\x20zq3K3MVU115KU,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20c5oc6\x20(Uqqzq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20w5t3Z:\x20x5t1U,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gU115KU:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','registerCommand','_collectionChange$','SetPivotTableConfig','colStyle','getSourceName','getStyles','registerRefRange','MUTATION','_viewData$','updatePivotSource','remove','InterceptorEffectEnum','headerMap','SetPivotFieldsConfigCommand','uniqueDataFieldName','forEach','max','colInfo','getTextInfo','CellValueType','viewData$','onQueryEnd','push','createCollectionWithDataRange','Max\x20of\x20','pivotMutationGenerate','@univerjs/engine-render','pivotTableId','getColumnCount','deleteUnitId','SetPivotFilterCommand','IUndoRedoService','ManualFilter','sheets-pivot.emptyPivot.values','PivotCallbackEnum','getFieldInfo','setPivotSetting','collectionChange$','16430823JgRChf','sheets-pivot.varpName','charCodeAt','isDateValue','PivotView','RemoveRowMutation','getPivotDisplayConfig','getMatrixValue','query','subUnitId','sheets-pivot.dateGroup.hourMinute','iterateFieldDim','sheets-pivot.cellDateGroupDisplay.yearMonthDate','sheets-pivot.dateGroup.yearMonthDate','ResetPivotFieldsConfigCommand','unitId','iterateFieldByArea','valueIndex','dataFieldsCollection','RenameField','resetPivotTable','MonthDate','NUM','minDate'];_0x2db2=function(){return _0x549b6a;};return _0x2db2();}