@univerjs-pro/sheets-chart 1.0.0-rc.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/chart-builder/sheet-chart-config-adapter.d.ts +3 -0
  65. package/lib/types/chart-source/category-span-projection.d.ts +1 -0
  66. package/lib/types/chart-source/chart-source-key.d.ts +1 -1
  67. package/lib/types/chart-source/chart-source.d.ts +5 -3
  68. package/lib/types/chart-source/initial-sheet-chart-source-inference.d.ts +2 -1
  69. package/lib/types/chart-source/sheet-chart-source-table.d.ts +4 -1
  70. package/lib/types/commands/chart-persisted-context.d.ts +1 -1
  71. package/lib/types/commands/commands/sheets-chart.command.d.ts +9 -1
  72. package/lib/types/common/util.d.ts +0 -1
  73. package/lib/types/controllers/config.schema.d.ts +5 -0
  74. package/lib/types/facade/chart-builder/builder-util.d.ts +5 -0
  75. package/lib/types/facade/chart-builder/chart-builder-base.d.ts +919 -0
  76. package/lib/types/facade/chart-builder/line-chart-builder.d.ts +165 -0
  77. package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +196 -0
  78. package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +100 -0
  79. package/lib/types/facade/chart-builder/types.d.ts +34 -0
  80. package/lib/types/index.d.ts +2 -2
  81. package/lib/types/models/chart-model.d.ts +22 -0
  82. package/lib/types/services/sheet-chart-data-source-manager.d.ts +1 -1
  83. package/lib/types/services/sheets-chart.service.d.ts +2 -1
  84. package/lib/umd/facade.js +1 -1
  85. package/lib/umd/index.js +1 -1
  86. package/lib/umd/locale/ar-SA.js +1 -1
  87. package/lib/umd/locale/ca-ES.js +1 -1
  88. package/lib/umd/locale/de-DE.js +1 -1
  89. package/lib/umd/locale/en-US.js +1 -1
  90. package/lib/umd/locale/es-ES.js +1 -1
  91. package/lib/umd/locale/fa-IR.js +1 -1
  92. package/lib/umd/locale/fr-FR.js +1 -1
  93. package/lib/umd/locale/id-ID.js +1 -1
  94. package/lib/umd/locale/it-IT.js +1 -1
  95. package/lib/umd/locale/ja-JP.js +1 -1
  96. package/lib/umd/locale/ko-KR.js +1 -1
  97. package/lib/umd/locale/pl-PL.js +1 -1
  98. package/lib/umd/locale/pt-BR.js +1 -1
  99. package/lib/umd/locale/ru-RU.js +1 -1
  100. package/lib/umd/locale/sk-SK.js +1 -1
  101. package/lib/umd/locale/vi-VN.js +1 -1
  102. package/lib/umd/locale/zh-CN.js +1 -1
  103. package/lib/umd/locale/zh-HK.js +1 -1
  104. package/lib/umd/locale/zh-TW.js +1 -1
  105. package/package.json +11 -11
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x301d8b=_0x3f8b;(function(_0x36710b,_0x2d583e){const _0x1224ad=_0x3f8b,_0x25365d=_0x36710b();while(!![]){try{const _0x4374dc=-parseInt(_0x1224ad(0x157))/0x1*(-parseInt(_0x1224ad(0x181))/0x2)+parseInt(_0x1224ad(0x167))/0x3*(-parseInt(_0x1224ad(0x14d))/0x4)+-parseInt(_0x1224ad(0x153))/0x5*(-parseInt(_0x1224ad(0x145))/0x6)+-parseInt(_0x1224ad(0x171))/0x7*(-parseInt(_0x1224ad(0x162))/0x8)+-parseInt(_0x1224ad(0x169))/0x9*(parseInt(_0x1224ad(0x13d))/0xa)+parseInt(_0x1224ad(0x175))/0xb*(-parseInt(_0x1224ad(0x174))/0xc)+-parseInt(_0x1224ad(0x161))/0xd;if(_0x4374dc===_0x2d583e)break;else _0x25365d['push'](_0x25365d['shift']());}catch(_0x53c58a){_0x25365d['push'](_0x25365d['shift']());}}}(_0x1ebe,0x61f23),Object[_0x301d8b(0x170)](exports,Symbol[_0x301d8b(0x186)],{'value':_0x301d8b(0x17f)}));let e=require('@univerjs-pro/engine-chart'),t=require('@univerjs-pro/engine-chart/facade'),n=require('@univerjs-pro/sheets-chart'),r=require('@univerjs/core'),i=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');var o=class extends t['FChart']{constructor(_0x5926e0,_0x1a0661,_0x2ee9f3,_0x1a1daa){const _0x3094ec=_0x301d8b;super(_0x2ee9f3,()=>new n[(_0x3094ec(0x142))]({'unitId':_0x5926e0,'subUnitId':_0x1a0661,'chartId':_0x2ee9f3,'injector':_0x1a1daa}),(_0x356df9,_0x498d9b,_0x4f0cc9)=>(0x0,t[_0x3094ec(0x148)])({'info':_0x356df9,'description':_0x498d9b,'type':_0x4f0cc9,'normalizeSource':_0x2b9e1d=>_0x2b9e1d,'extension':({setInfo:_0x11276e})=>({'setPosition'(_0x38de53){const _0x546f95=_0x3094ec;return _0x11276e(_0x546f95(0x185),_0x38de53),this;}})}),_0x1a1daa),this[_0x3094ec(0x14c)]=_0x5926e0,this[_0x3094ec(0x143)]=_0x1a0661,this[_0x3094ec(0x16f)]=_0x2ee9f3;}[_0x301d8b(0x140)](){const _0x14238e=_0x301d8b;let _0x202379=this[_0x14238e(0x16c)][_0x14238e(0x17e)](n['SheetsChartService'])['getChartSourceSpec'](this[_0x14238e(0x16f)]);return _0x202379&&!Array['isArray'](_0x202379)?_0x202379:void 0x0;}[_0x301d8b(0x13c)](_0x1daec4){const _0x3e241d=_0x301d8b;return this[_0x3e241d(0x180)]()['commitHost']({'layout':{'anchor':_0x1daec4}}),this;}async[_0x301d8b(0x16a)](_0x493eec){const _0x36c86d=_0x301d8b;this[_0x36c86d(0x180)]()[_0x36c86d(0x16a)](_0x493eec);}[_0x301d8b(0x180)](){const _0x21e0a4=_0x301d8b;return new n[(_0x21e0a4(0x142))]({'unitId':this[_0x21e0a4(0x14c)],'subUnitId':this[_0x21e0a4(0x143)],'chartId':this['chartId'],'injector':this[_0x21e0a4(0x16c)]});}},s=class extends i['FWorksheet']{[_0x301d8b(0x156)](_0x3eb762){const _0x33b37f=_0x301d8b;return(0x0,t[_0x33b37f(0x148)])({'type':_0x3eb762,'injector':this[_0x33b37f(0x16c)],'commitError':_0x33b37f(0x13f),'normalizeSource':_0x14ebc7=>_0x14ebc7,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0xc8253f})=>({'setPosition'(_0x30b7fb){return _0xc8253f('anchor',_0x30b7fb),this;}})});}async[_0x301d8b(0x15f)](_0x1f210c){const _0x88673e=_0x301d8b;var _0x346408,_0x51d904,_0x1ffb63;let {config:_0x25705f,dataSource:_0x1374ea,anchor:_0x2012ee,position:_0x3142d4,size:_0x3085ad}=_0x1f210c,_0x5a18a3={..._0x25705f,'source':_0x1374ea,'anchor':_0x2012ee,'position':_0x3142d4,'size':_0x3085ad},_0x49b285=(0x0,e[_0x88673e(0x155)])(_0x5a18a3[_0x88673e(0x146)]),_0x595d00=this[_0x88673e(0x17b)](_0x49b285),_0x46eac7=[],_0x256b94=(0x0,n[_0x88673e(0x172)])(_0x5a18a3[_0x88673e(0x178)],_0x595d00,_0x46eac7);if(!_0x256b94||_0x46eac7[_0x88673e(0x14a)](_0x2b30db=>_0x2b30db[_0x88673e(0x13e)]===n['ChartDiagnosticSeverity'][_0x88673e(0x159)]))throw Error(_0x46eac7[_0x88673e(0x144)](_0x3f6f3f=>_0x3f6f3f[_0x88673e(0x17c)])['join'](';\x20')||_0x88673e(0x176));let _0x327b91=(0x0,r[_0x88673e(0x151)])(),_0x3773b6=(0x0,e[_0x88673e(0x168)])(_0x5a18a3,{'series':(0x0,n[_0x88673e(0x152)])(_0x256b94,_0x595d00,((_0x346408=_0x5a18a3['mapping'])==null?void 0x0:_0x346408['categoryIndex'])??0x0)}),_0x245fb1=(0x0,n[_0x88673e(0x15a)])({'unitId':_0x595d00[_0x88673e(0x14c)],'subUnitId':_0x595d00[_0x88673e(0x143)],'injector':this[_0x88673e(0x165)]()},_0x5a18a3,_0x46eac7),_0x36b8e9={'unitId':_0x595d00['unitId'],'subUnitId':_0x595d00[_0x88673e(0x143)],'chartId':_0x327b91,'chartType':_0x49b285,'source':_0x256b94[_0x88673e(0x15e)]===n[_0x88673e(0x16d)][_0x88673e(0x182)]?_0x256b94[_0x88673e(0x14f)]:_0x256b94[_0x88673e(0x150)],'position':_0x245fb1,'width':(_0x51d904=_0x5a18a3[_0x88673e(0x15d)])==null?void 0x0:_0x51d904[_0x88673e(0x163)],'height':(_0x1ffb63=_0x5a18a3[_0x88673e(0x15d)])==null?void 0x0:_0x1ffb63[_0x88673e(0x164)],'theme':_0x5a18a3[_0x88673e(0x15b)]??void 0x0,'config':{'unitId':_0x595d00[_0x88673e(0x14c)],'chartModelId':_0x327b91,'style':_0x3773b6[_0x88673e(0x166)],'context':_0x3773b6[_0x88673e(0x14b)],'dataAggregation':_0x3773b6['dataAggregation']}};if(!await this[_0x88673e(0x165)]()[_0x88673e(0x17e)](r[_0x88673e(0x13b)])[_0x88673e(0x14e)](n[_0x88673e(0x184)]['id'],_0x36b8e9))throw Error(_0x88673e(0x15c));return this[_0x88673e(0x16c)][_0x88673e(0x160)](o,_0x595d00[_0x88673e(0x14c)],_0x595d00['subUnitId'],_0x327b91,this[_0x88673e(0x16c)]);}[_0x301d8b(0x177)](_0x5a41c6){const _0x11de42=_0x301d8b;let {unitId:_0x5ae70f,subUnitId:_0x293d2d}=this[_0x11de42(0x17b)](),_0x45ccaf=this[_0x11de42(0x165)]()['get'](n[_0x11de42(0x149)]);return _0x45ccaf['getChartModel'](_0x5a41c6)&&_0x45ccaf[_0x11de42(0x141)](_0x5ae70f,_0x5a41c6)===_0x293d2d?this['_injector']['createInstance'](o,_0x5ae70f,_0x293d2d,_0x5a41c6,this[_0x11de42(0x16c)]):null;}[_0x301d8b(0x173)](){const _0x504d71=_0x301d8b;let {unitId:_0x113538,subUnitId:_0x485e64}=this['_chartSourceContext']();return this[_0x504d71(0x165)]()[_0x504d71(0x17e)](n[_0x504d71(0x149)])[_0x504d71(0x13a)](_0x113538,_0x485e64)['filter'](Boolean)[_0x504d71(0x144)](_0x3c79cb=>this[_0x504d71(0x16c)][_0x504d71(0x160)](o,_0x113538,_0x485e64,_0x3c79cb['id'],this['_injector']));}[_0x301d8b(0x17b)](_0x281d83){const _0x567ed5=_0x301d8b;let _0x371861=this[_0x567ed5(0x183)](),_0x52f3e5=this[_0x567ed5(0x165)]()[_0x567ed5(0x17e)](n['SheetsChartService']);return{'unitId':_0x371861[_0x567ed5(0x154)](),'subUnitId':this[_0x567ed5(0x17d)](),'workbook':_0x371861,'localeService':this[_0x567ed5(0x16c)]['get'](r[_0x567ed5(0x179)]),..._0x281d83===void 0x0?{}:{'inferInitialChartSource':_0x19b062=>_0x52f3e5['inferInitialChartSource'](_0x19b062,_0x281d83)}};}};i[_0x301d8b(0x16e)][_0x301d8b(0x17a)](s);var c=class extends a[_0x301d8b(0x158)]{get[_0x301d8b(0x16b)](){const _0x595732=_0x301d8b;return n[_0x595732(0x16b)];}};function _0x3f8b(_0x4877fb,_0x24d816){_0x4877fb=_0x4877fb-0x13a;const _0x1ebeac=_0x1ebe();let _0x3f8bd9=_0x1ebeac[_0x4877fb];return _0x3f8bd9;}function _0x1ebe(){const _0x1b5399=['Failed\x20to\x20create\x20Sheet\x20chart.','size','kind','insertChart','createInstance','1783379lWkNHP','546112tqzzmI','width','height','getInject','style','837FduLeA','toChartModelConfig','9iLgeGX','setHeader','ChartSourceOrientation','_injector','ChartSourceKind','FWorksheet','chartId','defineProperty','63lGlMHa','resolveSourceSpec','getCharts','472740zIqPag','55BfOvxo','Invalid\x20Sheet\x20chart\x20source.','getChart','source','LocaleService','extend','_chartSourceContext','message','getSheetId','get','Module','_createSheetAdapter','410354GwFHyj','Range','getWorkbook','InsertChartCommand','anchor','toStringTag','getUnitChartModels','ICommandService','setPosition','4872570KMdwjT','severity','Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','getRange','getSubUnitId','SheetChartConfigAdapter','subUnitId','map','659094BJBJWk','type','FSheetChart','createChartBuilder','SheetsChartService','some','context','unitId','2096FdyIiE','executeCommand','rangeInfo','ranges','generateRandomId','resolveSourceSeries','25xmsJQL','getUnitId','chartTypeToBits','newChart','1zKEYal','FEnum','Error','resolveInitialChartPosition','theme'];_0x1ebe=function(){return _0x1b5399;};return _0x1ebe();}a[_0x301d8b(0x158)][_0x301d8b(0x17a)](c),exports[_0x301d8b(0x147)]=o;
1
+ const _0x176b7a=_0xdc4b;(function(_0x20d809,_0x398d57){const _0x23da98=_0xdc4b,_0x32d2f2=_0x20d809();while(!![]){try{const _0xfabb7a=-parseInt(_0x23da98(0x173))/0x1*(parseInt(_0x23da98(0x18f))/0x2)+parseInt(_0x23da98(0x188))/0x3*(-parseInt(_0x23da98(0x19f))/0x4)+parseInt(_0x23da98(0x195))/0x5+-parseInt(_0x23da98(0x18d))/0x6+parseInt(_0x23da98(0x196))/0x7*(parseInt(_0x23da98(0x166))/0x8)+-parseInt(_0x23da98(0x160))/0x9+parseInt(_0x23da98(0x168))/0xa;if(_0xfabb7a===_0x398d57)break;else _0x32d2f2['push'](_0x32d2f2['shift']());}catch(_0x15bc76){_0x32d2f2['push'](_0x32d2f2['shift']());}}}(_0x3b5e,0x9b6e5),Object['defineProperty'](exports,Symbol[_0x176b7a(0x17c)],{'value':'Module'}));let e=require('@univerjs-pro/engine-chart'),t=require('@univerjs-pro/engine-chart/facade'),n=require('@univerjs-pro/sheets-chart'),r=require('@univerjs/core'),i=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');var o=class extends t['FChart']{constructor(_0x5a219e,_0x5c5273,_0x5d30ea,_0x2e3070){const _0x4b583f=_0x176b7a;super(_0x5d30ea,()=>new n['SheetChartConfigAdapter']({'unitId':_0x5a219e,'subUnitId':_0x5c5273,'chartId':_0x5d30ea,'injector':_0x2e3070}),(_0x4abb6a,_0x3fdfd0,_0x4f9062)=>(0x0,t[_0x4b583f(0x163)])({'info':_0x4abb6a,'description':_0x3fdfd0,'type':_0x4f9062,'normalizeSource':_0x467c78=>_0x467c78,'extension':({setInfo:_0x20057e})=>({'setPosition'(_0x3badaa){const _0x491752=_0x4b583f;return _0x20057e(_0x491752(0x176),_0x3badaa),this;}})}),_0x2e3070),this[_0x4b583f(0x18e)]=_0x5a219e,this[_0x4b583f(0x175)]=_0x5c5273,this['chartId']=_0x5d30ea;}[_0x176b7a(0x183)](){const _0x3d5a36=_0x176b7a;let _0x36eeae=this[_0x3d5a36(0x19b)][_0x3d5a36(0x16b)](n[_0x3d5a36(0x18b)])['getChartSourceSpec'](this[_0x3d5a36(0x1a2)]);return _0x36eeae&&!Array['isArray'](_0x36eeae)?_0x36eeae:void 0x0;}['setPosition'](_0x15de27){const _0x5c3abb=_0x176b7a;return this[_0x5c3abb(0x182)]()['commitHost']({'layout':{'anchor':_0x15de27}}),this;}async[_0x176b7a(0x19c)](_0x57418f){const _0x4731d7=_0x176b7a;this[_0x4731d7(0x182)]()[_0x4731d7(0x19c)](_0x57418f);}[_0x176b7a(0x16d)](_0x2f362c){const _0x235ce6=_0x176b7a;return this[_0x235ce6(0x182)]()[_0x235ce6(0x1a1)]({'plotVisibleOnly':_0x2f362c}),this;}['getPlotVisibleOnly'](){const _0x4ca9d5=_0x176b7a;return this['_createSheetAdapter']()[_0x4ca9d5(0x15f)]();}[_0x176b7a(0x182)](){const _0x563722=_0x176b7a;return new n[(_0x563722(0x1a0))]({'unitId':this[_0x563722(0x18e)],'subUnitId':this[_0x563722(0x175)],'chartId':this['chartId'],'injector':this[_0x563722(0x19b)]});}},s=class extends i[_0x176b7a(0x186)]{[_0x176b7a(0x16a)](_0x59161e){const _0x13e8ac=_0x176b7a;return(0x0,t['createChartBuilder'])({'type':_0x59161e,'injector':this[_0x13e8ac(0x19b)],'commitError':'Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','normalizeSource':_0x513ad7=>_0x513ad7,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x4aee7f})=>({'setPosition'(_0x376df2){const _0x16aa77=_0x13e8ac;return _0x4aee7f(_0x16aa77(0x176),_0x376df2),this;}})});}async['insertChart'](_0x252207){const _0x2e2e77=_0x176b7a;var _0x45774d,_0x2751a1,_0x5ca96f;let {config:_0x5009fe,dataSource:_0x17f026,anchor:_0x60253f,position:_0x2b87e6,size:_0xc302ee}=_0x252207,_0x19c1b4={..._0x5009fe,'source':_0x17f026,'anchor':_0x60253f,'position':_0x2b87e6,'size':_0xc302ee},_0x10153f=(0x0,e[_0x2e2e77(0x18a)])(_0x19c1b4[_0x2e2e77(0x1a5)]),_0x4e6176=this['_chartSourceContext'](_0x10153f),_0x58a051=[],_0x2ae753=(0x0,n[_0x2e2e77(0x177)])(_0x19c1b4[_0x2e2e77(0x17b)],_0x4e6176,_0x58a051);if(!_0x2ae753||_0x58a051[_0x2e2e77(0x194)](_0x5855bd=>_0x5855bd[_0x2e2e77(0x199)]===n[_0x2e2e77(0x174)][_0x2e2e77(0x178)]))throw Error(_0x58a051[_0x2e2e77(0x187)](_0x5e122f=>_0x5e122f[_0x2e2e77(0x16f)])[_0x2e2e77(0x165)](';\x20')||_0x2e2e77(0x1a3));let _0x40bea2=(0x0,r['generateRandomId'])(),_0x17922a=(0x0,e[_0x2e2e77(0x172)])(_0x19c1b4,{'series':(0x0,n[_0x2e2e77(0x171)])(_0x2ae753,_0x4e6176,((_0x45774d=_0x19c1b4[_0x2e2e77(0x192)])==null?void 0x0:_0x45774d['categoryIndex'])??0x0)}),_0x4a0553=(0x0,n[_0x2e2e77(0x19e)])({'unitId':_0x4e6176[_0x2e2e77(0x18e)],'subUnitId':_0x4e6176[_0x2e2e77(0x175)],'injector':this['getInject']()},_0x19c1b4,_0x58a051),_0x4796d8={'unitId':_0x4e6176[_0x2e2e77(0x18e)],'subUnitId':_0x4e6176[_0x2e2e77(0x175)],'chartId':_0x40bea2,'chartType':_0x10153f,'source':_0x2ae753[_0x2e2e77(0x17a)]===n[_0x2e2e77(0x190)][_0x2e2e77(0x180)]?_0x2ae753[_0x2e2e77(0x198)]:_0x2ae753['ranges'],'position':_0x4a0553,'width':(_0x2751a1=_0x19c1b4[_0x2e2e77(0x161)])==null?void 0x0:_0x2751a1[_0x2e2e77(0x18c)],'height':(_0x5ca96f=_0x19c1b4['size'])==null?void 0x0:_0x5ca96f[_0x2e2e77(0x167)],'theme':_0x19c1b4[_0x2e2e77(0x164)]??void 0x0,'config':{'unitId':_0x4e6176[_0x2e2e77(0x18e)],'chartModelId':_0x40bea2,'style':_0x17922a[_0x2e2e77(0x197)],'context':_0x17922a[_0x2e2e77(0x16c)],'dataAggregation':_0x17922a['dataAggregation']}};if(!await this[_0x2e2e77(0x170)]()[_0x2e2e77(0x16b)](r[_0x2e2e77(0x185)])[_0x2e2e77(0x189)](n[_0x2e2e77(0x19d)]['id'],_0x4796d8))throw Error('Failed\x20to\x20create\x20Sheet\x20chart.');return this['_injector'][_0x2e2e77(0x17d)](o,_0x4e6176[_0x2e2e77(0x18e)],_0x4e6176[_0x2e2e77(0x175)],_0x40bea2,this['_injector']);}[_0x176b7a(0x184)](_0x43e40b){const _0x35ae41=_0x176b7a;let {unitId:_0x14c60a,subUnitId:_0x5e785b}=this[_0x35ae41(0x179)](),_0x496072=this[_0x35ae41(0x170)]()[_0x35ae41(0x16b)](n['SheetsChartService']);return _0x496072['getChartModel'](_0x43e40b)&&_0x496072[_0x35ae41(0x169)](_0x14c60a,_0x43e40b)===_0x5e785b?this[_0x35ae41(0x19b)][_0x35ae41(0x17d)](o,_0x14c60a,_0x5e785b,_0x43e40b,this['_injector']):null;}['getCharts'](){const _0x5780c0=_0x176b7a;let {unitId:_0x589345,subUnitId:_0x265ba3}=this[_0x5780c0(0x179)]();return this[_0x5780c0(0x170)]()[_0x5780c0(0x16b)](n[_0x5780c0(0x18b)])['getUnitChartModels'](_0x589345,_0x265ba3)['filter'](Boolean)[_0x5780c0(0x187)](_0x54b59a=>this[_0x5780c0(0x19b)][_0x5780c0(0x17d)](o,_0x589345,_0x265ba3,_0x54b59a['id'],this['_injector']));}[_0x176b7a(0x179)](_0x3870ee){const _0x5c81e1=_0x176b7a;let _0x14de63=this[_0x5c81e1(0x17e)](),_0x4b7852=this[_0x5c81e1(0x170)]()[_0x5c81e1(0x16b)](n['SheetsChartService']);return{'unitId':_0x14de63[_0x5c81e1(0x17f)](),'subUnitId':this[_0x5c81e1(0x1a4)](),'workbook':_0x14de63,'localeService':this[_0x5c81e1(0x19b)][_0x5c81e1(0x16b)](r[_0x5c81e1(0x191)]),..._0x3870ee===void 0x0?{}:{'inferInitialChartSource':_0x140427=>_0x4b7852[_0x5c81e1(0x16e)](_0x140427,_0x3870ee)}};}};function _0xdc4b(_0x70d042,_0x1532ef){_0x70d042=_0x70d042-0x15f;const _0x3b5ef7=_0x3b5e();let _0xdc4b64=_0x3b5ef7[_0x70d042];return _0xdc4b64;}i[_0x176b7a(0x186)][_0x176b7a(0x162)](s);function _0x3b5e(){const _0x40a75c=['158658lcgtfE','executeCommand','chartTypeToBits','SheetsChartService','width','6308598mWtxep','unitId','2lVnkfo','ChartSourceKind','LocaleService','mapping','ChartSourceOrientation','some','2494285bAoSpi','7EFFjNm','style','rangeInfo','severity','FEnum','_injector','setHeader','InsertChartCommand','resolveInitialChartPosition','64wtzxMx','SheetChartConfigAdapter','commit','chartId','Invalid\x20Sheet\x20chart\x20source.','getSheetId','type','getPlotVisibleOnly','8011827QdXArJ','size','extend','createChartBuilder','theme','join','9249528Mkpclp','height','25403760jJOkwn','getSubUnitId','newChart','get','context','setPlotVisibleOnly','inferInitialChartSource','message','getInject','resolveSourceSeries','toChartModelConfig','770967wEqAzJ','ChartDiagnosticSeverity','subUnitId','anchor','resolveSourceSpec','Error','_chartSourceContext','kind','source','toStringTag','createInstance','getWorkbook','getUnitId','Range','FSheetChart','_createSheetAdapter','getRange','getChart','ICommandService','FWorksheet','map'];_0x3b5e=function(){return _0x40a75c;};return _0x3b5e();}var c=class extends a[_0x176b7a(0x19a)]{get[_0x176b7a(0x193)](){const _0x29781b=_0x176b7a;return n[_0x29781b(0x193)];}};a[_0x176b7a(0x19a)][_0x176b7a(0x162)](c),exports[_0x176b7a(0x181)]=o;