@univerjs-pro/docs-chart-ui 1.0.0-alpha.8 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +47 -66
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/operations/chart-dialog.operation.d.ts +2 -3
- package/lib/types/components/DocChartDataEditor.d.ts +6 -4
- package/lib/types/components/DocChartEditPanel.d.ts +87 -16
- package/lib/types/components/DocChartEditorDialog.d.ts +2 -3
- package/lib/types/components/DocChartPreview.d.ts +3 -4
- package/lib/types/controllers/components.controller.d.ts +2 -4
- package/lib/types/controllers/doc-chart-clipboard.controller.d.ts +4 -4
- package/lib/types/controllers/doc-chart-drawing-edit.controller.d.ts +2 -2
- package/lib/types/controllers/doc-chart-snapshot-refresh.controller.d.ts +3 -2
- package/lib/types/index.d.ts +5 -6
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +108 -61
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/menu/chart.menu.d.ts +4 -7
- package/lib/types/services/chart-image-export-provider.d.ts +21 -0
- package/lib/types/services/doc-chart-data-edit.service.d.ts +8 -11
- package/lib/types/services/doc-chart-host.d.ts +2 -14
- package/lib/types/services/doc-chart-insert.service.d.ts +5 -4
- package/lib/types/services/doc-chart-render.service.d.ts +6 -11
- package/lib/types/services/doc-chart-snapshot-render.service.d.ts +8 -51
- package/lib/types/services/doc-chart-ui.service.d.ts +21 -0
- package/lib/types/utils/ChartPanelOptions.d.ts +1 -9
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
- package/lib/types/components/DocChartInlineTableEditor.d.ts +0 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4152cc=_0xfc4a;(function(_0x3ca8b2,_0xb753fc){const _0x48487d=_0xfc4a,_0x4f1d33=_0x3ca8b2();while(!![]){try{const _0x7fc123=parseInt(_0x48487d(0x1c7))/0x1*(-parseInt(_0x48487d(0x448))/0x2)+-parseInt(_0x48487d(0x4a5))/0x3+-parseInt(_0x48487d(0x4dc))/0x4*(-parseInt(_0x48487d(0x1d9))/0x5)+parseInt(_0x48487d(0x27b))/0x6*(parseInt(_0x48487d(0x390))/0x7)+-parseInt(_0x48487d(0x419))/0x8+-parseInt(_0x48487d(0x1b1))/0x9*(parseInt(_0x48487d(0x3a7))/0xa)+parseInt(_0x48487d(0x2d0))/0xb;if(_0x7fc123===_0xb753fc)break;else _0x4f1d33['push'](_0x4f1d33['shift']());}catch(_0x4a0680){_0x4f1d33['push'](_0x4f1d33['shift']());}}}(_0x56f3,0xd31ad),Object[_0x4152cc(0x33c)](exports,Symbol[_0x4152cc(0x308)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/design'),n=require('@univerjs/ui'),r=require('react'),i=require('@univerjs-pro/chart-ui'),a=require('@univerjs-pro/docs-chart'),o=require('react/jsx-runtime'),s=require('@univerjs-pro/engine-chart'),c=require('@univerjs/icons'),l=require('@univerjs/docs'),u=require('@univerjs/docs-ui'),d=require('@univerjs/docs-drawing'),f=require('@univerjs/docs-drawing-ui'),p=require('rxjs'),m=require('@univerjs-pro/license'),h=require('@univerjs/drawing'),g=require('@univerjs/engine-render');const _={'id':'doc.operation.open-doc-chart-insert-dialog','type':e['CommandType'][_0x4152cc(0x399)],'handler'(){return!0x0;}},v={'id':_0x4152cc(0x4d8),'type':e['CommandType'][_0x4152cc(0x399)],'handler'(){return!0x0;}};function y(_0x2c1ed2,_0x3ee798,_0x2db7f9=0x1,_0x309ceb=0x1){const _0x7a1d98=_0x4152cc;return(0x0,i[_0x7a1d98(0x425)])(_0x3ee798,a['parseInlineTable'],_0x2db7f9,_0x309ceb);}function ee(_0x16e6af){const _0x4f03ba=_0x4152cc;return(0x0,o['jsx'])(i[_0x4f03ba(0x1be)],{'values':_0x16e6af[_0x4f03ba(0x1ab)],'minRows':_0x16e6af[_0x4f03ba(0x3e7)],'minColumns':_0x16e6af[_0x4f03ba(0x379)],'parsePastedText':a[_0x4f03ba(0x41e)],'onChange':_0x16e6af['onChange']});}const b=_0x4152cc(0x4e1);let x=function(_0x141550){const _0x323c9e=_0x4152cc;return _0x141550[_0x323c9e(0x4bf)]=_0x323c9e(0x327),_0x141550[_0x323c9e(0x229)]=_0x323c9e(0x3f6),_0x141550;}({});function te(_0x565030){const _0x1701a9=_0x4152cc;let _0x24bff4=(0x0,n[_0x1701a9(0x21a)])(e[_0x1701a9(0x333)]),{values:_0x5a1c02,sharingCount:_0x4db50c=0x1,onCancel:_0x136639,onChange:_0xc0f9f0,onSubmit:_0xb905c0}=_0x565030,[_0x4d1f4a,_0x30decf]=(0x0,r[_0x1701a9(0x4c6)])(()=>_0x5a1c02[_0x1701a9(0x1c8)](_0x1677e0=>[..._0x1677e0])),[_0x3ddde3,_0x5e1466]=(0x0,r['useState'])(null),_0x39de99=_0x4db50c>0x1,_0x45c13d=_0x4c4bbd=>{_0x30decf(_0x4c4bbd),_0xc0f9f0==null||_0xc0f9f0(_0x4c4bbd);},_0x2ca735=_0x4d3f52=>{const _0x5559d0=_0x1701a9;let _0x31a322=(0x0,i['compactInlineTableValues'])(_0x4d1f4a);if(_0x31a322[_0x5559d0(0x29c)]===0x0){_0x5e1466(_0x24bff4['t'](_0x5559d0(0x445)));return;}_0x5e1466(null),_0xb905c0(_0x31a322,_0x4d3f52);};return(0x0,o[_0x1701a9(0x3d7)])('div',{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[(0x0,o[_0x1701a9(0x450)])('div',{'className':_0x1701a9(0x2b4),'children':(0x0,o[_0x1701a9(0x450)])(ee,{'values':_0x4d1f4a,'onChange':_0x45c13d})}),_0x3ddde3&&(0x0,o[_0x1701a9(0x450)])(_0x1701a9(0x3d1),{'className':_0x1701a9(0x251),'children':_0x3ddde3}),(0x0,o[_0x1701a9(0x3d7)])(_0x1701a9(0x3d1),{'className':_0x1701a9(0x4b4),'children':[_0x136639&&(0x0,o[_0x1701a9(0x450)])(t[_0x1701a9(0x387)],{'type':'button','variant':'default','onClick':_0x136639,'children':_0x24bff4['t'](_0x1701a9(0x2e6))}),_0x39de99&&(0x0,o[_0x1701a9(0x450)])(t[_0x1701a9(0x387)],{'type':_0x1701a9(0x23a),'variant':_0x1701a9(0x349),'onClick':()=>_0x2ca735('duplicate'),'children':_0x24bff4['t']('docs-chart-ui.duplicate')}),(0x0,o[_0x1701a9(0x450)])(t[_0x1701a9(0x387)],{'type':_0x1701a9(0x23a),'variant':_0x1701a9(0x213),'onClick':()=>_0x2ca735('shared'),'children':_0x24bff4['t'](_0x1701a9(0x25d))})]})]});}function S(_0x3c8b23,_0x596090){return function(_0x20bd32,_0x114e4c){_0x596090(_0x20bd32,_0x114e4c,_0x3c8b23);};}function C(_0x14c41c,_0x9c4465,_0x51fd21,_0x283a3c){const _0x5ed372=_0x4152cc;var _0x452802=arguments['length'],_0x26f16f=_0x452802<0x3?_0x9c4465:_0x283a3c===null?_0x283a3c=Object['getOwnPropertyDescriptor'](_0x9c4465,_0x51fd21):_0x283a3c,_0x4b276b;if(typeof Reflect==_0x5ed372(0x2b8)&&typeof Reflect[_0x5ed372(0x35e)]==_0x5ed372(0x3ba))_0x26f16f=Reflect['decorate'](_0x14c41c,_0x9c4465,_0x51fd21,_0x283a3c);else{for(var _0x353e28=_0x14c41c['length']-0x1;_0x353e28>=0x0;_0x353e28--)(_0x4b276b=_0x14c41c[_0x353e28])&&(_0x26f16f=(_0x452802<0x3?_0x4b276b(_0x26f16f):_0x452802>0x3?_0x4b276b(_0x9c4465,_0x51fd21,_0x26f16f):_0x4b276b(_0x9c4465,_0x51fd21))||_0x26f16f);}return _0x452802>0x3&&_0x26f16f&&Object[_0x5ed372(0x33c)](_0x9c4465,_0x51fd21,_0x26f16f),_0x26f16f;}let w=class{constructor(_0x192c8c,_0x4fd6a3){const _0x2b5e52=_0x4152cc;this[_0x2b5e52(0x45a)]=_0x192c8c,this[_0x2b5e52(0x2ab)]=_0x4fd6a3;}[_0x4152cc(0x27d)](_0x2d0b93,_0x2e929d){const _0x328e21=_0x4152cc;let _0x2fecfe=this[_0x328e21(0x2ab)][_0x328e21(0x267)](_0x2d0b93,_0x2e929d),_0x4d5957=_0x2fecfe?this[_0x328e21(0x2ab)]['getDataSource'](_0x2d0b93,_0x2fecfe['dataSourceId']):void 0x0;return!_0x2fecfe||!_0x4d5957?null:{'unitId':_0x2d0b93,'chartId':_0x2e929d,'dataSourceId':_0x4d5957['id'],'values':_0x4d5957[_0x328e21(0x1ab)][_0x328e21(0x1c8)](_0x5495be=>[..._0x5495be]),'sharingCount':this['_resourceService'][_0x328e21(0x1db)](_0x2d0b93,_0x4d5957['id'])};}[_0x4152cc(0x2a6)](_0x245803,_0x1918ed,_0x578a0e){const _0x383a3e=_0x4152cc;return this['_resourceService']['getChart'](_0x245803,_0x1918ed)?this[_0x383a3e(0x45a)]['syncExecuteCommand'](a[_0x383a3e(0x21d)]['id'],{'unitId':_0x245803,'chartId':_0x1918ed,'chartType':_0x578a0e}):!0x1;}[_0x4152cc(0x480)](_0x1f78ae,_0x22439c,_0xe36611){const _0x461128=_0x4152cc;return this[_0x461128(0x2ab)][_0x461128(0x267)](_0x1f78ae,_0x22439c)?this[_0x461128(0x45a)][_0x461128(0x311)](a['UpdateDocChartConfigCommand']['id'],{'unitId':_0x1f78ae,'chartId':_0x22439c,'style':_0xe36611}):!0x1;}[_0x4152cc(0x2ae)](_0x507c3c,_0x397fd2,_0x5bb6fc){const _0x2bd47a=_0x4152cc;return this[_0x2bd47a(0x2ab)][_0x2bd47a(0x267)](_0x507c3c,_0x397fd2)?this[_0x2bd47a(0x45a)]['syncExecuteCommand'](a['UpdateDocChartConfigCommand']['id'],{'unitId':_0x507c3c,'chartId':_0x397fd2,'patch':{'context':_0x5bb6fc}}):!0x1;}[_0x4152cc(0x350)](_0x3abadf,_0x54f8c7,_0x3f7da4){const _0x2725b2=_0x4152cc;return this['_resourceService']['getChart'](_0x3abadf,_0x54f8c7)?this[_0x2725b2(0x45a)][_0x2725b2(0x311)](a['UpdateDocChartConfigCommand']['id'],{'unitId':_0x3abadf,'chartId':_0x54f8c7,'dataAggregation':_0x3f7da4}):!0x1;}[_0x4152cc(0x394)](_0x3aefa8,_0x441664,_0x1cf29b,_0x1459b6){const _0x2c7608=_0x4152cc;let _0x3615ca=(0x0,a[_0x2c7608(0x41e)])(_0x1cf29b);return _0x3615ca['length']!==0x0&&this['updateData'](_0x3aefa8,_0x441664,_0x3615ca,_0x1459b6);}[_0x4152cc(0x3a1)](_0x5712c6,_0x593325,_0x4a2f7c,_0x3feca0){const _0x22b94f=_0x4152cc;var _0xef393b;let _0x4b548e=this[_0x22b94f(0x27d)](_0x5712c6,_0x593325);if(!_0x4b548e||_0x4a2f7c[_0x22b94f(0x29c)]===0x0)return!0x1;let _0x4daba0=(_0xef393b=this[_0x22b94f(0x2ab)][_0x22b94f(0x267)](_0x5712c6,_0x593325))==null?void 0x0:_0xef393b[_0x22b94f(0x310)];if(_0x4daba0===void 0x0)return!0x1;let _0x352da2=(0x0,s[_0x22b94f(0x46e)])(_0x4daba0,_0x4a2f7c);if(!_0x352da2)return!0x1;let _0x49e05d=_0x4b548e[_0x22b94f(0x204)];if(_0x3feca0==='duplicate'&&_0x4b548e[_0x22b94f(0x391)]>0x1){if(!this[_0x22b94f(0x45a)][_0x22b94f(0x311)](a[_0x22b94f(0x344)]['id'],{'unitId':_0x5712c6,'chartId':_0x593325}))return!0x1;let _0x5e3d50=this['_resourceService'][_0x22b94f(0x267)](_0x5712c6,_0x593325);if(!_0x5e3d50)return!0x1;_0x49e05d=_0x5e3d50['dataSourceId'];}return this[_0x22b94f(0x45a)][_0x22b94f(0x311)](a['UpdateDocChartDataSourceCommand']['id'],{'unitId':_0x5712c6,'dataSourceId':_0x49e05d,'values':_0x352da2});}};w=C([S(0x0,e[_0x4152cc(0x3cd)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x1b0)]))],w);const ne=[{'label':_0x4152cc(0x3d5),'value':s['ChartTypeBits']['Line']},{'label':'docs-chart-ui.chartTypes.column','value':s[_0x4152cc(0x30e)][_0x4152cc(0x49d)]},{'label':_0x4152cc(0x231),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e2)]},{'label':_0x4152cc(0x2a8),'value':s['ChartTypeBits'][_0x4152cc(0x370)]},{'label':_0x4152cc(0x293),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x4a9)]},{'label':'docs-chart-ui.chartTypes.barPercentStacked','value':s[_0x4152cc(0x30e)]['BarPercentStacked']},{'label':_0x4152cc(0x42a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x17a)]},{'label':'docs-chart-ui.chartTypes.areaStacked','value':s[_0x4152cc(0x30e)][_0x4152cc(0x286)]},{'label':_0x4152cc(0x22f),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x195)]},{'label':_0x4152cc(0x37a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x330)]},{'label':'docs-chart-ui.chartTypes.combination','value':s[_0x4152cc(0x30e)][_0x4152cc(0x41a)]},{'label':_0x4152cc(0x4c0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x383)]},{'label':_0x4152cc(0x4a0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e3)]},{'label':_0x4152cc(0x4ba),'value':s['ChartTypeBits']['Funnel']},{'label':'docs-chart-ui.chartTypes.bubble','value':s[_0x4152cc(0x30e)][_0x4152cc(0x4bb)]},{'label':_0x4152cc(0x4aa),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x190)]},{'label':_0x4152cc(0x31c),'value':s[_0x4152cc(0x30e)]['Waterfall']},{'label':_0x4152cc(0x424),'value':s['ChartTypeBits']['Pareto']},{'label':_0x4152cc(0x3dd),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3e4)]},{'label':'docs-chart-ui.chartTypes.heatmap','value':s['ChartTypeBits'][_0x4152cc(0x33b)]},{'label':_0x4152cc(0x19a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3d8)]},{'label':_0x4152cc(0x36e),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x332)]},{'label':_0x4152cc(0x357),'value':s['ChartTypeBits'][_0x4152cc(0x27e)]},{'label':_0x4152cc(0x1c0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1f6)]}],T=[s[_0x4152cc(0x30e)][_0x4152cc(0x4a9)],s['ChartTypeBits'][_0x4152cc(0x218)],s[_0x4152cc(0x30e)][_0x4152cc(0x286)],s[_0x4152cc(0x30e)]['AreaPercentStacked'],s[_0x4152cc(0x30e)][_0x4152cc(0x1ec)]],re=ne[_0x4152cc(0x3b0)](_0xde61d5=>!T[_0x4152cc(0x331)](_0xde61d5[_0x4152cc(0x3e8)])),ie=[{'label':_0x4152cc(0x2e5),'value':s['LegendPositionEnum'][_0x4152cc(0x2e5)]},{'label':_0x4152cc(0x3b7),'value':s['LegendPositionEnum'][_0x4152cc(0x3b7)]},{'label':_0x4152cc(0x47d),'value':s[_0x4152cc(0x3a4)][_0x4152cc(0x47d)]},{'label':'Left','value':s[_0x4152cc(0x3a4)][_0x4152cc(0x1d7)]},{'label':_0x4152cc(0x3ca),'value':s['LegendPositionEnum'][_0x4152cc(0x34a)]}],ae=[{'label':'Top','value':s[_0x4152cc(0x2c4)][_0x4152cc(0x2e5)]},{'label':'Right','value':s[_0x4152cc(0x2c4)][_0x4152cc(0x3b7)]},{'label':'Bottom','value':s[_0x4152cc(0x2c4)][_0x4152cc(0x47d)]},{'label':_0x4152cc(0x1d7),'value':s[_0x4152cc(0x2c4)][_0x4152cc(0x1d7)]},{'label':'None','value':s['TitlePositionEnum'][_0x4152cc(0x34a)]}],oe=[{'label':'Auto','value':s[_0x4152cc(0x477)][_0x4152cc(0x323)]},{'label':_0x4152cc(0x284),'value':s[_0x4152cc(0x477)]['Inside']},{'label':_0x4152cc(0x1d7),'value':s['SeriesLabelPosition']['Left']},{'label':'Right','value':s['SeriesLabelPosition'][_0x4152cc(0x3b7)]},{'label':_0x4152cc(0x2e5),'value':s[_0x4152cc(0x477)][_0x4152cc(0x2e5)]},{'label':_0x4152cc(0x47d),'value':s[_0x4152cc(0x477)][_0x4152cc(0x47d)]}],se=[{'label':_0x4152cc(0x284),'value':s[_0x4152cc(0x17b)][_0x4152cc(0x284)]},{'label':'Outside','value':s[_0x4152cc(0x17b)][_0x4152cc(0x3eb)]}],ce=[{'label':_0x4152cc(0x3ca),'value':''},{'label':'Stacked','value':s[_0x4152cc(0x407)][_0x4152cc(0x1e5)]},{'label':_0x4152cc(0x2ad),'value':s[_0x4152cc(0x407)]['Percent']}],E=[{'label':'Single','value':s[_0x4152cc(0x382)][_0x4152cc(0x408)]},{'label':_0x4152cc(0x233),'value':s[_0x4152cc(0x382)][_0x4152cc(0x233)]},{'label':_0x4152cc(0x1cd),'value':s[_0x4152cc(0x382)][_0x4152cc(0x418)]}],le=[{'label':_0x4152cc(0x304),'value':s['ChartBorderDashType'][_0x4152cc(0x304)]},{'label':_0x4152cc(0x3ff),'value':s['ChartBorderDashType'][_0x4152cc(0x3ff)]},{'label':_0x4152cc(0x4b1),'value':s[_0x4152cc(0x288)]['Dotted']}],ue=[0x1,0.9,0.7,0.5,0.3,0.1]['map'](_0x5689a0=>({'label':_0x5689a0*0x64+'%','value':String(_0x5689a0)})),de=[0x0,0x1,0x2,0x4,0x8]['map'](_0x3b479f=>({'label':_0x3b479f+'px','value':String(_0x3b479f)})),fe=[{'label':_0x4152cc(0x47b),'value':s[_0x4152cc(0x1fe)][_0x4152cc(0x47b)]},{'label':_0x4152cc(0x236),'value':s['LinePointShape'][_0x4152cc(0x236)]},{'label':_0x4152cc(0x25b),'value':s['LinePointShape'][_0x4152cc(0x25b)]},{'label':_0x4152cc(0x43b),'value':s[_0x4152cc(0x1fe)]['Diamond']},{'label':_0x4152cc(0x3ca),'value':s['LinePointShape'][_0x4152cc(0x3ca)]}],pe=[0x0,0x2,0x5,0x7,0xa,0xe]['map'](_0x3d7e80=>({'label':_0x3d7e80+'px','value':String(_0x3d7e80)})),me=[{'label':'Category','value':s['LabelContentType']['CategoryName']},{'label':_0x4152cc(0x4bc),'value':s['LabelContentType'][_0x4152cc(0x3c9)]},{'label':_0x4152cc(0x35d),'value':s[_0x4152cc(0x2ba)][_0x4152cc(0x35d)]},{'label':'Percentage','value':s[_0x4152cc(0x2ba)][_0x4152cc(0x3b3)]}],he=Object[_0x4152cc(0x1ab)](s[_0x4152cc(0x1b5)])[_0x4152cc(0x1c8)](_0x14dd5d=>({'label':_0x14dd5d,'value':_0x14dd5d})),ge=[{'label':_0x4152cc(0x1f1),'value':s['RadarShape'][_0x4152cc(0x1f1)]},{'label':'Circle','value':s['RadarShape'][_0x4152cc(0x47b)]}],_e=[{'label':_0x4152cc(0x358),'value':s[_0x4152cc(0x328)][_0x4152cc(0x358)]},{'label':_0x4152cc(0x1e5),'value':s[_0x4152cc(0x328)]['Stacked']}],ve=[{'label':_0x4152cc(0x2b2),'value':_0x4152cc(0x4c7)},{'label':_0x4152cc(0x363),'value':_0x4152cc(0x202)}],ye=[{'label':_0x4152cc(0x323),'value':s['RelationChartLayoutEnum'][_0x4152cc(0x3ca)]},{'label':_0x4152cc(0x459),'value':s[_0x4152cc(0x415)]['Circular']},{'label':'Force','value':s[_0x4152cc(0x415)][_0x4152cc(0x403)]}];function be(_0x4165c4){const _0x541445=_0x4152cc;let _0x414a34=!!(_0x4165c4&&s['chartBitsUtils'][_0x541445(0x206)](_0x4165c4,s['ChartTypeBits'][_0x541445(0x1e3)])),_0x30667d=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)]['Pie'])),_0x308190=!!(_0x4165c4&&s[_0x541445(0x341)]['baseOn'](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x330)])),_0x49d861=!!(_0x4165c4&&s[_0x541445(0x341)]['baseOn'](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x491)])),_0x67d14e=!!(_0x4165c4&&s['chartBitsUtils'][_0x541445(0x206)](_0x4165c4,s['ChartTypeBits'][_0x541445(0x43c)])),_0x3815d7=!!(_0x4165c4&&s[_0x541445(0x341)]['baseOn'](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x1ec)])),_0x1a97d7=!!(_0x4165c4&&s['chartBitsUtils'][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x332)])),_0x5c3156=_0x4165c4===s[_0x541445(0x30e)][_0x541445(0x27e)],_0x2c0eae=_0x4165c4===s['ChartTypeBits'][_0x541445(0x1f6)],_0xe521f7=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x190)])),_0x25b512=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)]['Sankey'])),_0x2a2364=!!(_0x4165c4&&s[_0x541445(0x341)][_0x541445(0x206)](_0x4165c4,s[_0x541445(0x30e)][_0x541445(0x33b)])),_0x7e8aef=!!(_0x4165c4&&[s[_0x541445(0x30e)][_0x541445(0x3ef)],s[_0x541445(0x30e)][_0x541445(0x17a)],s[_0x541445(0x30e)][_0x541445(0x286)],s[_0x541445(0x30e)][_0x541445(0x195)],s['ChartTypeBits'][_0x541445(0x383)],s['ChartTypeBits'][_0x541445(0x41a)]][_0x541445(0x1d4)](_0x5dde63=>s[_0x541445(0x341)]['baseOn'](_0x4165c4,_0x5dde63))),_0x1d7b44=['chartStyle',_0x541445(0x489)];return _0x414a34&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x496)),!_0x414a34&&!_0x30667d&&!_0xe521f7&&!_0x25b512&&!_0x2a2364&&!_0x67d14e&&!_0x3815d7&&!_0x1a97d7&&!_0x2c0eae&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x188)),_0x7e8aef&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x45d)),_0x308190&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x1ea)),_0x67d14e&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x3d9)),_0x30667d&&_0x1d7b44[_0x541445(0x201)]('pie'),_0x49d861&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x396)),_0x2a2364&&_0x1d7b44[_0x541445(0x201)]('heatmap'),_0xe521f7&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x289)),!_0x414a34&&!_0x25b512&&!_0x2c0eae&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x32f)),!_0x414a34&&!_0x30667d&&!_0x308190&&!_0x49d861&&!_0xe521f7&&!_0x25b512&&!_0x2a2364&&!_0x2c0eae&&_0x1d7b44[_0x541445(0x201)](_0x541445(0x482),_0x541445(0x423),_0x541445(0x228)),!_0x414a34&&!_0x30667d&&!_0x49d861&&!_0xe521f7&&!_0x25b512&&!_0x1a97d7&&!_0x5c3156&&!_0x2c0eae&&_0x1d7b44['push'](_0x541445(0x365)),_0x1d7b44;}function xe(_0xddea68){const _0x394a46=_0x4152cc;return!!(_0xddea68&&[s['ChartTypeBits'][_0x394a46(0x17a)],s[_0x394a46(0x30e)][_0x394a46(0x370)],s[_0x394a46(0x30e)]['AreaStacked'],s[_0x394a46(0x30e)][_0x394a46(0x4a9)],s['ChartTypeBits'][_0x394a46(0x195)],s[_0x394a46(0x30e)][_0x394a46(0x218)]][_0x394a46(0x1d4)](_0x23cf60=>s[_0x394a46(0x341)][_0x394a46(0x206)](_0xddea68,_0x23cf60)));}function Se(_0x5bbe17){const _0x22f4e2=_0x4152cc;return _0x5bbe17?s['chartBitsUtils'][_0x22f4e2(0x364)](_0x5bbe17,s[_0x22f4e2(0x3c7)]['PercentStack'])?s[_0x22f4e2(0x407)]['Percent']:s[_0x22f4e2(0x341)][_0x22f4e2(0x364)](_0x5bbe17,s['ChartAttributeBits'][_0x22f4e2(0x3bc)])?s['StackType']['Stacked']:'':'';}function Ce(_0x522970,_0x233407){const _0x145fb1=_0x4152cc;let _0x3053c1=s[_0x145fb1(0x341)][_0x145fb1(0x3a3)](_0x522970,s[_0x145fb1(0x3c7)][_0x145fb1(0x1ef)]|s[_0x145fb1(0x3c7)][_0x145fb1(0x3bc)]);return _0x233407===s[_0x145fb1(0x407)][_0x145fb1(0x1e5)]?_0x3053c1|s['ChartAttributeBits'][_0x145fb1(0x3bc)]:_0x233407===s[_0x145fb1(0x407)]['Percent']?_0x3053c1|s[_0x145fb1(0x3c7)][_0x145fb1(0x1ef)]:_0x3053c1;}function D(_0x3e4c62,_0x3b0695){const _0x171083=_0x4152cc;return(_0x3e4c62==null?'':String(_0x3e4c62)[_0x171083(0x28c)]())||_0x3b0695;}function we(_0x550a7b,_0x31af93){const _0x5afc18=_0x4152cc;var _0x42f30e;let _0x20f3df=(_0x42f30e=_0x31af93[_0x5afc18(0x4db)])==null?'row':_0x42f30e,_0xa64b7a=_0x550a7b[_0x5afc18(0x29c)],_0x468568=Math[_0x5afc18(0x404)](0x0,..._0x550a7b['map'](_0x28bf99=>_0x28bf99[_0x5afc18(0x29c)]));return _0x20f3df===_0x5afc18(0x47e)?Array['from']({'length':_0xa64b7a},(_0x32d13c,_0x3af9af)=>{const _0xec1b04=_0x5afc18;var _0x219b42;return{'label':D(_0x31af93[_0xec1b04(0x26b)]===!0x1||(_0x219b42=_0x550a7b[_0x3af9af])==null?void 0x0:_0x219b42[0x0],_0xec1b04(0x2f5)+(_0x3af9af+0x1)),'value':String(_0x3af9af)};}):Array[_0x5afc18(0x3d4)]({'length':_0x468568},(_0x356524,_0x2dd32a)=>{const _0x3c87b9=_0x5afc18;var _0x4ca86e;return{'label':D(_0x31af93[_0x3c87b9(0x2c5)]===!0x1||(_0x4ca86e=_0x550a7b[0x0])==null?void 0x0:_0x4ca86e[_0x2dd32a],'Column\x20'+(_0x2dd32a+0x1)),'value':String(_0x2dd32a)};});}function Te(_0x4de4c8,_0x19b1b1){const _0x496be3=_0x4152cc;let _0x1252b6=_0x4de4c8==null?s[_0x496be3(0x1b3)][_0x496be3(0x437)]:_0x4de4c8;return(_0x1252b6&_0x19b1b1)===_0x19b1b1?_0x1252b6&~_0x19b1b1:_0x1252b6|_0x19b1b1;}function Ee(_0x427f72){const _0x173078=_0x4152cc;var _0x125dad,_0x2ba00b,_0x5df6f7,_0x148ee5,_0x4dba9a,_0x19ca87,_0x5a2b60,_0x426ab2,_0x205ec1,_0x2ff76b,_0x264293,_0x50aed5,_0x2b9a2f,_0x3d98a9,_0x4d0fad,_0x4359b1,_0x2c7d61,_0x2e3805,_0x11cbbe,_0x429ed4,_0x871eb3,_0x13479c,_0x195fbb,_0xc98a48,_0x1af4a5,_0x25600f,_0x348a2b,_0x1eaef8,_0x2ab616,_0x44b10c,_0x2395f7,_0x2000f2,_0x29ca03,_0x44b7ba,_0x59cb4a,_0x28c229,_0xc78eb3,_0x3fa49f,_0x218fbc,_0x4c7592,_0x56294f,_0x35c6e1,_0x26c56c,_0x15c063,_0x5bd8f7,_0xb9cc26,_0x2374e1,_0x3181b5,_0x23edd3,_0x95151c,_0x2b6b8c,_0x257a7b,_0x1f4117,_0x24fecd,_0xf59abe,_0x47393e,_0x5acca5,_0x11094c,_0x7ccd47,_0x5832b6,_0x5820e1,_0x32a876,_0x303972,_0x50f826,_0x5e4174,_0x128f30,_0x4c38fd,_0x357175,_0x3a8772,_0x34b6f7,_0x1888c5,_0xd3b261,_0x3052a0,_0x5a50e9,_0x393be7,_0x16638f,_0x411e3d,_0x3aec6c,_0x72b4f,_0x1cb870,_0x1bd28a,_0x573d71,_0x253b75,_0x5e3b4b,_0x424d78,_0xd23c59,_0x3d3c60,_0x15eb86,_0x240977,_0x146d69,_0x2e3ea9,_0x30c5aa,_0x28569f,_0x4e7e38,_0x20833d,_0x1b10ed,_0x56dbe2,_0x1d4070,_0x1f6e9d,_0x2114cf,_0x339916,_0x480b4,_0x3f42e0,_0x18c96a,_0x14549f,_0x1dd3db,_0x3dbd8d,_0x308eed,_0x1f3f99,_0x116cb8,_0x1872fc,_0x371af0,_0x508a23,_0x1e87b4,_0x4fbe09,_0x2b534c,_0x34b5e6,_0x3d9d02,_0x40d0bc,_0xe886b4,_0x59de66,_0x2c61dd,_0x208906,_0x4bcda9,_0x4218cc,_0xcce4e0,_0x3cc9a9,_0x5acdd4,_0x3d2022,_0x3197ad,_0x4e71d2,_0x55e64b,_0x254511,_0x3e9a22,_0x526774,_0x14169f,_0x32953b,_0x474fab,_0x1b31e5,_0x3c62df,_0x522726,_0x49d57a,_0x38a172,_0x1d076a,_0x54e5f7,_0x25acee;let _0x1b7141=(0x0,n[_0x173078(0x21a)])(e[_0x173078(0x333)]),_0x2e95f3=(0x0,n[_0x173078(0x21a)])(s[_0x173078(0x1f8)]),[_0xfa7abc,_0x50a76d]=(0x0,r[_0x173078(0x4c6)])((_0x125dad=_0x427f72['initialTab'])==null?0x0:_0x125dad),_0x31a49c=(0x0,r[_0x173078(0x3c0)])(()=>(0x0,i[_0x173078(0x2c2)])(ne[_0x173078(0x1c8)](_0x3efe78=>({..._0x3efe78,'label':_0x1b7141['t'](_0x3efe78[_0x173078(0x2f0)])}))),[_0x1b7141]),_0x15f7df=(0x0,r[_0x173078(0x3c0)])(()=>(0x0,i[_0x173078(0x1f0)])(_0x2e95f3[_0x173078(0x2e3)](),_0x20eea4=>_0x2e95f3[_0x173078(0x2e7)](_0x20eea4)),[_0x2e95f3]),_0x401b00=(_0x2ba00b=(_0x5df6f7=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x5df6f7['backgroundColor'])==null?s[_0x173078(0x1b3)][_0x173078(0x32b)]:_0x2ba00b,_0x3119c3=(_0x148ee5=(_0x4dba9a=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x4dba9a[_0x173078(0x3bf)])==null?_0x173078(0x2fb):_0x148ee5,_0x4336ab=be(_0x427f72[_0x173078(0x310)]),_0x1b91c7=(_0x19ca87=_0x427f72[_0x173078(0x246)])==null?{}:_0x19ca87,_0x184db2=(_0x5a2b60=_0x1b91c7[_0x173078(0x3da)])==null?{}:_0x5a2b60,_0x350c10=xe(_0x427f72[_0x173078(0x310)]),_0x564c7e=!!(_0x427f72[_0x173078(0x310)]&&s['chartBitsUtils']['baseOn'](_0x427f72['chartType'],s['ChartTypeBits'][_0x173078(0x332)])),_0x548ada=(0x0,i[_0x173078(0x4c2)])(_0x427f72['chartType']),_0x307095=(_0x426ab2=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x426ab2[_0x173078(0x2e1)],_0x293caa=typeof(_0x307095==null?void 0x0:_0x307095['color'])==_0x173078(0x1cc)?_0x307095[_0x173078(0x413)]:void 0x0,_0x560508=(0x0,r[_0x173078(0x3c0)])(()=>we(_0x427f72['values'],_0x1b91c7),[_0x1b91c7,_0x427f72[_0x173078(0x1ab)]]),_0x3d23a6=(_0x205ec1=_0x184db2[_0x173078(0x245)])==null?0x0:_0x205ec1,_0x36303c=(_0x2ff76b=_0x184db2[_0x173078(0x49e)])==null?_0x560508['map'](_0x2743dd=>Number(_0x2743dd[_0x173078(0x3e8)]))[_0x173078(0x3b0)](_0x30a79=>_0x30a79!==_0x3d23a6):_0x2ff76b,_0x2f18a4=_0x560508[_0x173078(0x3b0)](_0x282cb6=>Number(_0x282cb6['value'])!==_0x3d23a6),_0xf3eb68=(_0x451891,_0x1909de)=>{const _0x12323b=_0x173078;let _0x32d2c6=_0x36303c[_0x12323b(0x36a)]();_0x32d2c6[_0x451891]=Number(_0x1909de),_0x427f72['onContextChange']({'chartContext':{'seriesIndexes':_0x32d2c6}});},_0x5f309c=_0x202a19=>{const _0xa3df14=_0x173078;_0x427f72[_0xa3df14(0x268)]({'chartContext':{'seriesIndexes':_0x36303c['filter']((_0x42fb1e,_0x4270f6)=>_0x4270f6!==_0x202a19)}});},_0x66f1f0=new Map([[_0x173078(0x4ae),{'label':_0x1b7141['t'](_0x173078(0x410)),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':_0x173078(0x3fc),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x238),'value':(_0x264293=(_0x50aed5=_0x427f72['style'])==null?void 0x0:_0x50aed5[_0x173078(0x39d)])==null?(_0x2b9a2f=_0x15f7df[0x0])==null?void 0x0:_0x2b9a2f[_0x173078(0x3e8)]:_0x264293,'options':_0x15f7df,'onChange':_0x1953fd=>_0x427f72[_0x173078(0x2e9)]({'theme':_0x1953fd})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x2c3)],{'label':_0x1b7141['t']('docs-chart-ui.fill'),'value':_0x401b00,'onChange':_0x4062b6=>_0x427f72['onStyleChange']({'backgroundColor':_0x4062b6==null?void 0x0:_0x4062b6})}),(0x0,o['jsx'])(i['ChartColorField'],{'label':_0x1b7141['t'](_0x173078(0x406)),'value':_0x3119c3,'onChange':_0x15e64f=>_0x427f72['onStyleChange']({'borderColor':_0x15e64f==null?void 0x0:_0x15e64f})}),!_0x564c7e&&(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x3d98a9=(_0x4d0fad=_0x427f72[_0x173078(0x41f)])==null?void 0x0:_0x4d0fad[_0x173078(0x340)])!=null&&_0x3d98a9,'label':'Gradient\x20fill','onChange':_0x2de6a7=>_0x427f72['onStyleChange']({'gradientFill':_0x2de6a7})})]})}],[_0x173078(0x489),{'label':_0x1b7141['t'](_0x173078(0x385)),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x45f),'value':(_0x4359b1=(_0x2c7d61=_0x427f72[_0x173078(0x41f)])==null||(_0x2c7d61=_0x2c7d61['titles'])==null?void 0x0:_0x2c7d61[_0x173078(0x4a8)])==null?s[_0x173078(0x2c4)][_0x173078(0x2e5)]:_0x4359b1,'options':ae,'onChange':_0xf266f6=>_0x427f72[_0x173078(0x2e9)]({'titles':{'titlePosition':_0xf266f6}})}),(0x0,o[_0x173078(0x450)])(i['ChartTextField'],{'label':_0x1b7141['t'](_0x173078(0x4b5)),'value':(_0x2e3805=(_0x11cbbe=_0x427f72[_0x173078(0x41f)])==null||(_0x11cbbe=_0x11cbbe[_0x173078(0x196)])==null||(_0x11cbbe=_0x11cbbe[_0x173078(0x30c)])==null?void 0x0:_0x11cbbe[_0x173078(0x227)])==null?'':_0x2e3805,'onChange':_0xeca33d=>_0x427f72[_0x173078(0x2e9)]({'titles':{'title':{'content':_0xeca33d}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':_0x1b7141['t']('docs-chart-ui.subtitle'),'value':(_0x429ed4=(_0x871eb3=_0x427f72[_0x173078(0x41f)])==null||(_0x871eb3=_0x871eb3[_0x173078(0x196)])==null||(_0x871eb3=_0x871eb3[_0x173078(0x1ac)])==null?void 0x0:_0x871eb3[_0x173078(0x227)])==null?'':_0x429ed4,'onChange':_0x39f1db=>_0x427f72[_0x173078(0x2e9)]({'titles':{'subtitle':{'content':_0x39f1db}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':_0x1b7141['t'](_0x173078(0x1e6)),'value':(_0x13479c=(_0x195fbb=_0x427f72['style'])==null||(_0x195fbb=_0x195fbb[_0x173078(0x196)])==null||(_0x195fbb=_0x195fbb[_0x173078(0x338)])==null?void 0x0:_0x195fbb[_0x173078(0x227)])==null?'':_0x13479c,'onChange':_0x3c7ca4=>_0x427f72[_0x173078(0x2e9)]({'titles':{'xAxisTitle':{'content':_0x3c7ca4}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':_0x1b7141['t']('docs-chart-ui.verticalAxisTitle'),'value':(_0xc98a48=(_0x1af4a5=_0x427f72['style'])==null||(_0x1af4a5=_0x1af4a5['titles'])==null||(_0x1af4a5=_0x1af4a5[_0x173078(0x2c6)])==null?void 0x0:_0x1af4a5[_0x173078(0x227)])==null?'':_0xc98a48,'onChange':_0x66965a=>_0x427f72[_0x173078(0x2e9)]({'titles':{'yAxisTitle':{'content':_0x66965a}}})}),(0x0,o[_0x173078(0x450)])(i['ChartTextField'],{'label':_0x173078(0x487),'value':(_0x25600f=(_0x348a2b=_0x427f72[_0x173078(0x41f)])==null||(_0x348a2b=_0x348a2b[_0x173078(0x196)])==null||(_0x348a2b=_0x348a2b[_0x173078(0x1a8)])==null?void 0x0:_0x348a2b['content'])==null?'':_0x25600f,'onChange':_0x1b04d1=>_0x427f72[_0x173078(0x2e9)]({'titles':{'rightYAxisTitle':{'content':_0x1b04d1}}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x3bd),'min':0x8,'value':(_0x1eaef8=(_0x2ab616=_0x427f72[_0x173078(0x41f)])==null||(_0x2ab616=_0x2ab616[_0x173078(0x196)])==null||(_0x2ab616=_0x2ab616[_0x173078(0x30c)])==null?void 0x0:_0x2ab616[_0x173078(0x4b2)])==null?s[_0x173078(0x1b3)][_0x173078(0x24e)]:_0x1eaef8,'onChange':_0x180030=>_0x427f72[_0x173078(0x2e9)]({'titles':{'title':{'fontSize':_0x180030}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x4cc),'min':0x8,'value':(_0x44b10c=(_0x2395f7=_0x427f72['style'])==null||(_0x2395f7=_0x2395f7[_0x173078(0x196)])==null||(_0x2395f7=_0x2395f7[_0x173078(0x338)])==null?void 0x0:_0x2395f7[_0x173078(0x4b2)])==null?s['defaultChartConfig']['textStyle']['fontSize']:_0x44b10c,'onChange':_0x478f3d=>_0x427f72['onStyleChange']({'titles':{'xAxisTitle':{'fontSize':_0x478f3d},'yAxisTitle':{'fontSize':_0x478f3d},'rightYAxisTitle':{'fontSize':_0x478f3d}}})})]})]})}],[_0x173078(0x188),{'label':_0x1b7141['t'](_0x173078(0x380)),'children':(0x0,o[_0x173078(0x3d7)])('div',{'className':_0x173078(0x254),'children':[(0x0,o['jsx'])(i['ChartEditBlockTitle'],{'title':_0x173078(0x461)}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x2c3)],{'label':_0x173078(0x1eb),'value':_0x293caa,'onChange':_0x47c5dd=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'color':_0x47c5dd==null?void 0x0:_0x47c5dd}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x33d),'value':String((_0x2000f2=_0x307095==null?void 0x0:_0x307095[_0x173078(0x441)])==null?0x1:_0x2000f2),'options':ue,'onChange':_0x272f2c=>_0x427f72['onStyleChange']({'allSeriesStyle':{'fillOpacity':Number(_0x272f2c)}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x1e4),'value':String((_0x29ca03=(_0x44b7ba=_0x427f72[_0x173078(0x41f)])==null||(_0x44b7ba=_0x44b7ba[_0x173078(0x2e1)])==null||(_0x44b7ba=_0x44b7ba['border'])==null?void 0x0:_0x44b7ba['width'])==null?s['defaultChartConfig']['borderStyle']['width']:_0x29ca03),'options':de,'onChange':_0x5a3812=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'border':{'width':Number(_0x5a3812)}}})})]}),(0x0,o[_0x173078(0x3d7)])(i['ChartPropertyRow'],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x1bb),'value':(_0x59cb4a=(_0x28c229=_0x427f72[_0x173078(0x41f)])==null||(_0x28c229=_0x28c229[_0x173078(0x2e1)])==null||(_0x28c229=_0x28c229['border'])==null?void 0x0:_0x28c229['dashType'])==null?s[_0x173078(0x1b3)][_0x173078(0x3d0)][_0x173078(0x3e3)]:_0x59cb4a,'options':le,'onChange':_0x22e49a=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'border':{'dashType':_0x22e49a}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x314),'value':(_0xc78eb3=(_0x3fa49f=_0x427f72[_0x173078(0x41f)])==null||(_0x3fa49f=_0x3fa49f['allSeriesStyle'])==null||(_0x3fa49f=_0x3fa49f[_0x173078(0x38a)])==null?void 0x0:_0x3fa49f[_0x173078(0x2eb)])==null?s[_0x173078(0x1b3)][_0x173078(0x38a)][_0x173078(0x2eb)]:_0xc78eb3,'options':fe,'onChange':_0x498925=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'point':{'shape':_0x498925}}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x3f0),'value':String((_0x218fbc=(_0x4c7592=_0x427f72['style'])==null||(_0x4c7592=_0x4c7592[_0x173078(0x2e1)])==null||(_0x4c7592=_0x4c7592[_0x173078(0x38a)])==null?void 0x0:_0x4c7592[_0x173078(0x1c4)])==null?s['defaultChartConfig'][_0x173078(0x38a)][_0x173078(0x1c4)]:_0x218fbc),'options':pe,'onChange':_0x4f44cf=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'point':{'size':Number(_0x4f44cf)}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x56294f=(_0x35c6e1=_0x427f72[_0x173078(0x41f)])==null||(_0x35c6e1=_0x35c6e1[_0x173078(0x2e1)])==null||(_0x35c6e1=_0x35c6e1[_0x173078(0x2f0)])==null?void 0x0:_0x35c6e1[_0x173078(0x405)])!=null&&_0x56294f,'label':_0x1b7141['t'](_0x173078(0x3b6)),'onChange':_0x54cc2e=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'label':{'visible':_0x54cc2e}}})}),(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x1fc),'value':(_0x26c56c=(_0x15c063=_0x427f72[_0x173078(0x41f)])==null||(_0x15c063=_0x15c063[_0x173078(0x2e1)])==null||(_0x15c063=_0x15c063['label'])==null?void 0x0:_0x15c063[_0x173078(0x465)])==null?s[_0x173078(0x477)][_0x173078(0x323)]:_0x26c56c,'options':oe,'onChange':_0x1e0d07=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'label':{'position':_0x1e0d07}}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':_0x173078(0x22b),'min':0x8,'value':(_0x5bd8f7=(_0xb9cc26=_0x427f72[_0x173078(0x41f)])==null||(_0xb9cc26=_0xb9cc26[_0x173078(0x2e1)])==null||(_0xb9cc26=_0xb9cc26[_0x173078(0x2f0)])==null?void 0x0:_0xb9cc26['fontSize'])==null?s[_0x173078(0x1b3)][_0x173078(0x4a2)][_0x173078(0x4b2)]:_0x5bd8f7,'onChange':_0x5ce0be=>_0x427f72[_0x173078(0x2e9)]({'allSeriesStyle':{'label':{'fontSize':_0x5ce0be}}})})]})}],['lineAndArea',{'label':_0x173078(0x2a9),'children':(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x199),'value':(_0x2374e1=(_0x3181b5=_0x427f72[_0x173078(0x41f)])==null||(_0x3181b5=_0x3181b5[_0x173078(0x336)])==null?void 0x0:_0x3181b5['lineStyle'])==null?s[_0x173078(0x337)]['Line']:_0x2374e1,'options':[{'label':'Line','value':s[_0x173078(0x337)][_0x173078(0x3ef)]},{'label':_0x173078(0x2f8),'value':s['AreaLineStyle'][_0x173078(0x2f8)]},{'label':'Step','value':s[_0x173078(0x337)][_0x173078(0x241)]}],'onChange':_0xc14219=>_0x427f72['onStyleChange']({'area':{'lineStyle':_0xc14219}})})})}],['pie',{'label':_0x1b7141['t'](_0x173078(0x231)),'children':(0x0,o[_0x173078(0x3d7)])('div',{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x4e2),'value':String((_0x23edd3=(_0x95151c=_0x427f72[_0x173078(0x41f)])==null||(_0x95151c=_0x95151c[_0x173078(0x446)])==null?void 0x0:_0x95151c[_0x173078(0x372)])==null?0x0:_0x23edd3),'options':[0x0,0.25,0.5,0.75][_0x173078(0x1c8)](_0x42a850=>({'label':_0x42a850*0x64+'%','value':String(_0x42a850)})),'onChange':_0x598cda=>_0x427f72[_0x173078(0x2e9)]({'pie':{'doughnutHole':Number(_0x598cda)}})}),(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x2b6b8c=(_0x257a7b=_0x427f72[_0x173078(0x41f)])==null||(_0x257a7b=_0x257a7b[_0x173078(0x446)])==null||(_0x257a7b=_0x257a7b[_0x173078(0x29b)])==null?void 0x0:_0x257a7b[_0x173078(0x405)])==null||_0x2b6b8c,'label':_0x1b7141['t']('docs-chart-ui.showDataLabels'),'onChange':_0x19584f=>_0x427f72[_0x173078(0x2e9)]({'pie':{'labelStyle':{'visible':_0x19584f}}})}),(0x0,o['jsx'])(i['ChartSelectField'],{'label':_0x173078(0x1fc),'value':(_0x1f4117=(_0x24fecd=_0x427f72[_0x173078(0x41f)])==null||(_0x24fecd=_0x24fecd[_0x173078(0x446)])==null||(_0x24fecd=_0x24fecd[_0x173078(0x29b)])==null?void 0x0:_0x24fecd['position'])==null?s[_0x173078(0x17b)]['Outside']:_0x1f4117,'options':se,'onChange':_0x6be09c=>_0x427f72[_0x173078(0x2e9)]({'pie':{'labelStyle':{'position':_0x6be09c}}})}),(0x0,o['jsx'])('div',{'className':_0x173078(0x488),'children':me[_0x173078(0x3b0)](_0xb0a33c=>_0xb0a33c[_0x173078(0x3e8)]!==s[_0x173078(0x2ba)][_0x173078(0x3c9)])[_0x173078(0x1c8)](_0x26bfcc=>{const _0x52da5b=_0x173078;var _0x37a931,_0x58f421;let _0x44ea81=(_0x37a931=(_0x58f421=_0x427f72['style'])==null||(_0x58f421=_0x58f421[_0x52da5b(0x446)])==null||(_0x58f421=_0x58f421['labelStyle'])==null?void 0x0:_0x58f421[_0x52da5b(0x221)])==null?s[_0x52da5b(0x1b3)][_0x52da5b(0x446)]['labelContentType']:_0x37a931;return(0x0,o[_0x52da5b(0x450)])(t[_0x52da5b(0x1d2)],{'checked':(_0x44ea81&_0x26bfcc['value'])===_0x26bfcc[_0x52da5b(0x3e8)],'onChange':()=>_0x427f72[_0x52da5b(0x2e9)]({'pie':{'labelStyle':{'contentType':Te(_0x44ea81,_0x26bfcc[_0x52da5b(0x3e8)])}}}),'children':_0x26bfcc[_0x52da5b(0x2f0)]},_0x26bfcc[_0x52da5b(0x3e8)]);})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0xf59abe=(_0x47393e=_0x427f72[_0x173078(0x41f)])==null||(_0x47393e=_0x47393e[_0x173078(0x446)])==null?void 0x0:_0x47393e['showLabelLine'])==null||_0xf59abe,'label':_0x173078(0x2cc),'onChange':_0x33e0a1=>_0x427f72[_0x173078(0x2e9)]({'pie':{'showLabelLine':_0x33e0a1}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x5acca5=(_0x11094c=_0x427f72[_0x173078(0x41f)])==null||(_0x11094c=_0x11094c[_0x173078(0x446)])==null?void 0x0:_0x11094c[_0x173078(0x1dd)])!=null&&_0x5acca5,'label':'Rose\x20pie','onChange':_0x2d2bd7=>_0x427f72[_0x173078(0x2e9)]({'pie':{'rosePie':_0x2d2bd7}})}),(0x0,o[_0x173078(0x450)])(i['ChartCheckboxField'],{'checked':(_0x7ccd47=(_0x5832b6=_0x427f72[_0x173078(0x41f)])==null||(_0x5832b6=_0x5832b6[_0x173078(0x446)])==null?void 0x0:_0x5832b6[_0x173078(0x19c)])!=null&&_0x7ccd47,'label':_0x173078(0x26c),'onChange':_0x564dac=>_0x427f72[_0x173078(0x2e9)]({'pie':{'isHalfPie':_0x564dac}})})]})}],[_0x173078(0x396),{'label':_0x1b7141['t']('docs-chart-ui.chartTypes.funnel'),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x34e),'value':(_0x5820e1=(_0x32a876=_0x427f72[_0x173078(0x41f)])==null||(_0x32a876=_0x32a876['funnel'])==null?void 0x0:_0x32a876['gap'])==null?s[_0x173078(0x1b3)][_0x173078(0x396)]['gap']:_0x5820e1,'min':0x0,'onChange':_0x3445ea=>_0x427f72[_0x173078(0x2e9)]({'funnel':{'gap':_0x3445ea}})}),(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x303972=(_0x50f826=_0x427f72[_0x173078(0x41f)])==null||(_0x50f826=_0x50f826[_0x173078(0x396)])==null?void 0x0:_0x50f826[_0x173078(0x1ca)])!=null&&_0x303972,'label':_0x1b7141['t']('docs-chart-ui.useAbsoluteValue'),'onChange':_0x33dd07=>_0x427f72['onStyleChange']({'funnel':{'useAbsValue':_0x33dd07}})})]})}],[_0x173078(0x496),{'label':_0x1b7141['t'](_0x173078(0x4a0)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o['jsx'])(i['ChartSelectField'],{'label':'Shape','value':(_0x5e4174=(_0x128f30=_0x427f72[_0x173078(0x41f)])==null||(_0x128f30=_0x128f30[_0x173078(0x496)])==null?void 0x0:_0x128f30[_0x173078(0x2eb)])==null?s[_0x173078(0x1b3)][_0x173078(0x496)][_0x173078(0x2eb)]:_0x5e4174,'options':he,'onChange':_0x150941=>_0x427f72[_0x173078(0x2e9)]({'wordCloud':{'shape':_0x150941,'maskImage':_0x150941}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x4c38fd=(_0x357175=_0x427f72[_0x173078(0x41f)])==null||(_0x357175=_0x357175[_0x173078(0x496)])==null?void 0x0:_0x357175[_0x173078(0x1c6)])==null?s[_0x173078(0x1b3)]['wordCloud']['repeat']:_0x4c38fd,'label':_0x173078(0x2be),'onChange':_0x4e1475=>_0x427f72['onStyleChange']({'wordCloud':{'repeat':_0x4e1475}})})]})}],[_0x173078(0x1ea),{'label':_0x1b7141['t'](_0x173078(0x37a)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':'Shape','value':(_0x3a8772=(_0x34b6f7=_0x427f72['style'])==null||(_0x34b6f7=_0x34b6f7[_0x173078(0x1ea)])==null?void 0x0:_0x34b6f7[_0x173078(0x2eb)])==null?s[_0x173078(0x1b3)][_0x173078(0x1ea)]['shape']:_0x3a8772,'options':ge,'onChange':_0x48ea68=>_0x427f72[_0x173078(0x2e9)]({'radar':{'shape':_0x48ea68}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x1888c5=(_0xd3b261=_0x427f72[_0x173078(0x41f)])==null||(_0xd3b261=_0xd3b261[_0x173078(0x1ea)])==null?void 0x0:_0xd3b261[_0x173078(0x48b)])!=null&&_0x1888c5,'label':_0x173078(0x306),'onChange':_0x344c2a=>_0x427f72[_0x173078(0x2e9)]({'radar':{'fill':_0x344c2a}})})]})}],[_0x173078(0x3d9),{'label':_0x1b7141['t'](_0x173078(0x31c)),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':'Stack','value':(_0x3052a0=(_0x5a50e9=_0x427f72[_0x173078(0x41f)])==null||(_0x5a50e9=_0x5a50e9[_0x173078(0x3d9)])==null?void 0x0:_0x5a50e9[_0x173078(0x3f2)])==null?s[_0x173078(0x1b3)][_0x173078(0x3d9)][_0x173078(0x3f2)]:_0x3052a0,'options':_e,'onChange':_0x12663e=>_0x427f72[_0x173078(0x2e9)]({'waterfall':{'stackType':_0x12663e}})}),(0x0,o[_0x173078(0x450)])(i['ChartCheckboxField'],{'checked':(_0x393be7=(_0x16638f=_0x427f72['style'])==null||(_0x16638f=_0x16638f['waterfall'])==null?void 0x0:_0x16638f[_0x173078(0x40b)])==null?s[_0x173078(0x1b3)]['waterfall'][_0x173078(0x40b)]:_0x393be7,'label':'Use\x20subtotal','onChange':_0x49868c=>_0x427f72[_0x173078(0x2e9)]({'waterfall':{'useSubtotal':_0x49868c}})})]})}],['heatmap',{'label':_0x1b7141['t'](_0x173078(0x39e)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':_0x173078(0x4b0),'value':(_0x411e3d=(_0x3aec6c=_0x427f72[_0x173078(0x41f)])==null||(_0x3aec6c=_0x3aec6c['heatmap'])==null?void 0x0:_0x3aec6c[_0x173078(0x39f)])==null?s[_0x173078(0x1b3)][_0x173078(0x2a3)]['visualMapType']:_0x411e3d,'options':ve,'onChange':_0xb7e6ab=>_0x427f72['onStyleChange']({'heatmap':{'visualMapType':_0xb7e6ab}})}),(0x0,o['jsxs'])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x440),'value':(_0x72b4f=_0x427f72['style'])==null||(_0x72b4f=_0x72b4f[_0x173078(0x2a3)])==null?void 0x0:_0x72b4f[_0x173078(0x2bf)],'onChange':_0x8a73e1=>_0x427f72[_0x173078(0x2e9)]({'heatmap':{'min':_0x8a73e1}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':_0x173078(0x435),'value':(_0x1cb870=_0x427f72[_0x173078(0x41f)])==null||(_0x1cb870=_0x1cb870[_0x173078(0x2a3)])==null?void 0x0:_0x1cb870[_0x173078(0x404)],'onChange':_0xae266=>_0x427f72['onStyleChange']({'heatmap':{'max':_0xae266}})})]})]})}],[_0x173078(0x289),{'label':_0x1b7141['t'](_0x173078(0x4aa)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x2bd),'value':(_0x1bd28a=(_0x573d71=_0x427f72[_0x173078(0x41f)])==null||(_0x573d71=_0x573d71[_0x173078(0x289)])==null?void 0x0:_0x573d71[_0x173078(0x17f)])==null?s['RelationChartLayoutEnum'][_0x173078(0x3ca)]:_0x1bd28a,'options':ye,'onChange':_0x4db239=>_0x427f72[_0x173078(0x2e9)]({'relation':{'layout':_0x4db239}})}),(0x0,o['jsx'])(i[_0x173078(0x47a)],{'label':_0x173078(0x1d3),'value':(_0x253b75=(_0x5e3b4b=_0x427f72['style'])==null||(_0x5e3b4b=_0x5e3b4b['relation'])==null?void 0x0:_0x5e3b4b[_0x173078(0x2ce)])==null?s[_0x173078(0x1b3)][_0x173078(0x289)][_0x173078(0x2ce)]:_0x253b75,'options':fe,'onChange':_0x37de8c=>_0x427f72[_0x173078(0x2e9)]({'relation':{'nodeShape':_0x37de8c}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x424d78=(_0xd23c59=_0x427f72[_0x173078(0x41f)])==null||(_0xd23c59=_0xd23c59[_0x173078(0x289)])==null?void 0x0:_0xd23c59[_0x173078(0x20e)])!=null&&_0x424d78,'label':_0x173078(0x29a),'onChange':_0x35f83a=>_0x427f72[_0x173078(0x2e9)]({'relation':{'useValueAsSymbolSize':_0x35f83a}})})]})}],[_0x173078(0x32f),{'label':_0x1b7141['t'](_0x173078(0x429)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartSelectField'],{'label':_0x173078(0x25f),'value':(_0x3d3c60=(_0x15eb86=_0x427f72[_0x173078(0x41f)])==null||(_0x15eb86=_0x15eb86[_0x173078(0x32f)])==null?void 0x0:_0x15eb86[_0x173078(0x465)])==null?s[_0x173078(0x3a4)][_0x173078(0x47d)]:_0x3d3c60,'options':ie,'onChange':_0x23c19b=>_0x427f72[_0x173078(0x2e9)]({'legend':{'position':_0x23c19b}})}),(0x0,o[_0x173078(0x450)])(i['ChartLegendWrapField'],{'chartType':_0x427f72[_0x173078(0x310)],'position':(_0x240977=_0x427f72['style'])==null||(_0x240977=_0x240977[_0x173078(0x32f)])==null?void 0x0:_0x240977[_0x173078(0x465)],'wrap':(_0x146d69=_0x427f72[_0x173078(0x41f)])==null||(_0x146d69=_0x146d69[_0x173078(0x32f)])==null?void 0x0:_0x146d69[_0x173078(0x401)],'onChange':_0x2eef42=>_0x427f72['onStyleChange']({'legend':{'wrap':_0x2eef42}})}),(0x0,o['jsx'])(i[_0x173078(0x47a)],{'label':_0x173078(0x1e0),'value':(_0x2e3ea9=(_0x30c5aa=_0x427f72['style'])==null||(_0x30c5aa=_0x30c5aa[_0x173078(0x32f)])==null?void 0x0:_0x30c5aa[_0x173078(0x29f)])==null?s[_0x173078(0x1b3)]['legend'][_0x173078(0x29f)]:_0x2e3ea9,'options':E,'onChange':_0x5f3463=>_0x427f72['onStyleChange']({'legend':{'selectMode':_0x5f3463}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':'Label\x20font\x20size','min':0x8,'value':(_0x28569f=(_0x4e7e38=_0x427f72[_0x173078(0x41f)])==null||(_0x4e7e38=_0x4e7e38['legend'])==null||(_0x4e7e38=_0x4e7e38[_0x173078(0x2f0)])==null?void 0x0:_0x4e7e38[_0x173078(0x4b2)])==null?s[_0x173078(0x1b3)][_0x173078(0x4a2)][_0x173078(0x4b2)]:_0x28569f,'onChange':_0x485e86=>_0x427f72[_0x173078(0x2e9)]({'legend':{'label':{'fontSize':_0x485e86}}})})]})}],[_0x173078(0x482),{'label':_0x1b7141['t'](_0x173078(0x45e)),'children':(0x0,o['jsxs'])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x20833d=(_0x1b10ed=_0x427f72['style'])==null||(_0x1b10ed=_0x1b10ed[_0x173078(0x2c9)])==null?void 0x0:_0x1b10ed['lineVisible'])==null||_0x20833d,'label':_0x1b7141['t'](_0x173078(0x272)),'onChange':_0x3694ad=>_0x427f72['onStyleChange']({'xAxis':{'lineVisible':_0x3694ad}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x56dbe2=(_0x1d4070=_0x427f72['style'])==null||(_0x1d4070=_0x1d4070['xAxis'])==null||(_0x1d4070=_0x1d4070['label'])==null?void 0x0:_0x1d4070['visible'])==null||_0x56dbe2,'label':_0x1b7141['t'](_0x173078(0x335)),'onChange':_0x4cfe10=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'label':{'visible':_0x4cfe10}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x1f6e9d=(_0x2114cf=_0x427f72[_0x173078(0x41f)])==null||(_0x2114cf=_0x2114cf[_0x173078(0x2c9)])==null?void 0x0:_0x2114cf['reverse'])!=null&&_0x1f6e9d,'label':_0x1b7141['t'](_0x173078(0x1c9)),'onChange':_0x2b1a35=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'reverse':_0x2b1a35}})}),(0x0,o[_0x173078(0x3d7)])(i['ChartPropertyRow'],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x440),'value':(_0x339916=(_0x480b4=_0x427f72['style'])==null||(_0x480b4=_0x480b4[_0x173078(0x2c9)])==null?void 0x0:_0x480b4[_0x173078(0x2bf)])==null?void 0x0:_0x339916,'onChange':_0x29e144=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'min':_0x29e144}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x435),'value':(_0x3f42e0=(_0x18c96a=_0x427f72[_0x173078(0x41f)])==null||(_0x18c96a=_0x18c96a[_0x173078(0x2c9)])==null?void 0x0:_0x18c96a[_0x173078(0x404)])==null?void 0x0:_0x3f42e0,'onChange':_0x14e45d=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'max':_0x14e45d}})})]}),(0x0,o[_0x173078(0x450)])(i['ChartTextField'],{'label':_0x173078(0x42e),'value':(_0x14549f=(_0x1dd3db=_0x427f72[_0x173078(0x41f)])==null||(_0x1dd3db=_0x1dd3db[_0x173078(0x2c9)])==null?void 0x0:_0x1dd3db['format'])==null?'':_0x14549f,'placeholder':_0x173078(0x242),'onChange':_0x3bdb38=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'format':_0x3bdb38}})}),(0x0,o[_0x173078(0x3d7)])(i['ChartPropertyRow'],{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':'Label\x20rotate','value':(_0x3dbd8d=(_0x308eed=_0x427f72['style'])==null||(_0x308eed=_0x308eed[_0x173078(0x2c9)])==null||(_0x308eed=_0x308eed['label'])==null?void 0x0:_0x308eed[_0x173078(0x260)])==null?0x0:_0x3dbd8d,'onChange':_0x19d99b=>_0x427f72['onStyleChange']({'xAxis':{'label':{'rotate':_0x19d99b}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x22b),'min':0x8,'value':(_0x1f3f99=(_0x116cb8=_0x427f72[_0x173078(0x41f)])==null||(_0x116cb8=_0x116cb8[_0x173078(0x2c9)])==null||(_0x116cb8=_0x116cb8[_0x173078(0x2f0)])==null?void 0x0:_0x116cb8['fontSize'])==null?s[_0x173078(0x1b3)][_0x173078(0x4a2)]['fontSize']:_0x1f3f99,'onChange':_0x160d4e=>_0x427f72['onStyleChange']({'xAxis':{'label':{'fontSize':_0x160d4e}}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x1872fc=(_0x371af0=_0x427f72[_0x173078(0x41f)])==null||(_0x371af0=_0x371af0[_0x173078(0x2c9)])==null||(_0x371af0=_0x371af0['tick'])==null?void 0x0:_0x371af0[_0x173078(0x405)])!=null&&_0x1872fc,'label':_0x173078(0x35b),'onChange':_0x55aaa1=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'tick':{'visible':_0x55aaa1}}})})]})}],[_0x173078(0x423),{'label':_0x1b7141['t'](_0x173078(0x1fa)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x254),'children':[(0x0,o[_0x173078(0x450)])(i['ChartCheckboxField'],{'checked':(_0x508a23=(_0x1e87b4=_0x427f72[_0x173078(0x41f)])==null||(_0x1e87b4=_0x1e87b4[_0x173078(0x18b)])==null?void 0x0:_0x1e87b4['lineVisible'])==null||_0x508a23,'label':_0x1b7141['t'](_0x173078(0x272)),'onChange':_0x462b55=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'lineVisible':_0x462b55}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x4fbe09=(_0x2b534c=_0x427f72[_0x173078(0x41f)])==null||(_0x2b534c=_0x2b534c[_0x173078(0x18b)])==null||(_0x2b534c=_0x2b534c[_0x173078(0x2f0)])==null?void 0x0:_0x2b534c[_0x173078(0x405)])==null||_0x4fbe09,'label':_0x1b7141['t'](_0x173078(0x335)),'onChange':_0x207ce6=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'label':{'visible':_0x207ce6}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x34b5e6=(_0x3d9d02=_0x427f72[_0x173078(0x41f)])==null||(_0x3d9d02=_0x3d9d02['yAxis'])==null?void 0x0:_0x3d9d02[_0x173078(0x471)])!=null&&_0x34b5e6,'label':_0x1b7141['t'](_0x173078(0x1c9)),'onChange':_0x2963ea=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'reverse':_0x2963ea}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x440),'value':(_0x40d0bc=(_0xe886b4=_0x427f72[_0x173078(0x41f)])==null||(_0xe886b4=_0xe886b4['yAxis'])==null?void 0x0:_0xe886b4[_0x173078(0x2bf)])==null?void 0x0:_0x40d0bc,'onChange':_0x52ba0a=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'min':_0x52ba0a}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x435),'value':(_0x59de66=(_0x2c61dd=_0x427f72['style'])==null||(_0x2c61dd=_0x2c61dd['yAxis'])==null?void 0x0:_0x2c61dd[_0x173078(0x404)])==null?void 0x0:_0x59de66,'onChange':_0x95164c=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'max':_0x95164c}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x393)],{'label':'Number/date\x20format','value':(_0x208906=(_0x4bcda9=_0x427f72[_0x173078(0x41f)])==null||(_0x4bcda9=_0x4bcda9['yAxis'])==null?void 0x0:_0x4bcda9['format'])==null?'':_0x208906,'placeholder':_0x173078(0x242),'onChange':_0x5b910b=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'format':_0x5b910b}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x1a9),'value':(_0x4218cc=(_0xcce4e0=_0x427f72[_0x173078(0x41f)])==null||(_0xcce4e0=_0xcce4e0[_0x173078(0x18b)])==null||(_0xcce4e0=_0xcce4e0['label'])==null?void 0x0:_0xcce4e0[_0x173078(0x260)])==null?0x0:_0x4218cc,'onChange':_0x3d8553=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'label':{'rotate':_0x3d8553}}})}),(0x0,o['jsx'])(i[_0x173078(0x31d)],{'label':_0x173078(0x22b),'min':0x8,'value':(_0x3cc9a9=(_0x5acdd4=_0x427f72[_0x173078(0x41f)])==null||(_0x5acdd4=_0x5acdd4[_0x173078(0x18b)])==null||(_0x5acdd4=_0x5acdd4[_0x173078(0x2f0)])==null?void 0x0:_0x5acdd4[_0x173078(0x4b2)])==null?s['defaultChartConfig'][_0x173078(0x4a2)][_0x173078(0x4b2)]:_0x3cc9a9,'onChange':_0x39135f=>_0x427f72['onStyleChange']({'yAxis':{'label':{'fontSize':_0x39135f}}})})]}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x3d2022=(_0x3197ad=_0x427f72[_0x173078(0x41f)])==null||(_0x3197ad=_0x3197ad['yAxis'])==null||(_0x3197ad=_0x3197ad['tick'])==null?void 0x0:_0x3197ad['visible'])!=null&&_0x3d2022,'label':_0x173078(0x35b),'onChange':_0x2f5400=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'tick':{'visible':_0x2f5400}}})})]})}],['gridlinesAndTicks',{'label':_0x1b7141['t'](_0x173078(0x474)),'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x1aa),'children':[(0x0,o['jsx'])(i[_0x173078(0x234)],{'checked':(_0x4e71d2=(_0x55e64b=_0x427f72[_0x173078(0x41f)])==null||(_0x55e64b=_0x55e64b[_0x173078(0x2c9)])==null||(_0x55e64b=_0x55e64b[_0x173078(0x1e1)])==null?void 0x0:_0x55e64b['visible'])==null||_0x4e71d2,'label':_0x1b7141['t'](_0x173078(0x45e)),'onChange':_0x207e40=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'gridLine':{'visible':_0x207e40}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x234)],{'checked':(_0x254511=(_0x3e9a22=_0x427f72['style'])==null||(_0x3e9a22=_0x3e9a22[_0x173078(0x18b)])==null||(_0x3e9a22=_0x3e9a22[_0x173078(0x1e1)])==null?void 0x0:_0x3e9a22[_0x173078(0x405)])==null||_0x254511,'label':_0x1b7141['t'](_0x173078(0x1fa)),'onChange':_0x343f26=>_0x427f72[_0x173078(0x2e9)]({'yAxis':{'gridLine':{'visible':_0x343f26}}})}),(0x0,o[_0x173078(0x3d7)])(i[_0x173078(0x497)],{'children':[(0x0,o[_0x173078(0x450)])(i['ChartNumberField'],{'label':_0x173078(0x3f3),'min':0x0,'value':(_0x526774=(_0x14169f=_0x427f72[_0x173078(0x41f)])==null||(_0x14169f=_0x14169f[_0x173078(0x2c9)])==null||(_0x14169f=_0x14169f[_0x173078(0x1e1)])==null?void 0x0:_0x14169f[_0x173078(0x447)])==null?0x1:_0x526774,'onChange':_0x32c47f=>_0x427f72[_0x173078(0x2e9)]({'xAxis':{'gridLine':{'width':_0x32c47f}}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x31d)],{'label':_0x173078(0x398),'min':0x0,'value':(_0x32953b=(_0x474fab=_0x427f72['style'])==null||(_0x474fab=_0x474fab[_0x173078(0x18b)])==null||(_0x474fab=_0x474fab['gridLine'])==null?void 0x0:_0x474fab[_0x173078(0x447)])==null?0x1:_0x32953b,'onChange':_0x440c4e=>_0x427f72['onStyleChange']({'yAxis':{'gridLine':{'width':_0x440c4e}}})})]})]})}],[_0x173078(0x365),{'label':_0x1b7141['t']('docs-chart-ui.indicatorLine'),'children':(0x0,o['jsxs'])(_0x173078(0x3d1),{'className':_0x173078(0x1aa),'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x2c3)],{'label':'Color','value':(_0x1b31e5=_0x427f72['style'])==null||(_0x1b31e5=_0x1b31e5[_0x173078(0x4ab)])==null?void 0x0:_0x1b31e5[_0x173078(0x28a)],'onChange':_0x205756=>_0x427f72[_0x173078(0x2e9)]({'tooltip':{'indicatorLineColor':_0x205756==null?'#666666':_0x205756}})}),(0x0,o[_0x173078(0x450)])(i[_0x173078(0x47a)],{'label':'Line\x20type','value':(_0x3c62df=(_0x522726=_0x427f72[_0x173078(0x41f)])==null||(_0x522726=_0x522726['tooltip'])==null?void 0x0:_0x522726[_0x173078(0x309)])==null?s[_0x173078(0x1b3)][_0x173078(0x309)]:_0x3c62df,'options':le,'onChange':_0x56262f=>_0x427f72[_0x173078(0x2e9)]({'tooltip':{'indicatorLineType':_0x56262f}})})]})}]]),_0x49df5e=_0x4336ab['map'](_0x2424de=>_0x66f1f0[_0x173078(0x4bd)](_0x2424de))[_0x173078(0x3b0)](_0x4904dd=>!!_0x4904dd);return(0x0,o['jsx'])(i[_0x173078(0x276)],{'contentClassName':_0x173078(0x232),'tab':_0xfa7abc,'items':[{'label':_0x1b7141['t'](_0x173078(0x456)),'value':0x0},{'label':_0x1b7141['t'](_0x173078(0x1da)),'value':0x1}],'footer':_0x427f72[_0x173078(0x277)]&&(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x3c2),'children':(0x0,o[_0x173078(0x450)])(t['Button'],{'type':_0x173078(0x23a),'variant':'default','onClick':_0x427f72['onClose'],'children':_0x1b7141['t'](_0x173078(0x3c1))})}),'onTabChange':_0x50a76d,'children':(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x4ad),'children':[_0xfa7abc===0x0&&(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-px-1','children':[(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x1b7141['t'](_0x173078(0x366))}),(0x0,o[_0x173078(0x450)])(t['Select'],{'className':_0x173078(0x3e6),'value':String(_0x427f72[_0x173078(0x310)]),'options':_0x31a49c,'onChange':_0x3f0056=>_0x427f72[_0x173078(0x4d6)](Number(_0x3f0056))})]}),(0x0,o['jsxs'])('div',{'children':[(0x0,o['jsx'])(i[_0x173078(0x374)],{'title':_0x173078(0x2b7)}),(0x0,o[_0x173078(0x450)])(t[_0x173078(0x2d2)],{'className':_0x173078(0x3e6),'value':(_0x49d57a=(_0x38a172=_0x427f72['style'])==null?void 0x0:_0x38a172[_0x173078(0x39d)])==null?(_0x1d076a=_0x15f7df[0x0])==null?void 0x0:_0x1d076a[_0x173078(0x3e8)]:_0x49d57a,'options':_0x15f7df,'onChange':_0x574746=>_0x427f72[_0x173078(0x2e9)]({'theme':_0x574746})})]}),!_0x564c7e&&(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x46b),'children':(0x0,o[_0x173078(0x450)])(t[_0x173078(0x1d2)],{'checked':(_0x54e5f7=(_0x25acee=_0x427f72['style'])==null?void 0x0:_0x25acee[_0x173078(0x340)])!=null&&_0x54e5f7,'onChange':_0x14982d=>_0x427f72[_0x173078(0x2e9)]({'gradientFill':!!_0x14982d}),'children':_0x173078(0x2f7)})}),_0x350c10&&(0x0,o['jsxs'])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x173078(0x3bc)}),(0x0,o['jsx'])(t[_0x173078(0x2d2)],{'className':_0x173078(0x3e6),'value':Se(_0x427f72[_0x173078(0x310)]),'options':ce,'onChange':_0xf11970=>_0x427f72[_0x173078(0x4d6)](Ce(_0x427f72[_0x173078(0x310)],_0xf11970))})]}),(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x1b7141['t'](_0x173078(0x296))}),(0x0,o['jsx'])(t[_0x173078(0x387)],{'type':_0x173078(0x23a),'variant':_0x173078(0x349),'className':_0x173078(0x2cb),'onClick':_0x427f72['onModifyData'],'children':_0x1b7141['t'](_0x173078(0x1af))})]}),_0x548ada!==_0x173078(0x23b)&&(0x0,o['jsx'])(i[_0x173078(0x20c)],{'chartType':_0x427f72[_0x173078(0x310)],'context':_0x184db2,'fields':_0x560508,'labels':{'candlestick':{'category':_0x1b7141['t'](_0x173078(0x2ac)),'close':_0x1b7141['t'](_0x173078(0x249)),'high':_0x1b7141['t']('docs-chart-ui.candlestick.high'),'low':_0x1b7141['t'](_0x173078(0x285)),'open':_0x1b7141['t'](_0x173078(0x359))},'histogramValue':_0x1b7141['t']('docs-chart-ui.histogram.value'),'treemapHierarchy':_0x1b7141['t']('docs-chart-ui.treemap.hierarchy'),'treemapValue':_0x1b7141['t']('docs-chart-ui.treemap.value')},'onChange':_0xd95e22=>_0x427f72[_0x173078(0x268)]({..._0x1b91c7,'chartContext':{..._0x184db2,..._0xd95e22}})}),_0x548ada===_0x173078(0x23b)&&(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':'Category'}),(0x0,o[_0x173078(0x450)])(t[_0x173078(0x2d2)],{'className':_0x173078(0x3e6),'value':String(_0x3d23a6),'options':_0x560508,'onChange':_0x5f36e7=>_0x427f72[_0x173078(0x268)]({'chartContext':{'categoryIndex':Number(_0x5f36e7)}})})]}),_0x548ada==='category-series'&&(0x0,o[_0x173078(0x3d7)])('div',{'children':[(0x0,o[_0x173078(0x450)])(i[_0x173078(0x374)],{'title':_0x1b7141['t'](_0x173078(0x380))}),(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':_0x173078(0x3de),'children':[_0x36303c[_0x173078(0x1c8)]((_0x186380,_0x189f28)=>(0x0,o[_0x173078(0x3d7)])(_0x173078(0x3d1),{'className':'univer-mb-2\x20univer-flex\x20univer-items-center','children':[(0x0,o['jsx'])(t['Select'],{'className':_0x173078(0x3e6),'value':String(_0x186380),'options':_0x2f18a4,'onChange':_0x34f223=>_0xf3eb68(_0x189f28,_0x34f223)}),(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':_0x173078(0x225),'onClick':()=>_0x5f309c(_0x189f28),'children':(0x0,o['jsx'])(c[_0x173078(0x351)],{})})]},_0x186380+'-'+_0x189f28)),(0x0,o[_0x173078(0x450)])(t[_0x173078(0x49c)],{'className':_0x173078(0x270),'items':_0x2f18a4[_0x173078(0x3b0)](_0x30d689=>!_0x36303c['includes'](Number(_0x30d689[_0x173078(0x3e8)])))['map'](_0x47f1e1=>({'type':'item','children':_0x47f1e1[_0x173078(0x2f0)],'onSelect':()=>{const _0xc45e32=_0x173078;_0x427f72[_0xc45e32(0x268)]({'chartContext':{'seriesIndexes':[..._0x36303c,Number(_0x47f1e1[_0xc45e32(0x3e8)])]}});}})),'children':(0x0,o[_0x173078(0x3d7)])('a',{'className':'univer-mb-2\x20univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-text-primary-600','children':[(0x0,o[_0x173078(0x450)])(c[_0x173078(0x4d5)],{'className':_0x173078(0x469)}),(0x0,o[_0x173078(0x450)])('span',{'className':_0x173078(0x32c),'children':'Add\x20series'})]})})]})]}),_0x548ada==='category-series'&&(0x0,o[_0x173078(0x450)])(_0x173078(0x3d1),{'className':'univer-mt-2-base','children':(0x0,o[_0x173078(0x450)])(t[_0x173078(0x387)],{'size':_0x173078(0x34c),'onClick':()=>{const _0x1ff4e5=_0x173078;_0x427f72[_0x1ff4e5(0x268)]({'orient':_0x1b91c7[_0x1ff4e5(0x4db)]===_0x1ff4e5(0x262)?'column':_0x1ff4e5(0x262)});},'children':'Switch\x20to\x20row/column'})})]}),_0xfa7abc===0x1&&(0x0,o[_0x173078(0x450)])(t[_0x173078(0x3a8)],{'className':_0x173078(0x219),'items':_0x49df5e})]})});}function O(_0x4d53f6){'@babel/helpers - typeof';const _0x22883c=_0x4152cc;return O=typeof Symbol==_0x22883c(0x3ba)&&typeof Symbol['iterator']==_0x22883c(0x4c3)?function(_0x34f8a6){return typeof _0x34f8a6;}:function(_0x22130c){const _0x98ddf2=_0x22883c;return _0x22130c&&typeof Symbol==_0x98ddf2(0x3ba)&&_0x22130c[_0x98ddf2(0x2dc)]===Symbol&&_0x22130c!==Symbol[_0x98ddf2(0x1a3)]?'symbol':typeof _0x22130c;},O(_0x4d53f6);}function De(_0x142328,_0x4998d0){const _0x3f538b=_0x4152cc;if(O(_0x142328)!=_0x3f538b(0x2b8)||!_0x142328)return _0x142328;var _0x4042a0=_0x142328[Symbol['toPrimitive']];if(_0x4042a0!==void 0x0){var _0x19023e=_0x4042a0[_0x3f538b(0x203)](_0x142328,_0x4998d0||_0x3f538b(0x349));if(O(_0x19023e)!=_0x3f538b(0x2b8))return _0x19023e;throw TypeError(_0x3f538b(0x38c));}return(_0x4998d0===_0x3f538b(0x1cc)?String:Number)(_0x142328);}function _0xfc4a(_0x19fe44,_0x146f3d){_0x19fe44=_0x19fe44-0x17a;const _0x56f308=_0x56f3();let _0xfc4af3=_0x56f308[_0x19fe44];return _0xfc4af3;}function Oe(_0x42e8f8){const _0x1838d8=_0x4152cc;var _0xe75e1e=De(_0x42e8f8,_0x1838d8(0x1cc));return O(_0xe75e1e)==_0x1838d8(0x4c3)?_0xe75e1e:_0xe75e1e+'';}function k(_0x4af180,_0x47bd24,_0x41fdb5){const _0x1f7ecd=_0x4152cc;return(_0x47bd24=Oe(_0x47bd24))in _0x4af180?Object[_0x1f7ecd(0x33c)](_0x4af180,_0x47bd24,{'value':_0x41fdb5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4af180[_0x47bd24]=_0x41fdb5,_0x4af180;}var A=class extends s[_0x4152cc(0x2a0)]{constructor(_0x6eb94e,_0x2a1b25){const _0x43d97f=_0x4152cc;super(_0x6eb94e),this['_rect']=_0x2a1b25,k(this,_0x43d97f(0x449),void 0x0);}[_0x4152cc(0x409)](){const _0x53b67a=_0x4152cc;return{'width':Math[_0x53b67a(0x404)](0x1,this[_0x53b67a(0x460)][_0x53b67a(0x447)]),'height':Math[_0x53b67a(0x404)](0x1,this['_rect'][_0x53b67a(0x1ad)])};}[_0x4152cc(0x3f1)](_0x3f4431){}['nextVersion'](){return 0x1;}['commitSnapshot'](_0x1eabcb,_0x1ebe8e){return this['_dataUrl']=(0x0,s['chartImageSourceToDataUrl'])(_0x1eabcb),!0x0;}[_0x4152cc(0x1a4)](){}[_0x4152cc(0x1ed)](){const _0x1b4a42=_0x4152cc;this[_0x1b4a42(0x449)]=void 0x0;}['getDataUrl'](){const _0x141b5a=_0x4152cc;return this[_0x141b5a(0x449)];}},ke=class extends e[_0x4152cc(0x3fd)]{constructor(_0x3a8e23,_0x5d7d65,_0x137ad4,_0x31cf9f,_0x35023f=!0x0){const _0x29d8f9=_0x4152cc;super(),this[_0x29d8f9(0x4ca)]=_0x3a8e23,this['_host']=_0x5d7d65,this['_applyHostStyle']=_0x137ad4,this['_getRenderRect']=_0x31cf9f,this[_0x29d8f9(0x2dd)]=_0x35023f,k(this,_0x29d8f9(0x381),s[_0x29d8f9(0x420)][_0x29d8f9(0x2e2)]),k(this,_0x29d8f9(0x1a2),null),k(this,'_hostStyle',{});}[_0x4152cc(0x409)](){const _0x1eec02=_0x4152cc;var _0x3a19ca;let _0x1b5a5a=(_0x3a19ca=this[_0x1eec02(0x189)])==null?void 0x0:_0x3a19ca[_0x1eec02(0x203)](this);if(_0x1b5a5a)return{'width':Math[_0x1eec02(0x404)](0x1,_0x1b5a5a['width']),'height':Math[_0x1eec02(0x404)](0x1,_0x1b5a5a[_0x1eec02(0x1ad)])};let _0x1cd990=this[_0x1eec02(0x23e)]['getBoundingClientRect']();return{'width':Math[_0x1eec02(0x404)](0x1,_0x1cd990[_0x1eec02(0x447)]),'height':Math[_0x1eec02(0x404)](0x1,_0x1cd990[_0x1eec02(0x1ad)])};}[_0x4152cc(0x3f1)](_0x315ba8){const _0x4feef0=_0x4152cc;this[_0x4feef0(0x43f)]=_0x315ba8,this[_0x4feef0(0x411)](this[_0x4feef0(0x23e)],_0x315ba8);}async[_0x4152cc(0x20d)](){const _0x470b1c=_0x4152cc;if(!this[_0x470b1c(0x1a2)]){let _0x209c77=document[_0x470b1c(0x384)](_0x470b1c(0x3d1));_0x209c77[_0x470b1c(0x41f)][_0x470b1c(0x465)]=_0x470b1c(0x1b4),_0x209c77[_0x470b1c(0x41f)]['border']='0',_0x209c77[_0x470b1c(0x41f)][_0x470b1c(0x4b8)]='content-box',_0x209c77['style'][_0x470b1c(0x4b7)]='hidden',_0x209c77[_0x470b1c(0x388)]=_0x470b1c(0x361),this[_0x470b1c(0x1a2)]=_0x209c77,this[_0x470b1c(0x23e)]['appendChild'](_0x209c77);}return this['syncLayout'](),this[_0x470b1c(0x1a2)];}['checkMounted'](){const _0xf28263=_0x4152cc;return!!(this[_0xf28263(0x1a2)]&&this[_0xf28263(0x23e)][_0xf28263(0x3e2)](this['_mountNode']));}[_0x4152cc(0x495)](){const _0x3d5311=_0x4152cc;let _0x2def0e=this[_0x3d5311(0x409)]();this['_manageHostSize']&&this['_setElementSize'](this['_host'],_0x2def0e),this[_0x3d5311(0x1a2)]&&this['_setElementSize'](this['_mountNode'],this['_getContentRect'](_0x2def0e));}[_0x4152cc(0x37b)](){}[_0x4152cc(0x4ac)](){}[_0x4152cc(0x397)](){const _0x4c639b=_0x4152cc;var _0x1c98f8;(_0x1c98f8=this[_0x4c639b(0x1a2)])==null||_0x1c98f8[_0x4c639b(0x3a3)](),this['_mountNode']=null,super[_0x4c639b(0x397)]();}[_0x4152cc(0x3f9)](_0x92df5b,_0x556618){const _0x2c0f6f=_0x4152cc;_0x92df5b[_0x2c0f6f(0x41f)][_0x2c0f6f(0x447)]=_0x556618[_0x2c0f6f(0x447)]+'px',_0x92df5b['style'][_0x2c0f6f(0x1ad)]=_0x556618['height']+'px';}[_0x4152cc(0x38b)](_0x3db078){const _0x330c9e=_0x4152cc;if(!(0x0,s[_0x330c9e(0x34b)])(this['_hostStyle']))return _0x3db078;let _0x51128e=(0x0,s[_0x330c9e(0x3a2)])(_0x3db078,this['_hostStyle']);return{'width':_0x51128e[_0x330c9e(0x447)],'height':_0x51128e[_0x330c9e(0x1ad)]};}};const j=(0x0,e[_0x4152cc(0x181)])(_0x4152cc(0x346));function Ae(_0x591e35){const _0x971497=_0x4152cc;var _0x1e9809;let _0x1275af=(_0x1e9809=_0x591e35[_0x971497(0x1b9)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x1e9809[0x1];if(_0x1275af){let _0x4d8e52=_0x1275af['length']===0x3?_0x1275af[_0x971497(0x180)]('')[_0x971497(0x1c8)](_0x25a3d1=>''+_0x25a3d1+_0x25a3d1)[_0x971497(0x17d)](''):_0x1275af;return _0x971497(0x4c8)+Number[_0x971497(0x432)](_0x4d8e52[_0x971497(0x36a)](0x0,0x2),0x10)+',\x20'+Number[_0x971497(0x432)](_0x4d8e52[_0x971497(0x36a)](0x2,0x4),0x10)+',\x20'+Number[_0x971497(0x432)](_0x4d8e52[_0x971497(0x36a)](0x4,0x6),0x10)+')';}let _0x30a6f0=document[_0x971497(0x384)](_0x971497(0x292));return _0x30a6f0[_0x971497(0x41f)]['color']=_0x591e35,_0x30a6f0[_0x971497(0x41f)][_0x971497(0x413)]||_0x591e35;}let M=class extends e[_0x4152cc(0x3fd)]{constructor(_0x2e9470,_0x461248,_0x2a2808,_0x51d867){const _0x1e8026=_0x4152cc;super(),this[_0x1e8026(0x4df)]=_0x2e9470,this[_0x1e8026(0x2ec)]=_0x461248,k(this,'_renderModelManager',void 0x0),this[_0x1e8026(0x36f)]=_0x2a2808,(_0x51d867||!this[_0x1e8026(0x36f)]['getRenderModel'](s['EChartRenderEngineName']))&&this['registerRenderModel'](s[_0x1e8026(0x2b1)],_0x51d867==null?new s[(_0x1e8026(0x23d))](!0x1,{'wordCloudRenderConfig':a[_0x1e8026(0x44b)]}):_0x51d867);}[_0x4152cc(0x2a4)](_0x214655,_0x45d572){const _0x5f549c=_0x4152cc;this[_0x5f549c(0x36f)][_0x5f549c(0x2a4)](_0x214655,_0x45d572);}[_0x4152cc(0x280)](_0x528c9e){const _0x410c17=_0x4152cc;this[_0x410c17(0x36f)]['setRenderModel'](_0x528c9e);}['getRenderModel'](_0x5411d8=s[_0x4152cc(0x2b1)]){const _0x271d6f=_0x4152cc;return this['_renderModelManager'][_0x271d6f(0x3b9)](_0x5411d8);}['createChartInstance'](_0x647cfb){const _0x475ba3=_0x4152cc;return _0x647cfb?this[_0x475ba3(0x36f)][_0x475ba3(0x307)](_0x647cfb,this['_createChartRenderInstanceContext']()):this[_0x475ba3(0x36f)]['createChartInstance']();}[_0x4152cc(0x2ee)](_0x3157d3){const _0x47cd43=_0x4152cc;let _0x56e9b8=_0x3157d3[_0x47cd43(0x4c9)][_0x47cd43(0x3af)];if(!_0x56e9b8)throw Error(_0x47cd43(0x479)+_0x3157d3['chartId']+'\x20has\x20no\x20render\x20config.');let _0x55bcd6=this[_0x47cd43(0x4df)][_0x47cd43(0x352)]();return{'chartConfig':_0x56e9b8,'chartStyle':(0x0,s[_0x47cd43(0x318)])({..._0x3157d3[_0x47cd43(0x4c9)][_0x47cd43(0x41f)],'runtime':_0x3157d3[_0x47cd43(0x4c9)][_0x47cd43(0x20b)](_0x55bcd6),'direction':_0x55bcd6},_0x56e9b8[_0x47cd43(0x27a)])};}[_0x4152cc(0x2b0)](_0x1be960,_0x560d11,_0x34ff84){const _0x5ee527=_0x4152cc;let {chartConfig:_0x367334,chartStyle:_0x5a56f8}=this['createRenderInput'](_0x1be960),_0x5d32ec=this[_0x5ee527(0x36f)][_0x5ee527(0x3ea)]();return{'spec':_0x5d32ec[_0x5ee527(0x38e)](_0x5d32ec['toSpec'](_0x367334,_0x5a56f8),{'chartConfig':_0x367334,'chartStyle':_0x5a56f8,'chartInstance':_0x34ff84},_0x560d11),'chartConfig':_0x367334,'chartStyle':_0x5a56f8,'hostStyle':this[_0x5ee527(0x1f7)](_0x5a56f8)};}[_0x4152cc(0x1f7)](_0x21b614){const _0x11b58f=_0x4152cc;return(0x0,s[_0x11b58f(0x3a6)])({'style':_0x21b614,'getRenderColor':_0x16e7c9=>this['_chartThemeService'][_0x11b58f(0x454)](_0x16e7c9)});}[_0x4152cc(0x3cf)](_0x444131,_0x4f6634){const _0x373b04=_0x4152cc;var _0x179e95;let _0x3ebc84=(_0x179e95=_0x4f6634[_0x373b04(0x3b4)])!=null&&_0x179e95['color']&&_0x4f6634['border'][_0x373b04(0x447)]?_0x4f6634[_0x373b04(0x3b4)][_0x373b04(0x447)]+_0x373b04(0x3c5)+Ae(_0x4f6634[_0x373b04(0x3b4)][_0x373b04(0x413)]):'';_0x444131['style']['border']=_0x3ebc84,_0x444131[_0x373b04(0x41f)][_0x373b04(0x32b)]=_0x4f6634[_0x373b04(0x48b)]?Ae(_0x4f6634[_0x373b04(0x48b)]):'transparent',_0x444131[_0x373b04(0x41f)][_0x373b04(0x428)]=_0x4f6634[_0x373b04(0x35a)]?_0x4f6634[_0x373b04(0x35a)]+'px':'',_0x444131[_0x373b04(0x41f)][_0x373b04(0x4b7)]='hidden',_0x444131[_0x373b04(0x41f)][_0x373b04(0x4b8)]=_0x373b04(0x324);}[_0x4152cc(0x4a3)](){const _0x56a176=_0x4152cc;return{'resolveHostStyle':({style:_0x120159})=>this[_0x56a176(0x1f7)](_0x120159),'resolveRenderBackgroundColor':({hostStyle:_0x3bf5ab})=>_0x3bf5ab[_0x56a176(0x48b)],'prepareSpec':({mode:_0x11a4d0,spec:_0x3a5217})=>_0x11a4d0===_0x56a176(0x17e)?{..._0x3a5217,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x3a5217};}[_0x4152cc(0x397)](){const _0xe2f072=_0x4152cc;super[_0xe2f072(0x397)]();}};M=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(e['LocaleService'])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(s[_0x4152cc(0x1f8)])),S(0x2,s[_0x4152cc(0x305)]),S(0x3,(0x0,e[_0x4152cc(0x34f)])(j))],M);function je(_0x18150e,_0x51de42,_0x378dbf,_0x55c99f,_0x4a157f,_0x4159f0,_0x452ab0){const _0x36dae2=_0x4152cc;let _0x199ae7=new s['StaticChartSource'](),_0x274b32=new s['ChartModel'](_0x18150e,{'chartType':_0x378dbf,'context':_0x55c99f==null?void 0x0:_0x55c99f[_0x36dae2(0x3da)],'dataAggregation':_0x4a157f,'dataSource':_0x199ae7,'style':_0x4159f0},_0x452ab0);_0x274b32[_0x36dae2(0x3c8)](),_0x199ae7[_0x36dae2(0x24c)]((0x0,a['buildInlineTableDataSet'])((0x0,i[_0x36dae2(0x1ff)])(_0x51de42)),(_0x55c99f==null?void 0x0:_0x55c99f[_0x36dae2(0x4db)])!==_0x36dae2(0x47e));let _0x564d22=(0x0,s['generateChartModelContextByOperators'])(_0x274b32,_0x199ae7);return _0x564d22&&_0x274b32[_0x36dae2(0x42c)](_0x564d22),{'unitId':'doc-chart-preview','chartId':_0x18150e,'dataSourceId':_0x18150e+_0x36dae2(0x3aa),'model':_0x274b32,'source':_0x199ae7};}function Me(_0x2e4100){const _0x1f6aeb=_0x4152cc;let _0x191179=(0x0,n[_0x1f6aeb(0x21a)])(e[_0x1f6aeb(0x333)]),_0x5124db=(0x0,n[_0x1f6aeb(0x21a)])(e[_0x1f6aeb(0x360)]),_0x4026e2=(0x0,n[_0x1f6aeb(0x21a)])(M),_0x494471=(0x0,r['useRef'])(null),_0x1ddaac=(0x0,r[_0x1f6aeb(0x326)])(null),_0x342a8c=(0x0,r['useRef'])(_0x1f6aeb(0x2b3)+(0x0,e['generateRandomId'])(0x8)),[_0x7ce6fd,_0x4dc65a]=(0x0,r['useState'])(null);return(0x0,r[_0x1f6aeb(0x48a)])(()=>{const _0xe9003=_0x1f6aeb;let _0x3f5eae=_0x494471['current'];if(!_0x3f5eae)return;_0x4dc65a(null),_0x3f5eae[_0xe9003(0x2de)](),_0x1ddaac[_0xe9003(0x19e)]=N(_0x3f5eae);let _0x36278d=!0x1,_0x3d8ab8=_0x21c40a=>{_0x36278d||_0x4dc65a(_0x21c40a);},_0x31e4f8=null,_0x4531f4=null,_0x1ced7a=null;try{_0x31e4f8=je(_0x342a8c[_0xe9003(0x19e)],_0x2e4100['values'],_0x2e4100[_0xe9003(0x310)],_0x2e4100['context'],_0x2e4100['dataAggregation'],_0x2e4100[_0xe9003(0x41f)],_0x5124db),_0x4531f4=new ke(_0x31e4f8[_0xe9003(0x4ca)],_0x3f5eae,(_0x8f0f16,_0x3fcadf)=>_0x4026e2[_0xe9003(0x3cf)](_0x8f0f16,_0x3fcadf),()=>{const _0x625e5f=_0xe9003;var _0x1faf5c;return(_0x1faf5c=_0x1ddaac[_0x625e5f(0x19e)])==null?N(_0x3f5eae):_0x1faf5c;},!0x1),_0x1ced7a=_0x4026e2[_0xe9003(0x307)](s[_0xe9003(0x420)][_0xe9003(0x2e2)]),_0x1ced7a[_0xe9003(0x2f4)](_0x4531f4);}catch(_0xcb3f8b){return _0x3d8ab8(_0xcb3f8b),()=>{const _0xb1a49e=_0xe9003;_0x36278d=!0x0,_0x3f5eae[_0xb1a49e(0x2de)]();};}if(!_0x31e4f8||!_0x4531f4||!_0x1ced7a)return()=>{const _0x444319=_0xe9003;_0x36278d=!0x0,_0x3f5eae[_0x444319(0x2de)]();};let _0x1ad955=_0x31e4f8,_0x46882a=_0x4531f4,_0x4f6a53=_0x1ced7a,_0x392649=()=>{const _0x34e2c3=_0xe9003;let _0x1c5be0,_0x86dd16;try{({chartConfig:_0x1c5be0,chartStyle:_0x86dd16}=_0x4026e2[_0x34e2c3(0x2ee)](_0x1ad955));}catch(_0x51fb78){_0x3d8ab8(_0x51fb78);return;}_0x4f6a53[_0x34e2c3(0x43e)]({'chartId':_0x1ad955[_0x34e2c3(0x4ca)],'config':_0x1c5be0,'style':_0x86dd16})[_0x34e2c3(0x1a0)](()=>{_0x36278d||_0x4dc65a(null);})[_0x34e2c3(0x3db)](_0x3d8ab8);},_0x47289b=_0x1ad955[_0xe9003(0x4c9)][_0xe9003(0x23c)][_0xe9003(0x3a0)](_0x332d4d=>{_0x332d4d&&_0x392649();}),_0x426bdb=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x47ec4f=>{const _0x43b494=_0xe9003;var _0x5a3804;let _0xf48c50=(_0x5a3804=_0x47ec4f[0x0])==null?void 0x0:_0x5a3804[_0x43b494(0x191)];_0x1ddaac[_0x43b494(0x19e)]=_0xf48c50&&_0xf48c50[_0x43b494(0x447)]>0x0&&_0xf48c50['height']>0x0?{'width':_0xf48c50[_0x43b494(0x447)],'height':_0xf48c50[_0x43b494(0x1ad)]}:N(_0x3f5eae),_0x392649();});return _0x426bdb==null||_0x426bdb[_0xe9003(0x452)](_0x3f5eae),()=>{const _0x1ea5f=_0xe9003;_0x36278d=!0x0,_0x47289b[_0x1ea5f(0x458)](),_0x426bdb==null||_0x426bdb[_0x1ea5f(0x2fa)](),_0x4f6a53[_0x1ea5f(0x397)](),_0x46882a[_0x1ea5f(0x397)](),_0x1ad955[_0x1ea5f(0x4c9)]['dispose'](),_0x1ad955[_0x1ea5f(0x43a)][_0x1ea5f(0x397)](),_0x3f5eae[_0x1ea5f(0x2de)]();};},[_0x5124db,_0x2e4100[_0x1f6aeb(0x310)],_0x2e4100[_0x1f6aeb(0x246)],_0x2e4100[_0x1f6aeb(0x329)],_0x2e4100['style'],_0x2e4100[_0x1f6aeb(0x1ab)],_0x4026e2]),(0x0,o[_0x1f6aeb(0x3d7)])(_0x1f6aeb(0x3d1),{'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':[(0x0,o[_0x1f6aeb(0x450)])('div',{'ref':_0x494471,'className':_0x1f6aeb(0x442)}),_0x7ce6fd!=null&&(0x0,o[_0x1f6aeb(0x450)])('div',{'className':_0x1f6aeb(0x23f),'children':_0x191179['t']('docs-chart-ui.previewRenderFailed')})]});}function N(_0x5b0eec){const _0x3b505d=_0x4152cc;let _0x49a50c=_0x5b0eec[_0x3b505d(0x35c)]();return _0x49a50c[_0x3b505d(0x447)]<=0x0||_0x49a50c[_0x3b505d(0x1ad)]<=0x0?null:{'width':_0x49a50c['width'],'height':_0x49a50c[_0x3b505d(0x1ad)]};}const Ne=_0x4152cc(0x319),P=_0x4152cc(0x470);function Pe(_0x5b5f00){const _0x1ae42f=_0x4152cc;var _0x2642ef;let {unitId:_0x2fcc82,chartId:_0x242676,onClose:_0x976525}=_0x5b5f00,_0x21abbf=(0x0,n[_0x1ae42f(0x21a)])(e['LocaleService']),_0x32030e=(0x0,n[_0x1ae42f(0x21a)])(a['DocChartResourceService']),_0x312f34=(0x0,n[_0x1ae42f(0x21a)])(w),_0x323a36=(0x0,r[_0x1ae42f(0x3c0)])(()=>_0x312f34[_0x1ae42f(0x27d)](_0x2fcc82,_0x242676),[_0x242676,_0x312f34,_0x2fcc82]),_0x4a62a1=_0x32030e[_0x1ae42f(0x267)](_0x2fcc82,_0x242676),[_0x54c6c9,_0x30048a]=(0x0,r[_0x1ae42f(0x4c6)])(_0x323a36),[_0xede898,_0x19ffa0]=(0x0,r[_0x1ae42f(0x4c6)])(()=>{const _0xff9114=_0x1ae42f;var _0x5ba4fa;return(_0x5ba4fa=_0x323a36==null?void 0x0:_0x323a36[_0xff9114(0x1ab)][_0xff9114(0x1c8)](_0x35296f=>[..._0x35296f]))==null?[]:_0x5ba4fa;}),[_0x38be1e,_0x11aa82]=(0x0,r['useState'])(()=>{const _0x1a2371=_0x1ae42f;var _0x3cbe76;return(_0x3cbe76=_0x323a36==null?void 0x0:_0x323a36[_0x1a2371(0x1ab)][_0x1a2371(0x1c8)](_0x13c372=>[..._0x13c372]))==null?[]:_0x3cbe76;}),[_0xa43fae,_0x1cd9eb]=(0x0,r['useState'])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x310)]),[_0x1984e7,_0x1cf65d]=(0x0,r[_0x1ae42f(0x4c6)])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x41f)]),[_0x9a62f9,_0x442367]=(0x0,r['useState'])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x246)]),[_0x20dc8e,_0x57cea7]=(0x0,r['useState'])(()=>_0x4a62a1==null?void 0x0:_0x4a62a1[_0x1ae42f(0x329)]),[_0x43d853,_0x3e9a9d]=(0x0,r[_0x1ae42f(0x4c6)])(()=>{const _0x496d7e=_0x1ae42f;var _0xcd22ab;return((_0xcd22ab=_0x5b5f00[_0x496d7e(0x421)])==null?void 0x0:_0xcd22ab[_0x496d7e(0x2f2)])==='data'?_0x496d7e(0x40f):'chart';}),[_0x5f30b2,_0x578dbb]=(0x0,r[_0x1ae42f(0x4c6)])(null);return!_0x54c6c9||!_0x4a62a1?(0x0,o[_0x1ae42f(0x450)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x1f9),'children':_0x21abbf['t'](_0x1ae42f(0x1c5))}):(0x0,o[_0x1ae42f(0x3d7)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x298),'style':{'height':_0x1ae42f(0x37f)},'children':[(0x0,o[_0x1ae42f(0x450)])(i[_0x1ae42f(0x468)],{'className':_0x1ae42f(0x4c1),'value':_0x43d853,'items':[{'label':_0x21abbf['t'](_0x1ae42f(0x1bd)),'value':_0x1ae42f(0x2ea)},{'label':_0x21abbf['t'](_0x1ae42f(0x296)),'value':'data'}],'variant':'segmented','onChange':_0x3e9a9d}),(0x0,o['jsxs'])(_0x1ae42f(0x3d1),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-pt-4','children':[_0x43d853==='data'?(0x0,o[_0x1ae42f(0x450)])(te,{'values':_0xede898,'sharingCount':_0x54c6c9[_0x1ae42f(0x391)],'onCancel':()=>_0x3e9a9d(_0x1ae42f(0x2ea)),'onSubmit':(_0x4c51ea,_0x84fda9)=>{const _0x2a7685=_0x1ae42f;var _0x535ef5,_0x134bff;if(!_0x312f34['updateData'](_0x2fcc82,_0x242676,_0x4c51ea,_0x84fda9)){_0x578dbb(_0x21abbf['t'](_0x2a7685(0x235)));return;}_0x578dbb(null);let _0x2123f0=_0x312f34['getEditorState'](_0x2fcc82,_0x242676);_0x30048a(_0x2123f0==null?_0x54c6c9:_0x2123f0),_0x19ffa0((_0x535ef5=_0x2123f0==null?void 0x0:_0x2123f0[_0x2a7685(0x1ab)])==null?_0x4c51ea:_0x535ef5),_0x11aa82((_0x134bff=_0x2123f0==null?void 0x0:_0x2123f0[_0x2a7685(0x1ab)])==null?_0x4c51ea:_0x134bff),_0x3e9a9d('chart');}}):(0x0,o['jsxs'])('div',{'className':_0x1ae42f(0x264),'children':[(0x0,o['jsx'])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x208),'children':(0x0,o[_0x1ae42f(0x450)])(Me,{'values':_0x38be1e,'chartType':_0xa43fae==null?_0x4a62a1[_0x1ae42f(0x310)]:_0xa43fae,'context':_0x9a62f9,'dataAggregation':_0x20dc8e,'style':_0x1984e7})}),(0x0,o[_0x1ae42f(0x3d7)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x1c3),'children':[(0x0,o[_0x1ae42f(0x450)])('div',{'className':_0x1ae42f(0x299),'children':(0x0,o[_0x1ae42f(0x450)])(Ee,{'chartType':_0xa43fae==null?_0x4a62a1['chartType']:_0xa43fae,'values':_0xede898,'context':_0x9a62f9,'dataAggregation':_0x20dc8e,'style':_0x1984e7,'initialTab':+(((_0x2642ef=_0x5b5f00[_0x1ae42f(0x421)])==null?void 0x0:_0x2642ef[_0x1ae42f(0x2f2)])==='style'),'onChartTypeChange':_0xd68720=>{const _0x5cd080=_0x1ae42f;if(!_0x312f34['updateChartType'](_0x2fcc82,_0x242676,_0xd68720)){_0x578dbb(_0x21abbf['t'](_0x5cd080(0x235)));return;}_0x578dbb(null),_0x1cd9eb(_0xd68720);},'onContextChange':_0x2552fc=>{const _0x5d378f=_0x1ae42f;var _0x5774b2;if(!_0x312f34[_0x5d378f(0x2ae)](_0x2fcc82,_0x242676,_0x2552fc)){_0x578dbb(_0x21abbf['t'](_0x5d378f(0x235)));return;}_0x578dbb(null),_0x442367((_0x5774b2=_0x32030e[_0x5d378f(0x267)](_0x2fcc82,_0x242676))==null?void 0x0:_0x5774b2['context']);},'onDataAggregationChange':_0x3e3044=>{const _0x462dd9=_0x1ae42f;var _0x381600;if(!_0x312f34[_0x462dd9(0x350)](_0x2fcc82,_0x242676,_0x3e3044)){_0x578dbb(_0x21abbf['t'](_0x462dd9(0x235)));return;}_0x578dbb(null),_0x57cea7((_0x381600=_0x32030e['getChart'](_0x2fcc82,_0x242676))==null?void 0x0:_0x381600[_0x462dd9(0x329)]);},'onStyleChange':_0x11c96c=>{const _0x1ac755=_0x1ae42f;var _0x219602;if(!_0x312f34['updateChartStyle'](_0x2fcc82,_0x242676,_0x11c96c)){_0x578dbb(_0x21abbf['t'](_0x1ac755(0x235)));return;}_0x578dbb(null),_0x1cf65d((_0x219602=_0x32030e[_0x1ac755(0x267)](_0x2fcc82,_0x242676))==null?void 0x0:_0x219602['style']);},'onModifyData':()=>_0x3e9a9d('data'),'onClose':_0x976525})}),_0x5f30b2&&(0x0,o['jsx'])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x251),'children':_0x5f30b2})]})]}),_0x43d853===_0x1ae42f(0x40f)&&_0x5f30b2&&(0x0,o[_0x1ae42f(0x450)])(_0x1ae42f(0x3d1),{'className':_0x1ae42f(0x244),'children':_0x5f30b2})]})]});}function F(_0x1edc5c,_0x122c54){const _0x2ae022=_0x4152cc;var _0x28ad20,_0x2cfc4b;if(!(_0x122c54!=null&&_0x122c54[_0x2ae022(0x266)])||_0x122c54[_0x2ae022(0x1dc)]==null)return null;let _0x1bbb3b=(_0x28ad20=_0x122c54[_0x2ae022(0x209)])==null?'':_0x28ad20;if(_0x1bbb3b!=='')return null;let _0x12515d=(_0x2cfc4b=_0x1edc5c[_0x2ae022(0x2fd)](_0x1bbb3b))==null?void 0x0:_0x2cfc4b['getBody']();if(!_0x12515d)return null;let _0x5b37da=Fe(_0x12515d,_0x122c54[_0x2ae022(0x1dc)]);if(!I(_0x12515d,_0x5b37da))return null;let _0x21a50c=Le(_0x12515d,_0x5b37da);return _0x21a50c?{'unitId':_0x1edc5c[_0x2ae022(0x21c)](),'index':_0x21a50c[_0x2ae022(0x261)],'segmentId':_0x1bbb3b,'breakOffsets':_0x21a50c[_0x2ae022(0x426)]}:null;}function Fe(_0x3511fc,_0xd99fed){const _0x49fa4d=_0x4152cc;return _0xd99fed===0x0&&_0x3511fc[_0x49fa4d(0x290)][0x0]===e['DataStreamTreeTokenType']['PARAGRAPH']?0x1:_0xd99fed;}function I(_0x7490fe,_0x318d3d){const _0x991af=_0x4152cc;return!(ze(_0x7490fe['tables'],_0x318d3d)||Be(_0x7490fe['blockRanges'],_0x318d3d)||Ve(_0x7490fe[_0x991af(0x2d9)],_0x318d3d));}function Ie(_0x1bcbc2,_0x522bdf){const _0x5cc47b=_0x4152cc;let {dataStream:_0x3083e3}=_0x1bcbc2;if(!_0x3083e3||_0x522bdf<0x0||_0x522bdf>=_0x3083e3['length'])return!0x1;let _0x341d6f=Re(_0x3083e3,_0x522bdf)+0x1,_0x236b4e=L(_0x3083e3,_0x522bdf);return _0x341d6f<=_0x236b4e&&_0x3083e3[_0x5cc47b(0x36a)](_0x341d6f,_0x236b4e)[_0x5cc47b(0x29c)]===0x0;}function Le(_0x76efa0,_0x4733ca){let {dataStream:_0x282474}=_0x76efa0;if(!_0x282474||_0x4733ca<0x0||_0x4733ca>=_0x282474['length'])return null;if(Ie(_0x76efa0,_0x4733ca))return{'index':_0x4733ca,'breakOffsets':[]};let _0x5a3062=Re(_0x282474,_0x4733ca)+0x1,_0x417ac3=L(_0x282474,_0x4733ca);return _0x4733ca<=_0x5a3062?{'index':_0x4733ca,'breakOffsets':[_0x4733ca]}:_0x4733ca>=_0x417ac3?{'index':_0x4733ca+0x1,'breakOffsets':[_0x4733ca]}:{'index':_0x4733ca+0x1,'breakOffsets':[_0x4733ca,_0x4733ca+0x1]};}function Re(_0x130322,_0x2a6893){const _0x4f176f=_0x4152cc;let _0x552677=Math[_0x4f176f(0x404)](0x0,Math[_0x4f176f(0x2bf)](_0x2a6893-0x1,_0x130322[_0x4f176f(0x29c)]-0x1));return Math['max'](_0x130322['lastIndexOf'](e[_0x4f176f(0x2b9)][_0x4f176f(0x303)],_0x552677),_0x130322[_0x4f176f(0x354)](e[_0x4f176f(0x2b9)][_0x4f176f(0x253)],_0x552677));}function L(_0x358de4,_0x2f0c08){const _0x3cf290=_0x4152cc;let _0x225281=Math[_0x3cf290(0x404)](0x0,Math[_0x3cf290(0x2bf)](_0x2f0c08,_0x358de4[_0x3cf290(0x29c)]-0x1)),_0x2618d0=_0x358de4[_0x3cf290(0x41b)](e['DataStreamTreeTokenType'][_0x3cf290(0x303)],_0x225281),_0x1239e9=_0x358de4[_0x3cf290(0x41b)](e[_0x3cf290(0x2b9)][_0x3cf290(0x253)],_0x225281);return _0x2618d0===-0x1&&_0x1239e9===-0x1?_0x358de4[_0x3cf290(0x29c)]:_0x2618d0===-0x1?_0x1239e9:_0x1239e9===-0x1?_0x2618d0:Math[_0x3cf290(0x2bf)](_0x2618d0,_0x1239e9);}function ze(_0x3b9265,_0x48485e){const _0x24cc34=_0x4152cc;return!!(_0x3b9265!=null&&_0x3b9265[_0x24cc34(0x1d4)](_0x5d536d=>_0x5d536d[_0x24cc34(0x41d)]<=_0x48485e&&_0x48485e<_0x5d536d[_0x24cc34(0x47f)]));}function Be(_0x1fdfe0,_0x30a2aa){const _0x22dd99=_0x4152cc;return!!(_0x1fdfe0!=null&&_0x1fdfe0[_0x22dd99(0x1d4)](_0x111b0e=>_0x111b0e['startIndex']<=_0x30a2aa&&_0x30a2aa<=_0x111b0e['endIndex']));}function Ve(_0x20f01a,_0x2dfc75){const _0x3d1ae9=_0x4152cc;return!!(_0x20f01a!=null&&_0x20f01a['some'](_0x45eb2c=>_0x45eb2c[_0x3d1ae9(0x41d)]===_0x2dfc75));}let R=class{constructor(_0xbe2ea6,_0x5f18da,_0x25bdf1,_0x42faac){const _0x299e1f=_0x4152cc;this['_instanceService']=_0xbe2ea6,this[_0x299e1f(0x45a)]=_0x5f18da,this[_0x299e1f(0x281)]=_0x25bdf1,this[_0x299e1f(0x414)]=_0x42faac;}[_0x4152cc(0x367)](_0x33ec3b,_0x2f392a,_0x10dadd){const _0x3b876d=_0x4152cc;let _0x9cf67b=(0x0,a[_0x3b876d(0x41e)])(_0x33ec3b);return _0x9cf67b[_0x3b876d(0x29c)]!==0x0&&this['insertChart'](_0x9cf67b,_0x2f392a,_0x10dadd);}[_0x4152cc(0x392)](_0x1be858,_0x66262b,_0x4cdf41={}){const _0x50731f=_0x4152cc;if(_0x1be858[_0x50731f(0x29c)]===0x0)return!0x1;let _0x4eb7ac=(0x0,s[_0x50731f(0x46e)])(_0x66262b,_0x1be858);if(!_0x4eb7ac)return!0x1;let _0x55dccd=this[_0x50731f(0x484)][_0x50731f(0x197)](e[_0x50731f(0x4d3)][_0x50731f(0x1b2)]);if(!_0x55dccd)return!0x1;let _0x16977a=this[_0x50731f(0x3e9)](_0x55dccd,_0x4cdf41[_0x50731f(0x439)]);if(!_0x16977a||!this[_0x50731f(0x30f)](_0x16977a[_0x50731f(0x426)],_0x16977a[_0x50731f(0x209)]))return!0x1;let _0x43f6af=_0x16977a['unitId'],_0x3e976d={'chartType':_0x66262b};_0x4cdf41[_0x50731f(0x246)]&&(_0x3e976d[_0x50731f(0x246)]=_0x4cdf41[_0x50731f(0x246)]),_0x4cdf41[_0x50731f(0x329)]&&(_0x3e976d['dataAggregation']=_0x4cdf41[_0x50731f(0x329)]),_0x4cdf41['style']&&(_0x3e976d[_0x50731f(0x41f)]=_0x4cdf41[_0x50731f(0x41f)]);let _0x41ccfd=this[_0x50731f(0x45a)][_0x50731f(0x311)](a['InsertDocChartCommand']['id'],{'unitId':_0x43f6af,'index':_0x16977a[_0x50731f(0x261)],'segmentId':_0x16977a[_0x50731f(0x209)],'chart':_0x3e976d,'dataSource':{'values':_0x4eb7ac},'width':_0x4cdf41['width'],'height':_0x4cdf41[_0x50731f(0x1ad)],'focus':_0x4cdf41[_0x50731f(0x4a7)]});return _0x41ccfd?{..._0x41ccfd,'unitId':_0x43f6af}:!0x1;}['_resolveInsertPosition'](_0x440216,_0x2f43ad){const _0x467f5a=_0x4152cc;if(_0x2f43ad)return F(_0x440216,_0x2f43ad);let _0x4dc85e=_0x440216[_0x467f5a(0x21c)](),_0x5007d3=null;try{_0x5007d3=this['_docContentInsertService'][_0x467f5a(0x462)](_0x4dc85e);}catch{_0x5007d3=null;}if(_0x5007d3){var _0x52f991;return F(_0x440216,{'startOffset':_0x5007d3[_0x467f5a(0x1dc)],'endOffset':_0x5007d3[_0x467f5a(0x31f)],'collapsed':_0x5007d3[_0x467f5a(0x1dc)]===_0x5007d3['endOffset'],'segmentId':(_0x52f991=_0x5007d3[_0x467f5a(0x209)])==null?'':_0x52f991});}return F(_0x440216,He(this[_0x467f5a(0x281)][_0x467f5a(0x294)]()));}['_prepareStandaloneInsertLine'](_0x23b322,_0x221fbb){const _0x12f8f7=_0x4152cc;for(let _0x2d9eec of _0x23b322)if(!this[_0x12f8f7(0x45a)]['syncExecuteCommand'](u[_0x12f8f7(0x230)]['id'],{'textRange':{'startOffset':_0x2d9eec,'endOffset':_0x2d9eec,'collapsed':!0x0,'segmentId':_0x221fbb}}))return!0x1;return!0x0;}};R=C([S(0x0,e[_0x4152cc(0x4d4)]),S(0x1,e['ICommandService']),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(l['DocSelectionManagerService'])),S(0x3,(0x0,e['Inject'])(l[_0x4152cc(0x4cd)]))],R);function He(_0x29217e){return!_0x29217e||typeof _0x29217e!='object'?null:_0x29217e;}const Ue='doc-chart.insert-panel',We=[_0x4152cc(0x4b6),_0x4152cc(0x30a),_0x4152cc(0x28b),_0x4152cc(0x322)][_0x4152cc(0x17d)]('\x0a');function z(_0x4898ba){const _0x13296f=_0x4152cc;let _0x423c87=(0x0,n[_0x13296f(0x21a)])(R),_0x53c2e3=(0x0,n[_0x13296f(0x21a)])(e[_0x13296f(0x333)]),{defaultChartType:_0x5caee1=s[_0x13296f(0x30e)][_0x13296f(0x49d)],defaultTableText:_0x57d3ce=We,insertOptions:_0x2ab677,onCancel:_0x9cc9fb,onInserted:_0x106592}=_0x4898ba,_0x176645=(0x0,r[_0x13296f(0x3c0)])(()=>(0x0,i[_0x13296f(0x2c2)])(ne[_0x13296f(0x1c8)](_0x445e0d=>({..._0x445e0d,'label':_0x53c2e3['t'](_0x445e0d['label'])}))),[_0x53c2e3]),[_0x4f95ad,_0x3cf3ae]=(0x0,r[_0x13296f(0x4c6)])(_0x5caee1),_0x5d8b83=_0x39a078=>(0x0,i['createChartInlineStarterData'])(_0x39a078,_0x3e604d=>_0x53c2e3['t'](_0x13296f(0x2b5)+_0x3e604d)),[_0x4ec844,_0xf402ef]=(0x0,r[_0x13296f(0x4c6)])(()=>{const _0x497687=_0x13296f;var _0x52eadd;return _0x4898ba['defaultTableText']===void 0x0?(_0x52eadd=_0x5d8b83(_0x5caee1))==null?(0x0,a[_0x497687(0x41e)])(_0x57d3ce):_0x52eadd:(0x0,a[_0x497687(0x41e)])(_0x57d3ce);}),[_0x16f504,_0x4baf26]=(0x0,r[_0x13296f(0x4c6)])(null);return(0x0,o[_0x13296f(0x3d7)])('div',{'className':_0x13296f(0x373),'children':[(0x0,o['jsxs'])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,o[_0x13296f(0x450)])(_0x13296f(0x3d1),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x53c2e3['t'](_0x13296f(0x366))}),(0x0,o['jsx'])(t[_0x13296f(0x2d2)],{'className':_0x13296f(0x3e6),'value':String(_0x4f95ad),'options':_0x176645,'onChange':_0x216f37=>{let _0x179cc7=Number(_0x216f37);_0x3cf3ae(_0x179cc7);let _0x364806=_0x5d8b83(_0x179cc7);_0x364806&&_0xf402ef(_0x364806);}})]}),(0x0,o[_0x13296f(0x3d7)])(_0x13296f(0x3d1),{'className':_0x13296f(0x37e),'children':[(0x0,o['jsx'])(_0x13296f(0x3d1),{'className':_0x13296f(0x214),'children':_0x53c2e3['t'](_0x13296f(0x1d6))}),(0x0,o['jsx'])(ee,{'values':_0x4ec844,'minColumns':(0x0,i[_0x13296f(0x2e8)])(_0x4f95ad),'onChange':_0xf402ef})]}),_0x16f504&&(0x0,o['jsx'])(_0x13296f(0x3d1),{'className':'univer-text-xs\x20univer-text-red-600','children':_0x16f504}),(0x0,o[_0x13296f(0x3d7)])('div',{'className':_0x13296f(0x1a1),'children':[_0x9cc9fb&&(0x0,o[_0x13296f(0x450)])(t[_0x13296f(0x387)],{'type':'button','variant':_0x13296f(0x349),'onClick':_0x9cc9fb,'children':_0x53c2e3['t'](_0x13296f(0x2e6))}),(0x0,o[_0x13296f(0x450)])(t[_0x13296f(0x387)],{'type':'button','variant':'primary','onClick':()=>{const _0x2b9969=_0x13296f;let _0x24922d=(0x0,i[_0x2b9969(0x1ff)])(_0x4ec844);if(_0x24922d[_0x2b9969(0x29c)]===0x0){_0x4baf26(_0x53c2e3['t']('docs-chart-ui.tableDataEmpty'));return;}if(!(0x0,s[_0x2b9969(0x46e)])(_0x4f95ad,_0x24922d)){_0x4baf26(_0x53c2e3['t']('docs-chart-ui.candlestickColumnsError'));return;}let _0x3a6ac5=_0x423c87[_0x2b9969(0x392)](_0x24922d,_0x4f95ad,_0x2ab677);if(!_0x3a6ac5){_0x4baf26(_0x53c2e3['t']('docs-chart-ui.insertChartFailed'));return;}_0x4baf26(null),_0x106592==null||_0x106592(_0x3a6ac5);},'children':_0x53c2e3['t'](_0x13296f(0x1b8))})]})]});}const Ge='docs-chart-ui.config',B={},Ke='__docsChartResource';let V=class extends e[_0x4152cc(0x3fd)]{constructor(_0x47b18e,_0x52d42e,_0x84555d){const _0x4072bd=_0x4152cc;super(),this[_0x4072bd(0x4d9)]=_0x47b18e,this[_0x4072bd(0x1ba)]=_0x52d42e,this[_0x4072bd(0x2ab)]=_0x84555d,this[_0x4072bd(0x1e9)]();}[_0x4152cc(0x1e9)](){const _0x516b88=_0x4152cc;this[_0x516b88(0x3d3)](this[_0x516b88(0x4d9)][_0x516b88(0x3ce)]({'onCopyDocData':(_0x587e4f,_0x2f6aa7)=>this['_appendChartResources'](_0x587e4f,_0x2f6aa7[_0x516b88(0x492)])})),this[_0x516b88(0x3d3)](this['_pasteAdapterService'][_0x516b88(0x1bc)]({'getPasteMutationInfos':_0x4ae2fb=>this['_getPasteMutationInfos'](_0x4ae2fb)}));}['_appendChartResources'](_0x293e88,_0x477ea3){const _0x55cd3e=_0x4152cc;var _0x113356,_0x989e99;let _0x54e952=(_0x113356=_0x477ea3[0x0])==null?void 0x0:_0x113356['id'];if(!_0x54e952)return _0x293e88;let _0x3d9ce8=Object[_0x55cd3e(0x1ab)]((_0x989e99=_0x293e88[_0x55cd3e(0x463)])==null?{}:_0x989e99)[_0x55cd3e(0x3b0)](_0xbf33a8=>this[_0x55cd3e(0x1d0)](_0xbf33a8));if(_0x3d9ce8[_0x55cd3e(0x29c)]===0x0)return _0x293e88;let _0x299307={'version':0x1,'dataSources':{},'charts':{}};return _0x3d9ce8[_0x55cd3e(0x2c1)](_0x2ee69e=>{const _0x196aba=_0x55cd3e;let _0x155da1=this[_0x196aba(0x2ab)]['getChart'](_0x54e952,_0x2ee69e[_0x196aba(0x4ca)]);if(!_0x155da1)return;let _0x4cfa42=this[_0x196aba(0x2ab)][_0x196aba(0x2af)](_0x54e952,_0x155da1[_0x196aba(0x204)]);_0x4cfa42&&(_0x299307[_0x196aba(0x46f)][_0x155da1['id']]=e['Tools']['deepClone'](_0x155da1),_0x299307['dataSources'][_0x4cfa42['id']]=e[_0x196aba(0x2c0)]['deepClone'](_0x4cfa42));}),Object[_0x55cd3e(0x48f)](_0x299307['charts'])[_0x55cd3e(0x29c)]===0x0?_0x293e88:{..._0x293e88,[Ke]:_0x299307};}[_0x4152cc(0x494)](_0x31ec24){const _0xc66b54=_0x4152cc;let _0x2f810d=_0x31ec24[_0xc66b54(0x25a)][Ke];if(!_0x2f810d)return{'redoMutations':[],'undoMutations':[]};let _0xe0bf73=new Map(),_0x942589=[],_0x2e2c4f=[],_0x22dbfa=[],_0x5b8450=[];return _0x31ec24[_0xc66b54(0x29d)][_0xc66b54(0x2c1)](_0x10ae60=>{const _0x3a3c4c=_0xc66b54;if(!this[_0x3a3c4c(0x1d0)](_0x10ae60[_0x3a3c4c(0x4de)])||!this[_0x3a3c4c(0x1d0)](_0x10ae60[_0x3a3c4c(0x22e)]))return;let _0x34cf3=_0x2f810d[_0x3a3c4c(0x46f)][_0x10ae60[_0x3a3c4c(0x4de)][_0x3a3c4c(0x4ca)]];if(!_0x34cf3)return;let _0x244ddb=_0x2f810d['dataSources'][_0x34cf3[_0x3a3c4c(0x204)]];if(!_0x244ddb)return;let _0x8c5c66=this['_getOrCreatePastedDataSourceId'](_0x31ec24[_0x3a3c4c(0x342)],_0x244ddb,_0xe0bf73,_0x942589,_0x2e2c4f),_0x4d773f=(0x0,e[_0x3a3c4c(0x44f)])(),_0x1890ae={...e[_0x3a3c4c(0x2c0)][_0x3a3c4c(0x25c)](_0x34cf3),'id':_0x4d773f,'dataSourceId':_0x8c5c66};_0x10ae60[_0x3a3c4c(0x22e)][_0x3a3c4c(0x4ca)]=_0x4d773f,_0x22dbfa[_0x3a3c4c(0x201)]({'id':a[_0x3a3c4c(0x223)]['id'],'params':{'unitId':_0x31ec24[_0x3a3c4c(0x342)],'chart':_0x1890ae}}),_0x5b8450[_0x3a3c4c(0x201)]({'id':a[_0x3a3c4c(0x321)]['id'],'params':{'unitId':_0x31ec24['unitId'],'chartId':_0x4d773f}});}),{'redoMutations':[..._0x942589,..._0x22dbfa],'undoMutations':[..._0x5b8450,..._0x2e2c4f]};}[_0x4152cc(0x30b)](_0xe6ebed,_0x21548b,_0x3db307,_0x4369c2,_0x52cd86){const _0x428da0=_0x4152cc;let _0x26699e=_0x3db307['get'](_0x21548b['id']);if(_0x26699e)return _0x26699e;let _0x459f59=(0x0,e[_0x428da0(0x44f)])();return _0x3db307['set'](_0x21548b['id'],_0x459f59),_0x4369c2[_0x428da0(0x201)]({'id':a[_0x428da0(0x248)]['id'],'params':{'unitId':_0xe6ebed,'dataSource':{...e['Tools'][_0x428da0(0x25c)](_0x21548b),'id':_0x459f59}}}),_0x52cd86[_0x428da0(0x201)]({'id':a[_0x428da0(0x1cf)]['id'],'params':{'unitId':_0xe6ebed,'dataSourceId':_0x459f59}}),_0x459f59;}[_0x4152cc(0x1d0)](_0x44ae07){const _0x3a48b4=_0x4152cc;let _0x4d08f8=_0x44ae07;return(_0x4d08f8==null?void 0x0:_0x4d08f8[_0x3a48b4(0x2f3)])===e[_0x3a48b4(0x377)]['DRAWING_CHART']&&typeof _0x4d08f8[_0x3a48b4(0x4ca)]==_0x3a48b4(0x1cc);}};V=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(u[_0x4152cc(0x42b)])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(u[_0x4152cc(0x212)])),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x1b0)]))],V);let H=class extends e[_0x4152cc(0x3fd)]{constructor(_0x348bbc,_0x77cc05,_0x2cac9d,_0x34e5c3){const _0x39685b=_0x4152cc;super(),this['_drawingAdapterService']=_0x348bbc,this['_floatingToolbarAdapterService']=_0x77cc05,this[_0x39685b(0x2ab)]=_0x2cac9d,this[_0x39685b(0x4df)]=_0x34e5c3,this['_initAdapter']();}[_0x4152cc(0x3f4)](){const _0x2f179c=_0x4152cc;this['disposeWithMe'](this[_0x2f179c(0x2cd)][_0x2f179c(0x1bc)]({'getEditDrawingCommandInfo':({unitId:_0x1277eb,drawing:_0x28985e})=>{const _0x552b86=_0x2f179c;let _0x2616e6=qe(_0x28985e);return _0x2616e6?{'label':_0x552b86(0x2d7),'commandId':v['id'],'commandParams':{'unitId':_0x1277eb,'chartId':_0x2616e6['chartId'],'drawingId':_0x2616e6[_0x552b86(0x222)]}}:null;}})),this[_0x2f179c(0x3d3)](this['_floatingToolbarAdapterService'][_0x2f179c(0x1bc)]({'getItems':({unitId:_0x21e096,subUnitId:_0x4434f0,drawing:_0x17ff8f})=>{const _0x282745=_0x2f179c;var _0x365645;let _0x36e7ca=qe(_0x17ff8f);if(!_0x36e7ca)return null;let _0x21659f=this[_0x282745(0x2ab)]['getChart'](_0x21e096,_0x36e7ca[_0x282745(0x4ca)]),_0x106c49=(_0x365645=_0x21659f==null?void 0x0:_0x21659f[_0x282745(0x310)])==null?s['ChartTypeBits'][_0x282745(0x49d)]:_0x365645;return[{'type':_0x282745(0x26e),'label':'docs-chart-ui.chartType','index':0x0,'commandId':a[_0x282745(0x21d)]['id'],'commandParamsFactory':_0x192f76=>({'unitId':_0x21e096,'chartId':_0x36e7ca['chartId'],'chartType':Number(_0x192f76)}),'disable':!_0x21659f,'value':String(_0x106c49),'options':(0x0,i[_0x282745(0x2c2)])(re[_0x282745(0x1c8)](_0x37208c=>({..._0x37208c,'label':this['_localeService']['t'](_0x37208c[_0x282745(0x2f0)])})))},{'type':_0x282745(0x23a),'label':_0x282745(0x2d7),'index':0x1,'commandId':v['id'],'commandParams':{'unitId':_0x21e096,'chartId':_0x36e7ca['chartId'],'drawingId':_0x36e7ca[_0x282745(0x222)]},'disable':!0x1,'hideOnClick':!0x0,'icon':_0x282745(0x42f)},{'type':'button','label':_0x282745(0x3c3),'index':0x2,'commandId':d[_0x282745(0x472)]['id'],'commandParams':{'unitId':_0x21e096,'drawings':[{'unitId':_0x21e096,'subUnitId':_0x4434f0,'drawingId':_0x36e7ca[_0x282745(0x222)]}]},'disable':!0x1,'icon':'DrawingDeleteIcon'}];}}));}};H=C([S(0x0,d[_0x4152cc(0x412)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(f[_0x4152cc(0x259)])),S(0x2,(0x0,e['Inject'])(a['DocChartResourceService'])),S(0x3,(0x0,e[_0x4152cc(0x2d6)])(e[_0x4152cc(0x333)]))],H);function qe(_0x2b7622){const _0x1720a2=_0x4152cc;let _0x5d034e=_0x2b7622;return(_0x5d034e==null?void 0x0:_0x5d034e[_0x1720a2(0x2f3)])===e['DrawingTypeEnum'][_0x1720a2(0x18d)]&&typeof _0x5d034e[_0x1720a2(0x4ca)]==_0x1720a2(0x1cc)?_0x5d034e:null;}const Je=(0x0,e['createIdentifier'])(_0x4152cc(0x498));var Ye=class{constructor(_0x2af029){const _0x22638a=_0x4152cc;this[_0x22638a(0x21b)]=_0x2af029;}async[_0x4152cc(0x43e)](_0x2db6b4,_0x44cf4b){const _0x31a313=_0x4152cc;if(typeof document>'u')throw TypeError(_0x31a313(0x34d));let _0x31d382=new A(_0x44cf4b[_0x31a313(0x4ca)],{'width':_0x2db6b4[_0x31a313(0x447)],'height':_0x2db6b4[_0x31a313(0x1ad)]}),_0x41d266=this[_0x31a313(0x21b)]['createChartInstance'](s['ChartHostRenderMode'][_0x31a313(0x2e0)]);try{let {chartConfig:_0x350405,chartStyle:_0xc0d6e0}=this[_0x31a313(0x21b)]['createRenderInput'](_0x44cf4b);_0x41d266['bind'](_0x31d382),await _0x41d266['render']({'chartId':_0x44cf4b[_0x31a313(0x4ca)],'config':_0x350405,'style':_0xc0d6e0});let _0x3ce580=_0x31d382[_0x31a313(0x4ce)]();if(!_0x3ce580)throw Error(_0x31a313(0x40d)+_0x44cf4b[_0x31a313(0x342)]+'/'+_0x44cf4b[_0x31a313(0x4ca)]);return _0x3ce580;}finally{_0x41d266[_0x31a313(0x397)](),_0x31d382[_0x31a313(0x397)]();}}};let U=class extends e['Disposable']{constructor(_0x4ce590,_0x5cf5ae,_0x3610fc,_0x4c2714){const _0x56fd00=_0x4152cc;super(),this['_localeService']=_0x4ce590,this[_0x56fd00(0x4c4)]=_0x5cf5ae,k(this,'snapshotUpdated$',new p[(_0x56fd00(0x467))]()),k(this,_0x56fd00(0x475),new p[(_0x56fd00(0x467))]()),k(this,_0x56fd00(0x422),new Map()),k(this,_0x56fd00(0x2d1),[]),k(this,'_configWaitKeys',new Map()),k(this,_0x56fd00(0x258),!0x1),k(this,_0x56fd00(0x26a),null),k(this,'_renderer',void 0x0),this[_0x56fd00(0x3f5)]=_0x4c2714==null?new Ye(_0x3610fc):_0x4c2714,this[_0x56fd00(0x3d3)](this[_0x56fd00(0x4df)]['direction$']['pipe']((0x0,p['skip'])(0x1))[_0x56fd00(0x3a0)](()=>{const _0x560d25=_0x56fd00;this[_0x560d25(0x451)]();}));}[_0x4152cc(0x490)](_0x54cf1){const _0x153da0=_0x4152cc;let _0x3cd31a=this[_0x153da0(0x18a)](_0x54cf1),_0x5a0c9a=this['_cache'][_0x153da0(0x4bd)](_0x3cd31a);if(_0x5a0c9a&&_0x5a0c9a[_0x153da0(0x3fe)]!=='error')return _0x5a0c9a;let _0x4ac69d={'key':_0x3cd31a,'status':_0x153da0(0x224)};return this['_cache']['set'](_0x3cd31a,_0x4ac69d),this['_queue']['push'](_0x54cf1),this[_0x153da0(0x4dd)](),_0x4ac69d;}[_0x4152cc(0x3b1)](_0x13b790){const _0x454559=_0x4152cc;return this[_0x454559(0x422)][_0x454559(0x4bd)](this[_0x454559(0x18a)](_0x13b790));}[_0x4152cc(0x2a5)](_0x30ca65,_0x5e8187,_0x569362){const _0x120c96=_0x4152cc;let _0x4462e2=_0x30ca65+'::'+_0x5e8187+'::';if(Array[_0x120c96(0x3d4)](this[_0x120c96(0x422)][_0x120c96(0x48f)]())[_0x120c96(0x2c1)](_0x303ae6=>{const _0x11ab75=_0x120c96;_0x303ae6[_0x11ab75(0x369)](_0x4462e2)&&this[_0x11ab75(0x422)][_0x11ab75(0x3fa)](_0x303ae6);}),_0x569362!=null&&_0x569362[_0x120c96(0x395)]){let _0x4d0db2=this[_0x120c96(0x2ff)](_0x30ca65,_0x5e8187);this[_0x120c96(0x4af)]['set'](this['_getChartKey'](_0x30ca65,_0x5e8187),_0x4d0db2==null?void 0x0:_0x4d0db2[_0x120c96(0x4c9)][_0x120c96(0x3af)]);}this[_0x120c96(0x475)][_0x120c96(0x18c)]({'unitId':_0x30ca65,'chartId':_0x5e8187});}['getCacheKey'](_0xe9bd0){const _0x1b4d21=_0x4152cc;var _0x319491,_0xfe91b6;return[_0xe9bd0['unitId'],_0xe9bd0[_0x1b4d21(0x4ca)],Math[_0x1b4d21(0x22a)](_0xe9bd0[_0x1b4d21(0x447)]),Math[_0x1b4d21(0x22a)](_0xe9bd0[_0x1b4d21(0x1ad)]),(_0x319491=_0xe9bd0['dpr'])==null?0x1:_0x319491,this[_0x1b4d21(0x4df)][_0x1b4d21(0x352)](),(_0xfe91b6=_0xe9bd0[_0x1b4d21(0x381)])==null?_0x1b4d21(0x185):_0xfe91b6][_0x1b4d21(0x17d)]('::');}async[_0x4152cc(0x49a)](){const _0x1163d9=_0x4152cc;for(;this[_0x1163d9(0x2d1)][_0x1163d9(0x29c)]>0x0||this['_rendering']||this[_0x1163d9(0x26a)];){var _0x3385d6;await((_0x3385d6=this[_0x1163d9(0x26a)])==null?Promise[_0x1163d9(0x46c)]():_0x3385d6),await Promise['resolve']();}}[_0x4152cc(0x397)](){const _0x2a38ab=_0x4152cc;this['_cache'][_0x2a38ab(0x3e1)](),this[_0x2a38ab(0x2d1)][_0x2a38ab(0x29c)]=0x0,this[_0x2a38ab(0x4af)][_0x2a38ab(0x3e1)](),this[_0x2a38ab(0x44d)][_0x2a38ab(0x278)](),this['chartInvalidated$'][_0x2a38ab(0x278)](),super[_0x2a38ab(0x397)]();}[_0x4152cc(0x4dd)](){const _0x5b10f3=_0x4152cc;this['_rendering']||(this[_0x5b10f3(0x26a)]=this[_0x5b10f3(0x2df)]()['finally'](()=>{const _0x23c572=_0x5b10f3;this[_0x23c572(0x26a)]=null;}));}['_invalidateSnapshotsForDirectionChange'](){const _0x20dd60=_0x4152cc;let _0x3c6ff2=new Map();Array[_0x20dd60(0x3d4)](this[_0x20dd60(0x422)][_0x20dd60(0x48f)]())[_0x20dd60(0x2c1)](_0x196db1=>{const _0x5d8679=_0x20dd60;let [_0x18953e,_0x2b60a0]=_0x196db1[_0x5d8679(0x180)]('::');_0x18953e&&_0x2b60a0&&_0x3c6ff2['set'](_0x18953e+'::'+_0x2b60a0,{'unitId':_0x18953e,'chartId':_0x2b60a0});}),this[_0x20dd60(0x422)][_0x20dd60(0x3e1)](),_0x3c6ff2['forEach'](_0x5b1be7=>{const _0x51062e=_0x20dd60;this[_0x51062e(0x475)][_0x51062e(0x18c)](_0x5b1be7);});}async['_runQueue'](){const _0x42c1a3=_0x4152cc;if(!this['_rendering']){this['_rendering']=!0x0;try{for(;this['_queue']['length']>0x0;){let _0x3933d7=this[_0x42c1a3(0x2d1)][_0x42c1a3(0x24b)]();await this[_0x42c1a3(0x3f7)](_0x3933d7);}}finally{this[_0x42c1a3(0x258)]=!0x1;}}}async[_0x4152cc(0x3f7)](_0xae58e6){const _0x22d056=_0x4152cc;let _0x45080b=this[_0x22d056(0x18a)](_0xae58e6),_0x23168e=this['_cache'][_0x22d056(0x4bd)](_0x45080b);if(!_0x23168e||_0x23168e['status']!==_0x22d056(0x224))return;let _0x3055ec=this[_0x22d056(0x4c4)][_0x22d056(0x46a)](_0xae58e6['unitId'],_0xae58e6['chartId']);if(!_0x3055ec){_0x23168e[_0x22d056(0x3fe)]=_0x22d056(0x29e),_0x23168e[_0x22d056(0x29e)]=Error(_0x22d056(0x334)+_0xae58e6[_0x22d056(0x342)]+'/'+_0xae58e6['chartId']),this[_0x22d056(0x44d)][_0x22d056(0x18c)](_0x23168e);return;}try{if(await this[_0x22d056(0x45c)](_0x3055ec),this[_0x22d056(0x422)][_0x22d056(0x4bd)](_0x45080b)!==_0x23168e||_0x23168e[_0x22d056(0x3fe)]!==_0x22d056(0x224))return;_0x23168e['dataUrl']=await this[_0x22d056(0x3f5)]['render'](_0xae58e6,_0x3055ec),_0x23168e[_0x22d056(0x3fe)]=_0x22d056(0x18e);}catch(_0x25613b){_0x23168e[_0x22d056(0x3fe)]=_0x22d056(0x29e),_0x23168e[_0x22d056(0x29e)]=_0x25613b;}this[_0x22d056(0x44d)][_0x22d056(0x18c)](_0x23168e);}async[_0x4152cc(0x45c)](_0x4b4417){const _0x2c0e12=_0x4152cc;let _0x5ab35f=_0x4b4417['model'];if(!_0x5ab35f||!_0x5ab35f[_0x2c0e12(0x23c)])return;let _0x1c636d=this[_0x2c0e12(0x4e0)](_0x4b4417['unitId'],_0x4b4417[_0x2c0e12(0x4ca)]);if(this[_0x2c0e12(0x4af)][_0x2c0e12(0x364)](_0x1c636d)){let _0x4bc9f9=this['_configWaitKeys']['get'](_0x1c636d);if(_0x5ab35f[_0x2c0e12(0x3af)]&&_0x5ab35f[_0x2c0e12(0x3af)]!==_0x4bc9f9){this['_configWaitKeys'][_0x2c0e12(0x3fa)](_0x1c636d);return;}try{await(0x0,p[_0x2c0e12(0x486)])(_0x5ab35f[_0x2c0e12(0x23c)][_0x2c0e12(0x378)]((0x0,p['filter'])(_0x5e64ee=>_0x5e64ee!=null&&_0x5e64ee!==_0x4bc9f9),(0x0,p[_0x2c0e12(0x476)])(0x1),(0x0,p['timeout'])({'first':0x3e8})));}catch{}finally{this[_0x2c0e12(0x4af)][_0x2c0e12(0x3fa)](_0x1c636d);}return;}_0x5ab35f[_0x2c0e12(0x3af)]||await(0x0,p[_0x2c0e12(0x486)])(_0x5ab35f[_0x2c0e12(0x23c)][_0x2c0e12(0x378)]((0x0,p[_0x2c0e12(0x3b0)])(_0x373bb5=>_0x373bb5!=null),(0x0,p['take'])(0x1),(0x0,p['timeout'])({'first':0x3e8})));}[_0x4152cc(0x4e0)](_0x4d9342,_0x4b6d62){return _0x4d9342+'::'+_0x4b6d62;}[_0x4152cc(0x2ff)](_0x93f6c7,_0x334bef){var _0x1faaa4;return(_0x1faaa4=this['_modelService']['getChartModel'](_0x93f6c7,_0x334bef))==null?this['_modelService']['ensureChartModel'](_0x93f6c7,_0x334bef):_0x1faaa4;}};U=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(e['LocaleService'])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x250)])),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(M)),S(0x3,(0x0,e['Optional'])(Je))],U);let W=class extends e[_0x4152cc(0x3fd)]{constructor(_0x5ded23,_0x186220,_0x3e416f,_0x2f00bf){const _0x5c896b=_0x4152cc;super(),this[_0x5c896b(0x45a)]=_0x5ded23,this[_0x5c896b(0x3be)]=_0x186220,this[_0x5c896b(0x2ab)]=_0x3e416f,this[_0x5c896b(0x4c4)]=_0x2f00bf,this[_0x5c896b(0x297)]();}[_0x4152cc(0x297)](){const _0x41947e=_0x4152cc;this['disposeWithMe'](this[_0x41947e(0x45a)]['onCommandExecuted'](_0x365f50=>{const _0x250959=_0x41947e;if(_0x365f50['id']===a[_0x250959(0x223)]['id']){var _0x403630;let _0x358477=_0x365f50[_0x250959(0x375)];_0x358477!=null&&_0x358477[_0x250959(0x342)]&&(_0x403630=_0x358477[_0x250959(0x2ea)])!=null&&_0x403630['id']&&(this[_0x250959(0x3c4)](_0x358477)?this[_0x250959(0x3be)][_0x250959(0x2a5)](_0x358477[_0x250959(0x342)],_0x358477[_0x250959(0x2ea)]['id'],{'waitForConfig':!0x0}):this[_0x250959(0x3be)][_0x250959(0x2a5)](_0x358477[_0x250959(0x342)],_0x358477[_0x250959(0x2ea)]['id']));return;}if(_0x365f50['id']===a[_0x250959(0x248)]['id']){var _0x1a5282;let _0xa2b117=_0x365f50[_0x250959(0x375)];if(!(_0xa2b117!=null&&_0xa2b117[_0x250959(0x342)])||!((_0x1a5282=_0xa2b117[_0x250959(0x443)])!=null&&_0x1a5282['id']))return;this[_0x250959(0x2ab)][_0x250959(0x1f4)](_0xa2b117['unitId'],_0xa2b117[_0x250959(0x443)]['id'])[_0x250959(0x2c1)](_0x5e6157=>this['_snapshotService']['invalidateChart'](_0xa2b117[_0x250959(0x342)],_0x5e6157,{'waitForConfig':!0x0}));}}));}[_0x4152cc(0x3c4)](_0x349ef4){const _0x4bb3d8=_0x4152cc;var _0x23486d;let _0x26ca19=(_0x23486d=this['_modelService'][_0x4bb3d8(0x1e8)](_0x349ef4[_0x4bb3d8(0x342)],_0x349ef4[_0x4bb3d8(0x2ea)]['id']))==null||(_0x23486d=_0x23486d[_0x4bb3d8(0x4c9)][_0x4bb3d8(0x3af)])==null?void 0x0:_0x23486d[_0x4bb3d8(0x27a)];return _0x26ca19!=null&&_0x26ca19!==_0x349ef4[_0x4bb3d8(0x2ea)][_0x4bb3d8(0x310)];}};W=C([S(0x0,e[_0x4152cc(0x3cd)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(U)),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(a[_0x4152cc(0x1b0)])),S(0x3,(0x0,e[_0x4152cc(0x2d6)])(a['DocChartModelService']))],W);const G=_['id'],Xe=G+_0x4152cc(0x31e),Ze=[{'label':_0x4152cc(0x3d5),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3ef)],'icon':'LineChartIcon'},{'label':_0x4152cc(0x400),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x49d)],'icon':_0x4152cc(0x4be)},{'label':_0x4152cc(0x231),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e2)],'icon':'PieChartIcon'},{'label':'docs-chart-ui.chartTypes.bar','value':s[_0x4152cc(0x30e)][_0x4152cc(0x370)],'icon':_0x4152cc(0x313)},{'label':_0x4152cc(0x293),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x4a9)],'icon':'BarChartIcon'},{'label':'docs-chart-ui.chartTypes.barPercentStacked','value':s[_0x4152cc(0x30e)][_0x4152cc(0x218)],'icon':_0x4152cc(0x313)},{'label':_0x4152cc(0x42a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x17a)],'icon':_0x4152cc(0x2c7)},{'label':_0x4152cc(0x200),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x286)],'icon':'AreaChartIcon'},{'label':_0x4152cc(0x22f),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x195)],'icon':_0x4152cc(0x2c7)},{'label':_0x4152cc(0x37a),'value':s['ChartTypeBits']['Radar'],'icon':'RadarChartIcon'},{'label':_0x4152cc(0x26d),'value':s['ChartTypeBits'][_0x4152cc(0x41a)],'icon':_0x4152cc(0x1fd)},{'label':_0x4152cc(0x4c0),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x383)],'icon':_0x4152cc(0x1bf)},{'label':'docs-chart-ui.chartTypes.wordCloud','value':s[_0x4152cc(0x30e)][_0x4152cc(0x1e3)],'icon':_0x4152cc(0x283)},{'label':_0x4152cc(0x4ba),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x491)],'icon':'FunnelIcon'},{'label':_0x4152cc(0x343),'value':s[_0x4152cc(0x30e)]['Bubble'],'icon':_0x4152cc(0x416)},{'label':_0x4152cc(0x4aa),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x190)],'icon':'RelationshipIcon'},{'label':_0x4152cc(0x31c),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x43c)],'icon':_0x4152cc(0x386)},{'label':_0x4152cc(0x424),'value':s['ChartTypeBits'][_0x4152cc(0x1ec)],'icon':_0x4152cc(0x1fd)},{'label':'docs-chart-ui.chartTypes.sankey','value':s[_0x4152cc(0x30e)][_0x4152cc(0x3e4)],'icon':_0x4152cc(0x44e)},{'label':_0x4152cc(0x39e),'value':s[_0x4152cc(0x30e)]['Heatmap'],'icon':_0x4152cc(0x444)},{'label':_0x4152cc(0x19a),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x3d8)],'icon':_0x4152cc(0x26f)},{'label':_0x4152cc(0x36e),'value':s[_0x4152cc(0x30e)]['Candlestick'],'icon':_0x4152cc(0x347)},{'label':_0x4152cc(0x357),'value':s[_0x4152cc(0x30e)][_0x4152cc(0x27e)],'icon':_0x4152cc(0x31b)},{'label':_0x4152cc(0x1c0),'value':s['ChartTypeBits'][_0x4152cc(0x1f6)],'icon':_0x4152cc(0x3b2)}];function _0x56f3(){const _0x45830a=['PARAGRAPH','Solid','IChartRenderModelManagerService','Fill\x20area','createChartInstance','toStringTag','indicatorLineType','A\x0912','_getOrCreatePastedDataSourceId','title','DOCS_CHART_UI_PLUGIN_CONFIG_KEY','ChartTypeBits','_prepareStandaloneInsertLine','chartType','syncExecuteCommand','_renderCharts','BarChartIcon','Point\x20shape','_initMenus','hide','_activate','resolveChartRuntimeStyle','doc-chart.editor-dialog','canva','HistogramChartIcon','docs-chart-ui.chartTypes.waterfall','ChartNumberField','.below','endOffset','block','RemoveDocChartSnapshotMutation','C\x099','Auto','border-box','add','useRef','shared','WaterfallStackTypeEnum','dataAggregation','_drawingManagerService','backgroundColor','univer-margin-left-[1.5px]\x20univer-font-weight-500\x20univer-text-xs','_handleFocus','clientHeight','legend','Radar','includes','Candlestick','LocaleService','Missing\x20runtime\x20document\x20chart\x20model:\x20','docs-chart-ui.showLabels','area','AreaLineStyle','xAxisTitle','combineLatest','_dialogService','Heatmap','defineProperty','Opacity','DOC_CHART_DATA_EDITOR_COMPONENT','_componentManager','gradientFill','chartBitsUtils','unitId','docs-chart-ui.chartTypes.bubble','DuplicateDocChartDataSourceCommand','pluginName','doc-chart.render-model','CandlestickChartIcon','_configService','default','Hide','shouldComposeChartHostFrame','small','Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','Gap','Optional','updateDataAggregation','DeleteEmptyIcon','getDirection','DocImageChartHost','lastIndexOf','executeCommand','_createImageShape','docs-chart-ui.chartTypes.histogram','Arrangement','docs-chart-ui.candlestick.open','radius','Show\x20ticks','getBoundingClientRect','Value','decorate','dblclick','Injector','doc-chart-host','setActiveDomReady','Piecewise','has','indicatorLine','docs-chart-ui.chartType','insertChartFromText','IDialogService','startsWith','slice','onStarting','_renderEntry','DOC_CONTENT_INSERT_MENU_ID','docs-chart-ui.chartTypes.candlestick','_renderModelManager','Bar','_registerDialogOperations','doughnutHole','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','ChartEditBlockTitle','params','IDrawingManagerService','DrawingTypeEnum','pipe','minColumns','docs-chart-ui.chartTypes.radar','markReady','RadarChartIcon','_staticRenderController','univer-flex\x20univer-flex-col\x20univer-gap-2','min(560px,\x20calc(100vh\x20-\x20180px))','docs-chart-ui.series','mode','SelectModeEnum','Scatter','createElement','docs-chart-ui.chartAndAxisTitles','WaterfallChartIcon','Button','className','normalizeInlineTableValues','point','_getContentRect','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_activeLayer','stylizeSpec','engine','8807827ICgPFH','sharingCount','insertChart','ChartTextField','updateDataFromText','waitForConfig','funnel','dispose','Vertical\x20width','OPERATION','_getChartDrawing','doc-chart.dialog.data-editor','DocChartInsertRibbonMenuItemFactory','theme','docs-chart-ui.chartTypes.heatmap','visualMapType','subscribe','updateData','getChartHostFrameContentRect','remove','LegendPositionEnum','mountChart','resolveDefaultChartHostFrameStyle','4075470PkMPWB','Accordion','mark','-data-source','register','transformerConfig','getDrawingShapeKeyByDrawingSearch','_forEachChartDrawing','config','filter','getSnapshot','TreemapChartIcon','Percentage','border','hit','docs-chart-ui.showDataLabels','Right','transformByState','getRenderModel','function','key','Stack','Title\x20font\x20size','_snapshotService','borderColor','useMemo','docs-chart-ui.close','univer-flex\x20univer-justify-end\x20univer-px-1\x20univer-pb-4\x20univer-pt-4','docs-chart-ui.delete','_shouldWaitForChartConfig','px\x20solid\x20','addFloatDom','ChartAttributeBits','_init','SeriesName','None','_requestSnapshotsForUnit','_removeRenderedCharts','ICommandService','addClipboardHook','applyHostStyle','borderStyle','div','#ffffff','disposeWithMe','from','docs-chart-ui.chartTypes.line','setActiveChartById','jsxs','Boxplot','waterfall','chartContext','catch','DocChartInsertService','docs-chart-ui.chartTypes.sankey','univer-mt-2','docs-chart-ui.active-chart','UniverLicensePlugin','clear','contains','dashType','Sankey','RibbonInsertGroup','univer-w-full\x20!univer-min-w-0','minRows','value','_resolveInsertPosition','getCurrentRenderModel','Outside','DocChartInsertBelowMenuItemFactory','textSelection$','transform','Line','Point\x20size','setStyle','stackType','Horizontal\x20width','_initAdapter','_renderer','duplicate','_renderOne','_syncRenderedChartVisibility','_setElementSize','delete','MEDIA','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-pb-3','Disposable','status','Dashed','docs-chart-ui.chartTypes.column','wrap','_getActiveRenderRect','Force','max','visible','docs-chart-ui.border','StackType','Single','getRect','getCurrentTypeOfUnit$','useSubtotal','DocChartDataEditService','Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20','_registerComponents','data','docs-chart-ui.chartStyle','_applyHostStyle','IDocDrawingAdapterService','color','_docContentInsertService','RelationChartLayoutEnum','BubbleIcon','_registerIcons','Close','4135152lxTjqy','Combination','indexOf','DocsChartUIMenuSchema','startIndex','parseInlineTable','style','ChartHostRenderMode','route','_cache','verticalAxis','docs-chart-ui.chartTypes.pareto','applyInlineTablePaste','breakOffsets','DOC_CHART_INSERT_BELOW_MENU_ID','borderRadius','docs-chart-ui.legend','docs-chart-ui.chartTypes.area','IDocClipboardService','assignChartContext','_isActiveLayer','Number/date\x20format','DrawingEditIcon','_refreshActivePosition','_initCommands','parseInt','DependentOn','Observable','Max','getMenuHiddenObservable','labelContentType','_subscribeRender','insertRange','source','Diamond','Waterfall','_activeDomReadyDrawingKeys','render','_hostStyle','Min','fillOpacity','univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg','dataSource','HeatmapChartIcon','docs-chart-ui.tableDataEmpty','pie','width','168agXPZz','_dataUrl','UniverUIPlugin','DOC_WORD_CLOUD_RENDER_CONFIG','toDisposable','snapshotUpdated$','SankeyChartIcon','generateRandomId','jsx','_invalidateSnapshotsForDirectionChange','observe','_getPositionState','getRenderColor','_getDrawingRect','docs-chart-ui.setupChart','UniverRenderEnginePlugin','unsubscribe','Circular','_commandService','getAncestorScale','_waitForRuntimeConfig','lineAndArea','docs-chart-ui.horizontalAxis','Title\x20position','_rect','Series\x20style','consumeInsertRange','drawings','initTransformer','position','number','Subject','ChartEditPanelTabs','univer-text-xs','ensureChartModel','univer-mt-2\x20univer-text-sm\x20univer-leading-4\x20univer-text-gray-900\x20dark:!univer-text-white','resolve','getCanvasElement','normalizeCandlestickInlineTable','charts','doc-chart.dialog.editor','reverse','RemoveDocDrawingCommand','DOC_CHART_EDITOR_DIALOG_ID','docs-chart-ui.gridlinesAndTicks','chartInvalidated$','take','SeriesLabelPosition','_syncChartImageVisibility','Document\x20chart\x20','ChartSelectField','Circle','_renderManagerService','Bottom','column','endIndex','updateChartStyle','order','horizontalAxis','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','_instanceService','SankeyIcon','firstValueFrom','Right\x20vertical\x20axis\x20title','univer-flex\x20univer-flex-wrap\x20univer-gap-2','chartAndAxisTitles','useEffect','fill','DOC_CHART_INSERT_MENU_OPTIONS','IRenderManagerService','mergeMenu','keys','requestSnapshot','Funnel','sourceDocuments','DOC_CHART_CLIPBOARD_RESOURCE_KEY','_getPasteMutationInfos','syncLayout','wordCloud','ChartPropertyRow','doc-chart.snapshot-renderer','positionObserver','flushForTests','LineChartIcon','DropdownMenu','Column','seriesIndexes','hidden','docs-chart-ui.chartTypes.wordCloud','IconManager','textStyle','_createChartRenderInstanceContext','MenuItemType','4992966qTcIrB','imageContentHidden','focus','titlePosition','BarStacked','docs-chart-ui.chartTypes.relation','tooltip','markNotReady','univer-min-h-full','chartStyle','_configWaitKeys','Visual\x20map','Dotted','fontSize','LAYOUT','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','docs-chart-ui.title','Category\x09Value','overflow','boxSizing','left','docs-chart-ui.chartTypes.funnel','Bubble','Series','get','ColumnChartIcon','SHARED','docs-chart-ui.chartTypes.scatter','univer-shrink-0','getChartSemanticDataFieldKind','symbol','_modelService','setImageContentHidden','useState','continuous','rgb(','model','chartId','ChartIcon','Axis\x20title\x20font\x20size','DocContentInsertService','getDataUrl','top','openInsertDialog','dataUrl','dispatchEvent','UniverInstanceType','IUniverInstanceService','IncreaseIcon','onChartTypeChange','IMenuManagerService','doc.operation.open-doc-chart-editor-dialog','_docClipboardService','OpenDocChartEditorDialogOperation','orient','3254860mrkuiA','_drainQueue','sourceDrawing','_localeService','_getChartKey','doc-chart.data-editor','Doughnut\x20hole','Area','PieLabelPosition','DocActiveChart','join','image','layout','split','createIdentifier','direction$','getViewport','getDrawingEditable','main','UniverDocsPlugin','textRanges','series','_getRenderRect','getCacheKey','yAxis','next','DRAWING_CHART','ready','DocChartSnapshotRenderService','Relation','contentRect','DocChartEditorDialog','packageName','position$','AreaPercentStacked','titles','getCurrentUnitOfType','_captureInsertRange','Line\x20style','docs-chart-ui.chartTypes.boxplot','DocChartInsertPanel','isHalfPie','_iconManager','current','PieChartIcon','then','univer-flex\x20univer-justify-end\x20univer-gap-2','_mountNode','prototype','requestPaint','Plugin','removeFloatDom','RelationshipIcon','rightYAxisTitle','Label\x20rotate','univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-pb-3','values','subtitle','height','getDrawingDataForUnit','docs-chart-ui.editData','DocChartResourceService','27LLVvje','UNIVER_DOC','defaultChartConfig','relative','WordCloudShapeEnum','makeDirty','setConfig','docs-chart-ui.insert','match','_pasteAdapterService','Border\x20dash','registerAdapter','docs-chart-ui.chart','ChartInlineTableEditor','ScatterChartIcon','docs-chart-ui.chartTypes.treemap','_config','click','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','size','docs-chart-ui.chartNotFound','repeat','4126YXVkqw','map','docs-chart-ui.reverseAxis','useAbsValue','UniverDocsDrawingPlugin','string','Disabled','_imageContentHidden','RemoveDocChartDataSourceMutation','_isDocChartDrawing','docs-chart-ui.insertChart','Checkbox','Node\x20shape','some','DocChartActiveRenderService','docs-chart-ui.inlineData','Left','_snapshotRenderService','10jgUnks','docs-chart-ui.customizeChart','getDataSourceSharingCount','startOffset','rosePie','print','@univerjs-pro/docs-chart-ui','Select\x20mode','gridLine','Pie','WordCloud','Border\x20width','Stacked','docs-chart-ui.horizontalAxisTitle','ContextMenuPosition','getChartModel','_initClipboardHooks','radar','Color','Pareto','invalidateSnapshot','right','PercentStack','buildChartThemeSelectOptions','Polygon','DocChartInlineTableEditor','alt','getChartIdsByDataSource','DocChartDataEditor','Treemap','getHostStyle','ChartThemeService','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','docs-chart-ui.verticalAxis','_draw','Label\x20position','ComboChartIcon','LinePointShape','compactInlineTableValues','docs-chart-ui.chartTypes.areaStacked','push','piecewise','call','dataSourceId','DocChartRenderService','baseOn','_requestSnapshot','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','segmentId','getTextRanges','getRuntimeContext','ChartSemanticDataFields','ensureMount','useValueAsSymbolSize','DocChartSnapshotRefreshController','setClipBounds','UniverDocsChartPlugin','IDocClipboardPasteAdapterService','primary','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','DRAWING_OBJECT_LAYER_INDEX','_deactivate','DOC_PARAGRAPH_T_INSERT_MENU_ID','BarPercentStacked','univer-mx-0\x20univer-mt-0','useDependency','_renderService','getUnitId','UpdateDocChartConfigCommand','DocChartPrintService','subscribeEvent','DocSelectionManagerService','contentType','drawingId','SetDocChartSnapshotMutation','pending','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','defaultTableText','content','gridlinesAndTicks','DUPLICATE','round','Label\x20font\x20size','isFinite','_getDrawing','targetDrawing','docs-chart-ui.chartTypes.areaPercentStacked','BreakLineCommand','docs-chart-ui.chartTypes.pie','univer-pr-1','Multiple','ChartCheckboxField','docs-chart-ui.updateChartFailed','Square','subUnitId','Theme','UniverDrawingPlugin','button','category-series','config$','EChartRenderModel','_host','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','_canvasFloatDomService','Step','e.g.\x200.00…','DocChartInsertMenuItemFactory','univer-mt-2\x20univer-text-xs\x20univer-text-red-600','categoryIndex','context','_injector','SetDocChartDataSourceMutation','docs-chart-ui.candlestick.close','_retryActivateFocusedChart','shift','initData','changeSource','titleFontSize','angle','DocChartModelService','univer-text-xs\x20univer-text-red-600','VIEWPORT_KEY','SECTION_BREAK','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-pb-3','DOC_CHART_DATA_EDITOR_DIALOG_ID','doc-chart.dialog.insert','renderRect','_rendering','DocDrawingFloatingToolbarAdapterService','doc','Triangle','deepClone','docs-chart-ui.apply','root','Position','rotate','index','row','appendInlineTableRow','univer-flex\x20univer-size-full\x20univer-min-w-0\x20univer-gap-5','100%','collapsed','getChart','onContextChange','DOC_CHART_EDITOR_DIALOG_COMPONENT','_activeDrain','firstColumnAsCategory','Half\x20pie','docs-chart-ui.chartTypes.combination','select','BoxplotIcon','univer-w-[--radix-popper-anchor-width]','display','docs-chart-ui.visible','refreshTransform$','bottom','HeatmapIcon','ChartEditPanelScaffold','onClose','complete','style$','type','6fVObrR','openEditorDialog','getEditorState','Histogram','registerCommand','setRenderModel','_docSelectionManagerService','UniverDocsChartUIPlugin','CloudOutlineIcon','Inside','docs-chart-ui.candlestick.low','AreaStacked','getRealBound','ChartBorderDashType','relation','indicatorLineColor','B\x0918','trim','clipBounds','getObjectIncludeInGroup','parseFloat','dataStream','onReady','span','docs-chart-ui.chartTypes.barStacked','getActiveTextRange','removeObject','docs-chart-ui.data','_listenChartResourceMutations','univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-flex-col\x20univer-overflow-hidden\x20univer-overscroll-contain','univer-min-h-0\x20univer-flex-1','Use\x20values\x20as\x20node\x20size','labelStyle','length','customBlockMappings','error','selectMode','ImageChartHost','getFocusDrawings','touchDependencies','heatmap','registerRenderModel','invalidateChart','updateChartType','sceneRect','docs-chart-ui.chartTypes.bar','Line\x20and\x20area','UniverDocsDrawingUIPlugin','_resourceService','docs-chart-ui.candlestick.category','100%\x20stacked','updateChartContext','getDataSource','createRenderSpec','EChartRenderEngineName','Continuous','doc-chart-preview-','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','docs-chart-ui.','getRenderUnitById','Themes','object','DataStreamTreeTokenType','LabelContentType','OpenDocChartInsertDialogOperation','scene','Layout','Repeat\x20words','min','Tools','forEach','buildChartTypeSelectOptions','ChartColorField','TitlePositionEnum','firstRowAsHeader','yAxisTitle','AreaChartIcon','open','xAxis','_univerInstanceService','univer-w-full\x20univer-justify-start','Show\x20label\x20line','_drawingAdapterService','nodeShape','DocChartClipboardController','19023785rnsFZL','_queue','Select','INSERT_BELLOW_MENU_ID','_requestSnapshotsForSearches','img','Inject','docs-chart-ui.editChart','appendInlineTableColumn','customBlocks','DocChartDataEditorSubmitMode','getDrawingByParam','constructor','_manageHostSize','replaceChildren','_runQueue','Image','allSeriesStyle','Dom','getRegisteredThemes','VIEW_MAIN','Top','docs-chart-ui.cancel','getColors','getChartInlineTableMinColumns','onStyleChange','chart','shape','_chartThemeService','#4086f4','createRenderInput','ContextMenuGroup','label','_layoutChanged$','tab','drawingType','bind','Row\x20','DOC_CHART_INSERT_MENU_ID','Gradient\x20fill','Smooth','_getDrawingSearch','disconnect','#d1d5db','docTransform','getSelfOrHeaderFooterModel','BUTTON','_getRuntimeModel','_renderDrawing','_updatePosition','focus$'];_0x56f3=function(){return _0x45830a;};return _0x56f3();}function Qe(_0x1c6c59){const _0x1fe92b=_0x4152cc;return(0x0,p[_0x1fe92b(0x339)])([(0x0,u['disableMenuWhenHeaderFooterEditing'])(_0x1c6c59),$e(_0x1c6c59)])[_0x1fe92b(0x378)]((0x0,p[_0x1fe92b(0x1c8)])(([_0x290e27,_0x4b71d4])=>_0x290e27||_0x4b71d4));}function $e(_0x479cbf){const _0x4fa8d0=_0x4152cc;let _0x3cb208=_0x479cbf[_0x4fa8d0(0x4bd)](l['DocSelectionManagerService']),_0xa26126=_0x479cbf[_0x4fa8d0(0x4bd)](e[_0x4fa8d0(0x4d4)]);return new p[(_0x4fa8d0(0x434))](_0x58da22=>{const _0x344d00=_0x4fa8d0;let _0x4d37c9=_0x270499=>{const _0x4b4a13=_0xfc4a;var _0x2cfb44,_0x17547f,_0x8432b1,_0x1ca5f8,_0x409afd;let _0x18488d=_0xa26126[_0x4b4a13(0x197)](e['UniverInstanceType'][_0x4b4a13(0x1b2)]);if(!_0x18488d){_0x58da22[_0x4b4a13(0x18c)](!0x0);return;}let _0x4a7aa9=(_0x2cfb44=_0x270499==null?void 0x0:_0x270499[_0x4b4a13(0x187)])==null?[...(_0x17547f=_0x3cb208[_0x4b4a13(0x20a)]())==null?[]:_0x17547f]:_0x2cfb44;if(_0x4a7aa9[_0x4b4a13(0x29c)]!==0x1){_0x58da22[_0x4b4a13(0x18c)](!0x0);return;}let _0x3bd35e=(_0x8432b1=_0x3cb208['getActiveTextRange']())==null?_0x4a7aa9[0x0]:_0x8432b1;if(!_0x3bd35e||!_0x3bd35e['collapsed']||_0x3bd35e[_0x4b4a13(0x1dc)]==null){_0x58da22['next'](!0x0);return;}let _0x508f7c=F(_0x18488d,{..._0x3bd35e,'segmentId':(_0x1ca5f8=(_0x409afd=_0x3bd35e[_0x4b4a13(0x209)])==null?_0x270499==null?void 0x0:_0x270499[_0x4b4a13(0x209)]:_0x409afd)==null?'':_0x1ca5f8});_0x58da22[_0x4b4a13(0x18c)](_0x508f7c==null);};_0x4d37c9();let _0x25a25f=_0x3cb208[_0x344d00(0x3ed)][_0x344d00(0x3a0)](_0x2ec565=>_0x4d37c9(_0x2ec565));return()=>_0x25a25f[_0x344d00(0x458)]();});}function et(_0x57bcce){return K(_0x57bcce);}function K(_0x1ac90f){const _0x385ae7=_0x4152cc;return{'id':G,'commandId':_['id'],'type':n[_0x385ae7(0x4a4)][_0x385ae7(0x2fe)],'icon':_0x385ae7(0x4cb),'title':'docs-chart-ui.insertChart','tooltip':_0x385ae7(0x1d1),'disabled$':Qe(_0x1ac90f),'hidden$':(0x0,n['getMenuHiddenObservable'])(_0x1ac90f,e[_0x385ae7(0x4d3)][_0x385ae7(0x1b2)])};}function tt(_0x45067a){const _0x2b8756=_0x4152cc;return{'id':Xe,'commandId':_['id'],'type':n['MenuItemType'][_0x2b8756(0x2fe)],'icon':_0x2b8756(0x4cb),'title':_0x2b8756(0x1d1),'tooltip':_0x2b8756(0x1d1),'disabled$':Qe(_0x45067a),'hidden$':(0x0,n[_0x2b8756(0x436)])(_0x45067a,e['UniverInstanceType'][_0x2b8756(0x1b2)])};}const nt={[n[_0x4152cc(0x3e5)][_0x4152cc(0x3fb)]]:{[G]:{'order':2.5,'menuItemFactory':et}},[n[_0x4152cc(0x1e7)]['PARAGRAPH']]:{[n['ContextMenuGroup'][_0x4152cc(0x4b3)]]:{[u[_0x4152cc(0x2d3)]]:{[G]:{'order':4.5,'menuItemFactory':K}}},[u['EMPTY_PARAGRAPH_MENU_ID']]:{[n[_0x4152cc(0x2ef)][_0x4152cc(0x4b3)]]:{[G]:{'order':5.5,'menuItemFactory':K}}},[u[_0x4152cc(0x36d)]]:{[n[_0x4152cc(0x2ef)]['LAYOUT']]:{[G]:{'order':4.5,'menuItemFactory':K}}},[u[_0x4152cc(0x217)]]:{'insert':{[G]:{'order':1.5,'menuItemFactory':K}}},[u[_0x4152cc(0x483)]]:{'insert':{[Xe]:{'order':1.5,'menuItemFactory':tt}}}}};var rt=_0x4152cc(0x1df),it='1.0.0-alpha.8',at=class extends g['Image']{constructor(..._0x2404ee){const _0x5deae4=_0x4152cc;super(..._0x2404ee),k(this,_0x5deae4(0x1ce),!0x1);}get[_0x4152cc(0x4a6)](){return this['_imageContentHidden'];}[_0x4152cc(0x4c5)](_0x508106){const _0x504c08=_0x4152cc;this[_0x504c08(0x1ce)]!==_0x508106&&(this[_0x504c08(0x1ce)]=_0x508106,this[_0x504c08(0x1b6)](!0x0));}[_0x4152cc(0x1fb)](_0x15d081,_0x273e80,_0x22b150,_0x24ab32){const _0x5af0bf=_0x4152cc;this[_0x5af0bf(0x1ce)]||super[_0x5af0bf(0x1fb)](_0x15d081,_0x273e80,_0x22b150,_0x24ab32);}};const ot={'borderEnabled':!0x0,'borderStroke':_0x4152cc(0x2ed),'borderStrokeWidth':0x1,'borderSpacing':0x2,'anchorFill':_0x4152cc(0x3d2),'anchorStroke':_0x4152cc(0x2ed),'anchorStrokeWidth':1.5,'anchorSize':0x8,'anchorCornerRadius':0x2,'anchorStyle':_0x4152cc(0x31a),'rotateEnabled':!0x0,'rotateSize':0x12,'rotateCornerRadius':0x9,'rotateAnchorOffset':0x1c,'rotateAnchorPosition':_0x4152cc(0x274),'rotateLineEnabled':!0x1,'rotateFill':'#ffffff','rotateStroke':_0x4152cc(0x2ed),'rotateStrokeWidth':0x1,'rotateIconEnabled':!0x0,'rotateIconStroke':_0x4152cc(0x2ed),'rotateIconStrokeWidth':1.25,'resizeEnabled':!0x0,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1},st={...ot,'rotateEnabled':!0x1};let ct=class extends e[_0x4152cc(0x3fd)]{constructor(_0x34376d,_0x10cf89,_0x5d2863){const _0x5ec93a=_0x4152cc;super(),this[_0x5ec93a(0x32a)]=_0x34376d,this[_0x5ec93a(0x47c)]=_0x10cf89,this[_0x5ec93a(0x1d8)]=_0x5d2863,k(this,_0x5ec93a(0x43d),new Set()),this[_0x5ec93a(0x3c8)]();}[_0x4152cc(0x362)](_0x682e87,_0x457b25){const _0x480688=_0x4152cc;let _0x549655=(0x0,h['getDrawingShapeKeyByDrawingSearch'])(_0x682e87);_0x457b25?this['_activeDomReadyDrawingKeys'][_0x480688(0x325)](_0x549655):this[_0x480688(0x43d)][_0x480688(0x3fa)](_0x549655),this['_syncRenderedChartVisibility'](_0x682e87);}['_init'](){const _0x54266b=_0x4152cc;this['disposeWithMe'](this[_0x54266b(0x32a)]['add$'][_0x54266b(0x3a0)](_0x57dc46=>{const _0x1e91bd=_0x54266b;this[_0x1e91bd(0x2d4)](_0x57dc46);})),this['disposeWithMe'](this[_0x54266b(0x32a)][_0x54266b(0x273)][_0x54266b(0x3a0)](_0x5c5043=>{const _0x4fd54b=_0x54266b;this[_0x4fd54b(0x2d4)](_0x5c5043);})),this[_0x54266b(0x3d3)](this[_0x54266b(0x32a)]['remove$'][_0x54266b(0x3a0)](_0x105177=>{const _0x5bdcd6=_0x54266b;this[_0x5bdcd6(0x3cc)](_0x105177);})),this[_0x54266b(0x3d3)](this['_snapshotRenderService']['chartInvalidated$']['subscribe'](({unitId:_0x220289,chartId:_0x1c5fad})=>{const _0x3ecf8e=_0x54266b;this[_0x3ecf8e(0x3cb)](_0x220289,_0x1c5fad);})),this['disposeWithMe'](this['_snapshotRenderService'][_0x54266b(0x44d)][_0x54266b(0x3a0)](_0x10212f=>{const _0x96425a=_0x54266b;if(_0x10212f[_0x96425a(0x3fe)]!==_0x96425a(0x18e)||!_0x10212f[_0x96425a(0x4d1)])return;let [_0x530e3f,_0xf055ca]=_0x10212f['key']['split']('::');!_0x530e3f||!_0xf055ca||this[_0x96425a(0x312)](_0x530e3f,_0xf055ca,_0x10212f[_0x96425a(0x4d1)]);}));}[_0x4152cc(0x2d4)](_0x397bf9){const _0x445240=_0x4152cc;_0x397bf9[_0x445240(0x2c1)](_0x519d53=>{const _0x35da78=_0x445240;let _0x3089f7=this[_0x35da78(0x39a)](_0x519d53);_0x3089f7&&this['_requestSnapshot'](_0x3089f7);});}['_requestSnapshotsForUnit'](_0x3c2a04,_0x1ebdd5){const _0x4bac36=_0x4152cc;this[_0x4bac36(0x3ae)](_0x3c2a04,_0x26916f=>{const _0x5ed4b0=_0x4bac36;(_0x1ebdd5==null||_0x26916f['chartId']===_0x1ebdd5)&&this[_0x5ed4b0(0x207)](_0x26916f);});}[_0x4152cc(0x207)](_0x3f5cdd){const _0x2d966a=_0x4152cc;let _0x1eb99b=this[_0x2d966a(0x455)](_0x3f5cdd);if(!_0x1eb99b)return;let _0x21e7a7=this[_0x2d966a(0x1d8)]['requestSnapshot']({'unitId':_0x3f5cdd['unitId'],'chartId':_0x3f5cdd[_0x2d966a(0x4ca)],'width':_0x1eb99b['width'],'height':_0x1eb99b['height'],'dpr':typeof window>'u'?0x1:window['devicePixelRatio']||0x1,'mode':'main'});_0x21e7a7[_0x2d966a(0x3fe)]===_0x2d966a(0x18e)&&_0x21e7a7[_0x2d966a(0x4d1)]&&this['_renderDrawing'](_0x3f5cdd,_0x21e7a7[_0x2d966a(0x4d1)]);}['_renderCharts'](_0x323391,_0x4df1aa,_0x2bbc64){const _0x34b13b=_0x4152cc;this[_0x34b13b(0x3ae)](_0x323391,_0x3c67e5=>{const _0x36909f=_0x34b13b;_0x3c67e5[_0x36909f(0x4ca)]===_0x4df1aa&&this[_0x36909f(0x300)](_0x3c67e5,_0x2bbc64);});}['_renderDrawing'](_0x12ed2d,_0x17e96c){const _0x25aeec=_0x4152cc;let _0x56b675=this[_0x25aeec(0x47c)][_0x25aeec(0x2b6)](_0x12ed2d['unitId']),_0x5c1733=_0x56b675==null?void 0x0:_0x56b675['scene'];if(!_0x5c1733||!this[_0x25aeec(0x455)](_0x12ed2d))return;this[_0x25aeec(0x32a)][_0x25aeec(0x184)]()&&_0x5c1733[_0x25aeec(0x464)](ot);let _0x5b5d3d=(0x0,h[_0x25aeec(0x3ad)])(_0x12ed2d),_0x40d8a6=_0x5c1733[_0x25aeec(0x28e)](_0x5b5d3d);if(_0x40d8a6!=null&&_0x40d8a6['changeSource']){var _0x3797a0,_0xbe597b,_0xd87711,_0xce9be5;_0x40d8a6[_0x25aeec(0x3ac)]={..._0x40d8a6[_0x25aeec(0x3ac)],...st},_0x40d8a6[_0x25aeec(0x24d)](_0x17e96c),(_0x3797a0=_0x40d8a6[_0x25aeec(0x3b8)])==null||_0x3797a0[_0x25aeec(0x203)](_0x40d8a6,_0x12ed2d['transform']),(_0xbe597b=_0x40d8a6[_0x25aeec(0x210)])==null||_0xbe597b[_0x25aeec(0x203)](_0x40d8a6,(_0xd87711=_0x12ed2d[_0x25aeec(0x3ee)])==null?void 0x0:_0xd87711[_0x25aeec(0x28d)]),this[_0x25aeec(0x478)](_0x40d8a6,_0x12ed2d,_0x5b5d3d),(_0xce9be5=_0x40d8a6[_0x25aeec(0x1b6)])==null||_0xce9be5[_0x25aeec(0x203)](_0x40d8a6,!0x0);return;}this['_createImageShape'](_0x12ed2d,_0x17e96c,_0x5c1733,_0x5b5d3d);}[_0x4152cc(0x356)](_0x3ad71b,_0x370113,_0x422a61,_0x149d8c){const _0x18a09e=_0x4152cc;let _0x53e6e6=_0x3ad71b[_0x18a09e(0x3ee)];if(!_0x53e6e6)return;let _0x1216a6=this[_0x18a09e(0x32a)]['getDrawingOrder'](_0x3ad71b[_0x18a09e(0x342)],_0x3ad71b['subUnitId']),_0x3454ca=_0x1216a6[_0x18a09e(0x41b)](_0x3ad71b[_0x18a09e(0x222)]),_0x311b97={..._0x53e6e6,'zIndex':_0x3454ca===-0x1?_0x1216a6['length']-0x1:_0x3454ca,'clipBounds':_0x53e6e6[_0x18a09e(0x28d)],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':st,'url':_0x370113};_0x3ad71b['hidden']&&(_0x311b97[_0x18a09e(0x405)]=!0x1);let _0x22f65f=new at(_0x149d8c,_0x311b97);_0x22f65f[_0x18a09e(0x4c5)](this[_0x18a09e(0x43d)][_0x18a09e(0x364)](_0x149d8c)),_0x422a61['addObject'](_0x22f65f,g[_0x18a09e(0x215)]),this[_0x18a09e(0x32a)][_0x18a09e(0x184)]()&&_0x422a61['attachTransformerTo'](_0x22f65f);}[_0x4152cc(0x3cc)](_0x4bc209){const _0x15517a=_0x4152cc;_0x4bc209[_0x15517a(0x2c1)](_0x299eea=>{const _0x81b841=_0x15517a;this[_0x81b841(0x43d)][_0x81b841(0x3fa)]((0x0,h[_0x81b841(0x3ad)])(_0x299eea));let _0x3f4d64=this[_0x81b841(0x47c)][_0x81b841(0x2b6)](_0x299eea[_0x81b841(0x342)]),_0x4928b4=_0x3f4d64==null?void 0x0:_0x3f4d64[_0x81b841(0x2bc)];if(!_0x4928b4)return;let _0x3ca0d1=_0x4928b4[_0x81b841(0x28e)]((0x0,h[_0x81b841(0x3ad)])(_0x299eea));_0x3ca0d1&&_0x4928b4[_0x81b841(0x295)](_0x3ca0d1);});}[_0x4152cc(0x3f8)](_0x101349){const _0x3b1326=_0x4152cc;let _0x9829e9=this[_0x3b1326(0x47c)][_0x3b1326(0x2b6)](_0x101349[_0x3b1326(0x342)]),_0x5d57d6=_0x9829e9==null?void 0x0:_0x9829e9[_0x3b1326(0x2bc)];if(!_0x5d57d6)return;let _0x24e090=(0x0,h[_0x3b1326(0x3ad)])(_0x101349),_0x2bbc90=_0x5d57d6[_0x3b1326(0x28e)](_0x24e090);if(!_0x2bbc90)return;let _0x25b548=this[_0x3b1326(0x32a)][_0x3b1326(0x2db)](_0x101349);this[_0x3b1326(0x478)](_0x2bbc90,_0x25b548,_0x24e090);}['_syncChartImageVisibility'](_0x5c3d7c,_0x4c7564,_0x4c6904){const _0x516180=_0x4152cc;var _0x55830a,_0x48f6fb;let _0xe361a4=this[_0x516180(0x43d)][_0x516180(0x364)](_0x4c6904);if(_0x5c3d7c[_0x516180(0x4c5)]){var _0x529bc5,_0x523d7c;_0x5c3d7c[_0x516180(0x4c5)](_0xe361a4),(_0x4c7564==null?void 0x0:_0x4c7564[_0x516180(0x49f)])===!0x0?(_0x529bc5=_0x5c3d7c[_0x516180(0x316)])==null||_0x529bc5[_0x516180(0x203)](_0x5c3d7c):(_0x523d7c=_0x5c3d7c['show'])==null||_0x523d7c[_0x516180(0x203)](_0x5c3d7c);return;}(_0x4c7564==null?void 0x0:_0x4c7564[_0x516180(0x49f)])===!0x0?(_0x55830a=_0x5c3d7c[_0x516180(0x316)])==null||_0x55830a[_0x516180(0x203)](_0x5c3d7c):(_0x48f6fb=_0x5c3d7c['show'])==null||_0x48f6fb[_0x516180(0x203)](_0x5c3d7c);}[_0x4152cc(0x39a)](_0x46bbd1){const _0x7106ab=_0x4152cc;let _0xbe3cb7=this[_0x7106ab(0x32a)][_0x7106ab(0x2db)](_0x46bbd1);return lt(_0xbe3cb7)?_0xbe3cb7:null;}['_forEachChartDrawing'](_0x1b4458,_0xcf0369){const _0x59f9f9=_0x4152cc;let _0x4ad2d5=this[_0x59f9f9(0x32a)][_0x59f9f9(0x1ae)](_0x1b4458),_0x523623=_0x4ad2d5==null?void 0x0:_0x4ad2d5[_0x1b4458];_0x523623&&_0x523623[_0x59f9f9(0x481)]['forEach'](_0x3f18a3=>{const _0x7492a3=_0x59f9f9;let _0x7ebf99=_0x523623[_0x7492a3(0x40f)][_0x3f18a3];lt(_0x7ebf99)&&_0xcf0369(_0x7ebf99);});}[_0x4152cc(0x455)](_0x49b7ed){const _0x1ab6e8=_0x4152cc;var _0x4baa5c,_0x3e3548,_0x27a314,_0x4bb6b0,_0x3cb533,_0x17e522,_0xc11db5,_0x310690;let _0x593463=(_0x4baa5c=(_0x3e3548=(_0x27a314=_0x49b7ed[_0x1ab6e8(0x3ee)])==null?void 0x0:_0x27a314[_0x1ab6e8(0x447)])==null?(_0x4bb6b0=_0x49b7ed[_0x1ab6e8(0x2fc)])==null||(_0x4bb6b0=_0x4bb6b0[_0x1ab6e8(0x1c4)])==null?void 0x0:_0x4bb6b0[_0x1ab6e8(0x447)]:_0x3e3548)==null?0x0:_0x4baa5c,_0x3acd83=(_0x3cb533=(_0x17e522=(_0xc11db5=_0x49b7ed[_0x1ab6e8(0x3ee)])==null?void 0x0:_0xc11db5[_0x1ab6e8(0x1ad)])==null?(_0x310690=_0x49b7ed[_0x1ab6e8(0x2fc)])==null||(_0x310690=_0x310690[_0x1ab6e8(0x1c4)])==null?void 0x0:_0x310690[_0x1ab6e8(0x1ad)]:_0x17e522)==null?0x0:_0x3cb533;return _0x593463<=0x0||_0x3acd83<=0x0?null:{'width':Math['max'](0x1,Math['round'](_0x593463)),'height':Math[_0x1ab6e8(0x404)](0x1,Math['round'](_0x3acd83))};}};ct=C([S(0x0,h[_0x4152cc(0x376)]),S(0x1,g[_0x4152cc(0x48d)]),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(U))],ct);function lt(_0xd0ccea){const _0x20be63=_0x4152cc;let _0x14904e=_0xd0ccea;return(_0x14904e==null?void 0x0:_0x14904e[_0x20be63(0x2f3)])===e['DrawingTypeEnum'][_0x20be63(0x18d)]&&typeof _0x14904e['chartId']==_0x20be63(0x1cc);}function ut(_0xba3b16,_0x5dfe87,_0x1ebb84=0x1,_0x39f4ea=0x0){const _0x3c7c01=_0x4152cc;let {top:_0x364d9c,left:_0x77acb3,bottom:_0xf23963,right:_0x5c9f9c}=_0xba3b16,_0x3c6fc3=_0x5c9f9c-_0x77acb3,_0xbcbee9=_0xf23963-_0x364d9c,{viewportScrollX:_0x397466,viewportScrollY:_0x119639}=_0x5dfe87[_0x3c7c01(0x183)](u[_0x3c7c01(0x252)]['VIEW_MAIN']),{scaleX:_0x2e7448,scaleY:_0x2ea000}=_0x5dfe87[_0x3c7c01(0x45b)](),_0x3f326a=(_0x77acb3-_0x397466)*_0x2e7448,_0x2a628a=(_0x364d9c-_0x119639)*_0x2ea000,_0x27aed7=_0x3c6fc3*_0x2e7448,_0x3881ec=_0xbcbee9*_0x2ea000;return{'startX':_0x3f326a,'startY':_0x2a628a,'endX':_0x3f326a+_0x27aed7,'endY':_0x2a628a+_0x3881ec,'width':_0x27aed7,'height':_0x3881ec,'rotate':_0x39f4ea,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x1ebb84};}function q(_0x180a95,_0xd8ad87){const _0x387b96=_0x4152cc;var _0x4ecd38,_0x763f80;return _0x180a95[_0x387b96(0x342)]===_0xd8ad87[_0x387b96(0x342)]&&((_0x4ecd38=_0x180a95[_0x387b96(0x237)])==null?_0x180a95[_0x387b96(0x342)]:_0x4ecd38)===((_0x763f80=_0xd8ad87[_0x387b96(0x237)])==null?_0xd8ad87['unitId']:_0x763f80)&&_0x180a95[_0x387b96(0x222)]===_0xd8ad87[_0x387b96(0x222)];}function dt(_0x423076,_0x48cc2c=0x0){const _0x16619=_0x4152cc;var _0x26b729;return(_0x26b729=_0x423076['find'](_0x3307a9=>typeof _0x3307a9==_0x16619(0x466)&&Number[_0x16619(0x22c)](_0x3307a9)))==null?_0x48cc2c:_0x26b729;}function ft(_0x4a47ee,_0xcb0c80){const _0x4689c2=_0x4152cc;var _0x135885,_0x56ab92,_0x250270,_0x3e7084,_0x1d99ed,_0x46c970,_0x2e579c;let _0x4cbc2c=_0xcb0c80==null||(_0x135885=_0xcb0c80[_0x4689c2(0x287)])==null?void 0x0:_0x135885['call'](_0xcb0c80),_0x188381=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c['width'],(_0x56ab92=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x56ab92[_0x4689c2(0x447)],(_0x250270=_0x4a47ee[_0x4689c2(0x2fc)])==null||(_0x250270=_0x250270['size'])==null?void 0x0:_0x250270['width']]),_0x325d93=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c[_0x4689c2(0x1ad)],(_0x3e7084=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x3e7084[_0x4689c2(0x1ad)],(_0x1d99ed=_0x4a47ee['docTransform'])==null||(_0x1d99ed=_0x1d99ed[_0x4689c2(0x1c4)])==null?void 0x0:_0x1d99ed[_0x4689c2(0x1ad)]]),_0x2eef81=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c[_0x4689c2(0x4b9)],(_0x46c970=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x46c970['left']]),_0x35c815=dt([_0x4cbc2c==null?void 0x0:_0x4cbc2c[_0x4689c2(0x4cf)],(_0x2e579c=_0x4a47ee[_0x4689c2(0x3ee)])==null?void 0x0:_0x2e579c[_0x4689c2(0x4cf)]]);return{'left':_0x2eef81,'top':_0x35c815,'right':_0x2eef81+_0x188381,'bottom':_0x35c815+_0x325d93};}function pt(_0x56cea5,_0x2fa80f){const _0x4fc1f3=_0x4152cc;if(!_0x56cea5||typeof _0x56cea5!='object')return;let _0x1da9df=_0x56cea5;if(typeof _0x1da9df['subscribeEvent']=='function'){let _0x326a7b=_0x1da9df[_0x4fc1f3(0x21f)](_0x2fa80f);return(0x0,e[_0x4fc1f3(0x44c)])(()=>{const _0x2a66cf=_0x4fc1f3;var _0x8ce0f3;if(typeof _0x326a7b['dispose']==_0x2a66cf(0x3ba)){_0x326a7b['dispose']();return;}(_0x8ce0f3=_0x326a7b['unsubscribe'])==null||_0x8ce0f3[_0x2a66cf(0x203)](_0x326a7b);});}let _0x12e2fb=_0x56cea5;if(typeof _0x12e2fb[_0x4fc1f3(0x3a0)]=='function'){let _0x854657=_0x12e2fb[_0x4fc1f3(0x3a0)](_0x2fa80f);return(0x0,e[_0x4fc1f3(0x44c)])(()=>{const _0x5999ea=_0x4fc1f3;var _0x664a06;return(_0x664a06=_0x854657['unsubscribe'])==null?void 0x0:_0x664a06[_0x5999ea(0x203)](_0x854657);});}}let J=class extends e[_0x4152cc(0x3fd)]{constructor(_0x1e9786,_0x1c220c,_0x5821d1,_0x3056bc,_0x43bbaf,_0x342696,_0x4bc28f,_0x276205,_0x2a0a1c,_0x312000){const _0x25210d=_0x4152cc;super(),this[_0x25210d(0x32a)]=_0x1e9786,this[_0x25210d(0x47c)]=_0x1c220c,this['_canvasFloatDomService']=_0x5821d1,this[_0x25210d(0x4c4)]=_0x3056bc,this[_0x25210d(0x21b)]=_0x43bbaf,this['_snapshotRenderService']=_0x342696,this[_0x25210d(0x45a)]=_0x4bc28f,this['_univerInstanceService']=_0x276205,this['_localeService']=_0x2a0a1c,this[_0x25210d(0x37d)]=_0x312000,k(this,_0x25210d(0x38d),null),k(this,_0x25210d(0x2f1),new p['Subject']()),this[_0x25210d(0x3c8)]();}['mountChart'](_0x540291){const _0x2e9efc=_0x4152cc;let _0x315c6a=this[_0x2e9efc(0x4c4)][_0x2e9efc(0x46a)](_0x540291[_0x2e9efc(0x342)],_0x540291[_0x2e9efc(0x4ca)]);if(!_0x315c6a)return(0x0,e[_0x2e9efc(0x44c)])(()=>{});let _0x2b0afb=new ke(_0x540291['chartId'],_0x540291['root'],(_0x1cd3e4,_0x34b9ff)=>this['_renderService'][_0x2e9efc(0x3cf)](_0x1cd3e4,_0x34b9ff),()=>this['_getActiveRenderRect'](_0x540291)),_0x213037=this[_0x2e9efc(0x21b)][_0x2e9efc(0x307)](s['ChartHostRenderMode'][_0x2e9efc(0x2e2)]);_0x213037[_0x2e9efc(0x2f4)](_0x2b0afb);let _0x5b670e=[_0x213037['on'](_0x2e9efc(0x1c2),_0x4e1132=>{const _0x37e6d2=_0x2e9efc;_0x315c6a[_0x37e6d2(0x4c9)][_0x37e6d2(0x310)]===s[_0x37e6d2(0x30e)][_0x37e6d2(0x1f6)]&&_0x4e1132[_0x37e6d2(0x3b5)]['kind']===_0x37e6d2(0x3a9)&&this[_0x37e6d2(0x45a)][_0x37e6d2(0x355)](v['id'],{'unitId':_0x540291['unitId'],'chartId':_0x540291['chartId'],'drawingId':_0x540291[_0x37e6d2(0x222)],'route':{'tab':_0x37e6d2(0x40f)}});}),_0x213037['on'](_0x2e9efc(0x35f),()=>{const _0x1e7b2b=_0x2e9efc;this[_0x1e7b2b(0x45a)][_0x1e7b2b(0x355)](v['id'],{'unitId':_0x540291[_0x1e7b2b(0x342)],'chartId':_0x540291[_0x1e7b2b(0x4ca)],'drawingId':_0x540291[_0x1e7b2b(0x222)]});})],_0x1b0be2=!0x0;return _0x5b670e[_0x2e9efc(0x201)](this[_0x2e9efc(0x438)](_0x315c6a,_0x213037,_0x540291,()=>_0x1b0be2)),(0x0,e[_0x2e9efc(0x44c)])(()=>{const _0x19c05e=_0x2e9efc;_0x1b0be2=!0x1,this[_0x19c05e(0x37d)][_0x19c05e(0x362)](this[_0x19c05e(0x2f9)](_0x540291),!0x1),_0x5b670e[_0x19c05e(0x2c1)](_0x3dd572=>_0x3dd572[_0x19c05e(0x397)]()),_0x213037[_0x19c05e(0x397)](),_0x2b0afb[_0x19c05e(0x397)]();});}['dispose'](){const _0x1a804b=_0x4152cc;this[_0x1a804b(0x216)](),this[_0x1a804b(0x2f1)][_0x1a804b(0x278)](),super['dispose']();}[_0x4152cc(0x3c8)](){const _0x37c3f2=_0x4152cc;this[_0x37c3f2(0x3d3)](this[_0x37c3f2(0x32a)][_0x37c3f2(0x302)][_0x37c3f2(0x3a0)](_0x577506=>{const _0xcfeada=_0x37c3f2;this[_0xcfeada(0x32d)](_0x577506);})),this[_0x37c3f2(0x3d3)](this['_drawingManagerService']['remove$']['subscribe'](_0x30b8f6=>{const _0x25b49c=_0x37c3f2;let _0x2e92a6=this[_0x25b49c(0x38d)];_0x2e92a6&&_0x30b8f6[_0x25b49c(0x1d4)](_0xcfa408=>q(_0xcfa408,_0x2e92a6))&&this[_0x25b49c(0x216)]();})),this['disposeWithMe'](this[_0x37c3f2(0x32a)][_0x37c3f2(0x273)][_0x37c3f2(0x3a0)](_0x288da3=>{const _0x45503a=_0x37c3f2;let _0xe59b04=this['_activeLayer'];if(!_0xe59b04){this[_0x45503a(0x24a)](_0x288da3);return;}let _0x36bd29=_0x288da3['find'](_0x13330a=>q(_0x13330a,_0xe59b04));if(_0x36bd29){let _0x1d2a62=this[_0x45503a(0x32a)][_0x45503a(0x2db)]({'unitId':_0x36bd29['unitId'],'subUnitId':_0x36bd29[_0x45503a(0x237)],'drawingId':_0x36bd29[_0x45503a(0x222)]});this[_0x45503a(0x1d0)](_0x1d2a62)&&this[_0x45503a(0x301)](_0x1d2a62);}})),this[_0x37c3f2(0x3d3)](this[_0x37c3f2(0x2ca)][_0x37c3f2(0x40a)](e[_0x37c3f2(0x4d3)][_0x37c3f2(0x1b2)])[_0x37c3f2(0x3a0)](_0x10d211=>{const _0x113323=_0x37c3f2;let _0x59a2fe=this[_0x113323(0x38d)];_0x59a2fe&&(_0x10d211==null?void 0x0:_0x10d211[_0x113323(0x21c)]())!==_0x59a2fe['unitId']&&this['_deactivate']();}));}['_subscribeRender'](_0x2953ae,_0x4fe7c8,_0x258005,_0x5d17c1){const _0x46f444=_0x4152cc;let _0x49cfa4=()=>{const _0x3a7007=_0xfc4a;let {chartConfig:_0x4518c2,chartStyle:_0x3355cc}=this[_0x3a7007(0x21b)][_0x3a7007(0x2ee)](_0x2953ae);Promise[_0x3a7007(0x46c)](_0x4fe7c8[_0x3a7007(0x43e)]({'chartId':_0x2953ae[_0x3a7007(0x4ca)],'config':_0x4518c2,'style':_0x3355cc}))[_0x3a7007(0x1a0)](()=>{const _0x4b2719=_0x3a7007;_0x5d17c1()&&this[_0x4b2719(0x42d)](_0x258005)&&this['_staticRenderController'][_0x4b2719(0x362)](this[_0x4b2719(0x2f9)](_0x258005),!0x0);},()=>{});},_0x5c0811=(0x0,p['combineLatest'])([_0x2953ae['model'][_0x46f444(0x23c)],_0x2953ae[_0x46f444(0x4c9)][_0x46f444(0x279)],this['_localeService'][_0x46f444(0x182)]])[_0x46f444(0x378)]((0x0,p[_0x46f444(0x3b0)])(([_0x566424])=>_0x566424!=null))[_0x46f444(0x3a0)](_0x49cfa4),_0x46a89f=this[_0x46f444(0x2f1)][_0x46f444(0x378)]((0x0,p[_0x46f444(0x3b0)])(_0x596669=>_0x596669===_0x258005['drawingId']))[_0x46f444(0x3a0)](_0x49cfa4);return(0x0,e[_0x46f444(0x44c)])(()=>{const _0xd85097=_0x46f444;_0x5c0811[_0xd85097(0x458)](),_0x46a89f[_0xd85097(0x458)]();});}[_0x4152cc(0x32d)](_0x4d1965){const _0x373a76=_0x4152cc;let _0x1bde16=(_0x4d1965==null?[]:_0x4d1965)['filter'](_0x540eaa=>this[_0x373a76(0x1d0)](_0x540eaa));if(_0x1bde16['length']!==0x1){this[_0x373a76(0x216)]();return;}this[_0x373a76(0x317)](_0x1bde16[0x0]);}[_0x4152cc(0x317)](_0xe7c2f8){const _0x3e74ed=_0x4152cc;var _0x546cae,_0x299cd4,_0x1a8d37,_0x58abc5,_0x475424;let _0x489560=this[_0x3e74ed(0x453)](_0xe7c2f8),_0x1afb20=this[_0x3e74ed(0x189)](_0xe7c2f8),_0x3c9494=(_0x546cae=_0xe7c2f8['subUnitId'])==null?_0xe7c2f8[_0x3e74ed(0x342)]:_0x546cae;if(!_0x489560||!_0x1afb20){this[_0x3e74ed(0x216)]();return;}if(((_0x299cd4=this[_0x3e74ed(0x38d)])==null?void 0x0:_0x299cd4[_0x3e74ed(0x342)])===_0xe7c2f8[_0x3e74ed(0x342)]&&this[_0x3e74ed(0x38d)][_0x3e74ed(0x237)]===_0x3c9494&&this[_0x3e74ed(0x38d)][_0x3e74ed(0x222)]===_0xe7c2f8['drawingId']&&this[_0x3e74ed(0x38d)]['chartId']===_0xe7c2f8[_0x3e74ed(0x4ca)]){this[_0x3e74ed(0x38d)][_0x3e74ed(0x2bc)]=_0x489560[_0x3e74ed(0x2bc)],this[_0x3e74ed(0x38d)]['sceneRect']=_0x489560[_0x3e74ed(0x2a7)],this['_activeLayer'][_0x3e74ed(0x24f)]=_0x489560[_0x3e74ed(0x24f)],this[_0x3e74ed(0x38d)][_0x3e74ed(0x257)]=_0x1afb20,this[_0x3e74ed(0x38d)][_0x3e74ed(0x194)][_0x3e74ed(0x18c)](_0x489560['position']);return;}this[_0x3e74ed(0x216)]();let _0x50e184=new p['BehaviorSubject'](_0x489560[_0x3e74ed(0x465)]),_0x48f39c=this[_0x3e74ed(0x47c)]['getRenderUnitById'](_0xe7c2f8[_0x3e74ed(0x342)]),_0x4c737a=_0x48f39c==null||(_0x58abc5=(_0x1a8d37=_0x48f39c[_0x3e74ed(0x38f)])[_0x3e74ed(0x46d)])==null?void 0x0:_0x58abc5[_0x3e74ed(0x203)](_0x1a8d37);this[_0x3e74ed(0x240)][_0x3e74ed(0x3c6)]({'id':_0xe7c2f8[_0x3e74ed(0x222)],'componentKey':mt,'position$':_0x50e184,'unitId':_0xe7c2f8['unitId'],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0xe7c2f8[_0x3e74ed(0x4ca)],'subUnitId':_0x3c9494},'onPointerDown':_0xae1947=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new PointerEvent(_0xae1947[_0x3e74ed(0x27a)],_0xae1947)),'onPointerMove':_0x38dd3a=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new PointerEvent(_0x38dd3a[_0x3e74ed(0x27a)],_0x38dd3a)),'onPointerUp':_0x3b182c=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new PointerEvent(_0x3b182c[_0x3e74ed(0x27a)],_0x3b182c)),'onWheel':_0x5908b5=>_0x4c737a==null?void 0x0:_0x4c737a[_0x3e74ed(0x4d2)](new WheelEvent(_0x5908b5[_0x3e74ed(0x27a)],_0x5908b5))}),this['_modelService'][_0x3e74ed(0x3d6)](_0xe7c2f8['unitId'],_0xe7c2f8[_0x3e74ed(0x4ca)]);let _0x31d285={'unitId':_0xe7c2f8[_0x3e74ed(0x342)],'subUnitId':_0x3c9494,'drawingId':_0xe7c2f8[_0x3e74ed(0x222)],'chartId':_0xe7c2f8[_0x3e74ed(0x4ca)],'scene':_0x489560[_0x3e74ed(0x2bc)],'sceneRect':_0x489560[_0x3e74ed(0x2a7)],'angle':_0x489560['angle'],'renderRect':_0x1afb20,'position$':_0x50e184,'positionObserver':(0x0,e['toDisposable'])(()=>{})};this[_0x3e74ed(0x38d)]=_0x31d285;let _0x5228ff=_0x48f39c==null||(_0x475424=_0x48f39c[_0x3e74ed(0x2bc)])==null?void 0x0:_0x475424[_0x3e74ed(0x183)](u[_0x3e74ed(0x252)][_0x3e74ed(0x2e4)]),_0x4f36fd=pt(_0x5228ff==null?void 0x0:_0x5228ff['onScrollAfter$'],()=>{const _0x5f08b6=_0x3e74ed;this[_0x5f08b6(0x430)](_0xe7c2f8[_0x5f08b6(0x342)],_0xe7c2f8['drawingId'],_0xe7c2f8['chartId']);});_0x31d285[_0x3e74ed(0x499)]=_0x4f36fd==null?(0x0,e['toDisposable'])(()=>{}):_0x4f36fd;}[_0x4152cc(0x216)](){const _0x3316d0=_0x4152cc;let _0x211b7b=this[_0x3316d0(0x38d)];_0x211b7b&&(this['_activeLayer']=null,_0x211b7b['positionObserver'][_0x3316d0(0x397)](),this[_0x3316d0(0x37d)][_0x3316d0(0x362)]({'unitId':_0x211b7b['unitId'],'subUnitId':_0x211b7b[_0x3316d0(0x237)],'drawingId':_0x211b7b[_0x3316d0(0x222)]},!0x1),this[_0x3316d0(0x240)][_0x3316d0(0x1a6)](_0x211b7b[_0x3316d0(0x222)]),this['_modelService']['setActiveChartRuntime'](null),this[_0x3316d0(0x1d8)][_0x3316d0(0x2a5)](_0x211b7b['unitId'],_0x211b7b[_0x3316d0(0x4ca)],{'waitForConfig':!0x0}),_0x211b7b['position$']['complete']());}[_0x4152cc(0x430)](_0x124753,_0xd2cf09,_0x3527c3){const _0x3abda4=_0x4152cc;let _0x5e77ce=this[_0x3abda4(0x38d)];(_0x5e77ce==null?void 0x0:_0x5e77ce[_0x3abda4(0x342)])===_0x124753&&_0x5e77ce[_0x3abda4(0x222)]===_0xd2cf09&&_0x5e77ce[_0x3abda4(0x4ca)]===_0x3527c3&&_0x5e77ce['position$']['next'](ut(_0x5e77ce[_0x3abda4(0x2a7)],_0x5e77ce['scene'],0x1,_0x5e77ce[_0x3abda4(0x24f)]));}[_0x4152cc(0x301)](_0x46c551){const _0x327e9d=_0x4152cc;let _0xdad716=this['_getPositionState'](_0x46c551),_0x3fa6ee=this[_0x327e9d(0x189)](_0x46c551);if(_0xdad716&&_0x3fa6ee){var _0x2ab33f;this[_0x327e9d(0x38d)]&&(this['_activeLayer'][_0x327e9d(0x2bc)]=_0xdad716[_0x327e9d(0x2bc)],this[_0x327e9d(0x38d)][_0x327e9d(0x2a7)]=_0xdad716['sceneRect'],this[_0x327e9d(0x38d)][_0x327e9d(0x24f)]=_0xdad716[_0x327e9d(0x24f)],this[_0x327e9d(0x38d)][_0x327e9d(0x257)]=_0x3fa6ee),(_0x2ab33f=this[_0x327e9d(0x38d)])==null||_0x2ab33f['position$'][_0x327e9d(0x18c)](_0xdad716['position']),this[_0x327e9d(0x2f1)][_0x327e9d(0x18c)](_0x46c551[_0x327e9d(0x222)]);}}[_0x4152cc(0x24a)](_0x5eba8d){const _0x1d1b38=_0x4152cc;let _0xdf271=this[_0x1d1b38(0x32a)][_0x1d1b38(0x2a1)]()[_0x1d1b38(0x3b0)](_0x5ca278=>this[_0x1d1b38(0x1d0)](_0x5ca278));_0xdf271[_0x1d1b38(0x29c)]===0x1&&_0x5eba8d[_0x1d1b38(0x1d4)](_0x23c2c3=>q(_0x23c2c3,_0xdf271[0x0]))&&this[_0x1d1b38(0x317)](_0xdf271[0x0]);}[_0x4152cc(0x453)](_0x547474){const _0x4e81c1=_0x4152cc;let _0x43d58f=_0x547474[_0x4e81c1(0x3ee)];if(!_0x43d58f)return null;let _0x3cdbdc=this[_0x4e81c1(0x47c)][_0x4e81c1(0x2b6)](_0x547474['unitId']);if(!(_0x3cdbdc!=null&&_0x3cdbdc['scene']))return null;let _0x1a0b56=(0x0,h['getDrawingShapeKeyByDrawingSearch'])(_0x547474),_0x589604=_0x3cdbdc['scene']['getObjectIncludeInGroup'](_0x1a0b56),_0x113485=ft(_0x547474,_0x589604),_0x54ddf4=_0x113485[_0x4e81c1(0x1ee)]-_0x113485[_0x4e81c1(0x4b9)],_0x391853=_0x113485['bottom']-_0x113485['top'];if(_0x54ddf4<=0x0||_0x391853<=0x0)return null;let _0x197850=dt([_0x589604==null?void 0x0:_0x589604[_0x4e81c1(0x24f)],_0x43d58f['angle']]);return{'scene':_0x3cdbdc['scene'],'sceneRect':_0x113485,'angle':_0x197850,'position':ut(_0x113485,_0x3cdbdc['scene'],0x1,_0x197850)};}[_0x4152cc(0x189)](_0xc5d358){const _0x2f3feb=_0x4152cc;var _0x25d183,_0x247ebb,_0x1fe1df,_0x515008,_0x4d8562,_0x321ba5,_0x267bb9,_0x44b768;let _0x25337f=(_0x25d183=(_0x247ebb=(_0x1fe1df=_0xc5d358[_0x2f3feb(0x3ee)])==null?void 0x0:_0x1fe1df['width'])==null?(_0x515008=_0xc5d358[_0x2f3feb(0x2fc)])==null||(_0x515008=_0x515008[_0x2f3feb(0x1c4)])==null?void 0x0:_0x515008['width']:_0x247ebb)==null?0x0:_0x25d183,_0x452aae=(_0x4d8562=(_0x321ba5=(_0x267bb9=_0xc5d358[_0x2f3feb(0x3ee)])==null?void 0x0:_0x267bb9[_0x2f3feb(0x1ad)])==null?(_0x44b768=_0xc5d358[_0x2f3feb(0x2fc)])==null||(_0x44b768=_0x44b768[_0x2f3feb(0x1c4)])==null?void 0x0:_0x44b768[_0x2f3feb(0x1ad)]:_0x321ba5)==null?0x0:_0x4d8562;return _0x25337f<=0x0||_0x452aae<=0x0?null:{'width':Math[_0x2f3feb(0x404)](0x1,Math[_0x2f3feb(0x22a)](_0x25337f)),'height':Math[_0x2f3feb(0x404)](0x1,Math[_0x2f3feb(0x22a)](_0x452aae))};}[_0x4152cc(0x402)](_0x5b8159){const _0x421372=_0x4152cc;var _0xbe65b3;let _0xf8d775=this[_0x421372(0x38d)];if((_0xf8d775==null?void 0x0:_0xf8d775['unitId'])===_0x5b8159[_0x421372(0x342)]&&_0xf8d775[_0x421372(0x237)]===((_0xbe65b3=_0x5b8159[_0x421372(0x237)])==null?_0x5b8159['unitId']:_0xbe65b3)&&_0xf8d775[_0x421372(0x222)]===_0x5b8159[_0x421372(0x222)]&&_0xf8d775[_0x421372(0x4ca)]===_0x5b8159[_0x421372(0x4ca)])return _0xf8d775['renderRect'];let _0x23db7b=this['_drawingManagerService']['getDrawingByParam'](this[_0x421372(0x2f9)](_0x5b8159));return this['_isDocChartDrawing'](_0x23db7b)?this[_0x421372(0x189)](_0x23db7b):null;}[_0x4152cc(0x2f9)](_0x5d3e88){const _0x554e1e=_0x4152cc;var _0x16ad50;return{'unitId':_0x5d3e88[_0x554e1e(0x342)],'subUnitId':(_0x16ad50=_0x5d3e88[_0x554e1e(0x237)])==null?_0x5d3e88[_0x554e1e(0x342)]:_0x16ad50,'drawingId':_0x5d3e88['drawingId']};}[_0x4152cc(0x42d)](_0x555a9b){const _0x569c3f=_0x4152cc;var _0x17040e;let _0x1a4cf2=this[_0x569c3f(0x38d)];return(_0x1a4cf2==null?void 0x0:_0x1a4cf2[_0x569c3f(0x342)])===_0x555a9b['unitId']&&_0x1a4cf2['subUnitId']===((_0x17040e=_0x555a9b[_0x569c3f(0x237)])==null?_0x555a9b[_0x569c3f(0x342)]:_0x17040e)&&_0x1a4cf2[_0x569c3f(0x222)]===_0x555a9b[_0x569c3f(0x222)]&&_0x1a4cf2[_0x569c3f(0x4ca)]===_0x555a9b['chartId'];}[_0x4152cc(0x1d0)](_0x16f7f7){const _0x524958=_0x4152cc;let _0x4d4418=_0x16f7f7;return(_0x4d4418==null?void 0x0:_0x4d4418['drawingType'])===e['DrawingTypeEnum']['DRAWING_CHART']&&typeof _0x4d4418['chartId']==_0x524958(0x1cc);}};J=C([S(0x0,h[_0x4152cc(0x376)]),S(0x1,g[_0x4152cc(0x48d)]),S(0x2,(0x0,e[_0x4152cc(0x2d6)])(n['CanvasFloatDomService'])),S(0x3,(0x0,e['Inject'])(a['DocChartModelService'])),S(0x4,(0x0,e[_0x4152cc(0x2d6)])(M)),S(0x5,(0x0,e[_0x4152cc(0x2d6)])(U)),S(0x6,e[_0x4152cc(0x3cd)]),S(0x7,e['IUniverInstanceService']),S(0x8,(0x0,e[_0x4152cc(0x2d6)])(e['LocaleService'])),S(0x9,(0x0,e['Inject'])(ct))],J);const mt=_0x4152cc(0x3df),ht=_0x57ecdc=>{const _0x58712f=_0x4152cc;let {unitId:_0x344b92,subUnitId:_0x30cbd8,floatDomId:_0x3cd2a2,chartId:_0x1b468f,context:_0x46d20d}=_0x57ecdc,_0x5d0484=(0x0,n[_0x58712f(0x21a)])(J);return(0x0,r[_0x58712f(0x48a)])(()=>{const _0x126b9e=_0x58712f;let _0x2482e3=_0x46d20d[_0x126b9e(0x25e)][_0x126b9e(0x19e)];if(!_0x2482e3)return;let _0x259b83=_0x5d0484[_0x126b9e(0x3a5)]({'unitId':_0x344b92,'subUnitId':_0x30cbd8,'drawingId':_0x3cd2a2,'chartId':_0x1b468f,'root':_0x2482e3});return()=>_0x259b83[_0x126b9e(0x397)]();},[_0x5d0484,_0x1b468f,_0x46d20d['root'],_0x3cd2a2,_0x30cbd8,_0x344b92]),null;};let Y=class extends e[_0x4152cc(0x3fd)]{constructor(_0x325e97,_0x389e97){const _0x2dcd13=_0x4152cc;super(),this[_0x2dcd13(0x32a)]=_0x325e97,this[_0x2dcd13(0x1d8)]=_0x389e97;}['printChart'](_0x22046c,_0x54c46a,_0x1164d3,_0x499e5a){const _0x193ba1=_0x4152cc;let _0x5bc61f=this[_0x193ba1(0x22d)](_0x22046c,_0x54c46a);if(_0x1164d3['replaceChildren'](),!_0x5bc61f)return{'dispose':()=>_0x1164d3[_0x193ba1(0x2de)]()};let _0x58f6ea={'unitId':_0x22046c,'chartId':_0x5bc61f['chartId'],'width':Math[_0x193ba1(0x404)](0x1,Math[_0x193ba1(0x22a)](_0x499e5a[_0x193ba1(0x447)])),'height':Math[_0x193ba1(0x404)](0x1,Math[_0x193ba1(0x22a)](_0x499e5a[_0x193ba1(0x1ad)])),'mode':_0x193ba1(0x1de)},_0x174149=this[_0x193ba1(0x1d8)]['requestSnapshot'](_0x58f6ea);this[_0x193ba1(0x36c)](_0x1164d3,_0x174149);let _0xe6311=this[_0x193ba1(0x1d8)][_0x193ba1(0x44d)][_0x193ba1(0x3a0)](_0x2f5608=>{const _0x59fdd2=_0x193ba1;_0x2f5608[_0x59fdd2(0x3bb)]===_0x174149[_0x59fdd2(0x3bb)]&&this[_0x59fdd2(0x36c)](_0x1164d3,_0x2f5608);});return{'dispose':()=>{const _0x94be27=_0x193ba1;_0xe6311[_0x94be27(0x458)](),_0x1164d3['replaceChildren']();}};}[_0x4152cc(0x22d)](_0xbf15ba,_0x2680cc){const _0x32c848=_0x4152cc;let _0x1a46dd={'unitId':_0xbf15ba,'subUnitId':_0xbf15ba,'drawingId':_0x2680cc},_0xd6edd7=this[_0x32c848(0x32a)][_0x32c848(0x2db)](_0x1a46dd);return!_0xd6edd7||_0xd6edd7['drawingType']!==e[_0x32c848(0x377)]['DRAWING_CHART']||!_0xd6edd7['chartId']?null:_0xd6edd7;}[_0x4152cc(0x36c)](_0x273864,_0x4945cb){const _0x3590eb=_0x4152cc;if(_0x4945cb['status']!==_0x3590eb(0x18e)||!_0x4945cb[_0x3590eb(0x4d1)])return;let _0x2c6e28=document[_0x3590eb(0x384)](_0x3590eb(0x2d5));_0x2c6e28['src']=_0x4945cb[_0x3590eb(0x4d1)],_0x2c6e28[_0x3590eb(0x1f3)]='',_0x2c6e28[_0x3590eb(0x41f)][_0x3590eb(0x271)]=_0x3590eb(0x320),_0x2c6e28[_0x3590eb(0x41f)][_0x3590eb(0x447)]=_0x3590eb(0x265),_0x2c6e28[_0x3590eb(0x41f)]['height']='100%',_0x273864[_0x3590eb(0x2de)](_0x2c6e28);}};Y=C([S(0x0,h[_0x4152cc(0x376)]),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(U))],Y);const gt=_0x45b912=>{const _0x38b104=_0x4152cc;let {unitId:_0x412334,floatDomId:_0x19735e,context:_0x52e93a}=_0x45b912,_0x6c03d4=(0x0,n['useDependency'])(Y);return(0x0,r[_0x38b104(0x48a)])(()=>{const _0x11d1fa=_0x38b104;let _0x3a4c69=_0x52e93a[_0x11d1fa(0x25e)][_0x11d1fa(0x19e)];if(!_0x3a4c69)return;let _0x26b6c8={'width':Number[_0x11d1fa(0x28f)](_0x3a4c69['style'][_0x11d1fa(0x447)])||_0x3a4c69['clientWidth']||0x1,'height':Number[_0x11d1fa(0x28f)](_0x3a4c69[_0x11d1fa(0x41f)][_0x11d1fa(0x1ad)])||_0x3a4c69[_0x11d1fa(0x32e)]||0x1},_0x76e0f9=_0x6c03d4['printChart'](_0x412334,_0x19735e,_0x3a4c69,_0x26b6c8);return()=>_0x76e0f9[_0x11d1fa(0x397)]();},[_0x52e93a[_0x38b104(0x25e)],_0x19735e,_0x6c03d4,_0x412334]),null;};let X=class extends e[_0x4152cc(0x3fd)]{constructor(_0x4a0e6d,_0x2d9c43){const _0x102006=_0x4152cc;super(),this[_0x102006(0x33f)]=_0x4a0e6d,this[_0x102006(0x19d)]=_0x2d9c43,this[_0x102006(0x417)](),this[_0x102006(0x40e)]();}[_0x4152cc(0x417)](){const _0x59d938=_0x4152cc;this['disposeWithMe'](this[_0x59d938(0x19d)][_0x59d938(0x3ab)]({'ChartIcon':c['ChartIcon'],'AreaChartIcon':c[_0x59d938(0x2c7)],'BarChartIcon':c[_0x59d938(0x313)],'ColumnChartIcon':c[_0x59d938(0x4be)],'ComboChartIcon':c[_0x59d938(0x1fd)],'LineChartIcon':c[_0x59d938(0x49b)],'PieChartIcon':c[_0x59d938(0x19f)],'RadarChartIcon':c[_0x59d938(0x37c)],'ScatterChartIcon':c[_0x59d938(0x1bf)],'FunnelIcon':c['FunnelIcon'],'CloudIcon':c[_0x59d938(0x283)],'BubbleIcon':c[_0x59d938(0x416)],'RelationshipIcon':c[_0x59d938(0x1a7)],'WaterfallChartIcon':c['WaterfallChartIcon'],'SankeyChartIcon':c[_0x59d938(0x485)],'HeatmapChartIcon':c[_0x59d938(0x275)],'BoxplotIcon':c[_0x59d938(0x26f)],'CandlestickChartIcon':c[_0x59d938(0x347)],'HistogramChartIcon':c[_0x59d938(0x31b)],'TreemapChartIcon':c['TreemapChartIcon']}));}['_registerComponents'](){const _0x4bf563=_0x4152cc;this[_0x4bf563(0x3d3)](this['_componentManager']['register'](Ue,z)),this[_0x4bf563(0x3d3)](this['_componentManager'][_0x4bf563(0x3ab)](b,te)),this[_0x4bf563(0x3d3)](this[_0x4bf563(0x33f)][_0x4bf563(0x3ab)](Ne,Pe)),this['disposeWithMe'](this[_0x4bf563(0x33f)][_0x4bf563(0x3ab)](e['DOC_DRAWING_PRINTING_COMPONENT_KEY'],gt)),this[_0x4bf563(0x3d3)](this[_0x4bf563(0x33f)][_0x4bf563(0x3ab)](mt,ht));}};X=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(n['ComponentManager'])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(n[_0x4152cc(0x4a1)]))],X);let Z=class extends e['Disposable']{constructor(_0x121545,_0x28c0c7,_0x1011fb,_0x1cf9af,_0x3494c6,_0x4b87b0,_0x637c4a){const _0x4de4d9=_0x4152cc;super(),this['_dialogService']=_0x121545,this[_0x4de4d9(0x4df)]=_0x28c0c7,this[_0x4de4d9(0x484)]=_0x1011fb,this[_0x4de4d9(0x281)]=_0x1cf9af,this[_0x4de4d9(0x414)]=_0x3494c6,this['_menuManagerService']=_0x4b87b0,this['_commandService']=_0x637c4a,this['_initMenus'](),this['_registerDialogOperations']();}['openInsertDialog'](_0x323fdd){const _0x1ea756=_0x4152cc;var _0x3df60,_0x1d598d;let _0x1ddb62=null,_0x1295ee=()=>{_0x1ddb62==null||_0x1ddb62['dispose'](),_0x1ddb62=null;};return _0x1ddb62=this[_0x1ea756(0x33a)][_0x1ea756(0x2c8)]({'id':_0x1ea756(0x256),'title':{'title':_0x1ea756(0x2d7)},'width':0x2a8,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Ue,'props':{'defaultChartType':(_0x3df60=_0x323fdd==null?void 0x0:_0x323fdd['defaultChartType'])==null?_0x323fdd==null?void 0x0:_0x323fdd['value']:_0x3df60,'defaultTableText':_0x323fdd==null?void 0x0:_0x323fdd[_0x1ea756(0x226)],'insertOptions':{'insertRange':(_0x1d598d=_0x323fdd==null?void 0x0:_0x323fdd[_0x1ea756(0x439)])==null?this[_0x1ea756(0x198)]():_0x1d598d},'onCancel':_0x1295ee,'onInserted':_0x1295ee}}},'onClose':_0x1295ee}),!0x0;}[_0x4152cc(0x27c)](_0x287eb3){const _0x511026=_0x4152cc;let _0x255ee9=null,_0x14c293=()=>{const _0x5081eb=_0xfc4a;_0x255ee9==null||_0x255ee9[_0x5081eb(0x397)](),_0x255ee9=null;};return _0x255ee9=this[_0x511026(0x33a)][_0x511026(0x2c8)]({'id':P,'title':{'title':'docs-chart-ui.editChart'},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Ne,'props':{..._0x287eb3,'onClose':_0x14c293}}},'onClose':_0x14c293}),!0x0;}[_0x4152cc(0x315)](){const _0x22ab97=_0x4152cc;this['_menuManagerService'][_0x22ab97(0x48e)](nt);}[_0x4152cc(0x371)](){const _0x10e827=_0x4152cc;this[_0x10e827(0x3d3)](this[_0x10e827(0x45a)]['onCommandExecuted'](_0x5ad7e8=>{const _0x56e61e=_0x10e827;if(_0x5ad7e8['id']===_['id']){this[_0x56e61e(0x4d0)](_0x5ad7e8[_0x56e61e(0x375)]);return;}if(_0x5ad7e8['id']===v['id']){let _0x21416f=_0x5ad7e8['params'];_0x21416f&&this[_0x56e61e(0x27c)](_0x21416f);}}));}[_0x4152cc(0x198)](){const _0x62fe2c=_0x4152cc;var _0x390f2d,_0x49f4f1,_0x3f250a;let _0x513334=this[_0x62fe2c(0x484)][_0x62fe2c(0x197)](e[_0x62fe2c(0x4d3)]['UNIVER_DOC']);if(!_0x513334)return;let _0x3f44c8=_0x513334['getUnitId'](),_0x2fb37b=null;try{_0x2fb37b=this[_0x62fe2c(0x414)][_0x62fe2c(0x462)](_0x3f44c8);}catch{_0x2fb37b=null;}if(_0x2fb37b){var _0x591e93;let _0xacded6={'startOffset':_0x2fb37b[_0x62fe2c(0x1dc)],'endOffset':_0x2fb37b[_0x62fe2c(0x31f)],'collapsed':_0x2fb37b[_0x62fe2c(0x1dc)]===_0x2fb37b['endOffset'],'segmentId':(_0x591e93=_0x2fb37b[_0x62fe2c(0x209)])==null?'':_0x591e93};return F(_0x513334,_0xacded6)?_0xacded6:void 0x0;}let _0x53501f=[...(_0x390f2d=this[_0x62fe2c(0x281)][_0x62fe2c(0x20a)]())==null?[]:_0x390f2d];if(_0x53501f[_0x62fe2c(0x29c)]!==0x1)return;let _0x5c0bf0=(_0x49f4f1=this['_docSelectionManagerService'][_0x62fe2c(0x294)]())==null?_0x53501f[0x0]:_0x49f4f1;if(!_0x5c0bf0||!_0x5c0bf0[_0x62fe2c(0x266)]||_0x5c0bf0[_0x62fe2c(0x1dc)]==null)return;let _0x3b7689={..._0x5c0bf0,'segmentId':(_0x3f250a=_0x5c0bf0[_0x62fe2c(0x209)])==null?'':_0x3f250a};return F(_0x513334,_0x3b7689)?_0x3b7689:void 0x0;}};Z=C([S(0x0,(0x0,e[_0x4152cc(0x2d6)])(n[_0x4152cc(0x368)])),S(0x1,(0x0,e[_0x4152cc(0x2d6)])(e[_0x4152cc(0x333)])),S(0x2,e[_0x4152cc(0x4d4)]),S(0x3,(0x0,e[_0x4152cc(0x2d6)])(l[_0x4152cc(0x220)])),S(0x4,(0x0,e['Inject'])(l[_0x4152cc(0x4cd)])),S(0x5,n[_0x4152cc(0x4d7)]),S(0x6,e[_0x4152cc(0x3cd)])],Z);let Q=class extends e[_0x4152cc(0x1a5)]{constructor(_0x31b5c6=B,_0x429e89,_0x562b84,_0xb38af4){const _0x6bc31f=_0x4152cc;super(),this[_0x6bc31f(0x1c1)]=_0x31b5c6,this[_0x6bc31f(0x247)]=_0x429e89,this[_0x6bc31f(0x348)]=_0x562b84,this['_commandService']=_0xb38af4;let {..._0x76d153}=(0x0,e['merge'])({},B,this['_config']);this[_0x6bc31f(0x348)][_0x6bc31f(0x1b7)](Ge,_0x76d153),this[_0x6bc31f(0x431)](),(0x0,s['registerWordCloudChart'])(s['echarts']);}[_0x4152cc(0x36b)](){const _0x570927=_0x4152cc;let _0x2b5d70=this[_0x570927(0x247)];[[X],[R],[w],[J],[Y],[M],[U],[W],[ct],[V],[H],[Z]]['forEach'](_0x550e66=>_0x2b5d70[_0x570927(0x325)](_0x550e66)),(0x0,e[_0x570927(0x2a2)])(_0x2b5d70,[[R],[w],[J],[Y],[M],[U],[V],[H]]),this[_0x570927(0x247)][_0x570927(0x4bd)](X);}[_0x4152cc(0x291)](){const _0x1c456e=_0x4152cc;this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](W),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](ct),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](V),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](H),this[_0x1c456e(0x247)][_0x1c456e(0x4bd)](Z);}[_0x4152cc(0x431)](){[_,v]['forEach'](_0x3b2d29=>{const _0x1d24fa=_0xfc4a;this[_0x1d24fa(0x3d3)](this[_0x1d24fa(0x45a)][_0x1d24fa(0x27f)](_0x3b2d29));});}};k(Q,_0x4152cc(0x27a),e[_0x4152cc(0x4d3)]['UNIVER_DOC']),k(Q,_0x4152cc(0x345),_0x4152cc(0x282)),k(Q,_0x4152cc(0x193),rt),k(Q,'version',it),Q=C([(0x0,e[_0x4152cc(0x433)])(m[_0x4152cc(0x3e0)],l[_0x4152cc(0x186)],h[_0x4152cc(0x239)],g[_0x4152cc(0x457)],d[_0x4152cc(0x1cb)],u['UniverDocsUIPlugin'],n[_0x4152cc(0x44a)],a[_0x4152cc(0x211)],f[_0x4152cc(0x2aa)]),S(0x1,(0x0,e['Inject'])(e[_0x4152cc(0x360)])),S(0x2,e['IConfigService']),S(0x3,e['ICommandService'])],Q),exports[_0x4152cc(0x30d)]=Ge,exports['DOC_ACTIVE_CHART_COMPONENT']=mt,exports[_0x4152cc(0x493)]=Ke,exports[_0x4152cc(0x33e)]=b,exports[_0x4152cc(0x255)]=_0x4152cc(0x39b),exports[_0x4152cc(0x269)]=Ne,exports[_0x4152cc(0x473)]=P,exports[_0x4152cc(0x427)]=Xe,exports[_0x4152cc(0x2f6)]=G,exports[_0x4152cc(0x48c)]=Ze,exports['DOC_CHART_INSERT_PANEL_COMPONENT']=Ue,exports[_0x4152cc(0x17c)]=ht,Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x1d5),{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,_0x4152cc(0x2cf),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,_0x4152cc(0x40c),{'enumerable':!0x0,'get':function(){return w;}}),exports[_0x4152cc(0x1f5)]=te,exports[_0x4152cc(0x2da)]=x,Object[_0x4152cc(0x33c)](exports,'DocChartDrawingEditController',{'enumerable':!0x0,'get':function(){return H;}}),exports['DocChartEditPanel']=Ee,exports[_0x4152cc(0x192)]=Pe,exports[_0x4152cc(0x1f2)]=ee,exports[_0x4152cc(0x3ec)]=tt,exports[_0x4152cc(0x243)]=K,exports[_0x4152cc(0x19b)]=z,exports[_0x4152cc(0x39c)]=et,Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x3dc),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x21e),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x205),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x20f),{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x4152cc(0x33c)](exports,_0x4152cc(0x18f),{'enumerable':!0x0,'get':function(){return U;}}),exports['DocDomChartHost']=ke,exports[_0x4152cc(0x353)]=A,exports['DocPrintChart']=gt,exports[_0x4152cc(0x41c)]=nt,exports['IDocChartRenderModelService']=j,exports['IDocChartSnapshotRendererService']=Je,exports[_0x4152cc(0x4da)]=v,exports[_0x4152cc(0x2bb)]=_,Object['defineProperty'](exports,_0x4152cc(0x282),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4152cc(0x2d8)]=i[_0x4152cc(0x2d8)],exports[_0x4152cc(0x263)]=i['appendInlineTableRow'],exports[_0x4152cc(0x425)]=y,exports[_0x4152cc(0x1ff)]=i[_0x4152cc(0x1ff)],exports['defaultPluginConfig']=B,exports['getDocChartInsertDisabledObservable']=Qe,exports['normalizeInlineTableValues']=i[_0x4152cc(0x389)];
|
|
1
|
+
const _0x56a991=_0x5456;(function(_0x543ac7,_0x1a2b69){const _0x38ad8e=_0x5456,_0x3fc0a1=_0x543ac7();while(!![]){try{const _0x462773=-parseInt(_0x38ad8e(0x3c1))/0x1+-parseInt(_0x38ad8e(0x365))/0x2+-parseInt(_0x38ad8e(0x28b))/0x3+parseInt(_0x38ad8e(0x161))/0x4+-parseInt(_0x38ad8e(0x38d))/0x5*(-parseInt(_0x38ad8e(0x40b))/0x6)+parseInt(_0x38ad8e(0x2e6))/0x7+-parseInt(_0x38ad8e(0x377))/0x8*(parseInt(_0x38ad8e(0x182))/0x9);if(_0x462773===_0x1a2b69)break;else _0x3fc0a1['push'](_0x3fc0a1['shift']());}catch(_0x291077){_0x3fc0a1['push'](_0x3fc0a1['shift']());}}}(_0x9b98,0xd995e),Object['defineProperty'](exports,Symbol[_0x56a991(0x294)],{'value':_0x56a991(0x357)}));let e=require('@univerjs/core'),t=require('@univerjs-pro/chart-ui'),n=require('@univerjs-pro/engine-chart'),r=require('@univerjs/design'),i=require('@univerjs/ui'),a=require('react'),o=require('react/jsx-runtime'),s=require('@univerjs-pro/docs-chart'),c=require('@univerjs/docs'),l=require('@univerjs/docs-ui'),u=require('@univerjs/docs-drawing'),d=require('@univerjs/docs-drawing-ui'),f=require('rxjs'),p=require('@univerjs-pro/license'),m=require('@univerjs/drawing'),h=require('@univerjs/engine-render');const g={'id':_0x56a991(0x204),'type':e[_0x56a991(0x1e6)][_0x56a991(0x19a)],'handler'(){return!0x0;}},_={'id':_0x56a991(0x1d3),'type':e[_0x56a991(0x1e6)]['OPERATION'],'handler'(){return!0x0;}},v=_0x56a991(0x1e0);let y=function(_0xf2713){const _0x31301a=_0x56a991;return _0xf2713[_0x31301a(0x307)]=_0x31301a(0x335),_0xf2713[_0x31301a(0x3bc)]='duplicate',_0xf2713;}({});function b(_0x2ac958){const _0x2fb4a3=_0x56a991;let _0x22a596=(0x0,i['useDependency'])(e['LocaleService']),{values:_0x382bb3,onCancel:_0xba0734,onChange:_0x22bab,onSubmit:_0x19bed3}=_0x2ac958,[_0x522ec3,_0x5a5ab2]=(0x0,a['useState'])(()=>(0x0,n[_0x2fb4a3(0x277)])(_0x2ac958[_0x2fb4a3(0x31d)])?_0x2fb4a3(0x19c):_0x2fb4a3(0x1c3)),[_0x5f1d00,_0x59e0ba]=(0x0,a[_0x2fb4a3(0x250)])(null),[_0x12f514,_0x1acc4f]=(0x0,a[_0x2fb4a3(0x250)])(()=>_0x382bb3['map'](_0x44f2a=>[..._0x44f2a])),[_0x387c0f,_0x5213e0]=(0x0,a[_0x2fb4a3(0x250)])(null),_0x40045d=_0x139446=>{_0x1acc4f(_0x139446),_0x22bab==null||_0x22bab(_0x139446);},_0x4e81a3=_0x926d22=>{const _0x286a53=_0x2fb4a3;let _0x32cf58=(0x0,t[_0x286a53(0x244)])(_0x12f514);if(_0x32cf58[_0x286a53(0x42a)]===0x0){_0x5213e0(_0x22a596['t']('docs-chart-ui.common.tableDataEmpty'));return;}_0x5213e0(null),_0x19bed3(_0x32cf58,_0x926d22);};return(0x0,o['jsxs'])(_0x2fb4a3(0x3db),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[(0x0,o['jsx'])(_0x2fb4a3(0x3db),{'className':_0x2fb4a3(0x2e2),'children':(0x0,o[_0x2fb4a3(0x431)])(t[_0x2fb4a3(0x2ab)],{'mode':_0x522ec3,'initialSource':(0x0,n[_0x2fb4a3(0x277)])(_0x2ac958[_0x2fb4a3(0x31d)])?_0x2ac958[_0x2fb4a3(0x31d)][_0x2fb4a3(0x32c)]:void 0x0,'inlineContent':(0x0,o[_0x2fb4a3(0x431)])(t[_0x2fb4a3(0x382)],{'values':_0x12f514,'parsePastedText':n[_0x2fb4a3(0x2f2)],'onChange':_0x40045d}),'onModeChange':_0x22c5df=>{_0x5a5ab2(_0x22c5df),_0x59e0ba(null);},'onPreviewChange':(_0x19d372,_0x5410c7)=>{const _0x1af5f9=_0x2fb4a3;_0x59e0ba(_0x19d372&&_0x5410c7['status']===n['ChartDataSourceRuntimeStatus']['READY']?{'source':_0x19d372}:null),_0x5410c7[_0x1af5f9(0x2e3)]&&(_0x22bab==null||_0x22bab(_0x5410c7[_0x1af5f9(0x2e3)][_0x1af5f9(0x41e)](_0x1905b2=>[..._0x1905b2])));}})}),_0x387c0f&&(0x0,o[_0x2fb4a3(0x431)])(_0x2fb4a3(0x3db),{'className':'univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','children':_0x387c0f}),(0x0,o['jsxs'])(_0x2fb4a3(0x3db),{'className':_0x2fb4a3(0x2e1),'children':[_0xba0734&&(0x0,o[_0x2fb4a3(0x431)])(r['Button'],{'type':'button','variant':'default','onClick':_0xba0734,'children':_0x22a596['t'](_0x2fb4a3(0x37c))}),(0x0,o[_0x2fb4a3(0x431)])(r['Button'],{'type':_0x2fb4a3(0x3f0),'variant':_0x2fb4a3(0x368),'disabled':_0x522ec3==='referenced'&&!_0x5f1d00,'onClick':()=>{const _0x489649=_0x2fb4a3;var _0x16c67f;return _0x522ec3===_0x489649(0x19c)&&_0x5f1d00?(_0x16c67f=_0x2ac958[_0x489649(0x2d8)])==null?void 0x0:_0x16c67f[_0x489649(0x1d6)](_0x2ac958,_0x5f1d00):_0x4e81a3(_0x489649(0x335));},'children':_0x22a596['t'](_0x2fb4a3(0x3c2))})]})]});}function x(_0x2a7f02,_0x5a0a0c){return function(_0x19cb99,_0x2f18c2){_0x5a0a0c(_0x19cb99,_0x2f18c2,_0x2a7f02);};}function S(_0x4c4f75,_0x340644,_0x542572,_0x955d0d){const _0x199616=_0x56a991;var _0x3c9264=arguments[_0x199616(0x42a)],_0x1e901b=_0x3c9264<0x3?_0x340644:_0x955d0d===null?_0x955d0d=Object[_0x199616(0x2c5)](_0x340644,_0x542572):_0x955d0d,_0x3ce885;if(typeof Reflect==_0x199616(0x1b9)&&typeof Reflect[_0x199616(0x286)]=='function')_0x1e901b=Reflect[_0x199616(0x286)](_0x4c4f75,_0x340644,_0x542572,_0x955d0d);else{for(var _0x10ab18=_0x4c4f75[_0x199616(0x42a)]-0x1;_0x10ab18>=0x0;_0x10ab18--)(_0x3ce885=_0x4c4f75[_0x10ab18])&&(_0x1e901b=(_0x3c9264<0x3?_0x3ce885(_0x1e901b):_0x3c9264>0x3?_0x3ce885(_0x340644,_0x542572,_0x1e901b):_0x3ce885(_0x340644,_0x542572))||_0x1e901b);}return _0x3c9264>0x3&&_0x1e901b&&Object[_0x199616(0x387)](_0x340644,_0x542572,_0x1e901b),_0x1e901b;}function _0x9b98(){const _0x45384b=['_subscribeRender','source','getMenuHiddenObservable','Chord','overflow','ChartSectionAccordion','DrawingTypeEnum','_renderCharts','get','replaceChildren','shared','IRenderManagerService','openInsertDialog','DocChartEditorDialog','initTransformer','transformerConfig','bind','getRect','ChartStackField','doc-chart-data-panel','getCanvasElement','-data-source','merge','drawingType','_docClipboardService','canva','waterfallStyle','_initClipboardHooks','onClose','ChartLegendPositionField','secondaryPlot','Injector','ChartNumberFormatTextField','ensureChartModel','DEFAULT_CHART_PIE_VALUES','_getContentRect','sharingCount','setActiveChartById','getRealBound','string','changeDataSource','docs-chart-ui.common.chartType','IDialogService','find','Module','RemoveDocDrawingCommand','_requestSnapshotsForSearches','CHART_RESOURCE_VERSION','ChartTypeField','getCurrentUnitOfType','context','updateDataFromText','ChartSeriesLabelPositionField','Axes','invalidateChart','_activate','_captureInsertRange','touchDependencies','156180vLJLjI','Subject','renderRect','primary','docs-chart-ui.section.lineAndArea','_initMenus','ChartSubtitleFields','getDrawingByParam','ChartAxisLabelStyleFields','univer-flex\x20univer-min-h-0\x20univer-w-[388px]\x20univer-shrink-0\x20univer-flex-col\x20univer-gap-4\x20univer-overflow-hidden\x20univer-overscroll-contain','_syncChartImageVisibility','docs-chart-ui.sunburst.hierarchy','SetDocChartSnapshotMutation','change','DRAWING_OBJECT_LAYER_INDEX','docs-chart-ui.common.valueField','buildChartDataSetFromValues','_dialogService','40KHJKqm','docs-chart-ui.section.waterfall','markReady','_resolveInsertPosition','doc-chart-preview-','docs-chart-ui.common.cancel','toDisposable','default','render','IDrawingManagerService','chartType$','ChartInlineTableEditor','Heatmap','onScrollAfter$','getDirection','AreaStacked','defineProperty','LAYOUT','ChartSeriesRoot','titles','ensureMount','_getPositionState','5PCOYPW','targetDrawing','DEFAULT_CHART_HEATMAP_VALUES','docs-chart-ui.section.funnel','match','docs-chart-ui.common.verticalAxis','span','doc-chart.dialog.data-editor','_univerInstanceService','export','getDataUrl','getDataSourceSharingCount','_draw','docs-chart-ui.section.treemap','DocChartSnapshotRenderService','docs-chart-ui.common.heatmap','onModifyData','Legend','VerticalAxis','orient','OpenDocChartInsertDialogOperation','DOC_CHART_INSERT_PANEL_COMPONENT','ChartViewStateRegistry','docs-chart-ui.common.chartStyle','doc-chart.snapshot-renderer','getDrawingDataForUnit','useRef','initialRoute','iterator','complete','startIndex','rightY','resolveChartRuntimeStyle','DEFAULT_CHART_RADAR_VALUES','docs-chart-ui.common.editChart','getDrawingEditable','DocChartInsertRibbonMenuItemFactory','docs-chart-ui.section.sunburst','clientWidth','getFocusDrawings','ChartWordCloudRoot','DocChartDataEditService','segmentId','composite','ChartEditPanelSection','jsxs','changeSource','DUPLICATE','insertChart','onReady','max','Pie','160586zBgYol','docs-chart-ui.common.apply','set','doc-chart.ui.service','dataAggregation$','ChartGridlineVisibilityField','DOC_DRAWING_PRINTING_COMPONENT_KEY','applyHostStyle','route','docs-chart-ui.common.data','DEFAULT_CHART_WATERFALL_SETUP_VALUES','univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','unitId','prototype','_instanceService','univer-flex\x20univer-size-full\x20univer-min-w-0\x20univer-gap-5','_setElementSize','ChartPieStyleSection','_removeRenderedCharts','ParetoLineSeries','_syncRenderedChartVisibility','Funnel','DOC_CHART_EDITOR_DIALOG_ID','univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','endIndex','getChartHostFrameContentRect','div','_componentManager','getDrawingShapeKeyByDrawingSearch','_initCommands','DOC_CHART_INSERT_MENU_ID','dataSourceId','blockRanges','ChartSeriesPointFields','textRanges','activeRuntimeModel','getTextRanges','devicePixelRatio','chartTypeSupportsLineAndAreaStyle','radius','__docsChartResource','indexOf','getHostStyle','getRenderUnitById','children','_layoutChanged$','chart','button','transparent','parseInt','doc-chart.editor-dialog','focus$','buildChartTypeSelectOptions','ChartIndicatorLineTypeField','split','clsx','model','Data','ChartGridlineWidthField','makeDirty','doc-chart-editor-panel','HorizontalAxis','Document\x20chart\x20snapshot\x20rendering\x20requires\x20a\x20browser\x20document.','ChartSectionAccordionTrigger','_getOrCreatePastedDataSourceId','type','BUTTON','UNIVER_DOC','color','indicatorLine','resolve','every','ChartUIService','getDrawings','3448950SapIdd','disconnect','_renderManagerService','ChartTypeBits','A\x0912','_appendChartResources','ICommandService','ChartAndAxisTitles','GridlinesAndTicks','sceneRect','docs-chart-ui.chord.source','docs-chart-ui.chartTypes.','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','top','Document\x20chart\x20','_registerDialogOperations','barStyle','docs-chart-ui.active-chart','getDrawingOrder','map','DEFAULT_CHART_SERIES_VALUES','docs-chart-ui.candlestick.open','position$','getActiveTextRange','useObservable','doc-chart-setup-panel','getUnit','DocChartRenderService','DocDrawingFloatingToolbarAdapterService','Style','_staticRenderController','length','number','symbol','_commandService','pipe','requestSnapshot','iconName','jsx','UniverInstanceType','univer-flex\x20univer-flex-col\x20univer-gap-2','UnknownOption','100%','ChartRelationStyleSection','defaultPluginConfig','backgroundColor','ChartWordCloudShapeField','resolveChartTypeFieldValue','SECTION_BREAK','DEFAULT_CHART_STYLE_VALUES','status','5212264VYudRK','ready','height','VIEW_MAIN','CanvasFloatDomService','alt','_modelService','parseFloat','_floatingToolbarAdapterService','ChartRadarStyleSection','IChartRenderModelManagerService','DEFAULT_CHART_FUNNEL_VALUES','useChartEditorHasRightAxis','Image','_resourceService','_activeDomReadyDrawingKeys','insertChartFromText','univer-min-h-0\x20univer-flex-1','ContextMenuGroup','_menuManagerService','onPreviewChartTypeChange','ChartMainTitleFields','_applyHostStyle','_configService','docs-chart-ui.common.insert','DOC_CHART_DATA_EDITOR_COMPONENT','_requestSnapshotsForUnit','doc','UniverChartUIPlugin','_getPasteMutationInfos','BehaviorSubject','disableMenuWhenHeaderFooterEditing','docs-chart-ui.chartNotFound','1724643OBDSwZ','root','docTransform','DocChartUIService','UniverLicensePlugin','DOC_PARAGRAPH_T_INSERT_MENU_ID','removeObject','ChartImageExportService','_docSelectionManagerService','addFloatDom','createRenderSpec','executeCommand','Button','DEFAULT_CHART_LEGEND_VALUES','ChartAxisReverseField','ChartAxisTitleFields','ChartTypeSpecificSetupSection','Observable','toPrimitive','ChartAxisTickVisibilityField','_shouldWaitForChartConfig','heatmap','univer-shrink-0','relative','OPERATION','IUniverInstanceService','referenced','getUnitId','Failed\x20to\x20render\x20document\x20chart\x20snapshot:\x20','doc-chart-preview','key','getDrawingId','labelId','chartTypeSupportsCapability','docs-chart-ui.section.gridlinesAndTicks','getChart','ParetoBarSeries','Optional','-tab','Plugin','setClipBounds','ChartAxisFormatTextField','useDependency','getDataSource','drawings','ChartFunnelStyleSection','docs-chart-ui.common.legend','ContextMenuPosition','dark:!univer-bg-gray-900/90\x20univer-bg-gray-0/90\x20univer-absolute\x20univer-bottom-3\x20univer-left-3\x20univer-rounded\x20univer-px-2\x20univer-py-1\x20univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','WaterfallSeries','value','disposeWithMe','rgb(','shouldComposeChartHostFrame','object','border','docs-chart-ui.config','_mountNode','img','ChartStyleSection','univer-w-full\x20!univer-min-w-0','remove$','ChartParetoSeriesSection','SetDocChartDataSourceMutation','inline','_snapshotService','useChartEditorChartType','_refreshActivePosition','dataSources','column','_init','docs-chart-ui.previewRenderFailed','remove','registerAdapter','unsubscribe','doc-chart-style-panel','UniverDocsDrawingPlugin','ChartEditPanelTabs','Disposable','DrawingEditIcon','doc.operation.open-doc-chart-editor-dialog','visible','onStarting','call','Sunburst','DocChartInsertMenuItemFactory','DataStreamTreeTokenType','useEffect','onCommandExecuted','_createChartRenderInstanceContext','join','_chartThemeService','tab','doc-chart.data-editor','#ffffff','resolveDefaultChartHostFrameStyle','docs-chart-ui.close','getChartInlineTableMinColumns','_forEachChartDrawing','CommandType','filter','LocaleService','ChartTypeSpecificStyleSection','supports','round','pieSecondaryPlotType','univer-mt-2\x20univer-text-xs\x20univer-text-red-600\x20dark:!univer-text-red-400','_initAdapter','Histogram','hidden','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','insertRange','docs-chart-ui.common.chartAndAxisTitles','mergeMenu','DocChartInsertService','docs-chart-ui.candlestick.close','setStyle','_getDrawingRect','ChartAxisLabelVisibilityField','wordCloud','chartInvalidated$','DocChartSnapshotRefreshController','Series','docs-chart-ui.candlestick.columnsError','univer-flex\x20univer-flex-col\x20univer-gap-3','UniverDocsUIPlugin','DEFAULT_CHART_LINE_AND_AREA_VALUES','_getChartDrawing','EMPTY_PARAGRAPH_MENU_ID','doc.operation.open-doc-chart-insert-dialog','tables','ChartHostRenderMode','getChartIdsByDataSource','PARAGRAPH','exportImage','ChartIcon','univer-min-h-0\x20univer-flex-1\x20univer-pt-4','clipBounds','ComponentManager','Relation','_getRenderRect','appendChild','DocChartModelService','main','_localeService','updateData','_drawingAdapterService','Pareto','subscribeEvent','_prepareStandaloneInsertLine','ChartEditPanelTab','_config','ChartIndicatorLineColorField','DEFAULT_CHART_RELATION_VALUES','select','docs-chart-ui.common.customize','src','width','_renderModelManager','_registerComponents','docs-chart-ui.common.rightVerticalAxis','doc-chart-host','dblclick','docs-chart-ui.section.paretoLine','order','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-px-1\x20univer-pb-4\x20univer-pt-4','ChartLegendSelectModeField','dataAggregation','slice','_pasteAdapterService','sourceDocuments','_retryActivateFocusedChart','display','ChartEditPanel','min','sourceDrawing','ChartStyle','ChartEditBlockTitle','createChartInlineStarterData','createElement','IDocChartSnapshotRendererService','image','openEditorDialog','_renderDrawing','toSpec','useMemo','packageName','Radar','DEFAULT_CHART_WORD_CLOUD_VALUES','UniverDocsChartPlugin','DOC_ACTIVE_CHART_COMPONENT','textSelection$','docs-chart-ui.common.insertChart','compactInlineTableValues','_requestSnapshot','Category\x09Value','add','ChangeDocChartDataSourceCommand','collapsed','READY','style','some','forEach','fill','push','useState','DocChartDataEditorSubmitMode','univer-flex\x20univer-justify-end\x20univer-gap-2','docs-chart-ui.common.editData','params','next','_isActiveLayer','endOffset','DocChartInsertPanel','imageContentHidden','boxSizing','dispose','tryBuildInlineChartCreationPlan','left','DependentOn','createRenderInput','getCurrentTypeOfUnit$','hit','MenuItemType','getBody','DEFAULT_CHART_WATERFALL_STYLE_VALUES','then','open','subscribe','docs-chart-ui.common.horizontalAxis','chartBitsUtils','UniverDocsDrawingUIPlugin','ChartDataSourceRuntimeStatus','_injector','pie','_imageContentHidden','transform','registerCommand','BarStacked','IDocDrawingAdapterService','dispatchEvent','snapshotUpdated$','function','ChartSeriesFillFields','isReferencedChartDataSource','ChartSectionAccordionItem','add$','customBlocks','DRAWING_CHART','current','getId','setActiveDomReady','relation','plan','generateRandomId','_activeLayer','docs-chart-ui.common.category','getRuntimeContext','docs-chart-ui.common.setup','decorate','STATIC_CHART_TYPE_CATALOG','_manageHostSize','Treemap','ChartSectionAccordionContent','286341EgYIkV','DocumentChartConfigAdapter','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1\x20univer-overflow-hidden','mode','segmented','docs-chart-ui.section.indicatorLine','docs-chart-ui.common.insertChartFailed','drawingId','univer-shrink-0\x20univer-px-3','toStringTag','contentRect','_getDrawingSearch','_getActiveRenderRect','ChartCommonDataMappingSection','RightVerticalAxis','syncLayout','charts','RemoveDocChartSnapshotMutation','engine','createIdentifier','UniverDrawingPlugin','baseOn','style$','checkMounted','tryPrepareInlineChartData','#4086f4','getSelfOrHeaderFooterModel','mountChart','getAncestorScale','consumeInsertRange','PieStyle','docs-chart-ui.updateChartFailed','ChartReferencedDataSourceEditor','ChartEditorProvider','DocSelectionManagerService','docs-chart-ui.common.trendline','doc-chart.insert-panel','createChartInstance','DocChartEditPanel','MEDIA','breakOffsets','IndicatorLine','Inject','ChartSeriesBorderFields','target','_canvasFloatDomService','1.0.0-beta.1','pareto','_renderService','ChartEditorCapability','BreakLineCommand','_drawingManagerService','subUnitId','ChartLineAndAreaSection','setImageContentHidden','DOC_CONTENT_INSERT_MENU_ID','contains','size','getOwnPropertyDescriptor','RibbonInsertGroup','position','dataUrl','_handleFocus','InvalidCandlestickData','has','DocContentInsertService','UniverDocsPlugin','seriesId','_getDrawing','hide','docs-chart-ui.section.histogram','_renderEntry','angle','markNotReady','refreshTransform$','_deactivate','DocChartPrintService','onDataSourceSubmit','getDocChartInsertDisabledObservable','isFinite','data','delete','min(560px,\x20calc(100vh\x20-\x20180px))','observe','lineAndArea','InsertDocChartCommand','univer-flex\x20univer-shrink-0\x20univer-justify-end\x20univer-gap-2','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto\x20univer-overscroll-contain\x20univer-pr-1','values','index','UpdateDocChartConfigCommand','2139179AtMwiI','chartType','funnel','DocsChartUIMenuSchema','waterfall','getChartModel','addClipboardHook','syncExecuteCommand','direction$','printChart','register','px\x20solid\x20','parseInlineChartTable','DEFAULT_CHART_TITLE_VALUES','DocPrintChart','axis','_createImageShape','VIEWPORT_KEY','config','legend','DocChartInsertBelowMenuItemFactory','_hostStyle','_docContentInsertService','@univerjs-pro/docs-chart-ui','_listenChartResourceMutations','chartId','!univer-w-[calc(100vw-32px)]\x20!univer-max-w-[680px]\x20md:!univer-max-w-[960px]\x20xl:!univer-max-w-[1200px]','getEditorState','docs-chart-ui.common.value','bottom','docs-chart-ui.common.label','positionObserver','ChartSnapshotQueue','SHARED','_isDocChartDrawing','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','scene','ChartResourceRepository','IDocClipboardPasteAdapterService','context$','DocChartDrawingEditController','WordCloud','transformByState','LineAndArea','startOffset','print','ChartAxisBoundsFields','_host','section','Gauge','Dom','DocChartDataEditor','deepClone','_snapshotRenderService','config$','dataSource','ChartThemeField','docs-chart-ui.candlestick.high','DocChartClipboardController','Candlestick','docs-chart-ui.common.tableDataEmpty','_updatePosition','Tools','stylizeSpec','getObjectIncludeInGroup','InlineChartCreationIssueCode','DOC_CHART_INSERT_BELOW_MENU_ID','docs-chart-ui.common.series','IDocChartUIService'];_0x9b98=function(){return _0x45384b;};return _0x9b98();}let C=class{constructor(_0x32b759,_0x3b0aa2){const _0x4553de=_0x56a991;this[_0x4553de(0x42d)]=_0x32b759,this[_0x4553de(0x16f)]=_0x3b0aa2;}[_0x56a991(0x301)](_0x1c7f48,_0x2a3c47){const _0xdfbf4b=_0x56a991;let _0x4911ef=this[_0xdfbf4b(0x16f)][_0xdfbf4b(0x1a5)](_0x1c7f48,_0x2a3c47),_0x213959=_0x4911ef?this[_0xdfbf4b(0x16f)]['getDataSource'](_0x1c7f48,_0x4911ef[_0xdfbf4b(0x3e0)]):void 0x0;return!_0x4911ef||!_0x213959?null:{'unitId':_0x1c7f48,'chartId':_0x2a3c47,'dataSourceId':_0x213959['id'],'dataSource':_0x213959,'values':(0x0,n['isInlineChartDataSource'])(_0x213959)?_0x213959[_0xdfbf4b(0x2e3)][_0xdfbf4b(0x41e)](_0x56b901=>[..._0x56b901]):[],'sharingCount':this['_resourceService'][_0xdfbf4b(0x398)](_0x1c7f48,_0x213959['id'])};}[_0x56a991(0x35e)](_0x345fa6,_0x3b1134,_0x3ace40,_0x30310d){const _0x8d199=_0x56a991;let _0x406995=(0x0,n[_0x8d199(0x2f2)])(_0x3ace40);return _0x406995[_0x8d199(0x42a)]!==0x0&&this['updateData'](_0x345fa6,_0x3b1134,_0x406995,_0x30310d);}[_0x56a991(0x214)](_0x391f36,_0x4ee13c,_0x21e445,_0x139a21){const _0x29f012=_0x56a991;var _0x2e5961;if(!this[_0x29f012(0x301)](_0x391f36,_0x4ee13c)||_0x21e445['length']===0x0)return!0x1;let _0x3c3b69=(_0x2e5961=this[_0x29f012(0x16f)][_0x29f012(0x1a5)](_0x391f36,_0x4ee13c))==null?void 0x0:_0x2e5961[_0x29f012(0x2e7)];if(_0x3c3b69===void 0x0)return!0x1;let _0x28d257=(0x0,t[_0x29f012(0x2a3)])(_0x3c3b69,_0x21e445);return _0x28d257['ok']?this[_0x29f012(0x353)](_0x391f36,_0x4ee13c,{'values':_0x28d257[_0x29f012(0x2e3)]}):!0x1;}['changeDataSource'](_0x587363,_0x38f9a9,_0x1faa03){const _0x577e25=_0x56a991;return this[_0x577e25(0x42d)]['syncExecuteCommand'](s[_0x577e25(0x248)]['id'],{'unitId':_0x587363,'chartId':_0x38f9a9,'dataSource':_0x1faa03});}};C=S([x(0x0,e['ICommandService']),x(0x1,(0x0,e['Inject'])(n[_0x56a991(0x30b)]))],C);const w=(0x0,e[_0x56a991(0x29e)])(_0x56a991(0x3c4));let T=class extends t[_0x56a991(0x409)]{constructor(_0x32500c,_0x4d922a,_0x5d37aa){const _0x2d4a03=_0x56a991;super(_0x5d37aa),this['_modelService']=_0x32500c,this[_0x2d4a03(0x42d)]=_0x4d922a;}get['activeRuntimeModel'](){return this['_modelService']['activeRuntimeModel'];}['executeChartUpdateConfig'](_0x224cbd){const _0x1fcc78=_0x56a991;let _0x45f20a=this[_0x1fcc78(0x3e4)],_0x3969cf=_0x224cbd[_0x1fcc78(0x3cd)]??(_0x45f20a==null?void 0x0:_0x45f20a[_0x1fcc78(0x3cd)]),_0x1655ea=_0x224cbd[_0x1fcc78(0x2ff)]??(_0x45f20a==null?void 0x0:_0x45f20a[_0x1fcc78(0x2ff)]);!_0x3969cf||!_0x1655ea||this[_0x1fcc78(0x42d)][_0x1fcc78(0x18d)](s[_0x1fcc78(0x2e5)]['id'],{..._0x224cbd,'unitId':_0x3969cf,'chartId':_0x1655ea});}};T=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(s['DocChartModelService'])),x(0x1,e[_0x56a991(0x411)]),x(0x2,(0x0,e[_0x56a991(0x2b5)])(t[_0x56a991(0x3a3)]))],T);const E={'axis':{...t['DEFAULT_CHART_AXIS_VALUES'],'primaryGridLineVisible':!0x0,'secondaryGridLineVisible':!0x0},'legend':t[_0x56a991(0x18f)],'lineAndArea':t[_0x56a991(0x201)],'pareto':t['DEFAULT_CHART_PARETO_VALUES'],'funnel':t[_0x56a991(0x16c)],'heatmap':t[_0x56a991(0x38f)],'indicatorLine':t['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'pie':{...t[_0x56a991(0x34d)],'doughnutHole':0x0,'pieHole':0x0},'relation':{...t[_0x56a991(0x21c)],'useValueAsSymbolSize':!0x1},'radar':t[_0x56a991(0x3ae)],'series':{...t[_0x56a991(0x41f)],'radarFillOpacity':0x1,'rightAxis':{'ltr':!0x1,'rtl':!0x1}},'style':t[_0x56a991(0x15f)],'titles':t[_0x56a991(0x2f3)],'waterfall':{...t[_0x56a991(0x3cb)],'useSubtotal':!0x0},'waterfallStyle':t[_0x56a991(0x264)],'wordCloud':t[_0x56a991(0x23f)]},ee=[n[_0x56a991(0x40e)][_0x56a991(0x321)],n['ChartTypeBits'][_0x56a991(0x1ef)],n[_0x56a991(0x40e)][_0x56a991(0x289)],n['ChartTypeBits'][_0x56a991(0x1d7)],n[_0x56a991(0x40e)][_0x56a991(0x317)],n[_0x56a991(0x40e)]['Chord']];function D(){const _0x39cfb9=_0x56a991;let _0x3607ef=(0x0,t[_0x39cfb9(0x1c5)])();return(0x0,o[_0x39cfb9(0x431)])(t['ChartGradientFillField'],{'visible':ee[_0x39cfb9(0x408)](_0x42b328=>!n[_0x39cfb9(0x269)][_0x39cfb9(0x2a0)](_0x3607ef,_0x42b328))});}function O(_0x3d37d1){const _0x474c3e=_0x56a991;return(0x0,o[_0x474c3e(0x3ba)])(t[_0x474c3e(0x278)],{'id':_0x3d37d1['id'],'children':[(0x0,o[_0x474c3e(0x431)])(t[_0x474c3e(0x400)],{'children':_0x3d37d1['label']}),(0x0,o[_0x474c3e(0x431)])(t[_0x474c3e(0x28a)],{'children':_0x3d37d1[_0x474c3e(0x3ed)]})]});}function k(_0x3d64a8,_0x1e8c9e=!0x1){const _0x368954=_0x56a991;let _0x5d54a6=_0x3d64a8===n['ChartTypeBits'][_0x368954(0x30f)],_0xde511b=n[_0x368954(0x269)]['baseOn'](_0x3d64a8,n[_0x368954(0x40e)][_0x368954(0x3c0)]),_0x12e73c=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x23e)],_0x3a319d=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x3d6)],_0x20900d=_0x3d64a8===n['ChartTypeBits']['Waterfall'],_0xed152d=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x216)],_0x26ab48=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x321)],_0x269fd3=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x1ef)],_0x27dc02=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x289)],_0x2293b5=_0x3d64a8===n['ChartTypeBits'][_0x368954(0x1d7)],_0x15b64b=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x317)],_0x209aea=_0x3d64a8===n['ChartTypeBits'][_0x368954(0x32e)],_0x59a633=_0x3d64a8===n['ChartTypeBits'][_0x368954(0x20e)],_0x36aa38=_0x3d64a8===n[_0x368954(0x40e)][_0x368954(0x383)],_0xe8f27e=[t[_0x368954(0x3b9)]['ChartStyle'],t[_0x368954(0x3b9)][_0x368954(0x412)]];return _0x5d54a6&&_0xe8f27e[_0x368954(0x24f)](t['ChartEditPanelSection'][_0x368954(0x30f)]),(0x0,t[_0x368954(0x1a3)])(_0x3d64a8,t[_0x368954(0x2bc)]['GeneralSeries'])&&!_0xed152d&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x1fd)]),(0x0,t[_0x368954(0x3e7)])(_0x3d64a8)&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x311)]),_0x12e73c&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x23e)]),_0x20900d&&_0xe8f27e[_0x368954(0x24f)](t['ChartEditPanelSection'][_0x368954(0x1b4)]),_0xed152d&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)]['ParetoBarSeries'],t[_0x368954(0x3b9)][_0x368954(0x3d4)]),_0xde511b&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x2a9)]),_0x3a319d&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x3d6)]),_0x36aa38&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x383)]),_0x59a633&&_0xe8f27e['push'](t['ChartEditPanelSection'][_0x368954(0x20e)]),_0x26ab48&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x321)]),_0x269fd3&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x1ef)]),_0x27dc02&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)]['Treemap']),_0x2293b5&&_0xe8f27e['push'](t[_0x368954(0x3b9)][_0x368954(0x1d7)]),_0x15b64b&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x317)]),_0x209aea&&_0xe8f27e['push'](t[_0x368954(0x3b9)][_0x368954(0x32e)]),(0x0,t[_0x368954(0x1a3)])(_0x3d64a8,t[_0x368954(0x2bc)][_0x368954(0x39e)])&&_0xe8f27e['push'](t[_0x368954(0x3b9)][_0x368954(0x39e)]),(0x0,t['chartTypeSupportsCapability'])(_0x3d64a8,t[_0x368954(0x2bc)][_0x368954(0x360)])&&(_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)]['HorizontalAxis'],t['ChartEditPanelSection']['VerticalAxis']),_0x1e8c9e&&_0xe8f27e[_0x368954(0x24f)](t['ChartEditPanelSection']['RightVerticalAxis']),_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x413)])),(0x0,t['chartTypeSupportsCapability'])(_0x3d64a8,t['ChartEditorCapability']['IndicatorLine'])&&_0xe8f27e[_0x368954(0x24f)](t[_0x368954(0x3b9)][_0x368954(0x2b4)]),_0xe8f27e;}function A(_0x5282d9){const _0x47f784=_0x56a991;return(0x0,o['jsxs'])(_0x47f784(0x3db),{'className':_0x47f784(0x1ff),'children':[(0x0,o[_0x47f784(0x431)])(t['ChartAxisLineVisibilityField'],{'axis':_0x5282d9[_0x47f784(0x2f5)],'defaultValues':E[_0x47f784(0x2f5)]}),(0x0,o[_0x47f784(0x431)])(t[_0x47f784(0x1f9)],{'axis':_0x5282d9['axis'],'defaultValues':E[_0x47f784(0x2f5)]}),(0x0,o[_0x47f784(0x431)])(t[_0x47f784(0x190)],{'axis':_0x5282d9[_0x47f784(0x2f5)],'defaultValues':E[_0x47f784(0x2f5)]}),(0x0,o[_0x47f784(0x431)])(t[_0x47f784(0x314)],{'axis':_0x5282d9['axis']}),(0x0,o['jsx'])(t[_0x47f784(0x1ab)],{'axis':_0x5282d9[_0x47f784(0x2f5)]}),(0x0,o[_0x47f784(0x431)])(t[_0x47f784(0x36d)],{'axis':_0x5282d9['axis'],'defaultValues':E[_0x47f784(0x2f5)]}),(0x0,o[_0x47f784(0x431)])(t[_0x47f784(0x195)],{'axis':_0x5282d9[_0x47f784(0x2f5)],'defaultValues':E[_0x47f784(0x2f5)]})]});}function te(_0x3a23a1){const _0x2ccae6=_0x56a991;var _0xb13dd8,_0x2e8b04;let _0x1f264d=(0x0,i['useDependency'])(e[_0x2ccae6(0x1e8)]),_0x40850a=(0x0,t[_0x2ccae6(0x1c5)])(),_0x5230eb=(0x0,t[_0x2ccae6(0x16d)])(),[_0xb5a3f3,_0x37bd77]=(0x0,a['useState'])(null),_0x3abd03=(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x1e9)],{}),_0x8fa8d6={[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x321)]]:_0x1f264d['t']('docs-chart-ui.section.candlestick'),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x412)]]:_0x1f264d['t'](_0x2ccae6(0x1f3)),[t['ChartEditPanelSection']['ChartStyle']]:_0x1f264d['t'](_0x2ccae6(0x3a4)),[t[_0x2ccae6(0x3b9)]['Chord']]:_0x1f264d['t']('docs-chart-ui.section.chord'),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x3d6)]]:_0x1f264d['t'](_0x2ccae6(0x390)),[t[_0x2ccae6(0x3b9)]['Gauge']]:_0x1f264d['t']('docs-chart-ui.section.gauge'),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x413)]]:_0x1f264d['t'](_0x2ccae6(0x1a4)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x383)]]:_0x1f264d['t'](_0x2ccae6(0x39c)),[t['ChartEditPanelSection'][_0x2ccae6(0x1ef)]]:_0x1f264d['t'](_0x2ccae6(0x2d1)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x3fe)]]:_0x1f264d['t'](_0x2ccae6(0x268)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x2b4)]]:_0x1f264d['t'](_0x2ccae6(0x290)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x39e)]]:_0x1f264d['t'](_0x2ccae6(0x1b0)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x311)]]:_0x1f264d['t'](_0x2ccae6(0x369)),[t['ChartEditPanelSection'][_0x2ccae6(0x1a6)]]:_0x1f264d['t']('docs-chart-ui.section.paretoBar'),[t['ChartEditPanelSection'][_0x2ccae6(0x3d4)]]:_0x1f264d['t'](_0x2ccae6(0x226)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x2a9)]]:_0x1f264d['t']('docs-chart-ui.section.pie'),[t['ChartEditPanelSection'][_0x2ccae6(0x23e)]]:_0x1f264d['t']('docs-chart-ui.section.radar'),[t['ChartEditPanelSection'][_0x2ccae6(0x20e)]]:_0x1f264d['t']('docs-chart-ui.section.relation'),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x299)]]:_0x1f264d['t'](_0x2ccae6(0x223)),[t['ChartEditPanelSection'][_0x2ccae6(0x1fd)]]:_0x1f264d['t'](_0x2ccae6(0x329)),[t['ChartEditPanelSection'][_0x2ccae6(0x1d7)]]:_0x1f264d['t'](_0x2ccae6(0x3b2)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x289)]]:_0x1f264d['t'](_0x2ccae6(0x39a)),[t['ChartEditPanelSection']['Trendline']]:_0x1f264d['t'](_0x2ccae6(0x2ae)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x39f)]]:_0x1f264d['t'](_0x2ccae6(0x392)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x1b4)]]:_0x1f264d['t'](_0x2ccae6(0x378)),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x30f)]]:_0x1f264d['t']('docs-chart-ui.section.wordCloud')};(0x0,a[_0x2ccae6(0x1da)])(()=>{const _0x566a09=_0x2ccae6;var _0x398f60;(_0x398f60=_0x3a23a1[_0x566a09(0x3c9)])!=null&&_0x398f60[_0x566a09(0x316)]&&_0x37bd77(_0x3a23a1[_0x566a09(0x3c9)][_0x566a09(0x316)]);},[_0x3a23a1[_0x2ccae6(0x3c9)]]);let _0x209dab={[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x233)]]:(0x0,o['jsx'])(t[_0x2ccae6(0x1be)],{'defaultValues':E['style'],'showBodyFont':!0x1,'children':(0x0,o[_0x2ccae6(0x431)])(D,{})}),[t[_0x2ccae6(0x3b9)]['ChartAndAxisTitles']]:(0x0,o[_0x2ccae6(0x3ba)])(_0x2ccae6(0x3db),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x176)],{'commitMode':_0x2ccae6(0x372),'defaultValues':E[_0x2ccae6(0x38a)],'showFont':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x36b)],{'commitMode':_0x2ccae6(0x372),'defaultValues':E[_0x2ccae6(0x38a)],'showFont':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x191)],{'axis':'x','commitMode':_0x2ccae6(0x372),'defaultValues':E['titles'],'showAlignment':!0x1,'showFont':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t['ChartAxisTitleFields'],{'axis':'y','commitMode':_0x2ccae6(0x372),'defaultValues':E[_0x2ccae6(0x38a)],'showAlignment':!0x1,'showFont':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x191)],{'axis':_0x2ccae6(0x3ac),'commitMode':_0x2ccae6(0x372),'defaultValues':E['titles'],'showAlignment':!0x1,'showFont':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t['ChartTitleFontSizeFields'],{'defaultValues':E[_0x2ccae6(0x38a)]})]}),[t['ChartEditPanelSection'][_0x2ccae6(0x1fd)]]:(0x0,o[_0x2ccae6(0x3ba)])(t[_0x2ccae6(0x389)],{'defaultValues':E['series'],'NumberFormatField':t['ChartNumberFormatTextField'],'selectedSeriesId':(_0xb13dd8=_0x3a23a1[_0x2ccae6(0x3c9)])==null?void 0x0:_0xb13dd8[_0x2ccae6(0x2ce)],'children':[(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x276)],{}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x2b6)],{'showColor':!0x1,'showOpacity':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x3e2)],{'showColor':!0x1}),(0x0,o[_0x2ccae6(0x431)])(t['ChartSeriesLabelVisibilityField'],{}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x35f)],{}),(0x0,o[_0x2ccae6(0x431)])(t['ChartSeriesLabelFontSizeField'],{})]}),[t['ChartEditPanelSection'][_0x2ccae6(0x311)]]:(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x2c0)],{'defaultValues':E[_0x2ccae6(0x2df)],'lineStyleControl':'select'}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x30f)]]:(0x0,o[_0x2ccae6(0x3ba)])(t[_0x2ccae6(0x3b5)],{'children':[(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x15c)],{'defaultValues':E[_0x2ccae6(0x1fa)]}),(0x0,o[_0x2ccae6(0x431)])(t['ChartWordCloudRepeatField'],{'defaultValues':E[_0x2ccae6(0x1fa)]})]}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x23e)]]:(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x16a)],{'defaultValues':E['radar']}),[t['ChartEditPanelSection']['WaterfallSeries']]:(0x0,o['jsx'])(t['ChartWaterfallStyleSection'],{'defaultValues':E[_0x2ccae6(0x345)],'NumberFormatField':t[_0x2ccae6(0x34b)],'selectedSeriesId':(_0x2e8b04=_0x3a23a1[_0x2ccae6(0x3c9)])==null?void 0x0:_0x2e8b04['seriesId']}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x1a6)]]:(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x1c1)],{'defaultValues':E['pareto'],'NumberFormatField':t['ChartNumberFormatTextField'],'showDataPointEditor':!0x0,'target':_0x2ccae6(0x41b)}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x3d4)]]:(0x0,o['jsx'])(t[_0x2ccae6(0x1c1)],{'defaultValues':E[_0x2ccae6(0x2ba)],'NumberFormatField':t[_0x2ccae6(0x34b)],'showDataPointEditor':!0x0,'target':'cumulativeLineStyle'}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x2a9)]]:(0x0,o['jsx'])(t[_0x2ccae6(0x3d2)],{'defaultValues':E[_0x2ccae6(0x26d)],'NumberFormatField':t[_0x2ccae6(0x34b)]}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x3d6)]]:(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x1af)],{'defaultValues':E[_0x2ccae6(0x2e8)],'gapControl':_0x2ccae6(0x42b)}),[t[_0x2ccae6(0x3b9)]['Heatmap']]:(0x0,o[_0x2ccae6(0x431)])(t['ChartHeatmapStyleSection'],{'defaultValues':E[_0x2ccae6(0x197)]}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x20e)]]:(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x436)],{'defaultValues':E[_0x2ccae6(0x27f)]}),[t[_0x2ccae6(0x3b9)]['Legend']]:(0x0,o[_0x2ccae6(0x431)])(t['ChartLegendRoot'],{'defaultValues':E[_0x2ccae6(0x2f9)],'children':(0x0,o[_0x2ccae6(0x3ba)])(_0x2ccae6(0x3db),{'className':_0x2ccae6(0x1ff),'children':[(0x0,o['jsx'])(t[_0x2ccae6(0x348)],{}),(0x0,o[_0x2ccae6(0x431)])(t['ChartLegendWrapField'],{}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x229)],{}),(0x0,o['jsx'])(t['ChartLegendFontSizeField'],{})]})}),[t['ChartEditPanelSection'][_0x2ccae6(0x3fe)]]:(0x0,o[_0x2ccae6(0x431)])(A,{'axis':'x'}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x39f)]]:(0x0,o['jsx'])(A,{'axis':'y'}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x299)]]:(0x0,o[_0x2ccae6(0x431)])(A,{'axis':'rightY'}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x413)]]:(0x0,o[_0x2ccae6(0x3ba)])('div',{'className':_0x2ccae6(0x433),'children':[(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x3c6)],{'axis':'x','defaultValues':E[_0x2ccae6(0x2f5)],'label':_0x1f264d['t'](_0x2ccae6(0x268))}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x3c6)],{'axis':'y','defaultValues':E['axis'],'label':_0x1f264d['t'](_0x2ccae6(0x392))}),(0x0,o[_0x2ccae6(0x3ba)])('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-2','children':[(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x3fb)],{'axis':'x','defaultValues':E[_0x2ccae6(0x2f5)]}),(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x3fb)],{'axis':'y','defaultValues':E[_0x2ccae6(0x2f5)]})]})]}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x2b4)]]:(0x0,o['jsxs'])(_0x2ccae6(0x3db),{'className':_0x2ccae6(0x433),'children':[(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x21b)],{'defaultValues':E[_0x2ccae6(0x406)]}),(0x0,o['jsx'])(t[_0x2ccae6(0x3f6)],{'defaultValues':E['indicatorLine']})]}),[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x321)]]:_0x3abd03,[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x1ef)]]:_0x3abd03,[t['ChartEditPanelSection'][_0x2ccae6(0x289)]]:_0x3abd03,[t[_0x2ccae6(0x3b9)]['Sunburst']]:_0x3abd03,[t[_0x2ccae6(0x3b9)]['Gauge']]:_0x3abd03,[t[_0x2ccae6(0x3b9)][_0x2ccae6(0x32e)]]:_0x3abd03};return(0x0,o[_0x2ccae6(0x431)])(t[_0x2ccae6(0x330)],{'value':_0xb5a3f3,'onChange':_0x37bd77,'children':k(_0x40850a,_0x5230eb)[_0x2ccae6(0x41e)](_0x22aa08=>(0x0,o[_0x2ccae6(0x431)])(O,{'id':_0x22aa08,'label':_0x8fa8d6[_0x22aa08],'children':_0x209dab[_0x22aa08]},_0x22aa08))});}function ne(_0x455cf0){const _0x208f7f=_0x56a991;var _0xccc4a8;let _0x34d73b=(0x0,i[_0x208f7f(0x1ac)])(e[_0x208f7f(0x1e8)]),[_0x44b0ba,_0x8b0893]=(0x0,a[_0x208f7f(0x250)])(((_0xccc4a8=_0x455cf0[_0x208f7f(0x3a8)])==null?void 0x0:_0xccc4a8[_0x208f7f(0x1df)])??t[_0x208f7f(0x219)][_0x208f7f(0x3fa)]),_0x170b02=(0x0,a[_0x208f7f(0x23c)])(()=>(0x0,t[_0x208f7f(0x3f5)])(t[_0x208f7f(0x287)]['map'](_0x2f56ad=>({..._0x2f56ad,'label':_0x34d73b['t'](_0x208f7f(0x416)+_0x2f56ad[_0x208f7f(0x1a2)])}))),[_0x34d73b]);return(0x0,a[_0x208f7f(0x1da)])(()=>{const _0x4eba6a=_0x208f7f;var _0x2df22e;(_0x2df22e=_0x455cf0['initialRoute'])!=null&&_0x2df22e['tab']&&_0x8b0893(_0x455cf0['initialRoute'][_0x4eba6a(0x1df)]);},[_0x455cf0[_0x208f7f(0x3a8)]]),(0x0,o[_0x208f7f(0x3ba)])('div',{'className':'univer-flex\x20univer-h-0\x20univer-min-h-full\x20univer-w-full\x20univer-flex-col\x20univer-overflow-hidden\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[(0x0,o[_0x208f7f(0x431)])(t['ChartEditPanelTabs'],{'ariaLabel':_0x34d73b['t'](_0x208f7f(0x3af)),'className':_0x208f7f(0x293),'items':[{'label':_0x34d73b['t'](_0x208f7f(0x285)),'panelId':j,'value':t[_0x208f7f(0x219)]['Data']},{'label':_0x34d73b['t'](_0x208f7f(0x21e)),'panelId':re,'value':t['ChartEditPanelTab'][_0x208f7f(0x428)]}],'value':_0x44b0ba,'onChange':_0x8b0893}),_0x44b0ba===t['ChartEditPanelTab'][_0x208f7f(0x3fa)]?(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x230)],{'id':j,'label':_0x34d73b['t']('docs-chart-ui.common.setup'),'children':(0x0,o[_0x208f7f(0x3ba)])(_0x208f7f(0x3db),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x35b)],{'options':_0x170b02,'onChange':_0x455cf0[_0x208f7f(0x175)]}),(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x192)],{}),(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x31e)],{}),(0x0,o[_0x208f7f(0x431)])(D,{}),(0x0,o['jsx'])(t[_0x208f7f(0x33d)],{}),(0x0,o['jsxs'])('div',{'children':[(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x234)],{'title':_0x34d73b['t'](_0x208f7f(0x3ca))}),(0x0,o[_0x208f7f(0x431)])(r[_0x208f7f(0x18e)],{'className':'univer-w-full\x20univer-justify-start','onClick':_0x455cf0[_0x208f7f(0x39d)],'children':_0x34d73b['t'](_0x208f7f(0x253))})]}),(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x298)],{}),(0x0,o[_0x208f7f(0x431)])(t['ChartTypeSpecificDataSection'],{}),(0x0,o[_0x208f7f(0x431)])(t['ChartWaterfallSetupFields'],{'defaultValues':E[_0x208f7f(0x2ea)]})]})}):(0x0,o[_0x208f7f(0x431)])(t[_0x208f7f(0x230)],{'id':re,'label':_0x34d73b['t'](_0x208f7f(0x21e)),'children':(0x0,o[_0x208f7f(0x431)])(te,{'route':_0x455cf0['initialRoute']})}),_0x455cf0[_0x208f7f(0x347)]&&(0x0,o[_0x208f7f(0x431)])(_0x208f7f(0x3db),{'className':_0x208f7f(0x228),'children':(0x0,o[_0x208f7f(0x431)])(r[_0x208f7f(0x18e)],{'type':'button','variant':_0x208f7f(0x37e),'onClick':_0x455cf0[_0x208f7f(0x347)],'children':_0x34d73b['t'](_0x208f7f(0x1e3))})})]});}const j=_0x56a991(0x424),re=_0x56a991(0x1ce);function M(_0x30b6a2){'@babel/helpers - typeof';const _0x260988=_0x56a991;return M=typeof Symbol==_0x260988(0x275)&&typeof Symbol[_0x260988(0x3a9)]==_0x260988(0x42c)?function(_0x15038a){return typeof _0x15038a;}:function(_0x24ee30){const _0x54673f=_0x260988;return _0x24ee30&&typeof Symbol==_0x54673f(0x275)&&_0x24ee30['constructor']===Symbol&&_0x24ee30!==Symbol[_0x54673f(0x3ce)]?'symbol':typeof _0x24ee30;},M(_0x30b6a2);}function ie(_0x75a263,_0x5822cf){const _0x296831=_0x56a991;if(M(_0x75a263)!=_0x296831(0x1b9)||!_0x75a263)return _0x75a263;var _0x396e0d=_0x75a263[Symbol[_0x296831(0x194)]];if(_0x396e0d!==void 0x0){var _0x97c369=_0x396e0d['call'](_0x75a263,_0x5822cf||_0x296831(0x37e));if(M(_0x97c369)!='object')return _0x97c369;throw TypeError(_0x296831(0x1f1));}return(_0x5822cf===_0x296831(0x352)?String:Number)(_0x75a263);}function ae(_0x37cc5f){const _0xffaa8d=_0x56a991;var _0x3b8fe5=ie(_0x37cc5f,_0xffaa8d(0x352));return M(_0x3b8fe5)==_0xffaa8d(0x42c)?_0x3b8fe5:_0x3b8fe5+'';}function N(_0x2e68d3,_0x1a7831,_0x250aca){const _0x4b37ab=_0x56a991;return(_0x1a7831=ae(_0x1a7831))in _0x2e68d3?Object[_0x4b37ab(0x387)](_0x2e68d3,_0x1a7831,{'value':_0x250aca,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e68d3[_0x1a7831]=_0x250aca,_0x2e68d3;}var P=class extends e['Disposable']{constructor(_0x54ab1a,_0x1b48b4,_0x3708eb,_0x32edf2,_0x59c431=!0x0){const _0x3d9939=_0x56a991;super(),this[_0x3d9939(0x2ff)]=_0x54ab1a,this[_0x3d9939(0x315)]=_0x1b48b4,this[_0x3d9939(0x177)]=_0x3708eb,this['_getRenderRect']=_0x32edf2,this[_0x3d9939(0x288)]=_0x59c431,N(this,_0x3d9939(0x28e),n[_0x3d9939(0x206)][_0x3d9939(0x318)]),N(this,_0x3d9939(0x1bc),null),N(this,_0x3d9939(0x2fb),{});}[_0x56a991(0x33c)](){const _0x2bd068=_0x56a991;var _0x2e6354;let _0x11393f=(_0x2e6354=this['_getRenderRect'])==null?void 0x0:_0x2e6354['call'](this);if(_0x11393f)return{'width':Math[_0x2bd068(0x3bf)](0x1,_0x11393f[_0x2bd068(0x220)]),'height':Math[_0x2bd068(0x3bf)](0x1,_0x11393f[_0x2bd068(0x163)])};let _0x2872d7=this[_0x2bd068(0x315)]['getBoundingClientRect']();return{'width':Math['max'](0x1,_0x2872d7['width']),'height':Math[_0x2bd068(0x3bf)](0x1,_0x2872d7[_0x2bd068(0x163)])};}[_0x56a991(0x1f7)](_0x58be12){const _0x33c660=_0x56a991;this[_0x33c660(0x2fb)]=_0x58be12,this['_applyHostStyle'](this[_0x33c660(0x315)],_0x58be12);}async[_0x56a991(0x38b)](){const _0x18691e=_0x56a991;if(!this[_0x18691e(0x1bc)]){let _0xd460e7=document[_0x18691e(0x236)]('div');_0xd460e7[_0x18691e(0x24b)][_0x18691e(0x2c7)]=_0x18691e(0x199),_0xd460e7[_0x18691e(0x24b)]['border']='0',_0xd460e7[_0x18691e(0x24b)][_0x18691e(0x25a)]='content-box',_0xd460e7[_0x18691e(0x24b)][_0x18691e(0x32f)]=_0x18691e(0x1f0),_0xd460e7['className']=_0x18691e(0x224),this[_0x18691e(0x1bc)]=_0xd460e7,this[_0x18691e(0x315)][_0x18691e(0x210)](_0xd460e7);}return this[_0x18691e(0x29a)](),this[_0x18691e(0x1bc)];}[_0x56a991(0x2a2)](){const _0x54e9e7=_0x56a991;return!!(this['_mountNode']&&this[_0x54e9e7(0x315)][_0x54e9e7(0x2c3)](this[_0x54e9e7(0x1bc)]));}[_0x56a991(0x29a)](){const _0x3cba49=_0x56a991;let _0x2b607a=this[_0x3cba49(0x33c)]();this['_manageHostSize']&&this['_setElementSize'](this[_0x3cba49(0x315)],_0x2b607a),this[_0x3cba49(0x1bc)]&&this[_0x3cba49(0x3d1)](this[_0x3cba49(0x1bc)],this[_0x3cba49(0x34e)](_0x2b607a));}[_0x56a991(0x379)](){}[_0x56a991(0x2d4)](){}[_0x56a991(0x25b)](){const _0x347d16=_0x56a991;var _0x37f6ac;(_0x37f6ac=this['_mountNode'])==null||_0x37f6ac[_0x347d16(0x1cb)](),this[_0x347d16(0x1bc)]=null,super[_0x347d16(0x25b)]();}['_setElementSize'](_0x3fca7c,_0x173383){const _0x555f48=_0x56a991;_0x3fca7c[_0x555f48(0x24b)][_0x555f48(0x220)]=_0x173383[_0x555f48(0x220)]+'px',_0x3fca7c['style'][_0x555f48(0x163)]=_0x173383['height']+'px';}[_0x56a991(0x34e)](_0x11a956){const _0xa02944=_0x56a991;if(!(0x0,n[_0xa02944(0x1b8)])(this[_0xa02944(0x2fb)]))return _0x11a956;let _0x2bc653=(0x0,n[_0xa02944(0x3da)])(_0x11a956,this[_0xa02944(0x2fb)]);return{'width':_0x2bc653[_0xa02944(0x220)],'height':_0x2bc653[_0xa02944(0x163)]};}};function F(_0x31bfb5){const _0x2b6ff6=_0x56a991;var _0x425843;let _0x1d5144=(_0x425843=_0x31bfb5[_0x2b6ff6(0x391)](/^#([\da-f]{3}|[\da-f]{6})$/i))==null?void 0x0:_0x425843[0x1];if(_0x1d5144){let _0x46249c=_0x1d5144[_0x2b6ff6(0x42a)]===0x3?_0x1d5144[_0x2b6ff6(0x3f7)]('')[_0x2b6ff6(0x41e)](_0x166360=>''+_0x166360+_0x166360)[_0x2b6ff6(0x1dd)](''):_0x1d5144;return _0x2b6ff6(0x1b7)+Number[_0x2b6ff6(0x3f2)](_0x46249c[_0x2b6ff6(0x22b)](0x0,0x2),0x10)+',\x20'+Number[_0x2b6ff6(0x3f2)](_0x46249c[_0x2b6ff6(0x22b)](0x2,0x4),0x10)+',\x20'+Number[_0x2b6ff6(0x3f2)](_0x46249c[_0x2b6ff6(0x22b)](0x4,0x6),0x10)+')';}let _0x5044d0=document[_0x2b6ff6(0x236)](_0x2b6ff6(0x393));return _0x5044d0[_0x2b6ff6(0x24b)]['color']=_0x31bfb5,_0x5044d0[_0x2b6ff6(0x24b)]['color']||_0x31bfb5;}let I=class extends e[_0x56a991(0x1d1)]{constructor(_0x1c22dd,_0x3c7b5c,_0x36dfcf){const _0xff5fb7=_0x56a991;super(),this['_localeService']=_0x1c22dd,this[_0xff5fb7(0x1de)]=_0x3c7b5c,this[_0xff5fb7(0x221)]=_0x36dfcf;}[_0x56a991(0x2b0)](_0x5eed91){const _0x5ab9dd=_0x56a991;return _0x5eed91?this['_renderModelManager'][_0x5ab9dd(0x2b0)](_0x5eed91,this[_0x5ab9dd(0x1dc)]()):this['_renderModelManager'][_0x5ab9dd(0x2b0)]();}[_0x56a991(0x25f)](_0x485a8e){const _0x3aea05=_0x56a991;let _0xb396e0=_0x485a8e[_0x3aea05(0x3f9)][_0x3aea05(0x2f8)];if(!_0xb396e0)throw Error(_0x3aea05(0x419)+_0x485a8e[_0x3aea05(0x2ff)]+'\x20has\x20no\x20render\x20config.');let _0x5c5911=this[_0x3aea05(0x213)][_0x3aea05(0x385)]();return{'chartConfig':_0xb396e0,'chartStyle':(0x0,n[_0x3aea05(0x3ad)])({..._0x485a8e[_0x3aea05(0x3f9)]['style'],'runtime':_0x485a8e['model'][_0x3aea05(0x284)](_0x5c5911),'direction':_0x5c5911},_0xb396e0[_0x3aea05(0x402)])};}[_0x56a991(0x18c)](_0x336bb2,_0x5f1f87,_0x58b849){const _0x2d7867=_0x56a991;let {chartConfig:_0x53ed99,chartStyle:_0x1cf535}=this['createRenderInput'](_0x336bb2),_0x369288=this[_0x2d7867(0x221)]['getCurrentRenderModel']();return{'spec':_0x369288[_0x2d7867(0x325)](_0x369288[_0x2d7867(0x23b)](_0x53ed99,_0x1cf535),{'chartConfig':_0x53ed99,'chartStyle':_0x1cf535,'chartInstance':_0x58b849},_0x5f1f87),'chartConfig':_0x53ed99,'chartStyle':_0x1cf535,'hostStyle':this[_0x2d7867(0x3eb)](_0x1cf535)};}['getHostStyle'](_0x3876f2){const _0x1731eb=_0x56a991;return(0x0,n[_0x1731eb(0x1e2)])({'style':_0x3876f2,'getRenderColor':_0x165143=>this['_chartThemeService']['getRenderColor'](_0x165143)});}[_0x56a991(0x3c8)](_0xedd4eb,_0xfca07e){const _0x5041e5=_0x56a991;var _0x2311d0;let _0x51d239=(_0x2311d0=_0xfca07e[_0x5041e5(0x1ba)])!=null&&_0x2311d0['color']&&_0xfca07e[_0x5041e5(0x1ba)][_0x5041e5(0x220)]?_0xfca07e[_0x5041e5(0x1ba)][_0x5041e5(0x220)]+_0x5041e5(0x2f1)+F(_0xfca07e[_0x5041e5(0x1ba)][_0x5041e5(0x405)]):'';_0xedd4eb['style']['border']=_0x51d239,_0xedd4eb[_0x5041e5(0x24b)][_0x5041e5(0x438)]=_0xfca07e['fill']?F(_0xfca07e[_0x5041e5(0x24e)]):_0x5041e5(0x3f1),_0xedd4eb[_0x5041e5(0x24b)]['borderRadius']=_0xfca07e['radius']?_0xfca07e[_0x5041e5(0x3e8)]+'px':'',_0xedd4eb[_0x5041e5(0x24b)][_0x5041e5(0x32f)]=_0x5041e5(0x1f0),_0xedd4eb[_0x5041e5(0x24b)][_0x5041e5(0x25a)]='border-box';}[_0x56a991(0x1dc)](){const _0xc7021b=_0x56a991;return{'resolveHostStyle':({style:_0x2f9357})=>this['getHostStyle'](_0x2f9357),'resolveRenderBackgroundColor':({hostStyle:_0x19b21b})=>_0x19b21b[_0xc7021b(0x24e)],'prepareSpec':({mode:_0x388a20,spec:_0x4f5830})=>_0x388a20===_0xc7021b(0x238)?{..._0x4f5830,'animation':!0x1,'tooltip':{'show':!0x1}}:_0x4f5830};}['dispose'](){const _0x220280=_0x56a991;super[_0x220280(0x25b)]();}};I=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(e['LocaleService'])),x(0x1,(0x0,e[_0x56a991(0x2b5)])(n['ChartThemeService'])),x(0x2,n[_0x56a991(0x16b)])],I);function oe(_0x539303,_0x30b6da,_0x2eb314,_0x39e4d6,_0x520209,_0x518a27,_0x21f4e7){const _0x788a9=_0x56a991;let {model:_0x453198,source:_0x5cbe31}=(0x0,n['createChartRuntime'])({'id':_0x539303,'chartType':_0x2eb314,'dataSet':(0x0,n[_0x788a9(0x375)])((0x0,t[_0x788a9(0x244)])(_0x30b6da)),'isRowDirection':(_0x39e4d6==null?void 0x0:_0x39e4d6[_0x788a9(0x3a0)])!==_0x788a9(0x1c8),'context':_0x39e4d6==null?void 0x0:_0x39e4d6['chartContext'],'dataAggregation':_0x520209,'style':_0x518a27,'injector':_0x21f4e7});return{'unitId':_0x788a9(0x19f),'chartId':_0x539303,'dataSourceId':_0x539303+_0x788a9(0x340),'model':_0x453198,'source':_0x5cbe31};}function se(_0x1a6c91){const _0xb47426=_0x56a991;let _0x5461e4=(0x0,i[_0xb47426(0x1ac)])(e[_0xb47426(0x1e8)]),_0x23572b=(0x0,i[_0xb47426(0x1ac)])(e[_0xb47426(0x34a)]),_0x3d8b8c=(0x0,i['useDependency'])(I),_0x56f571=(0x0,a[_0xb47426(0x3a7)])(null),_0x1c071b=(0x0,a[_0xb47426(0x3a7)])(null),_0x4c287f=(0x0,a['useRef'])(_0xb47426(0x37b)+(0x0,e[_0xb47426(0x281)])(0x8)),[_0x19996d,_0x34e074]=(0x0,a['useState'])(null);return(0x0,a['useEffect'])(()=>{const _0x15bcda=_0xb47426;let _0x35cb52=_0x56f571[_0x15bcda(0x27c)];if(!_0x35cb52)return;_0x34e074(null),_0x35cb52['replaceChildren'](),_0x1c071b[_0x15bcda(0x27c)]=L(_0x35cb52);let _0x3c9ab1=!0x1,_0x44bb3a=_0x2ca02a=>{_0x3c9ab1||_0x34e074(_0x2ca02a);},_0x287c15=null,_0x2c4d0b=null,_0x323ed6=null;try{_0x287c15=oe(_0x4c287f[_0x15bcda(0x27c)],_0x1a6c91['values'],_0x1a6c91['chartType'],_0x1a6c91[_0x15bcda(0x35d)],_0x1a6c91[_0x15bcda(0x22a)],_0x1a6c91[_0x15bcda(0x24b)],_0x23572b),_0x2c4d0b=new P(_0x287c15[_0x15bcda(0x2ff)],_0x35cb52,(_0x2e0b32,_0x565acf)=>_0x3d8b8c[_0x15bcda(0x3c8)](_0x2e0b32,_0x565acf),()=>_0x1c071b[_0x15bcda(0x27c)]??L(_0x35cb52),!0x1),_0x323ed6=_0x3d8b8c[_0x15bcda(0x2b0)](n[_0x15bcda(0x206)][_0x15bcda(0x318)]),_0x323ed6['bind'](_0x2c4d0b);}catch(_0x1ec48d){return _0x44bb3a(_0x1ec48d),()=>{const _0x1446d9=_0x15bcda;_0x3c9ab1=!0x0,_0x35cb52[_0x1446d9(0x334)]();};}if(!_0x287c15||!_0x2c4d0b||!_0x323ed6)return()=>{const _0x22b33b=_0x15bcda;_0x3c9ab1=!0x0,_0x35cb52[_0x22b33b(0x334)]();};let _0xe2e8d6=_0x287c15,_0x4eab7d=_0x2c4d0b,_0x30ec26=_0x323ed6,_0x4ce1d3=()=>{const _0x421671=_0x15bcda;let _0x2cc594,_0x42fdeb;try{({chartConfig:_0x2cc594,chartStyle:_0x42fdeb}=_0x3d8b8c[_0x421671(0x25f)](_0xe2e8d6));}catch(_0x35830d){_0x44bb3a(_0x35830d);return;}_0x30ec26['render']({'chartId':_0xe2e8d6[_0x421671(0x2ff)],'config':_0x2cc594,'style':_0x42fdeb})[_0x421671(0x265)](()=>{_0x3c9ab1||_0x34e074(null);})['catch'](_0x44bb3a);},_0x4e451e=_0xe2e8d6['model'][_0x15bcda(0x31c)]['subscribe'](_0x1dee88=>{_0x1dee88&&_0x4ce1d3();}),_0x3bb145=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x1e20f9=>{const _0x3171a1=_0x15bcda;var _0x214cf2;let _0x2862f1=(_0x214cf2=_0x1e20f9[0x0])==null?void 0x0:_0x214cf2[_0x3171a1(0x295)];_0x1c071b[_0x3171a1(0x27c)]=_0x2862f1&&_0x2862f1[_0x3171a1(0x220)]>0x0&&_0x2862f1[_0x3171a1(0x163)]>0x0?{'width':_0x2862f1[_0x3171a1(0x220)],'height':_0x2862f1['height']}:L(_0x35cb52),_0x4ce1d3();});return _0x3bb145==null||_0x3bb145[_0x15bcda(0x2de)](_0x35cb52),()=>{const _0x182fad=_0x15bcda;_0x3c9ab1=!0x0,_0x4e451e[_0x182fad(0x1cd)](),_0x3bb145==null||_0x3bb145[_0x182fad(0x40c)](),_0x30ec26[_0x182fad(0x25b)](),_0x4eab7d[_0x182fad(0x25b)](),_0xe2e8d6['model'][_0x182fad(0x25b)](),_0xe2e8d6[_0x182fad(0x32c)][_0x182fad(0x25b)](),_0x35cb52[_0x182fad(0x334)]();};},[_0x23572b,_0x1a6c91[_0xb47426(0x2e7)],_0x1a6c91[_0xb47426(0x35d)],_0x1a6c91['dataAggregation'],_0x1a6c91[_0xb47426(0x24b)],_0x1a6c91[_0xb47426(0x2e3)],_0x3d8b8c]),(0x0,o['jsxs'])(_0xb47426(0x3db),{'className':_0xb47426(0x1b3),'children':[(0x0,o[_0xb47426(0x431)])(_0xb47426(0x3db),{'ref':_0x56f571,'className':'univer-absolute\x20univer-inset-0\x20univer-min-h-0\x20univer-min-w-0\x20univer-overflow-hidden\x20univer-rounded-lg'}),_0x19996d!=null&&(0x0,o[_0xb47426(0x431)])(_0xb47426(0x3db),{'className':_0xb47426(0x1b2),'children':_0x5461e4['t'](_0xb47426(0x1ca))})]});}function L(_0x185d45){const _0x224192=_0x56a991;let _0x4910ce=_0x185d45['getBoundingClientRect']();return _0x4910ce[_0x224192(0x220)]<=0x0||_0x4910ce[_0x224192(0x163)]<=0x0?null:{'width':_0x4910ce[_0x224192(0x220)],'height':_0x4910ce['height']};}const ce=_0x56a991(0x3f3),le='doc-chart.dialog.editor';function ue(_0x1f0816){const _0x1e2208=_0x56a991;var _0xdcd06d;let {unitId:_0x1f9295,chartId:_0x41a3a3,drawingId:_0x34a80b}=_0x1f0816,_0x6ea219=(0x0,i[_0x1e2208(0x1ac)])(e[_0x1e2208(0x1e8)]),_0x4f7e4f=(0x0,i['useDependency'])(e[_0x1e2208(0x34a)]),_0x1ec960=(0x0,i[_0x1e2208(0x1ac)])(e[_0x1e2208(0x19b)]),_0x3bdaa4=(0x0,i[_0x1e2208(0x1ac)])(n[_0x1e2208(0x30b)]),_0x19dcf7=(0x0,i[_0x1e2208(0x1ac)])(s[_0x1e2208(0x211)]),_0x52afd9=(0x0,i['useDependency'])(C),_0x1f7168=(0x0,i[_0x1e2208(0x1ac)])(w),_0x58c036=(0x0,a['useMemo'])(()=>_0x52afd9[_0x1e2208(0x301)](_0x1f9295,_0x41a3a3),[_0x41a3a3,_0x52afd9,_0x1f9295]),_0x4ae2ac=_0x3bdaa4['getChart'](_0x1f9295,_0x41a3a3),_0x27ed39=(0x0,a[_0x1e2208(0x23c)])(()=>_0x19dcf7==null?void 0x0:_0x19dcf7['ensureChartModel'](_0x1f9295,_0x41a3a3),[_0x41a3a3,_0x19dcf7,_0x1f9295]),_0x25405c=(0x0,i[_0x1e2208(0x423)])(_0x27ed39==null?void 0x0:_0x27ed39[_0x1e2208(0x3f9)][_0x1e2208(0x381)],(_0x27ed39==null?void 0x0:_0x27ed39['model'][_0x1e2208(0x2e7)])??(_0x4ae2ac==null?void 0x0:_0x4ae2ac[_0x1e2208(0x2e7)])),_0x3ce518=(0x0,i[_0x1e2208(0x423)])(_0x27ed39==null?void 0x0:_0x27ed39[_0x1e2208(0x3f9)][_0x1e2208(0x30d)],(_0x27ed39==null?void 0x0:_0x27ed39[_0x1e2208(0x3f9)][_0x1e2208(0x35d)])??(_0x4ae2ac==null||(_0xdcd06d=_0x4ae2ac[_0x1e2208(0x35d)])==null?void 0x0:_0xdcd06d['chartContext'])),_0x1f39d1=(0x0,i[_0x1e2208(0x423)])(_0x27ed39==null?void 0x0:_0x27ed39[_0x1e2208(0x3f9)][_0x1e2208(0x3c5)],(_0x27ed39==null?void 0x0:_0x27ed39['model'][_0x1e2208(0x22a)])??(_0x4ae2ac==null?void 0x0:_0x4ae2ac[_0x1e2208(0x22a)])),_0x5ccc76=(0x0,i[_0x1e2208(0x423)])(_0x27ed39==null?void 0x0:_0x27ed39[_0x1e2208(0x3f9)][_0x1e2208(0x2a1)],(_0x27ed39==null?void 0x0:_0x27ed39[_0x1e2208(0x3f9)]['style'])??(_0x4ae2ac==null?void 0x0:_0x4ae2ac[_0x1e2208(0x24b)])),_0x6853a0=(0x0,a[_0x1e2208(0x23c)])(()=>({..._0x4ae2ac==null?void 0x0:_0x4ae2ac[_0x1e2208(0x35d)],'chartContext':_0x3ce518}),[_0x4ae2ac==null?void 0x0:_0x4ae2ac[_0x1e2208(0x35d)],_0x3ce518]),[_0x13efdc,_0xdf0fbe]=(0x0,a[_0x1e2208(0x250)])(_0x58c036),[_0x5e4559,_0x1445da]=(0x0,a[_0x1e2208(0x250)])(()=>(_0x58c036==null?void 0x0:_0x58c036['values'][_0x1e2208(0x41e)](_0x8ca2bc=>[..._0x8ca2bc]))??[]),[_0x3bfa52,_0x441900]=(0x0,a[_0x1e2208(0x250)])(()=>(_0x58c036==null?void 0x0:_0x58c036[_0x1e2208(0x2e3)][_0x1e2208(0x41e)](_0x197fee=>[..._0x197fee]))??[]),[_0x317ac9,_0x28bc4a]=(0x0,a[_0x1e2208(0x250)])(()=>_0x4ae2ac==null?void 0x0:_0x4ae2ac[_0x1e2208(0x2e7)]),[_0x3cacad,_0x646674]=(0x0,a[_0x1e2208(0x250)])(()=>{const _0x30f69c=_0x1e2208;var _0x36e202;return((_0x36e202=_0x1f0816['route'])==null?void 0x0:_0x36e202[_0x30f69c(0x1df)])===t[_0x30f69c(0x219)]['Data']?_0x30f69c(0x2db):_0x30f69c(0x3ef);}),[_0x384b30,_0x3453dd]=(0x0,a[_0x1e2208(0x250)])(null),_0x6d8a03=(0x0,a['useMemo'])(()=>{const _0xebc3ca=_0x1e2208;var _0x4fe635;let _0x3819ca=_0x1ec960[_0xebc3ca(0x425)](_0x1f9295,e['UniverInstanceType'][_0xebc3ca(0x404)]);if(!_0x27ed39||!_0x3819ca)return null;let _0x36df33=_0x34a80b??((_0x4fe635=Object[_0xebc3ca(0x2e3)](_0x3819ca[_0xebc3ca(0x40a)]()??{})[_0xebc3ca(0x356)](_0x47635b=>_0x47635b[_0xebc3ca(0x2ff)]===_0x41a3a3))==null?void 0x0:_0x4fe635[_0xebc3ca(0x292)]);return _0x36df33?new t['ChartHostAdapter'](_0x27ed39[_0xebc3ca(0x3f9)],new s[(_0xebc3ca(0x28c))]({'unitId':_0x1f9295,'chartId':_0x41a3a3,'drawingId':_0x36df33,'documentDataModel':_0x3819ca,'injector':_0x4f7e4f})):null;},[_0x41a3a3,_0x34a80b,_0x4f7e4f,_0x27ed39,_0x1f9295,_0x1ec960]);return!_0x13efdc||!_0x4ae2ac?(0x0,o[_0x1e2208(0x431)])(_0x1e2208(0x3db),{'className':_0x1e2208(0x3cc),'children':_0x6ea219['t'](_0x1e2208(0x181))}):(0x0,o['jsxs'])('div',{'className':'univer-flex\x20univer-w-full\x20univer-min-w-0\x20univer-flex-col\x20univer-overflow-hidden\x20univer-overscroll-contain','style':{'height':_0x1e2208(0x2dd)},'children':[(0x0,o[_0x1e2208(0x431)])(t[_0x1e2208(0x1d0)],{'ariaLabel':_0x6ea219['t'](_0x1e2208(0x3af)),'className':_0x1e2208(0x198),'value':_0x3cacad,'items':[{'label':_0x6ea219['t']('docs-chart-ui.floatMenu.menuTitle.chart'),'panelId':de,'value':'chart'},{'label':_0x6ea219['t']('docs-chart-ui.common.data'),'panelId':fe,'value':'data'}],'variant':_0x1e2208(0x28f),'onChange':_0x646674}),(0x0,o[_0x1e2208(0x3ba)])(_0x1e2208(0x3db),{'id':_0x3cacad==='data'?fe:de,'aria-labelledby':(_0x3cacad==='data'?fe:de)+_0x1e2208(0x1a8),'className':_0x1e2208(0x20b),'role':'tabpanel','children':[_0x3cacad===_0x1e2208(0x2db)?(0x0,o[_0x1e2208(0x431)])(b,{'values':_0x5e4559,'dataSource':_0x13efdc['dataSource'],'sharingCount':_0x13efdc[_0x1e2208(0x34f)],'onCancel':()=>_0x646674(_0x1e2208(0x3ef)),'onSubmit':(_0x1b5666,_0x33bdee)=>{const _0x17a0d2=_0x1e2208;if(!_0x52afd9['updateData'](_0x1f9295,_0x41a3a3,_0x1b5666,_0x33bdee)){_0x3453dd(_0x6ea219['t']('docs-chart-ui.updateChartFailed'));return;}_0x3453dd(null);let _0xb5b00b=_0x52afd9['getEditorState'](_0x1f9295,_0x41a3a3);_0xdf0fbe(_0xb5b00b??_0x13efdc),_0x1445da((_0xb5b00b==null?void 0x0:_0xb5b00b[_0x17a0d2(0x2e3)])??_0x1b5666),_0x441900((_0xb5b00b==null?void 0x0:_0xb5b00b[_0x17a0d2(0x2e3)])??_0x1b5666),_0x646674('chart');},'onDataSourceSubmit':_0x1b8564=>{const _0x1f1cf3=_0x1e2208;if(!_0x52afd9[_0x1f1cf3(0x353)](_0x1f9295,_0x41a3a3,_0x1b8564)){_0x3453dd(_0x6ea219['t'](_0x1f1cf3(0x2aa)));return;}_0x3453dd(null),_0xdf0fbe(_0x52afd9['getEditorState'](_0x1f9295,_0x41a3a3)??_0x13efdc),_0x646674(_0x1f1cf3(0x3ef));}}):(0x0,o[_0x1e2208(0x3ba)])(_0x1e2208(0x3db),{'className':_0x1e2208(0x3d0),'children':[(0x0,o['jsx'])('div',{'className':_0x1e2208(0x28d),'children':(0x0,o[_0x1e2208(0x431)])(se,{'values':_0x3bfa52,'chartType':_0x25405c??_0x317ac9??_0x4ae2ac[_0x1e2208(0x2e7)],'context':_0x6853a0,'dataAggregation':_0x1f39d1,'style':_0x5ccc76})}),(0x0,o['jsxs'])(_0x1e2208(0x3db),{'className':_0x1e2208(0x36e),'children':[(0x0,o[_0x1e2208(0x431)])('div',{'className':_0x1e2208(0x172),'children':_0x6d8a03?(0x0,o[_0x1e2208(0x431)])(t[_0x1e2208(0x2ac)],{'chartUIService':_0x1f7168,'hostAdapter':_0x6d8a03,'children':(0x0,o[_0x1e2208(0x431)])(ne,{'initialRoute':_0x1f0816[_0x1e2208(0x3c9)],'onClose':_0x1f0816[_0x1e2208(0x347)],'onPreviewChartTypeChange':_0x28bc4a,'onModifyData':()=>_0x646674('data')})}):(0x0,o[_0x1e2208(0x431)])('div',{'className':'univer-p-4\x20univer-text-sm\x20univer-text-gray-500\x20dark:!univer-text-gray-400','children':_0x6ea219['t'](_0x1e2208(0x181))})}),_0x384b30&&(0x0,o[_0x1e2208(0x431)])(_0x1e2208(0x3db),{'className':_0x1e2208(0x3d8),'children':_0x384b30})]})]}),_0x3cacad==='data'&&_0x384b30&&(0x0,o[_0x1e2208(0x431)])('div',{'className':_0x1e2208(0x1ed),'children':_0x384b30})]})]});}const de=_0x56a991(0x3fd),fe=_0x56a991(0x33e);function R(_0x634739,_0x2dfa4c){const _0x2d3c57=_0x56a991;var _0xb6afc7;if(!(_0x2dfa4c!=null&&_0x2dfa4c[_0x2d3c57(0x249)])||_0x2dfa4c[_0x2d3c57(0x312)]==null)return null;let _0x4187ba=_0x2dfa4c[_0x2d3c57(0x3b7)]??'';if(_0x4187ba!=='')return null;let _0x23ff32=(_0xb6afc7=_0x634739[_0x2d3c57(0x2a5)](_0x4187ba))==null?void 0x0:_0xb6afc7[_0x2d3c57(0x263)]();if(!_0x23ff32)return null;let _0x1f9781=pe(_0x23ff32,_0x2dfa4c['startOffset']);if(!me(_0x23ff32,_0x1f9781))return null;let _0x2ad189=ge(_0x23ff32,_0x1f9781);return _0x2ad189?{'unitId':_0x634739['getUnitId'](),'index':_0x2ad189['index'],'segmentId':_0x4187ba,'breakOffsets':_0x2ad189[_0x2d3c57(0x2b3)]}:null;}function pe(_0x309ce2,_0x4f12f1){const _0x44be56=_0x56a991;return _0x4f12f1===0x0&&_0x309ce2['dataStream'][0x0]===e[_0x44be56(0x1d9)][_0x44be56(0x208)]?0x1:_0x4f12f1;}function me(_0x370631,_0x527204){const _0x5e477c=_0x56a991;return!(ye(_0x370631[_0x5e477c(0x205)],_0x527204)||be(_0x370631[_0x5e477c(0x3e1)],_0x527204)||xe(_0x370631[_0x5e477c(0x27a)],_0x527204));}function he(_0x1b1026,_0x326bfc){const _0x98492b=_0x56a991;let {dataStream:_0x1e8d88}=_0x1b1026;if(!_0x1e8d88||_0x326bfc<0x0||_0x326bfc>=_0x1e8d88[_0x98492b(0x42a)])return!0x1;let _0x4b0960=_e(_0x1e8d88,_0x326bfc)+0x1,_0x3d70c2=ve(_0x1e8d88,_0x326bfc);return _0x4b0960<=_0x3d70c2&&_0x1e8d88[_0x98492b(0x22b)](_0x4b0960,_0x3d70c2)['length']===0x0;}function ge(_0x4cff55,_0x8ec904){const _0x411a83=_0x56a991;let {dataStream:_0x1c45a}=_0x4cff55;if(!_0x1c45a||_0x8ec904<0x0||_0x8ec904>=_0x1c45a[_0x411a83(0x42a)])return null;if(he(_0x4cff55,_0x8ec904))return{'index':_0x8ec904,'breakOffsets':[]};let _0x26f21a=_e(_0x1c45a,_0x8ec904)+0x1,_0xe20ccb=ve(_0x1c45a,_0x8ec904);return _0x8ec904<=_0x26f21a?{'index':_0x8ec904,'breakOffsets':[_0x8ec904]}:_0x8ec904>=_0xe20ccb?{'index':_0x8ec904+0x1,'breakOffsets':[_0x8ec904]}:{'index':_0x8ec904+0x1,'breakOffsets':[_0x8ec904,_0x8ec904+0x1]};}function _e(_0x3db548,_0x2762d5){const _0x10bb2c=_0x56a991;let _0x2c474c=Math[_0x10bb2c(0x3bf)](0x0,Math[_0x10bb2c(0x231)](_0x2762d5-0x1,_0x3db548[_0x10bb2c(0x42a)]-0x1));return Math[_0x10bb2c(0x3bf)](_0x3db548['lastIndexOf'](e['DataStreamTreeTokenType'][_0x10bb2c(0x208)],_0x2c474c),_0x3db548['lastIndexOf'](e['DataStreamTreeTokenType'][_0x10bb2c(0x15e)],_0x2c474c));}function ve(_0x1ec754,_0x4e3458){const _0x501f1e=_0x56a991;let _0x4fefaa=Math['max'](0x0,Math[_0x501f1e(0x231)](_0x4e3458,_0x1ec754['length']-0x1)),_0x5daae1=_0x1ec754['indexOf'](e[_0x501f1e(0x1d9)]['PARAGRAPH'],_0x4fefaa),_0x4f7b7c=_0x1ec754[_0x501f1e(0x3ea)](e[_0x501f1e(0x1d9)][_0x501f1e(0x15e)],_0x4fefaa);return _0x5daae1===-0x1&&_0x4f7b7c===-0x1?_0x1ec754[_0x501f1e(0x42a)]:_0x5daae1===-0x1?_0x4f7b7c:_0x4f7b7c===-0x1?_0x5daae1:Math[_0x501f1e(0x231)](_0x5daae1,_0x4f7b7c);}function ye(_0x2e6d10,_0x5d8af6){const _0xb8a380=_0x56a991;return!!(_0x2e6d10!=null&&_0x2e6d10[_0xb8a380(0x24c)](_0x153b3e=>_0x153b3e[_0xb8a380(0x3ab)]<=_0x5d8af6&&_0x5d8af6<_0x153b3e[_0xb8a380(0x3d9)]));}function be(_0x3bc487,_0x14e0d2){const _0x1b1d4b=_0x56a991;return!!(_0x3bc487!=null&&_0x3bc487[_0x1b1d4b(0x24c)](_0xd8459d=>_0xd8459d['startIndex']<=_0x14e0d2&&_0x14e0d2<=_0xd8459d['endIndex']));}function xe(_0x1117d1,_0x555e01){const _0x407cb7=_0x56a991;return!!(_0x1117d1!=null&&_0x1117d1[_0x407cb7(0x24c)](_0x2f3615=>_0x2f3615[_0x407cb7(0x3ab)]===_0x555e01));}let z=class{constructor(_0x4dbdcf,_0x17cda2,_0x46264d,_0x5417ce){const _0x3fcd5c=_0x56a991;this[_0x3fcd5c(0x3cf)]=_0x4dbdcf,this[_0x3fcd5c(0x42d)]=_0x17cda2,this[_0x3fcd5c(0x18a)]=_0x46264d,this['_docContentInsertService']=_0x5417ce;}[_0x56a991(0x171)](_0x422fdb,_0x1c43ac,_0x590c36){const _0x22baff=_0x56a991;let _0x5b0528=(0x0,n[_0x22baff(0x2f2)])(_0x422fdb);return _0x5b0528[_0x22baff(0x42a)]!==0x0&&this[_0x22baff(0x3bd)](_0x5b0528,_0x1c43ac,_0x590c36);}[_0x56a991(0x3bd)](_0x470809,_0x330a54,_0x3411cf={}){const _0x423c1b=_0x56a991;if(_0x470809[_0x423c1b(0x42a)]===0x0)return!0x1;let _0x505af6=(0x0,t[_0x423c1b(0x2a3)])(_0x330a54,_0x470809);if(!_0x505af6['ok'])return!0x1;let _0x241d28=this[_0x423c1b(0x3cf)][_0x423c1b(0x35c)](e[_0x423c1b(0x432)][_0x423c1b(0x404)]);if(!_0x241d28)return!0x1;let _0x2e717b=this[_0x423c1b(0x37a)](_0x241d28,_0x3411cf[_0x423c1b(0x1f2)]);if(!_0x2e717b||!this[_0x423c1b(0x218)](_0x2e717b[_0x423c1b(0x2b3)],_0x2e717b[_0x423c1b(0x3b7)]))return!0x1;let _0x1da41c=_0x2e717b[_0x423c1b(0x3cd)],_0x554cab={'chartType':_0x330a54};_0x3411cf['context']&&(_0x554cab[_0x423c1b(0x35d)]=_0x3411cf[_0x423c1b(0x35d)]),_0x3411cf[_0x423c1b(0x22a)]&&(_0x554cab[_0x423c1b(0x22a)]=_0x3411cf['dataAggregation']),_0x3411cf['style']&&(_0x554cab[_0x423c1b(0x24b)]=_0x3411cf[_0x423c1b(0x24b)]);let _0xd62346=this[_0x423c1b(0x42d)][_0x423c1b(0x2ed)](s[_0x423c1b(0x2e0)]['id'],{'unitId':_0x1da41c,'textRange':{'startOffset':_0x2e717b[_0x423c1b(0x2e4)],'endOffset':_0x2e717b['index'],'collapsed':!0x0,'segmentId':_0x2e717b[_0x423c1b(0x3b7)]},'chart':_0x554cab,'dataSource':_0x3411cf[_0x423c1b(0x31d)]??{'values':_0x505af6[_0x423c1b(0x2e3)]},'width':_0x3411cf[_0x423c1b(0x220)],'height':_0x3411cf[_0x423c1b(0x163)],'focus':_0x3411cf['focus']});return _0xd62346?{..._0xd62346,'unitId':_0x1da41c}:!0x1;}[_0x56a991(0x37a)](_0x1c2c75,_0x106c54){const _0x46ce5d=_0x56a991;if(_0x106c54)return R(_0x1c2c75,_0x106c54);let _0x1b1229=_0x1c2c75[_0x46ce5d(0x19d)](),_0x6176f6=null;try{_0x6176f6=this[_0x46ce5d(0x2fc)][_0x46ce5d(0x2a8)](_0x1b1229);}catch{_0x6176f6=null;}return _0x6176f6?R(_0x1c2c75,{'startOffset':_0x6176f6[_0x46ce5d(0x312)],'endOffset':_0x6176f6[_0x46ce5d(0x257)],'collapsed':_0x6176f6[_0x46ce5d(0x312)]===_0x6176f6[_0x46ce5d(0x257)],'segmentId':_0x6176f6[_0x46ce5d(0x3b7)]??''}):R(_0x1c2c75,Se(this[_0x46ce5d(0x18a)]['getActiveTextRange']()));}['_prepareStandaloneInsertLine'](_0x4ec3ff,_0x3bd1bc){const _0x3892f9=_0x56a991;for(let _0x240be6 of _0x4ec3ff)if(!this['_commandService'][_0x3892f9(0x2ed)](l[_0x3892f9(0x2bd)]['id'],{'textRange':{'startOffset':_0x240be6,'endOffset':_0x240be6,'collapsed':!0x0,'segmentId':_0x3bd1bc}}))return!0x1;return!0x0;}};function _0x5456(_0x5300b8,_0x251536){_0x5300b8=_0x5300b8-0x15c;const _0x9b985a=_0x9b98();let _0x5456c8=_0x9b985a[_0x5300b8];return _0x5456c8;}z=S([x(0x0,e['IUniverInstanceService']),x(0x1,e[_0x56a991(0x411)]),x(0x2,(0x0,e[_0x56a991(0x2b5)])(c['DocSelectionManagerService'])),x(0x3,(0x0,e[_0x56a991(0x2b5)])(c[_0x56a991(0x2cc)]))],z);function Se(_0x4b0aff){const _0x177a9b=_0x56a991;return!_0x4b0aff||typeof _0x4b0aff!=_0x177a9b(0x1b9)?null:_0x4b0aff;}const Ce=_0x56a991(0x2af),we=[_0x56a991(0x246),_0x56a991(0x40f),'B\x0918','C\x099']['join']('\x0a');function Te(_0x393bdf){const _0x50030c=_0x56a991;let _0x3099b3=(0x0,i['useDependency'])(z),_0x3e6762=(0x0,i[_0x50030c(0x1ac)])(e[_0x50030c(0x1e8)]),{defaultChartType:_0x4d3c8a=n['ChartTypeBits']['Column'],defaultTableText:_0x2a75d0=we,insertOptions:_0x8b8c12,onCancel:_0x1dcbe9,onInserted:_0x3868eb}=_0x393bdf,_0x49215d=(0x0,a[_0x50030c(0x23c)])(()=>(0x0,t[_0x50030c(0x3f5)])(t[_0x50030c(0x287)][_0x50030c(0x41e)](_0x6accf3=>({..._0x6accf3,'label':_0x3e6762['t'](_0x50030c(0x416)+_0x6accf3['labelId'])}))),[_0x3e6762]),[_0x18bc12,_0x3f7057]=(0x0,a['useState'])(String(_0x4d3c8a)),_0xbc37e9=_0x49215d[_0x50030c(0x356)](_0x22e5f8=>_0x22e5f8[_0x50030c(0x1b5)]===_0x18bc12),_0xa8e7a6=(_0xbc37e9==null?void 0x0:_0xbc37e9[_0x50030c(0x2e7)])??_0x4d3c8a,_0x5a69e5=_0x82db2=>(0x0,t[_0x50030c(0x235)])(_0x82db2,{'candlestickClose':_0x3e6762['t'](_0x50030c(0x1f6)),'candlestickHigh':_0x3e6762['t'](_0x50030c(0x31f)),'candlestickLow':_0x3e6762['t']('docs-chart-ui.candlestick.low'),'candlestickOpen':_0x3e6762['t'](_0x50030c(0x420)),'category':_0x3e6762['t'](_0x50030c(0x283)),'chordSource':_0x3e6762['t'](_0x50030c(0x415)),'chordTarget':_0x3e6762['t']('docs-chart-ui.chord.target'),'label':_0x3e6762['t'](_0x50030c(0x304)),'sunburstHierarchy':_0x3e6762['t'](_0x50030c(0x370)),'value':_0x3e6762['t'](_0x50030c(0x302)),'valueField':_0x3e6762['t'](_0x50030c(0x374))}),[_0x428346,_0x2e0cb7]=(0x0,a[_0x50030c(0x250)])(()=>_0x393bdf['defaultTableText']===void 0x0?_0x5a69e5(_0x4d3c8a)??(0x0,n[_0x50030c(0x2f2)])(_0x2a75d0):(0x0,n[_0x50030c(0x2f2)])(_0x2a75d0)),[_0x325fba,_0x5de5c0]=(0x0,a[_0x50030c(0x250)])('inline'),[_0x42cb8b,_0x4b8bbd]=(0x0,a[_0x50030c(0x250)])(null),[_0x15686c,_0xfe1927]=(0x0,a[_0x50030c(0x250)])([]),[_0x580117,_0x444c5a]=(0x0,a[_0x50030c(0x250)])(null),_0x46f663={[t[_0x50030c(0x327)][_0x50030c(0x434)]]:_0x3e6762['t'](_0x50030c(0x291)),[t[_0x50030c(0x327)]['EmptyData']]:_0x3e6762['t'](_0x50030c(0x322)),[t[_0x50030c(0x327)][_0x50030c(0x2ca)]]:_0x3e6762['t'](_0x50030c(0x1fe))};return(0x0,o[_0x50030c(0x3ba)])('div',{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','children':[(0x0,o['jsxs'])(_0x50030c(0x3db),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,o[_0x50030c(0x431)])('div',{'className':_0x50030c(0x309),'children':_0x3e6762['t'](_0x50030c(0x354))}),(0x0,o[_0x50030c(0x431)])(r['Select'],{'className':_0x50030c(0x1bf),'value':_0x18bc12,'options':_0x49215d,'onChange':_0x308c36=>{const _0x29966b=_0x50030c;var _0x201dbc;_0x3f7057(_0x308c36);let _0x3b7099=((_0x201dbc=_0x49215d[_0x29966b(0x356)](_0x5c388c=>_0x5c388c[_0x29966b(0x1b5)]===_0x308c36))==null?void 0x0:_0x201dbc[_0x29966b(0x2e7)])??Number(_0x308c36),_0x4ecf12=_0x5a69e5(_0x3b7099);_0x4ecf12&&_0x2e0cb7(_0x4ecf12);}})]}),(0x0,o[_0x50030c(0x431)])(t[_0x50030c(0x2ab)],{'mode':_0x325fba,'inlineContent':(0x0,o[_0x50030c(0x431)])(t[_0x50030c(0x382)],{'values':_0x428346,'minColumns':(0x0,t[_0x50030c(0x1e4)])(_0xa8e7a6),'parsePastedText':n[_0x50030c(0x2f2)],'onChange':_0x2e0cb7}),'onModeChange':_0x49e13d=>{_0x5de5c0(_0x49e13d),_0x4b8bbd(null),_0xfe1927([]);},'onPreviewChange':(_0x3ea470,_0x55f03f)=>{const _0x14b949=_0x50030c;_0x3ea470&&_0x55f03f['status']===n[_0x14b949(0x26b)][_0x14b949(0x24a)]&&_0x55f03f[_0x14b949(0x2e3)]?(_0x4b8bbd({'source':_0x3ea470}),_0xfe1927(_0x55f03f['values'][_0x14b949(0x41e)](_0x2790fc=>[..._0x2790fc]))):(_0x4b8bbd(null),_0xfe1927([]));}}),_0x580117&&(0x0,o['jsx'])(_0x50030c(0x3db),{'className':_0x50030c(0x3d8),'children':_0x580117}),(0x0,o[_0x50030c(0x3ba)])(_0x50030c(0x3db),{'className':_0x50030c(0x252),'children':[_0x1dcbe9&&(0x0,o[_0x50030c(0x431)])(r[_0x50030c(0x18e)],{'type':'button','variant':'default','onClick':_0x1dcbe9,'children':_0x3e6762['t'](_0x50030c(0x37c))}),(0x0,o[_0x50030c(0x431)])(r['Button'],{'type':_0x50030c(0x3f0),'variant':_0x50030c(0x368),'disabled':_0x325fba==='referenced'&&!_0x42cb8b,'onClick':()=>{const _0x499757=_0x50030c;var _0xcd25b3;let _0x37fefa=(0x0,t[_0x499757(0x25c)])({'optionId':_0x18bc12,'values':_0x325fba===_0x499757(0x19c)?_0x15686c:_0x428346});if(!_0x37fefa['ok']){_0x444c5a(_0x46f663[_0x37fefa['issue']['code']]);return;}let _0x5171e0=_0x325fba===_0x499757(0x19c)&&_0x42cb8b?{..._0x8b8c12,'dataSource':_0x42cb8b}:_0x8b8c12,_0x82d79a=_0x37fefa[_0x499757(0x280)]['style']?{..._0x5171e0,'style':{..._0x5171e0==null?void 0x0:_0x5171e0[_0x499757(0x24b)],'pie':{..._0x5171e0==null||(_0xcd25b3=_0x5171e0[_0x499757(0x24b)])==null?void 0x0:_0xcd25b3['pie'],..._0x37fefa[_0x499757(0x280)][_0x499757(0x24b)]['pie']}}}:_0x5171e0,_0x1f48d8=_0x3099b3['insertChart'](_0x37fefa[_0x499757(0x280)][_0x499757(0x2e3)],_0x37fefa[_0x499757(0x280)]['chartType'],_0x82d79a);if(!_0x1f48d8){_0x444c5a(_0x3e6762['t'](_0x499757(0x291)));return;}_0x444c5a(null),_0x3868eb==null||_0x3868eb(_0x1f48d8);},'children':_0x3e6762['t'](_0x50030c(0x179))})]})]});}const Ee=_0x56a991(0x1bb),De={},Oe=_0x56a991(0x3e9);let B=class extends e[_0x56a991(0x1d1)]{constructor(_0x9dc680,_0x20955b,_0x104989){const _0x14b5f5=_0x56a991;super(),this['_docClipboardService']=_0x9dc680,this[_0x14b5f5(0x22c)]=_0x20955b,this[_0x14b5f5(0x16f)]=_0x104989,this[_0x14b5f5(0x346)]();}[_0x56a991(0x346)](){const _0x1e2ba3=_0x56a991;this['disposeWithMe'](this[_0x1e2ba3(0x343)][_0x1e2ba3(0x2ec)]({'onCopyDocData':(_0x4baccb,_0x59682d)=>this[_0x1e2ba3(0x410)](_0x4baccb,_0x59682d[_0x1e2ba3(0x22d)])})),this[_0x1e2ba3(0x1b6)](this[_0x1e2ba3(0x22c)][_0x1e2ba3(0x1cc)]({'getPasteMutationInfos':_0x50c787=>this[_0x1e2ba3(0x17e)](_0x50c787)}));}[_0x56a991(0x410)](_0x213610,_0x49c0a2){const _0xe7bf59=_0x56a991;var _0x2e25f9;let _0x21bb28=(_0x2e25f9=_0x49c0a2[0x0])==null?void 0x0:_0x2e25f9['id'];if(!_0x21bb28)return _0x213610;let _0x39f385=Object[_0xe7bf59(0x2e3)](_0x213610[_0xe7bf59(0x1ae)]??{})[_0xe7bf59(0x1e7)](_0x3c493a=>this[_0xe7bf59(0x308)](_0x3c493a));if(_0x39f385['length']===0x0)return _0x213610;let _0x1eba33={'version':n[_0xe7bf59(0x35a)],'dataSources':{},'charts':{}};return _0x39f385[_0xe7bf59(0x24d)](_0x46eb35=>{const _0x2505f2=_0xe7bf59;let _0x9b2101=this[_0x2505f2(0x16f)]['getChart'](_0x21bb28,_0x46eb35[_0x2505f2(0x2ff)]);if(!_0x9b2101)return;let _0x3b4c41=this['_resourceService'][_0x2505f2(0x1ad)](_0x21bb28,_0x9b2101[_0x2505f2(0x3e0)]);_0x3b4c41&&(_0x1eba33[_0x2505f2(0x29b)][_0x9b2101['id']]=e[_0x2505f2(0x324)][_0x2505f2(0x31a)](_0x9b2101),_0x1eba33[_0x2505f2(0x1c7)][_0x3b4c41['id']]=_0x3b4c41);}),Object['keys'](_0x1eba33['charts'])[_0xe7bf59(0x42a)]===0x0?_0x213610:{..._0x213610,[Oe]:_0x1eba33};}[_0x56a991(0x17e)](_0x557f0c){const _0x5e33dd=_0x56a991;let _0x131708=_0x557f0c[_0x5e33dd(0x17c)][Oe];if(!_0x131708)return{'redoMutations':[],'undoMutations':[]};let _0x541752=new Map(),_0x5b862b=[],_0x363632=[],_0x5dedfb=[],_0x28322c=[];return _0x557f0c['customBlockMappings']['forEach'](_0x3ffe15=>{const _0x54681b=_0x5e33dd;if(!this['_isDocChartDrawing'](_0x3ffe15[_0x54681b(0x232)])||!this[_0x54681b(0x308)](_0x3ffe15[_0x54681b(0x38e)]))return;let _0x45850c=_0x131708[_0x54681b(0x29b)][_0x3ffe15[_0x54681b(0x232)][_0x54681b(0x2ff)]];if(!_0x45850c)return;let _0x381c0e=_0x131708[_0x54681b(0x1c7)][_0x45850c[_0x54681b(0x3e0)]];if(!_0x381c0e)return;let _0x52e1be=this['_getOrCreatePastedDataSourceId'](_0x557f0c[_0x54681b(0x3cd)],_0x381c0e,_0x541752,_0x5b862b,_0x363632),_0x120090=(0x0,e[_0x54681b(0x281)])(),_0x2663a2={..._0x45850c,'id':_0x120090,'dataSourceId':_0x52e1be};_0x3ffe15[_0x54681b(0x38e)][_0x54681b(0x2ff)]=_0x120090,_0x5dedfb[_0x54681b(0x24f)]({'id':s[_0x54681b(0x371)]['id'],'params':{'unitId':_0x557f0c[_0x54681b(0x3cd)],'chart':_0x2663a2}}),_0x28322c[_0x54681b(0x24f)]({'id':s[_0x54681b(0x29c)]['id'],'params':{'unitId':_0x557f0c[_0x54681b(0x3cd)],'chartId':_0x120090}});}),{'redoMutations':[..._0x5b862b,..._0x5dedfb],'undoMutations':[..._0x28322c,..._0x363632]};}[_0x56a991(0x401)](_0x3baf28,_0x3f1657,_0x50a486,_0x4bbdd9,_0x519b06){const _0x59c15d=_0x56a991;let _0x48d155=_0x50a486['get'](_0x3f1657['id']);if(_0x48d155)return _0x48d155;let _0x3cf2ee=(0x0,e['generateRandomId'])();return _0x50a486[_0x59c15d(0x3c3)](_0x3f1657['id'],_0x3cf2ee),_0x4bbdd9[_0x59c15d(0x24f)]({'id':s['SetDocChartDataSourceMutation']['id'],'params':{'unitId':_0x3baf28,'dataSource':{..._0x3f1657,'id':_0x3cf2ee}}}),_0x519b06[_0x59c15d(0x24f)]({'id':s['RemoveDocChartDataSourceMutation']['id'],'params':{'unitId':_0x3baf28,'dataSourceId':_0x3cf2ee}}),_0x3cf2ee;}[_0x56a991(0x308)](_0x3bf821){const _0x2957d8=_0x56a991;let _0x3457d9=_0x3bf821;return(_0x3457d9==null?void 0x0:_0x3457d9['drawingType'])===e[_0x2957d8(0x331)]['DRAWING_CHART']&&typeof _0x3457d9['chartId']==_0x2957d8(0x352);}};B=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(l['IDocClipboardService'])),x(0x1,(0x0,e[_0x56a991(0x2b5)])(l[_0x56a991(0x30c)])),x(0x2,(0x0,e[_0x56a991(0x2b5)])(n['ChartResourceRepository']))],B);const ke=new Set([n['ChartTypeBits'][_0x56a991(0x271)],n[_0x56a991(0x40e)]['BarPercentStacked'],n[_0x56a991(0x40e)][_0x56a991(0x386)],n[_0x56a991(0x40e)]['AreaPercentStacked'],n[_0x56a991(0x40e)][_0x56a991(0x216)]]),Ae=t[_0x56a991(0x287)][_0x56a991(0x1e7)](_0x43abe9=>!ke[_0x56a991(0x2cb)](_0x43abe9[_0x56a991(0x1b5)]));let V=class extends e[_0x56a991(0x1d1)]{constructor(_0x36bd15,_0xc4b8d8,_0x47ea40,_0x21496d){const _0x41f453=_0x56a991;super(),this['_drawingAdapterService']=_0x36bd15,this[_0x41f453(0x169)]=_0xc4b8d8,this[_0x41f453(0x16f)]=_0x47ea40,this['_localeService']=_0x21496d,this[_0x41f453(0x1ee)]();}['_initAdapter'](){const _0x32f74b=_0x56a991;this[_0x32f74b(0x1b6)](this[_0x32f74b(0x215)][_0x32f74b(0x1cc)]({'getEditDrawingCommandInfo':({unitId:_0x38c0d3,drawing:_0x5af7f7})=>{const _0x4d7e27=_0x32f74b;let _0x3c7e5d=je(_0x5af7f7);return _0x3c7e5d?{'label':this[_0x4d7e27(0x213)]['t']('docs-chart-ui.common.editChart'),'commandId':_['id'],'commandParams':{'unitId':_0x38c0d3,'chartId':_0x3c7e5d[_0x4d7e27(0x2ff)],'drawingId':_0x3c7e5d['drawingId']}}:null;}})),this[_0x32f74b(0x1b6)](this[_0x32f74b(0x169)]['registerAdapter']({'getItems':({unitId:_0x37dbb6,subUnitId:_0x3537c0,drawing:_0x3944e0})=>{const _0x406027=_0x32f74b;var _0x4f3624;let _0x502965=je(_0x3944e0);if(!_0x502965)return null;let _0x2103b2=this['_resourceService'][_0x406027(0x1a5)](_0x37dbb6,_0x502965[_0x406027(0x2ff)]),_0x1f5de6=(_0x2103b2==null?void 0x0:_0x2103b2['chartType'])??n[_0x406027(0x40e)]['Column'],_0x33f360=Ae['map'](_0x7f8373=>({'value':'id'in _0x7f8373?_0x7f8373['id']:String(_0x7f8373[_0x406027(0x1b5)]),'chartType':_0x7f8373[_0x406027(0x1b5)],..._0x406027(0x1ec)in _0x7f8373?{'pieSecondaryPlotType':_0x7f8373[_0x406027(0x1ec)]}:{},'icon':_0x7f8373[_0x406027(0x430)],'label':this['_localeService']['t']('docs-chart-ui.chartTypes.'+_0x7f8373['labelId'])})),_0x57a5e2=(0x0,t[_0x406027(0x15d)])(_0x1f5de6,_0x2103b2==null||(_0x4f3624=_0x2103b2[_0x406027(0x24b)])==null?void 0x0:_0x4f3624[_0x406027(0x26d)],_0x33f360);return[{'type':_0x406027(0x21d),'label':this[_0x406027(0x213)]['t'](_0x406027(0x354)),'index':0x0,'commandId':s['UpdateDocChartConfigCommand']['id'],'commandParamsFactory':_0x2ef441=>{const _0x53da94=_0x406027;var _0x52dc14;let _0x457af0=_0x33f360[_0x53da94(0x356)](_0x6e16c=>_0x6e16c[_0x53da94(0x1b5)]===_0x2ef441),_0x805a1a=(_0x457af0==null?void 0x0:_0x457af0[_0x53da94(0x2e7)])??Number(_0x2ef441),_0x58815a=_0x2103b2==null||(_0x52dc14=_0x2103b2[_0x53da94(0x24b)])==null||(_0x52dc14=_0x52dc14[_0x53da94(0x26d)])==null?void 0x0:_0x52dc14[_0x53da94(0x3b8)],_0x3a87c7={'unitId':_0x37dbb6,'chartId':_0x502965['chartId'],'chartType':_0x805a1a};if(_0x457af0!=null&&_0x457af0['pieSecondaryPlotType']){var _0x5b5f35;return{..._0x3a87c7,'style':{..._0x2103b2==null?void 0x0:_0x2103b2['style'],'pie':{..._0x2103b2==null||(_0x5b5f35=_0x2103b2[_0x53da94(0x24b)])==null?void 0x0:_0x5b5f35[_0x53da94(0x26d)],'composite':{..._0x58815a,'enabled':!0x0,'secondaryPlot':{..._0x58815a==null?void 0x0:_0x58815a[_0x53da94(0x349)],'type':_0x457af0['pieSecondaryPlotType']}}}}};}if(_0x805a1a===n['ChartTypeBits']['Pie']&&_0x58815a){var _0x209f42;return{..._0x3a87c7,'style':{..._0x2103b2==null?void 0x0:_0x2103b2[_0x53da94(0x24b)],'pie':{..._0x2103b2==null||(_0x209f42=_0x2103b2[_0x53da94(0x24b)])==null?void 0x0:_0x209f42['pie'],'composite':{..._0x58815a,'enabled':!0x1}}}};}return _0x3a87c7;},'disable':!_0x2103b2,'value':_0x57a5e2,'options':_0x33f360},{'type':_0x406027(0x3f0),'label':this['_localeService']['t']('docs-chart-ui.common.editChart'),'index':0x1,'commandId':_['id'],'commandParams':{'unitId':_0x37dbb6,'chartId':_0x502965[_0x406027(0x2ff)],'drawingId':_0x502965[_0x406027(0x292)]},'disable':!0x1,'hideOnClick':!0x0,'icon':_0x406027(0x1d2)},{'type':_0x406027(0x3f0),'label':this['_localeService']['t']('docs-chart-ui.common.deleteChart'),'index':0x2,'commandId':u[_0x406027(0x358)]['id'],'commandParams':{'unitId':_0x37dbb6,'drawings':[{'unitId':_0x37dbb6,'subUnitId':_0x3537c0,'drawingId':_0x502965[_0x406027(0x292)]}]},'disable':!0x1,'icon':'DrawingDeleteIcon'}];}}));}};V=S([x(0x0,u[_0x56a991(0x272)]),x(0x1,(0x0,e[_0x56a991(0x2b5)])(d[_0x56a991(0x427)])),x(0x2,(0x0,e[_0x56a991(0x2b5)])(n[_0x56a991(0x30b)])),x(0x3,(0x0,e['Inject'])(e[_0x56a991(0x1e8)]))],V);function je(_0x25a6d2){const _0x3dc974=_0x56a991;let _0x5766bf=_0x25a6d2;return(_0x5766bf==null?void 0x0:_0x5766bf[_0x3dc974(0x342)])===e[_0x3dc974(0x331)]['DRAWING_CHART']&&typeof _0x5766bf['chartId']==_0x3dc974(0x352)?_0x5766bf:null;}const Me=(0x0,e[_0x56a991(0x29e)])(_0x56a991(0x3a5));var Ne=class{constructor(_0x445343){const _0x50bb09=_0x56a991;this[_0x50bb09(0x2bb)]=_0x445343;}async[_0x56a991(0x37f)](_0x1f9568,_0x11dbcd){const _0x54de5e=_0x56a991;if(typeof document>'u')throw TypeError(_0x54de5e(0x3ff));let _0x3a323b=new n['DataUrlImageChartHost'](_0x11dbcd[_0x54de5e(0x2ff)],{'width':_0x1f9568['width'],'height':_0x1f9568[_0x54de5e(0x163)]}),_0x37acd2=this[_0x54de5e(0x2bb)][_0x54de5e(0x2b0)](n[_0x54de5e(0x206)][_0x54de5e(0x16e)]);try{let {chartConfig:_0x13e1a7,chartStyle:_0x52a1bd}=this[_0x54de5e(0x2bb)]['createRenderInput'](_0x11dbcd);_0x37acd2['bind'](_0x3a323b),await _0x37acd2[_0x54de5e(0x37f)]({'chartId':_0x11dbcd['chartId'],'config':_0x13e1a7,'style':_0x52a1bd});let _0x17bf03=_0x3a323b[_0x54de5e(0x397)]();if(!_0x17bf03)throw Error(_0x54de5e(0x19e)+_0x11dbcd[_0x54de5e(0x3cd)]+'/'+_0x11dbcd[_0x54de5e(0x2ff)]);return _0x17bf03;}finally{_0x37acd2[_0x54de5e(0x25b)](),_0x3a323b[_0x54de5e(0x25b)]();}}};let H=class extends t[_0x56a991(0x306)]{constructor(_0x28fe29,_0x3c521c,_0x308729,_0x56881e){super(_0x28fe29,_0x3c521c,_0x56881e??new Ne(_0x308729));}};H=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(e[_0x56a991(0x1e8)])),x(0x1,(0x0,e[_0x56a991(0x2b5)])(s['DocChartModelService'])),x(0x2,(0x0,e[_0x56a991(0x2b5)])(I)),x(0x3,(0x0,e[_0x56a991(0x1a7)])(Me))],H);let U=class extends e['Disposable']{constructor(_0x2777a4,_0x468b6a,_0x18cf2e,_0x594ae4){const _0x14b0cb=_0x56a991;super(),this['_commandService']=_0x2777a4,this[_0x14b0cb(0x1c4)]=_0x468b6a,this['_resourceService']=_0x18cf2e,this[_0x14b0cb(0x167)]=_0x594ae4,this[_0x14b0cb(0x2fe)]();}[_0x56a991(0x2fe)](){const _0x194953=_0x56a991;this[_0x194953(0x1b6)](this[_0x194953(0x42d)]['onCommandExecuted'](_0x312a02=>{const _0x57d0eb=_0x194953;if(_0x312a02['id']===s['SetDocChartSnapshotMutation']['id']){var _0x29ed34;let _0x386c7a=_0x312a02['params'];_0x386c7a!=null&&_0x386c7a[_0x57d0eb(0x3cd)]&&(_0x29ed34=_0x386c7a[_0x57d0eb(0x3ef)])!=null&&_0x29ed34['id']&&(this[_0x57d0eb(0x196)](_0x386c7a)?this[_0x57d0eb(0x1c4)][_0x57d0eb(0x361)](_0x386c7a[_0x57d0eb(0x3cd)],_0x386c7a[_0x57d0eb(0x3ef)]['id'],{'waitForConfig':!0x0}):this['_snapshotService'][_0x57d0eb(0x361)](_0x386c7a['unitId'],_0x386c7a[_0x57d0eb(0x3ef)]['id']));return;}if(_0x312a02['id']===s[_0x57d0eb(0x1c2)]['id']){var _0x1ae808;let _0x38c020=_0x312a02[_0x57d0eb(0x254)];if(!(_0x38c020!=null&&_0x38c020[_0x57d0eb(0x3cd)])||!((_0x1ae808=_0x38c020[_0x57d0eb(0x31d)])!=null&&_0x1ae808['id']))return;this['_resourceService'][_0x57d0eb(0x207)](_0x38c020[_0x57d0eb(0x3cd)],_0x38c020[_0x57d0eb(0x31d)]['id'])[_0x57d0eb(0x24d)](_0x57ba2a=>this[_0x57d0eb(0x1c4)][_0x57d0eb(0x361)](_0x38c020[_0x57d0eb(0x3cd)],_0x57ba2a,{'waitForConfig':!0x0}));}}));}['_shouldWaitForChartConfig'](_0x3a27bf){const _0x281282=_0x56a991;var _0x308c71;let _0x23f75a=(_0x308c71=this[_0x281282(0x167)][_0x281282(0x2eb)](_0x3a27bf[_0x281282(0x3cd)],_0x3a27bf['chart']['id']))==null||(_0x308c71=_0x308c71[_0x281282(0x3f9)][_0x281282(0x2f8)])==null?void 0x0:_0x308c71['type'];return _0x23f75a!=null&&_0x23f75a!==_0x3a27bf[_0x281282(0x3ef)][_0x281282(0x2e7)];}};U=S([x(0x0,e[_0x56a991(0x411)]),x(0x1,(0x0,e[_0x56a991(0x2b5)])(H)),x(0x2,(0x0,e['Inject'])(n[_0x56a991(0x30b)])),x(0x3,(0x0,e[_0x56a991(0x2b5)])(s[_0x56a991(0x211)]))],U);const W=g['id'],Pe=W+'.below';function Fe(_0x46addf){const _0x25987d=_0x56a991;return(0x0,f['combineLatest'])([(0x0,l[_0x25987d(0x180)])(_0x46addf),Ie(_0x46addf)])[_0x25987d(0x42e)]((0x0,f[_0x25987d(0x41e)])(([_0xefae6a,_0x51618f])=>_0xefae6a||_0x51618f));}function Ie(_0x1b1d30){const _0x515139=_0x56a991;let _0x1168af=_0x1b1d30['get'](c[_0x515139(0x2ad)]),_0x584856=_0x1b1d30['get'](e['IUniverInstanceService']);return new f[(_0x515139(0x193))](_0x4f4332=>{const _0x23d915=_0x515139;let _0x2a6105=_0x455c54=>{const _0x3f1e4d=_0x5456;let _0x42da54=_0x584856['getCurrentUnitOfType'](e['UniverInstanceType'][_0x3f1e4d(0x404)]);if(!_0x42da54){_0x4f4332[_0x3f1e4d(0x255)](!0x0);return;}let _0x1b50f8=(_0x455c54==null?void 0x0:_0x455c54[_0x3f1e4d(0x3e3)])??[..._0x1168af['getTextRanges']()??[]];if(_0x1b50f8['length']!==0x1){_0x4f4332[_0x3f1e4d(0x255)](!0x0);return;}let _0x543028=_0x1168af[_0x3f1e4d(0x422)]()??_0x1b50f8[0x0];if(!_0x543028||!_0x543028[_0x3f1e4d(0x249)]||_0x543028[_0x3f1e4d(0x312)]==null){_0x4f4332[_0x3f1e4d(0x255)](!0x0);return;}let _0x361662=R(_0x42da54,{..._0x543028,'segmentId':_0x543028[_0x3f1e4d(0x3b7)]??(_0x455c54==null?void 0x0:_0x455c54[_0x3f1e4d(0x3b7)])??''});_0x4f4332[_0x3f1e4d(0x255)](_0x361662==null);};_0x2a6105();let _0x250149=_0x1168af[_0x23d915(0x242)][_0x23d915(0x267)](_0xa63b94=>_0x2a6105(_0xa63b94));return()=>_0x250149['unsubscribe']();});}function Le(_0x29913d){return G(_0x29913d);}function G(_0x14c749){const _0x11a149=_0x56a991;let _0x5d4a34=_0x14c749[_0x11a149(0x333)](e[_0x11a149(0x1e8)])['t'](_0x11a149(0x243));return{'id':W,'commandId':g['id'],'type':i[_0x11a149(0x262)][_0x11a149(0x403)],'icon':_0x11a149(0x20a),'title':_0x5d4a34,'tooltip':_0x5d4a34,'disabled$':Fe(_0x14c749),'hidden$':(0x0,i[_0x11a149(0x32d)])(_0x14c749,e[_0x11a149(0x432)]['UNIVER_DOC'])};}function Re(_0x363b4b){const _0x391fdb=_0x56a991;let _0x272ae7=_0x363b4b['get'](e[_0x391fdb(0x1e8)])['t']('docs-chart-ui.common.insertChart');return{'id':Pe,'commandId':g['id'],'type':i[_0x391fdb(0x262)][_0x391fdb(0x403)],'icon':'ChartIcon','title':_0x272ae7,'tooltip':_0x272ae7,'disabled$':Fe(_0x363b4b),'hidden$':(0x0,i[_0x391fdb(0x32d)])(_0x363b4b,e['UniverInstanceType'][_0x391fdb(0x404)])};}const ze={[i[_0x56a991(0x2c6)][_0x56a991(0x2b2)]]:{[W]:{'order':2.5,'menuItemFactory':Le}},[i[_0x56a991(0x1b1)][_0x56a991(0x208)]]:{[i[_0x56a991(0x173)][_0x56a991(0x388)]]:{[l['INSERT_BELLOW_MENU_ID']]:{[W]:{'order':4.5,'menuItemFactory':G}}},[l[_0x56a991(0x203)]]:{[i[_0x56a991(0x173)]['LAYOUT']]:{[W]:{'order':5.5,'menuItemFactory':G}}},[l[_0x56a991(0x2c2)]]:{[i['ContextMenuGroup'][_0x56a991(0x388)]]:{[W]:{'order':4.5,'menuItemFactory':G}}},[l[_0x56a991(0x187)]]:{'insert':{[W]:{'order':1.5,'menuItemFactory':G}}},[l[_0x56a991(0x417)]]:{'insert':{[Pe]:{'order':1.5,'menuItemFactory':Re}}}}};var Be=_0x56a991(0x2fd),Ve=_0x56a991(0x2b9),He=class extends h[_0x56a991(0x16e)]{constructor(..._0x1082e4){super(..._0x1082e4),N(this,'_imageContentHidden',!0x1);}get[_0x56a991(0x259)](){const _0x5e25ba=_0x56a991;return this[_0x5e25ba(0x26e)];}['setImageContentHidden'](_0x298128){const _0x14b3ce=_0x56a991;this[_0x14b3ce(0x26e)]!==_0x298128&&(this[_0x14b3ce(0x26e)]=_0x298128,this[_0x14b3ce(0x3fc)](!0x0));}['_draw'](_0x5b6b1c,_0x3dc76e,_0x2ebb7c,_0x534bb5){const _0x8e1638=_0x56a991;this[_0x8e1638(0x26e)]||super[_0x8e1638(0x399)](_0x5b6b1c,_0x3dc76e,_0x2ebb7c,_0x534bb5);}};const Ue={'borderEnabled':!0x0,'borderStroke':_0x56a991(0x2a4),'borderStrokeWidth':0x1,'borderSpacing':0x2,'anchorFill':_0x56a991(0x1e1),'anchorStroke':'#4086f4','anchorStrokeWidth':1.5,'anchorSize':0x8,'anchorCornerRadius':0x2,'anchorStyle':_0x56a991(0x344),'rotateEnabled':!0x0,'rotateSize':0x12,'rotateCornerRadius':0x9,'rotateAnchorOffset':0x1c,'rotateAnchorPosition':_0x56a991(0x303),'rotateLineEnabled':!0x1,'rotateFill':'#ffffff','rotateStroke':_0x56a991(0x2a4),'rotateStrokeWidth':0x1,'rotateIconEnabled':!0x0,'rotateIconStroke':_0x56a991(0x2a4),'rotateIconStrokeWidth':1.25,'resizeEnabled':!0x0,'keepRatio':!0x1,'moveBoundaryEnabled':!0x1},We={...Ue,'rotateEnabled':!0x1};let K=class extends e[_0x56a991(0x1d1)]{constructor(_0x1f6e8a,_0x4bd855,_0x19cbaa){const _0x191144=_0x56a991;super(),this['_drawingManagerService']=_0x1f6e8a,this[_0x191144(0x40d)]=_0x4bd855,this[_0x191144(0x31b)]=_0x19cbaa,N(this,_0x191144(0x170),new Set()),this[_0x191144(0x1c9)]();}[_0x56a991(0x27e)](_0x168b70,_0xec22e2){const _0x123882=_0x56a991;let _0x3454b4=(0x0,m['getDrawingShapeKeyByDrawingSearch'])(_0x168b70);_0xec22e2?this['_activeDomReadyDrawingKeys'][_0x123882(0x247)](_0x3454b4):this[_0x123882(0x170)][_0x123882(0x2dc)](_0x3454b4),this[_0x123882(0x3d5)](_0x168b70);}['_init'](){const _0x5a54e1=_0x56a991;this[_0x5a54e1(0x1b6)](this[_0x5a54e1(0x2be)][_0x5a54e1(0x279)][_0x5a54e1(0x267)](_0x50e0d4=>{const _0x3ebc4c=_0x5a54e1;this[_0x3ebc4c(0x359)](_0x50e0d4);})),this[_0x5a54e1(0x1b6)](this['_drawingManagerService'][_0x5a54e1(0x2d5)][_0x5a54e1(0x267)](_0x4344c6=>{const _0x404aee=_0x5a54e1;this[_0x404aee(0x359)](_0x4344c6);})),this[_0x5a54e1(0x1b6)](this[_0x5a54e1(0x2be)][_0x5a54e1(0x1c0)][_0x5a54e1(0x267)](_0x1da64f=>{this['_removeRenderedCharts'](_0x1da64f);})),this[_0x5a54e1(0x1b6)](this[_0x5a54e1(0x31b)][_0x5a54e1(0x1fb)]['subscribe'](({unitId:_0x39f938,chartId:_0x48b8cb})=>{this['_requestSnapshotsForUnit'](_0x39f938,_0x48b8cb);})),this[_0x5a54e1(0x1b6)](this['_snapshotRenderService'][_0x5a54e1(0x274)][_0x5a54e1(0x267)](_0x265ba6=>{const _0x21e21e=_0x5a54e1;if(_0x265ba6['status']!==_0x21e21e(0x162)||!_0x265ba6[_0x21e21e(0x2c8)])return;let [_0x11efa7,_0xf1c9be]=_0x265ba6['key'][_0x21e21e(0x3f7)]('::');!_0x11efa7||!_0xf1c9be||this[_0x21e21e(0x332)](_0x11efa7,_0xf1c9be,_0x265ba6[_0x21e21e(0x2c8)]);}));}[_0x56a991(0x359)](_0x41a7aa){const _0x1a47f9=_0x56a991;_0x41a7aa[_0x1a47f9(0x24d)](_0x7e5639=>{const _0x1f86a7=_0x1a47f9;let _0x4f6cd4=this['_getChartDrawing'](_0x7e5639);_0x4f6cd4&&this[_0x1f86a7(0x245)](_0x4f6cd4);});}[_0x56a991(0x17b)](_0x5e0758,_0x15c156){const _0x63ca4e=_0x56a991;this[_0x63ca4e(0x1e5)](_0x5e0758,_0x37ddc1=>{const _0x48c1df=_0x63ca4e;(_0x15c156==null||_0x37ddc1[_0x48c1df(0x2ff)]===_0x15c156)&&this[_0x48c1df(0x245)](_0x37ddc1);});}[_0x56a991(0x245)](_0x14162a){const _0x8f3581=_0x56a991;let _0x55b2a8=this[_0x8f3581(0x1f8)](_0x14162a);if(!_0x55b2a8)return;let _0x3a568f=this[_0x8f3581(0x31b)][_0x8f3581(0x42f)]({'unitId':_0x14162a[_0x8f3581(0x3cd)],'chartId':_0x14162a[_0x8f3581(0x2ff)],'width':_0x55b2a8[_0x8f3581(0x220)],'height':_0x55b2a8[_0x8f3581(0x163)],'dpr':typeof window>'u'?0x1:window[_0x8f3581(0x3e6)]||0x1,'mode':_0x8f3581(0x212)});_0x3a568f['status']===_0x8f3581(0x162)&&_0x3a568f['dataUrl']&&this[_0x8f3581(0x23a)](_0x14162a,_0x3a568f[_0x8f3581(0x2c8)]);}['_renderCharts'](_0x5a8556,_0x567c36,_0x27006a){this['_forEachChartDrawing'](_0x5a8556,_0x2a3731=>{const _0x3fb60e=_0x5456;_0x2a3731[_0x3fb60e(0x2ff)]===_0x567c36&&this[_0x3fb60e(0x23a)](_0x2a3731,_0x27006a);});}[_0x56a991(0x23a)](_0x36646e,_0x4638fe){const _0x794da6=_0x56a991;let _0x34dfa7=this[_0x794da6(0x40d)][_0x794da6(0x3ec)](_0x36646e[_0x794da6(0x3cd)]),_0x50f214=_0x34dfa7==null?void 0x0:_0x34dfa7[_0x794da6(0x30a)];if(!_0x50f214||!this['_getDrawingRect'](_0x36646e))return;this[_0x794da6(0x2be)][_0x794da6(0x3b0)]()&&_0x50f214[_0x794da6(0x339)](Ue);let _0xc301db=(0x0,m['getDrawingShapeKeyByDrawingSearch'])(_0x36646e),_0x59269a=_0x50f214['getObjectIncludeInGroup'](_0xc301db);if(_0x59269a!=null&&_0x59269a[_0x794da6(0x3bb)]){var _0x1a5758,_0x40c8b0,_0x2e0e54,_0x389b8f;_0x59269a[_0x794da6(0x33a)]={..._0x59269a[_0x794da6(0x33a)],...We},_0x59269a[_0x794da6(0x3bb)](_0x4638fe),(_0x1a5758=_0x59269a[_0x794da6(0x310)])==null||_0x1a5758[_0x794da6(0x1d6)](_0x59269a,_0x36646e['transform']),(_0x40c8b0=_0x59269a[_0x794da6(0x1aa)])==null||_0x40c8b0['call'](_0x59269a,(_0x2e0e54=_0x36646e[_0x794da6(0x26f)])==null?void 0x0:_0x2e0e54[_0x794da6(0x20c)]),this['_syncChartImageVisibility'](_0x59269a,_0x36646e,_0xc301db),(_0x389b8f=_0x59269a['makeDirty'])==null||_0x389b8f[_0x794da6(0x1d6)](_0x59269a,!0x0);return;}this['_createImageShape'](_0x36646e,_0x4638fe,_0x50f214,_0xc301db);}[_0x56a991(0x2f6)](_0x2fbccb,_0x40035a,_0x150ea8,_0x277e81){const _0x1809e4=_0x56a991;let _0x236732=_0x2fbccb['transform'];if(!_0x236732)return;let _0x1e3de2=this['_drawingManagerService'][_0x1809e4(0x41d)](_0x2fbccb[_0x1809e4(0x3cd)],_0x2fbccb[_0x1809e4(0x2bf)]),_0x241ca6=_0x1e3de2[_0x1809e4(0x3ea)](_0x2fbccb[_0x1809e4(0x292)]),_0x1bb6df={..._0x236732,'zIndex':_0x241ca6===-0x1?_0x1e3de2[_0x1809e4(0x42a)]-0x1:_0x241ca6,'clipBounds':_0x236732[_0x1809e4(0x20c)],'printable':!0x0,'rotateEnabled':!0x1,'transformerConfig':We,'url':_0x40035a};_0x2fbccb[_0x1809e4(0x1f0)]&&(_0x1bb6df[_0x1809e4(0x1d4)]=!0x1);let _0x3aef21=new He(_0x277e81,_0x1bb6df);_0x3aef21[_0x1809e4(0x2c1)](this[_0x1809e4(0x170)][_0x1809e4(0x2cb)](_0x277e81)),_0x150ea8['addObject'](_0x3aef21,h[_0x1809e4(0x373)]),this[_0x1809e4(0x2be)]['getDrawingEditable']()&&_0x150ea8['attachTransformerTo'](_0x3aef21);}[_0x56a991(0x3d3)](_0x3168b5){const _0x16e9c8=_0x56a991;_0x3168b5[_0x16e9c8(0x24d)](_0x1095bd=>{const _0x2cf06b=_0x16e9c8;this[_0x2cf06b(0x170)][_0x2cf06b(0x2dc)]((0x0,m[_0x2cf06b(0x3dd)])(_0x1095bd));let _0x22a22c=this[_0x2cf06b(0x40d)]['getRenderUnitById'](_0x1095bd[_0x2cf06b(0x3cd)]),_0x397d2f=_0x22a22c==null?void 0x0:_0x22a22c[_0x2cf06b(0x30a)];if(!_0x397d2f)return;let _0x208b53=_0x397d2f[_0x2cf06b(0x326)]((0x0,m[_0x2cf06b(0x3dd)])(_0x1095bd));_0x208b53&&_0x397d2f[_0x2cf06b(0x188)](_0x208b53);});}[_0x56a991(0x3d5)](_0x13b2dc){const _0x59c06b=_0x56a991;let _0x59286e=this[_0x59c06b(0x40d)][_0x59c06b(0x3ec)](_0x13b2dc[_0x59c06b(0x3cd)]),_0x3b0299=_0x59286e==null?void 0x0:_0x59286e[_0x59c06b(0x30a)];if(!_0x3b0299)return;let _0x49cc30=(0x0,m[_0x59c06b(0x3dd)])(_0x13b2dc),_0x18aff4=_0x3b0299[_0x59c06b(0x326)](_0x49cc30);if(!_0x18aff4)return;let _0x30120a=this[_0x59c06b(0x2be)]['getDrawingByParam'](_0x13b2dc);this[_0x59c06b(0x36f)](_0x18aff4,_0x30120a,_0x49cc30);}['_syncChartImageVisibility'](_0x1ffc41,_0x18c179,_0x56f3e4){const _0x2b2b43=_0x56a991;var _0xa730f7,_0xb84105;let _0x198c37=this[_0x2b2b43(0x170)][_0x2b2b43(0x2cb)](_0x56f3e4);if(_0x1ffc41[_0x2b2b43(0x2c1)]){var _0x36a927,_0x4a5dae;_0x1ffc41[_0x2b2b43(0x2c1)](_0x198c37),(_0x18c179==null?void 0x0:_0x18c179[_0x2b2b43(0x1f0)])===!0x0?(_0x36a927=_0x1ffc41[_0x2b2b43(0x2d0)])==null||_0x36a927[_0x2b2b43(0x1d6)](_0x1ffc41):(_0x4a5dae=_0x1ffc41['show'])==null||_0x4a5dae[_0x2b2b43(0x1d6)](_0x1ffc41);return;}(_0x18c179==null?void 0x0:_0x18c179[_0x2b2b43(0x1f0)])===!0x0?(_0xa730f7=_0x1ffc41['hide'])==null||_0xa730f7['call'](_0x1ffc41):(_0xb84105=_0x1ffc41['show'])==null||_0xb84105['call'](_0x1ffc41);}[_0x56a991(0x202)](_0x40b1f9){const _0x3e9c41=_0x56a991;let _0x54cb0d=this['_drawingManagerService'][_0x3e9c41(0x36c)](_0x40b1f9);return Ge(_0x54cb0d)?_0x54cb0d:null;}[_0x56a991(0x1e5)](_0x28593c,_0x160e8b){const _0x2c11dd=_0x56a991;let _0x2397bc=this[_0x2c11dd(0x2be)][_0x2c11dd(0x3a6)](_0x28593c),_0x35a1a9=_0x2397bc==null?void 0x0:_0x2397bc[_0x28593c];_0x35a1a9&&_0x35a1a9[_0x2c11dd(0x227)][_0x2c11dd(0x24d)](_0x3cf405=>{const _0x2285ab=_0x2c11dd;let _0x15b921=_0x35a1a9[_0x2285ab(0x2db)][_0x3cf405];Ge(_0x15b921)&&_0x160e8b(_0x15b921);});}[_0x56a991(0x1f8)](_0x2ffcc1){const _0x50b1a8=_0x56a991;var _0xb60234,_0x4eb39d,_0x3f451a,_0x1a1284;let _0x5531d8=((_0xb60234=_0x2ffcc1['transform'])==null?void 0x0:_0xb60234['width'])??((_0x4eb39d=_0x2ffcc1[_0x50b1a8(0x184)])==null||(_0x4eb39d=_0x4eb39d[_0x50b1a8(0x2c4)])==null?void 0x0:_0x4eb39d['width'])??0x0,_0x74dce4=((_0x3f451a=_0x2ffcc1['transform'])==null?void 0x0:_0x3f451a[_0x50b1a8(0x163)])??((_0x1a1284=_0x2ffcc1[_0x50b1a8(0x184)])==null||(_0x1a1284=_0x1a1284[_0x50b1a8(0x2c4)])==null?void 0x0:_0x1a1284[_0x50b1a8(0x163)])??0x0;return _0x5531d8<=0x0||_0x74dce4<=0x0?null:{'width':Math[_0x50b1a8(0x3bf)](0x1,Math[_0x50b1a8(0x1eb)](_0x5531d8)),'height':Math[_0x50b1a8(0x3bf)](0x1,Math['round'](_0x74dce4))};}};K=S([x(0x0,m[_0x56a991(0x380)]),x(0x1,h[_0x56a991(0x336)]),x(0x2,(0x0,e[_0x56a991(0x2b5)])(H))],K);function Ge(_0x226ac2){const _0x49a42b=_0x56a991;let _0x2e433e=_0x226ac2;return(_0x2e433e==null?void 0x0:_0x2e433e[_0x49a42b(0x342)])===e['DrawingTypeEnum']['DRAWING_CHART']&&typeof _0x2e433e[_0x49a42b(0x2ff)]=='string';}function Ke(_0x4c934b,_0x6c76f6,_0x131bed=0x1,_0x1ce0ea=0x0){const _0x1e62ea=_0x56a991;let {top:_0x2ee000,left:_0x35d636,bottom:_0x204c71,right:_0x4f846c}=_0x4c934b,_0x59fb46=_0x4f846c-_0x35d636,_0x482c14=_0x204c71-_0x2ee000,{viewportScrollX:_0x1f1528,viewportScrollY:_0x263808}=_0x6c76f6['getViewport'](l['VIEWPORT_KEY']['VIEW_MAIN']),{scaleX:_0x215114,scaleY:_0x80b5b3}=_0x6c76f6[_0x1e62ea(0x2a7)](),_0x2bbf6b=(_0x35d636-_0x1f1528)*_0x215114,_0x3d3346=(_0x2ee000-_0x263808)*_0x80b5b3,_0x7b3464=_0x59fb46*_0x215114,_0x3ddc78=_0x482c14*_0x80b5b3;return{'startX':_0x2bbf6b,'startY':_0x3d3346,'endX':_0x2bbf6b+_0x7b3464,'endY':_0x3d3346+_0x3ddc78,'width':_0x7b3464,'height':_0x3ddc78,'rotate':_0x1ce0ea,'absolute':{'left':!0x1,'top':!0x1},'opacity':_0x131bed};}function qe(_0x4b6cc2,_0x4a1c75){const _0x1394e8=_0x56a991;return _0x4b6cc2['unitId']===_0x4a1c75[_0x1394e8(0x3cd)]&&(_0x4b6cc2[_0x1394e8(0x2bf)]??_0x4b6cc2['unitId'])===(_0x4a1c75['subUnitId']??_0x4a1c75[_0x1394e8(0x3cd)])&&_0x4b6cc2['drawingId']===_0x4a1c75[_0x1394e8(0x292)];}function q(_0x13c7be,_0xcc5578=0x0){const _0x2657ee=_0x56a991;return _0x13c7be['find'](_0x1eda51=>typeof _0x1eda51=='number'&&Number[_0x2657ee(0x2da)](_0x1eda51))??_0xcc5578;}function Je(_0x30b5f2,_0x2b47d5){const _0x5d4193=_0x56a991;var _0x276ecd,_0x1ae1cc,_0x2e6388,_0x1267c1,_0x5e9637,_0x5c1d4f,_0x77bcf0;let _0x21873f=_0x2b47d5==null||(_0x276ecd=_0x2b47d5[_0x5d4193(0x351)])==null?void 0x0:_0x276ecd[_0x5d4193(0x1d6)](_0x2b47d5),_0x3a4a2b=q([_0x21873f==null?void 0x0:_0x21873f[_0x5d4193(0x220)],(_0x1ae1cc=_0x30b5f2[_0x5d4193(0x26f)])==null?void 0x0:_0x1ae1cc[_0x5d4193(0x220)],(_0x2e6388=_0x30b5f2[_0x5d4193(0x184)])==null||(_0x2e6388=_0x2e6388['size'])==null?void 0x0:_0x2e6388[_0x5d4193(0x220)]]),_0x274204=q([_0x21873f==null?void 0x0:_0x21873f[_0x5d4193(0x163)],(_0x1267c1=_0x30b5f2[_0x5d4193(0x26f)])==null?void 0x0:_0x1267c1[_0x5d4193(0x163)],(_0x5e9637=_0x30b5f2['docTransform'])==null||(_0x5e9637=_0x5e9637['size'])==null?void 0x0:_0x5e9637[_0x5d4193(0x163)]]),_0x3def06=q([_0x21873f==null?void 0x0:_0x21873f['left'],(_0x5c1d4f=_0x30b5f2[_0x5d4193(0x26f)])==null?void 0x0:_0x5c1d4f['left']]),_0x1a4c1e=q([_0x21873f==null?void 0x0:_0x21873f[_0x5d4193(0x418)],(_0x77bcf0=_0x30b5f2['transform'])==null?void 0x0:_0x77bcf0['top']]);return{'left':_0x3def06,'top':_0x1a4c1e,'right':_0x3def06+_0x3a4a2b,'bottom':_0x1a4c1e+_0x274204};}function Ye(_0x24fc79,_0x1ca33e){const _0x374ab0=_0x56a991;if(!_0x24fc79||typeof _0x24fc79!=_0x374ab0(0x1b9))return;let _0xf7296f=_0x24fc79;if(typeof _0xf7296f['subscribeEvent']=='function'){let _0x24a4a2=_0xf7296f[_0x374ab0(0x217)](_0x1ca33e);return(0x0,e[_0x374ab0(0x37d)])(()=>{const _0x546ca8=_0x374ab0;var _0x1a5ce2;if(typeof _0x24a4a2[_0x546ca8(0x25b)]=='function'){_0x24a4a2[_0x546ca8(0x25b)]();return;}(_0x1a5ce2=_0x24a4a2[_0x546ca8(0x1cd)])==null||_0x1a5ce2['call'](_0x24a4a2);});}let _0x1e8976=_0x24fc79;if(typeof _0x1e8976[_0x374ab0(0x267)]==_0x374ab0(0x275)){let _0xdcfc91=_0x1e8976[_0x374ab0(0x267)](_0x1ca33e);return(0x0,e[_0x374ab0(0x37d)])(()=>{const _0x9b0e4=_0x374ab0;var _0x27852a;return(_0x27852a=_0xdcfc91[_0x9b0e4(0x1cd)])==null?void 0x0:_0x27852a[_0x9b0e4(0x1d6)](_0xdcfc91);});}}let J=class extends e[_0x56a991(0x1d1)]{constructor(_0x54b43f,_0x3ec46d,_0x3f5d2f,_0x61b434,_0x144084,_0x212cfc,_0x1e31e9,_0x94db8a,_0x175893,_0x3d9f71){const _0x103952=_0x56a991;super(),this[_0x103952(0x2be)]=_0x54b43f,this[_0x103952(0x40d)]=_0x3ec46d,this[_0x103952(0x2b8)]=_0x3f5d2f,this[_0x103952(0x167)]=_0x61b434,this[_0x103952(0x2bb)]=_0x144084,this[_0x103952(0x31b)]=_0x212cfc,this[_0x103952(0x42d)]=_0x1e31e9,this[_0x103952(0x395)]=_0x94db8a,this[_0x103952(0x213)]=_0x175893,this['_staticRenderController']=_0x3d9f71,N(this,'_activeLayer',null),N(this,_0x103952(0x3ee),new f[(_0x103952(0x366))]()),this['_init']();}[_0x56a991(0x2a6)](_0x24f2d1){const _0x3bc211=_0x56a991;let _0x26559b=this['_modelService'][_0x3bc211(0x34c)](_0x24f2d1[_0x3bc211(0x3cd)],_0x24f2d1['chartId']);if(!_0x26559b)return(0x0,e['toDisposable'])(()=>{});let _0x398b8a=new P(_0x24f2d1[_0x3bc211(0x2ff)],_0x24f2d1[_0x3bc211(0x183)],(_0xa63eee,_0x490b13)=>this[_0x3bc211(0x2bb)][_0x3bc211(0x3c8)](_0xa63eee,_0x490b13),()=>this[_0x3bc211(0x297)](_0x24f2d1)),_0x3cc517=this['_renderService'][_0x3bc211(0x2b0)](n[_0x3bc211(0x206)][_0x3bc211(0x318)]);_0x3cc517[_0x3bc211(0x33b)](_0x398b8a);let _0x15d47d=[_0x3cc517['on']('click',_0x451abe=>{const _0x2beafa=_0x3bc211;let _0x30d6f4=(0x0,t['resolveChartElementSelection'])(_0x26559b['model'],_0x451abe[_0x2beafa(0x261)]);if(!_0x30d6f4)return;let _0x35115a=(0x0,t['resolveChartEditPanelRoute'])(_0x30d6f4[_0x2beafa(0x2b7)]);_0x35115a&&this[_0x2beafa(0x42d)][_0x2beafa(0x18d)](_['id'],{'unitId':_0x24f2d1[_0x2beafa(0x3cd)],'chartId':_0x24f2d1[_0x2beafa(0x2ff)],'drawingId':_0x24f2d1['drawingId'],'route':_0x35115a});}),_0x3cc517['on'](_0x3bc211(0x225),()=>{const _0x206744=_0x3bc211;this[_0x206744(0x42d)][_0x206744(0x18d)](_['id'],{'unitId':_0x24f2d1[_0x206744(0x3cd)],'chartId':_0x24f2d1[_0x206744(0x2ff)],'drawingId':_0x24f2d1[_0x206744(0x292)]});})],_0x4003ff=!0x0;return _0x15d47d[_0x3bc211(0x24f)](this[_0x3bc211(0x32b)](_0x26559b,_0x3cc517,_0x24f2d1,()=>_0x4003ff)),(0x0,e[_0x3bc211(0x37d)])(()=>{const _0x466bd8=_0x3bc211;_0x4003ff=!0x1,this[_0x466bd8(0x429)][_0x466bd8(0x27e)](this[_0x466bd8(0x296)](_0x24f2d1),!0x1),_0x15d47d[_0x466bd8(0x24d)](_0x2eb5e1=>_0x2eb5e1[_0x466bd8(0x25b)]()),_0x3cc517[_0x466bd8(0x25b)](),_0x398b8a[_0x466bd8(0x25b)]();});}[_0x56a991(0x25b)](){const _0x44837f=_0x56a991;this['_deactivate'](),this[_0x44837f(0x3ee)][_0x44837f(0x3aa)](),super['dispose']();}['_init'](){const _0x52023a=_0x56a991;this[_0x52023a(0x1b6)](this[_0x52023a(0x2be)][_0x52023a(0x3f4)][_0x52023a(0x267)](_0x1ebd8d=>{const _0xc98caf=_0x52023a;this[_0xc98caf(0x2c9)](_0x1ebd8d);})),this[_0x52023a(0x1b6)](this[_0x52023a(0x2be)][_0x52023a(0x1c0)][_0x52023a(0x267)](_0x5ae273=>{const _0x4d097c=_0x52023a;let _0x528521=this[_0x4d097c(0x282)];_0x528521&&_0x5ae273['some'](_0x14a29d=>qe(_0x14a29d,_0x528521))&&this[_0x4d097c(0x2d6)]();})),this[_0x52023a(0x1b6)](this[_0x52023a(0x2be)]['refreshTransform$']['subscribe'](_0x2a6d96=>{const _0x1a1c98=_0x52023a;let _0x4b2ab1=this['_activeLayer'];if(!_0x4b2ab1){this[_0x1a1c98(0x22e)](_0x2a6d96);return;}let _0x58cc8a=_0x2a6d96[_0x1a1c98(0x356)](_0x2c2668=>qe(_0x2c2668,_0x4b2ab1));if(_0x58cc8a){let _0x7a2b4c=this[_0x1a1c98(0x2be)][_0x1a1c98(0x36c)]({'unitId':_0x58cc8a['unitId'],'subUnitId':_0x58cc8a[_0x1a1c98(0x2bf)],'drawingId':_0x58cc8a[_0x1a1c98(0x292)]});this[_0x1a1c98(0x308)](_0x7a2b4c)&&this[_0x1a1c98(0x323)](_0x7a2b4c);}})),this[_0x52023a(0x1b6)](this[_0x52023a(0x395)][_0x52023a(0x260)](e['UniverInstanceType'][_0x52023a(0x404)])[_0x52023a(0x267)](_0x22ae27=>{const _0x4fd607=_0x52023a;let _0x546d10=this[_0x4fd607(0x282)];_0x546d10&&(_0x22ae27==null?void 0x0:_0x22ae27[_0x4fd607(0x19d)]())!==_0x546d10[_0x4fd607(0x3cd)]&&this[_0x4fd607(0x2d6)]();}));}[_0x56a991(0x32b)](_0x4feb00,_0x34c9ca,_0x429f03,_0x517033){const _0x275b05=_0x56a991;let _0x5099c1=()=>{const _0x81b94=_0x5456;let {chartConfig:_0x204ec0,chartStyle:_0x1d1c23}=this[_0x81b94(0x2bb)]['createRenderInput'](_0x4feb00);Promise[_0x81b94(0x407)](_0x34c9ca['render']({'chartId':_0x4feb00[_0x81b94(0x2ff)],'config':_0x204ec0,'style':_0x1d1c23}))['then'](()=>{const _0x5caf30=_0x81b94;_0x517033()&&this[_0x5caf30(0x256)](_0x429f03)&&this['_staticRenderController'][_0x5caf30(0x27e)](this['_getDrawingSearch'](_0x429f03),!0x0);},()=>{});},_0x3d67cf=(0x0,f['combineLatest'])([_0x4feb00[_0x275b05(0x3f9)][_0x275b05(0x31c)],_0x4feb00[_0x275b05(0x3f9)][_0x275b05(0x2a1)],this[_0x275b05(0x213)][_0x275b05(0x2ee)]])[_0x275b05(0x42e)]((0x0,f[_0x275b05(0x1e7)])(([_0x1a74b1])=>_0x1a74b1!=null))['subscribe'](_0x5099c1),_0x1faaee=this[_0x275b05(0x3ee)][_0x275b05(0x42e)]((0x0,f[_0x275b05(0x1e7)])(_0x1d10f8=>_0x1d10f8===_0x429f03[_0x275b05(0x292)]))[_0x275b05(0x267)](_0x5099c1);return(0x0,e['toDisposable'])(()=>{const _0x1f1fd8=_0x275b05;_0x3d67cf[_0x1f1fd8(0x1cd)](),_0x1faaee[_0x1f1fd8(0x1cd)]();});}[_0x56a991(0x2c9)](_0x4dbb66){const _0xd16799=_0x56a991;let _0x436bac=(_0x4dbb66??[])[_0xd16799(0x1e7)](_0x239633=>this[_0xd16799(0x308)](_0x239633));if(_0x436bac['length']!==0x1){this[_0xd16799(0x2d6)]();return;}this[_0xd16799(0x362)](_0x436bac[0x0]);}[_0x56a991(0x362)](_0x23675d){const _0x2c42c1=_0x56a991;var _0x4db9b2,_0x1ab9ba,_0x31c2b3,_0x277a37;let _0x1bd4c5=this[_0x2c42c1(0x38c)](_0x23675d),_0x5d0492=this[_0x2c42c1(0x20f)](_0x23675d),_0x3bbde1=_0x23675d[_0x2c42c1(0x2bf)]??_0x23675d['unitId'];if(!_0x1bd4c5||!_0x5d0492){this[_0x2c42c1(0x2d6)]();return;}if(((_0x4db9b2=this['_activeLayer'])==null?void 0x0:_0x4db9b2[_0x2c42c1(0x3cd)])===_0x23675d[_0x2c42c1(0x3cd)]&&this['_activeLayer'][_0x2c42c1(0x2bf)]===_0x3bbde1&&this[_0x2c42c1(0x282)][_0x2c42c1(0x292)]===_0x23675d[_0x2c42c1(0x292)]&&this[_0x2c42c1(0x282)]['chartId']===_0x23675d['chartId']){this['_activeLayer'][_0x2c42c1(0x30a)]=_0x1bd4c5[_0x2c42c1(0x30a)],this[_0x2c42c1(0x282)][_0x2c42c1(0x414)]=_0x1bd4c5['sceneRect'],this[_0x2c42c1(0x282)][_0x2c42c1(0x2d3)]=_0x1bd4c5[_0x2c42c1(0x2d3)],this[_0x2c42c1(0x282)][_0x2c42c1(0x367)]=_0x5d0492,this[_0x2c42c1(0x282)][_0x2c42c1(0x421)][_0x2c42c1(0x255)](_0x1bd4c5[_0x2c42c1(0x2c7)]);return;}this[_0x2c42c1(0x2d6)]();let _0x2fc7cb=new f[(_0x2c42c1(0x17f))](_0x1bd4c5[_0x2c42c1(0x2c7)]),_0x4f0739=this[_0x2c42c1(0x40d)][_0x2c42c1(0x3ec)](_0x23675d['unitId']),_0x5ea4f8=_0x4f0739==null||(_0x31c2b3=(_0x1ab9ba=_0x4f0739[_0x2c42c1(0x29d)])[_0x2c42c1(0x33f)])==null?void 0x0:_0x31c2b3[_0x2c42c1(0x1d6)](_0x1ab9ba);this['_canvasFloatDomService'][_0x2c42c1(0x18b)]({'id':_0x23675d[_0x2c42c1(0x292)],'componentKey':Xe,'position$':_0x2fc7cb,'unitId':_0x23675d[_0x2c42c1(0x3cd)],'contentBox':{'wrapperInset':0x0,'contentInset':0x0},'props':{'chartId':_0x23675d['chartId'],'subUnitId':_0x3bbde1},'onPointerDown':_0x3dd6ec=>_0x5ea4f8==null?void 0x0:_0x5ea4f8[_0x2c42c1(0x273)](new PointerEvent(_0x3dd6ec[_0x2c42c1(0x402)],_0x3dd6ec)),'onPointerMove':_0x1fa8a8=>_0x5ea4f8==null?void 0x0:_0x5ea4f8[_0x2c42c1(0x273)](new PointerEvent(_0x1fa8a8[_0x2c42c1(0x402)],_0x1fa8a8)),'onPointerUp':_0x32eed5=>_0x5ea4f8==null?void 0x0:_0x5ea4f8[_0x2c42c1(0x273)](new PointerEvent(_0x32eed5[_0x2c42c1(0x402)],_0x32eed5)),'onWheel':_0x1429cf=>_0x5ea4f8==null?void 0x0:_0x5ea4f8[_0x2c42c1(0x273)](new WheelEvent(_0x1429cf[_0x2c42c1(0x402)],_0x1429cf))}),this[_0x2c42c1(0x167)][_0x2c42c1(0x350)](_0x23675d[_0x2c42c1(0x3cd)],_0x23675d[_0x2c42c1(0x2ff)]);let _0x1f9c69={'unitId':_0x23675d[_0x2c42c1(0x3cd)],'subUnitId':_0x3bbde1,'drawingId':_0x23675d[_0x2c42c1(0x292)],'chartId':_0x23675d['chartId'],'scene':_0x1bd4c5[_0x2c42c1(0x30a)],'sceneRect':_0x1bd4c5[_0x2c42c1(0x414)],'angle':_0x1bd4c5[_0x2c42c1(0x2d3)],'renderRect':_0x5d0492,'position$':_0x2fc7cb,'positionObserver':(0x0,e[_0x2c42c1(0x37d)])(()=>{})};this[_0x2c42c1(0x282)]=_0x1f9c69;let _0x55a9e7=_0x4f0739==null||(_0x277a37=_0x4f0739['scene'])==null?void 0x0:_0x277a37['getViewport'](l[_0x2c42c1(0x2f7)][_0x2c42c1(0x164)]);_0x1f9c69[_0x2c42c1(0x305)]=Ye(_0x55a9e7==null?void 0x0:_0x55a9e7[_0x2c42c1(0x384)],()=>{const _0x5f2787=_0x2c42c1;this['_refreshActivePosition'](_0x23675d['unitId'],_0x23675d[_0x5f2787(0x292)],_0x23675d[_0x5f2787(0x2ff)]);})??(0x0,e[_0x2c42c1(0x37d)])(()=>{});}[_0x56a991(0x2d6)](){const _0x520126=_0x56a991;let _0x527e1d=this['_activeLayer'];_0x527e1d&&(this[_0x520126(0x282)]=null,_0x527e1d['positionObserver'][_0x520126(0x25b)](),this[_0x520126(0x429)]['setActiveDomReady']({'unitId':_0x527e1d[_0x520126(0x3cd)],'subUnitId':_0x527e1d['subUnitId'],'drawingId':_0x527e1d[_0x520126(0x292)]},!0x1),this[_0x520126(0x2b8)]['removeFloatDom'](_0x527e1d[_0x520126(0x292)]),this[_0x520126(0x167)]['setActiveChartRuntime'](null),this['_snapshotRenderService'][_0x520126(0x361)](_0x527e1d[_0x520126(0x3cd)],_0x527e1d[_0x520126(0x2ff)],{'waitForConfig':!0x0}),_0x527e1d['position$'][_0x520126(0x3aa)]());}[_0x56a991(0x1c6)](_0x31c6e2,_0x25ffeb,_0x2fdfcc){const _0x31a609=_0x56a991;let _0x472a95=this[_0x31a609(0x282)];(_0x472a95==null?void 0x0:_0x472a95[_0x31a609(0x3cd)])===_0x31c6e2&&_0x472a95[_0x31a609(0x292)]===_0x25ffeb&&_0x472a95[_0x31a609(0x2ff)]===_0x2fdfcc&&_0x472a95[_0x31a609(0x421)]['next'](Ke(_0x472a95[_0x31a609(0x414)],_0x472a95['scene'],0x1,_0x472a95[_0x31a609(0x2d3)]));}['_updatePosition'](_0x5394a4){const _0x241391=_0x56a991;let _0x120dee=this['_getPositionState'](_0x5394a4),_0x493bd7=this[_0x241391(0x20f)](_0x5394a4);if(_0x120dee&&_0x493bd7){var _0x56b2e4;this[_0x241391(0x282)]&&(this['_activeLayer']['scene']=_0x120dee[_0x241391(0x30a)],this['_activeLayer'][_0x241391(0x414)]=_0x120dee['sceneRect'],this[_0x241391(0x282)]['angle']=_0x120dee['angle'],this[_0x241391(0x282)][_0x241391(0x367)]=_0x493bd7),(_0x56b2e4=this[_0x241391(0x282)])==null||_0x56b2e4[_0x241391(0x421)][_0x241391(0x255)](_0x120dee['position']),this[_0x241391(0x3ee)][_0x241391(0x255)](_0x5394a4[_0x241391(0x292)]);}}[_0x56a991(0x22e)](_0x368aab){const _0x45d158=_0x56a991;let _0x4cff46=this['_drawingManagerService'][_0x45d158(0x3b4)]()[_0x45d158(0x1e7)](_0x41f20c=>this[_0x45d158(0x308)](_0x41f20c));_0x4cff46[_0x45d158(0x42a)]===0x1&&_0x368aab[_0x45d158(0x24c)](_0x53ae29=>qe(_0x53ae29,_0x4cff46[0x0]))&&this[_0x45d158(0x362)](_0x4cff46[0x0]);}[_0x56a991(0x38c)](_0x159976){const _0x561aee=_0x56a991;let _0x3816bd=_0x159976[_0x561aee(0x26f)];if(!_0x3816bd)return null;let _0xe92ca6=this[_0x561aee(0x40d)][_0x561aee(0x3ec)](_0x159976[_0x561aee(0x3cd)]);if(!(_0xe92ca6!=null&&_0xe92ca6[_0x561aee(0x30a)]))return null;let _0x1771cd=(0x0,m[_0x561aee(0x3dd)])(_0x159976),_0x2bfa39=_0xe92ca6['scene'][_0x561aee(0x326)](_0x1771cd),_0x3c43a0=Je(_0x159976,_0x2bfa39),_0x2c0731=_0x3c43a0['right']-_0x3c43a0[_0x561aee(0x25d)],_0x16de15=_0x3c43a0[_0x561aee(0x303)]-_0x3c43a0[_0x561aee(0x418)];if(_0x2c0731<=0x0||_0x16de15<=0x0)return null;let _0x569227=q([_0x2bfa39==null?void 0x0:_0x2bfa39[_0x561aee(0x2d3)],_0x3816bd[_0x561aee(0x2d3)]]);return{'scene':_0xe92ca6[_0x561aee(0x30a)],'sceneRect':_0x3c43a0,'angle':_0x569227,'position':Ke(_0x3c43a0,_0xe92ca6[_0x561aee(0x30a)],0x1,_0x569227)};}[_0x56a991(0x20f)](_0xf762a3){const _0x5c898f=_0x56a991;var _0x3e99d4,_0xbc0abd,_0x23cad8,_0x10f28a;let _0x1d9664=((_0x3e99d4=_0xf762a3[_0x5c898f(0x26f)])==null?void 0x0:_0x3e99d4[_0x5c898f(0x220)])??((_0xbc0abd=_0xf762a3[_0x5c898f(0x184)])==null||(_0xbc0abd=_0xbc0abd[_0x5c898f(0x2c4)])==null?void 0x0:_0xbc0abd[_0x5c898f(0x220)])??0x0,_0x1cfdee=((_0x23cad8=_0xf762a3[_0x5c898f(0x26f)])==null?void 0x0:_0x23cad8[_0x5c898f(0x163)])??((_0x10f28a=_0xf762a3[_0x5c898f(0x184)])==null||(_0x10f28a=_0x10f28a[_0x5c898f(0x2c4)])==null?void 0x0:_0x10f28a[_0x5c898f(0x163)])??0x0;return _0x1d9664<=0x0||_0x1cfdee<=0x0?null:{'width':Math[_0x5c898f(0x3bf)](0x1,Math[_0x5c898f(0x1eb)](_0x1d9664)),'height':Math[_0x5c898f(0x3bf)](0x1,Math[_0x5c898f(0x1eb)](_0x1cfdee))};}['_getActiveRenderRect'](_0x35e509){const _0x13d09a=_0x56a991;let _0x3257af=this[_0x13d09a(0x282)];if((_0x3257af==null?void 0x0:_0x3257af[_0x13d09a(0x3cd)])===_0x35e509[_0x13d09a(0x3cd)]&&_0x3257af[_0x13d09a(0x2bf)]===(_0x35e509['subUnitId']??_0x35e509[_0x13d09a(0x3cd)])&&_0x3257af[_0x13d09a(0x292)]===_0x35e509[_0x13d09a(0x292)]&&_0x3257af[_0x13d09a(0x2ff)]===_0x35e509['chartId'])return _0x3257af[_0x13d09a(0x367)];let _0x3e4067=this['_drawingManagerService']['getDrawingByParam'](this[_0x13d09a(0x296)](_0x35e509));return this[_0x13d09a(0x308)](_0x3e4067)?this['_getRenderRect'](_0x3e4067):null;}['_getDrawingSearch'](_0x12f01e){const _0x285281=_0x56a991;return{'unitId':_0x12f01e[_0x285281(0x3cd)],'subUnitId':_0x12f01e['subUnitId']??_0x12f01e[_0x285281(0x3cd)],'drawingId':_0x12f01e[_0x285281(0x292)]};}[_0x56a991(0x256)](_0x325f8e){const _0x4006a1=_0x56a991;let _0x5a67e4=this[_0x4006a1(0x282)];return(_0x5a67e4==null?void 0x0:_0x5a67e4[_0x4006a1(0x3cd)])===_0x325f8e['unitId']&&_0x5a67e4['subUnitId']===(_0x325f8e[_0x4006a1(0x2bf)]??_0x325f8e[_0x4006a1(0x3cd)])&&_0x5a67e4[_0x4006a1(0x292)]===_0x325f8e[_0x4006a1(0x292)]&&_0x5a67e4[_0x4006a1(0x2ff)]===_0x325f8e['chartId'];}[_0x56a991(0x308)](_0x157543){const _0xf99143=_0x56a991;let _0x59fcf4=_0x157543;return(_0x59fcf4==null?void 0x0:_0x59fcf4[_0xf99143(0x342)])===e[_0xf99143(0x331)]['DRAWING_CHART']&&typeof _0x59fcf4[_0xf99143(0x2ff)]==_0xf99143(0x352);}};J=S([x(0x0,m[_0x56a991(0x380)]),x(0x1,h[_0x56a991(0x336)]),x(0x2,(0x0,e['Inject'])(i[_0x56a991(0x165)])),x(0x3,(0x0,e['Inject'])(s[_0x56a991(0x211)])),x(0x4,(0x0,e['Inject'])(I)),x(0x5,(0x0,e[_0x56a991(0x2b5)])(H)),x(0x6,e[_0x56a991(0x411)]),x(0x7,e[_0x56a991(0x19b)]),x(0x8,(0x0,e['Inject'])(e[_0x56a991(0x1e8)])),x(0x9,(0x0,e[_0x56a991(0x2b5)])(K))],J);const Xe=_0x56a991(0x41c),Ze=_0x3ff9a1=>{const _0x30a508=_0x56a991;let {unitId:_0x35a08e,subUnitId:_0x2ffa20,floatDomId:_0x48e0c1,chartId:_0x51f404,context:_0x3b7f73}=_0x3ff9a1,_0x51a2b8=(0x0,i['useDependency'])(J);return(0x0,a[_0x30a508(0x1da)])(()=>{const _0x15cbad=_0x30a508;let _0x262f88=_0x3b7f73[_0x15cbad(0x183)]['current'];if(!_0x262f88)return;let _0x38053e=_0x51a2b8[_0x15cbad(0x2a6)]({'unitId':_0x35a08e,'subUnitId':_0x2ffa20,'drawingId':_0x48e0c1,'chartId':_0x51f404,'root':_0x262f88});return()=>_0x38053e[_0x15cbad(0x25b)]();},[_0x51a2b8,_0x51f404,_0x3b7f73[_0x30a508(0x183)],_0x48e0c1,_0x2ffa20,_0x35a08e]),null;};let Y=class extends e['Disposable']{constructor(_0x118de4,_0x3883ea){const _0x42133e=_0x56a991;super(),this['_drawingManagerService']=_0x118de4,this[_0x42133e(0x31b)]=_0x3883ea;}[_0x56a991(0x2ef)](_0x4281d5,_0x418b42,_0x664cdb,_0x53ca67){const _0x9d3634=_0x56a991;let _0xa97ddc=this[_0x9d3634(0x2cf)](_0x4281d5,_0x418b42);if(_0x664cdb[_0x9d3634(0x334)](),!_0xa97ddc)return{'dispose':()=>_0x664cdb[_0x9d3634(0x334)]()};let _0x26ff83={'unitId':_0x4281d5,'chartId':_0xa97ddc[_0x9d3634(0x2ff)],'width':Math[_0x9d3634(0x3bf)](0x1,Math['round'](_0x53ca67[_0x9d3634(0x220)])),'height':Math['max'](0x1,Math[_0x9d3634(0x1eb)](_0x53ca67[_0x9d3634(0x163)])),'mode':_0x9d3634(0x313)},_0x1eeb8c=this[_0x9d3634(0x31b)][_0x9d3634(0x42f)](_0x26ff83);this[_0x9d3634(0x2d2)](_0x664cdb,_0x1eeb8c);let _0x1977dc=this[_0x9d3634(0x31b)]['snapshotUpdated$'][_0x9d3634(0x267)](_0x46a659=>{const _0x4dd9c7=_0x9d3634;_0x46a659[_0x4dd9c7(0x1a0)]===_0x1eeb8c[_0x4dd9c7(0x1a0)]&&this['_renderEntry'](_0x664cdb,_0x46a659);});return{'dispose':()=>{const _0x56193c=_0x9d3634;_0x1977dc['unsubscribe'](),_0x664cdb[_0x56193c(0x334)]();}};}[_0x56a991(0x2cf)](_0x12e25a,_0x519870){const _0x1a20da=_0x56a991;let _0xe27b81={'unitId':_0x12e25a,'subUnitId':_0x12e25a,'drawingId':_0x519870},_0x51bb1e=this[_0x1a20da(0x2be)][_0x1a20da(0x36c)](_0xe27b81);return!_0x51bb1e||_0x51bb1e[_0x1a20da(0x342)]!==e[_0x1a20da(0x331)][_0x1a20da(0x27b)]||!_0x51bb1e['chartId']?null:_0x51bb1e;}[_0x56a991(0x2d2)](_0x389d4f,_0x18f077){const _0xe32b53=_0x56a991;if(_0x18f077[_0xe32b53(0x160)]!==_0xe32b53(0x162)||!_0x18f077[_0xe32b53(0x2c8)])return;let _0x28cd75=document[_0xe32b53(0x236)](_0xe32b53(0x1bd));_0x28cd75[_0xe32b53(0x21f)]=_0x18f077[_0xe32b53(0x2c8)],_0x28cd75[_0xe32b53(0x166)]='',_0x28cd75[_0xe32b53(0x24b)][_0xe32b53(0x22f)]='block',_0x28cd75[_0xe32b53(0x24b)][_0xe32b53(0x220)]=_0xe32b53(0x435),_0x28cd75['style'][_0xe32b53(0x163)]=_0xe32b53(0x435),_0x389d4f['replaceChildren'](_0x28cd75);}};Y=S([x(0x0,m[_0x56a991(0x380)]),x(0x1,(0x0,e[_0x56a991(0x2b5)])(H))],Y);const Qe=_0x1919a3=>{const _0x20205a=_0x56a991;let {unitId:_0x77a15e,floatDomId:_0x1c955e,context:_0x3e42c3}=_0x1919a3,_0x2cd60d=(0x0,i[_0x20205a(0x1ac)])(Y);return(0x0,a[_0x20205a(0x1da)])(()=>{const _0x14bee2=_0x20205a;let _0x382d71=_0x3e42c3[_0x14bee2(0x183)][_0x14bee2(0x27c)];if(!_0x382d71)return;let _0x49d70d={'width':Number[_0x14bee2(0x168)](_0x382d71[_0x14bee2(0x24b)][_0x14bee2(0x220)])||_0x382d71[_0x14bee2(0x3b3)]||0x1,'height':Number[_0x14bee2(0x168)](_0x382d71['style'][_0x14bee2(0x163)])||_0x382d71['clientHeight']||0x1},_0x120f47=_0x2cd60d[_0x14bee2(0x2ef)](_0x77a15e,_0x1c955e,_0x382d71,_0x49d70d);return()=>_0x120f47[_0x14bee2(0x25b)]();},[_0x3e42c3[_0x20205a(0x183)],_0x1c955e,_0x2cd60d,_0x77a15e]),null;};let X=class extends e[_0x56a991(0x1d1)]{constructor(_0x42ba0a){const _0x3a523e=_0x56a991;super(),this[_0x3a523e(0x3dc)]=_0x42ba0a,this[_0x3a523e(0x222)]();}['_registerComponents'](){const _0x74982a=_0x56a991;this[_0x74982a(0x1b6)](this[_0x74982a(0x3dc)]['register'](Ce,Te)),this[_0x74982a(0x1b6)](this[_0x74982a(0x3dc)][_0x74982a(0x2f0)](v,b)),this['disposeWithMe'](this['_componentManager']['register'](ce,ue)),this['disposeWithMe'](this[_0x74982a(0x3dc)]['register'](e[_0x74982a(0x3c7)],Qe)),this[_0x74982a(0x1b6)](this['_componentManager'][_0x74982a(0x2f0)](Xe,Ze));}};X=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(i[_0x56a991(0x20d)]))],X);let Z=class extends e[_0x56a991(0x1d1)]{constructor(_0x3621ba,_0x1cf900,_0x3ae2fd,_0x515317,_0x2e3b86,_0x4ea78f,_0x53309d){const _0x1de552=_0x56a991;super(),this['_dialogService']=_0x3621ba,this[_0x1de552(0x213)]=_0x1cf900,this[_0x1de552(0x3cf)]=_0x3ae2fd,this[_0x1de552(0x18a)]=_0x515317,this[_0x1de552(0x2fc)]=_0x2e3b86,this[_0x1de552(0x174)]=_0x4ea78f,this[_0x1de552(0x42d)]=_0x53309d,this['_initMenus'](),this[_0x1de552(0x41a)]();}[_0x56a991(0x337)](_0x3f68f5){const _0x5416fb=_0x56a991;let _0x57b5d0=null,_0x4c35a7=()=>{const _0x1c4500=_0x5456;_0x57b5d0==null||_0x57b5d0[_0x1c4500(0x25b)](),_0x57b5d0=null;};return _0x57b5d0=this[_0x5416fb(0x376)][_0x5416fb(0x266)]({'id':'doc-chart.dialog.insert','title':{'title':this[_0x5416fb(0x213)]['t'](_0x5416fb(0x3af))},'className':(0x0,r[_0x5416fb(0x3f8)])(_0x5416fb(0x300)),'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':Ce,'props':{'defaultChartType':(_0x3f68f5==null?void 0x0:_0x3f68f5['defaultChartType'])??(_0x3f68f5==null?void 0x0:_0x3f68f5[_0x5416fb(0x1b5)]),'defaultTableText':_0x3f68f5==null?void 0x0:_0x3f68f5['defaultTableText'],'insertOptions':{'insertRange':(_0x3f68f5==null?void 0x0:_0x3f68f5[_0x5416fb(0x1f2)])??this[_0x5416fb(0x363)]()},'onCancel':_0x4c35a7,'onInserted':_0x4c35a7}}},'onClose':_0x4c35a7}),!0x0;}[_0x56a991(0x239)](_0x2487b6){const _0x155aaa=_0x56a991;let _0x25f940=null,_0x5ca8c0=()=>{_0x25f940==null||_0x25f940['dispose'](),_0x25f940=null;};return _0x25f940=this[_0x155aaa(0x376)][_0x155aaa(0x266)]({'id':le,'title':{'title':this['_localeService']['t']('docs-chart-ui.common.editChart')},'width':0x3d4,'draggable':!0x1,'mask':!0x0,'maskClosable':!0x1,'children':{'label':{'name':ce,'props':{..._0x2487b6,'onClose':_0x5ca8c0}}},'onClose':_0x5ca8c0}),!0x0;}[_0x56a991(0x36a)](){const _0x28e420=_0x56a991;this[_0x28e420(0x174)][_0x28e420(0x1f4)](ze);}['_registerDialogOperations'](){const _0x2d3dab=_0x56a991;this['disposeWithMe'](this[_0x2d3dab(0x42d)][_0x2d3dab(0x1db)](_0x362af8=>{const _0x165231=_0x2d3dab;if(_0x362af8['id']===g['id']){this[_0x165231(0x337)](_0x362af8[_0x165231(0x254)]);return;}if(_0x362af8['id']===_['id']){let _0x5ae6f3=_0x362af8[_0x165231(0x254)];_0x5ae6f3&&this[_0x165231(0x239)](_0x5ae6f3);}}));}[_0x56a991(0x363)](){const _0x143e3d=_0x56a991;let _0xfbd926=this[_0x143e3d(0x3cf)][_0x143e3d(0x35c)](e[_0x143e3d(0x432)][_0x143e3d(0x404)]);if(!_0xfbd926)return;let _0x3b83f1=_0xfbd926[_0x143e3d(0x19d)](),_0x4cb92c=null;try{_0x4cb92c=this[_0x143e3d(0x2fc)][_0x143e3d(0x2a8)](_0x3b83f1);}catch{_0x4cb92c=null;}if(_0x4cb92c){let _0x599ec1={'startOffset':_0x4cb92c[_0x143e3d(0x312)],'endOffset':_0x4cb92c[_0x143e3d(0x257)],'collapsed':_0x4cb92c[_0x143e3d(0x312)]===_0x4cb92c[_0x143e3d(0x257)],'segmentId':_0x4cb92c[_0x143e3d(0x3b7)]??''};return R(_0xfbd926,_0x599ec1)?_0x599ec1:void 0x0;}let _0x1c14a5=[...this[_0x143e3d(0x18a)][_0x143e3d(0x3e5)]()??[]];if(_0x1c14a5[_0x143e3d(0x42a)]!==0x1)return;let _0x35c94f=this[_0x143e3d(0x18a)][_0x143e3d(0x422)]()??_0x1c14a5[0x0];if(!_0x35c94f||!_0x35c94f[_0x143e3d(0x249)]||_0x35c94f[_0x143e3d(0x312)]==null)return;let _0x20056f={..._0x35c94f,'segmentId':_0x35c94f[_0x143e3d(0x3b7)]??''};return R(_0xfbd926,_0x20056f)?_0x20056f:void 0x0;}};Z=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(i[_0x56a991(0x355)])),x(0x1,(0x0,e['Inject'])(e[_0x56a991(0x1e8)])),x(0x2,e[_0x56a991(0x19b)]),x(0x3,(0x0,e[_0x56a991(0x2b5)])(c['DocSelectionManagerService'])),x(0x4,(0x0,e['Inject'])(c[_0x56a991(0x2cc)])),x(0x5,i['IMenuManagerService']),x(0x6,e[_0x56a991(0x411)])],Z);let Q=class extends e[_0x56a991(0x1d1)]{constructor(_0x4bac80,_0x2561ad){const _0x1f32ac=_0x56a991;super(),this[_0x1f32ac(0x1c4)]=_0x2561ad,this[_0x1f32ac(0x1b6)](_0x4bac80[_0x1f32ac(0x2f0)](this));}[_0x56a991(0x1ea)](_0x4bbe00){const _0x58c212=_0x56a991;return _0x58c212(0x3cd)in _0x4bbe00&&_0x58c212(0x1a1)in _0x4bbe00;}[_0x56a991(0x209)](_0xface53){const _0x134d9b=_0x56a991;if(!this[_0x134d9b(0x1ea)](_0xface53))return Promise['resolve'](void 0x0);let _0x52433a=_0xface53['getInfo']()[_0x134d9b(0x2c4)];return this[_0x134d9b(0x1c4)][_0x134d9b(0x209)]({'unitId':_0xface53[_0x134d9b(0x3cd)],'chartId':_0xface53[_0x134d9b(0x27d)](),'width':Math[_0x134d9b(0x3bf)](0x1,(_0x52433a==null?void 0x0:_0x52433a[_0x134d9b(0x220)])??0x1),'height':Math['max'](0x1,(_0x52433a==null?void 0x0:_0x52433a['height'])??0x1),'mode':_0x134d9b(0x396)});}};Q=S([x(0x0,(0x0,e[_0x56a991(0x2b5)])(t[_0x56a991(0x189)])),x(0x1,(0x0,e[_0x56a991(0x2b5)])(H))],Q);let $=class extends e[_0x56a991(0x1a9)]{constructor(_0x53aa8f=De,_0x1cc6de,_0x4b0a1a,_0x5ed68a){const _0x5c6170=_0x56a991;super(),this[_0x5c6170(0x21a)]=_0x53aa8f,this[_0x5c6170(0x26c)]=_0x1cc6de,this[_0x5c6170(0x178)]=_0x4b0a1a,this[_0x5c6170(0x42d)]=_0x5ed68a;let {..._0x31f5d8}=(0x0,e[_0x5c6170(0x341)])({},De,this['_config']);this[_0x5c6170(0x178)]['setConfig'](Ee,_0x31f5d8),this[_0x5c6170(0x3de)]();}[_0x56a991(0x1d5)](){const _0x27e739=_0x56a991;let _0x4fcb55=this[_0x27e739(0x26c)];[[X],[z],[C],[w,{'useClass':T}],[J],[Y],[I],[H],[Q],[U],[K],[B],[V],[Z]]['forEach'](_0x22d1f8=>_0x4fcb55[_0x27e739(0x247)](_0x22d1f8)),(0x0,e[_0x27e739(0x364)])(_0x4fcb55,[[z],[C],[w],[J],[Y],[I],[H],[Q],[B],[V]]),this[_0x27e739(0x26c)][_0x27e739(0x333)](X);}[_0x56a991(0x3be)](){const _0x275144=_0x56a991;this[_0x275144(0x26c)]['get'](U),this[_0x275144(0x26c)]['get'](K),this['_injector'][_0x275144(0x333)](B),this['_injector'][_0x275144(0x333)](V),this[_0x275144(0x26c)][_0x275144(0x333)](Z);}[_0x56a991(0x3de)](){[g,_]['forEach'](_0x651270=>{const _0x5eea30=_0x5456;this['disposeWithMe'](this['_commandService'][_0x5eea30(0x270)](_0x651270));});}};N($,'type',e[_0x56a991(0x432)][_0x56a991(0x404)]),N($,'pluginName','UniverDocsChartUIPlugin'),N($,_0x56a991(0x23d),Be),N($,'version',Ve),$=S([(0x0,e[_0x56a991(0x25e)])(p[_0x56a991(0x186)],c[_0x56a991(0x2cd)],m[_0x56a991(0x29f)],h['UniverRenderEnginePlugin'],u[_0x56a991(0x1cf)],l[_0x56a991(0x200)],t[_0x56a991(0x17d)],s[_0x56a991(0x240)],d[_0x56a991(0x26a)]),x(0x1,(0x0,e['Inject'])(e[_0x56a991(0x34a)])),x(0x2,e['IConfigService']),x(0x3,e['ICommandService'])],$),exports['DOCS_CHART_UI_PLUGIN_CONFIG_KEY']=Ee,exports[_0x56a991(0x241)]=Xe,exports['DOC_CHART_CLIPBOARD_RESOURCE_KEY']=Oe,exports[_0x56a991(0x17a)]=v,exports['DOC_CHART_DATA_EDITOR_DIALOG_ID']=_0x56a991(0x394),exports['DOC_CHART_EDITOR_DIALOG_COMPONENT']=ce,exports[_0x56a991(0x3d7)]=le,exports[_0x56a991(0x328)]=Pe,exports[_0x56a991(0x3df)]=W,exports[_0x56a991(0x3a2)]=Ce,exports['DocActiveChart']=Ze,Object['defineProperty'](exports,'DocChartActiveRenderService',{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x56a991(0x387)](exports,_0x56a991(0x320),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x56a991(0x387)](exports,_0x56a991(0x3b6),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x56a991(0x319)]=b,exports[_0x56a991(0x251)]=y,Object[_0x56a991(0x387)](exports,_0x56a991(0x30e),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x56a991(0x2b1)]=ne,exports[_0x56a991(0x338)]=ue,exports[_0x56a991(0x2fa)]=Re,exports[_0x56a991(0x1d8)]=G,exports[_0x56a991(0x258)]=Te,exports[_0x56a991(0x3b1)]=Le,Object[_0x56a991(0x387)](exports,_0x56a991(0x1f5),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x56a991(0x387)](exports,_0x56a991(0x2d7),{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x56a991(0x426),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x56a991(0x387)](exports,_0x56a991(0x1fc),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x56a991(0x387)](exports,_0x56a991(0x39b),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x56a991(0x185),{'enumerable':!0x0,'get':function(){return T;}}),exports['DocDomChartHost']=P,exports[_0x56a991(0x2f4)]=Qe,exports[_0x56a991(0x2e9)]=ze,exports[_0x56a991(0x237)]=Me,exports[_0x56a991(0x32a)]=w,exports['OpenDocChartEditorDialogOperation']=_,exports[_0x56a991(0x3a1)]=g,Object['defineProperty'](exports,'UniverDocsChartUIPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x56a991(0x437)]=De,exports[_0x56a991(0x2d9)]=Fe;
|