@univerjs-pro/sheets-chart-ui 0.5.2 → 0.5.3-experimental.20250106-e3b7a39

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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x87b07f=_0x1c16;(function(_0x7b308,_0x404a93){const _0x569721=_0x1c16,_0x5f597a=_0x7b308();while(!![]){try{const _0x225fef=parseInt(_0x569721(0x147))/0x1+-parseInt(_0x569721(0x126))/0x2+parseInt(_0x569721(0x1ac))/0x3*(-parseInt(_0x569721(0x17a))/0x4)+-parseInt(_0x569721(0x1ab))/0x5*(-parseInt(_0x569721(0x143))/0x6)+parseInt(_0x569721(0x1b9))/0x7+parseInt(_0x569721(0x199))/0x8+-parseInt(_0x569721(0x137))/0x9*(parseInt(_0x569721(0x183))/0xa);if(_0x225fef===_0x404a93)break;else _0x5f597a['push'](_0x5f597a['shift']());}catch(_0x2100a4){_0x5f597a['push'](_0x5f597a['shift']());}}}(_0xcd83,0xbaa81));var v=Object['defineProperty'],b=(_0x586a82,_0x330187,_0x22cb2e)=>_0x330187 in _0x586a82?v(_0x586a82,_0x330187,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22cb2e}):_0x586a82[_0x330187]=_0x22cb2e,r=(_0x4c9bcf,_0x3c0867,_0xb866dc)=>b(_0x4c9bcf,typeof _0x3c0867!=_0x87b07f(0x12b)?_0x3c0867+'':_0x3c0867,_0xb866dc);import{setProperty as _0x1d74c0,SheetsChartService as _0x4cab45,ChartUpdateSourceCommand as _0x32ef24,ChartUpdateConfigCommand as _0xab4527,ChartThemeService as _0x46da2b,ChartTypeBits as _0x3602dd}from'@univerjs-pro/sheets-chart';import{InsertChartCommand as _0x509a3d}from'@univerjs-pro/sheets-chart-ui';import{FBase as _0x202d0e,CommandService as _0x14d6b7,IUniverInstanceService as _0x4bd44d,UniverInstanceType as _0x3933ef,generateRandomId as _0x3c3094,DrawingTypeEnum as _0x317eee}from'@univerjs/core';function _0xcd83(){const _0x342e73=['setLineStyle','keys','updateChart','setYAxisTitle','seriesStyleMap','indicatorLineColor','4839777mnRtal','asPieChart','titles.xAxisTitle.fontWeight','titles.yAxisTitle.alignment','indicatorLineType','titles.title.font','title','setFill','shape','getCategoryData','setXAxisTitle','getUnitChartModels','6719094vDBkll','point','setRightYAxisTitle','setTheme','1013154SiHvwl','titles.xAxisTitle.fontColor','lineStyle','setAxisPointerStyle','pie.showLabelLine','height','setShowLabelLine','selectMode','titles.yAxisTitle.fontWeight','_injector','tooltip.indicatorLabelColor','top','xAxisTitle','dataSource','setInvalidValueStrategy','subUnitId','titles.rightYAxisTitle.alignment','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','titles.rightYAxisTitle.fontWeight','addRange','executeCommand','setTransposeRowsAndColumns','sourceSheetName','modify','get','titles.xAxisTitle.fontStyle','series','options','allSeriesStyle.point.size','titles.yAxisTitle.fontStyle','legend.label.color','newChart','DRAWING_CHART','titles.title.content','style','build','borderColor','transposeRowsAndColumns','pie.isHalfPie','getRange','fontStyle','legend.position','color','theme','setHeight','titles.title.fontSize','position','isHalfPie','setDataPointColor','setBorderColor','getSheetBySheetName','264184CoiSkL','content','range','dataPointShape','left','pie','chartId','titles.xAxisTitle.alignment','getUnitId','10DrmUCW','setShape','yRightAxis','getRenderById','chartType','unitId','legend.label.bold','yAxis','pie.doughnutHole','font','axisPointer','setDataPointSize','backgroundColor','registerTheme','titles.title.fontWeight','titles.xAxisTitle.font','alignment','setWidth','setRightYAxisTextStyle','getSheetId','getCurrentUnitForType','removeChart','4390544Kkhjvh','italic','showLabelLine','setOptions','setAbsolutePosition','rightYAxis','width','setDataPointShape','dataPointColor','titles.rightYAxisTitle.fontColor','xAxis','_workbook','updateRange','allSeriesStyle.point.shape','titles.title.fontColor','fill','titles.title.alignment','area.lineStyle','5vRvvNc','12TMSIQe','tooltip.indicatorLabelTextColor','fontColor','titles.xAxisTitle.fontSize','isRowDirection','yAxisTitle','pie.borderColor','getWorkbook','fontSize','getChartId','legend','map','doughnutHole','1296904TdiKeU','getChartModel','getCharts','setYAxisTextStyle','getSeriesData','setDoughnutHole','area','pie.hasPaddingAngle','rosePie','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','setHasPaddingAngle','setChartType','titles.rightYAxisTitle.content','sheetName','rightYAxisTitle','setPosition','radar.fill','titles.xAxisTitle.content','category','indicatorLabelColor','registerChartTheme','asLineChart','hasPaddingAngle','length','pie.rosePie','dataPointSize','extend','2601222PHwUwC','setSeriesStyle','legend.label.fontSize','config','titles.rightYAxisTitle.font','symbol','allSeriesStyle','_commandService','setIsHalfPie','fontWeight','\x20not\x20found'];_0xcd83=function(){return _0x342e73;};return _0xcd83();}import{RemoveSheetDrawingCommand as _0x3fd868}from'@univerjs/sheets-drawing-ui';import{FWorksheet as _0x4a9493}from'@univerjs/sheets/facade';import{deserializeRangeWithSheet as _0x4ab060}from'@univerjs/engine-formula';import{IRenderManagerService as _0x1dfd54}from'@univerjs/engine-render';import{ISheetSelectionRenderService as _0xdfa6c2,SheetSkeletonManagerService as _0x32e24b,convertPositionCellToSheetOverGrid as _0x4fb90b}from'@univerjs/sheets-ui';const s=(_0x348df2,_0x3d5266,_0xafd6b)=>{_0xafd6b!==void 0x0&&_0x1d74c0(_0x348df2,_0x3d5266,_0xafd6b);},A=(_0x255a72,_0x49eb91,_0x457b93,_0x3ec102={})=>{const _0x796ba0=_0x87b07f,_0x227a0b={},_0x25e4f7={};if(_0x3ec102[_0x796ba0(0x13d)]){const _0x170f31=_0x3ec102['title'];s(_0x227a0b,_0x796ba0(0x168),_0x170f31['content']),s(_0x227a0b,_0x796ba0(0x13c),_0x170f31[_0x796ba0(0x18c)]),s(_0x227a0b,_0x796ba0(0x174),_0x170f31['fontSize']),s(_0x227a0b,_0x796ba0(0x1a7),_0x170f31[_0x796ba0(0x1ae)]),s(_0x227a0b,'titles.title.fontStyle',_0x170f31['fontStyle']),s(_0x227a0b,_0x796ba0(0x191),_0x170f31[_0x796ba0(0x12f)]),s(_0x227a0b,_0x796ba0(0x1a9),_0x170f31[_0x796ba0(0x193)]),s(_0x227a0b,'titles.title.titlePosition',_0x170f31[_0x796ba0(0x175)]);}if(_0x3ec102['legend']){const _0x35e2ff=_0x3ec102[_0x796ba0(0x1b6)];s(_0x227a0b,_0x796ba0(0x170),_0x35e2ff['position']),s(_0x227a0b,'legend.selectMode',_0x35e2ff[_0x796ba0(0x14e)]),s(_0x227a0b,_0x796ba0(0x128),_0x35e2ff['fontSize']),s(_0x227a0b,_0x796ba0(0x165),_0x35e2ff[_0x796ba0(0x171)]),s(_0x227a0b,_0x796ba0(0x189),_0x35e2ff['bold']),s(_0x227a0b,'legend.label.italic',_0x35e2ff[_0x796ba0(0x19a)]);}if(_0x3ec102['pie']){const _0x107194=_0x3ec102[_0x796ba0(0x17f)];s(_0x227a0b,_0x796ba0(0x18b),_0x107194['doughnutHole']),s(_0x227a0b,_0x796ba0(0x1b2),_0x107194[_0x796ba0(0x16b)]),s(_0x227a0b,_0x796ba0(0x112),_0x107194[_0x796ba0(0x121)]),s(_0x227a0b,_0x796ba0(0x16d),_0x107194['isHalfPie']),s(_0x227a0b,'pie.rosePie',_0x107194[_0x796ba0(0x113)]),s(_0x227a0b,_0x796ba0(0x14b),_0x107194[_0x796ba0(0x19b)]);}if(_0x3ec102[_0x796ba0(0x18d)]){const _0x372562=_0x3ec102[_0x796ba0(0x18d)];s(_0x227a0b,_0x796ba0(0x151),_0x372562[_0x796ba0(0x11e)]),s(_0x227a0b,'tooltip.indicatorLineType',_0x372562[_0x796ba0(0x13b)]),s(_0x227a0b,'tooltip.indicatorLineColor',_0x372562[_0x796ba0(0x136)]),s(_0x227a0b,_0x796ba0(0x1ad),_0x372562['indicatorLabelTextColor']);}if(_0x3ec102[_0x796ba0(0x12c)]&&s(_0x227a0b,'allSeriesStyle.point',_0x3ec102['allSeriesStyle'][_0x796ba0(0x144)]),_0x3ec102[_0x796ba0(0x111)]&&s(_0x227a0b,_0x796ba0(0x1aa),_0x3ec102[_0x796ba0(0x111)][_0x796ba0(0x149)]),_0x3ec102[_0x796ba0(0x172)]&&s(_0x227a0b,_0x796ba0(0x172),_0x3ec102[_0x796ba0(0x172)]),_0x3ec102[_0x796ba0(0x153)]){const _0x301231=_0x3ec102[_0x796ba0(0x153)];s(_0x227a0b,_0x796ba0(0x11c),_0x301231[_0x796ba0(0x17b)]),s(_0x227a0b,_0x796ba0(0x192),_0x301231[_0x796ba0(0x18c)]),s(_0x227a0b,_0x796ba0(0x1af),_0x301231[_0x796ba0(0x1b4)]),s(_0x227a0b,_0x796ba0(0x148),_0x301231[_0x796ba0(0x1ae)]),s(_0x227a0b,_0x796ba0(0x160),_0x301231[_0x796ba0(0x16f)]),s(_0x227a0b,_0x796ba0(0x139),_0x301231['fontWeight']),s(_0x227a0b,_0x796ba0(0x181),_0x301231[_0x796ba0(0x193)]);}if(_0x3ec102['yAxisTitle']){const _0x224595=_0x3ec102['yAxisTitle'];s(_0x227a0b,'titles.yAxisTitle.content',_0x224595[_0x796ba0(0x17b)]),s(_0x227a0b,'titles.yAxisTitle.font',_0x224595[_0x796ba0(0x18c)]),s(_0x227a0b,'titles.yAxisTitle.fontSize',_0x224595[_0x796ba0(0x1b4)]),s(_0x227a0b,'titles.yAxisTitle.fontColor',_0x224595['fontColor']),s(_0x227a0b,_0x796ba0(0x164),_0x224595[_0x796ba0(0x16f)]),s(_0x227a0b,_0x796ba0(0x14f),_0x224595['fontWeight']),s(_0x227a0b,_0x796ba0(0x13a),_0x224595['alignment']);}if(_0x3ec102[_0x796ba0(0x119)]){const _0x595aac=_0x3ec102['rightYAxisTitle'];s(_0x227a0b,_0x796ba0(0x117),_0x595aac[_0x796ba0(0x17b)]),s(_0x227a0b,_0x796ba0(0x12a),_0x595aac[_0x796ba0(0x18c)]),s(_0x227a0b,'titles.rightYAxisTitle.fontSize',_0x595aac[_0x796ba0(0x1b4)]),s(_0x227a0b,_0x796ba0(0x1a2),_0x595aac[_0x796ba0(0x1ae)]),s(_0x227a0b,'titles.rightYAxisTitle.fontStyle',_0x595aac[_0x796ba0(0x16f)]),s(_0x227a0b,_0x796ba0(0x159),_0x595aac['fontWeight']),s(_0x227a0b,_0x796ba0(0x157),_0x595aac[_0x796ba0(0x193)]);}_0x3ec102[_0x796ba0(0x1a3)]&&s(_0x227a0b,_0x796ba0(0x1a3),_0x3ec102['xAxis']),_0x3ec102[_0x796ba0(0x18a)]&&s(_0x227a0b,'yAxis',_0x3ec102[_0x796ba0(0x18a)]),_0x3ec102[_0x796ba0(0x185)]&&s(_0x227a0b,_0x796ba0(0x19e),_0x3ec102['yRightAxis']),_0x3ec102[_0x796ba0(0x135)]&&s(_0x227a0b,'seriesStyleMap',_0x3ec102['seriesStyleMap']);const _0x5f0da1={'unitId':_0x255a72,'chartModelId':_0x49eb91};let _0x3f7dd1=!0x1;if(_0x457b93!==void 0x0&&(_0x5f0da1['chartType']=_0x457b93,_0x3f7dd1=!0x0),Object[_0x796ba0(0x132)](_0x227a0b)['length']>0x0&&(_0x5f0da1[_0x796ba0(0x169)]=_0x227a0b,_0x3f7dd1=!0x0),Object[_0x796ba0(0x132)](_0x25e4f7)[_0x796ba0(0x122)]>0x0&&(_0x5f0da1['context']=_0x25e4f7,_0x3f7dd1=!0x0),_0x3f7dd1)return _0x5f0da1;};class c extends _0x202d0e{constructor(_0x887c14,_0x1d6663,_0x3a27ba,_0x250299,_0x183c1d){const _0x27c0c0=_0x87b07f;super(),r(this,_0x27c0c0(0x1a4)),r(this,_0x27c0c0(0x150)),r(this,_0x27c0c0(0x188)),r(this,_0x27c0c0(0x156)),r(this,_0x27c0c0(0x180)),r(this,_0x27c0c0(0x17c)),r(this,_0x27c0c0(0x15d)),r(this,'x'),r(this,'y'),r(this,_0x27c0c0(0x19f)),r(this,_0x27c0c0(0x14c)),r(this,_0x27c0c0(0x187)),r(this,_0x27c0c0(0x162)),r(this,_0x27c0c0(0x16c)),(this[_0x27c0c0(0x188)]=_0x887c14,this[_0x27c0c0(0x156)]=_0x1d6663,this[_0x27c0c0(0x1a4)]=_0x3a27ba,this[_0x27c0c0(0x150)]=_0x250299,_0x183c1d&&(this[_0x27c0c0(0x180)]=_0x183c1d));}['getChartType'](){return this['chartType'];}[_0x87b07f(0x15a)](_0x3847c3){const _0x385c81=_0x87b07f;if(typeof _0x3847c3=='string'){const _0x146e93=_0x4ab060(_0x3847c3);_0x146e93[_0x385c81(0x118)]&&(this[_0x385c81(0x15d)]=_0x146e93[_0x385c81(0x118)]),this[_0x385c81(0x17c)]=_0x146e93[_0x385c81(0x17c)];}else this[_0x385c81(0x17c)]=_0x3847c3;return this;}['clearRange'](){return this['range']=void 0x0,this['sourceSheetName']=void 0x0,this;}[_0x87b07f(0x11a)](_0x1b7e9a,_0x3dbf85,_0x5e1dd9,_0xf8515c){const _0x4527e3=_0x87b07f,_0x1f68ac=this[_0x4527e3(0x150)][_0x4527e3(0x15f)](_0x1dfd54)[_0x4527e3(0x186)](this[_0x4527e3(0x188)]);if(!_0x1f68ac)throw new Error(_0x4527e3(0x114));const _0x424446=_0x1f68ac['with'](_0xdfa6c2),_0x16c9f2=_0x1f68ac['with'](_0x32e24b),{transform:_0x473420}=_0x4fb90b(this['unitId'],this['subUnitId'],{'row':_0x1b7e9a,'column':_0x3dbf85,'rowOffset':_0x5e1dd9,'columnOffset':_0xf8515c},0x1,0x1,_0x424446,_0x16c9f2),_0xc2b8d5=_0x473420[_0x4527e3(0x152)],_0x437110=_0x473420[_0x4527e3(0x17e)];return this['x']=_0x437110,this['y']=_0xc2b8d5,this;}[_0x87b07f(0x19d)](_0x4061b3,_0x303080){return this['x']=_0x4061b3,this['y']=_0x303080,this;}[_0x87b07f(0x116)](_0x1104be){return this['chartType']=_0x1104be,this;}[_0x87b07f(0x194)](_0x3f6de8){return this['width']=_0x3f6de8,this;}[_0x87b07f(0x173)](_0x1557d3){return this['height']=_0x1557d3,this;}[_0x87b07f(0x19c)](_0xc29c8,_0xfc4171){const _0x5a6045=_0x87b07f;return this[_0x5a6045(0x162)]||(this['options']={}),_0xc29c8===''?(this[_0x5a6045(0x162)]={...this[_0x5a6045(0x162)],..._0xfc4171},this):(_0x1d74c0(this[_0x5a6045(0x162)],_0xc29c8,_0xfc4171),this);}[_0x87b07f(0x15c)](_0x55a219){const _0xb6799b=_0x87b07f;return this[_0xb6799b(0x16c)]=_0x55a219,this;}[_0x87b07f(0x146)](_0x469987){const _0x183719=_0x87b07f;return this[_0x183719(0x19c)](_0x183719(0x172),_0x469987),this;}[_0x87b07f(0x141)](_0x301573){const _0x3a2ddf=_0x87b07f;var _0x1a9224;const _0xda55f8=((_0x1a9224=this[_0x3a2ddf(0x162)])==null?void 0x0:_0x1a9224[_0x3a2ddf(0x153)])||{};return _0xda55f8[_0x3a2ddf(0x17b)]=_0x301573,this['setOptions'](_0x3a2ddf(0x153),_0xda55f8),this;}[_0x87b07f(0x134)](_0x4d5aa5){const _0x3cd1e2=_0x87b07f;var _0x378d49;const _0x4c1ef8=((_0x378d49=this[_0x3cd1e2(0x162)])==null?void 0x0:_0x378d49[_0x3cd1e2(0x1b1)])||{};return _0x4c1ef8[_0x3cd1e2(0x17b)]=_0x4d5aa5,this['setOptions'](_0x3cd1e2(0x1b1),_0x4c1ef8),this;}[_0x87b07f(0x145)](_0x5a7a95){const _0x48bded=_0x87b07f;var _0x2dac29;const _0x5ec556=((_0x2dac29=this[_0x48bded(0x162)])==null?void 0x0:_0x2dac29[_0x48bded(0x119)])||{};return _0x5ec556[_0x48bded(0x17b)]=_0x5a7a95,this['setOptions']('rightYAxisTitle',_0x5ec556),this;}['setXAxisTextStyle'](_0xbd7737){const _0x5c6b96=_0x87b07f;var _0x4eb382;const _0x1fab21=((_0x4eb382=this[_0x5c6b96(0x162)])==null?void 0x0:_0x4eb382['xAxisTitle'])||{};return this[_0x5c6b96(0x19c)](_0x5c6b96(0x153),{..._0x1fab21,..._0xbd7737}),this;}[_0x87b07f(0x10e)](_0x40ac04){const _0x1b8fb2=_0x87b07f;var _0x534666;const _0x41138f=((_0x534666=this['options'])==null?void 0x0:_0x534666[_0x1b8fb2(0x1b1)])||{};return this[_0x1b8fb2(0x19c)]('yAxisTitle',{..._0x41138f,..._0x40ac04}),this;}[_0x87b07f(0x195)](_0x413a67){const _0x105628=_0x87b07f;var _0x2f6872;const _0x48bf9d=((_0x2f6872=this[_0x105628(0x162)])==null?void 0x0:_0x2f6872[_0x105628(0x119)])||{};return this[_0x105628(0x19c)](_0x105628(0x119),{..._0x48bf9d,..._0x413a67}),this;}[_0x87b07f(0x155)](_0x33d9d8){return this['setOptions']('invalidValueType',_0x33d9d8),this;}[_0x87b07f(0x14a)](_0x5efe70){const _0x186bc9=_0x87b07f;return this[_0x186bc9(0x19c)](_0x186bc9(0x18d),_0x5efe70),this;}['setAllSeriesStyle'](_0x438950){return this['setOptions']('allSeriesStyle',_0x438950),this;}[_0x87b07f(0x127)](_0x3aeccf,_0x1de16b){const _0x245e90=_0x87b07f;return this[_0x245e90(0x19c)](_0x245e90(0x135),{[_0x3aeccf]:_0x1de16b}),this;}[_0x87b07f(0x16a)](){const _0x500d45=_0x87b07f;var _0x445d84;let _0x215331=this[_0x500d45(0x156)];if(this[_0x500d45(0x15d)]){const _0x58643a=(_0x445d84=this[_0x500d45(0x1a4)][_0x500d45(0x179)](this[_0x500d45(0x15d)]))==null?void 0x0:_0x445d84['getSheetId']();if(!_0x58643a)throw new Error('Sheet\x20'+this[_0x500d45(0x15d)]+_0x500d45(0x130));_0x215331=_0x58643a;}return{'unitId':this[_0x500d45(0x188)],'subUnitId':_0x215331,'chartId':this[_0x500d45(0x180)],'range':this[_0x500d45(0x17c)],'x':this['x'],'y':this['y'],'width':this[_0x500d45(0x19f)],'height':this['height'],'chartType':this[_0x500d45(0x187)],'options':this[_0x500d45(0x162)],'isRowDirection':this['transposeRowsAndColumns']};}}class f{constructor(_0x4bc4a2,_0xd172bf,_0x255dc3,_0x8a966f){const _0x425a18=_0x87b07f;r(this,_0x425a18(0x188)),r(this,_0x425a18(0x156)),r(this,_0x425a18(0x180)),r(this,_0x425a18(0x150)),(this[_0x425a18(0x188)]=_0x4bc4a2,this['subUnitId']=_0xd172bf,this['chartId']=_0x255dc3,this[_0x425a18(0x150)]=_0x8a966f);}[_0x87b07f(0x1b5)](){return this['chartId'];}[_0x87b07f(0x16e)](){const _0x4ab672=_0x87b07f,_0x50bd2e=this[_0x4ab672(0x150)][_0x4ab672(0x15f)](_0x4cab45)[_0x4ab672(0x1ba)](this[_0x4ab672(0x180)]);if(_0x50bd2e)return _0x50bd2e[_0x4ab672(0x154)]['getRangeInfo']();}[_0x87b07f(0x1a5)](_0x4caec5){const _0x37f924=_0x87b07f;return this[_0x37f924(0x150)][_0x37f924(0x15f)](_0x14d6b7)[_0x37f924(0x15b)](_0x32ef24['id'],{'unitId':this[_0x37f924(0x188)],'chartModelId':this['chartId'],'range':_0x4caec5});}[_0x87b07f(0x10f)](){const _0x2d3183=_0x87b07f;var _0xc1ada0;const _0x348554=this[_0x2d3183(0x150)]['get'](_0x4cab45)[_0x2d3183(0x1ba)](this[_0x2d3183(0x180)]);if(_0x348554)return(_0xc1ada0=_0x348554[_0x2d3183(0x129)])==null?void 0x0:_0xc1ada0[_0x2d3183(0x161)];}[_0x87b07f(0x140)](){const _0x307208=_0x87b07f;var _0x23ef25;const _0x33a772=this[_0x307208(0x150)][_0x307208(0x15f)](_0x4cab45)['getChartModel'](this[_0x307208(0x180)]);if(_0x33a772)return(_0x23ef25=_0x33a772['config'])==null?void 0x0:_0x23ef25[_0x307208(0x11d)];}[_0x87b07f(0x15e)](){const _0x3066d4=_0x87b07f,_0xa4e761=this[_0x3066d4(0x150)]['get'](_0x4bd44d)[_0x3066d4(0x197)](_0x3933ef['UNIVER_SHEET']);return new c(this['unitId'],this['subUnitId'],_0xa4e761,this['_injector'],this[_0x3066d4(0x180)]);}}class B extends _0x4a9493{async['insertChart'](_0x4df7d6){const _0xaf34ea=_0x87b07f;var _0x360f7e,_0x578fa5,_0x3a23cf;const _0x4f7934=_0x4df7d6[_0xaf34ea(0x188)]||this[_0xaf34ea(0x1b3)]()['getUnitId'](),_0x4e0b34=_0x4df7d6[_0xaf34ea(0x156)]||this['getSheetId'](),_0x576518=_0x4df7d6[_0xaf34ea(0x180)]||_0x3c3094(),_0x3a1d0e=_0x4df7d6[_0xaf34ea(0x187)],_0x2fb885=_0x4df7d6[_0xaf34ea(0x17c)],_0x12ecf1={'x':_0x4df7d6['x'],'y':_0x4df7d6['y']},_0x238e5a=_0x4df7d6[_0xaf34ea(0x19f)],_0x1655c9=_0x4df7d6[_0xaf34ea(0x14c)],_0x2ebf8e=(_0x360f7e=_0x4df7d6[_0xaf34ea(0x162)])==null?void 0x0:_0x360f7e[_0xaf34ea(0x18f)],_0x24b3eb=(_0x578fa5=_0x4df7d6[_0xaf34ea(0x162)])==null?void 0x0:_0x578fa5[_0xaf34ea(0x16b)],_0x3e4203=A(_0x4f7934,_0x576518,_0x3a1d0e,_0x4df7d6[_0xaf34ea(0x162)]),_0x419395=(_0x3a23cf=_0x4df7d6[_0xaf34ea(0x1b0)])!=null?_0x3a23cf:!0x0;if(!_0x2fb885)throw new Error(_0xaf34ea(0x158));return await this[_0xaf34ea(0x12d)][_0xaf34ea(0x15b)](_0x509a3d['id'],{'unitId':_0x4f7934,'subUnitId':_0x4e0b34,'chartId':_0x576518,'chartType':_0x3a1d0e,'range':_0x2fb885,'position':_0x12ecf1,'width':_0x238e5a,'height':_0x1655c9,'backgroundColor':_0x2ebf8e,'borderColor':_0x24b3eb,'config':_0x3e4203,'isRowDirection':_0x419395}),new f(_0x4f7934,_0x4e0b34,_0x576518,this[_0xaf34ea(0x150)]);}[_0x87b07f(0x133)](_0x21b814){const _0xeea981=_0x87b07f,{unitId:_0x4f2cc6,chartId:_0x5c92fa,chartType:_0x3f6c7c,options:_0x5249ad}=_0x21b814,_0x254e4d=A(_0x4f2cc6,_0x5c92fa,_0x3f6c7c,_0x5249ad);this['_commandService'][_0xeea981(0x15b)](_0xab4527['id'],_0x254e4d);}[_0x87b07f(0x166)](_0x385fc4){const _0xa0c1c=_0x87b07f;if(_0x385fc4)return new c(_0x385fc4[_0xa0c1c(0x188)],_0x385fc4[_0xa0c1c(0x156)],this['_workbook'],this[_0xa0c1c(0x150)],_0x385fc4[_0xa0c1c(0x180)]);const _0x459fee=this[_0xa0c1c(0x1b3)]()[_0xa0c1c(0x182)](),_0x33a0f8=this[_0xa0c1c(0x196)]();return new c(_0x459fee,_0x33a0f8,this[_0xa0c1c(0x1a4)],this[_0xa0c1c(0x150)]);}[_0x87b07f(0x1bb)](){const _0x517422=_0x87b07f,_0x12c64c=this[_0x517422(0x150)][_0x517422(0x15f)](_0x4cab45),_0x139fc5=this[_0x517422(0x1b3)]()[_0x517422(0x182)]();return _0x12c64c[_0x517422(0x142)](_0x139fc5,this['getSheetId']())[_0x517422(0x1b7)](_0x4b5673=>new f(_0x139fc5,this[_0x517422(0x196)](),_0x4b5673['id'],this[_0x517422(0x150)]));}[_0x87b07f(0x198)](_0x17c3af){const _0x5ace4e=_0x87b07f,_0x44eeef=_0x17c3af[_0x5ace4e(0x188)],_0x32b953=_0x17c3af[_0x5ace4e(0x156)],_0x4a1ba5=_0x17c3af[_0x5ace4e(0x180)],_0x789bf1={'unitId':_0x44eeef,'drawings':[{'unitId':_0x44eeef,'subUnitId':_0x32b953,'drawingId':_0x4a1ba5,'drawingType':_0x317eee[_0x5ace4e(0x167)]}]};return this[_0x5ace4e(0x12d)][_0x5ace4e(0x15b)](_0x3fd868['id'],_0x789bf1);}[_0x87b07f(0x11f)](_0x501651,_0x1b205a){const _0x820810=_0x87b07f;this['_injector'][_0x820810(0x15f)](_0x46da2b)[_0x820810(0x190)](_0x501651,_0x1b205a);}}_0x4a9493[_0x87b07f(0x125)](B);class G extends c{constructor(_0x494ddb,_0x5da716,_0x1acdc9,_0x1b01bc,_0x15c9f1){const _0xa945f2=_0x87b07f;super(_0x494ddb,_0x5da716,_0x1acdc9,_0x1b01bc,_0x15c9f1),r(this,_0xa945f2(0x149)),r(this,_0xa945f2(0x17d)),r(this,_0xa945f2(0x1a1)),r(this,_0xa945f2(0x124));}[_0x87b07f(0x131)](_0x274165){const _0xc79e6e=_0x87b07f;return this[_0xc79e6e(0x149)]=_0x274165,this;}[_0x87b07f(0x1a0)](_0x1c2ace){const _0x587343=_0x87b07f;return this[_0x587343(0x17d)]=_0x1c2ace,this;}[_0x87b07f(0x177)](_0x94ff78){return this['dataPointColor']=_0x94ff78,this;}[_0x87b07f(0x18e)](_0xebb038){const _0x377b8e=_0x87b07f;return this[_0x377b8e(0x124)]=_0xebb038,this;}[_0x87b07f(0x16a)](){const _0x5c7160=_0x87b07f,_0x37ec97=super[_0x5c7160(0x16a)]();_0x37ec97[_0x5c7160(0x187)]=_0x3602dd['Line'];const _0x473a8a=_0x37ec97[_0x5c7160(0x162)]||{};return s(_0x473a8a,_0x5c7160(0x1aa),this[_0x5c7160(0x149)]),s(_0x473a8a,_0x5c7160(0x1a6),this[_0x5c7160(0x17d)]),s(_0x473a8a,'allSeriesStyle.point.color',this[_0x5c7160(0x1a1)]),s(_0x473a8a,_0x5c7160(0x163),this['dataPointSize']),_0x37ec97[_0x5c7160(0x162)]=_0x473a8a,_0x37ec97;}}class V extends c{[_0x87b07f(0x120)](){const _0x50a685=_0x87b07f;return new G(this[_0x50a685(0x188)],this[_0x50a685(0x156)],this[_0x50a685(0x1a4)],this['_injector'],this[_0x50a685(0x180)]);}}c[_0x87b07f(0x125)](V);class X extends c{constructor(_0x40aac3,_0x1d7fbb,_0x519601,_0x23f053,_0x47e601){const _0x4b46ec=_0x87b07f;super(_0x40aac3,_0x1d7fbb,_0x519601,_0x23f053,_0x47e601),r(this,_0x4b46ec(0x1b8)),r(this,_0x4b46ec(0x16b)),r(this,'hasPaddingAngle'),r(this,_0x4b46ec(0x176)),r(this,'rosePie'),r(this,_0x4b46ec(0x19b));}[_0x87b07f(0x110)](_0x4cd7a1){const _0x22768f=_0x87b07f;return this[_0x22768f(0x1b8)]=_0x4cd7a1,this;}[_0x87b07f(0x178)](_0x202bfc){const _0x2386d3=_0x87b07f;return this[_0x2386d3(0x16b)]=_0x202bfc,this;}[_0x87b07f(0x115)](_0x5cb84a){return this['hasPaddingAngle']=_0x5cb84a,this;}[_0x87b07f(0x12e)](_0x2a8cd8){const _0x5cad23=_0x87b07f;return this[_0x5cad23(0x176)]=_0x2a8cd8,this;}['setRosePie'](_0x483f2d){const _0x51cec8=_0x87b07f;return this[_0x51cec8(0x113)]=_0x483f2d,this;}[_0x87b07f(0x14d)](_0x5c5916){const _0x29e5ec=_0x87b07f;return this[_0x29e5ec(0x19b)]=_0x5c5916,this;}['build'](){const _0x30acbe=_0x87b07f,_0x82bf12=super[_0x30acbe(0x16a)]();_0x82bf12[_0x30acbe(0x187)]=_0x3602dd['Pie'];const _0x2ba70a=_0x82bf12[_0x30acbe(0x162)]||{};return s(_0x2ba70a,_0x30acbe(0x18b),this[_0x30acbe(0x1b8)]),s(_0x2ba70a,_0x30acbe(0x1b2),this[_0x30acbe(0x16b)]),s(_0x2ba70a,_0x30acbe(0x112),this[_0x30acbe(0x121)]),s(_0x2ba70a,_0x30acbe(0x16d),this[_0x30acbe(0x176)]),s(_0x2ba70a,_0x30acbe(0x123),this[_0x30acbe(0x113)]),s(_0x2ba70a,'pie.showLabelLine',this[_0x30acbe(0x19b)]),_0x82bf12[_0x30acbe(0x162)]=_0x2ba70a,_0x82bf12;}}class q extends c{[_0x87b07f(0x138)](){const _0x13647c=_0x87b07f;return new X(this[_0x13647c(0x188)],this[_0x13647c(0x156)],this[_0x13647c(0x1a4)],this[_0x13647c(0x150)],this[_0x13647c(0x180)]);}}c[_0x87b07f(0x125)](q);class $ extends c{constructor(_0x2ec869,_0x1c2b64,_0xe1d2da,_0x206b87,_0x274d3c){const _0x1f63f8=_0x87b07f;super(_0x2ec869,_0x1c2b64,_0xe1d2da,_0x206b87,_0x274d3c),r(this,'shape'),r(this,_0x1f63f8(0x1a8));}[_0x87b07f(0x184)](_0xbf392c){const _0x496d33=_0x87b07f;return this[_0x496d33(0x13f)]=_0xbf392c,this;}[_0x87b07f(0x13e)](_0x2293eb){const _0x3be999=_0x87b07f;return this[_0x3be999(0x1a8)]=_0x2293eb,this;}[_0x87b07f(0x16a)](){const _0x384536=_0x87b07f,_0x49c041=super[_0x384536(0x16a)]();_0x49c041[_0x384536(0x187)]=_0x3602dd['Radar'];const _0x2263c9=_0x49c041[_0x384536(0x162)]||{};return s(_0x2263c9,'radar.shape',this[_0x384536(0x13f)]),s(_0x2263c9,_0x384536(0x11b),this[_0x384536(0x1a8)]),_0x49c041['options']=_0x2263c9,_0x49c041;}}class J extends c{['asRadarChart'](){const _0x4d1c60=_0x87b07f;return new $(this[_0x4d1c60(0x188)],this['subUnitId'],this[_0x4d1c60(0x1a4)],this[_0x4d1c60(0x150)],this[_0x4d1c60(0x180)]);}}c[_0x87b07f(0x125)](J);function _0x1c16(_0x2085d5,_0x502ca0){const _0xcd831d=_0xcd83();return _0x1c16=function(_0x1c16dd,_0x51fc73){_0x1c16dd=_0x1c16dd-0x10e;let _0x595134=_0xcd831d[_0x1c16dd];return _0x595134;},_0x1c16(_0x2085d5,_0x502ca0);}export{f as FChart,c as FChartBuilderBase,G as LineChartBuilder,X as PieChartBuilder,$ as RadarChartBuilder};
1
+ const _0x305427=_0x2f38;(function(_0x3b270e,_0x24e4af){const _0x437ed9=_0x2f38,_0x194eb4=_0x3b270e();while(!![]){try{const _0x41defd=-parseInt(_0x437ed9(0x197))/0x1+parseInt(_0x437ed9(0x119))/0x2+parseInt(_0x437ed9(0x121))/0x3+-parseInt(_0x437ed9(0x11b))/0x4+parseInt(_0x437ed9(0x152))/0x5+parseInt(_0x437ed9(0x15e))/0x6*(-parseInt(_0x437ed9(0x158))/0x7)+parseInt(_0x437ed9(0x180))/0x8*(parseInt(_0x437ed9(0x148))/0x9);if(_0x41defd===_0x24e4af)break;else _0x194eb4['push'](_0x194eb4['shift']());}catch(_0x410954){_0x194eb4['push'](_0x194eb4['shift']());}}}(_0x4104,0x98e14));var P=Object[_0x305427(0x170)],v=(_0x9a9a2b,_0x44e198,_0x1eb1fe)=>_0x44e198 in _0x9a9a2b?P(_0x9a9a2b,_0x44e198,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1eb1fe}):_0x9a9a2b[_0x44e198]=_0x1eb1fe,n=(_0x2a312c,_0x5dc6db,_0x5053fc)=>v(_0x2a312c,typeof _0x5dc6db!=_0x305427(0x116)?_0x5dc6db+'':_0x5dc6db,_0x5053fc);import{setProperty as _0x5bb7c7,SheetsChartService as _0x55aa4d,ChartUpdateSourceCommand as _0x508846,ChartUpdateConfigCommand as _0x5d28ff,ChartThemeService as _0x4c95d2,ChartTypeBits as _0x3759a1}from'@univerjs-pro/sheets-chart';import{InsertChartCommand as _0x488ba5}from'@univerjs-pro/sheets-chart-ui';function _0x4104(){const _0x660a79=['titles.xAxisTitle.family','setXAxisTextStyle','setIsHalfPie','getUnitChartModels','asPieChart','setTransposeRowsAndColumns','setAxisPointerStyle','setYAxisTitle','yAxis','bold','radar.fill','fontSize','config','getChartModel','axisAlignment','string','rightYAxis.label.axisTitleAlign','titles.yAxisTitle.content','indicatorLineColor','symbol','height','tooltip.indicatorLabelTextColor','532066BbAfwl','width','3812492JciyiV','titles.title.fontSize','category','titles.xAxisTitle.content','legend.label.color','with','739761Snqkqs','executeCommand','titles.rightYAxisTitle.fontSize','top','font','setDataPointColor','getSheetBySheetName','options','getRangeInfo','pie.showLabelLine','borderColor','fill','getChartType','keys','seriesStyleMap','registerChartTheme','titles.title.color','asRadarChart','removeChart','titles.title.font','clearRange','sourceSheetName','lineStyle','build','Radar','newChart','pie.hasPaddingAngle','yRightAxis','legend.label.fontSize','yAxis.label.axisTitleAlign','DRAWING_CHART','This\x20api\x20only\x20works\x20in\x20the\x20active\x20sheet.','doughnutHole','setDoughnutHole','series','position','legend.label.bold','backgroundColor','theme','9xbelpx','rightYAxisTitle','yAxisTitle','rosePie','insertChart','Pie','titles.yAxisTitle.family','setPosition','pie','transposeRowsAndColumns','6140620CQxkGL','allSeriesStyle.point.color','chartType','Range\x20is\x20required\x20to\x20insert\x20a\x20chart','axisPointer','getWorkbook','737387attqNs','pie.isHalfPie','titles.rightYAxisTitle.bold','setShape','setFill','unitId','18RnoQKs','fontColor','xAxis','setRosePie','extend','getUnitId','dataPointSize','_commandService','chartId','shape','_workbook','subUnitId','map','getSeriesData','dataPointShape','asLineChart','showLabelLine','setChartType','defineProperty','titles.rightYAxisTitle.family','titles.title.align','getRenderById','range','titles.rightYAxisTitle.content','setYAxisTextStyle','tooltip.indicatorLabelColor','getSheetId','point','left','allSeriesStyle.point.shape','titles.title.family','setDataPointShape','titles.yAxisTitle.font','tooltip.indicatorLineColor','3526912GgGWsO','modify','radar','pie.borderColor','updateChart','updateRange','legend','addRange','pie.rosePie','length','getRange','dataPointColor','allSeriesStyle.point','isHalfPie','rightYAxis','indicatorLabelTextColor','xAxisTitle','content','fontStyle','_injector','setDataPointSize','allSeriesStyle.point.size','titles.title.content','286266mmqpMn','setRightYAxisTextStyle','pie.doughnutHole','setHasPaddingAngle','radar.shape','setSeriesStyle','title','setAbsolutePosition','setXAxisTitle','setShowLabelLine','get','titles.xAxisTitle.fontSize','legend.selectMode','Line','tooltip.indicatorLineType','setOptions','invalidValueType','isRowDirection','titles.xAxisTitle.color','getCategoryData','hasPaddingAngle','sheetName','setInvalidValueStrategy','titles.titlePosition','titles.yAxisTitle.color','titles.title.bold'];_0x4104=function(){return _0x660a79;};return _0x4104();}import{FBase as _0x582a42,CommandService as _0x12221c,IUniverInstanceService as _0x33b89f,UniverInstanceType as _0x2fd327,generateRandomId as _0x5d8799,DrawingTypeEnum as _0x23730c}from'@univerjs/core';import{RemoveSheetDrawingCommand as _0x121832}from'@univerjs/sheets-drawing-ui';import{FWorksheet as _0x119f5a}from'@univerjs/sheets/facade';import{deserializeRangeWithSheet as _0x3534e1}from'@univerjs/engine-formula';import{IRenderManagerService as _0x38fa64}from'@univerjs/engine-render';import{ISheetSelectionRenderService as _0x1c3a17,SheetSkeletonManagerService as _0x2ebed5,convertPositionCellToSheetOverGrid as _0x15de9d}from'@univerjs/sheets-ui';const s=(_0x5627f6,_0x4c6e88,_0x57515c)=>{_0x57515c!==void 0x0&&_0x5bb7c7(_0x5627f6,_0x4c6e88,_0x57515c);},C=(_0x3e7026,_0x374b8c,_0x5b0a67,_0x58c8db={})=>{const _0x388d45=_0x305427,_0x5b9978={},_0x5f2b1e={};if(_0x58c8db[_0x388d45(0x19d)]){const _0x2e396e=_0x58c8db['title'];s(_0x5b9978,_0x388d45(0x196),_0x2e396e['content']),s(_0x5b9978,_0x388d45(0x134),_0x2e396e['font']),s(_0x5b9978,_0x388d45(0x11c),_0x2e396e[_0x388d45(0x10e)]),s(_0x5b9978,_0x388d45(0x131),_0x2e396e[_0x388d45(0x15f)]),s(_0x5b9978,_0x388d45(0x17c),_0x2e396e[_0x388d45(0x192)]),s(_0x5b9978,_0x388d45(0x1b0),_0x2e396e['bold']),s(_0x5b9978,_0x388d45(0x172),_0x2e396e['titleAlignment']),s(_0x5b9978,_0x388d45(0x1ae),_0x2e396e[_0x388d45(0x144)]);}if(_0x58c8db[_0x388d45(0x186)]){const _0x3f0820=_0x58c8db['legend'];s(_0x5b9978,'legend.position',_0x3f0820[_0x388d45(0x144)]),s(_0x5b9978,_0x388d45(0x1a3),_0x3f0820['selectMode']),s(_0x5b9978,_0x388d45(0x13d),_0x3f0820['fontSize']),s(_0x5b9978,_0x388d45(0x11f),_0x3f0820['color']),s(_0x5b9978,_0x388d45(0x145),_0x3f0820[_0x388d45(0x10c)]),s(_0x5b9978,'legend.label.italic',_0x3f0820['italic']);}if(_0x58c8db[_0x388d45(0x150)]){const _0x4efa82=_0x58c8db[_0x388d45(0x150)];s(_0x5b9978,_0x388d45(0x199),_0x4efa82[_0x388d45(0x141)]),s(_0x5b9978,_0x388d45(0x183),_0x4efa82[_0x388d45(0x12b)]),s(_0x5b9978,_0x388d45(0x13b),_0x4efa82['hasPaddingAngle']),s(_0x5b9978,_0x388d45(0x159),_0x4efa82[_0x388d45(0x18d)]),s(_0x5b9978,'pie.rosePie',_0x4efa82[_0x388d45(0x14b)]),s(_0x5b9978,_0x388d45(0x12a),_0x4efa82[_0x388d45(0x16e)]);}if(_0x58c8db['axisPointer']){const _0x2d8a90=_0x58c8db[_0x388d45(0x156)];s(_0x5b9978,_0x388d45(0x177),_0x2d8a90['indicatorLabelColor']),s(_0x5b9978,_0x388d45(0x1a5),_0x2d8a90['indicatorLineType']),s(_0x5b9978,_0x388d45(0x17f),_0x2d8a90[_0x388d45(0x115)]),s(_0x5b9978,_0x388d45(0x118),_0x2d8a90[_0x388d45(0x18f)]);}if(_0x58c8db['allSeriesStyle']&&s(_0x5b9978,_0x388d45(0x18c),_0x58c8db['allSeriesStyle'][_0x388d45(0x179)]),_0x58c8db['area']&&s(_0x5b9978,'area.lineStyle',_0x58c8db['area'][_0x388d45(0x137)]),_0x58c8db[_0x388d45(0x147)]&&s(_0x5b9978,_0x388d45(0x147),_0x58c8db[_0x388d45(0x147)]),_0x58c8db[_0x388d45(0x182)]&&s(_0x5b9978,_0x388d45(0x182),_0x58c8db[_0x388d45(0x182)]),_0x58c8db[_0x388d45(0x190)]){const _0x1e7882=_0x58c8db[_0x388d45(0x190)];s(_0x5b9978,_0x388d45(0x11e),_0x1e7882['content']),s(_0x5b9978,'titles.xAxisTitle.font',_0x1e7882['font']),s(_0x5b9978,_0x388d45(0x1a2),_0x1e7882[_0x388d45(0x10e)]),s(_0x5b9978,_0x388d45(0x1a9),_0x1e7882[_0x388d45(0x15f)]),s(_0x5b9978,_0x388d45(0x1b1),_0x1e7882['fontStyle']),s(_0x5b9978,'titles.xAxisTitle.bold',_0x1e7882[_0x388d45(0x10c)]),s(_0x5b9978,'xAxis.label.axisTitleAlign',_0x1e7882[_0x388d45(0x111)]);}if(_0x58c8db[_0x388d45(0x14a)]){const _0x59d6e9=_0x58c8db['yAxisTitle'];s(_0x5b9978,_0x388d45(0x114),_0x59d6e9[_0x388d45(0x191)]),s(_0x5b9978,_0x388d45(0x17e),_0x59d6e9['font']),s(_0x5b9978,'titles.yAxisTitle.fontSize',_0x59d6e9[_0x388d45(0x10e)]),s(_0x5b9978,_0x388d45(0x1af),_0x59d6e9[_0x388d45(0x15f)]),s(_0x5b9978,_0x388d45(0x14e),_0x59d6e9[_0x388d45(0x192)]),s(_0x5b9978,'titles.yAxisTitle.bold',_0x59d6e9[_0x388d45(0x10c)]),s(_0x5b9978,_0x388d45(0x13e),_0x59d6e9['axisAlignment']);}if(_0x58c8db[_0x388d45(0x149)]){const _0x513808=_0x58c8db[_0x388d45(0x149)];s(_0x5b9978,_0x388d45(0x175),_0x513808[_0x388d45(0x191)]),s(_0x5b9978,'titles.rightYAxisTitle.font',_0x513808[_0x388d45(0x125)]),s(_0x5b9978,_0x388d45(0x123),_0x513808[_0x388d45(0x10e)]),s(_0x5b9978,'titles.rightYAxisTitle.color',_0x513808[_0x388d45(0x15f)]),s(_0x5b9978,_0x388d45(0x171),_0x513808[_0x388d45(0x192)]),s(_0x5b9978,_0x388d45(0x15a),_0x513808[_0x388d45(0x10c)]),s(_0x5b9978,_0x388d45(0x113),_0x513808[_0x388d45(0x111)]);}_0x58c8db[_0x388d45(0x160)]&&s(_0x5b9978,_0x388d45(0x160),_0x58c8db[_0x388d45(0x160)]),_0x58c8db[_0x388d45(0x10b)]&&s(_0x5b9978,_0x388d45(0x10b),_0x58c8db[_0x388d45(0x10b)]),_0x58c8db[_0x388d45(0x13c)]&&s(_0x5b9978,_0x388d45(0x18e),_0x58c8db[_0x388d45(0x13c)]),_0x58c8db['seriesStyleMap']&&s(_0x5b9978,_0x388d45(0x12f),_0x58c8db[_0x388d45(0x12f)]);const _0x50a5c7={'unitId':_0x3e7026,'chartModelId':_0x374b8c};let _0x1f94d4=!0x1;if(_0x5b0a67!==void 0x0&&(_0x50a5c7[_0x388d45(0x154)]=_0x5b0a67,_0x1f94d4=!0x0),Object['keys'](_0x5b9978)['length']>0x0&&(_0x50a5c7['style']=_0x5b9978,_0x1f94d4=!0x0),Object[_0x388d45(0x12e)](_0x5f2b1e)[_0x388d45(0x189)]>0x0&&(_0x50a5c7['context']=_0x5f2b1e,_0x1f94d4=!0x0),_0x1f94d4)return _0x50a5c7;};class c extends _0x582a42{constructor(_0x59fc5b,_0x29f800,_0x22d14d,_0x3eb16c,_0xdeb0a0){const _0x17c19b=_0x305427;super(),n(this,'_workbook'),n(this,_0x17c19b(0x193)),n(this,_0x17c19b(0x15d)),n(this,_0x17c19b(0x169)),n(this,_0x17c19b(0x166)),n(this,_0x17c19b(0x174)),n(this,_0x17c19b(0x136)),n(this,'x'),n(this,'y'),n(this,_0x17c19b(0x11a)),n(this,_0x17c19b(0x117)),n(this,_0x17c19b(0x154)),n(this,_0x17c19b(0x128)),n(this,_0x17c19b(0x151)),(this[_0x17c19b(0x15d)]=_0x59fc5b,this[_0x17c19b(0x169)]=_0x29f800,this[_0x17c19b(0x168)]=_0x22d14d,this[_0x17c19b(0x193)]=_0x3eb16c,_0xdeb0a0&&(this[_0x17c19b(0x166)]=_0xdeb0a0));}[_0x305427(0x12d)](){const _0x9c3e40=_0x305427;return this[_0x9c3e40(0x154)];}[_0x305427(0x187)](_0xf0bc8){const _0x56755c=_0x305427;if(typeof _0xf0bc8==_0x56755c(0x112)){const _0x3ed9b7=_0x3534e1(_0xf0bc8);_0x3ed9b7[_0x56755c(0x1ac)]&&(this[_0x56755c(0x136)]=_0x3ed9b7[_0x56755c(0x1ac)]),this[_0x56755c(0x174)]=_0x3ed9b7['range'];}else this['range']=_0xf0bc8;return this;}[_0x305427(0x135)](){const _0x46a9f2=_0x305427;return this[_0x46a9f2(0x174)]=void 0x0,this[_0x46a9f2(0x136)]=void 0x0,this;}[_0x305427(0x14f)](_0x557bb9,_0x218496,_0xee6f04,_0x149347){const _0x102060=_0x305427,_0x379711=this['_injector'][_0x102060(0x1a1)](_0x38fa64)[_0x102060(0x173)](this[_0x102060(0x15d)]);if(!_0x379711)throw new Error(_0x102060(0x140));const _0xea824f=_0x379711[_0x102060(0x120)](_0x1c3a17),_0x1aa347=_0x379711[_0x102060(0x120)](_0x2ebed5),{transform:_0x1f9694}=_0x15de9d(this[_0x102060(0x15d)],this['subUnitId'],{'row':_0x557bb9,'column':_0x218496,'rowOffset':_0xee6f04,'columnOffset':_0x149347},0x1,0x1,_0xea824f,_0x1aa347),_0x1200d3=_0x1f9694[_0x102060(0x124)],_0x23952f=_0x1f9694[_0x102060(0x17a)];return this['x']=_0x23952f,this['y']=_0x1200d3,this;}[_0x305427(0x19e)](_0x1b5235,_0x4dbb2f){return this['x']=_0x1b5235,this['y']=_0x4dbb2f,this;}[_0x305427(0x16f)](_0x4138cb){const _0x4859df=_0x305427;return this[_0x4859df(0x154)]=_0x4138cb,this;}['setWidth'](_0x321b2f){const _0x34d3ed=_0x305427;return this[_0x34d3ed(0x11a)]=_0x321b2f,this;}['setHeight'](_0x491684){return this['height']=_0x491684,this;}[_0x305427(0x1a6)](_0x2d3794,_0x548ddd){const _0xefb100=_0x305427;return this['options']||(this[_0xefb100(0x128)]={}),_0x2d3794===''?(this['options']={...this[_0xefb100(0x128)],..._0x548ddd},this):(_0x5bb7c7(this[_0xefb100(0x128)],_0x2d3794,_0x548ddd),this);}[_0x305427(0x1b6)](_0x3123c8){const _0x583cfa=_0x305427;return this[_0x583cfa(0x151)]=_0x3123c8,this;}['setTheme'](_0x371f51){const _0x479e3a=_0x305427;return this[_0x479e3a(0x1a6)]('theme',_0x371f51),this;}[_0x305427(0x19f)](_0xc6179a){const _0x4f9a36=_0x305427;var _0x407346;const _0x374604=((_0x407346=this[_0x4f9a36(0x128)])==null?void 0x0:_0x407346['xAxisTitle'])||{};return _0x374604[_0x4f9a36(0x191)]=_0xc6179a,this[_0x4f9a36(0x1a6)](_0x4f9a36(0x190),_0x374604),this;}[_0x305427(0x1b8)](_0x5bc978){const _0x897e67=_0x305427;var _0x2a7c8e;const _0xe24421=((_0x2a7c8e=this['options'])==null?void 0x0:_0x2a7c8e[_0x897e67(0x14a)])||{};return _0xe24421[_0x897e67(0x191)]=_0x5bc978,this[_0x897e67(0x1a6)](_0x897e67(0x14a),_0xe24421),this;}['setRightYAxisTitle'](_0x10a88e){const _0x109eae=_0x305427;var _0x3417e1;const _0x3ae555=((_0x3417e1=this[_0x109eae(0x128)])==null?void 0x0:_0x3417e1[_0x109eae(0x149)])||{};return _0x3ae555[_0x109eae(0x191)]=_0x10a88e,this[_0x109eae(0x1a6)](_0x109eae(0x149),_0x3ae555),this;}[_0x305427(0x1b2)](_0x3f08b0){const _0x1cdef4=_0x305427;var _0x2a8ada;const _0x5558b9=((_0x2a8ada=this[_0x1cdef4(0x128)])==null?void 0x0:_0x2a8ada['xAxisTitle'])||{};return this['setOptions'](_0x1cdef4(0x190),{..._0x5558b9,..._0x3f08b0}),this;}[_0x305427(0x176)](_0x2fb52e){const _0x3d282e=_0x305427;var _0x1069f4;const _0x45f837=((_0x1069f4=this[_0x3d282e(0x128)])==null?void 0x0:_0x1069f4[_0x3d282e(0x14a)])||{};return this[_0x3d282e(0x1a6)](_0x3d282e(0x14a),{..._0x45f837,..._0x2fb52e}),this;}[_0x305427(0x198)](_0x425c2e){const _0x5b8cc9=_0x305427;var _0x51a8a7;const _0x40eadc=((_0x51a8a7=this[_0x5b8cc9(0x128)])==null?void 0x0:_0x51a8a7[_0x5b8cc9(0x149)])||{};return this[_0x5b8cc9(0x1a6)]('rightYAxisTitle',{..._0x40eadc,..._0x425c2e}),this;}[_0x305427(0x1ad)](_0x328643){const _0x34ce4c=_0x305427;return this[_0x34ce4c(0x1a6)](_0x34ce4c(0x1a7),_0x328643),this;}[_0x305427(0x1b7)](_0x446136){const _0x17774a=_0x305427;return this[_0x17774a(0x1a6)](_0x17774a(0x156),_0x446136),this;}['setAllSeriesStyle'](_0x545358){const _0x442ae7=_0x305427;return this[_0x442ae7(0x1a6)]('allSeriesStyle',_0x545358),this;}[_0x305427(0x19c)](_0x221633,_0x5109d1){const _0x4df989=_0x305427;return this[_0x4df989(0x1a6)](_0x4df989(0x12f),{[_0x221633]:_0x5109d1}),this;}[_0x305427(0x138)](){const _0x1304ff=_0x305427;var _0x22aaa9;let _0x15cfc9=this['subUnitId'];if(this[_0x1304ff(0x136)]){const _0xfb16d=(_0x22aaa9=this[_0x1304ff(0x168)][_0x1304ff(0x127)](this[_0x1304ff(0x136)]))==null?void 0x0:_0x22aaa9['getSheetId']();if(!_0xfb16d)throw new Error('Sheet\x20'+this[_0x1304ff(0x136)]+'\x20not\x20found');_0x15cfc9=_0xfb16d;}return{'unitId':this[_0x1304ff(0x15d)],'subUnitId':_0x15cfc9,'chartId':this[_0x1304ff(0x166)],'range':this[_0x1304ff(0x174)],'x':this['x'],'y':this['y'],'width':this[_0x1304ff(0x11a)],'height':this['height'],'chartType':this[_0x1304ff(0x154)],'options':this[_0x1304ff(0x128)],'isRowDirection':this[_0x1304ff(0x151)]};}}class f{constructor(_0x15ba03,_0x36263e,_0x79f1b2,_0x19d46c){const _0x2b50db=_0x305427;n(this,_0x2b50db(0x15d)),n(this,_0x2b50db(0x169)),n(this,_0x2b50db(0x166)),n(this,_0x2b50db(0x193)),(this[_0x2b50db(0x15d)]=_0x15ba03,this['subUnitId']=_0x36263e,this[_0x2b50db(0x166)]=_0x79f1b2,this[_0x2b50db(0x193)]=_0x19d46c);}['getChartId'](){const _0x1b6004=_0x305427;return this[_0x1b6004(0x166)];}[_0x305427(0x18a)](){const _0x2a7a28=_0x305427,_0x1bd01d=this['_injector']['get'](_0x55aa4d)[_0x2a7a28(0x110)](this[_0x2a7a28(0x166)]);if(_0x1bd01d)return _0x1bd01d['dataSource'][_0x2a7a28(0x129)]();}[_0x305427(0x185)](_0x2d71fd){const _0x35cc7b=_0x305427;return this[_0x35cc7b(0x193)][_0x35cc7b(0x1a1)](_0x12221c)[_0x35cc7b(0x122)](_0x508846['id'],{'unitId':this[_0x35cc7b(0x15d)],'chartModelId':this['chartId'],'range':_0x2d71fd});}[_0x305427(0x16b)](){const _0x8601d2=_0x305427;var _0x151c3b;const _0x247fd8=this[_0x8601d2(0x193)]['get'](_0x55aa4d)[_0x8601d2(0x110)](this[_0x8601d2(0x166)]);if(_0x247fd8)return(_0x151c3b=_0x247fd8[_0x8601d2(0x10f)])==null?void 0x0:_0x151c3b[_0x8601d2(0x143)];}[_0x305427(0x1aa)](){const _0x7377fc=_0x305427;var _0x5afa65;const _0x4ab412=this[_0x7377fc(0x193)]['get'](_0x55aa4d)[_0x7377fc(0x110)](this['chartId']);if(_0x4ab412)return(_0x5afa65=_0x4ab412[_0x7377fc(0x10f)])==null?void 0x0:_0x5afa65[_0x7377fc(0x11d)];}[_0x305427(0x181)](){const _0x5537da=_0x305427,_0x2e8427=this[_0x5537da(0x193)][_0x5537da(0x1a1)](_0x33b89f)['getCurrentUnitForType'](_0x2fd327['UNIVER_SHEET']);return new c(this[_0x5537da(0x15d)],this[_0x5537da(0x169)],_0x2e8427,this[_0x5537da(0x193)],this[_0x5537da(0x166)]);}}class B extends _0x119f5a{async[_0x305427(0x14c)](_0x13a436){const _0x374478=_0x305427;var _0x5508b4,_0x9f557c,_0x49c04b;const _0x41155d=_0x13a436[_0x374478(0x15d)]||this['getWorkbook']()['getUnitId'](),_0x159de9=_0x13a436[_0x374478(0x169)]||this[_0x374478(0x178)](),_0x5cd5ae=_0x13a436[_0x374478(0x166)]||_0x5d8799(),_0x54d3b4=_0x13a436[_0x374478(0x154)],_0x51a9fe=_0x13a436['range'],_0x32efb3={'x':_0x13a436['x'],'y':_0x13a436['y']},_0x52cdfd=_0x13a436[_0x374478(0x11a)],_0x2d88ce=_0x13a436[_0x374478(0x117)],_0x5ae4c4=(_0x5508b4=_0x13a436[_0x374478(0x128)])==null?void 0x0:_0x5508b4[_0x374478(0x146)],_0x1565c1=(_0x9f557c=_0x13a436[_0x374478(0x128)])==null?void 0x0:_0x9f557c[_0x374478(0x12b)],_0x496d62=C(_0x41155d,_0x5cd5ae,_0x54d3b4,_0x13a436['options']),_0x50a911=(_0x49c04b=_0x13a436[_0x374478(0x1a8)])!=null?_0x49c04b:!0x0;if(!_0x51a9fe)throw new Error(_0x374478(0x155));return await this[_0x374478(0x165)][_0x374478(0x122)](_0x488ba5['id'],{'unitId':_0x41155d,'subUnitId':_0x159de9,'chartId':_0x5cd5ae,'chartType':_0x54d3b4,'range':_0x51a9fe,'position':_0x32efb3,'width':_0x52cdfd,'height':_0x2d88ce,'backgroundColor':_0x5ae4c4,'borderColor':_0x1565c1,'config':_0x496d62,'isRowDirection':_0x50a911}),new f(_0x41155d,_0x159de9,_0x5cd5ae,this[_0x374478(0x193)]);}[_0x305427(0x184)](_0x157547){const _0x491561=_0x305427,{unitId:_0x3f23f2,chartId:_0x3c6348,chartType:_0x38d0cb,options:_0x22836f}=_0x157547,_0x1c259d=C(_0x3f23f2,_0x3c6348,_0x38d0cb,_0x22836f);this[_0x491561(0x165)][_0x491561(0x122)](_0x5d28ff['id'],_0x1c259d);}[_0x305427(0x13a)](_0x38314c){const _0x2f1426=_0x305427;if(_0x38314c)return new c(_0x38314c[_0x2f1426(0x15d)],_0x38314c['subUnitId'],this[_0x2f1426(0x168)],this[_0x2f1426(0x193)],_0x38314c[_0x2f1426(0x166)]);const _0x502e1f=this[_0x2f1426(0x157)]()[_0x2f1426(0x163)](),_0x3bc04f=this[_0x2f1426(0x178)]();return new c(_0x502e1f,_0x3bc04f,this[_0x2f1426(0x168)],this['_injector']);}['getCharts'](){const _0x446a8a=_0x305427,_0x88dbcc=this[_0x446a8a(0x193)][_0x446a8a(0x1a1)](_0x55aa4d),_0x4f27a9=this['getWorkbook']()[_0x446a8a(0x163)]();return _0x88dbcc[_0x446a8a(0x1b4)](_0x4f27a9,this[_0x446a8a(0x178)]())[_0x446a8a(0x16a)](_0x32ada0=>new f(_0x4f27a9,this[_0x446a8a(0x178)](),_0x32ada0['id'],this[_0x446a8a(0x193)]));}[_0x305427(0x133)](_0x676314){const _0x29a5b4=_0x305427,_0x36f22f=_0x676314['unitId'],_0x515d6d=_0x676314[_0x29a5b4(0x169)],_0x3a8494=_0x676314[_0x29a5b4(0x166)],_0x20ed1e={'unitId':_0x36f22f,'drawings':[{'unitId':_0x36f22f,'subUnitId':_0x515d6d,'drawingId':_0x3a8494,'drawingType':_0x23730c[_0x29a5b4(0x13f)]}]};return this[_0x29a5b4(0x165)][_0x29a5b4(0x122)](_0x121832['id'],_0x20ed1e);}[_0x305427(0x130)](_0x53d4a9,_0x500302){const _0xb918e7=_0x305427;this[_0xb918e7(0x193)]['get'](_0x4c95d2)['registerTheme'](_0x53d4a9,_0x500302);}}_0x119f5a['extend'](B);class G extends c{constructor(_0x1d89a8,_0x11b737,_0x510b72,_0x137c5e,_0x224f6a){const _0x825889=_0x305427;super(_0x1d89a8,_0x11b737,_0x510b72,_0x137c5e,_0x224f6a),n(this,_0x825889(0x137)),n(this,'dataPointShape'),n(this,_0x825889(0x18b)),n(this,_0x825889(0x164));}['setLineStyle'](_0x302ebe){const _0x49c002=_0x305427;return this[_0x49c002(0x137)]=_0x302ebe,this;}[_0x305427(0x17d)](_0x4cdc2b){const _0x1d2625=_0x305427;return this[_0x1d2625(0x16c)]=_0x4cdc2b,this;}[_0x305427(0x126)](_0xe74c48){const _0x47680f=_0x305427;return this[_0x47680f(0x18b)]=_0xe74c48,this;}[_0x305427(0x194)](_0x162535){const _0x2a3075=_0x305427;return this[_0x2a3075(0x164)]=_0x162535,this;}['build'](){const _0xc50f3a=_0x305427,_0x37d6b4=super['build']();_0x37d6b4[_0xc50f3a(0x154)]=_0x3759a1[_0xc50f3a(0x1a4)];const _0x48a417=_0x37d6b4[_0xc50f3a(0x128)]||{};return s(_0x48a417,'area.lineStyle',this[_0xc50f3a(0x137)]),s(_0x48a417,_0xc50f3a(0x17b),this[_0xc50f3a(0x16c)]),s(_0x48a417,_0xc50f3a(0x153),this[_0xc50f3a(0x18b)]),s(_0x48a417,_0xc50f3a(0x195),this['dataPointSize']),_0x37d6b4[_0xc50f3a(0x128)]=_0x48a417,_0x37d6b4;}}class V extends c{[_0x305427(0x16d)](){const _0x507145=_0x305427;return new G(this[_0x507145(0x15d)],this['subUnitId'],this[_0x507145(0x168)],this[_0x507145(0x193)],this[_0x507145(0x166)]);}}c[_0x305427(0x162)](V);class X extends c{constructor(_0x38b616,_0x440318,_0x188679,_0x4d8220,_0x4b43cf){const _0x6ad85e=_0x305427;super(_0x38b616,_0x440318,_0x188679,_0x4d8220,_0x4b43cf),n(this,'doughnutHole'),n(this,'borderColor'),n(this,_0x6ad85e(0x1ab)),n(this,_0x6ad85e(0x18d)),n(this,_0x6ad85e(0x14b)),n(this,_0x6ad85e(0x16e));}[_0x305427(0x142)](_0x51b40a){return this['doughnutHole']=_0x51b40a,this;}['setBorderColor'](_0x313fdc){const _0x5d3084=_0x305427;return this[_0x5d3084(0x12b)]=_0x313fdc,this;}[_0x305427(0x19a)](_0x5dfeeb){const _0x182dc4=_0x305427;return this[_0x182dc4(0x1ab)]=_0x5dfeeb,this;}[_0x305427(0x1b3)](_0x47ef5e){const _0x97e74f=_0x305427;return this[_0x97e74f(0x18d)]=_0x47ef5e,this;}[_0x305427(0x161)](_0x6c26e2){const _0x167457=_0x305427;return this[_0x167457(0x14b)]=_0x6c26e2,this;}[_0x305427(0x1a0)](_0x551b3a){const _0x5d679b=_0x305427;return this[_0x5d679b(0x16e)]=_0x551b3a,this;}[_0x305427(0x138)](){const _0x57a718=_0x305427,_0x30472a=super['build']();_0x30472a[_0x57a718(0x154)]=_0x3759a1[_0x57a718(0x14d)];const _0x121970=_0x30472a[_0x57a718(0x128)]||{};return s(_0x121970,_0x57a718(0x199),this[_0x57a718(0x141)]),s(_0x121970,'pie.borderColor',this['borderColor']),s(_0x121970,_0x57a718(0x13b),this[_0x57a718(0x1ab)]),s(_0x121970,'pie.isHalfPie',this['isHalfPie']),s(_0x121970,_0x57a718(0x188),this[_0x57a718(0x14b)]),s(_0x121970,_0x57a718(0x12a),this[_0x57a718(0x16e)]),_0x30472a[_0x57a718(0x128)]=_0x121970,_0x30472a;}}class q extends c{[_0x305427(0x1b5)](){const _0x55cfb3=_0x305427;return new X(this[_0x55cfb3(0x15d)],this[_0x55cfb3(0x169)],this[_0x55cfb3(0x168)],this['_injector'],this['chartId']);}}function _0x2f38(_0x44f2c8,_0x5c01c4){const _0x41041b=_0x4104();return _0x2f38=function(_0x2f38de,_0x3cfb79){_0x2f38de=_0x2f38de-0x10b;let _0x57af21=_0x41041b[_0x2f38de];return _0x57af21;},_0x2f38(_0x44f2c8,_0x5c01c4);}c['extend'](q);class $ extends c{constructor(_0x32499d,_0x1b6ee9,_0x4350b3,_0x1f535e,_0xfabd6d){const _0x9b9517=_0x305427;super(_0x32499d,_0x1b6ee9,_0x4350b3,_0x1f535e,_0xfabd6d),n(this,_0x9b9517(0x167)),n(this,_0x9b9517(0x12c));}[_0x305427(0x15b)](_0x499b19){const _0x346f71=_0x305427;return this[_0x346f71(0x167)]=_0x499b19,this;}[_0x305427(0x15c)](_0x5f1262){const _0x1de965=_0x305427;return this[_0x1de965(0x12c)]=_0x5f1262,this;}[_0x305427(0x138)](){const _0x44b3fb=_0x305427,_0x24d970=super['build']();_0x24d970[_0x44b3fb(0x154)]=_0x3759a1[_0x44b3fb(0x139)];const _0x4e27f1=_0x24d970[_0x44b3fb(0x128)]||{};return s(_0x4e27f1,_0x44b3fb(0x19b),this['shape']),s(_0x4e27f1,_0x44b3fb(0x10d),this['fill']),_0x24d970[_0x44b3fb(0x128)]=_0x4e27f1,_0x24d970;}}class J extends c{[_0x305427(0x132)](){const _0x5a5430=_0x305427;return new $(this['unitId'],this[_0x5a5430(0x169)],this['_workbook'],this[_0x5a5430(0x193)],this[_0x5a5430(0x166)]);}}c[_0x305427(0x162)](J);export{f as FChart,c as FChartBuilderBase,G as LineChartBuilder,X as PieChartBuilder,$ as RadarChartBuilder};