@univerjs-pro/sheets-chart-ui 1.0.0-beta.0 → 1.0.0-beta.1

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 (88) 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.css +2 -2
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -1
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -1
  46. package/lib/locale/en-US.js +1 -1
  47. package/lib/locale/es-ES.js +1 -1
  48. package/lib/locale/fa-IR.js +1 -1
  49. package/lib/locale/fr-FR.js +1 -1
  50. package/lib/locale/id-ID.js +1 -1
  51. package/lib/locale/it-IT.js +1 -1
  52. package/lib/locale/ja-JP.js +1 -1
  53. package/lib/locale/ko-KR.js +1 -1
  54. package/lib/locale/pl-PL.js +1 -1
  55. package/lib/locale/pt-BR.js +1 -1
  56. package/lib/locale/ru-RU.js +1 -1
  57. package/lib/locale/sk-SK.js +1 -1
  58. package/lib/locale/vi-VN.js +1 -1
  59. package/lib/locale/zh-CN.js +1 -1
  60. package/lib/locale/zh-HK.js +1 -1
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/controllers/ui.controller.d.ts +2 -3
  63. package/lib/types/menu/chart-context-menu.d.ts +0 -1
  64. package/lib/types/services/chart-image-export-provider.d.ts +15 -0
  65. package/lib/types/services/sheet-chart-host.d.ts +3 -0
  66. package/lib/types/views/chart-edit-panel/ChartEditPanel.d.ts +1 -1
  67. package/lib/types/views/chart-menu/chart-menu-factory.d.ts +2 -1
  68. package/lib/umd/index.js +1 -1
  69. package/lib/umd/locale/ar-SA.js +1 -1
  70. package/lib/umd/locale/ca-ES.js +1 -1
  71. package/lib/umd/locale/de-DE.js +1 -1
  72. package/lib/umd/locale/en-US.js +1 -1
  73. package/lib/umd/locale/es-ES.js +1 -1
  74. package/lib/umd/locale/fa-IR.js +1 -1
  75. package/lib/umd/locale/fr-FR.js +1 -1
  76. package/lib/umd/locale/id-ID.js +1 -1
  77. package/lib/umd/locale/it-IT.js +1 -1
  78. package/lib/umd/locale/ja-JP.js +1 -1
  79. package/lib/umd/locale/ko-KR.js +1 -1
  80. package/lib/umd/locale/pl-PL.js +1 -1
  81. package/lib/umd/locale/pt-BR.js +1 -1
  82. package/lib/umd/locale/ru-RU.js +1 -1
  83. package/lib/umd/locale/sk-SK.js +1 -1
  84. package/lib/umd/locale/vi-VN.js +1 -1
  85. package/lib/umd/locale/zh-CN.js +1 -1
  86. package/lib/umd/locale/zh-HK.js +1 -1
  87. package/lib/umd/locale/zh-TW.js +1 -1
  88. package/package.json +18 -18
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2c7e3b=_0x389a;(function(_0x1600fe,_0x36a054){const _0x13c0e8=_0x389a,_0x3044bf=_0x1600fe();while(!![]){try{const _0x1955ab=parseInt(_0x13c0e8(0x47d))/0x1+parseInt(_0x13c0e8(0x3d9))/0x2+-parseInt(_0x13c0e8(0x1f7))/0x3+parseInt(_0x13c0e8(0x2cd))/0x4+-parseInt(_0x13c0e8(0x424))/0x5+-parseInt(_0x13c0e8(0x3c0))/0x6*(-parseInt(_0x13c0e8(0x43c))/0x7)+-parseInt(_0x13c0e8(0x3fa))/0x8*(parseInt(_0x13c0e8(0x24d))/0x9);if(_0x1955ab===_0x36a054)break;else _0x3044bf['push'](_0x3044bf['shift']());}catch(_0x51380c){_0x3044bf['push'](_0x3044bf['shift']());}}}(_0x3861,0x6d58f),Object[_0x2c7e3b(0x493)](exports,Symbol[_0x2c7e3b(0x3b2)],{'value':_0x2c7e3b(0x35b)}));let e=require('@univerjs-pro/sheets-chart'),t=require('@univerjs/core'),n=require('@univerjs/drawing'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs/sheets-drawing-ui'),a=require('@univerjs/sheets-ui'),o=require('@univerjs/ui'),s=require('rxjs'),c=require('@univerjs-pro/engine-chart'),l=require('@univerjs/drawing-ui'),u=require('@univerjs/engine-render'),d=require('@univerjs-pro/chart-ui'),f=require('@univerjs/sheets'),p=require('@univerjs/engine-formula'),m=require('react'),h=require('@univerjs/design'),g=require('@univerjs/sheets-formula-ui'),_=require('react/jsx-runtime'),v=require('@univerjs-pro/license'),ee=require('@univerjs/icons');const y=_0x2c7e3b(0x3b7),b={'enableChartElementFloatMenu':!0x0},x={'type':t[_0x2c7e3b(0x494)][_0x2c7e3b(0x229)],'id':_0x2c7e3b(0x357),'handler'(){return!0x0;}},S={'type':t[_0x2c7e3b(0x494)][_0x2c7e3b(0x229)],'id':_0x2c7e3b(0x2c2),'handler'(){return!0x0;}};function C(_0x5b9074,_0x4caea9=0x1){const _0x552d1d=_0x2c7e3b;return{'width':Math['max'](_0x4caea9,_0x5b9074[_0x552d1d(0x363)]),'height':Math['max'](_0x4caea9,_0x5b9074['height'])};}function w(_0x2ca7ba,_0x235591={},_0x281510={'left':0x0,'top':0x0}){const _0xccdccf=_0x2c7e3b;let _0x1819ac=_0x235591['scaleX']??0x1,_0x4b2533=_0x235591[_0xccdccf(0x475)]??0x1,_0x59fe6a=d[_0xccdccf(0x4a7)][_0xccdccf(0x30d)]({'logicalOuterRect':{'left':-_0x281510[_0xccdccf(0x276)],'top':-_0x281510[_0xccdccf(0x43e)],...C(_0x2ca7ba)},'scale':{'scaleX':_0x1819ac,'scaleY':_0x4b2533},'hostStyle':{},'contentMode':d[_0xccdccf(0x3f3)][_0xccdccf(0x2b7)]});return{'left':_0x59fe6a[_0xccdccf(0x414)][_0xccdccf(0x276)],'top':_0x59fe6a[_0xccdccf(0x414)][_0xccdccf(0x43e)],'width':_0x59fe6a[_0xccdccf(0x414)][_0xccdccf(0x363)],'height':_0x59fe6a['logicalOuterRect'][_0xccdccf(0x412)],'scaleX':_0x1819ac,'scaleY':_0x4b2533};}function _0x3861(){const _0x65ae2d=['label','ChartModelService','toStringTag','_frameStyle','removeChartModel','attachRangeWithCoord','SHEETS_CHART_PLUGIN_NAME','sheets-chart-ui.config','getDirection','ChartThemeField','offsetWidth','transformToDrawingPosition','sheetDisposed$','sheets-chart-ui.section.relation','visible','chartTypeCanUseTrendLine','19860htsENL','naturalWidth','_getSceneAndTransformerByDrawingSearch','multiply','trendline','remove$','redo','UniverChartUIPlugin','getCanvasElement','innerWidth','isFinite','activeChartModel','href','sheet.command.chart.open-focused-panel','clientWidth','isElementEditModeActive','createRuntimeChartStyle','copyType','entries','resolveChartEditPanelRoute','_deactivateEditPanelState','set','opacity','_addWatermark','ChartSectionAccordionContent','1418188MORCoY','_getOrCreateChartRenderInstance','image','getBatchAddOp','ChartUpdateSourceCommand','_setChartRuntimeZIndex','pipe','assignStyle','removeHost$','IconManager','chartModelId','sheetTransform','_config','sheets-chart-ui.common.category','constructor','UPDATE','some','getSheetBySheetName','_registerChartImageRenderObjectFactory','initPanel','Pareto','src','auto','resourceCollector','isInGroup','from','ChartFrameContentMode','jsxs','_createImageChartHost','getOwnPropertyDescriptor','strokeWidth','resolveChartStyleBackgroundColor','drawWith','16696fDppiZ','ParetoBarSeries','ChartViewStateRegistry','SheetCopyCommand','UniverSheetsChartUIPlugin','params','Rect','Candlestick','children','color','_snapshotStore','WordCloud','get','getConfig','DEFAULT_CHART_HEATMAP_VALUES','getName','sheets-chart-ui.common.chartAndAxisTitles','getTransformerByCreate','Heatmap','_chartEventSubscriptions','fromEvent','executeChartUpdateConfig','subscribe','_getCurrentSnapshotImage','height','registerProvider','logicalOuterRect','Observable','iterator','_panelRoute$','_sheetsChartUIService','unitId','checkChartCanRender','resize','sidebarOptions$','min','getSheetId','_pendingMutationConfigRenders','_rangeSelectMode','SheetCanvasFloatDomManagerService','top-center','.chart-host','1100480rAHXyT','_sheetInterceptorService','chartTypeSupportsCapability','header','_chartRenderService','CopySheetCommand','ISheetDrawingService','startRow','clear','mergeMenu','string','_snapshotKey','ChartFunnelStyleSection','ChartCommonDataMappingSection','syncLayout','combineLatest','RemoveSheetsChartMutation','sheets-chart-ui.common.exportImage','MenuItemType','initialRect','_getImage','Combination','Treemap','getInterceptPoints','1470rSGjXS','ChartTypeField','top','getDrawingShapeKeyByDrawingSearch','markHostNotReady','RENDER_CLASS_TYPE','CopyDoubleIcon','_activeDomReadyChartIds','setBorder','_resolvedConfig','slice','univer-overflow-visible','Sankey','drawingId','ChartSectionAccordionItem','getObject','_configService','sheets-chart-ui.waterfall.negative','with','_getChartSnapshotKey','heatmap','_setHostStyle','Relation','univer-flex\x20univer-flex-col\x20univer-gap-3','resolveDefaultChartHostFrameStyle','getFloatDomInfo','getRenderColor','_executeChartUpdateSourceConfig','SetDrawingApplyMutation','useDependency','getRect','ChartAndAxisTitles','addClipboardHook','route','ChartTypeBits','click','_openPanel','useState','columnPercentStacked','isArray','rangeInfo','add$','url','Disposable','useMemo','asObservable','BehaviorSubject','_generateCopyPasteMutations','dataSource','getRuntimeContext','bottom','applyPoint','getCurrentUnitOfType','_getFloatDomInfo','setActiveEditChart','Boxplot','groupId','scaleY','_sheetDrawingService','ObjectType','div','clearRuntimeCache','function','Subtotal','Waterfall','353620VoRCts','createIdentifier','chartId','clearImage','forEach','getBoundingClientRect','Legend','clientX','activeChartModel$','_injector','_resolveLayout','ChartSeriesSection','style$','_requestPaint','syncHostLayout','UNIVER_SHEET','DEFAULT_CHART_RADAR_VALUES','_drawingManagerService','beforeCommandExecuted','pointerEvents','_drawChartImage','decorate','defineProperty','CommandType','generateRandomId','IDrawingManagerService','ChartEditorProvider','_setActiveChart','add','DEFAULT_CHART_WATERFALL_SETUP_VALUES','_initCopyPaste','throttleTime','darkMode$','isLatest','objects','render','range','hidePanel','chartModelAdded$','useEffect','register','_chartInstanceMap','ChartFrameLayout','_commandService','ImageChartHost','chartBitsUtils','_openEditPanelByDoubleClick','ChartTitlesSection','setObjectType','_resizeChart','ChartTypeSpecificDataSection','getFocusedUnit','ChartStyle','_chartSnapshotStoreService','ParetoLineSeries','_focusedDrawings','1.0.0-beta.0','has','zIndex','focused$','ChartSectionAccordion','_themeService','_chartUIService','ChartRenderMode','titleKey','value','Chord','dom','_createHost','_adapterRegistry','blockExecuteWithoutPermission','sheet.chart.edit.panel','position$','SheetCanvasPopManagerService','delete','sheets-chart-ui.common.switchRowColumn','removeHost','hit','ChartWaterfallStyleSection','_listenChartUpdateMutations','CanvasFloatDomService','setActiveChartModel','CHART_ELEMENT_FLOAT_MENU_COMPONENT','sheets-chart-ui.common.hideChartPanel','_rect','_selectedElement$','serializeRangeWithSheet','_init','featurePluginGroupUpdate$','isManaged','Style','_univerInstanceService','ChartEditPanelTab','getSheetCommandTarget','sheet-chart-setup-panel','_domFrame','clip','_popupChartId','_renderAfterChartUpdateMutation','executeCommand','_savedWrapperStyle','Area','Inject','getDrawingByParam','ICommandService','DownloadImageIcon','setProps','UniverLicensePlugin','sheets-chart-element-float-menu','sheets-chart-ui.chartTypes.','LocaleService','COPY_TYPE','activeRuntimeModel','nextVersion','lineAndArea','symbol','activeEditChart$','ChartStyleSection','RightVerticalAxis','drawingType','RemoveSheetDrawingCommand','sheets-chart-ui.common.legend','getBatchRemoveOp','panelRoute$','sheets-chart-ui.section.histogram','getActiveSheet','DrawingApplyType','DependentOn','onDispose','ChartParetoSeriesSection','debounce','DEFAULT_CHART_FUNNEL_VALUES','_urlImage','Bar','_renderChartModel','chartImageSourceToDataUrl','push','_canvasFloatDomService','_requestChartCanvasRender','activeEditChart','indexOf','SheetSkeletonManagerService','ChartGridlinesAndTicksSection','IMenuManagerService','Url','startY','getObjectIncludeInGroup','startColumn','crossOrigin','getDrawingOrder','_draw','_getDrawable','Button','_createCopyInfoByRange','prototype','Plugin','_sidebarService','renderChartsForPrinting','sheets-chart-ui.common.useAsCategoryLabels','complete','combineLatestWith','rect','engine','imageBitmap','startWith','then','DRAWING_OBJECT_LAYER_INDEX','Line','ChartEditBlockTitle','_sheetsChartService','buildChartTypeSelectOptions','sheet.command.chart.delete-focused-chart','setImage','inactive-sheet','getElementById','INSERT','_chartHostProviderService','moveTo','object','serialize','ChartStackField','pareto','BUTTON','map','DEFAULT_CHART_SERIES_VALUES','1294641IdeCYU','getUnit','_initActiveChartModelListener','UniverSheetsChartPlugin','rightYAxis','_handleDrawingDoubleClick','sheets-chart-ui.common.editChart','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_registerComponents','RemoveSheetCommand','getSkeleton','PieSecondaryPlotType','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','_clearChartRuntimeCache','SheetChartBuilderAdapter','clearPanelRoute','_renderWhenConfigReady','UniverSheetsPlugin','getRangeInfo','segmented','innerHeight','_drawChartFrame','_image','_shouldEnableChartElementEdit','ChartRadarStyleSection','sheets-chart-ui.common.customize','EChartRenderEngineName','getChartPopupMenus','GROUP','setConfig','_pendingHost','sheets-chart-ui.section.funnel','_clearHiddenSelectedTarget','_pendingToken','RibbonInsertGroup','REMOVE','DEFAULT_CHART_TITLE_VALUES','_registerAdapter','dispose','canvas','name','default','PieStyle','invert','InsertSheetsChartMutation','radius','sheets-chart-ui.common.setup','_disposeChartEventSubscription','ChartEditorCapability','setDataRange','OPERATION','number','anonymous','sheets-chart-ui.section.candlestick','createChartInstance','classType','small','scroll','getValue','ChartWaterfallStyleTarget','UniverSheetsDrawingPlugin','touchDependencies','scaleX','_sheetClipboardService','focusDrawing','_isChartElementEditEnabled','sheet.command.chart.export-focused-image','_chartRenderMode','_createChartRenderInstanceContext','Subject','getImage','.png','sheets-chart-ui.section.treemap','Funnel','DrawingTypeEnum','_getPlacement','sheets-chart-ui.section.indicatorLine','#-#','DeleteIcon','sheets-chart-ui.common.insertChart','sheets-chart-ui.common.deleteChart','Image','dblclick','isHit','_waiter','ChartThemeService','5805QiSuUr','CONTEXT_MENU','ChartImageSourceType','hidden','enableChartElementFloatMenu','_clearSelectedTarget','indicatorLine','_applyActiveChartRuntimeZIndex','direction$','Sunburst','_sheetSkeletonService','seriesId','markUnmanaged','ChartHostRenderMode','ChartIndicatorLineSection','concat','localPoint','_sheetCanvasFloatDomManagerService','UniverRenderEnginePlugin','_initActiveRuntimeLayerListener','_lastActiveSheet','scale','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','Scatter','_registerIcons','_managed','clientHeight','transform','CHART','_renderModelManager','_createPrintingChartObject','ensureHost','_getHostPlacement','InsertChartCommand','activeSheet$','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','ImageBitmap','offsetTop','every','ChartHeatmapStyleSection','getRenderModel','left','bounds','sheets-chart-ui.host.provider','setElementEditMode','getMenuHiddenObservable','markNotReady','cumulativeLineStyle','scene','useChartEditorHasRightAxis','getDrawingData','endsWith','version','CHART_HOST_BORDER_RADIUS','_chartHostProvider','sheet.command.menu-insert-chart','_entries','_markHostReady','focus$','_chartElementEditMode','_applyHostStyle','ISheetClipboardService','SheetSkeletonService','take','pie','_sheetCanvasPopManagerService','transformChange$','deriveStateFromActiveSheet$','sheets-chart-ui.section.pie','merge','Radar','useChartEditorChartType','viewBound','allSeriesStyle','interceptor','selectedElement$','IndicatorLine','_resetChartRuntimeZIndex','getRenderUnitById','FOCUSING_COMMON_DRAWINGS','ChartTypeSpecificSetupSection','_componentManager','_chartHostMap','naturalHeight','sheets-chart-ui.section.paretoBar','exportImage','makeDirty','getAllowedChartTypes','getBatchUpdateOp','onCommandExecuted','ChartRelationStyleSection','Axes','subscribeEvent','SheetInterceptorService','setSelectedElement','chartObject','sheets-chart-ui.section.gauge','keys','lineTo','_markReady','_version','_bindChartEventHandler','createElement','_initPermission','PRINTING_COMPONENT_COLLECT','_chartThemeService','Overlay','pieSecondaryPlotType','legend','_bindChartEventHandlers','WorkbookEditablePermission','_disposed','PREDEFINED_HOOK_NAME','DEFAULT_CHART_WATERFALL_STYLE_VALUES','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_resolveChartRenderMode','closePath','sheet.operation.open-chart-panel','_initPrinting','category','attachPopupToDynamicAbsolutePosition','sheets-chart-ui.common.dataRange','isRowDirection','_disposeChartEventSubscriptions','openChartPanelById','OTHERS','getHostSize','getRealBound','2751324NVxyfO','IUniverInstanceService','ISidebarService','updateFloatDom','Data','restore','_debounceHandle','clearChart','_activateHostWrapper','_isProviderDisposed','_shouldSuppressSnapshot','LineAndArea','_updateTransform','registerFeatureMenu','sheet-chart-style-panel','setHostStyle','Fragment','_initMenus','contains','Series','section','setRangeSelectMode','_sheetPermissionCheckController','_rerenderLatest','mode','defaultValues','cancel','DataOrientation','checkHost','clientY','COMMAND','all','sheets-chart-ui.section.sunburst','abs','IContextService','\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-white\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','Injector','CUT','sheets-chart-ui.common.horizontalAxis','unsubscribe','_menuManagerService','PenIcon','_getChartRenderObject','setPanelRoute','items','iconName','relation','SheetPrintInterceptorService','nativeEvent','ThemeService','insertGroupObject','getChartModel','Gauge','bind','baseOn','IConfigService','values','startX','anchorRect$','sheets-chart-ui.common.trendline','ChartHostAdapter','config','addObject','sheets-chart-ui.waterfall.subtotal','resolve','_popupDisposable','_closePopup','takeSnapshot','target','offsetHeight','RTLChartStyle','_url','setStyle','_chartModelService','_disposeChartDomInstance','mountNode','chartModelRemoved$','_renderDebounceMap','axis','_generatePasteMutations','Positive','series','rightY','disposeWithMe','_chartEventHandlers','_restoreHostWrapper','sheets-chart-ui.section.gridlinesAndTicks','ChartWaterfallSetupFields','onStarting','allSettled','open','SheetsChartUIController','MenuManagerPosition','rangeSelectMode','Fail\x20to\x20create\x20float\x20dom','onTransformChange$','create','split','hasOwnProperty','_removeHost$','right','commitSnapshot','ancestorTransform','chartType','DisposableCollection','SHEETS_CHART_UI_PLUGIN_CONFIG_KEY','SheetsChartUIService','SHEET_CHART_RENDER_OBJECT_CONFIG','UniverInstanceType','config$','waterfall','VerticalAxis','toInsertChartMutationSource','Dom','DEFAULT_PASTE','ChartSectionAccordionTrigger','checkMounted','transparent','IDrawingContextMenuService','sheets-chart-ui.permission.editErr','ChartNumberFormatAtom','getCurrentTypeOfUnit$','sheets-chart-ui.common.series','domId','_disposeChartRenderInstance','_lastRenderInputMap','missing-active-sheet','1000','waterfallStyle','ChartDomFrame','_sidebarDisposable','featurePluginUngroupUpdate$','UniverSheetsUIPlugin','labelId','getMatrix','style','isDomReady','HorizontalAxis','sheet.operation.hide-chart-panel','_initDrawingDeactivationListener','ChartAxisSection','arc','Module','_localeService','radar','_clearSheetChartRuntimeCaches','ContextMenuGroup','ChartElementFloatMenuAdapterRegistry','missing-float-dom','Row','width','Pie','setOrientation','update','invalidateSnapshot','subUnitId','_initSheetChange','ChartEditPanelSection','sheets-chart-ui.waterfall.positive','onRendered','setContextValue','parent','useObservable','close','_sheetPrintInterceptorService','call','_debounceHandleMap','_copyInfo','packageName','ensureHandle','_markNotReady','_getChartRenderSkipReason','filter','chartRenderMode','_renderManagerService','_openFloatMenu','Histogram','Column','getUnitId','toPrimitive','_contextService','DRAWING_CHART','GridlinesAndTicks','ChartUpdateConfigCommand','DEFAULT_CHART_WORD_CLOUD_VALUES','next','undo','-univer-mx-4','sheets-chart-ui.section.radar','showFloatMenu','max','UniverDrawingPlugin','download','handleActiveSubUnitChange','requestPaint','interceptCommand','_getOuterRect','GeneralSeries','DEFAULT_CHART_AXIS_VALUES','toDisposable','_activeChartId','_hostStyle','columnStacked','blur','ChartEditPanel','permissionCheckWithoutRange','SheetsChartService','save','SHEETS_CHART_PLUGIN_CONFIG_KEY','_activeEditChart$','type','parentElement','resolveChartRuntimeStyle','ChartWordCloudStyleSection','_generateCutPasteMutations','_getOrCreateSheetChartHost','translate','_cancelHostWait','chartTypeSupportsLineAndAreaStyle','DEFAULT_CHART_RELATION_VALUES','RangeSelector','_getChartRenderObjectContext','length','_cancelDebouncedCallbacks','exportImg','jsx','sheets-chart-ui.common.openChartPanel'];_0x3861=function(){return _0x65ae2d;};return _0x3861();}function T(_0x1a2082){'@babel/helpers - typeof';const _0x3263f8=_0x2c7e3b;return T=typeof Symbol=='function'&&typeof Symbol[_0x3263f8(0x416)]=='symbol'?function(_0xadd945){return typeof _0xadd945;}:function(_0x132596){const _0x1658c8=_0x3263f8;return _0x132596&&typeof Symbol==_0x1658c8(0x47a)&&_0x132596[_0x1658c8(0x3e7)]===Symbol&&_0x132596!==Symbol[_0x1658c8(0x1d8)]?_0x1658c8(0x1b1):typeof _0x132596;},T(_0x1a2082);}function te(_0x51a152,_0x4a09b6){const _0x3e1b3e=_0x2c7e3b;if(T(_0x51a152)!=_0x3e1b3e(0x1f0)||!_0x51a152)return _0x51a152;var _0x55deec=_0x51a152[Symbol[_0x3e1b3e(0x380)]];if(_0x55deec!==void 0x0){var _0x4e9730=_0x55deec['call'](_0x51a152,_0x4a09b6||_0x3e1b3e(0x220));if(T(_0x4e9730)!='object')return _0x4e9730;throw TypeError(_0x3e1b3e(0x2bf));}return(_0x4a09b6===_0x3e1b3e(0x42e)?String:Number)(_0x51a152);}function ne(_0x2387cf){const _0x24ebac=_0x2c7e3b;var _0x559977=te(_0x2387cf,_0x24ebac(0x42e));return T(_0x559977)==_0x24ebac(0x1b1)?_0x559977:_0x559977+'';}function E(_0x2bf549,_0x2b75d1,_0x20cd8a){const _0x55c40b=_0x2c7e3b;return(_0x2b75d1=ne(_0x2b75d1))in _0x2bf549?Object[_0x55c40b(0x493)](_0x2bf549,_0x2b75d1,{'value':_0x20cd8a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2bf549[_0x2b75d1]=_0x20cd8a,_0x2bf549;}function _0x389a(_0x281a76,_0x1112e2){_0x281a76=_0x281a76-0x183;const _0x386108=_0x3861();let _0x389a8e=_0x386108[_0x281a76];return _0x389a8e;}function re(_0x4f0146){const _0x23f61c=_0x2c7e3b;switch(_0x4f0146['type']){case c['ChartImageSourceType']['Canvas']:return _0x4f0146[_0x23f61c(0x21e)];case c['ChartImageSourceType'][_0x23f61c(0x271)]:return _0x4f0146['imageBitmap'];default:return;}}var ie=class extends u[_0x2c7e3b(0x400)]{constructor(_0x5cabff,_0x196e73,_0x56187d,_0x26385f=()=>!0x1,_0x15beec=()=>{}){const _0x4b15d6=_0x2c7e3b;super(_0x5cabff,{..._0x196e73,'evented':_0x196e73['evented']??!0x0}),this[_0x4b15d6(0x438)]=_0x56187d,this['_shouldSuppressSnapshot']=_0x26385f,this['_disposeImage']=_0x15beec,E(this,'_urlImage',null),E(this,'_url',null),this[_0x4b15d6(0x4ad)](u[_0x4b15d6(0x477)][_0x4b15d6(0x269)]);}[_0x2c7e3b(0x21d)](){const _0x4d03ed=_0x2c7e3b;this['_disposeImage'](),super[_0x4d03ed(0x21d)]();}[_0x2c7e3b(0x4a0)](_0x1008d7,_0x5e9cba){const _0x214302=_0x2c7e3b;if(!this[_0x214302(0x3be)])return this[_0x214302(0x2a3)](!0x1),this;if(!this[_0x214302(0x268)])return this;let {width:_0x1e32d0,height:_0x209382,left:_0x343eb4,top:_0x294ec0}=this[_0x214302(0x2cc)]();if(this['isRender'](_0x5e9cba)){let {top:_0x381180,left:_0x57e73d,bottom:_0xf5ea1c,right:_0x1b2cc4}=_0x5e9cba[_0x214302(0x295)];if(_0x1e32d0+this[_0x214302(0x3f7)]+_0x343eb4<_0x57e73d||_0x1b2cc4<_0x343eb4||_0x209382+this['strokeWidth']+_0x294ec0<_0x381180||_0xf5ea1c<_0x294ec0)return this;}let _0x4e4f87=this[_0x214302(0x268)]['getMatrix']();_0x1008d7['save']();let _0x419cc3=_0x343eb4+_0x1e32d0/0x2,_0x5789bc=_0x294ec0+_0x209382/0x2;return _0x1008d7[_0x214302(0x268)](_0x4e4f87[0x0],_0x4e4f87[0x1],_0x4e4f87[0x2],_0x4e4f87[0x3],_0x419cc3,_0x5789bc),this[_0x214302(0x3d6)]!==0x1&&(_0x1008d7['globalAlpha']=this[_0x214302(0x3d6)]),this[_0x214302(0x1d4)](_0x1008d7,void 0x0,_0x1e32d0,_0x209382),_0x1008d7[_0x214302(0x2d2)](),this[_0x214302(0x2a3)](!0x1),this;}['_draw'](_0x8bd36a,_0xd1db37,_0x507f35=this[_0x2c7e3b(0x363)],_0x140657=this[_0x2c7e3b(0x412)]){const _0x3fa57f=_0x2c7e3b;this[_0x3fa57f(0x20c)](_0x8bd36a,_0x507f35,_0x140657,{'stroke':void 0x0,'strokeWidth':0x0}),this['_drawChartImage'](_0x8bd36a,_0x507f35,_0x140657),this[_0x3fa57f(0x20c)](_0x8bd36a,_0x507f35,_0x140657,{'fill':void 0x0});}[_0x2c7e3b(0x20c)](_0x244bfe,_0x285642,_0x3df4c1,_0x28801e){const _0x37cacd=_0x2c7e3b;_0x244bfe[_0x37cacd(0x39c)](),_0x244bfe[_0x37cacd(0x3a5)](-_0x285642/0x2,-_0x3df4c1/0x2),u[_0x37cacd(0x400)][_0x37cacd(0x3f9)](_0x244bfe,ae(this,_0x285642,_0x3df4c1,_0x28801e)),_0x244bfe['restore']();}[_0x2c7e3b(0x24a)](_0x54e8ff){const _0x4914fd=_0x2c7e3b;let {left:_0x26e8b4,top:_0xe69ffd,width:_0x31b963,height:_0x63468c}=this[_0x4914fd(0x2cc)](),_0x338e22=_0x26e8b4+_0x31b963/0x2,_0x4c731e=_0xe69ffd+_0x63468c/0x2,_0x20ee11=this[_0x4914fd(0x268)][_0x4914fd(0x353)](),_0x4c9664=new u['Transform']([_0x20ee11[0x0],_0x20ee11[0x1],_0x20ee11[0x2],_0x20ee11[0x3],_0x338e22,_0x4c731e]),_0x489f0a=this['getParent'](),_0x263679=(this[_0x4914fd(0x3f1)]&&(_0x489f0a==null?void 0x0:_0x489f0a[_0x4914fd(0x22e)])===u[_0x4914fd(0x441)][_0x4914fd(0x213)]?_0x489f0a[_0x4914fd(0x333)][_0x4914fd(0x3c3)](_0x4c9664):_0x4c9664)[_0x4914fd(0x222)]()[_0x4914fd(0x46f)](_0x54e8ff),_0x1100f8=_0x31b963/0x2,_0x33552a=_0x63468c/0x2;return _0x263679['x']>=-_0x1100f8-this[_0x4914fd(0x3f7)]/0x2&&_0x263679['x']<=_0x1100f8+this[_0x4914fd(0x3f7)]/0x2&&_0x263679['y']>=-_0x33552a-this['strokeWidth']/0x2&&_0x263679['y']<=_0x33552a+this[_0x4914fd(0x3f7)]/0x2;}[_0x2c7e3b(0x491)](_0x575e78,_0x4462b6,_0x492cbe){const _0x2bccd7=_0x2c7e3b;if(this[_0x2bccd7(0x2d7)]())return;let _0x1dd3cb=this[_0x2bccd7(0x438)](),_0x28d1ae=_0x1dd3cb?this[_0x2bccd7(0x1d5)](_0x1dd3cb):void 0x0;if(!_0x28d1ae)return;let {width:_0xfebfb,height:_0xbf2921}=C({'width':_0x4462b6,'height':_0x492cbe},0x0);_0xfebfb!==0x0&&_0xbf2921!==0x0&&(_0x575e78[_0x2bccd7(0x39c)](),_0x575e78[_0x2bccd7(0x3a5)](-_0x4462b6/0x2,-_0x492cbe/0x2),oe(_0x575e78,_0xfebfb,_0xbf2921,this[_0x2bccd7(0x224)]),_0x575e78[_0x2bccd7(0x19e)](),_0x575e78['drawImage'](_0x28d1ae,0x0,0x0,_0xfebfb,_0xbf2921),_0x575e78[_0x2bccd7(0x2d2)]());}[_0x2c7e3b(0x1d5)](_0x2a638d){const _0x5f2df8=_0x2c7e3b;var _0x1f2d9c;let _0x270f1f=re(_0x2a638d);if(_0x270f1f)return _0x270f1f;if(_0x2a638d[_0x5f2df8(0x39f)]===c['ChartImageSourceType'][_0x5f2df8(0x1ce)]&&(this['_url']!==_0x2a638d[_0x5f2df8(0x466)]&&(this[_0x5f2df8(0x314)]=_0x2a638d[_0x5f2df8(0x466)],this['_urlImage']=document[_0x5f2df8(0x2b3)]('img'),this[_0x5f2df8(0x1c2)][_0x5f2df8(0x1d2)]=_0x5f2df8(0x22b),this[_0x5f2df8(0x1c2)]['onload']=()=>this[_0x5f2df8(0x2a3)](!0x0),this['_urlImage'][_0x5f2df8(0x3ee)]=_0x2a638d[_0x5f2df8(0x466)]),(_0x1f2d9c=this[_0x5f2df8(0x1c2)])!=null&&_0x1f2d9c[_0x5f2df8(0x1dd)]&&this['_urlImage'][_0x5f2df8(0x3c1)]>0x0&&this[_0x5f2df8(0x1c2)][_0x5f2df8(0x2a0)]>0x0))return this[_0x5f2df8(0x1c2)];}};function ae(_0x2da2a1,_0x24ba8d,_0x37c4aa,_0x15d1e4){const _0x51e3de=_0x2c7e3b;let _0x54e9b6=Object[_0x51e3de(0x32d)](_0x2da2a1);return Object['defineProperty'](_0x54e9b6,_0x51e3de(0x363),{'value':_0x24ba8d}),Object[_0x51e3de(0x493)](_0x54e9b6,_0x51e3de(0x412),{'value':_0x37c4aa}),Object[_0x51e3de(0x2ae)](_0x15d1e4)['forEach'](_0x525dfa=>{const _0xac3be3=_0x51e3de;Object[_0xac3be3(0x493)](_0x54e9b6,_0x525dfa,{'value':_0x15d1e4[_0x525dfa]});}),_0x54e9b6;}function oe(_0x2c0b97,_0x4b5121,_0x115e64,_0x569cba){const _0x3063b5=_0x2c7e3b;let _0x3c331a=Math[_0x3063b5(0x41d)](_0x569cba||0x0,_0x4b5121/0x2,_0x115e64/0x2);if(_0x2c0b97['beginPath'](),!_0x3c331a){_0x2c0b97[_0x3063b5(0x1df)](0x0,0x0,_0x4b5121,_0x115e64),_0x2c0b97[_0x3063b5(0x2c1)]();return;}_0x2c0b97[_0x3063b5(0x1ef)](_0x3c331a,0x0),_0x2c0b97[_0x3063b5(0x2af)](_0x4b5121-_0x3c331a,0x0),_0x2c0b97[_0x3063b5(0x35a)](_0x4b5121-_0x3c331a,_0x3c331a,_0x3c331a,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c0b97['lineTo'](_0x4b5121,_0x115e64-_0x3c331a),_0x2c0b97['arc'](_0x4b5121-_0x3c331a,_0x115e64-_0x3c331a,_0x3c331a,0x0,Math['PI']/0x2,!0x1),_0x2c0b97[_0x3063b5(0x2af)](_0x3c331a,_0x115e64),_0x2c0b97[_0x3063b5(0x35a)](_0x3c331a,_0x115e64-_0x3c331a,_0x3c331a,Math['PI']/0x2,Math['PI'],!0x1),_0x2c0b97[_0x3063b5(0x2af)](0x0,_0x3c331a),_0x2c0b97['arc'](_0x3c331a,_0x3c331a,_0x3c331a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c0b97[_0x3063b5(0x2c1)]();}function D(_0x59816f){const _0x437b83=_0x2c7e3b;(_0x59816f==null?void 0x0:_0x59816f[_0x437b83(0x39f)])===c[_0x437b83(0x24f)]['ImageBitmap']&&_0x59816f[_0x437b83(0x1e1)][_0x437b83(0x370)]();}function O(_0x652aeb){const _0x16793d=_0x2c7e3b;return _0x652aeb[_0x16793d(0x419)]+'#-#'+_0x652aeb[_0x16793d(0x368)]+_0x16793d(0x244)+_0x652aeb[_0x16793d(0x47f)];}var se=class extends t[_0x2c7e3b(0x467)]{constructor(..._0x5e12a4){const _0x166a9c=_0x2c7e3b;super(..._0x5e12a4),E(this,_0x166a9c(0x285),new Map());}[_0x2c7e3b(0x1af)](_0x4c27a6){const _0x48dfef=_0x2c7e3b;let _0x467d40=O(_0x4c27a6),_0x4a7ce8=this[_0x48dfef(0x285)][_0x48dfef(0x406)](_0x467d40)??{'version':0x0};return _0x4a7ce8[_0x48dfef(0x281)]+=0x1,this[_0x48dfef(0x285)][_0x48dfef(0x3d5)](_0x467d40,_0x4a7ce8),_0x4a7ce8[_0x48dfef(0x281)];}[_0x2c7e3b(0x49e)](_0x45e693,_0x500f40){const _0x3c902d=_0x2c7e3b;var _0x2013ac;return((_0x2013ac=this[_0x3c902d(0x285)]['get'](O(_0x45e693)))==null?void 0x0:_0x2013ac[_0x3c902d(0x281)])===_0x500f40;}[_0x2c7e3b(0x1ea)](_0x25ab02,_0x2c7d19,_0x2eed89){const _0x17fb45=_0x2c7e3b;if(!this[_0x17fb45(0x49e)](_0x25ab02,_0x2eed89))return D(_0x2c7d19),!0x1;let _0xe9df9=O(_0x25ab02),_0xeb460b=this['_entries'][_0x17fb45(0x406)](_0xe9df9)??{'version':_0x2eed89},_0x1642dc=_0xeb460b['image'];return _0xeb460b[_0x17fb45(0x3db)]=_0x2c7d19,_0xeb460b[_0x17fb45(0x281)]=_0x2eed89,this['_entries'][_0x17fb45(0x3d5)](_0xe9df9,_0xeb460b),_0x1642dc!==_0x2c7d19&&D(_0x1642dc),!0x0;}[_0x2c7e3b(0x23d)](_0x241c77){const _0x43edc8=_0x2c7e3b;var _0x2a7dfd;return(_0x2a7dfd=this[_0x43edc8(0x285)][_0x43edc8(0x406)](O(_0x241c77)))==null?void 0x0:_0x2a7dfd[_0x43edc8(0x3db)];}[_0x2c7e3b(0x480)](_0x2a1c59){const _0x1bd504=_0x2c7e3b;let _0x2ad7de=O(_0x2a1c59),_0x30c849=this[_0x1bd504(0x285)]['get'](_0x2ad7de);_0x30c849&&(D(_0x30c849['image']),this[_0x1bd504(0x285)][_0x1bd504(0x188)](_0x2ad7de));}[_0x2c7e3b(0x2d4)](_0x168c71){const _0x53c16b=_0x2c7e3b;for(let [_0x386ebf,_0x19c962]of this['_entries'])_0x386ebf[_0x53c16b(0x280)](_0x53c16b(0x244)+_0x168c71)&&(D(_0x19c962[_0x53c16b(0x3db)]),this['_entries'][_0x53c16b(0x188)](_0x386ebf));}['dispose'](){const _0x5c6ba3=_0x2c7e3b;this[_0x5c6ba3(0x285)][_0x5c6ba3(0x481)](_0x1e811f=>D(_0x1e811f[_0x5c6ba3(0x3db)])),this['_entries'][_0x5c6ba3(0x42c)](),super[_0x5c6ba3(0x21d)]();}};function ce(_0x5c536d,_0x3ffd04=0x7d0){let _0x4abd94=null,_0x411daa=null,_0x410faa=!0x1,_0x1c958e=()=>{},_0x53c348=()=>{_0x4abd94!=null&&(clearInterval(_0x4abd94),_0x4abd94=null),_0x411daa!=null&&(clearTimeout(_0x411daa),_0x411daa=null);};return{'promise':new Promise((_0x36077f,_0x1a8ed1)=>{_0x1c958e=_0x1a8ed1;let _0x409dfb=()=>{const _0x3936eb=_0x389a;let _0xd52610=document[_0x3936eb(0x1ec)](_0x5c536d);!_0xd52610||_0x410faa||(_0x410faa=!0x0,_0x53c348(),_0x36077f(_0xd52610));};_0x409dfb(),!_0x410faa&&(_0x4abd94=setInterval(_0x409dfb,16.666666666666668),_0x411daa=setTimeout(()=>{const _0x17a9ec=_0x389a;_0x410faa||(_0x410faa=!0x0,_0x53c348(),_0x1a8ed1(Error(_0x17a9ec(0x270)+_0x5c536d+'\x22.')));},_0x3ffd04));}),'cancel':()=>{const _0xf80bfa=_0x389a;_0x410faa||(_0x410faa=!0x0,_0x53c348(),_0x1c958e(Error(_0xf80bfa(0x203)+_0x5c536d+'\x22.')));}};}var le=class extends t[_0x2c7e3b(0x467)]{constructor(_0x46a9a1,_0x180a41,_0x417869,_0x307e5f,_0x2338af,_0xa37d6c,_0x3728b4){const _0x4674a0=_0x2c7e3b;super(),this[_0x4674a0(0x47f)]=_0x46a9a1,this[_0x4674a0(0x471)]=_0x180a41,this[_0x4674a0(0x242)]=_0x417869,this[_0x4674a0(0x451)]=_0x307e5f,this[_0x4674a0(0x2d6)]=_0x2338af,this[_0x4674a0(0x2b0)]=_0xa37d6c,this[_0x4674a0(0x377)]=_0x3728b4,E(this,_0x4674a0(0x2e5),c['ChartHostRenderMode'][_0x4674a0(0x33e)]),E(this,_0x4674a0(0x19d),null),E(this,_0x4674a0(0x266),!0x1),E(this,_0x4674a0(0x218),null),E(this,'_pendingHost',null),E(this,'_waiter',null),E(this,_0x4674a0(0x396),{}),E(this,'_savedWrapperStyle',null);}[_0x2c7e3b(0x197)](){const _0x13af08=_0x2c7e3b;return this[_0x13af08(0x266)];}['markUnmanaged'](){const _0x5e3e04=_0x2c7e3b;this[_0x5e3e04(0x266)]=!0x1;}[_0x2c7e3b(0x45a)](){const _0x25a6b0=_0x2c7e3b;let _0x49d49e=this[_0x25a6b0(0x242)]();return _0x49d49e?{'width':_0x49d49e[_0x25a6b0(0x363)],'height':_0x49d49e[_0x25a6b0(0x412)]}:null;}['setStyle'](_0x5b101d){const _0x59da06=_0x2c7e3b;this[_0x59da06(0x396)]=_0x5b101d,this[_0x59da06(0x451)](_0x5b101d),this[_0x59da06(0x289)]();}async[_0x2c7e3b(0x376)](){const _0x4d8dc8=_0x2c7e3b;if(this[_0x4d8dc8(0x2bc)]||this[_0x4d8dc8(0x2d6)]())throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x465e2b=this['_getFloatDomInfo'](),_0x463a78=(_0x465e2b==null?void 0x0:_0x465e2b[_0x4d8dc8(0x348)])??this[_0x4d8dc8(0x47f)],_0x191f97=document['getElementById'](_0x463a78);if(this[_0x4d8dc8(0x19d)]&&_0x191f97!=null&&_0x191f97[_0x4d8dc8(0x2df)](this[_0x4d8dc8(0x19d)]['mountNode']))return{'mountNode':this['_domFrame']['mountNode'],'dispose':()=>{const _0x537dbf=_0x4d8dc8;this[_0x537dbf(0x21d)](),_0x465e2b==null||_0x465e2b[_0x537dbf(0x21d)][_0x537dbf(0x21d)]();}};if(this[_0x4d8dc8(0x215)])return this[_0x4d8dc8(0x215)];let _0x17f0b4=this[_0x4d8dc8(0x4c1)]();return this['_pendingHost']=_0x17f0b4,_0x17f0b4[_0x4d8dc8(0x1e3)](()=>{const _0x400c75=_0x4d8dc8;this[_0x400c75(0x215)]===_0x17f0b4&&(this[_0x400c75(0x215)]=null);},()=>{const _0x463f9e=_0x4d8dc8;this[_0x463f9e(0x215)]===_0x17f0b4&&(this[_0x463f9e(0x215)]=null);}),_0x17f0b4;}async['ensureMount'](){const _0x189f24=_0x2c7e3b;try{return(await this[_0x189f24(0x376)]())[_0x189f24(0x318)];}catch{return null;}}[_0x2c7e3b(0x341)](){const _0x3d6a54=_0x2c7e3b;let _0x2729dc=this[_0x3d6a54(0x471)](),_0x2f0eee=(_0x2729dc==null?void 0x0:_0x2729dc['domId'])??this['chartId'],_0x137814=document[_0x3d6a54(0x1ec)](_0x2f0eee);return!!(this[_0x3d6a54(0x19d)]&&_0x137814!=null&&_0x137814[_0x3d6a54(0x2df)](this[_0x3d6a54(0x19d)][_0x3d6a54(0x318)]));}['syncLayout'](){const _0xd382d5=_0x2c7e3b;if(!this[_0xd382d5(0x19d)])return;let _0x43241b=this[_0xd382d5(0x242)]();_0x43241b&&this[_0xd382d5(0x19d)][_0xd382d5(0x366)](this['_resolveLayout'](_0x43241b),this[_0xd382d5(0x3b3)]());}['markReady'](){const _0x273db8=_0x2c7e3b;this[_0x273db8(0x2b0)]();}[_0x2c7e3b(0x27b)](){this['_markNotReady']();}[_0x2c7e3b(0x21d)](){const _0x282f0c=_0x2c7e3b;var _0x4bb993;this[_0x282f0c(0x2bc)]||(this[_0x282f0c(0x27b)](),this[_0x282f0c(0x218)]=null,this[_0x282f0c(0x215)]=null,this[_0x282f0c(0x3a6)](),this['_managed']=!0x1,(_0x4bb993=this[_0x282f0c(0x19d)])==null||_0x4bb993[_0x282f0c(0x21d)](),this['_domFrame']=null,this[_0x282f0c(0x322)](),super['dispose']());}async['_createHost'](){const _0x5c9bd5=_0x2c7e3b;let _0x4359d1=this[_0x5c9bd5(0x471)]();if(!_0x4359d1)throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x4d0b1e=_0x4359d1[_0x5c9bd5(0x348)]??this[_0x5c9bd5(0x47f)],_0x2bc84d=ce(_0x4d0b1e),_0x13e933=Symbol(this[_0x5c9bd5(0x47f)]);this['_pendingToken']=_0x13e933,this[_0x5c9bd5(0x24b)]=_0x2bc84d;try{let _0x2a1b60=await _0x2bc84d['promise'],_0x3ff9f5=this[_0x5c9bd5(0x471)](),_0x26bcee=(_0x3ff9f5==null?void 0x0:_0x3ff9f5[_0x5c9bd5(0x348)])??this[_0x5c9bd5(0x47f)];if(this['_disposed']||this[_0x5c9bd5(0x2d6)]()||this[_0x5c9bd5(0x218)]!==_0x13e933||!_0x3ff9f5||_0x26bcee!==_0x4d0b1e||document[_0x5c9bd5(0x1ec)](_0x4d0b1e)!==_0x2a1b60||!_0x2a1b60['isConnected'])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0x51c71e=this[_0x5c9bd5(0x242)]();if(!_0x51c71e)throw Error(_0x5c9bd5(0x32b));let _0x2a1b8b=new d[(_0x5c9bd5(0x34e))](_0x2a1b60);return _0x2a1b8b[_0x5c9bd5(0x366)](this[_0x5c9bd5(0x487)](_0x51c71e),this['_frameStyle']()),this[_0x5c9bd5(0x2d5)](_0x2a1b60),this[_0x5c9bd5(0x19d)]=_0x2a1b8b,this[_0x5c9bd5(0x320)](_0x3ff9f5['position$'][_0x5c9bd5(0x410)](()=>this[_0x5c9bd5(0x432)]())),this['_managed']=!0x0,{'mountNode':_0x2a1b8b[_0x5c9bd5(0x318)],'dispose':()=>{const _0xb42392=_0x5c9bd5;this[_0xb42392(0x21d)](),_0x4359d1['dispose'][_0xb42392(0x21d)]();}};}finally{this['_waiter']===_0x2bc84d&&(this[_0x5c9bd5(0x24b)]=null),this[_0x5c9bd5(0x218)]===_0x13e933&&(this[_0x5c9bd5(0x218)]=null);}}[_0x2c7e3b(0x3a6)](){const _0xeab1cd=_0x2c7e3b;let _0x4d6957=this[_0xeab1cd(0x24b)];_0x4d6957&&(_0x4d6957[_0xeab1cd(0x2e7)](),this['_waiter']=null);}[_0x2c7e3b(0x289)](){const _0x3e123c=_0x2c7e3b;let _0x41cb30=this[_0x3e123c(0x242)]();this[_0x3e123c(0x19d)]&&_0x41cb30&&this['_domFrame'][_0x3e123c(0x366)](this[_0x3e123c(0x487)](_0x41cb30),this[_0x3e123c(0x3b3)]());}['_resolveLayout'](_0x3d2783){const _0x4bb267=_0x2c7e3b;return d['ChartFrameLayout'][_0x4bb267(0x30d)]({'logicalOuterRect':{'left':_0x3d2783['left'],'top':_0x3d2783['top'],'width':_0x3d2783[_0x4bb267(0x363)],'height':_0x3d2783[_0x4bb267(0x412)]},'scale':{'scaleX':_0x3d2783[_0x4bb267(0x235)],'scaleY':_0x3d2783[_0x4bb267(0x475)]},'hostStyle':this[_0x4bb267(0x3b3)](),'contentMode':d[_0x4bb267(0x3f3)]['Overlay']});}[_0x2c7e3b(0x3b3)](){const _0x304cd4=_0x2c7e3b;return{...this['_hostStyle'],'radius':d[_0x304cd4(0x282)]};}[_0x2c7e3b(0x2d5)](_0x127bd3){const _0x338cb2=_0x2c7e3b;let _0x4faa55=_0x127bd3[_0x338cb2(0x3a0)];_0x4faa55&&(this[_0x338cb2(0x1a2)]||={'zIndex':_0x4faa55[_0x338cb2(0x354)][_0x338cb2(0x4b7)],'pointerEvents':_0x4faa55[_0x338cb2(0x354)][_0x338cb2(0x490)]},_0x4faa55[_0x338cb2(0x354)]['zIndex']=_0x338cb2(0x34c),_0x4faa55['style']['pointerEvents']=_0x338cb2(0x3ef));}[_0x2c7e3b(0x322)](){const _0x538845=_0x2c7e3b;var _0x28885f;if(!this[_0x538845(0x1a2)])return;let _0xebd8aa=this[_0x538845(0x471)](),_0x467e5b=(_0xebd8aa==null?void 0x0:_0xebd8aa[_0x538845(0x348)])??this[_0x538845(0x47f)],_0x2cc3ba=(_0x28885f=document[_0x538845(0x1ec)](_0x467e5b))==null?void 0x0:_0x28885f[_0x538845(0x3a0)];_0x2cc3ba&&(_0x2cc3ba[_0x538845(0x354)][_0x538845(0x4b7)]=this[_0x538845(0x1a2)][_0x538845(0x4b7)],_0x2cc3ba['style'][_0x538845(0x490)]=this[_0x538845(0x1a2)][_0x538845(0x490)]),this[_0x538845(0x1a2)]=null;}},ue=class extends c[_0x2c7e3b(0x4a9)]{constructor(_0xf4391,_0x4c2a92,_0x378a39,_0x590303,_0x4000bd,_0x47d829){const _0x4f4b08=_0x2c7e3b;super(_0xf4391),this[_0x4f4b08(0x391)]=_0x4c2a92,this[_0x4f4b08(0x451)]=_0x378a39,this[_0x4f4b08(0x42f)]=_0x590303,this[_0x4f4b08(0x404)]=_0x4000bd,this[_0x4f4b08(0x48a)]=_0x47d829;}['getRect'](){const _0x46736a=_0x2c7e3b;let _0x51a75f=this[_0x46736a(0x391)]();return _0x51a75f?C(_0x51a75f):null;}[_0x2c7e3b(0x315)](_0x1419e0){const _0x13d181=_0x2c7e3b;this[_0x13d181(0x451)](_0x1419e0);}['nextVersion'](){const _0x3ebc83=_0x2c7e3b;return this[_0x3ebc83(0x404)]['nextVersion'](this[_0x3ebc83(0x42f)]);}[_0x2c7e3b(0x332)](_0x16b1c0,_0xbc5800){const _0x1e18b8=_0x2c7e3b;return this[_0x1e18b8(0x404)][_0x1e18b8(0x1ea)](this[_0x1e18b8(0x42f)],_0x16b1c0,_0xbc5800);}[_0x2c7e3b(0x38f)](){const _0x320bd8=_0x2c7e3b;this[_0x320bd8(0x48a)]();}[_0x2c7e3b(0x367)](){const _0x21036b=_0x2c7e3b;this[_0x21036b(0x404)][_0x21036b(0x1af)](this[_0x21036b(0x42f)]);}};function k(_0x1fa8c6,_0x2ed464){return function(_0x6b4f77,_0x557bfe){_0x2ed464(_0x6b4f77,_0x557bfe,_0x1fa8c6);};}function A(_0x30619f,_0x525825,_0x42fafa,_0x75f88c){const _0x543b04=_0x2c7e3b;var _0x5d8150=arguments['length'],_0x4890e1=_0x5d8150<0x3?_0x525825:_0x75f88c===null?_0x75f88c=Object[_0x543b04(0x3f6)](_0x525825,_0x42fafa):_0x75f88c,_0x31df17;if(typeof Reflect=='object'&&typeof Reflect[_0x543b04(0x492)]==_0x543b04(0x47a))_0x4890e1=Reflect['decorate'](_0x30619f,_0x525825,_0x42fafa,_0x75f88c);else{for(var _0x51e95f=_0x30619f['length']-0x1;_0x51e95f>=0x0;_0x51e95f--)(_0x31df17=_0x30619f[_0x51e95f])&&(_0x4890e1=(_0x5d8150<0x3?_0x31df17(_0x4890e1):_0x5d8150>0x3?_0x31df17(_0x525825,_0x42fafa,_0x4890e1):_0x31df17(_0x525825,_0x42fafa))||_0x4890e1);}return _0x5d8150>0x3&&_0x4890e1&&Object['defineProperty'](_0x525825,_0x42fafa,_0x4890e1),_0x4890e1;}function de(_0x334ceb){const _0x7ddfc1=_0x2c7e3b;if(!Object['prototype'][_0x7ddfc1(0x32f)][_0x7ddfc1(0x372)](_0x334ceb,'border'))return _0x334ceb;let {border:_0x595e62,..._0x1ca5c2}=_0x334ceb;return{..._0x1ca5c2,'stroke':(_0x595e62==null?void 0x0:_0x595e62[_0x7ddfc1(0x403)])??_0x7ddfc1(0x342),'strokeWidth':(_0x595e62==null?void 0x0:_0x595e62[_0x7ddfc1(0x363)])??0x0};}let fe=class extends t[_0x2c7e3b(0x467)]{constructor(_0x3efb2e,_0x53bd74,_0x5061da,_0x19a7e9){const _0x4643cc=_0x2c7e3b;super(),this['_sheetCanvasFloatDomManagerService']=_0x3efb2e,this[_0x4643cc(0x37b)]=_0x53bd74,this[_0x4643cc(0x4b2)]=_0x5061da,this[_0x4643cc(0x1c7)]=_0x19a7e9,E(this,_0x4643cc(0x29f),new Map()),E(this,'_activeDomReadyChartIds',new Set()),E(this,_0x4643cc(0x330),new s[(_0x4643cc(0x23c))]()),E(this,'removeHost$',this[_0x4643cc(0x330)]['asObservable']()),this['disposeWithMe'](this[_0x4643cc(0x25e)]['remove$'][_0x4643cc(0x410)](_0x58f67b=>{const _0x526f48=_0x4643cc;let _0x504af8=this['_chartHostMap'][_0x526f48(0x406)](_0x58f67b['id']);_0x504af8!=null&&_0x504af8['isManaged']()&&(_0x504af8[_0x526f48(0x259)](),this['_removeHost$'][_0x526f48(0x386)](_0x58f67b['id']));}));}[_0x2c7e3b(0x3c2)](_0x4a026d){const _0x2a2fbe=_0x2c7e3b;if(_0x4a026d==null)return;let _0x222b84=this['_renderManagerService']['getRenderUnitById'](_0x4a026d),_0x190835=_0x222b84==null?void 0x0:_0x222b84[_0x2a2fbe(0x27d)];return _0x222b84==null||_0x190835==null?null:{'scene':_0x190835,'transformer':_0x190835[_0x2a2fbe(0x40b)](),'renderUnit':_0x222b84,'canvas':_0x222b84[_0x2a2fbe(0x1e0)][_0x2a2fbe(0x3c8)]()};}[_0x2c7e3b(0x444)](_0x65171e,_0xa68de3){const _0x4150b2=_0x2c7e3b;let _0x36fa5d=this[_0x4150b2(0x25e)],_0x3827f7=_0xa68de3||_0x4150b2(0x342),_0x4fcabb=_0x36fa5d[_0x4150b2(0x455)](_0x65171e);if(_0x4fcabb){let {unitId:_0x1f44f1,subUnitId:_0x11ad8f}=_0x4fcabb;_0x36fa5d['updateFloatDomProps'](_0x1f44f1,_0x11ad8f,_0x65171e,{'stroke':_0x3827f7});}}[_0x2c7e3b(0x2dc)](_0x9f708a,_0x3181d1){let _0x58a6b9=this['_sheetCanvasFloatDomManagerService'],_0x154f4a=_0x58a6b9['getFloatDomInfo'](_0x9f708a);if(_0x154f4a){let {unitId:_0x342453,subUnitId:_0x4ea983}=_0x154f4a;_0x58a6b9['updateFloatDomProps'](_0x342453,_0x4ea983,_0x9f708a,de(_0x3181d1));}}[_0x2c7e3b(0x2cb)](_0x1966de){const _0x290e4d=_0x2c7e3b;let _0x4bfca2=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x1966de);return _0x4bfca2?_0x4bfca2[_0x290e4d(0x1df)]:null;}[_0x2c7e3b(0x2e9)](_0x24be56){const _0x445a79=_0x2c7e3b;var _0x3ac99c;return((_0x3ac99c=this[_0x445a79(0x29f)][_0x445a79(0x406)](_0x24be56))==null?void 0x0:_0x3ac99c[_0x445a79(0x341)]())??!0x1;}[_0x2c7e3b(0x48b)](_0x761593){const _0x3fb440=_0x2c7e3b;var _0x4d94ea;(_0x4d94ea=this[_0x3fb440(0x29f)][_0x3fb440(0x406)](_0x761593))==null||_0x4d94ea[_0x3fb440(0x432)]();}['removeHost'](_0x2d94d8){const _0x957ee7=_0x2c7e3b;let _0x13f207=this[_0x957ee7(0x29f)][_0x957ee7(0x406)](_0x2d94d8);_0x13f207==null||_0x13f207[_0x957ee7(0x21d)](),this[_0x957ee7(0x29f)][_0x957ee7(0x188)](_0x2d94d8);}async['ensureHost'](_0x4cc8d9,_0x2dead5){const _0x594a8e=_0x2c7e3b;if(_0x2dead5===c['ChartHostRenderMode'][_0x594a8e(0x248)])return this['_createImageChartHost'](_0x4cc8d9);if(_0x2dead5===c['ChartHostRenderMode'][_0x594a8e(0x33e)])return this['_getOrCreateSheetChartHost'](_0x4cc8d9);let _0x57bc7e=this[_0x594a8e(0x3a4)](_0x4cc8d9);if(!_0x57bc7e)throw Error(_0x594a8e(0x32b));return _0x57bc7e[_0x594a8e(0x376)]();}['isDomReady'](_0x3de4f1){const _0x56274d=_0x2c7e3b;return this[_0x56274d(0x443)][_0x56274d(0x4b6)](_0x3de4f1);}[_0x2c7e3b(0x440)](_0x41cdad){const _0x5601d9=_0x2c7e3b;this['_activeDomReadyChartIds']['delete'](_0x41cdad)&&this[_0x5601d9(0x1c8)](_0x41cdad);}[_0x2c7e3b(0x367)](_0x14f2f4){const _0x113cde=_0x2c7e3b;let _0x5ea827=this['_getChartSnapshotKey'](_0x14f2f4);_0x5ea827&&this[_0x113cde(0x4b2)]['nextVersion'](_0x5ea827);}[_0x2c7e3b(0x3f5)](_0x4eba74){const _0x33b95f=_0x2c7e3b;let _0x375030=this['_getChartSnapshotKey'](_0x4eba74);return!_0x375030||!this[_0x33b95f(0x2cb)](_0x4eba74)?null:new ue(_0x4eba74,()=>this[_0x33b95f(0x2cb)](_0x4eba74),_0x96adf5=>this[_0x33b95f(0x2dc)](_0x4eba74,_0x96adf5),_0x375030,this['_chartSnapshotStoreService'],()=>this[_0x33b95f(0x1c8)](_0x4eba74));}[_0x2c7e3b(0x3a4)](_0x26b1f4){const _0x4359ab=_0x2c7e3b;if(!this['getHostSize'](_0x26b1f4))return null;this[_0x4359ab(0x1c7)][_0x4359ab(0x2d0)](_0x26b1f4,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0xb4e189=this[_0x4359ab(0x29f)][_0x4359ab(0x406)](_0x26b1f4);if(_0xb4e189)return _0xb4e189;let _0x5108f1=new le(_0x26b1f4,()=>this[_0x4359ab(0x25e)][_0x4359ab(0x455)](_0x26b1f4),()=>this['_getHostPlacement'](_0x26b1f4),_0x1ff96e=>this[_0x4359ab(0x2dc)](_0x26b1f4,_0x1ff96e),()=>this[_0x4359ab(0x2bc)],()=>this[_0x4359ab(0x286)](_0x26b1f4),()=>this[_0x4359ab(0x440)](_0x26b1f4));return this[_0x4359ab(0x29f)][_0x4359ab(0x3d5)](_0x26b1f4,_0x5108f1),_0x5108f1;}[_0x2c7e3b(0x286)](_0x4f73c6){const _0x1bc655=_0x2c7e3b;this[_0x1bc655(0x443)]['has'](_0x4f73c6)||(this[_0x1bc655(0x443)][_0x1bc655(0x499)](_0x4f73c6),this[_0x1bc655(0x1c8)](_0x4f73c6));}[_0x2c7e3b(0x44f)](_0x25d860){const _0x2ce64e=_0x2c7e3b;let _0x2faa45=this[_0x2ce64e(0x25e)][_0x2ce64e(0x455)](_0x25d860);return _0x2faa45?{'unitId':_0x2faa45['unitId'],'subUnitId':_0x2faa45['subUnitId'],'chartId':_0x25d860}:null;}[_0x2c7e3b(0x1c8)](_0x131a27){const _0xdd0089=_0x2c7e3b;var _0x28e72f,_0x2b5350,_0x2daa6d;let _0x3ee934=this[_0xdd0089(0x25e)]['getFloatDomInfo'](_0x131a27);if(!_0x3ee934)return;let _0x17c036=(_0x28e72f=this['_renderManagerService'][_0xdd0089(0x29b)](_0x3ee934['unitId']))==null?void 0x0:_0x28e72f['scene'],_0x3be3da=(_0x17c036==null||(_0x2b5350=_0x17c036['getObjectIncludeInGroup'])==null?void 0x0:_0x2b5350[_0xdd0089(0x372)](_0x17c036,(0x0,n[_0xdd0089(0x43f)])({'unitId':_0x3ee934['unitId'],'subUnitId':_0x3ee934[_0xdd0089(0x368)],'drawingId':_0x131a27})))??(_0x17c036==null?void 0x0:_0x17c036[_0xdd0089(0x44b)]((0x0,n[_0xdd0089(0x43f)])({'unitId':_0x3ee934[_0xdd0089(0x419)],'subUnitId':_0x3ee934[_0xdd0089(0x368)],'drawingId':_0x131a27})))??null;_0x3be3da==null||(_0x2daa6d=_0x3be3da[_0xdd0089(0x2a3)])==null||_0x2daa6d['call'](_0x3be3da,!0x0),_0x17c036==null||_0x17c036['makeDirty'](!0x0);}[_0x2c7e3b(0x26d)](_0x40e95a){const _0x5ab8d0=_0x2c7e3b;let _0x1c28f8=this[_0x5ab8d0(0x25e)]['getFloatDomInfo'](_0x40e95a);if(!_0x1c28f8)return null;let _0x3cf409=this[_0x5ab8d0(0x3c2)](_0x1c28f8[_0x5ab8d0(0x419)]),_0x15e9e1=_0x3cf409==null?void 0x0:_0x3cf409[_0x5ab8d0(0x27d)],_0x3c7741=document[_0x5ab8d0(0x1ec)](_0x1c28f8[_0x5ab8d0(0x348)]??_0x40e95a);return w(_0x1c28f8[_0x5ab8d0(0x1df)],{'scaleX':(_0x15e9e1==null?void 0x0:_0x15e9e1['scaleX'])??0x1,'scaleY':(_0x15e9e1==null?void 0x0:_0x15e9e1[_0x5ab8d0(0x475)])??0x1},_0x3c7741?{'left':_0x3c7741['offsetLeft'],'top':_0x3c7741[_0x5ab8d0(0x272)]}:void 0x0);}[_0x2c7e3b(0x21d)](){const _0x2b1247=_0x2c7e3b;this['_disposed']||(this[_0x2b1247(0x29f)][_0x2b1247(0x481)](_0x258d59=>_0x258d59[_0x2b1247(0x21d)]()),this[_0x2b1247(0x29f)][_0x2b1247(0x42c)](),this[_0x2b1247(0x443)][_0x2b1247(0x42c)](),this[_0x2b1247(0x330)][_0x2b1247(0x1dd)](),super[_0x2b1247(0x21d)]());}};fe=A([k(0x0,(0x0,t[_0x2c7e3b(0x1a4)])(i[_0x2c7e3b(0x421)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(u['IRenderManagerService'])),k(0x2,(0x0,t[_0x2c7e3b(0x1a4)])(se)),k(0x3,(0x0,t[_0x2c7e3b(0x1a4)])(o[_0x2c7e3b(0x18e)]))],fe);const j=(0x0,t['createIdentifier'])(_0x2c7e3b(0x278)),M=(0x0,t[_0x2c7e3b(0x47e)])('sheets-chart.ui.service');let N=class extends d['ChartUIService']{constructor(_0x4f4199,_0x4c5983,_0x4f84b6,_0x5c0b85,_0x341591,_0x5d1036){const _0x377b1f=_0x2c7e3b;super(_0x5d1036),this[_0x377b1f(0x316)]=_0x4f4199,this[_0x377b1f(0x1e7)]=_0x4c5983,this[_0x377b1f(0x4a8)]=_0x4f84b6,this[_0x377b1f(0x35c)]=_0x5c0b85,this['_univerInstanceService']=_0x341591,E(this,_0x377b1f(0x420),!0x1),E(this,_0x377b1f(0x39e),new s[(_0x377b1f(0x46a))](null)),E(this,_0x377b1f(0x193),new s['BehaviorSubject'](null)),E(this,_0x377b1f(0x417),new s['BehaviorSubject'](null)),E(this,'activeEditChart$',this[_0x377b1f(0x39e)][_0x377b1f(0x469)]()),E(this,_0x377b1f(0x298),this['_selectedElement$']['asObservable']()),E(this,_0x377b1f(0x1b9),this[_0x377b1f(0x417)][_0x377b1f(0x469)]());}get[_0x2c7e3b(0x1ae)](){const _0x575f81=_0x2c7e3b;return this[_0x575f81(0x316)][_0x575f81(0x3cb)]??null;}get[_0x2c7e3b(0x3cb)](){const _0x1f7d59=_0x2c7e3b;return this['_chartModelService'][_0x1f7d59(0x3cb)];}get[_0x2c7e3b(0x485)](){const _0x2d1faa=_0x2c7e3b;return this[_0x2d1faa(0x316)][_0x2d1faa(0x485)];}get['activeEditChart'](){return this['_activeEditChart$']['getValue']();}get['direction$'](){const _0x2e5f4b=_0x2c7e3b;return this['_localeService'][_0x2e5f4b(0x255)];}get[_0x2c7e3b(0x32a)](){const _0x59fa2e=_0x2c7e3b;return this[_0x59fa2e(0x420)];}[_0x2c7e3b(0x2e2)](_0x244ca8){const _0x3a414e=_0x2c7e3b;this[_0x3a414e(0x420)]=_0x244ca8;}['setActiveEditChart'](_0x3bcea8){const _0x4ea026=_0x2c7e3b;this[_0x4ea026(0x39e)][_0x4ea026(0x231)]()!==_0x3bcea8&&this[_0x4ea026(0x39e)][_0x4ea026(0x386)](_0x3bcea8);}[_0x2c7e3b(0x3cf)](_0xa81c6d){const _0x4242d0=_0x2c7e3b;return this[_0x4242d0(0x1c9)]===_0xa81c6d;}['setSelectedElement'](_0x4515b1){const _0x5c4a48=_0x2c7e3b;this[_0x5c4a48(0x193)][_0x5c4a48(0x386)](_0x4515b1);}[_0x2c7e3b(0x2f8)](_0xa5eb88,_0xdbcb76){const _0x4c36a2=_0x2c7e3b;this['_panelRoute$'][_0x4c36a2(0x386)]({'chartId':_0xa5eb88,'route':_0xdbcb76});}[_0x2c7e3b(0x206)](){const _0x48f0a9=_0x2c7e3b;this['_panelRoute$'][_0x48f0a9(0x386)](null);}[_0x2c7e3b(0x228)](_0x494727){const _0x5c23f7=_0x2c7e3b;let _0x525024=this[_0x5c23f7(0x3cb)];_0x525024&&this[_0x5c23f7(0x457)]({'chartModelId':_0x525024['id'],'range':_0x494727});}[_0x2c7e3b(0x365)](_0x24630b){const _0x120b96=_0x2c7e3b;var _0x22a5f8;let _0x42544f=this['activeChartModel'];if(!_0x42544f)return;let _0x417e73=(_0x22a5f8=this['_sheetsChartService']['getChartDataSource'](_0x42544f['id']))==null?void 0x0:_0x22a5f8[_0x120b96(0x209)]();if(!_0x417e73)return;let _0x7fc622={..._0x417e73,'isRowDirection':_0x24630b===c[_0x120b96(0x2e8)]['Row']};this[_0x120b96(0x457)]({'chartModelId':_0x42544f['id'],'range':_0x7fc622});}[_0x2c7e3b(0x40f)](_0x168464){const _0x1a6b4d=_0x2c7e3b;var _0x5bd797;this[_0x1a6b4d(0x4a8)][_0x1a6b4d(0x1a1)](e['ChartUpdateConfigCommand']['id'],{..._0x168464,'unitId':((_0x5bd797=this['_univerInstanceService'][_0x1a6b4d(0x4b0)]())==null?void 0x0:_0x5bd797['getUnitId']())??''});}['_executeChartUpdateSourceConfig'](_0x305456){const _0x1a16c5=_0x2c7e3b;var _0x33a624;this[_0x1a16c5(0x4a8)][_0x1a16c5(0x1a1)](e[_0x1a16c5(0x3dd)]['id'],{..._0x305456,'unitId':((_0x33a624=this[_0x1a16c5(0x199)][_0x1a16c5(0x4b0)]())==null?void 0x0:_0x33a624[_0x1a16c5(0x37f)]())??''});}[_0x2c7e3b(0x21d)](){const _0x4f3a3f=_0x2c7e3b;this[_0x4f3a3f(0x39e)][_0x4f3a3f(0x1dd)](),this[_0x4f3a3f(0x193)]['complete'](),this[_0x4f3a3f(0x417)]['complete'](),super[_0x4f3a3f(0x21d)]();}};N=A([k(0x0,(0x0,t[_0x2c7e3b(0x1a4)])(e[_0x2c7e3b(0x3b1)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(e['SheetsChartService'])),k(0x2,t[_0x2c7e3b(0x1a6)]),k(0x3,(0x0,t[_0x2c7e3b(0x1a4)])(t['LocaleService'])),k(0x4,t[_0x2c7e3b(0x2ce)]),k(0x5,(0x0,t['Inject'])(d[_0x2c7e3b(0x3fc)]))],N);const pe=e[_0x2c7e3b(0x4bc)][_0x2c7e3b(0x248)];var me=class extends c[_0x2c7e3b(0x4a9)]{constructor(_0x3c7f8f,_0x2926a2){const _0x41e534=_0x2c7e3b;super(_0x3c7f8f),this['_rect']=_0x2926a2,E(this,_0x41e534(0x2b1),0x0),E(this,_0x41e534(0x20d),void 0x0),E(this,'style',{});}[_0x2c7e3b(0x45a)](){const _0x3d6ff6=_0x2c7e3b;return this[_0x3d6ff6(0x192)];}[_0x2c7e3b(0x315)](_0x5d7fe6){const _0x275d1d=_0x2c7e3b;this[_0x275d1d(0x354)]=_0x5d7fe6;}[_0x2c7e3b(0x1af)](){const _0x975fbd=_0x2c7e3b;return++this[_0x975fbd(0x2b1)];}[_0x2c7e3b(0x332)](_0x3a2d93,_0x1f1a97){const _0x21004b=_0x2c7e3b;return _0x1f1a97===this[_0x21004b(0x2b1)]?(D(this[_0x21004b(0x20d)]),this[_0x21004b(0x20d)]=_0x3a2d93,!0x0):(D(_0x3a2d93),!0x1);}['requestPaint'](){}['invalidateSnapshot'](){const _0x13e13b=_0x2c7e3b;this[_0x13e13b(0x2b1)]+=0x1;}[_0x2c7e3b(0x310)](){const _0x1aeb61=_0x2c7e3b;let _0x2921ea=this[_0x1aeb61(0x20d)];return this[_0x1aeb61(0x20d)]=void 0x0,_0x2921ea;}[_0x2c7e3b(0x21d)](){D(this['_image']),this['_image']=void 0x0,super['dispose']();}};function he(_0x3697cd,_0x304505,_0x1f2505){const _0x3ee497=_0x2c7e3b;let _0x21163d=_0x3697cd[_0x3ee497(0x46d)](_0x304505);return(0x0,c[_0x3ee497(0x3a1)])({..._0x3697cd[_0x3ee497(0x354)],'runtime':{..._0x21163d,'layoutInset':0x8,..._0x1f2505===void 0x0?{}:{'addWatermark':_0x1f2505}},'direction':_0x304505},_0x3697cd['chartType']);}let P=class extends t[_0x2c7e3b(0x467)]{constructor(_0x1b08e6,_0x41d2ae,_0x168564,_0x58e08b,_0xf66ea2,_0x19ed36,_0x1b5ad4,_0x256548,_0x574ca2,_0x58f8a3,_0xb9bbd9,_0xc96f46,_0x436aad,_0x31dcac){const _0x1aec43=_0x2c7e3b;super(),this[_0x1aec43(0x283)]=_0x1b08e6,this['_sheetCanvasFloatDomManagerService']=_0x41d2ae,this[_0x1aec43(0x316)]=_0x168564,this[_0x1aec43(0x48e)]=_0x58e08b,this['_univerInstanceService']=_0xf66ea2,this[_0x1aec43(0x37b)]=_0x19ed36,this[_0x1aec43(0x35c)]=_0x1b5ad4,this[_0x1aec43(0x4bb)]=_0x256548,this['_injector']=_0x574ca2,this[_0x1aec43(0x2b6)]=_0x58f8a3,this[_0x1aec43(0x4ba)]=_0xb9bbd9,this[_0x1aec43(0x44c)]=_0xc96f46,this[_0x1aec43(0x4b2)]=_0x436aad,this[_0x1aec43(0x26a)]=_0x31dcac,E(this,_0x1aec43(0x4a6),new Map()),E(this,_0x1aec43(0x321),new Map()),E(this,_0x1aec43(0x40d),new Map()),E(this,_0x1aec43(0x288),new Map()),E(this,_0x1aec43(0x31a),new Map()),E(this,_0x1aec43(0x373),new Map()),E(this,_0x1aec43(0x23a),void 0x0),E(this,_0x1aec43(0x3d7),void 0x0),E(this,'_lastRenderInputMap',new Map()),E(this,_0x1aec43(0x395),null),E(this,'_lastActiveSheet',null);let _0xf171b8=(0x0,e[_0x1aec43(0x2a4)])(this['_injector']),_0x32a000=this['_configService'][_0x1aec43(0x407)](e[_0x1aec43(0x39d)]);this['_chartRenderMode']=(_0x32a000==null?void 0x0:_0x32a000[_0x1aec43(0x37a)])??pe,this[_0x1aec43(0x3d7)]=_0xf171b8[_0x1aec43(0x3ab)]!==0x1||_0xf171b8[0x0]!==_0x1aec43(0x2ec),this[_0x1aec43(0x3eb)](),this[_0x1aec43(0x1f9)](),this[_0x1aec43(0x358)](),this[_0x1aec43(0x260)](),this['handleActiveSubUnitChange']();}['getChartSnapshotImage'](_0x5a8576){const _0x29b6a1=_0x2c7e3b;let _0x4f80ad=this['_getChartSnapshotKey'](_0x5a8576);return _0x4f80ad?this[_0x29b6a1(0x4b2)]['getImage'](_0x4f80ad):void 0x0;}[_0x2c7e3b(0x2c0)](_0x31c470){const _0x5a0d9b=_0x2c7e3b;var _0x43eaa4;return((_0x43eaa4=this['_chartModelService'][_0x5a0d9b(0x3cb)])==null?void 0x0:_0x43eaa4['id'])===_0x31c470?e[_0x5a0d9b(0x4bc)][_0x5a0d9b(0x33e)]:this['_chartRenderMode'];}[_0x2c7e3b(0x44f)](_0x3374d8){const _0x10ff8c=_0x2c7e3b;let _0x498750=this['_sheetCanvasFloatDomManagerService'][_0x10ff8c(0x455)](_0x3374d8);return _0x498750?{'unitId':_0x498750[_0x10ff8c(0x419)],'subUnitId':_0x498750['subUnitId'],'chartId':_0x3374d8}:null;}[_0x2c7e3b(0x3eb)](){const _0x57243d=_0x2c7e3b;this[_0x57243d(0x23a)]===e[_0x57243d(0x4bc)][_0x57243d(0x248)]&&this[_0x57243d(0x320)](this['_sheetCanvasFloatDomManagerService']['registerRenderObjectFactory'](t['DrawingTypeEnum'][_0x57243d(0x382)],({key:_0x21f95e,config:_0x438721,unitId:_0x5ae8d2,subUnitId:_0x16bbe4,drawingId:_0x36563e})=>new ie(_0x21f95e,_0x438721,()=>this[_0x57243d(0x4b2)]['getImage']({'unitId':_0x5ae8d2,'subUnitId':_0x16bbe4,'chartId':_0x36563e}),()=>this['_chartHostProvider'][_0x57243d(0x355)](_0x36563e))));}[_0x2c7e3b(0x1f9)](){const _0x5a4a66=_0x2c7e3b;this['disposeWithMe'](this[_0x5a4a66(0x316)][_0x5a4a66(0x485)][_0x5a4a66(0x410)](_0x23404c=>{const _0x4ca0c6=_0x5a4a66;let _0x17216f=(_0x23404c==null?void 0x0:_0x23404c['id'])??null,_0xf46ac3=this[_0x4ca0c6(0x395)];_0xf46ac3!==_0x17216f&&(_0xf46ac3&&(this[_0x4ca0c6(0x283)][_0x4ca0c6(0x440)](_0xf46ac3),this[_0x4ca0c6(0x29a)](_0xf46ac3),this[_0x4ca0c6(0x317)](_0xf46ac3),this[_0x4ca0c6(0x2e4)](_0xf46ac3)),this[_0x4ca0c6(0x395)]=_0x17216f,_0x17216f&&(this['_chartHostProvider']['markHostNotReady'](_0x17216f),this[_0x4ca0c6(0x254)](_0x17216f),this[_0x4ca0c6(0x2e4)](_0x17216f)));}));}[_0x2c7e3b(0x358)](){const _0x354952=_0x2c7e3b;this[_0x354952(0x320)](this['_drawingManagerService'][_0x354952(0x196)][_0x354952(0x410)](_0x4cfb90=>{const _0x3f4336=_0x354952;var _0x3414ac;let _0x3a1fe0=(_0x3414ac=this[_0x3f4336(0x316)]['activeChartModel'])==null?void 0x0:_0x3414ac['id'];_0x3a1fe0&&_0x4cfb90[_0x3f4336(0x3e9)](_0x505990=>_0x505990[_0x3f4336(0x402)][_0x3f4336(0x3e9)](_0x59b9b4=>_0x59b9b4[_0x3f4336(0x449)]===_0x3a1fe0))&&this[_0x3f4336(0x316)]['setActiveChartModel'](null);})),this['disposeWithMe'](this['_drawingManagerService'][_0x354952(0x350)][_0x354952(0x410)](_0x1cf0d8=>{const _0x22186b=_0x354952;var _0x547d57;let _0x351cba=(_0x547d57=this[_0x22186b(0x316)]['activeChartModel'])==null?void 0x0:_0x547d57['id'];_0x351cba&&_0x1cf0d8[_0x22186b(0x3e9)](_0x4ba90e=>_0x4ba90e[_0x22186b(0x36e)][_0x22186b(0x449)]===_0x351cba||_0x4ba90e[_0x22186b(0x402)][_0x22186b(0x3e9)](_0x12fc37=>_0x12fc37[_0x22186b(0x449)]===_0x351cba))&&this[_0x22186b(0x316)][_0x22186b(0x18f)](null);}));}[_0x2c7e3b(0x260)](){const _0x12e1a1=_0x2c7e3b;this[_0x12e1a1(0x320)](this[_0x12e1a1(0x48e)]['featurePluginOrderUpdate$'][_0x12e1a1(0x410)](_0x1469bb=>{const _0x27fb39=_0x12e1a1;var _0x1145ec;let _0x3d089a=(_0x1145ec=this[_0x27fb39(0x316)][_0x27fb39(0x3cb)])==null?void 0x0:_0x1145ec['id'];if(!_0x3d089a){_0x1469bb['drawingIds']['forEach'](_0x3fda79=>{const _0x4247ff=_0x27fb39;this['_chartModelService'][_0x4247ff(0x300)](_0x3fda79)&&this[_0x4247ff(0x29a)](_0x3fda79);});return;}let _0x1a10be=this[_0x27fb39(0x25e)][_0x27fb39(0x455)](_0x3d089a);(_0x1a10be==null?void 0x0:_0x1a10be[_0x27fb39(0x419)])===_0x1469bb[_0x27fb39(0x419)]&&_0x1a10be[_0x27fb39(0x368)]===_0x1469bb[_0x27fb39(0x368)]&&this['_applyActiveChartRuntimeZIndex'](_0x3d089a);})),this[_0x12e1a1(0x320)](this[_0x12e1a1(0x48e)][_0x12e1a1(0x465)]['subscribe'](_0x473d95=>{const _0x1262c7=_0x12e1a1;var _0x5919ad;let _0x5f55cf=(_0x5919ad=this[_0x1262c7(0x316)]['activeChartModel'])==null?void 0x0:_0x5919ad['id'];if(!_0x5f55cf)return;let _0x47c11f=this[_0x1262c7(0x25e)][_0x1262c7(0x455)](_0x5f55cf);_0x47c11f&&_0x473d95['some'](_0x242e3e=>_0x242e3e[_0x1262c7(0x419)]===_0x47c11f[_0x1262c7(0x419)]&&_0x242e3e[_0x1262c7(0x368)]===_0x47c11f['subUnitId'])&&this[_0x1262c7(0x254)](_0x5f55cf);})),this[_0x12e1a1(0x320)](this[_0x12e1a1(0x316)][_0x12e1a1(0x319)][_0x12e1a1(0x410)](_0x2b48a1=>{const _0x31687a=_0x12e1a1;var _0x38941a;this['_lastRenderInputMap'][_0x31687a(0x188)](_0x2b48a1),this[_0x31687a(0x4b2)]['clearChart'](_0x2b48a1),this[_0x31687a(0x204)](_0x2b48a1),this[_0x31687a(0x283)][_0x31687a(0x440)](_0x2b48a1),((_0x38941a=this[_0x31687a(0x316)][_0x31687a(0x3cb)])==null?void 0x0:_0x38941a['id'])===_0x2b48a1?this[_0x31687a(0x316)]['setActiveChartModel'](null):this[_0x31687a(0x29a)](_0x2b48a1),this[_0x31687a(0x349)](_0x2b48a1);}));}[_0x2c7e3b(0x2e4)](_0x4ec3b7){const _0x3a69e6=_0x2c7e3b;let _0x4f289f=this[_0x3a69e6(0x34a)][_0x3a69e6(0x406)](_0x4ec3b7);_0x4f289f&&this[_0x3a69e6(0x4a0)](_0x4ec3b7,_0x4f289f['config'],_0x4f289f[_0x3a69e6(0x354)]);}[_0x2c7e3b(0x317)](_0x2e2ec4){const _0x489912=_0x2c7e3b;let _0x31c801=this[_0x489912(0x4a6)][_0x489912(0x406)](_0x2e2ec4);(_0x31c801==null?void 0x0:_0x31c801[_0x489912(0x2e5)])===_0x489912(0x4c0)&&(this[_0x489912(0x2c8)](_0x2e2ec4),_0x31c801[_0x489912(0x21d)](),this[_0x489912(0x4a6)]['delete'](_0x2e2ec4)),this[_0x489912(0x283)][_0x489912(0x440)](_0x2e2ec4),this[_0x489912(0x283)][_0x489912(0x18a)](_0x2e2ec4);}[_0x2c7e3b(0x349)](_0x3816de){const _0x200a56=_0x2c7e3b;let _0x14153c=this[_0x200a56(0x4a6)][_0x200a56(0x406)](_0x3816de);_0x14153c&&(this[_0x200a56(0x2c8)](_0x3816de),_0x14153c[_0x200a56(0x21d)](),this[_0x200a56(0x4a6)][_0x200a56(0x188)](_0x3816de)),this[_0x200a56(0x283)][_0x200a56(0x440)](_0x3816de),this[_0x200a56(0x283)]['removeHost'](_0x3816de);}[_0x2c7e3b(0x204)](_0x3680f9){const _0x314b85=_0x2c7e3b;var _0x184c3a,_0x2be7b6;(_0x184c3a=this[_0x314b85(0x26a)][_0x314b85(0x275)](c[_0x314b85(0x211)]))==null||(_0x2be7b6=_0x184c3a[_0x314b85(0x479)])==null||_0x2be7b6['call'](_0x184c3a,_0x3680f9);}[_0x2c7e3b(0x35e)](_0x5ee06b,_0x296c21){const _0x12cead=_0x2c7e3b;let _0x2b2ac9=this[_0x12cead(0x48e)][_0x12cead(0x27f)](_0x5ee06b,_0x296c21);Object[_0x12cead(0x305)](_0x2b2ac9??{})[_0x12cead(0x481)](_0x50936d=>{const _0x346728=_0x12cead;_0x50936d[_0x346728(0x1b5)]===t[_0x346728(0x241)][_0x346728(0x382)]&&this['_clearChartRuntimeCache'](_0x50936d['drawingId']);});}[_0x2c7e3b(0x2f7)](_0x3a1927,_0x5961cb){const _0x25567b=_0x2c7e3b;var _0x5388de;return((_0x5388de=_0x3a1927[_0x25567b(0x1d0)])==null?void 0x0:_0x5388de[_0x25567b(0x372)](_0x3a1927,_0x5961cb))??_0x3a1927[_0x25567b(0x44b)](_0x5961cb)??null;}[_0x2c7e3b(0x3aa)](_0x2c6e53){const _0x665e7f=_0x2c7e3b;var _0x106c3f;let _0x454f6b=this[_0x665e7f(0x25e)][_0x665e7f(0x455)](_0x2c6e53);if(!_0x454f6b)return null;let _0x49de99=(_0x106c3f=this[_0x665e7f(0x37b)][_0x665e7f(0x29b)](_0x454f6b[_0x665e7f(0x419)]))==null?void 0x0:_0x106c3f[_0x665e7f(0x27d)];if(!_0x49de99)return null;let _0x4c9a32=this['_getChartRenderObject'](_0x49de99,(0x0,n['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x454f6b[_0x665e7f(0x419)],'subUnitId':_0x454f6b[_0x665e7f(0x368)],'drawingId':_0x2c6e53}));return _0x4c9a32?{'info':_0x454f6b,'scene':_0x49de99,'chartObject':_0x4c9a32}:null;}[_0x2c7e3b(0x3de)](_0x1ae40a,_0x12f3c0){const _0x56b9a4=_0x2c7e3b;var _0x45026c,_0x8142b8,_0x20d67b,_0x867e11;let _0x56ee32=this[_0x56b9a4(0x3aa)](_0x1ae40a);_0x56ee32&&((_0x45026c=(_0x8142b8=_0x56ee32[_0x56b9a4(0x2ac)])[_0x56b9a4(0x1a8)])==null||_0x45026c[_0x56b9a4(0x372)](_0x8142b8,{'zIndex':_0x12f3c0}),(_0x20d67b=(_0x867e11=_0x56ee32['chartObject'])[_0x56b9a4(0x2a3)])==null||_0x20d67b['call'](_0x867e11,!0x0),_0x56ee32[_0x56b9a4(0x27d)][_0x56b9a4(0x2a3)](!0x0));}['_applyActiveChartRuntimeZIndex'](_0x1d7b69){const _0x28f7e4=_0x2c7e3b;let _0x7f2387=this[_0x28f7e4(0x25e)][_0x28f7e4(0x455)](_0x1d7b69);if(!_0x7f2387)return;let _0x2a1929=this['_drawingManagerService'][_0x28f7e4(0x1d3)](_0x7f2387[_0x28f7e4(0x419)],_0x7f2387[_0x28f7e4(0x368)]);this[_0x28f7e4(0x3de)](_0x1d7b69,_0x2a1929[_0x28f7e4(0x3ab)]);}[_0x2c7e3b(0x29a)](_0x4c57d8){const _0x4a4edd=_0x2c7e3b;let _0x597a0a=this['_sheetCanvasFloatDomManagerService'][_0x4a4edd(0x455)](_0x4c57d8);if(!_0x597a0a)return;let _0x3c7090=this[_0x4a4edd(0x48e)][_0x4a4edd(0x1d3)](_0x597a0a[_0x4a4edd(0x419)],_0x597a0a[_0x4a4edd(0x368)]),_0x57942a=_0x3c7090[_0x4a4edd(0x1ca)](_0x4c57d8);this[_0x4a4edd(0x3de)](_0x4c57d8,_0x57942a===-0x1?Math[_0x4a4edd(0x38b)](_0x3c7090['length']-0x1,0x0):_0x57942a);}[_0x2c7e3b(0x4ae)](_0x491abe,_0x150c68){const _0x348f69=_0x2c7e3b;let _0x56865c=this[_0x348f69(0x25e)][_0x348f69(0x455)](_0x491abe);if(_0x150c68['width']!==void 0x0&&_0x150c68['height']!==void 0x0&&_0x56865c){var _0xb9a00f;let {subUnitId:_0x531dec}=_0x56865c,_0x433cd5=(_0xb9a00f=this['_univerInstanceService'][_0x348f69(0x470)](t['UniverInstanceType']['UNIVER_SHEET']))==null?void 0x0:_0xb9a00f[_0x348f69(0x1bb)]();if((_0x433cd5==null?void 0x0:_0x433cd5[_0x348f69(0x41e)]())===_0x531dec){let {width:_0x2b4d4a,height:_0x504aff}=_0x150c68,_0x5d8d09=this[_0x348f69(0x316)]['getChartModel'](_0x491abe),_0x4353e7=_0x5d8d09==null?void 0x0:_0x5d8d09[_0x348f69(0x354)];if(Math[_0x348f69(0x2ee)](_0x2b4d4a-((_0x4353e7==null?void 0x0:_0x4353e7['width'])||0x0))>0x1||Math['abs'](_0x504aff-((_0x4353e7==null?void 0x0:_0x4353e7['height'])||0x0))>0x1){_0x5d8d09==null||_0x5d8d09[_0x348f69(0x3e0)]({..._0x4353e7,'width':_0x2b4d4a,'height':_0x504aff});let _0x14d143=this['_chartInstanceMap']['get'](_0x491abe);_0x14d143&&(this[_0x348f69(0x283)][_0x348f69(0x48b)](_0x491abe),_0x14d143[_0x348f69(0x41b)]());}}}}[_0x2c7e3b(0x2d3)](_0x49e3d3,_0x586a91,_0x2d4737=0x0){const _0x3df87b=_0x2c7e3b;let _0x3176f1=this[_0x3df87b(0x373)][_0x3df87b(0x406)](_0x49e3d3);_0x3176f1||(_0x3176f1=(0x0,t['debounce'])(_0x4b06f5=>{const _0x1837f2=_0x3df87b;this[_0x1837f2(0x4ae)](_0x49e3d3,_0x4b06f5);},_0x2d4737),this[_0x3df87b(0x373)][_0x3df87b(0x3d5)](_0x49e3d3,_0x3176f1)),_0x3176f1(_0x586a91);}[_0x2c7e3b(0x38e)](){const _0xbf9c73=_0x2c7e3b;let _0x39f077=this[_0xbf9c73(0x31a)],_0x7d8899=_0x36519f=>{const _0x36d81f=_0xbf9c73;if(!_0x39f077[_0x36d81f(0x4b6)](_0x36519f)){let _0x2b0bec=(0x0,t[_0x36d81f(0x1c0)])((_0x1d1242,_0x5435c4,_0x845436,_0x316026)=>{const _0xf33c54=_0x36d81f;var _0x26adea,_0x2f73b4;if(!_0x845436)return;(_0x26adea=_0x845436[_0xf33c54(0x2c4)])==null||_0x26adea[_0xf33c54(0x2f9)][_0xf33c54(0x481)]((_0x160de9,_0x1d2512)=>{const _0x2c3185=_0xf33c54;_0x160de9[_0x2c3185(0x3b0)]||=this[_0x2c3185(0x35c)]['t']('sheets-chart-ui.common.category')+'\x20'+(_0x1d2512+0x1);}),_0x845436[_0xf33c54(0x31e)][_0xf33c54(0x481)]((_0x30a9ba,_0x28509f)=>{const _0x14cda7=_0xf33c54;_0x30a9ba[_0x14cda7(0x21f)]||=this[_0x14cda7(0x35c)]['t']('sheets-chart-ui.chord.target')+'\x20'+(_0x28509f+0x1);});let _0x222261=this[_0xf33c54(0x3d0)](_0x1d1242,_0x316026),_0x5bc096=(_0x2f73b4=this[_0xf33c54(0x199)]['getCurrentUnitOfType'](t[_0xf33c54(0x339)][_0xf33c54(0x48c)]))==null?void 0x0:_0x2f73b4[_0xf33c54(0x1bb)]();(_0x5bc096==null?void 0x0:_0x5bc096['getSheetId']())===_0x5435c4&&this[_0xf33c54(0x4a0)](_0x1d1242['id'],_0x845436,_0x222261);},0x11);_0x39f077[_0x36d81f(0x3d5)](_0x36519f,_0x2b0bec);}return _0x39f077['get'](_0x36519f);};this[_0xbf9c73(0x320)](this[_0xbf9c73(0x199)][_0xbf9c73(0x4b8)][_0xbf9c73(0x410)](_0x5dfc4e=>{const _0x583ec9=_0xbf9c73;let _0x5d74a0=this[_0x583ec9(0x199)][_0x583ec9(0x470)](t[_0x583ec9(0x339)][_0x583ec9(0x48c)]);if(_0x5dfc4e&&_0x5d74a0&&_0x5d74a0[_0x583ec9(0x37f)]()===_0x5dfc4e){var _0x56023c;let _0x5122ea=_0x5d74a0[_0x583ec9(0x1bb)]()[_0x583ec9(0x41e)]();this[_0x583ec9(0x261)]&&(this['_lastActiveSheet'][_0x583ec9(0x419)]!==_0x5dfc4e||this[_0x583ec9(0x261)][_0x583ec9(0x368)]!==_0x5122ea)&&this['_clearSheetChartRuntimeCaches'](this[_0x583ec9(0x261)][_0x583ec9(0x419)],this[_0x583ec9(0x261)]['subUnitId']),this['_lastActiveSheet']={'unitId':_0x5dfc4e,'subUnitId':_0x5122ea};let _0x18f949=this[_0x583ec9(0x48e)]['getDrawingData'](_0x5dfc4e,_0x5122ea);if(!((_0x56023c=this[_0x583ec9(0x37b)][_0x583ec9(0x29b)](_0x5dfc4e))!=null&&_0x56023c[_0x583ec9(0x44e)](a[_0x583ec9(0x1cb)])[_0x583ec9(0x201)](_0x5122ea)))return;if(_0x18f949)for(let _0x4ee1a5 in _0x18f949){let {drawingId:_0x5c4bcd}=_0x18f949[_0x4ee1a5],_0x39e8ed=this['_chartModelService']['getChartModel'](_0x5c4bcd);_0x39e8ed&&_0x7d8899(_0x39e8ed['id'])(_0x39e8ed,_0x5122ea,_0x39e8ed[_0x583ec9(0x30a)],this[_0x583ec9(0x35c)][_0x583ec9(0x3b8)]());}}})),this[_0xbf9c73(0x320)](this[_0xbf9c73(0x4ba)][_0xbf9c73(0x49d)][_0xbf9c73(0x410)](()=>{const _0x5711b6=_0xbf9c73;var _0x4545de;let _0x17835c=this[_0x5711b6(0x199)][_0x5711b6(0x470)](t[_0x5711b6(0x339)][_0x5711b6(0x48c)]);if(!_0x17835c)return;let _0xc84c2c=_0x17835c[_0x5711b6(0x37f)](),_0xe1225f=_0x17835c[_0x5711b6(0x1bb)]()[_0x5711b6(0x41e)](),_0x4a69db=this[_0x5711b6(0x48e)][_0x5711b6(0x27f)](_0xc84c2c,_0xe1225f);if((_0x4545de=this['_renderManagerService']['getRenderUnitById'](_0xc84c2c))!=null&&_0x4545de[_0x5711b6(0x44e)](a[_0x5711b6(0x1cb)])[_0x5711b6(0x201)](_0xe1225f)&&_0x4a69db)for(let _0x3aae73 in _0x4a69db){let {drawingId:_0x2cb1be}=_0x4a69db[_0x3aae73],_0x3e3b35=this[_0x5711b6(0x316)]['getChartModel'](_0x2cb1be);_0x3e3b35&&_0x7d8899(_0x3e3b35['id'])(_0x3e3b35,_0xe1225f,_0x3e3b35[_0x5711b6(0x30a)],this[_0x5711b6(0x35c)]['getDirection']());}})),this[_0xbf9c73(0x320)](this[_0xbf9c73(0x48e)]['add$'][_0xbf9c73(0x410)](_0x28c796=>{_0x28c796['forEach'](_0x2e8e71=>{const _0x2e11bb=_0x389a;var _0x552bbf,_0x2065a9;let {drawingId:_0x42321b,unitId:_0x5b3bf2,subUnitId:_0x311ae0}=_0x2e8e71;if(!((_0x552bbf=this[_0x2e11bb(0x37b)][_0x2e11bb(0x29b)](_0x5b3bf2))!=null&&_0x552bbf[_0x2e11bb(0x44e)](a[_0x2e11bb(0x1cb)])[_0x2e11bb(0x201)](_0x311ae0)))return;let {drawingType:_0x35e614}=this[_0x2e11bb(0x48e)][_0x2e11bb(0x1a5)](_0x2e8e71);if(_0x35e614!==t['DrawingTypeEnum']['DRAWING_CHART'])return;let _0x41b0e3=this[_0x2e11bb(0x25e)][_0x2e11bb(0x455)](_0x42321b),_0x759aa=(_0x41b0e3==null?void 0x0:_0x41b0e3[_0x2e11bb(0x348)])??_0x42321b,_0xbb2fa7=_0x41b0e3==null?void 0x0:_0x41b0e3[_0x2e11bb(0x1df)],_0x3e2ed7=(_0x2065a9=this[_0x2e11bb(0x37b)][_0x2e11bb(0x29b)](_0x5b3bf2))==null?void 0x0:_0x2065a9[_0x2e11bb(0x27d)];_0xbb2fa7&&this[_0x2e11bb(0x320)](_0xbb2fa7==null?void 0x0:_0xbb2fa7[_0x2e11bb(0x32c)][_0x2e11bb(0x2a9)](_0x328be5=>{const _0xc45399=_0x2e11bb;let {type:_0x392fb3,value:_0x267ae8}=_0x328be5;if(u['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']===_0x392fb3||u[_0xc45399(0x1fe)][_0xc45399(0x2ec)]===_0x392fb3){let {width:_0x1e120f,height:_0x55cd47}=_0x267ae8;this[_0xc45399(0x2d3)](_0x42321b,{'width':_0x1e120f,'height':_0x55cd47},0x64);}})),_0x3e2ed7&&this[_0x2e11bb(0x320)](_0x3e2ed7[_0x2e11bb(0x32c)][_0x2e11bb(0x2a9)](_0x4e2e65=>{const _0x1cfb49=_0x2e11bb;var _0x3f16d4;_0x4e2e65['type']===u['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1cfb49(0x262)]&&(_0x3f16d4=document[_0x1cfb49(0x1ec)](_0x759aa))!=null&&_0x3f16d4['querySelector'](_0x1cfb49(0x423))&&this[_0x1cfb49(0x283)]['syncHostLayout'](_0x42321b);}));let _0x52170a=this[_0x2e11bb(0x316)][_0x2e11bb(0x300)](_0x42321b);_0x52170a&&this['disposeWithMe']((0x0,s['combineLatest'])([_0x52170a[_0x2e11bb(0x33a)],_0x52170a[_0x2e11bb(0x489)],this[_0x2e11bb(0x35c)][_0x2e11bb(0x255)]])[_0x2e11bb(0x410)](([_0x1258c6,_0x2ff139,_0x56054a])=>{_0x7d8899(_0x52170a['id'])(_0x52170a,_0x311ae0,_0x1258c6,_0x56054a);}));});})),this['disposeWithMe']((0x0,s[_0xbf9c73(0x433)])([this['_drawingManagerService'][_0xbf9c73(0x3c5)]])['subscribe'](([_0x483a85])=>{const _0x18256f=_0xbf9c73;_0x483a85[_0x18256f(0x481)](_0x50620e=>{const _0x5b1f89=_0x18256f;var _0x4f620a;let {drawingId:_0x28ef30}=_0x50620e;((_0x4f620a=this[_0x5b1f89(0x316)]['activeChartModel'])==null?void 0x0:_0x4f620a['id'])===_0x28ef30&&this[_0x5b1f89(0x316)][_0x5b1f89(0x18f)](null),this['_disposeChartEventSubscriptions'](_0x28ef30),this[_0x5b1f89(0x321)][_0x5b1f89(0x188)](_0x28ef30),this[_0x5b1f89(0x283)][_0x5b1f89(0x440)](_0x28ef30),this[_0x5b1f89(0x29a)](_0x28ef30),this[_0x5b1f89(0x349)](_0x28ef30),this[_0x5b1f89(0x4b2)][_0x5b1f89(0x2d4)](_0x28ef30),this[_0x5b1f89(0x204)](_0x28ef30),this[_0x5b1f89(0x34a)][_0x5b1f89(0x188)](_0x28ef30),this[_0x5b1f89(0x288)]['delete'](_0x28ef30);});}));}[_0x2c7e3b(0x279)](_0x26b2a3,_0x3d4b53){const _0x1c588f=_0x2c7e3b;var _0xd0a1a5;_0x3d4b53?this[_0x1c588f(0x288)][_0x1c588f(0x3d5)](_0x26b2a3,!0x0):this[_0x1c588f(0x288)][_0x1c588f(0x188)](_0x26b2a3),(_0xd0a1a5=this[_0x1c588f(0x4a6)][_0x1c588f(0x406)](_0x26b2a3))==null||_0xd0a1a5['setElementEditMode'](_0x3d4b53);}async['exportImage'](_0x3a0470){const _0x54ecf7=_0x2c7e3b;let _0xffd73f=this[_0x54ecf7(0x4a6)]['get'](_0x3a0470);if(_0xffd73f){let _0x29b457=this[_0x54ecf7(0x288)][_0x54ecf7(0x406)](_0x3a0470)===!0x0;_0x29b457&&_0xffd73f[_0x54ecf7(0x279)](!0x1);try{let _0x24dccd=await _0xffd73f[_0x54ecf7(0x3ad)]();if(_0x24dccd)return _0x24dccd;}finally{_0x29b457&&this[_0x54ecf7(0x4a6)][_0x54ecf7(0x406)](_0x3a0470)===_0xffd73f&&_0xffd73f['setElementEditMode'](!0x0);}}let _0x296e68=this['_getCurrentSnapshotImage'](_0x3a0470);return _0x296e68?(0x0,c[_0x54ecf7(0x1c5)])(_0x296e68):void 0x0;}['on'](_0x218526,_0x5922e5,_0x1d3dbd){const _0x1929f1=_0x2c7e3b;let _0x5b30a5=this[_0x1929f1(0x321)][_0x1929f1(0x406)](_0x218526);_0x5b30a5||(_0x5b30a5=new Map(),this[_0x1929f1(0x321)]['set'](_0x218526,_0x5b30a5));let _0xeabe80=_0x5b30a5[_0x1929f1(0x406)](_0x5922e5);_0xeabe80||(_0xeabe80=new Set(),_0x5b30a5[_0x1929f1(0x3d5)](_0x5922e5,_0xeabe80)),_0xeabe80[_0x1929f1(0x499)](_0x1d3dbd);let _0x5a592a=this[_0x1929f1(0x4a6)][_0x1929f1(0x406)](_0x218526);return _0x5a592a&&this[_0x1929f1(0x2b2)](_0x218526,_0x5a592a,_0x5922e5,_0x1d3dbd),{'dispose':()=>{const _0x3725a6=_0x1929f1;var _0x28ffb8;(_0x28ffb8=this[_0x3725a6(0x321)][_0x3725a6(0x406)](_0x218526))==null||(_0x28ffb8=_0x28ffb8[_0x3725a6(0x406)](_0x5922e5))==null||_0x28ffb8[_0x3725a6(0x188)](_0x1d3dbd),this[_0x3725a6(0x226)](_0x218526,_0x5922e5,_0x1d3dbd);}};}[_0x2c7e3b(0x411)](_0x4d2635){const _0x5e423f=_0x2c7e3b;let _0x46c290=this[_0x5e423f(0x199)][_0x5e423f(0x470)](t['UniverInstanceType'][_0x5e423f(0x48c)]),_0x544f66=_0x46c290==null?void 0x0:_0x46c290['getActiveSheet'](),_0x3a70f0=_0x46c290==null?void 0x0:_0x46c290[_0x5e423f(0x37f)](),_0x171455=_0x544f66==null?void 0x0:_0x544f66[_0x5e423f(0x41e)]();if(!(!_0x3a70f0||!_0x171455))return this['_chartSnapshotStoreService'][_0x5e423f(0x23d)]({'unitId':_0x3a70f0,'subUnitId':_0x171455,'chartId':_0x4d2635});}[_0x2c7e3b(0x2ba)](_0x470015,_0x16b16a){const _0x3ec997=_0x2c7e3b;let _0x414d75=this[_0x3ec997(0x321)][_0x3ec997(0x406)](_0x470015);_0x414d75&&_0x414d75['forEach']((_0x208cce,_0x247941)=>{_0x208cce['forEach'](_0x40f89b=>this['_bindChartEventHandler'](_0x470015,_0x16b16a,_0x247941,_0x40f89b));});}[_0x2c7e3b(0x2b2)](_0x42d65b,_0x4a484f,_0x27e3c4,_0x432984){const _0x3f6f12=_0x2c7e3b;let _0x323670=this[_0x3f6f12(0x40d)][_0x3f6f12(0x406)](_0x42d65b);_0x323670||(_0x323670=new Map(),this[_0x3f6f12(0x40d)]['set'](_0x42d65b,_0x323670));let _0x4ca1bf=_0x323670['get'](_0x27e3c4);_0x4ca1bf||(_0x4ca1bf=new Map(),_0x323670[_0x3f6f12(0x3d5)](_0x27e3c4,_0x4ca1bf)),!_0x4ca1bf[_0x3f6f12(0x4b6)](_0x432984)&&_0x4ca1bf[_0x3f6f12(0x3d5)](_0x432984,_0x4a484f['on'](_0x27e3c4,_0x432984));}[_0x2c7e3b(0x226)](_0x5f07a0,_0x146943,_0x47e8ae){const _0x34acdd=_0x2c7e3b;var _0x200faa,_0x29a845;let _0x2cd8c0=(_0x200faa=this['_chartEventSubscriptions']['get'](_0x5f07a0))==null?void 0x0:_0x200faa[_0x34acdd(0x406)](_0x146943);_0x2cd8c0==null||(_0x29a845=_0x2cd8c0['get'](_0x47e8ae))==null||_0x29a845[_0x34acdd(0x21d)](),_0x2cd8c0==null||_0x2cd8c0[_0x34acdd(0x188)](_0x47e8ae);}[_0x2c7e3b(0x2c8)](_0x1aafb3){const _0x478d02=_0x2c7e3b;let _0x34b467=this[_0x478d02(0x40d)]['get'](_0x1aafb3);_0x34b467==null||_0x34b467[_0x478d02(0x481)](_0x253d56=>{const _0x3c4af1=_0x478d02;_0x253d56[_0x3c4af1(0x481)](_0x146160=>_0x146160['dispose']()),_0x253d56['clear']();}),this[_0x478d02(0x40d)][_0x478d02(0x188)](_0x1aafb3);}[_0x2c7e3b(0x3d0)](_0x189fcc,_0x39a61a){const _0x1b14c6=_0x2c7e3b;return he(_0x189fcc,_0x39a61a,this[_0x1b14c6(0x3d7)]);}[_0x2c7e3b(0x41a)](_0xea36f3){const _0x241e24=_0x2c7e3b;return this[_0x241e24(0x378)](_0xea36f3)==null;}[_0x2c7e3b(0x378)](_0x14dbf0){const _0x3ee862=_0x2c7e3b;var _0x34ec22;let _0x25577b=this['_sheetCanvasFloatDomManagerService'][_0x3ee862(0x455)](_0x14dbf0);if(!_0x25577b)return _0x3ee862(0x361);let {subUnitId:_0x4b6086}=_0x25577b,_0x5d368e=(_0x34ec22=this[_0x3ee862(0x199)][_0x3ee862(0x470)](t[_0x3ee862(0x339)]['UNIVER_SHEET']))==null?void 0x0:_0x34ec22[_0x3ee862(0x1bb)]();if(!_0x5d368e)return _0x3ee862(0x34b);if(_0x5d368e[_0x3ee862(0x41e)]()!==_0x4b6086)return _0x3ee862(0x1eb);}async[_0x2c7e3b(0x4a0)](_0x7a996f,_0x3b2d87,_0x4e718e){const _0x361142=_0x2c7e3b;let _0x3fd00a=this['_renderModelManager']['getRenderModel'](c[_0x361142(0x211)]);if(!_0x3fd00a||(this[_0x361142(0x34a)][_0x361142(0x3d5)](_0x7a996f,{'config':_0x3b2d87,'style':_0x4e718e}),this[_0x361142(0x378)](_0x7a996f)))return;let _0x48932f=this['_resolveChartRenderMode'](_0x7a996f);if(_0x48932f===e[_0x361142(0x4bc)][_0x361142(0x248)])this[_0x361142(0x317)](_0x7a996f);else{var _0x23e799;this[_0x361142(0x283)][_0x361142(0x367)](_0x7a996f),((_0x23e799=this[_0x361142(0x316)][_0x361142(0x3cb)])==null?void 0x0:_0x23e799['id'])===_0x7a996f&&this[_0x361142(0x254)](_0x7a996f);}let _0x1f18be=_0x48932f===e['ChartRenderMode'][_0x361142(0x248)]?c[_0x361142(0x25a)]['Image']:c[_0x361142(0x25a)][_0x361142(0x33e)],_0x379d52=await this[_0x361142(0x283)][_0x361142(0x26c)](_0x7a996f,_0x1f18be);if(!_0x379d52)return;let _0xd896e6=this[_0x361142(0x3da)](_0x7a996f,_0x1f18be,_0x3fd00a);_0xd896e6['bind'](_0x379d52);try{await _0xd896e6[_0x361142(0x4a0)]({'chartId':_0x7a996f,'config':_0x3b2d87,'style':_0x4e718e});}catch(_0x5d0f19){if(_0x48932f!==e[_0x361142(0x4bc)][_0x361142(0x248)])throw _0x5d0f19;}}async[_0x2c7e3b(0x1db)](_0x17cadc,_0x314b1d,_0x574013){const _0x17cfb4=_0x2c7e3b;let _0x2e570c=this[_0x17cfb4(0x48e)][_0x17cfb4(0x27f)](_0x17cadc,_0x314b1d),_0x302136=this['_drawingManagerService'][_0x17cfb4(0x1d3)](_0x17cadc,_0x314b1d),_0x491ba5=Object['values'](_0x2e570c??{})['filter'](_0x2fd425=>_0x2fd425[_0x17cfb4(0x1b5)]===t['DrawingTypeEnum'][_0x17cfb4(0x382)]&&_0x2fd425[_0x17cfb4(0x250)]!==!0x0);await Promise[_0x17cfb4(0x326)](_0x491ba5[_0x17cfb4(0x1f5)](async _0x25f6c5=>{const _0x3fc280=_0x17cfb4;let _0x19b813=await this[_0x3fc280(0x26b)](_0x25f6c5,_0x302136);_0x19b813&&(_0x574013[_0x3fc280(0x30b)](_0x19b813,u[_0x3fc280(0x1e4)]),_0x25f6c5[_0x3fc280(0x474)]&&(0x0,l[_0x3fc280(0x2ff)])({'drawingId':_0x25f6c5[_0x3fc280(0x474)],'unitId':_0x17cadc,'subUnitId':_0x314b1d},_0x19b813,_0x574013,this[_0x3fc280(0x48e)]));}));}async[_0x2c7e3b(0x26b)](_0x21cd7f,_0x503056){const _0x249daf=_0x2c7e3b;let _0x3b8458=this[_0x249daf(0x316)]['getChartModel'](_0x21cd7f[_0x249daf(0x449)]),_0x54de7c=this[_0x249daf(0x26a)][_0x249daf(0x275)](c[_0x249daf(0x211)]),_0x317e37=_0x21cd7f['transform'],_0x330eda=_0x3b8458==null?void 0x0:_0x3b8458[_0x249daf(0x30a)];if(!_0x3b8458||!_0x54de7c||!_0x317e37||!_0x330eda||_0x317e37[_0x249daf(0x363)]==null||_0x317e37[_0x249daf(0x412)]==null)return null;let _0x282d79=new me(_0x21cd7f[_0x249daf(0x449)],{'width':_0x317e37['width'],'height':_0x317e37[_0x249daf(0x412)]}),_0x5a86da=_0x54de7c[_0x249daf(0x22d)](c['ChartHostRenderMode'][_0x249daf(0x248)],this['_createChartRenderInstanceContext']());_0x5a86da[_0x249daf(0x302)](_0x282d79);let _0x5bacde;try{await _0x5a86da[_0x249daf(0x4a0)]({'chartId':_0x21cd7f[_0x249daf(0x449)],'config':_0x330eda,'style':this[_0x249daf(0x3d0)](_0x3b8458,this[_0x249daf(0x35c)][_0x249daf(0x3b8)]())});}catch(_0x375c2d){console['error']('[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing',_0x375c2d);}finally{_0x5bacde=_0x282d79[_0x249daf(0x310)](),_0x5a86da[_0x249daf(0x21d)](),_0x282d79[_0x249daf(0x21d)]();}let _0x482135=this[_0x249daf(0x4b2)][_0x249daf(0x23d)]({'unitId':_0x21cd7f[_0x249daf(0x419)],'subUnitId':_0x21cd7f[_0x249daf(0x368)],'chartId':_0x21cd7f[_0x249daf(0x449)]}),_0x160f75=_0x5bacde??_0x482135;if(!_0x160f75)return null;let _0x571aff=_0x503056['indexOf'](_0x21cd7f[_0x249daf(0x449)]);return new ie((0x0,n[_0x249daf(0x43f)])(_0x21cd7f),{..._0x317e37,...i[_0x249daf(0x338)],...de(_0x282d79[_0x249daf(0x354)]),'visible':!0x0,'zIndex':_0x571aff===-0x1?Math['max'](_0x503056['length']-0x1,0x0):_0x571aff},()=>_0x160f75,void 0x0,_0x5bacde?()=>D(_0x5bacde):void 0x0);}[_0x2c7e3b(0x3da)](_0x1aad27,_0x494cb8,_0x597875){const _0x1b57d9=_0x2c7e3b;let _0x3bbe61=this[_0x1b57d9(0x4a6)]['get'](_0x1aad27);if((_0x3bbe61==null?void 0x0:_0x3bbe61['mode'])===_0x494cb8)return _0x3bbe61;_0x3bbe61&&(this[_0x1b57d9(0x2c8)](_0x1aad27),_0x3bbe61[_0x1b57d9(0x21d)](),this[_0x1b57d9(0x4a6)][_0x1b57d9(0x188)](_0x1aad27));let _0x272768=_0x597875['createChartInstance'](_0x494cb8,this[_0x1b57d9(0x23b)]());return this[_0x1b57d9(0x4a6)][_0x1b57d9(0x3d5)](_0x1aad27,_0x272768),_0x272768['setElementEditMode'](this[_0x1b57d9(0x288)]['get'](_0x1aad27)===!0x0),this['_bindChartEventHandlers'](_0x1aad27,_0x272768),_0x272768;}[_0x2c7e3b(0x23b)](){const _0x1f86c2=_0x2c7e3b;return{'resolveHostStyle':({style:_0x440305})=>(0x0,c[_0x1f86c2(0x454)])({'style':_0x440305,'getRenderColor':_0x34abb7=>this['_chartThemeService'][_0x1f86c2(0x456)](_0x34abb7)}),'resolveRenderBackgroundColor':({style:_0x25b246})=>this['_chartThemeService'][_0x1f86c2(0x456)]((0x0,c[_0x1f86c2(0x3f8)])(_0x25b246))};}[_0x2c7e3b(0x3ac)](){const _0x4b223a=_0x2c7e3b;this['_renderDebounceMap'][_0x4b223a(0x481)](_0xe7bb10=>_0xe7bb10[_0x4b223a(0x2e7)]()),this[_0x4b223a(0x31a)][_0x4b223a(0x42c)](),this[_0x4b223a(0x373)][_0x4b223a(0x481)](_0x5a2ed5=>_0x5a2ed5['cancel']()),this[_0x4b223a(0x373)][_0x4b223a(0x42c)]();}[_0x2c7e3b(0x21d)](){const _0x35089c=_0x2c7e3b;Array[_0x35089c(0x3f2)](this[_0x35089c(0x4a6)][_0x35089c(0x2ae)]())[_0x35089c(0x481)](_0xd0b990=>this[_0x35089c(0x349)](_0xd0b990)),this['_chartElementEditMode'][_0x35089c(0x42c)](),this['_cancelDebouncedCallbacks'](),this[_0x35089c(0x34a)]['clear'](),this[_0x35089c(0x395)]=null,this[_0x35089c(0x261)]=null,super[_0x35089c(0x21d)]();}};P=A([k(0x0,j),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(i['SheetCanvasFloatDomManagerService'])),k(0x2,(0x0,t['Inject'])(e['ChartModelService'])),k(0x3,n[_0x2c7e3b(0x496)]),k(0x4,t['IUniverInstanceService']),k(0x5,(0x0,t[_0x2c7e3b(0x1a4)])(u['IRenderManagerService'])),k(0x6,(0x0,t[_0x2c7e3b(0x1a4)])(t[_0x2c7e3b(0x1ac)])),k(0x7,M),k(0x8,(0x0,t[_0x2c7e3b(0x1a4)])(t[_0x2c7e3b(0x2f1)])),k(0x9,(0x0,t['Inject'])(c[_0x2c7e3b(0x24c)])),k(0xa,(0x0,t[_0x2c7e3b(0x1a4)])(t[_0x2c7e3b(0x2fe)])),k(0xb,t[_0x2c7e3b(0x304)]),k(0xc,(0x0,t[_0x2c7e3b(0x1a4)])(se)),k(0xd,c['IChartRenderModelManagerService'])],P);function F(_0x435243){const _0x479af1=_0x2c7e3b;let _0x25c08d=_0x435243[_0x479af1(0x406)](r[_0x479af1(0x42a)])['getFocusDrawings']();if(_0x25c08d[_0x479af1(0x3ab)]!==0x1)return null;let _0x16d78e=_0x25c08d[0x0];return _0x16d78e['drawingType']===t['DrawingTypeEnum'][_0x479af1(0x382)]?_0x16d78e:null;}function ge(_0x2fb61b,_0x1ad34e){const _0x348f8d=_0x2c7e3b;let _0x6bf7b8=document[_0x348f8d(0x2b3)]('a');_0x6bf7b8[_0x348f8d(0x3cc)]=_0x2fb61b,_0x6bf7b8[_0x348f8d(0x38d)]=_0x1ad34e,_0x6bf7b8['click']();}const I={'id':_0x2c7e3b(0x3cd),'type':t['CommandType'][_0x2c7e3b(0x2eb)],'handler':(_0x5dccd9,_0xb07d44)=>{const _0x57fcea=_0x2c7e3b;let _0x3c76f7=F(_0x5dccd9);return _0x3c76f7?_0x5dccd9[_0x57fcea(0x406)](t['ICommandService'])[_0x57fcea(0x1a1)](S['id'],{'unitId':_0x3c76f7[_0x57fcea(0x419)],'subUnitId':_0x3c76f7[_0x57fcea(0x368)],'drawingId':_0x3c76f7[_0x57fcea(0x449)],..._0xb07d44!=null&&_0xb07d44[_0x57fcea(0x45d)]?{'route':_0xb07d44[_0x57fcea(0x45d)]}:{}}):!0x1;}},L={'id':'sheet.command.chart.copy-focused-chart','type':t[_0x2c7e3b(0x494)]['COMMAND'],'handler':_0x358d02=>F(_0x358d02)?_0x358d02['get'](t['ICommandService'])['executeCommand'](a[_0x2c7e3b(0x3fd)]['id']):!0x1},R={'id':_0x2c7e3b(0x239),'type':t[_0x2c7e3b(0x494)]['COMMAND'],'handler':async _0x250643=>{const _0x222a89=_0x2c7e3b;let _0x26ba81=F(_0x250643);if(!_0x26ba81)return!0x1;let _0x546a25=await _0x250643[_0x222a89(0x406)](P)[_0x222a89(0x2a2)](_0x26ba81['drawingId']);return _0x546a25?(ge(_0x546a25,_0x26ba81[_0x222a89(0x449)]+_0x222a89(0x23e)),!0x0):!0x1;}},z={'id':_0x2c7e3b(0x1e9),'type':t[_0x2c7e3b(0x494)][_0x2c7e3b(0x2eb)],'handler':_0x5c1f48=>{const _0x4162af=_0x2c7e3b;let _0x470dae=F(_0x5c1f48);return _0x470dae?_0x5c1f48[_0x4162af(0x406)](t[_0x4162af(0x1a6)])[_0x4162af(0x1a1)](r[_0x4162af(0x1b6)]['id'],{'unitId':_0x470dae[_0x4162af(0x419)],'drawings':[{'unitId':_0x470dae[_0x4162af(0x419)],'subUnitId':_0x470dae[_0x4162af(0x368)],'drawingId':_0x470dae[_0x4162af(0x449)],'drawingType':t[_0x4162af(0x241)][_0x4162af(0x382)]}]}):!0x1;}},_e='SHEETS_CHART_CONTEXT_MENU';function B(_0x561b42){const _0x51f788=_0x2c7e3b;let _0x4d6700=_0x561b42['get'](r[_0x51f788(0x42a)]);return _0x4d6700[_0x51f788(0x287)][_0x51f788(0x3df)]((0x0,s[_0x51f788(0x1e2)])(_0x4d6700['getFocusDrawings']()),(0x0,s[_0x51f788(0x1f5)])(()=>F(_0x561b42)==null));}function ve(_0xefb443){const _0x87b70e=_0x2c7e3b;return{'id':I['id'],'commandId':I['id'],'type':o['MenuItemType'][_0x87b70e(0x1f4)],'title':_0xefb443['get'](t[_0x87b70e(0x1ac)])['t'](_0x87b70e(0x3af)),'icon':_0x87b70e(0x2f6),'hidden$':B(_0xefb443)};}function ye(_0x1f0d9c){const _0x12f642=_0x2c7e3b;return{'id':L['id'],'commandId':L['id'],'type':o[_0x12f642(0x436)]['BUTTON'],'title':_0x1f0d9c[_0x12f642(0x406)](t[_0x12f642(0x1ac)])['t']('sheets-chart-ui.common.copy'),'icon':_0x12f642(0x442),'hidden$':B(_0x1f0d9c)};}function be(_0x1fb4fc){const _0x337880=_0x2c7e3b;return{'id':R['id'],'commandId':R['id'],'type':o['MenuItemType'][_0x337880(0x1f4)],'title':_0x1fb4fc['get'](t[_0x337880(0x1ac)])['t'](_0x337880(0x435)),'icon':_0x337880(0x1a7),'hidden$':B(_0x1fb4fc)};}function xe(_0x285c2b){const _0x5c2f71=_0x2c7e3b;return{'id':z['id'],'commandId':z['id'],'type':o[_0x5c2f71(0x436)][_0x5c2f71(0x1f4)],'title':_0x285c2b[_0x5c2f71(0x406)](t[_0x5c2f71(0x1ac)])['t'](_0x5c2f71(0x247)),'icon':_0x5c2f71(0x245),'hidden$':B(_0x285c2b)};}const V={'type':t[_0x2c7e3b(0x494)][_0x2c7e3b(0x2eb)],'id':_0x2c7e3b(0x284),'handler':async(_0x187e44,_0x40e2b9)=>{const _0x44f701=_0x2c7e3b;let _0x16ce3c=(0x0,f[_0x44f701(0x19b)])(_0x187e44['get'](t[_0x44f701(0x2ce)]));if(!_0x16ce3c)return!0x1;let _0x15443f=_0x187e44['get'](f['SheetsSelectionsService'])['getCurrentLastSelection']();if(!_0x15443f)return!0x1;let {range:_0x503318}=_0x15443f,_0xeaf488=_0x187e44[_0x44f701(0x406)](t['ICommandService']),{unitId:_0x3f43a6,subUnitId:_0x1efa5a}=_0x16ce3c,{pieSecondaryPlotType:_0x258cac,value:_0x40d295}=_0x40e2b9,_0x43c70f=_0x258cac!==void 0x0;if(_0x43c70f&&(_0x40d295!==c['ChartTypeBits']['Pie']||_0x258cac!==c[_0x44f701(0x202)][_0x44f701(0x364)]&&_0x258cac!==c['PieSecondaryPlotType'][_0x44f701(0x1c3)]))return!0x1;let _0xc3d944=_0x43c70f?(0x0,t[_0x44f701(0x495)])():void 0x0;return _0xeaf488[_0x44f701(0x1a1)](e[_0x44f701(0x26e)]['id'],{'unitId':_0x3f43a6,'subUnitId':_0x1efa5a,'chartType':_0x40d295,..._0xc3d944&&_0x258cac?{'chartId':_0xc3d944,'config':{'unitId':_0x3f43a6,'chartModelId':_0xc3d944,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x258cac}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x3f43a6,'subUnitId':_0x1efa5a,'range':_0x503318}}});}};function Se(_0x461b51,_0x1ca2cb){const _0x187e7b=_0x2c7e3b;return _0x461b51==null||Array[_0x187e7b(0x463)](_0x461b51)?'':Ce(_0x461b51[_0x187e7b(0x464)],_0x1ca2cb);}function Ce(_0x50b6db,_0x174820){const _0xe76c8e=_0x2c7e3b;var _0x4214e9;let {unitId:_0x3591d8,subUnitId:_0xa1ddac,range:_0x1bdefd}=_0x50b6db,_0x350538=(_0x4214e9=_0x174820[_0xe76c8e(0x1f8)](_0x3591d8))==null?void 0x0:_0x4214e9['getSheetBySheetId'](_0xa1ddac);return _0x350538?(0x0,p[_0xe76c8e(0x194)])(_0x350538[_0xe76c8e(0x409)](),_0x1bdefd):'';}const we=new Set([_0x2c7e3b(0x397),_0x2c7e3b(0x462)]),Te=d['CHART_TYPE_CATALOG'][_0x2c7e3b(0x379)](_0x4cc311=>!we[_0x2c7e3b(0x4b6)](_0x4cc311[_0x2c7e3b(0x352)]))[_0x2c7e3b(0x1f5)](_0x2b4ff8=>({'id':'id'in _0x2b4ff8?_0x2b4ff8['id']:void 0x0,'labelId':_0x2b4ff8[_0x2c7e3b(0x352)],'pieSecondaryPlotType':_0x2c7e3b(0x2b8)in _0x2b4ff8?_0x2b4ff8[_0x2c7e3b(0x2b8)]:void 0x0,'value':_0x2b4ff8[_0x2c7e3b(0x4be)],'icon':_0x2b4ff8[_0x2c7e3b(0x2fa)]}));function Ee(_0x4a6134=Te){const _0x2433f2=_0x2c7e3b;return _0x4a6134[_0x2433f2(0x1f5)](({id:_0x32c01e,icon:_0x1ca4f0,value:_0xb1a294})=>{const _0x547e5e=_0x2433f2;let _0x55fdaa=(0x0,d['resolveChartCreationIntent'])(_0x32c01e??String(_0xb1a294)),_0x6beccd=_0x55fdaa?{'value':_0x55fdaa[_0x547e5e(0x334)],..._0x55fdaa['pieSecondaryPlotType']?{'pieSecondaryPlotType':_0x55fdaa[_0x547e5e(0x2b8)]}:{}}:{'value':_0xb1a294};return{'icon':_0x1ca4f0,'value':_0x32c01e??_0xb1a294,'params':_0x6beccd};});}const De=(_0x72b0d1,_0x4c7a7e)=>{const _0x53488f=_0x2c7e3b;if(_0x4c7a7e[_0x53488f(0x3ab)]===0x1&&_0x4c7a7e[0x0]===_0x53488f(0x2ec))return _0x72b0d1;if(_0x4c7a7e[_0x53488f(0x3ab)]>0x1){let _0x32f01f=new Set();for(let _0x5c5382 of _0x4c7a7e)_0x32f01f[_0x53488f(0x499)](Number(_0x5c5382));return _0x72b0d1[_0x53488f(0x379)](_0x1007fb=>_0x32f01f[_0x53488f(0x4b6)](_0x1007fb[_0x53488f(0x4be)]));}return[];};function Oe(_0x8a2761){const _0x32e45d=_0x2c7e3b;let _0x40be9b=_0x8a2761[_0x32e45d(0x406)](t[_0x32e45d(0x2ce)]),_0x4846aa=(0x0,e['getAllowedChartTypes'])(_0x8a2761),_0x11a208=De(Te[_0x32e45d(0x25c)](),_0x4846aa),_0x19f5cb=_0x8a2761['get'](t['LocaleService']),_0x465ce1=Ee(_0x11a208)[_0x32e45d(0x1f5)]((_0x30d133,_0x21fd09)=>({..._0x30d133,'label':_0x19f5cb['t']('sheets-chart-ui.chartTypes.'+_0x11a208[_0x21fd09][_0x32e45d(0x352)])}));return{'id':V['id'],'type':o[_0x32e45d(0x436)]['SELECTOR'],'selectionsCommandId':V['id'],'selections':_0x465ce1,'icon':'ChartIcon','tooltip':_0x19f5cb['t'](_0x32e45d(0x246)),'activated$':(0x0,a[_0x32e45d(0x290)])(_0x40be9b,!0x1,()=>new s[(_0x32e45d(0x415))](_0x55437a=>{const _0x30be7d=_0x32e45d;_0x55437a[_0x30be7d(0x386)](!0x1);})),'hidden$':(0x0,o[_0x32e45d(0x27a)])(_0x8a2761,t['UniverInstanceType'][_0x32e45d(0x48c)]),'disabled$':(0x0,a['getCurrentRangeDisable$'])(_0x8a2761)};}const ke={[o[_0x2c7e3b(0x219)]['MEDIA']]:{[V['id']]:{'order':0x4,'menuItemFactory':Oe}},[o[_0x2c7e3b(0x329)][_0x2c7e3b(0x24e)]]:{[_e]:{'order':0x6,[o[_0x2c7e3b(0x35f)][_0x2c7e3b(0x2ca)]]:{[I['id']]:{'order':0x0,'menuItemFactory':ve},[L['id']]:{'order':0x1,'menuItemFactory':ye},[R['id']]:{'order':0x2,'menuItemFactory':be},[z['id']]:{'order':0x3,'menuItemFactory':xe}}}}};function Ae(_0x3973f1){const _0x35d7cc=_0x2c7e3b;return _0x3973f1===c['ChartTypeBits'][_0x35d7cc(0x439)]||_0x3973f1===c['ChartTypeBits'][_0x35d7cc(0x293)]||_0x3973f1===c[_0x35d7cc(0x45e)]['Boxplot']||c['chartBitsUtils'][_0x35d7cc(0x303)](_0x3973f1,c[_0x35d7cc(0x45e)][_0x35d7cc(0x1e5)])||c[_0x35d7cc(0x4aa)][_0x35d7cc(0x303)](_0x3973f1,c[_0x35d7cc(0x45e)][_0x35d7cc(0x37e)])||c['chartBitsUtils'][_0x35d7cc(0x303)](_0x3973f1,c['ChartTypeBits'][_0x35d7cc(0x1a3)])||c[_0x35d7cc(0x4aa)][_0x35d7cc(0x303)](_0x3973f1,c[_0x35d7cc(0x45e)][_0x35d7cc(0x264)]);}function je(_0x1d7bcb){const _0x3767c3=_0x2c7e3b;return Ae(_0x1d7bcb)||c[_0x3767c3(0x4aa)]['baseOn'](_0x1d7bcb,c[_0x3767c3(0x45e)][_0x3767c3(0x364)])||c[_0x3767c3(0x4aa)][_0x3767c3(0x303)](_0x1d7bcb,c['ChartTypeBits'][_0x3767c3(0x3ed)])||c[_0x3767c3(0x4aa)][_0x3767c3(0x303)](_0x1d7bcb,c[_0x3767c3(0x45e)][_0x3767c3(0x47c)]);}function Me(_0x97164a,_0x324395){const _0x518203=_0x2c7e3b;let _0x2fcc23=(0x0,d['resolveChartElementSelection'])(_0x97164a,_0x324395),_0x258a13=_0x2fcc23?(0x0,d[_0x518203(0x3d3)])(_0x2fcc23[_0x518203(0x311)]):void 0x0;if(!(!_0x2fcc23||!_0x258a13))return{..._0x2fcc23,'route':_0x258a13,'showFloatMenu':je(_0x97164a[_0x518203(0x334)])&&_0x2fcc23[_0x518203(0x38a)]};}var Ne;const Pe={'axis':{...d[_0x2c7e3b(0x393)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':d[_0x2c7e3b(0x1c1)],'heatmap':d[_0x2c7e3b(0x408)],'indicatorLine':d['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'legend':d['DEFAULT_CHART_LEGEND_VALUES'],'lineAndArea':d['DEFAULT_CHART_LINE_AND_AREA_VALUES'],'pareto':d['DEFAULT_CHART_PARETO_VALUES'],'pie':{...d['DEFAULT_CHART_PIE_VALUES'],'doughnutHole':0.5,'pieHole':0x0},'relation':{...d[_0x2c7e3b(0x3a8)],'useValueAsSymbolSize':!0x0},'radar':d[_0x2c7e3b(0x48d)],'series':{...d[_0x2c7e3b(0x1f6)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Ne=c[_0x2c7e3b(0x313)][_0x2c7e3b(0x296)])==null?void 0x0:Ne[_0x2c7e3b(0x1fb)])??!0x1}},'style':d['DEFAULT_CHART_STYLE_VALUES'],'titles':d[_0x2c7e3b(0x21b)],'trendline':d['DEFAULT_CHART_TRENDLINE_VALUES'],'waterfall':{...d[_0x2c7e3b(0x49a)],'useSubtotal':!0x0},'waterfallStyle':d[_0x2c7e3b(0x2be)],'wordCloud':d[_0x2c7e3b(0x385)]},Fe=_0x1b10ed=>_0x1b10ed[_0x2c7e3b(0x470)](t[_0x2c7e3b(0x339)]['UNIVER_SHEET'])['getUnitId'](),Ie=_0x3564ee=>{const _0x1fe76c=_0x2c7e3b;var _0x27020b;return(_0x27020b=_0x3564ee[_0x1fe76c(0x470)](t[_0x1fe76c(0x339)][_0x1fe76c(0x48c)])[_0x1fe76c(0x1bb)]())==null?void 0x0:_0x27020b[_0x1fe76c(0x41e)]();},Le=[c[_0x2c7e3b(0x45e)][_0x2c7e3b(0x1e5)],c[_0x2c7e3b(0x45e)][_0x2c7e3b(0x293)],c['ChartTypeBits']['WordCloud'],c[_0x2c7e3b(0x45e)]['Scatter'],c['ChartTypeBits'][_0x2c7e3b(0x240)],c['ChartTypeBits']['Relation'],c[_0x2c7e3b(0x45e)][_0x2c7e3b(0x448)],c['ChartTypeBits'][_0x2c7e3b(0x40c)],c['ChartTypeBits'][_0x2c7e3b(0x473)],c[_0x2c7e3b(0x45e)][_0x2c7e3b(0x401)],c[_0x2c7e3b(0x45e)][_0x2c7e3b(0x37d)],c['ChartTypeBits'][_0x2c7e3b(0x43a)],c['ChartTypeBits'][_0x2c7e3b(0x256)],c[_0x2c7e3b(0x45e)]['Gauge'],c[_0x2c7e3b(0x45e)][_0x2c7e3b(0x4bf)]];function Re(){const _0x1c49ec=_0x2c7e3b;let _0x3bf179=(0x0,d[_0x1c49ec(0x294)])();return(0x0,_[_0x1c49ec(0x3ae)])(d['ChartGradientFillField'],{'visible':Le[_0x1c49ec(0x273)](_0x5d1859=>!c['chartBitsUtils'][_0x1c49ec(0x303)](_0x3bf179,_0x5d1859))});}const ze=_0x94039a=>{const _0x33e39d=_0x2c7e3b;let _0x33e4b2=(0x0,o['useDependency'])(M),_0x4419ef=(0x0,o['useDependency'])(t[_0x33e39d(0x1ac)]),_0xd6e0e5=(0x0,e[_0x33e39d(0x2a4)])((0x0,o[_0x33e39d(0x459)])(t[_0x33e39d(0x2f1)])),_0x1f1837=(0x0,m[_0x33e39d(0x468)])(()=>(0x0,d[_0x33e39d(0x1e8)])(De(Te['concat'](),_0xd6e0e5)[_0x33e39d(0x1f5)](_0x35fe7a=>({'id':_0x35fe7a['id'],'label':_0x4419ef['t'](_0x33e39d(0x1ab)+_0x35fe7a[_0x33e39d(0x352)]),'pieSecondaryPlotType':_0x35fe7a[_0x33e39d(0x2b8)],'value':_0x35fe7a[_0x33e39d(0x4be)]}))),[_0xd6e0e5,_0x4419ef]),_0x1a477b=(0x0,o[_0x33e39d(0x36f)])(_0x33e4b2['activeChartModel$'],_0x33e4b2[_0x33e39d(0x3cb)]),_0x115a94=(0x0,o[_0x33e39d(0x36f)])(_0x1a477b==null?void 0x0:_0x1a477b[_0x33e39d(0x46c)]['rangeInfo$'],_0x1a477b==null?void 0x0:_0x1a477b['dataSource']['getRangeInfo']()),_0x27a5da=_0x115a94&&!Array[_0x33e39d(0x463)](_0x115a94)&&_0x115a94[_0x33e39d(0x2c7)]?c[_0x33e39d(0x2e8)][_0x33e39d(0x362)]:c['DataOrientation'][_0x33e39d(0x37e)];return(0x0,_[_0x33e39d(0x3f4)])(_0x33e39d(0x478),{'className':_0x33e39d(0x263),'children':[(0x0,_[_0x33e39d(0x3ae)])(d[_0x33e39d(0x43d)],{'options':_0x1f1837}),(0x0,_['jsx'])(d[_0x33e39d(0x29d)],{}),(0x0,_[_0x33e39d(0x3ae)])(d[_0x33e39d(0x3b9)],{}),(0x0,_['jsx'])(Re,{}),(0x0,_['jsx'])(d[_0x33e39d(0x1f2)],{}),(0x0,_[_0x33e39d(0x3ae)])(Be,{'dataRange':_0x115a94}),(0x0,_[_0x33e39d(0x3ae)])(d[_0x33e39d(0x431)],{'categoryToggleLabel':_0x4419ef['t'](_0x33e39d(0x1dc),_0x27a5da===c[_0x33e39d(0x2e8)]['Row']?_0x27a5da+'\x20'+(((_0x115a94==null?void 0x0:_0x115a94['rangeInfo'][_0x33e39d(0x4a1)][_0x33e39d(0x42b)])??0x0)+0x1):_0x27a5da+'\x20'+(0x0,t['numberToABC'])((_0x115a94==null?void 0x0:_0x115a94[_0x33e39d(0x464)][_0x33e39d(0x4a1)][_0x33e39d(0x1d1)])??0x0)),'orientationControl':(0x0,_[_0x33e39d(0x3ae)])(h[_0x33e39d(0x1d6)],{'size':_0x33e39d(0x22f),'onClick':()=>_0x33e4b2['setOrientation'](_0x27a5da===c[_0x33e39d(0x2e8)][_0x33e39d(0x362)]?c[_0x33e39d(0x2e8)]['Column']:c['DataOrientation']['Row']),'children':_0x4419ef['t'](_0x33e39d(0x189))})}),(0x0,_['jsx'])(d[_0x33e39d(0x4af)],{}),(0x0,_[_0x33e39d(0x3ae)])(d[_0x33e39d(0x324)],{'defaultValues':_0x94039a[_0x33e39d(0x2e6)][_0x33e39d(0x33b)]})]});};function Be(_0x36ce61){const _0x267607=_0x2c7e3b;let {dataRange:_0x46b270}=_0x36ce61,_0x311689=(0x0,o[_0x267607(0x459)])(M),_0x3ababa=(0x0,o[_0x267607(0x459)])(t['LocaleService']),_0x6400ec=(0x0,o[_0x267607(0x459)])(t[_0x267607(0x2ce)]),[_0x4af7a8,_0x12e47e]=(0x0,m[_0x267607(0x461)])(!0x1),[_0x4a31cd,_0x568e13]=(0x0,m[_0x267607(0x461)])(!0x1),_0x16465d=Fe(_0x6400ec),_0xfa6023=Ie(_0x6400ec);(0x0,m[_0x267607(0x4a4)])(()=>{const _0x168ab2=_0x267607;_0x311689[_0x168ab2(0x2e2)](_0x4af7a8);},[_0x4af7a8,_0x311689]);let _0xb9c507=(0x0,m['useMemo'])(()=>(0x0,t['debounce'])(async _0x4149fb=>{const _0x30d025=_0x267607;var _0x4a0931;if(Se(_0x46b270,_0x6400ec)===_0x4149fb)return;let _0x384219=_0x4149fb[_0x30d025(0x32e)](',')[_0x30d025(0x379)](Boolean)[_0x30d025(0x1f5)](p['deserializeRangeWithSheet'])[0x0];if(!_0x384219)return;let {unitId:_0x555023,sheetName:_0x2670a1,range:_0x428a40}=_0x384219,_0x3ea927=_0x555023||_0x16465d,_0x57d817=((_0x4a0931=_0x6400ec['getUnit'](_0x3ea927)[_0x30d025(0x3ea)](_0x2670a1))==null?void 0x0:_0x4a0931['getSheetId']())||(_0x46b270==null?void 0x0:_0x46b270[_0x30d025(0x464)][_0x30d025(0x368)]);_0x311689[_0x30d025(0x228)]({'rangeInfo':{'range':_0x428a40,'unitId':_0x3ea927,'subUnitId':_0x57d817},'isRowDirection':!0x0});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x46b270,_0x311689,_0x16465d,_0x6400ec]);return(0x0,m['useEffect'])(()=>()=>_0xb9c507[_0x267607(0x2e7)](),[_0xb9c507]),(0x0,_['jsx'])(_0x267607(0x478),{'className':_0x267607(0x453),'children':(0x0,_[_0x267607(0x3f4)])(_0x267607(0x478),{'children':[(0x0,_[_0x267607(0x3ae)])(d[_0x267607(0x1e6)],{'title':_0x3ababa['t'](_0x267607(0x2c6))}),(0x0,_[_0x267607(0x3ae)])(g[_0x267607(0x3a9)],{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x16465d,'subUnitId':_0xfa6023,'initialValue':_0x46b270?Se(_0x46b270,_0x6400ec):'','onChange':(_0x55bac8,_0x1facaa)=>_0xb9c507(_0x1facaa),'onFocusChange':_0xf274c6=>{_0x4a31cd||_0x12e47e(_0xf274c6);},'onRangeSelectorDialogVisibleChange':_0x407bfc=>{_0x568e13(_0x407bfc),_0x12e47e(_0x407bfc);}})]})});}function H(_0x59b59f){const _0x53ecd6=_0x2c7e3b;return(0x0,_['jsxs'])(d[_0x53ecd6(0x44a)],{'id':_0x59b59f['id'],'children':[(0x0,_['jsx'])(d[_0x53ecd6(0x340)],{'children':_0x59b59f[_0x53ecd6(0x3b0)]}),(0x0,_[_0x53ecd6(0x3ae)])(d[_0x53ecd6(0x3d8)],{'children':_0x59b59f[_0x53ecd6(0x402)]})]});}const Ve=_0x246a64=>{const _0x2655a1=_0x2c7e3b;let _0x78e739=(0x0,o['useDependency'])(t[_0x2655a1(0x1ac)]),_0x234e89=(0x0,o[_0x2655a1(0x459)])(M),_0x14d8e4=(0x0,o[_0x2655a1(0x36f)])(_0x234e89['activeEditChart$'],null),_0x4c0c6e=(0x0,o['useObservable'])(_0x234e89['panelRoute$'],null),_0x2e81e8=(_0x4c0c6e==null?void 0x0:_0x4c0c6e['chartId'])===_0x14d8e4?_0x4c0c6e[_0x2655a1(0x45d)]:null,_0x1f264f=(0x0,d[_0x2655a1(0x294)])(),_0x536d31=(0x0,d[_0x2655a1(0x27e)])(),[_0x2ad633,_0x5df5fe]=(0x0,m[_0x2655a1(0x461)])(null);(0x0,m[_0x2655a1(0x4a4)])(()=>{const _0x491b75=_0x2655a1;_0x2e81e8!=null&&_0x2e81e8[_0x491b75(0x2e1)]&&_0x5df5fe(_0x2e81e8['section']);},[_0x2e81e8]);let _0x5e6a02=c[_0x2655a1(0x4aa)][_0x2655a1(0x303)](_0x1f264f,c[_0x2655a1(0x45e)]['Pie']),_0x59eb8a=_0x1f264f===c[_0x2655a1(0x45e)][_0x2655a1(0x293)],_0x223f13=_0x1f264f===c['ChartTypeBits'][_0x2655a1(0x405)],_0xdde8e1=_0x1f264f===c[_0x2655a1(0x45e)][_0x2655a1(0x240)],_0x382b36=c[_0x2655a1(0x4aa)]['baseOn'](_0x1f264f,c[_0x2655a1(0x45e)]['Bubble']),_0x4435cd=_0x1f264f===c['ChartTypeBits'][_0x2655a1(0x452)],_0x32f12c=_0x1f264f===c['ChartTypeBits']['Waterfall'],_0x36e992=_0x1f264f===c[_0x2655a1(0x45e)][_0x2655a1(0x3ed)],_0x37fe62=_0x1f264f===c[_0x2655a1(0x45e)]['Heatmap'],_0x407ced,_0x3946b0;switch(_0x1f264f){case c[_0x2655a1(0x45e)][_0x2655a1(0x401)]:_0x407ced=d[_0x2655a1(0x36a)][_0x2655a1(0x401)],_0x3946b0=_0x78e739['t'](_0x2655a1(0x22c));break;case c[_0x2655a1(0x45e)][_0x2655a1(0x37d)]:_0x407ced=d[_0x2655a1(0x36a)][_0x2655a1(0x37d)],_0x3946b0=_0x78e739['t'](_0x2655a1(0x1ba));break;case c['ChartTypeBits']['Treemap']:_0x407ced=d['ChartEditPanelSection'][_0x2655a1(0x43a)],_0x3946b0=_0x78e739['t'](_0x2655a1(0x23f));break;case c['ChartTypeBits']['Sunburst']:_0x407ced=d['ChartEditPanelSection'][_0x2655a1(0x256)],_0x3946b0=_0x78e739['t'](_0x2655a1(0x2ed));break;case c[_0x2655a1(0x45e)][_0x2655a1(0x301)]:_0x407ced=d[_0x2655a1(0x36a)][_0x2655a1(0x301)],_0x3946b0=_0x78e739['t'](_0x2655a1(0x2ad));break;case c[_0x2655a1(0x45e)]['Chord']:_0x407ced=d[_0x2655a1(0x36a)][_0x2655a1(0x4bf)],_0x3946b0=_0x78e739['t']('sheets-chart-ui.section.chord');break;}let _0x5e27e1=(0x0,d[_0x2655a1(0x426)])(_0x1f264f,d['ChartEditorCapability'][_0x2655a1(0x392)])&&!_0x382b36&&!_0x36e992;return(0x0,_['jsxs'])(d[_0x2655a1(0x4b9)],{'value':_0x2ad633,'onChange':_0x5df5fe,'children':[(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x4b1)],'label':_0x78e739['t']('sheets-chart-ui.common.chartStyle'),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x1b3)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x354)],'showBodyFont':!0x0})}),(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x45b)],'label':_0x78e739['t'](_0x2655a1(0x40a)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x4ac)],{'commitMode':_0x2655a1(0x398),'defaultValues':_0x246a64[_0x2655a1(0x2e6)]['titles'],'selectedTitleKey':_0x2e81e8==null?void 0x0:_0x2e81e8[_0x2655a1(0x4bd)]})}),_0x5e27e1&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x2e0)],'label':_0x78e739['t'](_0x2655a1(0x347)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x488)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)]['series'],'NumberFormatField':d[_0x2655a1(0x345)],'selectedSeriesId':_0x2e81e8==null?void 0x0:_0x2e81e8[_0x2655a1(0x258)]})}),_0x32f12c&&(0x0,_['jsx'])(H,{'id':d['ChartEditPanelSection']['WaterfallSeries'],'label':_0x78e739['t']('sheets-chart-ui.section.waterfall'),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x18c)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x34d)],'getDefaultBucketName':({seriesName:_0x3f2364,target:_0xdda7a7})=>_0xdda7a7===c[_0x2655a1(0x232)][_0x2655a1(0x47b)]?_0x78e739['t'](_0x2655a1(0x30c)):_0x3f2364?_0x3f2364+'-('+_0x78e739['t'](_0xdda7a7===c[_0x2655a1(0x232)][_0x2655a1(0x31d)]?_0x2655a1(0x36b):_0x2655a1(0x44d))+')':'','NumberFormatField':d[_0x2655a1(0x345)],'selectedSeriesId':_0x2e81e8==null?void 0x0:_0x2e81e8[_0x2655a1(0x258)]})}),_0x36e992&&(0x0,_[_0x2655a1(0x3f4)])(_[_0x2655a1(0x2dd)],{'children':[(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x3fb)],'label':_0x78e739['t'](_0x2655a1(0x2a1)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x1bf)],{'defaultValues':_0x246a64['defaultValues'][_0x2655a1(0x1f3)],'NumberFormatField':d[_0x2655a1(0x345)],'showDataPointEditor':!0x0,'target':'barStyle'})}),(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x4b3)],'label':_0x78e739['t']('sheets-chart-ui.section.paretoLine'),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x1bf)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x1f3)],'NumberFormatField':d[_0x2655a1(0x345)],'showDataPointEditor':!0x1,'target':_0x2655a1(0x27c)})})]}),_0x5e6a02&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x221)],'label':_0x78e739['t'](_0x2655a1(0x291)),'children':(0x0,_[_0x2655a1(0x3ae)])(d['ChartPieStyleSection'],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x28d)],'NumberFormatField':d[_0x2655a1(0x345)]})}),_0x223f13&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x405)],'label':_0x78e739['t']('sheets-chart-ui.section.wordCloud'),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x3a2)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)]['wordCloud']})}),_0x59eb8a&&(0x0,_['jsx'])(H,{'id':d[_0x2655a1(0x36a)]['Radar'],'label':_0x78e739['t'](_0x2655a1(0x389)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x20f)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x35d)]})}),_0xdde8e1&&(0x0,_['jsx'])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x240)],'label':_0x78e739['t'](_0x2655a1(0x216)),'children':(0x0,_['jsx'])(d[_0x2655a1(0x430)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)]['funnel'],'gapControl':'select'})}),_0x37fe62&&(0x0,_['jsx'])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x40c)],'label':_0x78e739['t']('sheets-chart-ui.common.heatmap'),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x274)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x450)]})}),_0x4435cd&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)]['Relation'],'label':_0x78e739['t'](_0x2655a1(0x3bd)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x2a7)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x2fb)]})}),(0x0,d[_0x2655a1(0x3a7)])(_0x1f264f)&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x2d8)],'label':_0x78e739['t']('sheets-chart-ui.section.lineAndArea'),'children':(0x0,_['jsx'])(d['ChartLineAndAreaSection'],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x1b0)],'lineStyleControl':_0x2655a1(0x20a)})}),(0x0,d[_0x2655a1(0x426)])(_0x1f264f,d[_0x2655a1(0x227)][_0x2655a1(0x483)])&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x483)],'label':_0x78e739['t'](_0x2655a1(0x1b7)),'children':(0x0,_[_0x2655a1(0x3ae)])(d['ChartLegendSection'],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x2b9)]})}),(0x0,d[_0x2655a1(0x426)])(_0x1f264f,d[_0x2655a1(0x227)][_0x2655a1(0x2a8)])&&(0x0,_[_0x2655a1(0x3f4)])(_[_0x2655a1(0x2dd)],{'children':[(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x356)],'label':_0x78e739['t'](_0x2655a1(0x2f3)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x359)],{'axis':'x','defaultValues':_0x246a64[_0x2655a1(0x2e6)]['axis'],'NumberFormatField':d[_0x2655a1(0x345)]})}),(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x33c)],'label':_0x78e739['t']('sheets-chart-ui.common.verticalAxis'),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x359)],{'axis':'y','defaultValues':_0x246a64[_0x2655a1(0x2e6)]['axis'],'NumberFormatField':d['ChartNumberFormatAtom']})}),_0x536d31&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x1b4)],'label':_0x78e739['t']('sheets-chart-ui.common.rightVerticalAxis'),'children':(0x0,_['jsx'])(d[_0x2655a1(0x359)],{'axis':_0x2655a1(0x31f),'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x31b)],'NumberFormatField':d[_0x2655a1(0x345)]})}),(0x0,_['jsx'])(H,{'id':d[_0x2655a1(0x36a)][_0x2655a1(0x383)],'label':_0x78e739['t'](_0x2655a1(0x323)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x1cc)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x31b)]})})]}),(0x0,d[_0x2655a1(0x426)])(_0x1f264f,d[_0x2655a1(0x227)]['IndicatorLine'])&&(0x0,_['jsx'])(H,{'id':d['ChartEditPanelSection'][_0x2655a1(0x299)],'label':_0x78e739['t'](_0x2655a1(0x243)),'children':(0x0,_[_0x2655a1(0x3ae)])(d[_0x2655a1(0x25b)],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x253)]})}),(0x0,c[_0x2655a1(0x3bf)])(_0x1f264f)&&(0x0,_[_0x2655a1(0x3ae)])(H,{'id':d[_0x2655a1(0x36a)]['Trendline'],'label':_0x78e739['t'](_0x2655a1(0x308)),'children':(0x0,_[_0x2655a1(0x3ae)])(d['ChartTrendlineSection'],{'defaultValues':_0x246a64[_0x2655a1(0x2e6)][_0x2655a1(0x3c4)]})}),_0x407ced&&_0x3946b0&&(0x0,_['jsx'])(H,{'id':_0x407ced,'label':_0x3946b0,'children':(0x0,_[_0x2655a1(0x3ae)])(d['ChartTypeSpecificStyleSection'],{})})]});};function He(_0x2cc59c){const _0x2fdd5f=_0x2c7e3b;let {className:_0x2c4677}=_0x2cc59c,[_0x459cf5,_0x36c248]=(0x0,m[_0x2fdd5f(0x461)])(d[_0x2fdd5f(0x19a)][_0x2fdd5f(0x2d1)]),_0x2846fb=(0x0,o[_0x2fdd5f(0x459)])(t[_0x2fdd5f(0x2f1)]),_0x354255=(0x0,o[_0x2fdd5f(0x459)])(t[_0x2fdd5f(0x1ac)]),_0x35585d=(0x0,o['useDependency'])(M),_0x3c5570=(0x0,o[_0x2fdd5f(0x36f)])(_0x35585d['activeEditChart$'],null),_0x323441=(0x0,o[_0x2fdd5f(0x36f)])(_0x35585d[_0x2fdd5f(0x485)],null),_0x502510=(0x0,o[_0x2fdd5f(0x36f)])(_0x35585d[_0x2fdd5f(0x1b9)],null),_0x2b46e3=(0x0,m[_0x2fdd5f(0x468)])(()=>{const _0x6f9fc=_0x2fdd5f;var _0x213ceb;if(!_0x323441)return null;let _0x16e884=_0x323441[_0x6f9fc(0x46c)][_0x6f9fc(0x209)](),_0x52f54e=Array['isArray'](_0x16e884)?(_0x213ceb=_0x16e884[0x0])==null?void 0x0:_0x213ceb['range']:_0x16e884[_0x6f9fc(0x464)];return _0x52f54e?new d[(_0x6f9fc(0x309))](_0x323441,new e[(_0x6f9fc(0x205))]({'unitId':_0x52f54e[_0x6f9fc(0x419)],'subUnitId':_0x52f54e[_0x6f9fc(0x368)],'chartId':_0x323441['id'],'injector':_0x2846fb})):null;},[_0x323441,_0x2846fb]);(0x0,m['useEffect'])(()=>{const _0x3fbfd3=_0x2fdd5f;var _0x4203bd,_0x5bac4b;(_0x502510==null?void 0x0:_0x502510[_0x3fbfd3(0x47f)])===_0x3c5570&&(((_0x4203bd=_0x502510[_0x3fbfd3(0x45d)])==null?void 0x0:_0x4203bd['tab'])===d[_0x3fbfd3(0x19a)][_0x3fbfd3(0x198)]&&_0x36c248(d[_0x3fbfd3(0x19a)][_0x3fbfd3(0x198)]),((_0x5bac4b=_0x502510[_0x3fbfd3(0x45d)])==null?void 0x0:_0x5bac4b['tab'])===d[_0x3fbfd3(0x19a)][_0x3fbfd3(0x2d1)]&&_0x36c248(d['ChartEditPanelTab']['Data']));},[_0x3c5570,_0x502510]);let _0x28c725=(0x0,_[_0x2fdd5f(0x3f4)])(_0x2fdd5f(0x478),{'className':_0x2fdd5f(0x2f0)+(_0x459cf5===d[_0x2fdd5f(0x19a)][_0x2fdd5f(0x198)]?_0x2fdd5f(0x447):'univer-overflow-hidden')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c4677??'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[(0x0,_[_0x2fdd5f(0x3ae)])(d['ChartEditPanelTabs'],{'ariaLabel':_0x354255['t'](_0x2fdd5f(0x1fd)),'className':'univer-shrink-0','items':[{'label':_0x354255['t'](_0x2fdd5f(0x225)),'panelId':We,'value':d[_0x2fdd5f(0x19a)][_0x2fdd5f(0x2d1)]},{'label':_0x354255['t'](_0x2fdd5f(0x210)),'panelId':Ge,'value':d[_0x2fdd5f(0x19a)][_0x2fdd5f(0x198)]}],'value':_0x459cf5,'onChange':_0x36c248}),_0x459cf5===d[_0x2fdd5f(0x19a)][_0x2fdd5f(0x2d1)]?(0x0,_[_0x2fdd5f(0x3ae)])(d[_0x2fdd5f(0x399)],{'id':We,'label':_0x354255['t'](_0x2fdd5f(0x225)),'children':(0x0,_[_0x2fdd5f(0x3ae)])(ze,{'defaultValues':Pe})}):(0x0,_[_0x2fdd5f(0x3ae)])(d[_0x2fdd5f(0x399)],{'id':Ge,'className':_0x2fdd5f(0x388),'label':_0x354255['t'](_0x2fdd5f(0x210)),'children':(0x0,_[_0x2fdd5f(0x3ae)])(Ve,{'defaultValues':Pe})})]});return _0x2b46e3?(0x0,_[_0x2fdd5f(0x3ae)])(d[_0x2fdd5f(0x497)],{'chartUIService':_0x35585d,'hostAdapter':_0x2b46e3,'children':_0x28c725}):_0x28c725;}const Ue='sheet.chart.edit.panel',We=_0x2c7e3b(0x19c),Ge=_0x2c7e3b(0x2db);function Ke(_0x2054e9){const _0x3d4609=_0x2c7e3b;if(_0x2054e9['length']!==0x1)return!0x1;let _0x2f6e28=_0x2054e9[0x0];return _0x2f6e28[_0x3d4609(0x1b5)]===t['DrawingTypeEnum']['DRAWING_CHART']&&!_0x2f6e28[_0x3d4609(0x474)];}let U=class extends t[_0x2c7e3b(0x467)]{constructor(_0x506a49,_0x1e9b69,_0x42e3b6,_0x534cfb,_0x524817,_0x3a98d7,_0x60acd1,_0x58ece2,_0x428d32,_0x26a2f2,_0x32fe2b,_0x158be8,_0x56f651,_0xd34eba,_0x57a7b0){const _0x3b4997=_0x2c7e3b;var _0x48c56f;super(),this['_drawingManagerService']=_0x506a49,this['_univerInstanceService']=_0x1e9b69,this['_chartModelService']=_0x42e3b6,this[_0x3b4997(0x428)]=_0x534cfb,this['_sheetDrawingHitTestService']=_0x524817,this[_0x3b4997(0x1da)]=_0x3a98d7,this[_0x3b4997(0x2f5)]=_0x60acd1,this['_drawingContextMenuService']=_0x58ece2,this[_0x3b4997(0x25e)]=_0x428d32,this[_0x3b4997(0x28e)]=_0x26a2f2,this[_0x3b4997(0x4a8)]=_0x32fe2b,this['_sheetsChartUIService']=_0x158be8,this[_0x3b4997(0x381)]=_0x56f651,this[_0x3b4997(0x35c)]=_0xd34eba,E(this,'_sidebarDisposable',null),E(this,_0x3b4997(0x238),void 0x0),this[_0x3b4997(0x238)]=((_0x48c56f=_0x57a7b0['getConfig'](_0x3b4997(0x3b7)))==null?void 0x0:_0x48c56f[_0x3b4997(0x251)])===!0x0,this[_0x3b4997(0x2de)](),this['disposeWithMe'](this[_0x3b4997(0x199)][_0x3b4997(0x346)](t[_0x3b4997(0x339)]['UNIVER_SHEET'])[_0x3b4997(0x410)](_0x13b8a8=>{const _0x3ea81c=_0x3b4997;var _0x11499a;_0x13b8a8||(_0x11499a=this[_0x3ea81c(0x34f)])==null||_0x11499a[_0x3ea81c(0x21d)]();})),this[_0x3b4997(0x320)]((0x0,t[_0x3b4997(0x394)])(this['_sheetDrawingHitTestService']['onDoubleClick$'][_0x3b4997(0x410)](async({drawing:_0xd1406f})=>{const _0x4b5504=_0x3b4997;await this[_0x4b5504(0x1fc)](_0xd1406f);})));}['_openPanel'](){const _0x2a51cf=_0x2c7e3b;this[_0x2a51cf(0x34f)]=this['_sidebarService'][_0x2a51cf(0x327)]({'id':Ue,'header':{'title':this[_0x2a51cf(0x35c)]['t'](_0x2a51cf(0x1fd))},'width':0x154,'children':{'label':Ue},'onClose':()=>{const _0x34cd66=_0x2a51cf;this[_0x34cd66(0x316)][_0x34cd66(0x18f)](null),this[_0x34cd66(0x3d4)](),this['_drawingManagerService'][_0x34cd66(0x237)](null),this[_0x34cd66(0x381)][_0x34cd66(0x36d)](t[_0x34cd66(0x29c)],!0x1),this['_sidebarDisposable']=null;}});}[_0x2c7e3b(0x4a2)](){const _0x5640b3=_0x2c7e3b;var _0x5a2ddd;this[_0x5640b3(0x316)][_0x5640b3(0x18f)](null),this[_0x5640b3(0x3d4)](),(_0x5a2ddd=this['_sidebarDisposable'])==null||_0x5a2ddd['dispose']();}[_0x2c7e3b(0x3ec)](){const _0x2b4068=_0x2c7e3b;let _0xea3c20=this[_0x2b4068(0x199)][_0x2b4068(0x470)](t[_0x2b4068(0x339)][_0x2b4068(0x48c)]);this[_0x2b4068(0x320)](this['_sidebarService'][_0x2b4068(0x41c)][_0x2b4068(0x410)](_0x38fef4=>{const _0x563157=_0x2b4068;_0x38fef4['id']===_0x563157(0x185)&&(_0x38fef4[_0x563157(0x3be)]||this['_sidebarService'][_0x563157(0x41c)]['next']({'visible':!0x1}));})),this['disposeWithMe'](this['_commandService'][_0x2b4068(0x2a6)](_0x2184ed=>{const _0x55e913=_0x2b4068;if(_0x2184ed['id']===S['id']){let _0x5587e3=_0x2184ed[_0x55e913(0x3ff)];this[_0x55e913(0x2c9)](_0x5587e3['drawingId'],_0x5587e3[_0x55e913(0x45d)]);}if(_0x2184ed['id']===x['id']&&this[_0x55e913(0x4a2)](),_0x2184ed['id']===e[_0x55e913(0x434)]['id']){var _0xc99054;_0x2184ed[_0x55e913(0x3ff)][_0x55e913(0x47f)]===((_0xc99054=this['_chartModelService'][_0x55e913(0x3cb)])==null?void 0x0:_0xc99054['id'])&&this[_0x55e913(0x4a2)](),this[_0x55e913(0x381)]['getContextValue'](t['FOCUSING_COMMON_DRAWINGS'])&&(this['_contextService'][_0x55e913(0x36d)](t[_0x55e913(0x29c)],!0x1),this['_drawingManagerService'][_0x55e913(0x237)](null));}})),this['disposeWithMe'](this['_sheetCanvasFloatDomManagerService']['remove$'][_0x2b4068(0x410)](({id:_0x1fae95})=>{const _0x37d1c4=_0x2b4068;_0x1fae95===this[_0x37d1c4(0x418)][_0x37d1c4(0x1c9)]&&this[_0x37d1c4(0x4a2)]();})),this[_0x2b4068(0x320)](this[_0x2b4068(0x25e)][_0x2b4068(0x28f)]['subscribe'](({id:_0x2b0c81})=>{const _0x91b6f1=_0x2b4068;_0x2b0c81===this[_0x91b6f1(0x418)][_0x91b6f1(0x1c9)]&&(this[_0x91b6f1(0x418)][_0x91b6f1(0x2ab)](null),this['_sheetsChartUIService'][_0x91b6f1(0x206)](),this[_0x91b6f1(0x428)][_0x91b6f1(0x279)](_0x2b0c81,!0x1),this[_0x91b6f1(0x20e)](_0x2b0c81)&&this['_chartRenderService'][_0x91b6f1(0x279)](_0x2b0c81,!0x0));})),this[_0x2b4068(0x320)](this[_0x2b4068(0x48e)][_0x2b4068(0x287)][_0x2b4068(0x410)](_0x35841a=>{const _0x28d5b7=_0x2b4068;let _0x3adda7=_0x35841a[0x0];if(!this[_0x28d5b7(0x418)]['rangeSelectMode']){if(Ke(_0x35841a)){var _0x5d1507;let _0xfd439c=this['_chartModelService'][_0x28d5b7(0x300)](_0x3adda7[_0x28d5b7(0x449)]);_0xfd439c&&((_0x5d1507=this[_0x28d5b7(0x316)][_0x28d5b7(0x3cb)])==null?void 0x0:_0x5d1507['id'])!==_0xfd439c['id']&&this[_0x28d5b7(0x316)]['setActiveChartModel'](_0xfd439c);return;}this[_0x28d5b7(0x316)][_0x28d5b7(0x3cb)]&&this['_chartModelService']['setActiveChartModel'](null),!_0x3adda7&&!this['_sheetsChartUIService']['rangeSelectMode']&&this[_0x28d5b7(0x4a2)]();}})),_0xea3c20&&(this['disposeWithMe'](_0xea3c20[_0x2b4068(0x3bc)][_0x2b4068(0x410)](()=>{const _0x4e6c03=_0x2b4068;this[_0x4e6c03(0x4a2)]();})),this[_0x2b4068(0x320)](_0xea3c20[_0x2b4068(0x26f)][_0x2b4068(0x410)](()=>{this['hidePanel']();})));}async[_0x2c7e3b(0x1fc)](_0x1e382c){const _0x3d84a5=_0x2c7e3b;this['_sheetsChartUIService'][_0x3d84a5(0x1c9)]||_0x1e382c[_0x3d84a5(0x1b5)]===t[_0x3d84a5(0x241)][_0x3d84a5(0x382)]&&await this[_0x3d84a5(0x4ab)](_0x1e382c[_0x3d84a5(0x419)],_0x1e382c[_0x3d84a5(0x368)],_0x1e382c[_0x3d84a5(0x449)]);}async['_openEditPanelByDoubleClick'](_0x4ceafe,_0x2c0277,_0x2fa155){const _0x5464bc=_0x2c7e3b;let _0x176621=this[_0x5464bc(0x316)]['getChartModel'](_0x2fa155);_0x176621&&(this['_chartModelService'][_0x5464bc(0x18f)](_0x176621),await this[_0x5464bc(0x4a8)][_0x5464bc(0x1a1)](S['id'],{'unitId':_0x4ceafe,'subUnitId':_0x2c0277,'drawingId':_0x2fa155}));}[_0x2c7e3b(0x2c9)](_0x50502d,_0xf66a64){const _0x2ebbee=_0x2c7e3b;let _0x2f5af3=this[_0x2ebbee(0x316)][_0x2ebbee(0x300)](_0x50502d);_0x2f5af3&&(this[_0x2ebbee(0x316)][_0x2ebbee(0x18f)](_0x2f5af3),this[_0x2ebbee(0x460)](),this['_activateEditPanelState'](_0x50502d,_0xf66a64??null));}['_activateEditPanelState'](_0x3ff520,_0x1d557e){const _0xe5c3b3=_0x2c7e3b;let _0x316815=this[_0xe5c3b3(0x418)]['activeEditChart'];_0x316815&&_0x316815!==_0x3ff520&&(this[_0xe5c3b3(0x428)]['setElementEditMode'](_0x316815,!0x1),this[_0xe5c3b3(0x418)]['setSelectedElement'](null)),this[_0xe5c3b3(0x418)][_0xe5c3b3(0x472)](_0x3ff520),this[_0xe5c3b3(0x418)]['setPanelRoute'](_0x3ff520,_0x1d557e),this[_0xe5c3b3(0x428)][_0xe5c3b3(0x279)](_0x3ff520,this[_0xe5c3b3(0x20e)](_0x3ff520));}[_0x2c7e3b(0x3d4)](){const _0x3f9661=_0x2c7e3b;let _0x2c59b3=this[_0x3f9661(0x418)][_0x3f9661(0x1c9)];_0x2c59b3&&this['_chartRenderService'][_0x3f9661(0x279)](_0x2c59b3,!0x1),this[_0x3f9661(0x418)]['setActiveEditChart'](null),this[_0x3f9661(0x418)][_0x3f9661(0x2ab)](null),this[_0x3f9661(0x418)]['clearPanelRoute']();}[_0x2c7e3b(0x2de)](){const _0x1d5daa=_0x2c7e3b;this['_menuManagerService'][_0x1d5daa(0x42d)](ke),this[_0x1d5daa(0x320)](this['_drawingContextMenuService'][_0x1d5daa(0x413)](t['DrawingTypeEnum'][_0x1d5daa(0x382)],{'getContextMenuPosition':()=>_e})),this['_sheetCanvasPopManagerService'][_0x1d5daa(0x2da)](t['DrawingTypeEnum'][_0x1d5daa(0x382)],this['getChartPopupMenus']['bind'](this));}[_0x2c7e3b(0x20e)](_0x5b7a5d){const _0x52b5b0=_0x2c7e3b;let _0x257caf=this[_0x52b5b0(0x316)][_0x52b5b0(0x300)](_0x5b7a5d);return!this['_isChartElementEditEnabled']||!_0x257caf?!0x1:je(_0x257caf[_0x52b5b0(0x334)]);}[_0x2c7e3b(0x212)](_0x2d0115,_0x1c26e2,_0x29bfe0,_0x3d65d4){const _0x1be1e2=_0x2c7e3b;return[{'label':this['_localeService']['t'](_0x1be1e2(0x3af)),'index':0x0,'commandId':S['id'],'commandParams':{'unitId':_0x2d0115,'subUnitId':_0x1c26e2,'drawingId':_0x29bfe0},'disable':_0x3d65d4!==t[_0x1be1e2(0x241)][_0x1be1e2(0x382)]},{'label':this[_0x1be1e2(0x35c)]['t'](_0x1be1e2(0x247)),'index':0x1,'commandId':r[_0x1be1e2(0x1b6)]['id'],'commandParams':{'unitId':_0x2d0115,'drawings':[{'unitId':_0x2d0115,'subUnitId':_0x1c26e2,'drawingId':_0x29bfe0,'drawingType':_0x3d65d4}]},'disable':!0x1},{'label':this[_0x1be1e2(0x35c)]['t'](_0x1be1e2(0x191)),'index':0x2,'commandId':x['id'],'commandParams':{'unitId':_0x2d0115,'subUnitId':_0x1c26e2,'drawingId':_0x29bfe0},'disable':!0x1}];}};U=A([k(0x0,n[_0x2c7e3b(0x496)]),k(0x1,t['IUniverInstanceService']),k(0x2,(0x0,t[_0x2c7e3b(0x1a4)])(e[_0x2c7e3b(0x3b1)])),k(0x3,(0x0,t['Inject'])(P)),k(0x4,(0x0,t[_0x2c7e3b(0x1a4)])(i['SheetDrawingHitTestService'])),k(0x5,(0x0,t['Inject'])(o[_0x2c7e3b(0x2cf)])),k(0x6,o[_0x2c7e3b(0x1cd)]),k(0x7,i[_0x2c7e3b(0x343)]),k(0x8,(0x0,t[_0x2c7e3b(0x1a4)])(i['SheetCanvasFloatDomManagerService'])),k(0x9,(0x0,t['Inject'])(a['SheetCanvasPopManagerService'])),k(0xa,t[_0x2c7e3b(0x1a6)]),k(0xb,M),k(0xc,t[_0x2c7e3b(0x2ef)]),k(0xd,(0x0,t[_0x2c7e3b(0x1a4)])(t[_0x2c7e3b(0x1ac)])),k(0xe,t[_0x2c7e3b(0x304)])],U);var qe='@univerjs-pro/sheets-chart-ui',Je=_0x2c7e3b(0x4b5);const W={'scaleX':0x1,'scaleY':0x1};function Ye(_0x3659b0){const _0x5a2522=_0x2c7e3b;let _0x1ef447=_0x3659b0[_0x5a2522(0x2fd)];return _0x1ef447 instanceof MouseEvent?_0x1ef447:void 0x0;}function Xe(_0x50b2e6){const _0x1e10a0=_0x2c7e3b;let _0x25cf02=_0x50b2e6['nativeEvent'],_0x499339=_0x25cf02==null?void 0x0:_0x25cf02[_0x1e10a0(0x311)];return _0x499339 instanceof Element?_0x499339:void 0x0;}function Ze(_0x35299d){var _0x5cda3f;return(_0x5cda3f=Xe(_0x35299d))==null?void 0x0:_0x5cda3f['getBoundingClientRect']();}function Qe(_0x383a05){const _0x5c0d13=_0x2c7e3b;return _0x383a05[_0x5c0d13(0x363)]||_0x383a05['right']-_0x383a05[_0x5c0d13(0x276)];}function $e(_0x294954){const _0x419a3f=_0x2c7e3b;return _0x294954[_0x419a3f(0x412)]||_0x294954[_0x419a3f(0x46e)]-_0x294954['top'];}function et(_0x1b9838,_0x2fe313){const _0x1c8446=_0x2c7e3b;let _0x454d6e=_0x1b9838[_0x1c8446(0x3ce)]||(_0x1b9838 instanceof HTMLElement?_0x1b9838[_0x1c8446(0x3ba)]:0x0),_0x401a8a=_0x1b9838[_0x1c8446(0x267)]||(_0x1b9838 instanceof HTMLElement?_0x1b9838[_0x1c8446(0x312)]:0x0),_0x485122=Qe(_0x2fe313),_0x47e56f=$e(_0x2fe313);return{'scaleX':_0x454d6e>0x0&&_0x485122>0x0?_0x485122/_0x454d6e:W[_0x1c8446(0x235)],'scaleY':_0x401a8a>0x0&&_0x47e56f>0x0?_0x47e56f/_0x401a8a:W[_0x1c8446(0x475)]};}function tt(_0x4fad74,_0x189635,_0x2a9df2){const _0x537219=_0x2c7e3b;return{'left':_0x4fad74[_0x537219(0x276)]+_0x189635[_0x537219(0x276)]*_0x2a9df2[_0x537219(0x235)],'right':_0x4fad74['left']+_0x189635[_0x537219(0x331)]*_0x2a9df2[_0x537219(0x235)],'top':_0x4fad74['top']+_0x189635[_0x537219(0x43e)]*_0x2a9df2['scaleY'],'bottom':_0x4fad74['top']+_0x189635['bottom']*_0x2a9df2[_0x537219(0x475)]};}function nt(_0x3b17df){const _0xf7d2db=_0x2c7e3b;let _0x2e9a75=Xe(_0x3b17df),_0x28bb65=_0x3b17df[_0xf7d2db(0x18b)][_0xf7d2db(0x277)];return _0x2e9a75&&_0x28bb65?()=>{const _0x389619=_0xf7d2db;let _0xb7399=_0x2e9a75[_0x389619(0x482)]();return tt(_0xb7399,_0x28bb65,et(_0x2e9a75,_0xb7399));}:()=>{const _0x23324d=_0xf7d2db;let _0x32bf64=Ze(_0x3b17df);if(_0x32bf64&&_0x28bb65)return tt(_0x32bf64,_0x28bb65,_0x2e9a75?et(_0x2e9a75,_0x32bf64):W);let _0x2a9669=Ye(_0x3b17df),_0x4be891=_0x2e9a75&&_0x32bf64?et(_0x2e9a75,_0x32bf64):W,_0x34754f=(_0x2a9669==null?void 0x0:_0x2a9669[_0x23324d(0x484)])??(_0x32bf64?_0x32bf64[_0x23324d(0x276)]+_0x3b17df[_0x23324d(0x25d)]['x']*_0x4be891['scaleX']:_0x3b17df['localPoint']['x']),_0x45cbf1=(_0x2a9669==null?void 0x0:_0x2a9669[_0x23324d(0x2ea)])??(_0x32bf64?_0x32bf64[_0x23324d(0x43e)]+_0x3b17df[_0x23324d(0x25d)]['y']*_0x4be891[_0x23324d(0x475)]:_0x3b17df[_0x23324d(0x25d)]['y']);return{'left':_0x34754f,'right':_0x34754f+0x1,'top':_0x45cbf1,'bottom':_0x45cbf1+0x1};};}function G(_0x20f98a){const _0x4c9543=_0x2c7e3b;return typeof _0x20f98a==_0x4c9543(0x22a)&&Number[_0x4c9543(0x3ca)](_0x20f98a);}function rt(_0x137835){const _0xb565aa=_0x2c7e3b;if(!_0x137835||typeof _0x137835!=_0xb565aa(0x1f0))return!0x0;let {startX:_0x13b702,endX:_0x4c3c4f,startY:_0x388aed,endY:_0x17e048}=_0x137835;return!G(_0x13b702)||!G(_0x4c3c4f)||!G(_0x388aed)||!G(_0x17e048)||_0x4c3c4f-_0x13b702>0x2&&_0x17e048-_0x388aed>0x2;}function it(_0x538e38){const _0x26a01d=_0x2c7e3b;return _0x538e38['right']<=_0x538e38[_0x26a01d(0x276)]||_0x538e38['bottom']<=_0x538e38[_0x26a01d(0x43e)]?!0x1:typeof window>'u'||_0x538e38['right']>0x0&&_0x538e38[_0x26a01d(0x46e)]>0x0&&_0x538e38[_0x26a01d(0x276)]<window[_0x26a01d(0x3c9)]&&_0x538e38[_0x26a01d(0x43e)]<window[_0x26a01d(0x20b)];}function at(_0x3025ce){const _0x26811d=_0x2c7e3b;var _0x1082d8;return _0x3025ce==null||(_0x1082d8=_0x3025ce[_0x26811d(0x231)])==null?void 0x0:_0x1082d8[_0x26811d(0x372)](_0x3025ce);}function ot(_0x53e559,_0x39e096,_0x127fd6){const _0x11de32=_0x2c7e3b;let _0x5d3386=nt(_0x53e559),_0x2a523e=at(_0x39e096),_0x3d0c0f=_0x5d3386(),_0x422035=new s[(_0x11de32(0x46a))](_0x3d0c0f),_0x14485e=new t[(_0x11de32(0x335))](),_0x540069=!0x1,_0x149b04=!0x1,_0x4209fd=_0x4d8446=>rt(_0x2a523e)&&it(_0x4d8446),_0x128e2b=()=>{_0x149b04||_0x540069||(_0x149b04=!0x0,queueMicrotask(()=>{if(_0x149b04=!0x1,!_0x540069){let _0x84b7b4=_0x5d3386();if(!_0x4209fd(_0x84b7b4)){_0x127fd6();return;}_0x422035['next'](_0x84b7b4);}}));};return _0x39e096&&_0x14485e[_0x11de32(0x499)](_0x39e096[_0x11de32(0x410)](_0x437dee=>{_0x2a523e=_0x437dee,_0x128e2b();})),typeof window<'u'&&_0x14485e[_0x11de32(0x499)]((0x0,s[_0x11de32(0x292)])((0x0,s[_0x11de32(0x40e)])(window,_0x11de32(0x230),{'capture':!0x0}),(0x0,s['fromEvent'])(window,_0x11de32(0x41b)))[_0x11de32(0x3df)]((0x0,s[_0x11de32(0x49c)])(0x10))[_0x11de32(0x410)](_0x128e2b)),{'initialRect':_0x3d0c0f,'anchorRect$':_0x422035['asObservable'](),'visible':_0x4209fd(_0x3d0c0f),'dispose':()=>{const _0xf84803=_0x11de32;_0x540069=!0x0,_0x14485e[_0xf84803(0x21d)](),_0x422035[_0xf84803(0x1dd)]();}};}const st=_0x2c7e3b(0x1aa);let K=class extends t[_0x2c7e3b(0x467)]{constructor(_0x452083,_0x736376,_0x2ac6c4,_0x3ad7cf,_0x242bee,_0x35bdba,_0x26fb56,_0x193559,_0x243fbc){const _0xfc61a9=_0x2c7e3b;super(),this[_0xfc61a9(0x316)]=_0x452083,this[_0xfc61a9(0x428)]=_0x736376,this[_0xfc61a9(0x283)]=_0x2ac6c4,this['_sheetCanvasPopManagerService']=_0x3ad7cf,this['_sheetCanvasFloatDomManagerService']=_0x242bee,this[_0xfc61a9(0x4bb)]=_0x35bdba,this[_0xfc61a9(0x183)]=_0x26fb56,this['_commandService']=_0x193559,this[_0xfc61a9(0x486)]=_0x243fbc,E(this,_0xfc61a9(0x30e),null),E(this,_0xfc61a9(0x19f),null),this[_0xfc61a9(0x21c)](),this['_subscribeChartEvents']();}[_0x2c7e3b(0x21d)](){const _0x24f1f0=_0x2c7e3b;this[_0x24f1f0(0x30f)](),super[_0x24f1f0(0x21d)]();}[_0x2c7e3b(0x21c)](){const _0x4e172e=_0x2c7e3b;let _0x1bb906=(0x0,d['createChartElementFloatMenuAdapter'])({'chartUIService':this['_chartUIService'],'getHostAdapter':_0x59e458=>{const _0xa84a61=_0x389a;this[_0xa84a61(0x498)](_0x59e458['chartId']);let _0x2904fa=this[_0xa84a61(0x316)][_0xa84a61(0x300)](_0x59e458['chartId']);if(!(!_0x2904fa||!_0x59e458['subUnitId']))return new d[(_0xa84a61(0x309))](_0x2904fa,new e[(_0xa84a61(0x205))]({'unitId':_0x59e458[_0xa84a61(0x419)],'subUnitId':_0x59e458[_0xa84a61(0x368)],'chartId':_0x59e458[_0xa84a61(0x47f)],'injector':this[_0xa84a61(0x486)]}));},'close':()=>this[_0x4e172e(0x30f)](),'openFullPanel':_0x46e11e=>{const _0x4f5a12=_0x4e172e;let {unitId:_0xaacb3,subUnitId:_0x1cd009,drawingId:_0x57a482,chartId:_0x191d19}=_0x46e11e,_0x513dd6=(0x0,d[_0x4f5a12(0x3d3)])(_0x46e11e[_0x4f5a12(0x311)]);this['_commandService'][_0x4f5a12(0x1a1)](S['id'],{'unitId':_0xaacb3,'subUnitId':_0x1cd009??'','drawingId':_0x57a482??_0x191d19,..._0x513dd6?{'route':_0x513dd6}:{}});}});this[_0x4e172e(0x320)](this[_0x4e172e(0x183)][_0x4e172e(0x4a5)](st,_0x1bb906));}['_subscribeChartEvents'](){const _0x31ea3e=_0x2c7e3b;this[_0x31ea3e(0x320)](this['_chartModelService']['chartModelAdded$'][_0x31ea3e(0x410)](_0x1a82d8=>{const _0x53abb1=_0x31ea3e;let _0x3d3441=new t[(_0x53abb1(0x335))]();_0x3d3441[_0x53abb1(0x499)](this['_chartRenderService']['on'](_0x1a82d8['id'],_0x53abb1(0x45f),_0x1cb780=>{this['_openFloatMenu'](_0x1a82d8['id'],_0x1cb780);})),_0x3d3441[_0x53abb1(0x499)](this['_chartRenderService']['on'](_0x1a82d8['id'],_0x53abb1(0x249),()=>{const _0x41b88e=_0x53abb1;this[_0x41b88e(0x4ab)](_0x1a82d8['id']);})),_0x1a82d8['onDispose'](()=>{const _0xde4f93=_0x53abb1;_0x3d3441[_0xde4f93(0x21d)](),this[_0xde4f93(0x252)](_0x1a82d8['id']);}),this[_0x53abb1(0x320)](_0x3d3441);})),this[_0x31ea3e(0x320)](this[_0x31ea3e(0x4bb)][_0x31ea3e(0x1b2)][_0x31ea3e(0x410)](_0x3b5a67=>{const _0xfcf3eb=_0x31ea3e;(!_0x3b5a67||this[_0xfcf3eb(0x19f)]&&_0x3b5a67!==this[_0xfcf3eb(0x19f)])&&this[_0xfcf3eb(0x30f)]();})),this[_0x31ea3e(0x320)](this[_0x31ea3e(0x25e)][_0x31ea3e(0x28f)][_0x31ea3e(0x410)](({id:_0x29db02})=>{this['_clearSelectedTarget'](_0x29db02);})),this[_0x31ea3e(0x320)](this[_0x31ea3e(0x25e)][_0x31ea3e(0x3c5)][_0x31ea3e(0x410)](({id:_0x49262f})=>{const _0x223c2d=_0x31ea3e;this[_0x223c2d(0x252)](_0x49262f);})),this[_0x31ea3e(0x320)](this['_chartHostProvider'][_0x31ea3e(0x3e1)][_0x31ea3e(0x410)](_0x5148dd=>{const _0x34accc=_0x31ea3e;this[_0x34accc(0x252)](_0x5148dd);}));}[_0x2c7e3b(0x4ab)](_0x115d48){const _0x4e7db7=_0x2c7e3b;if(this[_0x4e7db7(0x4bb)][_0x4e7db7(0x1c9)])return;let _0x6eeef5=this[_0x4e7db7(0x316)][_0x4e7db7(0x300)](_0x115d48),_0x305b72=this[_0x4e7db7(0x25e)][_0x4e7db7(0x455)](_0x115d48);!_0x6eeef5||!_0x305b72||(this['_chartModelService'][_0x4e7db7(0x18f)](_0x6eeef5),this[_0x4e7db7(0x4a8)][_0x4e7db7(0x1a1)](S['id'],{'unitId':_0x305b72[_0x4e7db7(0x419)],'subUnitId':_0x305b72[_0x4e7db7(0x368)]??'','drawingId':_0x115d48}));}[_0x2c7e3b(0x498)](_0x202118){const _0x2dc262=_0x2c7e3b;let _0xb8482f=this[_0x2dc262(0x316)]['getChartModel'](_0x202118);_0xb8482f&&this[_0x2dc262(0x316)][_0x2dc262(0x18f)](_0xb8482f);}[_0x2c7e3b(0x37c)](_0x38a2a8,_0x2da552){const _0x2ab888=_0x2c7e3b;if(!this['_chartUIService'][_0x2ab888(0x3cf)](_0x38a2a8))return;let _0x2a2da3=this[_0x2ab888(0x316)][_0x2ab888(0x300)](_0x38a2a8),_0x1a6704=_0x2a2da3?Me(_0x2a2da3,_0x2da552[_0x2ab888(0x18b)]):void 0x0;if(!_0x1a6704){this[_0x2ab888(0x4bb)][_0x2ab888(0x2ab)](null),this[_0x2ab888(0x4bb)][_0x2ab888(0x206)](),this['_closePopup']();return;}let _0x55bc09=this[_0x2ab888(0x25e)][_0x2ab888(0x455)](_0x38a2a8);if(!_0x2a2da3||!_0x55bc09){this[_0x2ab888(0x4bb)][_0x2ab888(0x2ab)](null),this['_chartUIService']['clearPanelRoute'](),this[_0x2ab888(0x30f)]();return;}if(this[_0x2ab888(0x316)][_0x2ab888(0x18f)](_0x2a2da3),this['_chartUIService']['setSelectedElement']({'chartId':_0x38a2a8,'element':_0x2da552['hit'],'target':_0x1a6704['target'],'route':_0x1a6704[_0x2ab888(0x45d)]}),this[_0x2ab888(0x4bb)][_0x2ab888(0x2f8)](_0x38a2a8,_0x1a6704[_0x2ab888(0x45d)]),this[_0x2ab888(0x30f)](),!_0x1a6704[_0x2ab888(0x38a)])return;let _0x3ba06e=ot(_0x2da552,_0x55bc09[_0x2ab888(0x186)],()=>this['_clearHiddenSelectedTarget'](_0x38a2a8));if(!_0x3ba06e[_0x2ab888(0x3be)]){_0x3ba06e[_0x2ab888(0x21d)]();return;}let _0x3dcb25=this[_0x2ab888(0x28e)][_0x2ab888(0x2c5)](_0x3ba06e[_0x2ab888(0x437)],_0x3ba06e[_0x2ab888(0x307)],{'componentKey':d[_0x2ab888(0x190)],'direction':_0x2ab888(0x422),'offset':[0x0,0x8],'extraProps':{'unitId':_0x55bc09[_0x2ab888(0x419)],'subUnitId':_0x55bc09['subUnitId'],'chartId':_0x38a2a8,'drawingId':_0x38a2a8,'element':_0x2da552[_0x2ab888(0x18b)],'target':_0x1a6704[_0x2ab888(0x311)],'adapterKey':st}},_0x55bc09[_0x2ab888(0x419)],_0x55bc09[_0x2ab888(0x368)])??null;if(!_0x3dcb25){_0x3ba06e['dispose']();return;}let _0x1d2406=new t[(_0x2ab888(0x335))]();_0x1d2406[_0x2ab888(0x499)](_0x3dcb25),_0x1d2406[_0x2ab888(0x499)](_0x3ba06e),this[_0x2ab888(0x30e)]=_0x1d2406,this[_0x2ab888(0x19f)]=_0x38a2a8;}[_0x2c7e3b(0x30f)](){const _0x53e4ca=_0x2c7e3b;var _0x62820a;(_0x62820a=this[_0x53e4ca(0x30e)])==null||_0x62820a[_0x53e4ca(0x21d)](),this['_popupDisposable']=null,this[_0x53e4ca(0x19f)]=null;}[_0x2c7e3b(0x252)](_0x2865df){const _0xb4df60=_0x2c7e3b;!this[_0xb4df60(0x4bb)][_0xb4df60(0x3cf)](_0x2865df)&&this[_0xb4df60(0x19f)]!==_0x2865df||(this[_0xb4df60(0x4bb)][_0xb4df60(0x2ab)](null),this['_chartUIService'][_0xb4df60(0x206)](),this[_0xb4df60(0x19f)]===_0x2865df&&this[_0xb4df60(0x30f)]());}[_0x2c7e3b(0x217)](_0x2ecfca){const _0x33cfcc=_0x2c7e3b;this[_0x33cfcc(0x252)](_0x2ecfca),this['_chartUIService'][_0x33cfcc(0x3cf)](_0x2ecfca)&&(this['_chartRenderService'][_0x33cfcc(0x279)](_0x2ecfca,!0x1),this[_0x33cfcc(0x428)]['setElementEditMode'](_0x2ecfca,!0x0));}};K=A([k(0x0,(0x0,t['Inject'])(e[_0x2c7e3b(0x3b1)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(P)),k(0x2,j),k(0x3,(0x0,t[_0x2c7e3b(0x1a4)])(a[_0x2c7e3b(0x187)])),k(0x4,(0x0,t['Inject'])(i[_0x2c7e3b(0x421)])),k(0x5,M),k(0x6,(0x0,t[_0x2c7e3b(0x1a4)])(d[_0x2c7e3b(0x360)])),k(0x7,t['ICommandService']),k(0x8,(0x0,t[_0x2c7e3b(0x1a4)])(t['Injector']))],K);let q=class extends t[_0x2c7e3b(0x467)]{constructor(_0x2535fa,_0x558a41){const _0x2341b2=_0x2c7e3b;super(),this[_0x2341b2(0x1ee)]=_0x2535fa,this[_0x2341b2(0x316)]=_0x558a41,this[_0x2341b2(0x195)]();}[_0x2c7e3b(0x195)](){const _0x29bfbd=_0x2c7e3b;this[_0x29bfbd(0x320)](this[_0x29bfbd(0x1ee)][_0x29bfbd(0x3e1)]['subscribe'](_0x13ec1f=>{const _0x48a7eb=_0x29bfbd;this['_chartModelService'][_0x48a7eb(0x3b4)](_0x13ec1f);}));}};q=A([k(0x0,j),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(e[_0x2c7e3b(0x3b1)]))],q);let J=class extends t[_0x2c7e3b(0x467)]{constructor(_0x371d68,_0x40a0b5,_0x4e4f96,_0x292d91,_0x12f304,_0x156172){const _0x2ed295=_0x2c7e3b;super(),this[_0x2ed295(0x316)]=_0x371d68,this[_0x2ed295(0x428)]=_0x40a0b5,this[_0x2ed295(0x35c)]=_0x4e4f96,this[_0x2ed295(0x4bb)]=_0x292d91,this[_0x2ed295(0x4a8)]=_0x12f304,this[_0x2ed295(0x371)]=_0x156172,E(this,_0x2ed295(0x41f),new Map()),this[_0x2ed295(0x195)](),this[_0x2ed295(0x18d)](),this['_initPrinting']();}[_0x2c7e3b(0x2c3)](){const _0x297bb8=_0x2c7e3b;this['disposeWithMe'](this[_0x297bb8(0x371)]['interceptor']['intercept'](this[_0x297bb8(0x371)][_0x297bb8(0x297)][_0x297bb8(0x43b)]()[_0x297bb8(0x2b5)],{'handler':(_0x5af07c,_0x17b000,_0x381d39)=>{const _0x10fa5c=_0x297bb8;let _0x30a95a=this[_0x10fa5c(0x428)]['renderChartsForPrinting'](_0x17b000['unitId'],_0x17b000[_0x10fa5c(0x368)],_0x17b000[_0x10fa5c(0x27d)]);return _0x17b000[_0x10fa5c(0x3f0)]['add'](_0x30a95a),_0x381d39(_0x5af07c);}}));}['_init'](){const _0xdc209f=_0x2c7e3b;this[_0xdc209f(0x320)](this[_0xdc209f(0x316)][_0xdc209f(0x4a3)][_0xdc209f(0x410)](_0x4cfdea=>{const _0x358bee=_0xdc209f;if(_0x4cfdea){let _0x14659c=new t['DisposableCollection']();_0x14659c[_0x358bee(0x499)](_0x4cfdea[_0x358bee(0x33a)][_0x358bee(0x3df)]((0x0,s[_0x358bee(0x1de)])(_0x4cfdea[_0x358bee(0x489)]),(0x0,s[_0x358bee(0x1de)])(this[_0x358bee(0x35c)][_0x358bee(0x255)]),(0x0,s['debounceTime'])(0x64))[_0x358bee(0x410)](([[_0x14303b,_0xc198aa],_0x447126])=>{const _0x3bc087=_0x358bee;var _0xf4a4c5;if(!_0x14303b)return;(_0xf4a4c5=_0x14303b[_0x3bc087(0x2c4)])==null||_0xf4a4c5['items']['forEach']((_0x32c272,_0x4e54dd)=>{const _0x244019=_0x3bc087;_0x32c272[_0x244019(0x3b0)]||=this[_0x244019(0x35c)]['t'](_0x244019(0x3e6))+'\x20'+(_0x4e54dd+0x1);}),_0x14303b[_0x3bc087(0x31e)][_0x3bc087(0x481)]((_0x3e8119,_0x33247c)=>{const _0x28f3c4=_0x3bc087;_0x3e8119['name']||=this[_0x28f3c4(0x35c)]['t']('sheets-chart-ui.chord.target')+'\x20'+(_0x33247c+0x1);});let _0x4216c0=this[_0x3bc087(0x428)]['createRuntimeChartStyle'](_0x4cfdea,_0x447126);this['_chartRenderService'][_0x3bc087(0x4a0)](_0x4cfdea['id'],_0x14303b,_0x4216c0);})),_0x4cfdea[_0x358bee(0x1be)](()=>{const _0x1c81cb=_0x358bee;_0x14659c[_0x1c81cb(0x21d)]();});}}));}[_0x2c7e3b(0x18d)](){const _0x12b85a=_0x2c7e3b;this[_0x12b85a(0x320)](this[_0x12b85a(0x4a8)]['onCommandExecuted'](_0x10391f=>{const _0x53b7e7=_0x12b85a;if(_0x10391f['id']!==e['ChartUpdateConfigMutation']['id'])return;let _0x335f02=_0x10391f[_0x53b7e7(0x3ff)];_0x335f02!=null&&_0x335f02['chartModelId']&&Promise['resolve']()['then'](()=>this[_0x53b7e7(0x1a0)](_0x335f02));}));}[_0x2c7e3b(0x1a0)](_0x12d64b){const _0x512368=_0x2c7e3b;let _0x5b40fb=this[_0x512368(0x316)][_0x512368(0x300)](_0x12d64b[_0x512368(0x3e3)]);if(!_0x5b40fb||_0x5b40fb[_0x512368(0x334)]!==c[_0x512368(0x45e)]['WordCloud'])return;let _0x2a9ac7=_0x5b40fb[_0x512368(0x30a)];if(!_0x2a9ac7){this['_renderWhenConfigReady'](_0x5b40fb);return;}this[_0x512368(0x1c4)](_0x5b40fb,_0x2a9ac7);}[_0x2c7e3b(0x207)](_0x3025d0){const _0x11f78b=_0x2c7e3b;if(this[_0x11f78b(0x41f)][_0x11f78b(0x406)](_0x3025d0['id']))return;let _0x3af76a=_0x3025d0[_0x11f78b(0x33a)][_0x11f78b(0x3df)]((0x0,s[_0x11f78b(0x379)])(_0x243d5a=>_0x243d5a!=null),(0x0,s[_0x11f78b(0x28c)])(0x1))['subscribe'](_0x43b60c=>{const _0x50eee1=_0x11f78b;this[_0x50eee1(0x41f)]['delete'](_0x3025d0['id']),this[_0x50eee1(0x1c4)](_0x3025d0,_0x43b60c);});this[_0x11f78b(0x41f)][_0x11f78b(0x3d5)](_0x3025d0['id'],_0x3af76a),_0x3025d0[_0x11f78b(0x1be)](()=>{const _0x414960=_0x11f78b;_0x3af76a[_0x414960(0x2f4)](),this[_0x414960(0x41f)][_0x414960(0x188)](_0x3025d0['id']);});}[_0x2c7e3b(0x1c4)](_0x49e9d6,_0x27f59f){const _0x245de5=_0x2c7e3b;let _0x1cd162=this[_0x245de5(0x428)]['createRuntimeChartStyle'](_0x49e9d6,this[_0x245de5(0x35c)][_0x245de5(0x3b8)]());this[_0x245de5(0x428)][_0x245de5(0x4a0)](_0x49e9d6['id'],_0x27f59f,_0x1cd162);}};J=A([k(0x0,(0x0,t[_0x2c7e3b(0x1a4)])(e[_0x2c7e3b(0x3b1)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(P)),k(0x2,(0x0,t[_0x2c7e3b(0x1a4)])(t['LocaleService'])),k(0x3,M),k(0x4,t[_0x2c7e3b(0x1a6)]),k(0x5,(0x0,t['Inject'])(a[_0x2c7e3b(0x2fc)]))],J);let Y=class extends t['Disposable']{constructor(_0x621be,_0x3e47ba,_0x1706a6,_0x408205){const _0xd8f88c=_0x2c7e3b;super(),this[_0xd8f88c(0x199)]=_0x621be,this[_0xd8f88c(0x425)]=_0x3e47ba,this[_0xd8f88c(0x476)]=_0x1706a6,this['_chartModelService']=_0x408205,this[_0xd8f88c(0x369)]();}[_0x2c7e3b(0x369)](){const _0x1197fe=_0x2c7e3b;this[_0x1197fe(0x320)](this[_0x1197fe(0x425)][_0x1197fe(0x390)]({'getMutations':_0x5bd623=>{const _0x3ff5dd=_0x1197fe;if(_0x5bd623['id']===f[_0x3ff5dd(0x200)]['id']){let _0x5a981e=(0x0,f[_0x3ff5dd(0x19b)])(this[_0x3ff5dd(0x199)],_0x5bd623[_0x3ff5dd(0x3ff)]);if(!_0x5a981e)return{'redos':[],'undos':[]};let {unitId:_0x34a725,subUnitId:_0x50a39c}=_0x5a981e,_0x1dc162=this[_0x3ff5dd(0x476)][_0x3ff5dd(0x27f)](_0x34a725,_0x50a39c),_0x580f08=Object[_0x3ff5dd(0x305)](_0x1dc162)[_0x3ff5dd(0x379)](_0x3b3702=>_0x3b3702[_0x3ff5dd(0x1b5)]===t['DrawingTypeEnum'][_0x3ff5dd(0x382)]);if(_0x580f08[_0x3ff5dd(0x3ab)]===0x0)return{'redos':[],'undos':[]};let _0x3b8e29=[],_0x4c58ac=[];for(let _0x471d89=0x0;_0x471d89<_0x580f08[_0x3ff5dd(0x3ab)];_0x471d89++){let _0x325c4b=_0x580f08[_0x471d89],_0x1190de=this['_chartModelService'][_0x3ff5dd(0x300)](_0x325c4b['drawingId']);if(!_0x1190de)continue;let _0x2ac3fb=_0x1190de[_0x3ff5dd(0x46c)][_0x3ff5dd(0x209)](),{chartType:_0x30a5ac,context:_0x36779a,style:_0x32f539,dataAggregation:_0x3e5ea5}=_0x1190de[_0x3ff5dd(0x1f1)](),{redo:_0x4e0e00,undo:_0x842030,objects:_0x57819a}=this['_sheetDrawingService'][_0x3ff5dd(0x1b8)]([_0x325c4b]);_0x3b8e29[_0x3ff5dd(0x1c6)]({'id':e['RemoveSheetsChartMutation']['id'],'params':{'unitId':_0x34a725,'subUnitId':_0x50a39c,'chartId':_0x325c4b['drawingId']}}),_0x3b8e29['push']({'id':r[_0x3ff5dd(0x458)]['id'],'params':{'unitId':_0x34a725,'subUnitId':_0x50a39c,'type':r[_0x3ff5dd(0x1bc)][_0x3ff5dd(0x21a)],'op':_0x4e0e00,'objects':_0x57819a}}),_0x4c58ac[_0x3ff5dd(0x1c6)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x34a725,'subUnitId':_0x50a39c,'type':r[_0x3ff5dd(0x1bc)][_0x3ff5dd(0x1ed)],'op':_0x842030,'objects':_0x57819a}}),_0x4c58ac[_0x3ff5dd(0x1c6)]({'id':e[_0x3ff5dd(0x223)]['id'],'params':{'unitId':_0x34a725,'subUnitId':_0x50a39c,'chartId':_0x325c4b[_0x3ff5dd(0x449)],'chartType':_0x30a5ac,...(0x0,e[_0x3ff5dd(0x33d)])(_0x2ac3fb),'context':_0x36779a,'style':_0x32f539,'dataAggregation':_0x3e5ea5}});}return{'redos':_0x3b8e29,'undos':_0x4c58ac};}else{if(_0x5bd623['id']===f[_0x3ff5dd(0x429)]['id']){let {unitId:_0x43ac6d,subUnitId:_0x561a68,targetSubUnitId:_0x4e90c3}=_0x5bd623['params'];if(!_0x43ac6d||!_0x561a68||!_0x4e90c3)return{'redos':[],'undos':[]};let _0x1f8ad2=this[_0x3ff5dd(0x476)][_0x3ff5dd(0x27f)](_0x43ac6d,_0x561a68),_0xdfdf62=Object[_0x3ff5dd(0x305)](_0x1f8ad2)[_0x3ff5dd(0x379)](_0x58ec36=>_0x58ec36[_0x3ff5dd(0x1b5)]===t[_0x3ff5dd(0x241)][_0x3ff5dd(0x382)]);if(_0xdfdf62[_0x3ff5dd(0x3ab)]===0x0)return{'redos':[],'undos':[]};let _0x8de8f9=[],_0x2b1cf3=[];for(let _0x3c135c=0x0;_0x3c135c<_0xdfdf62[_0x3ff5dd(0x3ab)];_0x3c135c++){let _0x464404=_0xdfdf62[_0x3c135c],_0x5d71e6=this[_0x3ff5dd(0x316)][_0x3ff5dd(0x300)](_0x464404[_0x3ff5dd(0x449)]);if(!_0x5d71e6)continue;let _0xe0348=(0x0,t['generateRandomId'])(),_0x990946={..._0x464404,'unitId':_0x43ac6d,'subUnitId':_0x4e90c3,'drawingId':_0xe0348},_0x349731=_0x5d71e6[_0x3ff5dd(0x46c)][_0x3ff5dd(0x209)](),_0x5e8d56=Array[_0x3ff5dd(0x463)](_0x349731)?_0x349731[_0x3ff5dd(0x1f5)](_0x522eba=>({..._0x522eba,..._0x522eba[_0x3ff5dd(0x427)]?{'header':{..._0x522eba['header'],'subUnitId':_0x4e90c3}}:{},'range':{..._0x522eba[_0x3ff5dd(0x4a1)],'subUnitId':_0x4e90c3}})):{..._0x349731,'rangeInfo':{..._0x349731[_0x3ff5dd(0x464)],'subUnitId':_0x4e90c3}},{chartType:_0x530220,context:_0x13311a,style:_0x286a40,dataAggregation:_0x42e84e}=_0x5d71e6[_0x3ff5dd(0x1f1)](),{redo:_0x5bccf2,undo:_0x370b04,objects:_0x593ee4}=this[_0x3ff5dd(0x476)]['getBatchAddOp']([_0x990946]);_0x8de8f9[_0x3ff5dd(0x1c6)]({'id':r[_0x3ff5dd(0x458)]['id'],'params':{'unitId':_0x43ac6d,'subUnitId':_0x4e90c3,'type':r['DrawingApplyType'][_0x3ff5dd(0x1ed)],'op':_0x5bccf2,'objects':_0x593ee4}}),_0x8de8f9[_0x3ff5dd(0x1c6)]({'id':e[_0x3ff5dd(0x223)]['id'],'params':{'unitId':_0x43ac6d,'subUnitId':_0x4e90c3,'chartId':_0xe0348,'chartType':_0x530220,...(0x0,e[_0x3ff5dd(0x33d)])(_0x5e8d56),'context':_0x13311a,'style':_0x286a40,'dataAggregation':_0x42e84e}}),_0x2b1cf3[_0x3ff5dd(0x1c6)]({'id':e[_0x3ff5dd(0x434)]['id'],'params':{'unitId':_0x43ac6d,'subUnitId':_0x4e90c3,'chartId':_0xe0348}}),_0x2b1cf3[_0x3ff5dd(0x1c6)]({'id':r[_0x3ff5dd(0x458)]['id'],'params':{'unitId':_0x43ac6d,'subUnitId':_0x4e90c3,'type':r['DrawingApplyType'][_0x3ff5dd(0x21a)],'op':_0x370b04,'objects':_0x593ee4}});}return{'redos':_0x8de8f9,'undos':_0x2b1cf3};}}return{'redos':[],'undos':[]};}}));}};Y=A([k(0x0,(0x0,t['Inject'])(t[_0x2c7e3b(0x2ce)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(f[_0x2c7e3b(0x2aa)])),k(0x2,(0x0,t[_0x2c7e3b(0x1a4)])(r['ISheetDrawingService'])),k(0x3,(0x0,t['Inject'])(e[_0x2c7e3b(0x3b1)]))],Y);let X=class extends t[_0x2c7e3b(0x467)]{constructor(_0x2bd538,_0x226f2e){const _0x47961f=_0x2c7e3b;super(),this[_0x47961f(0x29e)]=_0x2bd538,this['_iconManager']=_0x226f2e,this[_0x47961f(0x265)](),this[_0x47961f(0x1ff)]();}[_0x2c7e3b(0x265)](){const _0x5ab441=_0x2c7e3b;this[_0x5ab441(0x320)](this['_iconManager'][_0x5ab441(0x4a5)]({'PenIcon':ee[_0x5ab441(0x2f6)]}));}['_registerComponents'](){const _0x5acbbe=_0x2c7e3b;[[Ue,He]][_0x5acbbe(0x481)](([_0x599a21,_0x106fad])=>{const _0xbd91f6=_0x5acbbe;this['disposeWithMe'](this['_componentManager'][_0xbd91f6(0x4a5)](_0x599a21,_0x106fad));});}};X=A([k(0x0,(0x0,t['Inject'])(o['ComponentManager'])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(o[_0x2c7e3b(0x3e2)]))],X);let Z=class extends t[_0x2c7e3b(0x467)]{constructor(_0xf5ea02,_0x4aabf2,_0x5610bc,_0x5d0f39){const _0x16f355=_0x2c7e3b;super(),this[_0x16f355(0x257)]=_0xf5ea02,this[_0x16f355(0x236)]=_0x4aabf2,this[_0x16f355(0x476)]=_0x5610bc,this['_chartModelService']=_0x5d0f39,E(this,'_copyInfo',void 0x0),this[_0x16f355(0x49b)]();}get[_0x2c7e3b(0x4b4)](){const _0x2bbc40=_0x2c7e3b;return this[_0x2bbc40(0x476)]['getFocusDrawings']();}['_initCopyPaste'](){const _0x58eef0=_0x2c7e3b;this['disposeWithMe'](this[_0x58eef0(0x236)][_0x58eef0(0x45c)]({'id':e[_0x58eef0(0x3b6)],'onBeforeCopy':(_0x4a31e9,_0x45be71,_0x1c2f16,_0x24249d)=>{const _0x41eb23=_0x58eef0;this[_0x41eb23(0x374)]=null;let _0x656965=this['_focusedDrawings'];if(_0x656965[_0x41eb23(0x3ab)]){let _0x5468b8=_0x656965[_0x41eb23(0x379)](_0x27cc80=>_0x27cc80['drawingType']===t[_0x41eb23(0x241)][_0x41eb23(0x382)]);if(_0x5468b8[_0x41eb23(0x3ab)]===0x0)return;this[_0x41eb23(0x374)]={'unitId':_0x4a31e9,'subUnitId':_0x45be71,'copyType':_0x24249d,'drawings':_0x5468b8};}else this[_0x41eb23(0x1d7)](_0x4a31e9,_0x45be71,_0x1c2f16,_0x24249d);},'onPasteCells':(_0x45d88f,_0x57ac32,_0x35192e,_0x2685f1)=>{const _0x15926a=_0x58eef0;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x3549e0}=_0x2685f1;return _0x3549e0===a[_0x15926a(0x2bd)][_0x15926a(0x33f)]?this[_0x15926a(0x31c)](_0x57ac32,this[_0x15926a(0x374)]['copyType']===a[_0x15926a(0x1ad)][_0x15926a(0x2f2)]):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0xced3f0=>this[_0x58eef0(0x374)]?this[_0x58eef0(0x31c)](_0xced3f0,this[_0x58eef0(0x374)][_0x58eef0(0x3d1)]===a[_0x58eef0(0x1ad)][_0x58eef0(0x2f2)]):{'redos':[],'undos':[]}}));}[_0x2c7e3b(0x1d7)](_0x420a53,_0x2e3ac3,_0x39569b,_0x318bc9){const _0x2c9eeb=_0x2c7e3b;let _0x1f6a7c=this[_0x2c9eeb(0x257)]['getSkeleton'](_0x420a53,_0x2e3ac3);if(!_0x1f6a7c)return;let _0x358c91=(0x0,f[_0x2c9eeb(0x3b5)])(_0x1f6a7c,_0x39569b);if(!_0x358c91)return;let {startX:_0x232c58,endX:_0x3b9e1a,startY:_0x20bca6,endY:_0x33a1a1}=_0x358c91,_0x2f3466=this['_sheetDrawingService'][_0x2c9eeb(0x27f)](_0x420a53,_0x2e3ac3),_0xdef258=this[_0x2c9eeb(0x4b4)][_0x2c9eeb(0x446)]();for(let [_0x1bc073,_0x4f5c9d]of Object[_0x2c9eeb(0x3d2)](_0x2f3466)){if(_0x4f5c9d[_0x2c9eeb(0x1b5)]!==t['DrawingTypeEnum'][_0x2c9eeb(0x382)])continue;let {transform:_0x2fc84e}=_0x4f5c9d;if(!_0x2fc84e)continue;let {left:_0x4bbb90=0x0,top:_0x2f1fe3=0x0,width:_0x2e5f07=0x0,height:_0x3a7088=0x0}=_0x2fc84e;_0x232c58<=_0x4bbb90&&_0x3b9e1a>=_0x4bbb90+_0x2e5f07&&_0x20bca6<=_0x2f1fe3&&_0x33a1a1>=_0x2f1fe3+_0x3a7088&&_0xdef258[_0x2c9eeb(0x1c6)](_0x4f5c9d);}_0xdef258[_0x2c9eeb(0x3ab)]>0x0&&(this[_0x2c9eeb(0x374)]={'unitId':_0x420a53,'subUnitId':_0x2e3ac3,'copyType':_0x318bc9,'copyRange':_0x39569b,'drawings':_0xdef258});}['_generatePasteMutations'](_0x3cb218,_0x3f0e76){const _0x387975=_0x2c7e3b;let {unitId:_0x5da190,subUnitId:_0x26e7f3,range:_0x59ae48}=_0x3cb218,_0x355280=this[_0x387975(0x257)]['getSkeleton'](_0x5da190,_0x26e7f3);if(!_0x355280)return{'redos':[],'undos':[]};let _0x29760e=(0x0,f['discreteRangeToRange'])(_0x59ae48),{unitId:_0x455dc8,subUnitId:_0x333267,copyRange:_0x110ec8,drawings:_0x442221}=this[_0x387975(0x374)],_0x404f40=this[_0x387975(0x257)][_0x387975(0x201)](_0x455dc8,_0x333267);if(!_0x404f40)return{'redos':[],'undos':[]};let _0x317342=[],_0x568b91=[];for(let _0x448632 of _0x442221){let {drawingId:_0x3fddac,transform:_0x13ddee,sheetTransform:_0x4e8244}=_0x448632,_0x2fa069=this[_0x387975(0x316)][_0x387975(0x300)](_0x3fddac);if(!_0x2fa069||!_0x13ddee||!_0x4e8244)continue;let _0x296d15=this[_0x387975(0x2d9)]({'transform':_0x13ddee,'sheetTransform':_0x4e8244},{'skeleton':_0x404f40,'range':_0x110ec8},{'skeleton':_0x355280,'range':_0x29760e});if(_0x3f0e76){let {redos:_0x2a5723,undos:_0x4090af}=this[_0x387975(0x3a3)]({'fromUnitId':_0x455dc8,'fromSubUnitId':_0x333267,'toUnitId':_0x5da190,'toSubUnitId':_0x26e7f3,'drawing':_0x448632,'newTransforms':_0x296d15},_0x2fa069);_0x317342['push'](..._0x2a5723),_0x568b91['push'](..._0x4090af);continue;}let {redos:_0x316302,undos:_0x1c2f37}=this['_generateCopyPasteMutations']({'toUnitId':_0x5da190,'toSubUnitId':_0x26e7f3,'drawing':_0x448632,'newTransforms':_0x296d15},_0x2fa069);_0x317342[_0x387975(0x1c6)](..._0x316302),_0x568b91['push'](..._0x1c2f37);}return{'redos':_0x317342,'undos':_0x568b91};}['_generateCutPasteMutations'](_0x45b074,_0x43953f){const _0xb12e86=_0x2c7e3b;let {fromUnitId:_0x5f2222,fromSubUnitId:_0x54421f,toUnitId:_0x4d8a49,toSubUnitId:_0x8a3942,drawing:_0x1deb31,newTransforms:_0x3d13c5}=_0x45b074,_0x3904df={..._0x1deb31,'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'transform':_0x3d13c5[_0xb12e86(0x268)],'sheetTransform':_0x3d13c5['sheetTransform']};if(_0x4d8a49===_0x5f2222&&_0x8a3942===_0x54421f){let {redo:_0x186d45,undo:_0x268c32,objects:_0x241d1c}=this[_0xb12e86(0x476)][_0xb12e86(0x2a5)]([_0x3904df]);return{'redos':[{'id':r[_0xb12e86(0x458)]['id'],'params':{'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'type':r[_0xb12e86(0x1bc)][_0xb12e86(0x3e8)],'op':_0x186d45,'objects':_0x241d1c}}],'undos':[{'id':r[_0xb12e86(0x458)]['id'],'params':{'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'type':r[_0xb12e86(0x1bc)][_0xb12e86(0x3e8)],'op':_0x268c32,'objects':_0x241d1c}}]};}else{let _0xc2eaed=this[_0xb12e86(0x476)][_0xb12e86(0x1b8)]([_0x1deb31]),_0x426726=this[_0xb12e86(0x476)][_0xb12e86(0x3dc)]([_0x3904df]),_0x150e46=_0x43953f[_0xb12e86(0x46c)]['getRangeInfo'](),{chartType:_0x3f7ab4,context:_0x313b41,style:_0x3c2574,dataAggregation:_0x2d8065}=_0x43953f[_0xb12e86(0x1f1)]();return{'redos':[{'id':r[_0xb12e86(0x458)]['id'],'params':{'unitId':_0x5f2222,'subUnitId':_0x54421f,'type':r[_0xb12e86(0x1bc)][_0xb12e86(0x21a)],'op':_0xc2eaed[_0xb12e86(0x3c6)],'objects':_0xc2eaed[_0xb12e86(0x49f)]}},{'id':e[_0xb12e86(0x434)]['id'],'params':{'unitId':_0x5f2222,'subUnitId':_0x54421f,'chartId':_0x1deb31[_0xb12e86(0x449)]}},{'id':r[_0xb12e86(0x458)]['id'],'params':{'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'type':r[_0xb12e86(0x1bc)]['INSERT'],'op':_0x426726[_0xb12e86(0x3c6)],'objects':_0x426726[_0xb12e86(0x49f)]}},{'id':e[_0xb12e86(0x223)]['id'],'params':{'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'chartId':_0x1deb31[_0xb12e86(0x449)],'chartType':_0x3f7ab4,...(0x0,e['toInsertChartMutationSource'])(_0x150e46),'context':_0x313b41,'style':_0x3c2574,'dataAggregation':_0x2d8065}}],'undos':[{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5f2222,'subUnitId':_0x54421f,'type':r[_0xb12e86(0x1bc)][_0xb12e86(0x1ed)],'op':_0xc2eaed[_0xb12e86(0x387)],'objects':_0xc2eaed[_0xb12e86(0x49f)]}},{'id':e[_0xb12e86(0x223)]['id'],'params':{'unitId':_0x5f2222,'subUnitId':_0x54421f,'chartId':_0x1deb31[_0xb12e86(0x449)],'chartType':_0x3f7ab4,...(0x0,e[_0xb12e86(0x33d)])(_0x150e46),'context':_0x313b41,'style':_0x3c2574,'dataAggregation':_0x2d8065}},{'id':r[_0xb12e86(0x458)]['id'],'params':{'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'type':r[_0xb12e86(0x1bc)]['REMOVE'],'op':_0x426726[_0xb12e86(0x387)],'objects':_0x426726[_0xb12e86(0x49f)]}},{'id':e['RemoveSheetsChartMutation']['id'],'params':{'unitId':_0x4d8a49,'subUnitId':_0x8a3942,'chartId':_0x1deb31[_0xb12e86(0x449)]}}]};}}[_0x2c7e3b(0x46b)](_0x10245c,_0x5dfcef){const _0x5ab3f4=_0x2c7e3b;let {toUnitId:_0x33b0a3,toSubUnitId:_0xc9b630,drawing:_0x1a2056,newTransforms:_0x314044}=_0x10245c,_0x346c6e=(0x0,t[_0x5ab3f4(0x495)])(),_0x7b7ad1={..._0x1a2056,'unitId':_0x33b0a3,'subUnitId':_0xc9b630,'drawingId':_0x346c6e,'transform':_0x314044[_0x5ab3f4(0x268)],'sheetTransform':_0x314044[_0x5ab3f4(0x3e4)]},{redo:_0x508e89,undo:_0x449d85,objects:_0x4b9c52}=this[_0x5ab3f4(0x476)][_0x5ab3f4(0x3dc)]([_0x7b7ad1]),_0x48b289=_0x5dfcef[_0x5ab3f4(0x46c)]['getRangeInfo'](),{chartType:_0x3c43f5,context:_0x47e9cf,style:_0x929b2a,dataAggregation:_0x9707ba}=_0x5dfcef[_0x5ab3f4(0x1f1)]();return{'redos':[{'id':r[_0x5ab3f4(0x458)]['id'],'params':{'unitId':_0x33b0a3,'subUnitId':_0xc9b630,'type':r[_0x5ab3f4(0x1bc)][_0x5ab3f4(0x1ed)],'op':_0x508e89,'objects':_0x4b9c52}},{'id':e[_0x5ab3f4(0x223)]['id'],'params':{'unitId':_0x33b0a3,'subUnitId':_0xc9b630,'chartId':_0x346c6e,'chartType':_0x3c43f5,...(0x0,e[_0x5ab3f4(0x33d)])(_0x48b289),'context':_0x47e9cf,'style':_0x929b2a,'dataAggregation':_0x9707ba}}],'undos':[{'id':r[_0x5ab3f4(0x458)]['id'],'params':{'unitId':_0x33b0a3,'subUnitId':_0xc9b630,'type':r[_0x5ab3f4(0x1bc)][_0x5ab3f4(0x21a)],'op':_0x449d85,'objects':_0x4b9c52}},{'id':e[_0x5ab3f4(0x434)]['id'],'params':{'unitId':_0x33b0a3,'subUnitId':_0xc9b630,'chartId':_0x346c6e}}]};}[_0x2c7e3b(0x2d9)](_0x2e84dc,_0x2f6140,_0x428ee2){const _0x449aab=_0x2c7e3b;let {range:_0x1fbc6c,skeleton:_0x5980cc}=_0x2f6140,{range:_0x168ebc,skeleton:_0x4f2666}=_0x428ee2,{transform:_0x572df3,sheetTransform:_0x7a86f0}=_0x2e84dc,_0x4804ff={..._0x572df3};if(_0x1fbc6c){let _0x130893=(0x0,f[_0x449aab(0x3b5)])(_0x5980cc,_0x1fbc6c),_0x55ed73=(0x0,f[_0x449aab(0x3b5)])(_0x4f2666,_0x168ebc);if(_0x130893&&_0x55ed73){let _0x1c5f49=_0x55ed73[_0x449aab(0x306)]-_0x130893[_0x449aab(0x306)],_0x15e0c8=_0x55ed73[_0x449aab(0x1cf)]-_0x130893['startY'];_0x4804ff[_0x449aab(0x276)]=(_0x4804ff['left']??0x0)+_0x1c5f49,_0x4804ff[_0x449aab(0x43e)]=(_0x4804ff[_0x449aab(0x43e)]??0x0)+_0x15e0c8;}}else{let _0x51835d=(0x0,f[_0x449aab(0x3b5)])(_0x4f2666,_0x168ebc);_0x4804ff[_0x449aab(0x276)]=_0x51835d==null?void 0x0:_0x51835d['startX'],_0x4804ff[_0x449aab(0x43e)]=_0x51835d==null?void 0x0:_0x51835d[_0x449aab(0x1cf)];}return{'transform':_0x4804ff,'sheetTransform':(0x0,r[_0x449aab(0x3bb)])(_0x4804ff,_0x4f2666)??_0x7a86f0};}};Z=A([k(0x0,(0x0,t[_0x2c7e3b(0x1a4)])(f[_0x2c7e3b(0x28b)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(a[_0x2c7e3b(0x28a)])),k(0x2,(0x0,t[_0x2c7e3b(0x1a4)])(r[_0x2c7e3b(0x42a)])),k(0x3,(0x0,t[_0x2c7e3b(0x1a4)])(e[_0x2c7e3b(0x3b1)]))],Z);let Q=class extends t[_0x2c7e3b(0x467)]{constructor(_0x355308,_0x43b769,_0x8a2afc,_0x5c78e5){const _0x507e8a=_0x2c7e3b;super(),this['_commandService']=_0x355308,this['_localeService']=_0x43b769,this[_0x507e8a(0x2e3)]=_0x8a2afc,this['_sheetsChartService']=_0x5c78e5,this[_0x507e8a(0x2b4)]();}[_0x2c7e3b(0x2b4)](){const _0x447c98=_0x2c7e3b;this[_0x447c98(0x320)](this['_commandService'][_0x447c98(0x48f)](_0x4720e0=>{const _0x58e611=_0x447c98;let _0x1b53a7,_0x1a66d8;if(_0x4720e0['id']===e['InsertChartCommand']['id']){let _0x424f20=_0x4720e0['params'];_0x1b53a7=_0x424f20[_0x58e611(0x419)],_0x1a66d8=_0x424f20['subUnitId'];}else{if(_0x4720e0['id']===e[_0x58e611(0x384)]['id']||_0x4720e0['id']===e[_0x58e611(0x3dd)]['id']){let _0x278b6d=_0x4720e0[_0x58e611(0x3ff)];_0x1b53a7=_0x278b6d[_0x58e611(0x419)],_0x1a66d8=this[_0x58e611(0x1e7)]['getSubUnitId'](_0x278b6d[_0x58e611(0x419)],_0x278b6d['chartModelId']);}}!_0x1b53a7||!_0x1a66d8||this['_sheetPermissionCheckController'][_0x58e611(0x39a)]({'workbookTypes':[f[_0x58e611(0x2bb)]],'worksheetTypes':[f['WorksheetEditPermission']]},_0x1b53a7,_0x1a66d8)||this[_0x58e611(0x2e3)][_0x58e611(0x184)](this['_localeService']['t'](_0x58e611(0x344)));}));}};Q=A([k(0x0,(0x0,t['Inject'])(t[_0x2c7e3b(0x1a6)])),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(t[_0x2c7e3b(0x1ac)])),k(0x2,(0x0,t['Inject'])(f['SheetPermissionCheckController'])),k(0x3,(0x0,t[_0x2c7e3b(0x1a4)])(e[_0x2c7e3b(0x39b)]))],Q);let $=class extends t[_0x2c7e3b(0x1d9)]{constructor(_0x318fde=b,_0x32ec10,_0x4f800a,_0x3c79f5){const _0x197727=_0x2c7e3b;super(),this[_0x197727(0x3e5)]=_0x318fde,this[_0x197727(0x486)]=_0x32ec10,this[_0x197727(0x44c)]=_0x4f800a,this[_0x197727(0x4a8)]=_0x3c79f5,E(this,_0x197727(0x445),void 0x0);let {..._0x4d9810}=(0x0,t[_0x197727(0x292)])({},b,this['_config']);this[_0x197727(0x445)]=_0x4d9810,this[_0x197727(0x44c)][_0x197727(0x214)](y,_0x4d9810),this['_initCommands'](),(0x0,c['registerWordCloudChart'])(c['echarts']);}[_0x2c7e3b(0x325)](){const _0x26cbd1=_0x2c7e3b;this['_injector'][_0x26cbd1(0x499)]([X]),this[_0x26cbd1(0x486)][_0x26cbd1(0x406)](X);let _0x158725=this[_0x26cbd1(0x486)],_0x18ded8=[[M,{'useClass':N}],[j,{'useClass':fe}],[se],[P],[U],[q],[J],[Z],[Y],[Q]],_0x21ae78=[[U],[J],[q],[M],[Z],[Y],[Q]];this[_0x26cbd1(0x445)][_0x26cbd1(0x251)]&&(_0x18ded8[_0x26cbd1(0x1c6)]([K]),_0x21ae78[_0x26cbd1(0x1c6)]([K])),_0x18ded8[_0x26cbd1(0x481)](_0x523ca0=>_0x158725['add'](_0x523ca0)),(0x0,t[_0x26cbd1(0x234)])(this[_0x26cbd1(0x486)],_0x21ae78);}[_0x2c7e3b(0x36c)](){const _0x592792=_0x2c7e3b;var _0x37b26e;(_0x37b26e=this[_0x592792(0x486)][_0x592792(0x406)](U))==null||_0x37b26e[_0x592792(0x3ec)]();}['_initCommands'](){const _0x6a6b67=_0x2c7e3b;[V,I,L,R,z,S,x][_0x6a6b67(0x481)](_0x3c366f=>this['disposeWithMe'](this[_0x6a6b67(0x4a8)]['registerCommand'](_0x3c366f)));}};E($,_0x2c7e3b(0x39f),t[_0x2c7e3b(0x339)][_0x2c7e3b(0x48c)]),E($,'pluginName','UniverSheetsChartUIPlugin'),E($,_0x2c7e3b(0x375),qe),E($,_0x2c7e3b(0x281),Je),$=A([(0x0,t[_0x2c7e3b(0x1bd)])(v[_0x2c7e3b(0x1a9)],n[_0x2c7e3b(0x38c)],u[_0x2c7e3b(0x25f)],f[_0x2c7e3b(0x208)],r[_0x2c7e3b(0x233)],d[_0x2c7e3b(0x3c7)],e[_0x2c7e3b(0x1fa)],i['UniverSheetsDrawingUIPlugin'],a[_0x2c7e3b(0x351)]),k(0x1,(0x0,t[_0x2c7e3b(0x1a4)])(t['Injector'])),k(0x2,t[_0x2c7e3b(0x304)]),k(0x3,t[_0x2c7e3b(0x1a6)])],$),exports['ISheetsChartUIService']=M,exports[_0x2c7e3b(0x336)]=y,Object[_0x2c7e3b(0x493)](exports,_0x2c7e3b(0x328),{'enumerable':!0x0,'get':function(){return U;}}),exports['SheetsChartUIMenuSchema']=ke,Object['defineProperty'](exports,_0x2c7e3b(0x337),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x2c7e3b(0x493)](exports,_0x2c7e3b(0x3fe),{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0x518ea5=_0x2b25;(function(_0x7628c,_0x3a7197){const _0x18f917=_0x2b25,_0x3aa81a=_0x7628c();while(!![]){try{const _0x520280=parseInt(_0x18f917(0x1cf))/0x1+-parseInt(_0x18f917(0x21d))/0x2*(-parseInt(_0x18f917(0x340))/0x3)+-parseInt(_0x18f917(0x467))/0x4+parseInt(_0x18f917(0x1c8))/0x5*(parseInt(_0x18f917(0x275))/0x6)+parseInt(_0x18f917(0x249))/0x7*(parseInt(_0x18f917(0x3d3))/0x8)+-parseInt(_0x18f917(0x350))/0x9*(-parseInt(_0x18f917(0x3f5))/0xa)+-parseInt(_0x18f917(0x1e0))/0xb;if(_0x520280===_0x3a7197)break;else _0x3aa81a['push'](_0x3aa81a['shift']());}catch(_0x1d74ab){_0x3aa81a['push'](_0x3aa81a['shift']());}}}(_0x47fb,0xeb177),Object[_0x518ea5(0x200)](exports,Symbol[_0x518ea5(0x3f2)],{'value':_0x518ea5(0x43e)}));let e=require('@univerjs-pro/sheets-chart'),t=require('@univerjs/core'),n=require('@univerjs/drawing'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs/sheets-drawing-ui'),a=require('@univerjs/sheets-ui'),o=require('@univerjs/ui'),s=require('@univerjs-pro/chart-ui'),c=require('@univerjs-pro/engine-chart'),l=require('@univerjs/sheets'),u=require('rxjs'),d=require('@univerjs/engine-formula'),f=require('@univerjs/drawing-ui'),p=require('@univerjs/engine-render'),m=require('react'),h=require('@univerjs/design'),g=require('@univerjs/sheets-formula-ui'),_=require('react/jsx-runtime'),v=require('@univerjs-pro/license'),ee=require('@univerjs/icons');const y=_0x518ea5(0x353),b={'enableChartElementFloatMenu':!0x0},x={'type':t[_0x518ea5(0x1d9)][_0x518ea5(0x247)],'id':_0x518ea5(0x14d),'handler'(){return!0x0;}},S={'type':t[_0x518ea5(0x1d9)][_0x518ea5(0x247)],'id':_0x518ea5(0x1f8),'handler'(){return!0x0;}};function _0x47fb(){const _0x565f1e=['take','getSheetBySheetId','ChartUpdateConfigMutation','clearChart','_pendingHost','cumulativeLineStyle','drawingId','ancestorTransform','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','setObjectType','1000','merge','COPY_TYPE','drawingIds','rect','sheets-chart-ui.section.lineAndArea','ImageChartHost','_sheetsChartUIService','sheet.chart.edit.panel','_managed','seriesId','.png','chartModelAdded$','serializeRangeWithSheet','asObservable','getCurrentRangeDisable$','activeEditChart$','_chartEventSubscriptions','closePath','ChartRenderMode','_activeDomReadyChartIds','removeHost$','focusDrawing','all','commitSnapshot','focus$','height','lineTo','image','_chartRenderService','section','getRenderUnitById','_createImageChartHost','_markNotReady','resolveChartCreationIntent','markHostNotReady','_getDrawingGeometry','undo','getChartPopupMenus','sheets-chart-ui.waterfall.positive','type','IndicatorLine','interceptor','split','_cancelDebouncedCallbacks','cancel','relation','Image','Url','ChartGradientFillField','_initSheetChange','_resetChartRuntimeZIndex','Data','getValue','set','buildChartTypeSelectOptions','UniverChartUIPlugin','symbol','resolveChartStyleBackgroundColor','_clearSheetChartRuntimeCaches','getFocusedUnit','ChartEditBlockTitle','debounce','_componentManager','version','DEFAULT_CHART_SERIES_VALUES','getElementById','_pendingToken','canvas','_initDrawingDeactivationListener','delete','_drawChartImage','isLatest','getCurrentLastSelection','href','scene','ChartRelationStyleSection','url','transformToDrawingPosition','_disposed','ChartSectionAccordionContent','OTHERS','items','SheetCanvasFloatDomManagerService','DependentOn','RemoveSheetDrawingCommand','_chartInstanceMap','Fragment','_syncLayoutOnDrawingTransform','_waiter','_canvasFloatDomService','_menuManagerService','sheets-chart-ui.common.category','_sidebarService','activeChartModel$','_savedWrapperStyle','initialRect','filter','_popupDisposable','forEach','setOrientation','discreteRangeToRange','Combination','auto','sheets-chart-ui.section.wordCloud','right','opacity','offsetLeft','sheets-chart-ui.common.editChart','\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','getCanvasElement','_urlImage','_config','DownloadImageIcon','UniverInstanceType','chartId','create','VerticalAxis','ChartUpdateConfigCommand','setHostStyle','DEFAULT_CHART_WORD_CLOUD_VALUES','open','mode','Histogram','SheetSkeletonManagerService','UniverRenderEnginePlugin','ChartNumberFormatAtom','getName','register','add','entries','37302teItre','promise','PenIcon','labelId','resolveChartEditPanelRoute','Canvas','clientWidth','drawWith','length','ChartLegendSection','getRenderModel','_injector','ChartEditPanel','ChartTypeSpecificSetupSection','chartModelId','useChartEditorHasRightAxis','230868bLRGwf','bounds','useEffect','sheets-chart-ui.config','drawingType','_resolveLayout','_getChartRenderSkipReason','checkChartCanRender','chartObject','sheets-chart-ui.common.series','pipe','syncLayout','default','enableChartElementFloatMenu','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','get','Line','IMenuManagerService','DEFAULT_CHART_LINE_AND_AREA_VALUES','redo','DEFAULT_PASTE','Disposable','sheets-chart.ui.service','_univerInstanceService','WorkbookEditablePermission','getChartDataSource','getChartModel','invalidateSnapshot','_getChartRenderObjectContext','ensureHandle','SheetCanvasPopManagerService','number','left','sheet.command.chart.export-focused-image','sheets-chart-ui.host.provider','CanvasFloatDomService','SheetsChartUIService','SHEETS_CHART_UI_PLUGIN_CONFIG_KEY','onDispose','save','ChartAxisSection','isHit','EChartRenderEngineName','sheet.command.menu-insert-chart','DEFAULT_CHART_PIE_VALUES','debounceTime','getRenderColor','render','disposeWithMe','sheets-chart-ui.section.treemap','_frameStyle','assignStyle','localPoint','_sheetCanvasPopManagerService','attachRangeWithCoord','ChartStyle','setImage','onload','ChartPieStyleSection','createChartInstance','InsertChartCommand','sheets-chart-ui.common.copy','sidebarOptions$','SetDrawingApplyMutation','Relation','#-#','sheets-chart-ui.section.gridlinesAndTicks','Dom','_sheetPermissionCheckController','exportImg','RibbonInsertGroup','syncHostLayout','_generateCutPasteMutations','max','_disposeChartEventSubscriptions','_chartUIService','_snapshotKey','Canceled\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','clearPanelRoute','range','addClipboardHook','executeChartUpdateConfig','ChartEditPanelSection','dblclick','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-5','with','INSERT','dataSource','_copyInfo','offsetTop','createIdentifier','ChartWaterfallSetupFields','createRuntimeChartStyle','hidden','mergeMenu','.chart-host','IUniverInstanceService','setContextValue','subscribeEvent','_closePopup','useMemo','clientY','ChartViewStateRegistry','ChartHostAdapter','style$','rangeInfo','value','UniverSheetsDrawingPlugin','update','logicalOuterRect','getFloatDomInfo','pareto','_initActiveRuntimeLayerListener','_getFloatDomInfo','Column','registerCommand','ChartHostRenderMode','resourceCollector','rangeSelectMode','sheets-chart-ui.waterfall.negative','SheetCopyCommand','_getPlacement','Gauge','sheet-chart-style-panel','sheets-chart-ui.common.exportImage','ChartTypeSpecificStyleSection','startRow','ChartImageSourceType','visible','-univer-mx-4','hidePanel','10348224REWLPm','PieSecondaryPlotType','univer-overflow-visible','getObjectIncludeInGroup','IContextService','GeneralSeries','transparent','ChartCommonDataMappingSection','Axes','fromEvent','endsWith','_bindChartEventHandler','Fail\x20to\x20create\x20float\x20dom','has','_renderModelManager','offsetHeight','startWith','_initPermission','startX','_chartEventHandlers','_debounceHandle','DEFAULT_CHART_FUNNEL_VALUES','scroll','_focusedDrawings','PREDEFINED_HOOK_NAME','_rerenderLatest','_sidebarDisposable','permissionCheckWithoutRange','SheetsChartUIMenuSchema','_drawChartFrame','_rangeSelectMode','toStringTag','getChartSnapshotImage','sheets-chart-element-float-menu','410pSpXPT','_restoreHostWrapper','_requestChartCanvasRender','SELECTOR','_resolveChartRenderMode','Heatmap','getRealBound','ChartImageExportService','sheets-chart-ui.section.funnel','_pendingMutationConfigRenders','_initPrinting','onCommandExecuted','_deactivateEditPanelState','iterator','_getOrCreateChartRenderInstance','getBatchAddOp','abs','setActiveChartModel','_disposeChartEventSubscription','startY','subUnitId','CUT','IRenderManagerService','RTLChartStyle','_initMenus','ChartEditorCapability','next','_registerIcons','objects','params','getMatrix','sheet.command.chart.open-focused-panel','UNIVER_SHEET','clientX','getUnitId','SheetsChartService','_chartRenderMode','_activeChartId','ChartSectionAccordionTrigger','baseOn','Bar','DRAWING','DEFAULT_CHART_WATERFALL_STYLE_VALUES','_sheetSkeletonService','DrawingTypeEnum','DeleteIcon','object','setPanelRoute','DEFAULT_CHART_STYLE_VALUES','touchDependencies','evented','zIndex','_listenChartUpdateMutations','inactive-sheet','Boxplot','isElementEditModeActive','Timed\x20out\x20waiting\x20for\x20float\x20dom\x20host\x20\x22','combineLatestWith','dispose','setElementEditMode','blockExecuteWithoutPermission','ChartGridlinesAndTicksSection','FOCUSING_COMMON_DRAWINGS','isArray','getDirection','_selectedElement$','sheets-chart-ui.section.sunburst','HorizontalAxis','intercept','_executeChartUpdateSourceConfig','_lastActiveSheet','sheetDisposed$','_getImage','Module','header','ChartModelService','_iconManager','getObject','ChartLineAndAreaSection','SheetDrawingHitTestService','radius','_createChartRenderInstanceContext','ChartWordCloudStyleSection','_generateCopyPasteMutations','_openEditPanelByDoubleClick','sheets-chart-ui.common.setup','UniverSheetsChartUIPlugin','ICommandService','min','pieSecondaryPlotType','_renderWhenConfigReady','from','activeChartModel','WaterfallSeries','_createCopyInfoByRange','isDomReady','_getSceneAndTransformerByDrawingSearch','BehaviorSubject','_clearChartRuntimeCache','_getOrCreateSheetChartHost','_sheetClipboardService','mountNode','series','scaleY','_cancelHostWait','constructor','ParetoLineSeries','sheetTransform','DEFAULT_CHART_HEATMAP_VALUES','ChartWaterfallStyleSection','route','bind','anonymous','getSkeleton','3216416ygcmDf','children','parent','Sunburst','rangeInfo$','LineAndArea','setDataRange','src','_markHostReady','sheets-chart-ui.section.paretoBar','sheets-chart-ui.section.radar','heatmap','beginPath','sheets-chart-ui.common.customize','every','Pareto','showFloatMenu','_themeService','clientHeight','_registerAdapter','_handleDrawingDoubleClick','sheets-chart-ui.chord.target','transformChange$','Sankey','featurePluginUngroupUpdate$','DEFAULT_CHART_LEGEND_VALUES','style','_isProviderDisposed','_getDrawable','slice','_initActiveChartModelListener','LocaleService','getConfig','CopySheetCommand','ensureHost','ChartIndicatorLineSection','_getOuterRect','indexOf','_applyActiveChartRuntimeZIndex','_getChartSnapshotKey','onTransformChange$','RangeSelector','Scatter','sheet.operation.hide-chart-panel','IDrawingManagerService','string','_lastRenderInputMap','ISheetDrawingService','ChartHeatmapStyleSection','getDrawingShapeKeyByDrawingSearch','_setHostStyle','legend','BUTTON','Legend','addObject','chartTypeSupportsCapability','nativeEvent','SheetsChartUIController','pluginName','Injector','_chartHostMap','beforeCommandExecuted','UniverSheetsUIPlugin','sheets-chart-ui.section.gauge','CHART_HOST_BORDER_RADIUS','some','markUnmanaged','_shouldSuppressSnapshot','isRowDirection','contains','sheets-chart-ui.chartTypes.','_configService','indicatorLine','Style','updateFloatDom','registerFeatureMenu','ensureMount','COMMAND','complete','ChartParetoSeriesSection','add$','activeEditChart','sheets-chart-ui.waterfall.subtotal','getHostSize','width','download','resolveChartElementSelection','_draw','close','RemoveSheetCommand','_url','_popupChartId','panelRoute$','Plugin','sheets-chart-ui.common.chartStyle','CHART','_disposeImage','_sheetDrawingService','_registerComponents','getDrawingByParam','IChartRenderModelManagerService','_debounceHandleMap','_getCurrentSnapshotImage','groupId','chartBitsUtils','keys','DRAWING_CHART','Pie','exportImage','_addWatermark','then','onRendered','anchorRect$','_chartHostProviderService','getAllowedChartTypes','chartType','lineAndArea','MEDIA','makeDirty','chartImageSourceToDataUrl','useChartEditorChartType','_renderManagerService','_resizeChart','removeHost','missing-active-sheet','_chartSnapshotStoreService','_hostStyle','Radar','_registerChartImageRenderObjectFactory','sheets-chart-ui.common.dataRange','config','waterfallStyle','Row','_updateTransform','map','_openPanel','trendline','_renderAfterChartUpdateMutation','IConfigService','getImage','_sheetInterceptorService','sheet.command.chart.copy-focused-chart','_version','sheets-chart-ui.common.switchRowColumn','ChartUpdateSourceCommand','setConfig','click','_requestPaint','CopyDoubleIcon','IconManager','GROUP','getRangeInfo','hit','setRangeSelectMode','selectedElement$','ChartEditorProvider','bottom','UniverSheetsPlugin','ThemeService','checkMounted','Candlestick','CHART_ELEMENT_FLOAT_MENU_COMPONENT','Chord','_sheetsChartService','_sheetDrawingHitTestService','chartModelRemoved$','245dwsiyN','_setActiveChart','ChartSectionAccordionItem','getSheetCommandTarget','getParent','classType','_setChartRuntimeZIndex','970771QKPxwW','requestPaint','setActiveEditChart','throttleTime','ImageBitmap','multiply','ChartThemeService','Treemap','useDependency','getDrawingOrder','CommandType','ChartSectionAccordion','UniverLicensePlugin','DEFAULT_CHART_RADAR_VALUES','select','_activateEditPanelState','DEFAULT_CHART_RELATION_VALUES','21206207BRtAHh','_contextService','getBoundingClientRect','ChartWaterfallStyleTarget','PieStyle','setSelectedElement','decorate','DEFAULT_CHART_PARETO_VALUES','ISheetsChartUIService','direction$','[ChartRender]\x20Failed\x20to\x20render\x20chart\x20snapshot\x20for\x20printing','clearImage','_sheetPrintInterceptorService','sheets-chart-ui.common.openChartPanel','onStarting','_commandService','createChartElementFloatMenuAdapter','applyPoint','wordCloud','chartTypeCanUseTrendLine','ChartFunnelStyleSection','ISheetClipboardService','_drawingManagerService','toDisposable','sheet.operation.open-chart-panel','featurePluginGroupUpdate$','ChartTrendlineSection','innerWidth','toInsertChartMutationSource','generateRandomId','executeCommand','ChartSeriesSection','defineProperty','getBatchRemoveOp','ChartFrameContentMode','activeRuntimeModel','handleActiveSubUnitChange','unitId','_snapshotStore','viewBound','titleKey','drawImage','_clearSelectedTarget','RemoveSheetsChartMutation','Rect','name','parentElement','radar','getSheetBySheetName','SHEETS_CHART_PLUGIN_NAME','RightVerticalAxis','_createPrintingChartObject','MenuItemType','clip','target','scaleX','combineLatest','strokeWidth','pointerEvents','naturalWidth','moveTo','12gQWmXS','div','1.0.0-beta.1','jsx','isRender','_chartHostProvider','chartTypeSupportsLineAndAreaStyle','ChartTypeBits','crossOrigin','useState','function','_shouldEnableChartElementEdit','DisposableCollection','resolve','UPDATE','_chartThemeService','querySelector','rightYAxis','unsubscribe','allSeriesStyle','isManaged','hasOwnProperty','tab','translate','defaultValues','_resolvedConfig','_localeService','openChartPanelById','prototype','ContextMenuGroup','jsxs','_markReady','_entries','DrawingApplyType','ISidebarService','icon','getCurrentTypeOfUnit$','sheets-chart-ui.section.chord','sheets-chart-ui.section.paretoLine','initPanel','position$','Trendline','OPERATION','ChartEditPanelTabs','7YiMLBI','_renderService','deserializeRangeWithSheet','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_activeEditChart$','label','updateFloatDomProps','_image','values','getDrawingData','getActiveSheet','useObservable','numberToABC','getUnit','InsertSheetsChartMutation','allSettled','chartRenderMode','call','setStyle','config$','_disposeChartRenderInstance','registerRenderObjectFactory','_panelRoute$','WordCloud','_sheetCanvasFloatDomManagerService','subscribe','push','setBorder','category','resolveDefaultChartHostFrameStyle','color','transform','img','getCurrentUnitOfType','scale','REMOVE','_renderChartModel','_generatePasteMutations','Funnel','remove$','sheet-chart-setup-panel','getRect','sheets-chart-ui.section.waterfall','axis','37254prQLZy','SheetSkeletonService','ChartStyleSection','renderChartsForPrinting','_isChartElementEditEnabled','clear','DataOrientation','Overlay','isFinite','resolveChartRuntimeStyle','getOwnPropertyDescriptor','_createHost','rightY','funnel','_chartElementEditMode','ChartRadarStyleSection','_drawingGeometry','markNotReady','ChartEditPanelTab','darkMode$','DEFAULT_CHART_WATERFALL_SETUP_VALUES','_init','iconName','univer-flex\x20univer-flex-col\x20univer-gap-3','top-center','_chartModelService','interceptCommand','resize','concat','sheets-chart-ui.permission.editErr','Inject','waterfall','_disposeChartDomInstance','_getHostPlacement','_initCommands','_bindChartEventHandlers','_domFrame','serialize','SHEETS_CHART_PLUGIN_CONFIG_KEY','arc','ChartIcon','copyType','getSheetId','_activateHostWrapper','Subtotal','ChartElementFloatMenuAdapterRegistry','_renderDebounceMap','top','columnStacked','ParetoBarSeries','small','univer-overflow-hidden','sheets-chart-ui.section.histogram','nextVersion','barStyle','sheets-chart-ui.section.pie','restore','takeSnapshot','offsetWidth','_rect','domId','UniverDrawingPlugin'];_0x47fb=function(){return _0x565f1e;};return _0x47fb();}function C(_0x14aefa){const _0x197564=_0x518ea5;let _0x100c78=_0x14aefa[_0x197564(0x35f)](r[_0x197564(0x151)])['getFocusDrawings']();if(_0x100c78['length']!==0x1)return null;let _0x2b8a73=_0x100c78[0x0];return _0x2b8a73[_0x197564(0x354)]===t[_0x197564(0x421)]['DRAWING_CHART']?_0x2b8a73:null;}function w(_0x35e6fa,_0x61e4e8){const _0x5df4b4=_0x518ea5;let _0x2e6427=document['createElement']('a');_0x2e6427[_0x5df4b4(0x307)]=_0x35e6fa,_0x2e6427[_0x5df4b4(0x177)]=_0x61e4e8,_0x2e6427[_0x5df4b4(0x1b4)]();}const T={'id':_0x518ea5(0x414),'type':t[_0x518ea5(0x1d9)][_0x518ea5(0x16f)],'handler':(_0x4e96a7,_0x238ce5)=>{const _0x5a8088=_0x518ea5;let _0x4f2e45=C(_0x4e96a7);return _0x4f2e45?_0x4e96a7[_0x5a8088(0x35f)](t[_0x5a8088(0x44c)])[_0x5a8088(0x1fe)](S['id'],{'unitId':_0x4f2e45[_0x5a8088(0x205)],'subUnitId':_0x4f2e45[_0x5a8088(0x409)],'drawingId':_0x4f2e45['drawingId'],..._0x238ce5!=null&&_0x238ce5[_0x5a8088(0x463)]?{'route':_0x238ce5[_0x5a8088(0x463)]}:{}}):!0x1;}},E={'id':_0x518ea5(0x1af),'type':t[_0x518ea5(0x1d9)][_0x518ea5(0x16f)],'handler':_0x2b1f53=>C(_0x2b1f53)?_0x2b1f53[_0x518ea5(0x35f)](t['ICommandService'])[_0x518ea5(0x1fe)](a[_0x518ea5(0x3c8)]['id']):!0x1},D={'id':_0x518ea5(0x371),'type':t[_0x518ea5(0x1d9)][_0x518ea5(0x16f)],'handler':async _0x472726=>{const _0xcb0c95=_0x518ea5;let _0x55c65c=C(_0x472726);if(!_0x55c65c)return!0x1;let _0x194973=await _0x472726[_0xcb0c95(0x35f)](s[_0xcb0c95(0x3fc)])[_0xcb0c95(0x18e)]({'unitId':_0x55c65c[_0xcb0c95(0x205)],'subUnitId':_0x55c65c[_0xcb0c95(0x409)],'getId':()=>_0x55c65c[_0xcb0c95(0x2b9)]});return _0x194973?(w(_0x194973,_0x55c65c[_0xcb0c95(0x2b9)]+_0xcb0c95(0x2c8)),!0x0):!0x1;}},O={'id':'sheet.command.chart.delete-focused-chart','type':t[_0x518ea5(0x1d9)][_0x518ea5(0x16f)],'handler':_0x3224b5=>{const _0x3e32b2=_0x518ea5;let _0x4b11bf=C(_0x3224b5);return _0x4b11bf?_0x3224b5[_0x3e32b2(0x35f)](t[_0x3e32b2(0x44c)])[_0x3e32b2(0x1fe)](r[_0x3e32b2(0x312)]['id'],{'unitId':_0x4b11bf[_0x3e32b2(0x205)],'drawings':[{'unitId':_0x4b11bf['unitId'],'subUnitId':_0x4b11bf[_0x3e32b2(0x409)],'drawingId':_0x4b11bf[_0x3e32b2(0x2b9)],'drawingType':t[_0x3e32b2(0x421)][_0x3e32b2(0x18c)]}]}):!0x1;}},k={'type':t[_0x518ea5(0x1d9)]['COMMAND'],'id':_0x518ea5(0x37b),'handler':async(_0x17b369,_0x943d80)=>{const _0x16f297=_0x518ea5;let _0x364389=(0x0,l[_0x16f297(0x1cb)])(_0x17b369[_0x16f297(0x35f)](t[_0x16f297(0x3b0)]));if(!_0x364389)return!0x1;let _0x1cb595=_0x17b369[_0x16f297(0x35f)](l['SheetsSelectionsService'])[_0x16f297(0x306)]();if(!_0x1cb595)return!0x1;let {range:_0x231b9f}=_0x1cb595,_0x2b47ed=_0x17b369['get'](t[_0x16f297(0x44c)]),{unitId:_0x1b6314,subUnitId:_0x2fc7a9}=_0x364389,{pieSecondaryPlotType:_0x52ff8b,value:_0x1e73c6}=_0x943d80,_0x41adc6=_0x52ff8b!==void 0x0;if(_0x41adc6&&(_0x1e73c6!==c['ChartTypeBits'][_0x16f297(0x18d)]||_0x52ff8b!==c[_0x16f297(0x3d4)][_0x16f297(0x18d)]&&_0x52ff8b!==c['PieSecondaryPlotType'][_0x16f297(0x41d)]))return!0x1;let _0x5ca69b=_0x41adc6?(0x0,t['generateRandomId'])():void 0x0;return _0x2b47ed[_0x16f297(0x1fe)](e[_0x16f297(0x38c)]['id'],{'unitId':_0x1b6314,'subUnitId':_0x2fc7a9,'chartType':_0x1e73c6,..._0x5ca69b&&_0x52ff8b?{'chartId':_0x5ca69b,'config':{'unitId':_0x1b6314,'chartModelId':_0x5ca69b,'style':{'pie':{'composite':{'enabled':!0x0,'secondaryPlot':{'type':_0x52ff8b}}}}}}:{},'source':{'rangeInfo':{'unitId':_0x1b6314,'subUnitId':_0x2fc7a9,'range':_0x231b9f}}});}};function te(_0x57ae6c,_0x225247){const _0xa833=_0x518ea5;return _0x57ae6c==null||Array[_0xa833(0x434)](_0x57ae6c)?'':ne(_0x57ae6c[_0xa833(0x3b9)],_0x225247);}function ne(_0x2c3d1f,_0x41f5b6){const _0x189554=_0x518ea5;var _0x4a27c3;let {unitId:_0x13209c,subUnitId:_0x483bc4,range:_0x7c3761}=_0x2c3d1f,_0x386319=(_0x4a27c3=_0x41f5b6['getUnit'](_0x13209c))==null?void 0x0:_0x4a27c3[_0x189554(0x2b4)](_0x483bc4);return _0x386319?(0x0,d[_0x189554(0x2ca)])(_0x386319[_0x189554(0x33c)](),_0x7c3761):'';}const re=new Set([_0x518ea5(0x2a5),'columnPercentStacked']),ie=s['CHART_TYPE_CATALOG'][_0x518ea5(0x31e)](_0x39fa9a=>!re[_0x518ea5(0x3e0)](_0x39fa9a[_0x518ea5(0x343)]))['map'](_0x4b4f2b=>({'id':'id'in _0x4b4f2b?_0x4b4f2b['id']:void 0x0,'labelId':_0x4b4f2b['labelId'],'pieSecondaryPlotType':_0x518ea5(0x44e)in _0x4b4f2b?_0x4b4f2b[_0x518ea5(0x44e)]:void 0x0,'value':_0x4b4f2b[_0x518ea5(0x3ba)],'icon':_0x4b4f2b[_0x518ea5(0x28b)]}));function ae(_0x15e0ae=ie){const _0x2aa27c=_0x518ea5;return _0x15e0ae[_0x2aa27c(0x1a8)](({id:_0x4dcf00,icon:_0x3f76c7,value:_0x4412f8})=>{const _0x150cec=_0x2aa27c;let _0x5c6c01=(0x0,s[_0x150cec(0x2df)])(_0x4dcf00??String(_0x4412f8)),_0x15307e=_0x5c6c01?{'value':_0x5c6c01[_0x150cec(0x195)],..._0x5c6c01[_0x150cec(0x44e)]?{'pieSecondaryPlotType':_0x5c6c01[_0x150cec(0x44e)]}:{}}:{'value':_0x4412f8};return{'icon':_0x3f76c7,'value':_0x4dcf00??_0x4412f8,'params':_0x15307e};});}const oe=(_0x2486e9,_0x1ccedc)=>{const _0x4215d3=_0x518ea5;if(_0x1ccedc[_0x4215d3(0x348)]===0x1&&_0x1ccedc[0x0]===_0x4215d3(0x2d4))return _0x2486e9;if(_0x1ccedc['length']>0x1){let _0xdddcbe=new Set();for(let _0x58326e of _0x1ccedc)_0xdddcbe[_0x4215d3(0x33e)](Number(_0x58326e));return _0x2486e9[_0x4215d3(0x31e)](_0x2cc8ec=>_0xdddcbe[_0x4215d3(0x3e0)](_0x2cc8ec[_0x4215d3(0x3ba)]));}return[];};function se(_0x4f9bbe){const _0x2d3838=_0x518ea5;let _0x56490c=_0x4f9bbe[_0x2d3838(0x35f)](t[_0x2d3838(0x3b0)]),_0x125ca8=(0x0,e[_0x2d3838(0x194)])(_0x4f9bbe),_0x3f4a0a=oe(ie['concat'](),_0x125ca8),_0x4bcc65=ae(_0x3f4a0a)['map']((_0x26a0f5,_0x523c53)=>({'icon':_0x26a0f5[_0x2d3838(0x240)],'value':_0x26a0f5[_0x2d3838(0x3ba)],'params':_0x26a0f5[_0x2d3838(0x412)],'label':'sheets-chart-ui.chartTypes.'+_0x3f4a0a[_0x523c53][_0x2d3838(0x343)]}));return{'id':k['id'],'type':o[_0x2d3838(0x214)][_0x2d3838(0x3f8)],'selectionsCommandId':k['id'],'selections':_0x4bcc65,'icon':_0x2d3838(0x29d),'tooltip':'sheets-chart-ui.common.insertChart','activated$':(0x0,a['deriveStateFromActiveSheet$'])(_0x56490c,!0x1,()=>new u['Observable'](_0x6347a5=>{const _0x26adba=_0x2d3838;_0x6347a5[_0x26adba(0x40f)](!0x1);})),'hidden$':(0x0,o['getMenuHiddenObservable'])(_0x4f9bbe,t[_0x2d3838(0x32f)][_0x2d3838(0x415)]),'disabled$':(0x0,a[_0x2d3838(0x2cc)])(_0x4f9bbe)};}function A(_0x1b4ab4){const _0x2ed845=_0x518ea5;let _0x375ff7=_0x1b4ab4[_0x2ed845(0x35f)](r['ISheetDrawingService']);return _0x375ff7[_0x2ed845(0x2d6)][_0x2ed845(0x35a)]((0x0,u[_0x2ed845(0x3e3)])(_0x375ff7['getFocusDrawings']()),(0x0,u['map'])(()=>C(_0x1b4ab4)==null));}function ce(_0xe8362){const _0x2681ac=_0x518ea5;return{'id':T['id'],'commandId':T['id'],'type':o['MenuItemType'][_0x2681ac(0x156)],'title':_0xe8362[_0x2681ac(0x35f)](t[_0x2681ac(0x486)])['t'](_0x2681ac(0x1ed)),'icon':_0x2681ac(0x342),'hidden$':A(_0xe8362)};}function le(_0x43e12e){const _0x140321=_0x518ea5;return{'id':E['id'],'commandId':E['id'],'type':o[_0x140321(0x214)]['BUTTON'],'title':_0x43e12e[_0x140321(0x35f)](t[_0x140321(0x486)])['t'](_0x140321(0x38d)),'icon':_0x140321(0x1b6),'hidden$':A(_0x43e12e)};}function ue(_0x1b9f6c){const _0x394176=_0x518ea5;return{'id':D['id'],'commandId':D['id'],'type':o[_0x394176(0x214)]['BUTTON'],'title':_0x1b9f6c[_0x394176(0x35f)](t[_0x394176(0x486)])['t'](_0x394176(0x3cc)),'icon':_0x394176(0x32e),'hidden$':A(_0x1b9f6c)};}function de(_0x112a42){const _0x455872=_0x518ea5;return{'id':O['id'],'commandId':O['id'],'type':o['MenuItemType'][_0x455872(0x156)],'title':_0x112a42['get'](t[_0x455872(0x486)])['t']('sheets-chart-ui.common.deleteChart'),'icon':_0x455872(0x422),'hidden$':A(_0x112a42)};}const fe={[o[_0x518ea5(0x396)][_0x518ea5(0x197)]]:{[k['id']]:{'order':0x4,'menuItemFactory':se}},[o['ContextMenuPosition'][_0x518ea5(0x41e)]]:{[o[_0x518ea5(0x23a)][_0x518ea5(0x30e)]]:{[T['id']]:{'order':0x0,'menuItemFactory':ce},[E['id']]:{'order':0x1,'menuItemFactory':le},[D['id']]:{'order':0x3,'menuItemFactory':ue},[O['id']]:{'order':0x4,'menuItemFactory':de}}}};function pe(_0x34fae7){const _0x1bdd6e=_0x518ea5;return _0x34fae7===c['ChartTypeBits'][_0x1bdd6e(0x323)]||_0x34fae7===c['ChartTypeBits'][_0x1bdd6e(0x1a1)]||_0x34fae7===c[_0x1bdd6e(0x224)][_0x1bdd6e(0x42b)]||c[_0x1bdd6e(0x18a)][_0x1bdd6e(0x41c)](_0x34fae7,c[_0x1bdd6e(0x224)]['Line'])||c[_0x1bdd6e(0x18a)][_0x1bdd6e(0x41c)](_0x34fae7,c[_0x1bdd6e(0x224)]['Column'])||c[_0x1bdd6e(0x18a)]['baseOn'](_0x34fae7,c[_0x1bdd6e(0x224)]['Area'])||c[_0x1bdd6e(0x18a)]['baseOn'](_0x34fae7,c['ChartTypeBits'][_0x1bdd6e(0x491)]);}function me(_0x547bdd){const _0x17e6d6=_0x518ea5;return pe(_0x547bdd)||c[_0x17e6d6(0x18a)]['baseOn'](_0x547bdd,c[_0x17e6d6(0x224)][_0x17e6d6(0x18d)])||c[_0x17e6d6(0x18a)]['baseOn'](_0x547bdd,c['ChartTypeBits'][_0x17e6d6(0x476)])||c[_0x17e6d6(0x18a)][_0x17e6d6(0x41c)](_0x547bdd,c['ChartTypeBits']['Waterfall']);}function he(_0x4650b5,_0x5b2673){const _0x34f3b5=_0x518ea5;let _0x1cd547=(0x0,s[_0x34f3b5(0x178)])(_0x4650b5,_0x5b2673),_0x253c25=_0x1cd547?(0x0,s[_0x34f3b5(0x344)])(_0x1cd547[_0x34f3b5(0x216)]):void 0x0;if(!(!_0x1cd547||!_0x253c25))return{..._0x1cd547,'route':_0x253c25,'showFloatMenu':me(_0x4650b5[_0x34f3b5(0x195)])&&_0x1cd547[_0x34f3b5(0x477)]};}function ge(_0x3e6924,_0xb6df45=0x1){const _0x3c46f0=_0x518ea5;return{'width':Math[_0x3c46f0(0x399)](_0xb6df45,_0x3e6924[_0x3c46f0(0x176)]),'height':Math[_0x3c46f0(0x399)](_0xb6df45,_0x3e6924[_0x3c46f0(0x2d7)])};}function _e(_0x29382a,_0x566c05={},_0x3178af={'left':0x0,'top':0x0}){const _0x2bcf70=_0x518ea5;let _0x3f535c=_0x566c05[_0x2bcf70(0x217)]??0x1,_0x5bbc08=_0x566c05[_0x2bcf70(0x45c)]??0x1,_0x40bd61=s['ChartFrameLayout'][_0x2bcf70(0x22a)]({'logicalOuterRect':{'left':_0x3178af[_0x2bcf70(0x370)]>0x0?-_0x3178af[_0x2bcf70(0x370)]:0x0,'top':_0x3178af[_0x2bcf70(0x2a4)]>0x0?-_0x3178af[_0x2bcf70(0x2a4)]:0x0,...ge(_0x29382a)},'scale':{'scaleX':_0x3f535c,'scaleY':_0x5bbc08},'hostStyle':{},'contentMode':s[_0x2bcf70(0x202)]['Overlay']});return{'left':_0x40bd61['logicalOuterRect']['left'],'top':_0x40bd61[_0x2bcf70(0x3bd)][_0x2bcf70(0x2a4)],'width':_0x40bd61[_0x2bcf70(0x3bd)][_0x2bcf70(0x176)],'height':_0x40bd61[_0x2bcf70(0x3bd)]['height'],'scaleX':_0x3f535c,'scaleY':_0x5bbc08};}function j(_0x1855dc){'@babel/helpers - typeof';const _0xcbef68=_0x518ea5;return j=typeof Symbol==_0xcbef68(0x227)&&typeof Symbol[_0xcbef68(0x402)]==_0xcbef68(0x2f6)?function(_0x1890af){return typeof _0x1890af;}:function(_0x12d54a){const _0x3126d3=_0xcbef68;return _0x12d54a&&typeof Symbol==_0x3126d3(0x227)&&_0x12d54a[_0x3126d3(0x45e)]===Symbol&&_0x12d54a!==Symbol['prototype']?_0x3126d3(0x2f6):typeof _0x12d54a;},j(_0x1855dc);}function ve(_0x2524f4,_0x450863){const _0x1f1c5f=_0x518ea5;if(j(_0x2524f4)!=_0x1f1c5f(0x423)||!_0x2524f4)return _0x2524f4;var _0x297010=_0x2524f4[Symbol['toPrimitive']];if(_0x297010!==void 0x0){var _0x298a62=_0x297010[_0x1f1c5f(0x25a)](_0x2524f4,_0x450863||_0x1f1c5f(0x35c));if(j(_0x298a62)!=_0x1f1c5f(0x423))return _0x298a62;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x450863===_0x1f1c5f(0x14f)?String:Number)(_0x2524f4);}function ye(_0x37179f){const _0x3f02a8=_0x518ea5;var _0x5233d4=ve(_0x37179f,'string');return j(_0x5233d4)==_0x3f02a8(0x2f6)?_0x5233d4:_0x5233d4+'';}function M(_0x2bd47f,_0x529baa,_0x84190f){const _0x4185a5=_0x518ea5;return(_0x529baa=ye(_0x529baa))in _0x2bd47f?Object[_0x4185a5(0x200)](_0x2bd47f,_0x529baa,{'value':_0x84190f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2bd47f[_0x529baa]=_0x84190f,_0x2bd47f;}function be(_0x30410b){const _0xf036d1=_0x518ea5;switch(_0x30410b['type']){case c[_0xf036d1(0x3cf)][_0xf036d1(0x345)]:return _0x30410b[_0xf036d1(0x301)];case c[_0xf036d1(0x3cf)][_0xf036d1(0x1d3)]:return _0x30410b['imageBitmap'];default:return;}}var xe=class extends p['Rect']{constructor(_0x2a5fc8,_0x4ec484,_0x30c165,_0x3eb07e=()=>!0x1,_0x246fe3=()=>{}){const _0x3eedb2=_0x518ea5;super(_0x2a5fc8,{..._0x4ec484,'evented':_0x4ec484[_0x3eedb2(0x427)]??!0x0}),this[_0x3eedb2(0x43d)]=_0x30c165,this[_0x3eedb2(0x165)]=_0x3eb07e,this[_0x3eedb2(0x182)]=_0x246fe3,M(this,_0x3eedb2(0x32c),null),M(this,_0x3eedb2(0x17c),null),this[_0x3eedb2(0x2bc)](p['ObjectType'][_0x3eedb2(0x181)]);}['dispose'](){const _0x4ef116=_0x518ea5;this[_0x4ef116(0x182)](),super[_0x4ef116(0x42f)]();}[_0x518ea5(0x37f)](_0x2186d7,_0x5a4c55){const _0x5615f8=_0x518ea5;if(!this['visible'])return this[_0x5615f8(0x198)](!0x1),this;if(!this[_0x5615f8(0x268)])return this;let {width:_0x25e5ea,height:_0x5ebd08,left:_0x403c68,top:_0x3cf3a0}=this[_0x5615f8(0x3fb)]();if(this[_0x5615f8(0x221)](_0x5a4c55)){let {top:_0x35ec05,left:_0x21751b,bottom:_0x532abb,right:_0x4ad54a}=_0x5a4c55[_0x5615f8(0x207)];if(_0x25e5ea+this[_0x5615f8(0x219)]+_0x403c68<_0x21751b||_0x4ad54a<_0x403c68||_0x5ebd08+this[_0x5615f8(0x219)]+_0x3cf3a0<_0x35ec05||_0x532abb<_0x3cf3a0)return this;}let _0x313aea=this['transform'][_0x5615f8(0x413)]();_0x2186d7[_0x5615f8(0x377)]();let _0x229815=_0x403c68+_0x25e5ea/0x2,_0x2b6215=_0x3cf3a0+_0x5ebd08/0x2;return _0x2186d7[_0x5615f8(0x268)](_0x313aea[0x0],_0x313aea[0x1],_0x313aea[0x2],_0x313aea[0x3],_0x229815,_0x2b6215),this[_0x5615f8(0x327)]!==0x1&&(_0x2186d7['globalAlpha']=this[_0x5615f8(0x327)]),this[_0x5615f8(0x179)](_0x2186d7,void 0x0,_0x25e5ea,_0x5ebd08),_0x2186d7[_0x5615f8(0x2ad)](),this[_0x5615f8(0x198)](!0x1),this;}[_0x518ea5(0x179)](_0x2ed8cf,_0x4d936c,_0x5a7fcc=this[_0x518ea5(0x176)],_0x41297b=this[_0x518ea5(0x2d7)]){const _0x2466c8=_0x518ea5;this[_0x2466c8(0x3f0)](_0x2ed8cf,_0x5a7fcc,_0x41297b,{'stroke':void 0x0,'strokeWidth':0x0}),this[_0x2466c8(0x304)](_0x2ed8cf,_0x5a7fcc,_0x41297b),this[_0x2466c8(0x3f0)](_0x2ed8cf,_0x5a7fcc,_0x41297b,{'fill':void 0x0});}[_0x518ea5(0x3f0)](_0x1dc09d,_0x402a5b,_0x19b156,_0xd7d9b6){const _0x425ac8=_0x518ea5;_0x1dc09d[_0x425ac8(0x377)](),_0x1dc09d['translate'](-_0x402a5b/0x2,-_0x19b156/0x2),p[_0x425ac8(0x20c)][_0x425ac8(0x347)](_0x1dc09d,Se(this,_0x402a5b,_0x19b156,_0xd7d9b6)),_0x1dc09d['restore']();}[_0x518ea5(0x379)](_0x26eaf0){const _0x18045c=_0x518ea5;let {left:_0x4d21c5,top:_0x13cbbc,width:_0x3d8938,height:_0xd12da3}=this[_0x18045c(0x3fb)](),_0x2fe381=_0x4d21c5+_0x3d8938/0x2,_0x27a655=_0x13cbbc+_0xd12da3/0x2,_0x4a03f8=this['transform']['getMatrix'](),_0xa3c459=new p['Transform']([_0x4a03f8[0x0],_0x4a03f8[0x1],_0x4a03f8[0x2],_0x4a03f8[0x3],_0x2fe381,_0x27a655]),_0x22098c=this[_0x18045c(0x1cc)](),_0x4a5284=(this['isInGroup']&&(_0x22098c==null?void 0x0:_0x22098c[_0x18045c(0x1cd)])===p['RENDER_CLASS_TYPE'][_0x18045c(0x1b8)]?_0x22098c[_0x18045c(0x2ba)][_0x18045c(0x1d4)](_0xa3c459):_0xa3c459)['invert']()[_0x18045c(0x1f1)](_0x26eaf0),_0x2e946d=_0x3d8938/0x2,_0xf446f9=_0xd12da3/0x2;return _0x4a5284['x']>=-_0x2e946d-this[_0x18045c(0x219)]/0x2&&_0x4a5284['x']<=_0x2e946d+this[_0x18045c(0x219)]/0x2&&_0x4a5284['y']>=-_0xf446f9-this['strokeWidth']/0x2&&_0x4a5284['y']<=_0xf446f9+this[_0x18045c(0x219)]/0x2;}[_0x518ea5(0x304)](_0x57c2d1,_0x152bcf,_0x340a78){const _0x5c4c63=_0x518ea5;if(this[_0x5c4c63(0x165)]())return;let _0x4a6424=this[_0x5c4c63(0x43d)](),_0xa944db=_0x4a6424?this[_0x5c4c63(0x483)](_0x4a6424):void 0x0;if(!_0xa944db)return;let {width:_0x14bd8a,height:_0x5c95a9}=ge({'width':_0x152bcf,'height':_0x340a78},0x0);_0x14bd8a!==0x0&&_0x5c95a9!==0x0&&(_0x57c2d1['save'](),_0x57c2d1[_0x5c4c63(0x234)](-_0x152bcf/0x2,-_0x340a78/0x2),Ce(_0x57c2d1,_0x14bd8a,_0x5c95a9,this[_0x5c4c63(0x445)]),_0x57c2d1[_0x5c4c63(0x215)](),_0x57c2d1[_0x5c4c63(0x209)](_0xa944db,0x0,0x0,_0x14bd8a,_0x5c95a9),_0x57c2d1[_0x5c4c63(0x2ad)]());}[_0x518ea5(0x483)](_0x1cfbbd){const _0x3551b0=_0x518ea5;var _0x3a96e0;let _0x34781d=be(_0x1cfbbd);if(_0x34781d)return _0x34781d;if(_0x1cfbbd[_0x3551b0(0x2e5)]===c['ChartImageSourceType'][_0x3551b0(0x2ed)]&&(this[_0x3551b0(0x17c)]!==_0x1cfbbd[_0x3551b0(0x30a)]&&(this[_0x3551b0(0x17c)]=_0x1cfbbd[_0x3551b0(0x30a)],this[_0x3551b0(0x32c)]=document['createElement'](_0x3551b0(0x269)),this['_urlImage'][_0x3551b0(0x225)]=_0x3551b0(0x465),this['_urlImage'][_0x3551b0(0x389)]=()=>this[_0x3551b0(0x198)](!0x0),this[_0x3551b0(0x32c)][_0x3551b0(0x46e)]=_0x1cfbbd[_0x3551b0(0x30a)]),(_0x3a96e0=this[_0x3551b0(0x32c)])!=null&&_0x3a96e0['complete']&&this[_0x3551b0(0x32c)][_0x3551b0(0x21b)]>0x0&&this[_0x3551b0(0x32c)]['naturalHeight']>0x0))return this[_0x3551b0(0x32c)];}};function Se(_0x547707,_0x32f1f7,_0x1eea0f,_0x1d59c2){const _0x368b12=_0x518ea5;let _0x116d55=Object[_0x368b12(0x331)](_0x547707);return Object[_0x368b12(0x200)](_0x116d55,_0x368b12(0x176),{'value':_0x32f1f7}),Object[_0x368b12(0x200)](_0x116d55,_0x368b12(0x2d7),{'value':_0x1eea0f}),Object[_0x368b12(0x18b)](_0x1d59c2)['forEach'](_0x2b14eb=>{Object['defineProperty'](_0x116d55,_0x2b14eb,{'value':_0x1d59c2[_0x2b14eb]});}),_0x116d55;}function Ce(_0x123917,_0x4d49fa,_0xff263b,_0x270cb3){const _0x3c2b0=_0x518ea5;let _0x5d69d5=Math[_0x3c2b0(0x44d)](_0x270cb3||0x0,_0x4d49fa/0x2,_0xff263b/0x2);if(_0x123917[_0x3c2b0(0x473)](),!_0x5d69d5){_0x123917['rect'](0x0,0x0,_0x4d49fa,_0xff263b),_0x123917[_0x3c2b0(0x2cf)]();return;}_0x123917[_0x3c2b0(0x21c)](_0x5d69d5,0x0),_0x123917[_0x3c2b0(0x2d8)](_0x4d49fa-_0x5d69d5,0x0),_0x123917['arc'](_0x4d49fa-_0x5d69d5,_0x5d69d5,_0x5d69d5,Math['PI']*0x3/0x2,0x0,!0x1),_0x123917[_0x3c2b0(0x2d8)](_0x4d49fa,_0xff263b-_0x5d69d5),_0x123917['arc'](_0x4d49fa-_0x5d69d5,_0xff263b-_0x5d69d5,_0x5d69d5,0x0,Math['PI']/0x2,!0x1),_0x123917['lineTo'](_0x5d69d5,_0xff263b),_0x123917[_0x3c2b0(0x29c)](_0x5d69d5,_0xff263b-_0x5d69d5,_0x5d69d5,Math['PI']/0x2,Math['PI'],!0x1),_0x123917[_0x3c2b0(0x2d8)](0x0,_0x5d69d5),_0x123917['arc'](_0x5d69d5,_0x5d69d5,_0x5d69d5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x123917['closePath']();}function N(_0x19140c){const _0x50756c=_0x518ea5;(_0x19140c==null?void 0x0:_0x19140c['type'])===c[_0x50756c(0x3cf)][_0x50756c(0x1d3)]&&_0x19140c['imageBitmap'][_0x50756c(0x17a)]();}function P(_0x4bfb61){const _0xe4005c=_0x518ea5;return _0x4bfb61[_0xe4005c(0x205)]+_0xe4005c(0x391)+_0x4bfb61[_0xe4005c(0x409)]+_0xe4005c(0x391)+_0x4bfb61[_0xe4005c(0x330)];}var we=class extends t[_0x518ea5(0x365)]{constructor(..._0x38bc6f){const _0x1151bd=_0x518ea5;super(..._0x38bc6f),M(this,_0x1151bd(0x23d),new Map());}['nextVersion'](_0x2772d1){const _0x20530d=_0x518ea5;let _0x39aa04=P(_0x2772d1),_0x7ef718=this['_entries'][_0x20530d(0x35f)](_0x39aa04)??{'version':0x0};return _0x7ef718[_0x20530d(0x2fd)]+=0x1,this['_entries'][_0x20530d(0x2f3)](_0x39aa04,_0x7ef718),_0x7ef718[_0x20530d(0x2fd)];}[_0x518ea5(0x305)](_0x5b8b31,_0xf1e106){const _0x4f2e96=_0x518ea5;var _0x2a1446;return((_0x2a1446=this['_entries']['get'](P(_0x5b8b31)))==null?void 0x0:_0x2a1446[_0x4f2e96(0x2fd)])===_0xf1e106;}[_0x518ea5(0x388)](_0x2c4b11,_0x476c75,_0x41063a){const _0x17e650=_0x518ea5;if(!this[_0x17e650(0x305)](_0x2c4b11,_0x41063a))return N(_0x476c75),!0x1;let _0x400c65=P(_0x2c4b11),_0x4093a0=this[_0x17e650(0x23d)][_0x17e650(0x35f)](_0x400c65)??{'version':_0x41063a},_0x5b7d9f=_0x4093a0[_0x17e650(0x2d9)];return _0x4093a0['image']=_0x476c75,_0x4093a0[_0x17e650(0x2fd)]=_0x41063a,this['_entries']['set'](_0x400c65,_0x4093a0),_0x5b7d9f!==_0x476c75&&N(_0x5b7d9f),!0x0;}[_0x518ea5(0x1ad)](_0xa6ee19){const _0x30705f=_0x518ea5;var _0x400b21;return(_0x400b21=this[_0x30705f(0x23d)][_0x30705f(0x35f)](P(_0xa6ee19)))==null?void 0x0:_0x400b21[_0x30705f(0x2d9)];}[_0x518ea5(0x1eb)](_0x515c81){const _0x4d1e1b=_0x518ea5;let _0x25c296=P(_0x515c81),_0x2e7092=this[_0x4d1e1b(0x23d)]['get'](_0x25c296);_0x2e7092&&(N(_0x2e7092['image']),this[_0x4d1e1b(0x23d)][_0x4d1e1b(0x303)](_0x25c296));}[_0x518ea5(0x2b6)](_0x2cd555){const _0x16e7d0=_0x518ea5;for(let [_0x5db977,_0xadc9f9]of this[_0x16e7d0(0x23d)])_0x5db977[_0x16e7d0(0x3dd)](_0x16e7d0(0x391)+_0x2cd555)&&(N(_0xadc9f9[_0x16e7d0(0x2d9)]),this['_entries'][_0x16e7d0(0x303)](_0x5db977));}['dispose'](){const _0x4b751d=_0x518ea5;this[_0x4b751d(0x23d)][_0x4b751d(0x320)](_0x254b7e=>N(_0x254b7e[_0x4b751d(0x2d9)])),this['_entries']['clear'](),super[_0x4b751d(0x42f)]();}};function Te(_0x3858e6,_0x2e57ff=0x7d0){let _0x40e434=null,_0x1aec36=null,_0x53cc33=!0x1,_0x386aff=()=>{},_0x3e2252=()=>{_0x40e434!=null&&(clearInterval(_0x40e434),_0x40e434=null),_0x1aec36!=null&&(clearTimeout(_0x1aec36),_0x1aec36=null);};return{'promise':new Promise((_0xb95829,_0x3aee9c)=>{_0x386aff=_0x3aee9c;let _0x1bf161=()=>{let _0x2195a4=document['getElementById'](_0x3858e6);!_0x2195a4||_0x53cc33||(_0x53cc33=!0x0,_0x3e2252(),_0xb95829(_0x2195a4));};_0x1bf161(),!_0x53cc33&&(_0x40e434=setInterval(_0x1bf161,16.666666666666668),_0x1aec36=setTimeout(()=>{const _0x49389f=_0x2b25;_0x53cc33||(_0x53cc33=!0x0,_0x3e2252(),_0x3aee9c(Error(_0x49389f(0x42d)+_0x3858e6+'\x22.')));},_0x2e57ff));}),'cancel':()=>{const _0x2e511a=_0x2b25;_0x53cc33||(_0x53cc33=!0x0,_0x3e2252(),_0x386aff(Error(_0x2e511a(0x39d)+_0x3858e6+'\x22.')));}};}var Ee=class extends t['Disposable']{constructor(_0x218946,_0x565c0c,_0x4a1c2a,_0x3017c6,_0x52aaf5,_0x245e57,_0xe8d443){const _0x19bd21=_0x518ea5;super(),this[_0x19bd21(0x330)]=_0x218946,this['_getFloatDomInfo']=_0x565c0c,this[_0x19bd21(0x3c9)]=_0x4a1c2a,this['_setHostStyle']=_0x3017c6,this[_0x19bd21(0x482)]=_0x52aaf5,this[_0x19bd21(0x23c)]=_0x245e57,this['_markNotReady']=_0xe8d443,M(this,_0x19bd21(0x337),c['ChartHostRenderMode'][_0x19bd21(0x393)]),M(this,_0x19bd21(0x299),null),M(this,_0x19bd21(0x2c6),!0x1),M(this,'_pendingToken',null),M(this,_0x19bd21(0x2b7),null),M(this,_0x19bd21(0x316),null),M(this,_0x19bd21(0x1a0),{}),M(this,'_savedWrapperStyle',null),M(this,_0x19bd21(0x285),null);}[_0x518ea5(0x231)](){return this['_managed'];}[_0x518ea5(0x164)](){const _0x5e8938=_0x518ea5;this[_0x5e8938(0x2c6)]=!0x1;}[_0x518ea5(0x272)](){const _0x4d44fb=_0x518ea5;let _0x352bdf=this[_0x4d44fb(0x3c9)]();return _0x352bdf?{'width':_0x352bdf[_0x4d44fb(0x176)],'height':_0x352bdf[_0x4d44fb(0x2d7)]}:null;}[_0x518ea5(0x25b)](_0x6d27b7){const _0x33cf83=_0x518ea5;this[_0x33cf83(0x1a0)]=_0x6d27b7,this[_0x33cf83(0x154)](_0x6d27b7),this['_applyHostStyle']();}async[_0x518ea5(0x36d)](){const _0x5f0f74=_0x518ea5;if(this[_0x5f0f74(0x30c)]||this[_0x5f0f74(0x482)]())throw Error(_0x5f0f74(0x3df));let _0x5a780c=this['_getFloatDomInfo'](),_0x30b101=(_0x5a780c==null?void 0x0:_0x5a780c[_0x5f0f74(0x2b1)])??this[_0x5f0f74(0x330)],_0x2be352=document[_0x5f0f74(0x2ff)](_0x30b101);if(this[_0x5f0f74(0x299)]&&_0x2be352!=null&&_0x2be352[_0x5f0f74(0x167)](this[_0x5f0f74(0x299)][_0x5f0f74(0x45a)]))return{'mountNode':this[_0x5f0f74(0x299)][_0x5f0f74(0x45a)],'dispose':()=>{const _0x1f5645=_0x5f0f74;this['dispose'](),_0x5a780c==null||_0x5a780c['dispose'][_0x1f5645(0x42f)]();}};if(this[_0x5f0f74(0x2b7)])return this[_0x5f0f74(0x2b7)];let _0x2a0c58=this[_0x5f0f74(0x280)]();return this['_pendingHost']=_0x2a0c58,_0x2a0c58[_0x5f0f74(0x190)](()=>{const _0x12126a=_0x5f0f74;this[_0x12126a(0x2b7)]===_0x2a0c58&&(this[_0x12126a(0x2b7)]=null);},()=>{const _0x2d2eef=_0x5f0f74;this['_pendingHost']===_0x2a0c58&&(this[_0x2d2eef(0x2b7)]=null);}),_0x2a0c58;}async[_0x518ea5(0x16e)](){const _0x2b853d=_0x518ea5;try{return(await this[_0x2b853d(0x36d)]())[_0x2b853d(0x45a)];}catch{return null;}}[_0x518ea5(0x1c1)](){const _0x1cc417=_0x518ea5;let _0x21d059=this[_0x1cc417(0x3c1)](),_0xed67f=(_0x21d059==null?void 0x0:_0x21d059[_0x1cc417(0x2b1)])??this['chartId'],_0x461867=document['getElementById'](_0xed67f);return!!(this[_0x1cc417(0x299)]&&_0x461867!=null&&_0x461867[_0x1cc417(0x167)](this[_0x1cc417(0x299)][_0x1cc417(0x45a)]));}[_0x518ea5(0x35b)](){const _0x1c57b3=_0x518ea5;if(!this['_domFrame'])return;let _0x61766c=this['_getPlacement']();_0x61766c&&(this[_0x1c57b3(0x285)]=this[_0x1c57b3(0x2e1)](),this['_domFrame'][_0x1c57b3(0x3bc)](this[_0x1c57b3(0x355)](_0x61766c),this[_0x1c57b3(0x382)]()));}['markReady'](){const _0x4ec33f=_0x518ea5;this[_0x4ec33f(0x23c)]();}[_0x518ea5(0x286)](){const _0x502903=_0x518ea5;this[_0x502903(0x2de)]();}[_0x518ea5(0x42f)](){const _0x476a6a=_0x518ea5;var _0x2db85e;this[_0x476a6a(0x30c)]||(this[_0x476a6a(0x286)](),this[_0x476a6a(0x300)]=null,this[_0x476a6a(0x2b7)]=null,this['_cancelHostWait'](),this['_managed']=!0x1,(_0x2db85e=this[_0x476a6a(0x299)])==null||_0x2db85e['dispose'](),this[_0x476a6a(0x299)]=null,this[_0x476a6a(0x285)]=null,this[_0x476a6a(0x3f6)](),super['dispose']());}async[_0x518ea5(0x280)](){const _0xfef341=_0x518ea5;let _0x2090ab=this[_0xfef341(0x3c1)]();if(!_0x2090ab)throw Error(_0xfef341(0x3df));let _0x5012c5=_0x2090ab[_0xfef341(0x2b1)]??this[_0xfef341(0x330)],_0x98787=Te(_0x5012c5),_0x57e333=Symbol(this[_0xfef341(0x330)]);this[_0xfef341(0x300)]=_0x57e333,this[_0xfef341(0x316)]=_0x98787;try{let _0x23f412=await _0x98787[_0xfef341(0x341)],_0x2244b1=this[_0xfef341(0x3c1)](),_0x50c267=(_0x2244b1==null?void 0x0:_0x2244b1[_0xfef341(0x2b1)])??this[_0xfef341(0x330)];if(this[_0xfef341(0x30c)]||this[_0xfef341(0x482)]()||this[_0xfef341(0x300)]!==_0x57e333||!_0x2244b1||_0x50c267!==_0x5012c5||document['getElementById'](_0x5012c5)!==_0x23f412||!_0x23f412['isConnected'])throw Error('Fail\x20to\x20create\x20float\x20dom');let _0xf26f8d=this[_0xfef341(0x3c9)]();if(!_0xf26f8d)throw Error(_0xfef341(0x3df));let _0x2231c8=new s['ChartDomFrame'](_0x23f412);return _0x2231c8[_0xfef341(0x3bc)](this['_resolveLayout'](_0xf26f8d),this[_0xfef341(0x382)]()),this[_0xfef341(0x2a0)](_0x23f412),this[_0xfef341(0x299)]=_0x2231c8,this['_drawingGeometry']=this['_getDrawingGeometry'](),this[_0xfef341(0x380)](_0x2244b1[_0xfef341(0x245)][_0xfef341(0x262)](()=>this[_0xfef341(0x315)]())),this[_0xfef341(0x2c6)]=!0x0,{'mountNode':_0x2231c8[_0xfef341(0x45a)],'dispose':()=>{const _0x3079a7=_0xfef341;this[_0x3079a7(0x42f)](),_0x2090ab[_0x3079a7(0x42f)][_0x3079a7(0x42f)]();}};}finally{this['_waiter']===_0x98787&&(this['_waiter']=null),this[_0xfef341(0x300)]===_0x57e333&&(this[_0xfef341(0x300)]=null);}}[_0x518ea5(0x45d)](){const _0xb032b6=_0x518ea5;let _0x317857=this[_0xb032b6(0x316)];_0x317857&&(_0x317857[_0xb032b6(0x2ea)](),this[_0xb032b6(0x316)]=null);}['_applyHostStyle'](){const _0x427688=_0x518ea5;let _0x4e80bf=this[_0x427688(0x3c9)]();this[_0x427688(0x299)]&&_0x4e80bf&&this[_0x427688(0x299)][_0x427688(0x3bc)](this['_resolveLayout'](_0x4e80bf),this[_0x427688(0x382)]());}[_0x518ea5(0x315)](){const _0x43b2fb=_0x518ea5;let _0x1a572d=this[_0x43b2fb(0x2e1)](),_0x227756=this[_0x43b2fb(0x285)];!_0x1a572d||_0x227756&&_0x227756[_0x43b2fb(0x370)]===_0x1a572d['left']&&_0x227756['top']===_0x1a572d[_0x43b2fb(0x2a4)]&&_0x227756['width']===_0x1a572d[_0x43b2fb(0x176)]&&_0x227756[_0x43b2fb(0x2d7)]===_0x1a572d['height']||(this[_0x43b2fb(0x285)]=_0x1a572d,this['syncLayout']());}[_0x518ea5(0x2e1)](){const _0x2ebb58=_0x518ea5;var _0x19b5b3;let _0x4bf88c=(_0x19b5b3=this[_0x2ebb58(0x3c1)]())==null?void 0x0:_0x19b5b3[_0x2ebb58(0x2c1)];return _0x4bf88c?{'left':_0x4bf88c[_0x2ebb58(0x370)],'top':_0x4bf88c[_0x2ebb58(0x2a4)],'width':_0x4bf88c[_0x2ebb58(0x176)],'height':_0x4bf88c[_0x2ebb58(0x2d7)]}:null;}[_0x518ea5(0x355)](_0x9e464d){const _0x93e6a4=_0x518ea5;return s['ChartFrameLayout'][_0x93e6a4(0x22a)]({'logicalOuterRect':{'left':_0x9e464d['left'],'top':_0x9e464d[_0x93e6a4(0x2a4)],'width':_0x9e464d[_0x93e6a4(0x176)],'height':_0x9e464d['height']},'scale':{'scaleX':_0x9e464d[_0x93e6a4(0x217)],'scaleY':_0x9e464d['scaleY']},'hostStyle':this[_0x93e6a4(0x382)](),'contentMode':s[_0x93e6a4(0x202)][_0x93e6a4(0x27c)]});}['_frameStyle'](){const _0x330eb5=_0x518ea5;return{...this[_0x330eb5(0x1a0)],'radius':s[_0x330eb5(0x162)]};}[_0x518ea5(0x2a0)](_0x559479){const _0x59c410=_0x518ea5;let _0x3cb966=_0x559479[_0x59c410(0x20e)];_0x3cb966&&(this['_savedWrapperStyle']||={'zIndex':_0x3cb966[_0x59c410(0x481)][_0x59c410(0x428)],'pointerEvents':_0x3cb966[_0x59c410(0x481)][_0x59c410(0x21a)]},_0x3cb966[_0x59c410(0x481)][_0x59c410(0x428)]=_0x59c410(0x2bd),_0x3cb966['style'][_0x59c410(0x21a)]=_0x59c410(0x324));}[_0x518ea5(0x3f6)](){const _0x467fde=_0x518ea5;var _0x185971;if(!this[_0x467fde(0x31c)])return;let _0x2315e8=this[_0x467fde(0x3c1)](),_0x1fc30a=(_0x2315e8==null?void 0x0:_0x2315e8[_0x467fde(0x2b1)])??this[_0x467fde(0x330)],_0x2ee4c4=(_0x185971=document[_0x467fde(0x2ff)](_0x1fc30a))==null?void 0x0:_0x185971[_0x467fde(0x20e)];_0x2ee4c4&&(_0x2ee4c4[_0x467fde(0x481)][_0x467fde(0x428)]=this[_0x467fde(0x31c)][_0x467fde(0x428)],_0x2ee4c4['style'][_0x467fde(0x21a)]=this[_0x467fde(0x31c)]['pointerEvents']),this[_0x467fde(0x31c)]=null;}},De=class extends c[_0x518ea5(0x2c3)]{constructor(_0x4dfda0,_0x16b87c,_0x53d70b,_0x342204,_0x166fbe,_0x2f2cca){const _0x281783=_0x518ea5;super(_0x4dfda0),this[_0x281783(0x48b)]=_0x16b87c,this['_setHostStyle']=_0x53d70b,this[_0x281783(0x39c)]=_0x342204,this[_0x281783(0x206)]=_0x166fbe,this[_0x281783(0x1b5)]=_0x2f2cca;}['getRect'](){const _0x52c3fd=_0x518ea5;let _0x275b80=this[_0x52c3fd(0x48b)]();return _0x275b80?ge(_0x275b80):null;}[_0x518ea5(0x25b)](_0x48c98e){const _0x6e12fc=_0x518ea5;this[_0x6e12fc(0x154)](_0x48c98e);}[_0x518ea5(0x2aa)](){const _0x195468=_0x518ea5;return this[_0x195468(0x206)]['nextVersion'](this[_0x195468(0x39c)]);}[_0x518ea5(0x2d5)](_0x2391b6,_0x143c76){const _0x5e2dca=_0x518ea5;return this[_0x5e2dca(0x206)][_0x5e2dca(0x388)](this[_0x5e2dca(0x39c)],_0x2391b6,_0x143c76);}[_0x518ea5(0x1d0)](){const _0x3eee13=_0x518ea5;this[_0x3eee13(0x1b5)]();}[_0x518ea5(0x36b)](){const _0x1cc608=_0x518ea5;this['_snapshotStore'][_0x1cc608(0x2aa)](this[_0x1cc608(0x39c)]);}};function F(_0x50e99d,_0x2602f6){return function(_0xfb98ce,_0x3124a1){_0x2602f6(_0xfb98ce,_0x3124a1,_0x50e99d);};}function I(_0x2276bd,_0x5713c3,_0x2754a7,_0x1bcb4b){const _0x3f1355=_0x518ea5;var _0x12f4c8=arguments[_0x3f1355(0x348)],_0x2a1a3b=_0x12f4c8<0x3?_0x5713c3:_0x1bcb4b===null?_0x1bcb4b=Object[_0x3f1355(0x27f)](_0x5713c3,_0x2754a7):_0x1bcb4b,_0x2dea8a;if(typeof Reflect==_0x3f1355(0x423)&&typeof Reflect[_0x3f1355(0x1e6)]==_0x3f1355(0x227))_0x2a1a3b=Reflect[_0x3f1355(0x1e6)](_0x2276bd,_0x5713c3,_0x2754a7,_0x1bcb4b);else{for(var _0x3ddeb2=_0x2276bd[_0x3f1355(0x348)]-0x1;_0x3ddeb2>=0x0;_0x3ddeb2--)(_0x2dea8a=_0x2276bd[_0x3ddeb2])&&(_0x2a1a3b=(_0x12f4c8<0x3?_0x2dea8a(_0x2a1a3b):_0x12f4c8>0x3?_0x2dea8a(_0x5713c3,_0x2754a7,_0x2a1a3b):_0x2dea8a(_0x5713c3,_0x2754a7))||_0x2a1a3b);}return _0x12f4c8>0x3&&_0x2a1a3b&&Object['defineProperty'](_0x5713c3,_0x2754a7,_0x2a1a3b),_0x2a1a3b;}function Oe(_0x538def){const _0x46c17b=_0x518ea5;if(!Object[_0x46c17b(0x239)][_0x46c17b(0x232)][_0x46c17b(0x25a)](_0x538def,'border'))return _0x538def;let {border:_0x29939f,..._0x44cfa4}=_0x538def;return{..._0x44cfa4,'stroke':(_0x29939f==null?void 0x0:_0x29939f[_0x46c17b(0x267)])??_0x46c17b(0x3d9),'strokeWidth':(_0x29939f==null?void 0x0:_0x29939f[_0x46c17b(0x176)])??0x0};}let ke=class extends t[_0x518ea5(0x365)]{constructor(_0x131a48,_0x53f3c9,_0x1f5f6f,_0x259065){const _0xf44768=_0x518ea5;super(),this[_0xf44768(0x261)]=_0x131a48,this['_renderManagerService']=_0x53f3c9,this[_0xf44768(0x19f)]=_0x1f5f6f,this[_0xf44768(0x317)]=_0x259065,M(this,'_chartHostMap',new Map()),M(this,_0xf44768(0x2d1),new Set()),M(this,'_removeHost$',new u['Subject']()),M(this,_0xf44768(0x2d2),this['_removeHost$'][_0xf44768(0x2cb)]()),this[_0xf44768(0x380)](this['_sheetCanvasFloatDomManagerService']['remove$'][_0xf44768(0x262)](_0x57f7fd=>{const _0x52f547=_0xf44768;let _0x1f9cbc=this[_0x52f547(0x15e)][_0x52f547(0x35f)](_0x57f7fd['id']);_0x1f9cbc!=null&&_0x1f9cbc['isManaged']()&&(_0x1f9cbc[_0x52f547(0x164)](),this['_removeHost$'][_0x52f547(0x40f)](_0x57f7fd['id']));}));}[_0x518ea5(0x455)](_0x27f8b9){const _0x15a2a2=_0x518ea5;if(_0x27f8b9==null)return;let _0x13369c=this['_renderManagerService']['getRenderUnitById'](_0x27f8b9),_0x37d073=_0x13369c==null?void 0x0:_0x13369c['scene'];return _0x13369c==null||_0x37d073==null?null:{'scene':_0x37d073,'transformer':_0x37d073['getTransformerByCreate'](),'renderUnit':_0x13369c,'canvas':_0x13369c['engine'][_0x15a2a2(0x32b)]()};}[_0x518ea5(0x264)](_0x4a778c,_0xc870cb){const _0x29c175=_0x518ea5;let _0x109275=this[_0x29c175(0x261)],_0x43f955=_0xc870cb||_0x29c175(0x3d9),_0x4e0fdb=_0x109275['getFloatDomInfo'](_0x4a778c);if(_0x4e0fdb){let {unitId:_0x8e1e5f,subUnitId:_0x36c6a6}=_0x4e0fdb;_0x109275['updateFloatDomProps'](_0x8e1e5f,_0x36c6a6,_0x4a778c,{'stroke':_0x43f955});}}['setHostStyle'](_0x2600cc,_0x529361){const _0x31ce60=_0x518ea5;let _0x418b5a=this['_sheetCanvasFloatDomManagerService'],_0x37dc83=_0x418b5a[_0x31ce60(0x3be)](_0x2600cc);if(_0x37dc83){let {unitId:_0x1af7f9,subUnitId:_0x9487d5}=_0x37dc83;_0x418b5a[_0x31ce60(0x24f)](_0x1af7f9,_0x9487d5,_0x2600cc,Oe(_0x529361));}}[_0x518ea5(0x175)](_0x2cc1c1){const _0xf89d26=_0x518ea5;let _0x151e4e=this['_sheetCanvasFloatDomManagerService'][_0xf89d26(0x3be)](_0x2cc1c1);return _0x151e4e?_0x151e4e['rect']:null;}['checkHost'](_0x3414f3){const _0xdb325a=_0x518ea5;var _0x452128;return((_0x452128=this[_0xdb325a(0x15e)][_0xdb325a(0x35f)](_0x3414f3))==null?void 0x0:_0x452128[_0xdb325a(0x1c1)]())??!0x1;}[_0x518ea5(0x397)](_0x193606){const _0x241540=_0x518ea5;var _0x649f71;(_0x649f71=this['_chartHostMap'][_0x241540(0x35f)](_0x193606))==null||_0x649f71[_0x241540(0x35b)]();}[_0x518ea5(0x19d)](_0x2ad86f){const _0xc99e9e=_0x518ea5;let _0x2b3d47=this[_0xc99e9e(0x15e)]['get'](_0x2ad86f);_0x2b3d47==null||_0x2b3d47[_0xc99e9e(0x42f)](),this[_0xc99e9e(0x15e)][_0xc99e9e(0x303)](_0x2ad86f);}async[_0x518ea5(0x489)](_0x1c21a5,_0x6e753a){const _0x5bdddf=_0x518ea5;if(_0x6e753a===c['ChartHostRenderMode'][_0x5bdddf(0x2ec)])return this[_0x5bdddf(0x2dd)](_0x1c21a5);if(_0x6e753a===c[_0x5bdddf(0x3c4)]['Dom'])return this[_0x5bdddf(0x458)](_0x1c21a5);let _0x28a2c2=this[_0x5bdddf(0x458)](_0x1c21a5);if(!_0x28a2c2)throw Error(_0x5bdddf(0x3df));return _0x28a2c2[_0x5bdddf(0x36d)]();}['isDomReady'](_0x59a919){const _0x226e73=_0x518ea5;var _0x2b5ed4;return this[_0x226e73(0x2d1)]['has'](_0x59a919)?(_0x2b5ed4=this['_chartHostMap'][_0x226e73(0x35f)](_0x59a919))!=null&&_0x2b5ed4[_0x226e73(0x1c1)]()?!0x0:(this[_0x226e73(0x2d1)][_0x226e73(0x303)](_0x59a919),!0x1):!0x1;}['markHostNotReady'](_0x5d1d4e){const _0x45e6af=_0x518ea5;this['_activeDomReadyChartIds'][_0x45e6af(0x303)](_0x5d1d4e)&&this['_requestChartCanvasRender'](_0x5d1d4e);}[_0x518ea5(0x36b)](_0x297adb){const _0x15d69d=_0x518ea5;let _0x2d18f9=this[_0x15d69d(0x48e)](_0x297adb);_0x2d18f9&&this[_0x15d69d(0x19f)][_0x15d69d(0x2aa)](_0x2d18f9);}[_0x518ea5(0x2dd)](_0x265686){const _0x1fea67=_0x518ea5;let _0xfc2637=this[_0x1fea67(0x48e)](_0x265686);return!_0xfc2637||!this[_0x1fea67(0x175)](_0x265686)?null:new De(_0x265686,()=>this[_0x1fea67(0x175)](_0x265686),_0x5ed9f1=>this[_0x1fea67(0x334)](_0x265686,_0x5ed9f1),_0xfc2637,this[_0x1fea67(0x19f)],()=>this[_0x1fea67(0x3f7)](_0x265686));}[_0x518ea5(0x458)](_0x19e391){const _0xf0519a=_0x518ea5;if(!this[_0xf0519a(0x175)](_0x19e391))return null;this[_0xf0519a(0x317)][_0xf0519a(0x16c)](_0x19e391,{'contentBox':{'wrapperInset':0x0,'contentInset':0x0}});let _0x1a6dac=this[_0xf0519a(0x15e)]['get'](_0x19e391);if(_0x1a6dac)return _0x1a6dac;let _0x5195a5=new Ee(_0x19e391,()=>this[_0xf0519a(0x261)][_0xf0519a(0x3be)](_0x19e391),()=>this[_0xf0519a(0x296)](_0x19e391),_0x5106ea=>this[_0xf0519a(0x334)](_0x19e391,_0x5106ea),()=>this[_0xf0519a(0x30c)],()=>this['_markHostReady'](_0x19e391),()=>this[_0xf0519a(0x2e0)](_0x19e391));return this[_0xf0519a(0x15e)][_0xf0519a(0x2f3)](_0x19e391,_0x5195a5),_0x5195a5;}[_0x518ea5(0x46f)](_0x17e026){const _0x325a3b=_0x518ea5;this[_0x325a3b(0x2d1)][_0x325a3b(0x3e0)](_0x17e026)||(this['_activeDomReadyChartIds'][_0x325a3b(0x33e)](_0x17e026),this[_0x325a3b(0x3f7)](_0x17e026));}['_getChartSnapshotKey'](_0x220692){const _0x308e0c=_0x518ea5;let _0x509b75=this[_0x308e0c(0x261)][_0x308e0c(0x3be)](_0x220692);return _0x509b75?{'unitId':_0x509b75[_0x308e0c(0x205)],'subUnitId':_0x509b75[_0x308e0c(0x409)],'chartId':_0x220692}:null;}['_requestChartCanvasRender'](_0x30bc86){const _0x4861be=_0x518ea5;var _0x5a8d14,_0x36b4d3,_0x3941b8;let _0xfd751c=this[_0x4861be(0x261)][_0x4861be(0x3be)](_0x30bc86);if(!_0xfd751c)return;let _0x542600=(_0x5a8d14=this[_0x4861be(0x19b)][_0x4861be(0x2dc)](_0xfd751c[_0x4861be(0x205)]))==null?void 0x0:_0x5a8d14[_0x4861be(0x308)],_0x356088=(_0x542600==null||(_0x36b4d3=_0x542600[_0x4861be(0x3d6)])==null?void 0x0:_0x36b4d3['call'](_0x542600,(0x0,n['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xfd751c[_0x4861be(0x205)],'subUnitId':_0xfd751c['subUnitId'],'drawingId':_0x30bc86})))??(_0x542600==null?void 0x0:_0x542600[_0x4861be(0x442)]((0x0,n['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0xfd751c[_0x4861be(0x205)],'subUnitId':_0xfd751c[_0x4861be(0x409)],'drawingId':_0x30bc86})))??null;_0x356088==null||(_0x3941b8=_0x356088[_0x4861be(0x198)])==null||_0x3941b8[_0x4861be(0x25a)](_0x356088,!0x0),_0x542600==null||_0x542600[_0x4861be(0x198)](!0x0);}[_0x518ea5(0x296)](_0x25fe58){const _0x3e332c=_0x518ea5;let _0x17319a=this['_sheetCanvasFloatDomManagerService'][_0x3e332c(0x3be)](_0x25fe58);if(!_0x17319a)return null;let _0x4a3d7f=this[_0x3e332c(0x455)](_0x17319a[_0x3e332c(0x205)]),_0x302d53=_0x4a3d7f==null?void 0x0:_0x4a3d7f[_0x3e332c(0x308)],_0xcc7bb4=document['getElementById'](_0x17319a[_0x3e332c(0x2b1)]??_0x25fe58);return _e(_0x17319a[_0x3e332c(0x2c1)],{'scaleX':(_0x302d53==null?void 0x0:_0x302d53[_0x3e332c(0x217)])??0x1,'scaleY':(_0x302d53==null?void 0x0:_0x302d53[_0x3e332c(0x45c)])??0x1},_0xcc7bb4?{'left':_0xcc7bb4[_0x3e332c(0x328)],'top':_0xcc7bb4[_0x3e332c(0x3a9)]}:void 0x0);}[_0x518ea5(0x42f)](){const _0x5041e9=_0x518ea5;this['_disposed']||(this[_0x5041e9(0x15e)][_0x5041e9(0x320)](_0x564667=>_0x564667[_0x5041e9(0x42f)]()),this['_chartHostMap'][_0x5041e9(0x27a)](),this['_activeDomReadyChartIds'][_0x5041e9(0x27a)](),this['_removeHost$']['complete'](),super[_0x5041e9(0x42f)]());}};ke=I([F(0x0,(0x0,t['Inject'])(i[_0x518ea5(0x310)])),F(0x1,(0x0,t[_0x518ea5(0x293)])(p['IRenderManagerService'])),F(0x2,(0x0,t[_0x518ea5(0x293)])(we)),F(0x3,(0x0,t[_0x518ea5(0x293)])(o[_0x518ea5(0x373)]))],ke);const L=(0x0,t[_0x518ea5(0x3aa)])(_0x518ea5(0x372)),R=(0x0,t[_0x518ea5(0x3aa)])(_0x518ea5(0x366));let z=class extends s['ChartUIService']{constructor(_0x501f10,_0x22f3cd,_0x472cdf,_0x38eec7,_0x201cfe,_0x481805){const _0x3a741d=_0x518ea5;super(_0x481805),this[_0x3a741d(0x28e)]=_0x501f10,this[_0x3a741d(0x1c5)]=_0x22f3cd,this[_0x3a741d(0x1ef)]=_0x472cdf,this[_0x3a741d(0x237)]=_0x38eec7,this['_univerInstanceService']=_0x201cfe,M(this,_0x3a741d(0x3f1),!0x1),M(this,_0x3a741d(0x24d),new u[(_0x3a741d(0x456))](null)),M(this,'_selectedElement$',new u['BehaviorSubject'](null)),M(this,_0x3a741d(0x25f),new u['BehaviorSubject'](null)),M(this,_0x3a741d(0x2cd),this[_0x3a741d(0x24d)]['asObservable']()),M(this,_0x3a741d(0x1bc),this[_0x3a741d(0x436)][_0x3a741d(0x2cb)]()),M(this,_0x3a741d(0x17e),this[_0x3a741d(0x25f)][_0x3a741d(0x2cb)]());}get[_0x518ea5(0x203)](){const _0x35c053=_0x518ea5;return this[_0x35c053(0x28e)][_0x35c053(0x451)]??null;}get[_0x518ea5(0x451)](){const _0x319e75=_0x518ea5;return this['_chartModelService'][_0x319e75(0x451)];}get[_0x518ea5(0x31b)](){const _0x21d996=_0x518ea5;return this[_0x21d996(0x28e)][_0x21d996(0x31b)];}get[_0x518ea5(0x173)](){const _0x553864=_0x518ea5;return this[_0x553864(0x24d)][_0x553864(0x2f2)]();}get[_0x518ea5(0x1e9)](){const _0x598f79=_0x518ea5;return this[_0x598f79(0x237)][_0x598f79(0x1e9)];}get[_0x518ea5(0x3c6)](){const _0x576210=_0x518ea5;return this[_0x576210(0x3f1)];}[_0x518ea5(0x1bb)](_0x21d089){const _0x1e758c=_0x518ea5;this[_0x1e758c(0x3f1)]=_0x21d089;}[_0x518ea5(0x1d1)](_0x4acec4){const _0x429f22=_0x518ea5;this[_0x429f22(0x24d)][_0x429f22(0x2f2)]()!==_0x4acec4&&this[_0x429f22(0x24d)][_0x429f22(0x40f)](_0x4acec4);}['isElementEditModeActive'](_0x29b82a){const _0x2c9090=_0x518ea5;return this[_0x2c9090(0x173)]===_0x29b82a;}['setSelectedElement'](_0x5d9853){this['_selectedElement$']['next'](_0x5d9853);}[_0x518ea5(0x424)](_0x9cf11,_0xc7cb2d){const _0x4c4469=_0x518ea5;this[_0x4c4469(0x25f)][_0x4c4469(0x40f)]({'chartId':_0x9cf11,'route':_0xc7cb2d});}[_0x518ea5(0x39e)](){const _0x5c903a=_0x518ea5;this['_panelRoute$'][_0x5c903a(0x40f)](null);}[_0x518ea5(0x46d)](_0x347e8a){const _0xfbfd17=_0x518ea5;let _0x2ce02f=this[_0xfbfd17(0x451)];_0x2ce02f&&this[_0xfbfd17(0x43a)]({'chartModelId':_0x2ce02f['id'],'range':_0x347e8a});}[_0x518ea5(0x321)](_0x4fa1dd){const _0x54ca6c=_0x518ea5;var _0x2152f9;let _0x1bb1b7=this[_0x54ca6c(0x451)];if(!_0x1bb1b7)return;let _0x5d2a40=(_0x2152f9=this['_sheetsChartService'][_0x54ca6c(0x369)](_0x1bb1b7['id']))==null?void 0x0:_0x2152f9['getRangeInfo']();if(!_0x5d2a40)return;let _0x32c711={..._0x5d2a40,'isRowDirection':_0x4fa1dd===c['DataOrientation'][_0x54ca6c(0x1a6)]};this[_0x54ca6c(0x43a)]({'chartModelId':_0x1bb1b7['id'],'range':_0x32c711});}[_0x518ea5(0x3a1)](_0x3f2fb2){const _0x5d95c0=_0x518ea5;var _0x1fbe14;this[_0x5d95c0(0x1ef)][_0x5d95c0(0x1fe)](e[_0x5d95c0(0x333)]['id'],{..._0x3f2fb2,'unitId':((_0x1fbe14=this[_0x5d95c0(0x367)]['getFocusedUnit']())==null?void 0x0:_0x1fbe14[_0x5d95c0(0x417)]())??''});}['_executeChartUpdateSourceConfig'](_0x4a7441){const _0x217037=_0x518ea5;var _0x2a5a68;this[_0x217037(0x1ef)][_0x217037(0x1fe)](e[_0x217037(0x1b2)]['id'],{..._0x4a7441,'unitId':((_0x2a5a68=this[_0x217037(0x367)][_0x217037(0x2f9)]())==null?void 0x0:_0x2a5a68[_0x217037(0x417)]())??''});}['dispose'](){const _0x5e2be2=_0x518ea5;this[_0x5e2be2(0x24d)][_0x5e2be2(0x170)](),this[_0x5e2be2(0x436)]['complete'](),this[_0x5e2be2(0x25f)][_0x5e2be2(0x170)](),super[_0x5e2be2(0x42f)]();}};z=I([F(0x0,(0x0,t[_0x518ea5(0x293)])(e['ChartModelService'])),F(0x1,(0x0,t[_0x518ea5(0x293)])(e[_0x518ea5(0x418)])),F(0x2,t[_0x518ea5(0x44c)]),F(0x3,(0x0,t[_0x518ea5(0x293)])(t['LocaleService'])),F(0x4,t[_0x518ea5(0x3b0)]),F(0x5,(0x0,t[_0x518ea5(0x293)])(s[_0x518ea5(0x3b6)]))],z);const Ae=e[_0x518ea5(0x2d0)][_0x518ea5(0x2ec)];var je=class extends c[_0x518ea5(0x2c3)]{constructor(_0x6dca11,_0x241065){const _0x3e9338=_0x518ea5;super(_0x6dca11),this[_0x3e9338(0x2b0)]=_0x241065,M(this,_0x3e9338(0x1b0),0x0),M(this,_0x3e9338(0x250),void 0x0),M(this,_0x3e9338(0x481),{});}[_0x518ea5(0x272)](){const _0x3be718=_0x518ea5;return this[_0x3be718(0x2b0)];}[_0x518ea5(0x25b)](_0x1be496){const _0x333357=_0x518ea5;this[_0x333357(0x481)]=_0x1be496;}[_0x518ea5(0x2aa)](){const _0x445497=_0x518ea5;return++this[_0x445497(0x1b0)];}['commitSnapshot'](_0x56544c,_0x1bac26){const _0x35b5d9=_0x518ea5;return _0x1bac26===this[_0x35b5d9(0x1b0)]?(N(this[_0x35b5d9(0x250)]),this[_0x35b5d9(0x250)]=_0x56544c,!0x0):(N(_0x56544c),!0x1);}[_0x518ea5(0x1d0)](){}[_0x518ea5(0x36b)](){this['_version']+=0x1;}['takeSnapshot'](){const _0x3941bd=_0x518ea5;let _0x25e183=this[_0x3941bd(0x250)];return this['_image']=void 0x0,_0x25e183;}[_0x518ea5(0x42f)](){const _0x3a7e28=_0x518ea5;N(this[_0x3a7e28(0x250)]),this[_0x3a7e28(0x250)]=void 0x0,super[_0x3a7e28(0x42f)]();}};function Me(_0x189ff6,_0x403ea1,_0x4193e6){const _0xfe3e8f=_0x518ea5;let _0x5aff12=_0x189ff6['getRuntimeContext'](_0x403ea1);return(0x0,c[_0xfe3e8f(0x27e)])({..._0x189ff6[_0xfe3e8f(0x481)],'runtime':{..._0x5aff12,'layoutInset':0x8,..._0x4193e6===void 0x0?{}:{'addWatermark':_0x4193e6}},'direction':_0x403ea1},_0x189ff6['chartType']);}let B=class extends t[_0x518ea5(0x365)]{constructor(_0x137310,_0x579f04,_0xc5a163,_0x45566c,_0x4077e6,_0xddebc4,_0x18d137,_0x4bfd18,_0xa9fcf9,_0x4c5a62,_0x39ca1a,_0xea843f,_0x4be60d,_0x436ad0){const _0x59131c=_0x518ea5;super(),this[_0x59131c(0x222)]=_0x137310,this[_0x59131c(0x261)]=_0x579f04,this[_0x59131c(0x28e)]=_0xc5a163,this[_0x59131c(0x1f6)]=_0x45566c,this[_0x59131c(0x367)]=_0x4077e6,this[_0x59131c(0x19b)]=_0xddebc4,this[_0x59131c(0x237)]=_0x18d137,this[_0x59131c(0x39b)]=_0x4bfd18,this[_0x59131c(0x34b)]=_0xa9fcf9,this[_0x59131c(0x22c)]=_0x4c5a62,this[_0x59131c(0x478)]=_0x39ca1a,this[_0x59131c(0x169)]=_0xea843f,this['_chartSnapshotStoreService']=_0x4be60d,this['_renderModelManager']=_0x436ad0,M(this,_0x59131c(0x313),new Map()),M(this,'_chartEventHandlers',new Map()),M(this,_0x59131c(0x2ce),new Map()),M(this,_0x59131c(0x283),new Map()),M(this,_0x59131c(0x2a3),new Map()),M(this,_0x59131c(0x187),new Map()),M(this,_0x59131c(0x419),void 0x0),M(this,'_addWatermark',void 0x0),M(this,'_lastRenderInputMap',new Map()),M(this,'_activeChartId',null),M(this,'_lastActiveSheet',null);let _0x358c0d=(0x0,e['getAllowedChartTypes'])(this['_injector']),_0x579acd=this[_0x59131c(0x169)]['getConfig'](e[_0x59131c(0x29b)]);this[_0x59131c(0x419)]=(_0x579acd==null?void 0x0:_0x579acd[_0x59131c(0x259)])??Ae,this[_0x59131c(0x18f)]=_0x358c0d[_0x59131c(0x348)]!==0x1||_0x358c0d[0x0]!==_0x59131c(0x2d4),this[_0x59131c(0x1a2)](),this[_0x59131c(0x485)](),this[_0x59131c(0x302)](),this[_0x59131c(0x3c0)](),this[_0x59131c(0x204)]();}[_0x518ea5(0x3f3)](_0xb0e987){const _0x5a7abe=_0x518ea5;let _0x231ccb=this['_getChartSnapshotKey'](_0xb0e987);return _0x231ccb?this[_0x5a7abe(0x19f)][_0x5a7abe(0x1ad)](_0x231ccb):void 0x0;}[_0x518ea5(0x3f9)](_0x1debaf){const _0x3f8695=_0x518ea5;var _0x503e92;return((_0x503e92=this[_0x3f8695(0x28e)][_0x3f8695(0x451)])==null?void 0x0:_0x503e92['id'])===_0x1debaf?e[_0x3f8695(0x2d0)][_0x3f8695(0x393)]:this[_0x3f8695(0x419)];}[_0x518ea5(0x48e)](_0x2bc433){const _0x54271c=_0x518ea5;let _0xce2d7f=this[_0x54271c(0x261)]['getFloatDomInfo'](_0x2bc433);return _0xce2d7f?{'unitId':_0xce2d7f[_0x54271c(0x205)],'subUnitId':_0xce2d7f[_0x54271c(0x409)],'chartId':_0x2bc433}:null;}[_0x518ea5(0x1a2)](){const _0x189efc=_0x518ea5;this[_0x189efc(0x419)]===e[_0x189efc(0x2d0)]['Image']&&this['disposeWithMe'](this['_sheetCanvasFloatDomManagerService'][_0x189efc(0x25e)](t[_0x189efc(0x421)][_0x189efc(0x18c)],({key:_0xadc5f0,config:_0x1024cb,unitId:_0x187441,subUnitId:_0x43b1ff,drawingId:_0x58f1d6})=>new xe(_0xadc5f0,_0x1024cb,()=>this[_0x189efc(0x19f)][_0x189efc(0x1ad)]({'unitId':_0x187441,'subUnitId':_0x43b1ff,'chartId':_0x58f1d6}),()=>this[_0x189efc(0x222)][_0x189efc(0x454)](_0x58f1d6))));}[_0x518ea5(0x485)](){const _0xcc0451=_0x518ea5;this[_0xcc0451(0x380)](this['_chartModelService'][_0xcc0451(0x31b)][_0xcc0451(0x262)](_0x4a1852=>{const _0x966cf1=_0xcc0451;let _0x54bf67=(_0x4a1852==null?void 0x0:_0x4a1852['id'])??null,_0x2ca04f=this[_0x966cf1(0x41a)];_0x2ca04f!==_0x54bf67&&(_0x2ca04f&&(this[_0x966cf1(0x222)][_0x966cf1(0x2e0)](_0x2ca04f),this[_0x966cf1(0x2f0)](_0x2ca04f),this[_0x966cf1(0x295)](_0x2ca04f),this[_0x966cf1(0x3ec)](_0x2ca04f)),this[_0x966cf1(0x41a)]=_0x54bf67,_0x54bf67&&(this[_0x966cf1(0x222)][_0x966cf1(0x2e0)](_0x54bf67),this[_0x966cf1(0x48d)](_0x54bf67),this[_0x966cf1(0x3ec)](_0x54bf67)));}));}[_0x518ea5(0x302)](){const _0x30a4de=_0x518ea5;this[_0x30a4de(0x380)](this[_0x30a4de(0x1f6)][_0x30a4de(0x1f9)][_0x30a4de(0x262)](_0x32565a=>{const _0xcb33dd=_0x30a4de;var _0x2a2fd7;let _0x5a89e8=(_0x2a2fd7=this[_0xcb33dd(0x28e)][_0xcb33dd(0x451)])==null?void 0x0:_0x2a2fd7['id'];_0x5a89e8&&_0x32565a[_0xcb33dd(0x163)](_0x3f898e=>_0x3f898e[_0xcb33dd(0x468)][_0xcb33dd(0x163)](_0x110c6f=>_0x110c6f[_0xcb33dd(0x2b9)]===_0x5a89e8))&&this[_0xcb33dd(0x28e)][_0xcb33dd(0x406)](null);})),this[_0x30a4de(0x380)](this[_0x30a4de(0x1f6)][_0x30a4de(0x47f)][_0x30a4de(0x262)](_0x4ce936=>{const _0x59b8d8=_0x30a4de;var _0x540e10;let _0x8bdcbc=(_0x540e10=this['_chartModelService'][_0x59b8d8(0x451)])==null?void 0x0:_0x540e10['id'];_0x8bdcbc&&_0x4ce936[_0x59b8d8(0x163)](_0x251206=>_0x251206[_0x59b8d8(0x469)][_0x59b8d8(0x2b9)]===_0x8bdcbc||_0x251206[_0x59b8d8(0x468)][_0x59b8d8(0x163)](_0x5905fb=>_0x5905fb['drawingId']===_0x8bdcbc))&&this[_0x59b8d8(0x28e)]['setActiveChartModel'](null);}));}[_0x518ea5(0x3c0)](){const _0x1d5d75=_0x518ea5;this[_0x1d5d75(0x380)](this[_0x1d5d75(0x1f6)]['featurePluginOrderUpdate$'][_0x1d5d75(0x262)](_0x1a8ef9=>{const _0x3e5eb0=_0x1d5d75;var _0x2de255;let _0x242f0f=(_0x2de255=this[_0x3e5eb0(0x28e)][_0x3e5eb0(0x451)])==null?void 0x0:_0x2de255['id'];if(!_0x242f0f){_0x1a8ef9[_0x3e5eb0(0x2c0)][_0x3e5eb0(0x320)](_0x4fa710=>{const _0x36e9fc=_0x3e5eb0;this[_0x36e9fc(0x28e)][_0x36e9fc(0x36a)](_0x4fa710)&&this[_0x36e9fc(0x2f0)](_0x4fa710);});return;}let _0x4926df=this[_0x3e5eb0(0x261)][_0x3e5eb0(0x3be)](_0x242f0f);(_0x4926df==null?void 0x0:_0x4926df[_0x3e5eb0(0x205)])===_0x1a8ef9['unitId']&&_0x4926df[_0x3e5eb0(0x409)]===_0x1a8ef9[_0x3e5eb0(0x409)]&&this[_0x3e5eb0(0x48d)](_0x242f0f);})),this[_0x1d5d75(0x380)](this['_drawingManagerService'][_0x1d5d75(0x172)]['subscribe'](_0x116491=>{const _0x2836aa=_0x1d5d75;var _0x1f1478;let _0x42e049=(_0x1f1478=this[_0x2836aa(0x28e)]['activeChartModel'])==null?void 0x0:_0x1f1478['id'];if(!_0x42e049)return;let _0x3ab14a=this['_sheetCanvasFloatDomManagerService'][_0x2836aa(0x3be)](_0x42e049);_0x3ab14a&&_0x116491['some'](_0x5d9107=>_0x5d9107['unitId']===_0x3ab14a[_0x2836aa(0x205)]&&_0x5d9107[_0x2836aa(0x409)]===_0x3ab14a[_0x2836aa(0x409)])&&this['_applyActiveChartRuntimeZIndex'](_0x42e049);})),this[_0x1d5d75(0x380)](this[_0x1d5d75(0x28e)][_0x1d5d75(0x1c7)][_0x1d5d75(0x262)](_0x56d777=>{const _0x5ad0fa=_0x1d5d75;var _0xaa97d;this[_0x5ad0fa(0x150)][_0x5ad0fa(0x303)](_0x56d777),this[_0x5ad0fa(0x19f)][_0x5ad0fa(0x2b6)](_0x56d777),this[_0x5ad0fa(0x457)](_0x56d777),this['_chartHostProvider'][_0x5ad0fa(0x2e0)](_0x56d777),((_0xaa97d=this[_0x5ad0fa(0x28e)][_0x5ad0fa(0x451)])==null?void 0x0:_0xaa97d['id'])===_0x56d777?this[_0x5ad0fa(0x28e)][_0x5ad0fa(0x406)](null):this[_0x5ad0fa(0x2f0)](_0x56d777),this[_0x5ad0fa(0x25d)](_0x56d777);}));}['_rerenderLatest'](_0x5b4b7a){const _0x39a52d=_0x518ea5;let _0x23b816=this[_0x39a52d(0x150)]['get'](_0x5b4b7a);_0x23b816&&this['render'](_0x5b4b7a,_0x23b816[_0x39a52d(0x1a4)],_0x23b816[_0x39a52d(0x481)]);}[_0x518ea5(0x295)](_0x78ea77){const _0x4716ee=_0x518ea5;let _0x3e7f11=this['_chartInstanceMap'][_0x4716ee(0x35f)](_0x78ea77);(_0x3e7f11==null?void 0x0:_0x3e7f11[_0x4716ee(0x337)])==='dom'&&(this[_0x4716ee(0x39a)](_0x78ea77),_0x3e7f11[_0x4716ee(0x42f)](),this['_chartInstanceMap'][_0x4716ee(0x303)](_0x78ea77)),this[_0x4716ee(0x222)][_0x4716ee(0x2e0)](_0x78ea77),this[_0x4716ee(0x222)][_0x4716ee(0x19d)](_0x78ea77);}[_0x518ea5(0x25d)](_0x1ca7aa){const _0x1be441=_0x518ea5;let _0x5cf65b=this[_0x1be441(0x313)][_0x1be441(0x35f)](_0x1ca7aa);_0x5cf65b&&(this['_disposeChartEventSubscriptions'](_0x1ca7aa),_0x5cf65b[_0x1be441(0x42f)](),this['_chartInstanceMap'][_0x1be441(0x303)](_0x1ca7aa)),this[_0x1be441(0x222)]['markHostNotReady'](_0x1ca7aa),this[_0x1be441(0x222)][_0x1be441(0x19d)](_0x1ca7aa);}['_clearChartRuntimeCache'](_0xa67753){const _0x59a640=_0x518ea5;var _0x5b32dd,_0x568459;(_0x5b32dd=this[_0x59a640(0x3e1)][_0x59a640(0x34a)](c[_0x59a640(0x37a)]))==null||(_0x568459=_0x5b32dd['clearRuntimeCache'])==null||_0x568459['call'](_0x5b32dd,_0xa67753);}[_0x518ea5(0x2f8)](_0x57583f,_0x1e5bbe){const _0x3339de=_0x518ea5;let _0x5b1586=this[_0x3339de(0x1f6)][_0x3339de(0x252)](_0x57583f,_0x1e5bbe);Object['values'](_0x5b1586??{})[_0x3339de(0x320)](_0x109d5f=>{const _0x40ecd9=_0x3339de;_0x109d5f[_0x40ecd9(0x354)]===t['DrawingTypeEnum']['DRAWING_CHART']&&this[_0x40ecd9(0x457)](_0x109d5f[_0x40ecd9(0x2b9)]);});}['_getChartRenderObject'](_0x3ea978,_0x25b57e){const _0x40bf58=_0x518ea5;var _0x4b7a17;return((_0x4b7a17=_0x3ea978[_0x40bf58(0x3d6)])==null?void 0x0:_0x4b7a17[_0x40bf58(0x25a)](_0x3ea978,_0x25b57e))??_0x3ea978[_0x40bf58(0x442)](_0x25b57e)??null;}['_getChartRenderObjectContext'](_0x4229c2){const _0x27aa05=_0x518ea5;var _0xff8aae;let _0x5829af=this[_0x27aa05(0x261)][_0x27aa05(0x3be)](_0x4229c2);if(!_0x5829af)return null;let _0x51401c=(_0xff8aae=this['_renderManagerService'][_0x27aa05(0x2dc)](_0x5829af[_0x27aa05(0x205)]))==null?void 0x0:_0xff8aae[_0x27aa05(0x308)];if(!_0x51401c)return null;let _0x3b0f58=this['_getChartRenderObject'](_0x51401c,(0x0,n[_0x27aa05(0x153)])({'unitId':_0x5829af['unitId'],'subUnitId':_0x5829af[_0x27aa05(0x409)],'drawingId':_0x4229c2}));return _0x3b0f58?{'info':_0x5829af,'scene':_0x51401c,'chartObject':_0x3b0f58}:null;}['_setChartRuntimeZIndex'](_0x21fb3c,_0x1cf25d){const _0x282b11=_0x518ea5;var _0x4e5504,_0x434da7,_0x234b20,_0x37d382;let _0x334770=this[_0x282b11(0x36c)](_0x21fb3c);_0x334770&&((_0x4e5504=(_0x434da7=_0x334770[_0x282b11(0x358)])['setProps'])==null||_0x4e5504[_0x282b11(0x25a)](_0x434da7,{'zIndex':_0x1cf25d}),(_0x234b20=(_0x37d382=_0x334770[_0x282b11(0x358)])[_0x282b11(0x198)])==null||_0x234b20[_0x282b11(0x25a)](_0x37d382,!0x0),_0x334770[_0x282b11(0x308)][_0x282b11(0x198)](!0x0));}[_0x518ea5(0x48d)](_0x11c072){const _0x3cca2a=_0x518ea5;let _0x20a092=this[_0x3cca2a(0x261)]['getFloatDomInfo'](_0x11c072);if(!_0x20a092)return;let _0x347302=this[_0x3cca2a(0x1f6)][_0x3cca2a(0x1d8)](_0x20a092[_0x3cca2a(0x205)],_0x20a092[_0x3cca2a(0x409)]);this['_setChartRuntimeZIndex'](_0x11c072,_0x347302[_0x3cca2a(0x348)]);}[_0x518ea5(0x2f0)](_0x43c9a5){const _0x154108=_0x518ea5;let _0x30d858=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x43c9a5);if(!_0x30d858)return;let _0x5df11e=this[_0x154108(0x1f6)][_0x154108(0x1d8)](_0x30d858['unitId'],_0x30d858[_0x154108(0x409)]),_0x97f726=_0x5df11e[_0x154108(0x48c)](_0x43c9a5);this[_0x154108(0x1ce)](_0x43c9a5,_0x97f726===-0x1?Math['max'](_0x5df11e['length']-0x1,0x0):_0x97f726);}['_resizeChart'](_0x905409,_0x51bce){const _0x39bfff=_0x518ea5;let _0x8dbde=this[_0x39bfff(0x261)][_0x39bfff(0x3be)](_0x905409);if(_0x51bce[_0x39bfff(0x176)]!==void 0x0&&_0x51bce[_0x39bfff(0x2d7)]!==void 0x0&&_0x8dbde){var _0x4d2a49;let {subUnitId:_0x71b1ff}=_0x8dbde,_0x508eff=(_0x4d2a49=this['_univerInstanceService'][_0x39bfff(0x26a)](t[_0x39bfff(0x32f)][_0x39bfff(0x415)]))==null?void 0x0:_0x4d2a49[_0x39bfff(0x253)]();if((_0x508eff==null?void 0x0:_0x508eff[_0x39bfff(0x29f)]())===_0x71b1ff){let {width:_0x2077e8,height:_0x59e1b8}=_0x51bce,_0x418af6=this[_0x39bfff(0x28e)][_0x39bfff(0x36a)](_0x905409),_0x30db83=_0x418af6==null?void 0x0:_0x418af6[_0x39bfff(0x481)];if(Math[_0x39bfff(0x405)](_0x2077e8-((_0x30db83==null?void 0x0:_0x30db83[_0x39bfff(0x176)])||0x0))>0x1||Math[_0x39bfff(0x405)](_0x59e1b8-((_0x30db83==null?void 0x0:_0x30db83[_0x39bfff(0x2d7)])||0x0))>0x1){_0x418af6==null||_0x418af6[_0x39bfff(0x383)]({..._0x30db83,'width':_0x2077e8,'height':_0x59e1b8});let _0x9eb4ff=this[_0x39bfff(0x313)][_0x39bfff(0x35f)](_0x905409);_0x9eb4ff&&(this[_0x39bfff(0x222)][_0x39bfff(0x397)](_0x905409),_0x9eb4ff['resize']());}}}}['_debounceHandle'](_0x50ae00,_0x4db60f,_0x3b3488=0x0){const _0x5c2f67=_0x518ea5;let _0x2a0109=this[_0x5c2f67(0x187)][_0x5c2f67(0x35f)](_0x50ae00);_0x2a0109||(_0x2a0109=(0x0,t[_0x5c2f67(0x2fb)])(_0x46ac83=>{const _0x345ef1=_0x5c2f67;this[_0x345ef1(0x19c)](_0x50ae00,_0x46ac83);},_0x3b3488),this[_0x5c2f67(0x187)][_0x5c2f67(0x2f3)](_0x50ae00,_0x2a0109)),_0x2a0109(_0x4db60f);}[_0x518ea5(0x204)](){const _0x3857b7=_0x518ea5;let _0x421299=this['_renderDebounceMap'],_0x22d595=_0x5f37a=>{const _0x17f1d5=_0x2b25;if(!_0x421299['has'](_0x5f37a)){let _0x3f1371=(0x0,t[_0x17f1d5(0x2fb)])((_0x5029d9,_0x4f6de5,_0xf77417,_0x4b9a60)=>{const _0x20a07a=_0x17f1d5;var _0x5c0557,_0x16df10;if(!_0xf77417)return;(_0x5c0557=_0xf77417[_0x20a07a(0x265)])==null||_0x5c0557[_0x20a07a(0x30f)][_0x20a07a(0x320)]((_0x3d471f,_0x4d4b4a)=>{const _0x45c9b0=_0x20a07a;_0x3d471f[_0x45c9b0(0x24e)]||=this['_localeService']['t']('sheets-chart-ui.common.category')+'\x20'+(_0x4d4b4a+0x1);}),_0xf77417[_0x20a07a(0x45b)][_0x20a07a(0x320)]((_0xc9138d,_0x4a9f39)=>{const _0x4ea81f=_0x20a07a;_0xc9138d[_0x4ea81f(0x20d)]||=this[_0x4ea81f(0x237)]['t']('sheets-chart-ui.chord.target')+'\x20'+(_0x4a9f39+0x1);});let _0x455a6f=this[_0x20a07a(0x3ac)](_0x5029d9,_0x4b9a60),_0x523b5e=(_0x16df10=this[_0x20a07a(0x367)][_0x20a07a(0x26a)](t[_0x20a07a(0x32f)]['UNIVER_SHEET']))==null?void 0x0:_0x16df10['getActiveSheet']();(_0x523b5e==null?void 0x0:_0x523b5e[_0x20a07a(0x29f)]())===_0x4f6de5&&this['render'](_0x5029d9['id'],_0xf77417,_0x455a6f);},0x11);_0x421299['set'](_0x5f37a,_0x3f1371);}return _0x421299[_0x17f1d5(0x35f)](_0x5f37a);};this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x3857b7(0x262)](_0x34da47=>{const _0x240635=_0x3857b7;let _0x4a087d=this[_0x240635(0x367)][_0x240635(0x26a)](t['UniverInstanceType']['UNIVER_SHEET']);if(_0x34da47&&_0x4a087d&&_0x4a087d[_0x240635(0x417)]()===_0x34da47){var _0x244f00;let _0x413439=_0x4a087d['getActiveSheet']()['getSheetId']();this[_0x240635(0x43b)]&&(this[_0x240635(0x43b)]['unitId']!==_0x34da47||this[_0x240635(0x43b)][_0x240635(0x409)]!==_0x413439)&&this['_clearSheetChartRuntimeCaches'](this[_0x240635(0x43b)][_0x240635(0x205)],this['_lastActiveSheet'][_0x240635(0x409)]),this[_0x240635(0x43b)]={'unitId':_0x34da47,'subUnitId':_0x413439};let _0x51dd87=this[_0x240635(0x1f6)][_0x240635(0x252)](_0x34da47,_0x413439);if(!((_0x244f00=this['_renderManagerService'][_0x240635(0x2dc)](_0x34da47))!=null&&_0x244f00[_0x240635(0x3a5)](a[_0x240635(0x339)])[_0x240635(0x466)](_0x413439)))return;if(_0x51dd87)for(let _0x2db337 in _0x51dd87){let {drawingId:_0x48a45d}=_0x51dd87[_0x2db337],_0x27aafa=this[_0x240635(0x28e)][_0x240635(0x36a)](_0x48a45d);_0x27aafa&&_0x22d595(_0x27aafa['id'])(_0x27aafa,_0x413439,_0x27aafa[_0x240635(0x1a4)],this['_localeService'][_0x240635(0x435)]());}}})),this[_0x3857b7(0x380)](this['_themeService'][_0x3857b7(0x288)]['subscribe'](()=>{const _0xd5f557=_0x3857b7;var _0x3ec95b;let _0x1d0dba=this['_univerInstanceService'][_0xd5f557(0x26a)](t[_0xd5f557(0x32f)][_0xd5f557(0x415)]);if(!_0x1d0dba)return;let _0x35575c=_0x1d0dba[_0xd5f557(0x417)](),_0x249a14=_0x1d0dba[_0xd5f557(0x253)]()[_0xd5f557(0x29f)](),_0x59b79c=this[_0xd5f557(0x1f6)][_0xd5f557(0x252)](_0x35575c,_0x249a14);if((_0x3ec95b=this['_renderManagerService'][_0xd5f557(0x2dc)](_0x35575c))!=null&&_0x3ec95b[_0xd5f557(0x3a5)](a[_0xd5f557(0x339)])['getSkeleton'](_0x249a14)&&_0x59b79c)for(let _0x304442 in _0x59b79c){let {drawingId:_0x4e16c5}=_0x59b79c[_0x304442],_0x5487ef=this[_0xd5f557(0x28e)][_0xd5f557(0x36a)](_0x4e16c5);_0x5487ef&&_0x22d595(_0x5487ef['id'])(_0x5487ef,_0x249a14,_0x5487ef[_0xd5f557(0x1a4)],this['_localeService']['getDirection']());}})),this[_0x3857b7(0x380)](this['_drawingManagerService'][_0x3857b7(0x172)][_0x3857b7(0x262)](_0x4529ec=>{_0x4529ec['forEach'](_0x4d2b49=>{const _0x325885=_0x2b25;var _0x1f7fb4,_0x360b83;let {drawingId:_0x349075,unitId:_0x19da8f,subUnitId:_0x3663a9}=_0x4d2b49;if(!((_0x1f7fb4=this[_0x325885(0x19b)][_0x325885(0x2dc)](_0x19da8f))!=null&&_0x1f7fb4['with'](a[_0x325885(0x339)])[_0x325885(0x466)](_0x3663a9)))return;let {drawingType:_0x109b9e}=this[_0x325885(0x1f6)][_0x325885(0x185)](_0x4d2b49);if(_0x109b9e!==t[_0x325885(0x421)][_0x325885(0x18c)])return;let _0xfb1b1f=this[_0x325885(0x261)][_0x325885(0x3be)](_0x349075),_0xb8bd17=(_0xfb1b1f==null?void 0x0:_0xfb1b1f[_0x325885(0x2b1)])??_0x349075,_0x43f415=_0xfb1b1f==null?void 0x0:_0xfb1b1f[_0x325885(0x2c1)],_0x1c5e86=(_0x360b83=this[_0x325885(0x19b)][_0x325885(0x2dc)](_0x19da8f))==null?void 0x0:_0x360b83[_0x325885(0x308)];_0x43f415&&this['disposeWithMe'](_0x43f415==null?void 0x0:_0x43f415['onTransformChange$'][_0x325885(0x3b2)](_0x547e47=>{const _0x2011c2=_0x325885;let {type:_0x56de44,value:_0x10338e}=_0x547e47;if(p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']===_0x56de44||p[_0x2011c2(0x24c)][_0x2011c2(0x2d4)]===_0x56de44){let {width:_0x49375c,height:_0x8b2c82}=_0x10338e;this[_0x2011c2(0x3e7)](_0x349075,{'width':_0x49375c,'height':_0x8b2c82},0x64);}})),_0x1c5e86&&this[_0x325885(0x380)](_0x1c5e86[_0x325885(0x48f)][_0x325885(0x3b2)](_0x21a808=>{const _0x180e07=_0x325885;var _0x41a992;_0x21a808[_0x180e07(0x2e5)]===p[_0x180e07(0x24c)][_0x180e07(0x26b)]&&(_0x41a992=document[_0x180e07(0x2ff)](_0xb8bd17))!=null&&_0x41a992[_0x180e07(0x22d)](_0x180e07(0x3af))&&this['_chartHostProvider'][_0x180e07(0x397)](_0x349075);}));let _0x2f07ba=this[_0x325885(0x28e)]['getChartModel'](_0x349075);_0x2f07ba&&this[_0x325885(0x380)]((0x0,u[_0x325885(0x218)])([_0x2f07ba[_0x325885(0x25c)],_0x2f07ba['style$'],this[_0x325885(0x237)][_0x325885(0x1e9)]])[_0x325885(0x262)](([_0x4df51f,_0x3fc795,_0x3a5f8])=>{_0x22d595(_0x2f07ba['id'])(_0x2f07ba,_0x3663a9,_0x4df51f,_0x3a5f8);}));});})),this['disposeWithMe']((0x0,u[_0x3857b7(0x218)])([this[_0x3857b7(0x1f6)][_0x3857b7(0x270)]])[_0x3857b7(0x262)](([_0x2aa906])=>{const _0x4d0591=_0x3857b7;_0x2aa906[_0x4d0591(0x320)](_0x3f2e40=>{const _0x3fde38=_0x4d0591;var _0x7ad625;let {drawingId:_0xb34f55}=_0x3f2e40;((_0x7ad625=this[_0x3fde38(0x28e)][_0x3fde38(0x451)])==null?void 0x0:_0x7ad625['id'])===_0xb34f55&&this[_0x3fde38(0x28e)][_0x3fde38(0x406)](null),this[_0x3fde38(0x39a)](_0xb34f55),this[_0x3fde38(0x3e6)]['delete'](_0xb34f55),this[_0x3fde38(0x222)][_0x3fde38(0x2e0)](_0xb34f55),this[_0x3fde38(0x2f0)](_0xb34f55),this['_disposeChartRenderInstance'](_0xb34f55),this[_0x3fde38(0x19f)][_0x3fde38(0x2b6)](_0xb34f55),this[_0x3fde38(0x457)](_0xb34f55),this['_lastRenderInputMap'][_0x3fde38(0x303)](_0xb34f55),this[_0x3fde38(0x283)]['delete'](_0xb34f55);});}));}[_0x518ea5(0x430)](_0x529476,_0x5eb5a0){const _0x550f7=_0x518ea5;var _0x617ab6;_0x5eb5a0?this[_0x550f7(0x283)][_0x550f7(0x2f3)](_0x529476,!0x0):this[_0x550f7(0x283)][_0x550f7(0x303)](_0x529476),(_0x617ab6=this[_0x550f7(0x313)]['get'](_0x529476))==null||_0x617ab6['setElementEditMode'](_0x5eb5a0);}async[_0x518ea5(0x18e)](_0x308fdb){const _0x4deb02=_0x518ea5;let _0x365988=this[_0x4deb02(0x313)][_0x4deb02(0x35f)](_0x308fdb);if(_0x365988){let _0x2a79dd=this[_0x4deb02(0x283)][_0x4deb02(0x35f)](_0x308fdb)===!0x0;_0x2a79dd&&_0x365988['setElementEditMode'](!0x1);try{let _0x4eafdc=await _0x365988[_0x4deb02(0x395)]();if(_0x4eafdc)return _0x4eafdc;}finally{_0x2a79dd&&this[_0x4deb02(0x313)]['get'](_0x308fdb)===_0x365988&&_0x365988['setElementEditMode'](!0x0);}}let _0x18aa92=this[_0x4deb02(0x188)](_0x308fdb);return _0x18aa92?(0x0,c[_0x4deb02(0x199)])(_0x18aa92):void 0x0;}['on'](_0x5ade2f,_0x2b5a23,_0x4837a9){const _0x56826e=_0x518ea5;let _0x180fca=this['_chartEventHandlers'][_0x56826e(0x35f)](_0x5ade2f);_0x180fca||(_0x180fca=new Map(),this[_0x56826e(0x3e6)]['set'](_0x5ade2f,_0x180fca));let _0x13f338=_0x180fca[_0x56826e(0x35f)](_0x2b5a23);_0x13f338||(_0x13f338=new Set(),_0x180fca['set'](_0x2b5a23,_0x13f338)),_0x13f338[_0x56826e(0x33e)](_0x4837a9);let _0x73aa0d=this[_0x56826e(0x313)][_0x56826e(0x35f)](_0x5ade2f);return _0x73aa0d&&this[_0x56826e(0x3de)](_0x5ade2f,_0x73aa0d,_0x2b5a23,_0x4837a9),{'dispose':()=>{const _0x2d4601=_0x56826e;var _0x3b0257;(_0x3b0257=this['_chartEventHandlers']['get'](_0x5ade2f))==null||(_0x3b0257=_0x3b0257[_0x2d4601(0x35f)](_0x2b5a23))==null||_0x3b0257[_0x2d4601(0x303)](_0x4837a9),this[_0x2d4601(0x407)](_0x5ade2f,_0x2b5a23,_0x4837a9);}};}[_0x518ea5(0x188)](_0x22b6c9){const _0x1463a7=_0x518ea5;let _0x562f1c=this[_0x1463a7(0x367)][_0x1463a7(0x26a)](t[_0x1463a7(0x32f)]['UNIVER_SHEET']),_0x474bbe=_0x562f1c==null?void 0x0:_0x562f1c[_0x1463a7(0x253)](),_0x13fcdb=_0x562f1c==null?void 0x0:_0x562f1c[_0x1463a7(0x417)](),_0x58f8ba=_0x474bbe==null?void 0x0:_0x474bbe['getSheetId']();if(!(!_0x13fcdb||!_0x58f8ba))return this[_0x1463a7(0x19f)][_0x1463a7(0x1ad)]({'unitId':_0x13fcdb,'subUnitId':_0x58f8ba,'chartId':_0x22b6c9});}['_bindChartEventHandlers'](_0x38920c,_0x1246e2){const _0xebfeb5=_0x518ea5;let _0x3432e7=this['_chartEventHandlers']['get'](_0x38920c);_0x3432e7&&_0x3432e7[_0xebfeb5(0x320)]((_0x41b9e3,_0xfb6daa)=>{const _0x412901=_0xebfeb5;_0x41b9e3[_0x412901(0x320)](_0x1d4eca=>this[_0x412901(0x3de)](_0x38920c,_0x1246e2,_0xfb6daa,_0x1d4eca));});}[_0x518ea5(0x3de)](_0x1b8516,_0x3739db,_0x153e01,_0x6e16fa){const _0x2ee7b5=_0x518ea5;let _0x5dfe5c=this[_0x2ee7b5(0x2ce)]['get'](_0x1b8516);_0x5dfe5c||(_0x5dfe5c=new Map(),this[_0x2ee7b5(0x2ce)][_0x2ee7b5(0x2f3)](_0x1b8516,_0x5dfe5c));let _0x3a2fe9=_0x5dfe5c[_0x2ee7b5(0x35f)](_0x153e01);_0x3a2fe9||(_0x3a2fe9=new Map(),_0x5dfe5c[_0x2ee7b5(0x2f3)](_0x153e01,_0x3a2fe9)),!_0x3a2fe9[_0x2ee7b5(0x3e0)](_0x6e16fa)&&_0x3a2fe9[_0x2ee7b5(0x2f3)](_0x6e16fa,_0x3739db['on'](_0x153e01,_0x6e16fa));}[_0x518ea5(0x407)](_0x5234fe,_0x501208,_0x54e406){const _0x230683=_0x518ea5;var _0x3a2452,_0x21c4d2;let _0x53d136=(_0x3a2452=this[_0x230683(0x2ce)][_0x230683(0x35f)](_0x5234fe))==null?void 0x0:_0x3a2452['get'](_0x501208);_0x53d136==null||(_0x21c4d2=_0x53d136[_0x230683(0x35f)](_0x54e406))==null||_0x21c4d2[_0x230683(0x42f)](),_0x53d136==null||_0x53d136['delete'](_0x54e406);}['_disposeChartEventSubscriptions'](_0x2e881b){const _0x14bbd6=_0x518ea5;let _0x2c2047=this[_0x14bbd6(0x2ce)]['get'](_0x2e881b);_0x2c2047==null||_0x2c2047[_0x14bbd6(0x320)](_0x579986=>{const _0xb30d51=_0x14bbd6;_0x579986['forEach'](_0x391d80=>_0x391d80[_0xb30d51(0x42f)]()),_0x579986['clear']();}),this[_0x14bbd6(0x2ce)][_0x14bbd6(0x303)](_0x2e881b);}['createRuntimeChartStyle'](_0x109ff6,_0x44f301){return Me(_0x109ff6,_0x44f301,this['_addWatermark']);}[_0x518ea5(0x357)](_0x1a1091){const _0x47e127=_0x518ea5;return this[_0x47e127(0x356)](_0x1a1091)==null;}['_getChartRenderSkipReason'](_0x1824ee){const _0x47a4cf=_0x518ea5;var _0x5af9fb;let _0x29b339=this['_sheetCanvasFloatDomManagerService']['getFloatDomInfo'](_0x1824ee);if(!_0x29b339)return'missing-float-dom';let {subUnitId:_0x47211c}=_0x29b339,_0xfa4628=(_0x5af9fb=this[_0x47a4cf(0x367)]['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_SHEET']))==null?void 0x0:_0x5af9fb[_0x47a4cf(0x253)]();if(!_0xfa4628)return _0x47a4cf(0x19e);if(_0xfa4628[_0x47a4cf(0x29f)]()!==_0x47211c)return _0x47a4cf(0x42a);}async[_0x518ea5(0x37f)](_0xbb2096,_0x1ae2f2,_0x28fc88){const _0x38e45c=_0x518ea5;let _0x51f6a5=this[_0x38e45c(0x3e1)][_0x38e45c(0x34a)](c[_0x38e45c(0x37a)]);if(!_0x51f6a5||(this[_0x38e45c(0x150)]['set'](_0xbb2096,{'config':_0x1ae2f2,'style':_0x28fc88}),this[_0x38e45c(0x356)](_0xbb2096)))return;let _0x5d5f7c=this[_0x38e45c(0x3f9)](_0xbb2096);if(_0x5d5f7c===e[_0x38e45c(0x2d0)][_0x38e45c(0x2ec)])this[_0x38e45c(0x295)](_0xbb2096);else{var _0x33713e;this['_chartHostProvider'][_0x38e45c(0x36b)](_0xbb2096),((_0x33713e=this['_chartModelService'][_0x38e45c(0x451)])==null?void 0x0:_0x33713e['id'])===_0xbb2096&&this[_0x38e45c(0x48d)](_0xbb2096);}let _0x3b1860=_0x5d5f7c===e[_0x38e45c(0x2d0)][_0x38e45c(0x2ec)]?c[_0x38e45c(0x3c4)][_0x38e45c(0x2ec)]:c[_0x38e45c(0x3c4)][_0x38e45c(0x393)],_0x598b69=await this['_chartHostProvider'][_0x38e45c(0x489)](_0xbb2096,_0x3b1860);if(!_0x598b69)return;let _0x509414=this[_0x38e45c(0x403)](_0xbb2096,_0x3b1860,_0x51f6a5);_0x509414[_0x38e45c(0x464)](_0x598b69);try{await _0x509414['render']({'chartId':_0xbb2096,'config':_0x1ae2f2,'style':_0x28fc88});}catch(_0x2e1243){if(_0x5d5f7c!==e[_0x38e45c(0x2d0)][_0x38e45c(0x2ec)])throw _0x2e1243;}}async[_0x518ea5(0x278)](_0x7b2fe,_0x1a16d0,_0x588499){const _0x54a054=_0x518ea5;let _0x1c63eb=this[_0x54a054(0x1f6)][_0x54a054(0x252)](_0x7b2fe,_0x1a16d0),_0x577169=this['_drawingManagerService']['getDrawingOrder'](_0x7b2fe,_0x1a16d0),_0x5e9d9f=Object['values'](_0x1c63eb??{})[_0x54a054(0x31e)](_0x2878ac=>_0x2878ac[_0x54a054(0x354)]===t['DrawingTypeEnum']['DRAWING_CHART']&&_0x2878ac[_0x54a054(0x3ad)]!==!0x0);await Promise[_0x54a054(0x258)](_0x5e9d9f[_0x54a054(0x1a8)](async _0x538444=>{const _0x557c30=_0x54a054;let _0x107e7d=await this['_createPrintingChartObject'](_0x538444,_0x577169);_0x107e7d&&(_0x588499[_0x557c30(0x158)](_0x107e7d,p['DRAWING_OBJECT_LAYER_INDEX']),_0x538444[_0x557c30(0x189)]&&(0x0,f['insertGroupObject'])({'drawingId':_0x538444[_0x557c30(0x189)],'unitId':_0x7b2fe,'subUnitId':_0x1a16d0},_0x107e7d,_0x588499,this[_0x557c30(0x1f6)]));}));}async[_0x518ea5(0x213)](_0x419749,_0xc2b43a){const _0x3ba2a6=_0x518ea5;let _0x301472=this[_0x3ba2a6(0x28e)][_0x3ba2a6(0x36a)](_0x419749[_0x3ba2a6(0x2b9)]),_0x2b0a3a=this['_renderModelManager']['getRenderModel'](c[_0x3ba2a6(0x37a)]),_0x3634da=_0x419749[_0x3ba2a6(0x268)],_0x39368b=_0x301472==null?void 0x0:_0x301472[_0x3ba2a6(0x1a4)];if(!_0x301472||!_0x2b0a3a||!_0x3634da||!_0x39368b||_0x3634da[_0x3ba2a6(0x176)]==null||_0x3634da[_0x3ba2a6(0x2d7)]==null)return null;let _0x35db89=new je(_0x419749[_0x3ba2a6(0x2b9)],{'width':_0x3634da[_0x3ba2a6(0x176)],'height':_0x3634da[_0x3ba2a6(0x2d7)]}),_0x5ecfd8=_0x2b0a3a['createChartInstance'](c[_0x3ba2a6(0x3c4)][_0x3ba2a6(0x2ec)],this[_0x3ba2a6(0x446)]());_0x5ecfd8[_0x3ba2a6(0x464)](_0x35db89);let _0x5b311d;try{await _0x5ecfd8[_0x3ba2a6(0x37f)]({'chartId':_0x419749[_0x3ba2a6(0x2b9)],'config':_0x39368b,'style':this[_0x3ba2a6(0x3ac)](_0x301472,this[_0x3ba2a6(0x237)][_0x3ba2a6(0x435)]())});}catch(_0x37201a){console['error'](_0x3ba2a6(0x1ea),_0x37201a);}finally{_0x5b311d=_0x35db89[_0x3ba2a6(0x2ae)](),_0x5ecfd8['dispose'](),_0x35db89[_0x3ba2a6(0x42f)]();}let _0x471ebf=this[_0x3ba2a6(0x19f)]['getImage']({'unitId':_0x419749['unitId'],'subUnitId':_0x419749['subUnitId'],'chartId':_0x419749['drawingId']}),_0xc8e1f2=_0x5b311d??_0x471ebf;if(!_0xc8e1f2)return null;let _0x295da4=_0xc2b43a[_0x3ba2a6(0x48c)](_0x419749[_0x3ba2a6(0x2b9)]);return new xe((0x0,n['getDrawingShapeKeyByDrawingSearch'])(_0x419749),{..._0x3634da,...i['SHEET_CHART_RENDER_OBJECT_CONFIG'],...Oe(_0x35db89[_0x3ba2a6(0x481)]),'visible':!0x0,'zIndex':_0x295da4===-0x1?Math[_0x3ba2a6(0x399)](_0xc2b43a[_0x3ba2a6(0x348)]-0x1,0x0):_0x295da4},()=>_0xc8e1f2,void 0x0,_0x5b311d?()=>N(_0x5b311d):void 0x0);}[_0x518ea5(0x403)](_0x22bab8,_0x484cfc,_0x594812){const _0x41915d=_0x518ea5;let _0xcda05c=this[_0x41915d(0x313)][_0x41915d(0x35f)](_0x22bab8);if((_0xcda05c==null?void 0x0:_0xcda05c['mode'])===_0x484cfc)return _0xcda05c;_0xcda05c&&(this['_disposeChartEventSubscriptions'](_0x22bab8),_0xcda05c['dispose'](),this['_chartInstanceMap'][_0x41915d(0x303)](_0x22bab8));let _0x3270e7=_0x594812[_0x41915d(0x38b)](_0x484cfc,this[_0x41915d(0x446)]());return this['_chartInstanceMap'][_0x41915d(0x2f3)](_0x22bab8,_0x3270e7),_0x3270e7['setElementEditMode'](this[_0x41915d(0x283)]['get'](_0x22bab8)===!0x0),this[_0x41915d(0x298)](_0x22bab8,_0x3270e7),_0x3270e7;}[_0x518ea5(0x446)](){const _0x2ac8fb=_0x518ea5;return{'resolveHostStyle':({style:_0x185fe4})=>(0x0,c[_0x2ac8fb(0x266)])({'style':_0x185fe4,'getRenderColor':_0x58429a=>this['_chartThemeService'][_0x2ac8fb(0x37e)](_0x58429a)}),'resolveRenderBackgroundColor':({style:_0x3f2fd3})=>this[_0x2ac8fb(0x22c)][_0x2ac8fb(0x37e)]((0x0,c[_0x2ac8fb(0x2f7)])(_0x3f2fd3))};}[_0x518ea5(0x2e9)](){const _0x5b6db1=_0x518ea5;this[_0x5b6db1(0x2a3)]['forEach'](_0x18009a=>_0x18009a[_0x5b6db1(0x2ea)]()),this[_0x5b6db1(0x2a3)]['clear'](),this['_debounceHandleMap'][_0x5b6db1(0x320)](_0x334552=>_0x334552[_0x5b6db1(0x2ea)]()),this[_0x5b6db1(0x187)][_0x5b6db1(0x27a)]();}[_0x518ea5(0x42f)](){const _0x4ee378=_0x518ea5;Array[_0x4ee378(0x450)](this['_chartInstanceMap']['keys']())[_0x4ee378(0x320)](_0x1f2f8f=>this['_disposeChartRenderInstance'](_0x1f2f8f)),this[_0x4ee378(0x283)][_0x4ee378(0x27a)](),this['_cancelDebouncedCallbacks'](),this[_0x4ee378(0x150)][_0x4ee378(0x27a)](),this[_0x4ee378(0x41a)]=null,this['_lastActiveSheet']=null,super[_0x4ee378(0x42f)]();}};B=I([F(0x0,L),F(0x1,(0x0,t[_0x518ea5(0x293)])(i[_0x518ea5(0x310)])),F(0x2,(0x0,t['Inject'])(e['ChartModelService'])),F(0x3,n[_0x518ea5(0x14e)]),F(0x4,t['IUniverInstanceService']),F(0x5,(0x0,t[_0x518ea5(0x293)])(p[_0x518ea5(0x40b)])),F(0x6,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x486)])),F(0x7,R),F(0x8,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x15d)])),F(0x9,(0x0,t['Inject'])(c[_0x518ea5(0x1d5)])),F(0xa,(0x0,t['Inject'])(t[_0x518ea5(0x1c0)])),F(0xb,t[_0x518ea5(0x1ac)]),F(0xc,(0x0,t[_0x518ea5(0x293)])(we)),F(0xd,c[_0x518ea5(0x186)])],B);var Ne;const Pe={'axis':{...s['DEFAULT_CHART_AXIS_VALUES'],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':s[_0x518ea5(0x3e8)],'heatmap':s[_0x518ea5(0x461)],'indicatorLine':s['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'legend':s[_0x518ea5(0x480)],'lineAndArea':s[_0x518ea5(0x362)],'pareto':s[_0x518ea5(0x1e7)],'pie':{...s[_0x518ea5(0x37c)],'doughnutHole':0.5,'pieHole':0x0},'relation':{...s[_0x518ea5(0x1df)],'useValueAsSymbolSize':!0x0},'radar':s[_0x518ea5(0x1dc)],'series':{...s[_0x518ea5(0x2fe)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Ne=c[_0x518ea5(0x40c)][_0x518ea5(0x230)])==null?void 0x0:Ne[_0x518ea5(0x22e)])??!0x1}},'style':s[_0x518ea5(0x425)],'titles':s['DEFAULT_CHART_TITLE_VALUES'],'trendline':s['DEFAULT_CHART_TRENDLINE_VALUES'],'waterfall':{...s[_0x518ea5(0x289)],'useSubtotal':!0x0},'waterfallStyle':s[_0x518ea5(0x41f)],'wordCloud':s[_0x518ea5(0x335)]},Fe=_0x1fa0f9=>_0x1fa0f9[_0x518ea5(0x26a)](t['UniverInstanceType']['UNIVER_SHEET'])[_0x518ea5(0x417)](),Ie=_0x4218cc=>{const _0x35be56=_0x518ea5;var _0x45cb8e;return(_0x45cb8e=_0x4218cc[_0x35be56(0x26a)](t['UniverInstanceType'][_0x35be56(0x415)])['getActiveSheet']())==null?void 0x0:_0x45cb8e['getSheetId']();},Le=[c['ChartTypeBits'][_0x518ea5(0x360)],c[_0x518ea5(0x224)][_0x518ea5(0x1a1)],c[_0x518ea5(0x224)][_0x518ea5(0x260)],c['ChartTypeBits'][_0x518ea5(0x491)],c[_0x518ea5(0x224)][_0x518ea5(0x26f)],c[_0x518ea5(0x224)]['Relation'],c[_0x518ea5(0x224)][_0x518ea5(0x47e)],c[_0x518ea5(0x224)][_0x518ea5(0x3fa)],c[_0x518ea5(0x224)][_0x518ea5(0x42b)],c['ChartTypeBits'][_0x518ea5(0x1c2)],c['ChartTypeBits'][_0x518ea5(0x338)],c[_0x518ea5(0x224)][_0x518ea5(0x1d6)],c[_0x518ea5(0x224)][_0x518ea5(0x46a)],c[_0x518ea5(0x224)][_0x518ea5(0x3ca)],c[_0x518ea5(0x224)][_0x518ea5(0x1c4)]];function Re(){const _0x5a4d0b=_0x518ea5;let _0x44773e=(0x0,s[_0x5a4d0b(0x19a)])();return(0x0,_[_0x5a4d0b(0x220)])(s[_0x5a4d0b(0x2ee)],{'visible':Le[_0x5a4d0b(0x475)](_0x5d37fd=>!c[_0x5a4d0b(0x18a)][_0x5a4d0b(0x41c)](_0x44773e,_0x5d37fd))});}const ze=_0x2f8a21=>{const _0x3fc3a0=_0x518ea5;let _0x26f6bc=(0x0,o[_0x3fc3a0(0x1d7)])(R),_0x4f88c4=(0x0,o[_0x3fc3a0(0x1d7)])(t['LocaleService']),_0x505369=(0x0,e[_0x3fc3a0(0x194)])((0x0,o['useDependency'])(t[_0x3fc3a0(0x15d)])),_0x449d54=(0x0,m['useMemo'])(()=>(0x0,s[_0x3fc3a0(0x2f4)])(oe(ie[_0x3fc3a0(0x291)](),_0x505369)[_0x3fc3a0(0x1a8)](_0x428576=>({'id':_0x428576['id'],'label':_0x4f88c4['t'](_0x3fc3a0(0x168)+_0x428576[_0x3fc3a0(0x343)]),'pieSecondaryPlotType':_0x428576[_0x3fc3a0(0x44e)],'value':_0x428576[_0x3fc3a0(0x3ba)]}))),[_0x505369,_0x4f88c4]),_0x53e8b6=(0x0,o[_0x3fc3a0(0x254)])(_0x26f6bc['activeChartModel$'],_0x26f6bc[_0x3fc3a0(0x451)]),_0x182484=(0x0,o[_0x3fc3a0(0x254)])(_0x53e8b6==null?void 0x0:_0x53e8b6[_0x3fc3a0(0x3a7)][_0x3fc3a0(0x46b)],_0x53e8b6==null?void 0x0:_0x53e8b6[_0x3fc3a0(0x3a7)][_0x3fc3a0(0x1b9)]()),_0xa86636=_0x182484&&!Array['isArray'](_0x182484)&&_0x182484[_0x3fc3a0(0x166)]?c[_0x3fc3a0(0x27b)][_0x3fc3a0(0x1a6)]:c[_0x3fc3a0(0x27b)][_0x3fc3a0(0x3c2)];return(0x0,_['jsxs'])(_0x3fc3a0(0x21e),{'className':_0x3fc3a0(0x3a4),'children':[(0x0,_[_0x3fc3a0(0x220)])(s['ChartTypeField'],{'options':_0x449d54}),(0x0,_['jsx'])(s[_0x3fc3a0(0x34d)],{}),(0x0,_[_0x3fc3a0(0x220)])(s['ChartThemeField'],{}),(0x0,_[_0x3fc3a0(0x220)])(Re,{}),(0x0,_[_0x3fc3a0(0x220)])(s['ChartStackField'],{}),(0x0,_[_0x3fc3a0(0x220)])(Be,{'dataRange':_0x182484}),(0x0,_[_0x3fc3a0(0x220)])(s[_0x3fc3a0(0x3da)],{'categoryToggleLabel':_0x4f88c4['t']('sheets-chart-ui.common.useAsCategoryLabels',_0xa86636===c[_0x3fc3a0(0x27b)][_0x3fc3a0(0x1a6)]?_0xa86636+'\x20'+(((_0x182484==null?void 0x0:_0x182484[_0x3fc3a0(0x3b9)][_0x3fc3a0(0x39f)][_0x3fc3a0(0x3ce)])??0x0)+0x1):_0xa86636+'\x20'+(0x0,t[_0x3fc3a0(0x255)])((_0x182484==null?void 0x0:_0x182484[_0x3fc3a0(0x3b9)][_0x3fc3a0(0x39f)]['startColumn'])??0x0)),'orientationControl':(0x0,_[_0x3fc3a0(0x220)])(h['Button'],{'size':_0x3fc3a0(0x2a7),'onClick':()=>_0x26f6bc[_0x3fc3a0(0x321)](_0xa86636===c[_0x3fc3a0(0x27b)][_0x3fc3a0(0x1a6)]?c[_0x3fc3a0(0x27b)][_0x3fc3a0(0x3c2)]:c[_0x3fc3a0(0x27b)][_0x3fc3a0(0x1a6)]),'children':_0x4f88c4['t'](_0x3fc3a0(0x1b1))})}),(0x0,_[_0x3fc3a0(0x220)])(s['ChartTypeSpecificDataSection'],{}),(0x0,_[_0x3fc3a0(0x220)])(s[_0x3fc3a0(0x3ab)],{'defaultValues':_0x2f8a21['defaultValues'][_0x3fc3a0(0x294)]})]});};function Be(_0x182872){const _0x267c2b=_0x518ea5;let {dataRange:_0x2657b1}=_0x182872,_0x161ceb=(0x0,o[_0x267c2b(0x1d7)])(R),_0x8fc0fe=(0x0,o[_0x267c2b(0x1d7)])(t['LocaleService']),_0x120ccc=(0x0,o[_0x267c2b(0x1d7)])(t['IUniverInstanceService']),[_0x576a76,_0x34a615]=(0x0,m[_0x267c2b(0x226)])(!0x1),[_0x32b64c,_0x4c2c58]=(0x0,m['useState'])(!0x1),_0x2e8307=Fe(_0x120ccc),_0x5903c8=Ie(_0x120ccc);(0x0,m[_0x267c2b(0x352)])(()=>{const _0x1c7202=_0x267c2b;_0x161ceb[_0x1c7202(0x1bb)](_0x576a76);},[_0x576a76,_0x161ceb]);let _0x481b21=(0x0,m[_0x267c2b(0x3b4)])(()=>(0x0,t[_0x267c2b(0x2fb)])(async _0x3ad716=>{const _0x1c3610=_0x267c2b;var _0x43d7e8;if(te(_0x2657b1,_0x120ccc)===_0x3ad716)return;let _0x300f01=_0x3ad716[_0x1c3610(0x2e8)](',')[_0x1c3610(0x31e)](Boolean)[_0x1c3610(0x1a8)](d[_0x1c3610(0x24b)])[0x0];if(!_0x300f01)return;let {unitId:_0x100780,sheetName:_0x534235,range:_0x171bf6}=_0x300f01,_0x206903=_0x100780||_0x2e8307,_0x1ac581=((_0x43d7e8=_0x120ccc[_0x1c3610(0x256)](_0x206903)[_0x1c3610(0x210)](_0x534235))==null?void 0x0:_0x43d7e8[_0x1c3610(0x29f)]())||(_0x2657b1==null?void 0x0:_0x2657b1[_0x1c3610(0x3b9)]['subUnitId']);_0x161ceb[_0x1c3610(0x46d)]({'rangeInfo':{'range':_0x171bf6,'unitId':_0x206903,'subUnitId':_0x1ac581},'isRowDirection':!0x0});},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[_0x2657b1,_0x161ceb,_0x2e8307,_0x120ccc]);return(0x0,m[_0x267c2b(0x352)])(()=>()=>_0x481b21['cancel'](),[_0x481b21]),(0x0,_[_0x267c2b(0x220)])('div',{'className':_0x267c2b(0x28c),'children':(0x0,_['jsxs'])('div',{'children':[(0x0,_[_0x267c2b(0x220)])(s[_0x267c2b(0x2fa)],{'title':_0x8fc0fe['t'](_0x267c2b(0x1a3))}),(0x0,_[_0x267c2b(0x220)])(g[_0x267c2b(0x490)],{'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'maxRangeCount':0x1,'unitId':_0x2e8307,'subUnitId':_0x5903c8,'initialValue':_0x2657b1?te(_0x2657b1,_0x120ccc):'','onChange':(_0x5877ce,_0x44837e)=>_0x481b21(_0x44837e),'onFocusChange':_0x18182a=>{_0x32b64c||_0x34a615(_0x18182a);},'onRangeSelectorDialogVisibleChange':_0x5b0e45=>{_0x4c2c58(_0x5b0e45),_0x34a615(_0x5b0e45);}})]})});}function V(_0x4ad460){const _0x4bafaf=_0x518ea5;return(0x0,_[_0x4bafaf(0x23b)])(s[_0x4bafaf(0x1ca)],{'id':_0x4ad460['id'],'children':[(0x0,_[_0x4bafaf(0x220)])(s[_0x4bafaf(0x41b)],{'children':_0x4ad460['label']}),(0x0,_['jsx'])(s[_0x4bafaf(0x30d)],{'children':_0x4ad460['children']})]});}const Ve=_0x296369=>{const _0x5446d6=_0x518ea5;let _0x4025ed=(0x0,o['useDependency'])(t[_0x5446d6(0x486)]),_0x1771ab=(0x0,o[_0x5446d6(0x1d7)])(R),_0x1bf371=(0x0,o[_0x5446d6(0x254)])(_0x1771ab['activeEditChart$'],null),_0x2fc53b=(0x0,o['useObservable'])(_0x1771ab[_0x5446d6(0x17e)],null),_0x293be4=(_0x2fc53b==null?void 0x0:_0x2fc53b['chartId'])===_0x1bf371?_0x2fc53b[_0x5446d6(0x463)]:null,_0x424665=(0x0,s[_0x5446d6(0x19a)])(),_0x545ede=(0x0,s[_0x5446d6(0x34f)])(),[_0x450749,_0x5d9b14]=(0x0,m[_0x5446d6(0x226)])(null);(0x0,m[_0x5446d6(0x352)])(()=>{const _0x40348a=_0x5446d6;_0x293be4!=null&&_0x293be4[_0x40348a(0x2db)]&&_0x5d9b14(_0x293be4[_0x40348a(0x2db)]);},[_0x293be4]);let _0x2cc8a3=c[_0x5446d6(0x18a)][_0x5446d6(0x41c)](_0x424665,c[_0x5446d6(0x224)][_0x5446d6(0x18d)]),_0x3ccaff=_0x424665===c[_0x5446d6(0x224)][_0x5446d6(0x1a1)],_0x37015f=_0x424665===c[_0x5446d6(0x224)][_0x5446d6(0x260)],_0x28666f=_0x424665===c[_0x5446d6(0x224)][_0x5446d6(0x26f)],_0x2f9293=c[_0x5446d6(0x18a)][_0x5446d6(0x41c)](_0x424665,c[_0x5446d6(0x224)]['Bubble']),_0x13901c=_0x424665===c[_0x5446d6(0x224)][_0x5446d6(0x390)],_0x178457=_0x424665===c[_0x5446d6(0x224)]['Waterfall'],_0x505ecf=_0x424665===c['ChartTypeBits'][_0x5446d6(0x476)],_0x13c17f=_0x424665===c['ChartTypeBits'][_0x5446d6(0x3fa)],_0x104667,_0xefd9d;switch(_0x424665){case c['ChartTypeBits'][_0x5446d6(0x1c2)]:_0x104667=s[_0x5446d6(0x3a2)][_0x5446d6(0x1c2)],_0xefd9d=_0x4025ed['t']('sheets-chart-ui.section.candlestick');break;case c[_0x5446d6(0x224)][_0x5446d6(0x338)]:_0x104667=s[_0x5446d6(0x3a2)]['Histogram'],_0xefd9d=_0x4025ed['t'](_0x5446d6(0x2a9));break;case c[_0x5446d6(0x224)][_0x5446d6(0x1d6)]:_0x104667=s[_0x5446d6(0x3a2)]['Treemap'],_0xefd9d=_0x4025ed['t'](_0x5446d6(0x381));break;case c[_0x5446d6(0x224)][_0x5446d6(0x46a)]:_0x104667=s[_0x5446d6(0x3a2)][_0x5446d6(0x46a)],_0xefd9d=_0x4025ed['t'](_0x5446d6(0x437));break;case c[_0x5446d6(0x224)][_0x5446d6(0x3ca)]:_0x104667=s[_0x5446d6(0x3a2)][_0x5446d6(0x3ca)],_0xefd9d=_0x4025ed['t'](_0x5446d6(0x161));break;case c['ChartTypeBits'][_0x5446d6(0x1c4)]:_0x104667=s[_0x5446d6(0x3a2)][_0x5446d6(0x1c4)],_0xefd9d=_0x4025ed['t'](_0x5446d6(0x242));break;}let _0x324a67=(0x0,s[_0x5446d6(0x159)])(_0x424665,s[_0x5446d6(0x40e)][_0x5446d6(0x3d8)])&&!_0x2f9293&&!_0x505ecf;return(0x0,_['jsxs'])(s[_0x5446d6(0x1da)],{'value':_0x450749,'onChange':_0x5d9b14,'children':[(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x387)],'label':_0x4025ed['t'](_0x5446d6(0x180)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x277)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x481)],'showBodyFont':!0x0})}),(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)]['ChartAndAxisTitles'],'label':_0x4025ed['t']('sheets-chart-ui.common.chartAndAxisTitles'),'children':(0x0,_['jsx'])(s['ChartTitlesSection'],{'commitMode':'blur','defaultValues':_0x296369[_0x5446d6(0x235)]['titles'],'selectedTitleKey':_0x293be4==null?void 0x0:_0x293be4[_0x5446d6(0x208)]})}),_0x324a67&&(0x0,_['jsx'])(V,{'id':s[_0x5446d6(0x3a2)]['Series'],'label':_0x4025ed['t'](_0x5446d6(0x359)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x1ff)],{'defaultValues':_0x296369[_0x5446d6(0x235)]['series'],'NumberFormatField':s[_0x5446d6(0x33b)],'selectedSeriesId':_0x293be4==null?void 0x0:_0x293be4[_0x5446d6(0x2c7)]})}),_0x178457&&(0x0,_['jsx'])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x452)],'label':_0x4025ed['t'](_0x5446d6(0x273)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x462)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x1a5)],'getDefaultBucketName':({seriesName:_0x3dc7ba,target:_0x5bdaef})=>_0x5bdaef===c[_0x5446d6(0x1e3)][_0x5446d6(0x2a1)]?_0x4025ed['t'](_0x5446d6(0x174)):_0x3dc7ba?_0x3dc7ba+'-('+_0x4025ed['t'](_0x5bdaef===c['ChartWaterfallStyleTarget']['Positive']?_0x5446d6(0x2e4):_0x5446d6(0x3c7))+')':'','NumberFormatField':s[_0x5446d6(0x33b)],'selectedSeriesId':_0x293be4==null?void 0x0:_0x293be4[_0x5446d6(0x2c7)]})}),_0x505ecf&&(0x0,_['jsxs'])(_[_0x5446d6(0x314)],{'children':[(0x0,_['jsx'])(V,{'id':s['ChartEditPanelSection'][_0x5446d6(0x2a6)],'label':_0x4025ed['t'](_0x5446d6(0x470)),'children':(0x0,_[_0x5446d6(0x220)])(s['ChartParetoSeriesSection'],{'defaultValues':_0x296369['defaultValues'][_0x5446d6(0x3bf)],'NumberFormatField':s['ChartNumberFormatAtom'],'showDataPointEditor':!0x0,'target':_0x5446d6(0x2ab)})}),(0x0,_[_0x5446d6(0x220)])(V,{'id':s['ChartEditPanelSection'][_0x5446d6(0x45f)],'label':_0x4025ed['t'](_0x5446d6(0x243)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x171)],{'defaultValues':_0x296369[_0x5446d6(0x235)]['pareto'],'NumberFormatField':s[_0x5446d6(0x33b)],'showDataPointEditor':!0x1,'target':_0x5446d6(0x2b8)})})]}),_0x2cc8a3&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x1e4)],'label':_0x4025ed['t'](_0x5446d6(0x2ac)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x38a)],{'defaultValues':_0x296369[_0x5446d6(0x235)]['pie'],'NumberFormatField':s[_0x5446d6(0x33b)]})}),_0x37015f&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x260)],'label':_0x4025ed['t'](_0x5446d6(0x325)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x447)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x1f2)]})}),_0x3ccaff&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x1a1)],'label':_0x4025ed['t'](_0x5446d6(0x471)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x284)],{'defaultValues':_0x296369['defaultValues'][_0x5446d6(0x20f)]})}),_0x28666f&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x26f)],'label':_0x4025ed['t'](_0x5446d6(0x3fd)),'children':(0x0,_['jsx'])(s[_0x5446d6(0x1f4)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x282)],'gapControl':_0x5446d6(0x1dd)})}),_0x13c17f&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)]['Heatmap'],'label':_0x4025ed['t']('sheets-chart-ui.common.heatmap'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x152)],{'defaultValues':_0x296369['defaultValues'][_0x5446d6(0x472)]})}),_0x13901c&&(0x0,_['jsx'])(V,{'id':s['ChartEditPanelSection'][_0x5446d6(0x390)],'label':_0x4025ed['t']('sheets-chart-ui.section.relation'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x309)],{'defaultValues':_0x296369['defaultValues'][_0x5446d6(0x2eb)]})}),(0x0,s[_0x5446d6(0x223)])(_0x424665)&&(0x0,_['jsx'])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x46c)],'label':_0x4025ed['t'](_0x5446d6(0x2c2)),'children':(0x0,_['jsx'])(s[_0x5446d6(0x443)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x196)],'lineStyleControl':'segmented'})}),(0x0,s[_0x5446d6(0x159)])(_0x424665,s[_0x5446d6(0x40e)][_0x5446d6(0x157)])&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x157)],'label':_0x4025ed['t']('sheets-chart-ui.common.legend'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x349)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x155)]})}),(0x0,s[_0x5446d6(0x159)])(_0x424665,s['ChartEditorCapability'][_0x5446d6(0x3db)])&&(0x0,_[_0x5446d6(0x23b)])(_[_0x5446d6(0x314)],{'children':[(0x0,_['jsx'])(V,{'id':s['ChartEditPanelSection'][_0x5446d6(0x438)],'label':_0x4025ed['t']('sheets-chart-ui.common.horizontalAxis'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x378)],{'axis':'x','defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x274)],'NumberFormatField':s[_0x5446d6(0x33b)]})}),(0x0,_['jsx'])(V,{'id':s['ChartEditPanelSection'][_0x5446d6(0x332)],'label':_0x4025ed['t']('sheets-chart-ui.common.verticalAxis'),'children':(0x0,_['jsx'])(s['ChartAxisSection'],{'axis':'y','defaultValues':_0x296369['defaultValues'][_0x5446d6(0x274)],'NumberFormatField':s[_0x5446d6(0x33b)]})}),_0x545ede&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x212)],'label':_0x4025ed['t']('sheets-chart-ui.common.rightVerticalAxis'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x378)],{'axis':_0x5446d6(0x281),'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x274)],'NumberFormatField':s[_0x5446d6(0x33b)]})}),(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)]['GridlinesAndTicks'],'label':_0x4025ed['t'](_0x5446d6(0x392)),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x432)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x274)]})})]}),(0x0,s[_0x5446d6(0x159)])(_0x424665,s[_0x5446d6(0x40e)][_0x5446d6(0x2e6)])&&(0x0,_['jsx'])(V,{'id':s[_0x5446d6(0x3a2)]['IndicatorLine'],'label':_0x4025ed['t']('sheets-chart-ui.section.indicatorLine'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x48a)],{'defaultValues':_0x296369['defaultValues'][_0x5446d6(0x16a)]})}),(0x0,c[_0x5446d6(0x1f3)])(_0x424665)&&(0x0,_[_0x5446d6(0x220)])(V,{'id':s[_0x5446d6(0x3a2)][_0x5446d6(0x246)],'label':_0x4025ed['t']('sheets-chart-ui.common.trendline'),'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x1fa)],{'defaultValues':_0x296369[_0x5446d6(0x235)][_0x5446d6(0x1aa)]})}),_0x104667&&_0xefd9d&&(0x0,_[_0x5446d6(0x220)])(V,{'id':_0x104667,'label':_0xefd9d,'children':(0x0,_[_0x5446d6(0x220)])(s[_0x5446d6(0x3cd)],{})})]});};function He(_0x336c40){const _0x1995c8=_0x518ea5;let {className:_0x36e5d4}=_0x336c40,[_0x220172,_0x48ea31]=(0x0,m[_0x1995c8(0x226)])(s[_0x1995c8(0x287)][_0x1995c8(0x2f1)]),_0x41f7ec=(0x0,o[_0x1995c8(0x1d7)])(t['Injector']),_0x4d205d=(0x0,o[_0x1995c8(0x1d7)])(t[_0x1995c8(0x486)]),_0x4e97b6=(0x0,o[_0x1995c8(0x1d7)])(R),_0x490029=(0x0,o['useObservable'])(_0x4e97b6[_0x1995c8(0x2cd)],null),_0x36842d=(0x0,o[_0x1995c8(0x254)])(_0x4e97b6[_0x1995c8(0x31b)],null),_0x4a4fb8=(0x0,o[_0x1995c8(0x254)])(_0x4e97b6[_0x1995c8(0x17e)],null),_0x1a0777=(0x0,m['useMemo'])(()=>{const _0x2c34a6=_0x1995c8;var _0x100c5f;if(!_0x36842d)return null;let _0x2812d7=_0x36842d[_0x2c34a6(0x3a7)][_0x2c34a6(0x1b9)](),_0x45847e=Array[_0x2c34a6(0x434)](_0x2812d7)?(_0x100c5f=_0x2812d7[0x0])==null?void 0x0:_0x100c5f[_0x2c34a6(0x39f)]:_0x2812d7['rangeInfo'];return _0x45847e?new s['ChartHostAdapter'](_0x36842d,new e['SheetChartConfigAdapter']({'unitId':_0x45847e[_0x2c34a6(0x205)],'subUnitId':_0x45847e[_0x2c34a6(0x409)],'chartId':_0x36842d['id'],'injector':_0x41f7ec})):null;},[_0x36842d,_0x41f7ec]);return(0x0,m[_0x1995c8(0x352)])(()=>{const _0x4f3a4f=_0x1995c8;var _0x15c850,_0x32f531;(_0x4a4fb8==null?void 0x0:_0x4a4fb8['chartId'])===_0x490029&&(((_0x15c850=_0x4a4fb8[_0x4f3a4f(0x463)])==null?void 0x0:_0x15c850[_0x4f3a4f(0x233)])===s['ChartEditPanelTab']['Style']&&_0x48ea31(s[_0x4f3a4f(0x287)][_0x4f3a4f(0x16b)]),((_0x32f531=_0x4a4fb8['route'])==null?void 0x0:_0x32f531['tab'])===s[_0x4f3a4f(0x287)]['Data']&&_0x48ea31(s[_0x4f3a4f(0x287)]['Data']));},[_0x490029,_0x4a4fb8]),_0x1a0777?(0x0,_[_0x1995c8(0x220)])(s[_0x1995c8(0x1bd)],{'chartUIService':_0x4e97b6,'hostAdapter':_0x1a0777,'children':(0x0,_[_0x1995c8(0x23b)])(_0x1995c8(0x21e),{'className':_0x1995c8(0x32a)+(_0x220172===s[_0x1995c8(0x287)][_0x1995c8(0x16b)]?_0x1995c8(0x3d5):_0x1995c8(0x2a8))+_0x1995c8(0x2bb)+(_0x36e5d4??'')+_0x1995c8(0x35e),'children':[(0x0,_[_0x1995c8(0x220)])(s[_0x1995c8(0x248)],{'ariaLabel':_0x4d205d['t']('sheets-chart-ui.common.editChart'),'className':'univer-shrink-0','items':[{'label':_0x4d205d['t'](_0x1995c8(0x44a)),'panelId':We,'value':s[_0x1995c8(0x287)][_0x1995c8(0x2f1)]},{'label':_0x4d205d['t'](_0x1995c8(0x474)),'panelId':Ge,'value':s[_0x1995c8(0x287)][_0x1995c8(0x16b)]}],'value':_0x220172,'onChange':_0x48ea31}),_0x220172===s[_0x1995c8(0x287)][_0x1995c8(0x2f1)]?(0x0,_[_0x1995c8(0x220)])(s[_0x1995c8(0x34c)],{'id':We,'label':_0x4d205d['t']('sheets-chart-ui.common.setup'),'children':(0x0,_[_0x1995c8(0x220)])(ze,{'defaultValues':Pe})}):(0x0,_[_0x1995c8(0x220)])(s[_0x1995c8(0x34c)],{'id':Ge,'className':_0x1995c8(0x3d1),'label':_0x4d205d['t'](_0x1995c8(0x474)),'children':(0x0,_[_0x1995c8(0x220)])(Ve,{'defaultValues':Pe})})]})}):null;}const Ue=_0x518ea5(0x2c5),We=_0x518ea5(0x271),Ge=_0x518ea5(0x3cb);function Ke(_0x31daea){const _0x6ee9c3=_0x518ea5;if(_0x31daea[_0x6ee9c3(0x348)]!==0x1)return!0x1;let _0x3ab17b=_0x31daea[0x0];return _0x3ab17b['drawingType']===t['DrawingTypeEnum']['DRAWING_CHART']&&!_0x3ab17b[_0x6ee9c3(0x189)];}let H=class extends t[_0x518ea5(0x365)]{constructor(_0x34bd9a,_0x43de9e,_0x1c8198,_0x53dbcf,_0x309f17,_0x336c29,_0x29574d,_0x9fe294,_0x476b13,_0x2d42dc,_0x4d9809,_0x3c6237,_0x426514,_0x587430){const _0x100892=_0x518ea5;var _0x4e8340;super(),this['_drawingManagerService']=_0x34bd9a,this['_univerInstanceService']=_0x43de9e,this['_chartModelService']=_0x1c8198,this['_chartRenderService']=_0x53dbcf,this[_0x100892(0x1c6)]=_0x309f17,this[_0x100892(0x31a)]=_0x336c29,this[_0x100892(0x318)]=_0x29574d,this['_sheetCanvasFloatDomManagerService']=_0x9fe294,this[_0x100892(0x385)]=_0x476b13,this[_0x100892(0x1ef)]=_0x2d42dc,this['_sheetsChartUIService']=_0x4d9809,this['_contextService']=_0x3c6237,this[_0x100892(0x237)]=_0x426514,M(this,_0x100892(0x3ed),null),M(this,'_isChartElementEditEnabled',void 0x0),this[_0x100892(0x279)]=((_0x4e8340=_0x587430[_0x100892(0x487)]('sheets-chart-ui.config'))==null?void 0x0:_0x4e8340[_0x100892(0x35d)])===!0x0,this[_0x100892(0x40d)](),this[_0x100892(0x380)](this['_univerInstanceService'][_0x100892(0x241)](t[_0x100892(0x32f)][_0x100892(0x415)])['subscribe'](_0x3b5876=>{const _0x59534a=_0x100892;var _0x5e9627;_0x3b5876||(_0x5e9627=this[_0x59534a(0x3ed)])==null||_0x5e9627[_0x59534a(0x42f)]();})),this[_0x100892(0x380)]((0x0,t[_0x100892(0x1f7)])(this[_0x100892(0x1c6)]['onDoubleClick$']['subscribe'](async({drawing:_0x5d5d46})=>{await this['_handleDrawingDoubleClick'](_0x5d5d46);})));}[_0x518ea5(0x1a9)](){const _0x14369e=_0x518ea5;this[_0x14369e(0x3ed)]=this[_0x14369e(0x31a)][_0x14369e(0x336)]({'id':Ue,'header':{'title':this['_localeService']['t'](_0x14369e(0x329))},'width':0x154,'children':{'label':Ue},'onClose':()=>{const _0x539368=_0x14369e;this[_0x539368(0x401)](),this[_0x539368(0x28e)][_0x539368(0x406)](null),this['_drawingManagerService'][_0x539368(0x2d3)](null),this[_0x539368(0x1e1)][_0x539368(0x3b1)](t[_0x539368(0x433)],!0x1),this[_0x539368(0x3ed)]=null;}});}[_0x518ea5(0x3d2)](){const _0x5bb43d=_0x518ea5;var _0x16feb6;this[_0x5bb43d(0x401)](),this[_0x5bb43d(0x28e)][_0x5bb43d(0x406)](null),(_0x16feb6=this[_0x5bb43d(0x3ed)])==null||_0x16feb6['dispose']();}['initPanel'](){const _0x15072b=_0x518ea5;let _0x5cf6b0=this[_0x15072b(0x367)][_0x15072b(0x26a)](t['UniverInstanceType']['UNIVER_SHEET']);this[_0x15072b(0x380)](this[_0x15072b(0x31a)][_0x15072b(0x38e)][_0x15072b(0x262)](_0x132af6=>{const _0x52d046=_0x15072b;_0x132af6['id']===_0x52d046(0x2c5)&&(_0x132af6[_0x52d046(0x3d0)]||this[_0x52d046(0x31a)][_0x52d046(0x38e)][_0x52d046(0x40f)]({'visible':!0x1}));})),this[_0x15072b(0x380)](this[_0x15072b(0x28e)][_0x15072b(0x31b)][_0x15072b(0x262)](_0xfb2063=>{const _0x5b366a=_0x15072b;!_0xfb2063&&this[_0x5b366a(0x2c4)][_0x5b366a(0x173)]&&this[_0x5b366a(0x3d2)]();})),this[_0x15072b(0x380)](this[_0x15072b(0x1ef)][_0x15072b(0x400)](_0x3da8d2=>{const _0x289f1b=_0x15072b;if(_0x3da8d2['id']===S['id']){let _0x36827b=_0x3da8d2['params'];this[_0x289f1b(0x238)](_0x36827b['drawingId'],_0x36827b[_0x289f1b(0x463)]);}if(_0x3da8d2['id']===x['id']&&this[_0x289f1b(0x3d2)](),_0x3da8d2['id']===e[_0x289f1b(0x20b)]['id']){var _0xf50a48;_0x3da8d2[_0x289f1b(0x412)][_0x289f1b(0x330)]===((_0xf50a48=this[_0x289f1b(0x28e)][_0x289f1b(0x451)])==null?void 0x0:_0xf50a48['id'])&&this['hidePanel'](),this['_contextService']['getContextValue'](t['FOCUSING_COMMON_DRAWINGS'])&&(this[_0x289f1b(0x1e1)][_0x289f1b(0x3b1)](t[_0x289f1b(0x433)],!0x1),this[_0x289f1b(0x1f6)]['focusDrawing'](null));}})),this[_0x15072b(0x380)](this['_sheetCanvasFloatDomManagerService'][_0x15072b(0x270)][_0x15072b(0x262)](({id:_0x49a829})=>{const _0x39496e=_0x15072b;_0x49a829===this[_0x39496e(0x2c4)][_0x39496e(0x173)]&&this[_0x39496e(0x3d2)]();})),this[_0x15072b(0x380)](this['_sheetCanvasFloatDomManagerService'][_0x15072b(0x47d)]['subscribe'](({id:_0x32c7c3})=>{const _0x42ce57=_0x15072b;_0x32c7c3===this[_0x42ce57(0x2c4)][_0x42ce57(0x173)]&&(this[_0x42ce57(0x2c4)][_0x42ce57(0x1e5)](null),this[_0x42ce57(0x2c4)][_0x42ce57(0x39e)](),this[_0x42ce57(0x2da)][_0x42ce57(0x430)](_0x32c7c3,!0x1),this[_0x42ce57(0x228)](_0x32c7c3)&&this[_0x42ce57(0x2da)][_0x42ce57(0x430)](_0x32c7c3,!0x0));})),this[_0x15072b(0x380)](this[_0x15072b(0x1f6)][_0x15072b(0x2d6)][_0x15072b(0x262)](_0x2ef605=>{const _0x5d9c2b=_0x15072b;let _0x406f5f=_0x2ef605[0x0];if(!this[_0x5d9c2b(0x2c4)][_0x5d9c2b(0x3c6)]){if(Ke(_0x2ef605)){var _0x145cbc;let _0x1a357b=this[_0x5d9c2b(0x28e)][_0x5d9c2b(0x36a)](_0x406f5f[_0x5d9c2b(0x2b9)]);_0x1a357b&&((_0x145cbc=this[_0x5d9c2b(0x28e)][_0x5d9c2b(0x451)])==null?void 0x0:_0x145cbc['id'])!==_0x1a357b['id']&&this[_0x5d9c2b(0x28e)][_0x5d9c2b(0x406)](_0x1a357b);return;}this[_0x5d9c2b(0x28e)]['activeChartModel']&&this['_chartModelService'][_0x5d9c2b(0x406)](null),!_0x406f5f&&!this[_0x5d9c2b(0x2c4)][_0x5d9c2b(0x3c6)]&&this['hidePanel']();}})),_0x5cf6b0&&(this[_0x15072b(0x380)](_0x5cf6b0[_0x15072b(0x43c)][_0x15072b(0x262)](()=>{const _0x25ac98=_0x15072b;this[_0x25ac98(0x3d2)]();})),this[_0x15072b(0x380)](_0x5cf6b0['activeSheet$'][_0x15072b(0x262)](()=>{this['hidePanel']();})));}async[_0x518ea5(0x47b)](_0x3a0503){const _0xb68e33=_0x518ea5;this[_0xb68e33(0x2c4)][_0xb68e33(0x173)]||_0x3a0503[_0xb68e33(0x354)]===t[_0xb68e33(0x421)][_0xb68e33(0x18c)]&&await this[_0xb68e33(0x449)](_0x3a0503[_0xb68e33(0x205)],_0x3a0503['subUnitId'],_0x3a0503['drawingId']);}async['_openEditPanelByDoubleClick'](_0xcdebfd,_0xfb45c3,_0x30c036){const _0x3eecfa=_0x518ea5;let _0x2f7a91=this['_chartModelService'][_0x3eecfa(0x36a)](_0x30c036);_0x2f7a91&&(this[_0x3eecfa(0x28e)][_0x3eecfa(0x406)](_0x2f7a91),await this['_commandService'][_0x3eecfa(0x1fe)](S['id'],{'unitId':_0xcdebfd,'subUnitId':_0xfb45c3,'drawingId':_0x30c036}));}[_0x518ea5(0x238)](_0x360b2a,_0x252f7d){const _0x5ebb87=_0x518ea5;let _0x3e95cc=this[_0x5ebb87(0x28e)][_0x5ebb87(0x36a)](_0x360b2a);_0x3e95cc&&(this[_0x5ebb87(0x28e)][_0x5ebb87(0x406)](_0x3e95cc),this['_openPanel'](),this[_0x5ebb87(0x1de)](_0x360b2a,_0x252f7d??null));}['_activateEditPanelState'](_0x2ea42d,_0x34d54a){const _0x21e2c5=_0x518ea5;let _0xee305b=this[_0x21e2c5(0x2c4)]['activeEditChart'];_0xee305b&&_0xee305b!==_0x2ea42d&&(this[_0x21e2c5(0x2da)][_0x21e2c5(0x430)](_0xee305b,!0x1),this['_sheetsChartUIService']['setSelectedElement'](null)),this[_0x21e2c5(0x2c4)]['setActiveEditChart'](_0x2ea42d),this[_0x21e2c5(0x2c4)][_0x21e2c5(0x424)](_0x2ea42d,_0x34d54a),this[_0x21e2c5(0x2da)][_0x21e2c5(0x430)](_0x2ea42d,this[_0x21e2c5(0x228)](_0x2ea42d));}[_0x518ea5(0x401)](){const _0x3df70a=_0x518ea5;let _0x19aa01=this[_0x3df70a(0x2c4)]['activeEditChart'];_0x19aa01&&this['_chartRenderService']['setElementEditMode'](_0x19aa01,!0x1),this[_0x3df70a(0x2c4)][_0x3df70a(0x1d1)](null),this['_sheetsChartUIService'][_0x3df70a(0x1e5)](null),this[_0x3df70a(0x2c4)]['clearPanelRoute']();}['_initMenus'](){const _0x27255f=_0x518ea5;this[_0x27255f(0x318)][_0x27255f(0x3ae)](fe),this[_0x27255f(0x385)][_0x27255f(0x16d)](t[_0x27255f(0x421)][_0x27255f(0x18c)],this[_0x27255f(0x2e3)][_0x27255f(0x464)](this));}[_0x518ea5(0x228)](_0xbcc38d){const _0x122292=_0x518ea5;let _0x2f0d7f=this[_0x122292(0x28e)][_0x122292(0x36a)](_0xbcc38d);return!this[_0x122292(0x279)]||!_0x2f0d7f?!0x1:me(_0x2f0d7f['chartType']);}[_0x518ea5(0x2e3)](_0x3ea1b6,_0x3ad09a,_0x4a50b7,_0x510b26){const _0x1b63f0=_0x518ea5;return[{'label':this['_localeService']['t'](_0x1b63f0(0x1ed)),'index':0x0,'commandId':S['id'],'commandParams':{'unitId':_0x3ea1b6,'subUnitId':_0x3ad09a,'drawingId':_0x4a50b7},'disable':_0x510b26!==t['DrawingTypeEnum'][_0x1b63f0(0x18c)]},{'label':this[_0x1b63f0(0x237)]['t']('sheets-chart-ui.common.deleteChart'),'index':0x1,'commandId':r[_0x1b63f0(0x312)]['id'],'commandParams':{'unitId':_0x3ea1b6,'drawings':[{'unitId':_0x3ea1b6,'subUnitId':_0x3ad09a,'drawingId':_0x4a50b7,'drawingType':_0x510b26}]},'disable':!0x1},{'label':this[_0x1b63f0(0x237)]['t']('sheets-chart-ui.common.hideChartPanel'),'index':0x2,'commandId':x['id'],'commandParams':{'unitId':_0x3ea1b6,'subUnitId':_0x3ad09a,'drawingId':_0x4a50b7},'disable':!0x1}];}};H=I([F(0x0,n[_0x518ea5(0x14e)]),F(0x1,t[_0x518ea5(0x3b0)]),F(0x2,(0x0,t[_0x518ea5(0x293)])(e['ChartModelService'])),F(0x3,(0x0,t[_0x518ea5(0x293)])(B)),F(0x4,(0x0,t['Inject'])(i[_0x518ea5(0x444)])),F(0x5,(0x0,t[_0x518ea5(0x293)])(o[_0x518ea5(0x23f)])),F(0x6,o[_0x518ea5(0x361)]),F(0x7,(0x0,t['Inject'])(i['SheetCanvasFloatDomManagerService'])),F(0x8,(0x0,t['Inject'])(a[_0x518ea5(0x36e)])),F(0x9,t[_0x518ea5(0x44c)]),F(0xa,R),F(0xb,t[_0x518ea5(0x3d7)]),F(0xc,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x486)])),F(0xd,t['IConfigService'])],H);var qe='@univerjs-pro/sheets-chart-ui',Je=_0x518ea5(0x21f);const U={'scaleX':0x1,'scaleY':0x1};function Ye(_0x4a5ef5){const _0x364d0a=_0x518ea5;let _0x660632=_0x4a5ef5[_0x364d0a(0x15a)];return _0x660632 instanceof MouseEvent?_0x660632:void 0x0;}function Xe(_0x2a14df){const _0x2cca9d=_0x518ea5;let _0x305667=_0x2a14df[_0x2cca9d(0x15a)],_0x6216d2=_0x305667==null?void 0x0:_0x305667[_0x2cca9d(0x216)];return _0x6216d2 instanceof Element?_0x6216d2:void 0x0;}function Ze(_0x50b5dd){var _0x51ab06;return(_0x51ab06=Xe(_0x50b5dd))==null?void 0x0:_0x51ab06['getBoundingClientRect']();}function Qe(_0x275726){const _0x3b0aec=_0x518ea5;return _0x275726[_0x3b0aec(0x176)]||_0x275726['right']-_0x275726['left'];}function $e(_0x582da4){const _0x3424e8=_0x518ea5;return _0x582da4[_0x3424e8(0x2d7)]||_0x582da4[_0x3424e8(0x1be)]-_0x582da4['top'];}function et(_0x1d53a3,_0x2a06ab){const _0x55f6d4=_0x518ea5;let _0x4f97a1=_0x1d53a3[_0x55f6d4(0x346)]||(_0x1d53a3 instanceof HTMLElement?_0x1d53a3[_0x55f6d4(0x2af)]:0x0),_0x2ddc0a=_0x1d53a3[_0x55f6d4(0x479)]||(_0x1d53a3 instanceof HTMLElement?_0x1d53a3[_0x55f6d4(0x3e2)]:0x0),_0x22ed7d=Qe(_0x2a06ab),_0x3af8ad=$e(_0x2a06ab);return{'scaleX':_0x4f97a1>0x0&&_0x22ed7d>0x0?_0x22ed7d/_0x4f97a1:U['scaleX'],'scaleY':_0x2ddc0a>0x0&&_0x3af8ad>0x0?_0x3af8ad/_0x2ddc0a:U[_0x55f6d4(0x45c)]};}function tt(_0xabb42d,_0x5b4800,_0x48d938){const _0x45cdd8=_0x518ea5;return{'left':_0xabb42d['left']+_0x5b4800[_0x45cdd8(0x370)]*_0x48d938[_0x45cdd8(0x217)],'right':_0xabb42d[_0x45cdd8(0x370)]+_0x5b4800['right']*_0x48d938[_0x45cdd8(0x217)],'top':_0xabb42d['top']+_0x5b4800[_0x45cdd8(0x2a4)]*_0x48d938[_0x45cdd8(0x45c)],'bottom':_0xabb42d[_0x45cdd8(0x2a4)]+_0x5b4800[_0x45cdd8(0x1be)]*_0x48d938[_0x45cdd8(0x45c)]};}function nt(_0x4fa7fc){const _0x1785a4=_0x518ea5;let _0x220728=Xe(_0x4fa7fc),_0x54af08=_0x4fa7fc['hit'][_0x1785a4(0x351)];return _0x220728&&_0x54af08?()=>{const _0xea2d4e=_0x1785a4;let _0x524c47=_0x220728[_0xea2d4e(0x1e2)]();return tt(_0x524c47,_0x54af08,et(_0x220728,_0x524c47));}:()=>{const _0x26b60c=_0x1785a4;let _0x3ca77c=Ze(_0x4fa7fc);if(_0x3ca77c&&_0x54af08)return tt(_0x3ca77c,_0x54af08,_0x220728?et(_0x220728,_0x3ca77c):U);let _0x26a5c8=Ye(_0x4fa7fc),_0x5faa01=_0x220728&&_0x3ca77c?et(_0x220728,_0x3ca77c):U,_0x51b9d9=(_0x26a5c8==null?void 0x0:_0x26a5c8[_0x26b60c(0x416)])??(_0x3ca77c?_0x3ca77c[_0x26b60c(0x370)]+_0x4fa7fc['localPoint']['x']*_0x5faa01['scaleX']:_0x4fa7fc[_0x26b60c(0x384)]['x']),_0x4debfa=(_0x26a5c8==null?void 0x0:_0x26a5c8[_0x26b60c(0x3b5)])??(_0x3ca77c?_0x3ca77c[_0x26b60c(0x2a4)]+_0x4fa7fc['localPoint']['y']*_0x5faa01[_0x26b60c(0x45c)]:_0x4fa7fc[_0x26b60c(0x384)]['y']);return{'left':_0x51b9d9,'right':_0x51b9d9+0x1,'top':_0x4debfa,'bottom':_0x4debfa+0x1};};}function W(_0x4aa5b4){const _0x554303=_0x518ea5;return typeof _0x4aa5b4==_0x554303(0x36f)&&Number[_0x554303(0x27d)](_0x4aa5b4);}function rt(_0x4e430b){if(!_0x4e430b||typeof _0x4e430b!='object')return!0x0;let {startX:_0x4ceb52,endX:_0x2decad,startY:_0x20fe69,endY:_0x26d93b}=_0x4e430b;return!W(_0x4ceb52)||!W(_0x2decad)||!W(_0x20fe69)||!W(_0x26d93b)||_0x2decad-_0x4ceb52>0x2&&_0x26d93b-_0x20fe69>0x2;}function it(_0x2c4636){const _0x8f4b5a=_0x518ea5;return _0x2c4636[_0x8f4b5a(0x326)]<=_0x2c4636[_0x8f4b5a(0x370)]||_0x2c4636['bottom']<=_0x2c4636[_0x8f4b5a(0x2a4)]?!0x1:typeof window>'u'||_0x2c4636[_0x8f4b5a(0x326)]>0x0&&_0x2c4636[_0x8f4b5a(0x1be)]>0x0&&_0x2c4636['left']<window[_0x8f4b5a(0x1fb)]&&_0x2c4636[_0x8f4b5a(0x2a4)]<window['innerHeight'];}function at(_0x1c7511){const _0x22a955=_0x518ea5;var _0x1b11fe;return _0x1c7511==null||(_0x1b11fe=_0x1c7511[_0x22a955(0x2f2)])==null?void 0x0:_0x1b11fe[_0x22a955(0x25a)](_0x1c7511);}function ot(_0x58207e,_0x45d62b,_0x197c22){const _0xb3b334=_0x518ea5;let _0x178225=nt(_0x58207e),_0x328fb3=at(_0x45d62b),_0x25670a=_0x178225(),_0x1930da=new u[(_0xb3b334(0x456))](_0x25670a),_0x192869=new t['DisposableCollection'](),_0x4cbb87=!0x1,_0x560f78=!0x1,_0x1186ed=_0x4b1973=>rt(_0x328fb3)&&it(_0x4b1973),_0x2c00c2=()=>{_0x560f78||_0x4cbb87||(_0x560f78=!0x0,queueMicrotask(()=>{const _0x12a106=_0x2b25;if(_0x560f78=!0x1,!_0x4cbb87){let _0x59199d=_0x178225();if(!_0x1186ed(_0x59199d)){_0x197c22();return;}_0x1930da[_0x12a106(0x40f)](_0x59199d);}}));};return _0x45d62b&&_0x192869['add'](_0x45d62b['subscribe'](_0x3c1441=>{_0x328fb3=_0x3c1441,_0x2c00c2();})),typeof window<'u'&&_0x192869[_0xb3b334(0x33e)]((0x0,u['merge'])((0x0,u[_0xb3b334(0x3dc)])(window,_0xb3b334(0x3e9),{'capture':!0x0}),(0x0,u['fromEvent'])(window,_0xb3b334(0x290)))[_0xb3b334(0x35a)]((0x0,u[_0xb3b334(0x1d2)])(0x10))[_0xb3b334(0x262)](_0x2c00c2)),{'initialRect':_0x25670a,'anchorRect$':_0x1930da['asObservable'](),'visible':_0x1186ed(_0x25670a),'dispose':()=>{const _0x2235fe=_0xb3b334;_0x4cbb87=!0x0,_0x192869[_0x2235fe(0x42f)](),_0x1930da['complete']();}};}const st=_0x518ea5(0x3f4);let G=class extends t['Disposable']{constructor(_0x2d5f57,_0x37551a,_0x4eb495,_0x2aa8f2,_0x3b113b,_0x340e11,_0x524907,_0x538327,_0x29ca4b){const _0x4d3bb9=_0x518ea5;super(),this[_0x4d3bb9(0x28e)]=_0x2d5f57,this['_chartRenderService']=_0x37551a,this[_0x4d3bb9(0x222)]=_0x4eb495,this[_0x4d3bb9(0x385)]=_0x2aa8f2,this[_0x4d3bb9(0x261)]=_0x3b113b,this[_0x4d3bb9(0x39b)]=_0x340e11,this['_adapterRegistry']=_0x524907,this[_0x4d3bb9(0x1ef)]=_0x538327,this['_injector']=_0x29ca4b,M(this,_0x4d3bb9(0x31f),null),M(this,'_popupChartId',null),this[_0x4d3bb9(0x47a)](),this['_subscribeChartEvents']();}['dispose'](){const _0x426fe5=_0x518ea5;this['_closePopup'](),super[_0x426fe5(0x42f)]();}[_0x518ea5(0x47a)](){const _0x2f5fd8=_0x518ea5;let _0x2491e8=(0x0,s[_0x2f5fd8(0x1f0)])({'chartUIService':this[_0x2f5fd8(0x39b)],'getHostAdapter':_0x5ad701=>{const _0x131121=_0x2f5fd8;this[_0x131121(0x1c9)](_0x5ad701[_0x131121(0x330)]);let _0x4392ae=this[_0x131121(0x28e)]['getChartModel'](_0x5ad701[_0x131121(0x330)]);if(!(!_0x4392ae||!_0x5ad701[_0x131121(0x409)]))return new s[(_0x131121(0x3b7))](_0x4392ae,new e['SheetChartConfigAdapter']({'unitId':_0x5ad701[_0x131121(0x205)],'subUnitId':_0x5ad701[_0x131121(0x409)],'chartId':_0x5ad701[_0x131121(0x330)],'injector':this[_0x131121(0x34b)]}));},'close':()=>this['_closePopup'](),'openFullPanel':_0x3cb315=>{const _0x302a0a=_0x2f5fd8;let {unitId:_0x4fbf3f,subUnitId:_0x1a4bea,drawingId:_0x4788d3,chartId:_0x5d462e}=_0x3cb315,_0x322848=(0x0,s['resolveChartEditPanelRoute'])(_0x3cb315[_0x302a0a(0x216)]);this[_0x302a0a(0x1ef)][_0x302a0a(0x1fe)](S['id'],{'unitId':_0x4fbf3f,'subUnitId':_0x1a4bea??'','drawingId':_0x4788d3??_0x5d462e,..._0x322848?{'route':_0x322848}:{}});}});this['disposeWithMe'](this['_adapterRegistry'][_0x2f5fd8(0x33d)](st,_0x2491e8));}['_subscribeChartEvents'](){const _0x519166=_0x518ea5;this[_0x519166(0x380)](this[_0x519166(0x28e)][_0x519166(0x2c9)]['subscribe'](_0x3c7f96=>{const _0x4a2f25=_0x519166;let _0x19cd6c=new t[(_0x4a2f25(0x229))]();_0x19cd6c['add'](this[_0x4a2f25(0x2da)]['on'](_0x3c7f96['id'],_0x4a2f25(0x1b4),_0x38ea83=>{this['_openFloatMenu'](_0x3c7f96['id'],_0x38ea83);})),_0x19cd6c[_0x4a2f25(0x33e)](this[_0x4a2f25(0x2da)]['on'](_0x3c7f96['id'],_0x4a2f25(0x3a3),()=>{const _0x1524f6=_0x4a2f25;this[_0x1524f6(0x449)](_0x3c7f96['id']);})),_0x3c7f96['onDispose'](()=>{_0x19cd6c['dispose'](),this['_clearSelectedTarget'](_0x3c7f96['id']);}),this[_0x4a2f25(0x380)](_0x19cd6c);})),this['disposeWithMe'](this['_chartUIService'][_0x519166(0x2cd)][_0x519166(0x262)](_0x578632=>{const _0x5b06b2=_0x519166;(!_0x578632||this[_0x5b06b2(0x17d)]&&_0x578632!==this[_0x5b06b2(0x17d)])&&this[_0x5b06b2(0x3b3)]();})),this['disposeWithMe'](this['_sheetCanvasFloatDomManagerService'][_0x519166(0x47d)][_0x519166(0x262)](({id:_0x522264})=>{const _0x4a4423=_0x519166;this[_0x4a4423(0x20a)](_0x522264);})),this[_0x519166(0x380)](this[_0x519166(0x261)][_0x519166(0x270)][_0x519166(0x262)](({id:_0x463e79})=>{const _0x4b9291=_0x519166;this[_0x4b9291(0x20a)](_0x463e79);})),this[_0x519166(0x380)](this[_0x519166(0x222)]['removeHost$'][_0x519166(0x262)](_0x508022=>{const _0x14c946=_0x519166;this[_0x14c946(0x20a)](_0x508022);}));}[_0x518ea5(0x449)](_0xfc586c){const _0x4db330=_0x518ea5;if(this['_chartUIService'][_0x4db330(0x173)])return;let _0x1543f0=this[_0x4db330(0x28e)][_0x4db330(0x36a)](_0xfc586c),_0x11cc3b=this['_sheetCanvasFloatDomManagerService'][_0x4db330(0x3be)](_0xfc586c);!_0x1543f0||!_0x11cc3b||(this[_0x4db330(0x28e)][_0x4db330(0x406)](_0x1543f0),this[_0x4db330(0x1ef)][_0x4db330(0x1fe)](S['id'],{'unitId':_0x11cc3b[_0x4db330(0x205)],'subUnitId':_0x11cc3b[_0x4db330(0x409)]??'','drawingId':_0xfc586c}));}[_0x518ea5(0x1c9)](_0x4a996f){const _0xd64f13=_0x518ea5;let _0x578624=this[_0xd64f13(0x28e)][_0xd64f13(0x36a)](_0x4a996f);_0x578624&&this[_0xd64f13(0x28e)][_0xd64f13(0x406)](_0x578624);}['_openFloatMenu'](_0x2d0804,_0x185154){const _0x27dad6=_0x518ea5;if(!this[_0x27dad6(0x39b)][_0x27dad6(0x42c)](_0x2d0804))return;let _0x36fb19=this[_0x27dad6(0x28e)][_0x27dad6(0x36a)](_0x2d0804),_0x4d9f14=_0x36fb19?he(_0x36fb19,_0x185154[_0x27dad6(0x1ba)]):void 0x0;if(!_0x4d9f14){this[_0x27dad6(0x39b)][_0x27dad6(0x1e5)](null),this[_0x27dad6(0x39b)][_0x27dad6(0x39e)](),this[_0x27dad6(0x3b3)]();return;}let _0x39464d=this['_sheetCanvasFloatDomManagerService'][_0x27dad6(0x3be)](_0x2d0804);if(!_0x36fb19||!_0x39464d){this[_0x27dad6(0x39b)]['setSelectedElement'](null),this['_chartUIService']['clearPanelRoute'](),this[_0x27dad6(0x3b3)]();return;}if(this[_0x27dad6(0x28e)][_0x27dad6(0x406)](_0x36fb19),this['_chartUIService'][_0x27dad6(0x1e5)]({'chartId':_0x2d0804,'element':_0x185154[_0x27dad6(0x1ba)],'target':_0x4d9f14['target'],'route':_0x4d9f14[_0x27dad6(0x463)]}),this[_0x27dad6(0x39b)]['setPanelRoute'](_0x2d0804,_0x4d9f14['route']),this[_0x27dad6(0x3b3)](),!_0x4d9f14[_0x27dad6(0x477)])return;let _0x47a40e=ot(_0x185154,_0x39464d[_0x27dad6(0x245)],()=>this['_clearHiddenSelectedTarget'](_0x2d0804));if(!_0x47a40e[_0x27dad6(0x3d0)]){_0x47a40e[_0x27dad6(0x42f)]();return;}let _0x2d560f=this[_0x27dad6(0x385)]['attachPopupToDynamicAbsolutePosition'](_0x47a40e[_0x27dad6(0x31d)],_0x47a40e[_0x27dad6(0x192)],{'componentKey':s[_0x27dad6(0x1c3)],'constrainToCanvas':!0x0,'direction':_0x27dad6(0x28d),'offset':[0x0,0x8],'extraProps':{'unitId':_0x39464d[_0x27dad6(0x205)],'subUnitId':_0x39464d[_0x27dad6(0x409)],'chartId':_0x2d0804,'drawingId':_0x2d0804,'element':_0x185154[_0x27dad6(0x1ba)],'target':_0x4d9f14[_0x27dad6(0x216)],'adapterKey':st}},_0x39464d[_0x27dad6(0x205)],_0x39464d[_0x27dad6(0x409)])??null;if(!_0x2d560f){_0x47a40e[_0x27dad6(0x42f)]();return;}let _0x4bd0b5=new t[(_0x27dad6(0x229))]();_0x4bd0b5[_0x27dad6(0x33e)](_0x2d560f),_0x4bd0b5[_0x27dad6(0x33e)](_0x47a40e),this[_0x27dad6(0x31f)]=_0x4bd0b5,this[_0x27dad6(0x17d)]=_0x2d0804;}[_0x518ea5(0x3b3)](){const _0x100b8c=_0x518ea5;var _0xd6db78;(_0xd6db78=this[_0x100b8c(0x31f)])==null||_0xd6db78[_0x100b8c(0x42f)](),this[_0x100b8c(0x31f)]=null,this[_0x100b8c(0x17d)]=null;}[_0x518ea5(0x20a)](_0x1d2610){const _0x4e8b7e=_0x518ea5;!this[_0x4e8b7e(0x39b)]['isElementEditModeActive'](_0x1d2610)&&this['_popupChartId']!==_0x1d2610||(this[_0x4e8b7e(0x39b)][_0x4e8b7e(0x1e5)](null),this[_0x4e8b7e(0x39b)][_0x4e8b7e(0x39e)](),this[_0x4e8b7e(0x17d)]===_0x1d2610&&this[_0x4e8b7e(0x3b3)]());}['_clearHiddenSelectedTarget'](_0x301836){const _0x5cecf4=_0x518ea5;this[_0x5cecf4(0x20a)](_0x301836),this[_0x5cecf4(0x39b)][_0x5cecf4(0x42c)](_0x301836)&&(this[_0x5cecf4(0x2da)][_0x5cecf4(0x430)](_0x301836,!0x1),this[_0x5cecf4(0x2da)][_0x5cecf4(0x430)](_0x301836,!0x0));}};G=I([F(0x0,(0x0,t[_0x518ea5(0x293)])(e[_0x518ea5(0x440)])),F(0x1,(0x0,t[_0x518ea5(0x293)])(B)),F(0x2,L),F(0x3,(0x0,t[_0x518ea5(0x293)])(a[_0x518ea5(0x36e)])),F(0x4,(0x0,t[_0x518ea5(0x293)])(i[_0x518ea5(0x310)])),F(0x5,R),F(0x6,(0x0,t[_0x518ea5(0x293)])(s[_0x518ea5(0x2a2)])),F(0x7,t['ICommandService']),F(0x8,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x15d)]))],G);let K=class extends t['Disposable']{constructor(_0x115110,_0x40f14c){super(),this['_chartHostProviderService']=_0x115110,this['_chartModelService']=_0x40f14c,this['_init']();}[_0x518ea5(0x28a)](){const _0x4955f6=_0x518ea5;this['disposeWithMe'](this[_0x4955f6(0x193)][_0x4955f6(0x2d2)][_0x4955f6(0x262)](_0x27af5f=>{const _0x170077=_0x4955f6;this[_0x170077(0x28e)]['removeChartModel'](_0x27af5f);}));}};K=I([F(0x0,L),F(0x1,(0x0,t[_0x518ea5(0x293)])(e[_0x518ea5(0x440)]))],K);let q=class extends t['Disposable']{constructor(_0x2e5adb,_0x4188fc,_0x389113,_0x57d670,_0x5719db,_0x2dd443){const _0x43b297=_0x518ea5;super(),this[_0x43b297(0x28e)]=_0x2e5adb,this[_0x43b297(0x2da)]=_0x4188fc,this[_0x43b297(0x237)]=_0x389113,this['_chartUIService']=_0x57d670,this['_commandService']=_0x5719db,this[_0x43b297(0x1ec)]=_0x2dd443,M(this,'_pendingMutationConfigRenders',new Map()),this[_0x43b297(0x28a)](),this[_0x43b297(0x429)](),this[_0x43b297(0x3ff)]();}['_initPrinting'](){const _0x343830=_0x518ea5;this[_0x343830(0x380)](this['_sheetPrintInterceptorService']['interceptor'][_0x343830(0x439)](this[_0x343830(0x1ec)][_0x343830(0x2e7)]['getInterceptPoints']()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x176c53,_0x493825,_0x119ec1)=>{const _0x21fba5=_0x343830;let _0x492763=this[_0x21fba5(0x2da)][_0x21fba5(0x278)](_0x493825[_0x21fba5(0x205)],_0x493825[_0x21fba5(0x409)],_0x493825[_0x21fba5(0x308)]);return _0x493825[_0x21fba5(0x3c5)][_0x21fba5(0x33e)](_0x492763),_0x119ec1(_0x176c53);}}));}['_init'](){const _0x13f1a7=_0x518ea5;this[_0x13f1a7(0x380)](this[_0x13f1a7(0x28e)][_0x13f1a7(0x2c9)][_0x13f1a7(0x262)](_0x1837fa=>{const _0x283eee=_0x13f1a7;if(_0x1837fa){let _0x9bda78=new t[(_0x283eee(0x229))]();_0x9bda78[_0x283eee(0x33e)](_0x1837fa['config$'][_0x283eee(0x35a)]((0x0,u[_0x283eee(0x42e)])(_0x1837fa[_0x283eee(0x3b8)]),(0x0,u[_0x283eee(0x42e)])(this['_localeService'][_0x283eee(0x1e9)]),(0x0,u[_0x283eee(0x37d)])(0x64))['subscribe'](([[_0x3404b1,_0x6ff0b2],_0x5a5099])=>{const _0x84d623=_0x283eee;var _0x5c6ab4;if(!_0x3404b1)return;(_0x5c6ab4=_0x3404b1[_0x84d623(0x265)])==null||_0x5c6ab4[_0x84d623(0x30f)][_0x84d623(0x320)]((_0x47ef74,_0x3b9e93)=>{const _0x2059f6=_0x84d623;_0x47ef74[_0x2059f6(0x24e)]||=this['_localeService']['t'](_0x2059f6(0x319))+'\x20'+(_0x3b9e93+0x1);}),_0x3404b1['series'][_0x84d623(0x320)]((_0x576174,_0x1ef990)=>{const _0x463735=_0x84d623;_0x576174[_0x463735(0x20d)]||=this[_0x463735(0x237)]['t'](_0x463735(0x47c))+'\x20'+(_0x1ef990+0x1);});let _0x451bdf=this[_0x84d623(0x2da)][_0x84d623(0x3ac)](_0x1837fa,_0x5a5099);this['_chartRenderService'][_0x84d623(0x37f)](_0x1837fa['id'],_0x3404b1,_0x451bdf);})),_0x1837fa['onDispose'](()=>{const _0x5c221a=_0x283eee;_0x9bda78[_0x5c221a(0x42f)]();});}}));}[_0x518ea5(0x429)](){const _0x28a699=_0x518ea5;this[_0x28a699(0x380)](this[_0x28a699(0x1ef)][_0x28a699(0x400)](_0x26bac9=>{const _0x2e343f=_0x28a699;if(_0x26bac9['id']!==e[_0x2e343f(0x2b5)]['id'])return;let _0x4ac79b=_0x26bac9[_0x2e343f(0x412)];_0x4ac79b!=null&&_0x4ac79b[_0x2e343f(0x34e)]&&Promise['resolve']()[_0x2e343f(0x190)](()=>this[_0x2e343f(0x1ab)](_0x4ac79b));}));}[_0x518ea5(0x1ab)](_0x28ac44){const _0xcc182f=_0x518ea5;let _0x450cc5=this[_0xcc182f(0x28e)][_0xcc182f(0x36a)](_0x28ac44['chartModelId']);if(!_0x450cc5||_0x450cc5[_0xcc182f(0x195)]!==c['ChartTypeBits'][_0xcc182f(0x260)])return;let _0x25bc4e=_0x450cc5[_0xcc182f(0x1a4)];if(!_0x25bc4e){this[_0xcc182f(0x44f)](_0x450cc5);return;}this[_0xcc182f(0x26d)](_0x450cc5,_0x25bc4e);}[_0x518ea5(0x44f)](_0x2c8583){const _0x2e6c58=_0x518ea5;if(this[_0x2e6c58(0x3fe)]['get'](_0x2c8583['id']))return;let _0x5b1f83=_0x2c8583['config$']['pipe']((0x0,u[_0x2e6c58(0x31e)])(_0x722984=>_0x722984!=null),(0x0,u[_0x2e6c58(0x2b3)])(0x1))[_0x2e6c58(0x262)](_0x1cfad0=>{const _0x5d0595=_0x2e6c58;this[_0x5d0595(0x3fe)]['delete'](_0x2c8583['id']),this[_0x5d0595(0x26d)](_0x2c8583,_0x1cfad0);});this[_0x2e6c58(0x3fe)][_0x2e6c58(0x2f3)](_0x2c8583['id'],_0x5b1f83),_0x2c8583[_0x2e6c58(0x376)](()=>{const _0x242f14=_0x2e6c58;_0x5b1f83[_0x242f14(0x22f)](),this['_pendingMutationConfigRenders'][_0x242f14(0x303)](_0x2c8583['id']);});}[_0x518ea5(0x26d)](_0x25c132,_0x3a6a45){const _0x325f46=_0x518ea5;let _0x320c7e=this['_chartRenderService'][_0x325f46(0x3ac)](_0x25c132,this[_0x325f46(0x237)][_0x325f46(0x435)]());this['_chartRenderService'][_0x325f46(0x37f)](_0x25c132['id'],_0x3a6a45,_0x320c7e);}};function _0x2b25(_0x218f6f,_0x2a61de){_0x218f6f=_0x218f6f-0x14d;const _0x47fb71=_0x47fb();let _0x2b259d=_0x47fb71[_0x218f6f];return _0x2b259d;}q=I([F(0x0,(0x0,t[_0x518ea5(0x293)])(e['ChartModelService'])),F(0x1,(0x0,t[_0x518ea5(0x293)])(B)),F(0x2,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x486)])),F(0x3,R),F(0x4,t['ICommandService']),F(0x5,(0x0,t['Inject'])(a['SheetPrintInterceptorService']))],q);let J=class extends t['Disposable']{constructor(_0x2ecaa5,_0x38dd1e,_0x6fe5e,_0x7f4b8b){const _0x402243=_0x518ea5;super(),this['_univerInstanceService']=_0x2ecaa5,this[_0x402243(0x1ae)]=_0x38dd1e,this[_0x402243(0x183)]=_0x6fe5e,this[_0x402243(0x28e)]=_0x7f4b8b,this[_0x402243(0x2ef)]();}[_0x518ea5(0x2ef)](){const _0x361e17=_0x518ea5;this[_0x361e17(0x380)](this[_0x361e17(0x1ae)][_0x361e17(0x28f)]({'getMutations':_0x36af1b=>{const _0x429b83=_0x361e17;if(_0x36af1b['id']===l[_0x429b83(0x17b)]['id']){let _0x420ef6=(0x0,l[_0x429b83(0x1cb)])(this[_0x429b83(0x367)],_0x36af1b[_0x429b83(0x412)]);if(!_0x420ef6)return{'redos':[],'undos':[]};let {unitId:_0x3ba195,subUnitId:_0x210416}=_0x420ef6,_0x17da2d=this[_0x429b83(0x183)][_0x429b83(0x252)](_0x3ba195,_0x210416),_0x4ae27c=Object[_0x429b83(0x251)](_0x17da2d)[_0x429b83(0x31e)](_0x51c340=>_0x51c340['drawingType']===t[_0x429b83(0x421)][_0x429b83(0x18c)]);if(_0x4ae27c['length']===0x0)return{'redos':[],'undos':[]};let _0x5e5e06=[],_0x160fd9=[];for(let _0x304bc2=0x0;_0x304bc2<_0x4ae27c[_0x429b83(0x348)];_0x304bc2++){let _0x589ae4=_0x4ae27c[_0x304bc2],_0x3ff8a9=this['_chartModelService'][_0x429b83(0x36a)](_0x589ae4[_0x429b83(0x2b9)]);if(!_0x3ff8a9)continue;let _0x406b5a=_0x3ff8a9[_0x429b83(0x3a7)][_0x429b83(0x1b9)](),{chartType:_0x425c8d,context:_0x579dd6,style:_0x48b055,dataAggregation:_0x173837}=_0x3ff8a9[_0x429b83(0x29a)](),{redo:_0x4a53f4,undo:_0x10a1fd,objects:_0xd53c6e}=this[_0x429b83(0x183)][_0x429b83(0x201)]([_0x589ae4]);_0x5e5e06[_0x429b83(0x263)]({'id':e[_0x429b83(0x20b)]['id'],'params':{'unitId':_0x3ba195,'subUnitId':_0x210416,'chartId':_0x589ae4['drawingId']}}),_0x5e5e06['push']({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3ba195,'subUnitId':_0x210416,'type':r[_0x429b83(0x23e)]['REMOVE'],'op':_0x4a53f4,'objects':_0xd53c6e}}),_0x160fd9[_0x429b83(0x263)]({'id':r[_0x429b83(0x38f)]['id'],'params':{'unitId':_0x3ba195,'subUnitId':_0x210416,'type':r[_0x429b83(0x23e)]['INSERT'],'op':_0x10a1fd,'objects':_0xd53c6e}}),_0x160fd9[_0x429b83(0x263)]({'id':e['InsertSheetsChartMutation']['id'],'params':{'unitId':_0x3ba195,'subUnitId':_0x210416,'chartId':_0x589ae4['drawingId'],'chartType':_0x425c8d,...(0x0,e['toInsertChartMutationSource'])(_0x406b5a),'context':_0x579dd6,'style':_0x48b055,'dataAggregation':_0x173837}});}return{'redos':_0x5e5e06,'undos':_0x160fd9};}else{if(_0x36af1b['id']===l[_0x429b83(0x488)]['id']){let {unitId:_0x470a44,subUnitId:_0x57d65b,targetSubUnitId:_0xd6c399}=_0x36af1b[_0x429b83(0x412)];if(!_0x470a44||!_0x57d65b||!_0xd6c399)return{'redos':[],'undos':[]};let _0x5c9211=this[_0x429b83(0x183)][_0x429b83(0x252)](_0x470a44,_0x57d65b),_0x1d56bf=Object[_0x429b83(0x251)](_0x5c9211)[_0x429b83(0x31e)](_0x57e5d9=>_0x57e5d9[_0x429b83(0x354)]===t[_0x429b83(0x421)]['DRAWING_CHART']);if(_0x1d56bf[_0x429b83(0x348)]===0x0)return{'redos':[],'undos':[]};let _0x51d7d8=[],_0x366596=[];for(let _0x47e6d3=0x0;_0x47e6d3<_0x1d56bf[_0x429b83(0x348)];_0x47e6d3++){let _0x10e9d4=_0x1d56bf[_0x47e6d3],_0x4a0e44=this[_0x429b83(0x28e)][_0x429b83(0x36a)](_0x10e9d4[_0x429b83(0x2b9)]);if(!_0x4a0e44)continue;let _0x5f43d9=(0x0,t[_0x429b83(0x1fd)])(),_0x384832={..._0x10e9d4,'unitId':_0x470a44,'subUnitId':_0xd6c399,'drawingId':_0x5f43d9},_0x54c292=_0x4a0e44['dataSource'][_0x429b83(0x1b9)](),_0x265f1e=Array[_0x429b83(0x434)](_0x54c292)?_0x54c292[_0x429b83(0x1a8)](_0x3ba4ae=>({..._0x3ba4ae,..._0x3ba4ae[_0x429b83(0x43f)]?{'header':{..._0x3ba4ae[_0x429b83(0x43f)],'subUnitId':_0xd6c399}}:{},'range':{..._0x3ba4ae['range'],'subUnitId':_0xd6c399}})):{..._0x54c292,'rangeInfo':{..._0x54c292['rangeInfo'],'subUnitId':_0xd6c399}},{chartType:_0xec1705,context:_0x40dbc5,style:_0x4311f6,dataAggregation:_0x16a42c}=_0x4a0e44['serialize'](),{redo:_0x478cb8,undo:_0x78b4f8,objects:_0xda07f1}=this[_0x429b83(0x183)][_0x429b83(0x404)]([_0x384832]);_0x51d7d8[_0x429b83(0x263)]({'id':r[_0x429b83(0x38f)]['id'],'params':{'unitId':_0x470a44,'subUnitId':_0xd6c399,'type':r['DrawingApplyType'][_0x429b83(0x3a6)],'op':_0x478cb8,'objects':_0xda07f1}}),_0x51d7d8[_0x429b83(0x263)]({'id':e[_0x429b83(0x257)]['id'],'params':{'unitId':_0x470a44,'subUnitId':_0xd6c399,'chartId':_0x5f43d9,'chartType':_0xec1705,...(0x0,e['toInsertChartMutationSource'])(_0x265f1e),'context':_0x40dbc5,'style':_0x4311f6,'dataAggregation':_0x16a42c}}),_0x366596[_0x429b83(0x263)]({'id':e['RemoveSheetsChartMutation']['id'],'params':{'unitId':_0x470a44,'subUnitId':_0xd6c399,'chartId':_0x5f43d9}}),_0x366596[_0x429b83(0x263)]({'id':r[_0x429b83(0x38f)]['id'],'params':{'unitId':_0x470a44,'subUnitId':_0xd6c399,'type':r[_0x429b83(0x23e)][_0x429b83(0x26c)],'op':_0x78b4f8,'objects':_0xda07f1}});}return{'redos':_0x51d7d8,'undos':_0x366596};}}return{'redos':[],'undos':[]};}}));}};J=I([F(0x0,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x3b0)])),F(0x1,(0x0,t[_0x518ea5(0x293)])(l['SheetInterceptorService'])),F(0x2,(0x0,t[_0x518ea5(0x293)])(r['ISheetDrawingService'])),F(0x3,(0x0,t[_0x518ea5(0x293)])(e[_0x518ea5(0x440)]))],J);let Y=class extends t[_0x518ea5(0x365)]{constructor(_0x484121,_0x2cfd8c){const _0xdb4fdc=_0x518ea5;super(),this[_0xdb4fdc(0x2fc)]=_0x484121,this[_0xdb4fdc(0x441)]=_0x2cfd8c,this[_0xdb4fdc(0x410)](),this['_registerComponents']();}['_registerIcons'](){const _0x591b2a=_0x518ea5;this[_0x591b2a(0x380)](this['_iconManager'][_0x591b2a(0x33d)]({'PenIcon':ee[_0x591b2a(0x342)]}));}[_0x518ea5(0x184)](){const _0x2df26c=_0x518ea5;[[Ue,He]][_0x2df26c(0x320)](([_0x31626e,_0x35767b])=>{const _0xd7928e=_0x2df26c;this[_0xd7928e(0x380)](this['_componentManager'][_0xd7928e(0x33d)](_0x31626e,_0x35767b));});}};Y=I([F(0x0,(0x0,t[_0x518ea5(0x293)])(o['ComponentManager'])),F(0x1,(0x0,t[_0x518ea5(0x293)])(o[_0x518ea5(0x1b7)]))],Y);let X=class extends t[_0x518ea5(0x365)]{constructor(_0x36f82b,_0x2121c8,_0x3b022f,_0x1e8f48){const _0x5cb4d0=_0x518ea5;super(),this['_sheetSkeletonService']=_0x36f82b,this[_0x5cb4d0(0x459)]=_0x2121c8,this[_0x5cb4d0(0x183)]=_0x3b022f,this[_0x5cb4d0(0x28e)]=_0x1e8f48,M(this,'_copyInfo',void 0x0),this['_initCopyPaste']();}get[_0x518ea5(0x3ea)](){const _0x49d3e4=_0x518ea5;return this[_0x49d3e4(0x183)]['getFocusDrawings']();}['_initCopyPaste'](){const _0x316c0a=_0x518ea5;this[_0x316c0a(0x380)](this[_0x316c0a(0x459)][_0x316c0a(0x3a0)]({'id':e[_0x316c0a(0x211)],'onBeforeCopy':(_0x31cb3d,_0x50fe76,_0x1091be,_0x86ba4b)=>{const _0x5ac788=_0x316c0a;this[_0x5ac788(0x3a8)]=null;let _0x3a4c52=this[_0x5ac788(0x3ea)];if(_0x3a4c52[_0x5ac788(0x348)]){let _0x2a92c1=_0x3a4c52[_0x5ac788(0x31e)](_0x6a27=>_0x6a27['drawingType']===t[_0x5ac788(0x421)][_0x5ac788(0x18c)]);if(_0x2a92c1[_0x5ac788(0x348)]===0x0)return;this[_0x5ac788(0x3a8)]={'unitId':_0x31cb3d,'subUnitId':_0x50fe76,'copyType':_0x86ba4b,'drawings':_0x2a92c1};}else this[_0x5ac788(0x453)](_0x31cb3d,_0x50fe76,_0x1091be,_0x86ba4b);},'onPasteCells':(_0x2bc6bd,_0x591113,_0x53dd5d,_0x10dd41)=>{const _0x375bb6=_0x316c0a;if(!this['_copyInfo'])return{'redos':[],'undos':[]};let {pasteType:_0x401f28}=_0x10dd41;return _0x401f28===a[_0x375bb6(0x3eb)][_0x375bb6(0x364)]?this['_generatePasteMutations'](_0x591113,this[_0x375bb6(0x3a8)][_0x375bb6(0x29e)]===a[_0x375bb6(0x2bf)]['CUT']):{'redos':[],'undos':[]};},'onPasteUnrecognized':_0x2c6bb4=>this[_0x316c0a(0x3a8)]?this[_0x316c0a(0x26e)](_0x2c6bb4,this[_0x316c0a(0x3a8)]['copyType']===a[_0x316c0a(0x2bf)][_0x316c0a(0x40a)]):{'redos':[],'undos':[]}}));}[_0x518ea5(0x453)](_0x323e24,_0x2b18f3,_0x1d340b,_0x58a02b){const _0x5c1c61=_0x518ea5;let _0x2a16aa=this['_sheetSkeletonService'][_0x5c1c61(0x466)](_0x323e24,_0x2b18f3);if(!_0x2a16aa)return;let _0x54487a=(0x0,l['attachRangeWithCoord'])(_0x2a16aa,_0x1d340b);if(!_0x54487a)return;let {startX:_0x3d61b6,endX:_0x2cafef,startY:_0x3cd8b6,endY:_0x30e944}=_0x54487a,_0x16470f=this[_0x5c1c61(0x183)][_0x5c1c61(0x252)](_0x323e24,_0x2b18f3),_0x1f78d8=this['_focusedDrawings'][_0x5c1c61(0x484)]();for(let [_0x2f4290,_0x4244b8]of Object[_0x5c1c61(0x33f)](_0x16470f)){if(_0x4244b8[_0x5c1c61(0x354)]!==t[_0x5c1c61(0x421)][_0x5c1c61(0x18c)])continue;let {transform:_0x4e2a9a}=_0x4244b8;if(!_0x4e2a9a)continue;let {left:_0x1ed1b1=0x0,top:_0x33c50c=0x0,width:_0x313d26=0x0,height:_0x3417d7=0x0}=_0x4e2a9a;_0x3d61b6<=_0x1ed1b1&&_0x2cafef>=_0x1ed1b1+_0x313d26&&_0x3cd8b6<=_0x33c50c&&_0x30e944>=_0x33c50c+_0x3417d7&&_0x1f78d8[_0x5c1c61(0x263)](_0x4244b8);}_0x1f78d8['length']>0x0&&(this[_0x5c1c61(0x3a8)]={'unitId':_0x323e24,'subUnitId':_0x2b18f3,'copyType':_0x58a02b,'copyRange':_0x1d340b,'drawings':_0x1f78d8});}[_0x518ea5(0x26e)](_0x1c208b,_0x12be33){const _0x10d66e=_0x518ea5;let {unitId:_0x154994,subUnitId:_0x34f56a,range:_0xe50197}=_0x1c208b,_0x3fb439=this['_sheetSkeletonService'][_0x10d66e(0x466)](_0x154994,_0x34f56a);if(!_0x3fb439)return{'redos':[],'undos':[]};let _0x37625f=(0x0,l[_0x10d66e(0x322)])(_0xe50197),{unitId:_0x4cb606,subUnitId:_0x4414e5,copyRange:_0x315919,drawings:_0x3ef2e1}=this[_0x10d66e(0x3a8)],_0x45f24f=this[_0x10d66e(0x420)][_0x10d66e(0x466)](_0x4cb606,_0x4414e5);if(!_0x45f24f)return{'redos':[],'undos':[]};let _0xa86df=[],_0x228ffc=[];for(let _0x2c92c1 of _0x3ef2e1){let {drawingId:_0x53ff43,transform:_0x12faf6,sheetTransform:_0x57677d}=_0x2c92c1,_0x2d86c6=this[_0x10d66e(0x28e)][_0x10d66e(0x36a)](_0x53ff43);if(!_0x2d86c6||!_0x12faf6||!_0x57677d)continue;let _0x3ac40e=this[_0x10d66e(0x1a7)]({'transform':_0x12faf6,'sheetTransform':_0x57677d},{'skeleton':_0x45f24f,'range':_0x315919},{'skeleton':_0x3fb439,'range':_0x37625f});if(_0x12be33){let {redos:_0x110207,undos:_0x343640}=this['_generateCutPasteMutations']({'fromUnitId':_0x4cb606,'fromSubUnitId':_0x4414e5,'toUnitId':_0x154994,'toSubUnitId':_0x34f56a,'drawing':_0x2c92c1,'newTransforms':_0x3ac40e},_0x2d86c6);_0xa86df[_0x10d66e(0x263)](..._0x110207),_0x228ffc[_0x10d66e(0x263)](..._0x343640);continue;}let {redos:_0x26b336,undos:_0x16cc03}=this[_0x10d66e(0x448)]({'toUnitId':_0x154994,'toSubUnitId':_0x34f56a,'drawing':_0x2c92c1,'newTransforms':_0x3ac40e},_0x2d86c6);_0xa86df[_0x10d66e(0x263)](..._0x26b336),_0x228ffc[_0x10d66e(0x263)](..._0x16cc03);}return{'redos':_0xa86df,'undos':_0x228ffc};}[_0x518ea5(0x398)](_0x358309,_0x5cdf51){const _0x3da454=_0x518ea5;let {fromUnitId:_0x4c1ef6,fromSubUnitId:_0x12b4d5,toUnitId:_0x17028a,toSubUnitId:_0x5a50ff,drawing:_0x12eac2,newTransforms:_0x17ade7}=_0x358309,_0x152763={..._0x12eac2,'unitId':_0x17028a,'subUnitId':_0x5a50ff,'transform':_0x17ade7[_0x3da454(0x268)],'sheetTransform':_0x17ade7['sheetTransform']};if(_0x17028a===_0x4c1ef6&&_0x5a50ff===_0x12b4d5){let {redo:_0x535700,undo:_0x27d619,objects:_0x1a7a65}=this[_0x3da454(0x183)]['getBatchUpdateOp']([_0x152763]);return{'redos':[{'id':r[_0x3da454(0x38f)]['id'],'params':{'unitId':_0x17028a,'subUnitId':_0x5a50ff,'type':r['DrawingApplyType'][_0x3da454(0x22b)],'op':_0x535700,'objects':_0x1a7a65}}],'undos':[{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x17028a,'subUnitId':_0x5a50ff,'type':r['DrawingApplyType'][_0x3da454(0x22b)],'op':_0x27d619,'objects':_0x1a7a65}}]};}else{let _0x44e773=this[_0x3da454(0x183)][_0x3da454(0x201)]([_0x12eac2]),_0x53834d=this['_sheetDrawingService'][_0x3da454(0x404)]([_0x152763]),_0x5360dc=_0x5cdf51[_0x3da454(0x3a7)][_0x3da454(0x1b9)](),{chartType:_0x518295,context:_0x5d27c2,style:_0x2b9511,dataAggregation:_0x342be5}=_0x5cdf51[_0x3da454(0x29a)]();return{'redos':[{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4c1ef6,'subUnitId':_0x12b4d5,'type':r[_0x3da454(0x23e)][_0x3da454(0x26c)],'op':_0x44e773['redo'],'objects':_0x44e773[_0x3da454(0x411)]}},{'id':e[_0x3da454(0x20b)]['id'],'params':{'unitId':_0x4c1ef6,'subUnitId':_0x12b4d5,'chartId':_0x12eac2[_0x3da454(0x2b9)]}},{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x17028a,'subUnitId':_0x5a50ff,'type':r[_0x3da454(0x23e)][_0x3da454(0x3a6)],'op':_0x53834d[_0x3da454(0x363)],'objects':_0x53834d[_0x3da454(0x411)]}},{'id':e[_0x3da454(0x257)]['id'],'params':{'unitId':_0x17028a,'subUnitId':_0x5a50ff,'chartId':_0x12eac2[_0x3da454(0x2b9)],'chartType':_0x518295,...(0x0,e[_0x3da454(0x1fc)])(_0x5360dc),'context':_0x5d27c2,'style':_0x2b9511,'dataAggregation':_0x342be5}}],'undos':[{'id':r[_0x3da454(0x38f)]['id'],'params':{'unitId':_0x4c1ef6,'subUnitId':_0x12b4d5,'type':r[_0x3da454(0x23e)][_0x3da454(0x3a6)],'op':_0x44e773[_0x3da454(0x2e2)],'objects':_0x44e773[_0x3da454(0x411)]}},{'id':e[_0x3da454(0x257)]['id'],'params':{'unitId':_0x4c1ef6,'subUnitId':_0x12b4d5,'chartId':_0x12eac2[_0x3da454(0x2b9)],'chartType':_0x518295,...(0x0,e[_0x3da454(0x1fc)])(_0x5360dc),'context':_0x5d27c2,'style':_0x2b9511,'dataAggregation':_0x342be5}},{'id':r[_0x3da454(0x38f)]['id'],'params':{'unitId':_0x17028a,'subUnitId':_0x5a50ff,'type':r['DrawingApplyType'][_0x3da454(0x26c)],'op':_0x53834d[_0x3da454(0x2e2)],'objects':_0x53834d[_0x3da454(0x411)]}},{'id':e['RemoveSheetsChartMutation']['id'],'params':{'unitId':_0x17028a,'subUnitId':_0x5a50ff,'chartId':_0x12eac2[_0x3da454(0x2b9)]}}]};}}['_generateCopyPasteMutations'](_0x511d4f,_0x44524b){const _0x3ea5ec=_0x518ea5;let {toUnitId:_0x38d1dd,toSubUnitId:_0x12a65f,drawing:_0x4d9098,newTransforms:_0x2f4e1a}=_0x511d4f,_0x25d4e3=(0x0,t[_0x3ea5ec(0x1fd)])(),_0x5aa4be={..._0x4d9098,'unitId':_0x38d1dd,'subUnitId':_0x12a65f,'drawingId':_0x25d4e3,'transform':_0x2f4e1a[_0x3ea5ec(0x268)],'sheetTransform':_0x2f4e1a[_0x3ea5ec(0x460)]},{redo:_0x78531b,undo:_0x2117ff,objects:_0x17bc44}=this[_0x3ea5ec(0x183)]['getBatchAddOp']([_0x5aa4be]),_0x168592=_0x44524b['dataSource']['getRangeInfo'](),{chartType:_0xd84abe,context:_0x25297e,style:_0x31ee34,dataAggregation:_0x5e1977}=_0x44524b[_0x3ea5ec(0x29a)]();return{'redos':[{'id':r[_0x3ea5ec(0x38f)]['id'],'params':{'unitId':_0x38d1dd,'subUnitId':_0x12a65f,'type':r[_0x3ea5ec(0x23e)][_0x3ea5ec(0x3a6)],'op':_0x78531b,'objects':_0x17bc44}},{'id':e[_0x3ea5ec(0x257)]['id'],'params':{'unitId':_0x38d1dd,'subUnitId':_0x12a65f,'chartId':_0x25d4e3,'chartType':_0xd84abe,...(0x0,e[_0x3ea5ec(0x1fc)])(_0x168592),'context':_0x25297e,'style':_0x31ee34,'dataAggregation':_0x5e1977}}],'undos':[{'id':r[_0x3ea5ec(0x38f)]['id'],'params':{'unitId':_0x38d1dd,'subUnitId':_0x12a65f,'type':r[_0x3ea5ec(0x23e)]['REMOVE'],'op':_0x2117ff,'objects':_0x17bc44}},{'id':e[_0x3ea5ec(0x20b)]['id'],'params':{'unitId':_0x38d1dd,'subUnitId':_0x12a65f,'chartId':_0x25d4e3}}]};}[_0x518ea5(0x1a7)](_0x2a662d,_0x38b3e5,_0x5c462c){const _0x4bb8a8=_0x518ea5;let {range:_0x1f738b,skeleton:_0x59dcd3}=_0x38b3e5,{range:_0x1a5ff4,skeleton:_0x24d896}=_0x5c462c,{transform:_0x419ebf,sheetTransform:_0x239812}=_0x2a662d,_0x26ba8f={..._0x419ebf};if(_0x1f738b){let _0x229e97=(0x0,l[_0x4bb8a8(0x386)])(_0x59dcd3,_0x1f738b),_0x362d5a=(0x0,l[_0x4bb8a8(0x386)])(_0x24d896,_0x1a5ff4);if(_0x229e97&&_0x362d5a){let _0x4f3ed2=_0x362d5a['startX']-_0x229e97[_0x4bb8a8(0x3e5)],_0xa9c06=_0x362d5a['startY']-_0x229e97[_0x4bb8a8(0x408)];_0x26ba8f[_0x4bb8a8(0x370)]=(_0x26ba8f[_0x4bb8a8(0x370)]??0x0)+_0x4f3ed2,_0x26ba8f[_0x4bb8a8(0x2a4)]=(_0x26ba8f[_0x4bb8a8(0x2a4)]??0x0)+_0xa9c06;}}else{let _0x4553b4=(0x0,l['attachRangeWithCoord'])(_0x24d896,_0x1a5ff4);_0x26ba8f[_0x4bb8a8(0x370)]=_0x4553b4==null?void 0x0:_0x4553b4[_0x4bb8a8(0x3e5)],_0x26ba8f['top']=_0x4553b4==null?void 0x0:_0x4553b4[_0x4bb8a8(0x408)];}return{'transform':_0x26ba8f,'sheetTransform':(0x0,r[_0x4bb8a8(0x30b)])(_0x26ba8f,_0x24d896)??_0x239812};}};X=I([F(0x0,(0x0,t['Inject'])(l[_0x518ea5(0x276)])),F(0x1,(0x0,t[_0x518ea5(0x293)])(a[_0x518ea5(0x1f5)])),F(0x2,(0x0,t[_0x518ea5(0x293)])(r[_0x518ea5(0x151)])),F(0x3,(0x0,t[_0x518ea5(0x293)])(e[_0x518ea5(0x440)]))],X);let Z=class extends t[_0x518ea5(0x365)]{constructor(_0x557b7d,_0x15c6e2,_0x6735c,_0x485d37){const _0x143c5a=_0x518ea5;super(),this[_0x143c5a(0x1ef)]=_0x557b7d,this[_0x143c5a(0x237)]=_0x15c6e2,this[_0x143c5a(0x394)]=_0x6735c,this[_0x143c5a(0x1c5)]=_0x485d37,this['_initPermission']();}[_0x518ea5(0x3e4)](){const _0x57a8a7=_0x518ea5;this[_0x57a8a7(0x380)](this['_commandService'][_0x57a8a7(0x15f)](_0xc69f3=>{const _0x36a1ed=_0x57a8a7;let _0x3b2424,_0x3b336a;if(_0xc69f3['id']===e[_0x36a1ed(0x38c)]['id']){let _0x1328fa=_0xc69f3[_0x36a1ed(0x412)];_0x3b2424=_0x1328fa[_0x36a1ed(0x205)],_0x3b336a=_0x1328fa[_0x36a1ed(0x409)];}else{if(_0xc69f3['id']===e[_0x36a1ed(0x333)]['id']||_0xc69f3['id']===e[_0x36a1ed(0x1b2)]['id']){let _0x4db8a0=_0xc69f3[_0x36a1ed(0x412)];_0x3b2424=_0x4db8a0[_0x36a1ed(0x205)],_0x3b336a=this[_0x36a1ed(0x1c5)]['getSubUnitId'](_0x4db8a0[_0x36a1ed(0x205)],_0x4db8a0[_0x36a1ed(0x34e)]);}}!_0x3b2424||!_0x3b336a||this['_sheetPermissionCheckController'][_0x36a1ed(0x3ee)]({'workbookTypes':[l[_0x36a1ed(0x368)]],'worksheetTypes':[l['WorksheetEditPermission']]},_0x3b2424,_0x3b336a)||this[_0x36a1ed(0x394)][_0x36a1ed(0x431)](this[_0x36a1ed(0x237)]['t'](_0x36a1ed(0x292)));}));}};Z=I([F(0x0,(0x0,t['Inject'])(t[_0x518ea5(0x44c)])),F(0x1,(0x0,t[_0x518ea5(0x293)])(t[_0x518ea5(0x486)])),F(0x2,(0x0,t[_0x518ea5(0x293)])(l['SheetPermissionCheckController'])),F(0x3,(0x0,t[_0x518ea5(0x293)])(e[_0x518ea5(0x418)]))],Z);let Q=class extends t['Disposable']{constructor(_0x2cfdc7,_0x4f9f67){const _0x349fa3=_0x518ea5;super(),this[_0x349fa3(0x24a)]=_0x4f9f67,this['disposeWithMe'](_0x2cfdc7[_0x349fa3(0x33d)](this));}['supports'](_0x3d13c2){const _0x23314a=_0x518ea5;return'unitId'in _0x3d13c2&&_0x23314a(0x409)in _0x3d13c2;}['exportImage'](_0x48f58f){const _0x141961=_0x518ea5;return this[_0x141961(0x24a)][_0x141961(0x18e)](_0x48f58f['getId']());}};Q=I([F(0x0,(0x0,t[_0x518ea5(0x293)])(s[_0x518ea5(0x3fc)])),F(0x1,(0x0,t[_0x518ea5(0x293)])(B))],Q);let $=class extends t[_0x518ea5(0x17f)]{constructor(_0x434201=b,_0x41f335,_0x11108b,_0x29a3ac){const _0x15ba03=_0x518ea5;super(),this[_0x15ba03(0x32d)]=_0x434201,this[_0x15ba03(0x34b)]=_0x41f335,this[_0x15ba03(0x169)]=_0x11108b,this['_commandService']=_0x29a3ac,M(this,_0x15ba03(0x236),void 0x0);let {..._0x49d95f}=(0x0,t[_0x15ba03(0x2be)])({},b,this[_0x15ba03(0x32d)]);this[_0x15ba03(0x236)]=_0x49d95f,this['_configService'][_0x15ba03(0x1b3)](y,_0x49d95f),this[_0x15ba03(0x297)]();}[_0x518ea5(0x1ee)](){const _0x3dcecf=_0x518ea5;this[_0x3dcecf(0x34b)]['add']([Y]),this[_0x3dcecf(0x34b)][_0x3dcecf(0x35f)](Y);let _0x3bd31b=this[_0x3dcecf(0x34b)],_0x5486f4=[[R,{'useClass':z}],[L,{'useClass':ke}],[we],[B],[Q],[H],[K],[q],[X],[J],[Z]],_0x4153e5=[[H],[q],[K],[Q],[R],[X],[J],[Z]];this[_0x3dcecf(0x236)]['enableChartElementFloatMenu']&&(_0x5486f4[_0x3dcecf(0x263)]([G]),_0x4153e5['push']([G])),_0x5486f4[_0x3dcecf(0x320)](_0x3826a4=>_0x3bd31b['add'](_0x3826a4)),(0x0,t[_0x3dcecf(0x426)])(this['_injector'],_0x4153e5);}[_0x518ea5(0x191)](){const _0x457139=_0x518ea5;var _0x5d061d;(_0x5d061d=this[_0x457139(0x34b)][_0x457139(0x35f)](H))==null||_0x5d061d[_0x457139(0x244)]();}['_initCommands'](){const _0x54e8fb=_0x518ea5;[k,T,E,D,O,S,x][_0x54e8fb(0x320)](_0x138719=>this[_0x54e8fb(0x380)](this[_0x54e8fb(0x1ef)][_0x54e8fb(0x3c3)](_0x138719)));}};M($,_0x518ea5(0x2e5),t[_0x518ea5(0x32f)][_0x518ea5(0x415)]),M($,_0x518ea5(0x15c),_0x518ea5(0x44b)),M($,'packageName',qe),M($,_0x518ea5(0x2fd),Je),$=I([(0x0,t[_0x518ea5(0x311)])(v[_0x518ea5(0x1db)],n[_0x518ea5(0x2b2)],p[_0x518ea5(0x33a)],l[_0x518ea5(0x1bf)],r[_0x518ea5(0x3bb)],s[_0x518ea5(0x2f5)],e['UniverSheetsChartPlugin'],i['UniverSheetsDrawingUIPlugin'],a[_0x518ea5(0x160)]),F(0x1,(0x0,t['Inject'])(t[_0x518ea5(0x15d)])),F(0x2,t[_0x518ea5(0x1ac)]),F(0x3,t['ICommandService'])],$),exports[_0x518ea5(0x1e8)]=R,exports[_0x518ea5(0x375)]=y,Object[_0x518ea5(0x200)](exports,_0x518ea5(0x15b),{'enumerable':!0x0,'get':function(){return H;}}),exports[_0x518ea5(0x3ef)]=fe,Object[_0x518ea5(0x200)](exports,_0x518ea5(0x374),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x518ea5(0x200)](exports,'UniverSheetsChartUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});