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

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 (107) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -0
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -0
  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 -0
  10. package/lib/cjs/locale/it-IT.js +1 -0
  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 -0
  14. package/lib/cjs/locale/pt-BR.js +1 -0
  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 -0
  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 -0
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -0
  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 -0
  30. package/lib/es/locale/it-IT.js +1 -0
  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 -0
  34. package/lib/es/locale/pt-BR.js +1 -0
  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 -0
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.css +38 -64
  42. package/lib/index.js +1 -1
  43. package/lib/locale/ar-SA.js +1 -0
  44. package/lib/locale/ca-ES.js +1 -1
  45. package/lib/locale/de-DE.js +1 -0
  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 -0
  51. package/lib/locale/it-IT.js +1 -0
  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 -0
  55. package/lib/locale/pt-BR.js +1 -0
  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 -0
  61. package/lib/locale/zh-TW.js +1 -1
  62. package/lib/types/commands/operations/chart-dialog.operation.d.ts +2 -0
  63. package/lib/types/components/DocChartDataEditor.d.ts +4 -4
  64. package/lib/types/components/DocChartEditPanel.d.ts +88 -16
  65. package/lib/types/components/DocChartEditorDialog.d.ts +2 -0
  66. package/lib/types/components/DocChartPreview.d.ts +3 -4
  67. package/lib/types/controllers/components.controller.d.ts +2 -4
  68. package/lib/types/controllers/doc-chart-clipboard.controller.d.ts +2 -2
  69. package/lib/types/index.d.ts +5 -6
  70. package/lib/types/locale/ar-SA.d.ts +3 -0
  71. package/lib/types/locale/de-DE.d.ts +3 -0
  72. package/lib/types/locale/en-US.d.ts +116 -45
  73. package/lib/types/locale/id-ID.d.ts +3 -0
  74. package/lib/types/locale/it-IT.d.ts +3 -0
  75. package/lib/types/locale/pl-PL.d.ts +3 -0
  76. package/lib/types/locale/pt-BR.d.ts +3 -0
  77. package/lib/types/locale/zh-HK.d.ts +3 -0
  78. package/lib/types/menu/chart.menu.d.ts +4 -7
  79. package/lib/types/services/doc-chart-data-edit.service.d.ts +3 -8
  80. package/lib/types/services/doc-chart-host.d.ts +2 -14
  81. package/lib/types/services/doc-chart-insert.service.d.ts +4 -4
  82. package/lib/types/services/doc-chart-render.service.d.ts +6 -11
  83. package/lib/types/services/doc-chart-snapshot-render.service.d.ts +8 -51
  84. package/lib/types/services/doc-chart-ui.service.d.ts +21 -0
  85. package/lib/types/utils/ChartPanelOptions.d.ts +1 -9
  86. package/lib/umd/index.js +1 -1
  87. package/lib/umd/locale/ar-SA.js +1 -0
  88. package/lib/umd/locale/ca-ES.js +1 -1
  89. package/lib/umd/locale/de-DE.js +1 -0
  90. package/lib/umd/locale/en-US.js +1 -1
  91. package/lib/umd/locale/es-ES.js +1 -1
  92. package/lib/umd/locale/fa-IR.js +1 -1
  93. package/lib/umd/locale/fr-FR.js +1 -1
  94. package/lib/umd/locale/id-ID.js +1 -0
  95. package/lib/umd/locale/it-IT.js +1 -0
  96. package/lib/umd/locale/ja-JP.js +1 -1
  97. package/lib/umd/locale/ko-KR.js +1 -1
  98. package/lib/umd/locale/pl-PL.js +1 -0
  99. package/lib/umd/locale/pt-BR.js +1 -0
  100. package/lib/umd/locale/ru-RU.js +1 -1
  101. package/lib/umd/locale/sk-SK.js +1 -1
  102. package/lib/umd/locale/vi-VN.js +1 -1
  103. package/lib/umd/locale/zh-CN.js +1 -1
  104. package/lib/umd/locale/zh-HK.js +1 -0
  105. package/lib/umd/locale/zh-TW.js +1 -1
  106. package/package.json +17 -17
  107. package/lib/types/components/DocChartInlineTableEditor.d.ts +0 -11
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x480d5a=_0x1ae9;(function(_0xd99952,_0x5d3222){const _0xaf3cc8=_0x1ae9,_0xfc66b7=_0xd99952();while(!![]){try{const _0x45ca8a=-parseInt(_0xaf3cc8(0x2c0))/0x1*(parseInt(_0xaf3cc8(0x2f4))/0x2)+-parseInt(_0xaf3cc8(0x32b))/0x3*(parseInt(_0xaf3cc8(0x141))/0x4)+parseInt(_0xaf3cc8(0x202))/0x5*(parseInt(_0xaf3cc8(0x25a))/0x6)+parseInt(_0xaf3cc8(0x325))/0x7+parseInt(_0xaf3cc8(0x20b))/0x8+-parseInt(_0xaf3cc8(0x2c5))/0x9*(-parseInt(_0xaf3cc8(0x105))/0xa)+parseInt(_0xaf3cc8(0x168))/0xb*(-parseInt(_0xaf3cc8(0x1d3))/0xc);if(_0x45ca8a===_0x5d3222)break;else _0xfc66b7['push'](_0xfc66b7['shift']());}catch(_0x342f60){_0xfc66b7['push'](_0xfc66b7['shift']());}}}(_0x7c4f,0x5e61a));import{CommandType as _0x444b08,DOC_DRAWING_PRINTING_COMPONENT_KEY as _0x3258fb,DataStreamTreeTokenType as _0x5b32b7,DependentOn as _0xa8679d,Disposable as _0x42a091,DrawingTypeEnum as _0x3c5d64,ICommandService as _0x38515f,IConfigService as _0x2f9f79,IUniverInstanceService as _0x287d9c,Inject as _0x2f3732,Injector as _0x292f4d,LocaleService as _0x62dfd0,Optional as _0x4919fe,Plugin as _0x312b49,Tools as _0x4afd64,UniverInstanceType as _0x436ddb,createIdentifier as _0x4e4749,generateRandomId as _0x3c552e,merge as _0x9ee372,toDisposable as _0x481640,touchDependencies as _0x78d68a}from'@univerjs/core';import{Accordion as _0x2900d2,Button as _0x286a24,Checkbox as _0x55e9bf,DropdownMenu as _0x21674b,Select as _0x105e16}from'@univerjs/design';import{CanvasFloatDomService as _0xd426fc,ComponentManager as _0x13dcfd,ContextMenuGroup as _0x5d5758,ContextMenuPosition as _0x478e41,IDialogService as _0x551698,IMenuManagerService as _0x2021be,IconManager as _0x374f6d,MenuItemType as _0x14baf4,RibbonInsertGroup as _0x5d4eb7,getMenuHiddenObservable as _0x2a64b2,useDependency as _0x57945f}from'@univerjs/ui';import{useEffect as _0x3785fc,useMemo as _0x20348e,useRef as _0x56f4f2,useState as _0x201a9f}from'react';import{ChartCheckboxField as _0x38999c,ChartColorField as _0x5758f7,ChartEditBlockTitle as _0x48f3ac,ChartEditPanelTabs as _0x152dfe,ChartInlineTableEditor as _0xe2ec3f,ChartLegendWrapField as _0x2148db,ChartNumberField as _0xcd5dc9,ChartPropertyRow as _0x166931,ChartSelectField as _0x3554c1,ChartTextField as _0x3c41c1,appendInlineTableColumn as _0x2cf5e1,appendInlineTableRow as _0x4139ea,applyInlineTablePaste as _0x1c3554,buildChartThemeSelectOptions as _0x479ec7,buildChartTypeSelectOptions as _0x807248,compactInlineTableValues as _0x5d4913,normalizeInlineTableValues as _0x5be43c}from'@univerjs-pro/chart-ui';import{DOC_WORD_CLOUD_RENDER_CONFIG as _0x415c93,DocChartModelService as _0x48828d,DocChartResourceService as _0x3134bd,DuplicateDocChartDataSourceCommand as _0x46168b,InsertDocChartCommand as _0x402e4f,RemoveDocChartDataSourceMutation as _0x1ce721,RemoveDocChartSnapshotMutation as _0x44c6e9,SetDocChartDataSourceMutation as _0x39e296,SetDocChartSnapshotMutation as _0x11f6e2,UniverDocsChartPlugin as _0x15b0de,UpdateDocChartConfigCommand as _0x1dce44,UpdateDocChartDataSourceCommand as _0x2e1864,buildInlineTableDataSet as _0x3ba8e0,parseInlineTable as _0x1f7c7d}from'@univerjs-pro/docs-chart';import{jsx as _0x364b80,jsxs as _0x1fb7ef}from'react/jsx-runtime';import{AreaLineStyle as _0x3dcb2e,ChartAttributeBits as _0xbc8006,ChartBorderDashType as _0x2ff2af,ChartHostRenderMode as _0x2764f1,ChartModel as _0x1c3080,ChartThemeService as _0x59199c,ChartTypeBits as _0x45452e,EChartRenderEngineName as _0x1ea41c,EChartRenderModel as _0x17ddf5,IChartRenderModelManagerService as _0xe5bc59,ImageChartHost as _0x390937,LabelContentType as _0x4e1e24,LegendPositionEnum as _0x3e4f88,LinePointShape as _0x594572,PieLabelPosition as _0x5a527,RadarShape as _0x574aa1,RelationChartLayoutEnum as _0x38a17e,SelectModeEnum as _0x1aa65a,SeriesLabelPosition as _0x5cf5d3,StackType as _0x3067cb,StaticChartSource as _0x314ebf,TitlePositionEnum as _0x42d7a1,WaterfallStackTypeEnum as _0x55b6d3,WordCloudShapeEnum as _0x30f296,chartBitsUtils as _0x445c88,chartImageSourceToDataUrl as _0x91c1e7,defaultChartConfig as _0x29dc40,echarts as _0x449c03,generateChartModelContextByOperators as _0x5b9f2b,getChartHostFrameContentRect as _0x42e1a6,registerWordCloudChart as _0x34044a,resolveChartRuntimeStyle as _0x503928,resolveDefaultChartHostFrameStyle as _0x45a72a,shouldComposeChartHostFrame as _0x3fd95d}from'@univerjs-pro/engine-chart';import{AreaChartIcon as _0xf79451,BarChartIcon as _0x305e48,BoxplotIcon as _0x114a7,BubbleIcon as _0x3870a0,ChartIcon as _0x29efa6,CloudOutlineIcon as _0x4086e7,ColumnChartIcon as _0xca304c,ComboChartIcon as _0x31cb6f,DeleteEmptyIcon as _0x406da9,FunnelIcon as _0x1c26e9,HeatmapIcon as _0x267a20,IncreaseIcon as _0x255c00,LineChartIcon as _0x41a362,PieChartIcon as _0x1fcd33,RadarChartIcon as _0x3eea1d,RelationshipIcon as _0x489d4f,SankeyIcon as _0x5a073f,ScatterChartIcon as _0x34b90b,WaterfallChartIcon as _0x1028b3}from'@univerjs/icons';import{DocContentInsertService as _0x3ea8bd,DocSelectionManagerService as _0x4c9978}from'@univerjs/docs';import{BreakLineCommand as _0x1d694a,DOC_CONTENT_INSERT_MENU_ID as _0x12f43a,DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID as _0x5ee70a,DOC_PARAGRAPH_T_INSERT_MENU_ID as _0x3591db,EMPTY_PARAGRAPH_MENU_ID as _0x5a6ace,IDocClipboardPasteAdapterService as _0x1e3127,IDocClipboardService as _0x591579,INSERT_BELLOW_MENU_ID as _0x3a27c4,UniverDocsUIPlugin as _0x578234,VIEWPORT_KEY as _0x19b533,disableMenuWhenHeaderFooterEditing as _0x53d0e6}from'@univerjs/docs-ui';import{IDocDrawingAdapterService as _0x32118e,RemoveDocDrawingCommand as _0x2565b2}from'@univerjs/docs-drawing';import{DocDrawingFloatingToolbarAdapterService as _0x742a91,UniverDocsDrawingUIPlugin as _0x1b6d5b}from'@univerjs/docs-drawing-ui';import{BehaviorSubject as _0x5888ec,Observable as _0x2fe54a,Subject as _0x5effdb,combineLatest as _0xeed30e,filter as _0x42467f,firstValueFrom as _0xd74745,map as _0x371a94,skip as _0xb8b820,take as _0x2d76e0,timeout as _0xb78d13}from'rxjs';import{UniverLicensePlugin as _0x8c86a0}from'@univerjs-pro/license';import{IDrawingManagerService as _0x3f7a70,getDrawingShapeKeyByDrawingSearch as _0x124096}from'@univerjs/drawing';import{DRAWING_OBJECT_LAYER_INDEX as _0x221ccb,IRenderManagerService as _0x581cf4,Image as _0x16b360}from'@univerjs/engine-render';const W={'id':_0x480d5a(0x130),'type':_0x444b08['OPERATION'],'handler'(){return!0x0;}},ln={'id':'doc.operation.open-doc-chart-editor-dialog','type':_0x444b08['OPERATION'],'handler'(){return!0x0;}};function un(_0x3a465d,_0x45a863,_0x18c103=0x1,_0x1dcabe=0x1){return _0x1c3554(_0x45a863,_0x1f7c7d,_0x18c103,_0x1dcabe);}function dn(_0x247535){const _0x464ec3=_0x480d5a;return _0x364b80(_0xe2ec3f,{'values':_0x247535[_0x464ec3(0xde)],'minRows':_0x247535[_0x464ec3(0x32a)],'minColumns':_0x247535['minColumns'],'parsePastedText':_0x1f7c7d,'onChange':_0x247535[_0x464ec3(0x13f)]});}const fn=_0x480d5a(0x336),pn=_0x480d5a(0x261);let mn=function(_0x298697){const _0x3dcd76=_0x480d5a;return _0x298697[_0x3dcd76(0x1fc)]=_0x3dcd76(0x224),_0x298697[_0x3dcd76(0x123)]=_0x3dcd76(0x225),_0x298697;}({});function hn(_0x5f1f56){const _0x75a8f5=_0x480d5a;let _0x427d98=_0x57945f(_0x62dfd0),{values:_0x247331,sharingCount:_0x5ae71d=0x1,onCancel:_0x2cdd4d,onChange:_0x5f3329,onSubmit:_0x20f299}=_0x5f1f56,[_0x323f51,_0x350602]=_0x201a9f(()=>_0x247331[_0x75a8f5(0x2e9)](_0x1ccbff=>[..._0x1ccbff])),[_0x34ea2d,_0x5234e0]=_0x201a9f(null),_0x2ffe74=_0x5ae71d>0x1,_0x2cd923=_0x18e058=>{_0x350602(_0x18e058),_0x5f3329==null||_0x5f3329(_0x18e058);},_0x394dbf=_0x3a95b3=>{const _0x46a4f4=_0x75a8f5;let _0x4cad47=_0x5d4913(_0x323f51);if(_0x4cad47[_0x46a4f4(0x188)]===0x0){_0x5234e0(_0x427d98['t'](_0x46a4f4(0x316)));return;}_0x5234e0(null),_0x20f299(_0x4cad47,_0x3a95b3);};return _0x1fb7ef('div',{'className':_0x75a8f5(0x19a),'children':[_0x364b80('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','children':_0x364b80(dn,{'values':_0x323f51,'onChange':_0x2cd923})}),_0x34ea2d&&_0x364b80(_0x75a8f5(0x24d),{'className':_0x75a8f5(0x13c),'children':_0x34ea2d}),_0x1fb7ef('div',{'className':'univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','children':[_0x2cdd4d&&_0x364b80(_0x286a24,{'type':_0x75a8f5(0x1aa),'variant':'default','onClick':_0x2cdd4d,'children':_0x427d98['t'](_0x75a8f5(0x193))}),_0x2ffe74&&_0x364b80(_0x286a24,{'type':'button','variant':_0x75a8f5(0x2f1),'onClick':()=>_0x394dbf(_0x75a8f5(0x225)),'children':_0x427d98['t'](_0x75a8f5(0x29e))}),_0x364b80(_0x286a24,{'type':'button','variant':_0x75a8f5(0x2b8),'onClick':()=>_0x394dbf(_0x75a8f5(0x224)),'children':_0x427d98['t']('docs-chart-ui.apply')})]})]});}function G(_0x13582c,_0x337a49){return function(_0x2761df,_0x11de05){_0x337a49(_0x2761df,_0x11de05,_0x13582c);};}function K(_0x3ce298,_0x59970d,_0x1447a4,_0x332119){const _0x23c1e7=_0x480d5a;var _0x238b0e=arguments[_0x23c1e7(0x188)],_0x3646d0=_0x238b0e<0x3?_0x59970d:_0x332119===null?_0x332119=Object[_0x23c1e7(0x1b1)](_0x59970d,_0x1447a4):_0x332119,_0x4c70e6;if(typeof Reflect==_0x23c1e7(0xcb)&&typeof Reflect[_0x23c1e7(0x198)]=='function')_0x3646d0=Reflect[_0x23c1e7(0x198)](_0x3ce298,_0x59970d,_0x1447a4,_0x332119);else{for(var _0x4ae3f2=_0x3ce298[_0x23c1e7(0x188)]-0x1;_0x4ae3f2>=0x0;_0x4ae3f2--)(_0x4c70e6=_0x3ce298[_0x4ae3f2])&&(_0x3646d0=(_0x238b0e<0x3?_0x4c70e6(_0x3646d0):_0x238b0e>0x3?_0x4c70e6(_0x59970d,_0x1447a4,_0x3646d0):_0x4c70e6(_0x59970d,_0x1447a4))||_0x3646d0);}return _0x238b0e>0x3&&_0x3646d0&&Object['defineProperty'](_0x59970d,_0x1447a4,_0x3646d0),_0x3646d0;}let q=class{constructor(_0x209479,_0x5be3c6){const _0x2d88c2=_0x480d5a;this['_commandService']=_0x209479,this[_0x2d88c2(0x1bd)]=_0x5be3c6;}[_0x480d5a(0x185)](_0xceb9b5,_0x178f6e){const _0x5871c9=_0x480d5a;let _0x56e3b8=this[_0x5871c9(0x1bd)][_0x5871c9(0x115)](_0xceb9b5,_0x178f6e),_0x4e06dd=_0x56e3b8?this[_0x5871c9(0x1bd)][_0x5871c9(0xfa)](_0xceb9b5,_0x56e3b8[_0x5871c9(0x1d6)]):void 0x0;return!_0x56e3b8||!_0x4e06dd?null:{'unitId':_0xceb9b5,'chartId':_0x178f6e,'dataSourceId':_0x4e06dd['id'],'values':_0x4e06dd['values'][_0x5871c9(0x2e9)](_0x158a17=>[..._0x158a17]),'sharingCount':this[_0x5871c9(0x1bd)][_0x5871c9(0x253)](_0xceb9b5,_0x4e06dd['id'])};}['updateChartType'](_0x1d757b,_0x5b3f29,_0x2fef24){const _0x456ce8=_0x480d5a;return this[_0x456ce8(0x1bd)][_0x456ce8(0x115)](_0x1d757b,_0x5b3f29)?this['_commandService'][_0x456ce8(0x144)](_0x1dce44['id'],{'unitId':_0x1d757b,'chartId':_0x5b3f29,'chartType':_0x2fef24}):!0x1;}[_0x480d5a(0x2c3)](_0x149ca0,_0x53ba6c,_0x3bf4d9){const _0x3c7d1e=_0x480d5a;return this[_0x3c7d1e(0x1bd)][_0x3c7d1e(0x115)](_0x149ca0,_0x53ba6c)?this[_0x3c7d1e(0x99)][_0x3c7d1e(0x144)](_0x1dce44['id'],{'unitId':_0x149ca0,'chartId':_0x53ba6c,'style':_0x3bf4d9}):!0x1;}[_0x480d5a(0x232)](_0x5b2166,_0x172869,_0xd7ff92){const _0x2f3a1e=_0x480d5a;return this[_0x2f3a1e(0x1bd)]['getChart'](_0x5b2166,_0x172869)?this['_commandService'][_0x2f3a1e(0x144)](_0x1dce44['id'],{'unitId':_0x5b2166,'chartId':_0x172869,'patch':{'context':_0xd7ff92}}):!0x1;}[_0x480d5a(0x1e2)](_0x3f000c,_0x5bd489,_0x5284c5){const _0x3c09bb=_0x480d5a;return this['_resourceService'][_0x3c09bb(0x115)](_0x3f000c,_0x5bd489)?this[_0x3c09bb(0x99)][_0x3c09bb(0x144)](_0x1dce44['id'],{'unitId':_0x3f000c,'chartId':_0x5bd489,'dataAggregation':_0x5284c5}):!0x1;}[_0x480d5a(0x8b)](_0x187fce,_0x5e2619,_0x31baa6,_0x170dd8){const _0x2362e1=_0x480d5a;let _0x423766=_0x1f7c7d(_0x31baa6);return _0x423766[_0x2362e1(0x188)]===0x0?!0x1:this[_0x2362e1(0x102)](_0x187fce,_0x5e2619,_0x423766,_0x170dd8);}[_0x480d5a(0x102)](_0x1b745b,_0x156f5e,_0x5e5d70,_0x1114c6){const _0x344902=_0x480d5a;let _0x181abe=this[_0x344902(0x185)](_0x1b745b,_0x156f5e);if(!_0x181abe||_0x5e5d70[_0x344902(0x188)]===0x0)return!0x1;let _0x55fd31=_0x181abe[_0x344902(0x1d6)];if(_0x1114c6===_0x344902(0x225)&&_0x181abe['sharingCount']>0x1){if(!this['_commandService']['syncExecuteCommand'](_0x46168b['id'],{'unitId':_0x1b745b,'chartId':_0x156f5e}))return!0x1;let _0x27bcf7=this[_0x344902(0x1bd)][_0x344902(0x115)](_0x1b745b,_0x156f5e);if(!_0x27bcf7)return!0x1;_0x55fd31=_0x27bcf7[_0x344902(0x1d6)];}return this[_0x344902(0x99)][_0x344902(0x144)](_0x2e1864['id'],{'unitId':_0x1b745b,'dataSourceId':_0x55fd31,'values':_0x5e5d70});}};q=K([G(0x0,_0x38515f),G(0x1,_0x2f3732(_0x3134bd))],q);const gn=[{'label':_0x480d5a(0xfd),'value':_0x45452e['Line']},{'label':_0x480d5a(0xa1),'value':_0x45452e[_0x480d5a(0x28c)]},{'label':'docs-chart-ui.chartTypes.pie','value':_0x45452e[_0x480d5a(0x1d5)]},{'label':_0x480d5a(0x278),'value':_0x45452e[_0x480d5a(0xd8)]},{'label':_0x480d5a(0x31c),'value':_0x45452e[_0x480d5a(0x2e6)]},{'label':_0x480d5a(0x2a4),'value':_0x45452e[_0x480d5a(0x311)]},{'label':_0x480d5a(0x1df),'value':_0x45452e['Area']},{'label':_0x480d5a(0x17c),'value':_0x45452e[_0x480d5a(0x133)]},{'label':'docs-chart-ui.chartTypes.areaPercentStacked','value':_0x45452e[_0x480d5a(0xbb)]},{'label':'docs-chart-ui.chartTypes.radar','value':_0x45452e[_0x480d5a(0x246)]},{'label':_0x480d5a(0x131),'value':_0x45452e[_0x480d5a(0xba)]},{'label':'docs-chart-ui.chartTypes.scatter','value':_0x45452e['Scatter']},{'label':_0x480d5a(0x1d2),'value':_0x45452e[_0x480d5a(0x1f4)]},{'label':_0x480d5a(0x1c7),'value':_0x45452e[_0x480d5a(0xe8)]},{'label':_0x480d5a(0x268),'value':_0x45452e[_0x480d5a(0x2ab)]},{'label':_0x480d5a(0x27c),'value':_0x45452e[_0x480d5a(0x177)]},{'label':_0x480d5a(0x327),'value':_0x45452e['Waterfall']},{'label':_0x480d5a(0x1e3),'value':_0x45452e[_0x480d5a(0x291)]},{'label':'docs-chart-ui.chartTypes.sankey','value':_0x45452e[_0x480d5a(0xe0)]},{'label':_0x480d5a(0x1ba),'value':_0x45452e[_0x480d5a(0x101)]},{'label':_0x480d5a(0x2d3),'value':_0x45452e[_0x480d5a(0x196)]}],_n=[_0x45452e[_0x480d5a(0x2e6)],_0x45452e[_0x480d5a(0x311)],_0x45452e[_0x480d5a(0x133)],_0x45452e[_0x480d5a(0xbb)],_0x45452e['Pareto']],vn=gn[_0x480d5a(0x1d1)](_0x1a49f0=>!_n[_0x480d5a(0x1e1)](_0x1a49f0[_0x480d5a(0x1a4)])),yn=[{'label':_0x480d5a(0x326),'value':_0x3e4f88[_0x480d5a(0x326)]},{'label':_0x480d5a(0x160),'value':_0x3e4f88[_0x480d5a(0x160)]},{'label':_0x480d5a(0x2a7),'value':_0x3e4f88[_0x480d5a(0x2a7)]},{'label':'Left','value':_0x3e4f88[_0x480d5a(0x265)]},{'label':_0x480d5a(0x32f),'value':_0x3e4f88[_0x480d5a(0xa6)]}],bn=[{'label':'Top','value':_0x42d7a1[_0x480d5a(0x326)]},{'label':'Right','value':_0x42d7a1['Right']},{'label':_0x480d5a(0x2a7),'value':_0x42d7a1[_0x480d5a(0x2a7)]},{'label':'Left','value':_0x42d7a1[_0x480d5a(0x265)]},{'label':_0x480d5a(0x32f),'value':_0x42d7a1[_0x480d5a(0xa6)]}],xn=[{'label':_0x480d5a(0x264),'value':_0x5cf5d3[_0x480d5a(0x264)]},{'label':_0x480d5a(0xa5),'value':_0x5cf5d3[_0x480d5a(0xa5)]},{'label':'Left','value':_0x5cf5d3[_0x480d5a(0x265)]},{'label':_0x480d5a(0x160),'value':_0x5cf5d3[_0x480d5a(0x160)]},{'label':'Top','value':_0x5cf5d3[_0x480d5a(0x326)]},{'label':'Bottom','value':_0x5cf5d3['Bottom']}],Sn=[{'label':_0x480d5a(0xa5),'value':_0x5a527['Inside']},{'label':'Outside','value':_0x5a527['Outside']}],Cn=[{'label':_0x480d5a(0x32f),'value':''},{'label':'Stacked','value':_0x3067cb[_0x480d5a(0x127)]},{'label':_0x480d5a(0x1f3),'value':_0x3067cb[_0x480d5a(0x1ac)]}],wn=[{'label':_0x480d5a(0x184),'value':_0x1aa65a['Single']},{'label':_0x480d5a(0x301),'value':_0x1aa65a[_0x480d5a(0x301)]},{'label':_0x480d5a(0xc1),'value':_0x1aa65a[_0x480d5a(0x207)]}],Tn=[{'label':_0x480d5a(0x13e),'value':_0x2ff2af[_0x480d5a(0x13e)]},{'label':_0x480d5a(0xcf),'value':_0x2ff2af[_0x480d5a(0xcf)]},{'label':_0x480d5a(0x1c9),'value':_0x2ff2af['Dotted']}],En=[0x1,0.9,0.7,0.5,0.3,0.1][_0x480d5a(0x2e9)](_0x14c655=>({'label':_0x14c655*0x64+'%','value':String(_0x14c655)})),Dn=[0x0,0x1,0x2,0x4,0x8][_0x480d5a(0x2e9)](_0x1bd5e7=>({'label':_0x1bd5e7+'px','value':String(_0x1bd5e7)})),On=[{'label':_0x480d5a(0x2af),'value':_0x594572['Circle']},{'label':_0x480d5a(0x2d1),'value':_0x594572['Square']},{'label':_0x480d5a(0x1a7),'value':_0x594572[_0x480d5a(0x1a7)]},{'label':_0x480d5a(0x2b0),'value':_0x594572['Diamond']},{'label':_0x480d5a(0x32f),'value':_0x594572[_0x480d5a(0x32f)]}],kn=[0x0,0x2,0x5,0x7,0xa,0xe][_0x480d5a(0x2e9)](_0x4431c4=>({'label':_0x4431c4+'px','value':String(_0x4431c4)})),An=[{'label':_0x480d5a(0x17a),'value':_0x4e1e24[_0x480d5a(0x2b1)]},{'label':_0x480d5a(0x1c4),'value':_0x4e1e24[_0x480d5a(0x158)]},{'label':_0x480d5a(0x309),'value':_0x4e1e24[_0x480d5a(0x309)]},{'label':_0x480d5a(0x324),'value':_0x4e1e24['Percentage']}],jn=Object['values'](_0x30f296)[_0x480d5a(0x2e9)](_0x3409e4=>({'label':_0x3409e4,'value':_0x3409e4})),Mn=[{'label':_0x480d5a(0x9b),'value':_0x574aa1[_0x480d5a(0x9b)]},{'label':_0x480d5a(0x2af),'value':_0x574aa1[_0x480d5a(0x2af)]}],Nn=[{'label':_0x480d5a(0x12f),'value':_0x55b6d3[_0x480d5a(0x12f)]},{'label':'Stacked','value':_0x55b6d3[_0x480d5a(0x127)]}],Pn=[{'label':_0x480d5a(0x10a),'value':_0x480d5a(0x223)},{'label':_0x480d5a(0x2a3),'value':_0x480d5a(0x86)}],Fn=[{'label':'Auto','value':_0x38a17e[_0x480d5a(0x32f)]},{'label':_0x480d5a(0x2c1),'value':_0x38a17e['Circular']},{'label':_0x480d5a(0x242),'value':_0x38a17e[_0x480d5a(0x242)]}];function In(_0x332414){const _0x434bb3=_0x480d5a;let _0x5d32ce=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e[_0x434bb3(0x1f4)])),_0x17174d=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e[_0x434bb3(0x1d5)])),_0x94396b=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e[_0x434bb3(0x246)])),_0x52404d=!!(_0x332414&&_0x445c88['baseOn'](_0x332414,_0x45452e['Funnel'])),_0x8cc655=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e['Waterfall'])),_0x4b5401=!!(_0x332414&&_0x445c88['baseOn'](_0x332414,_0x45452e['Pareto'])),_0x5aac29=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e[_0x434bb3(0x177)])),_0x46e4c2=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e[_0x434bb3(0xe0)])),_0x5cc46b=!!(_0x332414&&_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x45452e[_0x434bb3(0x101)])),_0x84c4e5=!!(_0x332414&&[_0x45452e[_0x434bb3(0x190)],_0x45452e[_0x434bb3(0x293)],_0x45452e[_0x434bb3(0x133)],_0x45452e[_0x434bb3(0xbb)],_0x45452e[_0x434bb3(0x195)],_0x45452e[_0x434bb3(0xba)]]['some'](_0x4613e4=>_0x445c88[_0x434bb3(0x30f)](_0x332414,_0x4613e4))),_0x4333f8=[_0x434bb3(0x187),_0x434bb3(0xb6)];return _0x5d32ce&&_0x4333f8['push'](_0x434bb3(0x137)),!_0x5d32ce&&!_0x17174d&&!_0x5aac29&&!_0x46e4c2&&!_0x5cc46b&&!_0x8cc655&&!_0x4b5401&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x330)),_0x84c4e5&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x116)),_0x94396b&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x221)),_0x8cc655&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x146)),_0x17174d&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x200)),_0x52404d&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0xd1)),_0x5cc46b&&_0x4333f8[_0x434bb3(0x1c2)]('heatmap'),_0x5aac29&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x235)),!_0x5d32ce&&!_0x46e4c2&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x1b7)),!_0x5d32ce&&!_0x17174d&&!_0x94396b&&!_0x52404d&&!_0x5aac29&&!_0x46e4c2&&!_0x5cc46b&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x331),_0x434bb3(0x129),_0x434bb3(0xea)),!_0x5d32ce&&!_0x17174d&&!_0x52404d&&!_0x5aac29&&!_0x46e4c2&&_0x4333f8[_0x434bb3(0x1c2)](_0x434bb3(0x30c)),_0x4333f8;}function Ln(_0x1f664d){const _0x161296=_0x480d5a;return!!(_0x1f664d&&[_0x45452e[_0x161296(0x293)],_0x45452e[_0x161296(0xd8)],_0x45452e[_0x161296(0x133)],_0x45452e[_0x161296(0x2e6)],_0x45452e[_0x161296(0xbb)],_0x45452e['BarPercentStacked']][_0x161296(0x22a)](_0x3a26a3=>_0x445c88[_0x161296(0x30f)](_0x1f664d,_0x3a26a3)));}function Rn(_0x581fc3){const _0x9f5f3f=_0x480d5a;return _0x581fc3?_0x445c88[_0x9f5f3f(0x23c)](_0x581fc3,_0xbc8006['PercentStack'])?_0x3067cb[_0x9f5f3f(0x1ac)]:_0x445c88[_0x9f5f3f(0x23c)](_0x581fc3,_0xbc8006[_0x9f5f3f(0x1db)])?_0x3067cb['Stacked']:'':'';}function zn(_0x3ed98d,_0x11f217){const _0x225d69=_0x480d5a;let _0x1027eb=_0x445c88[_0x225d69(0x27a)](_0x3ed98d,_0xbc8006[_0x225d69(0x128)]|_0xbc8006['Stack']);return _0x11f217===_0x3067cb[_0x225d69(0x127)]?_0x1027eb|_0xbc8006['Stack']:_0x11f217===_0x3067cb['Percent']?_0x1027eb|_0xbc8006[_0x225d69(0x128)]:_0x1027eb;}function Bn(_0x5f3992,_0x408cc8){const _0x3cc6c3=_0x480d5a;return(_0x5f3992==null?'':String(_0x5f3992)[_0x3cc6c3(0x18e)]())||_0x408cc8;}function Vn(_0x596652,_0x288e8f){const _0x371c7a=_0x480d5a;var _0x20cfb3;let _0x5299c0=(_0x20cfb3=_0x288e8f[_0x371c7a(0xfb)])==null?_0x371c7a(0x2c2):_0x20cfb3,_0x5e3006=_0x596652['length'],_0x589345=Math[_0x371c7a(0x328)](0x0,..._0x596652[_0x371c7a(0x2e9)](_0x5d3a18=>_0x5d3a18[_0x371c7a(0x188)]));return _0x5299c0===_0x371c7a(0x203)?Array[_0x371c7a(0x337)]({'length':_0x5e3006},(_0x534f40,_0x4610d8)=>{const _0x2e546c=_0x371c7a;var _0x6d7288;return{'label':Bn(_0x288e8f['firstColumnAsCategory']===!0x1||(_0x6d7288=_0x596652[_0x4610d8])==null?void 0x0:_0x6d7288[0x0],_0x2e546c(0x1ed)+(_0x4610d8+0x1)),'value':String(_0x4610d8)};}):Array[_0x371c7a(0x337)]({'length':_0x589345},(_0x1c38dd,_0x42b053)=>{const _0x25b6cc=_0x371c7a;var _0x5a42fa;return{'label':Bn(_0x288e8f[_0x25b6cc(0x29a)]===!0x1||(_0x5a42fa=_0x596652[0x0])==null?void 0x0:_0x5a42fa[_0x42b053],'Column\x20'+(_0x42b053+0x1)),'value':String(_0x42b053)};});}function Hn(_0x58a6ea,_0x4d6802){const _0x3024e0=_0x480d5a;let _0x48a627=_0x58a6ea==null?_0x29dc40[_0x3024e0(0xd5)]:_0x58a6ea;return(_0x48a627&_0x4d6802)===_0x4d6802?_0x48a627&~_0x4d6802:_0x48a627|_0x4d6802;}function Un(_0x37f16f){const _0x498466=_0x480d5a;var _0x43af2d,_0x30ea0c,_0x564c90,_0x31e701,_0x1b43fd,_0xe92d95,_0x261090,_0x334b46,_0xe69e82,_0x5460bc,_0x9217b2,_0x413ecd,_0x54a58b,_0x3c47d9,_0x56aabf,_0x3cd674,_0x40f882,_0x2bdd24,_0x14b270,_0x5411ca,_0x42fca2,_0x13a736,_0x4fe896,_0x33ca17,_0x243cc5,_0x45b2dc,_0x83b9e1,_0x127eca,_0x3a3760,_0x3e90c5,_0x3cbd78,_0x4c34ab,_0x275b08,_0x54a3f9,_0xebff38,_0x40db4c,_0x3885df,_0x110ac9,_0x4cbffe,_0xe54c15,_0xf35adb,_0xad223a,_0x3edcde,_0x12c5b2,_0x5ac399,_0x67f18a,_0x4a9def,_0x2bb77f,_0x16ad92,_0x6ec265,_0x4c8fc3,_0x32df96,_0x3bf34d,_0x344d6c,_0x314567,_0x2e04b6,_0x425381,_0x1ab08a,_0x592020,_0xb88252,_0x34a8b1,_0x54ce5c,_0x4dfad2,_0xc18a19,_0x19b442,_0x4cf7fc,_0xedce11,_0x19b6fc,_0x1d66e2,_0x165a43,_0x4a7a3f,_0x3644d7,_0x332784,_0x3ed04e,_0x34465c,_0x21bd90,_0x56263e,_0x182656,_0x3a8f81,_0x3cbc83,_0x5f3e61,_0x5f4fe6,_0xafeca0,_0x558b77,_0x394ed8,_0x2d77da,_0x180a22,_0x26c09a,_0x54e0e3,_0x1a8baf,_0x532e17,_0x571ef0,_0x64edc8,_0x2bf190,_0x15406e,_0x5495d2,_0x5310ad,_0xe23267,_0x1c4758,_0x430b96,_0xe74a3f,_0x5c82fd,_0xef723a,_0x132ba1,_0x376b7e,_0x345942,_0x569dd,_0x5c7ab7,_0x5287b2,_0x4ed9d5,_0x38b300,_0x41e92e,_0x2402cf,_0x108465,_0x2e930a,_0x20052f,_0x13e13f,_0x5399ff,_0x194280,_0xf83c2f,_0x108ed8,_0x21c0fe,_0x44b683,_0x5dd092,_0x39afe4,_0x145fdf,_0x46a2d9,_0x8afb8d,_0x1c37d7,_0xfda755,_0x500119,_0x545e8f,_0x143258,_0x54e9f6,_0x3fe775,_0x2656b9,_0x4e6193,_0x2c6a0d,_0x12551a,_0x2ae48b,_0xda7d18;let _0x4c0370=_0x57945f(_0x62dfd0),_0x4d0a82=_0x57945f(_0x59199c),[_0x5c56fb,_0x183d85]=_0x201a9f(0x0),_0x4061d0=_0x20348e(()=>_0x807248(gn[_0x498466(0x2e9)](_0x1a2ee4=>({..._0x1a2ee4,'label':_0x4c0370['t'](_0x1a2ee4['label'])}))),[_0x4c0370]),_0x4ec306=_0x20348e(()=>_0x479ec7(_0x4d0a82[_0x498466(0x28f)](),_0x11fbc6=>_0x4d0a82['getColors'](_0x11fbc6)),[_0x4d0a82]),_0x527452=(_0x43af2d=(_0x30ea0c=_0x37f16f[_0x498466(0x1e9)])==null?void 0x0:_0x30ea0c['backgroundColor'])==null?_0x29dc40[_0x498466(0x317)]:_0x43af2d,_0x302d3e=(_0x564c90=(_0x31e701=_0x37f16f[_0x498466(0x1e9)])==null?void 0x0:_0x31e701[_0x498466(0x17e)])==null?_0x498466(0x189):_0x564c90,_0x204f42=In(_0x37f16f[_0x498466(0x319)]),_0x38e3f3=(_0x1b43fd=_0x37f16f['context'])==null?{}:_0x1b43fd,_0x46b9fd=(_0xe92d95=_0x38e3f3[_0x498466(0x1c6)])==null?{}:_0xe92d95,_0x5754f2=Ln(_0x37f16f['chartType']),_0x342dc4=(_0x261090=_0x37f16f[_0x498466(0x1e9)])==null?void 0x0:_0x261090['allSeriesStyle'],_0x20bc54=typeof(_0x342dc4==null?void 0x0:_0x342dc4['color'])==_0x498466(0x206)?_0x342dc4[_0x498466(0x25c)]:void 0x0,_0x5ef994=_0x20348e(()=>Vn(_0x37f16f[_0x498466(0xde)],_0x38e3f3),[_0x38e3f3,_0x37f16f[_0x498466(0xde)]]),_0x1874d8=(_0x334b46=_0x46b9fd[_0x498466(0x2b6)])==null?0x0:_0x334b46,_0x466d73=(_0xe69e82=_0x46b9fd[_0x498466(0x28d)])==null?_0x5ef994[_0x498466(0x2e9)](_0x27b64f=>Number(_0x27b64f[_0x498466(0x1a4)]))[_0x498466(0x1d1)](_0x59bed3=>_0x59bed3!==_0x1874d8):_0xe69e82,_0x588370=_0x5ef994[_0x498466(0x1d1)](_0x22cd83=>Number(_0x22cd83[_0x498466(0x1a4)])!==_0x1874d8),_0x439154=(_0x43a188,_0x1650d6)=>{const _0x29e466=_0x498466;let _0x3d4c84=_0x466d73[_0x29e466(0x13b)]();_0x3d4c84[_0x43a188]=Number(_0x1650d6),_0x37f16f[_0x29e466(0x26e)]({'chartContext':{'seriesIndexes':_0x3d4c84}});},_0x5b5cea=_0x3631dd=>{const _0x52fd15=_0x498466;_0x37f16f[_0x52fd15(0x26e)]({'chartContext':{'seriesIndexes':_0x466d73[_0x52fd15(0x1d1)]((_0x3092f2,_0x2a3c69)=>_0x2a3c69!==_0x3631dd)}});},_0x141868=new Map([[_0x498466(0x187),{'label':_0x4c0370['t']('docs-chart-ui.chartStyle'),'children':_0x1fb7ef('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pb-3','children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x11f),'value':(_0x5460bc=(_0x9217b2=_0x37f16f['style'])==null?void 0x0:_0x9217b2[_0x498466(0xec)])==null?(_0x413ecd=_0x4ec306[0x0])==null?void 0x0:_0x413ecd['value']:_0x5460bc,'options':_0x4ec306,'onChange':_0x73fa3f=>_0x37f16f[_0x498466(0x156)]({'theme':_0x73fa3f})}),_0x364b80(_0x5758f7,{'label':_0x4c0370['t'](_0x498466(0xd7)),'value':_0x527452,'onChange':_0x5b17b4=>_0x37f16f[_0x498466(0x156)]({'backgroundColor':_0x5b17b4==null?void 0x0:_0x5b17b4})}),_0x364b80(_0x5758f7,{'label':_0x4c0370['t'](_0x498466(0x1b9)),'value':_0x302d3e,'onChange':_0xb2b261=>_0x37f16f['onStyleChange']({'borderColor':_0xb2b261==null?void 0x0:_0xb2b261})}),_0x364b80(_0x38999c,{'checked':(_0x54a58b=(_0x3c47d9=_0x37f16f[_0x498466(0x1e9)])==null?void 0x0:_0x3c47d9['gradientFill'])==null?!0x1:_0x54a58b,'label':_0x498466(0x280),'onChange':_0x31517c=>_0x37f16f[_0x498466(0x156)]({'gradientFill':_0x31517c})})]})}],[_0x498466(0xb6),{'label':_0x4c0370['t'](_0x498466(0x1a6)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x15d),'value':(_0x56aabf=(_0x3cd674=_0x37f16f[_0x498466(0x1e9)])==null||(_0x3cd674=_0x3cd674[_0x498466(0xcd)])==null?void 0x0:_0x3cd674[_0x498466(0x1a8)])==null?_0x42d7a1[_0x498466(0x326)]:_0x56aabf,'options':bn,'onChange':_0x50f7c4=>_0x37f16f['onStyleChange']({'titles':{'titlePosition':_0x50f7c4}})}),_0x364b80(_0x3c41c1,{'label':_0x4c0370['t'](_0x498466(0x1bf)),'value':(_0x40f882=(_0x2bdd24=_0x37f16f['style'])==null||(_0x2bdd24=_0x2bdd24['titles'])==null||(_0x2bdd24=_0x2bdd24[_0x498466(0x314)])==null?void 0x0:_0x2bdd24[_0x498466(0x132)])==null?'':_0x40f882,'onChange':_0x318ac5=>_0x37f16f[_0x498466(0x156)]({'titles':{'title':{'content':_0x318ac5}}})}),_0x364b80(_0x3c41c1,{'label':_0x4c0370['t']('docs-chart-ui.subtitle'),'value':(_0x14b270=(_0x5411ca=_0x37f16f[_0x498466(0x1e9)])==null||(_0x5411ca=_0x5411ca[_0x498466(0xcd)])==null||(_0x5411ca=_0x5411ca[_0x498466(0x1ea)])==null?void 0x0:_0x5411ca[_0x498466(0x132)])==null?'':_0x14b270,'onChange':_0x567cea=>_0x37f16f[_0x498466(0x156)]({'titles':{'subtitle':{'content':_0x567cea}}})}),_0x364b80(_0x3c41c1,{'label':_0x4c0370['t'](_0x498466(0x1af)),'value':(_0x42fca2=(_0x13a736=_0x37f16f[_0x498466(0x1e9)])==null||(_0x13a736=_0x13a736[_0x498466(0xcd)])==null||(_0x13a736=_0x13a736[_0x498466(0x244)])==null?void 0x0:_0x13a736['content'])==null?'':_0x42fca2,'onChange':_0x2f3ae9=>_0x37f16f['onStyleChange']({'titles':{'xAxisTitle':{'content':_0x2f3ae9}}})}),_0x364b80(_0x3c41c1,{'label':_0x4c0370['t']('docs-chart-ui.verticalAxisTitle'),'value':(_0x4fe896=(_0x33ca17=_0x37f16f[_0x498466(0x1e9)])==null||(_0x33ca17=_0x33ca17[_0x498466(0xcd)])==null||(_0x33ca17=_0x33ca17[_0x498466(0x1ec)])==null?void 0x0:_0x33ca17[_0x498466(0x132)])==null?'':_0x4fe896,'onChange':_0x131e72=>_0x37f16f[_0x498466(0x156)]({'titles':{'yAxisTitle':{'content':_0x131e72}}})}),_0x364b80(_0x3c41c1,{'label':_0x498466(0x2f3),'value':(_0x243cc5=(_0x45b2dc=_0x37f16f['style'])==null||(_0x45b2dc=_0x45b2dc['titles'])==null||(_0x45b2dc=_0x45b2dc['rightYAxisTitle'])==null?void 0x0:_0x45b2dc[_0x498466(0x132)])==null?'':_0x243cc5,'onChange':_0xd525bd=>_0x37f16f[_0x498466(0x156)]({'titles':{'rightYAxisTitle':{'content':_0xd525bd}}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':_0x498466(0x183),'min':0x8,'value':(_0x83b9e1=(_0x127eca=_0x37f16f['style'])==null||(_0x127eca=_0x127eca[_0x498466(0xcd)])==null||(_0x127eca=_0x127eca[_0x498466(0x314)])==null?void 0x0:_0x127eca[_0x498466(0x2a1)])==null?_0x29dc40['titleFontSize']:_0x83b9e1,'onChange':_0x546c2d=>_0x37f16f[_0x498466(0x156)]({'titles':{'title':{'fontSize':_0x546c2d}}})}),_0x364b80(_0xcd5dc9,{'label':_0x498466(0x1ab),'min':0x8,'value':(_0x3a3760=(_0x3e90c5=_0x37f16f['style'])==null||(_0x3e90c5=_0x3e90c5['titles'])==null||(_0x3e90c5=_0x3e90c5[_0x498466(0x244)])==null?void 0x0:_0x3e90c5['fontSize'])==null?_0x29dc40[_0x498466(0x1f8)][_0x498466(0x2a1)]:_0x3a3760,'onChange':_0x1b1523=>_0x37f16f[_0x498466(0x156)]({'titles':{'xAxisTitle':{'fontSize':_0x1b1523},'yAxisTitle':{'fontSize':_0x1b1523},'rightYAxisTitle':{'fontSize':_0x1b1523}}})})]})]})}],[_0x498466(0x330),{'label':_0x4c0370['t']('docs-chart-ui.series'),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x48f3ac,{'title':_0x498466(0x106)}),_0x364b80(_0x5758f7,{'label':'Color','value':_0x20bc54,'onChange':_0x2b11e4=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'color':_0x2b11e4==null?void 0x0:_0x2b11e4}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x2ee),'value':String((_0x3cbd78=_0x342dc4==null?void 0x0:_0x342dc4[_0x498466(0x121)])==null?0x1:_0x3cbd78),'options':En,'onChange':_0x2d05a4=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'fillOpacity':Number(_0x2d05a4)}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0x24e),'value':String((_0x4c34ab=(_0x275b08=_0x37f16f[_0x498466(0x1e9)])==null||(_0x275b08=_0x275b08[_0x498466(0x27d)])==null||(_0x275b08=_0x275b08[_0x498466(0x9a)])==null?void 0x0:_0x275b08[_0x498466(0x2d9)])==null?_0x29dc40[_0x498466(0x272)][_0x498466(0x2d9)]:_0x4c34ab),'options':Dn,'onChange':_0x377788=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'border':{'width':Number(_0x377788)}}})})]}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x218),'value':(_0x54a3f9=(_0xebff38=_0x37f16f[_0x498466(0x1e9)])==null||(_0xebff38=_0xebff38['allSeriesStyle'])==null||(_0xebff38=_0xebff38[_0x498466(0x9a)])==null?void 0x0:_0xebff38[_0x498466(0x209)])==null?_0x29dc40[_0x498466(0x272)][_0x498466(0x209)]:_0x54a3f9,'options':Tn,'onChange':_0x20b080=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'border':{'dashType':_0x20b080}}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0xc8),'value':(_0x40db4c=(_0x3885df=_0x37f16f[_0x498466(0x1e9)])==null||(_0x3885df=_0x3885df['allSeriesStyle'])==null||(_0x3885df=_0x3885df[_0x498466(0x2de)])==null?void 0x0:_0x3885df[_0x498466(0xb9)])==null?_0x29dc40[_0x498466(0x2de)][_0x498466(0xb9)]:_0x40db4c,'options':On,'onChange':_0x590ef7=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'point':{'shape':_0x590ef7}}})})]}),_0x364b80(_0x3554c1,{'label':'Point\x20size','value':String((_0x110ac9=(_0x4cbffe=_0x37f16f[_0x498466(0x1e9)])==null||(_0x4cbffe=_0x4cbffe[_0x498466(0x27d)])==null||(_0x4cbffe=_0x4cbffe[_0x498466(0x2de)])==null?void 0x0:_0x4cbffe['size'])==null?_0x29dc40[_0x498466(0x2de)][_0x498466(0x117)]:_0x110ac9),'options':kn,'onChange':_0x4d28d4=>_0x37f16f['onStyleChange']({'allSeriesStyle':{'point':{'size':Number(_0x4d28d4)}}})}),_0x364b80(_0x38999c,{'checked':(_0xe54c15=(_0xf35adb=_0x37f16f[_0x498466(0x1e9)])==null||(_0xf35adb=_0xf35adb['allSeriesStyle'])==null||(_0xf35adb=_0xf35adb[_0x498466(0xf6)])==null?void 0x0:_0xf35adb[_0x498466(0x266)])==null?!0x1:_0xe54c15,'label':_0x4c0370['t'](_0x498466(0x1e6)),'onChange':_0x15f67b=>_0x37f16f['onStyleChange']({'allSeriesStyle':{'label':{'visible':_0x15f67b}}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0x2f0),'value':(_0xad223a=(_0x3edcde=_0x37f16f[_0x498466(0x1e9)])==null||(_0x3edcde=_0x3edcde[_0x498466(0x27d)])==null||(_0x3edcde=_0x3edcde[_0x498466(0xf6)])==null?void 0x0:_0x3edcde['position'])==null?_0x5cf5d3['Auto']:_0xad223a,'options':xn,'onChange':_0x3249d1=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'label':{'position':_0x3249d1}}})}),_0x364b80(_0xcd5dc9,{'label':_0x498466(0x15a),'min':0x8,'value':(_0x12c5b2=(_0x5ac399=_0x37f16f['style'])==null||(_0x5ac399=_0x5ac399[_0x498466(0x27d)])==null||(_0x5ac399=_0x5ac399[_0x498466(0xf6)])==null?void 0x0:_0x5ac399[_0x498466(0x2a1)])==null?_0x29dc40[_0x498466(0x1f8)][_0x498466(0x2a1)]:_0x12c5b2,'onChange':_0x4637d7=>_0x37f16f[_0x498466(0x156)]({'allSeriesStyle':{'label':{'fontSize':_0x4637d7}}})})]})}],['lineAndArea',{'label':'Line\x20and\x20area','children':_0x364b80(_0x498466(0x24d),{'className':_0x498466(0x282),'children':_0x364b80(_0x3554c1,{'label':_0x498466(0x161),'value':(_0x67f18a=(_0x4a9def=_0x37f16f[_0x498466(0x1e9)])==null||(_0x4a9def=_0x4a9def[_0x498466(0x26c)])==null?void 0x0:_0x4a9def[_0x498466(0xa4)])==null?_0x3dcb2e[_0x498466(0x190)]:_0x67f18a,'options':[{'label':'Line','value':_0x3dcb2e['Line']},{'label':_0x498466(0xc7),'value':_0x3dcb2e[_0x498466(0xc7)]},{'label':_0x498466(0x103),'value':_0x3dcb2e['Step']}],'onChange':_0x1dddf4=>_0x37f16f[_0x498466(0x156)]({'area':{'lineStyle':_0x1dddf4}})})})}],[_0x498466(0x200),{'label':_0x4c0370['t'](_0x498466(0x2aa)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x1c0),'value':String((_0x2bb77f=(_0x16ad92=_0x37f16f[_0x498466(0x1e9)])==null||(_0x16ad92=_0x16ad92['pie'])==null?void 0x0:_0x16ad92[_0x498466(0x313)])==null?0x0:_0x2bb77f),'options':[0x0,0.25,0.5,0.75]['map'](_0x40cafe=>({'label':_0x40cafe*0x64+'%','value':String(_0x40cafe)})),'onChange':_0x3b860c=>_0x37f16f[_0x498466(0x156)]({'pie':{'doughnutHole':Number(_0x3b860c)}})}),_0x364b80(_0x38999c,{'checked':(_0x6ec265=(_0x4c8fc3=_0x37f16f[_0x498466(0x1e9)])==null||(_0x4c8fc3=_0x4c8fc3[_0x498466(0x200)])==null||(_0x4c8fc3=_0x4c8fc3[_0x498466(0xef)])==null?void 0x0:_0x4c8fc3[_0x498466(0x266)])==null?!0x0:_0x6ec265,'label':_0x4c0370['t']('docs-chart-ui.showDataLabels'),'onChange':_0x2d60b5=>_0x37f16f[_0x498466(0x156)]({'pie':{'labelStyle':{'visible':_0x2d60b5}}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0x2f0),'value':(_0x32df96=(_0x3bf34d=_0x37f16f['style'])==null||(_0x3bf34d=_0x3bf34d['pie'])==null||(_0x3bf34d=_0x3bf34d[_0x498466(0xef)])==null?void 0x0:_0x3bf34d[_0x498466(0x2e8)])==null?_0x5a527[_0x498466(0x273)]:_0x32df96,'options':Sn,'onChange':_0x51e867=>_0x37f16f[_0x498466(0x156)]({'pie':{'labelStyle':{'position':_0x51e867}}})}),_0x364b80(_0x498466(0x24d),{'className':_0x498466(0x147),'children':An[_0x498466(0x1d1)](_0x2156f7=>_0x2156f7[_0x498466(0x1a4)]!==_0x4e1e24[_0x498466(0x158)])['map'](_0x1ea965=>{const _0x3dc139=_0x498466;var _0x43b762,_0x52e15d;let _0xf0715f=(_0x43b762=(_0x52e15d=_0x37f16f[_0x3dc139(0x1e9)])==null||(_0x52e15d=_0x52e15d[_0x3dc139(0x200)])==null||(_0x52e15d=_0x52e15d[_0x3dc139(0xef)])==null?void 0x0:_0x52e15d[_0x3dc139(0x12c)])==null?_0x29dc40['pie'][_0x3dc139(0xd5)]:_0x43b762;return _0x364b80(_0x55e9bf,{'checked':(_0xf0715f&_0x1ea965[_0x3dc139(0x1a4)])===_0x1ea965[_0x3dc139(0x1a4)],'onChange':()=>_0x37f16f['onStyleChange']({'pie':{'labelStyle':{'contentType':Hn(_0xf0715f,_0x1ea965[_0x3dc139(0x1a4)])}}}),'children':_0x1ea965[_0x3dc139(0xf6)]},_0x1ea965[_0x3dc139(0x1a4)]);})}),_0x364b80(_0x38999c,{'checked':(_0x344d6c=(_0x314567=_0x37f16f[_0x498466(0x1e9)])==null||(_0x314567=_0x314567[_0x498466(0x200)])==null?void 0x0:_0x314567[_0x498466(0x229)])==null?!0x0:_0x344d6c,'label':_0x498466(0x31b),'onChange':_0x5dfa51=>_0x37f16f[_0x498466(0x156)]({'pie':{'showLabelLine':_0x5dfa51}})}),_0x364b80(_0x38999c,{'checked':(_0x2e04b6=(_0x425381=_0x37f16f[_0x498466(0x1e9)])==null||(_0x425381=_0x425381[_0x498466(0x200)])==null?void 0x0:_0x425381['rosePie'])==null?!0x1:_0x2e04b6,'label':_0x498466(0x25e),'onChange':_0x7c1bc7=>_0x37f16f['onStyleChange']({'pie':{'rosePie':_0x7c1bc7}})}),_0x364b80(_0x38999c,{'checked':(_0x1ab08a=(_0x592020=_0x37f16f[_0x498466(0x1e9)])==null||(_0x592020=_0x592020[_0x498466(0x200)])==null?void 0x0:_0x592020[_0x498466(0x297)])==null?!0x1:_0x1ab08a,'label':'Half\x20pie','onChange':_0x49b43f=>_0x37f16f['onStyleChange']({'pie':{'isHalfPie':_0x49b43f}})})]})}],[_0x498466(0xd1),{'label':_0x4c0370['t']('docs-chart-ui.chartTypes.funnel'),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0xcd5dc9,{'label':_0x498466(0x13d),'value':(_0xb88252=(_0x34a8b1=_0x37f16f[_0x498466(0x1e9)])==null||(_0x34a8b1=_0x34a8b1['funnel'])==null?void 0x0:_0x34a8b1[_0x498466(0x25b)])==null?_0x29dc40[_0x498466(0xd1)][_0x498466(0x25b)]:_0xb88252,'min':0x0,'onChange':_0x3f2739=>_0x37f16f[_0x498466(0x156)]({'funnel':{'gap':_0x3f2739}})}),_0x364b80(_0x38999c,{'checked':(_0x54ce5c=(_0x4dfad2=_0x37f16f[_0x498466(0x1e9)])==null||(_0x4dfad2=_0x4dfad2['funnel'])==null?void 0x0:_0x4dfad2[_0x498466(0x2b4)])==null?!0x1:_0x54ce5c,'label':_0x4c0370['t'](_0x498466(0x1eb)),'onChange':_0x2771ad=>_0x37f16f[_0x498466(0x156)]({'funnel':{'useAbsValue':_0x2771ad}})})]})}],['wordCloud',{'label':_0x4c0370['t'](_0x498466(0x1d2)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x113),'value':(_0xc18a19=(_0x19b442=_0x37f16f[_0x498466(0x1e9)])==null||(_0x19b442=_0x19b442[_0x498466(0x137)])==null?void 0x0:_0x19b442['shape'])==null?_0x29dc40[_0x498466(0x137)][_0x498466(0xb9)]:_0xc18a19,'options':jn,'onChange':_0x4456b0=>_0x37f16f['onStyleChange']({'wordCloud':{'shape':_0x4456b0,'maskImage':_0x4456b0}})}),_0x364b80(_0x38999c,{'checked':(_0x4cf7fc=(_0xedce11=_0x37f16f[_0x498466(0x1e9)])==null||(_0xedce11=_0xedce11[_0x498466(0x137)])==null?void 0x0:_0xedce11[_0x498466(0x179)])==null?_0x29dc40[_0x498466(0x137)][_0x498466(0x179)]:_0x4cf7fc,'label':'Repeat\x20words','onChange':_0x482753=>_0x37f16f[_0x498466(0x156)]({'wordCloud':{'repeat':_0x482753}})})]})}],[_0x498466(0x221),{'label':_0x4c0370['t']('docs-chart-ui.chartTypes.radar'),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':'Shape','value':(_0x19b6fc=(_0x1d66e2=_0x37f16f[_0x498466(0x1e9)])==null||(_0x1d66e2=_0x1d66e2[_0x498466(0x221)])==null?void 0x0:_0x1d66e2['shape'])==null?_0x29dc40[_0x498466(0x221)][_0x498466(0xb9)]:_0x19b6fc,'options':Mn,'onChange':_0x2d3747=>_0x37f16f[_0x498466(0x156)]({'radar':{'shape':_0x2d3747}})}),_0x364b80(_0x38999c,{'checked':(_0x165a43=(_0x4a7a3f=_0x37f16f['style'])==null||(_0x4a7a3f=_0x4a7a3f['radar'])==null?void 0x0:_0x4a7a3f[_0x498466(0x98)])==null?!0x1:_0x165a43,'label':_0x498466(0x1b3),'onChange':_0x55e19f=>_0x37f16f[_0x498466(0x156)]({'radar':{'fill':_0x55e19f}})})]})}],[_0x498466(0x146),{'label':_0x4c0370['t']('docs-chart-ui.chartTypes.waterfall'),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x1db),'value':(_0x3644d7=(_0x332784=_0x37f16f[_0x498466(0x1e9)])==null||(_0x332784=_0x332784[_0x498466(0x146)])==null?void 0x0:_0x332784['stackType'])==null?_0x29dc40[_0x498466(0x146)]['stackType']:_0x3644d7,'options':Nn,'onChange':_0x2b4eba=>_0x37f16f['onStyleChange']({'waterfall':{'stackType':_0x2b4eba}})}),_0x364b80(_0x38999c,{'checked':(_0x3ed04e=(_0x34465c=_0x37f16f[_0x498466(0x1e9)])==null||(_0x34465c=_0x34465c[_0x498466(0x146)])==null?void 0x0:_0x34465c[_0x498466(0x306)])==null?_0x29dc40[_0x498466(0x146)][_0x498466(0x306)]:_0x3ed04e,'label':_0x498466(0xb5),'onChange':_0x1b0913=>_0x37f16f[_0x498466(0x156)]({'waterfall':{'useSubtotal':_0x1b0913}})})]})}],[_0x498466(0x17f),{'label':_0x4c0370['t'](_0x498466(0x1ba)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':'Visual\x20map','value':(_0x21bd90=(_0x56263e=_0x37f16f[_0x498466(0x1e9)])==null||(_0x56263e=_0x56263e[_0x498466(0x17f)])==null?void 0x0:_0x56263e['visualMapType'])==null?_0x29dc40[_0x498466(0x17f)][_0x498466(0xa9)]:_0x21bd90,'options':Pn,'onChange':_0x4c71b8=>_0x37f16f[_0x498466(0x156)]({'heatmap':{'visualMapType':_0x4c71b8}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':'Min','value':(_0x182656=_0x37f16f[_0x498466(0x1e9)])==null||(_0x182656=_0x182656['heatmap'])==null?void 0x0:_0x182656[_0x498466(0x329)],'onChange':_0x3268a5=>_0x37f16f[_0x498466(0x156)]({'heatmap':{'min':_0x3268a5}})}),_0x364b80(_0xcd5dc9,{'label':_0x498466(0x180),'value':(_0x3a8f81=_0x37f16f[_0x498466(0x1e9)])==null||(_0x3a8f81=_0x3a8f81[_0x498466(0x17f)])==null?void 0x0:_0x3a8f81['max'],'onChange':_0x7eb036=>_0x37f16f['onStyleChange']({'heatmap':{'max':_0x7eb036}})})]})]})}],[_0x498466(0x235),{'label':_0x4c0370['t'](_0x498466(0x27c)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0x31d),'value':(_0x3cbc83=(_0x5f3e61=_0x37f16f['style'])==null||(_0x5f3e61=_0x5f3e61[_0x498466(0x235)])==null?void 0x0:_0x5f3e61[_0x498466(0x2c6)])==null?_0x38a17e[_0x498466(0x32f)]:_0x3cbc83,'options':Fn,'onChange':_0x53223b=>_0x37f16f[_0x498466(0x156)]({'relation':{'layout':_0x53223b}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0x27b),'value':(_0x5f4fe6=(_0xafeca0=_0x37f16f['style'])==null||(_0xafeca0=_0xafeca0[_0x498466(0x235)])==null?void 0x0:_0xafeca0[_0x498466(0x186)])==null?_0x29dc40['relation'][_0x498466(0x186)]:_0x5f4fe6,'options':On,'onChange':_0xe10dfe=>_0x37f16f['onStyleChange']({'relation':{'nodeShape':_0xe10dfe}})}),_0x364b80(_0x38999c,{'checked':(_0x558b77=(_0x394ed8=_0x37f16f['style'])==null||(_0x394ed8=_0x394ed8[_0x498466(0x235)])==null?void 0x0:_0x394ed8[_0x498466(0xda)])==null?!0x1:_0x558b77,'label':_0x498466(0x1b2),'onChange':_0x3b876b=>_0x37f16f[_0x498466(0x156)]({'relation':{'useValueAsSymbolSize':_0x3b876b}})})]})}],[_0x498466(0x1b7),{'label':_0x4c0370['t']('docs-chart-ui.legend'),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x3554c1,{'label':_0x498466(0xb2),'value':(_0x2d77da=(_0x180a22=_0x37f16f[_0x498466(0x1e9)])==null||(_0x180a22=_0x180a22[_0x498466(0x1b7)])==null?void 0x0:_0x180a22[_0x498466(0x2e8)])==null?_0x3e4f88[_0x498466(0x2a7)]:_0x2d77da,'options':yn,'onChange':_0x3eae9c=>_0x37f16f[_0x498466(0x156)]({'legend':{'position':_0x3eae9c}})}),_0x364b80(_0x2148db,{'chartType':_0x37f16f[_0x498466(0x319)],'position':(_0x26c09a=_0x37f16f[_0x498466(0x1e9)])==null||(_0x26c09a=_0x26c09a['legend'])==null?void 0x0:_0x26c09a[_0x498466(0x2e8)],'wrap':(_0x54e0e3=_0x37f16f[_0x498466(0x1e9)])==null||(_0x54e0e3=_0x54e0e3[_0x498466(0x1b7)])==null?void 0x0:_0x54e0e3[_0x498466(0x23f)],'onChange':_0x438b77=>_0x37f16f[_0x498466(0x156)]({'legend':{'wrap':_0x438b77}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0x250),'value':(_0x1a8baf=(_0x532e17=_0x37f16f['style'])==null||(_0x532e17=_0x532e17[_0x498466(0x1b7)])==null?void 0x0:_0x532e17[_0x498466(0x1f5)])==null?_0x29dc40['legend'][_0x498466(0x1f5)]:_0x1a8baf,'options':wn,'onChange':_0x7e8ff2=>_0x37f16f['onStyleChange']({'legend':{'selectMode':_0x7e8ff2}})}),_0x364b80(_0xcd5dc9,{'label':_0x498466(0x15a),'min':0x8,'value':(_0x571ef0=(_0x64edc8=_0x37f16f[_0x498466(0x1e9)])==null||(_0x64edc8=_0x64edc8[_0x498466(0x1b7)])==null||(_0x64edc8=_0x64edc8['label'])==null?void 0x0:_0x64edc8['fontSize'])==null?_0x29dc40[_0x498466(0x1f8)][_0x498466(0x2a1)]:_0x571ef0,'onChange':_0x1f7ce8=>_0x37f16f[_0x498466(0x156)]({'legend':{'label':{'fontSize':_0x1f7ce8}}})})]})}],[_0x498466(0x331),{'label':_0x4c0370['t'](_0x498466(0xe6)),'children':_0x1fb7ef('div',{'className':_0x498466(0x282),'children':[_0x364b80(_0x38999c,{'checked':(_0x2bf190=(_0x15406e=_0x37f16f[_0x498466(0x1e9)])==null||(_0x15406e=_0x15406e[_0x498466(0xc6)])==null?void 0x0:_0x15406e[_0x498466(0x10b)])==null?!0x0:_0x2bf190,'label':_0x4c0370['t'](_0x498466(0x124)),'onChange':_0x4c45f3=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'lineVisible':_0x4c45f3}})}),_0x364b80(_0x38999c,{'checked':(_0x5495d2=(_0x5310ad=_0x37f16f['style'])==null||(_0x5310ad=_0x5310ad[_0x498466(0xc6)])==null||(_0x5310ad=_0x5310ad['label'])==null?void 0x0:_0x5310ad[_0x498466(0x266)])==null?!0x0:_0x5495d2,'label':_0x4c0370['t'](_0x498466(0x11c)),'onChange':_0x3378a7=>_0x37f16f['onStyleChange']({'xAxis':{'label':{'visible':_0x3378a7}}})}),_0x364b80(_0x38999c,{'checked':(_0xe23267=(_0x1c4758=_0x37f16f[_0x498466(0x1e9)])==null||(_0x1c4758=_0x1c4758[_0x498466(0xc6)])==null?void 0x0:_0x1c4758['reverse'])==null?!0x1:_0xe23267,'label':_0x4c0370['t']('docs-chart-ui.reverseAxis'),'onChange':_0x428f7b=>_0x37f16f['onStyleChange']({'xAxis':{'reverse':_0x428f7b}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':_0x498466(0x134),'value':(_0x430b96=_0x37f16f[_0x498466(0x1e9)])==null||(_0x430b96=_0x430b96[_0x498466(0xc6)])==null?void 0x0:_0x430b96[_0x498466(0x329)],'onChange':_0x2998eb=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'min':_0x2998eb}})}),_0x364b80(_0xcd5dc9,{'label':'Max','value':(_0xe74a3f=_0x37f16f[_0x498466(0x1e9)])==null||(_0xe74a3f=_0xe74a3f[_0x498466(0xc6)])==null?void 0x0:_0xe74a3f[_0x498466(0x328)],'onChange':_0x7e3994=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'max':_0x7e3994}})})]}),_0x364b80(_0x3c41c1,{'label':'Number/date\x20format','value':(_0x5c82fd=(_0xef723a=_0x37f16f[_0x498466(0x1e9)])==null||(_0xef723a=_0xef723a[_0x498466(0xc6)])==null?void 0x0:_0xef723a[_0x498466(0xad)])==null?'':_0x5c82fd,'placeholder':_0x498466(0x110),'onChange':_0x134b44=>_0x37f16f['onStyleChange']({'xAxis':{'format':_0x134b44}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':_0x498466(0x318),'value':(_0x132ba1=(_0x376b7e=_0x37f16f['style'])==null||(_0x376b7e=_0x376b7e['xAxis'])==null||(_0x376b7e=_0x376b7e[_0x498466(0xf6)])==null?void 0x0:_0x376b7e['rotate'])==null?0x0:_0x132ba1,'onChange':_0xbd7a53=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'label':{'rotate':_0xbd7a53}}})}),_0x364b80(_0xcd5dc9,{'label':'Label\x20font\x20size','min':0x8,'value':(_0x345942=(_0x569dd=_0x37f16f[_0x498466(0x1e9)])==null||(_0x569dd=_0x569dd['xAxis'])==null||(_0x569dd=_0x569dd[_0x498466(0xf6)])==null?void 0x0:_0x569dd['fontSize'])==null?_0x29dc40[_0x498466(0x1f8)]['fontSize']:_0x345942,'onChange':_0x470836=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'label':{'fontSize':_0x470836}}})})]}),_0x364b80(_0x38999c,{'checked':(_0x5c7ab7=(_0x5287b2=_0x37f16f[_0x498466(0x1e9)])==null||(_0x5287b2=_0x5287b2[_0x498466(0xc6)])==null||(_0x5287b2=_0x5287b2[_0x498466(0x28b)])==null?void 0x0:_0x5287b2[_0x498466(0x266)])==null?!0x1:_0x5c7ab7,'label':_0x498466(0x25d),'onChange':_0x1c94e0=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'tick':{'visible':_0x1c94e0}}})})]})}],[_0x498466(0x129),{'label':_0x4c0370['t'](_0x498466(0xac)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x282),'children':[_0x364b80(_0x38999c,{'checked':(_0x4ed9d5=(_0x38b300=_0x37f16f[_0x498466(0x1e9)])==null||(_0x38b300=_0x38b300[_0x498466(0x2c8)])==null?void 0x0:_0x38b300[_0x498466(0x10b)])==null?!0x0:_0x4ed9d5,'label':_0x4c0370['t'](_0x498466(0x124)),'onChange':_0x33af00=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'lineVisible':_0x33af00}})}),_0x364b80(_0x38999c,{'checked':(_0x41e92e=(_0x2402cf=_0x37f16f[_0x498466(0x1e9)])==null||(_0x2402cf=_0x2402cf['yAxis'])==null||(_0x2402cf=_0x2402cf[_0x498466(0xf6)])==null?void 0x0:_0x2402cf[_0x498466(0x266)])==null?!0x0:_0x41e92e,'label':_0x4c0370['t'](_0x498466(0x11c)),'onChange':_0x5d3fff=>_0x37f16f['onStyleChange']({'yAxis':{'label':{'visible':_0x5d3fff}}})}),_0x364b80(_0x38999c,{'checked':(_0x108465=(_0x2e930a=_0x37f16f[_0x498466(0x1e9)])==null||(_0x2e930a=_0x2e930a[_0x498466(0x2c8)])==null?void 0x0:_0x2e930a[_0x498466(0x15f)])==null?!0x1:_0x108465,'label':_0x4c0370['t'](_0x498466(0x16a)),'onChange':_0x2690c2=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'reverse':_0x2690c2}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':_0x498466(0x134),'value':(_0x20052f=_0x37f16f['style'])==null||(_0x20052f=_0x20052f[_0x498466(0x2c8)])==null?void 0x0:_0x20052f[_0x498466(0x329)],'onChange':_0x29fa19=>_0x37f16f['onStyleChange']({'yAxis':{'min':_0x29fa19}})}),_0x364b80(_0xcd5dc9,{'label':_0x498466(0x180),'value':(_0x13e13f=_0x37f16f[_0x498466(0x1e9)])==null||(_0x13e13f=_0x13e13f[_0x498466(0x2c8)])==null?void 0x0:_0x13e13f[_0x498466(0x328)],'onChange':_0x1a9994=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'max':_0x1a9994}})})]}),_0x364b80(_0x3c41c1,{'label':'Number/date\x20format','value':(_0x5399ff=(_0x194280=_0x37f16f['style'])==null||(_0x194280=_0x194280[_0x498466(0x2c8)])==null?void 0x0:_0x194280[_0x498466(0xad)])==null?'':_0x5399ff,'placeholder':'e.g.\x200.00…','onChange':_0x59481b=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'format':_0x59481b}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':'Label\x20rotate','value':(_0xf83c2f=(_0x108ed8=_0x37f16f[_0x498466(0x1e9)])==null||(_0x108ed8=_0x108ed8[_0x498466(0x2c8)])==null||(_0x108ed8=_0x108ed8[_0x498466(0xf6)])==null?void 0x0:_0x108ed8[_0x498466(0x236)])==null?0x0:_0xf83c2f,'onChange':_0x255e20=>_0x37f16f['onStyleChange']({'yAxis':{'label':{'rotate':_0x255e20}}})}),_0x364b80(_0xcd5dc9,{'label':'Label\x20font\x20size','min':0x8,'value':(_0x21c0fe=(_0x44b683=_0x37f16f[_0x498466(0x1e9)])==null||(_0x44b683=_0x44b683[_0x498466(0x2c8)])==null||(_0x44b683=_0x44b683[_0x498466(0xf6)])==null?void 0x0:_0x44b683[_0x498466(0x2a1)])==null?_0x29dc40[_0x498466(0x1f8)]['fontSize']:_0x21c0fe,'onChange':_0x2d13d1=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'label':{'fontSize':_0x2d13d1}}})})]}),_0x364b80(_0x38999c,{'checked':(_0x5dd092=(_0x39afe4=_0x37f16f[_0x498466(0x1e9)])==null||(_0x39afe4=_0x39afe4[_0x498466(0x2c8)])==null||(_0x39afe4=_0x39afe4[_0x498466(0x28b)])==null?void 0x0:_0x39afe4[_0x498466(0x266)])==null?!0x1:_0x5dd092,'label':_0x498466(0x25d),'onChange':_0x4307ae=>_0x37f16f['onStyleChange']({'yAxis':{'tick':{'visible':_0x4307ae}}})})]})}],[_0x498466(0xea),{'label':_0x4c0370['t'](_0x498466(0x308)),'children':_0x1fb7ef('div',{'className':_0x498466(0x8d),'children':[_0x364b80(_0x38999c,{'checked':(_0x145fdf=(_0x46a2d9=_0x37f16f[_0x498466(0x1e9)])==null||(_0x46a2d9=_0x46a2d9['xAxis'])==null||(_0x46a2d9=_0x46a2d9[_0x498466(0x2ec)])==null?void 0x0:_0x46a2d9[_0x498466(0x266)])==null?!0x0:_0x145fdf,'label':_0x4c0370['t']('docs-chart-ui.horizontalAxis'),'onChange':_0x684017=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'gridLine':{'visible':_0x684017}}})}),_0x364b80(_0x38999c,{'checked':(_0x8afb8d=(_0x1c37d7=_0x37f16f['style'])==null||(_0x1c37d7=_0x1c37d7[_0x498466(0x2c8)])==null||(_0x1c37d7=_0x1c37d7['gridLine'])==null?void 0x0:_0x1c37d7[_0x498466(0x266)])==null?!0x0:_0x8afb8d,'label':_0x4c0370['t'](_0x498466(0xac)),'onChange':_0x1db9aa=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'gridLine':{'visible':_0x1db9aa}}})}),_0x1fb7ef(_0x166931,{'children':[_0x364b80(_0xcd5dc9,{'label':_0x498466(0x1ee),'min':0x0,'value':(_0xfda755=(_0x500119=_0x37f16f[_0x498466(0x1e9)])==null||(_0x500119=_0x500119['xAxis'])==null||(_0x500119=_0x500119[_0x498466(0x2ec)])==null?void 0x0:_0x500119['width'])==null?0x1:_0xfda755,'onChange':_0x242ddb=>_0x37f16f[_0x498466(0x156)]({'xAxis':{'gridLine':{'width':_0x242ddb}}})}),_0x364b80(_0xcd5dc9,{'label':'Vertical\x20width','min':0x0,'value':(_0x545e8f=(_0x143258=_0x37f16f[_0x498466(0x1e9)])==null||(_0x143258=_0x143258[_0x498466(0x2c8)])==null||(_0x143258=_0x143258[_0x498466(0x2ec)])==null?void 0x0:_0x143258[_0x498466(0x2d9)])==null?0x1:_0x545e8f,'onChange':_0x3509f4=>_0x37f16f[_0x498466(0x156)]({'yAxis':{'gridLine':{'width':_0x3509f4}}})})]})]})}],['indicatorLine',{'label':_0x4c0370['t'](_0x498466(0x310)),'children':_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x8d),'children':[_0x364b80(_0x5758f7,{'label':_0x498466(0x28e),'value':(_0x54e9f6=_0x37f16f[_0x498466(0x1e9)])==null||(_0x54e9f6=_0x54e9f6[_0x498466(0x1dd)])==null?void 0x0:_0x54e9f6[_0x498466(0x167)],'onChange':_0x177f53=>_0x37f16f[_0x498466(0x156)]({'tooltip':{'indicatorLineColor':_0x177f53==null?_0x498466(0x2d2):_0x177f53}})}),_0x364b80(_0x3554c1,{'label':_0x498466(0x2bb),'value':(_0x3fe775=(_0x2656b9=_0x37f16f[_0x498466(0x1e9)])==null||(_0x2656b9=_0x2656b9[_0x498466(0x1dd)])==null?void 0x0:_0x2656b9[_0x498466(0x15b)])==null?_0x29dc40[_0x498466(0x15b)]:_0x3fe775,'options':Tn,'onChange':_0x8856d9=>_0x37f16f['onStyleChange']({'tooltip':{'indicatorLineType':_0x8856d9}})})]})}]]),_0x16bcd1=_0x204f42['map'](_0x5d6240=>_0x141868['get'](_0x5d6240))[_0x498466(0x1d1)](_0x413726=>!!_0x413726);return _0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x20a),'children':[_0x364b80(_0x152dfe,{'className':_0x498466(0x10e),'value':_0x5c56fb,'items':[{'label':_0x4c0370['t'](_0x498466(0x1fe)),'value':0x0},{'label':_0x4c0370['t'](_0x498466(0x31e)),'value':0x1},{'label':_0x4c0370['t']('docs-chart-ui.data'),'value':0x2}],'onChange':_0x183d85}),_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x294),'children':[_0x5c56fb===0x0&&_0x1fb7ef(_0x498466(0x24d),{'className':_0x498466(0x122),'children':[_0x1fb7ef(_0x498466(0x24d),{'children':[_0x364b80(_0x48f3ac,{'title':_0x4c0370['t'](_0x498466(0x9f))}),_0x364b80(_0x105e16,{'className':_0x498466(0x139),'value':String(_0x37f16f[_0x498466(0x319)]),'options':_0x4061d0,'onChange':_0x16e87a=>_0x37f16f[_0x498466(0x2a2)](Number(_0x16e87a))})]}),_0x1fb7ef(_0x498466(0x24d),{'children':[_0x364b80(_0x48f3ac,{'title':'Themes'}),_0x364b80(_0x105e16,{'className':_0x498466(0x139),'value':(_0x4e6193=(_0x2c6a0d=_0x37f16f['style'])==null?void 0x0:_0x2c6a0d[_0x498466(0xec)])==null?(_0x12551a=_0x4ec306[0x0])==null?void 0x0:_0x12551a[_0x498466(0x1a4)]:_0x4e6193,'options':_0x4ec306,'onChange':_0x398f9b=>_0x37f16f[_0x498466(0x156)]({'theme':_0x398f9b})})]}),_0x364b80(_0x498466(0x24d),{'className':_0x498466(0x19e),'children':_0x364b80(_0x55e9bf,{'checked':(_0x2ae48b=(_0xda7d18=_0x37f16f['style'])==null?void 0x0:_0xda7d18[_0x498466(0x21d)])==null?!0x1:_0x2ae48b,'onChange':_0x145881=>_0x37f16f[_0x498466(0x156)]({'gradientFill':!!_0x145881}),'children':_0x498466(0x280)})}),_0x5754f2&&_0x1fb7ef(_0x498466(0x24d),{'children':[_0x364b80(_0x48f3ac,{'title':'Stack'}),_0x364b80(_0x105e16,{'className':_0x498466(0x139),'value':Rn(_0x37f16f[_0x498466(0x319)]),'options':Cn,'onChange':_0x11258b=>_0x37f16f[_0x498466(0x2a2)](zn(_0x37f16f['chartType'],_0x11258b))})]}),_0x1fb7ef(_0x498466(0x24d),{'children':[_0x364b80(_0x48f3ac,{'title':_0x498466(0x17a)}),_0x364b80(_0x105e16,{'className':_0x498466(0x139),'value':String(_0x1874d8),'options':_0x5ef994,'onChange':_0x5984cc=>_0x37f16f[_0x498466(0x26e)]({'chartContext':{'categoryIndex':Number(_0x5984cc)}})})]}),_0x1fb7ef(_0x498466(0x24d),{'children':[_0x364b80(_0x48f3ac,{'title':_0x4c0370['t']('docs-chart-ui.series')}),_0x1fb7ef('div',{'className':_0x498466(0x120),'children':[_0x466d73[_0x498466(0x2e9)]((_0x248d37,_0x32f27d)=>_0x1fb7ef(_0x498466(0x24d),{'className':'univer-mb-2\x20univer-flex\x20univer-items-center','children':[_0x364b80(_0x105e16,{'className':_0x498466(0x139),'value':String(_0x248d37),'options':_0x588370,'onChange':_0x45a0d0=>_0x439154(_0x32f27d,_0x45a0d0)}),_0x364b80('div',{'className':_0x498466(0x126),'onClick':()=>_0x5b5cea(_0x32f27d),'children':_0x364b80(_0x406da9,{})})]},_0x248d37+'-'+_0x32f27d)),_0x364b80(_0x21674b,{'className':_0x498466(0xa2),'items':_0x588370[_0x498466(0x1d1)](_0x46055f=>!_0x466d73[_0x498466(0x1e1)](Number(_0x46055f[_0x498466(0x1a4)])))[_0x498466(0x2e9)](_0x25beea=>({'type':'item','children':_0x25beea[_0x498466(0xf6)],'onSelect':()=>{const _0x4d0a59=_0x498466;_0x37f16f['onContextChange']({'chartContext':{'seriesIndexes':[..._0x466d73,Number(_0x25beea[_0x4d0a59(0x1a4)])]}});}})),'children':_0x1fb7ef('a',{'className':_0x498466(0x23b),'children':[_0x364b80(_0x255c00,{'className':_0x498466(0x112)}),_0x364b80(_0x498466(0x2f8),{'className':_0x498466(0x262),'children':_0x498466(0x2ba)})]})})]})]}),_0x364b80('div',{'className':_0x498466(0x1a2),'children':_0x364b80(_0x286a24,{'size':_0x498466(0x19f),'onClick':()=>{const _0x5ee8e1=_0x498466;_0x37f16f[_0x5ee8e1(0x26e)]({'orient':_0x38e3f3[_0x5ee8e1(0xfb)]===_0x5ee8e1(0x2c2)?_0x5ee8e1(0x203):'row'});},'children':'Switch\x20to\x20row/column'})})]}),_0x5c56fb===0x1&&_0x364b80(_0x2900d2,{'className':_0x498466(0x2f6),'items':_0x16bcd1}),_0x5c56fb===0x2&&_0x364b80(_0x498466(0x24d),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-px-1','children':_0x364b80(dn,{'values':_0x37f16f[_0x498466(0xde)],'onChange':_0x37f16f[_0x498466(0x2eb)]})})]}),_0x37f16f[_0x498466(0xc0)]&&_0x364b80(_0x498466(0x24d),{'className':_0x498466(0x1cb),'children':_0x364b80(_0x286a24,{'type':_0x498466(0x1aa),'variant':_0x498466(0x2f1),'onClick':_0x37f16f[_0x498466(0xc0)],'children':_0x4c0370['t']('docs-chart-ui.close')})})]});}function Wn(_0x2b6662){'@babel/helpers - typeof';const _0x35c3f0=_0x480d5a;return Wn=typeof Symbol=='function'&&typeof Symbol[_0x35c3f0(0x1fd)]==_0x35c3f0(0x32e)?function(_0x5962cd){return typeof _0x5962cd;}:function(_0xe1a3b0){const _0x3f5e8f=_0x35c3f0;return _0xe1a3b0&&typeof Symbol=='function'&&_0xe1a3b0[_0x3f5e8f(0x9e)]===Symbol&&_0xe1a3b0!==Symbol[_0x3f5e8f(0x30e)]?_0x3f5e8f(0x32e):typeof _0xe1a3b0;},Wn(_0x2b6662);}function J(_0x21efdb,_0x104af7){const _0x3aab92=_0x480d5a;if(Wn(_0x21efdb)!=_0x3aab92(0xcb)||!_0x21efdb)return _0x21efdb;var _0x576aa5=_0x21efdb[Symbol['toPrimitive']];if(_0x576aa5!==void 0x0){var _0x3acd10=_0x576aa5[_0x3aab92(0xbe)](_0x21efdb,_0x104af7||_0x3aab92(0x2f1));if(Wn(_0x3acd10)!=_0x3aab92(0xcb))return _0x3acd10;throw TypeError(_0x3aab92(0x247));}return(_0x104af7===_0x3aab92(0x206)?String:Number)(_0x21efdb);}function Gn(_0x577bd3){const _0x5561b0=_0x480d5a;var _0x1832f2=J(_0x577bd3,_0x5561b0(0x206));return Wn(_0x1832f2)==_0x5561b0(0x32e)?_0x1832f2:_0x1832f2+'';}function Y(_0x395f20,_0x4ad217,_0xb9cb8d){return(_0x4ad217=Gn(_0x4ad217))in _0x395f20?Object['defineProperty'](_0x395f20,_0x4ad217,{'value':_0xb9cb8d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x395f20[_0x4ad217]=_0xb9cb8d,_0x395f20;}var Kn=class extends _0x390937{constructor(_0x29dfee,_0x1f8624){const _0x599be4=_0x480d5a;super(_0x29dfee),this[_0x599be4(0x292)]=_0x1f8624,Y(this,_0x599be4(0x320),void 0x0);}[_0x480d5a(0x91)](){const _0x5e2587=_0x480d5a;return{'width':Math[_0x5e2587(0x328)](0x1,this['_rect'][_0x5e2587(0x2d9)]),'height':Math[_0x5e2587(0x328)](0x1,this['_rect'][_0x5e2587(0x2e5)])};}[_0x480d5a(0x1fb)](_0x25a7e4){}[_0x480d5a(0x175)](){return 0x1;}[_0x480d5a(0x219)](_0x515c98,_0x404c89){const _0xc2ca71=_0x480d5a;return this[_0xc2ca71(0x320)]=_0x91c1e7(_0x515c98),!0x0;}[_0x480d5a(0x21b)](){}['invalidateSnapshot'](){this['_dataUrl']=void 0x0;}[_0x480d5a(0x205)](){const _0x11d1da=_0x480d5a;return this[_0x11d1da(0x320)];}},qn=class extends _0x42a091{constructor(_0x41d4d0,_0x2dd7fe,_0x2ec181,_0xc39cfa,_0x787b92=!0x0){const _0x41392c=_0x480d5a;super(),this[_0x41392c(0x11a)]=_0x41d4d0,this[_0x41392c(0x32c)]=_0x2dd7fe,this[_0x41392c(0x303)]=_0x2ec181,this[_0x41392c(0x2e4)]=_0xc39cfa,this[_0x41392c(0xb4)]=_0x787b92,Y(this,_0x41392c(0x2cb),_0x2764f1[_0x41392c(0x20c)]),Y(this,'_mountNode',null),Y(this,_0x41392c(0x89),{});}[_0x480d5a(0x91)](){const _0x45b237=_0x480d5a;var _0x57d156;let _0x1fe466=(_0x57d156=this['_getRenderRect'])==null?void 0x0:_0x57d156[_0x45b237(0xbe)](this);if(_0x1fe466)return{'width':Math[_0x45b237(0x328)](0x1,_0x1fe466[_0x45b237(0x2d9)]),'height':Math[_0x45b237(0x328)](0x1,_0x1fe466[_0x45b237(0x2e5)])};let _0x35836b=this[_0x45b237(0x32c)][_0x45b237(0x2dd)]();return{'width':Math['max'](0x1,_0x35836b[_0x45b237(0x2d9)]),'height':Math['max'](0x1,_0x35836b[_0x45b237(0x2e5)])};}[_0x480d5a(0x1fb)](_0x48c3c4){const _0x48cada=_0x480d5a;this[_0x48cada(0x89)]=_0x48c3c4,this[_0x48cada(0x303)](this[_0x48cada(0x32c)],_0x48c3c4);}async[_0x480d5a(0x15e)](){const _0x1d5a32=_0x480d5a;if(!this[_0x1d5a32(0x22c)]){let _0x3e6297=document[_0x1d5a32(0x1d4)](_0x1d5a32(0x24d));_0x3e6297['style'][_0x1d5a32(0x2e8)]='relative',_0x3e6297[_0x1d5a32(0x1e9)]['border']='0',_0x3e6297['style'][_0x1d5a32(0x1dc)]='content-box',_0x3e6297[_0x1d5a32(0x1e9)][_0x1d5a32(0x16d)]=_0x1d5a32(0x142),_0x3e6297[_0x1d5a32(0x172)]=_0x1d5a32(0x104),this[_0x1d5a32(0x22c)]=_0x3e6297,this[_0x1d5a32(0x32c)]['appendChild'](_0x3e6297);}return this[_0x1d5a32(0x1d8)](),this[_0x1d5a32(0x22c)];}[_0x480d5a(0x13a)](){const _0x278f79=_0x480d5a;return!!(this['_mountNode']&&this[_0x278f79(0x32c)][_0x278f79(0x1bc)](this['_mountNode']));}[_0x480d5a(0x1d8)](){const _0xebef=_0x480d5a;let _0x2428c4=this[_0xebef(0x91)]();this[_0xebef(0xb4)]&&this['_setElementSize'](this['_host'],_0x2428c4),this[_0xebef(0x22c)]&&this[_0xebef(0x1a0)](this['_mountNode'],this['_getContentRect'](_0x2428c4));}[_0x480d5a(0x169)](){}[_0x480d5a(0x24f)](){}['dispose'](){const _0x2d6f03=_0x480d5a;var _0x542453;(_0x542453=this[_0x2d6f03(0x22c)])==null||_0x542453[_0x2d6f03(0x27a)](),this[_0x2d6f03(0x22c)]=null,super[_0x2d6f03(0x27f)]();}[_0x480d5a(0x1a0)](_0x1317bf,_0xe5c008){const _0x1d20af=_0x480d5a;_0x1317bf[_0x1d20af(0x1e9)][_0x1d20af(0x2d9)]=_0xe5c008[_0x1d20af(0x2d9)]+'px',_0x1317bf['style'][_0x1d20af(0x2e5)]=_0xe5c008[_0x1d20af(0x2e5)]+'px';}[_0x480d5a(0x1cd)](_0x166c1c){const _0x52ad60=_0x480d5a;if(!_0x3fd95d(this['_hostStyle']))return _0x166c1c;let _0x28e87b=_0x42e1a6(_0x166c1c,this[_0x52ad60(0x89)]);return{'width':_0x28e87b['width'],'height':_0x28e87b[_0x52ad60(0x2e5)]};}};const Jn=_0x4e4749('doc-chart.render-model');function Yn(_0x5784b0){const _0x2479e2=_0x480d5a;var _0x37089c;let _0x359abf=(_0x37089c=_0x5784b0[_0x2479e2(0x2fc)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x37089c[0x1];if(_0x359abf){let _0x141f9e=_0x359abf['length']===0x3?_0x359abf[_0x2479e2(0x11b)]('')[_0x2479e2(0x2e9)](_0x59eb1e=>''+_0x59eb1e+_0x59eb1e)['join'](''):_0x359abf;return _0x2479e2(0x109)+Number[_0x2479e2(0xb8)](_0x141f9e[_0x2479e2(0x13b)](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x141f9e['slice'](0x2,0x4),0x10)+',\x20'+Number[_0x2479e2(0xb8)](_0x141f9e[_0x2479e2(0x13b)](0x4,0x6),0x10)+')';}let _0x3b3d45=document[_0x2479e2(0x1d4)](_0x2479e2(0x2f8));return _0x3b3d45[_0x2479e2(0x1e9)][_0x2479e2(0x25c)]=_0x5784b0,_0x3b3d45['style']['color']||_0x5784b0;}let X=class extends _0x42a091{constructor(_0x19e83e,_0x5d3bbd,_0x1f50a4,_0x3ff077){const _0x5565cf=_0x480d5a;super(),this['_localeService']=_0x19e83e,this[_0x5565cf(0x2f9)]=_0x5d3bbd,Y(this,_0x5565cf(0x204),void 0x0),this[_0x5565cf(0x204)]=_0x1f50a4,(_0x3ff077||!this[_0x5565cf(0x204)]['getRenderModel'](_0x1ea41c))&&this['registerRenderModel'](_0x1ea41c,_0x3ff077==null?new _0x17ddf5(!0x1,{'wordCloudRenderConfig':_0x415c93}):_0x3ff077);}['registerRenderModel'](_0x3a8e44,_0x5b57a2){const _0x21386b=_0x480d5a;this[_0x21386b(0x204)][_0x21386b(0x18d)](_0x3a8e44,_0x5b57a2);}[_0x480d5a(0x1b5)](_0x24d624){const _0xe9ebeb=_0x480d5a;this[_0xe9ebeb(0x204)][_0xe9ebeb(0x1b5)](_0x24d624);}[_0x480d5a(0x2e2)](_0x5b7bff=_0x1ea41c){const _0x5e956c=_0x480d5a;return this['_renderModelManager'][_0x5e956c(0x2e2)](_0x5b7bff);}[_0x480d5a(0x1a5)](_0x53ed33){const _0x4e3f69=_0x480d5a;return _0x53ed33?this[_0x4e3f69(0x204)][_0x4e3f69(0x1a5)](_0x53ed33,this[_0x4e3f69(0x215)]()):this[_0x4e3f69(0x204)]['createChartInstance']();}[_0x480d5a(0x14d)](_0x44c26f){const _0x730b2=_0x480d5a;let _0x41c973=_0x44c26f[_0x730b2(0x2cc)][_0x730b2(0x20d)];if(!_0x41c973)throw Error(_0x730b2(0xce)+_0x44c26f[_0x730b2(0x11a)]+_0x730b2(0x335));let _0x1b7821=this[_0x730b2(0x2fb)]['getDirection']();return{'chartConfig':_0x41c973,'chartStyle':_0x503928({..._0x44c26f['model'][_0x730b2(0x1e9)],'runtime':_0x44c26f[_0x730b2(0x2cc)][_0x730b2(0x1ae)](_0x1b7821),'direction':_0x1b7821},_0x41c973[_0x730b2(0x1f7)])};}[_0x480d5a(0x16e)](_0x4d0535,_0x133038,_0x461730){const _0x3facf4=_0x480d5a;let {chartConfig:_0x54ca95,chartStyle:_0x5088ea}=this[_0x3facf4(0x14d)](_0x4d0535),_0x18c1e7=this[_0x3facf4(0x204)][_0x3facf4(0x255)]();return{'spec':_0x18c1e7[_0x3facf4(0x30d)](_0x18c1e7[_0x3facf4(0x2d6)](_0x54ca95,_0x5088ea),{'chartConfig':_0x54ca95,'chartStyle':_0x5088ea,'chartInstance':_0x461730},_0x133038),'chartConfig':_0x54ca95,'chartStyle':_0x5088ea,'hostStyle':this[_0x3facf4(0x2db)](_0x5088ea)};}[_0x480d5a(0x2db)](_0x18bb3c){const _0x32dde1=_0x480d5a;return _0x45a72a({'style':_0x18bb3c,'getRenderColor':_0x2c6fdf=>this[_0x32dde1(0x2f9)]['getRenderColor'](_0x2c6fdf)});}[_0x480d5a(0xf1)](_0x4335e5,_0x29c09c){const _0x2db246=_0x480d5a;var _0x12e0f7;let _0x464d4f=(_0x12e0f7=_0x29c09c[_0x2db246(0x9a)])!=null&&_0x12e0f7['color']&&_0x29c09c[_0x2db246(0x9a)][_0x2db246(0x2d9)]?_0x29c09c['border'][_0x2db246(0x2d9)]+_0x2db246(0x8e)+Yn(_0x29c09c[_0x2db246(0x9a)][_0x2db246(0x25c)]):'';_0x4335e5[_0x2db246(0x1e9)][_0x2db246(0x9a)]=_0x464d4f,_0x4335e5['style'][_0x2db246(0x317)]=_0x29c09c[_0x2db246(0x98)]?Yn(_0x29c09c[_0x2db246(0x98)]):_0x2db246(0x8a),_0x4335e5['style'][_0x2db246(0x10f)]=_0x29c09c[_0x2db246(0x18a)]?_0x29c09c[_0x2db246(0x18a)]+'px':'',_0x4335e5['style']['overflow']=_0x2db246(0x142),_0x4335e5[_0x2db246(0x1e9)][_0x2db246(0x1dc)]=_0x2db246(0x220);}['_createChartRenderInstanceContext'](){const _0x153d27=_0x480d5a;return{'resolveHostStyle':({style:_0xa2d430})=>this['getHostStyle'](_0xa2d430),'resolveRenderBackgroundColor':({hostStyle:_0x1eadb0})=>_0x1eadb0[_0x153d27(0x98)],'prepareSpec':({mode:_0x4d8196,spec:_0x44f3d6})=>_0x4d8196==='image'?{..._0x44f3d6,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x44f3d6};}[_0x480d5a(0x27f)](){const _0x492f74=_0x480d5a;super[_0x492f74(0x27f)]();}};X=K([G(0x0,_0x2f3732(_0x62dfd0)),G(0x1,_0x2f3732(_0x59199c)),G(0x2,_0xe5bc59),G(0x3,_0x4919fe(Jn))],X);function Xn(_0x11902f,_0x218f82,_0xf0e488,_0xd6bc89,_0x5f4fc2,_0x3c18a9,_0x34db0a){const _0x4cff9b=_0x480d5a;let _0x680bfc=new _0x314ebf(),_0x40157e=new _0x1c3080(_0x11902f,{'chartType':_0xf0e488,'context':_0xd6bc89==null?void 0x0:_0xd6bc89[_0x4cff9b(0x1c6)],'dataAggregation':_0x5f4fc2,'dataSource':_0x680bfc,'style':_0x3c18a9},_0x34db0a);_0x40157e['_init'](),_0x680bfc[_0x4cff9b(0x149)](_0x3ba8e0(_0x5d4913(_0x218f82)),(_0xd6bc89==null?void 0x0:_0xd6bc89['orient'])!==_0x4cff9b(0x203));let _0x56917d=_0x5b9f2b(_0x40157e,_0x680bfc);return _0x56917d&&_0x40157e[_0x4cff9b(0x2c9)](_0x56917d),{'unitId':_0x4cff9b(0x25f),'chartId':_0x11902f,'dataSourceId':_0x11902f+'-data-source','model':_0x40157e,'source':_0x680bfc};}function Zn(_0x3cf0e8){const _0x550bb6=_0x480d5a;let _0x1cd592=_0x57945f(_0x62dfd0),_0x43db34=_0x57945f(_0x292f4d),_0x2d8ec6=_0x57945f(X),_0x25fb42=_0x56f4f2(null),_0x945022=_0x56f4f2(null),_0x6c06d9=_0x56f4f2('doc-chart-preview-'+_0x3c552e(0x8)),[_0x9eec05,_0xb5ed13]=_0x201a9f(null);return _0x3785fc(()=>{const _0x3784be=_0x1ae9;let _0x9c7394=_0x25fb42[_0x3784be(0x21a)];if(!_0x9c7394)return;_0xb5ed13(null),_0x9c7394[_0x3784be(0x216)](),_0x945022[_0x3784be(0x21a)]=Qn(_0x9c7394);let _0x52e4b5=!0x1,_0x485213=_0x3639a9=>{_0x52e4b5||_0xb5ed13(_0x3639a9);},_0xd6a857=null,_0x84667=null,_0x242c7f=null;try{_0xd6a857=Xn(_0x6c06d9['current'],_0x3cf0e8[_0x3784be(0xde)],_0x3cf0e8['chartType'],_0x3cf0e8[_0x3784be(0x182)],_0x3cf0e8[_0x3784be(0x300)],_0x3cf0e8['style'],_0x43db34),_0x84667=new qn(_0xd6a857[_0x3784be(0x11a)],_0x9c7394,(_0x36f46b,_0x12d443)=>_0x2d8ec6[_0x3784be(0xf1)](_0x36f46b,_0x12d443),()=>{const _0x451f8b=_0x3784be;var _0x578059;return(_0x578059=_0x945022[_0x451f8b(0x21a)])==null?Qn(_0x9c7394):_0x578059;},!0x1),_0x242c7f=_0x2d8ec6[_0x3784be(0x1a5)](_0x2764f1['Dom']),_0x242c7f[_0x3784be(0x1c3)](_0x84667);}catch(_0x46cf82){return _0x485213(_0x46cf82),()=>{const _0x1d9ae8=_0x3784be;_0x52e4b5=!0x0,_0x9c7394[_0x1d9ae8(0x216)]();};}if(!_0xd6a857||!_0x84667||!_0x242c7f)return()=>{const _0xbfb08e=_0x3784be;_0x52e4b5=!0x0,_0x9c7394[_0xbfb08e(0x216)]();};let _0x4fcf45=_0xd6a857,_0x2fad63=_0x84667,_0x54f275=_0x242c7f,_0x14f6f9=()=>{const _0x15e520=_0x3784be;let _0x42b89b,_0xde3bfc;try{({chartConfig:_0x42b89b,chartStyle:_0xde3bfc}=_0x2d8ec6['createRenderInput'](_0x4fcf45));}catch(_0x191679){_0x485213(_0x191679);return;}_0x54f275[_0x15e520(0xa3)]({'chartId':_0x4fcf45[_0x15e520(0x11a)],'config':_0x42b89b,'style':_0xde3bfc})[_0x15e520(0x28a)](()=>{_0x52e4b5||_0xb5ed13(null);})[_0x15e520(0xfe)](_0x485213);},_0x125fb4=_0x4fcf45[_0x3784be(0x2cc)][_0x3784be(0xf5)][_0x3784be(0x1d0)](_0x3d38b8=>{_0x3d38b8&&_0x14f6f9();}),_0x925a0=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x4e81e3=>{const _0x59c21f=_0x3784be;var _0x5793a6;let _0x4341c5=(_0x5793a6=_0x4e81e3[0x0])==null?void 0x0:_0x5793a6[_0x59c21f(0x22b)];_0x945022[_0x59c21f(0x21a)]=_0x4341c5&&_0x4341c5[_0x59c21f(0x2d9)]>0x0&&_0x4341c5['height']>0x0?{'width':_0x4341c5['width'],'height':_0x4341c5['height']}:Qn(_0x9c7394),_0x14f6f9();});return _0x925a0==null||_0x925a0['observe'](_0x9c7394),()=>{const _0x35f9f5=_0x3784be;_0x52e4b5=!0x0,_0x125fb4[_0x35f9f5(0x2a6)](),_0x925a0==null||_0x925a0[_0x35f9f5(0x298)](),_0x54f275[_0x35f9f5(0x27f)](),_0x2fad63['dispose'](),_0x4fcf45[_0x35f9f5(0x2cc)][_0x35f9f5(0x27f)](),_0x4fcf45[_0x35f9f5(0x1b6)][_0x35f9f5(0x27f)](),_0x9c7394[_0x35f9f5(0x216)]();};},[_0x43db34,_0x3cf0e8[_0x550bb6(0x319)],_0x3cf0e8[_0x550bb6(0x182)],_0x3cf0e8['dataAggregation'],_0x3cf0e8[_0x550bb6(0x1e9)],_0x3cf0e8[_0x550bb6(0xde)],_0x2d8ec6]),_0x1fb7ef(_0x550bb6(0x24d),{'className':_0x550bb6(0xc3),'children':[_0x364b80('div',{'ref':_0x25fb42,'className':_0x550bb6(0xb3)}),_0x9eec05!=null&&_0x364b80(_0x550bb6(0x24d),{'className':_0x550bb6(0x1e0),'children':_0x1cd592['t']('docs-chart-ui.previewRenderFailed')})]});}function _0x1ae9(_0x18aa26,_0x58028a){_0x18aa26=_0x18aa26-0x85;const _0x7c4ff1=_0x7c4f();let _0x1ae9b7=_0x7c4ff1[_0x18aa26];return _0x1ae9b7;}function Qn(_0x201d62){const _0x486635=_0x480d5a;let _0x6e88ed=_0x201d62[_0x486635(0x2dd)]();return _0x6e88ed['width']<=0x0||_0x6e88ed['height']<=0x0?null:{'width':_0x6e88ed[_0x486635(0x2d9)],'height':_0x6e88ed[_0x486635(0x2e5)]};}const $n=_0x480d5a(0xd2),er=_0x480d5a(0x1d7);function tr(_0x545bb4){const _0x7d52da=_0x480d5a;let {unitId:_0x4a6e4d,chartId:_0x5bb103,onClose:_0x502b03}=_0x545bb4,_0x3fe2ba=_0x57945f(_0x62dfd0),_0x9e2d09=_0x57945f(_0x3134bd),_0x1b6dc8=_0x57945f(q),_0x11af6e=_0x20348e(()=>_0x1b6dc8[_0x7d52da(0x185)](_0x4a6e4d,_0x5bb103),[_0x5bb103,_0x1b6dc8,_0x4a6e4d]),_0x8c41f1=_0x9e2d09['getChart'](_0x4a6e4d,_0x5bb103),[_0x56f973,_0x4e47b6]=_0x201a9f(()=>{var _0x1a445e;return(_0x1a445e=_0x11af6e==null?void 0x0:_0x11af6e['values']['map'](_0x1070e4=>[..._0x1070e4]))==null?[]:_0x1a445e;}),[_0x578eae,_0x2e1bd0]=_0x201a9f(()=>{const _0x16daa6=_0x7d52da;var _0x485714;return(_0x485714=_0x11af6e==null?void 0x0:_0x11af6e[_0x16daa6(0xde)][_0x16daa6(0x2e9)](_0x14e2aa=>[..._0x14e2aa]))==null?[]:_0x485714;}),[_0x465975,_0x243207]=_0x201a9f(()=>_0x8c41f1==null?void 0x0:_0x8c41f1[_0x7d52da(0x319)]),[_0x435135,_0x39a8b0]=_0x201a9f(()=>_0x8c41f1==null?void 0x0:_0x8c41f1[_0x7d52da(0x1e9)]),[_0x30cf7f,_0x12fa7a]=_0x201a9f(()=>_0x8c41f1==null?void 0x0:_0x8c41f1[_0x7d52da(0x182)]),[_0x623d7a,_0x2fc869]=_0x201a9f(()=>_0x8c41f1==null?void 0x0:_0x8c41f1['dataAggregation']),[_0x2b5a45,_0x260058]=_0x201a9f(null);return!_0x11af6e||!_0x8c41f1?_0x364b80(_0x7d52da(0x24d),{'className':'univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','children':_0x3fe2ba['t'](_0x7d52da(0x166))}):_0x1fb7ef(_0x7d52da(0x24d),{'className':_0x7d52da(0x212),'style':{'height':_0x7d52da(0xe2)},'children':[_0x364b80(_0x7d52da(0x24d),{'className':_0x7d52da(0x18f),'children':_0x364b80(Zn,{'values':_0x578eae,'chartType':_0x465975==null?_0x8c41f1[_0x7d52da(0x319)]:_0x465975,'context':_0x30cf7f,'dataAggregation':_0x623d7a,'style':_0x435135})}),_0x1fb7ef('div',{'className':_0x7d52da(0x2f2),'children':[_0x364b80('div',{'className':_0x7d52da(0x231),'children':_0x364b80(Un,{'chartType':_0x465975==null?_0x8c41f1['chartType']:_0x465975,'values':_0x56f973,'context':_0x30cf7f,'dataAggregation':_0x623d7a,'style':_0x435135,'onChartTypeChange':_0x5b2496=>{const _0x239506=_0x7d52da;if(!_0x1b6dc8[_0x239506(0xd9)](_0x4a6e4d,_0x5bb103,_0x5b2496)){_0x260058(_0x3fe2ba['t'](_0x239506(0x1c1)));return;}_0x260058(null),_0x243207(_0x5b2496);},'onContextChange':_0x3a1676=>{const _0x42de0a=_0x7d52da;var _0xff9dca;if(!_0x1b6dc8['updateChartContext'](_0x4a6e4d,_0x5bb103,_0x3a1676)){_0x260058(_0x3fe2ba['t']('docs-chart-ui.updateChartFailed'));return;}_0x260058(null),_0x12fa7a((_0xff9dca=_0x9e2d09[_0x42de0a(0x115)](_0x4a6e4d,_0x5bb103))==null?void 0x0:_0xff9dca[_0x42de0a(0x182)]);},'onDataAggregationChange':_0x43da1e=>{const _0x1f1955=_0x7d52da;var _0x3c9515;if(!_0x1b6dc8[_0x1f1955(0x1e2)](_0x4a6e4d,_0x5bb103,_0x43da1e)){_0x260058(_0x3fe2ba['t']('docs-chart-ui.updateChartFailed'));return;}_0x260058(null),_0x2fc869((_0x3c9515=_0x9e2d09[_0x1f1955(0x115)](_0x4a6e4d,_0x5bb103))==null?void 0x0:_0x3c9515[_0x1f1955(0x300)]);},'onStyleChange':_0x21358d=>{const _0x54d9f8=_0x7d52da;var _0x4514db;if(!_0x1b6dc8[_0x54d9f8(0x2c3)](_0x4a6e4d,_0x5bb103,_0x21358d)){_0x260058(_0x3fe2ba['t'](_0x54d9f8(0x1c1)));return;}_0x260058(null),_0x39a8b0((_0x4514db=_0x9e2d09[_0x54d9f8(0x115)](_0x4a6e4d,_0x5bb103))==null?void 0x0:_0x4514db[_0x54d9f8(0x1e9)]);},'onValuesChange':_0x167f63=>{const _0x52a24b=_0x7d52da;_0x4e47b6(_0x167f63);let _0x5340e3=_0x5d4913(_0x167f63);if(_0x5340e3[_0x52a24b(0x188)]===0x0){_0x2e1bd0(_0x167f63),_0x260058(_0x3fe2ba['t'](_0x52a24b(0x316)));return;}if(!_0x1b6dc8[_0x52a24b(0x102)](_0x4a6e4d,_0x5bb103,_0x5340e3,_0x52a24b(0x224))){_0x260058(_0x3fe2ba['t'](_0x52a24b(0x1c1)));return;}_0x260058(null),_0x2e1bd0(_0x5340e3);},'onClose':_0x502b03})}),_0x2b5a45&&_0x364b80(_0x7d52da(0x24d),{'className':'univer-text-xs\x20univer-text-red-600','children':_0x2b5a45})]})]});}function Z(_0x152c98,_0x16aba3){const _0x47e96e=_0x480d5a;var _0x27eeef,_0x53df93;if(!(_0x16aba3!=null&&_0x16aba3[_0x47e96e(0x2d4)])||_0x16aba3[_0x47e96e(0x9c)]==null)return null;let _0x607f6e=(_0x27eeef=_0x16aba3[_0x47e96e(0x2b9)])==null?'':_0x27eeef;if(_0x607f6e!=='')return null;let _0x38ee00=(_0x53df93=_0x152c98[_0x47e96e(0xfc)](_0x607f6e))==null?void 0x0:_0x53df93['getBody']();if(!_0x38ee00)return null;let _0x1074c1=nr(_0x38ee00,_0x16aba3['startOffset']);if(!rr(_0x38ee00,_0x1074c1))return null;let _0x482537=ar(_0x38ee00,_0x1074c1);return _0x482537?{'unitId':_0x152c98['getUnitId'](),'index':_0x482537[_0x47e96e(0xeb)],'segmentId':_0x607f6e,'breakOffsets':_0x482537[_0x47e96e(0x1b8)]}:null;}function nr(_0x51acbe,_0x174541){const _0x4aaf6b=_0x480d5a;return _0x174541===0x0&&_0x51acbe[_0x4aaf6b(0x100)][0x0]===_0x5b32b7[_0x4aaf6b(0x20f)]?0x1:_0x174541;}function rr(_0x485bde,_0x116e0e){const _0x36436e=_0x480d5a;return!(cr(_0x485bde[_0x36436e(0x181)],_0x116e0e)||lr(_0x485bde['blockRanges'],_0x116e0e)||ur(_0x485bde[_0x36436e(0x2dc)],_0x116e0e));}function ir(_0x9c84d3,_0xe96c21){const _0x1fefba=_0x480d5a;let {dataStream:_0x221fd0}=_0x9c84d3;if(!_0x221fd0||_0xe96c21<0x0||_0xe96c21>=_0x221fd0['length'])return!0x1;let _0x48eb51=or(_0x221fd0,_0xe96c21)+0x1,_0x59fa62=sr(_0x221fd0,_0xe96c21);return _0x48eb51<=_0x59fa62&&_0x221fd0[_0x1fefba(0x13b)](_0x48eb51,_0x59fa62)[_0x1fefba(0x188)]===0x0;}function ar(_0x30b3b0,_0x34f0f4){let {dataStream:_0x4feee2}=_0x30b3b0;if(!_0x4feee2||_0x34f0f4<0x0||_0x34f0f4>=_0x4feee2['length'])return null;if(ir(_0x30b3b0,_0x34f0f4))return{'index':_0x34f0f4,'breakOffsets':[]};let _0x1db397=or(_0x4feee2,_0x34f0f4)+0x1,_0x51e1f9=sr(_0x4feee2,_0x34f0f4);return _0x34f0f4<=_0x1db397?{'index':_0x34f0f4,'breakOffsets':[_0x34f0f4]}:_0x34f0f4>=_0x51e1f9?{'index':_0x34f0f4+0x1,'breakOffsets':[_0x34f0f4]}:{'index':_0x34f0f4+0x1,'breakOffsets':[_0x34f0f4,_0x34f0f4+0x1]};}function or(_0xd85e7e,_0x2db9fc){const _0x3a8164=_0x480d5a;let _0x14458e=Math['max'](0x0,Math[_0x3a8164(0x329)](_0x2db9fc-0x1,_0xd85e7e[_0x3a8164(0x188)]-0x1));return Math[_0x3a8164(0x328)](_0xd85e7e[_0x3a8164(0x178)](_0x5b32b7[_0x3a8164(0x20f)],_0x14458e),_0xd85e7e[_0x3a8164(0x178)](_0x5b32b7[_0x3a8164(0x263)],_0x14458e));}function sr(_0x42e5f4,_0x561d93){const _0x41dda8=_0x480d5a;let _0x4cd596=Math[_0x41dda8(0x328)](0x0,Math[_0x41dda8(0x329)](_0x561d93,_0x42e5f4['length']-0x1)),_0x103ce6=_0x42e5f4[_0x41dda8(0x111)](_0x5b32b7[_0x41dda8(0x20f)],_0x4cd596),_0x504689=_0x42e5f4[_0x41dda8(0x111)](_0x5b32b7[_0x41dda8(0x263)],_0x4cd596);return _0x103ce6===-0x1&&_0x504689===-0x1?_0x42e5f4[_0x41dda8(0x188)]:_0x103ce6===-0x1?_0x504689:_0x504689===-0x1?_0x103ce6:Math[_0x41dda8(0x329)](_0x103ce6,_0x504689);}function cr(_0x4a3616,_0x21ce29){const _0x206be5=_0x480d5a;return!!(_0x4a3616!=null&&_0x4a3616[_0x206be5(0x22a)](_0x1658f7=>_0x1658f7[_0x206be5(0x153)]<=_0x21ce29&&_0x21ce29<_0x1658f7['endIndex']));}function lr(_0x573965,_0x49775b){const _0x50ffc2=_0x480d5a;return!!(_0x573965!=null&&_0x573965[_0x50ffc2(0x22a)](_0x155815=>_0x155815[_0x50ffc2(0x153)]<=_0x49775b&&_0x49775b<=_0x155815[_0x50ffc2(0x18b)]));}function ur(_0x334c8e,_0x2ff1e8){const _0x23d82d=_0x480d5a;return!!(_0x334c8e!=null&&_0x334c8e['some'](_0x5923a0=>_0x5923a0[_0x23d82d(0x153)]===_0x2ff1e8));}let dr=class{constructor(_0x248454,_0x163830,_0x1f1333,_0x56c4ae){const _0x4ad9f5=_0x480d5a;this[_0x4ad9f5(0xaa)]=_0x248454,this[_0x4ad9f5(0x99)]=_0x163830,this[_0x4ad9f5(0x11e)]=_0x1f1333,this[_0x4ad9f5(0x2a5)]=_0x56c4ae;}[_0x480d5a(0x119)](_0xaaea09,_0x3d4a8e,_0x496861){const _0x3d396c=_0x480d5a;let _0x4460fc=_0x1f7c7d(_0xaaea09);return _0x4460fc[_0x3d396c(0x188)]===0x0?!0x1:this['insertChart'](_0x4460fc,_0x3d4a8e,_0x496861);}[_0x480d5a(0x14f)](_0x15f6e6,_0x3914a9,_0x37eb06={}){const _0x41e2cb=_0x480d5a;if(_0x15f6e6[_0x41e2cb(0x188)]===0x0)return!0x1;let _0xf9ca8=this[_0x41e2cb(0xaa)]['getCurrentUnitOfType'](_0x436ddb[_0x41e2cb(0x1ff)]);if(!_0xf9ca8)return!0x1;let _0x47d70a=this['_resolveInsertPosition'](_0xf9ca8,_0x37eb06[_0x41e2cb(0x2da)]);if(!_0x47d70a||!this[_0x41e2cb(0x276)](_0x47d70a[_0x41e2cb(0x1b8)],_0x47d70a[_0x41e2cb(0x2b9)]))return!0x1;let _0x4b34d4=_0x47d70a[_0x41e2cb(0x94)],_0x5f26cc={'chartType':_0x3914a9};_0x37eb06[_0x41e2cb(0x182)]&&(_0x5f26cc[_0x41e2cb(0x182)]=_0x37eb06[_0x41e2cb(0x182)]),_0x37eb06[_0x41e2cb(0x300)]&&(_0x5f26cc[_0x41e2cb(0x300)]=_0x37eb06[_0x41e2cb(0x300)]),_0x37eb06[_0x41e2cb(0x1e9)]&&(_0x5f26cc['style']=_0x37eb06['style']);let _0x12d882=this[_0x41e2cb(0x99)][_0x41e2cb(0x144)](_0x402e4f['id'],{'unitId':_0x4b34d4,'index':_0x47d70a['index'],'segmentId':_0x47d70a[_0x41e2cb(0x2b9)],'chart':_0x5f26cc,'dataSource':{'values':_0x15f6e6},'width':_0x37eb06[_0x41e2cb(0x2d9)],'height':_0x37eb06[_0x41e2cb(0x2e5)],'focus':_0x37eb06[_0x41e2cb(0x258)]});return _0x12d882?{..._0x12d882,'unitId':_0x4b34d4}:!0x1;}['_resolveInsertPosition'](_0x28f220,_0x518186){const _0xc56d53=_0x480d5a;if(_0x518186)return Z(_0x28f220,_0x518186);let _0x25763a=_0x28f220[_0xc56d53(0xca)](),_0x53a12e=null;try{_0x53a12e=this[_0xc56d53(0x2a5)][_0xc56d53(0x12e)](_0x25763a);}catch{_0x53a12e=null;}if(_0x53a12e){var _0x56f16a;return Z(_0x28f220,{'startOffset':_0x53a12e['startOffset'],'endOffset':_0x53a12e[_0xc56d53(0x31a)],'collapsed':_0x53a12e[_0xc56d53(0x9c)]===_0x53a12e[_0xc56d53(0x31a)],'segmentId':(_0x56f16a=_0x53a12e[_0xc56d53(0x2b9)])==null?'':_0x56f16a});}return Z(_0x28f220,fr(this[_0xc56d53(0x11e)][_0xc56d53(0xcc)]()));}[_0x480d5a(0x276)](_0xf0d989,_0x37863){const _0xc024c2=_0x480d5a;for(let _0x203959 of _0xf0d989)if(!this['_commandService'][_0xc024c2(0x144)](_0x1d694a['id'],{'textRange':{'startOffset':_0x203959,'endOffset':_0x203959,'collapsed':!0x0,'segmentId':_0x37863}}))return!0x1;return!0x0;}};dr=K([G(0x0,_0x287d9c),G(0x1,_0x38515f),G(0x2,_0x2f3732(_0x4c9978)),G(0x3,_0x2f3732(_0x3ea8bd))],dr);function fr(_0x2feb71){const _0x1ecca2=_0x480d5a;return!_0x2feb71||typeof _0x2feb71!=_0x1ecca2(0xcb)?null:_0x2feb71;}const pr=_0x480d5a(0x19c),mr=['Category\x09Value',_0x480d5a(0x30a),_0x480d5a(0x287),'C\x099'][_0x480d5a(0x14c)]('\x0a');function hr(_0x5747e7){const _0x174ea6=_0x480d5a;let _0x4986b6=_0x57945f(dr),_0x515baa=_0x57945f(_0x62dfd0),{defaultChartType:_0x5ca501=_0x45452e[_0x174ea6(0x28c)],defaultTableText:_0x469d84=mr,insertOptions:_0x1e7177,onCancel:_0x5a65f0,onInserted:_0x8235bf}=_0x5747e7,[_0x3f2fe3,_0x271c3e]=_0x201a9f(_0x5ca501),[_0xec7e67,_0x4bd427]=_0x201a9f(()=>_0x1f7c7d(_0x469d84)),[_0x26812f,_0x46b6bf]=_0x201a9f(),[_0x4d0e5a,_0x3dc817]=_0x201a9f(),[_0x1d099e,_0x2bcb1a]=_0x201a9f(),[_0x582748,_0x43de5e]=_0x201a9f(null);return _0x1fb7ef(_0x174ea6(0x24d),{'className':_0x174ea6(0x212),'style':{'height':'min(560px,\x20calc(100vh\x20-\x20180px))'},'children':[_0x364b80(_0x174ea6(0x24d),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','children':_0x364b80(Zn,{'values':_0xec7e67,'chartType':_0x3f2fe3,'context':_0x26812f,'dataAggregation':_0x4d0e5a,'style':_0x1d099e})}),_0x1fb7ef(_0x174ea6(0x24d),{'className':_0x174ea6(0x2f2),'children':[_0x364b80(_0x174ea6(0x24d),{'className':'univer-min-h-0\x20univer-flex-1','children':_0x364b80(Un,{'chartType':_0x3f2fe3,'values':_0xec7e67,'context':_0x26812f,'dataAggregation':_0x4d0e5a,'style':_0x1d099e,'onChartTypeChange':_0x271c3e,'onContextChange':_0x1bca5e=>{_0x46b6bf(_0x3a2ded=>gr(_0x3a2ded,_0x1bca5e));},'onDataAggregationChange':_0x14a137=>{_0x3dc817(_0x9fd00=>gr(_0x9fd00,_0x14a137));},'onStyleChange':_0xe6afa=>{_0x2bcb1a(_0x27bd1a=>gr(_0x27bd1a,_0xe6afa));},'onValuesChange':_0x4bd427})}),_0x582748&&_0x364b80(_0x174ea6(0x24d),{'className':_0x174ea6(0x13c),'children':_0x582748}),_0x1fb7ef('div',{'className':_0x174ea6(0x176),'children':[_0x5a65f0&&_0x364b80(_0x286a24,{'type':_0x174ea6(0x1aa),'variant':_0x174ea6(0x2f1),'onClick':_0x5a65f0,'children':_0x515baa['t']('docs-chart-ui.cancel')}),_0x364b80(_0x286a24,{'type':_0x174ea6(0x1aa),'variant':_0x174ea6(0x2b8),'onClick':()=>{const _0x360a70=_0x174ea6;let _0x486010=_0x5d4913(_0xec7e67);if(_0x486010[_0x360a70(0x188)]===0x0){_0x43de5e(_0x515baa['t'](_0x360a70(0x316)));return;}let _0x30a057=_0x4986b6[_0x360a70(0x14f)](_0x486010,_0x3f2fe3,{..._0x1e7177,'context':_0x26812f,'dataAggregation':_0x4d0e5a,'style':_0x1d099e});if(!_0x30a057){_0x43de5e(_0x515baa['t'](_0x360a70(0x29b)));return;}_0x43de5e(null),_0x8235bf==null||_0x8235bf(_0x30a057);},'children':_0x515baa['t'](_0x174ea6(0x17d))})]})]})]});}function gr(_0x57c406,_0x246727){const _0xc5678e=_0x480d5a;let _0x24c0db=_r(_0x57c406)?{..._0x57c406}:{};return Object['entries'](_0x246727)[_0xc5678e(0x1bb)](([_0x47180a,_0x4759b9])=>{if(_0x4759b9!==void 0x0){if(_r(_0x4759b9)&&_r(_0x24c0db[_0x47180a])){_0x24c0db[_0x47180a]=gr(_0x24c0db[_0x47180a],_0x4759b9);return;}_0x24c0db[_0x47180a]=_0x4759b9;}}),_0x24c0db;}function _r(_0x1f6637){const _0x23681c=_0x480d5a;return typeof _0x1f6637==_0x23681c(0xcb)&&!!_0x1f6637&&!Array[_0x23681c(0x125)](_0x1f6637);}const vr=_0x480d5a(0x17b),yr={},br=_0x480d5a(0xed);let xr=class extends _0x42a091{constructor(_0x5d1230,_0x2071ff,_0x4e0632){const _0x27e34b=_0x480d5a;super(),this['_docClipboardService']=_0x5d1230,this[_0x27e34b(0xdb)]=_0x2071ff,this[_0x27e34b(0x1bd)]=_0x4e0632,this[_0x27e34b(0x20e)]();}['_initClipboardHooks'](){const _0x356ba1=_0x480d5a;this[_0x356ba1(0xc2)](this[_0x356ba1(0x21e)]['addClipboardHook']({'onCopyDocData':(_0x29d43b,_0x255cfe)=>this[_0x356ba1(0x249)](_0x29d43b,_0x255cfe[_0x356ba1(0x254)])})),this['disposeWithMe'](this['_pasteAdapterService'][_0x356ba1(0x2fa)]({'getPasteMutationInfos':_0x37ceed=>this[_0x356ba1(0x1e5)](_0x37ceed)}));}['_appendChartResources'](_0x28a88c,_0x4362cb){const _0x4fae2b=_0x480d5a;var _0x32434d,_0x1211ac;let _0x18e4f2=(_0x32434d=_0x4362cb[0x0])==null?void 0x0:_0x32434d['id'];if(!_0x18e4f2)return _0x28a88c;let _0x52f7ab=Object['values']((_0x1211ac=_0x28a88c['drawings'])==null?{}:_0x1211ac)[_0x4fae2b(0x1d1)](_0xb9a24f=>this['_isDocChartDrawing'](_0xb9a24f));if(_0x52f7ab['length']===0x0)return _0x28a88c;let _0x3e90bb={'version':0x1,'dataSources':{},'charts':{}};return _0x52f7ab[_0x4fae2b(0x1bb)](_0x4df612=>{const _0x2bdb0d=_0x4fae2b;let _0x4d58df=this[_0x2bdb0d(0x1bd)][_0x2bdb0d(0x115)](_0x18e4f2,_0x4df612[_0x2bdb0d(0x11a)]);if(!_0x4d58df)return;let _0x52fcb4=this[_0x2bdb0d(0x1bd)][_0x2bdb0d(0xfa)](_0x18e4f2,_0x4d58df['dataSourceId']);_0x52fcb4&&(_0x3e90bb[_0x2bdb0d(0x22f)][_0x4d58df['id']]=_0x4afd64[_0x2bdb0d(0x2e3)](_0x4d58df),_0x3e90bb[_0x2bdb0d(0x143)][_0x52fcb4['id']]=_0x4afd64[_0x2bdb0d(0x2e3)](_0x52fcb4));}),Object[_0x4fae2b(0x1c8)](_0x3e90bb[_0x4fae2b(0x22f)])[_0x4fae2b(0x188)]===0x0?_0x28a88c:{..._0x28a88c,[br]:_0x3e90bb};}['_getPasteMutationInfos'](_0xe9f50e){const _0x4cebf8=_0x480d5a;let _0x2911b7=_0xe9f50e['doc'][br];if(!_0x2911b7)return{'redoMutations':[],'undoMutations':[]};let _0x2eb104=new Map(),_0x3cc31d=[],_0x12ea45=[],_0x3de939=[],_0x1566e1=[];return _0xe9f50e[_0x4cebf8(0x171)][_0x4cebf8(0x1bb)](_0x317d3b=>{const _0x4e4f6b=_0x4cebf8;if(!this[_0x4e4f6b(0xc9)](_0x317d3b['sourceDrawing'])||!this['_isDocChartDrawing'](_0x317d3b[_0x4e4f6b(0xa8)]))return;let _0x41e357=_0x2911b7[_0x4e4f6b(0x22f)][_0x317d3b[_0x4e4f6b(0x1f6)][_0x4e4f6b(0x11a)]];if(!_0x41e357)return;let _0xe355b=_0x2911b7[_0x4e4f6b(0x143)][_0x41e357['dataSourceId']];if(!_0xe355b)return;let _0x488be3=this[_0x4e4f6b(0x299)](_0xe9f50e['unitId'],_0xe355b,_0x2eb104,_0x3cc31d,_0x12ea45),_0x2d57aa=_0x3c552e(),_0x4f1118={..._0x4afd64[_0x4e4f6b(0x2e3)](_0x41e357),'id':_0x2d57aa,'dataSourceId':_0x488be3};_0x317d3b['targetDrawing']['chartId']=_0x2d57aa,_0x3de939[_0x4e4f6b(0x1c2)]({'id':_0x11f6e2['id'],'params':{'unitId':_0xe9f50e[_0x4e4f6b(0x94)],'chart':_0x4f1118}}),_0x1566e1[_0x4e4f6b(0x1c2)]({'id':_0x44c6e9['id'],'params':{'unitId':_0xe9f50e[_0x4e4f6b(0x94)],'chartId':_0x2d57aa}});}),{'redoMutations':[..._0x3cc31d,..._0x3de939],'undoMutations':[..._0x1566e1,..._0x12ea45]};}[_0x480d5a(0x299)](_0x438071,_0x34f178,_0x48169c,_0x4dd24e,_0x41c908){const _0x55a100=_0x480d5a;let _0x10b5a7=_0x48169c[_0x55a100(0x8f)](_0x34f178['id']);if(_0x10b5a7)return _0x10b5a7;let _0x269fa6=_0x3c552e();return _0x48169c[_0x55a100(0x269)](_0x34f178['id'],_0x269fa6),_0x4dd24e[_0x55a100(0x1c2)]({'id':_0x39e296['id'],'params':{'unitId':_0x438071,'dataSource':{..._0x4afd64[_0x55a100(0x2e3)](_0x34f178),'id':_0x269fa6}}}),_0x41c908['push']({'id':_0x1ce721['id'],'params':{'unitId':_0x438071,'dataSourceId':_0x269fa6}}),_0x269fa6;}[_0x480d5a(0xc9)](_0x297bcb){const _0x55d946=_0x480d5a;let _0x5e6fd0=_0x297bcb;return(_0x5e6fd0==null?void 0x0:_0x5e6fd0[_0x55d946(0x267)])===_0x3c5d64[_0x55d946(0x1e4)]&&typeof _0x5e6fd0['chartId']==_0x55d946(0x206);}};xr=K([G(0x0,_0x2f3732(_0x591579)),G(0x1,_0x2f3732(_0x1e3127)),G(0x2,_0x2f3732(_0x3134bd))],xr);let Sr=class extends _0x42a091{constructor(_0x569073,_0x37ef99,_0x419c7f,_0x4da4da){const _0x26bee9=_0x480d5a;super(),this[_0x26bee9(0x197)]=_0x569073,this[_0x26bee9(0x16b)]=_0x37ef99,this[_0x26bee9(0x1bd)]=_0x419c7f,this[_0x26bee9(0x2fb)]=_0x4da4da,this['_initAdapter']();}[_0x480d5a(0xe7)](){const _0xdec912=_0x480d5a;this['disposeWithMe'](this['_drawingAdapterService'][_0xdec912(0x2fa)]({'getEditDrawingCommandInfo':({unitId:_0x33a9e4,drawing:_0x31d45c})=>{const _0x4449a6=_0xdec912;let _0x398c67=Cr(_0x31d45c);return _0x398c67?{'label':'docs-chart-ui.editChart','commandId':ln['id'],'commandParams':{'unitId':_0x33a9e4,'chartId':_0x398c67[_0x4449a6(0x11a)],'drawingId':_0x398c67[_0x4449a6(0x140)]}}:null;}})),this[_0xdec912(0xc2)](this[_0xdec912(0x16b)][_0xdec912(0x2fa)]({'getItems':({unitId:_0x1e1894,subUnitId:_0xbbaa57,drawing:_0xb1b21d})=>{const _0x55193b=_0xdec912;var _0x428f53;let _0x1a3cd3=Cr(_0xb1b21d);if(!_0x1a3cd3)return null;let _0x5fd567=this[_0x55193b(0x1bd)]['getChart'](_0x1e1894,_0x1a3cd3[_0x55193b(0x11a)]),_0x51570d=(_0x428f53=_0x5fd567==null?void 0x0:_0x5fd567['chartType'])==null?_0x45452e['Column']:_0x428f53;return[{'type':_0x55193b(0x245),'label':_0x55193b(0x9f),'index':0x0,'commandId':_0x1dce44['id'],'commandParamsFactory':_0x3f87df=>({'unitId':_0x1e1894,'chartId':_0x1a3cd3[_0x55193b(0x11a)],'chartType':Number(_0x3f87df)}),'disable':!_0x5fd567,'value':String(_0x51570d),'options':_0x807248(vn['map'](_0xc69b93=>({..._0xc69b93,'label':this[_0x55193b(0x2fb)]['t'](_0xc69b93['label'])})))},{'type':_0x55193b(0x1aa),'label':'docs-chart-ui.editChart','index':0x1,'commandId':ln['id'],'commandParams':{'unitId':_0x1e1894,'chartId':_0x1a3cd3[_0x55193b(0x11a)],'drawingId':_0x1a3cd3[_0x55193b(0x140)]},'disable':!0x1,'hideOnClick':!0x0,'icon':_0x55193b(0x214)},{'type':_0x55193b(0x1aa),'label':_0x55193b(0x2c4),'index':0x2,'commandId':_0x2565b2['id'],'commandParams':{'unitId':_0x1e1894,'drawings':[{'unitId':_0x1e1894,'subUnitId':_0xbbaa57,'drawingId':_0x1a3cd3[_0x55193b(0x140)]}]},'disable':!0x1,'icon':_0x55193b(0x107)}];}}));}};Sr=K([G(0x0,_0x32118e),G(0x1,_0x2f3732(_0x742a91)),G(0x2,_0x2f3732(_0x3134bd)),G(0x3,_0x2f3732(_0x62dfd0))],Sr);function Cr(_0x465dea){const _0x4a1ce4=_0x480d5a;let _0x5271dd=_0x465dea;return(_0x5271dd==null?void 0x0:_0x5271dd['drawingType'])===_0x3c5d64[_0x4a1ce4(0x1e4)]&&typeof _0x5271dd[_0x4a1ce4(0x11a)]==_0x4a1ce4(0x206)?_0x5271dd:null;}const wr=_0x4e4749(_0x480d5a(0x277));var Tr=class{constructor(_0x278658){const _0xc5aa93=_0x480d5a;this[_0xc5aa93(0xd3)]=_0x278658;}async[_0x480d5a(0xa3)](_0x2cc1dc,_0x3ee884){const _0x3b63ae=_0x480d5a;if(typeof document>'u')throw TypeError(_0x3b63ae(0x11d));let _0xc8c469=new Kn(_0x3ee884[_0x3b63ae(0x11a)],{'width':_0x2cc1dc[_0x3b63ae(0x2d9)],'height':_0x2cc1dc[_0x3b63ae(0x2e5)]}),_0x148b87=this[_0x3b63ae(0xd3)]['createChartInstance'](_0x2764f1['Image']);try{let {chartConfig:_0xff0bcf,chartStyle:_0x39b386}=this['_renderService'][_0x3b63ae(0x14d)](_0x3ee884);_0x148b87[_0x3b63ae(0x1c3)](_0xc8c469),await _0x148b87[_0x3b63ae(0xa3)]({'chartId':_0x3ee884[_0x3b63ae(0x11a)],'config':_0xff0bcf,'style':_0x39b386});let _0x763e0b=_0xc8c469[_0x3b63ae(0x205)]();if(!_0x763e0b)throw Error(_0x3b63ae(0x108)+_0x3ee884['unitId']+'/'+_0x3ee884[_0x3b63ae(0x11a)]);return _0x763e0b;}finally{_0x148b87[_0x3b63ae(0x27f)](),_0xc8c469[_0x3b63ae(0x27f)]();}}};let Q=class extends _0x42a091{constructor(_0x5da4a6,_0x17ca70,_0x57b198,_0x11711a){const _0x2ad28a=_0x480d5a;super(),this[_0x2ad28a(0x2fb)]=_0x5da4a6,this[_0x2ad28a(0x2df)]=_0x17ca70,Y(this,_0x2ad28a(0xb7),new _0x5effdb()),Y(this,_0x2ad28a(0x2ad),new _0x5effdb()),Y(this,'_cache',new Map()),Y(this,'_queue',[]),Y(this,'_configWaitKeys',new Map()),Y(this,_0x2ad28a(0x251),!0x1),Y(this,_0x2ad28a(0x208),null),Y(this,'_renderer',void 0x0),this[_0x2ad28a(0x2fe)]=_0x11711a==null?new Tr(_0x57b198):_0x11711a,this[_0x2ad28a(0xc2)](this[_0x2ad28a(0x2fb)][_0x2ad28a(0x2ae)][_0x2ad28a(0x1ce)](_0xb8b820(0x1))[_0x2ad28a(0x1d0)](()=>{const _0x2cec17=_0x2ad28a;this[_0x2cec17(0xaf)]();}));}[_0x480d5a(0x192)](_0x2068db){const _0x22dcc8=_0x480d5a;let _0x2f4c9b=this[_0x22dcc8(0x173)](_0x2068db),_0x3884ec=this[_0x22dcc8(0x162)][_0x22dcc8(0x8f)](_0x2f4c9b);if(_0x3884ec&&_0x3884ec['status']!==_0x22dcc8(0x24b))return _0x3884ec;let _0x846ed1={'key':_0x2f4c9b,'status':'pending'};return this[_0x22dcc8(0x162)][_0x22dcc8(0x269)](_0x2f4c9b,_0x846ed1),this[_0x22dcc8(0x96)]['push'](_0x2068db),this[_0x22dcc8(0x281)](),_0x846ed1;}[_0x480d5a(0x1f9)](_0x538384){const _0x34a177=_0x480d5a;return this[_0x34a177(0x162)]['get'](this[_0x34a177(0x173)](_0x538384));}[_0x480d5a(0x233)](_0x2ff29d,_0x46fdc5,_0x43272f){const _0x21fe43=_0x480d5a;let _0x4bd1b9=_0x2ff29d+'::'+_0x46fdc5+'::';if(Array[_0x21fe43(0x337)](this['_cache'][_0x21fe43(0x1c8)]())['forEach'](_0x4a3bc0=>{const _0x4a2925=_0x21fe43;_0x4a3bc0['startsWith'](_0x4bd1b9)&&this[_0x4a2925(0x162)][_0x4a2925(0xe3)](_0x4a3bc0);}),_0x43272f!=null&&_0x43272f[_0x21fe43(0x210)]){let _0x236440=this['_getRuntimeModel'](_0x2ff29d,_0x46fdc5);this[_0x21fe43(0x1ad)]['set'](this[_0x21fe43(0x151)](_0x2ff29d,_0x46fdc5),_0x236440==null?void 0x0:_0x236440[_0x21fe43(0x2cc)][_0x21fe43(0x20d)]);}this[_0x21fe43(0x2ad)][_0x21fe43(0x26d)]({'unitId':_0x2ff29d,'chartId':_0x46fdc5});}[_0x480d5a(0x173)](_0x40f7aa){const _0xf73d92=_0x480d5a;var _0x361e6d,_0x2ff71d;return[_0x40f7aa[_0xf73d92(0x94)],_0x40f7aa[_0xf73d92(0x11a)],Math[_0xf73d92(0x322)](_0x40f7aa[_0xf73d92(0x2d9)]),Math['round'](_0x40f7aa[_0xf73d92(0x2e5)]),(_0x361e6d=_0x40f7aa[_0xf73d92(0x2ea)])==null?0x1:_0x361e6d,this[_0xf73d92(0x2fb)][_0xf73d92(0x228)](),(_0x2ff71d=_0x40f7aa[_0xf73d92(0x2cb)])==null?'main':_0x2ff71d]['join']('::');}async[_0x480d5a(0x2ac)](){const _0x3cf79b=_0x480d5a;for(;this[_0x3cf79b(0x96)][_0x3cf79b(0x188)]>0x0||this[_0x3cf79b(0x251)]||this['_activeDrain'];){var _0x583a5b;await((_0x583a5b=this[_0x3cf79b(0x208)])==null?Promise[_0x3cf79b(0x19b)]():_0x583a5b),await Promise[_0x3cf79b(0x19b)]();}}[_0x480d5a(0x27f)](){const _0x1226e4=_0x480d5a;this[_0x1226e4(0x162)][_0x1226e4(0x284)](),this[_0x1226e4(0x96)][_0x1226e4(0x188)]=0x0,this[_0x1226e4(0x1ad)][_0x1226e4(0x284)](),this[_0x1226e4(0xb7)][_0x1226e4(0x334)](),this[_0x1226e4(0x2ad)][_0x1226e4(0x334)](),super[_0x1226e4(0x27f)]();}[_0x480d5a(0x281)](){const _0x359cb1=_0x480d5a;this[_0x359cb1(0x251)]||(this[_0x359cb1(0x208)]=this[_0x359cb1(0x241)]()[_0x359cb1(0xe1)](()=>{const _0x1eeaa6=_0x359cb1;this[_0x1eeaa6(0x208)]=null;}));}[_0x480d5a(0xaf)](){const _0x31d35b=_0x480d5a;let _0x5c143b=new Map();Array[_0x31d35b(0x337)](this['_cache'][_0x31d35b(0x1c8)]())[_0x31d35b(0x1bb)](_0x192bd3=>{const _0x33f486=_0x31d35b;let [_0x17633a,_0x109665]=_0x192bd3['split']('::');_0x17633a&&_0x109665&&_0x5c143b[_0x33f486(0x269)](_0x17633a+'::'+_0x109665,{'unitId':_0x17633a,'chartId':_0x109665});}),this[_0x31d35b(0x162)]['clear'](),_0x5c143b[_0x31d35b(0x1bb)](_0x1fff36=>{const _0xba049c=_0x31d35b;this[_0xba049c(0x2ad)][_0xba049c(0x26d)](_0x1fff36);});}async[_0x480d5a(0x241)](){const _0x55c778=_0x480d5a;if(!this['_rendering']){this[_0x55c778(0x251)]=!0x0;try{for(;this[_0x55c778(0x96)][_0x55c778(0x188)]>0x0;){let _0x210a0a=this[_0x55c778(0x96)][_0x55c778(0x260)]();await this[_0x55c778(0x1d9)](_0x210a0a);}}finally{this[_0x55c778(0x251)]=!0x1;}}}async[_0x480d5a(0x1d9)](_0x4a87c1){const _0x245364=_0x480d5a;let _0x35b565=this['getCacheKey'](_0x4a87c1),_0x308403=this[_0x245364(0x162)][_0x245364(0x8f)](_0x35b565);if(!_0x308403||_0x308403['status']!==_0x245364(0x152))return;let _0x56b8c1=this[_0x245364(0x2df)][_0x245364(0x114)](_0x4a87c1[_0x245364(0x94)],_0x4a87c1['chartId']);if(!_0x56b8c1){_0x308403[_0x245364(0x2f5)]='error',_0x308403[_0x245364(0x24b)]=Error(_0x245364(0x2ca)+_0x4a87c1[_0x245364(0x94)]+'/'+_0x4a87c1[_0x245364(0x11a)]),this['snapshotUpdated$']['next'](_0x308403);return;}try{if(await this[_0x245364(0x22d)](_0x56b8c1),this[_0x245364(0x162)][_0x245364(0x8f)](_0x35b565)!==_0x308403||_0x308403[_0x245364(0x2f5)]!==_0x245364(0x152))return;_0x308403[_0x245364(0x32d)]=await this[_0x245364(0x2fe)]['render'](_0x4a87c1,_0x56b8c1),_0x308403[_0x245364(0x2f5)]=_0x245364(0xee);}catch(_0x410651){_0x308403[_0x245364(0x2f5)]=_0x245364(0x24b),_0x308403[_0x245364(0x24b)]=_0x410651;}this[_0x245364(0xb7)]['next'](_0x308403);}async[_0x480d5a(0x22d)](_0x2119ed){const _0x383a7a=_0x480d5a;let _0x4fb670=_0x2119ed[_0x383a7a(0x2cc)];if(!_0x4fb670||!_0x4fb670[_0x383a7a(0xf5)])return;let _0x1910de=this[_0x383a7a(0x151)](_0x2119ed[_0x383a7a(0x94)],_0x2119ed[_0x383a7a(0x11a)]);if(this[_0x383a7a(0x1ad)][_0x383a7a(0x23c)](_0x1910de)){let _0x568c2a=this[_0x383a7a(0x1ad)][_0x383a7a(0x8f)](_0x1910de);if(_0x4fb670[_0x383a7a(0x20d)]&&_0x4fb670['config']!==_0x568c2a){this['_configWaitKeys'][_0x383a7a(0xe3)](_0x1910de);return;}try{await _0xd74745(_0x4fb670[_0x383a7a(0xf5)][_0x383a7a(0x1ce)](_0x42467f(_0x266be0=>_0x266be0!=null&&_0x266be0!==_0x568c2a),_0x2d76e0(0x1),_0xb78d13({'first':0x3e8})));}catch{}finally{this[_0x383a7a(0x1ad)][_0x383a7a(0xe3)](_0x1910de);}return;}_0x4fb670[_0x383a7a(0x20d)]||await _0xd74745(_0x4fb670[_0x383a7a(0xf5)]['pipe'](_0x42467f(_0x517abb=>_0x517abb!=null),_0x2d76e0(0x1),_0xb78d13({'first':0x3e8})));}[_0x480d5a(0x151)](_0x50b4e4,_0x22b9e5){return _0x50b4e4+'::'+_0x22b9e5;}[_0x480d5a(0x164)](_0x1622f2,_0x500ee7){const _0x4fa374=_0x480d5a;var _0x1dc08f;return(_0x1dc08f=this[_0x4fa374(0x2df)][_0x4fa374(0xdf)](_0x1622f2,_0x500ee7))==null?this[_0x4fa374(0x2df)][_0x4fa374(0x114)](_0x1622f2,_0x500ee7):_0x1dc08f;}};function _0x7c4f(){const _0x4ecac7=['show','univer-mb-2\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-text-primary-600','has','focus$','main','wrap','getObjectIncludeInGroup','_runQueue','Force','docs-chart-ui.chartTypes.scatter','xAxisTitle','select','Radar','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getDrawingDataForUnit','_appendChartResources','LAYOUT','error','dataSource','div','Border\x20width','markNotReady','Select\x20mode','_rendering','getViewport','getDataSourceSharingCount','sourceDocuments','getCurrentRenderModel','_updatePosition','docs-chart-ui.chartTypes.radar','focus','_init','6kuzrFQ','gap','color','Show\x20ticks','Rose\x20pie','doc-chart-preview','shift','doc-chart.dialog.data-editor','univer-margin-left-[1.5px]\x20univer-font-weight-500\x20univer-text-xs','SECTION_BREAK','Auto','Left','visible','drawingType','docs-chart-ui.chartTypes.bubble','set','style$','_univerInstanceService','area','next','onContextChange','open','function','position$','borderStyle','Outside','canva','chart','_prepareStandaloneInsertLine','doc-chart.snapshot-renderer','docs-chart-ui.chartTypes.bar','initTransformer','remove','Node\x20shape','docs-chart-ui.chartTypes.relation','allSeriesStyle','#4086f4','dispose','Gradient\x20fill','_drainQueue','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','_getDrawing','clear','_requestSnapshot','getRenderById','B\x0918','scene','imageContentHidden','then','tick','Column','seriesIndexes','Color','getRegisteredThemes','setConfig','Pareto','_rect','Area','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','_iconManager','devicePixelRatio','isHalfPie','disconnect','_getOrCreatePastedDataSourceId','firstRowAsHeader','docs-chart-ui.insertChartFailed','pluginName','openInsertDialog','docs-chart-ui.duplicate','key','_snapshotService','fontSize','onChartTypeChange','Piecewise','docs-chart-ui.chartTypes.barPercentStacked','_docContentInsertService','unsubscribe','Bottom','angle','.below','docs-chart-ui.chartTypes.pie','Bubble','flushForTests','chartInvalidated$','direction$','Circle','Diamond','CategoryName','_injector','textRanges','useAbsValue','_staticRenderController','categoryIndex','AreaChartIcon','primary','segmentId','Add\x20series','Line\x20type','add$','top','_activeLayer','executeCommand','1EqWpLI','Circular','row','updateChartStyle','docs-chart-ui.delete','279HGQFvA','layout','transformerConfig','yAxis','assignChartContext','Missing\x20runtime\x20document\x20chart\x20model:\x20','mode','model','mergeMenu','_syncChartImageVisibility','_renderManagerService','LineChartIcon','Square','#666666','docs-chart-ui.chartTypes.boxplot','collapsed','_captureInsertRange','toSpec','_renderDrawing','_imageContentHidden','width','insertRange','getHostStyle','customBlocks','getBoundingClientRect','point','_modelService','removeFloatDom','positionObserver','getRenderModel','deepClone','_getRenderRect','height','BarStacked','getCanvasElement','position','map','dpr','onValuesChange','gridLine','params','Opacity','defaultChartType','Label\x20position','default','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','Right\x20vertical\x20axis\x20title','1068792rMUUUt','status','univer-mx-0\x20univer-mt-0','mountChart','span','_chartThemeService','registerAdapter','_localeService','match','register','_renderer','number','dataAggregation','Multiple','_getActiveRenderRect','_applyHostStyle','order','getRealBound','useSubtotal','_registerComponents','docs-chart-ui.gridlinesAndTicks','Value','A\x0912','isFinite','indicatorLine','stylizeSpec','prototype','baseOn','docs-chart-ui.indicatorLine','BarPercentStacked','docs-chart-ui.editChart','doughnutHole','title','_draw','docs-chart-ui.tableDataEmpty','backgroundColor','Label\x20rotate','chartType','endOffset','Show\x20label\x20line','docs-chart-ui.chartTypes.barStacked','Layout','docs-chart-ui.customizeChart','_registerIcons','_dataUrl','engine','round','setImageContentHidden','Percentage','506275EyGAEQ','Top','docs-chart-ui.chartTypes.waterfall','max','min','minRows','69DFfyyI','_host','dataUrl','symbol','None','series','horizontalAxis','getCurrentUnitOfType','_layoutChanged$','complete','\x20has\x20no\x20render\x20config.','doc-chart.data-editor','from','packageName','Waterfall','piecewise','subUnitId','_refreshActivePosition','_hostStyle','transparent','updateDataFromText','bottom','univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-pb-3','px\x20solid\x20','get','1.0.0-alpha.7','getRect','_subscribeRender','getDrawingByParam','unitId','subscribeEvent','_queue','getFocusDrawings','fill','_commandService','border','Polygon','startOffset','_retryActivateFocusedChart','constructor','docs-chart-ui.chartType','_activeDomReadyDrawingKeys','docs-chart-ui.chartTypes.column','univer-w-[--radix-popper-anchor-width]','render','lineStyle','Inside','Hide','dispatchEvent','targetDrawing','visualMapType','_instanceService','UniverDocsChartUIPlugin','docs-chart-ui.verticalAxis','format','_getChartDrawing','_invalidateSnapshotsForDirectionChange','MEDIA','refreshTransform$','Position','univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg','_manageHostSize','Use\x20subtotal','chartAndAxisTitles','snapshotUpdated$','parseInt','shape','Combination','AreaPercentStacked','remove$','_getDrawingSearch','call','block','onClose','Disabled','disposeWithMe','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','registerCommand','defaultTableText','xAxis','Smooth','Point\x20shape','_isDocChartDrawing','getUnitId','object','getActiveTextRange','titles','Document\x20chart\x20','Dashed','CloudOutlineIcon','funnel','doc-chart.editor-dialog','_renderService','_initCommands','labelContentType','transformByState','docs-chart-ui.fill','Bar','updateChartType','useValueAsSymbolSize','_pasteAdapterService','changeSource','#ffffff','values','getChartModel','Sankey','finally','min(560px,\x20calc(100vh\x20-\x20180px))','delete','_snapshotRenderService','setActiveDomReady','docs-chart-ui.horizontalAxis','_initAdapter','Funnel','HeatmapChartIcon','gridlinesAndTicks','index','theme','__docsChartResource','ready','labelStyle','_renderCharts','applyHostStyle','dblclick','_canvasFloatDomService','root','config$','label','_syncRenderedChartVisibility','_listenChartResourceMutations','makeDirty','getDataSource','orient','getSelfOrHeaderFooterModel','docs-chart-ui.chartTypes.line','catch','BoxplotIcon','dataStream','Heatmap','updateData','Step','doc-chart-host','68830cHAmJU','Series\x20style','DrawingDeleteIcon','Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20','rgb(','Continuous','lineVisible','doc-chart.dialog.insert','_handleFocus','univer-shrink-0','borderRadius','e.g.\x200.00…','indexOf','univer-text-xs','Shape','ensureChartModel','getChart','lineAndArea','size','_getDrawingRect','insertChartFromText','chartId','split','docs-chart-ui.showLabels','Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','_docSelectionManagerService','Theme','univer-mt-2','fillOpacity','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-px-1','DUPLICATE','docs-chart-ui.visible','isArray','univer-ml-2\x20univer-flex\x20univer-size-6\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-sm\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','Stacked','PercentStack','verticalAxis','add','@univerjs-pro/docs-chart-ui','contentType','_removeRenderedCharts','consumeInsertRange','Arrangement','doc.operation.open-doc-chart-insert-dialog','docs-chart-ui.chartTypes.combination','content','AreaStacked','Min','FunnelIcon','left','wordCloud','setActiveChartById','univer-w-full\x20!univer-min-w-0','checkMounted','slice','univer-text-xs\x20univer-text-red-600','Gap','Solid','onChange','drawingId','6092xluPkQ','hidden','dataSources','syncExecuteCommand','_forEachChartDrawing','waterfall','univer-flex\x20univer-flex-wrap\x20univer-gap-2','display','initData','alt','getCurrentTypeOfUnit$','join','createRenderInput','ChartIcon','insertChart','_getPositionState','_getChartKey','pending','startIndex','_configService','_requestSnapshotsForUnit','onStyleChange','addObject','SeriesName','getChartIdsByDataSource','Label\x20font\x20size','indicatorLineType','VIEW_MAIN','Title\x20position','ensureMount','reverse','Right','Line\x20style','_cache','clientHeight','_getRuntimeModel','_menuManagerService','docs-chart-ui.chartNotFound','indicatorLineColor','71621ipwtGk','markReady','docs-chart-ui.reverseAxis','_floatingToolbarAdapterService','_shouldWaitForChartConfig','overflow','createRenderSpec','hide','_initMenus','customBlockMappings','className','getCacheKey','BUTTON','nextVersion','univer-mt-auto\x20univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','Relation','lastIndexOf','repeat','Category','docs-chart-ui.config','docs-chart-ui.chartTypes.areaStacked','docs-chart-ui.save','borderColor','heatmap','Max','tables','context','Title\x20font\x20size','Single','getEditorState','nodeShape','chartStyle','length','#d1d5db','radius','endIndex','_activate','registerRenderModel','trim','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','Line','removeObject','requestSnapshot','docs-chart-ui.cancel','onStarting','Scatter','Boxplot','_drawingAdapterService','decorate','_requestSnapshotsForSearches','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','resolve','doc-chart.insert-panel','getDrawingOrder','univer-mt-2\x20univer-text-sm\x20univer-leading-4\x20univer-text-gray-900\x20dark:!univer-text-white','small','_setElementSize','print','univer-mt-2-base','clipBounds','value','createChartInstance','docs-chart-ui.chartAndAxisTitles','Triangle','titlePosition','docs-chart-ui.insertChart','button','Axis\x20title\x20font\x20size','Percent','_configWaitKeys','getRuntimeContext','docs-chart-ui.horizontalAxisTitle','getDrawingEditable','getOwnPropertyDescriptor','Use\x20values\x20as\x20node\x20size','Fill\x20area','BubbleIcon','setRenderModel','source','legend','breakOffsets','docs-chart-ui.border','docs-chart-ui.chartTypes.heatmap','forEach','contains','_resourceService','transform','docs-chart-ui.title','Doughnut\x20hole','docs-chart-ui.updateChartFailed','push','bind','Series','_drawingManagerService','chartContext','docs-chart-ui.chartTypes.funnel','keys','Dotted','renderRect','univer-flex\x20univer-shrink-0\x20univer-justify-end','ComboChartIcon','_getContentRect','pipe','docs-chart-ui.chartTypes.sankey','subscribe','filter','docs-chart-ui.chartTypes.wordCloud','492WmnDer','createElement','Pie','dataSourceId','doc-chart.dialog.editor','syncLayout','_renderOne','_componentManager','Stack','boxSizing','tooltip','docs-chart-ui.chartTypes.areaPercentStacked','docs-chart-ui.chartTypes.area','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','includes','updateDataAggregation','docs-chart-ui.chartTypes.pareto','DRAWING_CHART','_getPasteMutationInfos','docs-chart-ui.showDataLabels','onReady','parseFloat','style','subtitle','docs-chart-ui.useAbsoluteValue','yAxisTitle','Row\x20','Horizontal\x20width','onScrollAfter$','openEditorDialog','getTextRanges','setClipBounds','100%\x20stacked','WordCloud','selectMode','sourceDrawing','type','textStyle','getSnapshot','ScatterChartIcon','setStyle','SHARED','iterator','docs-chart-ui.setupChart','UNIVER_DOC','pie','_dialogService','1748660lzXNeW','column','_renderModelManager','getDataUrl','string','Close','_activeDrain','dashType','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-gap-4\x20univer-bg-white\x20dark:!univer-bg-gray-900','4700256DKCGBj','Dom','config','_initClipboardHooks','PARAGRAPH','waitForConfig','onCommandExecuted','univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-gap-5\x20univer-overflow-hidden\x20univer-overscroll-contain','setActiveChartRuntime','DrawingEditIcon','_createChartRenderInstanceContext','replaceChildren','sceneRect','Border\x20dash','commitSnapshot','current','requestPaint','find','gradientFill','_docClipboardService','_createImageShape','border-box','radar','getAncestorScale','continuous','shared','duplicate','_renderEntry','BarChartIcon','getDirection','showLabelLine','some','contentRect','_mountNode','_waitForRuntimeConfig','docTransform','charts','_deactivate','univer-min-h-0\x20univer-flex-1','updateChartContext','invalidateChart','RadarChartIcon','relation','rotate','printChart','docs-chart-ui.active-chart','_isActiveLayer'];_0x7c4f=function(){return _0x4ecac7;};return _0x7c4f();}Q=K([G(0x0,_0x2f3732(_0x62dfd0)),G(0x1,_0x2f3732(_0x48828d)),G(0x2,_0x2f3732(X)),G(0x3,_0x4919fe(wr))],Q);let Er=class extends _0x42a091{constructor(_0x170aa5,_0x1d49be,_0x190267,_0x4123f7){const _0x4e1a5f=_0x480d5a;super(),this[_0x4e1a5f(0x99)]=_0x170aa5,this[_0x4e1a5f(0x2a0)]=_0x1d49be,this[_0x4e1a5f(0x1bd)]=_0x190267,this[_0x4e1a5f(0x2df)]=_0x4123f7,this[_0x4e1a5f(0xf8)]();}[_0x480d5a(0xf8)](){const _0x13cd38=_0x480d5a;this[_0x13cd38(0xc2)](this[_0x13cd38(0x99)][_0x13cd38(0x211)](_0x8407f9=>{const _0x492375=_0x13cd38;if(_0x8407f9['id']===_0x11f6e2['id']){var _0x2798a6;let _0xe74ad7=_0x8407f9['params'];_0xe74ad7!=null&&_0xe74ad7[_0x492375(0x94)]&&(_0x2798a6=_0xe74ad7[_0x492375(0x275)])!=null&&_0x2798a6['id']&&(this[_0x492375(0x16c)](_0xe74ad7)?this[_0x492375(0x2a0)][_0x492375(0x233)](_0xe74ad7[_0x492375(0x94)],_0xe74ad7[_0x492375(0x275)]['id'],{'waitForConfig':!0x0}):this[_0x492375(0x2a0)][_0x492375(0x233)](_0xe74ad7[_0x492375(0x94)],_0xe74ad7[_0x492375(0x275)]['id']));return;}if(_0x8407f9['id']===_0x39e296['id']){var _0x18a0e2;let _0x3a8680=_0x8407f9[_0x492375(0x2ed)];if(!(_0x3a8680!=null&&_0x3a8680[_0x492375(0x94)])||!((_0x18a0e2=_0x3a8680[_0x492375(0x24c)])!=null&&_0x18a0e2['id']))return;this[_0x492375(0x1bd)][_0x492375(0x159)](_0x3a8680[_0x492375(0x94)],_0x3a8680[_0x492375(0x24c)]['id'])['forEach'](_0x47c3ea=>this[_0x492375(0x2a0)][_0x492375(0x233)](_0x3a8680[_0x492375(0x94)],_0x47c3ea,{'waitForConfig':!0x0}));}}));}[_0x480d5a(0x16c)](_0x1002e1){const _0x88b393=_0x480d5a;var _0x246b32;let _0x54db05=(_0x246b32=this[_0x88b393(0x2df)][_0x88b393(0xdf)](_0x1002e1[_0x88b393(0x94)],_0x1002e1[_0x88b393(0x275)]['id']))==null||(_0x246b32=_0x246b32['model'][_0x88b393(0x20d)])==null?void 0x0:_0x246b32['type'];return _0x54db05!=null&&_0x54db05!==_0x1002e1['chart'][_0x88b393(0x319)];}};Er=K([G(0x0,_0x38515f),G(0x1,_0x2f3732(Q)),G(0x2,_0x2f3732(_0x3134bd)),G(0x3,_0x2f3732(_0x48828d))],Er);const $=W['id'],Dr=$+_0x480d5a(0x2a9),Or=[{'label':_0x480d5a(0xfd),'value':_0x45452e[_0x480d5a(0x190)],'icon':_0x480d5a(0x2d0)},{'label':_0x480d5a(0xa1),'value':_0x45452e['Column'],'icon':'ColumnChartIcon'},{'label':_0x480d5a(0x2aa),'value':_0x45452e[_0x480d5a(0x1d5)],'icon':'PieChartIcon'},{'label':_0x480d5a(0x278),'value':_0x45452e[_0x480d5a(0xd8)],'icon':'BarChartIcon'},{'label':_0x480d5a(0x31c),'value':_0x45452e[_0x480d5a(0x2e6)],'icon':'BarChartIcon'},{'label':'docs-chart-ui.chartTypes.barPercentStacked','value':_0x45452e['BarPercentStacked'],'icon':_0x480d5a(0x227)},{'label':_0x480d5a(0x1df),'value':_0x45452e[_0x480d5a(0x293)],'icon':_0x480d5a(0x2b7)},{'label':'docs-chart-ui.chartTypes.areaStacked','value':_0x45452e['AreaStacked'],'icon':_0x480d5a(0x2b7)},{'label':_0x480d5a(0x1de),'value':_0x45452e['AreaPercentStacked'],'icon':_0x480d5a(0x2b7)},{'label':_0x480d5a(0x257),'value':_0x45452e[_0x480d5a(0x246)],'icon':_0x480d5a(0x234)},{'label':_0x480d5a(0x131),'value':_0x45452e[_0x480d5a(0xba)],'icon':_0x480d5a(0x1cc)},{'label':_0x480d5a(0x243),'value':_0x45452e[_0x480d5a(0x195)],'icon':_0x480d5a(0x1fa)},{'label':_0x480d5a(0x1d2),'value':_0x45452e['WordCloud'],'icon':_0x480d5a(0xd0)},{'label':'docs-chart-ui.chartTypes.funnel','value':_0x45452e['Funnel'],'icon':_0x480d5a(0x135)},{'label':_0x480d5a(0x268),'value':_0x45452e[_0x480d5a(0x2ab)],'icon':_0x480d5a(0x1b4)},{'label':_0x480d5a(0x27c),'value':_0x45452e[_0x480d5a(0x177)],'icon':'RelationshipIcon'},{'label':_0x480d5a(0x327),'value':_0x45452e[_0x480d5a(0x85)],'icon':'WaterfallChartIcon'},{'label':_0x480d5a(0x1e3),'value':_0x45452e[_0x480d5a(0x291)],'icon':_0x480d5a(0x1cc)},{'label':_0x480d5a(0x1cf),'value':_0x45452e[_0x480d5a(0xe0)],'icon':'SankeyChartIcon'},{'label':_0x480d5a(0x1ba),'value':_0x45452e[_0x480d5a(0x101)],'icon':_0x480d5a(0xe9)},{'label':_0x480d5a(0x2d3),'value':_0x45452e['Boxplot'],'icon':_0x480d5a(0xff)}];function kr(_0x5d518f){const _0x3fadcd=_0x480d5a;return _0xeed30e([_0x53d0e6(_0x5d518f),Ar(_0x5d518f)])[_0x3fadcd(0x1ce)](_0x371a94(([_0xba26cd,_0x47def0])=>_0xba26cd||_0x47def0));}function Ar(_0x34f192){const _0x24e9a1=_0x480d5a;let _0x3a6c2=_0x34f192['get'](_0x4c9978),_0x1b3979=_0x34f192[_0x24e9a1(0x8f)](_0x287d9c);return new _0x2fe54a(_0x2612bd=>{const _0x3fe9ed=_0x24e9a1;let _0x542902=_0x483473=>{const _0x4e69c5=_0x1ae9;var _0x52ddfc,_0x4f4a9a,_0x1c85ef,_0x3e4e68,_0x5b6a28;let _0xa3f10b=_0x1b3979[_0x4e69c5(0x332)](_0x436ddb[_0x4e69c5(0x1ff)]);if(!_0xa3f10b){_0x2612bd[_0x4e69c5(0x26d)](!0x0);return;}let _0x7fd21b=(_0x52ddfc=_0x483473==null?void 0x0:_0x483473[_0x4e69c5(0x2b3)])==null?[...(_0x4f4a9a=_0x3a6c2[_0x4e69c5(0x1f1)]())==null?[]:_0x4f4a9a]:_0x52ddfc;if(_0x7fd21b[_0x4e69c5(0x188)]!==0x1){_0x2612bd[_0x4e69c5(0x26d)](!0x0);return;}let _0x2c05d3=(_0x1c85ef=_0x3a6c2[_0x4e69c5(0xcc)]())==null?_0x7fd21b[0x0]:_0x1c85ef;if(!_0x2c05d3||!_0x2c05d3[_0x4e69c5(0x2d4)]||_0x2c05d3[_0x4e69c5(0x9c)]==null){_0x2612bd[_0x4e69c5(0x26d)](!0x0);return;}let _0x260554=Z(_0xa3f10b,{..._0x2c05d3,'segmentId':(_0x3e4e68=(_0x5b6a28=_0x2c05d3[_0x4e69c5(0x2b9)])==null?_0x483473==null?void 0x0:_0x483473[_0x4e69c5(0x2b9)]:_0x5b6a28)==null?'':_0x3e4e68});_0x2612bd['next'](_0x260554==null);};_0x542902();let _0x48bffc=_0x3a6c2['textSelection$']['subscribe'](_0x28ae80=>_0x542902(_0x28ae80));return()=>_0x48bffc[_0x3fe9ed(0x2a6)]();});}function jr(_0x249306){const _0x5914bc=_0x480d5a;return{'id':$,'type':_0x14baf4['SELECTOR'],'selections':Or,'icon':'ChartIcon','tooltip':_0x5914bc(0x1a9),'disabled$':kr(_0x249306),'hidden$':_0x2a64b2(_0x249306,_0x436ddb[_0x5914bc(0x1ff)])};}function Mr(_0x55af68){const _0xc2e6cf=_0x480d5a;return{'id':$,'commandId':W['id'],'type':_0x14baf4[_0xc2e6cf(0x174)],'icon':_0xc2e6cf(0x14e),'title':_0xc2e6cf(0x1a9),'tooltip':_0xc2e6cf(0x1a9),'disabled$':kr(_0x55af68),'hidden$':_0x2a64b2(_0x55af68,_0x436ddb[_0xc2e6cf(0x1ff)])};}function Nr(_0x2c8688){const _0x338e75=_0x480d5a;return{'id':Dr,'commandId':W['id'],'type':_0x14baf4['BUTTON'],'icon':_0x338e75(0x14e),'title':'docs-chart-ui.insertChart','tooltip':'docs-chart-ui.insertChart','disabled$':kr(_0x2c8688),'hidden$':_0x2a64b2(_0x2c8688,_0x436ddb[_0x338e75(0x1ff)])};}const Pr={[_0x5d4eb7[_0x480d5a(0xb0)]]:{[$]:{'order':2.5,'menuItemFactory':jr}},[_0x478e41[_0x480d5a(0x20f)]]:{[_0x5d5758[_0x480d5a(0x24a)]]:{[_0x3a27c4]:{[$]:{'order':4.5,'menuItemFactory':Mr}}},[_0x5a6ace]:{[_0x5d5758[_0x480d5a(0x24a)]]:{[$]:{'order':5.5,'menuItemFactory':Mr}}},[_0x12f43a]:{[_0x5d5758['LAYOUT']]:{[$]:{'order':4.5,'menuItemFactory':Mr}}},[_0x3591db]:{'insert':{[$]:{'order':1.5,'menuItemFactory':Mr}}},[_0x5ee70a]:{'insert':{[Dr]:{'order':1.5,'menuItemFactory':Nr}}}}};var Fr=_0x480d5a(0x12b),Ir=_0x480d5a(0x90),Lr=class extends _0x16b360{constructor(..._0xc2cb56){const _0x3454fd=_0x480d5a;super(..._0xc2cb56),Y(this,_0x3454fd(0x2d8),!0x1);}get[_0x480d5a(0x289)](){const _0x201f0f=_0x480d5a;return this[_0x201f0f(0x2d8)];}[_0x480d5a(0x323)](_0x183f2b){const _0x17c1a5=_0x480d5a;this[_0x17c1a5(0x2d8)]!==_0x183f2b&&(this[_0x17c1a5(0x2d8)]=_0x183f2b,this['makeDirty'](!0x0));}[_0x480d5a(0x315)](_0x257828,_0x2b4a24,_0x48196b,_0x41fe4a){const _0x192597=_0x480d5a;this[_0x192597(0x2d8)]||super[_0x192597(0x315)](_0x257828,_0x2b4a24,_0x48196b,_0x41fe4a);}};const Rr={'borderEnabled':!0x0,'borderStroke':_0x480d5a(0x27e),'borderStrokeWidth':0x1,'borderSpacing':0x2,'anchorFill':_0x480d5a(0xdd),'anchorStroke':_0x480d5a(0x27e),'anchorStrokeWidth':1.5,'anchorSize':0x8,'anchorCornerRadius':0x2,'anchorStyle':_0x480d5a(0x274),'rotateEnabled':!0x0,'rotateSize':0x12,'rotateCornerRadius':0x9,'rotateAnchorOffset':0x1c,'rotateAnchorPosition':_0x480d5a(0x8c),'rotateLineEnabled':!0x1,'rotateFill':_0x480d5a(0xdd),'rotateStroke':_0x480d5a(0x27e),'rotateStrokeWidth':0x1,'rotateIconEnabled':!0x0,'rotateIconStroke':_0x480d5a(0x27e),'rotateIconStrokeWidth':1.25,'resizeEnabled':!0x0,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1},zr={...Rr,'rotateEnabled':!0x1};let Br=class extends _0x42a091{constructor(_0x4c3587,_0x33c7b4,_0x4a1b52){const _0x4baa55=_0x480d5a;super(),this['_drawingManagerService']=_0x4c3587,this[_0x4baa55(0x2cf)]=_0x33c7b4,this['_snapshotRenderService']=_0x4a1b52,Y(this,_0x4baa55(0xa0),new Set()),this['_init']();}[_0x480d5a(0xe5)](_0x20e33a,_0x37fa0c){const _0x517451=_0x480d5a;let _0x33cd2c=_0x124096(_0x20e33a);_0x37fa0c?this['_activeDomReadyDrawingKeys'][_0x517451(0x12a)](_0x33cd2c):this[_0x517451(0xa0)]['delete'](_0x33cd2c),this[_0x517451(0xf7)](_0x20e33a);}[_0x480d5a(0x259)](){const _0x374509=_0x480d5a;this[_0x374509(0xc2)](this[_0x374509(0x1c5)][_0x374509(0x2bc)]['subscribe'](_0x1501a9=>{const _0xd6e79=_0x374509;this[_0xd6e79(0x199)](_0x1501a9);})),this[_0x374509(0xc2)](this['_drawingManagerService'][_0x374509(0xb1)][_0x374509(0x1d0)](_0x2e5bea=>{const _0x5069e3=_0x374509;this[_0x5069e3(0x199)](_0x2e5bea);})),this[_0x374509(0xc2)](this['_drawingManagerService'][_0x374509(0xbc)]['subscribe'](_0x280d74=>{this['_removeRenderedCharts'](_0x280d74);})),this[_0x374509(0xc2)](this[_0x374509(0xe4)][_0x374509(0x2ad)][_0x374509(0x1d0)](({unitId:_0x4bd20a,chartId:_0x24dd9a})=>{this['_requestSnapshotsForUnit'](_0x4bd20a,_0x24dd9a);})),this[_0x374509(0xc2)](this[_0x374509(0xe4)][_0x374509(0xb7)][_0x374509(0x1d0)](_0x429815=>{const _0x10c788=_0x374509;if(_0x429815[_0x10c788(0x2f5)]!=='ready'||!_0x429815[_0x10c788(0x32d)])return;let [_0x2b8f11,_0x2d3ff6]=_0x429815[_0x10c788(0x29f)][_0x10c788(0x11b)]('::');!_0x2b8f11||!_0x2d3ff6||this[_0x10c788(0xf0)](_0x2b8f11,_0x2d3ff6,_0x429815['dataUrl']);}));}[_0x480d5a(0x199)](_0xe037db){const _0x1d2c64=_0x480d5a;_0xe037db[_0x1d2c64(0x1bb)](_0x177ae3=>{const _0x366c90=_0x1d2c64;let _0x1a53d8=this[_0x366c90(0xae)](_0x177ae3);_0x1a53d8&&this['_requestSnapshot'](_0x1a53d8);});}[_0x480d5a(0x155)](_0x3d4476,_0x219e74){const _0x26c71d=_0x480d5a;this[_0x26c71d(0x145)](_0x3d4476,_0x1274e5=>{const _0x4d81e2=_0x26c71d;(_0x219e74==null||_0x1274e5[_0x4d81e2(0x11a)]===_0x219e74)&&this[_0x4d81e2(0x285)](_0x1274e5);});}[_0x480d5a(0x285)](_0x559a0d){const _0x3a7acf=_0x480d5a;let _0x16747b=this['_getDrawingRect'](_0x559a0d);if(!_0x16747b)return;let _0x41ed75=this[_0x3a7acf(0xe4)][_0x3a7acf(0x192)]({'unitId':_0x559a0d[_0x3a7acf(0x94)],'chartId':_0x559a0d[_0x3a7acf(0x11a)],'width':_0x16747b['width'],'height':_0x16747b[_0x3a7acf(0x2e5)],'dpr':typeof window>'u'?0x1:window[_0x3a7acf(0x296)]||0x1,'mode':_0x3a7acf(0x23e)});_0x41ed75[_0x3a7acf(0x2f5)]===_0x3a7acf(0xee)&&_0x41ed75['dataUrl']&&this[_0x3a7acf(0x2d7)](_0x559a0d,_0x41ed75['dataUrl']);}[_0x480d5a(0xf0)](_0x3457fc,_0x368c14,_0x54adec){const _0x5abc5f=_0x480d5a;this[_0x5abc5f(0x145)](_0x3457fc,_0x1664a7=>{const _0x391ed1=_0x5abc5f;_0x1664a7['chartId']===_0x368c14&&this[_0x391ed1(0x2d7)](_0x1664a7,_0x54adec);});}['_renderDrawing'](_0x18655f,_0x41ada8){const _0x1c1a38=_0x480d5a;let _0x26bf1a=this['_renderManagerService'][_0x1c1a38(0x286)](_0x18655f[_0x1c1a38(0x94)]),_0x97da47=_0x26bf1a==null?void 0x0:_0x26bf1a[_0x1c1a38(0x288)];if(!_0x97da47||!this[_0x1c1a38(0x118)](_0x18655f))return;this['_drawingManagerService'][_0x1c1a38(0x1b0)]()&&_0x97da47[_0x1c1a38(0x279)](Rr);let _0x3cb05f=_0x124096(_0x18655f),_0x50d0ca=_0x97da47[_0x1c1a38(0x240)](_0x3cb05f);if(_0x50d0ca!=null&&_0x50d0ca[_0x1c1a38(0xdc)]){var _0x50c32f,_0x2af538,_0x5682e7,_0x3798c5;_0x50d0ca[_0x1c1a38(0x2c7)]={..._0x50d0ca[_0x1c1a38(0x2c7)],...zr},_0x50d0ca[_0x1c1a38(0xdc)](_0x41ada8),(_0x50c32f=_0x50d0ca[_0x1c1a38(0xd6)])==null||_0x50c32f[_0x1c1a38(0xbe)](_0x50d0ca,_0x18655f[_0x1c1a38(0x1be)]),(_0x2af538=_0x50d0ca[_0x1c1a38(0x1f2)])==null||_0x2af538['call'](_0x50d0ca,(_0x5682e7=_0x18655f['transform'])==null?void 0x0:_0x5682e7['clipBounds']),this[_0x1c1a38(0x2ce)](_0x50d0ca,_0x18655f,_0x3cb05f),(_0x3798c5=_0x50d0ca[_0x1c1a38(0xf9)])==null||_0x3798c5['call'](_0x50d0ca,!0x0);return;}this[_0x1c1a38(0x21f)](_0x18655f,_0x41ada8,_0x97da47,_0x3cb05f);}['_createImageShape'](_0x449aaa,_0x2c3d9d,_0x506088,_0x2e9c43){const _0x2db8aa=_0x480d5a;let _0x422f28=_0x449aaa[_0x2db8aa(0x1be)];if(!_0x422f28)return;let _0x1bfb37=this['_drawingManagerService'][_0x2db8aa(0x19d)](_0x449aaa[_0x2db8aa(0x94)],_0x449aaa[_0x2db8aa(0x87)]),_0x233af0=_0x1bfb37[_0x2db8aa(0x111)](_0x449aaa[_0x2db8aa(0x140)]),_0x3fe6a5={..._0x422f28,'zIndex':_0x233af0===-0x1?_0x1bfb37[_0x2db8aa(0x188)]-0x1:_0x233af0,'clipBounds':_0x422f28[_0x2db8aa(0x1a3)],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':zr,'url':_0x2c3d9d};_0x449aaa[_0x2db8aa(0x142)]&&(_0x3fe6a5[_0x2db8aa(0x266)]=!0x1);let _0x8c9de6=new Lr(_0x2e9c43,_0x3fe6a5);_0x8c9de6[_0x2db8aa(0x323)](this[_0x2db8aa(0xa0)][_0x2db8aa(0x23c)](_0x2e9c43)),_0x506088[_0x2db8aa(0x157)](_0x8c9de6,_0x221ccb),this[_0x2db8aa(0x1c5)]['getDrawingEditable']()&&_0x506088['attachTransformerTo'](_0x8c9de6);}[_0x480d5a(0x12d)](_0x2ca44b){_0x2ca44b['forEach'](_0x317de5=>{const _0x418138=_0x1ae9;this[_0x418138(0xa0)][_0x418138(0xe3)](_0x124096(_0x317de5));let _0x2a01ea=this['_renderManagerService'][_0x418138(0x286)](_0x317de5['unitId']),_0x14b1b3=_0x2a01ea==null?void 0x0:_0x2a01ea[_0x418138(0x288)];if(!_0x14b1b3)return;let _0x3f71b6=_0x14b1b3[_0x418138(0x240)](_0x124096(_0x317de5));_0x3f71b6&&_0x14b1b3[_0x418138(0x191)](_0x3f71b6);});}['_syncRenderedChartVisibility'](_0x2e39e4){const _0x62dd7f=_0x480d5a;let _0x3d9259=this[_0x62dd7f(0x2cf)]['getRenderById'](_0x2e39e4[_0x62dd7f(0x94)]),_0x62238c=_0x3d9259==null?void 0x0:_0x3d9259['scene'];if(!_0x62238c)return;let _0x35767b=_0x124096(_0x2e39e4),_0x9ecc3e=_0x62238c[_0x62dd7f(0x240)](_0x35767b);if(!_0x9ecc3e)return;let _0x466fec=this[_0x62dd7f(0x1c5)][_0x62dd7f(0x93)](_0x2e39e4);this['_syncChartImageVisibility'](_0x9ecc3e,_0x466fec,_0x35767b);}[_0x480d5a(0x2ce)](_0x43d834,_0xa57267,_0x13ad35){const _0x30d427=_0x480d5a;var _0x658b86,_0x547c7a;let _0x81fe13=this[_0x30d427(0xa0)][_0x30d427(0x23c)](_0x13ad35);if(_0x43d834[_0x30d427(0x323)]){var _0x40177a,_0x5ee35c;_0x43d834[_0x30d427(0x323)](_0x81fe13),(_0xa57267==null?void 0x0:_0xa57267['hidden'])===!0x0?(_0x40177a=_0x43d834['hide'])==null||_0x40177a[_0x30d427(0xbe)](_0x43d834):(_0x5ee35c=_0x43d834[_0x30d427(0x23a)])==null||_0x5ee35c[_0x30d427(0xbe)](_0x43d834);return;}(_0xa57267==null?void 0x0:_0xa57267['hidden'])===!0x0?(_0x658b86=_0x43d834[_0x30d427(0x16f)])==null||_0x658b86[_0x30d427(0xbe)](_0x43d834):(_0x547c7a=_0x43d834[_0x30d427(0x23a)])==null||_0x547c7a[_0x30d427(0xbe)](_0x43d834);}[_0x480d5a(0xae)](_0x1961cd){const _0x3bf893=_0x480d5a;let _0x50bb3c=this[_0x3bf893(0x1c5)][_0x3bf893(0x93)](_0x1961cd);return Vr(_0x50bb3c)?_0x50bb3c:null;}['_forEachChartDrawing'](_0x2adab8,_0x2a20fd){const _0x4f5283=_0x480d5a;let _0x112ce7=this[_0x4f5283(0x1c5)][_0x4f5283(0x248)](_0x2adab8),_0x5f5b58=_0x112ce7==null?void 0x0:_0x112ce7[_0x2adab8];_0x5f5b58&&_0x5f5b58[_0x4f5283(0x304)][_0x4f5283(0x1bb)](_0x474b26=>{let _0x5b96bf=_0x5f5b58['data'][_0x474b26];Vr(_0x5b96bf)&&_0x2a20fd(_0x5b96bf);});}[_0x480d5a(0x118)](_0x1c96cc){const _0x5bfff8=_0x480d5a;var _0x462cc7,_0x41aad8,_0x5ba876,_0x5b7799,_0x2360e,_0xa78f60,_0x2337fd,_0x1ff985;let _0x11ccf1=(_0x462cc7=(_0x41aad8=(_0x5ba876=_0x1c96cc[_0x5bfff8(0x1be)])==null?void 0x0:_0x5ba876[_0x5bfff8(0x2d9)])==null?(_0x5b7799=_0x1c96cc['docTransform'])==null||(_0x5b7799=_0x5b7799[_0x5bfff8(0x117)])==null?void 0x0:_0x5b7799[_0x5bfff8(0x2d9)]:_0x41aad8)==null?0x0:_0x462cc7,_0x496d4f=(_0x2360e=(_0xa78f60=(_0x2337fd=_0x1c96cc['transform'])==null?void 0x0:_0x2337fd[_0x5bfff8(0x2e5)])==null?(_0x1ff985=_0x1c96cc[_0x5bfff8(0x22e)])==null||(_0x1ff985=_0x1ff985[_0x5bfff8(0x117)])==null?void 0x0:_0x1ff985[_0x5bfff8(0x2e5)]:_0xa78f60)==null?0x0:_0x2360e;return _0x11ccf1<=0x0||_0x496d4f<=0x0?null:{'width':Math[_0x5bfff8(0x328)](0x1,Math[_0x5bfff8(0x322)](_0x11ccf1)),'height':Math[_0x5bfff8(0x328)](0x1,Math['round'](_0x496d4f))};}};Br=K([G(0x0,_0x3f7a70),G(0x1,_0x581cf4),G(0x2,_0x2f3732(Q))],Br);function Vr(_0x2ec21e){const _0x300484=_0x480d5a;let _0x4835ba=_0x2ec21e;return(_0x4835ba==null?void 0x0:_0x4835ba[_0x300484(0x267)])===_0x3c5d64['DRAWING_CHART']&&typeof _0x4835ba['chartId']==_0x300484(0x206);}function Hr(_0x2d306f,_0x5a324e,_0x2e0521=0x1,_0xe5ce61=0x0){const _0x5da7e9=_0x480d5a;let {top:_0xebcce1,left:_0x8cd26a,bottom:_0x256989,right:_0x5e9259}=_0x2d306f,_0x21b8fc=_0x5e9259-_0x8cd26a,_0x3ebfcb=_0x256989-_0xebcce1,{viewportScrollX:_0x3545f8,viewportScrollY:_0xbbfcf7}=_0x5a324e[_0x5da7e9(0x252)](_0x19b533[_0x5da7e9(0x15c)]),{scaleX:_0x13d904,scaleY:_0x10d58}=_0x5a324e[_0x5da7e9(0x222)](),_0x411164=(_0x8cd26a-_0x3545f8)*_0x13d904,_0x33c447=(_0xebcce1-_0xbbfcf7)*_0x10d58,_0x21c805=_0x21b8fc*_0x13d904,_0x15400d=_0x3ebfcb*_0x10d58;return{'startX':_0x411164,'startY':_0x33c447,'endX':_0x411164+_0x21c805,'endY':_0x33c447+_0x15400d,'width':_0x21c805,'height':_0x15400d,'rotate':_0xe5ce61,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x2e0521};}function Ur(_0x44d775,_0x8f6135){const _0x4a7566=_0x480d5a;var _0x174926,_0x5f48e5;return _0x44d775[_0x4a7566(0x94)]===_0x8f6135['unitId']&&((_0x174926=_0x44d775[_0x4a7566(0x87)])==null?_0x44d775[_0x4a7566(0x94)]:_0x174926)===((_0x5f48e5=_0x8f6135[_0x4a7566(0x87)])==null?_0x8f6135[_0x4a7566(0x94)]:_0x5f48e5)&&_0x44d775[_0x4a7566(0x140)]===_0x8f6135['drawingId'];}function Wr(_0x4d014c,_0x5d9911=0x0){const _0x4c420a=_0x480d5a;var _0x1b01db;return(_0x1b01db=_0x4d014c[_0x4c420a(0x21c)](_0x4c9998=>typeof _0x4c9998==_0x4c420a(0x2ff)&&Number[_0x4c420a(0x30b)](_0x4c9998)))==null?_0x5d9911:_0x1b01db;}function Gr(_0x490f3f,_0xb64647){const _0x2b9842=_0x480d5a;var _0x3f251c,_0xb83eca,_0x8c2573,_0x1a8da1,_0x4cf8ad,_0x101239,_0x2446de;let _0x3db3d3=_0xb64647==null||(_0x3f251c=_0xb64647[_0x2b9842(0x305)])==null?void 0x0:_0x3f251c[_0x2b9842(0xbe)](_0xb64647),_0x3650c1=Wr([_0x3db3d3==null?void 0x0:_0x3db3d3['width'],(_0xb83eca=_0x490f3f[_0x2b9842(0x1be)])==null?void 0x0:_0xb83eca['width'],(_0x8c2573=_0x490f3f['docTransform'])==null||(_0x8c2573=_0x8c2573[_0x2b9842(0x117)])==null?void 0x0:_0x8c2573[_0x2b9842(0x2d9)]]),_0x3737c1=Wr([_0x3db3d3==null?void 0x0:_0x3db3d3[_0x2b9842(0x2e5)],(_0x1a8da1=_0x490f3f[_0x2b9842(0x1be)])==null?void 0x0:_0x1a8da1[_0x2b9842(0x2e5)],(_0x4cf8ad=_0x490f3f[_0x2b9842(0x22e)])==null||(_0x4cf8ad=_0x4cf8ad['size'])==null?void 0x0:_0x4cf8ad[_0x2b9842(0x2e5)]]),_0x412852=Wr([_0x3db3d3==null?void 0x0:_0x3db3d3[_0x2b9842(0x136)],(_0x101239=_0x490f3f[_0x2b9842(0x1be)])==null?void 0x0:_0x101239[_0x2b9842(0x136)]]),_0x5baf9a=Wr([_0x3db3d3==null?void 0x0:_0x3db3d3[_0x2b9842(0x2bd)],(_0x2446de=_0x490f3f[_0x2b9842(0x1be)])==null?void 0x0:_0x2446de['top']]);return{'left':_0x412852,'top':_0x5baf9a,'right':_0x412852+_0x3650c1,'bottom':_0x5baf9a+_0x3737c1};}function Kr(_0x24fed6,_0x222846){const _0x261fe4=_0x480d5a;if(!_0x24fed6||typeof _0x24fed6!='object')return;let _0x2fa8de=_0x24fed6;if(typeof _0x2fa8de['subscribeEvent']==_0x261fe4(0x270)){let _0x3782f5=_0x2fa8de[_0x261fe4(0x95)](_0x222846);return _0x481640(()=>{const _0x3d7810=_0x261fe4;var _0xe70c4d;if(typeof _0x3782f5[_0x3d7810(0x27f)]=='function'){_0x3782f5[_0x3d7810(0x27f)]();return;}(_0xe70c4d=_0x3782f5[_0x3d7810(0x2a6)])==null||_0xe70c4d[_0x3d7810(0xbe)](_0x3782f5);});}let _0x4353b9=_0x24fed6;if(typeof _0x4353b9[_0x261fe4(0x1d0)]==_0x261fe4(0x270)){let _0x2985d9=_0x4353b9[_0x261fe4(0x1d0)](_0x222846);return _0x481640(()=>{const _0x512810=_0x261fe4;var _0x6553d0;return(_0x6553d0=_0x2985d9[_0x512810(0x2a6)])==null?void 0x0:_0x6553d0[_0x512810(0xbe)](_0x2985d9);});}}let qr=class extends _0x42a091{constructor(_0x21f4b0,_0x76e07c,_0x3687ea,_0x139d0e,_0x417c3c,_0x5dc415,_0x307d74,_0x26929a,_0x273044,_0x4669a5){const _0x383c5d=_0x480d5a;super(),this[_0x383c5d(0x1c5)]=_0x21f4b0,this[_0x383c5d(0x2cf)]=_0x76e07c,this[_0x383c5d(0xf3)]=_0x3687ea,this[_0x383c5d(0x2df)]=_0x139d0e,this[_0x383c5d(0xd3)]=_0x417c3c,this[_0x383c5d(0xe4)]=_0x5dc415,this[_0x383c5d(0x99)]=_0x307d74,this[_0x383c5d(0x26b)]=_0x26929a,this[_0x383c5d(0x2fb)]=_0x273044,this['_staticRenderController']=_0x4669a5,Y(this,_0x383c5d(0x2be),null),Y(this,_0x383c5d(0x333),new _0x5effdb()),this[_0x383c5d(0x259)]();}[_0x480d5a(0x2f7)](_0x1b7868){const _0x465dc0=_0x480d5a;let _0x16bf58=this['_modelService'][_0x465dc0(0x114)](_0x1b7868[_0x465dc0(0x94)],_0x1b7868[_0x465dc0(0x11a)]);if(!_0x16bf58)return _0x481640(()=>{});let _0x593b0d=new qn(_0x1b7868[_0x465dc0(0x11a)],_0x1b7868[_0x465dc0(0xf4)],(_0x2184e2,_0x4a23c8)=>this['_renderService'][_0x465dc0(0xf1)](_0x2184e2,_0x4a23c8),()=>this[_0x465dc0(0x302)](_0x1b7868)),_0x22b049=this[_0x465dc0(0xd3)][_0x465dc0(0x1a5)](_0x2764f1[_0x465dc0(0x20c)]);_0x22b049[_0x465dc0(0x1c3)](_0x593b0d);let _0x4927f7=[_0x22b049['on'](_0x465dc0(0xf2),()=>{const _0x2ec0f9=_0x465dc0;this['_commandService'][_0x2ec0f9(0x2bf)](ln['id'],{'unitId':_0x1b7868[_0x2ec0f9(0x94)],'chartId':_0x1b7868[_0x2ec0f9(0x11a)],'drawingId':_0x1b7868['drawingId']});})],_0x540d5b=!0x0;return _0x4927f7[_0x465dc0(0x1c2)](this[_0x465dc0(0x92)](_0x16bf58,_0x22b049,_0x1b7868,()=>_0x540d5b)),_0x481640(()=>{const _0x1ccbe9=_0x465dc0;_0x540d5b=!0x1,this[_0x1ccbe9(0x2b5)][_0x1ccbe9(0xe5)](this[_0x1ccbe9(0xbd)](_0x1b7868),!0x1),_0x4927f7[_0x1ccbe9(0x1bb)](_0x5e831d=>_0x5e831d[_0x1ccbe9(0x27f)]()),_0x22b049[_0x1ccbe9(0x27f)](),_0x593b0d['dispose']();});}[_0x480d5a(0x27f)](){const _0x1b4f30=_0x480d5a;this[_0x1b4f30(0x230)](),this[_0x1b4f30(0x333)][_0x1b4f30(0x334)](),super[_0x1b4f30(0x27f)]();}[_0x480d5a(0x259)](){const _0x46937b=_0x480d5a;this['disposeWithMe'](this[_0x46937b(0x1c5)][_0x46937b(0x23d)]['subscribe'](_0x29ebce=>{this['_handleFocus'](_0x29ebce);})),this['disposeWithMe'](this[_0x46937b(0x1c5)][_0x46937b(0xbc)][_0x46937b(0x1d0)](_0x228b24=>{const _0x7deb79=_0x46937b;let _0x269462=this[_0x7deb79(0x2be)];_0x269462&&_0x228b24['some'](_0x1c5326=>Ur(_0x1c5326,_0x269462))&&this[_0x7deb79(0x230)]();})),this[_0x46937b(0xc2)](this[_0x46937b(0x1c5)][_0x46937b(0xb1)][_0x46937b(0x1d0)](_0x3a1a9=>{const _0x2bfb44=_0x46937b;let _0x17fb52=this[_0x2bfb44(0x2be)];if(!_0x17fb52){this[_0x2bfb44(0x9d)](_0x3a1a9);return;}let _0x5329ff=_0x3a1a9[_0x2bfb44(0x21c)](_0x13adaf=>Ur(_0x13adaf,_0x17fb52));if(_0x5329ff){let _0x56c26a=this[_0x2bfb44(0x1c5)][_0x2bfb44(0x93)]({'unitId':_0x5329ff['unitId'],'subUnitId':_0x5329ff['subUnitId'],'drawingId':_0x5329ff[_0x2bfb44(0x140)]});this[_0x2bfb44(0xc9)](_0x56c26a)&&this['_updatePosition'](_0x56c26a);}})),this[_0x46937b(0xc2)](this[_0x46937b(0x26b)][_0x46937b(0x14b)](_0x436ddb['UNIVER_DOC'])['subscribe'](_0x17a81a=>{const _0x425852=_0x46937b;let _0x535b47=this[_0x425852(0x2be)];_0x535b47&&(_0x17a81a==null?void 0x0:_0x17a81a[_0x425852(0xca)]())!==_0x535b47['unitId']&&this[_0x425852(0x230)]();}));}[_0x480d5a(0x92)](_0x2eca4b,_0xb4bb44,_0x5a9253,_0x505753){const _0x492703=_0x480d5a;let _0xdcd4cf=()=>{const _0x3d4a62=_0x1ae9;let {chartConfig:_0x593474,chartStyle:_0x4dee70}=this[_0x3d4a62(0xd3)][_0x3d4a62(0x14d)](_0x2eca4b);Promise['resolve'](_0xb4bb44['render']({'chartId':_0x2eca4b[_0x3d4a62(0x11a)],'config':_0x593474,'style':_0x4dee70}))[_0x3d4a62(0x28a)](()=>{const _0x239879=_0x3d4a62;_0x505753()&&this[_0x239879(0x239)](_0x5a9253)&&this[_0x239879(0x2b5)][_0x239879(0xe5)](this['_getDrawingSearch'](_0x5a9253),!0x0);},()=>{});},_0x8f8f61=_0xeed30e([_0x2eca4b[_0x492703(0x2cc)][_0x492703(0xf5)],_0x2eca4b[_0x492703(0x2cc)][_0x492703(0x26a)],this[_0x492703(0x2fb)]['direction$']])['pipe'](_0x42467f(([_0x3468ee])=>_0x3468ee!=null))[_0x492703(0x1d0)](_0xdcd4cf),_0x7b5bd1=this[_0x492703(0x333)]['pipe'](_0x42467f(_0x24ce80=>_0x24ce80===_0x5a9253[_0x492703(0x140)]))[_0x492703(0x1d0)](_0xdcd4cf);return _0x481640(()=>{const _0x80a69c=_0x492703;_0x8f8f61[_0x80a69c(0x2a6)](),_0x7b5bd1[_0x80a69c(0x2a6)]();});}[_0x480d5a(0x10d)](_0x2effd1){const _0x170af9=_0x480d5a;let _0x58511b=(_0x2effd1==null?[]:_0x2effd1)[_0x170af9(0x1d1)](_0x2e063e=>this['_isDocChartDrawing'](_0x2e063e));if(_0x58511b[_0x170af9(0x188)]!==0x1){this[_0x170af9(0x230)]();return;}this[_0x170af9(0x18c)](_0x58511b[0x0]);}[_0x480d5a(0x18c)](_0x1b8096){const _0x22c987=_0x480d5a;var _0x44594e,_0x3953b9,_0x433297,_0x6e02ba,_0xc7dfed;let _0x4fda2a=this[_0x22c987(0x150)](_0x1b8096),_0xcadd00=this[_0x22c987(0x2e4)](_0x1b8096),_0x68c656=(_0x44594e=_0x1b8096['subUnitId'])==null?_0x1b8096[_0x22c987(0x94)]:_0x44594e;if(!_0x4fda2a||!_0xcadd00){this[_0x22c987(0x230)]();return;}if(((_0x3953b9=this[_0x22c987(0x2be)])==null?void 0x0:_0x3953b9[_0x22c987(0x94)])===_0x1b8096[_0x22c987(0x94)]&&this['_activeLayer'][_0x22c987(0x87)]===_0x68c656&&this['_activeLayer']['drawingId']===_0x1b8096[_0x22c987(0x140)]&&this['_activeLayer']['chartId']===_0x1b8096[_0x22c987(0x11a)]){this['_activeLayer']['scene']=_0x4fda2a[_0x22c987(0x288)],this[_0x22c987(0x2be)][_0x22c987(0x217)]=_0x4fda2a[_0x22c987(0x217)],this[_0x22c987(0x2be)]['angle']=_0x4fda2a[_0x22c987(0x2a8)],this[_0x22c987(0x2be)][_0x22c987(0x1ca)]=_0xcadd00,this[_0x22c987(0x2be)]['position$'][_0x22c987(0x26d)](_0x4fda2a[_0x22c987(0x2e8)]);return;}this[_0x22c987(0x230)]();let _0x26dce5=new _0x5888ec(_0x4fda2a['position']),_0x4c8c20=this[_0x22c987(0x2cf)][_0x22c987(0x286)](_0x1b8096['unitId']),_0x214051=_0x4c8c20==null||(_0x6e02ba=(_0x433297=_0x4c8c20[_0x22c987(0x321)])[_0x22c987(0x2e7)])==null?void 0x0:_0x6e02ba['call'](_0x433297);this[_0x22c987(0xf3)]['addFloatDom']({'id':_0x1b8096['drawingId'],'componentKey':Jr,'position$':_0x26dce5,'unitId':_0x1b8096[_0x22c987(0x94)],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0x1b8096['chartId'],'subUnitId':_0x68c656},'onPointerDown':_0x2ea8a8=>_0x214051==null?void 0x0:_0x214051['dispatchEvent'](new PointerEvent(_0x2ea8a8[_0x22c987(0x1f7)],_0x2ea8a8)),'onPointerMove':_0x3e273f=>_0x214051==null?void 0x0:_0x214051[_0x22c987(0xa7)](new PointerEvent(_0x3e273f[_0x22c987(0x1f7)],_0x3e273f)),'onPointerUp':_0x3aad02=>_0x214051==null?void 0x0:_0x214051[_0x22c987(0xa7)](new PointerEvent(_0x3aad02['type'],_0x3aad02)),'onWheel':_0x348928=>_0x214051==null?void 0x0:_0x214051[_0x22c987(0xa7)](new WheelEvent(_0x348928[_0x22c987(0x1f7)],_0x348928))}),this[_0x22c987(0x2df)][_0x22c987(0x138)](_0x1b8096[_0x22c987(0x94)],_0x1b8096[_0x22c987(0x11a)]);let _0x2f245e={'unitId':_0x1b8096[_0x22c987(0x94)],'subUnitId':_0x68c656,'drawingId':_0x1b8096['drawingId'],'chartId':_0x1b8096[_0x22c987(0x11a)],'scene':_0x4fda2a[_0x22c987(0x288)],'sceneRect':_0x4fda2a[_0x22c987(0x217)],'angle':_0x4fda2a[_0x22c987(0x2a8)],'renderRect':_0xcadd00,'position$':_0x26dce5,'positionObserver':_0x481640(()=>{})};this[_0x22c987(0x2be)]=_0x2f245e;let _0x5406e3=_0x4c8c20==null||(_0xc7dfed=_0x4c8c20[_0x22c987(0x288)])==null?void 0x0:_0xc7dfed['getViewport'](_0x19b533[_0x22c987(0x15c)]),_0x5877de=Kr(_0x5406e3==null?void 0x0:_0x5406e3[_0x22c987(0x1ef)],()=>{const _0x51434e=_0x22c987;this[_0x51434e(0x88)](_0x1b8096[_0x51434e(0x94)],_0x1b8096['drawingId'],_0x1b8096[_0x51434e(0x11a)]);});_0x2f245e[_0x22c987(0x2e1)]=_0x5877de==null?_0x481640(()=>{}):_0x5877de;}[_0x480d5a(0x230)](){const _0x1830ce=_0x480d5a;let _0x45d7ad=this[_0x1830ce(0x2be)];_0x45d7ad&&(this['_activeLayer']=null,_0x45d7ad[_0x1830ce(0x2e1)][_0x1830ce(0x27f)](),this[_0x1830ce(0x2b5)][_0x1830ce(0xe5)]({'unitId':_0x45d7ad['unitId'],'subUnitId':_0x45d7ad[_0x1830ce(0x87)],'drawingId':_0x45d7ad[_0x1830ce(0x140)]},!0x1),this[_0x1830ce(0xf3)][_0x1830ce(0x2e0)](_0x45d7ad[_0x1830ce(0x140)]),this[_0x1830ce(0x2df)][_0x1830ce(0x213)](null),this[_0x1830ce(0xe4)][_0x1830ce(0x233)](_0x45d7ad[_0x1830ce(0x94)],_0x45d7ad[_0x1830ce(0x11a)],{'waitForConfig':!0x0}),_0x45d7ad[_0x1830ce(0x271)]['complete']());}['_refreshActivePosition'](_0x2f6ef4,_0x4c46b1,_0x7e26e0){const _0x5a2293=_0x480d5a;let _0x2a7e00=this[_0x5a2293(0x2be)];(_0x2a7e00==null?void 0x0:_0x2a7e00[_0x5a2293(0x94)])!==_0x2f6ef4||_0x2a7e00[_0x5a2293(0x140)]!==_0x4c46b1||_0x2a7e00['chartId']!==_0x7e26e0||_0x2a7e00[_0x5a2293(0x271)][_0x5a2293(0x26d)](Hr(_0x2a7e00[_0x5a2293(0x217)],_0x2a7e00[_0x5a2293(0x288)],0x1,_0x2a7e00[_0x5a2293(0x2a8)]));}[_0x480d5a(0x256)](_0x12b340){const _0xf2fe33=_0x480d5a;let _0x3ece84=this[_0xf2fe33(0x150)](_0x12b340),_0x4e9c8c=this['_getRenderRect'](_0x12b340);if(_0x3ece84&&_0x4e9c8c){var _0x2ae340;this['_activeLayer']&&(this[_0xf2fe33(0x2be)][_0xf2fe33(0x288)]=_0x3ece84[_0xf2fe33(0x288)],this['_activeLayer'][_0xf2fe33(0x217)]=_0x3ece84[_0xf2fe33(0x217)],this[_0xf2fe33(0x2be)][_0xf2fe33(0x2a8)]=_0x3ece84[_0xf2fe33(0x2a8)],this[_0xf2fe33(0x2be)][_0xf2fe33(0x1ca)]=_0x4e9c8c),(_0x2ae340=this['_activeLayer'])==null||_0x2ae340['position$'][_0xf2fe33(0x26d)](_0x3ece84[_0xf2fe33(0x2e8)]),this['_layoutChanged$']['next'](_0x12b340['drawingId']);}}[_0x480d5a(0x9d)](_0x505f57){const _0x3c6e21=_0x480d5a;let _0x259cc9=this['_drawingManagerService'][_0x3c6e21(0x97)]()[_0x3c6e21(0x1d1)](_0x2e7fa7=>this[_0x3c6e21(0xc9)](_0x2e7fa7));_0x259cc9[_0x3c6e21(0x188)]===0x1&&_0x505f57[_0x3c6e21(0x22a)](_0x2be880=>Ur(_0x2be880,_0x259cc9[0x0]))&&this[_0x3c6e21(0x18c)](_0x259cc9[0x0]);}[_0x480d5a(0x150)](_0x3985fb){const _0x32939c=_0x480d5a;let _0x50ea5f=_0x3985fb['transform'];if(!_0x50ea5f)return null;let _0x2933fd=this[_0x32939c(0x2cf)]['getRenderById'](_0x3985fb['unitId']);if(!(_0x2933fd!=null&&_0x2933fd[_0x32939c(0x288)]))return null;let _0x26ef27=_0x124096(_0x3985fb),_0xb07fce=_0x2933fd['scene'][_0x32939c(0x240)](_0x26ef27),_0x5555a5=Gr(_0x3985fb,_0xb07fce),_0x238d64=_0x5555a5['right']-_0x5555a5[_0x32939c(0x136)],_0x492c7b=_0x5555a5[_0x32939c(0x8c)]-_0x5555a5[_0x32939c(0x2bd)];if(_0x238d64<=0x0||_0x492c7b<=0x0)return null;let _0x4b08e7=Wr([_0xb07fce==null?void 0x0:_0xb07fce[_0x32939c(0x2a8)],_0x50ea5f[_0x32939c(0x2a8)]]);return{'scene':_0x2933fd['scene'],'sceneRect':_0x5555a5,'angle':_0x4b08e7,'position':Hr(_0x5555a5,_0x2933fd[_0x32939c(0x288)],0x1,_0x4b08e7)};}[_0x480d5a(0x2e4)](_0x27305f){const _0x26d65c=_0x480d5a;var _0x106c0f,_0x1a6a03,_0x5e540e,_0x3b1eb4,_0x3d3aa9,_0x324323,_0x395efc,_0x5ecc8e;let _0x22304d=(_0x106c0f=(_0x1a6a03=(_0x5e540e=_0x27305f['transform'])==null?void 0x0:_0x5e540e[_0x26d65c(0x2d9)])==null?(_0x3b1eb4=_0x27305f[_0x26d65c(0x22e)])==null||(_0x3b1eb4=_0x3b1eb4['size'])==null?void 0x0:_0x3b1eb4[_0x26d65c(0x2d9)]:_0x1a6a03)==null?0x0:_0x106c0f,_0x207f00=(_0x3d3aa9=(_0x324323=(_0x395efc=_0x27305f['transform'])==null?void 0x0:_0x395efc['height'])==null?(_0x5ecc8e=_0x27305f[_0x26d65c(0x22e)])==null||(_0x5ecc8e=_0x5ecc8e[_0x26d65c(0x117)])==null?void 0x0:_0x5ecc8e[_0x26d65c(0x2e5)]:_0x324323)==null?0x0:_0x3d3aa9;return _0x22304d<=0x0||_0x207f00<=0x0?null:{'width':Math[_0x26d65c(0x328)](0x1,Math[_0x26d65c(0x322)](_0x22304d)),'height':Math['max'](0x1,Math[_0x26d65c(0x322)](_0x207f00))};}[_0x480d5a(0x302)](_0x23f172){const _0x30df21=_0x480d5a;var _0x223609;let _0x46021d=this[_0x30df21(0x2be)];if((_0x46021d==null?void 0x0:_0x46021d[_0x30df21(0x94)])===_0x23f172['unitId']&&_0x46021d[_0x30df21(0x87)]===((_0x223609=_0x23f172[_0x30df21(0x87)])==null?_0x23f172['unitId']:_0x223609)&&_0x46021d[_0x30df21(0x140)]===_0x23f172[_0x30df21(0x140)]&&_0x46021d[_0x30df21(0x11a)]===_0x23f172[_0x30df21(0x11a)])return _0x46021d[_0x30df21(0x1ca)];let _0x80ea78=this[_0x30df21(0x1c5)]['getDrawingByParam'](this[_0x30df21(0xbd)](_0x23f172));return this[_0x30df21(0xc9)](_0x80ea78)?this[_0x30df21(0x2e4)](_0x80ea78):null;}['_getDrawingSearch'](_0x511713){const _0x5b2baf=_0x480d5a;var _0x32ec6e;return{'unitId':_0x511713[_0x5b2baf(0x94)],'subUnitId':(_0x32ec6e=_0x511713[_0x5b2baf(0x87)])==null?_0x511713[_0x5b2baf(0x94)]:_0x32ec6e,'drawingId':_0x511713[_0x5b2baf(0x140)]};}[_0x480d5a(0x239)](_0x4e852b){const _0x551454=_0x480d5a;var _0x34925e;let _0xcb1051=this['_activeLayer'];return(_0xcb1051==null?void 0x0:_0xcb1051['unitId'])===_0x4e852b[_0x551454(0x94)]&&_0xcb1051[_0x551454(0x87)]===((_0x34925e=_0x4e852b[_0x551454(0x87)])==null?_0x4e852b[_0x551454(0x94)]:_0x34925e)&&_0xcb1051[_0x551454(0x140)]===_0x4e852b[_0x551454(0x140)]&&_0xcb1051['chartId']===_0x4e852b[_0x551454(0x11a)];}[_0x480d5a(0xc9)](_0x7bd2ce){const _0x25f735=_0x480d5a;let _0x25a5b2=_0x7bd2ce;return(_0x25a5b2==null?void 0x0:_0x25a5b2[_0x25f735(0x267)])===_0x3c5d64[_0x25f735(0x1e4)]&&typeof _0x25a5b2['chartId']==_0x25f735(0x206);}};qr=K([G(0x0,_0x3f7a70),G(0x1,_0x581cf4),G(0x2,_0x2f3732(_0xd426fc)),G(0x3,_0x2f3732(_0x48828d)),G(0x4,_0x2f3732(X)),G(0x5,_0x2f3732(Q)),G(0x6,_0x38515f),G(0x7,_0x287d9c),G(0x8,_0x2f3732(_0x62dfd0)),G(0x9,_0x2f3732(Br))],qr);const Jr=_0x480d5a(0x238),Yr=_0x15fd16=>{const _0x3c0648=_0x480d5a;let {unitId:_0x36eee0,subUnitId:_0x239bd0,floatDomId:_0x5ddc98,chartId:_0x49656f,context:_0xde1627}=_0x15fd16,_0x45074c=_0x57945f(qr);return _0x3785fc(()=>{const _0x3f84d0=_0x1ae9;let _0x158a70=_0xde1627[_0x3f84d0(0xf4)][_0x3f84d0(0x21a)];if(!_0x158a70)return;let _0x46056c=_0x45074c[_0x3f84d0(0x2f7)]({'unitId':_0x36eee0,'subUnitId':_0x239bd0,'drawingId':_0x5ddc98,'chartId':_0x49656f,'root':_0x158a70});return()=>_0x46056c['dispose']();},[_0x45074c,_0x49656f,_0xde1627[_0x3c0648(0xf4)],_0x5ddc98,_0x239bd0,_0x36eee0]),null;};let Xr=class extends _0x42a091{constructor(_0x35b30d,_0x52a082){const _0xffe8bb=_0x480d5a;super(),this['_drawingManagerService']=_0x35b30d,this[_0xffe8bb(0xe4)]=_0x52a082;}[_0x480d5a(0x237)](_0x459779,_0x135d77,_0x12eb61,_0x5d1758){const _0x30ae3e=_0x480d5a;let _0x450ff5=this[_0x30ae3e(0x283)](_0x459779,_0x135d77);if(_0x12eb61[_0x30ae3e(0x216)](),!_0x450ff5)return{'dispose':()=>_0x12eb61[_0x30ae3e(0x216)]()};let _0x420199={'unitId':_0x459779,'chartId':_0x450ff5['chartId'],'width':Math[_0x30ae3e(0x328)](0x1,Math['round'](_0x5d1758['width'])),'height':Math[_0x30ae3e(0x328)](0x1,Math['round'](_0x5d1758[_0x30ae3e(0x2e5)])),'mode':_0x30ae3e(0x1a1)},_0x18459f=this[_0x30ae3e(0xe4)][_0x30ae3e(0x192)](_0x420199);this['_renderEntry'](_0x12eb61,_0x18459f);let _0x148ac5=this[_0x30ae3e(0xe4)][_0x30ae3e(0xb7)][_0x30ae3e(0x1d0)](_0xa8d85f=>{const _0x8ab30b=_0x30ae3e;_0xa8d85f['key']===_0x18459f[_0x8ab30b(0x29f)]&&this[_0x8ab30b(0x226)](_0x12eb61,_0xa8d85f);});return{'dispose':()=>{const _0x165186=_0x30ae3e;_0x148ac5[_0x165186(0x2a6)](),_0x12eb61[_0x165186(0x216)]();}};}[_0x480d5a(0x283)](_0x3d678f,_0x23a215){const _0x27fe80=_0x480d5a;let _0xd5b6ae={'unitId':_0x3d678f,'subUnitId':_0x3d678f,'drawingId':_0x23a215},_0xc37041=this[_0x27fe80(0x1c5)]['getDrawingByParam'](_0xd5b6ae);return!_0xc37041||_0xc37041[_0x27fe80(0x267)]!==_0x3c5d64[_0x27fe80(0x1e4)]||!_0xc37041[_0x27fe80(0x11a)]?null:_0xc37041;}[_0x480d5a(0x226)](_0x17a4bc,_0x1fe14c){const _0x529879=_0x480d5a;if(_0x1fe14c['status']!==_0x529879(0xee)||!_0x1fe14c[_0x529879(0x32d)])return;let _0x54337f=document['createElement']('img');_0x54337f['src']=_0x1fe14c[_0x529879(0x32d)],_0x54337f[_0x529879(0x14a)]='',_0x54337f[_0x529879(0x1e9)][_0x529879(0x148)]=_0x529879(0xbf),_0x54337f[_0x529879(0x1e9)][_0x529879(0x2d9)]='100%',_0x54337f[_0x529879(0x1e9)][_0x529879(0x2e5)]='100%',_0x17a4bc[_0x529879(0x216)](_0x54337f);}};Xr=K([G(0x0,_0x3f7a70),G(0x1,_0x2f3732(Q))],Xr);const Zr=_0x2034d0=>{const _0x4f5c2e=_0x480d5a;let {unitId:_0x1c37b3,floatDomId:_0x487d93,context:_0x46fec3}=_0x2034d0,_0x156c29=_0x57945f(Xr);return _0x3785fc(()=>{const _0x3ba6de=_0x1ae9;let _0x46eb43=_0x46fec3[_0x3ba6de(0xf4)][_0x3ba6de(0x21a)];if(!_0x46eb43)return;let _0x580442={'width':Number[_0x3ba6de(0x1e8)](_0x46eb43[_0x3ba6de(0x1e9)][_0x3ba6de(0x2d9)])||_0x46eb43['clientWidth']||0x1,'height':Number['parseFloat'](_0x46eb43['style'][_0x3ba6de(0x2e5)])||_0x46eb43[_0x3ba6de(0x163)]||0x1},_0xc2342e=_0x156c29[_0x3ba6de(0x237)](_0x1c37b3,_0x487d93,_0x46eb43,_0x580442);return()=>_0xc2342e['dispose']();},[_0x46fec3[_0x4f5c2e(0xf4)],_0x487d93,_0x156c29,_0x1c37b3]),null;};let Qr=class extends _0x42a091{constructor(_0x2394ae,_0x5e91af){const _0x250f0b=_0x480d5a;super(),this[_0x250f0b(0x1da)]=_0x2394ae,this['_iconManager']=_0x5e91af,this[_0x250f0b(0x31f)](),this[_0x250f0b(0x307)]();}[_0x480d5a(0x31f)](){const _0x40ca5c=_0x480d5a;this['disposeWithMe'](this[_0x40ca5c(0x295)]['register']({'ChartIcon':_0x29efa6,'AreaChartIcon':_0xf79451,'BarChartIcon':_0x305e48,'ColumnChartIcon':_0xca304c,'ComboChartIcon':_0x31cb6f,'LineChartIcon':_0x41a362,'PieChartIcon':_0x1fcd33,'RadarChartIcon':_0x3eea1d,'ScatterChartIcon':_0x34b90b,'FunnelIcon':_0x1c26e9,'CloudIcon':_0x4086e7,'BubbleIcon':_0x3870a0,'RelationshipIcon':_0x489d4f,'WaterfallChartIcon':_0x1028b3,'SankeyChartIcon':_0x5a073f,'HeatmapChartIcon':_0x267a20,'BoxplotIcon':_0x114a7}));}[_0x480d5a(0x307)](){const _0x589646=_0x480d5a;this[_0x589646(0xc2)](this[_0x589646(0x1da)][_0x589646(0x2fd)](pr,hr)),this[_0x589646(0xc2)](this[_0x589646(0x1da)][_0x589646(0x2fd)](fn,hn)),this['disposeWithMe'](this['_componentManager'][_0x589646(0x2fd)]($n,tr)),this[_0x589646(0xc2)](this[_0x589646(0x1da)][_0x589646(0x2fd)](_0x3258fb,Zr)),this[_0x589646(0xc2)](this[_0x589646(0x1da)][_0x589646(0x2fd)](Jr,Yr));}};Qr=K([G(0x0,_0x2f3732(_0x13dcfd)),G(0x1,_0x2f3732(_0x374f6d))],Qr);let $r=class extends _0x42a091{constructor(_0x8cec54,_0xc7974d,_0x485fbf,_0x394021,_0x24977d,_0x4c4a0d,_0x5cf34a){const _0x47bd2e=_0x480d5a;super(),this[_0x47bd2e(0x201)]=_0x8cec54,this[_0x47bd2e(0x2fb)]=_0xc7974d,this[_0x47bd2e(0xaa)]=_0x485fbf,this[_0x47bd2e(0x11e)]=_0x394021,this[_0x47bd2e(0x2a5)]=_0x24977d,this[_0x47bd2e(0x165)]=_0x4c4a0d,this['_commandService']=_0x5cf34a,this[_0x47bd2e(0x170)](),this['_registerDialogOperations']();}[_0x480d5a(0x29d)](_0xea41be){const _0x168537=_0x480d5a;var _0x383284,_0xa20e09;let _0x1ebd3b=null,_0xf405a6=()=>{const _0x2812d8=_0x1ae9;_0x1ebd3b==null||_0x1ebd3b[_0x2812d8(0x27f)](),_0x1ebd3b=null;};return _0x1ebd3b=this[_0x168537(0x201)][_0x168537(0x26f)]({'id':_0x168537(0x10c),'title':{'title':_0x168537(0x312)},'width':0x3c0,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'destroyOnClose':!0x0,'children':{'label':{'name':pr,'props':{'defaultChartType':(_0x383284=_0xea41be==null?void 0x0:_0xea41be[_0x168537(0x2ef)])==null?_0xea41be==null?void 0x0:_0xea41be[_0x168537(0x1a4)]:_0x383284,'defaultTableText':_0xea41be==null?void 0x0:_0xea41be[_0x168537(0xc5)],'insertOptions':{'insertRange':(_0xa20e09=_0xea41be==null?void 0x0:_0xea41be['insertRange'])==null?this['_captureInsertRange']():_0xa20e09},'onCancel':_0xf405a6,'onInserted':_0xf405a6}}},'onClose':_0xf405a6}),!0x0;}[_0x480d5a(0x1f0)](_0x4aeffb){const _0x5efe7a=_0x480d5a;let _0x3ae233=null,_0x35e786=()=>{const _0x2a2050=_0x1ae9;_0x3ae233==null||_0x3ae233[_0x2a2050(0x27f)](),_0x3ae233=null;};return _0x3ae233=this[_0x5efe7a(0x201)][_0x5efe7a(0x26f)]({'id':er,'title':{'title':_0x5efe7a(0x312)},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'destroyOnClose':!0x0,'children':{'label':{'name':$n,'props':{..._0x4aeffb,'onClose':_0x35e786}}},'onClose':_0x35e786}),!0x0;}[_0x480d5a(0x170)](){const _0x2754d9=_0x480d5a;this[_0x2754d9(0x165)][_0x2754d9(0x2cd)](Pr);}['_registerDialogOperations'](){const _0x1532eb=_0x480d5a;this[_0x1532eb(0xc2)](this[_0x1532eb(0x99)][_0x1532eb(0x211)](_0x4a04ae=>{const _0x35f357=_0x1532eb;if(_0x4a04ae['id']===W['id']){this[_0x35f357(0x29d)](_0x4a04ae[_0x35f357(0x2ed)]);return;}if(_0x4a04ae['id']===ln['id']){let _0x1fd0b5=_0x4a04ae[_0x35f357(0x2ed)];_0x1fd0b5&&this[_0x35f357(0x1f0)](_0x1fd0b5);}}));}[_0x480d5a(0x2d5)](){const _0x3581ec=_0x480d5a;var _0x50b28c,_0x2fb6c9,_0x264ef8;let _0x1679f2=this[_0x3581ec(0xaa)][_0x3581ec(0x332)](_0x436ddb[_0x3581ec(0x1ff)]);if(!_0x1679f2)return;let _0x267239=_0x1679f2[_0x3581ec(0xca)](),_0x22fb8a=null;try{_0x22fb8a=this[_0x3581ec(0x2a5)][_0x3581ec(0x12e)](_0x267239);}catch{_0x22fb8a=null;}if(_0x22fb8a){var _0x3901af;let _0x1d2915={'startOffset':_0x22fb8a[_0x3581ec(0x9c)],'endOffset':_0x22fb8a[_0x3581ec(0x31a)],'collapsed':_0x22fb8a[_0x3581ec(0x9c)]===_0x22fb8a[_0x3581ec(0x31a)],'segmentId':(_0x3901af=_0x22fb8a['segmentId'])==null?'':_0x3901af};return Z(_0x1679f2,_0x1d2915)?_0x1d2915:void 0x0;}let _0x33e9a8=[...(_0x50b28c=this[_0x3581ec(0x11e)][_0x3581ec(0x1f1)]())==null?[]:_0x50b28c];if(_0x33e9a8[_0x3581ec(0x188)]!==0x1)return;let _0x2edfcd=(_0x2fb6c9=this[_0x3581ec(0x11e)][_0x3581ec(0xcc)]())==null?_0x33e9a8[0x0]:_0x2fb6c9;if(!_0x2edfcd||!_0x2edfcd[_0x3581ec(0x2d4)]||_0x2edfcd[_0x3581ec(0x9c)]==null)return;let _0x3a1d8e={..._0x2edfcd,'segmentId':(_0x264ef8=_0x2edfcd['segmentId'])==null?'':_0x264ef8};return Z(_0x1679f2,_0x3a1d8e)?_0x3a1d8e:void 0x0;}};$r=K([G(0x0,_0x2f3732(_0x551698)),G(0x1,_0x2f3732(_0x62dfd0)),G(0x2,_0x287d9c),G(0x3,_0x2f3732(_0x4c9978)),G(0x4,_0x2f3732(_0x3ea8bd)),G(0x5,_0x2021be),G(0x6,_0x38515f)],$r);let ei=class extends _0x312b49{constructor(_0x2247d9=yr,_0x2b7a99,_0x324a56,_0x2a687c){const _0xe948c1=_0x480d5a;super(),this['_config']=_0x2247d9,this[_0xe948c1(0x2b2)]=_0x2b7a99,this[_0xe948c1(0x154)]=_0x324a56,this[_0xe948c1(0x99)]=_0x2a687c;let {..._0x94f797}=_0x9ee372({},yr,this['_config']);this[_0xe948c1(0x154)][_0xe948c1(0x290)](vr,_0x94f797),this['_initCommands'](),_0x34044a(_0x449c03);}[_0x480d5a(0x194)](){const _0x167e2b=_0x480d5a;let _0xc34de9=this[_0x167e2b(0x2b2)];[[Qr],[dr],[q],[qr],[Xr],[X],[Q],[Er],[Br],[xr],[Sr],[$r]][_0x167e2b(0x1bb)](_0x2939b4=>_0xc34de9[_0x167e2b(0x12a)](_0x2939b4)),_0x78d68a(_0xc34de9,[[dr],[q],[qr],[Xr],[X],[Q],[xr],[Sr]]),this[_0x167e2b(0x2b2)][_0x167e2b(0x8f)](Qr);}[_0x480d5a(0x1e7)](){const _0x590e48=_0x480d5a;this[_0x590e48(0x2b2)][_0x590e48(0x8f)](Er),this['_injector']['get'](Br),this['_injector']['get'](xr),this[_0x590e48(0x2b2)][_0x590e48(0x8f)](Sr),this['_injector'][_0x590e48(0x8f)]($r);}[_0x480d5a(0xd4)](){const _0x1e8df8=_0x480d5a;[W,ln][_0x1e8df8(0x1bb)](_0x18f7e9=>{const _0x10076d=_0x1e8df8;this[_0x10076d(0xc2)](this[_0x10076d(0x99)][_0x10076d(0xc4)](_0x18f7e9));});}};Y(ei,_0x480d5a(0x1f7),_0x436ddb[_0x480d5a(0x1ff)]),Y(ei,_0x480d5a(0x29c),_0x480d5a(0xab)),Y(ei,_0x480d5a(0x338),Fr),Y(ei,'version',Ir),ei=K([_0xa8679d(_0x8c86a0,_0x578234,_0x1b6d5b,_0x15b0de),G(0x1,_0x2f3732(_0x292f4d)),G(0x2,_0x2f9f79),G(0x3,_0x38515f)],ei);export{vr as DOCS_CHART_UI_PLUGIN_CONFIG_KEY,Jr as DOC_ACTIVE_CHART_COMPONENT,br as DOC_CHART_CLIPBOARD_RESOURCE_KEY,fn as DOC_CHART_DATA_EDITOR_COMPONENT,pn as DOC_CHART_DATA_EDITOR_DIALOG_ID,$n as DOC_CHART_EDITOR_DIALOG_COMPONENT,er as DOC_CHART_EDITOR_DIALOG_ID,Dr as DOC_CHART_INSERT_BELOW_MENU_ID,$ as DOC_CHART_INSERT_MENU_ID,Or as DOC_CHART_INSERT_MENU_OPTIONS,pr as DOC_CHART_INSERT_PANEL_COMPONENT,Yr as DocActiveChart,qr as DocChartActiveRenderService,xr as DocChartClipboardController,q as DocChartDataEditService,hn as DocChartDataEditor,mn as DocChartDataEditorSubmitMode,Sr as DocChartDrawingEditController,Un as DocChartEditPanel,tr as DocChartEditorDialog,dn as DocChartInlineTableEditor,Nr as DocChartInsertBelowMenuItemFactory,Mr as DocChartInsertMenuItemFactory,hr as DocChartInsertPanel,jr as DocChartInsertRibbonMenuItemFactory,dr as DocChartInsertService,Xr as DocChartPrintService,X as DocChartRenderService,Er as DocChartSnapshotRefreshController,Q as DocChartSnapshotRenderService,qn as DocDomChartHost,Kn as DocImageChartHost,Zr as DocPrintChart,Pr as DocsChartUIMenuSchema,Jn as IDocChartRenderModelService,wr as IDocChartSnapshotRendererService,ln as OpenDocChartEditorDialogOperation,W as OpenDocChartInsertDialogOperation,ei as UniverDocsChartUIPlugin,_0x2cf5e1 as appendInlineTableColumn,_0x4139ea as appendInlineTableRow,un as applyInlineTablePaste,_0x5d4913 as compactInlineTableValues,yr as defaultPluginConfig,kr as getDocChartInsertDisabledObservable,_0x5be43c as normalizeInlineTableValues};
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};