@univerjs-pro/sheets-mcp 0.17.0 → 0.19.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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/facade/f-range.d.ts +2 -2
- package/lib/types/facade/f-univer.d.ts +1 -1
- package/lib/types/facade/f-workbook-custom-search.d.ts +1 -1
- package/lib/types/facade/f-workbook.d.ts +2 -2
- package/lib/types/facade/f-worksheet.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/cell-usage-analyzer.service.d.ts +2 -2
- package/lib/types/services/conditional-format.service.d.ts +1 -1
- package/lib/types/services/data-validation.service.d.ts +2 -2
- package/lib/types/services/formula-analysis.service.d.ts +2 -2
- package/lib/types/services/numfmt.service.d.ts +2 -1
- package/lib/types/services/size-analysis.service.d.ts +2 -2
- package/lib/types/services/style-analysis.service.d.ts +2 -2
- package/lib/types/tools/common.d.ts +2 -1
- package/lib/types/tools/conditional-format-tools.d.ts +9 -8
- package/lib/types/tools/data-validation-tools.d.ts +2 -1
- package/lib/types/tools/error-utils.d.ts +2 -2
- package/lib/types/tools/format-types.d.ts +1 -1
- package/lib/types/tools/index.d.ts +1 -1
- package/lib/types/tools/range-operations.d.ts +2 -1
- package/lib/types/tools/row-column-operations.d.ts +2 -1
- package/lib/types/tools/sheet-management.d.ts +2 -1
- package/lib/types/tools/style-utils.d.ts +1 -1
- package/lib/types/tools/utility-tools.d.ts +2 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
2
|
-
import { IColumnData, IObjectArrayPrimitiveType, IRowData } from '@univerjs/core';
|
|
1
|
+
import type { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
2
|
+
import type { IColumnData, IObjectArrayPrimitiveType, IRowData } from '@univerjs/core';
|
|
3
3
|
import { FRange } from '@univerjs/sheets/facade';
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellValue, ICellData, IRange } from '@univerjs/core';
|
|
1
|
+
import type { CellValue, ICellData, IRange } from '@univerjs/core';
|
|
2
2
|
import { FormulaDataModel } from '@univerjs/engine-formula';
|
|
3
3
|
import { FWorkbook } from '@univerjs/sheets/facade';
|
|
4
4
|
interface ICustomSearchCellsOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
-
import { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
1
|
+
import type { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
+
import type { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
3
3
|
import { FWorkbook } from '@univerjs/sheets/facade';
|
|
4
4
|
import './f-workbook-custom-search';
|
|
5
5
|
export interface ILintErrorReport {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
1
|
+
import type { IFormulaUsage, IFormulaUsageAsA1, IGetSizeUsagesOptions, IGetStyleUsagesOptions, ISizeUsageGrouped, ISizeUsageGroupedAsA1, IStyleUsage, IStyleUsageAsA1 } from '@univerjs-pro/sheets-mcp';
|
|
2
2
|
import { FWorksheet } from '@univerjs/sheets/facade';
|
|
3
3
|
/**
|
|
4
4
|
* @ignore
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUniverSheetMCPConfig } from './controllers/config.schema';
|
|
1
|
+
import type { IUniverSheetMCPConfig } from './controllers/config.schema';
|
|
2
2
|
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverSheetMCPPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
1
|
+
import type { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* Generic cell usage data interface
|
|
4
4
|
*/
|
|
@@ -56,7 +56,7 @@ export interface IDataExtractorCondition {
|
|
|
56
56
|
* Convert rectangle coordinates to A1 notation
|
|
57
57
|
*/
|
|
58
58
|
export declare function getA1Notation([r1, r2, c1, c2]: [number, number, number, number]): string;
|
|
59
|
-
export declare const ICellUsageAnalyzer: import(
|
|
59
|
+
export declare const ICellUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<CellUsageAnalyzer>;
|
|
60
60
|
export declare class CellUsageAnalyzer {
|
|
61
61
|
/**
|
|
62
62
|
* Analyze cell data matrix to find all data usage patterns
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConditionalFormattingRuleConfig, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
1
|
+
import type { IConditionalFormattingRuleConfig, IConditionFormattingRule } from '@univerjs/sheets-conditional-formatting';
|
|
2
2
|
/**
|
|
3
3
|
* MCP parameter structure definition
|
|
4
4
|
* All parameters are flattened and change dynamically according to rule_type/sub_type
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDataValidationRule } from '@univerjs/core';
|
|
2
|
-
import { IMCPDataValidationRule } from '../tools/format-types';
|
|
1
|
+
import type { IDataValidationRule } from '@univerjs/core';
|
|
2
|
+
import type { IMCPDataValidationRule } from '../tools/format-types';
|
|
3
3
|
export declare class DataValidationConverter {
|
|
4
4
|
static toInternalConfig(mcpRule: IMCPDataValidationRule): IDataValidationRule;
|
|
5
5
|
static fromInternalConfig(data: IDataValidationRule): IMCPDataValidationRule;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
1
|
+
import type { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
2
2
|
import { ICalculateFormulaService, LexerTreeBuilder } from '@univerjs/engine-formula';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for formula usage information
|
|
@@ -42,7 +42,7 @@ export declare function toA1(usage: IFormulaUsage): IFormulaUsageAsA1;
|
|
|
42
42
|
*/
|
|
43
43
|
export declare function getA1Notation([r1, r2, c1, c2]: [number, number, number, number]): string;
|
|
44
44
|
export declare const FormulaUsageAnalyzerChannelName = "sheets.mcp.formula-usage-analyzer";
|
|
45
|
-
export declare const IFormulaUsageAnalyzer: import(
|
|
45
|
+
export declare const IFormulaUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<FormulaUsageAnalyzer>;
|
|
46
46
|
export declare class FormulaUsageAnalyzer {
|
|
47
47
|
protected _formulaService: ICalculateFormulaService;
|
|
48
48
|
private _lexerTreeBuilder;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ICellData
|
|
1
|
+
import type { ICellData } from '@univerjs/core';
|
|
2
|
+
import { IUniverInstanceService } from '@univerjs/core';
|
|
2
3
|
import { INumfmtService, SheetInterceptorService } from '@univerjs/sheets';
|
|
3
4
|
export declare class NumFmtMCPService {
|
|
4
5
|
private readonly _sheetInterceptorService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IColumnRange, IRowRange, Worksheet } from '@univerjs/core';
|
|
1
|
+
import type { IColumnRange, IRowRange, Worksheet } from '@univerjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* Options for getSizeUsages methods
|
|
4
4
|
*/
|
|
@@ -92,7 +92,7 @@ export interface ISizeUsageGroupedAsA1 {
|
|
|
92
92
|
*/
|
|
93
93
|
heights: ISizeUsageRowAsA1[];
|
|
94
94
|
}
|
|
95
|
-
export declare const ISizeUsageAnalyzer: import(
|
|
95
|
+
export declare const ISizeUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<SizeUsageAnalyzer>;
|
|
96
96
|
/**
|
|
97
97
|
* Size usage analyzer - aggregates row heights and column widths
|
|
98
98
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
1
|
+
import type { ICellData, IRange, Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
2
2
|
import { CellUsageAnalyzer } from './cell-usage-analyzer.service';
|
|
3
3
|
/**
|
|
4
4
|
* Interface for style usage information
|
|
@@ -72,7 +72,7 @@ export interface IGetStyleUsagesOptions {
|
|
|
72
72
|
* Convert IStyleUsage to A1 format
|
|
73
73
|
*/
|
|
74
74
|
export declare function toA1(usage: IStyleUsage): IStyleUsageAsA1;
|
|
75
|
-
export declare const IStyleUsageAnalyzer: import(
|
|
75
|
+
export declare const IStyleUsageAnalyzer: import("@wendellhu/redi").IdentifierDecorator<StyleUsageAnalyzer>;
|
|
76
76
|
/**
|
|
77
77
|
* Style usage analyzer - based on generic CellUsageAnalyzer
|
|
78
78
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Injector
|
|
1
|
+
import type { Injector } from '@univerjs/core';
|
|
2
2
|
import { z } from '@univerjs-pro/mcp';
|
|
3
|
+
import { ICommandService } from '@univerjs/core';
|
|
3
4
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
4
5
|
/**
|
|
5
6
|
* Get UniverAPI instance from globalThis (temporary implementation)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
3
4
|
rule_id: z.ZodOptional<z.ZodString>;
|
|
4
5
|
range: z.ZodOptional<z.ZodString>;
|
|
@@ -10,18 +11,18 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
10
11
|
colorScale: "colorScale";
|
|
11
12
|
}>>;
|
|
12
13
|
min_type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
percent: "percent";
|
|
14
|
-
min: "min";
|
|
15
14
|
max: "max";
|
|
15
|
+
min: "min";
|
|
16
|
+
percent: "percent";
|
|
16
17
|
formula: "formula";
|
|
17
18
|
num: "num";
|
|
18
19
|
percentile: "percentile";
|
|
19
20
|
}>>;
|
|
20
21
|
min_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
21
22
|
max_type: z.ZodOptional<z.ZodEnum<{
|
|
22
|
-
percent: "percent";
|
|
23
|
-
min: "min";
|
|
24
23
|
max: "max";
|
|
24
|
+
min: "min";
|
|
25
|
+
percent: "percent";
|
|
25
26
|
formula: "formula";
|
|
26
27
|
num: "num";
|
|
27
28
|
percentile: "percentile";
|
|
@@ -37,9 +38,9 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
37
38
|
index: z.ZodNumber;
|
|
38
39
|
color: z.ZodString;
|
|
39
40
|
value_type: z.ZodEnum<{
|
|
40
|
-
percent: "percent";
|
|
41
|
-
min: "min";
|
|
42
41
|
max: "max";
|
|
42
|
+
min: "min";
|
|
43
|
+
percent: "percent";
|
|
43
44
|
formula: "formula";
|
|
44
45
|
num: "num";
|
|
45
46
|
percentile: "percentile";
|
|
@@ -49,12 +50,12 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
|
|
|
49
50
|
sub_type: z.ZodOptional<z.ZodEnum<{
|
|
50
51
|
number: "number";
|
|
51
52
|
text: "text";
|
|
52
|
-
formula: "formula";
|
|
53
53
|
uniqueValues: "uniqueValues";
|
|
54
54
|
duplicateValues: "duplicateValues";
|
|
55
55
|
rank: "rank";
|
|
56
56
|
timePeriod: "timePeriod";
|
|
57
57
|
average: "average";
|
|
58
|
+
formula: "formula";
|
|
58
59
|
}>>;
|
|
59
60
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
60
61
|
endsWith: "endsWith";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
import { DataValidationOperator } from '@univerjs/core';
|
|
3
4
|
export declare const dataValidationRuleSchema: z.ZodObject<{
|
|
4
5
|
rule_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
-
import { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
1
|
+
import type { ISheetFormulaError } from '@univerjs/engine-formula';
|
|
2
|
+
import type { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
|
|
3
3
|
/**
|
|
4
4
|
* Get lint errors from formula errors and data validation errors
|
|
5
5
|
* @returns YAML formatted error report
|
|
@@ -7,4 +7,4 @@ export { rangeOperationTools } from './range-operations';
|
|
|
7
7
|
export { rowColumnOperationTools } from './row-column-operations';
|
|
8
8
|
export { sheetManagementTools } from './sheet-management';
|
|
9
9
|
export { utilityTools } from './utility-tools';
|
|
10
|
-
export declare const allSheetTools: import(
|
|
10
|
+
export declare const allSheetTools: import("@univerjs-pro/mcp").IMCPTool[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const batchRangeDataItemSchema: z.ZodObject<{
|
|
3
4
|
range: z.ZodString;
|
|
4
5
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const insertRowOperationSchema: z.ZodObject<{
|
|
3
4
|
position: z.ZodNumber;
|
|
4
5
|
how_many: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStyleBase } from '@univerjs/core';
|
|
1
|
+
import type { IStyleBase } from '@univerjs/core';
|
|
2
2
|
/**
|
|
3
3
|
* Generate a unique hash for a style object based on specified properties
|
|
4
4
|
* Only considers: fontSize(fs), italic(it), bold(bl), background(bg.rgb), color(cl.rgb), numberFormat(n.pattern)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IMCPTool
|
|
1
|
+
import type { IMCPTool } from '@univerjs-pro/mcp';
|
|
2
|
+
import { z } from '@univerjs-pro/mcp';
|
|
2
3
|
export declare const cellDimensionRequestSchema: z.ZodObject<{
|
|
3
4
|
range: z.ZodString;
|
|
4
5
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4538(_0x1aa017,_0x5aa433){_0x1aa017=_0x1aa017-0x1d7;const _0xdba73a=_0xdba7();let _0x453880=_0xdba73a[_0x1aa017];return _0x453880;}(function(_0x58673a,_0x58286b){const _0x48d975=_0x4538,_0x156de0=_0x58673a();while(!![]){try{const _0x1971de=-parseInt(_0x48d975(0x22d))/0x1*(-parseInt(_0x48d975(0x232))/0x2)+-parseInt(_0x48d975(0x1fd))/0x3*(parseInt(_0x48d975(0x20d))/0x4)+-parseInt(_0x48d975(0x200))/0x5+parseInt(_0x48d975(0x228))/0x6+-parseInt(_0x48d975(0x1e4))/0x7+-parseInt(_0x48d975(0x222))/0x8+-parseInt(_0x48d975(0x220))/0x9*(-parseInt(_0x48d975(0x236))/0xa);if(_0x1971de===_0x58286b)break;else _0x156de0['push'](_0x156de0['shift']());}catch(_0x2ab8ab){_0x156de0['push'](_0x156de0['shift']());}}}(_0xdba7,0xc5109),function(_0xd42b7e,_0x5c9386){const _0xc1eec5=_0x4538;typeof exports==_0xc1eec5(0x215)&&typeof module<'u'?_0x5c9386(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs/engine-formula'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define=='function'&&define[_0xc1eec5(0x202)]?define([_0xc1eec5(0x242),_0xc1eec5(0x1db),_0xc1eec5(0x23c),'@univerjs/sheets/facade',_0xc1eec5(0x23d),_0xc1eec5(0x21b),_0xc1eec5(0x20a)],_0x5c9386):(_0xd42b7e=typeof globalThis<'u'?globalThis:_0xd42b7e||self,_0x5c9386(_0xd42b7e[_0xc1eec5(0x1fc)],_0xd42b7e[_0xc1eec5(0x22a)],_0xd42b7e[_0xc1eec5(0x1d9)],_0xd42b7e[_0xc1eec5(0x208)],_0xd42b7e['UniverEngineFormula'],_0xd42b7e[_0xc1eec5(0x23f)],_0xd42b7e[_0xc1eec5(0x205)]));}(this,function(_0x439237,_0x289ba7,_0x2d6d16,_0x4b9cb6,_0x2c434c,_0x1407b1,_0x84937a){'use strict';const _0x3de5f2=_0x4538;class _0x3b1358 extends _0x439237['FUniver']{async[_0x3de5f2(0x1e6)](){const _0x2ce1e4=_0x3de5f2;return this['getActiveWorkbook']()[_0x2ce1e4(0x1e6)]();}}_0x439237[_0x3de5f2(0x22c)][_0x3de5f2(0x21a)](_0x3b1358);class _0x59b75c extends _0x4b9cb6[_0x3de5f2(0x1f6)]{[_0x3de5f2(0x20f)](){const _0x379bbf=_0x3de5f2;Object[_0x379bbf(0x212)](this,'_formulaDataModel',{'get'(){const _0x15fc53=_0x379bbf;return this['_injector'][_0x15fc53(0x241)](_0x2c434c[_0x15fc53(0x206)]);}});}[_0x3de5f2(0x23b)](_0x4305f3,_0x54cba2={}){const _0x5e44fc=_0x3de5f2,{caseSensitive:_0x3d42d4=!0x1,matchEntireCell:_0x4c95c9=!0x1,specificRanges:_0x3a9c56,specificTypes:_0x39342b,searchMultipleTextsCondition:_0xa7eb83='OR'}=_0x54cba2;let _0x3f560f=(Array[_0x5e44fc(0x219)](_0x4305f3)?_0x4305f3:[_0x4305f3])[_0x5e44fc(0x207)](_0x4e1605=>_0x4e1605[_0x5e44fc(0x1fb)]())[_0x5e44fc(0x23a)](_0x253c1e=>_0x253c1e);if(_0x3d42d4||(_0x3f560f=_0x3f560f[_0x5e44fc(0x207)](_0x482dd8=>_0x482dd8[_0x5e44fc(0x216)]())),_0x3f560f[_0x5e44fc(0x204)]===0x0)return[];const _0x13cc3c={'caseSensitive':_0x3d42d4,'matchEntireCell':_0x4c95c9,'searchMultipleTextsCondition':_0xa7eb83,'isSearchByRawValue':!_0x39342b||_0x39342b[_0x5e44fc(0x214)](_0x5e44fc(0x1e5)),'isSearchByDisplayValue':!_0x39342b||_0x39342b['includes'](_0x5e44fc(0x1d8)),'isSearchByFormula':!_0x39342b||_0x39342b['includes'](_0x5e44fc(0x22e))},_0x50bdb3=this[_0x5e44fc(0x20b)](),_0x2d506f=[];if(_0x3a9c56)for(const {sheetId:_0x1f8ef6,ranges:_0x3daecc}of _0x3a9c56){const _0x385acc=_0x50bdb3[_0x5e44fc(0x240)](_0x1f8ef6);if(!_0x385acc){console[_0x5e44fc(0x21c)](_0x5e44fc(0x235)+_0x1f8ef6+_0x5e44fc(0x1f2));continue;}const _0x629c9c=_0x385acc[_0x5e44fc(0x23e)]();if(_0x3daecc&&_0x3daecc[_0x5e44fc(0x204)]>0x0){for(const _0x5ac441 of _0x3daecc)for(let _0xfb11fd=_0x5ac441['startRow'];_0xfb11fd<=_0x5ac441[_0x5e44fc(0x230)];_0xfb11fd++)for(let _0x5ab010=_0x5ac441[_0x5e44fc(0x233)];_0x5ab010<=_0x5ac441[_0x5e44fc(0x1dd)];_0x5ab010++){const _0x3b7272=_0x629c9c[_0x5e44fc(0x1e9)](_0xfb11fd,_0x5ab010);if(!_0x3b7272)continue;const _0x1ea8f0=this[_0x5e44fc(0x226)](_0x3b7272,_0x3f560f,{..._0x13cc3c,'worksheet':_0x385acc,'row':_0xfb11fd,'col':_0x5ab010});_0x1ea8f0&&_0x2d506f[_0x5e44fc(0x227)]({..._0x1ea8f0,'sheetId':_0x385acc[_0x5e44fc(0x1f5)]()});}}else _0x629c9c[_0x5e44fc(0x203)]((_0x315363,_0x12fbad,_0x44be80)=>{const _0xfd08e8=_0x5e44fc;if(_0x44be80){const _0x3c422f=this['_cellMatchesSearch'](_0x44be80,_0x3f560f,{..._0x13cc3c,'worksheet':_0x385acc,'row':_0x315363,'col':_0x12fbad});_0x3c422f&&_0x2d506f[_0xfd08e8(0x227)]({..._0x3c422f,'sheetId':_0x385acc['getSheetId']()});}});}else{const _0x40619d=_0x50bdb3[_0x5e44fc(0x243)]();for(const _0x39d548 of _0x40619d)_0x39d548[_0x5e44fc(0x23e)]()[_0x5e44fc(0x203)]((_0x974d45,_0x4cc7ae,_0x2d9882)=>{const _0x1f842b=_0x5e44fc;if(_0x2d9882){const _0x516519=this['_cellMatchesSearch'](_0x2d9882,_0x3f560f,{..._0x13cc3c,'worksheet':_0x39d548,'row':_0x974d45,'col':_0x4cc7ae});_0x516519&&_0x2d506f[_0x1f842b(0x227)]({..._0x516519,'sheetId':_0x39d548[_0x1f842b(0x1f5)]()});}});}return _0x2d506f;}[_0x3de5f2(0x226)](_0x27b3cc,_0x1f3674,_0x2649f2){const _0x3057d7=_0x3de5f2;var _0x3ce411,_0x16306f,_0x119125,_0x529cd4,_0xa12a80;const {caseSensitive:_0x2b0a07,matchEntireCell:_0x23ee0e,searchMultipleTextsCondition:_0x3f99a2,isSearchByRawValue:_0xfbf5b6,isSearchByDisplayValue:_0x1b191b,isSearchByFormula:_0x5ccbfe,worksheet:_0x16091e,row:_0x406b96,col:_0x2df105}=_0x2649f2;if(_0xfbf5b6){const _0x522b06=((_0x16306f=(_0x3ce411=_0x27b3cc['p'])==null?void 0x0:_0x3ce411[_0x3057d7(0x21f)])==null?void 0x0:_0x16306f['dataStream'])||_0x27b3cc['v'];if(_0x522b06){const _0x3e5b92=_0x2b0a07?_0x522b06[_0x3057d7(0x1f9)]():_0x522b06[_0x3057d7(0x1f9)]()[_0x3057d7(0x216)]();if(this[_0x3057d7(0x1f7)](_0x3e5b92,_0x1f3674,_0x23ee0e,_0x3f99a2))return{'row':_0x406b96,'col':_0x2df105,'reference':_0x2c434c[_0x3057d7(0x1e0)](_0x16091e['getName'](),{'startRow':_0x406b96,'endRow':_0x406b96,'startColumn':_0x2df105,'endColumn':_0x2df105}),'cellData':{..._0x27b3cc,'rawValue':_0x522b06}};}}if(_0x5ccbfe&&(_0x27b3cc['f']||_0x27b3cc['si'])){const _0x4fd9f4=this[_0x3057d7(0x238)]['getFormulaStringByCell'](_0x406b96,_0x2df105,_0x16091e[_0x3057d7(0x1f5)](),this[_0x3057d7(0x20b)]()[_0x3057d7(0x1d7)]());if(_0x4fd9f4){const _0x6451d4=_0x2b0a07?_0x4fd9f4:_0x4fd9f4[_0x3057d7(0x216)]();if(this['_isMatch'](_0x6451d4,_0x1f3674,_0x23ee0e,_0x3f99a2))return{'row':_0x406b96,'col':_0x2df105,'reference':_0x2c434c[_0x3057d7(0x1e0)](_0x16091e[_0x3057d7(0x1ec)](),{'startRow':_0x406b96,'endRow':_0x406b96,'startColumn':_0x2df105,'endColumn':_0x2df105}),'cellData':{..._0x27b3cc,'formulaString':_0x4fd9f4}};}}if(_0x1b191b){let _0x5564f9=(_0x529cd4=(_0x119125=_0x27b3cc['p'])==null?void 0x0:_0x119125[_0x3057d7(0x21f)])==null?void 0x0:_0x529cd4[_0x3057d7(0x234)];if(_0x5564f9||(_0x5564f9=(_0xa12a80=_0x16091e[_0x3057d7(0x217)](_0x406b96,_0x2df105))==null?void 0x0:_0xa12a80['v']),_0x5564f9){const _0xd54a32=_0x2b0a07?_0x5564f9[_0x3057d7(0x1f9)]():_0x5564f9[_0x3057d7(0x1f9)]()[_0x3057d7(0x216)]();if(this[_0x3057d7(0x1f7)](_0xd54a32,_0x1f3674,_0x23ee0e,_0x3f99a2))return{'row':_0x406b96,'col':_0x2df105,'reference':_0x2c434c[_0x3057d7(0x1e0)](_0x16091e[_0x3057d7(0x1ec)](),{'startRow':_0x406b96,'endRow':_0x406b96,'startColumn':_0x2df105,'endColumn':_0x2df105}),'cellData':{..._0x27b3cc,'displayValue':_0x5564f9[_0x3057d7(0x1f9)]()}};}}return!0x1;}[_0x3de5f2(0x1f7)](_0x10d0ee,_0x4865c5,_0x400c3b,_0x3feeaa){const _0x59ab2b=_0x3de5f2;return _0x4865c5[_0x59ab2b(0x204)]>0x1&&_0x3feeaa===_0x59ab2b(0x221)?_0x4865c5[_0x59ab2b(0x1f8)](_0x2da730=>_0x400c3b?_0x10d0ee===_0x2da730:_0x10d0ee[_0x59ab2b(0x1ea)](_0x2da730)>-0x1):_0x4865c5[_0x59ab2b(0x1e1)](_0x31173b=>_0x400c3b?_0x10d0ee===_0x31173b:_0x10d0ee[_0x59ab2b(0x1ea)](_0x31173b)>-0x1);}}_0x4b9cb6['FWorkbook'][_0x3de5f2(0x21a)](_0x59b75c);class _0x2ef2fe extends _0x4b9cb6[_0x3de5f2(0x1f6)]{async[_0x3de5f2(0x1e6)](){const _0x243c83=_0x3de5f2,_0xf02c2d=this[_0x243c83(0x1de)](),_0x2e4686=await this[_0x243c83(0x1ff)]();return{'formulaErrors':_0xf02c2d,'dataValidationErrors':_0x2e4686};}}_0x4b9cb6[_0x3de5f2(0x1f6)][_0x3de5f2(0x21a)](_0x2ef2fe);class _0xcf190c extends _0x4b9cb6[_0x3de5f2(0x1df)]{async[_0x3de5f2(0x1f1)](){const _0x40651f=_0x3de5f2,_0x501379=this[_0x40651f(0x210)][_0x40651f(0x241)](_0x1407b1[_0x40651f(0x237)]),_0x2fa371=this[_0x40651f(0x209)](0x0,0x0,this[_0x40651f(0x1fe)](),this[_0x40651f(0x223)]())[_0x40651f(0x1da)]();return await _0x501379[_0x40651f(0x1e2)](_0x2fa371);}async[_0x3de5f2(0x21e)](){const _0x35119d=_0x3de5f2;return(await this['getFormulaUsages']())[_0x35119d(0x207)](_0x1407b1[_0x35119d(0x218)]);}[_0x3de5f2(0x211)](_0x5ccdd3){const _0x39494b=_0x3de5f2,_0x3005cc=this['_injector']['get'](_0x1407b1[_0x39494b(0x1f3)]),_0x42c852=this[_0x39494b(0x209)](0x0,0x0,this[_0x39494b(0x1fe)](),this[_0x39494b(0x223)]())[_0x39494b(0x1da)]();return _0x3005cc[_0x39494b(0x20e)](_0x5ccdd3),_0x3005cc[_0x39494b(0x239)](_0x42c852,this[_0x39494b(0x1fa)],this['_worksheet']);}[_0x3de5f2(0x1ef)](_0x337cce){const _0x3c7a35=_0x3de5f2;return this[_0x3c7a35(0x211)](_0x337cce)[_0x3c7a35(0x207)](_0x1407b1[_0x3c7a35(0x1ee)]);}['getSizeUsages'](_0x2b460e){const _0x5838bb=_0x3de5f2,_0x31d165=this[_0x5838bb(0x210)][_0x5838bb(0x241)](_0x1407b1[_0x5838bb(0x1f4)]);return _0x31d165['updateConfig'](_0x2b460e),_0x31d165['getAllSizeUsages'](this[_0x5838bb(0x21d)]);}['getSizeUsagesAsA1'](_0x965109){const _0x2948b0=_0x3de5f2,_0x4856af=this['_injector'][_0x2948b0(0x241)](_0x1407b1['ISizeUsageAnalyzer']);_0x4856af[_0x2948b0(0x20e)](_0x965109);const _0xcb52de=_0x4856af[_0x2948b0(0x1eb)](this[_0x2948b0(0x21d)]);return _0x4856af[_0x2948b0(0x231)](_0xcb52de);}}_0x4b9cb6[_0x3de5f2(0x1df)][_0x3de5f2(0x21a)](_0xcf190c);class _0x742f12 extends _0x4b9cb6['FRange']{['_collectRectAreaData'](_0x2a22ec){const _0x138ee9=_0x3de5f2;var _0x40d827;const _0x5dbc0d=(_0x40d827=_0x2a22ec==null?void 0x0:_0x2a22ec[_0x138ee9(0x20c)])!=null?_0x40d827:!0x0,_0x84e3c4=this['getRange'](),_0x5718e9=this[_0x138ee9(0x21d)]['getRowManager'](),_0x57dccd=this[_0x138ee9(0x21d)][_0x138ee9(0x225)](),_0x2d136a={};let _0x21a737=0x0;for(let _0x1e34f3=_0x84e3c4[_0x138ee9(0x22f)];_0x1e34f3<=_0x84e3c4[_0x138ee9(0x230)];_0x1e34f3++){const _0x10c9b2=_0x5718e9[_0x138ee9(0x213)](_0x1e34f3),_0x2fc7a6=!_0x5dbc0d||this['_worksheet'][_0x138ee9(0x1ed)](_0x1e34f3)?_0x10c9b2:0x0;_0x21a737+=_0x2fc7a6,_0x2d136a[_0x1e34f3]={'h':_0x2fc7a6};}const _0x6cd822={};let _0x1a8b6a=0x0;for(let _0x1f434d=_0x84e3c4['startColumn'];_0x1f434d<=_0x84e3c4['endColumn'];_0x1f434d++){const _0x539a64=_0x57dccd[_0x138ee9(0x1e8)](_0x1f434d),_0x466bf5=!_0x5dbc0d||this['_worksheet'][_0x138ee9(0x201)](_0x1f434d)?_0x539a64:0x0;_0x1a8b6a+=_0x466bf5,_0x6cd822[_0x1f434d]={'w':_0x466bf5};}return{'w':_0x1a8b6a,'h':_0x21a737,'rowData':_0x2d136a,'columnData':_0x6cd822};}async[_0x3de5f2(0x1f1)](){const _0xb62ab0=_0x3de5f2,_0x46eb14=this[_0xb62ab0(0x210)][_0xb62ab0(0x241)](_0x1407b1['IFormulaUsageAnalyzer']),_0x3fda37=(({startRow:_0x15a2bc,endRow:_0x1e2674,startColumn:_0xe1214e,endColumn:_0x10232d})=>{const _0x2b6c09=_0xb62ab0,_0x43c76d=[];for(let _0x119eb7=_0x15a2bc;_0x119eb7<=_0x1e2674;_0x119eb7++){const _0x2796f7=[];for(let _0x29222d=_0xe1214e;_0x29222d<=_0x10232d;_0x29222d++)_0x2796f7['push'](this[_0x2b6c09(0x21d)][_0x2b6c09(0x1f0)](_0x119eb7,_0x29222d));_0x43c76d[_0x2b6c09(0x227)](_0x2796f7);}return _0x43c76d;})({'startRow':0x0,'endRow':this[_0xb62ab0(0x21d)][_0xb62ab0(0x1fe)](),'startColumn':0x0,'endColumn':this[_0xb62ab0(0x21d)][_0xb62ab0(0x223)]()}),_0x2f7a7b=await _0x46eb14[_0xb62ab0(0x1e2)](_0x3fda37),_0x412f5e=this[_0xb62ab0(0x209)](),_0x26d72a=[];for(let _0x3e7f35=0x0;_0x3e7f35<_0x2f7a7b[_0xb62ab0(0x204)];_0x3e7f35++){const _0x586cb2=_0x2f7a7b[_0x3e7f35],_0x4c90c2=_0x586cb2[_0xb62ab0(0x1e7)],_0xebbe0=[];for(let _0x5d0662=0x0;_0x5d0662<_0x4c90c2[_0xb62ab0(0x204)];_0x5d0662++){const _0x29aa74=_0x4c90c2[_0x5d0662],_0x325b0d=_0x84937a[_0xb62ab0(0x1dc)](_0x29aa74,_0x412f5e);_0x325b0d&&_0xebbe0[_0xb62ab0(0x227)](_0x325b0d);}if(_0xebbe0[_0xb62ab0(0x204)]>0x0){if(_0x586cb2[_0xb62ab0(0x1e7)]=_0xebbe0,!(_0x586cb2['firstOccurrence'][_0xb62ab0(0x22f)]>=_0x412f5e[_0xb62ab0(0x22f)]&&_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x22f)]<=_0x412f5e[_0xb62ab0(0x230)]&&_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x233)]>=_0x412f5e[_0xb62ab0(0x233)]&&_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x233)]<=_0x412f5e[_0xb62ab0(0x1dd)])){const _0x39291c=_0xebbe0[0x0],_0x442961=_0x39291c[_0xb62ab0(0x22f)]-_0x586cb2[_0xb62ab0(0x1e3)]['startRow'],_0x11f66b=_0x39291c['startColumn']-_0x586cb2[_0xb62ab0(0x1e3)][_0xb62ab0(0x233)];_0x586cb2[_0xb62ab0(0x22e)]=await _0x46eb14[_0xb62ab0(0x229)](_0x586cb2[_0xb62ab0(0x22e)],_0x11f66b,_0x442961),_0x586cb2['firstOccurrence']={'startRow':_0x39291c[_0xb62ab0(0x22f)],'endRow':_0x39291c['startRow'],'startColumn':_0x39291c[_0xb62ab0(0x233)],'endColumn':_0x39291c[_0xb62ab0(0x233)]};}_0x26d72a[_0xb62ab0(0x227)](_0x586cb2);}}return _0x26d72a;}async[_0x3de5f2(0x21e)](){const _0x46c56b=_0x3de5f2;return(await this['getFormulaUsages']())[_0x46c56b(0x207)](_0x1407b1['formulaToA1']);}[_0x3de5f2(0x211)](_0x45d29d){const _0x50bf08=_0x3de5f2,_0x339150=this[_0x50bf08(0x210)][_0x50bf08(0x241)](_0x1407b1['IStyleUsageAnalyzer']),_0x12ca24=(({startRow:_0x26b558,endRow:_0x45c4ba,startColumn:_0x6ee332,endColumn:_0x26f57d})=>{const _0x826634=_0x50bf08,_0x24d87f=[];for(let _0x255399=_0x26b558;_0x255399<=_0x45c4ba;_0x255399++){const _0x36579a=[];for(let _0xbec555=_0x6ee332;_0xbec555<=_0x26f57d;_0xbec555++)_0x36579a[_0x826634(0x227)](this[_0x826634(0x21d)][_0x826634(0x1f0)](_0x255399,_0xbec555));_0x24d87f[_0x826634(0x227)](_0x36579a);}return _0x24d87f;})({'startRow':0x0,'endRow':this[_0x50bf08(0x21d)][_0x50bf08(0x1fe)](),'startColumn':0x0,'endColumn':this[_0x50bf08(0x21d)][_0x50bf08(0x223)]()});_0x339150[_0x50bf08(0x20e)](_0x45d29d);const _0x25f44e=_0x339150[_0x50bf08(0x239)](_0x12ca24,this['_workbook'],this[_0x50bf08(0x21d)]),_0x3475bc=this[_0x50bf08(0x209)](),_0x1db352=[];for(let _0x507fa5=0x0;_0x507fa5<_0x25f44e[_0x50bf08(0x204)];_0x507fa5++){const _0xf3a264=_0x25f44e[_0x507fa5],_0xd7ceec=_0xf3a264['filledRanges'],_0x24df65=[];for(let _0x57d132=0x0;_0x57d132<_0xd7ceec[_0x50bf08(0x204)];_0x57d132++){const _0x49d4b7=_0xd7ceec[_0x57d132],_0x462fed=_0x84937a[_0x50bf08(0x1dc)](_0x49d4b7,_0x3475bc);_0x462fed&&_0x24df65['push'](_0x462fed);}_0x24df65['length']>0x0&&(_0xf3a264[_0x50bf08(0x1e7)]=_0x24df65,_0x1db352['push'](_0xf3a264));}return _0x1db352;}[_0x3de5f2(0x1ef)](_0x211acc){const _0x61a4ce=_0x3de5f2;return this[_0x61a4ce(0x211)](_0x211acc)[_0x61a4ce(0x207)](_0x1407b1['styleToA1']);}[_0x3de5f2(0x224)](_0x2f9a06){const _0x15c603=_0x3de5f2,_0x4f461b=this[_0x15c603(0x210)]['get'](_0x1407b1['ISizeUsageAnalyzer']),_0x35a9d8=this[_0x15c603(0x209)]();return _0x4f461b[_0x15c603(0x20e)](_0x2f9a06),_0x4f461b[_0x15c603(0x1eb)](this[_0x15c603(0x21d)],_0x35a9d8[_0x15c603(0x22f)],_0x35a9d8['endRow'],_0x35a9d8[_0x15c603(0x233)],_0x35a9d8[_0x15c603(0x1dd)]);}['getSizeUsagesAsA1'](_0x2090ce){const _0x45ff6a=_0x3de5f2,_0x123123=this[_0x45ff6a(0x224)](_0x2090ce);return this[_0x45ff6a(0x210)][_0x45ff6a(0x241)](_0x1407b1[_0x45ff6a(0x1f4)])[_0x45ff6a(0x231)](_0x123123);}['getRectArea'](_0xdccc0d){const _0x51584b=this['_collectRectAreaData'](_0xdccc0d);return{'w':_0x51584b['w'],'h':_0x51584b['h']};}['getRectAreaData'](_0x2b8641){return this['_collectRectAreaData'](_0x2b8641);}}_0x4b9cb6[_0x3de5f2(0x22b)][_0x3de5f2(0x21a)](_0x742f12);}));function _0xdba7(){const _0xf58fb2=['displayValue','UniverSheetsDataValidationFacade','getCellDataGrid','@univerjs/sheets-formula/facade','getIntersectRange','endColumn','getAllFormulaError','FWorksheet','serializeRangeWithSheet','some','getAllFormulaUsages','firstOccurrence','4745216HfQGOx','rawValue','getLintErrors','filledRanges','getColumnWidth','getValue','indexOf','getAllSizeUsages','getName','getRowVisible','styleToA1','getStyleUsagesAsA1','getCellRaw','getFormulaUsages','\x20not\x20found.\x20Skipping.','IStyleUsageAnalyzer','ISizeUsageAnalyzer','getSheetId','FWorkbook','_isMatch','every','toString','_workbook','trim','UniverCoreFacade','5325UvgVNs','getMaxRows','getAllDataValidationErrorAsync','3614375DbXLSj','getColVisible','amd','forValue','length','UniverCore','FormulaDataModel','map','UniverSheetsFacade','getRange','@univerjs/core','getWorkbook','visibleOnly','1096cCmBpf','updateConfig','_initialize','_injector','getStyleUsages','defineProperty','getRowHeight','includes','object','toLowerCase','getCell','formulaToA1','isArray','extend','@univerjs-pro/sheets-mcp','warn','_worksheet','getFormulaUsagesAsA1','body','2457MOQViV','AND','4220096LMgpTu','getMaxColumns','getSizeUsages','getColumnManager','_cellMatchesSearch','push','4051788qfeeCd','moveFormulaRefOffset','UniverSheetsFormulaFacade','FRange','FUniver','1RGZuIT','formula','startRow','endRow','toA1','1368196VIbzid','startColumn','dataStream','Sheet\x20with\x20ID\x20','68220LLFRxA','IFormulaUsageAnalyzer','_formulaDataModel','getAllStyleUsages','filter','searchCells','@univerjs/sheets-data-validation/facade','@univerjs/engine-formula','getCellMatrix','UniverProSheetsMcp','getSheetBySheetId','get','@univerjs/core/facade','getSheets','getUnitId'];_0xdba7=function(){return _0xf58fb2;};return _0xdba7();}
|
|
1
|
+
function _0x2b18(_0x2fc54b,_0x35df6b){_0x2fc54b=_0x2fc54b-0x192;const _0xc6f886=_0xc6f8();let _0x2b185d=_0xc6f886[_0x2fc54b];return _0x2b185d;}function _0xc6f8(){const _0x3be9ad=['length','startRow','ISizeUsageAnalyzer','2430321KgkkwJ','1746OnlrOr','dataStream','getSheetBySheetId','searchCells','getCellMatrix','firstOccurrence','getSheetId','filledRanges','55cpScKh','getLintErrors','push','getRectArea','getCell','trim','serializeRangeWithSheet','getValue','@univerjs-pro/sheets-mcp','_isMatch','IFormulaUsageAnalyzer','getColumnManager','940048wFJJiR','@univerjs/sheets-data-validation/facade','getRowHeight','displayValue','toA1','getAllFormulaError','getFormulaStringByCell','warn','getName','UniverSheetsFormulaFacade','getSheets','startColumn','getSizeUsagesAsA1','forValue','_workbook','styleToA1','4016090nYuIsz','moveFormulaRefOffset','getCellDataGrid','toString','FWorkbook','getAllFormulaUsages','body','updateConfig','getAllSizeUsages','indexOf','@univerjs/sheets-formula/facade','getMaxColumns','every','endColumn','FUniver','getFormulaUsagesAsA1','rawValue','_collectRectAreaData','extend','UniverProSheetsMcp','getStyleUsages','function','_worksheet','9AOgRhB','toLowerCase','UniverSheetsFacade','_formulaDataModel','defineProperty','FRange','Sheet\x20with\x20ID\x20','_injector','IStyleUsageAnalyzer','includes','4325ddVOKi','map','getActiveWorkbook','getWorkbook','getCellRaw','some','UniverSheetsDataValidationFacade','18768vPaYfd','getRange','endRow','UniverCore','FormulaDataModel','object','formulaToA1','@univerjs/core/facade','AND','285040tVPnNv','getFormulaUsages','_initialize','_cellMatchesSearch','getSizeUsages','getIntersectRange','get','formula','getStyleUsagesAsA1','getMaxRows','amd','getAllStyleUsages','8662241lbFbBh','52njUwSF','filter','getUnitId','\x20not\x20found.\x20Skipping.'];_0xc6f8=function(){return _0x3be9ad;};return _0xc6f8();}(function(_0x1be70a,_0x3a089a){const _0x2d3865=_0x2b18,_0x46f37b=_0x1be70a();while(!![]){try{const _0x33da5b=-parseInt(_0x2d3865(0x1f6))/0x1*(parseInt(_0x2d3865(0x1a2))/0x2)+parseInt(_0x2d3865(0x1a9))/0x3+-parseInt(_0x2d3865(0x195))/0x4+parseInt(_0x2d3865(0x1ef))/0x5*(-parseInt(_0x2d3865(0x1aa))/0x6)+-parseInt(_0x2d3865(0x1a1))/0x7+-parseInt(_0x2d3865(0x1be))/0x8*(parseInt(_0x2d3865(0x1e5))/0x9)+parseInt(_0x2d3865(0x1ce))/0xa*(parseInt(_0x2d3865(0x1b2))/0xb);if(_0x33da5b===_0x3a089a)break;else _0x46f37b['push'](_0x46f37b['shift']());}catch(_0x28969e){_0x46f37b['push'](_0x46f37b['shift']());}}}(_0xc6f8,0x9f3d0),function(_0x3b2284,_0x14e405){const _0x2af385=_0x2b18;typeof exports==_0x2af385(0x1fb)&&typeof module<'u'?_0x14e405(require(`@univerjs/core/facade`),require(`@univerjs/sheets-formula/facade`),require(`@univerjs/sheets-data-validation/facade`),require(`@univerjs/sheets/facade`),require(`@univerjs/engine-formula`),require(`@univerjs-pro/sheets-mcp`),require(`@univerjs/core`)):typeof define==_0x2af385(0x1e3)&&define[_0x2af385(0x19f)]?define([_0x2af385(0x193),_0x2af385(0x1d8),_0x2af385(0x1bf),'@univerjs/sheets/facade','@univerjs/engine-formula',_0x2af385(0x1ba),'@univerjs/core'],_0x14e405):(_0x3b2284=typeof globalThis<'u'?globalThis:_0x3b2284||self,_0x14e405(_0x3b2284['UniverCoreFacade'],_0x3b2284[_0x2af385(0x1c7)],_0x3b2284[_0x2af385(0x1f5)],_0x3b2284[_0x2af385(0x1e7)],_0x3b2284['UniverEngineFormula'],_0x3b2284[_0x2af385(0x1e1)],_0x3b2284[_0x2af385(0x1f9)]));}(this,function(_0x1c646b,_0x22a69b,_0x13b7b1,_0x4b8e7a,_0x36ddf6,_0x49b297,_0x7003a4){const _0x377309=_0x2b18;var _0x3564c6=class extends _0x1c646b[_0x377309(0x1dc)]{async[_0x377309(0x1b3)](){const _0x13c588=_0x377309;return this[_0x13c588(0x1f1)]()['getLintErrors']();}};_0x1c646b['FUniver'][_0x377309(0x1e0)](_0x3564c6);var _0x17242f=class extends _0x4b8e7a['FWorkbook']{[_0x377309(0x197)](){const _0x1609a9=_0x377309;Object[_0x1609a9(0x1e9)](this,_0x1609a9(0x1e8),{'get'(){const _0x18ca35=_0x1609a9;return this[_0x18ca35(0x1ec)]['get'](_0x36ddf6[_0x18ca35(0x1fa)]);}});}[_0x377309(0x1ad)](_0x2489c1,_0x2f7369={}){const _0x2b9262=_0x377309;let {caseSensitive:_0x5a6228=!0x1,matchEntireCell:_0x34f28a=!0x1,specificRanges:_0x23952f,specificTypes:_0x56f507,searchMultipleTextsCondition:_0x334853='OR'}=_0x2f7369,_0x598f3e=(Array['isArray'](_0x2489c1)?_0x2489c1:[_0x2489c1])[_0x2b9262(0x1f0)](_0x295571=>_0x295571[_0x2b9262(0x1b7)]())[_0x2b9262(0x1a3)](_0x5d02e7=>_0x5d02e7);if(_0x5a6228||(_0x598f3e=_0x598f3e[_0x2b9262(0x1f0)](_0x11fe35=>_0x11fe35[_0x2b9262(0x1e6)]())),_0x598f3e[_0x2b9262(0x1a6)]===0x0)return[];let _0x231cb8={'caseSensitive':_0x5a6228,'matchEntireCell':_0x34f28a,'searchMultipleTextsCondition':_0x334853,'isSearchByRawValue':!_0x56f507||_0x56f507['includes'](_0x2b9262(0x1de)),'isSearchByDisplayValue':!_0x56f507||_0x56f507['includes'](_0x2b9262(0x1c1)),'isSearchByFormula':!_0x56f507||_0x56f507[_0x2b9262(0x1ee)](_0x2b9262(0x19c))},_0x16bebc=this[_0x2b9262(0x1f2)](),_0x55568c=[];if(_0x23952f)for(let {sheetId:_0xe66412,ranges:_0x30a7f5}of _0x23952f){let _0x25cc5b=_0x16bebc[_0x2b9262(0x1ac)](_0xe66412);if(!_0x25cc5b){console[_0x2b9262(0x1c5)](_0x2b9262(0x1eb)+_0xe66412+_0x2b9262(0x1a5));continue;}let _0x106692=_0x25cc5b[_0x2b9262(0x1ae)]();if(_0x30a7f5&&_0x30a7f5[_0x2b9262(0x1a6)]>0x0){for(let _0x1b75ac of _0x30a7f5)for(let _0x393814=_0x1b75ac[_0x2b9262(0x1a7)];_0x393814<=_0x1b75ac[_0x2b9262(0x1f8)];_0x393814++)for(let _0x5e08f6=_0x1b75ac[_0x2b9262(0x1c9)];_0x5e08f6<=_0x1b75ac[_0x2b9262(0x1db)];_0x5e08f6++){let _0x2da115=_0x106692[_0x2b9262(0x1b9)](_0x393814,_0x5e08f6);if(!_0x2da115)continue;let _0x19711c=this[_0x2b9262(0x198)](_0x2da115,_0x598f3e,{..._0x231cb8,'worksheet':_0x25cc5b,'row':_0x393814,'col':_0x5e08f6});_0x19711c&&_0x55568c[_0x2b9262(0x1b4)]({..._0x19711c,'sheetId':_0x25cc5b[_0x2b9262(0x1b0)]()});}}else _0x106692['forValue']((_0x31736a,_0xe317e9,_0x5f5355)=>{const _0x4c80ba=_0x2b9262;if(_0x5f5355){let _0x473ea3=this[_0x4c80ba(0x198)](_0x5f5355,_0x598f3e,{..._0x231cb8,'worksheet':_0x25cc5b,'row':_0x31736a,'col':_0xe317e9});_0x473ea3&&_0x55568c['push']({..._0x473ea3,'sheetId':_0x25cc5b['getSheetId']()});}});}else{let _0x1cd278=_0x16bebc[_0x2b9262(0x1c8)]();for(let _0x16da06 of _0x1cd278)_0x16da06[_0x2b9262(0x1ae)]()[_0x2b9262(0x1cb)]((_0x9f3464,_0x5df3b1,_0x2890aa)=>{const _0x5c217f=_0x2b9262;if(_0x2890aa){let _0x243982=this[_0x5c217f(0x198)](_0x2890aa,_0x598f3e,{..._0x231cb8,'worksheet':_0x16da06,'row':_0x9f3464,'col':_0x5df3b1});_0x243982&&_0x55568c['push']({..._0x243982,'sheetId':_0x16da06['getSheetId']()});}});}return _0x55568c;}[_0x377309(0x198)](_0x2d8828,_0x26eb18,_0x31b260){const _0x3359a5=_0x377309;let {caseSensitive:_0xf2f95e,matchEntireCell:_0x5b4ae9,searchMultipleTextsCondition:_0x1758c7,isSearchByRawValue:_0x10089b,isSearchByDisplayValue:_0x4efef5,isSearchByFormula:_0x43f416,worksheet:_0x2a1b3f,row:_0x179ad5,col:_0x3ccf82}=_0x31b260;if(_0x10089b){var _0x1436e6;let _0x467159=((_0x1436e6=_0x2d8828['p'])==null||(_0x1436e6=_0x1436e6['body'])==null?void 0x0:_0x1436e6['dataStream'])||_0x2d8828['v'];if(_0x467159){let _0x1ed0ca=_0xf2f95e?_0x467159['toString']():_0x467159[_0x3359a5(0x1d1)]()['toLowerCase']();if(this[_0x3359a5(0x1bb)](_0x1ed0ca,_0x26eb18,_0x5b4ae9,_0x1758c7))return{'row':_0x179ad5,'col':_0x3ccf82,'reference':(0x0,_0x36ddf6[_0x3359a5(0x1b8)])(_0x2a1b3f[_0x3359a5(0x1c6)](),{'startRow':_0x179ad5,'endRow':_0x179ad5,'startColumn':_0x3ccf82,'endColumn':_0x3ccf82}),'cellData':{..._0x2d8828,'rawValue':_0x467159}};}}if(_0x43f416&&(_0x2d8828['f']||_0x2d8828['si'])){let _0x5aa027=this[_0x3359a5(0x1e8)][_0x3359a5(0x1c4)](_0x179ad5,_0x3ccf82,_0x2a1b3f[_0x3359a5(0x1b0)](),this['getWorkbook']()[_0x3359a5(0x1a4)]());if(_0x5aa027){let _0x386f1e=_0xf2f95e?_0x5aa027:_0x5aa027[_0x3359a5(0x1e6)]();if(this[_0x3359a5(0x1bb)](_0x386f1e,_0x26eb18,_0x5b4ae9,_0x1758c7))return{'row':_0x179ad5,'col':_0x3ccf82,'reference':(0x0,_0x36ddf6['serializeRangeWithSheet'])(_0x2a1b3f[_0x3359a5(0x1c6)](),{'startRow':_0x179ad5,'endRow':_0x179ad5,'startColumn':_0x3ccf82,'endColumn':_0x3ccf82}),'cellData':{..._0x2d8828,'formulaString':_0x5aa027}};}}if(_0x4efef5){var _0x526792;let _0x5851ce=(_0x526792=_0x2d8828['p'])==null||(_0x526792=_0x526792[_0x3359a5(0x1d4)])==null?void 0x0:_0x526792[_0x3359a5(0x1ab)];if(!_0x5851ce){var _0x21fedf;_0x5851ce=(_0x21fedf=_0x2a1b3f[_0x3359a5(0x1b6)](_0x179ad5,_0x3ccf82))==null?void 0x0:_0x21fedf['v'];}if(_0x5851ce){let _0x458a58=_0xf2f95e?_0x5851ce['toString']():_0x5851ce[_0x3359a5(0x1d1)]()[_0x3359a5(0x1e6)]();if(this[_0x3359a5(0x1bb)](_0x458a58,_0x26eb18,_0x5b4ae9,_0x1758c7))return{'row':_0x179ad5,'col':_0x3ccf82,'reference':(0x0,_0x36ddf6[_0x3359a5(0x1b8)])(_0x2a1b3f[_0x3359a5(0x1c6)](),{'startRow':_0x179ad5,'endRow':_0x179ad5,'startColumn':_0x3ccf82,'endColumn':_0x3ccf82}),'cellData':{..._0x2d8828,'displayValue':_0x5851ce[_0x3359a5(0x1d1)]()}};}}return!0x1;}[_0x377309(0x1bb)](_0x56d712,_0x49f9a1,_0x5a5763,_0x58a5c6){const _0x564ab9=_0x377309;return _0x49f9a1[_0x564ab9(0x1a6)]>0x1&&_0x58a5c6===_0x564ab9(0x194)?_0x49f9a1[_0x564ab9(0x1da)](_0x598deb=>_0x5a5763?_0x56d712===_0x598deb:_0x56d712[_0x564ab9(0x1d7)](_0x598deb)>-0x1):_0x49f9a1[_0x564ab9(0x1f4)](_0x2390f7=>_0x5a5763?_0x56d712===_0x2390f7:_0x56d712[_0x564ab9(0x1d7)](_0x2390f7)>-0x1);}};_0x4b8e7a[_0x377309(0x1d2)][_0x377309(0x1e0)](_0x17242f);var _0x28935c=class extends _0x4b8e7a[_0x377309(0x1d2)]{async[_0x377309(0x1b3)](){const _0x39e4b5=_0x377309;return{'formulaErrors':this[_0x39e4b5(0x1c3)](),'dataValidationErrors':await this['getAllDataValidationErrorAsync']()};}};_0x4b8e7a[_0x377309(0x1d2)][_0x377309(0x1e0)](_0x28935c);var _0x70034=class extends _0x4b8e7a['FWorksheet']{async['getFormulaUsages'](){const _0x2bd3e1=_0x377309;let _0x3bb3d5=this[_0x2bd3e1(0x1ec)][_0x2bd3e1(0x19b)](_0x49b297[_0x2bd3e1(0x1bc)]),_0x264e12=this[_0x2bd3e1(0x1f7)](0x0,0x0,this[_0x2bd3e1(0x19e)](),this[_0x2bd3e1(0x1d9)]())[_0x2bd3e1(0x1d0)]();return await _0x3bb3d5[_0x2bd3e1(0x1d3)](_0x264e12);}async['getFormulaUsagesAsA1'](){const _0x3c2d8d=_0x377309;return(await this[_0x3c2d8d(0x196)]())[_0x3c2d8d(0x1f0)](_0x49b297['formulaToA1']);}[_0x377309(0x1e2)](_0x3c91c8){const _0x18fe41=_0x377309;let _0xb1b1ef=this[_0x18fe41(0x1ec)][_0x18fe41(0x19b)](_0x49b297[_0x18fe41(0x1ed)]),_0x414f36=this[_0x18fe41(0x1f7)](0x0,0x0,this['getMaxRows'](),this[_0x18fe41(0x1d9)]())['getCellDataGrid']();return _0xb1b1ef[_0x18fe41(0x1d5)](_0x3c91c8),_0xb1b1ef[_0x18fe41(0x1a0)](_0x414f36,this[_0x18fe41(0x1cc)],this['_worksheet']);}[_0x377309(0x19d)](_0x13d925){const _0x36e213=_0x377309;return this[_0x36e213(0x1e2)](_0x13d925)[_0x36e213(0x1f0)](_0x49b297[_0x36e213(0x1cd)]);}[_0x377309(0x199)](_0x5ad707){const _0x395540=_0x377309;let _0x9c27e2=this[_0x395540(0x1ec)][_0x395540(0x19b)](_0x49b297[_0x395540(0x1a8)]);return _0x9c27e2[_0x395540(0x1d5)](_0x5ad707),_0x9c27e2[_0x395540(0x1d6)](this['_worksheet']);}[_0x377309(0x1ca)](_0x38df43){const _0x5ee4cc=_0x377309;let _0x36291d=this[_0x5ee4cc(0x1ec)][_0x5ee4cc(0x19b)](_0x49b297[_0x5ee4cc(0x1a8)]);_0x36291d[_0x5ee4cc(0x1d5)](_0x38df43);let _0x2c1548=_0x36291d[_0x5ee4cc(0x1d6)](this['_worksheet']);return _0x36291d[_0x5ee4cc(0x1c2)](_0x2c1548);}};_0x4b8e7a['FWorksheet']['extend'](_0x70034);var _0x611e13=class extends _0x4b8e7a['FRange']{['_collectRectAreaData'](_0x841cfc){const _0x50fc78=_0x377309;var _0xc7659b;let _0x408003=(_0xc7659b=_0x841cfc==null?void 0x0:_0x841cfc['visibleOnly'])==null?!0x0:_0xc7659b,_0x14a38b=this[_0x50fc78(0x1f7)](),_0x489ef0=this[_0x50fc78(0x1e4)]['getRowManager'](),_0x1345a9=this[_0x50fc78(0x1e4)][_0x50fc78(0x1bd)](),_0x27644b={},_0x5490b1=0x0;for(let _0x1734e7=_0x14a38b[_0x50fc78(0x1a7)];_0x1734e7<=_0x14a38b['endRow'];_0x1734e7++){let _0x53f68b=_0x489ef0[_0x50fc78(0x1c0)](_0x1734e7),_0x13bf8=!_0x408003||this[_0x50fc78(0x1e4)]['getRowVisible'](_0x1734e7)?_0x53f68b:0x0;_0x5490b1+=_0x13bf8,_0x27644b[_0x1734e7]={'h':_0x13bf8};}let _0x13aec0={},_0x5dbde8=0x0;for(let _0x260925=_0x14a38b[_0x50fc78(0x1c9)];_0x260925<=_0x14a38b[_0x50fc78(0x1db)];_0x260925++){let _0x120d19=_0x1345a9['getColumnWidth'](_0x260925),_0x16fa5e=!_0x408003||this['_worksheet']['getColVisible'](_0x260925)?_0x120d19:0x0;_0x5dbde8+=_0x16fa5e,_0x13aec0[_0x260925]={'w':_0x16fa5e};}return{'w':_0x5dbde8,'h':_0x5490b1,'rowData':_0x27644b,'columnData':_0x13aec0};}async['getFormulaUsages'](){const _0x1b7041=_0x377309;let _0x1d6b67=this['_injector']['get'](_0x49b297[_0x1b7041(0x1bc)]),_0x2119c4=(({startRow:_0x4b4049,endRow:_0x171070,startColumn:_0xa5e260,endColumn:_0x9401fa})=>{const _0x43ff6f=_0x1b7041;let _0x44dcf5=[];for(let _0x3da1c9=_0x4b4049;_0x3da1c9<=_0x171070;_0x3da1c9++){let _0x5021fc=[];for(let _0x2dd981=_0xa5e260;_0x2dd981<=_0x9401fa;_0x2dd981++)_0x5021fc[_0x43ff6f(0x1b4)](this['_worksheet']['getCellRaw'](_0x3da1c9,_0x2dd981));_0x44dcf5['push'](_0x5021fc);}return _0x44dcf5;})({'startRow':0x0,'endRow':this[_0x1b7041(0x1e4)][_0x1b7041(0x19e)](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()}),_0x285e02=await _0x1d6b67[_0x1b7041(0x1d3)](_0x2119c4),_0x4bd852=this[_0x1b7041(0x1f7)](),_0x40107f=[];for(let _0x9b37ed=0x0;_0x9b37ed<_0x285e02[_0x1b7041(0x1a6)];_0x9b37ed++){let _0x481b8a=_0x285e02[_0x9b37ed],_0x5beb8a=_0x481b8a[_0x1b7041(0x1b1)],_0x2db7f7=[];for(let _0x22ae2c=0x0;_0x22ae2c<_0x5beb8a['length'];_0x22ae2c++){let _0x17d530=_0x5beb8a[_0x22ae2c],_0x1c1b01=(0x0,_0x7003a4['getIntersectRange'])(_0x17d530,_0x4bd852);_0x1c1b01&&_0x2db7f7[_0x1b7041(0x1b4)](_0x1c1b01);}if(_0x2db7f7['length']>0x0){if(_0x481b8a[_0x1b7041(0x1b1)]=_0x2db7f7,!(_0x481b8a[_0x1b7041(0x1af)][_0x1b7041(0x1a7)]>=_0x4bd852['startRow']&&_0x481b8a[_0x1b7041(0x1af)][_0x1b7041(0x1a7)]<=_0x4bd852[_0x1b7041(0x1f8)]&&_0x481b8a[_0x1b7041(0x1af)][_0x1b7041(0x1c9)]>=_0x4bd852['startColumn']&&_0x481b8a[_0x1b7041(0x1af)][_0x1b7041(0x1c9)]<=_0x4bd852['endColumn'])){let _0x4ebc68=_0x2db7f7[0x0],_0x508449=_0x4ebc68[_0x1b7041(0x1a7)]-_0x481b8a[_0x1b7041(0x1af)][_0x1b7041(0x1a7)],_0x29364e=_0x4ebc68[_0x1b7041(0x1c9)]-_0x481b8a[_0x1b7041(0x1af)][_0x1b7041(0x1c9)];_0x481b8a['formula']=await _0x1d6b67[_0x1b7041(0x1cf)](_0x481b8a[_0x1b7041(0x19c)],_0x29364e,_0x508449),_0x481b8a[_0x1b7041(0x1af)]={'startRow':_0x4ebc68[_0x1b7041(0x1a7)],'endRow':_0x4ebc68[_0x1b7041(0x1a7)],'startColumn':_0x4ebc68['startColumn'],'endColumn':_0x4ebc68[_0x1b7041(0x1c9)]};}_0x40107f[_0x1b7041(0x1b4)](_0x481b8a);}}return _0x40107f;}async[_0x377309(0x1dd)](){const _0x8b4b3b=_0x377309;return(await this['getFormulaUsages']())['map'](_0x49b297[_0x8b4b3b(0x192)]);}[_0x377309(0x1e2)](_0x1d1259){const _0x126b32=_0x377309;let _0xf629b6=this[_0x126b32(0x1ec)][_0x126b32(0x19b)](_0x49b297['IStyleUsageAnalyzer']),_0x284652=(({startRow:_0x2b54ed,endRow:_0x4dfb8f,startColumn:_0x6293f3,endColumn:_0x1e4b41})=>{const _0xdf45a0=_0x126b32;let _0x20d2cf=[];for(let _0x41eb72=_0x2b54ed;_0x41eb72<=_0x4dfb8f;_0x41eb72++){let _0x3e5a5a=[];for(let _0xe15d47=_0x6293f3;_0xe15d47<=_0x1e4b41;_0xe15d47++)_0x3e5a5a[_0xdf45a0(0x1b4)](this['_worksheet'][_0xdf45a0(0x1f3)](_0x41eb72,_0xe15d47));_0x20d2cf[_0xdf45a0(0x1b4)](_0x3e5a5a);}return _0x20d2cf;})({'startRow':0x0,'endRow':this[_0x126b32(0x1e4)][_0x126b32(0x19e)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x126b32(0x1d9)]()});_0xf629b6[_0x126b32(0x1d5)](_0x1d1259);let _0x240ac6=_0xf629b6[_0x126b32(0x1a0)](_0x284652,this[_0x126b32(0x1cc)],this['_worksheet']),_0x1d9a88=this[_0x126b32(0x1f7)](),_0xba9355=[];for(let _0x34ae60=0x0;_0x34ae60<_0x240ac6[_0x126b32(0x1a6)];_0x34ae60++){let _0x69fa55=_0x240ac6[_0x34ae60],_0x27088a=_0x69fa55[_0x126b32(0x1b1)],_0x2bda11=[];for(let _0x59f31b=0x0;_0x59f31b<_0x27088a[_0x126b32(0x1a6)];_0x59f31b++){let _0x31c9e5=_0x27088a[_0x59f31b],_0xfad7eb=(0x0,_0x7003a4[_0x126b32(0x19a)])(_0x31c9e5,_0x1d9a88);_0xfad7eb&&_0x2bda11[_0x126b32(0x1b4)](_0xfad7eb);}_0x2bda11[_0x126b32(0x1a6)]>0x0&&(_0x69fa55[_0x126b32(0x1b1)]=_0x2bda11,_0xba9355['push'](_0x69fa55));}return _0xba9355;}[_0x377309(0x19d)](_0x2a049f){const _0x31321d=_0x377309;return this[_0x31321d(0x1e2)](_0x2a049f)['map'](_0x49b297[_0x31321d(0x1cd)]);}['getSizeUsages'](_0x1f84f1){const _0xa2feb1=_0x377309;let _0x47917c=this[_0xa2feb1(0x1ec)][_0xa2feb1(0x19b)](_0x49b297[_0xa2feb1(0x1a8)]),_0x35957b=this[_0xa2feb1(0x1f7)]();return _0x47917c[_0xa2feb1(0x1d5)](_0x1f84f1),_0x47917c['getAllSizeUsages'](this[_0xa2feb1(0x1e4)],_0x35957b[_0xa2feb1(0x1a7)],_0x35957b[_0xa2feb1(0x1f8)],_0x35957b[_0xa2feb1(0x1c9)],_0x35957b['endColumn']);}[_0x377309(0x1ca)](_0x329916){const _0x2c5fc2=_0x377309;let _0x448608=this[_0x2c5fc2(0x199)](_0x329916);return this[_0x2c5fc2(0x1ec)]['get'](_0x49b297['ISizeUsageAnalyzer'])[_0x2c5fc2(0x1c2)](_0x448608);}[_0x377309(0x1b5)](_0x2d9b25){const _0x755214=_0x377309;let _0x3fa83e=this[_0x755214(0x1df)](_0x2d9b25);return{'w':_0x3fa83e['w'],'h':_0x3fa83e['h']};}['getRectAreaData'](_0x199e89){const _0x517802=_0x377309;return this[_0x517802(0x1df)](_0x199e89);}};_0x4b8e7a[_0x377309(0x1ea)][_0x377309(0x1e0)](_0x611e13);}));
|