@univerjs-pro/docs-chart-ui 1.0.0-beta.0 → 1.0.0-beta.2

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 (99) 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 +28 -4
  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/components/DocChartDataEditor.d.ts +6 -4
  63. package/lib/types/components/DocChartPreview.d.ts +3 -3
  64. package/lib/types/controllers/doc-chart-clipboard.controller.d.ts +4 -4
  65. package/lib/types/controllers/doc-chart-drawing-edit.controller.d.ts +2 -2
  66. package/lib/types/controllers/doc-chart-snapshot-refresh.controller.d.ts +3 -2
  67. package/lib/types/locale/en-US.d.ts +3 -0
  68. package/lib/types/services/chart-image-export-provider.d.ts +21 -0
  69. package/lib/types/services/doc-chart-active-render.service.d.ts +4 -0
  70. package/lib/types/services/doc-chart-data-edit.service.d.ts +8 -6
  71. package/lib/types/services/doc-chart-host.d.ts +4 -1
  72. package/lib/types/services/doc-chart-insert.service.d.ts +4 -3
  73. package/lib/types/services/doc-chart-print.service.d.ts +18 -5
  74. package/lib/types/services/doc-chart-render.service.d.ts +3 -3
  75. package/lib/types/services/doc-chart-snapshot-render.service.d.ts +6 -3
  76. package/lib/types/services/doc-chart-ui.service.d.ts +3 -3
  77. package/lib/types/views/print-chart/index.d.ts +1 -9
  78. package/lib/umd/index.js +1 -1
  79. package/lib/umd/locale/ar-SA.js +1 -1
  80. package/lib/umd/locale/ca-ES.js +1 -1
  81. package/lib/umd/locale/de-DE.js +1 -1
  82. package/lib/umd/locale/en-US.js +1 -1
  83. package/lib/umd/locale/es-ES.js +1 -1
  84. package/lib/umd/locale/fa-IR.js +1 -1
  85. package/lib/umd/locale/fr-FR.js +1 -1
  86. package/lib/umd/locale/id-ID.js +1 -1
  87. package/lib/umd/locale/it-IT.js +1 -1
  88. package/lib/umd/locale/ja-JP.js +1 -1
  89. package/lib/umd/locale/ko-KR.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/vi-VN.js +1 -1
  95. package/lib/umd/locale/zh-CN.js +1 -1
  96. package/lib/umd/locale/zh-HK.js +1 -1
  97. package/lib/umd/locale/zh-TW.js +1 -1
  98. package/package.json +17 -17
  99. package/lib/types/utils/ChartPanelOptions.d.ts +0 -1
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x370085=_0x19d9;(function(_0x4e06e9,_0x1e73a4){const _0x470def=_0x19d9,_0x2fee81=_0x4e06e9();while(!![]){try{const _0x13f324=parseInt(_0x470def(0x31f))/0x1+-parseInt(_0x470def(0x27f))/0x2+parseInt(_0x470def(0x183))/0x3*(-parseInt(_0x470def(0x36d))/0x4)+parseInt(_0x470def(0x1d3))/0x5+parseInt(_0x470def(0x299))/0x6+-parseInt(_0x470def(0x35f))/0x7+-parseInt(_0x470def(0x17f))/0x8*(-parseInt(_0x470def(0x25e))/0x9);if(_0x13f324===_0x1e73a4)break;else _0x2fee81['push'](_0x2fee81['shift']());}catch(_0x51fe7e){_0x2fee81['push'](_0x2fee81['shift']());}}}(_0x32c9,0x47652));import{CommandType as _0x2e829f,DOC_DRAWING_PRINTING_COMPONENT_KEY as _0x56ed43,DataStreamTreeTokenType as _0x5cf879,DependentOn as _0x5b8479,Disposable as _0x3fb628,DrawingTypeEnum as _0x486f2e,ICommandService as _0x1102d3,IConfigService as _0x1189b6,IUniverInstanceService as _0x45a8d9,Inject as _0x1d3b66,Injector as _0x26d120,LocaleService as _0x294e5d,Optional as _0x466a03,Plugin as _0x1b6c9f,Tools as _0x2a847b,UniverInstanceType as _0x4c0d56,createIdentifier as _0x157995,generateRandomId as _0x272bce,merge as _0x242c1a,toDisposable as _0x20a8ed,touchDependencies as _0xf1b69}from'@univerjs/core';import{ChartAxisBoundsFields as _0xac476f,ChartAxisFormatTextField as _0x3f10ce,ChartAxisLabelStyleFields as _0x2a9403,ChartAxisLabelVisibilityField as _0x370bfe,ChartAxisLineVisibilityField as _0x52e207,ChartAxisReverseField as _0x233339,ChartAxisTickVisibilityField as _0xe20ab8,ChartAxisTitleFields as _0x264ee1,ChartCommonDataMappingSection as _0x4c25b8,ChartEditBlockTitle as _0x419dfd,ChartEditPanel as _0x388f27,ChartEditPanelSection as _0x46938f,ChartEditPanelTab as _0x18a3ea,ChartEditPanelTabs as _0x33e23b,ChartEditorCapability as _0x4e979,ChartEditorProvider as _0x1c5115,ChartFunnelStyleSection as _0x5108e8,ChartGradientFillField as _0x2eccf7,ChartGridlineVisibilityField as _0x36d7e9,ChartGridlineWidthField as _0x562724,ChartHeatmapStyleSection as _0x25c002,ChartHostAdapter as _0x56d116,ChartIndicatorLineColorField as _0x4248c8,ChartIndicatorLineTypeField as _0xd2aaad,ChartInlineTableEditor as _0x3b5356,ChartLegendFontSizeField as _0x53f01d,ChartLegendPositionField as _0x2952a0,ChartLegendRoot as _0x222ccb,ChartLegendSelectModeField as _0x423573,ChartLegendWrapField as _0x8ebe10,ChartLineAndAreaSection as _0x526006,ChartMainTitleFields as _0x473013,ChartNumberFormatTextField as _0x3a507e,ChartParetoSeriesSection as _0x11e677,ChartPieStyleSection as _0x55cc81,ChartRadarStyleSection as _0x11afe2,ChartRelationStyleSection as _0x14a1d7,ChartSectionAccordion as _0x445cdb,ChartSectionAccordionContent as _0x2a63c8,ChartSectionAccordionItem as _0x3d2e39,ChartSectionAccordionTrigger as _0x32cc2b,ChartSeriesBorderFields as _0x19b95a,ChartSeriesFillFields as _0x58d093,ChartSeriesLabelFontSizeField as _0x14a1c6,ChartSeriesLabelPositionField as _0x13fa24,ChartSeriesLabelVisibilityField as _0x3cb181,ChartSeriesPointFields as _0x5a5d2b,ChartSeriesRoot as _0x558cd7,ChartSnapshotQueue as _0x574166,ChartStackField as _0x162cf8,ChartStyleSection as _0x47110e,ChartSubtitleFields as _0x38844b,ChartThemeField as _0xa4bec0,ChartTitleFontSizeFields as _0x4af163,ChartTypeField as _0x5ad0de,ChartTypeSpecificDataSection as _0xb15be1,ChartTypeSpecificSetupSection as _0x524b01,ChartTypeSpecificStyleSection as _0x376487,ChartUIService as _0x30a1fa,ChartViewStateRegistry as _0x569c77,ChartWaterfallSetupFields as _0xd88137,ChartWaterfallStyleSection as _0x899079,ChartWordCloudRepeatField as _0x2bc0ea,ChartWordCloudRoot as _0x13df4c,ChartWordCloudShapeField as _0x20dd26,DEFAULT_CHART_AXIS_VALUES as _0x2a55b1,DEFAULT_CHART_FUNNEL_VALUES as _0x159bbf,DEFAULT_CHART_HEATMAP_VALUES as _0x5ded24,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0xf1a99d,DEFAULT_CHART_LEGEND_VALUES as _0x3084ce,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x55e231,DEFAULT_CHART_PARETO_VALUES as _0x2afac3,DEFAULT_CHART_PIE_VALUES as _0x5b6fce,DEFAULT_CHART_RADAR_VALUES as _0x26b681,DEFAULT_CHART_RELATION_VALUES as _0xe0c7dc,DEFAULT_CHART_SERIES_VALUES as _0x31069a,DEFAULT_CHART_STYLE_VALUES as _0x48781e,DEFAULT_CHART_TITLE_VALUES as _0x2ec240,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0xc90661,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x2c45ad,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x498979,InlineChartCreationIssueCode as _0x53a067,STATIC_CHART_TYPE_CATALOG as _0x2858fd,UniverChartUIPlugin as _0x29ceb3,buildChartTypeSelectOptions as _0x41e0f0,chartTypeSupportsCapability as _0x4aa2a7,chartTypeSupportsLineAndAreaStyle as _0x3468ce,compactInlineTableValues as _0x34a4d3,createChartInlineStarterData as _0x3e5a9c,getChartInlineTableMinColumns as _0x5227ed,resolveChartEditPanelRoute as _0x42cbe4,resolveChartElementSelection as _0x2fbd28,tryBuildInlineChartCreationPlan as _0x4bd0dc,tryPrepareInlineChartData as _0x4d1ff5,useChartEditorChartType as _0x1d45ed,useChartEditorHasRightAxis as _0x2b8a96}from'@univerjs-pro/chart-ui';import{ChartHostRenderMode as _0x4c477b,ChartThemeService as _0xe004fc,ChartTypeBits as _0x4a848b,DataUrlImageChartHost as _0x77a63,IChartRenderModelManagerService as _0x483a6f,buildInlineChartTableDataSet as _0x250b4d,chartBitsUtils as _0x4aaca1,createStaticChartRuntime as _0x24a9c,echarts as _0x2a0d9c,getChartHostFrameContentRect as _0x52c1da,parseInlineChartTable as _0x1973ff,registerWordCloudChart as _0x3ef37e,resolveChartRuntimeStyle as _0x523546,resolveDefaultChartHostFrameStyle as _0x1afd1c,shouldComposeChartHostFrame as _0x2c0585}from'@univerjs-pro/engine-chart';import{Button as _0x407e9a,Select as _0x111a19}from'@univerjs/design';function _0x32c9(){const _0x465299=['1.0.0-beta.0','_staticRenderController','appendChild','docs-chart-ui.common.insertChart','makeDirty','toPrimitive','_renderModelManager','sharingCount','textSelection$','getUnit','pluginName','Data','_registerComponents','stylizeSpec','_activeDomReadyDrawingKeys','insertRange','doc.operation.open-doc-chart-insert-dialog','_injector','BarPercentStacked','syncExecuteCommand','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','100%','PieStyle','find','Pareto','ChartStyle','context','applyHostStyle','subscribeEvent','titles','waterfall','docs-chart-ui.common.rightVerticalAxis','docs-chart-ui.candlestick.close','docs-chart-ui.section.gridlinesAndTicks','_getPositionState','univer-p-4\x20univer-text-sm\x20univer-text-gray-500','hide','docs-chart-ui.common.apply','chart','className','dispose','_setElementSize','issue','WordCloud','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','_init','_imageContentHidden','object','type','ChartAndAxisTitles','clientHeight','position$','textRanges','docs-chart-ui.common.chartType','border','indicatorLine','getRect','univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-flex-col\x20univer-overflow-hidden\x20univer-overscroll-contain','bottom','registerCommand','endIndex','_chartThemeService','disconnect','getCurrentRenderModel','setActiveChartById','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','univer-shrink-0\x20univer-px-3','has','doc-chart.dialog.insert','tab','_getDrawingRect','docs-chart-ui.common.tableDataEmpty','key','markReady','docs-chart-ui.common.chartAndAxisTitles','doc-chart-preview','match','index','docs-chart-ui.common.cancel','docs-chart-ui.common.inlineData','getDataSource','univer-flex\x20univer-flex-col\x20univer-gap-3','_hostStyle','source','DrawingDeleteIcon','univer-mt-2\x20univer-text-xs\x20univer-text-red-600','SHARED','sceneRect','startOffset','ready','getObjectIncludeInGroup','_updatePosition','src','doc-chart.data-editor','Axes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','addClipboardHook','default','ParetoBarSeries','docs-chart-ui.chord.source','6381kMJBUz','visible','docs-chart-ui.section.indicatorLine','doc-chart-style-panel','model','docs-chart-ui.common.verticalAxis','tabpanel','_configService','main','set','#ffffff','_docContentInsertService','min','univer-flex\x20univer-size-full\x20univer-min-w-0\x20univer-gap-5','labelId','getTextRanges','Style','config','BarStacked','position','doc-chart.dialog.data-editor','label','endOffset','_getPasteMutationInfos','rightY','univer-shrink-0','slice','Dom','_config','forEach','docs-chart-ui.section.pie','enabled','legend','827072moZlNV','docs-chart-ui.section.candlestick','docs-chart-ui.common.data','fill','docs-chart-ui.config','addFloatDom','syncLayout','changeSource','docs-chart-ui.candlestick.open','resolve','_appendChartResources','docs-chart-ui.active-chart','ParetoLineSeries','section','select','snapshotUpdated$','style','DrawingEditIcon','univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg','transform','packageName','string','B\x0918','createElement','initialRoute','Document\x20chart\x20','688680eWoODE','_drawingManagerService','getChartModel','relation','_requestSnapshot','LAYOUT','IndicatorLine','_layoutChanged$','map','requestSnapshot','lastIndexOf','observe','_requestSnapshotsForUnit','_instanceService','Pie','docs-chart-ui.common.duplicate','docs-chart-ui.section.sunburst','border-box','ChartIcon','ensureChartModel','_activate','univer-w-full\x20univer-justify-start','_createChartRenderInstanceContext','initTransformer','secondaryPlot','dataSources','_isDocChartDrawing','doc-chart.ui.service','AreaStacked','DUPLICATE','RightVerticalAxis','_registerDialogOperations','iterator','defineProperty','then','Radar','Legend','_docClipboardService','createChartInstance','getEditorState','alt','boxSizing','call','attachTransformerTo','add$','transparent','dataAggregation','_listenChartResourceMutations','openInsertDialog','remove','docs-chart-ui.common.series','column','collapsed','_removeRenderedCharts','docs-chart-ui.common.deleteChart','mergeMenu','contentRect','click','bind','version','_isActiveLayer','executeCommand','SECTION_BREAK','Gauge','_retryActivateFocusedChart','_initCommands','contains','value','join','dataStream','_captureInsertRange','docs-chart-ui.section.relation','refreshTransform$','doc','_snapshotRenderService','getChart','color','imageContentHidden','docs-chart-ui.candlestick.columnsError','direction$','delete','clipBounds','seriesId','_renderManagerService','length','_commandService','customBlockMappings','_refreshActivePosition','complete','_deactivate','remove$','VerticalAxis','borderRadius','docs-chart-ui.floatMenu.menuTitle.chart','some','target','composite','_shouldWaitForChartConfig','Treemap','setImageContentHidden','getDrawingDataForUnit','_menuManagerService','_resourceService','engine','docs-chart-ui.common.horizontalAxis','wordCloud','docs-chart-ui.common.editChart','HorizontalAxis','data','BUTTON','render','sourceDrawing','consumeInsertRange','width','_localeService','_initMenus','univer-min-h-0\x20univer-flex-1','_prepareStandaloneInsertLine','onStarting','size','#4086f4','_manageHostSize','setActiveDomReady','_getContentRect','_univerInstanceService','Relation','mountChart','add','univer-flex\x20univer-flex-col\x20univer-gap-2','checkMounted','docs-chart-ui.section.paretoLine','Chord','univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-white\x20dark:!univer-bg-gray-900','onClose','485141LnuQtA','_docSelectionManagerService','getRenderUnitById','status','unitId','charts','push','getFocusDrawings','OPERATION','univer-text-xs\x20univer-text-red-600','Sunburst','breakOffsets','register','_getChartDrawing','_host','params','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','backgroundColor','getBoundingClientRect','pieSecondaryPlotType','docs-chart-ui.common.heatmap','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','docs-chart-ui.close','dataSourceId','_canvasFloatDomService','docs-chart-ui.updateChartFailed','getDrawings','_syncChartImageVisibility','radius','DRAWING_CHART','LineAndArea','_drawingAdapterService','disposeWithMe','invalidateChart','round','pareto','insertChart','_createImageShape','startIndex','next','div','openEditorDialog','getCurrentUnitOfType','_initAdapter','defaultTableText','pipe','setClipBounds','button','getAncestorScale','univer-w-full\x20!univer-min-w-0','heatmap','Candlestick','doc-chart.editor-dialog','docs-chart-ui.common.category','values','_renderEntry','GridlinesAndTicks','duplicate','-data-source','_getDrawingSearch','getRuntimeContext','docs-chart-ui.section.histogram','_getRenderRect','_getOrCreatePastedDataSourceId','2299710HHTCTp','insertChartFromText','setConfig','MEDIA','docs-chart-ui.section.radar','_getDrawing','scene','devicePixelRatio','getHostStyle','docs-chart-ui.common.trendline','docs-chart-ui.section.wordCloud','\x20has\x20no\x20render\x20config.','_resolveInsertPosition','focus$','237268SJWLdZ','.below','angle','indexOf','_renderService','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','WaterfallSeries','_applyHostStyle','change','parseFloat','plan','Histogram','dataSource','top','docs-chart-ui.section.waterfall','-tab','deepClone','_pasteAdapterService','dblclick','segmentId','getDrawingOrder','pie','_mountNode','docs-chart-ui.common.chartStyle','docs-chart-ui.section.lineAndArea','2696ugoqGj','getUnitId','_snapshotService','docs-chart-ui.chord.target','6AleIxD','route','style$','_syncRenderedChartVisibility','__docsChartResource','constructor','catch','_modelService','_activeLayer','EmptyData','chartType$','show','drawingId','waterfallStyle','radar','root','targetDrawing','height','chartId','getChartIdsByDataSource','docs-chart-ui.common.legend','Heatmap','print','current','parseInt','context$','max','onModifyData','getRealBound','Column','createRenderInput','clientWidth','barStyle','docs-chart-ui.common.valueField','min(560px,\x20calc(100vh\x20-\x20180px))','primary','subscribe','decorate','display','relative','chartContext','docs-chart-ui.chartTypes.','getDrawingByParam','replaceChildren','_draw','UniverDocsChartUIPlugin','onPreviewChartTypeChange','overflow','getDrawingEditable','_componentManager','PARAGRAPH','removeObject','lineAndArea','transformerConfig','chartInvalidated$','printChart','UNIVER_DOC','block','_renderCharts','get','setActiveChartRuntime','docs-chart-ui.chartNotFound','baseOn','config$','getBody','symbol','getViewport','_floatingToolbarAdapterService','VIEW_MAIN','split','every','_subscribeRender','image','subUnitId','docTransform','unsubscribe','C\x099','docs-chart-ui.common.customize','activeRuntimeModel','order','1571400tdITgY','funnel','markNotReady','_requestSnapshotsForSearches','updateData','filter','right','doc-chart.dialog.editor','docs-chart-ui.common.setup','chartType','docs-chart-ui.common.insertChartFailed','addObject','img','axis','docs-chart-ui.section.treemap','univer-flex\x20univer-justify-end\x20univer-gap-2','registerAdapter','positionObserver','renderRect','_getActiveRenderRect','Series','dataUrl','left','_dialogService','drawingType','_handleFocus','mode','onCommandExecuted','_forEachChartDrawing','dispatchEvent','series','doc-chart-data-panel','A\x0912','function','shared','hidden','doc-chart.insert-panel'];_0x32c9=function(){return _0x465299;};return _0x32c9();}import{CanvasFloatDomService as _0xb007f5,ComponentManager as _0xe8ac0,ContextMenuGroup as _0x513559,ContextMenuPosition as _0x59d1d6,IDialogService as _0x2f2c2e,IMenuManagerService as _0x22c432,MenuItemType as _0x2b9f44,RibbonInsertGroup as _0xce7917,getMenuHiddenObservable as _0xd206c3,useDependency as _0x2faff5,useObservable as _0x2fd9cf}from'@univerjs/ui';import{useEffect as _0x5ca4c0,useMemo as _0x272fc7,useRef as _0x1810f9,useState as _0x32386d}from'react';import{jsx as _0x385564,jsxs as _0x440664}from'react/jsx-runtime';import{DocChartModelService as _0x430122,DocChartResourceService as _0x1ece1f,DocumentChartBuilderAdapter as _0x3cf2f7,DuplicateDocChartDataSourceCommand as _0x5e9f47,InsertDocChartCommand as _0x2e8b2c,RemoveDocChartDataSourceMutation as _0xbf4392,RemoveDocChartSnapshotMutation as _0xa94a83,SetDocChartDataSourceMutation as _0x13c244,SetDocChartSnapshotMutation as _0x3142bb,UniverDocsChartPlugin as _0x3557d0,UpdateDocChartConfigCommand as _0x5845fd,UpdateDocChartDataSourceCommand as _0x1b6efb}from'@univerjs-pro/docs-chart';import{DocContentInsertService as _0x5eca17,DocSelectionManagerService as _0x585f68,UniverDocsPlugin as _0x1ea545}from'@univerjs/docs';import{BreakLineCommand as _0x228838,DOC_CONTENT_INSERT_MENU_ID as _0x41572f,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x54b479,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x532c23,EMPTY_PARAGRAPH_MENU_ID as _0x5ed26d,IDocClipboardPasteAdapterService as _0x5c8b01,IDocClipboardService as _0x5923ec,INSERT_BELLOW_MENU_ID as _0xdc274d,UniverDocsUIPlugin as _0x158552,VIEWPORT_KEY as _0x18b052,disableMenuWhenHeaderFooterEditing as _0x115128}from'@univerjs/docs-ui';import{IDocDrawingAdapterService as _0x5c3c79,RemoveDocDrawingCommand as _0xc3f9e9,UniverDocsDrawingPlugin as _0xbcdee4}from'@univerjs/docs-drawing';import{DocDrawingFloatingToolbarAdapterService as _0x51ec66,UniverDocsDrawingUIPlugin as _0x399d04}from'@univerjs/docs-drawing-ui';import{BehaviorSubject as _0x32a12d,Observable as _0x334c6a,Subject as _0x3240a4,combineLatest as _0xcd3af2,filter as _0x515dd0,map as _0x5eb2ec}from'rxjs';import{UniverLicensePlugin as _0x2bc7c7}from'@univerjs-pro/license';import{IDrawingManagerService as _0x36bc12,UniverDrawingPlugin as _0x30d9e0,getDrawingShapeKeyByDrawingSearch as _0x287631}from'@univerjs/drawing';import{DRAWING_OBJECT_LAYER_INDEX as _0x5cbf20,IRenderManagerService as _0x4f1cbe,Image as _0x51e48c,UniverRenderEnginePlugin as _0x23d20a}from'@univerjs/engine-render';const I={'id':_0x370085(0x208),'type':_0x2e829f[_0x370085(0x327)],'handler'(){return!0x0;}},L={'id':'doc.operation.open-doc-chart-editor-dialog','type':_0x2e829f['OPERATION'],'handler'(){return!0x0;}},$n=_0x370085(0x257),er=_0x370085(0x272);let tr=function(_0x51f97a){const _0x4cdad3=_0x370085;return _0x51f97a[_0x4cdad3(0x250)]=_0x4cdad3(0x1f5),_0x51f97a[_0x4cdad3(0x2b6)]=_0x4cdad3(0x358),_0x51f97a;}({});function nr(_0x593df5){const _0x12842a=_0x370085;let _0x13a221=_0x2faff5(_0x294e5d),{values:_0x450331,sharingCount:_0x30fb59=0x1,onCancel:_0xd105b5,onChange:_0x499d32,onSubmit:_0x29fde4}=_0x593df5,[_0x5539d9,_0x3317ad]=_0x32386d(()=>_0x450331['map'](_0x1ec762=>[..._0x1ec762])),[_0x5df843,_0x5b3661]=_0x32386d(null),_0x178640=_0x30fb59>0x1,_0x4d819d=_0x22a102=>{_0x3317ad(_0x22a102),_0x499d32==null||_0x499d32(_0x22a102);},_0x52b0d6=_0x1ef5fd=>{const _0x204fb6=_0x19d9;let _0x12fc43=_0x34a4d3(_0x5539d9);if(_0x12fc43[_0x204fb6(0x2ed)]===0x0){_0x5b3661(_0x13a221['t'](_0x204fb6(0x241)));return;}_0x5b3661(null),_0x29fde4(_0x12fc43,_0x1ef5fd);};return _0x440664(_0x12842a(0x347),{'className':_0x12842a(0x372),'children':[_0x385564(_0x12842a(0x347),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','children':_0x385564(_0x3b5356,{'values':_0x5539d9,'parsePastedText':_0x1973ff,'onChange':_0x4d819d})}),_0x5df843&&_0x385564(_0x12842a(0x347),{'className':_0x12842a(0x328),'children':_0x5df843}),_0x440664(_0x12842a(0x347),{'className':_0x12842a(0x224),'children':[_0xd105b5&&_0x385564(_0x407e9a,{'type':'button','variant':'default','onClick':_0xd105b5,'children':_0x13a221['t']('docs-chart-ui.common.cancel')}),_0x178640&&_0x385564(_0x407e9a,{'type':_0x12842a(0x34e),'variant':_0x12842a(0x25b),'onClick':()=>_0x52b0d6('duplicate'),'children':_0x13a221['t'](_0x12842a(0x2a8))}),_0x385564(_0x407e9a,{'type':_0x12842a(0x34e),'variant':_0x12842a(0x1a6),'onClick':()=>_0x52b0d6(_0x12842a(0x1f5)),'children':_0x13a221['t'](_0x12842a(0x21d))})]})]});}function R(_0x1d1188,_0x912223){return function(_0x2d01e1,_0x3bda28){_0x912223(_0x2d01e1,_0x3bda28,_0x1d1188);};}function z(_0x69a3af,_0x3b0447,_0xadec5b,_0xcbc71d){const _0x51a371=_0x370085;var _0x11694c=arguments[_0x51a371(0x2ed)],_0x32f233=_0x11694c<0x3?_0x3b0447:_0xcbc71d===null?_0xcbc71d=Object['getOwnPropertyDescriptor'](_0x3b0447,_0xadec5b):_0xcbc71d,_0x504f12;if(typeof Reflect==_0x51a371(0x227)&&typeof Reflect[_0x51a371(0x1a8)]==_0x51a371(0x1f4))_0x32f233=Reflect[_0x51a371(0x1a8)](_0x69a3af,_0x3b0447,_0xadec5b,_0xcbc71d);else{for(var _0x22e3ba=_0x69a3af[_0x51a371(0x2ed)]-0x1;_0x22e3ba>=0x0;_0x22e3ba--)(_0x504f12=_0x69a3af[_0x22e3ba])&&(_0x32f233=(_0x11694c<0x3?_0x504f12(_0x32f233):_0x11694c>0x3?_0x504f12(_0x3b0447,_0xadec5b,_0x32f233):_0x504f12(_0x3b0447,_0xadec5b))||_0x32f233);}return _0x11694c>0x3&&_0x32f233&&Object['defineProperty'](_0x3b0447,_0xadec5b,_0x32f233),_0x32f233;}let B=class{constructor(_0x3e2c79,_0x21348c){const _0x155f09=_0x370085;this[_0x155f09(0x2ee)]=_0x3e2c79,this[_0x155f09(0x2ff)]=_0x21348c;}[_0x370085(0x2c0)](_0x329fd9,_0x2cabcd){const _0x172c50=_0x370085;let _0x548721=this['_resourceService'][_0x172c50(0x2e4)](_0x329fd9,_0x2cabcd),_0x4cc5ad=_0x548721?this[_0x172c50(0x2ff)]['getDataSource'](_0x329fd9,_0x548721[_0x172c50(0x336)]):void 0x0;return!_0x548721||!_0x4cc5ad?null:{'unitId':_0x329fd9,'chartId':_0x2cabcd,'dataSourceId':_0x4cc5ad['id'],'values':_0x4cc5ad[_0x172c50(0x355)][_0x172c50(0x2a1)](_0x4d2f3b=>[..._0x4d2f3b]),'sharingCount':this[_0x172c50(0x2ff)]['getDataSourceSharingCount'](_0x329fd9,_0x4cc5ad['id'])};}['updateDataFromText'](_0x140910,_0x4aead1,_0x54eea0,_0x35ba7c){const _0x1a4c31=_0x370085;let _0x13987e=_0x1973ff(_0x54eea0);return _0x13987e['length']!==0x0&&this[_0x1a4c31(0x1d7)](_0x140910,_0x4aead1,_0x13987e,_0x35ba7c);}[_0x370085(0x1d7)](_0xa36048,_0x2216f5,_0x318bb3,_0x47fad2){const _0x57c028=_0x370085;var _0x3ad7f1;let _0x3585ab=this[_0x57c028(0x2c0)](_0xa36048,_0x2216f5);if(!_0x3585ab||_0x318bb3[_0x57c028(0x2ed)]===0x0)return!0x1;let _0x1bf0a1=(_0x3ad7f1=this[_0x57c028(0x2ff)][_0x57c028(0x2e4)](_0xa36048,_0x2216f5))==null?void 0x0:_0x3ad7f1[_0x57c028(0x1dc)];if(_0x1bf0a1===void 0x0)return!0x1;let _0x2d3c01=_0x4d1ff5(_0x1bf0a1,_0x318bb3);if(!_0x2d3c01['ok'])return!0x1;let _0x56ba81=_0x3585ab[_0x57c028(0x336)];if(_0x47fad2===_0x57c028(0x358)&&_0x3585ab[_0x57c028(0x1ff)]>0x1){if(!this[_0x57c028(0x2ee)]['syncExecuteCommand'](_0x5e9f47['id'],{'unitId':_0xa36048,'chartId':_0x2216f5}))return!0x1;let _0x1cc281=this[_0x57c028(0x2ff)][_0x57c028(0x2e4)](_0xa36048,_0x2216f5);if(!_0x1cc281)return!0x1;_0x56ba81=_0x1cc281[_0x57c028(0x336)];}return this['_commandService']['syncExecuteCommand'](_0x1b6efb['id'],{'unitId':_0xa36048,'dataSourceId':_0x56ba81,'values':_0x2d3c01['values']});}};B=z([R(0x0,_0x1102d3),R(0x1,_0x1d3b66(_0x1ece1f))],B);const rr=_0x157995(_0x370085(0x2b4));let ir=class extends _0x30a1fa{constructor(_0x31e289,_0x2565ad,_0x180891){const _0x586dce=_0x370085;super(_0x180891),this[_0x586dce(0x18a)]=_0x31e289,this[_0x586dce(0x2ee)]=_0x2565ad;}get[_0x370085(0x1d1)](){const _0x132e16=_0x370085;return this[_0x132e16(0x18a)]['activeRuntimeModel'];}['executeChartUpdateConfig'](_0x54d90e){const _0x2386cb=_0x370085;let _0x47e70c=this['activeRuntimeModel'],_0x410af5=_0x54d90e[_0x2386cb(0x323)]??(_0x47e70c==null?void 0x0:_0x47e70c[_0x2386cb(0x323)]),_0x147241=_0x54d90e[_0x2386cb(0x195)]??(_0x47e70c==null?void 0x0:_0x47e70c[_0x2386cb(0x195)]);!_0x410af5||!_0x147241||this[_0x2386cb(0x2ee)]['executeCommand'](_0x5845fd['id'],{..._0x54d90e,'unitId':_0x410af5,'chartId':_0x147241});}};ir=z([R(0x0,_0x1d3b66(_0x430122)),R(0x1,_0x1102d3),R(0x2,_0x1d3b66(_0x569c77))],ir);const V={'axis':{..._0x2a55b1,'primaryGridLineVisible':!0x0,'secondaryGridLineVisible':!0x0},'legend':_0x3084ce,'lineAndArea':_0x55e231,'pareto':_0x2afac3,'funnel':_0x159bbf,'heatmap':_0x5ded24,'indicatorLine':_0xf1a99d,'pie':{..._0x5b6fce,'doughnutHole':0x0,'pieHole':0x0},'relation':{..._0xe0c7dc,'useValueAsSymbolSize':!0x1},'radar':_0x26b681,'series':{..._0x31069a,'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':_0x48781e,'titles':_0x2ec240,'waterfall':{..._0xc90661,'useSubtotal':!0x0},'waterfallStyle':_0x2c45ad,'wordCloud':_0x498979},ar=[_0x4a848b[_0x370085(0x352)],_0x4a848b['Histogram'],_0x4a848b[_0x370085(0x2fb)],_0x4a848b[_0x370085(0x329)],_0x4a848b['Gauge'],_0x4a848b[_0x370085(0x31c)]];function or(){const _0xad652e=_0x370085;let _0x39ba21=_0x1d45ed();return _0x385564(_0x2eccf7,{'visible':ar[_0xad652e(0x1c9)](_0x18c08f=>!_0x4aaca1['baseOn'](_0x39ba21,_0x18c08f))});}function sr(_0x19703d){const _0x23132d=_0x370085;return _0x440664(_0x3d2e39,{'id':_0x19703d['id'],'children':[_0x385564(_0x32cc2b,{'children':_0x19703d[_0x23132d(0x273)]}),_0x385564(_0x2a63c8,{'children':_0x19703d['children']})]});}function cr(_0x1f2dcb,_0x156f72=!0x1){const _0xe100cb=_0x370085;let _0x1f1983=_0x1f2dcb===_0x4a848b[_0xe100cb(0x223)],_0x1f6a75=_0x4aaca1[_0xe100cb(0x1c1)](_0x1f2dcb,_0x4a848b[_0xe100cb(0x2a7)]),_0x5ecf56=_0x1f2dcb===_0x4a848b[_0xe100cb(0x2bc)],_0x4239fb=_0x1f2dcb===_0x4a848b['Funnel'],_0x4cc573=_0x1f2dcb===_0x4a848b['Waterfall'],_0x295863=_0x1f2dcb===_0x4a848b[_0xe100cb(0x210)],_0x1d98ca=_0x1f2dcb===_0x4a848b[_0xe100cb(0x352)],_0x2ac350=_0x1f2dcb===_0x4a848b[_0xe100cb(0x378)],_0x55f548=_0x1f2dcb===_0x4a848b[_0xe100cb(0x2fb)],_0x463021=_0x1f2dcb===_0x4a848b[_0xe100cb(0x329)],_0x1521e0=_0x1f2dcb===_0x4a848b['Gauge'],_0x3b807d=_0x1f2dcb===_0x4a848b[_0xe100cb(0x31c)],_0x402a89=_0x1f2dcb===_0x4a848b['Relation'],_0xde8823=_0x1f2dcb===_0x4a848b[_0xe100cb(0x198)],_0x28a342=[_0x46938f[_0xe100cb(0x211)],_0x46938f[_0xe100cb(0x229)]];return _0x1f1983&&_0x28a342['push'](_0x46938f[_0xe100cb(0x223)]),_0x4aa2a7(_0x1f2dcb,_0x4e979['GeneralSeries'])&&!_0x295863&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x1e7)]),_0x3468ce(_0x1f2dcb)&&_0x28a342[_0xe100cb(0x325)](_0x46938f['LineAndArea']),_0x5ecf56&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x2bc)]),_0x4cc573&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x373)]),_0x295863&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x25c)],_0x46938f['ParetoLineSeries']),_0x1f6a75&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x20e)]),_0x4239fb&&_0x28a342[_0xe100cb(0x325)](_0x46938f['Funnel']),_0xde8823&&_0x28a342[_0xe100cb(0x325)](_0x46938f['Heatmap']),_0x402a89&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x316)]),_0x1d98ca&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x352)]),_0x2ac350&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x378)]),_0x55f548&&_0x28a342['push'](_0x46938f['Treemap']),_0x463021&&_0x28a342['push'](_0x46938f[_0xe100cb(0x329)]),_0x1521e0&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x2d8)]),_0x3b807d&&_0x28a342[_0xe100cb(0x325)](_0x46938f['Chord']),_0x4aa2a7(_0x1f2dcb,_0x4e979[_0xe100cb(0x2bd)])&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x2bd)]),_0x4aa2a7(_0x1f2dcb,_0x4e979[_0xe100cb(0x258)])&&(_0x28a342[_0xe100cb(0x325)](_0x46938f['HorizontalAxis'],_0x46938f[_0xe100cb(0x2f4)]),_0x156f72&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x2b7)]),_0x28a342['push'](_0x46938f[_0xe100cb(0x357)])),_0x4aa2a7(_0x1f2dcb,_0x4e979[_0xe100cb(0x29f)])&&_0x28a342[_0xe100cb(0x325)](_0x46938f[_0xe100cb(0x29f)]),_0x28a342;}function lr(_0x51f2a1){const _0x4baec2=_0x370085;return _0x440664('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[_0x385564(_0x52e207,{'axis':_0x51f2a1['axis'],'defaultValues':V[_0x4baec2(0x1e0)]}),_0x385564(_0x370bfe,{'axis':_0x51f2a1[_0x4baec2(0x1e0)],'defaultValues':V[_0x4baec2(0x1e0)]}),_0x385564(_0x233339,{'axis':_0x51f2a1[_0x4baec2(0x1e0)],'defaultValues':V[_0x4baec2(0x1e0)]}),_0x385564(_0xac476f,{'axis':_0x51f2a1[_0x4baec2(0x1e0)]}),_0x385564(_0x3f10ce,{'axis':_0x51f2a1[_0x4baec2(0x1e0)]}),_0x385564(_0x2a9403,{'axis':_0x51f2a1[_0x4baec2(0x1e0)],'defaultValues':V[_0x4baec2(0x1e0)]}),_0x385564(_0xe20ab8,{'axis':_0x51f2a1[_0x4baec2(0x1e0)],'defaultValues':V[_0x4baec2(0x1e0)]})]});}function ur(_0x33ec05){const _0x37b3ec=_0x370085;var _0x272ea4,_0x411070;let _0x5debe3=_0x2faff5(_0x294e5d),_0x3e6bfa=_0x1d45ed(),_0x391aa9=_0x2b8a96(),[_0x2e2887,_0x1ca633]=_0x32386d(null),_0x496b1c=_0x385564(_0x376487,{}),_0x5056c8={[_0x46938f[_0x37b3ec(0x352)]]:_0x5debe3['t'](_0x37b3ec(0x280)),[_0x46938f[_0x37b3ec(0x229)]]:_0x5debe3['t'](_0x37b3ec(0x244)),[_0x46938f[_0x37b3ec(0x211)]]:_0x5debe3['t'](_0x37b3ec(0x384)),[_0x46938f[_0x37b3ec(0x31c)]]:_0x5debe3['t']('docs-chart-ui.section.chord'),[_0x46938f['Funnel']]:_0x5debe3['t']('docs-chart-ui.section.funnel'),[_0x46938f[_0x37b3ec(0x2d8)]]:_0x5debe3['t']('docs-chart-ui.section.gauge'),[_0x46938f[_0x37b3ec(0x357)]]:_0x5debe3['t'](_0x37b3ec(0x219)),[_0x46938f['Heatmap']]:_0x5debe3['t'](_0x37b3ec(0x333)),[_0x46938f[_0x37b3ec(0x378)]]:_0x5debe3['t'](_0x37b3ec(0x35c)),[_0x46938f[_0x37b3ec(0x304)]]:_0x5debe3['t'](_0x37b3ec(0x301)),[_0x46938f[_0x37b3ec(0x29f)]]:_0x5debe3['t'](_0x37b3ec(0x260)),[_0x46938f[_0x37b3ec(0x2bd)]]:_0x5debe3['t'](_0x37b3ec(0x197)),[_0x46938f['LineAndArea']]:_0x5debe3['t'](_0x37b3ec(0x17e)),[_0x46938f[_0x37b3ec(0x25c)]]:_0x5debe3['t']('docs-chart-ui.section.paretoBar'),[_0x46938f[_0x37b3ec(0x28b)]]:_0x5debe3['t'](_0x37b3ec(0x31b)),[_0x46938f[_0x37b3ec(0x20e)]]:_0x5debe3['t'](_0x37b3ec(0x27c)),[_0x46938f[_0x37b3ec(0x2bc)]]:_0x5debe3['t'](_0x37b3ec(0x363)),[_0x46938f[_0x37b3ec(0x316)]]:_0x5debe3['t'](_0x37b3ec(0x2e0)),[_0x46938f[_0x37b3ec(0x2b7)]]:_0x5debe3['t'](_0x37b3ec(0x217)),[_0x46938f[_0x37b3ec(0x1e7)]]:_0x5debe3['t'](_0x37b3ec(0x2cb)),[_0x46938f[_0x37b3ec(0x329)]]:_0x5debe3['t'](_0x37b3ec(0x2a9)),[_0x46938f[_0x37b3ec(0x2fb)]]:_0x5debe3['t'](_0x37b3ec(0x1e1)),[_0x46938f['Trendline']]:_0x5debe3['t'](_0x37b3ec(0x368)),[_0x46938f['VerticalAxis']]:_0x5debe3['t'](_0x37b3ec(0x263)),[_0x46938f[_0x37b3ec(0x373)]]:_0x5debe3['t'](_0x37b3ec(0x37b)),[_0x46938f[_0x37b3ec(0x223)]]:_0x5debe3['t'](_0x37b3ec(0x369))};_0x5ca4c0(()=>{const _0x47af59=_0x37b3ec;var _0x159704;(_0x159704=_0x33ec05[_0x47af59(0x184)])!=null&&_0x159704[_0x47af59(0x28c)]&&_0x1ca633(_0x33ec05[_0x47af59(0x184)][_0x47af59(0x28c)]);},[_0x33ec05[_0x37b3ec(0x184)]]);let _0x363931={[_0x46938f[_0x37b3ec(0x211)]]:_0x385564(_0x47110e,{'defaultValues':V[_0x37b3ec(0x28f)],'showBodyFont':!0x1,'children':_0x385564(or,{})}),[_0x46938f[_0x37b3ec(0x229)]]:_0x440664(_0x37b3ec(0x347),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[_0x385564(_0x473013,{'commitMode':_0x37b3ec(0x375),'defaultValues':V['titles'],'showFont':!0x1}),_0x385564(_0x38844b,{'commitMode':_0x37b3ec(0x375),'defaultValues':V[_0x37b3ec(0x215)],'showFont':!0x1}),_0x385564(_0x264ee1,{'axis':'x','commitMode':_0x37b3ec(0x375),'defaultValues':V[_0x37b3ec(0x215)],'showAlignment':!0x1,'showFont':!0x1}),_0x385564(_0x264ee1,{'axis':'y','commitMode':_0x37b3ec(0x375),'defaultValues':V[_0x37b3ec(0x215)],'showAlignment':!0x1,'showFont':!0x1}),_0x385564(_0x264ee1,{'axis':_0x37b3ec(0x276),'commitMode':_0x37b3ec(0x375),'defaultValues':V['titles'],'showAlignment':!0x1,'showFont':!0x1}),_0x385564(_0x4af163,{'defaultValues':V['titles']})]}),[_0x46938f[_0x37b3ec(0x1e7)]]:_0x440664(_0x558cd7,{'defaultValues':V[_0x37b3ec(0x1f1)],'NumberFormatField':_0x3a507e,'selectedSeriesId':(_0x272ea4=_0x33ec05[_0x37b3ec(0x184)])==null?void 0x0:_0x272ea4[_0x37b3ec(0x2eb)],'children':[_0x385564(_0x58d093,{}),_0x385564(_0x19b95a,{'showColor':!0x1,'showOpacity':!0x1}),_0x385564(_0x5a5d2b,{'showColor':!0x1}),_0x385564(_0x3cb181,{}),_0x385564(_0x13fa24,{}),_0x385564(_0x14a1c6,{})]}),[_0x46938f[_0x37b3ec(0x33d)]]:_0x385564(_0x526006,{'defaultValues':V[_0x37b3ec(0x1b7)],'lineStyleControl':_0x37b3ec(0x28d)}),[_0x46938f[_0x37b3ec(0x223)]]:_0x440664(_0x13df4c,{'children':[_0x385564(_0x20dd26,{'defaultValues':V[_0x37b3ec(0x302)]}),_0x385564(_0x2bc0ea,{'defaultValues':V['wordCloud']})]}),[_0x46938f[_0x37b3ec(0x2bc)]]:_0x385564(_0x11afe2,{'defaultValues':V[_0x37b3ec(0x191)]}),[_0x46938f['WaterfallSeries']]:_0x385564(_0x899079,{'defaultValues':V[_0x37b3ec(0x190)],'NumberFormatField':_0x3a507e,'selectedSeriesId':(_0x411070=_0x33ec05[_0x37b3ec(0x184)])==null?void 0x0:_0x411070[_0x37b3ec(0x2eb)]}),[_0x46938f['ParetoBarSeries']]:_0x385564(_0x11e677,{'defaultValues':V[_0x37b3ec(0x342)],'NumberFormatField':_0x3a507e,'showDataPointEditor':!0x0,'target':_0x37b3ec(0x1a3)}),[_0x46938f['ParetoLineSeries']]:_0x385564(_0x11e677,{'defaultValues':V['pareto'],'NumberFormatField':_0x3a507e,'showDataPointEditor':!0x0,'target':'cumulativeLineStyle'}),[_0x46938f['PieStyle']]:_0x385564(_0x55cc81,{'defaultValues':V['pie'],'NumberFormatField':_0x3a507e}),[_0x46938f['Funnel']]:_0x385564(_0x5108e8,{'defaultValues':V[_0x37b3ec(0x1d4)],'gapControl':'number'}),[_0x46938f['Heatmap']]:_0x385564(_0x25c002,{'defaultValues':V[_0x37b3ec(0x351)]}),[_0x46938f['Relation']]:_0x385564(_0x14a1d7,{'defaultValues':V[_0x37b3ec(0x29c)]}),[_0x46938f[_0x37b3ec(0x2bd)]]:_0x385564(_0x222ccb,{'defaultValues':V[_0x37b3ec(0x27e)],'children':_0x440664(_0x37b3ec(0x347),{'className':_0x37b3ec(0x24b),'children':[_0x385564(_0x2952a0,{}),_0x385564(_0x8ebe10,{}),_0x385564(_0x423573,{}),_0x385564(_0x53f01d,{})]})}),[_0x46938f[_0x37b3ec(0x304)]]:_0x385564(lr,{'axis':'x'}),[_0x46938f[_0x37b3ec(0x2f4)]]:_0x385564(lr,{'axis':'y'}),[_0x46938f['RightVerticalAxis']]:_0x385564(lr,{'axis':_0x37b3ec(0x276)}),[_0x46938f[_0x37b3ec(0x357)]]:_0x440664(_0x37b3ec(0x347),{'className':_0x37b3ec(0x319),'children':[_0x385564(_0x36d7e9,{'axis':'x','defaultValues':V[_0x37b3ec(0x1e0)],'label':_0x5debe3['t'](_0x37b3ec(0x301))}),_0x385564(_0x36d7e9,{'axis':'y','defaultValues':V['axis'],'label':_0x5debe3['t'](_0x37b3ec(0x263))}),_0x440664(_0x37b3ec(0x347),{'className':_0x37b3ec(0x23a),'children':[_0x385564(_0x562724,{'axis':'x','defaultValues':V[_0x37b3ec(0x1e0)]}),_0x385564(_0x562724,{'axis':'y','defaultValues':V[_0x37b3ec(0x1e0)]})]})]}),[_0x46938f['IndicatorLine']]:_0x440664(_0x37b3ec(0x347),{'className':_0x37b3ec(0x319),'children':[_0x385564(_0x4248c8,{'defaultValues':V[_0x37b3ec(0x22f)]}),_0x385564(_0xd2aaad,{'defaultValues':V[_0x37b3ec(0x22f)]})]}),[_0x46938f['Candlestick']]:_0x496b1c,[_0x46938f[_0x37b3ec(0x378)]]:_0x496b1c,[_0x46938f[_0x37b3ec(0x2fb)]]:_0x496b1c,[_0x46938f[_0x37b3ec(0x329)]]:_0x496b1c,[_0x46938f[_0x37b3ec(0x2d8)]]:_0x496b1c,[_0x46938f[_0x37b3ec(0x31c)]]:_0x496b1c};return _0x385564(_0x445cdb,{'value':_0x2e2887,'onChange':_0x1ca633,'children':cr(_0x3e6bfa,_0x391aa9)[_0x37b3ec(0x2a1)](_0x3ce26f=>_0x385564(sr,{'id':_0x3ce26f,'label':_0x5056c8[_0x3ce26f],'children':_0x363931[_0x3ce26f]},_0x3ce26f))});}function dr(_0x3e3edc){const _0x2f4076=_0x370085;var _0x397fde;let _0x4503d8=_0x2faff5(_0x294e5d),[_0x120cb2,_0x101659]=_0x32386d(((_0x397fde=_0x3e3edc[_0x2f4076(0x297)])==null?void 0x0:_0x397fde[_0x2f4076(0x23f)])??_0x18a3ea[_0x2f4076(0x203)]),_0x230f82=_0x272fc7(()=>_0x41e0f0(_0x2858fd[_0x2f4076(0x2a1)](_0x11535f=>({..._0x11535f,'label':_0x4503d8['t'](_0x2f4076(0x1ac)+_0x11535f[_0x2f4076(0x26c)])}))),[_0x4503d8]);return _0x5ca4c0(()=>{const _0xc6385b=_0x2f4076;var _0x319f93;(_0x319f93=_0x3e3edc[_0xc6385b(0x297)])!=null&&_0x319f93[_0xc6385b(0x23f)]&&_0x101659(_0x3e3edc['initialRoute']['tab']);},[_0x3e3edc[_0x2f4076(0x297)]]),_0x440664(_0x2f4076(0x347),{'className':_0x2f4076(0x31d),'children':[_0x385564(_0x33e23b,{'ariaLabel':_0x4503d8['t'](_0x2f4076(0x303)),'className':_0x2f4076(0x23c),'items':[{'label':_0x4503d8['t'](_0x2f4076(0x1db)),'panelId':fr,'value':_0x18a3ea[_0x2f4076(0x203)]},{'label':_0x4503d8['t'](_0x2f4076(0x1d0)),'panelId':pr,'value':_0x18a3ea[_0x2f4076(0x26e)]}],'value':_0x120cb2,'onChange':_0x101659}),_0x120cb2===_0x18a3ea['Data']?_0x385564(_0x388f27,{'id':fr,'label':_0x4503d8['t'](_0x2f4076(0x1db)),'children':_0x440664('div',{'className':_0x2f4076(0x20c),'children':[_0x385564(_0x5ad0de,{'options':_0x230f82,'onChange':_0x3e3edc[_0x2f4076(0x1b1)]}),_0x385564(_0x524b01,{}),_0x385564(_0xa4bec0,{}),_0x385564(or,{}),_0x385564(_0x162cf8,{}),_0x440664(_0x2f4076(0x347),{'children':[_0x385564(_0x419dfd,{'title':_0x4503d8['t'](_0x2f4076(0x281))}),_0x385564(_0x407e9a,{'className':_0x2f4076(0x2ae),'onClick':_0x3e3edc[_0x2f4076(0x19e)],'children':_0x4503d8['t']('docs-chart-ui.common.editData')})]}),_0x385564(_0x4c25b8,{}),_0x385564(_0xb15be1,{}),_0x385564(_0xd88137,{'defaultValues':V[_0x2f4076(0x216)]})]})}):_0x385564(_0x388f27,{'id':pr,'label':_0x4503d8['t']('docs-chart-ui.common.customize'),'children':_0x385564(ur,{'route':_0x3e3edc[_0x2f4076(0x297)]})}),_0x3e3edc[_0x2f4076(0x31e)]&&_0x385564(_0x2f4076(0x347),{'className':'univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-px-1\x20univer-pb-4\x20univer-pt-4','children':_0x385564(_0x407e9a,{'type':_0x2f4076(0x34e),'variant':'default','onClick':_0x3e3edc[_0x2f4076(0x31e)],'children':_0x4503d8['t'](_0x2f4076(0x335))})})]});}const fr='doc-chart-setup-panel',pr=_0x370085(0x261);function _0x19d9(_0x18908c,_0x5c2a8a){_0x18908c=_0x18908c-0x17e;const _0x32c985=_0x32c9();let _0x19d915=_0x32c985[_0x18908c];return _0x19d915;}function mr(_0x2eeb17){'@babel/helpers - typeof';const _0x4bfca4=_0x370085;return mr=typeof Symbol==_0x4bfca4(0x1f4)&&typeof Symbol[_0x4bfca4(0x2b9)]==_0x4bfca4(0x1c4)?function(_0x3d6b77){return typeof _0x3d6b77;}:function(_0xe651cc){const _0x5d8726=_0x4bfca4;return _0xe651cc&&typeof Symbol==_0x5d8726(0x1f4)&&_0xe651cc[_0x5d8726(0x188)]===Symbol&&_0xe651cc!==Symbol['prototype']?_0x5d8726(0x1c4):typeof _0xe651cc;},mr(_0x2eeb17);}function hr(_0x2dbd2d,_0x379e36){const _0x2a49ab=_0x370085;if(mr(_0x2dbd2d)!=_0x2a49ab(0x227)||!_0x2dbd2d)return _0x2dbd2d;var _0x32ca12=_0x2dbd2d[Symbol[_0x2a49ab(0x1fd)]];if(_0x32ca12!==void 0x0){var _0x294578=_0x32ca12['call'](_0x2dbd2d,_0x379e36||_0x2a49ab(0x25b));if(mr(_0x294578)!=_0x2a49ab(0x227))return _0x294578;throw TypeError(_0x2a49ab(0x259));}return(_0x379e36===_0x2a49ab(0x294)?String:Number)(_0x2dbd2d);}function gr(_0x37e29b){const _0x912473=_0x370085;var _0x3ae472=hr(_0x37e29b,'string');return mr(_0x3ae472)==_0x912473(0x1c4)?_0x3ae472:_0x3ae472+'';}function H(_0x2dcf4f,_0x5acfe3,_0x362ad9){const _0x5c3634=_0x370085;return(_0x5acfe3=gr(_0x5acfe3))in _0x2dcf4f?Object[_0x5c3634(0x2ba)](_0x2dcf4f,_0x5acfe3,{'value':_0x362ad9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2dcf4f[_0x5acfe3]=_0x362ad9,_0x2dcf4f;}var _r=class extends _0x3fb628{constructor(_0x2b11ac,_0x5867a3,_0x70156,_0x263869,_0xb21885=!0x0){const _0x423bea=_0x370085;super(),this[_0x423bea(0x195)]=_0x2b11ac,this[_0x423bea(0x32d)]=_0x5867a3,this[_0x423bea(0x374)]=_0x70156,this[_0x423bea(0x35d)]=_0x263869,this[_0x423bea(0x312)]=_0xb21885,H(this,_0x423bea(0x1ed),_0x4c477b[_0x423bea(0x279)]),H(this,_0x423bea(0x383),null),H(this,_0x423bea(0x24c),{});}[_0x370085(0x230)](){const _0x1f3446=_0x370085;var _0x3703bd;let _0xfefdf7=(_0x3703bd=this['_getRenderRect'])==null?void 0x0:_0x3703bd[_0x1f3446(0x2c3)](this);if(_0xfefdf7)return{'width':Math[_0x1f3446(0x19d)](0x1,_0xfefdf7[_0x1f3446(0x30a)]),'height':Math['max'](0x1,_0xfefdf7[_0x1f3446(0x194)])};let _0x4c7e99=this['_host'][_0x1f3446(0x331)]();return{'width':Math[_0x1f3446(0x19d)](0x1,_0x4c7e99[_0x1f3446(0x30a)]),'height':Math['max'](0x1,_0x4c7e99[_0x1f3446(0x194)])};}['setStyle'](_0x1d20d8){const _0x2e39cf=_0x370085;this['_hostStyle']=_0x1d20d8,this[_0x2e39cf(0x374)](this[_0x2e39cf(0x32d)],_0x1d20d8);}async['ensureMount'](){const _0x138ad7=_0x370085;if(!this[_0x138ad7(0x383)]){let _0x45e9dd=document[_0x138ad7(0x296)](_0x138ad7(0x347));_0x45e9dd[_0x138ad7(0x28f)]['position']=_0x138ad7(0x1aa),_0x45e9dd[_0x138ad7(0x28f)]['border']='0',_0x45e9dd['style'][_0x138ad7(0x2c2)]='content-box',_0x45e9dd[_0x138ad7(0x28f)][_0x138ad7(0x1b2)]=_0x138ad7(0x1f6),_0x45e9dd[_0x138ad7(0x21f)]='doc-chart-host',this[_0x138ad7(0x383)]=_0x45e9dd,this[_0x138ad7(0x32d)][_0x138ad7(0x1fa)](_0x45e9dd);}return this[_0x138ad7(0x285)](),this[_0x138ad7(0x383)];}[_0x370085(0x31a)](){const _0x883c32=_0x370085;return!!(this['_mountNode']&&this[_0x883c32(0x32d)][_0x883c32(0x2db)](this['_mountNode']));}['syncLayout'](){const _0x29d299=_0x370085;let _0x4ebcfd=this['getRect']();this['_manageHostSize']&&this[_0x29d299(0x221)](this[_0x29d299(0x32d)],_0x4ebcfd),this[_0x29d299(0x383)]&&this['_setElementSize'](this[_0x29d299(0x383)],this['_getContentRect'](_0x4ebcfd));}[_0x370085(0x243)](){}[_0x370085(0x1d5)](){}[_0x370085(0x220)](){const _0x4150f7=_0x370085;var _0x386173;(_0x386173=this[_0x4150f7(0x383)])==null||_0x386173[_0x4150f7(0x2ca)](),this[_0x4150f7(0x383)]=null,super[_0x4150f7(0x220)]();}[_0x370085(0x221)](_0x23564f,_0x189cf2){const _0x414538=_0x370085;_0x23564f[_0x414538(0x28f)]['width']=_0x189cf2['width']+'px',_0x23564f['style'][_0x414538(0x194)]=_0x189cf2[_0x414538(0x194)]+'px';}[_0x370085(0x314)](_0x3223d2){const _0x126295=_0x370085;if(!_0x2c0585(this[_0x126295(0x24c)]))return _0x3223d2;let _0xe263a=_0x52c1da(_0x3223d2,this['_hostStyle']);return{'width':_0xe263a[_0x126295(0x30a)],'height':_0xe263a[_0x126295(0x194)]};}};function vr(_0x498916){const _0x43e0e2=_0x370085;var _0x5d7366;let _0x271d4c=(_0x5d7366=_0x498916[_0x43e0e2(0x246)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x5d7366[0x1];if(_0x271d4c){let _0x5642ec=_0x271d4c[_0x43e0e2(0x2ed)]===0x3?_0x271d4c[_0x43e0e2(0x1c8)]('')[_0x43e0e2(0x2a1)](_0x5dc30e=>''+_0x5dc30e+_0x5dc30e)[_0x43e0e2(0x2dd)](''):_0x271d4c;return'rgb('+Number[_0x43e0e2(0x19b)](_0x5642ec[_0x43e0e2(0x278)](0x0,0x2),0x10)+',\x20'+Number[_0x43e0e2(0x19b)](_0x5642ec[_0x43e0e2(0x278)](0x2,0x4),0x10)+',\x20'+Number[_0x43e0e2(0x19b)](_0x5642ec[_0x43e0e2(0x278)](0x4,0x6),0x10)+')';}let _0x3039ec=document[_0x43e0e2(0x296)]('span');return _0x3039ec[_0x43e0e2(0x28f)]['color']=_0x498916,_0x3039ec[_0x43e0e2(0x28f)]['color']||_0x498916;}let U=class extends _0x3fb628{constructor(_0x20471a,_0xba4c86,_0x5e5035){const _0x29d63b=_0x370085;super(),this[_0x29d63b(0x30b)]=_0x20471a,this[_0x29d63b(0x235)]=_0xba4c86,this[_0x29d63b(0x1fe)]=_0x5e5035;}[_0x370085(0x2bf)](_0x475ce6){const _0x4cd077=_0x370085;return _0x475ce6?this[_0x4cd077(0x1fe)][_0x4cd077(0x2bf)](_0x475ce6,this[_0x4cd077(0x2af)]()):this[_0x4cd077(0x1fe)][_0x4cd077(0x2bf)]();}[_0x370085(0x1a1)](_0x36ca7f){const _0xb62d7a=_0x370085;let _0x52fdd8=_0x36ca7f[_0xb62d7a(0x262)][_0xb62d7a(0x26f)];if(!_0x52fdd8)throw Error(_0xb62d7a(0x298)+_0x36ca7f[_0xb62d7a(0x195)]+_0xb62d7a(0x36a));let _0xa623f3=this[_0xb62d7a(0x30b)]['getDirection']();return{'chartConfig':_0x52fdd8,'chartStyle':_0x523546({..._0x36ca7f[_0xb62d7a(0x262)]['style'],'runtime':_0x36ca7f['model'][_0xb62d7a(0x35b)](_0xa623f3),'direction':_0xa623f3},_0x52fdd8[_0xb62d7a(0x228)])};}['createRenderSpec'](_0x189871,_0x1bfd98,_0x1fba6e){const _0x57aa59=_0x370085;let {chartConfig:_0x33d8a1,chartStyle:_0x469ecf}=this[_0x57aa59(0x1a1)](_0x189871),_0x3fe399=this[_0x57aa59(0x1fe)][_0x57aa59(0x237)]();return{'spec':_0x3fe399[_0x57aa59(0x205)](_0x3fe399['toSpec'](_0x33d8a1,_0x469ecf),{'chartConfig':_0x33d8a1,'chartStyle':_0x469ecf,'chartInstance':_0x1fba6e},_0x1bfd98),'chartConfig':_0x33d8a1,'chartStyle':_0x469ecf,'hostStyle':this[_0x57aa59(0x367)](_0x469ecf)};}['getHostStyle'](_0x4cd492){const _0x5d8145=_0x370085;return _0x1afd1c({'style':_0x4cd492,'getRenderColor':_0x36846a=>this[_0x5d8145(0x235)]['getRenderColor'](_0x36846a)});}[_0x370085(0x213)](_0x2323d2,_0x55ee62){const _0x4fb584=_0x370085;var _0xe7d89f;let _0x738c8f=(_0xe7d89f=_0x55ee62[_0x4fb584(0x22e)])!=null&&_0xe7d89f['color']&&_0x55ee62['border'][_0x4fb584(0x30a)]?_0x55ee62[_0x4fb584(0x22e)][_0x4fb584(0x30a)]+'px\x20solid\x20'+vr(_0x55ee62[_0x4fb584(0x22e)][_0x4fb584(0x2e5)]):'';_0x2323d2[_0x4fb584(0x28f)][_0x4fb584(0x22e)]=_0x738c8f,_0x2323d2[_0x4fb584(0x28f)][_0x4fb584(0x330)]=_0x55ee62[_0x4fb584(0x282)]?vr(_0x55ee62[_0x4fb584(0x282)]):_0x4fb584(0x2c6),_0x2323d2[_0x4fb584(0x28f)][_0x4fb584(0x2f5)]=_0x55ee62[_0x4fb584(0x33b)]?_0x55ee62[_0x4fb584(0x33b)]+'px':'',_0x2323d2[_0x4fb584(0x28f)][_0x4fb584(0x1b2)]=_0x4fb584(0x1f6),_0x2323d2[_0x4fb584(0x28f)][_0x4fb584(0x2c2)]=_0x4fb584(0x2aa);}[_0x370085(0x2af)](){const _0x2761a2=_0x370085;return{'resolveHostStyle':({style:_0x4d7c2b})=>this['getHostStyle'](_0x4d7c2b),'resolveRenderBackgroundColor':({hostStyle:_0x29c0c8})=>_0x29c0c8[_0x2761a2(0x282)],'prepareSpec':({mode:_0x4ebdee,spec:_0x5c2da2})=>_0x4ebdee===_0x2761a2(0x1cb)?{..._0x5c2da2,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x5c2da2};}['dispose'](){const _0x40a4c8=_0x370085;super[_0x40a4c8(0x220)]();}};U=z([R(0x0,_0x1d3b66(_0x294e5d)),R(0x1,_0x1d3b66(_0xe004fc)),R(0x2,_0x483a6f)],U);function yr(_0x34faee,_0x5ccb3c,_0x40f653,_0x496ebb,_0x3a6aab,_0x56988f,_0x1ce81a){const _0x350a2e=_0x370085;let {model:_0x111a28,source:_0x261f22}=_0x24a9c({'id':_0x34faee,'chartType':_0x40f653,'dataSet':_0x250b4d(_0x34a4d3(_0x5ccb3c)),'isRowDirection':(_0x496ebb==null?void 0x0:_0x496ebb['orient'])!==_0x350a2e(0x2cc),'context':_0x496ebb==null?void 0x0:_0x496ebb[_0x350a2e(0x1ab)],'dataAggregation':_0x3a6aab,'style':_0x56988f,'injector':_0x1ce81a});return{'unitId':_0x350a2e(0x245),'chartId':_0x34faee,'dataSourceId':_0x34faee+_0x350a2e(0x359),'model':_0x111a28,'source':_0x261f22};}function br(_0x3d7c51){const _0x2a5468=_0x370085;let _0x1bba0f=_0x2faff5(_0x294e5d),_0x1c2bba=_0x2faff5(_0x26d120),_0x2f0c94=_0x2faff5(U),_0x470789=_0x1810f9(null),_0xb7c2f4=_0x1810f9(null),_0x860cc5=_0x1810f9('doc-chart-preview-'+_0x272bce(0x8)),[_0x5590f9,_0x518b03]=_0x32386d(null);return _0x5ca4c0(()=>{const _0x48f0ab=_0x19d9;let _0x4bd9b2=_0x470789[_0x48f0ab(0x19a)];if(!_0x4bd9b2)return;_0x518b03(null),_0x4bd9b2[_0x48f0ab(0x1ae)](),_0xb7c2f4['current']=xr(_0x4bd9b2);let _0x2e78c8=!0x1,_0x547667=_0x17279e=>{_0x2e78c8||_0x518b03(_0x17279e);},_0x34297a=null,_0x55c69c=null,_0x26c3d7=null;try{_0x34297a=yr(_0x860cc5[_0x48f0ab(0x19a)],_0x3d7c51[_0x48f0ab(0x355)],_0x3d7c51[_0x48f0ab(0x1dc)],_0x3d7c51[_0x48f0ab(0x212)],_0x3d7c51[_0x48f0ab(0x2c7)],_0x3d7c51[_0x48f0ab(0x28f)],_0x1c2bba),_0x55c69c=new _r(_0x34297a[_0x48f0ab(0x195)],_0x4bd9b2,(_0x47b6e0,_0x45cf7c)=>_0x2f0c94[_0x48f0ab(0x213)](_0x47b6e0,_0x45cf7c),()=>_0xb7c2f4['current']??xr(_0x4bd9b2),!0x1),_0x26c3d7=_0x2f0c94[_0x48f0ab(0x2bf)](_0x4c477b[_0x48f0ab(0x279)]),_0x26c3d7[_0x48f0ab(0x2d3)](_0x55c69c);}catch(_0x5f140f){return _0x547667(_0x5f140f),()=>{_0x2e78c8=!0x0,_0x4bd9b2['replaceChildren']();};}if(!_0x34297a||!_0x55c69c||!_0x26c3d7)return()=>{const _0x412304=_0x48f0ab;_0x2e78c8=!0x0,_0x4bd9b2[_0x412304(0x1ae)]();};let _0x1eb512=_0x34297a,_0x174954=_0x55c69c,_0x127b29=_0x26c3d7,_0x5de437=()=>{const _0x2716ce=_0x48f0ab;let _0x875bf7,_0x301b51;try{({chartConfig:_0x875bf7,chartStyle:_0x301b51}=_0x2f0c94['createRenderInput'](_0x1eb512));}catch(_0x53df47){_0x547667(_0x53df47);return;}_0x127b29[_0x2716ce(0x307)]({'chartId':_0x1eb512[_0x2716ce(0x195)],'config':_0x875bf7,'style':_0x301b51})['then'](()=>{_0x2e78c8||_0x518b03(null);})[_0x2716ce(0x189)](_0x547667);},_0x2fa51a=_0x1eb512[_0x48f0ab(0x262)]['config$']['subscribe'](_0x478cd2=>{_0x478cd2&&_0x5de437();}),_0x32392e=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x2a99f3=>{const _0x66927f=_0x48f0ab;var _0x34a9cb;let _0x4d35c7=(_0x34a9cb=_0x2a99f3[0x0])==null?void 0x0:_0x34a9cb[_0x66927f(0x2d1)];_0xb7c2f4['current']=_0x4d35c7&&_0x4d35c7[_0x66927f(0x30a)]>0x0&&_0x4d35c7[_0x66927f(0x194)]>0x0?{'width':_0x4d35c7[_0x66927f(0x30a)],'height':_0x4d35c7[_0x66927f(0x194)]}:xr(_0x4bd9b2),_0x5de437();});return _0x32392e==null||_0x32392e[_0x48f0ab(0x2a4)](_0x4bd9b2),()=>{const _0x11c826=_0x48f0ab;_0x2e78c8=!0x0,_0x2fa51a[_0x11c826(0x1ce)](),_0x32392e==null||_0x32392e[_0x11c826(0x236)](),_0x127b29[_0x11c826(0x220)](),_0x174954[_0x11c826(0x220)](),_0x1eb512[_0x11c826(0x262)]['dispose'](),_0x1eb512[_0x11c826(0x24d)]['dispose'](),_0x4bd9b2[_0x11c826(0x1ae)]();};},[_0x1c2bba,_0x3d7c51[_0x2a5468(0x1dc)],_0x3d7c51['context'],_0x3d7c51[_0x2a5468(0x2c7)],_0x3d7c51['style'],_0x3d7c51[_0x2a5468(0x355)],_0x2f0c94]),_0x440664(_0x2a5468(0x347),{'className':'univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-white\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x385564(_0x2a5468(0x347),{'ref':_0x470789,'className':_0x2a5468(0x291)}),_0x5590f9!=null&&_0x385564(_0x2a5468(0x347),{'className':'univer-bg-white/90\x20dark:!univer-bg-gray-900/90\x20univer-absolute\x20univer-bottom-3\x20univer-left-3\x20univer-rounded\x20univer-px-2\x20univer-py-1\x20univer-text-xs\x20univer-text-red-600','children':_0x1bba0f['t']('docs-chart-ui.previewRenderFailed')})]});}function xr(_0x2afe87){const _0x1109f1=_0x370085;let _0x42f3db=_0x2afe87[_0x1109f1(0x331)]();return _0x42f3db[_0x1109f1(0x30a)]<=0x0||_0x42f3db['height']<=0x0?null:{'width':_0x42f3db['width'],'height':_0x42f3db[_0x1109f1(0x194)]};}const Sr=_0x370085(0x353),Cr=_0x370085(0x1da);function wr(_0x3c5404){const _0x1a1623=_0x370085;var _0xb8ecb;let {unitId:_0x270ccf,chartId:_0x16bd57,drawingId:_0x5128d6}=_0x3c5404,_0x5d1dcb=_0x2faff5(_0x294e5d),_0x27767c=_0x2faff5(_0x26d120),_0x4a6c0a=_0x2faff5(_0x45a8d9),_0x1f91b5=_0x2faff5(_0x1ece1f),_0x554e08=_0x2faff5(_0x430122),_0x5619c2=_0x2faff5(B),_0x469fe4=_0x2faff5(rr),_0x47b38b=_0x272fc7(()=>_0x5619c2['getEditorState'](_0x270ccf,_0x16bd57),[_0x16bd57,_0x5619c2,_0x270ccf]),_0x17c6e1=_0x1f91b5[_0x1a1623(0x2e4)](_0x270ccf,_0x16bd57),_0x5be6fd=_0x272fc7(()=>_0x554e08==null?void 0x0:_0x554e08[_0x1a1623(0x2ac)](_0x270ccf,_0x16bd57),[_0x16bd57,_0x554e08,_0x270ccf]),_0x8a13a5=_0x2fd9cf(_0x5be6fd==null?void 0x0:_0x5be6fd[_0x1a1623(0x262)][_0x1a1623(0x18d)],(_0x5be6fd==null?void 0x0:_0x5be6fd['model'][_0x1a1623(0x1dc)])??(_0x17c6e1==null?void 0x0:_0x17c6e1[_0x1a1623(0x1dc)])),_0x36b03f=_0x2fd9cf(_0x5be6fd==null?void 0x0:_0x5be6fd[_0x1a1623(0x262)][_0x1a1623(0x19c)],(_0x5be6fd==null?void 0x0:_0x5be6fd['model']['context'])??(_0x17c6e1==null||(_0xb8ecb=_0x17c6e1[_0x1a1623(0x212)])==null?void 0x0:_0xb8ecb[_0x1a1623(0x1ab)])),_0x47697d=_0x2fd9cf(_0x5be6fd==null?void 0x0:_0x5be6fd[_0x1a1623(0x262)]['dataAggregation$'],(_0x5be6fd==null?void 0x0:_0x5be6fd['model'][_0x1a1623(0x2c7)])??(_0x17c6e1==null?void 0x0:_0x17c6e1[_0x1a1623(0x2c7)])),_0xd3280d=_0x2fd9cf(_0x5be6fd==null?void 0x0:_0x5be6fd[_0x1a1623(0x262)][_0x1a1623(0x185)],(_0x5be6fd==null?void 0x0:_0x5be6fd[_0x1a1623(0x262)][_0x1a1623(0x28f)])??(_0x17c6e1==null?void 0x0:_0x17c6e1[_0x1a1623(0x28f)])),_0x575b6c=_0x272fc7(()=>({..._0x17c6e1==null?void 0x0:_0x17c6e1[_0x1a1623(0x212)],'chartContext':_0x36b03f}),[_0x17c6e1==null?void 0x0:_0x17c6e1[_0x1a1623(0x212)],_0x36b03f]),[_0xb491a2,_0x58ab5f]=_0x32386d(_0x47b38b),[_0x2dd230,_0x475576]=_0x32386d(()=>(_0x47b38b==null?void 0x0:_0x47b38b[_0x1a1623(0x355)][_0x1a1623(0x2a1)](_0x2e6f60=>[..._0x2e6f60]))??[]),[_0x67a65a,_0x3495e0]=_0x32386d(()=>(_0x47b38b==null?void 0x0:_0x47b38b[_0x1a1623(0x355)][_0x1a1623(0x2a1)](_0x395892=>[..._0x395892]))??[]),[_0x1d18b7,_0x1b9706]=_0x32386d(()=>_0x17c6e1==null?void 0x0:_0x17c6e1[_0x1a1623(0x1dc)]),[_0x3975d4,_0x411017]=_0x32386d(()=>{const _0x148d9b=_0x1a1623;var _0x243725;return((_0x243725=_0x3c5404[_0x148d9b(0x184)])==null?void 0x0:_0x243725[_0x148d9b(0x23f)])===_0x18a3ea[_0x148d9b(0x203)]?'data':'chart';}),[_0xf57e96,_0x303bb0]=_0x32386d(null),_0x401115=_0x272fc7(()=>{const _0x41ec62=_0x1a1623;var _0x5449d0;let _0x42fed4=_0x4a6c0a[_0x41ec62(0x201)](_0x270ccf,_0x4c0d56[_0x41ec62(0x1bb)]);if(!_0x5be6fd||!_0x42fed4)return null;let _0x51ee3f=_0x5128d6??((_0x5449d0=Object[_0x41ec62(0x355)](_0x42fed4[_0x41ec62(0x339)]()??{})[_0x41ec62(0x20f)](_0x62ea63=>_0x62ea63[_0x41ec62(0x195)]===_0x16bd57))==null?void 0x0:_0x5449d0[_0x41ec62(0x18f)]);return _0x51ee3f?new _0x56d116(_0x5be6fd[_0x41ec62(0x262)],new _0x3cf2f7({'unitId':_0x270ccf,'chartId':_0x16bd57,'drawingId':_0x51ee3f,'documentDataModel':_0x42fed4,'injector':_0x27767c})):null;},[_0x16bd57,_0x5128d6,_0x27767c,_0x5be6fd,_0x270ccf,_0x4a6c0a]);return!_0xb491a2||!_0x17c6e1?_0x385564(_0x1a1623(0x347),{'className':'univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','children':_0x5d1dcb['t'](_0x1a1623(0x1c0))}):_0x440664(_0x1a1623(0x347),{'className':_0x1a1623(0x231),'style':{'height':_0x1a1623(0x1a5)},'children':[_0x385564(_0x33e23b,{'ariaLabel':_0x5d1dcb['t'](_0x1a1623(0x303)),'className':_0x1a1623(0x277),'value':_0x3975d4,'items':[{'label':_0x5d1dcb['t'](_0x1a1623(0x2f6)),'panelId':Tr,'value':'chart'},{'label':_0x5d1dcb['t'](_0x1a1623(0x281)),'panelId':Er,'value':_0x1a1623(0x305)}],'variant':'segmented','onChange':_0x411017}),_0x440664('div',{'id':_0x3975d4===_0x1a1623(0x305)?Er:Tr,'aria-labelledby':(_0x3975d4==='data'?Er:Tr)+_0x1a1623(0x37c),'className':'univer-min-h-0\x20univer-flex-1\x20univer-pt-4','role':_0x1a1623(0x264),'children':[_0x3975d4===_0x1a1623(0x305)?_0x385564(nr,{'values':_0x2dd230,'sharingCount':_0xb491a2[_0x1a1623(0x1ff)],'onCancel':()=>_0x411017('chart'),'onSubmit':(_0x4ce8f6,_0x22bd8a)=>{const _0x132ba8=_0x1a1623;if(!_0x5619c2[_0x132ba8(0x1d7)](_0x270ccf,_0x16bd57,_0x4ce8f6,_0x22bd8a)){_0x303bb0(_0x5d1dcb['t'](_0x132ba8(0x338)));return;}_0x303bb0(null);let _0x4ca7b5=_0x5619c2[_0x132ba8(0x2c0)](_0x270ccf,_0x16bd57);_0x58ab5f(_0x4ca7b5??_0xb491a2),_0x475576((_0x4ca7b5==null?void 0x0:_0x4ca7b5[_0x132ba8(0x355)])??_0x4ce8f6),_0x3495e0((_0x4ca7b5==null?void 0x0:_0x4ca7b5[_0x132ba8(0x355)])??_0x4ce8f6),_0x411017(_0x132ba8(0x21e));}}):_0x440664('div',{'className':_0x1a1623(0x26b),'children':[_0x385564(_0x1a1623(0x347),{'className':_0x1a1623(0x32f),'children':_0x385564(br,{'values':_0x67a65a,'chartType':_0x8a13a5??_0x1d18b7??_0x17c6e1[_0x1a1623(0x1dc)],'context':_0x575b6c,'dataAggregation':_0x47697d,'style':_0xd3280d})}),_0x440664(_0x1a1623(0x347),{'className':_0x1a1623(0x239),'children':[_0x385564(_0x1a1623(0x347),{'className':_0x1a1623(0x30d),'children':_0x401115?_0x385564(_0x1c5115,{'chartUIService':_0x469fe4,'hostAdapter':_0x401115,'children':_0x385564(dr,{'initialRoute':_0x3c5404[_0x1a1623(0x184)],'onClose':_0x3c5404[_0x1a1623(0x31e)],'onPreviewChartTypeChange':_0x1b9706,'onModifyData':()=>_0x411017('data')})}):_0x385564(_0x1a1623(0x347),{'className':_0x1a1623(0x21b),'children':_0x5d1dcb['t'](_0x1a1623(0x1c0))})}),_0xf57e96&&_0x385564(_0x1a1623(0x347),{'className':_0x1a1623(0x328),'children':_0xf57e96})]})]}),_0x3975d4==='data'&&_0xf57e96&&_0x385564('div',{'className':_0x1a1623(0x24f),'children':_0xf57e96})]})]});}const Tr='doc-chart-editor-panel',Er=_0x370085(0x1f2);function W(_0x5e91aa,_0x4f6fca){const _0x4c9d16=_0x370085;var _0x2065bd;if(!(_0x4f6fca!=null&&_0x4f6fca[_0x4c9d16(0x2cd)])||_0x4f6fca[_0x4c9d16(0x252)]==null)return null;let _0x845817=_0x4f6fca['segmentId']??'';if(_0x845817!=='')return null;let _0x5bd235=(_0x2065bd=_0x5e91aa['getSelfOrHeaderFooterModel'](_0x845817))==null?void 0x0:_0x2065bd[_0x4c9d16(0x1c3)]();if(!_0x5bd235)return null;let _0x3fbde4=Dr(_0x5bd235,_0x4f6fca[_0x4c9d16(0x252)]);if(!Or(_0x5bd235,_0x3fbde4))return null;let _0x377cf7=Ar(_0x5bd235,_0x3fbde4);return _0x377cf7?{'unitId':_0x5e91aa[_0x4c9d16(0x180)](),'index':_0x377cf7[_0x4c9d16(0x247)],'segmentId':_0x845817,'breakOffsets':_0x377cf7[_0x4c9d16(0x32a)]}:null;}function Dr(_0x4590a4,_0x512d58){const _0x4afded=_0x370085;return _0x512d58===0x0&&_0x4590a4[_0x4afded(0x2de)][0x0]===_0x5cf879['PARAGRAPH']?0x1:_0x512d58;}function Or(_0x1e6e16,_0x2cded9){return!(Nr(_0x1e6e16['tables'],_0x2cded9)||Pr(_0x1e6e16['blockRanges'],_0x2cded9)||Fr(_0x1e6e16['customBlocks'],_0x2cded9));}function kr(_0x5a74a6,_0x33d222){const _0x541ae4=_0x370085;let {dataStream:_0x2bd9ee}=_0x5a74a6;if(!_0x2bd9ee||_0x33d222<0x0||_0x33d222>=_0x2bd9ee[_0x541ae4(0x2ed)])return!0x1;let _0x300b2d=jr(_0x2bd9ee,_0x33d222)+0x1,_0x2f1f1c=Mr(_0x2bd9ee,_0x33d222);return _0x300b2d<=_0x2f1f1c&&_0x2bd9ee[_0x541ae4(0x278)](_0x300b2d,_0x2f1f1c)[_0x541ae4(0x2ed)]===0x0;}function Ar(_0xaba957,_0x5b9b92){let {dataStream:_0x1c084c}=_0xaba957;if(!_0x1c084c||_0x5b9b92<0x0||_0x5b9b92>=_0x1c084c['length'])return null;if(kr(_0xaba957,_0x5b9b92))return{'index':_0x5b9b92,'breakOffsets':[]};let _0x306913=jr(_0x1c084c,_0x5b9b92)+0x1,_0xd68b1c=Mr(_0x1c084c,_0x5b9b92);return _0x5b9b92<=_0x306913?{'index':_0x5b9b92,'breakOffsets':[_0x5b9b92]}:_0x5b9b92>=_0xd68b1c?{'index':_0x5b9b92+0x1,'breakOffsets':[_0x5b9b92]}:{'index':_0x5b9b92+0x1,'breakOffsets':[_0x5b9b92,_0x5b9b92+0x1]};}function jr(_0x34db15,_0x4f29b2){const _0x14b09e=_0x370085;let _0x122db6=Math[_0x14b09e(0x19d)](0x0,Math['min'](_0x4f29b2-0x1,_0x34db15[_0x14b09e(0x2ed)]-0x1));return Math[_0x14b09e(0x19d)](_0x34db15[_0x14b09e(0x2a3)](_0x5cf879['PARAGRAPH'],_0x122db6),_0x34db15['lastIndexOf'](_0x5cf879[_0x14b09e(0x2d7)],_0x122db6));}function Mr(_0x33db8f,_0x4cdd9d){const _0x19674a=_0x370085;let _0x475802=Math[_0x19674a(0x19d)](0x0,Math[_0x19674a(0x26a)](_0x4cdd9d,_0x33db8f[_0x19674a(0x2ed)]-0x1)),_0x40afb6=_0x33db8f[_0x19674a(0x370)](_0x5cf879[_0x19674a(0x1b5)],_0x475802),_0x4ea07a=_0x33db8f[_0x19674a(0x370)](_0x5cf879[_0x19674a(0x2d7)],_0x475802);return _0x40afb6===-0x1&&_0x4ea07a===-0x1?_0x33db8f[_0x19674a(0x2ed)]:_0x40afb6===-0x1?_0x4ea07a:_0x4ea07a===-0x1?_0x40afb6:Math[_0x19674a(0x26a)](_0x40afb6,_0x4ea07a);}function Nr(_0x59e97e,_0x17e2d1){const _0x59f400=_0x370085;return!!(_0x59e97e!=null&&_0x59e97e[_0x59f400(0x2f7)](_0x3806e2=>_0x3806e2[_0x59f400(0x345)]<=_0x17e2d1&&_0x17e2d1<_0x3806e2['endIndex']));}function Pr(_0x3fd269,_0x2ab823){const _0x47421b=_0x370085;return!!(_0x3fd269!=null&&_0x3fd269['some'](_0x29314f=>_0x29314f[_0x47421b(0x345)]<=_0x2ab823&&_0x2ab823<=_0x29314f[_0x47421b(0x234)]));}function Fr(_0x5d9802,_0x9c6888){const _0x2c1523=_0x370085;return!!(_0x5d9802!=null&&_0x5d9802[_0x2c1523(0x2f7)](_0x5c9d62=>_0x5c9d62[_0x2c1523(0x345)]===_0x9c6888));}let G=class{constructor(_0x2e06ea,_0x923e3,_0x2c71d8,_0x268699){const _0x249ae8=_0x370085;this['_instanceService']=_0x2e06ea,this[_0x249ae8(0x2ee)]=_0x923e3,this[_0x249ae8(0x320)]=_0x2c71d8,this[_0x249ae8(0x269)]=_0x268699;}[_0x370085(0x360)](_0x99448f,_0x1927ec,_0x510b47){let _0x3cc078=_0x1973ff(_0x99448f);return _0x3cc078['length']!==0x0&&this['insertChart'](_0x3cc078,_0x1927ec,_0x510b47);}[_0x370085(0x343)](_0x229b50,_0x38a634,_0x24b6a3={}){const _0x273755=_0x370085;if(_0x229b50['length']===0x0)return!0x1;let _0x9ce4b9=_0x4d1ff5(_0x38a634,_0x229b50);if(!_0x9ce4b9['ok'])return!0x1;let _0x2ad0f6=this[_0x273755(0x2a6)][_0x273755(0x349)](_0x4c0d56['UNIVER_DOC']);if(!_0x2ad0f6)return!0x1;let _0x55fd2c=this['_resolveInsertPosition'](_0x2ad0f6,_0x24b6a3['insertRange']);if(!_0x55fd2c||!this[_0x273755(0x30e)](_0x55fd2c[_0x273755(0x32a)],_0x55fd2c[_0x273755(0x380)]))return!0x1;let _0x44c424=_0x55fd2c['unitId'],_0x215c4f={'chartType':_0x38a634};_0x24b6a3[_0x273755(0x212)]&&(_0x215c4f[_0x273755(0x212)]=_0x24b6a3['context']),_0x24b6a3[_0x273755(0x2c7)]&&(_0x215c4f['dataAggregation']=_0x24b6a3[_0x273755(0x2c7)]),_0x24b6a3[_0x273755(0x28f)]&&(_0x215c4f['style']=_0x24b6a3[_0x273755(0x28f)]);let _0x12c1ce=this['_commandService'][_0x273755(0x20b)](_0x2e8b2c['id'],{'unitId':_0x44c424,'index':_0x55fd2c['index'],'segmentId':_0x55fd2c['segmentId'],'chart':_0x215c4f,'dataSource':{'values':_0x9ce4b9[_0x273755(0x355)]},'width':_0x24b6a3[_0x273755(0x30a)],'height':_0x24b6a3['height'],'focus':_0x24b6a3['focus']});return _0x12c1ce?{..._0x12c1ce,'unitId':_0x44c424}:!0x1;}[_0x370085(0x36b)](_0x1180aa,_0x52cb5d){const _0x424378=_0x370085;if(_0x52cb5d)return W(_0x1180aa,_0x52cb5d);let _0x3035d1=_0x1180aa['getUnitId'](),_0x8e2a93=null;try{_0x8e2a93=this[_0x424378(0x269)]['consumeInsertRange'](_0x3035d1);}catch{_0x8e2a93=null;}return _0x8e2a93?W(_0x1180aa,{'startOffset':_0x8e2a93[_0x424378(0x252)],'endOffset':_0x8e2a93['endOffset'],'collapsed':_0x8e2a93['startOffset']===_0x8e2a93[_0x424378(0x274)],'segmentId':_0x8e2a93[_0x424378(0x380)]??''}):W(_0x1180aa,Ir(this['_docSelectionManagerService']['getActiveTextRange']()));}[_0x370085(0x30e)](_0x234e2a,_0x7b5ebc){for(let _0x4f3150 of _0x234e2a)if(!this['_commandService']['syncExecuteCommand'](_0x228838['id'],{'textRange':{'startOffset':_0x4f3150,'endOffset':_0x4f3150,'collapsed':!0x0,'segmentId':_0x7b5ebc}}))return!0x1;return!0x0;}};G=z([R(0x0,_0x45a8d9),R(0x1,_0x1102d3),R(0x2,_0x1d3b66(_0x585f68)),R(0x3,_0x1d3b66(_0x5eca17))],G);function Ir(_0x2741ba){const _0x65196=_0x370085;return!_0x2741ba||typeof _0x2741ba!=_0x65196(0x227)?null:_0x2741ba;}const Lr=_0x370085(0x1f7),Rr=['Category\x09Value',_0x370085(0x1f3),_0x370085(0x295),_0x370085(0x1cf)][_0x370085(0x2dd)]('\x0a');function zr(_0x1f3853){const _0x3b5046=_0x370085;let _0x130b12=_0x2faff5(G),_0x4a8833=_0x2faff5(_0x294e5d),{defaultChartType:_0x6734e7=_0x4a848b[_0x3b5046(0x1a0)],defaultTableText:_0x276ca3=Rr,insertOptions:_0x5ea5bd,onCancel:_0x1917c1,onInserted:_0xc5eb81}=_0x1f3853,_0x4fa0e8=_0x272fc7(()=>_0x41e0f0(_0x2858fd[_0x3b5046(0x2a1)](_0x1bb5d2=>({..._0x1bb5d2,'label':_0x4a8833['t'](_0x3b5046(0x1ac)+_0x1bb5d2[_0x3b5046(0x26c)])}))),[_0x4a8833]),[_0x1d6e96,_0x59b3a5]=_0x32386d(String(_0x6734e7)),_0x5c028b=_0x4fa0e8['find'](_0x5afc56=>_0x5afc56[_0x3b5046(0x2dc)]===_0x1d6e96),_0x8a6afc=(_0x5c028b==null?void 0x0:_0x5c028b[_0x3b5046(0x1dc)])??_0x6734e7,_0x5ac09e=_0x1b6126=>_0x3e5a9c(_0x1b6126,{'candlestickClose':_0x4a8833['t'](_0x3b5046(0x218)),'candlestickHigh':_0x4a8833['t']('docs-chart-ui.candlestick.high'),'candlestickLow':_0x4a8833['t']('docs-chart-ui.candlestick.low'),'candlestickOpen':_0x4a8833['t'](_0x3b5046(0x287)),'category':_0x4a8833['t'](_0x3b5046(0x354)),'chordSource':_0x4a8833['t'](_0x3b5046(0x25d)),'chordTarget':_0x4a8833['t'](_0x3b5046(0x182)),'label':_0x4a8833['t']('docs-chart-ui.common.label'),'sunburstHierarchy':_0x4a8833['t']('docs-chart-ui.sunburst.hierarchy'),'value':_0x4a8833['t']('docs-chart-ui.common.value'),'valueField':_0x4a8833['t'](_0x3b5046(0x1a4))}),[_0x310032,_0x370346]=_0x32386d(()=>_0x1f3853[_0x3b5046(0x34b)]===void 0x0?_0x5ac09e(_0x6734e7)??_0x1973ff(_0x276ca3):_0x1973ff(_0x276ca3)),[_0x295b8c,_0x4cdec0]=_0x32386d(null),_0xc61afe={[_0x53a067['UnknownOption']]:_0x4a8833['t'](_0x3b5046(0x1dd)),[_0x53a067[_0x3b5046(0x18c)]]:_0x4a8833['t'](_0x3b5046(0x241)),[_0x53a067['InvalidCandlestickData']]:_0x4a8833['t'](_0x3b5046(0x2e7))};return _0x440664(_0x3b5046(0x347),{'className':_0x3b5046(0x23b),'children':[_0x440664(_0x3b5046(0x347),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x385564(_0x3b5046(0x347),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x4a8833['t'](_0x3b5046(0x22d))}),_0x385564(_0x111a19,{'className':_0x3b5046(0x350),'value':_0x1d6e96,'options':_0x4fa0e8,'onChange':_0x381a6e=>{const _0x8cb32a=_0x3b5046;var _0xde2eb4;_0x59b3a5(_0x381a6e);let _0x21d7ee=((_0xde2eb4=_0x4fa0e8[_0x8cb32a(0x20f)](_0x6afb8f=>_0x6afb8f[_0x8cb32a(0x2dc)]===_0x381a6e))==null?void 0x0:_0xde2eb4[_0x8cb32a(0x1dc)])??Number(_0x381a6e),_0x39970f=_0x5ac09e(_0x21d7ee);_0x39970f&&_0x370346(_0x39970f);}})]}),_0x440664(_0x3b5046(0x347),{'className':_0x3b5046(0x319),'children':[_0x385564(_0x3b5046(0x347),{'className':_0x3b5046(0x334),'children':_0x4a8833['t'](_0x3b5046(0x249))}),_0x385564(_0x3b5356,{'values':_0x310032,'minColumns':_0x5227ed(_0x8a6afc),'parsePastedText':_0x1973ff,'onChange':_0x370346})]}),_0x295b8c&&_0x385564(_0x3b5046(0x347),{'className':'univer-text-xs\x20univer-text-red-600','children':_0x295b8c}),_0x440664('div',{'className':_0x3b5046(0x1e2),'children':[_0x1917c1&&_0x385564(_0x407e9a,{'type':_0x3b5046(0x34e),'variant':_0x3b5046(0x25b),'onClick':_0x1917c1,'children':_0x4a8833['t'](_0x3b5046(0x248))}),_0x385564(_0x407e9a,{'type':_0x3b5046(0x34e),'variant':_0x3b5046(0x1a6),'onClick':()=>{const _0x365651=_0x3b5046;var _0x3b03cb;let _0x498e78=_0x4bd0dc({'optionId':_0x1d6e96,'values':_0x310032});if(!_0x498e78['ok']){_0x4cdec0(_0xc61afe[_0x498e78[_0x365651(0x222)]['code']]);return;}let _0x51c9d8=_0x498e78[_0x365651(0x377)][_0x365651(0x28f)]?{..._0x5ea5bd,'style':{..._0x5ea5bd==null?void 0x0:_0x5ea5bd[_0x365651(0x28f)],'pie':{..._0x5ea5bd==null||(_0x3b03cb=_0x5ea5bd[_0x365651(0x28f)])==null?void 0x0:_0x3b03cb[_0x365651(0x382)],..._0x498e78[_0x365651(0x377)][_0x365651(0x28f)]['pie']}}}:_0x5ea5bd,_0x138613=_0x130b12[_0x365651(0x343)](_0x498e78[_0x365651(0x377)][_0x365651(0x355)],_0x498e78['plan']['chartType'],_0x51c9d8);if(!_0x138613){_0x4cdec0(_0x4a8833['t'](_0x365651(0x1dd)));return;}_0x4cdec0(null),_0xc5eb81==null||_0xc5eb81(_0x138613);},'children':_0x4a8833['t']('docs-chart-ui.common.insert')})]})]});}const Br=_0x370085(0x283),Vr={},Hr=_0x370085(0x187);let K=class extends _0x3fb628{constructor(_0x2bac82,_0x1a7289,_0x4df3e0){const _0x456fe5=_0x370085;super(),this['_docClipboardService']=_0x2bac82,this[_0x456fe5(0x37e)]=_0x1a7289,this['_resourceService']=_0x4df3e0,this['_initClipboardHooks']();}['_initClipboardHooks'](){const _0x9a94ea=_0x370085;this['disposeWithMe'](this[_0x9a94ea(0x2be)][_0x9a94ea(0x25a)]({'onCopyDocData':(_0x5178cf,_0x37bb65)=>this['_appendChartResources'](_0x5178cf,_0x37bb65['sourceDocuments'])})),this[_0x9a94ea(0x33f)](this[_0x9a94ea(0x37e)][_0x9a94ea(0x1e3)]({'getPasteMutationInfos':_0x563c2e=>this[_0x9a94ea(0x275)](_0x563c2e)}));}[_0x370085(0x289)](_0x3ca6fe,_0x52fe83){const _0x1e3d66=_0x370085;var _0x4f0fd5;let _0x116e12=(_0x4f0fd5=_0x52fe83[0x0])==null?void 0x0:_0x4f0fd5['id'];if(!_0x116e12)return _0x3ca6fe;let _0x3095a0=Object[_0x1e3d66(0x355)](_0x3ca6fe['drawings']??{})['filter'](_0x5ac537=>this[_0x1e3d66(0x2b3)](_0x5ac537));if(_0x3095a0['length']===0x0)return _0x3ca6fe;let _0x278bd0={'version':0x1,'dataSources':{},'charts':{}};return _0x3095a0[_0x1e3d66(0x27b)](_0x4a5ec0=>{const _0x11a13a=_0x1e3d66;let _0x2df508=this[_0x11a13a(0x2ff)][_0x11a13a(0x2e4)](_0x116e12,_0x4a5ec0[_0x11a13a(0x195)]);if(!_0x2df508)return;let _0x1665db=this['_resourceService'][_0x11a13a(0x24a)](_0x116e12,_0x2df508['dataSourceId']);_0x1665db&&(_0x278bd0[_0x11a13a(0x324)][_0x2df508['id']]=_0x2a847b['deepClone'](_0x2df508),_0x278bd0[_0x11a13a(0x2b2)][_0x1665db['id']]=_0x2a847b[_0x11a13a(0x37d)](_0x1665db));}),Object['keys'](_0x278bd0[_0x1e3d66(0x324)])[_0x1e3d66(0x2ed)]===0x0?_0x3ca6fe:{..._0x3ca6fe,[Hr]:_0x278bd0};}[_0x370085(0x275)](_0x1f8e2f){const _0xa491e=_0x370085;let _0x4aab38=_0x1f8e2f[_0xa491e(0x2e2)][Hr];if(!_0x4aab38)return{'redoMutations':[],'undoMutations':[]};let _0x3feb76=new Map(),_0x58cf33=[],_0xeee90b=[],_0x3a8291=[],_0x5406a0=[];return _0x1f8e2f[_0xa491e(0x2ef)][_0xa491e(0x27b)](_0x493688=>{const _0x1e0555=_0xa491e;if(!this[_0x1e0555(0x2b3)](_0x493688[_0x1e0555(0x308)])||!this[_0x1e0555(0x2b3)](_0x493688[_0x1e0555(0x193)]))return;let _0x94ffef=_0x4aab38[_0x1e0555(0x324)][_0x493688[_0x1e0555(0x308)][_0x1e0555(0x195)]];if(!_0x94ffef)return;let _0x352b1c=_0x4aab38[_0x1e0555(0x2b2)][_0x94ffef[_0x1e0555(0x336)]];if(!_0x352b1c)return;let _0x1fdbe0=this[_0x1e0555(0x35e)](_0x1f8e2f[_0x1e0555(0x323)],_0x352b1c,_0x3feb76,_0x58cf33,_0xeee90b),_0x544dc8=_0x272bce(),_0x5e2aac={..._0x2a847b[_0x1e0555(0x37d)](_0x94ffef),'id':_0x544dc8,'dataSourceId':_0x1fdbe0};_0x493688[_0x1e0555(0x193)]['chartId']=_0x544dc8,_0x3a8291[_0x1e0555(0x325)]({'id':_0x3142bb['id'],'params':{'unitId':_0x1f8e2f['unitId'],'chart':_0x5e2aac}}),_0x5406a0[_0x1e0555(0x325)]({'id':_0xa94a83['id'],'params':{'unitId':_0x1f8e2f[_0x1e0555(0x323)],'chartId':_0x544dc8}});}),{'redoMutations':[..._0x58cf33,..._0x3a8291],'undoMutations':[..._0x5406a0,..._0xeee90b]};}[_0x370085(0x35e)](_0x5e95d1,_0x3c5b56,_0x36c0a7,_0x3cb8c3,_0x2fc8e3){const _0x20a21f=_0x370085;let _0x39d7a8=_0x36c0a7[_0x20a21f(0x1be)](_0x3c5b56['id']);if(_0x39d7a8)return _0x39d7a8;let _0x1c3f14=_0x272bce();return _0x36c0a7[_0x20a21f(0x267)](_0x3c5b56['id'],_0x1c3f14),_0x3cb8c3[_0x20a21f(0x325)]({'id':_0x13c244['id'],'params':{'unitId':_0x5e95d1,'dataSource':{..._0x2a847b[_0x20a21f(0x37d)](_0x3c5b56),'id':_0x1c3f14}}}),_0x2fc8e3[_0x20a21f(0x325)]({'id':_0xbf4392['id'],'params':{'unitId':_0x5e95d1,'dataSourceId':_0x1c3f14}}),_0x1c3f14;}['_isDocChartDrawing'](_0x21b14a){const _0x208973=_0x370085;let _0x307fcb=_0x21b14a;return(_0x307fcb==null?void 0x0:_0x307fcb[_0x208973(0x1eb)])===_0x486f2e[_0x208973(0x33c)]&&typeof _0x307fcb[_0x208973(0x195)]=='string';}};K=z([R(0x0,_0x1d3b66(_0x5923ec)),R(0x1,_0x1d3b66(_0x5c8b01)),R(0x2,_0x1d3b66(_0x1ece1f))],K);const Ur=new Set([_0x4a848b[_0x370085(0x270)],_0x4a848b[_0x370085(0x20a)],_0x4a848b[_0x370085(0x2b5)],_0x4a848b['AreaPercentStacked'],_0x4a848b[_0x370085(0x210)]]),Wr=_0x2858fd['filter'](_0x40c634=>!Ur['has'](_0x40c634[_0x370085(0x2dc)]));let q=class extends _0x3fb628{constructor(_0x42d3e7,_0x568a39,_0x523199,_0x4e2af1){const _0x865841=_0x370085;super(),this[_0x865841(0x33e)]=_0x42d3e7,this[_0x865841(0x1c6)]=_0x568a39,this[_0x865841(0x2ff)]=_0x523199,this[_0x865841(0x30b)]=_0x4e2af1,this[_0x865841(0x34a)]();}['_initAdapter'](){const _0x269b5e=_0x370085;this[_0x269b5e(0x33f)](this[_0x269b5e(0x33e)]['registerAdapter']({'getEditDrawingCommandInfo':({unitId:_0x4256e6,drawing:_0x333f30})=>{const _0x26ce5f=_0x269b5e;let _0x5b0a05=Gr(_0x333f30);return _0x5b0a05?{'label':this[_0x26ce5f(0x30b)]['t']('docs-chart-ui.common.editChart'),'commandId':L['id'],'commandParams':{'unitId':_0x4256e6,'chartId':_0x5b0a05[_0x26ce5f(0x195)],'drawingId':_0x5b0a05[_0x26ce5f(0x18f)]}}:null;}})),this[_0x269b5e(0x33f)](this[_0x269b5e(0x1c6)]['registerAdapter']({'getItems':({unitId:_0x3ff4e7,subUnitId:_0x5b7cad,drawing:_0x3c9ea1})=>{const _0x227918=_0x269b5e;var _0x5ebd9c,_0xea7245;let _0x33b0c8=Gr(_0x3c9ea1);if(!_0x33b0c8)return null;let _0x17a729=this[_0x227918(0x2ff)][_0x227918(0x2e4)](_0x3ff4e7,_0x33b0c8[_0x227918(0x195)]),_0xc359a9=(_0x17a729==null?void 0x0:_0x17a729[_0x227918(0x1dc)])??_0x4a848b[_0x227918(0x1a0)],_0x1d9d03=_0x41e0f0(Wr['map'](_0x4c2e00=>({..._0x4c2e00,'label':this['_localeService']['t']('docs-chart-ui.chartTypes.'+_0x4c2e00[_0x227918(0x26c)])}))),_0x137833=(_0x17a729==null||(_0x5ebd9c=_0x17a729[_0x227918(0x28f)])==null||(_0x5ebd9c=_0x5ebd9c[_0x227918(0x382)])==null||(_0x5ebd9c=_0x5ebd9c[_0x227918(0x2f9)])==null?void 0x0:_0x5ebd9c[_0x227918(0x27d)])===!0x0?(_0xea7245=_0x17a729[_0x227918(0x28f)][_0x227918(0x382)][_0x227918(0x2f9)][_0x227918(0x2b1)])==null?void 0x0:_0xea7245['type']:void 0x0,_0x450497=_0x137833?_0x1d9d03[_0x227918(0x20f)](_0x5edc75=>_0x5edc75['pieSecondaryPlotType']===_0x137833):void 0x0;return[{'type':'select','label':this['_localeService']['t']('docs-chart-ui.common.chartType'),'index':0x0,'commandId':_0x5845fd['id'],'commandParamsFactory':_0x18e66c=>{const _0x4a6546=_0x227918;var _0x478a46;let _0x306e65=_0x1d9d03[_0x4a6546(0x20f)](_0x103b84=>_0x103b84['value']===_0x18e66c),_0x24ae94=(_0x306e65==null?void 0x0:_0x306e65[_0x4a6546(0x1dc)])??Number(_0x18e66c),_0x10d756=_0x17a729==null||(_0x478a46=_0x17a729['style'])==null||(_0x478a46=_0x478a46[_0x4a6546(0x382)])==null?void 0x0:_0x478a46[_0x4a6546(0x2f9)],_0x16353c={'unitId':_0x3ff4e7,'chartId':_0x33b0c8[_0x4a6546(0x195)],'chartType':_0x24ae94};if(_0x306e65!=null&&_0x306e65[_0x4a6546(0x332)]){var _0x213c15;return{..._0x16353c,'style':{..._0x17a729==null?void 0x0:_0x17a729[_0x4a6546(0x28f)],'pie':{..._0x17a729==null||(_0x213c15=_0x17a729[_0x4a6546(0x28f)])==null?void 0x0:_0x213c15['pie'],'composite':{..._0x10d756,'enabled':!0x0,'secondaryPlot':{..._0x10d756==null?void 0x0:_0x10d756['secondaryPlot'],'type':_0x306e65[_0x4a6546(0x332)]}}}}};}if(_0x24ae94===_0x4a848b[_0x4a6546(0x2a7)]&&_0x10d756){var _0x3b6122;return{..._0x16353c,'style':{..._0x17a729==null?void 0x0:_0x17a729[_0x4a6546(0x28f)],'pie':{..._0x17a729==null||(_0x3b6122=_0x17a729[_0x4a6546(0x28f)])==null?void 0x0:_0x3b6122[_0x4a6546(0x382)],'composite':{..._0x10d756,'enabled':!0x1}}}};}return _0x16353c;},'disable':!_0x17a729,'value':(_0x450497==null?void 0x0:_0x450497['value'])??String(_0xc359a9),'options':_0x1d9d03},{'type':_0x227918(0x34e),'label':this['_localeService']['t'](_0x227918(0x303)),'index':0x1,'commandId':L['id'],'commandParams':{'unitId':_0x3ff4e7,'chartId':_0x33b0c8[_0x227918(0x195)],'drawingId':_0x33b0c8[_0x227918(0x18f)]},'disable':!0x1,'hideOnClick':!0x0,'icon':_0x227918(0x290)},{'type':_0x227918(0x34e),'label':this['_localeService']['t'](_0x227918(0x2cf)),'index':0x2,'commandId':_0xc3f9e9['id'],'commandParams':{'unitId':_0x3ff4e7,'drawings':[{'unitId':_0x3ff4e7,'subUnitId':_0x5b7cad,'drawingId':_0x33b0c8[_0x227918(0x18f)]}]},'disable':!0x1,'icon':_0x227918(0x24e)}];}}));}};q=z([R(0x0,_0x5c3c79),R(0x1,_0x1d3b66(_0x51ec66)),R(0x2,_0x1d3b66(_0x1ece1f)),R(0x3,_0x1d3b66(_0x294e5d))],q);function Gr(_0x53abfb){const _0x10efeb=_0x370085;let _0x8d3cdd=_0x53abfb;return(_0x8d3cdd==null?void 0x0:_0x8d3cdd['drawingType'])===_0x486f2e[_0x10efeb(0x33c)]&&typeof _0x8d3cdd[_0x10efeb(0x195)]=='string'?_0x8d3cdd:null;}const Kr=_0x157995('doc-chart.snapshot-renderer');var qr=class{constructor(_0x61eb62){const _0x291b56=_0x370085;this[_0x291b56(0x371)]=_0x61eb62;}async[_0x370085(0x307)](_0x273ab9,_0x5032a6){const _0x6e4b9b=_0x370085;if(typeof document>'u')throw TypeError('Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.');let _0x5357c9=new _0x77a63(_0x5032a6[_0x6e4b9b(0x195)],{'width':_0x273ab9[_0x6e4b9b(0x30a)],'height':_0x273ab9[_0x6e4b9b(0x194)]}),_0x3a53d1=this['_renderService'][_0x6e4b9b(0x2bf)](_0x4c477b['Image']);try{let {chartConfig:_0x1f90c4,chartStyle:_0x29e583}=this[_0x6e4b9b(0x371)][_0x6e4b9b(0x1a1)](_0x5032a6);_0x3a53d1[_0x6e4b9b(0x2d3)](_0x5357c9),await _0x3a53d1[_0x6e4b9b(0x307)]({'chartId':_0x5032a6[_0x6e4b9b(0x195)],'config':_0x1f90c4,'style':_0x29e583});let _0xaa93d1=_0x5357c9['getDataUrl']();if(!_0xaa93d1)throw Error('Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20'+_0x5032a6[_0x6e4b9b(0x323)]+'/'+_0x5032a6['chartId']);return _0xaa93d1;}finally{_0x3a53d1[_0x6e4b9b(0x220)](),_0x5357c9[_0x6e4b9b(0x220)]();}}};let J=class extends _0x574166{constructor(_0x1c2b23,_0x1369bd,_0x385d0b,_0x5b168e){super(_0x1c2b23,_0x1369bd,_0x5b168e??new qr(_0x385d0b));}};J=z([R(0x0,_0x1d3b66(_0x294e5d)),R(0x1,_0x1d3b66(_0x430122)),R(0x2,_0x1d3b66(U)),R(0x3,_0x466a03(Kr))],J);let Jr=class extends _0x3fb628{constructor(_0x3bbbee,_0x285b92,_0x169f79,_0x59675c){const _0x5b98ea=_0x370085;super(),this[_0x5b98ea(0x2ee)]=_0x3bbbee,this[_0x5b98ea(0x181)]=_0x285b92,this['_resourceService']=_0x169f79,this[_0x5b98ea(0x18a)]=_0x59675c,this[_0x5b98ea(0x2c8)]();}['_listenChartResourceMutations'](){const _0x4916ff=_0x370085;this['disposeWithMe'](this[_0x4916ff(0x2ee)][_0x4916ff(0x1ee)](_0x489868=>{const _0x5ca80b=_0x4916ff;if(_0x489868['id']===_0x3142bb['id']){var _0x185e65;let _0x106f70=_0x489868['params'];_0x106f70!=null&&_0x106f70[_0x5ca80b(0x323)]&&(_0x185e65=_0x106f70['chart'])!=null&&_0x185e65['id']&&(this[_0x5ca80b(0x2fa)](_0x106f70)?this['_snapshotService'][_0x5ca80b(0x340)](_0x106f70[_0x5ca80b(0x323)],_0x106f70[_0x5ca80b(0x21e)]['id'],{'waitForConfig':!0x0}):this[_0x5ca80b(0x181)][_0x5ca80b(0x340)](_0x106f70[_0x5ca80b(0x323)],_0x106f70['chart']['id']));return;}if(_0x489868['id']===_0x13c244['id']){var _0x106c8b;let _0x151083=_0x489868['params'];if(!(_0x151083!=null&&_0x151083['unitId'])||!((_0x106c8b=_0x151083[_0x5ca80b(0x379)])!=null&&_0x106c8b['id']))return;this[_0x5ca80b(0x2ff)][_0x5ca80b(0x196)](_0x151083['unitId'],_0x151083[_0x5ca80b(0x379)]['id'])[_0x5ca80b(0x27b)](_0x19c398=>this['_snapshotService']['invalidateChart'](_0x151083[_0x5ca80b(0x323)],_0x19c398,{'waitForConfig':!0x0}));}}));}['_shouldWaitForChartConfig'](_0x3107ac){const _0x39c0e4=_0x370085;var _0x553711;let _0x37df60=(_0x553711=this[_0x39c0e4(0x18a)][_0x39c0e4(0x29b)](_0x3107ac[_0x39c0e4(0x323)],_0x3107ac[_0x39c0e4(0x21e)]['id']))==null||(_0x553711=_0x553711[_0x39c0e4(0x262)]['config'])==null?void 0x0:_0x553711[_0x39c0e4(0x228)];return _0x37df60!=null&&_0x37df60!==_0x3107ac[_0x39c0e4(0x21e)][_0x39c0e4(0x1dc)];}};Jr=z([R(0x0,_0x1102d3),R(0x1,_0x1d3b66(J)),R(0x2,_0x1d3b66(_0x1ece1f)),R(0x3,_0x1d3b66(_0x430122))],Jr);const Y=I['id'],Yr=Y+_0x370085(0x36e);function Xr(_0x25752a){const _0x34a6f5=_0x370085;return _0xcd3af2([_0x115128(_0x25752a),Zr(_0x25752a)])[_0x34a6f5(0x34c)](_0x5eb2ec(([_0x26be6d,_0x23103e])=>_0x26be6d||_0x23103e));}function Zr(_0x547c97){const _0x2dd386=_0x370085;let _0x434825=_0x547c97[_0x2dd386(0x1be)](_0x585f68),_0x2c1d22=_0x547c97['get'](_0x45a8d9);return new _0x334c6a(_0xba87cc=>{const _0x38ff84=_0x2dd386;let _0x43fe74=_0x1047ab=>{const _0x1ac289=_0x19d9;let _0x1f9a90=_0x2c1d22[_0x1ac289(0x349)](_0x4c0d56[_0x1ac289(0x1bb)]);if(!_0x1f9a90){_0xba87cc['next'](!0x0);return;}let _0x1051a0=(_0x1047ab==null?void 0x0:_0x1047ab[_0x1ac289(0x22c)])??[..._0x434825[_0x1ac289(0x26d)]()??[]];if(_0x1051a0['length']!==0x1){_0xba87cc[_0x1ac289(0x346)](!0x0);return;}let _0x2ff469=_0x434825['getActiveTextRange']()??_0x1051a0[0x0];if(!_0x2ff469||!_0x2ff469[_0x1ac289(0x2cd)]||_0x2ff469[_0x1ac289(0x252)]==null){_0xba87cc[_0x1ac289(0x346)](!0x0);return;}let _0x454289=W(_0x1f9a90,{..._0x2ff469,'segmentId':_0x2ff469[_0x1ac289(0x380)]??(_0x1047ab==null?void 0x0:_0x1047ab[_0x1ac289(0x380)])??''});_0xba87cc[_0x1ac289(0x346)](_0x454289==null);};_0x43fe74();let _0x46488a=_0x434825[_0x38ff84(0x200)]['subscribe'](_0x53f271=>_0x43fe74(_0x53f271));return()=>_0x46488a[_0x38ff84(0x1ce)]();});}function Qr(_0x3f9d2a){return X(_0x3f9d2a);}function X(_0x54531f){const _0x2eb2db=_0x370085;let _0x5c4f62=_0x54531f[_0x2eb2db(0x1be)](_0x294e5d)['t'](_0x2eb2db(0x1fb));return{'id':Y,'commandId':I['id'],'type':_0x2b9f44[_0x2eb2db(0x306)],'icon':_0x2eb2db(0x2ab),'title':_0x5c4f62,'tooltip':_0x5c4f62,'disabled$':Xr(_0x54531f),'hidden$':_0xd206c3(_0x54531f,_0x4c0d56[_0x2eb2db(0x1bb)])};}function $r(_0x4d9e6e){const _0x5ac428=_0x370085;let _0x2dcac5=_0x4d9e6e['get'](_0x294e5d)['t'](_0x5ac428(0x1fb));return{'id':Yr,'commandId':I['id'],'type':_0x2b9f44['BUTTON'],'icon':'ChartIcon','title':_0x2dcac5,'tooltip':_0x2dcac5,'disabled$':Xr(_0x4d9e6e),'hidden$':_0xd206c3(_0x4d9e6e,_0x4c0d56[_0x5ac428(0x1bb)])};}const ei={[_0xce7917[_0x370085(0x362)]]:{[Y]:{'order':2.5,'menuItemFactory':Qr}},[_0x59d1d6['PARAGRAPH']]:{[_0x513559[_0x370085(0x29e)]]:{[_0xdc274d]:{[Y]:{'order':4.5,'menuItemFactory':X}}},[_0x5ed26d]:{[_0x513559['LAYOUT']]:{[Y]:{'order':5.5,'menuItemFactory':X}}},[_0x41572f]:{[_0x513559[_0x370085(0x29e)]]:{[Y]:{'order':4.5,'menuItemFactory':X}}},[_0x532c23]:{'insert':{[Y]:{'order':1.5,'menuItemFactory':X}}},[_0x54b479]:{'insert':{[Yr]:{'order':1.5,'menuItemFactory':$r}}}}};var ti='@univerjs-pro/docs-chart-ui',ni=_0x370085(0x1f8),ri=class extends _0x51e48c{constructor(..._0x3db957){const _0x395b13=_0x370085;super(..._0x3db957),H(this,_0x395b13(0x226),!0x1);}get[_0x370085(0x2e6)](){const _0x33baa2=_0x370085;return this[_0x33baa2(0x226)];}[_0x370085(0x2fc)](_0x3b5ab6){const _0x117e7e=_0x370085;this[_0x117e7e(0x226)]!==_0x3b5ab6&&(this[_0x117e7e(0x226)]=_0x3b5ab6,this['makeDirty'](!0x0));}[_0x370085(0x1af)](_0x2146ed,_0x682bf4,_0x4636b3,_0x19cf20){const _0x4b2847=_0x370085;this[_0x4b2847(0x226)]||super[_0x4b2847(0x1af)](_0x2146ed,_0x682bf4,_0x4636b3,_0x19cf20);}};const ii={'borderEnabled':!0x0,'borderStroke':_0x370085(0x311),'borderStrokeWidth':0x1,'borderSpacing':0x2,'anchorFill':'#ffffff','anchorStroke':_0x370085(0x311),'anchorStrokeWidth':1.5,'anchorSize':0x8,'anchorCornerRadius':0x2,'anchorStyle':'canva','rotateEnabled':!0x0,'rotateSize':0x12,'rotateCornerRadius':0x9,'rotateAnchorOffset':0x1c,'rotateAnchorPosition':_0x370085(0x232),'rotateLineEnabled':!0x1,'rotateFill':_0x370085(0x268),'rotateStroke':'#4086f4','rotateStrokeWidth':0x1,'rotateIconEnabled':!0x0,'rotateIconStroke':_0x370085(0x311),'rotateIconStrokeWidth':1.25,'resizeEnabled':!0x0,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1},ai={...ii,'rotateEnabled':!0x1};let oi=class extends _0x3fb628{constructor(_0x35cdf7,_0x26a32d,_0x2ce27c){const _0x367d66=_0x370085;super(),this[_0x367d66(0x29a)]=_0x35cdf7,this[_0x367d66(0x2ec)]=_0x26a32d,this['_snapshotRenderService']=_0x2ce27c,H(this,_0x367d66(0x206),new Set()),this[_0x367d66(0x225)]();}[_0x370085(0x313)](_0x37a9bf,_0x408ea6){const _0x8d1c5b=_0x370085;let _0x56108c=_0x287631(_0x37a9bf);_0x408ea6?this[_0x8d1c5b(0x206)][_0x8d1c5b(0x318)](_0x56108c):this[_0x8d1c5b(0x206)][_0x8d1c5b(0x2e9)](_0x56108c),this[_0x8d1c5b(0x186)](_0x37a9bf);}[_0x370085(0x225)](){const _0x36f05f=_0x370085;this[_0x36f05f(0x33f)](this[_0x36f05f(0x29a)][_0x36f05f(0x2c5)][_0x36f05f(0x1a7)](_0x3c035d=>{const _0x30f56b=_0x36f05f;this[_0x30f56b(0x1d6)](_0x3c035d);})),this['disposeWithMe'](this[_0x36f05f(0x29a)]['refreshTransform$'][_0x36f05f(0x1a7)](_0x2a07f3=>{const _0x2e84a8=_0x36f05f;this[_0x2e84a8(0x1d6)](_0x2a07f3);})),this[_0x36f05f(0x33f)](this[_0x36f05f(0x29a)][_0x36f05f(0x2f3)]['subscribe'](_0x8ac96b=>{this['_removeRenderedCharts'](_0x8ac96b);})),this['disposeWithMe'](this[_0x36f05f(0x2e3)][_0x36f05f(0x1b9)]['subscribe'](({unitId:_0x3296de,chartId:_0x3e5844})=>{this['_requestSnapshotsForUnit'](_0x3296de,_0x3e5844);})),this[_0x36f05f(0x33f)](this[_0x36f05f(0x2e3)][_0x36f05f(0x28e)][_0x36f05f(0x1a7)](_0xc5e2ec=>{const _0x160f03=_0x36f05f;if(_0xc5e2ec['status']!==_0x160f03(0x253)||!_0xc5e2ec[_0x160f03(0x1e8)])return;let [_0x2b04c0,_0x1f745a]=_0xc5e2ec[_0x160f03(0x242)][_0x160f03(0x1c8)]('::');!_0x2b04c0||!_0x1f745a||this[_0x160f03(0x1bd)](_0x2b04c0,_0x1f745a,_0xc5e2ec[_0x160f03(0x1e8)]);}));}[_0x370085(0x1d6)](_0x27db4d){_0x27db4d['forEach'](_0x3e8b30=>{const _0x547f98=_0x19d9;let _0x50d63c=this[_0x547f98(0x32c)](_0x3e8b30);_0x50d63c&&this[_0x547f98(0x29d)](_0x50d63c);});}[_0x370085(0x2a5)](_0x47befc,_0x5d188d){this['_forEachChartDrawing'](_0x47befc,_0x325578=>{const _0x4273b6=_0x19d9;(_0x5d188d==null||_0x325578[_0x4273b6(0x195)]===_0x5d188d)&&this['_requestSnapshot'](_0x325578);});}['_requestSnapshot'](_0x4baae0){const _0x1a8f2c=_0x370085;let _0x42646c=this['_getDrawingRect'](_0x4baae0);if(!_0x42646c)return;let _0x34080a=this['_snapshotRenderService'][_0x1a8f2c(0x2a2)]({'unitId':_0x4baae0[_0x1a8f2c(0x323)],'chartId':_0x4baae0[_0x1a8f2c(0x195)],'width':_0x42646c[_0x1a8f2c(0x30a)],'height':_0x42646c[_0x1a8f2c(0x194)],'dpr':typeof window>'u'?0x1:window[_0x1a8f2c(0x366)]||0x1,'mode':_0x1a8f2c(0x266)});_0x34080a['status']===_0x1a8f2c(0x253)&&_0x34080a[_0x1a8f2c(0x1e8)]&&this['_renderDrawing'](_0x4baae0,_0x34080a[_0x1a8f2c(0x1e8)]);}[_0x370085(0x1bd)](_0x1bb209,_0x186965,_0x4ad95a){const _0x592d15=_0x370085;this[_0x592d15(0x1ef)](_0x1bb209,_0x5af603=>{const _0x2662dd=_0x592d15;_0x5af603[_0x2662dd(0x195)]===_0x186965&&this['_renderDrawing'](_0x5af603,_0x4ad95a);});}['_renderDrawing'](_0x13f3b7,_0x520f52){const _0xc1a079=_0x370085;let _0x30b442=this[_0xc1a079(0x2ec)][_0xc1a079(0x321)](_0x13f3b7['unitId']),_0x5f450f=_0x30b442==null?void 0x0:_0x30b442[_0xc1a079(0x365)];if(!_0x5f450f||!this[_0xc1a079(0x240)](_0x13f3b7))return;this[_0xc1a079(0x29a)][_0xc1a079(0x1b3)]()&&_0x5f450f[_0xc1a079(0x2b0)](ii);let _0x37d5d5=_0x287631(_0x13f3b7),_0x31d6cb=_0x5f450f[_0xc1a079(0x254)](_0x37d5d5);if(_0x31d6cb!=null&&_0x31d6cb[_0xc1a079(0x286)]){var _0x105eb3,_0x6648de,_0x5d5003,_0x25f897;_0x31d6cb[_0xc1a079(0x1b8)]={..._0x31d6cb[_0xc1a079(0x1b8)],...ai},_0x31d6cb[_0xc1a079(0x286)](_0x520f52),(_0x105eb3=_0x31d6cb['transformByState'])==null||_0x105eb3[_0xc1a079(0x2c3)](_0x31d6cb,_0x13f3b7[_0xc1a079(0x292)]),(_0x6648de=_0x31d6cb[_0xc1a079(0x34d)])==null||_0x6648de[_0xc1a079(0x2c3)](_0x31d6cb,(_0x5d5003=_0x13f3b7[_0xc1a079(0x292)])==null?void 0x0:_0x5d5003[_0xc1a079(0x2ea)]),this[_0xc1a079(0x33a)](_0x31d6cb,_0x13f3b7,_0x37d5d5),(_0x25f897=_0x31d6cb[_0xc1a079(0x1fc)])==null||_0x25f897[_0xc1a079(0x2c3)](_0x31d6cb,!0x0);return;}this[_0xc1a079(0x344)](_0x13f3b7,_0x520f52,_0x5f450f,_0x37d5d5);}['_createImageShape'](_0x93fa15,_0x202663,_0x1521ca,_0x301866){const _0x2262a3=_0x370085;let _0x16dc4e=_0x93fa15[_0x2262a3(0x292)];if(!_0x16dc4e)return;let _0x57794d=this[_0x2262a3(0x29a)][_0x2262a3(0x381)](_0x93fa15[_0x2262a3(0x323)],_0x93fa15[_0x2262a3(0x1cc)]),_0x25d0e9=_0x57794d[_0x2262a3(0x370)](_0x93fa15[_0x2262a3(0x18f)]),_0x181ae2={..._0x16dc4e,'zIndex':_0x25d0e9===-0x1?_0x57794d[_0x2262a3(0x2ed)]-0x1:_0x25d0e9,'clipBounds':_0x16dc4e[_0x2262a3(0x2ea)],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':ai,'url':_0x202663};_0x93fa15[_0x2262a3(0x1f6)]&&(_0x181ae2[_0x2262a3(0x25f)]=!0x1);let _0x2521d3=new ri(_0x301866,_0x181ae2);_0x2521d3[_0x2262a3(0x2fc)](this[_0x2262a3(0x206)][_0x2262a3(0x23d)](_0x301866)),_0x1521ca[_0x2262a3(0x1de)](_0x2521d3,_0x5cbf20),this[_0x2262a3(0x29a)][_0x2262a3(0x1b3)]()&&_0x1521ca[_0x2262a3(0x2c4)](_0x2521d3);}[_0x370085(0x2ce)](_0x2a8152){const _0x4c12d0=_0x370085;_0x2a8152[_0x4c12d0(0x27b)](_0x3030f4=>{const _0x43ee7d=_0x4c12d0;this['_activeDomReadyDrawingKeys'][_0x43ee7d(0x2e9)](_0x287631(_0x3030f4));let _0x36c608=this['_renderManagerService']['getRenderUnitById'](_0x3030f4['unitId']),_0x9b6e8b=_0x36c608==null?void 0x0:_0x36c608[_0x43ee7d(0x365)];if(!_0x9b6e8b)return;let _0x1f34f3=_0x9b6e8b[_0x43ee7d(0x254)](_0x287631(_0x3030f4));_0x1f34f3&&_0x9b6e8b[_0x43ee7d(0x1b6)](_0x1f34f3);});}[_0x370085(0x186)](_0x468ee6){const _0x4723c9=_0x370085;let _0x4e385d=this['_renderManagerService'][_0x4723c9(0x321)](_0x468ee6[_0x4723c9(0x323)]),_0x2ed9cc=_0x4e385d==null?void 0x0:_0x4e385d[_0x4723c9(0x365)];if(!_0x2ed9cc)return;let _0x2eb14a=_0x287631(_0x468ee6),_0x383636=_0x2ed9cc['getObjectIncludeInGroup'](_0x2eb14a);if(!_0x383636)return;let _0x2535c3=this['_drawingManagerService'][_0x4723c9(0x1ad)](_0x468ee6);this[_0x4723c9(0x33a)](_0x383636,_0x2535c3,_0x2eb14a);}['_syncChartImageVisibility'](_0x198ff8,_0x129d12,_0x7f0116){const _0x4e938c=_0x370085;var _0x231130,_0x22899d;let _0x1e2172=this[_0x4e938c(0x206)]['has'](_0x7f0116);if(_0x198ff8['setImageContentHidden']){var _0x467303,_0x1b1ec0;_0x198ff8[_0x4e938c(0x2fc)](_0x1e2172),(_0x129d12==null?void 0x0:_0x129d12[_0x4e938c(0x1f6)])===!0x0?(_0x467303=_0x198ff8[_0x4e938c(0x21c)])==null||_0x467303[_0x4e938c(0x2c3)](_0x198ff8):(_0x1b1ec0=_0x198ff8[_0x4e938c(0x18e)])==null||_0x1b1ec0[_0x4e938c(0x2c3)](_0x198ff8);return;}(_0x129d12==null?void 0x0:_0x129d12['hidden'])===!0x0?(_0x231130=_0x198ff8[_0x4e938c(0x21c)])==null||_0x231130[_0x4e938c(0x2c3)](_0x198ff8):(_0x22899d=_0x198ff8[_0x4e938c(0x18e)])==null||_0x22899d[_0x4e938c(0x2c3)](_0x198ff8);}[_0x370085(0x32c)](_0x44c23c){const _0x1671ad=_0x370085;let _0x3524bb=this[_0x1671ad(0x29a)][_0x1671ad(0x1ad)](_0x44c23c);return si(_0x3524bb)?_0x3524bb:null;}[_0x370085(0x1ef)](_0x1aa62c,_0x4f2f3e){const _0x1aa656=_0x370085;let _0xf7ced8=this[_0x1aa656(0x29a)][_0x1aa656(0x2fd)](_0x1aa62c),_0x19d5cb=_0xf7ced8==null?void 0x0:_0xf7ced8[_0x1aa62c];_0x19d5cb&&_0x19d5cb[_0x1aa656(0x1d2)][_0x1aa656(0x27b)](_0x305621=>{let _0x2ae181=_0x19d5cb['data'][_0x305621];si(_0x2ae181)&&_0x4f2f3e(_0x2ae181);});}[_0x370085(0x240)](_0x2845c7){const _0x84bf15=_0x370085;var _0x674f4c,_0x49ada5,_0x113f34,_0x6eb903;let _0x1678c3=((_0x674f4c=_0x2845c7['transform'])==null?void 0x0:_0x674f4c[_0x84bf15(0x30a)])??((_0x49ada5=_0x2845c7[_0x84bf15(0x1cd)])==null||(_0x49ada5=_0x49ada5[_0x84bf15(0x310)])==null?void 0x0:_0x49ada5[_0x84bf15(0x30a)])??0x0,_0x3a9715=((_0x113f34=_0x2845c7[_0x84bf15(0x292)])==null?void 0x0:_0x113f34[_0x84bf15(0x194)])??((_0x6eb903=_0x2845c7[_0x84bf15(0x1cd)])==null||(_0x6eb903=_0x6eb903[_0x84bf15(0x310)])==null?void 0x0:_0x6eb903[_0x84bf15(0x194)])??0x0;return _0x1678c3<=0x0||_0x3a9715<=0x0?null:{'width':Math['max'](0x1,Math['round'](_0x1678c3)),'height':Math[_0x84bf15(0x19d)](0x1,Math[_0x84bf15(0x341)](_0x3a9715))};}};oi=z([R(0x0,_0x36bc12),R(0x1,_0x4f1cbe),R(0x2,_0x1d3b66(J))],oi);function si(_0x1f8ecd){const _0x52748f=_0x370085;let _0x2db496=_0x1f8ecd;return(_0x2db496==null?void 0x0:_0x2db496[_0x52748f(0x1eb)])===_0x486f2e[_0x52748f(0x33c)]&&typeof _0x2db496[_0x52748f(0x195)]==_0x52748f(0x294);}function ci(_0x3ef49d,_0x281ee7,_0x4123a5=0x1,_0x112407=0x0){const _0x3cc30e=_0x370085;let {top:_0x53bfab,left:_0x1862f8,bottom:_0x485163,right:_0xcc5cec}=_0x3ef49d,_0x51179f=_0xcc5cec-_0x1862f8,_0x3227d0=_0x485163-_0x53bfab,{viewportScrollX:_0x537861,viewportScrollY:_0x1bb013}=_0x281ee7['getViewport'](_0x18b052[_0x3cc30e(0x1c7)]),{scaleX:_0x57930f,scaleY:_0x1b388e}=_0x281ee7[_0x3cc30e(0x34f)](),_0x197c11=(_0x1862f8-_0x537861)*_0x57930f,_0x1f28a5=(_0x53bfab-_0x1bb013)*_0x1b388e,_0x457d85=_0x51179f*_0x57930f,_0xc1dd5f=_0x3227d0*_0x1b388e;return{'startX':_0x197c11,'startY':_0x1f28a5,'endX':_0x197c11+_0x457d85,'endY':_0x1f28a5+_0xc1dd5f,'width':_0x457d85,'height':_0xc1dd5f,'rotate':_0x112407,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x4123a5};}function li(_0x141746,_0x48ae9a){const _0x393282=_0x370085;return _0x141746[_0x393282(0x323)]===_0x48ae9a[_0x393282(0x323)]&&(_0x141746[_0x393282(0x1cc)]??_0x141746[_0x393282(0x323)])===(_0x48ae9a[_0x393282(0x1cc)]??_0x48ae9a['unitId'])&&_0x141746[_0x393282(0x18f)]===_0x48ae9a[_0x393282(0x18f)];}function ui(_0x5dd656,_0x38d8a7=0x0){const _0x35bed7=_0x370085;return _0x5dd656[_0x35bed7(0x20f)](_0x116f0d=>typeof _0x116f0d=='number'&&Number['isFinite'](_0x116f0d))??_0x38d8a7;}function di(_0x510609,_0x2de6e4){const _0x39a6a7=_0x370085;var _0x54c295,_0x2cf932,_0x5b930a,_0x54c3ea,_0x2e532d,_0x5cab89,_0x3b04fd;let _0x2ebf94=_0x2de6e4==null||(_0x54c295=_0x2de6e4[_0x39a6a7(0x19f)])==null?void 0x0:_0x54c295[_0x39a6a7(0x2c3)](_0x2de6e4),_0x4ac993=ui([_0x2ebf94==null?void 0x0:_0x2ebf94['width'],(_0x2cf932=_0x510609[_0x39a6a7(0x292)])==null?void 0x0:_0x2cf932[_0x39a6a7(0x30a)],(_0x5b930a=_0x510609[_0x39a6a7(0x1cd)])==null||(_0x5b930a=_0x5b930a[_0x39a6a7(0x310)])==null?void 0x0:_0x5b930a[_0x39a6a7(0x30a)]]),_0xc5a2c7=ui([_0x2ebf94==null?void 0x0:_0x2ebf94[_0x39a6a7(0x194)],(_0x54c3ea=_0x510609[_0x39a6a7(0x292)])==null?void 0x0:_0x54c3ea[_0x39a6a7(0x194)],(_0x2e532d=_0x510609[_0x39a6a7(0x1cd)])==null||(_0x2e532d=_0x2e532d[_0x39a6a7(0x310)])==null?void 0x0:_0x2e532d[_0x39a6a7(0x194)]]),_0x3a88d9=ui([_0x2ebf94==null?void 0x0:_0x2ebf94[_0x39a6a7(0x1e9)],(_0x5cab89=_0x510609[_0x39a6a7(0x292)])==null?void 0x0:_0x5cab89[_0x39a6a7(0x1e9)]]),_0x1af0d5=ui([_0x2ebf94==null?void 0x0:_0x2ebf94[_0x39a6a7(0x37a)],(_0x3b04fd=_0x510609[_0x39a6a7(0x292)])==null?void 0x0:_0x3b04fd[_0x39a6a7(0x37a)]]);return{'left':_0x3a88d9,'top':_0x1af0d5,'right':_0x3a88d9+_0x4ac993,'bottom':_0x1af0d5+_0xc5a2c7};}function fi(_0x256e02,_0x5c8b2a){const _0x396956=_0x370085;if(!_0x256e02||typeof _0x256e02!=_0x396956(0x227))return;let _0x4147a3=_0x256e02;if(typeof _0x4147a3[_0x396956(0x214)]==_0x396956(0x1f4)){let _0x44ba5b=_0x4147a3['subscribeEvent'](_0x5c8b2a);return _0x20a8ed(()=>{const _0x3653cf=_0x396956;var _0x428d7b;if(typeof _0x44ba5b[_0x3653cf(0x220)]==_0x3653cf(0x1f4)){_0x44ba5b[_0x3653cf(0x220)]();return;}(_0x428d7b=_0x44ba5b[_0x3653cf(0x1ce)])==null||_0x428d7b[_0x3653cf(0x2c3)](_0x44ba5b);});}let _0xe08785=_0x256e02;if(typeof _0xe08785[_0x396956(0x1a7)]=='function'){let _0x558778=_0xe08785[_0x396956(0x1a7)](_0x5c8b2a);return _0x20a8ed(()=>{var _0x478154;return(_0x478154=_0x558778['unsubscribe'])==null?void 0x0:_0x478154['call'](_0x558778);});}}let Z=class extends _0x3fb628{constructor(_0x2caf4d,_0x5ee3fa,_0x38ea11,_0x51405d,_0x202efd,_0x20e347,_0x36e056,_0x3ab540,_0x50f68a,_0x1a34e0){const _0x89116f=_0x370085;super(),this[_0x89116f(0x29a)]=_0x2caf4d,this[_0x89116f(0x2ec)]=_0x5ee3fa,this[_0x89116f(0x337)]=_0x38ea11,this[_0x89116f(0x18a)]=_0x51405d,this[_0x89116f(0x371)]=_0x202efd,this[_0x89116f(0x2e3)]=_0x20e347,this['_commandService']=_0x36e056,this[_0x89116f(0x315)]=_0x3ab540,this[_0x89116f(0x30b)]=_0x50f68a,this[_0x89116f(0x1f9)]=_0x1a34e0,H(this,'_activeLayer',null),H(this,_0x89116f(0x2a0),new _0x3240a4()),this['_init']();}[_0x370085(0x317)](_0x324910){const _0x17b0af=_0x370085;let _0x2fc9fb=this['_modelService'][_0x17b0af(0x2ac)](_0x324910['unitId'],_0x324910[_0x17b0af(0x195)]);if(!_0x2fc9fb)return _0x20a8ed(()=>{});let _0x458c9c=new _r(_0x324910[_0x17b0af(0x195)],_0x324910['root'],(_0x14302e,_0x1e70b8)=>this['_renderService'][_0x17b0af(0x213)](_0x14302e,_0x1e70b8),()=>this['_getActiveRenderRect'](_0x324910)),_0x3a4d71=this[_0x17b0af(0x371)]['createChartInstance'](_0x4c477b[_0x17b0af(0x279)]);_0x3a4d71[_0x17b0af(0x2d3)](_0x458c9c);let _0xa82736=[_0x3a4d71['on'](_0x17b0af(0x2d2),_0x1b5df7=>{const _0x1f2cc8=_0x17b0af;let _0x59b8a4=_0x2fbd28(_0x2fc9fb['model'],_0x1b5df7['hit']);if(!_0x59b8a4)return;let _0x4e81f0=_0x42cbe4(_0x59b8a4[_0x1f2cc8(0x2f8)]);_0x4e81f0&&this[_0x1f2cc8(0x2ee)][_0x1f2cc8(0x2d6)](L['id'],{'unitId':_0x324910['unitId'],'chartId':_0x324910[_0x1f2cc8(0x195)],'drawingId':_0x324910[_0x1f2cc8(0x18f)],'route':_0x4e81f0});}),_0x3a4d71['on'](_0x17b0af(0x37f),()=>{const _0x5ba5ca=_0x17b0af;this[_0x5ba5ca(0x2ee)][_0x5ba5ca(0x2d6)](L['id'],{'unitId':_0x324910['unitId'],'chartId':_0x324910[_0x5ba5ca(0x195)],'drawingId':_0x324910[_0x5ba5ca(0x18f)]});})],_0xc6c689=!0x0;return _0xa82736[_0x17b0af(0x325)](this[_0x17b0af(0x1ca)](_0x2fc9fb,_0x3a4d71,_0x324910,()=>_0xc6c689)),_0x20a8ed(()=>{const _0x19cc47=_0x17b0af;_0xc6c689=!0x1,this['_staticRenderController'][_0x19cc47(0x313)](this[_0x19cc47(0x35a)](_0x324910),!0x1),_0xa82736[_0x19cc47(0x27b)](_0x5f269e=>_0x5f269e[_0x19cc47(0x220)]()),_0x3a4d71[_0x19cc47(0x220)](),_0x458c9c[_0x19cc47(0x220)]();});}[_0x370085(0x220)](){const _0x52ccf7=_0x370085;this['_deactivate'](),this[_0x52ccf7(0x2a0)][_0x52ccf7(0x2f1)](),super[_0x52ccf7(0x220)]();}[_0x370085(0x225)](){const _0x5be932=_0x370085;this[_0x5be932(0x33f)](this[_0x5be932(0x29a)][_0x5be932(0x36c)][_0x5be932(0x1a7)](_0x5a0869=>{const _0x396181=_0x5be932;this[_0x396181(0x1ec)](_0x5a0869);})),this[_0x5be932(0x33f)](this[_0x5be932(0x29a)][_0x5be932(0x2f3)]['subscribe'](_0x562f01=>{const _0x2d064a=_0x5be932;let _0x4d0c67=this[_0x2d064a(0x18b)];_0x4d0c67&&_0x562f01[_0x2d064a(0x2f7)](_0x40beee=>li(_0x40beee,_0x4d0c67))&&this[_0x2d064a(0x2f2)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x5be932(0x2e1)][_0x5be932(0x1a7)](_0x499ce1=>{const _0x3f9fbc=_0x5be932;let _0x28b71a=this[_0x3f9fbc(0x18b)];if(!_0x28b71a){this[_0x3f9fbc(0x2d9)](_0x499ce1);return;}let _0x5cd7f3=_0x499ce1[_0x3f9fbc(0x20f)](_0x3850ea=>li(_0x3850ea,_0x28b71a));if(_0x5cd7f3){let _0x1c389c=this[_0x3f9fbc(0x29a)][_0x3f9fbc(0x1ad)]({'unitId':_0x5cd7f3[_0x3f9fbc(0x323)],'subUnitId':_0x5cd7f3[_0x3f9fbc(0x1cc)],'drawingId':_0x5cd7f3[_0x3f9fbc(0x18f)]});this[_0x3f9fbc(0x2b3)](_0x1c389c)&&this[_0x3f9fbc(0x255)](_0x1c389c);}})),this['disposeWithMe'](this[_0x5be932(0x315)]['getCurrentTypeOfUnit$'](_0x4c0d56[_0x5be932(0x1bb)])[_0x5be932(0x1a7)](_0x4ec37c=>{const _0x15526f=_0x5be932;let _0x55d977=this[_0x15526f(0x18b)];_0x55d977&&(_0x4ec37c==null?void 0x0:_0x4ec37c['getUnitId']())!==_0x55d977[_0x15526f(0x323)]&&this[_0x15526f(0x2f2)]();}));}[_0x370085(0x1ca)](_0x29b2b9,_0x1a21fc,_0x127b55,_0x21809c){const _0x469187=_0x370085;let _0x9635cb=()=>{const _0x6683ca=_0x19d9;let {chartConfig:_0x2495eb,chartStyle:_0x4333d7}=this[_0x6683ca(0x371)][_0x6683ca(0x1a1)](_0x29b2b9);Promise[_0x6683ca(0x288)](_0x1a21fc[_0x6683ca(0x307)]({'chartId':_0x29b2b9[_0x6683ca(0x195)],'config':_0x2495eb,'style':_0x4333d7}))[_0x6683ca(0x2bb)](()=>{const _0x27e649=_0x6683ca;_0x21809c()&&this[_0x27e649(0x2d5)](_0x127b55)&&this[_0x27e649(0x1f9)][_0x27e649(0x313)](this['_getDrawingSearch'](_0x127b55),!0x0);},()=>{});},_0x473ae7=_0xcd3af2([_0x29b2b9[_0x469187(0x262)][_0x469187(0x1c2)],_0x29b2b9[_0x469187(0x262)]['style$'],this[_0x469187(0x30b)][_0x469187(0x2e8)]])[_0x469187(0x34c)](_0x515dd0(([_0xc71be5])=>_0xc71be5!=null))['subscribe'](_0x9635cb),_0x8f7ca2=this[_0x469187(0x2a0)][_0x469187(0x34c)](_0x515dd0(_0x14db23=>_0x14db23===_0x127b55[_0x469187(0x18f)]))['subscribe'](_0x9635cb);return _0x20a8ed(()=>{const _0x16a663=_0x469187;_0x473ae7[_0x16a663(0x1ce)](),_0x8f7ca2[_0x16a663(0x1ce)]();});}[_0x370085(0x1ec)](_0x3c6cf1){const _0x3e048f=_0x370085;let _0x413ece=(_0x3c6cf1??[])[_0x3e048f(0x1d8)](_0x4be768=>this[_0x3e048f(0x2b3)](_0x4be768));if(_0x413ece[_0x3e048f(0x2ed)]!==0x1){this['_deactivate']();return;}this[_0x3e048f(0x2ad)](_0x413ece[0x0]);}['_activate'](_0xd7d7f9){const _0x478636=_0x370085;var _0x18e286,_0x1abdce,_0x35b2d9,_0x7d22bd;let _0x2e7950=this[_0x478636(0x21a)](_0xd7d7f9),_0x419c11=this[_0x478636(0x35d)](_0xd7d7f9),_0x49d0d9=_0xd7d7f9[_0x478636(0x1cc)]??_0xd7d7f9[_0x478636(0x323)];if(!_0x2e7950||!_0x419c11){this[_0x478636(0x2f2)]();return;}if(((_0x18e286=this[_0x478636(0x18b)])==null?void 0x0:_0x18e286[_0x478636(0x323)])===_0xd7d7f9[_0x478636(0x323)]&&this['_activeLayer'][_0x478636(0x1cc)]===_0x49d0d9&&this['_activeLayer'][_0x478636(0x18f)]===_0xd7d7f9[_0x478636(0x18f)]&&this[_0x478636(0x18b)][_0x478636(0x195)]===_0xd7d7f9['chartId']){this['_activeLayer'][_0x478636(0x365)]=_0x2e7950[_0x478636(0x365)],this['_activeLayer'][_0x478636(0x251)]=_0x2e7950['sceneRect'],this['_activeLayer'][_0x478636(0x36f)]=_0x2e7950[_0x478636(0x36f)],this[_0x478636(0x18b)][_0x478636(0x1e5)]=_0x419c11,this[_0x478636(0x18b)][_0x478636(0x22b)][_0x478636(0x346)](_0x2e7950[_0x478636(0x271)]);return;}this['_deactivate']();let _0x3c2fd8=new _0x32a12d(_0x2e7950[_0x478636(0x271)]),_0x6eb315=this[_0x478636(0x2ec)][_0x478636(0x321)](_0xd7d7f9[_0x478636(0x323)]),_0x711906=_0x6eb315==null||(_0x35b2d9=(_0x1abdce=_0x6eb315[_0x478636(0x300)])['getCanvasElement'])==null?void 0x0:_0x35b2d9[_0x478636(0x2c3)](_0x1abdce);this['_canvasFloatDomService'][_0x478636(0x284)]({'id':_0xd7d7f9[_0x478636(0x18f)],'componentKey':pi,'position$':_0x3c2fd8,'unitId':_0xd7d7f9[_0x478636(0x323)],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0xd7d7f9['chartId'],'subUnitId':_0x49d0d9},'onPointerDown':_0x5dd7d1=>_0x711906==null?void 0x0:_0x711906[_0x478636(0x1f0)](new PointerEvent(_0x5dd7d1[_0x478636(0x228)],_0x5dd7d1)),'onPointerMove':_0x5c1d39=>_0x711906==null?void 0x0:_0x711906[_0x478636(0x1f0)](new PointerEvent(_0x5c1d39[_0x478636(0x228)],_0x5c1d39)),'onPointerUp':_0x4c2cb4=>_0x711906==null?void 0x0:_0x711906[_0x478636(0x1f0)](new PointerEvent(_0x4c2cb4[_0x478636(0x228)],_0x4c2cb4)),'onWheel':_0x44d6d5=>_0x711906==null?void 0x0:_0x711906[_0x478636(0x1f0)](new WheelEvent(_0x44d6d5[_0x478636(0x228)],_0x44d6d5))}),this['_modelService'][_0x478636(0x238)](_0xd7d7f9[_0x478636(0x323)],_0xd7d7f9['chartId']);let _0x291658={'unitId':_0xd7d7f9[_0x478636(0x323)],'subUnitId':_0x49d0d9,'drawingId':_0xd7d7f9[_0x478636(0x18f)],'chartId':_0xd7d7f9[_0x478636(0x195)],'scene':_0x2e7950[_0x478636(0x365)],'sceneRect':_0x2e7950[_0x478636(0x251)],'angle':_0x2e7950[_0x478636(0x36f)],'renderRect':_0x419c11,'position$':_0x3c2fd8,'positionObserver':_0x20a8ed(()=>{})};this[_0x478636(0x18b)]=_0x291658;let _0xdf4ca0=_0x6eb315==null||(_0x7d22bd=_0x6eb315[_0x478636(0x365)])==null?void 0x0:_0x7d22bd[_0x478636(0x1c5)](_0x18b052[_0x478636(0x1c7)]);_0x291658[_0x478636(0x1e4)]=fi(_0xdf4ca0==null?void 0x0:_0xdf4ca0['onScrollAfter$'],()=>{const _0x597b35=_0x478636;this['_refreshActivePosition'](_0xd7d7f9['unitId'],_0xd7d7f9[_0x597b35(0x18f)],_0xd7d7f9[_0x597b35(0x195)]);})??_0x20a8ed(()=>{});}['_deactivate'](){const _0x20fa40=_0x370085;let _0x1cdef8=this[_0x20fa40(0x18b)];_0x1cdef8&&(this[_0x20fa40(0x18b)]=null,_0x1cdef8[_0x20fa40(0x1e4)][_0x20fa40(0x220)](),this[_0x20fa40(0x1f9)]['setActiveDomReady']({'unitId':_0x1cdef8[_0x20fa40(0x323)],'subUnitId':_0x1cdef8[_0x20fa40(0x1cc)],'drawingId':_0x1cdef8[_0x20fa40(0x18f)]},!0x1),this[_0x20fa40(0x337)]['removeFloatDom'](_0x1cdef8[_0x20fa40(0x18f)]),this[_0x20fa40(0x18a)][_0x20fa40(0x1bf)](null),this[_0x20fa40(0x2e3)]['invalidateChart'](_0x1cdef8[_0x20fa40(0x323)],_0x1cdef8[_0x20fa40(0x195)],{'waitForConfig':!0x0}),_0x1cdef8['position$'][_0x20fa40(0x2f1)]());}[_0x370085(0x2f0)](_0x23fd64,_0x1fc5c5,_0x209704){const _0x276642=_0x370085;let _0x435a2d=this[_0x276642(0x18b)];(_0x435a2d==null?void 0x0:_0x435a2d[_0x276642(0x323)])===_0x23fd64&&_0x435a2d[_0x276642(0x18f)]===_0x1fc5c5&&_0x435a2d[_0x276642(0x195)]===_0x209704&&_0x435a2d[_0x276642(0x22b)][_0x276642(0x346)](ci(_0x435a2d['sceneRect'],_0x435a2d[_0x276642(0x365)],0x1,_0x435a2d[_0x276642(0x36f)]));}['_updatePosition'](_0x313920){const _0x4e9f4f=_0x370085;let _0x28263b=this[_0x4e9f4f(0x21a)](_0x313920),_0x463b02=this[_0x4e9f4f(0x35d)](_0x313920);if(_0x28263b&&_0x463b02){var _0xec9156;this[_0x4e9f4f(0x18b)]&&(this[_0x4e9f4f(0x18b)]['scene']=_0x28263b[_0x4e9f4f(0x365)],this[_0x4e9f4f(0x18b)]['sceneRect']=_0x28263b['sceneRect'],this[_0x4e9f4f(0x18b)]['angle']=_0x28263b[_0x4e9f4f(0x36f)],this[_0x4e9f4f(0x18b)]['renderRect']=_0x463b02),(_0xec9156=this[_0x4e9f4f(0x18b)])==null||_0xec9156[_0x4e9f4f(0x22b)][_0x4e9f4f(0x346)](_0x28263b[_0x4e9f4f(0x271)]),this['_layoutChanged$']['next'](_0x313920[_0x4e9f4f(0x18f)]);}}[_0x370085(0x2d9)](_0x58a71d){const _0xf1f3b3=_0x370085;let _0x5bc2a8=this[_0xf1f3b3(0x29a)][_0xf1f3b3(0x326)]()[_0xf1f3b3(0x1d8)](_0x190fa7=>this[_0xf1f3b3(0x2b3)](_0x190fa7));_0x5bc2a8['length']===0x1&&_0x58a71d[_0xf1f3b3(0x2f7)](_0x2acf6c=>li(_0x2acf6c,_0x5bc2a8[0x0]))&&this['_activate'](_0x5bc2a8[0x0]);}['_getPositionState'](_0x5d5610){const _0x20fdb2=_0x370085;let _0x26180e=_0x5d5610[_0x20fdb2(0x292)];if(!_0x26180e)return null;let _0x1de308=this[_0x20fdb2(0x2ec)]['getRenderUnitById'](_0x5d5610['unitId']);if(!(_0x1de308!=null&&_0x1de308[_0x20fdb2(0x365)]))return null;let _0x654458=_0x287631(_0x5d5610),_0x3dc90a=_0x1de308['scene'][_0x20fdb2(0x254)](_0x654458),_0x1c11bf=di(_0x5d5610,_0x3dc90a),_0xc1c582=_0x1c11bf[_0x20fdb2(0x1d9)]-_0x1c11bf[_0x20fdb2(0x1e9)],_0x4f4da3=_0x1c11bf[_0x20fdb2(0x232)]-_0x1c11bf[_0x20fdb2(0x37a)];if(_0xc1c582<=0x0||_0x4f4da3<=0x0)return null;let _0x5b642f=ui([_0x3dc90a==null?void 0x0:_0x3dc90a[_0x20fdb2(0x36f)],_0x26180e[_0x20fdb2(0x36f)]]);return{'scene':_0x1de308[_0x20fdb2(0x365)],'sceneRect':_0x1c11bf,'angle':_0x5b642f,'position':ci(_0x1c11bf,_0x1de308[_0x20fdb2(0x365)],0x1,_0x5b642f)};}['_getRenderRect'](_0x26ee5d){const _0x12acff=_0x370085;var _0x2c93c6,_0x24254a,_0x5ef366,_0x5265eb;let _0xc28e17=((_0x2c93c6=_0x26ee5d[_0x12acff(0x292)])==null?void 0x0:_0x2c93c6['width'])??((_0x24254a=_0x26ee5d[_0x12acff(0x1cd)])==null||(_0x24254a=_0x24254a['size'])==null?void 0x0:_0x24254a['width'])??0x0,_0x51f16a=((_0x5ef366=_0x26ee5d[_0x12acff(0x292)])==null?void 0x0:_0x5ef366['height'])??((_0x5265eb=_0x26ee5d['docTransform'])==null||(_0x5265eb=_0x5265eb[_0x12acff(0x310)])==null?void 0x0:_0x5265eb[_0x12acff(0x194)])??0x0;return _0xc28e17<=0x0||_0x51f16a<=0x0?null:{'width':Math['max'](0x1,Math[_0x12acff(0x341)](_0xc28e17)),'height':Math['max'](0x1,Math[_0x12acff(0x341)](_0x51f16a))};}[_0x370085(0x1e6)](_0x2bb071){const _0x553db8=_0x370085;let _0x4e1748=this[_0x553db8(0x18b)];if((_0x4e1748==null?void 0x0:_0x4e1748[_0x553db8(0x323)])===_0x2bb071[_0x553db8(0x323)]&&_0x4e1748[_0x553db8(0x1cc)]===(_0x2bb071[_0x553db8(0x1cc)]??_0x2bb071[_0x553db8(0x323)])&&_0x4e1748[_0x553db8(0x18f)]===_0x2bb071[_0x553db8(0x18f)]&&_0x4e1748[_0x553db8(0x195)]===_0x2bb071['chartId'])return _0x4e1748[_0x553db8(0x1e5)];let _0x30dda8=this[_0x553db8(0x29a)][_0x553db8(0x1ad)](this[_0x553db8(0x35a)](_0x2bb071));return this[_0x553db8(0x2b3)](_0x30dda8)?this[_0x553db8(0x35d)](_0x30dda8):null;}[_0x370085(0x35a)](_0x225380){const _0x5a8103=_0x370085;return{'unitId':_0x225380['unitId'],'subUnitId':_0x225380[_0x5a8103(0x1cc)]??_0x225380[_0x5a8103(0x323)],'drawingId':_0x225380['drawingId']};}[_0x370085(0x2d5)](_0x47b94c){const _0x52e29b=_0x370085;let _0x2744fc=this['_activeLayer'];return(_0x2744fc==null?void 0x0:_0x2744fc[_0x52e29b(0x323)])===_0x47b94c[_0x52e29b(0x323)]&&_0x2744fc[_0x52e29b(0x1cc)]===(_0x47b94c[_0x52e29b(0x1cc)]??_0x47b94c[_0x52e29b(0x323)])&&_0x2744fc[_0x52e29b(0x18f)]===_0x47b94c[_0x52e29b(0x18f)]&&_0x2744fc[_0x52e29b(0x195)]===_0x47b94c['chartId'];}[_0x370085(0x2b3)](_0x51ba08){const _0x4546bb=_0x370085;let _0x38c585=_0x51ba08;return(_0x38c585==null?void 0x0:_0x38c585[_0x4546bb(0x1eb)])===_0x486f2e[_0x4546bb(0x33c)]&&typeof _0x38c585[_0x4546bb(0x195)]=='string';}};Z=z([R(0x0,_0x36bc12),R(0x1,_0x4f1cbe),R(0x2,_0x1d3b66(_0xb007f5)),R(0x3,_0x1d3b66(_0x430122)),R(0x4,_0x1d3b66(U)),R(0x5,_0x1d3b66(J)),R(0x6,_0x1102d3),R(0x7,_0x45a8d9),R(0x8,_0x1d3b66(_0x294e5d)),R(0x9,_0x1d3b66(oi))],Z);const pi=_0x370085(0x28a),mi=_0x7bde02=>{const _0x3c5baf=_0x370085;let {unitId:_0x142227,subUnitId:_0x35ab27,floatDomId:_0x501102,chartId:_0x572ac9,context:_0x451824}=_0x7bde02,_0x394517=_0x2faff5(Z);return _0x5ca4c0(()=>{const _0x6164b8=_0x19d9;let _0x13664f=_0x451824[_0x6164b8(0x192)][_0x6164b8(0x19a)];if(!_0x13664f)return;let _0x181396=_0x394517[_0x6164b8(0x317)]({'unitId':_0x142227,'subUnitId':_0x35ab27,'drawingId':_0x501102,'chartId':_0x572ac9,'root':_0x13664f});return()=>_0x181396['dispose']();},[_0x394517,_0x572ac9,_0x451824[_0x3c5baf(0x192)],_0x501102,_0x35ab27,_0x142227]),null;};let Q=class extends _0x3fb628{constructor(_0x5364f0,_0x9e3a4d){const _0x1c6674=_0x370085;super(),this['_drawingManagerService']=_0x5364f0,this[_0x1c6674(0x2e3)]=_0x9e3a4d;}[_0x370085(0x1ba)](_0x289ddb,_0x348c43,_0x14f320,_0x13ccf7){const _0x37f556=_0x370085;let _0x5c1972=this[_0x37f556(0x364)](_0x289ddb,_0x348c43);if(_0x14f320[_0x37f556(0x1ae)](),!_0x5c1972)return{'dispose':()=>_0x14f320[_0x37f556(0x1ae)]()};let _0x11b737={'unitId':_0x289ddb,'chartId':_0x5c1972['chartId'],'width':Math[_0x37f556(0x19d)](0x1,Math[_0x37f556(0x341)](_0x13ccf7[_0x37f556(0x30a)])),'height':Math[_0x37f556(0x19d)](0x1,Math['round'](_0x13ccf7['height'])),'mode':_0x37f556(0x199)},_0x46c7c0=this[_0x37f556(0x2e3)][_0x37f556(0x2a2)](_0x11b737);this[_0x37f556(0x356)](_0x14f320,_0x46c7c0);let _0x31f7ef=this[_0x37f556(0x2e3)]['snapshotUpdated$'][_0x37f556(0x1a7)](_0x50457e=>{const _0x33221e=_0x37f556;_0x50457e[_0x33221e(0x242)]===_0x46c7c0[_0x33221e(0x242)]&&this[_0x33221e(0x356)](_0x14f320,_0x50457e);});return{'dispose':()=>{const _0x2a5c30=_0x37f556;_0x31f7ef[_0x2a5c30(0x1ce)](),_0x14f320[_0x2a5c30(0x1ae)]();}};}[_0x370085(0x364)](_0x4a1303,_0x4bf577){const _0x21598d=_0x370085;let _0x324f36={'unitId':_0x4a1303,'subUnitId':_0x4a1303,'drawingId':_0x4bf577},_0x2073a3=this[_0x21598d(0x29a)][_0x21598d(0x1ad)](_0x324f36);return!_0x2073a3||_0x2073a3['drawingType']!==_0x486f2e[_0x21598d(0x33c)]||!_0x2073a3[_0x21598d(0x195)]?null:_0x2073a3;}[_0x370085(0x356)](_0x2b6404,_0x5ffc88){const _0x5624d1=_0x370085;if(_0x5ffc88[_0x5624d1(0x322)]!==_0x5624d1(0x253)||!_0x5ffc88[_0x5624d1(0x1e8)])return;let _0x3327e3=document['createElement'](_0x5624d1(0x1df));_0x3327e3[_0x5624d1(0x256)]=_0x5ffc88['dataUrl'],_0x3327e3[_0x5624d1(0x2c1)]='',_0x3327e3[_0x5624d1(0x28f)][_0x5624d1(0x1a9)]=_0x5624d1(0x1bc),_0x3327e3[_0x5624d1(0x28f)][_0x5624d1(0x30a)]=_0x5624d1(0x20d),_0x3327e3[_0x5624d1(0x28f)]['height']='100%',_0x2b6404['replaceChildren'](_0x3327e3);}};Q=z([R(0x0,_0x36bc12),R(0x1,_0x1d3b66(J))],Q);const hi=_0x56b6a6=>{const _0x1544c5=_0x370085;let {unitId:_0x4b0bfc,floatDomId:_0x11f7ed,context:_0x13d4fc}=_0x56b6a6,_0x3ec5cf=_0x2faff5(Q);return _0x5ca4c0(()=>{const _0x158c63=_0x19d9;let _0x5aa0db=_0x13d4fc[_0x158c63(0x192)][_0x158c63(0x19a)];if(!_0x5aa0db)return;let _0x27b84a={'width':Number[_0x158c63(0x376)](_0x5aa0db[_0x158c63(0x28f)][_0x158c63(0x30a)])||_0x5aa0db[_0x158c63(0x1a2)]||0x1,'height':Number[_0x158c63(0x376)](_0x5aa0db[_0x158c63(0x28f)]['height'])||_0x5aa0db[_0x158c63(0x22a)]||0x1},_0x212333=_0x3ec5cf[_0x158c63(0x1ba)](_0x4b0bfc,_0x11f7ed,_0x5aa0db,_0x27b84a);return()=>_0x212333[_0x158c63(0x220)]();},[_0x13d4fc[_0x1544c5(0x192)],_0x11f7ed,_0x3ec5cf,_0x4b0bfc]),null;};let gi=class extends _0x3fb628{constructor(_0x1950b4){const _0x3db714=_0x370085;super(),this[_0x3db714(0x1b4)]=_0x1950b4,this['_registerComponents']();}[_0x370085(0x204)](){const _0x24355d=_0x370085;this[_0x24355d(0x33f)](this['_componentManager'][_0x24355d(0x32b)](Lr,zr)),this[_0x24355d(0x33f)](this['_componentManager'][_0x24355d(0x32b)]($n,nr)),this[_0x24355d(0x33f)](this[_0x24355d(0x1b4)][_0x24355d(0x32b)](Sr,wr)),this[_0x24355d(0x33f)](this[_0x24355d(0x1b4)][_0x24355d(0x32b)](_0x56ed43,hi)),this[_0x24355d(0x33f)](this[_0x24355d(0x1b4)]['register'](pi,mi));}};gi=z([R(0x0,_0x1d3b66(_0xe8ac0))],gi);let _i=class extends _0x3fb628{constructor(_0x424533,_0x36b10d,_0x4a214f,_0x1cfc91,_0x44f059,_0x22c015,_0x4138ca){const _0x196d0a=_0x370085;super(),this[_0x196d0a(0x1ea)]=_0x424533,this['_localeService']=_0x36b10d,this[_0x196d0a(0x2a6)]=_0x4a214f,this[_0x196d0a(0x320)]=_0x1cfc91,this[_0x196d0a(0x269)]=_0x44f059,this[_0x196d0a(0x2fe)]=_0x22c015,this[_0x196d0a(0x2ee)]=_0x4138ca,this[_0x196d0a(0x30c)](),this[_0x196d0a(0x2b8)]();}[_0x370085(0x2c9)](_0x110bf8){const _0x12ddb0=_0x370085;let _0x207f93=null,_0x4f04a9=()=>{const _0x2f504c=_0x19d9;_0x207f93==null||_0x207f93[_0x2f504c(0x220)](),_0x207f93=null;};return _0x207f93=this['_dialogService']['open']({'id':_0x12ddb0(0x23e),'title':{'title':this['_localeService']['t'](_0x12ddb0(0x303))},'width':0x2a8,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Lr,'props':{'defaultChartType':(_0x110bf8==null?void 0x0:_0x110bf8['defaultChartType'])??(_0x110bf8==null?void 0x0:_0x110bf8[_0x12ddb0(0x2dc)]),'defaultTableText':_0x110bf8==null?void 0x0:_0x110bf8['defaultTableText'],'insertOptions':{'insertRange':(_0x110bf8==null?void 0x0:_0x110bf8[_0x12ddb0(0x207)])??this[_0x12ddb0(0x2df)]()},'onCancel':_0x4f04a9,'onInserted':_0x4f04a9}}},'onClose':_0x4f04a9}),!0x0;}[_0x370085(0x348)](_0x3ca3fa){const _0x333aeb=_0x370085;let _0x458282=null,_0x33b543=()=>{const _0x5d9c01=_0x19d9;_0x458282==null||_0x458282[_0x5d9c01(0x220)](),_0x458282=null;};return _0x458282=this[_0x333aeb(0x1ea)]['open']({'id':Cr,'title':{'title':this[_0x333aeb(0x30b)]['t'](_0x333aeb(0x303))},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Sr,'props':{..._0x3ca3fa,'onClose':_0x33b543}}},'onClose':_0x33b543}),!0x0;}[_0x370085(0x30c)](){const _0x3d2ebb=_0x370085;this[_0x3d2ebb(0x2fe)][_0x3d2ebb(0x2d0)](ei);}['_registerDialogOperations'](){const _0x4458b4=_0x370085;this[_0x4458b4(0x33f)](this[_0x4458b4(0x2ee)][_0x4458b4(0x1ee)](_0x1d4cf0=>{const _0x2a333b=_0x4458b4;if(_0x1d4cf0['id']===I['id']){this['openInsertDialog'](_0x1d4cf0['params']);return;}if(_0x1d4cf0['id']===L['id']){let _0x2c4ef5=_0x1d4cf0[_0x2a333b(0x32e)];_0x2c4ef5&&this['openEditorDialog'](_0x2c4ef5);}}));}[_0x370085(0x2df)](){const _0x489500=_0x370085;let _0x5725df=this[_0x489500(0x2a6)][_0x489500(0x349)](_0x4c0d56[_0x489500(0x1bb)]);if(!_0x5725df)return;let _0x53b766=_0x5725df[_0x489500(0x180)](),_0xd24409=null;try{_0xd24409=this[_0x489500(0x269)][_0x489500(0x309)](_0x53b766);}catch{_0xd24409=null;}if(_0xd24409){let _0x13fbea={'startOffset':_0xd24409['startOffset'],'endOffset':_0xd24409[_0x489500(0x274)],'collapsed':_0xd24409[_0x489500(0x252)]===_0xd24409['endOffset'],'segmentId':_0xd24409[_0x489500(0x380)]??''};return W(_0x5725df,_0x13fbea)?_0x13fbea:void 0x0;}let _0x3a3f8d=[...this['_docSelectionManagerService'][_0x489500(0x26d)]()??[]];if(_0x3a3f8d[_0x489500(0x2ed)]!==0x1)return;let _0x2391b6=this[_0x489500(0x320)]['getActiveTextRange']()??_0x3a3f8d[0x0];if(!_0x2391b6||!_0x2391b6['collapsed']||_0x2391b6[_0x489500(0x252)]==null)return;let _0x99d246={..._0x2391b6,'segmentId':_0x2391b6[_0x489500(0x380)]??''};return W(_0x5725df,_0x99d246)?_0x99d246:void 0x0;}};_i=z([R(0x0,_0x1d3b66(_0x2f2c2e)),R(0x1,_0x1d3b66(_0x294e5d)),R(0x2,_0x45a8d9),R(0x3,_0x1d3b66(_0x585f68)),R(0x4,_0x1d3b66(_0x5eca17)),R(0x5,_0x22c432),R(0x6,_0x1102d3)],_i);let $=class extends _0x1b6c9f{constructor(_0x424d30=Vr,_0x5cebff,_0x141015,_0x14721c){const _0x19384e=_0x370085;super(),this[_0x19384e(0x27a)]=_0x424d30,this[_0x19384e(0x209)]=_0x5cebff,this[_0x19384e(0x265)]=_0x141015,this['_commandService']=_0x14721c;let {..._0xdf136d}=_0x242c1a({},Vr,this[_0x19384e(0x27a)]);this[_0x19384e(0x265)][_0x19384e(0x361)](Br,_0xdf136d),this[_0x19384e(0x2da)](),_0x3ef37e(_0x2a0d9c);}[_0x370085(0x30f)](){const _0x4dd90a=_0x370085;let _0x1da45c=this['_injector'];[[gi],[G],[B],[rr,{'useClass':ir}],[Z],[Q],[U],[J],[Jr],[oi],[K],[q],[_i]][_0x4dd90a(0x27b)](_0x1f21b4=>_0x1da45c[_0x4dd90a(0x318)](_0x1f21b4)),_0xf1b69(_0x1da45c,[[G],[B],[rr],[Z],[Q],[U],[J],[K],[q]]),this['_injector'][_0x4dd90a(0x1be)](gi);}['onReady'](){const _0x4ce98d=_0x370085;this[_0x4ce98d(0x209)]['get'](Jr),this[_0x4ce98d(0x209)][_0x4ce98d(0x1be)](oi),this[_0x4ce98d(0x209)][_0x4ce98d(0x1be)](K),this['_injector']['get'](q),this[_0x4ce98d(0x209)][_0x4ce98d(0x1be)](_i);}[_0x370085(0x2da)](){const _0x5c2716=_0x370085;[I,L][_0x5c2716(0x27b)](_0x440dff=>{const _0x15b4ec=_0x5c2716;this[_0x15b4ec(0x33f)](this[_0x15b4ec(0x2ee)][_0x15b4ec(0x233)](_0x440dff));});}};H($,_0x370085(0x228),_0x4c0d56[_0x370085(0x1bb)]),H($,_0x370085(0x202),_0x370085(0x1b0)),H($,_0x370085(0x293),ti),H($,_0x370085(0x2d4),ni),$=z([_0x5b8479(_0x2bc7c7,_0x1ea545,_0x30d9e0,_0x23d20a,_0xbcdee4,_0x158552,_0x29ceb3,_0x3557d0,_0x399d04),R(0x1,_0x1d3b66(_0x26d120)),R(0x2,_0x1189b6),R(0x3,_0x1102d3)],$);export{Br as DOCS_CHART_UI_PLUGIN_CONFIG_KEY,pi as DOC_ACTIVE_CHART_COMPONENT,Hr as DOC_CHART_CLIPBOARD_RESOURCE_KEY,$n as DOC_CHART_DATA_EDITOR_COMPONENT,er as DOC_CHART_DATA_EDITOR_DIALOG_ID,Sr as DOC_CHART_EDITOR_DIALOG_COMPONENT,Cr as DOC_CHART_EDITOR_DIALOG_ID,Yr as DOC_CHART_INSERT_BELOW_MENU_ID,Y as DOC_CHART_INSERT_MENU_ID,Lr as DOC_CHART_INSERT_PANEL_COMPONENT,mi as DocActiveChart,Z as DocChartActiveRenderService,K as DocChartClipboardController,B as DocChartDataEditService,nr as DocChartDataEditor,tr as DocChartDataEditorSubmitMode,q as DocChartDrawingEditController,dr as DocChartEditPanel,wr as DocChartEditorDialog,$r as DocChartInsertBelowMenuItemFactory,X as DocChartInsertMenuItemFactory,zr as DocChartInsertPanel,Qr as DocChartInsertRibbonMenuItemFactory,G as DocChartInsertService,Q as DocChartPrintService,U as DocChartRenderService,Jr as DocChartSnapshotRefreshController,J as DocChartSnapshotRenderService,ir as DocChartUIService,_r as DocDomChartHost,hi as DocPrintChart,ei as DocsChartUIMenuSchema,Kr as IDocChartSnapshotRendererService,rr as IDocChartUIService,L as OpenDocChartEditorDialogOperation,I as OpenDocChartInsertDialogOperation,$ as UniverDocsChartUIPlugin,Vr as defaultPluginConfig,Xr as getDocChartInsertDisabledObservable};
1
+ const _0x38896c=_0x1625;(function(_0x4ed0f2,_0xa480a2){const _0x446d7e=_0x1625,_0x54d226=_0x4ed0f2();while(!![]){try{const _0x48b538=-parseInt(_0x446d7e(0x284))/0x1+-parseInt(_0x446d7e(0x36a))/0x2+-parseInt(_0x446d7e(0x350))/0x3+-parseInt(_0x446d7e(0x3c3))/0x4+parseInt(_0x446d7e(0x1ad))/0x5+parseInt(_0x446d7e(0x3ae))/0x6*(parseInt(_0x446d7e(0x1b7))/0x7)+-parseInt(_0x446d7e(0x1bc))/0x8*(-parseInt(_0x446d7e(0x230))/0x9);if(_0x48b538===_0xa480a2)break;else _0x54d226['push'](_0x54d226['shift']());}catch(_0x2bc6f5){_0x54d226['push'](_0x54d226['shift']());}}}(_0x5398,0x56a04));import{CommandType as _0x5209f4,DOC_DRAWING_PRINTING_COMPONENT_KEY as _0x24f748,DataStreamTreeTokenType as _0x114502,DependentOn as _0xf62d3d,Disposable as _0x19361e,DrawingTypeEnum as _0x3a259f,ICommandService as _0xf83699,IConfigService as _0x597c3b,IUniverInstanceService as _0x5a8e80,Inject as _0x34b794,Injector as _0x1c9111,LocaleService as _0x490885,Optional as _0x1da476,Plugin as _0x24f43d,Tools as _0xa9ed18,UniverInstanceType as _0x3c76ab,createIdentifier as _0x39279e,generateRandomId as _0x5e8ff1,merge as _0x54dac4,toDisposable as _0x5e5b49,touchDependencies as _0xf36bca}from'@univerjs/core';import{CHART_TYPE_CATALOG as _0x81eacf,ChartAxisBoundsFields as _0x35db34,ChartAxisFormatTextField as _0x2fb82e,ChartAxisLabelStyleFields as _0x1e8e6b,ChartAxisLabelVisibilityField as _0x4bfdb9,ChartAxisLineVisibilityField as _0x4d5eb0,ChartAxisReverseField as _0x501009,ChartAxisTickVisibilityField as _0x40f582,ChartAxisTitleFields as _0x57a2d1,ChartCommonDataMappingSection as _0x263d20,ChartEditBlockTitle as _0x3941f4,ChartEditPanel as _0x4735a6,ChartEditPanelSection as _0x269d02,ChartEditPanelTab as _0x2ceafc,ChartEditPanelTabs as _0xb6daf0,ChartEditorCapability as _0x5034ee,ChartEditorProvider as _0x1c9ca0,ChartFunnelStyleSection as _0x23f54d,ChartGradientFillField as _0x40d719,ChartGridlineVisibilityField as _0x3dec5b,ChartGridlineWidthField as _0x4a2695,ChartHeatmapStyleSection as _0xb8268f,ChartHostAdapter as _0x4e8142,ChartImageExportService as _0x3fc716,ChartIndicatorLineColorField as _0x32c84e,ChartIndicatorLineTypeField as _0x20a39c,ChartInlineTableEditor as _0x1eb143,ChartLegendFontSizeField as _0x10a348,ChartLegendPositionField as _0x485dbb,ChartLegendRoot as _0x113f4b,ChartLegendSelectModeField as _0x39f560,ChartLegendWrapField as _0x35979c,ChartLineAndAreaSection as _0x2379c7,ChartMainTitleFields as _0xcef226,ChartNumberFormatTextField as _0x4121c8,ChartParetoSeriesSection as _0x2ba240,ChartPieStyleSection as _0x13840c,ChartRadarStyleSection as _0x37ea0b,ChartReferencedDataSourceEditor as _0x415425,ChartRelationStyleSection as _0xb1dd96,ChartSectionAccordion as _0x3a75aa,ChartSectionAccordionContent as _0x124b14,ChartSectionAccordionItem as _0x40f540,ChartSectionAccordionTrigger as _0x236900,ChartSeriesBorderFields as _0x5ae559,ChartSeriesFillFields as _0x33b565,ChartSeriesLabelFontSizeField as _0x1cbe23,ChartSeriesLabelPositionField as _0x162caa,ChartSeriesLabelVisibilityField as _0x28eddc,ChartSeriesPointFields as _0x35e9b9,ChartSeriesRoot as _0x40483f,ChartSnapshotQueue as _0x2e398c,ChartStackField as _0x36e84c,ChartStyleSection as _0x26db69,ChartSubtitleFields as _0x1527a2,ChartThemeField as _0x4d7f43,ChartTitleFontSizeFields as _0x9b1b44,ChartTypeField as _0x4d7fd0,ChartTypeSpecificDataSection as _0x2a1e69,ChartTypeSpecificSetupSection as _0x52457e,ChartTypeSpecificStyleSection as _0x15c2ad,ChartUIService as _0xb94f21,ChartViewStateRegistry as _0x355c8e,ChartWaterfallSetupFields as _0x509d47,ChartWaterfallStyleSection as _0x5b22b6,ChartWordCloudRepeatField as _0xf429d3,ChartWordCloudRoot as _0x487f63,ChartWordCloudShapeField as _0x41149a,DEFAULT_CHART_AXIS_VALUES as _0xc1daac,DEFAULT_CHART_FUNNEL_VALUES as _0x562dbc,DEFAULT_CHART_HEATMAP_VALUES as _0x333ac4,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x4ee707,DEFAULT_CHART_LEGEND_VALUES as _0x4fd1cc,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x45062b,DEFAULT_CHART_PARETO_VALUES as _0x4b5218,DEFAULT_CHART_PIE_VALUES as _0x7020e9,DEFAULT_CHART_RADAR_VALUES as _0x5abf32,DEFAULT_CHART_RELATION_VALUES as _0x71d44f,DEFAULT_CHART_SERIES_VALUES as _0x20a428,DEFAULT_CHART_STYLE_VALUES as _0x4c779f,DEFAULT_CHART_TITLE_VALUES as _0x577ac5,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x5818cb,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x5d83ed,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x4dd8b9,InlineChartCreationIssueCode as _0x55cc23,UniverChartUIPlugin as _0xf36506,buildChartTypeSelectOptions as _0x33c5ea,chartTypeSupportsCapability as _0x253769,chartTypeSupportsLineAndAreaStyle as _0x5e5871,compactInlineTableValues as _0x8b0c4c,createChartInlineStarterData as _0x3e0573,getChartInlineTableMinColumns as _0x4d7f7f,resolveChartEditPanelRoute as _0x54cc25,resolveChartElementSelection as _0x1db1a4,resolveChartTypeFieldValue as _0x6a9d65,tryBuildInlineChartCreationPlan as _0x15ea53,tryPrepareInlineChartData as _0x15ccbc,useChartEditorChartType as _0x52878a,useChartEditorHasRightAxis as _0x5a4496}from'@univerjs-pro/chart-ui';import{CHART_RESOURCE_VERSION as _0x4da82c,ChartDataSourceRuntimeStatus as _0x45c4c1,ChartHostRenderMode as _0x40e3e9,ChartImageExportFormat as _0xe808a4,ChartResourceRepository as _0x46b3fa,ChartThemeService as _0xa7bb8d,ChartTypeBits as _0x138983,DEFAULT_CHART_DEVICE_PIXEL_RATIO as _0x32fdbf,DataUrlImageChartHost as _0x3d82fd,IChartRenderModelManagerService as _0x7127e3,buildChartDataSetFromValues as _0xc88894,chartBitsUtils as _0x3671bb,createChartRuntime as _0x115b35,getChartHostFrameContentRect as _0x2598c0,isInlineChartDataSource as _0x1a0149,isReferencedChartDataSource as _0x418a20,parseInlineChartTable as _0x1fd4cc,resolveChartRuntimeStyle as _0x5cdff5,resolveDefaultChartHostFrameStyle as _0x5adbcc,shouldComposeChartHostFrame as _0xbdfd99}from'@univerjs-pro/engine-chart';import{Button as _0x3229d1,Select as _0xc7d92e,clsx as _0x382f3d}from'@univerjs/design';import{CanvasFloatDomService as _0x473612,ComponentManager as _0x501a58,ContextMenuGroup as _0x4c70ef,ContextMenuPosition as _0x894633,IDialogService as _0x41811b,IMenuManagerService as _0x368e35,MenuItemType as _0x5c06b5,RibbonInsertGroup as _0x44053b,getMenuHiddenObservable as _0x2951e9,useDependency as _0xc3066b,useObservable as _0x197af3}from'@univerjs/ui';import{useEffect as _0x119658,useMemo as _0x25818c,useRef as _0xffc934,useState as _0x2032f6}from'react';import{jsx as _0x380983,jsxs as _0x45bb0d}from'react/jsx-runtime';import{ChangeDocChartDataSourceCommand as _0x1d651d,DocChartModelService as _0x3d515f,DocumentChartConfigAdapter as _0x443a3a,InsertDocChartCommand as _0x17652c,RemoveDocChartDataSourceMutation as _0x332768,RemoveDocChartSnapshotMutation as _0x289f38,SetDocChartDataSourceMutation as _0x2d0961,SetDocChartSnapshotMutation as _0x97af2b,UniverDocsChartPlugin as _0x3c9f4a,UpdateDocChartConfigCommand as _0x446130}from'@univerjs-pro/docs-chart';import{DocContentInsertService as _0x129931,DocSelectionManagerService as _0x5b353b,UniverDocsPlugin as _0xcdac4c,docDrawingPositionToTransform as _0x163f14}from'@univerjs/docs';import{BreakLineCommand as _0x5b363a,DOC_CONTENT_INSERT_MENU_ID as _0x183763,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x132e02,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x392bda,DocPrintInterceptorService as _0x484541,EMPTY_PARAGRAPH_MENU_ID as _0x314331,IDocClipboardPasteAdapterService as _0x3250d7,IDocClipboardService as _0x22a1c4,INSERT_BELLOW_MENU_ID as _0x433eda,UniverDocsUIPlugin as _0x186d8a,VIEWPORT_KEY as _0x5c639e,disableMenuWhenHeaderFooterEditing as _0x3349e0}from'@univerjs/docs-ui';import{IDocDrawingAdapterService as _0x4039eb,RemoveDocDrawingCommand as _0x1ec0d6,UniverDocsDrawingPlugin as _0x5ce017}from'@univerjs/docs-drawing';import{DocDrawingFloatingToolbarAdapterService as _0x580396,UniverDocsDrawingUIPlugin as _0x2bc0da}from'@univerjs/docs-drawing-ui';import{BehaviorSubject as _0xf82874,Observable as _0x260327,Subject as _0x30ba86,combineLatest as _0x32173d,filter as _0x328c15,map as _0x9a223d}from'rxjs';import{UniverLicensePlugin as _0x31ac59}from'@univerjs-pro/license';import{IDrawingManagerService as _0x3a5809,UniverDrawingPlugin as _0x706efe,getDrawingShapeKeyByDrawingSearch as _0x508190}from'@univerjs/drawing';import{DEFAULT_TRANSFORMER_CONFIG as _0x16f5a6,DRAWING_OBJECT_LAYER_INDEX as _0x8fa582,IRenderManagerService as _0x59b9c8,Image as _0x2f0273,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5f1633,UniverRenderEnginePlugin as _0x511725}from'@univerjs/engine-render';const L={'id':_0x38896c(0x239),'type':_0x5209f4['OPERATION'],'handler'(){return!0x0;}},R={'id':_0x38896c(0x21a),'type':_0x5209f4[_0x38896c(0x229)],'handler'(){return!0x0;}},lr=_0x38896c(0x1f3),ur=_0x38896c(0x256);let dr=function(_0x1d6b7d){const _0x56f101=_0x38896c;return _0x1d6b7d[_0x56f101(0x354)]='shared',_0x1d6b7d[_0x56f101(0x24a)]='duplicate',_0x1d6b7d;}({});function fr(_0x67ecb5){const _0x46ed4c=_0x38896c;let _0x4d1a5b=_0xc3066b(_0x490885),{values:_0x4e83e6,onCancel:_0x510007,onChange:_0x1ce0b1,onSubmit:_0x5f330e}=_0x67ecb5,[_0x1eda9e,_0x30d74e]=_0x2032f6(()=>_0x418a20(_0x67ecb5['dataSource'])?_0x46ed4c(0x25c):_0x46ed4c(0x21d)),[_0xcea93f,_0x133042]=_0x2032f6(null),[_0x596733,_0x345089]=_0x2032f6(()=>_0x4e83e6['map'](_0x2dce48=>[..._0x2dce48])),[_0x14c5d4,_0x566cd7]=_0x2032f6(null),_0x4bd569=_0x3387b0=>{_0x345089(_0x3387b0),_0x1ce0b1==null||_0x1ce0b1(_0x3387b0);},_0x3d99c3=_0x502da4=>{const _0x1bc8cf=_0x46ed4c;let _0x5ab27c=_0x8b0c4c(_0x596733);if(_0x5ab27c[_0x1bc8cf(0x3d1)]===0x0){_0x566cd7(_0x4d1a5b['t'](_0x1bc8cf(0x2da)));return;}_0x566cd7(null),_0x5f330e(_0x5ab27c,_0x502da4);};return _0x45bb0d(_0x46ed4c(0x35b),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[_0x380983('div',{'className':_0x46ed4c(0x267),'children':_0x380983(_0x415425,{'mode':_0x1eda9e,'initialSource':_0x418a20(_0x67ecb5[_0x46ed4c(0x345)])?_0x67ecb5[_0x46ed4c(0x345)]['source']:void 0x0,'inlineContent':_0x380983(_0x1eb143,{'values':_0x596733,'parsePastedText':_0x1fd4cc,'onChange':_0x4bd569}),'onModeChange':_0x150e04=>{_0x30d74e(_0x150e04),_0x133042(null);},'onPreviewChange':(_0x1c7ed5,_0x1b4d19)=>{const _0x1984f4=_0x46ed4c;_0x133042(_0x1c7ed5&&_0x1b4d19['status']===_0x45c4c1['READY']?{'source':_0x1c7ed5}:null),_0x1b4d19['values']&&(_0x1ce0b1==null||_0x1ce0b1(_0x1b4d19[_0x1984f4(0x245)]['map'](_0x29ae73=>[..._0x29ae73])));}})}),_0x14c5d4&&_0x380983('div',{'className':_0x46ed4c(0x1ce),'children':_0x14c5d4}),_0x45bb0d(_0x46ed4c(0x35b),{'className':_0x46ed4c(0x1b3),'children':[_0x510007&&_0x380983(_0x3229d1,{'type':'button','variant':'default','onClick':_0x510007,'children':_0x4d1a5b['t'](_0x46ed4c(0x34d))}),_0x380983(_0x3229d1,{'type':_0x46ed4c(0x2a0),'variant':_0x46ed4c(0x200),'disabled':_0x1eda9e===_0x46ed4c(0x25c)&&!_0xcea93f,'onClick':()=>{const _0x8da833=_0x46ed4c;var _0x1c62fe;return _0x1eda9e==='referenced'&&_0xcea93f?(_0x1c62fe=_0x67ecb5[_0x8da833(0x307)])==null?void 0x0:_0x1c62fe[_0x8da833(0x1cf)](_0x67ecb5,_0xcea93f):_0x3d99c3(_0x8da833(0x34a));},'children':_0x4d1a5b['t'](_0x46ed4c(0x3a9))})]})]});}function z(_0x3e4d08,_0x93fab){return function(_0x741dc6,_0x4f3d98){_0x93fab(_0x741dc6,_0x4f3d98,_0x3e4d08);};}function B(_0x58d86c,_0x1f9844,_0x2cd8a3,_0xc98dce){const _0x49e200=_0x38896c;var _0x4daa00=arguments[_0x49e200(0x3d1)],_0x4f532a=_0x4daa00<0x3?_0x1f9844:_0xc98dce===null?_0xc98dce=Object['getOwnPropertyDescriptor'](_0x1f9844,_0x2cd8a3):_0xc98dce,_0x535eda;if(typeof Reflect==_0x49e200(0x1f4)&&typeof Reflect[_0x49e200(0x38a)]=='function')_0x4f532a=Reflect[_0x49e200(0x38a)](_0x58d86c,_0x1f9844,_0x2cd8a3,_0xc98dce);else{for(var _0x52fbd1=_0x58d86c[_0x49e200(0x3d1)]-0x1;_0x52fbd1>=0x0;_0x52fbd1--)(_0x535eda=_0x58d86c[_0x52fbd1])&&(_0x4f532a=(_0x4daa00<0x3?_0x535eda(_0x4f532a):_0x4daa00>0x3?_0x535eda(_0x1f9844,_0x2cd8a3,_0x4f532a):_0x535eda(_0x1f9844,_0x2cd8a3))||_0x4f532a);}return _0x4daa00>0x3&&_0x4f532a&&Object[_0x49e200(0x28e)](_0x1f9844,_0x2cd8a3,_0x4f532a),_0x4f532a;}let V=class{constructor(_0x5ae2e0,_0x4afe64){const _0x506f53=_0x38896c;this[_0x506f53(0x1d8)]=_0x5ae2e0,this[_0x506f53(0x36f)]=_0x4afe64;}[_0x38896c(0x2c9)](_0x4b754d,_0x52b969){const _0x3d0bda=_0x38896c;let _0x136ef3=this[_0x3d0bda(0x36f)][_0x3d0bda(0x371)](_0x4b754d,_0x52b969),_0x3872fc=_0x136ef3?this[_0x3d0bda(0x36f)]['getDataSource'](_0x4b754d,_0x136ef3[_0x3d0bda(0x3a1)]):void 0x0;return!_0x136ef3||!_0x3872fc?null:{'unitId':_0x4b754d,'chartId':_0x52b969,'dataSourceId':_0x3872fc['id'],'dataSource':_0x3872fc,'values':_0x1a0149(_0x3872fc)?_0x3872fc[_0x3d0bda(0x245)][_0x3d0bda(0x1c1)](_0xdbbb53=>[..._0xdbbb53]):[],'sharingCount':this[_0x3d0bda(0x36f)][_0x3d0bda(0x348)](_0x4b754d,_0x3872fc['id'])};}[_0x38896c(0x272)](_0x4dfc96,_0x49d372,_0x10ae1d,_0x4241db){const _0x3a69f9=_0x38896c;let _0x5df7c9=_0x1fd4cc(_0x10ae1d);return _0x5df7c9[_0x3a69f9(0x3d1)]!==0x0&&this[_0x3a69f9(0x20b)](_0x4dfc96,_0x49d372,_0x5df7c9,_0x4241db);}[_0x38896c(0x20b)](_0x464eec,_0x4778c8,_0x52e73a,_0x82173e){const _0x1a78cd=_0x38896c;var _0x27e9ce;if(!this[_0x1a78cd(0x2c9)](_0x464eec,_0x4778c8)||_0x52e73a[_0x1a78cd(0x3d1)]===0x0)return!0x1;let _0x109d8d=(_0x27e9ce=this['_resourceService'][_0x1a78cd(0x371)](_0x464eec,_0x4778c8))==null?void 0x0:_0x27e9ce[_0x1a78cd(0x27d)];if(_0x109d8d===void 0x0)return!0x1;let _0x38751c=_0x15ccbc(_0x109d8d,_0x52e73a);return _0x38751c['ok']?this['changeDataSource'](_0x464eec,_0x4778c8,{'values':_0x38751c[_0x1a78cd(0x245)]}):!0x1;}[_0x38896c(0x38e)](_0x3c7baf,_0xfb8af0,_0x43cfd3){const _0x431426=_0x38896c;return this[_0x431426(0x1d8)][_0x431426(0x34e)](_0x1d651d['id'],{'unitId':_0x3c7baf,'chartId':_0xfb8af0,'dataSource':_0x43cfd3});}};V=B([z(0x0,_0xf83699),z(0x1,_0x34b794(_0x46b3fa))],V);const pr=_0x39279e('doc-chart.ui.service');let mr=class extends _0xb94f21{constructor(_0x3987a8,_0x224778,_0x4361b1){const _0x13a6b=_0x38896c;super(_0x4361b1),this[_0x13a6b(0x2ec)]=_0x3987a8,this[_0x13a6b(0x1d8)]=_0x224778;}get['activeRuntimeModel'](){const _0x539f5b=_0x38896c;return this['_modelService'][_0x539f5b(0x321)];}[_0x38896c(0x3c6)](_0x14676a){const _0x20b05f=_0x38896c;let _0x426c06=this[_0x20b05f(0x321)],_0x510521=_0x14676a[_0x20b05f(0x377)]??(_0x426c06==null?void 0x0:_0x426c06['unitId']),_0x1926a7=_0x14676a['chartId']??(_0x426c06==null?void 0x0:_0x426c06['chartId']);!_0x510521||!_0x1926a7||this[_0x20b05f(0x1d8)]['executeCommand'](_0x446130['id'],{..._0x14676a,'unitId':_0x510521,'chartId':_0x1926a7});}};mr=B([z(0x0,_0x34b794(_0x3d515f)),z(0x1,_0xf83699),z(0x2,_0x34b794(_0x355c8e))],mr);const H={'axis':{..._0xc1daac,'primaryGridLineVisible':!0x0,'secondaryGridLineVisible':!0x0},'legend':_0x4fd1cc,'lineAndArea':_0x45062b,'pareto':_0x4b5218,'funnel':_0x562dbc,'heatmap':_0x333ac4,'indicatorLine':_0x4ee707,'pie':{..._0x7020e9,'doughnutHole':0x0,'pieHole':0x0},'relation':{..._0x71d44f,'useValueAsSymbolSize':!0x1},'radar':_0x5abf32,'series':{..._0x20a428,'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':_0x4c779f,'titles':_0x577ac5,'waterfall':{..._0x5818cb,'useSubtotal':!0x0},'waterfallStyle':_0x5d83ed,'wordCloud':_0x4dd8b9},hr=[_0x138983['Candlestick'],_0x138983[_0x38896c(0x367)],_0x138983[_0x38896c(0x2ea)],_0x138983[_0x38896c(0x333)],_0x138983[_0x38896c(0x1b1)],_0x138983[_0x38896c(0x270)]];function gr(){const _0x4b28e8=_0x38896c;let _0x20ef30=_0x52878a();return _0x380983(_0x40d719,{'visible':hr[_0x4b28e8(0x222)](_0x5b467f=>!_0x3671bb[_0x4b28e8(0x369)](_0x20ef30,_0x5b467f))});}function _r(_0x297a2a){const _0x364c08=_0x38896c;return _0x45bb0d(_0x40f540,{'id':_0x297a2a['id'],'children':[_0x380983(_0x236900,{'children':_0x297a2a[_0x364c08(0x27c)]}),_0x380983(_0x124b14,{'children':_0x297a2a['children']})]});}function vr(_0x422783,_0x103c8f=!0x1){const _0x26ec0f=_0x38896c;let _0x40e748=_0x422783===_0x138983['WordCloud'],_0x4dc45e=_0x3671bb['baseOn'](_0x422783,_0x138983[_0x26ec0f(0x343)]),_0x3b34c2=_0x422783===_0x138983['Radar'],_0x265896=_0x422783===_0x138983[_0x26ec0f(0x2e1)],_0x44bec9=_0x422783===_0x138983[_0x26ec0f(0x287)],_0xb63ad4=_0x422783===_0x138983[_0x26ec0f(0x388)],_0x317b34=_0x422783===_0x138983[_0x26ec0f(0x2bb)],_0x235ef8=_0x422783===_0x138983[_0x26ec0f(0x367)],_0xeba47f=_0x422783===_0x138983[_0x26ec0f(0x2ea)],_0x2399be=_0x422783===_0x138983[_0x26ec0f(0x333)],_0x51dbc5=_0x422783===_0x138983[_0x26ec0f(0x1b1)],_0x55ae6d=_0x422783===_0x138983[_0x26ec0f(0x270)],_0x3c9374=_0x422783===_0x138983[_0x26ec0f(0x279)],_0x5cc167=_0x422783===_0x138983[_0x26ec0f(0x33a)],_0x2e9201=[_0x269d02[_0x26ec0f(0x395)],_0x269d02[_0x26ec0f(0x35e)]];return _0x40e748&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x22e)]),_0x253769(_0x422783,_0x5034ee[_0x26ec0f(0x1d2)])&&!_0xb63ad4&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x3b6)]),_0x5e5871(_0x422783)&&_0x2e9201['push'](_0x269d02[_0x26ec0f(0x212)]),_0x3b34c2&&_0x2e9201['push'](_0x269d02[_0x26ec0f(0x255)]),_0x44bec9&&_0x2e9201['push'](_0x269d02[_0x26ec0f(0x29a)]),_0xb63ad4&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x1d6)],_0x269d02[_0x26ec0f(0x2fe)]),_0x4dc45e&&_0x2e9201['push'](_0x269d02[_0x26ec0f(0x330)]),_0x265896&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02['Funnel']),_0x5cc167&&_0x2e9201['push'](_0x269d02[_0x26ec0f(0x33a)]),_0x3c9374&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x279)]),_0x317b34&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x2bb)]),_0x235ef8&&_0x2e9201['push'](_0x269d02[_0x26ec0f(0x367)]),_0xeba47f&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02['Treemap']),_0x2399be&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02['Sunburst']),_0x51dbc5&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02['Gauge']),_0x55ae6d&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x270)]),_0x253769(_0x422783,_0x5034ee['Legend'])&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x1a4)]),_0x253769(_0x422783,_0x5034ee[_0x26ec0f(0x2f8)])&&(_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x26a)],_0x269d02[_0x26ec0f(0x266)]),_0x103c8f&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02[_0x26ec0f(0x1eb)]),_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02['GridlinesAndTicks'])),_0x253769(_0x422783,_0x5034ee['IndicatorLine'])&&_0x2e9201[_0x26ec0f(0x1b9)](_0x269d02['IndicatorLine']),_0x2e9201;}function yr(_0x54e2a7){const _0x5db53f=_0x38896c;return _0x45bb0d(_0x5db53f(0x35b),{'className':_0x5db53f(0x3ab),'children':[_0x380983(_0x4d5eb0,{'axis':_0x54e2a7[_0x5db53f(0x1d4)],'defaultValues':H[_0x5db53f(0x1d4)]}),_0x380983(_0x4bfdb9,{'axis':_0x54e2a7[_0x5db53f(0x1d4)],'defaultValues':H[_0x5db53f(0x1d4)]}),_0x380983(_0x501009,{'axis':_0x54e2a7[_0x5db53f(0x1d4)],'defaultValues':H[_0x5db53f(0x1d4)]}),_0x380983(_0x35db34,{'axis':_0x54e2a7['axis']}),_0x380983(_0x2fb82e,{'axis':_0x54e2a7[_0x5db53f(0x1d4)]}),_0x380983(_0x1e8e6b,{'axis':_0x54e2a7[_0x5db53f(0x1d4)],'defaultValues':H[_0x5db53f(0x1d4)]}),_0x380983(_0x40f582,{'axis':_0x54e2a7[_0x5db53f(0x1d4)],'defaultValues':H['axis']})]});}function br(_0x5c405a){const _0x2567c7=_0x38896c;var _0x17315f,_0x2551da;let _0x19d8b6=_0xc3066b(_0x490885),_0x55d286=_0x52878a(),_0x4d0aad=_0x5a4496(),[_0x7f84e3,_0x25b539]=_0x2032f6(null),_0x4a2a33=_0x380983(_0x15c2ad,{}),_0xdd71bf={[_0x269d02[_0x2567c7(0x2bb)]]:_0x19d8b6['t'](_0x2567c7(0x1c3)),[_0x269d02[_0x2567c7(0x35e)]]:_0x19d8b6['t'](_0x2567c7(0x3a8)),[_0x269d02[_0x2567c7(0x395)]]:_0x19d8b6['t'](_0x2567c7(0x277)),[_0x269d02[_0x2567c7(0x270)]]:_0x19d8b6['t'](_0x2567c7(0x3c8)),[_0x269d02[_0x2567c7(0x2e1)]]:_0x19d8b6['t'](_0x2567c7(0x231)),[_0x269d02['Gauge']]:_0x19d8b6['t'](_0x2567c7(0x220)),[_0x269d02[_0x2567c7(0x22a)]]:_0x19d8b6['t'](_0x2567c7(0x1f7)),[_0x269d02[_0x2567c7(0x33a)]]:_0x19d8b6['t']('docs-chart-ui.common.heatmap'),[_0x269d02['Histogram']]:_0x19d8b6['t'](_0x2567c7(0x251)),[_0x269d02['HorizontalAxis']]:_0x19d8b6['t'](_0x2567c7(0x1ba)),[_0x269d02[_0x2567c7(0x28a)]]:_0x19d8b6['t'](_0x2567c7(0x26d)),[_0x269d02['Legend']]:_0x19d8b6['t'](_0x2567c7(0x372)),[_0x269d02[_0x2567c7(0x212)]]:_0x19d8b6['t'](_0x2567c7(0x223)),[_0x269d02['ParetoBarSeries']]:_0x19d8b6['t']('docs-chart-ui.section.paretoBar'),[_0x269d02[_0x2567c7(0x2fe)]]:_0x19d8b6['t'](_0x2567c7(0x2ce)),[_0x269d02[_0x2567c7(0x330)]]:_0x19d8b6['t'](_0x2567c7(0x322)),[_0x269d02['Radar']]:_0x19d8b6['t'](_0x2567c7(0x390)),[_0x269d02[_0x2567c7(0x279)]]:_0x19d8b6['t'](_0x2567c7(0x32f)),[_0x269d02[_0x2567c7(0x1eb)]]:_0x19d8b6['t']('docs-chart-ui.common.rightVerticalAxis'),[_0x269d02['Series']]:_0x19d8b6['t']('docs-chart-ui.common.series'),[_0x269d02[_0x2567c7(0x333)]]:_0x19d8b6['t']('docs-chart-ui.section.sunburst'),[_0x269d02[_0x2567c7(0x2ea)]]:_0x19d8b6['t'](_0x2567c7(0x268)),[_0x269d02[_0x2567c7(0x358)]]:_0x19d8b6['t']('docs-chart-ui.common.trendline'),[_0x269d02[_0x2567c7(0x266)]]:_0x19d8b6['t'](_0x2567c7(0x1f6)),[_0x269d02[_0x2567c7(0x29a)]]:_0x19d8b6['t']('docs-chart-ui.section.waterfall'),[_0x269d02[_0x2567c7(0x22e)]]:_0x19d8b6['t'](_0x2567c7(0x337))};_0x119658(()=>{const _0x3bddd6=_0x2567c7;var _0x8fd159;(_0x8fd159=_0x5c405a['route'])!=null&&_0x8fd159[_0x3bddd6(0x1be)]&&_0x25b539(_0x5c405a[_0x3bddd6(0x1c6)][_0x3bddd6(0x1be)]);},[_0x5c405a[_0x2567c7(0x1c6)]]);let _0x5bef16={[_0x269d02['ChartStyle']]:_0x380983(_0x26db69,{'defaultValues':H['style'],'showBodyFont':!0x1,'children':_0x380983(gr,{})}),[_0x269d02[_0x2567c7(0x35e)]]:_0x45bb0d(_0x2567c7(0x35b),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[_0x380983(_0xcef226,{'commitMode':_0x2567c7(0x206),'defaultValues':H[_0x2567c7(0x31d)],'showFont':!0x1}),_0x380983(_0x1527a2,{'commitMode':'change','defaultValues':H[_0x2567c7(0x31d)],'showFont':!0x1}),_0x380983(_0x57a2d1,{'axis':'x','commitMode':_0x2567c7(0x206),'defaultValues':H[_0x2567c7(0x31d)],'showAlignment':!0x1,'showFont':!0x1}),_0x380983(_0x57a2d1,{'axis':'y','commitMode':_0x2567c7(0x206),'defaultValues':H[_0x2567c7(0x31d)],'showAlignment':!0x1,'showFont':!0x1}),_0x380983(_0x57a2d1,{'axis':_0x2567c7(0x37d),'commitMode':_0x2567c7(0x206),'defaultValues':H[_0x2567c7(0x31d)],'showAlignment':!0x1,'showFont':!0x1}),_0x380983(_0x9b1b44,{'defaultValues':H['titles']})]}),[_0x269d02[_0x2567c7(0x3b6)]]:_0x45bb0d(_0x40483f,{'defaultValues':H['series'],'NumberFormatField':_0x4121c8,'selectedSeriesId':(_0x17315f=_0x5c405a[_0x2567c7(0x1c6)])==null?void 0x0:_0x17315f[_0x2567c7(0x1d7)],'children':[_0x380983(_0x33b565,{}),_0x380983(_0x5ae559,{'showColor':!0x1,'showOpacity':!0x1}),_0x380983(_0x35e9b9,{'showColor':!0x1}),_0x380983(_0x28eddc,{}),_0x380983(_0x162caa,{}),_0x380983(_0x1cbe23,{})]}),[_0x269d02[_0x2567c7(0x212)]]:_0x380983(_0x2379c7,{'defaultValues':H['lineAndArea'],'lineStyleControl':_0x2567c7(0x282)}),[_0x269d02[_0x2567c7(0x22e)]]:_0x45bb0d(_0x487f63,{'children':[_0x380983(_0x41149a,{'defaultValues':H[_0x2567c7(0x1fe)]}),_0x380983(_0xf429d3,{'defaultValues':H[_0x2567c7(0x1fe)]})]}),[_0x269d02[_0x2567c7(0x255)]]:_0x380983(_0x37ea0b,{'defaultValues':H[_0x2567c7(0x241)]}),[_0x269d02[_0x2567c7(0x29a)]]:_0x380983(_0x5b22b6,{'defaultValues':H['waterfallStyle'],'NumberFormatField':_0x4121c8,'selectedSeriesId':(_0x2551da=_0x5c405a[_0x2567c7(0x1c6)])==null?void 0x0:_0x2551da[_0x2567c7(0x1d7)]}),[_0x269d02[_0x2567c7(0x1d6)]]:_0x380983(_0x2ba240,{'defaultValues':H[_0x2567c7(0x225)],'NumberFormatField':_0x4121c8,'showDataPointEditor':!0x0,'target':_0x2567c7(0x294)}),[_0x269d02[_0x2567c7(0x2fe)]]:_0x380983(_0x2ba240,{'defaultValues':H[_0x2567c7(0x225)],'NumberFormatField':_0x4121c8,'showDataPointEditor':!0x0,'target':'cumulativeLineStyle'}),[_0x269d02[_0x2567c7(0x330)]]:_0x380983(_0x13840c,{'defaultValues':H[_0x2567c7(0x1b8)],'NumberFormatField':_0x4121c8}),[_0x269d02[_0x2567c7(0x2e1)]]:_0x380983(_0x23f54d,{'defaultValues':H[_0x2567c7(0x2b1)],'gapControl':'number'}),[_0x269d02['Heatmap']]:_0x380983(_0xb8268f,{'defaultValues':H[_0x2567c7(0x2e2)]}),[_0x269d02[_0x2567c7(0x279)]]:_0x380983(_0xb1dd96,{'defaultValues':H[_0x2567c7(0x310)]}),[_0x269d02[_0x2567c7(0x1a4)]]:_0x380983(_0x113f4b,{'defaultValues':H['legend'],'children':_0x45bb0d(_0x2567c7(0x35b),{'className':_0x2567c7(0x3ab),'children':[_0x380983(_0x485dbb,{}),_0x380983(_0x35979c,{}),_0x380983(_0x39f560,{}),_0x380983(_0x10a348,{})]})}),[_0x269d02[_0x2567c7(0x26a)]]:_0x380983(yr,{'axis':'x'}),[_0x269d02[_0x2567c7(0x266)]]:_0x380983(yr,{'axis':'y'}),[_0x269d02[_0x2567c7(0x1eb)]]:_0x380983(yr,{'axis':'rightY'}),[_0x269d02[_0x2567c7(0x22a)]]:_0x45bb0d(_0x2567c7(0x35b),{'className':_0x2567c7(0x217),'children':[_0x380983(_0x3dec5b,{'axis':'x','defaultValues':H[_0x2567c7(0x1d4)],'label':_0x19d8b6['t']('docs-chart-ui.common.horizontalAxis')}),_0x380983(_0x3dec5b,{'axis':'y','defaultValues':H['axis'],'label':_0x19d8b6['t'](_0x2567c7(0x1f6))}),_0x45bb0d(_0x2567c7(0x35b),{'className':_0x2567c7(0x2b2),'children':[_0x380983(_0x4a2695,{'axis':'x','defaultValues':H[_0x2567c7(0x1d4)]}),_0x380983(_0x4a2695,{'axis':'y','defaultValues':H[_0x2567c7(0x1d4)]})]})]}),[_0x269d02[_0x2567c7(0x28a)]]:_0x45bb0d(_0x2567c7(0x35b),{'className':_0x2567c7(0x217),'children':[_0x380983(_0x32c84e,{'defaultValues':H[_0x2567c7(0x3b9)]}),_0x380983(_0x20a39c,{'defaultValues':H[_0x2567c7(0x3b9)]})]}),[_0x269d02['Candlestick']]:_0x4a2a33,[_0x269d02['Histogram']]:_0x4a2a33,[_0x269d02[_0x2567c7(0x2ea)]]:_0x4a2a33,[_0x269d02['Sunburst']]:_0x4a2a33,[_0x269d02[_0x2567c7(0x1b1)]]:_0x4a2a33,[_0x269d02[_0x2567c7(0x270)]]:_0x4a2a33};return _0x380983(_0x3a75aa,{'value':_0x7f84e3,'onChange':_0x25b539,'children':vr(_0x55d286,_0x4d0aad)['map'](_0x3eb27e=>_0x380983(_r,{'id':_0x3eb27e,'label':_0xdd71bf[_0x3eb27e],'children':_0x5bef16[_0x3eb27e]},_0x3eb27e))});}function xr(_0x4e09f4){const _0x1a434c=_0x38896c;var _0x1b0749;let _0x5a3cc5=_0xc3066b(_0x490885),[_0x494182,_0x5f1ec0]=_0x2032f6(((_0x1b0749=_0x4e09f4[_0x1a434c(0x252)])==null?void 0x0:_0x1b0749[_0x1a434c(0x213)])??_0x2ceafc[_0x1a434c(0x25f)]),_0x238c81=_0x25818c(()=>_0x33c5ea(_0x81eacf[_0x1a434c(0x1c1)](_0x3f03ce=>({..._0x3f03ce,'label':_0x5a3cc5['t']('docs-chart-ui.chartTypes.'+_0x3f03ce[_0x1a434c(0x1bf)])}))),[_0x5a3cc5]);return _0x119658(()=>{const _0x303046=_0x1a434c;var _0x3ce77c;(_0x3ce77c=_0x4e09f4[_0x303046(0x252)])!=null&&_0x3ce77c[_0x303046(0x213)]&&_0x5f1ec0(_0x4e09f4[_0x303046(0x252)][_0x303046(0x213)]);},[_0x4e09f4[_0x1a434c(0x252)]]),_0x45bb0d(_0x1a434c(0x35b),{'className':_0x1a434c(0x243),'children':[_0x380983(_0xb6daf0,{'ariaLabel':_0x5a3cc5['t'](_0x1a434c(0x3d2)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x5a3cc5['t'](_0x1a434c(0x37f)),'panelId':Sr,'value':_0x2ceafc[_0x1a434c(0x25f)]},{'label':_0x5a3cc5['t']('docs-chart-ui.common.customize'),'panelId':Cr,'value':_0x2ceafc[_0x1a434c(0x1a6)]}],'value':_0x494182,'onChange':_0x5f1ec0}),_0x494182===_0x2ceafc[_0x1a434c(0x25f)]?_0x380983(_0x4735a6,{'id':Sr,'label':_0x5a3cc5['t'](_0x1a434c(0x37f)),'children':_0x45bb0d(_0x1a434c(0x35b),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x380983(_0x4d7fd0,{'options':_0x238c81,'onChange':_0x4e09f4[_0x1a434c(0x22c)]}),_0x380983(_0x52457e,{}),_0x380983(_0x4d7f43,{}),_0x380983(gr,{}),_0x380983(_0x36e84c,{}),_0x45bb0d(_0x1a434c(0x35b),{'children':[_0x380983(_0x3941f4,{'title':_0x5a3cc5['t'](_0x1a434c(0x3cb))}),_0x380983(_0x3229d1,{'className':_0x1a434c(0x31f),'onClick':_0x4e09f4[_0x1a434c(0x261)],'children':_0x5a3cc5['t'](_0x1a434c(0x2e6))})]}),_0x380983(_0x263d20,{}),_0x380983(_0x2a1e69,{}),_0x380983(_0x509d47,{'defaultValues':H[_0x1a434c(0x2e0)]})]})}):_0x380983(_0x4735a6,{'id':Cr,'label':_0x5a3cc5['t'](_0x1a434c(0x306)),'children':_0x380983(br,{'route':_0x4e09f4[_0x1a434c(0x252)]})}),_0x4e09f4[_0x1a434c(0x1ab)]&&_0x380983(_0x1a434c(0x35b),{'className':_0x1a434c(0x3c5),'children':_0x380983(_0x3229d1,{'type':_0x1a434c(0x2a0),'variant':_0x1a434c(0x2c6),'onClick':_0x4e09f4[_0x1a434c(0x1ab)],'children':_0x5a3cc5['t'](_0x1a434c(0x2bf))})})]});}const Sr=_0x38896c(0x3d6),Cr=_0x38896c(0x346);function wr(_0x57dd8b){'@babel/helpers - typeof';const _0x3e07d9=_0x38896c;return wr=typeof Symbol==_0x3e07d9(0x289)&&typeof Symbol['iterator']==_0x3e07d9(0x2ed)?function(_0x1dc38b){return typeof _0x1dc38b;}:function(_0x4aee5a){const _0x144aef=_0x3e07d9;return _0x4aee5a&&typeof Symbol==_0x144aef(0x289)&&_0x4aee5a['constructor']===Symbol&&_0x4aee5a!==Symbol['prototype']?'symbol':typeof _0x4aee5a;},wr(_0x57dd8b);}function Tr(_0x513f7c,_0x1c76f7){const _0x28b4e0=_0x38896c;if(wr(_0x513f7c)!='object'||!_0x513f7c)return _0x513f7c;var _0x3b5779=_0x513f7c[Symbol['toPrimitive']];if(_0x3b5779!==void 0x0){var _0xfa4157=_0x3b5779['call'](_0x513f7c,_0x1c76f7||'default');if(wr(_0xfa4157)!=_0x28b4e0(0x1f4))return _0xfa4157;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1c76f7===_0x28b4e0(0x1f5)?String:Number)(_0x513f7c);}function Er(_0xc4960b){const _0x23e7f9=_0x38896c;var _0x4b2016=Tr(_0xc4960b,_0x23e7f9(0x1f5));return wr(_0x4b2016)==_0x23e7f9(0x2ed)?_0x4b2016:_0x4b2016+'';}function U(_0x1618bc,_0x5452df,_0x1a8104){const _0x55abb9=_0x38896c;return(_0x5452df=Er(_0x5452df))in _0x1618bc?Object[_0x55abb9(0x28e)](_0x1618bc,_0x5452df,{'value':_0x1a8104,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1618bc[_0x5452df]=_0x1a8104,_0x1618bc;}var Dr=class extends _0x19361e{constructor(_0x47947b,_0x8c155c,_0xc1687f,_0x14a49a,_0x3ab488=!0x0,_0x238664){const _0x4321fe=_0x38896c;super(),this['chartId']=_0x47947b,this[_0x4321fe(0x228)]=_0x8c155c,this[_0x4321fe(0x3a4)]=_0xc1687f,this[_0x4321fe(0x1a9)]=_0x14a49a,this[_0x4321fe(0x29c)]=_0x3ab488,this['_getRenderScale']=_0x238664,U(this,_0x4321fe(0x29d),_0x40e3e9[_0x4321fe(0x2ef)]),U(this,_0x4321fe(0x21f),null),U(this,_0x4321fe(0x3d8),null),U(this,'_hostStyle',{});}[_0x38896c(0x1ff)](){const _0xd5f558=_0x38896c;var _0x3a0482;let _0x593039=(_0x3a0482=this[_0xd5f558(0x1a9)])==null?void 0x0:_0x3a0482[_0xd5f558(0x1cf)](this);if(_0x593039)return{'width':Math[_0xd5f558(0x1e8)](0x1,_0x593039[_0xd5f558(0x246)]),'height':Math['max'](0x1,_0x593039[_0xd5f558(0x3bb)])};let _0x2ab10e=this[_0xd5f558(0x228)][_0xd5f558(0x21b)]();return{'width':Math[_0xd5f558(0x1e8)](0x1,_0x2ab10e[_0xd5f558(0x246)]),'height':Math[_0xd5f558(0x1e8)](0x1,_0x2ab10e[_0xd5f558(0x3bb)])};}[_0x38896c(0x224)](_0x14ce9b){const _0x3a4d47=_0x38896c;this[_0x3a4d47(0x1b2)]=_0x14ce9b,this[_0x3a4d47(0x21f)]&&this[_0x3a4d47(0x3a4)](this[_0x3a4d47(0x21f)],_0x14ce9b);}async['ensureMount'](){const _0x45516c=_0x38896c;if(!this[_0x45516c(0x3d8)]){let _0x307438=document[_0x45516c(0x2c5)](_0x45516c(0x35b));_0x307438['style'][_0x45516c(0x30d)]=_0x45516c(0x1fd),_0x307438[_0x45516c(0x39a)]['left']='0',_0x307438[_0x45516c(0x39a)][_0x45516c(0x297)]='0';let _0x53225a=document['createElement'](_0x45516c(0x35b));_0x53225a[_0x45516c(0x39a)]['position']='relative',_0x53225a[_0x45516c(0x39a)][_0x45516c(0x2cb)]='0',_0x53225a[_0x45516c(0x39a)][_0x45516c(0x38c)]=_0x45516c(0x2a1),_0x53225a['style'][_0x45516c(0x32c)]=_0x45516c(0x3ca),_0x53225a[_0x45516c(0x3b3)]=_0x45516c(0x238),_0x307438['appendChild'](_0x53225a),this[_0x45516c(0x228)][_0x45516c(0x1c2)](_0x307438),this[_0x45516c(0x21f)]=_0x307438,this[_0x45516c(0x3d8)]=_0x53225a,this[_0x45516c(0x3a4)](_0x307438,this[_0x45516c(0x1b2)]);}return this[_0x45516c(0x22f)](),this[_0x45516c(0x3d8)];}[_0x38896c(0x1ed)](){const _0x2786fd=_0x38896c;return!!(this[_0x2786fd(0x3d8)]&&this[_0x2786fd(0x228)][_0x2786fd(0x2a6)](this[_0x2786fd(0x3d8)]));}[_0x38896c(0x22f)](){const _0x36d529=_0x38896c;var _0x7f4657;let _0x594e9d=this[_0x36d529(0x1ff)](),_0x3e8aeb=(_0x7f4657=this[_0x36d529(0x205)])==null?void 0x0:_0x7f4657['call'](this),_0xdca92b=(_0x3e8aeb==null?void 0x0:_0x3e8aeb['scaleX'])??0x1,_0x240ec4=(_0x3e8aeb==null?void 0x0:_0x3e8aeb[_0x36d529(0x368)])??0x1;this[_0x36d529(0x29c)]&&this['_setElementSize'](this['_host'],{'width':_0x594e9d[_0x36d529(0x246)]*_0xdca92b,'height':_0x594e9d[_0x36d529(0x3bb)]*_0x240ec4}),this[_0x36d529(0x21f)]&&(this['_setElementSize'](this[_0x36d529(0x21f)],_0x594e9d),this[_0x36d529(0x205)]&&(this[_0x36d529(0x21f)]['style'][_0x36d529(0x283)]='scale('+_0xdca92b+',\x20'+_0x240ec4+')',this[_0x36d529(0x21f)][_0x36d529(0x39a)][_0x36d529(0x31a)]=_0x36d529(0x296))),this[_0x36d529(0x3d8)]&&this[_0x36d529(0x316)](this[_0x36d529(0x3d8)],this['_getContentRect'](_0x594e9d));}['markReady'](){}[_0x38896c(0x1c0)](){}[_0x38896c(0x3ba)](){const _0x42e9ac=_0x38896c;var _0x2f2151;(_0x2f2151=this[_0x42e9ac(0x21f)])==null||_0x2f2151['remove'](),this['_frameNode']=null,this['_mountNode']=null,super[_0x42e9ac(0x3ba)]();}[_0x38896c(0x316)](_0x3b6b50,_0x1a10da){const _0x5dc288=_0x38896c;_0x3b6b50[_0x5dc288(0x39a)][_0x5dc288(0x246)]=_0x1a10da['width']+'px',_0x3b6b50['style'][_0x5dc288(0x3bb)]=_0x1a10da[_0x5dc288(0x3bb)]+'px';}[_0x38896c(0x35d)](_0x220c74){const _0x32c61e=_0x38896c;if(!_0xbdfd99(this[_0x32c61e(0x1b2)]))return _0x220c74;let _0x4f6900=_0x2598c0(_0x220c74,this[_0x32c61e(0x1b2)]);return{'width':_0x4f6900[_0x32c61e(0x246)],'height':_0x4f6900['height']};}};function Or(_0x1ca694){const _0x273dc8=_0x38896c;var _0x1d4024;let _0x4f112d=(_0x1d4024=_0x1ca694['match'](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x1d4024[0x1];if(_0x4f112d){let _0x557f6b=_0x4f112d[_0x273dc8(0x3d1)]===0x3?_0x4f112d[_0x273dc8(0x25d)]('')[_0x273dc8(0x1c1)](_0x16037a=>''+_0x16037a+_0x16037a)['join'](''):_0x4f112d;return _0x273dc8(0x1bd)+Number['parseInt'](_0x557f6b[_0x273dc8(0x396)](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x557f6b[_0x273dc8(0x396)](0x2,0x4),0x10)+',\x20'+Number[_0x273dc8(0x2c3)](_0x557f6b['slice'](0x4,0x6),0x10)+')';}let _0x5795d2=document['createElement'](_0x273dc8(0x365));return _0x5795d2['style']['color']=_0x1ca694,_0x5795d2[_0x273dc8(0x39a)]['color']||_0x1ca694;}let W=class extends _0x19361e{constructor(_0x4170b9,_0x594fd8,_0x40f94f){const _0x177b47=_0x38896c;super(),this[_0x177b47(0x20f)]=_0x4170b9,this[_0x177b47(0x22d)]=_0x594fd8,this[_0x177b47(0x1a5)]=_0x40f94f;}[_0x38896c(0x374)](_0x437ce4){const _0xdb8919=_0x38896c;return _0x437ce4?this[_0xdb8919(0x1a5)]['createChartInstance'](_0x437ce4,this[_0xdb8919(0x33d)]()):this[_0xdb8919(0x1a5)][_0xdb8919(0x374)]();}['createRenderInput'](_0x1da2a8){const _0x75b488=_0x38896c;let _0x121a90=_0x1da2a8[_0x75b488(0x209)][_0x75b488(0x38d)];if(!_0x121a90)throw Error(_0x75b488(0x326)+_0x1da2a8[_0x75b488(0x2cc)]+_0x75b488(0x328));let _0x2f242c=this['_localeService'][_0x75b488(0x32d)]();return{'chartConfig':_0x121a90,'chartStyle':_0x5cdff5({..._0x1da2a8[_0x75b488(0x209)][_0x75b488(0x39a)],'runtime':_0x1da2a8['model']['getRuntimeContext'](_0x2f242c),'direction':_0x2f242c},_0x121a90['type'])};}[_0x38896c(0x2a4)](_0x163530,_0x1fae6f,_0x57c261){const _0x3be638=_0x38896c;let {chartConfig:_0x90a630,chartStyle:_0x3132a3}=this[_0x3be638(0x357)](_0x163530),_0xb0ec8e=this[_0x3be638(0x1a5)][_0x3be638(0x2a3)]();return{'spec':_0xb0ec8e[_0x3be638(0x3a7)](_0xb0ec8e[_0x3be638(0x2db)](_0x90a630,_0x3132a3),{'chartConfig':_0x90a630,'chartStyle':_0x3132a3,'chartInstance':_0x57c261},_0x1fae6f),'chartConfig':_0x90a630,'chartStyle':_0x3132a3,'hostStyle':this[_0x3be638(0x1f0)](_0x3132a3)};}[_0x38896c(0x1f0)](_0x59dd93){const _0x1de74e=_0x38896c;return _0x5adbcc({'style':_0x59dd93,'getRenderColor':_0x38d0d0=>this[_0x1de74e(0x22d)]['getRenderColor'](_0x38d0d0)});}['applyHostStyle'](_0x471bdc,_0x33f21c){const _0x808f9d=_0x38896c;var _0x593323;let _0x5c74b3=(_0x593323=_0x33f21c[_0x808f9d(0x2cb)])!=null&&_0x593323[_0x808f9d(0x235)]&&_0x33f21c[_0x808f9d(0x2cb)]['width']?_0x33f21c['border']['width']+_0x808f9d(0x232)+Or(_0x33f21c[_0x808f9d(0x2cb)][_0x808f9d(0x235)]):'';_0x471bdc[_0x808f9d(0x39a)][_0x808f9d(0x2cb)]=_0x5c74b3,_0x471bdc[_0x808f9d(0x39a)][_0x808f9d(0x1ef)]=_0x33f21c[_0x808f9d(0x236)]?Or(_0x33f21c[_0x808f9d(0x236)]):_0x808f9d(0x2f9),_0x471bdc[_0x808f9d(0x39a)][_0x808f9d(0x27b)]=_0x33f21c['radius']?_0x33f21c[_0x808f9d(0x2fc)]+'px':'',_0x471bdc[_0x808f9d(0x39a)]['overflow']='hidden',_0x471bdc[_0x808f9d(0x39a)][_0x808f9d(0x38c)]=_0x808f9d(0x28f);}['_createChartRenderInstanceContext'](){const _0x3a4c91=_0x38896c;return{'resolveHostStyle':({style:_0x3d575b})=>this[_0x3a4c91(0x1f0)](_0x3d575b),'resolveRenderBackgroundColor':({hostStyle:_0x35d9d3})=>_0x35d9d3['fill'],'prepareSpec':({mode:_0x27186d,spec:_0x28ae89})=>_0x27186d==='image'?{..._0x28ae89,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x28ae89};}['dispose'](){const _0x276202=_0x38896c;super[_0x276202(0x3ba)]();}};W=B([z(0x0,_0x34b794(_0x490885)),z(0x1,_0x34b794(_0xa7bb8d)),z(0x2,_0x7127e3)],W);function kr(_0x4177bd,_0x3ec0db,_0xb41a54,_0x4b9c6e,_0x452c0d,_0xa149a9,_0x2d92a0){const _0x566f59=_0x38896c;let {model:_0x848dd4,source:_0x2caf0e}=_0x115b35({'id':_0x4177bd,'chartType':_0xb41a54,'dataSet':_0xc88894(_0x8b0c4c(_0x3ec0db)),'isRowDirection':(_0x4b9c6e==null?void 0x0:_0x4b9c6e['orient'])!==_0x566f59(0x363),'context':_0x4b9c6e==null?void 0x0:_0x4b9c6e[_0x566f59(0x2b9)],'dataAggregation':_0x452c0d,'style':_0xa149a9,'injector':_0x2d92a0});return{'unitId':_0x566f59(0x31e),'chartId':_0x4177bd,'dataSourceId':_0x4177bd+_0x566f59(0x35c),'model':_0x848dd4,'source':_0x2caf0e};}function Ar(_0x1d29c1){const _0x2781e4=_0x38896c;let _0x48aa96=_0xc3066b(_0x490885),_0x14ceb6=_0xc3066b(_0x1c9111),_0x4c25ee=_0xc3066b(W),_0x4eb8ba=_0xffc934(null),_0x3c0740=_0xffc934(null),_0x4d522c=_0xffc934(_0x2781e4(0x2dc)+_0x5e8ff1(0x8)),[_0x263243,_0xef0b22]=_0x2032f6(null);return _0x119658(()=>{const _0x7999f2=_0x2781e4;let _0x1947dd=_0x4eb8ba['current'];if(!_0x1947dd)return;_0xef0b22(null),_0x1947dd['replaceChildren'](),_0x3c0740[_0x7999f2(0x1e9)]=jr(_0x1947dd);let _0x4ede6f=!0x1,_0x961067=_0x1ecba8=>{_0x4ede6f||_0xef0b22(_0x1ecba8);},_0x47e930=null,_0x32449d=null,_0x5552a9=null;try{_0x47e930=kr(_0x4d522c[_0x7999f2(0x1e9)],_0x1d29c1[_0x7999f2(0x245)],_0x1d29c1[_0x7999f2(0x27d)],_0x1d29c1[_0x7999f2(0x1b6)],_0x1d29c1['dataAggregation'],_0x1d29c1['style'],_0x14ceb6),_0x32449d=new Dr(_0x47e930[_0x7999f2(0x2cc)],_0x1947dd,(_0x18a87c,_0x3ecc9e)=>_0x4c25ee[_0x7999f2(0x2a9)](_0x18a87c,_0x3ecc9e),()=>_0x3c0740[_0x7999f2(0x1e9)]??jr(_0x1947dd),!0x1),_0x5552a9=_0x4c25ee[_0x7999f2(0x374)](_0x40e3e9[_0x7999f2(0x2ef)]),_0x5552a9[_0x7999f2(0x349)](_0x32449d);}catch(_0x2cf4ae){return _0x961067(_0x2cf4ae),()=>{const _0x4f8aa7=_0x7999f2;_0x4ede6f=!0x0,_0x1947dd[_0x4f8aa7(0x397)]();};}if(!_0x47e930||!_0x32449d||!_0x5552a9)return()=>{const _0x1d3508=_0x7999f2;_0x4ede6f=!0x0,_0x1947dd[_0x1d3508(0x397)]();};let _0x1cc386=_0x47e930,_0x132722=_0x32449d,_0x51b572=_0x5552a9,_0x28848a=()=>{const _0x25b214=_0x7999f2;let _0x3b251b,_0x2caf5d;try{({chartConfig:_0x3b251b,chartStyle:_0x2caf5d}=_0x4c25ee[_0x25b214(0x357)](_0x1cc386));}catch(_0x142b78){_0x961067(_0x142b78);return;}_0x51b572[_0x25b214(0x2c0)]({'chartId':_0x1cc386[_0x25b214(0x2cc)],'config':_0x3b251b,'style':_0x2caf5d})[_0x25b214(0x351)](()=>{_0x4ede6f||_0xef0b22(null);})[_0x25b214(0x286)](_0x961067);},_0x26f446=_0x1cc386[_0x7999f2(0x209)][_0x7999f2(0x30f)][_0x7999f2(0x215)](_0x2d7717=>{_0x2d7717&&_0x28848a();}),_0x39bdcd=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x2a7dcc=>{const _0x191834=_0x7999f2;var _0x2795b7;let _0x572c98=(_0x2795b7=_0x2a7dcc[0x0])==null?void 0x0:_0x2795b7['contentRect'];_0x3c0740[_0x191834(0x1e9)]=_0x572c98&&_0x572c98['width']>0x0&&_0x572c98[_0x191834(0x3bb)]>0x0?{'width':_0x572c98['width'],'height':_0x572c98[_0x191834(0x3bb)]}:jr(_0x1947dd),_0x28848a();});return _0x39bdcd==null||_0x39bdcd[_0x7999f2(0x1c7)](_0x1947dd),()=>{const _0x22d56e=_0x7999f2;_0x4ede6f=!0x0,_0x26f446[_0x22d56e(0x31c)](),_0x39bdcd==null||_0x39bdcd['disconnect'](),_0x51b572[_0x22d56e(0x3ba)](),_0x132722['dispose'](),_0x1cc386['model'][_0x22d56e(0x3ba)](),_0x1cc386[_0x22d56e(0x308)]['dispose'](),_0x1947dd[_0x22d56e(0x397)]();};},[_0x14ceb6,_0x1d29c1[_0x2781e4(0x27d)],_0x1d29c1[_0x2781e4(0x1b6)],_0x1d29c1[_0x2781e4(0x2ae)],_0x1d29c1[_0x2781e4(0x39a)],_0x1d29c1[_0x2781e4(0x245)],_0x4c25ee]),_0x45bb0d('div',{'className':_0x2781e4(0x23b),'children':[_0x380983(_0x2781e4(0x35b),{'ref':_0x4eb8ba,'className':_0x2781e4(0x26b)}),_0x263243!=null&&_0x380983(_0x2781e4(0x35b),{'className':'dark:!univer-bg-gray-900/90\x20univer-bg-gray-0/90\x20univer-absolute\x20univer-bottom-3\x20univer-left-3\x20univer-rounded\x20univer-px-2\x20univer-py-1\x20univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','children':_0x48aa96['t'](_0x2781e4(0x334))})]});}function jr(_0x385d01){const _0x2ea6d7=_0x38896c;let _0x560f37=_0x385d01[_0x2ea6d7(0x21b)]();return _0x560f37['width']<=0x0||_0x560f37[_0x2ea6d7(0x3bb)]<=0x0?null:{'width':_0x560f37['width'],'height':_0x560f37[_0x2ea6d7(0x3bb)]};}const Mr='doc-chart.editor-dialog',Nr=_0x38896c(0x1d1);function Pr(_0x35bd98){const _0x7f4cbe=_0x38896c;var _0x1863f0;let {unitId:_0x2ff81c,chartId:_0x2849ca,drawingId:_0x200694}=_0x35bd98,_0x10fec7=_0xc3066b(_0x490885),_0x117289=_0xc3066b(_0x1c9111),_0x4a2987=_0xc3066b(_0x5a8e80),_0x9ce81d=_0xc3066b(_0x46b3fa),_0x673ee3=_0xc3066b(_0x3d515f),_0x2a6bb8=_0xc3066b(V),_0x31bf29=_0xc3066b(pr),_0x45f826=_0x25818c(()=>_0x2a6bb8[_0x7f4cbe(0x2c9)](_0x2ff81c,_0x2849ca),[_0x2849ca,_0x2a6bb8,_0x2ff81c]),_0x302ca2=_0x9ce81d[_0x7f4cbe(0x371)](_0x2ff81c,_0x2849ca),_0x472180=_0x25818c(()=>_0x673ee3==null?void 0x0:_0x673ee3[_0x7f4cbe(0x21e)](_0x2ff81c,_0x2849ca),[_0x2849ca,_0x673ee3,_0x2ff81c]),_0x6bf60a=_0x197af3(_0x472180==null?void 0x0:_0x472180['model'][_0x7f4cbe(0x1db)],(_0x472180==null?void 0x0:_0x472180[_0x7f4cbe(0x209)][_0x7f4cbe(0x27d)])??(_0x302ca2==null?void 0x0:_0x302ca2['chartType'])),_0x85dce6=_0x197af3(_0x472180==null?void 0x0:_0x472180[_0x7f4cbe(0x209)][_0x7f4cbe(0x274)],(_0x472180==null?void 0x0:_0x472180['model'][_0x7f4cbe(0x1b6)])??(_0x302ca2==null||(_0x1863f0=_0x302ca2[_0x7f4cbe(0x1b6)])==null?void 0x0:_0x1863f0[_0x7f4cbe(0x2b9)])),_0x3faa55=_0x197af3(_0x472180==null?void 0x0:_0x472180[_0x7f4cbe(0x209)][_0x7f4cbe(0x30a)],(_0x472180==null?void 0x0:_0x472180[_0x7f4cbe(0x209)][_0x7f4cbe(0x2ae)])??(_0x302ca2==null?void 0x0:_0x302ca2[_0x7f4cbe(0x2ae)])),_0x5a4797=_0x197af3(_0x472180==null?void 0x0:_0x472180[_0x7f4cbe(0x209)][_0x7f4cbe(0x292)],(_0x472180==null?void 0x0:_0x472180['model'][_0x7f4cbe(0x39a)])??(_0x302ca2==null?void 0x0:_0x302ca2[_0x7f4cbe(0x39a)])),_0x2cb651=_0x25818c(()=>({..._0x302ca2==null?void 0x0:_0x302ca2[_0x7f4cbe(0x1b6)],'chartContext':_0x85dce6}),[_0x302ca2==null?void 0x0:_0x302ca2[_0x7f4cbe(0x1b6)],_0x85dce6]),[_0x4d1082,_0x1a0777]=_0x2032f6(_0x45f826),[_0x394ed8,_0x28d6c9]=_0x2032f6(()=>(_0x45f826==null?void 0x0:_0x45f826[_0x7f4cbe(0x245)]['map'](_0x364d0f=>[..._0x364d0f]))??[]),[_0x5a391a,_0xd2c4d8]=_0x2032f6(()=>(_0x45f826==null?void 0x0:_0x45f826[_0x7f4cbe(0x245)][_0x7f4cbe(0x1c1)](_0x50d9b1=>[..._0x50d9b1]))??[]),[_0x54e30e,_0x48f91b]=_0x2032f6(()=>_0x302ca2==null?void 0x0:_0x302ca2['chartType']),[_0xaa1e05,_0x8c8fe6]=_0x2032f6(()=>{const _0x46a69f=_0x7f4cbe;var _0x59e62f;return((_0x59e62f=_0x35bd98[_0x46a69f(0x1c6)])==null?void 0x0:_0x59e62f[_0x46a69f(0x213)])===_0x2ceafc[_0x46a69f(0x25f)]?'data':'chart';}),[_0x7b37c7,_0x26855d]=_0x2032f6(null),_0x542425=_0x25818c(()=>{const _0x4ece34=_0x7f4cbe;var _0x46a089;let _0x3fedce=_0x4a2987[_0x4ece34(0x2be)](_0x2ff81c,_0x3c76ab[_0x4ece34(0x208)]);if(!_0x472180||!_0x3fedce)return null;let _0x47e612=_0x200694??((_0x46a089=Object[_0x4ece34(0x245)](_0x3fedce[_0x4ece34(0x3ce)]()??{})['find'](_0x5a3d28=>_0x5a3d28[_0x4ece34(0x2cc)]===_0x2849ca))==null?void 0x0:_0x46a089[_0x4ece34(0x273)]);return _0x47e612?new _0x4e8142(_0x472180[_0x4ece34(0x209)],new _0x443a3a({'unitId':_0x2ff81c,'chartId':_0x2849ca,'drawingId':_0x47e612,'documentDataModel':_0x3fedce,'injector':_0x117289})):null;},[_0x2849ca,_0x200694,_0x117289,_0x472180,_0x2ff81c,_0x4a2987]);return!_0x4d1082||!_0x302ca2?_0x380983(_0x7f4cbe(0x35b),{'className':'univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','children':_0x10fec7['t'](_0x7f4cbe(0x347))}):_0x45bb0d(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x276),'style':{'height':_0x7f4cbe(0x2fa)},'children':[_0x380983(_0xb6daf0,{'ariaLabel':_0x10fec7['t'](_0x7f4cbe(0x3d2)),'className':_0x7f4cbe(0x23d),'value':_0xaa1e05,'items':[{'label':_0x10fec7['t'](_0x7f4cbe(0x258)),'panelId':Fr,'value':_0x7f4cbe(0x265)},{'label':_0x10fec7['t'](_0x7f4cbe(0x3cb)),'panelId':Ir,'value':'data'}],'variant':_0x7f4cbe(0x2f3),'onChange':_0x8c8fe6}),_0x45bb0d('div',{'id':_0xaa1e05===_0x7f4cbe(0x313)?Ir:Fr,'aria-labelledby':(_0xaa1e05===_0x7f4cbe(0x313)?Ir:Fr)+_0x7f4cbe(0x3bc),'className':_0x7f4cbe(0x2a8),'role':_0x7f4cbe(0x278),'children':[_0xaa1e05===_0x7f4cbe(0x313)?_0x380983(fr,{'values':_0x394ed8,'dataSource':_0x4d1082[_0x7f4cbe(0x345)],'sharingCount':_0x4d1082[_0x7f4cbe(0x1fa)],'onCancel':()=>_0x8c8fe6(_0x7f4cbe(0x265)),'onSubmit':(_0xc95588,_0x4a4ca8)=>{const _0x57933c=_0x7f4cbe;if(!_0x2a6bb8[_0x57933c(0x20b)](_0x2ff81c,_0x2849ca,_0xc95588,_0x4a4ca8)){_0x26855d(_0x10fec7['t'](_0x57933c(0x34f)));return;}_0x26855d(null);let _0x126a61=_0x2a6bb8[_0x57933c(0x2c9)](_0x2ff81c,_0x2849ca);_0x1a0777(_0x126a61??_0x4d1082),_0x28d6c9((_0x126a61==null?void 0x0:_0x126a61[_0x57933c(0x245)])??_0xc95588),_0xd2c4d8((_0x126a61==null?void 0x0:_0x126a61[_0x57933c(0x245)])??_0xc95588),_0x8c8fe6(_0x57933c(0x265));},'onDataSourceSubmit':_0x48ffb2=>{const _0x1caf83=_0x7f4cbe;if(!_0x2a6bb8[_0x1caf83(0x38e)](_0x2ff81c,_0x2849ca,_0x48ffb2)){_0x26855d(_0x10fec7['t'](_0x1caf83(0x34f)));return;}_0x26855d(null),_0x1a0777(_0x2a6bb8[_0x1caf83(0x2c9)](_0x2ff81c,_0x2849ca)??_0x4d1082),_0x8c8fe6(_0x1caf83(0x265));}}):_0x45bb0d(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x2ab),'children':[_0x380983(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x33f),'children':_0x380983(Ar,{'values':_0x5a391a,'chartType':_0x6bf60a??_0x54e30e??_0x302ca2['chartType'],'context':_0x2cb651,'dataAggregation':_0x3faa55,'style':_0x5a4797})}),_0x45bb0d(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x2af),'children':[_0x380983(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x3c2),'children':_0x542425?_0x380983(_0x1c9ca0,{'chartUIService':_0x31bf29,'hostAdapter':_0x542425,'children':_0x380983(xr,{'initialRoute':_0x35bd98[_0x7f4cbe(0x1c6)],'onClose':_0x35bd98[_0x7f4cbe(0x1ab)],'onPreviewChartTypeChange':_0x48f91b,'onModifyData':()=>_0x8c8fe6(_0x7f4cbe(0x313))})}):_0x380983(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x20e),'children':_0x10fec7['t'](_0x7f4cbe(0x347))})}),_0x7b37c7&&_0x380983(_0x7f4cbe(0x35b),{'className':_0x7f4cbe(0x1ce),'children':_0x7b37c7})]})]}),_0xaa1e05===_0x7f4cbe(0x313)&&_0x7b37c7&&_0x380983('div',{'className':_0x7f4cbe(0x29e),'children':_0x7b37c7})]})]});}const Fr=_0x38896c(0x329),Ir='doc-chart-data-panel';function _0x5398(){const _0x52fca6=['unsubscribe','titles','doc-chart-preview','univer-w-full\x20univer-justify-start','pageHeight','activeRuntimeModel','docs-chart-ui.section.pie','Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20','transformByState','setTimeout','Document\x20chart\x20','engine','\x20has\x20no\x20render\x20config.','doc-chart-editor-panel','_activeLayer','clearTimeout','overflow','getDirection','tables','docs-chart-ui.section.relation','PieStyle','plan','onScrollAfter$','Sunburst','docs-chart-ui.previewRenderFailed','_staticRenderController','positionObserver','docs-chart-ui.section.wordCloud','size','docs-chart-ui.common.insert','Heatmap','pipe','_getOrCreatePastedDataSourceId','_createChartRenderInstanceContext','_configService','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','DrawingEditIcon','DRAWING_CHART','prepare','Pie','_getChartDrawings','dataSource','doc-chart-style-panel','docs-chart-ui.chartNotFound','getDataSourceSharingCount','bind','shared','LAYOUT','_snapshotRenderService','docs-chart-ui.common.cancel','syncExecuteCommand','docs-chart-ui.updateChartFailed','1698708voGssZ','then','addClipboardHook','value','SHARED','_activate','export','createRenderInput','Trendline','univer-flex\x20univer-justify-end\x20univer-gap-2','requestSnapshot','div','-data-source','_getContentRect','ChartAndAxisTitles','order','Column','aLeft','onTransformChange$','column','dblclick','span','registerPrintPreparation','Histogram','scaleY','baseOn','1397180CEwiYr','getUnitId','pageMarginTop','PRINTING_COMPONENT_COLLECT','getInterceptPoints','_resourceService','defaultChartType','getChart','docs-chart-ui.common.legend','_pasteAdapterService','createChartInstance','naturalWidth','key','unitId','_drawingAdapterService','.below','hit','aTop','docsLeft','rightY','snapshotUpdated$','docs-chart-ui.common.setup','_shouldWaitForChartConfig','textRanges','startOffset','_requestSnapshotsForSearches','get','Timed\x20out\x20loading\x20document\x20chart\x20print\x20image.','number','sourceDocuments','Pareto','find','decorate','getFocusDrawings','boxSizing','config','changeDataSource','_init','docs-chart-ui.section.radar','_floatingToolbarAdapterService','allSettled','open','issue','ChartStyle','slice','replaceChildren','!univer-w-[calc(100vw-32px)]\x20!univer-max-w-[680px]\x20md:!univer-max-w-[960px]\x20xl:!univer-max-w-[1200px]','indexOf','style','UnknownOption','_activeDomReadyDrawingKeys','registerCommand','Doughnut','addObject','_getRenderedChartImage','dataSourceId','insertChart','visible','_applyHostStyle','_getDrawingSearch','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','stylizeSpec','docs-chart-ui.common.chartAndAxisTitles','docs-chart-ui.common.apply','executeCommand','univer-flex\x20univer-flex-col\x20univer-gap-3','show','supports','6gThNQZ','_requestSnapshotsForUnit','_appendChartResources','_subscribeRender','docs-chart-ui.chartTypes.','className','defaultTableText','flipY','Series','_initClipboardHooks','getId','indicatorLine','dispose','height','-tab','index','_renderService','_deactivate','deepClone','docs-chart-ui.common.deleteChart','univer-min-h-0\x20univer-flex-1','1218308JejfgZ','type','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-px-1\x20univer-pb-4\x20univer-pt-4','executeChartUpdateConfig','_snapshotService','docs-chart-ui.section.chord','_syncRenderedChartVisibility','hidden','docs-chart-ui.common.data','getDrawingByParam','customBlocks','getDrawings','ready','docs-chart-ui.active-chart','length','docs-chart-ui.common.editChart','pieSecondaryPlotType','invalidateChart','getSkeletonData','doc-chart-setup-panel','ChartIcon','_mountNode','dataStream','skeDrawings','Legend','_renderModelManager','Style','_prepareStandaloneInsertLine','focus$','_getRenderRect','dataUrl','onClose','docTransform','2994150qLUbSS','mountChart','@univerjs-pro/docs-chart-ui','remove$','Gauge','_hostStyle','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','getViewport','getChartIdsByDataSource','context','4142173BfQFmB','pie','push','docs-chart-ui.common.horizontalAxis','Category\x09Value','9493336kcKATy','rgb(','section','labelId','markNotReady','map','appendChild','docs-chart-ui.section.candlestick','forEach','docs-chart-ui.sunburst.hierarchy','route','observe','sceneRect','attachTransformerTo','_handleFocus','Image','_preparedCharts','pages','univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','call','charts','doc-chart.dialog.editor','GeneralSeries','_docContentInsertService','axis','dpr','ParetoBarSeries','seriesId','_commandService','docs-chart-ui.common.insertChart','B\x0918','chartType$','getSelfOrHeaderFooterModel','makeDirty','scale','getDrawingOrder','_removeRenderedCharts','docs-chart-ui.config','SVG','getAncestorScale','registerAdapter','_initMenus','round','_updatePosition','max','current','version','RightVerticalAxis','openInsertDialog','checkMounted','_renderManagerService','backgroundColor','getHostStyle','main','_getDrawingRect','doc-chart.data-editor','object','string','docs-chart-ui.common.verticalAxis','docs-chart-ui.section.gridlinesAndTicks','transformerConfig','focus','sharingCount','src','root','absolute','wordCloud','getRect','primary','doc-chart.dialog.insert','endOffset','_drawingManagerService','getCacheKey','_getRenderScale','change','breakOffsets','UNIVER_DOC','model','_config','updateData','_dialogService','_getPasteMutationInfos','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','_localeService','scene','_initPrinting','LineAndArea','tab','min','subscribe','getRealBound','univer-flex\x20univer-flex-col\x20univer-gap-2','PARAGRAPH','scaleX','doc.operation.open-doc-chart-editor-dialog','getBoundingClientRect','composite','inline','ensureChartModel','_frameNode','docs-chart-ui.section.gauge','getObjectIncludeInGroup','every','docs-chart-ui.section.lineAndArea','setStyle','pareto','subscribeEvent','setClipBounds','_host','OPERATION','GridlinesAndTicks','intercept','onPreviewChartTypeChange','_chartThemeService','WordCloud','syncLayout','9NLyzpx','docs-chart-ui.section.funnel','px\x20solid\x20','lastIndexOf','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','color','fill','setActiveChartRuntime','doc-chart-host','doc.operation.open-doc-chart-insert-dialog','_imageContentHidden','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','register','univer-shrink-0','_renderCharts','interceptor','InvalidCandlestickData','radar','_menuManagerService','univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','drawingType','values','width','drawings','add$','docs-chart-ui.chord.target','DUPLICATE','_getActiveRenderRect','_isActiveLayer','getCanvasElement','_canvasFloatDomService','resolve','insertChartFromText','docs-chart-ui.section.histogram','initialRoute','_docClipboardService','clipBounds','Radar','doc-chart.dialog.data-editor','mergeMenu','docs-chart-ui.floatMenu.menuTitle.chart','_injector','filter','EmptyData','referenced','split','setImageContentHidden','Data','A\x0912','onModifyData','add','collapsed','_requestSnapshot','chart','VerticalAxis','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','docs-chart-ui.section.treemap','click','HorizontalAxis','univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg','sourceDrawing','docs-chart-ui.section.indicatorLine','_univerInstanceService','_docPrintInterceptorService','Chord','join','updateDataFromText','drawingId','context$','_docSelectionManagerService','univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-flex-col\x20univer-overflow-hidden\x20univer-overscroll-contain','docs-chart-ui.common.chartStyle','tabpanel','Relation','READY','borderRadius','label','chartType','subUnitId','_resolveInsertPosition','_visualLayoutChanged$','onStarting','select','transform','453013oxnGsT','direction$','catch','Waterfall','_bindActiveLayerObservers','function','IndicatorLine','consumeInsertRange','docs-chart-ui.common.chartType','right','defineProperty','border-box','preValue','VIEW_MAIN','style$','setActiveDomReady','barStyle','delete','top\x20left','top','Failed\x20to\x20load\x20document\x20chart\x20print\x20image.','getActiveTextRange','WaterfallSeries','_initAdapter','_manageHostSize','mode','univer-mt-2\x20univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','C\x099','button','content-box','_syncChartImageVisibility','getCurrentRenderModel','createRenderSpec','getCurrentUnitOfType','contains','_getPositionState','univer-min-h-0\x20univer-flex-1\x20univer-pt-4','applyHostStyle','disposeWithMe','univer-flex\x20univer-size-full\x20univer-min-w-0\x20univer-gap-5','_isDocChartDrawing','_getActiveRenderScale','dataAggregation','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','_instanceService','funnel','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','setActiveChartById','getDrawingDataForUnit','_refreshActiveLayout','docs-chart-ui.candlestick.low','exportImage','changeSource','chartContext','angle','Candlestick','docs-chart-ui.candlestick.columnsError','targetDrawing','getUnit','docs-chart-ui.close','render','_renderDrawing','_createImageShape','parseInt','image','createElement','default','next','marginTop','getEditorState','startIndex','border','chartId','_retryActivateFocusedChart','docs-chart-ui.section.paretoLine','refreshTransform$','docs-chart-ui.common.label','_layoutChanged$','onerror','hide','segmentId','position$','status','isFinite','getSnapshot','onCommandExecuted','docs-chart-ui.common.tableDataEmpty','toSpec','doc-chart-preview-','complete','endIndex','_refreshActivePosition','waterfall','Funnel','heatmap','Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','getDataUrl','getOffsetConfig','docs-chart-ui.common.editData','set','getRenderUnitById','_draw','Treemap','_getChartDrawing','_modelService','symbol','UniverDocsChartUIPlugin','Dom','getNative','target','dataSources','segmented','has','_registerDialogOperations','chartInvalidated$','imageContentHidden','Axes','transparent','min(560px,\x20calc(100vh\x20-\x20180px))','getBody','radius','getTextRanges','ParetoLineSeries','_listenChartResourceMutations','_forEachChartDrawing','docs-chart-ui.common.insertChartFailed','params','dispatchEvent','onReady','insertRange','docs-chart-ui.common.customize','onDataSourceSubmit','source','univer-w-full\x20!univer-min-w-0','dataAggregation$','format','openEditorDialog','position','scaleObserver','config$','relation','some','left','data','bottom','SECTION_BREAK','_setElementSize','doughnutHole','getChartModel','_componentManager','transformOrigin','renderRect'];_0x5398=function(){return _0x52fca6;};return _0x5398();}function G(_0x2fffa2,_0x391764){const _0xe71113=_0x38896c;var _0x22a1c8;if(!(_0x391764!=null&&_0x391764[_0xe71113(0x263)])||_0x391764[_0xe71113(0x382)]==null)return null;let _0x5bc3ac=_0x391764[_0xe71113(0x2d4)]??'';if(_0x5bc3ac!=='')return null;let _0x443c15=(_0x22a1c8=_0x2fffa2[_0xe71113(0x1dc)](_0x5bc3ac))==null?void 0x0:_0x22a1c8[_0xe71113(0x2fb)]();if(!_0x443c15)return null;let _0xa3966b=Lr(_0x443c15,_0x391764['startOffset']);if(!Rr(_0x443c15,_0xa3966b))return null;let _0x5acd8e=Br(_0x443c15,_0xa3966b);return _0x5acd8e?{'unitId':_0x2fffa2[_0xe71113(0x36b)](),'index':_0x5acd8e[_0xe71113(0x3bd)],'segmentId':_0x5bc3ac,'breakOffsets':_0x5acd8e['breakOffsets']}:null;}function Lr(_0x41285c,_0x2c1992){const _0x1b7671=_0x38896c;return _0x2c1992===0x0&&_0x41285c[_0x1b7671(0x3d9)][0x0]===_0x114502[_0x1b7671(0x218)]?0x1:_0x2c1992;}function Rr(_0x1ec8ae,_0x213605){const _0x568480=_0x38896c;return!(Ur(_0x1ec8ae[_0x568480(0x32e)],_0x213605)||Wr(_0x1ec8ae['blockRanges'],_0x213605)||Gr(_0x1ec8ae[_0x568480(0x3cd)],_0x213605));}function zr(_0x3ff3c0,_0x16a130){const _0x5ac2d6=_0x38896c;let {dataStream:_0x200d00}=_0x3ff3c0;if(!_0x200d00||_0x16a130<0x0||_0x16a130>=_0x200d00[_0x5ac2d6(0x3d1)])return!0x1;let _0x4016fb=Vr(_0x200d00,_0x16a130)+0x1,_0x54938a=Hr(_0x200d00,_0x16a130);return _0x4016fb<=_0x54938a&&_0x200d00[_0x5ac2d6(0x396)](_0x4016fb,_0x54938a)[_0x5ac2d6(0x3d1)]===0x0;}function Br(_0x570a71,_0x1c6b52){let {dataStream:_0x315358}=_0x570a71;if(!_0x315358||_0x1c6b52<0x0||_0x1c6b52>=_0x315358['length'])return null;if(zr(_0x570a71,_0x1c6b52))return{'index':_0x1c6b52,'breakOffsets':[]};let _0x5d5c93=Vr(_0x315358,_0x1c6b52)+0x1,_0x101be=Hr(_0x315358,_0x1c6b52);return _0x1c6b52<=_0x5d5c93?{'index':_0x1c6b52,'breakOffsets':[_0x1c6b52]}:_0x1c6b52>=_0x101be?{'index':_0x1c6b52+0x1,'breakOffsets':[_0x1c6b52]}:{'index':_0x1c6b52+0x1,'breakOffsets':[_0x1c6b52,_0x1c6b52+0x1]};}function Vr(_0x371eb6,_0x1253ac){const _0x50f16b=_0x38896c;let _0x3394aa=Math[_0x50f16b(0x1e8)](0x0,Math['min'](_0x1253ac-0x1,_0x371eb6['length']-0x1));return Math[_0x50f16b(0x1e8)](_0x371eb6[_0x50f16b(0x233)](_0x114502[_0x50f16b(0x218)],_0x3394aa),_0x371eb6[_0x50f16b(0x233)](_0x114502[_0x50f16b(0x315)],_0x3394aa));}function Hr(_0xc34f4b,_0x586763){const _0x2eb4af=_0x38896c;let _0x4a9ede=Math[_0x2eb4af(0x1e8)](0x0,Math[_0x2eb4af(0x214)](_0x586763,_0xc34f4b[_0x2eb4af(0x3d1)]-0x1)),_0x45f199=_0xc34f4b[_0x2eb4af(0x399)](_0x114502['PARAGRAPH'],_0x4a9ede),_0x25813a=_0xc34f4b['indexOf'](_0x114502['SECTION_BREAK'],_0x4a9ede);return _0x45f199===-0x1&&_0x25813a===-0x1?_0xc34f4b[_0x2eb4af(0x3d1)]:_0x45f199===-0x1?_0x25813a:_0x25813a===-0x1?_0x45f199:Math[_0x2eb4af(0x214)](_0x45f199,_0x25813a);}function Ur(_0x2f6c69,_0x33dd6a){const _0xcaf82d=_0x38896c;return!!(_0x2f6c69!=null&&_0x2f6c69[_0xcaf82d(0x311)](_0x95cbda=>_0x95cbda[_0xcaf82d(0x2ca)]<=_0x33dd6a&&_0x33dd6a<_0x95cbda[_0xcaf82d(0x2de)]));}function Wr(_0x795d3a,_0x11cff2){const _0x349830=_0x38896c;return!!(_0x795d3a!=null&&_0x795d3a[_0x349830(0x311)](_0x52a423=>_0x52a423[_0x349830(0x2ca)]<=_0x11cff2&&_0x11cff2<=_0x52a423[_0x349830(0x2de)]));}function Gr(_0x516f5a,_0x5ea056){const _0x28a6a5=_0x38896c;return!!(_0x516f5a!=null&&_0x516f5a[_0x28a6a5(0x311)](_0x2c009d=>_0x2c009d['startIndex']===_0x5ea056));}let K=class{constructor(_0x5d9b07,_0xfd52f6,_0xd8c4a2,_0x20f4b0){const _0x345bb1=_0x38896c;this[_0x345bb1(0x2b0)]=_0x5d9b07,this[_0x345bb1(0x1d8)]=_0xfd52f6,this[_0x345bb1(0x275)]=_0xd8c4a2,this[_0x345bb1(0x1d3)]=_0x20f4b0;}[_0x38896c(0x250)](_0x3520b6,_0x140baa,_0xea65c6){let _0x13456b=_0x1fd4cc(_0x3520b6);return _0x13456b['length']!==0x0&&this['insertChart'](_0x13456b,_0x140baa,_0xea65c6);}[_0x38896c(0x3a2)](_0x56661d,_0x195915,_0x1c62e8={}){const _0x139105=_0x38896c;if(_0x56661d['length']===0x0)return!0x1;let _0x15ce87=_0x15ccbc(_0x195915,_0x56661d);if(!_0x15ce87['ok'])return!0x1;let _0x13f6af=this['_instanceService'][_0x139105(0x2a5)](_0x3c76ab['UNIVER_DOC']);if(!_0x13f6af)return!0x1;let _0x5ef50a=this['_resolveInsertPosition'](_0x13f6af,_0x1c62e8[_0x139105(0x305)]);if(!_0x5ef50a||!this[_0x139105(0x1a7)](_0x5ef50a[_0x139105(0x207)],_0x5ef50a[_0x139105(0x2d4)]))return!0x1;let _0x3506a7=_0x5ef50a[_0x139105(0x377)],_0x39abdf={'chartType':_0x195915};_0x1c62e8[_0x139105(0x1b6)]&&(_0x39abdf['context']=_0x1c62e8[_0x139105(0x1b6)]),_0x1c62e8['dataAggregation']&&(_0x39abdf[_0x139105(0x2ae)]=_0x1c62e8[_0x139105(0x2ae)]),_0x1c62e8['style']&&(_0x39abdf[_0x139105(0x39a)]=_0x1c62e8[_0x139105(0x39a)]);let _0x56ae11=this[_0x139105(0x1d8)][_0x139105(0x34e)](_0x17652c['id'],{'unitId':_0x3506a7,'textRange':{'startOffset':_0x5ef50a[_0x139105(0x3bd)],'endOffset':_0x5ef50a['index'],'collapsed':!0x0,'segmentId':_0x5ef50a[_0x139105(0x2d4)]},'chart':_0x39abdf,'dataSource':_0x1c62e8[_0x139105(0x345)]??{'values':_0x15ce87[_0x139105(0x245)]},'width':_0x1c62e8[_0x139105(0x246)],'height':_0x1c62e8['height'],'focus':_0x1c62e8[_0x139105(0x1f9)]});return _0x56ae11?{..._0x56ae11,'unitId':_0x3506a7}:!0x1;}[_0x38896c(0x27f)](_0x2e00e0,_0x79d80e){const _0x1a97eb=_0x38896c;if(_0x79d80e)return G(_0x2e00e0,_0x79d80e);let _0x2a457c=_0x2e00e0[_0x1a97eb(0x36b)](),_0x29fd51=null;try{_0x29fd51=this['_docContentInsertService']['consumeInsertRange'](_0x2a457c);}catch{_0x29fd51=null;}return _0x29fd51?G(_0x2e00e0,{'startOffset':_0x29fd51[_0x1a97eb(0x382)],'endOffset':_0x29fd51[_0x1a97eb(0x202)],'collapsed':_0x29fd51[_0x1a97eb(0x382)]===_0x29fd51['endOffset'],'segmentId':_0x29fd51[_0x1a97eb(0x2d4)]??''}):G(_0x2e00e0,Kr(this['_docSelectionManagerService']['getActiveTextRange']()));}[_0x38896c(0x1a7)](_0x3e1efc,_0x36719a){const _0xc4bd8=_0x38896c;for(let _0x10a940 of _0x3e1efc)if(!this['_commandService'][_0xc4bd8(0x34e)](_0x5b363a['id'],{'textRange':{'startOffset':_0x10a940,'endOffset':_0x10a940,'collapsed':!0x0,'segmentId':_0x36719a}}))return!0x1;return!0x0;}};K=B([z(0x0,_0x5a8e80),z(0x1,_0xf83699),z(0x2,_0x34b794(_0x5b353b)),z(0x3,_0x34b794(_0x129931))],K);function Kr(_0x3187a3){const _0x34a966=_0x38896c;return!_0x3187a3||typeof _0x3187a3!=_0x34a966(0x1f4)?null:_0x3187a3;}const qr='doc-chart.insert-panel',Jr=[_0x38896c(0x1bb),_0x38896c(0x260),_0x38896c(0x1da),_0x38896c(0x29f)][_0x38896c(0x271)]('\x0a');function Yr(_0x4703e3){const _0x29ce0c=_0x38896c;let _0x1e6389=_0xc3066b(K),_0x4229cf=_0xc3066b(_0x490885),{defaultChartType:_0x1efa3a=_0x138983[_0x29ce0c(0x360)],defaultTableText:_0x5bda7d=Jr,insertOptions:_0x2e28cd,onCancel:_0x3d2cb5,onInserted:_0x3c0372}=_0x4703e3,_0x8ed847=_0x25818c(()=>_0x33c5ea(_0x81eacf['map'](_0x27d49b=>({..._0x27d49b,'label':_0x4229cf['t']('docs-chart-ui.chartTypes.'+_0x27d49b[_0x29ce0c(0x1bf)])}))),[_0x4229cf]),[_0x33f906,_0x42e94d]=_0x2032f6(String(_0x1efa3a)),_0x56ae8e=_0x8ed847['find'](_0x4358bc=>_0x4358bc[_0x29ce0c(0x353)]===_0x33f906),_0x95edc8=(_0x56ae8e==null?void 0x0:_0x56ae8e[_0x29ce0c(0x27d)])??_0x1efa3a,_0x1e594d=_0x583a59=>_0x3e0573(_0x583a59,{'candlestickClose':_0x4229cf['t']('docs-chart-ui.candlestick.close'),'candlestickHigh':_0x4229cf['t']('docs-chart-ui.candlestick.high'),'candlestickLow':_0x4229cf['t'](_0x29ce0c(0x2b6)),'candlestickOpen':_0x4229cf['t']('docs-chart-ui.candlestick.open'),'category':_0x4229cf['t']('docs-chart-ui.common.category'),'chordSource':_0x4229cf['t']('docs-chart-ui.chord.source'),'chordTarget':_0x4229cf['t'](_0x29ce0c(0x249)),'label':_0x4229cf['t'](_0x29ce0c(0x2d0)),'sunburstHierarchy':_0x4229cf['t'](_0x29ce0c(0x1c5)),'value':_0x4229cf['t']('docs-chart-ui.common.value'),'valueField':_0x4229cf['t']('docs-chart-ui.common.valueField')}),[_0x7f9353,_0x3ac3f9]=_0x2032f6(()=>_0x4703e3[_0x29ce0c(0x3b4)]===void 0x0?_0x1e594d(_0x1efa3a)??_0x1fd4cc(_0x5bda7d):_0x1fd4cc(_0x5bda7d)),[_0x41f83,_0x474aff]=_0x2032f6(_0x29ce0c(0x21d)),[_0x32a5ac,_0x249c1c]=_0x2032f6(null),[_0x4127e4,_0x160db6]=_0x2032f6([]),[_0x564758,_0x4afb33]=_0x2032f6(null),_0x45cad9={[_0x55cc23[_0x29ce0c(0x39b)]]:_0x4229cf['t'](_0x29ce0c(0x301)),[_0x55cc23[_0x29ce0c(0x25b)]]:_0x4229cf['t'](_0x29ce0c(0x2da)),[_0x55cc23[_0x29ce0c(0x240)]]:_0x4229cf['t'](_0x29ce0c(0x2bc))};return _0x45bb0d('div',{'className':_0x29ce0c(0x234),'children':[_0x45bb0d(_0x29ce0c(0x35b),{'className':_0x29ce0c(0x217),'children':[_0x380983(_0x29ce0c(0x35b),{'className':_0x29ce0c(0x3a6),'children':_0x4229cf['t'](_0x29ce0c(0x28c))}),_0x380983(_0xc7d92e,{'className':_0x29ce0c(0x309),'value':_0x33f906,'options':_0x8ed847,'onChange':_0x4eeebc=>{const _0x2b1109=_0x29ce0c;var _0x5bf24b;_0x42e94d(_0x4eeebc);let _0xf782a6=((_0x5bf24b=_0x8ed847[_0x2b1109(0x389)](_0x28fc3c=>_0x28fc3c[_0x2b1109(0x353)]===_0x4eeebc))==null?void 0x0:_0x5bf24b[_0x2b1109(0x27d)])??Number(_0x4eeebc),_0x49f4f3=_0x1e594d(_0xf782a6);_0x49f4f3&&_0x3ac3f9(_0x49f4f3);}})]}),_0x380983(_0x415425,{'mode':_0x41f83,'inlineContent':_0x380983(_0x1eb143,{'values':_0x7f9353,'minColumns':_0x4d7f7f(_0x95edc8),'parsePastedText':_0x1fd4cc,'onChange':_0x3ac3f9}),'onModeChange':_0x166eda=>{_0x474aff(_0x166eda),_0x249c1c(null),_0x160db6([]);},'onPreviewChange':(_0x76b89c,_0x16f8f0)=>{const _0x7ab092=_0x29ce0c;_0x76b89c&&_0x16f8f0[_0x7ab092(0x2d6)]===_0x45c4c1[_0x7ab092(0x27a)]&&_0x16f8f0[_0x7ab092(0x245)]?(_0x249c1c({'source':_0x76b89c}),_0x160db6(_0x16f8f0[_0x7ab092(0x245)][_0x7ab092(0x1c1)](_0x189235=>[..._0x189235]))):(_0x249c1c(null),_0x160db6([]));}}),_0x564758&&_0x380983(_0x29ce0c(0x35b),{'className':_0x29ce0c(0x1ce),'children':_0x564758}),_0x45bb0d(_0x29ce0c(0x35b),{'className':_0x29ce0c(0x359),'children':[_0x3d2cb5&&_0x380983(_0x3229d1,{'type':_0x29ce0c(0x2a0),'variant':'default','onClick':_0x3d2cb5,'children':_0x4229cf['t'](_0x29ce0c(0x34d))}),_0x380983(_0x3229d1,{'type':_0x29ce0c(0x2a0),'variant':'primary','disabled':_0x41f83==='referenced'&&!_0x32a5ac,'onClick':()=>{const _0x60cb79=_0x29ce0c;var _0x5bad9a;let _0x341da1=_0x15ea53({'optionId':_0x33f906,'values':_0x41f83===_0x60cb79(0x25c)?_0x4127e4:_0x7f9353});if(!_0x341da1['ok']){_0x4afb33(_0x45cad9[_0x341da1[_0x60cb79(0x394)]['code']]);return;}let _0x1b6632=_0x41f83===_0x60cb79(0x25c)&&_0x32a5ac?{..._0x2e28cd,'dataSource':_0x32a5ac}:_0x2e28cd,_0xce8efd=_0x341da1['plan']['style']?{..._0x1b6632,'style':{..._0x1b6632==null?void 0x0:_0x1b6632[_0x60cb79(0x39a)],'pie':{..._0x1b6632==null||(_0x5bad9a=_0x1b6632[_0x60cb79(0x39a)])==null?void 0x0:_0x5bad9a['pie'],..._0x341da1[_0x60cb79(0x331)][_0x60cb79(0x39a)][_0x60cb79(0x1b8)]}}}:_0x1b6632,_0x336215=_0x1e6389[_0x60cb79(0x3a2)](_0x341da1[_0x60cb79(0x331)][_0x60cb79(0x245)],_0x341da1[_0x60cb79(0x331)][_0x60cb79(0x27d)],_0xce8efd);if(!_0x336215){_0x4afb33(_0x4229cf['t'](_0x60cb79(0x301)));return;}_0x4afb33(null),_0x3c0372==null||_0x3c0372(_0x336215);},'children':_0x4229cf['t'](_0x29ce0c(0x339))})]})]});}const Xr=_0x38896c(0x1e1),Zr={},Qr='__docsChartResource';let q=class extends _0x19361e{constructor(_0x4e1c09,_0x1629be,_0x4d1706){const _0x48c8f8=_0x38896c;super(),this['_docClipboardService']=_0x4e1c09,this[_0x48c8f8(0x373)]=_0x1629be,this[_0x48c8f8(0x36f)]=_0x4d1706,this[_0x48c8f8(0x3b7)]();}[_0x38896c(0x3b7)](){const _0x11f38a=_0x38896c;this[_0x11f38a(0x2aa)](this[_0x11f38a(0x253)][_0x11f38a(0x352)]({'onCopyDocData':(_0x1cd1d2,_0x437977)=>this[_0x11f38a(0x3b0)](_0x1cd1d2,_0x437977[_0x11f38a(0x387)])})),this[_0x11f38a(0x2aa)](this['_pasteAdapterService']['registerAdapter']({'getPasteMutationInfos':_0x3ab6a7=>this[_0x11f38a(0x20d)](_0x3ab6a7)}));}[_0x38896c(0x3b0)](_0x31b265,_0x26c373){const _0x2f9130=_0x38896c;var _0x44ef68;let _0x3d8018=(_0x44ef68=_0x26c373[0x0])==null?void 0x0:_0x44ef68['id'];if(!_0x3d8018)return _0x31b265;let _0x318cb7=Object[_0x2f9130(0x245)](_0x31b265[_0x2f9130(0x247)]??{})[_0x2f9130(0x25a)](_0x15702b=>this['_isDocChartDrawing'](_0x15702b));if(_0x318cb7['length']===0x0)return _0x31b265;let _0x199fba={'version':_0x4da82c,'dataSources':{},'charts':{}};return _0x318cb7[_0x2f9130(0x1c4)](_0x5c3616=>{const _0x1dc63d=_0x2f9130;let _0x533f8a=this[_0x1dc63d(0x36f)][_0x1dc63d(0x371)](_0x3d8018,_0x5c3616[_0x1dc63d(0x2cc)]);if(!_0x533f8a)return;let _0x473314=this[_0x1dc63d(0x36f)]['getDataSource'](_0x3d8018,_0x533f8a[_0x1dc63d(0x3a1)]);_0x473314&&(_0x199fba[_0x1dc63d(0x1d0)][_0x533f8a['id']]=_0xa9ed18[_0x1dc63d(0x3c0)](_0x533f8a),_0x199fba['dataSources'][_0x473314['id']]=_0x473314);}),Object['keys'](_0x199fba[_0x2f9130(0x1d0)])['length']===0x0?_0x31b265:{..._0x31b265,[Qr]:_0x199fba};}[_0x38896c(0x20d)](_0x14d640){const _0x57ea31=_0x38896c;let _0x5d98f8=_0x14d640['doc'][Qr];if(!_0x5d98f8)return{'redoMutations':[],'undoMutations':[]};let _0x20add5=new Map(),_0x1e6831=[],_0x51d5ee=[],_0x10eb0b=[],_0x5dfae4=[];return _0x14d640['customBlockMappings'][_0x57ea31(0x1c4)](_0x595cca=>{const _0x5c5a64=_0x57ea31;if(!this['_isDocChartDrawing'](_0x595cca['sourceDrawing'])||!this[_0x5c5a64(0x2ac)](_0x595cca['targetDrawing']))return;let _0x413152=_0x5d98f8[_0x5c5a64(0x1d0)][_0x595cca[_0x5c5a64(0x26c)][_0x5c5a64(0x2cc)]];if(!_0x413152)return;let _0x47b301=_0x5d98f8[_0x5c5a64(0x2f2)][_0x413152['dataSourceId']];if(!_0x47b301)return;let _0x3b8510=this['_getOrCreatePastedDataSourceId'](_0x14d640[_0x5c5a64(0x377)],_0x47b301,_0x20add5,_0x1e6831,_0x51d5ee),_0x262891=_0x5e8ff1(),_0x9ef57e={..._0x413152,'id':_0x262891,'dataSourceId':_0x3b8510};_0x595cca[_0x5c5a64(0x2bd)][_0x5c5a64(0x2cc)]=_0x262891,_0x10eb0b['push']({'id':_0x97af2b['id'],'params':{'unitId':_0x14d640[_0x5c5a64(0x377)],'chart':_0x9ef57e}}),_0x5dfae4['push']({'id':_0x289f38['id'],'params':{'unitId':_0x14d640[_0x5c5a64(0x377)],'chartId':_0x262891}});}),{'redoMutations':[..._0x1e6831,..._0x10eb0b],'undoMutations':[..._0x5dfae4,..._0x51d5ee]};}[_0x38896c(0x33c)](_0x484440,_0xc253ae,_0x31fbaa,_0x3d5281,_0x3ddee7){const _0x265978=_0x38896c;let _0x5bb387=_0x31fbaa[_0x265978(0x384)](_0xc253ae['id']);if(_0x5bb387)return _0x5bb387;let _0x3fa67c=_0x5e8ff1();return _0x31fbaa[_0x265978(0x2e7)](_0xc253ae['id'],_0x3fa67c),_0x3d5281['push']({'id':_0x2d0961['id'],'params':{'unitId':_0x484440,'dataSource':{..._0xc253ae,'id':_0x3fa67c}}}),_0x3ddee7[_0x265978(0x1b9)]({'id':_0x332768['id'],'params':{'unitId':_0x484440,'dataSourceId':_0x3fa67c}}),_0x3fa67c;}[_0x38896c(0x2ac)](_0x224415){const _0x59b66e=_0x38896c;let _0x522b90=_0x224415;return(_0x522b90==null?void 0x0:_0x522b90[_0x59b66e(0x244)])===_0x3a259f[_0x59b66e(0x341)]&&typeof _0x522b90[_0x59b66e(0x2cc)]==_0x59b66e(0x1f5);}};function _0x1625(_0x1e99f1,_0x3d1f83){_0x1e99f1=_0x1e99f1-0x1a3;const _0x539840=_0x5398();let _0x1625b0=_0x539840[_0x1e99f1];return _0x1625b0;}q=B([z(0x0,_0x34b794(_0x22a1c4)),z(0x1,_0x34b794(_0x3250d7)),z(0x2,_0x34b794(_0x46b3fa))],q);let J=class extends _0x19361e{constructor(_0x5c2c6a,_0x4b8db5,_0xf1a50a,_0x3923d5){const _0x3377f6=_0x38896c;super(),this[_0x3377f6(0x378)]=_0x5c2c6a,this[_0x3377f6(0x391)]=_0x4b8db5,this[_0x3377f6(0x36f)]=_0xf1a50a,this[_0x3377f6(0x20f)]=_0x3923d5,this['_initAdapter']();}[_0x38896c(0x29b)](){const _0x2bca10=_0x38896c;this[_0x2bca10(0x2aa)](this[_0x2bca10(0x378)]['registerAdapter']({'getEditDrawingCommandInfo':({unitId:_0x25b341,drawing:_0x3807dd})=>{const _0x536164=_0x2bca10;let _0x56b4fe=$r(_0x3807dd);return _0x56b4fe?{'label':this['_localeService']['t'](_0x536164(0x3d2)),'commandId':R['id'],'commandParams':{'unitId':_0x25b341,'chartId':_0x56b4fe['chartId'],'drawingId':_0x56b4fe['drawingId']}}:null;}})),this[_0x2bca10(0x2aa)](this[_0x2bca10(0x391)][_0x2bca10(0x1e4)]({'getItems':({unitId:_0x41a4d9,subUnitId:_0x513a29,drawing:_0x3647a4})=>{const _0x14419d=_0x2bca10;var _0x4ee3c7;let _0x2baa0b=$r(_0x3647a4);if(!_0x2baa0b)return null;let _0x424130=this[_0x14419d(0x36f)][_0x14419d(0x371)](_0x41a4d9,_0x2baa0b[_0x14419d(0x2cc)]),_0x30112a=(_0x424130==null?void 0x0:_0x424130[_0x14419d(0x27d)])??_0x138983[_0x14419d(0x360)],_0x1a92ac=_0x81eacf[_0x14419d(0x1c1)](_0x3f0aed=>({'value':'id'in _0x3f0aed?_0x3f0aed['id']:String(_0x3f0aed[_0x14419d(0x353)]),'chartType':_0x3f0aed['value'],..._0x14419d(0x3d3)in _0x3f0aed?{'pieSecondaryPlotType':_0x3f0aed[_0x14419d(0x3d3)]}:{},'icon':_0x3f0aed['iconName'],'label':this[_0x14419d(0x20f)]['t'](_0x14419d(0x3b2)+_0x3f0aed[_0x14419d(0x1bf)])})),_0x215f38=_0x6a9d65(_0x30112a,_0x424130==null||(_0x4ee3c7=_0x424130[_0x14419d(0x39a)])==null?void 0x0:_0x4ee3c7[_0x14419d(0x1b8)],_0x1a92ac);return[{'type':_0x14419d(0x282),'label':this['_localeService']['t'](_0x14419d(0x28c)),'index':0x0,'commandId':_0x446130['id'],'commandParamsFactory':_0x1b4c5e=>{const _0x1b5eab=_0x14419d;var _0x5145b9,_0x402516;let _0x8f16f8=_0x1a92ac['find'](_0x31874f=>_0x31874f[_0x1b5eab(0x353)]===_0x1b4c5e),_0x250d60=(_0x8f16f8==null?void 0x0:_0x8f16f8[_0x1b5eab(0x27d)])??Number(_0x1b4c5e),_0x3ea789=_0x424130==null||(_0x5145b9=_0x424130[_0x1b5eab(0x39a)])==null||(_0x5145b9=_0x5145b9[_0x1b5eab(0x1b8)])==null?void 0x0:_0x5145b9[_0x1b5eab(0x21c)],_0x210f6b=(_0x250d60===_0x138983[_0x1b5eab(0x343)]||_0x250d60===_0x138983[_0x1b5eab(0x39e)])&&typeof(_0x424130==null||(_0x402516=_0x424130[_0x1b5eab(0x39a)])==null||(_0x402516=_0x402516[_0x1b5eab(0x1b8)])==null?void 0x0:_0x402516[_0x1b5eab(0x317)])==_0x1b5eab(0x386),_0x334e12=_0x210f6b?{'doughnutHole':null}:{},_0x13a560={'unitId':_0x41a4d9,'chartId':_0x2baa0b[_0x1b5eab(0x2cc)],'chartType':_0x250d60};if(_0x8f16f8!=null&&_0x8f16f8['pieSecondaryPlotType']){var _0xe4399c;return{..._0x13a560,'style':{..._0x424130==null?void 0x0:_0x424130['style'],'pie':{..._0x424130==null||(_0xe4399c=_0x424130['style'])==null?void 0x0:_0xe4399c[_0x1b5eab(0x1b8)],..._0x334e12,'composite':{..._0x3ea789,'enabled':!0x0,'secondaryPlot':{..._0x3ea789==null?void 0x0:_0x3ea789['secondaryPlot'],'type':_0x8f16f8[_0x1b5eab(0x3d3)]}}}}};}if(_0x250d60===_0x138983[_0x1b5eab(0x343)]&&_0x3ea789){var _0x5e044d;return{..._0x13a560,'style':{..._0x424130==null?void 0x0:_0x424130[_0x1b5eab(0x39a)],'pie':{..._0x424130==null||(_0x5e044d=_0x424130[_0x1b5eab(0x39a)])==null?void 0x0:_0x5e044d[_0x1b5eab(0x1b8)],..._0x334e12,'composite':{..._0x3ea789,'enabled':!0x1}}}};}return _0x210f6b?{..._0x13a560,'style':{'pie':_0x334e12}}:_0x13a560;},'disable':!_0x424130,'value':_0x215f38,'options':_0x1a92ac},{'type':_0x14419d(0x2a0),'label':this['_localeService']['t'](_0x14419d(0x3d2)),'index':0x1,'commandId':R['id'],'commandParams':{'unitId':_0x41a4d9,'chartId':_0x2baa0b[_0x14419d(0x2cc)],'drawingId':_0x2baa0b[_0x14419d(0x273)]},'disable':!0x1,'hideOnClick':!0x0,'icon':_0x14419d(0x340)},{'type':_0x14419d(0x2a0),'label':this[_0x14419d(0x20f)]['t'](_0x14419d(0x3c1)),'index':0x2,'commandId':_0x1ec0d6['id'],'commandParams':{'unitId':_0x41a4d9,'drawings':[{'unitId':_0x41a4d9,'subUnitId':_0x513a29,'drawingId':_0x2baa0b['drawingId']}]},'disable':!0x1,'icon':'DrawingDeleteIcon'}];}}));}};J=B([z(0x0,_0x4039eb),z(0x1,_0x34b794(_0x580396)),z(0x2,_0x34b794(_0x46b3fa)),z(0x3,_0x34b794(_0x490885))],J);function $r(_0x3a38fd){const _0x247d78=_0x38896c;let _0x7a15b0=_0x3a38fd;return(_0x7a15b0==null?void 0x0:_0x7a15b0['drawingType'])===_0x3a259f[_0x247d78(0x341)]&&typeof _0x7a15b0['chartId']==_0x247d78(0x1f5)?_0x7a15b0:null;}const ei=_0x39279e('doc-chart.snapshot-renderer');var ti=class{constructor(_0x1a906d,_0x33ea69){const _0x50a725=_0x38896c;this[_0x50a725(0x3be)]=_0x1a906d,this[_0x50a725(0x1a5)]=_0x33ea69;}async['render'](_0x5ed653,_0x1a4a8f){const _0x387022=_0x38896c;if(typeof document>'u')throw TypeError(_0x387022(0x2e3));let {chartConfig:_0x55eec0,chartStyle:_0x427644}=this[_0x387022(0x3be)][_0x387022(0x357)](_0x1a4a8f);if(_0x5ed653[_0x387022(0x30b)]===_0xe808a4[_0x387022(0x1e2)])return(await this['_renderModelManager'][_0x387022(0x2b7)]({'chartId':_0x1a4a8f[_0x387022(0x2cc)],'config':_0x55eec0,'style':_0x427644,'width':_0x5ed653[_0x387022(0x246)],'height':_0x5ed653[_0x387022(0x3bb)]},{'format':_0x5ed653['format']}))[_0x387022(0x1aa)];let _0x53986c=new _0x3d82fd(_0x1a4a8f['chartId'],{'width':_0x5ed653[_0x387022(0x246)],'height':_0x5ed653[_0x387022(0x3bb)]}),_0x3e3c1f=this[_0x387022(0x3be)][_0x387022(0x374)](_0x40e3e9[_0x387022(0x1cb)]);try{_0x3e3c1f[_0x387022(0x349)](_0x53986c),await _0x3e3c1f['render']({'chartId':_0x1a4a8f['chartId'],'config':_0x55eec0,'style':_0x427644});let _0x5059ee=_0x53986c[_0x387022(0x2e4)]();if(!_0x5059ee)throw Error(_0x387022(0x323)+_0x1a4a8f[_0x387022(0x377)]+'/'+_0x1a4a8f['chartId']);return _0x5059ee;}finally{_0x3e3c1f[_0x387022(0x3ba)](),_0x53986c[_0x387022(0x3ba)]();}}};let Y=class extends _0x2e398c{constructor(_0x418f73,_0x169441,_0x12a58c,_0x16f9c5,_0x4c2ff5){super(_0x418f73,_0x169441,_0x4c2ff5??new ti(_0x12a58c,_0x16f9c5));}[_0x38896c(0x204)](_0x171054){const _0x161751=_0x38896c;let _0x26b7e0=super[_0x161751(0x204)](_0x171054);return _0x171054[_0x161751(0x30b)]===_0xe808a4['SVG']?_0x26b7e0+'::'+_0x171054[_0x161751(0x30b)]:_0x26b7e0;}};Y=B([z(0x0,_0x34b794(_0x490885)),z(0x1,_0x34b794(_0x3d515f)),z(0x2,_0x34b794(W)),z(0x3,_0x7127e3),z(0x4,_0x1da476(ei))],Y);let ni=class extends _0x19361e{constructor(_0x34c42a,_0x40a4cf,_0x3188d6,_0x502622){const _0x2180a7=_0x38896c;super(),this[_0x2180a7(0x1d8)]=_0x34c42a,this[_0x2180a7(0x3c7)]=_0x40a4cf,this[_0x2180a7(0x36f)]=_0x3188d6,this[_0x2180a7(0x2ec)]=_0x502622,this['_listenChartResourceMutations']();}[_0x38896c(0x2ff)](){const _0x460045=_0x38896c;this[_0x460045(0x2aa)](this[_0x460045(0x1d8)]['onCommandExecuted'](_0x322d52=>{const _0x262c50=_0x460045;if(_0x322d52['id']===_0x97af2b['id']){var _0x113db3;let _0x24ad81=_0x322d52[_0x262c50(0x302)];_0x24ad81!=null&&_0x24ad81[_0x262c50(0x377)]&&(_0x113db3=_0x24ad81['chart'])!=null&&_0x113db3['id']&&(this[_0x262c50(0x380)](_0x24ad81)?this[_0x262c50(0x3c7)][_0x262c50(0x3d4)](_0x24ad81[_0x262c50(0x377)],_0x24ad81['chart']['id'],{'waitForConfig':!0x0}):this[_0x262c50(0x3c7)][_0x262c50(0x3d4)](_0x24ad81[_0x262c50(0x377)],_0x24ad81[_0x262c50(0x265)]['id']));return;}if(_0x322d52['id']===_0x2d0961['id']){var _0x17f5ec;let _0x3b2f6d=_0x322d52['params'];if(!(_0x3b2f6d!=null&&_0x3b2f6d[_0x262c50(0x377)])||!((_0x17f5ec=_0x3b2f6d[_0x262c50(0x345)])!=null&&_0x17f5ec['id']))return;this[_0x262c50(0x36f)][_0x262c50(0x1b5)](_0x3b2f6d[_0x262c50(0x377)],_0x3b2f6d[_0x262c50(0x345)]['id'])['forEach'](_0x52645c=>this[_0x262c50(0x3c7)][_0x262c50(0x3d4)](_0x3b2f6d[_0x262c50(0x377)],_0x52645c,{'waitForConfig':!0x0}));}}));}['_shouldWaitForChartConfig'](_0x58e48c){const _0x216d77=_0x38896c;var _0x2607ba;let _0x4745e2=(_0x2607ba=this[_0x216d77(0x2ec)][_0x216d77(0x318)](_0x58e48c[_0x216d77(0x377)],_0x58e48c[_0x216d77(0x265)]['id']))==null||(_0x2607ba=_0x2607ba[_0x216d77(0x209)]['config'])==null?void 0x0:_0x2607ba[_0x216d77(0x3c4)];return _0x4745e2!=null&&_0x4745e2!==_0x58e48c[_0x216d77(0x265)][_0x216d77(0x27d)];}};ni=B([z(0x0,_0xf83699),z(0x1,_0x34b794(Y)),z(0x2,_0x34b794(_0x46b3fa)),z(0x3,_0x34b794(_0x3d515f))],ni);const X=L['id'],ri=X+_0x38896c(0x379);function ii(_0x308316){const _0x1ea023=_0x38896c;return _0x32173d([_0x3349e0(_0x308316),ai(_0x308316)])[_0x1ea023(0x33b)](_0x9a223d(([_0x3ff6ac,_0x2190d6])=>_0x3ff6ac||_0x2190d6));}function ai(_0x236ff4){const _0x270d6d=_0x38896c;let _0x5267fc=_0x236ff4[_0x270d6d(0x384)](_0x5b353b),_0x5e0fea=_0x236ff4[_0x270d6d(0x384)](_0x5a8e80);return new _0x260327(_0x403a76=>{const _0xbc67d9=_0x270d6d;let _0x14d72c=_0x1070fd=>{const _0xf3177f=_0x1625;let _0x207d03=_0x5e0fea[_0xf3177f(0x2a5)](_0x3c76ab[_0xf3177f(0x208)]);if(!_0x207d03){_0x403a76[_0xf3177f(0x2c7)](!0x0);return;}let _0x5c8789=(_0x1070fd==null?void 0x0:_0x1070fd[_0xf3177f(0x381)])??[..._0x5267fc[_0xf3177f(0x2fd)]()??[]];if(_0x5c8789[_0xf3177f(0x3d1)]!==0x1){_0x403a76['next'](!0x0);return;}let _0x134a5c=_0x5267fc[_0xf3177f(0x299)]()??_0x5c8789[0x0];if(!_0x134a5c||!_0x134a5c['collapsed']||_0x134a5c[_0xf3177f(0x382)]==null){_0x403a76[_0xf3177f(0x2c7)](!0x0);return;}let _0x3e1866=G(_0x207d03,{..._0x134a5c,'segmentId':_0x134a5c['segmentId']??(_0x1070fd==null?void 0x0:_0x1070fd[_0xf3177f(0x2d4)])??''});_0x403a76[_0xf3177f(0x2c7)](_0x3e1866==null);};_0x14d72c();let _0x24f2b6=_0x5267fc['textSelection$'][_0xbc67d9(0x215)](_0x2f37a1=>_0x14d72c(_0x2f37a1));return()=>_0x24f2b6['unsubscribe']();});}function oi(_0x204c61){return Z(_0x204c61);}function Z(_0x5277ad){const _0x41eb00=_0x38896c;let _0x1d6269=_0x5277ad[_0x41eb00(0x384)](_0x490885)['t']('docs-chart-ui.common.insertChart');return{'id':X,'commandId':L['id'],'type':_0x5c06b5['BUTTON'],'icon':_0x41eb00(0x3d7),'title':_0x1d6269,'tooltip':_0x1d6269,'disabled$':ii(_0x5277ad),'hidden$':_0x2951e9(_0x5277ad,_0x3c76ab['UNIVER_DOC'])};}function si(_0x2837b6){const _0x1885ce=_0x38896c;let _0x216e19=_0x2837b6[_0x1885ce(0x384)](_0x490885)['t'](_0x1885ce(0x1d9));return{'id':ri,'commandId':L['id'],'type':_0x5c06b5['BUTTON'],'icon':'ChartIcon','title':_0x216e19,'tooltip':_0x216e19,'disabled$':ii(_0x2837b6),'hidden$':_0x2951e9(_0x2837b6,_0x3c76ab[_0x1885ce(0x208)])};}const ci={[_0x44053b['MEDIA']]:{[X]:{'order':2.5,'menuItemFactory':oi}},[_0x894633['PARAGRAPH']]:{[_0x4c70ef[_0x38896c(0x34b)]]:{[_0x433eda]:{[X]:{'order':4.5,'menuItemFactory':Z}}},[_0x314331]:{[_0x4c70ef[_0x38896c(0x34b)]]:{[X]:{'order':5.5,'menuItemFactory':Z}}},[_0x183763]:{[_0x4c70ef[_0x38896c(0x34b)]]:{[X]:{'order':4.5,'menuItemFactory':Z}}},[_0x392bda]:{'insert':{[X]:{'order':1.5,'menuItemFactory':Z}}},[_0x132e02]:{'insert':{[ri]:{'order':1.5,'menuItemFactory':si}}}}};var li=_0x38896c(0x1af),ui='1.0.0-beta.2',di=class extends _0x2f0273{constructor(..._0x36317d){const _0x5d297e=_0x38896c;super(..._0x36317d),U(this,_0x5d297e(0x23a),!0x1);}get[_0x38896c(0x2f7)](){const _0x5938f2=_0x38896c;return this[_0x5938f2(0x23a)];}[_0x38896c(0x25e)](_0x1bb559){const _0xb94098=_0x38896c;this[_0xb94098(0x23a)]!==_0x1bb559&&(this[_0xb94098(0x23a)]=_0x1bb559,this[_0xb94098(0x1dd)](!0x0));}[_0x38896c(0x2e9)](_0x53b6e0,_0x223509,_0x4c37ab,_0x44de7a){const _0x1bf77f=_0x38896c;this[_0x1bf77f(0x23a)]||super[_0x1bf77f(0x2e9)](_0x53b6e0,_0x223509,_0x4c37ab,_0x44de7a);}};const fi={..._0x16f5a6,'rotateEnabled':!0x1,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1};let pi=class extends _0x19361e{constructor(_0x23d5c7,_0x45468f,_0x206197){const _0x54ce69=_0x38896c;super(),this[_0x54ce69(0x203)]=_0x23d5c7,this[_0x54ce69(0x1ee)]=_0x45468f,this[_0x54ce69(0x34c)]=_0x206197,U(this,_0x54ce69(0x39c),new Set()),this['_init']();}['setActiveDomReady'](_0x6b20b,_0x39da30){const _0x4e14f2=_0x38896c;let _0x19754e=_0x508190(_0x6b20b);_0x39da30?this[_0x4e14f2(0x39c)]['add'](_0x19754e):this[_0x4e14f2(0x39c)][_0x4e14f2(0x295)](_0x19754e),this[_0x4e14f2(0x3c9)](_0x6b20b);}[_0x38896c(0x38f)](){const _0x34b324=_0x38896c;this[_0x34b324(0x2aa)](this['_drawingManagerService'][_0x34b324(0x248)][_0x34b324(0x215)](_0x56c9e2=>{const _0x414d5c=_0x34b324;this[_0x414d5c(0x383)](_0x56c9e2);})),this[_0x34b324(0x2aa)](this[_0x34b324(0x203)]['refreshTransform$']['subscribe'](_0x22e279=>{const _0x3523b3=_0x34b324;this[_0x3523b3(0x383)](_0x22e279);})),this['disposeWithMe'](this[_0x34b324(0x203)][_0x34b324(0x1b0)][_0x34b324(0x215)](_0x3d1e25=>{const _0x3e5b5f=_0x34b324;this[_0x3e5b5f(0x1e0)](_0x3d1e25);})),this['disposeWithMe'](this[_0x34b324(0x34c)][_0x34b324(0x2f6)]['subscribe'](({unitId:_0x183ae0,chartId:_0x3cc4b3})=>{this['_requestSnapshotsForUnit'](_0x183ae0,_0x3cc4b3);})),this[_0x34b324(0x2aa)](this[_0x34b324(0x34c)][_0x34b324(0x37e)][_0x34b324(0x215)](_0x4623b8=>{const _0x53fd43=_0x34b324;if(_0x4623b8[_0x53fd43(0x2d6)]!==_0x53fd43(0x3cf)||!_0x4623b8[_0x53fd43(0x1aa)])return;let [_0x2ec981,_0x830b14]=_0x4623b8[_0x53fd43(0x376)][_0x53fd43(0x25d)]('::');!_0x2ec981||!_0x830b14||this[_0x53fd43(0x23e)](_0x2ec981,_0x830b14,_0x4623b8[_0x53fd43(0x1aa)]);}));}['_requestSnapshotsForSearches'](_0x12a4ac){_0x12a4ac['forEach'](_0x550807=>{const _0x11e701=_0x1625;let _0x2c3158=this[_0x11e701(0x2eb)](_0x550807);_0x2c3158&&this[_0x11e701(0x264)](_0x2c3158);});}[_0x38896c(0x3af)](_0x293fbc,_0xc7ae01){const _0xf648c6=_0x38896c;this[_0xf648c6(0x300)](_0x293fbc,_0x5d05b6=>{const _0x5e03fb=_0xf648c6;(_0xc7ae01==null||_0x5d05b6[_0x5e03fb(0x2cc)]===_0xc7ae01)&&this['_requestSnapshot'](_0x5d05b6);});}[_0x38896c(0x264)](_0xd7b014){const _0x2b685f=_0x38896c;let _0x130707=this[_0x2b685f(0x1f2)](_0xd7b014);if(!_0x130707)return;let _0x20a7b7=this['_snapshotRenderService'][_0x2b685f(0x35a)]({'unitId':_0xd7b014[_0x2b685f(0x377)],'chartId':_0xd7b014['chartId'],'width':_0x130707[_0x2b685f(0x246)],'height':_0x130707[_0x2b685f(0x3bb)],'dpr':_0x32fdbf,'mode':_0x2b685f(0x1f1)});_0x20a7b7[_0x2b685f(0x2d6)]==='ready'&&_0x20a7b7[_0x2b685f(0x1aa)]&&this[_0x2b685f(0x2c1)](_0xd7b014,_0x20a7b7['dataUrl']);}['_renderCharts'](_0x353ee8,_0xfc9bc8,_0x560b10){const _0x3efb51=_0x38896c;this[_0x3efb51(0x300)](_0x353ee8,_0xb9c2e0=>{_0xb9c2e0['chartId']===_0xfc9bc8&&this['_renderDrawing'](_0xb9c2e0,_0x560b10);});}[_0x38896c(0x2c1)](_0x163020,_0x273fe3){const _0x4942d3=_0x38896c;let _0x155b48=this['_renderManagerService'][_0x4942d3(0x2e8)](_0x163020[_0x4942d3(0x377)]),_0x5ef630=_0x155b48==null?void 0x0:_0x155b48[_0x4942d3(0x210)];if(!_0x5ef630||!this['_getDrawingRect'](_0x163020))return;let _0x303595=_0x508190(_0x163020),_0x140a52=_0x5ef630[_0x4942d3(0x221)](_0x303595);if(_0x140a52!=null&&_0x140a52[_0x4942d3(0x2b8)]){var _0x23719f,_0x4cb7ef,_0x136ce6,_0x39e865;_0x140a52[_0x4942d3(0x1f8)]={..._0x140a52[_0x4942d3(0x1f8)],...fi},_0x140a52['changeSource'](_0x273fe3),(_0x23719f=_0x140a52[_0x4942d3(0x324)])==null||_0x23719f[_0x4942d3(0x1cf)](_0x140a52,_0x163020['transform']),(_0x4cb7ef=_0x140a52[_0x4942d3(0x227)])==null||_0x4cb7ef['call'](_0x140a52,(_0x136ce6=_0x163020[_0x4942d3(0x283)])==null?void 0x0:_0x136ce6[_0x4942d3(0x254)]),this[_0x4942d3(0x2a2)](_0x140a52,_0x163020,_0x303595),(_0x39e865=_0x140a52['makeDirty'])==null||_0x39e865['call'](_0x140a52,!0x0);return;}this[_0x4942d3(0x2c2)](_0x163020,_0x273fe3,_0x5ef630,_0x303595);}[_0x38896c(0x2c2)](_0x2f08db,_0x12357a,_0x23081b,_0x27fc1f){const _0x1d0e2b=_0x38896c;let _0x31501b=_0x2f08db['transform'];if(!_0x31501b)return;let _0x5ddd3e=this[_0x1d0e2b(0x203)][_0x1d0e2b(0x1df)](_0x2f08db[_0x1d0e2b(0x377)],_0x2f08db[_0x1d0e2b(0x27e)]),_0x1cb511=_0x5ddd3e[_0x1d0e2b(0x399)](_0x2f08db[_0x1d0e2b(0x273)]),_0x13522d={..._0x31501b,'zIndex':_0x1cb511===-0x1?_0x5ddd3e[_0x1d0e2b(0x3d1)]-0x1:_0x1cb511,'clipBounds':_0x31501b[_0x1d0e2b(0x254)],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':fi,'url':_0x12357a};_0x2f08db[_0x1d0e2b(0x3ca)]&&(_0x13522d[_0x1d0e2b(0x3a3)]=!0x1);let _0x360637=new di(_0x27fc1f,_0x13522d);_0x360637[_0x1d0e2b(0x25e)](this[_0x1d0e2b(0x39c)][_0x1d0e2b(0x2f4)](_0x27fc1f)),_0x23081b[_0x1d0e2b(0x39f)](_0x360637,_0x8fa582),this[_0x1d0e2b(0x203)]['getDrawingEditable']()&&_0x23081b[_0x1d0e2b(0x1c9)](_0x360637);}[_0x38896c(0x1e0)](_0x24006e){const _0x916171=_0x38896c;_0x24006e[_0x916171(0x1c4)](_0x3b3d6a=>{const _0x568595=_0x916171;this[_0x568595(0x39c)][_0x568595(0x295)](_0x508190(_0x3b3d6a));let _0x5cd2b7=this[_0x568595(0x1ee)][_0x568595(0x2e8)](_0x3b3d6a[_0x568595(0x377)]),_0xa82950=_0x5cd2b7==null?void 0x0:_0x5cd2b7[_0x568595(0x210)];if(!_0xa82950)return;let _0x2402b1=_0xa82950[_0x568595(0x221)](_0x508190(_0x3b3d6a));_0x2402b1&&_0xa82950['removeObject'](_0x2402b1);});}[_0x38896c(0x3c9)](_0x431953){const _0x57dade=_0x38896c;let _0x3d4aaa=this['_renderManagerService'][_0x57dade(0x2e8)](_0x431953['unitId']),_0x28c29c=_0x3d4aaa==null?void 0x0:_0x3d4aaa[_0x57dade(0x210)];if(!_0x28c29c)return;let _0x594707=_0x508190(_0x431953),_0x13f933=_0x28c29c[_0x57dade(0x221)](_0x594707);if(!_0x13f933)return;let _0x58d857=this[_0x57dade(0x203)]['getDrawingByParam'](_0x431953);this[_0x57dade(0x2a2)](_0x13f933,_0x58d857,_0x594707);}['_syncChartImageVisibility'](_0x4c43bb,_0x154637,_0x3b57e4){const _0x36bb3b=_0x38896c;var _0x4a997,_0x25066e;let _0xf11da7=this[_0x36bb3b(0x39c)]['has'](_0x3b57e4);if(_0x4c43bb[_0x36bb3b(0x25e)]){var _0x3ccbbb,_0x446448;_0x4c43bb[_0x36bb3b(0x25e)](_0xf11da7),(_0x154637==null?void 0x0:_0x154637['hidden'])===!0x0?(_0x3ccbbb=_0x4c43bb[_0x36bb3b(0x2d3)])==null||_0x3ccbbb[_0x36bb3b(0x1cf)](_0x4c43bb):(_0x446448=_0x4c43bb[_0x36bb3b(0x3ac)])==null||_0x446448['call'](_0x4c43bb);return;}(_0x154637==null?void 0x0:_0x154637[_0x36bb3b(0x3ca)])===!0x0?(_0x4a997=_0x4c43bb[_0x36bb3b(0x2d3)])==null||_0x4a997[_0x36bb3b(0x1cf)](_0x4c43bb):(_0x25066e=_0x4c43bb[_0x36bb3b(0x3ac)])==null||_0x25066e[_0x36bb3b(0x1cf)](_0x4c43bb);}[_0x38896c(0x2eb)](_0x445872){const _0x36a299=_0x38896c;let _0x16175e=this[_0x36a299(0x203)][_0x36a299(0x3cc)](_0x445872);return mi(_0x16175e)?_0x16175e:null;}[_0x38896c(0x300)](_0x287a43,_0x4affcd){const _0x133647=_0x38896c;let _0x46369c=this[_0x133647(0x203)]['getDrawingDataForUnit'](_0x287a43),_0x3728e6=_0x46369c==null?void 0x0:_0x46369c[_0x287a43];_0x3728e6&&_0x3728e6[_0x133647(0x35f)][_0x133647(0x1c4)](_0x72f647=>{const _0xa50d38=_0x133647;let _0xbc9fb0=_0x3728e6[_0xa50d38(0x313)][_0x72f647];mi(_0xbc9fb0)&&_0x4affcd(_0xbc9fb0);});}['_getDrawingRect'](_0xcead58){const _0x10f683=_0x38896c;var _0x228c97,_0x5903ce,_0x214684,_0x33e79b;let _0x5dc241=((_0x228c97=_0xcead58[_0x10f683(0x283)])==null?void 0x0:_0x228c97[_0x10f683(0x246)])??((_0x5903ce=_0xcead58[_0x10f683(0x1ac)])==null||(_0x5903ce=_0x5903ce[_0x10f683(0x338)])==null?void 0x0:_0x5903ce['width'])??0x0,_0x503cc9=((_0x214684=_0xcead58[_0x10f683(0x283)])==null?void 0x0:_0x214684[_0x10f683(0x3bb)])??((_0x33e79b=_0xcead58['docTransform'])==null||(_0x33e79b=_0x33e79b[_0x10f683(0x338)])==null?void 0x0:_0x33e79b['height'])??0x0;return _0x5dc241<=0x0||_0x503cc9<=0x0?null:{'width':Math[_0x10f683(0x1e8)](0x1,Math[_0x10f683(0x1e6)](_0x5dc241)),'height':Math[_0x10f683(0x1e8)](0x1,Math[_0x10f683(0x1e6)](_0x503cc9))};}};pi=B([z(0x0,_0x3a5809),z(0x1,_0x59b9c8),z(0x2,_0x34b794(Y))],pi);function mi(_0x2a3982){const _0x9a8ce5=_0x38896c;let _0x436e29=_0x2a3982;return(_0x436e29==null?void 0x0:_0x436e29[_0x9a8ce5(0x244)])===_0x3a259f[_0x9a8ce5(0x341)]&&typeof _0x436e29[_0x9a8ce5(0x2cc)]==_0x9a8ce5(0x1f5);}function hi(_0x5e8456,_0x43f852,_0x4b2163=0x1,_0x124aa5=0x0){const _0x49c7bd=_0x38896c;let {top:_0x2e3e02,left:_0x4a22d8,bottom:_0x22e3d4,right:_0x595a11}=_0x5e8456,_0x1ac433=_0x595a11-_0x4a22d8,_0x5965b8=_0x22e3d4-_0x2e3e02,{viewportScrollX:_0x31b284,viewportScrollY:_0xe9067b}=_0x43f852['getViewport'](_0x5c639e[_0x49c7bd(0x291)]),{scaleX:_0x56621e,scaleY:_0x2d6431}=_0x43f852[_0x49c7bd(0x1e3)](),_0x320eb4=(_0x4a22d8-_0x31b284)*_0x56621e,_0x4934ff=(_0x2e3e02-_0xe9067b)*_0x2d6431,_0x5c033d=_0x1ac433*_0x56621e,_0x1d9131=_0x5965b8*_0x2d6431;return{'startX':_0x320eb4,'startY':_0x4934ff,'endX':_0x320eb4+_0x5c033d,'endY':_0x4934ff+_0x1d9131,'width':_0x5c033d,'height':_0x1d9131,'rotate':_0x124aa5,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x4b2163};}function gi(_0x5359e4,_0x30296c){const _0xcd03cd=_0x38896c;return _0x5359e4['unitId']===_0x30296c[_0xcd03cd(0x377)]&&(_0x5359e4['subUnitId']??_0x5359e4[_0xcd03cd(0x377)])===(_0x30296c[_0xcd03cd(0x27e)]??_0x30296c[_0xcd03cd(0x377)])&&_0x5359e4[_0xcd03cd(0x273)]===_0x30296c['drawingId'];}function _i(_0x1a9e8b,_0x57248c=0x0){const _0x2a5a47=_0x38896c;return _0x1a9e8b[_0x2a5a47(0x389)](_0x3740a5=>typeof _0x3740a5==_0x2a5a47(0x386)&&Number[_0x2a5a47(0x2d7)](_0x3740a5))??_0x57248c;}function vi(_0x2e11a6,_0x2efc0a){const _0x1be970=_0x38896c;var _0x4804e3,_0x28bb3d,_0x34953d,_0x1b7f08,_0x2a946a,_0x3a0151,_0x4a02b3;let _0x33d07c=_0x2efc0a==null||(_0x4804e3=_0x2efc0a[_0x1be970(0x216)])==null?void 0x0:_0x4804e3[_0x1be970(0x1cf)](_0x2efc0a),_0xd2f1aa=_i([_0x33d07c==null?void 0x0:_0x33d07c[_0x1be970(0x246)],(_0x28bb3d=_0x2e11a6['transform'])==null?void 0x0:_0x28bb3d[_0x1be970(0x246)],(_0x34953d=_0x2e11a6['docTransform'])==null||(_0x34953d=_0x34953d['size'])==null?void 0x0:_0x34953d[_0x1be970(0x246)]]),_0x4f780e=_i([_0x33d07c==null?void 0x0:_0x33d07c['height'],(_0x1b7f08=_0x2e11a6[_0x1be970(0x283)])==null?void 0x0:_0x1b7f08[_0x1be970(0x3bb)],(_0x2a946a=_0x2e11a6[_0x1be970(0x1ac)])==null||(_0x2a946a=_0x2a946a[_0x1be970(0x338)])==null?void 0x0:_0x2a946a[_0x1be970(0x3bb)]]),_0x1638e6=_i([_0x33d07c==null?void 0x0:_0x33d07c[_0x1be970(0x312)],(_0x3a0151=_0x2e11a6[_0x1be970(0x283)])==null?void 0x0:_0x3a0151[_0x1be970(0x312)]]),_0xbe55bb=_i([_0x33d07c==null?void 0x0:_0x33d07c['top'],(_0x4a02b3=_0x2e11a6[_0x1be970(0x283)])==null?void 0x0:_0x4a02b3[_0x1be970(0x297)]]);return{'left':_0x1638e6,'top':_0xbe55bb,'right':_0x1638e6+_0xd2f1aa,'bottom':_0xbe55bb+_0x4f780e};}function yi(_0x270b4a,_0x56f10a){const _0x3e53c3=_0x38896c;if(!_0x270b4a||typeof _0x270b4a!=_0x3e53c3(0x1f4))return;let _0x38516f=_0x270b4a;if(typeof _0x38516f[_0x3e53c3(0x226)]==_0x3e53c3(0x289)){let _0x220b30=_0x38516f[_0x3e53c3(0x226)](_0x56f10a);return _0x5e5b49(()=>{const _0x41bc3a=_0x3e53c3;var _0x1941ae;if(typeof _0x220b30[_0x41bc3a(0x3ba)]==_0x41bc3a(0x289)){_0x220b30[_0x41bc3a(0x3ba)]();return;}(_0x1941ae=_0x220b30['unsubscribe'])==null||_0x1941ae[_0x41bc3a(0x1cf)](_0x220b30);});}let _0x1f6ccd=_0x270b4a;if(typeof _0x1f6ccd[_0x3e53c3(0x215)]==_0x3e53c3(0x289)){let _0x3fd139=_0x1f6ccd[_0x3e53c3(0x215)](_0x56f10a);return _0x5e5b49(()=>{const _0x291c77=_0x3e53c3;var _0x5a7d26;return(_0x5a7d26=_0x3fd139['unsubscribe'])==null?void 0x0:_0x5a7d26[_0x291c77(0x1cf)](_0x3fd139);});}}let Q=class extends _0x19361e{constructor(_0x186abb,_0x24b221,_0x2ad5d2,_0x59e4f3,_0x17a357,_0x2979ea,_0x174562,_0x40c28a,_0x342c40,_0x27260a){const _0x4529d6=_0x38896c;super(),this[_0x4529d6(0x203)]=_0x186abb,this['_renderManagerService']=_0x24b221,this[_0x4529d6(0x24e)]=_0x2ad5d2,this['_modelService']=_0x59e4f3,this[_0x4529d6(0x3be)]=_0x17a357,this[_0x4529d6(0x34c)]=_0x2979ea,this[_0x4529d6(0x1d8)]=_0x174562,this['_univerInstanceService']=_0x40c28a,this[_0x4529d6(0x20f)]=_0x342c40,this['_staticRenderController']=_0x27260a,U(this,_0x4529d6(0x32a),null),U(this,_0x4529d6(0x2d1),new _0x30ba86()),U(this,_0x4529d6(0x280),new _0x30ba86()),this['_init']();}[_0x38896c(0x1ae)](_0x151341){const _0x2a2d36=_0x38896c;let _0x3fb147=this[_0x2a2d36(0x2ec)][_0x2a2d36(0x21e)](_0x151341[_0x2a2d36(0x377)],_0x151341['chartId']);if(!_0x3fb147)return _0x5e5b49(()=>{});let _0x597b55=new Dr(_0x151341['chartId'],_0x151341[_0x2a2d36(0x1fc)],(_0x3e1d09,_0x5c7661)=>this[_0x2a2d36(0x3be)][_0x2a2d36(0x2a9)](_0x3e1d09,_0x5c7661),()=>this[_0x2a2d36(0x24b)](_0x151341),!0x0,()=>this['_getActiveRenderScale'](_0x151341)),_0xb0ce81=this['_renderService']['createChartInstance'](_0x40e3e9[_0x2a2d36(0x2ef)]);_0xb0ce81[_0x2a2d36(0x349)](_0x597b55);let _0x1132dc=[_0xb0ce81['on'](_0x2a2d36(0x269),_0x1947c8=>{const _0x521db9=_0x2a2d36;let _0x445325=_0x1db1a4(_0x3fb147[_0x521db9(0x209)],_0x1947c8[_0x521db9(0x37a)]);if(!_0x445325)return;let _0x206232=_0x54cc25(_0x445325[_0x521db9(0x2f1)]);_0x206232&&this[_0x521db9(0x1d8)][_0x521db9(0x3aa)](R['id'],{'unitId':_0x151341[_0x521db9(0x377)],'chartId':_0x151341[_0x521db9(0x2cc)],'drawingId':_0x151341['drawingId'],'route':_0x206232});}),_0xb0ce81['on'](_0x2a2d36(0x364),()=>{const _0x576340=_0x2a2d36;this[_0x576340(0x1d8)][_0x576340(0x3aa)](R['id'],{'unitId':_0x151341[_0x576340(0x377)],'chartId':_0x151341[_0x576340(0x2cc)],'drawingId':_0x151341[_0x576340(0x273)]});})],_0xa65d0d=!0x0;return _0x1132dc[_0x2a2d36(0x1b9)](this[_0x2a2d36(0x3b1)](_0x3fb147,_0xb0ce81,_0x597b55,_0x151341,()=>_0xa65d0d)),_0x5e5b49(()=>{const _0x1aef93=_0x2a2d36;_0xa65d0d=!0x1,this[_0x1aef93(0x335)]['setActiveDomReady'](this[_0x1aef93(0x3a5)](_0x151341),!0x1),_0x1132dc[_0x1aef93(0x1c4)](_0x348fc6=>_0x348fc6[_0x1aef93(0x3ba)]()),_0xb0ce81['dispose'](),_0x597b55[_0x1aef93(0x3ba)]();});}[_0x38896c(0x3ba)](){const _0x3f6c20=_0x38896c;this[_0x3f6c20(0x3bf)](),this[_0x3f6c20(0x2d1)][_0x3f6c20(0x2dd)](),this[_0x3f6c20(0x280)][_0x3f6c20(0x2dd)](),super[_0x3f6c20(0x3ba)]();}[_0x38896c(0x38f)](){const _0x6322f6=_0x38896c;this[_0x6322f6(0x2aa)](this['_drawingManagerService'][_0x6322f6(0x1a8)][_0x6322f6(0x215)](_0x2e19a3=>{const _0x2690d8=_0x6322f6;this[_0x2690d8(0x1ca)](_0x2e19a3);})),this['disposeWithMe'](this['_drawingManagerService'][_0x6322f6(0x1b0)][_0x6322f6(0x215)](_0x1c80b0=>{const _0x21a87b=_0x6322f6;let _0x3afe34=this[_0x21a87b(0x32a)];_0x3afe34&&_0x1c80b0[_0x21a87b(0x311)](_0x1676e7=>gi(_0x1676e7,_0x3afe34))&&this[_0x21a87b(0x3bf)]();})),this[_0x6322f6(0x2aa)](this['_drawingManagerService'][_0x6322f6(0x2cf)][_0x6322f6(0x215)](_0x3ddeb9=>{const _0x4a7973=_0x6322f6;let _0x3605e4=this[_0x4a7973(0x32a)];if(!_0x3605e4){this[_0x4a7973(0x2cd)](_0x3ddeb9);return;}let _0x4923f9=_0x3ddeb9[_0x4a7973(0x389)](_0x264eb6=>gi(_0x264eb6,_0x3605e4));if(_0x4923f9){let _0x3fb6c0=this[_0x4a7973(0x203)]['getDrawingByParam']({'unitId':_0x4923f9[_0x4a7973(0x377)],'subUnitId':_0x4923f9[_0x4a7973(0x27e)],'drawingId':_0x4923f9['drawingId']});this[_0x4a7973(0x2ac)](_0x3fb6c0)&&this[_0x4a7973(0x1e7)](_0x3fb6c0);}})),this['disposeWithMe'](this[_0x6322f6(0x26e)]['getCurrentTypeOfUnit$'](_0x3c76ab[_0x6322f6(0x208)])[_0x6322f6(0x215)](_0x10bc25=>{const _0x11ff4c=_0x6322f6;let _0x629539=this[_0x11ff4c(0x32a)];_0x629539&&(_0x10bc25==null?void 0x0:_0x10bc25[_0x11ff4c(0x36b)]())!==_0x629539[_0x11ff4c(0x377)]&&this[_0x11ff4c(0x3bf)]();}));}['_subscribeRender'](_0x56e8b0,_0x25f41a,_0x4a2225,_0x4114b0,_0x1bfcbe){const _0x13a8b5=_0x38896c;let _0x3fadd2=()=>{const _0x56c400=_0x1625;let {chartConfig:_0x2f2a2c,chartStyle:_0x5a8df4}=this[_0x56c400(0x3be)][_0x56c400(0x357)](_0x56e8b0);Promise[_0x56c400(0x24f)](_0x25f41a[_0x56c400(0x2c0)]({'chartId':_0x56e8b0[_0x56c400(0x2cc)],'config':_0x2f2a2c,'style':_0x5a8df4}))[_0x56c400(0x351)](()=>{const _0x54e9e9=_0x56c400;_0x1bfcbe()&&this['_isActiveLayer'](_0x4114b0)&&this['_staticRenderController'][_0x54e9e9(0x293)](this[_0x54e9e9(0x3a5)](_0x4114b0),!0x0);},()=>{});},_0x5beaf2=_0x32173d([_0x56e8b0['model'][_0x13a8b5(0x30f)],_0x56e8b0['model'][_0x13a8b5(0x292)],this[_0x13a8b5(0x20f)][_0x13a8b5(0x285)]])[_0x13a8b5(0x33b)](_0x328c15(([_0x20f3cf])=>_0x20f3cf!=null))[_0x13a8b5(0x215)](_0x3fadd2),_0x565766=this['_layoutChanged$'][_0x13a8b5(0x33b)](_0x328c15(_0x4f876c=>_0x4f876c===_0x4114b0[_0x13a8b5(0x273)]))[_0x13a8b5(0x215)](_0x3fadd2),_0x1a5c03=this[_0x13a8b5(0x280)][_0x13a8b5(0x33b)](_0x328c15(_0x2d49ec=>_0x2d49ec===_0x4114b0[_0x13a8b5(0x273)]))[_0x13a8b5(0x215)](()=>_0x4a2225[_0x13a8b5(0x22f)]());return _0x5e5b49(()=>{const _0x248646=_0x13a8b5;_0x5beaf2[_0x248646(0x31c)](),_0x565766['unsubscribe'](),_0x1a5c03[_0x248646(0x31c)]();});}[_0x38896c(0x1ca)](_0xb8b79f){const _0x100b77=_0x38896c;let _0x5e3757=(_0xb8b79f??[])[_0x100b77(0x25a)](_0x55f671=>this['_isDocChartDrawing'](_0x55f671));if(_0x5e3757[_0x100b77(0x3d1)]!==0x1){this['_deactivate']();return;}this[_0x100b77(0x355)](_0x5e3757[0x0]);}[_0x38896c(0x355)](_0x44a415){const _0x4ab47a=_0x38896c;var _0x15c779,_0x2405e4,_0x44e4d1;let _0x31f49b=this[_0x4ab47a(0x2a7)](_0x44a415),_0x4d3a00=this['_getRenderRect'](_0x44a415),_0x17de03=_0x44a415[_0x4ab47a(0x27e)]??_0x44a415[_0x4ab47a(0x377)];if(!_0x31f49b||!_0x4d3a00){this['_deactivate']();return;}if(((_0x15c779=this[_0x4ab47a(0x32a)])==null?void 0x0:_0x15c779['unitId'])===_0x44a415[_0x4ab47a(0x377)]&&this[_0x4ab47a(0x32a)][_0x4ab47a(0x27e)]===_0x17de03&&this[_0x4ab47a(0x32a)]['drawingId']===_0x44a415[_0x4ab47a(0x273)]&&this['_activeLayer'][_0x4ab47a(0x2cc)]===_0x44a415[_0x4ab47a(0x2cc)]){let _0x17c7bc=this[_0x4ab47a(0x32a)][_0x4ab47a(0x210)]!==_0x31f49b[_0x4ab47a(0x210)];this[_0x4ab47a(0x32a)]['scene']=_0x31f49b[_0x4ab47a(0x210)],this[_0x4ab47a(0x32a)][_0x4ab47a(0x1c8)]=_0x31f49b[_0x4ab47a(0x1c8)],this[_0x4ab47a(0x32a)][_0x4ab47a(0x2ba)]=_0x31f49b[_0x4ab47a(0x2ba)],this[_0x4ab47a(0x32a)][_0x4ab47a(0x31b)]=_0x4d3a00,this[_0x4ab47a(0x32a)][_0x4ab47a(0x2d5)][_0x4ab47a(0x2c7)](_0x31f49b['position']),_0x17c7bc&&this[_0x4ab47a(0x288)](this[_0x4ab47a(0x32a)]);return;}this[_0x4ab47a(0x3bf)]();let _0x37436a=new _0xf82874(_0x31f49b[_0x4ab47a(0x30d)]),_0x522c86=this['_renderManagerService'][_0x4ab47a(0x2e8)](_0x44a415[_0x4ab47a(0x377)]),_0x4eb1e0=_0x522c86==null||(_0x44e4d1=(_0x2405e4=_0x522c86[_0x4ab47a(0x327)])[_0x4ab47a(0x24d)])==null?void 0x0:_0x44e4d1['call'](_0x2405e4);this[_0x4ab47a(0x24e)]['addFloatDom']({'id':_0x44a415['drawingId'],'componentKey':bi,'position$':_0x37436a,'unitId':_0x44a415[_0x4ab47a(0x377)],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0x44a415[_0x4ab47a(0x2cc)],'subUnitId':_0x17de03},'onPointerDown':_0x233c3b=>_0x4eb1e0==null?void 0x0:_0x4eb1e0['dispatchEvent'](new PointerEvent(_0x233c3b[_0x4ab47a(0x3c4)],_0x233c3b)),'onPointerMove':_0x10de81=>_0x4eb1e0==null?void 0x0:_0x4eb1e0[_0x4ab47a(0x303)](new PointerEvent(_0x10de81['type'],_0x10de81)),'onPointerUp':_0xae7e59=>_0x4eb1e0==null?void 0x0:_0x4eb1e0['dispatchEvent'](new PointerEvent(_0xae7e59[_0x4ab47a(0x3c4)],_0xae7e59)),'onWheel':_0x106b13=>_0x4eb1e0==null?void 0x0:_0x4eb1e0[_0x4ab47a(0x303)](new WheelEvent(_0x106b13[_0x4ab47a(0x3c4)],_0x106b13))}),this['_modelService'][_0x4ab47a(0x2b3)](_0x44a415['unitId'],_0x44a415[_0x4ab47a(0x2cc)]);let _0x241053={'unitId':_0x44a415['unitId'],'subUnitId':_0x17de03,'drawingId':_0x44a415[_0x4ab47a(0x273)],'chartId':_0x44a415[_0x4ab47a(0x2cc)],'scene':_0x31f49b['scene'],'sceneRect':_0x31f49b[_0x4ab47a(0x1c8)],'angle':_0x31f49b[_0x4ab47a(0x2ba)],'renderRect':_0x4d3a00,'position$':_0x37436a};this[_0x4ab47a(0x32a)]=_0x241053,this[_0x4ab47a(0x288)](_0x241053);}['_deactivate'](){const _0x3e5924=_0x38896c;var _0x3ed67c,_0x178781;let _0x4469ca=this['_activeLayer'];_0x4469ca&&(this[_0x3e5924(0x32a)]=null,(_0x3ed67c=_0x4469ca[_0x3e5924(0x336)])==null||_0x3ed67c['dispose'](),(_0x178781=_0x4469ca[_0x3e5924(0x30e)])==null||_0x178781[_0x3e5924(0x3ba)](),this[_0x3e5924(0x335)]['setActiveDomReady']({'unitId':_0x4469ca[_0x3e5924(0x377)],'subUnitId':_0x4469ca[_0x3e5924(0x27e)],'drawingId':_0x4469ca[_0x3e5924(0x273)]},!0x1),this['_canvasFloatDomService']['removeFloatDom'](_0x4469ca[_0x3e5924(0x273)]),this[_0x3e5924(0x2ec)][_0x3e5924(0x237)](null),this[_0x3e5924(0x34c)][_0x3e5924(0x3d4)](_0x4469ca[_0x3e5924(0x377)],_0x4469ca[_0x3e5924(0x2cc)],{'waitForConfig':!0x0}),_0x4469ca[_0x3e5924(0x2d5)][_0x3e5924(0x2dd)]());}[_0x38896c(0x2df)](_0x129985,_0x1868df,_0x2b5666){const _0x359549=_0x38896c;let _0x1742d1=this[_0x359549(0x32a)];(_0x1742d1==null?void 0x0:_0x1742d1[_0x359549(0x377)])===_0x129985&&_0x1742d1[_0x359549(0x273)]===_0x1868df&&_0x1742d1[_0x359549(0x2cc)]===_0x2b5666&&_0x1742d1[_0x359549(0x2d5)][_0x359549(0x2c7)](hi(_0x1742d1[_0x359549(0x1c8)],_0x1742d1[_0x359549(0x210)],0x1,_0x1742d1[_0x359549(0x2ba)]));}[_0x38896c(0x2b5)](_0x53d74e){const _0x51d080=_0x38896c;let _0x51aabd=this[_0x51d080(0x32a)];!_0x51aabd||_0x51aabd[_0x51d080(0x377)]!==_0x53d74e||(this[_0x51d080(0x2df)](_0x51aabd[_0x51d080(0x377)],_0x51aabd['drawingId'],_0x51aabd[_0x51d080(0x2cc)]),this[_0x51d080(0x280)]['next'](_0x51aabd[_0x51d080(0x273)]));}['_bindActiveLayerObservers'](_0x1ea1e4){const _0xf020a3=_0x38896c;var _0x4895ce,_0x578ec8;(_0x4895ce=_0x1ea1e4[_0xf020a3(0x336)])==null||_0x4895ce[_0xf020a3(0x3ba)](),(_0x578ec8=_0x1ea1e4[_0xf020a3(0x30e)])==null||_0x578ec8[_0xf020a3(0x3ba)]();let _0x3e46ce=_0x1ea1e4['scene'][_0xf020a3(0x1b4)](_0x5c639e['VIEW_MAIN']);if(!_0x3e46ce)return;_0x1ea1e4[_0xf020a3(0x336)]=yi(_0x3e46ce[_0xf020a3(0x332)],()=>{const _0x24328c=_0xf020a3;this[_0x24328c(0x2df)](_0x1ea1e4[_0x24328c(0x377)],_0x1ea1e4['drawingId'],_0x1ea1e4[_0x24328c(0x2cc)]);});let _0x59922a=_0x1ea1e4[_0xf020a3(0x210)][_0xf020a3(0x362)][_0xf020a3(0x226)](_0xc7db3c=>{const _0x24b06d=_0xf020a3;_0xc7db3c['type']!==_0x5f1633[_0x24b06d(0x1de)]||_0xc7db3c['value']['scaleX']===_0xc7db3c['preValue'][_0x24b06d(0x219)]&&_0xc7db3c[_0x24b06d(0x353)]['scaleY']===_0xc7db3c[_0x24b06d(0x290)][_0x24b06d(0x368)]||this['_refreshActiveLayout'](_0x1ea1e4['unitId']);});_0x1ea1e4[_0xf020a3(0x30e)]=_0x5e5b49(()=>_0x59922a[_0xf020a3(0x31c)]());}[_0x38896c(0x1e7)](_0x46ee4b){const _0x5831d5=_0x38896c;let _0x1527f8=this[_0x5831d5(0x2a7)](_0x46ee4b),_0x417c9a=this['_getRenderRect'](_0x46ee4b);if(_0x1527f8&&_0x417c9a){var _0x53c120;if(this[_0x5831d5(0x32a)]){let _0x1f7a26=this[_0x5831d5(0x32a)][_0x5831d5(0x210)]!==_0x1527f8[_0x5831d5(0x210)];this[_0x5831d5(0x32a)][_0x5831d5(0x210)]=_0x1527f8[_0x5831d5(0x210)],this[_0x5831d5(0x32a)][_0x5831d5(0x1c8)]=_0x1527f8[_0x5831d5(0x1c8)],this[_0x5831d5(0x32a)][_0x5831d5(0x2ba)]=_0x1527f8[_0x5831d5(0x2ba)],this['_activeLayer'][_0x5831d5(0x31b)]=_0x417c9a,_0x1f7a26&&this[_0x5831d5(0x288)](this['_activeLayer']);}(_0x53c120=this['_activeLayer'])==null||_0x53c120[_0x5831d5(0x2d5)][_0x5831d5(0x2c7)](_0x1527f8[_0x5831d5(0x30d)]),this[_0x5831d5(0x2d1)][_0x5831d5(0x2c7)](_0x46ee4b[_0x5831d5(0x273)]);}}['_retryActivateFocusedChart'](_0x1468cf){const _0x3b071e=_0x38896c;let _0x5d0c42=this[_0x3b071e(0x203)][_0x3b071e(0x38b)]()[_0x3b071e(0x25a)](_0x2b65cc=>this[_0x3b071e(0x2ac)](_0x2b65cc));_0x5d0c42[_0x3b071e(0x3d1)]===0x1&&_0x1468cf['some'](_0x4b2c4e=>gi(_0x4b2c4e,_0x5d0c42[0x0]))&&this[_0x3b071e(0x355)](_0x5d0c42[0x0]);}[_0x38896c(0x2a7)](_0x6730f5){const _0x3b1e64=_0x38896c;let _0x4dab27=_0x6730f5[_0x3b1e64(0x283)];if(!_0x4dab27)return null;let _0x109f34=this[_0x3b1e64(0x1ee)][_0x3b1e64(0x2e8)](_0x6730f5['unitId']);if(!(_0x109f34!=null&&_0x109f34[_0x3b1e64(0x210)])||!_0x109f34[_0x3b1e64(0x210)][_0x3b1e64(0x1b4)](_0x5c639e[_0x3b1e64(0x291)]))return null;let _0x2445da=_0x508190(_0x6730f5),_0x48db4c=_0x109f34[_0x3b1e64(0x210)][_0x3b1e64(0x221)](_0x2445da),_0x133c53=vi(_0x6730f5,_0x48db4c),_0x196faf=_0x133c53[_0x3b1e64(0x28d)]-_0x133c53[_0x3b1e64(0x312)],_0x35ae7f=_0x133c53[_0x3b1e64(0x314)]-_0x133c53[_0x3b1e64(0x297)];if(_0x196faf<=0x0||_0x35ae7f<=0x0)return null;let _0x31f310=_i([_0x48db4c==null?void 0x0:_0x48db4c[_0x3b1e64(0x2ba)],_0x4dab27[_0x3b1e64(0x2ba)]]);return{'scene':_0x109f34[_0x3b1e64(0x210)],'sceneRect':_0x133c53,'angle':_0x31f310,'position':hi(_0x133c53,_0x109f34[_0x3b1e64(0x210)],0x1,_0x31f310)};}[_0x38896c(0x1a9)](_0x576653){const _0x19887c=_0x38896c;var _0x4ff32e,_0x4574e0,_0x42ccb1,_0x27cefc;let _0xcc90=((_0x4ff32e=_0x576653[_0x19887c(0x283)])==null?void 0x0:_0x4ff32e['width'])??((_0x4574e0=_0x576653[_0x19887c(0x1ac)])==null||(_0x4574e0=_0x4574e0[_0x19887c(0x338)])==null?void 0x0:_0x4574e0['width'])??0x0,_0x273242=((_0x42ccb1=_0x576653[_0x19887c(0x283)])==null?void 0x0:_0x42ccb1[_0x19887c(0x3bb)])??((_0x27cefc=_0x576653['docTransform'])==null||(_0x27cefc=_0x27cefc[_0x19887c(0x338)])==null?void 0x0:_0x27cefc[_0x19887c(0x3bb)])??0x0;return _0xcc90<=0x0||_0x273242<=0x0?null:{'width':Math[_0x19887c(0x1e8)](0x1,Math['round'](_0xcc90)),'height':Math[_0x19887c(0x1e8)](0x1,Math[_0x19887c(0x1e6)](_0x273242))};}[_0x38896c(0x24b)](_0x36eec5){const _0x1dace2=_0x38896c;let _0x3934f8=this[_0x1dace2(0x32a)];if((_0x3934f8==null?void 0x0:_0x3934f8[_0x1dace2(0x377)])===_0x36eec5['unitId']&&_0x3934f8[_0x1dace2(0x27e)]===(_0x36eec5['subUnitId']??_0x36eec5['unitId'])&&_0x3934f8[_0x1dace2(0x273)]===_0x36eec5['drawingId']&&_0x3934f8[_0x1dace2(0x2cc)]===_0x36eec5['chartId'])return _0x3934f8['renderRect'];let _0x5a7379=this[_0x1dace2(0x203)][_0x1dace2(0x3cc)](this[_0x1dace2(0x3a5)](_0x36eec5));return this[_0x1dace2(0x2ac)](_0x5a7379)?this[_0x1dace2(0x1a9)](_0x5a7379):null;}[_0x38896c(0x2ad)](_0x546bce){const _0x459120=_0x38896c;let _0x263e75=this[_0x459120(0x32a)];return _0x263e75&&this['_isActiveLayer'](_0x546bce)?_0x263e75[_0x459120(0x210)]['getAncestorScale']():null;}[_0x38896c(0x3a5)](_0x1dbd74){const _0x1fdb6d=_0x38896c;return{'unitId':_0x1dbd74[_0x1fdb6d(0x377)],'subUnitId':_0x1dbd74[_0x1fdb6d(0x27e)]??_0x1dbd74[_0x1fdb6d(0x377)],'drawingId':_0x1dbd74[_0x1fdb6d(0x273)]};}[_0x38896c(0x24c)](_0x125785){const _0x2b4679=_0x38896c;let _0x4cfd2a=this[_0x2b4679(0x32a)];return(_0x4cfd2a==null?void 0x0:_0x4cfd2a[_0x2b4679(0x377)])===_0x125785[_0x2b4679(0x377)]&&_0x4cfd2a[_0x2b4679(0x27e)]===(_0x125785[_0x2b4679(0x27e)]??_0x125785[_0x2b4679(0x377)])&&_0x4cfd2a[_0x2b4679(0x273)]===_0x125785[_0x2b4679(0x273)]&&_0x4cfd2a[_0x2b4679(0x2cc)]===_0x125785[_0x2b4679(0x2cc)];}['_isDocChartDrawing'](_0x333c0e){const _0x29852e=_0x38896c;let _0xfe1de5=_0x333c0e;return(_0xfe1de5==null?void 0x0:_0xfe1de5['drawingType'])===_0x3a259f['DRAWING_CHART']&&typeof _0xfe1de5[_0x29852e(0x2cc)]=='string';}};Q=B([z(0x0,_0x3a5809),z(0x1,_0x59b9c8),z(0x2,_0x34b794(_0x473612)),z(0x3,_0x34b794(_0x3d515f)),z(0x4,_0x34b794(W)),z(0x5,_0x34b794(Y)),z(0x6,_0xf83699),z(0x7,_0x5a8e80),z(0x8,_0x34b794(_0x490885)),z(0x9,_0x34b794(pi))],Q);const bi=_0x38896c(0x3d0),xi=_0xcc9766=>{let {unitId:_0x1cf349,subUnitId:_0x408bfe,floatDomId:_0x7b60e3,chartId:_0x14fc73,context:_0x86186}=_0xcc9766,_0x1d8aaf=_0xc3066b(Q);return _0x119658(()=>{const _0x50aa53=_0x1625;let _0x329891=_0x86186[_0x50aa53(0x1fc)][_0x50aa53(0x1e9)];if(!_0x329891)return;let _0x5208b1=_0x1d8aaf[_0x50aa53(0x1ae)]({'unitId':_0x1cf349,'subUnitId':_0x408bfe,'drawingId':_0x7b60e3,'chartId':_0x14fc73,'root':_0x329891});return()=>_0x5208b1[_0x50aa53(0x3ba)]();},[_0x1d8aaf,_0x14fc73,_0x86186['root'],_0x7b60e3,_0x408bfe,_0x1cf349]),null;},Si=()=>null;let Ci=class extends _0x19361e{constructor(_0x1c0a7c){super(),this['_componentManager']=_0x1c0a7c,this['_registerComponents']();}['_registerComponents'](){const _0x55fa47=_0x38896c;this[_0x55fa47(0x2aa)](this[_0x55fa47(0x319)][_0x55fa47(0x23c)](qr,Yr)),this[_0x55fa47(0x2aa)](this[_0x55fa47(0x319)]['register'](lr,fr)),this['disposeWithMe'](this['_componentManager'][_0x55fa47(0x23c)](Mr,Pr)),this[_0x55fa47(0x2aa)](this[_0x55fa47(0x319)]['register'](_0x24f748,Si)),this[_0x55fa47(0x2aa)](this[_0x55fa47(0x319)][_0x55fa47(0x23c)](bi,xi));}};Ci=B([z(0x0,_0x34b794(_0x501a58))],Ci);let wi=class extends _0x19361e{constructor(_0x1326a0,_0x5ed2fc,_0x14ee51,_0x4a24af,_0x3bdbe8,_0x1d709f,_0x5e350a){const _0x173d54=_0x38896c;super(),this[_0x173d54(0x20c)]=_0x1326a0,this[_0x173d54(0x20f)]=_0x5ed2fc,this[_0x173d54(0x2b0)]=_0x14ee51,this['_docSelectionManagerService']=_0x4a24af,this[_0x173d54(0x1d3)]=_0x3bdbe8,this[_0x173d54(0x242)]=_0x1d709f,this[_0x173d54(0x1d8)]=_0x5e350a,this[_0x173d54(0x1e5)](),this[_0x173d54(0x2f5)]();}['openInsertDialog'](_0x28d506){const _0x3accb9=_0x38896c;let _0x1e03cc=null,_0x1717a8=()=>{const _0x15bdda=_0x1625;_0x1e03cc==null||_0x1e03cc[_0x15bdda(0x3ba)](),_0x1e03cc=null;};return _0x1e03cc=this['_dialogService'][_0x3accb9(0x393)]({'id':_0x3accb9(0x201),'title':{'title':this[_0x3accb9(0x20f)]['t'](_0x3accb9(0x3d2))},'className':_0x382f3d(_0x3accb9(0x398)),'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':qr,'props':{'defaultChartType':(_0x28d506==null?void 0x0:_0x28d506[_0x3accb9(0x370)])??(_0x28d506==null?void 0x0:_0x28d506[_0x3accb9(0x353)]),'defaultTableText':_0x28d506==null?void 0x0:_0x28d506[_0x3accb9(0x3b4)],'insertOptions':{'insertRange':(_0x28d506==null?void 0x0:_0x28d506['insertRange'])??this['_captureInsertRange']()},'onCancel':_0x1717a8,'onInserted':_0x1717a8}}},'onClose':_0x1717a8}),!0x0;}[_0x38896c(0x30c)](_0x42f511){const _0x121181=_0x38896c;let _0x4d1067=null,_0x51dd2e=()=>{const _0x402769=_0x1625;_0x4d1067==null||_0x4d1067[_0x402769(0x3ba)](),_0x4d1067=null;};return _0x4d1067=this[_0x121181(0x20c)][_0x121181(0x393)]({'id':Nr,'title':{'title':this[_0x121181(0x20f)]['t']('docs-chart-ui.common.editChart')},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Mr,'props':{..._0x42f511,'onClose':_0x51dd2e}}},'onClose':_0x51dd2e}),!0x0;}['_initMenus'](){const _0x55fb53=_0x38896c;this[_0x55fb53(0x242)][_0x55fb53(0x257)](ci);}['_registerDialogOperations'](){const _0x1536d5=_0x38896c;this['disposeWithMe'](this[_0x1536d5(0x1d8)][_0x1536d5(0x2d9)](_0x4b9f21=>{const _0x628dd7=_0x1536d5;if(_0x4b9f21['id']===L['id']){this[_0x628dd7(0x1ec)](_0x4b9f21[_0x628dd7(0x302)]);return;}if(_0x4b9f21['id']===R['id']){let _0x1c39c5=_0x4b9f21[_0x628dd7(0x302)];_0x1c39c5&&this[_0x628dd7(0x30c)](_0x1c39c5);}}));}['_captureInsertRange'](){const _0x36d467=_0x38896c;let _0x422bbb=this[_0x36d467(0x2b0)]['getCurrentUnitOfType'](_0x3c76ab[_0x36d467(0x208)]);if(!_0x422bbb)return;let _0x554434=_0x422bbb[_0x36d467(0x36b)](),_0x70d202=null;try{_0x70d202=this[_0x36d467(0x1d3)][_0x36d467(0x28b)](_0x554434);}catch{_0x70d202=null;}if(_0x70d202){let _0x2cbfb5={'startOffset':_0x70d202[_0x36d467(0x382)],'endOffset':_0x70d202[_0x36d467(0x202)],'collapsed':_0x70d202['startOffset']===_0x70d202[_0x36d467(0x202)],'segmentId':_0x70d202[_0x36d467(0x2d4)]??''};return G(_0x422bbb,_0x2cbfb5)?_0x2cbfb5:void 0x0;}let _0x3c466e=[...this[_0x36d467(0x275)]['getTextRanges']()??[]];if(_0x3c466e['length']!==0x1)return;let _0xfe55a7=this[_0x36d467(0x275)][_0x36d467(0x299)]()??_0x3c466e[0x0];if(!_0xfe55a7||!_0xfe55a7[_0x36d467(0x263)]||_0xfe55a7[_0x36d467(0x382)]==null)return;let _0x46d91f={..._0xfe55a7,'segmentId':_0xfe55a7[_0x36d467(0x2d4)]??''};return G(_0x422bbb,_0x46d91f)?_0x46d91f:void 0x0;}};wi=B([z(0x0,_0x34b794(_0x41811b)),z(0x1,_0x34b794(_0x490885)),z(0x2,_0x5a8e80),z(0x3,_0x34b794(_0x5b353b)),z(0x4,_0x34b794(_0x129931)),z(0x5,_0x368e35),z(0x6,_0xf83699)],wi);let Ti=class extends _0x19361e{constructor(_0x397f7a,_0x5d5f1c){const _0xe79873=_0x38896c;super(),this[_0xe79873(0x3c7)]=_0x5d5f1c,this[_0xe79873(0x2aa)](_0x397f7a['register'](this));}[_0x38896c(0x3ad)](_0x462d6b){const _0x57176b=_0x38896c;return _0x57176b(0x377)in _0x462d6b&&'getDrawingId'in _0x462d6b;}[_0x38896c(0x2b7)](_0x213007,_0xd4885d){const _0x1842e6=_0x38896c;if(!this['supports'](_0x213007))return Promise['resolve'](void 0x0);let _0x2da7f3=_0x213007['getInfo']()[_0x1842e6(0x338)];return this[_0x1842e6(0x3c7)][_0x1842e6(0x2b7)]({'unitId':_0x213007['unitId'],'chartId':_0x213007[_0x1842e6(0x3b8)](),'width':Math[_0x1842e6(0x1e8)](0x1,(_0x2da7f3==null?void 0x0:_0x2da7f3[_0x1842e6(0x246)])??0x1),'height':Math['max'](0x1,(_0x2da7f3==null?void 0x0:_0x2da7f3[_0x1842e6(0x3bb)])??0x1),'format':_0xd4885d==null?void 0x0:_0xd4885d[_0x1842e6(0x30b)],'mode':_0x1842e6(0x356)});}};Ti=B([z(0x0,_0x34b794(_0x3fc716)),z(0x1,_0x34b794(Y))],Ti);function Ei(_0x68dacf,_0x319078,_0x1536f4){const _0x818abe=_0x38896c;let _0x438027=_0x1536f4['docsTop']??0x0,_0x1327f1=_0x1536f4[_0x818abe(0x37c)]??0x0,_0x197055=_0x438027;for(let _0x321e05 of _0x319078){let _0x1c1ac0=_0x321e05[_0x818abe(0x1a3)][_0x818abe(0x384)](_0x68dacf['drawingId']);if(_0x1c1ac0)return{'left':_0x1327f1+_0x321e05['marginLeft']+_0x1c1ac0[_0x818abe(0x361)],'top':_0x197055+_0x321e05[_0x818abe(0x2c8)]+_0x1c1ac0[_0x818abe(0x37b)],'width':_0x1c1ac0['width'],'height':_0x1c1ac0[_0x818abe(0x3bb)],'angle':_0x1c1ac0['angle'],'flipX':_0x68dacf['docTransform']['flipX'],'flipY':_0x68dacf[_0x818abe(0x1ac)][_0x818abe(0x3b5)]};let _0x4b0492=Number[_0x818abe(0x2d7)](_0x321e05['pageHeight'])?_0x321e05[_0x818abe(0x320)]:_0x321e05[_0x818abe(0x3bb)];_0x197055+=Math['max'](0x0,_0x4b0492)+_0x1536f4[_0x818abe(0x36c)];}return null;}let Di=class extends _0x19361e{constructor(_0x3a4169,_0x10fcce,_0x17eb4d,_0xa00b58){const _0x2e386a=_0x38896c;super(),this['_drawingManagerService']=_0x3a4169,this[_0x2e386a(0x1ee)]=_0x10fcce,this['_snapshotRenderService']=_0x17eb4d,this[_0x2e386a(0x26f)]=_0xa00b58,U(this,_0x2e386a(0x1cc),new Map());let _0xbb9747=this[_0x2e386a(0x26f)][_0x2e386a(0x366)];_0xbb9747&&this[_0x2e386a(0x2aa)](_0xbb9747[_0x2e386a(0x1cf)](this['_docPrintInterceptorService'],_0x41821a=>this[_0x2e386a(0x342)](_0x41821a))),this[_0x2e386a(0x211)]();}async['prepare'](_0x2ed5fb){const _0x458efc=_0x38896c;let _0x52d2b1=this[_0x458efc(0x344)](_0x2ed5fb[_0x458efc(0x377)]),_0x16b320=new Map();this[_0x458efc(0x1cc)]['set'](_0x2ed5fb[_0x458efc(0x377)],_0x16b320),await Promise[_0x458efc(0x392)](_0x52d2b1[_0x458efc(0x1c1)](async _0x419e7e=>{const _0x3279a1=_0x458efc;let _0x403d48=Oi(_0x419e7e);if(!_0x403d48)return;let _0x16a35b={'unitId':_0x2ed5fb[_0x3279a1(0x377)],'chartId':_0x419e7e[_0x3279a1(0x2cc)],'width':_0x403d48[_0x3279a1(0x246)],'height':_0x403d48[_0x3279a1(0x3bb)],'dpr':_0x2ed5fb[_0x3279a1(0x1d5)],'mode':'print'},_0x2da24c={..._0x16a35b,'dpr':_0x32fdbf,'mode':_0x3279a1(0x1f1)},_0x3a3d56=this[_0x3279a1(0x34c)][_0x3279a1(0x2d8)](_0x2da24c),_0x4f6513=(_0x3a3d56==null?void 0x0:_0x3a3d56[_0x3279a1(0x2d6)])===_0x3279a1(0x3cf)?this[_0x3279a1(0x3a0)](_0x419e7e):null;if(_0x4f6513){_0x16b320['set'](_0x419e7e[_0x3279a1(0x273)],{'image':_0x4f6513});return;}let _0x441c66=(_0x3a3d56==null?void 0x0:_0x3a3d56[_0x3279a1(0x2d6)])===_0x3279a1(0x3cf)?_0x3a3d56[_0x3279a1(0x1aa)]:await this['_snapshotRenderService']['exportImage']((_0x3a3d56==null?void 0x0:_0x3a3d56['status'])==='pending'?_0x2da24c:_0x16a35b);_0x441c66&&_0x16b320[_0x3279a1(0x2e7)](_0x419e7e[_0x3279a1(0x273)],{'image':await ki(_0x441c66)});}));}[_0x38896c(0x211)](){const _0xf40d84=_0x38896c;this['disposeWithMe'](this['_docPrintInterceptorService'][_0xf40d84(0x23f)][_0xf40d84(0x22b)](this[_0xf40d84(0x26f)][_0xf40d84(0x23f)][_0xf40d84(0x36e)]()[_0xf40d84(0x36d)],{'handler':(_0x250de5,{unitId:_0x38c632,scene:_0x45f017,skeleton:_0x2ce602,documents:_0x26e203},_0x2ce509)=>{const _0x408820=_0xf40d84;var _0xd7a0ce,_0x825f7e;let _0x779d4b=_0x2ce509(_0x250de5),_0x3c5994=this[_0x408820(0x1cc)][_0x408820(0x384)](_0x38c632),_0x38e5ff=((_0xd7a0ce=_0x2ce602[_0x408820(0x3d5)]())==null?void 0x0:_0xd7a0ce[_0x408820(0x1cd)])??[];if(!(_0x3c5994!=null&&_0x3c5994[_0x408820(0x338)])||!_0x38e5ff[_0x408820(0x3d1)])return _0x779d4b;let _0x23b258=(_0x825f7e=this[_0x408820(0x203)]['getDrawingDataForUnit'](_0x38c632))==null?void 0x0:_0x825f7e[_0x38c632];return _0x23b258==null||_0x23b258[_0x408820(0x35f)]['forEach']((_0x752837,_0xef8a46)=>{const _0x5c714a=_0x408820;let _0x459459=_0x23b258[_0x5c714a(0x313)][_0x752837],_0x994b13=_0x3c5994['get'](_0x752837);if(!_0x994b13||_0x459459[_0x5c714a(0x3ca)]||_0x459459[_0x5c714a(0x244)]!==_0x3a259f[_0x5c714a(0x341)])return;let _0x47c46c={...Ei(_0x459459,_0x38e5ff,_0x26e203[_0x5c714a(0x2e5)]())??_0x163f14(_0x459459[_0x5c714a(0x1ac)]),'image':_0x994b13[_0x5c714a(0x2c4)],'printable':!0x0,'forceRender':!0x0,'zIndex':_0xef8a46};_0x45f017['addObject'](new _0x2f0273(_0x508190(_0x459459),_0x47c46c),_0x8fa582);}),_0x779d4b;}}));}[_0x38896c(0x344)](_0x453a20){const _0xda3b02=_0x38896c;var _0x180da1;let _0x186eea=(_0x180da1=this[_0xda3b02(0x203)][_0xda3b02(0x2b4)](_0x453a20))==null?void 0x0:_0x180da1[_0x453a20];return(_0x186eea==null?void 0x0:_0x186eea[_0xda3b02(0x35f)][_0xda3b02(0x1c1)](_0x46469e=>_0x186eea['data'][_0x46469e])['filter'](_0x1f5b49=>_0x1f5b49[_0xda3b02(0x244)]===_0x3a259f[_0xda3b02(0x341)]&&!_0x1f5b49[_0xda3b02(0x3ca)]&&!!_0x1f5b49[_0xda3b02(0x2cc)]))??[];}[_0x38896c(0x3a0)](_0x211a16){const _0x26f1c9=_0x38896c;var _0x507297,_0xe2ea19;let _0x252b02=(_0x507297=this[_0x26f1c9(0x1ee)][_0x26f1c9(0x2e8)](_0x211a16[_0x26f1c9(0x377)]))==null?void 0x0:_0x507297[_0x26f1c9(0x210)],_0x3c7b05=_0x252b02==null?void 0x0:_0x252b02[_0x26f1c9(0x221)](_0x508190(_0x211a16)),_0xd4eb63=_0x3c7b05==null||(_0xe2ea19=_0x3c7b05[_0x26f1c9(0x2f0)])==null?void 0x0:_0xe2ea19[_0x26f1c9(0x1cf)](_0x3c7b05);return _0xd4eb63!=null&&_0xd4eb63[_0x26f1c9(0x2dd)]&&_0xd4eb63[_0x26f1c9(0x375)]>0x0?_0xd4eb63:null;}};Di=B([z(0x0,_0x3a5809),z(0x1,_0x59b9c8),z(0x2,_0x34b794(Y)),z(0x3,_0x34b794(_0x484541))],Di);function Oi(_0x27c429){const _0x5bc33a=_0x38896c;var _0x2c0382,_0x8b1019,_0x4c651c,_0x44d845;let _0x38da80=((_0x2c0382=_0x27c429[_0x5bc33a(0x283)])==null?void 0x0:_0x2c0382[_0x5bc33a(0x246)])??((_0x8b1019=_0x27c429[_0x5bc33a(0x1ac)])==null||(_0x8b1019=_0x8b1019[_0x5bc33a(0x338)])==null?void 0x0:_0x8b1019[_0x5bc33a(0x246)])??0x0,_0x202491=((_0x4c651c=_0x27c429[_0x5bc33a(0x283)])==null?void 0x0:_0x4c651c[_0x5bc33a(0x3bb)])??((_0x44d845=_0x27c429['docTransform'])==null||(_0x44d845=_0x44d845[_0x5bc33a(0x338)])==null?void 0x0:_0x44d845[_0x5bc33a(0x3bb)])??0x0;return _0x38da80>0x0&&_0x202491>0x0?{'width':Math[_0x5bc33a(0x1e8)](0x1,Math[_0x5bc33a(0x1e6)](_0x38da80)),'height':Math['max'](0x1,Math[_0x5bc33a(0x1e6)](_0x202491))}:null;}function ki(_0x93a78a){return new Promise((_0x4af8ae,_0x137fdd)=>{const _0x31340f=_0x1625;let _0xe0a0c=new globalThis[(_0x31340f(0x1cb))](),_0x2159d9=globalThis[_0x31340f(0x325)](()=>_0x137fdd(Error(_0x31340f(0x385))),0x2710),_0x578864=_0x4cb8aa=>{const _0x49f24c=_0x31340f;globalThis[_0x49f24c(0x32b)](_0x2159d9),_0xe0a0c['onload']=null,_0xe0a0c[_0x49f24c(0x2d2)]=null,_0x4cb8aa();};_0xe0a0c['onload']=()=>_0x578864(()=>_0x4af8ae(_0xe0a0c)),_0xe0a0c[_0x31340f(0x2d2)]=()=>_0x578864(()=>_0x137fdd(Error(_0x31340f(0x298)))),_0xe0a0c[_0x31340f(0x1fb)]=_0x93a78a,_0xe0a0c[_0x31340f(0x2dd)]&&_0xe0a0c[_0x31340f(0x375)]>0x0&&_0x578864(()=>_0x4af8ae(_0xe0a0c));});}let $=class extends _0x24f43d{constructor(_0x14c076=Zr,_0x2b2870,_0x51938d,_0x57901e){const _0x59f21e=_0x38896c;super(),this[_0x59f21e(0x20a)]=_0x14c076,this[_0x59f21e(0x259)]=_0x2b2870,this['_configService']=_0x51938d,this[_0x59f21e(0x1d8)]=_0x57901e;let {..._0x594f29}=_0x54dac4({},Zr,this[_0x59f21e(0x20a)]);this[_0x59f21e(0x33e)]['setConfig'](Xr,_0x594f29),this['_initCommands']();}[_0x38896c(0x281)](){const _0x473040=_0x38896c;let _0x4e54ee=this[_0x473040(0x259)];[[Ci],[K],[V],[pr,{'useClass':mr}],[Q],[Di],[W],[Y],[Ti],[ni],[pi],[q],[J],[wi]]['forEach'](_0x1c58e1=>_0x4e54ee[_0x473040(0x262)](_0x1c58e1)),_0xf36bca(_0x4e54ee,[[K],[V],[pr],[Q],[Di],[W],[Y],[Ti],[q],[J]]),this[_0x473040(0x259)][_0x473040(0x384)](Ci);}[_0x38896c(0x304)](){const _0x1d82b3=_0x38896c;this[_0x1d82b3(0x259)][_0x1d82b3(0x384)](ni),this[_0x1d82b3(0x259)]['get'](pi),this[_0x1d82b3(0x259)][_0x1d82b3(0x384)](q),this[_0x1d82b3(0x259)]['get'](J),this[_0x1d82b3(0x259)][_0x1d82b3(0x384)](wi);}['_initCommands'](){[L,R]['forEach'](_0x2ba564=>{const _0x3cfcd6=_0x1625;this[_0x3cfcd6(0x2aa)](this[_0x3cfcd6(0x1d8)][_0x3cfcd6(0x39d)](_0x2ba564));});}};U($,_0x38896c(0x3c4),_0x3c76ab[_0x38896c(0x208)]),U($,'pluginName',_0x38896c(0x2ee)),U($,'packageName',li),U($,_0x38896c(0x1ea),ui),$=B([_0xf62d3d(_0x31ac59,_0xcdac4c,_0x706efe,_0x511725,_0x5ce017,_0x186d8a,_0xf36506,_0x3c9f4a,_0x2bc0da),z(0x1,_0x34b794(_0x1c9111)),z(0x2,_0x597c3b),z(0x3,_0xf83699)],$);export{Xr as DOCS_CHART_UI_PLUGIN_CONFIG_KEY,bi as DOC_ACTIVE_CHART_COMPONENT,Qr as DOC_CHART_CLIPBOARD_RESOURCE_KEY,lr as DOC_CHART_DATA_EDITOR_COMPONENT,ur as DOC_CHART_DATA_EDITOR_DIALOG_ID,Mr as DOC_CHART_EDITOR_DIALOG_COMPONENT,Nr as DOC_CHART_EDITOR_DIALOG_ID,ri as DOC_CHART_INSERT_BELOW_MENU_ID,X as DOC_CHART_INSERT_MENU_ID,qr as DOC_CHART_INSERT_PANEL_COMPONENT,xi as DocActiveChart,Q as DocChartActiveRenderService,q as DocChartClipboardController,V as DocChartDataEditService,fr as DocChartDataEditor,dr as DocChartDataEditorSubmitMode,J as DocChartDrawingEditController,xr as DocChartEditPanel,Pr as DocChartEditorDialog,si as DocChartInsertBelowMenuItemFactory,Z as DocChartInsertMenuItemFactory,Yr as DocChartInsertPanel,oi as DocChartInsertRibbonMenuItemFactory,K as DocChartInsertService,Di as DocChartPrintService,W as DocChartRenderService,ni as DocChartSnapshotRefreshController,Y as DocChartSnapshotRenderService,mr as DocChartUIService,Dr as DocDomChartHost,Si as DocPrintChart,ci as DocsChartUIMenuSchema,ei as IDocChartSnapshotRendererService,pr as IDocChartUIService,R as OpenDocChartEditorDialogOperation,L as OpenDocChartInsertDialogOperation,$ as UniverDocsChartUIPlugin,Zr as defaultPluginConfig,ii as getDocChartInsertDisabledObservable};