@univerjs-pro/sheets-chart 1.0.0 → 1.0.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.
Files changed (93) 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/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +10 -10
  86. package/lib/types/controllers/config.schema.d.ts +0 -5
  87. package/lib/types/facade/chart-builder/builder-util.d.ts +0 -5
  88. package/lib/types/facade/chart-builder/chart-builder-base.d.ts +0 -919
  89. package/lib/types/facade/chart-builder/line-chart-builder.d.ts +0 -165
  90. package/lib/types/facade/chart-builder/pie-chart-builder.d.ts +0 -196
  91. package/lib/types/facade/chart-builder/radar-chart-builder.d.ts +0 -100
  92. package/lib/types/facade/chart-builder/types.d.ts +0 -34
  93. package/lib/types/models/chart-model.d.ts +0 -22
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
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;
1
+ const _0x2934f2=_0x1d49;(function(_0x511ae4,_0x2d9c15){const _0x110723=_0x1d49,_0x2b04a8=_0x511ae4();while(!![]){try{const _0x439827=-parseInt(_0x110723(0xaa))/0x1+parseInt(_0x110723(0x87))/0x2*(parseInt(_0x110723(0x83))/0x3)+-parseInt(_0x110723(0x75))/0x4+parseInt(_0x110723(0x9e))/0x5+-parseInt(_0x110723(0xb0))/0x6*(-parseInt(_0x110723(0xb5))/0x7)+-parseInt(_0x110723(0xa5))/0x8+parseInt(_0x110723(0x9a))/0x9;if(_0x439827===_0x2d9c15)break;else _0x2b04a8['push'](_0x2b04a8['shift']());}catch(_0x4d0730){_0x2b04a8['push'](_0x2b04a8['shift']());}}}(_0x788f,0x7817d),Object['defineProperty'](exports,Symbol[_0x2934f2(0x9b)],{'value':_0x2934f2(0x84)}));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');function _0x1d49(_0x554018,_0x15bab1){_0x554018=_0x554018-0x75;const _0x788f2=_0x788f();let _0x1d4982=_0x788f2[_0x554018];return _0x1d4982;}var o=class extends t[_0x2934f2(0xb1)]{constructor(_0x2c3a8e,_0x473393,_0xbe7e09,_0x5ce2d0){const _0x163bc8=_0x2934f2;super(_0xbe7e09,()=>new n[(_0x163bc8(0x7e))]({'unitId':_0x2c3a8e,'subUnitId':_0x473393,'chartId':_0xbe7e09,'injector':_0x5ce2d0}),(_0x8baa78,_0x272401,_0x52489)=>(0x0,t[_0x163bc8(0x79)])({'info':_0x8baa78,'description':_0x272401,'type':_0x52489,'normalizeSource':_0xa1138e=>_0xa1138e,'extension':({setInfo:_0x19bc6a})=>({'setPosition'(_0x2db106){const _0x50fba2=_0x163bc8;return _0x19bc6a(_0x50fba2(0xa1),_0x2db106),this;}})}),_0x5ce2d0),this[_0x163bc8(0xaf)]=_0x2c3a8e,this[_0x163bc8(0xb4)]=_0x473393,this[_0x163bc8(0x98)]=_0xbe7e09;}['getRange'](){const _0x502a14=_0x2934f2;let _0x36ee65=this['_injector']['get'](n[_0x502a14(0xb3)])[_0x502a14(0x92)](this[_0x502a14(0x98)]);return _0x36ee65&&!Array['isArray'](_0x36ee65)?_0x36ee65:void 0x0;}[_0x2934f2(0x7f)](_0x50ef07){const _0x30fbc7=_0x2934f2;return this['_createSheetAdapter']()[_0x30fbc7(0x7b)]({'layout':{'anchor':_0x50ef07}}),this;}async[_0x2934f2(0x7a)](_0x254c79){const _0x71860c=_0x2934f2;this[_0x71860c(0xb7)]()[_0x71860c(0x7a)](_0x254c79);}[_0x2934f2(0x94)](_0x17adfe){const _0x5af0d4=_0x2934f2;return this[_0x5af0d4(0xb7)]()['commit']({'plotVisibleOnly':_0x17adfe}),this;}['getPlotVisibleOnly'](){const _0x229f2e=_0x2934f2;return this['_createSheetAdapter']()[_0x229f2e(0x88)]();}[_0x2934f2(0xb7)](){const _0x110365=_0x2934f2;return new n[(_0x110365(0x7e))]({'unitId':this[_0x110365(0xaf)],'subUnitId':this[_0x110365(0xb4)],'chartId':this[_0x110365(0x98)],'injector':this[_0x110365(0xbc)]});}},s=class extends i[_0x2934f2(0x96)]{[_0x2934f2(0x81)](_0x2729ff){const _0x2cd3d2=_0x2934f2;return(0x0,t[_0x2cd3d2(0x79)])({'type':_0x2729ff,'injector':this[_0x2cd3d2(0xbc)],'commitError':_0x2cd3d2(0xbb),'normalizeSource':_0x3d3461=>_0x3d3461,'createInfo':()=>({'anchor':void 0x0}),'extension':({setInfo:_0x20840a})=>({'setPosition'(_0x5d6060){const _0x67274a=_0x2cd3d2;return _0x20840a(_0x67274a(0xa1),_0x5d6060),this;}})});}async[_0x2934f2(0xb6)](_0x599e1e){const _0x5cb431=_0x2934f2;var _0x457565,_0x4675ee,_0x14d88a;let {config:_0x43cb4b,dataSource:_0xbfcb31,anchor:_0x572e7b,position:_0x36ed04,size:_0x2c8675}=_0x599e1e,_0x136270={..._0x43cb4b,'source':_0xbfcb31,'anchor':_0x572e7b,'position':_0x36ed04,'size':_0x2c8675},_0x16aa74=(0x0,e[_0x5cb431(0x93)])(_0x136270['type']),_0x3c388b=this[_0x5cb431(0x8b)](_0x16aa74),_0x45ac83=[],_0x3cb951=(0x0,n[_0x5cb431(0xb8)])(_0x136270[_0x5cb431(0x85)],_0x3c388b,_0x45ac83);if(!_0x3cb951||_0x45ac83[_0x5cb431(0x80)](_0x1248ed=>_0x1248ed[_0x5cb431(0x89)]===n[_0x5cb431(0x7d)][_0x5cb431(0x77)]))throw Error(_0x45ac83[_0x5cb431(0x8e)](_0x26571d=>_0x26571d['message'])[_0x5cb431(0x91)](';\x20')||_0x5cb431(0xae));let _0x47bed1=(0x0,r[_0x5cb431(0x9d)])(),_0x13871d=(0x0,e['toChartModelConfig'])(_0x136270,{'series':(0x0,n['resolveSourceSeries'])(_0x3cb951,_0x3c388b,((_0x457565=_0x136270[_0x5cb431(0x97)])==null?void 0x0:_0x457565[_0x5cb431(0x76)])??0x0)}),_0x25087f=(0x0,n['resolveInitialChartPosition'])({'unitId':_0x3c388b['unitId'],'subUnitId':_0x3c388b[_0x5cb431(0xb4)],'injector':this['getInject']()},_0x136270,_0x45ac83),_0x116102={'unitId':_0x3c388b[_0x5cb431(0xaf)],'subUnitId':_0x3c388b['subUnitId'],'chartId':_0x47bed1,'chartType':_0x16aa74,'source':_0x3cb951[_0x5cb431(0xa4)]===n['ChartSourceKind'][_0x5cb431(0x8a)]?_0x3cb951[_0x5cb431(0x90)]:_0x3cb951[_0x5cb431(0xa9)],'position':_0x25087f,'width':(_0x4675ee=_0x136270[_0x5cb431(0xc1)])==null?void 0x0:_0x4675ee[_0x5cb431(0x82)],'height':(_0x14d88a=_0x136270['size'])==null?void 0x0:_0x14d88a[_0x5cb431(0xbd)],'theme':_0x136270[_0x5cb431(0x9c)]??void 0x0,'config':{'unitId':_0x3c388b[_0x5cb431(0xaf)],'chartModelId':_0x47bed1,'style':_0x13871d[_0x5cb431(0xad)],'context':_0x13871d[_0x5cb431(0x99)],'dataAggregation':_0x13871d[_0x5cb431(0xba)]}};if(!await this[_0x5cb431(0xc0)]()[_0x5cb431(0xb9)](r[_0x5cb431(0x8f)])[_0x5cb431(0x86)](n[_0x5cb431(0xa7)]['id'],_0x116102))throw Error(_0x5cb431(0xa6));return this[_0x5cb431(0xbc)][_0x5cb431(0x95)](o,_0x3c388b[_0x5cb431(0xaf)],_0x3c388b[_0x5cb431(0xb4)],_0x47bed1,this[_0x5cb431(0xbc)]);}['getChart'](_0x5dc52f){const _0x55bc2e=_0x2934f2;let {unitId:_0x53da87,subUnitId:_0x11db3b}=this[_0x55bc2e(0x8b)](),_0x55f663=this[_0x55bc2e(0xc0)]()[_0x55bc2e(0xb9)](n[_0x55bc2e(0xb3)]);return _0x55f663[_0x55bc2e(0xa2)](_0x5dc52f)&&_0x55f663[_0x55bc2e(0x8d)](_0x53da87,_0x5dc52f)===_0x11db3b?this[_0x55bc2e(0xbc)][_0x55bc2e(0x95)](o,_0x53da87,_0x11db3b,_0x5dc52f,this[_0x55bc2e(0xbc)]):null;}[_0x2934f2(0xa3)](){const _0x4ebb98=_0x2934f2;let {unitId:_0x2a7896,subUnitId:_0x239a47}=this['_chartSourceContext']();return this[_0x4ebb98(0xc0)]()[_0x4ebb98(0xb9)](n[_0x4ebb98(0xb3)])[_0x4ebb98(0xbf)](_0x2a7896,_0x239a47)[_0x4ebb98(0xac)](Boolean)[_0x4ebb98(0x8e)](_0x470017=>this[_0x4ebb98(0xbc)][_0x4ebb98(0x95)](o,_0x2a7896,_0x239a47,_0x470017['id'],this[_0x4ebb98(0xbc)]));}[_0x2934f2(0x8b)](_0x15254b){const _0x356dcf=_0x2934f2;let _0x27256e=this[_0x356dcf(0xbe)](),_0x287d6d=this[_0x356dcf(0xc0)]()[_0x356dcf(0xb9)](n[_0x356dcf(0xb3)]);return{'unitId':_0x27256e[_0x356dcf(0xa8)](),'subUnitId':this[_0x356dcf(0x9f)](),'workbook':_0x27256e,'localeService':this[_0x356dcf(0xbc)][_0x356dcf(0xb9)](r[_0x356dcf(0xab)]),..._0x15254b===void 0x0?{}:{'inferInitialChartSource':_0xb7b876=>_0x287d6d[_0x356dcf(0xa0)](_0xb7b876,_0x15254b)}};}};i[_0x2934f2(0x96)][_0x2934f2(0x8c)](s);var c=class extends a[_0x2934f2(0xb2)]{get['ChartSourceOrientation'](){const _0x46265d=_0x2934f2;return n[_0x46265d(0x78)];}};a[_0x2934f2(0xb2)][_0x2934f2(0x8c)](c),exports[_0x2934f2(0x7c)]=o;function _0x788f(){const _0x30f081=['style','Invalid\x20Sheet\x20chart\x20source.','unitId','30RJCMAW','FChart','FEnum','SheetsChartService','subUnitId','1206597VHphvg','insertChart','_createSheetAdapter','resolveSourceSpec','get','dataAggregation','Insert\x20the\x20Sheet\x20chart\x20before\x20updating\x20it.','_injector','height','getWorkbook','getUnitChartModels','getInject','size','3655836tiyNQK','categoryIndex','Error','ChartSourceOrientation','createChartBuilder','setHeader','commitHost','FSheetChart','ChartDiagnosticSeverity','SheetChartConfigAdapter','setPosition','some','newChart','width','21ugHmyC','Module','source','executeCommand','195474PLHRuH','getPlotVisibleOnly','severity','Range','_chartSourceContext','extend','getSubUnitId','map','ICommandService','rangeInfo','join','getChartSourceSpec','chartTypeToBits','setPlotVisibleOnly','createInstance','FWorksheet','mapping','chartId','context','4545252hJKaXZ','toStringTag','theme','generateRandomId','1807365fEXjKQ','getSheetId','inferInitialChartSource','anchor','getChartModel','getCharts','kind','7128736TLvlKp','Failed\x20to\x20create\x20Sheet\x20chart.','InsertChartCommand','getUnitId','ranges','115563lfawJi','LocaleService','filter'];_0x788f=function(){return _0x30f081;};return _0x788f();}