@univerjs-pro/sheets-chart-ui 1.0.1 → 1.0.3

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 (84) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/views/chart-edit-panel/chart-editor-default-values.d.ts +0 -4
  62. package/lib/types/views/chart-edit-panel/data-tab-panel/DataTabPanel.d.ts +1 -4
  63. package/lib/types/views/mobile/chart-edit-panel/MobileDataTabPanel.d.ts +1 -4
  64. package/lib/umd/index.js +1 -1
  65. package/lib/umd/locale/ar-SA.js +1 -1
  66. package/lib/umd/locale/ca-ES.js +1 -1
  67. package/lib/umd/locale/de-DE.js +1 -1
  68. package/lib/umd/locale/en-US.js +1 -1
  69. package/lib/umd/locale/es-ES.js +1 -1
  70. package/lib/umd/locale/fa-IR.js +1 -1
  71. package/lib/umd/locale/fr-FR.js +1 -1
  72. package/lib/umd/locale/id-ID.js +1 -1
  73. package/lib/umd/locale/it-IT.js +1 -1
  74. package/lib/umd/locale/ja-JP.js +1 -1
  75. package/lib/umd/locale/ko-KR.js +1 -1
  76. package/lib/umd/locale/pl-PL.js +1 -1
  77. package/lib/umd/locale/pt-BR.js +1 -1
  78. package/lib/umd/locale/ru-RU.js +1 -1
  79. package/lib/umd/locale/sk-SK.js +1 -1
  80. package/lib/umd/locale/vi-VN.js +1 -1
  81. package/lib/umd/locale/zh-CN.js +1 -1
  82. package/lib/umd/locale/zh-HK.js +1 -1
  83. package/lib/umd/locale/zh-TW.js +1 -1
  84. package/package.json +19 -19
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xca568b=_0x28a2;(function(_0x562907,_0x44280d){const _0x44f301=_0x28a2,_0x5d57b6=_0x562907();while(!![]){try{const _0x26176b=-parseInt(_0x44f301(0x3cb))/0x1+parseInt(_0x44f301(0x1a1))/0x2+parseInt(_0x44f301(0x36b))/0x3+-parseInt(_0x44f301(0x2f5))/0x4*(-parseInt(_0x44f301(0x43d))/0x5)+-parseInt(_0x44f301(0x2ad))/0x6*(parseInt(_0x44f301(0x37b))/0x7)+parseInt(_0x44f301(0x3f1))/0x8+parseInt(_0x44f301(0x386))/0x9*(parseInt(_0x44f301(0x3dd))/0xa);if(_0x26176b===_0x44280d)break;else _0x5d57b6['push'](_0x5d57b6['shift']());}catch(_0x5e485b){_0x5d57b6['push'](_0x5d57b6['shift']());}}}(_0x3e2b,0xb0f20));import{CommandType as _0x901a74,DependentOn as _0x75347f,Disposable as _0x110283,DisposableCollection as _0x47b662,DrawingTypeEnum as _0x1dc4b2,FOCUSING_COMMON_DRAWINGS as _0x284d3d,FOCUSING_PANEL_EDITOR as _0x5ccab9,ICommandService as _0x5a9a36,IConfigService as _0x116807,IContextService as _0x2b586f,IUniverInstanceService as _0x46e33a,Inject as _0x2b7ebf,Injector as _0x34eb6c,LocaleService as _0x3ad976,Plugin as _0x327d6b,ThemeService as _0xa588aa,UniverInstanceType as _0x50b631,createIdentifier as _0x2d4252,debounce as _0x2132b5,generateRandomId as _0x4a5315,isValidRange as _0x55ef7f,merge as _0x37ac4e,numberToABC as _0xa3323e,toDisposable as _0xc69da6,touchDependencies as _0x548fbf}from'@univerjs/core';import{ChartModelService as _0x781fb3,ChartUpdateConfigCommand as _0x180bba,ChartUpdateConfigMutation as _0x1d8ae1,ChartUpdateSourceCommand as _0x2edcc4,InsertChartCommand as _0x438cd9,InsertSheetsChartMutation as _0x217994,RemoveSheetsChartMutation as _0x31720e,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x5a48a3,SHEETS_CHART_PLUGIN_NAME as _0x347d8f,SheetChartConfigAdapter as _0x14bce4,SheetsChartService as _0xb7f357,UniverSheetsChartPlugin as _0x3f74b2,getAllowedChartTypes as _0x14bcc6,toInsertChartMutationSource as _0x16c66f}from'@univerjs-pro/sheets-chart';import{IDrawingManagerService as _0x23c247,UniverDrawingPlugin as _0x1e792f,getDrawingShapeKeyByDrawingSearch as _0x3e2347,getOrCreateDrawingCopyPlan as _0x38f8fe}from'@univerjs/drawing';import{DrawingApplyType as _0x5c18f9,ISheetDrawingService as _0x124322,RemoveSheetDrawingCommand as _0x7fd27d,SetDrawingApplyMutation as _0x3866ba,UniverSheetsDrawingPlugin as _0x223cfa,transformToDrawingPosition as _0x3c121b}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x512cc9,SheetCanvasFloatDomManagerService as _0x48f4a3,SheetDrawingHitTestService as _0x548ade,UniverSheetsDrawingMobileUIPlugin as _0x1d2bf4,UniverSheetsDrawingUIPlugin as _0x1d075b}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x3e768c,ISheetClipboardService as _0x3c57bc,PREDEFINED_HOOK_NAME as _0x360986,SheetCanvasPopManagerService as _0x4aa645,SheetCopyCommand as _0x2f50ba,SheetPrintInterceptorService as _0x3fc87b,SheetSkeletonManagerService as _0x218d8c,UniverSheetsMobileUIPlugin as _0x42b49c,UniverSheetsUIPlugin as _0x290150,deriveStateFromActiveSheet$ as _0xb91ccc,getCurrentRangeDisable$ as _0x7b657b}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x364740,ComponentManager as _0x16eb50,ContextMenuGroup as _0xeb12f,ContextMenuPosition as _0x3e1e41,IMenuManagerService as _0x3ebd35,ISidebarService as _0xd6bb73,IconManager as _0x2f16d2,KeyCode as _0x5744b4,MenuItemType as _0x32a9bc,NativeTextEditorShortcutBehavior as _0x146e00,RibbonInsertGroup as _0x584736,UniverMobileUIPlugin as _0x28a947,getMenuHiddenObservable as _0x4fb29b,useDependency as _0x2b41d0,useObservable as _0x4561a1}from'@univerjs/ui';import{BehaviorSubject as _0x16eb2c,Observable as _0x441a4f,Subject as _0x1d042d,combineLatest as _0x3c6cb0,combineLatestWith as _0x28f114,debounceTime as _0x59ab39,distinctUntilChanged as _0x3c6b25,filter as _0x483739,fromEvent as _0x2e3bd5,map as _0xd28067,merge as _0x3fa440,pairwise as _0x5f076a,skip as _0x4c54ad,startWith as _0x4bd3e7,switchMap as _0x51b589,take as _0x55b78a,throttleTime as _0x1b536f,withLatestFrom as _0x546631}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x1fff77,CHART_HOST_BORDER_RADIUS as _0x3b4d08,CHART_TYPE_CATALOG as _0x489704,ChartAxisSection as _0x21b2fb,ChartCommonDataMappingSection as _0x308311,ChartDomFrame as _0x5a5cc2,ChartEditBlockTitle as _0x114623,ChartEditPanel as _0x1ace4b,ChartEditPanelSection as _0x2db269,ChartEditPanelTab as _0x5c4d69,ChartEditPanelTabs as _0x405993,ChartEditorCapability as _0x59d3bb,ChartEditorProvider as _0x527efa,ChartElementFloatMenuAdapterRegistry as _0x4b0b38,ChartFrameContentMode as _0x52688,ChartFrameLayout as _0x3f7b33,ChartFunnelStyleSection as _0xe1359c,ChartGradientFillField as _0x23b483,ChartGridlinesAndTicksSection as _0x524836,ChartHeatmapStyleSection as _0x27b74d,ChartHostAdapter as _0x10f55f,ChartImageExportService as _0x4aa169,ChartIndicatorLineSection as _0xd050ed,ChartLegendSection as _0x3e358e,ChartLineAndAreaSection as _0x282c08,ChartNumberFormatAtom as _0x2e8e1e,ChartParetoSeriesSection as _0x2de80d,ChartPieStyleSection as _0xd82e6f,ChartRadarStyleSection as _0x21a72f,ChartRelationStyleSection as _0x28a800,ChartSectionAccordion as _0x4b3c95,ChartSectionAccordionContent as _0x10e497,ChartSectionAccordionItem as _0x464020,ChartSectionAccordionTrigger as _0x51fc53,ChartSeriesSection as _0xf65fa1,ChartStackField as _0x3a8440,ChartStyleSection as _0x22c00b,ChartThemeField as _0x3ef36c,ChartTitlesSection as _0x10905c,ChartTrendlineSection as _0x2eba1e,ChartTypeField as _0x42165a,ChartTypeSpecificDataSection as _0x2e34e5,ChartTypeSpecificSetupSection as _0x5a3ad4,ChartTypeSpecificStyleSection as _0x485569,ChartUIService as _0x11b0f5,ChartViewStateRegistry as _0x10f33b,ChartWaterfallSetupFields as _0x5d390c,ChartWaterfallStyleSection as _0x291bbf,ChartWordCloudStyleSection as _0x822830,DEFAULT_CHART_AXIS_VALUES as _0x16ed26,DEFAULT_CHART_FUNNEL_VALUES as _0x175ef0,DEFAULT_CHART_HEATMAP_VALUES as _0x1d2cd9,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x1dd226,DEFAULT_CHART_LEGEND_VALUES as _0x4d1df9,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x57770f,DEFAULT_CHART_PARETO_VALUES as _0x23c6ff,DEFAULT_CHART_PIE_VALUES as _0x5a4fba,DEFAULT_CHART_RADAR_VALUES as _0x42178d,DEFAULT_CHART_RELATION_VALUES as _0x1c2f0d,DEFAULT_CHART_SERIES_VALUES as _0x820d3d,DEFAULT_CHART_STYLE_VALUES as _0xf3605b,DEFAULT_CHART_TITLE_VALUES as _0x2946a4,DEFAULT_CHART_TRENDLINE_VALUES as _0x37aaa1,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x251a93,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0xba125f,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x4f9d89,MobileChartEditorProvider as _0x282e27,UniverChartMobileUIPlugin as _0x3cd5fc,UniverChartUIPlugin as _0x29446d,buildChartTypeSelectOptions as _0x3e2b77,chartTypeSupportsCapability as _0x5c782b,chartTypeSupportsLineAndAreaStyle as _0x1128f1,createChartElementFloatMenuAdapter as _0x38fe22,resolveChartCreationIntent as _0x1d9cca,resolveChartEditPanelRoute as _0x498bfb,resolveChartElementSelection as _0x32b31e,useChartEditorChartType as _0x3cdaa0,useChartEditorHasRightAxis as _0x44523d}from'@univerjs-pro/chart-ui';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x3ec9cf,ChartImageExportFormat as _0x3459c1,ChartImageSourceType as _0x44200d,ChartRenderMode as _0x13effc,ChartSourceHeaderTitleType as _0x4c1868,ChartThemeService as _0x5c00e3,ChartTypeBits as _0xd24882,ChartWaterfallStyleTarget as _0x129870,DataOrientation as _0x389e65,EChartRenderEngineName as _0x5bf36d,IChartRenderModelManagerService as _0x5d8531,ImageChartHost as _0x3e25ad,PieSecondaryPlotType as _0x32ddf9,RTLChartStyle as _0x5aa36e,chartBitsUtils as _0x3ede69,chartImageSourceToDataUrl as _0x1ee32c,chartTypeCanUseTrendLine as _0x51cc42,resolveChartRuntimeStyle as _0x2dbc64,resolveChartStyleBackgroundColor as _0x490695,resolveDefaultChartHostFrameStyle as _0x3b0e43}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x564b78,RemoveSheetCommand as _0xce777d,SheetInterceptorService as _0x30d687,SheetPermissionCheckController as _0x49ff14,SheetSkeletonService as _0x225140,SheetsSelectionsService as _0x27be9b,UniverSheetsPlugin as _0x3fd6e8,WorkbookEditablePermission as _0xd0e974,WorksheetEditPermission as _0x437d18,attachRangeWithCoord as _0x2f01d5,discreteRangeToRange as _0x2b8b50,getSheetCommandTarget as _0x5413b8}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x1b0b9d,matchToken as _0x3427c4,serializeRangeWithSheet as _0x27d138}from'@univerjs/engine-formula';import{insertGroupObject as _0x36767e}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x16b88b,IRenderManagerService as _0x52b878,ObjectType as _0xd8dccc,RENDER_CLASS_TYPE as _0x26103c,Rect as _0x43b5eb,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x583ffa,Transform as _0x6b3b55,UniverRenderEnginePlugin as _0x8fec38}from'@univerjs/engine-render';import{useCallback as _0x1237c0,useEffect as _0x397741,useMemo as _0x32aaef,useRef as _0x5410e6,useState as _0x758b4d}from'react';import{Button as _0x47a323,Checkbox as _0x52ebba}from'@univerjs/design';import{MobileRangeSelector as _0x2ede0d,RangeSelector as _0x578873}from'@univerjs/sheets-formula-ui';import{Fragment as _0x1e5c7c,jsx as _0x2897c9,jsxs as _0x5a92d2}from'react/jsx-runtime';import{UniverLicensePlugin as _0x47aa2e}from'@univerjs-pro/license';import{PenIcon as _0x54078f}from'@univerjs/icons';const H={'type':_0x901a74[_0xca568b(0x25f)],'id':'sheet.operation.open-chart-panel','handler'(){return!0x0;}},jr=_0xca568b(0x296),Mr={'enableChartElementFloatMenu':!0x0},Nr={'type':_0x901a74[_0xca568b(0x25f)],'id':_0xca568b(0x1ae),'handler'(){return!0x0;}};function Pr(_0x31fdae){const _0x35424d=_0xca568b;let _0x565a23=_0x31fdae[_0x35424d(0x29a)](_0x124322)[_0x35424d(0x458)]();if(_0x565a23[_0x35424d(0x3c2)]!==0x1)return null;let _0x4ff2c4=_0x565a23[0x0];return _0x4ff2c4[_0x35424d(0x2ac)]===_0x1dc4b2[_0x35424d(0x1b7)]?_0x4ff2c4:null;}function Fr(_0x5a328e,_0x2ffb76){const _0x132b9c=_0xca568b;let _0x4f93a6=document['createElement']('a');_0x4f93a6[_0x132b9c(0x389)]=_0x5a328e,_0x4f93a6[_0x132b9c(0x2db)]=_0x2ffb76,_0x4f93a6['click']();}const Ir={'id':_0xca568b(0x1e5),'type':_0x901a74[_0xca568b(0x208)],'handler':(_0x760e17,_0xc41699)=>{const _0x2ef1ca=_0xca568b;let _0x549a34=Pr(_0x760e17);return _0x549a34?_0x760e17[_0x2ef1ca(0x29a)](_0x5a9a36)[_0x2ef1ca(0x304)](H['id'],{'unitId':_0x549a34[_0x2ef1ca(0x2f9)],'subUnitId':_0x549a34[_0x2ef1ca(0x254)],'drawingId':_0x549a34[_0x2ef1ca(0x22a)],..._0xc41699!=null&&_0xc41699[_0x2ef1ca(0x3ae)]?{'route':_0xc41699['route']}:{}}):!0x1;}},Lr={'id':_0xca568b(0x297),'type':_0x901a74[_0xca568b(0x208)],'handler':_0x364c41=>Pr(_0x364c41)?_0x364c41[_0xca568b(0x29a)](_0x5a9a36)['executeCommand'](_0x2f50ba['id']):!0x1},Rr={'id':_0xca568b(0x2a6),'type':_0x901a74[_0xca568b(0x208)],'handler':async _0x28016f=>{const _0x4f3b3e=_0xca568b;let _0x6de0f6=Pr(_0x28016f);if(!_0x6de0f6)return!0x1;let _0x4b671d=await _0x28016f[_0x4f3b3e(0x29a)](_0x4aa169)['exportImage']({'unitId':_0x6de0f6[_0x4f3b3e(0x2f9)],'subUnitId':_0x6de0f6[_0x4f3b3e(0x254)],'getId':()=>_0x6de0f6[_0x4f3b3e(0x22a)]});return _0x4b671d?(Fr(_0x4b671d,_0x6de0f6['drawingId']+_0x4f3b3e(0x279)),!0x0):!0x1;}},zr={'id':_0xca568b(0x299),'type':_0x901a74[_0xca568b(0x208)],'handler':_0x1258a1=>{const _0x124c53=_0xca568b;let _0x40dafc=Pr(_0x1258a1);return _0x40dafc?_0x1258a1[_0x124c53(0x29a)](_0x5a9a36)[_0x124c53(0x304)](_0x7fd27d['id'],{'unitId':_0x40dafc['unitId'],'drawings':[{'unitId':_0x40dafc[_0x124c53(0x2f9)],'subUnitId':_0x40dafc[_0x124c53(0x254)],'drawingId':_0x40dafc[_0x124c53(0x22a)],'drawingType':_0x1dc4b2[_0x124c53(0x1b7)]}]}):!0x1;}},U={'type':_0x901a74[_0xca568b(0x208)],'id':_0xca568b(0x364),'handler':async(_0x1d2161,_0x4957d3)=>{const _0x197db4=_0xca568b;let _0x1cdc43=_0x5413b8(_0x1d2161[_0x197db4(0x29a)](_0x46e33a));if(!_0x1cdc43)return!0x1;let _0x324058=_0x1d2161['get'](_0x27be9b)['getCurrentLastSelection']();if(!_0x324058)return!0x1;let {range:_0x5dbd55}=_0x324058,_0x1377dc=_0x1d2161[_0x197db4(0x29a)](_0x5a9a36),{unitId:_0x5f21a1,subUnitId:_0x35fee5}=_0x1cdc43,{pieSecondaryPlotType:_0x242b07,value:_0x3be013}=_0x4957d3,_0x2cadfb=_0x242b07!==void 0x0;if(_0x2cadfb&&(_0x3be013!==_0xd24882[_0x197db4(0x1e8)]||_0x242b07!==_0x32ddf9[_0x197db4(0x1e8)]&&_0x242b07!==_0x32ddf9[_0x197db4(0x33e)]))return!0x1;let _0x596214=_0x2cadfb?_0x4a5315():void 0x0;return _0x1377dc[_0x197db4(0x304)](_0x438cd9['id'],{'unitId':_0x5f21a1,'subUnitId':_0x35fee5,'chartType':_0x3be013,..._0x596214&&_0x242b07?{'chartId':_0x596214,'config':{'unitId':_0x5f21a1,'chartModelId':_0x596214,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x242b07}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x5dbd55['unitId']??_0x5f21a1,'subUnitId':_0x5dbd55[_0x197db4(0x223)]??_0x35fee5,'range':_0x5dbd55}}});}};function Br(_0x2a6758,_0x3000cf){const _0x8467dc=_0xca568b;if(_0x2a6758==null)return'';if(Array[_0x8467dc(0x363)](_0x2a6758)){var _0x4c4c2b;let _0x44e41b=(_0x4c4c2b=_0x2a6758[0x0])==null?void 0x0:_0x4c4c2b[_0x8467dc(0x2e2)];return _0x44e41b?Vr(_0x44e41b,_0x3000cf):'';}return Vr(_0x2a6758[_0x8467dc(0x412)],_0x3000cf);}function Vr(_0x5aca80,_0x16c2dc){const _0x317ada=_0xca568b;var _0x3d6b2a;let {unitId:_0x2b8ac3,subUnitId:_0x9f2fa8,range:_0x10028a}=_0x5aca80,_0x2dfed7=(_0x3d6b2a=_0x16c2dc[_0x317ada(0x361)](_0x2b8ac3))==null?void 0x0:_0x3d6b2a[_0x317ada(0x21f)](_0x9f2fa8);if(!_0x2dfed7)return'';let _0x469c3e=_0x2dfed7[_0x317ada(0x3c1)]();return _0x27d138(_0x469c3e,_0x10028a);}const Hr=_0x489704[_0xca568b(0x226)](_0x290ce7=>({'id':'id'in _0x290ce7?_0x290ce7['id']:void 0x0,'labelId':_0x290ce7[_0xca568b(0x2a0)],'pieSecondaryPlotType':'pieSecondaryPlotType'in _0x290ce7?_0x290ce7['pieSecondaryPlotType']:void 0x0,'value':_0x290ce7[_0xca568b(0x2e3)],'icon':_0x290ce7[_0xca568b(0x27d)]}));function Ur(_0x4cd4c4=Hr){return _0x4cd4c4['map'](({id:_0x173472,icon:_0x223294,value:_0x4135b9})=>{const _0x2d781c=_0x28a2;let _0x43e203=_0x1d9cca(_0x173472??String(_0x4135b9)),_0x3368ea=_0x43e203?{'value':_0x43e203[_0x2d781c(0x436)],..._0x43e203[_0x2d781c(0x344)]?{'pieSecondaryPlotType':_0x43e203['pieSecondaryPlotType']}:{}}:{'value':_0x4135b9};return{'icon':_0x223294,'value':_0x173472??_0x4135b9,'params':_0x3368ea};});}const Wr=(_0xd33c8d,_0x483889)=>{const _0x1e1dec=_0xca568b;if(_0x483889[_0x1e1dec(0x3c2)]===0x1&&_0x483889[0x0]===_0x1e1dec(0x1eb))return _0xd33c8d;if(_0x483889[_0x1e1dec(0x3c2)]>0x1){let _0x18d84d=new Set();for(let _0x209cfe of _0x483889)_0x18d84d[_0x1e1dec(0x36f)](Number(_0x209cfe));return _0xd33c8d[_0x1e1dec(0x37d)](_0x273988=>_0x18d84d['has'](_0x273988[_0x1e1dec(0x2e3)]));}return[];};function Gr(_0x1b2229){const _0x451dcc=_0xca568b;let _0x3975c8=_0x1b2229['get'](_0x46e33a),_0x2957bc=_0x14bcc6(_0x1b2229),_0x45446c=Wr(Hr[_0x451dcc(0x42d)](),_0x2957bc),_0x1caea4=Ur(_0x45446c)[_0x451dcc(0x226)]((_0x4ba6b7,_0x5e4370)=>({'icon':_0x4ba6b7[_0x451dcc(0x1b8)],'value':_0x4ba6b7[_0x451dcc(0x2e3)],'params':_0x4ba6b7[_0x451dcc(0x2f1)],'label':_0x451dcc(0x43c)+_0x45446c[_0x5e4370]['labelId']}));return{'id':U['id'],'type':_0x32a9bc['SELECTOR'],'selectionsCommandId':U['id'],'selections':_0x1caea4,'icon':_0x451dcc(0x255),'tooltip':'sheets-chart-ui.common.insertChart','activated$':_0xb91ccc(_0x3975c8,!0x1,()=>new _0x441a4f(_0x25bda5=>{_0x25bda5['next'](!0x1);})),'hidden$':_0x4fb29b(_0x1b2229,_0x50b631[_0x451dcc(0x2f0)]),'disabled$':_0x7b657b(_0x1b2229)};}function Kr(_0x57ffcd){const _0x5c21c5=_0xca568b;let _0x5cb09c=_0x57ffcd[_0x5c21c5(0x29a)](_0x124322);return _0x5cb09c[_0x5c21c5(0x2f2)][_0x5c21c5(0x2d3)](_0x4bd3e7(_0x5cb09c[_0x5c21c5(0x458)]()),_0xd28067(()=>Pr(_0x57ffcd)==null));}function qr(_0x128cb4){const _0x362aef=_0xca568b;return{'id':Ir['id'],'commandId':Ir['id'],'type':_0x32a9bc[_0x362aef(0x36e)],'title':_0x128cb4[_0x362aef(0x29a)](_0x3ad976)['t'](_0x362aef(0x227)),'icon':'PenIcon','hidden$':Kr(_0x128cb4)};}function Jr(_0x832a9){const _0x5138a6=_0xca568b;return{'id':Lr['id'],'commandId':Lr['id'],'type':_0x32a9bc[_0x5138a6(0x36e)],'title':_0x832a9[_0x5138a6(0x29a)](_0x3ad976)['t'](_0x5138a6(0x424)),'icon':'CopyDoubleIcon','hidden$':Kr(_0x832a9)};}function Yr(_0xee0d8b){const _0x5e4e7b=_0xca568b;return{'id':Rr['id'],'commandId':Rr['id'],'type':_0x32a9bc['BUTTON'],'title':_0xee0d8b[_0x5e4e7b(0x29a)](_0x3ad976)['t']('sheets-chart-ui.common.exportImage'),'icon':'DownloadImageIcon','hidden$':Kr(_0xee0d8b)};}function Xr(_0x52d030){const _0x171173=_0xca568b;return{'id':zr['id'],'commandId':zr['id'],'type':_0x32a9bc[_0x171173(0x36e)],'title':_0x52d030[_0x171173(0x29a)](_0x3ad976)['t'](_0x171173(0x370)),'icon':_0x171173(0x39b),'hidden$':Kr(_0x52d030)};}const Zr={[_0x584736[_0xca568b(0x348)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Gr}},[_0x3e1e41[_0xca568b(0x31d)]]:{[_0xeb12f[_0xca568b(0x34d)]]:{[Ir['id']]:{'order':0x0,'menuItemFactory':qr},[Lr['id']]:{'order':0x1,'menuItemFactory':Jr},[Rr['id']]:{'order':0x3,'menuItemFactory':Yr},[zr['id']]:{'order':0x4,'menuItemFactory':Xr}}}};function Qr(_0x1ce052){const _0x2ddfe3=_0xca568b;return _0x1ce052===_0xd24882['Combination']||_0x1ce052===_0xd24882[_0x2ddfe3(0x1c8)]||_0x1ce052===_0xd24882[_0x2ddfe3(0x335)]||_0x3ede69[_0x2ddfe3(0x45c)](_0x1ce052,_0xd24882[_0x2ddfe3(0x2fe)])||_0x3ede69['baseOn'](_0x1ce052,_0xd24882[_0x2ddfe3(0x38c)])||_0x3ede69[_0x2ddfe3(0x45c)](_0x1ce052,_0xd24882[_0x2ddfe3(0x2af)])||_0x3ede69[_0x2ddfe3(0x45c)](_0x1ce052,_0xd24882[_0x2ddfe3(0x259)]);}function $r(_0x594ff4){const _0xb1dbfb=_0xca568b;return Qr(_0x594ff4)||_0x3ede69['baseOn'](_0x594ff4,_0xd24882['Pie'])||_0x3ede69[_0xb1dbfb(0x45c)](_0x594ff4,_0xd24882[_0xb1dbfb(0x244)])||_0x3ede69[_0xb1dbfb(0x45c)](_0x594ff4,_0xd24882[_0xb1dbfb(0x3c4)]);}function ei(_0x1ee4e5,_0xafb01c){const _0x2d1565=_0xca568b;let _0x1059c7=_0x32b31e(_0x1ee4e5,_0xafb01c),_0x2fdcf7=_0x1059c7?_0x498bfb(_0x1059c7[_0x2d1565(0x2b0)]):void 0x0;if(_0x1059c7&&_0x2fdcf7)return{..._0x1059c7,'route':_0x2fdcf7,'showFloatMenu':$r(_0x1ee4e5[_0x2d1565(0x436)])&&_0x1059c7[_0x2d1565(0x36c)]};}function ti(_0xe5e936,_0x44576d=0x1){const _0x374e94=_0xca568b;return{'width':Math[_0x374e94(0x3ea)](_0x44576d,_0xe5e936['width']),'height':Math[_0x374e94(0x3ea)](_0x44576d,_0xe5e936['height'])};}function ni(_0x5c9b0e,_0x385093={},_0x3b77d6={'left':0x0,'top':0x0}){const _0x20d80d=_0xca568b;let _0x22045b=_0x385093['scaleX']??0x1,_0x229acd=_0x385093['scaleY']??0x1,_0x384954=_0x3f7b33[_0x20d80d(0x3d6)]({'logicalOuterRect':{'left':_0x3b77d6[_0x20d80d(0x2c3)]>0x0?-_0x3b77d6[_0x20d80d(0x2c3)]:0x0,'top':_0x3b77d6[_0x20d80d(0x45a)]>0x0?-_0x3b77d6['top']:0x0,...ti(_0x5c9b0e)},'scale':{'scaleX':_0x22045b,'scaleY':_0x229acd},'hostStyle':{},'contentMode':_0x52688[_0x20d80d(0x305)]});return{'left':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x2c3)],'top':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x45a)],'width':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x285)],'height':_0x384954[_0x20d80d(0x394)][_0x20d80d(0x3ce)],'scaleX':_0x22045b,'scaleY':_0x229acd};}function ri(_0x301ed1){'@babel/helpers - typeof';const _0x56285f=_0xca568b;return ri=typeof Symbol=='function'&&typeof Symbol[_0x56285f(0x3a0)]==_0x56285f(0x449)?function(_0x4f1b03){return typeof _0x4f1b03;}:function(_0x5b6982){const _0x5ab881=_0x56285f;return _0x5b6982&&typeof Symbol=='function'&&_0x5b6982[_0x5ab881(0x30d)]===Symbol&&_0x5b6982!==Symbol['prototype']?_0x5ab881(0x449):typeof _0x5b6982;},ri(_0x301ed1);}function ii(_0x1fb096,_0x518fcc){const _0x18da97=_0xca568b;if(ri(_0x1fb096)!=_0x18da97(0x38e)||!_0x1fb096)return _0x1fb096;var _0xfc8162=_0x1fb096[Symbol[_0x18da97(0x42a)]];if(_0xfc8162!==void 0x0){var _0x5c62a4=_0xfc8162[_0x18da97(0x2b9)](_0x1fb096,_0x518fcc||'default');if(ri(_0x5c62a4)!=_0x18da97(0x38e))return _0x5c62a4;throw TypeError(_0x18da97(0x1c5));}return(_0x518fcc==='string'?String:Number)(_0x1fb096);}function ai(_0x108d17){const _0x4aa397=_0xca568b;var _0x44aa4e=ii(_0x108d17,_0x4aa397(0x25e));return ri(_0x44aa4e)==_0x4aa397(0x449)?_0x44aa4e:_0x44aa4e+'';}function W(_0x172a6d,_0x4ed37b,_0x6c71da){const _0x191904=_0xca568b;return(_0x4ed37b=ai(_0x4ed37b))in _0x172a6d?Object[_0x191904(0x3be)](_0x172a6d,_0x4ed37b,{'value':_0x6c71da,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x172a6d[_0x4ed37b]=_0x6c71da,_0x172a6d;}function oi(_0x1050b5){const _0x424353=_0xca568b;switch(_0x1050b5[_0x424353(0x1bc)]){case _0x44200d['Canvas']:return _0x1050b5[_0x424353(0x3d7)];case _0x44200d[_0x424353(0x1fe)]:return _0x1050b5[_0x424353(0x1c1)];default:return;}}var si=class extends _0x43b5eb{constructor(_0xaacee3,_0x47b14d,_0x560caf,_0x19851d=()=>!0x1,_0x11e086=()=>{}){const _0x13f48a=_0xca568b;super(_0xaacee3,{..._0x47b14d,'evented':_0x47b14d[_0x13f48a(0x27b)]??!0x0}),this[_0x13f48a(0x34b)]=_0x560caf,this[_0x13f48a(0x238)]=_0x19851d,this[_0x13f48a(0x323)]=_0x11e086,W(this,_0x13f48a(0x3c5),null),W(this,_0x13f48a(0x2b7),null),W(this,_0x13f48a(0x462),null),W(this,_0x13f48a(0x1ad),null),this[_0x13f48a(0x246)](_0xd8dccc[_0x13f48a(0x1ba)]);}[_0xca568b(0x406)](){const _0x2cacc9=_0xca568b;this[_0x2cacc9(0x414)](),this[_0x2cacc9(0x3c5)]=null,this[_0x2cacc9(0x2b7)]=null,this[_0x2cacc9(0x462)]=null,this[_0x2cacc9(0x323)](),super[_0x2cacc9(0x406)]();}[_0xca568b(0x23d)](_0x51c217,_0x9e7bdb){const _0x509567=_0xca568b;if(!this[_0x509567(0x1a0)])return this[_0x509567(0x30e)](!0x1),this;if(this['_shouldSuppressRender']()){let _0x41e41c=this[_0x509567(0x34b)]();return _0x41e41c&&this['_getDrawable'](_0x41e41c),this[_0x509567(0x30e)](!0x1),this;}if(!this[_0x509567(0x21c)])return this;let {width:_0x1910cb,height:_0x301b9e,left:_0x19c1c4,top:_0x1ade6b}=this['getRealBound']();if(this[_0x509567(0x24a)](_0x9e7bdb)){let {top:_0x5c6894,left:_0x565979,bottom:_0x246378,right:_0x5a4977}=_0x9e7bdb[_0x509567(0x3b4)];if(_0x1910cb+this[_0x509567(0x37a)]+_0x19c1c4<_0x565979||_0x5a4977<_0x19c1c4||_0x301b9e+this['strokeWidth']+_0x1ade6b<_0x5c6894||_0x246378<_0x1ade6b)return this;}let _0x26194c=this[_0x509567(0x21c)]['getMatrix']();_0x51c217[_0x509567(0x404)]();let _0x4fad52=_0x19c1c4+_0x1910cb/0x2,_0x61b4dd=_0x1ade6b+_0x301b9e/0x2;return _0x51c217['transform'](_0x26194c[0x0],_0x26194c[0x1],_0x26194c[0x2],_0x26194c[0x3],_0x4fad52,_0x61b4dd),this[_0x509567(0x2d6)]!==0x1&&(_0x51c217['globalAlpha']=this[_0x509567(0x2d6)]),this[_0x509567(0x1e7)](_0x51c217,void 0x0,_0x1910cb,_0x301b9e),_0x51c217[_0x509567(0x3a3)](),this[_0x509567(0x30e)](!0x1),this;}[_0xca568b(0x1e7)](_0x147583,_0x3e1c64,_0x8b5a69=this['width'],_0x10a1f7=this[_0xca568b(0x3ce)]){const _0x2d887c=_0xca568b;this[_0x2d887c(0x2fc)](_0x147583,_0x8b5a69,_0x10a1f7,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x2d887c(0x3a6)](_0x147583,_0x8b5a69,_0x10a1f7),this['_drawChartFrame'](_0x147583,_0x8b5a69,_0x10a1f7,{'fill':void 0x0});}['_drawChartFrame'](_0x5c828b,_0xe1c36c,_0x17d99c,_0x5a0197){const _0x2f85cf=_0xca568b;_0x5c828b[_0x2f85cf(0x404)](),_0x5c828b[_0x2f85cf(0x1c6)](-_0xe1c36c/0x2,-_0x17d99c/0x2),_0x43b5eb[_0x2f85cf(0x3f7)](_0x5c828b,ci(this,_0xe1c36c,_0x17d99c,_0x5a0197)),_0x5c828b[_0x2f85cf(0x3a3)]();}[_0xca568b(0x29c)](_0x46fdba){const _0x53aa43=_0xca568b;let {left:_0x56d25a,top:_0x28cbf5,width:_0x2c2678,height:_0x47cd51}=this[_0x53aa43(0x309)](),_0x10df8b=_0x56d25a+_0x2c2678/0x2,_0x1a9f60=_0x28cbf5+_0x47cd51/0x2,_0xf89efd=this['transform'][_0x53aa43(0x34f)](),_0x377bc4=new _0x6b3b55([_0xf89efd[0x0],_0xf89efd[0x1],_0xf89efd[0x2],_0xf89efd[0x3],_0x10df8b,_0x1a9f60]),_0x4d5e48=this[_0x53aa43(0x1cd)](),_0x5ef7db=(this['isInGroup']&&(_0x4d5e48==null?void 0x0:_0x4d5e48[_0x53aa43(0x403)])===_0x26103c[_0x53aa43(0x3a9)]?_0x4d5e48[_0x53aa43(0x1e9)]['multiply'](_0x377bc4):_0x377bc4)['invert']()[_0x53aa43(0x3bf)](_0x46fdba),_0x444178=_0x2c2678/0x2,_0x218ad5=_0x47cd51/0x2;return _0x5ef7db['x']>=-_0x444178-this[_0x53aa43(0x37a)]/0x2&&_0x5ef7db['x']<=_0x444178+this[_0x53aa43(0x37a)]/0x2&&_0x5ef7db['y']>=-_0x218ad5-this[_0x53aa43(0x37a)]/0x2&&_0x5ef7db['y']<=_0x218ad5+this[_0x53aa43(0x37a)]/0x2;}[_0xca568b(0x3a6)](_0x4cda24,_0x44d819,_0x5aca3e){const _0x315f0c=_0xca568b;let _0x1dd623=this['_getImage'](),_0x500eef=_0x1dd623?this[_0x315f0c(0x24b)](_0x1dd623):void 0x0;if(!_0x500eef)return;let {width:_0x257910,height:_0x224e5f}=ti({'width':_0x44d819,'height':_0x5aca3e},0x0);_0x257910!==0x0&&_0x224e5f!==0x0&&(_0x4cda24['save'](),_0x4cda24['translate'](-_0x44d819/0x2,-_0x5aca3e/0x2),li(_0x4cda24,_0x257910,_0x224e5f,this['radius']),_0x4cda24[_0x315f0c(0x45b)](),_0x4cda24[_0x315f0c(0x2ff)](_0x500eef,0x0,0x0,_0x257910,_0x224e5f),_0x4cda24[_0x315f0c(0x3a3)]());}[_0xca568b(0x24b)](_0x570887){const _0x37d161=_0xca568b;var _0x8723bb;let _0x148c55=oi(_0x570887);if(_0x148c55)return _0x148c55;if(_0x570887['type']===_0x44200d[_0x37d161(0x3b0)]&&(this[_0x37d161(0x462)]!==_0x570887[_0x37d161(0x20f)]&&(this[_0x37d161(0x462)]=_0x570887[_0x37d161(0x20f)],this[_0x37d161(0x414)](),this[_0x37d161(0x2b7)]!==_0x570887[_0x37d161(0x20f)]&&this[_0x37d161(0x291)](_0x570887[_0x37d161(0x20f)])),(_0x8723bb=this[_0x37d161(0x3c5)])!=null&&_0x8723bb['complete']&&this[_0x37d161(0x3c5)]['naturalWidth']>0x0&&this['_urlImage'][_0x37d161(0x282)]>0x0))return this[_0x37d161(0x3c5)];}['_loadUrlImage'](_0x8fb6de){const _0x502d27=_0xca568b;let _0x4ac437=document['createElement'](_0x502d27(0x236));this[_0x502d27(0x1ad)]=_0x4ac437,_0x4ac437[_0x502d27(0x209)]=_0x502d27(0x35f),_0x4ac437[_0x502d27(0x22c)]=()=>{const _0x36cab7=_0x502d27;this[_0x36cab7(0x462)]===_0x8fb6de&&this[_0x36cab7(0x1ad)]===_0x4ac437&&(_0x4ac437[_0x36cab7(0x313)]>0x0&&_0x4ac437['naturalHeight']>0x0&&(this[_0x36cab7(0x2b7)]=_0x8fb6de,this[_0x36cab7(0x3c5)]=_0x4ac437),this[_0x36cab7(0x414)](),this[_0x36cab7(0x30e)](!0x0));},_0x4ac437[_0x502d27(0x3ca)]=()=>{const _0x54c7cc=_0x502d27;this[_0x54c7cc(0x1ad)]===_0x4ac437&&this['_clearPendingUrlImage']();},_0x4ac437[_0x502d27(0x450)]=_0x8fb6de;}['_clearPendingUrlImage'](){const _0xec1012=_0xca568b;this[_0xec1012(0x1ad)]&&=(this[_0xec1012(0x1ad)][_0xec1012(0x22c)]=null,this[_0xec1012(0x1ad)]['onerror']=null,null);}};function ci(_0x18e41b,_0x19d39a,_0x2d2486,_0x5f5d63){const _0x1f0761=_0xca568b;let _0x588afd=Object[_0x1f0761(0x393)](_0x18e41b);return Object[_0x1f0761(0x3be)](_0x588afd,_0x1f0761(0x285),{'value':_0x19d39a}),Object[_0x1f0761(0x3be)](_0x588afd,_0x1f0761(0x3ce),{'value':_0x2d2486}),Object[_0x1f0761(0x2a3)](_0x5f5d63)[_0x1f0761(0x308)](_0x3f02a3=>{const _0x35671f=_0x1f0761;Object[_0x35671f(0x3be)](_0x588afd,_0x3f02a3,{'value':_0x5f5d63[_0x3f02a3]});}),_0x588afd;}function li(_0x1fd668,_0x1f58bd,_0x27a96d,_0x3e1e63){const _0x7dc10b=_0xca568b;let _0x54357e=Math[_0x7dc10b(0x2ea)](_0x3e1e63||0x0,_0x1f58bd/0x2,_0x27a96d/0x2);if(_0x1fd668[_0x7dc10b(0x1be)](),!_0x54357e){_0x1fd668[_0x7dc10b(0x351)](0x0,0x0,_0x1f58bd,_0x27a96d),_0x1fd668[_0x7dc10b(0x2e7)]();return;}_0x1fd668[_0x7dc10b(0x378)](_0x54357e,0x0),_0x1fd668['lineTo'](_0x1f58bd-_0x54357e,0x0),_0x1fd668['arc'](_0x1f58bd-_0x54357e,_0x54357e,_0x54357e,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fd668[_0x7dc10b(0x376)](_0x1f58bd,_0x27a96d-_0x54357e),_0x1fd668[_0x7dc10b(0x249)](_0x1f58bd-_0x54357e,_0x27a96d-_0x54357e,_0x54357e,0x0,Math['PI']/0x2,!0x1),_0x1fd668['lineTo'](_0x54357e,_0x27a96d),_0x1fd668[_0x7dc10b(0x249)](_0x54357e,_0x27a96d-_0x54357e,_0x54357e,Math['PI']/0x2,Math['PI'],!0x1),_0x1fd668['lineTo'](0x0,_0x54357e),_0x1fd668['arc'](_0x54357e,_0x54357e,_0x54357e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fd668[_0x7dc10b(0x2e7)]();}function G(_0x3397ae){const _0x3f9df4=_0xca568b;(_0x3397ae==null?void 0x0:_0x3397ae[_0x3f9df4(0x1bc)])===_0x44200d[_0x3f9df4(0x1fe)]&&_0x3397ae[_0x3f9df4(0x1c1)][_0x3f9df4(0x3dc)]();}function ui(_0x4f3136){const _0x2ea839=_0xca568b;return _0x4f3136[_0x2ea839(0x2f9)]+_0x2ea839(0x441)+_0x4f3136[_0x2ea839(0x254)]+_0x2ea839(0x441)+_0x4f3136[_0x2ea839(0x400)];}function _0x28a2(_0x30a4fa,_0x3abbd3){_0x30a4fa=_0x30a4fa-0x19e;const _0x3e2b33=_0x3e2b();let _0x28a2fd=_0x3e2b33[_0x30a4fa];return _0x28a2fd;}var di=class extends _0x110283{constructor(..._0x13d260){super(..._0x13d260),W(this,'_entries',new Map());}['nextVersion'](_0x25f630){const _0x2e1f0c=_0xca568b;let _0x3ac7c1=ui(_0x25f630),_0xfd11a1=this['_entries']['get'](_0x3ac7c1)??{'version':0x0};return _0xfd11a1[_0x2e1f0c(0x337)]+=0x1,this['_entries'][_0x2e1f0c(0x210)](_0x3ac7c1,_0xfd11a1),_0xfd11a1[_0x2e1f0c(0x337)];}[_0xca568b(0x314)](_0x30c46e,_0x32551b){const _0x2b3865=_0xca568b;var _0x3664d1;return((_0x3664d1=this[_0x2b3865(0x1ff)]['get'](ui(_0x30c46e)))==null?void 0x0:_0x3664d1['version'])===_0x32551b;}[_0xca568b(0x43e)](_0x38cfde,_0x1dfeaa,_0x5cd854){const _0x5261b0=_0xca568b;if(!this['isLatest'](_0x38cfde,_0x5cd854))return G(_0x1dfeaa),!0x1;let _0x40747c=ui(_0x38cfde),_0x879839=this[_0x5261b0(0x1ff)][_0x5261b0(0x29a)](_0x40747c)??{'version':_0x5cd854},_0x5ab869=_0x879839[_0x5261b0(0x384)];return _0x879839['image']=_0x1dfeaa,_0x879839['version']=_0x5cd854,this[_0x5261b0(0x1ff)][_0x5261b0(0x210)](_0x40747c,_0x879839),_0x5ab869!==_0x1dfeaa&&G(_0x5ab869),!0x0;}[_0xca568b(0x267)](_0x45415e){const _0x48ed15=_0xca568b;var _0x45bc00;return(_0x45bc00=this[_0x48ed15(0x1ff)]['get'](ui(_0x45415e)))==null?void 0x0:_0x45bc00['image'];}[_0xca568b(0x20d)](_0x3aa9cb){const _0x4c8d36=_0xca568b;let _0xa4c2e9=ui(_0x3aa9cb),_0x3bf685=this['_entries'][_0x4c8d36(0x29a)](_0xa4c2e9);_0x3bf685&&(G(_0x3bf685[_0x4c8d36(0x384)]),this['_entries'][_0x4c8d36(0x28b)](_0xa4c2e9));}[_0xca568b(0x329)](_0x21cc9d){const _0x54312e=_0xca568b;for(let [_0x4338bb,_0x2be315]of this[_0x54312e(0x1ff)])_0x4338bb[_0x54312e(0x3d8)](_0x54312e(0x441)+_0x21cc9d)&&(G(_0x2be315['image']),this[_0x54312e(0x1ff)]['delete'](_0x4338bb));}[_0xca568b(0x406)](){const _0x329d50=_0xca568b;this[_0x329d50(0x1ff)][_0x329d50(0x308)](_0x1932a2=>G(_0x1932a2[_0x329d50(0x384)])),this[_0x329d50(0x1ff)][_0x329d50(0x2a4)](),super[_0x329d50(0x406)]();}};function fi(_0x6ee5d7,_0x274e5b=0x7d0){let _0x25daa5=null,_0x19a0ed=null,_0x2e3864=!0x1,_0x500ed5=()=>{},_0x56eba8=()=>{_0x25daa5!=null&&(clearInterval(_0x25daa5),_0x25daa5=null),_0x19a0ed!=null&&(clearTimeout(_0x19a0ed),_0x19a0ed=null);};return{'promise':new Promise((_0x135d2e,_0x381667)=>{_0x500ed5=_0x381667;let _0xb694b2=()=>{const _0xde12e0=_0x28a2;let _0x558575=document[_0xde12e0(0x2fd)](_0x6ee5d7);_0x558575&&!_0x2e3864&&(_0x2e3864=!0x0,_0x56eba8(),_0x135d2e(_0x558575));};_0xb694b2(),!_0x2e3864&&(_0x25daa5=setInterval(_0xb694b2,16.666666666666668),_0x19a0ed=setTimeout(()=>{const _0x125c83=_0x28a2;_0x2e3864||(_0x2e3864=!0x0,_0x56eba8(),_0x381667(Error(_0x125c83(0x206)+_0x6ee5d7+'\x22.')));},_0x274e5b));}),'cancel':()=>{const _0x169a35=_0x28a2;_0x2e3864||(_0x2e3864=!0x0,_0x56eba8(),_0x500ed5(Error(_0x169a35(0x45f)+_0x6ee5d7+'\x22.')));}};}var pi=class extends _0x110283{constructor(_0x2cd082,_0x44df7b,_0x3c20b1,_0x41a1fe,_0x5a9db5,_0x121dbc,_0x1e6e4f){const _0x11c4d6=_0xca568b;super(),this[_0x11c4d6(0x400)]=_0x2cd082,this[_0x11c4d6(0x2c7)]=_0x44df7b,this[_0x11c4d6(0x221)]=_0x3c20b1,this[_0x11c4d6(0x3b2)]=_0x41a1fe,this['_isProviderDisposed']=_0x5a9db5,this[_0x11c4d6(0x420)]=_0x121dbc,this[_0x11c4d6(0x264)]=_0x1e6e4f,W(this,_0x11c4d6(0x448),_0x13effc[_0x11c4d6(0x237)]),W(this,_0x11c4d6(0x429),null),W(this,_0x11c4d6(0x39e),!0x1),W(this,_0x11c4d6(0x417),null),W(this,_0x11c4d6(0x1df),null),W(this,_0x11c4d6(0x22e),null),W(this,_0x11c4d6(0x372),{}),W(this,'_savedWrapperStyle',null),W(this,_0x11c4d6(0x1cc),null);}['isManaged'](){const _0xe173d2=_0xca568b;return this[_0xe173d2(0x39e)];}[_0xca568b(0x39f)](){const _0x808578=_0xca568b;this[_0x808578(0x39e)]=!0x1;}[_0xca568b(0x3a7)](){const _0x78cc0f=_0xca568b;let _0x12207c=this[_0x78cc0f(0x221)]();return _0x12207c?{'width':_0x12207c[_0x78cc0f(0x285)],'height':_0x12207c[_0x78cc0f(0x3ce)]}:null;}[_0xca568b(0x319)](_0x2e3aef){const _0xc873d7=_0xca568b;this['_hostStyle']=_0x2e3aef,this[_0xc873d7(0x3b2)](_0x2e3aef),this[_0xc873d7(0x3b9)]();}async['ensureHandle'](){const _0x4bd769=_0xca568b;if(this[_0x4bd769(0x3f2)]||this[_0x4bd769(0x26f)]())throw Error(_0x4bd769(0x23e));let _0x1843e9=this[_0x4bd769(0x2c7)](),_0x48d0e3=(_0x1843e9==null?void 0x0:_0x1843e9[_0x4bd769(0x2ae)])??this[_0x4bd769(0x400)],_0xadaaa0=document['getElementById'](_0x48d0e3);if(this['_domFrame']&&_0xadaaa0!=null&&_0xadaaa0[_0x4bd769(0x328)](this['_domFrame'][_0x4bd769(0x1e4)]))return{'mountNode':this['_domFrame'][_0x4bd769(0x1e4)],'dispose':()=>{const _0x3d7fcc=_0x4bd769;this['dispose'](),_0x1843e9==null||_0x1843e9['dispose'][_0x3d7fcc(0x406)]();}};if(this[_0x4bd769(0x1df)])return this['_pendingHost'];let _0xd4b763=this[_0x4bd769(0x2a5)]();return this[_0x4bd769(0x1df)]=_0xd4b763,_0xd4b763[_0x4bd769(0x358)](()=>{const _0x209887=_0x4bd769;this[_0x209887(0x1df)]===_0xd4b763&&(this[_0x209887(0x1df)]=null);},()=>{const _0x3200ba=_0x4bd769;this[_0x3200ba(0x1df)]===_0xd4b763&&(this[_0x3200ba(0x1df)]=null);}),_0xd4b763;}async[_0xca568b(0x2c2)](){const _0x35c32d=_0xca568b;try{return(await this['ensureHandle']())[_0x35c32d(0x1e4)];}catch{return null;}}[_0xca568b(0x353)](){const _0x5ecd65=_0xca568b;let _0x567c1d=this[_0x5ecd65(0x2c7)](),_0xc60168=(_0x567c1d==null?void 0x0:_0x567c1d['domId'])??this[_0x5ecd65(0x400)],_0x4ebea5=document[_0x5ecd65(0x2fd)](_0xc60168);return!!(this[_0x5ecd65(0x429)]&&_0x4ebea5!=null&&_0x4ebea5[_0x5ecd65(0x328)](this[_0x5ecd65(0x429)][_0x5ecd65(0x1e4)]));}[_0xca568b(0x44b)](){const _0x40d5f8=_0xca568b;if(!this[_0x40d5f8(0x429)])return;let _0xeb0932=this[_0x40d5f8(0x221)]();_0xeb0932&&this[_0x40d5f8(0x429)][_0x40d5f8(0x385)](this[_0x40d5f8(0x40a)](_0xeb0932),this[_0x40d5f8(0x26d)]());}['markReady'](){const _0x338c2d=_0xca568b;this[_0x338c2d(0x420)]();}[_0xca568b(0x290)](){const _0x5f200d=_0xca568b;this[_0x5f200d(0x264)]();}[_0xca568b(0x269)](_0x60a985){const _0x518ca1=_0xca568b;this['_dataUpdateAnimationDuration']=_0x60a985;let _0x1298a8=this[_0x518ca1(0x2c7)](),_0x45d3a0=document[_0x518ca1(0x2fd)]((_0x1298a8==null?void 0x0:_0x1298a8['domId'])??this[_0x518ca1(0x400)]);_0x45d3a0&&this[_0x518ca1(0x35d)](_0x45d3a0);}[_0xca568b(0x406)](){const _0x5329e4=_0xca568b;var _0x2e9ad0;this[_0x5329e4(0x3f2)]||(this[_0x5329e4(0x290)](),this[_0x5329e4(0x417)]=null,this[_0x5329e4(0x1df)]=null,this[_0x5329e4(0x1b2)](),this[_0x5329e4(0x39e)]=!0x1,this[_0x5329e4(0x1cc)]=null,(_0x2e9ad0=this[_0x5329e4(0x429)])==null||_0x2e9ad0[_0x5329e4(0x406)](),this[_0x5329e4(0x429)]=null,this[_0x5329e4(0x240)](),super[_0x5329e4(0x406)]());}async[_0xca568b(0x2a5)](){const _0x3c235f=_0xca568b;let _0x241db2=this[_0x3c235f(0x2c7)]();if(!_0x241db2)throw Error(_0x3c235f(0x23e));let _0x191656=_0x241db2[_0x3c235f(0x2ae)]??this[_0x3c235f(0x400)],_0x1f9da8=fi(_0x191656),_0x259a99=Symbol(this[_0x3c235f(0x400)]);this['_pendingToken']=_0x259a99,this['_waiter']=_0x1f9da8;try{let _0x700029=await _0x1f9da8[_0x3c235f(0x306)],_0x5dbc0d=this[_0x3c235f(0x2c7)](),_0x4cd18f=(_0x5dbc0d==null?void 0x0:_0x5dbc0d[_0x3c235f(0x2ae)])??this[_0x3c235f(0x400)];if(this['_disposed']||this[_0x3c235f(0x26f)]()||this['_pendingToken']!==_0x259a99||!_0x5dbc0d||_0x4cd18f!==_0x191656||document[_0x3c235f(0x2fd)](_0x191656)!==_0x700029||!_0x700029[_0x3c235f(0x2bd)])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x25b6ab=this['_getPlacement']();if(!_0x25b6ab)throw Error(_0x3c235f(0x23e));let _0x1a51c2=new _0x5a5cc2(_0x700029);return _0x1a51c2[_0x3c235f(0x385)](this[_0x3c235f(0x40a)](_0x25b6ab),this[_0x3c235f(0x26d)]()),this[_0x3c235f(0x36a)](_0x700029),this[_0x3c235f(0x429)]=_0x1a51c2,this[_0x3c235f(0x39e)]=!0x0,{'mountNode':_0x1a51c2[_0x3c235f(0x1e4)],'dispose':()=>{this['dispose'](),_0x241db2['dispose']['dispose']();}};}finally{this[_0x3c235f(0x22e)]===_0x1f9da8&&(this[_0x3c235f(0x22e)]=null),this[_0x3c235f(0x417)]===_0x259a99&&(this[_0x3c235f(0x417)]=null);}}['_cancelHostWait'](){const _0x1d68a3=_0xca568b;let _0x5856ca=this['_waiter'];_0x5856ca&&(_0x5856ca[_0x1d68a3(0x1db)](),this[_0x1d68a3(0x22e)]=null);}[_0xca568b(0x3b9)](){const _0x58c79e=_0xca568b;let _0x2a6501=this[_0x58c79e(0x221)]();this['_domFrame']&&_0x2a6501&&this['_domFrame'][_0x58c79e(0x385)](this[_0x58c79e(0x40a)](_0x2a6501),this[_0x58c79e(0x26d)]());}[_0xca568b(0x40a)](_0x2732f4){const _0x1625e2=_0xca568b;return _0x3f7b33[_0x1625e2(0x3d6)]({'logicalOuterRect':{'left':_0x2732f4[_0x1625e2(0x2c3)],'top':_0x2732f4[_0x1625e2(0x45a)],'width':_0x2732f4[_0x1625e2(0x285)],'height':_0x2732f4[_0x1625e2(0x3ce)]},'scale':{'scaleX':_0x2732f4[_0x1625e2(0x437)],'scaleY':_0x2732f4[_0x1625e2(0x3c3)]},'hostStyle':this['_frameStyle'](),'contentMode':_0x52688[_0x1625e2(0x305)]});}[_0xca568b(0x26d)](){const _0x1a7c4d=_0xca568b;return{...this[_0x1a7c4d(0x372)],'radius':_0x3b4d08};}[_0xca568b(0x36a)](_0x5e4094){const _0x5270b1=_0xca568b;let _0x281a73=_0x5e4094['parentElement'];_0x281a73&&(this[_0x5270b1(0x311)]||={'zIndex':_0x281a73[_0x5270b1(0x26b)]['zIndex'],'pointerEvents':_0x281a73['style']['pointerEvents']},_0x281a73['style'][_0x5270b1(0x1b1)]=_0x5270b1(0x2fa),this[_0x5270b1(0x35d)](_0x5e4094));}[_0xca568b(0x35d)](_0x3c50d0){const _0x50b5e5=_0xca568b;let _0x1074ef=_0x3c50d0[_0x50b5e5(0x379)];if(!_0x1074ef)return;let _0x56696d=this['_dataUpdateAnimationDuration'];if(_0x56696d!=null){_0x3c50d0[_0x50b5e5(0x3ec)]['sheetChartDataAnimation']='true',_0x3c50d0[_0x50b5e5(0x3ec)]['sheetChartDataAnimationDuration']=String(_0x56696d),_0x1074ef[_0x50b5e5(0x26b)]['pointerEvents']=_0x50b5e5(0x265);return;}delete _0x3c50d0[_0x50b5e5(0x3ec)][_0x50b5e5(0x38b)],delete _0x3c50d0[_0x50b5e5(0x3ec)]['sheetChartDataAnimationDuration'],_0x1074ef[_0x50b5e5(0x26b)]['pointerEvents']='auto';}[_0xca568b(0x240)](){const _0x327ee6=_0xca568b;if(!this[_0x327ee6(0x311)])return;let _0x57b6ca=this[_0x327ee6(0x2c7)](),_0x395b6d=(_0x57b6ca==null?void 0x0:_0x57b6ca['domId'])??this[_0x327ee6(0x400)],_0x5484aa=document['getElementById'](_0x395b6d);_0x5484aa==null||delete _0x5484aa[_0x327ee6(0x3ec)][_0x327ee6(0x38b)],_0x5484aa==null||delete _0x5484aa[_0x327ee6(0x3ec)][_0x327ee6(0x19e)];let _0x5765e5=_0x5484aa==null?void 0x0:_0x5484aa[_0x327ee6(0x379)];_0x5765e5&&(_0x5765e5[_0x327ee6(0x26b)][_0x327ee6(0x1b1)]=this[_0x327ee6(0x311)][_0x327ee6(0x1b1)],_0x5765e5[_0x327ee6(0x26b)][_0x327ee6(0x1cb)]=this[_0x327ee6(0x311)]['pointerEvents']),this[_0x327ee6(0x311)]=null;}},mi=class extends _0x3e25ad{constructor(_0x1989f6,_0x5995fc,_0x586ff5,_0x36a3f4,_0x172e07,_0x5c2c01){const _0x27fe03=_0xca568b;super(_0x1989f6),this[_0x27fe03(0x2f6)]=_0x5995fc,this[_0x27fe03(0x3b2)]=_0x586ff5,this['_snapshotKey']=_0x36a3f4,this[_0x27fe03(0x1dd)]=_0x172e07,this['_requestPaint']=_0x5c2c01;}['getRect'](){const _0x27c4b8=_0xca568b;let _0x5a572e=this[_0x27c4b8(0x2f6)]();return _0x5a572e?ti(_0x5a572e):null;}[_0xca568b(0x319)](_0x430c12){const _0x574b0c=_0xca568b;this[_0x574b0c(0x3b2)](_0x430c12);}[_0xca568b(0x399)](){const _0x47353=_0xca568b;return this['_snapshotStore'][_0x47353(0x399)](this[_0x47353(0x3d0)]);}[_0xca568b(0x2ba)](_0x49843f,_0x33cf60){const _0x463171=_0xca568b;return this[_0x463171(0x1dd)][_0x463171(0x43e)](this['_snapshotKey'],_0x49843f,_0x33cf60);}['requestPaint'](){const _0x2d743a=_0xca568b;this[_0x2d743a(0x398)]();}[_0xca568b(0x33a)](){const _0x47c481=_0xca568b;this[_0x47c481(0x1dd)]['nextVersion'](this['_snapshotKey']);}};function K(_0x2d25c1,_0x2a2e3f){return function(_0xf469db,_0x5ec02b){_0x2a2e3f(_0xf469db,_0x5ec02b,_0x2d25c1);};}function q(_0x2f172f,_0x425026,_0x3a31bc,_0x470875){const _0x3ca662=_0xca568b;var _0x46026e=arguments[_0x3ca662(0x3c2)],_0x31bfee=_0x46026e<0x3?_0x425026:_0x470875===null?_0x470875=Object[_0x3ca662(0x3ff)](_0x425026,_0x3a31bc):_0x470875,_0x3a73cf;if(typeof Reflect=='object'&&typeof Reflect[_0x3ca662(0x2c5)]=='function')_0x31bfee=Reflect[_0x3ca662(0x2c5)](_0x2f172f,_0x425026,_0x3a31bc,_0x470875);else{for(var _0x2c49e3=_0x2f172f[_0x3ca662(0x3c2)]-0x1;_0x2c49e3>=0x0;_0x2c49e3--)(_0x3a73cf=_0x2f172f[_0x2c49e3])&&(_0x31bfee=(_0x46026e<0x3?_0x3a73cf(_0x31bfee):_0x46026e>0x3?_0x3a73cf(_0x425026,_0x3a31bc,_0x31bfee):_0x3a73cf(_0x425026,_0x3a31bc))||_0x31bfee);}return _0x46026e>0x3&&_0x31bfee&&Object[_0x3ca662(0x3be)](_0x425026,_0x3a31bc,_0x31bfee),_0x31bfee;}const hi=0.5;function gi(_0x4f9d98){const _0x23148d=_0xca568b;let _0x1f685c=Math['max'](_0x4f9d98['endX']-_0x4f9d98[_0x23148d(0x3b7)],0x0),_0x51aa56=Math['max'](_0x4f9d98[_0x23148d(0x2c4)]-_0x4f9d98['startY'],0x0),_0x4a986e=_0x4f9d98[_0x23148d(0x1d9)][_0x23148d(0x2c3)]&&_0x4f9d98['width']-_0x1f685c>hi,_0x59d9b2=_0x4f9d98[_0x23148d(0x1d9)][_0x23148d(0x45a)]&&_0x4f9d98[_0x23148d(0x3ce)]-_0x51aa56>hi;return!_0x4a986e&&!_0x59d9b2?_0x4f9d98:{..._0x4f9d98,'absolute':{'left':!_0x4a986e&&_0x4f9d98[_0x23148d(0x1d9)][_0x23148d(0x2c3)],'top':!_0x59d9b2&&_0x4f9d98['absolute'][_0x23148d(0x45a)]}};}function _i(_0x327e35){const _0x492491=_0xca568b;if(!Object[_0x492491(0x2f3)][_0x492491(0x3e5)][_0x492491(0x2b9)](_0x327e35,_0x492491(0x34a)))return _0x327e35;let {border:_0x5dc0c3,..._0x226878}=_0x327e35;return{..._0x226878,'stroke':(_0x5dc0c3==null?void 0x0:_0x5dc0c3['color'])??'transparent','strokeWidth':(_0x5dc0c3==null?void 0x0:_0x5dc0c3['width'])??0x0};}let vi=class extends _0x110283{constructor(_0x2ce846,_0x34c6b0,_0x380623,_0x1c78cd){const _0x5eae11=_0xca568b;super(),this['_sheetCanvasFloatDomManagerService']=_0x2ce846,this[_0x5eae11(0x19f)]=_0x34c6b0,this[_0x5eae11(0x26e)]=_0x380623,this['_canvasFloatDomService']=_0x1c78cd,W(this,'_chartHostMap',new Map()),W(this,'_activeDomReadyChartIds',new Set()),W(this,_0x5eae11(0x38d),new _0x1d042d()),W(this,_0x5eae11(0x380),this['_removeHost$'][_0x5eae11(0x3a8)]()),this[_0x5eae11(0x1e0)](this[_0x5eae11(0x40f)]['remove$'][_0x5eae11(0x1f1)](_0x1515a4=>{const _0x111297=_0x5eae11;let _0x3bb291=this['_chartHostMap'][_0x111297(0x29a)](_0x1515a4['id']);_0x3bb291!=null&&_0x3bb291['isManaged']()&&(_0x3bb291[_0x111297(0x39f)](),this[_0x111297(0x38d)][_0x111297(0x1b5)](_0x1515a4['id']));}));}[_0xca568b(0x3df)](_0x2e5b9b){const _0xa24ae7=_0xca568b;if(_0x2e5b9b==null)return;let _0x29d9af=this[_0xa24ae7(0x19f)]['getRenderUnitById'](_0x2e5b9b),_0x5cddef=_0x29d9af==null?void 0x0:_0x29d9af['scene'];return _0x29d9af==null||_0x5cddef==null?null:{'scene':_0x5cddef,'transformer':_0x5cddef['getTransformerByCreate'](),'renderUnit':_0x29d9af,'canvas':_0x29d9af[_0xa24ae7(0x382)]['getCanvasElement']()};}['setBorder'](_0x4b793d,_0x1cbbff){const _0x338b81=_0xca568b;let _0x443731=this[_0x338b81(0x40f)],_0x4aa37f=_0x1cbbff||_0x338b81(0x3eb),_0x16dfe3=_0x443731[_0x338b81(0x35a)](_0x4b793d);if(_0x16dfe3){let {unitId:_0x18a5c6,subUnitId:_0x23dddc}=_0x16dfe3;_0x443731['updateFloatDomProps'](_0x18a5c6,_0x23dddc,_0x4b793d,{'stroke':_0x4aa37f});}}['setHostStyle'](_0xc185a0,_0x461592){const _0x236b27=_0xca568b;let _0x31e014=this['_sheetCanvasFloatDomManagerService'],_0x4dd695=_0x31e014[_0x236b27(0x35a)](_0xc185a0);if(_0x4dd695){let {unitId:_0x19923a,subUnitId:_0x5cb2cb}=_0x4dd695;_0x31e014[_0x236b27(0x3da)](_0x19923a,_0x5cb2cb,_0xc185a0,_i(_0x461592));}}[_0xca568b(0x1f0)](_0x40511d){const _0x561ef8=_0xca568b;let _0x95af80=this[_0x561ef8(0x40f)][_0x561ef8(0x35a)](_0x40511d);return _0x95af80?_0x95af80[_0x561ef8(0x351)]:null;}[_0xca568b(0x1da)](_0x3828e5){const _0x315047=_0xca568b;let _0x13e028=this['_sheetCanvasFloatDomManagerService'][_0x315047(0x35a)](_0x3828e5),_0x3b2a39=document[_0x315047(0x2fd)]((_0x13e028==null?void 0x0:_0x13e028['domId'])??_0x3828e5);return(_0x3b2a39==null?void 0x0:_0x3b2a39[_0x315047(0x1af)]())??null;}[_0xca568b(0x269)](_0x31a29e,_0x2e5349){const _0x5d3525=_0xca568b;var _0x2948dc;(_0x2948dc=this[_0x5d3525(0x33b)][_0x5d3525(0x29a)](_0x31a29e))==null||_0x2948dc[_0x5d3525(0x269)](_0x2e5349);}['checkHost'](_0x166caa){const _0x17ec73=_0xca568b;var _0x592da5;return((_0x592da5=this[_0x17ec73(0x33b)][_0x17ec73(0x29a)](_0x166caa))==null?void 0x0:_0x592da5[_0x17ec73(0x353)]())??!0x1;}[_0xca568b(0x1aa)](_0xb75610){const _0x4a1e4a=_0xca568b;var _0x11f862;(_0x11f862=this[_0x4a1e4a(0x33b)][_0x4a1e4a(0x29a)](_0xb75610))==null||_0x11f862['syncLayout']();}[_0xca568b(0x342)](_0x5a6748){const _0x3984e9=_0xca568b;let _0x53460e=this['_chartHostMap'][_0x3984e9(0x29a)](_0x5a6748);_0x53460e==null||_0x53460e['dispose'](),this['_chartHostMap'][_0x3984e9(0x28b)](_0x5a6748);}async['ensureHost'](_0x558b7e,_0x1511d6){const _0x33c5e6=_0xca568b;if(_0x1511d6===_0x13effc['Image'])return this[_0x33c5e6(0x3f8)](_0x558b7e);if(_0x1511d6===_0x13effc[_0x33c5e6(0x237)])return this[_0x33c5e6(0x2cb)](_0x558b7e);let _0x46182b=this[_0x33c5e6(0x2cb)](_0x558b7e);if(!_0x46182b)throw Error(_0x33c5e6(0x23e));return _0x46182b['ensureHandle']();}['isDomReady'](_0x176bf7){const _0x2707dc=_0xca568b;var _0x4f1dd7;return this['_activeDomReadyChartIds'][_0x2707dc(0x3e1)](_0x176bf7)?(_0x4f1dd7=this['_chartHostMap'][_0x2707dc(0x29a)](_0x176bf7))!=null&&_0x4f1dd7['checkMounted']()?!0x0:(this['_activeDomReadyChartIds']['delete'](_0x176bf7),this[_0x2707dc(0x405)](_0x176bf7),!0x1):!0x1;}[_0xca568b(0x2c0)](_0x3950d8){const _0x169e80=_0xca568b;this[_0x169e80(0x421)][_0x169e80(0x28b)](_0x3950d8)&&(this[_0x169e80(0x405)](_0x3950d8),this[_0x169e80(0x1f5)](_0x3950d8));}[_0xca568b(0x33a)](_0x13d8f1){const _0x6e607a=_0xca568b;let _0x1b7449=this['_getChartSnapshotKey'](_0x13d8f1);_0x1b7449&&this[_0x6e607a(0x26e)]['nextVersion'](_0x1b7449);}['_createImageChartHost'](_0x4a6b1a){const _0x4a239b=_0xca568b;let _0xda408f=this[_0x4a239b(0x3d4)](_0x4a6b1a);return!_0xda408f||!this['getHostSize'](_0x4a6b1a)?null:new mi(_0x4a6b1a,()=>this['getHostSize'](_0x4a6b1a),_0x3a1a2e=>this[_0x4a239b(0x1c7)](_0x4a6b1a,_0x3a1a2e),_0xda408f,this[_0x4a239b(0x26e)],()=>this[_0x4a239b(0x1f5)](_0x4a6b1a));}[_0xca568b(0x2cb)](_0x1ddfda){const _0x502152=_0xca568b;if(!this['getHostSize'](_0x1ddfda))return null;this[_0x502152(0x317)][_0x502152(0x1f6)](_0x1ddfda,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x2e6172=this[_0x502152(0x33b)][_0x502152(0x29a)](_0x1ddfda);if(_0x2e6172)return _0x2e6172;let _0xcbf322=new pi(_0x1ddfda,()=>this[_0x502152(0x40f)][_0x502152(0x35a)](_0x1ddfda),()=>this['_getHostPlacement'](_0x1ddfda),_0x5ac3b0=>this[_0x502152(0x1c7)](_0x1ddfda,_0x5ac3b0),()=>this[_0x502152(0x3f2)],()=>this['_markHostReady'](_0x1ddfda),()=>this[_0x502152(0x2c0)](_0x1ddfda));return this[_0x502152(0x33b)][_0x502152(0x210)](_0x1ddfda,_0xcbf322),_0xcbf322;}['_markHostReady'](_0x39e54c){const _0x29f9f7=_0xca568b;this[_0x29f9f7(0x421)]['has'](_0x39e54c)||(this[_0x29f9f7(0x421)][_0x29f9f7(0x36f)](_0x39e54c),this[_0x29f9f7(0x1a3)](_0x39e54c),this[_0x29f9f7(0x1f5)](_0x39e54c));}[_0xca568b(0x1a3)](_0x465365){const _0x110099=_0xca568b;var _0xa7501c;let _0xed5b2b=this[_0x110099(0x40f)]['getFloatDomInfo'](_0x465365),_0x5b8115=_0xed5b2b?(_0xa7501c=this['_renderManagerService'][_0x110099(0x26c)](_0xed5b2b[_0x110099(0x2f9)]))==null?void 0x0:_0xa7501c[_0x110099(0x288)]:null;if(!_0xed5b2b||!_0x5b8115)return;let _0x24af16=_0x3fa440(_0xed5b2b['position$']['pipe'](_0x55b78a(0x1)),_0x5b8115[_0x110099(0x411)][_0x110099(0x2d3)](_0x546631(_0xed5b2b[_0x110099(0x413)]),_0xd28067(([,_0x47b5e2])=>_0x47b5e2)))[_0x110099(0x2d3)](_0x3c6b25(),_0xd28067(gi));this['_canvasFloatDomService'][_0x110099(0x1f6)](_0x465365,{'position$':_0x24af16});}[_0xca568b(0x405)](_0x4ca010){const _0x121e38=_0xca568b;let _0x5c7b53=this[_0x121e38(0x40f)][_0x121e38(0x35a)](_0x4ca010);_0x5c7b53&&this[_0x121e38(0x317)]['updateFloatDom'](_0x4ca010,{'position$':_0x5c7b53[_0x121e38(0x413)]});}[_0xca568b(0x3d4)](_0x52769b){const _0x2584a4=_0xca568b;let _0x2baa10=this[_0x2584a4(0x40f)]['getFloatDomInfo'](_0x52769b);return _0x2baa10?{'unitId':_0x2baa10[_0x2584a4(0x2f9)],'subUnitId':_0x2baa10[_0x2584a4(0x254)],'chartId':_0x52769b}:null;}[_0xca568b(0x1f5)](_0x56f1cb){const _0x1cede0=_0xca568b;var _0x29472a,_0x17a678,_0x49e671;let _0x42a397=this[_0x1cede0(0x40f)][_0x1cede0(0x35a)](_0x56f1cb);if(!_0x42a397)return;let _0x1285a4=(_0x29472a=this[_0x1cede0(0x19f)][_0x1cede0(0x26c)](_0x42a397['unitId']))==null?void 0x0:_0x29472a[_0x1cede0(0x288)],_0x279f1e=(_0x1285a4==null||(_0x17a678=_0x1285a4[_0x1cede0(0x41a)])==null?void 0x0:_0x17a678[_0x1cede0(0x2b9)](_0x1285a4,_0x3e2347({'unitId':_0x42a397[_0x1cede0(0x2f9)],'subUnitId':_0x42a397[_0x1cede0(0x254)],'drawingId':_0x56f1cb})))??(_0x1285a4==null?void 0x0:_0x1285a4[_0x1cede0(0x233)](_0x3e2347({'unitId':_0x42a397[_0x1cede0(0x2f9)],'subUnitId':_0x42a397[_0x1cede0(0x254)],'drawingId':_0x56f1cb})))??null;_0x279f1e==null||(_0x49e671=_0x279f1e['makeDirty'])==null||_0x49e671['call'](_0x279f1e,!0x0),_0x1285a4==null||_0x1285a4[_0x1cede0(0x30e)](!0x0);}['_getHostPlacement'](_0xc9f050){const _0x42dfa8=_0xca568b;let _0x1563c6=this['_sheetCanvasFloatDomManagerService'][_0x42dfa8(0x35a)](_0xc9f050);if(!_0x1563c6)return null;let _0x24c48a=this[_0x42dfa8(0x3df)](_0x1563c6['unitId']),_0x3ef725=_0x24c48a==null?void 0x0:_0x24c48a[_0x42dfa8(0x288)],_0x430f45=document['getElementById'](_0x1563c6['domId']??_0xc9f050);return ni(_0x1563c6[_0x42dfa8(0x351)],{'scaleX':(_0x3ef725==null?void 0x0:_0x3ef725[_0x42dfa8(0x437)])??0x1,'scaleY':(_0x3ef725==null?void 0x0:_0x3ef725[_0x42dfa8(0x3c3)])??0x1},_0x430f45?{'left':_0x430f45[_0x42dfa8(0x442)],'top':_0x430f45[_0x42dfa8(0x3af)]}:void 0x0);}[_0xca568b(0x406)](){const _0x47597f=_0xca568b;this['_disposed']||(this['_chartHostMap'][_0x47597f(0x308)](_0x5a06ae=>_0x5a06ae[_0x47597f(0x406)]()),this[_0x47597f(0x33b)][_0x47597f(0x2a4)](),this[_0x47597f(0x421)]['clear'](),this[_0x47597f(0x38d)][_0x47597f(0x388)](),super[_0x47597f(0x406)]());}};vi=q([K(0x0,_0x2b7ebf(_0x48f4a3)),K(0x1,_0x2b7ebf(_0x52b878)),K(0x2,_0x2b7ebf(di)),K(0x3,_0x2b7ebf(_0x364740))],vi);const yi=_0x2d4252(_0xca568b(0x219)),bi=_0x13effc[_0xca568b(0x224)];var xi=class extends _0x3e25ad{constructor(_0x52ba44,_0x5c79da){const _0x10caa3=_0xca568b;super(_0x52ba44),this[_0x10caa3(0x43a)]=_0x5c79da,W(this,_0x10caa3(0x3fe),0x0),W(this,'_image',void 0x0),W(this,_0x10caa3(0x26b),{});}[_0xca568b(0x3a7)](){const _0x588e78=_0xca568b;return this[_0x588e78(0x43a)];}[_0xca568b(0x319)](_0x337698){const _0x2b4088=_0xca568b;this[_0x2b4088(0x26b)]=_0x337698;}[_0xca568b(0x399)](){const _0x1c5ef2=_0xca568b;return++this[_0x1c5ef2(0x3fe)];}[_0xca568b(0x2ba)](_0x81fe74,_0x67e4f){const _0x4dbd55=_0xca568b;return _0x67e4f===this[_0x4dbd55(0x3fe)]?(G(this[_0x4dbd55(0x2b1)]),this['_image']=_0x81fe74,!0x0):(G(_0x81fe74),!0x1);}[_0xca568b(0x232)](){}['invalidateSnapshot'](){const _0x68a68=_0xca568b;this[_0x68a68(0x3fe)]+=0x1;}['takeSnapshot'](){const _0x300693=_0xca568b;let _0x16a70c=this[_0x300693(0x2b1)];return this[_0x300693(0x2b1)]=void 0x0,_0x16a70c;}[_0xca568b(0x406)](){const _0x42ea0d=_0xca568b;G(this[_0x42ea0d(0x2b1)]),this[_0x42ea0d(0x2b1)]=void 0x0,super['dispose']();}};function Si(_0x3720ef,_0x513ac6,_0x1a572d){const _0x57aa38=_0xca568b;let _0x3b26b3=_0x3720ef[_0x57aa38(0x2bb)](_0x513ac6),_0x5d86ca={..._0x3720ef[_0x57aa38(0x26b)],'runtime':{..._0x3b26b3,'layoutInset':0x8,..._0x1a572d===void 0x0?{}:{'addWatermark':_0x1a572d}},'direction':_0x513ac6};return _0x2dbc64(_0x5d86ca,_0x3720ef[_0x57aa38(0x436)]);}let J=class extends _0x110283{constructor(_0x4180ef,_0xd9d1a8,_0x51150d,_0x48e0be,_0x486cdc,_0x52c3a4,_0x53009a,_0x33e80f,_0x5eda05,_0x301626,_0x4b38ae,_0xc7e6ba,_0x489d1e){const _0x5027db=_0xca568b;super(),this[_0x5027db(0x26a)]=_0x4180ef,this[_0x5027db(0x40f)]=_0xd9d1a8,this[_0x5027db(0x3f0)]=_0x51150d,this[_0x5027db(0x1a2)]=_0x48e0be,this['_univerInstanceService']=_0x486cdc,this[_0x5027db(0x19f)]=_0x52c3a4,this[_0x5027db(0x375)]=_0x53009a,this[_0x5027db(0x289)]=_0x33e80f,this[_0x5027db(0x35b)]=_0x5eda05,this[_0x5027db(0x3f9)]=_0x301626,this[_0x5027db(0x239)]=_0x4b38ae,this[_0x5027db(0x26e)]=_0xc7e6ba,this['_renderModelManager']=_0x489d1e,W(this,'_chartInstanceMap',new Map()),W(this,_0x5027db(0x2f4),new Map()),W(this,'_chartEventSubscriptions',new Map()),W(this,_0x5027db(0x341),new Map()),W(this,_0x5027db(0x276),new Map()),W(this,_0x5027db(0x354),new Map()),W(this,_0x5027db(0x435),new Map()),W(this,_0x5027db(0x444),void 0x0),W(this,_0x5027db(0x374),void 0x0),W(this,'_lastRenderInputMap',new Map()),W(this,_0x5027db(0x280),new Set()),W(this,'_dataUpdateAnimationTimers',new Map()),W(this,_0x5027db(0x272),null),W(this,'_lastActiveSheet',null);let _0x482c80=_0x14bcc6(this[_0x5027db(0x289)]),_0x206256=this[_0x5027db(0x239)][_0x5027db(0x1ab)](_0x5a48a3);this[_0x5027db(0x444)]=(_0x206256==null?void 0x0:_0x206256[_0x5027db(0x29f)])??bi,this[_0x5027db(0x374)]=_0x482c80['length']!==0x1||_0x482c80[0x0]!==_0x5027db(0x1eb),this[_0x5027db(0x2d0)](),this[_0x5027db(0x24e)](),this[_0x5027db(0x2d2)](),this[_0x5027db(0x230)](),this[_0x5027db(0x409)]();}[_0xca568b(0x22f)](_0x54e0ea){const _0x554925=_0xca568b;let _0x25dd58=this[_0x554925(0x3d4)](_0x54e0ea);return _0x25dd58?this[_0x554925(0x26e)]['getImage'](_0x25dd58):void 0x0;}[_0xca568b(0x245)](_0x14428b){const _0x18743a=_0xca568b;var _0x2e7f76;return((_0x2e7f76=this[_0x18743a(0x3f0)][_0x18743a(0x242)])==null?void 0x0:_0x2e7f76['id'])===_0x14428b?_0x13effc['Dom']:this['_chartRenderMode'];}[_0xca568b(0x3d4)](_0x1a3cb6){const _0x27a149=_0xca568b;let _0x35fda8=this[_0x27a149(0x40f)][_0x27a149(0x35a)](_0x1a3cb6);return _0x35fda8?{'unitId':_0x35fda8['unitId'],'subUnitId':_0x35fda8[_0x27a149(0x254)],'chartId':_0x1a3cb6}:null;}['_registerChartImageRenderObjectFactory'](){const _0x507995=_0xca568b;this[_0x507995(0x444)]===_0x13effc['Image']&&this['disposeWithMe'](this[_0x507995(0x40f)]['registerRenderObjectFactory'](_0x1dc4b2[_0x507995(0x1b7)],({key:_0x4180ad,config:_0x2bd421,unitId:_0x590090,subUnitId:_0x5af8b8,drawingId:_0x1dde16})=>new si(_0x4180ad,_0x2bd421,()=>this['_chartSnapshotStoreService'][_0x507995(0x267)]({'unitId':_0x590090,'subUnitId':_0x5af8b8,'chartId':_0x1dde16}),()=>this[_0x507995(0x26a)][_0x507995(0x415)](_0x1dde16))));}[_0xca568b(0x24e)](){const _0x3a8d3d=_0xca568b;this[_0x3a8d3d(0x1e0)](this['_chartModelService'][_0x3a8d3d(0x2b2)][_0x3a8d3d(0x1f1)](_0x502202=>{const _0xd2250=_0x3a8d3d;let _0x12ba80=(_0x502202==null?void 0x0:_0x502202['id'])??null,_0x413331=this[_0xd2250(0x272)];_0x413331!==_0x12ba80&&(_0x413331&&(this['_chartHostProvider'][_0xd2250(0x2c0)](_0x413331),this[_0xd2250(0x2a2)](_0x413331),this[_0xd2250(0x454)](_0x413331)),this[_0xd2250(0x272)]=_0x12ba80,_0x12ba80&&(this[_0xd2250(0x39c)](_0x12ba80),this[_0xd2250(0x26a)]['markHostNotReady'](_0x12ba80),this[_0xd2250(0x1c4)](_0x12ba80),this['_rerenderLatest'](_0x12ba80)));}));}[_0xca568b(0x2d2)](){const _0x547612=_0xca568b;this[_0x547612(0x1e0)](this['_drawingManagerService'][_0x547612(0x301)][_0x547612(0x1f1)](_0x39f109=>{const _0x11d746=_0x547612;var _0x5edff0;let _0x4c96b8=(_0x5edff0=this[_0x11d746(0x3f0)][_0x11d746(0x242)])==null?void 0x0:_0x5edff0['id'];_0x4c96b8&&_0x39f109[_0x11d746(0x25c)](_0x4d3672=>_0x4d3672[_0x11d746(0x2b4)][_0x11d746(0x25c)](_0x50afd8=>_0x50afd8['drawingId']===_0x4c96b8))&&this[_0x11d746(0x3f0)][_0x11d746(0x1fa)](null);})),this[_0x547612(0x1e0)](this[_0x547612(0x1a2)][_0x547612(0x423)]['subscribe'](_0x35a261=>{const _0x47cd46=_0x547612;var _0x31dc5f;let _0x1c7c5e=(_0x31dc5f=this['_chartModelService'][_0x47cd46(0x242)])==null?void 0x0:_0x31dc5f['id'];_0x1c7c5e&&_0x35a261[_0x47cd46(0x25c)](_0x2130bb=>_0x2130bb[_0x47cd46(0x25a)][_0x47cd46(0x22a)]===_0x1c7c5e||_0x2130bb[_0x47cd46(0x2b4)][_0x47cd46(0x25c)](_0x2ccfe5=>_0x2ccfe5[_0x47cd46(0x22a)]===_0x1c7c5e))&&this[_0x47cd46(0x3f0)][_0x47cd46(0x1fa)](null);}));}[_0xca568b(0x230)](){const _0x1aa7e7=_0xca568b;this[_0x1aa7e7(0x1e0)](this[_0x1aa7e7(0x1a2)]['featurePluginOrderUpdate$'][_0x1aa7e7(0x1f1)](_0x436459=>{const _0x20e71a=_0x1aa7e7;var _0x43b3e5;let _0x277e4a=(_0x43b3e5=this[_0x20e71a(0x3f0)]['activeChartModel'])==null?void 0x0:_0x43b3e5['id'];if(!_0x277e4a){_0x436459[_0x20e71a(0x2e1)]['forEach'](_0x5caab8=>{this['_chartModelService']['getChartModel'](_0x5caab8)&&this['_resetChartRuntimeZIndex'](_0x5caab8);});return;}let _0x22b0a8=this[_0x20e71a(0x40f)][_0x20e71a(0x35a)](_0x277e4a);(_0x22b0a8==null?void 0x0:_0x22b0a8[_0x20e71a(0x2f9)])===_0x436459[_0x20e71a(0x2f9)]&&_0x22b0a8['subUnitId']===_0x436459[_0x20e71a(0x254)]&&this[_0x20e71a(0x1c4)](_0x277e4a);})),this['disposeWithMe'](this['_drawingManagerService'][_0x1aa7e7(0x2dc)][_0x1aa7e7(0x1f1)](_0x2d32f2=>{const _0x253214=_0x1aa7e7;var _0x3d8e60;let _0xfe2faf=(_0x3d8e60=this[_0x253214(0x3f0)][_0x253214(0x242)])==null?void 0x0:_0x3d8e60['id'];if(!_0xfe2faf)return;let _0x5b8570=this[_0x253214(0x40f)]['getFloatDomInfo'](_0xfe2faf);_0x5b8570&&_0x2d32f2[_0x253214(0x25c)](_0x58a489=>_0x58a489[_0x253214(0x2f9)]===_0x5b8570[_0x253214(0x2f9)]&&_0x58a489[_0x253214(0x254)]===_0x5b8570[_0x253214(0x254)])&&this['_applyActiveChartRuntimeZIndex'](_0xfe2faf);})),this[_0x1aa7e7(0x1e0)](this[_0x1aa7e7(0x3f0)][_0x1aa7e7(0x41c)]['subscribe'](_0x3df2dc=>{const _0x120961=_0x1aa7e7;var _0x1e180b;this['_disposeChartChangeListeners'](_0x3df2dc),this[_0x120961(0x39c)](_0x3df2dc),this[_0x120961(0x203)][_0x120961(0x28b)](_0x3df2dc),this[_0x120961(0x26e)][_0x120961(0x329)](_0x3df2dc),this[_0x120961(0x44f)](_0x3df2dc),this[_0x120961(0x26a)][_0x120961(0x2c0)](_0x3df2dc),((_0x1e180b=this[_0x120961(0x3f0)][_0x120961(0x242)])==null?void 0x0:_0x1e180b['id'])===_0x3df2dc?this['_chartModelService'][_0x120961(0x1fa)](null):this['_resetChartRuntimeZIndex'](_0x3df2dc),this['_disposeChartRenderInstance'](_0x3df2dc);}));}[_0xca568b(0x217)](_0x1fc39f){const _0x578f26=_0xca568b;let _0x374a7f=this[_0x578f26(0x203)][_0x578f26(0x29a)](_0x1fc39f);_0x374a7f&&this[_0x578f26(0x23d)](_0x1fc39f,_0x374a7f['config'],_0x374a7f[_0x578f26(0x26b)]);}[_0xca568b(0x454)](_0x43cdbc){const _0x2ab626=_0xca568b;let _0xd4a527=this[_0x2ab626(0x40d)]['get'](_0x43cdbc);(_0xd4a527==null?void 0x0:_0xd4a527[_0x2ab626(0x448)])===_0x2ab626(0x3a5)&&(this[_0x2ab626(0x434)](_0x43cdbc),_0xd4a527[_0x2ab626(0x406)](),this['_chartInstanceMap'][_0x2ab626(0x28b)](_0x43cdbc)),this[_0x2ab626(0x26a)][_0x2ab626(0x2c0)](_0x43cdbc),this[_0x2ab626(0x26a)]['removeHost'](_0x43cdbc);}['_disposeChartRenderInstance'](_0x5d4631){const _0x45ce7d=_0xca568b;let _0x1b3b7e=this['_chartInstanceMap'][_0x45ce7d(0x29a)](_0x5d4631);_0x1b3b7e&&(this[_0x45ce7d(0x434)](_0x5d4631),_0x1b3b7e[_0x45ce7d(0x406)](),this[_0x45ce7d(0x40d)]['delete'](_0x5d4631)),this[_0x45ce7d(0x26a)][_0x45ce7d(0x2c0)](_0x5d4631),this[_0x45ce7d(0x26a)][_0x45ce7d(0x342)](_0x5d4631);}['_clearChartRuntimeCache'](_0x466979){const _0x36b463=_0xca568b;var _0x287ae2,_0x3e6ae7;(_0x287ae2=this[_0x36b463(0x234)][_0x36b463(0x327)](_0x5bf36d))==null||(_0x3e6ae7=_0x287ae2['clearRuntimeCache'])==null||_0x3e6ae7['call'](_0x287ae2,_0x466979);}[_0xca568b(0x416)](_0x17e3be,_0x1a0ea6){const _0x12cd17=_0xca568b;let _0x68cbfc=this[_0x12cd17(0x1a2)][_0x12cd17(0x340)](_0x17e3be,_0x1a0ea6);Object[_0x12cd17(0x377)](_0x68cbfc??{})[_0x12cd17(0x308)](_0x1bf926=>{const _0x353dc8=_0x12cd17;_0x1bf926[_0x353dc8(0x2ac)]===_0x1dc4b2['DRAWING_CHART']&&this[_0x353dc8(0x44f)](_0x1bf926[_0x353dc8(0x22a)]);});}[_0xca568b(0x350)](_0xdb07b1,_0x26f333){const _0x53de33=_0xca568b;var _0x18ecf1;return((_0x18ecf1=_0xdb07b1[_0x53de33(0x41a)])==null?void 0x0:_0x18ecf1['call'](_0xdb07b1,_0x26f333))??_0xdb07b1[_0x53de33(0x233)](_0x26f333)??null;}[_0xca568b(0x1ce)](_0x34ded7){const _0x5a9655=_0xca568b;var _0x59d106;let _0x4674b2=this[_0x5a9655(0x40f)][_0x5a9655(0x35a)](_0x34ded7);if(!_0x4674b2)return null;let _0x31f185=(_0x59d106=this['_renderManagerService']['getRenderUnitById'](_0x4674b2[_0x5a9655(0x2f9)]))==null?void 0x0:_0x59d106[_0x5a9655(0x288)];if(!_0x31f185)return null;let _0x316a32=this[_0x5a9655(0x350)](_0x31f185,_0x3e2347({'unitId':_0x4674b2['unitId'],'subUnitId':_0x4674b2[_0x5a9655(0x254)],'drawingId':_0x34ded7}));return _0x316a32?{'info':_0x4674b2,'scene':_0x31f185,'chartObject':_0x316a32}:null;}[_0xca568b(0x359)](_0x117b92,_0x47eb05){const _0x452947=_0xca568b;var _0x5c8845,_0x27ae0d,_0x4d28dd,_0x45d168;let _0x57ded5=this[_0x452947(0x1ce)](_0x117b92);_0x57ded5&&((_0x5c8845=(_0x27ae0d=_0x57ded5[_0x452947(0x1ca)])[_0x452947(0x3cf)])==null||_0x5c8845[_0x452947(0x2b9)](_0x27ae0d,{'zIndex':_0x47eb05}),(_0x4d28dd=(_0x45d168=_0x57ded5[_0x452947(0x1ca)])['makeDirty'])==null||_0x4d28dd['call'](_0x45d168,!0x0),_0x57ded5[_0x452947(0x288)][_0x452947(0x30e)](!0x0));}['_applyActiveChartRuntimeZIndex'](_0x402882){const _0x3ddff0=_0xca568b;let _0x3d5a38=this[_0x3ddff0(0x40f)]['getFloatDomInfo'](_0x402882);if(!_0x3d5a38)return;let _0x4da8ec=this[_0x3ddff0(0x1a2)]['getDrawingOrder'](_0x3d5a38['unitId'],_0x3d5a38[_0x3ddff0(0x254)]);this[_0x3ddff0(0x359)](_0x402882,_0x4da8ec[_0x3ddff0(0x3c2)]);}[_0xca568b(0x2a2)](_0x75e950){const _0x3b6cf6=_0xca568b;let _0x5223ef=this[_0x3b6cf6(0x40f)]['getFloatDomInfo'](_0x75e950);if(!_0x5223ef)return;let _0x2be02f=this[_0x3b6cf6(0x1a2)][_0x3b6cf6(0x3c7)](_0x5223ef['unitId'],_0x5223ef['subUnitId']),_0x543d11=_0x2be02f[_0x3b6cf6(0x3bb)](_0x75e950);this[_0x3b6cf6(0x359)](_0x75e950,_0x543d11===-0x1?Math['max'](_0x2be02f[_0x3b6cf6(0x3c2)]-0x1,0x0):_0x543d11);}[_0xca568b(0x1ef)](_0xc54425,_0x102ecc){const _0x314920=_0xca568b;let _0x44f391=this[_0x314920(0x40f)][_0x314920(0x35a)](_0xc54425);if(_0x102ecc[_0x314920(0x285)]!==void 0x0&&_0x102ecc[_0x314920(0x3ce)]!==void 0x0&&_0x44f391){var _0x1771eb;let {subUnitId:_0x2835f1}=_0x44f391,_0x384790=(_0x1771eb=this[_0x314920(0x31a)][_0x314920(0x293)](_0x50b631[_0x314920(0x2f0)]))==null?void 0x0:_0x1771eb[_0x314920(0x295)]();if((_0x384790==null?void 0x0:_0x384790[_0x314920(0x1d5)]())===_0x2835f1){let {width:_0x3aac45,height:_0x5a6b29}=_0x102ecc,_0xba3ea4=this[_0x314920(0x3f0)][_0x314920(0x284)](_0xc54425),_0x316207=_0xba3ea4==null?void 0x0:_0xba3ea4[_0x314920(0x26b)];if(Math[_0x314920(0x395)](_0x3aac45-((_0x316207==null?void 0x0:_0x316207['width'])||0x0))>0x1||Math['abs'](_0x5a6b29-((_0x316207==null?void 0x0:_0x316207['height'])||0x0))>0x1){_0xba3ea4==null||_0xba3ea4[_0x314920(0x43f)]({..._0x316207,'width':_0x3aac45,'height':_0x5a6b29});let _0x500fef=this[_0x314920(0x40d)]['get'](_0xc54425);_0x500fef&&(this['_chartHostProvider'][_0x314920(0x1aa)](_0xc54425),_0x500fef[_0x314920(0x222)]());}}}}[_0xca568b(0x463)](_0x2cc4be,_0x51a135,_0x526251=0x0){const _0x4fab3c=_0xca568b;let _0x351f76=this[_0x4fab3c(0x354)][_0x4fab3c(0x29a)](_0x2cc4be);_0x351f76||(_0x351f76=_0x2132b5(_0x616bdb=>{const _0x5e5b8f=_0x4fab3c;this[_0x5e5b8f(0x1ef)](_0x2cc4be,_0x616bdb);},_0x526251),this[_0x4fab3c(0x354)]['set'](_0x2cc4be,_0x351f76)),_0x351f76(_0x51a135);}['handleActiveSubUnitChange'](){const _0x5ec740=_0xca568b;let _0xe8fba7=this[_0x5ec740(0x276)],_0x2b0479=_0x228c7a=>{const _0x1feb23=_0x5ec740;if(!_0xe8fba7[_0x1feb23(0x3e1)](_0x228c7a)){let _0x52b125=_0x2132b5((_0x32fe70,_0x39c4bc,_0x508d6e,_0x508cf4)=>{const _0xb36aa8=_0x1feb23;var _0x3857f0,_0x4bbc35;if(!_0x508d6e)return;(_0x3857f0=_0x508d6e['category'])==null||_0x3857f0[_0xb36aa8(0x3fa)][_0xb36aa8(0x308)]((_0x436671,_0x398b0e)=>{const _0x6d5ab9=_0xb36aa8;_0x436671[_0x6d5ab9(0x248)]||=this[_0x6d5ab9(0x375)]['t'](_0x6d5ab9(0x32a))+'\x20'+(_0x398b0e+0x1);}),_0x508d6e[_0xb36aa8(0x241)][_0xb36aa8(0x308)]((_0x3b410a,_0x59f107)=>{const _0x501d5a=_0xb36aa8;_0x3b410a[_0x501d5a(0x33f)]||=this[_0x501d5a(0x375)]['t'](_0x501d5a(0x38f))+'\x20'+(_0x59f107+0x1);});let _0x3dc9ca=this[_0xb36aa8(0x1b6)](_0x32fe70,_0x508cf4),_0x34ee42=(_0x4bbc35=this[_0xb36aa8(0x31a)][_0xb36aa8(0x293)](_0x50b631[_0xb36aa8(0x2f0)]))==null?void 0x0:_0x4bbc35[_0xb36aa8(0x295)]();(_0x34ee42==null?void 0x0:_0x34ee42[_0xb36aa8(0x1d5)]())===_0x39c4bc&&this[_0xb36aa8(0x23d)](_0x32fe70['id'],_0x508d6e,_0x3dc9ca);},0x11);_0xe8fba7[_0x1feb23(0x210)](_0x228c7a,_0x52b125);}return _0xe8fba7['get'](_0x228c7a);};this[_0x5ec740(0x1e0)](this[_0x5ec740(0x31a)][_0x5ec740(0x21a)][_0x5ec740(0x1f1)](_0x2f8efd=>{const _0x1d5361=_0x5ec740;let _0x153b70=this[_0x1d5361(0x31a)][_0x1d5361(0x293)](_0x50b631['UNIVER_SHEET']);if(_0x2f8efd&&_0x153b70&&_0x153b70[_0x1d5361(0x360)]()===_0x2f8efd){var _0x241a1b;let _0x176092=_0x153b70[_0x1d5361(0x295)]()[_0x1d5361(0x1d5)]();this[_0x1d5361(0x261)]&&(this[_0x1d5361(0x261)][_0x1d5361(0x2f9)]!==_0x2f8efd||this[_0x1d5361(0x261)][_0x1d5361(0x254)]!==_0x176092)&&this[_0x1d5361(0x416)](this[_0x1d5361(0x261)][_0x1d5361(0x2f9)],this[_0x1d5361(0x261)][_0x1d5361(0x254)]),this['_lastActiveSheet']={'unitId':_0x2f8efd,'subUnitId':_0x176092};let _0x4b3347=this['_drawingManagerService'][_0x1d5361(0x340)](_0x2f8efd,_0x176092);if(!((_0x241a1b=this[_0x1d5361(0x19f)]['getRenderUnitById'](_0x2f8efd))!=null&&_0x241a1b['with'](_0x218d8c)['getSkeleton'](_0x176092)))return;if(_0x4b3347)for(let _0x22c1e4 in _0x4b3347){let {drawingId:_0x5b181d}=_0x4b3347[_0x22c1e4],_0x513eec=this[_0x1d5361(0x3f0)][_0x1d5361(0x284)](_0x5b181d);_0x513eec&&_0x2b0479(_0x513eec['id'])(_0x513eec,_0x176092,_0x513eec['config'],this[_0x1d5361(0x375)][_0x1d5361(0x321)]());}}})),this[_0x5ec740(0x1e0)](this[_0x5ec740(0x3f9)][_0x5ec740(0x1dc)][_0x5ec740(0x1f1)](()=>{const _0x1c04ee=_0x5ec740;var _0x2f9adf;let _0x1b67ad=this[_0x1c04ee(0x31a)][_0x1c04ee(0x293)](_0x50b631[_0x1c04ee(0x2f0)]);if(!_0x1b67ad)return;let _0x32215b=_0x1b67ad['getUnitId'](),_0xbde6ca=_0x1b67ad['getActiveSheet']()[_0x1c04ee(0x1d5)](),_0x5877a4=this[_0x1c04ee(0x1a2)][_0x1c04ee(0x340)](_0x32215b,_0xbde6ca);if((_0x2f9adf=this['_renderManagerService'][_0x1c04ee(0x26c)](_0x32215b))!=null&&_0x2f9adf[_0x1c04ee(0x31c)](_0x218d8c)[_0x1c04ee(0x2e0)](_0xbde6ca)&&_0x5877a4)for(let _0x1d097e in _0x5877a4){let {drawingId:_0x5d97af}=_0x5877a4[_0x1d097e],_0x1ba99d=this[_0x1c04ee(0x3f0)]['getChartModel'](_0x5d97af);_0x1ba99d&&_0x2b0479(_0x1ba99d['id'])(_0x1ba99d,_0xbde6ca,_0x1ba99d[_0x1c04ee(0x3cc)],this['_localeService'][_0x1c04ee(0x321)]());}})),this['disposeWithMe'](this['_drawingManagerService']['add$'][_0x5ec740(0x1f1)](_0x285103=>{const _0x515f9d=_0x5ec740;_0x285103[_0x515f9d(0x308)](_0x89968f=>{const _0x5312fa=_0x515f9d;var _0x46f195;let {drawingId:_0x4f8fe8,unitId:_0x3de1fa,subUnitId:_0x2283a8}=_0x89968f,_0x51ca94=this['_renderManagerService'][_0x5312fa(0x26c)](_0x3de1fa);if((_0x51ca94==null?void 0x0:_0x51ca94[_0x5312fa(0x1bc)])!==_0x50b631[_0x5312fa(0x2f0)]||!_0x51ca94['with'](_0x218d8c)[_0x5312fa(0x2e0)](_0x2283a8))return;let {drawingType:_0x3d7cd2}=this[_0x5312fa(0x1a2)]['getDrawingByParam'](_0x89968f);if(_0x3d7cd2!==_0x1dc4b2['DRAWING_CHART'])return;let _0x54b583=this['_sheetCanvasFloatDomManagerService'][_0x5312fa(0x35a)](_0x4f8fe8);this[_0x5312fa(0x3ac)](_0x4f8fe8);let _0x2b5e65=new _0x110283();this[_0x5312fa(0x435)][_0x5312fa(0x210)](_0x4f8fe8,_0x2b5e65);let _0x445593=(_0x54b583==null?void 0x0:_0x54b583[_0x5312fa(0x2ae)])??_0x4f8fe8,_0x589a98=_0x54b583==null?void 0x0:_0x54b583[_0x5312fa(0x351)],_0x520824=(_0x46f195=this['_renderManagerService']['getRenderUnitById'](_0x3de1fa))==null?void 0x0:_0x46f195[_0x5312fa(0x288)];_0x589a98&&_0x2b5e65[_0x5312fa(0x1e0)](_0x589a98['onTransformChange$'][_0x5312fa(0x2e8)](_0x2f41b0=>{const _0x37789b=_0x5312fa;let {type:_0x5e211d,value:_0x295eb5}=_0x2f41b0;if(_0x583ffa[_0x37789b(0x222)]===_0x5e211d||_0x583ffa[_0x37789b(0x1eb)]===_0x5e211d){let {width:_0x4de089,height:_0x39dbb0}=_0x295eb5;this['_debounceHandle'](_0x4f8fe8,{'width':_0x4de089,'height':_0x39dbb0},0x64);}})),_0x520824&&_0x2b5e65['disposeWithMe'](_0x520824['onTransformChange$'][_0x5312fa(0x2e8)](_0x26677d=>{const _0x468a2a=_0x5312fa;var _0x29279e;_0x26677d[_0x468a2a(0x1bc)]===_0x583ffa[_0x468a2a(0x1e6)]&&(_0x29279e=document['getElementById'](_0x445593))!=null&&_0x29279e[_0x468a2a(0x247)](_0x468a2a(0x3fd))&&this[_0x468a2a(0x26a)]['syncHostLayout'](_0x4f8fe8);}));let _0x4ee988=this[_0x5312fa(0x3f0)][_0x5312fa(0x284)](_0x4f8fe8);_0x4ee988&&_0x2b5e65[_0x5312fa(0x1e0)](_0x3c6cb0([_0x4ee988[_0x5312fa(0x1d7)],_0x4ee988['style$'],this[_0x5312fa(0x375)][_0x5312fa(0x1a4)]])[_0x5312fa(0x1f1)](([_0x46b0d1,_0x471b2c,_0x46d716])=>{_0x2b0479(_0x4ee988['id'])(_0x4ee988,_0x2283a8,_0x46b0d1,_0x46d716);}));});})),this[_0x5ec740(0x1e0)](_0x3c6cb0([this[_0x5ec740(0x1a2)][_0x5ec740(0x2de)]])['subscribe'](([_0x1d5310])=>{const _0x21f218=_0x5ec740;_0x1d5310[_0x21f218(0x308)](_0x4c5a14=>{const _0x500e8b=_0x21f218;var _0xfad8b0;let {drawingId:_0x11d5a3}=_0x4c5a14;this[_0x500e8b(0x3ac)](_0x11d5a3),((_0xfad8b0=this[_0x500e8b(0x3f0)][_0x500e8b(0x242)])==null?void 0x0:_0xfad8b0['id'])===_0x11d5a3&&this[_0x500e8b(0x3f0)][_0x500e8b(0x1fa)](null),this[_0x500e8b(0x434)](_0x11d5a3),this[_0x500e8b(0x2f4)][_0x500e8b(0x28b)](_0x11d5a3),this[_0x500e8b(0x26a)][_0x500e8b(0x2c0)](_0x11d5a3),this[_0x500e8b(0x2a2)](_0x11d5a3),this[_0x500e8b(0x445)](_0x11d5a3),this['_chartSnapshotStoreService'][_0x500e8b(0x329)](_0x11d5a3),this[_0x500e8b(0x44f)](_0x11d5a3),this[_0x500e8b(0x203)][_0x500e8b(0x28b)](_0x11d5a3),this['_chartElementEditMode'][_0x500e8b(0x28b)](_0x11d5a3);});}));}['setElementEditMode'](_0x2b4115,_0x5ddbc3){const _0x5c93ea=_0xca568b;var _0x2b4d14;_0x5ddbc3?this[_0x5c93ea(0x341)][_0x5c93ea(0x210)](_0x2b4115,!0x0):this['_chartElementEditMode']['delete'](_0x2b4115),(_0x2b4d14=this[_0x5c93ea(0x40d)]['get'](_0x2b4115))==null||_0x2b4d14['setElementEditMode'](_0x5ddbc3);}async[_0xca568b(0x42c)](_0x199eb4,_0x31af71){const _0xf6e820=_0xca568b;var _0x17c26b;let _0x2e7b60=this['_lastRenderInputMap']['get'](_0x199eb4),_0x828201=(_0x17c26b=this[_0xf6e820(0x40f)][_0xf6e820(0x35a)](_0x199eb4))==null?void 0x0:_0x17c26b['rect'];if(_0x2e7b60&&_0x828201)return(await this['_renderModelManager'][_0xf6e820(0x42c)]({'chartId':_0x199eb4,'config':_0x2e7b60[_0xf6e820(0x3cc)],'style':_0x2e7b60[_0xf6e820(0x26b)],'width':_0x828201[_0xf6e820(0x285)],'height':_0x828201['height']},_0x31af71))['dataUrl'];if((_0x31af71==null?void 0x0:_0x31af71[_0xf6e820(0x23f)])===_0x3459c1[_0xf6e820(0x1bd)])return;let _0x40aa99=this[_0xf6e820(0x1b4)](_0x199eb4);return _0x40aa99?_0x1ee32c(_0x40aa99):void 0x0;}['on'](_0x3db467,_0xf6ce51,_0x2e2add){const _0x2a493a=_0xca568b;let _0xa7412d=this[_0x2a493a(0x2f4)]['get'](_0x3db467);_0xa7412d||(_0xa7412d=new Map(),this[_0x2a493a(0x2f4)][_0x2a493a(0x210)](_0x3db467,_0xa7412d));let _0x5f1c0e=_0xa7412d[_0x2a493a(0x29a)](_0xf6ce51);_0x5f1c0e||(_0x5f1c0e=new Set(),_0xa7412d[_0x2a493a(0x210)](_0xf6ce51,_0x5f1c0e)),_0x5f1c0e[_0x2a493a(0x36f)](_0x2e2add);let _0x594f3d=this['_chartInstanceMap']['get'](_0x3db467);return _0x594f3d&&this['_bindChartEventHandler'](_0x3db467,_0x594f3d,_0xf6ce51,_0x2e2add),{'dispose':()=>{const _0x54ddc0=_0x2a493a;var _0x5d2173;(_0x5d2173=this[_0x54ddc0(0x2f4)]['get'](_0x3db467))==null||(_0x5d2173=_0x5d2173[_0x54ddc0(0x29a)](_0xf6ce51))==null||_0x5d2173[_0x54ddc0(0x28b)](_0x2e2add),this[_0x54ddc0(0x3e9)](_0x3db467,_0xf6ce51,_0x2e2add);}};}[_0xca568b(0x1b4)](_0x199216){const _0x527c77=_0xca568b;let _0x6329fb=this[_0x527c77(0x31a)][_0x527c77(0x293)](_0x50b631['UNIVER_SHEET']),_0x4958f7=_0x6329fb==null?void 0x0:_0x6329fb[_0x527c77(0x295)](),_0x1d2b74=_0x6329fb==null?void 0x0:_0x6329fb[_0x527c77(0x360)](),_0x561b1b=_0x4958f7==null?void 0x0:_0x4958f7[_0x527c77(0x1d5)]();if(_0x1d2b74&&_0x561b1b)return this['_chartSnapshotStoreService'][_0x527c77(0x267)]({'unitId':_0x1d2b74,'subUnitId':_0x561b1b,'chartId':_0x199216});}[_0xca568b(0x273)](_0x5b1344,_0x23e41c){const _0x40e5d7=_0xca568b;let _0x2673c8=this[_0x40e5d7(0x2f4)]['get'](_0x5b1344);_0x2673c8&&_0x2673c8[_0x40e5d7(0x308)]((_0x3a95f3,_0x35f1cb)=>{const _0x5b137d=_0x40e5d7;_0x3a95f3[_0x5b137d(0x308)](_0x4f6d83=>this[_0x5b137d(0x27c)](_0x5b1344,_0x23e41c,_0x35f1cb,_0x4f6d83));});}[_0xca568b(0x27c)](_0x4c30d,_0x201c4e,_0x477780,_0x3a540b){const _0x133151=_0xca568b;let _0x1e8ff0=this['_chartEventSubscriptions']['get'](_0x4c30d);_0x1e8ff0||(_0x1e8ff0=new Map(),this['_chartEventSubscriptions'][_0x133151(0x210)](_0x4c30d,_0x1e8ff0));let _0x3425f7=_0x1e8ff0['get'](_0x477780);_0x3425f7||(_0x3425f7=new Map(),_0x1e8ff0['set'](_0x477780,_0x3425f7)),!_0x3425f7[_0x133151(0x3e1)](_0x3a540b)&&_0x3425f7[_0x133151(0x210)](_0x3a540b,_0x201c4e['on'](_0x477780,_0x3a540b));}[_0xca568b(0x3e9)](_0x223e0a,_0x2ca24a,_0x2263d6){const _0x2c1b93=_0xca568b;var _0x26839c,_0x3bc2ca;let _0x4faba8=(_0x26839c=this[_0x2c1b93(0x32c)][_0x2c1b93(0x29a)](_0x223e0a))==null?void 0x0:_0x26839c[_0x2c1b93(0x29a)](_0x2ca24a);_0x4faba8==null||(_0x3bc2ca=_0x4faba8['get'](_0x2263d6))==null||_0x3bc2ca[_0x2c1b93(0x406)](),_0x4faba8==null||_0x4faba8['delete'](_0x2263d6);}[_0xca568b(0x434)](_0x3ecf43){const _0x364c3e=_0xca568b;let _0xc9e5d1=this[_0x364c3e(0x32c)]['get'](_0x3ecf43);_0xc9e5d1==null||_0xc9e5d1[_0x364c3e(0x308)](_0x1eb4ed=>{const _0xbe3dec=_0x364c3e;_0x1eb4ed[_0xbe3dec(0x308)](_0x4c8b09=>_0x4c8b09[_0xbe3dec(0x406)]()),_0x1eb4ed[_0xbe3dec(0x2a4)]();}),this[_0x364c3e(0x32c)][_0x364c3e(0x28b)](_0x3ecf43);}[_0xca568b(0x1b6)](_0x28704f,_0x120b66){const _0x940a61=_0xca568b;return Si(_0x28704f,_0x120b66,this[_0x940a61(0x374)]);}['checkChartCanRender'](_0x51f45c){const _0x280ffa=_0xca568b;return this[_0x280ffa(0x21b)](_0x51f45c)==null;}[_0xca568b(0x21b)](_0x2909b9){const _0x315361=_0xca568b;var _0x6492d0;let _0x4c0fa9=this[_0x315361(0x40f)][_0x315361(0x35a)](_0x2909b9);if(!_0x4c0fa9)return _0x315361(0x1fb);let {subUnitId:_0xd2f899}=_0x4c0fa9,_0x6b0022=(_0x6492d0=this['_univerInstanceService'][_0x315361(0x293)](_0x50b631[_0x315361(0x2f0)]))==null?void 0x0:_0x6492d0[_0x315361(0x295)]();if(!_0x6b0022)return'missing-active-sheet';if(_0x6b0022[_0x315361(0x1d5)]()!==_0xd2f899)return _0x315361(0x266);}async[_0xca568b(0x23d)](_0x34d39f,_0x247a36,_0x29bd36,_0x313d94={}){const _0x126ef2=_0xca568b;let _0x54321e=this[_0x126ef2(0x234)]['getRenderModel'](_0x5bf36d);if(!_0x54321e)return;let _0x114d98=this[_0x126ef2(0x203)][_0x126ef2(0x29a)](_0x34d39f);if(this['_lastRenderInputMap'][_0x126ef2(0x210)](_0x34d39f,{'config':_0x247a36,'style':_0x29bd36}),this['_getChartRenderSkipReason'](_0x34d39f))return;let {canAnimate:_0x2580ce,renderMode:_0x533e3d,shouldStartTransientAnimation:_0x5cc8ac,transientAnimationActive:_0x531fc7}=this[_0x126ef2(0x1e1)](_0x34d39f,_0x114d98!=null,_0x313d94[_0x126ef2(0x371)]===!0x0);if(_0x533e3d===_0x13effc[_0x126ef2(0x224)])this[_0x126ef2(0x454)](_0x34d39f);else{var _0x535975;this['_chartHostProvider']['invalidateSnapshot'](_0x34d39f),((_0x535975=this['_chartModelService'][_0x126ef2(0x242)])==null?void 0x0:_0x535975['id'])===_0x34d39f&&this[_0x126ef2(0x1c4)](_0x34d39f);}let _0x563e30=_0x533e3d===_0x13effc['Image']?_0x13effc['Image']:_0x13effc[_0x126ef2(0x237)],_0x3df36f=await this['_chartHostProvider'][_0x126ef2(0x431)](_0x34d39f,_0x563e30);if(!_0x3df36f){_0x5cc8ac&&this[_0x126ef2(0x39c)](_0x34d39f);return;}this[_0x126ef2(0x26a)]['setDataUpdateAnimation'](_0x34d39f,_0x531fc7?_0x3ec9cf:null);let _0x1f57ab=this['_getOrCreateChartRenderInstance'](_0x34d39f,_0x563e30,_0x54321e);_0x1f57ab['bind'](_0x3df36f);try{let _0xa51e1a={'chartId':_0x34d39f,'config':_0x247a36,'style':_0x29bd36};_0x2580ce&&_0x114d98&&_0x1f57ab[_0x126ef2(0x40c)]?await _0x1f57ab['renderTransition']({'chartId':_0x34d39f,'config':_0x114d98[_0x126ef2(0x3cc)],'style':_0x114d98[_0x126ef2(0x26b)]},_0xa51e1a,{'duration':_0x3ec9cf}):await _0x1f57ab[_0x126ef2(0x23d)](_0xa51e1a),await this[_0x126ef2(0x37c)](_0x34d39f,_0x533e3d,_0x1f57ab),_0x2580ce&&_0x531fc7&&this[_0x126ef2(0x29e)](_0x34d39f);}catch(_0x23c789){if(_0x5cc8ac&&this['_deactivateDataUpdateAnimation'](_0x34d39f),_0x533e3d!==_0x13effc[_0x126ef2(0x224)])throw _0x23c789;}}async[_0xca568b(0x37c)](_0x16ae5c,_0x30bde9,_0x2d9c8f){const _0x5200c1=_0xca568b;var _0x4643fd;if(_0x30bde9!==_0x13effc['Dom']||((_0x4643fd=this[_0x5200c1(0x3f0)][_0x5200c1(0x242)])==null?void 0x0:_0x4643fd['id'])!==_0x16ae5c)return;let _0x3d942e=await this[_0x5200c1(0x26a)][_0x5200c1(0x431)](_0x16ae5c,_0x13effc[_0x5200c1(0x224)]);if(!_0x3d942e)return;let _0x28e1a6=_0x3d942e[_0x5200c1(0x399)]();try{let _0x466158=await _0x2d9c8f['exportImg']();_0x466158&&_0x3d942e['commitSnapshot']({'type':_0x44200d[_0x5200c1(0x3b0)],'url':_0x466158},_0x28e1a6)&&_0x3d942e[_0x5200c1(0x232)]();}catch{}}['_prepareDataUpdateRender'](_0x368203,_0x2c142d,_0x3218fc){const _0x56fa4f=_0xca568b;let _0x174f47=this['_resolveChartRenderMode'](_0x368203),_0x3ca3c8=_0x174f47===_0x13effc[_0x56fa4f(0x237)]&&_0x3218fc&&_0x2c142d&&this['_canAnimateDataUpdate'](_0x368203),_0xf9f03=this['_dataUpdateAnimationChartIds'][_0x56fa4f(0x3e1)](_0x368203);return{'canAnimate':_0x3ca3c8,'renderMode':_0xf9f03?_0x13effc['Dom']:_0x174f47,'shouldStartTransientAnimation':!0x1,'transientAnimationActive':_0xf9f03};}[_0xca568b(0x262)](_0x3b385c){const _0x210a2e=_0xca568b;var _0x4e6d9d,_0x3b755b,_0x567ca1,_0x2570e1;if(typeof document>'u'||typeof window>'u'||document[_0x210a2e(0x202)]===_0x210a2e(0x315)||(_0x4e6d9d=(_0x3b755b=window)['matchMedia'])!=null&&(_0x4e6d9d=_0x4e6d9d[_0x210a2e(0x2b9)](_0x3b755b,_0x210a2e(0x44e)))!=null&&_0x4e6d9d[_0x210a2e(0x362)]||(_0x567ca1=(_0x2570e1=window)[_0x210a2e(0x24f)])!=null&&(_0x567ca1=_0x567ca1[_0x210a2e(0x2b9)](_0x2570e1,_0x210a2e(0x419)))!=null&&_0x567ca1[_0x210a2e(0x362)])return!0x1;let _0xac187=this['_chartHostProvider'][_0x210a2e(0x1da)](_0x3b385c);return _0xac187!=null&&_0xac187['width']>0x0&&_0xac187[_0x210a2e(0x3ce)]>0x0&&_0xac187[_0x210a2e(0x334)]>0x0&&_0xac187['bottom']>0x0&&_0xac187[_0x210a2e(0x2c3)]<window[_0x210a2e(0x251)]&&_0xac187[_0x210a2e(0x45a)]<window['innerHeight'];}[_0xca568b(0x2d5)](_0x59b6c4){const _0x3e3f2a=_0xca568b;let _0x2ab144=this[_0x3e3f2a(0x433)]['get'](_0x59b6c4);_0x2ab144&&(clearTimeout(_0x2ab144),this[_0x3e3f2a(0x433)]['delete'](_0x59b6c4)),this[_0x3e3f2a(0x280)][_0x3e3f2a(0x36f)](_0x59b6c4),this['_chartHostProvider'][_0x3e3f2a(0x269)](_0x59b6c4,_0x3ec9cf);}[_0xca568b(0x29e)](_0xdef0d2){const _0x47d0f3=_0xca568b;let _0x5d7652=this[_0x47d0f3(0x433)]['get'](_0xdef0d2);_0x5d7652&&clearTimeout(_0x5d7652);let _0x31dca7=setTimeout(()=>{const _0x491b70=_0x47d0f3;this[_0x491b70(0x433)][_0x491b70(0x28b)](_0xdef0d2),this['_dataUpdateAnimationChartIds']['delete'](_0xdef0d2)&&(this[_0x491b70(0x26a)][_0x491b70(0x269)](_0xdef0d2,null),this[_0x491b70(0x454)](_0xdef0d2),this['_rerenderLatest'](_0xdef0d2));},_0x3ec9cf);this[_0x47d0f3(0x433)][_0x47d0f3(0x210)](_0xdef0d2,_0x31dca7);}[_0xca568b(0x39c)](_0x31dea5){const _0x58c09d=_0xca568b;let _0x474f1c=this[_0x58c09d(0x433)][_0x58c09d(0x29a)](_0x31dea5);_0x474f1c&&(clearTimeout(_0x474f1c),this[_0x58c09d(0x433)][_0x58c09d(0x28b)](_0x31dea5)),this[_0x58c09d(0x280)][_0x58c09d(0x28b)](_0x31dea5),this['_chartHostProvider'][_0x58c09d(0x269)](_0x31dea5,null);}async[_0xca568b(0x1d3)](_0x6861ef,_0x83d933,_0x6206c9){const _0x58f09b=_0xca568b;let _0x4783db=this[_0x58f09b(0x1a2)]['getDrawingData'](_0x6861ef,_0x83d933),_0x2eaf50=this['_drawingManagerService'][_0x58f09b(0x3c7)](_0x6861ef,_0x83d933),_0x46de29=Object[_0x58f09b(0x377)](_0x4783db??{})['filter'](_0x3895e5=>_0x3895e5[_0x58f09b(0x2ac)]===_0x1dc4b2[_0x58f09b(0x1b7)]&&_0x3895e5[_0x58f09b(0x315)]!==!0x0);await Promise[_0x58f09b(0x25b)](_0x46de29[_0x58f09b(0x226)](async _0x61a80c=>{const _0x39e337=_0x58f09b;let _0x8aa874=await this[_0x39e337(0x1d0)](_0x61a80c,_0x2eaf50);_0x8aa874&&(_0x6206c9[_0x39e337(0x373)](_0x8aa874,_0x16b88b),_0x61a80c[_0x39e337(0x459)]&&_0x36767e({'drawingId':_0x61a80c[_0x39e337(0x459)],'unitId':_0x6861ef,'subUnitId':_0x83d933},_0x8aa874,_0x6206c9,this[_0x39e337(0x1a2)]));}));}async[_0xca568b(0x1d0)](_0x20ce2a,_0x86b019){const _0x439d46=_0xca568b;let _0xa445d4=this[_0x439d46(0x3f0)][_0x439d46(0x284)](_0x20ce2a['drawingId']),_0x9cad99=this[_0x439d46(0x234)][_0x439d46(0x327)](_0x5bf36d),_0x11e0c0=_0x20ce2a['transform'],_0xa1d9e0=_0xa445d4==null?void 0x0:_0xa445d4['config'];if(!_0xa445d4||!_0x9cad99||!_0x11e0c0||!_0xa1d9e0||_0x11e0c0[_0x439d46(0x285)]==null||_0x11e0c0[_0x439d46(0x3ce)]==null)return null;let _0x2708e5=new xi(_0x20ce2a[_0x439d46(0x22a)],{'width':_0x11e0c0[_0x439d46(0x285)],'height':_0x11e0c0[_0x439d46(0x3ce)]}),_0x131362=_0x9cad99[_0x439d46(0x330)](_0x13effc[_0x439d46(0x224)],this[_0x439d46(0x456)]());_0x131362[_0x439d46(0x2a9)](_0x2708e5);let _0x5543a7;try{await _0x131362[_0x439d46(0x23d)]({'chartId':_0x20ce2a['drawingId'],'config':_0xa1d9e0,'style':this[_0x439d46(0x1b6)](_0xa445d4,this[_0x439d46(0x375)][_0x439d46(0x321)]())});}catch(_0x207c20){console['error'](_0x439d46(0x1b0),_0x207c20);}finally{_0x5543a7=_0x2708e5['takeSnapshot'](),_0x131362[_0x439d46(0x406)](),_0x2708e5[_0x439d46(0x406)]();}let _0x6cbb19=this[_0x439d46(0x26e)][_0x439d46(0x267)]({'unitId':_0x20ce2a[_0x439d46(0x2f9)],'subUnitId':_0x20ce2a[_0x439d46(0x254)],'chartId':_0x20ce2a[_0x439d46(0x22a)]}),_0x314695=_0x5543a7??_0x6cbb19;if(!_0x314695)return null;let _0x2d271d=_0x86b019['indexOf'](_0x20ce2a['drawingId']);return new si(_0x3e2347(_0x20ce2a),{..._0x11e0c0,..._0x512cc9,..._i(_0x2708e5[_0x439d46(0x26b)]),'visible':!0x0,'zIndex':_0x2d271d===-0x1?Math[_0x439d46(0x3ea)](_0x86b019[_0x439d46(0x3c2)]-0x1,0x0):_0x2d271d},()=>_0x314695,void 0x0,_0x5543a7?()=>G(_0x5543a7):void 0x0);}[_0xca568b(0x263)](_0x4f5381,_0xb0b5d1,_0x1644a4){const _0x2f5f32=_0xca568b;let _0x5e50ba=this['_chartInstanceMap'][_0x2f5f32(0x29a)](_0x4f5381);if((_0x5e50ba==null?void 0x0:_0x5e50ba['mode'])===_0xb0b5d1)return _0x5e50ba;_0x5e50ba&&(this[_0x2f5f32(0x434)](_0x4f5381),_0x5e50ba[_0x2f5f32(0x406)](),this[_0x2f5f32(0x40d)][_0x2f5f32(0x28b)](_0x4f5381));let _0x50a7b1=_0x1644a4[_0x2f5f32(0x330)](_0xb0b5d1,this[_0x2f5f32(0x456)]());return this[_0x2f5f32(0x40d)][_0x2f5f32(0x210)](_0x4f5381,_0x50a7b1),_0x50a7b1[_0x2f5f32(0x253)](this[_0x2f5f32(0x341)]['get'](_0x4f5381)===!0x0),this[_0x2f5f32(0x273)](_0x4f5381,_0x50a7b1),_0x50a7b1;}[_0xca568b(0x456)](){const _0x32eb2e=_0xca568b;return{'resolveHostStyle':({style:_0x8b5954})=>_0x3b0e43({'style':_0x8b5954,'getRenderColor':_0x199012=>this[_0x32eb2e(0x35b)][_0x32eb2e(0x44d)](_0x199012)}),'resolveRenderBackgroundColor':({style:_0x5e28b8})=>this[_0x32eb2e(0x35b)][_0x32eb2e(0x44d)](_0x490695(_0x5e28b8))};}[_0xca568b(0x3ac)](_0x1807b3){const _0xda9e5d=_0xca568b;var _0x48d8db,_0x55624e,_0x4b2bbd;(_0x48d8db=this[_0xda9e5d(0x435)][_0xda9e5d(0x29a)](_0x1807b3))==null||_0x48d8db['dispose'](),this[_0xda9e5d(0x435)][_0xda9e5d(0x28b)](_0x1807b3),(_0x55624e=this['_renderDebounceMap'][_0xda9e5d(0x29a)](_0x1807b3))==null||_0x55624e[_0xda9e5d(0x1db)](),this['_renderDebounceMap']['delete'](_0x1807b3),(_0x4b2bbd=this['_debounceHandleMap'][_0xda9e5d(0x29a)](_0x1807b3))==null||_0x4b2bbd[_0xda9e5d(0x1db)](),this[_0xda9e5d(0x354)][_0xda9e5d(0x28b)](_0x1807b3);}[_0xca568b(0x31b)](){const _0x25731a=_0xca568b;this[_0x25731a(0x276)]['forEach'](_0x31d38c=>_0x31d38c['cancel']()),this['_renderDebounceMap'][_0x25731a(0x2a4)](),this[_0x25731a(0x354)][_0x25731a(0x308)](_0x5d62d1=>_0x5d62d1['cancel']()),this[_0x25731a(0x354)]['clear']();}[_0xca568b(0x406)](){const _0x1fe5a3=_0xca568b;this[_0x1fe5a3(0x435)][_0x1fe5a3(0x308)](_0x1576c8=>_0x1576c8[_0x1fe5a3(0x406)]()),this[_0x1fe5a3(0x435)][_0x1fe5a3(0x2a4)](),this[_0x1fe5a3(0x433)][_0x1fe5a3(0x308)](_0x10681d=>clearTimeout(_0x10681d)),this['_dataUpdateAnimationTimers'][_0x1fe5a3(0x2a4)](),this['_dataUpdateAnimationChartIds'][_0x1fe5a3(0x2a4)](),Array[_0x1fe5a3(0x216)](this[_0x1fe5a3(0x40d)][_0x1fe5a3(0x2a3)]())['forEach'](_0x4988d0=>this[_0x1fe5a3(0x445)](_0x4988d0)),this[_0x1fe5a3(0x341)][_0x1fe5a3(0x2a4)](),this[_0x1fe5a3(0x31b)](),this[_0x1fe5a3(0x203)][_0x1fe5a3(0x2a4)](),this['_activeChartId']=null,this[_0x1fe5a3(0x261)]=null,super[_0x1fe5a3(0x406)]();}};J=q([K(0x0,yi),K(0x1,_0x2b7ebf(_0x48f4a3)),K(0x2,_0x2b7ebf(_0x781fb3)),K(0x3,_0x23c247),K(0x4,_0x46e33a),K(0x5,_0x2b7ebf(_0x52b878)),K(0x6,_0x2b7ebf(_0x3ad976)),K(0x7,_0x2b7ebf(_0x34eb6c)),K(0x8,_0x2b7ebf(_0x5c00e3)),K(0x9,_0x2b7ebf(_0xa588aa)),K(0xa,_0x116807),K(0xb,_0x2b7ebf(di)),K(0xc,_0x5d8531)],J);const Y=_0x2d4252('sheets-chart.ui.service');let Ci=class extends _0x11b0f5{constructor(_0x44640f,_0x1e7613,_0x485259,_0x1910ce,_0x2eda35){const _0x2ba8cb=_0xca568b;super(_0x2eda35),this[_0x2ba8cb(0x3f0)]=_0x44640f,this[_0x2ba8cb(0x1ac)]=_0x1e7613,this[_0x2ba8cb(0x214)]=_0x485259,this['_univerInstanceService']=_0x1910ce,W(this,_0x2ba8cb(0x451),!0x1),W(this,'_chartEditorOpen$',new _0x16eb2c(!0x1)),W(this,_0x2ba8cb(0x1a6),new _0x16eb2c(null)),W(this,'chartEditorOpen$',this[_0x2ba8cb(0x3b1)][_0x2ba8cb(0x3a8)]()),W(this,'panelRoute$',this[_0x2ba8cb(0x1a6)][_0x2ba8cb(0x3a8)]());}get[_0xca568b(0x40e)](){const _0x402b3d=_0xca568b;return this[_0x402b3d(0x3f0)][_0x402b3d(0x242)]??null;}get[_0xca568b(0x3c6)](){const _0x422dd4=_0xca568b;return this[_0x422dd4(0x3b1)][_0x422dd4(0x2bc)]();}get[_0xca568b(0x235)](){const _0x2f8c48=_0xca568b;return this[_0x2f8c48(0x451)];}[_0xca568b(0x39a)](_0x18e79c){const _0x34d5be=_0xca568b;this[_0x34d5be(0x451)]=_0x18e79c;}['setChartEditorOpen'](_0x17a274){const _0x5af455=_0xca568b;this[_0x5af455(0x3b1)][_0x5af455(0x2bc)]()!==_0x17a274&&this[_0x5af455(0x3b1)][_0x5af455(0x1b5)](_0x17a274);}[_0xca568b(0x1de)](_0x281407){const _0x3ebb41=_0xca568b;var _0x21150a;return this[_0x3ebb41(0x3c6)]&&((_0x21150a=this[_0x3ebb41(0x3f0)]['activeChartModel'])==null?void 0x0:_0x21150a['id'])===_0x281407;}[_0xca568b(0x3e6)](_0x4258cb,_0xb1c03d){const _0x1fb857=_0xca568b;this[_0x1fb857(0x1a6)]['next']({'chartId':_0x4258cb,'route':_0xb1c03d});}[_0xca568b(0x1f9)](){const _0x409199=_0xca568b;this['_panelRoute$'][_0x409199(0x1b5)](null);}[_0xca568b(0x1f3)](_0xafeca1){const _0x32ee0d=_0xca568b;let _0x4dcbcd=this[_0x32ee0d(0x3f0)][_0x32ee0d(0x242)];_0x4dcbcd&&this[_0x32ee0d(0x42f)]({'chartModelId':_0x4dcbcd['id'],'range':_0xafeca1});}[_0xca568b(0x2ab)](_0x333134){const _0x4ec7ea=_0xca568b;let _0x3a80a5=this[_0x4ec7ea(0x3f0)][_0x4ec7ea(0x242)];if(!_0x3a80a5)return;let _0x5d9c78=this[_0x4ec7ea(0x1ac)]['getChartSourceSpec'](_0x3a80a5['id']);if(!_0x5d9c78||Array[_0x4ec7ea(0x363)](_0x5d9c78))return;let _0x5a68c3={..._0x5d9c78,'isRowDirection':_0x333134===_0x389e65[_0x4ec7ea(0x31e)]};this['_executeChartUpdateSourceConfig']({'chartModelId':_0x3a80a5['id'],'range':_0x5a68c3});}[_0xca568b(0x277)](_0x1514ec){const _0x3a95b1=_0xca568b;var _0x255921;this[_0x3a95b1(0x214)][_0x3a95b1(0x304)](_0x180bba['id'],{..._0x1514ec,'unitId':((_0x255921=this['_univerInstanceService'][_0x3a95b1(0x425)]())==null?void 0x0:_0x255921[_0x3a95b1(0x360)]())??''});}['_executeChartUpdateSourceConfig'](_0x8d4f0c){const _0x2fd4bc=_0xca568b;var _0x449f43;this[_0x2fd4bc(0x214)][_0x2fd4bc(0x304)](_0x2edcc4['id'],{..._0x8d4f0c,'unitId':((_0x449f43=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x449f43['getUnitId']())??''});}[_0xca568b(0x406)](){const _0x3a5c54=_0xca568b;this['_chartEditorOpen$'][_0x3a5c54(0x388)](),this[_0x3a5c54(0x1a6)]['complete'](),super[_0x3a5c54(0x406)]();}};Ci=q([K(0x0,_0x2b7ebf(_0x781fb3)),K(0x1,_0x2b7ebf(_0xb7f357)),K(0x2,_0x5a9a36),K(0x3,_0x46e33a),K(0x4,_0x2b7ebf(_0x10f33b))],Ci);var wi;const Ti={'axis':{..._0x16ed26,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x175ef0,'heatmap':_0x1d2cd9,'indicatorLine':_0x1dd226,'legend':_0x4d1df9,'lineAndArea':_0x57770f,'pareto':_0x23c6ff,'pie':_0x5a4fba,'relation':{..._0x1c2f0d,'useValueAsSymbolSize':!0x0},'radar':_0x42178d,'series':{..._0x820d3d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((wi=_0x5aa36e[_0xca568b(0x1e2)])==null?void 0x0:wi['rightYAxis'])??!0x1}},'style':_0xf3605b,'titles':_0x2946a4,'trendline':_0x37aaa1,'waterfall':{..._0x251a93,'useSubtotal':!0x0},'waterfallStyle':_0xba125f,'wordCloud':_0x4f9d89},Ei=_0x1167cc=>_0x1167cc['getCurrentUnitOfType'](_0x50b631[_0xca568b(0x2f0)])[_0xca568b(0x360)](),Di=_0x204a5e=>{const _0x33366b=_0xca568b;var _0x2325bb;return(_0x2325bb=_0x204a5e[_0x33366b(0x293)](_0x50b631['UNIVER_SHEET'])[_0x33366b(0x295)]())==null?void 0x0:_0x2325bb[_0x33366b(0x1d5)]();},Oi=[_0xd24882[_0xca568b(0x2fe)],_0xd24882[_0xca568b(0x1c8)],_0xd24882[_0xca568b(0x2a8)],_0xd24882[_0xca568b(0x259)],_0xd24882[_0xca568b(0x292)],_0xd24882[_0xca568b(0x2e5)],_0xd24882[_0xca568b(0x212)],_0xd24882[_0xca568b(0x1c9)],_0xd24882[_0xca568b(0x335)],_0xd24882[_0xca568b(0x3fc)],_0xd24882[_0xca568b(0x2c9)],_0xd24882[_0xca568b(0x2a7)],_0xd24882[_0xca568b(0x422)],_0xd24882['Gauge'],_0xd24882[_0xca568b(0x30b)]];function ki(){const _0x35f5a2=_0xca568b;let _0x2d0aff=_0x3cdaa0(),_0x31f72e=Oi[_0x35f5a2(0x23a)](_0x383abc=>!_0x3ede69[_0x35f5a2(0x45c)](_0x2d0aff,_0x383abc));return _0x2897c9(_0x23b483,{'visible':_0x31f72e});}const Ai=_0x2c3a6b=>{const _0x3324b9=_0xca568b;var _0x4f8f71;let _0x241d8e=_0x2b41d0(Y),_0x12236a=_0x2b41d0(_0x781fb3),_0x5552d0=_0x2b41d0(_0x3ad976),_0x1c23ae=_0x2b41d0(_0x34eb6c),_0x4f3fda=_0x14bcc6(_0x1c23ae),_0x4327c0=_0x32aaef(()=>{const _0x3e36ce=_0x28a2;let _0x510287=Wr(Hr[_0x3e36ce(0x42d)](),_0x4f3fda);return _0x3e2b77(_0x510287[_0x3e36ce(0x226)](_0x342956=>({'id':_0x342956['id'],'label':_0x5552d0['t'](_0x3e36ce(0x43c)+_0x342956['labelId']),'pieSecondaryPlotType':_0x342956[_0x3e36ce(0x344)],'value':_0x342956[_0x3e36ce(0x2e3)]})));},[_0x4f3fda,_0x5552d0]),_0xba3faa=_0x4561a1(_0x12236a[_0x3324b9(0x2b2)],_0x12236a[_0x3324b9(0x242)]),_0x1868a1=_0x4561a1(_0xba3faa==null?void 0x0:_0xba3faa[_0x3324b9(0x1ee)],_0xba3faa==null?void 0x0:_0xba3faa[_0x3324b9(0x28d)]),_0x2e6862=_0x4561a1(_0xba3faa==null?void 0x0:_0xba3faa[_0x3324b9(0x1ec)],_0xba3faa==null?void 0x0:_0xba3faa['dataSource']),_0x577278=_0x4561a1(_0x2e6862==null?void 0x0:_0x2e6862[_0x3324b9(0x33c)],_0x2e6862==null?void 0x0:_0x2e6862[_0x3324b9(0x41f)]()),_0x28c423=Array[_0x3324b9(0x363)](_0x577278),_0x3f37f1=_0x577278&&!_0x28c423&&_0x577278[_0x3324b9(0x1d2)]?_0x389e65[_0x3324b9(0x31e)]:_0x389e65[_0x3324b9(0x38c)],_0x34c4d4=_0x28c423?(_0x4f8f71=_0x577278[0x0])==null?void 0x0:_0x4f8f71[_0x3324b9(0x2e2)]:_0x577278==null?void 0x0:_0x577278[_0x3324b9(0x412)];return _0x5a92d2(_0x3324b9(0x298),{'className':_0x3324b9(0x2b5),'children':[_0x2897c9(_0x42165a,{'options':_0x4327c0}),_0x2897c9(_0x5a3ad4,{}),_0x2897c9(_0x3ef36c,{}),_0x2897c9(ki,{}),_0x2897c9(_0x3a8440,{}),_0x2897c9(ji,{'dataRange':_0x577278,'primaryRange':_0x34c4d4}),_0x2897c9(_0x308311,{'categoryToggleLabel':_0x5552d0['t'](_0x3324b9(0x349),_0x3f37f1===_0x389e65[_0x3324b9(0x31e)]?_0x3f37f1+'\x20'+(((_0x34c4d4==null?void 0x0:_0x34c4d4[_0x3324b9(0x2e2)][_0x3324b9(0x44a)])??0x0)+0x1):_0x3f37f1+'\x20'+_0xa3323e((_0x34c4d4==null?void 0x0:_0x34c4d4[_0x3324b9(0x2e2)][_0x3324b9(0x29d)])??0x0)),'orientationControl':_0x28c423?void 0x0:_0x2897c9(_0x47a323,{'size':_0x3324b9(0x461),'onClick':()=>_0x241d8e[_0x3324b9(0x2ab)](_0x3f37f1===_0x389e65[_0x3324b9(0x31e)]?_0x389e65[_0x3324b9(0x38c)]:_0x389e65[_0x3324b9(0x31e)]),'children':_0x5552d0['t'](_0x3324b9(0x2f8))})}),_0x2897c9(_0x2e34e5,{}),_0x2897c9(_0x5d390c,{'defaultValues':_0x2c3a6b[_0x3324b9(0x345)][_0x3324b9(0x205)]}),_0x2897c9(_0x52ebba,{'checked':(_0x1868a1==null?void 0x0:_0x1868a1[_0x3324b9(0x3e3)])===!0x1,'disabled':!_0xba3faa,'onChange':_0x145cce=>{_0xba3faa&&_0x241d8e['executeChartUpdateConfig']({'chartModelId':_0xba3faa['id'],'context':{'plotVisibleOnly':!_0x145cce}});},'children':_0x5552d0['t']('sheets-chart-ui.common.showHiddenData')})]});};function ji(_0x4fa984){const _0x273b88=_0xca568b;let {dataRange:_0x559030,primaryRange:_0x38a7e2}=_0x4fa984,_0x5bd382=_0x2b41d0(Y),_0xcc30ce=_0x2b41d0(_0x3ad976),_0x5f3525=_0x2b41d0(_0x46e33a),_0x4e37c8=_0x2b41d0(_0x2b586f),[_0x46f5b6,_0x3a2787]=_0x758b4d(!0x1),[_0x4804e6,_0x30a3a0]=_0x758b4d(!0x1),[_0x4e053c,_0x43730b]=_0x758b4d(),_0x2c3f7d=Ei(_0x5f3525),_0x596bc5=Di(_0x5f3525),_0x517465=_0x559030?Br(_0x559030,_0x5f3525):'',_0x5b52dc=_0x5410e6(_0x517465),_0x4d6b81=_0x5410e6(void 0x0),_0xa38849=_0x5410e6(null);_0x397741(()=>{const _0x79fe99=_0x28a2;_0x5bd382['setRangeSelectMode'](_0x46f5b6),_0x4e37c8[_0x79fe99(0x31f)](_0x5ccab9,_0x46f5b6);},[_0x4e37c8,_0x46f5b6,_0x5bd382]),_0x397741(()=>()=>{const _0x42a40b=_0x28a2;_0x5bd382[_0x42a40b(0x39a)](!0x1),_0x4e37c8[_0x42a40b(0x31f)](_0x5ccab9,!0x1);},[_0x4e37c8,_0x5bd382]);let _0x32799f=_0x1237c0(_0x563ef6=>{const _0x444df5=_0x28a2;var _0x3dc64a;if(Br(_0x559030,_0x5f3525)===_0x563ef6)return _0x43730b(void 0x0),!0x0;let _0x171436=_0x563ef6[_0x444df5(0x20e)](_0x3427c4[_0x444df5(0x322)]);if(!_0x563ef6[_0x444df5(0x23c)]()||_0x171436[_0x444df5(0x3c2)]!==0x1||!((_0x3dc64a=_0xa38849['current'])!=null&&_0x3dc64a[_0x444df5(0x430)]()))return _0x43730b(_0xcc30ce['t'](_0x444df5(0x3e4))),!0x1;let {unitId:_0x24b1c6,sheetName:_0xbb40a3,range:_0x2cc2f1}=_0x1b0b9d(_0x171436[0x0]),_0x19f0f4=_0x24b1c6||_0x2c3f7d,_0x783448=_0x5f3525['getUnit'](_0x19f0f4),_0x27f7f1=(_0x38a7e2==null?void 0x0:_0x38a7e2[_0x444df5(0x2f9)])===_0x19f0f4?_0x38a7e2[_0x444df5(0x254)]:_0x596bc5,_0x3873de=_0xbb40a3?_0x783448==null?void 0x0:_0x783448[_0x444df5(0x357)](_0xbb40a3):_0x783448==null?void 0x0:_0x783448['getSheetBySheetId'](_0x27f7f1??'');return!_0x783448||!_0x3873de||!_0x55ef7f(_0x2cc2f1,_0x3873de)?(_0x43730b(_0xcc30ce['t'](_0x444df5(0x3e4))),!0x1):(_0x43730b(void 0x0),_0x5bd382[_0x444df5(0x1f3)]({'rangeInfo':{'range':_0x2cc2f1,'unitId':_0x19f0f4,'subUnitId':_0x3873de[_0x444df5(0x1d5)]()}}),!0x0);},[_0x559030,_0xcc30ce,_0x38a7e2,_0x5bd382,_0x596bc5,_0x2c3f7d,_0x5f3525]),_0x5774bb=_0x32aaef(()=>({'keyCodes':[{'keyCode':_0x5744b4[_0x273b88(0x28e)],'nativeTextEditorBehavior':_0x146e00['OVERRIDE_NATIVE']}],'handler':_0x3f2024=>{const _0x3f0bd1=_0x273b88;_0x3f2024===_0x5744b4['ENTER']&&_0x32799f(_0x5b52dc[_0x3f0bd1(0x3f6)])&&(_0x4d6b81[_0x3f0bd1(0x3f6)]=_0x5b52dc[_0x3f0bd1(0x3f6)]);}}),[_0x32799f]);return _0x2897c9(_0x273b88(0x298),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':_0x5a92d2(_0x273b88(0x298),{'children':[_0x2897c9(_0x114623,{'title':_0xcc30ce['t'](_0x273b88(0x439))}),_0x2897c9(_0x578873,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x2c3f7d,'subUnitId':_0x596bc5,'initialValue':_0x517465,'keyboardEventConfig':_0x5774bb,'selectorRef':_0xa38849,'onChange':(_0xba4016,_0x996829)=>{const _0x414c1c=_0x273b88;_0x5b52dc[_0x414c1c(0x3f6)]=_0x996829,_0x4804e6&&_0x4d6b81['current']!==_0x996829&&_0x32799f(_0x996829)&&(_0x4d6b81[_0x414c1c(0x3f6)]=_0x996829);},'onFocusChange':(_0x58288a,_0x28ed6c)=>{const _0x4eb1c0=_0x273b88;if(_0x28ed6c!==void 0x0&&(_0x5b52dc[_0x4eb1c0(0x3f6)]=_0x28ed6c),_0x4804e6||_0x3a2787(_0x58288a),_0x58288a)_0x4d6b81[_0x4eb1c0(0x3f6)]=_0x5b52dc[_0x4eb1c0(0x3f6)];else{let _0xfde1cf=_0x4d6b81['current'];_0x4d6b81['current']=void 0x0,_0xfde1cf!==void 0x0&&_0x5b52dc['current']!==_0xfde1cf&&_0x32799f(_0x5b52dc['current']);}},'onRangeSelectorDialogVisibleChange':_0xaf7ea=>{_0x30a3a0(_0xaf7ea),_0x3a2787(_0xaf7ea);}}),_0x4e053c?_0x2897c9(_0x273b88(0x298),{'className':_0x273b88(0x250),'children':_0x4e053c}):null]})});}function X(_0x2a4c4a){const _0x52b20e=_0xca568b;return _0x5a92d2(_0x464020,{'id':_0x2a4c4a['id'],'children':[_0x2897c9(_0x51fc53,{'children':_0x2a4c4a[_0x52b20e(0x248)]}),_0x2897c9(_0x10e497,{'children':_0x2a4c4a[_0x52b20e(0x2b4)]})]});}const Mi=_0x3ec057=>{const _0x12b79a=_0xca568b;let _0xd3c317=_0x2b41d0(_0x3ad976),_0x28821b=_0x2b41d0(Y),_0x5b296e=_0x2b41d0(_0x781fb3),_0x948b55=_0x4561a1(_0x5b296e[_0x12b79a(0x2b2)],_0x5b296e[_0x12b79a(0x242)]),_0x5d6b70=_0x4561a1(_0x28821b[_0x12b79a(0x3fb)],null),_0x8e09c4=_0x5d6b70&&_0x5d6b70[_0x12b79a(0x400)]===(_0x948b55==null?void 0x0:_0x948b55['id'])?_0x5d6b70[_0x12b79a(0x3ae)]:null,_0x2a4134=_0x3cdaa0(),_0xadf9d9=_0x44523d(),[_0x22af60,_0x4aa5d1]=_0x758b4d(null);_0x397741(()=>{const _0x4d4a8c=_0x12b79a;_0x8e09c4!=null&&_0x8e09c4[_0x4d4a8c(0x294)]&&_0x4aa5d1(_0x8e09c4[_0x4d4a8c(0x294)]);},[_0x8e09c4]);let _0x2748d5=_0x3ede69[_0x12b79a(0x45c)](_0x2a4134,_0xd24882[_0x12b79a(0x1e8)]),_0x118c22=_0x2a4134===_0xd24882[_0x12b79a(0x1c8)],_0x258b69=_0x2a4134===_0xd24882['WordCloud'],_0xb3d99e=_0x2a4134===_0xd24882[_0x12b79a(0x292)],_0x23b5ea=_0x3ede69[_0x12b79a(0x45c)](_0x2a4134,_0xd24882[_0x12b79a(0x213)]),_0x5e04b1=_0x2a4134===_0xd24882[_0x12b79a(0x2e5)],_0x404e22=_0x2a4134===_0xd24882[_0x12b79a(0x3c4)],_0x106c54=_0x2a4134===_0xd24882[_0x12b79a(0x244)],_0x57414a=_0x2a4134===_0xd24882[_0x12b79a(0x1c9)],_0x250733,_0x547c55;switch(_0x2a4134){case _0xd24882[_0x12b79a(0x3fc)]:_0x250733=_0x2db269[_0x12b79a(0x3fc)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x333));break;case _0xd24882[_0x12b79a(0x2c9)]:_0x250733=_0x2db269['Histogram'],_0x547c55=_0xd3c317['t'](_0x12b79a(0x3bc));break;case _0xd24882['Treemap']:_0x250733=_0x2db269[_0x12b79a(0x2a7)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x22d));break;case _0xd24882[_0x12b79a(0x422)]:_0x250733=_0x2db269[_0x12b79a(0x422)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x41b));break;case _0xd24882['Gauge']:_0x250733=_0x2db269[_0x12b79a(0x355)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x271));break;case _0xd24882[_0x12b79a(0x30b)]:_0x250733=_0x2db269[_0x12b79a(0x30b)],_0x547c55=_0xd3c317['t'](_0x12b79a(0x432));}let _0x39a450=_0x5c782b(_0x2a4134,_0x59d3bb[_0x12b79a(0x2cc)])&&!_0x23b5ea&&!_0x106c54;return _0x5a92d2(_0x4b3c95,{'value':_0x22af60,'onChange':_0x4aa5d1,'children':[_0x2897c9(X,{'id':_0x2db269['ChartStyle'],'label':_0xd3c317['t'](_0x12b79a(0x1c0)),'children':_0x2897c9(_0x22c00b,{'defaultValues':_0x3ec057[_0x12b79a(0x345)]['style']})}),_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x44c)],'label':_0xd3c317['t'](_0x12b79a(0x2a1)),'children':_0x2897c9(_0x10905c,{'commitMode':_0x12b79a(0x22b),'defaultValues':_0x3ec057['defaultValues']['titles'],'selectedTitleKey':_0x8e09c4==null?void 0x0:_0x8e09c4[_0x12b79a(0x392)]})}),_0x39a450&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x3d1)],'label':_0xd3c317['t'](_0x12b79a(0x3aa)),'children':_0x2897c9(_0xf65fa1,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x241)],'NumberFormatField':_0x2e8e1e,'selectedSeriesId':_0x8e09c4==null?void 0x0:_0x8e09c4[_0x12b79a(0x3ad)]})}),_0x404e22&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x369)],'label':_0xd3c317['t'](_0x12b79a(0x42e)),'children':_0x2897c9(_0x291bbf,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1a7)],'getDefaultBucketName':({seriesName:_0x4ee56f,target:_0x1ac0b5})=>_0x1ac0b5===_0x129870[_0x12b79a(0x2aa)]?_0xd3c317['t']('sheets-chart-ui.waterfall.subtotal'):_0x4ee56f?_0x4ee56f+'-('+_0xd3c317['t'](_0x1ac0b5===_0x129870[_0x12b79a(0x2ca)]?'sheets-chart-ui.waterfall.positive':'sheets-chart-ui.waterfall.negative')+')':'','NumberFormatField':_0x2e8e1e,'selectedSeriesId':_0x8e09c4==null?void 0x0:_0x8e09c4[_0x12b79a(0x3ad)]})}),_0x106c54&&_0x5a92d2(_0x1e5c7c,{'children':[_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x318)],'label':_0xd3c317['t']('sheets-chart-ui.section.paretoBar'),'children':_0x2897c9(_0x2de80d,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x316)],'NumberFormatField':_0x2e8e1e,'showDataPointEditor':!0x0,'target':_0x12b79a(0x2ce)})}),_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x275)],'label':_0xd3c317['t'](_0x12b79a(0x32f)),'children':_0x2897c9(_0x2de80d,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x316)],'NumberFormatField':_0x2e8e1e,'showDataPointEditor':!0x1,'target':_0x12b79a(0x35c)})})]}),_0x2748d5&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x30c)],'label':_0xd3c317['t'](_0x12b79a(0x3f4)),'children':_0x2897c9(_0xd82e6f,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x2cf)],'NumberFormatField':_0x2e8e1e})}),_0x258b69&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2a8)],'label':_0xd3c317['t']('sheets-chart-ui.section.wordCloud'),'children':_0x2897c9(_0x822830,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x36d)]})}),_0x118c22&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x1c8)],'label':_0xd3c317['t'](_0x12b79a(0x397)),'children':_0x2897c9(_0x21a72f,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1fd)]})}),_0xb3d99e&&_0x2897c9(X,{'id':_0x2db269['Funnel'],'label':_0xd3c317['t'](_0x12b79a(0x401)),'children':_0x2897c9(_0xe1359c,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x428)],'gapControl':'select'})}),_0x57414a&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x1c9)],'label':_0xd3c317['t'](_0x12b79a(0x39d)),'children':_0x2897c9(_0x27b74d,{'defaultValues':_0x3ec057['defaultValues'][_0x12b79a(0x243)]})}),_0x5e04b1&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2e5)],'label':_0xd3c317['t']('sheets-chart-ui.section.relation'),'children':_0x2897c9(_0x28a800,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x270)]})}),_0x1128f1(_0x2a4134)&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2be)],'label':_0xd3c317['t'](_0x12b79a(0x1a5)),'children':_0x2897c9(_0x282c08,{'defaultValues':_0x3ec057['defaultValues']['lineAndArea'],'lineStyleControl':_0x12b79a(0x457)})}),_0x5c782b(_0x2a4134,_0x59d3bb[_0x12b79a(0x3e0)])&&_0x2897c9(X,{'id':_0x2db269['Legend'],'label':_0xd3c317['t'](_0x12b79a(0x407)),'children':_0x2897c9(_0x3e358e,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x312)]})}),_0x5c782b(_0x2a4134,_0x59d3bb['Axes'])&&_0x5a92d2(_0x1e5c7c,{'children':[_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x45e)],'label':_0xd3c317['t']('sheets-chart-ui.common.horizontalAxis'),'children':_0x2897c9(_0x21b2fb,{'axis':'x','defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1fc)],'NumberFormatField':_0x2e8e1e})}),_0x2897c9(X,{'id':_0x2db269['VerticalAxis'],'label':_0xd3c317['t']('sheets-chart-ui.common.verticalAxis'),'children':_0x2897c9(_0x21b2fb,{'axis':'y','defaultValues':_0x3ec057['defaultValues'][_0x12b79a(0x1fc)],'NumberFormatField':_0x2e8e1e})}),_0xadf9d9&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x347)],'label':_0xd3c317['t'](_0x12b79a(0x367)),'children':_0x2897c9(_0x21b2fb,{'axis':_0x12b79a(0x1c3),'defaultValues':_0x3ec057[_0x12b79a(0x345)]['axis'],'NumberFormatField':_0x2e8e1e})}),_0x2897c9(X,{'id':_0x2db269['GridlinesAndTicks'],'label':_0xd3c317['t']('sheets-chart-ui.section.gridlinesAndTicks'),'children':_0x2897c9(_0x524836,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x1fc)]})})]}),_0x5c782b(_0x2a4134,_0x59d3bb['IndicatorLine'])&&_0x2897c9(X,{'id':_0x2db269['IndicatorLine'],'label':_0xd3c317['t'](_0x12b79a(0x1d6)),'children':_0x2897c9(_0xd050ed,{'defaultValues':_0x3ec057[_0x12b79a(0x345)]['indicatorLine']})}),_0x51cc42(_0x2a4134)&&_0x2897c9(X,{'id':_0x2db269[_0x12b79a(0x2b8)],'label':_0xd3c317['t'](_0x12b79a(0x2d9)),'children':_0x2897c9(_0x2eba1e,{'defaultValues':_0x3ec057[_0x12b79a(0x345)][_0x12b79a(0x28a)]})}),_0x250733&&_0x547c55&&_0x2897c9(X,{'id':_0x250733,'label':_0x547c55,'children':_0x2897c9(_0x485569,{})})]});};function Ni(_0x481c19){const _0x137d68=_0xca568b;let {className:_0x4cacbf}=_0x481c19,[_0x23a1bc,_0x2a516f]=_0x758b4d(_0x5c4d69[_0x137d68(0x2e6)]),_0x20ca1d=_0x2b41d0(_0x34eb6c),_0x5984e9=_0x2b41d0(_0x3ad976),_0x3c627e=_0x2b41d0(Y),_0x45e9bb=_0x2b41d0(_0x781fb3),_0x40ba89=_0x2b41d0(_0xb7f357),_0x4d2b1d=_0x4561a1(_0x45e9bb[_0x137d68(0x2b2)],_0x45e9bb[_0x137d68(0x242)]),_0x1d87d9=_0x4561a1(_0x3c627e[_0x137d68(0x3fb)],null),_0x479dd0=_0x32aaef(()=>{const _0x2fbc77=_0x137d68;var _0x343f9f;if(!_0x4d2b1d)return null;let _0x24825e=_0x40ba89['getChartSourceSpec'](_0x4d2b1d['id']);if(!_0x24825e)return null;let _0x57f959=Array[_0x2fbc77(0x363)](_0x24825e)?(_0x343f9f=_0x24825e[0x0])==null?void 0x0:_0x343f9f['range']:_0x24825e[_0x2fbc77(0x412)];return _0x57f959?new _0x10f55f(_0x4d2b1d,new _0x14bce4({'unitId':_0x57f959[_0x2fbc77(0x2f9)],'subUnitId':_0x57f959['subUnitId'],'chartId':_0x4d2b1d['id'],'injector':_0x20ca1d})):null;},[_0x4d2b1d,_0x20ca1d,_0x40ba89]);if(_0x397741(()=>{const _0x4bd968=_0x137d68;var _0x97a7a,_0x278a6f;_0x4d2b1d&&(_0x1d87d9==null?void 0x0:_0x1d87d9['chartId'])===_0x4d2b1d['id']&&(((_0x97a7a=_0x1d87d9[_0x4bd968(0x3ae)])==null?void 0x0:_0x97a7a[_0x4bd968(0x343)])===_0x5c4d69['Style']&&_0x2a516f(_0x5c4d69[_0x4bd968(0x1f2)]),((_0x278a6f=_0x1d87d9[_0x4bd968(0x3ae)])==null?void 0x0:_0x278a6f['tab'])===_0x5c4d69[_0x4bd968(0x2e6)]&&_0x2a516f(_0x5c4d69['Data']));},[_0x4d2b1d,_0x1d87d9]),!_0x479dd0)return null;let _0x3ae8d9=_0x5a92d2(_0x137d68(0x298),{'className':_0x137d68(0x29b)+(_0x23a1bc===_0x5c4d69[_0x137d68(0x1f2)]?'univer-overflow-visible':'univer-overflow-hidden')+_0x137d68(0x2ee)+(_0x4cacbf??'')+_0x137d68(0x2d4),'children':[_0x2897c9(_0x405993,{'ariaLabel':_0x5984e9['t'](_0x137d68(0x2df)),'className':_0x137d68(0x352),'items':[{'label':_0x5984e9['t']('sheets-chart-ui.common.setup'),'panelId':Pi,'value':_0x5c4d69[_0x137d68(0x2e6)]},{'label':_0x5984e9['t'](_0x137d68(0x256)),'panelId':Fi,'value':_0x5c4d69[_0x137d68(0x1f2)]}],'value':_0x23a1bc,'onChange':_0x2a516f}),_0x23a1bc===_0x5c4d69['Data']?_0x2897c9(_0x1ace4b,{'id':Pi,'label':_0x5984e9['t'](_0x137d68(0x2c1)),'children':_0x2897c9(Ai,{'defaultValues':Ti})}):_0x2897c9(_0x1ace4b,{'id':Fi,'className':'-univer-mx-4','label':_0x5984e9['t']('sheets-chart-ui.common.customize'),'children':_0x2897c9(Mi,{'defaultValues':Ti})})]});return _0x2897c9(_0x527efa,{'chartUIService':_0x3c627e,'hostAdapter':_0x479dd0,'children':_0x3ae8d9});}const Z=_0xca568b(0x2bf),Pi='sheet-chart-setup-panel',Fi=_0xca568b(0x1e3);function Ii(_0x4a1e59){const _0x222beb=_0xca568b;return _0x4a1e59[_0x222beb(0x3c2)]===0x1&&Li(_0x4a1e59[0x0]);}function Li(_0x26d127){const _0x59483e=_0xca568b;return(_0x26d127==null?void 0x0:_0x26d127[_0x59483e(0x2ac)])===_0x1dc4b2[_0x59483e(0x1b7)]&&!_0x26d127[_0x59483e(0x459)];}let Ri=class extends _0x110283{constructor(_0x1c11ba,_0x26fcfe,_0x3756ed,_0x47beaa,_0xbcea34,_0x4040c9,_0x2ae074,_0x2fd64d,_0xd40f5c,_0x7bc914,_0x59d295,_0x4409e7,_0x76d077,_0x17d6f1,_0x421e83){const _0x375865=_0xca568b;var _0x32d3e5;super(),this[_0x375865(0x1a2)]=_0x1c11ba,this[_0x375865(0x31a)]=_0x26fcfe,this[_0x375865(0x3f0)]=_0x3756ed,this['_sheetsChartService']=_0x47beaa,this['_chartRenderService']=_0xbcea34,this[_0x375865(0x2d1)]=_0x4040c9,this[_0x375865(0x2b6)]=_0x2ae074,this[_0x375865(0x452)]=_0x2fd64d,this[_0x375865(0x40f)]=_0xd40f5c,this[_0x375865(0x207)]=_0x7bc914,this['_commandService']=_0x59d295,this['_sheetsChartUIService']=_0x4409e7,this[_0x375865(0x20a)]=_0x76d077,this[_0x375865(0x375)]=_0x17d6f1,W(this,_0x375865(0x1d1),null),W(this,_0x375865(0x42b),void 0x0),this['_isChartElementEditEnabled']=((_0x32d3e5=_0x421e83[_0x375865(0x1ab)]('sheets-chart-ui.config'))==null?void 0x0:_0x32d3e5[_0x375865(0x3ee)])===!0x0,this[_0x375865(0x381)](),this['disposeWithMe'](this[_0x375865(0x31a)][_0x375865(0x1bf)](_0x50b631['UNIVER_SHEET'])['subscribe'](_0x64b51a=>{const _0x283245=_0x375865;var _0x2cdf5c;_0x64b51a||(_0x2cdf5c=this[_0x283245(0x1d1)])==null||_0x2cdf5c['dispose']();})),this[_0x375865(0x1e0)](_0xc69da6(this[_0x375865(0x2d1)][_0x375865(0x3cd)][_0x375865(0x1f1)](async({drawing:_0x35d102})=>{const _0x4ebc20=_0x375865;await this[_0x4ebc20(0x32d)](_0x35d102);})));}[_0xca568b(0x41d)](){const _0x360de8=_0xca568b;this[_0x360de8(0x1d1)]=this[_0x360de8(0x2b6)][_0x360de8(0x339)]({'id':Z,'header':{'title':this['_localeService']['t'](_0x360de8(0x2df))},'width':0x154,'children':{'label':Z},'onClose':()=>{const _0x5bdf03=_0x360de8;this[_0x5bdf03(0x1d1)]=null,this['_deactivateEditPanelState'](),this[_0x5bdf03(0x3f0)][_0x5bdf03(0x242)]&&this['_chartModelService'][_0x5bdf03(0x1fa)](null),this[_0x5bdf03(0x1a2)][_0x5bdf03(0x225)](null),this[_0x5bdf03(0x20a)][_0x5bdf03(0x31f)](_0x284d3d,!0x1);}});}[_0xca568b(0x27f)](){const _0x1eb0a7=_0xca568b;let _0x3c500d=this[_0x1eb0a7(0x1d1)];this[_0x1eb0a7(0x1d1)]=null,this['_deactivateEditPanelState'](),this['_chartModelService'][_0x1eb0a7(0x242)]&&this[_0x1eb0a7(0x3f0)][_0x1eb0a7(0x1fa)](null),_0x3c500d==null||_0x3c500d['dispose']();}[_0xca568b(0x324)](){const _0x12955a=_0xca568b;let _0x417d2d=this[_0x12955a(0x31a)][_0x12955a(0x293)](_0x50b631[_0x12955a(0x2f0)]);this[_0x12955a(0x1e0)](this['_sidebarService'][_0x12955a(0x2fb)]['subscribe'](_0x19a12d=>{const _0x218eb7=_0x12955a;_0x19a12d['id']===_0x218eb7(0x2bf)&&(_0x19a12d['visible']||this[_0x218eb7(0x2b6)][_0x218eb7(0x2fb)][_0x218eb7(0x1b5)]({'visible':!0x1}));})),this[_0x12955a(0x1e0)](_0x3c6cb0([this[_0x12955a(0x3f0)][_0x12955a(0x2b2)],this[_0x12955a(0x1cf)][_0x12955a(0x30a)]])[_0x12955a(0x2d3)](_0xd28067(([_0x20d898,_0x968ed9])=>_0x968ed9?(_0x20d898==null?void 0x0:_0x20d898['id'])??null:null),_0x3c6b25(),_0x4bd3e7(null),_0x5f076a())[_0x12955a(0x1f1)](([_0xd1e124,_0x2773cd])=>{const _0x28657d=_0x12955a;this[_0x28657d(0x268)](_0xd1e124,_0x2773cd);})),this[_0x12955a(0x1e0)](this[_0x12955a(0x3f0)][_0x12955a(0x2b2)]['subscribe'](_0x297bce=>{const _0x3acff5=_0x12955a;!_0x297bce&&this['_sidebarDisposable']&&this[_0x3acff5(0x27f)]();})),this[_0x12955a(0x1e0)](this[_0x12955a(0x214)]['onCommandExecuted'](_0x1229f0=>{const _0x2a92da=_0x12955a;if(_0x1229f0['id']===H['id']){let _0x5a7391=_0x1229f0[_0x2a92da(0x2f1)];if(!Li(this[_0x2a92da(0x1a2)]['getDrawingByParam']({'unitId':_0x5a7391[_0x2a92da(0x2f9)],'subUnitId':_0x5a7391[_0x2a92da(0x254)],'drawingId':_0x5a7391[_0x2a92da(0x22a)]})))return;this['openChartPanelById'](_0x5a7391[_0x2a92da(0x22a)],_0x5a7391[_0x2a92da(0x3ae)]);}if(_0x1229f0['id']===Nr['id']&&this[_0x2a92da(0x27f)](),_0x1229f0['id']===_0x31720e['id']){var _0x1cfadd;_0x1229f0[_0x2a92da(0x2f1)][_0x2a92da(0x400)]===((_0x1cfadd=this['_chartModelService'][_0x2a92da(0x242)])==null?void 0x0:_0x1cfadd['id'])&&this[_0x2a92da(0x27f)](),this['_contextService']['getContextValue'](_0x284d3d)&&(this[_0x2a92da(0x20a)]['setContextValue'](_0x284d3d,!0x1),this['_drawingManagerService'][_0x2a92da(0x225)](null));}})),this[_0x12955a(0x1e0)](this['_sheetCanvasFloatDomManagerService'][_0x12955a(0x2de)]['subscribe'](({id:_0x1796f5})=>{const _0x1ef87c=_0x12955a;this[_0x1ef87c(0x1cf)]['isElementEditModeActive'](_0x1796f5)&&this[_0x1ef87c(0x27f)]();})),this['disposeWithMe'](this[_0x12955a(0x40f)][_0x12955a(0x21d)][_0x12955a(0x1f1)](({id:_0x370995})=>{const _0x3d0443=_0x12955a;this['_sheetsChartUIService'][_0x3d0443(0x1de)](_0x370995)&&(this['_sheetsChartUIService'][_0x3d0443(0x1f9)](),this[_0x3d0443(0x28f)][_0x3d0443(0x253)](_0x370995,!0x1),this[_0x3d0443(0x43b)](_0x370995)&&this[_0x3d0443(0x28f)][_0x3d0443(0x253)](_0x370995,!0x0));})),this['disposeWithMe'](this[_0x12955a(0x1a2)]['focus$'][_0x12955a(0x1f1)](_0x355b78=>{const _0x33a7fb=_0x12955a;let _0x59a39a=_0x355b78[0x0];if(!this[_0x33a7fb(0x1cf)][_0x33a7fb(0x235)]){if(Ii(_0x355b78)){var _0x2c44e4;let _0xf9bc46=this['_chartModelService']['getChartModel'](_0x59a39a[_0x33a7fb(0x22a)]);_0xf9bc46&&this[_0x33a7fb(0x396)](_0xf9bc46['id'])&&((_0x2c44e4=this[_0x33a7fb(0x3f0)][_0x33a7fb(0x242)])==null?void 0x0:_0x2c44e4['id'])!==_0xf9bc46['id']&&this[_0x33a7fb(0x3f0)][_0x33a7fb(0x1fa)](_0xf9bc46);return;}this['_chartModelService'][_0x33a7fb(0x242)]&&this[_0x33a7fb(0x3f0)]['setActiveChartModel'](null),!_0x59a39a&&!this[_0x33a7fb(0x1cf)][_0x33a7fb(0x235)]&&this[_0x33a7fb(0x27f)]();}})),_0x417d2d&&(this[_0x12955a(0x1e0)](_0x417d2d['sheetDisposed$'][_0x12955a(0x1f1)](()=>{const _0xe4f180=_0x12955a;this[_0xe4f180(0x27f)]();})),this['disposeWithMe'](_0x417d2d[_0x12955a(0x2b3)]['subscribe'](()=>{const _0x47d45b=_0x12955a;this[_0x47d45b(0x27f)]();})));}async[_0xca568b(0x32d)](_0x2489eb){const _0x5c79bb=_0xca568b;this[_0x5c79bb(0x1cf)]['chartEditorOpen']||Li(_0x2489eb)&&this[_0x5c79bb(0x396)](_0x2489eb['drawingId'])&&await this[_0x5c79bb(0x258)](_0x2489eb[_0x5c79bb(0x2f9)],_0x2489eb[_0x5c79bb(0x254)],_0x2489eb[_0x5c79bb(0x22a)]);}async[_0xca568b(0x258)](_0x3104eb,_0x5705b6,_0x228fc2){const _0x3744dc=_0xca568b;this[_0x3744dc(0x3f0)][_0x3744dc(0x284)](_0x228fc2)&&this['_isOwnedChart'](_0x228fc2)&&await this[_0x3744dc(0x214)][_0x3744dc(0x304)](H['id'],{'unitId':_0x3104eb,'subUnitId':_0x5705b6,'drawingId':_0x228fc2});}[_0xca568b(0x310)](_0x10df55,_0x329af7){const _0x8ccda3=_0xca568b;let _0x511199=this[_0x8ccda3(0x3f0)][_0x8ccda3(0x284)](_0x10df55);_0x511199&&this[_0x8ccda3(0x396)](_0x10df55)&&(this[_0x8ccda3(0x3f0)][_0x8ccda3(0x1fa)](_0x511199),this[_0x8ccda3(0x41d)](),this['_activateEditPanelState'](_0x10df55,_0x329af7??null));}[_0xca568b(0x3db)](_0xd98c2f,_0x3fe35a){const _0x2f8762=_0xca568b;this[_0x2f8762(0x1cf)]['setChartEditorOpen'](!0x0),this['_sheetsChartUIService'][_0x2f8762(0x3e6)](_0xd98c2f,_0x3fe35a);}[_0xca568b(0x3bd)](){const _0x11be14=_0xca568b;this['_sheetsChartUIService'][_0x11be14(0x418)](!0x1);}[_0xca568b(0x268)](_0x674e72,_0x23470d){const _0x3a1ad0=_0xca568b;_0x674e72!==_0x23470d&&(_0x674e72&&this[_0x3a1ad0(0x28f)][_0x3a1ad0(0x253)](_0x674e72,!0x1),this['_sheetsChartUIService']['clearPanelRoute'](),_0x23470d&&(this['_sheetsChartUIService']['setPanelRoute'](_0x23470d,null),this[_0x3a1ad0(0x28f)]['setElementEditMode'](_0x23470d,this[_0x3a1ad0(0x43b)](_0x23470d))));}[_0xca568b(0x381)](){const _0x4d6c0e=_0xca568b;this[_0x4d6c0e(0x452)]['mergeMenu'](Zr),this['_sheetCanvasPopManagerService'][_0x4d6c0e(0x28c)](_0x1dc4b2['DRAWING_CHART'],this[_0x4d6c0e(0x391)][_0x4d6c0e(0x2a9)](this));}[_0xca568b(0x43b)](_0x149d88){const _0x14e883=_0xca568b;let _0x1bfe4f=this[_0x14e883(0x3f0)][_0x14e883(0x284)](_0x149d88);return!this[_0x14e883(0x42b)]||!_0x1bfe4f||!this[_0x14e883(0x396)](_0x149d88)?!0x1:$r(_0x1bfe4f[_0x14e883(0x436)]);}[_0xca568b(0x391)](_0x4f91b8,_0x54fc31,_0x38f4aa,_0x27f01c){const _0x49179e=_0xca568b;if(!this[_0x49179e(0x3f0)][_0x49179e(0x284)](_0x38f4aa))return[];let _0x867fb=[{'label':this[_0x49179e(0x375)]['t']('sheets-chart-ui.common.openChartPanel'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x4f91b8,'subUnitId':_0x54fc31,'drawingId':_0x38f4aa},'disable':_0x27f01c!==_0x1dc4b2[_0x49179e(0x1b7)]}];return this[_0x49179e(0x396)](_0x38f4aa)?[..._0x867fb,{'label':this[_0x49179e(0x375)]['t']('sheets-chart-ui.common.deleteChart'),'index':0x1,'commandId':_0x7fd27d['id'],'commandParams':{'unitId':_0x4f91b8,'drawings':[{'unitId':_0x4f91b8,'subUnitId':_0x54fc31,'drawingId':_0x38f4aa,'drawingType':_0x27f01c}]},'disable':!0x1},{'label':this[_0x49179e(0x375)]['t'](_0x49179e(0x410)),'index':0x2,'commandId':Nr['id'],'commandParams':{'unitId':_0x4f91b8,'subUnitId':_0x54fc31,'drawingId':_0x38f4aa},'disable':!0x1}]:_0x867fb;}[_0xca568b(0x396)](_0x1dd97f){const _0x3111ce=_0xca568b;return this['_sheetsChartService'][_0x3111ce(0x35e)](_0x1dd97f)!==void 0x0;}};Ri=q([K(0x0,_0x23c247),K(0x1,_0x46e33a),K(0x2,_0x2b7ebf(_0x781fb3)),K(0x3,_0x2b7ebf(_0xb7f357)),K(0x4,_0x2b7ebf(J)),K(0x5,_0x2b7ebf(_0x548ade)),K(0x6,_0x2b7ebf(_0xd6bb73)),K(0x7,_0x3ebd35),K(0x8,_0x2b7ebf(_0x48f4a3)),K(0x9,_0x2b7ebf(_0x4aa645)),K(0xa,_0x5a9a36),K(0xb,Y),K(0xc,_0x2b586f),K(0xd,_0x2b7ebf(_0x3ad976)),K(0xe,_0x116807)],Ri);var zi=_0xca568b(0x300),Bi=_0xca568b(0x23b);let Vi=class extends _0x110283{constructor(_0x3ed874,_0x14de02){const _0x5629cd=_0xca568b;super(),this[_0x5629cd(0x460)]=_0x3ed874,this[_0x5629cd(0x3f0)]=_0x14de02,this['_init']();}[_0xca568b(0x257)](){const _0x38ed7f=_0xca568b;this[_0x38ed7f(0x1e0)](this[_0x38ed7f(0x460)][_0x38ed7f(0x380)]['subscribe'](_0x24171b=>{const _0x389282=_0x38ed7f;this[_0x389282(0x3f0)]['removeChartModel'](_0x24171b);}));}};Vi=q([K(0x0,yi),K(0x1,_0x2b7ebf(_0x781fb3))],Vi);let Hi=class extends _0x110283{constructor(_0x33cd34,_0x2acfd7,_0x248834,_0x563248,_0x48011f,_0x1cb922){const _0x3085d1=_0xca568b;super(),this[_0x3085d1(0x3f0)]=_0x33cd34,this[_0x3085d1(0x28f)]=_0x2acfd7,this[_0x3085d1(0x375)]=_0x248834,this[_0x3085d1(0x2c8)]=_0x563248,this[_0x3085d1(0x214)]=_0x48011f,this[_0x3085d1(0x3b6)]=_0x1cb922,W(this,_0x3085d1(0x231),new Map()),W(this,_0x3085d1(0x3ef),new Set()),this[_0x3085d1(0x257)](),this[_0x3085d1(0x278)](),this[_0x3085d1(0x383)]();}[_0xca568b(0x383)](){const _0x5aa8d2=_0xca568b;this[_0x5aa8d2(0x1e0)](this[_0x5aa8d2(0x3b6)][_0x5aa8d2(0x37f)][_0x5aa8d2(0x3e8)](this[_0x5aa8d2(0x3b6)][_0x5aa8d2(0x37f)][_0x5aa8d2(0x455)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x439358,_0x581a23,_0x5009fb)=>{const _0x2c59c7=_0x5aa8d2;let _0x206558=this[_0x2c59c7(0x28f)][_0x2c59c7(0x1d3)](_0x581a23[_0x2c59c7(0x2f9)],_0x581a23[_0x2c59c7(0x254)],_0x581a23[_0x2c59c7(0x288)]);return _0x581a23['resourceCollector']['add'](_0x206558),_0x5009fb(_0x439358);}}));}[_0xca568b(0x257)](){const _0x31a1d4=_0xca568b;this[_0x31a1d4(0x1e0)](this[_0x31a1d4(0x3f0)]['chartModelAdded$'][_0x31a1d4(0x1f1)](_0x577a3c=>{const _0xec2ba=_0x31a1d4;if(_0x577a3c){let _0x355c8b=new _0x47b662();_0x355c8b[_0xec2ba(0x36f)](_0x577a3c[_0xec2ba(0x1ec)][_0xec2ba(0x2d3)](_0x51b589(_0x20711f=>_0x20711f['data$']['pipe'](_0x4c54ad(0x1))))[_0xec2ba(0x1f1)](()=>{const _0x4a6c3d=_0xec2ba;this[_0x4a6c3d(0x3ef)][_0x4a6c3d(0x36f)](_0x577a3c['id']);})),_0x355c8b[_0xec2ba(0x36f)](_0x577a3c[_0xec2ba(0x1d7)]['pipe'](_0x28f114(_0x577a3c[_0xec2ba(0x390)]),_0x28f114(this['_localeService'][_0xec2ba(0x1a4)]),_0x59ab39(0x64))['subscribe'](([[_0x4ef89b,_0x4663a6],_0x15df49])=>{const _0x4abea7=_0xec2ba;var _0x4b38e9;if(!_0x4ef89b)return;(_0x4b38e9=_0x4ef89b[_0x4abea7(0x365)])==null||_0x4b38e9['items']['forEach']((_0x301ffd,_0x165257)=>{const _0x2b8e84=_0x4abea7;_0x301ffd[_0x2b8e84(0x248)]||=this['_localeService']['t']('sheets-chart-ui.common.category')+'\x20'+(_0x165257+0x1);}),_0x4ef89b[_0x4abea7(0x241)][_0x4abea7(0x308)]((_0x5c4d78,_0x403031)=>{const _0x2a3914=_0x4abea7;_0x5c4d78[_0x2a3914(0x33f)]||=this[_0x2a3914(0x375)]['t'](_0x2a3914(0x38f))+'\x20'+(_0x403031+0x1);});let _0x47d95e=this[_0x4abea7(0x28f)][_0x4abea7(0x1b6)](_0x577a3c,_0x15df49),_0x526edb=this['_pendingDataUpdateChartIds'][_0x4abea7(0x28b)](_0x577a3c['id']);this[_0x4abea7(0x28f)][_0x4abea7(0x23d)](_0x577a3c['id'],_0x4ef89b,_0x47d95e,{'animateDataUpdate':_0x526edb});})),_0x577a3c[_0xec2ba(0x20b)](()=>{const _0x5661b3=_0xec2ba;this[_0x5661b3(0x3ef)]['delete'](_0x577a3c['id']),_0x355c8b[_0x5661b3(0x406)]();});}}));}[_0xca568b(0x278)](){const _0x5ddb72=_0xca568b;this[_0x5ddb72(0x1e0)](this[_0x5ddb72(0x214)][_0x5ddb72(0x2cd)](_0xb7742c=>{const _0x1e4b9a=_0x5ddb72;if(_0xb7742c['id']!==_0x1d8ae1['id'])return;let _0x17d1bc=_0xb7742c[_0x1e4b9a(0x2f1)];_0x17d1bc!=null&&_0x17d1bc['chartModelId']&&Promise[_0x1e4b9a(0x3d6)]()[_0x1e4b9a(0x358)](()=>this[_0x1e4b9a(0x20c)](_0x17d1bc));}));}[_0xca568b(0x20c)](_0x261efc){const _0x205e83=_0xca568b;let _0x46cdb4=this['_chartModelService'][_0x205e83(0x284)](_0x261efc[_0x205e83(0x3e7)]);if(!_0x46cdb4||_0x46cdb4['chartType']!==_0xd24882['WordCloud'])return;let _0x1ecd84=_0x46cdb4[_0x205e83(0x3cc)];if(!_0x1ecd84){this[_0x205e83(0x2d8)](_0x46cdb4);return;}this[_0x205e83(0x1c2)](_0x46cdb4,_0x1ecd84);}[_0xca568b(0x2d8)](_0x315308){const _0x5c118a=_0xca568b;if(this[_0x5c118a(0x231)][_0x5c118a(0x29a)](_0x315308['id']))return;let _0x4375a8=_0x315308[_0x5c118a(0x1d7)][_0x5c118a(0x2d3)](_0x483739(_0xc20c38=>_0xc20c38!=null),_0x55b78a(0x1))['subscribe'](_0x50d8d7=>{const _0x3a6503=_0x5c118a;this['_pendingMutationConfigRenders'][_0x3a6503(0x28b)](_0x315308['id']),this['_renderChartModel'](_0x315308,_0x50d8d7);});this[_0x5c118a(0x231)]['set'](_0x315308['id'],_0x4375a8),_0x315308['onDispose'](()=>{const _0x3a4f6f=_0x5c118a;_0x4375a8[_0x3a4f6f(0x3a1)](),this[_0x3a4f6f(0x231)][_0x3a4f6f(0x28b)](_0x315308['id']);});}['_renderChartModel'](_0x4a7bad,_0x54d0f8){let _0xd6a8c1=this['_chartRenderService']['createRuntimeChartStyle'](_0x4a7bad,this['_localeService']['getDirection']());this['_chartRenderService']['render'](_0x4a7bad['id'],_0x54d0f8,_0xd6a8c1);}};Hi=q([K(0x0,_0x2b7ebf(_0x781fb3)),K(0x1,_0x2b7ebf(J)),K(0x2,_0x2b7ebf(_0x3ad976)),K(0x3,Y),K(0x4,_0x5a9a36),K(0x5,_0x2b7ebf(_0x3fc87b))],Hi);function Ui(_0x105d99,_0x1a3812){const _0x180d73=_0xca568b;return _0x105d99[_0x180d73(0x2f9)]!==_0x1a3812[_0x180d73(0x2f9)]||_0x105d99[_0x180d73(0x254)]!==_0x1a3812[_0x180d73(0x21e)]?_0x105d99:{..._0x105d99,'subUnitId':_0x1a3812['targetSubUnitId']};}function Wi(_0x104555,_0x4012ae){const _0x5db368=_0xca568b;return(_0x104555==null?void 0x0:_0x104555[_0x5db368(0x1bc)])===_0x4c1868[_0x5db368(0x24c)]?{..._0x104555,'source':Ui(_0x104555[_0x5db368(0x356)],_0x4012ae)}:_0x104555;}function Gi(_0x2bc695,_0x376340){const _0x270abf=_0xca568b;let {rangeInfo:_0x32c22b}=_0x2bc695;return Array['isArray'](_0x32c22b)?{..._0x2bc695,'rangeInfo':_0x32c22b['map'](_0x17ce60=>({..._0x17ce60,..._0x17ce60[_0x270abf(0x220)]?{'header':Wi(_0x17ce60[_0x270abf(0x220)],_0x376340)}:{},'range':Ui(_0x17ce60[_0x270abf(0x2e2)],_0x376340)}))}:{..._0x2bc695,'rangeInfo':{..._0x32c22b,..._0x32c22b['header']?{'header':{..._0x32c22b[_0x270abf(0x220)],..._0x32c22b[_0x270abf(0x220)]['titles']?{'titles':Ki(_0x32c22b[_0x270abf(0x220)][_0x270abf(0x1a9)],_0x376340)}:{}}}:{},'rangeInfo':Ui(_0x32c22b[_0x270abf(0x412)],_0x376340)}};}function Ki(_0x425cd3,_0x2a2117){const _0x6992c0=_0xca568b;return _0x425cd3['type']===_0x4c1868[_0x6992c0(0x1b9)]?{..._0x425cd3,'values':{..._0x425cd3[_0x6992c0(0x377)]}}:_0x425cd3['type']===_0x4c1868[_0x6992c0(0x33d)]?{..._0x425cd3,'values':Object[_0x6992c0(0x438)](Object['entries'](_0x425cd3[_0x6992c0(0x377)])[_0x6992c0(0x226)](([_0x3f4257,_0x30b6b0])=>[_0x3f4257,_0x30b6b0&&Ui(_0x30b6b0,_0x2a2117)]))}:{..._0x425cd3,'values':Object[_0x6992c0(0x438)](Object['entries'](_0x425cd3[_0x6992c0(0x377)])[_0x6992c0(0x226)](([_0x4ae4db,_0x32d796])=>[_0x4ae4db,_0x32d796&&Wi(_0x32d796,_0x2a2117)]))};}function qi(_0x221b30,_0x34ef04,_0x4e0734,_0x575d2b){const _0x4312fd=_0xca568b;let _0x461ba2=_0x38f8fe(_0x221b30,_0x34ef04,_0x4e0734),_0x1702c0=[];for(let _0x44ce6a of _0x34ef04){let _0x4f9e4c=_0x461ba2['idMap']['get'](_0x44ce6a[_0x4312fd(0x22a)]),_0x2097ab=_0x575d2b(_0x44ce6a);_0x4f9e4c&&_0x2097ab&&_0x1702c0[_0x4312fd(0x338)]({'targetChartId':_0x4f9e4c,'source':Gi(_0x2097ab,_0x4e0734)});}return _0x1702c0;}let Ji=class extends _0x110283{constructor(_0x221c77,_0x274639,_0x512f13,_0x13c0d0,_0x388753){const _0x34391f=_0xca568b;super(),this[_0x34391f(0x31a)]=_0x221c77,this[_0x34391f(0x25d)]=_0x274639,this[_0x34391f(0x447)]=_0x512f13,this[_0x34391f(0x3f0)]=_0x13c0d0,this[_0x34391f(0x1ac)]=_0x388753,this['_initSheetChange']();}['_initSheetChange'](){const _0x4b31e2=_0xca568b;this['disposeWithMe'](this[_0x4b31e2(0x25d)][_0x4b31e2(0x2ec)]({'getMutations':_0x906b7c=>{const _0x2ae2c6=_0x4b31e2;if(_0x906b7c['id']===_0xce777d['id']){let _0x45ceb1=_0x5413b8(this['_univerInstanceService'],_0x906b7c[_0x2ae2c6(0x2f1)]);if(!_0x45ceb1)return{'redos':[],'undos':[]};let {unitId:_0x2c44e6,subUnitId:_0x584aef}=_0x45ceb1,_0x130d72=this[_0x2ae2c6(0x447)]['getDrawingData'](_0x2c44e6,_0x584aef),_0x23dfb1=Object[_0x2ae2c6(0x377)](_0x130d72)[_0x2ae2c6(0x37d)](_0x50f977=>_0x50f977[_0x2ae2c6(0x2ac)]===_0x1dc4b2['DRAWING_CHART']);if(_0x23dfb1[_0x2ae2c6(0x3c2)]===0x0)return{'redos':[],'undos':[]};let _0x16360c=[],_0x517271=[];for(let _0x21b674=0x0;_0x21b674<_0x23dfb1[_0x2ae2c6(0x3c2)];_0x21b674++){let _0x4c6dd7=_0x23dfb1[_0x21b674],_0x3281e7=this[_0x2ae2c6(0x3f0)]['getChartModel'](_0x4c6dd7[_0x2ae2c6(0x22a)]);if(!_0x3281e7)continue;let _0x56b22d=this['_sheetsChartService'][_0x2ae2c6(0x35e)](_0x3281e7['id']);if(!_0x56b22d)continue;let {chartType:_0x2475b3,context:_0x13395e,style:_0x4cf713,dataAggregation:_0x33bc1d}=_0x3281e7[_0x2ae2c6(0x286)]();_0x16360c[_0x2ae2c6(0x338)]({'id':_0x31720e['id'],'params':{'unitId':_0x2c44e6,'subUnitId':_0x584aef,'chartId':_0x4c6dd7[_0x2ae2c6(0x22a)]}}),_0x517271[_0x2ae2c6(0x338)]({'id':_0x217994['id'],'params':{'unitId':_0x2c44e6,'subUnitId':_0x584aef,'chartId':_0x4c6dd7['drawingId'],'chartType':_0x2475b3,..._0x16c66f(_0x56b22d),'context':_0x13395e,'style':_0x4cf713,'dataAggregation':_0x33bc1d}});}return{'redos':_0x16360c,'undos':_0x517271};}if(_0x906b7c['id']===_0x564b78['id']){let {unitId:_0x5b15c7,subUnitId:_0xa235d9,targetSubUnitId:_0x4be037,copyContext:_0x2ae0d6}=_0x906b7c[_0x2ae2c6(0x2f1)];if(!_0x5b15c7||!_0xa235d9||!_0x4be037)return{'redos':[],'undos':[]};let _0x31c71a=this[_0x2ae2c6(0x447)]['getDrawingData'](_0x5b15c7,_0xa235d9),_0xe8f6cd=Object[_0x2ae2c6(0x377)](_0x31c71a)['filter'](_0x11f120=>_0x11f120['drawingType']===_0x1dc4b2['DRAWING_CHART']);if(_0xe8f6cd[_0x2ae2c6(0x3c2)]===0x0)return{'redos':[],'undos':[]};let _0x16562c=qi(_0x2ae0d6,_0xe8f6cd,{'unitId':_0x5b15c7,'sourceSubUnitId':_0xa235d9,'targetSubUnitId':_0x4be037},_0x4ba749=>{const _0x1b516b=_0x2ae2c6;let _0xf1b35c=this[_0x1b516b(0x3f0)][_0x1b516b(0x284)](_0x4ba749['drawingId']);if(!_0xf1b35c)return;let _0xe4e7a2=this[_0x1b516b(0x1ac)][_0x1b516b(0x35e)](_0xf1b35c['id']);if(!_0xe4e7a2)return;let {chartType:_0x3eee02,context:_0x43f701,style:_0x209bb1,dataAggregation:_0x1c1219}=_0xf1b35c[_0x1b516b(0x286)]();return{'rangeInfo':_0xe4e7a2,'chartType':_0x3eee02,'context':_0x43f701,'style':_0x209bb1,'dataAggregation':_0x1c1219};}),_0x1a4349=[],_0x54c92c=[];for(let {targetChartId:_0xeb55dc,source:_0x52e53b}of _0x16562c){let {rangeInfo:_0x55bb81,chartType:_0x49f1cf,context:_0x4a02c8,style:_0x496b01,dataAggregation:_0x2386d0}=_0x52e53b;_0x1a4349[_0x2ae2c6(0x338)]({'id':_0x217994['id'],'params':{'unitId':_0x5b15c7,'subUnitId':_0x4be037,'chartId':_0xeb55dc,'chartType':_0x49f1cf,..._0x16c66f(_0x55bb81),'context':_0x4a02c8,'style':_0x496b01,'dataAggregation':_0x2386d0}}),_0x54c92c[_0x2ae2c6(0x338)]({'id':_0x31720e['id'],'params':{'unitId':_0x5b15c7,'subUnitId':_0x4be037,'chartId':_0xeb55dc}});}return{'redos':_0x1a4349,'undos':_0x54c92c};}return{'redos':[],'undos':[]};}}));}};Ji=q([K(0x0,_0x2b7ebf(_0x46e33a)),K(0x1,_0x2b7ebf(_0x30d687)),K(0x2,_0x2b7ebf(_0x124322)),K(0x3,_0x2b7ebf(_0x781fb3)),K(0x4,_0x2b7ebf(_0xb7f357))],Ji);const Yi=_0x3f144d=>_0x3f144d[_0xca568b(0x293)](_0x50b631[_0xca568b(0x2f0)])[_0xca568b(0x360)](),Xi=_0x32310c=>{const _0x36f0c9=_0xca568b;var _0x52fd9a;return(_0x52fd9a=_0x32310c[_0x36f0c9(0x293)](_0x50b631[_0x36f0c9(0x2f0)])['getActiveSheet']())==null?void 0x0:_0x52fd9a[_0x36f0c9(0x1d5)]();},Zi=[_0xd24882[_0xca568b(0x2fe)],_0xd24882['Radar'],_0xd24882[_0xca568b(0x2a8)],_0xd24882[_0xca568b(0x259)],_0xd24882[_0xca568b(0x292)],_0xd24882[_0xca568b(0x2e5)],_0xd24882['Sankey'],_0xd24882[_0xca568b(0x1c9)],_0xd24882[_0xca568b(0x335)],_0xd24882[_0xca568b(0x3fc)],_0xd24882['Histogram'],_0xd24882[_0xca568b(0x2a7)],_0xd24882[_0xca568b(0x422)],_0xd24882[_0xca568b(0x355)],_0xd24882[_0xca568b(0x30b)]];function Qi(){const _0x10f7fe=_0xca568b;let _0x2c9527=_0x3cdaa0(),_0x4fcabb=Zi[_0x10f7fe(0x23a)](_0x4c856b=>!_0x3ede69['baseOn'](_0x2c9527,_0x4c856b));return _0x2897c9(_0x23b483,{'visible':_0x4fcabb});}function $i(_0x537e29){const _0x358981=_0xca568b;var _0x1a9595;let _0x406d3a=_0x2b41d0(Y),_0x593f44=_0x2b41d0(_0x781fb3),_0x4cf9ef=_0x2b41d0(_0xb7f357),_0x423745=_0x2b41d0(_0x3ad976),_0x1ebc4d=_0x2b41d0(_0x34eb6c),_0x3324df=_0x14bcc6(_0x1ebc4d),_0x3eff26=_0x32aaef(()=>{const _0x78afda=_0x28a2;let _0x4e7b37=Wr(Hr[_0x78afda(0x42d)](),_0x3324df);return _0x3e2b77(_0x4e7b37[_0x78afda(0x226)](_0xafd3ca=>({'id':_0xafd3ca['id'],'label':_0x423745['t'](_0x78afda(0x43c)+_0xafd3ca[_0x78afda(0x2a0)]),'pieSecondaryPlotType':_0xafd3ca[_0x78afda(0x344)],'value':_0xafd3ca[_0x78afda(0x2e3)]})));},[_0x3324df,_0x423745]),_0x1db858=_0x4561a1(_0x593f44[_0x358981(0x2b2)],_0x593f44['activeChartModel']),_0x38a264=_0x1db858?_0x4cf9ef[_0x358981(0x3d5)](_0x1db858['id']):void 0x0,_0x1738cb=_0x4561a1(_0x38a264==null?void 0x0:_0x38a264[_0x358981(0x33c)],_0x38a264==null?void 0x0:_0x38a264[_0x358981(0x41f)]()),_0x5af4cd=Array[_0x358981(0x363)](_0x1738cb),_0x162031=_0x1738cb&&!_0x5af4cd&&_0x1738cb[_0x358981(0x1d2)]?_0x389e65['Row']:_0x389e65[_0x358981(0x38c)],_0x9f108a=_0x5af4cd?(_0x1a9595=_0x1738cb[0x0])==null?void 0x0:_0x1a9595[_0x358981(0x2e2)]:_0x1738cb==null?void 0x0:_0x1738cb['rangeInfo'];return _0x5a92d2(_0x358981(0x298),{'className':_0x358981(0x2b5),'children':[_0x2897c9(_0x42165a,{'options':_0x3eff26}),_0x2897c9(_0x5a3ad4,{}),_0x2897c9(_0x3ef36c,{}),_0x2897c9(Qi,{}),_0x2897c9(_0x3a8440,{}),_0x2897c9(ea,{'dataRange':_0x1738cb,'primaryRange':_0x9f108a}),_0x2897c9(_0x308311,{'categoryToggleLabel':_0x423745['t'](_0x358981(0x349),_0x162031===_0x389e65[_0x358981(0x31e)]?_0x162031+'\x20'+(((_0x9f108a==null?void 0x0:_0x9f108a[_0x358981(0x2e2)][_0x358981(0x44a)])??0x0)+0x1):_0x162031+'\x20'+_0xa3323e((_0x9f108a==null?void 0x0:_0x9f108a[_0x358981(0x2e2)][_0x358981(0x29d)])??0x0)),'orientationControl':_0x5af4cd?void 0x0:_0x2897c9(_0x47a323,{'size':_0x358981(0x461),'onClick':()=>_0x406d3a[_0x358981(0x2ab)](_0x162031===_0x389e65[_0x358981(0x31e)]?_0x389e65[_0x358981(0x38c)]:_0x389e65['Row']),'children':_0x423745['t'](_0x358981(0x2f8))})}),_0x2897c9(_0x2e34e5,{}),_0x2897c9(_0x5d390c,{'defaultValues':_0x537e29[_0x358981(0x345)][_0x358981(0x205)]})]});}function ea(_0x48b3fa){const _0x3c0f24=_0xca568b;let {dataRange:_0x51e984,primaryRange:_0x294582}=_0x48b3fa,_0x2740f1=_0x2b41d0(Y),_0x574fb7=_0x2b41d0(_0x3ad976),_0x49d78b=_0x2b41d0(_0x46e33a),[_0xd07c6a,_0x2b0635]=_0x758b4d(!0x1),[_0x56bbd8,_0x1bef53]=_0x758b4d(!0x1),_0x2d18cb=Yi(_0x49d78b),_0x354bb5=Xi(_0x49d78b);_0x397741(()=>{const _0x4fb7cc=_0x28a2;_0x2740f1[_0x4fb7cc(0x39a)](_0xd07c6a);},[_0xd07c6a,_0x2740f1]);let _0x3c12c7=_0x32aaef(()=>_0x2132b5(async _0x140b1c=>{const _0x8bf1c8=_0x28a2;var _0x2964f8;if(Br(_0x51e984,_0x49d78b)===_0x140b1c)return;let _0x1dfb60=_0x140b1c[_0x8bf1c8(0x20e)](',')[_0x8bf1c8(0x37d)](Boolean)[_0x8bf1c8(0x226)](_0x1b0b9d)[0x0];if(!_0x1dfb60)return;let {unitId:_0x491387,sheetName:_0x2bc4b6,range:_0x3b989f}=_0x1dfb60,_0x1e609a=_0x491387||_0x2d18cb,_0x4849ca=((_0x2964f8=_0x49d78b[_0x8bf1c8(0x361)](_0x1e609a)['getSheetBySheetName'](_0x2bc4b6))==null?void 0x0:_0x2964f8[_0x8bf1c8(0x1d5)]())||(_0x294582==null?void 0x0:_0x294582[_0x8bf1c8(0x254)])||_0x354bb5;_0x4849ca&&_0x2740f1[_0x8bf1c8(0x1f3)]({'rangeInfo':{'range':_0x3b989f,'unitId':_0x1e609a,'subUnitId':_0x4849ca}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x51e984,_0x294582,_0x2740f1,_0x354bb5,_0x2d18cb,_0x49d78b]);return _0x397741(()=>()=>_0x3c12c7[_0x3c0f24(0x1db)](),[_0x3c12c7]),_0x2897c9(_0x3c0f24(0x298),{'className':_0x3c0f24(0x368),'children':_0x5a92d2(_0x3c0f24(0x298),{'children':[_0x2897c9(_0x114623,{'title':_0x574fb7['t'](_0x3c0f24(0x439))}),_0x2897c9(_0x2ede0d,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x2d18cb,'subUnitId':_0x354bb5,'initialValue':_0x51e984?Br(_0x51e984,_0x49d78b):'','onChange':(_0x4ce9f0,_0x5c64d5)=>_0x3c12c7(_0x5c64d5),'onFocusChange':_0x5b9c3b=>{_0x56bbd8||_0x2b0635(_0x5b9c3b);},'onRangeSelectorDialogVisibleChange':_0x58e2f7=>{_0x1bef53(_0x58e2f7),_0x2b0635(_0x58e2f7);}})]})});}const ta=_0xca568b(0x3c9),na=_0xca568b(0x426);function ra(){const _0x3e7b8a=_0xca568b;let [_0x27ee10,_0x23b59d]=_0x758b4d(_0x5c4d69['Data']),_0x42e818=_0x2b41d0(_0x34eb6c),_0x19d599=_0x2b41d0(_0x3ad976),_0x300047=_0x2b41d0(Y),_0x440036=_0x2b41d0(_0x781fb3),_0x297590=_0x2b41d0(_0xb7f357),_0x24c0d7=_0x4561a1(_0x440036[_0x3e7b8a(0x2b2)],_0x440036[_0x3e7b8a(0x242)]),_0x74a043=_0x4561a1(_0x300047['panelRoute$'],null),_0x90552a=_0x32aaef(()=>{const _0x5b2c05=_0x3e7b8a;var _0x3ded71;if(!_0x24c0d7)return null;let _0x25b563=_0x297590['getChartSourceSpec'](_0x24c0d7['id']);if(!_0x25b563)return null;let _0x22a9af=Array['isArray'](_0x25b563)?(_0x3ded71=_0x25b563[0x0])==null?void 0x0:_0x3ded71['range']:_0x25b563[_0x5b2c05(0x412)];return _0x22a9af?new _0x10f55f(_0x24c0d7,new _0x14bce4({'unitId':_0x22a9af[_0x5b2c05(0x2f9)],'subUnitId':_0x22a9af[_0x5b2c05(0x254)],'chartId':_0x24c0d7['id'],'injector':_0x42e818})):null;},[_0x24c0d7,_0x42e818,_0x297590]);if(_0x397741(()=>{const _0x2e73c7=_0x3e7b8a;var _0x28cb59,_0x1c069b;_0x24c0d7&&(_0x74a043==null?void 0x0:_0x74a043[_0x2e73c7(0x400)])===_0x24c0d7['id']&&(((_0x28cb59=_0x74a043[_0x2e73c7(0x3ae)])==null?void 0x0:_0x28cb59[_0x2e73c7(0x343)])===_0x5c4d69[_0x2e73c7(0x1f2)]&&_0x23b59d(_0x5c4d69[_0x2e73c7(0x1f2)]),((_0x1c069b=_0x74a043[_0x2e73c7(0x3ae)])==null?void 0x0:_0x1c069b[_0x2e73c7(0x343)])===_0x5c4d69[_0x2e73c7(0x2e6)]&&_0x23b59d(_0x5c4d69[_0x2e73c7(0x2e6)]));},[_0x24c0d7,_0x74a043]),!_0x90552a)return null;let _0x1ee1b4=_0x5a92d2(_0x3e7b8a(0x298),{'className':'univer-flex\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x2897c9(_0x405993,{'ariaLabel':_0x19d599['t'](_0x3e7b8a(0x2df)),'className':_0x3e7b8a(0x211),'items':[{'label':_0x19d599['t'](_0x3e7b8a(0x2c1)),'panelId':ta,'value':_0x5c4d69['Data']},{'label':_0x19d599['t'](_0x3e7b8a(0x256)),'panelId':na,'value':_0x5c4d69[_0x3e7b8a(0x1f2)]}],'value':_0x27ee10,'onChange':_0x23b59d}),_0x27ee10===_0x5c4d69[_0x3e7b8a(0x2e6)]?_0x2897c9(_0x1ace4b,{'id':ta,'className':_0x3e7b8a(0x2e9),'label':_0x19d599['t'](_0x3e7b8a(0x2c1)),'children':_0x2897c9($i,{'defaultValues':Ti})}):_0x2897c9(_0x1ace4b,{'id':na,'className':_0x3e7b8a(0x427),'label':_0x19d599['t'](_0x3e7b8a(0x256)),'children':_0x2897c9(Mi,{'defaultValues':Ti})})]});return _0x2897c9(_0x282e27,{'chartUIService':_0x300047,'hostAdapter':_0x90552a,'children':_0x1ee1b4});}let ia=class extends _0x110283{constructor(_0x26bc6d){const _0x140b05=_0xca568b;super(),this[_0x140b05(0x1e0)](_0x26bc6d[_0x140b05(0x2ef)](Z,ra));}};ia=q([K(0x0,_0x2b7ebf(_0x16eb50))],ia);let aa=class extends _0x110283{constructor(_0x1bbbf0,_0x557dcf,_0x5ea77a,_0x587ff4,_0x4e4308,_0x3f8ede,_0x36a06a,_0x17b414,_0x3bbf19){const _0x479955=_0xca568b;super(),this[_0x479955(0x1a2)]=_0x1bbbf0,this[_0x479955(0x3f0)]=_0x557dcf,this['_sidebarService']=_0x5ea77a,this['_menuManagerService']=_0x587ff4,this[_0x479955(0x207)]=_0x4e4308,this[_0x479955(0x214)]=_0x3f8ede,this[_0x479955(0x1cf)]=_0x36a06a,this['_contextService']=_0x17b414,this['_localeService']=_0x3bbf19,W(this,_0x479955(0x1d1),null),W(this,_0x479955(0x1f4),!0x1),this[_0x479955(0x381)]();}[_0xca568b(0x406)](){const _0x411ed2=_0xca568b;this[_0x411ed2(0x27f)](),super[_0x411ed2(0x406)]();}[_0xca568b(0x324)](){const _0x571cb5=_0xca568b;this[_0x571cb5(0x1f4)]||(this['_panelInitialized']=!0x0,this[_0x571cb5(0x1e0)](this['_commandService']['onCommandExecuted'](_0x4cebd1=>{const _0x112cf0=_0x571cb5;if(_0x4cebd1['id']!==H['id'])return;let _0x4531b3=_0x4cebd1['params'];this[_0x112cf0(0x310)](_0x4531b3[_0x112cf0(0x22a)],_0x4531b3[_0x112cf0(0x3ae)]);})));}['openChartPanelById'](_0x3f8442,_0x4f787c){const _0x2f7109=_0xca568b;let _0x39aa3b=this[_0x2f7109(0x3f0)][_0x2f7109(0x284)](_0x3f8442);_0x39aa3b&&(this[_0x2f7109(0x3f0)][_0x2f7109(0x1fa)](_0x39aa3b),this[_0x2f7109(0x41d)](),this['_sheetsChartUIService'][_0x2f7109(0x418)](!0x0),this[_0x2f7109(0x1cf)][_0x2f7109(0x3e6)](_0x3f8442,_0x4f787c??null));}['hidePanel'](){const _0x41517d=_0xca568b;let _0x5ac8a8=this[_0x41517d(0x1d1)];this[_0x41517d(0x1d1)]=null,this[_0x41517d(0x3c0)](),_0x5ac8a8==null||_0x5ac8a8['dispose']();}['_initMenus'](){const _0x16273d=_0xca568b;this[_0x16273d(0x452)][_0x16273d(0x287)]({[_0x584736[_0x16273d(0x348)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Gr}}}),this[_0x16273d(0x207)][_0x16273d(0x28c)](_0x1dc4b2[_0x16273d(0x1b7)],(_0x59ffe9,_0x54097e,_0x3030a7,_0xcea132)=>[{'label':this['_localeService']['t']('sheets-chart-ui.common.editChart'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x59ffe9,'subUnitId':_0x54097e,'drawingId':_0x3030a7},'disable':_0xcea132!==_0x1dc4b2['DRAWING_CHART']},{'label':this[_0x16273d(0x375)]['t'](_0x16273d(0x370)),'index':0x1,'commandId':_0x7fd27d['id'],'commandParams':{'unitId':_0x59ffe9,'drawings':[{'unitId':_0x59ffe9,'subUnitId':_0x54097e,'drawingId':_0x3030a7,'drawingType':_0xcea132}]},'disable':!0x1}],'sheets-chart-ui.common.chart');}[_0xca568b(0x41d)](){const _0x5b7afa=_0xca568b;this[_0x5b7afa(0x1d1)]=this[_0x5b7afa(0x2b6)][_0x5b7afa(0x339)]({'id':Z,'header':{'title':this['_localeService']['t'](_0x5b7afa(0x2df))},'children':{'label':Z},'onClose':()=>{const _0x53c7d3=_0x5b7afa;this[_0x53c7d3(0x1d1)]=null,this[_0x53c7d3(0x3c0)]();}});}[_0xca568b(0x3c0)](){const _0x205d92=_0xca568b;this[_0x205d92(0x1cf)][_0x205d92(0x418)](!0x1),this[_0x205d92(0x1cf)][_0x205d92(0x1f9)](),this[_0x205d92(0x3f0)][_0x205d92(0x242)]&&this[_0x205d92(0x3f0)][_0x205d92(0x1fa)](null),this[_0x205d92(0x1a2)][_0x205d92(0x225)](null),this['_contextService']['setContextValue'](_0x284d3d,!0x1);}};aa=q([K(0x0,_0x23c247),K(0x1,_0x2b7ebf(_0x781fb3)),K(0x2,_0x2b7ebf(_0xd6bb73)),K(0x3,_0x3ebd35),K(0x4,_0x2b7ebf(_0x4aa645)),K(0x5,_0x5a9a36),K(0x6,Y),K(0x7,_0x2b586f),K(0x8,_0x2b7ebf(_0x3ad976))],aa);let oa=class extends _0x110283{constructor(_0x4dea4a,_0x43a55d,_0x3624c4,_0x41deda,_0x12add6){const _0x44ceff=_0xca568b;super(),this['_sheetSkeletonService']=_0x4dea4a,this[_0x44ceff(0x307)]=_0x43a55d,this[_0x44ceff(0x447)]=_0x3624c4,this['_chartModelService']=_0x41deda,this['_sheetsChartService']=_0x12add6,W(this,_0x44ceff(0x3c8),void 0x0),this['_initCopyPaste']();}get[_0xca568b(0x3ab)](){return this['_sheetDrawingService']['getFocusDrawings']();}[_0xca568b(0x1d8)](){const _0x528988=_0xca568b;this[_0x528988(0x1e0)](this['_sheetClipboardService'][_0x528988(0x228)]({'id':_0x347d8f,'onBeforeCopyFocusedObject':(_0x27af69,_0x1f8496,_0x27f868)=>{const _0x22546f=_0x528988;this[_0x22546f(0x3c8)]=null;let _0x3de531=this['_focusedDrawings']['filter'](_0xf2f5d=>this[_0x22546f(0x396)](_0xf2f5d));return _0x3de531['length']!==0x0&&(this[_0x22546f(0x3c8)]={'unitId':_0x27af69,'subUnitId':_0x1f8496,'copyType':_0x27f868,'drawings':_0x3de531},!0x0);},'onBeforeCopy':(_0x35b71b,_0x17718a,_0x35b393,_0x401ab4)=>{const _0x3acd5d=_0x528988;this[_0x3acd5d(0x3c8)]=null,this['_createCopyInfoByRange'](_0x35b71b,_0x17718a,_0x35b393,_0x401ab4);},'onPasteCells':(_0x21f2c7,_0x118382,_0x5473ee,_0x492a4c)=>{const _0x36c7b3=_0x528988;if(!_0x492a4c[_0x36c7b3(0x3d9)]||!_0x21f2c7||!this[_0x36c7b3(0x3c8)])return{'redos':[],'undos':[]};let {pasteType:_0x1a6314}=_0x492a4c;return _0x1a6314===_0x360986['DEFAULT_PASTE']?this['_generatePasteMutations'](_0x118382,this[_0x36c7b3(0x3c8)][_0x36c7b3(0x3a2)]===_0x3e768c[_0x36c7b3(0x260)]):{'redos':[],'undos':[]};}}));}[_0xca568b(0x303)](_0x3b8689,_0x3ee0c7,_0x5dc5f4,_0x5cc08c){const _0x553d98=_0xca568b;let _0x4c8a76=this[_0x553d98(0x1f7)]['getSkeleton'](_0x3b8689,_0x3ee0c7);if(!_0x4c8a76)return;let _0x16503d=_0x2f01d5(_0x4c8a76,_0x5dc5f4);if(!_0x16503d)return;let {startX:_0x341b25,endX:_0x4ab63e,startY:_0x1ace82,endY:_0x3caea0}=_0x16503d,_0x36644b=this[_0x553d98(0x447)][_0x553d98(0x340)](_0x3b8689,_0x3ee0c7),_0xac8746=[];for(let [_0x32e44a,_0x41ed6d]of Object[_0x553d98(0x3d3)](_0x36644b)){if(!this[_0x553d98(0x396)](_0x41ed6d))continue;let {transform:_0x180b75}=_0x41ed6d;if(!_0x180b75)continue;let {left:_0x3ba44a=0x0,top:_0x549137=0x0,width:_0x49a1a0=0x0,height:_0x3d82bf=0x0}=_0x180b75;_0x341b25<=_0x3ba44a&&_0x4ab63e>=_0x3ba44a+_0x49a1a0&&_0x1ace82<=_0x549137&&_0x3caea0>=_0x549137+_0x3d82bf&&_0xac8746[_0x553d98(0x338)](_0x41ed6d);}_0xac8746[_0x553d98(0x3c2)]>0x0&&(this[_0x553d98(0x3c8)]={'unitId':_0x3b8689,'subUnitId':_0x3ee0c7,'copyType':_0x5cc08c,'copyRange':_0x5dc5f4,'drawings':_0xac8746});}['_isOwnedChart'](_0x2e3af7){const _0x2acf0c=_0xca568b;return _0x2e3af7[_0x2acf0c(0x2ac)]===_0x1dc4b2['DRAWING_CHART']&&this[_0x2acf0c(0x1ac)][_0x2acf0c(0x3e2)](_0x2e3af7[_0x2acf0c(0x2f9)],_0x2e3af7[_0x2acf0c(0x22a)])===_0x2e3af7[_0x2acf0c(0x254)];}['_generatePasteMutations'](_0x113be1,_0x439bdc){const _0x2c32ad=_0xca568b;let {unitId:_0xdae3f8,subUnitId:_0x551733,range:_0x518b7e}=_0x113be1,_0x100bb8=this[_0x2c32ad(0x1f7)][_0x2c32ad(0x2e0)](_0xdae3f8,_0x551733);if(!_0x100bb8)return{'redos':[],'undos':[]};let _0x228294=_0x2b8b50(_0x518b7e),{unitId:_0x1dfa25,subUnitId:_0x2807fe,copyRange:_0x3c3507,drawings:_0x40dd53}=this[_0x2c32ad(0x3c8)],_0x29f9ec=this['_sheetSkeletonService'][_0x2c32ad(0x2e0)](_0x1dfa25,_0x2807fe);if(!_0x29f9ec)return{'redos':[],'undos':[]};let _0x2197ad=[],_0x5559ad=[];for(let _0x116613 of _0x40dd53){let {drawingId:_0x12b088,transform:_0x205162,sheetTransform:_0x12df10}=_0x116613,_0x89c7f4=this['_chartModelService']['getChartModel'](_0x12b088);if(!_0x89c7f4||!_0x205162||!_0x12df10)continue;let _0x4c5ee7=this['_updateTransform']({'transform':_0x205162,'sheetTransform':_0x12df10},{'skeleton':_0x29f9ec,'range':_0x3c3507},{'skeleton':_0x100bb8,'range':_0x228294});if(_0x439bdc){let {redos:_0x2532b3,undos:_0x3a1da8}=this['_generateCutPasteMutations']({'fromUnitId':_0x1dfa25,'fromSubUnitId':_0x2807fe,'toUnitId':_0xdae3f8,'toSubUnitId':_0x551733,'drawing':_0x116613,'newTransforms':_0x4c5ee7},_0x89c7f4);_0x2197ad[_0x2c32ad(0x338)](..._0x2532b3),_0x5559ad['push'](..._0x3a1da8);continue;}let {redos:_0x10d90b,undos:_0x45d6ce}=this['_generateCopyPasteMutations']({'toUnitId':_0xdae3f8,'toSubUnitId':_0x551733,'drawing':_0x116613,'newTransforms':_0x4c5ee7},_0x89c7f4);_0x2197ad['push'](..._0x10d90b),_0x5559ad['push'](..._0x45d6ce);}return{'redos':_0x2197ad,'undos':_0x5559ad};}[_0xca568b(0x1d4)](_0x4ddb18,_0x2b7fbc){const _0x3b54a2=_0xca568b;let {fromUnitId:_0x399958,fromSubUnitId:_0x43014c,toUnitId:_0x24c186,toSubUnitId:_0x4e5a08,drawing:_0x50f7e7,newTransforms:_0x1501e1}=_0x4ddb18,_0x53a8df={..._0x50f7e7,'unitId':_0x24c186,'subUnitId':_0x4e5a08,'transform':_0x1501e1[_0x3b54a2(0x21c)],'sheetTransform':_0x1501e1[_0x3b54a2(0x387)]};if(_0x24c186===_0x399958&&_0x4e5a08===_0x43014c){let {redo:_0x32fee3,undo:_0x39955b,objects:_0x50f5fa}=this[_0x3b54a2(0x447)][_0x3b54a2(0x1ed)]([_0x53a8df]);return{'redos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9[_0x3b54a2(0x332)],'op':_0x32fee3,'objects':_0x50f5fa}}],'undos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9['UPDATE'],'op':_0x39955b,'objects':_0x50f5fa}}]};}{let _0x261920=this[_0x3b54a2(0x447)][_0x3b54a2(0x40b)]([_0x50f7e7]),_0x1fd9d5=this['_sheetDrawingService']['getBatchAddOp']([_0x53a8df]),_0x58dc60=this[_0x3b54a2(0x1ac)][_0x3b54a2(0x35e)](_0x2b7fbc['id']);if(!_0x58dc60)return{'redos':[],'undos':[]};let {chartType:_0xbf52a9,context:_0x77799b,style:_0x108df2,dataAggregation:_0x2b9702}=_0x2b7fbc[_0x3b54a2(0x286)]();return{'redos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'type':_0x5c18f9[_0x3b54a2(0x274)],'op':_0x261920[_0x3b54a2(0x408)],'objects':_0x261920[_0x3b54a2(0x30f)]}},{'id':_0x31720e['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'chartId':_0x50f7e7[_0x3b54a2(0x22a)]}},{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9[_0x3b54a2(0x3b8)],'op':_0x1fd9d5[_0x3b54a2(0x408)],'objects':_0x1fd9d5[_0x3b54a2(0x30f)]}},{'id':_0x217994['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'chartId':_0x50f7e7[_0x3b54a2(0x22a)],'chartType':_0xbf52a9,..._0x16c66f(_0x58dc60),'context':_0x77799b,'style':_0x108df2,'dataAggregation':_0x2b9702}}],'undos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'type':_0x5c18f9['INSERT'],'op':_0x261920[_0x3b54a2(0x38a)],'objects':_0x261920[_0x3b54a2(0x30f)]}},{'id':_0x217994['id'],'params':{'unitId':_0x399958,'subUnitId':_0x43014c,'chartId':_0x50f7e7[_0x3b54a2(0x22a)],'chartType':_0xbf52a9,..._0x16c66f(_0x58dc60),'context':_0x77799b,'style':_0x108df2,'dataAggregation':_0x2b9702}},{'id':_0x3866ba['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'type':_0x5c18f9[_0x3b54a2(0x274)],'op':_0x1fd9d5['undo'],'objects':_0x1fd9d5['objects']}},{'id':_0x31720e['id'],'params':{'unitId':_0x24c186,'subUnitId':_0x4e5a08,'chartId':_0x50f7e7['drawingId']}}]};}}[_0xca568b(0x1bb)](_0x3a1c36,_0x5c5027){const _0x2e32fb=_0xca568b;let {toUnitId:_0x168870,toSubUnitId:_0x5655f5,drawing:_0x478f3c,newTransforms:_0x5271c1}=_0x3a1c36,_0x38d600=_0x4a5315(),_0x5f02e3={..._0x478f3c,'unitId':_0x168870,'subUnitId':_0x5655f5,'drawingId':_0x38d600,'transform':_0x5271c1[_0x2e32fb(0x21c)],'sheetTransform':_0x5271c1['sheetTransform']},{redo:_0x41afd1,undo:_0x1fab86,objects:_0x5c2980}=this[_0x2e32fb(0x447)][_0x2e32fb(0x27a)]([_0x5f02e3]),_0x1b04ba=this['_sheetsChartService'][_0x2e32fb(0x35e)](_0x5c5027['id']);if(!_0x1b04ba)return{'redos':[],'undos':[]};let {chartType:_0x2fffed,context:_0x2af8b9,style:_0x491210,dataAggregation:_0x803878}=_0x5c5027[_0x2e32fb(0x286)]();return{'redos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'type':_0x5c18f9[_0x2e32fb(0x3b8)],'op':_0x41afd1,'objects':_0x5c2980}},{'id':_0x217994['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'chartId':_0x38d600,'chartType':_0x2fffed,..._0x16c66f(_0x1b04ba),'context':_0x2af8b9,'style':_0x491210,'dataAggregation':_0x803878}}],'undos':[{'id':_0x3866ba['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'type':_0x5c18f9[_0x2e32fb(0x274)],'op':_0x1fab86,'objects':_0x5c2980}},{'id':_0x31720e['id'],'params':{'unitId':_0x168870,'subUnitId':_0x5655f5,'chartId':_0x38d600}}]};}[_0xca568b(0x1f8)](_0x8f690d,_0x5b03bb,_0x5c6c96){const _0x454810=_0xca568b;let {range:_0x18d18e,skeleton:_0x15ae3e}=_0x5b03bb,{range:_0x46c42d,skeleton:_0x541a49}=_0x5c6c96,{transform:_0x1992e7,sheetTransform:_0x14a91a}=_0x8f690d,_0x242f43={..._0x1992e7};if(_0x18d18e){let _0x80266e=_0x2f01d5(_0x15ae3e,_0x18d18e),_0x235262=_0x2f01d5(_0x541a49,_0x46c42d);if(_0x80266e&&_0x235262){let _0x4f5b6c=_0x235262['startX']-_0x80266e[_0x454810(0x3b7)],_0x32de6c=_0x235262[_0x454810(0x325)]-_0x80266e[_0x454810(0x325)];_0x242f43[_0x454810(0x2c3)]=(_0x242f43[_0x454810(0x2c3)]??0x0)+_0x4f5b6c,_0x242f43[_0x454810(0x45a)]=(_0x242f43[_0x454810(0x45a)]??0x0)+_0x32de6c;}}else{let _0x38d82b=_0x2f01d5(_0x541a49,_0x46c42d);_0x242f43[_0x454810(0x2c3)]=_0x38d82b==null?void 0x0:_0x38d82b[_0x454810(0x3b7)],_0x242f43[_0x454810(0x45a)]=_0x38d82b==null?void 0x0:_0x38d82b['startY'];}return{'transform':_0x242f43,'sheetTransform':_0x3c121b(_0x242f43,_0x541a49)??_0x14a91a};}};oa=q([K(0x0,_0x2b7ebf(_0x225140)),K(0x1,_0x2b7ebf(_0x3c57bc)),K(0x2,_0x2b7ebf(_0x124322)),K(0x3,_0x2b7ebf(_0x781fb3)),K(0x4,_0x2b7ebf(_0xb7f357))],oa);let sa=class extends _0x110283{constructor(_0x384008,_0x2c62fe,_0x274532,_0x25bc4d){const _0x1dd6ee=_0xca568b;super(),this[_0x1dd6ee(0x214)]=_0x384008,this['_localeService']=_0x2c62fe,this['_sheetPermissionCheckController']=_0x274532,this[_0x1dd6ee(0x1ac)]=_0x25bc4d,this[_0x1dd6ee(0x336)]();}['_initPermission'](){const _0x23ac9f=_0xca568b;this['disposeWithMe'](this[_0x23ac9f(0x214)]['beforeCommandExecuted'](_0x4f2c24=>{const _0x29caaa=_0x23ac9f;let _0x28b332,_0x406b3b;if(_0x4f2c24['id']===_0x438cd9['id']){let _0x5664a0=_0x4f2c24[_0x29caaa(0x2f1)];_0x28b332=_0x5664a0[_0x29caaa(0x2f9)],_0x406b3b=_0x5664a0[_0x29caaa(0x254)];}else{if(_0x4f2c24['id']===_0x180bba['id']||_0x4f2c24['id']===_0x2edcc4['id']){let _0xa9d5c5=_0x4f2c24[_0x29caaa(0x2f1)];_0x28b332=_0xa9d5c5[_0x29caaa(0x2f9)],_0x406b3b=this[_0x29caaa(0x1ac)][_0x29caaa(0x3e2)](_0xa9d5c5['unitId'],_0xa9d5c5[_0x29caaa(0x3e7)]);}}_0x28b332&&_0x406b3b&&(this[_0x29caaa(0x446)][_0x29caaa(0x37e)]({'workbookTypes':[_0xd0e974],'worksheetTypes':[_0x437d18]},_0x28b332,_0x406b3b)||this[_0x29caaa(0x446)][_0x29caaa(0x320)](this[_0x29caaa(0x375)]['t'](_0x29caaa(0x331))));}));}};sa=q([K(0x0,_0x2b7ebf(_0x5a9a36)),K(0x1,_0x2b7ebf(_0x3ad976)),K(0x2,_0x2b7ebf(_0x49ff14)),K(0x3,_0x2b7ebf(_0xb7f357))],sa);let ca=class extends _0x110283{constructor(_0x4c1321,_0x1d30c1){const _0x1a0bd9=_0xca568b;super(),this['_renderService']=_0x1d30c1,this['disposeWithMe'](_0x4c1321[_0x1a0bd9(0x2ef)](this));}[_0xca568b(0x3de)](_0x3c6688){const _0xcd2b43=_0xca568b;return _0xcd2b43(0x2f9)in _0x3c6688&&_0xcd2b43(0x254)in _0x3c6688;}[_0xca568b(0x42c)](_0x525882,_0x10da51){const _0x19e928=_0xca568b;return this[_0x19e928(0x201)][_0x19e928(0x42c)](_0x525882[_0x19e928(0x200)](),_0x10da51);}};ca=q([K(0x0,_0x2b7ebf(_0x4aa169)),K(0x1,_0x2b7ebf(J))],ca);let Q=class extends _0x327d6b{constructor(_0x3dad44=Mr,_0x3ebc10,_0x430612,_0x4238f6){const _0x2518ff=_0xca568b;super(),this[_0x2518ff(0x1ea)]=_0x3dad44,this[_0x2518ff(0x289)]=_0x3ebc10,this['_configService']=_0x430612,this['_commandService']=_0x4238f6;let {..._0x106809}=_0x37ac4e({},Mr,this[_0x2518ff(0x1ea)]);this[_0x2518ff(0x239)]['setConfig'](jr,_0x106809),this['_initCommands']();}[_0xca568b(0x3ba)](){const _0x15f2d8=_0xca568b;let _0x214bb3=[[ia],[Y,{'useClass':Ci}],[yi,{'useClass':vi}],[di],[J],[ca],[aa],[Vi],[Hi],[oa],[Ji],[sa]],_0x14905c=[[ia],[aa],[Hi],[Vi],[ca],[Y],[oa],[Ji],[sa]];_0x214bb3[_0x15f2d8(0x308)](_0x40b263=>this[_0x15f2d8(0x289)][_0x15f2d8(0x36f)](_0x40b263)),_0x548fbf(this[_0x15f2d8(0x289)],_0x14905c);}['onRendered'](){const _0x21afff=_0xca568b;var _0x491756;(_0x491756=this[_0x21afff(0x289)][_0x21afff(0x29a)](aa))==null||_0x491756[_0x21afff(0x324)]();}[_0xca568b(0x2ed)](){const _0x349898=_0xca568b;[U,H][_0x349898(0x308)](_0x3d572d=>this[_0x349898(0x1e0)](this[_0x349898(0x214)][_0x349898(0x302)](_0x3d572d)));}};W(Q,_0xca568b(0x1bc),_0x50b631[_0xca568b(0x2f0)]),W(Q,'pluginName',_0xca568b(0x2eb)),W(Q,'packageName',zi),W(Q,_0xca568b(0x337),Bi),Q=q([_0x75347f(_0x47aa2e,_0x1e792f,_0x8fec38,_0x3fd6e8,_0x223cfa,_0x3cd5fc,_0x3f74b2,_0x1d2bf4,_0x42b49c,_0x28a947),K(0x1,_0x2b7ebf(_0x34eb6c)),K(0x2,_0x116807),K(0x3,_0x5a9a36)],Q);const la={'scaleX':0x1,'scaleY':0x1};function ua(_0x421b65){const _0x312a08=_0xca568b;let _0x2a8cc7=_0x421b65[_0x312a08(0x24d)];return _0x2a8cc7 instanceof MouseEvent?_0x2a8cc7:void 0x0;}function da(_0x50e95c){const _0x2fa1c8=_0xca568b;let _0x5297f=_0x50e95c['nativeEvent'],_0x2f66db=_0x5297f==null?void 0x0:_0x5297f[_0x2fa1c8(0x2b0)];return _0x2f66db instanceof Element?_0x2f66db:void 0x0;}function fa(_0x16b625){var _0x320453;return(_0x320453=da(_0x16b625))==null?void 0x0:_0x320453['getBoundingClientRect']();}function pa(_0x5e8999){const _0x556f2d=_0xca568b;return _0x5e8999['width']||_0x5e8999['right']-_0x5e8999[_0x556f2d(0x2c3)];}function ma(_0x1003c2){const _0x1d66d3=_0xca568b;return _0x1003c2[_0x1d66d3(0x3ce)]||_0x1003c2['bottom']-_0x1003c2[_0x1d66d3(0x45a)];}function ha(_0x29a49d,_0x3cb295){const _0x3916fb=_0xca568b;let _0x11dd74=_0x29a49d[_0x3916fb(0x453)]||(_0x29a49d instanceof HTMLElement?_0x29a49d[_0x3916fb(0x215)]:0x0),_0x69f38f=_0x29a49d[_0x3916fb(0x402)]||(_0x29a49d instanceof HTMLElement?_0x29a49d[_0x3916fb(0x252)]:0x0),_0x3bce97=pa(_0x3cb295),_0x438dfa=ma(_0x3cb295);return{'scaleX':_0x11dd74>0x0&&_0x3bce97>0x0?_0x3bce97/_0x11dd74:la[_0x3916fb(0x437)],'scaleY':_0x69f38f>0x0&&_0x438dfa>0x0?_0x438dfa/_0x69f38f:la['scaleY']};}function ga(_0x39964a,_0x222b18,_0x35b966){const _0xbc611c=_0xca568b;return{'left':_0x39964a[_0xbc611c(0x2c3)]+_0x222b18[_0xbc611c(0x2c3)]*_0x35b966['scaleX'],'right':_0x39964a['left']+_0x222b18[_0xbc611c(0x334)]*_0x35b966[_0xbc611c(0x437)],'top':_0x39964a[_0xbc611c(0x45a)]+_0x222b18['top']*_0x35b966[_0xbc611c(0x3c3)],'bottom':_0x39964a['top']+_0x222b18['bottom']*_0x35b966[_0xbc611c(0x3c3)]};}function _a(_0x4eee82){const _0x1839b7=_0xca568b;let _0x422695=da(_0x4eee82),_0x5ecc1b=_0x4eee82[_0x1839b7(0x2e4)][_0x1839b7(0x443)];return _0x422695&&_0x5ecc1b?()=>{const _0x5210cc=_0x1839b7;let _0x1d7064=_0x422695[_0x5210cc(0x1af)]();return ga(_0x1d7064,_0x5ecc1b,ha(_0x422695,_0x1d7064));}:()=>{const _0x177023=_0x1839b7;let _0x1e1476=fa(_0x4eee82);if(_0x1e1476&&_0x5ecc1b)return ga(_0x1e1476,_0x5ecc1b,_0x422695?ha(_0x422695,_0x1e1476):la);let _0x44a7e9=ua(_0x4eee82),_0x561cc1=_0x422695&&_0x1e1476?ha(_0x422695,_0x1e1476):la,_0xd36320=(_0x44a7e9==null?void 0x0:_0x44a7e9[_0x177023(0x34e)])??(_0x1e1476?_0x1e1476[_0x177023(0x2c3)]+_0x4eee82['localPoint']['x']*_0x561cc1[_0x177023(0x437)]:_0x4eee82[_0x177023(0x32e)]['x']),_0x554aa1=(_0x44a7e9==null?void 0x0:_0x44a7e9[_0x177023(0x440)])??(_0x1e1476?_0x1e1476[_0x177023(0x45a)]+_0x4eee82[_0x177023(0x32e)]['y']*_0x561cc1['scaleY']:_0x4eee82[_0x177023(0x32e)]['y']);return{'left':_0xd36320,'right':_0xd36320+0x1,'top':_0x554aa1,'bottom':_0x554aa1+0x1};};}function va(_0x1347ee){const _0x25117c=_0xca568b;return typeof _0x1347ee==_0x25117c(0x2f7)&&Number[_0x25117c(0x2da)](_0x1347ee);}function ya(_0xbc4d4b){if(!_0xbc4d4b||typeof _0xbc4d4b!='object')return!0x0;let {startX:_0x2bf35e,endX:_0x5226ce,startY:_0x3e9588,endY:_0x11863d}=_0xbc4d4b;return!va(_0x2bf35e)||!va(_0x5226ce)||!va(_0x3e9588)||!va(_0x11863d)||_0x5226ce-_0x2bf35e>0x2&&_0x11863d-_0x3e9588>0x2;}function ba(_0x1db426){const _0xfd3a7a=_0xca568b;return _0x1db426[_0xfd3a7a(0x334)]<=_0x1db426[_0xfd3a7a(0x2c3)]||_0x1db426[_0xfd3a7a(0x2c6)]<=_0x1db426['top']?!0x1:typeof window>'u'||_0x1db426[_0xfd3a7a(0x334)]>0x0&&_0x1db426[_0xfd3a7a(0x2c6)]>0x0&&_0x1db426['left']<window['innerWidth']&&_0x1db426[_0xfd3a7a(0x45a)]<window['innerHeight'];}function xa(_0x2c91bf){const _0x31f88c=_0xca568b;var _0x466f9b;return _0x2c91bf==null||(_0x466f9b=_0x2c91bf[_0x31f88c(0x2bc)])==null?void 0x0:_0x466f9b[_0x31f88c(0x2b9)](_0x2c91bf);}function Sa(_0x3fd7c7,_0xd2e324,_0x1eaa9e){const _0xa1a669=_0xca568b;let _0x35c755=_a(_0x3fd7c7),_0x5cfbcb=xa(_0xd2e324),_0x5a23de=_0x35c755(),_0x7fefe=new _0x16eb2c(_0x5a23de),_0x9b80a1=new _0x47b662(),_0x18ea65=!0x1,_0x2a7677=!0x1,_0x4d8d47=_0x1b6f65=>ya(_0x5cfbcb)&&ba(_0x1b6f65),_0x44c054=()=>{_0x2a7677||_0x18ea65||(_0x2a7677=!0x0,queueMicrotask(()=>{const _0x4d429e=_0x28a2;if(_0x2a7677=!0x1,!_0x18ea65){let _0x27a152=_0x35c755();if(!_0x4d8d47(_0x27a152)){_0x1eaa9e();return;}_0x7fefe[_0x4d429e(0x1b5)](_0x27a152);}}));};return _0xd2e324&&_0x9b80a1[_0xa1a669(0x36f)](_0xd2e324[_0xa1a669(0x1f1)](_0x500e00=>{_0x5cfbcb=_0x500e00,_0x44c054();})),typeof window<'u'&&_0x9b80a1[_0xa1a669(0x36f)](_0x3fa440(_0x2e3bd5(window,_0xa1a669(0x281),{'capture':!0x0}),_0x2e3bd5(window,_0xa1a669(0x222)))[_0xa1a669(0x2d3)](_0x1b536f(0x10))['subscribe'](_0x44c054)),{'initialRect':_0x5a23de,'anchorRect$':_0x7fefe['asObservable'](),'visible':_0x4d8d47(_0x5a23de),'dispose':()=>{const _0x22f709=_0xa1a669;_0x18ea65=!0x0,_0x9b80a1[_0x22f709(0x406)](),_0x7fefe[_0x22f709(0x388)]();}};}const Ca='sheets-chart-element-float-menu';let wa=class extends _0x110283{constructor(_0x1922b6,_0x59834d,_0x2769e7,_0x20ab88,_0x21bf36,_0x2a4326,_0x27a718,_0x3032cd,_0x1d4434){const _0xeb05d3=_0xca568b;super(),this['_chartModelService']=_0x1922b6,this[_0xeb05d3(0x28f)]=_0x59834d,this[_0xeb05d3(0x26a)]=_0x2769e7,this[_0xeb05d3(0x207)]=_0x20ab88,this[_0xeb05d3(0x40f)]=_0x21bf36,this['_chartUIService']=_0x2a4326,this['_adapterRegistry']=_0x27a718,this[_0xeb05d3(0x214)]=_0x3032cd,this[_0xeb05d3(0x289)]=_0x1d4434,W(this,_0xeb05d3(0x45d),null),W(this,_0xeb05d3(0x32b),null),W(this,'_popupSessionKey',null),this[_0xeb05d3(0x1a8)](),this[_0xeb05d3(0x2d7)]();}['dispose'](){const _0x47d523=_0xca568b;this[_0x47d523(0x366)](),super['dispose']();}[_0xca568b(0x1a8)](){const _0x4fb2fe=_0xca568b;let _0x36fe70=_0x38fe22({'chartUIService':this[_0x4fb2fe(0x2c8)],'getHostAdapter':_0x5dea5f=>{const _0x446ee2=_0x4fb2fe;let _0x8674ca=this[_0x446ee2(0x3f0)]['getChartModel'](_0x5dea5f[_0x446ee2(0x400)]);if(_0x8674ca&&_0x5dea5f[_0x446ee2(0x254)])return new _0x10f55f(_0x8674ca,new _0x14bce4({'unitId':_0x5dea5f[_0x446ee2(0x2f9)],'subUnitId':_0x5dea5f[_0x446ee2(0x254)],'chartId':_0x5dea5f['chartId'],'injector':this[_0x446ee2(0x289)]}));},'close':()=>this[_0x4fb2fe(0x366)](),'openFullPanel':_0x75ae50=>{const _0x136091=_0x4fb2fe;let {unitId:_0x35cd1b,subUnitId:_0x2b01b6,drawingId:_0x743e32,chartId:_0x2c4927}=_0x75ae50,_0x3f394e=_0x498bfb(_0x75ae50[_0x136091(0x2b0)]);this[_0x136091(0x214)][_0x136091(0x304)](H['id'],{'unitId':_0x35cd1b,'subUnitId':_0x2b01b6??'','drawingId':_0x743e32??_0x2c4927,..._0x3f394e?{'route':_0x3f394e}:{}});}});this[_0x4fb2fe(0x1e0)](this[_0x4fb2fe(0x346)]['register'](Ca,_0x36fe70));}[_0xca568b(0x2d7)](){const _0x44aa4c=_0xca568b;this[_0x44aa4c(0x1e0)](this[_0x44aa4c(0x3f0)][_0x44aa4c(0x229)]['subscribe'](_0x83f142=>{const _0x182fbf=_0x44aa4c;let _0x23e9ac=new _0x47b662();_0x23e9ac[_0x182fbf(0x36f)](this[_0x182fbf(0x28f)]['on'](_0x83f142['id'],'click',_0x25e12f=>{const _0x296563=_0x182fbf;this[_0x296563(0x2dd)](_0x83f142['id'],_0x25e12f);})),_0x23e9ac[_0x182fbf(0x36f)](this[_0x182fbf(0x28f)]['on'](_0x83f142['id'],'dblclick',()=>{const _0x194659=_0x182fbf;this[_0x194659(0x258)](_0x83f142['id']);})),_0x83f142[_0x182fbf(0x20b)](()=>{const _0x55e925=_0x182fbf;_0x23e9ac[_0x55e925(0x406)](),this[_0x55e925(0x3f3)](_0x83f142['id']);}),this['disposeWithMe'](_0x23e9ac);})),this['disposeWithMe'](_0x3c6cb0([this['_chartModelService'][_0x44aa4c(0x2b2)],this[_0x44aa4c(0x2c8)][_0x44aa4c(0x30a)]])['subscribe'](([_0xb06b0f,_0x4ea376])=>{const _0x320119=_0x44aa4c;(!_0x4ea376||this[_0x320119(0x32b)]&&(_0xb06b0f==null?void 0x0:_0xb06b0f['id'])!==this[_0x320119(0x32b)])&&this[_0x320119(0x366)]();})),this[_0x44aa4c(0x1e0)](this[_0x44aa4c(0x40f)][_0x44aa4c(0x21d)][_0x44aa4c(0x1f1)](({id:_0x1b6ce9})=>{this['_clearSelectedTarget'](_0x1b6ce9);})),this[_0x44aa4c(0x1e0)](this['_sheetCanvasFloatDomManagerService'][_0x44aa4c(0x2de)]['subscribe'](({id:_0x308995})=>{const _0x3cabdd=_0x44aa4c;this[_0x3cabdd(0x3f3)](_0x308995);})),this[_0x44aa4c(0x1e0)](this['_chartHostProvider'][_0x44aa4c(0x380)][_0x44aa4c(0x1f1)](_0x59f991=>{this['_clearSelectedTarget'](_0x59f991);}));}[_0xca568b(0x258)](_0x37b8bd){const _0x44ba11=_0xca568b;if(this['_chartUIService'][_0x44ba11(0x3c6)])return;let _0x5dd848=this[_0x44ba11(0x3f0)][_0x44ba11(0x284)](_0x37b8bd),_0x9c600f=this[_0x44ba11(0x40f)]['getFloatDomInfo'](_0x37b8bd);_0x5dd848&&_0x9c600f&&this['_commandService'][_0x44ba11(0x304)](H['id'],{'unitId':_0x9c600f[_0x44ba11(0x2f9)],'subUnitId':_0x9c600f[_0x44ba11(0x254)]??'','drawingId':_0x37b8bd});}[_0xca568b(0x2dd)](_0x51d3b3,_0x173b05){const _0x379e87=_0xca568b;if(!this[_0x379e87(0x2c8)]['isElementEditModeActive'](_0x51d3b3))return;let _0xc8a165=this[_0x379e87(0x3f0)][_0x379e87(0x284)](_0x51d3b3),_0x3dc06a=_0xc8a165?ei(_0xc8a165,_0x173b05[_0x379e87(0x2e4)]):void 0x0;if(!_0x3dc06a){this[_0x379e87(0x2c8)][_0x379e87(0x1f9)](),this[_0x379e87(0x366)]();return;}let _0x3bf1c6=this[_0x379e87(0x40f)]['getFloatDomInfo'](_0x51d3b3);if(!_0xc8a165||!_0x3bf1c6){this['_chartUIService'][_0x379e87(0x1f9)](),this['_closePopup']();return;}let _0x382bed=JSON[_0x379e87(0x3ed)]([_0x3bf1c6['unitId'],_0x3bf1c6['subUnitId'],_0x51d3b3,_0x3dc06a[_0x379e87(0x2b0)]]);if(this[_0x379e87(0x45d)]&&this[_0x379e87(0x3b3)]===_0x382bed||(this[_0x379e87(0x2c8)][_0x379e87(0x3e6)](_0x51d3b3,_0x3dc06a[_0x379e87(0x3ae)]),this['_closePopup'](),!_0x3dc06a[_0x379e87(0x36c)]))return;let _0x1df6b2=Sa(_0x173b05,_0x3bf1c6['position$'],()=>this[_0x379e87(0x3f5)](_0x51d3b3));if(!_0x1df6b2[_0x379e87(0x1a0)]){_0x1df6b2[_0x379e87(0x406)]();return;}let _0x1d45b7=this[_0x379e87(0x207)][_0x379e87(0x41e)](_0x1df6b2[_0x379e87(0x326)],_0x1df6b2[_0x379e87(0x27e)],{'componentKey':_0x1fff77,'constrainToCanvas':!0x0,'direction':_0x379e87(0x3d2),'offset':[0x0,0x8],'extraProps':{'unitId':_0x3bf1c6['unitId'],'subUnitId':_0x3bf1c6[_0x379e87(0x254)],'chartId':_0x51d3b3,'drawingId':_0x51d3b3,'element':_0x173b05['hit'],'target':_0x3dc06a['target'],'adapterKey':Ca}},_0x3bf1c6['unitId'],_0x3bf1c6[_0x379e87(0x254)])??null;if(!_0x1d45b7){_0x1df6b2[_0x379e87(0x406)]();return;}let _0xe43a7=new _0x47b662();_0xe43a7['add'](_0x1d45b7),_0xe43a7['add'](_0x1df6b2),this[_0x379e87(0x45d)]=_0xe43a7,this[_0x379e87(0x32b)]=_0x51d3b3,this[_0x379e87(0x3b3)]=_0x382bed;}[_0xca568b(0x366)](){const _0x5710a2=_0xca568b;var _0x225c1b;(_0x225c1b=this[_0x5710a2(0x45d)])==null||_0x225c1b['dispose'](),this[_0x5710a2(0x45d)]=null,this[_0x5710a2(0x32b)]=null,this['_popupSessionKey']=null;}['_clearSelectedTarget'](_0x3b3807){const _0x5a4dcf=_0xca568b;(this[_0x5a4dcf(0x2c8)]['isElementEditModeActive'](_0x3b3807)||this[_0x5a4dcf(0x32b)]===_0x3b3807)&&(this[_0x5a4dcf(0x2c8)][_0x5a4dcf(0x1f9)](),this['_popupChartId']===_0x3b3807&&this[_0x5a4dcf(0x366)]());}[_0xca568b(0x3f5)](_0xebe43a){const _0xc3ff28=_0xca568b;this['_clearSelectedTarget'](_0xebe43a),this['_chartUIService']['isElementEditModeActive'](_0xebe43a)&&(this['_chartRenderService'][_0xc3ff28(0x253)](_0xebe43a,!0x1),this[_0xc3ff28(0x28f)][_0xc3ff28(0x253)](_0xebe43a,!0x0));}};wa=q([K(0x0,_0x2b7ebf(_0x781fb3)),K(0x1,_0x2b7ebf(J)),K(0x2,yi),K(0x3,_0x2b7ebf(_0x4aa645)),K(0x4,_0x2b7ebf(_0x48f4a3)),K(0x5,Y),K(0x6,_0x2b7ebf(_0x4b0b38)),K(0x7,_0x5a9a36),K(0x8,_0x2b7ebf(_0x34eb6c))],wa);let Ta=class extends _0x110283{constructor(_0x17d96a,_0x4ecbf0){const _0x4a8abc=_0xca568b;super(),this[_0x4a8abc(0x283)]=_0x17d96a,this[_0x4a8abc(0x34c)]=_0x4ecbf0,this[_0x4a8abc(0x1b3)](),this[_0x4a8abc(0x3a4)]();}[_0xca568b(0x1b3)](){const _0x37e8b7=_0xca568b;this[_0x37e8b7(0x1e0)](this[_0x37e8b7(0x34c)]['register']({'PenIcon':_0x54078f}));}[_0xca568b(0x3a4)](){[[Z,Ni]]['forEach'](([_0x139e97,_0xe5d9f2])=>{const _0x357a0b=_0x28a2;this[_0x357a0b(0x1e0)](this[_0x357a0b(0x283)][_0x357a0b(0x2ef)](_0x139e97,_0xe5d9f2));});}};Ta=q([K(0x0,_0x2b7ebf(_0x16eb50)),K(0x1,_0x2b7ebf(_0x2f16d2))],Ta);let $=class extends _0x327d6b{constructor(_0x38491d=Mr,_0x1b16cf,_0x37f73f,_0x5a9e9c){const _0x46d549=_0xca568b;super(),this[_0x46d549(0x1ea)]=_0x38491d,this[_0x46d549(0x289)]=_0x1b16cf,this[_0x46d549(0x239)]=_0x37f73f,this['_commandService']=_0x5a9e9c,W(this,'_resolvedConfig',void 0x0);let {..._0x490e02}=_0x37ac4e({},Mr,this['_config']);this[_0x46d549(0x204)]=_0x490e02,this[_0x46d549(0x239)]['setConfig'](jr,_0x490e02),this[_0x46d549(0x2ed)]();}[_0xca568b(0x3ba)](){const _0x45fbc7=_0xca568b;this['_injector'][_0x45fbc7(0x36f)]([Ta]),this[_0x45fbc7(0x289)][_0x45fbc7(0x29a)](Ta);let _0x1a2821=this[_0x45fbc7(0x289)],_0x59e96e=[[Y,{'useClass':Ci}],[yi,{'useClass':vi}],[di],[J],[ca],[Ri],[Vi],[Hi],[oa],[Ji],[sa]],_0x322ccf=[[Ri],[Hi],[Vi],[ca],[Y],[oa],[Ji],[sa]];this[_0x45fbc7(0x204)][_0x45fbc7(0x3ee)]&&(_0x59e96e['push']([wa]),_0x322ccf[_0x45fbc7(0x338)]([wa])),_0x59e96e[_0x45fbc7(0x308)](_0x2d9d54=>_0x1a2821[_0x45fbc7(0x36f)](_0x2d9d54)),_0x548fbf(this[_0x45fbc7(0x289)],_0x322ccf);}[_0xca568b(0x3b5)](){const _0x3626d7=_0xca568b;var _0x659a3a;(_0x659a3a=this[_0x3626d7(0x289)][_0x3626d7(0x29a)](Ri))==null||_0x659a3a[_0x3626d7(0x324)]();}['_initCommands'](){const _0x3fdf13=_0xca568b;[U,Ir,Lr,Rr,zr,H,Nr][_0x3fdf13(0x308)](_0xe67d27=>this[_0x3fdf13(0x1e0)](this['_commandService'][_0x3fdf13(0x302)](_0xe67d27)));}};W($,_0xca568b(0x1bc),_0x50b631[_0xca568b(0x2f0)]),W($,_0xca568b(0x218),'UniverSheetsChartUIPlugin'),W($,'packageName',zi),W($,_0xca568b(0x337),Bi),$=q([_0x75347f(_0x47aa2e,_0x1e792f,_0x8fec38,_0x3fd6e8,_0x223cfa,_0x29446d,_0x3f74b2,_0x1d075b,_0x290150),K(0x1,_0x2b7ebf(_0x34eb6c)),K(0x2,_0x116807),K(0x3,_0x5a9a36)],$);export{H as ChartOpenPanelOperation,J as ChartRenderService,Y as ISheetsChartUIService,jr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Ri as SheetsChartUIController,Zr as SheetsChartUIMenuSchema,Ci as SheetsChartUIService,Q as UniverSheetsChartMobileUIPlugin,$ as UniverSheetsChartUIPlugin,Sa as createChartElementPopupAnchorObserver};function _0x3e2b(){const _0x21648=['opacity','_subscribeChartEvents','_renderWhenConfigReady','sheets-chart-ui.common.trendline','isFinite','download','add$','_openFloatMenu','remove$','sheets-chart-ui.common.editChart','getSkeleton','drawingIds','range','value','hit','Relation','Data','closePath','subscribeEvent','univer-overflow-visible','min','UniverSheetsChartUIPlugin','interceptCommand','_initCommands','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','UNIVER_SHEET','params','focus$','prototype','_chartEventHandlers','4VLmxfe','_getOuterRect','number','sheets-chart-ui.common.switchRowColumn','unitId','1000','sidebarOptions$','_drawChartFrame','getElementById','Line','drawImage','@univerjs-pro/sheets-chart-ui','featurePluginGroupUpdate$','registerCommand','_createCopyInfoByRange','executeCommand','Overlay','promise','_sheetClipboardService','forEach','getRealBound','chartEditorOpen$','Chord','PieStyle','constructor','makeDirty','objects','openChartPanelById','_savedWrapperStyle','legend','naturalWidth','isLatest','hidden','pareto','_canvasFloatDomService','ParetoBarSeries','setStyle','_univerInstanceService','_cancelDebouncedCallbacks','with','DRAWING','Row','setContextValue','blockExecuteWithoutPermission','getDirection','COMMA','_disposeImage','initPanel','startY','initialRect','getRenderModel','contains','clearChart','sheets-chart-ui.common.category','_popupChartId','_chartEventSubscriptions','_handleDrawingDoubleClick','localPoint','sheets-chart-ui.section.paretoLine','createChartInstance','sheets-chart-ui.permission.editErr','UPDATE','sheets-chart-ui.section.candlestick','right','Boxplot','_initPermission','version','push','open','invalidateSnapshot','_chartHostMap','rangeInfo$','References','Bar','name','getDrawingData','_chartElementEditMode','removeHost','tab','pieSecondaryPlotType','defaultValues','_adapterRegistry','RightVerticalAxis','MEDIA','sheets-chart-ui.common.useAsCategoryLabels','border','_getImage','_iconManager','OTHERS','clientX','getMatrix','_getChartRenderObject','rect','univer-shrink-0','checkMounted','_debounceHandleMap','Gauge','source','getSheetBySheetName','then','_setChartRuntimeZIndex','getFloatDomInfo','_chartThemeService','cumulativeLineStyle','_applyHostInteractionState','getChartSourceSpec','anonymous','getUnitId','getUnit','matches','isArray','sheet.command.menu-insert-chart','category','_closePopup','sheets-chart-ui.common.rightVerticalAxis','univer-flex\x20univer-flex-col\x20univer-gap-3','WaterfallSeries','_activateHostWrapper','851451szbIGE','showFloatMenu','wordCloud','BUTTON','add','sheets-chart-ui.common.deleteChart','animateDataUpdate','_hostStyle','addObject','_addWatermark','_localeService','lineTo','values','moveTo','parentElement','strokeWidth','749sBJijj','_cacheActiveDomChartSnapshot','filter','permissionCheckWithoutRange','interceptor','removeHost$','_initMenus','engine','_initPrinting','image','update','61767RPmrwN','sheetTransform','complete','href','undo','sheetChartDataAnimation','Column','_removeHost$','object','sheets-chart-ui.chord.target','style$','getChartPopupMenus','titleKey','create','logicalOuterRect','abs','_isOwnedChart','sheets-chart-ui.section.radar','_requestPaint','nextVersion','setRangeSelectMode','DeleteIcon','_deactivateDataUpdateAnimation','sheets-chart-ui.common.heatmap','_managed','markUnmanaged','iterator','unsubscribe','copyType','restore','_registerComponents','dom','_drawChartImage','getRect','asObservable','GROUP','sheets-chart-ui.common.series','_focusedDrawings','_disposeChartChangeListeners','seriesId','route','offsetTop','Url','_chartEditorOpen$','_setHostStyle','_popupSessionKey','viewBound','onRendered','_sheetPrintInterceptorService','startX','INSERT','_applyHostStyle','onStarting','indexOf','sheets-chart-ui.section.histogram','_deactivateEditPanelState','defineProperty','applyPoint','_clearPanelState','getName','length','scaleY','Waterfall','_urlImage','chartEditorOpen','getDrawingOrder','_copyInfo','mobile-sheet-chart-setup-panel','onerror','935137TgLXvM','config','onDoubleClick$','height','setProps','_snapshotKey','Series','top-center','entries','_getChartSnapshotKey','getChartDataSource','resolve','canvas','endsWith','copyId','updateFloatDomProps','_activateEditPanelState','close','20ePZTmC','supports','_getSceneAndTransformerByDrawingSearch','Legend','has','getSubUnitId','plotVisibleOnly','sheets-chart-ui.common.invalidDataRange','hasOwnProperty','setPanelRoute','chartModelId','intercept','_disposeChartEventSubscription','max','transparent','dataset','stringify','enableChartElementFloatMenu','_pendingDataUpdateChartIds','_chartModelService','8190440vPXRVb','_disposed','_clearSelectedTarget','sheets-chart-ui.section.pie','_clearHiddenSelectedTarget','current','drawWith','_createImageChartHost','_themeService','items','panelRoute$','Candlestick','.chart-host','_version','getOwnPropertyDescriptor','chartId','sheets-chart-ui.section.funnel','clientHeight','classType','save','_restoreFloatDomPositionStream','dispose','sheets-chart-ui.common.legend','redo','handleActiveSubUnitChange','_resolveLayout','getBatchRemoveOp','renderTransition','_chartInstanceMap','activeRuntimeModel','_sheetCanvasFloatDomManagerService','sheets-chart-ui.common.hideChartPanel','afterRender$','rangeInfo','position$','_clearPendingUrlImage','isDomReady','_clearSheetChartRuntimeCaches','_pendingToken','setChartEditorOpen','print','getObjectIncludeInGroup','sheets-chart-ui.section.sunburst','chartModelRemoved$','_openPanel','attachPopupToDynamicAbsolutePosition','getRangeInfo','_markReady','_activeDomReadyChartIds','Sunburst','featurePluginUngroupUpdate$','sheets-chart-ui.common.copy','getFocusedUnit','mobile-sheet-chart-style-panel','-univer-mx-4\x20univer-overflow-visible','funnel','_domFrame','toPrimitive','_isChartElementEditEnabled','exportImage','concat','sheets-chart-ui.section.waterfall','_executeChartUpdateSourceConfig','verify','ensureHost','sheets-chart-ui.section.chord','_dataUpdateAnimationTimers','_disposeChartEventSubscriptions','_chartChangeSubscriptions','chartType','scaleX','fromEntries','sheets-chart-ui.common.dataRange','_rect','_shouldEnableChartElementEdit','sheets-chart-ui.chartTypes.','6521135JrxdvC','setImage','assignStyle','clientY','#-#','offsetLeft','bounds','_chartRenderMode','_disposeChartRenderInstance','_sheetPermissionCheckController','_sheetDrawingService','mode','symbol','startRow','syncLayout','ChartAndAxisTitles','getRenderColor','(prefers-reduced-motion:\x20reduce)','_clearChartRuntimeCache','src','_rangeSelectMode','_menuManagerService','clientWidth','_disposeChartDomInstance','getInterceptPoints','_createChartRenderInstanceContext','segmented','getFocusDrawings','groupId','top','clip','baseOn','_popupDisposable','HorizontalAxis','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_chartHostProviderService','small','_requestedUrl','_debounceHandle','sheetChartDataAnimationDuration','_renderManagerService','visible','536294XKuHUH','_drawingManagerService','_alignFloatDomPositionWithSceneRender','direction$','sheets-chart-ui.section.lineAndArea','_panelRoute$','waterfallStyle','_registerAdapter','titles','syncHostLayout','getConfig','_sheetsChartService','_pendingUrlImage','sheet.operation.hide-chart-panel','getBoundingClientRect','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','zIndex','_cancelHostWait','_registerIcons','_getCurrentSnapshotImage','next','createRuntimeChartStyle','DRAWING_CHART','icon','Literals','CHART','_generateCopyPasteMutations','type','SVG','beginPath','getCurrentTypeOfUnit$','sheets-chart-ui.common.chartStyle','imageBitmap','_renderChartModel','rightY','_applyActiveChartRuntimeZIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','translate','setHostStyle','Radar','Heatmap','chartObject','pointerEvents','_dataUpdateAnimationDuration','getParent','_getChartRenderObjectContext','_sheetsChartUIService','_createPrintingChartObject','_sidebarDisposable','isRowDirection','renderChartsForPrinting','_generateCutPasteMutations','getSheetId','sheets-chart-ui.section.indicatorLine','config$','_initCopyPaste','absolute','getHostClientRect','cancel','darkMode$','_snapshotStore','isElementEditModeActive','_pendingHost','disposeWithMe','_prepareDataUpdateRender','allSeriesStyle','sheet-chart-style-panel','mountNode','sheet.command.chart.open-focused-panel','scale','_draw','Pie','ancestorTransform','_config','all','dataSource$','getBatchUpdateOp','context$','_resizeChart','getHostSize','subscribe','Style','setDataRange','_panelInitialized','_requestChartCanvasRender','updateFloatDom','_sheetSkeletonService','_updateTransform','clearPanelRoute','setActiveChartModel','missing-float-dom','axis','radar','ImageBitmap','_entries','getId','_renderService','visibilityState','_lastRenderInputMap','_resolvedConfig','waterfall','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_sheetCanvasPopManagerService','COMMAND','crossOrigin','_contextService','onDispose','_renderAfterChartUpdateMutation','clearImage','split','url','set','univer-sticky\x20-univer-top-3\x20univer-z-10\x20-univer-mx-4\x20-univer-mt-3\x20univer-shrink-0\x20univer-bg-gray-0\x20univer-px-4\x20univer-pt-3\x20dark:!univer-bg-gray-900','Sankey','Bubble','_commandService','offsetWidth','from','_rerenderLatest','pluginName','sheets-chart-ui.host.provider','focused$','_getChartRenderSkipReason','transform','transformChange$','sourceSubUnitId','getSheetBySheetId','header','_getPlacement','resize','sheetId','Image','focusDrawing','map','sheets-chart-ui.common.openChartPanel','addClipboardHook','chartModelAdded$','drawingId','blur','onload','sheets-chart-ui.section.treemap','_waiter','getChartSnapshotImage','_initActiveRuntimeLayerListener','_pendingMutationConfigRenders','requestPaint','getObject','_renderModelManager','rangeSelectMode','img','Dom','_shouldSuppressRender','_configService','every','1.0.1','trim','render','Fail\x20to\x20create\x20float\x20dom','format','_restoreHostWrapper','series','activeChartModel','heatmap','Pareto','_resolveChartRenderMode','setObjectType','querySelector','label','arc','isRender','_getDrawable','Reference','nativeEvent','_initActiveChartModelListener','matchMedia','univer-my-1\x20univer-text-xs\x20univer-text-red-500','innerWidth','offsetHeight','setElementEditMode','subUnitId','ChartIcon','sheets-chart-ui.common.customize','_init','_openEditPanelByDoubleClick','Scatter','parent','allSettled','some','_sheetInterceptorService','string','OPERATION','CUT','_lastActiveSheet','_canAnimateDataUpdate','_getOrCreateChartRenderInstance','_markNotReady','none','inactive-sheet','getImage','_syncActiveEditChart','setDataUpdateAnimation','_chartHostProvider','style','getRenderUnitById','_frameStyle','_chartSnapshotStoreService','_isProviderDisposed','relation','sheets-chart-ui.section.gauge','_activeChartId','_bindChartEventHandlers','REMOVE','ParetoLineSeries','_renderDebounceMap','executeChartUpdateConfig','_listenChartUpdateMutations','.png','getBatchAddOp','evented','_bindChartEventHandler','iconName','anchorRect$','hidePanel','_dataUpdateAnimationChartIds','scroll','naturalHeight','_componentManager','getChartModel','width','serialize','mergeMenu','scene','_injector','trendline','delete','registerFeatureMenu','context','ENTER','_chartRenderService','markNotReady','_loadUrlImage','Funnel','getCurrentUnitOfType','section','getActiveSheet','sheets-chart-ui.config','sheet.command.chart.copy-focused-chart','div','sheet.command.chart.delete-focused-chart','get','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isHit','startColumn','_scheduleDataUpdateAnimationEnd','chartRenderMode','labelId','sheets-chart-ui.common.chartAndAxisTitles','_resetChartRuntimeZIndex','keys','clear','_createHost','sheet.command.chart.export-focused-image','Treemap','WordCloud','bind','Subtotal','setOrientation','drawingType','69186AJxkmS','domId','Area','target','_image','activeChartModel$','activeSheet$','children','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','_sidebarService','_url','Trendline','call','commitSnapshot','getRuntimeContext','getValue','isConnected','LineAndArea','sheet.chart.edit.panel','markHostNotReady','sheets-chart-ui.common.setup','ensureMount','left','endY','decorate','bottom','_getFloatDomInfo','_chartUIService','Histogram','Positive','_getOrCreateSheetChartHost','GeneralSeries','onCommandExecuted','barStyle','pie','_registerChartImageRenderObjectFactory','_sheetDrawingHitTestService','_initDrawingDeactivationListener','pipe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_activateDataUpdateAnimation'];_0x3e2b=function(){return _0x21648;};return _0x3e2b();}
1
+ const _0x58e4e4=_0x29f5;(function(_0x346cfa,_0x20d307){const _0x3829c2=_0x29f5,_0x153f00=_0x346cfa();while(!![]){try{const _0x19f0f1=-parseInt(_0x3829c2(0x32e))/0x1+-parseInt(_0x3829c2(0x117))/0x2*(-parseInt(_0x3829c2(0x291))/0x3)+-parseInt(_0x3829c2(0x382))/0x4+-parseInt(_0x3829c2(0x36e))/0x5*(parseInt(_0x3829c2(0x229))/0x6)+-parseInt(_0x3829c2(0x24c))/0x7*(-parseInt(_0x3829c2(0x1bc))/0x8)+parseInt(_0x3829c2(0x2b3))/0x9*(parseInt(_0x3829c2(0x3b6))/0xa)+-parseInt(_0x3829c2(0x27e))/0xb;if(_0x19f0f1===_0x20d307)break;else _0x153f00['push'](_0x153f00['shift']());}catch(_0x2681fb){_0x153f00['push'](_0x153f00['shift']());}}}(_0x3cf9,0xce2d9));import{CommandType as _0x19398e,DependentOn as _0x39613b,Disposable as _0x7b52dc,DisposableCollection as _0x2329d0,DrawingTypeEnum as _0x43df04,FOCUSING_COMMON_DRAWINGS as _0x654e75,FOCUSING_PANEL_EDITOR as _0x4b847,ICommandService as _0x10f119,IConfigService as _0x58cb4f,IContextService as _0x2eb5c4,IUniverInstanceService as _0x5b54fc,Inject as _0x569e33,Injector as _0x56051b,LocaleService as _0x37903c,Plugin as _0x5bf473,ThemeService as _0x3d87f5,UniverInstanceType as _0xaf509f,createIdentifier as _0x2fa213,debounce as _0x1569e2,generateRandomId as _0x5120c1,isValidRange as _0xbde51a,merge as _0x11a014,numberToABC as _0x47d2a3,toDisposable as _0x43ce57,touchDependencies as _0x1942f9}from'@univerjs/core';import{ChartModelService as _0x1e33a9,ChartUpdateConfigCommand as _0x22f7cc,ChartUpdateConfigMutation as _0x364aee,ChartUpdateSourceCommand as _0x112901,InsertChartCommand as _0x467e05,InsertSheetsChartMutation as _0x550a74,RemoveSheetsChartMutation as _0x13af68,SHEETS_CHART_PLUGIN_CONFIG_KEY as _0x2b0dc7,SHEETS_CHART_PLUGIN_NAME as _0x1a849f,SheetChartConfigAdapter as _0x4cd08c,SheetsChartService as _0x5b7264,UniverSheetsChartPlugin as _0x67f924,getAllowedChartTypes as _0x1fd812,toInsertChartMutationSource as _0x589193}from'@univerjs-pro/sheets-chart';import{IDrawingManagerService as _0x1e7a38,UniverDrawingPlugin as _0x868a1c,getDrawingShapeKeyByDrawingSearch as _0x14acce,getOrCreateDrawingCopyPlan as _0x4ce057}from'@univerjs/drawing';import{DrawingApplyType as _0x398764,ISheetDrawingService as _0xcf65a5,RemoveSheetDrawingCommand as _0x52fe4a,SetDrawingApplyMutation as _0x189847,UniverSheetsDrawingPlugin as _0x4288b5,transformToDrawingPosition as _0x53cf80}from'@univerjs/sheets-drawing';import{SHEET_CHART_RENDER_OBJECT_CONFIG as _0x38aa53,SheetCanvasFloatDomManagerService as _0x351035,SheetDrawingHitTestService as _0x9d629b,UniverSheetsDrawingMobileUIPlugin as _0x4484cc,UniverSheetsDrawingUIPlugin as _0x5941b2}from'@univerjs/sheets-drawing-ui';import{COPY_TYPE as _0x5d9d74,ISheetClipboardService as _0x246f06,PREDEFINED_HOOK_NAME as _0x105d29,SheetCanvasPopManagerService as _0x4b4fef,SheetCopyCommand as _0x172363,SheetPrintInterceptorService as _0x38c41d,SheetSkeletonManagerService as _0x4bbaee,UniverSheetsMobileUIPlugin as _0x27b4b2,UniverSheetsUIPlugin as _0x2fb4ea,deriveStateFromActiveSheet$ as _0x2eadaf,getCurrentRangeDisable$ as _0x59d29f}from'@univerjs/sheets-ui';import{CanvasFloatDomService as _0x7e60e8,ComponentManager as _0x122d09,ContextMenuGroup as _0x1d6826,ContextMenuPosition as _0x587e60,IMenuManagerService as _0x26ea5c,ISidebarService as _0x14cdc6,IconManager as _0x501d02,KeyCode as _0x33a6fb,MenuItemType as _0x40ad65,NativeTextEditorShortcutBehavior as _0xb02455,RibbonInsertGroup as _0x134022,UniverMobileUIPlugin as _0x2c7e38,getMenuHiddenObservable as _0x1fa6a2,useDependency as _0x341106,useObservable as _0x169faa}from'@univerjs/ui';import{BehaviorSubject as _0x251b31,Observable as _0x382ded,Subject as _0x456331,combineLatest as _0x485af5,combineLatestWith as _0x53855c,debounceTime as _0xd01ebe,distinctUntilChanged as _0x23f42d,filter as _0x24a54a,fromEvent as _0x1c4ba6,map as _0x587f1,merge as _0x3f8f2e,pairwise as _0x76194f,skip as _0x587be2,startWith as _0x4f483a,switchMap as _0x31738a,take as _0x315267,throttleTime as _0xc9a711,withLatestFrom as _0x3fe11d}from'rxjs';import{CHART_ELEMENT_FLOAT_MENU_COMPONENT as _0x99cfd,CHART_HOST_BORDER_RADIUS as _0x5af627,CHART_TYPE_CATALOG as _0x85502f,ChartAxisSection as _0x28695d,ChartDomFrame as _0x1af803,ChartEditBlockTitle as _0x5bbce0,ChartEditPanelSection as _0xacfab2,ChartEditPanelTab as _0x305e77,ChartEditorCapability as _0x1146fb,ChartEditorProvider as _0x1673a5,ChartEditorTabs as _0x60d2ef,ChartElementFloatMenuAdapterRegistry as _0x1995df,ChartFrameContentMode as _0x5ddbd5,ChartFrameLayout as _0x16653f,ChartFunnelStyleSection as _0x2b6c2e,ChartGridlinesAndTicksSection as _0x6840bc,ChartHeatmapStyleSection as _0x464207,ChartHostAdapter as _0x47dff2,ChartImageExportService as _0x105d73,ChartIndicatorLineSection as _0x1be756,ChartLegendSection as _0x399936,ChartLineAndAreaSection as _0x5cce89,ChartNumberFormatAtom as _0x54c9b4,ChartParetoSeriesSection as _0x1e47fa,ChartPieStyleSection as _0x5ca595,ChartRadarStyleSection as _0x49accc,ChartRelationStyleSection as _0x17770f,ChartSectionAccordion as _0x3e0e80,ChartSectionAccordionContent as _0x52594e,ChartSectionAccordionItem as _0x33d6de,ChartSectionAccordionTrigger as _0x5043ee,ChartSeriesSection as _0x1e64ca,ChartSetupPanel as _0x239fe1,ChartStyleSection as _0x35f468,ChartTitlesSection as _0x38bcb8,ChartTrendlineSection as _0x322608,ChartTypeSpecificStyleSection as _0x21b296,ChartUIService as _0x1eef01,ChartViewStateRegistry as _0x7cd67c,ChartWaterfallStyleSection as _0x41a5e3,ChartWordCloudStyleSection as _0x318410,DEFAULT_CHART_AXIS_VALUES as _0x473cc5,DEFAULT_CHART_FUNNEL_VALUES as _0x3c4c8b,DEFAULT_CHART_HEATMAP_VALUES as _0x1cd218,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x1f1171,DEFAULT_CHART_LEGEND_VALUES as _0x35dc7a,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x486b7d,DEFAULT_CHART_PARETO_VALUES as _0x3d84e3,DEFAULT_CHART_PIE_VALUES as _0x5881e2,DEFAULT_CHART_RADAR_VALUES as _0x5704fa,DEFAULT_CHART_RELATION_VALUES as _0x10b920,DEFAULT_CHART_SERIES_VALUES as _0x5bf23e,DEFAULT_CHART_STYLE_VALUES as _0x1cd657,DEFAULT_CHART_TITLE_VALUES as _0x2a6745,DEFAULT_CHART_TRENDLINE_VALUES as _0x57534a,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3dd03e,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x154301,MobileChartEditorProvider as _0x441e57,UniverChartMobileUIPlugin as _0x29b95c,UniverChartUIPlugin as _0x690a4d,buildChartTypeSelectOptions as _0x99c448,chartTypeSupportsCapability as _0x24b610,chartTypeSupportsLineAndAreaStyle as _0x1c7739,createChartElementFloatMenuAdapter as _0xb3abd,resolveChartCreationIntent as _0x924dc9,resolveChartEditPanelRoute as _0xb7f32b,resolveChartElementSelection as _0x10d2ee,useChartEditorChartType as _0x33d88d,useChartEditorHasRightAxis as _0x3503bf}from'@univerjs-pro/chart-ui';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x4c1e3b,ChartImageExportFormat as _0x3f3eb8,ChartImageSourceType as _0x385294,ChartRenderMode as _0x3f6e51,ChartSourceHeaderTitleType as _0x4265c5,ChartThemeService as _0x3a2489,ChartTypeBits as _0x5ec5cb,ChartWaterfallStyleTarget as _0x498f80,DataOrientation as _0x28717b,EChartRenderEngineName as _0x1a63a8,IChartRenderModelManagerService as _0x1c66b2,ImageChartHost as _0xeb5e8c,PieSecondaryPlotType as _0x3e9108,RTLChartStyle as _0x40d6b3,chartBitsUtils as _0x31bb43,chartImageSourceToDataUrl as _0x25ae08,chartTypeCanUseTrendLine as _0x1a1c3c,resolveChartRuntimeStyle as _0x56bf83,resolveChartStyleBackgroundColor as _0x445815,resolveDefaultChartHostFrameStyle as _0x16cfdd}from'@univerjs-pro/engine-chart';import{CopySheetCommand as _0x242788,RemoveSheetCommand as _0x54620f,SheetInterceptorService as _0x2cb268,SheetPermissionCheckController as _0x47e334,SheetSkeletonService as _0x2f70f2,SheetsSelectionsService as _0x3699f1,UniverSheetsPlugin as _0x1dcfa0,WorkbookEditablePermission as _0x554cec,WorksheetEditPermission as _0x32625b,attachRangeWithCoord as _0x5067a4,discreteRangeToRange as _0x5ebcb8,getSheetCommandTarget as _0x130794}from'@univerjs/sheets';import{deserializeRangeWithSheet as _0x404b59,matchToken as _0x3b02a9,serializeRangeWithSheet as _0x1e8e5e}from'@univerjs/engine-formula';import{insertGroupObject as _0x1aaef1}from'@univerjs/drawing-ui';import{DRAWING_OBJECT_LAYER_INDEX as _0x2521be,IRenderManagerService as _0x11bbe7,ObjectType as _0x274d57,RENDER_CLASS_TYPE as _0x349e8f,Rect as _0x45ef13,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xda7662,Transform as _0x4325f2,UniverRenderEnginePlugin as _0x15fe35}from'@univerjs/engine-render';import{useCallback as _0x5b263f,useEffect as _0x34e514,useMemo as _0x207894,useRef as _0x33bb4f,useState as _0x5b2f59}from'react';import{Button as _0x3e78e8,Checkbox as _0x2a16f3}from'@univerjs/design';import{MobileRangeSelector as _0x5f3f11,RangeSelector as _0x1311f6}from'@univerjs/sheets-formula-ui';import{Fragment as _0x5a0c00,jsx as _0x4200cc,jsxs as _0x3d17e9}from'react/jsx-runtime';import{UniverLicensePlugin as _0x28eac2}from'@univerjs-pro/license';import{PenIcon as _0x463fa8}from'@univerjs/icons';const H={'type':_0x19398e[_0x58e4e4(0x177)],'id':_0x58e4e4(0x38e),'handler'(){return!0x0;}},Sr=_0x58e4e4(0x2fe),Cr={'enableChartElementFloatMenu':!0x0},wr={'type':_0x19398e['OPERATION'],'id':_0x58e4e4(0x2f8),'handler'(){return!0x0;}};function Tr(_0x2bb87d){const _0x49d5e5=_0x58e4e4;let _0x2ece5c=_0x2bb87d[_0x49d5e5(0x368)](_0xcf65a5)['getFocusDrawings']();if(_0x2ece5c[_0x49d5e5(0x334)]!==0x1)return null;let _0x189ebc=_0x2ece5c[0x0];return _0x189ebc[_0x49d5e5(0x2c2)]===_0x43df04[_0x49d5e5(0x1aa)]?_0x189ebc:null;}function Er(_0x1985f7,_0x3bf782){const _0x1be72b=_0x58e4e4;let _0x255e0d=document[_0x1be72b(0x127)]('a');_0x255e0d[_0x1be72b(0x369)]=_0x1985f7,_0x255e0d[_0x1be72b(0x180)]=_0x3bf782,_0x255e0d[_0x1be72b(0x1cf)]();}const Dr={'id':_0x58e4e4(0x2d1),'type':_0x19398e[_0x58e4e4(0x1f1)],'handler':(_0x490333,_0x2c010c)=>{const _0x151409=_0x58e4e4;let _0x36c5fa=Tr(_0x490333);return _0x36c5fa?_0x490333[_0x151409(0x368)](_0x10f119)[_0x151409(0x1ee)](H['id'],{'unitId':_0x36c5fa[_0x151409(0x380)],'subUnitId':_0x36c5fa['subUnitId'],'drawingId':_0x36c5fa[_0x151409(0x2dc)],..._0x2c010c!=null&&_0x2c010c[_0x151409(0x2fb)]?{'route':_0x2c010c['route']}:{}}):!0x1;}},Or={'id':_0x58e4e4(0x139),'type':_0x19398e['COMMAND'],'handler':_0x514a5f=>Tr(_0x514a5f)?_0x514a5f['get'](_0x10f119)['executeCommand'](_0x172363['id']):!0x1},kr={'id':_0x58e4e4(0x3d4),'type':_0x19398e[_0x58e4e4(0x1f1)],'handler':async _0x3cd84e=>{const _0x1d71a9=_0x58e4e4;let _0x18a266=Tr(_0x3cd84e);if(!_0x18a266)return!0x1;let _0x2c749c=await _0x3cd84e[_0x1d71a9(0x368)](_0x105d73)[_0x1d71a9(0x2a4)]({'unitId':_0x18a266['unitId'],'subUnitId':_0x18a266[_0x1d71a9(0x28c)],'getId':()=>_0x18a266[_0x1d71a9(0x2dc)]});return _0x2c749c?(Er(_0x2c749c,_0x18a266[_0x1d71a9(0x2dc)]+_0x1d71a9(0x1ac)),!0x0):!0x1;}},Ar={'id':_0x58e4e4(0x3cd),'type':_0x19398e[_0x58e4e4(0x1f1)],'handler':_0x241168=>{const _0x3e3505=_0x58e4e4;let _0x1178c7=Tr(_0x241168);return _0x1178c7?_0x241168[_0x3e3505(0x368)](_0x10f119)[_0x3e3505(0x1ee)](_0x52fe4a['id'],{'unitId':_0x1178c7[_0x3e3505(0x380)],'drawings':[{'unitId':_0x1178c7[_0x3e3505(0x380)],'subUnitId':_0x1178c7[_0x3e3505(0x28c)],'drawingId':_0x1178c7['drawingId'],'drawingType':_0x43df04[_0x3e3505(0x1aa)]}]}):!0x1;}},U={'type':_0x19398e['COMMAND'],'id':_0x58e4e4(0x21a),'handler':async(_0x3c6b1f,_0x1bdfcf)=>{const _0x22d97d=_0x58e4e4;let _0x32f2de=_0x130794(_0x3c6b1f['get'](_0x5b54fc));if(!_0x32f2de)return!0x1;let _0x193bb4=_0x3c6b1f['get'](_0x3699f1)['getCurrentLastSelection']();if(!_0x193bb4)return!0x1;let {range:_0x10581c}=_0x193bb4,_0x2e6fac=_0x3c6b1f['get'](_0x10f119),{unitId:_0x74667d,subUnitId:_0x5081c2}=_0x32f2de,{pieSecondaryPlotType:_0x461575,value:_0x7609bb}=_0x1bdfcf,_0x36a7df=_0x461575!==void 0x0;if(_0x36a7df&&(_0x7609bb!==_0x5ec5cb[_0x22d97d(0x2e0)]||_0x461575!==_0x3e9108['Pie']&&_0x461575!==_0x3e9108[_0x22d97d(0x20b)]))return!0x1;let _0x348f18=_0x36a7df?_0x5120c1():void 0x0;return _0x2e6fac[_0x22d97d(0x1ee)](_0x467e05['id'],{'unitId':_0x74667d,'subUnitId':_0x5081c2,'chartType':_0x7609bb,..._0x348f18&&_0x461575?{'chartId':_0x348f18,'config':{'unitId':_0x74667d,'chartModelId':_0x348f18,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x461575}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x10581c[_0x22d97d(0x380)]??_0x74667d,'subUnitId':_0x10581c[_0x22d97d(0x1cc)]??_0x5081c2,'range':_0x10581c}}});}};function jr(_0x584b81,_0x58a23a){const _0x32fbf9=_0x58e4e4;if(_0x584b81==null)return'';if(Array[_0x32fbf9(0x10d)](_0x584b81)){var _0x556089;let _0x2970fa=(_0x556089=_0x584b81[0x0])==null?void 0x0:_0x556089[_0x32fbf9(0x3b2)];return _0x2970fa?Mr(_0x2970fa,_0x58a23a):'';}return Mr(_0x584b81[_0x32fbf9(0x18a)],_0x58a23a);}function Mr(_0x4ab168,_0x19bb8b){const _0x30b4de=_0x58e4e4;var _0x449de7;let {unitId:_0x5dbf00,subUnitId:_0x588cb5,range:_0x2abdb3}=_0x4ab168,_0x2c06ad=(_0x449de7=_0x19bb8b['getUnit'](_0x5dbf00))==null?void 0x0:_0x449de7[_0x30b4de(0x2d3)](_0x588cb5);if(!_0x2c06ad)return'';let _0x1a547e=_0x2c06ad[_0x30b4de(0x254)]();return _0x1e8e5e(_0x1a547e,_0x2abdb3);}const Nr=_0x85502f['map'](_0x14856f=>({'id':'id'in _0x14856f?_0x14856f['id']:void 0x0,'labelId':_0x14856f['labelId'],'pieSecondaryPlotType':'pieSecondaryPlotType'in _0x14856f?_0x14856f[_0x58e4e4(0x17d)]:void 0x0,'value':_0x14856f[_0x58e4e4(0x256)],'icon':_0x14856f[_0x58e4e4(0x1b7)]}));function Pr(_0x44cfef=Nr){return _0x44cfef['map'](({id:_0x567279,icon:_0x28226c,value:_0x59a462})=>{const _0x3b0654=_0x29f5;let _0x5abd4d=_0x924dc9(_0x567279??String(_0x59a462)),_0x472215=_0x5abd4d?{'value':_0x5abd4d[_0x3b0654(0x341)],..._0x5abd4d[_0x3b0654(0x17d)]?{'pieSecondaryPlotType':_0x5abd4d[_0x3b0654(0x17d)]}:{}}:{'value':_0x59a462};return{'icon':_0x28226c,'value':_0x567279??_0x59a462,'params':_0x472215};});}const Fr=(_0x53d9e7,_0x27667c)=>{const _0x1a1fa5=_0x58e4e4;if(_0x27667c[_0x1a1fa5(0x334)]===0x1&&_0x27667c[0x0]==='all')return _0x53d9e7;if(_0x27667c[_0x1a1fa5(0x334)]>0x1){let _0x151099=new Set();for(let _0x16dfb4 of _0x27667c)_0x151099[_0x1a1fa5(0x1c7)](Number(_0x16dfb4));return _0x53d9e7[_0x1a1fa5(0x19e)](_0x5dcad4=>_0x151099[_0x1a1fa5(0x39b)](_0x5dcad4[_0x1a1fa5(0x256)]));}return[];};function Ir(_0x2f54ec){const _0x1cd9ae=_0x58e4e4;let _0xbbb808=_0x2f54ec['get'](_0x5b54fc),_0x4a7b04=_0x1fd812(_0x2f54ec),_0x37fb69=Fr(Nr[_0x1cd9ae(0x2fc)](),_0x4a7b04),_0x12ecf9=Pr(_0x37fb69)[_0x1cd9ae(0x3b3)]((_0x223b2f,_0x12f6f2)=>({'icon':_0x223b2f[_0x1cd9ae(0x3bb)],'value':_0x223b2f[_0x1cd9ae(0x256)],'params':_0x223b2f['params'],'label':_0x1cd9ae(0x27a)+_0x37fb69[_0x12f6f2][_0x1cd9ae(0x2af)]}));return{'id':U['id'],'type':_0x40ad65[_0x1cd9ae(0x280)],'selectionsCommandId':U['id'],'selections':_0x12ecf9,'icon':_0x1cd9ae(0x2ab),'tooltip':_0x1cd9ae(0x31c),'activated$':_0x2eadaf(_0xbbb808,!0x1,()=>new _0x382ded(_0x2d23da=>{const _0x472d9e=_0x1cd9ae;_0x2d23da[_0x472d9e(0x31b)](!0x1);})),'hidden$':_0x1fa6a2(_0x2f54ec,_0xaf509f[_0x1cd9ae(0x16d)]),'disabled$':_0x59d29f(_0x2f54ec)};}function Lr(_0x4b1778){const _0x11b31a=_0x58e4e4;let _0x397264=_0x4b1778[_0x11b31a(0x368)](_0xcf65a5);return _0x397264[_0x11b31a(0x328)][_0x11b31a(0x3b1)](_0x4f483a(_0x397264[_0x11b31a(0x321)]()),_0x587f1(()=>Tr(_0x4b1778)==null));}function Rr(_0x41609e){const _0x5d269a=_0x58e4e4;return{'id':Dr['id'],'commandId':Dr['id'],'type':_0x40ad65[_0x5d269a(0x30f)],'title':_0x41609e['get'](_0x37903c)['t'](_0x5d269a(0x111)),'icon':_0x5d269a(0x30d),'hidden$':Lr(_0x41609e)};}function zr(_0x1c62c8){const _0x1d02b3=_0x58e4e4;return{'id':Or['id'],'commandId':Or['id'],'type':_0x40ad65[_0x1d02b3(0x30f)],'title':_0x1c62c8[_0x1d02b3(0x368)](_0x37903c)['t'](_0x1d02b3(0x2d7)),'icon':_0x1d02b3(0x27b),'hidden$':Lr(_0x1c62c8)};}function Br(_0x1bd382){const _0x4ea40e=_0x58e4e4;return{'id':kr['id'],'commandId':kr['id'],'type':_0x40ad65[_0x4ea40e(0x30f)],'title':_0x1bd382[_0x4ea40e(0x368)](_0x37903c)['t'](_0x4ea40e(0x1b8)),'icon':'DownloadImageIcon','hidden$':Lr(_0x1bd382)};}function Vr(_0xef6eae){const _0x46fce2=_0x58e4e4;return{'id':Ar['id'],'commandId':Ar['id'],'type':_0x40ad65[_0x46fce2(0x30f)],'title':_0xef6eae[_0x46fce2(0x368)](_0x37903c)['t']('sheets-chart-ui.common.deleteChart'),'icon':_0x46fce2(0x223),'hidden$':Lr(_0xef6eae)};}const Hr={[_0x134022[_0x58e4e4(0x312)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Ir}},[_0x587e60[_0x58e4e4(0x1e0)]]:{[_0x1d6826[_0x58e4e4(0x2cf)]]:{[Dr['id']]:{'order':0x0,'menuItemFactory':Rr},[Or['id']]:{'order':0x1,'menuItemFactory':zr},[kr['id']]:{'order':0x3,'menuItemFactory':Br},[Ar['id']]:{'order':0x4,'menuItemFactory':Vr}}}};function Ur(_0x5d0062){const _0x4b26ad=_0x58e4e4;return _0x5d0062===_0x5ec5cb[_0x4b26ad(0x28a)]||_0x5d0062===_0x5ec5cb[_0x4b26ad(0x33a)]||_0x5d0062===_0x5ec5cb[_0x4b26ad(0x15b)]||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb['Line'])||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb[_0x4b26ad(0x186)])||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb[_0x4b26ad(0x2be)])||_0x31bb43[_0x4b26ad(0x300)](_0x5d0062,_0x5ec5cb[_0x4b26ad(0x38c)]);}function Wr(_0x3b5b3c){const _0x1ac299=_0x58e4e4;return Ur(_0x3b5b3c)||_0x31bb43[_0x1ac299(0x300)](_0x3b5b3c,_0x5ec5cb[_0x1ac299(0x2e0)])||_0x31bb43['baseOn'](_0x3b5b3c,_0x5ec5cb['Pareto'])||_0x31bb43[_0x1ac299(0x300)](_0x3b5b3c,_0x5ec5cb[_0x1ac299(0x31e)]);}function Gr(_0x1648dc,_0xe045ed){const _0x3dca60=_0x58e4e4;let _0xbfac78=_0x10d2ee(_0x1648dc,_0xe045ed),_0x4fe8de=_0xbfac78?_0xb7f32b(_0xbfac78[_0x3dca60(0x11f)]):void 0x0;if(_0xbfac78&&_0x4fe8de)return{..._0xbfac78,'route':_0x4fe8de,'showFloatMenu':Wr(_0x1648dc[_0x3dca60(0x341)])&&_0xbfac78['showFloatMenu']};}function Kr(_0x15a723,_0x106016=0x1){const _0x215064=_0x58e4e4;return{'width':Math['max'](_0x106016,_0x15a723[_0x215064(0x384)]),'height':Math['max'](_0x106016,_0x15a723['height'])};}function qr(_0x14f7e6,_0x23f9f5={},_0x1fe7bf={'left':0x0,'top':0x0}){const _0x44f526=_0x58e4e4;let _0x44d527=_0x23f9f5['scaleX']??0x1,_0x5155b9=_0x23f9f5[_0x44f526(0x263)]??0x1,_0x30e3be=_0x16653f[_0x44f526(0x2f6)]({'logicalOuterRect':{'left':_0x1fe7bf[_0x44f526(0x270)]>0x0?-_0x1fe7bf[_0x44f526(0x270)]:0x0,'top':_0x1fe7bf[_0x44f526(0x23a)]>0x0?-_0x1fe7bf[_0x44f526(0x23a)]:0x0,...Kr(_0x14f7e6)},'scale':{'scaleX':_0x44d527,'scaleY':_0x5155b9},'hostStyle':{},'contentMode':_0x5ddbd5[_0x44f526(0x119)]});return{'left':_0x30e3be['logicalOuterRect'][_0x44f526(0x270)],'top':_0x30e3be[_0x44f526(0x1c1)]['top'],'width':_0x30e3be[_0x44f526(0x1c1)][_0x44f526(0x384)],'height':_0x30e3be[_0x44f526(0x1c1)][_0x44f526(0x1d7)],'scaleX':_0x44d527,'scaleY':_0x5155b9};}function Jr(_0x596874){'@babel/helpers - typeof';const _0x2beebe=_0x58e4e4;return Jr=typeof Symbol==_0x2beebe(0x2de)&&typeof Symbol[_0x2beebe(0x21b)]==_0x2beebe(0x1e6)?function(_0x1c3d6f){return typeof _0x1c3d6f;}:function(_0x2fc70b){const _0x180f71=_0x2beebe;return _0x2fc70b&&typeof Symbol==_0x180f71(0x2de)&&_0x2fc70b[_0x180f71(0x354)]===Symbol&&_0x2fc70b!==Symbol['prototype']?_0x180f71(0x1e6):typeof _0x2fc70b;},Jr(_0x596874);}function Yr(_0xf2ca3b,_0x242419){const _0x5f4077=_0x58e4e4;if(Jr(_0xf2ca3b)!=_0x5f4077(0x36d)||!_0xf2ca3b)return _0xf2ca3b;var _0x2cdef7=_0xf2ca3b[Symbol[_0x5f4077(0x315)]];if(_0x2cdef7!==void 0x0){var _0x12ba68=_0x2cdef7[_0x5f4077(0x29e)](_0xf2ca3b,_0x242419||'default');if(Jr(_0x12ba68)!=_0x5f4077(0x36d))return _0x12ba68;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x242419===_0x5f4077(0x1a2)?String:Number)(_0xf2ca3b);}function Xr(_0x5b7860){const _0x5f1f56=_0x58e4e4;var _0x35282e=Yr(_0x5b7860,_0x5f1f56(0x1a2));return Jr(_0x35282e)==_0x5f1f56(0x1e6)?_0x35282e:_0x35282e+'';}function W(_0x2e2ce9,_0x216614,_0x4c893b){const _0x274d6f=_0x58e4e4;return(_0x216614=Xr(_0x216614))in _0x2e2ce9?Object[_0x274d6f(0x12d)](_0x2e2ce9,_0x216614,{'value':_0x4c893b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e2ce9[_0x216614]=_0x4c893b,_0x2e2ce9;}function Zr(_0x14f1a2){const _0x4071cb=_0x58e4e4;switch(_0x14f1a2['type']){case _0x385294[_0x4071cb(0x32a)]:return _0x14f1a2[_0x4071cb(0x305)];case _0x385294['ImageBitmap']:return _0x14f1a2['imageBitmap'];default:return;}}var Qr=class extends _0x45ef13{constructor(_0x64cc9a,_0x1fa63f,_0x65fa6d,_0x556feb=()=>!0x1,_0x5dbf17=()=>{}){const _0x993a89=_0x58e4e4;super(_0x64cc9a,{..._0x1fa63f,'evented':_0x1fa63f[_0x993a89(0x35c)]??!0x0}),this[_0x993a89(0x2ce)]=_0x65fa6d,this[_0x993a89(0x23d)]=_0x556feb,this[_0x993a89(0x146)]=_0x5dbf17,W(this,_0x993a89(0x133),null),W(this,'_url',null),W(this,'_requestedUrl',null),W(this,_0x993a89(0x35d),null),this[_0x993a89(0x2d9)](_0x274d57[_0x993a89(0x1d2)]);}[_0x58e4e4(0x125)](){const _0x1dc7c7=_0x58e4e4;this[_0x1dc7c7(0x340)](),this[_0x1dc7c7(0x133)]=null,this[_0x1dc7c7(0x214)]=null,this[_0x1dc7c7(0x30c)]=null,this[_0x1dc7c7(0x146)](),super[_0x1dc7c7(0x125)]();}['render'](_0x2d72c3,_0x4b6482){const _0x370ade=_0x58e4e4;if(!this[_0x370ade(0x2cd)])return this[_0x370ade(0x293)](!0x1),this;if(this[_0x370ade(0x23d)]()){let _0x81adaa=this['_getImage']();return _0x81adaa&&this[_0x370ade(0x2f4)](_0x81adaa),this[_0x370ade(0x293)](!0x1),this;}if(!this['transform'])return this;let {width:_0x53e8ea,height:_0x13166d,left:_0x2c88db,top:_0x229abe}=this[_0x370ade(0x2bf)]();if(this[_0x370ade(0x261)](_0x4b6482)){let {top:_0x12ec07,left:_0x385720,bottom:_0x26b796,right:_0x20f19d}=_0x4b6482[_0x370ade(0x323)];if(_0x53e8ea+this[_0x370ade(0x199)]+_0x2c88db<_0x385720||_0x20f19d<_0x2c88db||_0x13166d+this['strokeWidth']+_0x229abe<_0x12ec07||_0x26b796<_0x229abe)return this;}let _0x541837=this[_0x370ade(0x361)]['getMatrix']();_0x2d72c3[_0x370ade(0x24d)]();let _0x4bdd59=_0x2c88db+_0x53e8ea/0x2,_0x2198ec=_0x229abe+_0x13166d/0x2;return _0x2d72c3[_0x370ade(0x361)](_0x541837[0x0],_0x541837[0x1],_0x541837[0x2],_0x541837[0x3],_0x4bdd59,_0x2198ec),this[_0x370ade(0x207)]!==0x1&&(_0x2d72c3[_0x370ade(0x12a)]=this['opacity']),this[_0x370ade(0x165)](_0x2d72c3,void 0x0,_0x53e8ea,_0x13166d),_0x2d72c3['restore'](),this[_0x370ade(0x293)](!0x1),this;}['_draw'](_0xf537f6,_0x5ecbc4,_0x4f83e4=this[_0x58e4e4(0x384)],_0x327e73=this['height']){const _0x24e592=_0x58e4e4;this[_0x24e592(0x26d)](_0xf537f6,_0x4f83e4,_0x327e73,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x24e592(0x231)](_0xf537f6,_0x4f83e4,_0x327e73),this[_0x24e592(0x26d)](_0xf537f6,_0x4f83e4,_0x327e73,{'fill':void 0x0});}['_drawChartFrame'](_0x372a67,_0x56497d,_0x1e7265,_0x286b5c){const _0x514917=_0x58e4e4;_0x372a67[_0x514917(0x24d)](),_0x372a67[_0x514917(0x196)](-_0x56497d/0x2,-_0x1e7265/0x2),_0x45ef13['drawWith'](_0x372a67,$r(this,_0x56497d,_0x1e7265,_0x286b5c)),_0x372a67[_0x514917(0x108)]();}[_0x58e4e4(0x1bd)](_0x58f4b5){const _0x3ac57f=_0x58e4e4;let {left:_0x47280b,top:_0x3f9e62,width:_0x142611,height:_0x18bc0e}=this[_0x3ac57f(0x2bf)](),_0x2e31f7=_0x47280b+_0x142611/0x2,_0x1306d9=_0x3f9e62+_0x18bc0e/0x2,_0x3570d1=this['transform'][_0x3ac57f(0x3bc)](),_0xe987eb=new _0x4325f2([_0x3570d1[0x0],_0x3570d1[0x1],_0x3570d1[0x2],_0x3570d1[0x3],_0x2e31f7,_0x1306d9]),_0xf84502=this[_0x3ac57f(0x3b7)](),_0x612de1=(this[_0x3ac57f(0x2ac)]&&(_0xf84502==null?void 0x0:_0xf84502['classType'])===_0x349e8f[_0x3ac57f(0x2ef)]?_0xf84502[_0x3ac57f(0x362)][_0x3ac57f(0x190)](_0xe987eb):_0xe987eb)[_0x3ac57f(0x3ad)]()[_0x3ac57f(0x26f)](_0x58f4b5),_0x2f3f87=_0x142611/0x2,_0x27f791=_0x18bc0e/0x2;return _0x612de1['x']>=-_0x2f3f87-this[_0x3ac57f(0x199)]/0x2&&_0x612de1['x']<=_0x2f3f87+this[_0x3ac57f(0x199)]/0x2&&_0x612de1['y']>=-_0x27f791-this['strokeWidth']/0x2&&_0x612de1['y']<=_0x27f791+this['strokeWidth']/0x2;}[_0x58e4e4(0x231)](_0x2d3000,_0x5268b9,_0x59acbf){const _0x30efef=_0x58e4e4;let _0xccec2e=this[_0x30efef(0x2ce)](),_0x4980de=_0xccec2e?this['_getDrawable'](_0xccec2e):void 0x0;if(!_0x4980de)return;let {width:_0x75781e,height:_0x1115a0}=Kr({'width':_0x5268b9,'height':_0x59acbf},0x0);_0x75781e!==0x0&&_0x1115a0!==0x0&&(_0x2d3000[_0x30efef(0x24d)](),_0x2d3000[_0x30efef(0x196)](-_0x5268b9/0x2,-_0x59acbf/0x2),ei(_0x2d3000,_0x75781e,_0x1115a0,this[_0x30efef(0x14d)]),_0x2d3000[_0x30efef(0x29c)](),_0x2d3000['drawImage'](_0x4980de,0x0,0x0,_0x75781e,_0x1115a0),_0x2d3000[_0x30efef(0x108)]());}[_0x58e4e4(0x2f4)](_0x1ce95c){const _0x3955b7=_0x58e4e4;var _0x49b402;let _0x4da3be=Zr(_0x1ce95c);if(_0x4da3be)return _0x4da3be;if(_0x1ce95c['type']===_0x385294[_0x3955b7(0x37e)]&&(this[_0x3955b7(0x30c)]!==_0x1ce95c['url']&&(this['_requestedUrl']=_0x1ce95c[_0x3955b7(0x155)],this[_0x3955b7(0x340)](),this[_0x3955b7(0x214)]!==_0x1ce95c['url']&&this[_0x3955b7(0x34f)](_0x1ce95c['url'])),(_0x49b402=this['_urlImage'])!=null&&_0x49b402['complete']&&this[_0x3955b7(0x133)][_0x3955b7(0x2ed)]>0x0&&this[_0x3955b7(0x133)][_0x3955b7(0x1fd)]>0x0))return this[_0x3955b7(0x133)];}[_0x58e4e4(0x34f)](_0xac5f87){const _0x1b0b5a=_0x58e4e4;let _0xbc975a=document[_0x1b0b5a(0x127)]('img');this[_0x1b0b5a(0x35d)]=_0xbc975a,_0xbc975a[_0x1b0b5a(0x366)]=_0x1b0b5a(0x1fa),_0xbc975a['onload']=()=>{const _0x14bf8f=_0x1b0b5a;this[_0x14bf8f(0x30c)]===_0xac5f87&&this[_0x14bf8f(0x35d)]===_0xbc975a&&(_0xbc975a[_0x14bf8f(0x2ed)]>0x0&&_0xbc975a['naturalHeight']>0x0&&(this[_0x14bf8f(0x214)]=_0xac5f87,this[_0x14bf8f(0x133)]=_0xbc975a),this[_0x14bf8f(0x340)](),this[_0x14bf8f(0x293)](!0x0));},_0xbc975a['onerror']=()=>{const _0x363286=_0x1b0b5a;this[_0x363286(0x35d)]===_0xbc975a&&this[_0x363286(0x340)]();},_0xbc975a[_0x1b0b5a(0x12f)]=_0xac5f87;}[_0x58e4e4(0x340)](){const _0x2b92b0=_0x58e4e4;this[_0x2b92b0(0x35d)]&&=(this[_0x2b92b0(0x35d)][_0x2b92b0(0x28b)]=null,this[_0x2b92b0(0x35d)]['onerror']=null,null);}};function $r(_0x4193a7,_0x2ecebe,_0x444127,_0x6b7aff){const _0x27edcd=_0x58e4e4;let _0x674cc1=Object['create'](_0x4193a7);return Object[_0x27edcd(0x12d)](_0x674cc1,'width',{'value':_0x2ecebe}),Object[_0x27edcd(0x12d)](_0x674cc1,'height',{'value':_0x444127}),Object[_0x27edcd(0x1ce)](_0x6b7aff)[_0x27edcd(0x2db)](_0x19f85f=>{const _0x3a67db=_0x27edcd;Object[_0x3a67db(0x12d)](_0x674cc1,_0x19f85f,{'value':_0x6b7aff[_0x19f85f]});}),_0x674cc1;}function ei(_0xfc5043,_0x1193a6,_0x25022b,_0x2d4f93){const _0x3df7b2=_0x58e4e4;let _0xd096a3=Math[_0x3df7b2(0x227)](_0x2d4f93||0x0,_0x1193a6/0x2,_0x25022b/0x2);if(_0xfc5043[_0x3df7b2(0x2bc)](),!_0xd096a3){_0xfc5043[_0x3df7b2(0x148)](0x0,0x0,_0x1193a6,_0x25022b),_0xfc5043[_0x3df7b2(0x142)]();return;}_0xfc5043['moveTo'](_0xd096a3,0x0),_0xfc5043['lineTo'](_0x1193a6-_0xd096a3,0x0),_0xfc5043[_0x3df7b2(0x203)](_0x1193a6-_0xd096a3,_0xd096a3,_0xd096a3,Math['PI']*0x3/0x2,0x0,!0x1),_0xfc5043[_0x3df7b2(0x2ad)](_0x1193a6,_0x25022b-_0xd096a3),_0xfc5043[_0x3df7b2(0x203)](_0x1193a6-_0xd096a3,_0x25022b-_0xd096a3,_0xd096a3,0x0,Math['PI']/0x2,!0x1),_0xfc5043[_0x3df7b2(0x2ad)](_0xd096a3,_0x25022b),_0xfc5043[_0x3df7b2(0x203)](_0xd096a3,_0x25022b-_0xd096a3,_0xd096a3,Math['PI']/0x2,Math['PI'],!0x1),_0xfc5043['lineTo'](0x0,_0xd096a3),_0xfc5043[_0x3df7b2(0x203)](_0xd096a3,_0xd096a3,_0xd096a3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xfc5043['closePath']();}function G(_0x68ece8){const _0x3a0620=_0x58e4e4;(_0x68ece8==null?void 0x0:_0x68ece8[_0x3a0620(0x2e2)])===_0x385294[_0x3a0620(0x276)]&&_0x68ece8['imageBitmap'][_0x3a0620(0x1f2)]();}function ti(_0x26ce41){const _0x165d57=_0x58e4e4;return _0x26ce41['unitId']+_0x165d57(0x16f)+_0x26ce41[_0x165d57(0x28c)]+'#-#'+_0x26ce41[_0x165d57(0x1f8)];}var ni=class extends _0x7b52dc{constructor(..._0x245b6f){const _0x22545b=_0x58e4e4;super(..._0x245b6f),W(this,_0x22545b(0x174),new Map());}[_0x58e4e4(0x23c)](_0x3d9fc2){const _0x402ec9=_0x58e4e4;let _0x173f0a=ti(_0x3d9fc2),_0x119129=this['_entries'][_0x402ec9(0x368)](_0x173f0a)??{'version':0x0};return _0x119129[_0x402ec9(0x2f7)]+=0x1,this[_0x402ec9(0x174)]['set'](_0x173f0a,_0x119129),_0x119129[_0x402ec9(0x2f7)];}[_0x58e4e4(0x356)](_0x3d9f50,_0x542bb9){const _0x2f73c4=_0x58e4e4;var _0x53dc27;return((_0x53dc27=this[_0x2f73c4(0x174)][_0x2f73c4(0x368)](ti(_0x3d9f50)))==null?void 0x0:_0x53dc27[_0x2f73c4(0x2f7)])===_0x542bb9;}['setImage'](_0x36e448,_0x2abd8b,_0x2e9a40){const _0x18377b=_0x58e4e4;if(!this['isLatest'](_0x36e448,_0x2e9a40))return G(_0x2abd8b),!0x1;let _0x20e329=ti(_0x36e448),_0x33e4f6=this[_0x18377b(0x174)][_0x18377b(0x368)](_0x20e329)??{'version':_0x2e9a40},_0x5de05b=_0x33e4f6['image'];return _0x33e4f6[_0x18377b(0x236)]=_0x2abd8b,_0x33e4f6['version']=_0x2e9a40,this[_0x18377b(0x174)][_0x18377b(0x37a)](_0x20e329,_0x33e4f6),_0x5de05b!==_0x2abd8b&&G(_0x5de05b),!0x0;}[_0x58e4e4(0x3d2)](_0x189349){const _0xf972f2=_0x58e4e4;var _0x5d109c;return(_0x5d109c=this['_entries'][_0xf972f2(0x368)](ti(_0x189349)))==null?void 0x0:_0x5d109c[_0xf972f2(0x236)];}[_0x58e4e4(0x1ab)](_0x9b01c1){const _0x6c40cf=_0x58e4e4;let _0x32ab65=ti(_0x9b01c1),_0x1bb16c=this[_0x6c40cf(0x174)]['get'](_0x32ab65);_0x1bb16c&&(G(_0x1bb16c[_0x6c40cf(0x236)]),this['_entries'][_0x6c40cf(0x25c)](_0x32ab65));}['clearChart'](_0x2f9987){const _0x184fee=_0x58e4e4;for(let [_0x461482,_0x12cd5b]of this['_entries'])_0x461482[_0x184fee(0x349)](_0x184fee(0x16f)+_0x2f9987)&&(G(_0x12cd5b[_0x184fee(0x236)]),this[_0x184fee(0x174)]['delete'](_0x461482));}[_0x58e4e4(0x125)](){const _0x5308ad=_0x58e4e4;this[_0x5308ad(0x174)]['forEach'](_0x527090=>G(_0x527090['image'])),this[_0x5308ad(0x174)]['clear'](),super['dispose']();}};function ri(_0x1388d3,_0x568e5b=0x7d0){let _0x14a4ba=null,_0x2dd598=null,_0x5a377f=!0x1,_0x4df966=()=>{},_0x4b78a0=()=>{_0x14a4ba!=null&&(clearInterval(_0x14a4ba),_0x14a4ba=null),_0x2dd598!=null&&(clearTimeout(_0x2dd598),_0x2dd598=null);};return{'promise':new Promise((_0x2a5c32,_0x4f5c70)=>{_0x4df966=_0x4f5c70;let _0x27b3cd=()=>{let _0x190b20=document['getElementById'](_0x1388d3);_0x190b20&&!_0x5a377f&&(_0x5a377f=!0x0,_0x4b78a0(),_0x2a5c32(_0x190b20));};_0x27b3cd(),!_0x5a377f&&(_0x14a4ba=setInterval(_0x27b3cd,16.666666666666668),_0x2dd598=setTimeout(()=>{const _0x59c749=_0x29f5;_0x5a377f||(_0x5a377f=!0x0,_0x4b78a0(),_0x4f5c70(Error(_0x59c749(0x1ae)+_0x1388d3+'\x22.')));},_0x568e5b));}),'cancel':()=>{_0x5a377f||(_0x5a377f=!0x0,_0x4b78a0(),_0x4df966(Error('Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22'+_0x1388d3+'\x22.')));}};}var ii=class extends _0x7b52dc{constructor(_0x4619b1,_0x275443,_0x5d48d5,_0x5d205f,_0x24675c,_0xf5411f,_0x2244b9){const _0x535502=_0x58e4e4;super(),this[_0x535502(0x1f8)]=_0x4619b1,this[_0x535502(0x342)]=_0x275443,this[_0x535502(0x1f0)]=_0x5d48d5,this[_0x535502(0x1ad)]=_0x5d205f,this['_isProviderDisposed']=_0x24675c,this[_0x535502(0x131)]=_0xf5411f,this[_0x535502(0x1d4)]=_0x2244b9,W(this,_0x535502(0x26e),_0x3f6e51[_0x535502(0x166)]),W(this,'_domFrame',null),W(this,_0x535502(0x3cc),!0x1),W(this,'_pendingToken',null),W(this,_0x535502(0x2ba),null),W(this,_0x535502(0x3ba),null),W(this,'_hostStyle',{}),W(this,'_savedWrapperStyle',null),W(this,_0x535502(0x2df),null);}[_0x58e4e4(0x182)](){const _0x3005de=_0x58e4e4;return this[_0x3005de(0x3cc)];}[_0x58e4e4(0x123)](){const _0x49925d=_0x58e4e4;this[_0x49925d(0x3cc)]=!0x1;}['getRect'](){const _0x5d4d84=_0x58e4e4;let _0x20daa6=this[_0x5d4d84(0x1f0)]();return _0x20daa6?{'width':_0x20daa6[_0x5d4d84(0x384)],'height':_0x20daa6['height']}:null;}['setStyle'](_0x52523e){const _0x52f8c8=_0x58e4e4;this[_0x52f8c8(0x2c4)]=_0x52523e,this[_0x52f8c8(0x1ad)](_0x52523e),this[_0x52f8c8(0x20f)]();}async[_0x58e4e4(0x388)](){const _0x1f3381=_0x58e4e4;if(this['_disposed']||this[_0x1f3381(0x3a4)]())throw Error(_0x1f3381(0x3cb));let _0x51a196=this[_0x1f3381(0x342)](),_0x16b75c=(_0x51a196==null?void 0x0:_0x51a196[_0x1f3381(0x2ca)])??this[_0x1f3381(0x1f8)],_0x316cdc=document[_0x1f3381(0x1e4)](_0x16b75c);if(this[_0x1f3381(0x2ff)]&&_0x316cdc!=null&&_0x316cdc['contains'](this[_0x1f3381(0x2ff)][_0x1f3381(0x252)]))return{'mountNode':this['_domFrame'][_0x1f3381(0x252)],'dispose':()=>{const _0x3e0926=_0x1f3381;this[_0x3e0926(0x125)](),_0x51a196==null||_0x51a196['dispose'][_0x3e0926(0x125)]();}};if(this[_0x1f3381(0x2ba)])return this[_0x1f3381(0x2ba)];let _0x457edf=this[_0x1f3381(0x329)]();return this['_pendingHost']=_0x457edf,_0x457edf['then'](()=>{const _0x3a0f73=_0x1f3381;this[_0x3a0f73(0x2ba)]===_0x457edf&&(this[_0x3a0f73(0x2ba)]=null);},()=>{const _0x498282=_0x1f3381;this[_0x498282(0x2ba)]===_0x457edf&&(this['_pendingHost']=null);}),_0x457edf;}async[_0x58e4e4(0x3ae)](){const _0x289762=_0x58e4e4;try{return(await this[_0x289762(0x388)]())[_0x289762(0x252)];}catch{return null;}}[_0x58e4e4(0x2a2)](){const _0x3e38e3=_0x58e4e4;let _0x350d08=this[_0x3e38e3(0x342)](),_0x4010f0=(_0x350d08==null?void 0x0:_0x350d08['domId'])??this[_0x3e38e3(0x1f8)],_0x53d4c7=document[_0x3e38e3(0x1e4)](_0x4010f0);return!!(this[_0x3e38e3(0x2ff)]&&_0x53d4c7!=null&&_0x53d4c7[_0x3e38e3(0x1ba)](this[_0x3e38e3(0x2ff)]['mountNode']));}[_0x58e4e4(0x12b)](){const _0x52e1a1=_0x58e4e4;if(!this['_domFrame'])return;let _0x4c1884=this['_getPlacement']();_0x4c1884&&this[_0x52e1a1(0x2ff)][_0x52e1a1(0x2cc)](this[_0x52e1a1(0x365)](_0x4c1884),this[_0x52e1a1(0x15a)]());}['markReady'](){const _0x253afb=_0x58e4e4;this[_0x253afb(0x131)]();}['markNotReady'](){this['_markNotReady']();}['setDataUpdateAnimation'](_0x55d2f6){const _0x45260c=_0x58e4e4;this['_dataUpdateAnimationDuration']=_0x55d2f6;let _0x1546cb=this['_getFloatDomInfo'](),_0x3c9c89=document[_0x45260c(0x1e4)]((_0x1546cb==null?void 0x0:_0x1546cb[_0x45260c(0x2ca)])??this[_0x45260c(0x1f8)]);_0x3c9c89&&this['_applyHostInteractionState'](_0x3c9c89);}[_0x58e4e4(0x125)](){const _0x323336=_0x58e4e4;var _0x17ec34;this[_0x323336(0x2c6)]||(this[_0x323336(0x217)](),this[_0x323336(0x21f)]=null,this[_0x323336(0x2ba)]=null,this[_0x323336(0x34c)](),this[_0x323336(0x3cc)]=!0x1,this[_0x323336(0x2df)]=null,(_0x17ec34=this[_0x323336(0x2ff)])==null||_0x17ec34[_0x323336(0x125)](),this[_0x323336(0x2ff)]=null,this[_0x323336(0x353)](),super['dispose']());}async[_0x58e4e4(0x329)](){const _0x31d291=_0x58e4e4;let _0x5aa94f=this['_getFloatDomInfo']();if(!_0x5aa94f)throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x19f904=_0x5aa94f[_0x31d291(0x2ca)]??this[_0x31d291(0x1f8)],_0x5b4972=ri(_0x19f904),_0x44a00d=Symbol(this[_0x31d291(0x1f8)]);this[_0x31d291(0x21f)]=_0x44a00d,this[_0x31d291(0x3ba)]=_0x5b4972;try{let _0x2e7e81=await _0x5b4972[_0x31d291(0x297)],_0x252b5b=this[_0x31d291(0x342)](),_0x22d38b=(_0x252b5b==null?void 0x0:_0x252b5b[_0x31d291(0x2ca)])??this[_0x31d291(0x1f8)];if(this[_0x31d291(0x2c6)]||this[_0x31d291(0x3a4)]()||this['_pendingToken']!==_0x44a00d||!_0x252b5b||_0x22d38b!==_0x19f904||document['getElementById'](_0x19f904)!==_0x2e7e81||!_0x2e7e81[_0x31d291(0x38a)])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x1bddd4=this[_0x31d291(0x1f0)]();if(!_0x1bddd4)throw Error(_0x31d291(0x3cb));let _0x383e33=new _0x1af803(_0x2e7e81);return _0x383e33[_0x31d291(0x2cc)](this[_0x31d291(0x365)](_0x1bddd4),this['_frameStyle']()),this[_0x31d291(0x32c)](_0x2e7e81),this['_domFrame']=_0x383e33,this['_managed']=!0x0,{'mountNode':_0x383e33['mountNode'],'dispose':()=>{const _0x18f48e=_0x31d291;this['dispose'](),_0x5aa94f[_0x18f48e(0x125)][_0x18f48e(0x125)]();}};}finally{this['_waiter']===_0x5b4972&&(this['_waiter']=null),this[_0x31d291(0x21f)]===_0x44a00d&&(this['_pendingToken']=null);}}['_cancelHostWait'](){const _0x3930c6=_0x58e4e4;let _0x1514fb=this[_0x3930c6(0x3ba)];_0x1514fb&&(_0x1514fb[_0x3930c6(0x28d)](),this[_0x3930c6(0x3ba)]=null);}[_0x58e4e4(0x20f)](){const _0x42c67b=_0x58e4e4;let _0x1c415f=this[_0x42c67b(0x1f0)]();this[_0x42c67b(0x2ff)]&&_0x1c415f&&this[_0x42c67b(0x2ff)][_0x42c67b(0x2cc)](this[_0x42c67b(0x365)](_0x1c415f),this[_0x42c67b(0x15a)]());}[_0x58e4e4(0x365)](_0x1ec2b7){const _0x9b0fcc=_0x58e4e4;return _0x16653f['resolve']({'logicalOuterRect':{'left':_0x1ec2b7[_0x9b0fcc(0x270)],'top':_0x1ec2b7[_0x9b0fcc(0x23a)],'width':_0x1ec2b7['width'],'height':_0x1ec2b7[_0x9b0fcc(0x1d7)]},'scale':{'scaleX':_0x1ec2b7[_0x9b0fcc(0x2a6)],'scaleY':_0x1ec2b7['scaleY']},'hostStyle':this['_frameStyle'](),'contentMode':_0x5ddbd5[_0x9b0fcc(0x119)]});}['_frameStyle'](){return{...this['_hostStyle'],'radius':_0x5af627};}[_0x58e4e4(0x32c)](_0x201a83){const _0x1fb6b7=_0x58e4e4;let _0x4e5af8=_0x201a83[_0x1fb6b7(0x24f)];_0x4e5af8&&(this[_0x1fb6b7(0x3c7)]||={'zIndex':_0x4e5af8[_0x1fb6b7(0x2dd)][_0x1fb6b7(0x179)],'pointerEvents':_0x4e5af8[_0x1fb6b7(0x2dd)][_0x1fb6b7(0x2b6)]},_0x4e5af8[_0x1fb6b7(0x2dd)][_0x1fb6b7(0x179)]=_0x1fb6b7(0x27f),this[_0x1fb6b7(0x201)](_0x201a83));}[_0x58e4e4(0x201)](_0xb0a359){const _0x2ce144=_0x58e4e4;let _0x8f5f3a=_0xb0a359[_0x2ce144(0x24f)];if(!_0x8f5f3a)return;let _0x3910ac=this['_dataUpdateAnimationDuration'];if(_0x3910ac!=null){_0xb0a359[_0x2ce144(0x202)][_0x2ce144(0x13e)]=_0x2ce144(0x1c6),_0xb0a359[_0x2ce144(0x202)][_0x2ce144(0x126)]=String(_0x3910ac),_0x8f5f3a['style'][_0x2ce144(0x2b6)]=_0x2ce144(0x234);return;}delete _0xb0a359[_0x2ce144(0x202)][_0x2ce144(0x13e)],delete _0xb0a359['dataset'][_0x2ce144(0x126)],_0x8f5f3a[_0x2ce144(0x2dd)][_0x2ce144(0x2b6)]=_0x2ce144(0x2e8);}[_0x58e4e4(0x353)](){const _0x4ecde0=_0x58e4e4;if(!this[_0x4ecde0(0x3c7)])return;let _0x4f369f=this[_0x4ecde0(0x342)](),_0x20c830=(_0x4f369f==null?void 0x0:_0x4f369f['domId'])??this['chartId'],_0x34ae6e=document[_0x4ecde0(0x1e4)](_0x20c830);_0x34ae6e==null||delete _0x34ae6e['dataset']['sheetChartDataAnimation'],_0x34ae6e==null||delete _0x34ae6e[_0x4ecde0(0x202)][_0x4ecde0(0x126)];let _0x326bda=_0x34ae6e==null?void 0x0:_0x34ae6e['parentElement'];_0x326bda&&(_0x326bda[_0x4ecde0(0x2dd)][_0x4ecde0(0x179)]=this['_savedWrapperStyle'][_0x4ecde0(0x179)],_0x326bda[_0x4ecde0(0x2dd)]['pointerEvents']=this[_0x4ecde0(0x3c7)][_0x4ecde0(0x2b6)]),this[_0x4ecde0(0x3c7)]=null;}},ai=class extends _0xeb5e8c{constructor(_0x3f5e0f,_0x4b90d1,_0x2ebf7f,_0x3c5c8b,_0x201e3a,_0x226595){const _0x29dbe3=_0x58e4e4;super(_0x3f5e0f),this[_0x29dbe3(0x24e)]=_0x4b90d1,this[_0x29dbe3(0x1ad)]=_0x2ebf7f,this[_0x29dbe3(0x16a)]=_0x3c5c8b,this['_snapshotStore']=_0x201e3a,this[_0x29dbe3(0x37f)]=_0x226595;}[_0x58e4e4(0x307)](){const _0x373ef7=_0x58e4e4;let _0x15ccf2=this[_0x373ef7(0x24e)]();return _0x15ccf2?Kr(_0x15ccf2):null;}['setStyle'](_0x305cd1){const _0x51cc2b=_0x58e4e4;this[_0x51cc2b(0x1ad)](_0x305cd1);}['nextVersion'](){const _0x37a6a5=_0x58e4e4;return this[_0x37a6a5(0x1a6)][_0x37a6a5(0x23c)](this[_0x37a6a5(0x16a)]);}['commitSnapshot'](_0x42245d,_0x14d22c){const _0x3bdc02=_0x58e4e4;return this[_0x3bdc02(0x1a6)][_0x3bdc02(0x2f2)](this[_0x3bdc02(0x16a)],_0x42245d,_0x14d22c);}[_0x58e4e4(0x100)](){const _0x312e36=_0x58e4e4;this[_0x312e36(0x37f)]();}['invalidateSnapshot'](){const _0x5a105b=_0x58e4e4;this[_0x5a105b(0x1a6)][_0x5a105b(0x23c)](this['_snapshotKey']);}};function K(_0x34f329,_0x369889){return function(_0x793a5f,_0x5bee1f){_0x369889(_0x793a5f,_0x5bee1f,_0x34f329);};}function q(_0x3a23d7,_0x55cc55,_0x151f43,_0x41e3d6){const _0x36aadd=_0x58e4e4;var _0x5bd004=arguments[_0x36aadd(0x334)],_0xebb8ed=_0x5bd004<0x3?_0x55cc55:_0x41e3d6===null?_0x41e3d6=Object[_0x36aadd(0x168)](_0x55cc55,_0x151f43):_0x41e3d6,_0x56950e;if(typeof Reflect=='object'&&typeof Reflect[_0x36aadd(0x372)]==_0x36aadd(0x2de))_0xebb8ed=Reflect[_0x36aadd(0x372)](_0x3a23d7,_0x55cc55,_0x151f43,_0x41e3d6);else{for(var _0x53516b=_0x3a23d7[_0x36aadd(0x334)]-0x1;_0x53516b>=0x0;_0x53516b--)(_0x56950e=_0x3a23d7[_0x53516b])&&(_0xebb8ed=(_0x5bd004<0x3?_0x56950e(_0xebb8ed):_0x5bd004>0x3?_0x56950e(_0x55cc55,_0x151f43,_0xebb8ed):_0x56950e(_0x55cc55,_0x151f43))||_0xebb8ed);}return _0x5bd004>0x3&&_0xebb8ed&&Object[_0x36aadd(0x12d)](_0x55cc55,_0x151f43,_0xebb8ed),_0xebb8ed;}const oi=0.5;function si(_0x4f2b5d){const _0x6291e6=_0x58e4e4;let _0x5d9f5a=Math[_0x6291e6(0x20e)](_0x4f2b5d[_0x6291e6(0x313)]-_0x4f2b5d[_0x6291e6(0x11c)],0x0),_0x25afa0=Math[_0x6291e6(0x20e)](_0x4f2b5d[_0x6291e6(0x14e)]-_0x4f2b5d[_0x6291e6(0x2e3)],0x0),_0x584976=_0x4f2b5d[_0x6291e6(0x3a7)]['left']&&_0x4f2b5d['width']-_0x5d9f5a>oi,_0xd4f1bc=_0x4f2b5d['absolute'][_0x6291e6(0x23a)]&&_0x4f2b5d['height']-_0x25afa0>oi;return!_0x584976&&!_0xd4f1bc?_0x4f2b5d:{..._0x4f2b5d,'absolute':{'left':!_0x584976&&_0x4f2b5d[_0x6291e6(0x3a7)][_0x6291e6(0x270)],'top':!_0xd4f1bc&&_0x4f2b5d['absolute'][_0x6291e6(0x23a)]}};}function ci(_0x1fa05c){const _0x2aeff7=_0x58e4e4;if(!Object[_0x2aeff7(0x27d)][_0x2aeff7(0x2eb)]['call'](_0x1fa05c,_0x2aeff7(0x2b8)))return _0x1fa05c;let {border:_0x5e8363,..._0xbe3d25}=_0x1fa05c;return{..._0xbe3d25,'stroke':(_0x5e8363==null?void 0x0:_0x5e8363[_0x2aeff7(0x374)])??_0x2aeff7(0x156),'strokeWidth':(_0x5e8363==null?void 0x0:_0x5e8363['width'])??0x0};}function _0x3cf9(){const _0x2397e2=['isFinite','_disposed','Reference','UniverSheetsChartUIPlugin','_clearSelectedTarget','domId','resourceCollector','update','visible','_getImage','OTHERS','intercept','sheet.command.chart.open-focused-panel','undo','getSheetBySheetId','OVERRIDE_NATIVE','WaterfallSeries','getUnit','sheets-chart-ui.common.copy','_chartHostProviderService','setObjectType','_listenChartUpdateMutations','forEach','drawingId','style','function','_dataUpdateAnimationDuration','Pie','_initPermission','type','startY','Axes','sheets-chart-element-float-menu','params','innerHeight','auto','setChartEditorOpen','engine','hasOwnProperty','setOrientation','naturalWidth','div','GROUP','_updateTransform','_initDrawingDeactivationListener','setImage','_openPanel','_getDrawable','redo','resolve','version','sheet.operation.hide-chart-panel','_deactivateDataUpdateAnimation','_registerChartImageRenderObjectFactory','route','concat','_adapterRegistry','sheets-chart-ui.config','_domFrame','baseOn','-univer-mx-4\x20univer-overflow-visible','_sheetCanvasPopManagerService','clientHeight','_getChartRenderSkipReason','canvas','_shouldEnableChartElementEdit','getRect','_registerComponents','_config','_initSheetChange','all','_requestedUrl','PenIcon','chartObject','BUTTON','ParetoBarSeries','entries','MEDIA','endX','_closePopup','toPrimitive','sheets-chart-ui.waterfall.positive','takeSnapshot','afterRender$','clearPanelRoute','funnel','next','sheets-chart-ui.common.insertChart','featurePluginUngroupUpdate$','Waterfall','defaultValues','getActiveSheet','getFocusDrawings','format','viewBound','initialRect','_initMenus','sheets-chart.ui.service','top-center','focus$','_createHost','Canvas','sheets-chart-ui.section.chord','_activateHostWrapper','getValue','552415EDLCPb','_pendingDataUpdateChartIds','addObject','position$','setContextValue','Legend','length','registerRenderObjectFactory','(prefers-reduced-motion:\x20reduce)','_addWatermark','assignStyle','_sheetsChartUIService','Radar','sheet-chart-style-panel','error','univer-flex\x20univer-flex-col\x20univer-gap-3','open','getChartSnapshotImage','_clearPendingUrlImage','chartType','_getFloatDomInfo','then','_getOrCreateSheetChartHost','bind','_panelInitialized','setHostStyle','univer-my-1\x20univer-text-xs\x20univer-text-red-500','endsWith','_popupChartId','_sheetDrawingHitTestService','_cancelHostWait','checkHost','Subtotal','_loadUrlImage','_clearChartRuntimeCache','_isChartElementEditEnabled','source','_restoreHostWrapper','constructor','attachPopupToDynamicAbsolutePosition','isLatest','COMMA','getSheetId','SVG','_version','some','evented','_pendingUrlImage','-univer-mx-4','bottom','blockExecuteWithoutPermission','transform','ancestorTransform','ChartAndAxisTitles','remove$','_resolveLayout','crossOrigin','sheets-chart-ui.section.paretoLine','get','href','_syncActiveEditChart','select','_sidebarService','object','2736845jyukAD','clientX','getChartSourceSpec','featurePluginOrderUpdate$','decorate','serialize','color','offsetHeight','_sheetClipboardService','sheets-chart-ui.common.verticalAxis','openChartPanelById','panelRoute$','set','trendline','getDrawingOrder','getRenderUnitById','Url','_requestPaint','unitId','segmented','2944676MApSYU','_chartRenderMode','width','removeHost$','sheets-chart-ui.common.switchRowColumn','_componentManager','ensureHandle','univer-shrink-0','isConnected','_subscribeChartEvents','Scatter','Heatmap','sheet.operation.open-chart-panel','sheets-chart-ui.common.deleteChart','subscribeEvent','executeChartUpdateConfig','_sheetsChartService','_generatePasteMutations','getDirection','visibilityState','_initCopyPaste','name','sheets-chart-ui.common.dataRange','clear','indexOf','has','chartModelRemoved$','_resolveChartRenderMode','_pendingMutationConfigRenders','_clearHiddenSelectedTarget','dataSource$','sheets-chart-ui.waterfall.negative','_openEditPanelByDoubleClick','_activateEditPanelState','_isProviderDisposed','sheets-chart-ui.section.radar','header','absolute','_rangeSelectMode','_chartHostMap','getContextValue','setDataRange','ENTER','invert','ensureMount','_rect','_renderManagerService','pipe','range','map','onDispose','matchMedia','63430brwuLL','getParent','number','animateDataUpdate','_waiter','icon','getMatrix','register','sheetDisposed$','sheets-chart-ui.common.chart','setElementEditMode','_prepareDataUpdateRender','stringify','Relation','.chart-host','missing-float-dom','getRenderModel','_savedWrapperStyle','renderTransition','_isOwnedChart','_chartChangeSubscriptions','Fail\x20to\x20create\x20float\x20dom','_managed','sheet.command.chart.delete-focused-chart','Trendline','getRenderColor','legend','_panelRoute$','getImage','_cancelDebouncedCallbacks','sheet.command.chart.export-focused-image','rangeSelectMode','getBoundingClientRect','requestPaint','_debounceHandle','interceptCommand','sheets-chart-ui.common.customize','_lastRenderInputMap','disposeWithMe','_disposeChartEventSubscription','onCommandExecuted','restore','sheets-chart-ui.section.waterfall','syncHostLayout','scene','removeHost','isArray','univer-overflow-hidden','onRendered','_createChartRenderInstanceContext','sheets-chart-ui.common.openChartPanel','_resetChartRuntimeZIndex','_alignFloatDomPositionWithSceneRender','activeSheet$','relation','_commandService','359378lVQzCc','sheets-chart-ui.section.sunburst','Overlay','_cacheActiveDomChartSnapshot','getCurrentTypeOfUnit$','startX','REMOVE','Gauge','target','series','sheets-chart-ui.section.gridlinesAndTicks','_registerAdapter','markUnmanaged','univer-sticky\x20-univer-top-3\x20univer-z-10\x20-univer-mx-4\x20-univer-mt-3\x20univer-shrink-0\x20univer-bg-gray-0\x20univer-px-4\x20univer-pt-3\x20dark:!univer-bg-gray-900','dispose','sheetChartDataAnimationDuration','createElement','_resolvedConfig','offsetLeft','globalAlpha','syncLayout','_scheduleDataUpdateAnimationEnd','defineProperty','ChartStyle','src','_sheetSkeletonService','_markReady','_chartEventHandlers','_urlImage','small','@univerjs-pro/sheets-chart-ui','Chord','direction$','getChartPopupMenus','sheet.command.chart.copy-focused-chart','Candlestick','setConfig','rightY','_chartElementEditMode','sheetChartDataAnimation','sidebarOptions$','_chartHostProvider','getSubUnitId','closePath','_disposeChartChangeListeners','bounds','idMap','_disposeImage','HorizontalAxis','rect','_menuManagerService','push','sheets-chart-ui.common.invalidDataRange','_generateCopyPasteMutations','radius','endY','registerFeatureMenu','rangeInfo$','allSettled','univer-overflow-visible','renderChartsForPrinting','sheets-chart-ui.common.series','url','transparent','_canAnimateDataUpdate','_clearSheetChartRuntimeCaches','trim','_frameStyle','Boxplot','sheets-chart-ui.chord.target','sheets-chart-ui.common.horizontalAxis','Sunburst','_deactivateEditPanelState','_themeService','clientY','_sheetPrintInterceptorService','chartModelId','section','_draw','Dom','_canvasFloatDomService','getOwnPropertyDescriptor','getBatchUpdateOp','_snapshotKey','matches','getFocusedUnit','UNIVER_SHEET','_markHostReady','#-#','_initPrinting','_renderService','_injector','createRuntimeChartStyle','_entries','removeChartModel','_initCommands','OPERATION','dom','zIndex','innerWidth','_requestChartCanvasRender','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','pieSecondaryPlotType','category','_image','download','univer-flex\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','isManaged','_chartThemeService','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','current','Column','_handleDrawingDoubleClick','_copyInfo','_chartSnapshotStoreService','rangeInfo','chartEditorOpen','WordCloud','checkChartCanRender','onTransformChange$','sourceSubUnitId','multiply','_renderChartModel','CUT','context','offsetTop','_renderWhenConfigReady','translate','Treemap','_initActiveChartModelListener','strokeWidth','_getOrCreateChartRenderInstance','chartRenderMode','_univerInstanceService','sheet.chart.edit.panel','filter','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','setStyle','sheets-chart-ui.common.rightVerticalAxis','string','_createPrintingChartObject','_chartEditorOpen$','_sheetInterceptorService','_snapshotStore','_renderModelManager','getSkeleton','Data','DRAWING_CHART','clearImage','.png','_setHostStyle','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','onDoubleClick$','sheets-chart-ui.section.gauge','Row','_initActiveRuntimeLayerListener','copyId','getConfig','_contextService','_clearPanelState','iconName','sheets-chart-ui.common.exportImage','_activateDataUpdateAnimation','contains','_getHostPlacement','9204088tvZjEe','isHit','_drawingManagerService','_registerIcons','getFloatDomInfo','logicalOuterRect','items','mobile-sheet-chart-setup-panel','_restoreFloatDomPositionStream','sheets-chart-ui.common.setup','true','add','_dataUpdateAnimationChartIds','_sheetCanvasFloatDomManagerService','subscribe','Funnel','sheetId','_activeDomReadyChartIds','keys','click','sheets-chart-ui.common.editChart','titleKey','CHART','objects','_markNotReady','enableChartElementFloatMenu','_getSceneAndTransformerByDrawingSearch','height','_getCurrentSnapshotImage','_getChartRenderObject','Histogram','IndicatorLine','_bindChartEventHandlers','hidePanel','Image','render','DRAWING','pareto','sheets-chart-ui.waterfall.subtotal','_bindChartEventHandler','getElementById','missing-active-sheet','symbol','config$','transformChange$','sheets-chart-ui.common.legend','getBatchAddOp','nativeEvent','DEFAULT_PASTE','focusDrawing','executeCommand','setActiveChartModel','_getPlacement','COMMAND','close','VerticalAxis','showFloatMenu','pie','initPanel','getHostSize','chartId','complete','anonymous','querySelector','axis','naturalHeight','sheets-chart-ui.section.wordCloud','_disposeChartEventSubscriptions','PRINTING_COMPONENT_COLLECT','_applyHostInteractionState','dataset','arc','style$','startRow','getTransformerByCreate','opacity','fromEntries','supports','INSERT','Bar','sheets-chart-ui.section.histogram','groupId','max','_applyHostStyle','sheets-chart-ui.common.hideChartPanel','_configService','_createCopyInfoByRange','right','_url','mergeMenu','_focusedDrawings','markNotReady','getRangeInfo','interceptor','sheet.command.menu-insert-chart','iterator','offsetWidth','sheets-chart-ui.common.useAsCategoryLabels','add$','_pendingToken','getObjectIncludeInGroup','label','beforeCommandExecuted','DeleteIcon','sheets-chart-ui.section.paretoBar','setBorder','values','min','ParetoLineSeries','12bJQBml','updateFloatDom','onStarting','RightVerticalAxis','sheets-chart-ui.section.treemap','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_applyActiveChartRuntimeZIndex','_createImageChartHost','_drawChartImage','sheets-chart-ui.common.chartStyle','_chartEventSubscriptions','none','sheets-chart-ui.common.trendline','image','Pareto','getInterceptPoints','allSeriesStyle','top','GridlinesAndTicks','nextVersion','_shouldSuppressRender','Literals','invalidateSnapshot','activeChartModel','_activeChartId','_localeService','_sidebarDisposable','clearChart','_sheetPermissionCheckController','getObject','darkMode$','pluginName','getRuntimeContext','titles','_setChartRuntimeZIndex','7HwgqUm','save','_getOuterRect','parentElement','_chartUIService','seriesId','mountNode','isDomReady','getName','chartEditorOpen$','value','_lastActiveSheet','sheets-chart-ui.section.funnel','tab','resize','config','delete','_chartModelService','copyType','scroll','_getChartSnapshotKey','isRender','getBatchRemoveOp','scaleY','Series','activeRuntimeModel','getCanvasElement','setPanelRoute','sheet-chart-setup-panel','addClipboardHook','_generateCutPasteMutations','_chartInstanceMap','localPoint','_drawChartFrame','mode','applyPoint','left','dataUrl','_popupSessionKey','commitSnapshot','ensureHost','_resizeChart','ImageBitmap','markHostNotReady','_rerenderLatest','_renderDebounceMap','sheets-chart-ui.chartTypes.','CopyDoubleIcon','print','prototype','3195852imtNye','1000','SELECTOR','hit','UPDATE','chartModelAdded$','unsubscribe','packageName','updateFloatDomProps','_executeChartUpdateSourceConfig','activeChartModel$','children','Combination','onload','subUnitId','cancel','getDrawingData','_chartRenderService','_dataUpdateAnimationTimers','21TJYOGJ','rightYAxis','makeDirty','_removeHost$','dblclick','setRangeSelectMode','promise','abs','barStyle','getCurrentUnitOfType','Style','clip','split','call','dataSource','_disposeChartDomInstance','getDrawingByParam','checkMounted','createChartInstance','exportImage','isElementEditModeActive','scaleX','setDataUpdateAnimation','sheetTransform','_popupDisposable','getChartModel','ChartIcon','isInGroup','lineTo','data$','labelId','_init','_debounceHandleMap','isRowDirection','1575JKDMxR','drawingIds','context$','pointerEvents','_iconManager','border','sheets-chart-ui.section.candlestick','_pendingHost','registerCommand','beginPath','_disposeChartRenderInstance','Area','getRealBound','wordCloud','_sheetDrawingService','drawingType','getUnitId','_hostStyle'];_0x3cf9=function(){return _0x2397e2;};return _0x3cf9();}let li=class extends _0x7b52dc{constructor(_0x311083,_0x5542e1,_0x558d5a,_0x387afb){const _0x57f2f7=_0x58e4e4;super(),this['_sheetCanvasFloatDomManagerService']=_0x311083,this['_renderManagerService']=_0x5542e1,this[_0x57f2f7(0x189)]=_0x558d5a,this[_0x57f2f7(0x167)]=_0x387afb,W(this,_0x57f2f7(0x3a9),new Map()),W(this,'_activeDomReadyChartIds',new Set()),W(this,_0x57f2f7(0x294),new _0x456331()),W(this,_0x57f2f7(0x385),this['_removeHost$']['asObservable']()),this[_0x57f2f7(0x105)](this[_0x57f2f7(0x1c9)]['remove$']['subscribe'](_0x5bd0c1=>{const _0x56410f=_0x57f2f7;let _0x523ccd=this['_chartHostMap'][_0x56410f(0x368)](_0x5bd0c1['id']);_0x523ccd!=null&&_0x523ccd[_0x56410f(0x182)]()&&(_0x523ccd[_0x56410f(0x123)](),this[_0x56410f(0x294)][_0x56410f(0x31b)](_0x5bd0c1['id']));}));}['_getSceneAndTransformerByDrawingSearch'](_0x15a338){const _0x450317=_0x58e4e4;if(_0x15a338==null)return;let _0xeb2bd7=this[_0x450317(0x3b0)][_0x450317(0x37d)](_0x15a338),_0x529dbe=_0xeb2bd7==null?void 0x0:_0xeb2bd7[_0x450317(0x10b)];return _0xeb2bd7==null||_0x529dbe==null?null:{'scene':_0x529dbe,'transformer':_0x529dbe[_0x450317(0x206)](),'renderUnit':_0xeb2bd7,'canvas':_0xeb2bd7[_0x450317(0x2ea)][_0x450317(0x266)]()};}[_0x58e4e4(0x225)](_0x3f0320,_0x3044a4){const _0x1319fd=_0x58e4e4;let _0x101ab=this[_0x1319fd(0x1c9)],_0x538318=_0x3044a4||_0x1319fd(0x156),_0x2645cb=_0x101ab[_0x1319fd(0x1c0)](_0x3f0320);if(_0x2645cb){let {unitId:_0x2bd959,subUnitId:_0x5d54e8}=_0x2645cb;_0x101ab[_0x1319fd(0x286)](_0x2bd959,_0x5d54e8,_0x3f0320,{'stroke':_0x538318});}}['setHostStyle'](_0x5753cf,_0x22bcfc){const _0x8d6c=_0x58e4e4;let _0x533cf7=this['_sheetCanvasFloatDomManagerService'],_0x4f6439=_0x533cf7[_0x8d6c(0x1c0)](_0x5753cf);if(_0x4f6439){let {unitId:_0xad1710,subUnitId:_0x4d3a62}=_0x4f6439;_0x533cf7[_0x8d6c(0x286)](_0xad1710,_0x4d3a62,_0x5753cf,ci(_0x22bcfc));}}[_0x58e4e4(0x1f7)](_0x1b6979){const _0x42b451=_0x58e4e4;let _0x203c0d=this['_sheetCanvasFloatDomManagerService'][_0x42b451(0x1c0)](_0x1b6979);return _0x203c0d?_0x203c0d[_0x42b451(0x148)]:null;}['getHostClientRect'](_0x334811){const _0x55b748=_0x58e4e4;let _0x33c8e3=this['_sheetCanvasFloatDomManagerService'][_0x55b748(0x1c0)](_0x334811),_0x47887d=document['getElementById']((_0x33c8e3==null?void 0x0:_0x33c8e3['domId'])??_0x334811);return(_0x47887d==null?void 0x0:_0x47887d[_0x55b748(0xff)]())??null;}[_0x58e4e4(0x2a7)](_0x5f22eb,_0x2d6928){const _0x374033=_0x58e4e4;var _0x1b9bef;(_0x1b9bef=this[_0x374033(0x3a9)][_0x374033(0x368)](_0x5f22eb))==null||_0x1b9bef[_0x374033(0x2a7)](_0x2d6928);}[_0x58e4e4(0x34d)](_0x1049c0){const _0x1e78f1=_0x58e4e4;var _0x388484;return((_0x388484=this[_0x1e78f1(0x3a9)][_0x1e78f1(0x368)](_0x1049c0))==null?void 0x0:_0x388484[_0x1e78f1(0x2a2)]())??!0x1;}[_0x58e4e4(0x10a)](_0x25b9ab){const _0x3dda62=_0x58e4e4;var _0x598e58;(_0x598e58=this[_0x3dda62(0x3a9)][_0x3dda62(0x368)](_0x25b9ab))==null||_0x598e58[_0x3dda62(0x12b)]();}['removeHost'](_0x3c6e6d){const _0x9b1e78=_0x58e4e4;let _0x368f3d=this['_chartHostMap'][_0x9b1e78(0x368)](_0x3c6e6d);_0x368f3d==null||_0x368f3d[_0x9b1e78(0x125)](),this[_0x9b1e78(0x3a9)][_0x9b1e78(0x25c)](_0x3c6e6d);}async[_0x58e4e4(0x274)](_0x2337f4,_0x4901d2){const _0x1053af=_0x58e4e4;if(_0x4901d2===_0x3f6e51[_0x1053af(0x1de)])return this[_0x1053af(0x230)](_0x2337f4);if(_0x4901d2===_0x3f6e51[_0x1053af(0x166)])return this['_getOrCreateSheetChartHost'](_0x2337f4);let _0x4826c8=this[_0x1053af(0x344)](_0x2337f4);if(!_0x4826c8)throw Error(_0x1053af(0x3cb));return _0x4826c8[_0x1053af(0x388)]();}[_0x58e4e4(0x253)](_0x52bf5b){const _0x59fbe3=_0x58e4e4;var _0x2b86ba;return this['_activeDomReadyChartIds'][_0x59fbe3(0x39b)](_0x52bf5b)?(_0x2b86ba=this['_chartHostMap'][_0x59fbe3(0x368)](_0x52bf5b))!=null&&_0x2b86ba[_0x59fbe3(0x2a2)]()?!0x0:(this[_0x59fbe3(0x1cd)][_0x59fbe3(0x25c)](_0x52bf5b),this[_0x59fbe3(0x1c4)](_0x52bf5b),!0x1):!0x1;}[_0x58e4e4(0x277)](_0x49e822){const _0xc680ec=_0x58e4e4;this[_0xc680ec(0x1cd)][_0xc680ec(0x25c)](_0x49e822)&&(this['_restoreFloatDomPositionStream'](_0x49e822),this['_requestChartCanvasRender'](_0x49e822));}[_0x58e4e4(0x23f)](_0x3b0867){const _0xd2a430=_0x58e4e4;let _0x1490ac=this[_0xd2a430(0x260)](_0x3b0867);_0x1490ac&&this[_0xd2a430(0x189)]['nextVersion'](_0x1490ac);}[_0x58e4e4(0x230)](_0x4a52bc){const _0x4879e3=_0x58e4e4;let _0x411ffc=this[_0x4879e3(0x260)](_0x4a52bc);return!_0x411ffc||!this[_0x4879e3(0x1f7)](_0x4a52bc)?null:new ai(_0x4a52bc,()=>this[_0x4879e3(0x1f7)](_0x4a52bc),_0x5dee82=>this[_0x4879e3(0x347)](_0x4a52bc,_0x5dee82),_0x411ffc,this[_0x4879e3(0x189)],()=>this['_requestChartCanvasRender'](_0x4a52bc));}[_0x58e4e4(0x344)](_0x5bea9e){const _0x3c2ba2=_0x58e4e4;if(!this[_0x3c2ba2(0x1f7)](_0x5bea9e))return null;this[_0x3c2ba2(0x167)][_0x3c2ba2(0x22a)](_0x5bea9e,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x1a5873=this[_0x3c2ba2(0x3a9)][_0x3c2ba2(0x368)](_0x5bea9e);if(_0x1a5873)return _0x1a5873;let _0x1eaeaa=new ii(_0x5bea9e,()=>this['_sheetCanvasFloatDomManagerService'][_0x3c2ba2(0x1c0)](_0x5bea9e),()=>this['_getHostPlacement'](_0x5bea9e),_0x2148ee=>this[_0x3c2ba2(0x347)](_0x5bea9e,_0x2148ee),()=>this['_disposed'],()=>this[_0x3c2ba2(0x16e)](_0x5bea9e),()=>this[_0x3c2ba2(0x277)](_0x5bea9e));return this['_chartHostMap']['set'](_0x5bea9e,_0x1eaeaa),_0x1eaeaa;}[_0x58e4e4(0x16e)](_0x45b6ba){const _0x2b1516=_0x58e4e4;this[_0x2b1516(0x1cd)][_0x2b1516(0x39b)](_0x45b6ba)||(this[_0x2b1516(0x1cd)][_0x2b1516(0x1c7)](_0x45b6ba),this[_0x2b1516(0x113)](_0x45b6ba),this['_requestChartCanvasRender'](_0x45b6ba));}[_0x58e4e4(0x113)](_0x4d808e){const _0x1a775a=_0x58e4e4;var _0x5a0981;let _0x3195f8=this['_sheetCanvasFloatDomManagerService'][_0x1a775a(0x1c0)](_0x4d808e),_0x12d0a0=_0x3195f8?(_0x5a0981=this['_renderManagerService']['getRenderUnitById'](_0x3195f8['unitId']))==null?void 0x0:_0x5a0981[_0x1a775a(0x10b)]:null;if(!_0x3195f8||!_0x12d0a0)return;let _0xffaf7=_0x3f8f2e(_0x3195f8[_0x1a775a(0x331)]['pipe'](_0x315267(0x1)),_0x12d0a0[_0x1a775a(0x318)]['pipe'](_0x3fe11d(_0x3195f8[_0x1a775a(0x331)]),_0x587f1(([,_0x5f3aff])=>_0x5f3aff)))[_0x1a775a(0x3b1)](_0x23f42d(),_0x587f1(si));this['_canvasFloatDomService'][_0x1a775a(0x22a)](_0x4d808e,{'position$':_0xffaf7});}[_0x58e4e4(0x1c4)](_0xe4bb4c){const _0x2dc3db=_0x58e4e4;let _0x3759cc=this[_0x2dc3db(0x1c9)][_0x2dc3db(0x1c0)](_0xe4bb4c);_0x3759cc&&this['_canvasFloatDomService'][_0x2dc3db(0x22a)](_0xe4bb4c,{'position$':_0x3759cc[_0x2dc3db(0x331)]});}[_0x58e4e4(0x260)](_0x2e2e32){const _0x5e5086=_0x58e4e4;let _0x1dd1f7=this['_sheetCanvasFloatDomManagerService'][_0x5e5086(0x1c0)](_0x2e2e32);return _0x1dd1f7?{'unitId':_0x1dd1f7[_0x5e5086(0x380)],'subUnitId':_0x1dd1f7[_0x5e5086(0x28c)],'chartId':_0x2e2e32}:null;}[_0x58e4e4(0x17b)](_0x2860c8){const _0x9b85c8=_0x58e4e4;var _0xd4b0b,_0x1b108b,_0x5863b9;let _0x10a36a=this[_0x9b85c8(0x1c9)][_0x9b85c8(0x1c0)](_0x2860c8);if(!_0x10a36a)return;let _0x41b3d1=(_0xd4b0b=this[_0x9b85c8(0x3b0)][_0x9b85c8(0x37d)](_0x10a36a['unitId']))==null?void 0x0:_0xd4b0b[_0x9b85c8(0x10b)],_0x21d4fa=(_0x41b3d1==null||(_0x1b108b=_0x41b3d1['getObjectIncludeInGroup'])==null?void 0x0:_0x1b108b['call'](_0x41b3d1,_0x14acce({'unitId':_0x10a36a[_0x9b85c8(0x380)],'subUnitId':_0x10a36a[_0x9b85c8(0x28c)],'drawingId':_0x2860c8})))??(_0x41b3d1==null?void 0x0:_0x41b3d1['getObject'](_0x14acce({'unitId':_0x10a36a['unitId'],'subUnitId':_0x10a36a[_0x9b85c8(0x28c)],'drawingId':_0x2860c8})))??null;_0x21d4fa==null||(_0x5863b9=_0x21d4fa[_0x9b85c8(0x293)])==null||_0x5863b9['call'](_0x21d4fa,!0x0),_0x41b3d1==null||_0x41b3d1[_0x9b85c8(0x293)](!0x0);}[_0x58e4e4(0x1bb)](_0x4597d6){const _0x5d4f5d=_0x58e4e4;let _0x1123e7=this[_0x5d4f5d(0x1c9)][_0x5d4f5d(0x1c0)](_0x4597d6);if(!_0x1123e7)return null;let _0x3129ae=this[_0x5d4f5d(0x1d6)](_0x1123e7[_0x5d4f5d(0x380)]),_0x2723e0=_0x3129ae==null?void 0x0:_0x3129ae[_0x5d4f5d(0x10b)],_0x4eed6e=document[_0x5d4f5d(0x1e4)](_0x1123e7['domId']??_0x4597d6);return qr(_0x1123e7[_0x5d4f5d(0x148)],{'scaleX':(_0x2723e0==null?void 0x0:_0x2723e0[_0x5d4f5d(0x2a6)])??0x1,'scaleY':(_0x2723e0==null?void 0x0:_0x2723e0['scaleY'])??0x1},_0x4eed6e?{'left':_0x4eed6e[_0x5d4f5d(0x129)],'top':_0x4eed6e[_0x5d4f5d(0x194)]}:void 0x0);}[_0x58e4e4(0x125)](){const _0x18e31b=_0x58e4e4;this['_disposed']||(this[_0x18e31b(0x3a9)]['forEach'](_0x1edcc6=>_0x1edcc6[_0x18e31b(0x125)]()),this[_0x18e31b(0x3a9)]['clear'](),this['_activeDomReadyChartIds'][_0x18e31b(0x399)](),this[_0x18e31b(0x294)][_0x18e31b(0x1f9)](),super[_0x18e31b(0x125)]());}};li=q([K(0x0,_0x569e33(_0x351035)),K(0x1,_0x569e33(_0x11bbe7)),K(0x2,_0x569e33(ni)),K(0x3,_0x569e33(_0x7e60e8))],li);const ui=_0x2fa213('sheets-chart-ui.host.provider'),di=_0x3f6e51[_0x58e4e4(0x1de)];var fi=class extends _0xeb5e8c{constructor(_0x42e494,_0x253387){const _0x3d3465=_0x58e4e4;super(_0x42e494),this['_rect']=_0x253387,W(this,_0x3d3465(0x35a),0x0),W(this,_0x3d3465(0x17f),void 0x0),W(this,'style',{});}[_0x58e4e4(0x307)](){const _0x2e6409=_0x58e4e4;return this[_0x2e6409(0x3af)];}[_0x58e4e4(0x1a0)](_0x323a02){const _0x1bbb10=_0x58e4e4;this[_0x1bbb10(0x2dd)]=_0x323a02;}[_0x58e4e4(0x23c)](){const _0x51cac6=_0x58e4e4;return++this[_0x51cac6(0x35a)];}[_0x58e4e4(0x273)](_0x47e873,_0x44b208){const _0x4a7f38=_0x58e4e4;return _0x44b208===this[_0x4a7f38(0x35a)]?(G(this['_image']),this[_0x4a7f38(0x17f)]=_0x47e873,!0x0):(G(_0x47e873),!0x1);}[_0x58e4e4(0x100)](){}[_0x58e4e4(0x23f)](){const _0x500fcc=_0x58e4e4;this[_0x500fcc(0x35a)]+=0x1;}[_0x58e4e4(0x317)](){const _0x5a8e36=_0x58e4e4;let _0x403cec=this[_0x5a8e36(0x17f)];return this[_0x5a8e36(0x17f)]=void 0x0,_0x403cec;}['dispose'](){const _0x19a052=_0x58e4e4;G(this[_0x19a052(0x17f)]),this['_image']=void 0x0,super[_0x19a052(0x125)]();}};function pi(_0x5eb532,_0x4500ed,_0x4ef046){const _0x2d1fd9=_0x58e4e4;let _0x598d1f=_0x5eb532[_0x2d1fd9(0x249)](_0x4500ed),_0xf436e3={..._0x5eb532[_0x2d1fd9(0x2dd)],'runtime':{..._0x598d1f,'layoutInset':0x8,..._0x4ef046===void 0x0?{}:{'addWatermark':_0x4ef046}},'direction':_0x4500ed};return _0x56bf83(_0xf436e3,_0x5eb532[_0x2d1fd9(0x341)]);}let J=class extends _0x7b52dc{constructor(_0x1a5369,_0x190def,_0x29cd39,_0x1c6184,_0x392ddf,_0x338b07,_0x443890,_0x1fe97c,_0x514cae,_0x1bd2f1,_0x4f87a2,_0x36b37b,_0x357cc9){const _0x3f4202=_0x58e4e4;super(),this['_chartHostProvider']=_0x1a5369,this[_0x3f4202(0x1c9)]=_0x190def,this[_0x3f4202(0x25d)]=_0x29cd39,this[_0x3f4202(0x1be)]=_0x1c6184,this['_univerInstanceService']=_0x392ddf,this['_renderManagerService']=_0x338b07,this[_0x3f4202(0x242)]=_0x443890,this[_0x3f4202(0x172)]=_0x1fe97c,this[_0x3f4202(0x183)]=_0x514cae,this['_themeService']=_0x1bd2f1,this['_configService']=_0x4f87a2,this[_0x3f4202(0x189)]=_0x36b37b,this[_0x3f4202(0x1a7)]=_0x357cc9,W(this,'_chartInstanceMap',new Map()),W(this,_0x3f4202(0x132),new Map()),W(this,_0x3f4202(0x233),new Map()),W(this,_0x3f4202(0x13d),new Map()),W(this,_0x3f4202(0x279),new Map()),W(this,_0x3f4202(0x2b1),new Map()),W(this,_0x3f4202(0x3ca),new Map()),W(this,_0x3f4202(0x383),void 0x0),W(this,_0x3f4202(0x337),void 0x0),W(this,_0x3f4202(0x104),new Map()),W(this,_0x3f4202(0x1c8),new Set()),W(this,_0x3f4202(0x290),new Map()),W(this,_0x3f4202(0x241),null),W(this,_0x3f4202(0x257),null);let _0x1c7db8=_0x1fd812(this[_0x3f4202(0x172)]),_0x3a34a0=this['_configService'][_0x3f4202(0x1b4)](_0x2b0dc7);this[_0x3f4202(0x383)]=(_0x3a34a0==null?void 0x0:_0x3a34a0[_0x3f4202(0x19b)])??di,this[_0x3f4202(0x337)]=_0x1c7db8['length']!==0x1||_0x1c7db8[0x0]!=='all',this[_0x3f4202(0x2fa)](),this[_0x3f4202(0x198)](),this[_0x3f4202(0x2f1)](),this[_0x3f4202(0x1b2)](),this['handleActiveSubUnitChange']();}[_0x58e4e4(0x33f)](_0x23b484){const _0x247a82=_0x58e4e4;let _0x5a33b6=this[_0x247a82(0x260)](_0x23b484);return _0x5a33b6?this['_chartSnapshotStoreService'][_0x247a82(0x3d2)](_0x5a33b6):void 0x0;}[_0x58e4e4(0x39d)](_0x182b99){const _0xcb5b43=_0x58e4e4;var _0x551b1f;return((_0x551b1f=this[_0xcb5b43(0x25d)][_0xcb5b43(0x240)])==null?void 0x0:_0x551b1f['id'])===_0x182b99?_0x3f6e51[_0xcb5b43(0x166)]:this[_0xcb5b43(0x383)];}['_getChartSnapshotKey'](_0x51ecbc){const _0x267637=_0x58e4e4;let _0x1a08f0=this[_0x267637(0x1c9)][_0x267637(0x1c0)](_0x51ecbc);return _0x1a08f0?{'unitId':_0x1a08f0[_0x267637(0x380)],'subUnitId':_0x1a08f0[_0x267637(0x28c)],'chartId':_0x51ecbc}:null;}[_0x58e4e4(0x2fa)](){const _0x22fd34=_0x58e4e4;this[_0x22fd34(0x383)]===_0x3f6e51['Image']&&this[_0x22fd34(0x105)](this['_sheetCanvasFloatDomManagerService'][_0x22fd34(0x335)](_0x43df04['DRAWING_CHART'],({key:_0x4c7968,config:_0x19fc8f,unitId:_0x170de3,subUnitId:_0x2618e7,drawingId:_0x1017b1})=>new Qr(_0x4c7968,_0x19fc8f,()=>this[_0x22fd34(0x189)][_0x22fd34(0x3d2)]({'unitId':_0x170de3,'subUnitId':_0x2618e7,'chartId':_0x1017b1}),()=>this['_chartHostProvider'][_0x22fd34(0x253)](_0x1017b1))));}[_0x58e4e4(0x198)](){const _0x58b019=_0x58e4e4;this[_0x58b019(0x105)](this[_0x58b019(0x25d)]['activeChartModel$'][_0x58b019(0x1ca)](_0x19e4d7=>{const _0x349dde=_0x58b019;let _0x5b7b4a=(_0x19e4d7==null?void 0x0:_0x19e4d7['id'])??null,_0x1f1630=this['_activeChartId'];_0x1f1630!==_0x5b7b4a&&(_0x1f1630&&(this[_0x349dde(0x140)]['markHostNotReady'](_0x1f1630),this[_0x349dde(0x112)](_0x1f1630),this[_0x349dde(0x2a0)](_0x1f1630)),this[_0x349dde(0x241)]=_0x5b7b4a,_0x5b7b4a&&(this[_0x349dde(0x2f9)](_0x5b7b4a),this[_0x349dde(0x140)]['markHostNotReady'](_0x5b7b4a),this[_0x349dde(0x22f)](_0x5b7b4a),this[_0x349dde(0x278)](_0x5b7b4a)));}));}[_0x58e4e4(0x2f1)](){const _0xb1e8e9=_0x58e4e4;this['disposeWithMe'](this[_0xb1e8e9(0x1be)]['featurePluginGroupUpdate$']['subscribe'](_0x145e57=>{const _0x58acbc=_0xb1e8e9;var _0xf264ff;let _0x4c129e=(_0xf264ff=this[_0x58acbc(0x25d)]['activeChartModel'])==null?void 0x0:_0xf264ff['id'];_0x4c129e&&_0x145e57[_0x58acbc(0x35b)](_0x57d3fe=>_0x57d3fe[_0x58acbc(0x289)][_0x58acbc(0x35b)](_0x3d636b=>_0x3d636b['drawingId']===_0x4c129e))&&this[_0x58acbc(0x25d)][_0x58acbc(0x1ef)](null);})),this['disposeWithMe'](this[_0xb1e8e9(0x1be)][_0xb1e8e9(0x31d)][_0xb1e8e9(0x1ca)](_0x104498=>{const _0x139198=_0xb1e8e9;var _0x445379;let _0x1ef62c=(_0x445379=this[_0x139198(0x25d)][_0x139198(0x240)])==null?void 0x0:_0x445379['id'];_0x1ef62c&&_0x104498[_0x139198(0x35b)](_0x25b60d=>_0x25b60d['parent'][_0x139198(0x2dc)]===_0x1ef62c||_0x25b60d[_0x139198(0x289)]['some'](_0x2ed25a=>_0x2ed25a[_0x139198(0x2dc)]===_0x1ef62c))&&this[_0x139198(0x25d)]['setActiveChartModel'](null);}));}[_0x58e4e4(0x1b2)](){const _0x56047c=_0x58e4e4;this[_0x56047c(0x105)](this[_0x56047c(0x1be)][_0x56047c(0x371)][_0x56047c(0x1ca)](_0x3374bf=>{const _0x3165=_0x56047c;var _0x5d1f6e;let _0x2f96aa=(_0x5d1f6e=this[_0x3165(0x25d)][_0x3165(0x240)])==null?void 0x0:_0x5d1f6e['id'];if(!_0x2f96aa){_0x3374bf[_0x3165(0x2b4)][_0x3165(0x2db)](_0x506291=>{const _0xff7400=_0x3165;this[_0xff7400(0x25d)][_0xff7400(0x2aa)](_0x506291)&&this[_0xff7400(0x112)](_0x506291);});return;}let _0x2ac52a=this[_0x3165(0x1c9)][_0x3165(0x1c0)](_0x2f96aa);(_0x2ac52a==null?void 0x0:_0x2ac52a[_0x3165(0x380)])===_0x3374bf['unitId']&&_0x2ac52a['subUnitId']===_0x3374bf[_0x3165(0x28c)]&&this[_0x3165(0x22f)](_0x2f96aa);})),this[_0x56047c(0x105)](this['_drawingManagerService'][_0x56047c(0x21e)][_0x56047c(0x1ca)](_0x405132=>{const _0xadf0bf=_0x56047c;var _0x42b0d0;let _0x469fc8=(_0x42b0d0=this['_chartModelService'][_0xadf0bf(0x240)])==null?void 0x0:_0x42b0d0['id'];if(!_0x469fc8)return;let _0x29e7e4=this[_0xadf0bf(0x1c9)][_0xadf0bf(0x1c0)](_0x469fc8);_0x29e7e4&&_0x405132['some'](_0x2fd064=>_0x2fd064['unitId']===_0x29e7e4['unitId']&&_0x2fd064[_0xadf0bf(0x28c)]===_0x29e7e4[_0xadf0bf(0x28c)])&&this['_applyActiveChartRuntimeZIndex'](_0x469fc8);})),this['disposeWithMe'](this[_0x56047c(0x25d)][_0x56047c(0x39c)][_0x56047c(0x1ca)](_0x2018c5=>{const _0x46ed17=_0x56047c;var _0x582d0b;this[_0x46ed17(0x143)](_0x2018c5),this['_deactivateDataUpdateAnimation'](_0x2018c5),this[_0x46ed17(0x104)]['delete'](_0x2018c5),this['_chartSnapshotStoreService']['clearChart'](_0x2018c5),this['_clearChartRuntimeCache'](_0x2018c5),this['_chartHostProvider'][_0x46ed17(0x277)](_0x2018c5),((_0x582d0b=this['_chartModelService'][_0x46ed17(0x240)])==null?void 0x0:_0x582d0b['id'])===_0x2018c5?this[_0x46ed17(0x25d)][_0x46ed17(0x1ef)](null):this[_0x46ed17(0x112)](_0x2018c5),this[_0x46ed17(0x2bd)](_0x2018c5);}));}[_0x58e4e4(0x278)](_0x5c55c2){const _0x5f1d7c=_0x58e4e4;let _0x1fde5c=this[_0x5f1d7c(0x104)][_0x5f1d7c(0x368)](_0x5c55c2);_0x1fde5c&&this[_0x5f1d7c(0x1df)](_0x5c55c2,_0x1fde5c[_0x5f1d7c(0x25b)],_0x1fde5c['style']);}[_0x58e4e4(0x2a0)](_0x4de041){const _0x3b7efc=_0x58e4e4;let _0x4ed3c3=this[_0x3b7efc(0x26b)][_0x3b7efc(0x368)](_0x4de041);(_0x4ed3c3==null?void 0x0:_0x4ed3c3[_0x3b7efc(0x26e)])===_0x3b7efc(0x178)&&(this[_0x3b7efc(0x1ff)](_0x4de041),_0x4ed3c3['dispose'](),this[_0x3b7efc(0x26b)]['delete'](_0x4de041)),this[_0x3b7efc(0x140)][_0x3b7efc(0x277)](_0x4de041),this[_0x3b7efc(0x140)][_0x3b7efc(0x10c)](_0x4de041);}[_0x58e4e4(0x2bd)](_0x2d1e69){const _0x5b12b2=_0x58e4e4;let _0x2dff96=this[_0x5b12b2(0x26b)]['get'](_0x2d1e69);_0x2dff96&&(this[_0x5b12b2(0x1ff)](_0x2d1e69),_0x2dff96[_0x5b12b2(0x125)](),this[_0x5b12b2(0x26b)][_0x5b12b2(0x25c)](_0x2d1e69)),this[_0x5b12b2(0x140)][_0x5b12b2(0x277)](_0x2d1e69),this[_0x5b12b2(0x140)][_0x5b12b2(0x10c)](_0x2d1e69);}[_0x58e4e4(0x350)](_0x34fd28){const _0xb34bcc=_0x58e4e4;var _0x3feefa,_0x3697bf;(_0x3feefa=this['_renderModelManager'][_0xb34bcc(0x3c6)](_0x1a63a8))==null||(_0x3697bf=_0x3feefa['clearRuntimeCache'])==null||_0x3697bf['call'](_0x3feefa,_0x34fd28);}['_clearSheetChartRuntimeCaches'](_0x5e2b3c,_0x223fe8){const _0x167f39=_0x58e4e4;let _0xfffa1e=this[_0x167f39(0x1be)][_0x167f39(0x28e)](_0x5e2b3c,_0x223fe8);Object[_0x167f39(0x226)](_0xfffa1e??{})[_0x167f39(0x2db)](_0x4a82ac=>{const _0x4b10fc=_0x167f39;_0x4a82ac[_0x4b10fc(0x2c2)]===_0x43df04[_0x4b10fc(0x1aa)]&&this[_0x4b10fc(0x350)](_0x4a82ac[_0x4b10fc(0x2dc)]);});}['_getChartRenderObject'](_0x213838,_0x921d77){const _0x18c5b7=_0x58e4e4;var _0x3c209c;return((_0x3c209c=_0x213838[_0x18c5b7(0x220)])==null?void 0x0:_0x3c209c['call'](_0x213838,_0x921d77))??_0x213838[_0x18c5b7(0x246)](_0x921d77)??null;}['_getChartRenderObjectContext'](_0x30beb9){const _0x41f6e0=_0x58e4e4;var _0x3ff69e;let _0x4ca008=this['_sheetCanvasFloatDomManagerService'][_0x41f6e0(0x1c0)](_0x30beb9);if(!_0x4ca008)return null;let _0x2caf69=(_0x3ff69e=this[_0x41f6e0(0x3b0)][_0x41f6e0(0x37d)](_0x4ca008[_0x41f6e0(0x380)]))==null?void 0x0:_0x3ff69e[_0x41f6e0(0x10b)];if(!_0x2caf69)return null;let _0x435ed6=this[_0x41f6e0(0x1d9)](_0x2caf69,_0x14acce({'unitId':_0x4ca008[_0x41f6e0(0x380)],'subUnitId':_0x4ca008[_0x41f6e0(0x28c)],'drawingId':_0x30beb9}));return _0x435ed6?{'info':_0x4ca008,'scene':_0x2caf69,'chartObject':_0x435ed6}:null;}['_setChartRuntimeZIndex'](_0x109a7a,_0x256509){const _0x5f3c60=_0x58e4e4;var _0x1a5f98,_0x15b948,_0x1af30c,_0x27989;let _0x4d95aa=this['_getChartRenderObjectContext'](_0x109a7a);_0x4d95aa&&((_0x1a5f98=(_0x15b948=_0x4d95aa[_0x5f3c60(0x30e)])['setProps'])==null||_0x1a5f98[_0x5f3c60(0x29e)](_0x15b948,{'zIndex':_0x256509}),(_0x1af30c=(_0x27989=_0x4d95aa[_0x5f3c60(0x30e)])[_0x5f3c60(0x293)])==null||_0x1af30c[_0x5f3c60(0x29e)](_0x27989,!0x0),_0x4d95aa['scene'][_0x5f3c60(0x293)](!0x0));}[_0x58e4e4(0x22f)](_0x4a3a15){const _0x58b2af=_0x58e4e4;let _0x820fc9=this[_0x58b2af(0x1c9)][_0x58b2af(0x1c0)](_0x4a3a15);if(!_0x820fc9)return;let _0x2c707f=this[_0x58b2af(0x1be)]['getDrawingOrder'](_0x820fc9['unitId'],_0x820fc9[_0x58b2af(0x28c)]);this[_0x58b2af(0x24b)](_0x4a3a15,_0x2c707f[_0x58b2af(0x334)]);}['_resetChartRuntimeZIndex'](_0x2c625a){const _0x4df2bd=_0x58e4e4;let _0x1cff88=this[_0x4df2bd(0x1c9)][_0x4df2bd(0x1c0)](_0x2c625a);if(!_0x1cff88)return;let _0x17d944=this['_drawingManagerService'][_0x4df2bd(0x37c)](_0x1cff88[_0x4df2bd(0x380)],_0x1cff88[_0x4df2bd(0x28c)]),_0x4c8b52=_0x17d944[_0x4df2bd(0x39a)](_0x2c625a);this['_setChartRuntimeZIndex'](_0x2c625a,_0x4c8b52===-0x1?Math[_0x4df2bd(0x20e)](_0x17d944[_0x4df2bd(0x334)]-0x1,0x0):_0x4c8b52);}[_0x58e4e4(0x275)](_0x1b1273,_0x43e037){const _0x4f879d=_0x58e4e4;let _0x9e3340=this[_0x4f879d(0x1c9)]['getFloatDomInfo'](_0x1b1273);if(_0x43e037[_0x4f879d(0x384)]!==void 0x0&&_0x43e037[_0x4f879d(0x1d7)]!==void 0x0&&_0x9e3340){var _0x4f2c8c;let {subUnitId:_0x170cfd}=_0x9e3340,_0x28f1f0=(_0x4f2c8c=this[_0x4f879d(0x19c)]['getCurrentUnitOfType'](_0xaf509f[_0x4f879d(0x16d)]))==null?void 0x0:_0x4f2c8c['getActiveSheet']();if((_0x28f1f0==null?void 0x0:_0x28f1f0[_0x4f879d(0x358)]())===_0x170cfd){let {width:_0x14008c,height:_0x593a9d}=_0x43e037,_0x36c9bb=this[_0x4f879d(0x25d)][_0x4f879d(0x2aa)](_0x1b1273),_0x438bba=_0x36c9bb==null?void 0x0:_0x36c9bb[_0x4f879d(0x2dd)];if(Math[_0x4f879d(0x298)](_0x14008c-((_0x438bba==null?void 0x0:_0x438bba[_0x4f879d(0x384)])||0x0))>0x1||Math[_0x4f879d(0x298)](_0x593a9d-((_0x438bba==null?void 0x0:_0x438bba[_0x4f879d(0x1d7)])||0x0))>0x1){_0x36c9bb==null||_0x36c9bb[_0x4f879d(0x338)]({..._0x438bba,'width':_0x14008c,'height':_0x593a9d});let _0x57c226=this[_0x4f879d(0x26b)][_0x4f879d(0x368)](_0x1b1273);_0x57c226&&(this[_0x4f879d(0x140)]['syncHostLayout'](_0x1b1273),_0x57c226[_0x4f879d(0x25a)]());}}}}[_0x58e4e4(0x101)](_0x5b8844,_0x3e86c7,_0x4a6d00=0x0){const _0x3d5540=_0x58e4e4;let _0x231247=this[_0x3d5540(0x2b1)][_0x3d5540(0x368)](_0x5b8844);_0x231247||(_0x231247=_0x1569e2(_0x17c866=>{const _0x3284be=_0x3d5540;this[_0x3284be(0x275)](_0x5b8844,_0x17c866);},_0x4a6d00),this[_0x3d5540(0x2b1)]['set'](_0x5b8844,_0x231247)),_0x231247(_0x3e86c7);}['handleActiveSubUnitChange'](){const _0xe7b64c=_0x58e4e4;let _0x28c48b=this['_renderDebounceMap'],_0x17dfa8=_0x24ec75=>{const _0x330edd=_0x29f5;if(!_0x28c48b['has'](_0x24ec75)){let _0x3272f7=_0x1569e2((_0x57bd86,_0x47da91,_0x1f1d39,_0x5e605c)=>{const _0x45404c=_0x29f5;var _0x188652,_0x219041;if(!_0x1f1d39)return;(_0x188652=_0x1f1d39[_0x45404c(0x17e)])==null||_0x188652[_0x45404c(0x1c2)][_0x45404c(0x2db)]((_0x4cae86,_0x591d26)=>{const _0x1c0275=_0x45404c;_0x4cae86[_0x1c0275(0x221)]||=this[_0x1c0275(0x242)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x591d26+0x1);}),_0x1f1d39[_0x45404c(0x120)][_0x45404c(0x2db)]((_0x11bb9a,_0x27d303)=>{const _0x5b8ceb=_0x45404c;_0x11bb9a[_0x5b8ceb(0x397)]||=this[_0x5b8ceb(0x242)]['t'](_0x5b8ceb(0x15c))+'\x20'+(_0x27d303+0x1);});let _0x4bc805=this['createRuntimeChartStyle'](_0x57bd86,_0x5e605c),_0xf2ed9f=(_0x219041=this['_univerInstanceService'][_0x45404c(0x29a)](_0xaf509f['UNIVER_SHEET']))==null?void 0x0:_0x219041['getActiveSheet']();(_0xf2ed9f==null?void 0x0:_0xf2ed9f['getSheetId']())===_0x47da91&&this[_0x45404c(0x1df)](_0x57bd86['id'],_0x1f1d39,_0x4bc805);},0x11);_0x28c48b['set'](_0x24ec75,_0x3272f7);}return _0x28c48b[_0x330edd(0x368)](_0x24ec75);};this['disposeWithMe'](this[_0xe7b64c(0x19c)]['focused$']['subscribe'](_0x560c84=>{const _0x217066=_0xe7b64c;let _0x2ed6b6=this['_univerInstanceService']['getCurrentUnitOfType'](_0xaf509f[_0x217066(0x16d)]);if(_0x560c84&&_0x2ed6b6&&_0x2ed6b6[_0x217066(0x2c3)]()===_0x560c84){var _0x525e76;let _0x36ed1b=_0x2ed6b6[_0x217066(0x320)]()[_0x217066(0x358)]();this['_lastActiveSheet']&&(this[_0x217066(0x257)][_0x217066(0x380)]!==_0x560c84||this[_0x217066(0x257)]['subUnitId']!==_0x36ed1b)&&this[_0x217066(0x158)](this[_0x217066(0x257)][_0x217066(0x380)],this['_lastActiveSheet'][_0x217066(0x28c)]),this[_0x217066(0x257)]={'unitId':_0x560c84,'subUnitId':_0x36ed1b};let _0x14eb17=this[_0x217066(0x1be)]['getDrawingData'](_0x560c84,_0x36ed1b);if(!((_0x525e76=this[_0x217066(0x3b0)][_0x217066(0x37d)](_0x560c84))!=null&&_0x525e76['with'](_0x4bbaee)[_0x217066(0x1a8)](_0x36ed1b)))return;if(_0x14eb17)for(let _0x23d652 in _0x14eb17){let {drawingId:_0x505c47}=_0x14eb17[_0x23d652],_0x39b7b6=this[_0x217066(0x25d)][_0x217066(0x2aa)](_0x505c47);_0x39b7b6&&_0x17dfa8(_0x39b7b6['id'])(_0x39b7b6,_0x36ed1b,_0x39b7b6[_0x217066(0x25b)],this[_0x217066(0x242)]['getDirection']());}}})),this[_0xe7b64c(0x105)](this[_0xe7b64c(0x160)][_0xe7b64c(0x247)][_0xe7b64c(0x1ca)](()=>{const _0x1dc4b2=_0xe7b64c;var _0x4b64b1;let _0x1808e2=this[_0x1dc4b2(0x19c)][_0x1dc4b2(0x29a)](_0xaf509f['UNIVER_SHEET']);if(!_0x1808e2)return;let _0x559d7d=_0x1808e2[_0x1dc4b2(0x2c3)](),_0x20abae=_0x1808e2['getActiveSheet']()[_0x1dc4b2(0x358)](),_0x17dfef=this[_0x1dc4b2(0x1be)][_0x1dc4b2(0x28e)](_0x559d7d,_0x20abae);if((_0x4b64b1=this[_0x1dc4b2(0x3b0)][_0x1dc4b2(0x37d)](_0x559d7d))!=null&&_0x4b64b1['with'](_0x4bbaee)[_0x1dc4b2(0x1a8)](_0x20abae)&&_0x17dfef)for(let _0x18cf1c in _0x17dfef){let {drawingId:_0x478a84}=_0x17dfef[_0x18cf1c],_0x4ea202=this[_0x1dc4b2(0x25d)][_0x1dc4b2(0x2aa)](_0x478a84);_0x4ea202&&_0x17dfa8(_0x4ea202['id'])(_0x4ea202,_0x20abae,_0x4ea202[_0x1dc4b2(0x25b)],this[_0x1dc4b2(0x242)]['getDirection']());}})),this[_0xe7b64c(0x105)](this[_0xe7b64c(0x1be)]['add$'][_0xe7b64c(0x1ca)](_0x2383ba=>{const _0x14167b=_0xe7b64c;_0x2383ba[_0x14167b(0x2db)](_0x308fdf=>{const _0x98fb98=_0x14167b;var _0x5a972e;let {drawingId:_0x2eae85,unitId:_0x26e5c4,subUnitId:_0x3b163b}=_0x308fdf,_0x53f1b4=this['_renderManagerService'][_0x98fb98(0x37d)](_0x26e5c4);if((_0x53f1b4==null?void 0x0:_0x53f1b4[_0x98fb98(0x2e2)])!==_0xaf509f[_0x98fb98(0x16d)]||!_0x53f1b4['with'](_0x4bbaee)[_0x98fb98(0x1a8)](_0x3b163b))return;let {drawingType:_0x493f54}=this[_0x98fb98(0x1be)][_0x98fb98(0x2a1)](_0x308fdf);if(_0x493f54!==_0x43df04[_0x98fb98(0x1aa)])return;let _0x25d440=this[_0x98fb98(0x1c9)][_0x98fb98(0x1c0)](_0x2eae85);this[_0x98fb98(0x143)](_0x2eae85);let _0x1e9d89=new _0x7b52dc();this[_0x98fb98(0x3ca)][_0x98fb98(0x37a)](_0x2eae85,_0x1e9d89);let _0x176c5e=(_0x25d440==null?void 0x0:_0x25d440[_0x98fb98(0x2ca)])??_0x2eae85,_0x2cebf7=_0x25d440==null?void 0x0:_0x25d440['rect'],_0x3aff63=(_0x5a972e=this[_0x98fb98(0x3b0)][_0x98fb98(0x37d)](_0x26e5c4))==null?void 0x0:_0x5a972e[_0x98fb98(0x10b)];_0x2cebf7&&_0x1e9d89[_0x98fb98(0x105)](_0x2cebf7[_0x98fb98(0x18e)][_0x98fb98(0x390)](_0x4eaace=>{const _0x4f2dc3=_0x98fb98;let {type:_0x5f33e9,value:_0x4b596c}=_0x4eaace;if(_0xda7662[_0x4f2dc3(0x25a)]===_0x5f33e9||_0xda7662[_0x4f2dc3(0x30b)]===_0x5f33e9){let {width:_0x5f4133,height:_0x2c3a22}=_0x4b596c;this[_0x4f2dc3(0x101)](_0x2eae85,{'width':_0x5f4133,'height':_0x2c3a22},0x64);}})),_0x3aff63&&_0x1e9d89[_0x98fb98(0x105)](_0x3aff63[_0x98fb98(0x18e)][_0x98fb98(0x390)](_0x5ca415=>{const _0x495478=_0x98fb98;var _0x10d0c9;_0x5ca415[_0x495478(0x2e2)]===_0xda7662['scale']&&(_0x10d0c9=document[_0x495478(0x1e4)](_0x176c5e))!=null&&_0x10d0c9[_0x495478(0x1fb)](_0x495478(0x3c4))&&this[_0x495478(0x140)][_0x495478(0x10a)](_0x2eae85);}));let _0x4ad535=this['_chartModelService'][_0x98fb98(0x2aa)](_0x2eae85);_0x4ad535&&_0x1e9d89[_0x98fb98(0x105)](_0x485af5([_0x4ad535[_0x98fb98(0x1e7)],_0x4ad535[_0x98fb98(0x204)],this[_0x98fb98(0x242)]['direction$']])[_0x98fb98(0x1ca)](([_0x14f000,_0xb6bc77,_0x3302a2])=>{_0x17dfa8(_0x4ad535['id'])(_0x4ad535,_0x3b163b,_0x14f000,_0x3302a2);}));});})),this[_0xe7b64c(0x105)](_0x485af5([this[_0xe7b64c(0x1be)][_0xe7b64c(0x364)]])[_0xe7b64c(0x1ca)](([_0x5515e6])=>{const _0x25043d=_0xe7b64c;_0x5515e6[_0x25043d(0x2db)](_0x123bd5=>{const _0x479523=_0x25043d;var _0x24816d;let {drawingId:_0x45f5ff}=_0x123bd5;this[_0x479523(0x143)](_0x45f5ff),((_0x24816d=this[_0x479523(0x25d)][_0x479523(0x240)])==null?void 0x0:_0x24816d['id'])===_0x45f5ff&&this[_0x479523(0x25d)][_0x479523(0x1ef)](null),this[_0x479523(0x1ff)](_0x45f5ff),this[_0x479523(0x132)][_0x479523(0x25c)](_0x45f5ff),this[_0x479523(0x140)][_0x479523(0x277)](_0x45f5ff),this[_0x479523(0x112)](_0x45f5ff),this[_0x479523(0x2bd)](_0x45f5ff),this[_0x479523(0x189)][_0x479523(0x244)](_0x45f5ff),this[_0x479523(0x350)](_0x45f5ff),this[_0x479523(0x104)][_0x479523(0x25c)](_0x45f5ff),this[_0x479523(0x13d)][_0x479523(0x25c)](_0x45f5ff);});}));}[_0x58e4e4(0x3c0)](_0x3722e8,_0x5e33c1){const _0x56786c=_0x58e4e4;var _0x5afd27;_0x5e33c1?this[_0x56786c(0x13d)]['set'](_0x3722e8,!0x0):this[_0x56786c(0x13d)][_0x56786c(0x25c)](_0x3722e8),(_0x5afd27=this[_0x56786c(0x26b)][_0x56786c(0x368)](_0x3722e8))==null||_0x5afd27[_0x56786c(0x3c0)](_0x5e33c1);}async['exportImage'](_0x4d88e1,_0x2c8f03){const _0x2fa065=_0x58e4e4;var _0x12346b;let _0xc11fc4=this[_0x2fa065(0x104)][_0x2fa065(0x368)](_0x4d88e1),_0x55655d=(_0x12346b=this[_0x2fa065(0x1c9)][_0x2fa065(0x1c0)](_0x4d88e1))==null?void 0x0:_0x12346b['rect'];if(_0xc11fc4&&_0x55655d)return(await this[_0x2fa065(0x1a7)][_0x2fa065(0x2a4)]({'chartId':_0x4d88e1,'config':_0xc11fc4[_0x2fa065(0x25b)],'style':_0xc11fc4[_0x2fa065(0x2dd)],'width':_0x55655d[_0x2fa065(0x384)],'height':_0x55655d[_0x2fa065(0x1d7)]},_0x2c8f03))[_0x2fa065(0x271)];if((_0x2c8f03==null?void 0x0:_0x2c8f03[_0x2fa065(0x322)])===_0x3f3eb8[_0x2fa065(0x359)])return;let _0x52fc83=this['_getCurrentSnapshotImage'](_0x4d88e1);return _0x52fc83?_0x25ae08(_0x52fc83):void 0x0;}['on'](_0x18ee4b,_0xddafc1,_0x3eaace){const _0x353875=_0x58e4e4;let _0x4c2945=this[_0x353875(0x132)][_0x353875(0x368)](_0x18ee4b);_0x4c2945||(_0x4c2945=new Map(),this[_0x353875(0x132)][_0x353875(0x37a)](_0x18ee4b,_0x4c2945));let _0xe80137=_0x4c2945[_0x353875(0x368)](_0xddafc1);_0xe80137||(_0xe80137=new Set(),_0x4c2945[_0x353875(0x37a)](_0xddafc1,_0xe80137)),_0xe80137[_0x353875(0x1c7)](_0x3eaace);let _0x2758dc=this[_0x353875(0x26b)][_0x353875(0x368)](_0x18ee4b);return _0x2758dc&&this['_bindChartEventHandler'](_0x18ee4b,_0x2758dc,_0xddafc1,_0x3eaace),{'dispose':()=>{const _0x6efcd7=_0x353875;var _0x4cff5b;(_0x4cff5b=this[_0x6efcd7(0x132)][_0x6efcd7(0x368)](_0x18ee4b))==null||(_0x4cff5b=_0x4cff5b[_0x6efcd7(0x368)](_0xddafc1))==null||_0x4cff5b[_0x6efcd7(0x25c)](_0x3eaace),this[_0x6efcd7(0x106)](_0x18ee4b,_0xddafc1,_0x3eaace);}};}[_0x58e4e4(0x1d8)](_0x3e2465){const _0x30c257=_0x58e4e4;let _0x22488a=this[_0x30c257(0x19c)]['getCurrentUnitOfType'](_0xaf509f['UNIVER_SHEET']),_0x5284f5=_0x22488a==null?void 0x0:_0x22488a[_0x30c257(0x320)](),_0x143513=_0x22488a==null?void 0x0:_0x22488a[_0x30c257(0x2c3)](),_0x3fd6a4=_0x5284f5==null?void 0x0:_0x5284f5['getSheetId']();if(_0x143513&&_0x3fd6a4)return this[_0x30c257(0x189)][_0x30c257(0x3d2)]({'unitId':_0x143513,'subUnitId':_0x3fd6a4,'chartId':_0x3e2465});}[_0x58e4e4(0x1dc)](_0x68840a,_0x129819){const _0x1de20d=_0x58e4e4;let _0xa21eff=this[_0x1de20d(0x132)][_0x1de20d(0x368)](_0x68840a);_0xa21eff&&_0xa21eff[_0x1de20d(0x2db)]((_0xe55d81,_0x6ff48b)=>{_0xe55d81['forEach'](_0x49bae4=>this['_bindChartEventHandler'](_0x68840a,_0x129819,_0x6ff48b,_0x49bae4));});}[_0x58e4e4(0x1e3)](_0x580116,_0x552173,_0x401d1d,_0x57f213){const _0x3687a1=_0x58e4e4;let _0xa7c291=this[_0x3687a1(0x233)][_0x3687a1(0x368)](_0x580116);_0xa7c291||(_0xa7c291=new Map(),this['_chartEventSubscriptions'][_0x3687a1(0x37a)](_0x580116,_0xa7c291));let _0x4fb655=_0xa7c291['get'](_0x401d1d);_0x4fb655||(_0x4fb655=new Map(),_0xa7c291['set'](_0x401d1d,_0x4fb655)),!_0x4fb655[_0x3687a1(0x39b)](_0x57f213)&&_0x4fb655[_0x3687a1(0x37a)](_0x57f213,_0x552173['on'](_0x401d1d,_0x57f213));}[_0x58e4e4(0x106)](_0x47f4f5,_0x2b9195,_0x42bc36){const _0x4a3d03=_0x58e4e4;var _0x29c712,_0x27b81;let _0x1afd82=(_0x29c712=this[_0x4a3d03(0x233)]['get'](_0x47f4f5))==null?void 0x0:_0x29c712[_0x4a3d03(0x368)](_0x2b9195);_0x1afd82==null||(_0x27b81=_0x1afd82[_0x4a3d03(0x368)](_0x42bc36))==null||_0x27b81[_0x4a3d03(0x125)](),_0x1afd82==null||_0x1afd82[_0x4a3d03(0x25c)](_0x42bc36);}[_0x58e4e4(0x1ff)](_0x393598){const _0x2e1c20=_0x58e4e4;let _0x506951=this[_0x2e1c20(0x233)][_0x2e1c20(0x368)](_0x393598);_0x506951==null||_0x506951['forEach'](_0x552cfb=>{_0x552cfb['forEach'](_0x6f465=>_0x6f465['dispose']()),_0x552cfb['clear']();}),this[_0x2e1c20(0x233)][_0x2e1c20(0x25c)](_0x393598);}['createRuntimeChartStyle'](_0x5bbbb5,_0x300d67){const _0x12812a=_0x58e4e4;return pi(_0x5bbbb5,_0x300d67,this[_0x12812a(0x337)]);}[_0x58e4e4(0x18d)](_0x380c6d){const _0x6c331d=_0x58e4e4;return this[_0x6c331d(0x304)](_0x380c6d)==null;}[_0x58e4e4(0x304)](_0x4a1ff3){const _0x96a117=_0x58e4e4;var _0x1c2901;let _0x1064dc=this['_sheetCanvasFloatDomManagerService'][_0x96a117(0x1c0)](_0x4a1ff3);if(!_0x1064dc)return _0x96a117(0x3c5);let {subUnitId:_0x28ff2b}=_0x1064dc,_0x1a6b5a=(_0x1c2901=this['_univerInstanceService'][_0x96a117(0x29a)](_0xaf509f['UNIVER_SHEET']))==null?void 0x0:_0x1c2901['getActiveSheet']();if(!_0x1a6b5a)return _0x96a117(0x1e5);if(_0x1a6b5a[_0x96a117(0x358)]()!==_0x28ff2b)return'inactive-sheet';}async[_0x58e4e4(0x1df)](_0x131ebf,_0x3b4618,_0x5b0285,_0x4f699a={}){const _0x470b2a=_0x58e4e4;let _0x1e469a=this['_renderModelManager'][_0x470b2a(0x3c6)](_0x1a63a8);if(!_0x1e469a)return;let _0x52b318=this[_0x470b2a(0x104)][_0x470b2a(0x368)](_0x131ebf);if(this[_0x470b2a(0x104)][_0x470b2a(0x37a)](_0x131ebf,{'config':_0x3b4618,'style':_0x5b0285}),this[_0x470b2a(0x304)](_0x131ebf))return;let {canAnimate:_0x52f502,renderMode:_0x5b1b57,shouldStartTransientAnimation:_0x52f72c,transientAnimationActive:_0x40f7ad}=this['_prepareDataUpdateRender'](_0x131ebf,_0x52b318!=null,_0x4f699a[_0x470b2a(0x3b9)]===!0x0);if(_0x5b1b57===_0x3f6e51['Image'])this['_disposeChartDomInstance'](_0x131ebf);else{var _0x924cfd;this[_0x470b2a(0x140)][_0x470b2a(0x23f)](_0x131ebf),((_0x924cfd=this[_0x470b2a(0x25d)][_0x470b2a(0x240)])==null?void 0x0:_0x924cfd['id'])===_0x131ebf&&this[_0x470b2a(0x22f)](_0x131ebf);}let _0x2ebae5=_0x5b1b57===_0x3f6e51[_0x470b2a(0x1de)]?_0x3f6e51[_0x470b2a(0x1de)]:_0x3f6e51[_0x470b2a(0x166)],_0x49cf16=await this[_0x470b2a(0x140)][_0x470b2a(0x274)](_0x131ebf,_0x2ebae5);if(!_0x49cf16){_0x52f72c&&this['_deactivateDataUpdateAnimation'](_0x131ebf);return;}this[_0x470b2a(0x140)][_0x470b2a(0x2a7)](_0x131ebf,_0x40f7ad?_0x4c1e3b:null);let _0x4c1e=this['_getOrCreateChartRenderInstance'](_0x131ebf,_0x2ebae5,_0x1e469a);_0x4c1e[_0x470b2a(0x345)](_0x49cf16);try{let _0x388548={'chartId':_0x131ebf,'config':_0x3b4618,'style':_0x5b0285};_0x52f502&&_0x52b318&&_0x4c1e[_0x470b2a(0x3c8)]?await _0x4c1e[_0x470b2a(0x3c8)]({'chartId':_0x131ebf,'config':_0x52b318['config'],'style':_0x52b318[_0x470b2a(0x2dd)]},_0x388548,{'duration':_0x4c1e3b}):await _0x4c1e['render'](_0x388548),await this[_0x470b2a(0x11a)](_0x131ebf,_0x5b1b57,_0x4c1e),_0x52f502&&_0x40f7ad&&this[_0x470b2a(0x12c)](_0x131ebf);}catch(_0x234644){if(_0x52f72c&&this['_deactivateDataUpdateAnimation'](_0x131ebf),_0x5b1b57!==_0x3f6e51[_0x470b2a(0x1de)])throw _0x234644;}}async[_0x58e4e4(0x11a)](_0x5e0592,_0x4cc50e,_0x3d6bc8){const _0x56866a=_0x58e4e4;var _0x5479d4;if(_0x4cc50e!==_0x3f6e51[_0x56866a(0x166)]||((_0x5479d4=this['_chartModelService']['activeChartModel'])==null?void 0x0:_0x5479d4['id'])!==_0x5e0592)return;let _0x388d83=await this[_0x56866a(0x140)]['ensureHost'](_0x5e0592,_0x3f6e51[_0x56866a(0x1de)]);if(!_0x388d83)return;let _0xf8a8a8=_0x388d83[_0x56866a(0x23c)]();try{let _0x216dc8=await _0x3d6bc8['exportImg']();_0x216dc8&&_0x388d83[_0x56866a(0x273)]({'type':_0x385294['Url'],'url':_0x216dc8},_0xf8a8a8)&&_0x388d83['requestPaint']();}catch{}}[_0x58e4e4(0x3c1)](_0x332841,_0x5f502d,_0x2a486f){const _0x5c66f8=_0x58e4e4;let _0x4cf9c1=this[_0x5c66f8(0x39d)](_0x332841),_0x19ad03=_0x4cf9c1===_0x3f6e51[_0x5c66f8(0x166)]&&_0x2a486f&&_0x5f502d&&this[_0x5c66f8(0x157)](_0x332841),_0x2a35dc=this[_0x5c66f8(0x1c8)][_0x5c66f8(0x39b)](_0x332841);return{'canAnimate':_0x19ad03,'renderMode':_0x2a35dc?_0x3f6e51[_0x5c66f8(0x166)]:_0x4cf9c1,'shouldStartTransientAnimation':!0x1,'transientAnimationActive':_0x2a35dc};}[_0x58e4e4(0x157)](_0x57542e){const _0x412ce3=_0x58e4e4;var _0x76e843,_0x42cbba,_0x382684,_0x2e4b1f;if(typeof document>'u'||typeof window>'u'||document[_0x412ce3(0x395)]==='hidden'||(_0x76e843=(_0x42cbba=window)[_0x412ce3(0x3b5)])!=null&&(_0x76e843=_0x76e843[_0x412ce3(0x29e)](_0x42cbba,_0x412ce3(0x336)))!=null&&_0x76e843[_0x412ce3(0x16b)]||(_0x382684=(_0x2e4b1f=window)[_0x412ce3(0x3b5)])!=null&&(_0x382684=_0x382684[_0x412ce3(0x29e)](_0x2e4b1f,_0x412ce3(0x27c)))!=null&&_0x382684[_0x412ce3(0x16b)])return!0x1;let _0x42d0b9=this[_0x412ce3(0x140)]['getHostClientRect'](_0x57542e);return _0x42d0b9!=null&&_0x42d0b9[_0x412ce3(0x384)]>0x0&&_0x42d0b9[_0x412ce3(0x1d7)]>0x0&&_0x42d0b9[_0x412ce3(0x213)]>0x0&&_0x42d0b9[_0x412ce3(0x35f)]>0x0&&_0x42d0b9[_0x412ce3(0x270)]<window[_0x412ce3(0x17a)]&&_0x42d0b9[_0x412ce3(0x23a)]<window[_0x412ce3(0x2e7)];}[_0x58e4e4(0x1b9)](_0x1b0dfd){const _0x225b44=_0x58e4e4;let _0x176941=this[_0x225b44(0x290)]['get'](_0x1b0dfd);_0x176941&&(clearTimeout(_0x176941),this['_dataUpdateAnimationTimers'][_0x225b44(0x25c)](_0x1b0dfd)),this[_0x225b44(0x1c8)][_0x225b44(0x1c7)](_0x1b0dfd),this[_0x225b44(0x140)][_0x225b44(0x2a7)](_0x1b0dfd,_0x4c1e3b);}[_0x58e4e4(0x12c)](_0xc6bb70){const _0x32c1ad=_0x58e4e4;let _0x36634a=this[_0x32c1ad(0x290)][_0x32c1ad(0x368)](_0xc6bb70);_0x36634a&&clearTimeout(_0x36634a);let _0x3acc3b=setTimeout(()=>{const _0x30f406=_0x32c1ad;this['_dataUpdateAnimationTimers']['delete'](_0xc6bb70),this[_0x30f406(0x1c8)][_0x30f406(0x25c)](_0xc6bb70)&&(this[_0x30f406(0x140)][_0x30f406(0x2a7)](_0xc6bb70,null),this[_0x30f406(0x2a0)](_0xc6bb70),this[_0x30f406(0x278)](_0xc6bb70));},_0x4c1e3b);this[_0x32c1ad(0x290)][_0x32c1ad(0x37a)](_0xc6bb70,_0x3acc3b);}[_0x58e4e4(0x2f9)](_0x3f78c7){const _0x5aab75=_0x58e4e4;let _0x30233e=this[_0x5aab75(0x290)][_0x5aab75(0x368)](_0x3f78c7);_0x30233e&&(clearTimeout(_0x30233e),this['_dataUpdateAnimationTimers']['delete'](_0x3f78c7)),this[_0x5aab75(0x1c8)][_0x5aab75(0x25c)](_0x3f78c7),this[_0x5aab75(0x140)][_0x5aab75(0x2a7)](_0x3f78c7,null);}async[_0x58e4e4(0x153)](_0x18fa7e,_0x3eb321,_0x455be6){const _0x526269=_0x58e4e4;let _0x5456d0=this['_drawingManagerService']['getDrawingData'](_0x18fa7e,_0x3eb321),_0x449c66=this[_0x526269(0x1be)][_0x526269(0x37c)](_0x18fa7e,_0x3eb321),_0x2f2043=Object[_0x526269(0x226)](_0x5456d0??{})[_0x526269(0x19e)](_0x410e02=>_0x410e02[_0x526269(0x2c2)]===_0x43df04[_0x526269(0x1aa)]&&_0x410e02['hidden']!==!0x0);await Promise[_0x526269(0x151)](_0x2f2043[_0x526269(0x3b3)](async _0x4223d1=>{const _0x1740fc=_0x526269;let _0x4387bc=await this['_createPrintingChartObject'](_0x4223d1,_0x449c66);_0x4387bc&&(_0x455be6[_0x1740fc(0x330)](_0x4387bc,_0x2521be),_0x4223d1['groupId']&&_0x1aaef1({'drawingId':_0x4223d1[_0x1740fc(0x20d)],'unitId':_0x18fa7e,'subUnitId':_0x3eb321},_0x4387bc,_0x455be6,this[_0x1740fc(0x1be)]));}));}async[_0x58e4e4(0x1a3)](_0x495731,_0xa0dfcc){const _0x43d611=_0x58e4e4;let _0x4d41a8=this[_0x43d611(0x25d)][_0x43d611(0x2aa)](_0x495731['drawingId']),_0x36ef2c=this[_0x43d611(0x1a7)][_0x43d611(0x3c6)](_0x1a63a8),_0x25b3a0=_0x495731['transform'],_0x4ec851=_0x4d41a8==null?void 0x0:_0x4d41a8[_0x43d611(0x25b)];if(!_0x4d41a8||!_0x36ef2c||!_0x25b3a0||!_0x4ec851||_0x25b3a0[_0x43d611(0x384)]==null||_0x25b3a0[_0x43d611(0x1d7)]==null)return null;let _0x10e549=new fi(_0x495731[_0x43d611(0x2dc)],{'width':_0x25b3a0['width'],'height':_0x25b3a0[_0x43d611(0x1d7)]}),_0x2864cf=_0x36ef2c[_0x43d611(0x2a3)](_0x3f6e51[_0x43d611(0x1de)],this[_0x43d611(0x110)]());_0x2864cf[_0x43d611(0x345)](_0x10e549);let _0x685bc1;try{await _0x2864cf[_0x43d611(0x1df)]({'chartId':_0x495731[_0x43d611(0x2dc)],'config':_0x4ec851,'style':this[_0x43d611(0x173)](_0x4d41a8,this[_0x43d611(0x242)][_0x43d611(0x394)]())});}catch(_0x1b83e1){console[_0x43d611(0x33c)](_0x43d611(0x184),_0x1b83e1);}finally{_0x685bc1=_0x10e549[_0x43d611(0x317)](),_0x2864cf[_0x43d611(0x125)](),_0x10e549['dispose']();}let _0x39d861=this['_chartSnapshotStoreService'][_0x43d611(0x3d2)]({'unitId':_0x495731['unitId'],'subUnitId':_0x495731[_0x43d611(0x28c)],'chartId':_0x495731[_0x43d611(0x2dc)]}),_0x5ade07=_0x685bc1??_0x39d861;if(!_0x5ade07)return null;let _0xaa2f40=_0xa0dfcc[_0x43d611(0x39a)](_0x495731['drawingId']);return new Qr(_0x14acce(_0x495731),{..._0x25b3a0,..._0x38aa53,...ci(_0x10e549[_0x43d611(0x2dd)]),'visible':!0x0,'zIndex':_0xaa2f40===-0x1?Math[_0x43d611(0x20e)](_0xa0dfcc[_0x43d611(0x334)]-0x1,0x0):_0xaa2f40},()=>_0x5ade07,void 0x0,_0x685bc1?()=>G(_0x685bc1):void 0x0);}[_0x58e4e4(0x19a)](_0x301767,_0x53b2c7,_0x43d373){const _0x908b23=_0x58e4e4;let _0x3b6dcf=this[_0x908b23(0x26b)][_0x908b23(0x368)](_0x301767);if((_0x3b6dcf==null?void 0x0:_0x3b6dcf[_0x908b23(0x26e)])===_0x53b2c7)return _0x3b6dcf;_0x3b6dcf&&(this[_0x908b23(0x1ff)](_0x301767),_0x3b6dcf[_0x908b23(0x125)](),this['_chartInstanceMap'][_0x908b23(0x25c)](_0x301767));let _0x35b5f2=_0x43d373['createChartInstance'](_0x53b2c7,this[_0x908b23(0x110)]());return this[_0x908b23(0x26b)][_0x908b23(0x37a)](_0x301767,_0x35b5f2),_0x35b5f2[_0x908b23(0x3c0)](this[_0x908b23(0x13d)][_0x908b23(0x368)](_0x301767)===!0x0),this[_0x908b23(0x1dc)](_0x301767,_0x35b5f2),_0x35b5f2;}[_0x58e4e4(0x110)](){const _0x5a4401=_0x58e4e4;return{'resolveHostStyle':({style:_0x30e148})=>_0x16cfdd({'style':_0x30e148,'getRenderColor':_0x5a6aed=>this[_0x5a4401(0x183)]['getRenderColor'](_0x5a6aed)}),'resolveRenderBackgroundColor':({style:_0x1caeff})=>this[_0x5a4401(0x183)][_0x5a4401(0x3cf)](_0x445815(_0x1caeff))};}[_0x58e4e4(0x143)](_0x3a5b97){const _0x399aab=_0x58e4e4;var _0x493009,_0x245a2d,_0x297167;(_0x493009=this[_0x399aab(0x3ca)][_0x399aab(0x368)](_0x3a5b97))==null||_0x493009[_0x399aab(0x125)](),this[_0x399aab(0x3ca)][_0x399aab(0x25c)](_0x3a5b97),(_0x245a2d=this[_0x399aab(0x279)][_0x399aab(0x368)](_0x3a5b97))==null||_0x245a2d[_0x399aab(0x28d)](),this[_0x399aab(0x279)][_0x399aab(0x25c)](_0x3a5b97),(_0x297167=this[_0x399aab(0x2b1)][_0x399aab(0x368)](_0x3a5b97))==null||_0x297167[_0x399aab(0x28d)](),this[_0x399aab(0x2b1)]['delete'](_0x3a5b97);}[_0x58e4e4(0x3d3)](){const _0x29f77c=_0x58e4e4;this[_0x29f77c(0x279)]['forEach'](_0x3da9c1=>_0x3da9c1['cancel']()),this[_0x29f77c(0x279)][_0x29f77c(0x399)](),this[_0x29f77c(0x2b1)][_0x29f77c(0x2db)](_0x2650cc=>_0x2650cc['cancel']()),this[_0x29f77c(0x2b1)][_0x29f77c(0x399)]();}[_0x58e4e4(0x125)](){const _0x1d4856=_0x58e4e4;this[_0x1d4856(0x3ca)][_0x1d4856(0x2db)](_0x221a0a=>_0x221a0a[_0x1d4856(0x125)]()),this[_0x1d4856(0x3ca)]['clear'](),this[_0x1d4856(0x290)][_0x1d4856(0x2db)](_0x42c79b=>clearTimeout(_0x42c79b)),this['_dataUpdateAnimationTimers'][_0x1d4856(0x399)](),this[_0x1d4856(0x1c8)][_0x1d4856(0x399)](),Array['from'](this[_0x1d4856(0x26b)][_0x1d4856(0x1ce)]())[_0x1d4856(0x2db)](_0x1b727c=>this['_disposeChartRenderInstance'](_0x1b727c)),this[_0x1d4856(0x13d)][_0x1d4856(0x399)](),this[_0x1d4856(0x3d3)](),this[_0x1d4856(0x104)][_0x1d4856(0x399)](),this[_0x1d4856(0x241)]=null,this[_0x1d4856(0x257)]=null,super[_0x1d4856(0x125)]();}};J=q([K(0x0,ui),K(0x1,_0x569e33(_0x351035)),K(0x2,_0x569e33(_0x1e33a9)),K(0x3,_0x1e7a38),K(0x4,_0x5b54fc),K(0x5,_0x569e33(_0x11bbe7)),K(0x6,_0x569e33(_0x37903c)),K(0x7,_0x569e33(_0x56051b)),K(0x8,_0x569e33(_0x3a2489)),K(0x9,_0x569e33(_0x3d87f5)),K(0xa,_0x58cb4f),K(0xb,_0x569e33(ni)),K(0xc,_0x1c66b2)],J);const Y=_0x2fa213(_0x58e4e4(0x326));let mi=class extends _0x1eef01{constructor(_0xe4ac28,_0x3398a1,_0x495bd2,_0x2156f6,_0x5d1833){const _0x498e5f=_0x58e4e4;super(_0x5d1833),this[_0x498e5f(0x25d)]=_0xe4ac28,this[_0x498e5f(0x392)]=_0x3398a1,this[_0x498e5f(0x116)]=_0x495bd2,this[_0x498e5f(0x19c)]=_0x2156f6,W(this,_0x498e5f(0x3a8),!0x1),W(this,_0x498e5f(0x1a4),new _0x251b31(!0x1)),W(this,_0x498e5f(0x3d1),new _0x251b31(null)),W(this,_0x498e5f(0x255),this['_chartEditorOpen$']['asObservable']()),W(this,'panelRoute$',this['_panelRoute$']['asObservable']());}get[_0x58e4e4(0x265)](){const _0x1411d0=_0x58e4e4;return this[_0x1411d0(0x25d)]['activeChartModel']??null;}get[_0x58e4e4(0x18b)](){const _0x421e43=_0x58e4e4;return this[_0x421e43(0x1a4)][_0x421e43(0x32d)]();}get[_0x58e4e4(0x3d5)](){const _0x66c226=_0x58e4e4;return this[_0x66c226(0x3a8)];}[_0x58e4e4(0x296)](_0x568cc3){const _0xc92b09=_0x58e4e4;this[_0xc92b09(0x3a8)]=_0x568cc3;}[_0x58e4e4(0x2e9)](_0x1c3b25){const _0x460346=_0x58e4e4;this[_0x460346(0x1a4)][_0x460346(0x32d)]()!==_0x1c3b25&&this['_chartEditorOpen$'][_0x460346(0x31b)](_0x1c3b25);}[_0x58e4e4(0x2a5)](_0xbc040b){const _0x4c6bd9=_0x58e4e4;var _0x70e2c5;return this['chartEditorOpen']&&((_0x70e2c5=this[_0x4c6bd9(0x25d)][_0x4c6bd9(0x240)])==null?void 0x0:_0x70e2c5['id'])===_0xbc040b;}['setPanelRoute'](_0x1fd30d,_0x17295c){const _0x5eca7f=_0x58e4e4;this[_0x5eca7f(0x3d1)][_0x5eca7f(0x31b)]({'chartId':_0x1fd30d,'route':_0x17295c});}[_0x58e4e4(0x319)](){const _0x659a9d=_0x58e4e4;this[_0x659a9d(0x3d1)]['next'](null);}[_0x58e4e4(0x3ab)](_0x3da4c2){const _0x2650fa=_0x58e4e4;let _0x3cfed8=this[_0x2650fa(0x25d)][_0x2650fa(0x240)];_0x3cfed8&&this['_executeChartUpdateSourceConfig']({'chartModelId':_0x3cfed8['id'],'range':_0x3da4c2});}[_0x58e4e4(0x2ec)](_0x379c4f){const _0x43b024=_0x58e4e4;let _0x273d41=this[_0x43b024(0x25d)][_0x43b024(0x240)];if(!_0x273d41)return;let _0x5bd6e2=this['_sheetsChartService'][_0x43b024(0x370)](_0x273d41['id']);if(!_0x5bd6e2||Array[_0x43b024(0x10d)](_0x5bd6e2))return;let _0x32de64={..._0x5bd6e2,'isRowDirection':_0x379c4f===_0x28717b[_0x43b024(0x1b1)]};this[_0x43b024(0x287)]({'chartModelId':_0x273d41['id'],'range':_0x32de64});}[_0x58e4e4(0x391)](_0x35c3c9){const _0xcef51=_0x58e4e4;var _0x5da427;this[_0xcef51(0x116)]['executeCommand'](_0x22f7cc['id'],{..._0x35c3c9,'unitId':((_0x5da427=this['_univerInstanceService'][_0xcef51(0x16c)]())==null?void 0x0:_0x5da427[_0xcef51(0x2c3)]())??''});}[_0x58e4e4(0x287)](_0x1cf51a){const _0x25ab9a=_0x58e4e4;var _0x4fdd5c;this['_commandService'][_0x25ab9a(0x1ee)](_0x112901['id'],{..._0x1cf51a,'unitId':((_0x4fdd5c=this[_0x25ab9a(0x19c)][_0x25ab9a(0x16c)]())==null?void 0x0:_0x4fdd5c['getUnitId']())??''});}[_0x58e4e4(0x125)](){const _0x14cbf1=_0x58e4e4;this['_chartEditorOpen$'][_0x14cbf1(0x1f9)](),this[_0x14cbf1(0x3d1)][_0x14cbf1(0x1f9)](),super[_0x14cbf1(0x125)]();}};mi=q([K(0x0,_0x569e33(_0x1e33a9)),K(0x1,_0x569e33(_0x5b7264)),K(0x2,_0x10f119),K(0x3,_0x5b54fc),K(0x4,_0x569e33(_0x7cd67c))],mi);var hi;function _0x29f5(_0x8e27ea,_0x30832c){_0x8e27ea=_0x8e27ea-0xff;const _0x3cf939=_0x3cf9();let _0x29f5f7=_0x3cf939[_0x8e27ea];return _0x29f5f7;}const gi={'axis':{..._0x473cc5,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x3c4c8b,'heatmap':_0x1cd218,'indicatorLine':_0x1f1171,'legend':_0x35dc7a,'lineAndArea':_0x486b7d,'pareto':_0x3d84e3,'pie':_0x5881e2,'relation':{..._0x10b920,'useValueAsSymbolSize':!0x0},'radar':_0x5704fa,'series':{..._0x5bf23e,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((hi=_0x40d6b3[_0x58e4e4(0x239)])==null?void 0x0:hi[_0x58e4e4(0x292)])??!0x1}},'style':_0x1cd657,'titles':_0x2a6745,'trendline':_0x57534a,'waterfallStyle':_0x3dd03e,'wordCloud':_0x154301},_i=_0x4b7fb3=>_0x4b7fb3[_0x58e4e4(0x29a)](_0xaf509f[_0x58e4e4(0x16d)])[_0x58e4e4(0x2c3)](),vi=_0x2e0c2d=>{const _0x5b9cbd=_0x58e4e4;var _0x4507fb;return(_0x4507fb=_0x2e0c2d['getCurrentUnitOfType'](_0xaf509f[_0x5b9cbd(0x16d)])['getActiveSheet']())==null?void 0x0:_0x4507fb[_0x5b9cbd(0x358)]();},yi=()=>{const _0x55f22d=_0x58e4e4;var _0x36a28e;let _0x1fa679=_0x341106(Y),_0x423323=_0x341106(_0x1e33a9),_0x6a7be=_0x341106(_0x37903c),_0x14a4a3=_0x341106(_0x56051b),_0x4a20e4=_0x1fd812(_0x14a4a3),_0x5e80ed=_0x207894(()=>{const _0x367b9f=_0x29f5;let _0x5aa8bc=Fr(Nr[_0x367b9f(0x2fc)](),_0x4a20e4);return _0x99c448(_0x5aa8bc['map'](_0x33abaf=>({'id':_0x33abaf['id'],'label':_0x6a7be['t'](_0x367b9f(0x27a)+_0x33abaf[_0x367b9f(0x2af)]),'pieSecondaryPlotType':_0x33abaf[_0x367b9f(0x17d)],'value':_0x33abaf[_0x367b9f(0x256)]})));},[_0x4a20e4,_0x6a7be]),_0x3432a1=_0x169faa(_0x423323[_0x55f22d(0x288)],_0x423323[_0x55f22d(0x240)]),_0xe8a483=_0x169faa(_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x2b5)],_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x193)]),_0x18ec2e=_0x169faa(_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x3a0)],_0x3432a1==null?void 0x0:_0x3432a1[_0x55f22d(0x29f)]),_0x2d8d3c=_0x169faa(_0x18ec2e==null?void 0x0:_0x18ec2e['rangeInfo$'],_0x18ec2e==null?void 0x0:_0x18ec2e[_0x55f22d(0x218)]()),_0x3536a8=Array[_0x55f22d(0x10d)](_0x2d8d3c),_0x2f8520=_0x2d8d3c&&!_0x3536a8&&_0x2d8d3c[_0x55f22d(0x2b2)]?_0x28717b[_0x55f22d(0x1b1)]:_0x28717b[_0x55f22d(0x186)],_0x15db5c=_0x3536a8?(_0x36a28e=_0x2d8d3c[0x0])==null?void 0x0:_0x36a28e[_0x55f22d(0x3b2)]:_0x2d8d3c==null?void 0x0:_0x2d8d3c[_0x55f22d(0x18a)];return _0x3d17e9(_0x55f22d(0x2ee),{'className':_0x55f22d(0x17c),'children':[_0x4200cc(_0x239fe1,{'chartTypeOptions':_0x5e80ed,'dataSourceControl':_0x4200cc(bi,{'dataRange':_0x2d8d3c,'primaryRange':_0x15db5c}),'categoryToggleLabel':_0x6a7be['t']('sheets-chart-ui.common.useAsCategoryLabels',_0x2f8520===_0x28717b[_0x55f22d(0x1b1)]?_0x2f8520+'\x20'+(((_0x15db5c==null?void 0x0:_0x15db5c[_0x55f22d(0x3b2)][_0x55f22d(0x205)])??0x0)+0x1):_0x2f8520+'\x20'+_0x47d2a3((_0x15db5c==null?void 0x0:_0x15db5c['range']['startColumn'])??0x0)),'orientationControl':_0x3536a8?void 0x0:_0x4200cc(_0x3e78e8,{'size':_0x55f22d(0x134),'onClick':()=>_0x1fa679[_0x55f22d(0x2ec)](_0x2f8520===_0x28717b['Row']?_0x28717b[_0x55f22d(0x186)]:_0x28717b[_0x55f22d(0x1b1)]),'children':_0x6a7be['t'](_0x55f22d(0x386))})}),_0x4200cc(_0x2a16f3,{'checked':(_0xe8a483==null?void 0x0:_0xe8a483['plotVisibleOnly'])===!0x1,'disabled':!_0x3432a1,'onChange':_0x445792=>{const _0x45b52f=_0x55f22d;_0x3432a1&&_0x1fa679[_0x45b52f(0x391)]({'chartModelId':_0x3432a1['id'],'context':{'plotVisibleOnly':!_0x445792}});},'children':_0x6a7be['t']('sheets-chart-ui.common.showHiddenData')})]});};function bi(_0x15d72e){const _0xebd840=_0x58e4e4;let {dataRange:_0x389be9,primaryRange:_0x10a581}=_0x15d72e,_0x18bbab=_0x341106(Y),_0x942bf6=_0x341106(_0x37903c),_0x3a4d8f=_0x341106(_0x5b54fc),_0x3f89de=_0x341106(_0x2eb5c4),[_0x19cc5d,_0x109821]=_0x5b2f59(!0x1),[_0x59a855,_0x54674e]=_0x5b2f59(!0x1),[_0x375300,_0x38c33f]=_0x5b2f59(),_0x421389=_i(_0x3a4d8f),_0x10f365=vi(_0x3a4d8f),_0x4fb5d3=_0x389be9?jr(_0x389be9,_0x3a4d8f):'',_0x36b10e=_0x33bb4f(_0x4fb5d3),_0x59f985=_0x33bb4f(void 0x0),_0x3ae7ad=_0x33bb4f(null);_0x34e514(()=>{const _0x56129f=_0x29f5;_0x18bbab['setRangeSelectMode'](_0x19cc5d),_0x3f89de[_0x56129f(0x332)](_0x4b847,_0x19cc5d);},[_0x3f89de,_0x19cc5d,_0x18bbab]),_0x34e514(()=>()=>{const _0x13877e=_0x29f5;_0x18bbab[_0x13877e(0x296)](!0x1),_0x3f89de[_0x13877e(0x332)](_0x4b847,!0x1);},[_0x3f89de,_0x18bbab]);let _0x3afcfc=_0x5b263f(_0x4a58c3=>{const _0x42f8ca=_0x29f5;var _0x457d9c;if(jr(_0x389be9,_0x3a4d8f)===_0x4a58c3)return _0x38c33f(void 0x0),!0x0;let _0x16b585=_0x4a58c3[_0x42f8ca(0x29d)](_0x3b02a9[_0x42f8ca(0x357)]);if(!_0x4a58c3[_0x42f8ca(0x159)]()||_0x16b585[_0x42f8ca(0x334)]!==0x1||!((_0x457d9c=_0x3ae7ad[_0x42f8ca(0x185)])!=null&&_0x457d9c['verify']()))return _0x38c33f(_0x942bf6['t']('sheets-chart-ui.common.invalidDataRange')),!0x1;let {unitId:_0x37c138,sheetName:_0x2c7623,range:_0x478285}=_0x404b59(_0x16b585[0x0]),_0x3e7631=_0x37c138||_0x421389,_0x25c30c=_0x3a4d8f[_0x42f8ca(0x2d6)](_0x3e7631),_0x48b763=(_0x10a581==null?void 0x0:_0x10a581[_0x42f8ca(0x380)])===_0x3e7631?_0x10a581['subUnitId']:_0x10f365,_0x2b2b9c=_0x2c7623?_0x25c30c==null?void 0x0:_0x25c30c['getSheetBySheetName'](_0x2c7623):_0x25c30c==null?void 0x0:_0x25c30c[_0x42f8ca(0x2d3)](_0x48b763??'');return!_0x25c30c||!_0x2b2b9c||!_0xbde51a(_0x478285,_0x2b2b9c)?(_0x38c33f(_0x942bf6['t'](_0x42f8ca(0x14b))),!0x1):(_0x38c33f(void 0x0),_0x18bbab[_0x42f8ca(0x3ab)]({'rangeInfo':{'range':_0x478285,'unitId':_0x3e7631,'subUnitId':_0x2b2b9c[_0x42f8ca(0x358)]()}}),!0x0);},[_0x389be9,_0x942bf6,_0x10a581,_0x18bbab,_0x10f365,_0x421389,_0x3a4d8f]),_0x21fa63=_0x207894(()=>({'keyCodes':[{'keyCode':_0x33a6fb['ENTER'],'nativeTextEditorBehavior':_0xb02455[_0xebd840(0x2d4)]}],'handler':_0x558a9c=>{const _0x220cde=_0xebd840;_0x558a9c===_0x33a6fb[_0x220cde(0x3ac)]&&_0x3afcfc(_0x36b10e[_0x220cde(0x185)])&&(_0x59f985[_0x220cde(0x185)]=_0x36b10e[_0x220cde(0x185)]);}}),[_0x3afcfc]);return _0x4200cc(_0xebd840(0x2ee),{'className':_0xebd840(0x33d),'children':_0x3d17e9('div',{'children':[_0x4200cc(_0x5bbce0,{'title':_0x942bf6['t'](_0xebd840(0x398))}),_0x4200cc(_0x1311f6,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x421389,'subUnitId':_0x10f365,'initialValue':_0x4fb5d3,'keyboardEventConfig':_0x21fa63,'selectorRef':_0x3ae7ad,'onChange':(_0x32d0d8,_0x511cfa)=>{const _0xd736ff=_0xebd840;_0x36b10e['current']=_0x511cfa,_0x59a855&&_0x59f985[_0xd736ff(0x185)]!==_0x511cfa&&_0x3afcfc(_0x511cfa)&&(_0x59f985[_0xd736ff(0x185)]=_0x511cfa);},'onFocusChange':(_0x22f498,_0x402daa)=>{const _0x42f20b=_0xebd840;if(_0x402daa!==void 0x0&&(_0x36b10e[_0x42f20b(0x185)]=_0x402daa),_0x59a855||_0x109821(_0x22f498),_0x22f498)_0x59f985[_0x42f20b(0x185)]=_0x36b10e[_0x42f20b(0x185)];else{let _0x85d8a9=_0x59f985[_0x42f20b(0x185)];_0x59f985[_0x42f20b(0x185)]=void 0x0,_0x85d8a9!==void 0x0&&_0x36b10e[_0x42f20b(0x185)]!==_0x85d8a9&&_0x3afcfc(_0x36b10e[_0x42f20b(0x185)]);}},'onRangeSelectorDialogVisibleChange':_0x46e7a9=>{_0x54674e(_0x46e7a9),_0x109821(_0x46e7a9);}}),_0x375300?_0x4200cc('div',{'className':_0xebd840(0x348),'children':_0x375300}):null]})});}function X(_0x1facb1){const _0x18a693=_0x58e4e4;return _0x3d17e9(_0x33d6de,{'id':_0x1facb1['id'],'children':[_0x4200cc(_0x5043ee,{'children':_0x1facb1[_0x18a693(0x221)]}),_0x4200cc(_0x52594e,{'children':_0x1facb1[_0x18a693(0x289)]})]});}const xi=_0x359dee=>{const _0x17e196=_0x58e4e4;let _0xee715b=_0x341106(_0x37903c),_0x171b43=_0x341106(Y),_0x4741ef=_0x341106(_0x1e33a9),_0x1ccc85=_0x169faa(_0x4741ef[_0x17e196(0x288)],_0x4741ef[_0x17e196(0x240)]),_0x10f32c=_0x169faa(_0x171b43['panelRoute$'],null),_0x282784=_0x10f32c&&_0x10f32c[_0x17e196(0x1f8)]===(_0x1ccc85==null?void 0x0:_0x1ccc85['id'])?_0x10f32c[_0x17e196(0x2fb)]:null,_0x5b0086=_0x33d88d(),_0x419a4c=_0x3503bf(),[_0x4bc977,_0x37a7b5]=_0x5b2f59(null);_0x34e514(()=>{const _0x49a8a1=_0x17e196;_0x282784!=null&&_0x282784[_0x49a8a1(0x164)]&&_0x37a7b5(_0x282784[_0x49a8a1(0x164)]);},[_0x282784]);let _0x2ecf80=_0x31bb43['baseOn'](_0x5b0086,_0x5ec5cb[_0x17e196(0x2e0)]),_0x1bbbb1=_0x5b0086===_0x5ec5cb[_0x17e196(0x33a)],_0x2f14c0=_0x5b0086===_0x5ec5cb[_0x17e196(0x18c)],_0x142f54=_0x5b0086===_0x5ec5cb[_0x17e196(0x1cb)],_0x310f92=_0x31bb43[_0x17e196(0x300)](_0x5b0086,_0x5ec5cb['Bubble']),_0x4e9f13=_0x5b0086===_0x5ec5cb[_0x17e196(0x3c3)],_0x5ad89b=_0x5b0086===_0x5ec5cb[_0x17e196(0x31e)],_0x1f45b5=_0x5b0086===_0x5ec5cb[_0x17e196(0x237)],_0x5dcdf6=_0x5b0086===_0x5ec5cb[_0x17e196(0x38d)],_0x64673e,_0x1e21f;switch(_0x5b0086){case _0x5ec5cb[_0x17e196(0x13a)]:_0x64673e=_0xacfab2[_0x17e196(0x13a)],_0x1e21f=_0xee715b['t'](_0x17e196(0x2b9));break;case _0x5ec5cb[_0x17e196(0x1da)]:_0x64673e=_0xacfab2[_0x17e196(0x1da)],_0x1e21f=_0xee715b['t'](_0x17e196(0x20c));break;case _0x5ec5cb[_0x17e196(0x197)]:_0x64673e=_0xacfab2[_0x17e196(0x197)],_0x1e21f=_0xee715b['t'](_0x17e196(0x22d));break;case _0x5ec5cb['Sunburst']:_0x64673e=_0xacfab2[_0x17e196(0x15e)],_0x1e21f=_0xee715b['t'](_0x17e196(0x118));break;case _0x5ec5cb[_0x17e196(0x11e)]:_0x64673e=_0xacfab2[_0x17e196(0x11e)],_0x1e21f=_0xee715b['t'](_0x17e196(0x1b0));break;case _0x5ec5cb[_0x17e196(0x136)]:_0x64673e=_0xacfab2[_0x17e196(0x136)],_0x1e21f=_0xee715b['t'](_0x17e196(0x32b));}let _0x321dfc=_0x24b610(_0x5b0086,_0x1146fb['GeneralSeries'])&&!_0x310f92&&!_0x1f45b5;return _0x3d17e9(_0x3e0e80,{'value':_0x4bc977,'onChange':_0x37a7b5,'children':[_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x12e)],'label':_0xee715b['t'](_0x17e196(0x232)),'children':_0x4200cc(_0x35f468,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x2dd)]})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x363)],'label':_0xee715b['t']('sheets-chart-ui.common.chartAndAxisTitles'),'children':_0x4200cc(_0x38bcb8,{'commitMode':'blur','defaultValues':_0x359dee['defaultValues'][_0x17e196(0x24a)],'selectedTitleKey':_0x282784==null?void 0x0:_0x282784[_0x17e196(0x1d1)]})}),_0x321dfc&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x264)],'label':_0xee715b['t'](_0x17e196(0x154)),'children':_0x4200cc(_0x1e64ca,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['series'],'NumberFormatField':_0x54c9b4,'selectedSeriesId':_0x282784==null?void 0x0:_0x282784[_0x17e196(0x251)]})}),_0x5ad89b&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x2d5)],'label':_0xee715b['t'](_0x17e196(0x109)),'children':_0x4200cc(_0x41a5e3,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x4f3cd5,target:_0x51764e})=>_0x51764e===_0x498f80[_0x17e196(0x34e)]?_0xee715b['t'](_0x17e196(0x1e2)):_0x4f3cd5?_0x4f3cd5+'-('+_0xee715b['t'](_0x51764e===_0x498f80['Positive']?_0x17e196(0x316):_0x17e196(0x3a1))+')':'','NumberFormatField':_0x54c9b4,'selectedSeriesId':_0x282784==null?void 0x0:_0x282784['seriesId']})}),_0x1f45b5&&_0x3d17e9(_0x5a0c00,{'children':[_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x310)],'label':_0xee715b['t'](_0x17e196(0x224)),'children':_0x4200cc(_0x1e47fa,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1e1)],'NumberFormatField':_0x54c9b4,'showDataPointEditor':!0x0,'target':_0x17e196(0x299)})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x228)],'label':_0xee715b['t'](_0x17e196(0x367)),'children':_0x4200cc(_0x1e47fa,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1e1)],'NumberFormatField':_0x54c9b4,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x2ecf80&&_0x4200cc(X,{'id':_0xacfab2['PieStyle'],'label':_0xee715b['t']('sheets-chart-ui.section.pie'),'children':_0x4200cc(_0x5ca595,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1f5)],'NumberFormatField':_0x54c9b4})}),_0x2f14c0&&_0x4200cc(X,{'id':_0xacfab2['WordCloud'],'label':_0xee715b['t'](_0x17e196(0x1fe)),'children':_0x4200cc(_0x318410,{'defaultValues':_0x359dee['defaultValues'][_0x17e196(0x2c0)]})}),_0x1bbbb1&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x33a)],'label':_0xee715b['t'](_0x17e196(0x3a5)),'children':_0x4200cc(_0x49accc,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['radar']})}),_0x142f54&&_0x4200cc(X,{'id':_0xacfab2['Funnel'],'label':_0xee715b['t'](_0x17e196(0x258)),'children':_0x4200cc(_0x2b6c2e,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x31a)],'gapControl':_0x17e196(0x36b)})}),_0x5dcdf6&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x38d)],'label':_0xee715b['t']('sheets-chart-ui.common.heatmap'),'children':_0x4200cc(_0x464207,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['heatmap']})}),_0x4e9f13&&_0x4200cc(X,{'id':_0xacfab2['Relation'],'label':_0xee715b['t']('sheets-chart-ui.section.relation'),'children':_0x4200cc(_0x17770f,{'defaultValues':_0x359dee['defaultValues'][_0x17e196(0x115)]})}),_0x1c7739(_0x5b0086)&&_0x4200cc(X,{'id':_0xacfab2['LineAndArea'],'label':_0xee715b['t']('sheets-chart-ui.section.lineAndArea'),'children':_0x4200cc(_0x5cce89,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['lineAndArea'],'lineStyleControl':_0x17e196(0x381)})}),_0x24b610(_0x5b0086,_0x1146fb['Legend'])&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x333)],'label':_0xee715b['t'](_0x17e196(0x1e9)),'children':_0x4200cc(_0x399936,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x3d0)]})}),_0x24b610(_0x5b0086,_0x1146fb[_0x17e196(0x2e4)])&&_0x3d17e9(_0x5a0c00,{'children':[_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x147)],'label':_0xee715b['t'](_0x17e196(0x15d)),'children':_0x4200cc(_0x28695d,{'axis':'x','defaultValues':_0x359dee[_0x17e196(0x31f)]['axis'],'NumberFormatField':_0x54c9b4})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x1f3)],'label':_0xee715b['t'](_0x17e196(0x377)),'children':_0x4200cc(_0x28695d,{'axis':'y','defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x1fc)],'NumberFormatField':_0x54c9b4})}),_0x419a4c&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x22c)],'label':_0xee715b['t'](_0x17e196(0x1a1)),'children':_0x4200cc(_0x28695d,{'axis':_0x17e196(0x13c),'defaultValues':_0x359dee[_0x17e196(0x31f)]['axis'],'NumberFormatField':_0x54c9b4})}),_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x23b)],'label':_0xee715b['t'](_0x17e196(0x121)),'children':_0x4200cc(_0x6840bc,{'defaultValues':_0x359dee['defaultValues'][_0x17e196(0x1fc)]})})]}),_0x24b610(_0x5b0086,_0x1146fb['IndicatorLine'])&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x1db)],'label':_0xee715b['t']('sheets-chart-ui.section.indicatorLine'),'children':_0x4200cc(_0x1be756,{'defaultValues':_0x359dee[_0x17e196(0x31f)]['indicatorLine']})}),_0x1a1c3c(_0x5b0086)&&_0x4200cc(X,{'id':_0xacfab2[_0x17e196(0x3ce)],'label':_0xee715b['t'](_0x17e196(0x235)),'children':_0x4200cc(_0x322608,{'defaultValues':_0x359dee[_0x17e196(0x31f)][_0x17e196(0x37b)]})}),_0x64673e&&_0x1e21f&&_0x4200cc(X,{'id':_0x64673e,'label':_0x1e21f,'children':_0x4200cc(_0x21b296,{})})]});};function Si(_0x3f0106){const _0x5e4ff9=_0x58e4e4;let {className:_0x53a8fe}=_0x3f0106,[_0x4ef5d2,_0x50d7d6]=_0x5b2f59(_0x305e77[_0x5e4ff9(0x1a9)]),_0x4b5e21=_0x341106(_0x56051b),_0x8c37cb=_0x341106(_0x37903c),_0x30a602=_0x341106(Y),_0x3f4e6c=_0x341106(_0x1e33a9),_0x35aa8b=_0x341106(_0x5b7264),_0x39ee5=_0x169faa(_0x3f4e6c['activeChartModel$'],_0x3f4e6c[_0x5e4ff9(0x240)]),_0x4468d1=_0x169faa(_0x30a602[_0x5e4ff9(0x379)],null),_0x1e8985=_0x207894(()=>{const _0x446b72=_0x5e4ff9;var _0x526c3b;if(!_0x39ee5)return null;let _0xac2d71=_0x35aa8b[_0x446b72(0x370)](_0x39ee5['id']);if(!_0xac2d71)return null;let _0x4bc2ae=Array[_0x446b72(0x10d)](_0xac2d71)?(_0x526c3b=_0xac2d71[0x0])==null?void 0x0:_0x526c3b[_0x446b72(0x3b2)]:_0xac2d71['rangeInfo'];return _0x4bc2ae?new _0x47dff2(_0x39ee5,new _0x4cd08c({'unitId':_0x4bc2ae[_0x446b72(0x380)],'subUnitId':_0x4bc2ae['subUnitId'],'chartId':_0x39ee5['id'],'injector':_0x4b5e21})):null;},[_0x39ee5,_0x4b5e21,_0x35aa8b]);if(_0x34e514(()=>{const _0x3a9964=_0x5e4ff9;var _0x25f8c4,_0x27d3d0;_0x39ee5&&(_0x4468d1==null?void 0x0:_0x4468d1[_0x3a9964(0x1f8)])===_0x39ee5['id']&&(((_0x25f8c4=_0x4468d1[_0x3a9964(0x2fb)])==null?void 0x0:_0x25f8c4[_0x3a9964(0x259)])===_0x305e77[_0x3a9964(0x29b)]&&_0x50d7d6(_0x305e77[_0x3a9964(0x29b)]),((_0x27d3d0=_0x4468d1[_0x3a9964(0x2fb)])==null?void 0x0:_0x27d3d0[_0x3a9964(0x259)])===_0x305e77[_0x3a9964(0x1a9)]&&_0x50d7d6(_0x305e77['Data']));},[_0x39ee5,_0x4468d1]),!_0x1e8985)return null;let _0x132521=_0x4200cc('div',{'className':_0x5e4ff9(0x22e)+(_0x4ef5d2===_0x305e77[_0x5e4ff9(0x29b)]?_0x5e4ff9(0x152):_0x5e4ff9(0x10e))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x53a8fe??'')+_0x5e4ff9(0x19f),'children':_0x4200cc(_0x60d2ef,{'ariaLabel':_0x8c37cb['t']('sheets-chart-ui.common.editChart'),'activeTab':_0x4ef5d2,'onTabChange':_0x50d7d6,'tabListClassName':_0x5e4ff9(0x389),'panelClassName':_0x4ef5d2===_0x305e77[_0x5e4ff9(0x29b)]?_0x5e4ff9(0x35e):void 0x0,'tabs':[{'id':_0x305e77[_0x5e4ff9(0x1a9)],'panelId':wi,'title':_0x8c37cb['t'](_0x5e4ff9(0x1c5)),'content':_0x4200cc(yi,{})},{'id':_0x305e77['Style'],'panelId':Ti,'title':_0x8c37cb['t'](_0x5e4ff9(0x103)),'content':_0x4200cc(xi,{'defaultValues':gi})}]})});return _0x4200cc(_0x1673a5,{'chartUIService':_0x30a602,'hostAdapter':_0x1e8985,'children':_0x132521});}const Ci=_0x58e4e4(0x19d),wi=_0x58e4e4(0x268),Ti=_0x58e4e4(0x33b);function Ei(_0xe3ce78){const _0x2485c4=_0x58e4e4;return _0xe3ce78[_0x2485c4(0x334)]===0x1&&Di(_0xe3ce78[0x0]);}function Di(_0x27995f){const _0x3d2b8c=_0x58e4e4;return(_0x27995f==null?void 0x0:_0x27995f[_0x3d2b8c(0x2c2)])===_0x43df04[_0x3d2b8c(0x1aa)]&&!_0x27995f[_0x3d2b8c(0x20d)];}let Oi=class extends _0x7b52dc{constructor(_0xf9718e,_0x26cf5f,_0x44e1d2,_0x2237a6,_0x2b6049,_0x3f01dc,_0x2a5b75,_0xf9ee02,_0x3ea4b5,_0x132e9b,_0x5ca31c,_0x4ee41c,_0x268bee,_0x3e11e1,_0x38f5d2){const _0x20aa6a=_0x58e4e4;var _0x58ef19;super(),this[_0x20aa6a(0x1be)]=_0xf9718e,this[_0x20aa6a(0x19c)]=_0x26cf5f,this[_0x20aa6a(0x25d)]=_0x44e1d2,this[_0x20aa6a(0x392)]=_0x2237a6,this[_0x20aa6a(0x28f)]=_0x2b6049,this[_0x20aa6a(0x34b)]=_0x3f01dc,this[_0x20aa6a(0x36c)]=_0x2a5b75,this[_0x20aa6a(0x149)]=_0xf9ee02,this[_0x20aa6a(0x1c9)]=_0x3ea4b5,this[_0x20aa6a(0x302)]=_0x132e9b,this[_0x20aa6a(0x116)]=_0x5ca31c,this['_sheetsChartUIService']=_0x4ee41c,this['_contextService']=_0x268bee,this['_localeService']=_0x3e11e1,W(this,'_sidebarDisposable',null),W(this,_0x20aa6a(0x351),void 0x0),this[_0x20aa6a(0x351)]=((_0x58ef19=_0x38f5d2[_0x20aa6a(0x1b4)](_0x20aa6a(0x2fe)))==null?void 0x0:_0x58ef19['enableChartElementFloatMenu'])===!0x0,this[_0x20aa6a(0x325)](),this[_0x20aa6a(0x105)](this[_0x20aa6a(0x19c)][_0x20aa6a(0x11b)](_0xaf509f[_0x20aa6a(0x16d)])[_0x20aa6a(0x1ca)](_0x48c80c=>{const _0x3e8af9=_0x20aa6a;var _0x4fa36b;_0x48c80c||(_0x4fa36b=this[_0x3e8af9(0x243)])==null||_0x4fa36b['dispose']();})),this[_0x20aa6a(0x105)](_0x43ce57(this[_0x20aa6a(0x34b)][_0x20aa6a(0x1af)]['subscribe'](async({drawing:_0x100193})=>{const _0x3db610=_0x20aa6a;await this[_0x3db610(0x187)](_0x100193);})));}[_0x58e4e4(0x2f3)](){const _0x3f748c=_0x58e4e4;this[_0x3f748c(0x243)]=this[_0x3f748c(0x36c)][_0x3f748c(0x33e)]({'id':Ci,'header':{'title':this['_localeService']['t'](_0x3f748c(0x1d0))},'width':0x154,'children':{'label':Ci},'onClose':()=>{const _0x10c1ff=_0x3f748c;this['_sidebarDisposable']=null,this[_0x10c1ff(0x15f)](),this['_chartModelService'][_0x10c1ff(0x240)]&&this[_0x10c1ff(0x25d)][_0x10c1ff(0x1ef)](null),this[_0x10c1ff(0x1be)][_0x10c1ff(0x1ed)](null),this['_contextService'][_0x10c1ff(0x332)](_0x654e75,!0x1);}});}[_0x58e4e4(0x1dd)](){const _0x2c8a38=_0x58e4e4;let _0x39f85e=this[_0x2c8a38(0x243)];this[_0x2c8a38(0x243)]=null,this[_0x2c8a38(0x15f)](),this[_0x2c8a38(0x25d)][_0x2c8a38(0x240)]&&this[_0x2c8a38(0x25d)][_0x2c8a38(0x1ef)](null),_0x39f85e==null||_0x39f85e['dispose']();}[_0x58e4e4(0x1f6)](){const _0x306640=_0x58e4e4;let _0x304708=this[_0x306640(0x19c)][_0x306640(0x29a)](_0xaf509f[_0x306640(0x16d)]);this[_0x306640(0x105)](this[_0x306640(0x36c)][_0x306640(0x13f)]['subscribe'](_0x515ae3=>{const _0x50ef64=_0x306640;_0x515ae3['id']===_0x50ef64(0x19d)&&(_0x515ae3[_0x50ef64(0x2cd)]||this[_0x50ef64(0x36c)][_0x50ef64(0x13f)]['next']({'visible':!0x1}));})),this['disposeWithMe'](_0x485af5([this['_chartModelService'][_0x306640(0x288)],this[_0x306640(0x339)][_0x306640(0x255)]])[_0x306640(0x3b1)](_0x587f1(([_0x35e052,_0x56f91f])=>_0x56f91f?(_0x35e052==null?void 0x0:_0x35e052['id'])??null:null),_0x23f42d(),_0x4f483a(null),_0x76194f())['subscribe'](([_0x3086b1,_0x234486])=>{const _0x5b262a=_0x306640;this[_0x5b262a(0x36a)](_0x3086b1,_0x234486);})),this['disposeWithMe'](this[_0x306640(0x25d)]['activeChartModel$'][_0x306640(0x1ca)](_0x4d9677=>{const _0x18e767=_0x306640;!_0x4d9677&&this[_0x18e767(0x243)]&&this['hidePanel']();})),this[_0x306640(0x105)](this['_commandService'][_0x306640(0x107)](_0x4bd048=>{const _0x1b71a3=_0x306640;if(_0x4bd048['id']===H['id']){let _0x1ef6f1=_0x4bd048[_0x1b71a3(0x2e6)];if(!Di(this['_drawingManagerService'][_0x1b71a3(0x2a1)]({'unitId':_0x1ef6f1['unitId'],'subUnitId':_0x1ef6f1[_0x1b71a3(0x28c)],'drawingId':_0x1ef6f1[_0x1b71a3(0x2dc)]})))return;this[_0x1b71a3(0x378)](_0x1ef6f1[_0x1b71a3(0x2dc)],_0x1ef6f1[_0x1b71a3(0x2fb)]);}if(_0x4bd048['id']===wr['id']&&this[_0x1b71a3(0x1dd)](),_0x4bd048['id']===_0x13af68['id']){var _0x1cf649;_0x4bd048[_0x1b71a3(0x2e6)][_0x1b71a3(0x1f8)]===((_0x1cf649=this[_0x1b71a3(0x25d)][_0x1b71a3(0x240)])==null?void 0x0:_0x1cf649['id'])&&this[_0x1b71a3(0x1dd)](),this['_contextService'][_0x1b71a3(0x3aa)](_0x654e75)&&(this['_contextService'][_0x1b71a3(0x332)](_0x654e75,!0x1),this[_0x1b71a3(0x1be)]['focusDrawing'](null));}})),this[_0x306640(0x105)](this[_0x306640(0x1c9)][_0x306640(0x364)][_0x306640(0x1ca)](({id:_0x160b3e})=>{const _0x521060=_0x306640;this[_0x521060(0x339)][_0x521060(0x2a5)](_0x160b3e)&&this[_0x521060(0x1dd)]();})),this[_0x306640(0x105)](this[_0x306640(0x1c9)][_0x306640(0x1e8)][_0x306640(0x1ca)](({id:_0x4936a3})=>{const _0x195b27=_0x306640;this[_0x195b27(0x339)][_0x195b27(0x2a5)](_0x4936a3)&&(this['_sheetsChartUIService']['clearPanelRoute'](),this[_0x195b27(0x28f)]['setElementEditMode'](_0x4936a3,!0x1),this[_0x195b27(0x306)](_0x4936a3)&&this['_chartRenderService'][_0x195b27(0x3c0)](_0x4936a3,!0x0));})),this[_0x306640(0x105)](this[_0x306640(0x1be)][_0x306640(0x328)][_0x306640(0x1ca)](_0x40a57f=>{const _0x100eea=_0x306640;let _0x36a119=_0x40a57f[0x0];if(!this[_0x100eea(0x339)][_0x100eea(0x3d5)]){if(Ei(_0x40a57f)){var _0x5a106c;let _0x383f8f=this[_0x100eea(0x25d)]['getChartModel'](_0x36a119['drawingId']);_0x383f8f&&this[_0x100eea(0x3c9)](_0x383f8f['id'])&&((_0x5a106c=this[_0x100eea(0x25d)]['activeChartModel'])==null?void 0x0:_0x5a106c['id'])!==_0x383f8f['id']&&this['_chartModelService']['setActiveChartModel'](_0x383f8f);return;}this['_chartModelService'][_0x100eea(0x240)]&&this[_0x100eea(0x25d)][_0x100eea(0x1ef)](null),!_0x36a119&&!this[_0x100eea(0x339)][_0x100eea(0x3d5)]&&this[_0x100eea(0x1dd)]();}})),_0x304708&&(this[_0x306640(0x105)](_0x304708[_0x306640(0x3be)][_0x306640(0x1ca)](()=>{const _0x32a22f=_0x306640;this[_0x32a22f(0x1dd)]();})),this[_0x306640(0x105)](_0x304708[_0x306640(0x114)][_0x306640(0x1ca)](()=>{const _0x26d559=_0x306640;this[_0x26d559(0x1dd)]();})));}async[_0x58e4e4(0x187)](_0xa29f4d){const _0x41663a=_0x58e4e4;this[_0x41663a(0x339)]['chartEditorOpen']||Di(_0xa29f4d)&&this[_0x41663a(0x3c9)](_0xa29f4d[_0x41663a(0x2dc)])&&await this['_openEditPanelByDoubleClick'](_0xa29f4d[_0x41663a(0x380)],_0xa29f4d[_0x41663a(0x28c)],_0xa29f4d[_0x41663a(0x2dc)]);}async[_0x58e4e4(0x3a2)](_0x260318,_0x5d3981,_0x2d9ef7){const _0x22ef6a=_0x58e4e4;this[_0x22ef6a(0x25d)][_0x22ef6a(0x2aa)](_0x2d9ef7)&&this[_0x22ef6a(0x3c9)](_0x2d9ef7)&&await this[_0x22ef6a(0x116)][_0x22ef6a(0x1ee)](H['id'],{'unitId':_0x260318,'subUnitId':_0x5d3981,'drawingId':_0x2d9ef7});}[_0x58e4e4(0x378)](_0x3ff514,_0x3bd5a6){const _0x324a8c=_0x58e4e4;let _0xf16633=this[_0x324a8c(0x25d)][_0x324a8c(0x2aa)](_0x3ff514);_0xf16633&&this[_0x324a8c(0x3c9)](_0x3ff514)&&(this[_0x324a8c(0x25d)][_0x324a8c(0x1ef)](_0xf16633),this[_0x324a8c(0x2f3)](),this['_activateEditPanelState'](_0x3ff514,_0x3bd5a6??null));}[_0x58e4e4(0x3a3)](_0x16e737,_0x4cd168){const _0x3c869e=_0x58e4e4;this['_sheetsChartUIService'][_0x3c869e(0x2e9)](!0x0),this[_0x3c869e(0x339)][_0x3c869e(0x267)](_0x16e737,_0x4cd168);}['_deactivateEditPanelState'](){const _0x22d91f=_0x58e4e4;this[_0x22d91f(0x339)][_0x22d91f(0x2e9)](!0x1);}[_0x58e4e4(0x36a)](_0xa649ad,_0x401026){const _0x21e92b=_0x58e4e4;_0xa649ad!==_0x401026&&(_0xa649ad&&this['_chartRenderService'][_0x21e92b(0x3c0)](_0xa649ad,!0x1),this[_0x21e92b(0x339)][_0x21e92b(0x319)](),_0x401026&&(this[_0x21e92b(0x339)][_0x21e92b(0x267)](_0x401026,null),this[_0x21e92b(0x28f)][_0x21e92b(0x3c0)](_0x401026,this[_0x21e92b(0x306)](_0x401026))));}['_initMenus'](){const _0x306232=_0x58e4e4;this[_0x306232(0x149)][_0x306232(0x215)](Hr),this[_0x306232(0x302)][_0x306232(0x14f)](_0x43df04['DRAWING_CHART'],this[_0x306232(0x138)][_0x306232(0x345)](this));}[_0x58e4e4(0x306)](_0x294621){const _0x1e33bb=_0x58e4e4;let _0x49a31d=this[_0x1e33bb(0x25d)][_0x1e33bb(0x2aa)](_0x294621);return!this['_isChartElementEditEnabled']||!_0x49a31d||!this[_0x1e33bb(0x3c9)](_0x294621)?!0x1:Wr(_0x49a31d['chartType']);}['getChartPopupMenus'](_0x34a847,_0x128d80,_0x430b96,_0x175a98){const _0x48f850=_0x58e4e4;if(!this['_chartModelService'][_0x48f850(0x2aa)](_0x430b96))return[];let _0x3ea601=[{'label':this[_0x48f850(0x242)]['t']('sheets-chart-ui.common.openChartPanel'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x34a847,'subUnitId':_0x128d80,'drawingId':_0x430b96},'disable':_0x175a98!==_0x43df04[_0x48f850(0x1aa)]}];return this['_isOwnedChart'](_0x430b96)?[..._0x3ea601,{'label':this[_0x48f850(0x242)]['t'](_0x48f850(0x38f)),'index':0x1,'commandId':_0x52fe4a['id'],'commandParams':{'unitId':_0x34a847,'drawings':[{'unitId':_0x34a847,'subUnitId':_0x128d80,'drawingId':_0x430b96,'drawingType':_0x175a98}]},'disable':!0x1},{'label':this[_0x48f850(0x242)]['t'](_0x48f850(0x210)),'index':0x2,'commandId':wr['id'],'commandParams':{'unitId':_0x34a847,'subUnitId':_0x128d80,'drawingId':_0x430b96},'disable':!0x1}]:_0x3ea601;}['_isOwnedChart'](_0x370b30){const _0x483c92=_0x58e4e4;return this[_0x483c92(0x392)][_0x483c92(0x370)](_0x370b30)!==void 0x0;}};Oi=q([K(0x0,_0x1e7a38),K(0x1,_0x5b54fc),K(0x2,_0x569e33(_0x1e33a9)),K(0x3,_0x569e33(_0x5b7264)),K(0x4,_0x569e33(J)),K(0x5,_0x569e33(_0x9d629b)),K(0x6,_0x569e33(_0x14cdc6)),K(0x7,_0x26ea5c),K(0x8,_0x569e33(_0x351035)),K(0x9,_0x569e33(_0x4b4fef)),K(0xa,_0x10f119),K(0xb,Y),K(0xc,_0x2eb5c4),K(0xd,_0x569e33(_0x37903c)),K(0xe,_0x58cb4f)],Oi);var ki=_0x58e4e4(0x135),Ai='1.0.3';let ji=class extends _0x7b52dc{constructor(_0x11cab6,_0x4528a4){const _0x1366f0=_0x58e4e4;super(),this[_0x1366f0(0x2d8)]=_0x11cab6,this[_0x1366f0(0x25d)]=_0x4528a4,this['_init']();}[_0x58e4e4(0x2b0)](){const _0x43325f=_0x58e4e4;this[_0x43325f(0x105)](this['_chartHostProviderService'][_0x43325f(0x385)][_0x43325f(0x1ca)](_0x4d6e8c=>{const _0x5a0b99=_0x43325f;this[_0x5a0b99(0x25d)][_0x5a0b99(0x175)](_0x4d6e8c);}));}};ji=q([K(0x0,ui),K(0x1,_0x569e33(_0x1e33a9))],ji);let Mi=class extends _0x7b52dc{constructor(_0x125952,_0x2f7327,_0x1b54d6,_0x2a2f15,_0x561ec0,_0xb8902e){const _0x18a496=_0x58e4e4;super(),this['_chartModelService']=_0x125952,this[_0x18a496(0x28f)]=_0x2f7327,this[_0x18a496(0x242)]=_0x1b54d6,this[_0x18a496(0x250)]=_0x2a2f15,this['_commandService']=_0x561ec0,this[_0x18a496(0x162)]=_0xb8902e,W(this,_0x18a496(0x39e),new Map()),W(this,_0x18a496(0x32f),new Set()),this[_0x18a496(0x2b0)](),this[_0x18a496(0x2da)](),this[_0x18a496(0x170)]();}[_0x58e4e4(0x170)](){const _0x3c1436=_0x58e4e4;this[_0x3c1436(0x105)](this[_0x3c1436(0x162)]['interceptor'][_0x3c1436(0x2d0)](this['_sheetPrintInterceptorService'][_0x3c1436(0x219)][_0x3c1436(0x238)]()[_0x3c1436(0x200)],{'handler':(_0x2c65c3,_0x140212,_0x31c781)=>{const _0x57153f=_0x3c1436;let _0x4c11f5=this[_0x57153f(0x28f)][_0x57153f(0x153)](_0x140212['unitId'],_0x140212[_0x57153f(0x28c)],_0x140212[_0x57153f(0x10b)]);return _0x140212[_0x57153f(0x2cb)][_0x57153f(0x1c7)](_0x4c11f5),_0x31c781(_0x2c65c3);}}));}[_0x58e4e4(0x2b0)](){const _0x4cb5fa=_0x58e4e4;this[_0x4cb5fa(0x105)](this[_0x4cb5fa(0x25d)][_0x4cb5fa(0x283)][_0x4cb5fa(0x1ca)](_0x1e2885=>{const _0x70699=_0x4cb5fa;if(_0x1e2885){let _0x1bccf2=new _0x2329d0();_0x1bccf2[_0x70699(0x1c7)](_0x1e2885[_0x70699(0x3a0)][_0x70699(0x3b1)](_0x31738a(_0x5c8324=>_0x5c8324[_0x70699(0x2ae)][_0x70699(0x3b1)](_0x587be2(0x1))))[_0x70699(0x1ca)](()=>{const _0x205437=_0x70699;this[_0x205437(0x32f)]['add'](_0x1e2885['id']);})),_0x1bccf2['add'](_0x1e2885[_0x70699(0x1e7)][_0x70699(0x3b1)](_0x53855c(_0x1e2885[_0x70699(0x204)]),_0x53855c(this[_0x70699(0x242)][_0x70699(0x137)]),_0xd01ebe(0x64))[_0x70699(0x1ca)](([[_0x55e150,_0x5b4e7d],_0x40a4fb])=>{const _0x1c3941=_0x70699;var _0x617eaa;if(!_0x55e150)return;(_0x617eaa=_0x55e150[_0x1c3941(0x17e)])==null||_0x617eaa[_0x1c3941(0x1c2)][_0x1c3941(0x2db)]((_0x364802,_0x123df1)=>{const _0x48dcdc=_0x1c3941;_0x364802[_0x48dcdc(0x221)]||=this['_localeService']['t']('sheets-chart-ui.common.category')+'\x20'+(_0x123df1+0x1);}),_0x55e150['series'][_0x1c3941(0x2db)]((_0x325c3a,_0x295635)=>{const _0x4bc95d=_0x1c3941;_0x325c3a[_0x4bc95d(0x397)]||=this[_0x4bc95d(0x242)]['t'](_0x4bc95d(0x15c))+'\x20'+(_0x295635+0x1);});let _0x58fc06=this[_0x1c3941(0x28f)][_0x1c3941(0x173)](_0x1e2885,_0x40a4fb),_0x1dc627=this[_0x1c3941(0x32f)][_0x1c3941(0x25c)](_0x1e2885['id']);this[_0x1c3941(0x28f)][_0x1c3941(0x1df)](_0x1e2885['id'],_0x55e150,_0x58fc06,{'animateDataUpdate':_0x1dc627});})),_0x1e2885[_0x70699(0x3b4)](()=>{const _0x53eaf2=_0x70699;this['_pendingDataUpdateChartIds'][_0x53eaf2(0x25c)](_0x1e2885['id']),_0x1bccf2['dispose']();});}}));}[_0x58e4e4(0x2da)](){const _0x1d7d57=_0x58e4e4;this[_0x1d7d57(0x105)](this[_0x1d7d57(0x116)][_0x1d7d57(0x107)](_0x44dc85=>{const _0x27b22c=_0x1d7d57;if(_0x44dc85['id']!==_0x364aee['id'])return;let _0x4a2daa=_0x44dc85['params'];_0x4a2daa!=null&&_0x4a2daa['chartModelId']&&Promise[_0x27b22c(0x2f6)]()[_0x27b22c(0x343)](()=>this['_renderAfterChartUpdateMutation'](_0x4a2daa));}));}['_renderAfterChartUpdateMutation'](_0x4aa729){const _0x45f23c=_0x58e4e4;let _0x426fc4=this[_0x45f23c(0x25d)][_0x45f23c(0x2aa)](_0x4aa729[_0x45f23c(0x163)]);if(!_0x426fc4||_0x426fc4['chartType']!==_0x5ec5cb[_0x45f23c(0x18c)])return;let _0x2f4cbb=_0x426fc4['config'];if(!_0x2f4cbb){this[_0x45f23c(0x195)](_0x426fc4);return;}this[_0x45f23c(0x191)](_0x426fc4,_0x2f4cbb);}[_0x58e4e4(0x195)](_0x1b9fab){const _0x3a42bf=_0x58e4e4;if(this[_0x3a42bf(0x39e)][_0x3a42bf(0x368)](_0x1b9fab['id']))return;let _0x3e092e=_0x1b9fab[_0x3a42bf(0x1e7)]['pipe'](_0x24a54a(_0x564ad1=>_0x564ad1!=null),_0x315267(0x1))[_0x3a42bf(0x1ca)](_0x53ac36=>{const _0x4b9bbb=_0x3a42bf;this['_pendingMutationConfigRenders']['delete'](_0x1b9fab['id']),this[_0x4b9bbb(0x191)](_0x1b9fab,_0x53ac36);});this[_0x3a42bf(0x39e)][_0x3a42bf(0x37a)](_0x1b9fab['id'],_0x3e092e),_0x1b9fab[_0x3a42bf(0x3b4)](()=>{const _0x1aac7e=_0x3a42bf;_0x3e092e[_0x1aac7e(0x284)](),this[_0x1aac7e(0x39e)][_0x1aac7e(0x25c)](_0x1b9fab['id']);});}[_0x58e4e4(0x191)](_0x1bd6e3,_0x1f0d22){const _0x2850bf=_0x58e4e4;let _0x263794=this[_0x2850bf(0x28f)][_0x2850bf(0x173)](_0x1bd6e3,this['_localeService'][_0x2850bf(0x394)]());this['_chartRenderService']['render'](_0x1bd6e3['id'],_0x1f0d22,_0x263794);}};Mi=q([K(0x0,_0x569e33(_0x1e33a9)),K(0x1,_0x569e33(J)),K(0x2,_0x569e33(_0x37903c)),K(0x3,Y),K(0x4,_0x10f119),K(0x5,_0x569e33(_0x38c41d))],Mi);function Ni(_0x102ca6,_0x2f42e6){const _0x156c62=_0x58e4e4;return _0x102ca6['unitId']!==_0x2f42e6[_0x156c62(0x380)]||_0x102ca6[_0x156c62(0x28c)]!==_0x2f42e6[_0x156c62(0x18f)]?_0x102ca6:{..._0x102ca6,'subUnitId':_0x2f42e6['targetSubUnitId']};}function Pi(_0x4bfaf6,_0x9982b0){const _0xfc1605=_0x58e4e4;return(_0x4bfaf6==null?void 0x0:_0x4bfaf6[_0xfc1605(0x2e2)])===_0x4265c5[_0xfc1605(0x2c7)]?{..._0x4bfaf6,'source':Ni(_0x4bfaf6[_0xfc1605(0x352)],_0x9982b0)}:_0x4bfaf6;}function Fi(_0x7ae460,_0x22cfa9){const _0x5f296e=_0x58e4e4;let {rangeInfo:_0x163f43}=_0x7ae460;return Array[_0x5f296e(0x10d)](_0x163f43)?{..._0x7ae460,'rangeInfo':_0x163f43[_0x5f296e(0x3b3)](_0x39b546=>({..._0x39b546,..._0x39b546[_0x5f296e(0x3a6)]?{'header':Pi(_0x39b546['header'],_0x22cfa9)}:{},'range':Ni(_0x39b546['range'],_0x22cfa9)}))}:{..._0x7ae460,'rangeInfo':{..._0x163f43,..._0x163f43[_0x5f296e(0x3a6)]?{'header':{..._0x163f43[_0x5f296e(0x3a6)],..._0x163f43[_0x5f296e(0x3a6)][_0x5f296e(0x24a)]?{'titles':Ii(_0x163f43[_0x5f296e(0x3a6)][_0x5f296e(0x24a)],_0x22cfa9)}:{}}}:{},'rangeInfo':Ni(_0x163f43['rangeInfo'],_0x22cfa9)}};}function Ii(_0x226c2d,_0x5307a0){const _0x50bf64=_0x58e4e4;return _0x226c2d[_0x50bf64(0x2e2)]===_0x4265c5[_0x50bf64(0x23e)]?{..._0x226c2d,'values':{..._0x226c2d['values']}}:_0x226c2d['type']===_0x4265c5['References']?{..._0x226c2d,'values':Object[_0x50bf64(0x208)](Object[_0x50bf64(0x311)](_0x226c2d[_0x50bf64(0x226)])[_0x50bf64(0x3b3)](([_0x1cb50b,_0x28e739])=>[_0x1cb50b,_0x28e739&&Ni(_0x28e739,_0x5307a0)]))}:{..._0x226c2d,'values':Object[_0x50bf64(0x208)](Object[_0x50bf64(0x311)](_0x226c2d[_0x50bf64(0x226)])[_0x50bf64(0x3b3)](([_0x55df0e,_0xcb7975])=>[_0x55df0e,_0xcb7975&&Pi(_0xcb7975,_0x5307a0)]))};}function Li(_0x5b7e78,_0x5e15f7,_0x241d76,_0x481565){const _0x9e4053=_0x58e4e4;let _0x13ef6f=_0x4ce057(_0x5b7e78,_0x5e15f7,_0x241d76),_0x436baf=[];for(let _0x25f66f of _0x5e15f7){let _0x4ae408=_0x13ef6f[_0x9e4053(0x145)][_0x9e4053(0x368)](_0x25f66f[_0x9e4053(0x2dc)]),_0x5ce299=_0x481565(_0x25f66f);_0x4ae408&&_0x5ce299&&_0x436baf['push']({'targetChartId':_0x4ae408,'source':Fi(_0x5ce299,_0x241d76)});}return _0x436baf;}let Ri=class extends _0x7b52dc{constructor(_0xa38e11,_0x2d8be8,_0x98eb8,_0x45de97,_0x13fe63){const _0x258b97=_0x58e4e4;super(),this[_0x258b97(0x19c)]=_0xa38e11,this[_0x258b97(0x1a5)]=_0x2d8be8,this['_sheetDrawingService']=_0x98eb8,this[_0x258b97(0x25d)]=_0x45de97,this[_0x258b97(0x392)]=_0x13fe63,this[_0x258b97(0x30a)]();}[_0x58e4e4(0x30a)](){const _0x2f65eb=_0x58e4e4;this[_0x2f65eb(0x105)](this['_sheetInterceptorService'][_0x2f65eb(0x102)]({'getMutations':_0x4dbecc=>{const _0x59b1ad=_0x2f65eb;if(_0x4dbecc['id']===_0x54620f['id']){let _0x126ccb=_0x130794(this[_0x59b1ad(0x19c)],_0x4dbecc[_0x59b1ad(0x2e6)]);if(!_0x126ccb)return{'redos':[],'undos':[]};let {unitId:_0x276da6,subUnitId:_0x30e488}=_0x126ccb,_0xdd1901=this[_0x59b1ad(0x2c1)]['getDrawingData'](_0x276da6,_0x30e488),_0x29f7ef=Object[_0x59b1ad(0x226)](_0xdd1901)['filter'](_0x4b6e94=>_0x4b6e94[_0x59b1ad(0x2c2)]===_0x43df04[_0x59b1ad(0x1aa)]);if(_0x29f7ef['length']===0x0)return{'redos':[],'undos':[]};let _0x3863a3=[],_0x151303=[];for(let _0x440482=0x0;_0x440482<_0x29f7ef['length'];_0x440482++){let _0x5be21d=_0x29f7ef[_0x440482],_0x2bea6b=this['_chartModelService'][_0x59b1ad(0x2aa)](_0x5be21d['drawingId']);if(!_0x2bea6b)continue;let _0x296d95=this[_0x59b1ad(0x392)][_0x59b1ad(0x370)](_0x2bea6b['id']);if(!_0x296d95)continue;let {chartType:_0x12e7a9,context:_0x93c311,style:_0x5917d8,dataAggregation:_0x51a959}=_0x2bea6b[_0x59b1ad(0x373)]();_0x3863a3[_0x59b1ad(0x14a)]({'id':_0x13af68['id'],'params':{'unitId':_0x276da6,'subUnitId':_0x30e488,'chartId':_0x5be21d[_0x59b1ad(0x2dc)]}}),_0x151303[_0x59b1ad(0x14a)]({'id':_0x550a74['id'],'params':{'unitId':_0x276da6,'subUnitId':_0x30e488,'chartId':_0x5be21d[_0x59b1ad(0x2dc)],'chartType':_0x12e7a9,..._0x589193(_0x296d95),'context':_0x93c311,'style':_0x5917d8,'dataAggregation':_0x51a959}});}return{'redos':_0x3863a3,'undos':_0x151303};}if(_0x4dbecc['id']===_0x242788['id']){let {unitId:_0x47b4b7,subUnitId:_0x36a693,targetSubUnitId:_0x12bf3b,copyContext:_0x5b0180}=_0x4dbecc[_0x59b1ad(0x2e6)];if(!_0x47b4b7||!_0x36a693||!_0x12bf3b)return{'redos':[],'undos':[]};let _0x3532dd=this['_sheetDrawingService']['getDrawingData'](_0x47b4b7,_0x36a693),_0x3c49df=Object[_0x59b1ad(0x226)](_0x3532dd)[_0x59b1ad(0x19e)](_0x28f9fb=>_0x28f9fb[_0x59b1ad(0x2c2)]===_0x43df04['DRAWING_CHART']);if(_0x3c49df[_0x59b1ad(0x334)]===0x0)return{'redos':[],'undos':[]};let _0x24fa6a=Li(_0x5b0180,_0x3c49df,{'unitId':_0x47b4b7,'sourceSubUnitId':_0x36a693,'targetSubUnitId':_0x12bf3b},_0x7627a1=>{const _0x2ae128=_0x59b1ad;let _0x55395f=this['_chartModelService'][_0x2ae128(0x2aa)](_0x7627a1[_0x2ae128(0x2dc)]);if(!_0x55395f)return;let _0x56b2b3=this[_0x2ae128(0x392)]['getChartSourceSpec'](_0x55395f['id']);if(!_0x56b2b3)return;let {chartType:_0x4e54ee,context:_0x3fe9f8,style:_0x21d393,dataAggregation:_0x1ec007}=_0x55395f[_0x2ae128(0x373)]();return{'rangeInfo':_0x56b2b3,'chartType':_0x4e54ee,'context':_0x3fe9f8,'style':_0x21d393,'dataAggregation':_0x1ec007};}),_0x23e180=[],_0x5cd57d=[];for(let {targetChartId:_0xe3e692,source:_0x44ce65}of _0x24fa6a){let {rangeInfo:_0xca3c09,chartType:_0x1a6f5a,context:_0x23f4d6,style:_0x165e92,dataAggregation:_0x363897}=_0x44ce65;_0x23e180[_0x59b1ad(0x14a)]({'id':_0x550a74['id'],'params':{'unitId':_0x47b4b7,'subUnitId':_0x12bf3b,'chartId':_0xe3e692,'chartType':_0x1a6f5a,..._0x589193(_0xca3c09),'context':_0x23f4d6,'style':_0x165e92,'dataAggregation':_0x363897}}),_0x5cd57d[_0x59b1ad(0x14a)]({'id':_0x13af68['id'],'params':{'unitId':_0x47b4b7,'subUnitId':_0x12bf3b,'chartId':_0xe3e692}});}return{'redos':_0x23e180,'undos':_0x5cd57d};}return{'redos':[],'undos':[]};}}));}};Ri=q([K(0x0,_0x569e33(_0x5b54fc)),K(0x1,_0x569e33(_0x2cb268)),K(0x2,_0x569e33(_0xcf65a5)),K(0x3,_0x569e33(_0x1e33a9)),K(0x4,_0x569e33(_0x5b7264))],Ri);const zi=_0x3b6236=>_0x3b6236[_0x58e4e4(0x29a)](_0xaf509f[_0x58e4e4(0x16d)])['getUnitId'](),Bi=_0x4b7297=>{const _0x4dab1d=_0x58e4e4;var _0x4ca812;return(_0x4ca812=_0x4b7297['getCurrentUnitOfType'](_0xaf509f['UNIVER_SHEET'])[_0x4dab1d(0x320)]())==null?void 0x0:_0x4ca812[_0x4dab1d(0x358)]();};function Vi(){const _0x433d9c=_0x58e4e4;var _0x1645c3;let _0x4f6d23=_0x341106(Y),_0x401465=_0x341106(_0x1e33a9),_0x20be33=_0x341106(_0x5b7264),_0x18e33d=_0x341106(_0x37903c),_0x9604e8=_0x341106(_0x56051b),_0x474379=_0x1fd812(_0x9604e8),_0xce813e=_0x207894(()=>{const _0x5cbff0=_0x29f5;let _0x11b3e5=Fr(Nr['concat'](),_0x474379);return _0x99c448(_0x11b3e5[_0x5cbff0(0x3b3)](_0x4ef759=>({'id':_0x4ef759['id'],'label':_0x18e33d['t'](_0x5cbff0(0x27a)+_0x4ef759[_0x5cbff0(0x2af)]),'pieSecondaryPlotType':_0x4ef759[_0x5cbff0(0x17d)],'value':_0x4ef759[_0x5cbff0(0x256)]})));},[_0x474379,_0x18e33d]),_0x237ab7=_0x169faa(_0x401465[_0x433d9c(0x288)],_0x401465['activeChartModel']),_0x5b65b0=_0x237ab7?_0x20be33['getChartDataSource'](_0x237ab7['id']):void 0x0,_0x3681dc=_0x169faa(_0x5b65b0==null?void 0x0:_0x5b65b0[_0x433d9c(0x150)],_0x5b65b0==null?void 0x0:_0x5b65b0['getRangeInfo']()),_0x23c9f1=Array['isArray'](_0x3681dc),_0x3bd5c1=_0x3681dc&&!_0x23c9f1&&_0x3681dc[_0x433d9c(0x2b2)]?_0x28717b[_0x433d9c(0x1b1)]:_0x28717b[_0x433d9c(0x186)],_0x789bb4=_0x23c9f1?(_0x1645c3=_0x3681dc[0x0])==null?void 0x0:_0x1645c3[_0x433d9c(0x3b2)]:_0x3681dc==null?void 0x0:_0x3681dc['rangeInfo'];return _0x4200cc(_0x433d9c(0x2ee),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','children':_0x4200cc(_0x239fe1,{'chartTypeOptions':_0xce813e,'dataSourceControl':_0x4200cc(Hi,{'dataRange':_0x3681dc,'primaryRange':_0x789bb4}),'categoryToggleLabel':_0x18e33d['t'](_0x433d9c(0x21d),_0x3bd5c1===_0x28717b[_0x433d9c(0x1b1)]?_0x3bd5c1+'\x20'+(((_0x789bb4==null?void 0x0:_0x789bb4[_0x433d9c(0x3b2)]['startRow'])??0x0)+0x1):_0x3bd5c1+'\x20'+_0x47d2a3((_0x789bb4==null?void 0x0:_0x789bb4[_0x433d9c(0x3b2)]['startColumn'])??0x0)),'orientationControl':_0x23c9f1?void 0x0:_0x4200cc(_0x3e78e8,{'size':_0x433d9c(0x134),'onClick':()=>_0x4f6d23['setOrientation'](_0x3bd5c1===_0x28717b[_0x433d9c(0x1b1)]?_0x28717b[_0x433d9c(0x186)]:_0x28717b[_0x433d9c(0x1b1)]),'children':_0x18e33d['t'](_0x433d9c(0x386))})})});}function Hi(_0x3f358f){const _0x3282e2=_0x58e4e4;let {dataRange:_0x222944,primaryRange:_0xb95159}=_0x3f358f,_0x50d021=_0x341106(Y),_0x4d888f=_0x341106(_0x37903c),_0x134abe=_0x341106(_0x5b54fc),[_0x30aec1,_0x114bb1]=_0x5b2f59(!0x1),[_0x10b734,_0x5e0148]=_0x5b2f59(!0x1),_0x4894d6=zi(_0x134abe),_0x1ad692=Bi(_0x134abe);_0x34e514(()=>{_0x50d021['setRangeSelectMode'](_0x30aec1);},[_0x30aec1,_0x50d021]);let _0x612ada=_0x207894(()=>_0x1569e2(async _0x14586b=>{const _0x301f38=_0x29f5;var _0x439eb1;if(jr(_0x222944,_0x134abe)===_0x14586b)return;let _0x35e573=_0x14586b[_0x301f38(0x29d)](',')[_0x301f38(0x19e)](Boolean)['map'](_0x404b59)[0x0];if(!_0x35e573)return;let {unitId:_0x42fb11,sheetName:_0x5ef0a2,range:_0x15b5a3}=_0x35e573,_0x575080=_0x42fb11||_0x4894d6,_0x1bbd25=((_0x439eb1=_0x134abe['getUnit'](_0x575080)['getSheetBySheetName'](_0x5ef0a2))==null?void 0x0:_0x439eb1[_0x301f38(0x358)]())||(_0xb95159==null?void 0x0:_0xb95159[_0x301f38(0x28c)])||_0x1ad692;_0x1bbd25&&_0x50d021[_0x301f38(0x3ab)]({'rangeInfo':{'range':_0x15b5a3,'unitId':_0x575080,'subUnitId':_0x1bbd25}});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x222944,_0xb95159,_0x50d021,_0x1ad692,_0x4894d6,_0x134abe]);return _0x34e514(()=>()=>_0x612ada['cancel'](),[_0x612ada]),_0x4200cc('div',{'className':_0x3282e2(0x33d),'children':_0x3d17e9(_0x3282e2(0x2ee),{'children':[_0x4200cc(_0x5bbce0,{'title':_0x4d888f['t'](_0x3282e2(0x398))}),_0x4200cc(_0x5f3f11,{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x4894d6,'subUnitId':_0x1ad692,'initialValue':_0x222944?jr(_0x222944,_0x134abe):'','onChange':(_0x248cef,_0x35e8a1)=>_0x612ada(_0x35e8a1),'onFocusChange':_0xc50a6e=>{_0x10b734||_0x114bb1(_0xc50a6e);},'onRangeSelectorDialogVisibleChange':_0x2673e5=>{_0x5e0148(_0x2673e5),_0x114bb1(_0x2673e5);}})]})});}function Ui(){const _0x49241e=_0x58e4e4;let [_0xff068d,_0xe92e04]=_0x5b2f59(_0x305e77['Data']),_0x68cbe3=_0x341106(_0x56051b),_0x30431e=_0x341106(_0x37903c),_0x3f6e50=_0x341106(Y),_0x43f74b=_0x341106(_0x1e33a9),_0x4b027e=_0x341106(_0x5b7264),_0x5143fc=_0x169faa(_0x43f74b['activeChartModel$'],_0x43f74b['activeChartModel']),_0x5357d0=_0x169faa(_0x3f6e50['panelRoute$'],null),_0x1934cd=_0x207894(()=>{const _0x326917=_0x29f5;var _0x30be75;if(!_0x5143fc)return null;let _0x1be03b=_0x4b027e['getChartSourceSpec'](_0x5143fc['id']);if(!_0x1be03b)return null;let _0xe88b2=Array[_0x326917(0x10d)](_0x1be03b)?(_0x30be75=_0x1be03b[0x0])==null?void 0x0:_0x30be75[_0x326917(0x3b2)]:_0x1be03b['rangeInfo'];return _0xe88b2?new _0x47dff2(_0x5143fc,new _0x4cd08c({'unitId':_0xe88b2['unitId'],'subUnitId':_0xe88b2['subUnitId'],'chartId':_0x5143fc['id'],'injector':_0x68cbe3})):null;},[_0x5143fc,_0x68cbe3,_0x4b027e]);if(_0x34e514(()=>{const _0xae7191=_0x29f5;var _0x333682,_0x350847;_0x5143fc&&(_0x5357d0==null?void 0x0:_0x5357d0[_0xae7191(0x1f8)])===_0x5143fc['id']&&(((_0x333682=_0x5357d0[_0xae7191(0x2fb)])==null?void 0x0:_0x333682[_0xae7191(0x259)])===_0x305e77[_0xae7191(0x29b)]&&_0xe92e04(_0x305e77[_0xae7191(0x29b)]),((_0x350847=_0x5357d0[_0xae7191(0x2fb)])==null?void 0x0:_0x350847[_0xae7191(0x259)])===_0x305e77['Data']&&_0xe92e04(_0x305e77[_0xae7191(0x1a9)]));},[_0x5143fc,_0x5357d0]),!_0x1934cd)return null;let _0x999e7=_0x4200cc(_0x49241e(0x2ee),{'className':_0x49241e(0x181),'children':_0x4200cc(_0x60d2ef,{'ariaLabel':_0x30431e['t'](_0x49241e(0x1d0)),'activeTab':_0xff068d,'onTabChange':_0xe92e04,'tabListClassName':_0x49241e(0x124),'panelClassName':_0xff068d===_0x305e77[_0x49241e(0x29b)]?_0x49241e(0x301):_0x49241e(0x152),'tabs':[{'id':_0x305e77[_0x49241e(0x1a9)],'panelId':_0x49241e(0x1c3),'title':_0x30431e['t'](_0x49241e(0x1c5)),'content':_0x4200cc(Vi,{})},{'id':_0x305e77[_0x49241e(0x29b)],'panelId':'mobile-sheet-chart-style-panel','title':_0x30431e['t'](_0x49241e(0x103)),'content':_0x4200cc(xi,{'defaultValues':gi})}]})});return _0x4200cc(_0x441e57,{'chartUIService':_0x3f6e50,'hostAdapter':_0x1934cd,'children':_0x999e7});}let Wi=class extends _0x7b52dc{constructor(_0x470a0c){const _0x484895=_0x58e4e4;super(),this[_0x484895(0x105)](_0x470a0c[_0x484895(0x3bd)](Ci,Ui));}};Wi=q([K(0x0,_0x569e33(_0x122d09))],Wi);let Gi=class extends _0x7b52dc{constructor(_0x14aa3f,_0x676c44,_0x5789a7,_0xf1f60f,_0x2499cb,_0x171a9f,_0x6a907e,_0x4ca951,_0x40c408){const _0x42ba53=_0x58e4e4;super(),this[_0x42ba53(0x1be)]=_0x14aa3f,this[_0x42ba53(0x25d)]=_0x676c44,this[_0x42ba53(0x36c)]=_0x5789a7,this['_menuManagerService']=_0xf1f60f,this[_0x42ba53(0x302)]=_0x2499cb,this['_commandService']=_0x171a9f,this['_sheetsChartUIService']=_0x6a907e,this[_0x42ba53(0x1b5)]=_0x4ca951,this['_localeService']=_0x40c408,W(this,_0x42ba53(0x243),null),W(this,_0x42ba53(0x346),!0x1),this[_0x42ba53(0x325)]();}[_0x58e4e4(0x125)](){const _0x46d4c1=_0x58e4e4;this[_0x46d4c1(0x1dd)](),super[_0x46d4c1(0x125)]();}[_0x58e4e4(0x1f6)](){const _0x1b1e8e=_0x58e4e4;this[_0x1b1e8e(0x346)]||(this[_0x1b1e8e(0x346)]=!0x0,this[_0x1b1e8e(0x105)](this[_0x1b1e8e(0x116)]['onCommandExecuted'](_0x4eab79=>{const _0x31b3a9=_0x1b1e8e;if(_0x4eab79['id']!==H['id'])return;let _0x1d0059=_0x4eab79[_0x31b3a9(0x2e6)];this[_0x31b3a9(0x378)](_0x1d0059[_0x31b3a9(0x2dc)],_0x1d0059[_0x31b3a9(0x2fb)]);})));}['openChartPanelById'](_0x45e375,_0x5aeb3e){const _0x19fe79=_0x58e4e4;let _0x4d271d=this[_0x19fe79(0x25d)]['getChartModel'](_0x45e375);_0x4d271d&&(this[_0x19fe79(0x25d)][_0x19fe79(0x1ef)](_0x4d271d),this[_0x19fe79(0x2f3)](),this[_0x19fe79(0x339)]['setChartEditorOpen'](!0x0),this[_0x19fe79(0x339)][_0x19fe79(0x267)](_0x45e375,_0x5aeb3e??null));}[_0x58e4e4(0x1dd)](){const _0x3133b8=_0x58e4e4;let _0x1d28c0=this[_0x3133b8(0x243)];this[_0x3133b8(0x243)]=null,this[_0x3133b8(0x1b6)](),_0x1d28c0==null||_0x1d28c0[_0x3133b8(0x125)]();}[_0x58e4e4(0x325)](){const _0x339c06=_0x58e4e4;this['_menuManagerService'][_0x339c06(0x215)]({[_0x134022[_0x339c06(0x312)]]:{[U['id']]:{'order':0x4,'menuItemFactory':Ir}}}),this[_0x339c06(0x302)]['registerFeatureMenu'](_0x43df04[_0x339c06(0x1aa)],(_0x3b66b1,_0x234881,_0x1503ee,_0x193848)=>[{'label':this['_localeService']['t']('sheets-chart-ui.common.editChart'),'index':0x0,'commandId':H['id'],'commandParams':{'unitId':_0x3b66b1,'subUnitId':_0x234881,'drawingId':_0x1503ee},'disable':_0x193848!==_0x43df04[_0x339c06(0x1aa)]},{'label':this['_localeService']['t'](_0x339c06(0x38f)),'index':0x1,'commandId':_0x52fe4a['id'],'commandParams':{'unitId':_0x3b66b1,'drawings':[{'unitId':_0x3b66b1,'subUnitId':_0x234881,'drawingId':_0x1503ee,'drawingType':_0x193848}]},'disable':!0x1}],_0x339c06(0x3bf));}[_0x58e4e4(0x2f3)](){const _0x5b9546=_0x58e4e4;this[_0x5b9546(0x243)]=this[_0x5b9546(0x36c)]['open']({'id':Ci,'header':{'title':this[_0x5b9546(0x242)]['t']('sheets-chart-ui.common.editChart')},'children':{'label':Ci},'onClose':()=>{this['_sidebarDisposable']=null,this['_clearPanelState']();}});}[_0x58e4e4(0x1b6)](){const _0x4c3332=_0x58e4e4;this[_0x4c3332(0x339)]['setChartEditorOpen'](!0x1),this[_0x4c3332(0x339)]['clearPanelRoute'](),this[_0x4c3332(0x25d)]['activeChartModel']&&this[_0x4c3332(0x25d)][_0x4c3332(0x1ef)](null),this['_drawingManagerService'][_0x4c3332(0x1ed)](null),this[_0x4c3332(0x1b5)][_0x4c3332(0x332)](_0x654e75,!0x1);}};Gi=q([K(0x0,_0x1e7a38),K(0x1,_0x569e33(_0x1e33a9)),K(0x2,_0x569e33(_0x14cdc6)),K(0x3,_0x26ea5c),K(0x4,_0x569e33(_0x4b4fef)),K(0x5,_0x10f119),K(0x6,Y),K(0x7,_0x2eb5c4),K(0x8,_0x569e33(_0x37903c))],Gi);let Ki=class extends _0x7b52dc{constructor(_0x568490,_0x1c4521,_0x2ab6a1,_0x16d124,_0xee0ae9){const _0x129188=_0x58e4e4;super(),this['_sheetSkeletonService']=_0x568490,this[_0x129188(0x376)]=_0x1c4521,this['_sheetDrawingService']=_0x2ab6a1,this['_chartModelService']=_0x16d124,this[_0x129188(0x392)]=_0xee0ae9,W(this,_0x129188(0x188),void 0x0),this[_0x129188(0x396)]();}get[_0x58e4e4(0x216)](){const _0x513ca8=_0x58e4e4;return this[_0x513ca8(0x2c1)]['getFocusDrawings']();}[_0x58e4e4(0x396)](){const _0x4a9b44=_0x58e4e4;this[_0x4a9b44(0x105)](this[_0x4a9b44(0x376)][_0x4a9b44(0x269)]({'id':_0x1a849f,'onBeforeCopyFocusedObject':(_0x45ae04,_0xb9b814,_0x2be47c)=>{const _0x35369f=_0x4a9b44;this[_0x35369f(0x188)]=null;let _0x1b2ac1=this[_0x35369f(0x216)]['filter'](_0x4b9f17=>this['_isOwnedChart'](_0x4b9f17));return _0x1b2ac1['length']!==0x0&&(this[_0x35369f(0x188)]={'unitId':_0x45ae04,'subUnitId':_0xb9b814,'copyType':_0x2be47c,'drawings':_0x1b2ac1},!0x0);},'onBeforeCopy':(_0x409c44,_0x181c45,_0x32c76b,_0x57cde8)=>{const _0x3c6a7b=_0x4a9b44;this['_copyInfo']=null,this[_0x3c6a7b(0x212)](_0x409c44,_0x181c45,_0x32c76b,_0x57cde8);},'onPasteCells':(_0x388ebc,_0x18da43,_0x5a7c3c,_0x51a585)=>{const _0x3d413c=_0x4a9b44;if(!_0x51a585[_0x3d413c(0x1b3)]||!_0x388ebc||!this[_0x3d413c(0x188)])return{'redos':[],'undos':[]};let {pasteType:_0x333071}=_0x51a585;return _0x333071===_0x105d29[_0x3d413c(0x1ec)]?this['_generatePasteMutations'](_0x18da43,this[_0x3d413c(0x188)][_0x3d413c(0x25e)]===_0x5d9d74[_0x3d413c(0x192)]):{'redos':[],'undos':[]};}}));}[_0x58e4e4(0x212)](_0x71f907,_0x485c6e,_0x1f51c6,_0x36363b){const _0x48eb6a=_0x58e4e4;let _0x37c82b=this[_0x48eb6a(0x130)]['getSkeleton'](_0x71f907,_0x485c6e);if(!_0x37c82b)return;let _0x2f7ca6=_0x5067a4(_0x37c82b,_0x1f51c6);if(!_0x2f7ca6)return;let {startX:_0x26e1da,endX:_0x529c1d,startY:_0x287de1,endY:_0x1997f3}=_0x2f7ca6,_0x4b0406=this[_0x48eb6a(0x2c1)][_0x48eb6a(0x28e)](_0x71f907,_0x485c6e),_0x110e5c=[];for(let [_0x7a1c50,_0x1020bd]of Object[_0x48eb6a(0x311)](_0x4b0406)){if(!this['_isOwnedChart'](_0x1020bd))continue;let {transform:_0x140226}=_0x1020bd;if(!_0x140226)continue;let {left:_0x39f628=0x0,top:_0x594b38=0x0,width:_0x58534b=0x0,height:_0x456b8c=0x0}=_0x140226;_0x26e1da<=_0x39f628&&_0x529c1d>=_0x39f628+_0x58534b&&_0x287de1<=_0x594b38&&_0x1997f3>=_0x594b38+_0x456b8c&&_0x110e5c[_0x48eb6a(0x14a)](_0x1020bd);}_0x110e5c[_0x48eb6a(0x334)]>0x0&&(this[_0x48eb6a(0x188)]={'unitId':_0x71f907,'subUnitId':_0x485c6e,'copyType':_0x36363b,'copyRange':_0x1f51c6,'drawings':_0x110e5c});}['_isOwnedChart'](_0x1919ea){const _0x5de08a=_0x58e4e4;return _0x1919ea[_0x5de08a(0x2c2)]===_0x43df04[_0x5de08a(0x1aa)]&&this[_0x5de08a(0x392)][_0x5de08a(0x141)](_0x1919ea[_0x5de08a(0x380)],_0x1919ea['drawingId'])===_0x1919ea[_0x5de08a(0x28c)];}[_0x58e4e4(0x393)](_0x3fc118,_0x10a7f5){const _0x36587f=_0x58e4e4;let {unitId:_0x1e14ad,subUnitId:_0x5bb887,range:_0x3da128}=_0x3fc118,_0x1e3dce=this[_0x36587f(0x130)][_0x36587f(0x1a8)](_0x1e14ad,_0x5bb887);if(!_0x1e3dce)return{'redos':[],'undos':[]};let _0x40f56a=_0x5ebcb8(_0x3da128),{unitId:_0x4445ea,subUnitId:_0x41b72f,copyRange:_0xa62d79,drawings:_0xc94191}=this[_0x36587f(0x188)],_0x4b72c5=this[_0x36587f(0x130)]['getSkeleton'](_0x4445ea,_0x41b72f);if(!_0x4b72c5)return{'redos':[],'undos':[]};let _0x4b4769=[],_0x45e7cc=[];for(let _0x1572d7 of _0xc94191){let {drawingId:_0xc98f43,transform:_0x210195,sheetTransform:_0x652d90}=_0x1572d7,_0x58e6c6=this['_chartModelService']['getChartModel'](_0xc98f43);if(!_0x58e6c6||!_0x210195||!_0x652d90)continue;let _0x3f8120=this[_0x36587f(0x2f0)]({'transform':_0x210195,'sheetTransform':_0x652d90},{'skeleton':_0x4b72c5,'range':_0xa62d79},{'skeleton':_0x1e3dce,'range':_0x40f56a});if(_0x10a7f5){let {redos:_0x129f54,undos:_0x553e3e}=this['_generateCutPasteMutations']({'fromUnitId':_0x4445ea,'fromSubUnitId':_0x41b72f,'toUnitId':_0x1e14ad,'toSubUnitId':_0x5bb887,'drawing':_0x1572d7,'newTransforms':_0x3f8120},_0x58e6c6);_0x4b4769[_0x36587f(0x14a)](..._0x129f54),_0x45e7cc[_0x36587f(0x14a)](..._0x553e3e);continue;}let {redos:_0x23f8a6,undos:_0x1f72bd}=this[_0x36587f(0x14c)]({'toUnitId':_0x1e14ad,'toSubUnitId':_0x5bb887,'drawing':_0x1572d7,'newTransforms':_0x3f8120},_0x58e6c6);_0x4b4769['push'](..._0x23f8a6),_0x45e7cc['push'](..._0x1f72bd);}return{'redos':_0x4b4769,'undos':_0x45e7cc};}[_0x58e4e4(0x26a)](_0x14fd3f,_0x507eba){const _0x379140=_0x58e4e4;let {fromUnitId:_0x547142,fromSubUnitId:_0x3f23b7,toUnitId:_0x458e5b,toSubUnitId:_0x2a9f23,drawing:_0x49b947,newTransforms:_0x10aa41}=_0x14fd3f,_0x11a46f={..._0x49b947,'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'transform':_0x10aa41[_0x379140(0x361)],'sheetTransform':_0x10aa41[_0x379140(0x2a8)]};if(_0x458e5b===_0x547142&&_0x2a9f23===_0x3f23b7){let {redo:_0x3f81a5,undo:_0x5928b1,objects:_0x5d398f}=this[_0x379140(0x2c1)][_0x379140(0x169)]([_0x11a46f]);return{'redos':[{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764[_0x379140(0x282)],'op':_0x3f81a5,'objects':_0x5d398f}}],'undos':[{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764[_0x379140(0x282)],'op':_0x5928b1,'objects':_0x5d398f}}]};}{let _0x2b73fd=this['_sheetDrawingService'][_0x379140(0x262)]([_0x49b947]),_0x4efb46=this[_0x379140(0x2c1)][_0x379140(0x1ea)]([_0x11a46f]),_0x57e7eb=this[_0x379140(0x392)][_0x379140(0x370)](_0x507eba['id']);if(!_0x57e7eb)return{'redos':[],'undos':[]};let {chartType:_0x3c990a,context:_0x3e98a6,style:_0x53bfe8,dataAggregation:_0x3c7a89}=_0x507eba['serialize']();return{'redos':[{'id':_0x189847['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'type':_0x398764[_0x379140(0x11d)],'op':_0x2b73fd[_0x379140(0x2f5)],'objects':_0x2b73fd[_0x379140(0x1d3)]}},{'id':_0x13af68['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'chartId':_0x49b947['drawingId']}},{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764[_0x379140(0x20a)],'op':_0x4efb46[_0x379140(0x2f5)],'objects':_0x4efb46['objects']}},{'id':_0x550a74['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'chartId':_0x49b947[_0x379140(0x2dc)],'chartType':_0x3c990a,..._0x589193(_0x57e7eb),'context':_0x3e98a6,'style':_0x53bfe8,'dataAggregation':_0x3c7a89}}],'undos':[{'id':_0x189847['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'type':_0x398764[_0x379140(0x20a)],'op':_0x2b73fd[_0x379140(0x2d2)],'objects':_0x2b73fd[_0x379140(0x1d3)]}},{'id':_0x550a74['id'],'params':{'unitId':_0x547142,'subUnitId':_0x3f23b7,'chartId':_0x49b947[_0x379140(0x2dc)],'chartType':_0x3c990a,..._0x589193(_0x57e7eb),'context':_0x3e98a6,'style':_0x53bfe8,'dataAggregation':_0x3c7a89}},{'id':_0x189847['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'type':_0x398764['REMOVE'],'op':_0x4efb46['undo'],'objects':_0x4efb46['objects']}},{'id':_0x13af68['id'],'params':{'unitId':_0x458e5b,'subUnitId':_0x2a9f23,'chartId':_0x49b947['drawingId']}}]};}}[_0x58e4e4(0x14c)](_0x31bc9b,_0x300d8e){const _0x1ea222=_0x58e4e4;let {toUnitId:_0x1e6b8e,toSubUnitId:_0x27b205,drawing:_0x8f4c92,newTransforms:_0xb686af}=_0x31bc9b,_0x329e96=_0x5120c1(),_0x1d9b76={..._0x8f4c92,'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'drawingId':_0x329e96,'transform':_0xb686af['transform'],'sheetTransform':_0xb686af[_0x1ea222(0x2a8)]},{redo:_0xcea574,undo:_0x3df2c8,objects:_0x5aaa1b}=this['_sheetDrawingService'][_0x1ea222(0x1ea)]([_0x1d9b76]),_0x535430=this['_sheetsChartService'][_0x1ea222(0x370)](_0x300d8e['id']);if(!_0x535430)return{'redos':[],'undos':[]};let {chartType:_0x4dc561,context:_0x11d4fe,style:_0x3e36dc,dataAggregation:_0x536441}=_0x300d8e[_0x1ea222(0x373)]();return{'redos':[{'id':_0x189847['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'type':_0x398764[_0x1ea222(0x20a)],'op':_0xcea574,'objects':_0x5aaa1b}},{'id':_0x550a74['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'chartId':_0x329e96,'chartType':_0x4dc561,..._0x589193(_0x535430),'context':_0x11d4fe,'style':_0x3e36dc,'dataAggregation':_0x536441}}],'undos':[{'id':_0x189847['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'type':_0x398764[_0x1ea222(0x11d)],'op':_0x3df2c8,'objects':_0x5aaa1b}},{'id':_0x13af68['id'],'params':{'unitId':_0x1e6b8e,'subUnitId':_0x27b205,'chartId':_0x329e96}}]};}[_0x58e4e4(0x2f0)](_0x2b6106,_0x484986,_0x31a937){const _0x537ff7=_0x58e4e4;let {range:_0x337bbf,skeleton:_0x3f6059}=_0x484986,{range:_0x139093,skeleton:_0x39723a}=_0x31a937,{transform:_0x5c1dfc,sheetTransform:_0x453bf1}=_0x2b6106,_0x3dfc59={..._0x5c1dfc};if(_0x337bbf){let _0x4a1a9b=_0x5067a4(_0x3f6059,_0x337bbf),_0x4fc488=_0x5067a4(_0x39723a,_0x139093);if(_0x4a1a9b&&_0x4fc488){let _0xc24fd5=_0x4fc488[_0x537ff7(0x11c)]-_0x4a1a9b['startX'],_0x50ac2c=_0x4fc488[_0x537ff7(0x2e3)]-_0x4a1a9b[_0x537ff7(0x2e3)];_0x3dfc59['left']=(_0x3dfc59['left']??0x0)+_0xc24fd5,_0x3dfc59[_0x537ff7(0x23a)]=(_0x3dfc59['top']??0x0)+_0x50ac2c;}}else{let _0x1a89dc=_0x5067a4(_0x39723a,_0x139093);_0x3dfc59[_0x537ff7(0x270)]=_0x1a89dc==null?void 0x0:_0x1a89dc['startX'],_0x3dfc59['top']=_0x1a89dc==null?void 0x0:_0x1a89dc[_0x537ff7(0x2e3)];}return{'transform':_0x3dfc59,'sheetTransform':_0x53cf80(_0x3dfc59,_0x39723a)??_0x453bf1};}};Ki=q([K(0x0,_0x569e33(_0x2f70f2)),K(0x1,_0x569e33(_0x246f06)),K(0x2,_0x569e33(_0xcf65a5)),K(0x3,_0x569e33(_0x1e33a9)),K(0x4,_0x569e33(_0x5b7264))],Ki);let qi=class extends _0x7b52dc{constructor(_0x42bd26,_0x2d5edf,_0x1d67d9,_0x2d3dad){const _0x4a5ec8=_0x58e4e4;super(),this[_0x4a5ec8(0x116)]=_0x42bd26,this[_0x4a5ec8(0x242)]=_0x2d5edf,this[_0x4a5ec8(0x245)]=_0x1d67d9,this[_0x4a5ec8(0x392)]=_0x2d3dad,this['_initPermission']();}[_0x58e4e4(0x2e1)](){const _0x23b9d5=_0x58e4e4;this[_0x23b9d5(0x105)](this[_0x23b9d5(0x116)][_0x23b9d5(0x222)](_0x44b526=>{const _0x1937ea=_0x23b9d5;let _0x1c8354,_0x16eba7;if(_0x44b526['id']===_0x467e05['id']){let _0x350acd=_0x44b526[_0x1937ea(0x2e6)];_0x1c8354=_0x350acd['unitId'],_0x16eba7=_0x350acd[_0x1937ea(0x28c)];}else{if(_0x44b526['id']===_0x22f7cc['id']||_0x44b526['id']===_0x112901['id']){let _0x53f5e9=_0x44b526[_0x1937ea(0x2e6)];_0x1c8354=_0x53f5e9['unitId'],_0x16eba7=this[_0x1937ea(0x392)][_0x1937ea(0x141)](_0x53f5e9[_0x1937ea(0x380)],_0x53f5e9[_0x1937ea(0x163)]);}}_0x1c8354&&_0x16eba7&&(this['_sheetPermissionCheckController']['permissionCheckWithoutRange']({'workbookTypes':[_0x554cec],'worksheetTypes':[_0x32625b]},_0x1c8354,_0x16eba7)||this[_0x1937ea(0x245)][_0x1937ea(0x360)](this[_0x1937ea(0x242)]['t']('sheets-chart-ui.permission.editErr')));}));}};qi=q([K(0x0,_0x569e33(_0x10f119)),K(0x1,_0x569e33(_0x37903c)),K(0x2,_0x569e33(_0x47e334)),K(0x3,_0x569e33(_0x5b7264))],qi);let Z=class extends _0x7b52dc{constructor(_0x5e5315,_0x32f971){const _0x58d169=_0x58e4e4;super(),this[_0x58d169(0x171)]=_0x32f971,this[_0x58d169(0x105)](_0x5e5315['register'](this));}[_0x58e4e4(0x209)](_0x3b0a18){const _0x5d6299=_0x58e4e4;return _0x5d6299(0x380)in _0x3b0a18&&'subUnitId'in _0x3b0a18;}[_0x58e4e4(0x2a4)](_0x28fdb8,_0x1d57f6){const _0x27a773=_0x58e4e4;return this[_0x27a773(0x171)][_0x27a773(0x2a4)](_0x28fdb8['getId'](),_0x1d57f6);}};Z=q([K(0x0,_0x569e33(_0x105d73)),K(0x1,_0x569e33(J))],Z);let Q=class extends _0x5bf473{constructor(_0x48ecba=Cr,_0x4a1e56,_0x133aa2,_0x34144d){const _0x478423=_0x58e4e4;super(),this['_config']=_0x48ecba,this[_0x478423(0x172)]=_0x4a1e56,this[_0x478423(0x211)]=_0x133aa2,this[_0x478423(0x116)]=_0x34144d;let {..._0xf0083e}=_0x11a014({},Cr,this[_0x478423(0x309)]);this[_0x478423(0x211)][_0x478423(0x13b)](Sr,_0xf0083e),this[_0x478423(0x176)]();}['onStarting'](){const _0x112e99=_0x58e4e4;let _0x3e4a42=[[Wi],[Y,{'useClass':mi}],[ui,{'useClass':li}],[ni],[J],[Z],[Gi],[ji],[Mi],[Ki],[Ri],[qi]],_0xc8cd1e=[[Wi],[Gi],[Mi],[ji],[Z],[Y],[Ki],[Ri],[qi]];_0x3e4a42['forEach'](_0x3a337c=>this[_0x112e99(0x172)]['add'](_0x3a337c)),_0x1942f9(this[_0x112e99(0x172)],_0xc8cd1e);}['onRendered'](){const _0x1d7e17=_0x58e4e4;var _0x1d80b1;(_0x1d80b1=this[_0x1d7e17(0x172)]['get'](Gi))==null||_0x1d80b1['initPanel']();}['_initCommands'](){const _0x44976f=_0x58e4e4;[U,H]['forEach'](_0x51cf8b=>this[_0x44976f(0x105)](this[_0x44976f(0x116)][_0x44976f(0x2bb)](_0x51cf8b)));}};W(Q,_0x58e4e4(0x2e2),_0xaf509f['UNIVER_SHEET']),W(Q,_0x58e4e4(0x248),_0x58e4e4(0x2c8)),W(Q,'packageName',ki),W(Q,_0x58e4e4(0x2f7),Ai),Q=q([_0x39613b(_0x28eac2,_0x868a1c,_0x15fe35,_0x1dcfa0,_0x4288b5,_0x29b95c,_0x67f924,_0x4484cc,_0x27b4b2,_0x2c7e38),K(0x1,_0x569e33(_0x56051b)),K(0x2,_0x58cb4f),K(0x3,_0x10f119)],Q);const Ji={'scaleX':0x1,'scaleY':0x1};function Yi(_0x36e4e7){const _0xc0bd36=_0x58e4e4;let _0x233857=_0x36e4e7[_0xc0bd36(0x1eb)];return _0x233857 instanceof MouseEvent?_0x233857:void 0x0;}function Xi(_0x14643e){const _0x46b799=_0x58e4e4;let _0x3fa723=_0x14643e[_0x46b799(0x1eb)],_0x1449b5=_0x3fa723==null?void 0x0:_0x3fa723[_0x46b799(0x11f)];return _0x1449b5 instanceof Element?_0x1449b5:void 0x0;}function Zi(_0x55199c){const _0x35ffa1=_0x58e4e4;var _0x5c239a;return(_0x5c239a=Xi(_0x55199c))==null?void 0x0:_0x5c239a[_0x35ffa1(0xff)]();}function Qi(_0x17bf67){const _0x4e4f5e=_0x58e4e4;return _0x17bf67[_0x4e4f5e(0x384)]||_0x17bf67[_0x4e4f5e(0x213)]-_0x17bf67[_0x4e4f5e(0x270)];}function $i(_0x26d55f){const _0x4b0300=_0x58e4e4;return _0x26d55f['height']||_0x26d55f[_0x4b0300(0x35f)]-_0x26d55f['top'];}function ea(_0x403e4d,_0x27f46a){const _0x557a89=_0x58e4e4;let _0x319c2a=_0x403e4d['clientWidth']||(_0x403e4d instanceof HTMLElement?_0x403e4d[_0x557a89(0x21c)]:0x0),_0x251b98=_0x403e4d[_0x557a89(0x303)]||(_0x403e4d instanceof HTMLElement?_0x403e4d[_0x557a89(0x375)]:0x0),_0x4d2d8b=Qi(_0x27f46a),_0x171b61=$i(_0x27f46a);return{'scaleX':_0x319c2a>0x0&&_0x4d2d8b>0x0?_0x4d2d8b/_0x319c2a:Ji[_0x557a89(0x2a6)],'scaleY':_0x251b98>0x0&&_0x171b61>0x0?_0x171b61/_0x251b98:Ji['scaleY']};}function ta(_0x3683ea,_0x17348c,_0x3e7792){const _0x4cc5a5=_0x58e4e4;return{'left':_0x3683ea[_0x4cc5a5(0x270)]+_0x17348c['left']*_0x3e7792['scaleX'],'right':_0x3683ea[_0x4cc5a5(0x270)]+_0x17348c[_0x4cc5a5(0x213)]*_0x3e7792[_0x4cc5a5(0x2a6)],'top':_0x3683ea['top']+_0x17348c[_0x4cc5a5(0x23a)]*_0x3e7792[_0x4cc5a5(0x263)],'bottom':_0x3683ea['top']+_0x17348c[_0x4cc5a5(0x35f)]*_0x3e7792[_0x4cc5a5(0x263)]};}function na(_0xb67c3a){const _0x301210=_0x58e4e4;let _0x506a00=Xi(_0xb67c3a),_0x1b0d1f=_0xb67c3a[_0x301210(0x281)][_0x301210(0x144)];return _0x506a00&&_0x1b0d1f?()=>{let _0x340d42=_0x506a00['getBoundingClientRect']();return ta(_0x340d42,_0x1b0d1f,ea(_0x506a00,_0x340d42));}:()=>{const _0x259abf=_0x301210;let _0x517d2c=Zi(_0xb67c3a);if(_0x517d2c&&_0x1b0d1f)return ta(_0x517d2c,_0x1b0d1f,_0x506a00?ea(_0x506a00,_0x517d2c):Ji);let _0x56bf82=Yi(_0xb67c3a),_0x16ee67=_0x506a00&&_0x517d2c?ea(_0x506a00,_0x517d2c):Ji,_0x1baa26=(_0x56bf82==null?void 0x0:_0x56bf82[_0x259abf(0x36f)])??(_0x517d2c?_0x517d2c['left']+_0xb67c3a[_0x259abf(0x26c)]['x']*_0x16ee67['scaleX']:_0xb67c3a[_0x259abf(0x26c)]['x']),_0xfe09c3=(_0x56bf82==null?void 0x0:_0x56bf82[_0x259abf(0x161)])??(_0x517d2c?_0x517d2c[_0x259abf(0x23a)]+_0xb67c3a[_0x259abf(0x26c)]['y']*_0x16ee67[_0x259abf(0x263)]:_0xb67c3a[_0x259abf(0x26c)]['y']);return{'left':_0x1baa26,'right':_0x1baa26+0x1,'top':_0xfe09c3,'bottom':_0xfe09c3+0x1};};}function ra(_0x7940ed){const _0xad3816=_0x58e4e4;return typeof _0x7940ed==_0xad3816(0x3b8)&&Number[_0xad3816(0x2c5)](_0x7940ed);}function ia(_0x15703d){const _0x25c8e1=_0x58e4e4;if(!_0x15703d||typeof _0x15703d!=_0x25c8e1(0x36d))return!0x0;let {startX:_0x4aab9b,endX:_0x2fee5e,startY:_0x21c362,endY:_0x5c71d9}=_0x15703d;return!ra(_0x4aab9b)||!ra(_0x2fee5e)||!ra(_0x21c362)||!ra(_0x5c71d9)||_0x2fee5e-_0x4aab9b>0x2&&_0x5c71d9-_0x21c362>0x2;}function aa(_0x52e625){const _0x4b0e5a=_0x58e4e4;return _0x52e625[_0x4b0e5a(0x213)]<=_0x52e625[_0x4b0e5a(0x270)]||_0x52e625[_0x4b0e5a(0x35f)]<=_0x52e625[_0x4b0e5a(0x23a)]?!0x1:typeof window>'u'||_0x52e625['right']>0x0&&_0x52e625['bottom']>0x0&&_0x52e625[_0x4b0e5a(0x270)]<window['innerWidth']&&_0x52e625[_0x4b0e5a(0x23a)]<window['innerHeight'];}function oa(_0x18ee35){var _0x52d523;return _0x18ee35==null||(_0x52d523=_0x18ee35['getValue'])==null?void 0x0:_0x52d523['call'](_0x18ee35);}function sa(_0x3e6e4a,_0x2efcd0,_0x4ede13){const _0x152084=_0x58e4e4;let _0x8afbb3=na(_0x3e6e4a),_0x1b145a=oa(_0x2efcd0),_0x2f8eb6=_0x8afbb3(),_0x48d3f7=new _0x251b31(_0x2f8eb6),_0x40be4c=new _0x2329d0(),_0x189a13=!0x1,_0x2398ae=!0x1,_0x501527=_0xc6f781=>ia(_0x1b145a)&&aa(_0xc6f781),_0x378160=()=>{_0x2398ae||_0x189a13||(_0x2398ae=!0x0,queueMicrotask(()=>{if(_0x2398ae=!0x1,!_0x189a13){let _0x59a026=_0x8afbb3();if(!_0x501527(_0x59a026)){_0x4ede13();return;}_0x48d3f7['next'](_0x59a026);}}));};return _0x2efcd0&&_0x40be4c['add'](_0x2efcd0[_0x152084(0x1ca)](_0x1db3b8=>{_0x1b145a=_0x1db3b8,_0x378160();})),typeof window<'u'&&_0x40be4c[_0x152084(0x1c7)](_0x3f8f2e(_0x1c4ba6(window,_0x152084(0x25f),{'capture':!0x0}),_0x1c4ba6(window,_0x152084(0x25a)))[_0x152084(0x3b1)](_0xc9a711(0x10))[_0x152084(0x1ca)](_0x378160)),{'initialRect':_0x2f8eb6,'anchorRect$':_0x48d3f7['asObservable'](),'visible':_0x501527(_0x2f8eb6),'dispose':()=>{const _0x3c3f7e=_0x152084;_0x189a13=!0x0,_0x40be4c['dispose'](),_0x48d3f7[_0x3c3f7e(0x1f9)]();}};}const ca=_0x58e4e4(0x2e5);let la=class extends _0x7b52dc{constructor(_0x3a599c,_0x5d3611,_0x43bb17,_0x2bd7f9,_0x1a7cf8,_0x319f92,_0x4dc87e,_0x33b3bf,_0x2e49d9){const _0x299c73=_0x58e4e4;super(),this['_chartModelService']=_0x3a599c,this[_0x299c73(0x28f)]=_0x5d3611,this[_0x299c73(0x140)]=_0x43bb17,this['_sheetCanvasPopManagerService']=_0x2bd7f9,this[_0x299c73(0x1c9)]=_0x1a7cf8,this[_0x299c73(0x250)]=_0x319f92,this['_adapterRegistry']=_0x4dc87e,this[_0x299c73(0x116)]=_0x33b3bf,this[_0x299c73(0x172)]=_0x2e49d9,W(this,'_popupDisposable',null),W(this,'_popupChartId',null),W(this,'_popupSessionKey',null),this[_0x299c73(0x122)](),this[_0x299c73(0x38b)]();}[_0x58e4e4(0x125)](){const _0x41170e=_0x58e4e4;this[_0x41170e(0x314)](),super[_0x41170e(0x125)]();}[_0x58e4e4(0x122)](){const _0x5c81bb=_0x58e4e4;let _0x57e2ec=_0xb3abd({'chartUIService':this['_chartUIService'],'getHostAdapter':_0x5a4dba=>{const _0x3badff=_0x29f5;let _0x39d0e7=this[_0x3badff(0x25d)][_0x3badff(0x2aa)](_0x5a4dba['chartId']);if(_0x39d0e7&&_0x5a4dba['subUnitId'])return new _0x47dff2(_0x39d0e7,new _0x4cd08c({'unitId':_0x5a4dba[_0x3badff(0x380)],'subUnitId':_0x5a4dba[_0x3badff(0x28c)],'chartId':_0x5a4dba[_0x3badff(0x1f8)],'injector':this[_0x3badff(0x172)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x4f93e6=>{const _0x2b02f0=_0x29f5;let {unitId:_0x34274e,subUnitId:_0x3b600c,drawingId:_0x2213e9,chartId:_0x1a7f34}=_0x4f93e6,_0x3a7173=_0xb7f32b(_0x4f93e6[_0x2b02f0(0x11f)]);this[_0x2b02f0(0x116)][_0x2b02f0(0x1ee)](H['id'],{'unitId':_0x34274e,'subUnitId':_0x3b600c??'','drawingId':_0x2213e9??_0x1a7f34,..._0x3a7173?{'route':_0x3a7173}:{}});}});this[_0x5c81bb(0x105)](this[_0x5c81bb(0x2fd)][_0x5c81bb(0x3bd)](ca,_0x57e2ec));}['_subscribeChartEvents'](){const _0x318b8b=_0x58e4e4;this[_0x318b8b(0x105)](this[_0x318b8b(0x25d)][_0x318b8b(0x283)][_0x318b8b(0x1ca)](_0x212ea6=>{const _0x436457=_0x318b8b;let _0x517d4b=new _0x2329d0();_0x517d4b[_0x436457(0x1c7)](this[_0x436457(0x28f)]['on'](_0x212ea6['id'],_0x436457(0x1cf),_0x145bf6=>{this['_openFloatMenu'](_0x212ea6['id'],_0x145bf6);})),_0x517d4b[_0x436457(0x1c7)](this[_0x436457(0x28f)]['on'](_0x212ea6['id'],_0x436457(0x295),()=>{const _0x46315b=_0x436457;this[_0x46315b(0x3a2)](_0x212ea6['id']);})),_0x212ea6['onDispose'](()=>{const _0x2b83d5=_0x436457;_0x517d4b[_0x2b83d5(0x125)](),this[_0x2b83d5(0x2c9)](_0x212ea6['id']);}),this[_0x436457(0x105)](_0x517d4b);})),this['disposeWithMe'](_0x485af5([this[_0x318b8b(0x25d)][_0x318b8b(0x288)],this[_0x318b8b(0x250)][_0x318b8b(0x255)]])[_0x318b8b(0x1ca)](([_0x42f0b3,_0x30b7ef])=>{const _0x46e3db=_0x318b8b;(!_0x30b7ef||this[_0x46e3db(0x34a)]&&(_0x42f0b3==null?void 0x0:_0x42f0b3['id'])!==this[_0x46e3db(0x34a)])&&this['_closePopup']();})),this[_0x318b8b(0x105)](this['_sheetCanvasFloatDomManagerService'][_0x318b8b(0x1e8)][_0x318b8b(0x1ca)](({id:_0x1ca026})=>{this['_clearSelectedTarget'](_0x1ca026);})),this[_0x318b8b(0x105)](this[_0x318b8b(0x1c9)][_0x318b8b(0x364)][_0x318b8b(0x1ca)](({id:_0x478500})=>{this['_clearSelectedTarget'](_0x478500);})),this[_0x318b8b(0x105)](this[_0x318b8b(0x140)][_0x318b8b(0x385)][_0x318b8b(0x1ca)](_0x982758=>{const _0x1371f3=_0x318b8b;this[_0x1371f3(0x2c9)](_0x982758);}));}['_openEditPanelByDoubleClick'](_0xdb21d9){const _0x31ced8=_0x58e4e4;if(this[_0x31ced8(0x250)]['chartEditorOpen'])return;let _0x3b4b16=this['_chartModelService']['getChartModel'](_0xdb21d9),_0xfef217=this['_sheetCanvasFloatDomManagerService'][_0x31ced8(0x1c0)](_0xdb21d9);_0x3b4b16&&_0xfef217&&this[_0x31ced8(0x116)][_0x31ced8(0x1ee)](H['id'],{'unitId':_0xfef217[_0x31ced8(0x380)],'subUnitId':_0xfef217['subUnitId']??'','drawingId':_0xdb21d9});}['_openFloatMenu'](_0x91515e,_0x476609){const _0x5dd236=_0x58e4e4;if(!this[_0x5dd236(0x250)][_0x5dd236(0x2a5)](_0x91515e))return;let _0x2e5f38=this[_0x5dd236(0x25d)][_0x5dd236(0x2aa)](_0x91515e),_0x5156d3=_0x2e5f38?Gr(_0x2e5f38,_0x476609['hit']):void 0x0;if(!_0x5156d3){this['_chartUIService'][_0x5dd236(0x319)](),this['_closePopup']();return;}let _0x3cbcaf=this[_0x5dd236(0x1c9)][_0x5dd236(0x1c0)](_0x91515e);if(!_0x2e5f38||!_0x3cbcaf){this['_chartUIService'][_0x5dd236(0x319)](),this[_0x5dd236(0x314)]();return;}let _0x241b05=JSON[_0x5dd236(0x3c2)]([_0x3cbcaf[_0x5dd236(0x380)],_0x3cbcaf[_0x5dd236(0x28c)],_0x91515e,_0x5156d3[_0x5dd236(0x11f)]]);if(this[_0x5dd236(0x2a9)]&&this['_popupSessionKey']===_0x241b05||(this[_0x5dd236(0x250)][_0x5dd236(0x267)](_0x91515e,_0x5156d3[_0x5dd236(0x2fb)]),this[_0x5dd236(0x314)](),!_0x5156d3[_0x5dd236(0x1f4)]))return;let _0x54efd0=sa(_0x476609,_0x3cbcaf['position$'],()=>this[_0x5dd236(0x39f)](_0x91515e));if(!_0x54efd0['visible']){_0x54efd0[_0x5dd236(0x125)]();return;}let _0x585ab2=this[_0x5dd236(0x302)][_0x5dd236(0x355)](_0x54efd0[_0x5dd236(0x324)],_0x54efd0['anchorRect$'],{'componentKey':_0x99cfd,'constrainToCanvas':!0x0,'direction':_0x5dd236(0x327),'offset':[0x0,0x8],'extraProps':{'unitId':_0x3cbcaf[_0x5dd236(0x380)],'subUnitId':_0x3cbcaf[_0x5dd236(0x28c)],'chartId':_0x91515e,'drawingId':_0x91515e,'element':_0x476609['hit'],'target':_0x5156d3['target'],'adapterKey':ca}},_0x3cbcaf[_0x5dd236(0x380)],_0x3cbcaf[_0x5dd236(0x28c)])??null;if(!_0x585ab2){_0x54efd0[_0x5dd236(0x125)]();return;}let _0x5ef71f=new _0x2329d0();_0x5ef71f['add'](_0x585ab2),_0x5ef71f['add'](_0x54efd0),this[_0x5dd236(0x2a9)]=_0x5ef71f,this[_0x5dd236(0x34a)]=_0x91515e,this[_0x5dd236(0x272)]=_0x241b05;}[_0x58e4e4(0x314)](){const _0x925358=_0x58e4e4;var _0x34c82a;(_0x34c82a=this[_0x925358(0x2a9)])==null||_0x34c82a[_0x925358(0x125)](),this[_0x925358(0x2a9)]=null,this[_0x925358(0x34a)]=null,this[_0x925358(0x272)]=null;}[_0x58e4e4(0x2c9)](_0x245293){const _0x12467f=_0x58e4e4;(this[_0x12467f(0x250)][_0x12467f(0x2a5)](_0x245293)||this['_popupChartId']===_0x245293)&&(this[_0x12467f(0x250)]['clearPanelRoute'](),this[_0x12467f(0x34a)]===_0x245293&&this[_0x12467f(0x314)]());}[_0x58e4e4(0x39f)](_0x5f2a59){const _0x25be77=_0x58e4e4;this['_clearSelectedTarget'](_0x5f2a59),this['_chartUIService'][_0x25be77(0x2a5)](_0x5f2a59)&&(this['_chartRenderService']['setElementEditMode'](_0x5f2a59,!0x1),this[_0x25be77(0x28f)]['setElementEditMode'](_0x5f2a59,!0x0));}};la=q([K(0x0,_0x569e33(_0x1e33a9)),K(0x1,_0x569e33(J)),K(0x2,ui),K(0x3,_0x569e33(_0x4b4fef)),K(0x4,_0x569e33(_0x351035)),K(0x5,Y),K(0x6,_0x569e33(_0x1995df)),K(0x7,_0x10f119),K(0x8,_0x569e33(_0x56051b))],la);let ua=class extends _0x7b52dc{constructor(_0x59c231,_0x1eea01){const _0xf64a58=_0x58e4e4;super(),this[_0xf64a58(0x387)]=_0x59c231,this[_0xf64a58(0x2b7)]=_0x1eea01,this['_registerIcons'](),this[_0xf64a58(0x308)]();}[_0x58e4e4(0x1bf)](){const _0x15f05c=_0x58e4e4;this[_0x15f05c(0x105)](this['_iconManager']['register']({'PenIcon':_0x463fa8}));}[_0x58e4e4(0x308)](){const _0x145fd0=_0x58e4e4;[[Ci,Si]][_0x145fd0(0x2db)](([_0x2260f2,_0x3dc024])=>{const _0x160831=_0x145fd0;this['disposeWithMe'](this[_0x160831(0x387)][_0x160831(0x3bd)](_0x2260f2,_0x3dc024));});}};ua=q([K(0x0,_0x569e33(_0x122d09)),K(0x1,_0x569e33(_0x501d02))],ua);let $=class extends _0x5bf473{constructor(_0x9f51ad=Cr,_0x3ae84d,_0x127ceb,_0x2c58e4){const _0x1852ab=_0x58e4e4;super(),this['_config']=_0x9f51ad,this[_0x1852ab(0x172)]=_0x3ae84d,this[_0x1852ab(0x211)]=_0x127ceb,this[_0x1852ab(0x116)]=_0x2c58e4,W(this,_0x1852ab(0x128),void 0x0);let {..._0xfbd542}=_0x11a014({},Cr,this[_0x1852ab(0x309)]);this[_0x1852ab(0x128)]=_0xfbd542,this['_configService'][_0x1852ab(0x13b)](Sr,_0xfbd542),this[_0x1852ab(0x176)]();}[_0x58e4e4(0x22b)](){const _0x1e3e1a=_0x58e4e4;this[_0x1e3e1a(0x172)][_0x1e3e1a(0x1c7)]([ua]),this[_0x1e3e1a(0x172)][_0x1e3e1a(0x368)](ua);let _0x8f25f8=this['_injector'],_0xe151a9=[[Y,{'useClass':mi}],[ui,{'useClass':li}],[ni],[J],[Z],[Oi],[ji],[Mi],[Ki],[Ri],[qi]],_0x50e3d6=[[Oi],[Mi],[ji],[Z],[Y],[Ki],[Ri],[qi]];this['_resolvedConfig'][_0x1e3e1a(0x1d5)]&&(_0xe151a9['push']([la]),_0x50e3d6[_0x1e3e1a(0x14a)]([la])),_0xe151a9['forEach'](_0x4be033=>_0x8f25f8[_0x1e3e1a(0x1c7)](_0x4be033)),_0x1942f9(this[_0x1e3e1a(0x172)],_0x50e3d6);}[_0x58e4e4(0x10f)](){const _0x5be627=_0x58e4e4;var _0x571cd9;(_0x571cd9=this[_0x5be627(0x172)][_0x5be627(0x368)](Oi))==null||_0x571cd9[_0x5be627(0x1f6)]();}['_initCommands'](){const _0x18acf0=_0x58e4e4;[U,Dr,Or,kr,Ar,H,wr][_0x18acf0(0x2db)](_0x51e7c6=>this[_0x18acf0(0x105)](this[_0x18acf0(0x116)][_0x18acf0(0x2bb)](_0x51e7c6)));}};W($,_0x58e4e4(0x2e2),_0xaf509f[_0x58e4e4(0x16d)]),W($,_0x58e4e4(0x248),'UniverSheetsChartUIPlugin'),W($,_0x58e4e4(0x285),ki),W($,_0x58e4e4(0x2f7),Ai),$=q([_0x39613b(_0x28eac2,_0x868a1c,_0x15fe35,_0x1dcfa0,_0x4288b5,_0x690a4d,_0x67f924,_0x5941b2,_0x2fb4ea),K(0x1,_0x569e33(_0x56051b)),K(0x2,_0x58cb4f),K(0x3,_0x10f119)],$);export{H as ChartOpenPanelOperation,J as ChartRenderService,Y as ISheetsChartUIService,Sr as SHEETS_CHART_UI_PLUGIN_CONFIG_KEY,Oi as SheetsChartUIController,Hr as SheetsChartUIMenuSchema,mi as SheetsChartUIService,Q as UniverSheetsChartMobileUIPlugin,$ as UniverSheetsChartUIPlugin,sa as createChartElementPopupAnchorObserver};