@univerjs-pro/sheets-sparkline 0.5.3 → 0.5.4

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.
@@ -0,0 +1,42 @@
1
+ import { ISparklineGroup } from '@univerjs-pro/sheets-sparkline';
2
+ import { IEventBase, FEventName } from '@univerjs/core';
3
+ import { FWorkbook, FWorksheet } from '@univerjs/sheets/facade';
4
+ export interface IFSheetSparklineEventMixin {
5
+ /**
6
+ * Trigger this event after the sparkline changes.
7
+ * Type of the event parameter is {@link IFSheetSparklineChangedEventParams}
8
+ * @example
9
+ * ```ts
10
+ * univerAPI.addEvent(univerAPI.Event.SheetSparklineChanged, (params) => {
11
+ * console.log('SheetSparklineChanged', params);
12
+ * })
13
+ * ```
14
+ */
15
+ readonly SheetSparklineChanged: 'SheetSparklineChanged';
16
+ }
17
+ export declare class IFSheetSparklineEventName extends FEventName implements IFSheetSparklineEventMixin {
18
+ get SheetSparklineChanged(): 'SheetSparklineChanged';
19
+ }
20
+ export interface IFSheetSparklineChangedEventParams extends IEventBase {
21
+ /**
22
+ * The workbook instance currently being operated on. {@link FWorkbook}
23
+ */
24
+ workbook: FWorkbook;
25
+ /**
26
+ * The worksheet instance currently being operated on. {@link FWorksheet}
27
+ */
28
+ worksheet: FWorksheet;
29
+ /**
30
+ * The sparkline array that have been changed. {@link ISparklineGroup}
31
+ */
32
+ sparklines: ISparklineGroup[];
33
+ }
34
+ export interface ISheetEventParamConfig {
35
+ SheetSparklineChanged: IFSheetSparklineChangedEventParams;
36
+ }
37
+ declare module '@univerjs/core' {
38
+ interface FEventName extends IFSheetSparklineEventMixin {
39
+ }
40
+ interface IEventParamConfig extends ISheetEventParamConfig {
41
+ }
42
+ }
@@ -1,32 +1,61 @@
1
+ import { ISparklineGroupConfig } from '@univerjs-pro/sheets-sparkline';
1
2
  import { IRange, Injector } from '@univerjs/core';
2
- import { ISparklineGroup } from '@univerjs-pro/sheets-sparkline';
3
3
  export declare class FSparklineGroup {
4
4
  private _unitId;
5
5
  private _subUnitId;
6
6
  private _groupId;
7
+ private _row;
8
+ private _col;
7
9
  protected readonly _injector: Injector;
8
- constructor(_unitId: string, _subUnitId: string, _groupId: string, _injector: Injector);
10
+ constructor(_unitId: string, _subUnitId: string, _groupId: string, _row: number, _col: number, _injector: Injector);
9
11
  /**
10
12
  * @description Modify the data source of the sparkline group
11
- *
12
13
  * @param {IRange[]} sourceRanges Location of new data source
13
14
  * @param {IRange[]} targetRanges New placement
15
+ * @returns {FSparklineGroup | undefined} Return this, for chaining
16
+ * @example
17
+ * ```ts
18
+ * const workbook = univerAPI.getActiveWorkbook();
19
+ * const worksheet = workbook.getActiveSheet();
14
20
  *
15
- * @returns {FSparklineGroup | undefined}
21
+ * // get sparkline by cell
22
+ * const sparklineGroup = worksheet.getSparklineGroupByCell(9, 0);
23
+ * sparklineGroup.changeDataSource(
24
+ * [{ startRow: 0, endRow: 6, startColumn: 1, endColumn: 1 }],
25
+ * [{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }]
26
+ * );
27
+ * ```
16
28
  */
17
29
  changeDataSource(sourceRanges: IRange[], targetRanges: IRange[]): FSparklineGroup | undefined;
18
30
  /**
19
31
  * @description Delete the sparkline group
20
- *
21
32
  * @returns {void}
33
+ * @example
34
+ * ```ts
35
+ * const workbook = univerAPI.getActiveWorkbook();
36
+ * const worksheet = workbook.getActiveSheet();
37
+ *
38
+ * // get sparkline by cell
39
+ * const sparklineGroup = worksheet.getSparklineGroupByCell(9, 0);
40
+ *
41
+ * // remove sparkline group
42
+ * sparklineGroup.removeSparkline();
43
+ * ```
22
44
  */
23
45
  removeSparklineGroup(): void;
24
46
  /**
25
47
  * @description Modify the configuration of the current sparkline group
48
+ * @param {ISparklineGroupConfig} config new sparkline group config
49
+ * @returns {FSparklineGroup} Return this, for chaining
50
+ * @example
51
+ * ```ts
52
+ * const workbook = univerAPI.getActiveWorkbook();
53
+ * const worksheet = workbook.getActiveSheet();
26
54
  *
27
- * @param {ISparklineGroup} config new sparkline group config
28
- *
29
- * @returns {FSparklineGroup}
55
+ * const sparkline = worksheet.getSparklineGroupByCell(9, 0);
56
+ * // set sparkline type to bar chart
57
+ * sparkline.setConfig({ type: SparklineTypeEnum.BAR_CHART });
58
+ * ```
30
59
  */
31
- setConfig(config: ISparklineGroup): FSparklineGroup;
60
+ setConfig(config: ISparklineGroupConfig): FSparklineGroup;
32
61
  }
@@ -9,17 +9,43 @@ export declare class FSparkline {
9
9
  constructor(_unitId: string, _subUnitId: string, _groupId: string, _row: number, _col: number, _injector: Injector);
10
10
  /**
11
11
  * @description Modify the data source of the sparkline in the current cell
12
- *
13
12
  * @param {IRange} sourceRange Location of new data source
14
13
  * @param {IRange} targetRange New placement
14
+ * @returns {FSparkline | undefined} Return this, for chaining
15
+ * @example
16
+ * ```ts
17
+ * const workbook = univerAPI.getActiveWorkbook();
18
+ * const worksheet = workbook.getActiveSheet();
19
+ *
20
+ * // add sparkline
21
+ * const sparkline = worksheet.addSparkline(
22
+ * [{ startRow: 0, endRow: 6, startColumn: 0, endColumn: 0 }],
23
+ * [{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }]
24
+ * );
15
25
  *
16
- * @returns {FSparkline | undefined}
26
+ * // update sparkline data source
27
+ * sparkline.changeDataSource(
28
+ * { startRow: 0, endRow: 6, startColumn: 1, endColumn: 1 },
29
+ * { startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }
30
+ * );
31
+ * ```
17
32
  */
18
33
  changeDataSource(sourceRange: IRange, targetRange: IRange): FSparkline | undefined;
19
34
  /**
20
35
  * @description Delete the sparkline in the current cell
21
- *
22
36
  * @returns {void}
37
+ * @example
38
+ * ```ts
39
+ * const workbook = univerAPI.getActiveWorkbook();
40
+ * const worksheet = workbook.getActiveSheet();
41
+ *
42
+ * const sparkline = worksheet.addSparkline(
43
+ * [{ startRow: 0, endRow: 6, startColumn: 0, endColumn: 0 }],
44
+ * [{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }]
45
+ * );
46
+ *
47
+ * sparkline.removeSparkline();
48
+ * ```
23
49
  */
24
50
  removeSparkline(): void;
25
51
  }
@@ -0,0 +1,4 @@
1
+ import { Injector, FUniver } from '@univerjs/core';
2
+ export declare class FUniverSheetsSparklineMixin extends FUniver {
3
+ _initialize(injector: Injector): void;
4
+ }
@@ -6,52 +6,113 @@ import { FSparklineGroup } from './f-sparkline-group';
6
6
  export interface IFWorksheetSparklineMixin {
7
7
  /**
8
8
  * @description Add sparkline to the worksheet.
9
- *
10
9
  * @param {IRange[]} sourceRanges Source data location for sparklines
11
10
  * @param {IRange[]} targetRanges Where to place sparklines
12
11
  * @param {SparklineTypeEnum} type The type of Sparklines
13
- *
14
12
  * @returns {FSparkline | undefined} Returns the sparkline instance for the next call
13
+ * @example
14
+ * ```ts
15
+ * const workbook = univerAPI.getActiveWorkbook();
16
+ * const worksheet = workbook.getActiveSheet();
17
+ *
18
+ * const sparkline = worksheet.addSparkline(
19
+ * [{ startRow: 0, endRow: 6, startColumn: 0, endColumn: 0 }],
20
+ * [{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }]
21
+ * );
22
+ *
23
+ * console.log('sparkline instance', sparkline);
24
+ * ```
15
25
  */
16
26
  addSparkline(sourceRanges: IRange[], targetRanges: IRange[], type: SparklineTypeEnum.LINE_CHART): FSparkline | undefined;
17
27
  /**
18
28
  * @description Get all sparklines in the worksheet.
19
- *
20
29
  * @returns {Map<string, ISparklineGroup> | undefined}
30
+ * @example
31
+ * ```ts
32
+ * const workbook = univerAPI.getActiveWorkbook();
33
+ * const worksheet = workbook.getActiveSheet();
34
+ *
35
+ * const allSparkline = worksheet.getAllSubSparkline();
36
+ * console.log('allSparkline', allSparkline);
37
+ * ```
21
38
  */
22
39
  getAllSubSparkline(): Map<string, ISparklineGroup> | undefined;
23
40
  /**
24
41
  * @description Group the sparklines in the selection into a new sparkline group
25
- *
26
42
  * @param {IRange[]} ranges Current selection
27
- *
28
43
  * @returns {void}
44
+ * @example
45
+ * ```ts
46
+ * const workbook = univerAPI.getActiveWorkbook();
47
+ * const worksheet = workbook.getActiveSheet();
48
+ *
49
+ * const firstSparkline = worksheet.addSparkline(
50
+ * [{ startRow: 0, endRow: 6, startColumn: 0, endColumn: 0 }],
51
+ * [{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }]
52
+ * );
53
+ *
54
+ * const secondSparkline = worksheet.addSparkline(
55
+ * [{ startRow: 0, endRow: 6, startColumn: 0, endColumn: 0 }],
56
+ * [{ startRow: 9, endRow: 9, startColumn: 1, endColumn: 1 }]
57
+ * );
58
+ *
59
+ * // There will be two sparklines here
60
+ * const allSparklineBeforeCompose = worksheet.getAllSubSparkline();
61
+ *
62
+ * worksheet.composeSparkline([{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 1 }]);
63
+ *
64
+ * // After compose, there will only be one sparkline
65
+ * const allSparklineAfterCompose = worksheet.getAllSubSparkline();
66
+ * console.log('debugger', allSparklineBeforeCompose, allSparklineAfterCompose);
67
+ * ```
29
68
  */
30
69
  composeSparkline(ranges: IRange[]): void;
31
70
  /**
32
71
  * @description Split the sparkline group within the current selection
33
- *
34
72
  * @param {IRange[]} ranges Current selection
35
- *
36
73
  * @returns {void}
74
+ * @example
75
+ * ```ts
76
+ * // Continuing from the `composeSparkline` demo
77
+ * const workbook = univerAPI.getActiveWorkbook();
78
+ * const worksheet = workbook.getActiveSheet();
79
+ *
80
+ * // There will only be one sparkline here
81
+ * const allSparklineBeforeUnCompose = worksheet.getAllSubSparkline();
82
+ *
83
+ * worksheet.unComposeSparkline([{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 1 }]);
84
+ *
85
+ * // After unCompose, there will be two sparklines here
86
+ * const allSparklineAfterUnCompose = worksheet.getAllSubSparkline();
87
+ *
88
+ * console.log('debugger', allSparklineBeforeUnCompose, allSparklineAfterUnCompose);
89
+ * ```
37
90
  */
38
91
  unComposeSparkline(ranges: IRange[]): void;
39
92
  /**
40
93
  * @description Get the sparkline instance of the current cell
41
- *
42
94
  * @param {number} row
43
95
  * @param {number} col
44
- *
45
96
  * @returns {FSparkline | undefined} Returns the sparkline instance for the next call
97
+ * @example
98
+ * ```ts
99
+ * const workbook = univerAPI.getActiveWorkbook();
100
+ * const worksheet = workbook.getActiveSheet();
101
+ * const sparkline = worksheet.getSparklineByCell(9, 0)
102
+ * ```
46
103
  */
47
104
  getSparklineByCell(row: number, col: number): FSparkline | undefined;
48
105
  /**
49
106
  * @description Get the sparkline groups instance of the current cell
50
- *
51
107
  * @param {number} row
52
108
  * @param {number} col
53
- *
54
109
  * @returns {FSparklineGroup | undefined}
110
+ * @example
111
+ * ```ts
112
+ * const workbook = univerAPI.getActiveWorkbook();
113
+ * const worksheet = workbook.getActiveSheet();
114
+ * const sparkline = worksheet.getSparklineGroupByCell(9, 0)
115
+ * ```
55
116
  */
56
117
  getSparklineGroupByCell(row: number, col: number): FSparklineGroup | undefined;
57
118
  }
@@ -1,4 +1,7 @@
1
1
  import './f-worksheet';
2
+ import './f-enum';
3
+ import './f-event';
4
+ import './f-univer';
2
5
  export { FSparkline } from './f-sparkline';
3
6
  export { FSparklineGroup } from './f-sparkline-group';
4
7
  export type * from './f-worksheet';
@@ -8,7 +8,9 @@ export { RemoveSheetSparklineCommand } from './commands/commands/remove-sheet-sp
8
8
  export { SetSheetSparklineCommand } from './commands/commands/set-sheet-sparkline.command';
9
9
  export { PLUGIN_NAME, SparklinePointsNames, SparklineThemeMapping } from './common/const';
10
10
  export { AddSheetSparklineMutation } from './commands/mutations/add-sheet-sparkline.mutation';
11
+ export { SetSheetSparklineMutation } from './commands/mutations/set-sheet-sparkline.mutation';
11
12
  export { RemoveSheetSparklineMutation } from './commands/mutations/remove-sheet-sparkline.mutation';
12
13
  export type { ISetSheetSparklineCommandProps } from './commands/commands/set-sheet-sparkline.command';
13
14
  export type { IAddSheetSparklineCommandProps } from './commands/commands/add-sheet-sparkline.command';
14
15
  export type { IRemoveSheetSparklineCommandProps } from './commands/commands/remove-sheet-sparkline.command';
16
+ export type { ISetSheetSparklineMutationProps } from './commands/mutations/set-sheet-sparkline.mutation';
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5498(_0x31b0f3,_0x5213f1){const _0x52b2e0=_0x52b2();return _0x5498=function(_0x549840,_0x55f2b6){_0x549840=_0x549840-0x6a;let _0x526492=_0x52b2e0[_0x549840];return _0x526492;},_0x5498(_0x31b0f3,_0x5213f1);}(function(_0x423aef,_0x45cbc4){const _0x503a6a=_0x5498,_0x20c3c7=_0x423aef();while(!![]){try{const _0x13b90b=parseInt(_0x503a6a(0xa1))/0x1*(parseInt(_0x503a6a(0x9a))/0x2)+parseInt(_0x503a6a(0xa0))/0x3+-parseInt(_0x503a6a(0x9b))/0x4*(-parseInt(_0x503a6a(0x76))/0x5)+parseInt(_0x503a6a(0x70))/0x6+-parseInt(_0x503a6a(0x72))/0x7+-parseInt(_0x503a6a(0x8a))/0x8*(parseInt(_0x503a6a(0xa6))/0x9)+-parseInt(_0x503a6a(0x83))/0xa;if(_0x13b90b===_0x45cbc4)break;else _0x20c3c7['push'](_0x20c3c7['shift']());}catch(_0x1c15a3){_0x20c3c7['push'](_0x20c3c7['shift']());}}}(_0x52b2,0x66548),function(_0x141856,_0x417184){const _0x37d807=_0x5498;typeof exports=='object'&&typeof module<'u'?_0x417184(exports,require(_0x37d807(0x8f)),require(_0x37d807(0x99)),require(_0x37d807(0x7e))):typeof define==_0x37d807(0xa3)&&define['amd']?define([_0x37d807(0x74),_0x37d807(0x8f),_0x37d807(0x99),'@univerjs-pro/sheets-sparkline'],_0x417184):(_0x141856=typeof globalThis<'u'?globalThis:_0x141856||self,_0x417184(_0x141856[_0x37d807(0x81)]={},_0x141856[_0x37d807(0x73)],_0x141856[_0x37d807(0x71)],_0x141856[_0x37d807(0x89)]));}(this,function(_0x5e3e62,_0x29a8aa,_0x4d663f,_0x5a5ffd){'use strict';const _0x4c0ae3=_0x5498;var _0x2beb64=Object['defineProperty'],_0x316dc3=Object[_0x4c0ae3(0x95)],_0x3bd78a=(_0x443c2b,_0x4e59a8,_0x187292,_0x590b15)=>{for(var _0x6a1aa6=_0x590b15>0x1?void 0x0:_0x590b15?_0x316dc3(_0x4e59a8,_0x187292):_0x4e59a8,_0x508310=_0x443c2b['length']-0x1,_0x58c8d;_0x508310>=0x0;_0x508310--)(_0x58c8d=_0x443c2b[_0x508310])&&(_0x6a1aa6=(_0x590b15?_0x58c8d(_0x4e59a8,_0x187292,_0x6a1aa6):_0x58c8d(_0x6a1aa6))||_0x6a1aa6);return _0x590b15&&_0x6a1aa6&&_0x2beb64(_0x4e59a8,_0x187292,_0x6a1aa6),_0x6a1aa6;},_0x4761d9=(_0x11103e,_0x356163)=>(_0x20b60c,_0x514165)=>_0x356163(_0x20b60c,_0x514165,_0x11103e);_0x5e3e62[_0x4c0ae3(0x79)]=class{constructor(_0x571479,_0x2242b5,_0x3db6a4,_0xb52b68,_0x5e7570,_0x6a2bc1){const _0x10a728=_0x4c0ae3;this[_0x10a728(0x75)]=_0x571479,this[_0x10a728(0x78)]=_0x2242b5,this[_0x10a728(0x96)]=_0x3db6a4,this['_row']=_0xb52b68,this[_0x10a728(0x6b)]=_0x5e7570,this['_injector']=_0x6a2bc1;}['changeDataSource'](_0x4fba05,_0x2f85cd){const _0x1b2842=_0x4c0ae3,_0x1e18ab=this[_0x1b2842(0x9c)]['get'](_0x5a5ffd[_0x1b2842(0x6c)])[_0x1b2842(0x82)](this[_0x1b2842(0x75)],this[_0x1b2842(0x78)],this[_0x1b2842(0x96)]);if(!_0x1e18ab)return;_0x1e18ab[_0x1b2842(0x80)][_0x1b2842(0xa2)](this[_0x1b2842(0x84)],this[_0x1b2842(0x6b)]);const {startRow:_0x5370ab,startColumn:_0x5149e1}=_0x2f85cd;return _0x1e18ab[_0x1b2842(0x80)]['setValue'](_0x5370ab,_0x5149e1,_0x4fba05),this;}[_0x4c0ae3(0x8b)](){const _0x139ac2=_0x4c0ae3,_0x47d1a0=this[_0x139ac2(0x9c)][_0x139ac2(0xa7)](_0x5a5ffd[_0x139ac2(0x6c)]),_0x370c86=_0x47d1a0[_0x139ac2(0x82)](this[_0x139ac2(0x75)],this[_0x139ac2(0x78)],this[_0x139ac2(0x96)]);_0x370c86&&(_0x47d1a0[_0x139ac2(0x7d)](this[_0x139ac2(0x75)],this['_subUnitId'],this[_0x139ac2(0x96)]),_0x370c86[_0x139ac2(0x80)][_0x139ac2(0xa2)](this[_0x139ac2(0x84)],this[_0x139ac2(0x6b)]),_0x47d1a0[_0x139ac2(0x8e)](this[_0x139ac2(0x75)],this[_0x139ac2(0x78)],this[_0x139ac2(0x96)]));}},_0x5e3e62[_0x4c0ae3(0x79)]=_0x3bd78a([_0x4761d9(0x5,_0x29a8aa[_0x4c0ae3(0x6d)](_0x29a8aa[_0x4c0ae3(0x7c)]))],_0x5e3e62[_0x4c0ae3(0x79)]);var _0x51457e=Object[_0x4c0ae3(0x86)],_0x3079e4=Object[_0x4c0ae3(0x95)],_0x2a7014=(_0x4023ab,_0x41bdd8,_0x59668c,_0x55dbde)=>{for(var _0x215da5=_0x55dbde>0x1?void 0x0:_0x55dbde?_0x3079e4(_0x41bdd8,_0x59668c):_0x41bdd8,_0x5bbc15=_0x4023ab['length']-0x1,_0xca1e4e;_0x5bbc15>=0x0;_0x5bbc15--)(_0xca1e4e=_0x4023ab[_0x5bbc15])&&(_0x215da5=(_0x55dbde?_0xca1e4e(_0x41bdd8,_0x59668c,_0x215da5):_0xca1e4e(_0x215da5))||_0x215da5);return _0x55dbde&&_0x215da5&&_0x51457e(_0x41bdd8,_0x59668c,_0x215da5),_0x215da5;},_0x153fba=(_0x47177e,_0x523ecb)=>(_0x221211,_0x47073e)=>_0x523ecb(_0x221211,_0x47073e,_0x47177e);_0x5e3e62[_0x4c0ae3(0xa4)]=class{constructor(_0x159133,_0x489e8c,_0x416790,_0x13b2a6){const _0x55b8d4=_0x4c0ae3;this['_unitId']=_0x159133,this[_0x55b8d4(0x78)]=_0x489e8c,this[_0x55b8d4(0x96)]=_0x416790,this['_injector']=_0x13b2a6;}[_0x4c0ae3(0x9e)](_0x50bae6,_0xd03060){const _0x208b1e=_0x4c0ae3,_0x3688ad=this[_0x208b1e(0x75)],_0x1ea52a=this[_0x208b1e(0x78)],_0x326de5=this[_0x208b1e(0x9c)][_0x208b1e(0xa7)](_0x5a5ffd[_0x208b1e(0x6c)]),_0x40a2f3=_0x326de5['getSparklineById'](_0x3688ad,_0x1ea52a,this[_0x208b1e(0x96)]);if(!_0x40a2f3)return;_0x326de5['clearSparklineCache'](_0x3688ad,_0x1ea52a,this['_groupId']);const _0x12ec9f=_0x5a5ffd['getSparklinePlacement'](_0x50bae6,_0xd03060);return _0x40a2f3['sparklines']=_0x12ec9f,_0x326de5['updateSparklineExtraNum'](_0x3688ad,_0x1ea52a,this[_0x208b1e(0x96)]),this;}['removeSparklineGroup'](){const _0x195114=_0x4c0ae3,_0x537bc7=this[_0x195114(0x9c)]['get'](_0x5a5ffd[_0x195114(0x6c)]);_0x537bc7[_0x195114(0x82)](this[_0x195114(0x75)],this[_0x195114(0x78)],this[_0x195114(0x96)])&&_0x537bc7[_0x195114(0x8b)](this[_0x195114(0x75)],this[_0x195114(0x78)],this[_0x195114(0x96)]);}[_0x4c0ae3(0x97)](_0x55fd1f){const _0x4f55f8=_0x4c0ae3,_0x518742=this[_0x4f55f8(0x9c)][_0x4f55f8(0xa7)](_0x5a5ffd['SparklineDataSourceModel']);return _0x518742[_0x4f55f8(0x82)](this[_0x4f55f8(0x75)],this[_0x4f55f8(0x78)],this[_0x4f55f8(0x96)])&&_0x518742['setSparkline'](this['_unitId'],this[_0x4f55f8(0x78)],[this[_0x4f55f8(0x96)]],_0x55fd1f),this;}},_0x5e3e62[_0x4c0ae3(0xa4)]=_0x2a7014([_0x153fba(0x3,_0x29a8aa[_0x4c0ae3(0x6d)](_0x29a8aa[_0x4c0ae3(0x7c)]))],_0x5e3e62[_0x4c0ae3(0xa4)]);class _0x4ad35f extends _0x4d663f[_0x4c0ae3(0x7f)]{['addSparkline'](_0x4c57d9,_0x221f87,_0x25e270){const _0x2b3d47=_0x4c0ae3;if(this[_0x2b3d47(0x94)][_0x2b3d47(0x88)](_0x5a5ffd['AddSheetSparklineCommand']['id'],{'sourceRanges':_0x4c57d9,'targetRanges':_0x221f87,'targetInfo':{'unitId':this['_workbook'][_0x2b3d47(0x8c)](),'subUnitId':this[_0x2b3d47(0x9f)][_0x2b3d47(0x8d)]()},'config':{'type':_0x25e270}})){const {startRow:_0x303bb3,startColumn:_0x26a74c}=_0x221f87[0x0];return this[_0x2b3d47(0x7b)](_0x303bb3,_0x26a74c);}}[_0x4c0ae3(0x90)](){const _0x29a70c=_0x4c0ae3;return this[_0x29a70c(0x9c)][_0x29a70c(0xa7)](_0x5a5ffd[_0x29a70c(0x6c)])['getSubUnitSparkline'](this[_0x29a70c(0xa5)][_0x29a70c(0x8c)](),this['_worksheet']['getSheetId']());}[_0x4c0ae3(0x9d)](_0x6ad4d8){const _0x55ab7d=_0x4c0ae3,_0x179f7e=this[_0x55ab7d(0x9c)][_0x55ab7d(0xa7)](_0x5a5ffd['SparklineDataSourceModel']);let _0x3524ba;for(let _0x3e89ac=0x0;_0x3e89ac<_0x6ad4d8[_0x55ab7d(0x7a)];_0x3e89ac++){const _0x1b10cc=_0x6ad4d8[_0x3e89ac],{startRow:_0x2321b0,endRow:_0x4b5da2,startColumn:_0x9bcfc2,endColumn:_0x550641}=_0x1b10cc;for(let _0x1942d9=_0x2321b0;_0x1942d9<=_0x4b5da2;_0x1942d9++)for(let _0x4aa6f0=_0x9bcfc2;_0x4aa6f0<=_0x550641;_0x4aa6f0++){const _0x815116=_0x179f7e['getSparkline'](this[_0x55ab7d(0xa5)][_0x55ab7d(0x8c)](),this['_worksheet'][_0x55ab7d(0x8d)](),_0x1942d9,_0x4aa6f0);if(_0x815116){const _0x5d2e10=_0x179f7e[_0x55ab7d(0x82)](this[_0x55ab7d(0xa5)][_0x55ab7d(0x8c)](),this[_0x55ab7d(0x9f)]['getSheetId'](),_0x815116);if(_0x5d2e10){_0x3524ba=_0x29a8aa[_0x55ab7d(0x93)][_0x55ab7d(0x85)](_0x5d2e10);break;}}}}_0x3524ba||this[_0x55ab7d(0x94)][_0x55ab7d(0x6f)](_0x5a5ffd[_0x55ab7d(0x77)]['id'],{'ranges':_0x6ad4d8,'combine':!0x0,'config':_0x3524ba,'isChangeDataSource':!0x1});}[_0x4c0ae3(0x6e)](_0x443573){const _0x38f27e=_0x4c0ae3,_0x1dedc6=this[_0x38f27e(0x9c)][_0x38f27e(0xa7)](_0x5a5ffd['SparklineDataSourceModel']);let _0x54e9f4;for(let _0x280cda=0x0;_0x280cda<_0x443573[_0x38f27e(0x7a)];_0x280cda++){const _0x2f2553=_0x443573[_0x280cda],{startRow:_0x14dca4,endRow:_0x3a6acf,startColumn:_0x2300c6,endColumn:_0x3c044}=_0x2f2553;for(let _0x1f285b=_0x14dca4;_0x1f285b<=_0x3a6acf;_0x1f285b++)for(let _0x3d116b=_0x2300c6;_0x3d116b<=_0x3c044;_0x3d116b++){const _0x2359f6=_0x1dedc6[_0x38f27e(0x87)](this[_0x38f27e(0xa5)]['getUnitId'](),this[_0x38f27e(0x9f)]['getSheetId'](),_0x1f285b,_0x3d116b);if(_0x2359f6){const _0x5d8cb2=_0x1dedc6[_0x38f27e(0x82)](this[_0x38f27e(0xa5)][_0x38f27e(0x8c)](),this['_worksheet'][_0x38f27e(0x8d)](),_0x2359f6);if(_0x5d8cb2){_0x54e9f4=_0x29a8aa[_0x38f27e(0x93)][_0x38f27e(0x85)](_0x5d8cb2);break;}}}}_0x54e9f4||this[_0x38f27e(0x94)][_0x38f27e(0x6f)](_0x5a5ffd[_0x38f27e(0x77)]['id'],{'ranges':_0x443573,'unCombine':!0x0,'config':_0x54e9f4,'isChangeDataSource':!0x1});}['getSparklineByCell'](_0x15aa8b,_0x15010f){const _0x2911a0=_0x4c0ae3,_0x19ecc0=this[_0x2911a0(0x9c)][_0x2911a0(0xa7)](_0x5a5ffd[_0x2911a0(0x6c)]),_0x4e1a0f=this[_0x2911a0(0xa5)][_0x2911a0(0x8c)](),_0x4b574e=this[_0x2911a0(0x9f)]['getSheetId'](),_0x220c8d=_0x19ecc0['getSparkline'](_0x4e1a0f,_0x4b574e,_0x15aa8b,_0x15010f);if(_0x220c8d)return this[_0x2911a0(0x9c)]['createInstance'](_0x5e3e62[_0x2911a0(0x79)],_0x4e1a0f,_0x4b574e,_0x220c8d,_0x15aa8b,_0x15010f);}[_0x4c0ae3(0x6a)](_0x17aa01,_0x2bb772){const _0x1df0ce=_0x4c0ae3,_0x1117ec=this['_injector'][_0x1df0ce(0xa7)](_0x5a5ffd['SparklineDataSourceModel']),_0x3a8b2b=this[_0x1df0ce(0xa5)][_0x1df0ce(0x8c)](),_0x4f43ca=this[_0x1df0ce(0x9f)][_0x1df0ce(0x8d)](),_0x34a3c6=_0x1117ec[_0x1df0ce(0x87)](_0x3a8b2b,_0x4f43ca,_0x17aa01,_0x2bb772);if(_0x34a3c6)return this[_0x1df0ce(0x9c)]['createInstance'](_0x5e3e62[_0x1df0ce(0xa4)],_0x3a8b2b,_0x4f43ca,_0x34a3c6);}}_0x4d663f[_0x4c0ae3(0x7f)][_0x4c0ae3(0x98)](_0x4ad35f),Object[_0x4c0ae3(0x86)](_0x5e3e62,Symbol[_0x4c0ae3(0x92)],{'value':_0x4c0ae3(0x91)});}));function _0x52b2(){const _0x40bfca=['@univerjs/sheets/facade','230nNXerQ','20qsVZKd','_injector','composeSparkline','changeDataSource','_worksheet','1043349UlUCOf','1087DNrZRk','realDeleteValue','function','FSparklineGroup','_workbook','18DtVonG','get','getSparklineGroupByCell','_col','SparklineDataSourceModel','Inject','unComposeSparkline','executeCommand','1851576nNGopk','UniverSheetsFacade','4028682RfHruM','UniverCore','exports','_unitId','823345DjSRrK','SetSheetSparklineCommand','_subUnitId','FSparkline','length','getSparklineByCell','Injector','clearSparklineCache','@univerjs-pro/sheets-sparkline','FWorksheet','sparklines','UniverProSheetsSparklineFacade','getSparklineById','5709750UKKNoo','_row','deepClone','defineProperty','getSparkline','syncExecuteCommand','UniverProSheetsSparkline','156336eAxkLo','removeSparkline','getUnitId','getSheetId','updateSparklineExtraNum','@univerjs/core','getAllSubSparkline','Module','toStringTag','Tools','_commandService','getOwnPropertyDescriptor','_groupId','setConfig','extend'];_0x52b2=function(){return _0x40bfca;};return _0x52b2();}
1
+ function _0x2a14(_0x21741f,_0x1b5245){const _0x473b66=_0x473b();return _0x2a14=function(_0x2a1489,_0x5e4037){_0x2a1489=_0x2a1489-0x187;let _0x4ff875=_0x473b66[_0x2a1489];return _0x4ff875;},_0x2a14(_0x21741f,_0x1b5245);}function _0x473b(){const _0x291022=['group','getSparkline','Tools','from','_worksheet','getSparklineGroupByCell','_row','isChangeDataSource','ICommandService','changeDataSource','getValue','12nwiTDj','_unitId','405748ZyIpla','@univerjs/core','FWorksheet','getActiveWorkbook','83520oqkqKw','@univerjs/sheets/facade','get','Inject','getSparklineByCell','UniverSheetsFacade','getUnitId','SetSheetSparklineCommand','setConfig','_commandService','Event','_workbook','syncExecuteCommand','SheetSparklineChanged','getSubUnitSparkline','composeSparkline','_groupId','FSparklineGroup','Module','cancel','Injector','FSparkline','RemoveSheetSparklineCommand','item','amd','@univerjs/sheets','startColumn','addSparkline','UniverCore','UniverProSheetsSparkline','10920drbJmU','function','65196GeLeoT','576445duplDU','startRow','@univerjs-pro/sheets-sparkline','_injector','groupId','200GvdHci','SparklineTypeEnum','AddSheetSparklineCommand','defineProperty','getCurrentSelections','createInstance','object','130624RoOxpl','deepClone','getOwnPropertyDescriptor','236266WcZeQS','matrix','removeSparklineGroup','add','onCommandExecuted','50OpQQoC','sparklineAnchorMap','extend','SparklineDataSourceModel','_col','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','map','forEach','getSheetId','SheetsSelectionsService','FUniver','toStringTag','length','executeCommand','range','getSparklineById','_subUnitId','removeSparkline','_initialize'];_0x473b=function(){return _0x291022;};return _0x473b();}(function(_0x542634,_0x3947e1){const _0x539c43=_0x2a14,_0x46e222=_0x542634();while(!![]){try{const _0x278c3b=-parseInt(_0x539c43(0x1ba))/0x1+-parseInt(_0x539c43(0x1bd))/0x2+-parseInt(_0x539c43(0x1ab))/0x3*(-parseInt(_0x539c43(0x1b3))/0x4)+parseInt(_0x539c43(0x1ae))/0x5+parseInt(_0x539c43(0x187))/0x6*(parseInt(_0x539c43(0x189))/0x7)+parseInt(_0x539c43(0x18d))/0x8+-parseInt(_0x539c43(0x1ad))/0x9*(parseInt(_0x539c43(0x1c2))/0xa);if(_0x278c3b===_0x3947e1)break;else _0x46e222['push'](_0x46e222['shift']());}catch(_0x58aaf9){_0x46e222['push'](_0x46e222['shift']());}}}(_0x473b,0x21db8),function(_0x1a7549,_0x33febb){const _0x30f747=_0x2a14;typeof exports==_0x30f747(0x1b9)&&typeof module<'u'?_0x33febb(exports,require(_0x30f747(0x1b0)),require('@univerjs/core'),require('@univerjs/sheets/facade'),require(_0x30f747(0x1a6))):typeof define==_0x30f747(0x1ac)&&define[_0x30f747(0x1a5)]?define(['exports',_0x30f747(0x1b0),_0x30f747(0x18a),_0x30f747(0x18e),_0x30f747(0x1a6)],_0x33febb):(_0x1a7549=typeof globalThis<'u'?globalThis:_0x1a7549||self,_0x33febb(_0x1a7549['UniverProSheetsSparklineFacade']={},_0x1a7549[_0x30f747(0x1aa)],_0x1a7549[_0x30f747(0x1a9)],_0x1a7549[_0x30f747(0x192)],_0x1a7549['UniverSheets']));}(this,function(_0x586b5a,_0x35561e,_0x4a6b6d,_0x53339a,_0x397159){'use strict';const _0x5c4e21=_0x2a14;var _0x3d3030=Object['defineProperty'],_0x210326=Object[_0x5c4e21(0x1bc)],_0x52f6d0=(_0x427acc,_0x41ba5a,_0x5bbcef,_0x2bd2f8)=>{const _0xd19f5e=_0x5c4e21;for(var _0x3f1d7a=_0x2bd2f8>0x1?void 0x0:_0x2bd2f8?_0x210326(_0x41ba5a,_0x5bbcef):_0x41ba5a,_0x223e81=_0x427acc[_0xd19f5e(0x1ce)]-0x1,_0x155af0;_0x223e81>=0x0;_0x223e81--)(_0x155af0=_0x427acc[_0x223e81])&&(_0x3f1d7a=(_0x2bd2f8?_0x155af0(_0x41ba5a,_0x5bbcef,_0x3f1d7a):_0x155af0(_0x3f1d7a))||_0x3f1d7a);return _0x2bd2f8&&_0x3f1d7a&&_0x3d3030(_0x41ba5a,_0x5bbcef,_0x3f1d7a),_0x3f1d7a;},_0x5c1d73=(_0x36dfed,_0x4635d5)=>(_0x4b40db,_0x56a03c)=>_0x4635d5(_0x4b40db,_0x56a03c,_0x36dfed);_0x586b5a[_0x5c4e21(0x1a2)]=class{constructor(_0xd74f5e,_0x68efdf,_0x484ed2,_0x2f8265,_0x1a6f9c,_0x4c8407){const _0x36728b=_0x5c4e21;this['_unitId']=_0xd74f5e,this[_0x36728b(0x1d2)]=_0x68efdf,this[_0x36728b(0x19d)]=_0x484ed2,this[_0x36728b(0x1db)]=_0x2f8265,this['_col']=_0x1a6f9c,this[_0x36728b(0x1b1)]=_0x4c8407;}[_0x5c4e21(0x1de)](_0x5b9f9d,_0x172446){const _0x2ef3f9=_0x5c4e21,_0x21aab8=this['_injector']['get'](_0x35561e[_0x2ef3f9(0x1c5)]),_0x185a75=this[_0x2ef3f9(0x1b1)][_0x2ef3f9(0x18f)](_0x4a6b6d[_0x2ef3f9(0x1dd)]),_0x4d8d5f=_0x21aab8['getSparklineById'](this['_unitId'],this[_0x2ef3f9(0x1d2)],this[_0x2ef3f9(0x19d)]);if(!_0x4d8d5f)return;const _0x3d1c39={'config':_0x4d8d5f,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':_0x2ef3f9(0x1a4),'sourceRanges':[_0x5b9f9d],'targetRanges':[_0x172446],'primary':{'startRow':this[_0x2ef3f9(0x1db)],'startColumn':this['_col'],'endRow':this[_0x2ef3f9(0x1db)],'endColumn':this[_0x2ef3f9(0x1c6)],'actualRow':this[_0x2ef3f9(0x1db)],'actualColumn':this[_0x2ef3f9(0x1c6)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x185a75[_0x2ef3f9(0x199)](_0x35561e[_0x2ef3f9(0x194)]['id'],_0x3d1c39),this[_0x2ef3f9(0x1db)]=_0x172446[_0x2ef3f9(0x1af)],this[_0x2ef3f9(0x1c6)]=_0x172446[_0x2ef3f9(0x1a7)],this;}[_0x5c4e21(0x1d3)](){const _0x595228=_0x5c4e21,_0x2aae2a=this[_0x595228(0x1b1)][_0x595228(0x18f)](_0x4a6b6d[_0x595228(0x1dd)]),_0x4788e7={'isSingle':!0x0,'ranges':[{'startRow':this[_0x595228(0x1db)],'startColumn':this['_col'],'endRow':this[_0x595228(0x1db)],'endColumn':this[_0x595228(0x1c6)]}]};_0x2aae2a['syncExecuteCommand'](_0x35561e[_0x595228(0x1a3)]['id'],_0x4788e7);}},_0x586b5a[_0x5c4e21(0x1a2)]=_0x52f6d0([_0x5c1d73(0x5,_0x4a6b6d[_0x5c4e21(0x190)](_0x4a6b6d[_0x5c4e21(0x1a1)]))],_0x586b5a[_0x5c4e21(0x1a2)]);var _0x506007=Object['defineProperty'],_0x543d1f=Object['getOwnPropertyDescriptor'],_0x5ea92f=(_0x2c24c9,_0x2bc4c0,_0x1a86fe,_0x1af668)=>{const _0x962f08=_0x5c4e21;for(var _0x3c9689=_0x1af668>0x1?void 0x0:_0x1af668?_0x543d1f(_0x2bc4c0,_0x1a86fe):_0x2bc4c0,_0x540aa7=_0x2c24c9[_0x962f08(0x1ce)]-0x1,_0x599f06;_0x540aa7>=0x0;_0x540aa7--)(_0x599f06=_0x2c24c9[_0x540aa7])&&(_0x3c9689=(_0x1af668?_0x599f06(_0x2bc4c0,_0x1a86fe,_0x3c9689):_0x599f06(_0x3c9689))||_0x3c9689);return _0x1af668&&_0x3c9689&&_0x506007(_0x2bc4c0,_0x1a86fe,_0x3c9689),_0x3c9689;},_0x36c7e8=(_0x5c37a6,_0x44b9db)=>(_0x2c95f9,_0x3bde1c)=>_0x44b9db(_0x2c95f9,_0x3bde1c,_0x5c37a6);_0x586b5a[_0x5c4e21(0x19e)]=class{constructor(_0x83aa9f,_0x4f8c02,_0x131b4d,_0x561c8b,_0x325f3b,_0x137a5a){const _0x3d63d1=_0x5c4e21;this[_0x3d63d1(0x188)]=_0x83aa9f,this[_0x3d63d1(0x1d2)]=_0x4f8c02,this[_0x3d63d1(0x19d)]=_0x131b4d,this['_row']=_0x561c8b,this[_0x3d63d1(0x1c6)]=_0x325f3b,this[_0x3d63d1(0x1b1)]=_0x137a5a;}[_0x5c4e21(0x1de)](_0x1db9a7,_0x3af42f){const _0x27c98f=_0x5c4e21,_0x242b5c=this[_0x27c98f(0x1b1)][_0x27c98f(0x18f)](_0x35561e[_0x27c98f(0x1c5)]),_0x51edf6=this['_injector'][_0x27c98f(0x18f)](_0x4a6b6d['ICommandService']),_0x5891db=_0x242b5c[_0x27c98f(0x1d1)](this[_0x27c98f(0x188)],this[_0x27c98f(0x1d2)],this['_groupId']);if(!_0x5891db)return;const _0x5e7ad5={'config':_0x5891db,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x27c98f(0x19d)],'resetType':_0x27c98f(0x1d5),'sourceRanges':_0x1db9a7,'targetRanges':_0x3af42f,'primary':{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this[_0x27c98f(0x1db)],'endColumn':this[_0x27c98f(0x1c6)],'actualRow':this[_0x27c98f(0x1db)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x51edf6[_0x27c98f(0x199)](_0x35561e['SetSheetSparklineCommand']['id'],_0x5e7ad5),this[_0x27c98f(0x1db)]=_0x3af42f[0x0]['startRow'],this['_col']=_0x3af42f[0x0][_0x27c98f(0x1a7)],this;}[_0x5c4e21(0x1bf)](){const _0x148da6=_0x5c4e21,_0x20df71=this['_injector'][_0x148da6(0x18f)](_0x4a6b6d[_0x148da6(0x1dd)]),_0x4ba4ad={'isSingle':!0x1,'ranges':[{'startRow':this['_row'],'startColumn':this[_0x148da6(0x1c6)],'endRow':this[_0x148da6(0x1db)],'endColumn':this['_col']}]};_0x20df71['syncExecuteCommand'](_0x35561e[_0x148da6(0x1a3)]['id'],_0x4ba4ad);}[_0x5c4e21(0x195)](_0x52f32d){const _0x149222=_0x5c4e21,_0x2c1525=this[_0x149222(0x1b1)][_0x149222(0x18f)](_0x35561e[_0x149222(0x1c5)])[_0x149222(0x1d1)](this[_0x149222(0x188)],this[_0x149222(0x1d2)],this[_0x149222(0x19d)]);if(_0x2c1525){const _0x51d6e9={'config':{'config':_0x52f32d,'sparklines':_0x2c1525['sparklines']},'isChangeDataSource':!0x1};this[_0x149222(0x1b1)][_0x149222(0x18f)](_0x4a6b6d[_0x149222(0x1dd)])[_0x149222(0x199)](_0x35561e[_0x149222(0x194)]['id'],_0x51d6e9);}return this;}},_0x586b5a[_0x5c4e21(0x19e)]=_0x5ea92f([_0x36c7e8(0x5,_0x4a6b6d[_0x5c4e21(0x190)](_0x4a6b6d[_0x5c4e21(0x1a1)]))],_0x586b5a[_0x5c4e21(0x19e)]);class _0x4c28b5 extends _0x53339a[_0x5c4e21(0x18b)]{[_0x5c4e21(0x1a8)](_0x43b101,_0x333bf8,_0x29a276){const _0x1c1013=_0x5c4e21;if(this[_0x1c1013(0x196)]['syncExecuteCommand'](_0x35561e[_0x1c1013(0x1b5)]['id'],{'sourceRanges':_0x43b101,'targetRanges':_0x333bf8,'targetInfo':{'unitId':this[_0x1c1013(0x198)][_0x1c1013(0x193)](),'subUnitId':this[_0x1c1013(0x1d9)][_0x1c1013(0x1ca)]()},'config':{'type':_0x29a276}})){const {startRow:_0x5b5ad3,startColumn:_0x468cfa}=_0x333bf8[0x0];return this[_0x1c1013(0x191)](_0x5b5ad3,_0x468cfa);}}['getAllSubSparkline'](){const _0x44b6ad=_0x5c4e21;return this[_0x44b6ad(0x1b1)]['get'](_0x35561e[_0x44b6ad(0x1c5)])[_0x44b6ad(0x19b)](this[_0x44b6ad(0x198)]['getUnitId'](),this[_0x44b6ad(0x1d9)][_0x44b6ad(0x1ca)]());}[_0x5c4e21(0x19c)](_0x47c684){const _0x3cd084=_0x5c4e21,_0x3255df=this['_injector'][_0x3cd084(0x18f)](_0x35561e[_0x3cd084(0x1c5)]);let _0x34291c;for(let _0x48dbd2=0x0;_0x48dbd2<_0x47c684[_0x3cd084(0x1ce)];_0x48dbd2++){const _0x5b796f=_0x47c684[_0x48dbd2],{startRow:_0x42c42c,endRow:_0x5b9461,startColumn:_0x5e6d1d,endColumn:_0x4f5346}=_0x5b796f;for(let _0xd3a28e=_0x42c42c;_0xd3a28e<=_0x5b9461;_0xd3a28e++)for(let _0x33b285=_0x5e6d1d;_0x33b285<=_0x4f5346;_0x33b285++){const _0x393986=_0x3255df['getSparkline'](this[_0x3cd084(0x198)][_0x3cd084(0x193)](),this[_0x3cd084(0x1d9)][_0x3cd084(0x1ca)](),_0xd3a28e,_0x33b285);if(_0x393986){const _0x5d0c9a=_0x3255df[_0x3cd084(0x1d1)](this[_0x3cd084(0x198)][_0x3cd084(0x193)](),this['_worksheet']['getSheetId'](),_0x393986);if(_0x5d0c9a){_0x34291c=_0x4a6b6d[_0x3cd084(0x1d7)][_0x3cd084(0x1bb)](_0x5d0c9a);break;}}}}_0x34291c&&this['_commandService'][_0x3cd084(0x1cf)](_0x35561e['SetSheetSparklineCommand']['id'],{'ranges':_0x47c684,'combine':!0x0,'config':_0x34291c,'isChangeDataSource':!0x1});}['unComposeSparkline'](_0x5e3e90){const _0x4de618=_0x5c4e21,_0x120dad=this[_0x4de618(0x1b1)][_0x4de618(0x18f)](_0x35561e[_0x4de618(0x1c5)]);let _0xafc78f;for(let _0x16dea1=0x0;_0x16dea1<_0x5e3e90['length'];_0x16dea1++){const _0x3a27ee=_0x5e3e90[_0x16dea1],{startRow:_0x131ad8,endRow:_0x25f581,startColumn:_0x853766,endColumn:_0x444294}=_0x3a27ee;for(let _0x5e1c5b=_0x131ad8;_0x5e1c5b<=_0x25f581;_0x5e1c5b++)for(let _0x4586c9=_0x853766;_0x4586c9<=_0x444294;_0x4586c9++){const _0x6d40e5=_0x120dad[_0x4de618(0x1d6)](this[_0x4de618(0x198)][_0x4de618(0x193)](),this['_worksheet'][_0x4de618(0x1ca)](),_0x5e1c5b,_0x4586c9);if(_0x6d40e5){const _0x4d0d77=_0x120dad[_0x4de618(0x1d1)](this[_0x4de618(0x198)][_0x4de618(0x193)](),this[_0x4de618(0x1d9)][_0x4de618(0x1ca)](),_0x6d40e5);if(_0x4d0d77){_0xafc78f=_0x4a6b6d[_0x4de618(0x1d7)][_0x4de618(0x1bb)](_0x4d0d77);break;}}}}_0xafc78f||this[_0x4de618(0x196)][_0x4de618(0x1cf)](_0x35561e[_0x4de618(0x194)]['id'],{'ranges':_0x5e3e90,'unCombine':!0x0,'config':_0xafc78f,'isChangeDataSource':!0x1});}[_0x5c4e21(0x191)](_0xdbff26,_0x3ccd03){const _0x45e5fa=_0x5c4e21,_0x5ac47a=this[_0x45e5fa(0x1b1)][_0x45e5fa(0x18f)](_0x35561e[_0x45e5fa(0x1c5)]),_0x455379=this[_0x45e5fa(0x198)][_0x45e5fa(0x193)](),_0xc86eca=this[_0x45e5fa(0x1d9)]['getSheetId'](),_0xd47927=_0x5ac47a[_0x45e5fa(0x1d6)](_0x455379,_0xc86eca,_0xdbff26,_0x3ccd03);if(_0xd47927)return this[_0x45e5fa(0x1b1)][_0x45e5fa(0x1b8)](_0x586b5a[_0x45e5fa(0x1a2)],_0x455379,_0xc86eca,_0xd47927,_0xdbff26,_0x3ccd03);}[_0x5c4e21(0x1da)](_0x5d6cd4,_0x3eb420){const _0xc91b4b=_0x5c4e21,_0x846b33=this['_injector'][_0xc91b4b(0x18f)](_0x35561e[_0xc91b4b(0x1c5)]),_0x13941f=this[_0xc91b4b(0x198)][_0xc91b4b(0x193)](),_0x14ab3a=this[_0xc91b4b(0x1d9)][_0xc91b4b(0x1ca)](),_0x596c71=_0x846b33[_0xc91b4b(0x1d6)](_0x13941f,_0x14ab3a,_0x5d6cd4,_0x3eb420);if(_0x596c71)return this[_0xc91b4b(0x1b1)][_0xc91b4b(0x1b8)](_0x586b5a['FSparklineGroup'],_0x13941f,_0x14ab3a,_0x596c71,_0x5d6cd4,_0x3eb420);}}_0x53339a['FWorksheet'][_0x5c4e21(0x1c4)](_0x4c28b5);class _0x5de125 extends _0x4a6b6d['FEnum']{get[_0x5c4e21(0x1b4)](){const _0x249f87=_0x5c4e21;return _0x35561e[_0x249f87(0x1b4)];}}_0x4a6b6d['FEnum']['extend'](_0x5de125);class _0x327f63 extends _0x4a6b6d['FEventName']{get['SheetSparklineChanged'](){const _0x2ad9b2=_0x5c4e21;return _0x2ad9b2(0x19a);}}_0x4a6b6d['FEventName']['extend'](_0x327f63);class _0x4eca66 extends _0x4a6b6d[_0x5c4e21(0x1cc)]{[_0x5c4e21(0x1d4)](_0x41b0b5){const _0x1ac8df=_0x5c4e21;_0x41b0b5[_0x1ac8df(0x18f)](_0x4a6b6d['ICommandService'])[_0x1ac8df(0x1c1)](_0x2cdbf8=>{const _0x272b4f=_0x1ac8df;var _0x16dd7f,_0x1a06bb;if(_0x2cdbf8['id']===_0x35561e[_0x272b4f(0x194)]['id']){if(!this['hasEventCallback'](this[_0x272b4f(0x197)][_0x272b4f(0x19a)]))return;const _0x5476d1=_0x2cdbf8['params'];if(!_0x5476d1[_0x272b4f(0x1dc)]){const _0xb6652=this[_0x272b4f(0x18c)](),_0x13baca=_0xb6652==null?void 0x0:_0xb6652['getActiveSheet']();if(!_0xb6652||!_0x13baca)return;const _0x2618dd=_0xb6652['getId'](),_0x4a5fe1=_0x13baca['getSheetId'](),_0x206fcf=this[_0x272b4f(0x1b1)]['get'](_0x397159[_0x272b4f(0x1cb)]),_0x324aea=this[_0x272b4f(0x1b1)][_0x272b4f(0x18f)](_0x35561e[_0x272b4f(0x1c5)]),_0x33cce1=(_0x16dd7f=_0x5476d1==null?void 0x0:_0x5476d1['ranges'])!=null?_0x16dd7f:_0x206fcf[_0x272b4f(0x1b7)]()[_0x272b4f(0x1c8)](_0x23dbec=>_0x23dbec[_0x272b4f(0x1d0)]),_0x29bc47=(_0x1a06bb=_0x324aea['getSparklineCache']()[_0x272b4f(0x1c3)]['get'](_0x2618dd))==null?void 0x0:_0x1a06bb['get'](_0x4a5fe1),_0x1af9ad=new Set();_0x33cce1[_0x272b4f(0x1c9)](_0x2884cd=>{const _0x5ef29a=_0x272b4f;var _0x2bf500;const {startRow:_0x1403a7,endRow:_0x3b7eda,startColumn:_0x2c8d48,endColumn:_0x593dcd}=_0x2884cd;for(let _0x32850f=_0x1403a7;_0x32850f<=_0x3b7eda;_0x32850f++)for(let _0x5dec54=_0x2c8d48;_0x5dec54<=_0x593dcd;_0x5dec54++){const _0x334609=(_0x2bf500=_0x29bc47==null?void 0x0:_0x29bc47[_0x5ef29a(0x1be)][_0x5ef29a(0x1df)](_0x32850f,_0x5dec54))==null?void 0x0:_0x2bf500[_0x5ef29a(0x1b2)];_0x334609&&_0x1af9ad[_0x5ef29a(0x1c0)](_0x334609);}});const _0x4ef87d=Array[_0x272b4f(0x1d8)](_0x1af9ad)[_0x272b4f(0x1c8)](_0x2ecade=>_0x324aea[_0x272b4f(0x1d1)](_0x2618dd,_0x4a5fe1,_0x2ecade))['filter'](_0xa9c2e1=>!!_0xa9c2e1),_0x403668={'workbook':_0xb6652,'worksheet':_0x13baca,'sparklines':_0x4ef87d};if(this['fireEvent'](this[_0x272b4f(0x197)][_0x272b4f(0x19a)],_0x403668),_0x403668[_0x272b4f(0x1a0)])throw new Error(_0x272b4f(0x1c7));}}});}}_0x4a6b6d['FUniver']['extend'](_0x4eca66),Object[_0x5c4e21(0x1b6)](_0x586b5a,Symbol[_0x5c4e21(0x1cd)],{'value':_0x5c4e21(0x19f)});}));